@fluid-app/fluid-cli-theme-dev 0.1.533 → 0.1.535

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.
Files changed (65) hide show
  1. package/dist/dist-cli-preview/.vite/manifest.json +276 -295
  2. package/dist/dist-cli-preview/account-screens.js +1 -1
  3. package/dist/dist-cli-preview/chunks/{Combobox-CJDvxjNn.js → Combobox-D4l7DbBy.js} +54 -53
  4. package/dist/dist-cli-preview/chunks/{ContactsScreen-DD3XWK3Q.js → ContactsScreen-CEtA3-1c.js} +903 -850
  5. package/dist/dist-cli-preview/chunks/MediaScreen-C2rOxuuv.js +8 -0
  6. package/dist/dist-cli-preview/chunks/{MemberManagementProviders-iVdfo0DH.js → MemberManagementProviders-B_YXVcDi.js} +13 -13
  7. package/dist/dist-cli-preview/chunks/{MemberShareablesScreen-BulCAnNO.js → MemberShareablesScreen-UNjYr5R6.js} +4207 -3757
  8. package/dist/dist-cli-preview/chunks/{MessagingScreen-DlDsOy19.js → MessagingScreen-Btga_V0H.js} +24118 -21933
  9. package/dist/dist-cli-preview/chunks/MobileActionSheet-CrEH2vO7.js +1384 -0
  10. package/dist/dist-cli-preview/chunks/{MySiteScreen-BfPfyV4m.js → MySiteScreen-B1fGtPDj.js} +177 -163
  11. package/dist/dist-cli-preview/chunks/OrdersScreen-Bf9DtOCA.js +9 -0
  12. package/dist/dist-cli-preview/chunks/{OrdersScreen-C4yi3z2p.js → OrdersScreen-DyyL-P7j.js} +35 -34
  13. package/dist/dist-cli-preview/chunks/PlaylistsScreen-tws56I3H.js +8 -0
  14. package/dist/dist-cli-preview/chunks/{PortalTenantClientProvider-Clys_Bme.js → PortalTenantClientProvider-DUOOCXfW.js} +1 -1
  15. package/dist/dist-cli-preview/chunks/{ProfileScreen-e4QhExeS.js → ProfileScreen-wZO6QMrU.js} +259 -234
  16. package/dist/dist-cli-preview/chunks/ResponsiveDialog-DSDcOjhm.js +731 -0
  17. package/dist/dist-cli-preview/chunks/Select-DmRoXIkQ.js +2499 -0
  18. package/dist/dist-cli-preview/chunks/{SubscriptionsScreen-DysTJ6w_.js → SubscriptionsScreen-BR2C0m7M.js} +3 -3
  19. package/dist/dist-cli-preview/chunks/Textarea-C59p5Cek.js +365 -0
  20. package/dist/dist-cli-preview/chunks/{account-screen-runtime-B3e0JV6I.js → account-screen-runtime-BqMndJcu.js} +1389 -1409
  21. package/dist/dist-cli-preview/chunks/{arrow-left-BOYuYcvT.js → arrow-left-CFy5J6Id.js} +1 -1
  22. package/dist/dist-cli-preview/chunks/{cli-preview-cY0EPyxC.js → cli-preview-DZOhxtLy.js} +10 -10
  23. package/dist/dist-cli-preview/chunks/{client.gen-jwIybX1j.js → client.gen-DTVKCFco.js} +12 -12
  24. package/dist/dist-cli-preview/chunks/{copy-Cm_EKxcg.js → copy-Da4VLOCZ.js} +1 -1
  25. package/dist/dist-cli-preview/chunks/{countries-api-adapter-BCS0247N.js → countries-api-adapter-Bh5QfCO1.js} +2 -2
  26. package/dist/dist-cli-preview/chunks/{create-card-entry-container-CZi7shLR.js → create-card-entry-container-ohrRYgww.js} +1939 -1929
  27. package/dist/dist-cli-preview/chunks/{hey-api-client-B6n5a7q-.js → hey-api-client-BIjWueui.js} +1 -1
  28. package/dist/dist-cli-preview/chunks/{index-CfLLmITa.js → index-BMWjXC9i.js} +405 -869
  29. package/dist/dist-cli-preview/chunks/{index-DFIsiT9r.js → index-BVehJyDQ.js} +2080 -2372
  30. package/dist/dist-cli-preview/chunks/index-_r1wSvno.js +427 -0
  31. package/dist/dist-cli-preview/chunks/{isAfter-D0zQuNEJ.js → isAfter-BR4uNpua.js} +145 -156
  32. package/dist/dist-cli-preview/chunks/{map-pin-Vt1smsNu.js → map-pin-C_cK_i_W.js} +1 -1
  33. package/dist/dist-cli-preview/chunks/messaging-B1UjYRdl.js +4 -0
  34. package/dist/dist-cli-preview/chunks/{mount-account-screen-BOVvR3Og.js → mount-account-screen-JJGALFRE.js} +8 -8
  35. package/dist/dist-cli-preview/chunks/{navigate-account-screen-D756rD78.js → navigate-account-screen-C0VoUNOi.js} +1 -1
  36. package/dist/dist-cli-preview/chunks/schemas-D0s3rDQw.js +4851 -0
  37. package/dist/dist-cli-preview/chunks/{screen-route-slug-utils-HNXiCpo6.js → screen-route-slug-utils-n2BiDZmp.js} +205 -260
  38. package/dist/dist-cli-preview/chunks/search-zEnxG69C.js +14 -0
  39. package/dist/dist-cli-preview/chunks/sheet-haptics-context-p5ZPxslK.js +133 -0
  40. package/dist/dist-cli-preview/chunks/{sidebar-BDgHluGp.js → sidebar-CjPHl33n.js} +8 -8
  41. package/dist/dist-cli-preview/chunks/{sortable.esm-Cw91KlVU.js → sortable.esm-CrxUZkb-.js} +373 -362
  42. package/dist/dist-cli-preview/chunks/{store-api-context-BCaEZBlj.js → store-api-context-0k_ECvSE.js} +1 -1
  43. package/dist/dist-cli-preview/chunks/translation-api-context-factory-CP0LBb-M.js +74 -0
  44. package/dist/dist-cli-preview/chunks/{use-mobile-BztyG-mE.js → use-mobile-DIhDH3dI.js} +1 -1
  45. package/dist/dist-cli-preview/chunks/{use-optional-store-Dl6PSQur.js → use-optional-store-t4xzc2Rl.js} +2 -2
  46. package/dist/dist-cli-preview/chunks/use-store-YC0Ovzht.js +76 -0
  47. package/dist/dist-cli-preview/chunks/{useInfiniteQuery-fL_VYHHr.js → useInfiniteQuery-Bnzu0kZa.js} +9 -20
  48. package/dist/dist-cli-preview/chunks/{users-B3YJ3D1U.js → users-CabXl4EL.js} +1 -1
  49. package/package.json +2 -2
  50. package/dist/dist-cli-preview/chunks/Breadcrumb-ixf0cTR_.js +0 -91
  51. package/dist/dist-cli-preview/chunks/MediaScreen-D8WSOaze.js +0 -8
  52. package/dist/dist-cli-preview/chunks/MobileActionSheet-aGr-nGxu.js +0 -3884
  53. package/dist/dist-cli-preview/chunks/OrdersScreen-hidM-JR_.js +0 -9
  54. package/dist/dist-cli-preview/chunks/PlaylistsScreen-BIqSXZ5B.js +0 -8
  55. package/dist/dist-cli-preview/chunks/ellipsis-C1sJRT_T.js +0 -15
  56. package/dist/dist-cli-preview/chunks/eye-BHBOtWLw.js +0 -20
  57. package/dist/dist-cli-preview/chunks/index-COIiY5Im.js +0 -135
  58. package/dist/dist-cli-preview/chunks/log-out-segl_UhK.js +0 -30
  59. package/dist/dist-cli-preview/chunks/messaging-C_IkzF0O.js +0 -4
  60. package/dist/dist-cli-preview/chunks/pause-YWP8mWBs.js +0 -41
  61. package/dist/dist-cli-preview/chunks/schemas-BiM-ImW1.js +0 -5565
  62. package/dist/dist-cli-preview/chunks/sheet-haptics-context-d9udqor0.js +0 -116
  63. package/dist/dist-cli-preview/chunks/trash-2-CZEbdFT_.js +0 -17
  64. package/dist/dist-cli-preview/chunks/use-store-aahN8SDp.js +0 -400
  65. package/dist/dist-cli-preview/chunks/user-B4pULYRZ.js +0 -14
@@ -1,63 +1,64 @@
1
- import { c as ze, l as i, ac as dr, j as t, aa as ur, ab as mr, am as Ie, aK as pr, a9 as rn, a8 as wt, X as Ge, M as D, U as pt, aw as fr, Z as gr, K as q, N as _r, G as ve, R as an, J as W, E as O, aS as hr, ap as xr, $ as ue, a0 as me, a1 as pe, a2 as fe, a3 as ge, aU as br, at as sn, au as on, aR as ln, av as cn, C as yr, aT as yt, O as dn, H, Y as vr, aW as jr, B as Nr, ag as un, z as Cr } from "./account-screen-runtime-B3e0JV6I.js";
2
- import { c as kr, a as wr, u as Sr } from "./client.gen-jwIybX1j.js";
3
- import { u as mn, a as Mr, c as Tr, C as Er } from "./countries-api-adapter-BCS0247N.js";
4
- import { I as Dr, Z as Ar, P as he, M as tt, u as re, o as Pr, r as Rt, s as ie, t as zr, c as It, m as pn, C as fn, R as De, j as Ae, k as gn } from "./schemas-BiM-ImW1.js";
5
- import { u as Fr } from "./use-mobile-BztyG-mE.js";
6
- import { a as Rr, c as Ir, b as Or, u as Lr, I as ae, S as Ee } from "./sheet-haptics-context-d9udqor0.js";
7
- import { B as qr, a as $r, b as Ot, d as Kr, e as Br, c as Ur } from "./Breadcrumb-ixf0cTR_.js";
8
- import { v as _n, w as Gr, x as Hr, y as Qr, z as Yr, B as Vr, F as Wr, G as Xr, H as Jr, J as Zr, K as ea, L as ta, N as na, O as ra, Q as aa, T as sa, U as oa, P as hn, k as xn, l as bn, M as He, D as nt, a as rt, b as at, c as $e, S as ia, d as la, e as ca, f as da, g as ua, E as Je } from "./MobileActionSheet-aGr-nGxu.js";
9
- import { u as ma, S as yn } from "./useInfiniteQuery-fL_VYHHr.js";
10
- import { T as st } from "./trash-2-CZEbdFT_.js";
11
- import { U as ke } from "./users-B3YJ3D1U.js";
12
- import { E as Ze } from "./ellipsis-C1sJRT_T.js";
13
- import { S as pa, b as fa, I as Ke, a as Oe, s as vn, d as ga, e as _a } from "./screen-route-slug-utils-HNXiCpo6.js";
14
- import { T as ha, U as xa, a as ba, b as ya, c as va, S as ja } from "./index-COIiY5Im.js";
15
- import { u as _e } from "./sidebar-BDgHluGp.js";
16
- import { g as Se, h as Na, C as Ca } from "./Combobox-CJDvxjNn.js";
17
- import { M as jn, f as Nn, S as ka, H as wa, P as Sa, u as Ma, d as Ta, L as Ea, e as Da, E as Aa, T as Pa, a as za, b as Lt, g as qt, c as Fa } from "./index-DFIsiT9r.js";
18
- import { M as Ra } from "./map-pin-Vt1smsNu.js";
19
- import { C as Ia } from "./copy-Cm_EKxcg.js";
1
+ import { c as je, l as i, al as dr, j as t, G as ur, J as mr, K as Ie, N as pr, $ as q, X as E, ak as rn, aj as wt, a0 as Ue, a4 as pt, aC as fr, a8 as gr, a1 as hr, Y as ve, a3 as an, _ as W, E as O, aM as _r, av as xr, aa as ue, ab as me, ac as pe, ad as fe, ae as ge, aR as br, az as sn, aA as on, aS as ln, aB as cn, C as yr, aN as yt, a2 as dn, Z as H, a7 as vr, aT as jr, B as Nr, ap as un, z as Cr } from "./account-screen-runtime-BqMndJcu.js";
2
+ import { c as kr, a as wr, u as Sr } from "./client.gen-DTVKCFco.js";
3
+ import { u as mn, a as Mr, c as Tr, C as Er } from "./countries-api-adapter-Bh5QfCO1.js";
4
+ import { x as Dr, Z as Ar, u as re, o as Pr, r as Rt, s as ie, g as zr, c as It, f as pn, C as fn } from "./schemas-D0s3rDQw.js";
5
+ import { T as tt, P as _e, M as nt, R as Ae, e as Pe, f as gn } from "./ResponsiveDialog-DSDcOjhm.js";
6
+ import { u as Fr } from "./use-mobile-DIhDH3dI.js";
7
+ import { a as Rr, c as Ir, b as Or, u as Lr } from "./translation-api-context-factory-CP0LBb-M.js";
8
+ import { B as qr, a as $r, b as Ot, d as Kr, e as Br, c as Gr, I as ae, S as De } from "./sheet-haptics-context-p5ZPxslK.js";
9
+ import { k as hn, R as Ur, A as Hr, l as Yr, C as Qr, S as Vr, m as Wr, n as Xr, I as Zr, o as Jr, G as ea, L as ta, p as na, q as ra, r as aa, s as sa, t as oa, P as _n, g as xn, h as bn, M as He, j as Ze, D as rt, a as at, b as st, c as $e, E as Je } from "./MobileActionSheet-CrEH2vO7.js";
10
+ import { u as ia } from "./useInfiniteQuery-Bnzu0kZa.js";
11
+ import { S as yn } from "./search-zEnxG69C.js";
12
+ import { U as we } from "./users-CabXl4EL.js";
13
+ import { M as vn, P as jn, d as la, U as ca, e as da, f as ua, g as ma, h as pa, L as fa, i as ga, S as ha, T as _a, a as xa, b as Lt, j as qt, c as ba } from "./index-_r1wSvno.js";
14
+ import { u as he } from "./sidebar-CjPHl33n.js";
15
+ import { S as ya, e as va, f as ja, g as Na, h as Ca } from "./Select-DmRoXIkQ.js";
16
+ import { g as Me, h as ka, C as wa } from "./Combobox-D4l7DbBy.js";
17
+ import { M as Sa } from "./map-pin-C_cK_i_W.js";
18
+ import { C as Ma } from "./copy-Da4VLOCZ.js";
19
+ import { S as Ta, H as Ea, P as Da, u as Aa, E as Pa } from "./index-BVehJyDQ.js";
20
+ import { a as Oe, s as Nn, d as za, e as Fa } from "./screen-route-slug-utils-n2BiDZmp.js";
20
21
  /**
21
22
  * @license lucide-react v0.575.0 - ISC
22
23
  *
23
24
  * This source code is licensed under the ISC license.
24
25
  * See the LICENSE file in the root directory of this source tree.
25
26
  */
26
- const Oa = [
27
+ const Ra = [
27
28
  ["path", { d: "m2 2 20 20", key: "1ooewy" }],
28
29
  ["path", { d: "M8.35 2.69A10 10 0 0 1 21.3 15.65", key: "1pfsoa" }],
29
30
  ["path", { d: "M19.08 19.08A10 10 0 1 1 4.92 4.92", key: "1ablyi" }]
30
- ], La = ze("circle-off", Oa);
31
+ ], Ia = je("circle-off", Ra);
31
32
  /**
32
33
  * @license lucide-react v0.575.0 - ISC
33
34
  *
34
35
  * This source code is licensed under the ISC license.
35
36
  * See the LICENSE file in the root directory of this source tree.
36
37
  */
37
- const qa = [
38
+ const Oa = [
38
39
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
39
40
  ["path", { d: "M12 6v6l4 2", key: "mmk7yg" }]
40
- ], $t = ze("clock", qa);
41
+ ], $t = je("clock", Oa);
41
42
  /**
42
43
  * @license lucide-react v0.575.0 - ISC
43
44
  *
44
45
  * This source code is licensed under the ISC license.
45
46
  * See the LICENSE file in the root directory of this source tree.
46
47
  */
47
- const $a = [
48
+ const La = [
48
49
  ["path", { d: "M13 5h8", key: "a7qcls" }],
49
50
  ["path", { d: "M13 12h8", key: "h98zly" }],
50
51
  ["path", { d: "M13 19h8", key: "c3s6r1" }],
51
52
  ["path", { d: "m3 17 2 2 4-4", key: "1jhpwq" }],
52
53
  ["rect", { x: "3", y: "4", width: "6", height: "6", rx: "1", key: "cif1o7" }]
53
- ], Ka = ze("list-todo", $a);
54
+ ], qa = je("list-todo", La);
54
55
  /**
55
56
  * @license lucide-react v0.575.0 - ISC
56
57
  *
57
58
  * This source code is licensed under the ISC license.
58
59
  * See the LICENSE file in the root directory of this source tree.
59
60
  */
