xvai-loi 0.1.111 → 0.1.112
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 +7 -42
package/co.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
xvaiLoi130025
|
package/package.json
CHANGED
package/xvai-loi.js
CHANGED
|
@@ -19232,46 +19232,7 @@ async function handleExport(currentProject, setExporting, setExportedBlob, addLo
|
|
|
19232
19232
|
await chupTrangThieu(kb, (st) => setExporting({ percent: 1, step: st }));
|
|
19233
19233
|
{
|
|
19234
19234
|
const G3 = globalThis, bao = (st) => setExporting({ percent: 1, step: st });
|
|
19235
|
-
|
|
19236
|
-
if (localStorage.getItem("xvaiTaoNhanh") === "1") {
|
|
19237
|
-
try {
|
|
19238
|
-
const ds2 = dsTaiSan(mauPd.doan, kb), cu = G3.__taiSanThu;
|
|
19239
|
-
const gia2 = new Map(ds2.map((x) => [x[0], { laVideo: false, dai: 0, width: x[2] === "1:1" ? 1024 : x[2] === "16:9" ? 1376 : 768, height: x[2] === "1:1" ? 1024 : x[2] === "16:9" ? 768 : 1376, khung: () => null }]));
|
|
19240
|
-
const xepThu = () => {
|
|
19241
|
-
G3.__taiSanThu = (t) => gia2.get(t) || (cu ? cu(t) : null);
|
|
19242
|
-
try {
|
|
19243
|
-
apDungDoan(currentProject, mauPd, JSON.parse(JSON.stringify(kb)));
|
|
19244
|
-
const d = G3.__lichCm && G3.__lichCm.dungTen;
|
|
19245
|
-
return Array.isArray(d) ? d : null;
|
|
19246
|
-
} finally {
|
|
19247
|
-
G3.__taiSanThu = cu;
|
|
19248
|
-
}
|
|
19249
|
-
};
|
|
19250
|
-
const co = (t) => {
|
|
19251
|
-
G3.__taiSanThu = cu;
|
|
19252
|
-
return !!taiSan(t);
|
|
19253
|
-
};
|
|
19254
|
-
G3.__chiAnhVong = [];
|
|
19255
|
-
for (let v = 0; v < 3; v++) {
|
|
19256
|
-
const d = xepThu();
|
|
19257
|
-
if (!d) {
|
|
19258
|
-
chiAnh = null;
|
|
19259
|
-
break;
|
|
19260
|
-
}
|
|
19261
|
-
const can = d.filter((t) => !co(t));
|
|
19262
|
-
G3.__chiAnhVong.push([d.length, can.length]);
|
|
19263
|
-
if (!can.length) {
|
|
19264
|
-
chiAnh = chiAnh || /* @__PURE__ */ new Set();
|
|
19265
|
-
break;
|
|
19266
|
-
}
|
|
19267
|
-
chiAnh = new Set(can);
|
|
19268
|
-
await chuanBiTaiSanAI(mauPd.doan, kb, bao, chiAnh);
|
|
19269
|
-
}
|
|
19270
|
-
} catch (e) {
|
|
19271
|
-
chiAnh = null;
|
|
19272
|
-
}
|
|
19273
|
-
}
|
|
19274
|
-
if (!chiAnh) await chuanBiTaiSanAI(mauPd.doan, kb, bao);
|
|
19235
|
+
await chuanBiTaiSanAI(mauPd.doan, kb, bao);
|
|
19275
19236
|
}
|
|
19276
19237
|
await kiemAnhTao(kb, window.__wsGocKB || currentProject.speechDraft?.analysis?.words || [], (st) => setExporting({ percent: 1, step: st }));
|
|
19277
19238
|
currentProject = apDungDoan(currentProject, mauPd, kb);
|
|
@@ -20730,7 +20691,11 @@ var StudioEdit = ({ project, setProject, exporting, blob, onExport, onDownload,
|
|
|
20730
20691
|
setProject(p);
|
|
20731
20692
|
setToc("1");
|
|
20732
20693
|
setDoc("");
|
|
20733
|
-
|
|
20694
|
+
for (let i = 0; i < 60; i++) {
|
|
20695
|
+
await new Promise((r) => setTimeout(r, 500));
|
|
20696
|
+
const c = W3.__proApi?.chanDoan?.();
|
|
20697
|
+
if (i > 2 && c && c.projectId === p.id && c.compatible && c.source) break;
|
|
20698
|
+
}
|
|
20734
20699
|
} catch (e) {
|
|
20735
20700
|
setDoc("");
|
|
20736
20701
|
setLoi("T\u0103ng t\u1ED1c l\u1EDDi l\u1ED7i, d\u1EF1ng \u1EDF t\u1ED1c \u0111\u1ED9 g\u1ED1c: " + String(e && e.message || e));
|
|
@@ -21033,7 +20998,7 @@ function datCauLenh(a) {
|
|
|
21033
20998
|
on2 = true;
|
|
21034
20999
|
window.addEventListener("message", async (ev) => {
|
|
21035
21000
|
const d = ev.data;
|
|
21036
|
-
if (!d || d.
|
|
21001
|
+
if (!d || d.xvaiLoi130025 !== true) return;
|
|
21037
21002
|
const o = String(ev.origin || "");
|
|
21038
21003
|
if (!(o.indexOf("https://flow.google.com") === 0 || o.indexOf("https://labs.google") === 0)) return;
|
|
21039
21004
|
const tra = (kq) => {
|