docthub-core-components 3.3.11 → 3.3.14
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.
- package/dist/components/overrides/ui/inputs/phone-input.js +281 -228
- package/dist/components/overrides/ui/mobile-number-dialog/mobile-number-dialog.js +366 -324
- package/dist/components/reui/stepper.js +303 -0
- package/dist/components/ui/stepper.js +353 -0
- package/dist/index.js +190 -177
- package/dist/src/components/examples/c-stepper-1.d.ts +1 -0
- package/dist/src/components/examples/c-stepper-10.d.ts +1 -0
- package/dist/src/components/examples/c-stepper-11.d.ts +1 -0
- package/dist/src/components/examples/c-stepper-12.d.ts +1 -0
- package/dist/src/components/examples/c-stepper-13.d.ts +1 -0
- package/dist/src/components/examples/c-stepper-14.d.ts +1 -0
- package/dist/src/components/examples/c-stepper-15.d.ts +1 -0
- package/dist/src/components/examples/c-stepper-2.d.ts +1 -0
- package/dist/src/components/examples/c-stepper-3.d.ts +1 -0
- package/dist/src/components/examples/c-stepper-4.d.ts +1 -0
- package/dist/src/components/examples/c-stepper-5.d.ts +1 -0
- package/dist/src/components/examples/c-stepper-6.d.ts +1 -0
- package/dist/src/components/examples/c-stepper-7.d.ts +1 -0
- package/dist/src/components/examples/c-stepper-8.d.ts +1 -0
- package/dist/src/components/examples/c-stepper-9.d.ts +1 -0
- package/dist/src/components/overrides/ui/inputs/phone-input.d.ts +3 -1
- package/dist/src/components/reui/badge.d.ts +12 -0
- package/dist/src/components/reui/stepper.d.ts +91 -0
- package/dist/src/components/ui/stepper.d.ts +65 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,385 +1,427 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as i, jsxs as
|
|
3
|
-
import { c as
|
|
4
|
-
import { Smartphone as
|
|
5
|
-
import * as
|
|
6
|
-
import { CircularProgress as
|
|
7
|
-
import { DoctButton as
|
|
8
|
-
import { DialogHeader as vt, DialogTitle as
|
|
9
|
-
import { DrawerHeader as
|
|
10
|
-
import { DoctTypography as
|
|
11
|
-
import { useIsMobile as
|
|
12
|
-
import { cn as
|
|
13
|
-
import { DoctPhoneInput as
|
|
14
|
-
import { MobileNumberDialogOtpSurface as
|
|
15
|
-
import { MOBILE_NUMBER_DIALOG_DEFAULT_COUNTRY_CODE as wt, buildMobileNumberDisplay as
|
|
16
|
-
import { MOBILE_NUMBER_DIALOG_DRAWER_BACKDROP_CLASS as
|
|
17
|
-
const
|
|
18
|
-
function
|
|
19
|
-
const e =
|
|
20
|
-
onClose:
|
|
21
|
-
} =
|
|
2
|
+
import { jsx as i, jsxs as H } from "react/jsx-runtime";
|
|
3
|
+
import { c as B } from "react-compiler-runtime";
|
|
4
|
+
import { Smartphone as gt, X as _t } from "lucide-react";
|
|
5
|
+
import * as D from "react";
|
|
6
|
+
import { CircularProgress as ct } from "../circular-progress.js";
|
|
7
|
+
import { DoctButton as Ce } from "../../../ui/button.js";
|
|
8
|
+
import { DialogHeader as vt, DialogTitle as Lt, DialogContent as Nt, Dialog as Et } from "../../../ui/dialog.js";
|
|
9
|
+
import { DrawerHeader as Ct, DrawerTitle as yt, DrawerContent as xt, Drawer as Dt } from "../../../ui/drawer.js";
|
|
10
|
+
import { DoctTypography as ye } from "../../../ui/typography.js";
|
|
11
|
+
import { useIsMobile as Mt } from "../../../../hooks/use-mobile.js";
|
|
12
|
+
import { cn as Ve } from "../../../../lib/utils.js";
|
|
13
|
+
import { DoctPhoneInput as Ot } from "../inputs/phone-input.js";
|
|
14
|
+
import { MobileNumberDialogOtpSurface as dt } from "./otp-dialog.js";
|
|
15
|
+
import { MOBILE_NUMBER_DIALOG_DEFAULT_COUNTRY_CODE as wt, buildMobileNumberDisplay as At, MOBILE_NUMBER_DIALOG_DEFAULT_PHONE_PLACEHOLDER as It, MOBILE_NUMBER_DIALOG_BODY_TITLE as Rt, MOBILE_NUMBER_DIALOG_HEADER_TITLE as Bt, MOBILE_NUMBER_DIALOG_DEFAULT_INFO_MESSAGE as ft, MOBILE_NUMBER_DIALOG_OTP_HEADER_TITLE as St, MOBILE_NUMBER_DIALOG_OTP_SUBMIT_LABEL as Tt, MOBILE_NUMBER_DIALOG_OTP_TITLE as Pt, MOBILE_NUMBER_DIALOG_OTP_RESEND_LABEL as kt, MOBILE_NUMBER_DIALOG_PRIMARY_LABEL as Ft, buildLoginWithMobileNumberLabel as Ut, MOBILE_NUMBER_DIALOG_LOGIN_UNIFY_HINT as Gt, isMobileNumberDialogPrimaryDisabled as Ht, MOBILE_NUMBER_DIALOG_SECONDARY_LABEL as zt, MOBILE_NUMBER_DIALOG_ICON_BUTTON_CLASS as $t } from "./presets.js";
|
|
16
|
+
import { MOBILE_NUMBER_DIALOG_DRAWER_BACKDROP_CLASS as nt } from "./types.js";
|
|
17
|
+
const Wt = "[&>div:first-child]:pointer-events-none [&>div:first-child]:sr-only [&>div:first-child]:m-0 [&>div:first-child]:h-0 [&>div:first-child]:w-0 [&>div:first-child]:overflow-hidden", Yt = "flex w-full flex-col overflow-hidden border border-black/[0.12] bg-white";
|
|
18
|
+
function jt(r) {
|
|
19
|
+
const e = B(3), {
|
|
20
|
+
onClose: l
|
|
21
|
+
} = r;
|
|
22
22
|
let t;
|
|
23
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ i(
|
|
24
|
-
let
|
|
25
|
-
return e[1] !==
|
|
23
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ i(_t, { className: "size-6", "aria-hidden": !0 }), e[0] = t) : t = e[0];
|
|
24
|
+
let o;
|
|
25
|
+
return e[1] !== l ? (o = /* @__PURE__ */ i(Ce, { type: "button", variant: "ghost", onClick: l, className: $t, "aria-label": "Close", icon: t }), e[1] = l, e[2] = o) : o = e[2], o;
|
|
26
26
|
}
|
|
27
|
-
function
|
|
28
|
-
const e =
|
|
29
|
-
title:
|
|
27
|
+
function Vt(r) {
|
|
28
|
+
const e = B(7), {
|
|
29
|
+
title: l,
|
|
30
30
|
onClose: t
|
|
31
|
-
} =
|
|
32
|
-
let
|
|
33
|
-
e[0] !==
|
|
31
|
+
} = r;
|
|
32
|
+
let o;
|
|
33
|
+
e[0] !== l ? (o = /* @__PURE__ */ i("div", { className: "flex min-h-12 min-w-0 flex-1 items-center py-[18px]", children: /* @__PURE__ */ i(ye, { as: "p", variant: "textLabel1", weight: "semiBold", align: "left", className: "min-w-0 !text-black/80", children: l }) }), e[0] = l, e[1] = o) : o = e[1];
|
|
34
34
|
let s;
|
|
35
|
-
e[2] !== t ? (s = /* @__PURE__ */ i(
|
|
35
|
+
e[2] !== t ? (s = /* @__PURE__ */ i(jt, { onClose: t }), e[2] = t, e[3] = s) : s = e[3];
|
|
36
36
|
let n;
|
|
37
|
-
return e[4] !==
|
|
38
|
-
|
|
37
|
+
return e[4] !== o || e[5] !== s ? (n = /* @__PURE__ */ H("div", { className: "flex w-full shrink-0 items-start justify-between overflow-hidden pl-4", children: [
|
|
38
|
+
o,
|
|
39
39
|
s
|
|
40
|
-
] }), e[4] =
|
|
40
|
+
] }), e[4] = o, e[5] = s, e[6] = n) : n = e[6], n;
|
|
41
41
|
}
|
|
42
|
-
function qt(
|
|
43
|
-
const e =
|
|
44
|
-
icon:
|
|
45
|
-
} =
|
|
42
|
+
function qt(r) {
|
|
43
|
+
const e = B(4), {
|
|
44
|
+
icon: l
|
|
45
|
+
} = r;
|
|
46
46
|
let t;
|
|
47
|
-
e[0] !==
|
|
48
|
-
let
|
|
49
|
-
return e[2] !== t ? (
|
|
47
|
+
e[0] !== l ? (t = l ?? /* @__PURE__ */ i(gt, { className: "size-6 text-white", strokeWidth: 1.75, "aria-hidden": !0 }), e[0] = l, e[1] = t) : t = e[1];
|
|
48
|
+
let o;
|
|
49
|
+
return e[2] !== t ? (o = /* @__PURE__ */ i("div", { className: "flex size-12 shrink-0 items-center justify-center rounded-xl bg-[#00A0C0] px-3", children: t }), e[2] = t, e[3] = o) : o = e[3], o;
|
|
50
50
|
}
|
|
51
|
-
function
|
|
52
|
-
const
|
|
51
|
+
function Kt() {
|
|
52
|
+
const r = B(1);
|
|
53
53
|
let e;
|
|
54
|
-
return
|
|
54
|
+
return r[0] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ i(ye, { as: "p", variant: "textLabel3", weight: "medium", align: "left", className: "w-full !text-[#4389FF]", children: ft }), r[0] = e) : e = r[0], e;
|
|
55
55
|
}
|
|
56
|
-
function
|
|
57
|
-
const e =
|
|
58
|
-
message:
|
|
56
|
+
function Xt(r) {
|
|
57
|
+
const e = B(3), {
|
|
58
|
+
message: l,
|
|
59
59
|
isDefaultMessage: t
|
|
60
|
-
} =
|
|
61
|
-
let
|
|
62
|
-
return e[0] !== t || e[1] !==
|
|
60
|
+
} = r;
|
|
61
|
+
let o;
|
|
62
|
+
return e[0] !== t || e[1] !== l ? (o = /* @__PURE__ */ i("div", { className: "w-full self-stretch rounded-xl bg-[rgba(67,137,255,0.12)] p-[14px]", children: t ? /* @__PURE__ */ i(Kt, {}) : /* @__PURE__ */ i(ye, { as: "p", variant: "textLabel3", weight: "medium", align: "left", className: "w-full !text-[#4389FF]", children: l }) }), e[0] = t, e[1] = l, e[2] = o) : o = e[2], o;
|
|
63
63
|
}
|
|
64
|
-
function
|
|
65
|
-
const e =
|
|
66
|
-
countryCode:
|
|
64
|
+
function Jt(r) {
|
|
65
|
+
const e = B(19), {
|
|
66
|
+
countryCode: l,
|
|
67
67
|
placeholder: t,
|
|
68
|
-
value:
|
|
68
|
+
value: o,
|
|
69
69
|
onChange: s,
|
|
70
70
|
onCountryCodeChange: n,
|
|
71
|
-
countries:
|
|
72
|
-
defaultCountry:
|
|
73
|
-
onCountryChange:
|
|
74
|
-
onValuesChange:
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
71
|
+
countries: d,
|
|
72
|
+
defaultCountry: L,
|
|
73
|
+
onCountryChange: u,
|
|
74
|
+
onValuesChange: g,
|
|
75
|
+
inputRef: N,
|
|
76
|
+
error: f
|
|
77
|
+
} = r;
|
|
78
|
+
let m;
|
|
79
|
+
e[0] !== l ? (m = l.replace(/\D/g, "") || void 0, e[0] = l, e[1] = m) : m = e[1];
|
|
80
|
+
const _ = m;
|
|
81
|
+
let h;
|
|
82
|
+
e[2] !== n ? (h = (M) => n == null ? void 0 : n(`+${M}`), e[2] = n, e[3] = h) : h = e[3];
|
|
83
|
+
const c = !f && "[&>div>button]:border-black/10 [&>div>input]:border-black/10";
|
|
84
|
+
let p;
|
|
85
|
+
e[4] !== c ? (p = Ve("w-full space-y-1 [&>div>button]:h-[44px] [&>div>button]:rounded-l-lg [&>div>input]:h-[44px] [&>div>input]:rounded-r-lg [&>div>input]:shadow-none [&>div>input]:placeholder:text-black/40 [&>div>input]:focus-visible:ring-0", c), e[4] = c, e[5] = p) : p = e[5];
|
|
86
|
+
let E;
|
|
87
|
+
return e[6] !== d || e[7] !== L || e[8] !== f || e[9] !== N || e[10] !== _ || e[11] !== s || e[12] !== u || e[13] !== g || e[14] !== t || e[15] !== h || e[16] !== p || e[17] !== o ? (E = /* @__PURE__ */ i(Ot, { countryCode: _, placeholder: t, value: o, onPhoneChange: s, onCountryCodeChange: h, countries: d, defaultCountry: L, onCountryChange: u, onValuesChange: g, inputRef: N, error: f, "aria-label": "Mobile number", className: p }), e[6] = d, e[7] = L, e[8] = f, e[9] = N, e[10] = _, e[11] = s, e[12] = u, e[13] = g, e[14] = t, e[15] = h, e[16] = p, e[17] = o, e[18] = E) : E = e[18], E;
|
|
87
88
|
}
|
|
88
|
-
function
|
|
89
|
-
const e =
|
|
90
|
-
phoneDisplay:
|
|
89
|
+
function Qt(r) {
|
|
90
|
+
const e = B(8), {
|
|
91
|
+
phoneDisplay: l,
|
|
91
92
|
onLogin: t
|
|
92
|
-
} =
|
|
93
|
-
let
|
|
94
|
-
e[0] !==
|
|
93
|
+
} = r;
|
|
94
|
+
let o;
|
|
95
|
+
e[0] !== l ? (o = Ut(l), e[0] = l, e[1] = o) : o = e[1];
|
|
95
96
|
let s;
|
|
96
|
-
e[2] !== t || e[3] !==
|
|
97
|
+
e[2] !== t || e[3] !== o ? (s = /* @__PURE__ */ i(Ce, { type: "button", variant: "outline", size: "medium", fullWidth: !0, onClick: t, children: o }), e[2] = t, e[3] = o, e[4] = s) : s = e[4];
|
|
97
98
|
let n;
|
|
98
|
-
e[5] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ i(
|
|
99
|
-
let
|
|
100
|
-
return e[6] !== s ? (
|
|
99
|
+
e[5] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ i(ye, { as: "p", variant: "body5", weight: "regular", className: "w-full !text-center !text-black/44", children: Gt }), e[5] = n) : n = e[5];
|
|
100
|
+
let d;
|
|
101
|
+
return e[6] !== s ? (d = /* @__PURE__ */ H("div", { className: "flex w-full flex-col items-center gap-1.5 rounded-xl bg-black/[0.04] p-3", children: [
|
|
101
102
|
s,
|
|
102
103
|
n
|
|
103
|
-
] }), e[6] = s, e[7] =
|
|
104
|
+
] }), e[6] = s, e[7] = d) : d = e[7], d;
|
|
104
105
|
}
|
|
105
|
-
function
|
|
106
|
-
const e =
|
|
107
|
-
trigger:
|
|
106
|
+
function Zt(r) {
|
|
107
|
+
const e = B(24), {
|
|
108
|
+
trigger: l,
|
|
108
109
|
state: t,
|
|
109
|
-
onPrimaryClick:
|
|
110
|
+
onPrimaryClick: o,
|
|
110
111
|
onSecondaryClick: s,
|
|
111
112
|
isPrimaryLoading: n
|
|
112
|
-
} =
|
|
113
|
-
let
|
|
114
|
-
e[0] !== n || e[1] !== t ? (
|
|
115
|
-
const
|
|
116
|
-
if (
|
|
117
|
-
const
|
|
118
|
-
let
|
|
119
|
-
e[3] !== n || e[4] !==
|
|
120
|
-
let
|
|
121
|
-
return e[6] !==
|
|
113
|
+
} = r, d = Ft[l][t];
|
|
114
|
+
let L;
|
|
115
|
+
e[0] !== n || e[1] !== t ? (L = Ht(t) || n, e[0] = n, e[1] = t, e[2] = L) : L = e[2];
|
|
116
|
+
const u = L;
|
|
117
|
+
if (l === "action") {
|
|
118
|
+
const h = u ? "disabled" : "primary";
|
|
119
|
+
let c;
|
|
120
|
+
e[3] !== n || e[4] !== d ? (c = n ? /* @__PURE__ */ i(ct, { size: 24, strokeWidth: 2 }) : d, e[3] = n, e[4] = d, e[5] = c) : c = e[5];
|
|
121
|
+
let p;
|
|
122
|
+
return e[6] !== o || e[7] !== u || e[8] !== h || e[9] !== c ? (p = /* @__PURE__ */ i(Ce, { type: "button", size: "medium", fullWidth: !0, variant: h, disabled: u, onClick: o, children: c }), e[6] = o, e[7] = u, e[8] = h, e[9] = c, e[10] = p) : p = e[10], p;
|
|
122
123
|
}
|
|
123
|
-
let
|
|
124
|
-
e[11] !== s ? (
|
|
125
|
-
const
|
|
124
|
+
let g;
|
|
125
|
+
e[11] !== s ? (g = /* @__PURE__ */ i(Ce, { type: "button", size: "medium", variant: "secondary", className: "shrink-0", onClick: s, children: zt }), e[11] = s, e[12] = g) : g = e[12];
|
|
126
|
+
const N = u ? "disabled" : "primary";
|
|
126
127
|
let f;
|
|
127
|
-
e[13] !== n || e[14] !==
|
|
128
|
+
e[13] !== n || e[14] !== d ? (f = n ? /* @__PURE__ */ i(ct, { size: 24, strokeWidth: 2 }) : d, e[13] = n, e[14] = d, e[15] = f) : f = e[15];
|
|
128
129
|
let m;
|
|
129
|
-
e[16] !==
|
|
130
|
-
let
|
|
131
|
-
return e[21] !==
|
|
132
|
-
|
|
130
|
+
e[16] !== o || e[17] !== u || e[18] !== N || e[19] !== f ? (m = /* @__PURE__ */ i(Ce, { type: "button", size: "medium", fullWidth: !0, variant: N, disabled: u, className: "min-w-0 flex-1", onClick: o, children: f }), e[16] = o, e[17] = u, e[18] = N, e[19] = f, e[20] = m) : m = e[20];
|
|
131
|
+
let _;
|
|
132
|
+
return e[21] !== g || e[22] !== m ? (_ = /* @__PURE__ */ H("div", { className: "flex w-full items-start gap-2.5", children: [
|
|
133
|
+
g,
|
|
133
134
|
m
|
|
134
|
-
] }), e[21] =
|
|
135
|
+
] }), e[21] = g, e[22] = m, e[23] = _) : _ = e[23], _;
|
|
135
136
|
}
|
|
136
|
-
function
|
|
137
|
-
const e =
|
|
138
|
-
trigger:
|
|
137
|
+
function ut(r) {
|
|
138
|
+
const e = B(57), {
|
|
139
|
+
trigger: l,
|
|
139
140
|
state: t,
|
|
140
|
-
headerTitle:
|
|
141
|
+
headerTitle: o,
|
|
141
142
|
bodyTitle: s,
|
|
142
143
|
infoMessage: n,
|
|
143
|
-
isDefaultInfoMessage:
|
|
144
|
-
phoneNumber:
|
|
145
|
-
onPhoneNumberChange:
|
|
146
|
-
existingAccountErrorMessage:
|
|
147
|
-
phoneErrorMessage:
|
|
144
|
+
isDefaultInfoMessage: d,
|
|
145
|
+
phoneNumber: L,
|
|
146
|
+
onPhoneNumberChange: u,
|
|
147
|
+
existingAccountErrorMessage: g,
|
|
148
|
+
phoneErrorMessage: N,
|
|
148
149
|
phoneDisplay: f,
|
|
149
150
|
phonePlaceholder: m,
|
|
150
|
-
countryCode:
|
|
151
|
-
onCountryCodeChange:
|
|
152
|
-
countries:
|
|
153
|
-
defaultCountry:
|
|
154
|
-
onCountryChange:
|
|
155
|
-
onValuesChange:
|
|
156
|
-
onExistingAccountLogin:
|
|
157
|
-
onPrimaryClick:
|
|
158
|
-
onSecondaryClick:
|
|
159
|
-
isPrimaryLoading:
|
|
160
|
-
icon:
|
|
161
|
-
onClose:
|
|
162
|
-
className:
|
|
163
|
-
surface:
|
|
164
|
-
} =
|
|
165
|
-
let
|
|
166
|
-
e[0]
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
151
|
+
countryCode: _,
|
|
152
|
+
onCountryCodeChange: h,
|
|
153
|
+
countries: c,
|
|
154
|
+
defaultCountry: p,
|
|
155
|
+
onCountryChange: E,
|
|
156
|
+
onValuesChange: M,
|
|
157
|
+
onExistingAccountLogin: z,
|
|
158
|
+
onPrimaryClick: $,
|
|
159
|
+
onSecondaryClick: W,
|
|
160
|
+
isPrimaryLoading: Y,
|
|
161
|
+
icon: j,
|
|
162
|
+
onClose: ne,
|
|
163
|
+
className: V,
|
|
164
|
+
surface: se
|
|
165
|
+
} = r, P = t === "existingAccount", re = D.useRef(null), xe = D.useRef(t), q = D.useRef(!1), [S, K] = D.useState(0);
|
|
166
|
+
let X;
|
|
167
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (X = () => {
|
|
168
|
+
var ie;
|
|
169
|
+
const b = re.current;
|
|
170
|
+
b && (b.focus({
|
|
171
|
+
preventScroll: !0
|
|
172
|
+
}), (ie = b.setSelectionRange) == null || ie.call(b, b.value.length, b.value.length));
|
|
173
|
+
}, e[0] = X) : X = e[0];
|
|
174
|
+
const J = X;
|
|
175
|
+
let Q, Z;
|
|
176
|
+
e[1] !== S || e[2] !== t ? (Q = () => {
|
|
177
|
+
const b = xe.current === "existingAccount";
|
|
178
|
+
if (xe.current = t, !(S > 0 && q.current || b && t !== "existingAccount"))
|
|
179
|
+
return;
|
|
180
|
+
J();
|
|
181
|
+
const G = () => {
|
|
182
|
+
J(), q.current = !1;
|
|
183
|
+
};
|
|
184
|
+
if (typeof window > "u" || typeof window.requestAnimationFrame != "function") {
|
|
185
|
+
G();
|
|
186
|
+
return;
|
|
187
|
+
}
|
|
188
|
+
const w = window.requestAnimationFrame(G);
|
|
189
|
+
return () => window.cancelAnimationFrame(w);
|
|
190
|
+
}, Z = [S, J, t], e[1] = S, e[2] = t, e[3] = Q, e[4] = Z) : (Q = e[3], Z = e[4]), D.useLayoutEffect(Q, Z);
|
|
191
|
+
let ee;
|
|
192
|
+
e[5] !== u ? (ee = (b) => {
|
|
193
|
+
q.current = !0, K(eo), u == null || u(b);
|
|
194
|
+
}, e[5] = u, e[6] = ee) : ee = e[6];
|
|
195
|
+
const te = ee, ae = se === "drawer" ? "h-auto max-h-[inherit] max-w-none rounded-t-[16px]" : "!max-w-[384px] rounded-[16px] shadow-[0_8px_24px_rgba(0,0,0,0.12)]";
|
|
196
|
+
let oe;
|
|
197
|
+
e[7] !== V || e[8] !== ae ? (oe = Ve(Yt, ae, V), e[7] = V, e[8] = ae, e[9] = oe) : oe = e[9];
|
|
198
|
+
const le = oe;
|
|
199
|
+
let k;
|
|
200
|
+
e[10] !== o || e[11] !== ne ? (k = /* @__PURE__ */ i(Vt, { title: o, onClose: ne }), e[10] = o, e[11] = ne, e[12] = k) : k = e[12];
|
|
201
|
+
const ce = se === "drawer" && "min-h-0 flex-1 overflow-y-auto overscroll-contain";
|
|
170
202
|
let C;
|
|
171
|
-
e[
|
|
203
|
+
e[13] !== ce ? (C = Ve("flex w-full flex-col items-center gap-4 px-4 pb-5 pt-4", ce), e[13] = ce, e[14] = C) : C = e[14];
|
|
172
204
|
let x;
|
|
173
|
-
e[
|
|
174
|
-
let M;
|
|
175
|
-
e[10] !== n || e[11] !== c ? (M = /* @__PURE__ */ i(Qt, { message: n, isDefaultMessage: c }), e[10] = n, e[11] = c, e[12] = M) : M = e[12];
|
|
205
|
+
e[15] !== j ? (x = /* @__PURE__ */ i(qt, { icon: j }), e[15] = j, e[16] = x) : x = e[16];
|
|
176
206
|
let O;
|
|
177
|
-
e[
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
207
|
+
e[17] !== s ? (O = /* @__PURE__ */ i(ye, { as: "h2", variant: "textLabel1", weight: "semiBold", align: "center", className: "shrink-0 whitespace-nowrap !text-black/80", children: s }), e[17] = s, e[18] = O) : O = e[18];
|
|
208
|
+
let y;
|
|
209
|
+
e[19] !== n || e[20] !== d ? (y = /* @__PURE__ */ i(Xt, { message: n, isDefaultMessage: d }), e[19] = n, e[20] = d, e[21] = y) : y = e[21];
|
|
210
|
+
const T = P ? g : N;
|
|
211
|
+
let A;
|
|
212
|
+
e[22] !== c || e[23] !== _ || e[24] !== p || e[25] !== te || e[26] !== E || e[27] !== h || e[28] !== M || e[29] !== L || e[30] !== m || e[31] !== T ? (A = /* @__PURE__ */ i("div", { className: "flex w-full flex-col items-start gap-1.5", children: /* @__PURE__ */ i(Jt, { countryCode: _, placeholder: m, value: L, onChange: te, onCountryCodeChange: h, countries: c, defaultCountry: p, onCountryChange: E, onValuesChange: M, inputRef: re, error: T }) }), e[22] = c, e[23] = _, e[24] = p, e[25] = te, e[26] = E, e[27] = h, e[28] = M, e[29] = L, e[30] = m, e[31] = T, e[32] = A) : A = e[32];
|
|
213
|
+
let a;
|
|
214
|
+
e[33] !== P || e[34] !== z || e[35] !== f ? (a = P ? /* @__PURE__ */ i(Qt, { phoneDisplay: f, onLogin: z }) : null, e[33] = P, e[34] = z, e[35] = f, e[36] = a) : a = e[36];
|
|
181
215
|
let I;
|
|
182
|
-
e[
|
|
183
|
-
|
|
216
|
+
e[37] !== A || e[38] !== a ? (I = /* @__PURE__ */ H("div", { className: "flex w-full flex-col items-start gap-4", children: [
|
|
217
|
+
A,
|
|
218
|
+
a
|
|
219
|
+
] }), e[37] = A, e[38] = a, e[39] = I) : I = e[39];
|
|
220
|
+
let F;
|
|
221
|
+
e[40] !== x || e[41] !== O || e[42] !== y || e[43] !== I || e[44] !== C ? (F = /* @__PURE__ */ H("div", { className: C, children: [
|
|
184
222
|
x,
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
223
|
+
O,
|
|
224
|
+
y,
|
|
225
|
+
I
|
|
226
|
+
] }), e[40] = x, e[41] = O, e[42] = y, e[43] = I, e[44] = C, e[45] = F) : F = e[45];
|
|
227
|
+
let R;
|
|
228
|
+
e[46] !== Y || e[47] !== $ || e[48] !== W || e[49] !== t || e[50] !== l ? (R = /* @__PURE__ */ i("div", { className: "flex w-full shrink-0 flex-col items-start border-t border-black/10 bg-[#FAFAFA] p-4", children: /* @__PURE__ */ i(Zt, { trigger: l, state: t, onPrimaryClick: $, onSecondaryClick: W, isPrimaryLoading: Y }) }), e[46] = Y, e[47] = $, e[48] = W, e[49] = t, e[50] = l, e[51] = R) : R = e[51];
|
|
229
|
+
let U;
|
|
230
|
+
return e[52] !== le || e[53] !== F || e[54] !== R || e[55] !== k ? (U = /* @__PURE__ */ H("div", { className: le, children: [
|
|
231
|
+
k,
|
|
232
|
+
F,
|
|
233
|
+
R
|
|
234
|
+
] }), e[52] = le, e[53] = F, e[54] = R, e[55] = k, e[56] = U) : U = e[56], U;
|
|
235
|
+
}
|
|
236
|
+
function eo(r) {
|
|
237
|
+
return r + 1;
|
|
196
238
|
}
|
|
197
|
-
function
|
|
239
|
+
function je(r) {
|
|
198
240
|
return Array.from({
|
|
199
|
-
length:
|
|
241
|
+
length: r
|
|
200
242
|
}, () => "");
|
|
201
243
|
}
|
|
202
|
-
function
|
|
203
|
-
const e =
|
|
204
|
-
open:
|
|
244
|
+
function mt(r) {
|
|
245
|
+
const e = B(110), {
|
|
246
|
+
open: l,
|
|
205
247
|
onOpenChange: t,
|
|
206
|
-
trigger:
|
|
248
|
+
trigger: o,
|
|
207
249
|
state: s,
|
|
208
250
|
headerTitle: n,
|
|
209
|
-
bodyTitle:
|
|
210
|
-
infoMessage:
|
|
211
|
-
phoneNumber:
|
|
212
|
-
onPhoneNumberChange:
|
|
213
|
-
onCountryCodeChange:
|
|
251
|
+
bodyTitle: d,
|
|
252
|
+
infoMessage: L,
|
|
253
|
+
phoneNumber: u,
|
|
254
|
+
onPhoneNumberChange: g,
|
|
255
|
+
onCountryCodeChange: N,
|
|
214
256
|
countries: f,
|
|
215
257
|
defaultCountry: m,
|
|
216
|
-
onCountryChange:
|
|
217
|
-
onValuesChange:
|
|
218
|
-
step:
|
|
219
|
-
defaultStep:
|
|
220
|
-
onStepChange:
|
|
221
|
-
onExistingAccountLoginClick:
|
|
222
|
-
phoneErrorMessage:
|
|
223
|
-
onPrimaryClick:
|
|
224
|
-
onSecondaryClick:
|
|
225
|
-
isPrimaryLoading:
|
|
226
|
-
maskedRecipient:
|
|
227
|
-
otpHeaderTitle:
|
|
228
|
-
onOtpBack:
|
|
229
|
-
otpError:
|
|
230
|
-
otpCanResend:
|
|
231
|
-
onOtpResend:
|
|
232
|
-
otpTimerText:
|
|
233
|
-
isOtpSubmitting:
|
|
234
|
-
otpValue:
|
|
235
|
-
onOtpChange:
|
|
236
|
-
otpLength:
|
|
237
|
-
onOtpSubmit:
|
|
238
|
-
otpTitle:
|
|
239
|
-
otpResendLabel:
|
|
240
|
-
otpSubmitLabel:
|
|
241
|
-
existingAccountErrorMessage:
|
|
242
|
-
phonePlaceholder:
|
|
243
|
-
countryCode:
|
|
244
|
-
icon:
|
|
245
|
-
isMobileOverride:
|
|
246
|
-
closeOnOutsideClick:
|
|
247
|
-
className:
|
|
248
|
-
} =
|
|
249
|
-
let pe;
|
|
250
|
-
e[0] !== g ? (pe = () => Re(g), e[0] = g, e[1] = pe) : pe = e[1];
|
|
251
|
-
const [bt, Ye] = $.useState(pe), gt = r ?? pt, je = E ?? bt;
|
|
252
|
-
let be;
|
|
253
|
-
e[2] !== g || e[3] !== je ? (be = je.slice(0, g).concat(Re(g)).slice(0, g), e[2] = g, e[3] = je, e[4] = be) : be = e[4];
|
|
254
|
-
const Ve = be;
|
|
255
|
-
let ge;
|
|
256
|
-
e[5] !== K || e[6] !== U || e[7] !== V ? (ge = U ?? Bt(K, V), e[5] = K, e[6] = U, e[7] = V, e[8] = ge) : ge = e[8];
|
|
257
|
-
const X = ge;
|
|
258
|
-
let _e;
|
|
259
|
-
e[9] !== t ? (_e = () => {
|
|
260
|
-
t(!1);
|
|
261
|
-
}, e[9] = t, e[10] = _e) : _e = e[10];
|
|
262
|
-
const Ke = _e;
|
|
263
|
-
let Le, Ne;
|
|
264
|
-
e[11] !== de ? (Le = () => {
|
|
265
|
-
it(de);
|
|
266
|
-
}, Ne = [de], e[11] = de, e[12] = Le, e[13] = Ne) : (Le = e[12], Ne = e[13]), $.useEffect(Le, Ne);
|
|
267
|
-
let ve;
|
|
268
|
-
e[14] !== p ? (ve = (N) => {
|
|
269
|
-
it(N), p == null || p(N);
|
|
270
|
-
}, e[14] = p, e[15] = ve) : ve = e[15];
|
|
271
|
-
const Xe = ve;
|
|
272
|
-
let Ce;
|
|
273
|
-
e[16] !== v || e[17] !== r ? (Ce = (N) => {
|
|
274
|
-
r == null && nt(N), v == null || v(N);
|
|
275
|
-
}, e[16] = v, e[17] = r, e[18] = Ce) : Ce = e[18];
|
|
276
|
-
const q = Ce;
|
|
277
|
-
let Ee;
|
|
278
|
-
e[19] !== C || e[20] !== E ? (Ee = (N) => {
|
|
279
|
-
E == null && Ye(N), C == null || C(N);
|
|
280
|
-
}, e[19] = C, e[20] = E, e[21] = Ee) : Ee = e[21];
|
|
281
|
-
const qe = Ee;
|
|
258
|
+
onCountryChange: _,
|
|
259
|
+
onValuesChange: h,
|
|
260
|
+
step: c,
|
|
261
|
+
defaultStep: p,
|
|
262
|
+
onStepChange: E,
|
|
263
|
+
onExistingAccountLoginClick: M,
|
|
264
|
+
phoneErrorMessage: z,
|
|
265
|
+
onPrimaryClick: $,
|
|
266
|
+
onSecondaryClick: W,
|
|
267
|
+
isPrimaryLoading: Y,
|
|
268
|
+
maskedRecipient: j,
|
|
269
|
+
otpHeaderTitle: ne,
|
|
270
|
+
onOtpBack: V,
|
|
271
|
+
otpError: se,
|
|
272
|
+
otpCanResend: P,
|
|
273
|
+
onOtpResend: re,
|
|
274
|
+
otpTimerText: xe,
|
|
275
|
+
isOtpSubmitting: q,
|
|
276
|
+
otpValue: S,
|
|
277
|
+
onOtpChange: K,
|
|
278
|
+
otpLength: X,
|
|
279
|
+
onOtpSubmit: J,
|
|
280
|
+
otpTitle: Q,
|
|
281
|
+
otpResendLabel: Z,
|
|
282
|
+
otpSubmitLabel: ee,
|
|
283
|
+
existingAccountErrorMessage: te,
|
|
284
|
+
phonePlaceholder: ae,
|
|
285
|
+
countryCode: oe,
|
|
286
|
+
icon: le,
|
|
287
|
+
isMobileOverride: k,
|
|
288
|
+
closeOnOutsideClick: ce,
|
|
289
|
+
className: C
|
|
290
|
+
} = r, x = o === void 0 ? "action" : o, O = s === void 0 ? "addNumber" : s, y = u === void 0 ? "" : u, T = p === void 0 ? "mobileNumber" : p, A = ne === void 0 ? St : ne, a = X === void 0 ? 6 : X, I = Q === void 0 ? Pt : Q, F = Z === void 0 ? kt : Z, R = ee === void 0 ? Tt : ee, U = ae === void 0 ? It : ae, b = oe === void 0 ? wt : oe, ie = ce === void 0 ? !0 : ce, st = Mt(), G = k ?? st, w = n ?? Bt[x], qe = d ?? Rt[x], Ke = L ?? ft, Xe = L == null, [de, rt] = D.useState(b), [ht, at] = D.useState(T);
|
|
282
291
|
let De;
|
|
283
|
-
e[
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
let xe, Oe;
|
|
292
|
-
e[31] !== g ? (xe = () => {
|
|
293
|
-
Ye((N) => N.length === g ? N : Re(g));
|
|
294
|
-
}, Oe = [g], e[31] = g, e[32] = xe, e[33] = Oe) : (xe = e[32], Oe = e[33]), $.useEffect(xe, Oe);
|
|
295
|
-
let Ie, Ae;
|
|
296
|
-
e[34] !== ue || e[35] !== o ? (Ie = () => {
|
|
297
|
-
if (ue)
|
|
298
|
-
return o ? document.body.classList.add(Ze) : document.body.classList.remove(Ze), tl;
|
|
299
|
-
}, Ae = [ue, o], e[34] = ue, e[35] = o, e[36] = Ie, e[37] = Ae) : (Ie = e[36], Ae = e[37]), $.useEffect(Ie, Ae);
|
|
292
|
+
e[0] !== a ? (De = () => je(a), e[0] = a, e[1] = De) : De = e[1];
|
|
293
|
+
const [pt, Je] = D.useState(De), bt = c ?? ht, Qe = S ?? pt;
|
|
294
|
+
let Me;
|
|
295
|
+
e[2] !== a || e[3] !== Qe ? (Me = Qe.slice(0, a).concat(je(a)).slice(0, a), e[2] = a, e[3] = Qe, e[4] = Me) : Me = e[4];
|
|
296
|
+
const Ze = Me;
|
|
297
|
+
let Oe;
|
|
298
|
+
e[5] !== de || e[6] !== j || e[7] !== y ? (Oe = j ?? At(de, y), e[5] = de, e[6] = j, e[7] = y, e[8] = Oe) : Oe = e[8];
|
|
299
|
+
const ue = Oe;
|
|
300
300
|
let we;
|
|
301
|
-
e[
|
|
302
|
-
|
|
303
|
-
|
|
301
|
+
e[9] !== t ? (we = () => {
|
|
302
|
+
t(!1);
|
|
303
|
+
}, e[9] = t, e[10] = we) : we = e[10];
|
|
304
|
+
const et = we;
|
|
305
|
+
let Ae, Ie;
|
|
306
|
+
e[11] !== b ? (Ae = () => {
|
|
307
|
+
rt(b);
|
|
308
|
+
}, Ie = [b], e[11] = b, e[12] = Ae, e[13] = Ie) : (Ae = e[12], Ie = e[13]), D.useEffect(Ae, Ie);
|
|
309
|
+
let Re;
|
|
310
|
+
e[14] !== N ? (Re = (v) => {
|
|
311
|
+
rt(v), N == null || N(v);
|
|
312
|
+
}, e[14] = N, e[15] = Re) : Re = e[15];
|
|
313
|
+
const tt = Re;
|
|
314
|
+
let Be;
|
|
315
|
+
e[16] !== E || e[17] !== c ? (Be = (v) => {
|
|
316
|
+
c == null && at(v), E == null || E(v);
|
|
317
|
+
}, e[16] = E, e[17] = c, e[18] = Be) : Be = e[18];
|
|
318
|
+
const fe = Be;
|
|
319
|
+
let Se;
|
|
320
|
+
e[19] !== K || e[20] !== S ? (Se = (v) => {
|
|
321
|
+
S == null && Je(v), K == null || K(v);
|
|
322
|
+
}, e[19] = K, e[20] = S, e[21] = Se) : Se = e[21];
|
|
323
|
+
const ot = Se;
|
|
324
|
+
let Te;
|
|
325
|
+
e[22] !== fe || e[23] !== M ? (Te = () => {
|
|
326
|
+
M == null || M(), fe("otp");
|
|
327
|
+
}, e[22] = fe, e[23] = M, e[24] = Te) : Te = e[24];
|
|
328
|
+
const lt = Te;
|
|
329
|
+
let Pe, ke;
|
|
330
|
+
e[25] !== T || e[26] !== l || e[27] !== a || e[28] !== c ? (Pe = () => {
|
|
331
|
+
l || (c == null && at(T), Je(je(a)));
|
|
332
|
+
}, ke = [T, l, a, c], e[25] = T, e[26] = l, e[27] = a, e[28] = c, e[29] = Pe, e[30] = ke) : (Pe = e[29], ke = e[30]), D.useEffect(Pe, ke);
|
|
333
|
+
let Fe, Ue;
|
|
334
|
+
e[31] !== a ? (Fe = () => {
|
|
335
|
+
Je((v) => v.length === a ? v : je(a));
|
|
336
|
+
}, Ue = [a], e[31] = a, e[32] = Fe, e[33] = Ue) : (Fe = e[32], Ue = e[33]), D.useEffect(Fe, Ue);
|
|
337
|
+
let Ge, He;
|
|
338
|
+
e[34] !== G || e[35] !== l ? (Ge = () => {
|
|
339
|
+
if (G)
|
|
340
|
+
return l ? document.body.classList.add(nt) : document.body.classList.remove(nt), to;
|
|
341
|
+
}, He = [G, l], e[34] = G, e[35] = l, e[36] = Ge, e[37] = He) : (Ge = e[36], He = e[37]), D.useEffect(Ge, He);
|
|
342
|
+
let ze;
|
|
343
|
+
e[38] !== de || e[39] !== C || e[40] !== f || e[41] !== m || e[42] !== te || e[43] !== et || e[44] !== tt || e[45] !== lt || e[46] !== le || e[47] !== Xe || e[48] !== Y || e[49] !== _ || e[50] !== g || e[51] !== $ || e[52] !== W || e[53] !== h || e[54] !== z || e[55] !== y || e[56] !== U || e[57] !== qe || e[58] !== w || e[59] !== Ke || e[60] !== ue || e[61] !== O || e[62] !== x ? (ze = {
|
|
344
|
+
trigger: x,
|
|
345
|
+
state: O,
|
|
304
346
|
headerTitle: w,
|
|
305
|
-
bodyTitle:
|
|
306
|
-
infoMessage:
|
|
307
|
-
isDefaultInfoMessage:
|
|
308
|
-
phoneNumber:
|
|
309
|
-
onPhoneNumberChange:
|
|
310
|
-
existingAccountErrorMessage:
|
|
311
|
-
phoneErrorMessage:
|
|
312
|
-
phoneDisplay:
|
|
313
|
-
phonePlaceholder:
|
|
314
|
-
countryCode:
|
|
315
|
-
onCountryCodeChange:
|
|
347
|
+
bodyTitle: qe,
|
|
348
|
+
infoMessage: Ke,
|
|
349
|
+
isDefaultInfoMessage: Xe,
|
|
350
|
+
phoneNumber: y,
|
|
351
|
+
onPhoneNumberChange: g,
|
|
352
|
+
existingAccountErrorMessage: te,
|
|
353
|
+
phoneErrorMessage: z,
|
|
354
|
+
phoneDisplay: ue,
|
|
355
|
+
phonePlaceholder: U,
|
|
356
|
+
countryCode: de,
|
|
357
|
+
onCountryCodeChange: tt,
|
|
316
358
|
countries: f,
|
|
317
359
|
defaultCountry: m,
|
|
318
|
-
onCountryChange:
|
|
319
|
-
onValuesChange:
|
|
320
|
-
onExistingAccountLogin:
|
|
321
|
-
onPrimaryClick:
|
|
322
|
-
onSecondaryClick:
|
|
323
|
-
isPrimaryLoading:
|
|
324
|
-
icon:
|
|
325
|
-
onClose:
|
|
326
|
-
className:
|
|
327
|
-
}, e[38] =
|
|
328
|
-
const
|
|
329
|
-
let
|
|
330
|
-
e[64] !==
|
|
331
|
-
const
|
|
332
|
-
let
|
|
333
|
-
e[67] !==
|
|
334
|
-
headerTitle:
|
|
335
|
-
title:
|
|
336
|
-
phoneDisplay:
|
|
337
|
-
otp:
|
|
338
|
-
onOtpChange:
|
|
339
|
-
onOtpSubmit:
|
|
340
|
-
onBack:
|
|
341
|
-
otpError:
|
|
342
|
-
canResend:
|
|
343
|
-
onResend:
|
|
344
|
-
timerText:
|
|
345
|
-
submitLabel:
|
|
346
|
-
isSubmitting:
|
|
347
|
-
className:
|
|
348
|
-
}, e[67] =
|
|
349
|
-
const
|
|
350
|
-
if (
|
|
351
|
-
let
|
|
352
|
-
e[82] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
353
|
-
let
|
|
354
|
-
e[83] !== w ? (
|
|
355
|
-
let
|
|
356
|
-
e[85] !==
|
|
357
|
-
let
|
|
358
|
-
e[89] !==
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
] }), e[89] =
|
|
362
|
-
let
|
|
363
|
-
return e[92] !== t || e[93] !==
|
|
360
|
+
onCountryChange: _,
|
|
361
|
+
onValuesChange: h,
|
|
362
|
+
onExistingAccountLogin: lt,
|
|
363
|
+
onPrimaryClick: $,
|
|
364
|
+
onSecondaryClick: W,
|
|
365
|
+
isPrimaryLoading: Y,
|
|
366
|
+
icon: le,
|
|
367
|
+
onClose: et,
|
|
368
|
+
className: C
|
|
369
|
+
}, e[38] = de, e[39] = C, e[40] = f, e[41] = m, e[42] = te, e[43] = et, e[44] = tt, e[45] = lt, e[46] = le, e[47] = Xe, e[48] = Y, e[49] = _, e[50] = g, e[51] = $, e[52] = W, e[53] = h, e[54] = z, e[55] = y, e[56] = U, e[57] = qe, e[58] = w, e[59] = Ke, e[60] = ue, e[61] = O, e[62] = x, e[63] = ze) : ze = e[63];
|
|
370
|
+
const me = ze;
|
|
371
|
+
let he;
|
|
372
|
+
e[64] !== fe || e[65] !== V ? (he = V ?? (() => fe("mobileNumber")), e[64] = fe, e[65] = V, e[66] = he) : he = e[66];
|
|
373
|
+
const it = xe ?? F;
|
|
374
|
+
let $e;
|
|
375
|
+
e[67] !== C || e[68] !== ot || e[69] !== q || e[70] !== re || e[71] !== J || e[72] !== Ze || e[73] !== P || e[74] !== se || e[75] !== A || e[76] !== R || e[77] !== I || e[78] !== ue || e[79] !== he || e[80] !== it ? ($e = {
|
|
376
|
+
headerTitle: A,
|
|
377
|
+
title: I,
|
|
378
|
+
phoneDisplay: ue,
|
|
379
|
+
otp: Ze,
|
|
380
|
+
onOtpChange: ot,
|
|
381
|
+
onOtpSubmit: J,
|
|
382
|
+
onBack: he,
|
|
383
|
+
otpError: se,
|
|
384
|
+
canResend: P,
|
|
385
|
+
onResend: re,
|
|
386
|
+
timerText: it,
|
|
387
|
+
submitLabel: R,
|
|
388
|
+
isSubmitting: q,
|
|
389
|
+
className: C
|
|
390
|
+
}, e[67] = C, e[68] = ot, e[69] = q, e[70] = re, e[71] = J, e[72] = Ze, e[73] = P, e[74] = se, e[75] = A, e[76] = R, e[77] = I, e[78] = ue, e[79] = he, e[80] = it, e[81] = $e) : $e = e[81];
|
|
391
|
+
const pe = $e, be = bt === "otp" && O === "existingAccount";
|
|
392
|
+
if (G) {
|
|
393
|
+
let v;
|
|
394
|
+
e[82] === Symbol.for("react.memo_cache_sentinel") ? (v = Ve(Wt, "flex h-auto max-h-[90vh] max-h-[90dvh] w-full flex-col overflow-hidden rounded-t-[16px] border-0 p-0"), e[82] = v) : v = e[82];
|
|
395
|
+
let Le;
|
|
396
|
+
e[83] !== w ? (Le = /* @__PURE__ */ i(Ct, { className: "sr-only", children: /* @__PURE__ */ i(yt, { children: w }) }), e[83] = w, e[84] = Le) : Le = e[84];
|
|
397
|
+
let Ne;
|
|
398
|
+
e[85] !== pe || e[86] !== be || e[87] !== me ? (Ne = be ? /* @__PURE__ */ i(dt, { ...pe, surface: "drawer" }) : /* @__PURE__ */ i(ut, { ...me, surface: "drawer" }), e[85] = pe, e[86] = be, e[87] = me, e[88] = Ne) : Ne = e[88];
|
|
399
|
+
let Ee;
|
|
400
|
+
e[89] !== Le || e[90] !== Ne ? (Ee = /* @__PURE__ */ H(xt, { "aria-describedby": void 0, className: v, "data-mobile-number-dialog-drawer-content": !0, children: [
|
|
401
|
+
Le,
|
|
402
|
+
Ne
|
|
403
|
+
] }), e[89] = Le, e[90] = Ne, e[91] = Ee) : Ee = e[91];
|
|
404
|
+
let Ye;
|
|
405
|
+
return e[92] !== t || e[93] !== l || e[94] !== Ee ? (Ye = /* @__PURE__ */ i(Dt, { dismissible: !0, open: l, onOpenChange: t, children: Ee }), e[92] = t, e[93] = l, e[94] = Ee, e[95] = Ye) : Ye = e[95], Ye;
|
|
364
406
|
}
|
|
365
|
-
let
|
|
366
|
-
e[96] !== w ? (
|
|
367
|
-
let
|
|
368
|
-
e[98] !==
|
|
369
|
-
let
|
|
370
|
-
e[102] !==
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
] }), e[102] =
|
|
374
|
-
let
|
|
375
|
-
return e[106] !== t || e[107] !==
|
|
407
|
+
let ge;
|
|
408
|
+
e[96] !== w ? (ge = /* @__PURE__ */ i(vt, { className: "sr-only", children: /* @__PURE__ */ i(Lt, { children: w }) }), e[96] = w, e[97] = ge) : ge = e[97];
|
|
409
|
+
let _e;
|
|
410
|
+
e[98] !== pe || e[99] !== be || e[100] !== me ? (_e = be ? /* @__PURE__ */ i(dt, { ...pe, surface: "dialog" }) : /* @__PURE__ */ i(ut, { ...me, surface: "dialog" }), e[98] = pe, e[99] = be, e[100] = me, e[101] = _e) : _e = e[101];
|
|
411
|
+
let ve;
|
|
412
|
+
e[102] !== ie || e[103] !== ge || e[104] !== _e ? (ve = /* @__PURE__ */ H(Nt, { "aria-describedby": void 0, className: "max-w-[384px] overflow-visible rounded-[16px] border-0 bg-transparent p-0 shadow-none outline-none focus:outline-none focus-visible:outline-none", closeOnOutsideClick: ie, showCloseButton: !1, size: "sm", children: [
|
|
413
|
+
ge,
|
|
414
|
+
_e
|
|
415
|
+
] }), e[102] = ie, e[103] = ge, e[104] = _e, e[105] = ve) : ve = e[105];
|
|
416
|
+
let We;
|
|
417
|
+
return e[106] !== t || e[107] !== l || e[108] !== ve ? (We = /* @__PURE__ */ i(Et, { open: l, onOpenChange: t, modal: !0, children: ve }), e[106] = t, e[107] = l, e[108] = ve, e[109] = We) : We = e[109], We;
|
|
376
418
|
}
|
|
377
|
-
function
|
|
378
|
-
return document.body.classList.remove(
|
|
419
|
+
function to() {
|
|
420
|
+
return document.body.classList.remove(nt);
|
|
379
421
|
}
|
|
380
|
-
const
|
|
422
|
+
const go = mt, _o = mt;
|
|
381
423
|
export {
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
424
|
+
_o as DoctAccountConflictPrompt,
|
|
425
|
+
go as DoctMobileNumberDialog,
|
|
426
|
+
mt as MobileNumberDialog
|
|
385
427
|
};
|