docthub-core-components 3.2.9 → 3.3.1

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.
@@ -0,0 +1,265 @@
1
+ "use client";
2
+ import { jsx as s, jsxs as v, Fragment as te } from "react/jsx-runtime";
3
+ import { c as b } from "react-compiler-runtime";
4
+ import { Smartphone as le, X as ie } from "lucide-react";
5
+ import * as se from "react";
6
+ import { DoctButton as H } from "../../../ui/button.js";
7
+ import { DialogHeader as oe, DialogTitle as ne, DialogContent as re, Dialog as ae } from "../../../ui/dialog.js";
8
+ import { DrawerHeader as ce, DrawerTitle as de, DrawerContent as fe, Drawer as me } from "../../../ui/drawer.js";
9
+ import { Input as ue } from "../../../ui/input.js";
10
+ import { DoctTypography as E } from "../../../ui/typography.js";
11
+ import { useIsMobile as he } from "../../../../hooks/use-mobile.js";
12
+ import { cn as Z } from "../../../../lib/utils.js";
13
+ import { buildPhoneDisplay as pe, ACCOUNT_CONFLICT_PROMPT_DEFAULT_COUNTRY_CODE as be, ACCOUNT_CONFLICT_PROMPT_DEFAULT_PHONE_PLACEHOLDER as Ce, ACCOUNT_CONFLICT_PROMPT_BODY_TITLE as ge, ACCOUNT_CONFLICT_PROMPT_HEADER_TITLE as xe, ACCOUNT_CONFLICT_PROMPT_DEFAULT_INFO_MESSAGE as ee, ACCOUNT_CONFLICT_PROMPT_PRIMARY_LABEL as Ne, buildLoginWithPhoneLabel as _e, ACCOUNT_CONFLICT_PROMPT_LOGIN_UNIFY_HINT as ve, isPrimaryDisabled as Te, ACCOUNT_CONFLICT_PROMPT_SECONDARY_LABEL as we } from "./presets.js";
14
+ import { ACCOUNT_CONFLICT_PROMPT_DRAWER_BACKDROP_CLASS as J } from "./types.js";
15
+ const ye = "[&>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", Ae = "flex w-full flex-col overflow-hidden border border-black/[0.12] bg-white";
16
+ function Pe(r) {
17
+ const e = b(3), {
18
+ onClose: i
19
+ } = r;
20
+ let t;
21
+ e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ s(ie, { className: "size-6", "aria-hidden": !0 }), e[0] = t) : t = e[0];
22
+ let l;
23
+ return e[1] !== i ? (l = /* @__PURE__ */ s(H, { type: "button", variant: "ghost", onClick: i, className: "flex size-12 shrink-0 items-center justify-center rounded-full p-0 text-black/70", "aria-label": "Close", icon: t }), e[1] = i, e[2] = l) : l = e[2], l;
24
+ }
25
+ function Oe(r) {
26
+ const e = b(7), {
27
+ title: i,
28
+ onClose: t
29
+ } = r;
30
+ let l;
31
+ e[0] !== i ? (l = /* @__PURE__ */ s("div", { className: "flex min-h-12 min-w-0 flex-1 items-center py-[18px]", children: /* @__PURE__ */ s(E, { as: "p", variant: "textLabel1", weight: "semiBold", align: "left", className: "min-w-0 !text-black/80", children: i }) }), e[0] = i, e[1] = l) : l = e[1];
32
+ let n;
33
+ e[2] !== t ? (n = /* @__PURE__ */ s(Pe, { onClose: t }), e[2] = t, e[3] = n) : n = e[3];
34
+ let o;
35
+ return e[4] !== l || e[5] !== n ? (o = /* @__PURE__ */ v("div", { className: "flex w-full shrink-0 items-start justify-between overflow-hidden pl-4", children: [
36
+ l,
37
+ n
38
+ ] }), e[4] = l, e[5] = n, e[6] = o) : o = e[6], o;
39
+ }
40
+ function Le(r) {
41
+ const e = b(4), {
42
+ icon: i
43
+ } = r;
44
+ let t;
45
+ e[0] !== i ? (t = i ?? /* @__PURE__ */ s(le, { className: "size-6 text-white", strokeWidth: 1.75, "aria-hidden": !0 }), e[0] = i, e[1] = t) : t = e[1];
46
+ let l;
47
+ return e[2] !== t ? (l = /* @__PURE__ */ s("div", { className: "flex size-12 shrink-0 items-center justify-center rounded-xl bg-[#00A0C0] px-3", children: t }), e[2] = t, e[3] = l) : l = e[3], l;
48
+ }
49
+ function De() {
50
+ const r = b(1);
51
+ let e;
52
+ return r[0] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ s(E, { as: "p", variant: "textLabel3", weight: "medium", align: "left", className: "w-full !text-[#4389FF]", children: ee }), r[0] = e) : e = r[0], e;
53
+ }
54
+ function Me(r) {
55
+ const e = b(3), {
56
+ message: i,
57
+ isDefaultMessage: t
58
+ } = r;
59
+ let l;
60
+ return e[0] !== t || e[1] !== i ? (l = /* @__PURE__ */ s("div", { className: "w-full self-stretch rounded-xl bg-[rgba(67,137,255,0.12)] p-[14px]", children: t ? /* @__PURE__ */ s(De, {}) : /* @__PURE__ */ s(E, { as: "p", variant: "textLabel3", weight: "medium", align: "left", className: "w-full !text-[#4389FF]", children: i }) }), e[0] = t, e[1] = i, e[2] = l) : l = e[2], l;
61
+ }
62
+ function Q(r) {
63
+ const e = b(12), {
64
+ countryCode: i,
65
+ placeholder: t,
66
+ value: l,
67
+ onChange: n
68
+ } = r;
69
+ let o;
70
+ e[0] !== i ? (o = /* @__PURE__ */ s(E, { as: "span", variant: "body2", weight: "regular", className: "w-[42px] shrink-0 !text-center !text-black", children: i }), e[0] = i, e[1] = o) : o = e[1];
71
+ let m;
72
+ e[2] === Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ s("div", { "aria-hidden": !0, className: "h-[42px] w-px shrink-0 bg-black/10" }), e[2] = m) : m = e[2];
73
+ let c;
74
+ e[3] !== n ? (c = (u) => n == null ? void 0 : n(u.target.value), e[3] = n, e[4] = c) : c = e[4];
75
+ let a;
76
+ e[5] !== t || e[6] !== c || e[7] !== l ? (a = /* @__PURE__ */ s(ue, { type: "tel", inputMode: "numeric", placeholder: t, value: l, onChange: c, className: "h-[42px] min-h-[42px] flex-1 rounded-none border-0 bg-transparent px-0 text-left text-sm leading-5 text-black shadow-none placeholder:text-black/40 focus-visible:ring-0 md:text-sm", "aria-label": "Mobile number" }), e[5] = t, e[6] = c, e[7] = l, e[8] = a) : a = e[8];
77
+ let d;
78
+ return e[9] !== o || e[10] !== a ? (d = /* @__PURE__ */ v("div", { className: "flex w-full items-center gap-3 overflow-hidden rounded-lg border border-black/10 bg-white px-3", children: [
79
+ o,
80
+ m,
81
+ a
82
+ ] }), e[9] = o, e[10] = a, e[11] = d) : d = e[11], d;
83
+ }
84
+ function Ee(r) {
85
+ const e = b(2), {
86
+ message: i
87
+ } = r;
88
+ let t;
89
+ return e[0] !== i ? (t = /* @__PURE__ */ s(E, { as: "p", variant: "textLabel4", weight: "medium", align: "left", className: "w-full !text-[#EA4335]", children: i }), e[0] = i, e[1] = t) : t = e[1], t;
90
+ }
91
+ function Fe(r) {
92
+ const e = b(7), {
93
+ phoneDisplay: i
94
+ } = r;
95
+ let t;
96
+ e[0] !== i ? (t = _e(i), e[0] = i, e[1] = t) : t = e[1];
97
+ let l;
98
+ e[2] !== t ? (l = /* @__PURE__ */ s(H, { type: "button", variant: "outline", size: "medium", fullWidth: !0, children: t }), e[2] = t, e[3] = l) : l = e[3];
99
+ let n;
100
+ e[4] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ s(E, { as: "p", variant: "body5", weight: "regular", className: "w-full !text-center !text-black/44", children: ve }), e[4] = n) : n = e[4];
101
+ let o;
102
+ return e[5] !== l ? (o = /* @__PURE__ */ v("div", { className: "flex w-full flex-col items-center gap-1.5 rounded-xl bg-black/[0.04] p-3", children: [
103
+ l,
104
+ n
105
+ ] }), e[5] = l, e[6] = o) : o = e[6], o;
106
+ }
107
+ function Ie(r) {
108
+ const e = b(11), {
109
+ trigger: i,
110
+ state: t
111
+ } = r, l = Ne[i][t];
112
+ let n;
113
+ e[0] !== t ? (n = Te(t), e[0] = t, e[1] = n) : n = e[1];
114
+ const o = n;
115
+ if (i === "system") {
116
+ const d = o ? "disabled" : "primary";
117
+ let u;
118
+ return e[2] !== o || e[3] !== l || e[4] !== d ? (u = /* @__PURE__ */ s(H, { type: "button", size: "medium", fullWidth: !0, variant: d, disabled: o, children: l }), e[2] = o, e[3] = l, e[4] = d, e[5] = u) : u = e[5], u;
119
+ }
120
+ let m;
121
+ e[6] === Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ s(H, { type: "button", size: "medium", variant: "secondary", className: "shrink-0", children: we }), e[6] = m) : m = e[6];
122
+ const c = o ? "disabled" : "primary";
123
+ let a;
124
+ return e[7] !== o || e[8] !== l || e[9] !== c ? (a = /* @__PURE__ */ v("div", { className: "flex w-full items-start gap-2.5", children: [
125
+ m,
126
+ /* @__PURE__ */ s(H, { type: "button", size: "medium", fullWidth: !0, variant: c, disabled: o, className: "min-w-0 flex-1", children: l })
127
+ ] }), e[7] = o, e[8] = l, e[9] = c, e[10] = a) : a = e[10], a;
128
+ }
129
+ function V(r) {
130
+ const e = b(34), {
131
+ trigger: i,
132
+ state: t,
133
+ headerTitle: l,
134
+ bodyTitle: n,
135
+ infoMessage: o,
136
+ isDefaultInfoMessage: m,
137
+ phoneNumber: c,
138
+ onPhoneNumberChange: a,
139
+ existingAccountErrorMessage: d,
140
+ phoneDisplay: u,
141
+ phonePlaceholder: A,
142
+ countryCode: P,
143
+ icon: O,
144
+ onClose: $,
145
+ className: L,
146
+ surface: D
147
+ } = r, M = t === "existingAccount", C = D === "drawer" ? "h-auto max-w-none rounded-t-[16px]" : "max-w-[320px] rounded-[16px] shadow-[0_8px_24px_rgba(0,0,0,0.12)]";
148
+ let T;
149
+ e[0] !== L || e[1] !== C ? (T = Z(Ae, C, L), e[0] = L, e[1] = C, e[2] = T) : T = e[2];
150
+ const g = T;
151
+ let w;
152
+ e[3] !== l || e[4] !== $ ? (w = /* @__PURE__ */ s(Oe, { title: l, onClose: $ }), e[3] = l, e[4] = $, e[5] = w) : w = e[5];
153
+ let h;
154
+ e[6] !== O ? (h = /* @__PURE__ */ s(Le, { icon: O }), e[6] = O, e[7] = h) : h = e[7];
155
+ let f;
156
+ e[8] !== n ? (f = /* @__PURE__ */ s(E, { as: "h2", variant: "textLabel1", weight: "semiBold", align: "center", className: "shrink-0 whitespace-nowrap !text-black/80", children: n }), e[8] = n, e[9] = f) : f = e[9];
157
+ let x;
158
+ e[10] !== o || e[11] !== m ? (x = /* @__PURE__ */ s(Me, { message: o, isDefaultMessage: m }), e[10] = o, e[11] = m, e[12] = x) : x = e[12];
159
+ let N;
160
+ e[13] !== P || e[14] !== d || e[15] !== M || e[16] !== a || e[17] !== u || e[18] !== c || e[19] !== A ? (N = /* @__PURE__ */ s("div", { className: "flex w-full flex-col items-start gap-4", children: M ? /* @__PURE__ */ v(te, { children: [
161
+ /* @__PURE__ */ v("div", { className: "flex w-full flex-col items-start gap-1.5", children: [
162
+ /* @__PURE__ */ s(Q, { countryCode: P, placeholder: A, value: c, onChange: a }),
163
+ d ? /* @__PURE__ */ s(Ee, { message: d }) : null
164
+ ] }),
165
+ /* @__PURE__ */ s(Fe, { phoneDisplay: u })
166
+ ] }) : /* @__PURE__ */ s(Q, { countryCode: P, placeholder: A, value: c, onChange: a }) }), e[13] = P, e[14] = d, e[15] = M, e[16] = a, e[17] = u, e[18] = c, e[19] = A, e[20] = N) : N = e[20];
167
+ let _;
168
+ e[21] !== h || e[22] !== f || e[23] !== x || e[24] !== N ? (_ = /* @__PURE__ */ v("div", { className: "flex w-full flex-col items-center gap-4 px-4 pb-5 pt-4", children: [
169
+ h,
170
+ f,
171
+ x,
172
+ N
173
+ ] }), e[21] = h, e[22] = f, e[23] = x, e[24] = N, e[25] = _) : _ = e[25];
174
+ let p;
175
+ e[26] !== t || e[27] !== i ? (p = /* @__PURE__ */ s("div", { className: "flex w-full flex-col items-start border-t border-black/10 bg-[#FAFAFA] p-4", children: /* @__PURE__ */ s(Ie, { trigger: i, state: t }) }), e[26] = t, e[27] = i, e[28] = p) : p = e[28];
176
+ let y;
177
+ return e[29] !== g || e[30] !== w || e[31] !== _ || e[32] !== p ? (y = /* @__PURE__ */ v("div", { className: g, children: [
178
+ w,
179
+ _,
180
+ p
181
+ ] }), e[29] = g, e[30] = w, e[31] = _, e[32] = p, e[33] = y) : y = e[33], y;
182
+ }
183
+ function Xe(r) {
184
+ const e = b(48), {
185
+ open: i,
186
+ onOpenChange: t,
187
+ trigger: l,
188
+ state: n,
189
+ headerTitle: o,
190
+ bodyTitle: m,
191
+ infoMessage: c,
192
+ phoneNumber: a,
193
+ onPhoneNumberChange: d,
194
+ existingAccountErrorMessage: u,
195
+ phonePlaceholder: A,
196
+ countryCode: P,
197
+ icon: O,
198
+ isMobileOverride: $,
199
+ className: L
200
+ } = r, D = l === void 0 ? "system" : l, M = n === void 0 ? "addNumber" : n, C = a === void 0 ? "" : a, T = A === void 0 ? Ce : A, g = P === void 0 ? be : P, w = he(), h = $ ?? w, f = o ?? xe[D], x = m ?? ge[D], N = c ?? ee, _ = c == null;
201
+ let p;
202
+ e[0] !== g || e[1] !== C ? (p = pe(g, C), e[0] = g, e[1] = C, e[2] = p) : p = e[2];
203
+ const y = p;
204
+ let z;
205
+ e[3] !== t ? (z = () => {
206
+ t(!1);
207
+ }, e[3] = t, e[4] = z) : z = e[4];
208
+ const q = z;
209
+ let W, j;
210
+ e[5] !== h || e[6] !== i ? (W = () => {
211
+ if (h)
212
+ return i ? document.body.classList.add(J) : document.body.classList.remove(J), ke;
213
+ }, j = [h, i], e[5] = h, e[6] = i, e[7] = W, e[8] = j) : (W = e[7], j = e[8]), se.useEffect(W, j);
214
+ let Y;
215
+ e[9] !== L || e[10] !== g || e[11] !== u || e[12] !== q || e[13] !== O || e[14] !== _ || e[15] !== d || e[16] !== C || e[17] !== T || e[18] !== x || e[19] !== f || e[20] !== N || e[21] !== y || e[22] !== M || e[23] !== D ? (Y = {
216
+ trigger: D,
217
+ state: M,
218
+ headerTitle: f,
219
+ bodyTitle: x,
220
+ infoMessage: N,
221
+ isDefaultInfoMessage: _,
222
+ phoneNumber: C,
223
+ onPhoneNumberChange: d,
224
+ existingAccountErrorMessage: u,
225
+ phoneDisplay: y,
226
+ phonePlaceholder: T,
227
+ countryCode: g,
228
+ icon: O,
229
+ onClose: q,
230
+ className: L
231
+ }, e[9] = L, e[10] = g, e[11] = u, e[12] = q, e[13] = O, e[14] = _, e[15] = d, e[16] = C, e[17] = T, e[18] = x, e[19] = f, e[20] = N, e[21] = y, e[22] = M, e[23] = D, e[24] = Y) : Y = e[24];
232
+ const F = Y;
233
+ if (h) {
234
+ let K;
235
+ e[25] === Symbol.for("react.memo_cache_sentinel") ? (K = Z(ye, "flex h-auto max-h-[90vh] w-full flex-col overflow-hidden rounded-t-[16px] border-0 p-0"), e[25] = K) : K = e[25];
236
+ let S;
237
+ e[26] !== f ? (S = /* @__PURE__ */ s(ce, { className: "sr-only", children: /* @__PURE__ */ s(de, { children: f }) }), e[26] = f, e[27] = S) : S = e[27];
238
+ let U;
239
+ e[28] !== F ? (U = /* @__PURE__ */ s(V, { ...F, surface: "drawer" }), e[28] = F, e[29] = U) : U = e[29];
240
+ let B;
241
+ e[30] !== S || e[31] !== U ? (B = /* @__PURE__ */ v(fe, { "aria-describedby": void 0, className: K, "data-account-conflict-prompt-drawer-content": !0, children: [
242
+ S,
243
+ U
244
+ ] }), e[30] = S, e[31] = U, e[32] = B) : B = e[32];
245
+ let X;
246
+ return e[33] !== t || e[34] !== i || e[35] !== B ? (X = /* @__PURE__ */ s(me, { dismissible: !0, open: i, onOpenChange: t, children: B }), e[33] = t, e[34] = i, e[35] = B, e[36] = X) : X = e[36], X;
247
+ }
248
+ let I;
249
+ e[37] !== f ? (I = /* @__PURE__ */ s(oe, { className: "sr-only", children: /* @__PURE__ */ s(ne, { children: f }) }), e[37] = f, e[38] = I) : I = e[38];
250
+ let k;
251
+ e[39] !== F ? (k = /* @__PURE__ */ s(V, { ...F, surface: "dialog" }), e[39] = F, e[40] = k) : k = e[40];
252
+ let R;
253
+ e[41] !== I || e[42] !== k ? (R = /* @__PURE__ */ v(re, { "aria-describedby": void 0, className: "max-w-[320px] overflow-visible rounded-[16px] border-0 bg-transparent p-0 shadow-none", closeOnOutsideClick: !0, showCloseButton: !1, size: "sm", children: [
254
+ I,
255
+ k
256
+ ] }), e[41] = I, e[42] = k, e[43] = R) : R = e[43];
257
+ let G;
258
+ return e[44] !== t || e[45] !== i || e[46] !== R ? (G = /* @__PURE__ */ s(ae, { open: i, onOpenChange: t, modal: !0, children: R }), e[44] = t, e[45] = i, e[46] = R, e[47] = G) : G = e[47], G;
259
+ }
260
+ function ke() {
261
+ return document.body.classList.remove(J);
262
+ }
263
+ export {
264
+ Xe as DoctAccountConflictPrompt
265
+ };
@@ -0,0 +1,50 @@
1
+ "use client";
2
+ const o = "+91", C = "Enter number", T = "9825910X0X", O = "+91 9825910X0X", i = "user******@gmail.com", r = "Your mobile number required to complete certain actions as well as it's associated with security of your Docthub account.", s = {
3
+ system: "To continue..",
4
+ action: "Add mobile number"
5
+ }, c = {
6
+ system: "Add your mobile number",
7
+ action: "Keep your account secure"
8
+ }, u = "your accounts will be unified on login";
9
+ function _(n) {
10
+ return `This phone is already registered with “${n}”. Please use different phone number or login with this mobile number`;
11
+ }
12
+ const N = _(i);
13
+ function A(n) {
14
+ return n ? `Login with ‘${n}’` : "Login";
15
+ }
16
+ function L(n, e) {
17
+ const t = e.trim();
18
+ return t ? t.startsWith(n) ? t : `${n} ${t}` : n;
19
+ }
20
+ const P = {
21
+ system: {
22
+ addNumber: "Continue",
23
+ existingAccount: "Continue"
24
+ },
25
+ action: {
26
+ addNumber: "Save",
27
+ existingAccount: "Save"
28
+ }
29
+ }, E = "Add later";
30
+ function a(n) {
31
+ return n === "existingAccount";
32
+ }
33
+ export {
34
+ c as ACCOUNT_CONFLICT_PROMPT_BODY_TITLE,
35
+ o as ACCOUNT_CONFLICT_PROMPT_DEFAULT_COUNTRY_CODE,
36
+ N as ACCOUNT_CONFLICT_PROMPT_DEFAULT_EXISTING_ACCOUNT_ERROR,
37
+ r as ACCOUNT_CONFLICT_PROMPT_DEFAULT_INFO_MESSAGE,
38
+ i as ACCOUNT_CONFLICT_PROMPT_DEFAULT_MASKED_EMAIL,
39
+ O as ACCOUNT_CONFLICT_PROMPT_DEFAULT_PHONE_DISPLAY,
40
+ T as ACCOUNT_CONFLICT_PROMPT_DEFAULT_PHONE_NUMBER,
41
+ C as ACCOUNT_CONFLICT_PROMPT_DEFAULT_PHONE_PLACEHOLDER,
42
+ s as ACCOUNT_CONFLICT_PROMPT_HEADER_TITLE,
43
+ u as ACCOUNT_CONFLICT_PROMPT_LOGIN_UNIFY_HINT,
44
+ P as ACCOUNT_CONFLICT_PROMPT_PRIMARY_LABEL,
45
+ E as ACCOUNT_CONFLICT_PROMPT_SECONDARY_LABEL,
46
+ _ as buildExistingAccountError,
47
+ A as buildLoginWithPhoneLabel,
48
+ L as buildPhoneDisplay,
49
+ a as isPrimaryDisabled
50
+ };
@@ -0,0 +1,5 @@
1
+ "use client";
2
+ const C = "login-drawer-backdrop";
3
+ export {
4
+ C as ACCOUNT_CONFLICT_PROMPT_DRAWER_BACKDROP_CLASS
5
+ };
@@ -1,45 +1,51 @@
1
1
  "use client";
