@carto/meridian-ds 0.1.0 → 0.1.1-alpha.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/dist/{Alert-Dd9Op7y8.js → Alert-D20zeMkh.js} +158 -172
- package/dist/Alert-FPd1YXw5.cjs +4 -0
- package/dist/{arrow-drop-icon-CHxPlPIN.js → arrow-drop-icon-Dau5xh-6.js} +4 -4
- package/dist/arrow-drop-icon-XN9k9ZtW.cjs +1 -0
- package/dist/components/index.cjs +1 -1
- package/dist/components/index.js +472 -489
- package/dist/custom-icons/index.cjs +1 -1
- package/dist/custom-icons/index.js +28 -28
- package/dist/paletteUtils-BEwZhrLg.js +262 -0
- package/dist/paletteUtils-DLQVT9qo.cjs +1 -0
- package/dist/{search-icon-FnUa1LqH.js → search-icon-8Q4AttLX.js} +8 -8
- package/dist/search-icon-CyudR_26.cjs +1 -0
- package/dist/theme/index.cjs +1 -76
- package/dist/theme/index.js +360 -1548
- package/dist/theme-constants-Cq_uocqm.js +544 -0
- package/dist/theme-constants-Da63svSG.cjs +9 -0
- package/dist/widgets/index.cjs +21 -21
- package/dist/widgets/index.js +2801 -2854
- package/package.json +3 -2
- package/dist/Alert-l8e3Fw5e.cjs +0 -4
- package/dist/arrow-drop-icon-BGl72Unt.cjs +0 -1
- package/dist/createSvgIcon-BhsoeSAN.cjs +0 -68
- package/dist/createSvgIcon-CcKa-Sbo.js +0 -3929
- package/dist/jsx-runtime-B6kdoens.js +0 -634
- package/dist/jsx-runtime-Cek9Ww4S.cjs +0 -30
- package/dist/paletteUtils-B489IFFw.js +0 -320
- package/dist/paletteUtils-DELR0VRh.cjs +0 -3
- package/dist/search-icon-DHF2JDWR.cjs +0 -1
|
@@ -1,23 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Typography as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
|
|
1
|
+
import { jsx as y, jsxs as H } from "react/jsx-runtime";
|
|
2
|
+
import { Typography as z, styled as E, Box as F, Tooltip as k, IconButton as P, Alert as V, Fade as Z, AlertTitle as W } from "@mui/material";
|
|
3
|
+
import Y from "@mui/icons-material/KeyboardArrowLeftOutlined";
|
|
4
|
+
import J from "@mui/icons-material/KeyboardArrowRightOutlined";
|
|
5
|
+
import { createIntlCache as j, createIntl as Q, useIntl as $ } from "react-intl";
|
|
6
|
+
import { a as I } from "./theme-constants-Cq_uocqm.js";
|
|
7
|
+
import { forwardRef as O, useState as X } from "react";
|
|
8
|
+
const ee = {
|
|
7
9
|
regular: 400,
|
|
8
10
|
medium: 500,
|
|
9
11
|
strong: 600
|
|
10
12
|
};
|
|
11
|
-
function
|
|
13
|
+
function ae({ italic: e, weight: t, style: a, children: n, ...i }, d) {
|
|
12
14
|
const r = {
|
|
13
|
-
fontWeight:
|
|
15
|
+
fontWeight: ee[t],
|
|
14
16
|
fontStyle: e ? "italic" : void 0
|
|
15
17
|
};
|
|
16
|
-
return /* @__PURE__ */
|
|
17
|
-
|
|
18
|
+
return /* @__PURE__ */ y(
|
|
19
|
+
z,
|
|
18
20
|
{
|
|
19
|
-
...
|
|
20
|
-
ref:
|
|
21
|
+
...i,
|
|
22
|
+
ref: d,
|
|
21
23
|
style: {
|
|
22
24
|
...r,
|
|
23
25
|
...a
|
|
@@ -26,7 +28,7 @@ function te({ italic: e, weight: t, style: a, children: n, ...d }, i) {
|
|
|
26
28
|
}
|
|
27
29
|
);
|
|
28
30
|
}
|
|
29
|
-
const
|
|
31
|
+
const ne = O(ae), re = {
|
|
30
32
|
c4r: {
|
|
31
33
|
form: {
|
|
32
34
|
selectAll: "Select all",
|
|
@@ -143,7 +145,7 @@ const de = q(te), ie = {
|
|
|
143
145
|
}
|
|
144
146
|
}
|
|
145
147
|
}
|
|
146
|
-
},
|
|
148
|
+
}, te = {
|
|
147
149
|
c4r: {
|
|
148
150
|
form: {
|
|
149
151
|
selectAll: "Seleccionar todos",
|
|
@@ -258,7 +260,7 @@ const de = q(te), ie = {
|
|
|
258
260
|
}
|
|
259
261
|
}
|
|
260
262
|
}
|
|
261
|
-
},
|
|
263
|
+
}, ie = {
|
|
262
264
|
c4r: {
|
|
263
265
|
form: {
|
|
264
266
|
selectAll: "Select all",
|
|
@@ -375,14 +377,14 @@ const de = q(te), ie = {
|
|
|
375
377
|
}
|
|
376
378
|
}
|
|
377
379
|
}
|
|
378
|
-
},
|
|
379
|
-
function
|
|
380
|
+
}, N = { en: re, es: te, id: ie };
|
|
381
|
+
function de(e) {
|
|
380
382
|
return Intl.getCanonicalLocales(e);
|
|
381
383
|
}
|
|
382
384
|
function T(e, t, a) {
|
|
383
|
-
if (a || arguments.length === 2) for (var n = 0,
|
|
384
|
-
(
|
|
385
|
-
return e.concat(
|
|
385
|
+
if (a || arguments.length === 2) for (var n = 0, i = t.length, d; n < i; n++)
|
|
386
|
+
(d || !(n in t)) && (d || (d = Array.prototype.slice.call(t, 0, n)), d[n] = t[n]);
|
|
387
|
+
return e.concat(d || Array.prototype.slice.call(t));
|
|
386
388
|
}
|
|
387
389
|
var C = {
|
|
388
390
|
supplemental: {
|
|
@@ -3003,7 +3005,7 @@ var C = {
|
|
|
3003
3005
|
]
|
|
3004
3006
|
}
|
|
3005
3007
|
}
|
|
3006
|
-
},
|
|
3008
|
+
}, se = {
|
|
3007
3009
|
"001": [
|
|
3008
3010
|
"001",
|
|
3009
3011
|
"001-status-grouping",
|
|
@@ -4335,16 +4337,16 @@ var C = {
|
|
|
4335
4337
|
"ZM",
|
|
4336
4338
|
"ZW"
|
|
4337
4339
|
]
|
|
4338
|
-
},
|
|
4339
|
-
function
|
|
4340
|
+
}, D = /-u(?:-[0-9a-z]{2,8})+/gi;
|
|
4341
|
+
function M(e, t, a) {
|
|
4340
4342
|
if (a === void 0 && (a = Error), !e)
|
|
4341
4343
|
throw new a(t);
|
|
4342
4344
|
}
|
|
4343
|
-
var
|
|
4344
|
-
function
|
|
4345
|
+
var oe = 838, v;
|
|
4346
|
+
function _e() {
|
|
4345
4347
|
var e, t;
|
|
4346
4348
|
if (!v) {
|
|
4347
|
-
var a = (t = (e = C.supplemental.languageMatching["written-new"][0]) === null || e === void 0 ? void 0 : e.paradigmLocales) === null || t === void 0 ? void 0 : t._locales.split(" "), n = C.supplemental.languageMatching["written-new"].slice(1, 5),
|
|
4349
|
+
var a = (t = (e = C.supplemental.languageMatching["written-new"][0]) === null || e === void 0 ? void 0 : e.paradigmLocales) === null || t === void 0 ? void 0 : t._locales.split(" "), n = C.supplemental.languageMatching["written-new"].slice(1, 5), i = C.supplemental.languageMatching["written-new"].slice(5), d = i.map(function(r) {
|
|
4348
4350
|
var s = Object.keys(r)[0], o = r[s];
|
|
4349
4351
|
return {
|
|
4350
4352
|
supported: s,
|
|
@@ -4354,7 +4356,7 @@ function le() {
|
|
|
4354
4356
|
};
|
|
4355
4357
|
}, {});
|
|
4356
4358
|
v = {
|
|
4357
|
-
matches:
|
|
4359
|
+
matches: d,
|
|
4358
4360
|
matchVariables: n.reduce(function(r, s) {
|
|
4359
4361
|
var o = Object.keys(s)[0], _ = s[o];
|
|
4360
4362
|
return r[o.slice(1)] = _._value.split("+"), r;
|
|
@@ -4366,43 +4368,43 @@ function le() {
|
|
|
4366
4368
|
}
|
|
4367
4369
|
return v;
|
|
4368
4370
|
}
|
|
4369
|
-
function
|
|
4370
|
-
var n = t.split("-"),
|
|
4371
|
+
function f(e, t, a) {
|
|
4372
|
+
var n = t.split("-"), i = n[0], d = n[1], r = n[2], s = !0;
|
|
4371
4373
|
if (r && r[0] === "$") {
|
|
4372
|
-
var o = r[1] !== "!", _ = o ? a[r.slice(1)] : a[r.slice(2)], c = _.map(function(
|
|
4373
|
-
return
|
|
4374
|
-
}).reduce(function(
|
|
4375
|
-
return T(T([],
|
|
4374
|
+
var o = r[1] !== "!", _ = o ? a[r.slice(1)] : a[r.slice(2)], c = _.map(function(l) {
|
|
4375
|
+
return se[l] || [l];
|
|
4376
|
+
}).reduce(function(l, g) {
|
|
4377
|
+
return T(T([], l, !0), g, !0);
|
|
4376
4378
|
}, []);
|
|
4377
4379
|
s && (s = c.indexOf(e.region || "") > 1 == o);
|
|
4378
4380
|
} else
|
|
4379
4381
|
s && (s = e.region ? r === "*" || r === e.region : !0);
|
|
4380
|
-
return s && (s = e.script ?
|
|
4382
|
+
return s && (s = e.script ? d === "*" || d === e.script : !0), s && (s = e.language ? i === "*" || i === e.language : !0), s;
|
|
4381
4383
|
}
|
|
4382
|
-
function
|
|
4384
|
+
function b(e) {
|
|
4383
4385
|
return [e.language, e.script, e.region].filter(Boolean).join("-");
|
|
4384
4386
|
}
|
|
4385
4387
|
function G(e, t, a) {
|
|
4386
|
-
for (var n = 0,
|
|
4387
|
-
var
|
|
4388
|
-
if (!
|
|
4389
|
-
var s =
|
|
4390
|
-
return a.paradigmLocales.indexOf(
|
|
4388
|
+
for (var n = 0, i = a.matches; n < i.length; n++) {
|
|
4389
|
+
var d = i[n], r = f(e, d.desired, a.matchVariables) && f(t, d.supported, a.matchVariables);
|
|
4390
|
+
if (!d.oneway && !r && (r = f(e, d.supported, a.matchVariables) && f(t, d.desired, a.matchVariables)), r) {
|
|
4391
|
+
var s = d.distance * 10;
|
|
4392
|
+
return a.paradigmLocales.indexOf(b(e)) > -1 != a.paradigmLocales.indexOf(b(t)) > -1 ? s - 1 : s;
|
|
4391
4393
|
}
|
|
4392
4394
|
}
|
|
4393
4395
|
throw new Error("No matching distance found");
|
|
4394
4396
|
}
|
|
4395
|
-
function
|
|
4396
|
-
var a = new Intl.Locale(e).maximize(), n = new Intl.Locale(t).maximize(),
|
|
4397
|
+
function ce(e, t) {
|
|
4398
|
+
var a = new Intl.Locale(e).maximize(), n = new Intl.Locale(t).maximize(), i = {
|
|
4397
4399
|
language: a.language,
|
|
4398
4400
|
script: a.script || "",
|
|
4399
4401
|
region: a.region || ""
|
|
4400
|
-
},
|
|
4402
|
+
}, d = {
|
|
4401
4403
|
language: n.language,
|
|
4402
4404
|
script: n.script || "",
|
|
4403
4405
|
region: n.region || ""
|
|
4404
|
-
}, r = 0, s =
|
|
4405
|
-
return
|
|
4406
|
+
}, r = 0, s = _e();
|
|
4407
|
+
return i.language !== d.language && (r += G({
|
|
4406
4408
|
language: a.language,
|
|
4407
4409
|
script: "",
|
|
4408
4410
|
region: ""
|
|
@@ -4410,40 +4412,40 @@ function ye(e, t) {
|
|
|
4410
4412
|
language: n.language,
|
|
4411
4413
|
script: "",
|
|
4412
4414
|
region: ""
|
|
4413
|
-
}, s)),
|
|
4415
|
+
}, s)), i.script !== d.script && (r += G({
|
|
4414
4416
|
language: a.language,
|
|
4415
|
-
script:
|
|
4417
|
+
script: i.script,
|
|
4416
4418
|
region: ""
|
|
4417
4419
|
}, {
|
|
4418
4420
|
language: n.language,
|
|
4419
|
-
script:
|
|
4421
|
+
script: i.script,
|
|
4420
4422
|
region: ""
|
|
4421
|
-
}, s)),
|
|
4423
|
+
}, s)), i.region !== d.region && (r += G(i, d, s)), r;
|
|
4422
4424
|
}
|
|
4423
|
-
function
|
|
4424
|
-
a === void 0 && (a =
|
|
4425
|
-
var n = 1 / 0,
|
|
4425
|
+
function ue(e, t, a) {
|
|
4426
|
+
a === void 0 && (a = oe);
|
|
4427
|
+
var n = 1 / 0, i = {
|
|
4426
4428
|
matchedDesiredLocale: "",
|
|
4427
4429
|
distances: {}
|
|
4428
4430
|
};
|
|
4429
|
-
return e.forEach(function(
|
|
4430
|
-
|
|
4431
|
-
var o =
|
|
4432
|
-
|
|
4431
|
+
return e.forEach(function(d, r) {
|
|
4432
|
+
i.distances[d] || (i.distances[d] = {}), t.forEach(function(s) {
|
|
4433
|
+
var o = ce(d, s) + 0 + r * 40;
|
|
4434
|
+
i.distances[d][s] = o, o < n && (n = o, i.matchedDesiredLocale = d, i.matchedSupportedLocale = s);
|
|
4433
4435
|
});
|
|
4434
|
-
}), n >= a && (
|
|
4436
|
+
}), n >= a && (i.matchedDesiredLocale = void 0, i.matchedSupportedLocale = void 0), i;
|
|
4435
4437
|
}
|
|
4436
|
-
function
|
|
4437
|
-
var n,
|
|
4438
|
-
var c = _.replace(
|
|
4439
|
-
return
|
|
4440
|
-
}, {}), s =
|
|
4441
|
-
return s.matchedSupportedLocale && s.matchedDesiredLocale && (n = s.matchedSupportedLocale,
|
|
4438
|
+
function le(e, t, a) {
|
|
4439
|
+
var n, i, d = [], r = t.reduce(function(o, _) {
|
|
4440
|
+
var c = _.replace(D, "");
|
|
4441
|
+
return d.push(c), o[c] = _, o;
|
|
4442
|
+
}, {}), s = ue(d, e);
|
|
4443
|
+
return s.matchedSupportedLocale && s.matchedDesiredLocale && (n = s.matchedSupportedLocale, i = r[s.matchedDesiredLocale].slice(s.matchedDesiredLocale.length) || void 0), n ? {
|
|
4442
4444
|
locale: n,
|
|
4443
|
-
extension:
|
|
4445
|
+
extension: i
|
|
4444
4446
|
} : { locale: a() };
|
|
4445
4447
|
}
|
|
4446
|
-
function
|
|
4448
|
+
function ye(e, t) {
|
|
4447
4449
|
for (var a = t; ; ) {
|
|
4448
4450
|
if (e.indexOf(a) > -1)
|
|
4449
4451
|
return a;
|
|
@@ -4453,180 +4455,164 @@ function ge(e, t) {
|
|
|
4453
4455
|
n >= 2 && a[n - 2] === "-" && (n -= 2), a = a.slice(0, n);
|
|
4454
4456
|
}
|
|
4455
4457
|
}
|
|
4456
|
-
function
|
|
4457
|
-
for (var n = { locale: "" },
|
|
4458
|
-
var r = i
|
|
4458
|
+
function we(e, t, a) {
|
|
4459
|
+
for (var n = { locale: "" }, i = 0, d = t; i < d.length; i++) {
|
|
4460
|
+
var r = d[i], s = r.replace(D, ""), o = ye(e, s);
|
|
4459
4461
|
if (o)
|
|
4460
4462
|
return n.locale = o, r !== s && (n.extension = r.slice(s.length, r.length)), n;
|
|
4461
4463
|
}
|
|
4462
4464
|
return n.locale = a(), n;
|
|
4463
4465
|
}
|
|
4464
|
-
function
|
|
4465
|
-
|
|
4466
|
-
var a = e.length, n = "-".concat(t, "-"),
|
|
4467
|
-
if (
|
|
4468
|
-
for (var
|
|
4466
|
+
function me(e, t) {
|
|
4467
|
+
M(t.length === 2, "key must have 2 elements");
|
|
4468
|
+
var a = e.length, n = "-".concat(t, "-"), i = e.indexOf(n);
|
|
4469
|
+
if (i !== -1) {
|
|
4470
|
+
for (var d = i + 4, r = d, s = d, o = !1; !o; ) {
|
|
4469
4471
|
var _ = e.indexOf("-", s), c = void 0;
|
|
4470
4472
|
_ === -1 ? c = a - s : c = _ - s, c === 2 ? o = !0 : _ === -1 ? (r = a, o = !0) : (r = _, s = _ + 1);
|
|
4471
4473
|
}
|
|
4472
|
-
return e.slice(
|
|
4474
|
+
return e.slice(d, r);
|
|
4473
4475
|
}
|
|
4474
|
-
if (n = "-".concat(t),
|
|
4476
|
+
if (n = "-".concat(t), i = e.indexOf(n), i !== -1 && i + 3 === a)
|
|
4475
4477
|
return "";
|
|
4476
4478
|
}
|
|
4477
|
-
function
|
|
4479
|
+
function ge(e, t, a, n, i, d) {
|
|
4478
4480
|
var r = a.localeMatcher, s;
|
|
4479
|
-
r === "lookup" ? s =
|
|
4480
|
-
for (var o = s.locale, _ = { locale: "", dataLocale: o }, c = "-u",
|
|
4481
|
-
var
|
|
4482
|
-
|
|
4483
|
-
var m =
|
|
4484
|
-
|
|
4485
|
-
var
|
|
4486
|
-
|
|
4487
|
-
var w =
|
|
4488
|
-
|
|
4489
|
-
var
|
|
4481
|
+
r === "lookup" ? s = we(Array.from(e), t, d) : s = le(Array.from(e), t, d);
|
|
4482
|
+
for (var o = s.locale, _ = { locale: "", dataLocale: o }, c = "-u", l = 0, g = n; l < g.length; l++) {
|
|
4483
|
+
var u = g[l];
|
|
4484
|
+
M(o in i, "Missing locale data for ".concat(o));
|
|
4485
|
+
var m = i[o];
|
|
4486
|
+
M(typeof m == "object" && m !== null, "locale data ".concat(u, " must be an object"));
|
|
4487
|
+
var h = m[u];
|
|
4488
|
+
M(Array.isArray(h), "keyLocaleData for ".concat(u, " must be an array"));
|
|
4489
|
+
var w = h[0];
|
|
4490
|
+
M(typeof w == "string" || w === null, "value must be string or null but got ".concat(typeof w, " in key ").concat(u));
|
|
4491
|
+
var L = "";
|
|
4490
4492
|
if (s.extension) {
|
|
4491
|
-
var S =
|
|
4492
|
-
S !== void 0 && (S !== "" ? ~
|
|
4493
|
+
var S = me(s.extension, u);
|
|
4494
|
+
S !== void 0 && (S !== "" ? ~h.indexOf(S) && (w = S, L = "-".concat(u, "-").concat(w)) : ~S.indexOf("true") && (w = "true", L = "-".concat(u)));
|
|
4493
4495
|
}
|
|
4494
|
-
if (
|
|
4495
|
-
var
|
|
4496
|
-
|
|
4496
|
+
if (u in a) {
|
|
4497
|
+
var p = a[u];
|
|
4498
|
+
M(typeof p == "string" || typeof p > "u" || p === null, "optionsValue must be String, Undefined or Null"), ~h.indexOf(p) && p !== w && (w = p, L = "");
|
|
4497
4499
|
}
|
|
4498
|
-
_[
|
|
4500
|
+
_[u] = w, c += L;
|
|
4499
4501
|
}
|
|
4500
4502
|
if (c.length > 2) {
|
|
4501
4503
|
var A = o.indexOf("-x-");
|
|
4502
4504
|
if (A === -1)
|
|
4503
4505
|
o = o + c;
|
|
4504
4506
|
else {
|
|
4505
|
-
var
|
|
4506
|
-
o =
|
|
4507
|
+
var U = o.slice(0, A), x = o.slice(A, o.length);
|
|
4508
|
+
o = U + c + x;
|
|
4507
4509
|
}
|
|
4508
4510
|
o = Intl.getCanonicalLocales(o)[0];
|
|
4509
4511
|
}
|
|
4510
4512
|
return _.locale = o, _;
|
|
4511
4513
|
}
|
|
4512
|
-
function
|
|
4513
|
-
return
|
|
4514
|
+
function pe(e, t, a, n) {
|
|
4515
|
+
return ge(t, de(e), {
|
|
4514
4516
|
localeMatcher: "best fit"
|
|
4515
4517
|
}, [], {}, function() {
|
|
4516
4518
|
return a;
|
|
4517
4519
|
}).locale;
|
|
4518
4520
|
}
|
|
4519
4521
|
const B = "en";
|
|
4520
|
-
function
|
|
4522
|
+
function q(e, t = "") {
|
|
4521
4523
|
return Object.keys(e).reduce(
|
|
4522
4524
|
(a, n) => {
|
|
4523
|
-
const
|
|
4524
|
-
return typeof
|
|
4525
|
+
const i = e[n], d = t ? `${t}.${n}` : n;
|
|
4526
|
+
return typeof i == "string" ? a[d] = i : Object.assign(a, q(i, d)), a;
|
|
4525
4527
|
},
|
|
4526
4528
|
{}
|
|
4527
4529
|
);
|
|
4528
4530
|
}
|
|
4529
|
-
function
|
|
4530
|
-
const a = Object.keys(t), n =
|
|
4531
|
+
function Me(e, t) {
|
|
4532
|
+
const a = Object.keys(t), n = pe(
|
|
4531
4533
|
[e],
|
|
4532
4534
|
a,
|
|
4533
4535
|
B
|
|
4534
4536
|
);
|
|
4535
4537
|
return n || B;
|
|
4536
4538
|
}
|
|
4537
|
-
const
|
|
4538
|
-
const t = (e == null ? void 0 : e.locale) || B, a =
|
|
4539
|
-
...
|
|
4539
|
+
const he = j(), R = /* @__PURE__ */ new WeakMap(), Se = (e) => {
|
|
4540
|
+
const t = (e == null ? void 0 : e.locale) || B, a = Me(t, N), n = {
|
|
4541
|
+
...N[a] || {},
|
|
4540
4542
|
...(e == null ? void 0 : e.messages) ?? {}
|
|
4541
|
-
},
|
|
4542
|
-
return
|
|
4543
|
+
}, i = q(n);
|
|
4544
|
+
return Q(
|
|
4543
4545
|
{
|
|
4544
4546
|
locale: t,
|
|
4545
|
-
messages:
|
|
4547
|
+
messages: i
|
|
4546
4548
|
},
|
|
4547
|
-
|
|
4549
|
+
he
|
|
4548
4550
|
);
|
|
4549
|
-
},
|
|
4550
|
-
const t =
|
|
4551
|
+
}, Le = (e) => {
|
|
4552
|
+
const t = R.get(e);
|
|
4551
4553
|
if (t)
|
|
4552
4554
|
return t;
|
|
4553
|
-
const a =
|
|
4554
|
-
return
|
|
4555
|
+
const a = Se(e);
|
|
4556
|
+
return R.set(e, a), a;
|
|
4555
4557
|
};
|
|
4556
|
-
function
|
|
4557
|
-
return
|
|
4558
|
+
function fe(e) {
|
|
4559
|
+
return Le(e);
|
|
4558
4560
|
}
|
|
4559
|
-
|
|
4560
|
-
Object.defineProperty(k, "__esModule", {
|
|
4561
|
-
value: !0
|
|
4562
|
-
});
|
|
4563
|
-
var F = k.default = void 0, Ge = ve(H()), Be = u;
|
|
4564
|
-
F = k.default = (0, Ge.default)(/* @__PURE__ */ (0, Be.jsx)("path", {
|
|
4565
|
-
d: "M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6z"
|
|
4566
|
-
}), "KeyboardArrowLeftOutlined");
|
|
4567
|
-
var P = {}, Ee = D;
|
|
4568
|
-
Object.defineProperty(P, "__esModule", {
|
|
4569
|
-
value: !0
|
|
4570
|
-
});
|
|
4571
|
-
var V = P.default = void 0, ke = Ee(H()), Pe = u;
|
|
4572
|
-
V = P.default = (0, ke.default)(/* @__PURE__ */ (0, Pe.jsx)("path", {
|
|
4573
|
-
d: "M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6z"
|
|
4574
|
-
}), "KeyboardArrowRightOutlined");
|
|
4575
|
-
const Ie = E(Y)(({ theme: e }) => ({
|
|
4561
|
+
const Te = E(F)(({ theme: e }) => ({
|
|
4576
4562
|
display: "flex",
|
|
4577
4563
|
gap: e.spacing(0.5),
|
|
4578
4564
|
marginLeft: e.spacing(1)
|
|
4579
|
-
})),
|
|
4565
|
+
})), K = E("div")(({ theme: e }) => ({
|
|
4580
4566
|
"& .MuiIconButton-root:not(.Mui-disabled)": {
|
|
4581
4567
|
color: e.palette.text.secondary
|
|
4582
4568
|
}
|
|
4583
4569
|
}));
|
|
4584
|
-
function
|
|
4570
|
+
function Ne({
|
|
4585
4571
|
count: e,
|
|
4586
4572
|
page: t,
|
|
4587
4573
|
rowsPerPage: a = 10,
|
|
4588
4574
|
onPageChange: n,
|
|
4589
|
-
lastPageTooltip:
|
|
4575
|
+
lastPageTooltip: i
|
|
4590
4576
|
}) {
|
|
4591
|
-
const
|
|
4577
|
+
const d = $(), r = fe(d), s = (m) => {
|
|
4592
4578
|
n(m, t - 1);
|
|
4593
4579
|
}, o = (m) => {
|
|
4594
4580
|
n(m, t + 1);
|
|
4595
|
-
}, _ = t === Math.ceil(e / a) - 1, c = t === 0,
|
|
4581
|
+
}, _ = t === Math.ceil(e / a) - 1, c = t === 0, l = r.formatMessage({
|
|
4596
4582
|
id: "c4r.form.pagination.prevPage"
|
|
4597
4583
|
}), g = r.formatMessage({
|
|
4598
4584
|
id: "c4r.form.pagination.nextPage"
|
|
4599
|
-
}),
|
|
4585
|
+
}), u = r.formatMessage({
|
|
4600
4586
|
id: "c4r.form.pagination.noMorePages"
|
|
4601
4587
|
});
|
|
4602
|
-
return /* @__PURE__ */
|
|
4603
|
-
/* @__PURE__ */
|
|
4604
|
-
|
|
4588
|
+
return /* @__PURE__ */ H(Te, { children: [
|
|
4589
|
+
/* @__PURE__ */ y(k, { title: c ? u : l, children: /* @__PURE__ */ y(K, { children: /* @__PURE__ */ y(
|
|
4590
|
+
P,
|
|
4605
4591
|
{
|
|
4606
4592
|
onClick: s,
|
|
4607
4593
|
disabled: t === 0,
|
|
4608
|
-
"aria-label":
|
|
4609
|
-
children: /* @__PURE__ */
|
|
4594
|
+
"aria-label": l,
|
|
4595
|
+
children: /* @__PURE__ */ y(Y, {})
|
|
4610
4596
|
}
|
|
4611
4597
|
) }) }),
|
|
4612
|
-
/* @__PURE__ */
|
|
4613
|
-
|
|
4598
|
+
/* @__PURE__ */ y(
|
|
4599
|
+
k,
|
|
4614
4600
|
{
|
|
4615
|
-
title: _ ?
|
|
4616
|
-
children: /* @__PURE__ */
|
|
4617
|
-
|
|
4601
|
+
title: _ ? i ?? u : g,
|
|
4602
|
+
children: /* @__PURE__ */ y(K, { children: /* @__PURE__ */ y(
|
|
4603
|
+
P,
|
|
4618
4604
|
{
|
|
4619
4605
|
onClick: o,
|
|
4620
4606
|
disabled: t >= Math.ceil(e / a) - 1,
|
|
4621
4607
|
"aria-label": g,
|
|
4622
|
-
children: /* @__PURE__ */
|
|
4608
|
+
children: /* @__PURE__ */ y(J, {})
|
|
4623
4609
|
}
|
|
4624
4610
|
) })
|
|
4625
4611
|
}
|
|
4626
4612
|
)
|
|
4627
4613
|
] });
|
|
4628
4614
|
}
|
|
4629
|
-
const
|
|
4615
|
+
const Ae = E(V, {
|
|
4630
4616
|
shouldForwardProp: (e) => ![
|
|
4631
4617
|
"isNeutral",
|
|
4632
4618
|
"content",
|
|
@@ -4641,8 +4627,8 @@ const Ne = E(J, {
|
|
|
4641
4627
|
content: t,
|
|
4642
4628
|
hasCloseButton: a,
|
|
4643
4629
|
hasAction: n,
|
|
4644
|
-
hasTitle:
|
|
4645
|
-
isSticky:
|
|
4630
|
+
hasTitle: i,
|
|
4631
|
+
isSticky: d,
|
|
4646
4632
|
theme: r
|
|
4647
4633
|
}) => ({
|
|
4648
4634
|
columnGap: r.spacing(1),
|
|
@@ -4653,18 +4639,18 @@ const Ne = E(J, {
|
|
|
4653
4639
|
"icon message"
|
|
4654
4640
|
"icon actions"
|
|
4655
4641
|
`,
|
|
4656
|
-
gridTemplateColumns: a ? `${
|
|
4642
|
+
gridTemplateColumns: a ? `${I} 1fr ${r.spacing(3)}` : `${I}`
|
|
4657
4643
|
},
|
|
4658
4644
|
...e && {
|
|
4659
4645
|
backgroundColor: r.palette.default.background,
|
|
4660
4646
|
color: r.palette.text.primary
|
|
4661
4647
|
},
|
|
4662
|
-
...
|
|
4648
|
+
...d && {
|
|
4663
4649
|
borderRadius: 0
|
|
4664
4650
|
},
|
|
4665
4651
|
".MuiAlert-message": {
|
|
4666
4652
|
flex: 1,
|
|
4667
|
-
paddingTop:
|
|
4653
|
+
paddingTop: i ? r.spacing(0.25) : r.spacing(0.5),
|
|
4668
4654
|
"& a": {
|
|
4669
4655
|
color: r.palette.primary.main,
|
|
4670
4656
|
textDecoration: "none",
|
|
@@ -4685,7 +4671,7 @@ const Ne = E(J, {
|
|
|
4685
4671
|
}
|
|
4686
4672
|
},
|
|
4687
4673
|
".MuiAlert-icon": {
|
|
4688
|
-
height:
|
|
4674
|
+
height: i ? r.spacing(2.5) : r.spacing(3),
|
|
4689
4675
|
marginRight: 0,
|
|
4690
4676
|
...n && {
|
|
4691
4677
|
gridArea: "icon"
|
|
@@ -4708,47 +4694,47 @@ const Ne = E(J, {
|
|
|
4708
4694
|
}
|
|
4709
4695
|
})
|
|
4710
4696
|
);
|
|
4711
|
-
function
|
|
4697
|
+
function Ce({
|
|
4712
4698
|
title: e,
|
|
4713
4699
|
action: t,
|
|
4714
4700
|
severity: a = "neutral",
|
|
4715
4701
|
content: n = "inline",
|
|
4716
|
-
variant:
|
|
4717
|
-
children:
|
|
4702
|
+
variant: i = "standard",
|
|
4703
|
+
children: d,
|
|
4718
4704
|
onClose: r,
|
|
4719
4705
|
open: s,
|
|
4720
4706
|
isSticky: o,
|
|
4721
4707
|
..._
|
|
4722
4708
|
}, c) {
|
|
4723
|
-
const [
|
|
4709
|
+
const [l, g] = X(s ?? !0), u = r ? (w) => {
|
|
4724
4710
|
r(w), g(!1);
|
|
4725
|
-
} : void 0, m = a === "neutral"
|
|
4726
|
-
return /* @__PURE__ */
|
|
4727
|
-
|
|
4711
|
+
} : void 0, m = a === "neutral";
|
|
4712
|
+
return /* @__PURE__ */ y(Z, { in: s ?? l, appear: !1, children: /* @__PURE__ */ H(
|
|
4713
|
+
Ae,
|
|
4728
4714
|
{
|
|
4729
4715
|
ref: c,
|
|
4730
4716
|
severity: m ? "info" : a,
|
|
4731
4717
|
isNeutral: m,
|
|
4732
4718
|
content: n,
|
|
4733
4719
|
action: t,
|
|
4734
|
-
onClose:
|
|
4720
|
+
onClose: u,
|
|
4735
4721
|
hasCloseButton: !!r,
|
|
4736
4722
|
hasAction: !!t,
|
|
4737
4723
|
hasTitle: !!e,
|
|
4738
4724
|
isSticky: o,
|
|
4739
|
-
variant:
|
|
4725
|
+
variant: i,
|
|
4740
4726
|
..._,
|
|
4741
4727
|
children: [
|
|
4742
|
-
e && /* @__PURE__ */
|
|
4743
|
-
/* @__PURE__ */
|
|
4728
|
+
e && /* @__PURE__ */ y(W, { children: e }),
|
|
4729
|
+
/* @__PURE__ */ y(ne, { variant: "caption", color: "inherit", component: "div", children: d })
|
|
4744
4730
|
]
|
|
4745
4731
|
}
|
|
4746
4732
|
) });
|
|
4747
4733
|
}
|
|
4748
|
-
const
|
|
4734
|
+
const be = O(Ce);
|
|
4749
4735
|
export {
|
|
4750
|
-
|
|
4751
|
-
|
|
4752
|
-
|
|
4753
|
-
|
|
4736
|
+
be as A,
|
|
4737
|
+
ne as T,
|
|
4738
|
+
Ne as a,
|
|
4739
|
+
fe as u
|
|
4754
4740
|
};
|