@incodetech/welcome 1.85.0-20251127232236.0 → 1.85.0-20251128153111.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.
@@ -8374,7 +8374,7 @@ class MlWasmJSApi {
8374
8374
  );
8375
8375
  }
8376
8376
  }
8377
- const MlWasmJSApi$1 = MlWasmJSApi.getInstance(), version$4 = "1.85.0-20251127232236.0";
8377
+ const MlWasmJSApi$1 = MlWasmJSApi.getInstance(), version$4 = "1.85.0-20251128153111.0";
8378
8378
  function e$2(Be, Le) {
8379
8379
  return function(Ye, tt) {
8380
8380
  return Object.prototype.hasOwnProperty.call(Ye, tt);
@@ -259896,21 +259896,13 @@ const getErrorTranslationKey$2 = (Be) => Be === "Bad Request" ? "phone.invalid"
259896
259896
  At(gt(getErrorTranslationKey$2($t.error))), Et(!1);
259897
259897
  }
259898
259898
  };
259899
- return Rt ? /* @__PURE__ */ jsxRuntimeExports.jsxs(Page$1, { children: [
259900
- /* @__PURE__ */ jsxRuntimeExports.jsxs(
259901
- Flex,
259902
- {
259903
- hFull: !0,
259904
- wFull: !0,
259905
- align: "center",
259906
- direction: "column",
259907
- mt: Nt.spacing[4],
259908
- children: [
259909
- /* @__PURE__ */ jsxRuntimeExports.jsx(Title$o, { children: gt("phone.verify") }),
259910
- ft ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
259911
- /* @__PURE__ */ jsxRuntimeExports.jsx(Spacer, { size: Nt.spacing[3] }),
259912
- /* @__PURE__ */ jsxRuntimeExports.jsx(Subtitle$6, { children: gt("email.willSendCode") })
259913
- ] }) : null,
259899
+ return Rt ? /* @__PURE__ */ jsxRuntimeExports.jsxs(
259900
+ Page$1,
259901
+ {
259902
+ title: gt("phone.verify"),
259903
+ subtitle: ft && gt("email.willSendCode"),
259904
+ children: [
259905
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { hFull: !0, wFull: !0, align: "center", direction: "column", children: [
259914
259906
  /* @__PURE__ */ jsxRuntimeExports.jsx(Spacer, { size: Nt.spacing[8] }),
259915
259907
  /* @__PURE__ */ jsxRuntimeExports.jsx(
259916
259908
  PhoneInput,
@@ -259922,20 +259914,20 @@ const getErrorTranslationKey$2 = (Be) => Be === "Bad Request" ? "phone.invalid"
259922
259914
  disabled: xt
259923
259915
  }
259924
259916
  )
259925
- ]
259926
- }
259927
- ),
259928
- /* @__PURE__ */ jsxRuntimeExports.jsx(
259929
- Button$b,
259930
- {
259931
- disabled: bt,
259932
- isLoading: xt,
259933
- onClick: Kt,
259934
- mb: Nt.spacing[4],
259935
- children: gt("common.continue")
259936
- }
259937
- )
259938
- ] }) : null;
259917
+ ] }),
259918
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
259919
+ Button$b,
259920
+ {
259921
+ disabled: bt,
259922
+ isLoading: xt,
259923
+ onClick: Kt,
259924
+ children: gt("common.continue")
259925
+ }
259926
+ ),
259927
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Spacer, { size: Nt.spacing[4] })
259928
+ ]
259929
+ }
259930
+ ) : null;
259939
259931
  }, phoneNumberSteps = {
259940
259932
  PhoneNumber: 0,
259941
259933
  OTP: 1
@@ -355412,6 +355404,7 @@ function Email$1({ onSuccess: Be, token: Le, otpVerification: Ye }) {
355412
355404
  });
