@incodetech/welcome 1.85.0-20251219204942.0 → 1.85.0-20251222210650.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.
@@ -238,8 +238,12 @@ tokboxApiKey, darkMode, hostingApp, unsafeMode, customHeaders, fingerprintApiKey
238
238
  setTheme: <T extends import('../../types/src').IncodeTheme>(customTheme: T) => import('../../types/src').IncodeTheme;
239
239
  sendOTPSMS: typeof sendOTPSMS;
240
240
  compareOTP: typeof compareOTP;
241
- getFinishStatus: (flowId: string, { token }: {
241
+ getFinishStatus: (flowId: string, { token, payload, }: {
242
242
  token: string;
243
+ payload?: {
244
+ provider: string;
245
+ value: string;
246
+ };
243
247
  }) => Promise<{
244
248
  redirectionUrl: string;
245
249
  action: "none" | "approved" | "rejected";
@@ -1,5 +1,9 @@
1
- declare const getFinishStatus: (flowId: string | undefined | null, { token }: {
1
+ declare const getFinishStatus: (flowId: string | undefined | null, { token, payload, }: {
2
2
  token: string;
3
+ payload?: {
4
+ provider: string;
5
+ value: string;
6
+ };
3
7
  }) => Promise<{
4
8
  redirectionUrl: string;
5
9
  action: 'approved' | 'rejected' | 'none';
@@ -8289,7 +8289,7 @@ class MlWasmJSApi {
8289
8289
  );
8290
8290
  }
8291
8291
  }
8292
- const MlWasmJSApi$1 = MlWasmJSApi.getInstance(), version$4 = "1.85.0-20251219204942.0";
8292
+ const MlWasmJSApi$1 = MlWasmJSApi.getInstance(), version$4 = "1.85.0-20251222210650.0";
8293
8293
  function e$2(Be, Le) {
8294
8294
  return function(Ye, tt) {
8295
8295
  return Object.prototype.hasOwnProperty.call(Ye, tt);
@@ -203092,11 +203092,7 @@ const FrameContainer = ({ children: Be }) => /* @__PURE__ */ jsxRuntimeExports.j
203092
203092
  transform: translate(-50%, 0);
203093
203093
  opacity: 1;
203094
203094
  }
203095
- `, StyledManualCaptureButton = dt.button`
203096
- background: transparent;
203097
- border: none;
203098
- cursor: pointer;
203099
- padding: 0;
203095
+ `, AnimatedWrapper = dt(Box)`
203100
203096
  position: absolute;
203101
203097
  bottom: 44px;
203102
203098
  left: 50%;
@@ -203104,35 +203100,42 @@ const FrameContainer = ({ children: Be }) => /* @__PURE__ */ jsxRuntimeExports.j
203104
203100
  width: 68px;
203105
203101
  height: 68px;
203106
203102
  z-index: 101;
203103
+ animation: ${slideUp} 0.5s ease-out forwards;
203104
+ `, StyledSVGWrapper = dt.div`
203105
+ width: 100%;
203106
+ height: 100%;
203107
203107
  display: flex;
203108
203108
  align-items: center;
203109
203109
  justify-content: center;
203110
- animation: ${slideUp} 0.5s ease-out forwards;
203111
-
203110
+
203112
203111
  svg {
203113
203112
  width: 100%;
203114
203113
  height: 100%;
203115
203114
  transition: filter 0.2s ease, transform 0.2s ease;
203116
203115
  }
203117
203116
 
203118
- &:active svg {
203117
+ button:active & svg {
203119
203118
  filter: brightness(0.8);
203120
203119
  transform: scale(0.95);
203121
203120
  }
203122
203121
  `, ManualCaptureButton = (Be) => {
203123
203122
  const { t: Le } = useTranslation$1();
203124
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(
203125
- StyledManualCaptureButton,
203126
- {
203127
- type: "button",
203128
- "aria-label": Le("idv2.capture.manualCapture.ariaLabel"),
203129
- ...Be,
203130
- children: [
203131
- /* @__PURE__ */ jsxRuntimeExports.jsx(CaptureTooltip, {}),
203132
- /* @__PURE__ */ jsxRuntimeExports.jsx(SvgManualCaptureButton, { title: Le("idv2.capture.manualCapture.title") })
203133
- ]
203134
- }
203135
- );
203123
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(AnimatedWrapper, { children: [
203124
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CaptureTooltip, {}),
203125
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
203126
+ Button$b,
203127
+ {
203128
+ variant: "link",
203129
+ type: "button",
203130
+ "aria-label": Le("idv2.capture.manualCapture.ariaLabel"),
203131
+ hFull: !0,
203132
+ wFull: !0,
203133
+ p: 0,
203134
+ ...Be,
203135
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(StyledSVGWrapper, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgManualCaptureButton, { title: Le("idv2.capture.manualCapture.title") }) })
203136
+ }
203137
+ )
203138
+ ] });
203136
203139
  }, SvgBlurIcon = (Be) => /* @__PURE__ */ React.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...Be }, /* @__PURE__ */ React.createElement("path", { d: "M12.2597 4.15625C14.3285 4.1835 16.3243 4.916 17.9199 6.23242C18.2394 6.49605 18.2851 6.96957 18.0214 7.28906C17.7578 7.60828 17.2852 7.65315 16.9658 7.38965C15.6357 6.29217 13.9729 5.68098 12.249 5.65625C10.5346 5.67942 8.878 6.28369 7.5527 7.37207C6.03992 8.62375 4.84504 10.2126 4.06246 12.0107C4.83423 13.8004 6.01967 15.3822 7.52242 16.626C7.84151 16.8901 7.88613 17.3635 7.62203 17.6826C7.35793 18.0017 6.88449 18.0463 6.56539 17.7822C4.79235 16.3147 3.41234 14.427 2.5527 12.29C2.48019 12.1096 2.48144 11.9077 2.55465 11.7275C3.42639 9.58276 4.81515 7.68881 6.5986 6.21387L6.60055 6.21289C8.19264 4.90541 10.1832 4.18132 12.2412 4.15625H12.2597Z", fill: "#14151A" }), /* @__PURE__ */ React.createElement("path", { d: "M19.3963 3.80561C19.6892 3.51272 20.165 3.51271 20.4579 3.80561C20.7504 4.09843 20.7504 4.57333 20.4579 4.86615L5.10728 20.2158C4.81438 20.5087 4.33962 20.5087 4.04673 20.2158C3.75401 19.9229 3.7539 19.4481 4.04673 19.1552L19.3963 3.80561Z", fill: "#14151A" }), /* @__PURE__ */ React.createElement("path", { d: "M12.4287 8.18359C13.377 8.22855 14.2762 8.62583 14.9502 9.2998C15.2429 9.59271 15.243 10.0675 14.9502 10.3604C14.6574 10.653 14.1825 10.653 13.8897 10.3604C13.4528 9.92345 12.8603 9.6783 12.2422 9.67969H12.2412C10.9575 9.68196 9.91866 10.725 9.92092 12.0088V12.0127C9.91873 12.6266 10.1629 13.2142 10.5987 13.6455C10.893 13.9369 10.8949 14.4117 10.6035 14.7061C10.3122 15.0003 9.83736 15.0032 9.54299 14.7119C8.82092 13.9973 8.41718 13.0228 8.42092 12.0068C8.41946 9.89669 10.1276 8.18357 12.2383 8.17969L12.4287 8.18359Z", fill: "#14151A" }), /* @__PURE__ */ React.createElement("path", { d: "M19.0536 8.34264C19.3864 8.09617 19.8559 8.16611 20.1024 8.49889C20.8393 9.49403 21.4571 10.5723 21.9413 11.7128C22.0214 11.9015 22.0206 12.1153 21.9393 12.3036C19.9504 16.911 16.3507 19.8602 12.2499 19.8602C11.3317 19.8602 10.421 19.7108 9.55163 19.4217C9.15858 19.2911 8.94538 18.8665 9.07605 18.4735C9.20672 18.0805 9.63127 17.8683 10.0243 17.9989C10.7428 18.2378 11.4942 18.3602 12.2499 18.3602C15.4814 18.3602 18.5736 16.0795 20.4296 12.0047C20.0129 11.0822 19.5004 10.2058 18.8973 9.39147C18.6509 9.05863 18.7208 8.58917 19.0536 8.34264Z", fill: "#14151A" }), /* @__PURE__ */ React.createElement("path", { d: "M14.5349 12.4195C14.6094 12.0122 14.9996 11.7418 15.407 11.816C15.8145 11.8902 16.0848 12.2815 16.0105 12.689C15.7256 14.2521 14.5032 15.4787 12.9392 15.7662C12.5318 15.841 12.1411 15.571 12.0662 15.1636C11.9914 14.7563 12.2605 14.3655 12.6677 14.2906C13.6177 14.116 14.3617 13.3702 14.5349 12.4195Z", fill: "#14151A" })), SvgGlareIcon = (Be) => /* @__PURE__ */ React.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...Be }, /* @__PURE__ */ React.createElement("path", { d: "M2.25 15.1279V9.51172C2.25 7.88342 2.76123 6.43316 3.74023 5.38281C4.72472 4.32662 6.12676 3.73535 7.78223 3.73535H13.2705L13.3477 3.73926C13.7258 3.7777 14.0205 4.09705 14.0205 4.48535C14.0205 4.87365 13.7258 5.193 13.3477 5.23145L13.2705 5.23535H7.78223C6.49854 5.23535 5.50964 5.68477 4.83789 6.40527C4.16068 7.13181 3.75 8.19485 3.75 9.51172V15.1279C3.75003 16.4457 4.1591 17.5083 4.83496 18.2344C5.5052 18.9542 6.49361 19.4043 7.78223 19.4043H16.2158C17.5051 19.4043 18.4945 18.9544 19.165 18.2344C19.8412 17.5083 20.25 16.4456 20.25 15.1279V12.458C20.25 12.0438 20.5858 11.708 21 11.708C21.4142 11.708 21.75 12.0438 21.75 12.458V15.1279C21.75 16.7554 21.2412 18.2061 20.2627 19.2568C19.2785 20.3135 17.8755 20.9043 16.2158 20.9043H7.78223C6.12294 20.9043 4.72013 20.3136 3.73633 19.2568C2.7582 18.2061 2.25003 16.7553 2.25 15.1279Z", fill: "#14151A" }), /* @__PURE__ */ React.createElement("path", { d: "M14.2705 14.4121C14.6846 14.4123 15.0205 14.748 15.0205 15.1621C15.0205 15.5762 14.6846 15.912 14.2705 15.9121H7.04102C6.62682 15.9121 6.29105 15.5763 6.29102 15.1621C6.29102 14.7479 6.6268 14.4121 7.04102 14.4121H14.2705ZM8.96094 10.6523C9.37494 10.6526 9.71094 10.9883 9.71094 11.4023C9.71094 11.8164 9.37494 12.1521 8.96094 12.1523H7.04102C6.6268 12.1523 6.29102 11.8166 6.29102 11.4023C6.29102 10.9881 6.6268 10.6523 7.04102 10.6523H8.96094Z", fill: "#14151A" }), /* @__PURE__ */ React.createElement("path", { d: "M18.4043 3.0957C18.7183 3.0957 18.9986 3.29142 19.1074 3.58594L19.209 3.85938C19.5141 4.68491 20.1638 5.33534 20.9873 5.64062L21.2607 5.74219C21.5548 5.85125 21.75 6.13168 21.75 6.44531C21.75 6.75893 21.5548 7.03941 21.2607 7.14844L20.9873 7.25C20.215 7.5363 19.5953 8.1258 19.2695 8.87891L19.209 9.03125L19.1074 9.30469C18.9986 9.59909 18.7182 9.79492 18.4043 9.79492C18.0904 9.79492 17.81 9.59909 17.7012 9.30469L17.5996 9.03125C17.2945 8.20566 16.6448 7.55532 15.8213 7.25L15.5479 7.14844C15.2538 7.03941 15.0586 6.75893 15.0586 6.44531C15.0586 6.13168 15.2538 5.85125 15.5479 5.74219L15.8213 5.64062C16.6448 5.33534 17.2945 4.68491 17.5996 3.85938L17.7012 3.58594L17.749 3.48047C17.8799 3.24552 18.1294 3.0957 18.4043 3.0957ZM18.4043 5.49414C18.1366 5.85711 17.8158 6.17742 17.4531 6.44531C17.8156 6.71307 18.1367 7.03278 18.4043 7.39551C18.6718 7.03299 18.9922 6.71298 19.3545 6.44531C18.992 6.17751 18.6719 5.8569 18.4043 5.49414Z", fill: "#14151A" }), /* @__PURE__ */ React.createElement("path", { d: "M13.9019 8.29492C14.232 8.29495 14.5236 8.51122 14.6196 8.82715C14.7187 9.15288 14.9733 9.4071 15.2974 9.50586C15.6128 9.60214 15.8286 9.89376 15.8286 10.2236C15.8285 10.5534 15.6127 10.8441 15.2974 10.9404C14.973 11.0393 14.7187 11.2942 14.6196 11.6201C14.5236 11.936 14.232 12.1513 13.9019 12.1514C13.5717 12.1514 13.2801 11.936 13.1841 11.6201C13.0851 11.2943 12.8307 11.0393 12.5063 10.9404C12.1909 10.8442 11.9752 10.5534 11.9751 10.2236C11.9751 9.89369 12.1908 9.60208 12.5063 9.50586C12.8305 9.40708 13.085 9.15282 13.1841 8.82715C13.2801 8.5112 13.5716 8.29492 13.9019 8.29492Z", fill: "#14151A" })), SvgInfoNotReadable = (Be) => /* @__PURE__ */ React.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...Be }, /* @__PURE__ */ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3.51987 5.07032C4.36282 4.16615 5.5605 3.66406 6.96486 3.66406H17.0351C18.4424 3.66406 19.6405 4.16586 20.483 5.07066C21.3199 5.96941 21.75 7.20487 21.75 8.58033V11.5041C21.75 11.9183 21.4142 12.2541 21 12.2541C20.5858 12.2541 20.25 11.9183 20.25 11.5041V8.58033C20.25 7.5146 19.9198 6.66693 19.3852 6.09284C18.8563 5.52481 18.0719 5.16406 17.0351 5.16406H6.96486C5.93193 5.16406 5.14718 5.52452 4.61702 6.09318C4.08142 6.66769 3.75 7.51548 3.75 8.58033V15.1683C3.75 16.2346 4.08027 17.0822 4.61474 17.6561C5.1436 18.224 5.92794 18.5846 6.96486 18.5846H11.1224C11.5366 18.5846 11.8724 18.9204 11.8724 19.3346C11.8724 19.7488 11.5366 20.0846 11.1224 20.0846H6.96486C5.55768 20.0846 4.35959 19.5831 3.51704 18.6784C2.68011 17.7797 2.25 16.5442 2.25 15.1683V8.58033C2.25 7.20399 2.68237 5.96865 3.51987 5.07032Z", fill: "#14151A" }), /* @__PURE__ */ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M2.25 9.71191C2.25 9.2977 2.58579 8.96191 3 8.96191H21C21.4142 8.96191 21.75 9.2977 21.75 9.71191C21.75 10.1261 21.4142 10.4619 21 10.4619H3C2.58579 10.4619 2.25 10.1261 2.25 9.71191Z", fill: "#14151A" }), /* @__PURE__ */ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M18.4359 14.3971C17.5875 13.5487 16.2128 13.5487 15.3644 14.3971C14.516 15.2455 14.516 16.6202 15.3644 17.4686C16.2128 18.317 17.5875 18.317 18.4359 17.4686C19.2843 16.6202 19.2843 15.2455 18.4359 14.3971ZM14.3037 13.3364C15.7379 11.9022 18.0624 11.9022 19.4966 13.3364C20.9308 14.7706 20.9308 17.0951 19.4966 18.5293C18.0624 19.9635 15.7379 19.9635 14.3037 18.5293C12.8695 17.0951 12.8695 14.7706 14.3037 13.3364Z", fill: "#14151A" }), /* @__PURE__ */ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M18.436 17.4707C18.7289 17.1778 19.2038 17.1778 19.4967 17.4707L21.0797 19.0538C21.3726 19.3467 21.3726 19.8215 21.0797 20.1144C20.7868 20.4073 20.3119 20.4073 20.019 20.1144L18.436 18.5314C18.1431 18.2385 18.1431 17.7636 18.436 17.4707Z", fill: "#14151A" })), SvgQuestionIcon = (Be) => /* @__PURE__ */ React.createElement("svg", { width: 64, height: 64, viewBox: "0 0 64 64", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...Be }, /* @__PURE__ */ React.createElement("circle", { cx: 32, cy: 32, r: 32, fill: "#14151A" }), /* @__PURE__ */ React.createElement("path", { d: "M32 41C33.1045 41 34 41.8955 34 43C34 44.1045 33.1045 45 32 45C30.8954 45 30 44.1045 30 43C30 41.8954 30.8954 41 32 41ZM32 18.5C36.6906 18.5001 40.1669 22.0578 40.167 26.5605C40.167 28.8363 39.239 30.7175 37.7119 32.0381C36.5502 33.0426 35.086 33.6855 33.5 33.9863V38H30.5V31.2568L31.9072 31.1699C33.5141 31.0696 34.8469 30.5494 35.75 29.7686C36.6245 29.0121 37.167 27.9561 37.167 26.5605C37.1669 23.7203 35.0394 21.5001 32 21.5C28.9065 21.5001 26.7253 23.7825 26.1406 26.8418L23.1934 26.2793C23.9755 22.1855 27.1118 18.5001 32 18.5Z", fill: "white" })), CommonIssues = ({
203137
203140
  onClose: Be,
203138
203141
  switchToManualCapture: Le,
@@ -298982,11 +298985,17 @@ function renderFiscalQr(Be, { onSuccess: Le, session: Ye }) {
298982
298985
  tt
298983
298986
  );
298984
298987
  }
298985
- const getFinishStatus = (Be, { token: Le }) => api.get(`/omni/finish-status${Be ? `?flowId=${Be}` : ""}`, {
298988
+ const getFinishStatus = (Be, {
298989
+ token: Le,
298990
+ payload: Ye
298991
+ }) => api.get(`/omni/finish-status${Be ? `?flowId=${Be}` : ""}`, {
298992
+ params: {
298993
+ payload: Ye
298994
+ },
298986
298995
  headers: {
298987
298996
  "X-Incode-Hardware-Id": Le
298988
298997
  }
298989
- }).then((Ye) => Ye.data);
298998
+ }).then((tt) => tt.data);
298990
298999
  var lib = {}, ErrorCorrectLevel = {
298991
299000
  L: 1,
298992
299001
  M: 0,
@@ -365963,7 +365972,7 @@ function FlowRenderer({
365963
365972
  }
365964
365973
  if (!At) return null;
365965
365974
  const Tt = At.flowModules, Rt = Tt[yt], Bt = async () => {
365966
- var Nt, Lt;
365975
+ var Nt;
365967
365976
  const Dt = Tt.length;
365968
365977
  bt.stepCompleted(Rt.key, yt, Dt);
365969
365978
  const Pt = yt + 1;
@@ -365971,17 +365980,14 @@ function FlowRenderer({
365971
365980
  bt.stepStarted(Tt[Pt].key, Pt, Dt), Ct(Pt);
365972
365981
  else {
365973
365982
  vt(!0);
365974
- const { redirectionUrl: Wt } = await getFinishStatus(void 0, { token: Be });
365975
- getFeatureFlag("darwinium_profiling") && ((Lt = (Nt = getDwnContext()) == null ? void 0 : Nt.collect()) == null || Lt.then(($t) => {
365976
- addEvent({
365977
- code: "externalRiskSDKInitialized",
365978
- payload: {
365979
- riskService: "dwn",
365980
- dwnData: { blob: $t }
365981
- },
365982
- token: Be
365983
- });
365984
- }).catch(console.error)), bt.flowCompleted(Dt), Ye({ redirectionUrl: Wt });
365983
+ const Lt = await ((Nt = getDwnContext()) == null ? void 0 : Nt.collect()), Wt = {
365984
+ provider: Lt ? "drw" : "",
365985
+ value: Lt || ""
365986
+ }, { redirectionUrl: $t } = await getFinishStatus(void 0, {
365987
+ token: Be,
365988
+ payload: Wt
365989
+ });
365990
+ bt.flowCompleted(Dt), Ye({ redirectionUrl: $t });
365985
365991
  }
365986
365992
  };
365987
365993
  return kt ? /* @__PURE__ */ jsxRuntimeExports.jsx(Spinner$6, {}) : It ? /* @__PURE__ */ jsxRuntimeExports.jsx(