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.
- package/dist/aquasis-fe-components.js +459 -417
- package/dist/aquasis-fe-components.umd.cjs +2 -2
- package/dist/index.css +1 -1
- package/dist/src/helpers/profileUser.d.ts +3 -0
- package/dist/src/index.d.ts +5 -3
- package/dist/src/lib/ProfileChip/ProfileChipConnector.d.ts +5 -0
- package/dist/src/lib/ProfileChip/index.d.ts +2 -2
- package/dist/src/reactQuery/index.d.ts +3 -0
- package/dist/src/services/userServices.d.ts +2 -0
- package/dist/src/types/profileChip.d.ts +12 -11
- package/dist/src/types/profileUser.d.ts +35 -0
- package/package.json +1 -1
|
@@ -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
|
|
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
|
-
}),
|
|
51082
|
+
}), R3 = (e) => pt({
|
|
51080
51083
|
queryKey: [M3.GetLanguages, e],
|
|
51081
51084
|
queryFn: async () => await N3(e),
|
|
51082
51085
|
enabled: !!e
|
|
51083
|
-
}),
|
|
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
|
-
},
|
|
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
|
|
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
|
|
51110
|
-
return
|
|
51123
|
+
function U3(e) {
|
|
51124
|
+
return V3[H3(e)];
|
|
51111
51125
|
}
|
|
51112
51126
|
//#endregion
|
|
51113
51127
|
//#region src/lib/LanguageSwitcher/index.tsx
|
|
51114
|
-
var
|
|
51115
|
-
let [r, i] = y(!1), a =
|
|
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
|
|
51148
|
+
function G3(e) {
|
|
51135
51149
|
return [...e].sort((e, t) => String(e.description).localeCompare(String(t.description)));
|
|
51136
51150
|
}
|
|
51137
|
-
var
|
|
51138
|
-
let { i18n: r, t: i } = RK(), [a, o] = y(!1), s = oY(VJ) === ht.Dark, { data: c, isPending: l, isFetching: u } =
|
|
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(
|
|
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:
|
|
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(
|
|
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:
|
|
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
|
-
},
|
|
51221
|
-
fallback: /* @__PURE__ */ S(
|
|
51222
|
-
children: /* @__PURE__ */ S(
|
|
51223
|
-
}),
|
|
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
|
|
51226
|
-
`${/* @__PURE__ */
|
|
51227
|
-
function
|
|
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
|
|
51234
|
-
return
|
|
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
|
|
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
|
|
51280
|
+
function r6(e, ...t) {
|
|
51267
51281
|
if (process.env.NODE_ENV !== "production") {
|
|
51268
|
-
let 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
|
|
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
|
-
|
|
51280
|
-
|
|
51281
|
-
|
|
51282
|
-
|
|
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 (!
|
|
51285
|
-
let r =
|
|
51286
|
-
return r === void 0 && (r = Function.toString.call(n),
|
|
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
|
|
51289
|
-
|
|
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
|
|
51294
|
-
let t = e[
|
|
51295
|
-
return t ? t.type_ :
|
|
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
|
|
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
|
|
51314
|
+
function S6(e, t) {
|
|
51301
51315
|
return e === t ? e !== 0 || 1 / e == 1 / t : e !== e && t !== t;
|
|
51302
51316
|
}
|
|
51303
|
-
var
|
|
51304
|
-
function
|
|
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
|
|
51309
|
-
function
|
|
51310
|
-
if (
|
|
51311
|
-
if (
|
|
51312
|
-
if (
|
|
51313
|
-
let n =
|
|
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 =
|
|
51316
|
-
delete t[
|
|
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[
|
|
51321
|
-
[
|
|
51322
|
-
[
|
|
51323
|
-
[
|
|
51324
|
-
[
|
|
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
|
|
51341
|
+
return i6.create(a6(e), t);
|
|
51328
51342
|
} else {
|
|
51329
|
-
let t =
|
|
51343
|
+
let t = a6(e);
|
|
51330
51344
|
if (t !== null && n) return { ...e };
|
|
51331
|
-
let r =
|
|
51332
|
-
return
|
|
51333
|
-
}
|
|
51334
|
-
}
|
|
51335
|
-
function
|
|
51336
|
-
return
|
|
51337
|
-
set:
|
|
51338
|
-
add:
|
|
51339
|
-
clear:
|
|
51340
|
-
delete:
|
|
51341
|
-
}),
|
|
51342
|
-
|
|
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
|
|
51346
|
-
|
|
51359
|
+
function P6() {
|
|
51360
|
+
r6(2);
|
|
51347
51361
|
}
|
|
51348
|
-
var
|
|
51349
|
-
function
|
|
51350
|
-
return e === null || !
|
|
51362
|
+
var F6 = { [d6]: P6 };
|
|
51363
|
+
function I6(e) {
|
|
51364
|
+
return e === null || !E6(e) ? !0 : i6.isFrozen(e);
|
|
51351
51365
|
}
|
|
51352
|
-
var
|
|
51353
|
-
function
|
|
51354
|
-
let t =
|
|
51355
|
-
return 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
|
|
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_:
|
|
51366
|
-
arrayMethodsPlugin_: z6
|
|
51379
|
+
mapSetPlugin_: H6(L6) ? V6(L6) : void 0,
|
|
51380
|
+
arrayMethodsPlugin_: H6(z6) ? V6(z6) : void 0
|
|
51367
51381
|
});
|
|
51368
|
-
function
|
|
51369
|
-
t && (e.patchPlugin_ = R6
|
|
51382
|
+
function K6(e, t) {
|
|
51383
|
+
t && (e.patchPlugin_ = V6(R6), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
|
|
51370
51384
|
}
|
|
51371
|
-
function
|
|
51372
|
-
|
|
51385
|
+
function q6(e) {
|
|
51386
|
+
J6(e), e.drafts_.forEach(X6), e.drafts_ = null;
|
|
51373
51387
|
}
|
|
51374
|
-
function
|
|
51375
|
-
e ===
|
|
51388
|
+
function J6(e) {
|
|
51389
|
+
e === U6 && (U6 = e.parent_);
|
|
51376
51390
|
}
|
|
51377
|
-
var
|
|
51378
|
-
function
|
|
51379
|
-
let t = e[
|
|
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
|
|
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[
|
|
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[
|
|
51389
|
-
} else e =
|
|
51390
|
-
return
|
|
51391
|
-
}
|
|
51392
|
-
function
|
|
51393
|
-
if (
|
|
51394
|
-
let n = t[
|
|
51395
|
-
if (!n) return
|
|
51396
|
-
if (!
|
|
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
|
-
|
|
51415
|
+
a8(n, e);
|
|
51402
51416
|
}
|
|
51403
51417
|
return n.copy_;
|
|
51404
51418
|
}
|
|
51405
|
-
function
|
|
51406
|
-
!e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ &&
|
|
51419
|
+
function $6(e, t, n = !1) {
|
|
51420
|
+
!e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && N6(t, n);
|
|
51407
51421
|
}
|
|
51408
|
-
function
|
|
51422
|
+
function e8(e) {
|
|
51409
51423
|
e.finalized_ = !0, e.scope_.unfinalizedDrafts_--;
|
|
51410
51424
|
}
|
|
51411
|
-
var
|
|
51412
|
-
function
|
|
51413
|
-
let i =
|
|
51414
|
-
if (r !== void 0 &&
|
|
51415
|
-
|
|
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
|
-
|
|
51421
|
-
if (
|
|
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) ??
|
|
51428
|
-
for (let e of o)
|
|
51441
|
+
let o = e.draftLocations_.get(t) ?? n8;
|
|
51442
|
+
for (let e of o) x6(i, e, n, a);
|
|
51429
51443
|
}
|
|
51430
|
-
function
|
|
51444
|
+
function i8(e, t, n) {
|
|
51431
51445
|
e.callbacks_.push(function(r) {
|
|
51432
51446
|
let i = t;
|
|
51433
|
-
if (!i || !
|
|
51447
|
+
if (!i || !t8(i, r)) return;
|
|
51434
51448
|
r.mapSetPlugin_?.fixSetContents(i);
|
|
51435
|
-
let a =
|
|
51436
|
-
|
|
51449
|
+
let a = j6(i);
|
|
51450
|
+
r8(e, i.draft_ ?? i, a, n), a8(i, r);
|
|
51437
51451
|
});
|
|
51438
51452
|
}
|
|
51439
|
-
function
|
|
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
|
-
|
|
51460
|
+
e8(e);
|
|
51447
51461
|
}
|
|
51448
51462
|
}
|
|
51449
|
-
function
|
|
51463
|
+
function o8(e, t, n) {
|
|
51450
51464
|
let { scope_: r } = e;
|
|
51451
|
-
if (
|
|
51452
|
-
let i = n[
|
|
51453
|
-
|
|
51454
|
-
|
|
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
|
|
51457
|
-
let i =
|
|
51458
|
-
e.type_ === 3 ? i.has(n) &&
|
|
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
|
|
51462
|
-
return !n.immer_.autoFreeze_ && n.unfinalizedDrafts_ < 1 ||
|
|
51463
|
-
if (
|
|
51464
|
-
let t = i[
|
|
51465
|
-
|
|
51466
|
-
} else
|
|
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
|
|
51470
|
-
let n =
|
|
51483
|
+
function c8(e, t) {
|
|
51484
|
+
let n = C6(e), r = {
|
|
51471
51485
|
type_: +!!n,
|
|
51472
|
-
scope_: t ? t.scope_ :
|
|
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 =
|
|
51484
|
-
n && (i = [r], a =
|
|
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
|
|
51502
|
+
var l8 = {
|
|
51489
51503
|
get(e, t) {
|
|
51490
|
-
if (t ===
|
|
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 =
|
|
51494
|
-
if (!
|
|
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_ || !
|
|
51497
|
-
if (a ===
|
|
51498
|
-
|
|
51499
|
-
let n = e.type_ === 1 ? +t : t, r =
|
|
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
|
|
51519
|
+
return t in A6(e);
|
|
51506
51520
|
},
|
|
51507
51521
|
ownKeys(e) {
|
|
51508
|
-
return Reflect.ownKeys(
|
|
51522
|
+
return Reflect.ownKeys(A6(e));
|
|
51509
51523
|
},
|
|
51510
51524
|
set(e, t, n) {
|
|
51511
|
-
let r =
|
|
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 =
|
|
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 (
|
|
51517
|
-
|
|
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),
|
|
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
|
|
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 =
|
|
51539
|
+
let n = A6(e), r = Reflect.getOwnPropertyDescriptor(n, t);
|
|
51526
51540
|
return r && {
|
|
51527
|
-
[
|
|
51528
|
-
[
|
|
51529
|
-
[
|
|
51530
|
-
[
|
|
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
|
-
|
|
51548
|
+
r6(11);
|
|
51535
51549
|
},
|
|
51536
51550
|
getPrototypeOf(e) {
|
|
51537
|
-
return
|
|
51551
|
+
return a6(e.base_);
|
|
51538
51552
|
},
|
|
51539
51553
|
setPrototypeOf() {
|
|
51540
|
-
|
|
51554
|
+
r6(12);
|
|
51541
51555
|
}
|
|
51542
|
-
},
|
|
51543
|
-
for (let e in
|
|
51544
|
-
let t =
|
|
51545
|
-
|
|
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
|
-
|
|
51551
|
-
return process.env.NODE_ENV !== "production" && isNaN(parseInt(t)) &&
|
|
51552
|
-
},
|
|
51553
|
-
return process.env.NODE_ENV !== "production" && t !== "length" && isNaN(parseInt(t)) &&
|
|
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
|
|
51556
|
-
let n = e[
|
|
51557
|
-
return (n ?
|
|
51569
|
+
function d8(e, t) {
|
|
51570
|
+
let n = e[t6];
|
|
51571
|
+
return (n ? A6(n) : e)[t];
|
|
51558
51572
|
}
|
|
51559
|
-
function
|
|
51560
|
-
let r =
|
|
51561
|
-
return r ?
|
|
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
|
|
51577
|
+
function p8(e, t) {
|
|
51564
51578
|
if (!(t in e)) return;
|
|
51565
|
-
let n =
|
|
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 =
|
|
51583
|
+
n = a6(n);
|
|
51570
51584
|
}
|
|
51571
51585
|
}
|
|
51572
|
-
function
|
|
51573
|
-
e.modified_ || (e.modified_ = !0, e.parent_ &&
|
|
51586
|
+
function m8(e) {
|
|
51587
|
+
e.modified_ || (e.modified_ = !0, e.parent_ && m8(e.parent_));
|
|
51574
51588
|
}
|
|
51575
|
-
function
|
|
51576
|
-
e.copy_ ||= (e.assigned_ = /* @__PURE__ */ new Map(),
|
|
51589
|
+
function h8(e) {
|
|
51590
|
+
e.copy_ ||= (e.assigned_ = /* @__PURE__ */ new Map(), M6(e.base_, e.scope_.immer_.useStrictShallowCopy_));
|
|
51577
51591
|
}
|
|
51578
|
-
var
|
|
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 (
|
|
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
|
-
|
|
51603
|
+
D6(t) || r6(6), n !== void 0 && !D6(n) && r6(7);
|
|
51590
51604
|
let r;
|
|
51591
|
-
if (
|
|
51592
|
-
let i =
|
|
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 ?
|
|
51610
|
+
o ? q6(i) : J6(i);
|
|
51597
51611
|
}
|
|
51598
|
-
return
|
|
51599
|
-
} else if (!e || !
|
|
51600
|
-
if (r = t(e), r === void 0 && (r = e), r ===
|
|
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
|
|
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
|
|
51622
|
+
} else r6(1, e);
|
|
51609
51623
|
}, this.produceWithPatches = (e, t) => {
|
|
51610
|
-
if (
|
|
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
|
-
},
|
|
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
|
-
|
|
51623
|
-
let t =
|
|
51624
|
-
return 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[
|
|
51628
|
-
(!n || !n.isManual_) &&
|
|
51641
|
+
let n = e && e[t6];
|
|
51642
|
+
(!n || !n.isManual_) && r6(9);
|
|
51629
51643
|
let { scope_: r } = n;
|
|
51630
|
-
return
|
|
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
|
|
51655
|
-
return
|
|
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
|
|
51659
|
-
let [i, a] =
|
|
51660
|
-
return (n?.scope_ ??
|
|
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
|
|
51667
|
-
return
|
|
51680
|
+
function v8(e) {
|
|
51681
|
+
return f6(e) || r6(10, e), y8(e);
|
|
51668
51682
|
}
|
|
51669
|
-
function
|
|
51670
|
-
if (!
|
|
51671
|
-
let t = e[
|
|
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 =
|
|
51675
|
-
} else n =
|
|
51676
|
-
return
|
|
51677
|
-
|
|
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
|
|
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
|
|
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" ?
|
|
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) =>
|
|
51713
|
+
return n.toString = () => `${e}`, n.type = e, n.match = (t) => Q3(t) && t.type === e, n;
|
|
51700
51714
|
}
|
|
51701
|
-
function
|
|
51702
|
-
return
|
|
51715
|
+
function S8(e) {
|
|
51716
|
+
return p6(e) ? b8(e, () => {}) : e;
|
|
51703
51717
|
}
|
|
51704
|
-
function
|
|
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
|
|
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" ?
|
|
51712
|
-
if (r) throw Error(process.env.NODE_ENV === "production" ?
|
|
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" ?
|
|
51716
|
-
if (o in t) throw Error(process.env.NODE_ENV === "production" ?
|
|
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" ?
|
|
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" ?
|
|
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" ?
|
|
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
|
|
51758
|
+
function T8(e) {
|
|
51745
51759
|
return typeof e == "function";
|
|
51746
51760
|
}
|
|
51747
|
-
function
|
|
51748
|
-
if (process.env.NODE_ENV !== "production" && typeof t == "object") throw Error(process.env.NODE_ENV === "production" ?
|
|
51749
|
-
let [n, r, i] =
|
|
51750
|
-
if (
|
|
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 =
|
|
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 (
|
|
51772
|
+
if (n) if (f6(e)) {
|
|
51759
51773
|
let r = n(e, t);
|
|
51760
51774
|
return r === void 0 ? e : r;
|
|
51761
|
-
} else if (
|
|
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
|
|
51776
|
-
function
|
|
51789
|
+
var D8 = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
|
|
51790
|
+
function O8(e, t) {
|
|
51777
51791
|
return `${e}/${t}`;
|
|
51778
51792
|
}
|
|
51779
|
-
function
|
|
51780
|
-
let t = e?.asyncThunk?.[
|
|
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" ?
|
|
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(
|
|
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" ?
|
|
51794
|
-
if (n in o.sliceCaseReducersByType) throw Error(process.env.NODE_ENV === "production" ?
|
|
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:
|
|
51827
|
+
type: O8(n, r),
|
|
51814
51828
|
createNotation: typeof e.reducers == "function"
|
|
51815
51829
|
};
|
|
51816
|
-
|
|
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" ?
|
|
51820
|
-
let [t = {}, n = [], r = void 0] = typeof e.extraReducers == "function" ?
|
|
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
|
|
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 =
|
|
51843
|
-
else if (process.env.NODE_ENV !== "production") throw Error(process.env.NODE_ENV === "production" ?
|
|
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
|
|
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] =
|
|
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
|
|
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" ?
|
|
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
|
|
51896
|
-
function
|
|
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
|
|
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 && !
|
|
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 ?
|
|
51940
|
+
i.addCase(e, a).exposeCaseReducer(t, a).exposeAction(t, o ? x8(e, o) : x8(e));
|
|
51927
51941
|
}
|
|
51928
|
-
function
|
|
51942
|
+
function P8(e) {
|
|
51929
51943
|
return e._reducerDefinitionType === "asyncThunk";
|
|
51930
51944
|
}
|
|
51931
|
-
function
|
|
51945
|
+
function F8(e) {
|
|
51932
51946
|
return e._reducerDefinitionType === "reducerWithPrepare";
|
|
51933
51947
|
}
|
|
51934
|
-
function
|
|
51935
|
-
if (!i) throw Error(process.env.NODE_ENV === "production" ?
|
|
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 ||
|
|
51939
|
-
pending: s ||
|
|
51940
|
-
rejected: c ||
|
|
51941
|
-
settled: l ||
|
|
51952
|
+
fulfilled: o || L8,
|
|
51953
|
+
pending: s || L8,
|
|
51954
|
+
rejected: c || L8,
|
|
51955
|
+
settled: l || L8
|
|
51942
51956
|
});
|
|
51943
51957
|
}
|
|
51944
|
-
function
|
|
51945
|
-
var
|
|
51946
|
-
`${
|
|
51947
|
-
var { assign:
|
|
51948
|
-
`${
|
|
51949
|
-
var
|
|
51950
|
-
function
|
|
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
|
|
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:
|
|
51965
|
-
|
|
51978
|
+
}), { updTheme: q8, updLanguage: J8 } = K8.actions;
|
|
51979
|
+
K8.reducer;
|
|
51966
51980
|
//#endregion
|
|
51967
51981
|
//#region src/lib/ThemeModeToggle/index.tsx
|
|
51968
|
-
var
|
|
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(
|
|
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
|
-
},
|
|
51998
|
-
fallback: /* @__PURE__ */ S(
|
|
51999
|
-
children: /* @__PURE__ */ S(
|
|
52000
|
-
}),
|
|
52001
|
-
|
|
52002
|
-
|
|
52003
|
-
|
|
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
|
-
|
|
52029
|
-
src:
|
|
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:
|
|
52073
|
+
children: v
|
|
52039
52074
|
}),
|
|
52040
52075
|
/* @__PURE__ */ C("div", {
|
|
52041
52076
|
className: "profile-chip__meta",
|
|
52042
52077
|
children: [
|
|
52043
|
-
/* @__PURE__ */ S(
|
|
52078
|
+
/* @__PURE__ */ S(e5, {
|
|
52044
52079
|
className: "profile-chip__name",
|
|
52045
52080
|
ellipsis: !0,
|
|
52046
|
-
children:
|
|
52081
|
+
children: m
|
|
52047
52082
|
}),
|
|
52048
|
-
/* @__PURE__ */ S(
|
|
52083
|
+
/* @__PURE__ */ S(e5, {
|
|
52049
52084
|
type: "secondary",
|
|
52050
52085
|
className: "profile-chip__email",
|
|
52051
52086
|
ellipsis: !0,
|
|
52052
|
-
children:
|
|
52087
|
+
children: u.email
|
|
52053
52088
|
}),
|
|
52054
52089
|
/* @__PURE__ */ S(NV, {
|
|
52055
52090
|
color: "geekblue",
|
|
52056
52091
|
className: "profile-chip__role",
|
|
52057
|
-
children:
|
|
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":
|
|
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:
|
|
52084
|
-
children:
|
|
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
|
-
|
|
52090
|
-
|
|
52091
|
-
|
|
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
|
-
}({}),
|
|
52135
|
+
}({}), o5 = /* @__PURE__ */ function(e) {
|
|
52094
52136
|
return e.Tab1 = "PROFILE", e.Tab2 = "MANAGEMENT", e;
|
|
52095
|
-
}({}),
|
|
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
|
-
}({}),
|
|
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 =
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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:
|
|
52133
|
-
label: e(`${
|
|
52134
|
-
placeholder: e(`${
|
|
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:
|
|
52143
|
-
label: e(`${
|
|
52144
|
-
placeholder: e(`${
|
|
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:
|
|
52153
|
-
label: e(`${
|
|
52154
|
-
placeholder: e(`${
|
|
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:
|
|
52163
|
-
label: e(`${
|
|
52164
|
-
placeholder: e(`${
|
|
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:
|
|
52175
|
-
label: e(`${
|
|
52176
|
-
placeholder: e(`${
|
|
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(`${
|
|
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:
|
|
52193
|
-
label: e(`${
|
|
52194
|
-
placeholder: e(`${
|
|
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(
|
|
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
|
-
},
|
|
52205
|
-
let { t: o } = RK(), [s] = kM.useForm(), c = oY(VJ) === ht.Dark, { data: l } =
|
|
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
|
-
[
|
|
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
|
-
|
|
52259
|
+
c5(I3(n, {
|
|
52218
52260
|
...e,
|
|
52219
52261
|
...t,
|
|
52220
|
-
[
|
|
52262
|
+
[a5.ProfilePicture]: xY(t?.[a5.ProfilePicture])
|
|
52221
52263
|
}), a);
|
|
52222
52264
|
}, h = (e) => {
|
|
52223
|
-
e.stopPropagation(), s.setFieldValue(
|
|
52265
|
+
e.stopPropagation(), s.setFieldValue(a5.ProfilePicture, void 0);
|
|
52224
52266
|
}, g = (e) => (yY(e, (e) => {
|
|
52225
|
-
s.setFieldValue(
|
|
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:
|
|
52273
|
+
icon: l5,
|
|
52232
52274
|
style: { marginRight: 5 }
|
|
52233
|
-
}), o(`${
|
|
52234
|
-
key:
|
|
52235
|
-
children: /* @__PURE__ */ S(
|
|
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(`${
|
|
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(`${
|
|
52267
|
-
cancelText: o(`${
|
|
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:
|
|
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:
|
|
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:
|
|
52367
|
+
defaultActiveKey: o5.Tab1,
|
|
52326
52368
|
type: "card",
|
|
52327
52369
|
size: "small",
|
|
52328
52370
|
items: y
|
|
52329
52371
|
})]
|
|
52330
52372
|
})
|
|
52331
52373
|
}) });
|
|
52332
|
-
},
|
|
52333
|
-
fallback: /* @__PURE__ */ S(
|
|
52334
|
-
children: /* @__PURE__ */ S(
|
|
52335
|
-
}),
|
|
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
|
|
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:
|
|
52353
|
-
let [o, s] = y(!1), [c, l] = y(!1), [u, d] = y(0), { t: p } = RK(), m = v(null), h = v(null), g =
|
|
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(
|
|
52469
|
+
children: [/* @__PURE__ */ S(v5, {
|
|
52428
52470
|
level: 5,
|
|
52429
52471
|
children: e
|
|
52430
|
-
}), /* @__PURE__ */ S(
|
|
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
|
-
},
|
|
52473
|
-
fallback: /* @__PURE__ */ S(
|
|
52474
|
-
children: /* @__PURE__ */ S(
|
|
52475
|
-
}),
|
|
52476
|
-
function
|
|
52477
|
-
return
|
|
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
|
|
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
|
|
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 (!
|
|
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 (!
|
|
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
|
-
},
|
|
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 =
|
|
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
|
-
},
|
|
52595
|
+
}, j5 = {
|
|
52554
52596
|
name: "cookie",
|
|
52555
52597
|
lookup(e) {
|
|
52556
52598
|
let { lookupCookie: t } = e;
|
|
52557
|
-
if (t && typeof document < "u") return
|
|
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" &&
|
|
52603
|
+
n && typeof document < "u" && A5.create(n, e, r, i, a);
|
|
52562
52604
|
}
|
|
52563
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
52603
|
-
if (
|
|
52644
|
+
}, P5 = null, F5 = () => {
|
|
52645
|
+
if (P5 !== null) return P5;
|
|
52604
52646
|
try {
|
|
52605
|
-
if (
|
|
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
|
-
|
|
52651
|
+
P5 = !1;
|
|
52610
52652
|
}
|
|
52611
|
-
return
|
|
52612
|
-
},
|
|
52653
|
+
return P5;
|
|
52654
|
+
}, I5 = {
|
|
52613
52655
|
name: "localStorage",
|
|
52614
52656
|
lookup(e) {
|
|
52615
52657
|
let { lookupLocalStorage: t } = e;
|
|
52616
|
-
if (t &&
|
|
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 &&
|
|
52662
|
+
n && F5() && window.localStorage.setItem(n, e);
|
|
52621
52663
|
}
|
|
52622
|
-
},
|
|
52623
|
-
if (
|
|
52664
|
+
}, L5 = null, R5 = () => {
|
|
52665
|
+
if (L5 !== null) return L5;
|
|
52624
52666
|
try {
|
|
52625
|
-
if (
|
|
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
|
-
|
|
52671
|
+
L5 = !1;
|
|
52630
52672
|
}
|
|
52631
|
-
return
|
|
52632
|
-
},
|
|
52673
|
+
return L5;
|
|
52674
|
+
}, z5 = {
|
|
52633
52675
|
name: "sessionStorage",
|
|
52634
52676
|
lookup(e) {
|
|
52635
52677
|
let { lookupSessionStorage: t } = e;
|
|
52636
|
-
if (t &&
|
|
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 &&
|
|
52682
|
+
n && R5() && window.sessionStorage.setItem(n, e);
|
|
52641
52683
|
}
|
|
52642
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
52715
|
+
}, W5 = !1;
|
|
52674
52716
|
try {
|
|
52675
|
-
document.cookie,
|
|
52717
|
+
document.cookie, W5 = !0;
|
|
52676
52718
|
} catch {}
|
|
52677
|
-
var
|
|
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
|
-
|
|
52686
|
-
var
|
|
52687
|
-
order:
|
|
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
|
-
}),
|
|
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 =
|
|
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 && !
|
|
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
|
-
|
|
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
|
|
53644
|
+
var J5 = RG;
|
|
53603
53645
|
//#endregion
|
|
53604
|
-
export { j3 as Helpdesk,
|
|
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 };
|