@producteca/producteca-ui-kit 1.71.0 → 1.71.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/breadcrumb/breadcrumb.d.ts +1 -0
- package/dist/components/chip/chip.d.ts +2 -3
- package/dist/components/table/table/table.examples.d.ts +0 -1
- package/dist/components/table/tableBody/tableBody.d.ts +1 -1
- package/dist/components/table/tableBody/tableBody.types.d.ts +1 -6
- package/dist/locales/description.d.ts +2 -3
- package/dist/locales/es.d.ts +0 -2
- package/dist/producteca-ui-kit.es.js +355 -423
- package/dist/producteca-ui-kit.umd.js +35 -35
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -31,39 +31,21 @@ const isDebugEnabled = () => DEBUG_ENVS.indexOf(readEnv() ?? "") !== -1;
|
|
|
31
31
|
const logHandler = (component, handler, args) => {
|
|
32
32
|
console.debug(`[producteca-ui-kit] ${component}.${handler} →`, ...args);
|
|
33
33
|
};
|
|
34
|
-
const
|
|
35
|
-
const isFunction$5 = (value) => typeof value === "function";
|
|
36
|
-
const isHandlerKey = (key) => /^on[A-Z]/.test(key);
|
|
37
|
-
const isReactElement = (value) => typeof value === "object" && value !== null && "$$typeof" in value;
|
|
38
|
-
const isPlainObject$3 = (value) => {
|
|
39
|
-
if (typeof value !== "object" || value === null || isReactElement(value)) return false;
|
|
40
|
-
const proto = Object.getPrototypeOf(value);
|
|
41
|
-
return proto === Object.prototype || proto === null;
|
|
42
|
-
};
|
|
43
|
-
const wrapHandler = (fn3, componentName, path) => (...args) => {
|
|
44
|
-
logHandler(componentName, path, args);
|
|
45
|
-
return fn3(...args);
|
|
46
|
-
};
|
|
47
|
-
const wrapDeep = (value, componentName, path, depth) => {
|
|
48
|
-
if (depth > MAX_DEPTH) return value;
|
|
49
|
-
if (Array.isArray(value)) {
|
|
50
|
-
return value.map((item2, index2) => wrapDeep(item2, componentName, `${path}[${index2}]`, depth + 1));
|
|
51
|
-
}
|
|
52
|
-
if (isPlainObject$3(value)) {
|
|
53
|
-
const next2 = {};
|
|
54
|
-
for (const key of Object.keys(value)) {
|
|
55
|
-
const child = value[key];
|
|
56
|
-
const childPath = path ? `${path}.${key}` : key;
|
|
57
|
-
next2[key] = isHandlerKey(key) && isFunction$5(child) ? wrapHandler(child, componentName, childPath) : wrapDeep(child, componentName, childPath, depth + 1);
|
|
58
|
-
}
|
|
59
|
-
return next2;
|
|
60
|
-
}
|
|
61
|
-
return value;
|
|
62
|
-
};
|
|
34
|
+
const isHandlerProp = (key, value) => /^on[A-Z]/.test(key) && typeof value === "function";
|
|
63
35
|
function withDebugHandlers(Component2, componentName) {
|
|
64
36
|
if (!isDebugEnabled()) return Component2;
|
|
65
37
|
const Wrapped = forwardRef((props, ref) => {
|
|
66
|
-
const
|
|
38
|
+
const source = props;
|
|
39
|
+
const next2 = { ...source };
|
|
40
|
+
for (const key of Object.keys(source)) {
|
|
41
|
+
const value = source[key];
|
|
42
|
+
if (isHandlerProp(key, value)) {
|
|
43
|
+
next2[key] = (...args) => {
|
|
44
|
+
logHandler(componentName, key, args);
|
|
45
|
+
return value(...args);
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
}
|
|
67
49
|
const Cmp = Component2;
|
|
68
50
|
return /* @__PURE__ */ jsx$1(Cmp, { ...next2, ...ref ? { ref } : {} });
|
|
69
51
|
});
|
|
@@ -10032,7 +10014,7 @@ const ColorValues = map$2(allColors, "color");
|
|
|
10032
10014
|
const Shades = map$2(Colors["grey"], (color2, shade) => shade);
|
|
10033
10015
|
const Categories = map$2(Colors, (shades, category) => category);
|
|
10034
10016
|
const isValidColor = (color2) => includes$1(ColorValues, color2);
|
|
10035
|
-
const
|
|
10017
|
+
const CustomIcon = ({
|
|
10036
10018
|
color: color2 = getColor("grey", "500"),
|
|
10037
10019
|
size: size2 = "16",
|
|
10038
10020
|
sx,
|
|
@@ -10073,7 +10055,6 @@ const _translateSizeToFontSize = (size2) => {
|
|
|
10073
10055
|
};
|
|
10074
10056
|
return transform[size2] || transform["16"];
|
|
10075
10057
|
};
|
|
10076
|
-
const CustomIcon = withDebugHandlers(CustomIconBase, "CustomIcon");
|
|
10077
10058
|
const chip = "chip-module_chip_U3kfP";
|
|
10078
10059
|
const title$8 = "chip-module_title_DARz9";
|
|
10079
10060
|
const text = "chip-module_text_4xvju";
|
|
@@ -10083,7 +10064,6 @@ const tab$1 = "chip-module_tab_TQ-ke";
|
|
|
10083
10064
|
const grey = "chip-module_grey_M9U8T";
|
|
10084
10065
|
const active$3 = "chip-module_active_uJfiq";
|
|
10085
10066
|
const disabled$8 = "chip-module_disabled_21ZO5";
|
|
10086
|
-
const clickable = "chip-module_clickable_M0dZ3";
|
|
10087
10067
|
const success$1 = "chip-module_success_BJKfz";
|
|
10088
10068
|
const error$3 = "chip-module_error_an-gm";
|
|
10089
10069
|
const secondary = "chip-module_secondary_3aQ1S";
|
|
@@ -10099,44 +10079,26 @@ const styles$H = {
|
|
|
10099
10079
|
grey,
|
|
10100
10080
|
active: active$3,
|
|
10101
10081
|
disabled: disabled$8,
|
|
10102
|
-
clickable,
|
|
10103
10082
|
success: success$1,
|
|
10104
10083
|
error: error$3,
|
|
10105
10084
|
secondary,
|
|
10106
10085
|
primary,
|
|
10107
10086
|
action: action$1
|
|
10108
10087
|
};
|
|
10109
|
-
const ChipBase = ({ isActive, title: title2, text: text2, content: content2, onRemove = void 0,
|
|
10088
|
+
const ChipBase = ({ isActive, title: title2, text: text2, content: content2, onRemove = void 0, disabled: disabled2 = false, variant = "primary", size: size2 = "lg" }) => {
|
|
10110
10089
|
const canRemove = onRemove && !disabled2;
|
|
10111
|
-
|
|
10112
|
-
|
|
10113
|
-
|
|
10114
|
-
|
|
10115
|
-
|
|
10116
|
-
|
|
10117
|
-
|
|
10118
|
-
|
|
10119
|
-
|
|
10120
|
-
|
|
10121
|
-
|
|
10122
|
-
|
|
10123
|
-
tabIndex: isClickable ? 0 : void 0,
|
|
10124
|
-
onClick: isClickable ? onClick : void 0,
|
|
10125
|
-
onKeyDown: isClickable ? handleKeyDown : void 0,
|
|
10126
|
-
children: [
|
|
10127
|
-
content2,
|
|
10128
|
-
(!!title2 || !!text2) && /* @__PURE__ */ jsxs("span", { children: [
|
|
10129
|
-
!!title2 && /* @__PURE__ */ jsxs("span", { className: styles$H.title, children: [
|
|
10130
|
-
title2,
|
|
10131
|
-
" ",
|
|
10132
|
-
text2 && ": "
|
|
10133
|
-
] }),
|
|
10134
|
-
!!text2 && /* @__PURE__ */ jsx$1("span", { className: styles$H.text, children: text2 })
|
|
10135
|
-
] }),
|
|
10136
|
-
canRemove && /* @__PURE__ */ jsx$1(CustomIcon, { className: styles$H.action, size: "8", onClick: canRemove ? onRemove : void 0, color: getColor("grey", "700"), children: /* @__PURE__ */ jsx$1(CloseRoundedIcon, {}) })
|
|
10137
|
-
]
|
|
10138
|
-
}
|
|
10139
|
-
) });
|
|
10090
|
+
return /* @__PURE__ */ jsx$1(Grow, { in: !!text2 || !!title2 || !!content2, unmountOnExit: true, children: /* @__PURE__ */ jsxs("span", { className: clsx(styles$H.chip, styles$H[variant], styles$H[size2], { [styles$H.disabled]: disabled2, [styles$H.active]: isActive }), children: [
|
|
10091
|
+
content2,
|
|
10092
|
+
(!!title2 || !!text2) && /* @__PURE__ */ jsxs("span", { children: [
|
|
10093
|
+
!!title2 && /* @__PURE__ */ jsxs("span", { className: styles$H.title, children: [
|
|
10094
|
+
title2,
|
|
10095
|
+
" ",
|
|
10096
|
+
text2 && ": "
|
|
10097
|
+
] }),
|
|
10098
|
+
!!text2 && /* @__PURE__ */ jsx$1("span", { className: styles$H.text, children: text2 })
|
|
10099
|
+
] }),
|
|
10100
|
+
canRemove && /* @__PURE__ */ jsx$1(CustomIcon, { className: styles$H.action, size: "8", onClick: canRemove ? onRemove : void 0, color: getColor("grey", "700"), children: /* @__PURE__ */ jsx$1(CloseRoundedIcon, {}) })
|
|
10101
|
+
] }) });
|
|
10140
10102
|
};
|
|
10141
10103
|
const Chip$1 = withDebugHandlers(ChipBase, "Chip");
|
|
10142
10104
|
const defaultColor$c = getColor("grey", "500");
|
|
@@ -19105,12 +19067,14 @@ const breadcrumbItemFormat = `
|
|
|
19105
19067
|
|
|
19106
19068
|
- **\`text\`** (string, requerido): El texto que se muestra para el item del breadcrumb
|
|
19107
19069
|
- **\`onClick\`** (function, opcional): Función que se ejecuta al hacer click en el item
|
|
19070
|
+
- **\`isActive\`** (boolean, opcional): Indica si el item está activo. Por defecto, el último item se considera activo
|
|
19108
19071
|
- **\`href\`** (string, opcional): URL del enlace (actualmente no implementado en el renderizado)
|
|
19109
19072
|
|
|
19110
19073
|
### Comportamiento:
|
|
19111
19074
|
|
|
19112
19075
|
- Los items con \`onClick\` se renderizan como botones clickeables
|
|
19113
19076
|
- Los items sin \`onClick\` se renderizan como texto estático
|
|
19077
|
+
- El último item siempre se considera activo (a menos que se especifique \`isActive: true\` en otro item)
|
|
19114
19078
|
- Cada item se separa automáticamente con el símbolo ">"
|
|
19115
19079
|
|
|
19116
19080
|
### Ejemplo de uso:
|
|
@@ -19119,7 +19083,7 @@ const breadcrumbItemFormat = `
|
|
|
19119
19083
|
const breadcrumbItems = [
|
|
19120
19084
|
{ text: 'Dashboard' },
|
|
19121
19085
|
{ text: 'Productos', onClick: () => navigate('/products') },
|
|
19122
|
-
{ text: 'Detalles' }
|
|
19086
|
+
{ text: 'Detalles', isActive: true }
|
|
19123
19087
|
]
|
|
19124
19088
|
|
|
19125
19089
|
<Breadcrumb items={breadcrumbItems} />
|
|
@@ -19824,7 +19788,7 @@ const columns: TableColumn<MyRow>[] = [
|
|
|
19824
19788
|
const tableBodyExample = `
|
|
19825
19789
|
## Uso del componente
|
|
19826
19790
|
|
|
19827
|
-
\`Table.Body\` renderiza las filas de datos. Lee las columnas del contexto provisto por \`Table\`.
|
|
19791
|
+
\`Table.Body\` renderiza las filas de datos. Lee las columnas del contexto provisto por \`Table\`. Cuando \`data\` está vacío muestra un \`EmptyState\` con \`emptyMessage\`.
|
|
19828
19792
|
|
|
19829
19793
|
### Ejemplo básico:
|
|
19830
19794
|
|
|
@@ -19834,15 +19798,13 @@ const tableBodyExample = `
|
|
|
19834
19798
|
</Table>
|
|
19835
19799
|
\`\`\`
|
|
19836
19800
|
|
|
19837
|
-
###
|
|
19801
|
+
### Estado vacío personalizado:
|
|
19838
19802
|
|
|
19839
19803
|
\`\`\`tsx
|
|
19840
19804
|
<Table columns={columns}>
|
|
19841
|
-
<Table.Header />
|
|
19842
19805
|
<Table.Body
|
|
19843
|
-
data={
|
|
19844
|
-
|
|
19845
|
-
empty={{ text: 'No hay datos', actionText: 'Cargar', onClick: loadData }}
|
|
19806
|
+
data={[]}
|
|
19807
|
+
emptyMessage="No encontramos resultados para tu búsqueda"
|
|
19846
19808
|
/>
|
|
19847
19809
|
</Table>
|
|
19848
19810
|
\`\`\`
|
|
@@ -19876,28 +19838,6 @@ const columns: TableColumn<MyRow>[] = [
|
|
|
19876
19838
|
]
|
|
19877
19839
|
\`\`\`
|
|
19878
19840
|
`;
|
|
19879
|
-
const tableAsyncContentExample = `
|
|
19880
|
-
\`Table.Body\` integra \`AsyncContent\` internamente: recibe las mismas props de estado (\`isLoading\`, \`error\`, \`empty\`, \`success\`) y resuelve el loader, el error y el estado vacío **dentro** de la tabla, sin desmontar el \`Table.Header\`.
|
|
19881
|
-
|
|
19882
|
-
El estado vacío se deriva de \`data\` (no hace falta pasar \`items\`). Cuando hay filas y no hay carga/error, se renderizan las filas normalmente.
|
|
19883
|
-
|
|
19884
|
-
### Ejemplo:
|
|
19885
|
-
|
|
19886
|
-
\`\`\`tsx
|
|
19887
|
-
<Table columns={columns}>
|
|
19888
|
-
<Table.Header />
|
|
19889
|
-
<Table.Body
|
|
19890
|
-
data={rows}
|
|
19891
|
-
isLoading={isLoading}
|
|
19892
|
-
empty={{
|
|
19893
|
-
text: 'No hay datos disponibles',
|
|
19894
|
-
actionText: 'Cargar datos',
|
|
19895
|
-
onClick: loadData,
|
|
19896
|
-
}}
|
|
19897
|
-
/>
|
|
19898
|
-
</Table>
|
|
19899
|
-
\`\`\`
|
|
19900
|
-
`;
|
|
19901
19841
|
const spinnerExample = `
|
|
19902
19842
|
## Uso del componente
|
|
19903
19843
|
|
|
@@ -20176,8 +20116,7 @@ const es$3 = {
|
|
|
20176
20116
|
example: spinnerExample
|
|
20177
20117
|
},
|
|
20178
20118
|
table: {
|
|
20179
|
-
example: tableExample
|
|
20180
|
-
asyncContent: tableAsyncContentExample
|
|
20119
|
+
example: tableExample
|
|
20181
20120
|
},
|
|
20182
20121
|
tableHeader: {
|
|
20183
20122
|
example: tableHeaderExample
|
|
@@ -20305,7 +20244,6 @@ const es$3 = {
|
|
|
20305
20244
|
text: "Texto",
|
|
20306
20245
|
title: "Título",
|
|
20307
20246
|
onRemove: "Función que se ejecuta al hacer clic en el ícono de cerrar",
|
|
20308
|
-
onClick: "Callback que se ejecuta al hacer clic en el chip. Cuando se define, el chip se vuelve interactivo (clickable, accesible por teclado)",
|
|
20309
20247
|
disabled: "Deshabilita el chip y oculta el ícono de cerrar",
|
|
20310
20248
|
variant: "Variante visual del chip que cambia el color de fondo (default, success, error, warning, info)",
|
|
20311
20249
|
size: "Tamaño del chip (sm: pequeño, lg: grande, undefined: tamaño por defecto)"
|
|
@@ -21033,287 +20971,293 @@ const VisibilityIcon = ({ showPassword, setShowPassword }) => {
|
|
|
21033
20971
|
return /* @__PURE__ */ jsx$1("div", { "data-testid": "visibility-toggle", onClick: () => setShowPassword(!showPassword), children: showPassword ? /* @__PURE__ */ jsx$1(Visibility, {}) : /* @__PURE__ */ jsx$1(VisibilityOff, {}) });
|
|
21034
20972
|
};
|
|
21035
20973
|
var dayjs_min = { exports: {} };
|
|
21036
|
-
|
|
21037
|
-
|
|
21038
|
-
|
|
21039
|
-
|
|
21040
|
-
|
|
21041
|
-
|
|
21042
|
-
|
|
21043
|
-
}
|
|
21044
|
-
var
|
|
21045
|
-
|
|
21046
|
-
|
|
21047
|
-
|
|
21048
|
-
|
|
21049
|
-
|
|
21050
|
-
|
|
21051
|
-
|
|
21052
|
-
|
|
21053
|
-
|
|
21054
|
-
|
|
21055
|
-
|
|
21056
|
-
|
|
21057
|
-
|
|
21058
|
-
|
|
21059
|
-
|
|
21060
|
-
|
|
21061
|
-
|
|
21062
|
-
|
|
21063
|
-
|
|
21064
|
-
|
|
21065
|
-
|
|
21066
|
-
|
|
21067
|
-
|
|
21068
|
-
|
|
21069
|
-
|
|
21070
|
-
if (
|
|
21071
|
-
|
|
21072
|
-
|
|
21073
|
-
|
|
21074
|
-
|
|
21075
|
-
|
|
21076
|
-
|
|
21077
|
-
|
|
21078
|
-
var n2 = "object" == typeof e2 ? e2 : {};
|
|
21079
|
-
return n2.date = t2, n2.args = arguments, new _(n2);
|
|
21080
|
-
}, b = v;
|
|
21081
|
-
b.l = w2, b.i = S, b.w = function(t2, e2) {
|
|
21082
|
-
return O(t2, { locale: e2.$L, utc: e2.$u, x: e2.$x, $offset: e2.$offset });
|
|
21083
|
-
};
|
|
21084
|
-
var _ = function() {
|
|
21085
|
-
function M2(t2) {
|
|
21086
|
-
this.$L = w2(t2.locale, null, true), this.parse(t2), this.$x = this.$x || t2.x || {}, this[p] = true;
|
|
21087
|
-
}
|
|
21088
|
-
var m2 = M2.prototype;
|
|
21089
|
-
return m2.parse = function(t2) {
|
|
21090
|
-
this.$d = function(t3) {
|
|
21091
|
-
var e2 = t3.date, n2 = t3.utc;
|
|
21092
|
-
if (null === e2) return /* @__PURE__ */ new Date(NaN);
|
|
21093
|
-
if (b.u(e2)) return /* @__PURE__ */ new Date();
|
|
21094
|
-
if (e2 instanceof Date) return new Date(e2);
|
|
21095
|
-
if ("string" == typeof e2 && !/Z$/i.test(e2)) {
|
|
21096
|
-
var r3 = e2.match($);
|
|
21097
|
-
if (r3) {
|
|
21098
|
-
var i2 = r3[2] - 1 || 0, s2 = (r3[7] || "0").substring(0, 3);
|
|
21099
|
-
return n2 ? new Date(Date.UTC(r3[1], i2, r3[3] || 1, r3[4] || 0, r3[5] || 0, r3[6] || 0, s2)) : new Date(r3[1], i2, r3[3] || 1, r3[4] || 0, r3[5] || 0, r3[6] || 0, s2);
|
|
21100
|
-
}
|
|
21101
|
-
}
|
|
21102
|
-
return new Date(e2);
|
|
21103
|
-
}(t2), this.init();
|
|
21104
|
-
}, m2.init = function() {
|
|
21105
|
-
var t2 = this.$d;
|
|
21106
|
-
this.$y = t2.getFullYear(), this.$M = t2.getMonth(), this.$D = t2.getDate(), this.$W = t2.getDay(), this.$H = t2.getHours(), this.$m = t2.getMinutes(), this.$s = t2.getSeconds(), this.$ms = t2.getMilliseconds();
|
|
21107
|
-
}, m2.$utils = function() {
|
|
21108
|
-
return b;
|
|
21109
|
-
}, m2.isValid = function() {
|
|
21110
|
-
return !(this.$d.toString() === l);
|
|
21111
|
-
}, m2.isSame = function(t2, e2) {
|
|
21112
|
-
var n2 = O(t2);
|
|
21113
|
-
return this.startOf(e2) <= n2 && n2 <= this.endOf(e2);
|
|
21114
|
-
}, m2.isAfter = function(t2, e2) {
|
|
21115
|
-
return O(t2) < this.startOf(e2);
|
|
21116
|
-
}, m2.isBefore = function(t2, e2) {
|
|
21117
|
-
return this.endOf(e2) < O(t2);
|
|
21118
|
-
}, m2.$g = function(t2, e2, n2) {
|
|
21119
|
-
return b.u(t2) ? this[e2] : this.set(n2, t2);
|
|
21120
|
-
}, m2.unix = function() {
|
|
21121
|
-
return Math.floor(this.valueOf() / 1e3);
|
|
21122
|
-
}, m2.valueOf = function() {
|
|
21123
|
-
return this.$d.getTime();
|
|
21124
|
-
}, m2.startOf = function(t2, e2) {
|
|
21125
|
-
var n2 = this, r3 = !!b.u(e2) || e2, f2 = b.p(t2), l2 = function(t3, e3) {
|
|
21126
|
-
var i2 = b.w(n2.$u ? Date.UTC(n2.$y, e3, t3) : new Date(n2.$y, e3, t3), n2);
|
|
21127
|
-
return r3 ? i2 : i2.endOf(a);
|
|
21128
|
-
}, $2 = function(t3, e3) {
|
|
21129
|
-
return b.w(n2.toDate()[t3].apply(n2.toDate("s"), (r3 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n2);
|
|
21130
|
-
}, y2 = this.$W, M3 = this.$M, m3 = this.$D, v2 = "set" + (this.$u ? "UTC" : "");
|
|
21131
|
-
switch (f2) {
|
|
21132
|
-
case h:
|
|
21133
|
-
return r3 ? l2(1, 0) : l2(31, 11);
|
|
21134
|
-
case c:
|
|
21135
|
-
return r3 ? l2(1, M3) : l2(0, M3 + 1);
|
|
21136
|
-
case o:
|
|
21137
|
-
var g2 = this.$locale().weekStart || 0, D2 = (y2 < g2 ? y2 + 7 : y2) - g2;
|
|
21138
|
-
return l2(r3 ? m3 - D2 : m3 + (6 - D2), M3);
|
|
21139
|
-
case a:
|
|
21140
|
-
case d:
|
|
21141
|
-
return $2(v2 + "Hours", 0);
|
|
21142
|
-
case u:
|
|
21143
|
-
return $2(v2 + "Minutes", 1);
|
|
21144
|
-
case s:
|
|
21145
|
-
return $2(v2 + "Seconds", 2);
|
|
21146
|
-
case i:
|
|
21147
|
-
return $2(v2 + "Milliseconds", 3);
|
|
21148
|
-
default:
|
|
21149
|
-
return this.clone();
|
|
20974
|
+
var hasRequiredDayjs_min;
|
|
20975
|
+
function requireDayjs_min() {
|
|
20976
|
+
if (hasRequiredDayjs_min) return dayjs_min.exports;
|
|
20977
|
+
hasRequiredDayjs_min = 1;
|
|
20978
|
+
(function(module, exports) {
|
|
20979
|
+
!function(t, e) {
|
|
20980
|
+
module.exports = e();
|
|
20981
|
+
}(commonjsGlobal, function() {
|
|
20982
|
+
var t = 1e3, e = 6e4, n = 36e5, r2 = "millisecond", i = "second", s = "minute", u = "hour", a = "day", o = "week", c = "month", f = "quarter", h = "year", d = "date", l = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t2) {
|
|
20983
|
+
var e2 = ["th", "st", "nd", "rd"], n2 = t2 % 100;
|
|
20984
|
+
return "[" + t2 + (e2[(n2 - 20) % 10] || e2[n2] || e2[0]) + "]";
|
|
20985
|
+
} }, m = function(t2, e2, n2) {
|
|
20986
|
+
var r3 = String(t2);
|
|
20987
|
+
return !r3 || r3.length >= e2 ? t2 : "" + Array(e2 + 1 - r3.length).join(n2) + t2;
|
|
20988
|
+
}, v = { s: m, z: function(t2) {
|
|
20989
|
+
var e2 = -t2.utcOffset(), n2 = Math.abs(e2), r3 = Math.floor(n2 / 60), i2 = n2 % 60;
|
|
20990
|
+
return (e2 <= 0 ? "+" : "-") + m(r3, 2, "0") + ":" + m(i2, 2, "0");
|
|
20991
|
+
}, m: function t2(e2, n2) {
|
|
20992
|
+
if (e2.date() < n2.date()) return -t2(n2, e2);
|
|
20993
|
+
var r3 = 12 * (n2.year() - e2.year()) + (n2.month() - e2.month()), i2 = e2.clone().add(r3, c), s2 = n2 - i2 < 0, u2 = e2.clone().add(r3 + (s2 ? -1 : 1), c);
|
|
20994
|
+
return +(-(r3 + (n2 - i2) / (s2 ? i2 - u2 : u2 - i2)) || 0);
|
|
20995
|
+
}, a: function(t2) {
|
|
20996
|
+
return t2 < 0 ? Math.ceil(t2) || 0 : Math.floor(t2);
|
|
20997
|
+
}, p: function(t2) {
|
|
20998
|
+
return { M: c, y: h, w: o, d: a, D: d, h: u, m: s, s: i, ms: r2, Q: f }[t2] || String(t2 || "").toLowerCase().replace(/s$/, "");
|
|
20999
|
+
}, u: function(t2) {
|
|
21000
|
+
return void 0 === t2;
|
|
21001
|
+
} }, g = "en", D = {};
|
|
21002
|
+
D[g] = M;
|
|
21003
|
+
var p = "$isDayjsObject", S = function(t2) {
|
|
21004
|
+
return t2 instanceof _ || !(!t2 || !t2[p]);
|
|
21005
|
+
}, w2 = function t2(e2, n2, r3) {
|
|
21006
|
+
var i2;
|
|
21007
|
+
if (!e2) return g;
|
|
21008
|
+
if ("string" == typeof e2) {
|
|
21009
|
+
var s2 = e2.toLowerCase();
|
|
21010
|
+
D[s2] && (i2 = s2), n2 && (D[s2] = n2, i2 = s2);
|
|
21011
|
+
var u2 = e2.split("-");
|
|
21012
|
+
if (!i2 && u2.length > 1) return t2(u2[0]);
|
|
21013
|
+
} else {
|
|
21014
|
+
var a2 = e2.name;
|
|
21015
|
+
D[a2] = e2, i2 = a2;
|
|
21150
21016
|
}
|
|
21151
|
-
|
|
21152
|
-
|
|
21153
|
-
|
|
21154
|
-
var n2
|
|
21155
|
-
|
|
21156
|
-
|
|
21157
|
-
|
|
21158
|
-
|
|
21159
|
-
|
|
21160
|
-
|
|
21161
|
-
|
|
21162
|
-
|
|
21163
|
-
|
|
21164
|
-
|
|
21165
|
-
|
|
21166
|
-
|
|
21167
|
-
|
|
21168
|
-
|
|
21169
|
-
|
|
21170
|
-
|
|
21171
|
-
|
|
21172
|
-
|
|
21173
|
-
|
|
21174
|
-
|
|
21175
|
-
|
|
21176
|
-
|
|
21177
|
-
}, m2.subtract = function(t2, e2) {
|
|
21178
|
-
return this.add(-1 * t2, e2);
|
|
21179
|
-
}, m2.format = function(t2) {
|
|
21180
|
-
var e2 = this, n2 = this.$locale();
|
|
21181
|
-
if (!this.isValid()) return n2.invalidDate || l;
|
|
21182
|
-
var r3 = t2 || "YYYY-MM-DDTHH:mm:ssZ", i2 = b.z(this), s2 = this.$H, u2 = this.$m, a2 = this.$M, o2 = n2.weekdays, c2 = n2.months, f2 = n2.meridiem, h2 = function(t3, n3, i3, s3) {
|
|
21183
|
-
return t3 && (t3[n3] || t3(e2, r3)) || i3[n3].slice(0, s3);
|
|
21184
|
-
}, d2 = function(t3) {
|
|
21185
|
-
return b.s(s2 % 12 || 12, t3, "0");
|
|
21186
|
-
}, $2 = f2 || function(t3, e3, n3) {
|
|
21187
|
-
var r4 = t3 < 12 ? "AM" : "PM";
|
|
21188
|
-
return n3 ? r4.toLowerCase() : r4;
|
|
21189
|
-
};
|
|
21190
|
-
return r3.replace(y, function(t3, r4) {
|
|
21191
|
-
return r4 || function(t4) {
|
|
21192
|
-
switch (t4) {
|
|
21193
|
-
case "YY":
|
|
21194
|
-
return String(e2.$y).slice(-2);
|
|
21195
|
-
case "YYYY":
|
|
21196
|
-
return b.s(e2.$y, 4, "0");
|
|
21197
|
-
case "M":
|
|
21198
|
-
return a2 + 1;
|
|
21199
|
-
case "MM":
|
|
21200
|
-
return b.s(a2 + 1, 2, "0");
|
|
21201
|
-
case "MMM":
|
|
21202
|
-
return h2(n2.monthsShort, a2, c2, 3);
|
|
21203
|
-
case "MMMM":
|
|
21204
|
-
return h2(c2, a2);
|
|
21205
|
-
case "D":
|
|
21206
|
-
return e2.$D;
|
|
21207
|
-
case "DD":
|
|
21208
|
-
return b.s(e2.$D, 2, "0");
|
|
21209
|
-
case "d":
|
|
21210
|
-
return String(e2.$W);
|
|
21211
|
-
case "dd":
|
|
21212
|
-
return h2(n2.weekdaysMin, e2.$W, o2, 2);
|
|
21213
|
-
case "ddd":
|
|
21214
|
-
return h2(n2.weekdaysShort, e2.$W, o2, 3);
|
|
21215
|
-
case "dddd":
|
|
21216
|
-
return o2[e2.$W];
|
|
21217
|
-
case "H":
|
|
21218
|
-
return String(s2);
|
|
21219
|
-
case "HH":
|
|
21220
|
-
return b.s(s2, 2, "0");
|
|
21221
|
-
case "h":
|
|
21222
|
-
return d2(1);
|
|
21223
|
-
case "hh":
|
|
21224
|
-
return d2(2);
|
|
21225
|
-
case "a":
|
|
21226
|
-
return $2(s2, u2, true);
|
|
21227
|
-
case "A":
|
|
21228
|
-
return $2(s2, u2, false);
|
|
21229
|
-
case "m":
|
|
21230
|
-
return String(u2);
|
|
21231
|
-
case "mm":
|
|
21232
|
-
return b.s(u2, 2, "0");
|
|
21233
|
-
case "s":
|
|
21234
|
-
return String(e2.$s);
|
|
21235
|
-
case "ss":
|
|
21236
|
-
return b.s(e2.$s, 2, "0");
|
|
21237
|
-
case "SSS":
|
|
21238
|
-
return b.s(e2.$ms, 3, "0");
|
|
21239
|
-
case "Z":
|
|
21240
|
-
return i2;
|
|
21017
|
+
return !r3 && i2 && (g = i2), i2 || !r3 && g;
|
|
21018
|
+
}, O = function(t2, e2) {
|
|
21019
|
+
if (S(t2)) return t2.clone();
|
|
21020
|
+
var n2 = "object" == typeof e2 ? e2 : {};
|
|
21021
|
+
return n2.date = t2, n2.args = arguments, new _(n2);
|
|
21022
|
+
}, b = v;
|
|
21023
|
+
b.l = w2, b.i = S, b.w = function(t2, e2) {
|
|
21024
|
+
return O(t2, { locale: e2.$L, utc: e2.$u, x: e2.$x, $offset: e2.$offset });
|
|
21025
|
+
};
|
|
21026
|
+
var _ = function() {
|
|
21027
|
+
function M2(t2) {
|
|
21028
|
+
this.$L = w2(t2.locale, null, true), this.parse(t2), this.$x = this.$x || t2.x || {}, this[p] = true;
|
|
21029
|
+
}
|
|
21030
|
+
var m2 = M2.prototype;
|
|
21031
|
+
return m2.parse = function(t2) {
|
|
21032
|
+
this.$d = function(t3) {
|
|
21033
|
+
var e2 = t3.date, n2 = t3.utc;
|
|
21034
|
+
if (null === e2) return /* @__PURE__ */ new Date(NaN);
|
|
21035
|
+
if (b.u(e2)) return /* @__PURE__ */ new Date();
|
|
21036
|
+
if (e2 instanceof Date) return new Date(e2);
|
|
21037
|
+
if ("string" == typeof e2 && !/Z$/i.test(e2)) {
|
|
21038
|
+
var r3 = e2.match($);
|
|
21039
|
+
if (r3) {
|
|
21040
|
+
var i2 = r3[2] - 1 || 0, s2 = (r3[7] || "0").substring(0, 3);
|
|
21041
|
+
return n2 ? new Date(Date.UTC(r3[1], i2, r3[3] || 1, r3[4] || 0, r3[5] || 0, r3[6] || 0, s2)) : new Date(r3[1], i2, r3[3] || 1, r3[4] || 0, r3[5] || 0, r3[6] || 0, s2);
|
|
21042
|
+
}
|
|
21241
21043
|
}
|
|
21242
|
-
return
|
|
21243
|
-
}(
|
|
21244
|
-
})
|
|
21245
|
-
|
|
21246
|
-
|
|
21247
|
-
|
|
21248
|
-
|
|
21249
|
-
|
|
21044
|
+
return new Date(e2);
|
|
21045
|
+
}(t2), this.init();
|
|
21046
|
+
}, m2.init = function() {
|
|
21047
|
+
var t2 = this.$d;
|
|
21048
|
+
this.$y = t2.getFullYear(), this.$M = t2.getMonth(), this.$D = t2.getDate(), this.$W = t2.getDay(), this.$H = t2.getHours(), this.$m = t2.getMinutes(), this.$s = t2.getSeconds(), this.$ms = t2.getMilliseconds();
|
|
21049
|
+
}, m2.$utils = function() {
|
|
21050
|
+
return b;
|
|
21051
|
+
}, m2.isValid = function() {
|
|
21052
|
+
return !(this.$d.toString() === l);
|
|
21053
|
+
}, m2.isSame = function(t2, e2) {
|
|
21054
|
+
var n2 = O(t2);
|
|
21055
|
+
return this.startOf(e2) <= n2 && n2 <= this.endOf(e2);
|
|
21056
|
+
}, m2.isAfter = function(t2, e2) {
|
|
21057
|
+
return O(t2) < this.startOf(e2);
|
|
21058
|
+
}, m2.isBefore = function(t2, e2) {
|
|
21059
|
+
return this.endOf(e2) < O(t2);
|
|
21060
|
+
}, m2.$g = function(t2, e2, n2) {
|
|
21061
|
+
return b.u(t2) ? this[e2] : this.set(n2, t2);
|
|
21062
|
+
}, m2.unix = function() {
|
|
21063
|
+
return Math.floor(this.valueOf() / 1e3);
|
|
21064
|
+
}, m2.valueOf = function() {
|
|
21065
|
+
return this.$d.getTime();
|
|
21066
|
+
}, m2.startOf = function(t2, e2) {
|
|
21067
|
+
var n2 = this, r3 = !!b.u(e2) || e2, f2 = b.p(t2), l2 = function(t3, e3) {
|
|
21068
|
+
var i2 = b.w(n2.$u ? Date.UTC(n2.$y, e3, t3) : new Date(n2.$y, e3, t3), n2);
|
|
21069
|
+
return r3 ? i2 : i2.endOf(a);
|
|
21070
|
+
}, $2 = function(t3, e3) {
|
|
21071
|
+
return b.w(n2.toDate()[t3].apply(n2.toDate("s"), (r3 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n2);
|
|
21072
|
+
}, y2 = this.$W, M3 = this.$M, m3 = this.$D, v2 = "set" + (this.$u ? "UTC" : "");
|
|
21073
|
+
switch (f2) {
|
|
21074
|
+
case h:
|
|
21075
|
+
return r3 ? l2(1, 0) : l2(31, 11);
|
|
21076
|
+
case c:
|
|
21077
|
+
return r3 ? l2(1, M3) : l2(0, M3 + 1);
|
|
21078
|
+
case o:
|
|
21079
|
+
var g2 = this.$locale().weekStart || 0, D2 = (y2 < g2 ? y2 + 7 : y2) - g2;
|
|
21080
|
+
return l2(r3 ? m3 - D2 : m3 + (6 - D2), M3);
|
|
21081
|
+
case a:
|
|
21082
|
+
case d:
|
|
21083
|
+
return $2(v2 + "Hours", 0);
|
|
21084
|
+
case u:
|
|
21085
|
+
return $2(v2 + "Minutes", 1);
|
|
21086
|
+
case s:
|
|
21087
|
+
return $2(v2 + "Seconds", 2);
|
|
21088
|
+
case i:
|
|
21089
|
+
return $2(v2 + "Milliseconds", 3);
|
|
21090
|
+
default:
|
|
21091
|
+
return this.clone();
|
|
21092
|
+
}
|
|
21093
|
+
}, m2.endOf = function(t2) {
|
|
21094
|
+
return this.startOf(t2, false);
|
|
21095
|
+
}, m2.$set = function(t2, e2) {
|
|
21096
|
+
var n2, o2 = b.p(t2), f2 = "set" + (this.$u ? "UTC" : ""), l2 = (n2 = {}, n2[a] = f2 + "Date", n2[d] = f2 + "Date", n2[c] = f2 + "Month", n2[h] = f2 + "FullYear", n2[u] = f2 + "Hours", n2[s] = f2 + "Minutes", n2[i] = f2 + "Seconds", n2[r2] = f2 + "Milliseconds", n2)[o2], $2 = o2 === a ? this.$D + (e2 - this.$W) : e2;
|
|
21097
|
+
if (o2 === c || o2 === h) {
|
|
21098
|
+
var y2 = this.clone().set(d, 1);
|
|
21099
|
+
y2.$d[l2]($2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
|
|
21100
|
+
} else l2 && this.$d[l2]($2);
|
|
21101
|
+
return this.init(), this;
|
|
21102
|
+
}, m2.set = function(t2, e2) {
|
|
21103
|
+
return this.clone().$set(t2, e2);
|
|
21104
|
+
}, m2.get = function(t2) {
|
|
21105
|
+
return this[b.p(t2)]();
|
|
21106
|
+
}, m2.add = function(r3, f2) {
|
|
21107
|
+
var d2, l2 = this;
|
|
21108
|
+
r3 = Number(r3);
|
|
21109
|
+
var $2 = b.p(f2), y2 = function(t2) {
|
|
21110
|
+
var e2 = O(l2);
|
|
21111
|
+
return b.w(e2.date(e2.date() + Math.round(t2 * r3)), l2);
|
|
21112
|
+
};
|
|
21113
|
+
if ($2 === c) return this.set(c, this.$M + r3);
|
|
21114
|
+
if ($2 === h) return this.set(h, this.$y + r3);
|
|
21115
|
+
if ($2 === a) return y2(1);
|
|
21116
|
+
if ($2 === o) return y2(7);
|
|
21117
|
+
var M3 = (d2 = {}, d2[s] = e, d2[u] = n, d2[i] = t, d2)[$2] || 1, m3 = this.$d.getTime() + r3 * M3;
|
|
21118
|
+
return b.w(m3, this);
|
|
21119
|
+
}, m2.subtract = function(t2, e2) {
|
|
21120
|
+
return this.add(-1 * t2, e2);
|
|
21121
|
+
}, m2.format = function(t2) {
|
|
21122
|
+
var e2 = this, n2 = this.$locale();
|
|
21123
|
+
if (!this.isValid()) return n2.invalidDate || l;
|
|
21124
|
+
var r3 = t2 || "YYYY-MM-DDTHH:mm:ssZ", i2 = b.z(this), s2 = this.$H, u2 = this.$m, a2 = this.$M, o2 = n2.weekdays, c2 = n2.months, f2 = n2.meridiem, h2 = function(t3, n3, i3, s3) {
|
|
21125
|
+
return t3 && (t3[n3] || t3(e2, r3)) || i3[n3].slice(0, s3);
|
|
21126
|
+
}, d2 = function(t3) {
|
|
21127
|
+
return b.s(s2 % 12 || 12, t3, "0");
|
|
21128
|
+
}, $2 = f2 || function(t3, e3, n3) {
|
|
21129
|
+
var r4 = t3 < 12 ? "AM" : "PM";
|
|
21130
|
+
return n3 ? r4.toLowerCase() : r4;
|
|
21131
|
+
};
|
|
21132
|
+
return r3.replace(y, function(t3, r4) {
|
|
21133
|
+
return r4 || function(t4) {
|
|
21134
|
+
switch (t4) {
|
|
21135
|
+
case "YY":
|
|
21136
|
+
return String(e2.$y).slice(-2);
|
|
21137
|
+
case "YYYY":
|
|
21138
|
+
return b.s(e2.$y, 4, "0");
|
|
21139
|
+
case "M":
|
|
21140
|
+
return a2 + 1;
|
|
21141
|
+
case "MM":
|
|
21142
|
+
return b.s(a2 + 1, 2, "0");
|
|
21143
|
+
case "MMM":
|
|
21144
|
+
return h2(n2.monthsShort, a2, c2, 3);
|
|
21145
|
+
case "MMMM":
|
|
21146
|
+
return h2(c2, a2);
|
|
21147
|
+
case "D":
|
|
21148
|
+
return e2.$D;
|
|
21149
|
+
case "DD":
|
|
21150
|
+
return b.s(e2.$D, 2, "0");
|
|
21151
|
+
case "d":
|
|
21152
|
+
return String(e2.$W);
|
|
21153
|
+
case "dd":
|
|
21154
|
+
return h2(n2.weekdaysMin, e2.$W, o2, 2);
|
|
21155
|
+
case "ddd":
|
|
21156
|
+
return h2(n2.weekdaysShort, e2.$W, o2, 3);
|
|
21157
|
+
case "dddd":
|
|
21158
|
+
return o2[e2.$W];
|
|
21159
|
+
case "H":
|
|
21160
|
+
return String(s2);
|
|
21161
|
+
case "HH":
|
|
21162
|
+
return b.s(s2, 2, "0");
|
|
21163
|
+
case "h":
|
|
21164
|
+
return d2(1);
|
|
21165
|
+
case "hh":
|
|
21166
|
+
return d2(2);
|
|
21167
|
+
case "a":
|
|
21168
|
+
return $2(s2, u2, true);
|
|
21169
|
+
case "A":
|
|
21170
|
+
return $2(s2, u2, false);
|
|
21171
|
+
case "m":
|
|
21172
|
+
return String(u2);
|
|
21173
|
+
case "mm":
|
|
21174
|
+
return b.s(u2, 2, "0");
|
|
21175
|
+
case "s":
|
|
21176
|
+
return String(e2.$s);
|
|
21177
|
+
case "ss":
|
|
21178
|
+
return b.s(e2.$s, 2, "0");
|
|
21179
|
+
case "SSS":
|
|
21180
|
+
return b.s(e2.$ms, 3, "0");
|
|
21181
|
+
case "Z":
|
|
21182
|
+
return i2;
|
|
21183
|
+
}
|
|
21184
|
+
return null;
|
|
21185
|
+
}(t3) || i2.replace(":", "");
|
|
21186
|
+
});
|
|
21187
|
+
}, m2.utcOffset = function() {
|
|
21188
|
+
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
21189
|
+
}, m2.diff = function(r3, d2, l2) {
|
|
21190
|
+
var $2, y2 = this, M3 = b.p(d2), m3 = O(r3), v2 = (m3.utcOffset() - this.utcOffset()) * e, g2 = this - m3, D2 = function() {
|
|
21191
|
+
return b.m(y2, m3);
|
|
21192
|
+
};
|
|
21193
|
+
switch (M3) {
|
|
21194
|
+
case h:
|
|
21195
|
+
$2 = D2() / 12;
|
|
21196
|
+
break;
|
|
21197
|
+
case c:
|
|
21198
|
+
$2 = D2();
|
|
21199
|
+
break;
|
|
21200
|
+
case f:
|
|
21201
|
+
$2 = D2() / 3;
|
|
21202
|
+
break;
|
|
21203
|
+
case o:
|
|
21204
|
+
$2 = (g2 - v2) / 6048e5;
|
|
21205
|
+
break;
|
|
21206
|
+
case a:
|
|
21207
|
+
$2 = (g2 - v2) / 864e5;
|
|
21208
|
+
break;
|
|
21209
|
+
case u:
|
|
21210
|
+
$2 = g2 / n;
|
|
21211
|
+
break;
|
|
21212
|
+
case s:
|
|
21213
|
+
$2 = g2 / e;
|
|
21214
|
+
break;
|
|
21215
|
+
case i:
|
|
21216
|
+
$2 = g2 / t;
|
|
21217
|
+
break;
|
|
21218
|
+
default:
|
|
21219
|
+
$2 = g2;
|
|
21220
|
+
}
|
|
21221
|
+
return l2 ? $2 : b.a($2);
|
|
21222
|
+
}, m2.daysInMonth = function() {
|
|
21223
|
+
return this.endOf(c).$D;
|
|
21224
|
+
}, m2.$locale = function() {
|
|
21225
|
+
return D[this.$L];
|
|
21226
|
+
}, m2.locale = function(t2, e2) {
|
|
21227
|
+
if (!t2) return this.$L;
|
|
21228
|
+
var n2 = this.clone(), r3 = w2(t2, e2, true);
|
|
21229
|
+
return r3 && (n2.$L = r3), n2;
|
|
21230
|
+
}, m2.clone = function() {
|
|
21231
|
+
return b.w(this.$d, this);
|
|
21232
|
+
}, m2.toDate = function() {
|
|
21233
|
+
return new Date(this.valueOf());
|
|
21234
|
+
}, m2.toJSON = function() {
|
|
21235
|
+
return this.isValid() ? this.toISOString() : null;
|
|
21236
|
+
}, m2.toISOString = function() {
|
|
21237
|
+
return this.$d.toISOString();
|
|
21238
|
+
}, m2.toString = function() {
|
|
21239
|
+
return this.$d.toUTCString();
|
|
21240
|
+
}, M2;
|
|
21241
|
+
}(), k = _.prototype;
|
|
21242
|
+
return O.prototype = k, [["$ms", r2], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", c], ["$y", h], ["$D", d]].forEach(function(t2) {
|
|
21243
|
+
k[t2[1]] = function(e2) {
|
|
21244
|
+
return this.$g(e2, t2[0], t2[1]);
|
|
21250
21245
|
};
|
|
21251
|
-
|
|
21252
|
-
|
|
21253
|
-
|
|
21254
|
-
|
|
21255
|
-
|
|
21256
|
-
|
|
21257
|
-
|
|
21258
|
-
|
|
21259
|
-
|
|
21260
|
-
|
|
21261
|
-
case o:
|
|
21262
|
-
$2 = (g2 - v2) / 6048e5;
|
|
21263
|
-
break;
|
|
21264
|
-
case a:
|
|
21265
|
-
$2 = (g2 - v2) / 864e5;
|
|
21266
|
-
break;
|
|
21267
|
-
case u:
|
|
21268
|
-
$2 = g2 / n;
|
|
21269
|
-
break;
|
|
21270
|
-
case s:
|
|
21271
|
-
$2 = g2 / e;
|
|
21272
|
-
break;
|
|
21273
|
-
case i:
|
|
21274
|
-
$2 = g2 / t;
|
|
21275
|
-
break;
|
|
21276
|
-
default:
|
|
21277
|
-
$2 = g2;
|
|
21278
|
-
}
|
|
21279
|
-
return l2 ? $2 : b.a($2);
|
|
21280
|
-
}, m2.daysInMonth = function() {
|
|
21281
|
-
return this.endOf(c).$D;
|
|
21282
|
-
}, m2.$locale = function() {
|
|
21283
|
-
return D[this.$L];
|
|
21284
|
-
}, m2.locale = function(t2, e2) {
|
|
21285
|
-
if (!t2) return this.$L;
|
|
21286
|
-
var n2 = this.clone(), r3 = w2(t2, e2, true);
|
|
21287
|
-
return r3 && (n2.$L = r3), n2;
|
|
21288
|
-
}, m2.clone = function() {
|
|
21289
|
-
return b.w(this.$d, this);
|
|
21290
|
-
}, m2.toDate = function() {
|
|
21291
|
-
return new Date(this.valueOf());
|
|
21292
|
-
}, m2.toJSON = function() {
|
|
21293
|
-
return this.isValid() ? this.toISOString() : null;
|
|
21294
|
-
}, m2.toISOString = function() {
|
|
21295
|
-
return this.$d.toISOString();
|
|
21296
|
-
}, m2.toString = function() {
|
|
21297
|
-
return this.$d.toUTCString();
|
|
21298
|
-
}, M2;
|
|
21299
|
-
}(), k = _.prototype;
|
|
21300
|
-
return O.prototype = k, [["$ms", r2], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", c], ["$y", h], ["$D", d]].forEach(function(t2) {
|
|
21301
|
-
k[t2[1]] = function(e2) {
|
|
21302
|
-
return this.$g(e2, t2[0], t2[1]);
|
|
21303
|
-
};
|
|
21304
|
-
}), O.extend = function(t2, e2) {
|
|
21305
|
-
return t2.$i || (t2(e2, _, O), t2.$i = true), O;
|
|
21306
|
-
}, O.locale = w2, O.isDayjs = S, O.unix = function(t2) {
|
|
21307
|
-
return O(1e3 * t2);
|
|
21308
|
-
}, O.en = D[g], O.Ls = D, O.p = {}, O;
|
|
21309
|
-
});
|
|
21310
|
-
})(dayjs_min);
|
|
21311
|
-
var dayjs_minExports = dayjs_min.exports;
|
|
21246
|
+
}), O.extend = function(t2, e2) {
|
|
21247
|
+
return t2.$i || (t2(e2, _, O), t2.$i = true), O;
|
|
21248
|
+
}, O.locale = w2, O.isDayjs = S, O.unix = function(t2) {
|
|
21249
|
+
return O(1e3 * t2);
|
|
21250
|
+
}, O.en = D[g], O.Ls = D, O.p = {}, O;
|
|
21251
|
+
});
|
|
21252
|
+
})(dayjs_min);
|
|
21253
|
+
return dayjs_min.exports;
|
|
21254
|
+
}
|
|
21255
|
+
var dayjs_minExports = requireDayjs_min();
|
|
21312
21256
|
const dayjs = /* @__PURE__ */ getDefaultExportFromCjs(dayjs_minExports);
|
|
21313
21257
|
var es$2 = { exports: {} };
|
|
21314
21258
|
(function(module, exports) {
|
|
21315
21259
|
!function(e, o) {
|
|
21316
|
-
module.exports = o(
|
|
21260
|
+
module.exports = o(requireDayjs_min());
|
|
21317
21261
|
}(commonjsGlobal, function(e) {
|
|
21318
21262
|
function o(e2) {
|
|
21319
21263
|
return e2 && "object" == typeof e2 && "default" in e2 ? e2 : { default: e2 };
|
|
@@ -30879,11 +30823,11 @@ const useUtilityClasses$W = (ownerState) => {
|
|
|
30879
30823
|
size: size2,
|
|
30880
30824
|
color: color2,
|
|
30881
30825
|
onDelete,
|
|
30882
|
-
clickable
|
|
30826
|
+
clickable,
|
|
30883
30827
|
variant
|
|
30884
30828
|
} = ownerState;
|
|
30885
30829
|
const slots = {
|
|
30886
|
-
root: ["root", variant, disabled2 && "disabled", `size${capitalize$1(size2)}`, `color${capitalize$1(color2)}`,
|
|
30830
|
+
root: ["root", variant, disabled2 && "disabled", `size${capitalize$1(size2)}`, `color${capitalize$1(color2)}`, clickable && "clickable", onDelete && "deletable"],
|
|
30887
30831
|
label: ["label"],
|
|
30888
30832
|
avatar: ["avatar"],
|
|
30889
30833
|
icon: ["icon"],
|
|
@@ -30901,7 +30845,7 @@ const ChipRoot = styled("div", {
|
|
|
30901
30845
|
} = props;
|
|
30902
30846
|
const {
|
|
30903
30847
|
color: color2,
|
|
30904
|
-
clickable
|
|
30848
|
+
clickable,
|
|
30905
30849
|
onDelete,
|
|
30906
30850
|
size: size2,
|
|
30907
30851
|
variant
|
|
@@ -30912,7 +30856,7 @@ const ChipRoot = styled("div", {
|
|
|
30912
30856
|
[`& .${chipClasses.icon}`]: styles2.icon
|
|
30913
30857
|
}, {
|
|
30914
30858
|
[`& .${chipClasses.deleteIcon}`]: styles2.deleteIcon
|
|
30915
|
-
}, styles2.root, styles2[`size${capitalize$1(size2)}`], styles2[`color${capitalize$1(color2)}`],
|
|
30859
|
+
}, styles2.root, styles2[`size${capitalize$1(size2)}`], styles2[`color${capitalize$1(color2)}`], clickable && styles2.clickable, onDelete && styles2.deletable, styles2[variant]];
|
|
30916
30860
|
}
|
|
30917
30861
|
})(memoTheme(({
|
|
30918
30862
|
theme
|
|
@@ -31250,8 +31194,8 @@ const Chip = /* @__PURE__ */ React.forwardRef(function Chip2(inProps, ref) {
|
|
|
31250
31194
|
onKeyUp(event);
|
|
31251
31195
|
}
|
|
31252
31196
|
};
|
|
31253
|
-
const
|
|
31254
|
-
const component =
|
|
31197
|
+
const clickable = clickableProp !== false && onClick ? true : clickableProp;
|
|
31198
|
+
const component = clickable || onDelete ? ButtonBase : ComponentProp || "div";
|
|
31255
31199
|
const ownerState = {
|
|
31256
31200
|
...props,
|
|
31257
31201
|
component,
|
|
@@ -31260,7 +31204,7 @@ const Chip = /* @__PURE__ */ React.forwardRef(function Chip2(inProps, ref) {
|
|
|
31260
31204
|
color: color2,
|
|
31261
31205
|
iconColor: /* @__PURE__ */ React.isValidElement(iconProp) ? iconProp.props.color || color2 : color2,
|
|
31262
31206
|
onDelete: !!onDelete,
|
|
31263
|
-
clickable
|
|
31207
|
+
clickable,
|
|
31264
31208
|
variant
|
|
31265
31209
|
};
|
|
31266
31210
|
const classes = useUtilityClasses$W(ownerState);
|
|
@@ -31318,7 +31262,7 @@ const Chip = /* @__PURE__ */ React.forwardRef(function Chip2(inProps, ref) {
|
|
|
31318
31262
|
ref: handleRef,
|
|
31319
31263
|
className: clsx(classes.root, className),
|
|
31320
31264
|
additionalProps: {
|
|
31321
|
-
disabled:
|
|
31265
|
+
disabled: clickable && disabled2 ? true : void 0,
|
|
31322
31266
|
tabIndex: skipFocusWhenDisabled && disabled2 ? -1 : tabIndex,
|
|
31323
31267
|
...moreProps
|
|
31324
31268
|
},
|
|
@@ -65692,7 +65636,7 @@ const _convertValueToOption = (value) => {
|
|
|
65692
65636
|
if (!value) return null;
|
|
65693
65637
|
return { value, label: value };
|
|
65694
65638
|
};
|
|
65695
|
-
const
|
|
65639
|
+
const Searcher = (props) => {
|
|
65696
65640
|
const {
|
|
65697
65641
|
name,
|
|
65698
65642
|
label: label2,
|
|
@@ -65882,7 +65826,6 @@ const SearcherBase = (props) => {
|
|
|
65882
65826
|
)
|
|
65883
65827
|
] });
|
|
65884
65828
|
};
|
|
65885
|
-
const Searcher = withDebugHandlers(SearcherBase, "Searcher");
|
|
65886
65829
|
const title$5 = "switchInput-module_title_lBK2p";
|
|
65887
65830
|
const disabled$4 = "switchInput-module_disabled_yz9dR";
|
|
65888
65831
|
const lg$5 = "switchInput-module_lg_WMIDO";
|
|
@@ -66264,7 +66207,7 @@ const Check = createSvgIcon(/* @__PURE__ */ jsx$1("path", {
|
|
|
66264
66207
|
const ContentCopy = createSvgIcon(/* @__PURE__ */ jsx$1("path", {
|
|
66265
66208
|
d: "M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"
|
|
66266
66209
|
}), "ContentCopy");
|
|
66267
|
-
const
|
|
66210
|
+
const CopyButton = ({
|
|
66268
66211
|
onClick,
|
|
66269
66212
|
copyText = locale("copyButton.copy"),
|
|
66270
66213
|
copiedText = locale("copyButton.copied"),
|
|
@@ -66308,7 +66251,6 @@ const Icons = ({ copied }) => /* @__PURE__ */ jsxs("div", { className: "copy-btn
|
|
|
66308
66251
|
/* @__PURE__ */ jsx$1("div", { className: `copy-icon ${copied ? "hidden" : ""}`, children: /* @__PURE__ */ jsx$1(ContentCopy, { "data-testid": "ContentCopyIcon" }) }),
|
|
66309
66252
|
/* @__PURE__ */ jsx$1("div", { className: `check-icon ${!copied ? "hidden" : ""}`, children: /* @__PURE__ */ jsx$1(Check, {}) })
|
|
66310
66253
|
] });
|
|
66311
|
-
const CopyButton = withDebugHandlers(CopyButtonBase, "CopyButton");
|
|
66312
66254
|
const dense = "headerSection-module_dense_f1FWn";
|
|
66313
66255
|
const content = "headerSection-module_content_5y2PB";
|
|
66314
66256
|
const title$4 = "headerSection-module_title_cabYm";
|
|
@@ -68264,19 +68206,38 @@ const AlertBase = ({
|
|
|
68264
68206
|
);
|
|
68265
68207
|
};
|
|
68266
68208
|
const Alert = withDebugHandlers(AlertBase, "Alert");
|
|
68209
|
+
var baseKeys = _baseKeys, getTag = _getTag, isArrayLike$1 = isArrayLike_1, isString = isString_1, stringSize = _stringSize;
|
|
68210
|
+
var mapTag = "[object Map]", setTag = "[object Set]";
|
|
68211
|
+
function size(collection) {
|
|
68212
|
+
if (collection == null) {
|
|
68213
|
+
return 0;
|
|
68214
|
+
}
|
|
68215
|
+
if (isArrayLike$1(collection)) {
|
|
68216
|
+
return isString(collection) ? stringSize(collection) : collection.length;
|
|
68217
|
+
}
|
|
68218
|
+
var tag = getTag(collection);
|
|
68219
|
+
if (tag == mapTag || tag == setTag) {
|
|
68220
|
+
return collection.size;
|
|
68221
|
+
}
|
|
68222
|
+
return baseKeys(collection).length;
|
|
68223
|
+
}
|
|
68224
|
+
var size_1 = size;
|
|
68225
|
+
const size$1 = /* @__PURE__ */ getDefaultExportFromCjs(size_1);
|
|
68267
68226
|
const breadcrumb = "breadcrumb-module_breadcrumb_r-ILp";
|
|
68268
68227
|
const styles$8 = {
|
|
68269
68228
|
breadcrumb,
|
|
68270
68229
|
"breadcrumb-item": "breadcrumb-module_breadcrumb-item_suTUF"
|
|
68271
68230
|
};
|
|
68272
68231
|
const BreadcrumbItemComponent = ({ item: item2, index: index2, items }) => {
|
|
68232
|
+
const isLast = index2 === size$1(items) - 1;
|
|
68273
68233
|
const text2 = `${item2.text} >`;
|
|
68274
|
-
return item2
|
|
68275
|
-
|
|
68234
|
+
return item2.isActive || isLast ? /* @__PURE__ */ jsx$1(
|
|
68235
|
+
Button$2,
|
|
68276
68236
|
{
|
|
68277
|
-
|
|
68278
|
-
|
|
68279
|
-
|
|
68237
|
+
variant: "link",
|
|
68238
|
+
size: "sm",
|
|
68239
|
+
label: text2,
|
|
68240
|
+
onClick: item2.onClick
|
|
68280
68241
|
}
|
|
68281
68242
|
) : /* @__PURE__ */ jsxs("div", { className: styles$8["breadcrumb-item"], children: [
|
|
68282
68243
|
" ",
|
|
@@ -68284,14 +68245,13 @@ const BreadcrumbItemComponent = ({ item: item2, index: index2, items }) => {
|
|
|
68284
68245
|
" "
|
|
68285
68246
|
] });
|
|
68286
68247
|
};
|
|
68287
|
-
const
|
|
68248
|
+
const Breadcrumb = ({
|
|
68288
68249
|
items,
|
|
68289
68250
|
className,
|
|
68290
68251
|
...otherProps
|
|
68291
68252
|
}) => {
|
|
68292
68253
|
return /* @__PURE__ */ jsx$1("nav", { className: clsx(styles$8["breadcrumb"], className), "aria-label": "Breadcrumb", ...otherProps, children: map$2(items, (item2, index2) => /* @__PURE__ */ jsx$1(BreadcrumbItemComponent, { item: item2, index: index2, items }, index2)) });
|
|
68293
68254
|
};
|
|
68294
|
-
const Breadcrumb = withDebugHandlers(BreadcrumbBase, "Breadcrumb");
|
|
68295
68255
|
const MoreVertIcon = createSvgIcon(/* @__PURE__ */ jsx$1("path", {
|
|
68296
68256
|
d: "M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"
|
|
68297
68257
|
}), "MoreVert");
|
|
@@ -68533,11 +68493,11 @@ const WarningModalBase = ({
|
|
|
68533
68493
|
}
|
|
68534
68494
|
);
|
|
68535
68495
|
const WarningModal = withDebugHandlers(WarningModalBase, "WarningModal");
|
|
68536
|
-
var baseIteratee$1 = _baseIteratee, isArrayLike
|
|
68496
|
+
var baseIteratee$1 = _baseIteratee, isArrayLike = isArrayLike_1, keys = keys_1;
|
|
68537
68497
|
function createFind$1(findIndexFunc) {
|
|
68538
68498
|
return function(collection, predicate, fromIndex) {
|
|
68539
68499
|
var iterable = Object(collection);
|
|
68540
|
-
if (!isArrayLike
|
|
68500
|
+
if (!isArrayLike(collection)) {
|
|
68541
68501
|
var iteratee = baseIteratee$1(predicate);
|
|
68542
68502
|
collection = keys(collection);
|
|
68543
68503
|
predicate = function(key) {
|
|
@@ -77135,23 +77095,6 @@ const DraggableListBase = ({
|
|
|
77135
77095
|
] });
|
|
77136
77096
|
};
|
|
77137
77097
|
const DraggableList = withDebugHandlers(DraggableListBase, "DraggableList");
|
|
77138
|
-
var baseKeys = _baseKeys, getTag = _getTag, isArrayLike = isArrayLike_1, isString = isString_1, stringSize = _stringSize;
|
|
77139
|
-
var mapTag = "[object Map]", setTag = "[object Set]";
|
|
77140
|
-
function size(collection) {
|
|
77141
|
-
if (collection == null) {
|
|
77142
|
-
return 0;
|
|
77143
|
-
}
|
|
77144
|
-
if (isArrayLike(collection)) {
|
|
77145
|
-
return isString(collection) ? stringSize(collection) : collection.length;
|
|
77146
|
-
}
|
|
77147
|
-
var tag = getTag(collection);
|
|
77148
|
-
if (tag == mapTag || tag == setTag) {
|
|
77149
|
-
return collection.size;
|
|
77150
|
-
}
|
|
77151
|
-
return baseKeys(collection).length;
|
|
77152
|
-
}
|
|
77153
|
-
var size_1 = size;
|
|
77154
|
-
const size$1 = /* @__PURE__ */ getDefaultExportFromCjs(size_1);
|
|
77155
77098
|
const CheckRoundedIcon = createSvgIcon(/* @__PURE__ */ jsx$1("path", {
|
|
77156
77099
|
d: "M9 16.17 5.53 12.7a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l4.18 4.18c.39.39 1.02.39 1.41 0L20.29 7.71c.39-.39.39-1.02 0-1.41a.996.996 0 0 0-1.41 0z"
|
|
77157
77100
|
}), "CheckRounded");
|
|
@@ -77240,23 +77183,12 @@ const styles = {
|
|
|
77240
77183
|
"header-row": "table-module_header-row_ry6Lv",
|
|
77241
77184
|
"body-row": "table-module_body-row_OMOX0",
|
|
77242
77185
|
"header-cell": "table-module_header-cell_0FEWz",
|
|
77243
|
-
"body-cell": "table-module_body-cell_p4019"
|
|
77244
|
-
"body-async": "table-module_body-async_21Z7L"
|
|
77186
|
+
"body-cell": "table-module_body-cell_p4019"
|
|
77245
77187
|
};
|
|
77246
|
-
const TableBody = ({ data,
|
|
77188
|
+
const TableBody = ({ data, emptyMessage }) => {
|
|
77247
77189
|
const columns = useContext(TableContext);
|
|
77248
|
-
|
|
77249
|
-
|
|
77250
|
-
return /* @__PURE__ */ jsx$1("tbody", { children: /* @__PURE__ */ jsx$1("tr", { children: /* @__PURE__ */ jsx$1("td", { colSpan: columns.length, className: styles["body-async"], children: /* @__PURE__ */ jsx$1(
|
|
77251
|
-
AsyncContent,
|
|
77252
|
-
{
|
|
77253
|
-
isLoading,
|
|
77254
|
-
error: error2,
|
|
77255
|
-
success: success2,
|
|
77256
|
-
empty: { ...empty, items: data },
|
|
77257
|
-
children: /* @__PURE__ */ jsx$1(Fragment$1, {})
|
|
77258
|
-
}
|
|
77259
|
-
) }) }) });
|
|
77190
|
+
if (data.length === 0) {
|
|
77191
|
+
return /* @__PURE__ */ jsx$1("tbody", { children: /* @__PURE__ */ jsx$1("tr", { children: /* @__PURE__ */ jsx$1("td", { colSpan: columns.length, children: /* @__PURE__ */ jsx$1(EmptyState, { text: emptyMessage }) }) }) });
|
|
77260
77192
|
}
|
|
77261
77193
|
return /* @__PURE__ */ jsx$1("tbody", { children: data.map((row, rowIndex) => /* @__PURE__ */ jsx$1("tr", { className: styles["body-row"], children: columns.map((col) => {
|
|
77262
77194
|
const value = row[col.key];
|