60
- const Ba = [
61
+ const $a = [
61
62
  [
62
63
  "path",
63
64
  {
@@ -65,14 +66,46 @@ const Ba = [
65
66
  key: "1miecu"
66
67
  }
67
68
  ]
68
- ], Ua = ze("paperclip", Ba);
69
+ ], Ka = je("paperclip", $a);
70
+ /**
71
+ * @license lucide-react v0.575.0 - ISC
72
+ *
73
+ * This source code is licensed under the ISC license.
74
+ * See the LICENSE file in the root directory of this source tree.
75
+ */
76
+ const Ba = [
77
+ [
78
+ "path",
79
+ {
80
+ d: "M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",
81
+ key: "1i5ecw"
82
+ }
83
+ ],
84
+ ["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
85
+ ], Ga = je("settings", Ba);
69
86
  /**
70
87
  * @license lucide-react v0.575.0 - ISC
71
88
  *
72
89
  * This source code is licensed under the ISC license.
73
90
  * See the LICENSE file in the root directory of this source tree.
74
91
  */
75
- const Ga = [
92
+ const Ua = [
93
+ [
94
+ "path",
95
+ {
96
+ d: "M21 9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2z",
97
+ key: "1dfntj"
98
+ }
99
+ ],
100
+ ["path", { d: "M15 3v5a1 1 0 0 0 1 1h5", key: "6s6qgf" }]
101
+ ], Ha = je("sticky-note", Ua);
102
+ /**
103
+ * @license lucide-react v0.575.0 - ISC
104
+ *
105
+ * This source code is licensed under the ISC license.
106
+ * See the LICENSE file in the root directory of this source tree.
107
+ */
108
+ const Ya = [
76
109
  ["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
77
110
  ["path", { d: "M12 2v2", key: "tus03m" }],
78
111
  ["path", { d: "M12 20v2", key: "1lh1kg" }],
@@ -82,14 +115,14 @@ const Ga = [
82
115
  ["path", { d: "M20 12h2", key: "1q8mjw" }],
83
116
  ["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
84
117
  ["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
85
- ], Ha = ze("sun", Ga);
118
+ ], Qa = je("sun", Ya);
86
119
  /**
87
120
  * @license lucide-react v0.575.0 - ISC
88
121
  *
89
122
  * This source code is licensed under the ISC license.
90
123
  * See the LICENSE file in the root directory of this source tree.
91
124
  */
92
- const Qa = [
125
+ const Va = [
93
126
  ["path", { d: "M12 2v8", key: "1q4o3n" }],
94
127
  ["path", { d: "m4.93 10.93 1.41 1.41", key: "2a7f42" }],
95
128
  ["path", { d: "M2 18h2", key: "j10viu" }],
@@ -98,10 +131,10 @@ const Qa = [
98
131
  ["path", { d: "M22 22H2", key: "19qnx5" }],
99
132
  ["path", { d: "m8 6 4-4 4 4", key: "ybng9g" }],
100
133
  ["path", { d: "M16 18a4 4 0 0 0-8 0", key: "1lzouq" }]
101
- ], Ya = ze("sunrise", Qa);
102
- var St = "ContextMenu", [Va] = ur(St, [
103
- _n
104
- ]), ee = _n(), [Wa, Cn] = Va(St), kn = (e) => {
134
+ ], Wa = je("sunrise", Va);
135
+ var St = "ContextMenu", [Xa] = ur(St, [
136
+ hn
137
+ ]), ee = hn(), [Za, Cn] = Xa(St), kn = (e) => {
105
138
  const { __scopeContextMenu: n, children: r, onOpenChange: a, dir: s, modal: o = !0 } = e, [l, c] = i.useState(!1), d = ee(n), u = dr(a), m = i.useCallback(
106
139
  (g) => {
107
140
  c(g), u(g);
@@ -109,14 +142,14 @@ var St = "ContextMenu", [Va] = ur(St, [
109
142
  [u]
110
143
  );
111
144
  return /* @__PURE__ */ t.jsx(
112
- Wa,
145
+ Za,
113
146
  {
114
147
  scope: n,
115
148
  open: l,
116
149
  onOpenChange: m,
117
150
  modal: o,
118
151
  children: /* @__PURE__ */ t.jsx(
119
- Gr,
152
+ Ur,
120
153
  {
121
154
  ...d,
122
155
  dir: s,
@@ -168,16 +201,16 @@ var wn = "ContextMenuTrigger", Sn = i.forwardRef(
168
201
  }
169
202
  );
170
203
  Sn.displayName = wn;
171
- var Xa = "ContextMenuPortal", Mn = (e) => {
204
+ var Ja = "ContextMenuPortal", Mn = (e) => {
172
205
  const { __scopeContextMenu: n, ...r } = e, a = ee(n);
173
- return /* @__PURE__ */ t.jsx(Qr, { ...a, ...r });
206
+ return /* @__PURE__ */ t.jsx(Yr, { ...a, ...r });
174
207
  };
175
- Mn.displayName = Xa;
208
+ Mn.displayName = Ja;
176
209
  var Tn = "ContextMenuContent", En = i.forwardRef(
177
210
  (e, n) => {
178
211
  const { __scopeContextMenu: r, ...a } = e, s = Cn(Tn, r), o = ee(r), l = i.useRef(!1);
179
212
  return /* @__PURE__ */ t.jsx(
180
- Yr,
213
+ Qr,
181
214
  {
182
215
  ...o,
183
216
  ...a,
@@ -204,59 +237,59 @@ var Tn = "ContextMenuContent", En = i.forwardRef(
204
237
  }
205
238
  );
206
239
  En.displayName = Tn;
207
- var Ja = "ContextMenuGroup", Za = i.forwardRef(
240
+ var es = "ContextMenuGroup", ts = i.forwardRef(
208
241
  (e, n) => {
209
242
  const { __scopeContextMenu: r, ...a } = e, s = ee(r);
210
243
  return /* @__PURE__ */ t.jsx(ea, { ...s, ...a, ref: n });
211
244
  }
212
245
  );
213
- Za.displayName = Ja;
214
- var es = "ContextMenuLabel", ts = i.forwardRef(
246
+ ts.displayName = es;
247
+ var ns = "ContextMenuLabel", rs = i.forwardRef(
215
248
  (e, n) => {
216
249
  const { __scopeContextMenu: r, ...a } = e, s = ee(r);
217
250
  return /* @__PURE__ */ t.jsx(ta, { ...s, ...a, ref: n });
218
251
  }
219
252
  );
220
- ts.displayName = es;
221
- var ns = "ContextMenuItem", Dn = i.forwardRef(
253
+ rs.displayName = ns;
254
+ var as = "ContextMenuItem", Dn = i.forwardRef(
222
255
  (e, n) => {
223
256
  const { __scopeContextMenu: r, ...a } = e, s = ee(r);
224
- return /* @__PURE__ */ t.jsx(Jr, { ...s, ...a, ref: n });
257
+ return /* @__PURE__ */ t.jsx(Zr, { ...s, ...a, ref: n });
225
258
  }
226
259
  );
227
- Dn.displayName = ns;
228
- var rs = "ContextMenuCheckboxItem", as = i.forwardRef((e, n) => {
260
+ Dn.displayName = as;
261
+ var ss = "ContextMenuCheckboxItem", os = i.forwardRef((e, n) => {
229
262
  const { __scopeContextMenu: r, ...a } = e, s = ee(r);
230
263
  return /* @__PURE__ */ t.jsx(na, { ...s, ...a, ref: n });
231
264
  });
232
- as.displayName = rs;
233
- var ss = "ContextMenuRadioGroup", os = i.forwardRef((e, n) => {
265
+ os.displayName = ss;
266
+ var is = "ContextMenuRadioGroup", ls = i.forwardRef((e, n) => {
234
267
  const { __scopeContextMenu: r, ...a } = e, s = ee(r);
235
268
  return /* @__PURE__ */ t.jsx(ra, { ...s, ...a, ref: n });
236
269
  });
237
- os.displayName = ss;
238
- var is = "ContextMenuRadioItem", ls = i.forwardRef((e, n) => {
270
+ ls.displayName = is;
271
+ var cs = "ContextMenuRadioItem", ds = i.forwardRef((e, n) => {
239
272
  const { __scopeContextMenu: r, ...a } = e, s = ee(r);
240
273
  return /* @__PURE__ */ t.jsx(aa, { ...s, ...a, ref: n });
241
274
  });
242
- ls.displayName = is;
243
- var cs = "ContextMenuItemIndicator", ds = i.forwardRef((e, n) => {
275
+ ds.displayName = cs;
276
+ var us = "ContextMenuItemIndicator", ms = i.forwardRef((e, n) => {
244
277
  const { __scopeContextMenu: r, ...a } = e, s = ee(r);
245
278
  return /* @__PURE__ */ t.jsx(sa, { ...s, ...a, ref: n });
246
279
  });
247
- ds.displayName = cs;
248
- var us = "ContextMenuSeparator", An = i.forwardRef((e, n) => {
280
+ ms.displayName = us;
281
+ var ps = "ContextMenuSeparator", An = i.forwardRef((e, n) => {
249
282
  const { __scopeContextMenu: r, ...a } = e, s = ee(r);
250
- return /* @__PURE__ */ t.jsx(Zr, { ...s, ...a, ref: n });
283
+ return /* @__PURE__ */ t.jsx(Jr, { ...s, ...a, ref: n });
251
284
  });
252
- An.displayName = us;
253
- var ms = "ContextMenuArrow", ps = i.forwardRef(
285
+ An.displayName = ps;
286
+ var fs = "ContextMenuArrow", gs = i.forwardRef(
254
287
  (e, n) => {
255
288
  const { __scopeContextMenu: r, ...a } = e, s = ee(r);
256
289
  return /* @__PURE__ */ t.jsx(oa, { ...s, ...a, ref: n });
257
290
  }
258
291
  );
259
- ps.displayName = ms;
292
+ gs.displayName = fs;
260
293
  var Pn = "ContextMenuSub", zn = (e) => {
261
294
  const { __scopeContextMenu: n, children: r, onOpenChange: a, open: s, defaultOpen: o } = e, l = ee(n), [c, d] = pr({
262
295
  prop: s,
@@ -267,12 +300,12 @@ var Pn = "ContextMenuSub", zn = (e) => {
267
300
  return /* @__PURE__ */ t.jsx(Vr, { ...l, open: c, onOpenChange: d, children: r });
268
301
  };
269
302
  zn.displayName = Pn;
270
- var fs = "ContextMenuSubTrigger", Fn = i.forwardRef((e, n) => {
303
+ var hs = "ContextMenuSubTrigger", Fn = i.forwardRef((e, n) => {
271
304
  const { __scopeContextMenu: r, ...a } = e, s = ee(r);
272
305
  return /* @__PURE__ */ t.jsx(Wr, { ...s, ...a, ref: n });
273
306
  });
274
- Fn.displayName = fs;
275
- var gs = "ContextMenuSubContent", Rn = i.forwardRef((e, n) => {
307
+ Fn.displayName = hs;
308
+ var _s = "ContextMenuSubContent", Rn = i.forwardRef((e, n) => {
276
309
  const { __scopeContextMenu: r, ...a } = e, s = ee(r);
277
310
  return /* @__PURE__ */ t.jsx(
278
311
  Xr,
@@ -291,16 +324,36 @@ var gs = "ContextMenuSubContent", Rn = i.forwardRef((e, n) => {
291
324
  }
292
325
  );
293
326
  });
294
- Rn.displayName = gs;
327
+ Rn.displayName = _s;
295
328
  function Ve(e) {
296
329
  return (n) => n.pointerType !== "mouse" ? e(n) : void 0;
297
330
  }
298
- var _s = kn, hs = Sn, In = Mn, xs = En, bs = Dn, ys = An, vs = zn, js = Fn, Ns = Rn;
331
+ var xs = kn, bs = Sn, In = Mn, ys = En, vs = Dn, js = An, Ns = zn, Cs = Fn, ks = Rn;
332
+ function Ke({
333
+ icon: e,
334
+ className: n,
335
+ variant: r = "ghost",
336
+ size: a = "icon",
337
+ isActive: s,
338
+ ...o
339
+ }) {
340
+ return /* @__PURE__ */ t.jsx(
341
+ q,
342
+ {
343
+ variant: r,
344
+ size: a,
345
+ "data-active": s,
346
+ className: E(s && "bg-accent text-accent-foreground", n),
347
+ ...o,
348
+ children: /* @__PURE__ */ t.jsx(e, {})
349
+ }
350
+ );
351
+ }
299
352
  function ft(e) {
300
353
  return e.replace(/_/g, " ").replace(/([A-Z])/g, " $1").split(" ").map((n) => n.charAt(0).toUpperCase() + n.slice(1).toLowerCase()).join(" ").trim();
301
354
  }
302
- const Cs = "Request ID: ";
303
- function Ce(e) {
355
+ const ws = "Request ID: ";
356
+ function ke(e) {
304
357
  if (typeof e != "string")
305
358
  return;
306
359
  const n = e.trim();
@@ -310,21 +363,21 @@ function et(e) {
310
363
  if (!e || typeof e != "object" || Array.isArray(e))
311
364
  return;
312
365
  const n = e, r = n.meta;
313
- return Ce(n.request_id) ?? Ce(n.requestId) ?? (r && typeof r == "object" && !Array.isArray(r) ? Ce(r.request_id) ?? Ce(r.requestId) : void 0);
366
+ return ke(n.request_id) ?? ke(n.requestId) ?? (r && typeof r == "object" && !Array.isArray(r) ? ke(r.request_id) ?? ke(r.requestId) : void 0);
314
367
  }
315
368
  function On(e, n) {
316
- return e === "request_id" || e === "requestId" ? Ce(n) !== void 0 : e !== "meta" ? !1 : et(n) !== void 0;
369
+ return e === "request_id" || e === "requestId" ? ke(n) !== void 0 : e !== "meta" ? !1 : et(n) !== void 0;
317
370
  }
318
- function we(e) {
371
+ function Se(e) {
319
372
  if (typeof e != "string")
320
373
  return;
321
374
  const n = e.trim();
322
375
  return n.length > 0 ? n : void 0;
323
376
  }
324
377
  function Ln(e, n) {
325
- return (e === "message" || e === "error_message" || e === "error") && we(n) !== void 0;
378
+ return (e === "message" || e === "error_message" || e === "error") && Se(n) !== void 0;
326
379
  }
327
- function ks(e) {
380
+ function Ss(e) {
328
381
  if (typeof e == "string")
329
382
  return e;
330
383
  try {
@@ -339,10 +392,10 @@ function Le(e, n) {
339
392
  return Object.prototype.hasOwnProperty.call(e, n);
340
393
  }
341
394
  function Mt(e) {
342
- return we(e.message) ?? we(e.error_message) ?? we(e.error);
395
+ return Se(e.message) ?? Se(e.error_message) ?? Se(e.error);
343
396
  }
344
- function ws(e, n) {
345
- return we(n) === e;
397
+ function Ms(e, n) {
398
+ return Se(n) === e;
346
399
  }
347
400
  function qn(e) {
348
401
  for (const [n, r] of Object.entries(e))
@@ -357,37 +410,37 @@ function qn(e) {
357
410
  }
358
411
  return !1;
359
412
  }
360
- function Ss(e) {
413
+ function Ts(e) {
361
414
  return et(e) !== void 0 || Le(e, "errors") || Le(e, "details") || Le(e, "detail") || Le(e, "status") || Le(e, "code");
362
415
  }
363
416
  function $n(e, n) {
364
417
  const r = Mt(e);
365
- return r !== void 0 && (Ss(e) || qn(e) || ws(r, n));
418
+ return r !== void 0 && (Ts(e) || qn(e) || Ms(r, n));
366
419
  }
367
420
  function Kn(e) {
368
421
  if (!e || typeof e != "object" || Array.isArray(e))
369
422
  return;
370
423
  const n = e;
371
- return we(n.message) ?? we(n.error_message);
424
+ return Se(n.message) ?? Se(n.error_message);
372
425
  }
373
- function Ms(e, n) {
426
+ function Es(e, n) {
374
427
  if (!e || typeof e != "object" || Array.isArray(e))
375
428
  return;
376
429
  const r = e;
377
430
  return $n(r, n) ? Mt(r) : Kn(r.error);
378
431
  }
379
- function Ts(e) {
432
+ function Ds(e) {
380
433
  return Kn(e) !== void 0;
381
434
  }
382
- function Es(e, n) {
435
+ function As(e, n) {
383
436
  if (!n)
384
437
  return e;
385
- const r = `${Cs}${n}`;
438
+ const r = `${ws}${n}`;
386
439
  return !e || e.trim().length === 0 ? r : e.split(`
387
440
  `).includes(r) ? e : `${e}
388
441
  ${r}`;
389
442
  }
390
- function Ds(e) {
443
+ function Ps(e) {
391
444
  if (!e || typeof e != "object")
392
445
  return !1;
393
446
  const n = e;
@@ -401,12 +454,12 @@ function Bn(e, { skipScalarEnvelopeKeys: n }) {
401
454
  for (const [s, o] of Object.entries(a))
402
455
  On(s, o) || n && Ln(s, o) || (Array.isArray(o) && o.length > 0 ? r.push({
403
456
  field: ft(s),
404
- messages: o.map(ks)
457
+ messages: o.map(Ss)
405
458
  }) : typeof o == "string" && o.length > 0 ? r.push({
406
459
  field: ft(s),
407
460
  messages: [o]
408
461
  }) : o && typeof o == "object" && !Array.isArray(o) && Bn(o, {
409
- skipScalarEnvelopeKeys: s === "error" && Ts(o)
462
+ skipScalarEnvelopeKeys: s === "error" && Ds(o)
410
463
  }).forEach((c) => {
411
464
  r.push({
412
465
  field: `${ft(s)} → ${c.field}`,
@@ -415,7 +468,7 @@ function Bn(e, { skipScalarEnvelopeKeys: n }) {
415
468
  }));
416
469
  return r;
417
470
  }
418
- function As(e) {
471
+ function zs(e) {
419
472
  if (e.length === 0)
420
473
  return "";
421
474
  if (e.length === 1) {
@@ -432,38 +485,38 @@ function As(e) {
432
485
  return `${n}
433
486
  ...and ${r} more ${r === 1 ? "error" : "errors"}`;
434
487
  }
435
- function Ps(e, n) {
488
+ function Fs(e, n) {
436
489
  const r = e && typeof e == "object" && !Array.isArray(e) && $n(
437
490
  e,
438
491
  n
439
492
  ) ? Mt(e) : void 0, a = Bn(e, {
440
493
  skipScalarEnvelopeKeys: r !== void 0
441
- }), s = a.length > 0 ? As(a) : void 0, o = Ms(
494
+ }), s = a.length > 0 ? zs(a) : void 0, o = Es(
442
495
  e,
443
496
  n
444
497
  );
445
498
  return r && s ? s : o && s && s !== o ? `${o}
446
499
  ${s}` : s ?? o;
447
500
  }
448
- function zs(e) {
501
+ function Rs(e) {
449
502
  if (!e || typeof e != "object")
450
503
  return;
451
504
  const n = e;
452
- return Ce(n.requestId) ?? Ce(n.request_id) ?? // `request_id` and `meta` are envelope keys, so they survive on `body`.
505
+ return ke(n.requestId) ?? ke(n.request_id) ?? // `request_id` and `meta` are envelope keys, so they survive on `body`.
453
506
  // `data` only carries them when the body had no `errors` key to unwrap.
454
507
  et(n.body) ?? et(n.data);
455
508
  }
456
509
  function V(e, n) {
457
- const r = zs(e);
510
+ const r = Rs(e);
458
511
  let a;
459
- return Ds(e) ? (e.data && (a = Ps(e.data, e.message)), !a && e.message && (a = e.message)) : e instanceof Error && (a = e.message), Es(a ?? n, r);
512
+ return Ps(e) ? (e.data && (a = Fs(e.data, e.message)), !a && e.message && (a = e.message)) : e instanceof Error && (a = e.message), As(a ?? n, r);
460
513
  }
461
514
  function Kt(e) {
462
515
  return Dr(Ar, e);
463
516
  }
464
- const Un = i.createContext(null), Fs = Un.Provider;
517
+ const Gn = i.createContext(null), Is = Gn.Provider;
465
518
  function ot() {
466
- const e = i.use(Un);
519
+ const e = i.use(Gn);
467
520
  if (!e)
468
521
  throw new Error(
469
522
  "useContactsDomainApi must be used within a ContactsApiProvider"
@@ -476,16 +529,16 @@ function xe() {
476
529
  function it() {
477
530
  return ot().notes;
478
531
  }
479
- function Qe() {
532
+ function Ye() {
480
533
  return ot().tasks;
481
534
  }
482
535
  function lt() {
483
536
  return ot().groups ?? null;
484
537
  }
485
- function Rs(e) {
538
+ function Os(e) {
486
539
  return e instanceof DOMException && e.name === "AbortError" || e instanceof Error && e.name === "AbortError";
487
540
  }
488
- function Gn(e) {
541
+ function Un(e) {
489
542
  const n = kr({
490
543
  baseUrl: e.baseUrl,
491
544
  credentials: e.credentials,
@@ -506,11 +559,11 @@ function Gn(e) {
506
559
  onResponseError: (r) => {
507
560
  r.status === 401 && e.onAuthError?.();
508
561
  },
509
- shouldPassThroughTransportError: Rs
562
+ shouldPassThroughTransportError: Os
510
563
  })
511
564
  ), n;
512
565
  }
513
- const Is = (e) => e.client.get({
566
+ const Ls = (e) => e.client.get({
514
567
  responseStyle: "data",
515
568
  security: [
516
569
  {
@@ -521,7 +574,7 @@ const Is = (e) => e.client.get({
521
574
  ],
522
575
  url: "/api/contacts",
523
576
  ...e
524
- }), Os = (e) => e.client.post({
577
+ }), qs = (e) => e.client.post({
525
578
  responseStyle: "data",
526
579
  security: [
527
580
  {
@@ -536,7 +589,7 @@ const Is = (e) => e.client.get({
536
589
  "Content-Type": "application/json",
537
590
  ...e.headers
538
591
  }
539
- }), Ls = (e) => e.client.delete({
592
+ }), $s = (e) => e.client.delete({
540
593
  responseStyle: "data",
541
594
  security: [
542
595
  {
@@ -547,7 +600,7 @@ const Is = (e) => e.client.get({
547
600
  ],
548
601
  url: "/api/contacts/{id}",
549
602
  ...e
550
- }), qs = (e) => e.client.get({
603
+ }), Ks = (e) => e.client.get({
551
604
  responseStyle: "data",
552
605
  security: [
553
606
  {
@@ -558,7 +611,7 @@ const Is = (e) => e.client.get({
558
611
  ],
559
612
  url: "/api/contacts/{id}",
560
613
  ...e
561
- }), $s = (e) => e.client.patch({
614
+ }), Bs = (e) => e.client.patch({
562
615
  responseStyle: "data",
563
616
  security: [
564
617
  {
@@ -573,7 +626,7 @@ const Is = (e) => e.client.get({
573
626
  "Content-Type": "application/json",
574
627
  ...e.headers
575
628
  }
576
- }), Ks = (e) => e.client.delete({
629
+ }), Gs = (e) => e.client.delete({
577
630
  responseStyle: "data",
578
631
  security: [
579
632
  {
@@ -588,7 +641,7 @@ const Is = (e) => e.client.get({
588
641
  "Content-Type": "application/json",
589
642
  ...e.headers
590
643
  }
591
- }), Bs = (e) => e.client.get({
644
+ }), Us = (e) => e.client.get({
592
645
  responseStyle: "data",
593
646
  security: [
594
647
  {
@@ -599,7 +652,7 @@ const Is = (e) => e.client.get({
599
652
  ],
600
653
  url: "/api/contacts/groups",
601
654
  ...e
602
- }), Us = (e) => e.client.post({
655
+ }), Hs = (e) => e.client.post({
603
656
  responseStyle: "data",
604
657
  security: [
605
658
  {
@@ -614,7 +667,7 @@ const Is = (e) => e.client.get({
614
667
  "Content-Type": "application/json",
615
668
  ...e.headers
616
669
  }
617
- }), Gs = (e) => e.client.delete({
670
+ }), Ys = (e) => e.client.delete({
618
671
  responseStyle: "data",
619
672
  security: [
620
673
  {
@@ -625,7 +678,7 @@ const Is = (e) => e.client.get({
625
678
  ],
626
679
  url: "/api/contacts/groups/{id}",
627
680
  ...e
628
- }), Hs = (e) => e.client.patch({
681
+ }), Qs = (e) => e.client.patch({
629
682
  responseStyle: "data",
630
683
  security: [
631
684
  {
@@ -640,7 +693,7 @@ const Is = (e) => e.client.get({
640
693
  "Content-Type": "application/json",
641
694
  ...e.headers
642
695
  }
643
- }), Qs = (e) => e.client.get({
696
+ }), Vs = (e) => e.client.get({
644
697
  responseStyle: "data",
645
698
  security: [
646
699
  {
@@ -651,7 +704,7 @@ const Is = (e) => e.client.get({
651
704
  ],
652
705
  url: "/api/contacts/{contact_id}/notes",
653
706
  ...e
654
- }), Ys = (e) => e.client.post({
707
+ }), Ws = (e) => e.client.post({
655
708
  responseStyle: "data",
656
709
  security: [
657
710
  {
@@ -666,7 +719,7 @@ const Is = (e) => e.client.get({
666
719
  "Content-Type": "application/json",
667
720
  ...e.headers
668
721
  }
669
- }), Vs = (e) => e.client.get({
722
+ }), Xs = (e) => e.client.get({
670
723
  responseStyle: "data",
671
724
  security: [
672
725
  {
@@ -677,7 +730,7 @@ const Is = (e) => e.client.get({
677
730
  ],
678
731
  url: "/api/contacts/{contact_id}/tasks",
679
732
  ...e
680
- }), Ws = (e) => e.client.post({
733
+ }), Zs = (e) => e.client.post({
681
734
  responseStyle: "data",
682
735
  security: [
683
736
  {
@@ -692,7 +745,7 @@ const Is = (e) => e.client.get({
692
745
  "Content-Type": "application/json",
693
746
  ...e.headers
694
747
  }
695
- }), Xs = (e) => e.client.delete({
748
+ }), Js = (e) => e.client.delete({
696
749
  responseStyle: "data",
697
750
  security: [
698
751
  {
@@ -703,7 +756,7 @@ const Is = (e) => e.client.get({
703
756
  ],
704
757
  url: "/api/contacts/{contact_id}/notes/{id}",
705
758
  ...e
706
- }), Js = (e) => e.client.patch({
759
+ }), eo = (e) => e.client.patch({
707
760
  responseStyle: "data",
708
761
  security: [
709
762
  {
@@ -718,7 +771,7 @@ const Is = (e) => e.client.get({
718
771
  "Content-Type": "application/json",
719
772
  ...e.headers
720
773
  }
721
- }), Zs = (e) => e.client.delete({
774
+ }), to = (e) => e.client.delete({
722
775
  responseStyle: "data",
723
776
  security: [
724
777
  {
@@ -729,7 +782,7 @@ const Is = (e) => e.client.get({
729
782
  ],
730
783
  url: "/api/contacts/{contact_id}/tasks/{id}",
731
784
  ...e
732
- }), eo = (e) => e.client.patch({
785
+ }), no = (e) => e.client.patch({
733
786
  responseStyle: "data",
734
787
  security: [
735
788
  {
@@ -744,7 +797,7 @@ const Is = (e) => e.client.get({
744
797
  "Content-Type": "application/json",
745
798
  ...e.headers
746
799
  }
747
- }), to = {
800
+ }), ro = {
748
801
  total_count: 0,
749
802
  total_pages: 0,
750
803
  current_page: 1,
@@ -754,7 +807,7 @@ function ce(e) {
754
807
  return Number(e);
755
808
  }
756
809
  function Bt(e, n, r, a) {
757
- if (!e) return to;
810
+ if (!e) return ro;
758
811
  const s = e.pagination?.next_cursor ?? null, o = e.total_count ?? (s ? (r + 1) * a : (r - 1) * a + n);
759
812
  return {
760
813
  total_count: o,
@@ -765,7 +818,7 @@ function Bt(e, n, r, a) {
765
818
  timestamp: e.timestamp
766
819
  };
767
820
  }
768
- function Ut(e) {
821
+ function Gt(e) {
769
822
  const n = e;
770
823
  return {
771
824
  id: e.id ?? 0,
@@ -787,7 +840,7 @@ function Ut(e) {
787
840
  updated_at: e.updated_at ?? ""
788
841
  };
789
842
  }
790
- function no(e) {
843
+ function ao(e) {
791
844
  return {
792
845
  id: e.id ?? 0,
793
846
  title: e.title ?? "",
@@ -802,7 +855,7 @@ function no(e) {
802
855
  assets: []
803
856
  };
804
857
  }
805
- function ro(e) {
858
+ function so(e) {
806
859
  const n = e;
807
860
  return {
808
861
  id: e.id ?? 0,
@@ -824,23 +877,23 @@ function gt(e) {
824
877
  updated_at: e.updated_at ?? ""
825
878
  };
826
879
  }
827
- const Gt = /* @__PURE__ */ new WeakMap();
828
- function ao(e) {
880
+ const Ut = /* @__PURE__ */ new WeakMap();
881
+ function oo(e) {
829
882
  return JSON.stringify({
830
883
  limit: e?.per_page ?? e?.limit ?? null,
831
884
  search: e?.search_query ?? e?.search ?? e?.query ?? null,
832
885
  tags: e?.tags ?? null
833
886
  });
834
887
  }
835
- function so(e, n) {
836
- let r = Gt.get(e);
837
- r || (r = /* @__PURE__ */ new Map(), Gt.set(e, r));
838
- const a = ao(n), s = r.get(a);
888
+ function io(e, n) {
889
+ let r = Ut.get(e);
890
+ r || (r = /* @__PURE__ */ new Map(), Ut.set(e, r));
891
+ const a = oo(n), s = r.get(a);
839
892
  if (s) return s;
840
893
  const o = /* @__PURE__ */ new Map();
841
894
  return r.set(a, o), o;
842
895
  }
843
- function oo(e, n) {
896
+ function lo(e, n) {
844
897
  if (!e) return;
845
898
  const r = typeof e.page == "number" ? e.page : 1, a = e.per_page ?? e.limit, s = e.search_query ?? e.search ?? e.query, o = Array.isArray(e.tags) ? e.tags.filter((c) => typeof c == "string") : void 0, l = r > 1 ? n.get(r) : void 0;
846
899
  return r > 1 && l === void 0 ? null : {
@@ -850,80 +903,80 @@ function oo(e, n) {
850
903
  ...o ? { tags: o } : {}
851
904
  };
852
905
  }
853
- function io(e) {
906
+ function co(e) {
854
907
  return {
855
908
  getContact: async (n) => {
856
- const r = await qs({
909
+ const r = await Ks({
857
910
  client: e,
858
911
  path: { id: ce(n) }
859
912
  });
860
- return { contact: Ut(r.contact ?? {}) };
913
+ return { contact: Gt(r.contact ?? {}) };
861
914
  },
862
915
  listContacts: async (n) => {
863
- const r = typeof n?.page == "number" ? n.page : 1, a = typeof n?.per_page == "number" ? n.per_page : 25, s = so(e, n), o = oo(n, s);
916
+ const r = typeof n?.page == "number" ? n.page : 1, a = typeof n?.per_page == "number" ? n.per_page : 25, s = io(e, n), o = lo(n, s);
864
917
  if (o === null)
865
918
  return {
866
919
  contacts: [],
867
920
  meta: Bt(void 0, 0, r, a)
868
921
  };
869
- const l = await Is({
922
+ const l = await Ls({
870
923
  client: e,
871
924
  ...o ? { query: o } : {}
872
925
  }), c = l.meta?.pagination?.next_cursor;
873
926
  c && s.set(r + 1, c);
874
- const d = (l.contacts ?? []).map(Ut);
927
+ const d = (l.contacts ?? []).map(Gt);
875
928
  return {
876
929
  contacts: d,
877
930
  meta: Bt(l.meta, d.length, r, a)
878
931
  };
879
932
  },
880
- createContact: (n) => Os({
933
+ createContact: (n) => qs({
881
934
  client: e,
882
935
  body: { contact: n }
883
936
  }),
884
- updateContact: (n, r) => $s({
937
+ updateContact: (n, r) => Bs({
885
938
  client: e,
886
939
  path: { id: ce(n) },
887
940
  body: { contact: r }
888
941
  }),
889
- deleteContact: (n) => Ls({ client: e, path: { id: ce(n) } }),
890
- bulkDeleteContacts: (n) => Ks({ client: e, body: { ids: n } })
942
+ deleteContact: (n) => $s({ client: e, path: { id: ce(n) } }),
943
+ bulkDeleteContacts: (n) => Gs({ client: e, body: { ids: n } })
891
944
  };
892
945
  }
893
- function lo(e) {
946
+ function uo(e) {
894
947
  return {
895
- listNotes: async (n) => ({ notes: ((await Qs({
948
+ listNotes: async (n) => ({ notes: ((await Vs({
896
949
  client: e,
897
950
  path: { contact_id: ce(n) }
898
- })).notes ?? []).map(no) }),
899
- createNote: (n, r) => Ys({
951
+ })).notes ?? []).map(ao) }),
952
+ createNote: (n, r) => Ws({
900
953
  client: e,
901
954
  path: { contact_id: ce(n) },
902
955
  body: { note: { title: r.title, body: r.body } }
903
956
  }),
904
- updateNote: (n, r, a) => Js({
957
+ updateNote: (n, r, a) => eo({
905
958
  client: e,
906
959
  path: { contact_id: ce(r), id: n },
907
960
  body: { note: { title: a.title, body: a.body } }
908
961
  }),
909
- deleteNote: (n, r) => Xs({
962
+ deleteNote: (n, r) => Js({
910
963
  client: e,
911
964
  path: { contact_id: ce(r), id: n }
912
965
  })
913
966
  };
914
967
  }
915
- function co(e) {
968
+ function mo(e) {
916
969
  return {
917
- listTasks: async (n) => ({ tasks: ((await Vs({
970
+ listTasks: async (n) => ({ tasks: ((await Xs({
918
971
  client: e,
919
972
  path: { contact_id: ce(n) }
920
- })).tasks ?? []).map(ro) }),
921
- createTask: (n, r) => Ws({
973
+ })).tasks ?? []).map(so) }),
974
+ createTask: (n, r) => Zs({
922
975
  client: e,
923
976
  path: { contact_id: ce(n) },
924
977
  body: { task: { title: r.body, due_date: r.due_at } }
925
978
  }),
926
- updateTask: (n, r, a) => eo({
979
+ updateTask: (n, r, a) => no({
927
980
  client: e,
928
981
  path: { contact_id: ce(r), id: n },
929
982
  body: {
@@ -934,49 +987,49 @@ function co(e) {
934
987
  }
935
988
  }
936
989
  }),
937
- deleteTask: (n, r) => Zs({
990
+ deleteTask: (n, r) => to({
938
991
  client: e,
939
992
  path: { contact_id: ce(r), id: n }
940
993
  })
941
994
  };
942
995
  }
943
- function uo(e) {
996
+ function po(e) {
944
997
  return {
945
- listGroups: async () => ({ groups: ((await Bs({ client: e })).groups ?? []).map(gt) }),
998
+ listGroups: async () => ({ groups: ((await Us({ client: e })).groups ?? []).map(gt) }),
946
999
  createGroup: async (n) => {
947
- const r = await Us({
1000
+ const r = await Hs({
948
1001
  client: e,
949
1002
  body: { group: n }
950
1003
  });
951
1004
  return { group: gt(r.group ?? {}) };
952
1005
  },
953
1006
  updateGroup: async (n, r) => {
954
- const a = await Hs({
1007
+ const a = await Qs({
955
1008
  client: e,
956
1009
  path: { id: n },
957
1010
  body: { group: r }
958
1011
  });
959
1012
  return { group: gt(a.group ?? {}) };
960
1013
  },
961
- deleteGroup: (n) => Gs({ client: e, path: { id: n } })
1014
+ deleteGroup: (n) => Ys({ client: e, path: { id: n } })
962
1015
  };
963
1016
  }
964
1017
  function Hn(e) {
965
1018
  return {
966
- contacts: io(e),
967
- notes: lo(e),
968
- tasks: co(e),
969
- groups: uo(e)
1019
+ contacts: co(e),
1020
+ notes: uo(e),
1021
+ tasks: mo(e),
1022
+ groups: po(e)
970
1023
  };
971
1024
  }
972
- function mo({
1025
+ function fo({
973
1026
  children: e,
974
1027
  api: n
975
1028
  }) {
976
1029
  const { config: r } = rn(), a = i.useRef(r);
977
1030
  a.current = r;
978
1031
  const { baseUrl: s } = r, o = typeof document > "u" ? null : document.querySelector('meta[name="csrf-token"]')?.getAttribute("content"), l = i.useMemo(
979
- () => Gn({
1032
+ () => Un({
980
1033
  baseUrl: s,
981
1034
  credentials: "include",
982
1035
  defaultHeaders: {
@@ -990,9 +1043,9 @@ function mo({
990
1043
  () => Hn(l),
991
1044
  [l]
992
1045
  );
993
- return /* @__PURE__ */ t.jsx(Fs, { value: n ?? c, children: e });
1046
+ return /* @__PURE__ */ t.jsx(Is, { value: n ?? c, children: e });
994
1047
  }
995
- const po = {
1048
+ const go = {
996
1049
  breadcrumb: "Contacts",
997
1050
  breadcrumb_new: "New Contact",
998
1051
  contact_label: "Contact",
@@ -1371,8 +1424,8 @@ const po = {
1371
1424
  assign_rep_search_placeholder: "Search by name or email...",
1372
1425
  assign_rep_loading: "Loading…",
1373
1426
  assign_rep_no_results: 'No reps found matching "{{term}}"'
1374
- }, fo = Ir({
1375
- fallback: po,
1427
+ }, ho = Ir({
1428
+ fallback: go,
1376
1429
  loaders: {
1377
1430
  ar: () => import("./ar-DT9j-dOi.js").then(
1378
1431
  (e) => e.default
@@ -1478,27 +1531,27 @@ const po = {
1478
1531
  )
1479
1532
  }
1480
1533
  });
1481
- function go(e, n) {
1534
+ function _o(e, n) {
1482
1535
  return Rr(e, n);
1483
1536
  }
1484
1537
  const {
1485
- Context: _o,
1486
- Provider: ho,
1487
- useTranslation: xo
1488
- } = Or("Contacts"), bo = ho, z = xo;
1489
- function Ye() {
1490
- return i.use(_o);
1538
+ Context: xo,
1539
+ Provider: bo,
1540
+ useTranslation: yo
1541
+ } = Or("Contacts"), vo = bo, z = yo;
1542
+ function Qe() {
1543
+ return i.use(xo);
1491
1544
  }
1492
- function yo({
1545
+ function jo({
1493
1546
  children: e
1494
1547
  }) {
1495
- const { locale: n } = wt(), r = Lr(fo, n), a = i.useMemo(
1496
- () => go(n, r),
1548
+ const { locale: n } = wt(), r = Lr(ho, n), a = i.useMemo(
1549
+ () => _o(n, r),
1497
1550
  [n, r]
1498
1551
  );
1499
- return /* @__PURE__ */ t.jsx(bo, { value: a, children: e });
1552
+ return /* @__PURE__ */ t.jsx(vo, { value: a, children: e });
1500
1553
  }
1501
- function Qn(e) {
1554
+ function Yn(e) {
1502
1555
  const n = e.indexOf(`
1503
1556
 
1504
1557
  `);
@@ -1507,7 +1560,7 @@ function Qn(e) {
1507
1560
  body: e.slice(n + 2)
1508
1561
  } : { title: e, body: "" };
1509
1562
  }
1510
- function Te(e, n = /* @__PURE__ */ new Date()) {
1563
+ function Ee(e, n = /* @__PURE__ */ new Date()) {
1511
1564
  const r = new Date(n);
1512
1565
  r.setDate(r.getDate() + e);
1513
1566
  const a = r.getFullYear(), s = String(r.getMonth() + 1).padStart(2, "0"), o = String(r.getDate()).padStart(2, "0");
@@ -1522,22 +1575,22 @@ function le(e) {
1522
1575
  const n = typeof e == "string" ? new Date(e) : e;
1523
1576
  return new Date(n.getFullYear(), n.getMonth(), n.getDate());
1524
1577
  }
1525
- const vo = /^\d{4}-\d{2}-\d{2}(?:$|T00:00(?::00(?:\.\d+)?)?(?:[+-]\d{2}:\d{2}|Z)?)$/, Yn = /^\d{4}-\d{2}-\d{2}T(\d{2}):(\d{2})(?::\d{2}(?:\.\d+)?)?(?:[+-]\d{2}:\d{2})?$/;
1578
+ const No = /^\d{4}-\d{2}-\d{2}(?:$|T00:00(?::00(?:\.\d+)?)?(?:[+-]\d{2}:\d{2}|Z)?)$/, Qn = /^\d{4}-\d{2}-\d{2}T(\d{2}):(\d{2})(?::\d{2}(?:\.\d+)?)?(?:[+-]\d{2}:\d{2})?$/;
1526
1579
  function ct(e) {
1527
- return vo.test(e);
1580
+ return No.test(e);
1528
1581
  }
1529
1582
  function Vn(e) {
1530
1583
  if (!e) return "";
1531
- if (Yn.test(e))
1584
+ if (Qn.test(e))
1532
1585
  return e.slice(0, 10);
1533
1586
  if (ct(e)) {
1534
1587
  const r = /^(\d{4})-(\d{2})-(\d{2})/.exec(e);
1535
1588
  return r?.[1] && r[2] && r[3] ? `${r[1]}-${r[2]}-${r[3]}` : "";
1536
1589
  }
1537
1590
  const n = new Date(e);
1538
- return Number.isNaN(n.getTime()) ? "" : Te(0, n);
1591
+ return Number.isNaN(n.getTime()) ? "" : Ee(0, n);
1539
1592
  }
1540
- function jo(e, n = /* @__PURE__ */ new Date()) {
1593
+ function Co(e, n = /* @__PURE__ */ new Date()) {
1541
1594
  const r = le(e);
1542
1595
  if (Number.isNaN(r.getTime())) return null;
1543
1596
  const a = le(n), s = Date.UTC(r.getFullYear(), r.getMonth(), r.getDate()), o = Date.UTC(
@@ -1559,7 +1612,7 @@ const de = {
1559
1612
  all: (e) => [e],
1560
1613
  list: (e) => [...de.all(e), "list"],
1561
1614
  detail: (e, n) => [...de.all(e), "detail", n]
1562
- }, Q = {
1615
+ }, Y = {
1563
1616
  activities: (e) => ["portal-contacts", "activities", e],
1564
1617
  tasks: (e) => ["portal-contacts", "tasks", e],
1565
1618
  notes: (e) => ["portal-contacts", "notes", e],
@@ -1569,9 +1622,9 @@ const de = {
1569
1622
  groupMembers: (e) => ["portal-contacts", "group-members", e],
1570
1623
  groupAddSearch: (e, n) => ["portal-contacts", "group-add-search", e, n]
1571
1624
  };
1572
- function No(e) {
1625
+ function ko(e) {
1573
1626
  const n = xe();
1574
- return ma({
1627
+ return ia({
1575
1628
  queryKey: [...de.list("contacts"), e],
1576
1629
  queryFn: ({ pageParam: r }) => n.listContacts({
1577
1630
  ...e,
@@ -1585,14 +1638,14 @@ function No(e) {
1585
1638
  initialPageParam: 1
1586
1639
  });
1587
1640
  }
1588
- const Co = 30, _t = "12:00", Tt = /^(\d{2}):(\d{2})$/;
1641
+ const wo = 30, ht = "12:00", Tt = /^(\d{2}):(\d{2})$/;
1589
1642
  function Et(e) {
1590
1643
  const n = Tt.exec(e), r = n?.[1] ? Number(n[1]) : Number.NaN, a = n?.[2] ? Number(n[2]) : Number.NaN;
1591
1644
  return Number.isInteger(r) && Number.isInteger(a) && r >= 0 && r <= 23 && a >= 0 && a <= 59;
1592
1645
  }
1593
1646
  function Ht(e) {
1594
1647
  if (!e) return "";
1595
- const n = Yn.exec(e);
1648
+ const n = Qn.exec(e);
1596
1649
  if (n?.[1] && n[2]) {
1597
1650
  const a = `${n[1]}:${n[2]}`;
1598
1651
  return Et(a) ? a : "";
@@ -1603,7 +1656,7 @@ function Ht(e) {
1603
1656
  r.getMinutes()
1604
1657
  ).padStart(2, "0")}`;
1605
1658
  }
1606
- function ko(e, n) {
1659
+ function So(e, n) {
1607
1660
  const r = Tt.exec(e), a = r?.[1] ? Number(r[1]) : Number.NaN, s = r?.[2] ? Number(r[2]) : Number.NaN;
1608
1661
  if (!Et(e)) return e;
1609
1662
  const o = /* @__PURE__ */ new Date();
@@ -1612,11 +1665,11 @@ function ko(e, n) {
1612
1665
  minute: "2-digit"
1613
1666
  }).format(o);
1614
1667
  }
1615
- function wo(e) {
1668
+ function Mo(e) {
1616
1669
  const n = -e.getTimezoneOffset(), r = n >= 0 ? "+" : "-", a = Math.abs(n), s = String(Math.floor(a / 60)).padStart(2, "0"), o = String(a % 60).padStart(2, "0");
1617
1670
  return `${r}${s}:${o}`;
1618
1671
  }
1619
- function So(e, n) {
1672
+ function To(e, n) {
1620
1673
  if (!e) return null;
1621
1674
  if (Et(n)) {
1622
1675
  const r = /^(\d{4})-(\d{2})-(\d{2})$/.exec(e), a = Tt.exec(n);
@@ -1630,7 +1683,7 @@ function So(e, n) {
1630
1683
  0,
1631
1684
  0
1632
1685
  );
1633
- return `${e}T${n}:00${wo(s)}`;
1686
+ return `${e}T${n}:00${Mo(s)}`;
1634
1687
  }
1635
1688
  }
1636
1689
  return e;
@@ -1655,7 +1708,7 @@ function We({
1655
1708
  }
1656
1709
  );
1657
1710
  }
1658
- function Mo({
1711
+ function Eo({
1659
1712
  onSubmit: e,
1660
1713
  isSubmitting: n = !1,
1661
1714
  submitLabel: r,
@@ -1666,27 +1719,27 @@ function Mo({
1666
1719
  onClose: c,
1667
1720
  autoFocus: d = !0
1668
1721
  }) {
1669
- const { t: u, locale: m } = z(), [g, f] = i.useState(s), [h, y] = i.useState(o ?? null), [p, _] = i.useState(
1670
- () => Ht(o) || _t
1722
+ const { t: u, locale: m } = z(), [g, f] = i.useState(s), [_, y] = i.useState(o ?? null), [p, h] = i.useState(
1723
+ () => Ht(o) || ht
1671
1724
  ), [v, C] = i.useState(!1), [k, j] = i.useState(!1), [x, P] = i.useState(() => /* @__PURE__ */ new Date()), R = i.useId(), F = i.useRef(null);
1672
1725
  i.useEffect(() => {
1673
1726
  d && F.current?.focus();
1674
1727
  }, [d]), i.useEffect(() => {
1675
1728
  let w = null;
1676
- const U = () => {
1729
+ const G = () => {
1677
1730
  const ne = /* @__PURE__ */ new Date();
1678
1731
  P(ne);
1679
1732
  const te = new Date(ne);
1680
1733
  te.setHours(24, 0, 0, 0), w = setTimeout(
1681
- U,
1734
+ G,
1682
1735
  te.getTime() - ne.getTime()
1683
1736
  );
1684
1737
  };
1685
- return U(), () => {
1738
+ return G(), () => {
1686
1739
  w != null && clearTimeout(w);
1687
1740
  };
1688
1741
  }, []);
1689
- const I = i.useMemo(() => Vn(h), [h]), S = I !== "", L = Ht(o) !== "", $ = p !== "" && S && (v || L), b = i.useMemo(
1742
+ const I = i.useMemo(() => Vn(_), [_]), S = I !== "", L = Ht(o) !== "", $ = p !== "" && S && (v || L), b = i.useMemo(
1690
1743
  () => I === "" ? void 0 : le(I),
1691
1744
  [I]
1692
1745
  ), A = i.useMemo(
@@ -1696,7 +1749,7 @@ function Mo({
1696
1749
  () => m?.replace(/_/g, "-") ?? "en-US",
1697
1750
  [m]
1698
1751
  ), B = i.useMemo(() => b ? b.getTime() < A.getTime() ? A : b : A, [b, A]), T = i.useMemo(() => {
1699
- const w = Te(1, x), U = Te(7, x), ne = new Intl.DateTimeFormat(M, {
1752
+ const w = Ee(1, x), G = Ee(7, x), ne = new Intl.DateTimeFormat(M, {
1700
1753
  weekday: "short"
1701
1754
  }), te = new Intl.DateTimeFormat(M, {
1702
1755
  weekday: "short",
@@ -1706,14 +1759,14 @@ function Mo({
1706
1759
  return {
1707
1760
  tomorrow: w,
1708
1761
  tomorrowLabel: ne.format(le(w)),
1709
- nextWeek: U,
1710
- nextWeekLabel: te.format(le(U))
1762
+ nextWeek: G,
1763
+ nextWeekLabel: te.format(le(G))
1711
1764
  };
1712
1765
  }, [x, M]), X = i.useMemo(() => {
1713
1766
  const w = new Intl.DateTimeFormat(M, {
1714
1767
  month: "long",
1715
1768
  year: "numeric"
1716
- }), U = new Intl.DateTimeFormat(M, {
1769
+ }), G = new Intl.DateTimeFormat(M, {
1717
1770
  month: "long"
1718
1771
  }), ne = new Intl.DateTimeFormat(M, {
1719
1772
  year: "numeric"
@@ -1721,14 +1774,14 @@ function Mo({
1721
1774
  day: "numeric"
1722
1775
  }), N = new Intl.DateTimeFormat(M, {
1723
1776
  weekday: "short"
1724
- }), Z = new Intl.NumberFormat(M);
1777
+ }), J = new Intl.NumberFormat(M);
1725
1778
  return {
1726
- formatCaption: (G) => w.format(G),
1727
- formatMonthCaption: (G) => U.format(G),
1728
- formatYearCaption: (G) => ne.format(G),
1729
- formatDay: (G) => te.format(G),
1730
- formatWeekdayName: (G) => N.format(G),
1731
- formatWeekNumber: (G) => Z.format(G)
1779
+ formatCaption: (U) => w.format(U),
1780
+ formatMonthCaption: (U) => G.format(U),
1781
+ formatYearCaption: (U) => ne.format(U),
1782
+ formatDay: (U) => te.format(U),
1783
+ formatWeekdayName: (U) => N.format(U),
1784
+ formatWeekNumber: (U) => J.format(U)
1732
1785
  };
1733
1786
  }, [M]), be = i.useMemo(() => {
1734
1787
  const w = new Intl.DateTimeFormat(M, {
@@ -1736,7 +1789,7 @@ function Mo({
1736
1789
  month: "long",
1737
1790
  day: "numeric",
1738
1791
  year: "numeric"
1739
- }), U = new Intl.DateTimeFormat(M, {
1792
+ }), G = new Intl.DateTimeFormat(M, {
1740
1793
  weekday: "long"
1741
1794
  }), ne = new Intl.NumberFormat(M);
1742
1795
  return {
@@ -1745,30 +1798,30 @@ function Mo({
1745
1798
  labelMonthDropdown: () => u("calendar_month_dropdown"),
1746
1799
  labelYearDropdown: () => u("calendar_year_dropdown"),
1747
1800
  labelDay: (te) => w.format(te),
1748
- labelWeekday: (te) => U.format(te),
1801
+ labelWeekday: (te) => G.format(te),
1749
1802
  labelWeekNumber: (te) => u("calendar_week_number", {
1750
1803
  number: ne.format(te)
1751
1804
  })
1752
1805
  };
1753
1806
  }, [M, u]), oe = i.useMemo(() => {
1754
1807
  if (!S) return u("task_select_date");
1755
- const w = jo(I, x);
1756
- return w === 0 ? u("quick_today") : w === 1 ? u("quick_tomorrow") : w != null && w >= 2 && w <= Co ? u("task_due_in_days", { count: w }) : dt(I, M);
1757
- }, [I, S, x, M, u]), Me = i.useMemo(
1758
- () => $ ? ko(p, M) : "",
1808
+ const w = Co(I, x);
1809
+ return w === 0 ? u("quick_today") : w === 1 ? u("quick_tomorrow") : w != null && w >= 2 && w <= wo ? u("task_due_in_days", { count: w }) : dt(I, M);
1810
+ }, [I, S, x, M, u]), Te = i.useMemo(
1811
+ () => $ ? So(p, M) : "",
1759
1812
  [p, $, M]
1760
- ), je = $ ? `${oe}, ${Me}` : oe, se = () => {
1813
+ ), Ne = $ ? `${oe}, ${Te}` : oe, se = () => {
1761
1814
  const w = g.trim();
1762
1815
  !w || n || e({
1763
1816
  body: w,
1764
- due_at: v ? So(I, p) : o ?? null
1817
+ due_at: v ? To(I, p) : o ?? null
1765
1818
  });
1766
- }, Ne = g.trim().length > 0 && !n, E = (w) => {
1767
- C(!0), y(w), _((U) => U || _t);
1819
+ }, Ce = g.trim().length > 0 && !n, D = (w) => {
1820
+ C(!0), y(w), h((G) => G || ht);
1768
1821
  }, K = () => {
1769
- C(!0), y(null), _(_t), j(!1);
1770
- }, J = (w) => {
1771
- C(!0), _(w), w && !S && y(Te(0, x));
1822
+ C(!0), y(null), h(ht), j(!1);
1823
+ }, Z = (w) => {
1824
+ C(!0), h(w), w && !S && y(Ee(0, x));
1772
1825
  };
1773
1826
  return /* @__PURE__ */ t.jsxs("div", { className: "border-border/50 focus-within:border-foreground/30 rounded-xl border p-3 transition-colors", children: [
1774
1827
  /* @__PURE__ */ t.jsxs("div", { className: "flex items-start gap-3", children: [
@@ -1800,29 +1853,29 @@ function Mo({
1800
1853
  onClick: c,
1801
1854
  "aria-label": u("task_discard_aria"),
1802
1855
  className: "text-muted-foreground hover:bg-muted hover:text-foreground -mt-0.5 -mr-0.5 flex size-7 shrink-0 items-center justify-center rounded-md transition-colors",
1803
- children: /* @__PURE__ */ t.jsx(Ge, { className: "size-4" })
1856
+ children: /* @__PURE__ */ t.jsx(Ue, { className: "size-4" })
1804
1857
  }
1805
1858
  )
1806
1859
  ] }),
1807
1860
  /* @__PURE__ */ t.jsxs("div", { className: "mt-3 flex flex-wrap items-center gap-1.5 pl-(--row-indent) [--row-indent:2rem]", children: [
1808
- /* @__PURE__ */ t.jsxs(hn, { open: k, onOpenChange: j, children: [
1861
+ /* @__PURE__ */ t.jsxs(_n, { open: k, onOpenChange: j, children: [
1809
1862
  /* @__PURE__ */ t.jsx(xn, { asChild: !0, children: /* @__PURE__ */ t.jsxs(
1810
1863
  "button",
1811
1864
  {
1812
1865
  type: "button",
1813
1866
  "aria-label": S ? u("task_custom_date_selected_aria", {
1814
- date: je
1867
+ date: Ne
1815
1868
  }) : u("task_custom_date_aria"),
1816
- className: D(
1869
+ className: E(
1817
1870
  "flex shrink-0 items-center gap-1 rounded-full px-3 py-1 text-xs font-medium transition-colors",
1818
1871
  S ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-muted/70"
1819
1872
  ),
1820
1873
  children: [
1821
- /* @__PURE__ */ t.jsx(Se, { className: "size-3", "aria-hidden": "true" }),
1874
+ /* @__PURE__ */ t.jsx(Me, { className: "size-3", "aria-hidden": "true" }),
1822
1875
  /* @__PURE__ */ t.jsx("span", { children: oe }),
1823
1876
  $ && /* @__PURE__ */ t.jsxs("span", { className: "inline-flex items-center gap-0.5 text-current/80", children: [
1824
1877
  /* @__PURE__ */ t.jsx($t, { className: "size-3", "aria-hidden": "true" }),
1825
- /* @__PURE__ */ t.jsx("span", { children: Me })
1878
+ /* @__PURE__ */ t.jsx("span", { children: Te })
1826
1879
  ] })
1827
1880
  ]
1828
1881
  }
@@ -1839,33 +1892,33 @@ function Mo({
1839
1892
  /* @__PURE__ */ t.jsx(
1840
1893
  We,
1841
1894
  {
1842
- icon: Ha,
1895
+ icon: Qa,
1843
1896
  label: u("quick_today"),
1844
- onSelect: () => E(Te(0, x))
1897
+ onSelect: () => D(Ee(0, x))
1845
1898
  }
1846
1899
  ),
1847
1900
  /* @__PURE__ */ t.jsx(
1848
1901
  We,
1849
1902
  {
1850
- icon: Ya,
1903
+ icon: Wa,
1851
1904
  label: u("quick_tomorrow"),
1852
1905
  rightLabel: T.tomorrowLabel,
1853
- onSelect: () => E(T.tomorrow)
1906
+ onSelect: () => D(T.tomorrow)
1854
1907
  }
1855
1908
  ),
1856
1909
  /* @__PURE__ */ t.jsx(
1857
1910
  We,
1858
1911
  {
1859
- icon: Na,
1912
+ icon: ka,
1860
1913
  label: u("task_next_week"),
1861
1914
  rightLabel: T.nextWeekLabel,
1862
- onSelect: () => E(T.nextWeek)
1915
+ onSelect: () => D(T.nextWeek)
1863
1916
  }
1864
1917
  ),
1865
1918
  /* @__PURE__ */ t.jsx(
1866
1919
  We,
1867
1920
  {
1868
- icon: La,
1921
+ icon: Ia,
1869
1922
  label: u("task_no_date"),
1870
1923
  onSelect: K
1871
1924
  }
@@ -1883,8 +1936,8 @@ function Mo({
1883
1936
  disabled: { before: A },
1884
1937
  onSelect: (w) => {
1885
1938
  if (!w) return;
1886
- const U = le(w);
1887
- U.getTime() < A.getTime() || E(Te(0, U));
1939
+ const G = le(w);
1940
+ G.getTime() < A.getTime() || D(Ee(0, G));
1888
1941
  },
1889
1942
  className: "p-0 pt-2",
1890
1943
  classNames: {
@@ -1923,7 +1976,7 @@ function Mo({
1923
1976
  id: R,
1924
1977
  type: "time",
1925
1978
  value: p,
1926
- onChange: (w) => J(w.target.value),
1979
+ onChange: (w) => Z(w.target.value),
1927
1980
  "aria-label": u("task_time_aria"),
1928
1981
  className: "h-full border-0 bg-transparent p-0 text-right text-sm outline-none [&::-webkit-calendar-picker-indicator]:hidden"
1929
1982
  }
@@ -1940,7 +1993,7 @@ function Mo({
1940
1993
  {
1941
1994
  type: "button",
1942
1995
  onClick: se,
1943
- disabled: !Ne,
1996
+ disabled: !Ce,
1944
1997
  className: "bg-primary text-primary-foreground hover:bg-primary/90 disabled:bg-muted disabled:text-muted-foreground mt-1 -ml-(--row-indent) inline-flex h-10 w-[calc(100%+var(--row-indent))] items-center justify-center rounded-lg text-sm font-semibold transition-colors disabled:cursor-not-allowed sm:mt-0 sm:ml-auto sm:h-auto sm:w-auto sm:shrink-0 sm:gap-1.5 sm:rounded-full sm:px-4 sm:py-1.5 sm:text-xs",
1945
1998
  children: n ? a ?? u("adding") : r ?? u("add_task")
1946
1999
  }
@@ -1948,7 +2001,7 @@ function Mo({
1948
2001
  ] })
1949
2002
  ] });
1950
2003
  }
1951
- function Pe(e) {
2004
+ function ze(e) {
1952
2005
  e.invalidateQueries({
1953
2006
  queryKey: de.all("contacts")
1954
2007
  }), e.invalidateQueries({
@@ -1957,7 +2010,7 @@ function Pe(e) {
1957
2010
  queryKey: ["portal-contacts"]
1958
2011
  });
1959
2012
  }
1960
- function To({
2013
+ function Do({
1961
2014
  onNavigateToList: e,
1962
2015
  onSubmit: n,
1963
2016
  isPending: r,
@@ -1977,7 +2030,7 @@ function To({
1977
2030
  ),
1978
2031
  /* @__PURE__ */ t.jsx(q, { onClick: n, disabled: r, children: s(r ? "adding" : "add_contact") })
1979
2032
  ] }),
1980
- /* @__PURE__ */ t.jsx(_r, { children: /* @__PURE__ */ t.jsx(qr, { children: /* @__PURE__ */ t.jsxs($r, { className: "text-lg", children: [
2033
+ /* @__PURE__ */ t.jsx(hr, { children: /* @__PURE__ */ t.jsx(qr, { children: /* @__PURE__ */ t.jsxs($r, { className: "text-lg", children: [
1981
2034
  /* @__PURE__ */ t.jsx(Ot, { children: /* @__PURE__ */ t.jsx(
1982
2035
  Kr,
1983
2036
  {
@@ -1989,7 +2042,7 @@ function To({
1989
2042
  }
1990
2043
  ) }),
1991
2044
  /* @__PURE__ */ t.jsx(Br, {}),
1992
- /* @__PURE__ */ t.jsx(Ot, { children: /* @__PURE__ */ t.jsx(Ur, { className: "font-semibold", children: s("breadcrumb_new") }) })
2045
+ /* @__PURE__ */ t.jsx(Ot, { children: /* @__PURE__ */ t.jsx(Gr, { className: "font-semibold", children: s("breadcrumb_new") }) })
1993
2046
  ] }) }) }),
1994
2047
  a
1995
2048
  ] });
@@ -1997,7 +2050,7 @@ function To({
1997
2050
  function Dt() {
1998
2051
  const e = lt();
1999
2052
  return ve({
2000
- queryKey: Q.groups(),
2053
+ queryKey: Y.groups(),
2001
2054
  queryFn: () => e.listGroups(),
2002
2055
  enabled: !!e,
2003
2056
  select: (n) => n.groups
@@ -2013,7 +2066,7 @@ function Wn(e) {
2013
2066
  const n = e.trim().split(/\s+/), r = n[0]?.[0] ?? "", a = n.length > 1 ? n[n.length - 1]?.[0] ?? "" : "";
2014
2067
  return (r + a).toUpperCase() || "?";
2015
2068
  }
2016
- function Eo(e, n) {
2069
+ function Ao(e, n) {
2017
2070
  const r = typeof e.updated_at == "string" ? e.updated_at : null;
2018
2071
  if (!r) return null;
2019
2072
  const a = new Date(r);
@@ -2034,7 +2087,7 @@ function Eo(e, n) {
2034
2087
  const c = Math.floor(l / 365);
2035
2088
  return c === 1 ? n?.("relative_years_ago_one") ?? "1 year ago" : n?.("relative_years_ago_other", { count: String(c) }) ?? `${c} years ago`;
2036
2089
  }
2037
- function Do({
2090
+ function Po({
2038
2091
  contact: e,
2039
2092
  isSelected: n,
2040
2093
  highlight: r,
@@ -2046,17 +2099,17 @@ function Do({
2046
2099
  onPointerTarget: d,
2047
2100
  onDelete: u
2048
2101
  }) {
2049
- const { t: m } = z(), g = At(e, m), f = String(e.id), h = e.email ?? e.status?.trim() ?? null, y = i.useRef(null), p = i.useRef(null), _ = i.useRef(0), v = i.useRef(!1), C = i.useRef(0), k = i.useRef(0), j = i.useRef(!1), x = i.useRef(!1), P = i.useRef(!1), R = i.useRef(!1), F = i.useRef(null), I = i.useRef(null);
2102
+ const { t: m } = z(), g = At(e, m), f = String(e.id), _ = e.email ?? e.status?.trim() ?? null, y = i.useRef(null), p = i.useRef(null), h = i.useRef(0), v = i.useRef(!1), C = i.useRef(0), k = i.useRef(0), j = i.useRef(!1), x = i.useRef(!1), P = i.useRef(!1), R = i.useRef(!1), F = i.useRef(null), I = i.useRef(null);
2050
2103
  i.useEffect(() => () => {
2051
2104
  I.current?.abort();
2052
2105
  }, []);
2053
2106
  const S = i.useCallback(
2054
- (E, K) => {
2055
- _.current = E;
2056
- const J = p.current;
2057
- J && (J.style.opacity = E === 0 ? "0" : "1", J.style.pointerEvents = E <= -80 ? "auto" : "none");
2107
+ (D, K) => {
2108
+ h.current = D;
2109
+ const Z = p.current;
2110
+ Z && (Z.style.opacity = D === 0 ? "0" : "1", Z.style.pointerEvents = D <= -80 ? "auto" : "none");
2058
2111
  const w = y.current;
2059
- w && (K === "open" ? w.style.transition = "transform 0.15s cubic-bezier(0.25, 0.1, 0.25, 1)" : K === "close" ? w.style.transition = "transform 0.35s cubic-bezier(0.25, 0.1, 0.25, 1)" : w.style.transition = "none", w.style.transform = `translateX(${E}px)`);
2112
+ w && (K === "open" ? w.style.transition = "transform 0.15s cubic-bezier(0.25, 0.1, 0.25, 1)" : K === "close" ? w.style.transition = "transform 0.35s cubic-bezier(0.25, 0.1, 0.25, 1)" : w.style.transition = "none", w.style.transform = `translateX(${D}px)`);
2060
2113
  },
2061
2114
  []
2062
2115
  );
@@ -2066,65 +2119,65 @@ function Do({
2066
2119
  F.current && clearTimeout(F.current);
2067
2120
  }), [a, S, s, f]);
2068
2121
  const L = i.useCallback(
2069
- (E, K) => {
2070
- u && (C.current = E, k.current = K, j.current = !0, x.current = !1, P.current = !1, R.current = !1, F.current && clearTimeout(F.current), a || o?.());
2122
+ (D, K) => {
2123
+ u && (C.current = D, k.current = K, j.current = !0, x.current = !1, P.current = !1, R.current = !1, F.current && clearTimeout(F.current), a || o?.());
2071
2124
  },
2072
2125
  [u, a, o]
2073
2126
  ), $ = i.useCallback(
2074
- (E, K) => {
2127
+ (D, K) => {
2075
2128
  if (!j.current) return;
2076
- const J = E - C.current, w = K - k.current;
2077
- if (!x.current && (Math.abs(J) < 4 && Math.abs(w) < 4 || (x.current = !0, P.current = Math.abs(J) > Math.abs(w), !P.current)) || !P.current) return;
2129
+ const Z = D - C.current, w = K - k.current;
2130
+ if (!x.current && (Math.abs(Z) < 4 && Math.abs(w) < 4 || (x.current = !0, P.current = Math.abs(Z) > Math.abs(w), !P.current)) || !P.current) return;
2078
2131
  R.current = !0;
2079
- const ne = Math.max(-80, Math.min(0, (a ? -80 : 0) + J));
2132
+ const ne = Math.max(-80, Math.min(0, (a ? -80 : 0) + Z));
2080
2133
  S(ne, !1);
2081
2134
  },
2082
2135
  [a, S]
2083
2136
  ), b = i.useCallback(() => {
2084
2137
  if (!j.current || (j.current = !1, !R.current)) return;
2085
- _.current < -40 ? (S(-80, "open"), s?.(f, !0)) : (S(0, "close"), s?.(f, !1));
2138
+ h.current < -40 ? (S(-80, "open"), s?.(f, !0)) : (S(0, "close"), s?.(f, !1));
2086
2139
  }, [S, s, f]), A = i.useCallback(
2087
- (E) => {
2088
- const K = E.touches[0];
2140
+ (D) => {
2141
+ const K = D.touches[0];
2089
2142
  K && L(K.clientX, K.clientY);
2090
2143
  },
2091
2144
  [L]
2092
2145
  ), M = i.useCallback(
2093
- (E) => {
2094
- const K = E.touches[0];
2146
+ (D) => {
2147
+ const K = D.touches[0];
2095
2148
  K && $(K.clientX, K.clientY);
2096
2149
  },
2097
2150
  [$]
2098
2151
  ), B = i.useCallback(
2099
- (E) => {
2100
- if (E.button !== 0) return;
2101
- L(E.clientX, E.clientY), I.current?.abort();
2152
+ (D) => {
2153
+ if (D.button !== 0) return;
2154
+ L(D.clientX, D.clientY), I.current?.abort();
2102
2155
  const K = new AbortController();
2103
2156
  I.current = K;
2104
- const { signal: J } = K;
2157
+ const { signal: Z } = K;
2105
2158
  window.addEventListener(
2106
2159
  "mousemove",
2107
2160
  (w) => $(w.clientX, w.clientY),
2108
- { signal: J }
2161
+ { signal: Z }
2109
2162
  ), window.addEventListener(
2110
2163
  "mouseup",
2111
2164
  () => {
2112
2165
  b(), K.abort(), I.current === K && (I.current = null);
2113
2166
  },
2114
- { signal: J }
2167
+ { signal: Z }
2115
2168
  );
2116
2169
  },
2117
2170
  [L, $, b]
2118
2171
  ), T = i.useRef(0), X = i.useRef(null), be = i.useCallback(
2119
- (E) => {
2120
- if (!u || Math.abs(E.deltaX) <= Math.abs(E.deltaY)) return;
2121
- !X.current && !a && o?.(), T.current += E.deltaX;
2122
- const J = Math.max(
2172
+ (D) => {
2173
+ if (!u || Math.abs(D.deltaX) <= Math.abs(D.deltaY)) return;
2174
+ !X.current && !a && o?.(), T.current += D.deltaX;
2175
+ const Z = Math.max(
2123
2176
  -80,
2124
2177
  Math.min(0, (a ? -80 : 0) - T.current)
2125
2178
  );
2126
- S(J, !1), X.current && clearTimeout(X.current), X.current = setTimeout(() => {
2127
- _.current < -40 ? (S(-80, "open"), s?.(f, !0)) : (S(0, "close"), s?.(f, !1)), T.current = 0, X.current = null;
2179
+ S(Z, !1), X.current && clearTimeout(X.current), X.current = setTimeout(() => {
2180
+ h.current < -40 ? (S(-80, "open"), s?.(f, !0)) : (S(0, "close"), s?.(f, !1)), T.current = 0, X.current = null;
2128
2181
  }, 80);
2129
2182
  },
2130
2183
  [u, a, o, S, s, f]
@@ -2142,17 +2195,17 @@ function Do({
2142
2195
  return;
2143
2196
  }
2144
2197
  l(f);
2145
- }, [a, s, l, f]), Me = i.useCallback(() => oe(), [oe]), je = i.useCallback(
2146
- (E) => {
2147
- c?.(E, e);
2198
+ }, [a, s, l, f]), Te = i.useCallback(() => oe(), [oe]), Ne = i.useCallback(
2199
+ (D) => {
2200
+ c?.(D, e);
2148
2201
  },
2149
2202
  [c, e]
2150
2203
  ), se = i.useCallback(
2151
- (E) => {
2152
- E.pointerType !== "mouse" && d?.(e);
2204
+ (D) => {
2205
+ D.pointerType !== "mouse" && d?.(e);
2153
2206
  },
2154
2207
  [d, e]
2155
- ), Ne = i.useCallback(() => {
2208
+ ), Ce = i.useCallback(() => {
2156
2209
  a && (s?.(f, !1), u?.(e));
2157
2210
  }, [a, u, s, e, f]);
2158
2211
  return /* @__PURE__ */ t.jsxs("div", { className: "relative overflow-hidden rounded-xl", children: [
@@ -2168,15 +2221,15 @@ function Do({
2168
2221
  disabled: !a,
2169
2222
  "aria-hidden": !a,
2170
2223
  className: "bg-destructive text-destructive-foreground absolute inset-y-0 right-0 flex w-[88px] cursor-pointer appearance-none flex-col items-center justify-center gap-1 border-0 p-0 pl-2 transition-opacity disabled:cursor-default",
2171
- onPointerDown: (E) => {
2172
- E.stopPropagation();
2224
+ onPointerDown: (D) => {
2225
+ D.stopPropagation();
2173
2226
  },
2174
- onClick: (E) => {
2175
- E.stopPropagation(), Ne();
2227
+ onClick: (D) => {
2228
+ D.stopPropagation(), Ce();
2176
2229
  },
2177
2230
  "aria-label": m("delete_contact_aria", { name: g }),
2178
2231
  children: [
2179
- /* @__PURE__ */ t.jsx(st, { className: "size-5" }),
2232
+ /* @__PURE__ */ t.jsx(tt, { className: "size-5" }),
2180
2233
  /* @__PURE__ */ t.jsx("span", { className: "text-xs font-medium", children: m("delete") })
2181
2234
  ]
2182
2235
  }
@@ -2185,8 +2238,8 @@ function Do({
2185
2238
  "div",
2186
2239
  {
2187
2240
  ref: y,
2188
- onClick: Me,
2189
- onContextMenu: je,
2241
+ onClick: Te,
2242
+ onContextMenu: Ne,
2190
2243
  onPointerDown: d ? se : void 0,
2191
2244
  onTouchStart: u ? A : void 0,
2192
2245
  onTouchMove: u ? M : void 0,
@@ -2196,10 +2249,10 @@ function Do({
2196
2249
  role: "button",
2197
2250
  tabIndex: 0,
2198
2251
  "aria-current": n ? "true" : void 0,
2199
- onKeyDown: (E) => {
2200
- (E.key === "Enter" || E.key === " ") && (E.preventDefault(), oe());
2252
+ onKeyDown: (D) => {
2253
+ (D.key === "Enter" || D.key === " ") && (D.preventDefault(), oe());
2201
2254
  },
2202
- className: D(
2255
+ className: E(
2203
2256
  "group relative flex w-full cursor-pointer items-center gap-3.5 rounded-xl px-3 py-3 text-left select-none",
2204
2257
  n ? "bg-muted" : "bg-background hover:bg-muted",
2205
2258
  r && "animate-highlight-fade"
@@ -2208,7 +2261,7 @@ function Do({
2208
2261
  /* @__PURE__ */ t.jsx(
2209
2262
  "div",
2210
2263
  {
2211
- className: D(
2264
+ className: E(
2212
2265
  "text-muted-foreground relative flex size-12 shrink-0 items-center justify-center overflow-hidden rounded-xl text-base font-semibold transition-colors",
2213
2266
  n ? "bg-background" : "bg-muted"
2214
2267
  ),
@@ -2224,7 +2277,7 @@ function Do({
2224
2277
  ),
2225
2278
  /* @__PURE__ */ t.jsxs("div", { className: "min-w-0 flex-1", children: [
2226
2279
  /* @__PURE__ */ t.jsx("span", { className: "text-foreground block truncate text-sm font-semibold tracking-tight", children: g }),
2227
- h && /* @__PURE__ */ t.jsx("span", { className: "text-muted-foreground mt-0.5 block truncate text-sm", children: h })
2280
+ _ && /* @__PURE__ */ t.jsx("span", { className: "text-muted-foreground mt-0.5 block truncate text-sm", children: _ })
2228
2281
  ] }),
2229
2282
  n && /* @__PURE__ */ t.jsx(
2230
2283
  an,
@@ -2238,25 +2291,25 @@ function Do({
2238
2291
  )
2239
2292
  ] });
2240
2293
  }
2241
- function Ao({
2294
+ function zo({
2242
2295
  ...e
2243
2296
  }) {
2244
- return /* @__PURE__ */ t.jsx(_s, { "data-slot": "context-menu", ...e });
2297
+ return /* @__PURE__ */ t.jsx(xs, { "data-slot": "context-menu", ...e });
2245
2298
  }
2246
- function Po({
2299
+ function Fo({
2247
2300
  ...e
2248
2301
  }) {
2249
- return /* @__PURE__ */ t.jsx(hs, { "data-slot": "context-menu-trigger", ...e });
2302
+ return /* @__PURE__ */ t.jsx(bs, { "data-slot": "context-menu-trigger", ...e });
2250
2303
  }
2251
- function zo({
2304
+ function Ro({
2252
2305
  className: e,
2253
2306
  ...n
2254
2307
  }) {
2255
2308
  return /* @__PURE__ */ t.jsx(In, { children: /* @__PURE__ */ t.jsx(
2256
- xs,
2309
+ ys,
2257
2310
  {
2258
2311
  "data-slot": "context-menu-content",
2259
- className: D(
2312
+ className: E(
2260
2313
  "bg-popover text-popover-foreground data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-md",
2261
2314
  e
2262
2315
  ),
@@ -2264,19 +2317,19 @@ function zo({
2264
2317
  }
2265
2318
  ) });
2266
2319
  }
2267
- function ht({
2320
+ function _t({
2268
2321
  className: e,
2269
2322
  inset: n,
2270
2323
  variant: r = "default",
2271
2324
  ...a
2272
2325
  }) {
2273
2326
  return /* @__PURE__ */ t.jsx(
2274
- bs,
2327
+ vs,
2275
2328
  {
2276
2329
  "data-slot": "context-menu-item",
2277
2330
  "data-inset": n,
2278
2331
  "data-variant": r,
2279
- className: D(
2332
+ className: E(
2280
2333
  "focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground data-[variant=destructive]:*:[svg]:!text-destructive relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
2281
2334
  e
2282
2335
  ),
@@ -2284,36 +2337,36 @@ function ht({
2284
2337
  }
2285
2338
  );
2286
2339
  }
2287
- function Fo({
2340
+ function Io({
2288
2341
  className: e,
2289
2342
  ...n
2290
2343
  }) {
2291
2344
  return /* @__PURE__ */ t.jsx(
2292
- ys,
2345
+ js,
2293
2346
  {
2294
2347
  "data-slot": "context-menu-separator",
2295
- className: D("bg-border -mx-1 my-1 h-px", e),
2348
+ className: E("bg-border -mx-1 my-1 h-px", e),
2296
2349
  ...n
2297
2350
  }
2298
2351
  );
2299
2352
  }
2300
- function Ro({
2353
+ function Oo({
2301
2354
  ...e
2302
2355
  }) {
2303
- return /* @__PURE__ */ t.jsx(vs, { "data-slot": "context-menu-sub", ...e });
2356
+ return /* @__PURE__ */ t.jsx(Ns, { "data-slot": "context-menu-sub", ...e });
2304
2357
  }
2305
- function Io({
2358
+ function Lo({
2306
2359
  className: e,
2307
2360
  inset: n,
2308
2361
  children: r,
2309
2362
  ...a
2310
2363
  }) {
2311
2364
  return /* @__PURE__ */ t.jsxs(
2312
- js,
2365
+ Cs,
2313
2366
  {
2314
2367
  "data-slot": "context-menu-sub-trigger",
2315
2368
  "data-inset": n,
2316
- className: D(
2369
+ className: E(
2317
2370
  "focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
2318
2371
  e
2319
2372
  ),
@@ -2325,15 +2378,15 @@ function Io({
2325
2378
  }
2326
2379
  );
2327
2380
  }
2328
- function Oo({
2381
+ function qo({
2329
2382
  className: e,
2330
2383
  ...n
2331
2384
  }) {
2332
2385
  return /* @__PURE__ */ t.jsx(In, { children: /* @__PURE__ */ t.jsx(
2333
- Ns,
2386
+ ks,
2334
2387
  {
2335
2388
  "data-slot": "context-menu-sub-content",
2336
- className: D(
2389
+ className: E(
2337
2390
  "bg-popover text-popover-foreground data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-lg",
2338
2391
  e
2339
2392
  ),
@@ -2341,16 +2394,16 @@ function Oo({
2341
2394
  }
2342
2395
  ) });
2343
2396
  }
2344
- const Qt = 768;
2397
+ const Yt = 768;
2345
2398
  function Xn() {
2346
2399
  const [e, n] = i.useState(!1);
2347
2400
  return i.useEffect(() => {
2348
- const r = window.matchMedia(`(max-width: ${Qt - 1}px)`), a = () => n(window.innerWidth < Qt);
2401
+ const r = window.matchMedia(`(max-width: ${Yt - 1}px)`), a = () => n(window.innerWidth < Yt);
2349
2402
  return r.addEventListener("change", a), a(), () => r.removeEventListener("change", a);
2350
2403
  }, []), e;
2351
2404
  }
2352
- const Lo = 200;
2353
- function qo() {
2405
+ const $o = 200;
2406
+ function Ko() {
2354
2407
  const { t: e } = z();
2355
2408
  return i.useMemo(
2356
2409
  () => [
@@ -2369,10 +2422,10 @@ function qo() {
2369
2422
  [e]
2370
2423
  );
2371
2424
  }
2372
- function $o(e) {
2425
+ function Bo(e) {
2373
2426
  return e.kind === "all" ? "all" : e.kind === "status" ? `status:${e.status}` : `group:${e.tag}`;
2374
2427
  }
2375
- function Ko({
2428
+ function Go({
2376
2429
  selectedContactId: e,
2377
2430
  highlightContactId: n,
2378
2431
  onSelect: r,
@@ -2382,10 +2435,10 @@ function Ko({
2382
2435
  highlightGroupName: l,
2383
2436
  onDeleteContact: c
2384
2437
  }) {
2385
- const { t: d } = z(), u = qo(), [m, g] = i.useState(""), [f, h] = i.useState(""), [y, p] = i.useState(
2438
+ const { t: d } = z(), u = Ko(), [m, g] = i.useState(""), [f, _] = i.useState(""), [y, p] = i.useState(
2386
2439
  null
2387
- ), _ = i.useCallback(
2388
- (N, Z) => p(Z ? N : null),
2440
+ ), h = i.useCallback(
2441
+ (N, J) => p(J ? N : null),
2389
2442
  []
2390
2443
  ), v = i.useCallback(
2391
2444
  () => p(null),
@@ -2393,8 +2446,8 @@ function Ko({
2393
2446
  ), [C, k] = i.useState({ kind: "all" }), [j, x] = i.useState(null), [P, R] = i.useState(!1), [F, I] = i.useState(!1), S = i.useRef(!1), L = Xn(), $ = xe(), b = W();
2394
2447
  i.useEffect(() => {
2395
2448
  const N = window.setTimeout(() => {
2396
- h(m.trim());
2397
- }, Lo);
2449
+ _(m.trim());
2450
+ }, $o);
2398
2451
  return () => window.clearTimeout(N);
2399
2452
  }, [m]);
2400
2453
  const { data: A = [] } = Dt(), M = i.useMemo(
@@ -2412,68 +2465,68 @@ function Ko({
2412
2465
  isFetchingNextPage: X,
2413
2466
  hasNextPage: be,
2414
2467
  fetchNextPage: oe,
2415
- isError: Me
2416
- } = No(M), je = i.useMemo(
2468
+ isError: Te
2469
+ } = ko(M), Ne = i.useMemo(
2417
2470
  () => B?.pages.flatMap((N) => N.contacts ?? []) ?? [],
2418
2471
  [B]
2419
- ), se = i.useMemo(() => C.kind === "status" ? je.filter((N) => N.status === C.status) : je, [je, C]), Ne = i.useRef(null), E = i.useRef(!1);
2472
+ ), se = i.useMemo(() => C.kind === "status" ? Ne.filter((N) => N.status === C.status) : Ne, [Ne, C]), Ce = i.useRef(null), D = i.useRef(!1);
2420
2473
  i.useEffect(() => {
2421
- if (E.current) return;
2474
+ if (D.current) return;
2422
2475
  if (e) {
2423
- E.current = !0;
2476
+ D.current = !0;
2424
2477
  return;
2425
2478
  }
2426
2479
  if (T || se.length === 0) return;
2427
2480
  if (!(typeof window > "u" || window.matchMedia("(min-width: 768px)").matches)) {
2428
- E.current = !0;
2481
+ D.current = !0;
2429
2482
  return;
2430
2483
  }
2431
- const Z = se[0];
2432
- Z && (E.current = !0, r(String(Z.id)));
2484
+ const J = se[0];
2485
+ J && (D.current = !0, r(String(J.id)));
2433
2486
  }, [e, T, se, r]), i.useEffect(() => {
2434
- const N = Ne.current;
2487
+ const N = Ce.current;
2435
2488
  if (!N || !be) return;
2436
- const Z = new IntersectionObserver((G) => {
2437
- G[0]?.isIntersecting && !X && oe();
2489
+ const J = new IntersectionObserver((U) => {
2490
+ U[0]?.isIntersecting && !X && oe();
2438
2491
  });
2439
- return Z.observe(N), () => Z.disconnect();
2492
+ return J.observe(N), () => J.disconnect();
2440
2493
  }, [be, X, oe]);
2441
- const K = $o(C), J = i.useCallback(
2442
- (N, Z) => {
2443
- x(String(Z.id)), L && (N.preventDefault(), R(!0));
2494
+ const K = Bo(C), Z = i.useCallback(
2495
+ (N, J) => {
2496
+ x(String(J.id)), L && (N.preventDefault(), R(!0));
2444
2497
  },
2445
2498
  [L]
2446
2499
  ), w = i.useCallback((N) => {
2447
2500
  x(String(N.id));
2448
- }, []), U = i.useCallback(() => {
2501
+ }, []), G = i.useCallback(() => {
2449
2502
  if (j) {
2450
2503
  const N = se.find(
2451
- (Z) => String(Z.id) === j
2504
+ (J) => String(J.id) === j
2452
2505
  );
2453
2506
  return N ? [N] : [];
2454
2507
  }
2455
2508
  return [];
2456
2509
  }, [j, se]), ne = i.useCallback(() => {
2457
- const [N] = U();
2510
+ const [N] = G();
2458
2511
  N && (c?.(N), x(null));
2459
- }, [U, c]), te = i.useCallback(
2512
+ }, [G, c]), te = i.useCallback(
2460
2513
  (N) => {
2461
- const Z = U();
2462
- if (Z.length === 0) return;
2463
- const G = Z.filter((ye) => !(Array.isArray(ye.tags) ? ye.tags : []).includes(N));
2464
- if (G.length === 0) {
2514
+ const J = G();
2515
+ if (J.length === 0) return;
2516
+ const U = J.filter((ye) => !(Array.isArray(ye.tags) ? ye.tags : []).includes(N));
2517
+ if (U.length === 0) {
2465
2518
  x(null);
2466
2519
  return;
2467
2520
  }
2468
- const Ft = G.map((ye) => {
2521
+ const Ft = U.map((ye) => {
2469
2522
  const Re = Array.isArray(ye.tags) ? ye.tags : [];
2470
2523
  return $.updateContact(String(ye.id), {
2471
2524
  tags: [...Re, N]
2472
2525
  });
2473
2526
  });
2474
2527
  Promise.allSettled(Ft).then((ye) => {
2475
- Pe(b);
2476
- const Re = ye.filter((cr) => cr.status === "rejected").length, mt = G.length - Re;
2528
+ ze(b);
2529
+ const Re = ye.filter((cr) => cr.status === "rejected").length, mt = U.length - Re;
2477
2530
  Re === 0 ? O({
2478
2531
  title: mt === 1 ? d("contacts_added_to_group_one", {
2479
2532
  count: mt,
@@ -2484,12 +2537,12 @@ function Ko({
2484
2537
  }),
2485
2538
  type: "success"
2486
2539
  }) : O({
2487
- title: G.length === 1 ? d("contacts_add_to_group_failed_one", { group: N }) : d("contacts_add_to_group_failed_other", { group: N }),
2540
+ title: U.length === 1 ? d("contacts_add_to_group_failed_one", { group: N }) : d("contacts_add_to_group_failed_other", { group: N }),
2488
2541
  type: "error"
2489
2542
  }), x(null);
2490
2543
  });
2491
2544
  },
2492
- [U, $, b, d]
2545
+ [G, $, b, d]
2493
2546
  );
2494
2547
  return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
2495
2548
  /* @__PURE__ */ t.jsx("div", { className: "border-border/50 border-b px-6 py-3", children: /* @__PURE__ */ t.jsxs("div", { className: "flex items-center gap-3", children: [
@@ -2514,12 +2567,12 @@ function Ko({
2514
2567
  )
2515
2568
  ] }),
2516
2569
  /* @__PURE__ */ t.jsxs(q, { type: "button", size: "sm", onClick: a, children: [
2517
- /* @__PURE__ */ t.jsx(he, { className: "size-3.5", "aria-hidden": "true" }),
2570
+ /* @__PURE__ */ t.jsx(_e, { className: "size-3.5", "aria-hidden": "true" }),
2518
2571
  d("add")
2519
2572
  ] })
2520
2573
  ] }) }),
2521
2574
  /* @__PURE__ */ t.jsx(
2522
- Bo,
2575
+ Uo,
2523
2576
  {
2524
2577
  activeId: K,
2525
2578
  builtInFilters: u,
@@ -2531,17 +2584,17 @@ function Ko({
2531
2584
  }
2532
2585
  ),
2533
2586
  /* @__PURE__ */ t.jsxs("div", { className: "flex-1 overflow-y-auto px-3 pb-8", children: [
2534
- Me ? /* @__PURE__ */ t.jsx("div", { className: "text-muted-foreground px-4 py-8 text-center text-sm", children: d("error_loading_list") }) : T ? /* @__PURE__ */ t.jsx(Uo, {}) : se.length === 0 ? (
2587
+ Te ? /* @__PURE__ */ t.jsx("div", { className: "text-muted-foreground px-4 py-8 text-center text-sm", children: d("error_loading_list") }) : T ? /* @__PURE__ */ t.jsx(Ho, {}) : se.length === 0 ? (
2535
2588
  // Status filters apply client-side, so an empty visible list with
2536
2589
  // more pages still pending means matching contacts may be on later
2537
2590
  // pages. Keep the sentinel mounted so the IntersectionObserver can
2538
2591
  // continue paging until we either find matches or exhaust the data.
2539
2592
  /* @__PURE__ */ t.jsxs("div", { className: "space-y-2", children: [
2540
2593
  be || X ? /* @__PURE__ */ t.jsx("div", { className: "text-muted-foreground px-4 py-8 text-center text-sm", children: d("searching") }) : /* @__PURE__ */ t.jsx("div", { className: "text-muted-foreground px-4 py-8 text-center text-sm", children: f ? d("no_contacts_search", { term: f }) : C.kind === "all" ? d("no_contacts_yet") : d("no_contacts_filter") }),
2541
- be && /* @__PURE__ */ t.jsx("div", { ref: Ne, "aria-hidden": "true", className: "h-4" })
2594
+ be && /* @__PURE__ */ t.jsx("div", { ref: Ce, "aria-hidden": "true", className: "h-4" })
2542
2595
  ] })
2543
2596
  ) : /* @__PURE__ */ t.jsxs(
2544
- Ao,
2597
+ zo,
2545
2598
  {
2546
2599
  onOpenChange: (N) => {
2547
2600
  if (N) {
@@ -2555,34 +2608,34 @@ function Ko({
2555
2608
  x(null);
2556
2609
  },
2557
2610
  children: [
2558
- /* @__PURE__ */ t.jsx(Po, { asChild: !0, children: /* @__PURE__ */ t.jsxs("div", { className: "space-y-1", children: [
2611
+ /* @__PURE__ */ t.jsx(Fo, { asChild: !0, children: /* @__PURE__ */ t.jsxs("div", { className: "space-y-1", children: [
2559
2612
  se.map((N) => /* @__PURE__ */ t.jsx(
2560
- Do,
2613
+ Po,
2561
2614
  {
2562
2615
  contact: N,
2563
2616
  isSelected: String(N.id) === e,
2564
2617
  highlight: String(N.id) === n,
2565
2618
  revealed: y === String(N.id),
2566
- onRevealChange: _,
2619
+ onRevealChange: h,
2567
2620
  onDismissRevealed: v,
2568
2621
  onSelect: r,
2569
- onContextMenu: J,
2622
+ onContextMenu: Z,
2570
2623
  onPointerTarget: w,
2571
2624
  onDelete: c
2572
2625
  },
2573
2626
  N.id
2574
2627
  )),
2575
- /* @__PURE__ */ t.jsx("div", { ref: Ne, "aria-hidden": "true", className: "h-4" }),
2628
+ /* @__PURE__ */ t.jsx("div", { ref: Ce, "aria-hidden": "true", className: "h-4" }),
2576
2629
  X && /* @__PURE__ */ t.jsx("div", { className: "text-muted-foreground py-3 text-center text-xs", children: d("loading_more") })
2577
2630
  ] }) }),
2578
- !L && /* @__PURE__ */ t.jsxs(zo, { className: "min-w-48", children: [
2579
- /* @__PURE__ */ t.jsxs(Ro, { children: [
2580
- /* @__PURE__ */ t.jsxs(Io, { children: [
2581
- /* @__PURE__ */ t.jsx(ke, { className: "size-4", "aria-hidden": "true" }),
2631
+ !L && /* @__PURE__ */ t.jsxs(Ro, { className: "min-w-48", children: [
2632
+ /* @__PURE__ */ t.jsxs(Oo, { children: [
2633
+ /* @__PURE__ */ t.jsxs(Lo, { children: [
2634
+ /* @__PURE__ */ t.jsx(we, { className: "size-4", "aria-hidden": "true" }),
2582
2635
  d("groups_add_to_group")
2583
2636
  ] }),
2584
- /* @__PURE__ */ t.jsx(Oo, { children: A.length === 0 ? /* @__PURE__ */ t.jsx(ht, { disabled: !0, children: d("groups_no_groups_yet") }) : A.map((N) => /* @__PURE__ */ t.jsxs(
2585
- ht,
2637
+ /* @__PURE__ */ t.jsx(qo, { children: A.length === 0 ? /* @__PURE__ */ t.jsx(_t, { disabled: !0, children: d("groups_no_groups_yet") }) : A.map((N) => /* @__PURE__ */ t.jsxs(
2638
+ _t,
2586
2639
  {
2587
2640
  onSelect: () => te(N.name),
2588
2641
  children: [
@@ -2594,7 +2647,7 @@ function Ko({
2594
2647
  backgroundColor: N.avatar_background ?? "var(--color-muted)"
2595
2648
  },
2596
2649
  "aria-hidden": "true",
2597
- children: N.avatar ?? /* @__PURE__ */ t.jsx(ke, { className: "text-muted-foreground size-3" })
2650
+ children: N.avatar ?? /* @__PURE__ */ t.jsx(we, { className: "text-muted-foreground size-3" })
2598
2651
  }
2599
2652
  ),
2600
2653
  N.name
@@ -2604,14 +2657,14 @@ function Ko({
2604
2657
  )) })
2605
2658
  ] }),
2606
2659
  c && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
2607
- /* @__PURE__ */ t.jsx(Fo, {}),
2660
+ /* @__PURE__ */ t.jsx(Io, {}),
2608
2661
  /* @__PURE__ */ t.jsxs(
2609
- ht,
2662
+ _t,
2610
2663
  {
2611
2664
  variant: "destructive",
2612
2665
  onSelect: ne,
2613
2666
  children: [
2614
- /* @__PURE__ */ t.jsx(st, { className: "size-4", "aria-hidden": "true" }),
2667
+ /* @__PURE__ */ t.jsx(tt, { className: "size-4", "aria-hidden": "true" }),
2615
2668
  d("delete")
2616
2669
  ]
2617
2670
  }
@@ -2649,7 +2702,7 @@ function Ko({
2649
2702
  }
2650
2703
  ),
2651
2704
  L && /* @__PURE__ */ t.jsx(
2652
- tt,
2705
+ nt,
2653
2706
  {
2654
2707
  open: F,
2655
2708
  onOpenChange: (N) => {
@@ -2673,7 +2726,7 @@ function Ko({
2673
2726
  backgroundColor: N.avatar_background ?? "var(--color-muted)"
2674
2727
  },
2675
2728
  "aria-hidden": "true",
2676
- children: N.avatar ?? /* @__PURE__ */ t.jsx(ke, { className: "text-muted-foreground size-4" })
2729
+ children: N.avatar ?? /* @__PURE__ */ t.jsx(we, { className: "text-muted-foreground size-4" })
2677
2730
  }
2678
2731
  ),
2679
2732
  N.name
@@ -2686,7 +2739,7 @@ function Ko({
2686
2739
  ] })
2687
2740
  ] });
2688
2741
  }
2689
- function Bo({
2742
+ function Uo({
2690
2743
  activeId: e,
2691
2744
  builtInFilters: n,
2692
2745
  groups: r,
@@ -2707,20 +2760,20 @@ function Bo({
2707
2760
  [n, r]
2708
2761
  );
2709
2762
  return /* @__PURE__ */ t.jsxs("div", { className: "flex items-center pt-4 pb-4", children: [
2710
- /* @__PURE__ */ t.jsx("div", { className: "flex-1 overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", children: /* @__PURE__ */ t.jsx("div", { className: "flex gap-1.5 pl-6", children: g.map(({ id: f, label: h, value: y }) => {
2711
- const p = f === e, _ = l && f === `group:${l}`;
2763
+ /* @__PURE__ */ t.jsx("div", { className: "flex-1 overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", children: /* @__PURE__ */ t.jsx("div", { className: "flex gap-1.5 pl-6", children: g.map(({ id: f, label: _, value: y }) => {
2764
+ const p = f === e, h = l && f === `group:${l}`;
2712
2765
  return /* @__PURE__ */ t.jsx(
2713
2766
  "button",
2714
2767
  {
2715
2768
  type: "button",
2716
2769
  onClick: () => a(y),
2717
2770
  "aria-pressed": p,
2718
- className: D(
2771
+ className: E(
2719
2772
  "shrink-0 rounded-full px-4 py-1.5 text-sm font-semibold capitalize transition-colors",
2720
2773
  p ? "bg-primary text-primary-foreground" : "border-border/50 bg-muted text-foreground hover:bg-muted/70 border",
2721
- _ && "animate-highlight-fade"
2774
+ h && "animate-highlight-fade"
2722
2775
  ),
2723
- children: h
2776
+ children: _
2724
2777
  },
2725
2778
  f
2726
2779
  );
@@ -2762,8 +2815,8 @@ function Bo({
2762
2815
  ]
2763
2816
  }
2764
2817
  )
2765
- ] }) : /* @__PURE__ */ t.jsxs(nt, { children: [
2766
- /* @__PURE__ */ t.jsx(rt, { asChild: !0, children: /* @__PURE__ */ t.jsx(
2818
+ ] }) : /* @__PURE__ */ t.jsxs(rt, { children: [
2819
+ /* @__PURE__ */ t.jsx(at, { asChild: !0, children: /* @__PURE__ */ t.jsx(
2767
2820
  "button",
2768
2821
  {
2769
2822
  type: "button",
@@ -2772,13 +2825,13 @@ function Bo({
2772
2825
  children: /* @__PURE__ */ t.jsx(Ze, { className: "size-4" })
2773
2826
  }
2774
2827
  ) }),
2775
- /* @__PURE__ */ t.jsxs(at, { align: "end", children: [
2828
+ /* @__PURE__ */ t.jsxs(st, { align: "end", children: [
2776
2829
  s && /* @__PURE__ */ t.jsxs($e, { onClick: s, children: [
2777
- /* @__PURE__ */ t.jsx(pa, { className: "size-4", "aria-hidden": "true" }),
2830
+ /* @__PURE__ */ t.jsx(Ga, { className: "size-4", "aria-hidden": "true" }),
2778
2831
  c("groups_manage_title")
2779
2832
  ] }),
2780
2833
  o && /* @__PURE__ */ t.jsxs($e, { onClick: o, children: [
2781
- /* @__PURE__ */ t.jsx(he, { className: "size-4", "aria-hidden": "true" }),
2834
+ /* @__PURE__ */ t.jsx(_e, { className: "size-4", "aria-hidden": "true" }),
2782
2835
  c("groups_create_title")
2783
2836
  ] })
2784
2837
  ] })
@@ -2786,24 +2839,24 @@ function Bo({
2786
2839
  ] })
2787
2840
  ] });
2788
2841
  }
2789
- function Uo() {
2842
+ function Ho() {
2790
2843
  return /* @__PURE__ */ t.jsx("div", { className: "space-y-1.5 px-1", children: [0, 1, 2, 3, 4].map((e) => /* @__PURE__ */ t.jsxs(
2791
2844
  "div",
2792
2845
  {
2793
2846
  className: "flex items-center gap-3 rounded-xl p-3",
2794
2847
  "aria-hidden": "true",
2795
2848
  children: [
2796
- /* @__PURE__ */ t.jsx(Ee, { className: "size-12 shrink-0 rounded-xl" }),
2849
+ /* @__PURE__ */ t.jsx(De, { className: "size-12 shrink-0 rounded-xl" }),
2797
2850
  /* @__PURE__ */ t.jsxs("div", { className: "flex-1 space-y-2", children: [
2798
- /* @__PURE__ */ t.jsx(Ee, { className: "h-3.5 w-3/5" }),
2799
- /* @__PURE__ */ t.jsx(Ee, { className: "h-3 w-4/5" })
2851
+ /* @__PURE__ */ t.jsx(De, { className: "h-3.5 w-3/5" }),
2852
+ /* @__PURE__ */ t.jsx(De, { className: "h-3 w-4/5" })
2800
2853
  ] })
2801
2854
  ]
2802
2855
  },
2803
2856
  e
2804
2857
  )) });
2805
2858
  }
2806
- const Go = {
2859
+ const Yo = {
2807
2860
  label_first_name: "First Name",
2808
2861
  label_last_name: "Last Name",
2809
2862
  label_email: "Email",
@@ -2830,14 +2883,14 @@ const Go = {
2830
2883
  status_cold: "Cold",
2831
2884
  status_lead: "Lead",
2832
2885
  status_customer: "Customer"
2833
- }, Ho = [], Qo = [
2886
+ }, Qo = [], Vo = [
2834
2887
  "new",
2835
2888
  "active",
2836
2889
  "inactive",
2837
2890
  "cold",
2838
2891
  "lead",
2839
2892
  "customer"
2840
- ], Yo = {
2893
+ ], Wo = {
2841
2894
  new: "status_new",
2842
2895
  active: "status_active",
2843
2896
  inactive: "status_inactive",
@@ -2846,26 +2899,26 @@ const Go = {
2846
2899
  customer: "status_customer"
2847
2900
  }, vt = ({
2848
2901
  className: e,
2849
- countries: n = Ho,
2902
+ countries: n = Qo,
2850
2903
  renderAvatarPicker: r
2851
2904
  }) => {
2852
- const { control: a, watch: s, setValue: o } = hr(), l = Ye(), c = i.useCallback(
2853
- (p, _) => {
2905
+ const { control: a, watch: s, setValue: o } = _r(), l = Qe(), c = i.useCallback(
2906
+ (p, h) => {
2854
2907
  if (l)
2855
2908
  return l.t(
2856
2909
  p,
2857
- _
2910
+ h
2858
2911
  );
2859
- let v = Go[p] ?? p;
2860
- if (_)
2861
- for (const [C, k] of Object.entries(_))
2912
+ let v = Yo[p] ?? p;
2913
+ if (h)
2914
+ for (const [C, k] of Object.entries(h))
2862
2915
  v = v.replaceAll(`{{${C}}}`, k);
2863
2916
  return v;
2864
2917
  },
2865
2918
  [l]
2866
2919
  ), d = xr({ control: a, name: "status" }), u = s("avatar_url") ?? null, m = i.useMemo(
2867
- () => Qo.map((p) => ({
2868
- name: c(Yo[p]),
2920
+ () => Vo.map((p) => ({
2921
+ name: c(Wo[p]),
2869
2922
  value: p
2870
2923
  })),
2871
2924
  [c]
@@ -2875,8 +2928,8 @@ const Go = {
2875
2928
  value: d
2876
2929
  },
2877
2930
  ...m
2878
- ] : m, [d, m]), f = s("first_name")?.[0] ?? "", h = s("last_name")?.[0] ?? "", y = [f, h].filter(Boolean).join("").toUpperCase() || "?";
2879
- return /* @__PURE__ */ t.jsxs("div", { className: D("space-y-6", e), children: [
2931
+ ] : m, [d, m]), f = s("first_name")?.[0] ?? "", _ = s("last_name")?.[0] ?? "", y = [f, _].filter(Boolean).join("").toUpperCase() || "?";
2932
+ return /* @__PURE__ */ t.jsxs("div", { className: E("space-y-6", e), children: [
2880
2933
  r && /* @__PURE__ */ t.jsxs("div", { className: "flex flex-col items-center gap-3", children: [
2881
2934
  /* @__PURE__ */ t.jsx("div", { className: "border-border bg-background relative size-20 shrink-0 overflow-hidden rounded-full border-2", children: u ? /* @__PURE__ */ t.jsx(
2882
2935
  "img",
@@ -2980,15 +3033,15 @@ const Go = {
2980
3033
  name: "status",
2981
3034
  render: ({ field: p }) => /* @__PURE__ */ t.jsxs(me, { children: [
2982
3035
  /* @__PURE__ */ t.jsx(pe, { className: "font-inter text-foreground font-medium", children: c("label_status") }),
2983
- /* @__PURE__ */ t.jsxs(ia, { value: p.value ?? "", onValueChange: p.onChange, children: [
2984
- /* @__PURE__ */ t.jsx(fe, { children: /* @__PURE__ */ t.jsx(la, { className: "w-full", children: /* @__PURE__ */ t.jsx(ca, { placeholder: c("placeholder_status") }) }) }),
3036
+ /* @__PURE__ */ t.jsxs(ya, { value: p.value ?? "", onValueChange: p.onChange, children: [
3037
+ /* @__PURE__ */ t.jsx(fe, { children: /* @__PURE__ */ t.jsx(va, { className: "w-full", children: /* @__PURE__ */ t.jsx(ja, { placeholder: c("placeholder_status") }) }) }),
2985
3038
  /* @__PURE__ */ t.jsx(
2986
- da,
3039
+ Na,
2987
3040
  {
2988
3041
  position: "popper",
2989
3042
  sideOffset: 4,
2990
3043
  className: "z-[1060]",
2991
- children: g.map((_) => /* @__PURE__ */ t.jsx(ua, { value: _.value, children: _.name }, _.value))
3044
+ children: g.map((h) => /* @__PURE__ */ t.jsx(Ca, { value: h.value, children: h.name }, h.value))
2992
3045
  }
2993
3046
  )
2994
3047
  ] }),
@@ -3084,11 +3137,11 @@ const Go = {
3084
3137
  render: ({ field: p }) => /* @__PURE__ */ t.jsxs(me, { children: [
3085
3138
  /* @__PURE__ */ t.jsx(pe, { className: "font-inter text-foreground font-medium", children: c("label_country") }),
3086
3139
  /* @__PURE__ */ t.jsx(fe, { children: /* @__PURE__ */ t.jsx(
3087
- Ca,
3140
+ wa,
3088
3141
  {
3089
- options: n.map((_) => ({
3090
- label: _.name,
3091
- value: _.value
3142
+ options: n.map((h) => ({
3143
+ label: h.name,
3144
+ value: h.value
3092
3145
  })),
3093
3146
  value: p.value ?? "",
3094
3147
  onValueChange: p.onChange,
@@ -3103,7 +3156,7 @@ const Go = {
3103
3156
  ] })
3104
3157
  ] });
3105
3158
  };
3106
- function Vo(e, n = "contacts") {
3159
+ function Xo(e, n = "contacts") {
3107
3160
  const r = xe();
3108
3161
  return ve({
3109
3162
  queryKey: de.detail(n, e),
@@ -3111,7 +3164,7 @@ function Vo(e, n = "contacts") {
3111
3164
  enabled: !!e
3112
3165
  });
3113
3166
  }
3114
- function Wo(e = "contacts", n) {
3167
+ function Zo(e = "contacts", n) {
3115
3168
  const r = W(), a = xe();
3116
3169
  return re({
3117
3170
  mutationFn: ({ id: s, data: o }) => a.updateContact(s, o),
@@ -3125,9 +3178,9 @@ function Wo(e = "contacts", n) {
3125
3178
  }
3126
3179
  });
3127
3180
  }
3128
- function Xo(e, n = "contacts", r) {
3129
- const a = Ye();
3130
- return Wo(n, {
3181
+ function Jo(e, n = "contacts", r) {
3182
+ const a = Qe();
3183
+ return Zo(n, {
3131
3184
  onSuccess: () => {
3132
3185
  O({
3133
3186
  title: a?.t("contact_updated") ?? "Contact updated successfully",
@@ -3143,7 +3196,7 @@ function Xo(e, n = "contacts", r) {
3143
3196
  }
3144
3197
  });
3145
3198
  }
3146
- function Jo(e = "contacts", n) {
3199
+ function ei(e = "contacts", n) {
3147
3200
  const r = W(), a = xe();
3148
3201
  return re({
3149
3202
  mutationFn: (s) => a.deleteContact(s),
@@ -3157,9 +3210,9 @@ function Jo(e = "contacts", n) {
3157
3210
  }
3158
3211
  });
3159
3212
  }
3160
- function Zo(e = "contacts", n) {
3161
- const r = Ye();
3162
- return Jo(e, {
3213
+ function ti(e = "contacts", n) {
3214
+ const r = Qe();
3215
+ return ei(e, {
3163
3216
  onSuccess: () => {
3164
3217
  O({
3165
3218
  title: r?.t("contact_deleted") ?? "Contact deleted successfully",
@@ -3175,7 +3228,7 @@ function Zo(e = "contacts", n) {
3175
3228
  }
3176
3229
  });
3177
3230
  }
3178
- function Jn(e) {
3231
+ function Zn(e) {
3179
3232
  return Pr({
3180
3233
  first_name: ie().min(1, {
3181
3234
  message: e?.first_name_required ?? "First name is required"
@@ -3196,34 +3249,34 @@ function Jn(e) {
3196
3249
  metadata: Rt(ie(), It()).optional()
3197
3250
  });
3198
3251
  }
3199
- const Pt = Jn();
3200
- function ei(e) {
3201
- return Jn(e).passthrough();
3252
+ const Pt = Zn();
3253
+ function ni(e) {
3254
+ return Zn(e).passthrough();
3202
3255
  }
3203
3256
  Pt.passthrough();
3204
- const ti = Object.keys(
3257
+ const ri = Object.keys(
3205
3258
  Pt.shape
3206
3259
  );
3207
- function Zn(e, n) {
3260
+ function Jn(e, n) {
3208
3261
  if (Object.is(e, n)) return !0;
3209
3262
  if (typeof e != "object" || e === null || typeof n != "object" || n === null) return !1;
3210
3263
  const r = Object.entries(e), a = Object.entries(n);
3211
3264
  return r.length === a.length && r.every(
3212
- ([s, o]) => Object.hasOwn(n, s) && Zn(o, n[s])
3265
+ ([s, o]) => Object.hasOwn(n, s) && Jn(o, n[s])
3213
3266
  );
3214
3267
  }
3215
- function ni(e, n) {
3216
- const r = Ye(), a = n?.queryKeyPrefix ?? "contacts", { data: s, isLoading: o } = Vo(e, a), { data: l } = ve({
3268
+ function ai(e, n) {
3269
+ const r = Qe(), a = n?.queryKeyPrefix ?? "contacts", { data: s, isLoading: o } = Xo(e, a), { data: l } = ve({
3217
3270
  queryKey: n?.countriesQueryKey ?? ["countries"],
3218
3271
  queryFn: n?.getCountries ?? (() => Promise.resolve([])),
3219
3272
  enabled: !!n?.getCountries
3220
3273
  }), c = i.useMemo(
3221
3274
  () => [
3222
- ...l?.map((_) => ({
3223
- name: _.name,
3224
- value: _.iso ?? _.id.toString()
3275
+ ...l?.map((h) => ({
3276
+ name: h.name,
3277
+ value: h.iso ?? h.id.toString()
3225
3278
  })) ?? []
3226
- ].sort((_, v) => _.name.localeCompare(v.name)),
3279
+ ].sort((h, v) => h.name.localeCompare(v.name)),
3227
3280
  [l]
3228
3281
  ), d = s?.contact, u = i.useMemo(() => {
3229
3282
  if (d)
@@ -3232,7 +3285,7 @@ function ni(e, n) {
3232
3285
  country_code: d.country?.iso ?? d.country_id?.toString() ?? null
3233
3286
  };
3234
3287
  }, [d]), m = i.useMemo(
3235
- () => ei(
3288
+ () => ni(
3236
3289
  r ? {
3237
3290
  first_name_required: r.t("validation_first_name_required"),
3238
3291
  last_name_required: r.t("validation_last_name_required")
@@ -3242,30 +3295,30 @@ function ni(e, n) {
3242
3295
  ), g = pn(m, {
3243
3296
  values: u,
3244
3297
  mode: "onBlur"
3245
- }), f = Xo(e, a, {
3298
+ }), f = Jo(e, a, {
3246
3299
  onSuccess: () => {
3247
3300
  g.reset(g.getValues()), n?.onSaveSuccess?.();
3248
3301
  }
3249
- }), h = Zo(a, {
3302
+ }), _ = ti(a, {
3250
3303
  onSuccess: () => {
3251
3304
  n?.onDeleteSuccess?.();
3252
3305
  }
3253
3306
  }), y = i.useCallback(() => {
3254
3307
  g.handleSubmit(
3255
- (_) => {
3308
+ (h) => {
3256
3309
  const v = {};
3257
- for (const C of ti)
3258
- C === "affiliate" && Zn(
3259
- _.affiliate,
3310
+ for (const C of ri)
3311
+ C === "affiliate" && Jn(
3312
+ h.affiliate,
3260
3313
  g.formState.defaultValues?.affiliate
3261
- ) || C in _ && (v[C] = _[C]);
3314
+ ) || C in h && (v[C] = h[C]);
3262
3315
  f.mutate({
3263
3316
  id: e,
3264
3317
  data: v
3265
3318
  });
3266
3319
  },
3267
- (_) => {
3268
- const v = Object.entries(_).map(([C, k]) => {
3320
+ (h) => {
3321
+ const v = Object.entries(h).map(([C, k]) => {
3269
3322
  const j = typeof k?.message == "string" ? k.message : "invalid";
3270
3323
  return `${C.replace(/_/g, " ")}: ${j}`;
3271
3324
  }).join(", ");
@@ -3277,8 +3330,8 @@ function ni(e, n) {
3277
3330
  }
3278
3331
  )();
3279
3332
  }, [g, f, e, r]), p = i.useCallback(() => {
3280
- h.mutate(e);
3281
- }, [h, e]);
3333
+ _.mutate(e);
3334
+ }, [_, e]);
3282
3335
  return {
3283
3336
  contact: d,
3284
3337
  isLoading: o,
@@ -3286,24 +3339,24 @@ function ni(e, n) {
3286
3339
  countryOptions: c,
3287
3340
  isDirty: g.formState.isDirty,
3288
3341
  isSubmitting: f.isPending,
3289
- isDeleting: h.isPending,
3342
+ isDeleting: _.isPending,
3290
3343
  onSave: y,
3291
3344
  onDelete: p
3292
3345
  };
3293
3346
  }
3294
- function ri(e) {
3295
- const n = Qe();
3347
+ function si(e) {
3348
+ const n = Ye();
3296
3349
  return ve({
3297
- queryKey: Q.tasks(e),
3350
+ queryKey: Y.tasks(e),
3298
3351
  queryFn: () => n.listTasks(e),
3299
3352
  enabled: !!e,
3300
3353
  select: (r) => r.tasks
3301
3354
  });
3302
3355
  }
3303
- function ai(e) {
3356
+ function oi(e) {
3304
3357
  const n = it();
3305
3358
  return ve({
3306
- queryKey: Q.notes(e),
3359
+ queryKey: Y.notes(e),
3307
3360
  queryFn: () => n.listNotes(e),
3308
3361
  enabled: !!e,
3309
3362
  select: (r) => r.notes
@@ -3317,7 +3370,7 @@ function er() {
3317
3370
  return e.createGroup(a);
3318
3371
  },
3319
3372
  onSuccess: () => {
3320
- n.invalidateQueries({ queryKey: Q.groups() });
3373
+ n.invalidateQueries({ queryKey: Y.groups() });
3321
3374
  },
3322
3375
  onError: (a) => {
3323
3376
  O({
@@ -3328,7 +3381,7 @@ function er() {
3328
3381
  }
3329
3382
  });
3330
3383
  }
3331
- function si(e, n = "sdk-contacts", r) {
3384
+ function ii(e, n = "sdk-contacts", r) {
3332
3385
  const a = xe(), s = W();
3333
3386
  return re({
3334
3387
  mutationFn: (o) => a.updateContact(e, { tags: o }),
@@ -3342,7 +3395,7 @@ function si(e, n = "sdk-contacts", r) {
3342
3395
  onError: r?.onError
3343
3396
  });
3344
3397
  }
3345
- const oi = {
3398
+ const li = {
3346
3399
  // Contact statuses
3347
3400
  new: "border-[var(--status-new-border)] bg-[var(--status-new)] text-[var(--status-new-foreground)]",
3348
3401
  active: "border-[var(--status-active-border)] bg-[var(--status-active)] text-[var(--status-active-foreground)]",
@@ -3357,11 +3410,11 @@ const oi = {
3357
3410
  neutral: "border-border bg-muted text-muted-foreground",
3358
3411
  notice: "border-[var(--badge-notice-border)] bg-[var(--badge-notice)] text-[var(--badge-notice-foreground)]",
3359
3412
  accent: "border-[var(--badge-accent-border)] bg-[var(--badge-accent)] text-[var(--badge-accent-foreground)]"
3360
- }, ii = "border-border bg-muted text-muted-foreground";
3361
- function li(e) {
3362
- return oi[e] ?? ii;
3413
+ }, ci = "border-border bg-muted text-muted-foreground";
3414
+ function di(e) {
3415
+ return li[e] ?? ci;
3363
3416
  }
3364
- function ci({
3417
+ function ui({
3365
3418
  status: e,
3366
3419
  label: n,
3367
3420
  className: r
@@ -3369,16 +3422,16 @@ function ci({
3369
3422
  return /* @__PURE__ */ t.jsx(
3370
3423
  "span",
3371
3424
  {
3372
- className: D(
3425
+ className: E(
3373
3426
  "inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold capitalize",
3374
- li(e),
3427
+ di(e),
3375
3428
  r
3376
3429
  ),
3377
3430
  children: n ?? e
3378
3431
  }
3379
3432
  );
3380
3433
  }
3381
- const di = [
3434
+ const mi = [
3382
3435
  "Customer",
3383
3436
  "Cold",
3384
3437
  "Hot",
@@ -3386,14 +3439,14 @@ const di = [
3386
3439
  "Leaders",
3387
3440
  "Pros"
3388
3441
  ];
3389
- function ui({
3442
+ function pi({
3390
3443
  contactTags: e,
3391
3444
  availableGroups: n,
3392
3445
  onSave: r,
3393
3446
  onCreateGroup: a,
3394
3447
  isSaving: s = !1
3395
3448
  }) {
3396
- const { t: o } = z(), [l, c] = i.useState(!1), [d, u] = i.useState([]), [m, g] = i.useState(""), [f, h] = i.useState([]), [y, p] = i.useState(/* @__PURE__ */ new Set()), [_, v] = i.useState(/* @__PURE__ */ new Set()), [C, k] = i.useState(e), j = i.useRef(e);
3449
+ const { t: o } = z(), [l, c] = i.useState(!1), [d, u] = i.useState([]), [m, g] = i.useState(""), [f, _] = i.useState([]), [y, p] = i.useState(/* @__PURE__ */ new Set()), [h, v] = i.useState(/* @__PURE__ */ new Set()), [C, k] = i.useState(e), j = i.useRef(e);
3397
3450
  i.useEffect(() => {
3398
3451
  const b = j.current, A = b.filter((T) => !e.includes(T)), M = e.filter((T) => !b.includes(T));
3399
3452
  let B;
@@ -3408,7 +3461,7 @@ function ui({
3408
3461
  return () => clearTimeout(b);
3409
3462
  }, [y]);
3410
3463
  const x = i.useCallback(() => {
3411
- u([...e]), h([...e]), g(""), c(!0);
3464
+ u([...e]), _([...e]), g(""), c(!0);
3412
3465
  }, [e]), P = i.useCallback(() => {
3413
3466
  c(!1), g("");
3414
3467
  }, []), R = i.useCallback(() => {
@@ -3425,12 +3478,12 @@ function ui({
3425
3478
  return b;
3426
3479
  }, [n]), S = i.useMemo(() => {
3427
3480
  const b = n.map((A) => A.name);
3428
- return Array.from(/* @__PURE__ */ new Set([...b, ...di]));
3481
+ return Array.from(/* @__PURE__ */ new Set([...b, ...mi]));
3429
3482
  }, [n]), L = i.useMemo(() => {
3430
3483
  const b = m.toLowerCase();
3431
3484
  return b ? S.filter((A) => A.toLowerCase().includes(b)) : S;
3432
3485
  }, [S, m]), $ = !!a && m.trim() && !S.some((b) => b.toLowerCase() === m.trim().toLowerCase());
3433
- return /* @__PURE__ */ t.jsxs(hn, { open: l, onOpenChange: (b) => !b && P(), children: [
3486
+ return /* @__PURE__ */ t.jsxs(_n, { open: l, onOpenChange: (b) => !b && P(), children: [
3434
3487
  /* @__PURE__ */ t.jsx(xn, { asChild: !0, children: /* @__PURE__ */ t.jsxs(
3435
3488
  "div",
3436
3489
  {
@@ -3445,10 +3498,10 @@ function ui({
3445
3498
  C.map((b) => /* @__PURE__ */ t.jsx(
3446
3499
  "span",
3447
3500
  {
3448
- className: D(
3501
+ className: E(
3449
3502
  "bg-muted text-foreground inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium transition-all duration-300",
3450
3503
  y.has(b) && "animate-[badge-in_0.3s_ease-out,highlight-fade_2s_ease-out]",
3451
- _.has(b) && "animate-[badge-out_0.3s_ease-in_forwards]"
3504
+ h.has(b) && "animate-[badge-out_0.3s_ease-in_forwards]"
3452
3505
  ),
3453
3506
  children: b
3454
3507
  },
@@ -3457,10 +3510,10 @@ function ui({
3457
3510
  /* @__PURE__ */ t.jsx(
3458
3511
  "span",
3459
3512
  {
3460
- className: D(
3513
+ className: E(
3461
3514
  "bg-muted text-muted-foreground hover:bg-muted/70 inline-flex items-center justify-center rounded-full px-2 py-0.5 text-xs font-medium transition-colors"
3462
3515
  ),
3463
- children: /* @__PURE__ */ t.jsx(he, { className: "size-3.5" })
3516
+ children: /* @__PURE__ */ t.jsx(_e, { className: "size-3.5" })
3464
3517
  }
3465
3518
  )
3466
3519
  ]
@@ -3528,7 +3581,7 @@ function ui({
3528
3581
  },
3529
3582
  className: "hover:bg-muted text-primary flex w-full items-center gap-2 px-3 py-2 text-left text-sm font-medium",
3530
3583
  children: [
3531
- /* @__PURE__ */ t.jsx(he, { className: "size-3.5" }),
3584
+ /* @__PURE__ */ t.jsx(_e, { className: "size-3.5" }),
3532
3585
  o("groups_inline_create", { name: m.trim() })
3533
3586
  ]
3534
3587
  }
@@ -3547,7 +3600,7 @@ function ui({
3547
3600
  )
3548
3601
  ] });
3549
3602
  }
3550
- function mi({
3603
+ function fi({
3551
3604
  contact: e,
3552
3605
  tasksCount: n,
3553
3606
  notesCount: r,
@@ -3557,7 +3610,7 @@ function mi({
3557
3610
  onCreateGroup: l,
3558
3611
  isTagsSaving: c
3559
3612
  }) {
3560
- const { t: d } = z(), u = At(e, d), m = e.status?.trim(), g = Eo(e, d);
3613
+ const { t: d } = z(), u = At(e, d), m = e.status?.trim(), g = Ao(e, d);
3561
3614
  return /* @__PURE__ */ t.jsxs("div", { className: "flex flex-col gap-6 md:flex-row md:items-center md:justify-between md:gap-8", children: [
3562
3615
  /* @__PURE__ */ t.jsxs("div", { className: "flex flex-col items-start gap-4 md:flex-row md:items-center md:gap-5", children: [
3563
3616
  /* @__PURE__ */ t.jsx("div", { className: "bg-muted relative flex size-20 shrink-0 items-center justify-center overflow-hidden rounded-2xl md:size-24", children: e.avatar_url ? /* @__PURE__ */ t.jsx(
@@ -3578,9 +3631,9 @@ function mi({
3578
3631
  /* @__PURE__ */ t.jsxs("div", { className: "min-w-0 flex-1", children: [
3579
3632
  /* @__PURE__ */ t.jsx("h2", { className: "text-foreground text-2xl leading-tight font-bold tracking-tight md:text-3xl", children: u }),
3580
3633
  /* @__PURE__ */ t.jsxs("div", { className: "mt-2.5 flex flex-wrap items-center gap-2", children: [
3581
- m && /* @__PURE__ */ t.jsx(ci, { status: m }),
3634
+ m && /* @__PURE__ */ t.jsx(ui, { status: m }),
3582
3635
  /* @__PURE__ */ t.jsx(
3583
- ui,
3636
+ pi,
3584
3637
  {
3585
3638
  contactTags: a,
3586
3639
  availableGroups: s,
@@ -3594,13 +3647,13 @@ function mi({
3594
3647
  ] })
3595
3648
  ] }),
3596
3649
  /* @__PURE__ */ t.jsxs("div", { className: "flex shrink-0 items-center gap-6 md:gap-8", children: [
3597
- /* @__PURE__ */ t.jsx(Yt, { label: d("tab_tasks"), value: n, icon: Ka }),
3650
+ /* @__PURE__ */ t.jsx(Qt, { label: d("tab_tasks"), value: n, icon: qa }),
3598
3651
  /* @__PURE__ */ t.jsx("div", { className: "bg-border h-10 w-px", "aria-hidden": "true" }),
3599
- /* @__PURE__ */ t.jsx(Yt, { label: d("tab_notes"), value: r, icon: fa })
3652
+ /* @__PURE__ */ t.jsx(Qt, { label: d("tab_notes"), value: r, icon: Ha })
3600
3653
  ] })
3601
3654
  ] });
3602
3655
  }
3603
- function Yt({ label: e, value: n, icon: r }) {
3656
+ function Qt({ label: e, value: n, icon: r }) {
3604
3657
  return /* @__PURE__ */ t.jsxs("div", { className: "flex flex-col items-start gap-1", children: [
3605
3658
  /* @__PURE__ */ t.jsxs("div", { className: "text-muted-foreground flex items-center gap-1.5", children: [
3606
3659
  /* @__PURE__ */ t.jsx(r, { className: "size-3.5", "aria-hidden": !0 }),
@@ -3609,7 +3662,7 @@ function Yt({ label: e, value: n, icon: r }) {
3609
3662
  /* @__PURE__ */ t.jsx("span", { className: "text-foreground text-2xl font-bold tracking-tight tabular-nums", children: n })
3610
3663
  ] });
3611
3664
  }
3612
- function pi(e) {
3665
+ function gi(e) {
3613
3666
  const n = [
3614
3667
  e.address,
3615
3668
  e.city,
@@ -3618,16 +3671,16 @@ function pi(e) {
3618
3671
  ].filter((r) => !!r?.trim());
3619
3672
  return n.length === 0 ? null : n.join(", ");
3620
3673
  }
3621
- function fi({
3674
+ function hi({
3622
3675
  contact: e,
3623
3676
  onEditEmpty: n
3624
3677
  }) {
3625
- const { t: r } = z(), a = pi(e);
3678
+ const { t: r } = z(), a = gi(e);
3626
3679
  return /* @__PURE__ */ t.jsxs("div", { className: "border-border/50 divide-border/50 mt-6 divide-y overflow-hidden rounded-2xl border", children: [
3627
3680
  /* @__PURE__ */ t.jsx(
3628
3681
  xt,
3629
3682
  {
3630
- icon: jn,
3683
+ icon: vn,
3631
3684
  label: r("label_email"),
3632
3685
  value: e.email,
3633
3686
  href: e.email ? `mailto:${e.email}` : void 0,
@@ -3637,7 +3690,7 @@ function fi({
3637
3690
  /* @__PURE__ */ t.jsx(
3638
3691
  xt,
3639
3692
  {
3640
- icon: Nn,
3693
+ icon: jn,
3641
3694
  label: r("label_phone"),
3642
3695
  value: e.phone,
3643
3696
  href: e.phone ? `tel:${e.phone}` : void 0,
@@ -3647,7 +3700,7 @@ function fi({
3647
3700
  /* @__PURE__ */ t.jsx(
3648
3701
  xt,
3649
3702
  {
3650
- icon: Ra,
3703
+ icon: Sa,
3651
3704
  label: r("label_address"),
3652
3705
  value: a,
3653
3706
  href: a ? `https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(a)}` : void 0,
@@ -3687,7 +3740,7 @@ function xt({
3687
3740
  /* @__PURE__ */ t.jsx("div", { className: "text-muted-foreground/70 group-hover:text-muted-foreground truncate text-sm italic transition-colors", children: f })
3688
3741
  ] }),
3689
3742
  /* @__PURE__ */ t.jsx(
3690
- he,
3743
+ _e,
3691
3744
  {
3692
3745
  className: "text-muted-foreground/40 group-hover:text-foreground size-4 shrink-0 transition-colors",
3693
3746
  "aria-hidden": !0
@@ -3702,7 +3755,7 @@ function xt({
3702
3755
  /* @__PURE__ */ t.jsx("div", { className: "text-muted-foreground/70 truncate text-sm italic", children: f })
3703
3756
  ] }),
3704
3757
  /* @__PURE__ */ t.jsx(
3705
- he,
3758
+ _e,
3706
3759
  {
3707
3760
  className: "text-muted-foreground/40 size-4 shrink-0",
3708
3761
  "aria-hidden": !0
@@ -3733,13 +3786,13 @@ function xt({
3733
3786
  onClick: g,
3734
3787
  "aria-label": u ? l("copied_field", { field: n }) : l("copy_field", { field: n }),
3735
3788
  className: "text-muted-foreground hover:bg-muted hover:text-foreground mr-3 flex size-8 shrink-0 items-center justify-center rounded-md transition-colors",
3736
- children: u ? /* @__PURE__ */ t.jsx(fn, { className: "text-primary size-3.5", "aria-hidden": !0 }) : /* @__PURE__ */ t.jsx(Ia, { className: "size-3.5", "aria-hidden": !0 })
3789
+ children: u ? /* @__PURE__ */ t.jsx(fn, { className: "text-primary size-3.5", "aria-hidden": !0 }) : /* @__PURE__ */ t.jsx(Ma, { className: "size-3.5", "aria-hidden": !0 })
3737
3790
  }
3738
3791
  )
3739
3792
  ] });
3740
3793
  }
3741
- function gi(e) {
3742
- const n = W(), r = Qe(), { t: a } = z();
3794
+ function _i(e) {
3795
+ const n = W(), r = Ye(), { t: a } = z();
3743
3796
  return re({
3744
3797
  mutationFn: ({
3745
3798
  taskId: s,
@@ -3749,7 +3802,7 @@ function gi(e) {
3749
3802
  }),
3750
3803
  onSuccess: () => {
3751
3804
  n.invalidateQueries({
3752
- queryKey: Q.tasks(e)
3805
+ queryKey: Y.tasks(e)
3753
3806
  });
3754
3807
  },
3755
3808
  onError: (s) => {
@@ -3761,13 +3814,13 @@ function gi(e) {
3761
3814
  }
3762
3815
  });
3763
3816
  }
3764
- function _i(e, n) {
3765
- const r = W(), a = Qe(), { t: s } = z();
3817
+ function xi(e, n) {
3818
+ const r = W(), a = Ye(), { t: s } = z();
3766
3819
  return re({
3767
3820
  mutationFn: (o) => a.deleteTask(o, e),
3768
3821
  onSuccess: () => {
3769
3822
  O({ title: s("task_deleted"), type: "success" }), r.invalidateQueries({
3770
- queryKey: Q.tasks(e)
3823
+ queryKey: Y.tasks(e)
3771
3824
  }), n?.onSuccess?.();
3772
3825
  },
3773
3826
  onError: (o) => {
@@ -3779,8 +3832,8 @@ function _i(e, n) {
3779
3832
  }
3780
3833
  });
3781
3834
  }
3782
- function hi(e, n) {
3783
- const r = W(), a = Qe(), { t: s } = z();
3835
+ function bi(e, n) {
3836
+ const r = W(), a = Ye(), { t: s } = z();
3784
3837
  return re({
3785
3838
  mutationFn: ({
3786
3839
  taskId: o,
@@ -3788,7 +3841,7 @@ function hi(e, n) {
3788
3841
  }) => a.updateTask(o, e, l),
3789
3842
  onSuccess: () => {
3790
3843
  O({ title: s("task_updated"), type: "success" }), r.invalidateQueries({
3791
- queryKey: Q.tasks(e)
3844
+ queryKey: Y.tasks(e)
3792
3845
  }), n?.onSuccess?.();
3793
3846
  },
3794
3847
  onError: (o) => {
@@ -3824,7 +3877,7 @@ function Wt(e) {
3824
3877
  }), n.join(`
3825
3878
  `);
3826
3879
  }
3827
- function xi({
3880
+ function yi({
3828
3881
  titlePlaceholder: e,
3829
3882
  bodyPlaceholder: n,
3830
3883
  onChange: r,
@@ -3836,12 +3889,12 @@ function xi({
3836
3889
  showTitle: d = !0,
3837
3890
  editorClassName: u
3838
3891
  }) {
3839
- const { t: m } = z(), g = e ?? m("editor_default_title"), f = n ?? m("editor_default_body_placeholder"), [h, y] = i.useState(c), p = i.useRef(c), _ = i.useRef(null);
3892
+ const { t: m } = z(), g = e ?? m("editor_default_title"), f = n ?? m("editor_default_body_placeholder"), [_, y] = i.useState(c), p = i.useRef(c), h = i.useRef(null);
3840
3893
  i.useEffect(() => {
3841
- p.current = h;
3842
- }, [h]);
3894
+ p.current = _;
3895
+ }, [_]);
3843
3896
  const v = d ? s || o ? `<h1>${s ?? ""}</h1>${o ?? ""}` : void 0 : o || void 0, C = [
3844
- ka.configure({
3897
+ Ta.configure({
3845
3898
  heading: d ? !1 : { levels: [] },
3846
3899
  bulletList: {
3847
3900
  keepMarks: !0,
@@ -3852,16 +3905,16 @@ function xi({
3852
3905
  keepAttributes: !1
3853
3906
  }
3854
3907
  }),
3855
- ...d ? [wa.configure({ levels: [1] })] : [],
3856
- Sa.configure({
3908
+ ...d ? [Ea.configure({ levels: [1] })] : [],
3909
+ Da.configure({
3857
3910
  placeholder: ({ node: S }) => S.type.name === "heading" ? g : f
3858
3911
  }),
3859
- ha.configure({
3912
+ la.configure({
3860
3913
  types: d ? ["heading", "paragraph"] : ["paragraph"],
3861
3914
  alignments: ["left", "center", "right", "justify"]
3862
3915
  }),
3863
- xa
3864
- ], j = Ma({
3916
+ ca
3917
+ ], j = Aa({
3865
3918
  extensions: C,
3866
3919
  content: v ?? (d ? {
3867
3920
  type: "doc",
@@ -3880,22 +3933,22 @@ function xi({
3880
3933
  if (!(!j || !r))
3881
3934
  if (d) {
3882
3935
  const { title: S, body: L } = Vt(j);
3883
- r({ title: S, body: L, dueDate: h });
3936
+ r({ title: S, body: L, dueDate: _ });
3884
3937
  } else {
3885
3938
  const S = Wt(j);
3886
- r({ title: "", body: S, dueDate: h });
3939
+ r({ title: "", body: S, dueDate: _ });
3887
3940
  }
3888
3941
  };
3889
3942
  i.useEffect(() => {
3890
3943
  x();
3891
3944
  }, [j]), i.useEffect(() => {
3892
3945
  x();
3893
- }, [h]);
3946
+ }, [_]);
3894
3947
  const P = "flex h-7 w-7 items-center justify-center rounded text-xs transition-colors", R = "bg-muted text-primary", F = "text-muted-foreground hover:bg-muted/50", I = /* @__PURE__ */ t.jsx("div", { className: "bg-border mx-1 h-5 w-px" });
3895
3948
  return /* @__PURE__ */ t.jsxs(
3896
3949
  "div",
3897
3950
  {
3898
- className: D(
3951
+ className: E(
3899
3952
  "border-border/50 flex flex-col overflow-hidden rounded-lg border",
3900
3953
  a
3901
3954
  ),
@@ -3907,7 +3960,7 @@ function xi({
3907
3960
  type: "button",
3908
3961
  onClick: () => j?.chain().focus().toggleBold().run(),
3909
3962
  disabled: !j?.can().chain().focus().toggleBold().run(),
3910
- className: D(
3963
+ className: E(
3911
3964
  P,
3912
3965
  "font-bold",
3913
3966
  j?.isActive("bold") ? R : F
@@ -3922,7 +3975,7 @@ function xi({
3922
3975
  type: "button",
3923
3976
  onClick: () => j?.chain().focus().toggleItalic().run(),
3924
3977
  disabled: !j?.can().chain().focus().toggleItalic().run(),
3925
- className: D(
3978
+ className: E(
3926
3979
  P,
3927
3980
  "italic",
3928
3981
  j?.isActive("italic") ? R : F
@@ -3937,7 +3990,7 @@ function xi({
3937
3990
  type: "button",
3938
3991
  onClick: () => j?.chain().focus().toggleUnderline().run(),
3939
3992
  disabled: !j?.can().chain().focus().toggleUnderline().run(),
3940
- className: D(
3993
+ className: E(
3941
3994
  P,
3942
3995
  "underline",
3943
3996
  j?.isActive("underline") ? R : F
@@ -3952,12 +4005,12 @@ function xi({
3952
4005
  {
3953
4006
  type: "button",
3954
4007
  onClick: () => j?.chain().focus().setTextAlign("left").run(),
3955
- className: D(
4008
+ className: E(
3956
4009
  P,
3957
4010
  j?.isActive({ textAlign: "left" }) ? R : F
3958
4011
  ),
3959
4012
  title: m("toolbar_align_left"),
3960
- children: /* @__PURE__ */ t.jsx(Ta, { className: "size-3.5" })
4013
+ children: /* @__PURE__ */ t.jsx(da, { className: "size-3.5" })
3961
4014
  }
3962
4015
  ),
3963
4016
  /* @__PURE__ */ t.jsx(
@@ -3965,12 +4018,12 @@ function xi({
3965
4018
  {
3966
4019
  type: "button",
3967
4020
  onClick: () => j?.chain().focus().setTextAlign("center").run(),
3968
- className: D(
4021
+ className: E(
3969
4022
  P,
3970
4023
  j?.isActive({ textAlign: "center" }) ? R : F
3971
4024
  ),
3972
4025
  title: m("toolbar_align_center"),
3973
- children: /* @__PURE__ */ t.jsx(ba, { className: "size-3.5" })
4026
+ children: /* @__PURE__ */ t.jsx(ua, { className: "size-3.5" })
3974
4027
  }
3975
4028
  ),
3976
4029
  /* @__PURE__ */ t.jsx(
@@ -3978,12 +4031,12 @@ function xi({
3978
4031
  {
3979
4032
  type: "button",
3980
4033
  onClick: () => j?.chain().focus().setTextAlign("right").run(),
3981
- className: D(
4034
+ className: E(
3982
4035
  P,
3983
4036
  j?.isActive({ textAlign: "right" }) ? R : F
3984
4037
  ),
3985
4038
  title: m("toolbar_align_right"),
3986
- children: /* @__PURE__ */ t.jsx(ya, { className: "size-3.5" })
4039
+ children: /* @__PURE__ */ t.jsx(ma, { className: "size-3.5" })
3987
4040
  }
3988
4041
  ),
3989
4042
  /* @__PURE__ */ t.jsx(
@@ -3991,12 +4044,12 @@ function xi({
3991
4044
  {
3992
4045
  type: "button",
3993
4046
  onClick: () => j?.chain().focus().setTextAlign("justify").run(),
3994
- className: D(
4047
+ className: E(
3995
4048
  P,
3996
4049
  j?.isActive({ textAlign: "justify" }) ? R : F
3997
4050
  ),
3998
4051
  title: m("toolbar_justify"),
3999
- children: /* @__PURE__ */ t.jsx(va, { className: "size-3.5" })
4052
+ children: /* @__PURE__ */ t.jsx(pa, { className: "size-3.5" })
4000
4053
  }
4001
4054
  ),
4002
4055
  I,
@@ -4005,12 +4058,12 @@ function xi({
4005
4058
  {
4006
4059
  type: "button",
4007
4060
  onClick: () => j?.chain().focus().toggleBulletList().run(),
4008
- className: D(
4061
+ className: E(
4009
4062
  P,
4010
4063
  j?.isActive("bulletList") ? R : F
4011
4064
  ),
4012
4065
  title: m("toolbar_bullet_list"),
4013
- children: /* @__PURE__ */ t.jsx(Ea, { className: "size-3.5" })
4066
+ children: /* @__PURE__ */ t.jsx(fa, { className: "size-3.5" })
4014
4067
  }
4015
4068
  ),
4016
4069
  /* @__PURE__ */ t.jsx(
@@ -4018,19 +4071,19 @@ function xi({
4018
4071
  {
4019
4072
  type: "button",
4020
4073
  onClick: () => j?.chain().focus().toggleOrderedList().run(),
4021
- className: D(
4074
+ className: E(
4022
4075
  P,
4023
4076
  j?.isActive("orderedList") ? R : F
4024
4077
  ),
4025
4078
  title: m("toolbar_ordered_list"),
4026
- children: /* @__PURE__ */ t.jsx(Da, { className: "size-3.5" })
4079
+ children: /* @__PURE__ */ t.jsx(ga, { className: "size-3.5" })
4027
4080
  }
4028
4081
  ),
4029
4082
  l && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
4030
4083
  I,
4031
- h ? /* @__PURE__ */ t.jsxs("div", { className: "bg-primary/10 flex items-center gap-1 rounded px-2 py-1", children: [
4032
- /* @__PURE__ */ t.jsx(Se, { className: "text-primary size-3.5" }),
4033
- /* @__PURE__ */ t.jsx("span", { className: "text-primary text-xs font-medium", children: dt(h) }),
4084
+ _ ? /* @__PURE__ */ t.jsxs("div", { className: "bg-primary/10 flex items-center gap-1 rounded px-2 py-1", children: [
4085
+ /* @__PURE__ */ t.jsx(Me, { className: "text-primary size-3.5" }),
4086
+ /* @__PURE__ */ t.jsx("span", { className: "text-primary text-xs font-medium", children: dt(_) }),
4034
4087
  /* @__PURE__ */ t.jsx(
4035
4088
  "button",
4036
4089
  {
@@ -4038,7 +4091,7 @@ function xi({
4038
4091
  onClick: () => y(void 0),
4039
4092
  className: "text-primary/60 hover:text-primary ml-1",
4040
4093
  title: m("editor_remove_due_date"),
4041
- children: /* @__PURE__ */ t.jsx(Ge, { className: "size-3" })
4094
+ children: /* @__PURE__ */ t.jsx(Ue, { className: "size-3" })
4042
4095
  }
4043
4096
  )
4044
4097
  ] }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
@@ -4046,10 +4099,10 @@ function xi({
4046
4099
  "button",
4047
4100
  {
4048
4101
  type: "button",
4049
- onClick: () => _.current?.showPicker(),
4102
+ onClick: () => h.current?.showPicker(),
4050
4103
  className: "text-muted-foreground hover:bg-muted hover:text-foreground flex h-7 cursor-pointer items-center gap-1 rounded px-2 text-xs font-medium transition-colors",
4051
4104
  children: [
4052
- /* @__PURE__ */ t.jsx(Se, { className: "size-3.5" }),
4105
+ /* @__PURE__ */ t.jsx(Me, { className: "size-3.5" }),
4053
4106
  /* @__PURE__ */ t.jsx("span", { children: m("editor_due_date") })
4054
4107
  ]
4055
4108
  }
@@ -4057,7 +4110,7 @@ function xi({
4057
4110
  /* @__PURE__ */ t.jsx(
4058
4111
  "input",
4059
4112
  {
4060
- ref: _,
4113
+ ref: h,
4061
4114
  type: "date",
4062
4115
  className: "invisible absolute size-0",
4063
4116
  onChange: (S) => {
@@ -4072,7 +4125,7 @@ function xi({
4072
4125
  ] })
4073
4126
  ] }),
4074
4127
  /* @__PURE__ */ t.jsx(
4075
- Aa,
4128
+ Pa,
4076
4129
  {
4077
4130
  editor: j,
4078
4131
  className: u ?? "min-h-[60vh] flex-1 overflow-y-auto p-4"
@@ -4139,9 +4192,9 @@ function tr({
4139
4192
  onToggleComplete: g,
4140
4193
  isTogglePending: f = !1
4141
4194
  }) {
4142
- const { t: h, locale: y } = z(), { isMobile: p } = _e(), [_, v] = i.useState(s), [C, k] = i.useState(o), j = i.useRef(null), [x, P] = i.useState(l), [R, F] = i.useState(!1), I = h(a === "note" ? "modal_note_label" : "modal_task_label"), S = r === "edit" ? h("modal_edit_type", { type: I }) : h("modal_new_type", { type: I }), L = a === "note", $ = !!_.trim() && (!L || !!C.trim()) && !u, b = () => {
4195
+ const { t: _, locale: y } = z(), { isMobile: p } = he(), [h, v] = i.useState(s), [C, k] = i.useState(o), j = i.useRef(null), [x, P] = i.useState(l), [R, F] = i.useState(!1), I = _(a === "note" ? "modal_note_label" : "modal_task_label"), S = r === "edit" ? _("modal_edit_type", { type: I }) : _("modal_new_type", { type: I }), L = a === "note", $ = !!h.trim() && (!L || !!C.trim()) && !u, b = () => {
4143
4196
  $ && d({
4144
- title: _.trim(),
4197
+ title: h.trim(),
4145
4198
  body: C,
4146
4199
  dueDate: x
4147
4200
  });
@@ -4150,16 +4203,16 @@ function tr({
4150
4203
  /* @__PURE__ */ t.jsx(
4151
4204
  ae,
4152
4205
  {
4153
- placeholder: h("modal_type_title_placeholder", { type: I }),
4154
- value: _,
4206
+ placeholder: _("modal_type_title_placeholder", { type: I }),
4207
+ value: h,
4155
4208
  onChange: (M) => v(M.target.value)
4156
4209
  }
4157
4210
  ),
4158
4211
  /* @__PURE__ */ t.jsx(
4159
- xi,
4212
+ yi,
4160
4213
  {
4161
4214
  showTitle: !1,
4162
- bodyPlaceholder: h("editor_start_writing"),
4215
+ bodyPlaceholder: _("editor_start_writing"),
4163
4216
  initialBody: o,
4164
4217
  editorClassName: "min-h-[200px] flex-1 overflow-y-auto p-4",
4165
4218
  onChange: (M) => {
@@ -4168,9 +4221,9 @@ function tr({
4168
4221
  }
4169
4222
  ),
4170
4223
  c && /* @__PURE__ */ t.jsx("div", { className: "flex items-center gap-2", children: x ? /* @__PURE__ */ t.jsxs("div", { className: "bg-primary/10 inline-flex items-center gap-1.5 rounded-md px-2.5 py-1.5", children: [
4171
- /* @__PURE__ */ t.jsx(Se, { className: "text-primary size-3.5" }),
4224
+ /* @__PURE__ */ t.jsx(Me, { className: "text-primary size-3.5" }),
4172
4225
  /* @__PURE__ */ t.jsxs("span", { className: "text-primary text-sm font-medium", children: [
4173
- h("activity_due"),
4226
+ _("activity_due"),
4174
4227
  " ",
4175
4228
  dt(x, y)
4176
4229
  ] }),
@@ -4181,10 +4234,10 @@ function tr({
4181
4234
  onClick: () => {
4182
4235
  P(void 0), F(!1);
4183
4236
  },
4184
- "aria-label": h("editor_remove_due_date"),
4237
+ "aria-label": _("editor_remove_due_date"),
4185
4238
  className: "text-primary/60 hover:text-primary ml-1",
4186
- title: h("editor_remove_due_date"),
4187
- children: /* @__PURE__ */ t.jsx(Ge, { className: "size-3" })
4239
+ title: _("editor_remove_due_date"),
4240
+ children: /* @__PURE__ */ t.jsx(Ue, { className: "size-3" })
4188
4241
  }
4189
4242
  )
4190
4243
  ] }) : /* @__PURE__ */ t.jsxs("div", { className: "relative", children: [
@@ -4206,8 +4259,8 @@ function tr({
4206
4259
  },
4207
4260
  className: "text-muted-foreground hover:text-foreground hover:bg-muted inline-flex cursor-pointer items-center gap-1.5 rounded-md px-2.5 py-1.5 text-sm font-medium transition-colors",
4208
4261
  children: [
4209
- /* @__PURE__ */ t.jsx(Se, { className: "size-3.5" }),
4210
- /* @__PURE__ */ t.jsx("span", { children: h("editor_add_due_date") })
4262
+ /* @__PURE__ */ t.jsx(Me, { className: "size-3.5" }),
4263
+ /* @__PURE__ */ t.jsx("span", { children: _("editor_add_due_date") })
4211
4264
  ]
4212
4265
  }
4213
4266
  ),
@@ -4219,8 +4272,8 @@ function tr({
4219
4272
  value: Vn(x),
4220
4273
  tabIndex: R ? 0 : -1,
4221
4274
  "aria-hidden": !R,
4222
- "aria-label": h("editor_due_date"),
4223
- className: D(
4275
+ "aria-label": _("editor_due_date"),
4276
+ className: E(
4224
4277
  R ? "rounded-md border p-2 text-sm" : "sr-only"
4225
4278
  ),
4226
4279
  onChange: (M) => {
@@ -4238,15 +4291,15 @@ function tr({
4238
4291
  onClick: g,
4239
4292
  disabled: f,
4240
4293
  className: "mr-auto",
4241
- children: h(m ? "modal_mark_incomplete" : "modal_mark_complete")
4294
+ children: _(m ? "modal_mark_incomplete" : "modal_mark_complete")
4242
4295
  }
4243
4296
  ),
4244
- /* @__PURE__ */ t.jsx(q, { variant: "outline", onClick: () => n(!1), children: h("cancel") }),
4245
- /* @__PURE__ */ t.jsx(q, { onClick: b, disabled: !$, children: h(u ? "saving" : "save") })
4297
+ /* @__PURE__ */ t.jsx(q, { variant: "outline", onClick: () => n(!1), children: _("cancel") }),
4298
+ /* @__PURE__ */ t.jsx(q, { onClick: b, disabled: !$, children: _(u ? "saving" : "save") })
4246
4299
  ] })
4247
4300
  ] });
4248
4301
  return p ? /* @__PURE__ */ t.jsx(
4249
- tt,
4302
+ nt,
4250
4303
  {
4251
4304
  open: e,
4252
4305
  onOpenChange: n,
@@ -4261,14 +4314,14 @@ function tr({
4261
4314
  function bt(e, n) {
4262
4315
  return dt(e, n);
4263
4316
  }
4264
- function bi(e, n) {
4317
+ function vi(e, n) {
4265
4318
  const r = new Date(e), s = (/* @__PURE__ */ new Date()).getTime() - r.getTime(), o = Math.floor(s / (1e3 * 60 * 60 * 24));
4266
4319
  return o === 0 ? r.toLocaleTimeString("en-US", {
4267
4320
  hour: "numeric",
4268
4321
  minute: "2-digit"
4269
4322
  }) : o === 1 ? n("task_yesterday") : o === 1 ? n("task_days_ago_one") : n("task_days_ago_other", { count: o });
4270
4323
  }
4271
- function yi(e, n, r, a) {
4324
+ function ji(e, n, r, a) {
4272
4325
  if (n)
4273
4326
  return {
4274
4327
  label: r("task_due", { date: bt(e, a) }),
@@ -4282,20 +4335,20 @@ function yi(e, n, r, a) {
4282
4335
  tone: "overdue"
4283
4336
  } : c === o.getTime() ? { label: r("quick_today"), tone: "today" } : c === l.getTime() ? { label: r("quick_tomorrow"), tone: "tomorrow" } : { label: bt(e, a), tone: "future" };
4284
4337
  }
4285
- const vi = {
4338
+ const Ni = {
4286
4339
  overdue: "bg-destructive/10 text-destructive",
4287
4340
  today: "bg-primary/10 text-primary",
4288
4341
  tomorrow: "bg-primary/10 text-primary",
4289
4342
  future: "bg-muted text-muted-foreground",
4290
4343
  done: "bg-muted text-muted-foreground"
4291
4344
  };
4292
- function ji({
4345
+ function Ci({
4293
4346
  task: e,
4294
4347
  toggleCompletion: n,
4295
4348
  onEdit: r,
4296
4349
  onDeleteClick: a
4297
4350
  }) {
4298
- const { t: s, locale: o } = z(), { isMobile: l } = _e(), [c, d] = i.useState(!1), u = !!e.completed_at, { title: m, body: g } = Qn(e.body ?? ""), f = e.created_at ? bi(e.created_at, s) : "", h = e.due_at ? yi(e.due_at, u, s, o) : null;
4351
+ const { t: s, locale: o } = z(), { isMobile: l } = he(), [c, d] = i.useState(!1), u = !!e.completed_at, { title: m, body: g } = Yn(e.body ?? ""), f = e.created_at ? vi(e.created_at, s) : "", _ = e.due_at ? ji(e.due_at, u, s, o) : null;
4299
4352
  return /* @__PURE__ */ t.jsxs(
4300
4353
  "div",
4301
4354
  {
@@ -4328,7 +4381,7 @@ function ji({
4328
4381
  /* @__PURE__ */ t.jsx(
4329
4382
  "h4",
4330
4383
  {
4331
- className: D(
4384
+ className: E(
4332
4385
  "text-foreground line-clamp-2 text-sm leading-snug font-semibold",
4333
4386
  u && "text-muted-foreground line-through"
4334
4387
  ),
@@ -4338,24 +4391,24 @@ function ji({
4338
4391
  g && /* @__PURE__ */ t.jsx(
4339
4392
  "p",
4340
4393
  {
4341
- className: D(
4394
+ className: E(
4342
4395
  "text-muted-foreground mt-1 line-clamp-2 text-xs leading-relaxed",
4343
4396
  u && "line-through"
4344
4397
  ),
4345
4398
  children: g
4346
4399
  }
4347
4400
  ),
4348
- (h || f) && /* @__PURE__ */ t.jsxs("div", { className: "mt-2.5 flex flex-wrap items-center gap-1.5", children: [
4349
- h && /* @__PURE__ */ t.jsxs(
4401
+ (_ || f) && /* @__PURE__ */ t.jsxs("div", { className: "mt-2.5 flex flex-wrap items-center gap-1.5", children: [
4402
+ _ && /* @__PURE__ */ t.jsxs(
4350
4403
  "span",
4351
4404
  {
4352
- className: D(
4405
+ className: E(
4353
4406
  "inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-xs font-medium",
4354
- vi[h.tone]
4407
+ Ni[_.tone]
4355
4408
  ),
4356
4409
  children: [
4357
- /* @__PURE__ */ t.jsx(Se, { className: "size-3", "aria-hidden": "true" }),
4358
- h.label
4410
+ /* @__PURE__ */ t.jsx(Me, { className: "size-3", "aria-hidden": "true" }),
4411
+ _.label
4359
4412
  ]
4360
4413
  }
4361
4414
  ),
@@ -4366,7 +4419,7 @@ function ji({
4366
4419
  /* @__PURE__ */ t.jsx(
4367
4420
  "div",
4368
4421
  {
4369
- className: D(
4422
+ className: E(
4370
4423
  "absolute top-3 right-3 transition-opacity",
4371
4424
  l ? "opacity-100" : "opacity-0 group-hover:opacity-100 focus-within:opacity-100"
4372
4425
  ),
@@ -4399,8 +4452,8 @@ function ji({
4399
4452
  ]
4400
4453
  }
4401
4454
  )
4402
- ] }) : /* @__PURE__ */ t.jsxs(nt, { children: [
4403
- /* @__PURE__ */ t.jsx(rt, { asChild: !0, children: /* @__PURE__ */ t.jsx(
4455
+ ] }) : /* @__PURE__ */ t.jsxs(rt, { children: [
4456
+ /* @__PURE__ */ t.jsx(at, { asChild: !0, children: /* @__PURE__ */ t.jsx(
4404
4457
  q,
4405
4458
  {
4406
4459
  variant: "ghost",
@@ -4410,7 +4463,7 @@ function ji({
4410
4463
  children: /* @__PURE__ */ t.jsx(Je, { className: "size-4" })
4411
4464
  }
4412
4465
  ) }),
4413
- /* @__PURE__ */ t.jsx(at, { align: "end", children: /* @__PURE__ */ t.jsx(
4466
+ /* @__PURE__ */ t.jsx(st, { align: "end", children: /* @__PURE__ */ t.jsx(
4414
4467
  $e,
4415
4468
  {
4416
4469
  className: "text-destructive",
@@ -4427,25 +4480,25 @@ function ji({
4427
4480
  }
4428
4481
  );
4429
4482
  }
4430
- function Ni({
4483
+ function ki({
4431
4484
  tasks: e,
4432
4485
  isLoading: n,
4433
4486
  contactId: r
4434
4487
  }) {
4435
- const { t: a } = z(), { isMobile: s } = _e(), [o, l] = i.useState(null), [c, d] = i.useState(null), u = gi(r), m = _i(r, {
4488
+ const { t: a } = z(), { isMobile: s } = he(), [o, l] = i.useState(null), [c, d] = i.useState(null), u = _i(r), m = xi(r, {
4436
4489
  onSuccess: () => l(null)
4437
- }), g = hi(r, {
4490
+ }), g = bi(r, {
4438
4491
  onSuccess: () => d(null)
4439
4492
  }), f = (p) => {
4440
4493
  if (!c) return;
4441
- const _ = p.body ? `${p.title}
4494
+ const h = p.body ? `${p.title}
4442
4495
 
4443
4496
  ${p.body}` : p.title;
4444
4497
  g.mutate({
4445
4498
  taskId: c.id,
4446
- input: { body: _, due_at: p.dueDate ?? null }
4499
+ input: { body: h, due_at: p.dueDate ?? null }
4447
4500
  });
4448
- }, h = c ? Qn(c.body ?? "") : null, y = (p) => {
4501
+ }, _ = c ? Yn(c.body ?? "") : null, y = (p) => {
4449
4502
  p || d(null);
4450
4503
  };
4451
4504
  return n ? /* @__PURE__ */ t.jsx("div", { className: "flex flex-col gap-3", children: [1, 2, 3].map((p) => /* @__PURE__ */ t.jsx(
@@ -4456,7 +4509,7 @@ ${p.body}` : p.title;
4456
4509
  p
4457
4510
  )) }) : e.length === 0 ? /* @__PURE__ */ t.jsx(t.Fragment, {}) : /* @__PURE__ */ t.jsxs("div", { className: "space-y-4", children: [
4458
4511
  /* @__PURE__ */ t.jsx("div", { className: "flex flex-col gap-3", children: e.map((p) => /* @__PURE__ */ t.jsx(
4459
- ji,
4512
+ Ci,
4460
4513
  {
4461
4514
  task: p,
4462
4515
  toggleCompletion: u,
@@ -4472,8 +4525,8 @@ ${p.body}` : p.title;
4472
4525
  onOpenChange: y,
4473
4526
  mode: "edit",
4474
4527
  type: "task",
4475
- initialTitle: h?.title ?? "",
4476
- initialBody: h?.body ?? "",
4528
+ initialTitle: _?.title ?? "",
4529
+ initialBody: _?.body ?? "",
4477
4530
  initialDueDate: c?.due_at ?? void 0,
4478
4531
  showDueDate: !0,
4479
4532
  onSave: f,
@@ -4491,7 +4544,7 @@ ${p.body}` : p.title;
4491
4544
  c?.id ?? "edit"
4492
4545
  ),
4493
4546
  /* @__PURE__ */ t.jsx(
4494
- De,
4547
+ Ae,
4495
4548
  {
4496
4549
  open: o !== null,
4497
4550
  onOpenChange: (p) => {
@@ -4502,7 +4555,7 @@ ${p.body}` : p.title;
4502
4555
  role: "alertdialog",
4503
4556
  presentation: s ? "bottom-sheet" : "dialog",
4504
4557
  size: "compact",
4505
- children: /* @__PURE__ */ t.jsxs(Ae, { children: [
4558
+ children: /* @__PURE__ */ t.jsxs(Pe, { children: [
4506
4559
  /* @__PURE__ */ t.jsx(q, { variant: "secondary", onClick: () => l(null), children: a("cancel") }),
4507
4560
  /* @__PURE__ */ t.jsx(
4508
4561
  q,
@@ -4519,13 +4572,13 @@ ${p.body}` : p.title;
4519
4572
  )
4520
4573
  ] });
4521
4574
  }
4522
- function Ci(e, n) {
4523
- const r = W(), a = Qe(), { t: s } = z();
4575
+ function wi(e, n) {
4576
+ const r = W(), a = Ye(), { t: s } = z();
4524
4577
  return re({
4525
4578
  mutationFn: (o) => a.createTask(e, o),
4526
4579
  onSuccess: () => {
4527
4580
  O({ title: s("task_created"), type: "success" }), r.invalidateQueries({
4528
- queryKey: Q.tasks(e)
4581
+ queryKey: Y.tasks(e)
4529
4582
  }), n?.onSuccess?.();
4530
4583
  },
4531
4584
  onError: (o) => {
@@ -4538,12 +4591,12 @@ function Ci(e, n) {
4538
4591
  }
4539
4592
  });
4540
4593
  }
4541
- function ki({
4594
+ function Si({
4542
4595
  contactId: e
4543
4596
  }) {
4544
- const { t: n } = z(), [r, a] = i.useState(!1), s = () => a(!1), o = Ci(e, { onSuccess: s });
4597
+ const { t: n } = z(), [r, a] = i.useState(!1), s = () => a(!1), o = wi(e, { onSuccess: s });
4545
4598
  return r ? /* @__PURE__ */ t.jsx(
4546
- Mo,
4599
+ Eo,
4547
4600
  {
4548
4601
  onSubmit: (l) => o.mutate(l),
4549
4602
  isSubmitting: o.isPending,
@@ -4556,19 +4609,19 @@ function ki({
4556
4609
  onClick: () => a(!0),
4557
4610
  className: "border-border/50 text-muted-foreground hover:border-foreground/30 hover:bg-muted/40 hover:text-foreground flex w-full items-center gap-3 rounded-xl border border-dashed px-5 py-4 text-sm font-medium transition-colors",
4558
4611
  children: [
4559
- /* @__PURE__ */ t.jsx(he, { className: "size-4", "aria-hidden": "true" }),
4612
+ /* @__PURE__ */ t.jsx(_e, { className: "size-4", "aria-hidden": "true" }),
4560
4613
  n("new_task")
4561
4614
  ]
4562
4615
  }
4563
4616
  );
4564
4617
  }
4565
- function wi(e, n) {
4618
+ function Mi(e, n) {
4566
4619
  const r = W(), a = it(), { t: s } = z();
4567
4620
  return re({
4568
4621
  mutationFn: (o) => a.deleteNote(o, e),
4569
4622
  onSuccess: () => {
4570
4623
  O({ title: s("note_deleted"), type: "success" }), r.invalidateQueries({
4571
- queryKey: Q.notes(e)
4624
+ queryKey: Y.notes(e)
4572
4625
  }), n?.onSuccess?.();
4573
4626
  },
4574
4627
  onError: (o) => {
@@ -4580,7 +4633,7 @@ function wi(e, n) {
4580
4633
  }
4581
4634
  });
4582
4635
  }
4583
- function Si(e, n) {
4636
+ function Ti(e, n) {
4584
4637
  const r = W(), a = it(), { t: s } = z();
4585
4638
  return re({
4586
4639
  mutationFn: ({
@@ -4589,7 +4642,7 @@ function Si(e, n) {
4589
4642
  }) => a.updateNote(o, e, l),
4590
4643
  onSuccess: () => {
4591
4644
  O({ title: s("note_updated"), type: "success" }), r.invalidateQueries({
4592
- queryKey: Q.notes(e)
4645
+ queryKey: Y.notes(e)
4593
4646
  }), n?.onSuccess?.();
4594
4647
  },
4595
4648
  onError: (o) => {
@@ -4601,13 +4654,13 @@ function Si(e, n) {
4601
4654
  }
4602
4655
  });
4603
4656
  }
4604
- function Mi(e, n) {
4657
+ function Ei(e, n) {
4605
4658
  const r = W(), a = it(), { t: s } = z();
4606
4659
  return re({
4607
4660
  mutationFn: (o) => a.createNote(e, o),
4608
4661
  onSuccess: () => {
4609
4662
  O({ title: s("note_created"), type: "success" }), r.invalidateQueries({
4610
- queryKey: Q.notes(e)
4663
+ queryKey: Y.notes(e)
4611
4664
  }), n?.onSuccess?.();
4612
4665
  },
4613
4666
  onError: (o) => {
@@ -4619,33 +4672,33 @@ function Mi(e, n) {
4619
4672
  }
4620
4673
  });
4621
4674
  }
4622
- function Ti() {
4675
+ function Di() {
4623
4676
  if (typeof navigator > "u") return !1;
4624
4677
  const n = navigator.userAgentData?.platform ?? navigator.userAgent ?? "";
4625
4678
  return /Mac|iPhone|iPad/i.test(n);
4626
4679
  }
4627
- function Ei({
4680
+ function Ai({
4628
4681
  contactId: e
4629
4682
  }) {
4630
4683
  const { t: n } = z(), [r, a] = i.useState(""), [s, o] = i.useState(!1), [l, c] = i.useState(!1), d = i.useRef(null);
4631
4684
  i.useEffect(() => {
4632
- c(Ti());
4685
+ c(Di());
4633
4686
  }, []);
4634
- const u = Mi(e, {
4687
+ const u = Ei(e, {
4635
4688
  onSuccess: () => {
4636
4689
  a(""), d.current?.blur();
4637
4690
  }
4638
4691
  }), m = () => {
4639
4692
  const f = r.trim();
4640
4693
  if (!f || u.isPending) return;
4641
- const h = f.split(`
4694
+ const _ = f.split(`
4642
4695
  `)[0]?.slice(0, 120) ?? "Note";
4643
- u.mutate({ title: h, body: f });
4696
+ u.mutate({ title: _, body: f });
4644
4697
  }, g = r.trim().length > 0 && !u.isPending;
4645
4698
  return /* @__PURE__ */ t.jsxs(
4646
4699
  "div",
4647
4700
  {
4648
- className: D(
4701
+ className: E(
4649
4702
  "border-border/50 focus-within:border-foreground/30 rounded-2xl border p-4 transition-colors",
4650
4703
  s && "border-foreground/30"
4651
4704
  ),
@@ -4691,19 +4744,19 @@ function nr(e) {
4691
4744
  year: "numeric"
4692
4745
  });
4693
4746
  }
4694
- function Di(e, n) {
4747
+ function Pi(e, n) {
4695
4748
  const r = new Date(e), s = (/* @__PURE__ */ new Date()).getTime() - r.getTime(), o = Math.floor(s / (1e3 * 60 * 60 * 24));
4696
4749
  return o === 0 ? r.toLocaleTimeString("en-US", {
4697
4750
  hour: "numeric",
4698
4751
  minute: "2-digit"
4699
4752
  }) : o === 1 ? n("task_yesterday") : o < 7 ? n("task_days_ago_other", { count: o }) : nr(e);
4700
4753
  }
4701
- function Ai({
4754
+ function zi({
4702
4755
  note: e,
4703
4756
  onEdit: n,
4704
4757
  onDelete: r
4705
4758
  }) {
4706
- const { t: a } = z(), { isMobile: s } = _e(), [o, l] = i.useState(!1), c = e.assets?.length ?? 0, d = !!e.title?.trim() && e.title.trim() !== e.body?.trim(), u = e.due_at ?? e.due_date ?? null, m = e.created_at ? Di(e.created_at, a) : null;
4759
+ const { t: a } = z(), { isMobile: s } = he(), [o, l] = i.useState(!1), c = e.assets?.length ?? 0, d = !!e.title?.trim() && e.title.trim() !== e.body?.trim(), u = e.due_at ?? e.due_date ?? null, m = e.created_at ? Pi(e.created_at, a) : null;
4707
4760
  return /* @__PURE__ */ t.jsxs(
4708
4761
  "div",
4709
4762
  {
@@ -4719,7 +4772,7 @@ function Ai({
4719
4772
  /* @__PURE__ */ t.jsx(
4720
4773
  "p",
4721
4774
  {
4722
- className: D(
4775
+ className: E(
4723
4776
  "text-foreground line-clamp-4 text-sm leading-relaxed whitespace-pre-wrap",
4724
4777
  d && "text-muted-foreground mt-1"
4725
4778
  ),
@@ -4729,18 +4782,18 @@ function Ai({
4729
4782
  (m || u || c > 0) && /* @__PURE__ */ t.jsxs("div", { className: "mt-2.5 flex flex-wrap items-center gap-3", children: [
4730
4783
  m && /* @__PURE__ */ t.jsx("span", { className: "text-muted-foreground/70 text-xs", children: m }),
4731
4784
  u && /* @__PURE__ */ t.jsxs("span", { className: "bg-primary/10 text-primary inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-xs font-medium", children: [
4732
- /* @__PURE__ */ t.jsx(Se, { className: "size-3", "aria-hidden": "true" }),
4785
+ /* @__PURE__ */ t.jsx(Me, { className: "size-3", "aria-hidden": "true" }),
4733
4786
  a("task_due", { date: nr(u) })
4734
4787
  ] }),
4735
4788
  c > 0 && /* @__PURE__ */ t.jsxs("span", { className: "text-muted-foreground inline-flex items-center gap-1 text-xs", children: [
4736
- /* @__PURE__ */ t.jsx(Ua, { className: "size-3", "aria-hidden": "true" }),
4789
+ /* @__PURE__ */ t.jsx(Ka, { className: "size-3", "aria-hidden": "true" }),
4737
4790
  c === 1 ? a("attachment_one") : a("attachment_other", { count: c })
4738
4791
  ] })
4739
4792
  ] }),
4740
4793
  /* @__PURE__ */ t.jsx(
4741
4794
  "div",
4742
4795
  {
4743
- className: D(
4796
+ className: E(
4744
4797
  "absolute top-3 right-3 transition-opacity",
4745
4798
  s ? "opacity-100" : "opacity-0 group-hover:opacity-100 focus-within:opacity-100"
4746
4799
  ),
@@ -4773,8 +4826,8 @@ function Ai({
4773
4826
  ]
4774
4827
  }
4775
4828
  )
4776
- ] }) : /* @__PURE__ */ t.jsxs(nt, { children: [
4777
- /* @__PURE__ */ t.jsx(rt, { asChild: !0, children: /* @__PURE__ */ t.jsx(
4829
+ ] }) : /* @__PURE__ */ t.jsxs(rt, { children: [
4830
+ /* @__PURE__ */ t.jsx(at, { asChild: !0, children: /* @__PURE__ */ t.jsx(
4778
4831
  q,
4779
4832
  {
4780
4833
  variant: "ghost",
@@ -4784,7 +4837,7 @@ function Ai({
4784
4837
  children: /* @__PURE__ */ t.jsx(Je, { className: "size-4" })
4785
4838
  }
4786
4839
  ) }),
4787
- /* @__PURE__ */ t.jsx(at, { align: "end", children: /* @__PURE__ */ t.jsx(
4840
+ /* @__PURE__ */ t.jsx(st, { align: "end", children: /* @__PURE__ */ t.jsx(
4788
4841
  $e,
4789
4842
  {
4790
4843
  className: "text-destructive",
@@ -4801,14 +4854,14 @@ function Ai({
4801
4854
  }
4802
4855
  );
4803
4856
  }
4804
- function Pi({
4857
+ function Fi({
4805
4858
  notes: e,
4806
4859
  isLoading: n,
4807
4860
  contactId: r
4808
4861
  }) {
4809
- const { t: a } = z(), { isMobile: s } = _e(), [o, l] = i.useState(null), [c, d] = i.useState(null), u = wi(r, {
4862
+ const { t: a } = z(), { isMobile: s } = he(), [o, l] = i.useState(null), [c, d] = i.useState(null), u = Mi(r, {
4810
4863
  onSuccess: () => l(null)
4811
- }), m = Si(r, {
4864
+ }), m = Ti(r, {
4812
4865
  onSuccess: () => d(null)
4813
4866
  }), g = (f) => {
4814
4867
  c && m.mutate({
@@ -4817,7 +4870,7 @@ function Pi({
4817
4870
  });
4818
4871
  };
4819
4872
  return /* @__PURE__ */ t.jsxs("div", { className: "space-y-4", children: [
4820
- /* @__PURE__ */ t.jsx(Ei, { contactId: r }),
4873
+ /* @__PURE__ */ t.jsx(Ai, { contactId: r }),
4821
4874
  n ? /* @__PURE__ */ t.jsx("div", { className: "flex flex-col gap-3", children: [1, 2, 3].map((f) => /* @__PURE__ */ t.jsx(
4822
4875
  "div",
4823
4876
  {
@@ -4825,7 +4878,7 @@ function Pi({
4825
4878
  },
4826
4879
  f
4827
4880
  )) }) : e.length === 0 ? null : /* @__PURE__ */ t.jsx("div", { className: "flex flex-col gap-3", children: e.map((f) => /* @__PURE__ */ t.jsx(
4828
- Ai,
4881
+ zi,
4829
4882
  {
4830
4883
  note: f,
4831
4884
  onEdit: d,
@@ -4850,7 +4903,7 @@ function Pi({
4850
4903
  c?.id ?? "edit"
4851
4904
  ),
4852
4905
  /* @__PURE__ */ t.jsx(
4853
- De,
4906
+ Ae,
4854
4907
  {
4855
4908
  open: !!o,
4856
4909
  onOpenChange: (f) => {
@@ -4861,7 +4914,7 @@ function Pi({
4861
4914
  role: "alertdialog",
4862
4915
  presentation: s ? "bottom-sheet" : "dialog",
4863
4916
  size: "compact",
4864
- children: /* @__PURE__ */ t.jsxs(Ae, { children: [
4917
+ children: /* @__PURE__ */ t.jsxs(Pe, { children: [
4865
4918
  /* @__PURE__ */ t.jsx(q, { variant: "secondary", onClick: () => l(null), children: a("cancel") }),
4866
4919
  /* @__PURE__ */ t.jsx(
4867
4920
  q,
@@ -4878,8 +4931,8 @@ function Pi({
4878
4931
  )
4879
4932
  ] });
4880
4933
  }
4881
- const zi = ["Tasks", "Notes"];
4882
- function Fi({
4934
+ const Ri = ["Tasks", "Notes"];
4935
+ function Ii({
4883
4936
  contactId: e,
4884
4937
  tasks: n,
4885
4938
  isLoadingTasks: r,
@@ -4893,14 +4946,14 @@ function Fi({
4893
4946
  Notes: c("tab_notes")
4894
4947
  };
4895
4948
  return /* @__PURE__ */ t.jsxs("div", { className: "mt-8", children: [
4896
- /* @__PURE__ */ t.jsx("div", { className: "border-border/50 flex items-center gap-1 border-b", children: zi.map((u) => {
4949
+ /* @__PURE__ */ t.jsx("div", { className: "border-border/50 flex items-center gap-1 border-b", children: Ri.map((u) => {
4897
4950
  const m = u === "Tasks" ? n.length : a.length, g = o === u;
4898
4951
  return /* @__PURE__ */ t.jsxs(
4899
4952
  "button",
4900
4953
  {
4901
4954
  type: "button",
4902
4955
  onClick: () => l(u),
4903
- className: D(
4956
+ className: E(
4904
4957
  "relative flex items-center gap-1.5 px-3 py-2.5 text-sm font-semibold transition-colors",
4905
4958
  g ? "text-foreground" : "text-muted-foreground hover:text-foreground"
4906
4959
  ),
@@ -4909,7 +4962,7 @@ function Fi({
4909
4962
  /* @__PURE__ */ t.jsx(
4910
4963
  "span",
4911
4964
  {
4912
- className: D(
4965
+ className: E(
4913
4966
  "rounded-full px-1.5 text-xs leading-5 font-bold",
4914
4967
  g ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground"
4915
4968
  ),
@@ -4930,9 +4983,9 @@ function Fi({
4930
4983
  }) }),
4931
4984
  /* @__PURE__ */ t.jsxs("div", { className: "pt-6", children: [
4932
4985
  o === "Tasks" && /* @__PURE__ */ t.jsxs("div", { className: "space-y-4", children: [
4933
- /* @__PURE__ */ t.jsx(ki, { contactId: e }),
4986
+ /* @__PURE__ */ t.jsx(Si, { contactId: e }),
4934
4987
  /* @__PURE__ */ t.jsx(
4935
- Ni,
4988
+ ki,
4936
4989
  {
4937
4990
  tasks: n,
4938
4991
  isLoading: r,
@@ -4942,7 +4995,7 @@ function Fi({
4942
4995
  )
4943
4996
  ] }),
4944
4997
  o === "Notes" && /* @__PURE__ */ t.jsx(
4945
- Pi,
4998
+ Fi,
4946
4999
  {
4947
5000
  notes: a,
4948
5001
  isLoading: s,
@@ -4952,7 +5005,7 @@ function Fi({
4952
5005
  ] })
4953
5006
  ] });
4954
5007
  }
4955
- function Ri({
5008
+ function Oi({
4956
5009
  contactId: e,
4957
5010
  queryKeyPrefix: n,
4958
5011
  countriesQueryKey: r,
@@ -4960,23 +5013,23 @@ function Ri({
4960
5013
  onBack: s,
4961
5014
  showMobileBackButton: o = !0
4962
5015
  }) {
4963
- const { t: l } = z(), { isMobile: c } = _e(), {
5016
+ const { t: l } = z(), { isMobile: c } = he(), {
4964
5017
  contact: d,
4965
5018
  isLoading: u,
4966
5019
  methods: m,
4967
5020
  countryOptions: g,
4968
5021
  isDirty: f,
4969
- isSubmitting: h,
5022
+ isSubmitting: _,
4970
5023
  isDeleting: y,
4971
5024
  onSave: p,
4972
- onDelete: _
4973
- } = ni(e, {
5025
+ onDelete: h
5026
+ } = ai(e, {
4974
5027
  queryKeyPrefix: n,
4975
5028
  countriesQueryKey: r,
4976
5029
  getCountries: a,
4977
5030
  onDeleteSuccess: s,
4978
5031
  onSaveSuccess: () => b(!1)
4979
- }), { data: v = [], isLoading: C } = ri(e), { data: k = [], isLoading: j } = ai(e), { data: x = [] } = Dt(), P = si(e, n, {
5032
+ }), { data: v = [], isLoading: C } = si(e), { data: k = [], isLoading: j } = oi(e), { data: x = [] } = Dt(), P = ii(e, n, {
4980
5033
  onError: (B) => {
4981
5034
  O({
4982
5035
  title: l("groups_tags_save_failed"),
@@ -4985,11 +5038,11 @@ function Ri({
4985
5038
  });
4986
5039
  }
4987
5040
  }), R = er(), [F, I] = i.useState(!1), [S, L] = i.useState("Tasks"), [$, b] = i.useState(!1), A = i.useCallback(() => {
4988
- I(!1), _();
4989
- }, [_]);
5041
+ I(!1), h();
5042
+ }, [h]);
4990
5043
  if (u)
4991
5044
  return /* @__PURE__ */ t.jsx(
4992
- Ii,
5045
+ Li,
4993
5046
  {
4994
5047
  onBack: s,
4995
5048
  showMobileBackButton: o
@@ -5028,7 +5081,7 @@ function Ri({
5028
5081
  ),
5029
5082
  /* @__PURE__ */ t.jsx("div", { className: "flex-1 overflow-y-auto", children: /* @__PURE__ */ t.jsxs("div", { className: "mx-auto w-full max-w-[900px] px-6 pt-8 pb-16 md:px-8 md:pt-10", children: [
5030
5083
  /* @__PURE__ */ t.jsx(
5031
- mi,
5084
+ fi,
5032
5085
  {
5033
5086
  contact: d,
5034
5087
  tasksCount: v.length,
@@ -5043,14 +5096,14 @@ function Ri({
5043
5096
  }
5044
5097
  ),
5045
5098
  /* @__PURE__ */ t.jsx(
5046
- fi,
5099
+ hi,
5047
5100
  {
5048
5101
  contact: d,
5049
5102
  onEditEmpty: () => b(!0)
5050
5103
  }
5051
5104
  ),
5052
5105
  /* @__PURE__ */ t.jsx(
5053
- Fi,
5106
+ Ii,
5054
5107
  {
5055
5108
  contactId: e,
5056
5109
  tasks: v,
@@ -5063,25 +5116,25 @@ function Ri({
5063
5116
  )
5064
5117
  ] }) }),
5065
5118
  /* @__PURE__ */ t.jsxs(
5066
- De,
5119
+ Ae,
5067
5120
  {
5068
5121
  open: $,
5069
5122
  onOpenChange: (B) => {
5070
- !B && h || b(B);
5123
+ !B && _ || b(B);
5071
5124
  },
5072
5125
  title: l("edit_contact_name", { name: M }),
5073
5126
  presentation: c ? "bottom-sheet" : "dialog",
5074
5127
  size: "wide",
5075
5128
  children: [
5076
5129
  /* @__PURE__ */ t.jsx(vt, { countries: g }),
5077
- /* @__PURE__ */ t.jsxs(Ae, { children: [
5130
+ /* @__PURE__ */ t.jsxs(Pe, { children: [
5078
5131
  /* @__PURE__ */ t.jsx(
5079
5132
  q,
5080
5133
  {
5081
5134
  type: "button",
5082
5135
  variant: "secondary",
5083
5136
  onClick: () => b(!1),
5084
- disabled: h,
5137
+ disabled: _,
5085
5138
  children: l("cancel")
5086
5139
  }
5087
5140
  ),
@@ -5090,11 +5143,11 @@ function Ri({
5090
5143
  {
5091
5144
  type: "button",
5092
5145
  onClick: p,
5093
- disabled: !f || h,
5094
- "aria-busy": h,
5146
+ disabled: !f || _,
5147
+ "aria-busy": _,
5095
5148
  children: [
5096
- h && /* @__PURE__ */ t.jsx(ja, { className: "size-4" }),
5097
- l(h ? "saving" : "save_changes")
5149
+ _ && /* @__PURE__ */ t.jsx(ha, { className: "size-4" }),
5150
+ l(_ ? "saving" : "save_changes")
5098
5151
  ]
5099
5152
  }
5100
5153
  )
@@ -5103,7 +5156,7 @@ function Ri({
5103
5156
  }
5104
5157
  ),
5105
5158
  /* @__PURE__ */ t.jsx(
5106
- De,
5159
+ Ae,
5107
5160
  {
5108
5161
  open: F,
5109
5162
  onOpenChange: I,
@@ -5112,7 +5165,7 @@ function Ri({
5112
5165
  role: "alertdialog",
5113
5166
  presentation: c ? "bottom-sheet" : "dialog",
5114
5167
  size: "compact",
5115
- children: /* @__PURE__ */ t.jsxs(Ae, { children: [
5168
+ children: /* @__PURE__ */ t.jsxs(Pe, { children: [
5116
5169
  /* @__PURE__ */ t.jsx(
5117
5170
  q,
5118
5171
  {
@@ -5144,7 +5197,7 @@ function jt({
5144
5197
  onEditProfile: s,
5145
5198
  showMobileBackButton: o = !0
5146
5199
  }) {
5147
- const { t: l } = z(), { isMobile: c } = _e(), [d, u] = i.useState(!1);
5200
+ const { t: l } = z(), { isMobile: c } = he(), [d, u] = i.useState(!1);
5148
5201
  return /* @__PURE__ */ t.jsxs("div", { className: "border-border/50 bg-background/90 sticky top-0 z-10 flex items-center justify-between border-b px-4 py-3 backdrop-blur md:px-8", children: [
5149
5202
  /* @__PURE__ */ t.jsxs("div", { className: "flex items-center gap-3", children: [
5150
5203
  o ? /* @__PURE__ */ t.jsx(
@@ -5175,7 +5228,7 @@ function jt({
5175
5228
  {
5176
5229
  href: n ? `tel:${n}` : null,
5177
5230
  label: l("label_call"),
5178
- icon: /* @__PURE__ */ t.jsx(Nn, { className: "size-4", "aria-hidden": "true" })
5231
+ icon: /* @__PURE__ */ t.jsx(jn, { className: "size-4", "aria-hidden": "true" })
5179
5232
  }
5180
5233
  ),
5181
5234
  /* @__PURE__ */ t.jsx(
@@ -5183,7 +5236,7 @@ function jt({
5183
5236
  {
5184
5237
  href: r ? `mailto:${r}` : null,
5185
5238
  label: l("label_email"),
5186
- icon: /* @__PURE__ */ t.jsx(jn, { className: "size-4", "aria-hidden": "true" })
5239
+ icon: /* @__PURE__ */ t.jsx(vn, { className: "size-4", "aria-hidden": "true" })
5187
5240
  }
5188
5241
  ),
5189
5242
  a && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
@@ -5215,8 +5268,8 @@ function jt({
5215
5268
  ]
5216
5269
  }
5217
5270
  )
5218
- ] }) : /* @__PURE__ */ t.jsxs(nt, { children: [
5219
- /* @__PURE__ */ t.jsx(rt, { asChild: !0, children: /* @__PURE__ */ t.jsx(
5271
+ ] }) : /* @__PURE__ */ t.jsxs(rt, { children: [
5272
+ /* @__PURE__ */ t.jsx(at, { asChild: !0, children: /* @__PURE__ */ t.jsx(
5220
5273
  "button",
5221
5274
  {
5222
5275
  type: "button",
@@ -5225,13 +5278,13 @@ function jt({
5225
5278
  children: /* @__PURE__ */ t.jsx(Ze, { className: "size-4" })
5226
5279
  }
5227
5280
  ) }),
5228
- /* @__PURE__ */ t.jsx(at, { align: "end", children: /* @__PURE__ */ t.jsxs(
5281
+ /* @__PURE__ */ t.jsx(st, { align: "end", children: /* @__PURE__ */ t.jsxs(
5229
5282
  $e,
5230
5283
  {
5231
5284
  className: "text-destructive",
5232
5285
  onClick: a,
5233
5286
  children: [
5234
- /* @__PURE__ */ t.jsx(st, { className: "size-4", "aria-hidden": "true" }),
5287
+ /* @__PURE__ */ t.jsx(tt, { className: "size-4", "aria-hidden": "true" }),
5235
5288
  l("delete_contact")
5236
5289
  ]
5237
5290
  }
@@ -5248,7 +5301,7 @@ function Xt({ href: e, label: n, icon: r }) {
5248
5301
  {
5249
5302
  href: e,
5250
5303
  "aria-label": n,
5251
- className: D(
5304
+ className: E(
5252
5305
  s,
5253
5306
  "text-muted-foreground hover:bg-muted hover:text-foreground"
5254
5307
  ),
@@ -5258,12 +5311,12 @@ function Xt({ href: e, label: n, icon: r }) {
5258
5311
  "span",
5259
5312
  {
5260
5313
  "aria-label": a("action_unavailable", { label: n }),
5261
- className: D(s, "text-muted-foreground/40 cursor-default"),
5314
+ className: E(s, "text-muted-foreground/40 cursor-default"),
5262
5315
  children: r
5263
5316
  }
5264
5317
  );
5265
5318
  }
5266
- function Ii({
5319
+ function Li({
5267
5320
  onBack: e,
5268
5321
  showMobileBackButton: n = !0
5269
5322
  }) {
@@ -5292,15 +5345,15 @@ function Ii({
5292
5345
  ] })
5293
5346
  ] });
5294
5347
  }
5295
- function Oi() {
5348
+ function qi() {
5296
5349
  const { t: e } = z();
5297
5350
  return /* @__PURE__ */ t.jsxs("div", { className: "hidden h-full flex-1 flex-col items-center justify-center px-8 text-center md:flex", children: [
5298
- /* @__PURE__ */ t.jsx("div", { className: "bg-muted text-muted-foreground flex size-16 items-center justify-center rounded-xl", children: /* @__PURE__ */ t.jsx(ke, { className: "size-7", "aria-hidden": "true" }) }),
5351
+ /* @__PURE__ */ t.jsx("div", { className: "bg-muted text-muted-foreground flex size-16 items-center justify-center rounded-xl", children: /* @__PURE__ */ t.jsx(we, { className: "size-7", "aria-hidden": "true" }) }),
5299
5352
  /* @__PURE__ */ t.jsx("h2", { className: "text-foreground mt-5 text-base font-semibold", children: e("empty_select_contact") }),
5300
5353
  /* @__PURE__ */ t.jsx("p", { className: "text-muted-foreground mt-1 max-w-xs text-sm", children: e("empty_select_description") })
5301
5354
  ] });
5302
5355
  }
5303
- function Li({
5356
+ function $i({
5304
5357
  selectedContactId: e,
5305
5358
  highlightContactId: n,
5306
5359
  onSelect: r,
@@ -5318,12 +5371,12 @@ function Li({
5318
5371
  /* @__PURE__ */ t.jsx(
5319
5372
  "aside",
5320
5373
  {
5321
- className: D(
5374
+ className: E(
5322
5375
  "border-border/50 bg-background w-full shrink-0 overflow-hidden border-r md:flex md:w-[420px] md:flex-col",
5323
5376
  e ? "hidden" : "flex flex-col"
5324
5377
  ),
5325
5378
  children: /* @__PURE__ */ t.jsx(
5326
- Ko,
5379
+ Go,
5327
5380
  {
5328
5381
  selectedContactId: e,
5329
5382
  highlightContactId: n,
@@ -5340,12 +5393,12 @@ function Li({
5340
5393
  /* @__PURE__ */ t.jsx(
5341
5394
  "main",
5342
5395
  {
5343
- className: D(
5396
+ className: E(
5344
5397
  "bg-background relative flex-1 md:flex md:flex-col",
5345
5398
  e ? "flex flex-col" : "hidden md:flex"
5346
5399
  ),
5347
5400
  children: e ? /* @__PURE__ */ t.jsx(
5348
- Ri,
5401
+ Oi,
5349
5402
  {
5350
5403
  contactId: e,
5351
5404
  queryKeyPrefix: d,
@@ -5355,7 +5408,7 @@ function Li({
5355
5408
  showMobileBackButton: g
5356
5409
  },
5357
5410
  e
5358
- ) : /* @__PURE__ */ t.jsx(Oi, {})
5411
+ ) : /* @__PURE__ */ t.jsx(qi, {})
5359
5412
  }
5360
5413
  )
5361
5414
  ] });
@@ -5381,34 +5434,34 @@ function Be(e) {
5381
5434
  });
5382
5435
  return n.current = e, r.current;
5383
5436
  }
5384
- var Ue = function(e, n, r) {
5437
+ var Ge = function(e, n, r) {
5385
5438
  return n === void 0 && (n = 0), r === void 0 && (r = 1), e > r ? r : e < n ? n : e;
5386
5439
  }, qe = function(e) {
5387
5440
  return "touches" in e;
5388
5441
  }, Nt = function(e) {
5389
5442
  return e && e.ownerDocument.defaultView || self;
5390
- }, Jt = function(e, n, r) {
5443
+ }, Zt = function(e, n, r) {
5391
5444
  var a = e.getBoundingClientRect(), s = qe(n) ? (function(o, l) {
5392
5445
  for (var c = 0; c < o.length; c++) if (o[c].identifier === l) return o[c];
5393
5446
  return o[0];
5394
5447
  })(n.touches, r) : n;
5395
- return { left: Ue((s.pageX - (a.left + Nt(e).pageXOffset)) / a.width), top: Ue((s.pageY - (a.top + Nt(e).pageYOffset)) / a.height) };
5396
- }, Zt = function(e) {
5448
+ return { left: Ge((s.pageX - (a.left + Nt(e).pageXOffset)) / a.width), top: Ge((s.pageY - (a.top + Nt(e).pageYOffset)) / a.height) };
5449
+ }, Jt = function(e) {
5397
5450
  !qe(e) && e.preventDefault();
5398
5451
  }, rr = H.memo(function(e) {
5399
5452
  var n = e.onMove, r = e.onKey, a = ut(e, ["onMove", "onKey"]), s = i.useRef(null), o = Be(n), l = Be(r), c = i.useRef(null), d = i.useRef(!1), u = i.useMemo(function() {
5400
- var h = function(_) {
5401
- Zt(_), (qe(_) ? _.touches.length > 0 : _.buttons > 0) && s.current ? o(Jt(s.current, _, c.current)) : p(!1);
5453
+ var _ = function(h) {
5454
+ Jt(h), (qe(h) ? h.touches.length > 0 : h.buttons > 0) && s.current ? o(Zt(s.current, h, c.current)) : p(!1);
5402
5455
  }, y = function() {
5403
5456
  return p(!1);
5404
5457
  };
5405
- function p(_) {
5406
- var v = d.current, C = Nt(s.current), k = _ ? C.addEventListener : C.removeEventListener;
5407
- k(v ? "touchmove" : "mousemove", h), k(v ? "touchend" : "mouseup", y);
5458
+ function p(h) {
5459
+ var v = d.current, C = Nt(s.current), k = h ? C.addEventListener : C.removeEventListener;
5460
+ k(v ? "touchmove" : "mousemove", _), k(v ? "touchend" : "mouseup", y);
5408
5461
  }
5409
- return [function(_) {
5410
- var v = _.nativeEvent, C = s.current;
5411
- if (C && (Zt(v), !(function(j, x) {
5462
+ return [function(h) {
5463
+ var v = h.nativeEvent, C = s.current;
5464
+ if (C && (Jt(v), !(function(j, x) {
5412
5465
  return x && !qe(j);
5413
5466
  })(v, d.current) && C)) {
5414
5467
  if (qe(v)) {
@@ -5416,11 +5469,11 @@ var Ue = function(e, n, r) {
5416
5469
  var k = v.changedTouches || [];
5417
5470
  k.length && (c.current = k[0].identifier);
5418
5471
  }
5419
- C.focus(), o(Jt(C, v, c.current)), p(!0);
5472
+ C.focus(), o(Zt(C, v, c.current)), p(!0);
5420
5473
  }
5421
- }, function(_) {
5422
- var v = _.which || _.keyCode;
5423
- v < 37 || v > 40 || (_.preventDefault(), l({ left: v === 39 ? 0.05 : v === 37 ? -0.05 : 0, top: v === 40 ? 0.05 : v === 38 ? -0.05 : 0 }));
5474
+ }, function(h) {
5475
+ var v = h.which || h.keyCode;
5476
+ v < 37 || v > 40 || (h.preventDefault(), l({ left: v === 39 ? 0.05 : v === 37 ? -0.05 : 0, top: v === 40 ? 0.05 : v === 38 ? -0.05 : 0 }));
5424
5477
  }, p];
5425
5478
  }, [l, o]), m = u[0], g = u[1], f = u[2];
5426
5479
  return i.useEffect(function() {
@@ -5431,56 +5484,56 @@ var Ue = function(e, n, r) {
5431
5484
  }, ar = function(e) {
5432
5485
  var n = e.color, r = e.left, a = e.top, s = a === void 0 ? 0.5 : a, o = zt(["react-colorful__pointer", e.className]);
5433
5486
  return H.createElement("div", { className: o, style: { top: 100 * s + "%", left: 100 * r + "%" } }, H.createElement("div", { className: "react-colorful__pointer-fill", style: { backgroundColor: n } }));
5434
- }, Y = function(e, n, r) {
5487
+ }, Q = function(e, n, r) {
5435
5488
  return n === void 0 && (n = 0), r === void 0 && (r = Math.pow(10, n)), Math.round(r * e) / r;
5436
- }, qi = function(e) {
5437
- return Gi(Ct(e));
5438
- }, Ct = function(e) {
5439
- return e[0] === "#" && (e = e.substring(1)), e.length < 6 ? { r: parseInt(e[0] + e[0], 16), g: parseInt(e[1] + e[1], 16), b: parseInt(e[2] + e[2], 16), a: e.length === 4 ? Y(parseInt(e[3] + e[3], 16) / 255, 2) : 1 } : { r: parseInt(e.substring(0, 2), 16), g: parseInt(e.substring(2, 4), 16), b: parseInt(e.substring(4, 6), 16), a: e.length === 8 ? Y(parseInt(e.substring(6, 8), 16) / 255, 2) : 1 };
5440
- }, $i = function(e) {
5441
- return Ui(Bi(e));
5442
5489
  }, Ki = function(e) {
5490
+ return Yi(Ct(e));
5491
+ }, Ct = function(e) {
5492
+ return e[0] === "#" && (e = e.substring(1)), e.length < 6 ? { r: parseInt(e[0] + e[0], 16), g: parseInt(e[1] + e[1], 16), b: parseInt(e[2] + e[2], 16), a: e.length === 4 ? Q(parseInt(e[3] + e[3], 16) / 255, 2) : 1 } : { r: parseInt(e.substring(0, 2), 16), g: parseInt(e.substring(2, 4), 16), b: parseInt(e.substring(4, 6), 16), a: e.length === 8 ? Q(parseInt(e.substring(6, 8), 16) / 255, 2) : 1 };
5493
+ }, Bi = function(e) {
5494
+ return Hi(Ui(e));
5495
+ }, Gi = function(e) {
5443
5496
  var n = e.s, r = e.v, a = e.a, s = (200 - n) * r / 100;
5444
- return { h: Y(e.h), s: Y(s > 0 && s < 200 ? n * r / 100 / (s <= 100 ? s : 200 - s) * 100 : 0), l: Y(s / 2), a: Y(a, 2) };
5497
+ return { h: Q(e.h), s: Q(s > 0 && s < 200 ? n * r / 100 / (s <= 100 ? s : 200 - s) * 100 : 0), l: Q(s / 2), a: Q(a, 2) };
5445
5498
  }, kt = function(e) {
5446
- var n = Ki(e);
5499
+ var n = Gi(e);
5447
5500
  return "hsl(" + n.h + ", " + n.s + "%, " + n.l + "%)";
5448
- }, Bi = function(e) {
5501
+ }, Ui = function(e) {
5449
5502
  var n = e.h, r = e.s, a = e.v, s = e.a;
5450
5503
  n = n / 360 * 6, r /= 100, a /= 100;
5451
5504
  var o = Math.floor(n), l = a * (1 - r), c = a * (1 - (n - o) * r), d = a * (1 - (1 - n + o) * r), u = o % 6;
5452
- return { r: Y(255 * [a, c, l, l, d, a][u]), g: Y(255 * [d, a, a, c, l, l][u]), b: Y(255 * [l, l, d, a, a, c][u]), a: Y(s, 2) };
5505
+ return { r: Q(255 * [a, c, l, l, d, a][u]), g: Q(255 * [d, a, a, c, l, l][u]), b: Q(255 * [l, l, d, a, a, c][u]), a: Q(s, 2) };
5453
5506
  }, Xe = function(e) {
5454
5507
  var n = e.toString(16);
5455
5508
  return n.length < 2 ? "0" + n : n;
5456
- }, Ui = function(e) {
5457
- var n = e.r, r = e.g, a = e.b, s = e.a, o = s < 1 ? Xe(Y(255 * s)) : "";
5509
+ }, Hi = function(e) {
5510
+ var n = e.r, r = e.g, a = e.b, s = e.a, o = s < 1 ? Xe(Q(255 * s)) : "";
5458
5511
  return "#" + Xe(n) + Xe(r) + Xe(a) + o;
5459
- }, Gi = function(e) {
5512
+ }, Yi = function(e) {
5460
5513
  var n = e.r, r = e.g, a = e.b, s = e.a, o = Math.max(n, r, a), l = o - Math.min(n, r, a), c = l ? o === n ? (r - a) / l : o === r ? 2 + (a - n) / l : 4 + (n - r) / l : 0;
5461
- return { h: Y(60 * (c < 0 ? c + 6 : c)), s: Y(o ? l / o * 100 : 0), v: Y(o / 255 * 100), a: s };
5462
- }, Hi = H.memo(function(e) {
5514
+ return { h: Q(60 * (c < 0 ? c + 6 : c)), s: Q(o ? l / o * 100 : 0), v: Q(o / 255 * 100), a: s };
5515
+ }, Qi = H.memo(function(e) {
5463
5516
  var n = e.hue, r = e.onChange, a = zt(["react-colorful__hue", e.className]);
5464
5517
  return H.createElement("div", { className: a }, H.createElement(rr, { onMove: function(s) {
5465
5518
  r({ h: 360 * s.left });
5466
5519
  }, onKey: function(s) {
5467
- r({ h: Ue(n + 360 * s.left, 0, 360) });
5468
- }, "aria-label": "Hue", "aria-valuenow": Y(n), "aria-valuemax": "360", "aria-valuemin": "0" }, H.createElement(ar, { className: "react-colorful__hue-pointer", left: n / 360, color: kt({ h: n, s: 100, v: 100, a: 1 }) })));
5469
- }), Qi = H.memo(function(e) {
5520
+ r({ h: Ge(n + 360 * s.left, 0, 360) });
5521
+ }, "aria-label": "Hue", "aria-valuenow": Q(n), "aria-valuemax": "360", "aria-valuemin": "0" }, H.createElement(ar, { className: "react-colorful__hue-pointer", left: n / 360, color: kt({ h: n, s: 100, v: 100, a: 1 }) })));
5522
+ }), Vi = H.memo(function(e) {
5470
5523
  var n = e.hsva, r = e.onChange, a = { backgroundColor: kt({ h: n.h, s: 100, v: 100, a: 1 }) };
5471
5524
  return H.createElement("div", { className: "react-colorful__saturation", style: a }, H.createElement(rr, { onMove: function(s) {
5472
5525
  r({ s: 100 * s.left, v: 100 - 100 * s.top });
5473
5526
  }, onKey: function(s) {
5474
- r({ s: Ue(n.s + 100 * s.left, 0, 100), v: Ue(n.v - 100 * s.top, 0, 100) });
5475
- }, "aria-label": "Color", "aria-valuetext": "Saturation " + Y(n.s) + "%, Brightness " + Y(n.v) + "%" }, H.createElement(ar, { className: "react-colorful__saturation-pointer", top: 1 - n.v / 100, left: n.s / 100, color: kt(n) })));
5527
+ r({ s: Ge(n.s + 100 * s.left, 0, 100), v: Ge(n.v - 100 * s.top, 0, 100) });
5528
+ }, "aria-label": "Color", "aria-valuetext": "Saturation " + Q(n.s) + "%, Brightness " + Q(n.v) + "%" }, H.createElement(ar, { className: "react-colorful__saturation-pointer", top: 1 - n.v / 100, left: n.s / 100, color: kt(n) })));
5476
5529
  }), sr = function(e, n) {
5477
5530
  if (e === n) return !0;
5478
5531
  for (var r in e) if (e[r] !== n[r]) return !1;
5479
5532
  return !0;
5480
- }, Yi = function(e, n) {
5533
+ }, Wi = function(e, n) {
5481
5534
  return e.toLowerCase() === n.toLowerCase() || sr(Ct(e), Ct(n));
5482
5535
  };
5483
- function Vi(e, n, r) {
5536
+ function Xi(e, n, r) {
5484
5537
  var a = Be(r), s = i.useState(function() {
5485
5538
  return e.toHsva(n);
5486
5539
  }), o = s[0], l = s[1], c = i.useRef({ color: n, hsva: o });
@@ -5500,53 +5553,53 @@ function Vi(e, n, r) {
5500
5553
  }, []);
5501
5554
  return [o, d];
5502
5555
  }
5503
- var Wi = typeof window < "u" ? i.useLayoutEffect : i.useEffect, Xi = function() {
5556
+ var Zi = typeof window < "u" ? i.useLayoutEffect : i.useEffect, Ji = function() {
5504
5557
  return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : void 0;
5505
- }, en = /* @__PURE__ */ new Map(), Ji = function(e) {
5506
- Wi(function() {
5558
+ }, en = /* @__PURE__ */ new Map(), el = function(e) {
5559
+ Zi(function() {
5507
5560
  var n = e.current ? e.current.ownerDocument : document;
5508
5561
  if (n !== void 0 && !en.has(n)) {
5509
5562
  var r = n.createElement("style");
5510
5563
  r.innerHTML = `.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`, en.set(n, r);
5511
- var a = Xi();
5564
+ var a = Ji();
5512
5565
  a && r.setAttribute("nonce", a), n.head.appendChild(r);
5513
5566
  }
5514
5567
  }, []);
5515
- }, Zi = function(e) {
5568
+ }, tl = function(e) {
5516
5569
  var n = e.className, r = e.colorModel, a = e.color, s = a === void 0 ? r.defaultColor : a, o = e.onChange, l = ut(e, ["className", "colorModel", "color", "onChange"]), c = i.useRef(null);
5517
- Ji(c);
5518
- var d = Vi(r, s, o), u = d[0], m = d[1], g = zt(["react-colorful", n]);
5519
- return H.createElement("div", Fe({}, l, { ref: c, className: g }), H.createElement(Qi, { hsva: u, onChange: m }), H.createElement(Hi, { hue: u.h, onChange: m, className: "react-colorful__last-control" }));
5520
- }, el = { defaultColor: "000", toHsva: qi, fromHsva: function(e) {
5521
- return $i({ h: e.h, s: e.s, v: e.v, a: 1 });
5522
- }, equal: Yi }, tl = function(e) {
5523
- return H.createElement(Zi, Fe({}, e, { colorModel: el }));
5524
- }, nl = /^#?([0-9A-F]{3,8})$/i, rl = function(e) {
5570
+ el(c);
5571
+ var d = Xi(r, s, o), u = d[0], m = d[1], g = zt(["react-colorful", n]);
5572
+ return H.createElement("div", Fe({}, l, { ref: c, className: g }), H.createElement(Vi, { hsva: u, onChange: m }), H.createElement(Qi, { hue: u.h, onChange: m, className: "react-colorful__last-control" }));
5573
+ }, nl = { defaultColor: "000", toHsva: Ki, fromHsva: function(e) {
5574
+ return Bi({ h: e.h, s: e.s, v: e.v, a: 1 });
5575
+ }, equal: Wi }, rl = function(e) {
5576
+ return H.createElement(tl, Fe({}, e, { colorModel: nl }));
5577
+ }, al = /^#?([0-9A-F]{3,8})$/i, sl = function(e) {
5525
5578
  var n = e.color, r = n === void 0 ? "" : n, a = e.onChange, s = e.onBlur, o = e.escape, l = e.validate, c = e.format, d = e.process, u = ut(e, ["color", "onChange", "onBlur", "escape", "validate", "format", "process"]), m = i.useState(function() {
5526
5579
  return o(r);
5527
- }), g = m[0], f = m[1], h = Be(a), y = Be(s), p = i.useCallback(function(v) {
5580
+ }), g = m[0], f = m[1], _ = Be(a), y = Be(s), p = i.useCallback(function(v) {
5528
5581
  var C = o(v.target.value);
5529
- f(C), l(C) && h(d ? d(C) : C);
5530
- }, [o, d, l, h]), _ = i.useCallback(function(v) {
5582
+ f(C), l(C) && _(d ? d(C) : C);
5583
+ }, [o, d, l, _]), h = i.useCallback(function(v) {
5531
5584
  l(v.target.value) || f(o(r)), y(v);
5532
5585
  }, [r, o, l, y]);
5533
5586
  return i.useEffect(function() {
5534
5587
  f(o(r));
5535
- }, [r, o]), H.createElement("input", Fe({}, u, { value: c ? c(g) : g, spellCheck: "false", onChange: p, onBlur: _ }));
5588
+ }, [r, o]), H.createElement("input", Fe({}, u, { value: c ? c(g) : g, spellCheck: "false", onChange: p, onBlur: h }));
5536
5589
  }, tn = function(e) {
5537
5590
  return "#" + e;
5538
- }, al = function(e) {
5591
+ }, ol = function(e) {
5539
5592
  var n = e.prefixed, r = e.alpha, a = ut(e, ["prefixed", "alpha"]), s = i.useCallback(function(l) {
5540
5593
  return l.replace(/([^0-9A-F]+)/gi, "").substring(0, r ? 8 : 6);
5541
5594
  }, [r]), o = i.useCallback(function(l) {
5542
5595
  return (function(c, d) {
5543
- var u = nl.exec(c), m = u ? u[1].length : 0;
5596
+ var u = al.exec(c), m = u ? u[1].length : 0;
5544
5597
  return m === 3 || m === 6 || !!d && m === 4 || !!d && m === 8;
5545
5598
  })(l, r);
5546
5599
  }, [r]);
5547
- return H.createElement(rl, Fe({}, a, { escape: s, format: n ? tn : void 0, process: tn, validate: o }));
5600
+ return H.createElement(sl, Fe({}, a, { escape: s, format: n ? tn : void 0, process: tn, validate: o }));
5548
5601
  };
5549
- function sl() {
5602
+ function il() {
5550
5603
  const e = lt(), n = W(), { t: r } = z();
5551
5604
  return re({
5552
5605
  mutationFn: (a) => {
@@ -5554,7 +5607,7 @@ function sl() {
5554
5607
  return e.deleteGroup(a);
5555
5608
  },
5556
5609
  onSuccess: () => {
5557
- n.invalidateQueries({ queryKey: Q.groups() }), Pe(n);
5610
+ n.invalidateQueries({ queryKey: Y.groups() }), ze(n);
5558
5611
  },
5559
5612
  onError: (a) => {
5560
5613
  O({
@@ -5565,7 +5618,7 @@ function sl() {
5565
5618
  }
5566
5619
  });
5567
5620
  }
5568
- function ol() {
5621
+ function ll() {
5569
5622
  const e = lt(), n = W(), { t: r } = z();
5570
5623
  return re({
5571
5624
  mutationFn: ({
@@ -5576,7 +5629,7 @@ function ol() {
5576
5629
  return e.updateGroup(a, s);
5577
5630
  },
5578
5631
  onSuccess: () => {
5579
- n.invalidateQueries({ queryKey: Q.groups() }), Pe(n);
5632
+ n.invalidateQueries({ queryKey: Y.groups() }), ze(n);
5580
5633
  },
5581
5634
  onError: (a) => {
5582
5635
  O({
@@ -5587,7 +5640,7 @@ function ol() {
5587
5640
  }
5588
5641
  });
5589
5642
  }
5590
- const il = [
5643
+ const cl = [
5591
5644
  "#ef4444",
5592
5645
  "#f97316",
5593
5646
  "#eab308",
@@ -5598,7 +5651,7 @@ const il = [
5598
5651
  "#6366f1",
5599
5652
  "#8b5cf6",
5600
5653
  "#ec4899"
5601
- ], ll = {
5654
+ ], dl = {
5602
5655
  "#ef4444": "groups_color_red",
5603
5656
  "#f97316": "groups_color_orange",
5604
5657
  "#eab308": "groups_color_yellow",
@@ -5610,18 +5663,18 @@ const il = [
5610
5663
  "#8b5cf6": "groups_color_purple",
5611
5664
  "#ec4899": "groups_color_pink"
5612
5665
  };
5613
- function cl({
5666
+ function ul({
5614
5667
  onBack: e,
5615
5668
  onSelectContact: n,
5616
5669
  initialCreateOpen: r,
5617
5670
  showMobileBackButton: a = !0
5618
5671
  }) {
5619
- const { t: s } = z(), { isMobile: o } = _e(), { data: l = [], isLoading: c } = Dt(), d = sl(), [u, m] = i.useState(r ? { mode: "create" } : null), [g, f] = i.useState(null), [h, y] = i.useState(null);
5672
+ const { t: s } = z(), { isMobile: o } = he(), { data: l = [], isLoading: c } = Dt(), d = il(), [u, m] = i.useState(r ? { mode: "create" } : null), [g, f] = i.useState(null), [_, y] = i.useState(null);
5620
5673
  i.useEffect(() => {
5621
- if (h == null) return;
5622
- const _ = setTimeout(() => y(null), 2e3);
5623
- return () => clearTimeout(_);
5624
- }, [h]);
5674
+ if (_ == null) return;
5675
+ const h = setTimeout(() => y(null), 2e3);
5676
+ return () => clearTimeout(h);
5677
+ }, [_]);
5625
5678
  const p = i.useCallback(() => {
5626
5679
  g && d.mutate(g.id, {
5627
5680
  onSuccess: () => {
@@ -5643,7 +5696,7 @@ function cl({
5643
5696
  {
5644
5697
  icon: dn,
5645
5698
  onClick: e,
5646
- className: D(
5699
+ className: E(
5647
5700
  "text-muted-foreground hover:bg-muted hover:text-foreground rounded-full",
5648
5701
  a ? null : "max-md:hidden"
5649
5702
  ),
@@ -5653,20 +5706,20 @@ function cl({
5653
5706
  /* @__PURE__ */ t.jsx("h2", { className: "text-foreground text-lg font-semibold", children: s("groups_manage_title") })
5654
5707
  ] }),
5655
5708
  /* @__PURE__ */ t.jsxs(q, { size: "sm", onClick: () => m({ mode: "create" }), children: [
5656
- /* @__PURE__ */ t.jsx(he, { className: "size-4" }),
5709
+ /* @__PURE__ */ t.jsx(_e, { className: "size-4" }),
5657
5710
  s("groups_new_group")
5658
5711
  ] })
5659
5712
  ] }),
5660
- /* @__PURE__ */ t.jsx("div", { className: "flex-1 overflow-y-auto px-6 py-6", children: /* @__PURE__ */ t.jsx("div", { className: "mx-auto max-w-[857px]", children: c ? /* @__PURE__ */ t.jsx(gl, {}) : l.length === 0 ? /* @__PURE__ */ t.jsx("div", { className: "text-muted-foreground py-16 text-center text-sm", children: s("groups_empty") }) : /* @__PURE__ */ t.jsx("div", { className: "space-y-2", children: l.map((_) => /* @__PURE__ */ t.jsx(
5661
- pl,
5713
+ /* @__PURE__ */ t.jsx("div", { className: "flex-1 overflow-y-auto px-6 py-6", children: /* @__PURE__ */ t.jsx("div", { className: "mx-auto max-w-[857px]", children: c ? /* @__PURE__ */ t.jsx(_l, {}) : l.length === 0 ? /* @__PURE__ */ t.jsx("div", { className: "text-muted-foreground py-16 text-center text-sm", children: s("groups_empty") }) : /* @__PURE__ */ t.jsx("div", { className: "space-y-2", children: l.map((h) => /* @__PURE__ */ t.jsx(
5714
+ gl,
5662
5715
  {
5663
- group: _,
5664
- highlight: h === _.id,
5665
- onEdit: () => m({ mode: "edit", group: _ }),
5666
- onDelete: () => f(_),
5716
+ group: h,
5717
+ highlight: _ === h.id,
5718
+ onEdit: () => m({ mode: "edit", group: h }),
5719
+ onDelete: () => f(h),
5667
5720
  onSelectContact: n
5668
5721
  },
5669
- _.id
5722
+ h.id
5670
5723
  )) }) }) }),
5671
5724
  u && /* @__PURE__ */ t.jsx(
5672
5725
  or,
@@ -5674,18 +5727,18 @@ function cl({
5674
5727
  mode: u.mode,
5675
5728
  group: u.mode === "edit" ? u.group : void 0,
5676
5729
  open: !!u,
5677
- onOpenChange: (_) => !_ && m(null),
5678
- onGroupCreated: (_) => {
5679
- y(_);
5730
+ onOpenChange: (h) => !h && m(null),
5731
+ onGroupCreated: (h) => {
5732
+ y(h);
5680
5733
  }
5681
5734
  },
5682
5735
  u.mode === "edit" ? u.group.id : "create"
5683
5736
  ),
5684
5737
  /* @__PURE__ */ t.jsx(
5685
- De,
5738
+ Ae,
5686
5739
  {
5687
5740
  open: !!g,
5688
- onOpenChange: (_) => !_ && f(null),
5741
+ onOpenChange: (h) => !h && f(null),
5689
5742
  title: s("groups_delete_title"),
5690
5743
  description: s("groups_delete_confirm", {
5691
5744
  name: g?.name ?? ""
@@ -5693,7 +5746,7 @@ function cl({
5693
5746
  role: "alertdialog",
5694
5747
  presentation: o ? "bottom-sheet" : "dialog",
5695
5748
  size: "compact",
5696
- children: /* @__PURE__ */ t.jsxs(Ae, { children: [
5749
+ children: /* @__PURE__ */ t.jsxs(Pe, { children: [
5697
5750
  /* @__PURE__ */ t.jsx(
5698
5751
  q,
5699
5752
  {
@@ -5725,14 +5778,14 @@ function or({
5725
5778
  onGroupCreated: s,
5726
5779
  onGroupCreatedWithName: o
5727
5780
  }) {
5728
- const { t: l } = z(), { isMobile: c } = _e(), d = er(), u = ol(), m = e === "create" ? d.isPending : u.isPending, [g, f] = i.useState(n?.name ?? ""), [h, y] = i.useState(n?.avatar ?? ""), [p, _] = i.useState(
5781
+ const { t: l } = z(), { isMobile: c } = he(), d = er(), u = ll(), m = e === "create" ? d.isPending : u.isPending, [g, f] = i.useState(n?.name ?? ""), [_, y] = i.useState(n?.avatar ?? ""), [p, h] = i.useState(
5729
5782
  n?.avatar_background ?? "#6366f1"
5730
5783
  ), v = i.useCallback(() => {
5731
5784
  const k = g.trim();
5732
5785
  k && (e === "create" ? d.mutate(
5733
5786
  {
5734
5787
  name: k,
5735
- avatar: h || void 0,
5788
+ avatar: _ || void 0,
5736
5789
  avatar_background: p || void 0
5737
5790
  },
5738
5791
  {
@@ -5748,7 +5801,7 @@ function or({
5748
5801
  groupId: n.id,
5749
5802
  input: {
5750
5803
  name: k,
5751
- avatar: h || void 0,
5804
+ avatar: _ || void 0,
5752
5805
  avatar_background: p || void 0
5753
5806
  }
5754
5807
  },
@@ -5761,7 +5814,7 @@ function or({
5761
5814
  }, [
5762
5815
  e,
5763
5816
  g,
5764
- h,
5817
+ _,
5765
5818
  p,
5766
5819
  n,
5767
5820
  d,
@@ -5772,7 +5825,7 @@ function or({
5772
5825
  l
5773
5826
  ]), C = p || "#6366f1";
5774
5827
  return /* @__PURE__ */ t.jsxs(
5775
- De,
5828
+ Ae,
5776
5829
  {
5777
5830
  open: r,
5778
5831
  onOpenChange: a,
@@ -5788,13 +5841,13 @@ function or({
5788
5841
  {
5789
5842
  className: "flex size-20 items-center justify-center rounded-full text-4xl transition-colors",
5790
5843
  style: { backgroundColor: C },
5791
- children: h || /* @__PURE__ */ t.jsx(ke, { className: "size-8 text-white/60" })
5844
+ children: _ || /* @__PURE__ */ t.jsx(we, { className: "size-8 text-white/60" })
5792
5845
  }
5793
5846
  ),
5794
- h && /* @__PURE__ */ t.jsx(
5847
+ _ && /* @__PURE__ */ t.jsx(
5795
5848
  Ke,
5796
5849
  {
5797
- icon: Ge,
5850
+ icon: Ue,
5798
5851
  onClick: () => y(""),
5799
5852
  className: "bg-foreground/80 text-background hover:bg-foreground absolute -top-1 -right-1 size-5 rounded-full [&_svg:not([class*='size-'])]:size-3",
5800
5853
  "aria-label": l("groups_remove_emoji")
@@ -5815,8 +5868,8 @@ function or({
5815
5868
  )
5816
5869
  ] })
5817
5870
  ] }),
5818
- /* @__PURE__ */ t.jsxs(Pa, { defaultValue: "emoji", children: [
5819
- /* @__PURE__ */ t.jsxs(za, { className: "border-border h-auto w-full justify-center gap-6 rounded-none border-b bg-transparent p-0", children: [
5871
+ /* @__PURE__ */ t.jsxs(_a, { defaultValue: "emoji", children: [
5872
+ /* @__PURE__ */ t.jsxs(xa, { className: "border-border h-auto w-full justify-center gap-6 rounded-none border-b bg-transparent p-0", children: [
5820
5873
  /* @__PURE__ */ t.jsx(
5821
5874
  Lt,
5822
5875
  {
@@ -5840,16 +5893,16 @@ function or({
5840
5893
  className: "bg-popover flex h-64 w-full flex-col overflow-hidden rounded-lg",
5841
5894
  onEmojiSelect: (k) => y(k.emoji),
5842
5895
  children: /* @__PURE__ */ t.jsxs(Oe.Viewport, { className: "relative flex-1 outline-hidden", children: [
5843
- /* @__PURE__ */ t.jsx(Oe.Loading, { className: "text-muted-foreground absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ t.jsx(Fa, { className: "size-4 animate-spin" }) }),
5896
+ /* @__PURE__ */ t.jsx(Oe.Loading, { className: "text-muted-foreground absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ t.jsx(ba, { className: "size-4 animate-spin" }) }),
5844
5897
  /* @__PURE__ */ t.jsx(Oe.Empty, { className: "text-muted-foreground absolute inset-0 flex items-center justify-center text-sm", children: l("groups_no_emoji_found") }),
5845
5898
  /* @__PURE__ */ t.jsx(
5846
5899
  Oe.List,
5847
5900
  {
5848
5901
  className: "pb-1 select-none",
5849
5902
  components: {
5850
- Row: dl,
5851
- Emoji: ul,
5852
- CategoryHeader: ml
5903
+ Row: ml,
5904
+ Emoji: pl,
5905
+ CategoryHeader: fl
5853
5906
  }
5854
5907
  }
5855
5908
  )
@@ -5858,42 +5911,42 @@ function or({
5858
5911
  ) }),
5859
5912
  /* @__PURE__ */ t.jsx(qt, { value: "color", className: "pt-4", children: /* @__PURE__ */ t.jsxs("div", { className: "space-y-4", children: [
5860
5913
  /* @__PURE__ */ t.jsx(
5861
- tl,
5914
+ rl,
5862
5915
  {
5863
5916
  color: p || "#6366f1",
5864
- onChange: _,
5917
+ onChange: h,
5865
5918
  className: "h-40 w-full"
5866
5919
  }
5867
5920
  ),
5868
5921
  /* @__PURE__ */ t.jsx("div", { className: "flex items-center gap-3", children: /* @__PURE__ */ t.jsxs("div", { className: "border-input flex items-center gap-1 rounded-md border px-3 py-1.5", children: [
5869
5922
  /* @__PURE__ */ t.jsx("span", { className: "text-muted-foreground text-sm", children: "#" }),
5870
5923
  /* @__PURE__ */ t.jsx(
5871
- al,
5924
+ ol,
5872
5925
  {
5873
5926
  color: p || "6366f1",
5874
- onChange: _,
5927
+ onChange: h,
5875
5928
  className: "text-foreground w-20 bg-transparent text-sm outline-none"
5876
5929
  }
5877
5930
  )
5878
5931
  ] }) }),
5879
- /* @__PURE__ */ t.jsx("div", { className: "flex justify-between", children: il.map((k) => /* @__PURE__ */ t.jsx(
5932
+ /* @__PURE__ */ t.jsx("div", { className: "flex justify-between", children: cl.map((k) => /* @__PURE__ */ t.jsx(
5880
5933
  "button",
5881
5934
  {
5882
5935
  type: "button",
5883
- onClick: () => _(k),
5884
- className: D(
5936
+ onClick: () => h(k),
5937
+ className: E(
5885
5938
  "size-7 rounded-full transition-all",
5886
5939
  p === k ? "ring-primary ring-2 ring-offset-2" : "hover:scale-110"
5887
5940
  ),
5888
5941
  style: { backgroundColor: k },
5889
- "aria-label": l(ll[k])
5942
+ "aria-label": l(dl[k])
5890
5943
  },
5891
5944
  k
5892
5945
  )) })
5893
5946
  ] }) })
5894
5947
  ] })
5895
5948
  ] }),
5896
- /* @__PURE__ */ t.jsxs(Ae, { children: [
5949
+ /* @__PURE__ */ t.jsxs(Pe, { children: [
5897
5950
  /* @__PURE__ */ t.jsx(
5898
5951
  q,
5899
5952
  {
@@ -5909,14 +5962,14 @@ function or({
5909
5962
  }
5910
5963
  );
5911
5964
  }
5912
- function dl({
5965
+ function ml({
5913
5966
  children: e,
5914
5967
  ref: n,
5915
5968
  ...r
5916
5969
  }) {
5917
5970
  return /* @__PURE__ */ t.jsx("div", { ...r, className: "flex scroll-my-1 justify-center px-1", children: e });
5918
5971
  }
5919
- function ul({
5972
+ function pl({
5920
5973
  emoji: e,
5921
5974
  className: n,
5922
5975
  ref: r,
@@ -5926,7 +5979,7 @@ function ul({
5926
5979
  "button",
5927
5980
  {
5928
5981
  ...a,
5929
- className: D(
5982
+ className: E(
5930
5983
  "data-[active]:bg-foreground/10 flex aspect-square size-12 items-center justify-center rounded-md text-3xl",
5931
5984
  n
5932
5985
  ),
@@ -5934,7 +5987,7 @@ function ul({
5934
5987
  }
5935
5988
  );
5936
5989
  }
5937
- function ml({
5990
+ function fl({
5938
5991
  category: e,
5939
5992
  ref: n,
5940
5993
  ...r
@@ -5948,7 +6001,7 @@ function ml({
5948
6001
  }
5949
6002
  );
5950
6003
  }
5951
- function pl({
6004
+ function gl({
5952
6005
  group: e,
5953
6006
  highlight: n,
5954
6007
  onEdit: r,
@@ -5960,7 +6013,7 @@ function pl({
5960
6013
  /* @__PURE__ */ t.jsxs(
5961
6014
  "div",
5962
6015
  {
5963
- className: D(
6016
+ className: E(
5964
6017
  "group/row border-border/50 hover:bg-muted/50 focus-within:bg-muted/50 flex cursor-pointer items-center gap-4 rounded-lg border px-4 py-3 transition-colors",
5965
6018
  n && "animate-highlight-fade"
5966
6019
  ),
@@ -5976,7 +6029,7 @@ function pl({
5976
6029
  {
5977
6030
  className: "flex size-10 shrink-0 items-center justify-center rounded-full text-lg",
5978
6031
  style: { backgroundColor: l },
5979
- children: e.avatar ?? /* @__PURE__ */ t.jsx(ke, { className: "text-muted-foreground size-4" })
6032
+ children: e.avatar ?? /* @__PURE__ */ t.jsx(we, { className: "text-muted-foreground size-4" })
5980
6033
  }
5981
6034
  ),
5982
6035
  /* @__PURE__ */ t.jsxs("div", { className: "min-w-0 flex-1", children: [
@@ -5998,7 +6051,7 @@ function pl({
5998
6051
  /* @__PURE__ */ t.jsx(
5999
6052
  Ke,
6000
6053
  {
6001
- icon: st,
6054
+ icon: tt,
6002
6055
  onClick: (u) => {
6003
6056
  u.stopPropagation(), a();
6004
6057
  },
@@ -6011,7 +6064,7 @@ function pl({
6011
6064
  }
6012
6065
  ),
6013
6066
  /* @__PURE__ */ t.jsx(
6014
- fl,
6067
+ hl,
6015
6068
  {
6016
6069
  group: e,
6017
6070
  open: c,
@@ -6022,42 +6075,42 @@ function pl({
6022
6075
  )
6023
6076
  ] });
6024
6077
  }
6025
- function fl({
6078
+ function hl({
6026
6079
  group: e,
6027
6080
  open: n,
6028
6081
  onOpenChange: r,
6029
6082
  contactCount: a,
6030
6083
  onSelectContact: s
6031
6084
  }) {
6032
- const { t: o } = z(), { isMobile: l } = _e(), c = xe(), d = W(), u = e.avatar_background ?? "var(--color-muted)", [m, g] = i.useState(""), [f, h] = i.useState(null);
6085
+ const { t: o } = z(), { isMobile: l } = he(), c = xe(), d = W(), u = e.avatar_background ?? "var(--color-muted)", [m, g] = i.useState(""), [f, _] = i.useState(null);
6033
6086
  i.useEffect(() => {
6034
6087
  if (f == null) return;
6035
- const x = setTimeout(() => h(null), 2e3);
6088
+ const x = setTimeout(() => _(null), 2e3);
6036
6089
  return () => clearTimeout(x);
6037
6090
  }, [f]);
6038
6091
  const { data: y, isLoading: p } = ve({
6039
- queryKey: Q.groupMembers(e.name),
6092
+ queryKey: Y.groupMembers(e.name),
6040
6093
  queryFn: async () => (await c.listContacts({
6041
6094
  tags: [e.name],
6042
6095
  per_page: 100
6043
6096
  })).contacts,
6044
6097
  enabled: n
6045
- }), { data: _ } = ve({
6046
- queryKey: Q.groupAddSearch(e.name, m),
6098
+ }), { data: h } = ve({
6099
+ queryKey: Y.groupAddSearch(e.name, m),
6047
6100
  queryFn: () => c.listContacts({
6048
6101
  search_query: m,
6049
6102
  per_page: 10
6050
6103
  }),
6051
6104
  enabled: m.length > 0 && n
6052
- }), v = (_?.contacts ?? []).filter(
6105
+ }), v = (h?.contacts ?? []).filter(
6053
6106
  (x) => !y?.some((P) => P.id === x.id)
6054
6107
  ), C = i.useCallback(
6055
6108
  (x) => {
6056
6109
  const R = (Array.isArray(x.tags) ? x.tags : []).filter((F) => F !== e.name);
6057
6110
  c.updateContact(String(x.id), { tags: R }).then(() => {
6058
6111
  d.invalidateQueries({
6059
- queryKey: Q.groupMembers(e.name)
6060
- }), Pe(d), O({
6112
+ queryKey: Y.groupMembers(e.name)
6113
+ }), ze(d), O({
6061
6114
  title: o("groups_member_removed_toast", {
6062
6115
  contact: x.full_name ?? "",
6063
6116
  group: e.name
@@ -6083,8 +6136,8 @@ function fl({
6083
6136
  const R = [...P, e.name];
6084
6137
  c.updateContact(String(x.id), { tags: R }).then(() => {
6085
6138
  d.invalidateQueries({
6086
- queryKey: Q.groupMembers(e.name)
6087
- }), Pe(d), g(""), h(x.id), O({
6139
+ queryKey: Y.groupMembers(e.name)
6140
+ }), ze(d), g(""), _(x.id), O({
6088
6141
  title: o("groups_member_added_toast", {
6089
6142
  contact: x.full_name ?? "",
6090
6143
  group: e.name
@@ -6110,7 +6163,7 @@ function fl({
6110
6163
  {
6111
6164
  className: "flex size-12 shrink-0 items-center justify-center rounded-full text-xl",
6112
6165
  style: { backgroundColor: u },
6113
- children: e.avatar ?? /* @__PURE__ */ t.jsx(ke, { className: "size-5 text-white/60" })
6166
+ children: e.avatar ?? /* @__PURE__ */ t.jsx(we, { className: "size-5 text-white/60" })
6114
6167
  }
6115
6168
  ),
6116
6169
  /* @__PURE__ */ t.jsxs("div", { children: [
@@ -6147,17 +6200,17 @@ function fl({
6147
6200
  /* @__PURE__ */ t.jsx("p", { className: "text-foreground truncate text-sm", children: x.full_name }),
6148
6201
  x.email && /* @__PURE__ */ t.jsx("p", { className: "text-muted-foreground truncate text-xs", children: x.email })
6149
6202
  ] }),
6150
- /* @__PURE__ */ t.jsx(he, { className: "text-primary size-4 shrink-0" })
6203
+ /* @__PURE__ */ t.jsx(_e, { className: "text-primary size-4 shrink-0" })
6151
6204
  ]
6152
6205
  },
6153
6206
  x.id
6154
6207
  )) }),
6155
- m && v.length === 0 && _ && /* @__PURE__ */ t.jsx("div", { className: "bg-popover border-border absolute right-6 left-6 z-10 mt-1 rounded-md border p-3 shadow-md", children: /* @__PURE__ */ t.jsx("p", { className: "text-muted-foreground text-center text-sm", children: o("groups_no_contacts_found") }) })
6208
+ m && v.length === 0 && h && /* @__PURE__ */ t.jsx("div", { className: "bg-popover border-border absolute right-6 left-6 z-10 mt-1 rounded-md border p-3 shadow-md", children: /* @__PURE__ */ t.jsx("p", { className: "text-muted-foreground text-center text-sm", children: o("groups_no_contacts_found") }) })
6156
6209
  ] }),
6157
6210
  /* @__PURE__ */ t.jsx("div", { className: "flex-1 overflow-y-auto px-6 py-3", children: p ? /* @__PURE__ */ t.jsx("div", { className: "text-muted-foreground py-8 text-center text-sm", children: o("groups_loading_members") }) : !y || y.length === 0 ? /* @__PURE__ */ t.jsx("div", { className: "text-muted-foreground py-8 text-center text-sm", children: o("groups_empty_members") }) : /* @__PURE__ */ t.jsx("div", { className: "space-y-1", children: y.map((x) => /* @__PURE__ */ t.jsxs(
6158
6211
  "div",
6159
6212
  {
6160
- className: D(
6213
+ className: E(
6161
6214
  "group/member hover:bg-muted/50 focus-within:bg-muted/50 flex cursor-pointer items-center gap-3 rounded-md px-2 py-2 transition-colors duration-1000",
6162
6215
  f === x.id && "animate-highlight-fade"
6163
6216
  ),
@@ -6181,7 +6234,7 @@ function fl({
6181
6234
  /* @__PURE__ */ t.jsx(
6182
6235
  Ke,
6183
6236
  {
6184
- icon: Ge,
6237
+ icon: Ue,
6185
6238
  onClick: (P) => {
6186
6239
  P.stopPropagation(), C(x);
6187
6240
  },
@@ -6197,7 +6250,7 @@ function fl({
6197
6250
  )) }) })
6198
6251
  ] });
6199
6252
  return l ? /* @__PURE__ */ t.jsx(
6200
- tt,
6253
+ nt,
6201
6254
  {
6202
6255
  open: n,
6203
6256
  onOpenChange: r,
@@ -6206,24 +6259,24 @@ function fl({
6206
6259
  }
6207
6260
  ) : /* @__PURE__ */ t.jsx(sn, { open: n, onOpenChange: r, children: /* @__PURE__ */ t.jsx(on, { side: "right", className: "flex flex-col overflow-hidden p-0", children: j }) });
6208
6261
  }
6209
- function gl() {
6262
+ function _l() {
6210
6263
  return /* @__PURE__ */ t.jsx("div", { className: "space-y-2", children: [0, 1, 2, 3].map((e) => /* @__PURE__ */ t.jsxs(
6211
6264
  "div",
6212
6265
  {
6213
6266
  className: "flex items-center gap-4 rounded-lg px-4 py-3",
6214
6267
  "aria-hidden": "true",
6215
6268
  children: [
6216
- /* @__PURE__ */ t.jsx(Ee, { className: "size-10 rounded-full" }),
6269
+ /* @__PURE__ */ t.jsx(De, { className: "size-10 rounded-full" }),
6217
6270
  /* @__PURE__ */ t.jsxs("div", { className: "flex-1 space-y-2", children: [
6218
- /* @__PURE__ */ t.jsx(Ee, { className: "h-4 w-32" }),
6219
- /* @__PURE__ */ t.jsx(Ee, { className: "h-3 w-24" })
6271
+ /* @__PURE__ */ t.jsx(De, { className: "h-4 w-32" }),
6272
+ /* @__PURE__ */ t.jsx(De, { className: "h-3 w-24" })
6220
6273
  ] })
6221
6274
  ]
6222
6275
  },
6223
6276
  e
6224
6277
  )) });
6225
6278
  }
6226
- function _l(e = "contacts", n) {
6279
+ function xl(e = "contacts", n) {
6227
6280
  const r = W(), a = xe();
6228
6281
  return re({
6229
6282
  mutationFn: (s) => a.createContact(s),
@@ -6239,9 +6292,9 @@ function _l(e = "contacts", n) {
6239
6292
  }
6240
6293
  });
6241
6294
  }
6242
- function hl(e = "contacts", n) {
6243
- const r = Ye();
6244
- return _l(e, {
6295
+ function bl(e = "contacts", n) {
6296
+ const r = Qe();
6297
+ return xl(e, {
6245
6298
  onSuccess: (a) => {
6246
6299
  O({
6247
6300
  title: r?.t("contact_created") ?? "Contact created successfully",
@@ -6258,10 +6311,10 @@ function hl(e = "contacts", n) {
6258
6311
  });
6259
6312
  }
6260
6313
  function ir(e) {
6261
- return vn(e)[0] ?? "contacts";
6314
+ return Nn(e)[0] ?? "contacts";
6262
6315
  }
6263
- function xl(e) {
6264
- const [, n] = vn(e), r = n ? ga(n) : void 0;
6316
+ function yl(e) {
6317
+ const [, n] = Nn(e), r = n ? za(n) : void 0;
6265
6318
  return r === "manage-groups" ? {
6266
6319
  nav: { view: "browse", selectedContactId: null },
6267
6320
  subPage: "manage-groups"
@@ -6278,10 +6331,10 @@ function xl(e) {
6278
6331
  }
6279
6332
  function nn(e, n) {
6280
6333
  const r = ir(e);
6281
- return n.view === "new" ? `${r}/new` : n.selectedContactId ? `${r}/${_a(n.selectedContactId)}` : r;
6334
+ return n.view === "new" ? `${r}/new` : n.selectedContactId ? `${r}/${Fa(n.selectedContactId)}` : r;
6282
6335
  }
6283
6336
  const lr = "sdk-contacts";
6284
- function bl({
6337
+ function vl({
6285
6338
  selectedContactId: e,
6286
6339
  highlightContactId: n,
6287
6340
  onSelect: r,
@@ -6291,16 +6344,16 @@ function bl({
6291
6344
  highlightGroupName: l,
6292
6345
  showMobileDetailBackButton: c = !0
6293
6346
  }) {
6294
- const { t: d } = z(), { locale: u } = wt(), m = mn(), g = xe(), f = W(), h = i.useMemo(
6347
+ const { t: d } = z(), { locale: u } = wt(), m = mn(), g = xe(), f = W(), _ = i.useMemo(
6295
6348
  () => [...un.countries(u), "contact-detail"],
6296
6349
  [u]
6297
6350
  ), y = i.useCallback(async () => (await m.listCountries({
6298
6351
  languageIso: u
6299
6352
  })).countries.map((v) => ({ id: 0, name: v.name, iso: v.code })), [m, u]), p = i.useCallback(
6300
- (_) => {
6301
- const v = _.full_name || d("contact_label");
6302
- g.deleteContact(String(_.id)).then(() => {
6303
- Pe(f), e === String(_.id) && r(null), O({
6353
+ (h) => {
6354
+ const v = h.full_name || d("contact_label");
6355
+ g.deleteContact(String(h.id)).then(() => {
6356
+ ze(f), e === String(h.id) && r(null), O({
6304
6357
  title: d("contact_deleted_toast", { name: v }),
6305
6358
  type: "success"
6306
6359
  });
@@ -6315,7 +6368,7 @@ function bl({
6315
6368
  [g, f, e, r, d]
6316
6369
  );
6317
6370
  return /* @__PURE__ */ t.jsx(
6318
- Li,
6371
+ $i,
6319
6372
  {
6320
6373
  selectedContactId: e,
6321
6374
  highlightContactId: n,
@@ -6326,13 +6379,13 @@ function bl({
6326
6379
  highlightGroupName: l,
6327
6380
  onDeleteContact: p,
6328
6381
  queryKeyPrefix: lr,
6329
- countriesQueryKey: h,
6382
+ countriesQueryKey: _,
6330
6383
  getCountries: y,
6331
6384
  showMobileDetailBackButton: c
6332
6385
  }
6333
6386
  );
6334
6387
  }
6335
- const yl = {
6388
+ const jl = {
6336
6389
  first_name: "",
6337
6390
  last_name: "",
6338
6391
  email: "",
@@ -6347,7 +6400,7 @@ const yl = {
6347
6400
  metadata: {},
6348
6401
  affiliate: {}
6349
6402
  };
6350
- function vl({
6403
+ function Nl({
6351
6404
  onNavigate: e,
6352
6405
  onCreateContact: n,
6353
6406
  asSheet: r = !1
@@ -6359,8 +6412,8 @@ function vl({
6359
6412
  () => (c?.countries ?? []).map((y) => ({ name: y.name, value: y.code })).sort((y, p) => y.name.localeCompare(p.name)),
6360
6413
  [c]
6361
6414
  ), u = pn(Pt, {
6362
- defaultValues: yl
6363
- }), m = hl(lr, {
6415
+ defaultValues: jl
6416
+ }), m = bl(lr, {
6364
6417
  onSuccess: (y) => {
6365
6418
  n?.();
6366
6419
  const p = y?.contact?.id;
@@ -6372,8 +6425,8 @@ function vl({
6372
6425
  }), { mutate: g } = m, f = i.useMemo(
6373
6426
  () => u.handleSubmit(
6374
6427
  (y) => {
6375
- const { affiliate: p, ..._ } = y, v = {};
6376
- for (const [C, k] of Object.entries(_))
6428
+ const { affiliate: p, ...h } = y, v = {};
6429
+ for (const [C, k] of Object.entries(h))
6377
6430
  k !== "" && k !== null && k !== void 0 && (v[C] = k);
6378
6431
  p && Object.keys(p).length > 0 && (v.affiliate = p), g(v);
6379
6432
  },
@@ -6381,15 +6434,15 @@ function vl({
6381
6434
  }
6382
6435
  ),
6383
6436
  [u, g]
6384
- ), h = i.useCallback(() => {
6437
+ ), _ = i.useCallback(() => {
6385
6438
  e({ view: "browse", selectedContactId: null });
6386
6439
  }, [e]);
6387
6440
  return r ? /* @__PURE__ */ t.jsx(
6388
- tt,
6441
+ nt,
6389
6442
  {
6390
6443
  open: !0,
6391
6444
  onOpenChange: (y) => {
6392
- y || h();
6445
+ y || _();
6393
6446
  },
6394
6447
  title: a("breadcrumb_new"),
6395
6448
  children: /* @__PURE__ */ t.jsx(yt, { ...u, children: /* @__PURE__ */ t.jsxs(
@@ -6406,7 +6459,7 @@ function vl({
6406
6459
  {
6407
6460
  type: "button",
6408
6461
  variant: "outline",
6409
- onClick: h,
6462
+ onClick: _,
6410
6463
  children: a("cancel")
6411
6464
  }
6412
6465
  ),
@@ -6417,9 +6470,9 @@ function vl({
6417
6470
  ) })
6418
6471
  }
6419
6472
  ) : /* @__PURE__ */ t.jsx(
6420
- To,
6473
+ Do,
6421
6474
  {
6422
- onNavigateToList: h,
6475
+ onNavigateToList: _,
6423
6476
  onSubmit: () => s.current?.requestSubmit(),
6424
6477
  isPending: m.isPending,
6425
6478
  children: /* @__PURE__ */ t.jsx(yt, { ...u, children: /* @__PURE__ */ t.jsx("div", { className: "mx-auto max-w-7xl space-y-12 md:px-10 md:py-8", children: /* @__PURE__ */ t.jsx(
@@ -6434,7 +6487,7 @@ function vl({
6434
6487
  }
6435
6488
  );
6436
6489
  }
6437
- function jl({
6490
+ function Cl({
6438
6491
  api: e,
6439
6492
  onContactSelect: n,
6440
6493
  onCreateContact: r,
@@ -6451,10 +6504,10 @@ function jl({
6451
6504
  const { currentSlug: m, navigate: g } = Nr(), f = i.useMemo(
6452
6505
  () => ir(m),
6453
6506
  [m]
6454
- ), { nav: h, subPage: y } = i.useMemo(
6455
- () => xl(m),
6507
+ ), { nav: _, subPage: y } = i.useMemo(
6508
+ () => yl(m),
6456
6509
  [m]
6457
- ), p = Fr(), [_, v] = i.useState(!1), [C, k] = i.useState(
6510
+ ), p = Fr(), [h, v] = i.useState(!1), [C, k] = i.useState(
6458
6511
  null
6459
6512
  );
6460
6513
  i.useEffect(() => {
@@ -6487,9 +6540,9 @@ function jl({
6487
6540
  [j]
6488
6541
  ), I = i.useCallback(
6489
6542
  (T) => {
6490
- v(!1), (h.view === "new" || T.view === "new" || T.view === "browse" && T.selectedContactId) && F(T);
6543
+ v(!1), (_.view === "new" || T.view === "new" || T.view === "browse" && T.selectedContactId) && F(T);
6491
6544
  },
6492
- [F, h.view]
6545
+ [F, _.view]
6493
6546
  ), [S, L] = i.useState(!1), [$, b] = i.useState(
6494
6547
  null
6495
6548
  );
@@ -6500,10 +6553,10 @@ function jl({
6500
6553
  }, [$]);
6501
6554
  const A = i.useCallback(() => {
6502
6555
  L(!0);
6503
- }, []), M = _ || h.view === "new", B = p || !M;
6504
- return /* @__PURE__ */ t.jsx(yo, { children: /* @__PURE__ */ t.jsx(mo, { api: e, children: /* @__PURE__ */ t.jsxs("div", { ...u, className: D("h-full", u.className), children: [
6556
+ }, []), M = h || _.view === "new", B = p || !M;
6557
+ return /* @__PURE__ */ t.jsx(jo, { children: /* @__PURE__ */ t.jsx(fo, { api: e, children: /* @__PURE__ */ t.jsxs("div", { ...u, className: E("h-full", u.className), children: [
6505
6558
  y === "manage-groups" ? /* @__PURE__ */ t.jsx(
6506
- cl,
6559
+ ul,
6507
6560
  {
6508
6561
  onBack: () => g(f),
6509
6562
  onSelectContact: (T) => {
@@ -6518,9 +6571,9 @@ function jl({
6518
6571
  }
6519
6572
  ) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
6520
6573
  B ? /* @__PURE__ */ t.jsx(
6521
- bl,
6574
+ vl,
6522
6575
  {
6523
- selectedContactId: h.view === "browse" ? h.selectedContactId : null,
6576
+ selectedContactId: _.view === "browse" ? _.selectedContactId : null,
6524
6577
  highlightContactId: C,
6525
6578
  onSelect: x,
6526
6579
  onAdd: P,
@@ -6531,7 +6584,7 @@ function jl({
6531
6584
  }
6532
6585
  ) : null,
6533
6586
  M ? /* @__PURE__ */ t.jsx(
6534
- vl,
6587
+ Nl,
6535
6588
  {
6536
6589
  asSheet: p,
6537
6590
  onNavigate: I,
@@ -6553,7 +6606,7 @@ function jl({
6553
6606
  )
6554
6607
  ] }) }) });
6555
6608
  }
6556
- function Kl() {
6609
+ function Ul() {
6557
6610
  const { config: e } = rn(), { fetch: n } = Cr(), { baseUrl: r, defaultHeaders: a, onAuthError: s } = e, o = i.useMemo(
6558
6611
  () => Mr(
6559
6612
  Tr({
@@ -6567,7 +6620,7 @@ function Kl() {
6567
6620
  [r, a, s, n]
6568
6621
  ), l = i.useMemo(
6569
6622
  () => Hn(
6570
- Gn({
6623
+ Un({
6571
6624
  baseUrl: r,
6572
6625
  fetch: n,
6573
6626
  credentials: "include",
@@ -6577,8 +6630,8 @@ function Kl() {
6577
6630
  ),
6578
6631
  [r, a, s, n]
6579
6632
  );
6580
- return /* @__PURE__ */ t.jsx(Er, { value: o, children: /* @__PURE__ */ t.jsx(jl, { api: l }) });
6633
+ return /* @__PURE__ */ t.jsx(Er, { value: o, children: /* @__PURE__ */ t.jsx(Cl, { api: l }) });
6581
6634
  }
6582
6635
  export {
6583
- Kl as default
6636
+ Ul as default
6584
6637
  };