2
- import { jsx as t, jsxs as b } from "react/jsx-runtime";
2
+ import { jsx as t, jsxs as w } from "react/jsx-runtime";
3
3
  import { c as D } from "react-compiler-runtime";
4
+ import { X as N } from "lucide-react";
4
5
  import { DoctButton as k } from "./button.js";
5
- import { DialogHeader as w, DialogTitle as C, DialogDescription as A, DialogClose as N, DialogFooter as B, DialogContent as j, Dialog as v } from "./dialog.js";
6
- import { cn as O } from "../../lib/utils.js";
7
- const _ = (y) => {
8
- const e = D(21), {
9
- open: u,
10
- defaultOpen: p,
11
- onOpenChange: h,
12
- cookiePolicyRoute: x,
13
- onPolicyClick: r,
6
+ import { DialogTitle as v, DialogHeader as F, DialogClose as y, DialogDescription as B, DialogFooter as _, DialogContent as O, Dialog as j } from "./dialog.js";
7
+ import { cn as z } from "../../lib/utils.js";
8
+ const A = (C) => {
9
+ const e = D(22), {
10
+ open: h,
11
+ defaultOpen: x,
12
+ onOpenChange: u,
13
+ cookiePolicyRoute: g,
14
+ onPolicyClick: l,
14
15
  onAccept: a,
15
- className: g
16
- } = y;
16
+ className: b
17
+ } = C;
17
18
  let o;
18
- e[0] !== g ? (o = O("!max-w-[340px] !rounded-2xl bg-[#525252] text-white p-3", g), e[0] = g, e[1] = o) : o = e[1];
19
- let c, m, f;
20
- e[2] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ t(w, { children: /* @__PURE__ */ t(C, { children: "Cookies" }) }), m = /* @__PURE__ */ t(A, { className: "text-xs text-[#AAAAAA]", children: "We use cookies to enhance your browsing experience, analyse site traffic, and personalise content. By continuing to use our site, you consent to our use of cookies." }), f = /* @__PURE__ */ t("hr", { className: "border-[#ffffff1f]" }), e[2] = c, e[3] = m, e[4] = f) : (c = e[2], m = e[3], f = e[4]);
19
+ e[0] !== b ? (o = z("sm:!max-w-[384px] !max-w-[328px] gap-3 !rounded-2xl border-0 bg-[#525252] p-4 text-white shadow-none sm:!rounded-2xl", b), e[0] = b, e[1] = o) : o = e[1];
20
+ let c;
21
+ e[2] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ t(v, { className: "text-left text-[16px] !font-medium leading-[20px] tracking-normal text-white", children: "Cookies" }), e[2] = c) : c = e[2];
22
+ let m, d, p;
23
+ e[3] === Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ w(F, { className: "flex-row items-center justify-between space-y-0 text-left", children: [
24
+ c,
25
+ /* @__PURE__ */ t(y, { asChild: !0, children: /* @__PURE__ */ t(k, { type: "button", variant: "ghost", size: "medium", iconOnly: !0, "aria-label": "Close cookie dialog", className: "h-6 w-6 shrink-0 rounded-none bg-transparent p-0 text-white hover:bg-transparent active:bg-transparent focus-visible:ring-white/40 focus-visible:ring-offset-0", icon: /* @__PURE__ */ t(N, { className: "!h-5 !w-5 !text-white", strokeWidth: 2 }) }) })
26
+ ] }), d = /* @__PURE__ */ t(B, { className: "text-[12px] font-normal leading-[18px] text-[#DCDCDC] pr-0 sm:pr-4", children: "We use cookies to enhance your browsing experience, analyse site traffic, and personalise content. By continuing to use our site, you consent to our use of cookies." }), p = /* @__PURE__ */ t("hr", { className: "m-0 border-0 border-t border-[#FFFFFF1F]" }), e[3] = m, e[4] = d, e[5] = p) : (m = e[3], d = e[4], p = e[5]);
21
27
  let i;
