@its/core 1.1.14 → 1.1.16
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/core.es.js +93 -86
- package/dist/core.umd.js +51 -51
- package/dist/src/components/BreadCrumb/BreadCrumbProvider.d.ts +0 -1
- package/dist/src/components/BreadCrumb/BreadCrumbProvider.d.ts.map +1 -1
- package/dist/src/hooks/index.d.ts +1 -0
- package/dist/src/hooks/index.d.ts.map +1 -1
- package/dist/src/hooks/useBreadCrumbs.d.ts +14 -0
- package/dist/src/hooks/useBreadCrumbs.d.ts.map +1 -0
- package/dist/src/store/pagination_context/index.d.ts +1 -0
- package/dist/src/store/pagination_context/index.d.ts.map +1 -1
- package/dist/types/src/components/BreadCrumb/BreadCrumbProvider.d.ts +0 -1
- package/dist/types/src/components/BreadCrumb/BreadCrumbProvider.d.ts.map +1 -1
- package/dist/types/src/hooks/index.d.ts +1 -0
- package/dist/types/src/hooks/index.d.ts.map +1 -1
- package/dist/types/src/hooks/useBreadCrumbs.d.ts +14 -0
- package/dist/types/src/hooks/useBreadCrumbs.d.ts.map +1 -0
- package/dist/types/src/store/pagination_context/index.d.ts +1 -0
- package/dist/types/src/store/pagination_context/index.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/core.es.js
CHANGED
|
@@ -18976,7 +18976,14 @@ function Wye({ bufferName: e, callback: t }) {
|
|
|
18976
18976
|
labelRead: u
|
|
18977
18977
|
};
|
|
18978
18978
|
}
|
|
18979
|
+
const Kz = Zr(void 0);
|
|
18979
18980
|
function Hye() {
|
|
18981
|
+
const e = Xr(Kz);
|
|
18982
|
+
if (e === void 0)
|
|
18983
|
+
throw new Error("BreadCrumbContext must be used within an BreadCrumbProvider");
|
|
18984
|
+
return e;
|
|
18985
|
+
}
|
|
18986
|
+
function Gye() {
|
|
18980
18987
|
const [e, t] = Wo("hotKeysDialogState", !1), r = mt(() => {
|
|
18981
18988
|
t((o) => !o);
|
|
18982
18989
|
}, [t]), n = mt(() => {
|
|
@@ -18986,7 +18993,7 @@ function Hye() {
|
|
|
18986
18993
|
}, [t]), a = yr(() => ({ toggle: r, close: n, open: i }), [r, n, i]);
|
|
18987
18994
|
return [e, a];
|
|
18988
18995
|
}
|
|
18989
|
-
function
|
|
18996
|
+
function Yz(e) {
|
|
18990
18997
|
const [t, r] = Wo("languageDialogState", !1), [n] = Wo("languageDialogPopover", !1), { i18n: i } = tr(), a = i.resolvedLanguage ?? "", o = mt(() => {
|
|
18991
18998
|
r(!1);
|
|
18992
18999
|
}, [r]), s = mt(() => {
|
|
@@ -18999,7 +19006,7 @@ function Kz(e) {
|
|
|
18999
19006
|
}, [r, i, a, e]), l = yr(() => ({ close: o, open: s, toggle: u }), [o, s, u]);
|
|
19000
19007
|
return [t, l, n];
|
|
19001
19008
|
}
|
|
19002
|
-
const
|
|
19009
|
+
const Kye = vi(iue, {
|
|
19003
19010
|
shouldForwardProp: (e) => e === "children" || e === "elevation" || e === "variant"
|
|
19004
19011
|
})(
|
|
19005
19012
|
({
|
|
@@ -19037,7 +19044,7 @@ const Gye = vi(iue, {
|
|
|
19037
19044
|
...m
|
|
19038
19045
|
})
|
|
19039
19046
|
);
|
|
19040
|
-
function
|
|
19047
|
+
function Yye({ children: e, value: t, index: r, styles: n }) {
|
|
19041
19048
|
return /* @__PURE__ */ F.jsx(
|
|
19042
19049
|
h_,
|
|
19043
19050
|
{
|
|
@@ -19050,7 +19057,7 @@ function Kye({ children: e, value: t, index: r, styles: n }) {
|
|
|
19050
19057
|
}
|
|
19051
19058
|
);
|
|
19052
19059
|
}
|
|
19053
|
-
function
|
|
19060
|
+
function Qye({
|
|
19054
19061
|
tabs: e,
|
|
19055
19062
|
value: t,
|
|
19056
19063
|
onChange: r,
|
|
@@ -19109,7 +19116,7 @@ function Yye({
|
|
|
19109
19116
|
}
|
|
19110
19117
|
);
|
|
19111
19118
|
}
|
|
19112
|
-
function
|
|
19119
|
+
function Xye({
|
|
19113
19120
|
tabs: e,
|
|
19114
19121
|
value: t,
|
|
19115
19122
|
onChange: r,
|
|
@@ -19157,7 +19164,7 @@ function Qye({
|
|
|
19157
19164
|
}
|
|
19158
19165
|
);
|
|
19159
19166
|
}
|
|
19160
|
-
function
|
|
19167
|
+
function Zye({
|
|
19161
19168
|
tabs: e,
|
|
19162
19169
|
value: t,
|
|
19163
19170
|
onChange: r,
|
|
@@ -19168,7 +19175,7 @@ function Xye({
|
|
|
19168
19175
|
size: s = "medium"
|
|
19169
19176
|
}) {
|
|
19170
19177
|
return a === "rounded" ? /* @__PURE__ */ F.jsx(
|
|
19171
|
-
|
|
19178
|
+
Qye,
|
|
19172
19179
|
{
|
|
19173
19180
|
tabs: e,
|
|
19174
19181
|
value: t,
|
|
@@ -19179,7 +19186,7 @@ function Xye({
|
|
|
19179
19186
|
textColor: i
|
|
19180
19187
|
}
|
|
19181
19188
|
) : /* @__PURE__ */ F.jsx(
|
|
19182
|
-
|
|
19189
|
+
Xye,
|
|
19183
19190
|
{
|
|
19184
19191
|
tabs: e,
|
|
19185
19192
|
value: t,
|
|
@@ -19191,7 +19198,7 @@ function Xye({
|
|
|
19191
19198
|
);
|
|
19192
19199
|
}
|
|
19193
19200
|
var Lo = Xt();
|
|
19194
|
-
const
|
|
19201
|
+
const Jye = Lo.graphql`
|
|
19195
19202
|
mutation LoginMutation($credentials: InputAuthenticationRequest!) {
|
|
19196
19203
|
authMutation {
|
|
19197
19204
|
login(credentials: $credentials) {
|
|
@@ -19205,15 +19212,15 @@ const Zye = Lo.graphql`
|
|
|
19205
19212
|
}
|
|
19206
19213
|
}
|
|
19207
19214
|
}
|
|
19208
|
-
`,
|
|
19215
|
+
`, e0e = Lo.graphql`
|
|
19209
19216
|
mutation LogoutMutation {
|
|
19210
19217
|
authMutation {
|
|
19211
19218
|
logout
|
|
19212
19219
|
}
|
|
19213
19220
|
}
|
|
19214
19221
|
`;
|
|
19215
|
-
function
|
|
19216
|
-
const [e, t] = Cy.useMutation(
|
|
19222
|
+
function t0e() {
|
|
19223
|
+
const [e, t] = Cy.useMutation(Jye), [r, n] = Cy.useMutation(e0e), i = bN([]), a = EN(), o = [
|
|
19217
19224
|
(f) => {
|
|
19218
19225
|
const d = {
|
|
19219
19226
|
credentials: {
|
|
@@ -19259,16 +19266,16 @@ function e0e() {
|
|
|
19259
19266
|
};
|
|
19260
19267
|
return [l, i.value, c];
|
|
19261
19268
|
}
|
|
19262
|
-
const
|
|
19269
|
+
const Qz = Zr(null);
|
|
19263
19270
|
function KKe({ children: e }) {
|
|
19264
|
-
const [t, r, { login: n, logout: i, removeError: a }] =
|
|
19265
|
-
return /* @__PURE__ */ F.jsxs(
|
|
19271
|
+
const [t, r, { login: n, logout: i, removeError: a }] = t0e();
|
|
19272
|
+
return /* @__PURE__ */ F.jsxs(Qz.Provider, { value: [t, r, { login: n, logout: i, removeError: a }], children: [
|
|
19266
19273
|
e,
|
|
19267
19274
|
" "
|
|
19268
19275
|
] });
|
|
19269
19276
|
}
|
|
19270
|
-
function
|
|
19271
|
-
const e = Xr(
|
|
19277
|
+
function r0e() {
|
|
19278
|
+
const e = Xr(Qz);
|
|
19272
19279
|
if (e === null)
|
|
19273
19280
|
throw new Error("useAuthContext must be used within an AuthProvider");
|
|
19274
19281
|
return e;
|
|
@@ -19309,7 +19316,7 @@ function YKe({
|
|
|
19309
19316
|
loggedCallback: p,
|
|
19310
19317
|
logo: g
|
|
19311
19318
|
}) {
|
|
19312
|
-
const { t: y } = tr(), [b, E] = Ge(!1), [w, x, { login: R, removeError: S }] =
|
|
19319
|
+
const { t: y } = tr(), [b, E] = Ge(!1), [w, x, { login: R, removeError: S }] = r0e(), L = Rv("(min-height:700px)"), [k, I] = R, [j, V] = Ge(0), [P, A] = Ge(!1), [D, M] = Ge(!1), [U, H] = Ge(!1), B = (T, N) => {
|
|
19313
19320
|
V(N);
|
|
19314
19321
|
};
|
|
19315
19322
|
return ze(() => {
|
|
@@ -19336,7 +19343,7 @@ function YKe({
|
|
|
19336
19343
|
}, [w, h]), w && h && U ? /* @__PURE__ */ F.jsx(Hle, { to: m, replace: !0 }) : /* @__PURE__ */ F.jsxs(F.Fragment, { children: [
|
|
19337
19344
|
P ? /* @__PURE__ */ F.jsx(_N, {}) : null,
|
|
19338
19345
|
/* @__PURE__ */ F.jsx(
|
|
19339
|
-
|
|
19346
|
+
Kye,
|
|
19340
19347
|
{
|
|
19341
19348
|
elevation: o,
|
|
19342
19349
|
variant: o !== void 0 ? "elevation" : "outlined",
|
|
@@ -19357,7 +19364,7 @@ function YKe({
|
|
|
19357
19364
|
marginBottom: "auto",
|
|
19358
19365
|
justifyContent: "space-between",
|
|
19359
19366
|
children: [
|
|
19360
|
-
n && /* @__PURE__ */ F.jsx(ln, { borderBottom: "1px solid", borderColor: "divider", children: n && n.length > 0 && /* @__PURE__ */ F.jsx(
|
|
19367
|
+
n && /* @__PURE__ */ F.jsx(ln, { borderBottom: "1px solid", borderColor: "divider", children: n && n.length > 0 && /* @__PURE__ */ F.jsx(Zye, { value: j, onChange: B, tabs: n, color: s }) }),
|
|
19361
19368
|
x.length > 0 && /* @__PURE__ */ F.jsx(VC, { spacing: 1, sx: { padding: "16px", minHeight: "20%", justifyContent: "center" }, children: x.map(({ code: T, description: N }, O) => /* @__PURE__ */ F.jsx(
|
|
19362
19369
|
kse,
|
|
19363
19370
|
{
|
|
@@ -19394,7 +19401,7 @@ function YKe({
|
|
|
19394
19401
|
children: r
|
|
19395
19402
|
}
|
|
19396
19403
|
) }),
|
|
19397
|
-
/* @__PURE__ */ F.jsx("form", { id: "authForm", action: k, children: b && e ? /* @__PURE__ */ F.jsx(e, { pending: I }) : n && n.length > 0 ? n.map(({ label: T, child: N }, O) => /* @__PURE__ */ F.jsx(
|
|
19404
|
+
/* @__PURE__ */ F.jsx("form", { id: "authForm", action: k, children: b && e ? /* @__PURE__ */ F.jsx(e, { pending: I }) : n && n.length > 0 ? n.map(({ label: T, child: N }, O) => /* @__PURE__ */ F.jsx(Yye, { value: j, index: O, styles: e5.tabPanel, children: /* @__PURE__ */ F.jsx(N, { pending: I }) }, T)) : t })
|
|
19398
19405
|
]
|
|
19399
19406
|
}
|
|
19400
19407
|
)
|
|
@@ -19408,11 +19415,11 @@ const Nt = (e) => typeof e == "string", bh = () => {
|
|
|
19408
19415
|
e = n, t = i;
|
|
19409
19416
|
});
|
|
19410
19417
|
return r.resolve = e, r.reject = t, r;
|
|
19411
|
-
}, t5 = (e) => e == null ? "" : "" + e,
|
|
19418
|
+
}, t5 = (e) => e == null ? "" : "" + e, n0e = (e, t, r) => {
|
|
19412
19419
|
e.forEach((n) => {
|
|
19413
19420
|
t[n] && (r[n] = t[n]);
|
|
19414
19421
|
});
|
|
19415
|
-
},
|
|
19422
|
+
}, i0e = /###/g, r5 = (e) => e && e.indexOf("###") > -1 ? e.replace(i0e, ".") : e, n5 = (e) => !e || Nt(e), fp = (e, t, r) => {
|
|
19416
19423
|
const n = Nt(t) ? t.split(".") : t;
|
|
19417
19424
|
let i = 0;
|
|
19418
19425
|
for (; i < n.length - 1; ) {
|
|
@@ -19437,7 +19444,7 @@ const Nt = (e) => typeof e == "string", bh = () => {
|
|
|
19437
19444
|
for (; s.obj === void 0 && o.length; )
|
|
19438
19445
|
a = `${o[o.length - 1]}.${a}`, o = o.slice(0, o.length - 1), s = fp(e, o, Object), s?.obj && typeof s.obj[`${s.k}.${a}`] < "u" && (s.obj = void 0);
|
|
19439
19446
|
s.obj[`${s.k}.${a}`] = r;
|
|
19440
|
-
},
|
|
19447
|
+
}, a0e = (e, t, r, n) => {
|
|
19441
19448
|
const {
|
|
19442
19449
|
obj: i,
|
|
19443
19450
|
k: a
|
|
@@ -19450,15 +19457,15 @@ const Nt = (e) => typeof e == "string", bh = () => {
|
|
|
19450
19457
|
} = fp(e, t);
|
|
19451
19458
|
if (r && Object.prototype.hasOwnProperty.call(r, n))
|
|
19452
19459
|
return r[n];
|
|
19453
|
-
},
|
|
19460
|
+
}, o0e = (e, t, r) => {
|
|
19454
19461
|
const n = ky(e, r);
|
|
19455
19462
|
return n !== void 0 ? n : ky(t, r);
|
|
19456
|
-
},
|
|
19463
|
+
}, Xz = (e, t, r) => {
|
|
19457
19464
|
for (const n in t)
|
|
19458
|
-
n !== "__proto__" && n !== "constructor" && (n in e ? Nt(e[n]) || e[n] instanceof String || Nt(t[n]) || t[n] instanceof String ? r && (e[n] = t[n]) :
|
|
19465
|
+
n !== "__proto__" && n !== "constructor" && (n in e ? Nt(e[n]) || e[n] instanceof String || Nt(t[n]) || t[n] instanceof String ? r && (e[n] = t[n]) : Xz(e[n], t[n], r) : e[n] = t[n]);
|
|
19459
19466
|
return e;
|
|
19460
19467
|
}, tf = (e) => e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
19461
|
-
var
|
|
19468
|
+
var s0e = {
|
|
19462
19469
|
"&": "&",
|
|
19463
19470
|
"<": "<",
|
|
19464
19471
|
">": ">",
|
|
@@ -19466,8 +19473,8 @@ var o0e = {
|
|
|
19466
19473
|
"'": "'",
|
|
19467
19474
|
"/": "/"
|
|
19468
19475
|
};
|
|
19469
|
-
const
|
|
19470
|
-
class
|
|
19476
|
+
const u0e = (e) => Nt(e) ? e.replace(/[&<>"'\/]/g, (t) => s0e[t]) : e;
|
|
19477
|
+
class l0e {
|
|
19471
19478
|
constructor(t) {
|
|
19472
19479
|
this.capacity = t, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
|
|
19473
19480
|
}
|
|
@@ -19479,11 +19486,11 @@ class u0e {
|
|
|
19479
19486
|
return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(t, n), this.regExpQueue.push(t), n;
|
|
19480
19487
|
}
|
|
19481
19488
|
}
|
|
19482
|
-
const
|
|
19489
|
+
const c0e = [" ", ",", "?", "!", ";"], f0e = new l0e(20), d0e = (e, t, r) => {
|
|
19483
19490
|
t = t || "", r = r || "";
|
|
19484
|
-
const n =
|
|
19491
|
+
const n = c0e.filter((o) => t.indexOf(o) < 0 && r.indexOf(o) < 0);
|
|
19485
19492
|
if (n.length === 0) return !0;
|
|
19486
|
-
const i =
|
|
19493
|
+
const i = f0e.getRegExp(`(${n.map((o) => o === "?" ? "\\?" : o).join("|")})`);
|
|
19487
19494
|
let a = !i.test(e);
|
|
19488
19495
|
if (!a) {
|
|
19489
19496
|
const o = e.indexOf(r);
|
|
@@ -19510,7 +19517,7 @@ const l0e = [" ", ",", "?", "!", ";"], c0e = new u0e(20), f0e = (e, t, r) => {
|
|
|
19510
19517
|
i = o;
|
|
19511
19518
|
}
|
|
19512
19519
|
return i;
|
|
19513
|
-
}, Dp = (e) => e?.replace("_", "-"),
|
|
19520
|
+
}, Dp = (e) => e?.replace("_", "-"), h0e = {
|
|
19514
19521
|
type: "logger",
|
|
19515
19522
|
log(e) {
|
|
19516
19523
|
this.output("log", e);
|
|
@@ -19530,7 +19537,7 @@ class My {
|
|
|
19530
19537
|
this.init(t, r);
|
|
19531
19538
|
}
|
|
19532
19539
|
init(t, r = {}) {
|
|
19533
|
-
this.prefix = r.prefix || "i18next:", this.logger = t ||
|
|
19540
|
+
this.prefix = r.prefix || "i18next:", this.logger = t || h0e, this.options = r, this.debug = r.debug;
|
|
19534
19541
|
}
|
|
19535
19542
|
log(...t) {
|
|
19536
19543
|
return this.forward(t, "log", "", !0);
|
|
@@ -19632,7 +19639,7 @@ class a5 extends X_ {
|
|
|
19632
19639
|
let s = [t, r];
|
|
19633
19640
|
t.indexOf(".") > -1 && (s = t.split("."), i = n, n = r, r = s[1]), this.addNamespaces(r);
|
|
19634
19641
|
let u = ky(this.data, s) || {};
|
|
19635
|
-
o.skipCopy || (n = JSON.parse(JSON.stringify(n))), i ?
|
|
19642
|
+
o.skipCopy || (n = JSON.parse(JSON.stringify(n))), i ? Xz(u, n, a) : u = {
|
|
19636
19643
|
...u,
|
|
19637
19644
|
...n
|
|
19638
19645
|
}, i5(this.data, s, u), o.silent || this.emit("added", t, r, n);
|
|
@@ -19657,7 +19664,7 @@ class a5 extends X_ {
|
|
|
19657
19664
|
return this.data;
|
|
19658
19665
|
}
|
|
19659
19666
|
}
|
|
19660
|
-
var
|
|
19667
|
+
var Zz = {
|
|
19661
19668
|
processors: {},
|
|
19662
19669
|
addPostProcessor(e) {
|
|
19663
19670
|
this.processors[e.name] = e;
|
|
@@ -19671,7 +19678,7 @@ var Xz = {
|
|
|
19671
19678
|
const o5 = {}, s5 = (e) => !Nt(e) && typeof e != "boolean" && typeof e != "number";
|
|
19672
19679
|
class Ly extends X_ {
|
|
19673
19680
|
constructor(t, r = {}) {
|
|
19674
|
-
super(),
|
|
19681
|
+
super(), n0e(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], t, this), this.options = r, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = jo.create("translator");
|
|
19675
19682
|
}
|
|
19676
19683
|
changeLanguage(t) {
|
|
19677
19684
|
t && (this.language = t);
|
|
@@ -19689,7 +19696,7 @@ class Ly extends X_ {
|
|
|
19689
19696
|
n === void 0 && (n = ":");
|
|
19690
19697
|
const i = r.keySeparator !== void 0 ? r.keySeparator : this.options.keySeparator;
|
|
19691
19698
|
let a = r.ns || this.options.defaultNS || [];
|
|
19692
|
-
const o = n && t.indexOf(n) > -1, s = !this.options.userDefinedKeySeparator && !r.keySeparator && !this.options.userDefinedNsSeparator && !r.nsSeparator && !
|
|
19699
|
+
const o = n && t.indexOf(n) > -1, s = !this.options.userDefinedKeySeparator && !r.keySeparator && !this.options.userDefinedNsSeparator && !r.nsSeparator && !d0e(t, n, i);
|
|
19693
19700
|
if (o && !s) {
|
|
19694
19701
|
const u = t.match(this.interpolator.nestingRegexp);
|
|
19695
19702
|
if (u && u.length > 0)
|
|
@@ -19839,7 +19846,7 @@ class Ly extends X_ {
|
|
|
19839
19846
|
!n.lng && i && i.res && (n.lng = this.language || i.usedLng), n.nest !== !1 && (t = this.interpolator.nest(t, (...f) => a?.[0] === f[0] && !n.context ? (this.logger.warn(`It seems you are nesting recursively key: ${f[0]} in key: ${r[0]}`), null) : this.translate(...f, r), n)), n.interpolation && this.interpolator.reset();
|
|
19840
19847
|
}
|
|
19841
19848
|
const o = n.postProcess || this.options.postProcess, s = Nt(o) ? [o] : o;
|
|
19842
|
-
return t != null && s?.length && n.applyPostProcessor !== !1 && (t =
|
|
19849
|
+
return t != null && s?.length && n.applyPostProcessor !== !1 && (t = Zz.handle(s, t, r, this.options && this.options.postProcessPassResolved ? {
|
|
19843
19850
|
i18nResolved: {
|
|
19844
19851
|
...i,
|
|
19845
19852
|
usedParams: this.getUsedParamsDetails(n)
|
|
@@ -19991,7 +19998,7 @@ const l5 = {
|
|
|
19991
19998
|
pluralCategories: ["one", "other"]
|
|
19992
19999
|
})
|
|
19993
20000
|
};
|
|
19994
|
-
class
|
|
20001
|
+
class p0e {
|
|
19995
20002
|
constructor(t, r = {}) {
|
|
19996
20003
|
this.languageUtils = t, this.options = r, this.logger = jo.create("pluralResolver"), this.pluralRulesCache = {};
|
|
19997
20004
|
}
|
|
@@ -20039,10 +20046,10 @@ class h0e {
|
|
|
20039
20046
|
}
|
|
20040
20047
|
}
|
|
20041
20048
|
const f5 = (e, t, r, n = ".", i = !0) => {
|
|
20042
|
-
let a =
|
|
20049
|
+
let a = o0e(e, t, r);
|
|
20043
20050
|
return !a && i && Nt(r) && (a = FT(e, r, n), a === void 0 && (a = FT(t, r, n))), a;
|
|
20044
20051
|
}, wR = (e) => e.replace(/\$/g, "$$$$");
|
|
20045
|
-
class
|
|
20052
|
+
class v0e {
|
|
20046
20053
|
constructor(t = {}) {
|
|
20047
20054
|
this.logger = jo.create("interpolator"), this.options = t, this.format = t?.interpolation?.format || ((r) => r), this.init(t);
|
|
20048
20055
|
}
|
|
@@ -20069,7 +20076,7 @@ class p0e {
|
|
|
20069
20076
|
maxReplaces: y,
|
|
20070
20077
|
alwaysFormat: b
|
|
20071
20078
|
} = t.interpolation;
|
|
20072
|
-
this.escape = r !== void 0 ? r :
|
|
20079
|
+
this.escape = r !== void 0 ? r : u0e, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = i !== void 0 ? i : !1, this.prefix = a ? tf(a) : o || "{{", this.suffix = s ? tf(s) : u || "}}", this.formatSeparator = l || ",", this.unescapePrefix = c ? "" : f || "-", this.unescapeSuffix = this.unescapePrefix ? "" : c || "", this.nestingPrefix = d ? tf(d) : h || tf("$t("), this.nestingSuffix = m ? tf(m) : p || tf(")"), this.nestingOptionsSeparator = g || ",", this.maxReplaces = y || 1e3, this.alwaysFormat = b !== void 0 ? b : !1, this.resetRegExp();
|
|
20073
20080
|
}
|
|
20074
20081
|
reset() {
|
|
20075
20082
|
this.options && this.init(this.options);
|
|
@@ -20160,7 +20167,7 @@ class p0e {
|
|
|
20160
20167
|
return t;
|
|
20161
20168
|
}
|
|
20162
20169
|
}
|
|
20163
|
-
const
|
|
20170
|
+
const g0e = (e) => {
|
|
20164
20171
|
let t = e.toLowerCase().trim();
|
|
20165
20172
|
const r = {};
|
|
20166
20173
|
if (e.indexOf("(") > -1) {
|
|
@@ -20190,8 +20197,8 @@ const v0e = (e) => {
|
|
|
20190
20197
|
let s = t[o];
|
|
20191
20198
|
return s || (s = e(Dp(n), i), t[o] = s), s(r);
|
|
20192
20199
|
};
|
|
20193
|
-
},
|
|
20194
|
-
class
|
|
20200
|
+
}, m0e = (e) => (t, r, n) => e(Dp(r), n)(t);
|
|
20201
|
+
class y0e {
|
|
20195
20202
|
constructor(t = {}) {
|
|
20196
20203
|
this.logger = jo.create("formatter"), this.options = t, this.init(t);
|
|
20197
20204
|
}
|
|
@@ -20199,7 +20206,7 @@ class m0e {
|
|
|
20199
20206
|
interpolation: {}
|
|
20200
20207
|
}) {
|
|
20201
20208
|
this.formatSeparator = r.interpolation.formatSeparator || ",";
|
|
20202
|
-
const n = r.cacheInBuiltFormats ? d5 :
|
|
20209
|
+
const n = r.cacheInBuiltFormats ? d5 : m0e;
|
|
20203
20210
|
this.formats = {
|
|
20204
20211
|
number: n((i, a) => {
|
|
20205
20212
|
const o = new Intl.NumberFormat(i, {
|
|
@@ -20250,7 +20257,7 @@ class m0e {
|
|
|
20250
20257
|
const {
|
|
20251
20258
|
formatName: l,
|
|
20252
20259
|
formatOptions: c
|
|
20253
|
-
} =
|
|
20260
|
+
} = g0e(u);
|
|
20254
20261
|
if (this.formats[l]) {
|
|
20255
20262
|
let f = s;
|
|
20256
20263
|
try {
|
|
@@ -20270,10 +20277,10 @@ class m0e {
|
|
|
20270
20277
|
}, t);
|
|
20271
20278
|
}
|
|
20272
20279
|
}
|
|
20273
|
-
const
|
|
20280
|
+
const _0e = (e, t) => {
|
|
20274
20281
|
e.pending[t] !== void 0 && (delete e.pending[t], e.pendingCount--);
|
|
20275
20282
|
};
|
|
20276
|
-
class
|
|
20283
|
+
class b0e extends X_ {
|
|
20277
20284
|
constructor(t, r, n, i = {}) {
|
|
20278
20285
|
super(), this.backend = t, this.store = r, this.services = n, this.languageUtils = n.languageUtils, this.options = i, this.logger = jo.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = i.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = i.maxRetries >= 0 ? i.maxRetries : 5, this.retryTimeout = i.retryTimeout >= 1 ? i.retryTimeout : 350, this.state = {}, this.queue = [], this.backend?.init?.(n, i.backend, i);
|
|
20279
20286
|
}
|
|
@@ -20305,7 +20312,7 @@ class _0e extends X_ {
|
|
|
20305
20312
|
}), this.state[t] = r ? -1 : 2, r && n && (this.state[t] = 0);
|
|
20306
20313
|
const s = {};
|
|
20307
20314
|
this.queue.forEach((u) => {
|
|
20308
|
-
|
|
20315
|
+
a0e(u.loaded, [a], o), _0e(u, t), r && u.errors.push(r), u.pendingCount === 0 && !u.done && (Object.keys(u.loaded).forEach((l) => {
|
|
20309
20316
|
s[l] || (s[l] = {});
|
|
20310
20317
|
const c = u.loaded[l];
|
|
20311
20318
|
c.length && c.forEach((f) => {
|
|
@@ -20461,7 +20468,7 @@ const h5 = () => ({
|
|
|
20461
20468
|
},
|
|
20462
20469
|
cacheInBuiltFormats: !0
|
|
20463
20470
|
}), p5 = (e) => (Nt(e.ns) && (e.ns = [e.ns]), Nt(e.fallbackLng) && (e.fallbackLng = [e.fallbackLng]), Nt(e.fallbackNS) && (e.fallbackNS = [e.fallbackNS]), e.supportedLngs?.indexOf?.("cimode") < 0 && (e.supportedLngs = e.supportedLngs.concat(["cimode"])), typeof e.initImmediate == "boolean" && (e.initAsync = e.initImmediate), e), rm = () => {
|
|
20464
|
-
},
|
|
20471
|
+
}, E0e = (e) => {
|
|
20465
20472
|
Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((r) => {
|
|
20466
20473
|
typeof e[r] == "function" && (e[r] = e[r].bind(e));
|
|
20467
20474
|
});
|
|
@@ -20470,7 +20477,7 @@ class Ip extends X_ {
|
|
|
20470
20477
|
constructor(t = {}, r) {
|
|
20471
20478
|
if (super(), this.options = p5(t), this.services = {}, this.logger = jo, this.modules = {
|
|
20472
20479
|
external: []
|
|
20473
|
-
},
|
|
20480
|
+
}, E0e(this), r && !this.isInitialized && !t.isClone) {
|
|
20474
20481
|
if (!this.options.initAsync)
|
|
20475
20482
|
return this.init(t, r), this;
|
|
20476
20483
|
setTimeout(() => {
|
|
@@ -20493,16 +20500,16 @@ class Ip extends X_ {
|
|
|
20493
20500
|
if (!this.options.isClone) {
|
|
20494
20501
|
this.modules.logger ? jo.init(i(this.modules.logger), this.options) : jo.init(null, this.options);
|
|
20495
20502
|
let l;
|
|
20496
|
-
this.modules.formatter ? l = this.modules.formatter : l =
|
|
20503
|
+
this.modules.formatter ? l = this.modules.formatter : l = y0e;
|
|
20497
20504
|
const c = new u5(this.options);
|
|
20498
20505
|
this.store = new a5(this.options.resources, this.options);
|
|
20499
20506
|
const f = this.services;
|
|
20500
|
-
f.logger = jo, f.resourceStore = this.store, f.languageUtils = c, f.pluralResolver = new
|
|
20507
|
+
f.logger = jo, f.resourceStore = this.store, f.languageUtils = c, f.pluralResolver = new p0e(c, {
|
|
20501
20508
|
prepend: this.options.pluralSeparator,
|
|
20502
20509
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
20503
|
-
}), this.options.interpolation.format && this.options.interpolation.format !== n.interpolation.format && this.logger.warn("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"), l && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (f.formatter = i(l), f.formatter.init && f.formatter.init(f, this.options), this.options.interpolation.format = f.formatter.format.bind(f.formatter)), f.interpolator = new
|
|
20510
|
+
}), this.options.interpolation.format && this.options.interpolation.format !== n.interpolation.format && this.logger.warn("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"), l && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (f.formatter = i(l), f.formatter.init && f.formatter.init(f, this.options), this.options.interpolation.format = f.formatter.format.bind(f.formatter)), f.interpolator = new v0e(this.options), f.utils = {
|
|
20504
20511
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
20505
|
-
}, f.backendConnector = new
|
|
20512
|
+
}, f.backendConnector = new b0e(i(this.modules.backend), f.resourceStore, f, this.options), f.backendConnector.on("*", (h, ...m) => {
|
|
20506
20513
|
this.emit(h, ...m);
|
|
20507
20514
|
}), this.modules.languageDetector && (f.languageDetector = i(this.modules.languageDetector), f.languageDetector.init && f.languageDetector.init(f, this.options.detection, this.options)), this.modules.i18nFormat && (f.i18nFormat = i(this.modules.i18nFormat), f.i18nFormat.init && f.i18nFormat.init(this)), this.translator = new Ly(this.services, this.options), this.translator.on("*", (h, ...m) => {
|
|
20508
20515
|
this.emit(h, ...m);
|
|
@@ -20554,7 +20561,7 @@ class Ip extends X_ {
|
|
|
20554
20561
|
use(t) {
|
|
20555
20562
|
if (!t) throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
|
|
20556
20563
|
if (!t.type) throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
|
|
20557
|
-
return t.type === "backend" && (this.modules.backend = t), (t.type === "logger" || t.log && t.warn && t.error) && (this.modules.logger = t), t.type === "languageDetector" && (this.modules.languageDetector = t), t.type === "i18nFormat" && (this.modules.i18nFormat = t), t.type === "postProcessor" &&
|
|
20564
|
+
return t.type === "backend" && (this.modules.backend = t), (t.type === "logger" || t.log && t.warn && t.error) && (this.modules.logger = t), t.type === "languageDetector" && (this.modules.languageDetector = t), t.type === "i18nFormat" && (this.modules.i18nFormat = t), t.type === "postProcessor" && Zz.addPostProcessor(t), t.type === "formatter" && (this.modules.formatter = t), t.type === "3rdParty" && this.modules.external.push(t), this;
|
|
20558
20565
|
}
|
|
20559
20566
|
setResolvedLanguage(t) {
|
|
20560
20567
|
if (!(!t || !this.languages) && !(["cimode", "dev"].indexOf(t) > -1)) {
|
|
@@ -20734,7 +20741,7 @@ function XKe({ callback: e, title: t, subtitle: r }) {
|
|
|
20734
20741
|
}
|
|
20735
20742
|
);
|
|
20736
20743
|
}
|
|
20737
|
-
function
|
|
20744
|
+
function w0e({ id: e, children: t, ratio: r = 0, unit: n = 1 }) {
|
|
20738
20745
|
const i = 100 / r, a = Array.from({ length: r }).reduce(
|
|
20739
20746
|
(o, s, u) => {
|
|
20740
20747
|
const l = u * i, c = u % 2 === 0 ? 1 : 0;
|
|
@@ -20754,18 +20761,8 @@ function E0e({ id: e, children: t, ratio: r = 0, unit: n = 1 }) {
|
|
|
20754
20761
|
}
|
|
20755
20762
|
);
|
|
20756
20763
|
}
|
|
20757
|
-
const Zz = Zr(void 0), w0e = () => {
|
|
20758
|
-
const e = Xr(Zz);
|
|
20759
|
-
if (e === void 0)
|
|
20760
|
-
throw new Error("BreadCrumbContext must be used within an BreadCrumbProvider");
|
|
20761
|
-
return e;
|
|
20762
|
-
};
|
|
20763
|
-
function ZKe({ root: e }) {
|
|
20764
|
-
const [t, r] = Ge([e]), n = (a) => r((o) => [...o, a]), i = (a) => r((o) => o.slice(0, a + 1));
|
|
20765
|
-
return /* @__PURE__ */ F.jsx(Zz.Provider, { value: { crumbs: t, push: n, slice: i }, children: /* @__PURE__ */ F.jsx(x0e, {}) });
|
|
20766
|
-
}
|
|
20767
20764
|
function x0e() {
|
|
20768
|
-
const { crumbs: e, slice: t } =
|
|
20765
|
+
const { crumbs: e, slice: t } = Hye(), { t: r } = tr();
|
|
20769
20766
|
return ze(() => console.log("Crumbs:", e), [e]), /* @__PURE__ */ F.jsxs(Df, { children: [
|
|
20770
20767
|
/* @__PURE__ */ F.jsx(Mse, { "aria-label": "breadcrumb", sx: { padding: "8px" }, children: e.map((n, i) => /* @__PURE__ */ F.jsx(
|
|
20771
20768
|
Lse,
|
|
@@ -20794,6 +20791,10 @@ function x0e() {
|
|
|
20794
20791
|
)
|
|
20795
20792
|
] });
|
|
20796
20793
|
}
|
|
20794
|
+
function ZKe({ root: e }) {
|
|
20795
|
+
const [t, r] = Ge([e]), n = (a) => r((o) => [...o, a]), i = (a) => r((o) => o.slice(0, a + 1));
|
|
20796
|
+
return /* @__PURE__ */ F.jsx(Kz.Provider, { value: { crumbs: t, push: n, slice: i }, children: /* @__PURE__ */ F.jsx(x0e, {}) });
|
|
20797
|
+
}
|
|
20797
20798
|
function S0e({ value: e }) {
|
|
20798
20799
|
const { t } = tr(), [r, n] = Ge(!1), i = () => {
|
|
20799
20800
|
e && (n(!0), navigator.clipboard.writeText(e));
|
|
@@ -20888,7 +20889,7 @@ function O0e({ styles: e = {}, languages: t, flags: r, isPopover: n }) {
|
|
|
20888
20889
|
ze(() => {
|
|
20889
20890
|
a(n ?? !1);
|
|
20890
20891
|
}, [n, a]);
|
|
20891
|
-
const [o, s] =
|
|
20892
|
+
const [o, s] = Yz(t), u = r[i.language];
|
|
20892
20893
|
return u ? /* @__PURE__ */ F.jsx(
|
|
20893
20894
|
sue,
|
|
20894
20895
|
{
|
|
@@ -55747,7 +55748,7 @@ function wYe({
|
|
|
55747
55748
|
}
|
|
55748
55749
|
let i;
|
|
55749
55750
|
return E7(e.endDate) && (i = 2), /* @__PURE__ */ F.jsx(
|
|
55750
|
-
|
|
55751
|
+
w0e,
|
|
55751
55752
|
{
|
|
55752
55753
|
id: `qualification-${t}-${e.qualificationCode}-${e.qualificationId}`,
|
|
55753
55754
|
ratio: i,
|
|
@@ -57497,7 +57498,7 @@ function AYe({
|
|
|
57497
57498
|
);
|
|
57498
57499
|
}
|
|
57499
57500
|
function TYe({ hotKeys: e }) {
|
|
57500
|
-
const { t } = tr(), [r, n] =
|
|
57501
|
+
const { t } = tr(), [r, n] = Gye();
|
|
57501
57502
|
return /* @__PURE__ */ F.jsx(A1, { id: "language-selector", title: "Hot keys", open: r, onClose: n.close, width: "xs", children: /* @__PURE__ */ F.jsx(VC, { spacing: 1, children: e.map(({ combination: i, description: a, callback: o }) => /* @__PURE__ */ F.jsxs(ln, { justifyContent: "space-between", alignItems: "center", children: [
|
|
57502
57503
|
/* @__PURE__ */ F.jsx(Zn, { variant: "body1", noWrap: !0, children: t(a) }),
|
|
57503
57504
|
/* @__PURE__ */ F.jsx(Ws, { id: `${i}-btn`, variant: "outlined", onClick: o, children: i })
|
|
@@ -57972,7 +57973,7 @@ function IYe({
|
|
|
57972
57973
|
flags: t,
|
|
57973
57974
|
isLogged: r = !0
|
|
57974
57975
|
}) {
|
|
57975
|
-
const { i18n: n } = tr(), [i, a, o] =
|
|
57976
|
+
const { i18n: n } = tr(), [i, a, o] = Yz(e);
|
|
57976
57977
|
return $7("shift+l", a.toggle), $7("shift", a.open), ze(() => {
|
|
57977
57978
|
const s = (u) => {
|
|
57978
57979
|
u.key === "Shift" && a.close();
|
|
@@ -69001,7 +69002,7 @@ export {
|
|
|
69001
69002
|
XKe as BadgeScanner,
|
|
69002
69003
|
vYe as BarChartComponent,
|
|
69003
69004
|
GYe as Barcode,
|
|
69004
|
-
|
|
69005
|
+
w0e as Blink,
|
|
69005
69006
|
x0e as BreadCrumb,
|
|
69006
69007
|
ZKe as BreadCrumbProvider,
|
|
69007
69008
|
A7e as ButtonsGrid,
|
|
@@ -69028,7 +69029,7 @@ export {
|
|
|
69028
69029
|
kYe as FilteredList,
|
|
69029
69030
|
O0e as FlagButton,
|
|
69030
69031
|
ln as FlexBox,
|
|
69031
|
-
|
|
69032
|
+
Kye as FormPaper,
|
|
69032
69033
|
NB as FullPageFlexBox,
|
|
69033
69034
|
the as FullPageWrapper,
|
|
69034
69035
|
DB as FullSizeCenteredColumn,
|
|
@@ -69053,8 +69054,8 @@ export {
|
|
|
69053
69054
|
B7e as ListItem,
|
|
69054
69055
|
z7e as ListWrapper,
|
|
69055
69056
|
_N as LoadingComponent,
|
|
69056
|
-
|
|
69057
|
-
|
|
69057
|
+
Jye as Login,
|
|
69058
|
+
e0e as Logout,
|
|
69058
69059
|
MYe as Looper,
|
|
69059
69060
|
VYe as Main,
|
|
69060
69061
|
eYe as MenuButton,
|
|
@@ -69077,7 +69078,7 @@ export {
|
|
|
69077
69078
|
wJ as Radio,
|
|
69078
69079
|
JYe as RelayEnvironmentProvider,
|
|
69079
69080
|
jYe as Resizable,
|
|
69080
|
-
|
|
69081
|
+
Qye as RoundedTabs,
|
|
69081
69082
|
lze as RouteTypes,
|
|
69082
69083
|
FYe as RouteWrapper,
|
|
69083
69084
|
$Ye as Scanner,
|
|
@@ -69087,15 +69088,15 @@ export {
|
|
|
69087
69088
|
JKe as Sidebar,
|
|
69088
69089
|
UYe as SortableContent,
|
|
69089
69090
|
BYe as SortableContentNew,
|
|
69090
|
-
|
|
69091
|
+
Xye as StandardTabs,
|
|
69091
69092
|
BKe as StateProvider,
|
|
69092
69093
|
Jz as TRANSITION_DURATION,
|
|
69093
|
-
|
|
69094
|
+
Yye as TabPanel,
|
|
69094
69095
|
G7e as Table,
|
|
69095
69096
|
FUe as TableHeader,
|
|
69096
69097
|
V7 as TableRow,
|
|
69097
69098
|
H7e as TableToolbar,
|
|
69098
|
-
|
|
69099
|
+
Zye as Tabs,
|
|
69099
69100
|
iQe as ThemeProvider,
|
|
69100
69101
|
Hh as Themes,
|
|
69101
69102
|
EYe as TimelineChart,
|
|
@@ -69109,6 +69110,7 @@ export {
|
|
|
69109
69110
|
lQe as autoGrideSize,
|
|
69110
69111
|
cQe as bitwiseCheck,
|
|
69111
69112
|
oQe as calcTimeDifference,
|
|
69113
|
+
_h as computeCursor,
|
|
69112
69114
|
uze as createRelayEnvironment,
|
|
69113
69115
|
fQe as extractEdges,
|
|
69114
69116
|
B7 as formatDateTime,
|
|
@@ -69132,22 +69134,27 @@ export {
|
|
|
69132
69134
|
nU as subscriptionUpdater,
|
|
69133
69135
|
uQe as subtractToDate,
|
|
69134
69136
|
bN as useArray,
|
|
69135
|
-
|
|
69137
|
+
r0e as useAuthContext,
|
|
69138
|
+
Hye as useBreadCrumbs,
|
|
69136
69139
|
EN as useConfig,
|
|
69140
|
+
Wz as useCursor,
|
|
69137
69141
|
HKe as useDebounce,
|
|
69138
69142
|
rk as useFetchData,
|
|
69143
|
+
Bz as useFilters,
|
|
69139
69144
|
Wo as useGState,
|
|
69140
|
-
|
|
69145
|
+
Gye as useHotKeysDialog,
|
|
69141
69146
|
qye as useIdleTimer,
|
|
69142
69147
|
OKe as useInfiniteQuery,
|
|
69143
|
-
|
|
69148
|
+
Yz as useLanguageDialog,
|
|
69144
69149
|
Rv as useMediaQuery,
|
|
69145
69150
|
zKe as useOrientation,
|
|
69146
69151
|
Gz as usePagination,
|
|
69147
69152
|
GKe as useRfid,
|
|
69148
69153
|
Wye as useScanner,
|
|
69149
69154
|
FN as useScroll,
|
|
69155
|
+
Hz as useSettings,
|
|
69150
69156
|
$N as useSidebar,
|
|
69157
|
+
zz as useSorts,
|
|
69151
69158
|
Ov as useTheme,
|
|
69152
69159
|
WKe as useVisibilityChange
|
|
69153
69160
|
};
|