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