@invoice-sdk/widget 1.90.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.
@@ -2490,7 +2490,7 @@ const Pg = "data:image/svg+xml,%3csvg%20width='79'%20height='32'%20viewBox='0%20
2490
2490
  fpt: {
2491
2491
  email: "",
2492
2492
  hotline: "",
2493
- invoiceLookupUrl: "",
2493
+ invoiceLookupUrl: "https://tracuuhoadon.fpt.com.vn",
2494
2494
  isActive: !1,
2495
2495
  link: "",
2496
2496
  name: "fpt",
@@ -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: ["check_status", "serial", "export", "invoices", "view", "sign", "sso"]
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: "",
@@ -2542,6 +2550,9 @@ const Pg = "data:image/svg+xml,%3csvg%20width='79'%20height='32'%20viewBox='0%20
2542
2550
  },
2543
2551
  misa: {
2544
2552
  invoiceLookupUrl: "https://test.meinvoice.vn/tra-cuu"
2553
+ },
2554
+ fpt: {
2555
+ invoiceLookupUrl: "https://tracuuhoadon-uat.einvoice.fpt.com.vn"
2545
2556
  }
2546
2557
  },
2547
2558
  pilot: {
@@ -2550,6 +2561,9 @@ const Pg = "data:image/svg+xml,%3csvg%20width='79'%20height='32'%20viewBox='0%20
2550
2561
  },
2551
2562
  misa: {
2552
2563
  invoiceLookupUrl: "https://test.meinvoice.vn/tra-cuu"
2564
+ },
2565
+ fpt: {
2566
+ invoiceLookupUrl: "https://tracuuhoadon-uat.einvoice.fpt.com.vn"
2553
2567
  }
2554
2568
  },
2555
2569
  stag: {
@@ -2558,6 +2572,9 @@ const Pg = "data:image/svg+xml,%3csvg%20width='79'%20height='32'%20viewBox='0%20
2558
2572
  },
2559
2573
  misa: {
2560
2574
  invoiceLookupUrl: "https://test.meinvoice.vn/tra-cuu"
2575
+ },
2576
+ fpt: {
2577
+ invoiceLookupUrl: "https://tracuuhoadon-uat.einvoice.fpt.com.vn"
2561
2578
  }
2562
2579
  },
2563
2580
  uat: {
@@ -2566,13 +2583,26 @@ const Pg = "data:image/svg+xml,%3csvg%20width='79'%20height='32'%20viewBox='0%20
2566
2583
  },
2567
2584
  misa: {
2568
2585
  invoiceLookupUrl: "https://test.meinvoice.vn/tra-cuu"
2586
+ },
2587
+ fpt: {
2588
+ invoiceLookupUrl: "https://tracuuhoadon-uat.einvoice.fpt.com.vn"
2569
2589
  }
2570
2590
  }
2571
2591
  }, Xe = {
2572
2592
  bvb: {
2573
2593
  fpt: { isActive: !0 },
2574
2594
  misa: { isActive: !0 },
2575
- 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
+ }
2576
2606
  },
2577
2607
  ocb: {
2578
2608
  fpt: { isActive: !0 },
@@ -2689,10 +2719,22 @@ function BA(e, A) {
2689
2719
  return t;
2690
2720
  }
2691
2721
  function Tg(e, A) {
2692
- const t = ["email", "hotline", "invoiceLookupUrl", "isActive", "link", "name", "onboarding", "sso", "features"];
2722
+ const t = [
2723
+ "email",
2724
+ "hotline",
2725
+ "invoiceLookupUrl",
2726
+ "isActive",
2727
+ "link",
2728
+ "name",
2729
+ "onboarding",
2730
+ "sso",
2731
+ "features"
2732
+ ];
2693
2733
  for (const i of t)
2694
2734
  if (!(i in e))
2695
- return console.warn(`[SettingsManager] Missing field '${i}' in provider '${A}'`), !1;
2735
+ return console.warn(
2736
+ `[SettingsManager] Missing field '${i}' in provider '${A}'`
2737
+ ), !1;
2696
2738
  return !0;
2697
2739
  }
2698
2740
  function ft(e, A, t) {
@@ -2702,9 +2744,17 @@ function ft(e, A, t) {
2702
2744
  return XA.get(i);
2703
2745
  try {
2704
2746
  let I = BA({}, wt[t]);
2705
- 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(I, $e[e][A][t])), Tg(I, t) ? (XA.set(i, I), I) : (console.error(`[SettingsManager] Invalid configuration for ${e}:${A}:${t}`), null);
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);
2706
2753
  } catch (I) {
2707
- return console.error(`[SettingsManager] Error getting settings for ${e}:${A}:${t}:`, I), null;
2754
+ return console.error(
2755
+ `[SettingsManager] Error getting settings for ${e}:${A}:${t}:`,
2756
+ I
2757
+ ), null;
2708
2758
  }
2709
2759
  }
2710
2760
  function Vg(e, A) {
@@ -4754,7 +4804,7 @@ let te = null, ie = null, nA = null, CA = null;
4754
4804
  function dB(e) {
4755
4805
  return k(this, null, function* () {
4756
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) {
4757
- const { InvoiceRegisterWidget: i } = yield import("./widget-Cr_Es69X.js");
4807
+ const { InvoiceRegisterWidget: i } = yield import("./widget-CY61iKML.js");
4758
4808
  ie = i;
4759
4809
  }
4760
4810
  const A = typeof e.selector == "string" ? document.querySelector(e.selector) : e.selector;
@@ -4780,7 +4830,7 @@ function dB(e) {
4780
4830
  function lB(e) {
4781
4831
  return k(this, null, function* () {
4782
4832
  if (e.mode && pt(e.mode), e.baseUrl && qt(e.mode, e.baseUrl), e.language && Xt(e.language), !te) {
4783
- const { EContractWidget: i } = yield import("./widget-Cr_Es69X.js");
4833
+ const { EContractWidget: i } = yield import("./widget-CY61iKML.js");
4784
4834
  te = i;
4785
4835
  }
4786
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-BmStO3yJ.js";
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,