doct-ui-auth-kit 1.0.21 → 1.0.23

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.
@@ -1,26 +1,26 @@
1
1
  "use client";
2
- import { jsx as u, jsxs as R, Fragment as fe } from "react/jsx-runtime";
3
- import K, { createContext as nt, useContext as lt, useState as Y, useEffect as J, useRef as ne } from "react";
4
- import { DoctButton as B, DoctTypography as O, DoctCircularProgress as be, DoctPhoneInput as it, DoctLabeledInput as ot, DoctOtpInput as rt } from "docthub-core-components";
5
- import { MdArrowBack as st, MdChevronRight as at } from "react-icons/md";
6
- import { useFormContext as le, Controller as me, useForm as xe, FormProvider as we } from "react-hook-form";
2
+ import { jsx as d, jsxs as I, Fragment as X } from "react/jsx-runtime";
3
+ import K, { createContext as ot, useContext as rt, useState as Y, useEffect as J, useRef as ie } from "react";
4
+ import { DoctButton as M, DoctTypography as A, DoctPhoneInput as st, DoctLabeledInput as at, DoctCircularProgress as ve, DoctOtpInput as ct } from "docthub-core-components";
5
+ import { useFormContext as re, Controller as ge, useForm as Ce, FormProvider as we } from "react-hook-form";
6
+ import { MdArrowBack as ut, MdChevronRight as dt } from "react-icons/md";
7
7
  import { z as j } from "zod";
