@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,18 +1,32 @@
1
- import { c as oe, i as mt, l as v, j as n, aa as ht, ab as le, ac as pt, ad as re, M as ce, ae as gt, K as E, I as je, H as A, B as de, D as Ae, E as ue, x as xt, G as Q, af as bt, J as H, a8 as T, ag as _t, ah as vt, a7 as yt, P as jt, ai as Z, z as fe, R as Me, q as Ct, Y as wt, N as Nt } from "./account-screen-runtime-B3e0JV6I.js";
2
- import { u as R, a as St, b as B, c as Et, M as Pt } from "./MemberManagementProviders-iVdfo0DH.js";
3
- import { O as At } from "./OrdersScreen-C4yi3z2p.js";
4
- import { F as J, e as Mt, f as Rt, S as Ft, P as It, a as Lt, b as kt, d as Dt, A as Ot, C as Re, c as zt, g as Tt, u as Bt, i as Ut, h as Qt, T as qt, j as $t, k as Vt, m as Ht, E as Kt, l as Fe } from "./create-card-entry-container-CZi7shLR.js";
1
+ import { c as Y, i as mt, l as v, j as n, G as ht, J as le, al as pt, am as ne, X as ce, an as gt, $ as E, I as je, Z as A, B as de, D as Ae, E as ue, x as xt, Y as $, ao as _t, _ as H, aj as T, ap as bt, aq as vt, ai as yt, P as jt, ar as J, z as fe, a3 as Me, q as Ct, a7 as wt, a1 as Nt } from "./account-screen-runtime-BqMndJcu.js";
2
+ import { u as R, a as St, b as B, c as Et, M as Pt } from "./MemberManagementProviders-B_YXVcDi.js";
3
+ import { O as At } from "./OrdersScreen-DyyL-P7j.js";
4
+ import { F as ee, e as Mt, f as Rt, S as Ft, P as It, a as Lt, b as kt, d as Dt, A as Ot, C as Re, c as zt, g as Tt, u as Bt, i as Ut, h as $t, T as qt, j as Qt, k as Vt, m as Ht, E as Kt, l as Fe } from "./create-card-entry-container-ohrRYgww.js";
5
5
  import { c as Gt } from "./member-permissions-ndhNmlOk.js";
6
- import { u as me, B as Ie } from "./use-store-aahN8SDp.js";
7
- import { R as Le, j as Yt, u as K, m as Wt, o as ne, s as L } from "./schemas-BiM-ImW1.js";
8
- import { I as Xt } from "./sheet-haptics-context-d9udqor0.js";
9
- import { u as Y } from "./sidebar-BDgHluGp.js";
10
- import { u as Zt } from "./countries-api-adapter-BCS0247N.js";
11
- import { u as Jt } from "./PortalTenantClientProvider-Clys_Bme.js";
12
- import { P as ke } from "./pause-YWP8mWBs.js";
13
- import { M as er } from "./map-pin-Vt1smsNu.js";
14
- import { L as tr, a as rr } from "./log-out-segl_UhK.js";
15
- import { A as Ce } from "./arrow-left-BOYuYcvT.js";
6
+ import { u as me } from "./use-store-YC0Ovzht.js";
7
+ import { u as K, f as Yt, o as se, s as L } from "./schemas-D0s3rDQw.js";
8
+ import { R as Ie, e as Xt } from "./ResponsiveDialog-DSDcOjhm.js";
9
+ import { I as Wt } from "./sheet-haptics-context-p5ZPxslK.js";
10
+ import { u as X } from "./sidebar-CjPHl33n.js";
11
+ import { B as Le, a as ke } from "./Textarea-C59p5Cek.js";
12
+ import { u as Zt } from "./countries-api-adapter-Bh5QfCO1.js";
13
+ import { u as Jt } from "./PortalTenantClientProvider-DUOOCXfW.js";
14
+ import { M as er } from "./map-pin-C_cK_i_W.js";
15
+ import { A as Ce } from "./arrow-left-CFy5J6Id.js";
16
+ /**
17
+ * @license lucide-react v0.575.0 - ISC
18
+ *
19
+ * This source code is licensed under the ISC license.
20
+ * See the LICENSE file in the root directory of this source tree.
21
+ */
22
+ const tr = [
23
+ ["path", { d: "m5 8 6 6", key: "1wu5hv" }],
24
+ ["path", { d: "m4 14 6-6 2-3", key: "1k1g8d" }],
25
+ ["path", { d: "M2 5h12", key: "or177f" }],
26
+ ["path", { d: "M7 2h1", key: "1t2jsx" }],
27
+ ["path", { d: "m22 22-5-10-5 10", key: "don7ne" }],
28
+ ["path", { d: "M14 18h6", key: "1m8k6r" }]
29
+ ], rr = Y("languages", tr);
16
30
  /**
17
31
  * @license lucide-react v0.575.0 - ISC
18
32
  *
@@ -20,18 +34,29 @@ import { A as Ce } from "./arrow-left-BOYuYcvT.js";
20
34
  * See the LICENSE file in the root directory of this source tree.
21
35
  */
22
36
  const nr = [
37
+ ["path", { d: "m16 17 5-5-5-5", key: "1bji2h" }],
38
+ ["path", { d: "M21 12H9", key: "dn1m92" }],
39
+ ["path", { d: "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4", key: "1uf3rs" }]
40
+ ], sr = Y("log-out", nr);
41
+ /**
42
+ * @license lucide-react v0.575.0 - ISC
43
+ *
44
+ * This source code is licensed under the ISC license.
45
+ * See the LICENSE file in the root directory of this source tree.
46
+ */
47
+ const ar = [
23
48
  ["path", { d: "m2 9 3-3 3 3", key: "1ltn5i" }],
24
49
  ["path", { d: "M13 18H7a2 2 0 0 1-2-2V6", key: "1r6tfw" }],
25
50
  ["path", { d: "m22 15-3 3-3-3", key: "4rnwn2" }],
26
51
  ["path", { d: "M11 6h6a2 2 0 0 1 2 2v10", key: "2f72bc" }]
27
- ], De = oe("repeat-2", nr);
52
+ ], De = Y("repeat-2", ar);
28
53
  /**
29
54
  * @license lucide-react v0.575.0 - ISC
30
55
  *
31
56
  * This source code is licensed under the ISC license.
32
57
  * See the LICENSE file in the root directory of this source tree.
33
58
  */