22
- e[5] !== x || e[6] !== r ? (i = /* @__PURE__ */ t(k, { type: "button", variant: "secondary", size: "medium", className: "shrink-0 !bg-[#6B6B6B] !text-white hover:!bg-[#7A7A7A] text-md h-[36px] font-medium", onClick: () => {
23
- r == null || r(), window.open(x, "_blank", "noopener,noreferrer");
24
- }, children: "Cookies Policy" }), e[5] = x, e[6] = r, e[7] = i) : i = e[7];
28
+ e[6] !== g || e[7] !== l ? (i = /* @__PURE__ */ t(k, { type: "button", variant: "secondary", size: "medium", className: "h-[36px] min-w-0 flex-1 basis-0 shrink !bg-[#6B6B6B] text-[14px] font-medium !text-white hover:!bg-[#7A7A7A]", onClick: () => {
29
+ l == null || l(), window.open(g, "_blank", "noopener,noreferrer");
30
+ }, children: "Cookies Policy" }), e[6] = g, e[7] = l, e[8] = i) : i = e[8];
25
31
  let n;
26
- e[8] !== a ? (n = /* @__PURE__ */ t(N, { asChild: !0, children: /* @__PURE__ */ t(k, { type: "button", variant: "brandBlue", size: "medium", className: "shrink-0 text-md h-[36px] font-medium", onClick: () => a == null ? void 0 : a(), children: "Ok, Got it" }) }), e[8] = a, e[9] = n) : n = e[9];
27
- let l;
28
- e[10] !== i || e[11] !== n ? (l = /* @__PURE__ */ b(B, { className: "!flex !flex-row !flex-nowrap items-center !justify-between gap-3 sm:!justify-between", children: [
32
+ e[9] !== a ? (n = /* @__PURE__ */ t(y, { asChild: !0, children: /* @__PURE__ */ t(k, { type: "button", variant: "brandBlue", size: "medium", className: "h-[36px] min-w-0 flex-1 basis-0 shrink text-[14px] font-medium", onClick: () => a == null ? void 0 : a(), children: "Ok, Got it" }) }), e[9] = a, e[10] = n) : n = e[10];
33
+ let s;
34
+ e[11] !== i || e[12] !== n ? (s = /* @__PURE__ */ w(_, { className: "!flex !flex-row !flex-nowrap items-center gap-3 pt-1", children: [
29
35
  i,
30
36
  n
31
- ] }), e[10] = i, e[11] = n, e[12] = l) : l = e[12];
32
- let s;
33
- e[13] !== o || e[14] !== l ? (s = /* @__PURE__ */ b(j, { className: o, children: [
34
- c,
37
+ ] }), e[11] = i, e[12] = n, e[13] = s) : s = e[13];
38
+ let r;
39
+ e[14] !== o || e[15] !== s ? (r = /* @__PURE__ */ w(O, { showCloseButton: !1, className: o, children: [
35
40
  m,
36
- f,
37
- l
38
- ] }), e[13] = o, e[14] = l, e[15] = s) : s = e[15];
39
- let d;
40
- return e[16] !== p || e[17] !== h || e[18] !== u || e[19] !== s ? (d = /* @__PURE__ */ t(v, { open: u, defaultOpen: p, onOpenChange: h, modal: !0, children: s }), e[16] = p, e[17] = h, e[18] = u, e[19] = s, e[20] = d) : d = e[20], d;
41
+ d,
42
+ p,
43
+ s
44
+ ] }), e[14] = o, e[15] = s, e[16] = r) : r = e[16];
45
+ let f;
46
+ return e[17] !== x || e[18] !== u || e[19] !== h || e[20] !== r ? (f = /* @__PURE__ */ t(j, { open: h, defaultOpen: x, onOpenChange: u, modal: !0, children: r }), e[17] = x, e[18] = u, e[19] = h, e[20] = r, e[21] = f) : f = e[21], f;
41
47
  };
42
- _.displayName = "CookieDialog";
48
+ A.displayName = "CookieDialog";
43
49
  export {
44
- _ as CookieDialog
50
+ A as CookieDialog
45
51
  };