aquasis-fe-components 3.2.0-alpha.2 → 3.2.0-alpha.3

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.
@@ -51226,15 +51226,20 @@ var { Title: I3 } = WH, L3 = "HELPDESK.FORM", R3 = "GENERAL.MESSAGES", z3 = ({ o
51226
51226
  }, q3 = async (e, t) => {
51227
51227
  let n = e.endsWith("/") ? e : `${e}/`, { data: r } = await LQ.get(`${n}getUser`, { params: { userId: t } });
51228
51228
  return r;
51229
- }, J3 = async (e, t) => await LQ.post(`${e}/maintainUser`, t), Y3 = (e, t = !0) => pt({
51229
+ };
51230
+ function J3(e) {
51231
+ let t = e.replace(/\/+$/, "");
51232
+ return /\/api$/i.test(t) ? `${t}/logout` : `${t}/api/logout`;
51233
+ }
51234
+ var Y3 = async (e, t) => await LQ.post(J3(e), {}, { params: { userId: t } }), X3 = async (e, t) => await LQ.post(`${e}/maintainUser`, t), Z3 = (e, t = !0) => pt({
51230
51235
  queryKey: [W3.GetRoles, e],
51231
51236
  queryFn: async () => await K3(e),
51232
51237
  enabled: !!e && t
51233
- }), X3 = (e) => pt({
51238
+ }), Q3 = (e) => pt({
51234
51239
  queryKey: [W3.GetLanguages, e],
51235
51240
  queryFn: async () => await G3(e),
51236
51241
  enabled: !!e
51237
- }), Z3 = (e) => {
51242
+ }), $3 = (e) => {
51238
51243
  let t = AY(), n = mY(mt.Token), r = mY(mt.UserID), i = !!(e && t && n && r);
51239
51244
  return pt({
51240
51245
  queryKey: [
@@ -51245,7 +51250,7 @@ var { Title: I3 } = WH, L3 = "HELPDESK.FORM", R3 = "GENERAL.MESSAGES", z3 = ({ o
51245
51250
  queryFn: async () => await q3(e, r),
51246
51251
  enabled: i
51247
51252
  });
51248
- }, Q3 = {
51253
+ }, e6 = {
51249
51254
  EN: "🇬🇧",
51250
51255
  PT: "🇵🇹",
51251
51256
  BR: "🇧🇷",
@@ -51253,7 +51258,7 @@ var { Title: I3 } = WH, L3 = "HELPDESK.FORM", R3 = "GENERAL.MESSAGES", z3 = ({ o
51253
51258
  RO: "🇷🇴",
51254
51259
  JP: "🇯🇵"
51255
51260
  };
51256
- function $3(e) {
51261
+ function t6(e) {
51257
51262
  let t = String(e || "EN").toUpperCase();
51258
51263
  return [
51259
51264
  "EN",
@@ -51266,8 +51271,8 @@ function $3(e) {
51266
51271
  }
51267
51272
  //#endregion
51268
51273
  //#region src/lib/LanguageSwitcher/index.tsx
51269
- var e6 = ({ code: e, flagSrc: t, size: n = "md" }) => {
51270
- let [r, i] = y(!1), a = Q3[$3(e)], o = n === "sm";
51274
+ var n6 = ({ code: e, flagSrc: t, size: n = "md" }) => {
51275
+ let [r, i] = y(!1), a = e6[t6(e)], o = n === "sm";
51271
51276
  return !t || r ? /* @__PURE__ */ S("span", {
51272
51277
  className: (0, bY.default)("language-switcher__flag-shell", o ? "language-switcher__flag-shell--sm" : "language-switcher__flag-shell--md", "language-switcher__flag-shell--emoji"),
51273
51278
  "aria-hidden": !0,
@@ -51286,11 +51291,11 @@ var e6 = ({ code: e, flagSrc: t, size: n = "md" }) => {
51286
51291
  })
51287
51292
  });
51288
51293
  };
51289
- function t6(e) {
51294
+ function r6(e) {
51290
51295
  return [...e].sort((e, t) => String(e.description).localeCompare(String(t.description)));
51291
51296
  }
51292
- var n6 = ({ onlyFlag: e, gauApiUrl: t, className: n }) => {
51293
- let { i18n: r, t: i } = RK(), [a, o] = y(!1), s = vY($J) === ht.Dark, { data: c, isPending: l, isFetching: u } = X3(t), d = !!t && (l || u), p = $3(r.language ?? ""), m = _(() => c?.length ? t6(c) : [], [c]), h = _(() => m.find((e) => String(e.description).toUpperCase() === p), [m, p]), g = h?.image ? MY(h.image) : void 0;
51297
+ var i6 = ({ onlyFlag: e, gauApiUrl: t, className: n }) => {
51298
+ let { i18n: r, t: i } = RK(), [a, o] = y(!1), s = vY($J) === ht.Dark, { data: c, isPending: l, isFetching: u } = Q3(t), d = !!t && (l || u), p = t6(r.language ?? ""), m = _(() => c?.length ? r6(c) : [], [c]), h = _(() => m.find((e) => String(e.description).toUpperCase() === p), [m, p]), g = h?.image ? MY(h.image) : void 0;
51294
51299
  f(() => {
51295
51300
  if (!c?.length) return;
51296
51301
  let e = String(r.language ?? "").toUpperCase();
@@ -51310,13 +51315,13 @@ var n6 = ({ onlyFlag: e, gauApiUrl: t, className: n }) => {
51310
51315
  selectedKeys: [p],
51311
51316
  className: "language-switcher__ant-menu",
51312
51317
  items: m.map(({ description: t, image: n }) => {
51313
- let r = String(t).toUpperCase(), a = MY(n), o = `LANGUAGES.${$3(r)}`;
51318
+ let r = String(t).toUpperCase(), a = MY(n), o = `LANGUAGES.${t6(r)}`;
51314
51319
  return {
51315
51320
  key: r,
51316
51321
  label: /* @__PURE__ */ C("span", {
51317
51322
  className: (0, bY.default)("language-switcher__menu-row", e && "language-switcher__menu-row--flag-only"),
51318
51323
  children: [
51319
- /* @__PURE__ */ S(e6, {
51324
+ /* @__PURE__ */ S(n6, {
51320
51325
  code: r,
51321
51326
  flagSrc: a
51322
51327
  }),
@@ -51360,38 +51365,38 @@ var n6 = ({ onlyFlag: e, gauApiUrl: t, className: n }) => {
51360
51365
  className: (0, bY.default)("language-switcher__trigger", s && "language-switcher__trigger--dark", n),
51361
51366
  children: [
51362
51367
  /* @__PURE__ */ S(PJ, { className: "language-switcher__globe" }),
51363
- /* @__PURE__ */ S(e6, {
51368
+ /* @__PURE__ */ S(n6, {
51364
51369
  code: p,
51365
51370
  flagSrc: g,
51366
51371
  size: "sm"
51367
51372
  }),
51368
51373
  e ? null : /* @__PURE__ */ S("span", {
51369
51374
  className: "language-switcher__trigger-label",
51370
- children: i(`LANGUAGES.${$3(p)}`)
51375
+ children: i(`LANGUAGES.${t6(p)}`)
51371
51376
  }),
51372
51377
  /* @__PURE__ */ S(oC, { className: (0, bY.default)("language-switcher__chevron", a && "language-switcher__chevron--open") })
51373
51378
  ]
51374
51379
  })
51375
51380
  });
51376
- }, r6 = oJ()((e) => /* @__PURE__ */ S(vJ, { children: /* @__PURE__ */ S(n6, { ...e }) })), i6 = (e) => /* @__PURE__ */ S(yJ, {
51377
- fallback: /* @__PURE__ */ S(n6, { ...e }),
51378
- children: /* @__PURE__ */ S(r6, { ...e })
51379
- }), a6 = (e) => /* @__PURE__ */ S(i6, { ...e });
51381
+ }, a6 = oJ()((e) => /* @__PURE__ */ S(vJ, { children: /* @__PURE__ */ S(i6, { ...e }) })), o6 = (e) => /* @__PURE__ */ S(yJ, {
51382
+ fallback: /* @__PURE__ */ S(i6, { ...e }),
51383
+ children: /* @__PURE__ */ S(a6, { ...e })
51384
+ }), s6 = (e) => /* @__PURE__ */ S(o6, { ...e });
51380
51385
  typeof Symbol == "function" && Symbol.observable;
51381
- var o6 = () => Math.random().toString(36).substring(7).split("").join(".");
51382
- `${/* @__PURE__ */ o6()}`, `${/* @__PURE__ */ o6()}`;
51383
- function s6(e) {
51386
+ var c6 = () => Math.random().toString(36).substring(7).split("").join(".");
51387
+ `${/* @__PURE__ */ c6()}`, `${/* @__PURE__ */ c6()}`;
51388
+ function l6(e) {
51384
51389
  if (typeof e != "object" || !e) return !1;
51385
51390
  let t = e;
51386
51391
  for (; Object.getPrototypeOf(t) !== null;) t = Object.getPrototypeOf(t);
51387
51392
  return Object.getPrototypeOf(e) === t || Object.getPrototypeOf(e) === null;
51388
51393
  }
51389
- function c6(e) {
51390
- return s6(e) && "type" in e && typeof e.type == "string";
51394
+ function u6(e) {
51395
+ return l6(e) && "type" in e && typeof e.type == "string";
51391
51396
  }
51392
51397
  //#endregion
51393
51398
  //#region node_modules/.pnpm/immer@11.1.7/node_modules/immer/dist/immer.mjs
51394
- var l6 = Symbol.for("immer-nothing"), u6 = Symbol.for("immer-draftable"), d6 = Symbol.for("immer-state"), f6 = process.env.NODE_ENV === "production" ? [] : [
51399
+ var d6 = Symbol.for("immer-nothing"), f6 = Symbol.for("immer-draftable"), p6 = Symbol.for("immer-state"), m6 = process.env.NODE_ENV === "production" ? [] : [
51395
51400
  function(e) {
51396
51401
  return `The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`;
51397
51402
  },
@@ -51419,98 +51424,98 @@ var l6 = Symbol.for("immer-nothing"), u6 = Symbol.for("immer-draftable"), d6 = S
51419
51424
  return `'original' expects a draft, got: ${e}`;
51420
51425
  }
51421
51426
  ];
51422
- function p6(e, ...t) {
51427
+ function h6(e, ...t) {
51423
51428
  if (process.env.NODE_ENV !== "production") {
51424
- let n = f6[e], r = L6(n) ? n.apply(null, t) : n;
51429
+ let n = m6[e], r = z6(n) ? n.apply(null, t) : n;
51425
51430
  throw Error(`[Immer] ${r}`);
51426
51431
  }
51427
51432
  throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`);
51428
51433
  }
51429
- var m6 = Object, h6 = m6.getPrototypeOf, g6 = "constructor", _6 = "prototype", v6 = "configurable", y6 = "enumerable", b6 = "writable", x6 = "value", S6 = (e) => !!e && !!e[d6];
51430
- function C6(e) {
51431
- return e ? E6(e) || N6(e) || !!e[u6] || !!e[g6]?.[u6] || P6(e) || F6(e) : !1;
51434
+ var g6 = Object, _6 = g6.getPrototypeOf, v6 = "constructor", y6 = "prototype", b6 = "configurable", x6 = "enumerable", S6 = "writable", C6 = "value", w6 = (e) => !!e && !!e[p6];
51435
+ function T6(e) {
51436
+ return e ? O6(e) || F6(e) || !!e[f6] || !!e[v6]?.[f6] || I6(e) || L6(e) : !1;
51432
51437
  }
51433
- var w6 = m6[_6][g6].toString(), T6 = /* @__PURE__ */ new WeakMap();
51434
- function E6(e) {
51435
- if (!e || !I6(e)) return !1;
51436
- let t = h6(e);
51437
- if (t === null || t === m6[_6]) return !0;
51438
- let n = m6.hasOwnProperty.call(t, g6) && t[g6];
51438
+ var E6 = g6[y6][v6].toString(), D6 = /* @__PURE__ */ new WeakMap();
51439
+ function O6(e) {
51440
+ if (!e || !R6(e)) return !1;
51441
+ let t = _6(e);
51442
+ if (t === null || t === g6[y6]) return !0;
51443
+ let n = g6.hasOwnProperty.call(t, v6) && t[v6];
51439
51444
  if (n === Object) return !0;
51440
- if (!L6(n)) return !1;
51441
- let r = T6.get(n);
51442
- return r === void 0 && (r = Function.toString.call(n), T6.set(n, r)), r === w6;
51445
+ if (!z6(n)) return !1;
51446
+ let r = D6.get(n);
51447
+ return r === void 0 && (r = Function.toString.call(n), D6.set(n, r)), r === E6;
51443
51448
  }
51444
- function D6(e, t, n = !0) {
51445
- O6(e) === 0 ? (n ? Reflect.ownKeys(e) : m6.keys(e)).forEach((n) => {
51449
+ function k6(e, t, n = !0) {
51450
+ A6(e) === 0 ? (n ? Reflect.ownKeys(e) : g6.keys(e)).forEach((n) => {
51446
51451
  t(n, e[n], e);
51447
51452
  }) : e.forEach((n, r) => t(r, n, e));
51448
51453
  }
51449
- function O6(e) {
51450
- let t = e[d6];
51451
- return t ? t.type_ : N6(e) ? 1 : P6(e) ? 2 : F6(e) ? 3 : 0;
51454
+ function A6(e) {
51455
+ let t = e[p6];
51456
+ return t ? t.type_ : F6(e) ? 1 : I6(e) ? 2 : L6(e) ? 3 : 0;
51452
51457
  }
51453
- var k6 = (e, t, n = O6(e)) => n === 2 ? e.has(t) : m6[_6].hasOwnProperty.call(e, t), A6 = (e, t, n = O6(e)) => n === 2 ? e.get(t) : e[t], j6 = (e, t, n, r = O6(e)) => {
51458
+ var j6 = (e, t, n = A6(e)) => n === 2 ? e.has(t) : g6[y6].hasOwnProperty.call(e, t), M6 = (e, t, n = A6(e)) => n === 2 ? e.get(t) : e[t], N6 = (e, t, n, r = A6(e)) => {
51454
51459
  r === 2 ? e.set(t, n) : r === 3 ? e.add(n) : e[t] = n;
51455
51460
  };
51456
- function M6(e, t) {
51461
+ function P6(e, t) {
51457
51462
  return e === t ? e !== 0 || 1 / e == 1 / t : e !== e && t !== t;
51458
51463
  }
51459
- var N6 = Array.isArray, P6 = (e) => e instanceof Map, F6 = (e) => e instanceof Set, I6 = (e) => typeof e == "object", L6 = (e) => typeof e == "function", R6 = (e) => typeof e == "boolean";
51460
- function z6(e) {
51464
+ var F6 = Array.isArray, I6 = (e) => e instanceof Map, L6 = (e) => e instanceof Set, R6 = (e) => typeof e == "object", z6 = (e) => typeof e == "function", B6 = (e) => typeof e == "boolean";
51465
+ function V6(e) {
51461
51466
  let t = +e;
51462
51467
  return Number.isInteger(t) && String(t) === e;
51463
51468
  }
51464
- var B6 = (e) => e.copy_ || e.base_, V6 = (e) => e.modified_ ? e.copy_ : e.base_;
51465
- function H6(e, t) {
51466
- if (P6(e)) return new Map(e);
51467
- if (F6(e)) return new Set(e);
51468
- if (N6(e)) return Array[_6].slice.call(e);
51469
- let n = E6(e);
51469
+ var H6 = (e) => e.copy_ || e.base_, U6 = (e) => e.modified_ ? e.copy_ : e.base_;
51470
+ function W6(e, t) {
51471
+ if (I6(e)) return new Map(e);
51472
+ if (L6(e)) return new Set(e);
51473
+ if (F6(e)) return Array[y6].slice.call(e);
51474
+ let n = O6(e);
51470
51475
  if (t === !0 || t === "class_only" && !n) {
51471
- let t = m6.getOwnPropertyDescriptors(e);
51472
- delete t[d6];
51476
+ let t = g6.getOwnPropertyDescriptors(e);
51477
+ delete t[p6];
51473
51478
  let n = Reflect.ownKeys(t);
51474
51479
  for (let r = 0; r < n.length; r++) {
51475
51480
  let i = n[r], a = t[i];
51476
- a[b6] === !1 && (a[b6] = !0, a[v6] = !0), (a.get || a.set) && (t[i] = {
51477
- [v6]: !0,
51481
+ a[S6] === !1 && (a[S6] = !0, a[b6] = !0), (a.get || a.set) && (t[i] = {
51478
51482
  [b6]: !0,
51479
- [y6]: a[y6],
51480
- [x6]: e[i]
51483
+ [S6]: !0,
51484
+ [x6]: a[x6],
51485
+ [C6]: e[i]
51481
51486
  });
51482
51487
  }
51483
- return m6.create(h6(e), t);
51488
+ return g6.create(_6(e), t);
51484
51489
  } else {
51485
- let t = h6(e);
51490
+ let t = _6(e);
51486
51491
  if (t !== null && n) return { ...e };
51487
- let r = m6.create(t);
51488
- return m6.assign(r, e);
51489
- }
51490
- }
51491
- function U6(e, t = !1) {
51492
- return K6(e) || S6(e) || !C6(e) ? e : (O6(e) > 1 && m6.defineProperties(e, {
51493
- set: G6,
51494
- add: G6,
51495
- clear: G6,
51496
- delete: G6
51497
- }), m6.freeze(e), t && D6(e, (e, t) => {
51498
- U6(t, !0);
51492
+ let r = g6.create(t);
51493
+ return g6.assign(r, e);
51494
+ }
51495
+ }
51496
+ function G6(e, t = !1) {
51497
+ return J6(e) || w6(e) || !T6(e) ? e : (A6(e) > 1 && g6.defineProperties(e, {
51498
+ set: q6,
51499
+ add: q6,
51500
+ clear: q6,
51501
+ delete: q6
51502
+ }), g6.freeze(e), t && k6(e, (e, t) => {
51503
+ G6(t, !0);
51499
51504
  }, !1), e);
51500
51505
  }
51501
- function W6() {
51502
- p6(2);
51506
+ function K6() {
51507
+ h6(2);
51503
51508
  }
51504
- var G6 = { [x6]: W6 };
51505
- function K6(e) {
51506
- return e === null || !I6(e) ? !0 : m6.isFrozen(e);
51509
+ var q6 = { [C6]: K6 };
51510
+ function J6(e) {
51511
+ return e === null || !R6(e) ? !0 : g6.isFrozen(e);
51507
51512
  }
51508
- var q6 = "MapSet", J6 = "Patches", Y6 = "ArrayMethods", X6 = {};
51509
- function Z6(e) {
51510
- let t = X6[e];
51511
- return t || p6(0, e), t;
51513
+ var Y6 = "MapSet", X6 = "Patches", Z6 = "ArrayMethods", Q6 = {};
51514
+ function $6(e) {
51515
+ let t = Q6[e];
51516
+ return t || h6(0, e), t;
51512
51517
  }
51513
- var Q6 = (e) => !!X6[e], $6, e8 = () => $6, t8 = (e, t) => ({
51518
+ var e8 = (e) => !!Q6[e], t8, n8 = () => t8, r8 = (e, t) => ({
51514
51519
  drafts_: [],
51515
51520
  parent_: e,
51516
51521
  immer_: t,
@@ -51518,114 +51523,114 @@ var Q6 = (e) => !!X6[e], $6, e8 = () => $6, t8 = (e, t) => ({
51518
51523
  unfinalizedDrafts_: 0,
51519
51524
  handledSet_: /* @__PURE__ */ new Set(),
51520
51525
  processedForPatches_: /* @__PURE__ */ new Set(),
51521
- mapSetPlugin_: Q6(q6) ? Z6(q6) : void 0,
51522
- arrayMethodsPlugin_: Q6(Y6) ? Z6(Y6) : void 0
51526
+ mapSetPlugin_: e8(Y6) ? $6(Y6) : void 0,
51527
+ arrayMethodsPlugin_: e8(Z6) ? $6(Z6) : void 0
51523
51528
  });
51524
- function n8(e, t) {
51525
- t && (e.patchPlugin_ = Z6(J6), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
51526
- }
51527
- function r8(e) {
51528
- i8(e), e.drafts_.forEach(o8), e.drafts_ = null;
51529
+ function i8(e, t) {
51530
+ t && (e.patchPlugin_ = $6(X6), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
51529
51531
  }
51530
- function i8(e) {
51531
- e === $6 && ($6 = e.parent_);
51532
+ function a8(e) {
51533
+ o8(e), e.drafts_.forEach(c8), e.drafts_ = null;
51532
51534
  }
51533
- var a8 = (e) => $6 = t8($6, e);
51534
51535
  function o8(e) {
51535
- let t = e[d6];
51536
+ e === t8 && (t8 = e.parent_);
51537
+ }
51538
+ var s8 = (e) => t8 = r8(t8, e);
51539
+ function c8(e) {
51540
+ let t = e[p6];
51536
51541
  t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
51537
51542
  }
51538
- function s8(e, t) {
51543
+ function l8(e, t) {
51539
51544
  t.unfinalizedDrafts_ = t.drafts_.length;
51540
51545
  let n = t.drafts_[0];
51541
51546
  if (e !== void 0 && e !== n) {
51542
- n[d6].modified_ && (r8(t), p6(4)), C6(e) && (e = c8(t, e));
51547
+ n[p6].modified_ && (a8(t), h6(4)), T6(e) && (e = u8(t, e));
51543
51548
  let { patchPlugin_: r } = t;
51544
- r && r.generateReplacementPatches_(n[d6].base_, e, t);
51545
- } else e = c8(t, n);
51546
- return l8(t, e, !0), r8(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === l6 ? void 0 : e;
51547
- }
51548
- function c8(e, t) {
51549
- if (K6(t)) return t;
51550
- let n = t[d6];
51551
- if (!n) return _8(t, e.handledSet_, e);
51552
- if (!d8(n, e)) return t;
51549
+ r && r.generateReplacementPatches_(n[p6].base_, e, t);
51550
+ } else e = u8(t, n);
51551
+ return d8(t, e, !0), a8(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === d6 ? void 0 : e;
51552
+ }
51553
+ function u8(e, t) {
51554
+ if (J6(t)) return t;
51555
+ let n = t[p6];
51556
+ if (!n) return y8(t, e.handledSet_, e);
51557
+ if (!p8(n, e)) return t;
51553
51558
  if (!n.modified_) return n.base_;
51554
51559
  if (!n.finalized_) {
51555
51560
  let { callbacks_: t } = n;
51556
51561
  if (t) for (; t.length > 0;) t.pop()(e);
51557
- h8(n, e);
51562
+ _8(n, e);
51558
51563
  }
51559
51564
  return n.copy_;
51560
51565
  }
51561
- function l8(e, t, n = !1) {
51562
- !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && U6(t, n);
51566
+ function d8(e, t, n = !1) {
51567
+ !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && G6(t, n);
51563
51568
  }
51564
- function u8(e) {
51569
+ function f8(e) {
51565
51570
  e.finalized_ = !0, e.scope_.unfinalizedDrafts_--;
51566
51571
  }
51567
- var d8 = (e, t) => e.scope_ === t, f8 = [];
51568
- function p8(e, t, n, r) {
51569
- let i = B6(e), a = e.type_;
51570
- if (r !== void 0 && A6(i, r, a) === t) {
51571
- j6(i, r, n, a);
51572
+ var p8 = (e, t) => e.scope_ === t, m8 = [];
51573
+ function h8(e, t, n, r) {
51574
+ let i = H6(e), a = e.type_;
51575
+ if (r !== void 0 && M6(i, r, a) === t) {
51576
+ N6(i, r, n, a);
51572
51577
  return;
51573
51578
  }
51574
51579
  if (!e.draftLocations_) {
51575
51580
  let t = e.draftLocations_ = /* @__PURE__ */ new Map();
51576
- D6(i, (e, n) => {
51577
- if (S6(n)) {
51581
+ k6(i, (e, n) => {
51582
+ if (w6(n)) {
51578
51583
  let r = t.get(n) || [];
51579
51584
  r.push(e), t.set(n, r);
51580
51585
  }
51581
51586
  });
51582
51587
  }
51583
- let o = e.draftLocations_.get(t) ?? f8;
51584
- for (let e of o) j6(i, e, n, a);
51588
+ let o = e.draftLocations_.get(t) ?? m8;
51589
+ for (let e of o) N6(i, e, n, a);
51585
51590
  }
51586
- function m8(e, t, n) {
51591
+ function g8(e, t, n) {
51587
51592
  e.callbacks_.push(function(r) {
51588
51593
  let i = t;
51589
- if (!i || !d8(i, r)) return;
51594
+ if (!i || !p8(i, r)) return;
51590
51595
  r.mapSetPlugin_?.fixSetContents(i);
51591
- let a = V6(i);
51592
- p8(e, i.draft_ ?? i, a, n), h8(i, r);
51596
+ let a = U6(i);
51597
+ h8(e, i.draft_ ?? i, a, n), _8(i, r);
51593
51598
  });
51594
51599
  }
51595
- function h8(e, t) {
51600
+ function _8(e, t) {
51596
51601
  if (e.modified_ && !e.finalized_ && (e.type_ === 3 || e.type_ === 1 && e.allIndicesReassigned_ || (e.assigned_?.size ?? 0) > 0)) {
51597
51602
  let { patchPlugin_: n } = t;
51598
51603
  if (n) {
51599
51604
  let r = n.getPath(e);
51600
51605
  r && n.generatePatches_(e, r, t);
51601
51606
  }
51602
- u8(e);
51607
+ f8(e);
51603
51608
  }
51604
51609
  }
51605
- function g8(e, t, n) {
51610
+ function v8(e, t, n) {
51606
51611
  let { scope_: r } = e;
51607
- if (S6(n)) {
51608
- let i = n[d6];
51609
- d8(i, r) && i.callbacks_.push(function() {
51610
- T8(e), p8(e, n, V6(i), t);
51612
+ if (w6(n)) {
51613
+ let i = n[p6];
51614
+ p8(i, r) && i.callbacks_.push(function() {
51615
+ D8(e), h8(e, n, U6(i), t);
51611
51616
  });
51612
- } else C6(n) && e.callbacks_.push(function() {
51613
- let i = B6(e);
51614
- e.type_ === 3 ? i.has(n) && _8(n, r.handledSet_, r) : A6(i, t, e.type_) === n && r.drafts_.length > 1 && (e.assigned_.get(t) ?? !1) === !0 && e.copy_ && _8(A6(e.copy_, t, e.type_), r.handledSet_, r);
51617
+ } else T6(n) && e.callbacks_.push(function() {
51618
+ let i = H6(e);
51619
+ e.type_ === 3 ? i.has(n) && y8(n, r.handledSet_, r) : M6(i, t, e.type_) === n && r.drafts_.length > 1 && (e.assigned_.get(t) ?? !1) === !0 && e.copy_ && y8(M6(e.copy_, t, e.type_), r.handledSet_, r);
51615
51620
  });
51616
51621
  }
51617
- function _8(e, t, n) {
51618
- return !n.immer_.autoFreeze_ && n.unfinalizedDrafts_ < 1 || S6(e) || t.has(e) || !C6(e) || K6(e) ? e : (t.add(e), D6(e, (r, i) => {
51619
- if (S6(i)) {
51620
- let t = i[d6];
51621
- d8(t, n) && (j6(e, r, V6(t), e.type_), u8(t));
51622
- } else C6(i) && _8(i, t, n);
51622
+ function y8(e, t, n) {
51623
+ return !n.immer_.autoFreeze_ && n.unfinalizedDrafts_ < 1 || w6(e) || t.has(e) || !T6(e) || J6(e) ? e : (t.add(e), k6(e, (r, i) => {
51624
+ if (w6(i)) {
51625
+ let t = i[p6];
51626
+ p8(t, n) && (N6(e, r, U6(t), e.type_), f8(t));
51627
+ } else T6(i) && y8(i, t, n);
51623
51628
  }), e);
51624
51629
  }
51625
- function v8(e, t) {
51626
- let n = N6(e), r = {
51630
+ function b8(e, t) {
51631
+ let n = F6(e), r = {
51627
51632
  type_: +!!n,
51628
- scope_: t ? t.scope_ : e8(),
51633
+ scope_: t ? t.scope_ : n8(),
51629
51634
  modified_: !1,
51630
51635
  finalized_: !1,
51631
51636
  assigned_: void 0,
@@ -51636,105 +51641,105 @@ function v8(e, t) {
51636
51641
  revoke_: null,
51637
51642
  isManual_: !1,
51638
51643
  callbacks_: void 0
51639
- }, i = r, a = y8;
51640
- n && (i = [r], a = b8);
51644
+ }, i = r, a = x8;
51645
+ n && (i = [r], a = S8);
51641
51646
  let { revoke: o, proxy: s } = Proxy.revocable(i, a);
51642
51647
  return r.draft_ = s, r.revoke_ = o, [s, r];
51643
51648
  }
51644
- var y8 = {
51649
+ var x8 = {
51645
51650
  get(e, t) {
51646
- if (t === d6) return e;
51651
+ if (t === p6) return e;
51647
51652
  let n = e.scope_.arrayMethodsPlugin_, r = e.type_ === 1 && typeof t == "string";
51648
51653
  if (r && n?.isArrayOperationMethod(t)) return n.createMethodInterceptor(e, t);
51649
- let i = B6(e);
51650
- if (!k6(i, t, e.type_)) return S8(e, i, t);
51654
+ let i = H6(e);
51655
+ if (!j6(i, t, e.type_)) return w8(e, i, t);
51651
51656
  let a = i[t];
51652
- if (e.finalized_ || !C6(a) || r && e.operationMethod && n?.isMutatingArrayMethod(e.operationMethod) && z6(t)) return a;
51653
- if (a === x8(e.base_, t)) {
51654
- T8(e);
51655
- let n = e.type_ === 1 ? +t : t, r = D8(e.scope_, a, e, n);
51657
+ if (e.finalized_ || !T6(a) || r && e.operationMethod && n?.isMutatingArrayMethod(e.operationMethod) && V6(t)) return a;
51658
+ if (a === C8(e.base_, t)) {
51659
+ D8(e);
51660
+ let n = e.type_ === 1 ? +t : t, r = k8(e.scope_, a, e, n);
51656
51661
  return e.copy_[n] = r;
51657
51662
  }
51658
51663
  return a;
51659
51664
  },
51660
51665
  has(e, t) {
51661
- return t in B6(e);
51666
+ return t in H6(e);
51662
51667
  },
51663
51668
  ownKeys(e) {
51664
- return Reflect.ownKeys(B6(e));
51669
+ return Reflect.ownKeys(H6(e));
51665
51670
  },
51666
51671
  set(e, t, n) {
51667
- let r = C8(B6(e), t);
51672
+ let r = T8(H6(e), t);
51668
51673
  if (r?.set) return r.set.call(e.draft_, n), !0;
51669
51674
  if (!e.modified_) {
51670
- let r = x8(B6(e), t), i = r?.[d6];
51675
+ let r = C8(H6(e), t), i = r?.[p6];
51671
51676
  if (i && i.base_ === n) return e.copy_[t] = n, e.assigned_.set(t, !1), !0;
51672
- if (M6(n, r) && (n !== void 0 || k6(e.base_, t, e.type_))) return !0;
51673
- T8(e), w8(e);
51677
+ if (P6(n, r) && (n !== void 0 || j6(e.base_, t, e.type_))) return !0;
51678
+ D8(e), E8(e);
51674
51679
  }
51675
- return e.copy_[t] === n && (n !== void 0 || t in e.copy_) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) ? !0 : (e.copy_[t] = n, e.assigned_.set(t, !0), g8(e, t, n), !0);
51680
+ return e.copy_[t] === n && (n !== void 0 || t in e.copy_) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) ? !0 : (e.copy_[t] = n, e.assigned_.set(t, !0), v8(e, t, n), !0);
51676
51681
  },
51677
51682
  deleteProperty(e, t) {
51678
- return T8(e), x8(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_.set(t, !1), w8(e)) : e.assigned_.delete(t), e.copy_ && delete e.copy_[t], !0;
51683
+ return D8(e), C8(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_.set(t, !1), E8(e)) : e.assigned_.delete(t), e.copy_ && delete e.copy_[t], !0;
51679
51684
  },
51680
51685
  getOwnPropertyDescriptor(e, t) {
51681
- let n = B6(e), r = Reflect.getOwnPropertyDescriptor(n, t);
51686
+ let n = H6(e), r = Reflect.getOwnPropertyDescriptor(n, t);
51682
51687
  return r && {
51683
- [b6]: !0,
51684
- [v6]: e.type_ !== 1 || t !== "length",
51685
- [y6]: r[y6],
51686
- [x6]: n[t]
51688
+ [S6]: !0,
51689
+ [b6]: e.type_ !== 1 || t !== "length",
51690
+ [x6]: r[x6],
51691
+ [C6]: n[t]
51687
51692
  };
51688
51693
  },
51689
51694
  defineProperty() {
51690
- p6(11);
51695
+ h6(11);
51691
51696
  },
51692
51697
  getPrototypeOf(e) {
51693
- return h6(e.base_);
51698
+ return _6(e.base_);
51694
51699
  },
51695
51700
  setPrototypeOf() {
51696
- p6(12);
51701
+ h6(12);
51697
51702
  }
51698
- }, b8 = {};
51699
- for (let e in y8) {
51700
- let t = y8[e];
51701
- b8[e] = function() {
51703
+ }, S8 = {};
51704
+ for (let e in x8) {
51705
+ let t = x8[e];
51706
+ S8[e] = function() {
51702
51707
  let e = arguments;
51703
51708
  return e[0] = e[0][0], t.apply(this, e);
51704
51709
  };
51705
51710
  }
51706
- b8.deleteProperty = function(e, t) {
51707
- return process.env.NODE_ENV !== "production" && isNaN(parseInt(t)) && p6(13), b8.set.call(this, e, t, void 0);
51708
- }, b8.set = function(e, t, n) {
51709
- return process.env.NODE_ENV !== "production" && t !== "length" && isNaN(parseInt(t)) && p6(14), y8.set.call(this, e[0], t, n, e[0]);
51711
+ S8.deleteProperty = function(e, t) {
51712
+ return process.env.NODE_ENV !== "production" && isNaN(parseInt(t)) && h6(13), S8.set.call(this, e, t, void 0);
51713
+ }, S8.set = function(e, t, n) {
51714
+ return process.env.NODE_ENV !== "production" && t !== "length" && isNaN(parseInt(t)) && h6(14), x8.set.call(this, e[0], t, n, e[0]);
51710
51715
  };
51711
- function x8(e, t) {
51712
- let n = e[d6];
51713
- return (n ? B6(n) : e)[t];
51716
+ function C8(e, t) {
51717
+ let n = e[p6];
51718
+ return (n ? H6(n) : e)[t];
51714
51719
  }
51715
- function S8(e, t, n) {
51716
- let r = C8(t, n);
51717
- return r ? x6 in r ? r[x6] : r.get?.call(e.draft_) : void 0;
51720
+ function w8(e, t, n) {
51721
+ let r = T8(t, n);
51722
+ return r ? C6 in r ? r[C6] : r.get?.call(e.draft_) : void 0;
51718
51723
  }
51719
- function C8(e, t) {
51724
+ function T8(e, t) {
51720
51725
  if (!(t in e)) return;
51721
- let n = h6(e);
51726
+ let n = _6(e);
51722
51727
  for (; n;) {
51723
51728
  let e = Object.getOwnPropertyDescriptor(n, t);
51724
51729
  if (e) return e;
51725
- n = h6(n);
51730
+ n = _6(n);
51726
51731
  }
51727
51732
  }
51728
- function w8(e) {
51729
- e.modified_ || (e.modified_ = !0, e.parent_ && w8(e.parent_));
51733
+ function E8(e) {
51734
+ e.modified_ || (e.modified_ = !0, e.parent_ && E8(e.parent_));
51730
51735
  }
51731
- function T8(e) {
51732
- e.copy_ ||= (e.assigned_ = /* @__PURE__ */ new Map(), H6(e.base_, e.scope_.immer_.useStrictShallowCopy_));
51736
+ function D8(e) {
51737
+ e.copy_ ||= (e.assigned_ = /* @__PURE__ */ new Map(), W6(e.base_, e.scope_.immer_.useStrictShallowCopy_));
51733
51738
  }
51734
- var E8 = class {
51739
+ var O8 = class {
51735
51740
  constructor(e) {
51736
51741
  this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.useStrictIteration_ = !1, this.produce = (e, t, n) => {
51737
- if (L6(e) && !L6(t)) {
51742
+ if (z6(e) && !z6(t)) {
51738
51743
  let n = t;
51739
51744
  t = e;
51740
51745
  let r = this;
@@ -51742,28 +51747,28 @@ var E8 = class {
51742
51747
  return r.produce(e, (e) => t.call(this, e, ...i));
51743
51748
  };
51744
51749
  }
51745
- L6(t) || p6(6), n !== void 0 && !L6(n) && p6(7);
51750
+ z6(t) || h6(6), n !== void 0 && !z6(n) && h6(7);
51746
51751
  let r;
51747
- if (C6(e)) {
51748
- let i = a8(this), a = D8(i, e, void 0), o = !0;
51752
+ if (T6(e)) {
51753
+ let i = s8(this), a = k8(i, e, void 0), o = !0;
51749
51754
  try {
51750
51755
  r = t(a), o = !1;
51751
51756
  } finally {
51752
- o ? r8(i) : i8(i);
51757
+ o ? a8(i) : o8(i);
51753
51758
  }
51754
- return n8(i, n), s8(r, i);
51755
- } else if (!e || !I6(e)) {
51756
- if (r = t(e), r === void 0 && (r = e), r === l6 && (r = void 0), this.autoFreeze_ && U6(r, !0), n) {
51759
+ return i8(i, n), l8(r, i);
51760
+ } else if (!e || !R6(e)) {
51761
+ if (r = t(e), r === void 0 && (r = e), r === d6 && (r = void 0), this.autoFreeze_ && G6(r, !0), n) {
51757
51762
  let t = [], i = [];
51758
- Z6(J6).generateReplacementPatches_(e, r, {
51763
+ $6(X6).generateReplacementPatches_(e, r, {
51759
51764
  patches_: t,
51760
51765
  inversePatches_: i
51761
51766
  }), n(t, i);
51762
51767
  }
51763
51768
  return r;
51764
- } else p6(1, e);
51769
+ } else h6(1, e);
51765
51770
  }, this.produceWithPatches = (e, t) => {
51766
- if (L6(e)) return (t, ...n) => this.produceWithPatches(t, (t) => e(t, ...n));
51771
+ if (z6(e)) return (t, ...n) => this.produceWithPatches(t, (t) => e(t, ...n));
51767
51772
  let n, r;
51768
51773
  return [
51769
51774
  this.produce(e, t, (e, t) => {
@@ -51772,18 +51777,18 @@ var E8 = class {
51772
51777
  n,
51773
51778
  r
51774
51779
  ];
51775
- }, R6(e?.autoFreeze) && this.setAutoFreeze(e.autoFreeze), R6(e?.useStrictShallowCopy) && this.setUseStrictShallowCopy(e.useStrictShallowCopy), R6(e?.useStrictIteration) && this.setUseStrictIteration(e.useStrictIteration);
51780
+ }, B6(e?.autoFreeze) && this.setAutoFreeze(e.autoFreeze), B6(e?.useStrictShallowCopy) && this.setUseStrictShallowCopy(e.useStrictShallowCopy), B6(e?.useStrictIteration) && this.setUseStrictIteration(e.useStrictIteration);
51776
51781
  }
51777
51782
  createDraft(e) {
51778
- C6(e) || p6(8), S6(e) && (e = O8(e));
51779
- let t = a8(this), n = D8(t, e, void 0);
51780
- return n[d6].isManual_ = !0, i8(t), n;
51783
+ T6(e) || h6(8), w6(e) && (e = A8(e));
51784
+ let t = s8(this), n = k8(t, e, void 0);
51785
+ return n[p6].isManual_ = !0, o8(t), n;
51781
51786
  }
51782
51787
  finishDraft(e, t) {
51783
- let n = e && e[d6];
51784
- (!n || !n.isManual_) && p6(9);
51788
+ let n = e && e[p6];
51789
+ (!n || !n.isManual_) && h6(9);
51785
51790
  let { scope_: r } = n;
51786
- return n8(r, t), s8(void 0, r);
51791
+ return i8(r, t), l8(void 0, r);
51787
51792
  }
51788
51793
  setAutoFreeze(e) {
51789
51794
  this.autoFreeze_ = e;
@@ -51807,39 +51812,39 @@ var E8 = class {
51807
51812
  }
51808
51813
  }
51809
51814
  n > -1 && (t = t.slice(n + 1));
51810
- let r = Z6(J6).applyPatches_;
51811
- return S6(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
51815
+ let r = $6(X6).applyPatches_;
51816
+ return w6(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
51812
51817
  }
51813
51818
  };
51814
- function D8(e, t, n, r) {
51815
- let [i, a] = P6(t) ? Z6(q6).proxyMap_(t, n) : F6(t) ? Z6(q6).proxySet_(t, n) : v8(t, n);
51816
- return (n?.scope_ ?? e8()).drafts_.push(i), a.callbacks_ = n?.callbacks_ ?? [], a.key_ = r, n && r !== void 0 ? m8(n, a, r) : a.callbacks_.push(function(e) {
51819
+ function k8(e, t, n, r) {
51820
+ let [i, a] = I6(t) ? $6(Y6).proxyMap_(t, n) : L6(t) ? $6(Y6).proxySet_(t, n) : b8(t, n);
51821
+ return (n?.scope_ ?? n8()).drafts_.push(i), a.callbacks_ = n?.callbacks_ ?? [], a.key_ = r, n && r !== void 0 ? g8(n, a, r) : a.callbacks_.push(function(e) {
51817
51822
  e.mapSetPlugin_?.fixSetContents(a);
51818
51823
  let { patchPlugin_: t } = e;
51819
51824
  a.modified_ && t && t.generatePatches_(a, [], e);
51820
51825
  }), i;
51821
51826
  }
51822
- function O8(e) {
51823
- return S6(e) || p6(10, e), k8(e);
51827
+ function A8(e) {
51828
+ return w6(e) || h6(10, e), j8(e);
51824
51829
  }
51825
- function k8(e) {
51826
- if (!C6(e) || K6(e)) return e;
51827
- let t = e[d6], n, r = !0;
51830
+ function j8(e) {
51831
+ if (!T6(e) || J6(e)) return e;
51832
+ let t = e[p6], n, r = !0;
51828
51833
  if (t) {
51829
51834
  if (!t.modified_) return t.base_;
51830
- t.finalized_ = !0, n = H6(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();
51831
- } else n = H6(e, !0);
51832
- return D6(n, (e, t) => {
51833
- j6(n, e, k8(t));
51835
+ t.finalized_ = !0, n = W6(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();
51836
+ } else n = W6(e, !0);
51837
+ return k6(n, (e, t) => {
51838
+ N6(n, e, j8(t));
51834
51839
  }, r), t && (t.finalized_ = !1), n;
51835
51840
  }
51836
- var A8 = new E8().produce;
51841
+ var M8 = new O8().produce;
51837
51842
  typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__, typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__;
51838
- function j8(e, t) {
51843
+ function N8(e, t) {
51839
51844
  function n(...n) {
51840
51845
  if (t) {
51841
51846
  let r = t(...n);
51842
- if (!r) throw Error(process.env.NODE_ENV === "production" ? t5(0) : "prepareAction did not return an object");
51847
+ if (!r) throw Error(process.env.NODE_ENV === "production" ? r5(0) : "prepareAction did not return an object");
51843
51848
  return {
51844
51849
  type: e,
51845
51850
  payload: r.payload,
@@ -51852,42 +51857,42 @@ function j8(e, t) {
51852
51857
  payload: n[0]
51853
51858
  };
51854
51859
  }
51855
- return n.toString = () => `${e}`, n.type = e, n.match = (t) => c6(t) && t.type === e, n;
51860
+ return n.toString = () => `${e}`, n.type = e, n.match = (t) => u6(t) && t.type === e, n;
51856
51861
  }
51857
- function M8(e) {
51858
- return C6(e) ? A8(e, () => {}) : e;
51862
+ function P8(e) {
51863
+ return T6(e) ? M8(e, () => {}) : e;
51859
51864
  }
51860
- function N8(e, t, n) {
51865
+ function F8(e, t, n) {
51861
51866
  return e.has(t) ? e.get(t) : e.set(t, n(t)).get(t);
51862
51867
  }
51863
- function P8(e) {
51868
+ function I8(e) {
51864
51869
  let t = {}, n = [], r, i = {
51865
51870
  addCase(e, a) {
51866
51871
  if (process.env.NODE_ENV !== "production") {
51867
- if (n.length > 0) throw Error(process.env.NODE_ENV === "production" ? t5(26) : "`builder.addCase` should only be called before calling `builder.addMatcher`");
51868
- if (r) throw Error(process.env.NODE_ENV === "production" ? t5(27) : "`builder.addCase` should only be called before calling `builder.addDefaultCase`");
51872
+ if (n.length > 0) throw Error(process.env.NODE_ENV === "production" ? r5(26) : "`builder.addCase` should only be called before calling `builder.addMatcher`");
51873
+ if (r) throw Error(process.env.NODE_ENV === "production" ? r5(27) : "`builder.addCase` should only be called before calling `builder.addDefaultCase`");
51869
51874
  }
51870
51875
  let o = typeof e == "string" ? e : e.type;
51871
- if (!o) throw Error(process.env.NODE_ENV === "production" ? t5(28) : "`builder.addCase` cannot be called with an empty action type");
51872
- if (o in t) throw Error(process.env.NODE_ENV === "production" ? t5(29) : `\`builder.addCase\` cannot be called with two reducers for the same action type '${o}'`);
51876
+ if (!o) throw Error(process.env.NODE_ENV === "production" ? r5(28) : "`builder.addCase` cannot be called with an empty action type");
51877
+ if (o in t) throw Error(process.env.NODE_ENV === "production" ? r5(29) : `\`builder.addCase\` cannot be called with two reducers for the same action type '${o}'`);
51873
51878
  return t[o] = a, i;
51874
51879
  },
51875
51880
  addAsyncThunk(e, a) {
51876
- if (process.env.NODE_ENV !== "production" && r) throw Error(process.env.NODE_ENV === "production" ? t5(43) : "`builder.addAsyncThunk` should only be called before calling `builder.addDefaultCase`");
51881
+ if (process.env.NODE_ENV !== "production" && r) throw Error(process.env.NODE_ENV === "production" ? r5(43) : "`builder.addAsyncThunk` should only be called before calling `builder.addDefaultCase`");
51877
51882
  return a.pending && (t[e.pending.type] = a.pending), a.rejected && (t[e.rejected.type] = a.rejected), a.fulfilled && (t[e.fulfilled.type] = a.fulfilled), a.settled && n.push({
51878
51883
  matcher: e.settled,
51879
51884
  reducer: a.settled
51880
51885
  }), i;
51881
51886
  },
51882
51887
  addMatcher(e, t) {
51883
- if (process.env.NODE_ENV !== "production" && r) throw Error(process.env.NODE_ENV === "production" ? t5(30) : "`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");
51888
+ if (process.env.NODE_ENV !== "production" && r) throw Error(process.env.NODE_ENV === "production" ? r5(30) : "`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");
51884
51889
  return n.push({
51885
51890
  matcher: e,
51886
51891
  reducer: t
51887
51892
  }), i;
51888
51893
  },
51889
51894
  addDefaultCase(e) {
51890
- if (process.env.NODE_ENV !== "production" && r) throw Error(process.env.NODE_ENV === "production" ? t5(31) : "`builder.addDefaultCase` can only be called once");
51895
+ if (process.env.NODE_ENV !== "production" && r) throw Error(process.env.NODE_ENV === "production" ? r5(31) : "`builder.addDefaultCase` can only be called once");
51891
51896
  return r = e, i;
51892
51897
  }
51893
51898
  };
@@ -51897,24 +51902,24 @@ function P8(e) {
51897
51902
  r
51898
51903
  ];
51899
51904
  }
51900
- function F8(e) {
51905
+ function L8(e) {
51901
51906
  return typeof e == "function";
51902
51907
  }
51903
- function I8(e, t) {
51904
- if (process.env.NODE_ENV !== "production" && typeof t == "object") throw Error(process.env.NODE_ENV === "production" ? t5(8) : "The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");
51905
- let [n, r, i] = P8(t), a;
51906
- if (F8(e)) a = () => M8(e());
51908
+ function R8(e, t) {
51909
+ if (process.env.NODE_ENV !== "production" && typeof t == "object") throw Error(process.env.NODE_ENV === "production" ? r5(8) : "The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");
51910
+ let [n, r, i] = I8(t), a;
51911
+ if (L8(e)) a = () => P8(e());
51907
51912
  else {
51908
- let t = M8(e);
51913
+ let t = P8(e);
51909
51914
  a = () => t;
51910
51915
  }
51911
51916
  function o(e = a(), t) {
51912
51917
  let o = [n[t.type], ...r.filter(({ matcher: e }) => e(t)).map(({ reducer: e }) => e)];
51913
51918
  return o.filter((e) => !!e).length === 0 && (o = [i]), o.reduce((e, n) => {
51914
- if (n) if (S6(e)) {
51919
+ if (n) if (w6(e)) {
51915
51920
  let r = n(e, t);
51916
51921
  return r === void 0 ? e : r;
51917
- } else if (C6(e)) return A8(e, (e) => n(e, t));
51922
+ } else if (T6(e)) return M8(e, (e) => n(e, t));
51918
51923
  else {
51919
51924
  let r = n(e, t);
51920
51925
  if (r === void 0) {
@@ -51928,17 +51933,17 @@ function I8(e, t) {
51928
51933
  }
51929
51934
  return o.getInitialState = a, o;
51930
51935
  }
51931
- var L8 = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
51932
- function R8(e, t) {
51936
+ var z8 = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
51937
+ function B8(e, t) {
51933
51938
  return `${e}/${t}`;
51934
51939
  }
51935
- function z8({ creators: e } = {}) {
51936
- let t = e?.asyncThunk?.[L8];
51940
+ function V8({ creators: e } = {}) {
51941
+ let t = e?.asyncThunk?.[z8];
51937
51942
  return function(e) {
51938
51943
  let { name: n, reducerPath: r = n } = e;
51939
- if (!n) throw Error(process.env.NODE_ENV === "production" ? t5(11) : "`name` is a required option for createSlice");
51944
+ if (!n) throw Error(process.env.NODE_ENV === "production" ? r5(11) : "`name` is a required option for createSlice");
51940
51945
  typeof process < "u" && process.env.NODE_ENV === "development" && e.initialState === void 0 && console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");
51941
- let i = (typeof e.reducers == "function" ? e.reducers(H8()) : e.reducers) || {}, a = Object.keys(i), o = {
51946
+ let i = (typeof e.reducers == "function" ? e.reducers(W8()) : e.reducers) || {}, a = Object.keys(i), o = {
51942
51947
  sliceCaseReducersByName: {},
51943
51948
  sliceCaseReducersByType: {},
51944
51949
  actionCreators: {},
@@ -51946,8 +51951,8 @@ function z8({ creators: e } = {}) {
51946
51951
  }, s = {
51947
51952
  addCase(e, t) {
51948
51953
  let n = typeof e == "string" ? e : e.type;
51949
- if (!n) throw Error(process.env.NODE_ENV === "production" ? t5(12) : "`context.addCase` cannot be called with an empty action type");
51950
- if (n in o.sliceCaseReducersByType) throw Error(process.env.NODE_ENV === "production" ? t5(13) : "`context.addCase` cannot be called with two reducers for the same action type: " + n);
51954
+ if (!n) throw Error(process.env.NODE_ENV === "production" ? r5(12) : "`context.addCase` cannot be called with an empty action type");
51955
+ if (n in o.sliceCaseReducersByType) throw Error(process.env.NODE_ENV === "production" ? r5(13) : "`context.addCase` cannot be called with two reducers for the same action type: " + n);
51951
51956
  return o.sliceCaseReducersByType[n] = t, s;
51952
51957
  },
51953
51958
  addMatcher(e, t) {
@@ -51966,18 +51971,18 @@ function z8({ creators: e } = {}) {
51966
51971
  a.forEach((r) => {
51967
51972
  let a = i[r], o = {
51968
51973
  reducerName: r,
51969
- type: R8(n, r),
51974
+ type: B8(n, r),
51970
51975
  createNotation: typeof e.reducers == "function"
51971
51976
  };
51972
- W8(a) ? K8(o, a, s, t) : U8(o, a, s);
51977
+ K8(a) ? J8(o, a, s, t) : G8(o, a, s);
51973
51978
  });
51974
51979
  function c() {
51975
- if (process.env.NODE_ENV !== "production" && typeof e.extraReducers == "object") throw Error(process.env.NODE_ENV === "production" ? t5(14) : "The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");
51976
- let [t = {}, n = [], r = void 0] = typeof e.extraReducers == "function" ? P8(e.extraReducers) : [e.extraReducers], i = {
51980
+ if (process.env.NODE_ENV !== "production" && typeof e.extraReducers == "object") throw Error(process.env.NODE_ENV === "production" ? r5(14) : "The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");
51981
+ let [t = {}, n = [], r = void 0] = typeof e.extraReducers == "function" ? I8(e.extraReducers) : [e.extraReducers], i = {
51977
51982
  ...t,
51978
51983
  ...o.sliceCaseReducersByType
51979
51984
  };
51980
- return I8(e.initialState, (e) => {
51985
+ return R8(e.initialState, (e) => {
51981
51986
  for (let t in i) e.addCase(t, i[t]);
51982
51987
  for (let t of o.sliceMatchers) e.addMatcher(t.matcher, t.reducer);
51983
51988
  for (let t of n) e.addMatcher(t.matcher, t.reducer);
@@ -51995,15 +52000,15 @@ function z8({ creators: e } = {}) {
51995
52000
  function r(e) {
51996
52001
  let i = e[t];
51997
52002
  if (i === void 0) {
51998
- if (n) i = N8(d, r, m);
51999
- else if (process.env.NODE_ENV !== "production") throw Error(process.env.NODE_ENV === "production" ? t5(15) : "selectSlice returned undefined for an uninjected slice reducer");
52003
+ if (n) i = F8(d, r, m);
52004
+ else if (process.env.NODE_ENV !== "production") throw Error(process.env.NODE_ENV === "production" ? r5(15) : "selectSlice returned undefined for an uninjected slice reducer");
52000
52005
  }
52001
52006
  return i;
52002
52007
  }
52003
52008
  function i(t = l) {
52004
- return N8(N8(u, n, () => /* @__PURE__ */ new WeakMap()), t, () => {
52009
+ return F8(F8(u, n, () => /* @__PURE__ */ new WeakMap()), t, () => {
52005
52010
  let r = {};
52006
- for (let [i, a] of Object.entries(e.selectors ?? {})) r[i] = B8(a, t, () => N8(d, t, m), n);
52011
+ for (let [i, a] of Object.entries(e.selectors ?? {})) r[i] = H8(a, t, () => F8(d, t, m), n);
52007
52012
  return r;
52008
52013
  });
52009
52014
  }
@@ -52037,19 +52042,19 @@ function z8({ creators: e } = {}) {
52037
52042
  return g;
52038
52043
  };
52039
52044
  }
52040
- function B8(e, t, n, r) {
52045
+ function H8(e, t, n, r) {
52041
52046
  function i(i, ...a) {
52042
52047
  let o = t(i);
52043
52048
  if (o === void 0) {
52044
52049
  if (r) o = n();
52045
- else if (process.env.NODE_ENV !== "production") throw Error(process.env.NODE_ENV === "production" ? t5(16) : "selectState returned undefined for an uninjected slice reducer");
52050
+ else if (process.env.NODE_ENV !== "production") throw Error(process.env.NODE_ENV === "production" ? r5(16) : "selectState returned undefined for an uninjected slice reducer");
52046
52051
  }
52047
52052
  return e(o, ...a);
52048
52053
  }
52049
52054
  return i.unwrapped = e, i;
52050
52055
  }
52051
- var V8 = /* @__PURE__ */ z8();
52052
- function H8() {
52056
+ var U8 = /* @__PURE__ */ V8();
52057
+ function W8() {
52053
52058
  function e(e, t) {
52054
52059
  return {
52055
52060
  _reducerDefinitionType: "asyncThunk",
@@ -52073,40 +52078,40 @@ function H8() {
52073
52078
  asyncThunk: e
52074
52079
  };
52075
52080
  }
52076
- function U8({ type: e, reducerName: t, createNotation: n }, r, i) {
52081
+ function G8({ type: e, reducerName: t, createNotation: n }, r, i) {
52077
52082
  let a, o;
52078
52083
  if ("reducer" in r) {
52079
- if (n && !G8(r)) throw Error(process.env.NODE_ENV === "production" ? t5(17) : "Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");
52084
+ if (n && !q8(r)) throw Error(process.env.NODE_ENV === "production" ? r5(17) : "Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");
52080
52085
  a = r.reducer, o = r.prepare;
52081
52086
  } else a = r;
52082
- i.addCase(e, a).exposeCaseReducer(t, a).exposeAction(t, o ? j8(e, o) : j8(e));
52087
+ i.addCase(e, a).exposeCaseReducer(t, a).exposeAction(t, o ? N8(e, o) : N8(e));
52083
52088
  }
52084
- function W8(e) {
52089
+ function K8(e) {
52085
52090
  return e._reducerDefinitionType === "asyncThunk";
52086
52091
  }
52087
- function G8(e) {
52092
+ function q8(e) {
52088
52093
  return e._reducerDefinitionType === "reducerWithPrepare";
52089
52094
  }
52090
- function K8({ type: e, reducerName: t }, n, r, i) {
52091
- if (!i) throw Error(process.env.NODE_ENV === "production" ? t5(18) : "Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");
52095
+ function J8({ type: e, reducerName: t }, n, r, i) {
52096
+ if (!i) throw Error(process.env.NODE_ENV === "production" ? r5(18) : "Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");
52092
52097
  let { payloadCreator: a, fulfilled: o, pending: s, rejected: c, settled: l, options: u } = n, d = i(e, a, u);
52093
52098
  r.exposeAction(t, d), o && r.addCase(d.fulfilled, o), s && r.addCase(d.pending, s), c && r.addCase(d.rejected, c), l && r.addMatcher(d.settled, l), r.exposeCaseReducer(t, {
52094
- fulfilled: o || q8,
52095
- pending: s || q8,
52096
- rejected: c || q8,
52097
- settled: l || q8
52099
+ fulfilled: o || Y8,
52100
+ pending: s || Y8,
52101
+ rejected: c || Y8,
52102
+ settled: l || Y8
52098
52103
  });
52099
52104
  }
52100
- function q8() {}
52101
- var J8 = "listener", Y8 = "completed", X8 = "cancelled";
52102
- `${X8}`, `${Y8}`, `${J8}${X8}`, `${J8}${Y8}`;
52103
- var { assign: Z8 } = Object, Q8 = "listenerMiddleware", $8 = /* @__PURE__ */ Z8(/* @__PURE__ */ j8(`${Q8}/add`), { withTypes: () => $8 });
52104
- `${Q8}`;
52105
- var e5 = /* @__PURE__ */ Z8(/* @__PURE__ */ j8(`${Q8}/remove`), { withTypes: () => e5 });
52106
- function t5(e) {
52105
+ function Y8() {}
52106
+ var X8 = "listener", Z8 = "completed", Q8 = "cancelled";
52107
+ `${Q8}`, `${Z8}`, `${X8}${Q8}`, `${X8}${Z8}`;
52108
+ var { assign: $8 } = Object, e5 = "listenerMiddleware", t5 = /* @__PURE__ */ $8(/* @__PURE__ */ N8(`${e5}/add`), { withTypes: () => t5 });
52109
+ `${e5}`;
52110
+ var n5 = /* @__PURE__ */ $8(/* @__PURE__ */ N8(`${e5}/remove`), { withTypes: () => n5 });
52111
+ function r5(e) {
52107
52112
  return `Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `;
52108
52113
  }
52109
- var n5 = V8({
52114
+ var i5 = U8({
52110
52115
  name: "AppState",
52111
52116
  initialState: { theme: ht.Light },
52112
52117
  reducers: {
@@ -52117,14 +52122,14 @@ var n5 = V8({
52117
52122
  e.language = t;
52118
52123
  }
52119
52124
  }
52120
- }), { updTheme: r5, updLanguage: i5 } = n5.actions;
52121
- n5.reducer;
52125
+ }), { updTheme: a5, updLanguage: o5 } = i5.actions;
52126
+ i5.reducer;
52122
52127
  //#endregion
52123
52128
  //#region src/lib/ThemeModeToggle/index.tsx
52124
- var a5 = ({ className: e }) => {
52129
+ var s5 = ({ className: e }) => {
52125
52130
  let { t } = RK(), n = _Y(), r = vY($J) === ht.Dark, i = u(() => {
52126
52131
  let e = r ? ht.Light : ht.Dark;
52127
- n(r5(e)), gY.set(mt.Theme, e);
52132
+ n(a5(e)), gY.set(mt.Theme, e);
52128
52133
  }, [n, r]);
52129
52134
  return /* @__PURE__ */ S("button", {
52130
52135
  type: "button",
@@ -52150,13 +52155,13 @@ var a5 = ({ className: e }) => {
52150
52155
  })]
52151
52156
  })
52152
52157
  });
52153
- }, o5 = oJ()((e) => /* @__PURE__ */ S(vJ, { children: /* @__PURE__ */ S(a5, { ...e }) })), s5 = (e) => /* @__PURE__ */ S(yJ, {
52154
- fallback: /* @__PURE__ */ S(a5, { ...e }),
52155
- children: /* @__PURE__ */ S(o5, { ...e })
52156
- }), c5 = (e) => /* @__PURE__ */ S(s5, { ...e });
52158
+ }, c5 = oJ()((e) => /* @__PURE__ */ S(vJ, { children: /* @__PURE__ */ S(s5, { ...e }) })), l5 = (e) => /* @__PURE__ */ S(yJ, {
52159
+ fallback: /* @__PURE__ */ S(s5, { ...e }),
52160
+ children: /* @__PURE__ */ S(c5, { ...e })
52161
+ }), u5 = (e) => /* @__PURE__ */ S(l5, { ...e });
52157
52162
  //#endregion
52158
52163
  //#region src/helpers/profileUser.ts
52159
- function l5(e) {
52164
+ function d5(e) {
52160
52165
  return {
52161
52166
  userId: e.userId,
52162
52167
  username: e.username,
@@ -52183,29 +52188,29 @@ function l5(e) {
52183
52188
  }))
52184
52189
  };
52185
52190
  }
52186
- function u5(e, t) {
52191
+ function f5(e, t) {
52187
52192
  return !e?.roleMenuPermissions?.length || !t ? "—" : e.roleMenuPermissions.find((e) => e.idApp === t)?.roleName?.trim() || "—";
52188
52193
  }
52189
52194
  //#endregion
52190
52195
  //#region src/enums/user.ts
52191
- var d5 = /* @__PURE__ */ function(e) {
52196
+ var p5 = /* @__PURE__ */ function(e) {
52192
52197
  return e.FirstName = "firstName", e.LastName = "lastName", e.Username = "username", e.Email = "email", e.ProfilePicture = "profilePicture", e.Password = "password", e.ConfirmPassword = "confirmPassword", e.Apps = "userRolesApp", e.AppId = "idApp", e.RoleId = "roleId", e.Tenants = "tenantId", e.Active = "isActive", e.Private = "isPrivate", e.User = "userId", e.Hierarchy = "hierarchy", e;
52193
- }({}), f5 = /* @__PURE__ */ function(e) {
52198
+ }({}), m5 = /* @__PURE__ */ function(e) {
52194
52199
  return e.Tab1 = "PROFILE", e.Tab2 = "MANAGEMENT", e;
52195
- }({}), p5 = /* @__PURE__ */ function(e) {
52200
+ }({}), h5 = /* @__PURE__ */ function(e) {
52196
52201
  return e[e.GA_USER_EMPTY = 0] = "GA_USER_EMPTY", e[e.GA_EMAIL_EMPTY = 1] = "GA_EMAIL_EMPTY", e[e.GA_USER_ID_EMPTY = 2] = "GA_USER_ID_EMPTY", e[e.GA_PASS_EMPTY = 3] = "GA_PASS_EMPTY", e[e.GA_PASS_NOT_MATCH = 4] = "GA_PASS_NOT_MATCH", e[e.GA_USERNAME_EXISTS = 5] = "GA_USERNAME_EXISTS", e[e.GA_EMAIL_EXISTS = 6] = "GA_EMAIL_EXISTS", e[e.GA_NO_ROLES_APP_DEFINED = 7] = "GA_NO_ROLES_APP_DEFINED", e[e.GA_DUPLICATED_RECORDS_SAME_TENANT_ROLE_APP = 8] = "GA_DUPLICATED_RECORDS_SAME_TENANT_ROLE_APP", e[e.GA_CANNOT_GET_USER_INFO = 9] = "GA_CANNOT_GET_USER_INFO", e[e.GA_ERROR_CHAGING_PASS = 10] = "GA_ERROR_CHAGING_PASS", e[e.GA_NO_TENANTS_ROLES_DEFINDED = 11] = "GA_NO_TENANTS_ROLES_DEFINDED", e[e.GA_PASS_DOES_NOT_MEET_REQUIREMENTS = 12] = "GA_PASS_DOES_NOT_MEET_REQUIREMENTS", e;
52197
- }({}), m5 = async (e, t) => {
52202
+ }({}), g5 = async (e, t) => {
52198
52203
  let n = "GENERAL.MESSAGES";
52199
52204
  return e.then(() => {
52200
52205
  wF.success(zG(`${n}.SUCCESS.USERS`, { context: "UPDATE" })), t && t();
52201
52206
  }).catch(({ response: e }) => {
52202
- let t = p5[e?.data.code];
52207
+ let t = h5[e?.data.code];
52203
52208
  BF.error({
52204
52209
  message: zG(`${n}.ERROR.USERS.${t}`),
52205
52210
  duration: 10
52206
52211
  });
52207
52212
  });
52208
- }, h5 = {
52213
+ }, _5 = {
52209
52214
  prefix: "fas",
52210
52215
  iconName: "user",
52211
52216
  icon: [
@@ -52221,7 +52226,7 @@ var d5 = /* @__PURE__ */ function(e) {
52221
52226
  "f007",
52222
52227
  "M224 248a120 120 0 1 0 0-240 120 120 0 1 0 0 240zm-29.7 56C95.8 304 16 383.8 16 482.3 16 498.7 29.3 512 45.7 512l356.6 0c16.4 0 29.7-13.3 29.7-29.7 0-98.5-79.8-178.3-178.3-178.3l-59.4 0z"
52223
52228
  ]
52224
- }, g5 = "USERS", _5 = () => {
52229
+ }, v5 = "USERS", y5 = () => {
52225
52230
  let { t: e } = RK(), { requiredField: t } = yY();
52226
52231
  return /* @__PURE__ */ C(wI, {
52227
52232
  gutter: 8,
@@ -52229,9 +52234,9 @@ var d5 = /* @__PURE__ */ function(e) {
52229
52234
  /* @__PURE__ */ S(KA, {
52230
52235
  span: 12,
52231
52236
  children: /* @__PURE__ */ S(SY, {
52232
- fieldName: d5.FirstName,
52233
- label: e(`${g5}.FIRST_NAME`),
52234
- placeholder: e(`${g5}.FIRST_NAME`, { context: "PLACEHOLDER" }),
52237
+ fieldName: p5.FirstName,
52238
+ label: e(`${v5}.FIRST_NAME`),
52239
+ placeholder: e(`${v5}.FIRST_NAME`, { context: "PLACEHOLDER" }),
52235
52240
  allowClear: !0,
52236
52241
  rules: t
52237
52242
  })
@@ -52239,9 +52244,9 @@ var d5 = /* @__PURE__ */ function(e) {
52239
52244
  /* @__PURE__ */ S(KA, {
52240
52245
  span: 12,
52241
52246
  children: /* @__PURE__ */ S(SY, {
52242
- fieldName: d5.LastName,
52243
- label: e(`${g5}.LAST_NAME`),
52244
- placeholder: e(`${g5}.LAST_NAME`, { context: "PLACEHOLDER" }),
52247
+ fieldName: p5.LastName,
52248
+ label: e(`${v5}.LAST_NAME`),
52249
+ placeholder: e(`${v5}.LAST_NAME`, { context: "PLACEHOLDER" }),
52245
52250
  allowClear: !0,
52246
52251
  rules: t
52247
52252
  })
@@ -52249,9 +52254,9 @@ var d5 = /* @__PURE__ */ function(e) {
52249
52254
  /* @__PURE__ */ S(KA, {
52250
52255
  span: 12,
52251
52256
  children: /* @__PURE__ */ S(SY, {
52252
- fieldName: d5.Username,
52253
- label: e(`${g5}.USERNAME`),
52254
- placeholder: e(`${g5}.USERNAME`, { context: "PLACEHOLDER" }),
52257
+ fieldName: p5.Username,
52258
+ label: e(`${v5}.USERNAME`),
52259
+ placeholder: e(`${v5}.USERNAME`, { context: "PLACEHOLDER" }),
52255
52260
  allowClear: !0,
52256
52261
  rules: t
52257
52262
  })
@@ -52259,9 +52264,9 @@ var d5 = /* @__PURE__ */ function(e) {
52259
52264
  /* @__PURE__ */ S(KA, {
52260
52265
  span: 12,
52261
52266
  children: /* @__PURE__ */ S(SY, {
52262
- fieldName: d5.Email,
52263
- label: e(`${g5}.EMAIL`),
52264
- placeholder: e(`${g5}.EMAIL`, { context: "PLACEHOLDER" }),
52267
+ fieldName: p5.Email,
52268
+ label: e(`${v5}.EMAIL`),
52269
+ placeholder: e(`${v5}.EMAIL`, { context: "PLACEHOLDER" }),
52265
52270
  allowClear: !0,
52266
52271
  rules: [() => ({ validator(t, n) {
52267
52272
  return !n?.match(EY) || n?.match(DY) || n?.match(OY) ? Promise.reject(Error(e("GENERAL.FORM.ERRORS.EMAIL"))) : Promise.resolve();
@@ -52271,13 +52276,13 @@ var d5 = /* @__PURE__ */ function(e) {
52271
52276
  /* @__PURE__ */ S(KA, {
52272
52277
  span: 12,
52273
52278
  children: /* @__PURE__ */ S(SY, {
52274
- fieldName: d5.Password,
52275
- label: e(`${g5}.PASSWORD`),
52276
- placeholder: e(`${g5}.PASSWORD`, { context: "PLACEHOLDER" }),
52279
+ fieldName: p5.Password,
52280
+ label: e(`${v5}.PASSWORD`),
52281
+ placeholder: e(`${v5}.PASSWORD`, { context: "PLACEHOLDER" }),
52277
52282
  isPassword: !0,
52278
52283
  allowClear: !0,
52279
52284
  tooltip: /* @__PURE__ */ S(jK, {
52280
- i18nKey: `${g5}.PASSWORD_HINT`,
52285
+ i18nKey: `${v5}.PASSWORD_HINT`,
52281
52286
  components: {
52282
52287
  b: /* @__PURE__ */ S("b", {}),
52283
52288
  ul: /* @__PURE__ */ S("ul", {}),
@@ -52289,23 +52294,23 @@ var d5 = /* @__PURE__ */ function(e) {
52289
52294
  /* @__PURE__ */ S(KA, {
52290
52295
  span: 12,
52291
52296
  children: /* @__PURE__ */ S(SY, {
52292
- fieldName: d5.ConfirmPassword,
52293
- label: e(`${g5}.PASSWORD-CONFIRM`),
52294
- placeholder: e(`${g5}.PASSWORD-CONFIRM`, { context: "PLACEHOLDER" }),
52297
+ fieldName: p5.ConfirmPassword,
52298
+ label: e(`${v5}.PASSWORD-CONFIRM`),
52299
+ placeholder: e(`${v5}.PASSWORD-CONFIRM`, { context: "PLACEHOLDER" }),
52295
52300
  isPassword: !0,
52296
52301
  allowClear: !0,
52297
52302
  rules: [({ getFieldValue: t }) => ({ validator(n, r) {
52298
- return !r || t(d5.Password) === r ? Promise.resolve() : Promise.reject(Error(e("GENERAL.FORM.ERRORS.CONFIRM_PASSWORD")));
52303
+ return !r || t(p5.Password) === r ? Promise.resolve() : Promise.reject(Error(e("GENERAL.FORM.ERRORS.CONFIRM_PASSWORD")));
52299
52304
  } })]
52300
52305
  })
52301
52306
  })
52302
52307
  ]
52303
52308
  });
52304
- }, v5 = "USERS", y5 = ({ user: e, appId: t, gauApiUrl: n, isLoading: r, isOpen: i, onCancel: a }) => {
52305
- let { t: o } = RK(), [s] = kM.useForm(), { data: c } = Y3(n, !!(n && t)), l = kM.useWatch(d5.ProfilePicture, s), u = t ? e.userRolesApp.find((e) => e.idApp === t) : void 0, d = _(() => u && c ? c.find((e) => e.idRole === u.roleId) : void 0, [c, u]);
52309
+ }, b5 = "USERS", x5 = ({ user: e, appId: t, gauApiUrl: n, isLoading: r, isOpen: i, onCancel: a }) => {
52310
+ let { t: o } = RK(), [s] = kM.useForm(), { data: c } = Z3(n, !!(n && t)), l = kM.useWatch(p5.ProfilePicture, s), u = t ? e.userRolesApp.find((e) => e.idApp === t) : void 0, d = _(() => u && c ? c.find((e) => e.idRole === u.roleId) : void 0, [c, u]);
52306
52311
  f(() => (e && i && s.setFieldsValue({
52307
52312
  ...e,
52308
- [d5.ProfilePicture]: MY(e.profilePicture)
52313
+ [p5.ProfilePicture]: MY(e.profilePicture)
52309
52314
  }), () => {
52310
52315
  s.resetFields();
52311
52316
  }), [
@@ -52314,32 +52319,32 @@ var d5 = /* @__PURE__ */ function(e) {
52314
52319
  s
52315
52320
  ]);
52316
52321
  let p = (t) => {
52317
- m5(J3(n, {
52322
+ g5(X3(n, {
52318
52323
  ...e,
52319
52324
  ...t,
52320
- [d5.ProfilePicture]: NY(t?.[d5.ProfilePicture])
52325
+ [p5.ProfilePicture]: NY(t?.[p5.ProfilePicture])
52321
52326
  }), a);
52322
52327
  }, m = (e) => {
52323
- e.stopPropagation(), s.setFieldValue(d5.ProfilePicture, void 0);
52328
+ e.stopPropagation(), s.setFieldValue(p5.ProfilePicture, void 0);
52324
52329
  }, h = (e) => (jY(e, (e) => {
52325
- s.setFieldValue(d5.ProfilePicture, e);
52330
+ s.setFieldValue(p5.ProfilePicture, e);
52326
52331
  }), !1), g = /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S(FD, {}), /* @__PURE__ */ S("div", {
52327
52332
  style: { marginTop: 8 },
52328
52333
  children: o("GENERAL.UPLOAD")
52329
52334
  })] }), v = [{
52330
52335
  label: /* @__PURE__ */ C("span", { children: [/* @__PURE__ */ S(F3, {
52331
- icon: h5,
52336
+ icon: _5,
52332
52337
  style: { marginRight: 5 }
52333
- }), o(`${v5}.${f5.Tab1}`)] }),
52334
- key: f5.Tab1,
52335
- children: /* @__PURE__ */ S(_5, {}),
52338
+ }), o(`${b5}.${m5.Tab1}`)] }),
52339
+ key: m5.Tab1,
52340
+ children: /* @__PURE__ */ S(y5, {}),
52336
52341
  forceRender: !0
52337
52342
  }], y = d?.name;
52338
52343
  return /* @__PURE__ */ S(DF, {
52339
52344
  className: "user-modal",
52340
52345
  rootClassName: "user-modal__root",
52341
52346
  title: _(() => {
52342
- let e = o(`${v5}.EDIT`, { context: "USER" });
52347
+ let e = o(`${b5}.EDIT`, { context: "USER" });
52343
52348
  return !t || !y ? e : /* @__PURE__ */ C("div", {
52344
52349
  className: "user-modal__title-wrap",
52345
52350
  children: [/* @__PURE__ */ S("div", {
@@ -52375,14 +52380,14 @@ var d5 = /* @__PURE__ */ function(e) {
52375
52380
  layout: "vertical",
52376
52381
  children: [
52377
52382
  /* @__PURE__ */ C(wI, { children: [/* @__PURE__ */ S(SY, {
52378
- fieldName: d5.User,
52383
+ fieldName: p5.User,
52379
52384
  hidden: !0
52380
52385
  }), /* @__PURE__ */ S(KA, {
52381
52386
  span: 24,
52382
52387
  children: /* @__PURE__ */ S(wI, {
52383
52388
  justify: "center",
52384
52389
  children: /* @__PURE__ */ S(kM.Item, {
52385
- name: d5.ProfilePicture,
52390
+ name: p5.ProfilePicture,
52386
52391
  children: /* @__PURE__ */ S(RU, {
52387
52392
  listType: "picture-circle",
52388
52393
  className: "avatar-uploader",
@@ -52398,7 +52403,7 @@ var d5 = /* @__PURE__ */ function(e) {
52398
52403
  children: [/* @__PURE__ */ S(hw, {
52399
52404
  src: l,
52400
52405
  size: "small",
52401
- alt: o(`${v5}.AVATAR_ALT`),
52406
+ alt: o(`${b5}.AVATAR_ALT`),
52402
52407
  style: {
52403
52408
  height: "100%",
52404
52409
  width: "100%"
@@ -52420,7 +52425,7 @@ var d5 = /* @__PURE__ */ function(e) {
52420
52425
  })
52421
52426
  })] }),
52422
52427
  /* @__PURE__ */ S(LO, {
52423
- defaultActiveKey: f5.Tab1,
52428
+ defaultActiveKey: m5.Tab1,
52424
52429
  type: "card",
52425
52430
  size: "small",
52426
52431
  items: v
@@ -52433,26 +52438,26 @@ var d5 = /* @__PURE__ */ function(e) {
52433
52438
  children: /* @__PURE__ */ C(Sj, { children: [/* @__PURE__ */ S(jE, {
52434
52439
  icon: /* @__PURE__ */ S(Ac, {}),
52435
52440
  onClick: a,
52436
- children: o(`${v5}.CANCEL`)
52441
+ children: o(`${b5}.CANCEL`)
52437
52442
  }), /* @__PURE__ */ S(jE, {
52438
52443
  type: "primary",
52439
52444
  htmlType: "submit",
52440
52445
  icon: /* @__PURE__ */ S(KJ, {}),
52441
52446
  loading: r,
52442
- children: o(`${v5}.SUBMIT`)
52447
+ children: o(`${b5}.SUBMIT`)
52443
52448
  })] })
52444
52449
  })
52445
52450
  }) })
52446
52451
  ]
52447
52452
  })
52448
52453
  });
52449
- }, { Text: b5 } = WH;
52450
- function x5(e) {
52454
+ }, { Text: S5 } = WH;
52455
+ function C5(e) {
52451
52456
  let t = e.lastName?.trim() ? ` ${e.lastName.trim()}` : "";
52452
52457
  return `${e.firstName?.trim() ?? ""}${t}`.trim() || e.username;
52453
52458
  }
52454
- var S5 = "__aquasis_fe_components__edit_profile", C5 = "__aquasis_fe_components__fullscreen", w5 = "PROFILE.EDIT_PROFILE", T5 = "PROFILE.FULLSCREEN", E5 = "PROFILE.EXIT_FULLSCREEN", D5 = "PROFILE.MORE_ACTIONS_ARIA", O5 = "PROFILE.LOGOUT";
52455
- async function k5() {
52459
+ var w5 = "__aquasis_fe_components__edit_profile", T5 = "__aquasis_fe_components__fullscreen", E5 = "PROFILE.EDIT_PROFILE", D5 = "PROFILE.FULLSCREEN", O5 = "PROFILE.EXIT_FULLSCREEN", k5 = "PROFILE.MORE_ACTIONS_ARIA", A5 = "PROFILE.LOGOUT";
52460
+ async function j5() {
52456
52461
  let e = document.documentElement, t = document, n = !!(document.fullscreenElement ?? t.webkitFullscreenElement);
52457
52462
  try {
52458
52463
  if (n) {
@@ -52464,64 +52469,76 @@ async function k5() {
52464
52469
  console.error("[ProfileChip] Fullscreen toggle failed", e);
52465
52470
  }
52466
52471
  }
52467
- function A5() {
52472
+ function M5() {
52468
52473
  let e = document;
52469
52474
  return !!(document.fullscreenElement ?? e.webkitFullscreenElement);
52470
52475
  }
52471
- function j5({ coreApiBaseUrl: e, gauApiUrl: t, appId: n, editProfileMenuLabelKey: r = w5, fullscreenLabelKey: i = T5, exitFullscreenLabelKey: a = E5, extraMenuItems: o, moreActionsAriaLabelKey: s = D5, logoutLabelKey: c = O5, onLogout: l, renderUserModal: d, children: p }) {
52472
- let { t: m } = RK(), [h, g] = y(!1), [v, b] = y(!1), [w, T] = y(!1), E = vY($J) === ht.Dark, D = mY(mt.UserID), { data: O, isPending: k, isFetching: A } = Z3(e), j = !!e && (k || A), M = _(() => {
52473
- let e = n ?? AY();
52476
+ function N5({ gauApiUrl: e, appId: t, extraMenuItems: n, onLogout: r, renderUserModal: i, children: a }) {
52477
+ let { t: o } = RK(), [s, c] = y(!1), [l, d] = y(!1), [p, m] = y(!1), [h, g] = y(!1), v = vY($J) === ht.Dark, b = mY(mt.UserID), { data: w, isPending: T, isFetching: E } = $3(e), D = !!e && (T || E), O = u(async () => {
52478
+ if (!(!e || !b)) {
52479
+ g(!0);
52480
+ try {
52481
+ await Y3(e, b), r?.();
52482
+ } catch (e) {
52483
+ console.error("[ProfileChip] Logout request failed", e);
52484
+ } finally {
52485
+ g(!1);
52486
+ }
52487
+ }
52488
+ }, [
52489
+ e,
52490
+ b,
52491
+ r
52492
+ ]), k = _(() => {
52493
+ let e = t ?? AY();
52474
52494
  return typeof e == "string" && e.trim() ? e : void 0;
52475
- }, [n]), N = _(() => O ? x5(O) : "", [O]), P = _(() => u5(O, M), [O, M]), F = _(() => {
52476
- if (!(!O?.profilePicture || O.profilePicture.length <= 8)) return MY(O.profilePicture) ?? void 0;
52477
- }, [O]), I = _(() => {
52478
- if (!O) return "";
52479
- let e = O.lastName ? O.lastName.charAt(0) : O.firstName?.charAt(1);
52480
- return `${O.firstName?.charAt(0) ?? ""}${e ?? ""}`;
52481
- }, [O]);
52495
+ }, [t]), A = _(() => w ? C5(w) : "", [w]), j = _(() => f5(w, k), [w, k]), M = _(() => {
52496
+ if (!(!w?.profilePicture || w.profilePicture.length <= 8)) return MY(w.profilePicture) ?? void 0;
52497
+ }, [w]), N = _(() => {
52498
+ if (!w) return "";
52499
+ let e = w.lastName ? w.lastName.charAt(0) : w.firstName?.charAt(1);
52500
+ return `${w.firstName?.charAt(0) ?? ""}${e ?? ""}`;
52501
+ }, [w]);
52482
52502
  f(() => {
52483
- let e = () => T(A5());
52503
+ let e = () => m(M5());
52484
52504
  return e(), document.addEventListener("fullscreenchange", e), document.addEventListener("webkitfullscreenchange", e), () => {
52485
52505
  document.removeEventListener("fullscreenchange", e), document.removeEventListener("webkitfullscreenchange", e);
52486
52506
  };
52487
52507
  }, []);
52488
- let L = u(() => {
52489
- k5();
52490
- }, []), R = _(() => (o ?? []).filter(Boolean), [o]), z = _(() => {
52508
+ let P = u(() => {
52509
+ j5();
52510
+ }, []), F = _(() => (n ?? []).filter(Boolean), [n]), I = _(() => {
52491
52511
  let e = [{
52492
- key: S5,
52512
+ key: w5,
52493
52513
  icon: /* @__PURE__ */ S(QJ, {}),
52494
- label: m(r),
52514
+ label: o(E5),
52495
52515
  onClick: () => {
52496
- g(!1), b(!0);
52516
+ c(!1), d(!0);
52497
52517
  }
52498
52518
  }, {
52499
- key: C5,
52500
- icon: S(w ? OJ : jJ, {}),
52501
- label: m(w ? a : i),
52502
- onClick: L
52519
+ key: T5,
52520
+ icon: S(p ? OJ : jJ, {}),
52521
+ label: o(p ? O5 : D5),
52522
+ onClick: P
52503
52523
  }];
52504
- if (!R.length) return e;
52524
+ if (!F.length) return e;
52505
52525
  let t = { type: "divider" };
52506
52526
  return [
52507
52527
  ...e,
52508
52528
  t,
52509
- ...R
52529
+ ...F
52510
52530
  ];
52511
52531
  }, [
52512
- m,
52513
- r,
52514
- i,
52515
- a,
52516
- w,
52517
- R,
52518
- L
52519
- ]), B = _(() => ({
52520
- items: z,
52532
+ o,
52533
+ p,
52534
+ F,
52535
+ P
52536
+ ]), L = _(() => ({
52537
+ items: I,
52521
52538
  className: "profile-chip__ant-menu"
52522
- }), [z]);
52523
- if (!D) return null;
52524
- if (j) return /* @__PURE__ */ C("div", {
52539
+ }), [I]);
52540
+ if (!b) return null;
52541
+ if (D) return /* @__PURE__ */ C("div", {
52525
52542
  className: "profile-chip profile-chip--loading",
52526
52543
  "aria-busy": !0,
52527
52544
  children: [/* @__PURE__ */ S(iy.Avatar, {
@@ -52541,13 +52558,13 @@ function j5({ coreApiBaseUrl: e, gauApiUrl: t, appId: n, editProfileMenuLabelKey
52541
52558
  })]
52542
52559
  })]
52543
52560
  });
52544
- if (!O) return null;
52545
- let V = {
52546
- gauApiUrl: t,
52547
- appId: M,
52548
- user: l5(O),
52549
- isOpen: v,
52550
- onCancel: () => b(!1)
52561
+ if (!w) return null;
52562
+ let R = {
52563
+ gauApiUrl: e,
52564
+ appId: k,
52565
+ user: d5(w),
52566
+ isOpen: l,
52567
+ onCancel: () => d(!1)
52551
52568
  };
52552
52569
  return /* @__PURE__ */ C(x, { children: [
52553
52570
  /* @__PURE__ */ C("div", {
@@ -52556,8 +52573,8 @@ function j5({ coreApiBaseUrl: e, gauApiUrl: t, appId: n, editProfileMenuLabelKey
52556
52573
  /* @__PURE__ */ C("div", {
52557
52574
  className: "profile-chip__left",
52558
52575
  children: [
52559
- F ? /* @__PURE__ */ S(hw, {
52560
- src: F,
52576
+ M ? /* @__PURE__ */ S(hw, {
52577
+ src: M,
52561
52578
  shape: "square",
52562
52579
  size: 48,
52563
52580
  className: "profile-chip__avatar"
@@ -52566,46 +52583,46 @@ function j5({ coreApiBaseUrl: e, gauApiUrl: t, appId: n, editProfileMenuLabelKey
52566
52583
  size: 48,
52567
52584
  className: "profile-chip__avatar",
52568
52585
  style: { textTransform: "uppercase" },
52569
- children: I
52586
+ children: N
52570
52587
  }),
52571
52588
  /* @__PURE__ */ C("div", {
52572
52589
  className: "profile-chip__meta",
52573
52590
  children: [
52574
- /* @__PURE__ */ S(b5, {
52591
+ /* @__PURE__ */ S(S5, {
52575
52592
  className: "profile-chip__name",
52576
52593
  ellipsis: !0,
52577
- children: N
52594
+ children: A
52578
52595
  }),
52579
- /* @__PURE__ */ S(b5, {
52596
+ /* @__PURE__ */ S(S5, {
52580
52597
  type: "secondary",
52581
52598
  className: "profile-chip__email",
52582
52599
  ellipsis: !0,
52583
- children: O.email
52600
+ children: w.email
52584
52601
  }),
52585
52602
  /* @__PURE__ */ S(NV, {
52586
52603
  variant: "filled",
52587
52604
  color: "cyan",
52588
52605
  className: "profile-chip__role",
52589
- children: P
52606
+ children: j
52590
52607
  })
52591
52608
  ]
52592
52609
  }),
52593
52610
  /* @__PURE__ */ S(wj, {
52594
52611
  trigger: ["click"],
52595
52612
  placement: "bottomRight",
52596
- open: h,
52597
- onOpenChange: g,
52598
- menu: B,
52613
+ open: s,
52614
+ onOpenChange: c,
52615
+ menu: L,
52599
52616
  popupRender: (e) => /* @__PURE__ */ S("div", {
52600
- className: (0, bY.default)("profile-chip__panel", E && "profile-chip__panel--dark"),
52617
+ className: (0, bY.default)("profile-chip__panel", v && "profile-chip__panel--dark"),
52601
52618
  children: e
52602
52619
  }),
52603
52620
  children: /* @__PURE__ */ S(jE, {
52604
52621
  type: "text",
52605
52622
  size: "small",
52606
52623
  icon: /* @__PURE__ */ S(iE, {}),
52607
- className: (0, bY.default)("profile-chip__more", E && "profile-chip__more--dark"),
52608
- "aria-label": m(s)
52624
+ className: (0, bY.default)("profile-chip__more", v && "profile-chip__more--dark"),
52625
+ "aria-label": o(k5)
52609
52626
  })
52610
52627
  })
52611
52628
  ]
@@ -52618,25 +52635,27 @@ function j5({ coreApiBaseUrl: e, gauApiUrl: t, appId: n, editProfileMenuLabelKey
52618
52635
  type: "text",
52619
52636
  className: "profile-chip__logout",
52620
52637
  icon: /* @__PURE__ */ S(BJ, {}),
52621
- onClick: l,
52622
- children: m(c)
52638
+ loading: h,
52639
+ disabled: h,
52640
+ onClick: () => void O(),
52641
+ children: o(A5)
52623
52642
  })
52624
52643
  ]
52625
52644
  }),
52626
- d ? d(V) : /* @__PURE__ */ S(y5, { ...V }),
52627
- typeof p == "function" ? p({ user: O }) : null
52645
+ i ? i(R) : /* @__PURE__ */ S(x5, { ...R }),
52646
+ typeof a == "function" ? a({ user: w }) : null
52628
52647
  ] });
52629
52648
  }
52630
- var M5 = oJ()((e) => /* @__PURE__ */ S(vJ, { children: /* @__PURE__ */ S(j5, { ...e }) })), N5 = (e) => /* @__PURE__ */ S(yJ, {
52631
- fallback: /* @__PURE__ */ S(j5, { ...e }),
52632
- children: /* @__PURE__ */ S(M5, { ...e })
52633
- }), P5 = oJ()((e) => /* @__PURE__ */ S(vJ, { children: /* @__PURE__ */ S(y5, { ...e }) })), F5 = (e) => /* @__PURE__ */ S(yJ, {
52634
- fallback: /* @__PURE__ */ S(y5, { ...e }),
52649
+ var P5 = oJ()((e) => /* @__PURE__ */ S(vJ, { children: /* @__PURE__ */ S(N5, { ...e }) })), F5 = (e) => /* @__PURE__ */ S(yJ, {
52650
+ fallback: /* @__PURE__ */ S(N5, { ...e }),
52635
52651
  children: /* @__PURE__ */ S(P5, { ...e })
52636
- }), I5 = (e) => /* @__PURE__ */ S(F5, { ...e });
52652
+ }), I5 = oJ()((e) => /* @__PURE__ */ S(vJ, { children: /* @__PURE__ */ S(x5, { ...e }) })), L5 = (e) => /* @__PURE__ */ S(yJ, {
52653
+ fallback: /* @__PURE__ */ S(x5, { ...e }),
52654
+ children: /* @__PURE__ */ S(I5, { ...e })
52655
+ }), R5 = (e) => /* @__PURE__ */ S(L5, { ...e });
52637
52656
  //#endregion
52638
52657
  //#region src/lib/WhatsNews/useElementSize.ts
52639
- function L5(e) {
52658
+ function z5(e) {
52640
52659
  let [t, n] = y(0);
52641
52660
  return f(() => {
52642
52661
  let t = e.current;
@@ -52650,8 +52669,8 @@ function L5(e) {
52650
52669
  }
52651
52670
  //#endregion
52652
52671
  //#region src/lib/WhatsNews/index.tsx
52653
- var { Title: R5, Text: z5 } = WH, B5 = ({ releaseNotes: e, currentApp: t, userId: n, onDoNotShowAgain: r, formatImageSrc: i = MY, dateFormat: a = TY }) => {
52654
- let [o, s] = y(!1), [c, l] = y(!1), [u, d] = y(0), { t: p } = RK(), m = v(null), h = v(null), g = L5(h), _ = e?.[0];
52672
+ var { Title: B5, Text: V5 } = WH, H5 = ({ releaseNotes: e, currentApp: t, userId: n, onDoNotShowAgain: r, formatImageSrc: i = MY, dateFormat: a = TY }) => {
52673
+ let [o, s] = y(!1), [c, l] = y(!1), [u, d] = y(0), { t: p } = RK(), m = v(null), h = v(null), g = z5(h), _ = e?.[0];
52655
52674
  f(() => {
52656
52675
  if (e?.length && e[0].gaReleasePages?.length) {
52657
52676
  let t = e[0];
@@ -52725,10 +52744,10 @@ var { Title: R5, Text: z5 } = WH, B5 = ({ releaseNotes: e, currentApp: t, userId
52725
52744
  vertical: !0,
52726
52745
  children: (e ?? []).map(({ title: e, description: t }, r) => /* @__PURE__ */ C(Rj, {
52727
52746
  vertical: !0,
52728
- children: [/* @__PURE__ */ S(R5, {
52747
+ children: [/* @__PURE__ */ S(B5, {
52729
52748
  level: 5,
52730
52749
  children: e
52731
- }), /* @__PURE__ */ S(z5, {
52750
+ }), /* @__PURE__ */ S(V5, {
52732
52751
  style: {
52733
52752
  opacity: .5,
52734
52753
  whiteSpace: "pre-wrap"
@@ -52770,16 +52789,16 @@ var { Title: R5, Text: z5 } = WH, B5 = ({ releaseNotes: e, currentApp: t, userId
52770
52789
  })
52771
52790
  })
52772
52791
  });
52773
- }, V5 = oJ()((e) => /* @__PURE__ */ S(vJ, { children: /* @__PURE__ */ S(B5, { ...e }) })), H5 = (e) => /* @__PURE__ */ S(yJ, {
52774
- fallback: /* @__PURE__ */ S(B5, { ...e }),
52775
- children: /* @__PURE__ */ S(V5, { ...e })
52776
- }), U5 = (e) => /* @__PURE__ */ S(H5, { ...e }), { slice: W5, forEach: G5 } = [];
52777
- function K5(e) {
52778
- return G5.call(W5.call(arguments, 1), (t) => {
52792
+ }, U5 = oJ()((e) => /* @__PURE__ */ S(vJ, { children: /* @__PURE__ */ S(H5, { ...e }) })), W5 = (e) => /* @__PURE__ */ S(yJ, {
52793
+ fallback: /* @__PURE__ */ S(H5, { ...e }),
52794
+ children: /* @__PURE__ */ S(U5, { ...e })
52795
+ }), G5 = (e) => /* @__PURE__ */ S(W5, { ...e }), { slice: K5, forEach: q5 } = [];
52796
+ function J5(e) {
52797
+ return q5.call(K5.call(arguments, 1), (t) => {
52779
52798
  if (t) for (let n in t) e[n] === void 0 && (e[n] = t[n]);
52780
52799
  }), e;
52781
52800
  }
52782
- function q5(e) {
52801
+ function Y5(e) {
52783
52802
  return typeof e == "string" ? [
52784
52803
  /<\s*script.*?>/i,
52785
52804
  /<\s*\/\s*script\s*>/i,
@@ -52796,7 +52815,7 @@ function q5(e) {
52796
52815
  /innerHTML/i
52797
52816
  ].some((t) => t.test(e)) : !1;
52798
52817
  }
52799
- var J5 = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Y5 = function(e, t) {
52818
+ var X5 = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Z5 = function(e, t) {
52800
52819
  let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : { path: "/" }, r = `${e}=${encodeURIComponent(t)}`;
52801
52820
  if (n.maxAge > 0) {
52802
52821
  let e = n.maxAge - 0;
@@ -52804,11 +52823,11 @@ var J5 = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Y5 = function(e, t) {
52804
52823
  r += `; Max-Age=${Math.floor(e)}`;
52805
52824
  }
52806
52825
  if (n.domain) {
52807
- if (!J5.test(n.domain)) throw TypeError("option domain is invalid");
52826
+ if (!X5.test(n.domain)) throw TypeError("option domain is invalid");
52808
52827
  r += `; Domain=${n.domain}`;
52809
52828
  }
52810
52829
  if (n.path) {
52811
- if (!J5.test(n.path)) throw TypeError("option path is invalid");
52830
+ if (!X5.test(n.path)) throw TypeError("option path is invalid");
52812
52831
  r += `; Path=${n.path}`;
52813
52832
  }
52814
52833
  if (n.expires) {
@@ -52831,13 +52850,13 @@ var J5 = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Y5 = function(e, t) {
52831
52850
  default: throw TypeError("option sameSite is invalid");
52832
52851
  }
52833
52852
  return n.partitioned && (r += "; Partitioned"), r;
52834
- }, X5 = {
52853
+ }, Q5 = {
52835
52854
  create(e, t, n, r) {
52836
52855
  let i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
52837
52856
  path: "/",
52838
52857
  sameSite: "strict"
52839
52858
  };
52840
- n && (i.expires = /* @__PURE__ */ new Date(), i.expires.setTime(i.expires.getTime() + n * 60 * 1e3)), r && (i.domain = r), document.cookie = Y5(e, t, i);
52859
+ n && (i.expires = /* @__PURE__ */ new Date(), i.expires.setTime(i.expires.getTime() + n * 60 * 1e3)), r && (i.domain = r), document.cookie = Z5(e, t, i);
52841
52860
  },
52842
52861
  read(e) {
52843
52862
  let t = `${e}=`, n = document.cookie.split(";");
@@ -52851,17 +52870,17 @@ var J5 = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Y5 = function(e, t) {
52851
52870
  remove(e, t) {
52852
52871
  this.create(e, "", -1, t);
52853
52872
  }
52854
- }, Z5 = {
52873
+ }, $5 = {
52855
52874
  name: "cookie",
52856
52875
  lookup(e) {
52857
52876
  let { lookupCookie: t } = e;
52858
- if (t && typeof document < "u") return X5.read(t) || void 0;
52877
+ if (t && typeof document < "u") return Q5.read(t) || void 0;
52859
52878
  },
52860
52879
  cacheUserLanguage(e, t) {
52861
52880
  let { lookupCookie: n, cookieMinutes: r, cookieDomain: i, cookieOptions: a } = t;
52862
- n && typeof document < "u" && X5.create(n, e, r, i, a);
52881
+ n && typeof document < "u" && Q5.create(n, e, r, i, a);
52863
52882
  }
52864
- }, Q5 = {
52883
+ }, e7 = {
52865
52884
  name: "querystring",
52866
52885
  lookup(e) {
52867
52886
  let { lookupQuerystring: t } = e, n;
@@ -52876,7 +52895,7 @@ var J5 = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Y5 = function(e, t) {
52876
52895
  }
52877
52896
  return n;
52878
52897
  }
52879
- }, $5 = {
52898
+ }, t7 = {
52880
52899
  name: "hash",
52881
52900
  lookup(e) {
52882
52901
  let { lookupHash: t, lookupFromHashIndex: n } = e, r;
@@ -52900,47 +52919,47 @@ var J5 = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Y5 = function(e, t) {
52900
52919
  }
52901
52920
  return r;
52902
52921
  }
52903
- }, e7 = null, t7 = () => {
52904
- if (e7 !== null) return e7;
52922
+ }, n7 = null, r7 = () => {
52923
+ if (n7 !== null) return n7;
52905
52924
  try {
52906
- if (e7 = typeof window < "u" && window.localStorage !== null, !e7) return !1;
52925
+ if (n7 = typeof window < "u" && window.localStorage !== null, !n7) return !1;
52907
52926
  let e = "i18next.translate.boo";
52908
52927
  window.localStorage.setItem(e, "foo"), window.localStorage.removeItem(e);
52909
52928
  } catch {
52910
- e7 = !1;
52929
+ n7 = !1;
52911
52930
  }
52912
- return e7;
52913
- }, n7 = {
52931
+ return n7;
52932
+ }, i7 = {
52914
52933
  name: "localStorage",
52915
52934
  lookup(e) {
52916
52935
  let { lookupLocalStorage: t } = e;
52917
- if (t && t7()) return window.localStorage.getItem(t) || void 0;
52936
+ if (t && r7()) return window.localStorage.getItem(t) || void 0;
52918
52937
  },
52919
52938
  cacheUserLanguage(e, t) {
52920
52939
  let { lookupLocalStorage: n } = t;
52921
- n && t7() && window.localStorage.setItem(n, e);
52940
+ n && r7() && window.localStorage.setItem(n, e);
52922
52941
  }
52923
- }, r7 = null, i7 = () => {
52924
- if (r7 !== null) return r7;
52942
+ }, a7 = null, o7 = () => {
52943
+ if (a7 !== null) return a7;
52925
52944
  try {
52926
- if (r7 = typeof window < "u" && window.sessionStorage !== null, !r7) return !1;
52945
+ if (a7 = typeof window < "u" && window.sessionStorage !== null, !a7) return !1;
52927
52946
  let e = "i18next.translate.boo";
52928
52947
  window.sessionStorage.setItem(e, "foo"), window.sessionStorage.removeItem(e);
52929
52948
  } catch {
52930
- r7 = !1;
52949
+ a7 = !1;
52931
52950
  }
52932
- return r7;
52933
- }, a7 = {
52951
+ return a7;
52952
+ }, s7 = {
52934
52953
  name: "sessionStorage",
52935
52954
  lookup(e) {
52936
52955
  let { lookupSessionStorage: t } = e;
52937
- if (t && i7()) return window.sessionStorage.getItem(t) || void 0;
52956
+ if (t && o7()) return window.sessionStorage.getItem(t) || void 0;
52938
52957
  },
52939
52958
  cacheUserLanguage(e, t) {
52940
52959
  let { lookupSessionStorage: n } = t;
52941
- n && i7() && window.sessionStorage.setItem(n, e);
52960
+ n && o7() && window.sessionStorage.setItem(n, e);
52942
52961
  }
52943
- }, o7 = {
52962
+ }, c7 = {
52944
52963
  name: "navigator",
52945
52964
  lookup(e) {
52946
52965
  let t = [];
@@ -52951,13 +52970,13 @@ var J5 = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Y5 = function(e, t) {
52951
52970
  }
52952
52971
  return t.length > 0 ? t : void 0;
52953
52972
  }
52954
- }, s7 = {
52973
+ }, l7 = {
52955
52974
  name: "htmlTag",
52956
52975
  lookup(e) {
52957
52976
  let { htmlTag: t } = e, n, r = t || (typeof document < "u" ? document.documentElement : null);
52958
52977
  return r && typeof r.getAttribute == "function" && (n = r.getAttribute("lang")), n;
52959
52978
  }
52960
- }, c7 = {
52979
+ }, u7 = {
52961
52980
  name: "path",
52962
52981
  lookup(e) {
52963
52982
  let { lookupFromPathIndex: t } = e;
@@ -52965,17 +52984,17 @@ var J5 = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Y5 = function(e, t) {
52965
52984
  let n = window.location.pathname.match(/\/([a-zA-Z-]*)/g);
52966
52985
  if (Array.isArray(n)) return n[typeof t == "number" ? t : 0]?.replace("/", "");
52967
52986
  }
52968
- }, l7 = {
52987
+ }, d7 = {
52969
52988
  name: "subdomain",
52970
52989
  lookup(e) {
52971
52990
  let { lookupFromSubdomainIndex: t } = e, n = typeof t == "number" ? t + 1 : 1, r = typeof window < "u" && window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);
52972
52991
  if (r) return r[n];
52973
52992
  }
52974
- }, u7 = !1;
52993
+ }, f7 = !1;
52975
52994
  try {
52976
- document.cookie, u7 = !0;
52995
+ document.cookie, f7 = !0;
52977
52996
  } catch {}
52978
- var d7 = [
52997
+ var p7 = [
52979
52998
  "querystring",
52980
52999
  "cookie",
52981
53000
  "localStorage",
@@ -52983,9 +53002,9 @@ var d7 = [
52983
53002
  "navigator",
52984
53003
  "htmlTag"
52985
53004
  ];
52986
- u7 || d7.splice(1, 1);
52987
- var f7 = () => ({
52988
- order: d7,
53005
+ f7 || p7.splice(1, 1);
53006
+ var m7 = () => ({
53007
+ order: p7,
52989
53008
  lookupQuerystring: "lng",
52990
53009
  lookupCookie: "i18next",
52991
53010
  lookupLocalStorage: "i18nextLng",
@@ -52993,14 +53012,14 @@ var f7 = () => ({
52993
53012
  caches: ["localStorage"],
52994
53013
  excludeCacheFor: ["cimode"],
52995
53014
  convertDetectedLanguage: (e) => e
52996
- }), p7 = class {
53015
+ }), h7 = class {
52997
53016
  constructor(e) {
52998
53017
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
52999
53018
  this.type = "languageDetector", this.detectors = {}, this.init(e, t);
53000
53019
  }
53001
53020
  init() {
53002
53021
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : { languageUtils: {} }, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
53003
- this.services = e, this.options = K5(t, this.options || {}, f7()), typeof this.options.convertDetectedLanguage == "string" && this.options.convertDetectedLanguage.indexOf("15897") > -1 && (this.options.convertDetectedLanguage = (e) => e.replace("-", "_")), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = n, this.addDetector(Z5), this.addDetector(Q5), this.addDetector(n7), this.addDetector(a7), this.addDetector(o7), this.addDetector(s7), this.addDetector(c7), this.addDetector(l7), this.addDetector($5);
53022
+ this.services = e, this.options = J5(t, this.options || {}, m7()), typeof this.options.convertDetectedLanguage == "string" && this.options.convertDetectedLanguage.indexOf("15897") > -1 && (this.options.convertDetectedLanguage = (e) => e.replace("-", "_")), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = n, this.addDetector($5), this.addDetector(e7), this.addDetector(i7), this.addDetector(s7), this.addDetector(c7), this.addDetector(l7), this.addDetector(u7), this.addDetector(d7), this.addDetector(t7);
53004
53023
  }
53005
53024
  addDetector(e) {
53006
53025
  return this.detectors[e.name] = e, this;
@@ -53012,7 +53031,7 @@ var f7 = () => ({
53012
53031
  let n = this.detectors[e].lookup(this.options);
53013
53032
  n && typeof n == "string" && (n = [n]), n && (t = t.concat(n));
53014
53033
  }
53015
- }), t = t.filter((e) => e != null && !q5(e)).map((e) => this.options.convertDetectedLanguage(e)), this.services && this.services.languageUtils && this.services.languageUtils.getBestMatchFromCodes ? t : t.length > 0 ? t[0] : null;
53034
+ }), t = t.filter((e) => e != null && !Y5(e)).map((e) => this.options.convertDetectedLanguage(e)), this.services && this.services.languageUtils && this.services.languageUtils.getBestMatchFromCodes ? t : t.length > 0 ? t[0] : null;
53016
53035
  }
53017
53036
  cacheUserLanguage(e) {
53018
53037
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.options.caches;
@@ -53023,7 +53042,7 @@ var f7 = () => ({
53023
53042
  };
53024
53043
  //#endregion
53025
53044
  //#region src/i18n/index.ts
53026
- p7.type = "languageDetector", RG.use(p7).use(OK).init({
53045
+ h7.type = "languageDetector", RG.use(h7).use(OK).init({
53027
53046
  debug: !1,
53028
53047
  fallbackLng: "PT",
53029
53048
  interpolation: { escapeValue: !1 },
@@ -53948,6 +53967,6 @@ p7.type = "languageDetector", RG.use(p7).use(OK).init({
53948
53967
  } }
53949
53968
  }
53950
53969
  });
53951
- var m7 = RG;
53970
+ var g7 = RG;
53952
53971
  //#endregion
53953
- export { U3 as Helpdesk, a6 as LanguageSwitcher, N5 as ProfileChipComponent, c5 as ThemeModeToggle, I5 as UserModal, U5 as WhatsNews, iY as clearAquasisApiContext, rY as getAquasisApiContext, m7 as i18n, nY as replaceAquasisApiContext, tY as setAquasisApiContext, Z3 as useGetProfileUser };
53972
+ export { U3 as Helpdesk, s6 as LanguageSwitcher, F5 as ProfileChipComponent, u5 as ThemeModeToggle, R5 as UserModal, G5 as WhatsNews, iY as clearAquasisApiContext, rY as getAquasisApiContext, g7 as i18n, nY as replaceAquasisApiContext, tY as setAquasisApiContext, $3 as useGetProfileUser };