@realtek/core-theme 0.0.327 → 0.0.328
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-lib/index.cjs +1 -1
- package/dist-lib/index.cjs.map +1 -1
- package/dist-lib/index.js +10 -5
- package/dist-lib/index.js.map +1 -1
- package/package.json +1 -1
package/dist-lib/index.js
CHANGED
|
@@ -5596,11 +5596,16 @@ function Nm({ moduleName: e, authToken: t, actions: n = [], actionRules: r = [],
|
|
|
5596
5596
|
e && Ve(String(e));
|
|
5597
5597
|
}
|
|
5598
5598
|
}, [Be, Vn]), F(() => {
|
|
5599
|
-
if (he === void 0 || !Vn.length
|
|
5600
|
-
|
|
5601
|
-
|
|
5602
|
-
t
|
|
5603
|
-
|
|
5599
|
+
if (he === void 0 || !Vn.length) return;
|
|
5600
|
+
let e = Vn.find((e, t) => tm(em(e, t)) === tm(he));
|
|
5601
|
+
if (!e) return;
|
|
5602
|
+
let t = String(em(e, Vn.indexOf(e)));
|
|
5603
|
+
(he !== ht.current || tm(Be) !== tm(t)) && (ht.current = he, Ve((e) => tm(e) === tm(t) ? e : t));
|
|
5604
|
+
}, [
|
|
5605
|
+
Be,
|
|
5606
|
+
Vn,
|
|
5607
|
+
he
|
|
5608
|
+
]);
|
|
5604
5609
|
let Hn = (e) => {
|
|
5605
5610
|
let t = wn.map((e) => {
|
|
5606
5611
|
let t = {};
|