xvai-loi 0.1.92 → 0.1.94
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/co.txt +1 -1
- package/package.json +1 -1
- package/xvai-loi.js +49 -7
package/co.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
xvaiLoi121336
|
package/package.json
CHANGED
package/xvai-loi.js
CHANGED
|
@@ -12655,6 +12655,10 @@ function lapCuongMe(o) {
|
|
|
12655
12655
|
s.khoa = 1;
|
|
12656
12656
|
nS++;
|
|
12657
12657
|
}
|
|
12658
|
+
if (/^(anh|chia)$/.test(String(s.bo)) && typeof e.giant === "string" && typeof e.chu !== "string") {
|
|
12659
|
+
s.chu = e.giant.split(String.fromCharCode(10)).join(" ");
|
|
12660
|
+
s.giant = "";
|
|
12661
|
+
}
|
|
12658
12662
|
if (typeof e.d === "number" && e.d > 0.3) {
|
|
12659
12663
|
s.d = e.d;
|
|
12660
12664
|
s.dSua = 1;
|
|
@@ -19207,6 +19211,34 @@ async function handleExport(currentProject, setExporting, setExportedBlob, addLo
|
|
|
19207
19211
|
if (typeof m === "string") window.__mucHieuUng = m;
|
|
19208
19212
|
} catch (e) {
|
|
19209
19213
|
}
|
|
19214
|
+
try {
|
|
19215
|
+
const W4 = window, k = String(currentProject.name || "du-an");
|
|
19216
|
+
if (W4.__lichSuaCua !== k) {
|
|
19217
|
+
const d = await docDem("lichSua:" + k);
|
|
19218
|
+
W4.__lichSua = d && d.sua && Object.keys(d.sua).length ? d.sua : null;
|
|
19219
|
+
W4.__lichSuaCua = k;
|
|
19220
|
+
}
|
|
19221
|
+
} catch (e) {
|
|
19222
|
+
}
|
|
19223
|
+
try {
|
|
19224
|
+
const W4 = window, k = String(currentProject.name || "du-an");
|
|
19225
|
+
for (const c of ["xvaiKieuChu", "xvaiKieuChuTen", "xvaiAm", "xvaiMau", "xvaiCatTay"]) {
|
|
19226
|
+
const v = await docDem("cai:" + k + ":" + c);
|
|
19227
|
+
if (typeof v !== "string") continue;
|
|
19228
|
+
try {
|
|
19229
|
+
localStorage.setItem(c, v);
|
|
19230
|
+
} catch (e) {
|
|
19231
|
+
}
|
|
19232
|
+
const g = { xvaiKieuChu: "__xvaiKieuChu", xvaiAm: "__xvaiAm", xvaiMau: "__xvaiMau", xvaiCatTay: "__catTay" }[c];
|
|
19233
|
+
if (g) {
|
|
19234
|
+
try {
|
|
19235
|
+
W4[g] = JSON.parse(v);
|
|
19236
|
+
} catch (e) {
|
|
19237
|
+
}
|
|
19238
|
+
}
|
|
19239
|
+
}
|
|
19240
|
+
} catch (e) {
|
|
19241
|
+
}
|
|
19210
19242
|
try {
|
|
19211
19243
|
await loadFaceLandmarker();
|
|
19212
19244
|
} catch (e) {
|
|
@@ -21037,7 +21069,7 @@ function datCauLenh(a) {
|
|
|
21037
21069
|
on2 = true;
|
|
21038
21070
|
window.addEventListener("message", async (ev) => {
|
|
21039
21071
|
const d = ev.data;
|
|
21040
|
-
if (!d || d.
|
|
21072
|
+
if (!d || d.xvaiLoi121336 !== true) return;
|
|
21041
21073
|
const o = String(ev.origin || "");
|
|
21042
21074
|
if (!(o.indexOf("https://flow.google.com") === 0 || o.indexOf("https://labs.google") === 0)) return;
|
|
21043
21075
|
const tra = (kq) => {
|
|
@@ -21277,6 +21309,13 @@ async function ngheCat(t0, t1) {
|
|
|
21277
21309
|
var nut3 = "px-2 py-1 rounded bg-[#1E3A5F] text-[11px] font-bold hover:bg-[#2C4A73]";
|
|
21278
21310
|
var SuaLich = ({ ten, onDong }) => {
|
|
21279
21311
|
const G3 = globalThis;
|
|
21312
|
+
const luuCai = (k, v) => {
|
|
21313
|
+
try {
|
|
21314
|
+
localStorage.setItem(k, v);
|
|
21315
|
+
} catch (e) {
|
|
21316
|
+
}
|
|
21317
|
+
ghiDem("cai:" + ten + ":" + k, v);
|
|
21318
|
+
};
|
|
21280
21319
|
const [ds2, setDs] = useState(G3.__lichSp || []);
|
|
21281
21320
|
const [sua, setSua] = useState(G3.__lichSua || {});
|
|
21282
21321
|
const [bao, setBao] = useState("");
|
|
@@ -21286,6 +21325,7 @@ var SuaLich = ({ ten, onDong }) => {
|
|
|
21286
21325
|
if (d && d.sua && !Object.keys(sua).length) {
|
|
21287
21326
|
setSua(d.sua);
|
|
21288
21327
|
G3.__lichSua = d.sua;
|
|
21328
|
+
G3.__lichSuaCua = ten;
|
|
21289
21329
|
setBao("\u0110\xE3 n\u1EA1p " + Object.keys(d.sua).length + " s\u1EEDa tay \u0111\xE3 l\u01B0u");
|
|
21290
21330
|
}
|
|
21291
21331
|
})();
|
|
@@ -21303,6 +21343,7 @@ var SuaLich = ({ ten, onDong }) => {
|
|
|
21303
21343
|
const apSua = (n) => {
|
|
21304
21344
|
setSua(n);
|
|
21305
21345
|
G3.__lichSua = n;
|
|
21346
|
+
G3.__lichSuaCua = ten;
|
|
21306
21347
|
};
|
|
21307
21348
|
const hoanTac = () => {
|
|
21308
21349
|
if (!lsHoan.length) return;
|
|
@@ -21335,6 +21376,7 @@ var SuaLich = ({ ten, onDong }) => {
|
|
|
21335
21376
|
}, [ten]);
|
|
21336
21377
|
const luu2 = async () => {
|
|
21337
21378
|
G3.__lichSua = sua;
|
|
21379
|
+
G3.__lichSuaCua = ten;
|
|
21338
21380
|
await ghiDem("lichSua:" + ten, { sua });
|
|
21339
21381
|
const t = Date.now();
|
|
21340
21382
|
await ghiDem("lichSua:" + ten + ":" + t, { sua });
|
|
@@ -21420,7 +21462,7 @@ var SuaLich = ({ ten, onDong }) => {
|
|
|
21420
21462
|
setFx(n);
|
|
21421
21463
|
G3.__xvaiMau = n;
|
|
21422
21464
|
try {
|
|
21423
|
-
|
|
21465
|
+
luuCai("xvaiMau", JSON.stringify(n));
|
|
21424
21466
|
} catch (e) {
|
|
21425
21467
|
}
|
|
21426
21468
|
if (typeof G3.__loiSetP === "function") {
|
|
@@ -21501,7 +21543,7 @@ var SuaLich = ({ ten, onDong }) => {
|
|
|
21501
21543
|
setAm(n);
|
|
21502
21544
|
G3.__xvaiAm = n;
|
|
21503
21545
|
try {
|
|
21504
|
-
|
|
21546
|
+
luuCai("xvaiAm", JSON.stringify(n));
|
|
21505
21547
|
} catch (e) {
|
|
21506
21548
|
}
|
|
21507
21549
|
if (typeof G3.__loiSetP === "function") G3.__loiSetP((c) => c ? { ...c, studioFx: { ...c.studioFx || {}, amLuong: n } } : c);
|
|
@@ -21568,8 +21610,8 @@ var SuaLich = ({ ten, onDong }) => {
|
|
|
21568
21610
|
const v = KIEU_CHU[t] || {};
|
|
21569
21611
|
G3.__xvaiKieuChu = v;
|
|
21570
21612
|
try {
|
|
21571
|
-
|
|
21572
|
-
|
|
21613
|
+
luuCai("xvaiKieuChu", JSON.stringify(v));
|
|
21614
|
+
luuCai("xvaiKieuChuTen", t);
|
|
21573
21615
|
} catch (e) {
|
|
21574
21616
|
}
|
|
21575
21617
|
setBao("Ki\u1EC3u ch\u1EEF c\u1EA3 b\xE0i: " + t + " \u2192 V\u1EBD l\u1EA1i / Xu\u1EA5t");
|
|
@@ -21651,7 +21693,7 @@ var SuaLich = ({ ten, onDong }) => {
|
|
|
21651
21693
|
setCatTay(n);
|
|
21652
21694
|
G3.__catTay = n;
|
|
21653
21695
|
try {
|
|
21654
|
-
|
|
21696
|
+
luuCai("xvaiCatTay", JSON.stringify(n));
|
|
21655
21697
|
} catch (e) {
|
|
21656
21698
|
}
|
|
21657
21699
|
};
|
|
@@ -21733,7 +21775,7 @@ var SuaLich = ({ ten, onDong }) => {
|
|
|
21733
21775
|
setFx(n);
|
|
21734
21776
|
G3.__xvaiMau = n;
|
|
21735
21777
|
try {
|
|
21736
|
-
|
|
21778
|
+
luuCai("xvaiMau", JSON.stringify(n));
|
|
21737
21779
|
} catch (e) {
|
|
21738
21780
|
}
|
|
21739
21781
|
if (typeof G3.__loiSetP === "function") G3.__loiSetP((c) => c ? { ...c, studioFx: { ...c.studioFx || {}, mau: n } } : c);
|