8
- var ae = { exports: {} }, ve = {};
9
- var Fe;
10
- function ct() {
11
- if (Fe) return ve;
12
- Fe = 1;
8
+ var me = { exports: {} }, Se = {};
9
+ var De;
10
+ function mt() {
11
+ if (De) return Se;
12
+ De = 1;
13
13
  var n = K.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
14
- return ve.c = function(e) {
14
+ return Se.c = function(e) {
15
15
  return n.H.useMemoCache(e);
16
- }, ve;
16
+ }, Se;
17
17
  }
18
- var Ce = {};
19
- var ke;
20
- function ut() {
21
- return ke || (ke = 1, process.env.NODE_ENV !== "production" && (function() {
18
+ var Ne = {};
19
+ var $e;
20
+ function ft() {
21
+ return $e || ($e = 1, process.env.NODE_ENV !== "production" && (function() {
22
22
  var n = K.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
23
- Ce.c = function(e) {
23
+ Ne.c = function(e) {
24
24
  var t = n.H;
25
25
  return t === null && console.error(
26
26
  `Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
@@ -30,55 +30,55 @@ function ut() {
30
30
  See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`
31
31
  ), t.useMemoCache(e);
32
32
  };
33
- })()), Ce;
33
+ })()), Ne;
34
34
  }
35
- var De;
36
- function dt() {
37
- return De || (De = 1, process.env.NODE_ENV === "production" ? ae.exports = ct() : ae.exports = ut()), ae.exports;
35
+ var Me;
36
+ function ht() {
37
+ return Me || (Me = 1, process.env.NODE_ENV === "production" ? me.exports = mt() : me.exports = ft()), me.exports;
38
38
  }
39
- var E = dt();
40
- const ze = "/main-logo.svg", ft = "/docthub.svg", Ve = ["/slider/slide-1.png", "/slider/slide-2.png", "/slider/slide-3.png", "/slider/slide-4.png", "/slider/slide-5.png"], mt = 5e3, Ne = "[&_main]:!justify-start [&_main]:!pt-5 md:[&_main]:!pt-[104px]";
41
- function ye(n) {
39
+ var E = ht();
40
+ const He = "/main-logo.svg", gt = "/docthub.svg", qe = ["/slider/slide-1.png", "/slider/slide-2.png", "/slider/slide-3.png", "/slider/slide-4.png", "/slider/slide-5.png"], pt = 5e3, Pe = "[&_main]:!justify-start [&_main]:!pt-5 md:[&_main]:!pt-[104px]";
41
+ function xe(n) {
42
42
  const e = E.c(4), {
43
43
  onClick: t,
44
44
  ariaLabel: l
45
45
  } = n, i = l === void 0 ? "Go back" : l;
46
46
  let o;
47
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ u(st, { className: "h-5 w-5 text-neutral-black" }), e[0] = o) : o = e[0];
47
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ d(ut, { className: "h-5 w-5 text-neutral-black" }), e[0] = o) : o = e[0];
48
48
  let r;
49
- return e[1] !== i || e[2] !== t ? (r = /* @__PURE__ */ u(B, { icon: o, iconOnly: !0, onClick: t, size: "medium", variant: "outline", "aria-label": i, className: "mb-4 md:mb-6 h-10 w-10" }), e[1] = i, e[2] = t, e[3] = r) : r = e[3], r;
49
+ return e[1] !== i || e[2] !== t ? (r = /* @__PURE__ */ d(M, { icon: o, iconOnly: !0, onClick: t, size: "medium", variant: "outline", "aria-label": i, className: "mb-4 md:mb-6 h-10 w-10" }), e[1] = i, e[2] = t, e[3] = r) : r = e[3], r;
50
50
  }
51
- function ht() {
51
+ function bt() {
52
52
  const n = typeof window < "u" ? window.location.hostname : "";
53
53
  return n.endsWith(".com") || n.includes(".com:") ? "https://www.dochub.com" : "https://dev.dochub.in/";
54
54
  }
55
- function Ge() {
55
+ function Ke() {
56
56
  const n = E.c(4);
57
57
  let e;
58
- n[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = ht(), n[0] = e) : e = n[0];
58
+ n[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = bt(), n[0] = e) : e = n[0];
59
59
  const t = e;
60
60
  let l, i;
61
- n[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ u("br", {}), i = /* @__PURE__ */ u("a", { href: `${t}/terms-conditions`, className: "font-semibold text-neutral-black underline", children: "Terms of Use" }), n[1] = l, n[2] = i) : (l = n[1], i = n[2]);
61
+ n[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ d("br", {}), i = /* @__PURE__ */ d("a", { href: `${t}/terms-conditions`, className: "font-semibold text-neutral-black underline", children: "Terms of Use" }), n[1] = l, n[2] = i) : (l = n[1], i = n[2]);
62
62
  let o;
63
- return n[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ R(O, { variant: "body3", align: "center", className: "opacity-60 text-neutral-black", children: [
63
+ return n[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ I(A, { variant: "body3", align: "center", className: "opacity-60 text-neutral-black", children: [
64
64
  "by continuing you agree to Docthub's",
65
65
  l,
66
66
  i,
67
67
  " ",
68
68
  "and",
69
69
  " ",
70
- /* @__PURE__ */ u("a", { href: `${t}/privacy-policy`, className: "font-semibold text-neutral-black underline", children: "Privacy Policy." })
70
+ /* @__PURE__ */ d("a", { href: `${t}/privacy-policy`, className: "font-semibold text-neutral-black underline", children: "Privacy Policy." })
71
71
  ] }), n[3] = o) : o = n[3], o;
72
72
  }
73
- const gt = "https://docthub.com/";
74
- function pt(n) {
73
+ const yt = "https://docthub.com/";
74
+ function vt(n) {
75
75
  const e = E.c(8);
76
76
  let t;
77
77
  e[0] !== n ? (t = n === void 0 ? {} : n, e[0] = n, e[1] = t) : t = e[1];
78
78
  const {
79
79
  onClick: l,
80
80
  href: i
81
- } = t, o = i === void 0 ? gt : i;
81
+ } = t, o = i === void 0 ? yt : i;
82
82
  let r;
83
83
  e[2] !== o || e[3] !== l ? (r = () => {
84
84
  if (l) {
@@ -89,34 +89,34 @@ function pt(n) {
89
89
  }, e[2] = o, e[3] = l, e[4] = r) : r = e[4];
90
90
  const s = r;
91
91
  let a;
92
- e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ u("div", { className: "flex items-center justify-center p-2 bg-primary rounded-[10px]", children: /* @__PURE__ */ u(at, { color: "white", className: "h-5 w-5" }) }), e[5] = a) : a = e[5];
92
+ e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ d("div", { className: "flex items-center justify-center p-2 bg-primary rounded-[10px]", children: /* @__PURE__ */ d(dt, { color: "white", className: "h-5 w-5" }) }), e[5] = a) : a = e[5];
93
93
  let c;
94
- return e[6] !== s ? (c = /* @__PURE__ */ u(B, { icon: a, iconPosition: "right", size: "large", variant: "outline", "aria-label": "Go to Enterprise Login", className: "hidden sm:flex items-center gap-4 border border-neutral-12 px-[22px] py-[14px]", onClick: s, children: "Enterprise Login" }), e[6] = s, e[7] = c) : c = e[7], c;
94
+ return e[6] !== s ? (c = /* @__PURE__ */ d(M, { icon: a, iconPosition: "right", size: "large", variant: "outline", "aria-label": "Go to Enterprise Login", className: "hidden sm:flex items-center gap-4 border border-neutral-12 px-[22px] py-[14px]", onClick: s, children: "Enterprise Login" }), e[6] = s, e[7] = c) : c = e[7], c;
95
95
  }
96
- function He(n) {
96
+ function Ye(n) {
97
97
  var e, t, l = "";
98
98
  if (typeof n == "string" || typeof n == "number") l += n;
99
99
  else if (typeof n == "object") if (Array.isArray(n)) {
100
100
  var i = n.length;
101
- for (e = 0; e < i; e++) n[e] && (t = He(n[e])) && (l && (l += " "), l += t);
101
+ for (e = 0; e < i; e++) n[e] && (t = Ye(n[e])) && (l && (l += " "), l += t);
102
102
  } else for (t in n) n[t] && (l && (l += " "), l += t);
103
103
  return l;
104
104
  }
105
105
  function k() {
106
- for (var n, e, t = 0, l = "", i = arguments.length; t < i; t++) (n = arguments[t]) && (e = He(n)) && (l && (l += " "), l += e);
106
+ for (var n, e, t = 0, l = "", i = arguments.length; t < i; t++) (n = arguments[t]) && (e = Ye(n)) && (l && (l += " "), l += e);
107
107
  return l;
108
108
  }
109
- const qe = nt(null);
110
- function Ee() {
111
- const n = lt(qe);
109
+ const Je = ot(null);
110
+ function _e() {
111
+ const n = rt(Je);
112
112
  if (!n)
113
113
  throw new Error("AuthLayout compound components must be used within AuthLayout.Root");
114
114
  return n;
115
115
  }
116
- function bt(n, e) {
116
+ function Ct(n, e) {
117
117
  return e === "md" ? "max-w-md" : e === "lg" ? "max-w-lg" : n === "desktop" ? "max-w-[320px]" : "max-w-[360px]";
118
118
  }
119
- function _e(n = "center") {
119
+ function Oe(n = "center") {
120
120
  switch (n) {
121
121
  case "left":
122
122
  return {
@@ -135,8 +135,8 @@ function _e(n = "center") {
135
135
  };
136
136
  }
137
137
  }
138
- const Pe = "flex w-full mb-4 md:mb-4";
139
- function yt(n) {
138
+ const Ae = "flex w-full mb-4 md:mb-4";
139
+ function wt(n) {
140
140
  const e = E.c(15), {
141
141
  children: t,
142
142
  variant: l,
@@ -144,43 +144,43 @@ function yt(n) {
144
144
  className: o
145
145
  } = n, r = l === void 0 ? "mobile" : l, s = i === void 0 ? "sm" : i;
146
146
  let a;
147
- e[0] !== s || e[1] !== r ? (a = bt(r, s), e[0] = s, e[1] = r, e[2] = a) : a = e[2];
147
+ e[0] !== s || e[1] !== r ? (a = Ct(r, s), e[0] = s, e[1] = r, e[2] = a) : a = e[2];
148
148
  const c = a;
149
- let f;
150
- e[3] !== s || e[4] !== c || e[5] !== r ? (f = {
149
+ let m;
150
+ e[3] !== s || e[4] !== c || e[5] !== r ? (m = {
151
151
  variant: r,
152
152
  maxWidth: s,
153
153
  maxWidthClass: c
154
- }, e[3] = s, e[4] = c, e[5] = r, e[6] = f) : f = e[6];
155
- const h = f;
156
- let d;
157
- e[7] !== o ? (d = k("min-h-svh w-full bg-neutral-white flex flex-col", o), e[7] = o, e[8] = d) : d = e[8];
158
- let m;
159
- e[9] !== t || e[10] !== d ? (m = /* @__PURE__ */ u("div", { className: d, children: t }), e[9] = t, e[10] = d, e[11] = m) : m = e[11];
154
+ }, e[3] = s, e[4] = c, e[5] = r, e[6] = m) : m = e[6];
155
+ const h = m;
156
+ let u;
157
+ e[7] !== o ? (u = k("min-h-svh w-full bg-neutral-white flex flex-col", o), e[7] = o, e[8] = u) : u = e[8];
158
+ let f;
159
+ e[9] !== t || e[10] !== u ? (f = /* @__PURE__ */ d("div", { className: u, children: t }), e[9] = t, e[10] = u, e[11] = f) : f = e[11];
160
160
  let p;
161
- return e[12] !== h || e[13] !== m ? (p = /* @__PURE__ */ u(qe.Provider, { value: h, children: m }), e[12] = h, e[13] = m, e[14] = p) : p = e[14], p;
161
+ return e[12] !== h || e[13] !== f ? (p = /* @__PURE__ */ d(Je.Provider, { value: h, children: f }), e[12] = h, e[13] = f, e[14] = p) : p = e[14], p;
162
162
  }
163
- function vt(n) {
163
+ function xt(n) {
164
164
  const e = E.c(12), {
165
165
  children: t,
166
166
  className: l
167
167
  } = n, {
168
168
  variant: i
169
- } = Ee();
169
+ } = _e();
170
170
  if (i === "desktop") {
171
171
  let s;
172
172
  e[0] !== l ? (s = k("flex justify-end px-5 pt-5", l), e[0] = l, e[1] = s) : s = e[1];
173
173
  let a;
174
- e[2] !== t ? (a = /* @__PURE__ */ u("div", { className: "w-auto", children: t }), e[2] = t, e[3] = a) : a = e[3];
174
+ e[2] !== t ? (a = /* @__PURE__ */ d("div", { className: "w-auto", children: t }), e[2] = t, e[3] = a) : a = e[3];
175
175
  let c;
176
- return e[4] !== s || e[5] !== a ? (c = /* @__PURE__ */ u("div", { className: s, children: a }), e[4] = s, e[5] = a, e[6] = c) : c = e[6], c;
176
+ return e[4] !== s || e[5] !== a ? (c = /* @__PURE__ */ d("div", { className: s, children: a }), e[4] = s, e[5] = a, e[6] = c) : c = e[6], c;
177
177
  }
178
178
  let o;
179
179
  e[7] !== l ? (o = k("mb-4 w-full md:mb-6", l), e[7] = l, e[8] = o) : o = e[8];
180
180
  let r;
181
- return e[9] !== t || e[10] !== o ? (r = /* @__PURE__ */ u("div", { className: o, children: t }), e[9] = t, e[10] = o, e[11] = r) : r = e[11], r;
181
+ return e[9] !== t || e[10] !== o ? (r = /* @__PURE__ */ d("div", { className: o, children: t }), e[9] = t, e[10] = o, e[11] = r) : r = e[11], r;
182
182
  }
183
- function Ct(n) {
183
+ function St(n) {
184
184
  const e = E.c(6), {
185
185
  children: t,
186
186
  align: l,
@@ -190,14 +190,14 @@ function Ct(n) {
190
190
  if (e[0] !== o || e[1] !== i) {
191
191
  const {
192
192
  flex: a
193
- } = _e(o);
194
- r = k(Pe, a, i), e[0] = o, e[1] = i, e[2] = r;
193
+ } = Oe(o);
194
+ r = k(Ae, a, i), e[0] = o, e[1] = i, e[2] = r;
195
195
  } else
196
196
  r = e[2];
197
197
  let s;
198
- return e[3] !== t || e[4] !== r ? (s = /* @__PURE__ */ u("div", { className: r, children: t }), e[3] = t, e[4] = r, e[5] = s) : s = e[5], s;
198
+ return e[3] !== t || e[4] !== r ? (s = /* @__PURE__ */ d("div", { className: r, children: t }), e[3] = t, e[4] = r, e[5] = s) : s = e[5], s;
199
199
  }
200
- function St(n) {
200
+ function Nt(n) {
201
201
  const e = E.c(6), {
202
202
  children: t,
203
203
  align: l,
@@ -208,14 +208,14 @@ function St(n) {
208
208
  const {
209
209
  flex: a,
210
210
  text: c
211
- } = _e(o);
212
- r = k(Pe, a, c, i), e[0] = o, e[1] = i, e[2] = r;
211
+ } = Oe(o);
212
+ r = k(Ae, a, c, i), e[0] = o, e[1] = i, e[2] = r;
213
213
  } else
214
214
  r = e[2];
215
215
  let s;
216
- return e[3] !== t || e[4] !== r ? (s = /* @__PURE__ */ u("div", { className: r, children: t }), e[3] = t, e[4] = r, e[5] = s) : s = e[5], s;
216
+ return e[3] !== t || e[4] !== r ? (s = /* @__PURE__ */ d("div", { className: r, children: t }), e[3] = t, e[4] = r, e[5] = s) : s = e[5], s;
217
217
  }
218
- function xt(n) {
218
+ function Et(n) {
219
219
  const e = E.c(6), {
220
220
  children: t,
221
221
  align: l,
@@ -226,14 +226,14 @@ function xt(n) {
226
226
  const {
227
227
  flex: a,
228
228
  text: c
229
- } = _e(o);
230
- r = k(Pe, a, c, i), e[0] = o, e[1] = i, e[2] = r;
229
+ } = Oe(o);
230
+ r = k(Ae, a, c, i), e[0] = o, e[1] = i, e[2] = r;
231
231
  } else
232
232
  r = e[2];
233
233
  let s;
234
- return e[3] !== t || e[4] !== r ? (s = /* @__PURE__ */ u("div", { className: r, children: t }), e[3] = t, e[4] = r, e[5] = s) : s = e[5], s;
234
+ return e[3] !== t || e[4] !== r ? (s = /* @__PURE__ */ d("div", { className: r, children: t }), e[3] = t, e[4] = r, e[5] = s) : s = e[5], s;
235
235
  }
236
- function wt(n) {
236
+ function Pt(n) {
237
237
  const e = E.c(5), {
238
238
  children: t,
239
239
  className: l
@@ -241,53 +241,53 @@ function wt(n) {
241
241
  let i;
242
242
  e[0] !== l ? (i = k("w-full flex flex-col space-y-4 mb-4 md:mb-6", l), e[0] = l, e[1] = i) : i = e[1];
243
243
  let o;
244
- return e[2] !== t || e[3] !== i ? (o = /* @__PURE__ */ u("div", { className: i, children: t }), e[2] = t, e[3] = i, e[4] = o) : o = e[4], o;
244
+ return e[2] !== t || e[3] !== i ? (o = /* @__PURE__ */ d("div", { className: i, children: t }), e[2] = t, e[3] = i, e[4] = o) : o = e[4], o;
245
245
  }
246
- function Nt(n) {
246
+ function _t(n) {
247
247
  const e = E.c(10), {
248
248
  children: t,
249
249
  sm: l,
250
250
  className: i
251
251
  } = n, {
252
252
  maxWidthClass: o
253
- } = Ee();
253
+ } = _e();
254
254
  let r;
255
255
  e[0] !== i ? (r = k("flex-1 flex flex-col items-center justify-center", "px-5 py-8 md:py-12", "w-full", i), e[0] = i, e[1] = r) : r = e[1];
256
256
  const s = l ? "max-w-[320px]" : o;
257
257
  let a;
258
258
  e[2] !== s ? (a = k("w-full flex flex-col items-center", s), e[2] = s, e[3] = a) : a = e[3];
259
259
  let c;
260
- e[4] !== t || e[5] !== a ? (c = /* @__PURE__ */ u("div", { className: a, children: t }), e[4] = t, e[5] = a, e[6] = c) : c = e[6];
261
- let f;
262
- return e[7] !== r || e[8] !== c ? (f = /* @__PURE__ */ u("main", { className: r, children: c }), e[7] = r, e[8] = c, e[9] = f) : f = e[9], f;
260
+ e[4] !== t || e[5] !== a ? (c = /* @__PURE__ */ d("div", { className: a, children: t }), e[4] = t, e[5] = a, e[6] = c) : c = e[6];
261
+ let m;
262
+ return e[7] !== r || e[8] !== c ? (m = /* @__PURE__ */ d("main", { className: r, children: c }), e[7] = r, e[8] = c, e[9] = m) : m = e[9], m;
263
263
  }
264
- function Et(n) {
264
+ function Ot(n) {
265
265
  const e = E.c(10), {
266
266
  children: t,
267
267
  className: l
268
268
  } = n, {
269
269
  maxWidthClass: i
270
- } = Ee();
270
+ } = _e();
271
271
  let o;
272
272
  e[0] !== l ? (o = k("px-5 py-6 md:py-8 w-full flex justify-center", l), e[0] = l, e[1] = o) : o = e[1];
273
273
  let r;
274
274
  e[2] !== i ? (r = k("w-full text-center", i), e[2] = i, e[3] = r) : r = e[3];
275
275
  let s;
276
- e[4] !== t || e[5] !== r ? (s = /* @__PURE__ */ u("div", { className: r, children: t }), e[4] = t, e[5] = r, e[6] = s) : s = e[6];
276
+ e[4] !== t || e[5] !== r ? (s = /* @__PURE__ */ d("div", { className: r, children: t }), e[4] = t, e[5] = r, e[6] = s) : s = e[6];
277
277
  let a;
278
- return e[7] !== o || e[8] !== s ? (a = /* @__PURE__ */ u("footer", { className: o, children: s }), e[7] = o, e[8] = s, e[9] = a) : a = e[9], a;
278
+ return e[7] !== o || e[8] !== s ? (a = /* @__PURE__ */ d("footer", { className: o, children: s }), e[7] = o, e[8] = s, e[9] = a) : a = e[9], a;
279
279
  }
280
280
  const q = {
281
- Root: yt,
282
- Header: vt,
283
- Main: Nt,
284
- Logo: Ct,
285
- Title: St,
286
- Description: xt,
287
- Body: wt,
288
- Footer: Et
281
+ Root: wt,
282
+ Header: xt,
283
+ Main: _t,
284
+ Logo: St,
285
+ Title: Nt,
286
+ Description: Et,
287
+ Body: Pt,
288
+ Footer: Ot
289
289
  };
290
- function _t(n) {
290
+ function At(n) {
291
291
  const e = E.c(38), {
292
292
  images: t,
293
293
  autoPlayInterval: l,
@@ -296,56 +296,56 @@ function _t(n) {
296
296
  onSlideChange: r,
297
297
  activeIndex: s,
298
298
  onNavigate: a
299
- } = n, c = l === void 0 ? 5e3 : l, [f, h] = Y(0), d = s !== void 0, m = d ? s : f;
299
+ } = n, c = l === void 0 ? 5e3 : l, [m, h] = Y(0), u = s !== void 0, f = u ? s : m;
300
300
  let p, b;
301
- e[0] !== c || e[1] !== m || e[2] !== t.length || e[3] !== d || e[4] !== r ? (p = () => {
301
+ e[0] !== c || e[1] !== f || e[2] !== t.length || e[3] !== u || e[4] !== r ? (p = () => {
302
302
  if (c > 0 && t.length > 1) {
303
- const A = setInterval(() => {
304
- const I = (m + 1) % t.length;
305
- d || h(I), r?.(I);
303
+ const O = setInterval(() => {
304
+ const L = (f + 1) % t.length;
305
+ u || h(L), r?.(L);
306
306
  }, c);
307
- return () => clearInterval(A);
307
+ return () => clearInterval(O);
308
308
  }
309
- }, b = [c, t.length, m, d, r], e[0] = c, e[1] = m, e[2] = t.length, e[3] = d, e[4] = r, e[5] = p, e[6] = b) : (p = e[5], b = e[6]), J(p, b);
309
+ }, b = [c, t.length, f, u, r], e[0] = c, e[1] = f, e[2] = t.length, e[3] = u, e[4] = r, e[5] = p, e[6] = b) : (p = e[5], b = e[6]), J(p, b);
310
310
  let g, y;
311
- e[7] !== t.length || e[8] !== d || e[9] !== r ? (g = () => {
312
- !d && t.length > 0 && r?.(0);
313
- }, y = [t.length, d, r], e[7] = t.length, e[8] = d, e[9] = r, e[10] = g, e[11] = y) : (g = e[10], y = e[11]), J(g, y);
311
+ e[7] !== t.length || e[8] !== u || e[9] !== r ? (g = () => {
312
+ !u && t.length > 0 && r?.(0);
313
+ }, y = [t.length, u, r], e[7] = t.length, e[8] = u, e[9] = r, e[10] = g, e[11] = y) : (g = e[10], y = e[11]), J(g, y);
314
314
  let v;
315
- e[12] !== d || e[13] !== a || e[14] !== r ? (v = (A) => {
316
- d ? (a?.(A), r?.(A)) : (h(A), r?.(A));
317
- }, e[12] = d, e[13] = a, e[14] = r, e[15] = v) : v = e[15];
315
+ e[12] !== u || e[13] !== a || e[14] !== r ? (v = (O) => {
316
+ u ? (a?.(O), r?.(O)) : (h(O), r?.(O));
317
+ }, e[12] = u, e[13] = a, e[14] = r, e[15] = v) : v = e[15];
318
318
  const C = v;
319
319
  if (t.length === 0)
320
320
  return null;
321
- const w = t.length;
322
- let S;
323
- e[16] !== i ? (S = k("relative w-full h-full min-h-0", i), e[16] = i, e[17] = S) : S = e[17];
324
- const x = `${w * 100}%`, _ = `translateX(-${m * 100 / w}%)`;
321
+ const S = t.length;
322
+ let w;
323
+ e[16] !== i ? (w = k("relative w-full h-full min-h-0", i), e[16] = i, e[17] = w) : w = e[17];
324
+ const x = `${S * 100}%`, P = `translateX(-${f * 100 / S}%)`;
325
325
  let N;
326
- e[18] !== x || e[19] !== _ ? (N = {
326
+ e[18] !== x || e[19] !== P ? (N = {
327
327
  width: x,
328
- transform: _
329
- }, e[18] = x, e[19] = _, e[20] = N) : N = e[20];
330
- let P;
331
- if (e[21] !== t || e[22] !== w) {
332
- let A;
333
- e[24] !== w ? (A = (I, F) => /* @__PURE__ */ u("div", { className: "relative flex-shrink-0 h-full", style: {
334
- width: `${100 / w}%`
335
- }, children: /* @__PURE__ */ u("img", { src: I, alt: `Slide ${F + 1}`, className: "h-full w-full object-cover object-center" }) }, `${I}-${F}`), e[24] = w, e[25] = A) : A = e[25], P = t.map(A), e[21] = t, e[22] = w, e[23] = P;
328
+ transform: P
329
+ }, e[18] = x, e[19] = P, e[20] = N) : N = e[20];
330
+ let _;
331
+ if (e[21] !== t || e[22] !== S) {
332
+ let O;
333
+ e[24] !== S ? (O = (L, F) => /* @__PURE__ */ d("div", { className: "relative flex-shrink-0 h-full", style: {
334
+ width: `${100 / S}%`
335
+ }, children: /* @__PURE__ */ d("img", { src: L, alt: `Slide ${F + 1}`, className: "h-full w-full object-cover object-center" }) }, `${L}-${F}`), e[24] = S, e[25] = O) : O = e[25], _ = t.map(O), e[21] = t, e[22] = S, e[23] = _;
336
336
  } else
337
- P = e[23];
337
+ _ = e[23];
338
338
  let T;
339
- e[26] !== N || e[27] !== P ? (T = /* @__PURE__ */ u("div", { className: "relative w-full h-full overflow-hidden", children: /* @__PURE__ */ u("div", { className: "flex h-full transition-transform duration-500 ease-in-out", style: N, children: P }) }), e[26] = N, e[27] = P, e[28] = T) : T = e[28];
339
+ e[26] !== N || e[27] !== _ ? (T = /* @__PURE__ */ d("div", { className: "relative w-full h-full overflow-hidden", children: /* @__PURE__ */ d("div", { className: "flex h-full transition-transform duration-500 ease-in-out", style: N, children: _ }) }), e[26] = N, e[27] = _, e[28] = T) : T = e[28];
340
340
  let D;
341
- e[29] !== m || e[30] !== C || e[31] !== o || e[32] !== t ? (D = t.length > 1 && !o && /* @__PURE__ */ u("div", { className: "absolute -top-10 left-1/2 flex -translate-x-1/2 gap-2 z-20", children: t.map((A, I) => /* @__PURE__ */ u("button", { type: "button", onClick: () => C(I), className: k("h-1 rounded-[3px] transition-all duration-300", I === m ? "w-8 bg-neutral-white" : "w-2 bg-neutral-white/40"), "aria-label": `Go to slide ${I + 1}` }, `indicator-${A}-${I}`)) }), e[29] = m, e[30] = C, e[31] = o, e[32] = t, e[33] = D) : D = e[33];
341
+ e[29] !== f || e[30] !== C || e[31] !== o || e[32] !== t ? (D = t.length > 1 && !o && /* @__PURE__ */ d("div", { className: "absolute -top-10 left-1/2 flex -translate-x-1/2 gap-2 z-20", children: t.map((O, L) => /* @__PURE__ */ d("button", { type: "button", onClick: () => C(L), className: k("h-1 rounded-[3px] transition-all duration-300", L === f ? "w-8 bg-neutral-white" : "w-2 bg-neutral-white/40"), "aria-label": `Go to slide ${L + 1}` }, `indicator-${O}-${L}`)) }), e[29] = f, e[30] = C, e[31] = o, e[32] = t, e[33] = D) : D = e[33];
342
342
  let W;
343
- return e[34] !== T || e[35] !== D || e[36] !== S ? (W = /* @__PURE__ */ R("div", { className: S, children: [
343
+ return e[34] !== T || e[35] !== D || e[36] !== w ? (W = /* @__PURE__ */ I("div", { className: w, children: [
344
344
  T,
345
345
  D
346
- ] }), e[34] = T, e[35] = D, e[36] = S, e[37] = W) : W = e[37], W;
346
+ ] }), e[34] = T, e[35] = D, e[36] = w, e[37] = W) : W = e[37], W;
347
347
  }
348
- function Pt(n) {
348
+ function It(n) {
349
349
  const e = E.c(20), {
350
350
  sliderImages: t,
351
351
  sliderAutoPlayInterval: l,
@@ -355,27 +355,27 @@ function Pt(n) {
355
355
  sliderTitles: s,
356
356
  className: a
357
357
  } = n, c = s?.[i];
358
- let f = r ?? null;
358
+ let m = r ?? null;
359
359
  if (c != null) {
360
360
  let g;
361
- e[0] !== c ? (g = typeof c == "string" ? /* @__PURE__ */ u(O, { variant: "h6", weight: "medium", align: "center", className: "whitespace-pre-line text-primary-170", children: c }) : c, e[0] = c, e[1] = g) : g = e[1], f = g;
361
+ e[0] !== c ? (g = typeof c == "string" ? /* @__PURE__ */ d(A, { variant: "h6", weight: "medium", align: "center", className: "whitespace-pre-line text-primary-170", children: c }) : c, e[0] = c, e[1] = g) : g = e[1], m = g;
362
362
  }
363
363
  let h;
364
364
  e[2] !== a ? (h = k("relative w-full h-[100dvh] transition-colors duration-500", a), e[2] = a, e[3] = h) : h = e[3];
365
- let d;
366
- e[4] !== i || e[5] !== o || e[6] !== t ? (d = t.length > 1 && /* @__PURE__ */ u("div", { className: "absolute top-2.5 left-1/2 z-20 flex w-full max-w-[400px] -translate-x-1/2 gap-1.5 px-4", children: t.map((g, y) => /* @__PURE__ */ u("button", { type: "button", onClick: () => o(y), "aria-label": `Go to slide ${y + 1}`, "aria-current": y === i ? "true" : void 0, className: k("h-1 flex-1 rounded-[3px] cursor-pointer transition-all duration-300", y === i ? "bg-neutral-white" : "bg-neutral-white/40 hover:bg-neutral-white/60") }, `indicator-${g}-${y}`)) }), e[4] = i, e[5] = o, e[6] = t, e[7] = d) : d = e[7];
367
- let m;
368
- e[8] !== f ? (m = f != null && /* @__PURE__ */ u("div", { className: k("absolute left-1/2 top-[152.5px] z-10 flex w-[328px] -translate-x-1/2 items-center justify-center text-center transition-opacity duration-300"), children: f }), e[8] = f, e[9] = m) : m = e[9];
365
+ let u;
366
+ e[4] !== i || e[5] !== o || e[6] !== t ? (u = t.length > 1 && /* @__PURE__ */ d("div", { className: "absolute top-2.5 left-1/2 z-20 flex w-full max-w-[400px] -translate-x-1/2 gap-1.5 px-4", children: t.map((g, y) => /* @__PURE__ */ d("button", { type: "button", onClick: () => o(y), "aria-label": `Go to slide ${y + 1}`, "aria-current": y === i ? "true" : void 0, className: k("h-1 flex-1 rounded-[3px] cursor-pointer transition-all duration-300", y === i ? "bg-neutral-white" : "bg-neutral-white/40 hover:bg-neutral-white/60") }, `indicator-${g}-${y}`)) }), e[4] = i, e[5] = o, e[6] = t, e[7] = u) : u = e[7];
367
+ let f;
368
+ e[8] !== m ? (f = m != null && /* @__PURE__ */ d("div", { className: k("absolute left-1/2 top-[152.5px] z-10 flex w-[328px] -translate-x-1/2 items-center justify-center text-center transition-opacity duration-300"), children: m }), e[8] = m, e[9] = f) : f = e[9];
369
369
  let p;
370
- e[10] !== i || e[11] !== o || e[12] !== l || e[13] !== t ? (p = /* @__PURE__ */ u("div", { className: "absolute inset-0", children: t.length > 0 ? /* @__PURE__ */ u(_t, { images: t, autoPlayInterval: l, className: "h-full w-full", hideIndicators: !0, activeIndex: i, onSlideChange: o, onNavigate: o }) : /* @__PURE__ */ u("div", { className: "flex h-full w-full items-center justify-center bg-neutral-white/50 p-8", children: /* @__PURE__ */ u(O, { variant: "h6", weight: "medium", align: "center", className: "opacity-40 text-primary-170", children: "No slides configured" }) }) }), e[10] = i, e[11] = o, e[12] = l, e[13] = t, e[14] = p) : p = e[14];
370
+ e[10] !== i || e[11] !== o || e[12] !== l || e[13] !== t ? (p = /* @__PURE__ */ d("div", { className: "absolute inset-0", children: t.length > 0 ? /* @__PURE__ */ d(At, { images: t, autoPlayInterval: l, className: "h-full w-full", hideIndicators: !0, activeIndex: i, onSlideChange: o, onNavigate: o }) : /* @__PURE__ */ d("div", { className: "flex h-full w-full items-center justify-center bg-neutral-white/50 p-8", children: /* @__PURE__ */ d(A, { variant: "h6", weight: "medium", align: "center", className: "opacity-40 text-primary-170", children: "No slides configured" }) }) }), e[10] = i, e[11] = o, e[12] = l, e[13] = t, e[14] = p) : p = e[14];
371
371
  let b;
372
- return e[15] !== h || e[16] !== d || e[17] !== m || e[18] !== p ? (b = /* @__PURE__ */ R("div", { className: h, children: [
373
- d,
374
- m,
372
+ return e[15] !== h || e[16] !== u || e[17] !== f || e[18] !== p ? (b = /* @__PURE__ */ I("div", { className: h, children: [
373
+ u,
374
+ f,
375
375
  p
376
- ] }), e[15] = h, e[16] = d, e[17] = m, e[18] = p, e[19] = b) : b = e[19], b;
376
+ ] }), e[15] = h, e[16] = u, e[17] = f, e[18] = p, e[19] = b) : b = e[19], b;
377
377
  }
378
- function At(n) {
378
+ function Tt(n) {
379
379
  const e = E.c(22), {
380
380
  sliderImages: t,
381
381
  sliderAutoPlayInterval: l,
@@ -385,7 +385,7 @@ function At(n) {
385
385
  marketingClassName: s,
386
386
  contentClassName: a,
387
387
  children: c
388
- } = n, f = l === void 0 ? 5e3 : l, [h, d] = Y(0), m = t ?? Ve;
388
+ } = n, m = l === void 0 ? 5e3 : l, [h, u] = Y(0), f = t ?? qe;
389
389
  let p;
390
390
  e[0] !== r ? (p = k("min-h-svh w-full flex flex-1 flex-col bg-neutral-white transition-colors duration-500", r), e[0] = r, e[1] = p) : p = e[1];
391
391
  let b;
@@ -393,20 +393,20 @@ function At(n) {
393
393
  className: s
394
394
  }, e[2] = s, e[3] = b) : b = e[3];
395
395
  let g;
396
- e[4] !== h || e[5] !== i || e[6] !== m || e[7] !== f || e[8] !== o || e[9] !== b ? (g = /* @__PURE__ */ u("div", { className: "hidden lg:block lg:w-[432px] lg:h-[100dvh] lg:flex-shrink-0 lg:flex-grow-0", children: /* @__PURE__ */ u(Pt, { sliderImages: m, sliderAutoPlayInterval: f, activeSlideIndex: h, onSlideChange: d, ctaText: i, sliderTitles: o, ...b }) }), e[4] = h, e[5] = i, e[6] = m, e[7] = f, e[8] = o, e[9] = b, e[10] = g) : g = e[10];
396
+ e[4] !== h || e[5] !== i || e[6] !== f || e[7] !== m || e[8] !== o || e[9] !== b ? (g = /* @__PURE__ */ d("div", { className: "hidden lg:block lg:w-[432px] lg:h-[100dvh] lg:flex-shrink-0 lg:flex-grow-0", children: /* @__PURE__ */ d(It, { sliderImages: f, sliderAutoPlayInterval: m, activeSlideIndex: h, onSlideChange: u, ctaText: i, sliderTitles: o, ...b }) }), e[4] = h, e[5] = i, e[6] = f, e[7] = m, e[8] = o, e[9] = b, e[10] = g) : g = e[10];
397
397
  let y;
398
398
  e[11] !== a ? (y = k("flex-1 min-w-0 flex flex-col overflow-x-hidden", a), e[11] = a, e[12] = y) : y = e[12];
399
399
  let v;
400
- e[13] !== c || e[14] !== y ? (v = /* @__PURE__ */ u("div", { className: y, children: c }), e[13] = c, e[14] = y, e[15] = v) : v = e[15];
400
+ e[13] !== c || e[14] !== y ? (v = /* @__PURE__ */ d("div", { className: y, children: c }), e[13] = c, e[14] = y, e[15] = v) : v = e[15];
401
401
  let C;
402
- e[16] !== g || e[17] !== v ? (C = /* @__PURE__ */ R("div", { className: "flex w-full h-full min-h-svh flex-col lg:flex-row", children: [
402
+ e[16] !== g || e[17] !== v ? (C = /* @__PURE__ */ I("div", { className: "flex w-full h-full min-h-svh flex-col lg:flex-row", children: [
403
403
  g,
404
404
  v
405
405
  ] }), e[16] = g, e[17] = v, e[18] = C) : C = e[18];
406
- let w;
407
- return e[19] !== p || e[20] !== C ? (w = /* @__PURE__ */ u("div", { className: p, children: C }), e[19] = p, e[20] = C, e[21] = w) : w = e[21], w;
406
+ let S;
407
+ return e[19] !== p || e[20] !== C ? (S = /* @__PURE__ */ d("div", { className: p, children: C }), e[19] = p, e[20] = C, e[21] = S) : S = e[21], S;
408
408
  }
409
- function ie(n) {
409
+ function se(n) {
410
410
  const e = E.c(58), {
411
411
  children: t,
412
412
  layoutType: l,
@@ -416,102 +416,102 @@ function ie(n) {
416
416
  footer: s,
417
417
  header: a,
418
418
  onBack: c,
419
- backButton: f,
419
+ backButton: m,
420
420
  sliderImages: h,
421
- sliderAutoPlayInterval: d,
422
- sliderTitles: m,
421
+ sliderAutoPlayInterval: u,
422
+ sliderTitles: f,
423
423
  variant: p,
424
424
  maxWidth: b,
425
425
  contentWidth: g,
426
426
  align: y,
427
427
  className: v
428
- } = n, C = l === void 0 ? "withSlider" : l, w = h === void 0 ? Ve : h, S = d === void 0 ? mt : d, x = b === void 0 ? "sm" : b, _ = g === void 0 ? "default" : g, N = y === void 0 ? "center" : y, P = _ === "sm", T = p ?? (C === "withSlider" ? "desktop" : "mobile");
428
+ } = n, C = l === void 0 ? "withSlider" : l, S = h === void 0 ? qe : h, w = u === void 0 ? pt : u, x = b === void 0 ? "sm" : b, P = g === void 0 ? "default" : g, N = y === void 0 ? "center" : y, _ = P === "sm", T = p ?? (C === "withSlider" ? "desktop" : "mobile");
429
429
  let D;
430
- e[0] !== f || e[1] !== i || e[2] !== c ? (D = () => f ?? (c != null ? /* @__PURE__ */ u(ye, { onClick: c }) : i ? typeof i == "string" ? /* @__PURE__ */ u("div", { className: "h-[30px] w-[140px]", children: /* @__PURE__ */ u("img", { src: i, alt: "Docthub", className: "block h-full w-full object-cover" }) }) : i : null), e[0] = f, e[1] = i, e[2] = c, e[3] = D) : D = e[3];
430
+ e[0] !== m || e[1] !== i || e[2] !== c ? (D = () => m ?? (c != null ? /* @__PURE__ */ d(xe, { onClick: c }) : i ? typeof i == "string" ? /* @__PURE__ */ d("div", { className: "h-[30px] w-[140px]", children: /* @__PURE__ */ d("img", { src: i, alt: "Docthub", className: "block h-full w-full object-cover" }) }) : i : null), e[0] = m, e[1] = i, e[2] = c, e[3] = D) : D = e[3];
431
431
  const W = D;
432
- let A;
433
- e[4] !== N || e[5] !== o ? (A = () => o ? typeof o == "string" ? /* @__PURE__ */ u(O, { variant: "h5", weight: "extraBold", align: N, className: "text-neutral-black", children: o }) : o : null, e[4] = N, e[5] = o, e[6] = A) : A = e[6];
434
- const I = A;
432
+ let O;
433
+ e[4] !== N || e[5] !== o ? (O = () => o ? typeof o == "string" ? /* @__PURE__ */ d(A, { variant: "h5", weight: "extraBold", align: N, className: "text-neutral-black", children: o }) : o : null, e[4] = N, e[5] = o, e[6] = O) : O = e[6];
434
+ const L = O;
435
435
  let F;
436
- e[7] !== N || e[8] !== r ? (F = () => r ? typeof r == "string" ? /* @__PURE__ */ u(O, { variant: "body1", align: N, className: "text-neutral-black", children: r }) : r : null, e[7] = N, e[8] = r, e[9] = F) : F = e[9];
437
- const M = F;
438
- let L;
439
- e[10] !== a ? (L = a && /* @__PURE__ */ u(q.Header, { children: a }), e[10] = a, e[11] = L) : L = e[11];
440
- let U;
441
- e[12] !== W ? (U = W(), e[12] = W, e[13] = U) : U = e[13];
436
+ e[7] !== N || e[8] !== r ? (F = () => r ? typeof r == "string" ? /* @__PURE__ */ d(A, { variant: "body1", align: N, className: "text-neutral-black", children: r }) : r : null, e[7] = N, e[8] = r, e[9] = F) : F = e[9];
437
+ const U = F;
438
+ let R;
439
+ e[10] !== a ? (R = a && /* @__PURE__ */ d(q.Header, { children: a }), e[10] = a, e[11] = R) : R = e[11];
440
+ let B;
441
+ e[12] !== W ? (B = W(), e[12] = W, e[13] = B) : B = e[13];
442
442
  let V;
443
- e[14] !== N || e[15] !== U ? (V = /* @__PURE__ */ u(q.Logo, { align: N, children: U }), e[14] = N, e[15] = U, e[16] = V) : V = e[16];
443
+ e[14] !== N || e[15] !== B ? (V = /* @__PURE__ */ d(q.Logo, { align: N, children: B }), e[14] = N, e[15] = B, e[16] = V) : V = e[16];
444
444
  let G;
445
- e[17] !== N || e[18] !== I || e[19] !== o ? (G = o && /* @__PURE__ */ u(q.Title, { align: N, children: I() }), e[17] = N, e[18] = I, e[19] = o, e[20] = G) : G = e[20];
445
+ e[17] !== N || e[18] !== L || e[19] !== o ? (G = o && /* @__PURE__ */ d(q.Title, { align: N, children: L() }), e[17] = N, e[18] = L, e[19] = o, e[20] = G) : G = e[20];
446
446
  let H;
447
- e[21] !== N || e[22] !== r || e[23] !== M ? (H = r && /* @__PURE__ */ u(q.Description, { align: N, children: M() }), e[21] = N, e[22] = r, e[23] = M, e[24] = H) : H = e[24];
447
+ e[21] !== N || e[22] !== r || e[23] !== U ? (H = r && /* @__PURE__ */ d(q.Description, { align: N, children: U() }), e[21] = N, e[22] = r, e[23] = U, e[24] = H) : H = e[24];
448
448
  let $;
449
- e[25] !== t ? ($ = /* @__PURE__ */ u(q.Body, { children: t }), e[25] = t, e[26] = $) : $ = e[26];
449
+ e[25] !== t ? ($ = /* @__PURE__ */ d(q.Body, { children: t }), e[25] = t, e[26] = $) : $ = e[26];
450
450
  let z;
451
- e[27] !== V || e[28] !== G || e[29] !== H || e[30] !== $ || e[31] !== P ? (z = /* @__PURE__ */ R(q.Main, { sm: P, children: [
451
+ e[27] !== V || e[28] !== G || e[29] !== H || e[30] !== $ || e[31] !== _ ? (z = /* @__PURE__ */ I(q.Main, { sm: _, children: [
452
452
  V,
453
453
  G,
454
454
  H,
455
455
  $
456
- ] }), e[27] = V, e[28] = G, e[29] = H, e[30] = $, e[31] = P, e[32] = z) : z = e[32];
457
- let X;
458
- e[33] !== s ? (X = s && /* @__PURE__ */ u(q.Footer, { children: s }), e[33] = s, e[34] = X) : X = e[34];
459
- let oe;
460
- e[35] !== L || e[36] !== z || e[37] !== X ? (oe = /* @__PURE__ */ R(fe, { children: [
461
- L,
456
+ ] }), e[27] = V, e[28] = G, e[29] = H, e[30] = $, e[31] = _, e[32] = z) : z = e[32];
457
+ let Z;
458
+ e[33] !== s ? (Z = s && /* @__PURE__ */ d(q.Footer, { children: s }), e[33] = s, e[34] = Z) : Z = e[34];
459
+ let ce;
460
+ e[35] !== R || e[36] !== z || e[37] !== Z ? (ce = /* @__PURE__ */ I(X, { children: [
461
+ R,
462
462
  z,
463
- X
464
- ] }), e[35] = L, e[36] = z, e[37] = X, e[38] = oe) : oe = e[38];
465
- const Z = oe;
463
+ Z
464
+ ] }), e[35] = R, e[36] = z, e[37] = Z, e[38] = ce) : ce = e[38];
465
+ const Q = ce;
466
466
  if (C === "withSlider") {
467
- let ee;
468
- e[39] !== v ? (ee = v && {
469
- className: v
470
- }, e[39] = v, e[40] = ee) : ee = e[40];
471
467
  let te;
472
- e[41] !== Z || e[42] !== x || e[43] !== T ? (te = /* @__PURE__ */ u(q.Root, { variant: T, maxWidth: x, className: "bg-transparent", children: Z }), e[41] = Z, e[42] = x, e[43] = T, e[44] = te) : te = e[44];
473
- let se;
474
- return e[45] !== S || e[46] !== w || e[47] !== m || e[48] !== ee || e[49] !== te ? (se = /* @__PURE__ */ u(At, { sliderImages: w, sliderAutoPlayInterval: S, sliderTitles: m, ...ee, children: te }), e[45] = S, e[46] = w, e[47] = m, e[48] = ee, e[49] = te, e[50] = se) : se = e[50], se;
468
+ e[39] !== v ? (te = v && {
469
+ className: v
470
+ }, e[39] = v, e[40] = te) : te = e[40];
471
+ let ne;
472
+ e[41] !== Q || e[42] !== x || e[43] !== T ? (ne = /* @__PURE__ */ d(q.Root, { variant: T, maxWidth: x, className: "bg-transparent", children: Q }), e[41] = Q, e[42] = x, e[43] = T, e[44] = ne) : ne = e[44];
473
+ let de;
474
+ return e[45] !== w || e[46] !== S || e[47] !== f || e[48] !== te || e[49] !== ne ? (de = /* @__PURE__ */ d(Tt, { sliderImages: S, sliderAutoPlayInterval: w, sliderTitles: f, ...te, children: ne }), e[45] = w, e[46] = S, e[47] = f, e[48] = te, e[49] = ne, e[50] = de) : de = e[50], de;
475
475
  }
476
- let Q;
477
- e[51] !== v ? (Q = v && {
476
+ let ee;
477
+ e[51] !== v ? (ee = v && {
478
478
  className: v
479
- }, e[51] = v, e[52] = Q) : Q = e[52];
480
- let re;
481
- return e[53] !== Z || e[54] !== x || e[55] !== T || e[56] !== Q ? (re = /* @__PURE__ */ u(q.Root, { variant: T, maxWidth: x, ...Q, children: Z }), e[53] = Z, e[54] = x, e[55] = T, e[56] = Q, e[57] = re) : re = e[57], re;
479
+ }, e[51] = v, e[52] = ee) : ee = e[52];
480
+ let ue;
481
+ return e[53] !== Q || e[54] !== x || e[55] !== T || e[56] !== ee ? (ue = /* @__PURE__ */ d(q.Root, { variant: T, maxWidth: x, ...ee, children: Q }), e[53] = Q, e[54] = x, e[55] = T, e[56] = ee, e[57] = ue) : ue = e[57], ue;
482
482
  }
483
- function Ot(n) {
483
+ function Lt(n) {
484
484
  return {
485
485
  triggerSignIn() {
486
486
  }
487
487
  };
488
488
  }
489
- const $e = "https://accounts.google.com/gsi/client";
490
- function Tt() {
489
+ const We = "https://accounts.google.com/gsi/client";
490
+ function Rt() {
491
491
  return typeof window > "u" ? Promise.reject(new Error("GSI requires browser")) : window.google?.accounts?.id ? Promise.resolve() : new Promise((n, e) => {
492
- if (document.querySelector(`script[src="${$e}"]`)) {
492
+ if (document.querySelector(`script[src="${We}"]`)) {
493
493
  const i = () => window.google?.accounts?.id ? n() : setTimeout(i, 50);
494
494
  i();
495
495
  return;
496
496
  }
497
497
  const l = document.createElement("script");
498
- l.src = $e, l.async = !0, l.defer = !0, l.onload = () => n(), l.onerror = () => e(new Error("Failed to load Google Identity Services script")), document.body.appendChild(l);
498
+ l.src = We, l.async = !0, l.defer = !0, l.onload = () => n(), l.onerror = () => e(new Error("Failed to load Google Identity Services script")), document.body.appendChild(l);
499
499
  });
500
500
  }
501
- const It = "openid email profile", We = 2e3;
502
- function Lt(n) {
501
+ const Ft = "openid email profile", Ue = 2e3;
502
+ function kt(n) {
503
503
  const e = E.c(18), {
504
504
  clientId: t,
505
505
  onCredential: l,
506
506
  enableOneTap: i
507
- } = n, o = i === void 0 ? !1 : i, r = ne(!1), s = ne(null), a = ne(l), c = ne(0), f = ne(!1);
508
- let h, d;
507
+ } = n, o = i === void 0 ? !1 : i, r = ie(!1), s = ie(null), a = ie(l), c = ie(0), m = ie(!1);
508
+ let h, u;
509
509
  e[0] !== l ? (h = () => {
510
510
  a.current = l;
511
- }, d = [l], e[0] = l, e[1] = h, e[2] = d) : (h = e[1], d = e[2]), J(h, d);
512
- let m;
513
- e[3] !== t ? (m = async () => {
514
- t && (await Tt(), !(!window.google?.accounts?.id || !window.google?.accounts?.oauth2) && (r.current || (window.google.accounts.id.initialize({
511
+ }, u = [l], e[0] = l, e[1] = h, e[2] = u) : (h = e[1], u = e[2]), J(h, u);
512
+ let f;
513
+ e[3] !== t ? (f = async () => {
514
+ t && (await Rt(), !(!window.google?.accounts?.id || !window.google?.accounts?.oauth2) && (r.current || (window.google.accounts.id.initialize({
515
515
  client_id: t,
516
516
  callback: (x) => {
517
517
  a.current(x.credential);
@@ -519,92 +519,48 @@ function Lt(n) {
519
519
  auto_select: !1
520
520
  }), s.current = window.google.accounts.oauth2.initCodeClient({
521
521
  client_id: t,
522
- scope: It,
522
+ scope: Ft,
523
523
  ux_mode: "popup",
524
524
  callback: (x) => {
525
525
  a.current(x.code);
526
526
  },
527
- error_callback: Rt
527
+ error_callback: Dt
528
528
  }), r.current = !0)));
529
- }, e[3] = t, e[4] = m) : m = e[4];
530
- const p = m;
529
+ }, e[3] = t, e[4] = f) : f = e[4];
530
+ const p = f;
531
531
  let b;
532
532
  e[5] !== t ? (b = async () => {
533
533
  if (!t)
534
534
  return;
535
535
  const x = Date.now();
536
- x - c.current < We || (c.current = x, s.current?.requestCode());
536
+ x - c.current < Ue || (c.current = x, s.current?.requestCode());
537
537
  }, e[5] = t, e[6] = b) : b = e[6];
538
538
  const g = b;
539
539
  let y, v;
540
540
  e[7] !== t || e[8] !== p ? (y = () => {
541
541
  t && p();
542
542
  }, v = [t, p], e[7] = t, e[8] = p, e[9] = y, e[10] = v) : (y = e[9], v = e[10]), J(y, v);
543
- let C, w;
543
+ let C, S;
544
544
  e[11] !== t || e[12] !== o || e[13] !== p ? (C = () => {
545
- !o || !t || f.current || (f.current = !0, p().then(() => {
545
+ !o || !t || m.current || (m.current = !0, p().then(() => {
546
546
  if (!window.google?.accounts?.id)
547
547
  return;
548
548
  const x = Date.now();
549
- x - c.current < We || (c.current = x, window.google.accounts.id.prompt());
549
+ x - c.current < Ue || (c.current = x, window.google.accounts.id.prompt());
550
550
  }));
551
- }, w = [o, t, p], e[11] = t, e[12] = o, e[13] = p, e[14] = C, e[15] = w) : (C = e[14], w = e[15]), J(C, w);
552
- let S;
553
- return e[16] !== g ? (S = {
551
+ }, S = [o, t, p], e[11] = t, e[12] = o, e[13] = p, e[14] = C, e[15] = S) : (C = e[14], S = e[15]), J(C, S);
552
+ let w;
553
+ return e[16] !== g ? (w = {
554
554
  loginWithGoogle: g
555
- }, e[16] = g, e[17] = S) : S = e[17], S;
555
+ }, e[16] = g, e[17] = w) : w = e[17], w;
556
556
  }
557
- function Rt() {
557
+ function Dt() {
558
558
  }
559
- function ce(n) {
560
- const e = E.c(7), {
561
- label: t,
562
- value: l
563
- } = n;
564
- if (!l)
565
- return null;
566
- let i;
567
- e[0] !== t ? (i = /* @__PURE__ */ u(O, { variant: "textLabel3", className: "text-neutral-500", children: t }), e[0] = t, e[1] = i) : i = e[1];
568
- let o;
569
- e[2] !== l ? (o = /* @__PURE__ */ u(O, { variant: "body1", weight: "semiBold", className: "break-words text-neutral-black", children: l }), e[2] = l, e[3] = o) : o = e[3];
570
- let r;
571
- return e[4] !== i || e[5] !== o ? (r = /* @__PURE__ */ R("div", { className: "flex w-full flex-col gap-1 rounded-lg border border-neutral-200 bg-white px-4 py-3", children: [
572
- i,
573
- o
574
- ] }), e[4] = i, e[5] = o, e[6] = r) : r = e[6], r;
575
- }
576
- function In(n) {
577
- const {
578
- details: e,
579
- onBack: t,
580
- onVerify: l
581
- } = n, [i, o] = Y(!1), [r, s] = Y(""), a = e.conflictField === "email", c = a ? "Verify Email" : "Verify Mobile Number", f = a ? "This email is already connected with another account." : "This mobile number is already connected with another account.", h = async () => {
582
- s(""), o(!0);
583
- try {
584
- await l();
585
- } catch (d) {
586
- s(d?.message ?? "Unable to verify right now");
587
- } finally {
588
- o(!1);
589
- }
590
- };
591
- return /* @__PURE__ */ u(ie, { layoutType: "standalone", variant: "mobile", contentWidth: "sm", align: "left", backButton: t != null ? /* @__PURE__ */ u(ye, { onClick: t }) : void 0, title: /* @__PURE__ */ u(O, { variant: "h5", weight: "extraBold", align: "left", className: "-mb-1.5", children: c }), description: /* @__PURE__ */ u(O, { variant: "body1", align: "left", className: "mb-4 md:mb-4", children: f }), className: Ne, children: /* @__PURE__ */ R("div", { className: "flex w-full flex-col gap-4", children: [
592
- a ? /* @__PURE__ */ R(fe, { children: [
593
- /* @__PURE__ */ u(ce, { label: "Existing Email", value: e.oldEmail }),
594
- /* @__PURE__ */ u(ce, { label: "New Email", value: e.newEmail })
595
- ] }) : /* @__PURE__ */ R(fe, { children: [
596
- /* @__PURE__ */ u(ce, { label: "Existing Mobile Number", value: e.oldPhone ? `${e.oldCountryCode ? `+${e.oldCountryCode} ` : ""}${e.oldPhone}` : void 0 }),
597
- /* @__PURE__ */ u(ce, { label: "New Mobile Number", value: `+${e.newCountryCode} ${e.newPhone}` })
598
- ] }),
599
- r ? /* @__PURE__ */ u(O, { variant: "body5", className: "text-error", children: r }) : null,
600
- /* @__PURE__ */ u(B, { type: "button", variant: "primary", size: "large", fullWidth: !0, disabled: i, onClick: h, children: i ? /* @__PURE__ */ u(be, { size: 32, strokeWidth: 2 }) : "Verify" })
601
- ] }) });
602
- }
603
- function Se(n) {
559
+ function ae(n) {
604
560
  const e = E.c(43);
605
- let t, l, i, o, r, s, a, c, f, h, d, m, p, b, g, y, v, C;
561
+ let t, l, i, o, r, s, a, c, m, h, u, f, p, b, g, y, v, C;
606
562
  e[0] !== n ? ({
607
- name: f,
563
+ name: m,
608
564
  label: y,
609
565
  countryCode: v,
610
566
  countryCodeName: o,
@@ -612,9 +568,9 @@ function Se(n) {
612
568
  selectedCountryName: g,
613
569
  countries: i,
614
570
  defaultCountry: r,
615
- onValuesChange: m,
571
+ onValuesChange: f,
616
572
  onCountryChange: h,
617
- onCountryCodeChange: d,
573
+ onCountryCodeChange: u,
618
574
  placeholder: C,
619
575
  disabled: s,
620
576
  required: b,
@@ -622,15 +578,15 @@ function Se(n) {
622
578
  helperText: c,
623
579
  control: l,
624
580
  ...a
625
- } = n, e[0] = n, e[1] = t, e[2] = l, e[3] = i, e[4] = o, e[5] = r, e[6] = s, e[7] = a, e[8] = c, e[9] = f, e[10] = h, e[11] = d, e[12] = m, e[13] = p, e[14] = b, e[15] = g, e[16] = y, e[17] = v, e[18] = C) : (t = e[1], l = e[2], i = e[3], o = e[4], r = e[5], s = e[6], a = e[7], c = e[8], f = e[9], h = e[10], d = e[11], m = e[12], p = e[13], b = e[14], g = e[15], y = e[16], v = e[17], C = e[18]);
626
- const w = y === void 0 ? "Phone Number" : y, S = v === void 0 ? "91" : v, x = C === void 0 ? "Enter phone number" : C, _ = le(), N = l || _.control;
627
- let P;
628
- e[19] !== t || e[20] !== i || e[21] !== S || e[22] !== o || e[23] !== r || e[24] !== s || e[25] !== a || e[26] !== c || e[27] !== w || e[28] !== _ || e[29] !== f || e[30] !== h || e[31] !== d || e[32] !== m || e[33] !== p || e[34] !== x || e[35] !== b || e[36] !== N || e[37] !== g ? (P = (D) => {
581
+ } = n, e[0] = n, e[1] = t, e[2] = l, e[3] = i, e[4] = o, e[5] = r, e[6] = s, e[7] = a, e[8] = c, e[9] = m, e[10] = h, e[11] = u, e[12] = f, e[13] = p, e[14] = b, e[15] = g, e[16] = y, e[17] = v, e[18] = C) : (t = e[1], l = e[2], i = e[3], o = e[4], r = e[5], s = e[6], a = e[7], c = e[8], m = e[9], h = e[10], u = e[11], f = e[12], p = e[13], b = e[14], g = e[15], y = e[16], v = e[17], C = e[18]);
582
+ const S = y === void 0 ? "Phone Number" : y, w = v === void 0 ? "91" : v, x = C === void 0 ? "Enter phone number" : C, P = re(), N = l || P.control;
583
+ let _;
584
+ e[19] !== t || e[20] !== i || e[21] !== w || e[22] !== o || e[23] !== r || e[24] !== s || e[25] !== a || e[26] !== c || e[27] !== S || e[28] !== P || e[29] !== m || e[30] !== h || e[31] !== u || e[32] !== f || e[33] !== p || e[34] !== x || e[35] !== b || e[36] !== N || e[37] !== g ? (_ = (D) => {
629
585
  const {
630
586
  field: W,
631
- fieldState: A
632
- } = D, I = (F, M) => /* @__PURE__ */ u(it, { ...a, id: f, value: String(W.value ?? ""), ...w !== void 0 && {
633
- label: w
587
+ fieldState: O
588
+ } = D, L = (F, U) => /* @__PURE__ */ d(st, { ...a, id: m, value: String(W.value ?? ""), ...S !== void 0 && {
589
+ label: S
634
590
  }, ...F ? {
635
591
  countryCode: F
636
592
  } : {}, ...x !== void 0 && {
@@ -645,39 +601,39 @@ function Se(n) {
645
601
  defaultCountry: r
646
602
  }, ...t !== void 0 && {
647
603
  className: t
648
- }, ...A.error?.message !== void 0 && {
649
- error: A.error?.message
650
- }, ...A.error === void 0 && c !== void 0 && {
604
+ }, ...O.error?.message !== void 0 && {
605
+ error: O.error?.message
606
+ }, ...O.error === void 0 && c !== void 0 && {
651
607
  helperText: c
652
- }, onPhoneChange: (L) => {
653
- W.onChange(L.replaceAll(/\D/g, ""));
654
- }, onCountryCodeChange: (L) => {
655
- const U = String(L || "").replaceAll(/\D/g, "");
656
- M?.(U), d?.(L);
657
- }, onValuesChange: (L) => {
658
- p && _.setValue(p, L, {
608
+ }, onPhoneChange: (R) => {
609
+ W.onChange(R.replaceAll(/\D/g, ""));
610
+ }, onCountryCodeChange: (R) => {
611
+ const B = String(R || "").replaceAll(/\D/g, "");
612
+ U?.(B), u?.(R);
613
+ }, onValuesChange: (R) => {
614
+ p && P.setValue(p, R, {
659
615
  shouldDirty: !0
660
- }), m?.(L);
661
- }, onCountryChange: (L) => {
662
- g && _.setValue(g, JSON.stringify(L), {
616
+ }), f?.(R);
617
+ }, onCountryChange: (R) => {
618
+ g && P.setValue(g, JSON.stringify(R), {
663
619
  shouldDirty: !0
664
- }), h?.(L);
620
+ }), h?.(R);
665
621
  }, onBlur: W.onBlur });
666
622
  if (!o) {
667
- const F = String(S || "").replaceAll(/\D/g, "");
668
- return I(F);
623
+ const F = String(w || "").replaceAll(/\D/g, "");
624
+ return L(F);
669
625
  }
670
- return /* @__PURE__ */ u(me, { name: o, control: N, render: (F) => {
626
+ return /* @__PURE__ */ d(ge, { name: o, control: N, render: (F) => {
671
627
  const {
672
- field: M
673
- } = F, L = String(M.value ?? S ?? "").replaceAll(/\D/g, "");
674
- return I(L, M.onChange);
628
+ field: U
629
+ } = F, R = String(U.value ?? w ?? "").replaceAll(/\D/g, "");
630
+ return L(R, U.onChange);
675
631
  } });
676
- }, e[19] = t, e[20] = i, e[21] = S, e[22] = o, e[23] = r, e[24] = s, e[25] = a, e[26] = c, e[27] = w, e[28] = _, e[29] = f, e[30] = h, e[31] = d, e[32] = m, e[33] = p, e[34] = x, e[35] = b, e[36] = N, e[37] = g, e[38] = P) : P = e[38];
632
+ }, e[19] = t, e[20] = i, e[21] = w, e[22] = o, e[23] = r, e[24] = s, e[25] = a, e[26] = c, e[27] = S, e[28] = P, e[29] = m, e[30] = h, e[31] = u, e[32] = f, e[33] = p, e[34] = x, e[35] = b, e[36] = N, e[37] = g, e[38] = _) : _ = e[38];
677
633
  let T;
678
- return e[39] !== f || e[40] !== N || e[41] !== P ? (T = /* @__PURE__ */ u(me, { name: f, control: N, render: P }), e[39] = f, e[40] = N, e[41] = P, e[42] = T) : T = e[42], T;
634
+ return e[39] !== m || e[40] !== N || e[41] !== _ ? (T = /* @__PURE__ */ d(ge, { name: m, control: N, render: _ }), e[39] = m, e[40] = N, e[41] = _, e[42] = T) : T = e[42], T;
679
635
  }
680
- function de(n) {
636
+ function oe(n) {
681
637
  const e = E.c(15), {
682
638
  name: t,
683
639
  label: l,
@@ -687,63 +643,250 @@ function de(n) {
687
643
  required: s,
688
644
  type: a,
689
645
  disabled: c,
690
- onKeyDown: f,
646
+ onKeyDown: m,
691
647
  maxLength: h,
692
- numericOnly: d,
693
- autoFocus: m
694
- } = n, p = le(), b = r || p.control;
648
+ numericOnly: u,
649
+ autoFocus: f
650
+ } = n, p = re(), b = r || p.control;
695
651
  let g;
696
- e[0] !== m || e[1] !== o || e[2] !== c || e[3] !== l || e[4] !== h || e[5] !== d || e[6] !== f || e[7] !== i || e[8] !== s || e[9] !== a ? (g = (v) => {
652
+ e[0] !== f || e[1] !== o || e[2] !== c || e[3] !== l || e[4] !== h || e[5] !== u || e[6] !== m || e[7] !== i || e[8] !== s || e[9] !== a ? (g = (v) => {
697
653
  const {
698
654
  field: C,
699
- fieldState: w
655
+ fieldState: S
700
656
  } = v;
701
- return /* @__PURE__ */ u(ot, { ...C, value: C.value ?? "", ...m !== void 0 && {
702
- autoFocus: m
657
+ return /* @__PURE__ */ d(at, { ...C, value: C.value ?? "", ...f !== void 0 && {
658
+ autoFocus: f
703
659
  }, ...l !== void 0 && {
704
660
  label: l
705
661
  }, ...i !== void 0 && {
706
662
  placeholder: i
707
- }, ...w.error?.message !== void 0 && {
708
- error: w.error.message
663
+ }, ...S.error?.message !== void 0 && {
664
+ error: S.error.message
709
665
  }, ...o !== void 0 && {
710
666
  className: o
711
667
  }, ...s !== void 0 && {
712
668
  required: s
713
669
  }, type: a, ...c !== void 0 && {
714
670
  disabled: c
715
- }, onKeyDown: d ? (S) => {
716
- !/[0-9]/.test(S.key) && !["Backspace", "Tab", "Delete", "ArrowLeft", "ArrowRight", "Home", "End"].includes(S.key) && S.preventDefault(), f?.(S);
717
- } : f, ...h !== void 0 && {
671
+ }, onKeyDown: u ? (w) => {
672
+ !/[0-9]/.test(w.key) && !["Backspace", "Tab", "Delete", "ArrowLeft", "ArrowRight", "Home", "End"].includes(w.key) && w.preventDefault(), m?.(w);
673
+ } : m, ...h !== void 0 && {
718
674
  maxLength: h
719
- }, onChange: (S) => {
720
- const x = S?.target?.value;
675
+ }, onChange: (w) => {
676
+ const x = w?.target?.value;
721
677
  if (typeof x == "string") {
722
- let _ = x.replace(/^\s+/, "");
723
- d && (_ = _.replace(/\D/g, "")), C.onChange(_);
678
+ let P = x.replace(/^\s+/, "");
679
+ u && (P = P.replace(/\D/g, "")), C.onChange(P);
724
680
  } else
725
681
  C.onChange(x);
726
682
  }, onBlur: () => {
727
- const S = C.value;
728
- if (typeof S == "string") {
729
- const x = S.trim();
730
- x !== S && C.onChange(x);
683
+ const w = C.value;
684
+ if (typeof w == "string") {
685
+ const x = w.trim();
686
+ x !== w && C.onChange(x);
731
687
  }
732
688
  C.onBlur();
733
689
  } });
734
- }, e[0] = m, e[1] = o, e[2] = c, e[3] = l, e[4] = h, e[5] = d, e[6] = f, e[7] = i, e[8] = s, e[9] = a, e[10] = g) : g = e[10];
690
+ }, e[0] = f, e[1] = o, e[2] = c, e[3] = l, e[4] = h, e[5] = u, e[6] = m, e[7] = i, e[8] = s, e[9] = a, e[10] = g) : g = e[10];
735
691
  let y;
736
- return e[11] !== t || e[12] !== b || e[13] !== g ? (y = /* @__PURE__ */ u(me, { name: t, control: b, render: g }), e[11] = t, e[12] = b, e[13] = g, e[14] = y) : y = e[14], y;
692
+ return e[11] !== t || e[12] !== b || e[13] !== g ? (y = /* @__PURE__ */ d(ge, { name: t, control: b, render: g }), e[11] = t, e[12] = b, e[13] = g, e[14] = y) : y = e[14], y;
737
693
  }
738
- function Ft(n, e) {
694
+ function le(n) {
695
+ const e = E.c(7), {
696
+ label: t,
697
+ value: l
698
+ } = n;
699
+ if (!l)
700
+ return null;
701
+ let i;
702
+ e[0] !== t ? (i = /* @__PURE__ */ d(A, { variant: "textLabel3", className: "text-neutral-500", children: t }), e[0] = t, e[1] = i) : i = e[1];
703
+ let o;
704
+ e[2] !== l ? (o = /* @__PURE__ */ d(A, { variant: "body1", weight: "semiBold", className: "break-words text-neutral-black", children: l }), e[2] = l, e[3] = o) : o = e[3];
705
+ let r;
706
+ return e[4] !== i || e[5] !== o ? (r = /* @__PURE__ */ I("div", { className: "flex w-full flex-col gap-1 rounded-lg border border-neutral-200 bg-white px-4 py-3", children: [
707
+ i,
708
+ o
709
+ ] }), e[4] = i, e[5] = o, e[6] = r) : r = e[6], r;
710
+ }
711
+ function Ee(n, e) {
712
+ if (e)
713
+ return `${n ? `+${n} ` : ""}${e}`;
714
+ }
715
+ function Be(n) {
716
+ return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(n);
717
+ }
718
+ function fe(n) {
719
+ return (n ?? "").replaceAll(/\D/g, "");
720
+ }
721
+ function $t(n) {
722
+ return n.conflictField === "email" ? {
723
+ oldEmail: n.oldEmail ?? n.existingEmail ?? "",
724
+ newEmail: n.newEmail
725
+ } : {
726
+ oldCountryCode: n.oldCountryCode ?? n.existingCountryCode ?? "91",
727
+ oldPhone: n.oldPhone ?? n.existingPhone ?? "",
728
+ newCountryCode: n.newCountryCode,
729
+ newPhone: n.newPhone
730
+ };
731
+ }
732
+ function Mt(n) {
733
+ const e = E.c(29), {
734
+ details: t
735
+ } = n;
736
+ if (t.conflictField === "email") {
737
+ let c;
738
+ e[0] !== t.existingEmail ? (c = /* @__PURE__ */ d(le, { label: "Existing Email", value: t.existingEmail }), e[0] = t.existingEmail, e[1] = c) : c = e[1];
739
+ let m;
740
+ e[2] !== t.existingCountryCode || e[3] !== t.existingPhone ? (m = Ee(t.existingCountryCode, t.existingPhone), e[2] = t.existingCountryCode, e[3] = t.existingPhone, e[4] = m) : m = e[4];
741
+ let h;
742
+ e[5] !== m ? (h = /* @__PURE__ */ d(le, { label: "Existing Mobile Number", value: m }), e[5] = m, e[6] = h) : h = e[6];
743
+ let u;
744
+ e[7] !== t.newEmail ? (u = /* @__PURE__ */ d(le, { label: "New Email", value: t.newEmail }), e[7] = t.newEmail, e[8] = u) : u = e[8];
745
+ let f;
746
+ return e[9] !== c || e[10] !== h || e[11] !== u ? (f = /* @__PURE__ */ I(X, { children: [
747
+ c,
748
+ h,
749
+ u
750
+ ] }), e[9] = c, e[10] = h, e[11] = u, e[12] = f) : f = e[12], f;
751
+ }
752
+ let l;
753
+ e[13] !== t.existingEmail ? (l = /* @__PURE__ */ d(le, { label: "Existing Email", value: t.existingEmail }), e[13] = t.existingEmail, e[14] = l) : l = e[14];
754
+ let i;
755
+ e[15] !== t.existingCountryCode || e[16] !== t.existingPhone ? (i = Ee(t.existingCountryCode, t.existingPhone), e[15] = t.existingCountryCode, e[16] = t.existingPhone, e[17] = i) : i = e[17];
756
+ let o;
757
+ e[18] !== i ? (o = /* @__PURE__ */ d(le, { label: "Existing Mobile Number", value: i }), e[18] = i, e[19] = o) : o = e[19];
758
+ let r;
759
+ e[20] !== t.newCountryCode || e[21] !== t.newPhone ? (r = Ee(t.newCountryCode, t.newPhone), e[20] = t.newCountryCode, e[21] = t.newPhone, e[22] = r) : r = e[22];
760
+ let s;
761
+ e[23] !== r ? (s = /* @__PURE__ */ d(le, { label: "New Mobile Number", value: r }), e[23] = r, e[24] = s) : s = e[24];
762
+ let a;
763
+ return e[25] !== l || e[26] !== o || e[27] !== s ? (a = /* @__PURE__ */ I(X, { children: [
764
+ l,
765
+ o,
766
+ s
767
+ ] }), e[25] = l, e[26] = o, e[27] = s, e[28] = a) : a = e[28], a;
768
+ }
769
+ function Wt(n) {
770
+ const e = E.c(26), {
771
+ details: t,
772
+ isSubmitting: l,
773
+ onSubmit: i
774
+ } = n;
775
+ let o;
776
+ e[0] !== t ? (o = $t(t), e[0] = t, e[1] = o) : o = e[1];
777
+ let r;
778
+ e[2] !== o ? (r = {
779
+ defaultValues: o,
780
+ mode: "onChange"
781
+ }, e[2] = o, e[3] = r) : r = e[3];
782
+ const s = Ce(r);
783
+ let a;
784
+ e[4] !== t.conflictField || e[5] !== s || e[6] !== i ? (a = (g) => {
785
+ if (t.conflictField === "email") {
786
+ const w = (g.oldEmail ?? "").trim(), x = (g.newEmail ?? "").trim();
787
+ if (!Be(w)) {
788
+ s.setError("oldEmail", {
789
+ type: "manual",
790
+ message: "Enter a valid old email"
791
+ });
792
+ return;
793
+ }
794
+ if (!Be(x)) {
795
+ s.setError("newEmail", {
796
+ type: "manual",
797
+ message: "Enter a valid new email"
798
+ });
799
+ return;
800
+ }
801
+ i({
802
+ conflictField: "email",
803
+ oldEmail: w,
804
+ newEmail: x
805
+ });
806
+ return;
807
+ }
808
+ const y = fe(g.oldCountryCode), v = fe(g.oldPhone), C = fe(g.newCountryCode), S = fe(g.newPhone);
809
+ if (!y || !v) {
810
+ s.setError("oldPhone", {
811
+ type: "manual",
812
+ message: "Enter old mobile number"
813
+ });
814
+ return;
815
+ }
816
+ if (!C || !S) {
817
+ s.setError("newPhone", {
818
+ type: "manual",
819
+ message: "Enter new mobile number"
820
+ });
821
+ return;
822
+ }
823
+ i({
824
+ conflictField: "phone",
825
+ oldCountryCode: y,
826
+ oldPhone: v,
827
+ newCountryCode: C,
828
+ newPhone: S
829
+ });
830
+ }, e[4] = t.conflictField, e[5] = s, e[6] = i, e[7] = a) : a = e[7];
831
+ const c = a;
832
+ let m;
833
+ e[8] !== c || e[9] !== s ? (m = s.handleSubmit(c), e[8] = c, e[9] = s, e[10] = m) : m = e[10];
834
+ let h;
835
+ e[11] !== t.conflictField || e[12] !== t.newCountryCode ? (h = t.conflictField === "email" ? /* @__PURE__ */ I(X, { children: [
836
+ /* @__PURE__ */ d(oe, { name: "oldEmail", label: "Old Email", placeholder: "Old email", type: "email", className: "[&_input]:!h-[44px]", autoFocus: !0 }),
837
+ /* @__PURE__ */ d(oe, { name: "newEmail", label: "New Email", placeholder: "New email", type: "email", className: "[&_input]:!h-[44px]" })
838
+ ] }) : /* @__PURE__ */ I(X, { children: [
839
+ /* @__PURE__ */ d(ae, { name: "oldPhone", label: "Old Mobile Number", placeholder: "Old mobile number", countryCodeName: "oldCountryCode", countryCode: "+91", defaultCountry: "IN", className: "[&_button]:!h-[44px] [&_input]:!h-[44px]", autoFocus: !0 }),
840
+ /* @__PURE__ */ d(ae, { name: "newPhone", label: "New Mobile Number", placeholder: "New mobile number", countryCodeName: "newCountryCode", countryCode: `+${t.newCountryCode}`, defaultCountry: "IN", className: "[&_button]:!h-[44px] [&_input]:!h-[44px]" })
841
+ ] }), e[11] = t.conflictField, e[12] = t.newCountryCode, e[13] = h) : h = e[13];
842
+ let u;
843
+ e[14] !== l ? (u = l ? /* @__PURE__ */ d(ve, { size: 32, strokeWidth: 2 }) : "Confirm", e[14] = l, e[15] = u) : u = e[15];
844
+ let f;
845
+ e[16] !== l || e[17] !== u ? (f = /* @__PURE__ */ d(M, { type: "submit", variant: "primary", size: "large", fullWidth: !0, disabled: l, children: u }), e[16] = l, e[17] = u, e[18] = f) : f = e[18];
846
+ let p;
847
+ e[19] !== m || e[20] !== h || e[21] !== f ? (p = /* @__PURE__ */ I("form", { onSubmit: m, className: "flex w-full flex-col gap-4", noValidate: !0, children: [
848
+ h,
849
+ f
850
+ ] }), e[19] = m, e[20] = h, e[21] = f, e[22] = p) : p = e[22];
851
+ let b;
852
+ return e[23] !== s || e[24] !== p ? (b = /* @__PURE__ */ d(we, { ...s, children: p }), e[23] = s, e[24] = p, e[25] = b) : b = e[25], b;
853
+ }
854
+ function $n(n) {
855
+ const {
856
+ details: e,
857
+ onBack: t,
858
+ onContinue: l,
859
+ onVerify: i
860
+ } = n, [o, r] = Y(!1), [s, a] = Y(""), c = e.conflictField === "email", m = e.stage === "verification", h = m ? c ? "Confirm Email" : "Confirm Mobile Number" : c ? "Verify Email" : "Verify Mobile Number", u = m ? c ? "Enter the old and new email addresses." : "Enter the old and new mobile numbers." : c ? "This email is already connected with another account." : "This mobile number is already connected with another account.", f = async (p) => {
861
+ a(""), r(!0);
862
+ try {
863
+ await i(p);
864
+ } catch (b) {
865
+ a(b?.message ?? "Unable to verify right now");
866
+ } finally {
867
+ r(!1);
868
+ }
869
+ };
870
+ return /* @__PURE__ */ d(se, { layoutType: "standalone", variant: "mobile", contentWidth: "sm", align: "left", backButton: t != null ? /* @__PURE__ */ d(xe, { onClick: t }) : void 0, title: /* @__PURE__ */ d(A, { variant: "h5", weight: "extraBold", align: "left", className: "-mb-1.5", children: h }), description: /* @__PURE__ */ d(A, { variant: "body1", align: "left", className: "mb-4 md:mb-4", children: u }), className: Pe, children: /* @__PURE__ */ I("div", { className: "flex w-full flex-col gap-4", children: [
871
+ m ? /* @__PURE__ */ d(Wt, { details: e, isSubmitting: o, onSubmit: (p) => {
872
+ f(p);
873
+ } }) : /* @__PURE__ */ I(X, { children: [
874
+ /* @__PURE__ */ d(Mt, { details: e }),
875
+ /* @__PURE__ */ d(M, { type: "button", variant: "primary", size: "large", fullWidth: !0, onClick: l, children: "Link with existing" }),
876
+ /* @__PURE__ */ d(M, { type: "button", variant: "outline", size: "large", fullWidth: !0, children: "Create new" })
877
+ ] }),
878
+ s ? /* @__PURE__ */ d(A, { variant: "body5", className: "text-error", children: s }) : null
879
+ ] }) });
880
+ }
881
+ function Ut(n, e) {
739
882
  const t = (n ?? "").trim();
740
883
  if (t.length === 0) return "";
741
884
  if (t.startsWith("+")) return t;
742
885
  const l = (e ?? "").replaceAll(/\D/g, "");
743
886
  return l.length > 0 ? `+${l}${t}` : t;
744
887
  }
745
- const Ae = "doct-auth-kit:form:";
746
- function Oe() {
888
+ const Ie = "doct-auth-kit:form:";
889
+ function Te() {
747
890
  if (typeof window > "u") return null;
748
891
  try {
749
892
  return window.sessionStorage;
@@ -751,38 +894,38 @@ function Oe() {
751
894
  return null;
752
895
  }
753
896
  }
754
- function kt(n) {
755
- const e = Oe();
897
+ function Bt(n) {
898
+ const e = Te();
756
899
  if (!e) return null;
757
900
  try {
758
- const t = e.getItem(Ae + n);
901
+ const t = e.getItem(Ie + n);
759
902
  return t ? JSON.parse(t) : null;
760
903
  } catch {
761
904
  return null;
762
905
  }
763
906
  }
764
- function Dt(n, e) {
765
- const t = Oe();
907
+ function jt(n, e) {
908
+ const t = Te();
766
909
  if (t)
767
910
  try {
768
- t.setItem(Ae + n, JSON.stringify(e));
911
+ t.setItem(Ie + n, JSON.stringify(e));
769
912
  } catch {
770
913
  }
771
914
  }
772
- function Ln() {
773
- const n = Oe();
915
+ function Mn() {
916
+ const n = Te();
774
917
  if (n)
775
918
  try {
776
919
  const e = [];
777
920
  for (let t = 0; t < n.length; t++) {
778
921
  const l = n.key(t);
779
- l && l.startsWith(Ae) && e.push(l);
922
+ l && l.startsWith(Ie) && e.push(l);
780
923
  }
781
924
  e.forEach((t) => n.removeItem(t));
782
925
  } catch {
783
926
  }
784
927
  }
785
- function Ke(n, e) {
928
+ function Xe(n, e) {
786
929
  for (const t of n.issues) {
787
930
  const l = t.path[0];
788
931
  typeof l == "string" && e(l, {
@@ -790,59 +933,59 @@ function Ke(n, e) {
790
933
  });
791
934
  }
792
935
  }
793
- function $t(n) {
936
+ function zt(n) {
794
937
  return n.trim().replace(/\b\w/g, (e) => e.toUpperCase());
795
938
  }
796
- const Te = j.string().trim().min(1, "Full name is required").refine((n) => n == null || n.length === 0 ? !0 : n.length >= 3, "Full name must be at least 3 characters").transform($t), Ie = j.string().trim().min(1, "Phone number is required").refine((n) => {
939
+ const Le = j.string().trim().min(1, "Full name is required").refine((n) => n == null || n.length === 0 ? !0 : n.length >= 3, "Full name must be at least 3 characters").transform(zt), Re = j.string().trim().min(1, "Phone number is required").refine((n) => {
797
940
  if (n == null || n.length === 0) return !0;
798
941
  const [, e] = n.split("-"), l = (e ?? n).replaceAll(/\D/g, "");
799
942
  return l.length >= 7 && l.length <= 15;
800
- }, "Phone number must be between 7 and 15 digits"), Le = j.string().trim().transform((n) => n.replaceAll(/\D/g, "")).optional(), Re = j.string().trim().min(1, "Email is required").refine((n) => n == null || n.length === 0 ? !0 : j.string().email().safeParse(n).success, "Enter a valid email address").transform((n) => n.toLowerCase()), Wt = j.object({
801
- fullName: Te,
802
- phone: Ie,
803
- countryCode: Le
804
- }), Mt = j.object({
805
- fullName: Te,
806
- email: Re
807
- }), Ut = j.object({
808
- fullName: Te,
809
- email: Re,
810
- phone: Ie,
811
- countryCode: Le
812
- }), Me = {
813
- phone: Wt,
814
- email: Mt,
815
- foreign: Ut
816
- }, Bt = j.object({
817
- phone: Ie,
818
- countryCode: Le
819
- }), jt = j.object({
820
- email: Re
821
- }), Ue = {
822
- phone: Bt,
823
- email: jt
824
- }, he = 6, zt = 60, Vt = 120;
825
- function Gt(n) {
826
- return n === "phone" ? zt : Vt;
827
- }
828
- const Ye = j.object({
829
- otp: j.array(j.string()).length(he, "Enter all 6 digits").refine((n) => n.every((e) => /^\d$/.test(e)) && n.join("").length === he, "Invalid OTP! Please use correct code and submit again.")
943
+ }, "Phone number must be between 7 and 15 digits"), Fe = j.string().trim().transform((n) => n.replaceAll(/\D/g, "")).optional(), ke = j.string().trim().min(1, "Email is required").refine((n) => n == null || n.length === 0 ? !0 : j.string().email().safeParse(n).success, "Enter a valid email address").transform((n) => n.toLowerCase()), Vt = j.object({
944
+ fullName: Le,
945
+ phone: Re,
946
+ countryCode: Fe
947
+ }), Gt = j.object({
948
+ fullName: Le,
949
+ email: ke
950
+ }), Ht = j.object({
951
+ fullName: Le,
952
+ email: ke,
953
+ phone: Re,
954
+ countryCode: Fe
955
+ }), je = {
956
+ phone: Vt,
957
+ email: Gt,
958
+ foreign: Ht
959
+ }, qt = j.object({
960
+ phone: Re,
961
+ countryCode: Fe
962
+ }), Kt = j.object({
963
+ email: ke
964
+ }), ze = {
965
+ phone: qt,
966
+ email: Kt
967
+ }, pe = 6, Yt = 60, Jt = 120;
968
+ function Xt(n) {
969
+ return n === "phone" ? Yt : Jt;
970
+ }
971
+ const Ze = j.object({
972
+ otp: j.array(j.string()).length(pe, "Enter all 6 digits").refine((n) => n.every((e) => /^\d$/.test(e)) && n.join("").length === pe, "Invalid OTP! Please use correct code and submit again.")
830
973
  });
831
- function Je(n, e) {
832
- const t = ne(null);
974
+ function Qe(n, e) {
975
+ const t = ie(null);
833
976
  J(() => {
834
977
  if (t.current === n) return;
835
978
  t.current = n;
836
- const l = kt(n);
979
+ const l = Bt(n);
837
980
  l && e.reset(l);
838
981
  }, [n]), J(() => {
839
982
  const l = e.watch((i) => {
840
- Dt(n, i);
983
+ jt(n, i);
841
984
  });
842
985
  return () => l.unsubscribe();
843
986
  }, [e, n]);
844
987
  }
845
- function Ht(n) {
988
+ function Zt(n) {
846
989
  const e = E.c(19), {
847
990
  mode: t,
848
991
  onSubmit: l,
@@ -850,80 +993,80 @@ function Ht(n) {
850
993
  onSuccess: o,
851
994
  onError: r
852
995
  } = n, [s, a] = Y(!1), c = t === "phone";
853
- let f;
854
- e[0] !== c ? (f = c ? {
996
+ let m;
997
+ e[0] !== c ? (m = c ? {
855
998
  phone: "",
856
999
  countryCode: "91"
857
1000
  } : {
858
1001
  email: ""
859
- }, e[0] = c, e[1] = f) : f = e[1];
860
- const h = f;
861
- let d;
862
- e[2] !== h ? (d = {
1002
+ }, e[0] = c, e[1] = m) : m = e[1];
1003
+ const h = m;
1004
+ let u;
1005
+ e[2] !== h ? (u = {
863
1006
  defaultValues: h,
864
1007
  mode: "onChange"
865
- }, e[2] = h, e[3] = d) : d = e[3];
866
- const m = xe(d);
867
- Je(`login-entry:${t}`, m);
1008
+ }, e[2] = h, e[3] = u) : u = e[3];
1009
+ const f = Ce(u);
1010
+ Qe(`login-entry:${t}`, f);
868
1011
  let p;
869
- e[4] !== m || e[5] !== t || e[6] !== r || e[7] !== l || e[8] !== o || e[9] !== i ? (p = (C) => {
870
- const S = Ue[t].safeParse(C);
871
- if (!S.success) {
872
- Ke(S.error, (_, N) => m.setError(_, N));
1012
+ e[4] !== f || e[5] !== t || e[6] !== r || e[7] !== l || e[8] !== o || e[9] !== i ? (p = (C) => {
1013
+ const w = ze[t].safeParse(C);
1014
+ if (!w.success) {
1015
+ Xe(w.error, (P, N) => f.setError(P, N));
873
1016
  return;
874
1017
  }
875
- const x = S.data;
1018
+ const x = w.data;
876
1019
  if (i) {
877
1020
  a(!0);
878
- const _ = x.phone ? Ft(x.phone, x.countryCode) : x.email ?? "", N = {
1021
+ const P = x.phone ? Ut(x.phone, x.countryCode) : x.email ?? "", N = {
879
1022
  mode: t,
880
- recipient: _
1023
+ recipient: P
881
1024
  };
882
1025
  i(x).then(() => {
883
1026
  o?.(N);
884
- }).catch((P) => {
885
- r?.(P);
1027
+ }).catch((_) => {
1028
+ r?.(_);
886
1029
  }).finally(() => {
887
1030
  a(!1);
888
1031
  });
889
1032
  return;
890
1033
  }
891
1034
  l?.(x);
892
- }, e[4] = m, e[5] = t, e[6] = r, e[7] = l, e[8] = o, e[9] = i, e[10] = p) : p = e[10];
1035
+ }, e[4] = f, e[5] = t, e[6] = r, e[7] = l, e[8] = o, e[9] = i, e[10] = p) : p = e[10];
893
1036
  const b = p;
894
1037
  let g;
895
- e[11] !== t ? (g = (C) => Ue[t].safeParse(C).success, e[11] = t, e[12] = g) : g = e[12];
1038
+ e[11] !== t ? (g = (C) => ze[t].safeParse(C).success, e[11] = t, e[12] = g) : g = e[12];
896
1039
  const y = g;
897
1040
  let v;
898
- return e[13] !== b || e[14] !== y || e[15] !== c || e[16] !== s || e[17] !== m ? (v = {
899
- methods: m,
1041
+ return e[13] !== b || e[14] !== y || e[15] !== c || e[16] !== s || e[17] !== f ? (v = {
1042
+ methods: f,
900
1043
  handleSubmit: b,
901
1044
  isPhone: c,
902
1045
  isFormValid: y,
903
1046
  isSubmitting: s
904
- }, e[13] = b, e[14] = y, e[15] = c, e[16] = s, e[17] = m, e[18] = v) : v = e[18], v;
1047
+ }, e[13] = b, e[14] = y, e[15] = c, e[16] = s, e[17] = f, e[18] = v) : v = e[18], v;
905
1048
  }
906
- function qt(n) {
1049
+ function Qt(n) {
907
1050
  const e = E.c(14), {
908
1051
  isPhone: t,
909
1052
  handleSubmit: l,
910
1053
  isSubmitting: i
911
- } = n, o = le();
1054
+ } = n, o = re();
912
1055
  let r;
913
1056
  e[0] !== l || e[1] !== o ? (r = o.handleSubmit(l), e[0] = l, e[1] = o, e[2] = r) : r = e[2];
914
1057
  let s;
915
- e[3] !== t ? (s = /* @__PURE__ */ u("div", { className: "mb-6 flex w-full flex-col gap-[12px]", children: t ? /* @__PURE__ */ u(Se, { name: "phone", label: "", placeholder: "Phone number", countryCode: "+91", countryCodeName: "countryCode", defaultCountry: "IN", className: "[&_button]:!h-[44px] [&_input]:!h-[44px]", autoFocus: !0 }) : /* @__PURE__ */ u(de, { name: "email", placeholder: "Enter email address", type: "email", className: "[&_input]:!h-[44px]", autoFocus: !0 }) }), e[3] = t, e[4] = s) : s = e[4];
1058
+ e[3] !== t ? (s = /* @__PURE__ */ d("div", { className: "mb-6 flex w-full flex-col gap-[12px]", children: t ? /* @__PURE__ */ d(ae, { name: "phone", label: "", placeholder: "Phone number", countryCode: "+91", countryCodeName: "countryCode", defaultCountry: "IN", className: "[&_button]:!h-[44px] [&_input]:!h-[44px]", autoFocus: !0 }) : /* @__PURE__ */ d(oe, { name: "email", placeholder: "Enter email address", type: "email", className: "[&_input]:!h-[44px]", autoFocus: !0 }) }), e[3] = t, e[4] = s) : s = e[4];
916
1059
  let a;
917
- e[5] !== i ? (a = i ? /* @__PURE__ */ u(be, { size: 32, strokeWidth: 2 }) : "Continue", e[5] = i, e[6] = a) : a = e[6];
1060
+ e[5] !== i ? (a = i ? /* @__PURE__ */ d(ve, { size: 32, strokeWidth: 2 }) : "Continue", e[5] = i, e[6] = a) : a = e[6];
918
1061
  let c;
919
- e[7] !== i || e[8] !== a ? (c = /* @__PURE__ */ u(B, { type: "submit", variant: "primary", size: "large", fullWidth: !0, disabled: i, children: a }), e[7] = i, e[8] = a, e[9] = c) : c = e[9];
920
- let f;
921
- return e[10] !== r || e[11] !== s || e[12] !== c ? (f = /* @__PURE__ */ R("form", { onSubmit: r, className: "w-full flex flex-col", noValidate: !0, children: [
1062
+ e[7] !== i || e[8] !== a ? (c = /* @__PURE__ */ d(M, { type: "submit", variant: "primary", size: "large", fullWidth: !0, disabled: i, children: a }), e[7] = i, e[8] = a, e[9] = c) : c = e[9];
1063
+ let m;
1064
+ return e[10] !== r || e[11] !== s || e[12] !== c ? (m = /* @__PURE__ */ I("form", { onSubmit: r, className: "w-full flex flex-col", noValidate: !0, children: [
922
1065
  s,
923
1066
  c
924
- ] }), e[10] = r, e[11] = s, e[12] = c, e[13] = f) : f = e[13], f;
1067
+ ] }), e[10] = r, e[11] = s, e[12] = c, e[13] = m) : m = e[13], m;
925
1068
  }
926
- function Kt(n) {
1069
+ function en(n) {
927
1070
  const e = E.c(13), {
928
1071
  mode: t,
929
1072
  onSubmit: l,
@@ -942,22 +1085,22 @@ function Kt(n) {
942
1085
  const {
943
1086
  methods: a,
944
1087
  handleSubmit: c,
945
- isPhone: f,
1088
+ isPhone: m,
946
1089
  isSubmitting: h
947
- } = Ht(s);
948
- let d;
949
- e[6] !== c || e[7] !== f || e[8] !== h ? (d = /* @__PURE__ */ u(qt, { isPhone: f, handleSubmit: c, isSubmitting: h }), e[6] = c, e[7] = f, e[8] = h, e[9] = d) : d = e[9];
950
- let m;
951
- return e[10] !== a || e[11] !== d ? (m = /* @__PURE__ */ u(we, { ...a, children: d }), e[10] = a, e[11] = d, e[12] = m) : m = e[12], m;
1090
+ } = Zt(s);
1091
+ let u;
1092
+ e[6] !== c || e[7] !== m || e[8] !== h ? (u = /* @__PURE__ */ d(Qt, { isPhone: m, handleSubmit: c, isSubmitting: h }), e[6] = c, e[7] = m, e[8] = h, e[9] = u) : u = e[9];
1093
+ let f;
1094
+ return e[10] !== a || e[11] !== u ? (f = /* @__PURE__ */ d(we, { ...a, children: u }), e[10] = a, e[11] = u, e[12] = f) : f = e[12], f;
952
1095
  }
953
- const Yt = {
1096
+ const tn = {
954
1097
  phone: "Enter Phone Number",
955
1098
  email: "Enter Email Address"
956
- }, Jt = {
1099
+ }, nn = {
957
1100
  phone: "We will send you 6 digit OTP on the given Phone Number.",
958
1101
  email: "We will send you 6 digit OTP on the given Email Address."
959
1102
  };
960
- function Rn(n) {
1103
+ function Wn(n) {
961
1104
  const e = E.c(27), {
962
1105
  mode: t,
963
1106
  title: l,
@@ -967,46 +1110,46 @@ function Rn(n) {
967
1110
  submitApi: s,
968
1111
  onSuccess: a,
969
1112
  onError: c,
970
- layoutType: f,
1113
+ layoutType: m,
971
1114
  variant: h
972
- } = n, d = f === void 0 ? "withSlider" : f, m = h === void 0 ? "desktop" : h, p = l ?? Yt[t], b = i ?? Jt[t];
1115
+ } = n, u = m === void 0 ? "withSlider" : m, f = h === void 0 ? "desktop" : h, p = l ?? tn[t], b = i ?? nn[t];
973
1116
  let g;
974
- e[0] !== o ? (g = o != null ? /* @__PURE__ */ u(ye, { onClick: o }) : void 0, e[0] = o, e[1] = g) : g = e[1];
1117
+ e[0] !== o ? (g = o != null ? /* @__PURE__ */ d(xe, { onClick: o }) : void 0, e[0] = o, e[1] = g) : g = e[1];
975
1118
  let y;
976
- e[2] !== p ? (y = /* @__PURE__ */ u(O, { variant: "h5", weight: "extraBold", align: "left", className: "-mb-1.5", children: p }), e[2] = p, e[3] = y) : y = e[3];
1119
+ e[2] !== p ? (y = /* @__PURE__ */ d(A, { variant: "h5", weight: "extraBold", align: "left", className: "-mb-1.5", children: p }), e[2] = p, e[3] = y) : y = e[3];
977
1120
  let v;
978
- e[4] !== b ? (v = /* @__PURE__ */ u(O, { variant: "body1", align: "left", className: "mb-4 md:mb-4", children: b }), e[4] = b, e[5] = v) : v = e[5];
1121
+ e[4] !== b ? (v = /* @__PURE__ */ d(A, { variant: "body1", align: "left", className: "mb-4 md:mb-4", children: b }), e[4] = b, e[5] = v) : v = e[5];
979
1122
  let C;
980
1123
  e[6] !== r ? (C = r && {
981
1124
  onSubmit: r
982
1125
  }, e[6] = r, e[7] = C) : C = e[7];
983
- let w;
984
- e[8] !== s ? (w = s && {
985
- submitApi: s
986
- }, e[8] = s, e[9] = w) : w = e[9];
987
1126
  let S;
988
- e[10] !== a ? (S = a && {
1127
+ e[8] !== s ? (S = s && {
1128
+ submitApi: s
1129
+ }, e[8] = s, e[9] = S) : S = e[9];
1130
+ let w;
1131
+ e[10] !== a ? (w = a && {
989
1132
  onSuccess: a
990
- }, e[10] = a, e[11] = S) : S = e[11];
1133
+ }, e[10] = a, e[11] = w) : w = e[11];
991
1134
  let x;
992
1135
  e[12] !== c ? (x = c && {
993
1136
  onError: c
994
1137
  }, e[12] = c, e[13] = x) : x = e[13];
995
- let _;
996
- e[14] !== t || e[15] !== C || e[16] !== w || e[17] !== S || e[18] !== x ? (_ = /* @__PURE__ */ u(Kt, { mode: t, ...C, ...w, ...S, ...x }), e[14] = t, e[15] = C, e[16] = w, e[17] = S, e[18] = x, e[19] = _) : _ = e[19];
1138
+ let P;
1139
+ e[14] !== t || e[15] !== C || e[16] !== S || e[17] !== w || e[18] !== x ? (P = /* @__PURE__ */ d(en, { mode: t, ...C, ...S, ...w, ...x }), e[14] = t, e[15] = C, e[16] = S, e[17] = w, e[18] = x, e[19] = P) : P = e[19];
997
1140
  let N;
998
- return e[20] !== d || e[21] !== g || e[22] !== y || e[23] !== v || e[24] !== _ || e[25] !== m ? (N = /* @__PURE__ */ u(ie, { layoutType: d, variant: m, contentWidth: "sm", align: "left", backButton: g, title: y, description: v, className: Ne, children: _ }), e[20] = d, e[21] = g, e[22] = y, e[23] = v, e[24] = _, e[25] = m, e[26] = N) : N = e[26], N;
1141
+ return e[20] !== u || e[21] !== g || e[22] !== y || e[23] !== v || e[24] !== P || e[25] !== f ? (N = /* @__PURE__ */ d(se, { layoutType: u, variant: f, contentWidth: "sm", align: "left", backButton: g, title: y, description: v, className: Pe, children: P }), e[20] = u, e[21] = g, e[22] = y, e[23] = v, e[24] = P, e[25] = f, e[26] = N) : N = e[26], N;
999
1142
  }
1000
- var Xe = {
1143
+ var et = {
1001
1144
  color: void 0,
1002
1145
  size: void 0,
1003
1146
  className: void 0,
1004
1147
  style: void 0,
1005
1148
  attr: void 0
1006
- }, Be = K.createContext && /* @__PURE__ */ K.createContext(Xe), Xt = ["attr", "size", "title"];
1007
- function Zt(n, e) {
1149
+ }, Ve = K.createContext && /* @__PURE__ */ K.createContext(et), ln = ["attr", "size", "title"];
1150
+ function on(n, e) {
1008
1151
  if (n == null) return {};
1009
- var t = Qt(n, e), l, i;
1152
+ var t = rn(n, e), l, i;
1010
1153
  if (Object.getOwnPropertySymbols) {
1011
1154
  var o = Object.getOwnPropertySymbols(n);
1012
1155
  for (i = 0; i < o.length; i++)
@@ -1014,7 +1157,7 @@ function Zt(n, e) {
1014
1157
  }
1015
1158
  return t;
1016
1159
  }
1017
- function Qt(n, e) {
1160
+ function rn(n, e) {
1018
1161
  if (n == null) return {};
1019
1162
  var t = {};
1020
1163
  for (var l in n)
@@ -1024,17 +1167,17 @@ function Qt(n, e) {
1024
1167
  }
1025
1168
  return t;
1026
1169
  }
1027
- function ge() {
1028
- return ge = Object.assign ? Object.assign.bind() : function(n) {
1170
+ function be() {
1171
+ return be = Object.assign ? Object.assign.bind() : function(n) {
1029
1172
  for (var e = 1; e < arguments.length; e++) {
1030
1173
  var t = arguments[e];
1031
1174
  for (var l in t)
1032
1175
  Object.prototype.hasOwnProperty.call(t, l) && (n[l] = t[l]);
1033
1176
  }
1034
1177
  return n;
1035
- }, ge.apply(this, arguments);
1178
+ }, be.apply(this, arguments);
1036
1179
  }
1037
- function je(n, e) {
1180
+ function Ge(n, e) {
1038
1181
  var t = Object.keys(n);
1039
1182
  if (Object.getOwnPropertySymbols) {
1040
1183
  var l = Object.getOwnPropertySymbols(n);
@@ -1044,25 +1187,25 @@ function je(n, e) {
1044
1187
  }
1045
1188
  return t;
1046
1189
  }
1047
- function pe(n) {
1190
+ function ye(n) {
1048
1191
  for (var e = 1; e < arguments.length; e++) {
1049
1192
  var t = arguments[e] != null ? arguments[e] : {};
1050
- e % 2 ? je(Object(t), !0).forEach(function(l) {
1051
- en(n, l, t[l]);
1052
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(t)) : je(Object(t)).forEach(function(l) {
1193
+ e % 2 ? Ge(Object(t), !0).forEach(function(l) {
1194
+ sn(n, l, t[l]);
1195
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(t)) : Ge(Object(t)).forEach(function(l) {
1053
1196
  Object.defineProperty(n, l, Object.getOwnPropertyDescriptor(t, l));
1054
1197
  });
1055
1198
  }
1056
1199
  return n;
1057
1200
  }
1058
- function en(n, e, t) {
1059
- return e = tn(e), e in n ? Object.defineProperty(n, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : n[e] = t, n;
1201
+ function sn(n, e, t) {
1202
+ return e = an(e), e in n ? Object.defineProperty(n, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : n[e] = t, n;
1060
1203
  }
1061
- function tn(n) {
1062
- var e = nn(n, "string");
1204
+ function an(n) {
1205
+ var e = cn(n, "string");
1063
1206
  return typeof e == "symbol" ? e : e + "";
1064
1207
  }
1065
- function nn(n, e) {
1208
+ function cn(n, e) {
1066
1209
  if (typeof n != "object" || !n) return n;
1067
1210
  var t = n[Symbol.toPrimitive];
1068
1211
  if (t !== void 0) {
@@ -1072,30 +1215,30 @@ function nn(n, e) {
1072
1215
  }
1073
1216
  return (e === "string" ? String : Number)(n);
1074
1217
  }
1075
- function Ze(n) {
1076
- return n && n.map((e, t) => /* @__PURE__ */ K.createElement(e.tag, pe({
1218
+ function tt(n) {
1219
+ return n && n.map((e, t) => /* @__PURE__ */ K.createElement(e.tag, ye({
1077
1220
  key: t
1078
- }, e.attr), Ze(e.child)));
1221
+ }, e.attr), tt(e.child)));
1079
1222
  }
1080
- function Qe(n) {
1081
- return (e) => /* @__PURE__ */ K.createElement(ln, ge({
1082
- attr: pe({}, n.attr)
1083
- }, e), Ze(n.child));
1223
+ function nt(n) {
1224
+ return (e) => /* @__PURE__ */ K.createElement(un, be({
1225
+ attr: ye({}, n.attr)
1226
+ }, e), tt(n.child));
1084
1227
  }
1085
- function ln(n) {
1228
+ function un(n) {
1086
1229
  var e = (t) => {
1087
1230
  var {
1088
1231
  attr: l,
1089
1232
  size: i,
1090
1233
  title: o
1091
- } = n, r = Zt(n, Xt), s = i || t.size || "1em", a;
1092
- return t.className && (a = t.className), n.className && (a = (a ? a + " " : "") + n.className), /* @__PURE__ */ K.createElement("svg", ge({
1234
+ } = n, r = on(n, ln), s = i || t.size || "1em", a;
1235
+ return t.className && (a = t.className), n.className && (a = (a ? a + " " : "") + n.className), /* @__PURE__ */ K.createElement("svg", be({
1093
1236
  stroke: "currentColor",
1094
1237
  fill: "currentColor",
1095
1238
  strokeWidth: "0"
1096
1239
  }, t.attr, l, r, {
1097
1240
  className: a,
1098
- style: pe(pe({
1241
+ style: ye(ye({
1099
1242
  color: n.color || t.color
1100
1243
  }, t.style), n.style),
1101
1244
  height: s,
@@ -1103,26 +1246,26 @@ function ln(n) {
1103
1246
  xmlns: "http://www.w3.org/2000/svg"
1104
1247
  }), o && /* @__PURE__ */ K.createElement("title", null, o), n.children);
1105
1248
  };
1106
- return Be !== void 0 ? /* @__PURE__ */ K.createElement(Be.Consumer, null, (t) => e(t)) : e(Xe);
1249
+ return Ve !== void 0 ? /* @__PURE__ */ K.createElement(Ve.Consumer, null, (t) => e(t)) : e(et);
1107
1250
  }
1108
- function on(n) {
1109
- return Qe({ attr: { viewBox: "0 0 384 512" }, child: [{ tag: "path", attr: { d: "M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z" }, child: [] }] })(n);
1251
+ function dn(n) {
1252
+ return nt({ attr: { viewBox: "0 0 384 512" }, child: [{ tag: "path", attr: { d: "M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z" }, child: [] }] })(n);
1110
1253
  }
1111
- function rn(n) {
1112
- return Qe({ attr: { version: "1.1", x: "0px", y: "0px", viewBox: "0 0 48 48", enableBackground: "new 0 0 48 48" }, child: [{ tag: "path", attr: { fill: "#FFC107", d: `M43.611,20.083H42V20H24v8h11.303c-1.649,4.657-6.08,8-11.303,8c-6.627,0-12-5.373-12-12\r
1254
+ function mn(n) {
1255
+ return nt({ attr: { version: "1.1", x: "0px", y: "0px", viewBox: "0 0 48 48", enableBackground: "new 0 0 48 48" }, child: [{ tag: "path", attr: { fill: "#FFC107", d: `M43.611,20.083H42V20H24v8h11.303c-1.649,4.657-6.08,8-11.303,8c-6.627,0-12-5.373-12-12\r
1113
1256
  c0-6.627,5.373-12,12-12c3.059,0,5.842,1.154,7.961,3.039l5.657-5.657C34.046,6.053,29.268,4,24,4C12.955,4,4,12.955,4,24\r
1114
1257
  c0,11.045,8.955,20,20,20c11.045,0,20-8.955,20-20C44,22.659,43.862,21.35,43.611,20.083z` }, child: [] }, { tag: "path", attr: { fill: "#FF3D00", d: `M6.306,14.691l6.571,4.819C14.655,15.108,18.961,12,24,12c3.059,0,5.842,1.154,7.961,3.039l5.657-5.657\r
1115
1258
  C34.046,6.053,29.268,4,24,4C16.318,4,9.656,8.337,6.306,14.691z` }, child: [] }, { tag: "path", attr: { fill: "#4CAF50", d: `M24,44c5.166,0,9.86-1.977,13.409-5.192l-6.19-5.238C29.211,35.091,26.715,36,24,36\r
1116
1259
  c-5.202,0-9.619-3.317-11.283-7.946l-6.522,5.025C9.505,39.556,16.227,44,24,44z` }, child: [] }, { tag: "path", attr: { fill: "#1976D2", d: `M43.611,20.083H42V20H24v8h11.303c-0.792,2.237-2.231,4.166-4.087,5.571\r
1117
1260
  c0.001-0.001,0.002-0.001,0.003-0.002l6.19,5.238C36.971,39.205,44,34,44,24C44,22.659,43.862,21.35,43.611,20.083z` }, child: [] }] })(n);
1118
1261
  }
1119
- function et(n) {
1262
+ function lt(n) {
1120
1263
  const e = E.c(23);
1121
1264
  let t;
1122
1265
  e[0] !== n ? (t = n === void 0 ? {} : n, e[0] = n, e[1] = t) : t = e[1];
1123
- const l = t, i = cn, o = l.providers?.google?.clientId ?? "";
1266
+ const l = t, i = gn, o = l.providers?.google?.clientId ?? "";
1124
1267
  let r;
1125
- e[2] !== l.providers?.google?.onCredential ? (r = l.providers?.google?.onCredential ?? an, e[2] = l.providers?.google?.onCredential, e[3] = r) : r = e[3];
1268
+ e[2] !== l.providers?.google?.onCredential ? (r = l.providers?.google?.onCredential ?? hn, e[2] = l.providers?.google?.onCredential, e[3] = r) : r = e[3];
1126
1269
  const s = l.providers?.google?.enableOneTap ?? !1;
1127
1270
  let a;
1128
1271
  e[4] !== o || e[5] !== r || e[6] !== s ? (a = {
@@ -1132,18 +1275,18 @@ function et(n) {
1132
1275
  }, e[4] = o, e[5] = r, e[6] = s, e[7] = a) : a = e[7];
1133
1276
  const {
1134
1277
  loginWithGoogle: c
1135
- } = Lt(a), f = l.providers?.apple?.clientId ?? "", h = l.providers?.apple?.redirectUri ?? "";
1136
- let d;
1137
- e[8] !== l.providers?.apple?.onCredential ? (d = l.providers?.apple?.onCredential ?? sn, e[8] = l.providers?.apple?.onCredential, e[9] = d) : d = e[9];
1138
- let m;
1139
- e[10] !== f || e[11] !== h || e[12] !== d ? (m = {
1140
- clientId: f,
1278
+ } = kt(a), m = l.providers?.apple?.clientId ?? "", h = l.providers?.apple?.redirectUri ?? "";
1279
+ let u;
1280
+ e[8] !== l.providers?.apple?.onCredential ? (u = l.providers?.apple?.onCredential ?? fn, e[8] = l.providers?.apple?.onCredential, e[9] = u) : u = e[9];
1281
+ let f;
1282
+ e[10] !== m || e[11] !== h || e[12] !== u ? (f = {
1283
+ clientId: m,
1141
1284
  redirectUri: h,
1142
- onCredential: d
1143
- }, e[10] = f, e[11] = h, e[12] = d, e[13] = m) : m = e[13];
1285
+ onCredential: u
1286
+ }, e[10] = m, e[11] = h, e[12] = u, e[13] = f) : f = e[13];
1144
1287
  const {
1145
1288
  triggerSignIn: p
1146
- } = Ot(), b = l.onContinueWithMobile ?? i, g = l.onContinueWithEmail ?? i;
1289
+ } = Lt(), b = l.onContinueWithMobile ?? i, g = l.onContinueWithEmail ?? i;
1147
1290
  let y;
1148
1291
  e[14] !== c || e[15] !== l.onContinueWithGoogle || e[16] !== l.providers?.google?.clientId ? (y = l.onContinueWithGoogle ?? (l.providers?.google?.clientId ? () => {
1149
1292
  c();
@@ -1157,20 +1300,20 @@ function et(n) {
1157
1300
  onContinueWithApple: v
1158
1301
  }, e[18] = b, e[19] = g, e[20] = y, e[21] = v, e[22] = C) : C = e[22], C;
1159
1302
  }
1160
- function sn() {
1303
+ function fn() {
1161
1304
  }
1162
- function an() {
1305
+ function hn() {
1163
1306
  }
1164
- function cn() {
1307
+ function gn() {
1165
1308
  }
1166
- const un = {
1309
+ const pn = {
1167
1310
  phone: "Kindly check your Mobile.",
1168
1311
  email: "Kindly check your Email Inbox."
1169
- }, dn = {
1312
+ }, bn = {
1170
1313
  phone: "6 digit OTP has been sent to your Mobile",
1171
1314
  email: "6 digit OTP has been sent to your Email"
1172
1315
  };
1173
- function fn(n) {
1316
+ function yn(n) {
1174
1317
  const e = E.c(30), {
1175
1318
  mode: t,
1176
1319
  onSubmit: l,
@@ -1179,14 +1322,14 @@ function fn(n) {
1179
1322
  onSuccess: r,
1180
1323
  onError: s,
1181
1324
  validate: a
1182
- } = n, [c, f] = Y(!1);
1325
+ } = n, [c, m] = Y(!1);
1183
1326
  let h;
1184
- e[0] !== t ? (h = Gt(t), e[0] = t, e[1] = h) : h = e[1];
1185
- const d = h, [m, p] = Y(d), b = m <= 0;
1327
+ e[0] !== t ? (h = Xt(t), e[0] = t, e[1] = h) : h = e[1];
1328
+ const u = h, [f, p] = Y(u), b = f <= 0;
1186
1329
  let g;
1187
1330
  e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = Array.from({
1188
- length: he
1189
- }, gn), e[2] = g) : g = e[2];
1331
+ length: pe
1332
+ }, wn), e[2] = g) : g = e[2];
1190
1333
  const y = g;
1191
1334
  let v;
1192
1335
  e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = {
@@ -1195,20 +1338,20 @@ function fn(n) {
1195
1338
  },
1196
1339
  mode: "onChange"
1197
1340
  }, e[3] = v) : v = e[3];
1198
- const C = xe(v);
1199
- let w, S;
1200
- e[4] !== m ? (w = () => {
1201
- if (m <= 0)
1341
+ const C = Ce(v);
1342
+ let S, w;
1343
+ e[4] !== f ? (S = () => {
1344
+ if (f <= 0)
1202
1345
  return;
1203
1346
  const V = setInterval(() => {
1204
- p(hn);
1347
+ p(Cn);
1205
1348
  }, 1e3);
1206
1349
  return () => clearInterval(V);
1207
- }, S = [m], e[4] = m, e[5] = w, e[6] = S) : (w = e[5], S = e[6]), J(w, S);
1350
+ }, w = [f], e[4] = f, e[5] = S, e[6] = w) : (S = e[5], w = e[6]), J(S, w);
1208
1351
  let x;
1209
1352
  e[7] !== C || e[8] !== s || e[9] !== l || e[10] !== r || e[11] !== o || e[12] !== a ? (x = async (V) => {
1210
1353
  C.clearErrors("otp");
1211
- const G = Ye.safeParse(V);
1354
+ const G = Ze.safeParse(V);
1212
1355
  if (!G.success) {
1213
1356
  const $ = G.error.issues[0]?.message ?? "Invalid OTP";
1214
1357
  C.setError("otp", {
@@ -1218,24 +1361,24 @@ function fn(n) {
1218
1361
  }
1219
1362
  const H = G.data.otp.join("");
1220
1363
  if (a) {
1221
- f(!0);
1364
+ m(!0);
1222
1365
  try {
1223
1366
  const $ = await a(H);
1224
1367
  if ($ !== !0) {
1225
1368
  C.setError("otp", {
1226
1369
  type: "validate",
1227
1370
  message: $
1228
- }), f(!1);
1371
+ }), m(!1);
1229
1372
  return;
1230
1373
  }
1231
1374
  } catch ($) {
1232
- s?.($), f(!1);
1375
+ s?.($), m(!1);
1233
1376
  return;
1234
1377
  }
1235
- o || f(!1);
1378
+ o || m(!1);
1236
1379
  }
1237
1380
  if (o) {
1238
- f(!0), o(H).then(() => {
1381
+ m(!0), o(H).then(() => {
1239
1382
  r?.();
1240
1383
  }).catch(($) => {
1241
1384
  const z = $?.message;
@@ -1244,47 +1387,47 @@ function fn(n) {
1244
1387
  message: typeof z == "string" && z.length > 0 ? z : "OTP verification failed"
1245
1388
  }), s?.($);
1246
1389
  }).finally(() => {
1247
- f(!1);
1390
+ m(!1);
1248
1391
  });
1249
1392
  return;
1250
1393
  }
1251
1394
  l?.(H);
1252
1395
  }, e[7] = C, e[8] = s, e[9] = l, e[10] = r, e[11] = o, e[12] = a, e[13] = x) : x = e[13];
1253
- const _ = x;
1396
+ const P = x;
1254
1397
  let N;
1255
- e[14] !== b || e[15] !== d || e[16] !== i ? (N = () => {
1256
- b && (i?.(), p(d));
1257
- }, e[14] = b, e[15] = d, e[16] = i, e[17] = N) : N = e[17];
1258
- const P = N, T = mn, D = Math.floor(m / 60), W = m % 60, A = String(D);
1259
- let I;
1260
- e[18] !== A ? (I = A.padStart(2, "0"), e[18] = A, e[19] = I) : I = e[19];
1398
+ e[14] !== b || e[15] !== u || e[16] !== i ? (N = () => {
1399
+ b && (i?.(), p(u));
1400
+ }, e[14] = b, e[15] = u, e[16] = i, e[17] = N) : N = e[17];
1401
+ const _ = N, T = vn, D = Math.floor(f / 60), W = f % 60, O = String(D);
1402
+ let L;
1403
+ e[18] !== O ? (L = O.padStart(2, "0"), e[18] = O, e[19] = L) : L = e[19];
1261
1404
  const F = String(W);
1262
- let M;
1263
- e[20] !== F ? (M = F.padStart(2, "0"), e[20] = F, e[21] = M) : M = e[21];
1264
- const L = `Resend code in: ${I}:${M}`;
1265
1405
  let U;
1266
- return e[22] !== b || e[23] !== P || e[24] !== _ || e[25] !== c || e[26] !== C || e[27] !== m || e[28] !== L ? (U = {
1406
+ e[20] !== F ? (U = F.padStart(2, "0"), e[20] = F, e[21] = U) : U = e[21];
1407
+ const R = `Resend code in: ${L}:${U}`;
1408
+ let B;
1409
+ return e[22] !== b || e[23] !== _ || e[24] !== P || e[25] !== c || e[26] !== C || e[27] !== f || e[28] !== R ? (B = {
1267
1410
  methods: C,
1268
- handleSubmit: _,
1411
+ handleSubmit: P,
1269
1412
  isFormValid: T,
1270
- handleResend: P,
1271
- resendSecondsLeft: m,
1413
+ handleResend: _,
1414
+ resendSecondsLeft: f,
1272
1415
  canResend: b,
1273
- timerText: L,
1416
+ timerText: R,
1274
1417
  isSubmitting: c
1275
- }, e[22] = b, e[23] = P, e[24] = _, e[25] = c, e[26] = C, e[27] = m, e[28] = L, e[29] = U) : U = e[29], U;
1418
+ }, e[22] = b, e[23] = _, e[24] = P, e[25] = c, e[26] = C, e[27] = f, e[28] = R, e[29] = B) : B = e[29], B;
1276
1419
  }
1277
- function mn(n) {
1278
- return Ye.safeParse(n).success;
1420
+ function vn(n) {
1421
+ return Ze.safeParse(n).success;
1279
1422
  }
1280
- function hn(n) {
1423
+ function Cn(n) {
1281
1424
  return n <= 1 ? 0 : n - 1;
1282
1425
  }
1283
- function gn() {
1426
+ function wn() {
1284
1427
  return "";
1285
1428
  }
1286
- const pn = "Mobile";
1287
- function bn(n) {
1429
+ const xn = "Mobile";
1430
+ function Sn(n) {
1288
1431
  const e = E.c(11);
1289
1432
  let t;
1290
1433
  e[0] !== n ? (t = n === void 0 ? {} : n, e[0] = n, e[1] = t) : t = e[1];
@@ -1293,31 +1436,31 @@ function bn(n) {
1293
1436
  onContinueWithLastMethod: s,
1294
1437
  continueApi: a,
1295
1438
  onSuccess: c,
1296
- onError: f
1297
- } = l, h = r === void 0 ? pn : r;
1298
- let d;
1299
- e[2] !== a || e[3] !== s || e[4] !== f || e[5] !== c ? (d = () => {
1439
+ onError: m
1440
+ } = l, h = r === void 0 ? xn : r;
1441
+ let u;
1442
+ e[2] !== a || e[3] !== s || e[4] !== m || e[5] !== c ? (u = () => {
1300
1443
  if (a) {
1301
1444
  o(!0), a().then(() => {
1302
1445
  c?.();
1303
1446
  }).catch((b) => {
1304
- f?.(b);
1447
+ m?.(b);
1305
1448
  }).finally(() => {
1306
1449
  o(!1);
1307
1450
  });
1308
1451
  return;
1309
1452
  }
1310
1453
  s?.();
1311
- }, e[2] = a, e[3] = s, e[4] = f, e[5] = c, e[6] = d) : d = e[6];
1312
- const m = d;
1454
+ }, e[2] = a, e[3] = s, e[4] = m, e[5] = c, e[6] = u) : u = e[6];
1455
+ const f = u;
1313
1456
  let p;
1314
- return e[7] !== m || e[8] !== i || e[9] !== h ? (p = {
1315
- handleContinue: m,
1457
+ return e[7] !== f || e[8] !== i || e[9] !== h ? (p = {
1458
+ handleContinue: f,
1316
1459
  isSubmitting: i,
1317
1460
  lastUsedMethod: h
1318
- }, e[7] = m, e[8] = i, e[9] = h, e[10] = p) : p = e[10], p;
1461
+ }, e[7] = f, e[8] = i, e[9] = h, e[10] = p) : p = e[10], p;
1319
1462
  }
1320
- function yn(n) {
1463
+ function Nn(n) {
1321
1464
  const e = E.c(22), {
1322
1465
  mode: t,
1323
1466
  defaultPhone: l,
@@ -1325,9 +1468,9 @@ function yn(n) {
1325
1468
  submitApi: o,
1326
1469
  onSuccess: r,
1327
1470
  onError: s
1328
- } = n, a = l === void 0 ? "" : l, [c, f] = Y(!1), h = t === "phone", d = t === "foreign";
1329
- let m;
1330
- e[0] !== a || e[1] !== d || e[2] !== h ? (m = d ? {
1471
+ } = n, a = l === void 0 ? "" : l, [c, m] = Y(!1), h = t === "phone", u = t === "foreign";
1472
+ let f;
1473
+ e[0] !== a || e[1] !== u || e[2] !== h ? (f = u ? {
1331
1474
  fullName: "",
1332
1475
  email: "",
1333
1476
  phone: a,
@@ -1339,23 +1482,23 @@ function yn(n) {
1339
1482
  } : {
1340
1483
  fullName: "",
1341
1484
  email: ""
1342
- }, e[0] = a, e[1] = d, e[2] = h, e[3] = m) : m = e[3];
1343
- const p = m;
1485
+ }, e[0] = a, e[1] = u, e[2] = h, e[3] = f) : f = e[3];
1486
+ const p = f;
1344
1487
  let b;
1345
1488
  e[4] !== p ? (b = {
1346
1489
  defaultValues: p,
1347
1490
  mode: "onChange"
1348
1491
  }, e[4] = p, e[5] = b) : b = e[5];
1349
- const g = xe(b);
1350
- Je(`signup:${t}`, g);
1492
+ const g = Ce(b);
1493
+ Qe(`signup:${t}`, g);
1351
1494
  let y;
1352
1495
  e[6] !== g || e[7] !== t || e[8] !== s || e[9] !== i || e[10] !== r || e[11] !== o ? (y = (x) => {
1353
- const N = Me[t].safeParse(x);
1496
+ const N = je[t].safeParse(x);
1354
1497
  if (!N.success) {
1355
- Ke(N.error, (T, D) => g.setError(T, D));
1498
+ Xe(N.error, (T, D) => g.setError(T, D));
1356
1499
  return;
1357
1500
  }
1358
- const P = {
1501
+ const _ = {
1359
1502
  fullName: N.data.fullName,
1360
1503
  ..."phone" in N.data && N.data.phone && {
1361
1504
  phone: N.data.phone
@@ -1368,32 +1511,32 @@ function yn(n) {
1368
1511
  }
1369
1512
  };
1370
1513
  if (o) {
1371
- f(!0), o(P).then(() => {
1514
+ m(!0), o(_).then(() => {
1372
1515
  r?.();
1373
1516
  }).catch((T) => {
1374
1517
  s?.(T);
1375
1518
  }).finally(() => {
1376
- f(!1);
1519
+ m(!1);
1377
1520
  });
1378
1521
  return;
1379
1522
  }
1380
- i?.(P);
1523
+ i?.(_);
1381
1524
  }, e[6] = g, e[7] = t, e[8] = s, e[9] = i, e[10] = r, e[11] = o, e[12] = y) : y = e[12];
1382
1525
  const v = y;
1383
1526
  let C;
1384
- e[13] !== t ? (C = (x) => Me[t].safeParse(x).success, e[13] = t, e[14] = C) : C = e[14];
1385
- const w = C;
1386
- let S;
1387
- return e[15] !== v || e[16] !== d || e[17] !== w || e[18] !== h || e[19] !== c || e[20] !== g ? (S = {
1527
+ e[13] !== t ? (C = (x) => je[t].safeParse(x).success, e[13] = t, e[14] = C) : C = e[14];
1528
+ const S = C;
1529
+ let w;
1530
+ return e[15] !== v || e[16] !== u || e[17] !== S || e[18] !== h || e[19] !== c || e[20] !== g ? (w = {
1388
1531
  methods: g,
1389
1532
  handleSubmit: v,
1390
1533
  isPhone: h,
1391
- isForeign: d,
1392
- isFormValid: w,
1534
+ isForeign: u,
1535
+ isFormValid: S,
1393
1536
  isSubmitting: c
1394
- }, e[15] = v, e[16] = d, e[17] = w, e[18] = h, e[19] = c, e[20] = g, e[21] = S) : S = e[21], S;
1537
+ }, e[15] = v, e[16] = u, e[17] = S, e[18] = h, e[19] = c, e[20] = g, e[21] = w) : w = e[21], w;
1395
1538
  }
1396
- const tt = (n) => {
1539
+ const it = (n) => {
1397
1540
  const e = E.c(19), {
1398
1541
  handlers: t
1399
1542
  } = n, {
@@ -1403,46 +1546,46 @@ const tt = (n) => {
1403
1546
  onContinueWithApple: r
1404
1547
  } = t;
1405
1548
  let s;
1406
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ u(ue, { children: "Continue with Mobile" }), e[0] = s) : s = e[0];
1549
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ d(he, { children: "Continue with Mobile" }), e[0] = s) : s = e[0];
1407
1550
  let a;
1408
- e[1] !== l ? (a = /* @__PURE__ */ u(B, { variant: "outline", size: "large", fullWidth: !0, onClick: l, children: s }), e[1] = l, e[2] = a) : a = e[2];
1551
+ e[1] !== l ? (a = /* @__PURE__ */ d(M, { variant: "outline", size: "large", fullWidth: !0, onClick: l, children: s }), e[1] = l, e[2] = a) : a = e[2];
1409
1552
  let c;
1410
- e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ u(ue, { children: "Continue with Email" }), e[3] = c) : c = e[3];
1411
- let f;
1412
- e[4] !== i ? (f = /* @__PURE__ */ u(B, { variant: "outline", size: "large", fullWidth: !0, onClick: i, children: c }), e[4] = i, e[5] = f) : f = e[5];
1413
- let h;
1414
- e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ u(rn, { "aria-hidden": !0 }), e[6] = h) : h = e[6];
1415
- let d;
1416
- e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ u(ue, { children: "Continue with Google" }), e[7] = d) : d = e[7];
1553
+ e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ d(he, { children: "Continue with Email" }), e[3] = c) : c = e[3];
1417
1554
  let m;
1418
- e[8] !== o ? (m = /* @__PURE__ */ u(B, { variant: "outline", size: "large", fullWidth: !0, icon: h, iconPosition: "left", onClick: o, children: d }), e[8] = o, e[9] = m) : m = e[9];
1555
+ e[4] !== i ? (m = /* @__PURE__ */ d(M, { variant: "outline", size: "large", fullWidth: !0, onClick: i, children: c }), e[4] = i, e[5] = m) : m = e[5];
1556
+ let h;
1557
+ e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ d(mn, { "aria-hidden": !0 }), e[6] = h) : h = e[6];
1558
+ let u;
1559
+ e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ d(he, { children: "Continue with Google" }), e[7] = u) : u = e[7];
1560
+ let f;
1561
+ e[8] !== o ? (f = /* @__PURE__ */ d(M, { variant: "outline", size: "large", fullWidth: !0, icon: h, iconPosition: "left", onClick: o, children: u }), e[8] = o, e[9] = f) : f = e[9];
1419
1562
  let p;
1420
- e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ u(on, { "aria-hidden": !0 }), e[10] = p) : p = e[10];
1563
+ e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ d(dn, { "aria-hidden": !0 }), e[10] = p) : p = e[10];
1421
1564
  let b;
1422
- e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ u(ue, { children: "Continue with Apple" }), e[11] = b) : b = e[11];
1565
+ e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ d(he, { children: "Continue with Apple" }), e[11] = b) : b = e[11];
1423
1566
  let g;
1424
- e[12] !== r ? (g = /* @__PURE__ */ u(B, { variant: "outline", size: "large", fullWidth: !0, icon: p, iconPosition: "left", onClick: r, children: b }), e[12] = r, e[13] = g) : g = e[13];
1567
+ e[12] !== r ? (g = /* @__PURE__ */ d(M, { variant: "outline", size: "large", fullWidth: !0, icon: p, iconPosition: "left", onClick: r, children: b }), e[12] = r, e[13] = g) : g = e[13];
1425
1568
  let y;
1426
- return e[14] !== g || e[15] !== a || e[16] !== f || e[17] !== m ? (y = /* @__PURE__ */ R("div", { className: "w-full flex flex-col gap-2", children: [
1569
+ return e[14] !== g || e[15] !== a || e[16] !== m || e[17] !== f ? (y = /* @__PURE__ */ I("div", { className: "w-full flex flex-col gap-2", children: [
1427
1570
  a,
1428
- f,
1429
1571
  m,
1572
+ f,
1430
1573
  g
1431
- ] }), e[14] = g, e[15] = a, e[16] = f, e[17] = m, e[18] = y) : y = e[18], y;
1432
- }, ue = (n) => {
1574
+ ] }), e[14] = g, e[15] = a, e[16] = m, e[17] = f, e[18] = y) : y = e[18], y;
1575
+ }, he = (n) => {
1433
1576
  const e = E.c(2), {
1434
1577
  children: t
1435
1578
  } = n;
1436
1579
  let l;
1437
- return e[0] !== t ? (l = /* @__PURE__ */ u(O, { variant: "textLabel1", weight: "semiBold", align: "center", className: "opacity-80", children: t }), e[0] = t, e[1] = l) : l = e[1], l;
1580
+ return e[0] !== t ? (l = /* @__PURE__ */ d(A, { variant: "textLabel1", weight: "semiBold", align: "center", className: "opacity-80", children: t }), e[0] = t, e[1] = l) : l = e[1], l;
1438
1581
  };
1439
- function Fn(n) {
1440
- const e = E.c(2), t = et(n);
1582
+ function Un(n) {
1583
+ const e = E.c(2), t = lt(n);
1441
1584
  let l;
1442
- return e[0] !== t ? (l = /* @__PURE__ */ u(tt, { handlers: t }), e[0] = t, e[1] = l) : l = e[1], l;
1585
+ return e[0] !== t ? (l = /* @__PURE__ */ d(it, { handlers: t }), e[0] = t, e[1] = l) : l = e[1], l;
1443
1586
  }
1444
- const kn = (n) => {
1445
- const e = E.c(17), t = et(n);
1587
+ const Bn = (n) => {
1588
+ const e = E.c(17), t = lt(n);
1446
1589
  let l;
1447
1590
  e[0] !== n.onEnterpriseLogin ? (l = n.onEnterpriseLogin != null && {
1448
1591
  onClick: n.onEnterpriseLogin
@@ -1458,15 +1601,15 @@ const kn = (n) => {
1458
1601
  }, e[4] = l, e[5] = i, e[6] = o) : o = e[6];
1459
1602
  const r = o;
1460
1603
  let s;
1461
- e[7] !== r ? (s = /* @__PURE__ */ u(pt, { ...r }), e[7] = r, e[8] = s) : s = e[8];
1462
- let a, c, f;
1463
- e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ u(O, { variant: "title1", weight: "bold", align: "center", className: "max-w-[250px] mx-auto mb-0 md:mb-2", children: "The Healthcare Career App" }), c = /* @__PURE__ */ u(O, { variant: "body1", align: "center", className: "mb-0 md:mb-2", children: "Continue to Signup, If you already have an account we'll log you in." }), f = /* @__PURE__ */ u(Ge, {}), e[9] = a, e[10] = c, e[11] = f) : (a = e[9], c = e[10], f = e[11]);
1604
+ e[7] !== r ? (s = /* @__PURE__ */ d(vt, { ...r }), e[7] = r, e[8] = s) : s = e[8];
1605
+ let a, c, m;
1606
+ e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ d(A, { variant: "title1", weight: "bold", align: "center", className: "max-w-[250px] mx-auto mb-0 md:mb-2", children: "The Healthcare Career App" }), c = /* @__PURE__ */ d(A, { variant: "body1", align: "center", className: "mb-0 md:mb-2", children: "Continue to Signup, If you already have an account we'll log you in." }), m = /* @__PURE__ */ d(Ke, {}), e[9] = a, e[10] = c, e[11] = m) : (a = e[9], c = e[10], m = e[11]);
1464
1607
  let h;
1465
- e[12] !== t ? (h = /* @__PURE__ */ u(tt, { handlers: t }), e[12] = t, e[13] = h) : h = e[13];
1466
- let d;
1467
- return e[14] !== s || e[15] !== h ? (d = /* @__PURE__ */ u(ie, { layoutType: "withSlider", variant: "desktop", header: s, logo: ze, align: "center", title: a, description: c, footer: f, children: h }), e[14] = s, e[15] = h, e[16] = d) : d = e[16], d;
1608
+ e[12] !== t ? (h = /* @__PURE__ */ d(it, { handlers: t }), e[12] = t, e[13] = h) : h = e[13];
1609
+ let u;
1610
+ return e[14] !== s || e[15] !== h ? (u = /* @__PURE__ */ d(se, { layoutType: "withSlider", variant: "desktop", header: s, logo: He, align: "center", title: a, description: c, footer: m, children: h }), e[14] = s, e[15] = h, e[16] = u) : u = e[16], u;
1468
1611
  };
1469
- function vn(n) {
1612
+ function En(n) {
1470
1613
  const e = E.c(10), {
1471
1614
  name: t,
1472
1615
  label: l,
@@ -1475,16 +1618,16 @@ function vn(n) {
1475
1618
  length: r,
1476
1619
  inputClassName: s,
1477
1620
  autoFocus: a
1478
- } = n, c = r === void 0 ? 6 : r, f = le(), h = o || f.control;
1479
- let d;
1480
- e[0] !== a || e[1] !== i || e[2] !== s || e[3] !== l || e[4] !== c ? (d = (p) => {
1621
+ } = n, c = r === void 0 ? 6 : r, m = re(), h = o || m.control;
1622
+ let u;
1623
+ e[0] !== a || e[1] !== i || e[2] !== s || e[3] !== l || e[4] !== c ? (u = (p) => {
1481
1624
  const {
1482
1625
  field: b,
1483
1626
  fieldState: g
1484
1627
  } = p;
1485
- return /* @__PURE__ */ R("div", { children: [
1486
- l && /* @__PURE__ */ u("label", { className: "block mb-1", children: l }),
1487
- /* @__PURE__ */ u(rt, { length: c, value: b.value || [], onChange: b.onChange, ...a !== void 0 && {
1628
+ return /* @__PURE__ */ I("div", { children: [
1629
+ l && /* @__PURE__ */ d("label", { className: "block mb-1", children: l }),
1630
+ /* @__PURE__ */ d(ct, { length: c, value: b.value || [], onChange: b.onChange, ...a !== void 0 && {
1488
1631
  autoFocus: a
1489
1632
  }, ...i && {
1490
1633
  className: i
@@ -1494,11 +1637,11 @@ function vn(n) {
1494
1637
  error: g.error.message
1495
1638
  } })
1496
1639
  ] });
1497
- }, e[0] = a, e[1] = i, e[2] = s, e[3] = l, e[4] = c, e[5] = d) : d = e[5];
1498
- let m;
1499
- return e[6] !== t || e[7] !== h || e[8] !== d ? (m = /* @__PURE__ */ u(me, { name: t, control: h, render: d }), e[6] = t, e[7] = h, e[8] = d, e[9] = m) : m = e[9], m;
1640
+ }, e[0] = a, e[1] = i, e[2] = s, e[3] = l, e[4] = c, e[5] = u) : u = e[5];
1641
+ let f;
1642
+ return e[6] !== t || e[7] !== h || e[8] !== u ? (f = /* @__PURE__ */ d(ge, { name: t, control: h, render: u }), e[6] = t, e[7] = h, e[8] = u, e[9] = f) : f = e[9], f;
1500
1643
  }
1501
- function Cn(n) {
1644
+ function Pn(n) {
1502
1645
  const e = E.c(28), {
1503
1646
  mode: t,
1504
1647
  title: l,
@@ -1508,36 +1651,36 @@ function Cn(n) {
1508
1651
  handleResend: s,
1509
1652
  canResend: a,
1510
1653
  timerText: c,
1511
- isSubmitting: f
1512
- } = n, h = le();
1513
- let d;
1514
- e[0] !== r || e[1] !== h ? (d = h.handleSubmit(r), e[0] = r, e[1] = h, e[2] = d) : d = e[2];
1515
- let m;
1516
- e[3] !== l ? (m = /* @__PURE__ */ u(O, { variant: "h5", weight: "extraBold", align: "left", className: "mb-2 text-neutral-black", children: l }), e[3] = l, e[4] = m) : m = e[4];
1654
+ isSubmitting: m
1655
+ } = n, h = re();
1656
+ let u;
1657
+ e[0] !== r || e[1] !== h ? (u = h.handleSubmit(r), e[0] = r, e[1] = h, e[2] = u) : u = e[2];
1658
+ let f;
1659
+ e[3] !== l ? (f = /* @__PURE__ */ d(A, { variant: "h5", weight: "extraBold", align: "left", className: "mb-2 text-neutral-black", children: l }), e[3] = l, e[4] = f) : f = e[4];
1517
1660
  const p = o ? "mb-2 text-neutral-black" : "mb-6 text-neutral-black";
1518
1661
  let b;
1519
- e[5] !== i || e[6] !== p ? (b = /* @__PURE__ */ u(O, { variant: "title2", align: "left", className: p, children: i }), e[5] = i, e[6] = p, e[7] = b) : b = e[7];
1662
+ e[5] !== i || e[6] !== p ? (b = /* @__PURE__ */ d(A, { variant: "title2", align: "left", className: p, children: i }), e[5] = i, e[6] = p, e[7] = b) : b = e[7];
1520
1663
  let g;
1521
- e[8] !== o || e[9] !== t ? (g = o && /* @__PURE__ */ u(O, { variant: "textLabel1", weight: "semiBold", align: "left", className: "mb-6 text-neutral-black", children: un[t] }), e[8] = o, e[9] = t, e[10] = g) : g = e[10];
1664
+ e[8] !== o || e[9] !== t ? (g = o && /* @__PURE__ */ d(A, { variant: "textLabel1", weight: "semiBold", align: "left", className: "mb-6 text-neutral-black", children: pn[t] }), e[8] = o, e[9] = t, e[10] = g) : g = e[10];
1522
1665
  let y;
1523
- e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = /* @__PURE__ */ u("div", { className: "mb-4 flex w-full flex-col gap-[12px]", children: /* @__PURE__ */ u(vn, { name: "otp", length: he, autoFocus: !0, inputClassName: "!h-[44px] !w-[44px]" }) }), e[11] = y) : y = e[11];
1666
+ e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = /* @__PURE__ */ d("div", { className: "mb-4 flex w-full flex-col gap-[12px]", children: /* @__PURE__ */ d(En, { name: "otp", length: pe, autoFocus: !0, inputClassName: "!h-[44px] !w-[44px]" }) }), e[11] = y) : y = e[11];
1524
1667
  let v;
1525
- e[12] !== a || e[13] !== s || e[14] !== c ? (v = /* @__PURE__ */ u("div", { className: "mb-6 font-medium flex items-center gap-2", children: a ? /* @__PURE__ */ u(B, { type: "button", variant: "outline", size: "small", onClick: s, className: "!h-[28px]", children: "Resend Code" }) : /* @__PURE__ */ u(O, { variant: "textLabel3", align: "left", className: "text-neutral-black", children: c }) }), e[12] = a, e[13] = s, e[14] = c, e[15] = v) : v = e[15];
1668
+ e[12] !== a || e[13] !== s || e[14] !== c ? (v = /* @__PURE__ */ d("div", { className: "mb-6 font-medium flex items-center gap-2", children: a ? /* @__PURE__ */ d(M, { type: "button", variant: "outline", size: "small", onClick: s, className: "!h-[28px]", children: "Resend Code" }) : /* @__PURE__ */ d(A, { variant: "textLabel3", align: "left", className: "text-neutral-black", children: c }) }), e[12] = a, e[13] = s, e[14] = c, e[15] = v) : v = e[15];
1526
1669
  let C;
1527
- e[16] !== f ? (C = f ? /* @__PURE__ */ u(be, { size: 32, strokeWidth: 2 }) : "Submit", e[16] = f, e[17] = C) : C = e[17];
1528
- let w;
1529
- e[18] !== f || e[19] !== C ? (w = /* @__PURE__ */ u(B, { type: "submit", variant: "primary", size: "large", fullWidth: !0, disabled: f, children: C }), e[18] = f, e[19] = C, e[20] = w) : w = e[20];
1670
+ e[16] !== m ? (C = m ? /* @__PURE__ */ d(ve, { size: 32, strokeWidth: 2 }) : "Submit", e[16] = m, e[17] = C) : C = e[17];
1530
1671
  let S;
1531
- return e[21] !== d || e[22] !== m || e[23] !== b || e[24] !== g || e[25] !== v || e[26] !== w ? (S = /* @__PURE__ */ R("form", { onSubmit: d, className: "flex w-full flex-col", noValidate: !0, children: [
1532
- m,
1672
+ e[18] !== m || e[19] !== C ? (S = /* @__PURE__ */ d(M, { type: "submit", variant: "primary", size: "large", fullWidth: !0, disabled: m, children: C }), e[18] = m, e[19] = C, e[20] = S) : S = e[20];
1673
+ let w;
1674
+ return e[21] !== u || e[22] !== f || e[23] !== b || e[24] !== g || e[25] !== v || e[26] !== S ? (w = /* @__PURE__ */ I("form", { onSubmit: u, className: "flex w-full flex-col", noValidate: !0, children: [
1675
+ f,
1533
1676
  b,
1534
1677
  g,
1535
1678
  y,
1536
1679
  v,
1537
- w
1538
- ] }), e[21] = d, e[22] = m, e[23] = b, e[24] = g, e[25] = v, e[26] = w, e[27] = S) : S = e[27], S;
1680
+ S
1681
+ ] }), e[21] = u, e[22] = f, e[23] = b, e[24] = g, e[25] = v, e[26] = S, e[27] = w) : w = e[27], w;
1539
1682
  }
1540
- function Sn(n) {
1683
+ function _n(n) {
1541
1684
  const e = E.c(21), {
1542
1685
  mode: t,
1543
1686
  title: l,
@@ -1547,19 +1690,19 @@ function Sn(n) {
1547
1690
  onResendCode: s,
1548
1691
  submitApi: a,
1549
1692
  onSuccess: c,
1550
- onError: f,
1693
+ onError: m,
1551
1694
  validate: h
1552
- } = n, d = o === void 0 ? !1 : o;
1553
- let m;
1554
- e[0] !== t || e[1] !== f || e[2] !== s || e[3] !== r || e[4] !== c || e[5] !== a || e[6] !== h ? (m = {
1695
+ } = n, u = o === void 0 ? !1 : o;
1696
+ let f;
1697
+ e[0] !== t || e[1] !== m || e[2] !== s || e[3] !== r || e[4] !== c || e[5] !== a || e[6] !== h ? (f = {
1555
1698
  mode: t,
1556
1699
  onSubmit: r,
1557
1700
  onResendCode: s,
1558
1701
  submitApi: a,
1559
1702
  onSuccess: c,
1560
- onError: f,
1703
+ onError: m,
1561
1704
  validate: h
1562
- }, e[0] = t, e[1] = f, e[2] = s, e[3] = r, e[4] = c, e[5] = a, e[6] = h, e[7] = m) : m = e[7];
1705
+ }, e[0] = t, e[1] = m, e[2] = s, e[3] = r, e[4] = c, e[5] = a, e[6] = h, e[7] = f) : f = e[7];
1563
1706
  const {
1564
1707
  methods: p,
1565
1708
  handleSubmit: b,
@@ -1567,13 +1710,13 @@ function Sn(n) {
1567
1710
  canResend: y,
1568
1711
  timerText: v,
1569
1712
  isSubmitting: C
1570
- } = fn(m), w = l ?? dn[t];
1571
- let S;
1572
- e[8] !== y || e[9] !== w || e[10] !== g || e[11] !== b || e[12] !== d || e[13] !== C || e[14] !== t || e[15] !== i || e[16] !== v ? (S = /* @__PURE__ */ u(Cn, { mode: t, title: w, recipientDisplay: i, isForeignUser: d, handleSubmit: b, handleResend: g, canResend: y, timerText: v, isSubmitting: C }), e[8] = y, e[9] = w, e[10] = g, e[11] = b, e[12] = d, e[13] = C, e[14] = t, e[15] = i, e[16] = v, e[17] = S) : S = e[17];
1713
+ } = yn(f), S = l ?? bn[t];
1714
+ let w;
1715
+ e[8] !== y || e[9] !== S || e[10] !== g || e[11] !== b || e[12] !== u || e[13] !== C || e[14] !== t || e[15] !== i || e[16] !== v ? (w = /* @__PURE__ */ d(Pn, { mode: t, title: S, recipientDisplay: i, isForeignUser: u, handleSubmit: b, handleResend: g, canResend: y, timerText: v, isSubmitting: C }), e[8] = y, e[9] = S, e[10] = g, e[11] = b, e[12] = u, e[13] = C, e[14] = t, e[15] = i, e[16] = v, e[17] = w) : w = e[17];
1573
1716
  let x;
1574
- return e[18] !== p || e[19] !== S ? (x = /* @__PURE__ */ u(we, { ...p, children: S }), e[18] = p, e[19] = S, e[20] = x) : x = e[20], x;
1717
+ return e[18] !== p || e[19] !== w ? (x = /* @__PURE__ */ d(we, { ...p, children: w }), e[18] = p, e[19] = w, e[20] = x) : x = e[20], x;
1575
1718
  }
1576
- function Dn(n) {
1719
+ function jn(n) {
1577
1720
  const e = E.c(24);
1578
1721
  let t, l, i, o;
1579
1722
  e[0] !== n ? ({
@@ -1584,13 +1727,13 @@ function Dn(n) {
1584
1727
  } = n, e[0] = n, e[1] = t, e[2] = l, e[3] = i, e[4] = o) : (t = e[1], l = e[2], i = e[3], o = e[4]);
1585
1728
  const r = i === void 0 ? "withSlider" : i;
1586
1729
  let s;
1587
- e[5] !== l ? (s = l != null ? /* @__PURE__ */ u(ye, { onClick: l }) : void 0, e[5] = l, e[6] = s) : s = e[6];
1730
+ e[5] !== l ? (s = l != null ? /* @__PURE__ */ d(xe, { onClick: l }) : void 0, e[5] = l, e[6] = s) : s = e[6];
1588
1731
  let a;
1589
- e[7] !== t.isForeignUser || e[8] !== t.mode || e[9] !== t.onError || e[10] !== t.onResendCode || e[11] !== t.onSubmit || e[12] !== t.onSuccess || e[13] !== t.recipientDisplay || e[14] !== t.submitApi || e[15] !== t.title || e[16] !== t.validate || e[17] !== l ? (a = /* @__PURE__ */ u(Sn, { mode: t.mode, recipientDisplay: t.recipientDisplay, title: t.title, isForeignUser: t.isForeignUser, onBack: l, onSubmit: t.onSubmit, onResendCode: t.onResendCode, submitApi: t.submitApi, onSuccess: t.onSuccess, onError: t.onError, validate: t.validate }), e[7] = t.isForeignUser, e[8] = t.mode, e[9] = t.onError, e[10] = t.onResendCode, e[11] = t.onSubmit, e[12] = t.onSuccess, e[13] = t.recipientDisplay, e[14] = t.submitApi, e[15] = t.title, e[16] = t.validate, e[17] = l, e[18] = a) : a = e[18];
1732
+ e[7] !== t.isForeignUser || e[8] !== t.mode || e[9] !== t.onError || e[10] !== t.onResendCode || e[11] !== t.onSubmit || e[12] !== t.onSuccess || e[13] !== t.recipientDisplay || e[14] !== t.submitApi || e[15] !== t.title || e[16] !== t.validate || e[17] !== l ? (a = /* @__PURE__ */ d(_n, { mode: t.mode, recipientDisplay: t.recipientDisplay, title: t.title, isForeignUser: t.isForeignUser, onBack: l, onSubmit: t.onSubmit, onResendCode: t.onResendCode, submitApi: t.submitApi, onSuccess: t.onSuccess, onError: t.onError, validate: t.validate }), e[7] = t.isForeignUser, e[8] = t.mode, e[9] = t.onError, e[10] = t.onResendCode, e[11] = t.onSubmit, e[12] = t.onSuccess, e[13] = t.recipientDisplay, e[14] = t.submitApi, e[15] = t.title, e[16] = t.validate, e[17] = l, e[18] = a) : a = e[18];
1590
1733
  let c;
1591
- return e[19] !== r || e[20] !== s || e[21] !== a || e[22] !== o ? (c = /* @__PURE__ */ u(ie, { layoutType: r, variant: o, contentWidth: "sm", align: "left", backButton: s, className: Ne, children: a }), e[19] = r, e[20] = s, e[21] = a, e[22] = o, e[23] = c) : c = e[23], c;
1734
+ return e[19] !== r || e[20] !== s || e[21] !== a || e[22] !== o ? (c = /* @__PURE__ */ d(se, { layoutType: r, variant: o, contentWidth: "sm", align: "left", backButton: s, className: Pe, children: a }), e[19] = r, e[20] = s, e[21] = a, e[22] = o, e[23] = c) : c = e[23], c;
1592
1735
  }
1593
- function xn(n) {
1736
+ function On(n) {
1594
1737
  const e = E.c(21);
1595
1738
  let t, l;
1596
1739
  e[0] !== n ? ({
@@ -1609,22 +1752,22 @@ function xn(n) {
1609
1752
  handleContinue: o,
1610
1753
  isSubmitting: r,
1611
1754
  lastUsedMethod: s
1612
- } = bn(i), a = r ? "Continuing…" : `Continue with ${s}`;
1755
+ } = Sn(i), a = r ? "Continuing…" : `Continue with ${s}`;
1613
1756
  let c;
1614
- e[9] !== a ? (c = /* @__PURE__ */ u(O, { variant: "textLabel1", weight: "semiBold", align: "center", className: "text-neutral-white", children: a }), e[9] = a, e[10] = c) : c = e[10];
1615
- let f;
1616
- e[11] !== o || e[12] !== r || e[13] !== c ? (f = /* @__PURE__ */ u(B, { variant: "primary", size: "large", fullWidth: !0, onClick: o, disabled: r, children: c }), e[11] = o, e[12] = r, e[13] = c, e[14] = f) : f = e[14];
1617
- let h;
1618
- e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ u(O, { variant: "textLabel1", weight: "semiBold", align: "center", className: "opacity-80", children: "Use another method" }), e[15] = h) : h = e[15];
1619
- let d;
1620
- e[16] !== l ? (d = /* @__PURE__ */ u(B, { variant: "outline", size: "large", fullWidth: !0, onClick: l, children: h }), e[16] = l, e[17] = d) : d = e[17];
1757
+ e[9] !== a ? (c = /* @__PURE__ */ d(A, { variant: "textLabel1", weight: "semiBold", align: "center", className: "text-neutral-white", children: a }), e[9] = a, e[10] = c) : c = e[10];
1621
1758
  let m;
1622
- return e[18] !== f || e[19] !== d ? (m = /* @__PURE__ */ R("div", { className: "w-full flex flex-col gap-[12px]", children: [
1623
- f,
1624
- d
1625
- ] }), e[18] = f, e[19] = d, e[20] = m) : m = e[20], m;
1759
+ e[11] !== o || e[12] !== r || e[13] !== c ? (m = /* @__PURE__ */ d(M, { variant: "primary", size: "large", fullWidth: !0, onClick: o, disabled: r, children: c }), e[11] = o, e[12] = r, e[13] = c, e[14] = m) : m = e[14];
1760
+ let h;
1761
+ e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ d(A, { variant: "textLabel1", weight: "semiBold", align: "center", className: "opacity-80", children: "Use another method" }), e[15] = h) : h = e[15];
1762
+ let u;
1763
+ e[16] !== l ? (u = /* @__PURE__ */ d(M, { variant: "outline", size: "large", fullWidth: !0, onClick: l, children: h }), e[16] = l, e[17] = u) : u = e[17];
1764
+ let f;
1765
+ return e[18] !== m || e[19] !== u ? (f = /* @__PURE__ */ I("div", { className: "w-full flex flex-col gap-[12px]", children: [
1766
+ m,
1767
+ u
1768
+ ] }), e[18] = m, e[19] = u, e[20] = f) : f = e[20], f;
1626
1769
  }
1627
- function $n(n) {
1770
+ function zn(n) {
1628
1771
  const e = E.c(18), {
1629
1772
  lastUsedMethod: t,
1630
1773
  onContinueWithLastMethod: l,
@@ -1634,56 +1777,56 @@ function $n(n) {
1634
1777
  onError: s,
1635
1778
  layoutType: a,
1636
1779
  variant: c
1637
- } = n, f = t === void 0 ? "Mobile" : t, h = a === void 0 ? "withSlider" : a, d = c === "mobile" || h === "standalone";
1638
- let m;
1639
- e[0] !== d ? (m = d ? /* @__PURE__ */ u(O, { variant: "h5", weight: "bold", align: "center", className: "text-primary -mb-2 mt-4", children: "Welcome Back!" }) : /* @__PURE__ */ R(O, { variant: "h6", weight: "extraBold", align: "left", className: "text-neutral-black -mb-2 mt-4", children: [
1780
+ } = n, m = t === void 0 ? "Mobile" : t, h = a === void 0 ? "withSlider" : a, u = c === "mobile" || h === "standalone";
1781
+ let f;
1782
+ e[0] !== u ? (f = u ? /* @__PURE__ */ d(A, { variant: "h5", weight: "bold", align: "center", className: "text-primary -mb-2 mt-4", children: "Welcome Back!" }) : /* @__PURE__ */ I(A, { variant: "h6", weight: "extraBold", align: "left", className: "text-neutral-black -mb-2 mt-4", children: [
1640
1783
  " ",
1641
1784
  "Welcome Back!",
1642
1785
  " "
1643
- ] }), e[0] = d, e[1] = m) : m = e[1];
1786
+ ] }), e[0] = u, e[1] = f) : f = e[1];
1644
1787
  let p;
1645
- e[2] !== f ? (p = /* @__PURE__ */ R(O, { variant: "body1", align: "center", className: "text-neutral-black mb-4 md:mb-4", children: [
1788
+ e[2] !== m ? (p = /* @__PURE__ */ I(A, { variant: "body1", align: "center", className: "text-neutral-black mb-4 md:mb-4", children: [
1646
1789
  "Last time you used ",
1647
- f,
1790
+ m,
1648
1791
  " to log in."
1649
- ] }), e[2] = f, e[3] = p) : p = e[3];
1792
+ ] }), e[2] = m, e[3] = p) : p = e[3];
1650
1793
  let b;
1651
- e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ u(Ge, {}), e[4] = b) : b = e[4];
1794
+ e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ d(Ke, {}), e[4] = b) : b = e[4];
1652
1795
  let g;
1653
- e[5] !== o || e[6] !== f || e[7] !== l || e[8] !== s || e[9] !== r || e[10] !== i ? (g = /* @__PURE__ */ u(xn, { lastUsedMethod: f, onContinueWithLastMethod: l, onUseAnotherMethod: i, continueApi: o, onSuccess: r, onError: s }), e[5] = o, e[6] = f, e[7] = l, e[8] = s, e[9] = r, e[10] = i, e[11] = g) : g = e[11];
1796
+ e[5] !== o || e[6] !== m || e[7] !== l || e[8] !== s || e[9] !== r || e[10] !== i ? (g = /* @__PURE__ */ d(On, { lastUsedMethod: m, onContinueWithLastMethod: l, onUseAnotherMethod: i, continueApi: o, onSuccess: r, onError: s }), e[5] = o, e[6] = m, e[7] = l, e[8] = s, e[9] = r, e[10] = i, e[11] = g) : g = e[11];
1654
1797
  let y;
1655
- return e[12] !== h || e[13] !== m || e[14] !== p || e[15] !== g || e[16] !== c ? (y = /* @__PURE__ */ u(ie, { layoutType: h, variant: c, logo: ze, title: m, description: p, footer: b, children: g }), e[12] = h, e[13] = m, e[14] = p, e[15] = g, e[16] = c, e[17] = y) : y = e[17], y;
1798
+ return e[12] !== h || e[13] !== f || e[14] !== p || e[15] !== g || e[16] !== c ? (y = /* @__PURE__ */ d(se, { layoutType: h, variant: c, logo: He, title: f, description: p, footer: b, children: g }), e[12] = h, e[13] = f, e[14] = p, e[15] = g, e[16] = c, e[17] = y) : y = e[17], y;
1656
1799
  }
1657
- function wn(n) {
1800
+ function An(n) {
1658
1801
  const e = E.c(16), {
1659
1802
  isPhone: t,
1660
1803
  isForeign: l,
1661
1804
  handleSubmit: i,
1662
1805
  isSubmitting: o
1663
- } = n, r = le();
1806
+ } = n, r = re();
1664
1807
  let s;
1665
1808
  e[0] !== i || e[1] !== r ? (s = r.handleSubmit(i), e[0] = i, e[1] = r, e[2] = s) : s = e[2];
1666
1809
  let a;
1667
- e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ u(de, { name: "fullName", placeholder: "Full name", type: "text", className: "w-full", autoFocus: !0 }), e[3] = a) : a = e[3];
1810
+ e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ d(oe, { name: "fullName", placeholder: "Full name", type: "text", className: "w-full", autoFocus: !0 }), e[3] = a) : a = e[3];
1668
1811
  let c;
1669
- e[4] !== l || e[5] !== t ? (c = /* @__PURE__ */ R("div", { className: "mb-6 flex w-full flex-col gap-[12px]", children: [
1812
+ e[4] !== l || e[5] !== t ? (c = /* @__PURE__ */ I("div", { className: "mb-6 flex w-full flex-col gap-[12px]", children: [
1670
1813
  a,
1671
- l ? /* @__PURE__ */ R(fe, { children: [
1672
- /* @__PURE__ */ u(de, { name: "email", placeholder: "Email address", type: "email", className: "w-full" }),
1673
- /* @__PURE__ */ u(Se, { name: "phone", label: "", placeholder: "Phone number", countryCode: "+91", countryCodeName: "countryCode", defaultCountry: "IN" })
1674
- ] }) : t ? /* @__PURE__ */ u(Se, { name: "phone", label: "", placeholder: "Phone number", countryCode: "+91", countryCodeName: "countryCode", defaultCountry: "IN" }) : /* @__PURE__ */ u(de, { name: "email", placeholder: "Email address", type: "email", className: "w-full" })
1814
+ l ? /* @__PURE__ */ I(X, { children: [
1815
+ /* @__PURE__ */ d(oe, { name: "email", placeholder: "Email address", type: "email", className: "w-full" }),
1816
+ /* @__PURE__ */ d(ae, { name: "phone", label: "", placeholder: "Phone number", countryCode: "+91", countryCodeName: "countryCode", defaultCountry: "IN" })
1817
+ ] }) : t ? /* @__PURE__ */ d(ae, { name: "phone", label: "", placeholder: "Phone number", countryCode: "+91", countryCodeName: "countryCode", defaultCountry: "IN" }) : /* @__PURE__ */ d(oe, { name: "email", placeholder: "Email address", type: "email", className: "w-full" })
1675
1818
  ] }), e[4] = l, e[5] = t, e[6] = c) : c = e[6];
1676
- let f;
1677
- e[7] !== o ? (f = o ? /* @__PURE__ */ u(be, { size: 32, strokeWidth: 2 }) : "Continue", e[7] = o, e[8] = f) : f = e[8];
1819
+ let m;
1820
+ e[7] !== o ? (m = o ? /* @__PURE__ */ d(ve, { size: 32, strokeWidth: 2 }) : "Continue", e[7] = o, e[8] = m) : m = e[8];
1678
1821
  let h;
1679
- e[9] !== o || e[10] !== f ? (h = /* @__PURE__ */ u(B, { type: "submit", variant: "primary", size: "large", fullWidth: !0, disabled: o, children: f }), e[9] = o, e[10] = f, e[11] = h) : h = e[11];
1680
- let d;
1681
- return e[12] !== s || e[13] !== c || e[14] !== h ? (d = /* @__PURE__ */ R("form", { onSubmit: s, className: "w-full flex flex-col items-center", noValidate: !0, children: [
1822
+ e[9] !== o || e[10] !== m ? (h = /* @__PURE__ */ d(M, { type: "submit", variant: "primary", size: "large", fullWidth: !0, disabled: o, children: m }), e[9] = o, e[10] = m, e[11] = h) : h = e[11];
1823
+ let u;
1824
+ return e[12] !== s || e[13] !== c || e[14] !== h ? (u = /* @__PURE__ */ I("form", { onSubmit: s, className: "w-full flex flex-col items-center", noValidate: !0, children: [
1682
1825
  c,
1683
1826
  h
1684
- ] }), e[12] = s, e[13] = c, e[14] = h, e[15] = d) : d = e[15], d;
1827
+ ] }), e[12] = s, e[13] = c, e[14] = h, e[15] = u) : u = e[15], u;
1685
1828
  }
1686
- function Nn(n) {
1829
+ function In(n) {
1687
1830
  const e = E.c(15), {
1688
1831
  userType: t,
1689
1832
  signupCollectField: l,
@@ -1692,29 +1835,29 @@ function Nn(n) {
1692
1835
  submitApi: r,
1693
1836
  onSuccess: s,
1694
1837
  onError: a
1695
- } = n, c = i === void 0 ? "" : i, f = t === "FOREIGN" ? "foreign" : l === "phone" ? "phone" : "email";
1838
+ } = n, c = i === void 0 ? "" : i, m = t === "FOREIGN" ? "foreign" : l === "phone" ? "phone" : "email";
1696
1839
  let h;
1697
- e[0] !== f || e[1] !== a || e[2] !== o || e[3] !== s || e[4] !== c || e[5] !== r ? (h = {
1698
- mode: f,
1840
+ e[0] !== m || e[1] !== a || e[2] !== o || e[3] !== s || e[4] !== c || e[5] !== r ? (h = {
1841
+ mode: m,
1699
1842
  defaultPhone: c,
1700
1843
  onSubmit: o,
1701
1844
  submitApi: r,
1702
1845
  onSuccess: s,
1703
1846
  onError: a
1704
- }, e[0] = f, e[1] = a, e[2] = o, e[3] = s, e[4] = c, e[5] = r, e[6] = h) : h = e[6];
1847
+ }, e[0] = m, e[1] = a, e[2] = o, e[3] = s, e[4] = c, e[5] = r, e[6] = h) : h = e[6];
1705
1848
  const {
1706
- methods: d,
1707
- handleSubmit: m,
1849
+ methods: u,
1850
+ handleSubmit: f,
1708
1851
  isPhone: p,
1709
1852
  isForeign: b,
1710
1853
  isSubmitting: g
1711
- } = yn(h);
1854
+ } = Nn(h);
1712
1855
  let y;
1713
- e[7] !== m || e[8] !== b || e[9] !== p || e[10] !== g ? (y = /* @__PURE__ */ u(wn, { isPhone: p, isForeign: b, handleSubmit: m, isSubmitting: g }), e[7] = m, e[8] = b, e[9] = p, e[10] = g, e[11] = y) : y = e[11];
1856
+ e[7] !== f || e[8] !== b || e[9] !== p || e[10] !== g ? (y = /* @__PURE__ */ d(An, { isPhone: p, isForeign: b, handleSubmit: f, isSubmitting: g }), e[7] = f, e[8] = b, e[9] = p, e[10] = g, e[11] = y) : y = e[11];
1714
1857
  let v;
1715
- return e[12] !== d || e[13] !== y ? (v = /* @__PURE__ */ u(we, { ...d, children: y }), e[12] = d, e[13] = y, e[14] = v) : v = e[14], v;
1858
+ return e[12] !== u || e[13] !== y ? (v = /* @__PURE__ */ d(we, { ...u, children: y }), e[12] = u, e[13] = y, e[14] = v) : v = e[14], v;
1716
1859
  }
1717
- function Wn(n) {
1860
+ function Vn(n) {
1718
1861
  const e = E.c(21), {
1719
1862
  layoutType: t,
1720
1863
  variant: l
@@ -1732,62 +1875,62 @@ function Wn(n) {
1732
1875
  }, e[0] = n.loginMethod, e[1] = n.onError, e[2] = n.onSubmit, e[3] = n.onSuccess, e[4] = n.pendingPhone, e[5] = n.signupCollectField, e[6] = n.submitApi, e[7] = n.userType, e[8] = r) : r = e[8];
1733
1876
  const s = r;
1734
1877
  let a;
1735
- e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ u("img", { src: ft, alt: "Docthub Logo", width: 46, height: 46 }), e[9] = a) : a = e[9];
1878
+ e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ d("img", { src: gt, alt: "Docthub Logo", width: 46, height: 46 }), e[9] = a) : a = e[9];
1736
1879
  const c = a;
1737
- let f;
1738
- e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ u(O, { variant: "h5", weight: "extraBold", align: "center", className: "text-neutral-black mt-4 md:mt-6 -mb-1", children: "Welcome to Docthub" }), e[10] = f) : f = e[10];
1739
- const h = f, d = n.userType === "FOREIGN" ? "email" : n.signupCollectField;
1740
1880
  let m;
1741
- e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ u("span", { className: "font-bold", children: "Full Name" }), e[11] = m) : m = e[11];
1742
- const p = d === "phone" ? "Phone Number" : "Email Address";
1881
+ e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ d(A, { variant: "h5", weight: "extraBold", align: "center", className: "text-neutral-black mt-4 md:mt-6 -mb-1", children: "Welcome to Docthub" }), e[10] = m) : m = e[10];
1882
+ const h = m, u = n.userType === "FOREIGN" ? "email" : n.signupCollectField;
1883
+ let f;
1884
+ e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ d("span", { className: "font-bold", children: "Full Name" }), e[11] = f) : f = e[11];
1885
+ const p = u === "phone" ? "Phone Number" : "Email Address";
1743
1886
  let b;
1744
- e[12] !== p ? (b = /* @__PURE__ */ R(O, { variant: "title2", align: "center", className: "mb-4 md:mb-6", children: [
1887
+ e[12] !== p ? (b = /* @__PURE__ */ I(A, { variant: "title2", align: "center", className: "mb-4 md:mb-6", children: [
1745
1888
  "Please tell us your ",
1746
- m,
1889
+ f,
1747
1890
  " and",
1748
1891
  " ",
1749
- /* @__PURE__ */ u("span", { className: "font-bold", children: p }),
1892
+ /* @__PURE__ */ d("span", { className: "font-bold", children: p }),
1750
1893
  " ",
1751
1894
  "for extended security of your account."
1752
1895
  ] }), e[12] = p, e[13] = b) : b = e[13];
1753
1896
  const g = b;
1754
1897
  let y;
1755
- e[14] !== s ? (y = /* @__PURE__ */ u(Nn, { ...s }), e[14] = s, e[15] = y) : y = e[15];
1898
+ e[14] !== s ? (y = /* @__PURE__ */ d(In, { ...s }), e[14] = s, e[15] = y) : y = e[15];
1756
1899
  let v;
1757
- return e[16] !== g || e[17] !== i || e[18] !== y || e[19] !== o ? (v = /* @__PURE__ */ u(ie, { layoutType: i, variant: o, contentWidth: "sm", logo: c, title: h, description: g, children: y }), e[16] = g, e[17] = i, e[18] = y, e[19] = o, e[20] = v) : v = e[20], v;
1900
+ return e[16] !== g || e[17] !== i || e[18] !== y || e[19] !== o ? (v = /* @__PURE__ */ d(se, { layoutType: i, variant: o, contentWidth: "sm", logo: c, title: h, description: g, children: y }), e[16] = g, e[17] = i, e[18] = y, e[19] = o, e[20] = v) : v = e[20], v;
1758
1901
  }
1759
1902
  export {
1760
- ie as A,
1761
- ye as B,
1762
- dn as D,
1763
- pt as E,
1764
- _t as I,
1765
- In as L,
1766
- Fn as M,
1767
- Sn as O,
1768
- xn as R,
1769
- Nn as S,
1770
- Kt as a,
1771
- Rn as b,
1772
- kn as c,
1773
- Dn as d,
1774
- $n as e,
1775
- Wn as f,
1903
+ se as A,
1904
+ xe as B,
1905
+ bn as D,
1906
+ vt as E,
1907
+ At as I,
1908
+ $n as L,
1909
+ Un as M,
1910
+ _n as O,
1911
+ On as R,
1912
+ In as S,
1913
+ en as a,
1914
+ Wn as b,
1915
+ Bn as c,
1916
+ jn as d,
1917
+ zn as e,
1918
+ Vn as f,
1776
1919
  E as g,
1777
1920
  q as h,
1778
- Ot as i,
1779
- Ln as j,
1780
- Ft as k,
1781
- Ge as l,
1782
- At as m,
1783
- he as n,
1784
- Vt as o,
1785
- zt as p,
1786
- Je as q,
1787
- Ht as r,
1788
- et as s,
1789
- fn as t,
1790
- Lt as u,
1791
- bn as v,
1792
- yn as w
1921
+ Lt as i,
1922
+ Mn as j,
1923
+ Ut as k,
1924
+ Ke as l,
1925
+ Tt as m,
1926
+ pe as n,
1927
+ Jt as o,
1928
+ Yt as p,
1929
+ Qe as q,
1930
+ Zt as r,
1931
+ lt as s,
1932
+ yn as t,
1933
+ kt as u,
1934
+ Sn as v,
1935
+ Nn as w
1793
1936
  };