@incodetech/welcome 1.85.0-rc.20251118170350 → 1.85.0-rc.20251121165629

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.
@@ -8374,7 +8374,7 @@ class MlWasmJSApi {
8374
8374
  );
8375
8375
  }
8376
8376
  }
8377
- const MlWasmJSApi$1 = MlWasmJSApi.getInstance(), version$4 = "1.85.0-rc.20251118170350";
8377
+ const MlWasmJSApi$1 = MlWasmJSApi.getInstance(), version$4 = "1.85.0-rc.20251121165629";
8378
8378
  function e$2(Be, Le) {
8379
8379
  return function(Ye, tt) {
8380
8380
  return Object.prototype.hasOwnProperty.call(Ye, tt);
@@ -179750,7 +179750,7 @@ class AbstractFlowManager {
179750
179750
  return this.flow;
179751
179751
  }
179752
179752
  onClose(Le) {
179753
- this.completeWithError({
179753
+ onboardingAnalytics.update(), MlWasmJSApi$1.reset(), this.completeWithError({
179754
179754
  code: "USER_CANCELLED",
179755
179755
  message: `User cancelled the ${Le} capture flow`,
179756
179756
  error: new Error("User cancelled")
@@ -360690,22 +360690,21 @@ function NativeCamera({
360690
360690
  shouldOpen: !0
360691
360691
  });
360692
360692
  let r0;
360693
- const h0 = multiPageDocumentTypes.includes(ft) ? ft : "otherDocument1";
360694
360693
  return gt ? r0 = {
360695
360694
  token: yt,
360696
360695
  image: d0.imageBase64.split(",")[1],
360697
- docType: h0,
360696
+ docType: ft,
360698
360697
  format: d0 == null ? void 0 : d0.fullImage.type,
360699
360698
  onProgress: bt
360700
360699
  } : r0 = {
360701
360700
  token: yt,
360702
360701
  file: d0.fullImage,
360703
- docType: h0,
360702
+ docType: ft,
360704
360703
  onProgress: bt,
360705
360704
  format: d0.fullImage.type
360706
- }, addAddressStatement(r0).then(async (A0) => {
360707
- const { success: l0, status: a0 } = A0;
360708
- if (l0 || ["ADD_NEXT_PAGE", "SUCCESS"].includes(a0))
360705
+ }, addAddressStatement(r0).then(async (h0) => {
360706
+ const { success: A0, status: l0 } = h0;
360707
+ if (A0 || ["ADD_NEXT_PAGE", "SUCCESS"].includes(l0))
360709
360708
  addScreenEvent({
360710
360709
  module: eventModuleNames.document,
360711
360710
  screen: eventScreenNames.documentUploadProgress,
@@ -360725,7 +360724,7 @@ function NativeCamera({
360725
360724
  screen: eventScreenNames.documentUploadSuccess,
360726
360725
  token: yt,
360727
360726
  shouldOpen: !1
360728
- }), a0 === "ADD_NEXT_PAGE" ? (jt(), Ut(V5C_STEPS$1.secondPage)) : _t(d0);
360727
+ }), l0 === "ADD_NEXT_PAGE" ? (jt(), Ut(V5C_STEPS$1.secondPage)) : _t(d0);
360729
360728
  else {
360730
360729
  addScreenEvent({
360731
360730
  module: eventModuleNames.document,
@@ -360738,14 +360737,14 @@ function NativeCamera({
360738
360737
  token: yt,
360739
360738
  shouldOpen: !0
360740
360739
  });
360741
- const Zt = Ct("notifications.badProofOfAddress");
360740
+ const a0 = Ct("notifications.badProofOfAddress");
360742
360741
  $t.current += 1, Le(
360743
360742
  getLogObject("attemptFailed", {
360744
- response: { success: l0 },
360745
- message: Zt,
360743
+ response: { success: A0 },
360744
+ message: a0,
360746
360745
  attempt: $t.current
360747
360746
  })
360748
- ), Pt(!1), Rt(!0), It(Zt), await sleep(1500), addScreenEvent({
360747
+ ), Pt(!1), Rt(!0), It(a0), await sleep(1500), addScreenEvent({
360749
360748
  module: eventModuleNames.document,
360750
360749
  screen: eventScreenNames.documentAttemptFailed,
360751
360750
  token: yt,
@@ -360757,7 +360756,7 @@ function NativeCamera({
360757
360756
  shouldOpen: !0
360758
360757
  });
360759
360758
  }
360760
- }).catch(async (A0) => {
360759
+ }).catch(async (h0) => {
360761
360760
  addScreenEvent({
360762
360761
  module: eventModuleNames.document,
360763
360762
  screen: eventScreenNames.documentUploadProgress,
@@ -360769,14 +360768,14 @@ function NativeCamera({
360769
360768
  token: yt,
360770
360769
  shouldOpen: !0
360771
360770
  });
360772
- const l0 = Ct("notifications.badProofOfAddress");
360771
+ const A0 = Ct("notifications.badProofOfAddress");
360773
360772
  $t.current += 1, Le(
360774
360773
  getLogObject("attemptFailed", {
360775
- response: { error: A0 },
360776
- message: A0.message,
360774
+ response: { error: h0 },
360775
+ message: h0.message,
360777
360776
  attempt: $t.current
360778
360777
  })
360779
- ), Pt(!1), Rt(!0), It(l0), await sleep(1500), addScreenEvent({
360778
+ ), Pt(!1), Rt(!0), It(A0), await sleep(1500), addScreenEvent({
360780
360779
  module: eventModuleNames.document,
360781
360780
  screen: eventScreenNames.documentAttemptFailed,
360782
360781
  token: yt,