@invoice-sdk/widget 1.70.2 → 1.72.0
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.
|
@@ -67,7 +67,7 @@ var U = (A, g, B) => new Promise((C, Q) => {
|
|
|
67
67
|
throw I;
|
|
68
68
|
}, "return" in g && C("return"), Q;
|
|
69
69
|
}, VB = (A, g, B) => (g = A[Yg("asyncIterator")]) ? g.call(A) : (A = A[Yg("iterator")](), g = {}, B = (C, Q) => (Q = A[C]) && (g[C] = (I) => new Promise((E, n, t) => (I = Q.call(A, I), t = I.done, Promise.resolve(I.value).then((c) => E({ value: c, done: t }), n)))), B("next"), B("return"), g);
|
|
70
|
-
import { t as s, g as gB, a as CB, b as qg, c as LI, m as NI, d as yI, f as bI, v as jI, r as ZQ, u as VQ } from "./index-
|
|
70
|
+
import { t as s, g as gB, a as CB, b as qg, c as LI, m as NI, d as yI, f as bI, v as jI, r as ZQ, u as VQ } from "./index-CFL1yuji.js";
|
|
71
71
|
import { g as WQ } from "./_commonjsHelpers-bAxELxBV.js";
|
|
72
72
|
function WB({ steps: A = [], currentStep: g = 1 } = {}) {
|
|
73
73
|
const B = document.createElement("div");
|
|
@@ -3485,24 +3485,24 @@ var Kg = (A, g, B) => new Promise((C, Q) => {
|
|
|
3485
3485
|
function iQ(A = "dev") {
|
|
3486
3486
|
const g = {
|
|
3487
3487
|
dev: {
|
|
3488
|
-
modelUrl: "
|
|
3489
|
-
modeClassifyUrl: "
|
|
3488
|
+
modelUrl: "https://stag-invoice-hub.atomsolution.vn/core-api/static/ocr-models/qrdet_n_sim_1.onnx",
|
|
3489
|
+
modeClassifyUrl: "https://stag-invoice-hub.atomsolution.vn/core-api/static/ocr-models/classification.onnx"
|
|
3490
3490
|
},
|
|
3491
3491
|
stag: {
|
|
3492
|
-
modelUrl: "
|
|
3493
|
-
modeClassifyUrl: "
|
|
3492
|
+
modelUrl: "https://stag-invoice-hub.atomsolution.vn/core-api/static/ocr-models/qrdet_n_sim_1.onnx",
|
|
3493
|
+
modeClassifyUrl: "https://stag-invoice-hub.atomsolution.vn/core-api/static/ocr-models/classification.onnx"
|
|
3494
3494
|
},
|
|
3495
3495
|
uat: {
|
|
3496
|
-
modelUrl: "
|
|
3497
|
-
modeClassifyUrl: "
|
|
3496
|
+
modelUrl: "https://stag-invoice-hub.atomsolution.vn/core-api/static/ocr-models/qrdet_n_sim_1.onnx",
|
|
3497
|
+
modeClassifyUrl: "https://stag-invoice-hub.atomsolution.vn/core-api/static/ocr-models/classification.onnx"
|
|
3498
3498
|
},
|
|
3499
3499
|
pilot: {
|
|
3500
|
-
modelUrl: "
|
|
3501
|
-
modeClassifyUrl: "
|
|
3500
|
+
modelUrl: "https://stag-invoice-hub.atomsolution.vn/core-api/static/ocr-models/qrdet_n_sim_1.onnx",
|
|
3501
|
+
modeClassifyUrl: "https://stag-invoice-hub.atomsolution.vn/core-api/static/ocr-models/classification.onnx"
|
|
3502
3502
|
},
|
|
3503
3503
|
prod: {
|
|
3504
|
-
modelUrl: "https://invoice-hub.atomsolution.vn/core-api/ocr-
|
|
3505
|
-
modeClassifyUrl: "
|
|
3504
|
+
modelUrl: "https://invoice-hub.atomsolution.vn/core-api/static/ocr-models/qrdet_n_sim_1.onnx",
|
|
3505
|
+
modeClassifyUrl: "https://invoice-hub.atomsolution.vn/core-api/static/ocr-models/classification.onnx"
|
|
3506
3506
|
}
|
|
3507
3507
|
};
|
|
3508
3508
|
return g[A] || g.dev;
|
|
@@ -3511,7 +3511,7 @@ let og = null, $C = null, Og = null, AB = null;
|
|
|
3511
3511
|
function _n() {
|
|
3512
3512
|
return Kg(this, null, function* () {
|
|
3513
3513
|
try {
|
|
3514
|
-
og || (og = yield import("https://cdn.jsdelivr.net/npm/onnxruntime-web/dist/ort.mjs")), $C || ($C = (yield import("https://cdn.jsdelivr.net/npm/@undecaf/zbar-wasm@0.11.0/dist/index.mjs")).scanImageData)
|
|
3514
|
+
og || (og = yield import("https://cdn.jsdelivr.net/npm/onnxruntime-web/dist/ort.mjs")), $C || ($C = (yield import("https://cdn.jsdelivr.net/npm/@undecaf/zbar-wasm@0.11.0/dist/index.mjs")).scanImageData);
|
|
3515
3515
|
} catch (A) {
|
|
3516
3516
|
throw new Error(`Failed to initialize required modules: ${A.message}`);
|
|
3517
3517
|
}
|
|
@@ -3657,7 +3657,7 @@ function Bt(A, g, B) {
|
|
|
3657
3657
|
}
|
|
3658
3658
|
function Qt(A) {
|
|
3659
3659
|
const g = A.split("|");
|
|
3660
|
-
if (g.length !== 7) throw new Error("QR
|
|
3660
|
+
if (g.length !== 7) throw new Error("QR is not valid");
|
|
3661
3661
|
return {
|
|
3662
3662
|
id_number: g[0],
|
|
3663
3663
|
id_number_old: g[1],
|
|
@@ -4643,7 +4643,7 @@ function sQ({
|
|
|
4643
4643
|
}
|
|
4644
4644
|
};
|
|
4645
4645
|
}
|
|
4646
|
-
const ot = "1.
|
|
4646
|
+
const ot = "1.72.0";
|
|
4647
4647
|
function at(B) {
|
|
4648
4648
|
return U(this, arguments, function* ({ search: A, bank: g }) {
|
|
4649
4649
|
return (yield UA.get(`${EC}`, {
|
package/package.json
CHANGED
|
@@ -46,10 +46,10 @@
|
|
|
46
46
|
"prepare": "npm run build"
|
|
47
47
|
},
|
|
48
48
|
"type": "module",
|
|
49
|
-
"version": "1.
|
|
49
|
+
"version": "1.72.0",
|
|
50
50
|
"repository": {},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@invoice-sdk/id_extraction_qr": "^1.
|
|
52
|
+
"@invoice-sdk/id_extraction_qr": "^1.5.0",
|
|
53
53
|
"axios": "^1.9.0",
|
|
54
54
|
"i18next": "^25.2.1",
|
|
55
55
|
"i18next-browser-languagedetector": "^8.2.0",
|