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.
- package/dist/aquasis-fe-components.js +483 -464
- package/dist/aquasis-fe-components.umd.cjs +1 -1
- package/dist/src/lib/ProfileChip/index.d.ts +1 -1
- package/dist/src/reactQuery/index.d.ts +2 -2
- package/dist/src/services/userServices.d.ts +3 -1
- package/dist/src/types/profileChip.d.ts +4 -17
- package/package.json +1 -1
|
@@ -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
|
-
}
|
|
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
|
-
}),
|
|
51238
|
+
}), Q3 = (e) => pt({
|
|
51234
51239
|
queryKey: [W3.GetLanguages, e],
|
|
51235
51240
|
queryFn: async () => await G3(e),
|
|
51236
51241
|
enabled: !!e
|
|
51237
|
-
}),
|
|
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
|
-
},
|
|
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
|
|
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
|
|
51270
|
-
let [r, i] = y(!1), a =
|
|
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
|
|
51294
|
+
function r6(e) {
|
|
51290
51295
|
return [...e].sort((e, t) => String(e.description).localeCompare(String(t.description)));
|
|
51291
51296
|
}
|
|
51292
|
-
var
|
|
51293
|
-
let { i18n: r, t: i } = RK(), [a, o] = y(!1), s = vY($J) === ht.Dark, { data: c, isPending: l, isFetching: u } =
|
|
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.${
|
|
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(
|
|
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(
|
|
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.${
|
|
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
|
-
},
|
|
51377
|
-
fallback: /* @__PURE__ */ S(
|
|
51378
|
-
children: /* @__PURE__ */ S(
|
|
51379
|
-
}),
|
|
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
|
|
51382
|
-
`${/* @__PURE__ */
|
|
51383
|
-
function
|
|
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
|
|
51390
|
-
return
|
|
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
|
|
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
|
|
51427
|
+
function h6(e, ...t) {
|
|
51423
51428
|
if (process.env.NODE_ENV !== "production") {
|
|
51424
|
-
let 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
|
|
51430
|
-
function
|
|
51431
|
-
return e ?
|
|
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
|
|
51434
|
-
function
|
|
51435
|
-
if (!e || !
|
|
51436
|
-
let t =
|
|
51437
|
-
if (t === null || t ===
|
|
51438
|
-
let n =
|
|
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 (!
|
|
51441
|
-
let r =
|
|
51442
|
-
return r === void 0 && (r = Function.toString.call(n),
|
|
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
|
|
51445
|
-
|
|
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
|
|
51450
|
-
let t = e[
|
|
51451
|
-
return t ? t.type_ :
|
|
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
|
|
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
|
|
51461
|
+
function P6(e, t) {
|
|
51457
51462
|
return e === t ? e !== 0 || 1 / e == 1 / t : e !== e && t !== t;
|
|
51458
51463
|
}
|
|
51459
|
-
var
|
|
51460
|
-
function
|
|
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
|
|
51465
|
-
function
|
|
51466
|
-
if (
|
|
51467
|
-
if (
|
|
51468
|
-
if (
|
|
51469
|
-
let n =
|
|
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 =
|
|
51472
|
-
delete t[
|
|
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[
|
|
51477
|
-
[v6]: !0,
|
|
51481
|
+
a[S6] === !1 && (a[S6] = !0, a[b6] = !0), (a.get || a.set) && (t[i] = {
|
|
51478
51482
|
[b6]: !0,
|
|
51479
|
-
[
|
|
51480
|
-
[x6]:
|
|
51483
|
+
[S6]: !0,
|
|
51484
|
+
[x6]: a[x6],
|
|
51485
|
+
[C6]: e[i]
|
|
51481
51486
|
});
|
|
51482
51487
|
}
|
|
51483
|
-
return
|
|
51488
|
+
return g6.create(_6(e), t);
|
|
51484
51489
|
} else {
|
|
51485
|
-
let t =
|
|
51490
|
+
let t = _6(e);
|
|
51486
51491
|
if (t !== null && n) return { ...e };
|
|
51487
|
-
let r =
|
|
51488
|
-
return
|
|
51489
|
-
}
|
|
51490
|
-
}
|
|
51491
|
-
function
|
|
51492
|
-
return
|
|
51493
|
-
set:
|
|
51494
|
-
add:
|
|
51495
|
-
clear:
|
|
51496
|
-
delete:
|
|
51497
|
-
}),
|
|
51498
|
-
|
|
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
|
|
51502
|
-
|
|
51506
|
+
function K6() {
|
|
51507
|
+
h6(2);
|
|
51503
51508
|
}
|
|
51504
|
-
var
|
|
51505
|
-
function
|
|
51506
|
-
return e === null || !
|
|
51509
|
+
var q6 = { [C6]: K6 };
|
|
51510
|
+
function J6(e) {
|
|
51511
|
+
return e === null || !R6(e) ? !0 : g6.isFrozen(e);
|
|
51507
51512
|
}
|
|
51508
|
-
var
|
|
51509
|
-
function
|
|
51510
|
-
let t =
|
|
51511
|
-
return 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
|
|
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_:
|
|
51522
|
-
arrayMethodsPlugin_:
|
|
51526
|
+
mapSetPlugin_: e8(Y6) ? $6(Y6) : void 0,
|
|
51527
|
+
arrayMethodsPlugin_: e8(Z6) ? $6(Z6) : void 0
|
|
51523
51528
|
});
|
|
51524
|
-
function
|
|
51525
|
-
t && (e.patchPlugin_ =
|
|
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
|
|
51531
|
-
e
|
|
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
|
-
|
|
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
|
|
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[
|
|
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[
|
|
51545
|
-
} else e =
|
|
51546
|
-
return
|
|
51547
|
-
}
|
|
51548
|
-
function
|
|
51549
|
-
if (
|
|
51550
|
-
let n = t[
|
|
51551
|
-
if (!n) return
|
|
51552
|
-
if (!
|
|
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
|
-
|
|
51562
|
+
_8(n, e);
|
|
51558
51563
|
}
|
|
51559
51564
|
return n.copy_;
|
|
51560
51565
|
}
|
|
51561
|
-
function
|
|
51562
|
-
!e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ &&
|
|
51566
|
+
function d8(e, t, n = !1) {
|
|
51567
|
+
!e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && G6(t, n);
|
|
51563
51568
|
}
|
|
51564
|
-
function
|
|
51569
|
+
function f8(e) {
|
|
51565
51570
|
e.finalized_ = !0, e.scope_.unfinalizedDrafts_--;
|
|
51566
51571
|
}
|
|
51567
|
-
var
|
|
51568
|
-
function
|
|
51569
|
-
let i =
|
|
51570
|
-
if (r !== void 0 &&
|
|
51571
|
-
|
|
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
|
-
|
|
51577
|
-
if (
|
|
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) ??
|
|
51584
|
-
for (let e of o)
|
|
51588
|
+
let o = e.draftLocations_.get(t) ?? m8;
|
|
51589
|
+
for (let e of o) N6(i, e, n, a);
|
|
51585
51590
|
}
|
|
51586
|
-
function
|
|
51591
|
+
function g8(e, t, n) {
|
|
51587
51592
|
e.callbacks_.push(function(r) {
|
|
51588
51593
|
let i = t;
|
|
51589
|
-
if (!i || !
|
|
51594
|
+
if (!i || !p8(i, r)) return;
|
|
51590
51595
|
r.mapSetPlugin_?.fixSetContents(i);
|
|
51591
|
-
let a =
|
|
51592
|
-
|
|
51596
|
+
let a = U6(i);
|
|
51597
|
+
h8(e, i.draft_ ?? i, a, n), _8(i, r);
|
|
51593
51598
|
});
|
|
51594
51599
|
}
|
|
51595
|
-
function
|
|
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
|
-
|
|
51607
|
+
f8(e);
|
|
51603
51608
|
}
|
|
51604
51609
|
}
|
|
51605
|
-
function
|
|
51610
|
+
function v8(e, t, n) {
|
|
51606
51611
|
let { scope_: r } = e;
|
|
51607
|
-
if (
|
|
51608
|
-
let i = n[
|
|
51609
|
-
|
|
51610
|
-
|
|
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
|
|
51613
|
-
let i =
|
|
51614
|
-
e.type_ === 3 ? i.has(n) &&
|
|
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
|
|
51618
|
-
return !n.immer_.autoFreeze_ && n.unfinalizedDrafts_ < 1 ||
|
|
51619
|
-
if (
|
|
51620
|
-
let t = i[
|
|
51621
|
-
|
|
51622
|
-
} else
|
|
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
|
|
51626
|
-
let n =
|
|
51630
|
+
function b8(e, t) {
|
|
51631
|
+
let n = F6(e), r = {
|
|
51627
51632
|
type_: +!!n,
|
|
51628
|
-
scope_: t ? t.scope_ :
|
|
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 =
|
|
51640
|
-
n && (i = [r], a =
|
|
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
|
|
51649
|
+
var x8 = {
|
|
51645
51650
|
get(e, t) {
|
|
51646
|
-
if (t ===
|
|
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 =
|
|
51650
|
-
if (!
|
|
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_ || !
|
|
51653
|
-
if (a ===
|
|
51654
|
-
|
|
51655
|
-
let n = e.type_ === 1 ? +t : t, r =
|
|
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
|
|
51666
|
+
return t in H6(e);
|
|
51662
51667
|
},
|
|
51663
51668
|
ownKeys(e) {
|
|
51664
|
-
return Reflect.ownKeys(
|
|
51669
|
+
return Reflect.ownKeys(H6(e));
|
|
51665
51670
|
},
|
|
51666
51671
|
set(e, t, n) {
|
|
51667
|
-
let r =
|
|
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 =
|
|
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 (
|
|
51673
|
-
|
|
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),
|
|
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
|
|
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 =
|
|
51686
|
+
let n = H6(e), r = Reflect.getOwnPropertyDescriptor(n, t);
|
|
51682
51687
|
return r && {
|
|
51683
|
-
[
|
|
51684
|
-
[
|
|
51685
|
-
[
|
|
51686
|
-
[
|
|
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
|
-
|
|
51695
|
+
h6(11);
|
|
51691
51696
|
},
|
|
51692
51697
|
getPrototypeOf(e) {
|
|
51693
|
-
return
|
|
51698
|
+
return _6(e.base_);
|
|
51694
51699
|
},
|
|
51695
51700
|
setPrototypeOf() {
|
|
51696
|
-
|
|
51701
|
+
h6(12);
|
|
51697
51702
|
}
|
|
51698
|
-
},
|
|
51699
|
-
for (let e in
|
|
51700
|
-
let t =
|
|
51701
|
-
|
|
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
|
-
|
|
51707
|
-
return process.env.NODE_ENV !== "production" && isNaN(parseInt(t)) &&
|
|
51708
|
-
},
|
|
51709
|
-
return process.env.NODE_ENV !== "production" && t !== "length" && isNaN(parseInt(t)) &&
|
|
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
|
|
51712
|
-
let n = e[
|
|
51713
|
-
return (n ?
|
|
51716
|
+
function C8(e, t) {
|
|
51717
|
+
let n = e[p6];
|
|
51718
|
+
return (n ? H6(n) : e)[t];
|
|
51714
51719
|
}
|
|
51715
|
-
function
|
|
51716
|
-
let r =
|
|
51717
|
-
return r ?
|
|
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
|
|
51724
|
+
function T8(e, t) {
|
|
51720
51725
|
if (!(t in e)) return;
|
|
51721
|
-
let n =
|
|
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 =
|
|
51730
|
+
n = _6(n);
|
|
51726
51731
|
}
|
|
51727
51732
|
}
|
|
51728
|
-
function
|
|
51729
|
-
e.modified_ || (e.modified_ = !0, e.parent_ &&
|
|
51733
|
+
function E8(e) {
|
|
51734
|
+
e.modified_ || (e.modified_ = !0, e.parent_ && E8(e.parent_));
|
|
51730
51735
|
}
|
|
51731
|
-
function
|
|
51732
|
-
e.copy_ ||= (e.assigned_ = /* @__PURE__ */ new Map(),
|
|
51736
|
+
function D8(e) {
|
|
51737
|
+
e.copy_ ||= (e.assigned_ = /* @__PURE__ */ new Map(), W6(e.base_, e.scope_.immer_.useStrictShallowCopy_));
|
|
51733
51738
|
}
|
|
51734
|
-
var
|
|
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 (
|
|
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
|
-
|
|
51750
|
+
z6(t) || h6(6), n !== void 0 && !z6(n) && h6(7);
|
|
51746
51751
|
let r;
|
|
51747
|
-
if (
|
|
51748
|
-
let i =
|
|
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 ?
|
|
51757
|
+
o ? a8(i) : o8(i);
|
|
51753
51758
|
}
|
|
51754
|
-
return
|
|
51755
|
-
} else if (!e || !
|
|
51756
|
-
if (r = t(e), r === void 0 && (r = e), r ===
|
|
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
|
-
|
|
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
|
|
51769
|
+
} else h6(1, e);
|
|
51765
51770
|
}, this.produceWithPatches = (e, t) => {
|
|
51766
|
-
if (
|
|
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
|
-
},
|
|
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
|
-
|
|
51779
|
-
let t =
|
|
51780
|
-
return 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[
|
|
51784
|
-
(!n || !n.isManual_) &&
|
|
51788
|
+
let n = e && e[p6];
|
|
51789
|
+
(!n || !n.isManual_) && h6(9);
|
|
51785
51790
|
let { scope_: r } = n;
|
|
51786
|
-
return
|
|
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 =
|
|
51811
|
-
return
|
|
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
|
|
51815
|
-
let [i, a] =
|
|
51816
|
-
return (n?.scope_ ??
|
|
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
|
|
51823
|
-
return
|
|
51827
|
+
function A8(e) {
|
|
51828
|
+
return w6(e) || h6(10, e), j8(e);
|
|
51824
51829
|
}
|
|
51825
|
-
function
|
|
51826
|
-
if (!
|
|
51827
|
-
let t = e[
|
|
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 =
|
|
51831
|
-
} else n =
|
|
51832
|
-
return
|
|
51833
|
-
|
|
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
|
|
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
|
|
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" ?
|
|
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) =>
|
|
51860
|
+
return n.toString = () => `${e}`, n.type = e, n.match = (t) => u6(t) && t.type === e, n;
|
|
51856
51861
|
}
|
|
51857
|
-
function
|
|
51858
|
-
return
|
|
51862
|
+
function P8(e) {
|
|
51863
|
+
return T6(e) ? M8(e, () => {}) : e;
|
|
51859
51864
|
}
|
|
51860
|
-
function
|
|
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
|
|
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" ?
|
|
51868
|
-
if (r) throw Error(process.env.NODE_ENV === "production" ?
|
|
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" ?
|
|
51872
|
-
if (o in t) throw Error(process.env.NODE_ENV === "production" ?
|
|
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" ?
|
|
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" ?
|
|
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" ?
|
|
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
|
|
51905
|
+
function L8(e) {
|
|
51901
51906
|
return typeof e == "function";
|
|
51902
51907
|
}
|
|
51903
|
-
function
|
|
51904
|
-
if (process.env.NODE_ENV !== "production" && typeof t == "object") throw Error(process.env.NODE_ENV === "production" ?
|
|
51905
|
-
let [n, r, i] =
|
|
51906
|
-
if (
|
|
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 =
|
|
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 (
|
|
51919
|
+
if (n) if (w6(e)) {
|
|
51915
51920
|
let r = n(e, t);
|
|
51916
51921
|
return r === void 0 ? e : r;
|
|
51917
|
-
} else if (
|
|
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
|
|
51932
|
-
function
|
|
51936
|
+
var z8 = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
|
|
51937
|
+
function B8(e, t) {
|
|
51933
51938
|
return `${e}/${t}`;
|
|
51934
51939
|
}
|
|
51935
|
-
function
|
|
51936
|
-
let t = e?.asyncThunk?.[
|
|
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" ?
|
|
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(
|
|
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" ?
|
|
51950
|
-
if (n in o.sliceCaseReducersByType) throw Error(process.env.NODE_ENV === "production" ?
|
|
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:
|
|
51974
|
+
type: B8(n, r),
|
|
51970
51975
|
createNotation: typeof e.reducers == "function"
|
|
51971
51976
|
};
|
|
51972
|
-
|
|
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" ?
|
|
51976
|
-
let [t = {}, n = [], r = void 0] = typeof e.extraReducers == "function" ?
|
|
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
|
|
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 =
|
|
51999
|
-
else if (process.env.NODE_ENV !== "production") throw Error(process.env.NODE_ENV === "production" ?
|
|
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
|
|
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] =
|
|
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
|
|
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" ?
|
|
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
|
|
52052
|
-
function
|
|
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
|
|
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 && !
|
|
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 ?
|
|
52087
|
+
i.addCase(e, a).exposeCaseReducer(t, a).exposeAction(t, o ? N8(e, o) : N8(e));
|
|
52083
52088
|
}
|
|
52084
|
-
function
|
|
52089
|
+
function K8(e) {
|
|
52085
52090
|
return e._reducerDefinitionType === "asyncThunk";
|
|
52086
52091
|
}
|
|
52087
|
-
function
|
|
52092
|
+
function q8(e) {
|
|
52088
52093
|
return e._reducerDefinitionType === "reducerWithPrepare";
|
|
52089
52094
|
}
|
|
52090
|
-
function
|
|
52091
|
-
if (!i) throw Error(process.env.NODE_ENV === "production" ?
|
|
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 ||
|
|
52095
|
-
pending: s ||
|
|
52096
|
-
rejected: c ||
|
|
52097
|
-
settled: l ||
|
|
52099
|
+
fulfilled: o || Y8,
|
|
52100
|
+
pending: s || Y8,
|
|
52101
|
+
rejected: c || Y8,
|
|
52102
|
+
settled: l || Y8
|
|
52098
52103
|
});
|
|
52099
52104
|
}
|
|
52100
|
-
function
|
|
52101
|
-
var
|
|
52102
|
-
`${
|
|
52103
|
-
var { assign:
|
|
52104
|
-
`${
|
|
52105
|
-
var
|
|
52106
|
-
function
|
|
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
|
|
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:
|
|
52121
|
-
|
|
52125
|
+
}), { updTheme: a5, updLanguage: o5 } = i5.actions;
|
|
52126
|
+
i5.reducer;
|
|
52122
52127
|
//#endregion
|
|
52123
52128
|
//#region src/lib/ThemeModeToggle/index.tsx
|
|
52124
|
-
var
|
|
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(
|
|
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
|
-
},
|
|
52154
|
-
fallback: /* @__PURE__ */ S(
|
|
52155
|
-
children: /* @__PURE__ */ S(
|
|
52156
|
-
}),
|
|
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
|
|
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
|
|
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
|
|
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
|
-
}({}),
|
|
52198
|
+
}({}), m5 = /* @__PURE__ */ function(e) {
|
|
52194
52199
|
return e.Tab1 = "PROFILE", e.Tab2 = "MANAGEMENT", e;
|
|
52195
|
-
}({}),
|
|
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
|
-
}({}),
|
|
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 =
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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:
|
|
52233
|
-
label: e(`${
|
|
52234
|
-
placeholder: e(`${
|
|
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:
|
|
52243
|
-
label: e(`${
|
|
52244
|
-
placeholder: e(`${
|
|
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:
|
|
52253
|
-
label: e(`${
|
|
52254
|
-
placeholder: e(`${
|
|
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:
|
|
52263
|
-
label: e(`${
|
|
52264
|
-
placeholder: e(`${
|
|
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:
|
|
52275
|
-
label: e(`${
|
|
52276
|
-
placeholder: e(`${
|
|
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: `${
|
|
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:
|
|
52293
|
-
label: e(`${
|
|
52294
|
-
placeholder: e(`${
|
|
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(
|
|
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
|
-
},
|
|
52305
|
-
let { t: o } = RK(), [s] = kM.useForm(), { data: c } =
|
|
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
|
-
[
|
|
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
|
-
|
|
52322
|
+
g5(X3(n, {
|
|
52318
52323
|
...e,
|
|
52319
52324
|
...t,
|
|
52320
|
-
[
|
|
52325
|
+
[p5.ProfilePicture]: NY(t?.[p5.ProfilePicture])
|
|
52321
52326
|
}), a);
|
|
52322
52327
|
}, m = (e) => {
|
|
52323
|
-
e.stopPropagation(), s.setFieldValue(
|
|
52328
|
+
e.stopPropagation(), s.setFieldValue(p5.ProfilePicture, void 0);
|
|
52324
52329
|
}, h = (e) => (jY(e, (e) => {
|
|
52325
|
-
s.setFieldValue(
|
|
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:
|
|
52336
|
+
icon: _5,
|
|
52332
52337
|
style: { marginRight: 5 }
|
|
52333
|
-
}), o(`${
|
|
52334
|
-
key:
|
|
52335
|
-
children: /* @__PURE__ */ S(
|
|
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(`${
|
|
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:
|
|
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:
|
|
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(`${
|
|
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:
|
|
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(`${
|
|
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(`${
|
|
52447
|
+
children: o(`${b5}.SUBMIT`)
|
|
52443
52448
|
})] })
|
|
52444
52449
|
})
|
|
52445
52450
|
}) })
|
|
52446
52451
|
]
|
|
52447
52452
|
})
|
|
52448
52453
|
});
|
|
52449
|
-
}, { Text:
|
|
52450
|
-
function
|
|
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
|
|
52455
|
-
async function
|
|
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
|
|
52472
|
+
function M5() {
|
|
52468
52473
|
let e = document;
|
|
52469
52474
|
return !!(document.fullscreenElement ?? e.webkitFullscreenElement);
|
|
52470
52475
|
}
|
|
52471
|
-
function
|
|
52472
|
-
let { t:
|
|
52473
|
-
|
|
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
|
-
}, [
|
|
52476
|
-
if (!(!
|
|
52477
|
-
}, [
|
|
52478
|
-
if (!
|
|
52479
|
-
let e =
|
|
52480
|
-
return `${
|
|
52481
|
-
}, [
|
|
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 = () =>
|
|
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
|
|
52489
|
-
|
|
52490
|
-
}, []),
|
|
52508
|
+
let P = u(() => {
|
|
52509
|
+
j5();
|
|
52510
|
+
}, []), F = _(() => (n ?? []).filter(Boolean), [n]), I = _(() => {
|
|
52491
52511
|
let e = [{
|
|
52492
|
-
key:
|
|
52512
|
+
key: w5,
|
|
52493
52513
|
icon: /* @__PURE__ */ S(QJ, {}),
|
|
52494
|
-
label:
|
|
52514
|
+
label: o(E5),
|
|
52495
52515
|
onClick: () => {
|
|
52496
|
-
|
|
52516
|
+
c(!1), d(!0);
|
|
52497
52517
|
}
|
|
52498
52518
|
}, {
|
|
52499
|
-
key:
|
|
52500
|
-
icon: S(
|
|
52501
|
-
label:
|
|
52502
|
-
onClick:
|
|
52519
|
+
key: T5,
|
|
52520
|
+
icon: S(p ? OJ : jJ, {}),
|
|
52521
|
+
label: o(p ? O5 : D5),
|
|
52522
|
+
onClick: P
|
|
52503
52523
|
}];
|
|
52504
|
-
if (!
|
|
52524
|
+
if (!F.length) return e;
|
|
52505
52525
|
let t = { type: "divider" };
|
|
52506
52526
|
return [
|
|
52507
52527
|
...e,
|
|
52508
52528
|
t,
|
|
52509
|
-
...
|
|
52529
|
+
...F
|
|
52510
52530
|
];
|
|
52511
52531
|
}, [
|
|
52512
|
-
|
|
52513
|
-
|
|
52514
|
-
|
|
52515
|
-
|
|
52516
|
-
|
|
52517
|
-
|
|
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
|
-
}), [
|
|
52523
|
-
if (!
|
|
52524
|
-
if (
|
|
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 (!
|
|
52545
|
-
let
|
|
52546
|
-
gauApiUrl:
|
|
52547
|
-
appId:
|
|
52548
|
-
user:
|
|
52549
|
-
isOpen:
|
|
52550
|
-
onCancel: () =>
|
|
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
|
-
|
|
52560
|
-
src:
|
|
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:
|
|
52586
|
+
children: N
|
|
52570
52587
|
}),
|
|
52571
52588
|
/* @__PURE__ */ C("div", {
|
|
52572
52589
|
className: "profile-chip__meta",
|
|
52573
52590
|
children: [
|
|
52574
|
-
/* @__PURE__ */ S(
|
|
52591
|
+
/* @__PURE__ */ S(S5, {
|
|
52575
52592
|
className: "profile-chip__name",
|
|
52576
52593
|
ellipsis: !0,
|
|
52577
|
-
children:
|
|
52594
|
+
children: A
|
|
52578
52595
|
}),
|
|
52579
|
-
/* @__PURE__ */ S(
|
|
52596
|
+
/* @__PURE__ */ S(S5, {
|
|
52580
52597
|
type: "secondary",
|
|
52581
52598
|
className: "profile-chip__email",
|
|
52582
52599
|
ellipsis: !0,
|
|
52583
|
-
children:
|
|
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:
|
|
52606
|
+
children: j
|
|
52590
52607
|
})
|
|
52591
52608
|
]
|
|
52592
52609
|
}),
|
|
52593
52610
|
/* @__PURE__ */ S(wj, {
|
|
52594
52611
|
trigger: ["click"],
|
|
52595
52612
|
placement: "bottomRight",
|
|
52596
|
-
open:
|
|
52597
|
-
onOpenChange:
|
|
52598
|
-
menu:
|
|
52613
|
+
open: s,
|
|
52614
|
+
onOpenChange: c,
|
|
52615
|
+
menu: L,
|
|
52599
52616
|
popupRender: (e) => /* @__PURE__ */ S("div", {
|
|
52600
|
-
className: (0, bY.default)("profile-chip__panel",
|
|
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",
|
|
52608
|
-
"aria-label":
|
|
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
|
-
|
|
52622
|
-
|
|
52638
|
+
loading: h,
|
|
52639
|
+
disabled: h,
|
|
52640
|
+
onClick: () => void O(),
|
|
52641
|
+
children: o(A5)
|
|
52623
52642
|
})
|
|
52624
52643
|
]
|
|
52625
52644
|
}),
|
|
52626
|
-
|
|
52627
|
-
typeof
|
|
52645
|
+
i ? i(R) : /* @__PURE__ */ S(x5, { ...R }),
|
|
52646
|
+
typeof a == "function" ? a({ user: w }) : null
|
|
52628
52647
|
] });
|
|
52629
52648
|
}
|
|
52630
|
-
var
|
|
52631
|
-
fallback: /* @__PURE__ */ S(
|
|
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(
|
|
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
|
|
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:
|
|
52654
|
-
let [o, s] = y(!1), [c, l] = y(!1), [u, d] = y(0), { t: p } = RK(), m = v(null), h = v(null), g =
|
|
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(
|
|
52747
|
+
children: [/* @__PURE__ */ S(B5, {
|
|
52729
52748
|
level: 5,
|
|
52730
52749
|
children: e
|
|
52731
|
-
}), /* @__PURE__ */ S(
|
|
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
|
-
},
|
|
52774
|
-
fallback: /* @__PURE__ */ S(
|
|
52775
|
-
children: /* @__PURE__ */ S(
|
|
52776
|
-
}),
|
|
52777
|
-
function
|
|
52778
|
-
return
|
|
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
|
|
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
|
|
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 (!
|
|
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 (!
|
|
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
|
-
},
|
|
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 =
|
|
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
|
-
},
|
|
52873
|
+
}, $5 = {
|
|
52855
52874
|
name: "cookie",
|
|
52856
52875
|
lookup(e) {
|
|
52857
52876
|
let { lookupCookie: t } = e;
|
|
52858
|
-
if (t && typeof document < "u") return
|
|
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" &&
|
|
52881
|
+
n && typeof document < "u" && Q5.create(n, e, r, i, a);
|
|
52863
52882
|
}
|
|
52864
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
52904
|
-
if (
|
|
52922
|
+
}, n7 = null, r7 = () => {
|
|
52923
|
+
if (n7 !== null) return n7;
|
|
52905
52924
|
try {
|
|
52906
|
-
if (
|
|
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
|
-
|
|
52929
|
+
n7 = !1;
|
|
52911
52930
|
}
|
|
52912
|
-
return
|
|
52913
|
-
},
|
|
52931
|
+
return n7;
|
|
52932
|
+
}, i7 = {
|
|
52914
52933
|
name: "localStorage",
|
|
52915
52934
|
lookup(e) {
|
|
52916
52935
|
let { lookupLocalStorage: t } = e;
|
|
52917
|
-
if (t &&
|
|
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 &&
|
|
52940
|
+
n && r7() && window.localStorage.setItem(n, e);
|
|
52922
52941
|
}
|
|
52923
|
-
},
|
|
52924
|
-
if (
|
|
52942
|
+
}, a7 = null, o7 = () => {
|
|
52943
|
+
if (a7 !== null) return a7;
|
|
52925
52944
|
try {
|
|
52926
|
-
if (
|
|
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
|
-
|
|
52949
|
+
a7 = !1;
|
|
52931
52950
|
}
|
|
52932
|
-
return
|
|
52933
|
-
},
|
|
52951
|
+
return a7;
|
|
52952
|
+
}, s7 = {
|
|
52934
52953
|
name: "sessionStorage",
|
|
52935
52954
|
lookup(e) {
|
|
52936
52955
|
let { lookupSessionStorage: t } = e;
|
|
52937
|
-
if (t &&
|
|
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 &&
|
|
52960
|
+
n && o7() && window.sessionStorage.setItem(n, e);
|
|
52942
52961
|
}
|
|
52943
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
52993
|
+
}, f7 = !1;
|
|
52975
52994
|
try {
|
|
52976
|
-
document.cookie,
|
|
52995
|
+
document.cookie, f7 = !0;
|
|
52977
52996
|
} catch {}
|
|
52978
|
-
var
|
|
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
|
-
|
|
52987
|
-
var
|
|
52988
|
-
order:
|
|
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
|
-
}),
|
|
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 =
|
|
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 && !
|
|
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
|
-
|
|
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
|
|
53970
|
+
var g7 = RG;
|
|
53952
53971
|
//#endregion
|
|
53953
|
-
export { U3 as Helpdesk,
|
|
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 };
|