oiu-core 0.0.12 → 0.0.13
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.
|
@@ -6970,7 +6970,7 @@ function Cp({ className: e, getRef: t, fill: r, customLoad: n, children: o, onLo
|
|
|
6970
6970
|
})();
|
|
6971
6971
|
}, [t, n, r, i]), /* @__PURE__ */ he(Ve, { className: e, spin: { spinning: !a, tip: "spin.config" }, showChildren: !1, children: o });
|
|
6972
6972
|
}
|
|
6973
|
-
const
|
|
6973
|
+
const Em = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6974
6974
|
__proto__: null,
|
|
6975
6975
|
ConfigLoader: Cp,
|
|
6976
6976
|
LangProvider: Ip,
|
|
@@ -7009,12 +7009,12 @@ function xp(e) {
|
|
|
7009
7009
|
}
|
|
7010
7010
|
const Fp = () => import(
|
|
7011
7011
|
/* @vite-ignore */
|
|
7012
|
-
"./index-
|
|
7012
|
+
"./index-BOXyyMoR.js"
|
|
7013
7013
|
);
|
|
7014
7014
|
async function $p(e, t, r) {
|
|
7015
7015
|
return (await Fp()).default(e, t, r);
|
|
7016
7016
|
}
|
|
7017
|
-
const
|
|
7017
|
+
const Sm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7018
7018
|
__proto__: null,
|
|
7019
7019
|
Allowed: Kf,
|
|
7020
7020
|
AuthResultStatus: Ds,
|
|
@@ -8624,9 +8624,26 @@ function fi(e, t) {
|
|
|
8624
8624
|
function Ey(e, t = !0, r = { addQueryPrefix: !0 }, n = !0) {
|
|
8625
8625
|
return e ? (t && (e = fi(e, n), e.returnUrl === "/" && delete e.returnUrl), gy.stringify(e, { allowDots: !0, ...r })) : "";
|
|
8626
8626
|
}
|
|
8627
|
-
|
|
8627
|
+
function Sy(e, t, r = {}) {
|
|
8628
|
+
const n = {}, o = t.entries();
|
|
8629
|
+
for (; ; ) {
|
|
8630
|
+
const i = o.next();
|
|
8631
|
+
if (i.done) break;
|
|
8632
|
+
const [a, s] = i.value;
|
|
8633
|
+
n[a] = s;
|
|
8634
|
+
}
|
|
8635
|
+
Object.entries(r).forEach(([i, a]) => {
|
|
8636
|
+
if (a != null) {
|
|
8637
|
+
n[i] = a.toString();
|
|
8638
|
+
return;
|
|
8639
|
+
}
|
|
8640
|
+
delete n[i];
|
|
8641
|
+
}), e(n);
|
|
8642
|
+
}
|
|
8643
|
+
const wm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8628
8644
|
__proto__: null,
|
|
8629
8645
|
ErrType: Nc,
|
|
8646
|
+
buildQueryString: Sy,
|
|
8630
8647
|
format: jf,
|
|
8631
8648
|
getReturnUrl: vy,
|
|
8632
8649
|
getWindow: ai,
|
|
@@ -8638,7 +8655,7 @@ const Sm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
8638
8655
|
redirectTo: by,
|
|
8639
8656
|
sig: Eo
|
|
8640
8657
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
8641
|
-
var
|
|
8658
|
+
var wy = class extends Error {
|
|
8642
8659
|
/**
|
|
8643
8660
|
* The schema issues.
|
|
8644
8661
|
*/
|
|
@@ -8675,10 +8692,10 @@ function Hc(e, t) {
|
|
|
8675
8692
|
function Do(e, t, r) {
|
|
8676
8693
|
return e.reduce((n, o, i) => (t(o, i) && n.push(r(o, i)), n), []).flat();
|
|
8677
8694
|
}
|
|
8678
|
-
function
|
|
8695
|
+
function _y(e) {
|
|
8679
8696
|
return new RegExp("(^|:)//").test(e);
|
|
8680
8697
|
}
|
|
8681
|
-
function
|
|
8698
|
+
function Oy() {
|
|
8682
8699
|
return typeof document > "u" ? !0 : document.visibilityState !== "hidden";
|
|
8683
8700
|
}
|
|
8684
8701
|
function di(e) {
|
|
@@ -8687,24 +8704,24 @@ function di(e) {
|
|
|
8687
8704
|
function ys(e) {
|
|
8688
8705
|
return [...e?.values() ?? []].filter(di);
|
|
8689
8706
|
}
|
|
8690
|
-
function
|
|
8707
|
+
function Ay() {
|
|
8691
8708
|
return typeof navigator > "u" || navigator.onLine === void 0 ? !0 : navigator.onLine;
|
|
8692
8709
|
}
|
|
8693
|
-
var
|
|
8694
|
-
function
|
|
8710
|
+
var Ty = (e) => e.replace(/\/$/, ""), Py = (e) => e.replace(/^\//, "");
|
|
8711
|
+
function Ry(e, t) {
|
|
8695
8712
|
if (!e)
|
|
8696
8713
|
return t;
|
|
8697
8714
|
if (!t)
|
|
8698
8715
|
return e;
|
|
8699
|
-
if (
|
|
8716
|
+
if (_y(t))
|
|
8700
8717
|
return t;
|
|
8701
8718
|
const r = e.endsWith("/") || !t.startsWith("?") ? "/" : "";
|
|
8702
|
-
return e =
|
|
8719
|
+
return e = Ty(e), t = Py(t), `${e}${r}${t}`;
|
|
8703
8720
|
}
|
|
8704
8721
|
function Cr(e, t, r) {
|
|
8705
8722
|
return e.has(t) ? e.get(t) : e.set(t, r(t)).get(t);
|
|
8706
8723
|
}
|
|
8707
|
-
var xo = () => /* @__PURE__ */ new Map(),
|
|
8724
|
+
var xo = () => /* @__PURE__ */ new Map(), Ny = (e) => {
|
|
8708
8725
|
const t = new AbortController();
|
|
8709
8726
|
return setTimeout(() => {
|
|
8710
8727
|
const r = "signal timed out", n = "TimeoutError";
|
|
@@ -8715,7 +8732,7 @@ var xo = () => /* @__PURE__ */ new Map(), Ry = (e) => {
|
|
|
8715
8732
|
})
|
|
8716
8733
|
);
|
|
8717
8734
|
}, e), t.signal;
|
|
8718
|
-
},
|
|
8735
|
+
}, Iy = (...e) => {
|
|
8719
8736
|
for (const r of e) if (r.aborted) return AbortSignal.abort(r.reason);
|
|
8720
8737
|
const t = new AbortController();
|
|
8721
8738
|
for (const r of e)
|
|
@@ -8724,7 +8741,7 @@ var xo = () => /* @__PURE__ */ new Map(), Ry = (e) => {
|
|
|
8724
8741
|
once: !0
|
|
8725
8742
|
});
|
|
8726
8743
|
return t.signal;
|
|
8727
|
-
}, ms = (...e) => fetch(...e),
|
|
8744
|
+
}, ms = (...e) => fetch(...e), Cy = (e) => e.status >= 200 && e.status <= 299, My = (e) => (
|
|
8728
8745
|
/*applicat*/
|
|
8729
8746
|
/ion\/(vnd\.api\+)?json/.test(e.get("content-type") || "")
|
|
8730
8747
|
);
|
|
@@ -8738,13 +8755,13 @@ function gs(e) {
|
|
|
8738
8755
|
n === void 0 && delete t[r];
|
|
8739
8756
|
return t;
|
|
8740
8757
|
}
|
|
8741
|
-
var
|
|
8742
|
-
function
|
|
8758
|
+
var Dy = (e) => typeof e == "object" && (Fe(e) || Array.isArray(e) || typeof e.toJSON == "function");
|
|
8759
|
+
function xy({
|
|
8743
8760
|
baseUrl: e,
|
|
8744
8761
|
prepareHeaders: t = (h) => h,
|
|
8745
8762
|
fetchFn: r = ms,
|
|
8746
8763
|
paramsSerializer: n,
|
|
8747
|
-
isJsonContentType: o =
|
|
8764
|
+
isJsonContentType: o = My,
|
|
8748
8765
|
jsonContentType: i = "application/json",
|
|
8749
8766
|
jsonReplacer: a,
|
|
8750
8767
|
timeout: s,
|
|
@@ -8765,14 +8782,14 @@ function Dy({
|
|
|
8765
8782
|
headers: w = new Headers(l.headers),
|
|
8766
8783
|
params: A = void 0,
|
|
8767
8784
|
responseHandler: P = u ?? "json",
|
|
8768
|
-
validateStatus: N = c ??
|
|
8785
|
+
validateStatus: N = c ?? Cy,
|
|
8769
8786
|
timeout: T = s,
|
|
8770
8787
|
...O
|
|
8771
8788
|
} = typeof g == "string" ? {
|
|
8772
8789
|
url: g
|
|
8773
8790
|
} : g, _ = {
|
|
8774
8791
|
...l,
|
|
8775
|
-
signal: T ?
|
|
8792
|
+
signal: T ? Iy(y.signal, Ny(T)) : y.signal,
|
|
8776
8793
|
...O
|
|
8777
8794
|
};
|
|
8778
8795
|
w = new Headers(gs(w)), _.headers = await t(w, {
|
|
@@ -8784,12 +8801,12 @@ function Dy({
|
|
|
8784
8801
|
type: m,
|
|
8785
8802
|
extraOptions: p
|
|
8786
8803
|
}) || w;
|
|
8787
|
-
const C =
|
|
8804
|
+
const C = Dy(_.body);
|
|
8788
8805
|
if (_.body != null && !C && typeof _.body != "string" && _.headers.delete("content-type"), !_.headers.has("content-type") && C && _.headers.set("content-type", i), C && o(_.headers) && (_.body = JSON.stringify(_.body, a)), _.headers.has("accept") || (P === "json" ? _.headers.set("accept", "application/json") : P === "text" && _.headers.set("accept", "text/plain, text/html, */*")), A) {
|
|
8789
8806
|
const k = ~f.indexOf("?") ? "&" : "?", z = n ? n(A) : new URLSearchParams(gs(A));
|
|
8790
8807
|
f += k + z;
|
|
8791
8808
|
}
|
|
8792
|
-
f =
|
|
8809
|
+
f = Ry(e, f);
|
|
8793
8810
|
const M = new Request(f, _);
|
|
8794
8811
|
b = {
|
|
8795
8812
|
request: new Request(f, _)
|
|
@@ -8854,11 +8871,11 @@ var vs = class {
|
|
|
8854
8871
|
constructor(e, t = void 0) {
|
|
8855
8872
|
this.value = e, this.meta = t;
|
|
8856
8873
|
}
|
|
8857
|
-
}, Qr = "__rtkq/",
|
|
8874
|
+
}, Qr = "__rtkq/", Fy = "online", $y = "offline", kc = "focused", hi = /* @__PURE__ */ Ne(`${Qr}${kc}`), Uc = /* @__PURE__ */ Ne(`${Qr}un${kc}`), pi = /* @__PURE__ */ Ne(`${Qr}${Fy}`), jc = /* @__PURE__ */ Ne(`${Qr}${$y}`), nr = "query", qc = "mutation", Vc = "infinitequery";
|
|
8858
8875
|
function Kr(e) {
|
|
8859
8876
|
return e.type === nr;
|
|
8860
8877
|
}
|
|
8861
|
-
function
|
|
8878
|
+
function Ly(e) {
|
|
8862
8879
|
return e.type === qc;
|
|
8863
8880
|
}
|
|
8864
8881
|
function or(e) {
|
|
@@ -8868,10 +8885,10 @@ function Mr(e) {
|
|
|
8868
8885
|
return Kr(e) || or(e);
|
|
8869
8886
|
}
|
|
8870
8887
|
function yi(e, t, r, n, o, i) {
|
|
8871
|
-
const a =
|
|
8888
|
+
const a = By(e) ? e(t, r, n, o) : e;
|
|
8872
8889
|
return a ? Do(a, di, (s) => i(Gc(s))) : [];
|
|
8873
8890
|
}
|
|
8874
|
-
function
|
|
8891
|
+
function By(e) {
|
|
8875
8892
|
return typeof e == "function";
|
|
8876
8893
|
}
|
|
8877
8894
|
function Gc(e) {
|
|
@@ -8879,11 +8896,11 @@ function Gc(e) {
|
|
|
8879
8896
|
type: e
|
|
8880
8897
|
} : e;
|
|
8881
8898
|
}
|
|
8882
|
-
function
|
|
8899
|
+
function Hy(e, t) {
|
|
8883
8900
|
return e.catch(t);
|
|
8884
8901
|
}
|
|
8885
8902
|
var _t = (e, t) => e.endpointDefinitions[t], Vt = /* @__PURE__ */ Symbol("forceQueryFn"), Fo = (e) => typeof e[Vt] == "function";
|
|
8886
|
-
function
|
|
8903
|
+
function ky({
|
|
8887
8904
|
serializeQueryArgs: e,
|
|
8888
8905
|
queryThunk: t,
|
|
8889
8906
|
infiniteQueryThunk: r,
|
|
@@ -9058,7 +9075,7 @@ You must add the middleware for RTK-Query to function correctly!`);
|
|
|
9058
9075
|
requestId: C,
|
|
9059
9076
|
abort: M,
|
|
9060
9077
|
unwrap: L
|
|
9061
|
-
} = _, H =
|
|
9078
|
+
} = _, H = Hy(_.unwrap().then((k) => ({
|
|
9062
9079
|
data: k
|
|
9063
9080
|
})), (k) => ({
|
|
9064
9081
|
error: k
|
|
@@ -9082,7 +9099,7 @@ You must add the middleware for RTK-Query to function correctly!`);
|
|
|
9082
9099
|
};
|
|
9083
9100
|
}
|
|
9084
9101
|
}
|
|
9085
|
-
var zc = class extends
|
|
9102
|
+
var zc = class extends wy {
|
|
9086
9103
|
constructor(e, t, r, n) {
|
|
9087
9104
|
super(e), this.value = t, this.schemaName = r, this._bqMeta = n;
|
|
9088
9105
|
}
|
|
@@ -9100,7 +9117,7 @@ var Ct = (e = {}) => ({
|
|
|
9100
9117
|
...e,
|
|
9101
9118
|
[$r]: !0
|
|
9102
9119
|
});
|
|
9103
|
-
function
|
|
9120
|
+
function Uy({
|
|
9104
9121
|
reducerPath: e,
|
|
9105
9122
|
baseQuery: t,
|
|
9106
9123
|
context: {
|
|
@@ -9451,7 +9468,7 @@ function Ss(e, t, r) {
|
|
|
9451
9468
|
n && r(n);
|
|
9452
9469
|
}
|
|
9453
9470
|
var br = {};
|
|
9454
|
-
function
|
|
9471
|
+
function jy({
|
|
9455
9472
|
reducerPath: e,
|
|
9456
9473
|
queryThunk: t,
|
|
9457
9474
|
mutationThunk: r,
|
|
@@ -9792,8 +9809,8 @@ function Uy({
|
|
|
9792
9809
|
}), f = Ke({
|
|
9793
9810
|
name: `${e}/config`,
|
|
9794
9811
|
initialState: {
|
|
9795
|
-
online:
|
|
9796
|
-
focused:
|
|
9812
|
+
online: Ay(),
|
|
9813
|
+
focused: Oy(),
|
|
9797
9814
|
middlewareRegistered: !1,
|
|
9798
9815
|
...c
|
|
9799
9816
|
},
|
|
@@ -9842,7 +9859,7 @@ var co = /* @__PURE__ */ Symbol.for("RTKQ/skipToken"), Kc = {
|
|
|
9842
9859
|
}, ws = /* @__PURE__ */ Yt(Kc, () => {
|
|
9843
9860
|
}), _s = /* @__PURE__ */ Yt(Kc, () => {
|
|
9844
9861
|
});
|
|
9845
|
-
function
|
|
9862
|
+
function qy({
|
|
9846
9863
|
serializeQueryArgs: e,
|
|
9847
9864
|
reducerPath: t,
|
|
9848
9865
|
createSelector: r
|
|
@@ -9983,7 +10000,7 @@ var Os = WeakMap ? /* @__PURE__ */ new WeakMap() : void 0, As = ({
|
|
|
9983
10000
|
}
|
|
9984
10001
|
return `${e}(${r})`;
|
|
9985
10002
|
};
|
|
9986
|
-
function
|
|
10003
|
+
function Vy(...e) {
|
|
9987
10004
|
return function(r) {
|
|
9988
10005
|
const n = Ir((c) => r.extractRehydrationInfo?.(c, {
|
|
9989
10006
|
reducerPath: r.reducerPath ?? "api"
|
|
@@ -10084,7 +10101,7 @@ function qy(...e) {
|
|
|
10084
10101
|
function Le(e, ...t) {
|
|
10085
10102
|
return Object.assign(e, ...t);
|
|
10086
10103
|
}
|
|
10087
|
-
var
|
|
10104
|
+
var Gy = ({
|
|
10088
10105
|
api: e,
|
|
10089
10106
|
queryThunk: t,
|
|
10090
10107
|
internalState: r,
|
|
@@ -10164,7 +10181,7 @@ var Vy = ({
|
|
|
10164
10181
|
}
|
|
10165
10182
|
return [E, !1];
|
|
10166
10183
|
};
|
|
10167
|
-
},
|
|
10184
|
+
}, zy = 2147483647 / 1e3 - 1, Wy = ({
|
|
10168
10185
|
reducerPath: e,
|
|
10169
10186
|
api: t,
|
|
10170
10187
|
queryThunk: r,
|
|
@@ -10228,7 +10245,7 @@ var Vy = ({
|
|
|
10228
10245
|
const P = _t(n, b)?.keepUnusedDataFor ?? w.keepUnusedDataFor;
|
|
10229
10246
|
if (P === 1 / 0)
|
|
10230
10247
|
return;
|
|
10231
|
-
const N = Math.max(0, Math.min(P,
|
|
10248
|
+
const N = Math.max(0, Math.min(P, zy));
|
|
10232
10249
|
if (!y(m)) {
|
|
10233
10250
|
const T = p[m];
|
|
10234
10251
|
T && clearTimeout(T), p[m] = setTimeout(() => {
|
|
@@ -10243,7 +10260,7 @@ var Vy = ({
|
|
|
10243
10260
|
}
|
|
10244
10261
|
}
|
|
10245
10262
|
return d;
|
|
10246
|
-
}, Ts = new Error("Promise never resolved before cacheEntryRemoved."),
|
|
10263
|
+
}, Ts = new Error("Promise never resolved before cacheEntryRemoved."), Qy = ({
|
|
10247
10264
|
api: e,
|
|
10248
10265
|
reducerPath: t,
|
|
10249
10266
|
context: r,
|
|
@@ -10345,7 +10362,7 @@ var Vy = ({
|
|
|
10345
10362
|
});
|
|
10346
10363
|
}
|
|
10347
10364
|
return E;
|
|
10348
|
-
},
|
|
10365
|
+
}, Ky = ({
|
|
10349
10366
|
api: e,
|
|
10350
10367
|
context: {
|
|
10351
10368
|
apiUid: t
|
|
@@ -10355,7 +10372,7 @@ var Vy = ({
|
|
|
10355
10372
|
e.util.resetApiState.match(n) && o.dispatch(e.internalActions.middlewareRegistered(t)), typeof process < "u" && process.env.NODE_ENV === "development" && e.internalActions.middlewareRegistered.match(n) && n.payload === t && o.getState()[r]?.config?.middlewareRegistered === "conflict" && console.warn(`There is a mismatch between slice and middleware for the reducerPath "${r}".
|
|
10356
10373
|
You can only have one api per reducer path, this will lead to crashes in various situations!${r === "api" ? `
|
|
10357
10374
|
If you have multiple apis, you *have* to specify the reducerPath option when using createApi!` : ""}`);
|
|
10358
|
-
},
|
|
10375
|
+
}, Xy = ({
|
|
10359
10376
|
reducerPath: e,
|
|
10360
10377
|
context: t,
|
|
10361
10378
|
context: {
|
|
@@ -10398,7 +10415,7 @@ If you have multiple apis, you *have* to specify the reducerPath option when usi
|
|
|
10398
10415
|
});
|
|
10399
10416
|
}
|
|
10400
10417
|
return p;
|
|
10401
|
-
},
|
|
10418
|
+
}, Yy = ({
|
|
10402
10419
|
reducerPath: e,
|
|
10403
10420
|
queryThunk: t,
|
|
10404
10421
|
api: r,
|
|
@@ -10485,7 +10502,7 @@ If you have multiple apis, you *have* to specify the reducerPath option when usi
|
|
|
10485
10502
|
};
|
|
10486
10503
|
}
|
|
10487
10504
|
return c;
|
|
10488
|
-
},
|
|
10505
|
+
}, Zy = ({
|
|
10489
10506
|
api: e,
|
|
10490
10507
|
context: t,
|
|
10491
10508
|
queryThunk: r,
|
|
@@ -10539,7 +10556,7 @@ If you have multiple apis, you *have* to specify the reducerPath option when usi
|
|
|
10539
10556
|
}), delete s[h];
|
|
10540
10557
|
}
|
|
10541
10558
|
};
|
|
10542
|
-
},
|
|
10559
|
+
}, Jy = ({
|
|
10543
10560
|
reducerPath: e,
|
|
10544
10561
|
context: t,
|
|
10545
10562
|
api: r,
|
|
@@ -10566,7 +10583,7 @@ If you have multiple apis, you *have* to specify the reducerPath option when usi
|
|
|
10566
10583
|
}
|
|
10567
10584
|
return a;
|
|
10568
10585
|
};
|
|
10569
|
-
function
|
|
10586
|
+
function em(e) {
|
|
10570
10587
|
const {
|
|
10571
10588
|
reducerPath: t,
|
|
10572
10589
|
queryThunk: r,
|
|
@@ -10577,7 +10594,7 @@ function Jy(e) {
|
|
|
10577
10594
|
apiUid: a
|
|
10578
10595
|
} = o, s = {
|
|
10579
10596
|
invalidateTags: Ne(`${t}/invalidateTags`)
|
|
10580
|
-
}, u = (g) => g.type.startsWith(`${t}/`), c = [
|
|
10597
|
+
}, u = (g) => g.type.startsWith(`${t}/`), c = [Ky, Wy, Xy, Yy, Qy, Zy];
|
|
10581
10598
|
return {
|
|
10582
10599
|
middleware: (g) => {
|
|
10583
10600
|
let y = !1;
|
|
@@ -10587,7 +10604,7 @@ function Jy(e) {
|
|
|
10587
10604
|
refetchQuery: h,
|
|
10588
10605
|
isThisApiSliceAction: u,
|
|
10589
10606
|
mwApi: g
|
|
10590
|
-
}, d = c.map((m) => m(S)), v =
|
|
10607
|
+
}, d = c.map((m) => m(S)), v = Gy(S), E = Jy(S);
|
|
10591
10608
|
return (m) => (b) => {
|
|
10592
10609
|
if (!ko(b))
|
|
10593
10610
|
return m(b);
|
|
@@ -10612,7 +10629,7 @@ function Jy(e) {
|
|
|
10612
10629
|
});
|
|
10613
10630
|
}
|
|
10614
10631
|
}
|
|
10615
|
-
var Ps = /* @__PURE__ */ Symbol(),
|
|
10632
|
+
var Ps = /* @__PURE__ */ Symbol(), tm = ({
|
|
10616
10633
|
createSelector: e = zo
|
|
10617
10634
|
} = {}) => ({
|
|
10618
10635
|
name: Ps,
|
|
@@ -10643,7 +10660,7 @@ var Ps = /* @__PURE__ */ Symbol(), em = ({
|
|
|
10643
10660
|
},
|
|
10644
10661
|
util: {}
|
|
10645
10662
|
});
|
|
10646
|
-
const d =
|
|
10663
|
+
const d = qy({
|
|
10647
10664
|
serializeQueryArgs: i,
|
|
10648
10665
|
reducerPath: o,
|
|
10649
10666
|
createSelector: e
|
|
@@ -10667,7 +10684,7 @@ var Ps = /* @__PURE__ */ Symbol(), em = ({
|
|
|
10667
10684
|
upsertQueryData: O,
|
|
10668
10685
|
prefetch: _,
|
|
10669
10686
|
buildMatchThunkActions: C
|
|
10670
|
-
} =
|
|
10687
|
+
} = Uy({
|
|
10671
10688
|
baseQuery: r,
|
|
10672
10689
|
reducerPath: o,
|
|
10673
10690
|
context: p,
|
|
@@ -10681,7 +10698,7 @@ var Ps = /* @__PURE__ */ Symbol(), em = ({
|
|
|
10681
10698
|
}), {
|
|
10682
10699
|
reducer: M,
|
|
10683
10700
|
actions: L
|
|
10684
|
-
} =
|
|
10701
|
+
} = jy({
|
|
10685
10702
|
context: p,
|
|
10686
10703
|
queryThunk: w,
|
|
10687
10704
|
mutationThunk: P,
|
|
@@ -10718,7 +10735,7 @@ var Ps = /* @__PURE__ */ Symbol(), em = ({
|
|
|
10718
10735
|
getRunningMutationsThunk: se,
|
|
10719
10736
|
getRunningQueriesThunk: ye,
|
|
10720
10737
|
getRunningQueryThunk: X
|
|
10721
|
-
} =
|
|
10738
|
+
} = ky({
|
|
10722
10739
|
queryThunk: w,
|
|
10723
10740
|
mutationThunk: P,
|
|
10724
10741
|
infiniteQueryThunk: A,
|
|
@@ -10736,7 +10753,7 @@ var Ps = /* @__PURE__ */ Symbol(), em = ({
|
|
|
10736
10753
|
const {
|
|
10737
10754
|
middleware: oe,
|
|
10738
10755
|
actions: Q
|
|
10739
|
-
} =
|
|
10756
|
+
} = em({
|
|
10740
10757
|
reducerPath: o,
|
|
10741
10758
|
context: p,
|
|
10742
10759
|
queryThunk: w,
|
|
@@ -10759,7 +10776,7 @@ var Ps = /* @__PURE__ */ Symbol(), em = ({
|
|
|
10759
10776
|
name: q,
|
|
10760
10777
|
select: m(q, V),
|
|
10761
10778
|
initiate: x(q, V)
|
|
10762
|
-
}, C(w, q)),
|
|
10779
|
+
}, C(w, q)), Ly(V) && Le(F, {
|
|
10763
10780
|
name: q,
|
|
10764
10781
|
select: f(),
|
|
10765
10782
|
initiate: k(q)
|
|
@@ -10772,12 +10789,12 @@ var Ps = /* @__PURE__ */ Symbol(), em = ({
|
|
|
10772
10789
|
};
|
|
10773
10790
|
}
|
|
10774
10791
|
});
|
|
10775
|
-
|
|
10792
|
+
tm();
|
|
10776
10793
|
const { spinUpdate: Rs } = At.actions;
|
|
10777
|
-
function
|
|
10778
|
-
const { beforeFetch: r, afterFetch: n } = t, o =
|
|
10794
|
+
function rm(e, t) {
|
|
10795
|
+
const { beforeFetch: r, afterFetch: n } = t, o = nm(t);
|
|
10779
10796
|
return async (i, a, s = {}) => {
|
|
10780
|
-
const { dispatch: u, getState: c } = a, l = c(), { spin: h, auth: g } = ft(l), y =
|
|
10797
|
+
const { dispatch: u, getState: c } = a, l = c(), { spin: h, auth: g } = ft(l), y = xy({
|
|
10781
10798
|
baseUrl: si.getEndpoint(e),
|
|
10782
10799
|
prepareHeaders: async (d) => {
|
|
10783
10800
|
if (d.get("Content-Type") || d.append("Content-Type", "application/json"), e !== 0) {
|
|
@@ -10803,11 +10820,11 @@ function tm(e, t) {
|
|
|
10803
10820
|
}
|
|
10804
10821
|
};
|
|
10805
10822
|
}
|
|
10806
|
-
function
|
|
10823
|
+
function nm(e) {
|
|
10807
10824
|
return e.getAccessToken ? e.getAccessToken : (t) => t.identity?.access_token ? Promise.resolve(`Bearer ${t.identity.access_token}`) : Promise.resolve(void 0);
|
|
10808
10825
|
}
|
|
10809
10826
|
const { screenResize: Ns } = At.actions;
|
|
10810
|
-
function
|
|
10827
|
+
function om(e, t, r) {
|
|
10811
10828
|
const n = {};
|
|
10812
10829
|
if (e)
|
|
10813
10830
|
for (let s = 0; s < e.length; s++)
|
|
@@ -10845,11 +10862,11 @@ function nm(e, t, r) {
|
|
|
10845
10862
|
() => i.dispatch(Ns({ width: a.innerWidth, height: a.innerHeight }))
|
|
10846
10863
|
)), i;
|
|
10847
10864
|
}
|
|
10848
|
-
function
|
|
10849
|
-
const n =
|
|
10850
|
-
return
|
|
10865
|
+
function im(e, t = [], r) {
|
|
10866
|
+
const n = am(t);
|
|
10867
|
+
return om([At, Gr, ...e], n, r);
|
|
10851
10868
|
}
|
|
10852
|
-
function
|
|
10869
|
+
function am(e) {
|
|
10853
10870
|
const t = [];
|
|
10854
10871
|
for (let r = 0; r < e.length; r++) {
|
|
10855
10872
|
const n = e[r];
|
|
@@ -10861,16 +10878,16 @@ function im(e) {
|
|
|
10861
10878
|
}
|
|
10862
10879
|
return t;
|
|
10863
10880
|
}
|
|
10864
|
-
const
|
|
10881
|
+
const sm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10865
10882
|
__proto__: null,
|
|
10866
10883
|
appSlice: At,
|
|
10867
|
-
buildStorage:
|
|
10868
|
-
fetchBaseQueryX:
|
|
10884
|
+
buildStorage: im,
|
|
10885
|
+
fetchBaseQueryX: rm,
|
|
10869
10886
|
getAppStore: ft,
|
|
10870
10887
|
getLangStore: it,
|
|
10871
10888
|
langSlice: Gr
|
|
10872
|
-
}, Symbol.toStringTag, { value: "Module" })), { pushLangMessage:
|
|
10873
|
-
function
|
|
10889
|
+
}, Symbol.toStringTag, { value: "Module" })), { pushLangMessage: um } = Gr.actions;
|
|
10890
|
+
function cm(e, { sig: t, loader: r, useSkeleton: n }) {
|
|
10874
10891
|
const o = (i) => {
|
|
10875
10892
|
if (!i) throw new Error("Props is required");
|
|
10876
10893
|
const a = Dr(), s = Lo({}), u = xe((g) => it(g).lang), c = xe((g) => it(g).data[u.locale].messages), l = xe((g) => it(g).data[u.locale].files[t] !== void 0), h = Ue(() => {
|
|
@@ -10881,7 +10898,7 @@ function um(e, { sig: t, loader: r, useSkeleton: n }) {
|
|
|
10881
10898
|
l || process.env.NODE_ENV === "development" && s.current[t] || (async () => {
|
|
10882
10899
|
try {
|
|
10883
10900
|
s.current[t] = !0;
|
|
10884
|
-
const g = await r(u.locale), y =
|
|
10901
|
+
const g = await r(u.locale), y = um({ locale: u.locale, file: t, messages: g.default });
|
|
10885
10902
|
a(y);
|
|
10886
10903
|
} catch (g) {
|
|
10887
10904
|
s.current[t] = !1, console.error(`can't load lang file ${t}`, g);
|
|
@@ -10891,10 +10908,10 @@ function um(e, { sig: t, loader: r, useSkeleton: n }) {
|
|
|
10891
10908
|
};
|
|
10892
10909
|
return o.displayName = `WL(${e.displayName || e.name})`, o;
|
|
10893
10910
|
}
|
|
10894
|
-
const
|
|
10911
|
+
const _m = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10895
10912
|
__proto__: null,
|
|
10896
|
-
wl:
|
|
10897
|
-
}, Symbol.toStringTag, { value: "Module" })), { changeTheme:
|
|
10913
|
+
wl: cm
|
|
10914
|
+
}, Symbol.toStringTag, { value: "Module" })), { changeTheme: lm } = At.actions;
|
|
10898
10915
|
function Xc({ children: e, genCSSVars: t, getComponent: r, id: n = "__oiu-theme" }) {
|
|
10899
10916
|
const o = Xc;
|
|
10900
10917
|
if (!o.provider)
|
|
@@ -10908,36 +10925,36 @@ function Xc({ children: e, genCSSVars: t, getComponent: r, id: n = "__oiu-theme"
|
|
|
10908
10925
|
y && y.remove(), y = document.createElement("style"), y.id = n, y.innerHTML = `:root {${h}}`, l.appendChild(y);
|
|
10909
10926
|
}
|
|
10910
10927
|
const g = localStorage.getItem("theme") ?? s;
|
|
10911
|
-
g !== s && i(
|
|
10928
|
+
g !== s && i(lm(g));
|
|
10912
10929
|
}, [i, t, n, s, u]);
|
|
10913
10930
|
const c = o.provider;
|
|
10914
10931
|
return /* @__PURE__ */ he(c, { lang: a, token: u, children: e });
|
|
10915
10932
|
}
|
|
10916
|
-
function
|
|
10933
|
+
function fm(e, t) {
|
|
10917
10934
|
return `/themes/${e}/${t}`;
|
|
10918
10935
|
}
|
|
10919
|
-
function
|
|
10936
|
+
function dm() {
|
|
10920
10937
|
return xe((e) => ft(e).theme);
|
|
10921
10938
|
}
|
|
10922
|
-
const
|
|
10939
|
+
const hm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10923
10940
|
__proto__: null,
|
|
10924
10941
|
UITheme: Xc,
|
|
10925
|
-
getResByTheme:
|
|
10926
|
-
useThemeName:
|
|
10942
|
+
getResByTheme: fm,
|
|
10943
|
+
useThemeName: dm
|
|
10927
10944
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
10928
|
-
function
|
|
10945
|
+
function Om(e) {
|
|
10929
10946
|
const { setDefaultTranslation: t } = Lu, { translation: r, wait: n, themeProvider: o } = e;
|
|
10930
10947
|
t(r.defaultLang, r.langs);
|
|
10931
10948
|
const i = Ve;
|
|
10932
10949
|
if (i.spin = n.spin, i.spinProps = n.spinProps, n.skeleton && (i.skeleton = n.skeleton, i.skeletonProps = n.skeletonProps), o) {
|
|
10933
|
-
const { UITheme: a } =
|
|
10950
|
+
const { UITheme: a } = hm;
|
|
10934
10951
|
a.provider = o;
|
|
10935
10952
|
}
|
|
10936
10953
|
}
|
|
10937
|
-
function
|
|
10954
|
+
function Am(e, t) {
|
|
10938
10955
|
return Ue(() => {
|
|
10939
10956
|
console.debug("useInitOIU called: ", e);
|
|
10940
|
-
const { buildStorage: r, langSlice: n } =
|
|
10957
|
+
const { buildStorage: r, langSlice: n } = sm, { setLang: o } = n.actions, { getBrowserLangInfo: i, isValidLocale: a } = Lu, s = i(), u = document.getElementsByTagName("html")[0];
|
|
10941
10958
|
u.lang !== s.locale && (u.lang = s.locale);
|
|
10942
10959
|
const c = r([], [], t);
|
|
10943
10960
|
return c.dispatch(o({ locale: a(u.lang) ? u.lang : e })), { store: c, langInfo: s };
|
|
@@ -10947,14 +10964,14 @@ export {
|
|
|
10947
10964
|
xs as A,
|
|
10948
10965
|
Rc as P,
|
|
10949
10966
|
Ds as a,
|
|
10950
|
-
|
|
10951
|
-
|
|
10967
|
+
Sm as b,
|
|
10968
|
+
Em as c,
|
|
10952
10969
|
xp as d,
|
|
10953
|
-
|
|
10954
|
-
|
|
10955
|
-
|
|
10970
|
+
wm as e,
|
|
10971
|
+
_m as f,
|
|
10972
|
+
Om as i,
|
|
10956
10973
|
Lu as l,
|
|
10957
|
-
|
|
10958
|
-
|
|
10959
|
-
|
|
10974
|
+
sm as r,
|
|
10975
|
+
hm as t,
|
|
10976
|
+
Am as u
|
|
10960
10977
|
};
|
package/dist/main.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "react";
|
|
2
|
-
import { b as e, c as i, f as o, i as u, l as n, r, t as m, u as c, e as h } from "./main-
|
|
2
|
+
import { b as e, c as i, f as o, i as u, l as n, r, t as m, u as c, e as h } from "./main-CPYcBeXF.js";
|
|
3
3
|
export {
|
|
4
4
|
e as auth,
|
|
5
5
|
i as components,
|
package/dist/utils/url.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { IStringifyOptions } from 'qs';
|
|
|
5
5
|
export type State = {
|
|
6
6
|
returnUrl?: string;
|
|
7
7
|
};
|
|
8
|
+
export type NavicationQS = (qs?: Record<string, string>) => void;
|
|
8
9
|
export type Navication = (url: string, qs?: Record<string, string>) => void;
|
|
9
10
|
/**
|
|
10
11
|
* Get the url to return
|
|
@@ -27,4 +28,11 @@ export declare function recursiveClean(data: RecursiveRecord, skipVersion: boole
|
|
|
27
28
|
[key: string]: string | RecursiveRecord;
|
|
28
29
|
};
|
|
29
30
|
export declare function qs(obj?: RecursiveRecord, cleanEmptyString?: boolean, options?: IStringifyOptions, skipVersion?: boolean): string;
|
|
31
|
+
/**
|
|
32
|
+
* Add or remove query string parameters to the current URL. Taking into account the current search params and the supplied.
|
|
33
|
+
* @param navigator
|
|
34
|
+
* @param searchParams Current search params from the URL.
|
|
35
|
+
* @param modification Parameters to add or remove from the current search params. Id the value is `undefined` or `null`, the parameter will be removed. If the value is a string, it will be added or updated.
|
|
36
|
+
*/
|
|
37
|
+
export declare function buildQueryString(navigator: NavicationQS, searchParams: URLSearchParams, modification?: Record<string, string | undefined | null>): void;
|
|
30
38
|
//# sourceMappingURL=url.d.ts.map
|
package/dist/utils/url.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"url.d.ts","sourceRoot":"","sources":["../../lib/utils/url.ts"],"names":[],"mappings":"AAAA,OAAY,EAAE,iBAAiB,EAAE,MAAM,IAAI,CAAC;AAI5C;;GAEG;AACH,MAAM,MAAM,KAAK,GAAG;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;
|
|
1
|
+
{"version":3,"file":"url.d.ts","sourceRoot":"","sources":["../../lib/utils/url.ts"],"names":[],"mappings":"AAAA,OAAY,EAAE,iBAAiB,EAAE,MAAM,IAAI,CAAC;AAI5C;;GAEG;AACH,MAAM,MAAM,KAAK,GAAG;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AACF,MAAM,MAAM,YAAY,GAAG,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,IAAI,CAAC;AACjE,MAAM,MAAM,UAAU,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,IAAI,CAAC;AAE5E;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,EAAE,EAAE,eAAe,EAAE,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI,EAAE,WAAW,SAAM,EAAE,MAAM,UAAO,GAAG,MAAM,CAWhH;AACD;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,QAAQ,EAAE,UAAU,EAAE,QAAQ,CAAC,EAAE,MAAM,IAAI,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,EAAE,GAAG,CAAC,EAAE,MAAM,QAO9G;AAED,MAAM,MAAM,eAAe,GAAG;IAC1B,CAAC,GAAG,EAAE,MAAM,GAAG,eAAe,GAAG,MAAM,GAAG,SAAS,CAAC;CACvD,CAAC;AACF,wBAAgB,cAAc,CAAC,IAAI,EAAE,eAAe,EAAE,WAAW,EAAE,OAAO;;EAczE;AACD,wBAAgB,EAAE,CACd,GAAG,CAAC,EAAE,eAAe,EACrB,gBAAgB,UAAO,EACvB,OAAO,GAAE,iBAA4C,EACrD,WAAW,UAAO,UAYrB;AAqBD;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC5B,SAAS,EAAE,YAAY,EACvB,YAAY,EAAE,eAAe,EAC7B,YAAY,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAAM,QAqB/D"}
|