@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.
@@ -1,23 +1,25 @@
1
- import { j as u } from "./jsx-runtime-B6kdoens.js";
2
- import { Typography as j, styled as E, Box as Y, Tooltip as I, IconButton as N, Alert as J, Fade as $, AlertTitle as Q } from "@mui/material";
3
- import { r as H, p as D, m as R } from "./createSvgIcon-CcKa-Sbo.js";
4
- import { createIntlCache as X, createIntl as ee, useIntl as ae } from "react-intl";
5
- import { forwardRef as q, useState as ne } from "react";
6
- const re = {
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 te({ italic: e, weight: t, style: a, children: n, ...d }, i) {
13
+ function ae({ italic: e, weight: t, style: a, children: n, ...i }, d) {
12
14
  const r = {
13
- fontWeight: re[t],
15
+ fontWeight: ee[t],
14
16
  fontStyle: e ? "italic" : void 0
15
17
  };
16
- return /* @__PURE__ */ u.jsx(
17
- j,
18
+ return /* @__PURE__ */ y(
19
+ z,
18
20
  {
19
- ...d,
20
- ref: i,
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 de = q(te), ie = {
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
- }, se = {
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
- }, oe = {
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
- }, b = { en: ie, es: se, id: oe };
379
- function _e(e) {
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, d = t.length, i; n < d; n++)
384
- (i || !(n in t)) && (i || (i = Array.prototype.slice.call(t, 0, n)), i[n] = t[n]);
385
- return e.concat(i || Array.prototype.slice.call(t));
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
- }, ce = {
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
- }, U = /-u(?:-[0-9a-z]{2,8})+/gi;
4339
- function h(e, t, a) {
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 ue = 838, v;
4344
- function le() {
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), d = C.supplemental.languageMatching["written-new"].slice(5), i = d.map(function(r) {
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: i,
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 L(e, t, a) {
4370
- var n = t.split("-"), d = n[0], i = n[1], r = n[2], s = !0;
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(y) {
4373
- return ce[y] || [y];
4374
- }).reduce(function(y, g) {
4375
- return T(T([], y, !0), g, !0);
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 ? i === "*" || i === e.script : !0), s && (s = e.language ? d === "*" || d === e.language : !0), s;
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 x(e) {
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, d = a.matches; n < d.length; n++) {
4387
- var i = d[n], r = L(e, i.desired, a.matchVariables) && L(t, i.supported, a.matchVariables);
4388
- if (!i.oneway && !r && (r = L(e, i.supported, a.matchVariables) && L(t, i.desired, a.matchVariables)), r) {
4389
- var s = i.distance * 10;
4390
- return a.paradigmLocales.indexOf(x(e)) > -1 != a.paradigmLocales.indexOf(x(t)) > -1 ? s - 1 : s;
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 ye(e, t) {
4396
- var a = new Intl.Locale(e).maximize(), n = new Intl.Locale(t).maximize(), d = {
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
- }, i = {
4402
+ }, d = {
4401
4403
  language: n.language,
4402
4404
  script: n.script || "",
4403
4405
  region: n.region || ""
4404
- }, r = 0, s = le();
4405
- return d.language !== i.language && (r += G({
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)), d.script !== i.script && (r += G({
4415
+ }, s)), i.script !== d.script && (r += G({
4414
4416
  language: a.language,
4415
- script: d.script,
4417
+ script: i.script,
4416
4418
  region: ""
4417
4419
  }, {
4418
4420
  language: n.language,
4419
- script: d.script,
4421
+ script: i.script,
4420
4422
  region: ""
4421
- }, s)), d.region !== i.region && (r += G(d, i, s)), r;
4423
+ }, s)), i.region !== d.region && (r += G(i, d, s)), r;
4422
4424
  }
4423
- function we(e, t, a) {
4424
- a === void 0 && (a = ue);
4425
- var n = 1 / 0, d = {
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(i, r) {
4430
- d.distances[i] || (d.distances[i] = {}), t.forEach(function(s) {
4431
- var o = ye(i, s) + 0 + r * 40;
4432
- d.distances[i][s] = o, o < n && (n = o, d.matchedDesiredLocale = i, d.matchedSupportedLocale = s);
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 && (d.matchedDesiredLocale = void 0, d.matchedSupportedLocale = void 0), d;
4436
+ }), n >= a && (i.matchedDesiredLocale = void 0, i.matchedSupportedLocale = void 0), i;
4435
4437
  }
4436
- function me(e, t, a) {
4437
- var n, d, i = [], r = t.reduce(function(o, _) {
4438
- var c = _.replace(U, "");
4439
- return i.push(c), o[c] = _, o;
4440
- }, {}), s = we(i, e);
4441
- return s.matchedSupportedLocale && s.matchedDesiredLocale && (n = s.matchedSupportedLocale, d = r[s.matchedDesiredLocale].slice(s.matchedDesiredLocale.length) || void 0), n ? {
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: d
4445
+ extension: i
4444
4446
  } : { locale: a() };
4445
4447
  }
4446
- function ge(e, t) {
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 pe(e, t, a) {
4457
- for (var n = { locale: "" }, d = 0, i = t; d < i.length; d++) {
4458
- var r = i[d], s = r.replace(U, ""), o = ge(e, s);
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 Me(e, t) {
4465
- h(t.length === 2, "key must have 2 elements");
4466
- var a = e.length, n = "-".concat(t, "-"), d = e.indexOf(n);
4467
- if (d !== -1) {
4468
- for (var i = d + 4, r = i, s = i, o = !1; !o; ) {
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(i, r);
4474
+ return e.slice(d, r);
4473
4475
  }
4474
- if (n = "-".concat(t), d = e.indexOf(n), d !== -1 && d + 3 === a)
4476
+ if (n = "-".concat(t), i = e.indexOf(n), i !== -1 && i + 3 === a)
4475
4477
  return "";
4476
4478
  }
4477
- function he(e, t, a, n, d, i) {
4479
+ function ge(e, t, a, n, i, d) {
4478
4480
  var r = a.localeMatcher, s;
4479
- r === "lookup" ? s = pe(Array.from(e), t, i) : s = me(Array.from(e), t, i);
4480
- for (var o = s.locale, _ = { locale: "", dataLocale: o }, c = "-u", y = 0, g = n; y < g.length; y++) {
4481
- var l = g[y];
4482
- h(o in d, "Missing locale data for ".concat(o));
4483
- var m = d[o];
4484
- h(typeof m == "object" && m !== null, "locale data ".concat(l, " must be an object"));
4485
- var p = m[l];
4486
- h(Array.isArray(p), "keyLocaleData for ".concat(l, " must be an array"));
4487
- var w = p[0];
4488
- h(typeof w == "string" || w === null, "value must be string or null but got ".concat(typeof w, " in key ").concat(l));
4489
- var f = "";
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 = Me(s.extension, l);
4492
- S !== void 0 && (S !== "" ? ~p.indexOf(S) && (w = S, f = "-".concat(l, "-").concat(w)) : ~S.indexOf("true") && (w = "true", f = "-".concat(l)));
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 (l in a) {
4495
- var M = a[l];
4496
- h(typeof M == "string" || typeof M > "u" || M === null, "optionsValue must be String, Undefined or Null"), ~p.indexOf(M) && M !== w && (w = M, f = "");
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
- _[l] = w, c += f;
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 Z = o.slice(0, A), W = o.slice(A, o.length);
4506
- o = Z + c + W;
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 Se(e, t, a, n) {
4513
- return he(t, _e(e), {
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 z(e, t = "") {
4522
+ function q(e, t = "") {
4521
4523
  return Object.keys(e).reduce(
4522
4524
  (a, n) => {
4523
- const d = e[n], i = t ? `${t}.${n}` : n;
4524
- return typeof d == "string" ? a[i] = d : Object.assign(a, z(d, i)), a;
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 fe(e, t) {
4530
- const a = Object.keys(t), n = Se(
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 Le = X(), K = /* @__PURE__ */ new WeakMap(), Te = (e) => {
4538
- const t = (e == null ? void 0 : e.locale) || B, a = fe(t, b), n = {
4539
- ...b[a] || {},
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
- }, d = z(n);
4542
- return ee(
4543
+ }, i = q(n);
4544
+ return Q(
4543
4545
  {
4544
4546
  locale: t,
4545
- messages: d
4547
+ messages: i
4546
4548
  },
4547
- Le
4549
+ he
4548
4550
  );
4549
- }, Ae = (e) => {
4550
- const t = K.get(e);
4551
+ }, Le = (e) => {
4552
+ const t = R.get(e);
4551
4553
  if (t)
4552
4554
  return t;
4553
- const a = Te(e);
4554
- return K.set(e, a), a;
4555
+ const a = Se(e);
4556
+ return R.set(e, a), a;
4555
4557
  };
4556
- function Ce(e) {
4557
- return Ae(e);
4558
+ function fe(e) {
4559
+ return Le(e);
4558
4560
  }
4559
- var k = {}, ve = D;
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
- })), O = E("div")(({ theme: e }) => ({
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 De({
4570
+ function Ne({
4585
4571
  count: e,
4586
4572
  page: t,
4587
4573
  rowsPerPage: a = 10,
4588
4574
  onPageChange: n,
4589
- lastPageTooltip: d
4575
+ lastPageTooltip: i
4590
4576
  }) {
4591
- const i = ae(), r = Ce(i), s = (m) => {
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, y = r.formatMessage({
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
- }), l = r.formatMessage({
4585
+ }), u = r.formatMessage({
4600
4586
  id: "c4r.form.pagination.noMorePages"
4601
4587
  });
4602
- return /* @__PURE__ */ u.jsxs(Ie, { children: [
4603
- /* @__PURE__ */ u.jsx(I, { title: c ? l : y, children: /* @__PURE__ */ u.jsx(O, { children: /* @__PURE__ */ u.jsx(
4604
- N,
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": y,
4609
- children: /* @__PURE__ */ u.jsx(F, {})
4594
+ "aria-label": l,
4595
+ children: /* @__PURE__ */ y(Y, {})
4610
4596
  }
4611
4597
  ) }) }),
4612
- /* @__PURE__ */ u.jsx(
4613
- I,
4598
+ /* @__PURE__ */ y(
4599
+ k,
4614
4600
  {
4615
- title: _ ? d ?? l : g,
4616
- children: /* @__PURE__ */ u.jsx(O, { children: /* @__PURE__ */ u.jsx(
4617
- N,
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__ */ u.jsx(V, {})
4608
+ children: /* @__PURE__ */ y(J, {})
4623
4609
  }
4624
4610
  ) })
4625
4611
  }
4626
4612
  )
4627
4613
  ] });
4628
4614
  }
4629
- const Ne = E(J, {
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: d,
4645
- isSticky: i,
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 ? `${R} 1fr ${r.spacing(3)}` : `${R}`
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
- ...i && {
4648
+ ...d && {
4663
4649
  borderRadius: 0
4664
4650
  },
4665
4651
  ".MuiAlert-message": {
4666
4652
  flex: 1,
4667
- paddingTop: d ? r.spacing(0.25) : r.spacing(0.5),
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: d ? r.spacing(2.5) : r.spacing(3),
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 Re({
4697
+ function Ce({
4712
4698
  title: e,
4713
4699
  action: t,
4714
4700
  severity: a = "neutral",
4715
4701
  content: n = "inline",
4716
- variant: d = "standard",
4717
- children: i,
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 [y, g] = ne(s ?? !0), l = r ? (w) => {
4709
+ const [l, g] = X(s ?? !0), u = r ? (w) => {
4724
4710
  r(w), g(!1);
4725
- } : void 0, m = a === "neutral", p = s ?? y;
4726
- return /* @__PURE__ */ u.jsx($, { in: p, appear: !1, children: /* @__PURE__ */ u.jsxs(
4727
- Ne,
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: l,
4720
+ onClose: u,
4735
4721
  hasCloseButton: !!r,
4736
4722
  hasAction: !!t,
4737
4723
  hasTitle: !!e,
4738
4724
  isSticky: o,
4739
- variant: d,
4725
+ variant: i,
4740
4726
  ..._,
4741
4727
  children: [
4742
- e && /* @__PURE__ */ u.jsx(Q, { children: e }),
4743
- /* @__PURE__ */ u.jsx(de, { variant: "caption", color: "inherit", component: "div", children: i })
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 qe = q(Re);
4734
+ const be = O(Ce);
4749
4735
  export {
4750
- qe as A,
4751
- de as T,
4752
- De as a,
4753
- Ce as u
4736
+ be as A,
4737
+ ne as T,
4738
+ Ne as a,
4739
+ fe as u
4754
4740
  };