@invoice-sdk/widget 1.91.0 → 1.92.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.
|
@@ -2509,7 +2509,15 @@ const Pg = "data:image/svg+xml,%3csvg%20width='79'%20height='32'%20viewBox='0%20
|
|
|
2509
2509
|
onboarding: !0,
|
|
2510
2510
|
sso: !1,
|
|
2511
2511
|
logoUrl: Ug,
|
|
2512
|
-
features: [
|
|
2512
|
+
features: [
|
|
2513
|
+
"check_status",
|
|
2514
|
+
"serial",
|
|
2515
|
+
"export",
|
|
2516
|
+
"invoices",
|
|
2517
|
+
"view",
|
|
2518
|
+
"sign",
|
|
2519
|
+
"sso"
|
|
2520
|
+
]
|
|
2513
2521
|
},
|
|
2514
2522
|
misa: {
|
|
2515
2523
|
email: "",
|
|
@@ -2584,7 +2592,17 @@ const Pg = "data:image/svg+xml,%3csvg%20width='79'%20height='32'%20viewBox='0%20
|
|
|
2584
2592
|
bvb: {
|
|
2585
2593
|
fpt: { isActive: !0 },
|
|
2586
2594
|
misa: { isActive: !0 },
|
|
2587
|
-
viettel: { isActive: !0 }
|
|
2595
|
+
viettel: { isActive: !0 },
|
|
2596
|
+
"m-invoice": {
|
|
2597
|
+
features: [
|
|
2598
|
+
"check_status",
|
|
2599
|
+
"serial",
|
|
2600
|
+
"export",
|
|
2601
|
+
"invoices",
|
|
2602
|
+
"view",
|
|
2603
|
+
"sign"
|
|
2604
|
+
]
|
|
2605
|
+
}
|
|
2588
2606
|
},
|
|
2589
2607
|
ocb: {
|
|
2590
2608
|
fpt: { isActive: !0 },
|
|
@@ -2701,10 +2719,22 @@ function BA(e, A) {
|
|
|
2701
2719
|
return t;
|
|
2702
2720
|
}
|
|
2703
2721
|
function Tg(e, A) {
|
|
2704
|
-
const t = [
|
|
2722
|
+
const t = [
|
|
2723
|
+
"email",
|
|
2724
|
+
"hotline",
|
|
2725
|
+
"invoiceLookupUrl",
|
|
2726
|
+
"isActive",
|
|
2727
|
+
"link",
|
|
2728
|
+
"name",
|
|
2729
|
+
"onboarding",
|
|
2730
|
+
"sso",
|
|
2731
|
+
"features"
|
|
2732
|
+
];
|
|
2705
2733
|
for (const i of t)
|
|
2706
2734
|
if (!(i in e))
|
|
2707
|
-
return console.warn(
|
|
2735
|
+
return console.warn(
|
|
2736
|
+
`[SettingsManager] Missing field '${i}' in provider '${A}'`
|
|
2737
|
+
), !1;
|
|
2708
2738
|
return !0;
|
|
2709
2739
|
}
|
|
2710
2740
|
function ft(e, A, t) {
|
|
@@ -2714,9 +2744,17 @@ function ft(e, A, t) {
|
|
|
2714
2744
|
return XA.get(i);
|
|
2715
2745
|
try {
|
|
2716
2746
|
let I = BA({}, wt[t]);
|
|
2717
|
-
return (n = Ve[e]) != null && n[t] && (I = BA(I, Ve[e][t])), (C = Xe[A]) != null && C[t] && (I = BA(I, Xe[A][t])), (r = (o = $e[e]) == null ? void 0 : o[A]) != null && r[t] && (I = BA(
|
|
2747
|
+
return (n = Ve[e]) != null && n[t] && (I = BA(I, Ve[e][t])), (C = Xe[A]) != null && C[t] && (I = BA(I, Xe[A][t])), (r = (o = $e[e]) == null ? void 0 : o[A]) != null && r[t] && (I = BA(
|
|
2748
|
+
I,
|
|
2749
|
+
$e[e][A][t]
|
|
2750
|
+
)), Tg(I, t) ? (XA.set(i, I), I) : (console.error(
|
|
2751
|
+
`[SettingsManager] Invalid configuration for ${e}:${A}:${t}`
|
|
2752
|
+
), null);
|
|
2718
2753
|
} catch (I) {
|
|
2719
|
-
return console.error(
|
|
2754
|
+
return console.error(
|
|
2755
|
+
`[SettingsManager] Error getting settings for ${e}:${A}:${t}:`,
|
|
2756
|
+
I
|
|
2757
|
+
), null;
|
|
2720
2758
|
}
|
|
2721
2759
|
}
|
|
2722
2760
|
function Vg(e, A) {
|
|
@@ -4766,7 +4804,7 @@ let te = null, ie = null, nA = null, CA = null;
|
|
|
4766
4804
|
function dB(e) {
|
|
4767
4805
|
return k(this, null, function* () {
|
|
4768
4806
|
if (e.mode && pt(e.mode), e.baseUrl && qt(e.mode, e.baseUrl), e.language && Xt(e.language), e.onRefreshToken && jQ(e.onRefreshToken), e.accessTokenKey && HQ(e.accessTokenKey), e.refreshTokenKey && (e.refreshTokenKey, void 0), !ie) {
|
|
4769
|
-
const { InvoiceRegisterWidget: i } = yield import("./widget-
|
|
4807
|
+
const { InvoiceRegisterWidget: i } = yield import("./widget-CY61iKML.js");
|
|
4770
4808
|
ie = i;
|
|
4771
4809
|
}
|
|
4772
4810
|
const A = typeof e.selector == "string" ? document.querySelector(e.selector) : e.selector;
|
|
@@ -4792,7 +4830,7 @@ function dB(e) {
|
|
|
4792
4830
|
function lB(e) {
|
|
4793
4831
|
return k(this, null, function* () {
|
|
4794
4832
|
if (e.mode && pt(e.mode), e.baseUrl && qt(e.mode, e.baseUrl), e.language && Xt(e.language), !te) {
|
|
4795
|
-
const { EContractWidget: i } = yield import("./widget-
|
|
4833
|
+
const { EContractWidget: i } = yield import("./widget-CY61iKML.js");
|
|
4796
4834
|
te = i;
|
|
4797
4835
|
}
|
|
4798
4836
|
const A = typeof e.selector == "string" ? document.querySelector(e.selector) : e.selector;
|
package/dist/index.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as s, w as a, p as i, q as r, r as g, y as n, x as o, z as u, u as c } from "./index-
|
|
1
|
+
import { A as s, w as a, p as i, q as r, r as g, y as n, x as o, z as u, u as c } from "./index-webJNIb6.js";
|
|
2
2
|
export {
|
|
3
3
|
s as checkContractStatus,
|
|
4
4
|
a as getSettings,
|