@genexus/genexus-ide-ui 1.1.43 → 1.1.45
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/cjs/genexus-ide-ui.cjs.js +1 -1
- package/dist/cjs/gx-ide-ai-message.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-dashboard-home.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-new-environment.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-new-kb.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-object-selector.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-select-user-team.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-select-user-team.cjs.entry.js.map +1 -1
- package/dist/cjs/gx-ide-start-page.cjs.entry.js +33 -20
- package/dist/cjs/gx-ide-start-page.cjs.entry.js.map +1 -1
- package/dist/cjs/gx-ide-team-dev-bring-changes.cjs.entry.js +2 -2
- package/dist/cjs/gx-ide-team-dev-commit.cjs.entry.js +2 -2
- package/dist/cjs/gx-ide-team-dev-history.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-team-dev-update-partial-selection.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-team-dev-update.cjs.entry.js +2 -2
- package/dist/cjs/gx-ide-ww-files.cjs.entry.js +1 -1
- package/dist/cjs/gx-ide-ww-images.cjs.entry.js +1 -1
- package/dist/cjs/{helpers-21c9cd02.js → helpers-263b5f4e.js} +3 -7
- package/dist/cjs/helpers-263b5f4e.js.map +1 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{tabular-grid-render-4350dbaf.js → tabular-grid-render-b1767da2.js} +2 -2
- package/dist/cjs/{tabular-grid-render-4350dbaf.js.map → tabular-grid-render-b1767da2.js.map} +1 -1
- package/dist/collection/common/helpers.js +3 -7
- package/dist/collection/common/helpers.js.map +1 -1
- package/dist/collection/components/select-user-team/select-user-team.css +0 -2
- package/dist/collection/components/start-page/gx-ide-assets/start-page/langs/start-page.lang.en.json +4 -0
- package/dist/collection/components/start-page/gx-ide-assets/start-page/langs/start-page.lang.ja.json +4 -0
- package/dist/collection/components/start-page/gx-ide-assets/start-page/langs/start-page.lang.zh.json +4 -0
- package/dist/collection/components/start-page/start-page.css +78 -13
- package/dist/collection/components/start-page/start-page.js +104 -44
- package/dist/collection/components/start-page/start-page.js.map +1 -1
- package/dist/components/gx-ide-select-user-team.js +1 -1
- package/dist/components/gx-ide-select-user-team.js.map +1 -1
- package/dist/components/gx-ide-start-page.js +38 -23
- package/dist/components/gx-ide-start-page.js.map +1 -1
- package/dist/components/helpers.js +2 -6
- package/dist/components/helpers.js.map +1 -1
- package/dist/esm/genexus-ide-ui.js +1 -1
- package/dist/esm/gx-ide-ai-message.entry.js +1 -1
- package/dist/esm/gx-ide-dashboard-home.entry.js +1 -1
- package/dist/esm/gx-ide-new-environment.entry.js +1 -1
- package/dist/esm/gx-ide-new-kb.entry.js +1 -1
- package/dist/esm/gx-ide-object-selector.entry.js +1 -1
- package/dist/esm/gx-ide-select-user-team.entry.js +1 -1
- package/dist/esm/gx-ide-select-user-team.entry.js.map +1 -1
- package/dist/esm/gx-ide-start-page.entry.js +33 -20
- package/dist/esm/gx-ide-start-page.entry.js.map +1 -1
- package/dist/esm/gx-ide-team-dev-bring-changes.entry.js +2 -2
- package/dist/esm/gx-ide-team-dev-commit.entry.js +2 -2
- package/dist/esm/gx-ide-team-dev-history.entry.js +1 -1
- package/dist/esm/gx-ide-team-dev-update-partial-selection.entry.js +1 -1
- package/dist/esm/gx-ide-team-dev-update.entry.js +2 -2
- package/dist/esm/gx-ide-ww-files.entry.js +1 -1
- package/dist/esm/gx-ide-ww-images.entry.js +1 -1
- package/dist/esm/{helpers-7960f084.js → helpers-b180a2d1.js} +3 -7
- package/dist/esm/helpers-b180a2d1.js.map +1 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{tabular-grid-render-f7eb612b.js → tabular-grid-render-96d67a8c.js} +2 -2
- package/dist/esm/{tabular-grid-render-f7eb612b.js.map → tabular-grid-render-96d67a8c.js.map} +1 -1
- package/dist/genexus-ide-ui/genexus-ide-ui.esm.js +1 -1
- package/dist/genexus-ide-ui/genexus-ide-ui.esm.js.map +1 -1
- package/dist/genexus-ide-ui/gx-ide-assets/start-page/langs/start-page.lang.en.json +4 -0
- package/dist/genexus-ide-ui/gx-ide-assets/start-page/langs/start-page.lang.ja.json +4 -0
- package/dist/genexus-ide-ui/gx-ide-assets/start-page/langs/start-page.lang.zh.json +4 -0
- package/dist/genexus-ide-ui/{p-8c867f9a.entry.js → p-072419f9.entry.js} +2 -2
- package/dist/genexus-ide-ui/{p-ed87224f.entry.js → p-083d8e94.entry.js} +3 -3
- package/dist/genexus-ide-ui/{p-646ddf49.entry.js → p-11a60dbe.entry.js} +2 -2
- package/dist/genexus-ide-ui/{p-12b563fe.entry.js → p-137a252f.entry.js} +2 -2
- package/dist/genexus-ide-ui/{p-8c15538c.js → p-1972b953.js} +10 -13
- package/dist/genexus-ide-ui/p-1972b953.js.map +1 -0
- package/dist/genexus-ide-ui/{p-59908901.entry.js → p-24573081.entry.js} +2 -2
- package/dist/genexus-ide-ui/{p-7f091892.entry.js → p-31c1b79d.entry.js} +2 -2
- package/dist/genexus-ide-ui/{p-5624d287.entry.js → p-3ccd331f.entry.js} +2 -2
- package/dist/genexus-ide-ui/{p-2b38e18e.entry.js → p-57ed2623.entry.js} +2 -2
- package/dist/genexus-ide-ui/{p-4cc2b3e6.entry.js → p-6f5cf136.entry.js} +6 -6
- package/dist/genexus-ide-ui/p-6f5cf136.entry.js.map +1 -0
- package/dist/genexus-ide-ui/{p-c1ad1cc6.entry.js → p-7a28161f.entry.js} +2 -2
- package/dist/genexus-ide-ui/{p-4e3ad78d.entry.js → p-a58048e9.entry.js} +3 -3
- package/dist/genexus-ide-ui/{p-4b680e46.entry.js → p-af975c83.entry.js} +2 -2
- package/dist/genexus-ide-ui/{p-77c2e69d.js → p-c8270f7d.js} +2 -2
- package/dist/genexus-ide-ui/{p-a7883e6b.entry.js → p-d18c51fe.entry.js} +3 -3
- package/dist/genexus-ide-ui/{p-e2b0ee82.entry.js → p-d67ff6a5.entry.js} +566 -543
- package/dist/genexus-ide-ui/p-d67ff6a5.entry.js.map +1 -0
- package/dist/types/components/start-page/start-page.d.ts +32 -19
- package/dist/types/components.d.ts +18 -2
- package/package.json +1 -1
- package/dist/cjs/helpers-21c9cd02.js.map +0 -1
- package/dist/esm/helpers-7960f084.js.map +0 -1
- package/dist/genexus-ide-ui/p-4cc2b3e6.entry.js.map +0 -1
- package/dist/genexus-ide-ui/p-8c15538c.js.map +0 -1
- package/dist/genexus-ide-ui/p-e2b0ee82.entry.js.map +0 -1
- /package/dist/genexus-ide-ui/{p-8c867f9a.entry.js.map → p-072419f9.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-ed87224f.entry.js.map → p-083d8e94.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-646ddf49.entry.js.map → p-11a60dbe.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-12b563fe.entry.js.map → p-137a252f.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-59908901.entry.js.map → p-24573081.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-7f091892.entry.js.map → p-31c1b79d.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-5624d287.entry.js.map → p-3ccd331f.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-2b38e18e.entry.js.map → p-57ed2623.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-c1ad1cc6.entry.js.map → p-7a28161f.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-4e3ad78d.entry.js.map → p-a58048e9.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-4b680e46.entry.js.map → p-af975c83.entry.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-77c2e69d.js.map → p-c8270f7d.js.map} +0 -0
- /package/dist/genexus-ide-ui/{p-a7883e6b.entry.js.map → p-d18c51fe.entry.js.map} +0 -0
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { r as
|
|
1
|
+
import { r as n, h as e, H as t, a } from "./p-97107ecc.js";
|
|
2
2
|
|
|
3
|
-
import { g as
|
|
3
|
+
import { g as i } from "./p-401bfc97.js";
|
|
4
4
|
|
|
5
5
|
import { L as r } from "./p-311eedf3.js";
|
|
6
6
|
|
|
7
|
+
import { f as o } from "./p-1972b953.js";
|
|
8
|
+
|
|
7
9
|
/**
|
|
8
10
|
* @module constants
|
|
9
11
|
* @summary Useful constants
|
|
@@ -24,13 +26,13 @@ import { L as r } from "./p-311eedf3.js";
|
|
|
24
26
|
* @constant
|
|
25
27
|
* @name minutesInMonth
|
|
26
28
|
* @summary Minutes in 1 month.
|
|
27
|
-
*/ const
|
|
29
|
+
*/ const s = 43200;
|
|
28
30
|
|
|
29
31
|
/**
|
|
30
32
|
* @constant
|
|
31
33
|
* @name minutesInDay
|
|
32
34
|
* @summary Minutes in 1 day.
|
|
33
|
-
*/ const
|
|
35
|
+
*/ const c = 1440;
|
|
34
36
|
|
|
35
37
|
/**
|
|
36
38
|
* @constant
|
|
@@ -42,7 +44,7 @@ import { L as r } from "./p-311eedf3.js";
|
|
|
42
44
|
* from the reference date to the new date. It's useful for extensions like
|
|
43
45
|
* [`TZDate`](https://github.com/date-fns/tz) that accept a time zone as
|
|
44
46
|
* a constructor argument.
|
|
45
|
-
*/ const
|
|
47
|
+
*/ const d = Symbol.for("constructDateFrom");
|
|
46
48
|
|
|
47
49
|
/**
|
|
48
50
|
* @name constructFrom
|
|
@@ -78,11 +80,11 @@ import { L as r } from "./p-311eedf3.js";
|
|
|
78
80
|
* date.getTime() // Use the date value to create a new date
|
|
79
81
|
* );
|
|
80
82
|
* }
|
|
81
|
-
*/ function constructFrom(
|
|
82
|
-
if (typeof
|
|
83
|
-
if (
|
|
84
|
-
if (
|
|
85
|
-
return new Date(
|
|
83
|
+
*/ function constructFrom(n, e) {
|
|
84
|
+
if (typeof n === "function") return n(e);
|
|
85
|
+
if (n && typeof n === "object" && d in n) return n[d](e);
|
|
86
|
+
if (n instanceof Date) return new n.constructor(e);
|
|
87
|
+
return new Date(e);
|
|
86
88
|
}
|
|
87
89
|
|
|
88
90
|
/**
|
|
@@ -122,15 +124,15 @@ import { L as r } from "./p-311eedf3.js";
|
|
|
122
124
|
* // Convert the timestamp to date:
|
|
123
125
|
* const result = toDate(1392098430000)
|
|
124
126
|
* //=> Tue Feb 11 2014 11:30:30
|
|
125
|
-
*/ function toDate(
|
|
127
|
+
*/ function toDate(n, e) {
|
|
126
128
|
// [TODO] Get rid of `toDate` or `constructFrom`?
|
|
127
|
-
return constructFrom(
|
|
129
|
+
return constructFrom(e || n, n);
|
|
128
130
|
}
|
|
129
131
|
|
|
130
|
-
let
|
|
132
|
+
let l = {};
|
|
131
133
|
|
|
132
134
|
function getDefaultOptions() {
|
|
133
|
-
return
|
|
135
|
+
return l;
|
|
134
136
|
}
|
|
135
137
|
|
|
136
138
|
/**
|
|
@@ -162,15 +164,15 @@ function getDefaultOptions() {
|
|
|
162
164
|
* // If the week starts on Monday, the start of the week for 2 September 2014 11:55:00:
|
|
163
165
|
* const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 })
|
|
164
166
|
* //=> Mon Sep 01 2014 00:00:00
|
|
165
|
-
*/ function startOfWeek(
|
|
166
|
-
const
|
|
167
|
-
const a =
|
|
168
|
-
const
|
|
169
|
-
const r =
|
|
170
|
-
const
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
return
|
|
167
|
+
*/ function startOfWeek(n, e) {
|
|
168
|
+
const t = getDefaultOptions();
|
|
169
|
+
const a = e?.weekStartsOn ?? e?.locale?.options?.weekStartsOn ?? t.weekStartsOn ?? t.locale?.options?.weekStartsOn ?? 0;
|
|
170
|
+
const i = toDate(n, e?.in);
|
|
171
|
+
const r = i.getDay();
|
|
172
|
+
const o = (r < a ? 7 : 0) + r - a;
|
|
173
|
+
i.setDate(i.getDate() - o);
|
|
174
|
+
i.setHours(0, 0, 0, 0);
|
|
175
|
+
return i;
|
|
174
176
|
}
|
|
175
177
|
|
|
176
178
|
/**
|
|
@@ -183,16 +185,16 @@ function getDefaultOptions() {
|
|
|
183
185
|
* which would lead to incorrect calculations.
|
|
184
186
|
*
|
|
185
187
|
* This function returns the timezone offset in milliseconds that takes seconds in account.
|
|
186
|
-
*/ function getTimezoneOffsetInMilliseconds(
|
|
187
|
-
const
|
|
188
|
-
const
|
|
189
|
-
|
|
190
|
-
return +
|
|
188
|
+
*/ function getTimezoneOffsetInMilliseconds(n) {
|
|
189
|
+
const e = toDate(n);
|
|
190
|
+
const t = new Date(Date.UTC(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()));
|
|
191
|
+
t.setUTCFullYear(e.getFullYear());
|
|
192
|
+
return +n - +t;
|
|
191
193
|
}
|
|
192
194
|
|
|
193
|
-
function normalizeDates(
|
|
194
|
-
const
|
|
195
|
-
return
|
|
195
|
+
function normalizeDates(n, ...e) {
|
|
196
|
+
const t = constructFrom.bind(null, n || e.find((n => typeof n === "object")));
|
|
197
|
+
return e.map(t);
|
|
196
198
|
}
|
|
197
199
|
|
|
198
200
|
/**
|
|
@@ -226,11 +228,11 @@ function normalizeDates(e, ...t) {
|
|
|
226
228
|
* // Mon Jul 10 1989 00:00:00,
|
|
227
229
|
* // Sun Jul 02 1995 00:00:00
|
|
228
230
|
* // ]
|
|
229
|
-
*/ function compareAsc(
|
|
230
|
-
const
|
|
231
|
-
if (
|
|
231
|
+
*/ function compareAsc(n, e) {
|
|
232
|
+
const t = +toDate(n) - +toDate(e);
|
|
233
|
+
if (t < 0) return -1; else if (t > 0) return 1;
|
|
232
234
|
// Return 0 if diff is 0; return NaN if diff is NaN
|
|
233
|
-
return
|
|
235
|
+
return t;
|
|
234
236
|
}
|
|
235
237
|
|
|
236
238
|
/**
|
|
@@ -260,8 +262,8 @@ function normalizeDates(e, ...t) {
|
|
|
260
262
|
* // differently in different timezones and return false for the same date.
|
|
261
263
|
* return isSameDay(date, constructNow(date));
|
|
262
264
|
* }
|
|
263
|
-
*/ function constructNow(
|
|
264
|
-
return constructFrom(
|
|
265
|
+
*/ function constructNow(n) {
|
|
266
|
+
return constructFrom(n, Date.now());
|
|
265
267
|
}
|
|
266
268
|
|
|
267
269
|
/**
|
|
@@ -288,17 +290,17 @@ function normalizeDates(e, ...t) {
|
|
|
288
290
|
* new Date(2014, 0, 31)
|
|
289
291
|
* )
|
|
290
292
|
* //=> 8
|
|
291
|
-
*/ function differenceInCalendarMonths(e, t
|
|
292
|
-
const [a,
|
|
293
|
-
const r = a.getFullYear() -
|
|
294
|
-
const
|
|
295
|
-
return r * 12 +
|
|
293
|
+
*/ function differenceInCalendarMonths(n, e, t) {
|
|
294
|
+
const [a, i] = normalizeDates(t?.in, n, e);
|
|
295
|
+
const r = a.getFullYear() - i.getFullYear();
|
|
296
|
+
const o = a.getMonth() - i.getMonth();
|
|
297
|
+
return r * 12 + o;
|
|
296
298
|
}
|
|
297
299
|
|
|
298
|
-
function getRoundingMethod(
|
|
299
|
-
return
|
|
300
|
-
const
|
|
301
|
-
const a =
|
|
300
|
+
function getRoundingMethod(n) {
|
|
301
|
+
return e => {
|
|
302
|
+
const t = n ? Math[n] : Math.trunc;
|
|
303
|
+
const a = t(e);
|
|
302
304
|
// Prevent negative zero
|
|
303
305
|
return a === 0 ? 0 : a;
|
|
304
306
|
};
|
|
@@ -325,8 +327,8 @@ function getRoundingMethod(e) {
|
|
|
325
327
|
* new Date(2014, 6, 2, 12, 30, 20, 600)
|
|
326
328
|
* )
|
|
327
329
|
* //=> 1100
|
|
328
|
-
*/ function differenceInMilliseconds(
|
|
329
|
-
return +toDate(
|
|
330
|
+
*/ function differenceInMilliseconds(n, e) {
|
|
331
|
+
return +toDate(n) - +toDate(e);
|
|
330
332
|
}
|
|
331
333
|
|
|
332
334
|
/**
|
|
@@ -353,10 +355,10 @@ function getRoundingMethod(e) {
|
|
|
353
355
|
* // The end of a day for 2 September 2014 11:55:00:
|
|
354
356
|
* const result = endOfDay(new Date(2014, 8, 2, 11, 55, 0))
|
|
355
357
|
* //=> Tue Sep 02 2014 23:59:59.999
|
|
356
|
-
*/ function endOfDay(
|
|
357
|
-
const
|
|
358
|
-
|
|
359
|
-
return
|
|
358
|
+
*/ function endOfDay(n, e) {
|
|
359
|
+
const t = toDate(n, e?.in);
|
|
360
|
+
t.setHours(23, 59, 59, 999);
|
|
361
|
+
return t;
|
|
360
362
|
}
|
|
361
363
|
|
|
362
364
|
/**
|
|
@@ -383,12 +385,12 @@ function getRoundingMethod(e) {
|
|
|
383
385
|
* // The end of a month for 2 September 2014 11:55:00:
|
|
384
386
|
* const result = endOfMonth(new Date(2014, 8, 2, 11, 55, 0))
|
|
385
387
|
* //=> Tue Sep 30 2014 23:59:59.999
|
|
386
|
-
*/ function endOfMonth(
|
|
387
|
-
const
|
|
388
|
-
const a =
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
return
|
|
388
|
+
*/ function endOfMonth(n, e) {
|
|
389
|
+
const t = toDate(n, e?.in);
|
|
390
|
+
const a = t.getMonth();
|
|
391
|
+
t.setFullYear(t.getFullYear(), a + 1, 0);
|
|
392
|
+
t.setHours(23, 59, 59, 999);
|
|
393
|
+
return t;
|
|
392
394
|
}
|
|
393
395
|
|
|
394
396
|
/**
|
|
@@ -408,9 +410,9 @@ function getRoundingMethod(e) {
|
|
|
408
410
|
* // Is 28 February 2014 the last day of a month?
|
|
409
411
|
* const result = isLastDayOfMonth(new Date(2014, 1, 28))
|
|
410
412
|
* //=> true
|
|
411
|
-
*/ function isLastDayOfMonth(
|
|
412
|
-
const
|
|
413
|
-
return +endOfDay(
|
|
413
|
+
*/ function isLastDayOfMonth(n, e) {
|
|
414
|
+
const t = toDate(n, e?.in);
|
|
415
|
+
return +endOfDay(t, e) === +endOfMonth(t, e);
|
|
414
416
|
}
|
|
415
417
|
|
|
416
418
|
/**
|
|
@@ -431,18 +433,18 @@ function getRoundingMethod(e) {
|
|
|
431
433
|
* // How many full months are between 31 January 2014 and 1 September 2014?
|
|
432
434
|
* const result = differenceInMonths(new Date(2014, 8, 1), new Date(2014, 0, 31))
|
|
433
435
|
* //=> 7
|
|
434
|
-
*/ function differenceInMonths(e, t
|
|
435
|
-
const [a,
|
|
436
|
-
const
|
|
437
|
-
const s = Math.abs(differenceInCalendarMonths(
|
|
436
|
+
*/ function differenceInMonths(n, e, t) {
|
|
437
|
+
const [a, i, r] = normalizeDates(t?.in, n, n, e);
|
|
438
|
+
const o = compareAsc(i, r);
|
|
439
|
+
const s = Math.abs(differenceInCalendarMonths(i, r));
|
|
438
440
|
if (s < 1) return 0;
|
|
439
|
-
if (
|
|
440
|
-
|
|
441
|
-
let c = compareAsc(
|
|
441
|
+
if (i.getMonth() === 1 && i.getDate() > 27) i.setDate(30);
|
|
442
|
+
i.setMonth(i.getMonth() - o * s);
|
|
443
|
+
let c = compareAsc(i, r) === -o;
|
|
442
444
|
if (isLastDayOfMonth(a) && s === 1 && compareAsc(a, r) === 1) {
|
|
443
445
|
c = false;
|
|
444
446
|
}
|
|
445
|
-
const d =
|
|
447
|
+
const d = o * (s - +c);
|
|
446
448
|
return d === 0 ? 0 : d;
|
|
447
449
|
}
|
|
448
450
|
|
|
@@ -471,12 +473,12 @@ function getRoundingMethod(e) {
|
|
|
471
473
|
* new Date(2014, 6, 2, 12, 30, 7, 999)
|
|
472
474
|
* )
|
|
473
475
|
* //=> 12
|
|
474
|
-
*/ function differenceInSeconds(e, t
|
|
475
|
-
const a = differenceInMilliseconds(
|
|
476
|
-
return getRoundingMethod(
|
|
476
|
+
*/ function differenceInSeconds(n, e, t) {
|
|
477
|
+
const a = differenceInMilliseconds(n, e) / 1e3;
|
|
478
|
+
return getRoundingMethod(t?.roundingMethod)(a);
|
|
477
479
|
}
|
|
478
480
|
|
|
479
|
-
const
|
|
481
|
+
const u = {
|
|
480
482
|
lessThanXSeconds: {
|
|
481
483
|
one: "less than a second",
|
|
482
484
|
other: "less than {{count}} seconds"
|
|
@@ -540,18 +542,18 @@ const l = {
|
|
|
540
542
|
}
|
|
541
543
|
};
|
|
542
544
|
|
|
543
|
-
const formatDistance$3 = (e, t
|
|
545
|
+
const formatDistance$3 = (n, e, t) => {
|
|
544
546
|
let a;
|
|
545
|
-
const
|
|
546
|
-
if (typeof
|
|
547
|
-
a =
|
|
548
|
-
} else if (
|
|
549
|
-
a =
|
|
547
|
+
const i = u[n];
|
|
548
|
+
if (typeof i === "string") {
|
|
549
|
+
a = i;
|
|
550
|
+
} else if (e === 1) {
|
|
551
|
+
a = i.one;
|
|
550
552
|
} else {
|
|
551
|
-
a =
|
|
553
|
+
a = i.other.replace("{{count}}", e.toString());
|
|
552
554
|
}
|
|
553
|
-
if (
|
|
554
|
-
if (
|
|
555
|
+
if (t?.addSuffix) {
|
|
556
|
+
if (t.comparison && t.comparison > 0) {
|
|
555
557
|
return "in " + a;
|
|
556
558
|
} else {
|
|
557
559
|
return a + " ago";
|
|
@@ -560,52 +562,52 @@ const formatDistance$3 = (e, t, n) => {
|
|
|
560
562
|
return a;
|
|
561
563
|
};
|
|
562
564
|
|
|
563
|
-
function buildFormatLongFn(
|
|
564
|
-
return (
|
|
565
|
+
function buildFormatLongFn(n) {
|
|
566
|
+
return (e = {}) => {
|
|
565
567
|
// TODO: Remove String()
|
|
566
|
-
const
|
|
567
|
-
const a =
|
|
568
|
+
const t = e.width ? String(e.width) : n.defaultWidth;
|
|
569
|
+
const a = n.formats[t] || n.formats[n.defaultWidth];
|
|
568
570
|
return a;
|
|
569
571
|
};
|
|
570
572
|
}
|
|
571
573
|
|
|
572
|
-
const
|
|
574
|
+
const h = {
|
|
573
575
|
full: "EEEE, MMMM do, y",
|
|
574
576
|
long: "MMMM do, y",
|
|
575
577
|
medium: "MMM d, y",
|
|
576
578
|
short: "MM/dd/yyyy"
|
|
577
579
|
};
|
|
578
580
|
|
|
579
|
-
const
|
|
581
|
+
const m = {
|
|
580
582
|
full: "h:mm:ss a zzzz",
|
|
581
583
|
long: "h:mm:ss a z",
|
|
582
584
|
medium: "h:mm:ss a",
|
|
583
585
|
short: "h:mm a"
|
|
584
586
|
};
|
|
585
587
|
|
|
586
|
-
const
|
|
588
|
+
const f = {
|
|
587
589
|
full: "{{date}} 'at' {{time}}",
|
|
588
590
|
long: "{{date}} 'at' {{time}}",
|
|
589
591
|
medium: "{{date}}, {{time}}",
|
|
590
592
|
short: "{{date}}, {{time}}"
|
|
591
593
|
};
|
|
592
594
|
|
|
593
|
-
const
|
|
595
|
+
const g = {
|
|
594
596
|
date: buildFormatLongFn({
|
|
595
|
-
formats:
|
|
597
|
+
formats: h,
|
|
596
598
|
defaultWidth: "full"
|
|
597
599
|
}),
|
|
598
600
|
time: buildFormatLongFn({
|
|
599
|
-
formats:
|
|
601
|
+
formats: m,
|
|
600
602
|
defaultWidth: "full"
|
|
601
603
|
}),
|
|
602
604
|
dateTime: buildFormatLongFn({
|
|
603
|
-
formats:
|
|
605
|
+
formats: f,
|
|
604
606
|
defaultWidth: "full"
|
|
605
607
|
})
|
|
606
608
|
};
|
|
607
609
|
|
|
608
|
-
const
|
|
610
|
+
const b = {
|
|
609
611
|
lastWeek: "'last' eeee 'at' p",
|
|
610
612
|
yesterday: "'yesterday at' p",
|
|
611
613
|
today: "'today at' p",
|
|
@@ -614,7 +616,7 @@ const g = {
|
|
|
614
616
|
other: "P"
|
|
615
617
|
};
|
|
616
618
|
|
|
617
|
-
const formatRelative$2 = (e, t,
|
|
619
|
+
const formatRelative$2 = (n, e, t, a) => b[n]
|
|
618
620
|
/**
|
|
619
621
|
* The localize function argument callback which allows to convert raw value to
|
|
620
622
|
* the actual type.
|
|
@@ -647,32 +649,32 @@ const formatRelative$2 = (e, t, n, a) => g[e]
|
|
|
647
649
|
* The tuple of localized month values. The first element represents January.
|
|
648
650
|
*/;
|
|
649
651
|
|
|
650
|
-
function buildLocalizeFn(
|
|
651
|
-
return (
|
|
652
|
-
const a =
|
|
653
|
-
let
|
|
654
|
-
if (a === "formatting" &&
|
|
655
|
-
const
|
|
656
|
-
const a =
|
|
657
|
-
|
|
652
|
+
function buildLocalizeFn(n) {
|
|
653
|
+
return (e, t) => {
|
|
654
|
+
const a = t?.context ? String(t.context) : "standalone";
|
|
655
|
+
let i;
|
|
656
|
+
if (a === "formatting" && n.formattingValues) {
|
|
657
|
+
const e = n.defaultFormattingWidth || n.defaultWidth;
|
|
658
|
+
const a = t?.width ? String(t.width) : e;
|
|
659
|
+
i = n.formattingValues[a] || n.formattingValues[e];
|
|
658
660
|
} else {
|
|
659
|
-
const
|
|
660
|
-
const a =
|
|
661
|
-
|
|
661
|
+
const e = n.defaultWidth;
|
|
662
|
+
const a = t?.width ? String(t.width) : n.defaultWidth;
|
|
663
|
+
i = n.values[a] || n.values[e];
|
|
662
664
|
}
|
|
663
|
-
const r =
|
|
665
|
+
const r = n.argumentCallback ? n.argumentCallback(e) : e;
|
|
664
666
|
// @ts-expect-error - For some reason TypeScript just don't want to match it, no matter how hard we try. I challenge you to try to remove it!
|
|
665
|
-
return
|
|
667
|
+
return i[r];
|
|
666
668
|
};
|
|
667
669
|
}
|
|
668
670
|
|
|
669
|
-
const
|
|
671
|
+
const p = {
|
|
670
672
|
narrow: [ "B", "A" ],
|
|
671
673
|
abbreviated: [ "BC", "AD" ],
|
|
672
674
|
wide: [ "Before Christ", "Anno Domini" ]
|
|
673
675
|
};
|
|
674
676
|
|
|
675
|
-
const
|
|
677
|
+
const y = {
|
|
676
678
|
narrow: [ "1", "2", "3", "4" ],
|
|
677
679
|
abbreviated: [ "Q1", "Q2", "Q3", "Q4" ],
|
|
678
680
|
wide: [ "1st quarter", "2nd quarter", "3rd quarter", "4th quarter" ]
|
|
@@ -682,20 +684,20 @@ const p = {
|
|
|
682
684
|
// If you are making a new locale based on this one, check if the same is true for the language you're working on.
|
|
683
685
|
// Generally, formatted dates should look like they are in the middle of a sentence,
|
|
684
686
|
// e.g. in Spanish language the weekdays and months should be in the lowercase.
|
|
685
|
-
const
|
|
687
|
+
const w = {
|
|
686
688
|
narrow: [ "J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D" ],
|
|
687
689
|
abbreviated: [ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" ],
|
|
688
690
|
wide: [ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ]
|
|
689
691
|
};
|
|
690
692
|
|
|
691
|
-
const
|
|
693
|
+
const v = {
|
|
692
694
|
narrow: [ "S", "M", "T", "W", "T", "F", "S" ],
|
|
693
695
|
short: [ "Su", "Mo", "Tu", "We", "Th", "Fr", "Sa" ],
|
|
694
696
|
abbreviated: [ "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" ],
|
|
695
697
|
wide: [ "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" ]
|
|
696
698
|
};
|
|
697
699
|
|
|
698
|
-
const
|
|
700
|
+
const _ = {
|
|
699
701
|
narrow: {
|
|
700
702
|
am: "a",
|
|
701
703
|
pm: "p",
|
|
@@ -761,74 +763,74 @@ const M = {
|
|
|
761
763
|
}
|
|
762
764
|
};
|
|
763
765
|
|
|
764
|
-
const ordinalNumber$2 = (
|
|
765
|
-
const
|
|
766
|
+
const ordinalNumber$2 = (n, e) => {
|
|
767
|
+
const t = Number(n);
|
|
766
768
|
// If ordinal numbers depend on context, for example,
|
|
767
769
|
// if they are different for different grammatical genders,
|
|
768
770
|
// use `options.unit`.
|
|
769
771
|
|
|
770
772
|
// `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear',
|
|
771
773
|
// 'day', 'hour', 'minute', 'second'.
|
|
772
|
-
const a =
|
|
774
|
+
const a = t % 100;
|
|
773
775
|
if (a > 20 || a < 10) {
|
|
774
776
|
switch (a % 10) {
|
|
775
777
|
case 1:
|
|
776
|
-
return
|
|
778
|
+
return t + "st";
|
|
777
779
|
|
|
778
780
|
case 2:
|
|
779
|
-
return
|
|
781
|
+
return t + "nd";
|
|
780
782
|
|
|
781
783
|
case 3:
|
|
782
|
-
return
|
|
784
|
+
return t + "rd";
|
|
783
785
|
}
|
|
784
786
|
}
|
|
785
|
-
return
|
|
787
|
+
return t + "th";
|
|
786
788
|
};
|
|
787
789
|
|
|
788
|
-
const
|
|
790
|
+
const k = {
|
|
789
791
|
ordinalNumber: ordinalNumber$2,
|
|
790
792
|
era: buildLocalizeFn({
|
|
791
|
-
values:
|
|
793
|
+
values: p,
|
|
792
794
|
defaultWidth: "wide"
|
|
793
795
|
}),
|
|
794
796
|
quarter: buildLocalizeFn({
|
|
795
|
-
values:
|
|
797
|
+
values: y,
|
|
796
798
|
defaultWidth: "wide",
|
|
797
|
-
argumentCallback:
|
|
799
|
+
argumentCallback: n => n - 1
|
|
798
800
|
}),
|
|
799
801
|
month: buildLocalizeFn({
|
|
800
|
-
values:
|
|
802
|
+
values: w,
|
|
801
803
|
defaultWidth: "wide"
|
|
802
804
|
}),
|
|
803
805
|
day: buildLocalizeFn({
|
|
804
|
-
values:
|
|
806
|
+
values: v,
|
|
805
807
|
defaultWidth: "wide"
|
|
806
808
|
}),
|
|
807
809
|
dayPeriod: buildLocalizeFn({
|
|
808
|
-
values:
|
|
810
|
+
values: _,
|
|
809
811
|
defaultWidth: "wide",
|
|
810
812
|
formattingValues: M,
|
|
811
813
|
defaultFormattingWidth: "wide"
|
|
812
814
|
})
|
|
813
815
|
};
|
|
814
816
|
|
|
815
|
-
function buildMatchFn(
|
|
816
|
-
return (
|
|
817
|
-
const a =
|
|
818
|
-
const
|
|
819
|
-
const r =
|
|
817
|
+
function buildMatchFn(n) {
|
|
818
|
+
return (e, t = {}) => {
|
|
819
|
+
const a = t.width;
|
|
820
|
+
const i = a && n.matchPatterns[a] || n.matchPatterns[n.defaultMatchWidth];
|
|
821
|
+
const r = e.match(i);
|
|
820
822
|
if (!r) {
|
|
821
823
|
return null;
|
|
822
824
|
}
|
|
823
|
-
const
|
|
824
|
-
const s = a &&
|
|
825
|
-
const c = Array.isArray(s) ? findIndex(s, (
|
|
826
|
-
findKey(s, (
|
|
825
|
+
const o = r[0];
|
|
826
|
+
const s = a && n.parsePatterns[a] || n.parsePatterns[n.defaultParseWidth];
|
|
827
|
+
const c = Array.isArray(s) ? findIndex(s, (n => n.test(o))) : // [TODO] -- I challenge you to fix the type
|
|
828
|
+
findKey(s, (n => n.test(o)));
|
|
827
829
|
let d;
|
|
828
|
-
d =
|
|
829
|
-
d =
|
|
830
|
-
|
|
831
|
-
const l =
|
|
830
|
+
d = n.valueCallback ? n.valueCallback(c) : c;
|
|
831
|
+
d = t.valueCallback ? // [TODO] -- I challenge you to fix the type
|
|
832
|
+
t.valueCallback(d) : d;
|
|
833
|
+
const l = e.slice(o.length);
|
|
832
834
|
return {
|
|
833
835
|
value: d,
|
|
834
836
|
rest: l
|
|
@@ -836,78 +838,78 @@ function buildMatchFn(e) {
|
|
|
836
838
|
};
|
|
837
839
|
}
|
|
838
840
|
|
|
839
|
-
function findKey(
|
|
840
|
-
for (const
|
|
841
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
842
|
-
return
|
|
841
|
+
function findKey(n, e) {
|
|
842
|
+
for (const t in n) {
|
|
843
|
+
if (Object.prototype.hasOwnProperty.call(n, t) && e(n[t])) {
|
|
844
|
+
return t;
|
|
843
845
|
}
|
|
844
846
|
}
|
|
845
847
|
return undefined;
|
|
846
848
|
}
|
|
847
849
|
|
|
848
|
-
function findIndex(
|
|
849
|
-
for (let
|
|
850
|
-
if (
|
|
851
|
-
return
|
|
850
|
+
function findIndex(n, e) {
|
|
851
|
+
for (let t = 0; t < n.length; t++) {
|
|
852
|
+
if (e(n[t])) {
|
|
853
|
+
return t;
|
|
852
854
|
}
|
|
853
855
|
}
|
|
854
856
|
return undefined;
|
|
855
857
|
}
|
|
856
858
|
|
|
857
|
-
function buildMatchPatternFn(
|
|
858
|
-
return (
|
|
859
|
-
const a =
|
|
859
|
+
function buildMatchPatternFn(n) {
|
|
860
|
+
return (e, t = {}) => {
|
|
861
|
+
const a = e.match(n.matchPattern);
|
|
860
862
|
if (!a) return null;
|
|
861
|
-
const
|
|
862
|
-
const r =
|
|
863
|
+
const i = a[0];
|
|
864
|
+
const r = e.match(n.parsePattern);
|
|
863
865
|
if (!r) return null;
|
|
864
|
-
let
|
|
866
|
+
let o = n.valueCallback ? n.valueCallback(r[0]) : r[0];
|
|
865
867
|
// [TODO] I challenge you to fix the type
|
|
866
|
-
|
|
867
|
-
const s =
|
|
868
|
+
o = t.valueCallback ? t.valueCallback(o) : o;
|
|
869
|
+
const s = e.slice(i.length);
|
|
868
870
|
return {
|
|
869
|
-
value:
|
|
871
|
+
value: o,
|
|
870
872
|
rest: s
|
|
871
873
|
};
|
|
872
874
|
};
|
|
873
875
|
}
|
|
874
876
|
|
|
875
|
-
const
|
|
877
|
+
const W = /^(\d+)(th|st|nd|rd)?/i;
|
|
876
878
|
|
|
877
|
-
const
|
|
879
|
+
const x = /\d+/i;
|
|
878
880
|
|
|
879
|
-
const
|
|
881
|
+
const F = {
|
|
880
882
|
narrow: /^(b|a)/i,
|
|
881
883
|
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
882
884
|
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
883
885
|
};
|
|
884
886
|
|
|
885
|
-
const
|
|
887
|
+
const P = {
|
|
886
888
|
any: [ /^b/i, /^(a|c)/i ]
|
|
887
889
|
};
|
|
888
890
|
|
|
889
|
-
const
|
|
891
|
+
const z = {
|
|
890
892
|
narrow: /^[1234]/i,
|
|
891
893
|
abbreviated: /^q[1234]/i,
|
|
892
894
|
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
893
895
|
};
|
|
894
896
|
|
|
895
|
-
const
|
|
897
|
+
const D = {
|
|
896
898
|
any: [ /1/i, /2/i, /3/i, /4/i ]
|
|
897
899
|
};
|
|
898
900
|
|
|
899
|
-
const
|
|
901
|
+
const S = {
|
|
900
902
|
narrow: /^[jfmasond]/i,
|
|
901
903
|
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
902
904
|
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
903
905
|
};
|
|
904
906
|
|
|
905
|
-
const
|
|
907
|
+
const T = {
|
|
906
908
|
narrow: [ /^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i ],
|
|
907
909
|
any: [ /^ja/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i ]
|
|
908
910
|
};
|
|
909
911
|
|
|
910
|
-
const
|
|
912
|
+
const C = {
|
|
911
913
|
narrow: /^[smtwf]/i,
|
|
912
914
|
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
913
915
|
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
@@ -919,12 +921,12 @@ const X = {
|
|
|
919
921
|
any: [ /^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i ]
|
|
920
922
|
};
|
|
921
923
|
|
|
922
|
-
const
|
|
924
|
+
const L = {
|
|
923
925
|
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
924
926
|
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
925
927
|
};
|
|
926
928
|
|
|
927
|
-
const
|
|
929
|
+
const j = {
|
|
928
930
|
any: {
|
|
929
931
|
am: /^a/i,
|
|
930
932
|
pm: /^p/i,
|
|
@@ -939,39 +941,39 @@ const L = {
|
|
|
939
941
|
|
|
940
942
|
const A = {
|
|
941
943
|
ordinalNumber: buildMatchPatternFn({
|
|
942
|
-
matchPattern:
|
|
943
|
-
parsePattern:
|
|
944
|
-
valueCallback:
|
|
944
|
+
matchPattern: W,
|
|
945
|
+
parsePattern: x,
|
|
946
|
+
valueCallback: n => parseInt(n, 10)
|
|
945
947
|
}),
|
|
946
948
|
era: buildMatchFn({
|
|
947
|
-
matchPatterns:
|
|
949
|
+
matchPatterns: F,
|
|
948
950
|
defaultMatchWidth: "wide",
|
|
949
|
-
parsePatterns:
|
|
951
|
+
parsePatterns: P,
|
|
950
952
|
defaultParseWidth: "any"
|
|
951
953
|
}),
|
|
952
954
|
quarter: buildMatchFn({
|
|
953
|
-
matchPatterns:
|
|
955
|
+
matchPatterns: z,
|
|
954
956
|
defaultMatchWidth: "wide",
|
|
955
|
-
parsePatterns:
|
|
957
|
+
parsePatterns: D,
|
|
956
958
|
defaultParseWidth: "any",
|
|
957
|
-
valueCallback:
|
|
959
|
+
valueCallback: n => n + 1
|
|
958
960
|
}),
|
|
959
961
|
month: buildMatchFn({
|
|
960
|
-
matchPatterns:
|
|
962
|
+
matchPatterns: S,
|
|
961
963
|
defaultMatchWidth: "wide",
|
|
962
|
-
parsePatterns:
|
|
964
|
+
parsePatterns: T,
|
|
963
965
|
defaultParseWidth: "any"
|
|
964
966
|
}),
|
|
965
967
|
day: buildMatchFn({
|
|
966
|
-
matchPatterns:
|
|
968
|
+
matchPatterns: C,
|
|
967
969
|
defaultMatchWidth: "wide",
|
|
968
970
|
parsePatterns: X,
|
|
969
971
|
defaultParseWidth: "any"
|
|
970
972
|
}),
|
|
971
973
|
dayPeriod: buildMatchFn({
|
|
972
|
-
matchPatterns:
|
|
974
|
+
matchPatterns: L,
|
|
973
975
|
defaultMatchWidth: "any",
|
|
974
|
-
parsePatterns:
|
|
976
|
+
parsePatterns: j,
|
|
975
977
|
defaultParseWidth: "any"
|
|
976
978
|
})
|
|
977
979
|
};
|
|
@@ -983,12 +985,12 @@ const A = {
|
|
|
983
985
|
* @iso-639-2 eng
|
|
984
986
|
* @author Sasha Koss [@kossnocorp](https://github.com/kossnocorp)
|
|
985
987
|
* @author Lesha Koss [@leshakoss](https://github.com/leshakoss)
|
|
986
|
-
*/ const
|
|
988
|
+
*/ const I = {
|
|
987
989
|
code: "en-US",
|
|
988
990
|
formatDistance: formatDistance$3,
|
|
989
|
-
formatLong:
|
|
991
|
+
formatLong: g,
|
|
990
992
|
formatRelative: formatRelative$2,
|
|
991
|
-
localize:
|
|
993
|
+
localize: k,
|
|
992
994
|
match: A,
|
|
993
995
|
options: {
|
|
994
996
|
weekStartsOn: 0 /* Sunday */ ,
|
|
@@ -1076,84 +1078,84 @@ const A = {
|
|
|
1076
1078
|
* locale: eoLocale
|
|
1077
1079
|
* })
|
|
1078
1080
|
* //=> 'pli ol 1 jaro'
|
|
1079
|
-
*/ function formatDistance$2(e, t
|
|
1081
|
+
*/ function formatDistance$2(n, e, t) {
|
|
1080
1082
|
const a = getDefaultOptions();
|
|
1081
|
-
const
|
|
1083
|
+
const i = t?.locale ?? a.locale ?? I;
|
|
1082
1084
|
const r = 2520;
|
|
1083
|
-
const
|
|
1084
|
-
if (isNaN(
|
|
1085
|
-
const d = Object.assign({},
|
|
1086
|
-
addSuffix:
|
|
1087
|
-
comparison:
|
|
1085
|
+
const o = compareAsc(n, e);
|
|
1086
|
+
if (isNaN(o)) throw new RangeError("Invalid time value");
|
|
1087
|
+
const d = Object.assign({}, t, {
|
|
1088
|
+
addSuffix: t?.addSuffix,
|
|
1089
|
+
comparison: o
|
|
1088
1090
|
});
|
|
1089
|
-
const [l, u] = normalizeDates(
|
|
1091
|
+
const [l, u] = normalizeDates(t?.in, ...o > 0 ? [ e, n ] : [ n, e ]);
|
|
1090
1092
|
const h = differenceInSeconds(u, l);
|
|
1091
1093
|
const m = (getTimezoneOffsetInMilliseconds(u) - getTimezoneOffsetInMilliseconds(l)) / 1e3;
|
|
1092
1094
|
const f = Math.round((h - m) / 60);
|
|
1093
1095
|
let g;
|
|
1094
1096
|
// 0 up to 2 mins
|
|
1095
1097
|
if (f < 2) {
|
|
1096
|
-
if (
|
|
1098
|
+
if (t?.includeSeconds) {
|
|
1097
1099
|
if (h < 5) {
|
|
1098
|
-
return
|
|
1100
|
+
return i.formatDistance("lessThanXSeconds", 5, d);
|
|
1099
1101
|
} else if (h < 10) {
|
|
1100
|
-
return
|
|
1102
|
+
return i.formatDistance("lessThanXSeconds", 10, d);
|
|
1101
1103
|
} else if (h < 20) {
|
|
1102
|
-
return
|
|
1104
|
+
return i.formatDistance("lessThanXSeconds", 20, d);
|
|
1103
1105
|
} else if (h < 40) {
|
|
1104
|
-
return
|
|
1106
|
+
return i.formatDistance("halfAMinute", 0, d);
|
|
1105
1107
|
} else if (h < 60) {
|
|
1106
|
-
return
|
|
1108
|
+
return i.formatDistance("lessThanXMinutes", 1, d);
|
|
1107
1109
|
} else {
|
|
1108
|
-
return
|
|
1110
|
+
return i.formatDistance("xMinutes", 1, d);
|
|
1109
1111
|
}
|
|
1110
1112
|
} else {
|
|
1111
1113
|
if (f === 0) {
|
|
1112
|
-
return
|
|
1114
|
+
return i.formatDistance("lessThanXMinutes", 1, d);
|
|
1113
1115
|
} else {
|
|
1114
|
-
return
|
|
1116
|
+
return i.formatDistance("xMinutes", f, d);
|
|
1115
1117
|
}
|
|
1116
1118
|
}
|
|
1117
1119
|
// 2 mins up to 0.75 hrs
|
|
1118
1120
|
} else if (f < 45) {
|
|
1119
|
-
return
|
|
1121
|
+
return i.formatDistance("xMinutes", f, d);
|
|
1120
1122
|
// 0.75 hrs up to 1.5 hrs
|
|
1121
1123
|
} else if (f < 90) {
|
|
1122
|
-
return
|
|
1124
|
+
return i.formatDistance("aboutXHours", 1, d);
|
|
1123
1125
|
// 1.5 hrs up to 24 hrs
|
|
1124
|
-
} else if (f <
|
|
1125
|
-
const
|
|
1126
|
-
return
|
|
1126
|
+
} else if (f < c) {
|
|
1127
|
+
const n = Math.round(f / 60);
|
|
1128
|
+
return i.formatDistance("aboutXHours", n, d);
|
|
1127
1129
|
// 1 day up to 1.75 days
|
|
1128
1130
|
} else if (f < r) {
|
|
1129
|
-
return
|
|
1131
|
+
return i.formatDistance("xDays", 1, d);
|
|
1130
1132
|
// 1.75 days up to 30 days
|
|
1131
|
-
} else if (f <
|
|
1132
|
-
const
|
|
1133
|
-
return
|
|
1133
|
+
} else if (f < s) {
|
|
1134
|
+
const n = Math.round(f / c);
|
|
1135
|
+
return i.formatDistance("xDays", n, d);
|
|
1134
1136
|
// 1 month up to 2 months
|
|
1135
|
-
} else if (f <
|
|
1136
|
-
g = Math.round(f /
|
|
1137
|
-
return
|
|
1137
|
+
} else if (f < s * 2) {
|
|
1138
|
+
g = Math.round(f / s);
|
|
1139
|
+
return i.formatDistance("aboutXMonths", g, d);
|
|
1138
1140
|
}
|
|
1139
1141
|
g = differenceInMonths(u, l);
|
|
1140
1142
|
// 2 months up to 12 months
|
|
1141
1143
|
if (g < 12) {
|
|
1142
|
-
const
|
|
1143
|
-
return
|
|
1144
|
+
const n = Math.round(f / s);
|
|
1145
|
+
return i.formatDistance("xMonths", n, d);
|
|
1144
1146
|
// 1 year up to max Date
|
|
1145
1147
|
} else {
|
|
1146
|
-
const
|
|
1147
|
-
const
|
|
1148
|
+
const n = g % 12;
|
|
1149
|
+
const e = Math.trunc(g / 12);
|
|
1148
1150
|
// N years up to 1 years 3 months
|
|
1149
|
-
if (
|
|
1150
|
-
return
|
|
1151
|
+
if (n < 3) {
|
|
1152
|
+
return i.formatDistance("aboutXYears", e, d);
|
|
1151
1153
|
// N years 3 months up to N years 9 months
|
|
1152
|
-
} else if (
|
|
1153
|
-
return
|
|
1154
|
+
} else if (n < 9) {
|
|
1155
|
+
return i.formatDistance("overXYears", e, d);
|
|
1154
1156
|
// N years 9 months up to N year 12 months
|
|
1155
1157
|
} else {
|
|
1156
|
-
return
|
|
1158
|
+
return i.formatDistance("almostXYears", e + 1, d);
|
|
1157
1159
|
}
|
|
1158
1160
|
}
|
|
1159
1161
|
}
|
|
@@ -1241,8 +1243,8 @@ const A = {
|
|
|
1241
1243
|
* {locale: eoLocale}
|
|
1242
1244
|
* )
|
|
1243
1245
|
* //=> 'pli ol 1 jaro'
|
|
1244
|
-
*/ function formatDistanceToNow(
|
|
1245
|
-
return formatDistance$2(
|
|
1246
|
+
*/ function formatDistanceToNow(n, e) {
|
|
1247
|
+
return formatDistance$2(n, constructNow(n), e);
|
|
1246
1248
|
}
|
|
1247
1249
|
|
|
1248
1250
|
/**
|
|
@@ -1279,12 +1281,12 @@ const A = {
|
|
|
1279
1281
|
* // Are 1 January 2014 and 1 January 2015 in the same week?
|
|
1280
1282
|
* const result = isSameWeek(new Date(2014, 0, 1), new Date(2015, 0, 1))
|
|
1281
1283
|
* //=> false
|
|
1282
|
-
*/ function isSameWeek(e, t
|
|
1283
|
-
const [a,
|
|
1284
|
-
return +startOfWeek(a,
|
|
1284
|
+
*/ function isSameWeek(n, e, t) {
|
|
1285
|
+
const [a, i] = normalizeDates(t?.in, n, e);
|
|
1286
|
+
return +startOfWeek(a, t) === +startOfWeek(i, t);
|
|
1285
1287
|
}
|
|
1286
1288
|
|
|
1287
|
-
const
|
|
1289
|
+
const O = {
|
|
1288
1290
|
lessThanXSeconds: {
|
|
1289
1291
|
one: "1秒未満",
|
|
1290
1292
|
other: "{{count}}秒未満",
|
|
@@ -1352,27 +1354,27 @@ const I = {
|
|
|
1352
1354
|
}
|
|
1353
1355
|
};
|
|
1354
1356
|
|
|
1355
|
-
const formatDistance$1 = (e, t
|
|
1356
|
-
|
|
1357
|
+
const formatDistance$1 = (n, e, t) => {
|
|
1358
|
+
t = t || {};
|
|
1357
1359
|
let a;
|
|
1358
|
-
const
|
|
1359
|
-
if (typeof
|
|
1360
|
-
a =
|
|
1361
|
-
} else if (
|
|
1362
|
-
if (
|
|
1363
|
-
a =
|
|
1360
|
+
const i = O[n];
|
|
1361
|
+
if (typeof i === "string") {
|
|
1362
|
+
a = i;
|
|
1363
|
+
} else if (e === 1) {
|
|
1364
|
+
if (t.addSuffix && i.oneWithSuffix) {
|
|
1365
|
+
a = i.oneWithSuffix;
|
|
1364
1366
|
} else {
|
|
1365
|
-
a =
|
|
1367
|
+
a = i.one;
|
|
1366
1368
|
}
|
|
1367
1369
|
} else {
|
|
1368
|
-
if (
|
|
1369
|
-
a =
|
|
1370
|
+
if (t.addSuffix && i.otherWithSuffix) {
|
|
1371
|
+
a = i.otherWithSuffix.replace("{{count}}", String(e));
|
|
1370
1372
|
} else {
|
|
1371
|
-
a =
|
|
1373
|
+
a = i.other.replace("{{count}}", String(e));
|
|
1372
1374
|
}
|
|
1373
1375
|
}
|
|
1374
|
-
if (
|
|
1375
|
-
if (
|
|
1376
|
+
if (t.addSuffix) {
|
|
1377
|
+
if (t.comparison && t.comparison > 0) {
|
|
1376
1378
|
return a + "後";
|
|
1377
1379
|
} else {
|
|
1378
1380
|
return a + "前";
|
|
@@ -1381,38 +1383,38 @@ const formatDistance$1 = (e, t, n) => {
|
|
|
1381
1383
|
return a;
|
|
1382
1384
|
};
|
|
1383
1385
|
|
|
1384
|
-
const
|
|
1386
|
+
const N = {
|
|
1385
1387
|
full: "y年M月d日EEEE",
|
|
1386
1388
|
long: "y年M月d日",
|
|
1387
1389
|
medium: "y/MM/dd",
|
|
1388
1390
|
short: "y/MM/dd"
|
|
1389
1391
|
};
|
|
1390
1392
|
|
|
1391
|
-
const
|
|
1393
|
+
const E = {
|
|
1392
1394
|
full: "H時mm分ss秒 zzzz",
|
|
1393
1395
|
long: "H:mm:ss z",
|
|
1394
1396
|
medium: "H:mm:ss",
|
|
1395
1397
|
short: "H:mm"
|
|
1396
1398
|
};
|
|
1397
1399
|
|
|
1398
|
-
const
|
|
1400
|
+
const Y = {
|
|
1399
1401
|
full: "{{date}} {{time}}",
|
|
1400
1402
|
long: "{{date}} {{time}}",
|
|
1401
1403
|
medium: "{{date}} {{time}}",
|
|
1402
1404
|
short: "{{date}} {{time}}"
|
|
1403
1405
|
};
|
|
1404
1406
|
|
|
1405
|
-
const
|
|
1407
|
+
const q = {
|
|
1406
1408
|
date: buildFormatLongFn({
|
|
1407
|
-
formats:
|
|
1409
|
+
formats: N,
|
|
1408
1410
|
defaultWidth: "full"
|
|
1409
1411
|
}),
|
|
1410
1412
|
time: buildFormatLongFn({
|
|
1411
|
-
formats:
|
|
1413
|
+
formats: E,
|
|
1412
1414
|
defaultWidth: "full"
|
|
1413
1415
|
}),
|
|
1414
1416
|
dateTime: buildFormatLongFn({
|
|
1415
|
-
formats:
|
|
1417
|
+
formats: Y,
|
|
1416
1418
|
defaultWidth: "full"
|
|
1417
1419
|
})
|
|
1418
1420
|
};
|
|
@@ -1426,34 +1428,34 @@ const H = {
|
|
|
1426
1428
|
other: "P"
|
|
1427
1429
|
};
|
|
1428
1430
|
|
|
1429
|
-
const formatRelative$1 = (e, t,
|
|
1431
|
+
const formatRelative$1 = (n, e, t, a) => H[n];
|
|
1430
1432
|
|
|
1431
|
-
const
|
|
1433
|
+
const $ = {
|
|
1432
1434
|
narrow: [ "BC", "AC" ],
|
|
1433
1435
|
abbreviated: [ "紀元前", "西暦" ],
|
|
1434
1436
|
wide: [ "紀元前", "西暦" ]
|
|
1435
1437
|
};
|
|
1436
1438
|
|
|
1437
|
-
const
|
|
1439
|
+
const J = {
|
|
1438
1440
|
narrow: [ "1", "2", "3", "4" ],
|
|
1439
1441
|
abbreviated: [ "Q1", "Q2", "Q3", "Q4" ],
|
|
1440
1442
|
wide: [ "第1四半期", "第2四半期", "第3四半期", "第4四半期" ]
|
|
1441
1443
|
};
|
|
1442
1444
|
|
|
1443
|
-
const
|
|
1445
|
+
const Q = {
|
|
1444
1446
|
narrow: [ "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12" ],
|
|
1445
1447
|
abbreviated: [ "1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月" ],
|
|
1446
1448
|
wide: [ "1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月" ]
|
|
1447
1449
|
};
|
|
1448
1450
|
|
|
1449
|
-
const
|
|
1451
|
+
const R = {
|
|
1450
1452
|
narrow: [ "日", "月", "火", "水", "木", "金", "土" ],
|
|
1451
1453
|
short: [ "日", "月", "火", "水", "木", "金", "土" ],
|
|
1452
1454
|
abbreviated: [ "日", "月", "火", "水", "木", "金", "土" ],
|
|
1453
1455
|
wide: [ "日曜日", "月曜日", "火曜日", "水曜日", "木曜日", "金曜日", "土曜日" ]
|
|
1454
1456
|
};
|
|
1455
1457
|
|
|
1456
|
-
const
|
|
1458
|
+
const B = {
|
|
1457
1459
|
narrow: {
|
|
1458
1460
|
am: "午前",
|
|
1459
1461
|
pm: "午後",
|
|
@@ -1486,7 +1488,7 @@ const R = {
|
|
|
1486
1488
|
}
|
|
1487
1489
|
};
|
|
1488
1490
|
|
|
1489
|
-
const
|
|
1491
|
+
const V = {
|
|
1490
1492
|
narrow: {
|
|
1491
1493
|
am: "午前",
|
|
1492
1494
|
pm: "午後",
|
|
@@ -1519,117 +1521,117 @@ const B = {
|
|
|
1519
1521
|
}
|
|
1520
1522
|
};
|
|
1521
1523
|
|
|
1522
|
-
const ordinalNumber$1 = (
|
|
1523
|
-
const
|
|
1524
|
-
const a = String(
|
|
1524
|
+
const ordinalNumber$1 = (n, e) => {
|
|
1525
|
+
const t = Number(n);
|
|
1526
|
+
const a = String(e?.unit);
|
|
1525
1527
|
switch (a) {
|
|
1526
1528
|
case "year":
|
|
1527
|
-
return `${
|
|
1529
|
+
return `${t}年`;
|
|
1528
1530
|
|
|
1529
1531
|
case "quarter":
|
|
1530
|
-
return `第${
|
|
1532
|
+
return `第${t}四半期`;
|
|
1531
1533
|
|
|
1532
1534
|
case "month":
|
|
1533
|
-
return `${
|
|
1535
|
+
return `${t}月`;
|
|
1534
1536
|
|
|
1535
1537
|
case "week":
|
|
1536
|
-
return `第${
|
|
1538
|
+
return `第${t}週`;
|
|
1537
1539
|
|
|
1538
1540
|
case "date":
|
|
1539
|
-
return `${
|
|
1541
|
+
return `${t}日`;
|
|
1540
1542
|
|
|
1541
1543
|
case "hour":
|
|
1542
|
-
return `${
|
|
1544
|
+
return `${t}時`;
|
|
1543
1545
|
|
|
1544
1546
|
case "minute":
|
|
1545
|
-
return `${
|
|
1547
|
+
return `${t}分`;
|
|
1546
1548
|
|
|
1547
1549
|
case "second":
|
|
1548
|
-
return `${
|
|
1550
|
+
return `${t}秒`;
|
|
1549
1551
|
|
|
1550
1552
|
default:
|
|
1551
|
-
return `${
|
|
1553
|
+
return `${t}`;
|
|
1552
1554
|
}
|
|
1553
1555
|
};
|
|
1554
1556
|
|
|
1555
|
-
const
|
|
1557
|
+
const K = {
|
|
1556
1558
|
ordinalNumber: ordinalNumber$1,
|
|
1557
1559
|
era: buildLocalizeFn({
|
|
1558
|
-
values:
|
|
1560
|
+
values: $,
|
|
1559
1561
|
defaultWidth: "wide"
|
|
1560
1562
|
}),
|
|
1561
1563
|
quarter: buildLocalizeFn({
|
|
1562
|
-
values:
|
|
1564
|
+
values: J,
|
|
1563
1565
|
defaultWidth: "wide",
|
|
1564
|
-
argumentCallback:
|
|
1566
|
+
argumentCallback: n => Number(n) - 1
|
|
1565
1567
|
}),
|
|
1566
1568
|
month: buildLocalizeFn({
|
|
1567
|
-
values:
|
|
1569
|
+
values: Q,
|
|
1568
1570
|
defaultWidth: "wide"
|
|
1569
1571
|
}),
|
|
1570
1572
|
day: buildLocalizeFn({
|
|
1571
|
-
values:
|
|
1573
|
+
values: R,
|
|
1572
1574
|
defaultWidth: "wide"
|
|
1573
1575
|
}),
|
|
1574
1576
|
dayPeriod: buildLocalizeFn({
|
|
1575
|
-
values:
|
|
1577
|
+
values: B,
|
|
1576
1578
|
defaultWidth: "wide",
|
|
1577
|
-
formattingValues:
|
|
1579
|
+
formattingValues: V,
|
|
1578
1580
|
defaultFormattingWidth: "wide"
|
|
1579
1581
|
})
|
|
1580
1582
|
};
|
|
1581
1583
|
|
|
1582
|
-
const
|
|
1584
|
+
const G = /^第?\d+(年|四半期|月|週|日|時|分|秒)?/i;
|
|
1583
1585
|
|
|
1584
|
-
const
|
|
1586
|
+
const U = /\d+/i;
|
|
1585
1587
|
|
|
1586
|
-
const
|
|
1588
|
+
const Z = {
|
|
1587
1589
|
narrow: /^(B\.?C\.?|A\.?D\.?)/i,
|
|
1588
1590
|
abbreviated: /^(紀元[前後]|西暦)/i,
|
|
1589
1591
|
wide: /^(紀元[前後]|西暦)/i
|
|
1590
1592
|
};
|
|
1591
1593
|
|
|
1592
|
-
const
|
|
1594
|
+
const nn = {
|
|
1593
1595
|
narrow: [ /^B/i, /^A/i ],
|
|
1594
1596
|
any: [ /^(紀元前)/i, /^(西暦|紀元後)/i ]
|
|
1595
1597
|
};
|
|
1596
1598
|
|
|
1597
|
-
const
|
|
1599
|
+
const en = {
|
|
1598
1600
|
narrow: /^[1234]/i,
|
|
1599
1601
|
abbreviated: /^Q[1234]/i,
|
|
1600
1602
|
wide: /^第[1234一二三四1234]四半期/i
|
|
1601
1603
|
};
|
|
1602
1604
|
|
|
1603
|
-
const
|
|
1605
|
+
const tn = {
|
|
1604
1606
|
any: [ /(1|一|1)/i, /(2|二|2)/i, /(3|三|3)/i, /(4|四|4)/i ]
|
|
1605
1607
|
};
|
|
1606
1608
|
|
|
1607
|
-
const
|
|
1609
|
+
const an = {
|
|
1608
1610
|
narrow: /^([123456789]|1[012])/,
|
|
1609
1611
|
abbreviated: /^([123456789]|1[012])月/i,
|
|
1610
1612
|
wide: /^([123456789]|1[012])月/i
|
|
1611
1613
|
};
|
|
1612
1614
|
|
|
1613
|
-
const
|
|
1615
|
+
const rn = {
|
|
1614
1616
|
any: [ /^1\D/, /^2/, /^3/, /^4/, /^5/, /^6/, /^7/, /^8/, /^9/, /^10/, /^11/, /^12/ ]
|
|
1615
1617
|
};
|
|
1616
1618
|
|
|
1617
|
-
const
|
|
1619
|
+
const on = {
|
|
1618
1620
|
narrow: /^[日月火水木金土]/,
|
|
1619
1621
|
short: /^[日月火水木金土]/,
|
|
1620
1622
|
abbreviated: /^[日月火水木金土]/,
|
|
1621
1623
|
wide: /^[日月火水木金土]曜日/
|
|
1622
1624
|
};
|
|
1623
1625
|
|
|
1624
|
-
const
|
|
1626
|
+
const sn = {
|
|
1625
1627
|
any: [ /^日/, /^月/, /^火/, /^水/, /^木/, /^金/, /^土/ ]
|
|
1626
1628
|
};
|
|
1627
1629
|
|
|
1628
|
-
const
|
|
1630
|
+
const cn = {
|
|
1629
1631
|
any: /^(AM|PM|午前|午後|正午|深夜|真夜中|夜|朝)/i
|
|
1630
1632
|
};
|
|
1631
1633
|
|
|
1632
|
-
const
|
|
1634
|
+
const dn = {
|
|
1633
1635
|
any: {
|
|
1634
1636
|
am: /^(A|午前)/i,
|
|
1635
1637
|
pm: /^(P|午後)/i,
|
|
@@ -1642,43 +1644,43 @@ const se = {
|
|
|
1642
1644
|
}
|
|
1643
1645
|
};
|
|
1644
1646
|
|
|
1645
|
-
const
|
|
1647
|
+
const ln = {
|
|
1646
1648
|
ordinalNumber: buildMatchPatternFn({
|
|
1647
|
-
matchPattern:
|
|
1648
|
-
parsePattern:
|
|
1649
|
-
valueCallback: function(
|
|
1650
|
-
return parseInt(
|
|
1649
|
+
matchPattern: G,
|
|
1650
|
+
parsePattern: U,
|
|
1651
|
+
valueCallback: function(n) {
|
|
1652
|
+
return parseInt(n, 10);
|
|
1651
1653
|
}
|
|
1652
1654
|
}),
|
|
1653
1655
|
era: buildMatchFn({
|
|
1654
|
-
matchPatterns:
|
|
1656
|
+
matchPatterns: Z,
|
|
1655
1657
|
defaultMatchWidth: "wide",
|
|
1656
|
-
parsePatterns:
|
|
1658
|
+
parsePatterns: nn,
|
|
1657
1659
|
defaultParseWidth: "any"
|
|
1658
1660
|
}),
|
|
1659
1661
|
quarter: buildMatchFn({
|
|
1660
|
-
matchPatterns:
|
|
1662
|
+
matchPatterns: en,
|
|
1661
1663
|
defaultMatchWidth: "wide",
|
|
1662
|
-
parsePatterns:
|
|
1664
|
+
parsePatterns: tn,
|
|
1663
1665
|
defaultParseWidth: "any",
|
|
1664
|
-
valueCallback:
|
|
1666
|
+
valueCallback: n => n + 1
|
|
1665
1667
|
}),
|
|
1666
1668
|
month: buildMatchFn({
|
|
1667
|
-
matchPatterns:
|
|
1669
|
+
matchPatterns: an,
|
|
1668
1670
|
defaultMatchWidth: "wide",
|
|
1669
|
-
parsePatterns:
|
|
1671
|
+
parsePatterns: rn,
|
|
1670
1672
|
defaultParseWidth: "any"
|
|
1671
1673
|
}),
|
|
1672
1674
|
day: buildMatchFn({
|
|
1673
|
-
matchPatterns:
|
|
1675
|
+
matchPatterns: on,
|
|
1674
1676
|
defaultMatchWidth: "wide",
|
|
1675
|
-
parsePatterns:
|
|
1677
|
+
parsePatterns: sn,
|
|
1676
1678
|
defaultParseWidth: "any"
|
|
1677
1679
|
}),
|
|
1678
1680
|
dayPeriod: buildMatchFn({
|
|
1679
|
-
matchPatterns:
|
|
1681
|
+
matchPatterns: cn,
|
|
1680
1682
|
defaultMatchWidth: "any",
|
|
1681
|
-
parsePatterns:
|
|
1683
|
+
parsePatterns: dn,
|
|
1682
1684
|
defaultParseWidth: "any"
|
|
1683
1685
|
})
|
|
1684
1686
|
};
|
|
@@ -1693,20 +1695,20 @@ const ce = {
|
|
|
1693
1695
|
* @author Luca Ban [@mesqueeb](https://github.com/mesqueeb)
|
|
1694
1696
|
* @author Terrence Lam [@skyuplam](https://github.com/skyuplam)
|
|
1695
1697
|
* @author Taiki IKeda [@so99ynoodles](https://github.com/so99ynoodles)
|
|
1696
|
-
*/ const
|
|
1698
|
+
*/ const un = {
|
|
1697
1699
|
code: "ja",
|
|
1698
1700
|
formatDistance: formatDistance$1,
|
|
1699
|
-
formatLong:
|
|
1701
|
+
formatLong: q,
|
|
1700
1702
|
formatRelative: formatRelative$1,
|
|
1701
|
-
localize:
|
|
1702
|
-
match:
|
|
1703
|
+
localize: K,
|
|
1704
|
+
match: ln,
|
|
1703
1705
|
options: {
|
|
1704
1706
|
weekStartsOn: 0 /* Sunday */ ,
|
|
1705
1707
|
firstWeekContainsDate: 1
|
|
1706
1708
|
}
|
|
1707
1709
|
};
|
|
1708
1710
|
|
|
1709
|
-
const
|
|
1711
|
+
const hn = {
|
|
1710
1712
|
lessThanXSeconds: {
|
|
1711
1713
|
one: "不到 1 秒",
|
|
1712
1714
|
other: "不到 {{count}} 秒"
|
|
@@ -1770,18 +1772,18 @@ const le = {
|
|
|
1770
1772
|
}
|
|
1771
1773
|
};
|
|
1772
1774
|
|
|
1773
|
-
const formatDistance = (e, t
|
|
1775
|
+
const formatDistance = (n, e, t) => {
|
|
1774
1776
|
let a;
|
|
1775
|
-
const
|
|
1776
|
-
if (typeof
|
|
1777
|
-
a =
|
|
1778
|
-
} else if (
|
|
1779
|
-
a =
|
|
1777
|
+
const i = hn[n];
|
|
1778
|
+
if (typeof i === "string") {
|
|
1779
|
+
a = i;
|
|
1780
|
+
} else if (e === 1) {
|
|
1781
|
+
a = i.one;
|
|
1780
1782
|
} else {
|
|
1781
|
-
a =
|
|
1783
|
+
a = i.other.replace("{{count}}", String(e));
|
|
1782
1784
|
}
|
|
1783
|
-
if (
|
|
1784
|
-
if (
|
|
1785
|
+
if (t?.addSuffix) {
|
|
1786
|
+
if (t.comparison && t.comparison > 0) {
|
|
1785
1787
|
return a + "内";
|
|
1786
1788
|
} else {
|
|
1787
1789
|
return a + "前";
|
|
@@ -1790,48 +1792,48 @@ const formatDistance = (e, t, n) => {
|
|
|
1790
1792
|
return a;
|
|
1791
1793
|
};
|
|
1792
1794
|
|
|
1793
|
-
const
|
|
1795
|
+
const mn = {
|
|
1794
1796
|
full: "y'年'M'月'd'日' EEEE",
|
|
1795
1797
|
long: "y'年'M'月'd'日'",
|
|
1796
1798
|
medium: "yyyy-MM-dd",
|
|
1797
1799
|
short: "yy-MM-dd"
|
|
1798
1800
|
};
|
|
1799
1801
|
|
|
1800
|
-
const
|
|
1802
|
+
const fn = {
|
|
1801
1803
|
full: "zzzz a h:mm:ss",
|
|
1802
1804
|
long: "z a h:mm:ss",
|
|
1803
1805
|
medium: "a h:mm:ss",
|
|
1804
1806
|
short: "a h:mm"
|
|
1805
1807
|
};
|
|
1806
1808
|
|
|
1807
|
-
const
|
|
1809
|
+
const gn = {
|
|
1808
1810
|
full: "{{date}} {{time}}",
|
|
1809
1811
|
long: "{{date}} {{time}}",
|
|
1810
1812
|
medium: "{{date}} {{time}}",
|
|
1811
1813
|
short: "{{date}} {{time}}"
|
|
1812
1814
|
};
|
|
1813
1815
|
|
|
1814
|
-
const
|
|
1816
|
+
const bn = {
|
|
1815
1817
|
date: buildFormatLongFn({
|
|
1816
|
-
formats:
|
|
1818
|
+
formats: mn,
|
|
1817
1819
|
defaultWidth: "full"
|
|
1818
1820
|
}),
|
|
1819
1821
|
time: buildFormatLongFn({
|
|
1820
|
-
formats:
|
|
1822
|
+
formats: fn,
|
|
1821
1823
|
defaultWidth: "full"
|
|
1822
1824
|
}),
|
|
1823
1825
|
dateTime: buildFormatLongFn({
|
|
1824
|
-
formats:
|
|
1826
|
+
formats: gn,
|
|
1825
1827
|
defaultWidth: "full"
|
|
1826
1828
|
})
|
|
1827
1829
|
};
|
|
1828
1830
|
|
|
1829
|
-
function checkWeek(e, t
|
|
1831
|
+
function checkWeek(n, e, t) {
|
|
1830
1832
|
const a = "eeee p";
|
|
1831
|
-
if (isSameWeek(e, t
|
|
1833
|
+
if (isSameWeek(n, e, t)) {
|
|
1832
1834
|
return a;
|
|
1833
1835
|
// in same week
|
|
1834
|
-
} else if (
|
|
1836
|
+
} else if (n.getTime() > e.getTime()) {
|
|
1835
1837
|
return "'下个'" + a;
|
|
1836
1838
|
// in next week
|
|
1837
1839
|
}
|
|
@@ -1839,7 +1841,7 @@ function checkWeek(e, t, n) {
|
|
|
1839
1841
|
// in last week
|
|
1840
1842
|
}
|
|
1841
1843
|
|
|
1842
|
-
const
|
|
1844
|
+
const pn = {
|
|
1843
1845
|
lastWeek: checkWeek,
|
|
1844
1846
|
// days before yesterday, maybe in this week or last week
|
|
1845
1847
|
yesterday: "'昨天' p",
|
|
@@ -1850,40 +1852,40 @@ const ge = {
|
|
|
1850
1852
|
other: "PP p"
|
|
1851
1853
|
};
|
|
1852
1854
|
|
|
1853
|
-
const formatRelative = (e, t,
|
|
1854
|
-
const
|
|
1855
|
-
if (typeof
|
|
1856
|
-
return
|
|
1855
|
+
const formatRelative = (n, e, t, a) => {
|
|
1856
|
+
const i = pn[n];
|
|
1857
|
+
if (typeof i === "function") {
|
|
1858
|
+
return i(e, t, a);
|
|
1857
1859
|
}
|
|
1858
|
-
return
|
|
1860
|
+
return i;
|
|
1859
1861
|
};
|
|
1860
1862
|
|
|
1861
|
-
const
|
|
1863
|
+
const yn = {
|
|
1862
1864
|
narrow: [ "前", "公元" ],
|
|
1863
1865
|
abbreviated: [ "前", "公元" ],
|
|
1864
1866
|
wide: [ "公元前", "公元" ]
|
|
1865
1867
|
};
|
|
1866
1868
|
|
|
1867
|
-
const
|
|
1869
|
+
const wn = {
|
|
1868
1870
|
narrow: [ "1", "2", "3", "4" ],
|
|
1869
1871
|
abbreviated: [ "第一季", "第二季", "第三季", "第四季" ],
|
|
1870
1872
|
wide: [ "第一季度", "第二季度", "第三季度", "第四季度" ]
|
|
1871
1873
|
};
|
|
1872
1874
|
|
|
1873
|
-
const
|
|
1875
|
+
const vn = {
|
|
1874
1876
|
narrow: [ "一", "二", "三", "四", "五", "六", "七", "八", "九", "十", "十一", "十二" ],
|
|
1875
1877
|
abbreviated: [ "1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月" ],
|
|
1876
1878
|
wide: [ "一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月" ]
|
|
1877
1879
|
};
|
|
1878
1880
|
|
|
1879
|
-
const
|
|
1881
|
+
const _n = {
|
|
1880
1882
|
narrow: [ "日", "一", "二", "三", "四", "五", "六" ],
|
|
1881
1883
|
short: [ "日", "一", "二", "三", "四", "五", "六" ],
|
|
1882
1884
|
abbreviated: [ "周日", "周一", "周二", "周三", "周四", "周五", "周六" ],
|
|
1883
1885
|
wide: [ "星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六" ]
|
|
1884
1886
|
};
|
|
1885
1887
|
|
|
1886
|
-
const
|
|
1888
|
+
const Mn = {
|
|
1887
1889
|
narrow: {
|
|
1888
1890
|
am: "上",
|
|
1889
1891
|
pm: "下",
|
|
@@ -1916,7 +1918,7 @@ const ve = {
|
|
|
1916
1918
|
}
|
|
1917
1919
|
};
|
|
1918
1920
|
|
|
1919
|
-
const
|
|
1921
|
+
const kn = {
|
|
1920
1922
|
narrow: {
|
|
1921
1923
|
am: "上",
|
|
1922
1924
|
pm: "下",
|
|
@@ -1949,104 +1951,104 @@ const Me = {
|
|
|
1949
1951
|
}
|
|
1950
1952
|
};
|
|
1951
1953
|
|
|
1952
|
-
const ordinalNumber = (
|
|
1953
|
-
const
|
|
1954
|
-
switch (
|
|
1954
|
+
const ordinalNumber = (n, e) => {
|
|
1955
|
+
const t = Number(n);
|
|
1956
|
+
switch (e?.unit) {
|
|
1955
1957
|
case "date":
|
|
1956
|
-
return
|
|
1958
|
+
return t.toString() + "日";
|
|
1957
1959
|
|
|
1958
1960
|
case "hour":
|
|
1959
|
-
return
|
|
1961
|
+
return t.toString() + "时";
|
|
1960
1962
|
|
|
1961
1963
|
case "minute":
|
|
1962
|
-
return
|
|
1964
|
+
return t.toString() + "分";
|
|
1963
1965
|
|
|
1964
1966
|
case "second":
|
|
1965
|
-
return
|
|
1967
|
+
return t.toString() + "秒";
|
|
1966
1968
|
|
|
1967
1969
|
default:
|
|
1968
|
-
return "第 " +
|
|
1970
|
+
return "第 " + t.toString();
|
|
1969
1971
|
}
|
|
1970
1972
|
};
|
|
1971
1973
|
|
|
1972
|
-
const
|
|
1974
|
+
const Wn = {
|
|
1973
1975
|
ordinalNumber,
|
|
1974
1976
|
era: buildLocalizeFn({
|
|
1975
|
-
values:
|
|
1977
|
+
values: yn,
|
|
1976
1978
|
defaultWidth: "wide"
|
|
1977
1979
|
}),
|
|
1978
1980
|
quarter: buildLocalizeFn({
|
|
1979
|
-
values:
|
|
1981
|
+
values: wn,
|
|
1980
1982
|
defaultWidth: "wide",
|
|
1981
|
-
argumentCallback:
|
|
1983
|
+
argumentCallback: n => n - 1
|
|
1982
1984
|
}),
|
|
1983
1985
|
month: buildLocalizeFn({
|
|
1984
|
-
values:
|
|
1986
|
+
values: vn,
|
|
1985
1987
|
defaultWidth: "wide"
|
|
1986
1988
|
}),
|
|
1987
1989
|
day: buildLocalizeFn({
|
|
1988
|
-
values:
|
|
1990
|
+
values: _n,
|
|
1989
1991
|
defaultWidth: "wide"
|
|
1990
1992
|
}),
|
|
1991
1993
|
dayPeriod: buildLocalizeFn({
|
|
1992
|
-
values:
|
|
1994
|
+
values: Mn,
|
|
1993
1995
|
defaultWidth: "wide",
|
|
1994
|
-
formattingValues:
|
|
1996
|
+
formattingValues: kn,
|
|
1995
1997
|
defaultFormattingWidth: "wide"
|
|
1996
1998
|
})
|
|
1997
1999
|
};
|
|
1998
2000
|
|
|
1999
|
-
const
|
|
2001
|
+
const xn = /^(第\s*)?\d+(日|时|分|秒)?/i;
|
|
2000
2002
|
|
|
2001
|
-
const
|
|
2003
|
+
const Fn = /\d+/i;
|
|
2002
2004
|
|
|
2003
|
-
const
|
|
2005
|
+
const Pn = {
|
|
2004
2006
|
narrow: /^(前)/i,
|
|
2005
2007
|
abbreviated: /^(前)/i,
|
|
2006
2008
|
wide: /^(公元前|公元)/i
|
|
2007
2009
|
};
|
|
2008
2010
|
|
|
2009
|
-
const
|
|
2011
|
+
const zn = {
|
|
2010
2012
|
any: [ /^(前)/i, /^(公元)/i ]
|
|
2011
2013
|
};
|
|
2012
2014
|
|
|
2013
|
-
const
|
|
2015
|
+
const Dn = {
|
|
2014
2016
|
narrow: /^[1234]/i,
|
|
2015
2017
|
abbreviated: /^第[一二三四]刻/i,
|
|
2016
2018
|
wide: /^第[一二三四]刻钟/i
|
|
2017
2019
|
};
|
|
2018
2020
|
|
|
2019
|
-
const
|
|
2021
|
+
const Sn = {
|
|
2020
2022
|
any: [ /(1|一)/i, /(2|二)/i, /(3|三)/i, /(4|四)/i ]
|
|
2021
2023
|
};
|
|
2022
2024
|
|
|
2023
|
-
const
|
|
2025
|
+
const Tn = {
|
|
2024
2026
|
narrow: /^(一|二|三|四|五|六|七|八|九|十[二一])/i,
|
|
2025
2027
|
abbreviated: /^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,
|
|
2026
2028
|
wide: /^(一|二|三|四|五|六|七|八|九|十[二一])月/i
|
|
2027
2029
|
};
|
|
2028
2030
|
|
|
2029
|
-
const
|
|
2031
|
+
const Cn = {
|
|
2030
2032
|
narrow: [ /^一/i, /^二/i, /^三/i, /^四/i, /^五/i, /^六/i, /^七/i, /^八/i, /^九/i, /^十(?!(一|二))/i, /^十一/i, /^十二/i ],
|
|
2031
2033
|
any: [ /^一|1/i, /^二|2/i, /^三|3/i, /^四|4/i, /^五|5/i, /^六|6/i, /^七|7/i, /^八|8/i, /^九|9/i, /^十(?!(一|二))|10/i, /^十一|11/i, /^十二|12/i ]
|
|
2032
2034
|
};
|
|
2033
2035
|
|
|
2034
|
-
const
|
|
2036
|
+
const Xn = {
|
|
2035
2037
|
narrow: /^[一二三四五六日]/i,
|
|
2036
2038
|
short: /^[一二三四五六日]/i,
|
|
2037
2039
|
abbreviated: /^周[一二三四五六日]/i,
|
|
2038
2040
|
wide: /^星期[一二三四五六日]/i
|
|
2039
2041
|
};
|
|
2040
2042
|
|
|
2041
|
-
const
|
|
2043
|
+
const Ln = {
|
|
2042
2044
|
any: [ /日/i, /一/i, /二/i, /三/i, /四/i, /五/i, /六/i ]
|
|
2043
2045
|
};
|
|
2044
2046
|
|
|
2045
|
-
const
|
|
2047
|
+
const jn = {
|
|
2046
2048
|
any: /^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i
|
|
2047
2049
|
};
|
|
2048
2050
|
|
|
2049
|
-
const
|
|
2051
|
+
const An = {
|
|
2050
2052
|
any: {
|
|
2051
2053
|
am: /^上午?/i,
|
|
2052
2054
|
pm: /^下午?/i,
|
|
@@ -2059,41 +2061,41 @@ const Le = {
|
|
|
2059
2061
|
}
|
|
2060
2062
|
};
|
|
2061
2063
|
|
|
2062
|
-
const
|
|
2064
|
+
const In = {
|
|
2063
2065
|
ordinalNumber: buildMatchPatternFn({
|
|
2064
|
-
matchPattern:
|
|
2065
|
-
parsePattern:
|
|
2066
|
-
valueCallback:
|
|
2066
|
+
matchPattern: xn,
|
|
2067
|
+
parsePattern: Fn,
|
|
2068
|
+
valueCallback: n => parseInt(n, 10)
|
|
2067
2069
|
}),
|
|
2068
2070
|
era: buildMatchFn({
|
|
2069
|
-
matchPatterns:
|
|
2071
|
+
matchPatterns: Pn,
|
|
2070
2072
|
defaultMatchWidth: "wide",
|
|
2071
|
-
parsePatterns:
|
|
2073
|
+
parsePatterns: zn,
|
|
2072
2074
|
defaultParseWidth: "any"
|
|
2073
2075
|
}),
|
|
2074
2076
|
quarter: buildMatchFn({
|
|
2075
|
-
matchPatterns:
|
|
2077
|
+
matchPatterns: Dn,
|
|
2076
2078
|
defaultMatchWidth: "wide",
|
|
2077
|
-
parsePatterns:
|
|
2079
|
+
parsePatterns: Sn,
|
|
2078
2080
|
defaultParseWidth: "any",
|
|
2079
|
-
valueCallback:
|
|
2081
|
+
valueCallback: n => n + 1
|
|
2080
2082
|
}),
|
|
2081
2083
|
month: buildMatchFn({
|
|
2082
|
-
matchPatterns:
|
|
2084
|
+
matchPatterns: Tn,
|
|
2083
2085
|
defaultMatchWidth: "wide",
|
|
2084
|
-
parsePatterns:
|
|
2086
|
+
parsePatterns: Cn,
|
|
2085
2087
|
defaultParseWidth: "any"
|
|
2086
2088
|
}),
|
|
2087
2089
|
day: buildMatchFn({
|
|
2088
|
-
matchPatterns:
|
|
2090
|
+
matchPatterns: Xn,
|
|
2089
2091
|
defaultMatchWidth: "wide",
|
|
2090
|
-
parsePatterns:
|
|
2092
|
+
parsePatterns: Ln,
|
|
2091
2093
|
defaultParseWidth: "any"
|
|
2092
2094
|
}),
|
|
2093
2095
|
dayPeriod: buildMatchFn({
|
|
2094
|
-
matchPatterns:
|
|
2096
|
+
matchPatterns: jn,
|
|
2095
2097
|
defaultMatchWidth: "any",
|
|
2096
|
-
parsePatterns:
|
|
2098
|
+
parsePatterns: An,
|
|
2097
2099
|
defaultParseWidth: "any"
|
|
2098
2100
|
})
|
|
2099
2101
|
};
|
|
@@ -2108,293 +2110,314 @@ const Ae = {
|
|
|
2108
2110
|
* @author sabrinaM [@sabrinamiao](https://github.com/sabrinamiao)
|
|
2109
2111
|
* @author Carney Wu [@cubicwork](https://github.com/cubicwork)
|
|
2110
2112
|
* @author Terrence Lam [@skyuplam](https://github.com/skyuplam)
|
|
2111
|
-
*/ const
|
|
2113
|
+
*/ const On = {
|
|
2112
2114
|
code: "zh-CN",
|
|
2113
2115
|
formatDistance,
|
|
2114
|
-
formatLong:
|
|
2116
|
+
formatLong: bn,
|
|
2115
2117
|
formatRelative,
|
|
2116
|
-
localize:
|
|
2117
|
-
match:
|
|
2118
|
+
localize: Wn,
|
|
2119
|
+
match: In,
|
|
2118
2120
|
options: {
|
|
2119
2121
|
weekStartsOn: 1 /* Monday */ ,
|
|
2120
2122
|
firstWeekContainsDate: 4
|
|
2121
2123
|
}
|
|
2122
2124
|
};
|
|
2123
2125
|
|
|
2124
|
-
const
|
|
2126
|
+
const Nn = '/*Gx Ide*/\n/*@container queries*/\n/* hiChar styles\nFound on /common/helpers.tsx hiChar function is used to add a span/class to every character that matches a search value. It is used to help the user see why the filter results are filtered. The span/class on the characters are useless without proper styling.\n*/\n:host {\n --spacing-body-block-start: var(--mer-spacing--lg);\n --spacing-body-block-end: var(--mer-spacing--lg);\n --spacing-body-inline-start: var(--mer-spacing--lg);\n --spacing-body-inline-end: var(--mer-spacing--lg);\n display: grid;\n block-size: 100%;\n overflow: auto;\n}\n\n.main {\n animation: fadeIn var(--mer-timing--fast) forwards;\n display: grid;\n block-size: 100%;\n overflow: auto;\n opacity: 0;\n grid-template-rows: max-content 1fr;\n gap: var(--mer-spacing--lg);\n}\n\n@keyframes bounce {\n 0% {\n transform: translateY(0);\n }\n 100% {\n transform: translateY(-30px);\n }\n}\n@keyframes fadeIn {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n.section-create-new-kb__actions,\n.section-secondary__actions {\n display: grid;\n grid-auto-flow: column;\n gap: var(--mer-spacing--md);\n overflow-x: auto;\n padding-block-end: var(--mer-spacing--xs);\n}\n\n.card-filled,\n.card-outlined {\n display: grid;\n gap: var(--mer-spacing--md);\n align-content: space-between;\n border-radius: var(--mer-border__radius--md);\n}\n\n.card-filled {\n background-color: var(--mer-surface__elevation--01);\n padding: var(--mer-spacing--md);\n}\n\n.card-outlined {\n border: var(--mer-border__width--sm) solid var(--mer-border-color__on-surface);\n grid-template-columns: max-content 1fr;\n align-items: center;\n padding: var(--mer-spacing--md) var(--mer-spacing--md) var(--mer-spacing--xs) var(--mer-spacing--md);\n}\n\n.icon-capsule {\n pointer-events: none;\n display: inline-flex;\n block-size: 40px;\n inline-size: 40px;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n border: var(--mer-border__width--sm) dashed var(--mer-border-color__on-elevation--02);\n}\n.icon-capsule .icon-circular {\n --ch-image-size: 20px;\n}\n\n.card__header {\n display: grid;\n gap: var(--mer-spacing--sm);\n justify-items: self-start;\n}\n\n.card__header-description {\n display: grid;\n gap: var(--mer-spacing--xs);\n --font-weight-regular: 300;\n}\n\n.section-create-new-kb {\n display: grid;\n grid-auto-rows: max-content;\n gap: var(--mer-spacing--lg);\n}\n.section-create-new-kb__header {\n display: grid;\n gap: var(--mer-spacing--xs);\n}\n.section-create-new-kb__title {\n color: var(--mer-text__bright);\n font-weight: 500;\n}\n.section-create-new-kb__actions {\n display: grid;\n gap: var(--mer-spacing--md);\n overflow-x: auto;\n grid-auto-flow: column;\n grid-auto-columns: 372px;\n}\n\n.samples-buttons-container {\n flex-wrap: wrap;\n}\n\n.section-secondary {\n display: grid;\n block-size: 100%;\n position: relative;\n overflow: auto;\n}\n.section-secondary__title {\n display: grid;\n grid-template-columns: 1fr max-content 1fr;\n gap: var(--mer-spacing--md);\n align-items: center;\n font-weight: 300;\n}\n.section-secondary__title::before, .section-secondary__title::after {\n content: "";\n block-size: var(--mer-border__width--sm);\n background-color: var(--mer-border-color__on-elevation--01);\n}\n.section-secondary__actions {\n display: grid;\n}\n.section-secondary__actions--two-cards {\n grid-template-columns: repeat(2, minmax(430px, 1fr));\n}\n.section-secondary__actions--multiple-cards {\n grid-auto-columns: 670px;\n}\n\n.section-no-kbs {\n display: grid;\n block-size: 100%;\n position: relative;\n overflow: auto;\n grid-template-rows: max-content max-content;\n gap: var(--mer-spacing--md);\n}\n\n.section-kbs {\n background-color: var(--mer-surface__elevation--01);\n border-radius: var(--mer-border__radius--sm);\n padding: var(--mer-spacing--sm);\n display: grid;\n container-type: inline-size;\n grid-template-rows: auto 1fr;\n overflow: hidden;\n}\n.section-kbs__header {\n display: grid;\n grid-template-columns: max-content 230px;\n align-items: center;\n gap: var(--mer-spacing--xl);\n border-block-end: var(--mer-border__width--sm) solid var(--mer-border-color__on-elevation--01);\n padding-block-end: var(--mer-spacing--sm);\n}\n.section-kbs__header--no-border {\n border-block-end-color: transparent !important;\n}\n.section-kbs__title {\n align-items: center;\n display: flex;\n min-block-size: 31px;\n}\n.section-kbs__filter--hidden {\n opacity: 0;\n}\n.section-kbs__list {\n display: grid;\n grid-auto-rows: max-content;\n grid-template-columns: 1fr 1fr;\n row-gap: var(--mer-spacing--xs);\n column-gap: var(--mer-spacing--md);\n overflow: auto;\n position: relative;\n padding-block-start: var(--mer-spacing--sm);\n}\n.section-kbs__list--empty {\n grid-template-columns: 1fr;\n grid-auto-rows: 1fr;\n overflow: hidden;\n}\n@container (max-width: 768px) {\n .section-kbs__list {\n grid-template-columns: 1fr;\n }\n}\n\n.kb__item {\n --font-weight-regular: 300;\n background-color: var(--mer-surface__elevation--02);\n padding: var(--mer-spacing--sm);\n display: grid;\n grid-template-columns: auto max-content;\n gap: var(--mer-spacing--3xl);\n}\n.kb__details {\n display: grid;\n grid-template-columns: max-content 1fr;\n align-items: center;\n gap: var(--mer-spacing--sm);\n}\n.kb__name {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n text-decoration: underline;\n cursor: pointer;\n display: inline-block;\n}\n.kb__name:hover {\n color: var(--mer-text__bright);\n}\n.kb__modified {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n text-align: end;\n font-variant-numeric: tabular-nums;\n}\n\n.hiChar {\n color: var(--mer-color__primary--200);\n filter: brightness(1.3);\n}\n\n.loader {\n border: var(--mer-border__width--sm) solid var(--mer-border-color__on-surface);\n}\n\n.heading-2,\n.heading-3 {\n margin: 0;\n font-weight: 600 !important;\n color: #ffffff !important;\n}\n\n.card-filled .heading-3 {\n color: var(--mer-text__on-surface) !important;\n}\n\n.text-body-regular-m,\n.card__footer {\n font-weight: var(--mer-font__weight--light) !important;\n --control__font-weight--regular: var(--mer-font__weight--light);\n}\n\n.card__header-description {\n --line-height-tight: 1.7;\n --font-weight-regular: 300;\n}\n\n.card__header-title {\n color: var(--mer-text__bright);\n}\n\n.button-tertiary-no-padding-inline-start.button-tertiary {\n padding-inline-start: 0;\n}';
|
|
2125
2127
|
|
|
2126
|
-
var
|
|
2127
|
-
if (
|
|
2128
|
-
if (typeof
|
|
2129
|
-
return
|
|
2128
|
+
var En = undefined && undefined.__classPrivateFieldGet || function(n, e, t, a) {
|
|
2129
|
+
if (t === "a" && !a) throw new TypeError("Private accessor was defined without a getter");
|
|
2130
|
+
if (typeof e === "function" ? n !== e || !a : !e.has(n)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
2131
|
+
return t === "m" ? a : t === "a" ? a.call(n) : a ? a.value : e.get(n);
|
|
2130
2132
|
};
|
|
2131
2133
|
|
|
2132
|
-
var
|
|
2134
|
+
var Yn = undefined && undefined.__classPrivateFieldSet || function(n, e, t, a, i) {
|
|
2133
2135
|
if (a === "m") throw new TypeError("Private method is not writable");
|
|
2134
|
-
if (a === "a" && !
|
|
2135
|
-
if (typeof
|
|
2136
|
-
return a === "a" ?
|
|
2136
|
+
if (a === "a" && !i) throw new TypeError("Private accessor was defined without a setter");
|
|
2137
|
+
if (typeof e === "function" ? n !== e || !i : !e.has(n)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
2138
|
+
return a === "a" ? i.call(n, t) : i ? i.value = t : e.set(n, t), t;
|
|
2137
2139
|
};
|
|
2138
2140
|
|
|
2139
|
-
var
|
|
2141
|
+
var qn, Hn, $n, Jn, Qn, Rn, Bn, Vn, Kn, Gn;
|
|
2140
2142
|
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
"zh-
|
|
2146
|
-
"zh-
|
|
2147
|
-
"zh-HK": je
|
|
2143
|
+
const Un = {
|
|
2144
|
+
en: I,
|
|
2145
|
+
ja: un,
|
|
2146
|
+
"zh-CN": On,
|
|
2147
|
+
"zh-TW": On,
|
|
2148
|
+
"zh-HK": On
|
|
2148
2149
|
};
|
|
2149
2150
|
|
|
2150
|
-
const
|
|
2151
|
+
const Zn = i({
|
|
2151
2152
|
category: "system",
|
|
2152
2153
|
name: "detail",
|
|
2153
2154
|
colorType: "primary"
|
|
2154
2155
|
});
|
|
2155
2156
|
|
|
2156
|
-
const
|
|
2157
|
+
const ne = i({
|
|
2157
2158
|
category: "window-tools",
|
|
2158
2159
|
name: "filter",
|
|
2159
2160
|
colorType: "on-elevation"
|
|
2160
2161
|
});
|
|
2161
2162
|
|
|
2162
|
-
const
|
|
2163
|
+
const ee = i({
|
|
2163
2164
|
category: "objects",
|
|
2164
2165
|
name: "knowledge-base"
|
|
2165
2166
|
});
|
|
2166
2167
|
|
|
2167
|
-
const
|
|
2168
|
+
const te = i({
|
|
2168
2169
|
category: "system",
|
|
2169
2170
|
name: "search",
|
|
2170
2171
|
colorType: "on-elevation"
|
|
2171
2172
|
});
|
|
2172
2173
|
|
|
2173
|
-
const
|
|
2174
|
+
const ae = [ "resets/box-sizing", "utils/typography", "utils/layout", "components/edit", "components/icon", "components/button", "chameleon/scrollbar", "utils/typography" ];
|
|
2174
2175
|
|
|
2175
|
-
const
|
|
2176
|
-
constructor(
|
|
2177
|
-
|
|
2178
|
-
|
|
2176
|
+
const ie = class {
|
|
2177
|
+
constructor(t) {
|
|
2178
|
+
n(this, t);
|
|
2179
|
+
qn.add(this);
|
|
2179
2180
|
/**
|
|
2180
2181
|
* The component hard-coded strings translations.
|
|
2181
2182
|
*/
|
|
2182
2183
|
// eslint-disable-next-line @stencil-community/own-props-must-be-private
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
this.createKBCallback(
|
|
2184
|
+
Hn.set(this, void 0);
|
|
2185
|
+
$n.set(this, void 0);
|
|
2186
|
+
Jn.set(this, (n => e => {
|
|
2187
|
+
e.stopPropagation();
|
|
2188
|
+
this.createKBCallback(n);
|
|
2188
2189
|
}));
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
this.openKbCallback(e);
|
|
2190
|
+
Qn.set(this, (n => {
|
|
2191
|
+
this.kbFilterValue = n.detail;
|
|
2192
2192
|
}));
|
|
2193
|
-
|
|
2194
|
-
|
|
2193
|
+
Rn.set(this, (n => e => {
|
|
2194
|
+
e.stopPropagation();
|
|
2195
|
+
this.openKbCallback(n);
|
|
2195
2196
|
}));
|
|
2196
|
-
|
|
2197
|
-
const
|
|
2198
|
-
const
|
|
2197
|
+
Vn.set(this, (() => {
|
|
2198
|
+
const n = this.kbs.length < this.kbsFilterThreshold;
|
|
2199
|
+
const t = this.filteredKbs.length === 0;
|
|
2199
2200
|
let a;
|
|
2200
2201
|
// Evaluate what is the content to display.
|
|
2201
2202
|
if (this.filteredKbs.length > 0) {
|
|
2202
|
-
a =
|
|
2203
|
+
a = En(this, Kn, "f").call(this);
|
|
2203
2204
|
} else {
|
|
2204
2205
|
// No kb has pass the filter. Display an empty-state.
|
|
2205
|
-
a =
|
|
2206
|
+
a = e("gx-ide-empty-state", {
|
|
2206
2207
|
isAnimated: true,
|
|
2207
|
-
stateIconSrc:
|
|
2208
|
-
stateTitle:
|
|
2208
|
+
stateIconSrc: ne,
|
|
2209
|
+
stateTitle: En(this, Hn, "f").recentKBs.noMatches
|
|
2209
2210
|
});
|
|
2210
2211
|
}
|
|
2211
|
-
return
|
|
2212
|
+
return e("section", {
|
|
2212
2213
|
class: "section-kbs"
|
|
2213
|
-
},
|
|
2214
|
+
}, e("header", {
|
|
2214
2215
|
class: {
|
|
2215
2216
|
"section-kbs__header": true
|
|
2216
2217
|
}
|
|
2217
|
-
},
|
|
2218
|
+
}, e("label", {
|
|
2218
2219
|
class: "subtitle-regular-s section-kbs__title",
|
|
2219
2220
|
htmlFor: "filter-kbs"
|
|
2220
|
-
},
|
|
2221
|
+
}, En(this, Hn, "f").recentKBs.title), e("ch-edit", {
|
|
2221
2222
|
// Render always, and display or hide, ro prevent FOUC, and also prevent
|
|
2222
2223
|
// the header block-size from growing a little bit when the input renders.
|
|
2223
2224
|
id: "filter-kbs",
|
|
2224
2225
|
value: this.kbFilterValue,
|
|
2225
2226
|
class: {
|
|
2226
2227
|
input: true,
|
|
2227
|
-
"section-kbs__filter--hidden":
|
|
2228
|
+
"section-kbs__filter--hidden": n
|
|
2228
2229
|
},
|
|
2229
|
-
startImgSrc:
|
|
2230
|
-
placeholder:
|
|
2231
|
-
onInput: !
|
|
2232
|
-
disabled:
|
|
2233
|
-
})),
|
|
2230
|
+
startImgSrc: te,
|
|
2231
|
+
placeholder: En(this, Hn, "f").recentKBs.filterKbsPlaceholder,
|
|
2232
|
+
onInput: !n && En(this, Qn, "f"),
|
|
2233
|
+
disabled: n
|
|
2234
|
+
})), e("div", {
|
|
2234
2235
|
class: {
|
|
2235
2236
|
"section-kbs__list": true,
|
|
2236
|
-
"section-kbs__list--empty":
|
|
2237
|
+
"section-kbs__list--empty": t,
|
|
2237
2238
|
scrollable: true
|
|
2238
2239
|
}
|
|
2239
|
-
}, this.filteredKbs.length > 0 ?
|
|
2240
|
+
}, this.filteredKbs.length > 0 ? En(this, Kn, "f").call(this) : a));
|
|
2240
2241
|
}));
|
|
2241
|
-
|
|
2242
|
-
var
|
|
2243
|
-
return (
|
|
2242
|
+
Kn.set(this, (() => {
|
|
2243
|
+
var n;
|
|
2244
|
+
return (n = this.filteredKbs) === null || n === void 0 ? void 0 : n.map(((n, t) => {
|
|
2244
2245
|
// relative time ago
|
|
2245
2246
|
var a;
|
|
2246
|
-
const
|
|
2247
|
+
const i = n.lastOpenedDate ? formatDistanceToNow(new Date(n.lastOpenedDate), {
|
|
2247
2248
|
addSuffix: true,
|
|
2248
|
-
locale:
|
|
2249
|
+
locale: En(this, $n, "f")
|
|
2249
2250
|
}) : undefined;
|
|
2251
|
+
// convert date to date format, since toISOString() requires date as Date.
|
|
2252
|
+
const r = n.lastOpenedDate ? new Date(n.lastOpenedDate) : undefined;
|
|
2253
|
+
let s = o(r, "date-time-short");
|
|
2250
2254
|
// icon
|
|
2251
|
-
const
|
|
2252
|
-
return
|
|
2255
|
+
const c = (a = n.icon) !== null && a !== void 0 ? a : ee;
|
|
2256
|
+
return e("article", {
|
|
2253
2257
|
class: "kb__item",
|
|
2254
|
-
key:
|
|
2255
|
-
},
|
|
2258
|
+
key: t
|
|
2259
|
+
}, e("div", {
|
|
2256
2260
|
class: "kb__details"
|
|
2257
|
-
},
|
|
2261
|
+
}, e("ch-image", {
|
|
2258
2262
|
class: "icon-md",
|
|
2259
|
-
src:
|
|
2260
|
-
}),
|
|
2263
|
+
src: c
|
|
2264
|
+
}), e("button", {
|
|
2261
2265
|
class: "body-regular-m kb__name",
|
|
2262
|
-
onClick:
|
|
2263
|
-
},
|
|
2266
|
+
onClick: En(this, Rn, "f").call(this, n.id)
|
|
2267
|
+
}, n.name)), i && e("p", {
|
|
2264
2268
|
class: "body-regular-m kb__modified"
|
|
2265
|
-
}, `${
|
|
2269
|
+
}, `${En(this, Hn, "f").recentKBs.opened}`, " ", e("time", {
|
|
2270
|
+
dateTime: s
|
|
2271
|
+
}, s)));
|
|
2266
2272
|
}));
|
|
2267
2273
|
}));
|
|
2268
|
-
|
|
2274
|
+
Gn.set(this, (() => {
|
|
2269
2275
|
if (!this.secondarySection) {
|
|
2270
2276
|
return null;
|
|
2271
2277
|
}
|
|
2272
|
-
const
|
|
2273
|
-
return
|
|
2278
|
+
const n = this.secondarySection.cards.length > 2;
|
|
2279
|
+
return e("section", {
|
|
2274
2280
|
// Recent Knowledge Bases
|
|
2275
|
-
class: "section-
|
|
2276
|
-
},
|
|
2277
|
-
class: "
|
|
2278
|
-
}, this.secondarySection.title)),
|
|
2281
|
+
class: "section-no-kbs"
|
|
2282
|
+
}, e("header", null, e("h2", {
|
|
2283
|
+
class: "body-regular-s section-secondary__title"
|
|
2284
|
+
}, this.secondarySection.title)), e("section", {
|
|
2279
2285
|
class: {
|
|
2280
2286
|
"section-secondary__actions": true,
|
|
2281
|
-
"section-secondary__actions--two-cards": !
|
|
2282
|
-
"section-secondary__actions--multiple-cards":
|
|
2287
|
+
"section-secondary__actions--two-cards": !n,
|
|
2288
|
+
"section-secondary__actions--multiple-cards": n,
|
|
2283
2289
|
scrollable: true
|
|
2284
2290
|
}
|
|
2285
|
-
}, this.secondarySection.cards.map(((
|
|
2291
|
+
}, this.secondarySection.cards.map(((n, t) => e("article", {
|
|
2286
2292
|
class: "card card-outlined",
|
|
2287
|
-
key:
|
|
2288
|
-
},
|
|
2289
|
-
class: "card__header"
|
|
2290
|
-
}, t("span", {
|
|
2293
|
+
key: t
|
|
2294
|
+
}, e("span", {
|
|
2291
2295
|
class: "icon-capsule"
|
|
2292
|
-
},
|
|
2296
|
+
}, e("ch-image", {
|
|
2293
2297
|
class: "icon-md icon-circular",
|
|
2294
|
-
src:
|
|
2295
|
-
"aria-label":
|
|
2296
|
-
})),
|
|
2297
|
-
class: "card__header
|
|
2298
|
-
},
|
|
2299
|
-
class: "subtitle-
|
|
2300
|
-
},
|
|
2301
|
-
class: "body-regular-
|
|
2302
|
-
},
|
|
2303
|
-
class: "
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
onClick: e.action.callback && e.action.callback
|
|
2307
|
-
}, t("ch-image", {
|
|
2298
|
+
src: n.icon.src,
|
|
2299
|
+
"aria-label": n.icon.ariaLabel
|
|
2300
|
+
})), e("header", {
|
|
2301
|
+
class: "card__header"
|
|
2302
|
+
}, e("h2", {
|
|
2303
|
+
class: "subtitle-semi-bold-xs card__header-title"
|
|
2304
|
+
}, n.title), n.description.map((n => e("p", {
|
|
2305
|
+
class: "body-regular-s card__header-description"
|
|
2306
|
+
}, n))), n.action && e("button", {
|
|
2307
|
+
class: "button-tertiary button-icon-and-text button-tertiary-no-padding-inline-start",
|
|
2308
|
+
onClick: n.action.callback && n.action.callback
|
|
2309
|
+
}, e("ch-image", {
|
|
2308
2310
|
class: "icon-md",
|
|
2309
|
-
src:
|
|
2310
|
-
}),
|
|
2311
|
+
src: Zn
|
|
2312
|
+
}), n.action.caption)))))));
|
|
2311
2313
|
}));
|
|
2312
|
-
this.kbFilterValue = "";
|
|
2313
2314
|
this.filteredKbs = undefined;
|
|
2315
|
+
this.kbFilterValue = "";
|
|
2314
2316
|
this.loading = true;
|
|
2315
2317
|
this.createKBCallback = undefined;
|
|
2316
|
-
this.openKbCallback = undefined;
|
|
2317
|
-
this.secondarySection = undefined;
|
|
2318
2318
|
this.kbs = undefined;
|
|
2319
2319
|
this.kbsFilterThreshold = undefined;
|
|
2320
|
+
this.openKbCallback = undefined;
|
|
2321
|
+
this.openSampleCallback = undefined;
|
|
2322
|
+
this.samples = undefined;
|
|
2323
|
+
this.secondarySection = undefined;
|
|
2320
2324
|
}
|
|
2321
|
-
kbFilterValueChanged(
|
|
2322
|
-
this.filteredKbs = this.kbs.filter((
|
|
2325
|
+
kbFilterValueChanged(n) {
|
|
2326
|
+
this.filteredKbs = this.kbs.filter((e => e.name.toLowerCase().includes(n.toLocaleLowerCase())));
|
|
2323
2327
|
}
|
|
2324
|
-
kbsChanged(
|
|
2325
|
-
this.filteredKbs =
|
|
2328
|
+
kbsChanged(n) {
|
|
2329
|
+
this.filteredKbs = n;
|
|
2326
2330
|
this.kbFilterValue = "";
|
|
2327
2331
|
// clear filter
|
|
2328
2332
|
}
|
|
2329
2333
|
async componentWillLoad() {
|
|
2330
|
-
|
|
2334
|
+
Yn(this, Hn, await r.getComponentStrings(this.el), "f");
|
|
2331
2335
|
// initialize filteredKbs
|
|
2332
2336
|
this.kbsChanged(this.kbs);
|
|
2333
2337
|
// get user language to display the kb "last opened" value in the appropriate language.
|
|
2334
|
-
const
|
|
2335
|
-
|
|
2338
|
+
const n = document.documentElement.lang;
|
|
2339
|
+
Yn(this, $n, Un[n], "f");
|
|
2336
2340
|
}
|
|
2337
2341
|
render() {
|
|
2338
|
-
var
|
|
2339
|
-
this.loading = (!this.kbs || ((
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2342
|
+
var n, a;
|
|
2343
|
+
this.loading = (!this.kbs || ((n = this.kbs) === null || n === void 0 ? void 0 : n.length) === 0) && !this.secondarySection;
|
|
2344
|
+
const i = ((a = this.samples) === null || a === void 0 ? void 0 : a.length) && this.openSampleCallback;
|
|
2345
|
+
return e(t, {
|
|
2346
|
+
class: "scrollable"
|
|
2347
|
+
}, e("ch-theme", {
|
|
2348
|
+
model: ae
|
|
2349
|
+
}), e("main", {
|
|
2345
2350
|
class: "main scrollable"
|
|
2346
|
-
},
|
|
2351
|
+
}, e("section", {
|
|
2347
2352
|
// Create a new Knowledge Base
|
|
2348
2353
|
class: "section-create-new-kb"
|
|
2349
|
-
},
|
|
2354
|
+
}, e("header", {
|
|
2350
2355
|
// main header
|
|
2351
|
-
class: "section-create-
|
|
2352
|
-
},
|
|
2353
|
-
class: "heading-
|
|
2354
|
-
},
|
|
2356
|
+
class: "section-create-new-kb__header"
|
|
2357
|
+
}, e("h1", {
|
|
2358
|
+
class: "heading-5 section-create-new-kb__title"
|
|
2359
|
+
}, En(this, Hn, "f").createKB.title), e("p", {
|
|
2355
2360
|
class: "body-regular-m"
|
|
2356
|
-
},
|
|
2361
|
+
}, En(this, Hn, "f").createKB.description)), e("section", {
|
|
2357
2362
|
class: "section-create-new-kb__actions scrollable"
|
|
2358
|
-
},
|
|
2363
|
+
}, e("article", {
|
|
2359
2364
|
// create project
|
|
2360
2365
|
class: "card card-filled"
|
|
2361
|
-
},
|
|
2366
|
+
}, e("header", {
|
|
2362
2367
|
class: "card__header"
|
|
2363
|
-
},
|
|
2368
|
+
}, e("div", {
|
|
2364
2369
|
class: "card__header-description"
|
|
2365
|
-
},
|
|
2366
|
-
class: "subtitle-
|
|
2367
|
-
},
|
|
2368
|
-
class: "body-regular-
|
|
2369
|
-
},
|
|
2370
|
+
}, e("h2", {
|
|
2371
|
+
class: "subtitle-semi-bold-xs card__header-title"
|
|
2372
|
+
}, En(this, Hn, "f").createProject.title), e("p", {
|
|
2373
|
+
class: "body-regular-s"
|
|
2374
|
+
}, En(this, Hn, "f").createProject.description))), e("footer", {
|
|
2370
2375
|
class: "card__footer"
|
|
2371
|
-
},
|
|
2376
|
+
}, e("button", {
|
|
2372
2377
|
class: "button-primary",
|
|
2373
|
-
onClick:
|
|
2374
|
-
},
|
|
2378
|
+
onClick: En(this, Jn, "f").call(this, false)
|
|
2379
|
+
}, En(this, Hn, "f").createProject.buttonCaption))), e("article", {
|
|
2375
2380
|
// open existing project
|
|
2376
2381
|
class: "card-filled"
|
|
2377
|
-
},
|
|
2382
|
+
}, e("header", {
|
|
2378
2383
|
class: "card__header"
|
|
2379
|
-
},
|
|
2384
|
+
}, e("div", {
|
|
2380
2385
|
class: "card__header-description"
|
|
2381
|
-
},
|
|
2382
|
-
class: "subtitle-
|
|
2383
|
-
},
|
|
2384
|
-
class: "body-regular-
|
|
2385
|
-
},
|
|
2386
|
+
}, e("h2", {
|
|
2387
|
+
class: "subtitle-semi-bold-xs"
|
|
2388
|
+
}, En(this, Hn, "f").openExistingProject.title), e("p", {
|
|
2389
|
+
class: "body-regular-s"
|
|
2390
|
+
}, En(this, Hn, "f").openExistingProject.description))), e("footer", {
|
|
2386
2391
|
class: "card__footer"
|
|
2387
|
-
},
|
|
2392
|
+
}, e("button", {
|
|
2388
2393
|
class: "button-secondary cancel-btn",
|
|
2389
|
-
onClick:
|
|
2390
|
-
},
|
|
2394
|
+
onClick: En(this, Jn, "f").call(this, true)
|
|
2395
|
+
}, En(this, Hn, "f").openExistingProject.buttonCaption))), i ? e("article", {
|
|
2396
|
+
// view samples
|
|
2397
|
+
class: "card-filled"
|
|
2398
|
+
}, e("header", {
|
|
2399
|
+
class: "card__header"
|
|
2400
|
+
}, e("div", {
|
|
2401
|
+
class: "card__header-description"
|
|
2402
|
+
}, e("h2", {
|
|
2403
|
+
class: "subtitle-semi-bold-xs"
|
|
2404
|
+
}, En(this, Hn, "f").viewSamples.title), e("p", {
|
|
2405
|
+
class: "body-regular-s"
|
|
2406
|
+
}, En(this, Hn, "f").viewSamples.description))), e("footer", {
|
|
2407
|
+
class: "card__footer"
|
|
2408
|
+
}, e("div", {
|
|
2409
|
+
class: "buttons-spacer samples-buttons-container"
|
|
2410
|
+
}, this.samples.map((n => e("button", {
|
|
2411
|
+
class: "button-secondary",
|
|
2412
|
+
onClick: () => this.openSampleCallback(n)
|
|
2413
|
+
}, n.name)))))) : null)), e("section", {
|
|
2391
2414
|
class: "section-secondary scrollable"
|
|
2392
|
-
}, this.loading ?
|
|
2415
|
+
}, this.loading ? e("gx-ide-loader", {
|
|
2393
2416
|
class: "loader",
|
|
2394
|
-
loaderTitle:
|
|
2395
|
-
description:
|
|
2417
|
+
loaderTitle: En(this, Hn, "f").recentKBs.loaderTitle,
|
|
2418
|
+
description: En(this, Hn, "f").recentKBs.loaderDescription,
|
|
2396
2419
|
show: true
|
|
2397
|
-
}) :
|
|
2420
|
+
}) : En(this, qn, "m", Bn).call(this))));
|
|
2398
2421
|
}
|
|
2399
2422
|
static get assetsDirs() {
|
|
2400
2423
|
return [ "gx-ide-assets/start-page" ];
|
|
@@ -2410,12 +2433,12 @@ const nt = class {
|
|
|
2410
2433
|
}
|
|
2411
2434
|
};
|
|
2412
2435
|
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
return this.kbs && this.kbs.length > 0 ?
|
|
2436
|
+
Hn = new WeakMap, $n = new WeakMap, Jn = new WeakMap, Qn = new WeakMap, Rn = new WeakMap,
|
|
2437
|
+
Vn = new WeakMap, Kn = new WeakMap, Gn = new WeakMap, qn = new WeakSet, Bn = function _GxIdeStartPage_evaluateContentToRender() {
|
|
2438
|
+
return this.kbs && this.kbs.length > 0 ? En(this, Vn, "f").call(this) : En(this, Gn, "f").call(this);
|
|
2416
2439
|
};
|
|
2417
2440
|
|
|
2418
|
-
|
|
2441
|
+
ie.style = Nn;
|
|
2419
2442
|
|
|
2420
|
-
export {
|
|
2421
|
-
//# sourceMappingURL=p-
|
|
2443
|
+
export { ie as gx_ide_start_page };
|
|
2444
|
+
//# sourceMappingURL=p-d67ff6a5.entry.js.map
|