@fluid-app/fluid-cli-theme-dev 0.1.681 → 0.1.683

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 (53) hide show
  1. package/dist/dist-cli-preview/.vite/manifest.json +68 -68
  2. package/dist/dist-cli-preview/account-screens.js +1 -1
  3. package/dist/dist-cli-preview/chunks/{MediaScreen-B_z93FbR.js → MediaScreen-CmXSF_MB.js} +1 -1
  4. package/dist/dist-cli-preview/chunks/{MemberManagementProviders-D_I1530j.js → MemberManagementProviders-Ct25Hdh1.js} +36 -34
  5. package/dist/dist-cli-preview/chunks/{MemberShareablesScreen-Ttk644Kh.js → MemberShareablesScreen-m8MKatgG.js} +1 -1
  6. package/dist/dist-cli-preview/chunks/{OrdersScreen-ozApDGze.js → OrdersScreen-CTLrDJ8E.js} +2 -2
  7. package/dist/dist-cli-preview/chunks/{OrdersScreen-DTUJ-gAg.js → OrdersScreen-D0jmZOue.js} +1 -1
  8. package/dist/dist-cli-preview/chunks/{PlaylistsScreen-DtGGALgB.js → PlaylistsScreen-qoHTA0Mt.js} +1 -1
  9. package/dist/dist-cli-preview/chunks/{ProfileScreen-BV1hisqf.js → ProfileScreen-CsumUTRn.js} +285 -285
  10. package/dist/dist-cli-preview/chunks/{SubscriptionsScreen-rNY3sM2-.js → SubscriptionsScreen-BVXLkm3S.js} +2 -2
  11. package/dist/dist-cli-preview/chunks/{ar-DaN3xEy4.js → ar-gsGTNUSG.js} +162 -158
  12. package/dist/dist-cli-preview/chunks/{bg-D3Np0de3.js → bg-DO0pQXDB.js} +145 -141
  13. package/dist/dist-cli-preview/chunks/{bn-BDSehnZ3.js → bn-BVI9zlDn.js} +153 -149
  14. package/dist/dist-cli-preview/chunks/{cli-preview-lu2K4hoe.js → cli-preview-UsOwCatJ.js} +6 -6
  15. package/dist/dist-cli-preview/chunks/{create-card-entry-container-CFVzOM8o.js → create-card-entry-container-Dm4DmPbI.js} +1129 -1114
  16. package/dist/dist-cli-preview/chunks/{cs-CrmATj4L.js → cs-tXPkjakA.js} +134 -130
  17. package/dist/dist-cli-preview/chunks/da-CsyTFL5G.js +355 -0
  18. package/dist/dist-cli-preview/chunks/{de-C0KTNBZq.js → de-Bv_SBk9Q.js} +158 -154
  19. package/dist/dist-cli-preview/chunks/{el-BOQs49GU.js → el-BI4ergf5.js} +144 -140
  20. package/dist/dist-cli-preview/chunks/{es-Dt3VSQPu.js → es-Y3qByzNo.js} +176 -172
  21. package/dist/dist-cli-preview/chunks/{fi-B8UZ7eJL.js → fi-BtTqNikx.js} +173 -169
  22. package/dist/dist-cli-preview/chunks/{fr-BomEiNL0.js → fr-Z11aDPI9.js} +170 -166
  23. package/dist/dist-cli-preview/chunks/{he-CfmnXjsr.js → he-D5Jz84z9.js} +141 -137
  24. package/dist/dist-cli-preview/chunks/{hi-CTk5zGoJ.js → hi-DZwIXbBY.js} +155 -151
  25. package/dist/dist-cli-preview/chunks/{hr-DaNToqEm.js → hr-BpOP8omI.js} +153 -149
  26. package/dist/dist-cli-preview/chunks/{hu-lcAuIwez.js → hu-9xiR2CcO.js} +146 -142
  27. package/dist/dist-cli-preview/chunks/{id-CEThcKZG.js → id-B1BIwh9j.js} +153 -149
  28. package/dist/dist-cli-preview/chunks/{it-BCRCoDOg.js → it-mKLyzLQw.js} +160 -156
  29. package/dist/dist-cli-preview/chunks/{ja-BIkFdIfq.js → ja-Bqvu3Mnc.js} +156 -152
  30. package/dist/dist-cli-preview/chunks/{ko-CD3bk6gv.js → ko-CBaNY_8T.js} +148 -144
  31. package/dist/dist-cli-preview/chunks/{mount-account-screen-0836Um0b.js → mount-account-screen-CZVOUtwU.js} +2 -2
  32. package/dist/dist-cli-preview/chunks/{ms-DI4mGa5X.js → ms-Pwx_v8K2.js} +158 -154
  33. package/dist/dist-cli-preview/chunks/{navigate-account-screen-BbYNC06Z.js → navigate-account-screen-Dm8gKtT5.js} +1 -1
  34. package/dist/dist-cli-preview/chunks/{nl-B-XAD3Ra.js → nl-DNC6ATwr.js} +153 -149
  35. package/dist/dist-cli-preview/chunks/{no-C_NmYGbe.js → no-BGsb1vmV.js} +165 -161
  36. package/dist/dist-cli-preview/chunks/pl-CkcxlTqL.js +355 -0
  37. package/dist/dist-cli-preview/chunks/{pt-BYMWPjog.js → pt-vM58xv3K.js} +151 -147
  38. package/dist/dist-cli-preview/chunks/{ro-B98EuFQI.js → ro-BSpW0sCg.js} +144 -140
  39. package/dist/dist-cli-preview/chunks/{ru-DBO9IasC.js → ru-wpsX_C3r.js} +146 -142
  40. package/dist/dist-cli-preview/chunks/{sk-hRvNJfiN.js → sk-D97cM8SG.js} +142 -138
  41. package/dist/dist-cli-preview/chunks/{sv-noYtTQbO.js → sv-TQk8AafO.js} +168 -164
  42. package/dist/dist-cli-preview/chunks/{th-CJCAKsR-.js → th-eWaFMQ0P.js} +144 -140
  43. package/dist/dist-cli-preview/chunks/{tl-Bx8pJ7p7.js → tl-DzqdzUTJ.js} +149 -145
  44. package/dist/dist-cli-preview/chunks/{tr-C4tCNiV7.js → tr-D9L48fse.js} +146 -142
  45. package/dist/dist-cli-preview/chunks/{uk-xFjXQDP3.js → uk-CK1OGNii.js} +152 -148
  46. package/dist/dist-cli-preview/chunks/{vi-BAvhRTgb.js → vi-BXMdklhZ.js} +156 -152
  47. package/dist/dist-cli-preview/chunks/zh_CN-DVEZE4hF.js +355 -0
  48. package/dist/dist-cli-preview/chunks/zh_TW-CUiZ8qAn.js +355 -0
  49. package/package.json +2 -2
  50. package/dist/dist-cli-preview/chunks/da-CmJdErjd.js +0 -351
  51. package/dist/dist-cli-preview/chunks/pl-mQRzJZEW.js +0 -351
  52. package/dist/dist-cli-preview/chunks/zh_CN-Cyq9zeex.js +0 -351
  53. package/dist/dist-cli-preview/chunks/zh_TW-DFM5MhMA.js +0 -351
@@ -1,17 +1,17 @@
1
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-CCY1xG25.js";
2
- import { u as R, a as St, b as B, c as Et, M as Pt } from "./MemberManagementProviders-D_I1530j.js";
3
- import { O as At } from "./OrdersScreen-DTUJ-gAg.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-CFVzOM8o.js";
5
- import { c as Gt } from "./member-permissions-ndhNmlOk.js";
2
+ import { u as R, a as St, b as B, c as Et, M as Pt } from "./MemberManagementProviders-Ct25Hdh1.js";
3
+ import { O as At } from "./OrdersScreen-D0jmZOue.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, p as Gt, l as Fe } from "./create-card-entry-container-Dm4DmPbI.js";
5
+ import { c as Yt } from "./member-permissions-ndhNmlOk.js";
6
6
  import { u as me } from "./use-store-BfHGqPT0.js";
7
- import { u as K, f as Yt, o as se, s as L } from "./schemas-Cg7EObbC.js";
8
- import { R as Ie, e as Xt } from "./ResponsiveDialog-hhAZBsRG.js";
9
- import { I as Wt } from "./sheet-haptics-context-Ne6R0IeV.js";
7
+ import { u as K, f as Xt, o as se, s as L } from "./schemas-Cg7EObbC.js";
8
+ import { R as Ie, e as Wt } from "./ResponsiveDialog-hhAZBsRG.js";
9
+ import { I as Zt } from "./sheet-haptics-context-Ne6R0IeV.js";
10
10
  import { u as X } from "./sidebar-l4Cov_Nb.js";
11
11
  import { B as Le, a as ke } from "./Textarea-DiiN2VUa.js";
12
- import { u as Zt } from "./countries-api-adapter-lxM2cPcp.js";
13
- import { u as Jt } from "./PortalTenantClientProvider-BEuv6kSA.js";
14
- import { M as er } from "./map-pin-CmkGf2EW.js";
12
+ import { u as Jt } from "./countries-api-adapter-lxM2cPcp.js";
13
+ import { u as er } from "./PortalTenantClientProvider-BEuv6kSA.js";
14
+ import { M as tr } from "./map-pin-CmkGf2EW.js";
15
15
  import { A as Ce } from "./arrow-left-B8Vg8Lwo.js";
16
16
  /**
17
17
  * @license lucide-react v0.575.0 - ISC
@@ -19,44 +19,44 @@ import { A as Ce } from "./arrow-left-B8Vg8Lwo.js";
19
19
  * This source code is licensed under the ISC license.
20
20
  * See the LICENSE file in the root directory of this source tree.
21
21
  */
22
- const tr = [
22
+ const rr = [
23
23
  ["path", { d: "m5 8 6 6", key: "1wu5hv" }],
24
24
  ["path", { d: "m4 14 6-6 2-3", key: "1k1g8d" }],
25
25
  ["path", { d: "M2 5h12", key: "or177f" }],
26
26
  ["path", { d: "M7 2h1", key: "1t2jsx" }],
27
27
  ["path", { d: "m22 22-5-10-5 10", key: "don7ne" }],
28
28
  ["path", { d: "M14 18h6", key: "1m8k6r" }]
29
- ], rr = Y("languages", tr);
29
+ ], nr = Y("languages", rr);
30
30
  /**
31
31
  * @license lucide-react v0.575.0 - ISC
32
32
  *
33
33
  * This source code is licensed under the ISC license.
34
34
  * See the LICENSE file in the root directory of this source tree.
35
35
  */
36
- const nr = [
36
+ const sr = [
37
37
  ["path", { d: "m16 17 5-5-5-5", key: "1bji2h" }],
38
38
  ["path", { d: "M21 12H9", key: "dn1m92" }],
39
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);
40
+ ], ar = Y("log-out", sr);
41
41
  /**
42
42
  * @license lucide-react v0.575.0 - ISC
43
43
  *
44
44
  * This source code is licensed under the ISC license.
45
45
  * See the LICENSE file in the root directory of this source tree.
46
46
  */