34
- const sr = [
59
+ const ir = [
35
60
  [
36
61
  "path",
37
62
  {
@@ -39,18 +64,18 @@ const sr = [
39
64
  key: "r04s7s"
40
65
  }
41
66
  ]
42
- ], ar = oe("star", sr);
67
+ ], or = Y("star", ir);
43
68
  /**
44
69
  * @license lucide-react v0.575.0 - ISC
45
70
  *
46
71
  * This source code is licensed under the ISC license.
47
72
  * See the LICENSE file in the root directory of this source tree.
48
73
  */
49
- const ir = [
74
+ const lr = [
50
75
  ["circle", { cx: "12", cy: "8", r: "5", key: "1hypcn" }],
51
76
  ["path", { d: "M20 21a8 8 0 0 0-16 0", key: "rfgkzh" }]
52
- ], or = oe("user-round", ir);
53
- var ee = { exports: {} }, te = {};
77
+ ], cr = Y("user-round", lr);
78
+ var te = { exports: {} }, re = {};
54
79
  /**
55
80
  * @license React
56
81
  * use-sync-external-store-shim.production.js
@@ -61,8 +86,8 @@ var ee = { exports: {} }, te = {};
61
86
  * LICENSE file in the root directory of this source tree.
62
87
  */
63
88
  var we;
64
- function lr() {
65
- if (we) return te;
89
+ function dr() {
90
+ if (we) return re;
66
91
  we = 1;
67
92
  var e = mt();
68
93
  function i(o, c) {
@@ -99,29 +124,29 @@ function lr() {
99
124
  return c();
100
125
  }
101
126
  var s = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? t : g;
102
- return te.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : s, te;
127
+ return re.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : s, re;
103
128
  }
104
129
  var Ne;
105
- function cr() {
106
- return Ne || (Ne = 1, ee.exports = lr()), ee.exports;
107
- }
108
- var dr = cr();
109
130
  function ur() {
110
- return dr.useSyncExternalStore(
111
- fr,
131
+ return Ne || (Ne = 1, te.exports = dr()), te.exports;
132
+ }
133
+ var fr = ur();
134
+ function mr() {
135
+ return fr.useSyncExternalStore(
136
+ hr,
112
137
  () => !0,
113
138
  () => !1
114
139
  );
115
140
  }
116
- function fr() {
141
+ function hr() {
117
142
  return () => {
118
143
  };
119
144
  }
120
- var he = "Avatar", [mr] = ht(he), [hr, Oe] = mr(he), ze = v.forwardRef(
145
+ var he = "Avatar", [pr] = ht(he), [gr, Oe] = pr(he), ze = v.forwardRef(
121
146
  (e, i) => {
122
147
  const { __scopeAvatar: r, ...l } = e, [d, u] = v.useState("idle");
123
148
  return /* @__PURE__ */ n.jsx(
124
- hr,
149
+ gr,
125
150
  {
126
151
  scope: r,
127
152
  imageLoadingStatus: d,
@@ -135,16 +160,16 @@ ze.displayName = he;
135
160
  var Te = "AvatarImage", Be = v.forwardRef(
136
161
  (e, i) => {
137
162
  const { __scopeAvatar: r, src: l, onLoadingStatusChange: d = () => {
138
- }, ...u } = e, p = Oe(Te, r), g = pr(l, u), a = pt((t) => {
163
+ }, ...u } = e, p = Oe(Te, r), g = xr(l, u), a = pt((t) => {
139
164
  d(t), p.onImageLoadingStatusChange(t);
140
165
  });
141
- return re(() => {
166
+ return ne(() => {
142
167
  g !== "idle" && a(g);
143
168
  }, [g, a]), g === "loaded" ? /* @__PURE__ */ n.jsx(le.img, { ...u, ref: i, src: l }) : null;
144
169
  }
145
170
  );
146
171
  Be.displayName = Te;
147
- var Ue = "AvatarFallback", Qe = v.forwardRef(
172
+ var Ue = "AvatarFallback", $e = v.forwardRef(
148
173
  (e, i) => {
149
174
  const { __scopeAvatar: r, delayMs: l, ...d } = e, u = Oe(Ue, r), [p, g] = v.useState(l === void 0);
150
175
  return v.useEffect(() => {
@@ -155,17 +180,17 @@ var Ue = "AvatarFallback", Qe = v.forwardRef(
155
180
  }, [l]), p && u.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ n.jsx(le.span, { ...d, ref: i }) : null;
156
181
  }
157
182
  );
158
- Qe.displayName = Ue;
183
+ $e.displayName = Ue;
159
184
  function Se(e, i) {
160
185
  return e ? i ? (e.src !== i && (e.src = i), e.complete && e.naturalWidth > 0 ? "loaded" : "loading") : "error" : "idle";
161
186
  }
162
- function pr(e, { referrerPolicy: i, crossOrigin: r }) {
163
- const l = ur(), d = v.useRef(null), u = l ? (d.current || (d.current = new window.Image()), d.current) : null, [p, g] = v.useState(
187
+ function xr(e, { referrerPolicy: i, crossOrigin: r }) {
188
+ const l = mr(), d = v.useRef(null), u = l ? (d.current || (d.current = new window.Image()), d.current) : null, [p, g] = v.useState(
164
189
  () => Se(u, e)
165
190
  );
166
- return re(() => {
191
+ return ne(() => {
167
192
  g(Se(u, e));
168
- }, [u, e]), re(() => {
193
+ }, [u, e]), ne(() => {
169
194
  const a = (o) => () => {
170
195
  g(o);
171
196
  };
@@ -176,14 +201,14 @@ function pr(e, { referrerPolicy: i, crossOrigin: r }) {
176
201
  };
177
202
  }, [u, r, i]), p;
178
203
  }
179
- var gr = ze, xr = Be, br = Qe;
180
- function _r({
204
+ var _r = ze, br = Be, vr = $e;
205
+ function yr({
181
206
  className: e,
182
207
  size: i = "default",
183
208
  ...r
184
209
  }) {
185
210
  return /* @__PURE__ */ n.jsx(
186
- gr,
211
+ _r,
187
212
  {
188
213
  "data-slot": "avatar",
189
214
  "data-size": i,
@@ -195,12 +220,12 @@ function _r({
195
220
  }
196
221
  );
197
222
  }
198
- function vr({
223
+ function jr({
199
224
  className: e,
200
225
  ...i
201
226
  }) {
202
227
  return /* @__PURE__ */ n.jsx(
203
- xr,
228
+ br,
204
229
  {
205
230
  "data-slot": "avatar-image",
206
231
  className: ce("aspect-square size-full", e),
@@ -208,12 +233,12 @@ function vr({
208
233
  }
209
234
  );
210
235
  }
211
- function yr({
236
+ function Cr({
212
237
  className: e,
213
238
  ...i
214
239
  }) {
215
240
  return /* @__PURE__ */ n.jsx(
216
- br,
241
+ vr,
217
242
  {
218
243
  "data-slot": "avatar-fallback",
219
244
  className: ce(
@@ -224,7 +249,7 @@ function yr({
224
249
  }
225
250
  );
226
251
  }
227
- function jr({
252
+ function wr({
228
253
  control: e,
229
254
  isOpen: i,
230
255
  onSubmit: r,
@@ -241,17 +266,17 @@ function jr({
241
266
  fullName: m,
242
267
  onUploadAvatar: f
243
268
  }) {
244
- const { t: h } = R(), { field: x } = gt({ control: e, name: "avatar_url" }), [N, w] = v.useState(!1), b = v.useRef(null), C = v.useRef(0);
269
+ const { t: h } = R(), { field: x } = gt({ control: e, name: "avatar_url" }), [N, w] = v.useState(!1), _ = v.useRef(null), C = v.useRef(0);
245
270
  v.useEffect(() => {
246
271
  C.current += 1, w(!1);
247
272
  }, [i]);
248
273
  const M = async (j) => {
249
- const $ = j.target.files?.[0];
250
- if (j.target.value = "", !$ || !f) return;
274
+ const Q = j.target.files?.[0];
275
+ if (j.target.value = "", !Q || !f) return;
251
276
  const I = ++C.current;
252
277
  w(!0);
253
278
  try {
254
- const G = await f($);
279
+ const G = await f(Q);
255
280
  G && C.current === I && x.onChange(G);
256
281
  } finally {
257
282
  C.current === I && w(!1);
@@ -284,7 +309,7 @@ function jr({
284
309
  q(), l();
285
310
  };
286
311
  return /* @__PURE__ */ n.jsxs(
287
- Le,
312
+ Ie,
288
313
  {
289
314
  open: i,
290
315
  onOpenChange: (j) => !j && O(),
@@ -318,7 +343,7 @@ function jr({
318
343
  variant: "outline",
319
344
  size: "sm",
320
345
  disabled: N,
321
- onClick: () => b.current?.click(),
346
+ onClick: () => _.current?.click(),
322
347
  children: [
323
348
  N && /* @__PURE__ */ n.jsx("div", { className: "mr-2 size-3.5 animate-spin rounded-full border-2 border-current/30 border-t-current" }),
324
349
  h(N ? "uploading" : "change")
@@ -339,7 +364,7 @@ function jr({
339
364
  /* @__PURE__ */ n.jsx(
340
365
  "input",
341
366
  {
342
- ref: b,
367
+ ref: _,
343
368
  id: "avatar-file-input",
344
369
  "aria-label": h("profile_photo"),
345
370
  type: "file",
@@ -354,7 +379,7 @@ function jr({
354
379
  ] })
355
380
  ] }),
356
381
  /* @__PURE__ */ n.jsx(
357
- J,
382
+ ee,
358
383
  {
359
384
  control: e,
360
385
  name: "first_name",
@@ -366,7 +391,7 @@ function jr({
366
391
  }
367
392
  ),
368
393
  /* @__PURE__ */ n.jsx(
369
- J,
394
+ ee,
370
395
  {
371
396
  control: e,
372
397
  name: "last_name",
@@ -386,7 +411,7 @@ function jr({
386
411
  }
387
412
  ),
388
413
  /* @__PURE__ */ n.jsx(
389
- J,
414
+ ee,
390
415
  {
391
416
  control: e,
392
417
  name: "phone_number",
@@ -419,7 +444,7 @@ function jr({
419
444
  /* @__PURE__ */ n.jsx("label", { className: "text-foreground text-sm font-medium", children: h("email") }),
420
445
  k ? /* @__PURE__ */ n.jsxs("div", { className: "space-y-2", children: [
421
446
  /* @__PURE__ */ n.jsx(
422
- Xt,
447
+ Wt,
423
448
  {
424
449
  type: "email",
425
450
  placeholder: h("enter_new_email_placeholder"),
@@ -492,7 +517,7 @@ function jr({
492
517
  ] })
493
518
  ] }),
494
519
  u && /* @__PURE__ */ n.jsx("p", { className: "text-destructive text-sm", children: u }),
495
- /* @__PURE__ */ n.jsx(Yt, { className: "flex flex-row items-center justify-end", children: /* @__PURE__ */ n.jsx("div", { className: "flex-1 text-right", children: /* @__PURE__ */ n.jsxs(
520
+ /* @__PURE__ */ n.jsx(Xt, { className: "flex flex-row items-center justify-end", children: /* @__PURE__ */ n.jsx("div", { className: "flex-1 text-right", children: /* @__PURE__ */ n.jsxs(
496
521
  E,
497
522
  {
498
523
  type: "button",
@@ -508,20 +533,20 @@ function jr({
508
533
  }
509
534
  );
510
535
  }
511
- var Cr = Object.defineProperty, X = Object.getOwnPropertySymbols, qe = Object.prototype.hasOwnProperty, $e = Object.prototype.propertyIsEnumerable, Ee = (e, i, r) => i in e ? Cr(e, i, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[i] = r, se = (e, i) => {
536
+ var Nr = Object.defineProperty, Z = Object.getOwnPropertySymbols, qe = Object.prototype.hasOwnProperty, Qe = Object.prototype.propertyIsEnumerable, Ee = (e, i, r) => i in e ? Nr(e, i, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[i] = r, ae = (e, i) => {
512
537
  for (var r in i || (i = {}))
513
538
  qe.call(i, r) && Ee(e, r, i[r]);
514
- if (X)
515
- for (var r of X(i))
516
- $e.call(i, r) && Ee(e, r, i[r]);
539
+ if (Z)
540
+ for (var r of Z(i))
541
+ Qe.call(i, r) && Ee(e, r, i[r]);
517
542
  return e;
518
- }, ae = (e, i) => {
543
+ }, ie = (e, i) => {
519
544
  var r = {};
520
545
  for (var l in e)
521
546
  qe.call(e, l) && i.indexOf(l) < 0 && (r[l] = e[l]);
522
- if (e != null && X)
523
- for (var l of X(e))
524
- i.indexOf(l) < 0 && $e.call(e, l) && (r[l] = e[l]);
547
+ if (e != null && Z)
548
+ for (var l of Z(e))
549
+ i.indexOf(l) < 0 && Qe.call(e, l) && (r[l] = e[l]);
525
550
  return r;
526
551
  };
527
552
  /**
@@ -531,14 +556,14 @@ var Cr = Object.defineProperty, X = Object.getOwnPropertySymbols, qe = Object.pr
531
556
  */
532
557
  var U;
533
558
  ((e) => {
534
- const i = class _ {
559
+ const i = class b {
535
560
  /*-- Constructor (low level) and fields --*/
536
561
  // Creates a new QR Code with the given version number,
537
562
  // error correction level, data codeword bytes, and mask number.
538
563
  // This is a low-level API that most users should not use directly.
539
564
  // A mid-level API is the encodeSegments() function.
540
565
  constructor(a, t, s, o) {
541
- if (this.version = a, this.errorCorrectionLevel = t, this.modules = [], this.isFunction = [], a < _.MIN_VERSION || a > _.MAX_VERSION)
566
+ if (this.version = a, this.errorCorrectionLevel = t, this.modules = [], this.isFunction = [], a < b.MIN_VERSION || a > b.MAX_VERSION)
542
567
  throw new RangeError("Version value out of range");
543
568
  if (o < -1 || o > 7)
544
569
  throw new RangeError("Mask value out of range");
@@ -568,7 +593,7 @@ var U;
568
593
  // ecl argument if it can be done without increasing the version.
569
594
  static encodeText(a, t) {
570
595
  const s = e.QrSegment.makeSegments(a);
571
- return _.encodeSegments(s, t);
596
+ return b.encodeSegments(s, t);
572
597
  }
573
598
  // Returns a QR Code representing the given binary data at the given error correction level.
574
599
  // This function always encodes using the binary segment mode, not any text mode. The maximum number of
@@ -576,7 +601,7 @@ var U;
576
601
  // The ECC level of the result may be higher than the ecl argument if it can be done without increasing the version.
577
602
  static encodeBinary(a, t) {
578
603
  const s = e.QrSegment.makeBytes(a);
579
- return _.encodeSegments([s], t);
604
+ return b.encodeSegments([s], t);
580
605
  }
581
606
  /*-- Static factory functions (mid level) --*/
582
607
  // Returns a QR Code representing the given segments with the given encoding parameters.
@@ -589,35 +614,35 @@ var U;
589
614
  // between modes (such as alphanumeric and byte) to encode text in less space.
590
615
  // This is a mid-level API; the high-level API is encodeText() and encodeBinary().
591
616
  static encodeSegments(a, t, s = 1, o = 40, c = -1, m = !0) {
592
- if (!(_.MIN_VERSION <= s && s <= o && o <= _.MAX_VERSION) || c < -1 || c > 7)
617
+ if (!(b.MIN_VERSION <= s && s <= o && o <= b.MAX_VERSION) || c < -1 || c > 7)
593
618
  throw new RangeError("Invalid value");
594
619
  let f, h;
595
620
  for (f = s; ; f++) {
596
- const b = _.getNumDataCodewords(f, t) * 8, C = p.getTotalBits(a, f);
597
- if (C <= b) {
621
+ const _ = b.getNumDataCodewords(f, t) * 8, C = p.getTotalBits(a, f);
622
+ if (C <= _) {
598
623
  h = C;
599
624
  break;
600
625
  }
601
626
  if (f >= o)
602
627
  throw new RangeError("Data too long");
603
628
  }
604
- for (const b of [_.Ecc.MEDIUM, _.Ecc.QUARTILE, _.Ecc.HIGH])
605
- m && h <= _.getNumDataCodewords(f, b) * 8 && (t = b);
629
+ for (const _ of [b.Ecc.MEDIUM, b.Ecc.QUARTILE, b.Ecc.HIGH])
630
+ m && h <= b.getNumDataCodewords(f, _) * 8 && (t = _);
606
631
  let x = [];
607
- for (const b of a) {
608
- r(b.mode.modeBits, 4, x), r(b.numChars, b.mode.numCharCountBits(f), x);
609
- for (const C of b.getData())
632
+ for (const _ of a) {
633
+ r(_.mode.modeBits, 4, x), r(_.numChars, _.mode.numCharCountBits(f), x);
634
+ for (const C of _.getData())
610
635
  x.push(C);
611
636
  }
612
637
  d(x.length == h);
613
- const N = _.getNumDataCodewords(f, t) * 8;
638
+ const N = b.getNumDataCodewords(f, t) * 8;
614
639
  d(x.length <= N), r(0, Math.min(4, N - x.length), x), r(0, (8 - x.length % 8) % 8, x), d(x.length % 8 == 0);
615
- for (let b = 236; x.length < N; b ^= 253)
616
- r(b, 8, x);
640
+ for (let _ = 236; x.length < N; _ ^= 253)
641
+ r(_, 8, x);
617
642
  let w = [];
618
643
  for (; w.length * 8 < x.length; )
619
644
  w.push(0);
620
- return x.forEach((b, C) => w[C >>> 3] |= b << 7 - (C & 7)), new _(f, t, w, c);
645
+ return x.forEach((_, C) => w[C >>> 3] |= _ << 7 - (C & 7)), new b(f, t, w, c);
621
646
  }
622
647
  /*-- Accessor methods --*/
623
648
  // Returns the color of the module (pixel) at the given coordinates, which is false
@@ -703,28 +728,28 @@ var U;
703
728
  // codewords appended to it, based on this object's version and error correction level.
704
729
  addEccAndInterleave(a) {
705
730
  const t = this.version, s = this.errorCorrectionLevel;
706
- if (a.length != _.getNumDataCodewords(t, s))
731
+ if (a.length != b.getNumDataCodewords(t, s))
707
732
  throw new RangeError("Invalid argument");
708
- const o = _.NUM_ERROR_CORRECTION_BLOCKS[s.ordinal][t], c = _.ECC_CODEWORDS_PER_BLOCK[s.ordinal][t], m = Math.floor(_.getNumRawDataModules(t) / 8), f = o - m % o, h = Math.floor(m / o);
733
+ const o = b.NUM_ERROR_CORRECTION_BLOCKS[s.ordinal][t], c = b.ECC_CODEWORDS_PER_BLOCK[s.ordinal][t], m = Math.floor(b.getNumRawDataModules(t) / 8), f = o - m % o, h = Math.floor(m / o);
709
734
  let x = [];
710
- const N = _.reedSolomonComputeDivisor(c);
711
- for (let b = 0, C = 0; b < o; b++) {
712
- let M = a.slice(C, C + h - c + (b < f ? 0 : 1));
735
+ const N = b.reedSolomonComputeDivisor(c);
736
+ for (let _ = 0, C = 0; _ < o; _++) {
737
+ let M = a.slice(C, C + h - c + (_ < f ? 0 : 1));
713
738
  C += M.length;
714
- const k = _.reedSolomonComputeRemainder(M, N);
715
- b < f && M.push(0), x.push(M.concat(k));
739
+ const k = b.reedSolomonComputeRemainder(M, N);
740
+ _ < f && M.push(0), x.push(M.concat(k));
716
741
  }
717
742
  let w = [];
718
- for (let b = 0; b < x[0].length; b++)
743
+ for (let _ = 0; _ < x[0].length; _++)
719
744
  x.forEach((C, M) => {
720
- (b != h - c || M >= f) && w.push(C[b]);
745
+ (_ != h - c || M >= f) && w.push(C[_]);
721
746
  });
722
747
  return d(w.length == m), w;
723
748
  }
724
749
  // Draws the given sequence of 8-bit codewords (data and error correction) onto the entire
725
750
  // data area of this QR Code. Function modules need to be marked off before this is called.
726
751
  drawCodewords(a) {
727
- if (a.length != Math.floor(_.getNumRawDataModules(this.version) / 8))
752
+ if (a.length != Math.floor(b.getNumRawDataModules(this.version) / 8))
728
753
  throw new RangeError("Invalid argument");
729
754
  let t = 0;
730
755
  for (let s = this.size - 1; s >= 1; s -= 2) {
@@ -786,25 +811,25 @@ var U;
786
811
  for (let c = 0; c < this.size; c++) {
787
812
  let m = !1, f = 0, h = [0, 0, 0, 0, 0, 0, 0];
788
813
  for (let x = 0; x < this.size; x++)
789
- this.modules[c][x] == m ? (f++, f == 5 ? a += _.PENALTY_N1 : f > 5 && a++) : (this.finderPenaltyAddHistory(f, h), m || (a += this.finderPenaltyCountPatterns(h) * _.PENALTY_N3), m = this.modules[c][x], f = 1);
790
- a += this.finderPenaltyTerminateAndCount(m, f, h) * _.PENALTY_N3;
814
+ this.modules[c][x] == m ? (f++, f == 5 ? a += b.PENALTY_N1 : f > 5 && a++) : (this.finderPenaltyAddHistory(f, h), m || (a += this.finderPenaltyCountPatterns(h) * b.PENALTY_N3), m = this.modules[c][x], f = 1);
815
+ a += this.finderPenaltyTerminateAndCount(m, f, h) * b.PENALTY_N3;
791
816
  }
792
817
  for (let c = 0; c < this.size; c++) {
793
818
  let m = !1, f = 0, h = [0, 0, 0, 0, 0, 0, 0];
794
819
  for (let x = 0; x < this.size; x++)
795
- this.modules[x][c] == m ? (f++, f == 5 ? a += _.PENALTY_N1 : f > 5 && a++) : (this.finderPenaltyAddHistory(f, h), m || (a += this.finderPenaltyCountPatterns(h) * _.PENALTY_N3), m = this.modules[x][c], f = 1);
796
- a += this.finderPenaltyTerminateAndCount(m, f, h) * _.PENALTY_N3;
820
+ this.modules[x][c] == m ? (f++, f == 5 ? a += b.PENALTY_N1 : f > 5 && a++) : (this.finderPenaltyAddHistory(f, h), m || (a += this.finderPenaltyCountPatterns(h) * b.PENALTY_N3), m = this.modules[x][c], f = 1);
821
+ a += this.finderPenaltyTerminateAndCount(m, f, h) * b.PENALTY_N3;
797
822
  }
798
823
  for (let c = 0; c < this.size - 1; c++)
799
824
  for (let m = 0; m < this.size - 1; m++) {
800
825
  const f = this.modules[c][m];
801
- f == this.modules[c][m + 1] && f == this.modules[c + 1][m] && f == this.modules[c + 1][m + 1] && (a += _.PENALTY_N2);
826
+ f == this.modules[c][m + 1] && f == this.modules[c + 1][m] && f == this.modules[c + 1][m + 1] && (a += b.PENALTY_N2);
802
827
  }
803
828
  let t = 0;
804
829
  for (const c of this.modules)
805
830
  t = c.reduce((m, f) => m + (f ? 1 : 0), t);
806
831
  const s = this.size * this.size, o = Math.ceil(Math.abs(t * 20 - s * 10) / s) - 1;
807
- return d(0 <= o && o <= 9), a += o * _.PENALTY_N4, d(0 <= a && a <= 2568888), a;
832
+ return d(0 <= o && o <= 9), a += o * b.PENALTY_N4, d(0 <= a && a <= 2568888), a;
808
833
  }
809
834
  /*-- Private helper functions --*/
810
835
  // Returns an ascending list of positions of alignment patterns for this version number.
@@ -825,7 +850,7 @@ var U;
825
850
  // all function modules are excluded. This includes remainder bits, so it might not be a multiple of 8.
826
851
  // The result is in the range [208, 29648]. This could be implemented as a 40-entry lookup table.
827
852
  static getNumRawDataModules(a) {
828
- if (a < _.MIN_VERSION || a > _.MAX_VERSION)
853
+ if (a < b.MIN_VERSION || a > b.MAX_VERSION)
829
854
  throw new RangeError("Version number out of range");
830
855
  let t = (16 * a + 128) * a + 64;
831
856
  if (a >= 2) {
@@ -838,7 +863,7 @@ var U;
838
863
  // QR Code of the given version number and error correction level, with remainder bits discarded.
839
864
  // This stateless pure function could be implemented as a (40*4)-cell lookup table.
840
865
  static getNumDataCodewords(a, t) {
841
- return Math.floor(_.getNumRawDataModules(a) / 8) - _.ECC_CODEWORDS_PER_BLOCK[t.ordinal][a] * _.NUM_ERROR_CORRECTION_BLOCKS[t.ordinal][a];
866
+ return Math.floor(b.getNumRawDataModules(a) / 8) - b.ECC_CODEWORDS_PER_BLOCK[t.ordinal][a] * b.NUM_ERROR_CORRECTION_BLOCKS[t.ordinal][a];
842
867
  }
843
868
  // Returns a Reed-Solomon ECC generator polynomial for the given degree. This could be
844
869
  // implemented as a lookup table over all possible parameter values, instead of as an algorithm.
@@ -852,8 +877,8 @@ var U;
852
877
  let s = 1;
853
878
  for (let o = 0; o < a; o++) {
854
879
  for (let c = 0; c < t.length; c++)
855
- t[c] = _.reedSolomonMultiply(t[c], s), c + 1 < t.length && (t[c] ^= t[c + 1]);
856
- s = _.reedSolomonMultiply(s, 2);
880
+ t[c] = b.reedSolomonMultiply(t[c], s), c + 1 < t.length && (t[c] ^= t[c + 1]);
881
+ s = b.reedSolomonMultiply(s, 2);
857
882
  }
858
883
  return t;
859
884
  }
@@ -862,7 +887,7 @@ var U;
862
887
  let s = t.map((o) => 0);
863
888
  for (const o of a) {
864
889
  const c = o ^ s.shift();
865
- s.push(0), t.forEach((m, f) => s[f] ^= _.reedSolomonMultiply(m, c));
890
+ s.push(0), t.forEach((m, f) => s[f] ^= b.reedSolomonMultiply(m, c));
866
891
  }
867
892
  return s;
868
893
  }
@@ -1070,13 +1095,13 @@ var V = U;
1070
1095
  * Copyright (c) Paul O'Shannessy
1071
1096
  * SPDX-License-Identifier: ISC
1072
1097
  */
1073
- var wr = {
1098
+ var Sr = {
1074
1099
  L: V.QrCode.Ecc.LOW,
1075
1100
  M: V.QrCode.Ecc.MEDIUM,
1076
1101
  Q: V.QrCode.Ecc.QUARTILE,
1077
1102
  H: V.QrCode.Ecc.HIGH
1078
- }, Ve = 128, He = "L", Ke = "#FFFFFF", Ge = "#000000", Ye = !1, We = 1, Nr = 4, Sr = 0, Er = 0.1;
1079
- function Xe(e, i = 0) {
1103
+ }, Ve = 128, He = "L", Ke = "#FFFFFF", Ge = "#000000", Ye = !1, Xe = 1, Er = 4, Pr = 0, Ar = 0.1;
1104
+ function We(e, i = 0) {
1080
1105
  const r = [];
1081
1106
  return e.forEach(function(l, d) {
1082
1107
  let u = null;
@@ -1102,10 +1127,10 @@ function Xe(e, i = 0) {
1102
1127
  function Ze(e, i) {
1103
1128
  return e.slice().map((r, l) => l < i.y || l >= i.y + i.h ? r : r.map((d, u) => u < i.x || u >= i.x + i.w ? d : !1));
1104
1129
  }
1105
- function Pr(e, i, r, l) {
1130
+ function Mr(e, i, r, l) {
1106
1131
  if (l == null)
1107
1132
  return null;
1108
- const d = e.length + r * 2, u = Math.floor(i * Er), p = d / i, g = (l.width || u) * p, a = (l.height || u) * p, t = l.x == null ? e.length / 2 - g / 2 : l.x * p, s = l.y == null ? e.length / 2 - a / 2 : l.y * p, o = l.opacity == null ? 1 : l.opacity;
1133
+ const d = e.length + r * 2, u = Math.floor(i * Ar), p = d / i, g = (l.width || u) * p, a = (l.height || u) * p, t = l.x == null ? e.length / 2 - g / 2 : l.x * p, s = l.y == null ? e.length / 2 - a / 2 : l.y * p, o = l.opacity == null ? 1 : l.opacity;
1109
1134
  let c = null;
1110
1135
  if (l.excavate) {
1111
1136
  let f = Math.floor(t), h = Math.floor(s), x = Math.ceil(g + t - f), N = Math.ceil(a + s - h);
@@ -1114,8 +1139,8 @@ function Pr(e, i, r, l) {
1114
1139
  const m = l.crossOrigin;
1115
1140
  return { x: t, y: s, h: a, w: g, excavation: c, opacity: o, crossOrigin: m };
1116
1141
  }
1117
- function Ar(e, i) {
1118
- return i != null ? Math.max(Math.floor(i), 0) : e ? Nr : Sr;
1142
+ function Rr(e, i) {
1143
+ return i != null ? Math.max(Math.floor(i), 0) : e ? Er : Pr;
1119
1144
  }
1120
1145
  function Je({
1121
1146
  value: e,
@@ -1131,7 +1156,7 @@ function Je({
1131
1156
  const f = (Array.isArray(e) ? e : [e]).reduce((h, x) => (h.push(...V.QrSegment.makeSegments(x)), h), []);
1132
1157
  return V.QrCode.encodeSegments(
1133
1158
  f,
1134
- wr[i],
1159
+ Sr[i],
1135
1160
  r,
1136
1161
  void 0,
1137
1162
  void 0,
@@ -1140,7 +1165,7 @@ function Je({
1140
1165
  }, [e, i, r, g]);
1141
1166
  const { cells: t, margin: s, numCells: o, calculatedImageSettings: c } = A.useMemo(() => {
1142
1167
  let m = a.getModules();
1143
- const f = Ar(l, d), h = m.length + f * 2, x = Pr(
1168
+ const f = Rr(l, d), h = m.length + f * 2, x = Mr(
1144
1169
  m,
1145
1170
  p,
1146
1171
  f,
@@ -1161,14 +1186,14 @@ function Je({
1161
1186
  calculatedImageSettings: c
1162
1187
  };
1163
1188
  }
1164
- var Mr = (function() {
1189
+ var Fr = (function() {
1165
1190
  try {
1166
1191
  new Path2D().addPath(new Path2D());
1167
1192
  } catch {
1168
1193
  return !1;
1169
1194
  }
1170
1195
  return !0;
1171
- })(), Rr = A.forwardRef(
1196
+ })(), Ir = A.forwardRef(
1172
1197
  function(i, r) {
1173
1198
  const l = i, {
1174
1199
  value: d,
@@ -1177,11 +1202,11 @@ var Mr = (function() {
1177
1202
  bgColor: g = Ke,
1178
1203
  fgColor: a = Ge,
1179
1204
  includeMargin: t = Ye,
1180
- minVersion: s = We,
1205
+ minVersion: s = Xe,
1181
1206
  boostLevel: o,
1182
1207
  marginSize: c,
1183
1208
  imageSettings: m
1184
- } = l, h = ae(l, [
1209
+ } = l, h = ie(l, [
1185
1210
  "value",
1186
1211
  "size",
1187
1212
  "level",
@@ -1192,9 +1217,9 @@ var Mr = (function() {
1192
1217
  "boostLevel",
1193
1218
  "marginSize",
1194
1219
  "imageSettings"
1195
- ]), { style: x } = h, N = ae(h, ["style"]), w = m?.src, b = A.useRef(null), C = A.useRef(null), M = A.useCallback(
1220
+ ]), { style: x } = h, N = ie(h, ["style"]), w = m?.src, _ = A.useRef(null), C = A.useRef(null), M = A.useCallback(
1196
1221
  (O) => {
1197
- b.current = O, typeof r == "function" ? r(O) : r && (r.current = O);
1222
+ _.current = O, typeof r == "function" ? r(O) : r && (r.current = O);
1198
1223
  },
1199
1224
  [r]
1200
1225
  ), [k, z] = A.useState(!1), { margin: F, cells: y, numCells: D, calculatedImageSettings: P } = Je({
@@ -1208,20 +1233,20 @@ var Mr = (function() {
1208
1233
  size: u
1209
1234
  });
1210
1235
  A.useEffect(() => {
1211
- if (b.current != null) {
1212
- const O = b.current, j = O.getContext("2d");
1236
+ if (_.current != null) {
1237
+ const O = _.current, j = O.getContext("2d");
1213
1238
  if (!j)
1214
1239
  return;
1215
- let $ = y;
1240
+ let Q = y;
1216
1241
  const I = C.current, G = P != null && I !== null && I.complete && I.naturalHeight !== 0 && I.naturalWidth !== 0;
1217
- G && P.excavation != null && ($ = Ze(
1242
+ G && P.excavation != null && (Q = Ze(
1218
1243
  y,
1219
1244
  P.excavation
1220
1245
  ));
1221
1246
  const ve = window.devicePixelRatio || 1;
1222
1247
  O.height = O.width = u * ve;
1223
1248
  const ye = u / D * ve;
1224
- j.scale(ye, ye), j.fillStyle = g, j.fillRect(0, 0, D, D), j.fillStyle = a, Mr ? j.fill(new Path2D(Xe($, F))) : y.forEach(function(ct, dt) {
1249
+ j.scale(ye, ye), j.fillStyle = g, j.fillRect(0, 0, D, D), j.fillStyle = a, Fr ? j.fill(new Path2D(We(Q, F))) : y.forEach(function(ct, dt) {
1225
1250
  ct.forEach(function(ut, ft) {
1226
1251
  ut && j.fillRect(ft + F, dt + F, 1, 1);
1227
1252
  });
@@ -1236,7 +1261,7 @@ var Mr = (function() {
1236
1261
  }), A.useEffect(() => {
1237
1262
  z(!1);
1238
1263
  }, [w]);
1239
- const W = se({ height: u, width: u }, x);
1264
+ const W = ae({ height: u, width: u }, x);
1240
1265
  let q = null;
1241
1266
  return w != null && (q = /* @__PURE__ */ A.createElement(
1242
1267
  "img",
@@ -1252,7 +1277,7 @@ var Mr = (function() {
1252
1277
  }
1253
1278
  )), /* @__PURE__ */ A.createElement(A.Fragment, null, /* @__PURE__ */ A.createElement(
1254
1279
  "canvas",
1255
- se({
1280
+ ae({
1256
1281
  style: W,
1257
1282
  height: u,
1258
1283
  width: u,
@@ -1262,7 +1287,7 @@ var Mr = (function() {
1262
1287
  ), q);
1263
1288
  }
1264
1289
  );
1265
- Rr.displayName = "QRCodeCanvas";
1290
+ Ir.displayName = "QRCodeCanvas";
1266
1291
  var et = A.forwardRef(
1267
1292
  function(i, r) {
1268
1293
  const l = i, {
@@ -1272,12 +1297,12 @@ var et = A.forwardRef(
1272
1297
  bgColor: g = Ke,
1273
1298
  fgColor: a = Ge,
1274
1299
  includeMargin: t = Ye,
1275
- minVersion: s = We,
1300
+ minVersion: s = Xe,
1276
1301
  boostLevel: o,
1277
1302
  title: c,
1278
1303
  marginSize: m,
1279
1304
  imageSettings: f
1280
- } = l, h = ae(l, [
1305
+ } = l, h = ie(l, [
1281
1306
  "value",
1282
1307
  "size",
1283
1308
  "level",
@@ -1289,7 +1314,7 @@ var et = A.forwardRef(
1289
1314
  "title",
1290
1315
  "marginSize",
1291
1316
  "imageSettings"
1292
- ]), { margin: x, cells: N, numCells: w, calculatedImageSettings: b } = Je({
1317
+ ]), { margin: x, cells: N, numCells: w, calculatedImageSettings: _ } = Je({
1293
1318
  value: d,
1294
1319
  level: p,
1295
1320
  minVersion: s,
@@ -1300,26 +1325,26 @@ var et = A.forwardRef(
1300
1325
  size: u
1301
1326
  });
1302
1327
  let C = N, M = null;
1303
- f != null && b != null && (b.excavation != null && (C = Ze(
1328
+ f != null && _ != null && (_.excavation != null && (C = Ze(
1304
1329
  N,
1305
- b.excavation
1330
+ _.excavation
1306
1331
  )), M = /* @__PURE__ */ A.createElement(
1307
1332
  "image",
1308
1333
  {
1309
1334
  href: f.src,
1310
- height: b.h,
1311
- width: b.w,
1312
- x: b.x + x,
1313
- y: b.y + x,
1335
+ height: _.h,
1336
+ width: _.w,
1337
+ x: _.x + x,
1338
+ y: _.y + x,
1314
1339
  preserveAspectRatio: "none",
1315
- opacity: b.opacity,
1316
- crossOrigin: b.crossOrigin
1340
+ opacity: _.opacity,
1341
+ crossOrigin: _.crossOrigin
1317
1342
  }
1318
1343
  ));
1319
- const k = Xe(C, x);
1344
+ const k = We(C, x);
1320
1345
  return /* @__PURE__ */ A.createElement(
1321
1346
  "svg",
1322
- se({
1347
+ ae({
1323
1348
  height: u,
1324
1349
  width: u,
1325
1350
  viewBox: `0 0 ${w} ${w}`,
@@ -1341,10 +1366,10 @@ var et = A.forwardRef(
1341
1366
  }
1342
1367
  );
1343
1368
  et.displayName = "QRCodeSVG";
1344
- function Fr(e, i) {
1369
+ function Lr(e, i) {
1345
1370
  ue({ title: e, type: i });
1346
1371
  }
1347
- function Ir({
1372
+ function kr({
1348
1373
  onToast: e,
1349
1374
  /* eslint-disable @typescript-eslint/no-unused-vars -- destructured to exclude from divProps spread */
1350
1375
  background: i,
@@ -1355,7 +1380,7 @@ function Ir({
1355
1380
  /* eslint-enable @typescript-eslint/no-unused-vars */
1356
1381
  ...p
1357
1382
  }) {
1358
- const { currentSlug: g } = de(), a = e ?? Fr, t = g.split("/")[1], s = t !== void 0, { data: o } = Ae(), c = o?.id, m = o === void 0;
1383
+ const { currentSlug: g } = de(), a = e ?? Lr, t = g.split("/")[1], s = t !== void 0, { data: o } = Ae(), c = o?.id, m = o === void 0;
1359
1384
  return /* @__PURE__ */ n.jsx("div", { ...p, children: /* @__PURE__ */ n.jsx(Ft, { children: /* @__PURE__ */ n.jsx(It, { children: /* @__PURE__ */ n.jsx(Lt, { children: s ? /* @__PURE__ */ n.jsx(
1360
1385
  kt,
1361
1386
  {
@@ -1371,17 +1396,17 @@ function Ir({
1371
1396
  }
1372
1397
  ) }) }) }) });
1373
1398
  }
1374
- const ie = "profile/", Lr = /* @__PURE__ */ new Set(["orders", "subscriptions"]);
1399
+ const oe = "profile/", Dr = /* @__PURE__ */ new Set(["orders", "subscriptions"]);
1375
1400
  function Pe(e) {
1376
- return e.startsWith(ie) ? e.slice(ie.length) : e;
1401
+ return e.startsWith(oe) ? e.slice(oe.length) : e;
1377
1402
  }
1378
- function kr({
1403
+ function Or({
1379
1404
  children: e
1380
1405
  }) {
1381
1406
  const { currentSlug: i, previousSlug: r, navigate: l } = de();
1382
1407
  function d(u) {
1383
1408
  const p = u.split("/")[0] ?? "";
1384
- l(Lr.has(p) ? `${ie}${u}` : u);
1409
+ l(Dr.has(p) ? `${oe}${u}` : u);
1385
1410
  }
1386
1411
  return /* @__PURE__ */ n.jsx(
1387
1412
  xt,
@@ -1397,8 +1422,8 @@ function kr({
1397
1422
  }
1398
1423
  function tt() {
1399
1424
  const e = St();
1400
- return Q({
1401
- queryKey: _t.languages(),
1425
+ return $({
1426
+ queryKey: bt.languages(),
1402
1427
  queryFn: async () => {
1403
1428
  const i = [];
1404
1429
  let r;
@@ -1417,7 +1442,7 @@ function tt() {
1417
1442
  });
1418
1443
  }
1419
1444
  function rt() {
1420
- const e = bt(), i = H(), { setLocale: r } = T();
1445
+ const e = _t(), i = H(), { setLocale: r } = T();
1421
1446
  return K({
1422
1447
  mutationFn: (l) => e.updateAccount({ account: l }),
1423
1448
  onSuccess: (l, d) => {
@@ -1425,12 +1450,12 @@ function rt() {
1425
1450
  }
1426
1451
  });
1427
1452
  }
1428
- function Dr({
1453
+ function zr({
1429
1454
  account: e,
1430
1455
  onClose: i
1431
1456
  }) {
1432
- const { t: r } = R(), { isMobile: l } = Y(), d = me(), u = tt(), p = rt(), g = d.data?.allow_name_edit === !1, a = Wt(
1433
- ne({
1457
+ const { t: r } = R(), { isMobile: l } = X(), d = me(), u = tt(), p = rt(), g = d.data?.allow_name_edit === !1, a = Yt(
1458
+ se({
1434
1459
  first_name: g ? L() : L().min(1, r("first_name_is_required")),
1435
1460
  last_name: g ? L() : L().min(1, r("last_name_is_required")),
1436
1461
  phone_number: L().optional(),
@@ -1461,7 +1486,7 @@ function Dr({
1461
1486
  }
1462
1487
  });
1463
1488
  return /* @__PURE__ */ n.jsx(
1464
- jr,
1489
+ wr,
1465
1490
  {
1466
1491
  control: a.control,
1467
1492
  isOpen: !0,
@@ -1486,20 +1511,20 @@ function Dr({
1486
1511
  const pe = ["memberStorefront", "profile", "addresses"];
1487
1512
  function ge() {
1488
1513
  const e = B();
1489
- return Q({
1514
+ return $({
1490
1515
  queryKey: pe,
1491
1516
  queryFn: () => e.fetchAddresses()
1492
1517
  });
1493
1518
  }
1494
1519
  function nt(e) {
1495
1520
  const i = Zt(), { locale: r } = T();
1496
- return Q({
1521
+ return $({
1497
1522
  queryKey: ["memberStorefront", "profile", "countries", r],
1498
1523
  queryFn: () => i.listCountries({ languageIso: r }),
1499
1524
  enabled: e
1500
1525
  });
1501
1526
  }
1502
- function Or() {
1527
+ function Tr() {
1503
1528
  const e = B(), i = H();
1504
1529
  return K({
1505
1530
  mutationFn: async ({
@@ -1512,7 +1537,7 @@ function Or() {
1512
1537
  onSuccess: () => i.invalidateQueries({ queryKey: pe })
1513
1538
  });
1514
1539
  }
1515
- function zr() {
1540
+ function Br() {
1516
1541
  const e = B(), i = H();
1517
1542
  return K({
1518
1543
  mutationFn: (r) => e.deleteAddress(r),
@@ -1540,7 +1565,7 @@ function st({
1540
1565
  selectedAddress: r,
1541
1566
  onAddressCreated: l
1542
1567
  }) {
1543
- const { t: d } = R(), { isMobile: u } = Y(), { locale: p } = T(), g = nt(e), a = ge(), t = Or(), s = v.useCallback(
1568
+ const { t: d } = R(), { isMobile: u } = X(), { locale: p } = T(), g = nt(e), a = ge(), t = Tr(), s = v.useCallback(
1544
1569
  (o) => Promise.resolve(
1545
1570
  g.data?.countries.find((c) => c.code === o)?.states.map((c) => ({
1546
1571
  name: c.name,
@@ -1601,8 +1626,8 @@ function st({
1601
1626
  }
1602
1627
  );
1603
1628
  }
1604
- function Tr() {
1605
- const { t: e } = R(), i = ge(), r = zr(), l = v.useRef(null), [d, u] = v.useState(), [p, g] = v.useState(null);
1629
+ function Ur() {
1630
+ const { t: e } = R(), i = ge(), r = Br(), l = v.useRef(null), [d, u] = v.useState(), [p, g] = v.useState(null);
1606
1631
  if (i.error) throw i.error;
1607
1632
  function a() {
1608
1633
  requestAnimationFrame(() => l.current?.focus());
@@ -1627,7 +1652,7 @@ function Tr() {
1627
1652
  /* @__PURE__ */ n.jsxs("div", { className: "space-y-1 text-sm", children: [
1628
1653
  /* @__PURE__ */ n.jsxs("div", { className: "flex items-center justify-between gap-3", children: [
1629
1654
  /* @__PURE__ */ n.jsx("p", { className: "font-medium", children: t.name }),
1630
- t.default && /* @__PURE__ */ n.jsx(Ie, { variant: "secondary", children: e("default") })
1655
+ t.default && /* @__PURE__ */ n.jsx(Le, { variant: "secondary", children: e("default") })
1631
1656
  ] }),
1632
1657
  /* @__PURE__ */ n.jsx("p", { children: t.street1 }),
1633
1658
  t.street2 && /* @__PURE__ */ n.jsx("p", { children: t.street2 }),
@@ -1698,7 +1723,7 @@ function Tr() {
1698
1723
  }
1699
1724
  function at() {
1700
1725
  const e = B();
1701
- return Q({
1726
+ return $({
1702
1727
  queryKey: ["memberStorefront", "profile", "points"],
1703
1728
  queryFn: async () => {
1704
1729
  try {
@@ -1711,7 +1736,7 @@ function at() {
1711
1736
  }
1712
1737
  });
1713
1738
  }
1714
- function Br() {
1739
+ function $r() {
1715
1740
  const { t: e } = R(), { locale: i } = T(), r = at(), l = me();
1716
1741
  if (r.error) throw r.error;
1717
1742
  if (r.isPending || !l.data)
@@ -1756,7 +1781,7 @@ function Br() {
1756
1781
  ] })
1757
1782
  ] });
1758
1783
  }
1759
- function Ur({
1784
+ function qr({
1760
1785
  children: e
1761
1786
  }) {
1762
1787
  const i = v.useRef(null), [r, l] = v.useState(null);
@@ -1775,15 +1800,15 @@ function Ur({
1775
1800
  function Qr({
1776
1801
  onClose: e
1777
1802
  }) {
1778
- const i = ge(), { t: r } = R(), { isMobile: l } = Y();
1779
- return /* @__PURE__ */ n.jsx(Ur, { children: i.data ? /* @__PURE__ */ n.jsx(
1780
- qr,
1803
+ const i = ge(), { t: r } = R(), { isMobile: l } = X();
1804
+ return /* @__PURE__ */ n.jsx(qr, { children: i.data ? /* @__PURE__ */ n.jsx(
1805
+ Vr,
1781
1806
  {
1782
1807
  initialAddresses: i.data.addresses,
1783
1808
  onClose: e
1784
1809
  }
1785
1810
  ) : /* @__PURE__ */ n.jsxs(
1786
- Le,
1811
+ Ie,
1787
1812
  {
1788
1813
  open: !0,
1789
1814
  onOpenChange: (d) => {
@@ -1807,15 +1832,15 @@ function Qr({
1807
1832
  }
1808
1833
  ) });
1809
1834
  }
1810
- function qr({
1835
+ function Vr({
1811
1836
  initialAddresses: e,
1812
1837
  onClose: i
1813
1838
  }) {
1814
- const { t: r } = R(), { isMobile: l } = Y(), d = B(), u = H(), [p, g] = v.useState(), a = v.useMemo(() => Tt(d), [d]), [t] = v.useState(
1839
+ const { t: r } = R(), { isMobile: l } = X(), d = B(), u = H(), [p, g] = v.useState(), a = v.useMemo(() => Tt(d), [d]), [t] = v.useState(
1815
1840
  () => e.map(xe)
1816
1841
  );
1817
1842
  async function s() {
1818
- await u.invalidateQueries({ queryKey: Z.paymentMethods.all }), i();
1843
+ await u.invalidateQueries({ queryKey: J.paymentMethods.all }), i();
1819
1844
  }
1820
1845
  const o = Bt({
1821
1846
  payApi: d,
@@ -1833,14 +1858,14 @@ function qr({
1833
1858
  default: m.set_as_default
1834
1859
  },
1835
1860
  billing_address_id: m.billing_address_id,
1836
- browser_info: Qt()
1861
+ browser_info: $t()
1837
1862
  }),
1838
1863
  onSuccess: async (m) => {
1839
1864
  Ut(m) ? await o.begin(m) : await s();
1840
1865
  },
1841
1866
  onError: () => g(r("failed_to_add_payment_method"))
1842
1867
  });
1843
- return /* @__PURE__ */ n.jsxs($t, { api: a, children: [
1868
+ return /* @__PURE__ */ n.jsxs(Qt, { api: a, children: [
1844
1869
  /* @__PURE__ */ n.jsx(
1845
1870
  Vt,
1846
1871
  {
@@ -1879,8 +1904,8 @@ function qr({
1879
1904
  }
1880
1905
  function it() {
1881
1906
  const e = B();
1882
- return Q({
1883
- queryKey: Z.paymentMethods.list(),
1907
+ return $({
1908
+ queryKey: J.paymentMethods.list(),
1884
1909
  queryFn: () => e.fetchPaymentMethods()
1885
1910
  });
1886
1911
  }
@@ -1888,21 +1913,21 @@ function ot() {
1888
1913
  const e = B(), i = H();
1889
1914
  return K({
1890
1915
  mutationFn: ({ id: r, body: l }) => e.updatePaymentMethod(r, l),
1891
- onSuccess: () => i.invalidateQueries({ queryKey: Z.paymentMethods.all })
1916
+ onSuccess: () => i.invalidateQueries({ queryKey: J.paymentMethods.all })
1892
1917
  });
1893
1918
  }
1894
- function $r() {
1919
+ function Hr() {
1895
1920
  const e = B(), i = H();
1896
1921
  return K({
1897
1922
  mutationFn: (r) => e.deletePaymentMethod(r),
1898
- onSuccess: () => i.invalidateQueries({ queryKey: Z.paymentMethods.all })
1923
+ onSuccess: () => i.invalidateQueries({ queryKey: J.paymentMethods.all })
1899
1924
  });
1900
1925
  }
1901
- function Vr({
1926
+ function Kr({
1902
1927
  card: e,
1903
1928
  onClose: i
1904
1929
  }) {
1905
- const { t: r } = R(), { locale: l } = T(), { isMobile: d } = Y(), u = nt(!0), p = ot(), g = v.useMemo(() => Ht(e), [e]), a = v.useCallback(
1930
+ const { t: r } = R(), { locale: l } = T(), { isMobile: d } = X(), u = nt(!0), p = ot(), g = v.useMemo(() => Ht(e), [e]), a = v.useCallback(
1906
1931
  (t) => Promise.resolve(
1907
1932
  u.data?.countries.find((s) => s.code === t)?.states.map((s) => ({
1908
1933
  name: s.name,
@@ -1957,8 +1982,8 @@ function Vr({
1957
1982
  }
1958
1983
  );
1959
1984
  }
1960
- function Hr() {
1961
- const { t: e } = R(), { preview: i } = fe(), r = it(), l = ot(), d = $r(), u = v.useRef(null), p = v.useRef(null), [g, a] = v.useState(!1), [t, s] = v.useState(null), [o, c] = v.useState(null);
1985
+ function Gr() {
1986
+ const { t: e } = R(), { preview: i } = fe(), r = it(), l = ot(), d = Hr(), u = v.useRef(null), p = v.useRef(null), [g, a] = v.useState(!1), [t, s] = v.useState(null), [o, c] = v.useState(null);
1962
1987
  function m() {
1963
1988
  requestAnimationFrame(() => {
1964
1989
  (u.current?.isConnected ? u.current : p.current?.querySelector("button") ?? p.current)?.focus();
@@ -1999,7 +2024,7 @@ function Hr() {
1999
2024
  brand: f.brand || e("card_fallback"),
2000
2025
  lastFour: f.last_four
2001
2026
  }) }),
2002
- f.default && /* @__PURE__ */ n.jsx(Ie, { variant: "secondary", children: e("default") })
2027
+ f.default && /* @__PURE__ */ n.jsx(Le, { variant: "secondary", children: e("default") })
2003
2028
  ] }),
2004
2029
  f.exp_month !== null && f.exp_year !== null && /* @__PURE__ */ n.jsxs("p", { className: "text-muted-foreground text-sm", children: [
2005
2030
  e("card_expires"),
@@ -2073,7 +2098,7 @@ function Hr() {
2073
2098
  }
2074
2099
  ),
2075
2100
  t && /* @__PURE__ */ n.jsx(
2076
- Vr,
2101
+ Kr,
2077
2102
  {
2078
2103
  card: t,
2079
2104
  onClose: () => {
@@ -2106,7 +2131,7 @@ function Hr() {
2106
2131
  }
2107
2132
  );
2108
2133
  }
2109
- function be({
2134
+ function _e({
2110
2135
  icon: e,
2111
2136
  label: i,
2112
2137
  detail: r,
@@ -2145,7 +2170,7 @@ function be({
2145
2170
  }
2146
2171
  );
2147
2172
  }
2148
- function _e({
2173
+ function be({
2149
2174
  message: e,
2150
2175
  retryLabel: i,
2151
2176
  isRetrying: r,
@@ -2165,13 +2190,13 @@ function _e({
2165
2190
  )
2166
2191
  ] });
2167
2192
  }
2168
- function Kr({
2193
+ function Yr({
2169
2194
  onOpen: e,
2170
2195
  triggerRef: i
2171
2196
  }) {
2172
2197
  const { t: r } = R(), l = it(), d = l.data?.payment_methods.find((u) => u.default);
2173
2198
  return l.error ? /* @__PURE__ */ n.jsx(
2174
- _e,
2199
+ be,
2175
2200
  {
2176
2201
  message: r("profile_payments_load_failed"),
2177
2202
  retryLabel: r("profile_payments_retry"),
@@ -2179,7 +2204,7 @@ function Kr({
2179
2204
  onRetry: () => void l.refetch()
2180
2205
  }
2181
2206
  ) : /* @__PURE__ */ n.jsx(
2182
- be,
2207
+ _e,
2183
2208
  {
2184
2209
  icon: Fe,
2185
2210
  label: r("profile_default_payment"),
@@ -2204,24 +2229,24 @@ function lt(e, i, r) {
2204
2229
  return new Intl.DateTimeFormat("en-US", l).format(e);
2205
2230
  }
2206
2231
  }
2207
- function Gr(e, i) {
2232
+ function Xr(e, i) {
2208
2233
  if (!e) return null;
2209
2234
  const r = new Date(e);
2210
2235
  return Number.isNaN(r.getTime()) ? null : lt(r, i);
2211
2236
  }
2212
- function Yr(e, i) {
2237
+ function Wr(e, i) {
2213
2238
  if (!e) return null;
2214
2239
  const r = /* @__PURE__ */ new Date(`${e.slice(0, 10)}T00:00:00Z`);
2215
2240
  return Number.isNaN(r.getTime()) ? null : lt(r, i, "UTC");
2216
2241
  }
2217
- const Wr = ne({
2218
- subscription: ne({
2242
+ const Zr = se({
2243
+ subscription: se({
2219
2244
  token: L(),
2220
2245
  plan_name: L().nullish(),
2221
2246
  next_billing_date: L().nullish()
2222
2247
  }).nullish()
2223
2248
  });
2224
- async function Xr(e = Ct) {
2249
+ async function Jr(e = Ct) {
2225
2250
  const i = await e(
2226
2251
  "/api/member-storefront/subscriptions/next",
2227
2252
  {
@@ -2231,35 +2256,35 @@ async function Xr(e = Ct) {
2231
2256
  );
2232
2257
  if (!i.ok)
2233
2258
  throw new Error(`Next subscription request failed (${i.status})`);
2234
- const { subscription: r } = Wr.parse(await i.json());
2259
+ const { subscription: r } = Zr.parse(await i.json());
2235
2260
  return r ? {
2236
2261
  token: r.token,
2237
2262
  planName: r.plan_name ?? null,
2238
2263
  nextBillingDate: r.next_billing_date ?? null
2239
2264
  } : null;
2240
2265
  }
2241
- function Zr() {
2266
+ function en() {
2242
2267
  const e = Jt(), i = v.useMemo(() => Et(e), [e]);
2243
- return Q({
2268
+ return $({
2244
2269
  queryKey: ["memberStorefront", "profile", "latest-order"],
2245
2270
  queryFn: async () => (await i.fetchCustomerOrders({ limit: 1 })).orders[0] ?? null
2246
2271
  });
2247
2272
  }
2248
- function Jr() {
2273
+ function tn() {
2249
2274
  const { fetch: e } = fe();
2250
- return Q({
2275
+ return $({
2251
2276
  queryKey: ["memberStorefront", "profile", "next-subscription"],
2252
- queryFn: () => Xr(e)
2277
+ queryFn: () => Jr(e)
2253
2278
  });
2254
2279
  }
2255
- function en({
2280
+ function rn({
2256
2281
  onOpen: e,
2257
2282
  triggerRef: i
2258
2283
  }) {
2259
- const { t: r } = R(), { locale: l } = T(), d = Zr();
2284
+ const { t: r } = R(), { locale: l } = T(), d = en();
2260
2285
  if (d.error)
2261
2286
  return /* @__PURE__ */ n.jsx(
2262
- _e,
2287
+ be,
2263
2288
  {
2264
2289
  message: r("profile_orders_load_failed"),
2265
2290
  retryLabel: r("profile_orders_retry"),
@@ -2269,10 +2294,10 @@ function en({
2269
2294
  );
2270
2295
  const u = d.data, p = d.isPending ? r("profile_loading") : u ? [
2271
2296
  u.order_number ? `#${u.order_number}` : null,
2272
- Gr(u.created_at, l)
2297
+ Xr(u.created_at, l)
2273
2298
  ].filter(Boolean).join(" · ") || r("profile_view_orders") : r("profile_no_orders");
2274
2299
  return /* @__PURE__ */ n.jsx(
2275
- be,
2300
+ _e,
2276
2301
  {
2277
2302
  icon: ke,
2278
2303
  label: r("profile_latest_order"),
@@ -2283,14 +2308,14 @@ function en({
2283
2308
  }
2284
2309
  );
2285
2310
  }
2286
- function tn({
2311
+ function nn({
2287
2312
  onOpen: e,
2288
2313
  triggerRef: i
2289
2314
  }) {
2290
- const { t: r } = R(), { locale: l } = T(), d = Jr();
2315
+ const { t: r } = R(), { locale: l } = T(), d = tn();
2291
2316
  if (d.error)
2292
2317
  return /* @__PURE__ */ n.jsx(
2293
- _e,
2318
+ be,
2294
2319
  {
2295
2320
  message: r("profile_subscription_load_failed"),
2296
2321
  retryLabel: r("profile_subscription_retry"),
@@ -2298,12 +2323,12 @@ function tn({
2298
2323
  onRetry: () => void d.refetch()
2299
2324
  }
2300
2325
  );
2301
- const u = d.data, p = Yr(u?.nextBillingDate, l), g = d.isPending ? r("profile_loading") : u ? [
2326
+ const u = d.data, p = Wr(u?.nextBillingDate, l), g = d.isPending ? r("profile_loading") : u ? [
2302
2327
  u.planName,
2303
2328
  p ? r("profile_next_bill_on", { date: p }) : null
2304
2329
  ].filter(Boolean).join(" · ") || r("profile_view_subscriptions") : r("profile_no_next_subscription");
2305
2330
  return /* @__PURE__ */ n.jsx(
2306
- be,
2331
+ _e,
2307
2332
  {
2308
2333
  icon: De,
2309
2334
  label: r("profile_next_subscription"),
@@ -2314,7 +2339,7 @@ function tn({
2314
2339
  }
2315
2340
  );
2316
2341
  }
2317
- function rn({
2342
+ function sn({
2318
2343
  onOpenPayment: e,
2319
2344
  paymentTriggerRef: i,
2320
2345
  onOpenOrder: r,
@@ -2327,15 +2352,15 @@ function rn({
2327
2352
  /* @__PURE__ */ n.jsx("h2", { className: "text-muted-foreground text-sm font-medium", children: p("profile_at_a_glance") }),
2328
2353
  /* @__PURE__ */ n.jsxs("div", { className: "space-y-3", children: [
2329
2354
  /* @__PURE__ */ n.jsx(
2330
- Kr,
2355
+ Yr,
2331
2356
  {
2332
2357
  onOpen: e,
2333
2358
  triggerRef: i
2334
2359
  }
2335
2360
  ),
2336
- /* @__PURE__ */ n.jsx(en, { onOpen: r, triggerRef: l }),
2361
+ /* @__PURE__ */ n.jsx(rn, { onOpen: r, triggerRef: l }),
2337
2362
  /* @__PURE__ */ n.jsx(
2338
- tn,
2363
+ nn,
2339
2364
  {
2340
2365
  onOpen: d,
2341
2366
  triggerRef: u
@@ -2344,7 +2369,7 @@ function rn({
2344
2369
  ] })
2345
2370
  ] });
2346
2371
  }
2347
- function nn({
2372
+ function an({
2348
2373
  initialLanguage: e
2349
2374
  }) {
2350
2375
  const { t: i } = R(), r = tt(), l = rt(), [d, u] = v.useState(e);
@@ -2394,17 +2419,17 @@ function nn({
2394
2419
  }
2395
2420
  );
2396
2421
  }
2397
- function sn() {
2422
+ function on() {
2398
2423
  const { t: e } = R(), i = Ae(), r = me(), { currentSlug: l, navigate: d } = de(), { preview: u } = fe(), p = at(), { locale: g } = T(), a = v.useRef(""), t = v.useRef({});
2399
2424
  if (i.error) throw i.error;
2400
2425
  if (r.error) throw r.error;
2401
2426
  if (!i.data || !r.data)
2402
2427
  return /* @__PURE__ */ n.jsx("p", { role: "status", className: "text-muted-foreground p-6", children: e("profile_loading") });
2403
- const s = i.data, o = `${s.first_name} ${s.last_name}`.trim() || e("account_fallback"), c = Gt(s), m = l === "profile/language", f = l === "profile/addresses", h = l === "profile/payment-methods", x = l === "profile/points", N = l === "profile/orders" || l.startsWith("profile/orders/"), w = l === "profile/subscriptions" || l.startsWith("profile/subscriptions/"), b = N || w, C = l === "profile/orders" || l === "profile/subscriptions", M = r.data.reward_points_label_plural, k = M.charAt(0).toLocaleUpperCase(g) + M.slice(1), z = [
2428
+ const s = i.data, o = `${s.first_name} ${s.last_name}`.trim() || e("account_fallback"), c = Gt(s), m = l === "profile/language", f = l === "profile/addresses", h = l === "profile/payment-methods", x = l === "profile/points", N = l === "profile/orders" || l.startsWith("profile/orders/"), w = l === "profile/subscriptions" || l.startsWith("profile/subscriptions/"), _ = N || w, C = l === "profile/orders" || l === "profile/subscriptions", M = r.data.reward_points_label_plural, k = M.charAt(0).toLocaleUpperCase(g) + M.slice(1), z = [
2404
2429
  {
2405
2430
  slug: "profile/information",
2406
2431
  label: e("personal_information"),
2407
- icon: or,
2432
+ icon: cr,
2408
2433
  dialog: !0
2409
2434
  },
2410
2435
  {
@@ -2426,14 +2451,14 @@ function sn() {
2426
2451
  {
2427
2452
  slug: "profile/language",
2428
2453
  label: e("language"),
2429
- icon: tr,
2454
+ icon: rr,
2430
2455
  value: s.language_iso?.toUpperCase()
2431
2456
  },
2432
2457
  ...p.data ? [
2433
2458
  {
2434
2459
  slug: "profile/points",
2435
2460
  label: k,
2436
- icon: ar,
2461
+ icon: or,
2437
2462
  value: new Intl.NumberFormat(g).format(
2438
2463
  p.data.points_ledgers[0]?.total_balance ?? 0
2439
2464
  )
@@ -2448,12 +2473,12 @@ function sn() {
2448
2473
  }
2449
2474
  return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
2450
2475
  /* @__PURE__ */ n.jsx(Nt, { children: /* @__PURE__ */ n.jsx("span", { className: "text-lg font-semibold", children: e("breadcrumb") }) }),
2451
- b ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
2476
+ _ ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
2452
2477
  C && /* @__PURE__ */ n.jsx("div", { className: "px-5 pt-6 md:px-8", children: /* @__PURE__ */ n.jsxs(E, { variant: "ghost", onClick: F, children: [
2453
2478
  /* @__PURE__ */ n.jsx(Ce, { "aria-hidden": "true", className: "size-4" }),
2454
2479
  e("profile_back")
2455
2480
  ] }) }),
2456
- /* @__PURE__ */ n.jsx(kr, { children: N ? /* @__PURE__ */ n.jsx(At, {}) : /* @__PURE__ */ n.jsx(Ir, {}) })
2481
+ /* @__PURE__ */ n.jsx(Or, { children: N ? /* @__PURE__ */ n.jsx(At, {}) : /* @__PURE__ */ n.jsx(kr, {}) })
2457
2482
  ] }) : /* @__PURE__ */ n.jsxs("main", { className: "mx-auto w-full max-w-3xl space-y-8 p-4 sm:p-8", children: [
2458
2483
  m || f || x || h ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
2459
2484
  /* @__PURE__ */ n.jsxs(E, { variant: "ghost", onClick: F, children: [
@@ -2463,7 +2488,7 @@ function sn() {
2463
2488
  /* @__PURE__ */ n.jsx("h1", { className: "text-2xl font-semibold", children: x ? k : e(
2464
2489
  h ? "payment_methods" : f ? "shipping_addresses" : "language"
2465
2490
  ) }),
2466
- h ? /* @__PURE__ */ n.jsx(Hr, {}) : f ? /* @__PURE__ */ n.jsx(Tr, {}) : x ? /* @__PURE__ */ n.jsx(Br, {}) : /* @__PURE__ */ n.jsx(nn, { initialLanguage: s.language_iso ?? "" })
2491
+ h ? /* @__PURE__ */ n.jsx(Gr, {}) : f ? /* @__PURE__ */ n.jsx(Ur, {}) : x ? /* @__PURE__ */ n.jsx($r, {}) : /* @__PURE__ */ n.jsx(an, { initialLanguage: s.language_iso ?? "" })
2467
2492
  ] }) : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
2468
2493
  /* @__PURE__ */ n.jsxs(
2469
2494
  "section",
@@ -2473,15 +2498,15 @@ function sn() {
2473
2498
  children: [
2474
2499
  /* @__PURE__ */ n.jsxs("div", { className: "flex flex-wrap items-center justify-between gap-4 sm:gap-6", children: [
2475
2500
  /* @__PURE__ */ n.jsxs("div", { className: "flex min-w-0 flex-1 items-center gap-3 sm:gap-4", children: [
2476
- /* @__PURE__ */ n.jsxs(_r, { className: "size-12 shrink-0 sm:size-16", children: [
2501
+ /* @__PURE__ */ n.jsxs(yr, { className: "size-12 shrink-0 sm:size-16", children: [
2477
2502
  /* @__PURE__ */ n.jsx(
2478
- vr,
2503
+ jr,
2479
2504
  {
2480
2505
  src: s.avatar_url ?? void 0,
2481
2506
  alt: ""
2482
2507
  }
2483
2508
  ),
2484
- /* @__PURE__ */ n.jsx(yr, { children: `${s.first_name[0] ?? ""}${s.last_name[0] ?? ""}` })
2509
+ /* @__PURE__ */ n.jsx(Cr, { children: `${s.first_name[0] ?? ""}${s.last_name[0] ?? ""}` })
2485
2510
  ] }),
2486
2511
  /* @__PURE__ */ n.jsxs("div", { className: "min-w-0 space-y-1", children: [
2487
2512
  c && /* @__PURE__ */ n.jsx("p", { className: "text-muted-foreground text-xs font-medium", children: e("member_of", { company: r.data.name }) }),
@@ -2559,7 +2584,7 @@ function sn() {
2559
2584
  }
2560
2585
  ),
2561
2586
  /* @__PURE__ */ n.jsx(
2562
- rn,
2587
+ sn,
2563
2588
  {
2564
2589
  paymentTriggerRef: (y) => {
2565
2590
  t.current["profile/default-payment"] = y;
@@ -2615,19 +2640,19 @@ function sn() {
2615
2640
  tabIndex: u ? -1 : void 0,
2616
2641
  className: "text-muted-foreground hover:text-foreground focus-visible:ring-ring flex min-h-11 items-center gap-3 rounded-md px-1 text-sm focus-visible:ring-2",
2617
2642
  children: [
2618
- /* @__PURE__ */ n.jsx(rr, { "aria-hidden": "true", className: "size-4" }),
2643
+ /* @__PURE__ */ n.jsx(sr, { "aria-hidden": "true", className: "size-4" }),
2619
2644
  e("sign_out")
2620
2645
  ]
2621
2646
  }
2622
2647
  )
2623
2648
  ] }),
2624
- l === "profile/information" && /* @__PURE__ */ n.jsx(Dr, { account: s, onClose: F })
2649
+ l === "profile/information" && /* @__PURE__ */ n.jsx(zr, { account: s, onClose: F })
2625
2650
  ] })
2626
2651
  ] });
2627
2652
  }
2628
- function Cn() {
2629
- return /* @__PURE__ */ n.jsx(Pt, { children: /* @__PURE__ */ n.jsx(sn, {}) });
2653
+ function Nn() {
2654
+ return /* @__PURE__ */ n.jsx(Pt, { children: /* @__PURE__ */ n.jsx(on, {}) });
2630
2655
  }
2631
2656
  export {
2632
- Cn as default
2657
+ Nn as default
2633
2658
  };