aquasis-fe-components 3.2.0-beta.2 → 3.2.0-beta.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.
@@ -51072,22 +51072,36 @@ var { Title: w3 } = WH, T3 = "HELPDESK.FORM", E3 = "GENERAL.MESSAGES", D3 = ({ o
51072
51072
  }, P3 = async (e) => {
51073
51073
  let { data: t } = await TQ.get(`${e}/getRoles`);
51074
51074
  return t;
51075
- }, F3 = (e, t = !0) => pt({
51075
+ }, F3 = async (e, t) => {
51076
+ let n = e.endsWith("/") ? e : `${e}/`, { data: r } = await TQ.get(`${n}getUser`, { params: { userId: t } });
51077
+ return r;
51078
+ }, I3 = async (e, t) => await TQ.post(`${e}/maintainUser`, t), L3 = (e, t = !0) => pt({
51076
51079
  queryKey: [M3.GetRoles, e],
51077
51080
  queryFn: async () => await P3(e),
51078
51081
  enabled: !!e && t
51079
- }), I3 = (e) => pt({
51082
+ }), R3 = (e) => pt({
51080
51083
  queryKey: [M3.GetLanguages, e],
51081
51084
  queryFn: async () => await N3(e),
51082
51085
  enabled: !!e
51083
- }), L3 = {
51086
+ }), z3 = (e) => {
51087
+ let t = vY(), n = nY(mt.Token), r = nY(mt.UserID), i = !!(e && t && n && r);
51088
+ return pt({
51089
+ queryKey: [
51090
+ M3.GetUser,
51091
+ e,
51092
+ r
51093
+ ],
51094
+ queryFn: async () => await F3(e, r),
51095
+ enabled: i
51096
+ });
51097
+ }, B3 = {
51084
51098
  EN: "🇬🇧",
51085
51099
  PT: "🇵🇹",
51086
51100
  BR: "🇧🇷",
51087
51101
  ES: "🇪🇸",
51088
51102
  RO: "🇷🇴",
51089
51103
  JP: "🇯🇵"
51090
- }, R3 = {
51104
+ }, V3 = {
51091
51105
  EN: "English",
51092
51106
  PT: "Português (PT)",
51093
51107
  BR: "Português (BR)",
@@ -51095,7 +51109,7 @@ var { Title: w3 } = WH, T3 = "HELPDESK.FORM", E3 = "GENERAL.MESSAGES", D3 = ({ o
51095
51109
  RO: "Română",
51096
51110
  JP: "日本語"
51097
51111
  };
51098
- function z3(e) {
51112
+ function H3(e) {
51099
51113
  let t = String(e || "EN").toUpperCase();
51100
51114
  return [
51101
51115
  "EN",
@@ -51106,13 +51120,13 @@ function z3(e) {
51106
51120
  "JP"
51107
51121
  ].includes(t) ? t : "EN";
51108
51122
  }
51109
- function B3(e) {
51110
- return R3[z3(e)];
51123
+ function U3(e) {
51124
+ return V3[H3(e)];
51111
51125
  }
51112
51126
  //#endregion
51113
51127
  //#region src/lib/LanguageSwitcher/index.tsx
51114
- var V3 = ({ code: e, flagSrc: t, size: n = "md" }) => {
51115
- let [r, i] = y(!1), a = L3[z3(e)], o = n === "sm";
51128
+ var W3 = ({ code: e, flagSrc: t, size: n = "md" }) => {
51129
+ let [r, i] = y(!1), a = B3[H3(e)], o = n === "sm";
51116
51130
  return !t || r ? /* @__PURE__ */ S("span", {
51117
51131
  className: (0, cY.default)("language-switcher__flag-shell", o ? "language-switcher__flag-shell--sm" : "language-switcher__flag-shell--md", "language-switcher__flag-shell--emoji"),
51118
51132
  "aria-hidden": !0,
@@ -51131,11 +51145,11 @@ var V3 = ({ code: e, flagSrc: t, size: n = "md" }) => {
51131
51145
  })
51132
51146
  });
51133
51147
  };
51134
- function H3(e) {
51148
+ function G3(e) {
51135
51149
  return [...e].sort((e, t) => String(e.description).localeCompare(String(t.description)));
51136
51150
  }
51137
- var U3 = ({ onlyFlag: e, gauApiUrl: t, className: n }) => {
51138
- let { i18n: r, t: i } = RK(), [a, o] = y(!1), s = oY(VJ) === ht.Dark, { data: c, isPending: l, isFetching: u } = I3(t), d = !!t && (l || u), p = z3(r.language ?? ""), m = _(() => c?.length ? H3(c) : [], [c]), h = _(() => m.find((e) => String(e.description).toUpperCase() === p), [m, p]), g = h?.image ? bY(h.image) : void 0;
51151
+ var K3 = ({ onlyFlag: e, gauApiUrl: t, className: n }) => {
51152
+ let { i18n: r, t: i } = RK(), [a, o] = y(!1), s = oY(VJ) === ht.Dark, { data: c, isPending: l, isFetching: u } = R3(t), d = !!t && (l || u), p = H3(r.language ?? ""), m = _(() => c?.length ? G3(c) : [], [c]), h = _(() => m.find((e) => String(e.description).toUpperCase() === p), [m, p]), g = h?.image ? bY(h.image) : void 0;
51139
51153
  f(() => {
51140
51154
  if (!c?.length) return;
51141
51155
  let e = String(r.language ?? "").toUpperCase();
@@ -51161,7 +51175,7 @@ var U3 = ({ onlyFlag: e, gauApiUrl: t, className: n }) => {
51161
51175
  label: /* @__PURE__ */ C("span", {
51162
51176
  className: (0, cY.default)("language-switcher__menu-row", e && "language-switcher__menu-row--flag-only"),
51163
51177
  children: [
51164
- /* @__PURE__ */ S(V3, {
51178
+ /* @__PURE__ */ S(W3, {
51165
51179
  code: r,
51166
51180
  flagSrc: i
51167
51181
  }),
@@ -51169,7 +51183,7 @@ var U3 = ({ onlyFlag: e, gauApiUrl: t, className: n }) => {
51169
51183
  className: "language-switcher__menu-text",
51170
51184
  children: [/* @__PURE__ */ S("span", {
51171
51185
  className: "language-switcher__menu-title",
51172
- children: B3(r)
51186
+ children: U3(r)
51173
51187
  }), /* @__PURE__ */ S("span", {
51174
51188
  className: "language-switcher__menu-code",
51175
51189
  children: r
@@ -51204,38 +51218,38 @@ var U3 = ({ onlyFlag: e, gauApiUrl: t, className: n }) => {
51204
51218
  className: (0, cY.default)("language-switcher__trigger", s && "language-switcher__trigger--dark", n),
51205
51219
  children: [
51206
51220
  /* @__PURE__ */ S(OJ, { className: "language-switcher__globe" }),
51207
- /* @__PURE__ */ S(V3, {
51221
+ /* @__PURE__ */ S(W3, {
51208
51222
  code: p,
51209
51223
  flagSrc: g,
51210
51224
  size: "sm"
51211
51225
  }),
51212
51226
  e ? null : /* @__PURE__ */ S("span", {
51213
51227
  className: "language-switcher__trigger-label",
51214
- children: R3[p]
51228
+ children: V3[p]
51215
51229
  }),
51216
51230
  /* @__PURE__ */ S(oC, { className: (0, cY.default)("language-switcher__chevron", a && "language-switcher__chevron--open") })
51217
51231
  ]
51218
51232
  })
51219
51233
  });
51220
- }, W3 = oJ()((e) => /* @__PURE__ */ S(vJ, { children: /* @__PURE__ */ S(U3, { ...e }) })), G3 = (e) => /* @__PURE__ */ S(yJ, {
51221
- fallback: /* @__PURE__ */ S(U3, { ...e }),
51222
- children: /* @__PURE__ */ S(W3, { ...e })
51223
- }), K3 = (e) => /* @__PURE__ */ S(G3, { ...e });
51234
+ }, q3 = oJ()((e) => /* @__PURE__ */ S(vJ, { children: /* @__PURE__ */ S(K3, { ...e }) })), J3 = (e) => /* @__PURE__ */ S(yJ, {
51235
+ fallback: /* @__PURE__ */ S(K3, { ...e }),
51236
+ children: /* @__PURE__ */ S(q3, { ...e })
51237
+ }), Y3 = (e) => /* @__PURE__ */ S(J3, { ...e });
51224
51238
  typeof Symbol == "function" && Symbol.observable;
51225
- var q3 = () => Math.random().toString(36).substring(7).split("").join(".");
51226
- `${/* @__PURE__ */ q3()}`, `${/* @__PURE__ */ q3()}`;
51227
- function J3(e) {
51239
+ var X3 = () => Math.random().toString(36).substring(7).split("").join(".");
51240
+ `${/* @__PURE__ */ X3()}`, `${/* @__PURE__ */ X3()}`;
51241
+ function Z3(e) {
51228
51242
  if (typeof e != "object" || !e) return !1;
51229
51243
  let t = e;
51230
51244
  for (; Object.getPrototypeOf(t) !== null;) t = Object.getPrototypeOf(t);
51231
51245
  return Object.getPrototypeOf(e) === t || Object.getPrototypeOf(e) === null;
51232
51246
  }
51233
- function Y3(e) {
51234
- return J3(e) && "type" in e && typeof e.type == "string";
51247
+ function Q3(e) {
51248
+ return Z3(e) && "type" in e && typeof e.type == "string";
51235
51249
  }
51236
51250
  //#endregion
51237
51251
  //#region node_modules/.pnpm/immer@11.1.7/node_modules/immer/dist/immer.mjs
51238
- var X3 = Symbol.for("immer-nothing"), Z3 = Symbol.for("immer-draftable"), Q3 = Symbol.for("immer-state"), $3 = process.env.NODE_ENV === "production" ? [] : [
51252
+ var $3 = Symbol.for("immer-nothing"), e6 = Symbol.for("immer-draftable"), t6 = Symbol.for("immer-state"), n6 = process.env.NODE_ENV === "production" ? [] : [
51239
51253
  function(e) {
51240
51254
  return `The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`;
51241
51255
  },
@@ -51263,98 +51277,98 @@ var X3 = Symbol.for("immer-nothing"), Z3 = Symbol.for("immer-draftable"), Q3 = S
51263
51277
  return `'original' expects a draft, got: ${e}`;
51264
51278
  }
51265
51279
  ];
51266
- function e6(e, ...t) {
51280
+ function r6(e, ...t) {
51267
51281
  if (process.env.NODE_ENV !== "production") {
51268
- let n = $3[e], r = w6(n) ? n.apply(null, t) : n;
51282
+ let n = n6[e], r = D6(n) ? n.apply(null, t) : n;
51269
51283
  throw Error(`[Immer] ${r}`);
51270
51284
  }
51271
51285
  throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`);
51272
51286
  }
51273
- var t6 = Object, n6 = t6.getPrototypeOf, r6 = "constructor", i6 = "prototype", a6 = "configurable", o6 = "enumerable", s6 = "writable", c6 = "value", l6 = (e) => !!e && !!e[Q3];
51274
- function u6(e) {
51275
- return e ? p6(e) || b6(e) || !!e[Z3] || !!e[r6]?.[Z3] || x6(e) || S6(e) : !1;
51276
- }
51277
- var d6 = t6[i6][r6].toString(), f6 = /* @__PURE__ */ new WeakMap();
51287
+ var i6 = Object, a6 = i6.getPrototypeOf, o6 = "constructor", s6 = "prototype", c6 = "configurable", l6 = "enumerable", u6 = "writable", d6 = "value", f6 = (e) => !!e && !!e[t6];
51278
51288
  function p6(e) {
51279
- if (!e || !C6(e)) return !1;
51280
- let t = n6(e);
51281
- if (t === null || t === t6[i6]) return !0;
51282
- let n = t6.hasOwnProperty.call(t, r6) && t[r6];
51289
+ return e ? g6(e) || C6(e) || !!e[e6] || !!e[o6]?.[e6] || w6(e) || T6(e) : !1;
51290
+ }
51291
+ var m6 = i6[s6][o6].toString(), h6 = /* @__PURE__ */ new WeakMap();
51292
+ function g6(e) {
51293
+ if (!e || !E6(e)) return !1;
51294
+ let t = a6(e);
51295
+ if (t === null || t === i6[s6]) return !0;
51296
+ let n = i6.hasOwnProperty.call(t, o6) && t[o6];
51283
51297
  if (n === Object) return !0;
51284
- if (!w6(n)) return !1;
51285
- let r = f6.get(n);
51286
- return r === void 0 && (r = Function.toString.call(n), f6.set(n, r)), r === d6;
51298
+ if (!D6(n)) return !1;
51299
+ let r = h6.get(n);
51300
+ return r === void 0 && (r = Function.toString.call(n), h6.set(n, r)), r === m6;
51287
51301
  }
51288
- function m6(e, t, n = !0) {
51289
- h6(e) === 0 ? (n ? Reflect.ownKeys(e) : t6.keys(e)).forEach((n) => {
51302
+ function _6(e, t, n = !0) {
51303
+ v6(e) === 0 ? (n ? Reflect.ownKeys(e) : i6.keys(e)).forEach((n) => {
51290
51304
  t(n, e[n], e);
51291
51305
  }) : e.forEach((n, r) => t(r, n, e));
51292
51306
  }
51293
- function h6(e) {
51294
- let t = e[Q3];
51295
- return t ? t.type_ : b6(e) ? 1 : x6(e) ? 2 : S6(e) ? 3 : 0;
51307
+ function v6(e) {
51308
+ let t = e[t6];
51309
+ return t ? t.type_ : C6(e) ? 1 : w6(e) ? 2 : T6(e) ? 3 : 0;
51296
51310
  }
51297
- var g6 = (e, t, n = h6(e)) => n === 2 ? e.has(t) : t6[i6].hasOwnProperty.call(e, t), _6 = (e, t, n = h6(e)) => n === 2 ? e.get(t) : e[t], v6 = (e, t, n, r = h6(e)) => {
51311
+ var y6 = (e, t, n = v6(e)) => n === 2 ? e.has(t) : i6[s6].hasOwnProperty.call(e, t), b6 = (e, t, n = v6(e)) => n === 2 ? e.get(t) : e[t], x6 = (e, t, n, r = v6(e)) => {
51298
51312
  r === 2 ? e.set(t, n) : r === 3 ? e.add(n) : e[t] = n;
51299
51313
  };
51300
- function y6(e, t) {
51314
+ function S6(e, t) {
51301
51315
  return e === t ? e !== 0 || 1 / e == 1 / t : e !== e && t !== t;
51302
51316
  }
51303
- var b6 = Array.isArray, x6 = (e) => e instanceof Map, S6 = (e) => e instanceof Set, C6 = (e) => typeof e == "object", w6 = (e) => typeof e == "function", T6 = (e) => typeof e == "boolean";
51304
- function E6(e) {
51317
+ var C6 = Array.isArray, w6 = (e) => e instanceof Map, T6 = (e) => e instanceof Set, E6 = (e) => typeof e == "object", D6 = (e) => typeof e == "function", O6 = (e) => typeof e == "boolean";
51318
+ function k6(e) {
51305
51319
  let t = +e;
51306
51320
  return Number.isInteger(t) && String(t) === e;
51307
51321
  }
51308
- var D6 = (e) => e.copy_ || e.base_, O6 = (e) => e.modified_ ? e.copy_ : e.base_;
51309
- function k6(e, t) {
51310
- if (x6(e)) return new Map(e);
51311
- if (S6(e)) return new Set(e);
51312
- if (b6(e)) return Array[i6].slice.call(e);
51313
- let n = p6(e);
51322
+ var A6 = (e) => e.copy_ || e.base_, j6 = (e) => e.modified_ ? e.copy_ : e.base_;
51323
+ function M6(e, t) {
51324
+ if (w6(e)) return new Map(e);
51325
+ if (T6(e)) return new Set(e);
51326
+ if (C6(e)) return Array[s6].slice.call(e);
51327
+ let n = g6(e);
51314
51328
  if (t === !0 || t === "class_only" && !n) {
51315
- let t = t6.getOwnPropertyDescriptors(e);
51316
- delete t[Q3];
51329
+ let t = i6.getOwnPropertyDescriptors(e);
51330
+ delete t[t6];
51317
51331
  let n = Reflect.ownKeys(t);
51318
51332
  for (let r = 0; r < n.length; r++) {
51319
51333
  let i = n[r], a = t[i];
51320
- a[s6] === !1 && (a[s6] = !0, a[a6] = !0), (a.get || a.set) && (t[i] = {
51321
- [a6]: !0,
51322
- [s6]: !0,
51323
- [o6]: a[o6],
51324
- [c6]: e[i]
51334
+ a[u6] === !1 && (a[u6] = !0, a[c6] = !0), (a.get || a.set) && (t[i] = {
51335
+ [c6]: !0,
51336
+ [u6]: !0,
51337
+ [l6]: a[l6],
51338
+ [d6]: e[i]
51325
51339
  });
51326
51340
  }
51327
- return t6.create(n6(e), t);
51341
+ return i6.create(a6(e), t);
51328
51342
  } else {
51329
- let t = n6(e);
51343
+ let t = a6(e);
51330
51344
  if (t !== null && n) return { ...e };
51331
- let r = t6.create(t);
51332
- return t6.assign(r, e);
51333
- }
51334
- }
51335
- function A6(e, t = !1) {
51336
- return N6(e) || l6(e) || !u6(e) ? e : (h6(e) > 1 && t6.defineProperties(e, {
51337
- set: M6,
51338
- add: M6,
51339
- clear: M6,
51340
- delete: M6
51341
- }), t6.freeze(e), t && m6(e, (e, t) => {
51342
- A6(t, !0);
51345
+ let r = i6.create(t);
51346
+ return i6.assign(r, e);
51347
+ }
51348
+ }
51349
+ function N6(e, t = !1) {
51350
+ return I6(e) || f6(e) || !p6(e) ? e : (v6(e) > 1 && i6.defineProperties(e, {
51351
+ set: F6,
51352
+ add: F6,
51353
+ clear: F6,
51354
+ delete: F6
51355
+ }), i6.freeze(e), t && _6(e, (e, t) => {
51356
+ N6(t, !0);
51343
51357
  }, !1), e);
51344
51358
  }
51345
- function j6() {
51346
- e6(2);
51359
+ function P6() {
51360
+ r6(2);
51347
51361
  }
51348
- var M6 = { [c6]: j6 };
51349
- function N6(e) {
51350
- return e === null || !C6(e) ? !0 : t6.isFrozen(e);
51362
+ var F6 = { [d6]: P6 };
51363
+ function I6(e) {
51364
+ return e === null || !E6(e) ? !0 : i6.isFrozen(e);
51351
51365
  }
51352
- var P6 = "MapSet", F6 = "Patches", I6 = "ArrayMethods", L6 = {};
51353
- function R6(e) {
51354
- let t = L6[e];
51355
- return t || e6(0, e), t;
51366
+ var L6 = "MapSet", R6 = "Patches", z6 = "ArrayMethods", B6 = {};
51367
+ function V6(e) {
51368
+ let t = B6[e];
51369
+ return t || r6(0, e), t;
51356
51370
  }
51357
- var z6 = (e) => !!L6[e], B6, V6 = () => B6, H6 = (e, t) => ({
51371
+ var H6 = (e) => !!B6[e], U6, W6 = () => U6, G6 = (e, t) => ({
51358
51372
  drafts_: [],
51359
51373
  parent_: e,
51360
51374
  immer_: t,
@@ -51362,114 +51376,114 @@ var z6 = (e) => !!L6[e], B6, V6 = () => B6, H6 = (e, t) => ({
51362
51376
  unfinalizedDrafts_: 0,
51363
51377
  handledSet_: /* @__PURE__ */ new Set(),
51364
51378
  processedForPatches_: /* @__PURE__ */ new Set(),
51365
- mapSetPlugin_: z6(P6) ? R6(P6) : void 0,
51366
- arrayMethodsPlugin_: z6(I6) ? R6(I6) : void 0
51379
+ mapSetPlugin_: H6(L6) ? V6(L6) : void 0,
51380
+ arrayMethodsPlugin_: H6(z6) ? V6(z6) : void 0
51367
51381
  });
51368
- function U6(e, t) {
51369
- t && (e.patchPlugin_ = R6(F6), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
51382
+ function K6(e, t) {
51383
+ t && (e.patchPlugin_ = V6(R6), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
51370
51384
  }
51371
- function W6(e) {
51372
- G6(e), e.drafts_.forEach(q6), e.drafts_ = null;
51385
+ function q6(e) {
51386
+ J6(e), e.drafts_.forEach(X6), e.drafts_ = null;
51373
51387
  }
51374
- function G6(e) {
51375
- e === B6 && (B6 = e.parent_);
51388
+ function J6(e) {
51389
+ e === U6 && (U6 = e.parent_);
51376
51390
  }
51377
- var K6 = (e) => B6 = H6(B6, e);
51378
- function q6(e) {
51379
- let t = e[Q3];
51391
+ var Y6 = (e) => U6 = G6(U6, e);
51392
+ function X6(e) {
51393
+ let t = e[t6];
51380
51394
  t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
51381
51395
  }
51382
- function J6(e, t) {
51396
+ function Z6(e, t) {
51383
51397
  t.unfinalizedDrafts_ = t.drafts_.length;
51384
51398
  let n = t.drafts_[0];
51385
51399
  if (e !== void 0 && e !== n) {
51386
- n[Q3].modified_ && (W6(t), e6(4)), u6(e) && (e = Y6(t, e));
51400
+ n[t6].modified_ && (q6(t), r6(4)), p6(e) && (e = Q6(t, e));
51387
51401
  let { patchPlugin_: r } = t;
51388
- r && r.generateReplacementPatches_(n[Q3].base_, e, t);
51389
- } else e = Y6(t, n);
51390
- return X6(t, e, !0), W6(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === X3 ? void 0 : e;
51391
- }
51392
- function Y6(e, t) {
51393
- if (N6(t)) return t;
51394
- let n = t[Q3];
51395
- if (!n) return i8(t, e.handledSet_, e);
51396
- if (!Q6(n, e)) return t;
51402
+ r && r.generateReplacementPatches_(n[t6].base_, e, t);
51403
+ } else e = Q6(t, n);
51404
+ return $6(t, e, !0), q6(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === $3 ? void 0 : e;
51405
+ }
51406
+ function Q6(e, t) {
51407
+ if (I6(t)) return t;
51408
+ let n = t[t6];
51409
+ if (!n) return s8(t, e.handledSet_, e);
51410
+ if (!t8(n, e)) return t;
51397
51411
  if (!n.modified_) return n.base_;
51398
51412
  if (!n.finalized_) {
51399
51413
  let { callbacks_: t } = n;
51400
51414
  if (t) for (; t.length > 0;) t.pop()(e);
51401
- n8(n, e);
51415
+ a8(n, e);
51402
51416
  }
51403
51417
  return n.copy_;
51404
51418
  }
51405
- function X6(e, t, n = !1) {
51406
- !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && A6(t, n);
51419
+ function $6(e, t, n = !1) {
51420
+ !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && N6(t, n);
51407
51421
  }
51408
- function Z6(e) {
51422
+ function e8(e) {
51409
51423
  e.finalized_ = !0, e.scope_.unfinalizedDrafts_--;
51410
51424
  }
51411
- var Q6 = (e, t) => e.scope_ === t, $6 = [];
51412
- function e8(e, t, n, r) {
51413
- let i = D6(e), a = e.type_;
51414
- if (r !== void 0 && _6(i, r, a) === t) {
51415
- v6(i, r, n, a);
51425
+ var t8 = (e, t) => e.scope_ === t, n8 = [];
51426
+ function r8(e, t, n, r) {
51427
+ let i = A6(e), a = e.type_;
51428
+ if (r !== void 0 && b6(i, r, a) === t) {
51429
+ x6(i, r, n, a);
51416
51430
  return;
51417
51431
  }
51418
51432
  if (!e.draftLocations_) {
51419
51433
  let t = e.draftLocations_ = /* @__PURE__ */ new Map();
51420
- m6(i, (e, n) => {
51421
- if (l6(n)) {
51434
+ _6(i, (e, n) => {
51435
+ if (f6(n)) {
51422
51436
  let r = t.get(n) || [];
51423
51437
  r.push(e), t.set(n, r);
51424
51438
  }
51425
51439
  });
51426
51440
  }
51427
- let o = e.draftLocations_.get(t) ?? $6;
51428
- for (let e of o) v6(i, e, n, a);
51441
+ let o = e.draftLocations_.get(t) ?? n8;
51442
+ for (let e of o) x6(i, e, n, a);
51429
51443
  }
51430
- function t8(e, t, n) {
51444
+ function i8(e, t, n) {
51431
51445
  e.callbacks_.push(function(r) {
51432
51446
  let i = t;
51433
- if (!i || !Q6(i, r)) return;
51447
+ if (!i || !t8(i, r)) return;
51434
51448
  r.mapSetPlugin_?.fixSetContents(i);
51435
- let a = O6(i);
51436
- e8(e, i.draft_ ?? i, a, n), n8(i, r);
51449
+ let a = j6(i);
51450
+ r8(e, i.draft_ ?? i, a, n), a8(i, r);
51437
51451
  });
51438
51452
  }
51439
- function n8(e, t) {
51453
+ function a8(e, t) {
51440
51454
  if (e.modified_ && !e.finalized_ && (e.type_ === 3 || e.type_ === 1 && e.allIndicesReassigned_ || (e.assigned_?.size ?? 0) > 0)) {
51441
51455
  let { patchPlugin_: n } = t;
51442
51456
  if (n) {
51443
51457
  let r = n.getPath(e);
51444
51458
  r && n.generatePatches_(e, r, t);
51445
51459
  }
51446
- Z6(e);
51460
+ e8(e);
51447
51461
  }
51448
51462
  }
51449
- function r8(e, t, n) {
51463
+ function o8(e, t, n) {
51450
51464
  let { scope_: r } = e;
51451
- if (l6(n)) {
51452
- let i = n[Q3];
51453
- Q6(i, r) && i.callbacks_.push(function() {
51454
- f8(e), e8(e, n, O6(i), t);
51465
+ if (f6(n)) {
51466
+ let i = n[t6];
51467
+ t8(i, r) && i.callbacks_.push(function() {
51468
+ h8(e), r8(e, n, j6(i), t);
51455
51469
  });
51456
- } else u6(n) && e.callbacks_.push(function() {
51457
- let i = D6(e);
51458
- e.type_ === 3 ? i.has(n) && i8(n, r.handledSet_, r) : _6(i, t, e.type_) === n && r.drafts_.length > 1 && (e.assigned_.get(t) ?? !1) === !0 && e.copy_ && i8(_6(e.copy_, t, e.type_), r.handledSet_, r);
51470
+ } else p6(n) && e.callbacks_.push(function() {
51471
+ let i = A6(e);
51472
+ e.type_ === 3 ? i.has(n) && s8(n, r.handledSet_, r) : b6(i, t, e.type_) === n && r.drafts_.length > 1 && (e.assigned_.get(t) ?? !1) === !0 && e.copy_ && s8(b6(e.copy_, t, e.type_), r.handledSet_, r);
51459
51473
  });
51460
51474
  }
51461
- function i8(e, t, n) {
51462
- return !n.immer_.autoFreeze_ && n.unfinalizedDrafts_ < 1 || l6(e) || t.has(e) || !u6(e) || N6(e) ? e : (t.add(e), m6(e, (r, i) => {
51463
- if (l6(i)) {
51464
- let t = i[Q3];
51465
- Q6(t, n) && (v6(e, r, O6(t), e.type_), Z6(t));
51466
- } else u6(i) && i8(i, t, n);
51475
+ function s8(e, t, n) {
51476
+ return !n.immer_.autoFreeze_ && n.unfinalizedDrafts_ < 1 || f6(e) || t.has(e) || !p6(e) || I6(e) ? e : (t.add(e), _6(e, (r, i) => {
51477
+ if (f6(i)) {
51478
+ let t = i[t6];
51479
+ t8(t, n) && (x6(e, r, j6(t), e.type_), e8(t));
51480
+ } else p6(i) && s8(i, t, n);
51467
51481
  }), e);
51468
51482
  }
51469
- function a8(e, t) {
51470
- let n = b6(e), r = {
51483
+ function c8(e, t) {
51484
+ let n = C6(e), r = {
51471
51485
  type_: +!!n,
51472
- scope_: t ? t.scope_ : V6(),
51486
+ scope_: t ? t.scope_ : W6(),
51473
51487
  modified_: !1,
51474
51488
  finalized_: !1,
51475
51489
  assigned_: void 0,
@@ -51480,105 +51494,105 @@ function a8(e, t) {
51480
51494
  revoke_: null,
51481
51495
  isManual_: !1,
51482
51496
  callbacks_: void 0
51483
- }, i = r, a = o8;
51484
- n && (i = [r], a = s8);
51497
+ }, i = r, a = l8;
51498
+ n && (i = [r], a = u8);
51485
51499
  let { revoke: o, proxy: s } = Proxy.revocable(i, a);
51486
51500
  return r.draft_ = s, r.revoke_ = o, [s, r];
51487
51501
  }
51488
- var o8 = {
51502
+ var l8 = {
51489
51503
  get(e, t) {
51490
- if (t === Q3) return e;
51504
+ if (t === t6) return e;
51491
51505
  let n = e.scope_.arrayMethodsPlugin_, r = e.type_ === 1 && typeof t == "string";
51492
51506
  if (r && n?.isArrayOperationMethod(t)) return n.createMethodInterceptor(e, t);
51493
- let i = D6(e);
51494
- if (!g6(i, t, e.type_)) return l8(e, i, t);
51507
+ let i = A6(e);
51508
+ if (!y6(i, t, e.type_)) return f8(e, i, t);
51495
51509
  let a = i[t];
51496
- if (e.finalized_ || !u6(a) || r && e.operationMethod && n?.isMutatingArrayMethod(e.operationMethod) && E6(t)) return a;
51497
- if (a === c8(e.base_, t)) {
51498
- f8(e);
51499
- let n = e.type_ === 1 ? +t : t, r = m8(e.scope_, a, e, n);
51510
+ if (e.finalized_ || !p6(a) || r && e.operationMethod && n?.isMutatingArrayMethod(e.operationMethod) && k6(t)) return a;
51511
+ if (a === d8(e.base_, t)) {
51512
+ h8(e);
51513
+ let n = e.type_ === 1 ? +t : t, r = _8(e.scope_, a, e, n);
51500
51514
  return e.copy_[n] = r;
51501
51515
  }
51502
51516
  return a;
51503
51517
  },
51504
51518
  has(e, t) {
51505
- return t in D6(e);
51519
+ return t in A6(e);
51506
51520
  },
51507
51521
  ownKeys(e) {
51508
- return Reflect.ownKeys(D6(e));
51522
+ return Reflect.ownKeys(A6(e));
51509
51523
  },
51510
51524
  set(e, t, n) {
51511
- let r = u8(D6(e), t);
51525
+ let r = p8(A6(e), t);
51512
51526
  if (r?.set) return r.set.call(e.draft_, n), !0;
51513
51527
  if (!e.modified_) {
51514
- let r = c8(D6(e), t), i = r?.[Q3];
51528
+ let r = d8(A6(e), t), i = r?.[t6];
51515
51529
  if (i && i.base_ === n) return e.copy_[t] = n, e.assigned_.set(t, !1), !0;
51516
- if (y6(n, r) && (n !== void 0 || g6(e.base_, t, e.type_))) return !0;
51517
- f8(e), d8(e);
51530
+ if (S6(n, r) && (n !== void 0 || y6(e.base_, t, e.type_))) return !0;
51531
+ h8(e), m8(e);
51518
51532
  }
51519
- 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), r8(e, t, n), !0);
51533
+ 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), o8(e, t, n), !0);
51520
51534
  },
51521
51535
  deleteProperty(e, t) {
51522
- return f8(e), c8(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_.set(t, !1), d8(e)) : e.assigned_.delete(t), e.copy_ && delete e.copy_[t], !0;
51536
+ return h8(e), d8(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_.set(t, !1), m8(e)) : e.assigned_.delete(t), e.copy_ && delete e.copy_[t], !0;
51523
51537
  },
51524
51538
  getOwnPropertyDescriptor(e, t) {
51525
- let n = D6(e), r = Reflect.getOwnPropertyDescriptor(n, t);
51539
+ let n = A6(e), r = Reflect.getOwnPropertyDescriptor(n, t);
51526
51540
  return r && {
51527
- [s6]: !0,
51528
- [a6]: e.type_ !== 1 || t !== "length",
51529
- [o6]: r[o6],
51530
- [c6]: n[t]
51541
+ [u6]: !0,
51542
+ [c6]: e.type_ !== 1 || t !== "length",
51543
+ [l6]: r[l6],
51544
+ [d6]: n[t]
51531
51545
  };
51532
51546
  },
51533
51547
  defineProperty() {
51534
- e6(11);
51548
+ r6(11);
51535
51549
  },
51536
51550
  getPrototypeOf(e) {
51537
- return n6(e.base_);
51551
+ return a6(e.base_);
51538
51552
  },
51539
51553
  setPrototypeOf() {
51540
- e6(12);
51554
+ r6(12);
51541
51555
  }
51542
- }, s8 = {};
51543
- for (let e in o8) {
51544
- let t = o8[e];
51545
- s8[e] = function() {
51556
+ }, u8 = {};
51557
+ for (let e in l8) {
51558
+ let t = l8[e];
51559
+ u8[e] = function() {
51546
51560
  let e = arguments;
51547
51561
  return e[0] = e[0][0], t.apply(this, e);
51548
51562
  };
51549
51563
  }
51550
- s8.deleteProperty = function(e, t) {
51551
- return process.env.NODE_ENV !== "production" && isNaN(parseInt(t)) && e6(13), s8.set.call(this, e, t, void 0);
51552
- }, s8.set = function(e, t, n) {
51553
- return process.env.NODE_ENV !== "production" && t !== "length" && isNaN(parseInt(t)) && e6(14), o8.set.call(this, e[0], t, n, e[0]);
51564
+ u8.deleteProperty = function(e, t) {
51565
+ return process.env.NODE_ENV !== "production" && isNaN(parseInt(t)) && r6(13), u8.set.call(this, e, t, void 0);
51566
+ }, u8.set = function(e, t, n) {
51567
+ return process.env.NODE_ENV !== "production" && t !== "length" && isNaN(parseInt(t)) && r6(14), l8.set.call(this, e[0], t, n, e[0]);
51554
51568
  };
51555
- function c8(e, t) {
51556
- let n = e[Q3];
51557
- return (n ? D6(n) : e)[t];
51569
+ function d8(e, t) {
51570
+ let n = e[t6];
51571
+ return (n ? A6(n) : e)[t];
51558
51572
  }
51559
- function l8(e, t, n) {
51560
- let r = u8(t, n);
51561
- return r ? c6 in r ? r[c6] : r.get?.call(e.draft_) : void 0;
51573
+ function f8(e, t, n) {
51574
+ let r = p8(t, n);
51575
+ return r ? d6 in r ? r[d6] : r.get?.call(e.draft_) : void 0;
51562
51576
  }
51563
- function u8(e, t) {
51577
+ function p8(e, t) {
51564
51578
  if (!(t in e)) return;
51565
- let n = n6(e);
51579
+ let n = a6(e);
51566
51580
  for (; n;) {
51567
51581
  let e = Object.getOwnPropertyDescriptor(n, t);
51568
51582
  if (e) return e;
51569
- n = n6(n);
51583
+ n = a6(n);
51570
51584
  }
51571
51585
  }
51572
- function d8(e) {
51573
- e.modified_ || (e.modified_ = !0, e.parent_ && d8(e.parent_));
51586
+ function m8(e) {
51587
+ e.modified_ || (e.modified_ = !0, e.parent_ && m8(e.parent_));
51574
51588
  }
51575
- function f8(e) {
51576
- e.copy_ ||= (e.assigned_ = /* @__PURE__ */ new Map(), k6(e.base_, e.scope_.immer_.useStrictShallowCopy_));
51589
+ function h8(e) {
51590
+ e.copy_ ||= (e.assigned_ = /* @__PURE__ */ new Map(), M6(e.base_, e.scope_.immer_.useStrictShallowCopy_));
51577
51591
  }
51578
- var p8 = class {
51592
+ var g8 = class {
51579
51593
  constructor(e) {
51580
51594
  this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.useStrictIteration_ = !1, this.produce = (e, t, n) => {
51581
- if (w6(e) && !w6(t)) {
51595
+ if (D6(e) && !D6(t)) {
51582
51596
  let n = t;
51583
51597
  t = e;
51584
51598
  let r = this;
@@ -51586,28 +51600,28 @@ var p8 = class {
51586
51600
  return r.produce(e, (e) => t.call(this, e, ...i));
51587
51601
  };
51588
51602
  }
51589
- w6(t) || e6(6), n !== void 0 && !w6(n) && e6(7);
51603
+ D6(t) || r6(6), n !== void 0 && !D6(n) && r6(7);
51590
51604
  let r;
51591
- if (u6(e)) {
51592
- let i = K6(this), a = m8(i, e, void 0), o = !0;
51605
+ if (p6(e)) {
51606
+ let i = Y6(this), a = _8(i, e, void 0), o = !0;
51593
51607
  try {
51594
51608
  r = t(a), o = !1;
51595
51609
  } finally {
51596
- o ? W6(i) : G6(i);
51610
+ o ? q6(i) : J6(i);
51597
51611
  }
51598
- return U6(i, n), J6(r, i);
51599
- } else if (!e || !C6(e)) {
51600
- if (r = t(e), r === void 0 && (r = e), r === X3 && (r = void 0), this.autoFreeze_ && A6(r, !0), n) {
51612
+ return K6(i, n), Z6(r, i);
51613
+ } else if (!e || !E6(e)) {
51614
+ if (r = t(e), r === void 0 && (r = e), r === $3 && (r = void 0), this.autoFreeze_ && N6(r, !0), n) {
51601
51615
  let t = [], i = [];
51602
- R6(F6).generateReplacementPatches_(e, r, {
51616
+ V6(R6).generateReplacementPatches_(e, r, {
51603
51617
  patches_: t,
51604
51618
  inversePatches_: i
51605
51619
  }), n(t, i);
51606
51620
  }
51607
51621
  return r;
51608
- } else e6(1, e);
51622
+ } else r6(1, e);
51609
51623
  }, this.produceWithPatches = (e, t) => {
51610
- if (w6(e)) return (t, ...n) => this.produceWithPatches(t, (t) => e(t, ...n));
51624
+ if (D6(e)) return (t, ...n) => this.produceWithPatches(t, (t) => e(t, ...n));
51611
51625
  let n, r;
51612
51626
  return [
51613
51627
  this.produce(e, t, (e, t) => {
@@ -51616,18 +51630,18 @@ var p8 = class {
51616
51630
  n,
51617
51631
  r
51618
51632
  ];
51619
- }, T6(e?.autoFreeze) && this.setAutoFreeze(e.autoFreeze), T6(e?.useStrictShallowCopy) && this.setUseStrictShallowCopy(e.useStrictShallowCopy), T6(e?.useStrictIteration) && this.setUseStrictIteration(e.useStrictIteration);
51633
+ }, O6(e?.autoFreeze) && this.setAutoFreeze(e.autoFreeze), O6(e?.useStrictShallowCopy) && this.setUseStrictShallowCopy(e.useStrictShallowCopy), O6(e?.useStrictIteration) && this.setUseStrictIteration(e.useStrictIteration);
51620
51634
  }
51621
51635
  createDraft(e) {
51622
- u6(e) || e6(8), l6(e) && (e = h8(e));
51623
- let t = K6(this), n = m8(t, e, void 0);
51624
- return n[Q3].isManual_ = !0, G6(t), n;
51636
+ p6(e) || r6(8), f6(e) && (e = v8(e));
51637
+ let t = Y6(this), n = _8(t, e, void 0);
51638
+ return n[t6].isManual_ = !0, J6(t), n;
51625
51639
  }
51626
51640
  finishDraft(e, t) {
51627
- let n = e && e[Q3];
51628
- (!n || !n.isManual_) && e6(9);
51641
+ let n = e && e[t6];
51642
+ (!n || !n.isManual_) && r6(9);
51629
51643
  let { scope_: r } = n;
51630
- return U6(r, t), J6(void 0, r);
51644
+ return K6(r, t), Z6(void 0, r);
51631
51645
  }
51632
51646
  setAutoFreeze(e) {
51633
51647
  this.autoFreeze_ = e;
@@ -51651,39 +51665,39 @@ var p8 = class {
51651
51665
  }
51652
51666
  }
51653
51667
  n > -1 && (t = t.slice(n + 1));
51654
- let r = R6(F6).applyPatches_;
51655
- return l6(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
51668
+ let r = V6(R6).applyPatches_;
51669
+ return f6(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
51656
51670
  }
51657
51671
  };
51658
- function m8(e, t, n, r) {
51659
- let [i, a] = x6(t) ? R6(P6).proxyMap_(t, n) : S6(t) ? R6(P6).proxySet_(t, n) : a8(t, n);
51660
- return (n?.scope_ ?? V6()).drafts_.push(i), a.callbacks_ = n?.callbacks_ ?? [], a.key_ = r, n && r !== void 0 ? t8(n, a, r) : a.callbacks_.push(function(e) {
51672
+ function _8(e, t, n, r) {
51673
+ let [i, a] = w6(t) ? V6(L6).proxyMap_(t, n) : T6(t) ? V6(L6).proxySet_(t, n) : c8(t, n);
51674
+ return (n?.scope_ ?? W6()).drafts_.push(i), a.callbacks_ = n?.callbacks_ ?? [], a.key_ = r, n && r !== void 0 ? i8(n, a, r) : a.callbacks_.push(function(e) {
51661
51675
  e.mapSetPlugin_?.fixSetContents(a);
51662
51676
  let { patchPlugin_: t } = e;
51663
51677
  a.modified_ && t && t.generatePatches_(a, [], e);
51664
51678
  }), i;
51665
51679
  }
51666
- function h8(e) {
51667
- return l6(e) || e6(10, e), g8(e);
51680
+ function v8(e) {
51681
+ return f6(e) || r6(10, e), y8(e);
51668
51682
  }
51669
- function g8(e) {
51670
- if (!u6(e) || N6(e)) return e;
51671
- let t = e[Q3], n, r = !0;
51683
+ function y8(e) {
51684
+ if (!p6(e) || I6(e)) return e;
51685
+ let t = e[t6], n, r = !0;
51672
51686
  if (t) {
51673
51687
  if (!t.modified_) return t.base_;
51674
- t.finalized_ = !0, n = k6(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();
51675
- } else n = k6(e, !0);
51676
- return m6(n, (e, t) => {
51677
- v6(n, e, g8(t));
51688
+ t.finalized_ = !0, n = M6(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();
51689
+ } else n = M6(e, !0);
51690
+ return _6(n, (e, t) => {
51691
+ x6(n, e, y8(t));
51678
51692
  }, r), t && (t.finalized_ = !1), n;
51679
51693
  }
51680
- var _8 = new p8().produce;
51694
+ var b8 = new g8().produce;
51681
51695
  typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__, typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__;
51682
- function v8(e, t) {
51696
+ function x8(e, t) {
51683
51697
  function n(...n) {
51684
51698
  if (t) {
51685
51699
  let r = t(...n);
51686
- if (!r) throw Error(process.env.NODE_ENV === "production" ? H8(0) : "prepareAction did not return an object");
51700
+ if (!r) throw Error(process.env.NODE_ENV === "production" ? G8(0) : "prepareAction did not return an object");
51687
51701
  return {
51688
51702
  type: e,
51689
51703
  payload: r.payload,
@@ -51696,42 +51710,42 @@ function v8(e, t) {
51696
51710
  payload: n[0]
51697
51711
  };
51698
51712
  }
51699
- return n.toString = () => `${e}`, n.type = e, n.match = (t) => Y3(t) && t.type === e, n;
51713
+ return n.toString = () => `${e}`, n.type = e, n.match = (t) => Q3(t) && t.type === e, n;
51700
51714
  }
51701
- function y8(e) {
51702
- return u6(e) ? _8(e, () => {}) : e;
51715
+ function S8(e) {
51716
+ return p6(e) ? b8(e, () => {}) : e;
51703
51717
  }
51704
- function b8(e, t, n) {
51718
+ function C8(e, t, n) {
51705
51719
  return e.has(t) ? e.get(t) : e.set(t, n(t)).get(t);
51706
51720
  }
51707
- function x8(e) {
51721
+ function w8(e) {
51708
51722
  let t = {}, n = [], r, i = {
51709
51723
  addCase(e, a) {
51710
51724
  if (process.env.NODE_ENV !== "production") {
51711
- if (n.length > 0) throw Error(process.env.NODE_ENV === "production" ? H8(26) : "`builder.addCase` should only be called before calling `builder.addMatcher`");
51712
- if (r) throw Error(process.env.NODE_ENV === "production" ? H8(27) : "`builder.addCase` should only be called before calling `builder.addDefaultCase`");
51725
+ if (n.length > 0) throw Error(process.env.NODE_ENV === "production" ? G8(26) : "`builder.addCase` should only be called before calling `builder.addMatcher`");
51726
+ if (r) throw Error(process.env.NODE_ENV === "production" ? G8(27) : "`builder.addCase` should only be called before calling `builder.addDefaultCase`");
51713
51727
  }
51714
51728
  let o = typeof e == "string" ? e : e.type;
51715
- if (!o) throw Error(process.env.NODE_ENV === "production" ? H8(28) : "`builder.addCase` cannot be called with an empty action type");
51716
- if (o in t) throw Error(process.env.NODE_ENV === "production" ? H8(29) : `\`builder.addCase\` cannot be called with two reducers for the same action type '${o}'`);
51729
+ if (!o) throw Error(process.env.NODE_ENV === "production" ? G8(28) : "`builder.addCase` cannot be called with an empty action type");
51730
+ if (o in t) throw Error(process.env.NODE_ENV === "production" ? G8(29) : `\`builder.addCase\` cannot be called with two reducers for the same action type '${o}'`);
51717
51731
  return t[o] = a, i;
51718
51732
  },
51719
51733
  addAsyncThunk(e, a) {
51720
- if (process.env.NODE_ENV !== "production" && r) throw Error(process.env.NODE_ENV === "production" ? H8(43) : "`builder.addAsyncThunk` should only be called before calling `builder.addDefaultCase`");
51734
+ if (process.env.NODE_ENV !== "production" && r) throw Error(process.env.NODE_ENV === "production" ? G8(43) : "`builder.addAsyncThunk` should only be called before calling `builder.addDefaultCase`");
51721
51735
  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({
51722
51736
  matcher: e.settled,
51723
51737
  reducer: a.settled
51724
51738
  }), i;
51725
51739
  },
51726
51740
  addMatcher(e, t) {
51727
- if (process.env.NODE_ENV !== "production" && r) throw Error(process.env.NODE_ENV === "production" ? H8(30) : "`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");
51741
+ if (process.env.NODE_ENV !== "production" && r) throw Error(process.env.NODE_ENV === "production" ? G8(30) : "`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");
51728
51742
  return n.push({
51729
51743
  matcher: e,
51730
51744
  reducer: t
51731
51745
  }), i;
51732
51746
  },
51733
51747
  addDefaultCase(e) {
51734
- if (process.env.NODE_ENV !== "production" && r) throw Error(process.env.NODE_ENV === "production" ? H8(31) : "`builder.addDefaultCase` can only be called once");
51748
+ if (process.env.NODE_ENV !== "production" && r) throw Error(process.env.NODE_ENV === "production" ? G8(31) : "`builder.addDefaultCase` can only be called once");
51735
51749
  return r = e, i;
51736
51750
  }
51737
51751
  };
@@ -51741,24 +51755,24 @@ function x8(e) {
51741
51755
  r
51742
51756
  ];
51743
51757
  }
51744
- function S8(e) {
51758
+ function T8(e) {
51745
51759
  return typeof e == "function";
51746
51760
  }
51747
- function C8(e, t) {
51748
- if (process.env.NODE_ENV !== "production" && typeof t == "object") throw Error(process.env.NODE_ENV === "production" ? H8(8) : "The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");
51749
- let [n, r, i] = x8(t), a;
51750
- if (S8(e)) a = () => y8(e());
51761
+ function E8(e, t) {
51762
+ if (process.env.NODE_ENV !== "production" && typeof t == "object") throw Error(process.env.NODE_ENV === "production" ? G8(8) : "The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");
51763
+ let [n, r, i] = w8(t), a;
51764
+ if (T8(e)) a = () => S8(e());
51751
51765
  else {
51752
- let t = y8(e);
51766
+ let t = S8(e);
51753
51767
  a = () => t;
51754
51768
  }
51755
51769
  function o(e = a(), t) {
51756
51770
  let o = [n[t.type], ...r.filter(({ matcher: e }) => e(t)).map(({ reducer: e }) => e)];
51757
51771
  return o.filter((e) => !!e).length === 0 && (o = [i]), o.reduce((e, n) => {
51758
- if (n) if (l6(e)) {
51772
+ if (n) if (f6(e)) {
51759
51773
  let r = n(e, t);
51760
51774
  return r === void 0 ? e : r;
51761
- } else if (u6(e)) return _8(e, (e) => n(e, t));
51775
+ } else if (p6(e)) return b8(e, (e) => n(e, t));
51762
51776
  else {
51763
51777
  let r = n(e, t);
51764
51778
  if (r === void 0) {
@@ -51772,17 +51786,17 @@ function C8(e, t) {
51772
51786
  }
51773
51787
  return o.getInitialState = a, o;
51774
51788
  }
51775
- var w8 = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
51776
- function T8(e, t) {
51789
+ var D8 = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
51790
+ function O8(e, t) {
51777
51791
  return `${e}/${t}`;
51778
51792
  }
51779
- function E8({ creators: e } = {}) {
51780
- let t = e?.asyncThunk?.[w8];
51793
+ function k8({ creators: e } = {}) {
51794
+ let t = e?.asyncThunk?.[D8];
51781
51795
  return function(e) {
51782
51796
  let { name: n, reducerPath: r = n } = e;
51783
- if (!n) throw Error(process.env.NODE_ENV === "production" ? H8(11) : "`name` is a required option for createSlice");
51797
+ if (!n) throw Error(process.env.NODE_ENV === "production" ? G8(11) : "`name` is a required option for createSlice");
51784
51798
  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`");
51785
- let i = (typeof e.reducers == "function" ? e.reducers(k8()) : e.reducers) || {}, a = Object.keys(i), o = {
51799
+ let i = (typeof e.reducers == "function" ? e.reducers(M8()) : e.reducers) || {}, a = Object.keys(i), o = {
51786
51800
  sliceCaseReducersByName: {},
51787
51801
  sliceCaseReducersByType: {},
51788
51802
  actionCreators: {},
@@ -51790,8 +51804,8 @@ function E8({ creators: e } = {}) {
51790
51804
  }, s = {
51791
51805
  addCase(e, t) {
51792
51806
  let n = typeof e == "string" ? e : e.type;
51793
- if (!n) throw Error(process.env.NODE_ENV === "production" ? H8(12) : "`context.addCase` cannot be called with an empty action type");
51794
- if (n in o.sliceCaseReducersByType) throw Error(process.env.NODE_ENV === "production" ? H8(13) : "`context.addCase` cannot be called with two reducers for the same action type: " + n);
51807
+ if (!n) throw Error(process.env.NODE_ENV === "production" ? G8(12) : "`context.addCase` cannot be called with an empty action type");
51808
+ if (n in o.sliceCaseReducersByType) throw Error(process.env.NODE_ENV === "production" ? G8(13) : "`context.addCase` cannot be called with two reducers for the same action type: " + n);
51795
51809
  return o.sliceCaseReducersByType[n] = t, s;
51796
51810
  },
51797
51811
  addMatcher(e, t) {
@@ -51810,18 +51824,18 @@ function E8({ creators: e } = {}) {
51810
51824
  a.forEach((r) => {
51811
51825
  let a = i[r], o = {
51812
51826
  reducerName: r,
51813
- type: T8(n, r),
51827
+ type: O8(n, r),
51814
51828
  createNotation: typeof e.reducers == "function"
51815
51829
  };
51816
- j8(a) ? N8(o, a, s, t) : A8(o, a, s);
51830
+ P8(a) ? I8(o, a, s, t) : N8(o, a, s);
51817
51831
  });
51818
51832
  function c() {
51819
- if (process.env.NODE_ENV !== "production" && typeof e.extraReducers == "object") throw Error(process.env.NODE_ENV === "production" ? H8(14) : "The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");
51820
- let [t = {}, n = [], r = void 0] = typeof e.extraReducers == "function" ? x8(e.extraReducers) : [e.extraReducers], i = {
51833
+ if (process.env.NODE_ENV !== "production" && typeof e.extraReducers == "object") throw Error(process.env.NODE_ENV === "production" ? G8(14) : "The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");
51834
+ let [t = {}, n = [], r = void 0] = typeof e.extraReducers == "function" ? w8(e.extraReducers) : [e.extraReducers], i = {
51821
51835
  ...t,
51822
51836
  ...o.sliceCaseReducersByType
51823
51837
  };
51824
- return C8(e.initialState, (e) => {
51838
+ return E8(e.initialState, (e) => {
51825
51839
  for (let t in i) e.addCase(t, i[t]);
51826
51840
  for (let t of o.sliceMatchers) e.addMatcher(t.matcher, t.reducer);
51827
51841
  for (let t of n) e.addMatcher(t.matcher, t.reducer);
@@ -51839,15 +51853,15 @@ function E8({ creators: e } = {}) {
51839
51853
  function r(e) {
51840
51854
  let i = e[t];
51841
51855
  if (i === void 0) {
51842
- if (n) i = b8(d, r, m);
51843
- else if (process.env.NODE_ENV !== "production") throw Error(process.env.NODE_ENV === "production" ? H8(15) : "selectSlice returned undefined for an uninjected slice reducer");
51856
+ if (n) i = C8(d, r, m);
51857
+ else if (process.env.NODE_ENV !== "production") throw Error(process.env.NODE_ENV === "production" ? G8(15) : "selectSlice returned undefined for an uninjected slice reducer");
51844
51858
  }
51845
51859
  return i;
51846
51860
  }
51847
51861
  function i(t = l) {
51848
- return b8(b8(u, n, () => /* @__PURE__ */ new WeakMap()), t, () => {
51862
+ return C8(C8(u, n, () => /* @__PURE__ */ new WeakMap()), t, () => {
51849
51863
  let r = {};
51850
- for (let [i, a] of Object.entries(e.selectors ?? {})) r[i] = D8(a, t, () => b8(d, t, m), n);
51864
+ for (let [i, a] of Object.entries(e.selectors ?? {})) r[i] = A8(a, t, () => C8(d, t, m), n);
51851
51865
  return r;
51852
51866
  });
51853
51867
  }
@@ -51881,19 +51895,19 @@ function E8({ creators: e } = {}) {
51881
51895
  return g;
51882
51896
  };
51883
51897
  }
51884
- function D8(e, t, n, r) {
51898
+ function A8(e, t, n, r) {
51885
51899
  function i(i, ...a) {
51886
51900
  let o = t(i);
51887
51901
  if (o === void 0) {
51888
51902
  if (r) o = n();
51889
- else if (process.env.NODE_ENV !== "production") throw Error(process.env.NODE_ENV === "production" ? H8(16) : "selectState returned undefined for an uninjected slice reducer");
51903
+ else if (process.env.NODE_ENV !== "production") throw Error(process.env.NODE_ENV === "production" ? G8(16) : "selectState returned undefined for an uninjected slice reducer");
51890
51904
  }
51891
51905
  return e(o, ...a);
51892
51906
  }
51893
51907
  return i.unwrapped = e, i;
51894
51908
  }
51895
- var O8 = /* @__PURE__ */ E8();
51896
- function k8() {
51909
+ var j8 = /* @__PURE__ */ k8();
51910
+ function M8() {
51897
51911
  function e(e, t) {
51898
51912
  return {
51899
51913
  _reducerDefinitionType: "asyncThunk",
@@ -51917,40 +51931,40 @@ function k8() {
51917
51931
  asyncThunk: e
51918
51932
  };
51919
51933
  }
51920
- function A8({ type: e, reducerName: t, createNotation: n }, r, i) {
51934
+ function N8({ type: e, reducerName: t, createNotation: n }, r, i) {
51921
51935
  let a, o;
51922
51936
  if ("reducer" in r) {
51923
- if (n && !M8(r)) throw Error(process.env.NODE_ENV === "production" ? H8(17) : "Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");
51937
+ if (n && !F8(r)) throw Error(process.env.NODE_ENV === "production" ? G8(17) : "Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");
51924
51938
  a = r.reducer, o = r.prepare;
51925
51939
  } else a = r;
51926
- i.addCase(e, a).exposeCaseReducer(t, a).exposeAction(t, o ? v8(e, o) : v8(e));
51940
+ i.addCase(e, a).exposeCaseReducer(t, a).exposeAction(t, o ? x8(e, o) : x8(e));
51927
51941
  }
51928
- function j8(e) {
51942
+ function P8(e) {
51929
51943
  return e._reducerDefinitionType === "asyncThunk";
51930
51944
  }
51931
- function M8(e) {
51945
+ function F8(e) {
51932
51946
  return e._reducerDefinitionType === "reducerWithPrepare";
51933
51947
  }
51934
- function N8({ type: e, reducerName: t }, n, r, i) {
51935
- if (!i) throw Error(process.env.NODE_ENV === "production" ? H8(18) : "Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");
51948
+ function I8({ type: e, reducerName: t }, n, r, i) {
51949
+ if (!i) throw Error(process.env.NODE_ENV === "production" ? G8(18) : "Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");
51936
51950
  let { payloadCreator: a, fulfilled: o, pending: s, rejected: c, settled: l, options: u } = n, d = i(e, a, u);
51937
51951
  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, {
51938
- fulfilled: o || P8,
51939
- pending: s || P8,
51940
- rejected: c || P8,
51941
- settled: l || P8
51952
+ fulfilled: o || L8,
51953
+ pending: s || L8,
51954
+ rejected: c || L8,
51955
+ settled: l || L8
51942
51956
  });
51943
51957
  }
51944
- function P8() {}
51945
- var F8 = "listener", I8 = "completed", L8 = "cancelled";
51946
- `${L8}`, `${I8}`, `${F8}${L8}`, `${F8}${I8}`;
51947
- var { assign: R8 } = Object, z8 = "listenerMiddleware", B8 = /* @__PURE__ */ R8(/* @__PURE__ */ v8(`${z8}/add`), { withTypes: () => B8 });
51948
- `${z8}`;
51949
- var V8 = /* @__PURE__ */ R8(/* @__PURE__ */ v8(`${z8}/remove`), { withTypes: () => V8 });
51950
- function H8(e) {
51958
+ function L8() {}
51959
+ var R8 = "listener", z8 = "completed", B8 = "cancelled";
51960
+ `${B8}`, `${z8}`, `${R8}${B8}`, `${R8}${z8}`;
51961
+ var { assign: V8 } = Object, H8 = "listenerMiddleware", U8 = /* @__PURE__ */ V8(/* @__PURE__ */ x8(`${H8}/add`), { withTypes: () => U8 });
51962
+ `${H8}`;
51963
+ var W8 = /* @__PURE__ */ V8(/* @__PURE__ */ x8(`${H8}/remove`), { withTypes: () => W8 });
51964
+ function G8(e) {
51951
51965
  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. `;
51952
51966
  }
51953
- var U8 = O8({
51967
+ var K8 = j8({
51954
51968
  name: "AppState",
51955
51969
  initialState: { theme: ht.Light },
51956
51970
  reducers: {
@@ -51961,14 +51975,14 @@ var U8 = O8({
51961
51975
  e.language = t;
51962
51976
  }
51963
51977
  }
51964
- }), { updTheme: W8, updLanguage: G8 } = U8.actions;
51965
- U8.reducer;
51978
+ }), { updTheme: q8, updLanguage: J8 } = K8.actions;
51979
+ K8.reducer;
51966
51980
  //#endregion
51967
51981
  //#region src/lib/ThemeModeToggle/index.tsx
51968
- var K8 = ({ className: e }) => {
51982
+ var Y8 = ({ className: e }) => {
51969
51983
  let { t } = RK(), n = aY(), r = oY(VJ) === ht.Dark, i = u(() => {
51970
51984
  let e = r ? ht.Light : ht.Dark;
51971
- n(W8(e)), iY.set(mt.Theme, e);
51985
+ n(q8(e)), iY.set(mt.Theme, e);
51972
51986
  }, [n, r]);
51973
51987
  return /* @__PURE__ */ S("button", {
51974
51988
  type: "button",
@@ -51994,13 +52008,34 @@ var K8 = ({ className: e }) => {
51994
52008
  })]
51995
52009
  })
51996
52010
  });
51997
- }, q8 = oJ()((e) => /* @__PURE__ */ S(vJ, { children: /* @__PURE__ */ S(K8, { ...e }) })), J8 = (e) => /* @__PURE__ */ S(yJ, {
51998
- fallback: /* @__PURE__ */ S(K8, { ...e }),
51999
- children: /* @__PURE__ */ S(q8, { ...e })
52000
- }), Y8 = (e) => /* @__PURE__ */ S(J8, { ...e }), { Text: X8 } = WH;
52001
- function Z8({ menuItems: e, displayName: t, email: n, roleLabel: r, avatarSrc: i, avatarText: a, isLoading: o, moreActionsAriaLabel: s, logoutLabel: c, onLogout: l, children: u }) {
52002
- let d = _(() => typeof i == "string" && i.length > 8, [i]);
52003
- return o ? /* @__PURE__ */ C("div", {
52011
+ }, X8 = oJ()((e) => /* @__PURE__ */ S(vJ, { children: /* @__PURE__ */ S(Y8, { ...e }) })), Z8 = (e) => /* @__PURE__ */ S(yJ, {
52012
+ fallback: /* @__PURE__ */ S(Y8, { ...e }),
52013
+ children: /* @__PURE__ */ S(X8, { ...e })
52014
+ }), Q8 = (e) => /* @__PURE__ */ S(Z8, { ...e });
52015
+ //#endregion
52016
+ //#region src/helpers/profileUser.ts
52017
+ function $8(e, t) {
52018
+ return !e?.roleMenuPermissions?.length || !t ? "—" : e.roleMenuPermissions.find((e) => e.idApp === t)?.roleName?.trim() || "—";
52019
+ }
52020
+ //#endregion
52021
+ //#region src/lib/ProfileChip/index.tsx
52022
+ var { Text: e5 } = WH;
52023
+ function t5(e) {
52024
+ let t = e.lastName?.trim() ? ` ${e.lastName.trim()}` : "";
52025
+ return `${e.firstName?.trim() ?? ""}${t}`.trim() || e.username;
52026
+ }
52027
+ function n5({ coreApiBaseUrl: e, menuItems: t, moreActionsAriaLabel: n, logoutLabel: r, onLogout: i, children: a }) {
52028
+ let [o, s] = y(!1), c = oY(VJ) === ht.Dark, l = nY(mt.UserID), { data: u, isPending: d, isFetching: f } = z3(e), p = !!e && (d || f), m = _(() => u ? t5(u) : "", [u]), h = _(() => $8(u, vY()), [u]), g = _(() => {
52029
+ if (!(!u?.profilePicture || u.profilePicture.length <= 8)) return bY(u.profilePicture) ?? void 0;
52030
+ }, [u]), v = _(() => {
52031
+ if (!u) return "";
52032
+ let e = u.lastName ? u.lastName.charAt(0) : u.firstName?.charAt(1);
52033
+ return `${u.firstName?.charAt(0) ?? ""}${e ?? ""}`;
52034
+ }, [u]), b = _(() => ({
52035
+ items: t,
52036
+ className: "profile-chip__ant-menu"
52037
+ }), [t]);
52038
+ return l ? p ? /* @__PURE__ */ C("div", {
52004
52039
  className: "profile-chip profile-chip--loading",
52005
52040
  "aria-busy": !0,
52006
52041
  children: [/* @__PURE__ */ S(iy.Avatar, {
@@ -52019,14 +52054,14 @@ function Z8({ menuItems: e, displayName: t, email: n, roleLabel: r, avatarSrc: i
52019
52054
  style: { width: 180 }
52020
52055
  })]
52021
52056
  })]
52022
- }) : /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ C("div", {
52057
+ }) : u ? /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ C("div", {
52023
52058
  className: "profile-chip",
52024
52059
  children: [
52025
52060
  /* @__PURE__ */ C("div", {
52026
52061
  className: "profile-chip__left",
52027
52062
  children: [
52028
- d ? /* @__PURE__ */ S(hw, {
52029
- src: i,
52063
+ g ? /* @__PURE__ */ S(hw, {
52064
+ src: g,
52030
52065
  shape: "square",
52031
52066
  size: 48,
52032
52067
  className: "profile-chip__avatar"
@@ -52035,39 +52070,45 @@ function Z8({ menuItems: e, displayName: t, email: n, roleLabel: r, avatarSrc: i
52035
52070
  size: 48,
52036
52071
  className: "profile-chip__avatar",
52037
52072
  style: { textTransform: "uppercase" },
52038
- children: a ?? ""
52073
+ children: v
52039
52074
  }),
52040
52075
  /* @__PURE__ */ C("div", {
52041
52076
  className: "profile-chip__meta",
52042
52077
  children: [
52043
- /* @__PURE__ */ S(X8, {
52078
+ /* @__PURE__ */ S(e5, {
52044
52079
  className: "profile-chip__name",
52045
52080
  ellipsis: !0,
52046
- children: t
52081
+ children: m
52047
52082
  }),
52048
- /* @__PURE__ */ S(X8, {
52083
+ /* @__PURE__ */ S(e5, {
52049
52084
  type: "secondary",
52050
52085
  className: "profile-chip__email",
52051
52086
  ellipsis: !0,
52052
- children: n
52087
+ children: u.email
52053
52088
  }),
52054
52089
  /* @__PURE__ */ S(NV, {
52055
52090
  color: "geekblue",
52056
52091
  className: "profile-chip__role",
52057
- children: r
52092
+ children: h
52058
52093
  })
52059
52094
  ]
52060
52095
  }),
52061
52096
  /* @__PURE__ */ S(wj, {
52062
- menu: { items: e },
52063
52097
  trigger: ["click"],
52064
52098
  placement: "bottomRight",
52099
+ open: o,
52100
+ onOpenChange: s,
52101
+ menu: b,
52102
+ dropdownRender: (e) => /* @__PURE__ */ S("div", {
52103
+ className: (0, cY.default)("profile-chip__panel", c && "profile-chip__panel--dark"),
52104
+ children: e
52105
+ }),
52065
52106
  children: /* @__PURE__ */ S(jE, {
52066
52107
  type: "text",
52067
52108
  size: "small",
52068
52109
  icon: /* @__PURE__ */ S(iE, {}),
52069
- className: "profile-chip__more",
52070
- "aria-label": s
52110
+ className: (0, cY.default)("profile-chip__more", c && "profile-chip__more--dark"),
52111
+ "aria-label": n
52071
52112
  })
52072
52113
  })
52073
52114
  ]
@@ -52080,32 +52121,33 @@ function Z8({ menuItems: e, displayName: t, email: n, roleLabel: r, avatarSrc: i
52080
52121
  type: "text",
52081
52122
  className: "profile-chip__logout",
52082
52123
  icon: /* @__PURE__ */ S(PJ, {}),
52083
- onClick: l,
52084
- children: c
52124
+ onClick: i,
52125
+ children: r
52085
52126
  })
52086
52127
  ]
52087
- }), u] });
52128
+ }), typeof a == "function" ? a({ user: u }) : null] }) : null : null;
52088
52129
  }
52089
- //#endregion
52090
- //#region src/enums/user.ts
52091
- var Q8 = /* @__PURE__ */ function(e) {
52130
+ var r5 = oJ()((e) => /* @__PURE__ */ S(vJ, { children: /* @__PURE__ */ S(n5, { ...e }) })), i5 = (e) => /* @__PURE__ */ S(yJ, {
52131
+ fallback: /* @__PURE__ */ S(n5, { ...e }),
52132
+ children: /* @__PURE__ */ S(r5, { ...e })
52133
+ }), a5 = /* @__PURE__ */ function(e) {
52092
52134
  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;
52093
- }({}), $8 = /* @__PURE__ */ function(e) {
52135
+ }({}), o5 = /* @__PURE__ */ function(e) {
52094
52136
  return e.Tab1 = "PROFILE", e.Tab2 = "MANAGEMENT", e;
52095
- }({}), e5 = /* @__PURE__ */ function(e) {
52137
+ }({}), s5 = /* @__PURE__ */ function(e) {
52096
52138
  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;
52097
- }({}), t5 = async (e, t) => {
52139
+ }({}), c5 = async (e, t) => {
52098
52140
  let n = "GENERAL.MESSAGES";
52099
52141
  return e.then(() => {
52100
52142
  wF.success(zG(`${n}.SUCCESS.USERS`, { context: "UPDATE" })), t && t();
52101
52143
  }).catch(({ response: e }) => {
52102
- let t = e5[e?.data.code];
52144
+ let t = s5[e?.data.code];
52103
52145
  BF.error({
52104
52146
  message: zG(`${n}.ERROR.USERS.${t}`),
52105
52147
  duration: 10
52106
52148
  });
52107
52149
  });
52108
- }, n5 = async (e, t) => await TQ.post(`${e}/maintainUser`, t), r5 = {
52150
+ }, l5 = {
52109
52151
  prefix: "fas",
52110
52152
  iconName: "user",
52111
52153
  icon: [
@@ -52121,7 +52163,7 @@ var Q8 = /* @__PURE__ */ function(e) {
52121
52163
  "f007",
52122
52164
  "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"
52123
52165
  ]
52124
- }, i5 = "USERS", a5 = () => {
52166
+ }, u5 = "USERS", d5 = () => {
52125
52167
  let { t: e } = RK(), { requiredField: t } = sY();
52126
52168
  return /* @__PURE__ */ C(wI, {
52127
52169
  gutter: 8,
@@ -52129,9 +52171,9 @@ var Q8 = /* @__PURE__ */ function(e) {
52129
52171
  /* @__PURE__ */ S(KA, {
52130
52172
  span: 12,
52131
52173
  children: /* @__PURE__ */ S(uY, {
52132
- fieldName: Q8.FirstName,
52133
- label: e(`${i5}.FIRST_NAME`),
52134
- placeholder: e(`${i5}.FIRST_NAME`, { context: "PLACEHOLDER" }),
52174
+ fieldName: a5.FirstName,
52175
+ label: e(`${u5}.FIRST_NAME`),
52176
+ placeholder: e(`${u5}.FIRST_NAME`, { context: "PLACEHOLDER" }),
52135
52177
  allowClear: !0,
52136
52178
  rules: t
52137
52179
  })
@@ -52139,9 +52181,9 @@ var Q8 = /* @__PURE__ */ function(e) {
52139
52181
  /* @__PURE__ */ S(KA, {
52140
52182
  span: 12,
52141
52183
  children: /* @__PURE__ */ S(uY, {
52142
- fieldName: Q8.LastName,
52143
- label: e(`${i5}.LAST_NAME`),
52144
- placeholder: e(`${i5}.LAST_NAME`, { context: "PLACEHOLDER" }),
52184
+ fieldName: a5.LastName,
52185
+ label: e(`${u5}.LAST_NAME`),
52186
+ placeholder: e(`${u5}.LAST_NAME`, { context: "PLACEHOLDER" }),
52145
52187
  allowClear: !0,
52146
52188
  rules: t
52147
52189
  })
@@ -52149,9 +52191,9 @@ var Q8 = /* @__PURE__ */ function(e) {
52149
52191
  /* @__PURE__ */ S(KA, {
52150
52192
  span: 12,
52151
52193
  children: /* @__PURE__ */ S(uY, {
52152
- fieldName: Q8.Username,
52153
- label: e(`${i5}.USERNAME`),
52154
- placeholder: e(`${i5}.USERNAME`, { context: "PLACEHOLDER" }),
52194
+ fieldName: a5.Username,
52195
+ label: e(`${u5}.USERNAME`),
52196
+ placeholder: e(`${u5}.USERNAME`, { context: "PLACEHOLDER" }),
52155
52197
  allowClear: !0,
52156
52198
  rules: t
52157
52199
  })
@@ -52159,9 +52201,9 @@ var Q8 = /* @__PURE__ */ function(e) {
52159
52201
  /* @__PURE__ */ S(KA, {
52160
52202
  span: 12,
52161
52203
  children: /* @__PURE__ */ S(uY, {
52162
- fieldName: Q8.Email,
52163
- label: e(`${i5}.EMAIL`),
52164
- placeholder: e(`${i5}.EMAIL`, { context: "PLACEHOLDER" }),
52204
+ fieldName: a5.Email,
52205
+ label: e(`${u5}.EMAIL`),
52206
+ placeholder: e(`${u5}.EMAIL`, { context: "PLACEHOLDER" }),
52165
52207
  allowClear: !0,
52166
52208
  rules: [() => ({ validator(t, n) {
52167
52209
  return !n?.match(mY) || n?.match(hY) || n?.match(gY) ? Promise.reject(Error(e("GENERAL.FORM.ERRORS.EMAIL"))) : Promise.resolve();
@@ -52171,13 +52213,13 @@ var Q8 = /* @__PURE__ */ function(e) {
52171
52213
  /* @__PURE__ */ S(KA, {
52172
52214
  span: 12,
52173
52215
  children: /* @__PURE__ */ S(uY, {
52174
- fieldName: Q8.Password,
52175
- label: e(`${i5}.PASSWORD`),
52176
- placeholder: e(`${i5}.PASSWORD`, { context: "PLACEHOLDER" }),
52216
+ fieldName: a5.Password,
52217
+ label: e(`${u5}.PASSWORD`),
52218
+ placeholder: e(`${u5}.PASSWORD`, { context: "PLACEHOLDER" }),
52177
52219
  isPassword: !0,
52178
52220
  allowClear: !0,
52179
52221
  tooltip: /* @__PURE__ */ S(jK, {
52180
- i18nKey: e(`${i5}.PASSWORD_HINT`),
52222
+ i18nKey: e(`${u5}.PASSWORD_HINT`),
52181
52223
  components: {
52182
52224
  b: /* @__PURE__ */ S("b", {}),
52183
52225
  ul: /* @__PURE__ */ S("ul", {}),
@@ -52189,23 +52231,23 @@ var Q8 = /* @__PURE__ */ function(e) {
52189
52231
  /* @__PURE__ */ S(KA, {
52190
52232
  span: 12,
52191
52233
  children: /* @__PURE__ */ S(uY, {
52192
- fieldName: Q8.ConfirmPassword,
52193
- label: e(`${i5}.PASSWORD-CONFIRM`),
52194
- placeholder: e(`${i5}.PASSWORD-CONFIRM`, { context: "PLACEHOLDER" }),
52234
+ fieldName: a5.ConfirmPassword,
52235
+ label: e(`${u5}.PASSWORD-CONFIRM`),
52236
+ placeholder: e(`${u5}.PASSWORD-CONFIRM`, { context: "PLACEHOLDER" }),
52195
52237
  isPassword: !0,
52196
52238
  allowClear: !0,
52197
52239
  rules: [({ getFieldValue: t }) => ({ validator(n, r) {
52198
- return !r || t(Q8.Password) === r ? Promise.resolve() : Promise.reject(Error(e("GENERAL.FORM.ERRORS.CONFIRM_PASSWORD")));
52240
+ return !r || t(a5.Password) === r ? Promise.resolve() : Promise.reject(Error(e("GENERAL.FORM.ERRORS.CONFIRM_PASSWORD")));
52199
52241
  } })]
52200
52242
  })
52201
52243
  })
52202
52244
  ]
52203
52245
  });
52204
- }, o5 = "USERS", s5 = ({ user: e, appId: t, gauApiUrl: n, isLoading: r, isOpen: i, onCancel: a }) => {
52205
- let { t: o } = RK(), [s] = kM.useForm(), c = oY(VJ) === ht.Dark, { data: l } = F3(n, !!(n && t)), u = kM.useWatch(Q8.ProfilePicture, s), d = t ? e.userRolesApp.find((e) => e.idApp === t) : void 0, p = _(() => d && l ? l.find((e) => e.idRole === d.roleId) : void 0, [l, d]);
52246
+ }, f5 = "USERS", p5 = ({ user: e, appId: t, gauApiUrl: n, isLoading: r, isOpen: i, onCancel: a }) => {
52247
+ let { t: o } = RK(), [s] = kM.useForm(), c = oY(VJ) === ht.Dark, { data: l } = L3(n, !!(n && t)), u = kM.useWatch(a5.ProfilePicture, s), d = t ? e.userRolesApp.find((e) => e.idApp === t) : void 0, p = _(() => d && l ? l.find((e) => e.idRole === d.roleId) : void 0, [l, d]);
52206
52248
  f(() => (e && i && s.setFieldsValue({
52207
52249
  ...e,
52208
- [Q8.ProfilePicture]: bY(e.profilePicture)
52250
+ [a5.ProfilePicture]: bY(e.profilePicture)
52209
52251
  }), () => {
52210
52252
  s.resetFields();
52211
52253
  }), [
@@ -52214,25 +52256,25 @@ var Q8 = /* @__PURE__ */ function(e) {
52214
52256
  s
52215
52257
  ]);
52216
52258
  let m = (t) => {
52217
- t5(n5(n, {
52259
+ c5(I3(n, {
52218
52260
  ...e,
52219
52261
  ...t,
52220
- [Q8.ProfilePicture]: xY(t?.[Q8.ProfilePicture])
52262
+ [a5.ProfilePicture]: xY(t?.[a5.ProfilePicture])
52221
52263
  }), a);
52222
52264
  }, h = (e) => {
52223
- e.stopPropagation(), s.setFieldValue(Q8.ProfilePicture, void 0);
52265
+ e.stopPropagation(), s.setFieldValue(a5.ProfilePicture, void 0);
52224
52266
  }, g = (e) => (yY(e, (e) => {
52225
- s.setFieldValue(Q8.ProfilePicture, e);
52267
+ s.setFieldValue(a5.ProfilePicture, e);
52226
52268
  }), !1), v = /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S(FD, {}), /* @__PURE__ */ S("div", {
52227
52269
  style: { marginTop: 8 },
52228
52270
  children: o("UPLOAD")
52229
52271
  })] }), y = [{
52230
52272
  label: /* @__PURE__ */ C("span", { children: [/* @__PURE__ */ S(C3, {
52231
- icon: r5,
52273
+ icon: l5,
52232
52274
  style: { marginRight: 5 }
52233
- }), o(`${o5}.${$8.Tab1}`)] }),
52234
- key: $8.Tab1,
52235
- children: /* @__PURE__ */ S(a5, {}),
52275
+ }), o(`${f5}.${o5.Tab1}`)] }),
52276
+ key: o5.Tab1,
52277
+ children: /* @__PURE__ */ S(d5, {}),
52236
52278
  forceRender: !0
52237
52279
  }], b = [e.firstName, e.lastName].filter(Boolean).join(" ").trim() || e.username;
52238
52280
  return /* @__PURE__ */ S(vJ, { children: /* @__PURE__ */ S(DF, {
@@ -52242,7 +52284,7 @@ var Q8 = /* @__PURE__ */ function(e) {
52242
52284
  className: "user-modal__title-block",
52243
52285
  children: [/* @__PURE__ */ S("div", {
52244
52286
  className: "user-modal__title",
52245
- children: o(`${o5}.EDIT`, { context: "USER" })
52287
+ children: o(`${f5}.EDIT`, { context: "USER" })
52246
52288
  }), t ? /* @__PURE__ */ C("div", {
52247
52289
  className: "user-modal__meta",
52248
52290
  children: [/* @__PURE__ */ S("span", {
@@ -52263,8 +52305,8 @@ var Q8 = /* @__PURE__ */ function(e) {
52263
52305
  onCancel: a,
52264
52306
  open: i,
52265
52307
  maskClosable: !1,
52266
- okText: o(`${o5}.SUBMIT`),
52267
- cancelText: o(`${o5}.CANCEL`),
52308
+ okText: o(`${f5}.SUBMIT`),
52309
+ cancelText: o(`${f5}.CANCEL`),
52268
52310
  style: { maxWidth: 900 },
52269
52311
  okButtonProps: { loading: r },
52270
52312
  destroyOnHidden: !0,
@@ -52281,14 +52323,14 @@ var Q8 = /* @__PURE__ */ function(e) {
52281
52323
  layout: "vertical",
52282
52324
  className: (0, cY.default)("user-modal__form", c && "user-modal__form--dark"),
52283
52325
  children: [/* @__PURE__ */ C(wI, { children: [/* @__PURE__ */ S(uY, {
52284
- fieldName: Q8.User,
52326
+ fieldName: a5.User,
52285
52327
  hidden: !0
52286
52328
  }), /* @__PURE__ */ S(KA, {
52287
52329
  span: 24,
52288
52330
  children: /* @__PURE__ */ S(wI, {
52289
52331
  justify: "center",
52290
52332
  children: /* @__PURE__ */ S(kM.Item, {
52291
- name: Q8.ProfilePicture,
52333
+ name: a5.ProfilePicture,
52292
52334
  children: /* @__PURE__ */ S(RU, {
52293
52335
  listType: "picture-circle",
52294
52336
  className: "avatar-uploader",
@@ -52322,20 +52364,20 @@ var Q8 = /* @__PURE__ */ function(e) {
52322
52364
  })
52323
52365
  })
52324
52366
  })] }), /* @__PURE__ */ S(LO, {
52325
- defaultActiveKey: $8.Tab1,
52367
+ defaultActiveKey: o5.Tab1,
52326
52368
  type: "card",
52327
52369
  size: "small",
52328
52370
  items: y
52329
52371
  })]
52330
52372
  })
52331
52373
  }) });
52332
- }, c5 = oJ()((e) => /* @__PURE__ */ S(vJ, { children: /* @__PURE__ */ S(s5, { ...e }) })), l5 = (e) => /* @__PURE__ */ S(yJ, {
52333
- fallback: /* @__PURE__ */ S(s5, { ...e }),
52334
- children: /* @__PURE__ */ S(c5, { ...e })
52335
- }), u5 = (e) => /* @__PURE__ */ S(l5, { ...e });
52374
+ }, m5 = oJ()((e) => /* @__PURE__ */ S(vJ, { children: /* @__PURE__ */ S(p5, { ...e }) })), h5 = (e) => /* @__PURE__ */ S(yJ, {
52375
+ fallback: /* @__PURE__ */ S(p5, { ...e }),
52376
+ children: /* @__PURE__ */ S(m5, { ...e })
52377
+ }), g5 = (e) => /* @__PURE__ */ S(h5, { ...e });
52336
52378
  //#endregion
52337
52379
  //#region src/lib/WhatsNews/useElementSize.ts
52338
- function d5(e) {
52380
+ function _5(e) {
52339
52381
  let [t, n] = y(0);
52340
52382
  return f(() => {
52341
52383
  let t = e.current;
@@ -52349,8 +52391,8 @@ function d5(e) {
52349
52391
  }
52350
52392
  //#endregion
52351
52393
  //#region src/lib/WhatsNews/index.tsx
52352
- var { Title: f5, Text: p5 } = WH, m5 = ({ releaseNotes: e, currentApp: t, userId: n, onDoNotShowAgain: r, formatImageSrc: i = bY, dateFormat: a = pY }) => {
52353
- let [o, s] = y(!1), [c, l] = y(!1), [u, d] = y(0), { t: p } = RK(), m = v(null), h = v(null), g = d5(h), _ = e?.[0];
52394
+ var { Title: v5, Text: y5 } = WH, b5 = ({ releaseNotes: e, currentApp: t, userId: n, onDoNotShowAgain: r, formatImageSrc: i = bY, dateFormat: a = pY }) => {
52395
+ let [o, s] = y(!1), [c, l] = y(!1), [u, d] = y(0), { t: p } = RK(), m = v(null), h = v(null), g = _5(h), _ = e?.[0];
52354
52396
  f(() => {
52355
52397
  if (e?.length && e[0].gaReleasePages?.length) {
52356
52398
  let t = e[0];
@@ -52424,10 +52466,10 @@ var { Title: f5, Text: p5 } = WH, m5 = ({ releaseNotes: e, currentApp: t, userId
52424
52466
  vertical: !0,
52425
52467
  children: (e ?? []).map(({ title: e, description: t }, r) => /* @__PURE__ */ C(Rj, {
52426
52468
  vertical: !0,
52427
- children: [/* @__PURE__ */ S(f5, {
52469
+ children: [/* @__PURE__ */ S(v5, {
52428
52470
  level: 5,
52429
52471
  children: e
52430
- }), /* @__PURE__ */ S(p5, {
52472
+ }), /* @__PURE__ */ S(y5, {
52431
52473
  style: {
52432
52474
  opacity: .5,
52433
52475
  whiteSpace: "pre-wrap"
@@ -52469,16 +52511,16 @@ var { Title: f5, Text: p5 } = WH, m5 = ({ releaseNotes: e, currentApp: t, userId
52469
52511
  })
52470
52512
  })
52471
52513
  });
52472
- }, h5 = oJ()((e) => /* @__PURE__ */ S(vJ, { children: /* @__PURE__ */ S(m5, { ...e }) })), g5 = (e) => /* @__PURE__ */ S(yJ, {
52473
- fallback: /* @__PURE__ */ S(m5, { ...e }),
52474
- children: /* @__PURE__ */ S(h5, { ...e })
52475
- }), _5 = (e) => /* @__PURE__ */ S(g5, { ...e }), { slice: v5, forEach: y5 } = [];
52476
- function b5(e) {
52477
- return y5.call(v5.call(arguments, 1), (t) => {
52514
+ }, x5 = oJ()((e) => /* @__PURE__ */ S(vJ, { children: /* @__PURE__ */ S(b5, { ...e }) })), S5 = (e) => /* @__PURE__ */ S(yJ, {
52515
+ fallback: /* @__PURE__ */ S(b5, { ...e }),
52516
+ children: /* @__PURE__ */ S(x5, { ...e })
52517
+ }), C5 = (e) => /* @__PURE__ */ S(S5, { ...e }), { slice: w5, forEach: T5 } = [];
52518
+ function E5(e) {
52519
+ return T5.call(w5.call(arguments, 1), (t) => {
52478
52520
  if (t) for (let n in t) e[n] === void 0 && (e[n] = t[n]);
52479
52521
  }), e;
52480
52522
  }
52481
- function x5(e) {
52523
+ function D5(e) {
52482
52524
  return typeof e == "string" ? [
52483
52525
  /<\s*script.*?>/i,
52484
52526
  /<\s*\/\s*script\s*>/i,
@@ -52495,7 +52537,7 @@ function x5(e) {
52495
52537
  /innerHTML/i
52496
52538
  ].some((t) => t.test(e)) : !1;
52497
52539
  }
52498
- var S5 = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, C5 = function(e, t) {
52540
+ var O5 = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, k5 = function(e, t) {
52499
52541
  let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : { path: "/" }, r = `${e}=${encodeURIComponent(t)}`;
52500
52542
  if (n.maxAge > 0) {
52501
52543
  let e = n.maxAge - 0;
@@ -52503,11 +52545,11 @@ var S5 = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, C5 = function(e, t) {
52503
52545
  r += `; Max-Age=${Math.floor(e)}`;
52504
52546
  }
52505
52547
  if (n.domain) {
52506
- if (!S5.test(n.domain)) throw TypeError("option domain is invalid");
52548
+ if (!O5.test(n.domain)) throw TypeError("option domain is invalid");
52507
52549
  r += `; Domain=${n.domain}`;
52508
52550
  }
52509
52551
  if (n.path) {
52510
- if (!S5.test(n.path)) throw TypeError("option path is invalid");
52552
+ if (!O5.test(n.path)) throw TypeError("option path is invalid");
52511
52553
  r += `; Path=${n.path}`;
52512
52554
  }
52513
52555
  if (n.expires) {
@@ -52530,13 +52572,13 @@ var S5 = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, C5 = function(e, t) {
52530
52572
  default: throw TypeError("option sameSite is invalid");
52531
52573
  }
52532
52574
  return n.partitioned && (r += "; Partitioned"), r;
52533
- }, w5 = {
52575
+ }, A5 = {
52534
52576
  create(e, t, n, r) {
52535
52577
  let i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
52536
52578
  path: "/",
52537
52579
  sameSite: "strict"
52538
52580
  };
52539
- n && (i.expires = /* @__PURE__ */ new Date(), i.expires.setTime(i.expires.getTime() + n * 60 * 1e3)), r && (i.domain = r), document.cookie = C5(e, t, i);
52581
+ n && (i.expires = /* @__PURE__ */ new Date(), i.expires.setTime(i.expires.getTime() + n * 60 * 1e3)), r && (i.domain = r), document.cookie = k5(e, t, i);
52540
52582
  },
52541
52583
  read(e) {
52542
52584
  let t = `${e}=`, n = document.cookie.split(";");
@@ -52550,17 +52592,17 @@ var S5 = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, C5 = function(e, t) {
52550
52592
  remove(e, t) {
52551
52593
  this.create(e, "", -1, t);
52552
52594
  }
52553
- }, T5 = {
52595
+ }, j5 = {
52554
52596
  name: "cookie",
52555
52597
  lookup(e) {
52556
52598
  let { lookupCookie: t } = e;
52557
- if (t && typeof document < "u") return w5.read(t) || void 0;
52599
+ if (t && typeof document < "u") return A5.read(t) || void 0;
52558
52600
  },
52559
52601
  cacheUserLanguage(e, t) {
52560
52602
  let { lookupCookie: n, cookieMinutes: r, cookieDomain: i, cookieOptions: a } = t;
52561
- n && typeof document < "u" && w5.create(n, e, r, i, a);
52603
+ n && typeof document < "u" && A5.create(n, e, r, i, a);
52562
52604
  }
52563
- }, E5 = {
52605
+ }, M5 = {
52564
52606
  name: "querystring",
52565
52607
  lookup(e) {
52566
52608
  let { lookupQuerystring: t } = e, n;
@@ -52575,7 +52617,7 @@ var S5 = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, C5 = function(e, t) {
52575
52617
  }
52576
52618
  return n;
52577
52619
  }
52578
- }, D5 = {
52620
+ }, N5 = {
52579
52621
  name: "hash",
52580
52622
  lookup(e) {
52581
52623
  let { lookupHash: t, lookupFromHashIndex: n } = e, r;
@@ -52599,47 +52641,47 @@ var S5 = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, C5 = function(e, t) {
52599
52641
  }
52600
52642
  return r;
52601
52643
  }
52602
- }, O5 = null, k5 = () => {
52603
- if (O5 !== null) return O5;
52644
+ }, P5 = null, F5 = () => {
52645
+ if (P5 !== null) return P5;
52604
52646
  try {
52605
- if (O5 = typeof window < "u" && window.localStorage !== null, !O5) return !1;
52647
+ if (P5 = typeof window < "u" && window.localStorage !== null, !P5) return !1;
52606
52648
  let e = "i18next.translate.boo";
52607
52649
  window.localStorage.setItem(e, "foo"), window.localStorage.removeItem(e);
52608
52650
  } catch {
52609
- O5 = !1;
52651
+ P5 = !1;
52610
52652
  }
52611
- return O5;
52612
- }, A5 = {
52653
+ return P5;
52654
+ }, I5 = {
52613
52655
  name: "localStorage",
52614
52656
  lookup(e) {
52615
52657
  let { lookupLocalStorage: t } = e;
52616
- if (t && k5()) return window.localStorage.getItem(t) || void 0;
52658
+ if (t && F5()) return window.localStorage.getItem(t) || void 0;
52617
52659
  },
52618
52660
  cacheUserLanguage(e, t) {
52619
52661
  let { lookupLocalStorage: n } = t;
52620
- n && k5() && window.localStorage.setItem(n, e);
52662
+ n && F5() && window.localStorage.setItem(n, e);
52621
52663
  }
52622
- }, j5 = null, M5 = () => {
52623
- if (j5 !== null) return j5;
52664
+ }, L5 = null, R5 = () => {
52665
+ if (L5 !== null) return L5;
52624
52666
  try {
52625
- if (j5 = typeof window < "u" && window.sessionStorage !== null, !j5) return !1;
52667
+ if (L5 = typeof window < "u" && window.sessionStorage !== null, !L5) return !1;
52626
52668
  let e = "i18next.translate.boo";
52627
52669
  window.sessionStorage.setItem(e, "foo"), window.sessionStorage.removeItem(e);
52628
52670
  } catch {
52629
- j5 = !1;
52671
+ L5 = !1;
52630
52672
  }
52631
- return j5;
52632
- }, N5 = {
52673
+ return L5;
52674
+ }, z5 = {
52633
52675
  name: "sessionStorage",
52634
52676
  lookup(e) {
52635
52677
  let { lookupSessionStorage: t } = e;
52636
- if (t && M5()) return window.sessionStorage.getItem(t) || void 0;
52678
+ if (t && R5()) return window.sessionStorage.getItem(t) || void 0;
52637
52679
  },
52638
52680
  cacheUserLanguage(e, t) {
52639
52681
  let { lookupSessionStorage: n } = t;
52640
- n && M5() && window.sessionStorage.setItem(n, e);
52682
+ n && R5() && window.sessionStorage.setItem(n, e);
52641
52683
  }
52642
- }, P5 = {
52684
+ }, B5 = {
52643
52685
  name: "navigator",
52644
52686
  lookup(e) {
52645
52687
  let t = [];
@@ -52650,13 +52692,13 @@ var S5 = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, C5 = function(e, t) {
52650
52692
  }
52651
52693
  return t.length > 0 ? t : void 0;
52652
52694
  }
52653
- }, F5 = {
52695
+ }, V5 = {
52654
52696
  name: "htmlTag",
52655
52697
  lookup(e) {
52656
52698
  let { htmlTag: t } = e, n, r = t || (typeof document < "u" ? document.documentElement : null);
52657
52699
  return r && typeof r.getAttribute == "function" && (n = r.getAttribute("lang")), n;
52658
52700
  }
52659
- }, I5 = {
52701
+ }, H5 = {
52660
52702
  name: "path",
52661
52703
  lookup(e) {
52662
52704
  let { lookupFromPathIndex: t } = e;
@@ -52664,17 +52706,17 @@ var S5 = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, C5 = function(e, t) {
52664
52706
  let n = window.location.pathname.match(/\/([a-zA-Z-]*)/g);
52665
52707
  if (Array.isArray(n)) return n[typeof t == "number" ? t : 0]?.replace("/", "");
52666
52708
  }
52667
- }, L5 = {
52709
+ }, U5 = {
52668
52710
  name: "subdomain",
52669
52711
  lookup(e) {
52670
52712
  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);
52671
52713
  if (r) return r[n];
52672
52714
  }
52673
- }, R5 = !1;
52715
+ }, W5 = !1;
52674
52716
  try {
52675
- document.cookie, R5 = !0;
52717
+ document.cookie, W5 = !0;
52676
52718
  } catch {}
52677
- var z5 = [
52719
+ var G5 = [
52678
52720
  "querystring",
52679
52721
  "cookie",
52680
52722
  "localStorage",
@@ -52682,9 +52724,9 @@ var z5 = [
52682
52724
  "navigator",
52683
52725
  "htmlTag"
52684
52726
  ];
52685
- R5 || z5.splice(1, 1);
52686
- var B5 = () => ({
52687
- order: z5,
52727
+ W5 || G5.splice(1, 1);
52728
+ var K5 = () => ({
52729
+ order: G5,
52688
52730
  lookupQuerystring: "lng",
52689
52731
  lookupCookie: "i18next",
52690
52732
  lookupLocalStorage: "i18nextLng",
@@ -52692,14 +52734,14 @@ var B5 = () => ({
52692
52734
  caches: ["localStorage"],
52693
52735
  excludeCacheFor: ["cimode"],
52694
52736
  convertDetectedLanguage: (e) => e
52695
- }), V5 = class {
52737
+ }), q5 = class {
52696
52738
  constructor(e) {
52697
52739
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
52698
52740
  this.type = "languageDetector", this.detectors = {}, this.init(e, t);
52699
52741
  }
52700
52742
  init() {
52701
52743
  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] : {};
52702
- this.services = e, this.options = b5(t, this.options || {}, B5()), 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(T5), this.addDetector(E5), this.addDetector(A5), this.addDetector(N5), this.addDetector(P5), this.addDetector(F5), this.addDetector(I5), this.addDetector(L5), this.addDetector(D5);
52744
+ this.services = e, this.options = E5(t, this.options || {}, K5()), 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(j5), this.addDetector(M5), this.addDetector(I5), this.addDetector(z5), this.addDetector(B5), this.addDetector(V5), this.addDetector(H5), this.addDetector(U5), this.addDetector(N5);
52703
52745
  }
52704
52746
  addDetector(e) {
52705
52747
  return this.detectors[e.name] = e, this;
@@ -52711,7 +52753,7 @@ var B5 = () => ({
52711
52753
  let n = this.detectors[e].lookup(this.options);
52712
52754
  n && typeof n == "string" && (n = [n]), n && (t = t.concat(n));
52713
52755
  }
52714
- }), t = t.filter((e) => e != null && !x5(e)).map((e) => this.options.convertDetectedLanguage(e)), this.services && this.services.languageUtils && this.services.languageUtils.getBestMatchFromCodes ? t : t.length > 0 ? t[0] : null;
52756
+ }), t = t.filter((e) => e != null && !D5(e)).map((e) => this.options.convertDetectedLanguage(e)), this.services && this.services.languageUtils && this.services.languageUtils.getBestMatchFromCodes ? t : t.length > 0 ? t[0] : null;
52715
52757
  }
52716
52758
  cacheUserLanguage(e) {
52717
52759
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.options.caches;
@@ -52722,7 +52764,7 @@ var B5 = () => ({
52722
52764
  };
52723
52765
  //#endregion
52724
52766
  //#region src/i18n/index.ts
52725
- V5.type = "languageDetector", RG.use(V5).use(OK).init({
52767
+ q5.type = "languageDetector", RG.use(q5).use(OK).init({
52726
52768
  debug: !1,
52727
52769
  fallbackLng: "PT",
52728
52770
  interpolation: { escapeValue: !1 },
@@ -53599,6 +53641,6 @@ V5.type = "languageDetector", RG.use(V5).use(OK).init({
53599
53641
  } }
53600
53642
  }
53601
53643
  });
53602
- var H5 = RG;
53644
+ var J5 = RG;
53603
53645
  //#endregion
53604
- export { j3 as Helpdesk, K3 as LanguageSwitcher, Z8 as ProfileChip, Y8 as ThemeModeToggle, u5 as UserModal, _5 as WhatsNews, KJ as clearAquasisApiContext, GJ as getAquasisApiContext, H5 as i18n, WJ as replaceAquasisApiContext, UJ as setAquasisApiContext };
53646
+ export { j3 as Helpdesk, Y3 as LanguageSwitcher, i5 as ProfileChipComponent, Q8 as ThemeModeToggle, g5 as UserModal, C5 as WhatsNews, KJ as clearAquasisApiContext, GJ as getAquasisApiContext, J5 as i18n, WJ as replaceAquasisApiContext, UJ as setAquasisApiContext, z3 as useGetProfileUser };