@producteca/producteca-ui-kit 1.71.2 → 1.72.0
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/README.md +1 -1
- package/dist/components/breadcrumb/breadcrumb.d.ts +0 -1
- package/dist/components/chip/chip.d.ts +3 -2
- package/dist/components/inputs/datePicker/datePickerUtils.d.ts +3 -1
- package/dist/components/table/table/table.examples.d.ts +1 -0
- package/dist/components/table/tableBody/tableBody.d.ts +1 -1
- package/dist/components/table/tableBody/tableBody.types.d.ts +6 -1
- package/dist/locales/description.d.ts +3 -2
- package/dist/locales/es.d.ts +2 -0
- package/dist/producteca-ui-kit.es.js +435 -361
- package/dist/producteca-ui-kit.umd.js +35 -35
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -21,31 +21,49 @@ function clsx() {
|
|
|
21
21
|
}
|
|
22
22
|
const DEBUG_ENVS = ["local", "development"];
|
|
23
23
|
const readEnv = () => {
|
|
24
|
+
const override = globalThis.__PRODUCTECA_UI_ENV__;
|
|
25
|
+
if (typeof override === "string") return override;
|
|
24
26
|
const proc = globalThis.process;
|
|
25
|
-
if (proc?.env?.
|
|
26
|
-
const escapeHatch = globalThis.__PRODUCTECA_UI_ENV__;
|
|
27
|
-
if (typeof escapeHatch === "string") return escapeHatch;
|
|
27
|
+
if (proc?.env?.NODE_ENV) return proc.env.NODE_ENV;
|
|
28
28
|
return void 0;
|
|
29
29
|
};
|
|
30
30
|
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
|
|
34
|
+
const MAX_DEPTH = 4;
|
|
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
|
+
};
|
|
35
63
|
function withDebugHandlers(Component2, componentName) {
|
|
36
64
|
if (!isDebugEnabled()) return Component2;
|
|
37
65
|
const Wrapped = forwardRef((props, ref) => {
|
|
38
|
-
const
|
|
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
|
-
}
|
|
66
|
+
const next2 = wrapDeep(props, componentName, "", 0);
|
|
49
67
|
const Cmp = Component2;
|
|
50
68
|
return /* @__PURE__ */ jsx$1(Cmp, { ...next2, ...ref ? { ref } : {} });
|
|
51
69
|
});
|
|
@@ -10014,7 +10032,7 @@ const ColorValues = map$2(allColors, "color");
|
|
|
10014
10032
|
const Shades = map$2(Colors["grey"], (color2, shade) => shade);
|
|
10015
10033
|
const Categories = map$2(Colors, (shades, category) => category);
|
|
10016
10034
|
const isValidColor = (color2) => includes$1(ColorValues, color2);
|
|
10017
|
-
const
|
|
10035
|
+
const CustomIconBase = ({
|
|
10018
10036
|
color: color2 = getColor("grey", "500"),
|
|
10019
10037
|
size: size2 = "16",
|
|
10020
10038
|
sx,
|
|
@@ -10055,6 +10073,7 @@ const _translateSizeToFontSize = (size2) => {
|
|
|
10055
10073
|
};
|
|
10056
10074
|
return transform[size2] || transform["16"];
|
|
10057
10075
|
};
|
|
10076
|
+
const CustomIcon = withDebugHandlers(CustomIconBase, "CustomIcon");
|
|
10058
10077
|
const chip = "chip-module_chip_U3kfP";
|
|
10059
10078
|
const title$8 = "chip-module_title_DARz9";
|
|
10060
10079
|
const text = "chip-module_text_4xvju";
|
|
@@ -10064,6 +10083,7 @@ const tab$1 = "chip-module_tab_TQ-ke";
|
|
|
10064
10083
|
const grey = "chip-module_grey_M9U8T";
|
|
10065
10084
|
const active$3 = "chip-module_active_uJfiq";
|
|
10066
10085
|
const disabled$8 = "chip-module_disabled_21ZO5";
|
|
10086
|
+
const clickable = "chip-module_clickable_M0dZ3";
|
|
10067
10087
|
const success$1 = "chip-module_success_BJKfz";
|
|
10068
10088
|
const error$3 = "chip-module_error_an-gm";
|
|
10069
10089
|
const secondary = "chip-module_secondary_3aQ1S";
|
|
@@ -10079,26 +10099,44 @@ const styles$H = {
|
|
|
10079
10099
|
grey,
|
|
10080
10100
|
active: active$3,
|
|
10081
10101
|
disabled: disabled$8,
|
|
10102
|
+
clickable,
|
|
10082
10103
|
success: success$1,
|
|
10083
10104
|
error: error$3,
|
|
10084
10105
|
secondary,
|
|
10085
10106
|
primary,
|
|
10086
10107
|
action: action$1
|
|
10087
10108
|
};
|
|
10088
|
-
const ChipBase = ({ isActive, title: title2, text: text2, content: content2, onRemove = void 0, disabled: disabled2 = false, variant = "primary", size: size2 = "lg" }) => {
|
|
10109
|
+
const ChipBase = ({ isActive, title: title2, text: text2, content: content2, onRemove = void 0, onClick = void 0, disabled: disabled2 = false, variant = "primary", size: size2 = "lg" }) => {
|
|
10089
10110
|
const canRemove = onRemove && !disabled2;
|
|
10090
|
-
|
|
10091
|
-
|
|
10092
|
-
(
|
|
10093
|
-
|
|
10094
|
-
|
|
10095
|
-
|
|
10096
|
-
|
|
10097
|
-
|
|
10098
|
-
|
|
10099
|
-
|
|
10100
|
-
|
|
10101
|
-
|
|
10111
|
+
const isClickable = !!onClick && !disabled2;
|
|
10112
|
+
const handleKeyDown = (event) => {
|
|
10113
|
+
if (event.key === "Enter" || event.key === " ") {
|
|
10114
|
+
event.preventDefault();
|
|
10115
|
+
onClick?.(event);
|
|
10116
|
+
}
|
|
10117
|
+
};
|
|
10118
|
+
return /* @__PURE__ */ jsx$1(Grow, { in: !!text2 || !!title2 || !!content2, unmountOnExit: true, children: /* @__PURE__ */ jsxs(
|
|
10119
|
+
"span",
|
|
10120
|
+
{
|
|
10121
|
+
className: clsx(styles$H.chip, styles$H[variant], styles$H[size2], { [styles$H.disabled]: disabled2, [styles$H.active]: isActive, [styles$H.clickable]: isClickable }),
|
|
10122
|
+
role: isClickable ? "button" : void 0,
|
|
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
|
+
) });
|
|
10102
10140
|
};
|
|
10103
10141
|
const Chip$1 = withDebugHandlers(ChipBase, "Chip");
|
|
10104
10142
|
const defaultColor$c = getColor("grey", "500");
|
|
@@ -19067,14 +19105,12 @@ const breadcrumbItemFormat = `
|
|
|
19067
19105
|
|
|
19068
19106
|
- **\`text\`** (string, requerido): El texto que se muestra para el item del breadcrumb
|
|
19069
19107
|
- **\`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
|
|
19071
19108
|
- **\`href\`** (string, opcional): URL del enlace (actualmente no implementado en el renderizado)
|
|
19072
19109
|
|
|
19073
19110
|
### Comportamiento:
|
|
19074
19111
|
|
|
19075
19112
|
- Los items con \`onClick\` se renderizan como botones clickeables
|
|
19076
19113
|
- 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)
|
|
19078
19114
|
- Cada item se separa automáticamente con el símbolo ">"
|
|
19079
19115
|
|
|
19080
19116
|
### Ejemplo de uso:
|
|
@@ -19083,7 +19119,7 @@ const breadcrumbItemFormat = `
|
|
|
19083
19119
|
const breadcrumbItems = [
|
|
19084
19120
|
{ text: 'Dashboard' },
|
|
19085
19121
|
{ text: 'Productos', onClick: () => navigate('/products') },
|
|
19086
|
-
{ text: 'Detalles'
|
|
19122
|
+
{ text: 'Detalles' }
|
|
19087
19123
|
]
|
|
19088
19124
|
|
|
19089
19125
|
<Breadcrumb items={breadcrumbItems} />
|
|
@@ -19788,7 +19824,7 @@ const columns: TableColumn<MyRow>[] = [
|
|
|
19788
19824
|
const tableBodyExample = `
|
|
19789
19825
|
## Uso del componente
|
|
19790
19826
|
|
|
19791
|
-
\`Table.Body\` renderiza las filas de datos. Lee las columnas del contexto provisto por \`Table\`.
|
|
19827
|
+
\`Table.Body\` renderiza las filas de datos. Lee las columnas del contexto provisto por \`Table\`. Integra \`AsyncContent\` internamente, por lo que acepta las props de estado (\`isLoading\`, \`error\`, \`empty\`, \`success\`) para mostrar el loader, el error o el estado vacío dentro de la tabla.
|
|
19792
19828
|
|
|
19793
19829
|
### Ejemplo básico:
|
|
19794
19830
|
|
|
@@ -19798,13 +19834,15 @@ const tableBodyExample = `
|
|
|
19798
19834
|
</Table>
|
|
19799
19835
|
\`\`\`
|
|
19800
19836
|
|
|
19801
|
-
###
|
|
19837
|
+
### Con estados asíncronos:
|
|
19802
19838
|
|
|
19803
19839
|
\`\`\`tsx
|
|
19804
19840
|
<Table columns={columns}>
|
|
19841
|
+
<Table.Header />
|
|
19805
19842
|
<Table.Body
|
|
19806
|
-
data={
|
|
19807
|
-
|
|
19843
|
+
data={rows}
|
|
19844
|
+
isLoading={isLoading}
|
|
19845
|
+
empty={{ text: 'No hay datos', actionText: 'Cargar', onClick: loadData }}
|
|
19808
19846
|
/>
|
|
19809
19847
|
</Table>
|
|
19810
19848
|
\`\`\`
|
|
@@ -19838,6 +19876,28 @@ const columns: TableColumn<MyRow>[] = [
|
|
|
19838
19876
|
]
|
|
19839
19877
|
\`\`\`
|
|
19840
19878
|
`;
|
|
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
|
+
`;
|
|
19841
19901
|
const spinnerExample = `
|
|
19842
19902
|
## Uso del componente
|
|
19843
19903
|
|
|
@@ -20116,7 +20176,8 @@ const es$3 = {
|
|
|
20116
20176
|
example: spinnerExample
|
|
20117
20177
|
},
|
|
20118
20178
|
table: {
|
|
20119
|
-
example: tableExample
|
|
20179
|
+
example: tableExample,
|
|
20180
|
+
asyncContent: tableAsyncContentExample
|
|
20120
20181
|
},
|
|
20121
20182
|
tableHeader: {
|
|
20122
20183
|
example: tableHeaderExample
|
|
@@ -20244,6 +20305,7 @@ const es$3 = {
|
|
|
20244
20305
|
text: "Texto",
|
|
20245
20306
|
title: "Título",
|
|
20246
20307
|
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)",
|
|
20247
20309
|
disabled: "Deshabilita el chip y oculta el ícono de cerrar",
|
|
20248
20310
|
variant: "Variante visual del chip que cambia el color de fondo (default, success, error, warning, info)",
|
|
20249
20311
|
size: "Tamaño del chip (sm: pequeño, lg: grande, undefined: tamaño por defecto)"
|
|
@@ -20971,293 +21033,287 @@ const VisibilityIcon = ({ showPassword, setShowPassword }) => {
|
|
|
20971
21033
|
return /* @__PURE__ */ jsx$1("div", { "data-testid": "visibility-toggle", onClick: () => setShowPassword(!showPassword), children: showPassword ? /* @__PURE__ */ jsx$1(Visibility, {}) : /* @__PURE__ */ jsx$1(VisibilityOff, {}) });
|
|
20972
21034
|
};
|
|
20973
21035
|
var dayjs_min = { exports: {} };
|
|
20974
|
-
|
|
20975
|
-
function
|
|
20976
|
-
|
|
20977
|
-
|
|
20978
|
-
|
|
20979
|
-
|
|
20980
|
-
|
|
20981
|
-
}
|
|
20982
|
-
var
|
|
20983
|
-
|
|
20984
|
-
|
|
20985
|
-
|
|
20986
|
-
|
|
20987
|
-
|
|
20988
|
-
|
|
20989
|
-
|
|
20990
|
-
|
|
20991
|
-
|
|
20992
|
-
|
|
20993
|
-
|
|
20994
|
-
|
|
20995
|
-
|
|
20996
|
-
|
|
20997
|
-
|
|
20998
|
-
|
|
20999
|
-
|
|
21000
|
-
|
|
21001
|
-
|
|
21002
|
-
|
|
21003
|
-
|
|
21004
|
-
|
|
21005
|
-
|
|
21006
|
-
|
|
21007
|
-
|
|
21008
|
-
if (
|
|
21009
|
-
|
|
21010
|
-
|
|
21011
|
-
|
|
21012
|
-
|
|
21013
|
-
|
|
21014
|
-
|
|
21015
|
-
|
|
21016
|
-
|
|
21017
|
-
|
|
21018
|
-
|
|
21019
|
-
|
|
21020
|
-
|
|
21021
|
-
|
|
21022
|
-
|
|
21023
|
-
|
|
21024
|
-
|
|
21025
|
-
}
|
|
21026
|
-
var
|
|
21027
|
-
|
|
21028
|
-
|
|
21029
|
-
|
|
21030
|
-
|
|
21031
|
-
|
|
21032
|
-
|
|
21033
|
-
|
|
21034
|
-
|
|
21035
|
-
if (
|
|
21036
|
-
|
|
21037
|
-
|
|
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
|
-
}
|
|
21036
|
+
(function(module, exports) {
|
|
21037
|
+
!function(t, e) {
|
|
21038
|
+
module.exports = e();
|
|
21039
|
+
}(commonjsGlobal, function() {
|
|
21040
|
+
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) {
|
|
21041
|
+
var e2 = ["th", "st", "nd", "rd"], n2 = t2 % 100;
|
|
21042
|
+
return "[" + t2 + (e2[(n2 - 20) % 10] || e2[n2] || e2[0]) + "]";
|
|
21043
|
+
} }, m = function(t2, e2, n2) {
|
|
21044
|
+
var r3 = String(t2);
|
|
21045
|
+
return !r3 || r3.length >= e2 ? t2 : "" + Array(e2 + 1 - r3.length).join(n2) + t2;
|
|
21046
|
+
}, v = { s: m, z: function(t2) {
|
|
21047
|
+
var e2 = -t2.utcOffset(), n2 = Math.abs(e2), r3 = Math.floor(n2 / 60), i2 = n2 % 60;
|
|
21048
|
+
return (e2 <= 0 ? "+" : "-") + m(r3, 2, "0") + ":" + m(i2, 2, "0");
|
|
21049
|
+
}, m: function t2(e2, n2) {
|
|
21050
|
+
if (e2.date() < n2.date()) return -t2(n2, e2);
|
|
21051
|
+
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);
|
|
21052
|
+
return +(-(r3 + (n2 - i2) / (s2 ? i2 - u2 : u2 - i2)) || 0);
|
|
21053
|
+
}, a: function(t2) {
|
|
21054
|
+
return t2 < 0 ? Math.ceil(t2) || 0 : Math.floor(t2);
|
|
21055
|
+
}, p: function(t2) {
|
|
21056
|
+
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$/, "");
|
|
21057
|
+
}, u: function(t2) {
|
|
21058
|
+
return void 0 === t2;
|
|
21059
|
+
} }, g = "en", D = {};
|
|
21060
|
+
D[g] = M;
|
|
21061
|
+
var p = "$isDayjsObject", S = function(t2) {
|
|
21062
|
+
return t2 instanceof _ || !(!t2 || !t2[p]);
|
|
21063
|
+
}, w2 = function t2(e2, n2, r3) {
|
|
21064
|
+
var i2;
|
|
21065
|
+
if (!e2) return g;
|
|
21066
|
+
if ("string" == typeof e2) {
|
|
21067
|
+
var s2 = e2.toLowerCase();
|
|
21068
|
+
D[s2] && (i2 = s2), n2 && (D[s2] = n2, i2 = s2);
|
|
21069
|
+
var u2 = e2.split("-");
|
|
21070
|
+
if (!i2 && u2.length > 1) return t2(u2[0]);
|
|
21071
|
+
} else {
|
|
21072
|
+
var a2 = e2.name;
|
|
21073
|
+
D[a2] = e2, i2 = a2;
|
|
21074
|
+
}
|
|
21075
|
+
return !r3 && i2 && (g = i2), i2 || !r3 && g;
|
|
21076
|
+
}, O = function(t2, e2) {
|
|
21077
|
+
if (S(t2)) return t2.clone();
|
|
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);
|
|
21043
21100
|
}
|
|
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
21101
|
}
|
|
21221
|
-
return
|
|
21222
|
-
},
|
|
21223
|
-
|
|
21224
|
-
|
|
21225
|
-
|
|
21226
|
-
|
|
21227
|
-
|
|
21228
|
-
|
|
21229
|
-
|
|
21230
|
-
|
|
21231
|
-
|
|
21232
|
-
|
|
21233
|
-
|
|
21234
|
-
|
|
21235
|
-
|
|
21236
|
-
|
|
21237
|
-
|
|
21238
|
-
|
|
21239
|
-
|
|
21240
|
-
|
|
21241
|
-
}
|
|
21242
|
-
|
|
21243
|
-
|
|
21244
|
-
|
|
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();
|
|
21150
|
+
}
|
|
21151
|
+
}, m2.endOf = function(t2) {
|
|
21152
|
+
return this.startOf(t2, false);
|
|
21153
|
+
}, m2.$set = function(t2, e2) {
|
|
21154
|
+
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;
|
|
21155
|
+
if (o2 === c || o2 === h) {
|
|
21156
|
+
var y2 = this.clone().set(d, 1);
|
|
21157
|
+
y2.$d[l2]($2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
|
|
21158
|
+
} else l2 && this.$d[l2]($2);
|
|
21159
|
+
return this.init(), this;
|
|
21160
|
+
}, m2.set = function(t2, e2) {
|
|
21161
|
+
return this.clone().$set(t2, e2);
|
|
21162
|
+
}, m2.get = function(t2) {
|
|
21163
|
+
return this[b.p(t2)]();
|
|
21164
|
+
}, m2.add = function(r3, f2) {
|
|
21165
|
+
var d2, l2 = this;
|
|
21166
|
+
r3 = Number(r3);
|
|
21167
|
+
var $2 = b.p(f2), y2 = function(t2) {
|
|
21168
|
+
var e2 = O(l2);
|
|
21169
|
+
return b.w(e2.date(e2.date() + Math.round(t2 * r3)), l2);
|
|
21245
21170
|
};
|
|
21246
|
-
|
|
21247
|
-
|
|
21248
|
-
|
|
21249
|
-
|
|
21250
|
-
|
|
21251
|
-
|
|
21252
|
-
|
|
21253
|
-
|
|
21254
|
-
}
|
|
21255
|
-
var
|
|
21171
|
+
if ($2 === c) return this.set(c, this.$M + r3);
|
|
21172
|
+
if ($2 === h) return this.set(h, this.$y + r3);
|
|
21173
|
+
if ($2 === a) return y2(1);
|
|
21174
|
+
if ($2 === o) return y2(7);
|
|
21175
|
+
var M3 = (d2 = {}, d2[s] = e, d2[u] = n, d2[i] = t, d2)[$2] || 1, m3 = this.$d.getTime() + r3 * M3;
|
|
21176
|
+
return b.w(m3, this);
|
|
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;
|
|
21241
|
+
}
|
|
21242
|
+
return null;
|
|
21243
|
+
}(t3) || i2.replace(":", "");
|
|
21244
|
+
});
|
|
21245
|
+
}, m2.utcOffset = function() {
|
|
21246
|
+
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
21247
|
+
}, m2.diff = function(r3, d2, l2) {
|
|
21248
|
+
var $2, y2 = this, M3 = b.p(d2), m3 = O(r3), v2 = (m3.utcOffset() - this.utcOffset()) * e, g2 = this - m3, D2 = function() {
|
|
21249
|
+
return b.m(y2, m3);
|
|
21250
|
+
};
|
|
21251
|
+
switch (M3) {
|
|
21252
|
+
case h:
|
|
21253
|
+
$2 = D2() / 12;
|
|
21254
|
+
break;
|
|
21255
|
+
case c:
|
|
21256
|
+
$2 = D2();
|
|
21257
|
+
break;
|
|
21258
|
+
case f:
|
|
21259
|
+
$2 = D2() / 3;
|
|
21260
|
+
break;
|
|
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;
|
|
21256
21312
|
const dayjs = /* @__PURE__ */ getDefaultExportFromCjs(dayjs_minExports);
|
|
21257
21313
|
var es$2 = { exports: {} };
|
|
21258
21314
|
(function(module, exports) {
|
|
21259
21315
|
!function(e, o) {
|
|
21260
|
-
module.exports = o(
|
|
21316
|
+
module.exports = o(dayjs_minExports);
|
|
21261
21317
|
}(commonjsGlobal, function(e) {
|
|
21262
21318
|
function o(e2) {
|
|
21263
21319
|
return e2 && "object" == typeof e2 && "default" in e2 ? e2 : { default: e2 };
|
|
@@ -30823,11 +30879,11 @@ const useUtilityClasses$W = (ownerState) => {
|
|
|
30823
30879
|
size: size2,
|
|
30824
30880
|
color: color2,
|
|
30825
30881
|
onDelete,
|
|
30826
|
-
clickable,
|
|
30882
|
+
clickable: clickable2,
|
|
30827
30883
|
variant
|
|
30828
30884
|
} = ownerState;
|
|
30829
30885
|
const slots = {
|
|
30830
|
-
root: ["root", variant, disabled2 && "disabled", `size${capitalize$1(size2)}`, `color${capitalize$1(color2)}`,
|
|
30886
|
+
root: ["root", variant, disabled2 && "disabled", `size${capitalize$1(size2)}`, `color${capitalize$1(color2)}`, clickable2 && "clickable", onDelete && "deletable"],
|
|
30831
30887
|
label: ["label"],
|
|
30832
30888
|
avatar: ["avatar"],
|
|
30833
30889
|
icon: ["icon"],
|
|
@@ -30845,7 +30901,7 @@ const ChipRoot = styled("div", {
|
|
|
30845
30901
|
} = props;
|
|
30846
30902
|
const {
|
|
30847
30903
|
color: color2,
|
|
30848
|
-
clickable,
|
|
30904
|
+
clickable: clickable2,
|
|
30849
30905
|
onDelete,
|
|
30850
30906
|
size: size2,
|
|
30851
30907
|
variant
|
|
@@ -30856,7 +30912,7 @@ const ChipRoot = styled("div", {
|
|
|
30856
30912
|
[`& .${chipClasses.icon}`]: styles2.icon
|
|
30857
30913
|
}, {
|
|
30858
30914
|
[`& .${chipClasses.deleteIcon}`]: styles2.deleteIcon
|
|
30859
|
-
}, styles2.root, styles2[`size${capitalize$1(size2)}`], styles2[`color${capitalize$1(color2)}`],
|
|
30915
|
+
}, styles2.root, styles2[`size${capitalize$1(size2)}`], styles2[`color${capitalize$1(color2)}`], clickable2 && styles2.clickable, onDelete && styles2.deletable, styles2[variant]];
|
|
30860
30916
|
}
|
|
30861
30917
|
})(memoTheme(({
|
|
30862
30918
|
theme
|
|
@@ -31194,8 +31250,8 @@ const Chip = /* @__PURE__ */ React.forwardRef(function Chip2(inProps, ref) {
|
|
|
31194
31250
|
onKeyUp(event);
|
|
31195
31251
|
}
|
|
31196
31252
|
};
|
|
31197
|
-
const
|
|
31198
|
-
const component =
|
|
31253
|
+
const clickable2 = clickableProp !== false && onClick ? true : clickableProp;
|
|
31254
|
+
const component = clickable2 || onDelete ? ButtonBase : ComponentProp || "div";
|
|
31199
31255
|
const ownerState = {
|
|
31200
31256
|
...props,
|
|
31201
31257
|
component,
|
|
@@ -31204,7 +31260,7 @@ const Chip = /* @__PURE__ */ React.forwardRef(function Chip2(inProps, ref) {
|
|
|
31204
31260
|
color: color2,
|
|
31205
31261
|
iconColor: /* @__PURE__ */ React.isValidElement(iconProp) ? iconProp.props.color || color2 : color2,
|
|
31206
31262
|
onDelete: !!onDelete,
|
|
31207
|
-
clickable,
|
|
31263
|
+
clickable: clickable2,
|
|
31208
31264
|
variant
|
|
31209
31265
|
};
|
|
31210
31266
|
const classes = useUtilityClasses$W(ownerState);
|
|
@@ -31262,7 +31318,7 @@ const Chip = /* @__PURE__ */ React.forwardRef(function Chip2(inProps, ref) {
|
|
|
31262
31318
|
ref: handleRef,
|
|
31263
31319
|
className: clsx(classes.root, className),
|
|
31264
31320
|
additionalProps: {
|
|
31265
|
-
disabled:
|
|
31321
|
+
disabled: clickable2 && disabled2 ? true : void 0,
|
|
31266
31322
|
tabIndex: skipFocusWhenDisabled && disabled2 ? -1 : tabIndex,
|
|
31267
31323
|
...moreProps
|
|
31268
31324
|
},
|
|
@@ -57729,6 +57785,7 @@ const getPickerProps = ({
|
|
|
57729
57785
|
currentValue,
|
|
57730
57786
|
finalFormat,
|
|
57731
57787
|
onChange: onChange2,
|
|
57788
|
+
onDraftChange,
|
|
57732
57789
|
disabled: disabled2,
|
|
57733
57790
|
minDate,
|
|
57734
57791
|
maxDate,
|
|
@@ -57742,6 +57799,7 @@ const getPickerProps = ({
|
|
|
57742
57799
|
}) => ({
|
|
57743
57800
|
open,
|
|
57744
57801
|
value: convertToDate$1(currentValue, finalFormat),
|
|
57802
|
+
onChange: onDraftChange,
|
|
57745
57803
|
onAccept: onChange2,
|
|
57746
57804
|
onClose,
|
|
57747
57805
|
disabled: disabled2,
|
|
@@ -57828,8 +57886,11 @@ const DatePickerInputBase = (props) => {
|
|
|
57828
57886
|
return date ? date.toDate() : null;
|
|
57829
57887
|
}
|
|
57830
57888
|
});
|
|
57831
|
-
const
|
|
57889
|
+
const _handleDraftChange = (date) => {
|
|
57832
57890
|
setCurrentValue(date ? date.format(finalFormat) : null);
|
|
57891
|
+
};
|
|
57892
|
+
const _handleChange = (date) => {
|
|
57893
|
+
_handleDraftChange(date);
|
|
57833
57894
|
fieldHandleChange(date);
|
|
57834
57895
|
};
|
|
57835
57896
|
const _handleClear = () => {
|
|
@@ -57844,7 +57905,7 @@ const DatePickerInputBase = (props) => {
|
|
|
57844
57905
|
setIsOpen(false);
|
|
57845
57906
|
};
|
|
57846
57907
|
dayjs.locale("es");
|
|
57847
|
-
const
|
|
57908
|
+
const renderPicker = () => {
|
|
57848
57909
|
const commonProps = getPickerProps({
|
|
57849
57910
|
currentValue,
|
|
57850
57911
|
finalFormat,
|
|
@@ -57854,6 +57915,7 @@ const DatePickerInputBase = (props) => {
|
|
|
57854
57915
|
placeholder,
|
|
57855
57916
|
name,
|
|
57856
57917
|
onChange: _handleChange,
|
|
57918
|
+
onDraftChange: _handleDraftChange,
|
|
57857
57919
|
onClear: _handleClear,
|
|
57858
57920
|
onOpen: _handleOpen,
|
|
57859
57921
|
onClose: _handleClose,
|
|
@@ -57907,7 +57969,7 @@ const DatePickerInputBase = (props) => {
|
|
|
57907
57969
|
}
|
|
57908
57970
|
),
|
|
57909
57971
|
children: [
|
|
57910
|
-
|
|
57972
|
+
renderPicker(),
|
|
57911
57973
|
!noErrors && validated && /* @__PURE__ */ jsx$1(ErrorMessage, { validationProps })
|
|
57912
57974
|
]
|
|
57913
57975
|
}
|
|
@@ -65636,7 +65698,7 @@ const _convertValueToOption = (value) => {
|
|
|
65636
65698
|
if (!value) return null;
|
|
65637
65699
|
return { value, label: value };
|
|
65638
65700
|
};
|
|
65639
|
-
const
|
|
65701
|
+
const SearcherBase = (props) => {
|
|
65640
65702
|
const {
|
|
65641
65703
|
name,
|
|
65642
65704
|
label: label2,
|
|
@@ -65826,6 +65888,7 @@ const Searcher = (props) => {
|
|
|
65826
65888
|
)
|
|
65827
65889
|
] });
|
|
65828
65890
|
};
|
|
65891
|
+
const Searcher = withDebugHandlers(SearcherBase, "Searcher");
|
|
65829
65892
|
const title$5 = "switchInput-module_title_lBK2p";
|
|
65830
65893
|
const disabled$4 = "switchInput-module_disabled_yz9dR";
|
|
65831
65894
|
const lg$5 = "switchInput-module_lg_WMIDO";
|
|
@@ -66207,7 +66270,7 @@ const Check = createSvgIcon(/* @__PURE__ */ jsx$1("path", {
|
|
|
66207
66270
|
const ContentCopy = createSvgIcon(/* @__PURE__ */ jsx$1("path", {
|
|
66208
66271
|
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"
|
|
66209
66272
|
}), "ContentCopy");
|
|
66210
|
-
const
|
|
66273
|
+
const CopyButtonBase = ({
|
|
66211
66274
|
onClick,
|
|
66212
66275
|
copyText = locale("copyButton.copy"),
|
|
66213
66276
|
copiedText = locale("copyButton.copied"),
|
|
@@ -66251,6 +66314,7 @@ const Icons = ({ copied }) => /* @__PURE__ */ jsxs("div", { className: "copy-btn
|
|
|
66251
66314
|
/* @__PURE__ */ jsx$1("div", { className: `copy-icon ${copied ? "hidden" : ""}`, children: /* @__PURE__ */ jsx$1(ContentCopy, { "data-testid": "ContentCopyIcon" }) }),
|
|
66252
66315
|
/* @__PURE__ */ jsx$1("div", { className: `check-icon ${!copied ? "hidden" : ""}`, children: /* @__PURE__ */ jsx$1(Check, {}) })
|
|
66253
66316
|
] });
|
|
66317
|
+
const CopyButton = withDebugHandlers(CopyButtonBase, "CopyButton");
|
|
66254
66318
|
const dense = "headerSection-module_dense_f1FWn";
|
|
66255
66319
|
const content = "headerSection-module_content_5y2PB";
|
|
66256
66320
|
const title$4 = "headerSection-module_title_cabYm";
|
|
@@ -68206,38 +68270,19 @@ const AlertBase = ({
|
|
|
68206
68270
|
);
|
|
68207
68271
|
};
|
|
68208
68272
|
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);
|
|
68226
68273
|
const breadcrumb = "breadcrumb-module_breadcrumb_r-ILp";
|
|
68227
68274
|
const styles$8 = {
|
|
68228
68275
|
breadcrumb,
|
|
68229
68276
|
"breadcrumb-item": "breadcrumb-module_breadcrumb-item_suTUF"
|
|
68230
68277
|
};
|
|
68231
68278
|
const BreadcrumbItemComponent = ({ item: item2, index: index2, items }) => {
|
|
68232
|
-
const isLast = index2 === size$1(items) - 1;
|
|
68233
68279
|
const text2 = `${item2.text} >`;
|
|
68234
|
-
return item2
|
|
68235
|
-
|
|
68280
|
+
return item2?.onClick || item2?.href ? /* @__PURE__ */ jsx$1(
|
|
68281
|
+
Link,
|
|
68236
68282
|
{
|
|
68237
|
-
|
|
68238
|
-
|
|
68239
|
-
|
|
68240
|
-
onClick: item2.onClick
|
|
68283
|
+
href: `${item2?.href}`,
|
|
68284
|
+
onClick: item2?.onClick,
|
|
68285
|
+
children: text2
|
|
68241
68286
|
}
|
|
68242
68287
|
) : /* @__PURE__ */ jsxs("div", { className: styles$8["breadcrumb-item"], children: [
|
|
68243
68288
|
" ",
|
|
@@ -68245,13 +68290,14 @@ const BreadcrumbItemComponent = ({ item: item2, index: index2, items }) => {
|
|
|
68245
68290
|
" "
|
|
68246
68291
|
] });
|
|
68247
68292
|
};
|
|
68248
|
-
const
|
|
68293
|
+
const BreadcrumbBase = ({
|
|
68249
68294
|
items,
|
|
68250
68295
|
className,
|
|
68251
68296
|
...otherProps
|
|
68252
68297
|
}) => {
|
|
68253
68298
|
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)) });
|
|
68254
68299
|
};
|
|
68300
|
+
const Breadcrumb = withDebugHandlers(BreadcrumbBase, "Breadcrumb");
|
|
68255
68301
|
const MoreVertIcon = createSvgIcon(/* @__PURE__ */ jsx$1("path", {
|
|
68256
68302
|
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"
|
|
68257
68303
|
}), "MoreVert");
|
|
@@ -68493,11 +68539,11 @@ const WarningModalBase = ({
|
|
|
68493
68539
|
}
|
|
68494
68540
|
);
|
|
68495
68541
|
const WarningModal = withDebugHandlers(WarningModalBase, "WarningModal");
|
|
68496
|
-
var baseIteratee$1 = _baseIteratee, isArrayLike = isArrayLike_1, keys = keys_1;
|
|
68542
|
+
var baseIteratee$1 = _baseIteratee, isArrayLike$1 = isArrayLike_1, keys = keys_1;
|
|
68497
68543
|
function createFind$1(findIndexFunc) {
|
|
68498
68544
|
return function(collection, predicate, fromIndex) {
|
|
68499
68545
|
var iterable = Object(collection);
|
|
68500
|
-
if (!isArrayLike(collection)) {
|
|
68546
|
+
if (!isArrayLike$1(collection)) {
|
|
68501
68547
|
var iteratee = baseIteratee$1(predicate);
|
|
68502
68548
|
collection = keys(collection);
|
|
68503
68549
|
predicate = function(key) {
|
|
@@ -77095,6 +77141,23 @@ const DraggableListBase = ({
|
|
|
77095
77141
|
] });
|
|
77096
77142
|
};
|
|
77097
77143
|
const DraggableList = withDebugHandlers(DraggableListBase, "DraggableList");
|
|
77144
|
+
var baseKeys = _baseKeys, getTag = _getTag, isArrayLike = isArrayLike_1, isString = isString_1, stringSize = _stringSize;
|
|
77145
|
+
var mapTag = "[object Map]", setTag = "[object Set]";
|
|
77146
|
+
function size(collection) {
|
|
77147
|
+
if (collection == null) {
|
|
77148
|
+
return 0;
|
|
77149
|
+
}
|
|
77150
|
+
if (isArrayLike(collection)) {
|
|
77151
|
+
return isString(collection) ? stringSize(collection) : collection.length;
|
|
77152
|
+
}
|
|
77153
|
+
var tag = getTag(collection);
|
|
77154
|
+
if (tag == mapTag || tag == setTag) {
|
|
77155
|
+
return collection.size;
|
|
77156
|
+
}
|
|
77157
|
+
return baseKeys(collection).length;
|
|
77158
|
+
}
|
|
77159
|
+
var size_1 = size;
|
|
77160
|
+
const size$1 = /* @__PURE__ */ getDefaultExportFromCjs(size_1);
|
|
77098
77161
|
const CheckRoundedIcon = createSvgIcon(/* @__PURE__ */ jsx$1("path", {
|
|
77099
77162
|
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"
|
|
77100
77163
|
}), "CheckRounded");
|
|
@@ -77183,12 +77246,23 @@ const styles = {
|
|
|
77183
77246
|
"header-row": "table-module_header-row_ry6Lv",
|
|
77184
77247
|
"body-row": "table-module_body-row_OMOX0",
|
|
77185
77248
|
"header-cell": "table-module_header-cell_0FEWz",
|
|
77186
|
-
"body-cell": "table-module_body-cell_p4019"
|
|
77249
|
+
"body-cell": "table-module_body-cell_p4019",
|
|
77250
|
+
"body-async": "table-module_body-async_21Z7L"
|
|
77187
77251
|
};
|
|
77188
|
-
const TableBody = ({ data,
|
|
77252
|
+
const TableBody = ({ data, isLoading, error: error2, empty, success: success2 }) => {
|
|
77189
77253
|
const columns = useContext(TableContext);
|
|
77190
|
-
|
|
77191
|
-
|
|
77254
|
+
const showContent = !isLoading && !error2?.value && !success2?.value && data.length > 0;
|
|
77255
|
+
if (!showContent) {
|
|
77256
|
+
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(
|
|
77257
|
+
AsyncContent,
|
|
77258
|
+
{
|
|
77259
|
+
isLoading,
|
|
77260
|
+
error: error2,
|
|
77261
|
+
success: success2,
|
|
77262
|
+
empty: { ...empty, items: data },
|
|
77263
|
+
children: /* @__PURE__ */ jsx$1(Fragment$1, {})
|
|
77264
|
+
}
|
|
77265
|
+
) }) }) });
|
|
77192
77266
|
}
|
|
77193
77267
|
return /* @__PURE__ */ jsx$1("tbody", { children: data.map((row, rowIndex) => /* @__PURE__ */ jsx$1("tr", { className: styles["body-row"], children: columns.map((col) => {
|
|
77194
77268
|
const value = row[col.key];
|