47
- const ar = [
47
+ const ir = [
48
48
  ["path", { d: "m2 9 3-3 3 3", key: "1ltn5i" }],
49
49
  ["path", { d: "M13 18H7a2 2 0 0 1-2-2V6", key: "1r6tfw" }],
50
50
  ["path", { d: "m22 15-3 3-3-3", key: "4rnwn2" }],
51
51
  ["path", { d: "M11 6h6a2 2 0 0 1 2 2v10", key: "2f72bc" }]
52
- ], De = Y("repeat-2", ar);
52
+ ], De = Y("repeat-2", ir);
53
53
  /**
54
54
  * @license lucide-react v0.575.0 - ISC
55
55
  *
56
56
  * This source code is licensed under the ISC license.
57
57
  * See the LICENSE file in the root directory of this source tree.
58
58
  */
59
- const ir = [
59
+ const or = [
60
60
  [
61
61
  "path",
62
62
  {
@@ -64,17 +64,17 @@ const ir = [
64
64
  key: "r04s7s"
65
65
  }
66
66
  ]
67
- ], or = Y("star", ir);
67
+ ], lr = Y("star", or);
68
68
  /**
69
69
  * @license lucide-react v0.575.0 - ISC
70
70
  *
71
71
  * This source code is licensed under the ISC license.
72
72
  * See the LICENSE file in the root directory of this source tree.
73
73
  */
74
- const lr = [
74
+ const cr = [
75
75
  ["circle", { cx: "12", cy: "8", r: "5", key: "1hypcn" }],
76
76
  ["path", { d: "M20 21a8 8 0 0 0-16 0", key: "rfgkzh" }]
77
- ], cr = Y("user-round", lr);
77
+ ], dr = Y("user-round", cr);
78
78
  var te = { exports: {} }, re = {};
79
79
  /**
80
80
  * @license React
@@ -86,29 +86,29 @@ var te = { exports: {} }, re = {};
86
86
  * LICENSE file in the root directory of this source tree.
87
87
  */
88
88
  var we;
89
- function dr() {
89
+ function ur() {
90
90
  if (we) return re;
91
91
  we = 1;
92
92
  var e = mt();
93
93
  function i(o, c) {
94
94
  return o === c && (o !== 0 || 1 / o === 1 / c) || o !== o && c !== c;
95
95
  }
96
- var r = typeof Object.is == "function" ? Object.is : i, l = e.useState, d = e.useEffect, u = e.useLayoutEffect, p = e.useDebugValue;
96
+ var r = typeof Object.is == "function" ? Object.is : i, l = e.useState, d = e.useEffect, u = e.useLayoutEffect, h = e.useDebugValue;
97
97
  function g(o, c) {
98
- var m = c(), f = l({ inst: { value: m, getSnapshot: c } }), h = f[0].inst, x = f[1];
98
+ var m = c(), p = l({ inst: { value: m, getSnapshot: c } }), f = p[0].inst, x = p[1];
99
99
  return u(
100
100
  function() {
101
- h.value = m, h.getSnapshot = c, a(h) && x({ inst: h });
101
+ f.value = m, f.getSnapshot = c, a(f) && x({ inst: f });
102
102
  },
103
103
  [o, m, c]
104
104
  ), d(
105
105
  function() {
106
- return a(h) && x({ inst: h }), o(function() {
107
- a(h) && x({ inst: h });
106
+ return a(f) && x({ inst: f }), o(function() {
107
+ a(f) && x({ inst: f });
108
108
  });
109
109
  },
110
110
  [o]
111
- ), p(m), m;
111
+ ), h(m), m;
112
112
  }
113
113
  function a(o) {
114
114
  var c = o.getSnapshot;
@@ -127,26 +127,26 @@ function dr() {
127
127
  return re.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : s, re;
128
128
  }
129
129
  var Ne;
130
- function ur() {
131
- return Ne || (Ne = 1, te.exports = dr()), te.exports;
130
+ function fr() {
131
+ return Ne || (Ne = 1, te.exports = ur()), te.exports;
132
132
  }
133
- var fr = ur();
134
- function mr() {
135
- return fr.useSyncExternalStore(
136
- hr,
133
+ var mr = fr();
134
+ function hr() {
135
+ return mr.useSyncExternalStore(
136
+ pr,
137
137
  () => !0,
138
138
  () => !1
139
139
  );
140
140
  }
141
- function hr() {
141
+ function pr() {
142
142
  return () => {
143
143
  };
144
144
  }
145
- var he = "Avatar", [pr] = ht(he), [gr, Oe] = pr(he), ze = v.forwardRef(
145
+ var he = "Avatar", [gr] = ht(he), [xr, Oe] = gr(he), ze = v.forwardRef(
146
146
  (e, i) => {
147
147
  const { __scopeAvatar: r, ...l } = e, [d, u] = v.useState("idle");
148
148
  return /* @__PURE__ */ n.jsx(
149
- gr,
149
+ xr,
150
150
  {
151
151
  scope: r,
152
152
  imageLoadingStatus: d,
@@ -160,8 +160,8 @@ ze.displayName = he;
160
160
  var Te = "AvatarImage", Be = v.forwardRef(
161
161
  (e, i) => {
162
162
  const { __scopeAvatar: r, src: l, onLoadingStatusChange: d = () => {
163
- }, ...u } = e, p = Oe(Te, r), g = xr(l, u), a = pt((t) => {
164
- d(t), p.onImageLoadingStatusChange(t);
163
+ }, ...u } = e, h = Oe(Te, r), g = _r(l, u), a = pt((t) => {
164
+ d(t), h.onImageLoadingStatusChange(t);
165
165
  });
166
166
  return ne(() => {
167
167
  g !== "idle" && a(g);
@@ -171,21 +171,21 @@ var Te = "AvatarImage", Be = v.forwardRef(
171
171
  Be.displayName = Te;
172
172
  var Ue = "AvatarFallback", $e = v.forwardRef(
173
173
  (e, i) => {
174
- const { __scopeAvatar: r, delayMs: l, ...d } = e, u = Oe(Ue, r), [p, g] = v.useState(l === void 0);
174
+ const { __scopeAvatar: r, delayMs: l, ...d } = e, u = Oe(Ue, r), [h, g] = v.useState(l === void 0);
175
175
  return v.useEffect(() => {
176
176
  if (l !== void 0) {
177
177
  const a = window.setTimeout(() => g(!0), l);
178
178
  return () => window.clearTimeout(a);
179
179
  }
180
- }, [l]), p && u.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ n.jsx(le.span, { ...d, ref: i }) : null;
180
+ }, [l]), h && u.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ n.jsx(le.span, { ...d, ref: i }) : null;
181
181
  }
182
182
  );
183
183
  $e.displayName = Ue;
184
184
  function Se(e, i) {
185
185
  return e ? i ? (e.src !== i && (e.src = i), e.complete && e.naturalWidth > 0 ? "loaded" : "loading") : "error" : "idle";
186
186
  }
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(
187
+ function _r(e, { referrerPolicy: i, crossOrigin: r }) {
188
+ const l = hr(), d = v.useRef(null), u = l ? (d.current || (d.current = new window.Image()), d.current) : null, [h, g] = v.useState(
189
189
  () => Se(u, e)
190
190
  );
191
191
  return ne(() => {
@@ -199,16 +199,16 @@ function xr(e, { referrerPolicy: i, crossOrigin: r }) {
199
199
  return u.addEventListener("load", t), u.addEventListener("error", s), i && (u.referrerPolicy = i), typeof r == "string" && (u.crossOrigin = r), () => {
200
200
  u.removeEventListener("load", t), u.removeEventListener("error", s);
201
201
  };
202
- }, [u, r, i]), p;
202
+ }, [u, r, i]), h;
203
203
  }
204
- var _r = ze, br = Be, vr = $e;
205
- function yr({
204
+ var br = ze, vr = Be, yr = $e;
205
+ function jr({
206
206
  className: e,
207
207
  size: i = "default",
208
208
  ...r
209
209
  }) {
210
210
  return /* @__PURE__ */ n.jsx(
211
- _r,
211
+ br,
212
212
  {
213
213
  "data-slot": "avatar",
214
214
  "data-size": i,
@@ -220,12 +220,12 @@ function yr({
220
220
  }
221
221
  );
222
222
  }
223
- function jr({
223
+ function Cr({
224
224
  className: e,
225
225
  ...i
226
226
  }) {
227
227
  return /* @__PURE__ */ n.jsx(
228
- br,
228
+ vr,
229
229
  {
230
230
  "data-slot": "avatar-image",
231
231
  className: ce("aspect-square size-full", e),
@@ -233,12 +233,12 @@ function jr({
233
233
  }
234
234
  );
235
235
  }
236
- function Cr({
236
+ function wr({
237
237
  className: e,
238
238
  ...i
239
239
  }) {
240
240
  return /* @__PURE__ */ n.jsx(
241
- vr,
241
+ yr,
242
242
  {
243
243
  "data-slot": "avatar-fallback",
244
244
  className: ce(
@@ -249,14 +249,14 @@ function Cr({
249
249
  }
250
250
  );
251
251
  }
252
- function wr({
252
+ function Nr({
253
253
  control: e,
254
254
  isOpen: i,
255
255
  onSubmit: r,
256
256
  handleClose: l,
257
257
  languageOptions: d,
258
258
  errorMsg: u,
259
- isSubmitting: p,
259
+ isSubmitting: h,
260
260
  email: g,
261
261
  onChangeEmail: a,
262
262
  isChangingEmail: t,
@@ -264,19 +264,19 @@ function wr({
264
264
  disableNameEdit: o = !1,
265
265
  presentation: c = "dialog",
266
266
  fullName: m,
267
- onUploadAvatar: f
267
+ onUploadAvatar: p
268
268
  }) {
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);
269
+ const { t: f } = R(), { field: x } = gt({ control: e, name: "avatar_url" }), [N, w] = v.useState(!1), _ = v.useRef(null), C = v.useRef(0);
270
270
  v.useEffect(() => {
271
271
  C.current += 1, w(!1);
272
272
  }, [i]);
273
273
  const M = async (j) => {
274
274
  const Q = j.target.files?.[0];
275
- if (j.target.value = "", !Q || !f) return;
275
+ if (j.target.value = "", !Q || !p) return;
276
276
  const I = ++C.current;
277
277
  w(!0);
278
278
  try {
279
- const G = await f(Q);
279
+ const G = await p(Q);
280
280
  G && C.current === I && x.onChange(G);
281
281
  } finally {
282
282
  C.current === I && w(!1);
@@ -285,22 +285,22 @@ function wr({
285
285
  P(void 0);
286
286
  const j = F.trim();
287
287
  if (!j) {
288
- P(h("please_enter_new_email"));
288
+ P(f("please_enter_new_email"));
289
289
  return;
290
290
  }
291
291
  if (!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(j)) {
292
- P(h("please_enter_valid_email"));
292
+ P(f("please_enter_valid_email"));
293
293
  return;
294
294
  }
295
295
  if (g && j.toLowerCase() === g.toLowerCase()) {
296
- P(h("new_email_must_be_different"));
296
+ P(f("new_email_must_be_different"));
297
297
  return;
298
298
  }
299
299
  try {
300
300
  await a?.(j), z(!1), y("");
301
301
  } catch (I) {
302
302
  P(
303
- I instanceof Error ? I.message : h("failed_to_initiate_email_change")
303
+ I instanceof Error ? I.message : f("failed_to_initiate_email_change")
304
304
  );
305
305
  }
306
306
  }, q = () => {
@@ -313,16 +313,16 @@ function wr({
313
313
  {
314
314
  open: i,
315
315
  onOpenChange: (j) => !j && O(),
316
- title: h("edit_profile"),
316
+ title: f("edit_profile"),
317
317
  presentation: c,
318
318
  children: [
319
319
  /* @__PURE__ */ n.jsxs("div", { className: "space-y-4", children: [
320
- f && /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-4", children: [
320
+ p && /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-4", children: [
321
321
  /* @__PURE__ */ n.jsx("div", { className: "ring-border relative size-16 shrink-0 overflow-hidden rounded-full ring-1", children: x.value ? /* @__PURE__ */ n.jsx(
322
322
  "img",
323
323
  {
324
324
  src: x.value,
325
- alt: h("profile_image_alt"),
325
+ alt: f("profile_image_alt"),
326
326
  className: "h-full w-full object-cover"
327
327
  }
328
328
  ) : /* @__PURE__ */ n.jsx("div", { className: "bg-primary text-primary-foreground flex h-full w-full items-center justify-center text-xl font-semibold", children: (m ?? "").trim().charAt(0).toUpperCase() }) }),
@@ -332,7 +332,7 @@ function wr({
332
332
  {
333
333
  htmlFor: "avatar-file-input",
334
334
  className: "text-foreground text-sm font-medium",
335
- children: h("profile_photo")
335
+ children: f("profile_photo")
336
336
  }
337
337
  ),
338
338
  /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2", children: [
@@ -346,7 +346,7 @@ function wr({
346
346
  onClick: () => _.current?.click(),
347
347
  children: [
348
348
  N && /* @__PURE__ */ n.jsx("div", { className: "mr-2 size-3.5 animate-spin rounded-full border-2 border-current/30 border-t-current" }),
349
- h(N ? "uploading" : "change")
349
+ f(N ? "uploading" : "change")
350
350
  ]
351
351
  }
352
352
  ),
@@ -357,7 +357,7 @@ function wr({
357
357
  variant: "ghost",
358
358
  size: "sm",
359
359
  onClick: () => x.onChange(""),
360
- children: h("remove")
360
+ children: f("remove")
361
361
  }
362
362
  )
363
363
  ] }),
@@ -366,7 +366,7 @@ function wr({
366
366
  {
367
367
  ref: _,
368
368
  id: "avatar-file-input",
369
- "aria-label": h("profile_photo"),
369
+ "aria-label": f("profile_photo"),
370
370
  type: "file",
371
371
  accept: "image/*",
372
372
  disabled: N,
@@ -383,7 +383,7 @@ function wr({
383
383
  {
384
384
  control: e,
385
385
  name: "first_name",
386
- label: h("first_name"),
386
+ label: f("first_name"),
387
387
  disabled: o,
388
388
  readOnly: o,
389
389
  "aria-readonly": o || void 0,
@@ -395,7 +395,7 @@ function wr({
395
395
  {
396
396
  control: e,
397
397
  name: "last_name",
398
- label: h("last_name"),
398
+ label: f("last_name"),
399
399
  disabled: o,
400
400
  readOnly: o,
401
401
  "aria-readonly": o || void 0,
@@ -407,7 +407,7 @@ function wr({
407
407
  {
408
408
  id: "name-edit-disabled-hint",
409
409
  className: "text-muted-foreground text-xs",
410
- children: h("name_change_disabled_hint")
410
+ children: f("name_change_disabled_hint")
411
411
  }
412
412
  ),
413
413
  /* @__PURE__ */ n.jsx(
@@ -415,7 +415,7 @@ function wr({
415
415
  {
416
416
  control: e,
417
417
  name: "phone_number",
418
- label: h("phone_number"),
418
+ label: f("phone_number"),
419
419
  type: "tel"
420
420
  }
421
421
  ),
@@ -424,9 +424,9 @@ function wr({
424
424
  {
425
425
  control: e,
426
426
  name: "bio",
427
- label: h("bio"),
427
+ label: f("bio"),
428
428
  rows: 3,
429
- placeholder: h("add_a_short_bio")
429
+ placeholder: f("add_a_short_bio")
430
430
  }
431
431
  ),
432
432
  /* @__PURE__ */ n.jsx(
@@ -434,20 +434,20 @@ function wr({
434
434
  {
435
435
  control: e,
436
436
  name: "language",
437
- label: h("language"),
437
+ label: f("language"),
438
438
  options: d,
439
- placeholder: h("select_an_option")
439
+ placeholder: f("select_an_option")
440
440
  }
441
441
  )
442
442
  ] }),
443
443
  g && /* @__PURE__ */ n.jsxs("div", { className: "space-y-2", children: [
444
- /* @__PURE__ */ n.jsx("label", { className: "text-foreground text-sm font-medium", children: h("email") }),
444
+ /* @__PURE__ */ n.jsx("label", { className: "text-foreground text-sm font-medium", children: f("email") }),
445
445
  k ? /* @__PURE__ */ n.jsxs("div", { className: "space-y-2", children: [
446
446
  /* @__PURE__ */ n.jsx(
447
- Wt,
447
+ Zt,
448
448
  {
449
449
  type: "email",
450
- placeholder: h("enter_new_email_placeholder"),
450
+ placeholder: f("enter_new_email_placeholder"),
451
451
  value: F,
452
452
  onChange: (j) => {
453
453
  y(j.target.value), P(void 0);
@@ -462,7 +462,7 @@ function wr({
462
462
  D && /* @__PURE__ */ n.jsx("p", { className: "text-destructive text-xs", children: D }),
463
463
  /* @__PURE__ */ n.jsxs("div", { className: "bg-muted flex items-start gap-2.5 rounded-md px-3 py-2.5", children: [
464
464
  /* @__PURE__ */ n.jsx(je, { className: "text-primary mt-0.5 size-4 shrink-0" }),
465
- /* @__PURE__ */ n.jsx("p", { className: "text-muted-foreground text-xs", children: h("email_verification_hint") })
465
+ /* @__PURE__ */ n.jsx("p", { className: "text-muted-foreground text-xs", children: f("email_verification_hint") })
466
466
  ] }),
467
467
  /* @__PURE__ */ n.jsxs("div", { className: "flex gap-2", children: [
468
468
  /* @__PURE__ */ n.jsx(
@@ -472,7 +472,7 @@ function wr({
472
472
  variant: "outline",
473
473
  size: "sm",
474
474
  onClick: q,
475
- children: h("cancel")
475
+ children: f("cancel")
476
476
  }
477
477
  ),
478
478
  /* @__PURE__ */ n.jsxs(
@@ -484,7 +484,7 @@ function wr({
484
484
  disabled: !F.trim() || t,
485
485
  children: [
486
486
  t && /* @__PURE__ */ n.jsx("div", { className: "mr-2 size-3.5 animate-spin rounded-full border-2 border-current/30 border-t-current" }),
487
- h(t ? "sending" : "send_verification")
487
+ f(t ? "sending" : "send_verification")
488
488
  ]
489
489
  }
490
490
  )
@@ -494,11 +494,11 @@ function wr({
494
494
  /* @__PURE__ */ n.jsxs("div", { className: "bg-muted flex items-start gap-2.5 rounded-md px-3 py-2.5", children: [
495
495
  /* @__PURE__ */ n.jsx(je, { className: "text-primary mt-0.5 size-4 shrink-0" }),
496
496
  /* @__PURE__ */ n.jsxs("p", { className: "text-muted-foreground text-xs", children: [
497
- h("changing_email_to"),
497
+ f("changing_email_to"),
498
498
  " ",
499
499
  /* @__PURE__ */ n.jsx("span", { className: "text-foreground font-medium", children: s }),
500
500
  ". ",
501
- h("check_new_email_verification")
501
+ f("check_new_email_verification")
502
502
  ] })
503
503
  ] })
504
504
  ] }) : /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2", children: [
@@ -511,21 +511,21 @@ function wr({
511
511
  size: "sm",
512
512
  onClick: () => z(!0),
513
513
  className: "shrink-0",
514
- children: h("change")
514
+ children: f("change")
515
515
  }
516
516
  )
517
517
  ] })
518
518
  ] }),
519
519
  u && /* @__PURE__ */ n.jsx("p", { className: "text-destructive text-sm", children: u }),
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(
520
+ /* @__PURE__ */ n.jsx(Wt, { className: "flex flex-row items-center justify-end", children: /* @__PURE__ */ n.jsx("div", { className: "flex-1 text-right", children: /* @__PURE__ */ n.jsxs(
521
521
  E,
522
522
  {
523
523
  type: "button",
524
524
  onClick: r,
525
- disabled: N || p,
525
+ disabled: N || h,
526
526
  children: [
527
- p && /* @__PURE__ */ n.jsx("div", { className: "mr-2 size-4 animate-spin rounded-full border-2 border-current/30 border-t-current" }),
528
- h(p ? "saving" : "save_changes")
527
+ h && /* @__PURE__ */ n.jsx("div", { className: "mr-2 size-4 animate-spin rounded-full border-2 border-current/30 border-t-current" }),
528
+ f(h ? "saving" : "save_changes")
529
529
  ]
530
530
  }
531
531
  ) }) })
@@ -533,7 +533,7 @@ function wr({
533
533
  }
534
534
  );
535
535
  }
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) => {
536
+ var Sr = Object.defineProperty, Z = Object.getOwnPropertySymbols, qe = Object.prototype.hasOwnProperty, Qe = Object.prototype.propertyIsEnumerable, Ee = (e, i, r) => i in e ? Sr(e, i, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[i] = r, ae = (e, i) => {
537
537
  for (var r in i || (i = {}))
538
538
  qe.call(i, r) && Ee(e, r, i[r]);
539
539
  if (Z)
@@ -569,18 +569,18 @@ var U;
569
569
  throw new RangeError("Mask value out of range");
570
570
  this.size = a * 4 + 17;
571
571
  let c = [];
572
- for (let f = 0; f < this.size; f++)
572
+ for (let p = 0; p < this.size; p++)
573
573
  c.push(!1);
574
- for (let f = 0; f < this.size; f++)
574
+ for (let p = 0; p < this.size; p++)
575
575
  this.modules.push(c.slice()), this.isFunction.push(c.slice());
576
576
  this.drawFunctionPatterns();
577
577
  const m = this.addEccAndInterleave(s);
578
578
  if (this.drawCodewords(m), o == -1) {
579
- let f = 1e9;
580
- for (let h = 0; h < 8; h++) {
581
- this.applyMask(h), this.drawFormatBits(h);
579
+ let p = 1e9;
580
+ for (let f = 0; f < 8; f++) {
581
+ this.applyMask(f), this.drawFormatBits(f);
582
582
  const x = this.getPenaltyScore();
583
- x < f && (o = h, f = x), this.applyMask(h);
583
+ x < p && (o = f, p = x), this.applyMask(f);
584
584
  }
585
585
  }
586
586
  d(0 <= o && o <= 7), this.mask = o, this.applyMask(o), this.drawFormatBits(o), this.isFunction = [];
@@ -616,33 +616,33 @@ var U;
616
616
  static encodeSegments(a, t, s = 1, o = 40, c = -1, m = !0) {
617
617
  if (!(b.MIN_VERSION <= s && s <= o && o <= b.MAX_VERSION) || c < -1 || c > 7)
618
618
  throw new RangeError("Invalid value");
619
- let f, h;
620
- for (f = s; ; f++) {
621
- const _ = b.getNumDataCodewords(f, t) * 8, C = p.getTotalBits(a, f);
619
+ let p, f;
620
+ for (p = s; ; p++) {
621
+ const _ = b.getNumDataCodewords(p, t) * 8, C = h.getTotalBits(a, p);
622
622
  if (C <= _) {
623
- h = C;
623
+ f = C;
624
624
  break;
625
625
  }
626
- if (f >= o)
626
+ if (p >= o)
627
627
  throw new RangeError("Data too long");
628
628
  }
629
629
  for (const _ of [b.Ecc.MEDIUM, b.Ecc.QUARTILE, b.Ecc.HIGH])
630
- m && h <= b.getNumDataCodewords(f, _) * 8 && (t = _);
630
+ m && f <= b.getNumDataCodewords(p, _) * 8 && (t = _);
631
631
  let x = [];
632
632
  for (const _ of a) {
633
- r(_.mode.modeBits, 4, x), r(_.numChars, _.mode.numCharCountBits(f), x);
633
+ r(_.mode.modeBits, 4, x), r(_.numChars, _.mode.numCharCountBits(p), x);
634
634
  for (const C of _.getData())
635
635
  x.push(C);
636
636
  }
637
- d(x.length == h);
638
- const N = b.getNumDataCodewords(f, t) * 8;
637
+ d(x.length == f);
638
+ const N = b.getNumDataCodewords(p, t) * 8;
639
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);
640
640
  for (let _ = 236; x.length < N; _ ^= 253)
641
641
  r(_, 8, x);
642
642
  let w = [];
643
643
  for (; w.length * 8 < x.length; )
644
644
  w.push(0);
645
- return x.forEach((_, C) => w[C >>> 3] |= _ << 7 - (C & 7)), new b(f, t, w, c);
645
+ return x.forEach((_, C) => w[C >>> 3] |= _ << 7 - (C & 7)), new b(p, t, w, c);
646
646
  }
647
647
  /*-- Accessor methods --*/
648
648
  // Returns the color of the module (pixel) at the given coordinates, which is false
@@ -707,8 +707,8 @@ var U;
707
707
  drawFinderPattern(a, t) {
708
708
  for (let s = -4; s <= 4; s++)
709
709
  for (let o = -4; o <= 4; o++) {
710
- const c = Math.max(Math.abs(o), Math.abs(s)), m = a + o, f = t + s;
711
- 0 <= m && m < this.size && 0 <= f && f < this.size && this.setFunctionModule(m, f, c != 2 && c != 4);
710
+ const c = Math.max(Math.abs(o), Math.abs(s)), m = a + o, p = t + s;
711
+ 0 <= m && m < this.size && 0 <= p && p < this.size && this.setFunctionModule(m, p, c != 2 && c != 4);
712
712
  }
713
713
  }
714
714
  // Draws a 5*5 alignment pattern, with the center module
@@ -730,19 +730,19 @@ var U;
730
730
  const t = this.version, s = this.errorCorrectionLevel;
731
731
  if (a.length != b.getNumDataCodewords(t, s))
732
732
  throw new RangeError("Invalid argument");
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);
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), p = o - m % o, f = Math.floor(m / o);
734
734
  let x = [];
735
735
  const N = b.reedSolomonComputeDivisor(c);
736
736
  for (let _ = 0, C = 0; _ < o; _++) {
737
- let M = a.slice(C, C + h - c + (_ < f ? 0 : 1));
737
+ let M = a.slice(C, C + f - c + (_ < p ? 0 : 1));
738
738
  C += M.length;
739
739
  const k = b.reedSolomonComputeRemainder(M, N);
740
- _ < f && M.push(0), x.push(M.concat(k));
740
+ _ < p && M.push(0), x.push(M.concat(k));
741
741
  }
742
742
  let w = [];
743
743
  for (let _ = 0; _ < x[0].length; _++)
744
744
  x.forEach((C, M) => {
745
- (_ != h - c || M >= f) && w.push(C[_]);
745
+ (_ != f - c || M >= p) && w.push(C[_]);
746
746
  });
747
747
  return d(w.length == m), w;
748
748
  }
@@ -756,8 +756,8 @@ var U;
756
756
  s == 6 && (s = 5);
757
757
  for (let o = 0; o < this.size; o++)
758
758
  for (let c = 0; c < 2; c++) {
759
- const m = s - c, h = (s + 1 & 2) == 0 ? this.size - 1 - o : o;
760
- !this.isFunction[h][m] && t < a.length * 8 && (this.modules[h][m] = l(a[t >>> 3], 7 - (t & 7)), t++);
759
+ const m = s - c, f = (s + 1 & 2) == 0 ? this.size - 1 - o : o;
760
+ !this.isFunction[f][m] && t < a.length * 8 && (this.modules[f][m] = l(a[t >>> 3], 7 - (t & 7)), t++);
761
761
  }
762
762
  }
763
763
  d(t == a.length * 8);
@@ -809,25 +809,25 @@ var U;
809
809
  getPenaltyScore() {
810
810
  let a = 0;
811
811
  for (let c = 0; c < this.size; c++) {
812
- let m = !1, f = 0, h = [0, 0, 0, 0, 0, 0, 0];
812
+ let m = !1, p = 0, f = [0, 0, 0, 0, 0, 0, 0];
813
813
  for (let x = 0; x < this.size; x++)
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;
814
+ this.modules[c][x] == m ? (p++, p == 5 ? a += b.PENALTY_N1 : p > 5 && a++) : (this.finderPenaltyAddHistory(p, f), m || (a += this.finderPenaltyCountPatterns(f) * b.PENALTY_N3), m = this.modules[c][x], p = 1);
815
+ a += this.finderPenaltyTerminateAndCount(m, p, f) * b.PENALTY_N3;
816
816
  }
817
817
  for (let c = 0; c < this.size; c++) {
818
- let m = !1, f = 0, h = [0, 0, 0, 0, 0, 0, 0];
818
+ let m = !1, p = 0, f = [0, 0, 0, 0, 0, 0, 0];
819
819
  for (let x = 0; x < this.size; x++)
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;
820
+ this.modules[x][c] == m ? (p++, p == 5 ? a += b.PENALTY_N1 : p > 5 && a++) : (this.finderPenaltyAddHistory(p, f), m || (a += this.finderPenaltyCountPatterns(f) * b.PENALTY_N3), m = this.modules[x][c], p = 1);
821
+ a += this.finderPenaltyTerminateAndCount(m, p, f) * b.PENALTY_N3;
822
822
  }
823
823
  for (let c = 0; c < this.size - 1; c++)
824
824
  for (let m = 0; m < this.size - 1; m++) {
825
- const f = this.modules[c][m];
826
- f == this.modules[c][m + 1] && f == this.modules[c + 1][m] && f == this.modules[c + 1][m + 1] && (a += b.PENALTY_N2);
825
+ const p = this.modules[c][m];
826
+ p == this.modules[c][m + 1] && p == this.modules[c + 1][m] && p == this.modules[c + 1][m + 1] && (a += b.PENALTY_N2);
827
827
  }
828
828
  let t = 0;
829
829
  for (const c of this.modules)
830
- t = c.reduce((m, f) => m + (f ? 1 : 0), t);
830
+ t = c.reduce((m, p) => m + (p ? 1 : 0), t);
831
831
  const s = this.size * this.size, o = Math.ceil(Math.abs(t * 20 - s * 10) / s) - 1;
832
832
  return d(0 <= o && o <= 9), a += o * b.PENALTY_N4, d(0 <= a && a <= 2568888), a;
833
833
  }
@@ -887,7 +887,7 @@ var U;
887
887
  let s = t.map((o) => 0);
888
888
  for (const o of a) {
889
889
  const c = o ^ s.shift();
890
- s.push(0), t.forEach((m, f) => s[f] ^= b.reedSolomonMultiply(m, c));
890
+ s.push(0), t.forEach((m, p) => s[p] ^= b.reedSolomonMultiply(m, c));
891
891
  }
892
892
  return s;
893
893
  }
@@ -1057,7 +1057,7 @@ var U;
1057
1057
  }
1058
1058
  };
1059
1059
  u.NUMERIC_REGEX = /^[0-9]*$/, u.ALPHANUMERIC_REGEX = /^[A-Z0-9 $%*+.\/:-]*$/, u.ALPHANUMERIC_CHARSET = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";
1060
- let p = u;
1060
+ let h = u;
1061
1061
  e.QrSegment = u;
1062
1062
  })(U || (U = {}));
1063
1063
  ((e) => {
@@ -1095,52 +1095,52 @@ var V = U;
1095
1095
  * Copyright (c) Paul O'Shannessy
1096
1096
  * SPDX-License-Identifier: ISC
1097
1097
  */
1098
- var Sr = {
1098
+ var Er = {
1099
1099
  L: V.QrCode.Ecc.LOW,
1100
1100
  M: V.QrCode.Ecc.MEDIUM,
1101
1101
  Q: V.QrCode.Ecc.QUARTILE,
1102
1102
  H: V.QrCode.Ecc.HIGH
1103
- }, Ve = 128, He = "L", Ke = "#FFFFFF", Ge = "#000000", Ye = !1, Xe = 1, Er = 4, Pr = 0, Ar = 0.1;
1103
+ }, Ve = 128, He = "L", Ke = "#FFFFFF", Ge = "#000000", Ye = !1, Xe = 1, Pr = 4, Ar = 0, Mr = 0.1;
1104
1104
  function We(e, i = 0) {
1105
1105
  const r = [];
1106
1106
  return e.forEach(function(l, d) {
1107
1107
  let u = null;
1108
- l.forEach(function(p, g) {
1109
- if (!p && u !== null) {
1108
+ l.forEach(function(h, g) {
1109
+ if (!h && u !== null) {
1110
1110
  r.push(
1111
1111
  `M${u + i} ${d + i}h${g - u}v1H${u + i}z`
1112
1112
  ), u = null;
1113
1113
  return;
1114
1114
  }
1115
1115
  if (g === l.length - 1) {
1116
- if (!p)
1116
+ if (!h)
1117
1117
  return;
1118
1118
  u === null ? r.push(`M${g + i},${d + i} h1v1H${g + i}z`) : r.push(
1119
1119
  `M${u + i},${d + i} h${g + 1 - u}v1H${u + i}z`
1120
1120
  );
1121
1121
  return;
1122
1122
  }
1123
- p && u === null && (u = g);
1123
+ h && u === null && (u = g);
1124
1124
  });
1125
1125
  }), r.join("");
1126
1126
  }
1127
1127
  function Ze(e, i) {
1128
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));
1129
1129
  }
1130
- function Mr(e, i, r, l) {
1130
+ function Rr(e, i, r, l) {
1131
1131
  if (l == null)
1132
1132
  return null;
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;
1133
+ const d = e.length + r * 2, u = Math.floor(i * Mr), h = d / i, g = (l.width || u) * h, a = (l.height || u) * h, t = l.x == null ? e.length / 2 - g / 2 : l.x * h, s = l.y == null ? e.length / 2 - a / 2 : l.y * h, o = l.opacity == null ? 1 : l.opacity;
1134
1134
  let c = null;
1135
1135
  if (l.excavate) {
1136
- let f = Math.floor(t), h = Math.floor(s), x = Math.ceil(g + t - f), N = Math.ceil(a + s - h);
1137
- c = { x: f, y: h, w: x, h: N };
1136
+ let p = Math.floor(t), f = Math.floor(s), x = Math.ceil(g + t - p), N = Math.ceil(a + s - f);
1137
+ c = { x: p, y: f, w: x, h: N };
1138
1138
  }
1139
1139
  const m = l.crossOrigin;
1140
1140
  return { x: t, y: s, h: a, w: g, excavation: c, opacity: o, crossOrigin: m };
1141
1141
  }
1142
- function Rr(e, i) {
1143
- return i != null ? Math.max(Math.floor(i), 0) : e ? Er : Pr;
1142
+ function Fr(e, i) {
1143
+ return i != null ? Math.max(Math.floor(i), 0) : e ? Pr : Ar;
1144
1144
  }
1145
1145
  function Je({
1146
1146
  value: e,
@@ -1149,14 +1149,14 @@ function Je({
1149
1149
  includeMargin: l,
1150
1150
  marginSize: d,
1151
1151
  imageSettings: u,
1152
- size: p,
1152
+ size: h,
1153
1153
  boostLevel: g
1154
1154
  }) {
1155
1155
  let a = A.useMemo(() => {
1156
- const f = (Array.isArray(e) ? e : [e]).reduce((h, x) => (h.push(...V.QrSegment.makeSegments(x)), h), []);
1156
+ const p = (Array.isArray(e) ? e : [e]).reduce((f, x) => (f.push(...V.QrSegment.makeSegments(x)), f), []);
1157
1157
  return V.QrCode.encodeSegments(
1158
- f,
1159
- Sr[i],
1158
+ p,
1159
+ Er[i],
1160
1160
  r,
1161
1161
  void 0,
1162
1162
  void 0,
@@ -1165,19 +1165,19 @@ function Je({
1165
1165
  }, [e, i, r, g]);
1166
1166
  const { cells: t, margin: s, numCells: o, calculatedImageSettings: c } = A.useMemo(() => {
1167
1167
  let m = a.getModules();
1168
- const f = Rr(l, d), h = m.length + f * 2, x = Mr(
1168
+ const p = Fr(l, d), f = m.length + p * 2, x = Rr(
1169
1169
  m,
1170
+ h,
1170
1171
  p,
1171
- f,
1172
1172
  u
1173
1173
  );
1174
1174
  return {
1175
1175
  cells: m,
1176
- margin: f,
1177
- numCells: h,
1176
+ margin: p,
1177
+ numCells: f,
1178
1178
  calculatedImageSettings: x
1179
1179
  };
1180
- }, [a, p, u, l, d]);
1180
+ }, [a, h, u, l, d]);
1181
1181
  return {
1182
1182
  qrcode: a,
1183
1183
  margin: s,
@@ -1186,19 +1186,19 @@ function Je({
1186
1186
  calculatedImageSettings: c
1187
1187
  };
1188
1188
  }
1189
- var Fr = (function() {
1189
+ var Ir = (function() {
1190
1190
  try {
1191
1191
  new Path2D().addPath(new Path2D());
1192
1192
  } catch {
1193
1193
  return !1;
1194
1194
  }
1195
1195
  return !0;
1196
- })(), Ir = A.forwardRef(
1196
+ })(), Lr = A.forwardRef(
1197
1197
  function(i, r) {
1198
1198
  const l = i, {
1199
1199
  value: d,
1200
1200
  size: u = Ve,
1201
- level: p = He,
1201
+ level: h = He,
1202
1202
  bgColor: g = Ke,
1203
1203
  fgColor: a = Ge,
1204
1204
  includeMargin: t = Ye,
@@ -1206,7 +1206,7 @@ var Fr = (function() {
1206
1206
  boostLevel: o,
1207
1207
  marginSize: c,
1208
1208
  imageSettings: m
1209
- } = l, h = ie(l, [
1209
+ } = l, f = ie(l, [
1210
1210
  "value",
1211
1211
  "size",
1212
1212
  "level",
@@ -1217,14 +1217,14 @@ var Fr = (function() {
1217
1217
  "boostLevel",
1218
1218
  "marginSize",
1219
1219
  "imageSettings"
1220
- ]), { style: x } = h, N = ie(h, ["style"]), w = m?.src, _ = A.useRef(null), C = A.useRef(null), M = A.useCallback(
1220
+ ]), { style: x } = f, N = ie(f, ["style"]), w = m?.src, _ = A.useRef(null), C = A.useRef(null), M = A.useCallback(
1221
1221
  (O) => {
1222
1222
  _.current = O, typeof r == "function" ? r(O) : r && (r.current = O);
1223
1223
  },
1224
1224
  [r]
1225
1225
  ), [k, z] = A.useState(!1), { margin: F, cells: y, numCells: D, calculatedImageSettings: P } = Je({
1226
1226
  value: d,
1227
- level: p,
1227
+ level: h,
1228
1228
  minVersion: s,
1229
1229
  boostLevel: o,
1230
1230
  includeMargin: t,
@@ -1246,7 +1246,7 @@ var Fr = (function() {
1246
1246
  const ve = window.devicePixelRatio || 1;
1247
1247
  O.height = O.width = u * ve;
1248
1248
  const ye = u / D * ve;
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) {
1249
+ j.scale(ye, ye), j.fillStyle = g, j.fillRect(0, 0, D, D), j.fillStyle = a, Ir ? j.fill(new Path2D(We(Q, F))) : y.forEach(function(ct, dt) {
1250
1250
  ct.forEach(function(ut, ft) {
1251
1251
  ut && j.fillRect(ft + F, dt + F, 1, 1);
1252
1252
  });
@@ -1287,13 +1287,13 @@ var Fr = (function() {
1287
1287
  ), q);
1288
1288
  }
1289
1289
  );
1290
- Ir.displayName = "QRCodeCanvas";
1290
+ Lr.displayName = "QRCodeCanvas";
1291
1291
  var et = A.forwardRef(
1292
1292
  function(i, r) {
1293
1293
  const l = i, {
1294
1294
  value: d,
1295
1295
  size: u = Ve,
1296
- level: p = He,
1296
+ level: h = He,
1297
1297
  bgColor: g = Ke,
1298
1298
  fgColor: a = Ge,
1299
1299
  includeMargin: t = Ye,
@@ -1301,8 +1301,8 @@ var et = A.forwardRef(
1301
1301
  boostLevel: o,
1302
1302
  title: c,
1303
1303
  marginSize: m,
1304
- imageSettings: f
1305
- } = l, h = ie(l, [
1304
+ imageSettings: p
1305
+ } = l, f = ie(l, [
1306
1306
  "value",
1307
1307
  "size",
1308
1308
  "level",
@@ -1316,22 +1316,22 @@ var et = A.forwardRef(
1316
1316
  "imageSettings"
1317
1317
  ]), { margin: x, cells: N, numCells: w, calculatedImageSettings: _ } = Je({
1318
1318
  value: d,
1319
- level: p,
1319
+ level: h,
1320
1320
  minVersion: s,
1321
1321
  boostLevel: o,
1322
1322
  includeMargin: t,
1323
1323
  marginSize: m,
1324
- imageSettings: f,
1324
+ imageSettings: p,
1325
1325
  size: u
1326
1326
  });
1327
1327
  let C = N, M = null;
1328
- f != null && _ != null && (_.excavation != null && (C = Ze(
1328
+ p != null && _ != null && (_.excavation != null && (C = Ze(
1329
1329
  N,
1330
1330
  _.excavation
1331
1331
  )), M = /* @__PURE__ */ A.createElement(
1332
1332
  "image",
1333
1333
  {
1334
- href: f.src,
1334
+ href: p.src,
1335
1335
  height: _.h,
1336
1336
  width: _.w,
1337
1337
  x: _.x + x,
@@ -1350,7 +1350,7 @@ var et = A.forwardRef(
1350
1350
  viewBox: `0 0 ${w} ${w}`,
1351
1351
  ref: r,
1352
1352
  role: "img"
1353
- }, h),
1353
+ }, f),
1354
1354
  !!c && /* @__PURE__ */ A.createElement("title", null, c),
1355
1355
  /* @__PURE__ */ A.createElement(
1356
1356
  "path",
@@ -1366,10 +1366,10 @@ var et = A.forwardRef(
1366
1366
  }
1367
1367
  );
1368
1368
  et.displayName = "QRCodeSVG";
1369
- function Lr(e, i) {
1369
+ function kr(e, i) {
1370
1370
  ue({ title: e, type: i });
1371
1371
  }
1372
- function kr({
1372
+ function Dr({
1373
1373
  onToast: e,
1374
1374
  /* eslint-disable @typescript-eslint/no-unused-vars -- destructured to exclude from divProps spread */
1375
1375
  background: i,
@@ -1378,10 +1378,10 @@ function kr({
1378
1378
  padding: d,
1379
1379
  borderRadius: u,
1380
1380
  /* eslint-enable @typescript-eslint/no-unused-vars */
1381
- ...p
1381
+ ...h
1382
1382
  }) {
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;
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(
1383
+ const { currentSlug: g } = de(), a = e ?? kr, t = g.split("/")[1], s = t !== void 0, { data: o } = Ae(), c = o?.id, m = o === void 0;
1384
+ return /* @__PURE__ */ n.jsx("div", { ...h, children: /* @__PURE__ */ n.jsx(Ft, { children: /* @__PURE__ */ n.jsx(It, { children: /* @__PURE__ */ n.jsx(Lt, { children: s ? /* @__PURE__ */ n.jsx(
1385
1385
  kt,
1386
1386
  {
1387
1387
  token: t,
@@ -1396,17 +1396,17 @@ function kr({
1396
1396
  }
1397
1397
  ) }) }) }) });
1398
1398
  }
1399
- const oe = "profile/", Dr = /* @__PURE__ */ new Set(["orders", "subscriptions"]);
1399
+ const oe = "profile/", Or = /* @__PURE__ */ new Set(["orders", "subscriptions"]);
1400
1400
  function Pe(e) {
1401
1401
  return e.startsWith(oe) ? e.slice(oe.length) : e;
1402
1402
  }
1403
- function Or({
1403
+ function zr({
1404
1404
  children: e
1405
1405
  }) {
1406
1406
  const { currentSlug: i, previousSlug: r, navigate: l } = de();
1407
1407
  function d(u) {
1408
- const p = u.split("/")[0] ?? "";
1409
- l(Dr.has(p) ? `${oe}${u}` : u);
1408
+ const h = u.split("/")[0] ?? "";
1409
+ l(Or.has(h) ? `${oe}${u}` : u);
1410
1410
  }
1411
1411
  return /* @__PURE__ */ n.jsx(
1412
1412
  xt,
@@ -1450,11 +1450,11 @@ function rt() {
1450
1450
  }
1451
1451
  });
1452
1452
  }
1453
- function zr({
1453
+ function Tr({
1454
1454
  account: e,
1455
1455
  onClose: i
1456
1456
  }) {
1457
- const { t: r } = R(), { isMobile: l } = X(), d = me(), u = tt(), p = rt(), g = d.data?.allow_name_edit === !1, a = Yt(
1457
+ const { t: r } = R(), { isMobile: l } = X(), d = me(), u = tt(), h = rt(), g = d.data?.allow_name_edit === !1, a = Xt(
1458
1458
  se({
1459
1459
  first_name: g ? L() : L().min(1, r("first_name_is_required")),
1460
1460
  last_name: g ? L() : L().min(1, r("last_name_is_required")),
@@ -1472,10 +1472,10 @@ function zr({
1472
1472
  }
1473
1473
  }
1474
1474
  ), t = a.handleSubmit(async (s) => {
1475
- if (!p.isPending)
1475
+ if (!h.isPending)
1476
1476
  try {
1477
1477
  const o = await d.refetch({ throwOnError: !0 });
1478
- await p.mutateAsync({
1478
+ await h.mutateAsync({
1479
1479
  ...o.data?.allow_name_edit !== !1 ? { first_name: s.first_name, last_name: s.last_name } : {},
1480
1480
  phone: s.phone_number ?? "",
1481
1481
  bio: s.bio ?? "",
@@ -1486,7 +1486,7 @@ function zr({
1486
1486
  }
1487
1487
  });
1488
1488
  return /* @__PURE__ */ n.jsx(
1489
- wr,
1489
+ Nr,
1490
1490
  {
1491
1491
  control: a.control,
1492
1492
  isOpen: !0,
@@ -1494,7 +1494,7 @@ function zr({
1494
1494
  t();
1495
1495
  },
1496
1496
  handleClose: () => {
1497
- !p.isPending && !a.formState.isSubmitting && i();
1497
+ !h.isPending && !a.formState.isSubmitting && i();
1498
1498
  },
1499
1499
  email: e.email,
1500
1500
  languageOptions: u.data?.map((s) => ({
@@ -1502,7 +1502,7 @@ function zr({
1502
1502
  value: s.code
1503
1503
  })),
1504
1504
  errorMsg: a.formState.errors.root?.message ?? (u.error ? r("profile_languages_unavailable") : void 0),
1505
- isSubmitting: p.isPending || a.formState.isSubmitting,
1505
+ isSubmitting: h.isPending || a.formState.isSubmitting,
1506
1506
  disableNameEdit: g,
1507
1507
  presentation: l ? "bottom-sheet" : "dialog"
1508
1508
  }
@@ -1517,14 +1517,14 @@ function ge() {
1517
1517
  });
1518
1518
  }
1519
1519
  function nt(e) {
1520
- const i = Zt(), { locale: r } = T();
1520
+ const i = Jt(), { locale: r } = T();
1521
1521
  return $({
1522
1522
  queryKey: ["memberStorefront", "profile", "countries", r],
1523
1523
  queryFn: () => i.listCountries({ languageIso: r }),
1524
1524
  enabled: e
1525
1525
  });
1526
1526
  }
1527
- function Tr() {
1527
+ function Br() {
1528
1528
  const e = B(), i = H();
1529
1529
  return K({
1530
1530
  mutationFn: async ({
@@ -1537,7 +1537,7 @@ function Tr() {
1537
1537
  onSuccess: () => i.invalidateQueries({ queryKey: pe })
1538
1538
  });
1539
1539
  }
1540
- function Br() {
1540
+ function Ur() {
1541
1541
  const e = B(), i = H();
1542
1542
  return K({
1543
1543
  mutationFn: (r) => e.deleteAddress(r),
@@ -1565,7 +1565,7 @@ function st({
1565
1565
  selectedAddress: r,
1566
1566
  onAddressCreated: l
1567
1567
  }) {
1568
- const { t: d } = R(), { isMobile: u } = X(), { locale: p } = T(), g = nt(e), a = ge(), t = Tr(), s = v.useCallback(
1568
+ const { t: d } = R(), { isMobile: u } = X(), { locale: h } = T(), g = nt(e), a = ge(), t = Br(), s = v.useCallback(
1569
1569
  (o) => Promise.resolve(
1570
1570
  g.data?.countries.find((c) => c.code === o)?.states.map((c) => ({
1571
1571
  name: c.name,
@@ -1585,7 +1585,7 @@ function st({
1585
1585
  selectedAddress: r,
1586
1586
  presentation: u ? "bottom-sheet" : "dialog",
1587
1587
  defaultCountry: r?.country_code ?? a.data?.addresses.find((o) => o.default)?.country ?? "US",
1588
- languageIso: p,
1588
+ languageIso: h,
1589
1589
  countries: g.data?.countries.map((o) => ({
1590
1590
  iso: o.code,
1591
1591
  name: o.name
@@ -1626,8 +1626,8 @@ function st({
1626
1626
  }
1627
1627
  );
1628
1628
  }
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);
1629
+ function $r() {
1630
+ const { t: e } = R(), i = ge(), r = Ur(), l = v.useRef(null), [d, u] = v.useState(), [h, g] = v.useState(null);
1631
1631
  if (i.error) throw i.error;
1632
1632
  function a() {
1633
1633
  requestAnimationFrame(() => l.current?.focus());
@@ -1702,14 +1702,14 @@ function Ur() {
1702
1702
  title: e("delete_address"),
1703
1703
  description: e("delete_address_message"),
1704
1704
  actionText: e("delete"),
1705
- openDialog: p !== null,
1705
+ openDialog: h !== null,
1706
1706
  setOpenDialog: (t) => {
1707
1707
  !t && !r.isPending && (g(null), a());
1708
1708
  },
1709
1709
  isLoading: r.isPending,
1710
1710
  errorMsg: r.error ? e("unable_to_delete_address") : void 0,
1711
1711
  onAction: () => {
1712
- !p || r.isPending || r.mutate(p.id, {
1712
+ !h || r.isPending || r.mutate(h.id, {
1713
1713
  onSuccess: () => {
1714
1714
  g(null), a();
1715
1715
  }
@@ -1736,14 +1736,14 @@ function at() {
1736
1736
  }
1737
1737
  });
1738
1738
  }
1739
- function $r() {
1739
+ function qr() {
1740
1740
  const { t: e } = R(), { locale: i } = T(), r = at(), l = me();
1741
1741
  if (r.error) throw r.error;
1742
1742
  if (r.isPending || !l.data)
1743
1743
  return /* @__PURE__ */ n.jsx("p", { role: "status", children: e("profile_loading") });
1744
1744
  if (!r.data)
1745
1745
  return /* @__PURE__ */ n.jsx("p", { role: "status", children: e("profile_points_unavailable") });
1746
- const d = r.data.points_ledgers, u = d[0]?.total_balance ?? 0, p = u === 1 ? l.data.reward_points_label_singular : l.data.reward_points_label_plural, g = l.data.reward_points_label_plural, a = p.charAt(0).toLocaleUpperCase(i) + p.slice(1), t = g.charAt(0).toLocaleUpperCase(i) + g.slice(1), s = new Intl.NumberFormat(i), o = new Intl.DateTimeFormat(i, { dateStyle: "medium" });
1746
+ const d = r.data.points_ledgers, u = d[0]?.total_balance ?? 0, h = u === 1 ? l.data.reward_points_label_singular : l.data.reward_points_label_plural, g = l.data.reward_points_label_plural, a = h.charAt(0).toLocaleUpperCase(i) + h.slice(1), t = g.charAt(0).toLocaleUpperCase(i) + g.slice(1), s = new Intl.NumberFormat(i), o = new Intl.DateTimeFormat(i, { dateStyle: "medium" });
1747
1747
  return /* @__PURE__ */ n.jsxs("div", { className: "space-y-6", children: [
1748
1748
  /* @__PURE__ */ n.jsxs("section", { className: "bg-card text-card-foreground border-border space-y-2 rounded-xl border p-6", children: [
1749
1749
  /* @__PURE__ */ n.jsx("h2", { className: "text-muted-foreground text-sm", children: e("points_available", { label: a }) }),
@@ -1781,7 +1781,7 @@ function $r() {
1781
1781
  ] })
1782
1782
  ] });
1783
1783
  }
1784
- function qr({
1784
+ function Qr({
1785
1785
  children: e
1786
1786
  }) {
1787
1787
  const i = v.useRef(null), [r, l] = v.useState(null);
@@ -1797,12 +1797,12 @@ function qr({
1797
1797
  )
1798
1798
  ] });
1799
1799
  }
1800
- function Qr({
1800
+ function Vr({
1801
1801
  onClose: e
1802
1802
  }) {
1803
1803
  const i = ge(), { t: r } = R(), { isMobile: l } = X();
1804
- return /* @__PURE__ */ n.jsx(qr, { children: i.data ? /* @__PURE__ */ n.jsx(
1805
- Vr,
1804
+ return /* @__PURE__ */ n.jsx(Qr, { children: i.data ? /* @__PURE__ */ n.jsx(
1805
+ Hr,
1806
1806
  {
1807
1807
  initialAddresses: i.data.addresses,
1808
1808
  onClose: e
@@ -1832,11 +1832,11 @@ function Qr({
1832
1832
  }
1833
1833
  ) });
1834
1834
  }
1835
- function Vr({
1835
+ function Hr({
1836
1836
  initialAddresses: e,
1837
1837
  onClose: i
1838
1838
  }) {
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(
1839
+ const { t: r } = R(), { isMobile: l } = X(), d = B(), u = H(), [h, g] = v.useState(), a = v.useMemo(() => Tt(d), [d]), [t] = v.useState(
1840
1840
  () => e.map(xe)
1841
1841
  );
1842
1842
  async function s() {
@@ -1875,7 +1875,7 @@ function Vr({
1875
1875
  defaultBillingAddressId: t.find((m) => m.default)?.id,
1876
1876
  presentation: l ? "bottom-sheet" : "dialog",
1877
1877
  t: (m) => r(m),
1878
- error: p,
1878
+ error: h,
1879
1879
  isSubmitting: c.isPending || o.isActive,
1880
1880
  preventClose: c.isPending || o.isActive,
1881
1881
  onClose: () => {
@@ -1886,15 +1886,15 @@ function Vr({
1886
1886
  },
1887
1887
  renderAddressFormDialog: ({
1888
1888
  isOpen: m,
1889
- onClose: f,
1890
- onAddressCreated: h
1889
+ onClose: p,
1890
+ onAddressCreated: f
1891
1891
  }) => m ? /* @__PURE__ */ n.jsx(
1892
1892
  st,
1893
1893
  {
1894
1894
  isOpen: !0,
1895
- onClose: f,
1895
+ onClose: p,
1896
1896
  selectedAddress: null,
1897
- onAddressCreated: h
1897
+ onAddressCreated: f
1898
1898
  }
1899
1899
  ) : null
1900
1900
  }
@@ -1916,18 +1916,18 @@ function ot() {
1916
1916
  onSuccess: () => i.invalidateQueries({ queryKey: J.paymentMethods.all })
1917
1917
  });
1918
1918
  }
1919
- function Hr() {
1919
+ function Kr() {
1920
1920
  const e = B(), i = H();
1921
1921
  return K({
1922
1922
  mutationFn: (r) => e.deletePaymentMethod(r),
1923
1923
  onSuccess: () => i.invalidateQueries({ queryKey: J.paymentMethods.all })
1924
1924
  });
1925
1925
  }
1926
- function Kr({
1926
+ function Gr({
1927
1927
  card: e,
1928
1928
  onClose: i
1929
1929
  }) {
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(
1930
+ const { t: r } = R(), { locale: l } = T(), { isMobile: d } = X(), u = nt(!0), h = ot(), g = v.useMemo(() => Ht(e), [e]), a = v.useCallback(
1931
1931
  (t) => Promise.resolve(
1932
1932
  u.data?.countries.find((s) => s.code === t)?.states.map((s) => ({
1933
1933
  name: s.name,
@@ -1950,15 +1950,15 @@ function Kr({
1950
1950
  fetchStates: a,
1951
1951
  languageIso: l,
1952
1952
  presentation: d ? "bottom-sheet" : "dialog",
1953
- isSubmitting: p.isPending,
1954
- error: p.error ? r("failed_to_update_payment_method") : void 0,
1953
+ isSubmitting: h.isPending,
1954
+ error: h.error ? r("failed_to_update_payment_method") : void 0,
1955
1955
  onClose: () => {
1956
- p.isPending || i();
1956
+ h.isPending || i();
1957
1957
  },
1958
1958
  onSubmit: (t) => {
1959
- if (p.isPending) return;
1959
+ if (h.isPending) return;
1960
1960
  const s = t.billing_address;
1961
- p.mutate(
1961
+ h.mutate(
1962
1962
  {
1963
1963
  id: e.id,
1964
1964
  body: {
@@ -1982,17 +1982,17 @@ function Kr({
1982
1982
  }
1983
1983
  );
1984
1984
  }
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);
1987
- function m() {
1985
+ function Yr() {
1986
+ const { t: e } = R(), { preview: i } = fe(), r = it(), l = ot(), d = Kr(), u = (f) => Gt(f, e) ?? e("unable_to_delete_payment_method"), h = v.useRef(null), g = v.useRef(null), [a, t] = v.useState(!1), [s, o] = v.useState(null), [c, m] = v.useState(null);
1987
+ function p() {
1988
1988
  requestAnimationFrame(() => {
1989
- (u.current?.isConnected ? u.current : p.current?.querySelector("button") ?? p.current)?.focus();
1989
+ (h.current?.isConnected ? h.current : g.current?.querySelector("button") ?? g.current)?.focus();
1990
1990
  });
1991
1991
  }
1992
1992
  return /* @__PURE__ */ n.jsxs(
1993
1993
  "div",
1994
1994
  {
1995
- ref: p,
1995
+ ref: g,
1996
1996
  role: "region",
1997
1997
  tabIndex: -1,
1998
1998
  "aria-label": e("payment_methods"),
@@ -2039,8 +2039,8 @@ function Gr() {
2039
2039
  {
2040
2040
  variant: "outline",
2041
2041
  size: "sm",
2042
- onClick: (h) => {
2043
- u.current = h.currentTarget, s(f);
2042
+ onClick: (x) => {
2043
+ h.current = x.currentTarget, o(f);
2044
2044
  },
2045
2045
  disabled: i || l.isPending || d.isPending,
2046
2046
  children: e("edit_card")
@@ -2067,8 +2067,8 @@ function Gr() {
2067
2067
  variant: "ghost",
2068
2068
  size: "sm",
2069
2069
  disabled: i || l.isPending || d.isPending,
2070
- onClick: (h) => {
2071
- u.current = h.currentTarget, d.reset(), c(f);
2070
+ onClick: (x) => {
2071
+ h.current = x.currentTarget, d.reset(), m(f);
2072
2072
  },
2073
2073
  children: e("delete_card")
2074
2074
  }
@@ -2083,26 +2083,26 @@ function Gr() {
2083
2083
  E,
2084
2084
  {
2085
2085
  onClick: (f) => {
2086
- u.current = f.currentTarget, a(!0);
2086
+ h.current = f.currentTarget, t(!0);
2087
2087
  },
2088
2088
  disabled: i || l.isPending || d.isPending,
2089
2089
  children: e("add_payment_method")
2090
2090
  }
2091
2091
  ),
2092
- g && /* @__PURE__ */ n.jsx(
2093
- Qr,
2092
+ a && /* @__PURE__ */ n.jsx(
2093
+ Vr,
2094
2094
  {
2095
2095
  onClose: () => {
2096
- a(!1), m();
2096
+ t(!1), p();
2097
2097
  }
2098
2098
  }
2099
2099
  ),
2100
- t && /* @__PURE__ */ n.jsx(
2101
- Kr,
2100
+ s && /* @__PURE__ */ n.jsx(
2101
+ Gr,
2102
2102
  {
2103
- card: t,
2103
+ card: s,
2104
2104
  onClose: () => {
2105
- s(null), m();
2105
+ o(null), p();
2106
2106
  }
2107
2107
  }
2108
2108
  ),
@@ -2112,16 +2112,16 @@ function Gr() {
2112
2112
  title: e("delete_credit_card"),
2113
2113
  description: e("delete_credit_card_message"),
2114
2114
  actionText: e("delete"),
2115
- openDialog: o !== null,
2115
+ openDialog: c !== null,
2116
2116
  setOpenDialog: (f) => {
2117
- !f && !d.isPending && (c(null), m());
2117
+ !f && !d.isPending && (m(null), p());
2118
2118
  },
2119
2119
  isLoading: d.isPending,
2120
- errorMsg: d.error ? e("unable_to_delete_payment_method") : void 0,
2120
+ errorMsg: d.error ? u(d.error) : void 0,
2121
2121
  onAction: () => {
2122
- o && !d.isPending && d.mutate(o.id, {
2122
+ c && !d.isPending && d.mutate(c.id, {
2123
2123
  onSuccess: () => {
2124
- c(null), m();
2124
+ m(null), p();
2125
2125
  }
2126
2126
  });
2127
2127
  }
@@ -2190,7 +2190,7 @@ function be({
2190
2190
  )
2191
2191
  ] });
2192
2192
  }
2193
- function Yr({
2193
+ function Xr({
2194
2194
  onOpen: e,
2195
2195
  triggerRef: i
2196
2196
  }) {
@@ -2229,24 +2229,24 @@ function lt(e, i, r) {
2229
2229
  return new Intl.DateTimeFormat("en-US", l).format(e);
2230
2230
  }
2231
2231
  }
2232
- function Xr(e, i) {
2232
+ function Wr(e, i) {
2233
2233
  if (!e) return null;
2234
2234
  const r = new Date(e);
2235
2235
  return Number.isNaN(r.getTime()) ? null : lt(r, i);
2236
2236
  }
2237
- function Wr(e, i) {
2237
+ function Zr(e, i) {
2238
2238
  if (!e) return null;
2239
2239
  const r = /* @__PURE__ */ new Date(`${e.slice(0, 10)}T00:00:00Z`);
2240
2240
  return Number.isNaN(r.getTime()) ? null : lt(r, i, "UTC");
2241
2241
  }
2242
- const Zr = se({
2242
+ const Jr = se({
2243
2243
  subscription: se({
2244
2244
  token: L(),
2245
2245
  plan_name: L().nullish(),
2246
2246
  next_billing_date: L().nullish()
2247
2247
  }).nullish()
2248
2248
  });
2249
- async function Jr(e = Ct) {
2249
+ async function en(e = Ct) {
2250
2250
  const i = await e(
2251
2251
  "/api/member-storefront/subscriptions/next",
2252
2252
  {
@@ -2256,32 +2256,32 @@ async function Jr(e = Ct) {
2256
2256
  );
2257
2257
  if (!i.ok)
2258
2258
  throw new Error(`Next subscription request failed (${i.status})`);
2259
- const { subscription: r } = Zr.parse(await i.json());
2259
+ const { subscription: r } = Jr.parse(await i.json());
2260
2260
  return r ? {
2261
2261
  token: r.token,
2262
2262
  planName: r.plan_name ?? null,
2263
2263
  nextBillingDate: r.next_billing_date ?? null
2264
2264
  } : null;
2265
2265
  }
2266
- function en() {
2267
- const e = Jt(), i = v.useMemo(() => Et(e), [e]);
2266
+ function tn() {
2267
+ const e = er(), i = v.useMemo(() => Et(e), [e]);
2268
2268
  return $({
2269
2269
  queryKey: ["memberStorefront", "profile", "latest-order"],
2270
2270
  queryFn: async () => (await i.fetchCustomerOrders({ limit: 1 })).orders[0] ?? null
2271
2271
  });
2272
2272
  }
2273
- function tn() {
2273
+ function rn() {
2274
2274
  const { fetch: e } = fe();
2275
2275
  return $({
2276
2276
  queryKey: ["memberStorefront", "profile", "next-subscription"],
2277
- queryFn: () => Jr(e)
2277
+ queryFn: () => en(e)
2278
2278
  });
2279
2279
  }
2280
- function rn({
2280
+ function nn({
2281
2281
  onOpen: e,
2282
2282
  triggerRef: i
2283
2283
  }) {
2284
- const { t: r } = R(), { locale: l } = T(), d = en();
2284
+ const { t: r } = R(), { locale: l } = T(), d = tn();
2285
2285
  if (d.error)
2286
2286
  return /* @__PURE__ */ n.jsx(
2287
2287
  be,
@@ -2292,27 +2292,27 @@ function rn({
2292
2292
  onRetry: () => void d.refetch()
2293
2293
  }
2294
2294
  );
2295
- const u = d.data, p = d.isPending ? r("profile_loading") : u ? [
2295
+ const u = d.data, h = d.isPending ? r("profile_loading") : u ? [
2296
2296
  u.order_number ? `#${u.order_number}` : null,
2297
- Xr(u.created_at, l)
2297
+ Wr(u.created_at, l)
2298
2298
  ].filter(Boolean).join(" · ") || r("profile_view_orders") : r("profile_no_orders");
2299
2299
  return /* @__PURE__ */ n.jsx(
2300
2300
  _e,
2301
2301
  {
2302
2302
  icon: ke,
2303
2303
  label: r("profile_latest_order"),
2304
- detail: p,
2304
+ detail: h,
2305
2305
  busy: d.isPending,
2306
2306
  onOpen: () => e(u?.token ?? null),
2307
2307
  triggerRef: i
2308
2308
  }
2309
2309
  );
2310
2310
  }
2311
- function nn({
2311
+ function sn({
2312
2312
  onOpen: e,
2313
2313
  triggerRef: i
2314
2314
  }) {
2315
- const { t: r } = R(), { locale: l } = T(), d = tn();
2315
+ const { t: r } = R(), { locale: l } = T(), d = rn();
2316
2316
  if (d.error)
2317
2317
  return /* @__PURE__ */ n.jsx(
2318
2318
  be,
@@ -2323,9 +2323,9 @@ function nn({
2323
2323
  onRetry: () => void d.refetch()
2324
2324
  }
2325
2325
  );
2326
- const u = d.data, p = Wr(u?.nextBillingDate, l), g = d.isPending ? r("profile_loading") : u ? [
2326
+ const u = d.data, h = Zr(u?.nextBillingDate, l), g = d.isPending ? r("profile_loading") : u ? [
2327
2327
  u.planName,
2328
- p ? r("profile_next_bill_on", { date: p }) : null
2328
+ h ? r("profile_next_bill_on", { date: h }) : null
2329
2329
  ].filter(Boolean).join(" · ") || r("profile_view_subscriptions") : r("profile_no_next_subscription");
2330
2330
  return /* @__PURE__ */ n.jsx(
2331
2331
  _e,
@@ -2339,7 +2339,7 @@ function nn({
2339
2339
  }
2340
2340
  );
2341
2341
  }
2342
- function sn({
2342
+ function an({
2343
2343
  onOpenPayment: e,
2344
2344
  paymentTriggerRef: i,
2345
2345
  onOpenOrder: r,
@@ -2347,20 +2347,20 @@ function sn({
2347
2347
  onOpenSubscription: d,
2348
2348
  subscriptionTriggerRef: u
2349
2349
  }) {
2350
- const { t: p } = R();
2351
- return /* @__PURE__ */ n.jsxs("section", { "aria-label": p("profile_at_a_glance"), className: "space-y-3", children: [
2352
- /* @__PURE__ */ n.jsx("h2", { className: "text-muted-foreground text-sm font-medium", children: p("profile_at_a_glance") }),
2350
+ const { t: h } = R();
2351
+ return /* @__PURE__ */ n.jsxs("section", { "aria-label": h("profile_at_a_glance"), className: "space-y-3", children: [
2352
+ /* @__PURE__ */ n.jsx("h2", { className: "text-muted-foreground text-sm font-medium", children: h("profile_at_a_glance") }),
2353
2353
  /* @__PURE__ */ n.jsxs("div", { className: "space-y-3", children: [
2354
2354
  /* @__PURE__ */ n.jsx(
2355
- Yr,
2355
+ Xr,
2356
2356
  {
2357
2357
  onOpen: e,
2358
2358
  triggerRef: i
2359
2359
  }
2360
2360
  ),
2361
- /* @__PURE__ */ n.jsx(rn, { onOpen: r, triggerRef: l }),
2361
+ /* @__PURE__ */ n.jsx(nn, { onOpen: r, triggerRef: l }),
2362
2362
  /* @__PURE__ */ n.jsx(
2363
- nn,
2363
+ sn,
2364
2364
  {
2365
2365
  onOpen: d,
2366
2366
  triggerRef: u
@@ -2369,7 +2369,7 @@ function sn({
2369
2369
  ] })
2370
2370
  ] });
2371
2371
  }
2372
- function an({
2372
+ function on({
2373
2373
  initialLanguage: e
2374
2374
  }) {
2375
2375
  const { t: i } = R(), r = tt(), l = rt(), [d, u] = v.useState(e);
@@ -2378,8 +2378,8 @@ function an({
2378
2378
  "form",
2379
2379
  {
2380
2380
  className: "bg-card border-border space-y-5 rounded-xl border p-6",
2381
- onSubmit: (p) => {
2382
- p.preventDefault(), !(!d || l.isPending) && l.mutate(
2381
+ onSubmit: (h) => {
2382
+ h.preventDefault(), !(!d || l.isPending) && l.mutate(
2383
2383
  { language_iso: d },
2384
2384
  {
2385
2385
  onSuccess: () => ue({ title: i("profile_updated"), type: "success" })
@@ -2396,12 +2396,12 @@ function an({
2396
2396
  id: "profile-language",
2397
2397
  className: "border-input bg-background text-foreground focus-visible:ring-ring h-10 w-full rounded-md border px-3 text-sm focus-visible:ring-2",
2398
2398
  value: d,
2399
- onChange: (p) => u(p.target.value),
2399
+ onChange: (h) => u(h.target.value),
2400
2400
  disabled: r.isPending || l.isPending,
2401
2401
  required: !0,
2402
2402
  children: [
2403
2403
  /* @__PURE__ */ n.jsx("option", { value: "", children: i("select_an_option") }),
2404
- r.data?.map((p) => /* @__PURE__ */ n.jsx("option", { value: p.code, children: p.name }, p.code))
2404
+ r.data?.map((h) => /* @__PURE__ */ n.jsx("option", { value: h.code, children: h.name }, h.code))
2405
2405
  ]
2406
2406
  }
2407
2407
  )
@@ -2419,17 +2419,17 @@ function an({
2419
2419
  }
2420
2420
  );
2421
2421
  }
2422
- function on() {
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({});
2422
+ function ln() {
2423
+ const { t: e } = R(), i = Ae(), r = me(), { currentSlug: l, navigate: d } = de(), { preview: u } = fe(), h = at(), { locale: g } = T(), a = v.useRef(""), t = v.useRef({});
2424
2424
  if (i.error) throw i.error;
2425
2425
  if (r.error) throw r.error;
2426
2426
  if (!i.data || !r.data)
2427
2427
  return /* @__PURE__ */ n.jsx("p", { role: "status", className: "text-muted-foreground p-6", children: e("profile_loading") });
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 = [
2428
+ const s = i.data, o = `${s.first_name} ${s.last_name}`.trim() || e("account_fallback"), c = Yt(s), m = l === "profile/language", p = l === "profile/addresses", f = 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 = [
2429
2429
  {
2430
2430
  slug: "profile/information",
2431
2431
  label: e("personal_information"),
2432
- icon: cr,
2432
+ icon: dr,
2433
2433
  dialog: !0
2434
2434
  },
2435
2435
  {
@@ -2437,7 +2437,7 @@ function on() {
2437
2437
  label: e("payment_methods"),
2438
2438
  icon: Fe
2439
2439
  },
2440
- { slug: "profile/addresses", label: e("shipping_addresses"), icon: er },
2440
+ { slug: "profile/addresses", label: e("shipping_addresses"), icon: tr },
2441
2441
  {
2442
2442
  slug: "orders",
2443
2443
  label: e("orders"),
@@ -2451,16 +2451,16 @@ function on() {
2451
2451
  {
2452
2452
  slug: "profile/language",
2453
2453
  label: e("language"),
2454
- icon: rr,
2454
+ icon: nr,
2455
2455
  value: s.language_iso?.toUpperCase()
2456
2456
  },
2457
- ...p.data ? [
2457
+ ...h.data ? [
2458
2458
  {
2459
2459
  slug: "profile/points",
2460
2460
  label: k,
2461
- icon: or,
2461
+ icon: lr,
2462
2462
  value: new Intl.NumberFormat(g).format(
2463
- p.data.points_ledgers[0]?.total_balance ?? 0
2463
+ h.data.points_ledgers[0]?.total_balance ?? 0
2464
2464
  )
2465
2465
  }
2466
2466
  ] : []
@@ -2478,17 +2478,17 @@ function on() {
2478
2478
  /* @__PURE__ */ n.jsx(Ce, { "aria-hidden": "true", className: "size-4" }),
2479
2479
  e("profile_back")
2480
2480
  ] }) }),
2481
- /* @__PURE__ */ n.jsx(Or, { children: N ? /* @__PURE__ */ n.jsx(At, {}) : /* @__PURE__ */ n.jsx(kr, {}) })
2481
+ /* @__PURE__ */ n.jsx(zr, { children: N ? /* @__PURE__ */ n.jsx(At, {}) : /* @__PURE__ */ n.jsx(Dr, {}) })
2482
2482
  ] }) : /* @__PURE__ */ n.jsxs("main", { className: "mx-auto w-full max-w-3xl space-y-8 p-4 sm:p-8", children: [
2483
- m || f || x || h ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
2483
+ m || p || x || f ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
2484
2484
  /* @__PURE__ */ n.jsxs(E, { variant: "ghost", onClick: F, children: [
2485
2485
  /* @__PURE__ */ n.jsx(Ce, { "aria-hidden": "true", className: "size-4" }),
2486
2486
  e("profile_back")
2487
2487
  ] }),
2488
2488
  /* @__PURE__ */ n.jsx("h1", { className: "text-2xl font-semibold", children: x ? k : e(
2489
- h ? "payment_methods" : f ? "shipping_addresses" : "language"
2489
+ f ? "payment_methods" : p ? "shipping_addresses" : "language"
2490
2490
  ) }),
2491
- h ? /* @__PURE__ */ n.jsx(Gr, {}) : f ? /* @__PURE__ */ n.jsx(Ur, {}) : x ? /* @__PURE__ */ n.jsx($r, {}) : /* @__PURE__ */ n.jsx(an, { initialLanguage: s.language_iso ?? "" })
2491
+ f ? /* @__PURE__ */ n.jsx(Yr, {}) : p ? /* @__PURE__ */ n.jsx($r, {}) : x ? /* @__PURE__ */ n.jsx(qr, {}) : /* @__PURE__ */ n.jsx(on, { initialLanguage: s.language_iso ?? "" })
2492
2492
  ] }) : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
2493
2493
  /* @__PURE__ */ n.jsxs(
2494
2494
  "section",
@@ -2498,15 +2498,15 @@ function on() {
2498
2498
  children: [
2499
2499
  /* @__PURE__ */ n.jsxs("div", { className: "flex flex-wrap items-center justify-between gap-4 sm:gap-6", children: [
2500
2500
  /* @__PURE__ */ n.jsxs("div", { className: "flex min-w-0 flex-1 items-center gap-3 sm:gap-4", children: [
2501
- /* @__PURE__ */ n.jsxs(yr, { className: "size-12 shrink-0 sm:size-16", children: [
2501
+ /* @__PURE__ */ n.jsxs(jr, { className: "size-12 shrink-0 sm:size-16", children: [
2502
2502
  /* @__PURE__ */ n.jsx(
2503
- jr,
2503
+ Cr,
2504
2504
  {
2505
2505
  src: s.avatar_url ?? void 0,
2506
2506
  alt: ""
2507
2507
  }
2508
2508
  ),
2509
- /* @__PURE__ */ n.jsx(Cr, { children: `${s.first_name[0] ?? ""}${s.last_name[0] ?? ""}` })
2509
+ /* @__PURE__ */ n.jsx(wr, { children: `${s.first_name[0] ?? ""}${s.last_name[0] ?? ""}` })
2510
2510
  ] }),
2511
2511
  /* @__PURE__ */ n.jsxs("div", { className: "min-w-0 space-y-1", children: [
2512
2512
  c && /* @__PURE__ */ n.jsx("p", { className: "text-muted-foreground text-xs font-medium", children: e("member_of", { company: r.data.name }) }),
@@ -2584,7 +2584,7 @@ function on() {
2584
2584
  }
2585
2585
  ),
2586
2586
  /* @__PURE__ */ n.jsx(
2587
- sn,
2587
+ an,
2588
2588
  {
2589
2589
  paymentTriggerRef: (y) => {
2590
2590
  t.current["profile/default-payment"] = y;
@@ -2606,7 +2606,7 @@ function on() {
2606
2606
  }
2607
2607
  }
2608
2608
  ),
2609
- p.error && /* @__PURE__ */ n.jsxs(
2609
+ h.error && /* @__PURE__ */ n.jsxs(
2610
2610
  "div",
2611
2611
  {
2612
2612
  role: "alert",
@@ -2618,9 +2618,9 @@ function on() {
2618
2618
  {
2619
2619
  variant: "outline",
2620
2620
  size: "sm",
2621
- disabled: p.isFetching,
2621
+ disabled: h.isFetching,
2622
2622
  onClick: () => {
2623
- p.refetch().then((y) => {
2623
+ h.refetch().then((y) => {
2624
2624
  y.isSuccess && requestAnimationFrame(
2625
2625
  () => (t.current["profile/points"] ?? t.current["profile/information"])?.focus()
2626
2626
  );
@@ -2640,19 +2640,19 @@ function on() {
2640
2640
  tabIndex: u ? -1 : void 0,
2641
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",
2642
2642
  children: [
2643
- /* @__PURE__ */ n.jsx(sr, { "aria-hidden": "true", className: "size-4" }),
2643
+ /* @__PURE__ */ n.jsx(ar, { "aria-hidden": "true", className: "size-4" }),
2644
2644
  e("sign_out")
2645
2645
  ]
2646
2646
  }
2647
2647
  )
2648
2648
  ] }),
2649
- l === "profile/information" && /* @__PURE__ */ n.jsx(zr, { account: s, onClose: F })
2649
+ l === "profile/information" && /* @__PURE__ */ n.jsx(Tr, { account: s, onClose: F })
2650
2650
  ] })
2651
2651
  ] });
2652
2652
  }
2653
- function Nn() {
2654
- return /* @__PURE__ */ n.jsx(Pt, { children: /* @__PURE__ */ n.jsx(on, {}) });
2653
+ function Sn() {
2654
+ return /* @__PURE__ */ n.jsx(Pt, { children: /* @__PURE__ */ n.jsx(ln, {}) });
2655
2655
  }
2656
2656
  export {
2657
- Nn as default
2657
+ Sn as default
2658
2658
  };