oiu-core 0.0.20 → 0.0.22
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/init.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../lib/init.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAW,MAAM,OAAO,CAAC;AAC/C,OAAO,EAAE,uBAAuB,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAElE,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAIzC,OAAO,EAAiC,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAM/E,MAAM,MAAM,QAAQ,GAAG;IACnB,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC;IACjB,OAAO,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;CAC5C,CAAC;AACF,MAAM,MAAM,WAAW,GAAG,YAAY,CAAC,uBAAuB,CAAC,CAAC;AAEhE,MAAM,MAAM,cAAc,CAAC,KAAK,EAAE,UAAU,EAAE,cAAc,IAAI;IAC5D,gCAAgC;IAChC,WAAW,EAAE;QACT,4GAA4G;QAC5G,WAAW,EAAE,QAAQ,CAAC;QACtB,yIAAyI;QACzI,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;KACnC,CAAC;IACF,mCAAmC;IACnC,IAAI,EAAE;QACF,2CAA2C;QAC3C,IAAI,EAAE,aAAa,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC;QAC3C,gHAAgH;QAChH,SAAS,CAAC,EAAE,UAAU,CAAC;QACvB,+CAA+C;QAC/C,QAAQ,CAAC,EAAE,aAAa,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC,CAAC;QACpD,wHAAwH;QACxH,aAAa,CAAC,EAAE,cAAc,CAAC;KAClC,CAAC;IACF,aAAa,CAAC,EAAE,qBAAqB,CAAC,KAAK,CAAC,CAAC;CAChD,CAAC;AACF;;;;;GAKG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,OAAO,EAAE,cAAc,CAAC,KAAK,EAAE,UAAU,EAAE,cAAc,CAAC,QAiBpH;AACD;;;GAGG;AACH,wBAAgB,UAAU,CAAC,aAAa,EAAE,MAAM,EAAE,UAAU,GAAE,QAAa,EAAE,eAAe,CAAC,EAAE,WAAW;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../lib/init.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAW,MAAM,OAAO,CAAC;AAC/C,OAAO,EAAE,uBAAuB,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAElE,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAIzC,OAAO,EAAiC,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAM/E,MAAM,MAAM,QAAQ,GAAG;IACnB,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC;IACjB,OAAO,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;CAC5C,CAAC;AACF,MAAM,MAAM,WAAW,GAAG,YAAY,CAAC,uBAAuB,CAAC,CAAC;AAEhE,MAAM,MAAM,cAAc,CAAC,KAAK,EAAE,UAAU,EAAE,cAAc,IAAI;IAC5D,gCAAgC;IAChC,WAAW,EAAE;QACT,4GAA4G;QAC5G,WAAW,EAAE,QAAQ,CAAC;QACtB,yIAAyI;QACzI,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;KACnC,CAAC;IACF,mCAAmC;IACnC,IAAI,EAAE;QACF,2CAA2C;QAC3C,IAAI,EAAE,aAAa,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC;QAC3C,gHAAgH;QAChH,SAAS,CAAC,EAAE,UAAU,CAAC;QACvB,+CAA+C;QAC/C,QAAQ,CAAC,EAAE,aAAa,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC,CAAC;QACpD,wHAAwH;QACxH,aAAa,CAAC,EAAE,cAAc,CAAC;KAClC,CAAC;IACF,aAAa,CAAC,EAAE,qBAAqB,CAAC,KAAK,CAAC,CAAC;CAChD,CAAC;AACF;;;;;GAKG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,OAAO,EAAE,cAAc,CAAC,KAAK,EAAE,UAAU,EAAE,cAAc,CAAC,QAiBpH;AACD;;;GAGG;AACH,wBAAgB,UAAU,CAAC,aAAa,EAAE,MAAM,EAAE,UAAU,GAAE,QAAa,EAAE,eAAe,CAAC,EAAE,WAAW;;;;;;;;;EAoBzG"}
|
|
@@ -232,8 +232,8 @@ function El() {
|
|
|
232
232
|
null
|
|
233
233
|
), process.env.NODE_ENV !== "production" && (t.displayName = "ReactRedux"), e.set(fe.createContext, t)), t;
|
|
234
234
|
}
|
|
235
|
-
var
|
|
236
|
-
function Lo(e =
|
|
235
|
+
var st = /* @__PURE__ */ El();
|
|
236
|
+
function Lo(e = st) {
|
|
237
237
|
return function() {
|
|
238
238
|
const r = fe.useContext(e);
|
|
239
239
|
if (process.env.NODE_ENV !== "production" && !r)
|
|
@@ -244,8 +244,8 @@ function Lo(e = at) {
|
|
|
244
244
|
};
|
|
245
245
|
}
|
|
246
246
|
var $s = /* @__PURE__ */ Lo();
|
|
247
|
-
function Ls(e =
|
|
248
|
-
const t = e ===
|
|
247
|
+
function Ls(e = st) {
|
|
248
|
+
const t = e === st ? $s : (
|
|
249
249
|
// @ts-ignore
|
|
250
250
|
Lo(e)
|
|
251
251
|
), r = () => {
|
|
@@ -257,15 +257,15 @@ function Ls(e = at) {
|
|
|
257
257
|
}), r;
|
|
258
258
|
}
|
|
259
259
|
var Sl = /* @__PURE__ */ Ls();
|
|
260
|
-
function wl(e =
|
|
261
|
-
const t = e ===
|
|
260
|
+
function wl(e = st) {
|
|
261
|
+
const t = e === st ? Sl : Ls(e), r = () => t().dispatch;
|
|
262
262
|
return Object.assign(r, {
|
|
263
263
|
withTypes: () => r
|
|
264
264
|
}), r;
|
|
265
265
|
}
|
|
266
266
|
var xr = /* @__PURE__ */ wl(), _l = (e, t) => e === t;
|
|
267
|
-
function Ol(e =
|
|
268
|
-
const t = e ===
|
|
267
|
+
function Ol(e = st) {
|
|
268
|
+
const t = e === st ? $s : Lo(e), r = (n, o = {}) => {
|
|
269
269
|
const { equalityFn: i = _l } = typeof o == "function" ? { equalityFn: o } : o;
|
|
270
270
|
if (process.env.NODE_ENV !== "production") {
|
|
271
271
|
if (!n)
|
|
@@ -388,7 +388,7 @@ var Nl = typeof Symbol == "function" && Symbol.observable || "@@observable", Ci
|
|
|
388
388
|
INIT: `@@redux/INIT${/* @__PURE__ */ un()}`,
|
|
389
389
|
REPLACE: `@@redux/REPLACE${/* @__PURE__ */ un()}`,
|
|
390
390
|
PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${un()}`
|
|
391
|
-
},
|
|
391
|
+
}, at = Il;
|
|
392
392
|
function Fe(e) {
|
|
393
393
|
if (typeof e != "object" || e === null)
|
|
394
394
|
return !1;
|
|
@@ -501,7 +501,7 @@ function Hs(e, t, r) {
|
|
|
501
501
|
if (typeof d != "function")
|
|
502
502
|
throw new Error(process.env.NODE_ENV === "production" ? ve(10) : `Expected the nextReducer to be a function. Instead, received: '${Ke(d)}`);
|
|
503
503
|
n = d, v({
|
|
504
|
-
type:
|
|
504
|
+
type: at.REPLACE
|
|
505
505
|
});
|
|
506
506
|
}
|
|
507
507
|
function p() {
|
|
@@ -532,7 +532,7 @@ function Hs(e, t, r) {
|
|
|
532
532
|
};
|
|
533
533
|
}
|
|
534
534
|
return v({
|
|
535
|
-
type:
|
|
535
|
+
type: at.INIT
|
|
536
536
|
}), {
|
|
537
537
|
dispatch: v,
|
|
538
538
|
subscribe: y,
|
|
@@ -549,7 +549,7 @@ function Mi(e) {
|
|
|
549
549
|
}
|
|
550
550
|
}
|
|
551
551
|
function Fl(e, t, r, n) {
|
|
552
|
-
const o = Object.keys(t), i = r && r.type ===
|
|
552
|
+
const o = Object.keys(t), i = r && r.type === at.INIT ? "preloadedState argument passed to createStore" : "previous state received by the reducer";
|
|
553
553
|
if (o.length === 0)
|
|
554
554
|
return "Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";
|
|
555
555
|
if (!Fe(e))
|
|
@@ -557,20 +557,20 @@ function Fl(e, t, r, n) {
|
|
|
557
557
|
const a = Object.keys(e).filter((s) => !t.hasOwnProperty(s) && !n[s]);
|
|
558
558
|
if (a.forEach((s) => {
|
|
559
559
|
n[s] = !0;
|
|
560
|
-
}), !(r && r.type ===
|
|
560
|
+
}), !(r && r.type === at.REPLACE) && a.length > 0)
|
|
561
561
|
return `Unexpected ${a.length > 1 ? "keys" : "key"} "${a.join('", "')}" found in ${i}. Expected to find one of the known reducer keys instead: "${o.join('", "')}". Unexpected keys will be ignored.`;
|
|
562
562
|
}
|
|
563
563
|
function $l(e) {
|
|
564
564
|
Object.keys(e).forEach((t) => {
|
|
565
565
|
const r = e[t];
|
|
566
566
|
if (typeof r(void 0, {
|
|
567
|
-
type:
|
|
567
|
+
type: at.INIT
|
|
568
568
|
}) > "u")
|
|
569
569
|
throw new Error(process.env.NODE_ENV === "production" ? ve(12) : `The slice reducer for key "${t}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);
|
|
570
570
|
if (typeof r(void 0, {
|
|
571
|
-
type:
|
|
571
|
+
type: at.PROBE_UNKNOWN_ACTION()
|
|
572
572
|
}) > "u")
|
|
573
|
-
throw new Error(process.env.NODE_ENV === "production" ? ve(13) : `The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${
|
|
573
|
+
throw new Error(process.env.NODE_ENV === "production" ? ve(13) : `The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${at.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`);
|
|
574
574
|
});
|
|
575
575
|
}
|
|
576
576
|
function ks(e) {
|
|
@@ -670,7 +670,7 @@ function me(e, ...t) {
|
|
|
670
670
|
`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`
|
|
671
671
|
);
|
|
672
672
|
}
|
|
673
|
-
var _e = Object,
|
|
673
|
+
var _e = Object, ut = _e.getPrototypeOf, Ht = "constructor", Wt = "prototype", fo = "configurable", Tr = "enumerable", Sr = "writable", kt = "value", Oe = (e) => !!e && !!e[ge];
|
|
674
674
|
function Ae(e) {
|
|
675
675
|
return e ? js(e) || Qt(e) || !!e[$t] || !!e[Ht]?.[$t] || Kt(e) || Xt(e) : !1;
|
|
676
676
|
}
|
|
@@ -678,7 +678,7 @@ var Bl = _e[Wt][Ht].toString(), Di = /* @__PURE__ */ new WeakMap();
|
|
|
678
678
|
function js(e) {
|
|
679
679
|
if (!e || !vt(e))
|
|
680
680
|
return !1;
|
|
681
|
-
const t =
|
|
681
|
+
const t = ut(e);
|
|
682
682
|
if (t === null || t === _e[Wt])
|
|
683
683
|
return !0;
|
|
684
684
|
const r = _e.hasOwnProperty.call(t, Ht) && t[Ht];
|
|
@@ -693,18 +693,18 @@ function Hl(e) {
|
|
|
693
693
|
return Oe(e) || me(15, e), e[ge].base_;
|
|
694
694
|
}
|
|
695
695
|
function Ot(e, t, r = !0) {
|
|
696
|
-
|
|
696
|
+
ct(e) === 0 ? (r ? Reflect.ownKeys(e) : _e.keys(e)).forEach((o) => {
|
|
697
697
|
t(o, e[o], e);
|
|
698
698
|
}) : e.forEach((n, o) => t(o, n, e));
|
|
699
699
|
}
|
|
700
|
-
function
|
|
700
|
+
function ct(e) {
|
|
701
701
|
const t = e[ge];
|
|
702
702
|
return t ? t.type_ : Qt(e) ? 1 : Kt(e) ? 2 : Xt(e) ? 3 : 0;
|
|
703
703
|
}
|
|
704
|
-
var Lt = (e, t, r =
|
|
704
|
+
var Lt = (e, t, r = ct(e)) => r === 2 ? e.has(t) : _e[Wt].hasOwnProperty.call(e, t), Be = (e, t, r = ct(e)) => (
|
|
705
705
|
// @ts-ignore
|
|
706
706
|
r === 2 ? e.get(t) : e[t]
|
|
707
|
-
), Pr = (e, t, r, n =
|
|
707
|
+
), Pr = (e, t, r, n = ct(e)) => {
|
|
708
708
|
n === 2 ? e.set(t, r) : n === 3 ? e.add(r) : e[t] = r;
|
|
709
709
|
};
|
|
710
710
|
function kl(e, t) {
|
|
@@ -738,9 +738,9 @@ function ho(e, t) {
|
|
|
738
738
|
[kt]: e[a]
|
|
739
739
|
});
|
|
740
740
|
}
|
|
741
|
-
return _e.create(
|
|
741
|
+
return _e.create(ut(e), n);
|
|
742
742
|
} else {
|
|
743
|
-
const n =
|
|
743
|
+
const n = ut(e);
|
|
744
744
|
if (n !== null && r)
|
|
745
745
|
return { ...e };
|
|
746
746
|
const o = _e.create(n);
|
|
@@ -748,7 +748,7 @@ function ho(e, t) {
|
|
|
748
748
|
}
|
|
749
749
|
}
|
|
750
750
|
function jo(e, t = !1) {
|
|
751
|
-
return Fr(e) || Oe(e) || !Ae(e) || (
|
|
751
|
+
return Fr(e) || Oe(e) || !Ae(e) || (ct(e) > 1 && _e.defineProperties(e, {
|
|
752
752
|
set: lr,
|
|
753
753
|
add: lr,
|
|
754
754
|
clear: lr,
|
|
@@ -771,7 +771,7 @@ function Fr(e) {
|
|
|
771
771
|
return e === null || !vt(e) ? !0 : _e.isFrozen(e);
|
|
772
772
|
}
|
|
773
773
|
var Rr = "MapSet", Nr = "Patches", xi = "ArrayMethods", Ir = {};
|
|
774
|
-
function
|
|
774
|
+
function lt(e) {
|
|
775
775
|
const t = Ir[e];
|
|
776
776
|
return t || me(0, e), t;
|
|
777
777
|
}
|
|
@@ -789,11 +789,11 @@ var Ut, qs = () => Ut, Gl = (e, t) => ({
|
|
|
789
789
|
unfinalizedDrafts_: 0,
|
|
790
790
|
handledSet_: /* @__PURE__ */ new Set(),
|
|
791
791
|
processedForPatches_: /* @__PURE__ */ new Set(),
|
|
792
|
-
mapSetPlugin_: Fi(Rr) ?
|
|
793
|
-
arrayMethodsPlugin_: Fi(xi) ?
|
|
792
|
+
mapSetPlugin_: Fi(Rr) ? lt(Rr) : void 0,
|
|
793
|
+
arrayMethodsPlugin_: Fi(xi) ? lt(xi) : void 0
|
|
794
794
|
});
|
|
795
795
|
function $i(e, t) {
|
|
796
|
-
t && (e.patchPlugin_ =
|
|
796
|
+
t && (e.patchPlugin_ = lt(Nr), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
|
|
797
797
|
}
|
|
798
798
|
function po(e) {
|
|
799
799
|
yo(e), e.drafts_.forEach(zl), e.drafts_ = null;
|
|
@@ -1010,7 +1010,7 @@ var Vo = {
|
|
|
1010
1010
|
me(11);
|
|
1011
1011
|
},
|
|
1012
1012
|
getPrototypeOf(e) {
|
|
1013
|
-
return
|
|
1013
|
+
return ut(e.base_);
|
|
1014
1014
|
},
|
|
1015
1015
|
setPrototypeOf() {
|
|
1016
1016
|
me(12);
|
|
@@ -1043,12 +1043,12 @@ function Zl(e, t, r) {
|
|
|
1043
1043
|
function Ws(e, t) {
|
|
1044
1044
|
if (!(t in e))
|
|
1045
1045
|
return;
|
|
1046
|
-
let r =
|
|
1046
|
+
let r = ut(e);
|
|
1047
1047
|
for (; r; ) {
|
|
1048
1048
|
const n = Object.getOwnPropertyDescriptor(r, t);
|
|
1049
1049
|
if (n)
|
|
1050
1050
|
return n;
|
|
1051
|
-
r =
|
|
1051
|
+
r = ut(r);
|
|
1052
1052
|
}
|
|
1053
1053
|
}
|
|
1054
1054
|
function mo(e) {
|
|
@@ -1085,7 +1085,7 @@ var Jl = class {
|
|
|
1085
1085
|
} else if (!t || !vt(t)) {
|
|
1086
1086
|
if (o = r(t), o === void 0 && (o = t), o === ko && (o = void 0), this.autoFreeze_ && jo(o, !0), n) {
|
|
1087
1087
|
const i = [], a = [];
|
|
1088
|
-
|
|
1088
|
+
lt(Nr).generateReplacementPatches_(t, o, {
|
|
1089
1089
|
patches_: i,
|
|
1090
1090
|
inversePatches_: a
|
|
1091
1091
|
}), n(i, a);
|
|
@@ -1151,7 +1151,7 @@ var Jl = class {
|
|
|
1151
1151
|
}
|
|
1152
1152
|
}
|
|
1153
1153
|
r > -1 && (t = t.slice(r + 1));
|
|
1154
|
-
const n =
|
|
1154
|
+
const n = lt(Nr).applyPatches_;
|
|
1155
1155
|
return Oe(e) ? n(e, t) : this.produce(
|
|
1156
1156
|
e,
|
|
1157
1157
|
(o) => n(o, t)
|
|
@@ -1159,7 +1159,7 @@ var Jl = class {
|
|
|
1159
1159
|
}
|
|
1160
1160
|
};
|
|
1161
1161
|
function go(e, t, r, n) {
|
|
1162
|
-
const [o, i] = Kt(t) ?
|
|
1162
|
+
const [o, i] = Kt(t) ? lt(Rr).proxyMap_(t, r) : Xt(t) ? lt(Rr).proxySet_(t, r) : Yl(t, r);
|
|
1163
1163
|
return (r?.scope_ ?? qs()).drafts_.push(o), i.callbacks_ = r?.callbacks_ ?? [], i.key_ = n, r && n !== void 0 ? Kl(r, i, n) : i.callbacks_.push(function(u) {
|
|
1164
1164
|
u.mapSetPlugin_?.fixSetContents(i);
|
|
1165
1165
|
const { patchPlugin_: c } = u;
|
|
@@ -1370,11 +1370,11 @@ function ef() {
|
|
|
1370
1370
|
const { path: g, op: E } = d;
|
|
1371
1371
|
let m = p;
|
|
1372
1372
|
for (let A = 0; A < g.length - 1; A++) {
|
|
1373
|
-
const P =
|
|
1373
|
+
const P = ct(m);
|
|
1374
1374
|
let N = g[A];
|
|
1375
1375
|
typeof N != "string" && typeof N != "number" && (N = "" + N), (P === 0 || P === 1) && (N === "__proto__" || N === Ht) && me(19), Ye(m) && N === Wt && me(19), m = Be(m, N), vt(m) || me(18, g.join("/"));
|
|
1376
1376
|
}
|
|
1377
|
-
const b =
|
|
1377
|
+
const b = ct(m), f = v(d.value), w = g[g.length - 1];
|
|
1378
1378
|
switch (E) {
|
|
1379
1379
|
case n:
|
|
1380
1380
|
switch (b) {
|
|
@@ -1423,7 +1423,7 @@ function ef() {
|
|
|
1423
1423
|
);
|
|
1424
1424
|
if (Xt(p))
|
|
1425
1425
|
return new Set(Array.from(p).map(v));
|
|
1426
|
-
const S = Object.create(
|
|
1426
|
+
const S = Object.create(ut(p));
|
|
1427
1427
|
for (const d in p)
|
|
1428
1428
|
S[d] = v(p[d]);
|
|
1429
1429
|
return Lt(p, $t) && (S[$t] = p[$t]), S;
|
|
@@ -2589,14 +2589,14 @@ const Wf = {
|
|
|
2589
2589
|
e.auth.seed = Eo(), e.auth.reason = "clear", e.auth.identity = void 0, e.auth.twoFactor = void 0;
|
|
2590
2590
|
}
|
|
2591
2591
|
}
|
|
2592
|
-
}),
|
|
2592
|
+
}), et = (e) => e[su];
|
|
2593
2593
|
function Qf() {
|
|
2594
2594
|
const e = ul(Bs);
|
|
2595
2595
|
if (!e) throw new Error("AuthService not found");
|
|
2596
2596
|
return e;
|
|
2597
2597
|
}
|
|
2598
2598
|
function uu() {
|
|
2599
|
-
return xe((e) =>
|
|
2599
|
+
return xe((e) => et(e).auth?.identity);
|
|
2600
2600
|
}
|
|
2601
2601
|
const Kf = () => {
|
|
2602
2602
|
const e = Rl(Bo), t = Ds(
|
|
@@ -5058,7 +5058,7 @@ var $e;
|
|
|
5058
5058
|
(function(e) {
|
|
5059
5059
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
5060
5060
|
})($e || ($e = {}));
|
|
5061
|
-
var
|
|
5061
|
+
var tt = (
|
|
5062
5062
|
/** @class */
|
|
5063
5063
|
(function(e) {
|
|
5064
5064
|
Te(t, e);
|
|
@@ -5078,7 +5078,7 @@ var et = (
|
|
|
5078
5078
|
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(o).join('", "'), '"'), $e.INVALID_VALUE, i) || this;
|
|
5079
5079
|
}
|
|
5080
5080
|
return t;
|
|
5081
|
-
})(
|
|
5081
|
+
})(tt)
|
|
5082
5082
|
), Md = (
|
|
5083
5083
|
/** @class */
|
|
5084
5084
|
(function(e) {
|
|
@@ -5087,7 +5087,7 @@ var et = (
|
|
|
5087
5087
|
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), $e.INVALID_VALUE, o) || this;
|
|
5088
5088
|
}
|
|
5089
5089
|
return t;
|
|
5090
|
-
})(
|
|
5090
|
+
})(tt)
|
|
5091
5091
|
), Dd = (
|
|
5092
5092
|
/** @class */
|
|
5093
5093
|
(function(e) {
|
|
@@ -5096,7 +5096,7 @@ var et = (
|
|
|
5096
5096
|
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), $e.MISSING_VALUE, n) || this;
|
|
5097
5097
|
}
|
|
5098
5098
|
return t;
|
|
5099
|
-
})(
|
|
5099
|
+
})(tt)
|
|
5100
5100
|
), Ee;
|
|
5101
5101
|
(function(e) {
|
|
5102
5102
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
@@ -5194,7 +5194,7 @@ function _r(e, t, r, n, o, i, a) {
|
|
|
5194
5194
|
var m = l.options["=".concat(v)];
|
|
5195
5195
|
if (!m) {
|
|
5196
5196
|
if (!Intl.PluralRules)
|
|
5197
|
-
throw new
|
|
5197
|
+
throw new tt(`Intl.PluralRules is not available in this environment.
|
|
5198
5198
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
5199
5199
|
`, $e.MISSING_INTL_API, a);
|
|
5200
5200
|
var b = r.getPluralRules(t, { type: l.pluralType }).select(v - (l.offset || 0));
|
|
@@ -5376,10 +5376,10 @@ var _u = (
|
|
|
5376
5376
|
}
|
|
5377
5377
|
}, e;
|
|
5378
5378
|
})()
|
|
5379
|
-
),
|
|
5379
|
+
), ft;
|
|
5380
5380
|
(function(e) {
|
|
5381
5381
|
e.FORMAT_ERROR = "FORMAT_ERROR", e.UNSUPPORTED_FORMATTER = "UNSUPPORTED_FORMATTER", e.INVALID_CONFIG = "INVALID_CONFIG", e.MISSING_DATA = "MISSING_DATA", e.MISSING_TRANSLATION = "MISSING_TRANSLATION";
|
|
5382
|
-
})(
|
|
5382
|
+
})(ft || (ft = {}));
|
|
5383
5383
|
var Jt = (
|
|
5384
5384
|
/** @class */
|
|
5385
5385
|
(function(e) {
|
|
@@ -5398,7 +5398,7 @@ var Jt = (
|
|
|
5398
5398
|
(function(e) {
|
|
5399
5399
|
Te(t, e);
|
|
5400
5400
|
function t(r, n) {
|
|
5401
|
-
return e.call(this,
|
|
5401
|
+
return e.call(this, ft.UNSUPPORTED_FORMATTER, r, n) || this;
|
|
5402
5402
|
}
|
|
5403
5403
|
return t;
|
|
5404
5404
|
})(Jt)
|
|
@@ -5407,7 +5407,7 @@ var Jt = (
|
|
|
5407
5407
|
(function(e) {
|
|
5408
5408
|
Te(t, e);
|
|
5409
5409
|
function t(r, n) {
|
|
5410
|
-
return e.call(this,
|
|
5410
|
+
return e.call(this, ft.INVALID_CONFIG, r, n) || this;
|
|
5411
5411
|
}
|
|
5412
5412
|
return t;
|
|
5413
5413
|
})(Jt)
|
|
@@ -5416,7 +5416,7 @@ var Jt = (
|
|
|
5416
5416
|
(function(e) {
|
|
5417
5417
|
Te(t, e);
|
|
5418
5418
|
function t(r, n) {
|
|
5419
|
-
return e.call(this,
|
|
5419
|
+
return e.call(this, ft.MISSING_DATA, r, n) || this;
|
|
5420
5420
|
}
|
|
5421
5421
|
return t;
|
|
5422
5422
|
})(Jt)
|
|
@@ -5425,7 +5425,7 @@ var Jt = (
|
|
|
5425
5425
|
(function(e) {
|
|
5426
5426
|
Te(t, e);
|
|
5427
5427
|
function t(r, n, o) {
|
|
5428
|
-
var i = e.call(this,
|
|
5428
|
+
var i = e.call(this, ft.FORMAT_ERROR, "".concat(r, `
|
|
5429
5429
|
Locale: `).concat(n, `
|
|
5430
5430
|
`), o) || this;
|
|
5431
5431
|
return i.locale = n, i;
|
|
@@ -5451,7 +5451,7 @@ Description: `).concat(o?.description, `
|
|
|
5451
5451
|
(function(e) {
|
|
5452
5452
|
Te(t, e);
|
|
5453
5453
|
function t(r, n) {
|
|
5454
|
-
var o = e.call(this,
|
|
5454
|
+
var o = e.call(this, ft.MISSING_TRANSLATION, 'Missing message: "'.concat(r.id, '" for locale "').concat(n, '", using ').concat(r.defaultMessage ? "default message (".concat(typeof r.defaultMessage == "string" ? r.defaultMessage : r.defaultMessage.map(function(i) {
|
|
5455
5455
|
var a;
|
|
5456
5456
|
return (a = i.value) !== null && a !== void 0 ? a : JSON.stringify(i);
|
|
5457
5457
|
}).join(), ")") : "id", " as fallback.")) || this;
|
|
@@ -5494,7 +5494,7 @@ function Au() {
|
|
|
5494
5494
|
displayNames: {}
|
|
5495
5495
|
};
|
|
5496
5496
|
}
|
|
5497
|
-
function
|
|
5497
|
+
function nt(e) {
|
|
5498
5498
|
return {
|
|
5499
5499
|
create: function() {
|
|
5500
5500
|
return {
|
|
@@ -5515,21 +5515,21 @@ function Vd(e) {
|
|
|
5515
5515
|
u[c] = arguments[c];
|
|
5516
5516
|
return new ((s = Intl.DateTimeFormat).bind.apply(s, De([void 0], u, !1)))();
|
|
5517
5517
|
}, {
|
|
5518
|
-
cache:
|
|
5518
|
+
cache: nt(e.dateTime),
|
|
5519
5519
|
strategy: Me.variadic
|
|
5520
5520
|
}), i = Ce(function() {
|
|
5521
5521
|
for (var s, u = [], c = 0; c < arguments.length; c++)
|
|
5522
5522
|
u[c] = arguments[c];
|
|
5523
5523
|
return new ((s = Intl.NumberFormat).bind.apply(s, De([void 0], u, !1)))();
|
|
5524
5524
|
}, {
|
|
5525
|
-
cache:
|
|
5525
|
+
cache: nt(e.number),
|
|
5526
5526
|
strategy: Me.variadic
|
|
5527
5527
|
}), a = Ce(function() {
|
|
5528
5528
|
for (var s, u = [], c = 0; c < arguments.length; c++)
|
|
5529
5529
|
u[c] = arguments[c];
|
|
5530
5530
|
return new ((s = Intl.PluralRules).bind.apply(s, De([void 0], u, !1)))();
|
|
5531
5531
|
}, {
|
|
5532
|
-
cache:
|
|
5532
|
+
cache: nt(e.pluralRules),
|
|
5533
5533
|
strategy: Me.variadic
|
|
5534
5534
|
});
|
|
5535
5535
|
return {
|
|
@@ -5542,7 +5542,7 @@ function Vd(e) {
|
|
|
5542
5542
|
getPluralRules: a
|
|
5543
5543
|
} }, l));
|
|
5544
5544
|
}, {
|
|
5545
|
-
cache:
|
|
5545
|
+
cache: nt(e.message),
|
|
5546
5546
|
strategy: Me.variadic
|
|
5547
5547
|
}),
|
|
5548
5548
|
getRelativeTimeFormat: Ce(function() {
|
|
@@ -5550,7 +5550,7 @@ function Vd(e) {
|
|
|
5550
5550
|
s[u] = arguments[u];
|
|
5551
5551
|
return new (t.bind.apply(t, De([void 0], s, !1)))();
|
|
5552
5552
|
}, {
|
|
5553
|
-
cache:
|
|
5553
|
+
cache: nt(e.relativeTime),
|
|
5554
5554
|
strategy: Me.variadic
|
|
5555
5555
|
}),
|
|
5556
5556
|
getPluralRules: a,
|
|
@@ -5559,7 +5559,7 @@ function Vd(e) {
|
|
|
5559
5559
|
s[u] = arguments[u];
|
|
5560
5560
|
return new (r.bind.apply(r, De([void 0], s, !1)))();
|
|
5561
5561
|
}, {
|
|
5562
|
-
cache:
|
|
5562
|
+
cache: nt(e.list),
|
|
5563
5563
|
strategy: Me.variadic
|
|
5564
5564
|
}),
|
|
5565
5565
|
getDisplayNames: Ce(function() {
|
|
@@ -5567,7 +5567,7 @@ function Vd(e) {
|
|
|
5567
5567
|
s[u] = arguments[u];
|
|
5568
5568
|
return new (n.bind.apply(n, De([void 0], s, !1)))();
|
|
5569
5569
|
}, {
|
|
5570
|
-
cache:
|
|
5570
|
+
cache: nt(e.displayNames),
|
|
5571
5571
|
strategy: Me.variadic
|
|
5572
5572
|
})
|
|
5573
5573
|
};
|
|
@@ -5726,7 +5726,7 @@ var Yd = [
|
|
|
5726
5726
|
];
|
|
5727
5727
|
function Zd(e, t, r, n) {
|
|
5728
5728
|
var o = e.locale, i = e.onError, a = Intl.DisplayNames;
|
|
5729
|
-
a || i(new
|
|
5729
|
+
a || i(new tt(`Intl.DisplayNames is not available in this environment.
|
|
5730
5730
|
Try polyfilling it using "@formatjs/intl-displaynames"
|
|
5731
5731
|
`, $e.MISSING_INTL_API));
|
|
5732
5732
|
var s = Tt(n, Yd);
|
|
@@ -5755,7 +5755,7 @@ function Tu(e, t, r, n) {
|
|
|
5755
5755
|
var o = e.locale, i = e.onError;
|
|
5756
5756
|
n === void 0 && (n = {});
|
|
5757
5757
|
var a = Intl.ListFormat;
|
|
5758
|
-
a || i(new
|
|
5758
|
+
a || i(new tt(`Intl.ListFormat is not available in this environment.
|
|
5759
5759
|
Try polyfilling it using "@formatjs/intl-listformat"
|
|
5760
5760
|
`, $e.MISSING_INTL_API));
|
|
5761
5761
|
var s = Tt(n, Jd);
|
|
@@ -5778,7 +5778,7 @@ Try polyfilling it using "@formatjs/intl-listformat"
|
|
|
5778
5778
|
var rh = ["type"];
|
|
5779
5779
|
function nh(e, t, r, n) {
|
|
5780
5780
|
var o = e.locale, i = e.onError;
|
|
5781
|
-
n === void 0 && (n = {}), Intl.PluralRules || i(new
|
|
5781
|
+
n === void 0 && (n = {}), Intl.PluralRules || i(new tt(`Intl.PluralRules is not available in this environment.
|
|
5782
5782
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
5783
5783
|
`, $e.MISSING_INTL_API));
|
|
5784
5784
|
var a = Tt(n, rh);
|
|
@@ -5799,7 +5799,7 @@ function ih(e, t, r) {
|
|
|
5799
5799
|
function ah(e, t, r, n, o) {
|
|
5800
5800
|
o === void 0 && (o = {}), n || (n = "second");
|
|
5801
5801
|
var i = Intl.RelativeTimeFormat;
|
|
5802
|
-
i || e.onError(new
|
|
5802
|
+
i || e.onError(new tt(`Intl.RelativeTimeFormat is not available in this environment.
|
|
5803
5803
|
Try polyfilling it using "@formatjs/intl-relativetimeformat"
|
|
5804
5804
|
`, $e.MISSING_INTL_API));
|
|
5805
5805
|
try {
|
|
@@ -6354,7 +6354,7 @@ function ju({ className: e, skeleton: t, spin: r, children: n }) {
|
|
|
6354
6354
|
}
|
|
6355
6355
|
const { setIdentity: Ih } = At.actions;
|
|
6356
6356
|
function Ch({ className: e, service: t, children: r }) {
|
|
6357
|
-
const n = xr(), o = cl(!1), i = xe((u) => !
|
|
6357
|
+
const n = xr(), o = cl(!1), i = xe((u) => !et(u).auth.seed), a = je(() => ({ spinning: i, tip: "spin.auth" }), [i]), s = Ds(
|
|
6358
6358
|
(u, c) => n(Ih({ reason: u, identity: c })),
|
|
6359
6359
|
[n]
|
|
6360
6360
|
);
|
|
@@ -6979,7 +6979,7 @@ function Mp(e) {
|
|
|
6979
6979
|
return t();
|
|
6980
6980
|
}
|
|
6981
6981
|
function Dp({ className: e, children: t, getPermissionFor: r, defaultAbility: n }) {
|
|
6982
|
-
const o = uu(), [i, a] = lo(), [s, u] = lo(() => Mp(n)), c = xe((y) =>
|
|
6982
|
+
const o = uu(), [i, a] = lo(), [s, u] = lo(() => Mp(n)), c = xe((y) => et(y).auth.seed);
|
|
6983
6983
|
zt(() => {
|
|
6984
6984
|
if (c === i) return;
|
|
6985
6985
|
const { can: y, cannot: v, build: h } = new Pc(Tc), { allowed: p, denied: S } = r(o);
|
|
@@ -7006,7 +7006,7 @@ function xp(e) {
|
|
|
7006
7006
|
}
|
|
7007
7007
|
const Fp = () => import(
|
|
7008
7008
|
/* @vite-ignore */
|
|
7009
|
-
"./index-
|
|
7009
|
+
"./index-BuBGS-hD.js"
|
|
7010
7010
|
);
|
|
7011
7011
|
async function $p(e, t, r) {
|
|
7012
7012
|
return (await Fp()).default(e, t, r);
|
|
@@ -7079,7 +7079,7 @@ function zr() {
|
|
|
7079
7079
|
throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
|
|
7080
7080
|
if (ie(G, "numericSeparator") && typeof G.numericSeparator != "boolean")
|
|
7081
7081
|
throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
|
|
7082
|
-
var
|
|
7082
|
+
var rt = G.numericSeparator;
|
|
7083
7083
|
if (typeof I > "u")
|
|
7084
7084
|
return "undefined";
|
|
7085
7085
|
if (I === null)
|
|
@@ -7092,11 +7092,11 @@ function zr() {
|
|
|
7092
7092
|
if (I === 0)
|
|
7093
7093
|
return 1 / 0 / I > 0 ? "0" : "-0";
|
|
7094
7094
|
var we = String(I);
|
|
7095
|
-
return
|
|
7095
|
+
return rt ? x(I, we) : we;
|
|
7096
7096
|
}
|
|
7097
7097
|
if (typeof I == "bigint") {
|
|
7098
7098
|
var Qe = String(I) + "n";
|
|
7099
|
-
return
|
|
7099
|
+
return rt ? x(I, Qe) : Qe;
|
|
7100
7100
|
}
|
|
7101
7101
|
var Zr = typeof G.depth > "u" ? 5 : G.depth;
|
|
7102
7102
|
if (typeof ae > "u" && (ae = 0), ae >= Zr && Zr > 0 && typeof I == "object")
|
|
@@ -7396,8 +7396,8 @@ function zr() {
|
|
|
7396
7396
|
var G = typeof _ == "function" ? _(R) : [], We;
|
|
7397
7397
|
if (M) {
|
|
7398
7398
|
We = {};
|
|
7399
|
-
for (var
|
|
7400
|
-
We["$" + G[
|
|
7399
|
+
for (var rt = 0; rt < G.length; rt++)
|
|
7400
|
+
We["$" + G[rt]] = G[rt];
|
|
7401
7401
|
}
|
|
7402
7402
|
for (var we in R)
|
|
7403
7403
|
ie(R, we) && (J && String(Number(we)) === we && we < R.length || M && We["$" + we] instanceof Symbol || (w.call(/[^\w$]/, we) ? ae.push(I(we, R) + ": " + I(R[we], R)) : ae.push(we + ": " + I(R[we], R))));
|
|
@@ -9100,8 +9100,8 @@ var Kc = class extends wy {
|
|
|
9100
9100
|
constructor(e, t, r, n) {
|
|
9101
9101
|
super(e), this.value = t, this.schemaName = r, this._bqMeta = n;
|
|
9102
9102
|
}
|
|
9103
|
-
},
|
|
9104
|
-
async function
|
|
9103
|
+
}, ot = (e, t) => Array.isArray(e) ? e.includes(t) : !!e;
|
|
9104
|
+
async function it(e, t, r, n) {
|
|
9105
9105
|
const o = await e["~standard"].validate(t);
|
|
9106
9106
|
if (o.issues)
|
|
9107
9107
|
throw new Kc(o.issues, t, r, n);
|
|
@@ -9241,7 +9241,7 @@ function Uy({
|
|
|
9241
9241
|
rawResponseSchema: te,
|
|
9242
9242
|
responseSchema: Z
|
|
9243
9243
|
} = $;
|
|
9244
|
-
if (D && !
|
|
9244
|
+
if (D && !ot(z, "arg") && (U = await it(
|
|
9245
9245
|
D,
|
|
9246
9246
|
U,
|
|
9247
9247
|
"argSchema",
|
|
@@ -9273,9 +9273,9 @@ function Uy({
|
|
|
9273
9273
|
let {
|
|
9274
9274
|
data: pe
|
|
9275
9275
|
} = F;
|
|
9276
|
-
te && !
|
|
9276
|
+
te && !ot(z, "rawResponse") && (pe = await it(te, F.data, "rawResponseSchema", F.meta));
|
|
9277
9277
|
let ue = await ye(pe, F.meta, U);
|
|
9278
|
-
return Z && !
|
|
9278
|
+
return Z && !ot(z, "response") && (ue = await it(Z, ue, "responseSchema", F.meta)), {
|
|
9279
9279
|
...F,
|
|
9280
9280
|
data: ue
|
|
9281
9281
|
};
|
|
@@ -9309,7 +9309,7 @@ function Uy({
|
|
|
9309
9309
|
Q = D;
|
|
9310
9310
|
} else
|
|
9311
9311
|
Q = await V(O.originalArgs);
|
|
9312
|
-
return k && !
|
|
9312
|
+
return k && !ot(z, "meta") && Q.meta && (Q.meta = await it(k, Q.meta, "metaSchema", Q.meta)), L(Q.data, Ct({
|
|
9313
9313
|
fulfilledTimeStamp: Date.now(),
|
|
9314
9314
|
baseQueryMeta: Q.meta
|
|
9315
9315
|
}));
|
|
@@ -9326,9 +9326,9 @@ function Uy({
|
|
|
9326
9326
|
meta: U
|
|
9327
9327
|
} = X;
|
|
9328
9328
|
try {
|
|
9329
|
-
Q && !
|
|
9329
|
+
Q && !ot(z, "rawErrorResponse") && (V = await it(Q, V, "rawErrorResponseSchema", U)), k && !ot(z, "meta") && (U = await it(k, U, "metaSchema", U));
|
|
9330
9330
|
let F = await oe(V, U, O.originalArgs);
|
|
9331
|
-
return q && !
|
|
9331
|
+
return q && !ot(z, "errorResponse") && (F = await it(q, F, "errorResponseSchema", U)), M(F, Ct({
|
|
9332
9332
|
baseQueryMeta: U
|
|
9333
9333
|
}));
|
|
9334
9334
|
} catch (F) {
|
|
@@ -10791,7 +10791,7 @@ const { spinUpdate: Ns } = At.actions;
|
|
|
10791
10791
|
function rm(e, t) {
|
|
10792
10792
|
const { beforeFetch: r, afterFetch: n } = t, o = nm(t);
|
|
10793
10793
|
return async (i, a, s) => {
|
|
10794
|
-
const { dispatch: u, getState: c } = a, l = c(), { spin: y, auth: v } =
|
|
10794
|
+
const { dispatch: u, getState: c } = a, l = c(), { spin: y, auth: v } = et(l), h = xy({
|
|
10795
10795
|
baseUrl: ai.getEndpoint(e),
|
|
10796
10796
|
prepareHeaders: async (d) => {
|
|
10797
10797
|
if (d.get("Content-Type") || d.append("Content-Type", "application/json"), e !== 0) {
|
|
@@ -10880,7 +10880,7 @@ const Sm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
10880
10880
|
appSlice: At,
|
|
10881
10881
|
buildStorage: Jc,
|
|
10882
10882
|
fetchBaseQueryX: rm,
|
|
10883
|
-
getAppStore:
|
|
10883
|
+
getAppStore: et,
|
|
10884
10884
|
getLangStore: Ze,
|
|
10885
10885
|
langSlice: nr
|
|
10886
10886
|
}, Symbol.toStringTag, { value: "Module" })), { pushLangMessage: am } = nr.actions;
|
|
@@ -10908,20 +10908,26 @@ const wm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
10908
10908
|
__proto__: null,
|
|
10909
10909
|
wl: sm
|
|
10910
10910
|
}, Symbol.toStringTag, { value: "Module" })), { changeTheme: um } = At.actions;
|
|
10911
|
-
function yi({
|
|
10911
|
+
function yi({
|
|
10912
|
+
children: e,
|
|
10913
|
+
genCSSVars: t,
|
|
10914
|
+
getComponent: r,
|
|
10915
|
+
id: n = "__oiu-theme"
|
|
10916
|
+
}) {
|
|
10912
10917
|
const o = yi;
|
|
10913
|
-
if (!o.provider)
|
|
10914
|
-
|
|
10915
|
-
const i = xr(), a = xe((l) => Ze(l).lang), s = xe((l) => localStorage.getItem("theme") ?? ft(l).theme), u = je(() => r(s), [r, s]);
|
|
10918
|
+
if (!o.provider) throw new Error("UITheme.provider is not defined, please set it before using UITheme");
|
|
10919
|
+
const i = xr(), a = xe((l) => Ze(l).lang), s = xe((l) => typeof localStorage > "u" ? et(l).theme : localStorage.getItem("theme") ?? et(l).theme), u = je(() => r(s), [r, s]);
|
|
10916
10920
|
ll(() => {
|
|
10917
10921
|
if (!t) return;
|
|
10918
10922
|
const { head: l } = document, y = t(s, u);
|
|
10919
10923
|
if (y) {
|
|
10920
|
-
let
|
|
10921
|
-
|
|
10924
|
+
let v = l.querySelector(`style#${n}`);
|
|
10925
|
+
v && v.remove(), v = document.createElement("style"), v.id = n, v.innerHTML = `:root {${y}}`, l.appendChild(v);
|
|
10926
|
+
}
|
|
10927
|
+
if (typeof localStorage < "u") {
|
|
10928
|
+
const v = localStorage.getItem("theme") ?? s;
|
|
10929
|
+
v !== s && i(um(v));
|
|
10922
10930
|
}
|
|
10923
|
-
const v = localStorage.getItem("theme") ?? s;
|
|
10924
|
-
v !== s && i(um(v));
|
|
10925
10931
|
}, [i, t, n, s, u]);
|
|
10926
10932
|
const c = o.provider;
|
|
10927
10933
|
return /* @__PURE__ */ he(c, { lang: a, token: u, children: e });
|
|
@@ -10930,7 +10936,7 @@ function cm(e, t) {
|
|
|
10930
10936
|
return `/themes/${e}/${t}`;
|
|
10931
10937
|
}
|
|
10932
10938
|
function lm() {
|
|
10933
|
-
return xe((e) =>
|
|
10939
|
+
return xe((e) => et(e).theme);
|
|
10934
10940
|
}
|
|
10935
10941
|
const _m = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10936
10942
|
__proto__: null,
|
|
@@ -10947,10 +10953,14 @@ function Om(e) {
|
|
|
10947
10953
|
function Am(e, t = {}, r) {
|
|
10948
10954
|
return je(() => {
|
|
10949
10955
|
console.debug("useInitOIU called: ", e);
|
|
10950
|
-
const { modules: n, slices: o = [] } = t, { setLang: i } = nr.actions, a = ku()
|
|
10951
|
-
|
|
10956
|
+
const { modules: n, slices: o = [] } = t, { setLang: i } = nr.actions, a = ku();
|
|
10957
|
+
let s = a.locale;
|
|
10958
|
+
if (typeof document < "u") {
|
|
10959
|
+
const c = document.getElementsByTagName("html")[0];
|
|
10960
|
+
c.lang !== a.locale && (c.lang = s = a.locale);
|
|
10961
|
+
}
|
|
10952
10962
|
const u = Jc(o, n, r);
|
|
10953
|
-
return u.dispatch(i({ locale: $u(s
|
|
10963
|
+
return u.dispatch(i({ locale: $u(s) ? s : e })), { store: u, langInfo: a };
|
|
10954
10964
|
}, [e, r, t]);
|
|
10955
10965
|
}
|
|
10956
10966
|
export {
|
package/dist/main.js
CHANGED
package/dist/theme/UITheme.d.ts
CHANGED
|
@@ -20,5 +20,5 @@ export type UIThemeComponentType<Token = unknown> = ComponentType<UIThemeProps<T
|
|
|
20
20
|
* @param param0
|
|
21
21
|
* @returns
|
|
22
22
|
*/
|
|
23
|
-
export declare function UITheme<Token = unknown>({ children, genCSSVars, getComponent, id }: UIThemeProps<Token>): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export declare function UITheme<Token = unknown>({ children, genCSSVars, getComponent, id, }: UIThemeProps<Token>): import("react/jsx-runtime").JSX.Element;
|
|
24
24
|
//# sourceMappingURL=UITheme.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UITheme.d.ts","sourceRoot":"","sources":["../../lib/theme/UITheme.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAA4B,MAAM,OAAO,CAAC;AAGnF,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAuC,YAAY,EAAE,MAAM,UAAU,CAAC;AAM7E,MAAM,MAAM,YAAY,CAAC,KAAK,IAAI,iBAAiB,CAAC;IAChD,qFAAqF;IACrF,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,gFAAgF;IAChF,YAAY,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,KAAK,CAAC;IAC7C,kEAAkE;IAClE,UAAU,CAAC,EAAE,CAAC,SAAS,EAAE,YAAY,EAAE,KAAK,EAAE,KAAK,KAAK,MAAM,CAAC;CAClE,CAAC,CAAC;AAEH,MAAM,MAAM,qBAAqB,CAAC,KAAK,GAAG,OAAO,IAAI,aAAa,CAAC,iBAAiB,CAAC;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,KAAK,EAAE,KAAK,CAAA;CAAE,CAAC,CAAC,CAAC;AACxH,MAAM,MAAM,oBAAoB,CAAC,KAAK,GAAG,OAAO,IAAI,aAAa,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,GAAG;IACrF,QAAQ,EAAE,qBAAqB,CAAC,KAAK,CAAC,CAAC;CAC1C,CAAC;AAEF;;;GAGG;AACH,wBAAgB,OAAO,CAAC,KAAK,GAAG,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"UITheme.d.ts","sourceRoot":"","sources":["../../lib/theme/UITheme.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAA4B,MAAM,OAAO,CAAC;AAGnF,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAuC,YAAY,EAAE,MAAM,UAAU,CAAC;AAM7E,MAAM,MAAM,YAAY,CAAC,KAAK,IAAI,iBAAiB,CAAC;IAChD,qFAAqF;IACrF,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,gFAAgF;IAChF,YAAY,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,KAAK,CAAC;IAC7C,kEAAkE;IAClE,UAAU,CAAC,EAAE,CAAC,SAAS,EAAE,YAAY,EAAE,KAAK,EAAE,KAAK,KAAK,MAAM,CAAC;CAClE,CAAC,CAAC;AAEH,MAAM,MAAM,qBAAqB,CAAC,KAAK,GAAG,OAAO,IAAI,aAAa,CAAC,iBAAiB,CAAC;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,KAAK,EAAE,KAAK,CAAA;CAAE,CAAC,CAAC,CAAC;AACxH,MAAM,MAAM,oBAAoB,CAAC,KAAK,GAAG,OAAO,IAAI,aAAa,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,GAAG;IACrF,QAAQ,EAAE,qBAAqB,CAAC,KAAK,CAAC,CAAC;CAC1C,CAAC;AAEF;;;GAGG;AACH,wBAAgB,OAAO,CAAC,KAAK,GAAG,OAAO,EAAE,EACrC,QAAQ,EACR,UAAU,EACV,YAAY,EACZ,EAAkB,GACrB,EAAE,YAAY,CAAC,KAAK,CAAC,2CA6CrB"}
|