355413
355405
  const yt = async () => {
355414
355406
  if (At) return;
355407
+ ft(!0);
355415
355408
  const bt = Et.trim();
355416
355409
  try {
355417
355410
  xt(!0), await addEmail({ email: bt, token: Le }), addEvent({
@@ -355437,18 +355430,21 @@ function Email$1({ onSuccess: Be, token: Le, otpVerification: Ye }) {
355437
355430
  title: tt("email.verify"),
355438
355431
  subtitle: Ye && tt("email.willSendCode"),
355439
355432
  children: [
355440
- /* @__PURE__ */ jsxRuntimeExports.jsx(Flex, { hFull: !0, align: "center", direction: "column", pt: Ct.spacing[8], children: /* @__PURE__ */ jsxRuntimeExports.jsx(
355441
- InputComposed,
355442
- {
355443
- error: ht,
355444
- type: "email",
355445
- value: Et,
355446
- onChange: vt,
355447
- placeholder: "Email",
355448
- showErrorIcon: !0
355449
- }
355450
- ) }),
355451
- /* @__PURE__ */ jsxRuntimeExports.jsx(Box, { px: 2, mb: Ct.spacing[2], children: /* @__PURE__ */ jsxRuntimeExports.jsx(
355433
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { hFull: !0, align: "center", direction: "column", children: [
355434
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Spacer, { size: Ct.spacing[8] }),
355435
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
355436
+ InputComposed,
355437
+ {
355438
+ error: ht,
355439
+ type: "email",
355440
+ value: Et,
355441
+ onChange: vt,
355442
+ placeholder: "Email",
355443
+ showErrorIcon: !0
355444
+ }
355445
+ )
355446
+ ] }),
355447
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
355452
355448
  Button$b,
355453
355449
  {
355454
355450
  disabled: nt,
@@ -355456,7 +355452,8 @@ function Email$1({ onSuccess: Be, token: Le, otpVerification: Ye }) {
355456
355452
  onClick: yt,
355457
355453
  children: tt("common.continue")
355458
355454
  }
355459
- ) })
355455
+ ),
355456
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Spacer, { size: Ct.spacing[4] })
355460
355457
  ]
355461
355458
  }
355462
355459
  );
@@ -358326,36 +358323,30 @@ function NameCaptureContent({ token: Be, goNext: Le }) {
358326
358323
  ]
358327
358324
  }
358328
358325
  ) }) : /* @__PURE__ */ jsxRuntimeExports.jsxs(Page$1, { title: kt("nameCapturev2.title"), children: [
358329
- /* @__PURE__ */ jsxRuntimeExports.jsx(
358330
- Flex,
358331
- {
358332
- hFull: !0,
358333
- direction: "column",
358334
- pt: Ct.spacing[8],
358335
- align: "center",
358336
- wFull: !0,
358337
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(
358338
- InputComposed,
358339
- {
358340
- type: "text",
358341
- id: "name",
358342
- name: "name",
358343
- placeholder: "Name",
358344
- autoComplete: "name",
358345
- onChange: (vt) => tt(vt.target.value)
358346
- }
358347
- )
358348
- }
358349
- ),
358326
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { hFull: !0, direction: "column", align: "center", wFull: !0, children: [
358327
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Spacer, { size: Ct.spacing[8] }),
358328
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
358329
+ InputComposed,
358330
+ {
358331
+ type: "text",
358332
+ id: "name",
358333
+ name: "name",
358334
+ placeholder: "Name",
358335
+ autoComplete: "name",
358336
+ onChange: (vt) => tt(vt.target.value)
358337
+ }
358338
+ )
358339
+ ] }),
358350
358340
  /* @__PURE__ */ jsxRuntimeExports.jsx(
358351
358341
  Button$b,
358352
358342
  {
358353
- disabled: !Ye,
358343
+ disabled: !Ye || At,
358354
358344
  onClick: yt,
358355
358345
  isLoading: At,
358356
358346
  children: kt("common.continue")
358357
358347
  }
358358
- )
358348
+ ),
358349
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Spacer, { size: Ct.spacing[4] })
358359
358350
  ] });
358360
358351
  }
358361
358352
  const NameCapture = ({ token: Be, goNext: Le }) => /* @__PURE__ */ jsxRuntimeExports.jsx(IncodeProvider, { token: Be, children: /* @__PURE__ */ jsxRuntimeExports.jsx(NameCaptureContent, { token: Be, goNext: Le }) });