@fluid-app/fluid-cli-theme-dev 0.1.176 → 0.1.178
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dist-cli-preview/.vite/manifest.json +271 -282
- package/dist/dist-cli-preview/account-screens.js +1 -1
- package/dist/dist-cli-preview/chunks/{Breadcrumb-8-7shsB6.js → Breadcrumb-DLYQ2Vr1.js} +1 -1
- package/dist/dist-cli-preview/chunks/{Combobox-m3vSk0_A.js → Combobox-I60LziKt.js} +195 -163
- package/dist/dist-cli-preview/chunks/{ContactsScreen-CBjQOWmH.js → ContactsScreen-DWAUWpQz.js} +516 -547
- package/dist/dist-cli-preview/chunks/MediaScreen-BOQw5HIm.js +8 -0
- package/dist/dist-cli-preview/chunks/{MemberManagementProviders-WSjb3a8B.js → MemberManagementProviders-CYbE8v0N.js} +6 -6
- package/dist/dist-cli-preview/chunks/{MemberShareablesScreen-D-5-JyQq.js → MemberShareablesScreen-CzXDumR4.js} +1768 -1785
- package/dist/dist-cli-preview/chunks/{MessagingScreen-By-jZq6v.js → MessagingScreen-Ch9BYR8g.js} +8452 -11174
- package/dist/dist-cli-preview/chunks/{MobileActionSheet-ERpw3qUF.js → MobileActionSheet-k67c8wJk.js} +2 -2
- package/dist/dist-cli-preview/chunks/{MySiteScreen-JAGvVMx-.js → MySiteScreen-DnQNCsOZ.js} +40 -41
- package/dist/dist-cli-preview/chunks/{OrdersScreen-Cb32bBjd.js → OrdersScreen-Bwn7Je6W.js} +7 -7
- package/dist/dist-cli-preview/chunks/OrdersScreen-DJoXusa-.js +9 -0
- package/dist/dist-cli-preview/chunks/PlaylistsScreen-BoZ2Fver.js +8 -0
- package/dist/dist-cli-preview/chunks/{PortalTenantClientProvider-CguU_uRG.js → PortalTenantClientProvider-JAGrume8.js} +1 -1
- package/dist/dist-cli-preview/chunks/{ProfileScreen-CCWM6TBs.js → ProfileScreen-CUURwTbd.js} +193 -203
- package/dist/dist-cli-preview/chunks/{Select-5fzq5MB-.js → Select-97UR3puI.js} +204 -192
- package/dist/dist-cli-preview/chunks/{SubscriptionsScreen-DLdsaVJK.js → SubscriptionsScreen-D5TEWnpQ.js} +3 -3
- package/dist/dist-cli-preview/chunks/{Textarea-xoKqLVgY.js → Textarea-DlTzkeqw.js} +86 -67
- package/dist/dist-cli-preview/chunks/{account-screen-runtime-CCBl8DXt.js → account-screen-runtime-CVtcJ0Fb.js} +3867 -3911
- package/dist/dist-cli-preview/chunks/{arrow-left-CTYaRdTX.js → arrow-left-CVKbyXG0.js} +1 -1
- package/dist/dist-cli-preview/chunks/{cli-preview-CMcquUEN.js → cli-preview-S7GUnjUK.js} +9 -9
- package/dist/dist-cli-preview/chunks/{client.gen-B7RMYGYu.js → client.gen-CTq48a_5.js} +1 -1
- package/dist/dist-cli-preview/chunks/{copy-DHN1DxE_.js → copy-Cb0EF4FY.js} +1 -1
- package/dist/dist-cli-preview/chunks/{countries-api-adapter-B4TefdRP.js → countries-api-adapter-39yd7wyu.js} +2 -2
- package/dist/dist-cli-preview/chunks/{create-card-entry-container-5NqOQ4D_.js → create-card-entry-container-GUKP9hm9.js} +7779 -7949
- package/dist/dist-cli-preview/chunks/{eye-qMoMW7-Z.js → eye-Br576SOE.js} +1 -1
- package/dist/dist-cli-preview/chunks/{hey-api-client-JMNyZwcF.js → hey-api-client-ojYRPo91.js} +1 -1
- package/dist/dist-cli-preview/chunks/{index-BhMjUmAr.js → index-CpV8WNR4.js} +3 -3
- package/dist/dist-cli-preview/chunks/{index-Dor8vM2o.js → index-oaLlxtXm.js} +1 -1
- package/dist/dist-cli-preview/chunks/{index-BS4PnEcu.js → index-twP43mON.js} +74 -86
- package/dist/dist-cli-preview/chunks/isAfter-DAVNjOeD.js +1324 -0
- package/dist/dist-cli-preview/chunks/{log-out-DUdRJX4l.js → log-out-uqUyU7ZP.js} +1 -1
- package/dist/dist-cli-preview/chunks/{map-pin-DyIkpqP0.js → map-pin-FwB95jm4.js} +1 -1
- package/dist/dist-cli-preview/chunks/mount-account-screen-SGot0CzY.js +12595 -0
- package/dist/dist-cli-preview/chunks/{navigate-account-screen-mT0rqVLT.js → navigate-account-screen-CC9GJcTK.js} +1 -1
- package/dist/dist-cli-preview/chunks/{schemas-BTblatUV.js → schemas-CK5ZjT20.js} +541 -530
- package/dist/dist-cli-preview/chunks/{screen-route-slug-utils-DozJp-uc.js → screen-route-slug-utils-MtfouJSS.js} +1 -1
- package/dist/dist-cli-preview/chunks/{sheet-haptics-context-CYrEaGtf.js → sheet-haptics-context-N2vLfwOc.js} +1 -1
- package/dist/dist-cli-preview/chunks/{sidebar-9qopXeR1.js → sidebar-D8LwwiTr.js} +10 -10
- package/dist/dist-cli-preview/chunks/{sortable.esm-Dlen88Fc.js → sortable.esm-jbVNBxCA.js} +2 -2
- package/dist/dist-cli-preview/chunks/{store-api-context-B9pW_xao.js → store-api-context-DhtPESgY.js} +1 -1
- package/dist/dist-cli-preview/chunks/{trash-2-ClRyi9iY.js → trash-2-f4dJpepX.js} +9 -9
- package/dist/dist-cli-preview/chunks/{use-mobile-srOt50VV.js → use-mobile-C4O5e0kh.js} +3 -3
- package/dist/dist-cli-preview/chunks/{use-optional-store-BgrOjfZJ.js → use-optional-store-qUug8CSx.js} +2 -2
- package/dist/dist-cli-preview/chunks/{use-store-CUSQx1E-.js → use-store-B00K7G5q.js} +3 -3
- package/dist/dist-cli-preview/chunks/{useInfiniteQuery-DGc8fotv.js → useInfiniteQuery-pbRaLvNe.js} +1 -1
- package/dist/dist-cli-preview/chunks/{user-Ca2sKJ-h.js → user-CRiDn40l.js} +1 -1
- package/dist/dist-cli-preview/chunks/{users-Dh7zTrKY.js → users-BMdwEKKP.js} +1 -1
- package/package.json +2 -2
- package/dist/dist-cli-preview/chunks/MediaScreen-DlrLPYRf.js +0 -8
- package/dist/dist-cli-preview/chunks/OrdersScreen-B1HQVMZC.js +0 -9
- package/dist/dist-cli-preview/chunks/PlaylistsScreen-DgYA1qcv.js +0 -8
- package/dist/dist-cli-preview/chunks/lock-DQTMeEw0.js +0 -14
- package/dist/dist-cli-preview/chunks/mount-account-screen-BuQhxURX.js +0 -11113
- package/dist/dist-cli-preview/chunks/plus-DZjrp536.js +0 -14
package/dist/dist-cli-preview/chunks/{ProfileScreen-CCWM6TBs.js → ProfileScreen-CUURwTbd.js}
RENAMED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import { u as R, a as St, b as B, c as Et, M as Pt } from "./MemberManagementProviders-
|
|
3
|
-
import { O as At } from "./OrdersScreen-
|
|
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
|
|
1
|
+
import { c as Z, i as mt, l as v, j as n, aa as ht, ab as le, ac as pt, ad as ne, 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 _t, J as H, a8 as T, ag as bt, ah as vt, a7 as yt, P as jt, ai as J, z as fe, R as Me, q as Ct, Y as wt, N as Nt } from "./account-screen-runtime-CVtcJ0Fb.js";
|
|
2
|
+
import { u as R, a as St, b as B, c as Et, M as Pt } from "./MemberManagementProviders-CYbE8v0N.js";
|
|
3
|
+
import { O as At } from "./OrdersScreen-Bwn7Je6W.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 Qt, T as $t, j as qt, k as Vt, m as Ht, E as Kt, l as Fe } from "./create-card-entry-container-GUKP9hm9.js";
|
|
5
5
|
import { c as Gt } from "./member-permissions-ndhNmlOk.js";
|
|
6
|
-
import { u as me } from "./use-store-
|
|
7
|
-
import { u as Yt } from "./trash-2-
|
|
8
|
-
import { R as
|
|
9
|
-
import { I as Xt } from "./sheet-haptics-context-
|
|
10
|
-
import { u as
|
|
11
|
-
import { B as
|
|
12
|
-
import { u as Zt } from "./countries-api-adapter-
|
|
13
|
-
import { u as Jt } from "./PortalTenantClientProvider-
|
|
14
|
-
import { M as er } from "./map-pin-
|
|
15
|
-
import { A as
|
|
16
|
-
import { L as tr } from "./log-out-
|
|
6
|
+
import { u as me } from "./use-store-B00K7G5q.js";
|
|
7
|
+
import { u as Yt } from "./trash-2-f4dJpepX.js";
|
|
8
|
+
import { R as Ie, j as Wt, u as K, o as se, s as L } from "./schemas-CK5ZjT20.js";
|
|
9
|
+
import { I as Xt } from "./sheet-haptics-context-N2vLfwOc.js";
|
|
10
|
+
import { u as Y } from "./sidebar-D8LwwiTr.js";
|
|
11
|
+
import { B as Le, P as ke } from "./Textarea-DlTzkeqw.js";
|
|
12
|
+
import { u as Zt } from "./countries-api-adapter-39yd7wyu.js";
|
|
13
|
+
import { u as Jt } from "./PortalTenantClientProvider-JAGrume8.js";
|
|
14
|
+
import { M as er } from "./map-pin-FwB95jm4.js";
|
|
15
|
+
import { A as Ce } from "./arrow-left-CVKbyXG0.js";
|
|
16
|
+
import { L as tr } from "./log-out-uqUyU7ZP.js";
|
|
17
17
|
/**
|
|
18
18
|
* @license lucide-react v0.575.0 - ISC
|
|
19
19
|
*
|
|
@@ -21,42 +21,32 @@ import { L as tr } from "./log-out-DUdRJX4l.js";
|
|
|
21
21
|
* See the LICENSE file in the root directory of this source tree.
|
|
22
22
|
*/
|
|
23
23
|
const rr = [
|
|
24
|
-
["rect", { width: "20", height: "14", x: "2", y: "5", rx: "2", key: "ynyp8z" }],
|
|
25
|
-
["line", { x1: "2", x2: "22", y1: "10", y2: "10", key: "1b3vmo" }]
|
|
26
|
-
], ke = Y("credit-card", rr);
|
|
27
|
-
/**
|
|
28
|
-
* @license lucide-react v0.575.0 - ISC
|
|
29
|
-
*
|
|
30
|
-
* This source code is licensed under the ISC license.
|
|
31
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
32
|
-
*/
|
|
33
|
-
const nr = [
|
|
34
24
|
["path", { d: "m5 8 6 6", key: "1wu5hv" }],
|
|
35
25
|
["path", { d: "m4 14 6-6 2-3", key: "1k1g8d" }],
|
|
36
26
|
["path", { d: "M2 5h12", key: "or177f" }],
|
|
37
27
|
["path", { d: "M7 2h1", key: "1t2jsx" }],
|
|
38
28
|
["path", { d: "m22 22-5-10-5 10", key: "don7ne" }],
|
|
39
29
|
["path", { d: "M14 18h6", key: "1m8k6r" }]
|
|
40
|
-
],
|
|
30
|
+
], nr = Z("languages", rr);
|
|
41
31
|
/**
|
|
42
32
|
* @license lucide-react v0.575.0 - ISC
|
|
43
33
|
*
|
|
44
34
|
* This source code is licensed under the ISC license.
|
|
45
35
|
* See the LICENSE file in the root directory of this source tree.
|
|
46
36
|
*/
|
|
47
|
-
const
|
|
37
|
+
const sr = [
|
|
48
38
|
["path", { d: "m2 9 3-3 3 3", key: "1ltn5i" }],
|
|
49
39
|
["path", { d: "M13 18H7a2 2 0 0 1-2-2V6", key: "1r6tfw" }],
|
|
50
40
|
["path", { d: "m22 15-3 3-3-3", key: "4rnwn2" }],
|
|
51
41
|
["path", { d: "M11 6h6a2 2 0 0 1 2 2v10", key: "2f72bc" }]
|
|
52
|
-
], De =
|
|
42
|
+
], De = Z("repeat-2", sr);
|
|
53
43
|
/**
|
|
54
44
|
* @license lucide-react v0.575.0 - ISC
|
|
55
45
|
*
|
|
56
46
|
* This source code is licensed under the ISC license.
|
|
57
47
|
* See the LICENSE file in the root directory of this source tree.
|
|
58
48
|
*/
|
|
59
|
-
const
|
|
49
|
+
const ar = [
|
|
60
50
|
[
|
|
61
51
|
"path",
|
|
62
52
|
{
|
|
@@ -64,17 +54,17 @@ const ir = [
|
|
|
64
54
|
key: "r04s7s"
|
|
65
55
|
}
|
|
66
56
|
]
|
|
67
|
-
],
|
|
57
|
+
], ir = Z("star", ar);
|
|
68
58
|
/**
|
|
69
59
|
* @license lucide-react v0.575.0 - ISC
|
|
70
60
|
*
|
|
71
61
|
* This source code is licensed under the ISC license.
|
|
72
62
|
* See the LICENSE file in the root directory of this source tree.
|
|
73
63
|
*/
|
|
74
|
-
const
|
|
64
|
+
const or = [
|
|
75
65
|
["circle", { cx: "12", cy: "8", r: "5", key: "1hypcn" }],
|
|
76
66
|
["path", { d: "M20 21a8 8 0 0 0-16 0", key: "rfgkzh" }]
|
|
77
|
-
],
|
|
67
|
+
], lr = Z("user-round", or);
|
|
78
68
|
var te = { exports: {} }, re = {};
|
|
79
69
|
/**
|
|
80
70
|
* @license React
|
|
@@ -85,10 +75,10 @@ var te = { exports: {} }, re = {};
|
|
|
85
75
|
* This source code is licensed under the MIT license found in the
|
|
86
76
|
* LICENSE file in the root directory of this source tree.
|
|
87
77
|
*/
|
|
88
|
-
var
|
|
89
|
-
function
|
|
90
|
-
if (
|
|
91
|
-
|
|
78
|
+
var we;
|
|
79
|
+
function cr() {
|
|
80
|
+
if (we) return re;
|
|
81
|
+
we = 1;
|
|
92
82
|
var e = mt();
|
|
93
83
|
function i(o, c) {
|
|
94
84
|
return o === c && (o !== 0 || 1 / o === 1 / c) || o !== o && c !== c;
|
|
@@ -127,26 +117,26 @@ function dr() {
|
|
|
127
117
|
return re.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : s, re;
|
|
128
118
|
}
|
|
129
119
|
var Ne;
|
|
130
|
-
function
|
|
131
|
-
return Ne || (Ne = 1, te.exports =
|
|
120
|
+
function dr() {
|
|
121
|
+
return Ne || (Ne = 1, te.exports = cr()), te.exports;
|
|
132
122
|
}
|
|
133
|
-
var
|
|
134
|
-
function
|
|
135
|
-
return
|
|
136
|
-
|
|
123
|
+
var ur = dr();
|
|
124
|
+
function fr() {
|
|
125
|
+
return ur.useSyncExternalStore(
|
|
126
|
+
mr,
|
|
137
127
|
() => !0,
|
|
138
128
|
() => !1
|
|
139
129
|
);
|
|
140
130
|
}
|
|
141
|
-
function
|
|
131
|
+
function mr() {
|
|
142
132
|
return () => {
|
|
143
133
|
};
|
|
144
134
|
}
|
|
145
|
-
var he = "Avatar", [
|
|
135
|
+
var he = "Avatar", [hr] = ht(he), [pr, Oe] = hr(he), ze = v.forwardRef(
|
|
146
136
|
(e, i) => {
|
|
147
137
|
const { __scopeAvatar: r, ...l } = e, [d, u] = v.useState("idle");
|
|
148
138
|
return /* @__PURE__ */ n.jsx(
|
|
149
|
-
|
|
139
|
+
pr,
|
|
150
140
|
{
|
|
151
141
|
scope: r,
|
|
152
142
|
imageLoadingStatus: d,
|
|
@@ -160,7 +150,7 @@ ze.displayName = he;
|
|
|
160
150
|
var Te = "AvatarImage", Be = v.forwardRef(
|
|
161
151
|
(e, i) => {
|
|
162
152
|
const { __scopeAvatar: r, src: l, onLoadingStatusChange: d = () => {
|
|
163
|
-
}, ...u } = e, p = Oe(Te, r), g =
|
|
153
|
+
}, ...u } = e, p = Oe(Te, r), g = gr(l, u), a = pt((t) => {
|
|
164
154
|
d(t), p.onImageLoadingStatusChange(t);
|
|
165
155
|
});
|
|
166
156
|
return ne(() => {
|
|
@@ -169,7 +159,7 @@ var Te = "AvatarImage", Be = v.forwardRef(
|
|
|
169
159
|
}
|
|
170
160
|
);
|
|
171
161
|
Be.displayName = Te;
|
|
172
|
-
var Ue = "AvatarFallback",
|
|
162
|
+
var Ue = "AvatarFallback", Qe = v.forwardRef(
|
|
173
163
|
(e, i) => {
|
|
174
164
|
const { __scopeAvatar: r, delayMs: l, ...d } = e, u = Oe(Ue, r), [p, g] = v.useState(l === void 0);
|
|
175
165
|
return v.useEffect(() => {
|
|
@@ -180,12 +170,12 @@ var Ue = "AvatarFallback", $e = v.forwardRef(
|
|
|
180
170
|
}, [l]), p && u.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ n.jsx(le.span, { ...d, ref: i }) : null;
|
|
181
171
|
}
|
|
182
172
|
);
|
|
183
|
-
|
|
173
|
+
Qe.displayName = Ue;
|
|
184
174
|
function Se(e, i) {
|
|
185
175
|
return e ? i ? (e.src !== i && (e.src = i), e.complete && e.naturalWidth > 0 ? "loaded" : "loading") : "error" : "idle";
|
|
186
176
|
}
|
|
187
|
-
function
|
|
188
|
-
const l =
|
|
177
|
+
function gr(e, { referrerPolicy: i, crossOrigin: r }) {
|
|
178
|
+
const l = fr(), d = v.useRef(null), u = l ? (d.current || (d.current = new window.Image()), d.current) : null, [p, g] = v.useState(
|
|
189
179
|
() => Se(u, e)
|
|
190
180
|
);
|
|
191
181
|
return ne(() => {
|
|
@@ -201,14 +191,14 @@ function xr(e, { referrerPolicy: i, crossOrigin: r }) {
|
|
|
201
191
|
};
|
|
202
192
|
}, [u, r, i]), p;
|
|
203
193
|
}
|
|
204
|
-
var
|
|
205
|
-
function
|
|
194
|
+
var xr = ze, _r = Be, br = Qe;
|
|
195
|
+
function vr({
|
|
206
196
|
className: e,
|
|
207
197
|
size: i = "default",
|
|
208
198
|
...r
|
|
209
199
|
}) {
|
|
210
200
|
return /* @__PURE__ */ n.jsx(
|
|
211
|
-
|
|
201
|
+
xr,
|
|
212
202
|
{
|
|
213
203
|
"data-slot": "avatar",
|
|
214
204
|
"data-size": i,
|
|
@@ -220,12 +210,12 @@ function yr({
|
|
|
220
210
|
}
|
|
221
211
|
);
|
|
222
212
|
}
|
|
223
|
-
function
|
|
213
|
+
function yr({
|
|
224
214
|
className: e,
|
|
225
215
|
...i
|
|
226
216
|
}) {
|
|
227
217
|
return /* @__PURE__ */ n.jsx(
|
|
228
|
-
|
|
218
|
+
_r,
|
|
229
219
|
{
|
|
230
220
|
"data-slot": "avatar-image",
|
|
231
221
|
className: ce("aspect-square size-full", e),
|
|
@@ -233,12 +223,12 @@ function jr({
|
|
|
233
223
|
}
|
|
234
224
|
);
|
|
235
225
|
}
|
|
236
|
-
function
|
|
226
|
+
function jr({
|
|
237
227
|
className: e,
|
|
238
228
|
...i
|
|
239
229
|
}) {
|
|
240
230
|
return /* @__PURE__ */ n.jsx(
|
|
241
|
-
|
|
231
|
+
br,
|
|
242
232
|
{
|
|
243
233
|
"data-slot": "avatar-fallback",
|
|
244
234
|
className: ce(
|
|
@@ -266,22 +256,22 @@ function Cr({
|
|
|
266
256
|
fullName: m,
|
|
267
257
|
onUploadAvatar: f
|
|
268
258
|
}) {
|
|
269
|
-
const { t: h } = R(), { field: x } = gt({ control: e, name: "avatar_url" }), [N,
|
|
259
|
+
const { t: h } = R(), { field: x } = gt({ control: e, name: "avatar_url" }), [N, w] = v.useState(!1), _ = v.useRef(null), C = v.useRef(0);
|
|
270
260
|
v.useEffect(() => {
|
|
271
|
-
|
|
261
|
+
C.current += 1, w(!1);
|
|
272
262
|
}, [i]);
|
|
273
263
|
const M = async (j) => {
|
|
274
264
|
const q = j.target.files?.[0];
|
|
275
265
|
if (j.target.value = "", !q || !f) return;
|
|
276
|
-
const I = ++
|
|
277
|
-
|
|
266
|
+
const I = ++C.current;
|
|
267
|
+
w(!0);
|
|
278
268
|
try {
|
|
279
269
|
const G = await f(q);
|
|
280
|
-
G &&
|
|
270
|
+
G && C.current === I && x.onChange(G);
|
|
281
271
|
} finally {
|
|
282
|
-
|
|
272
|
+
C.current === I && w(!1);
|
|
283
273
|
}
|
|
284
|
-
}, [k, z] = v.useState(!1), [F, y] = v.useState(""), [D, P] = v.useState(void 0),
|
|
274
|
+
}, [k, z] = v.useState(!1), [F, y] = v.useState(""), [D, P] = v.useState(void 0), W = async () => {
|
|
285
275
|
P(void 0);
|
|
286
276
|
const j = F.trim();
|
|
287
277
|
if (!j) {
|
|
@@ -303,13 +293,13 @@ function Cr({
|
|
|
303
293
|
I instanceof Error ? I.message : h("failed_to_initiate_email_change")
|
|
304
294
|
);
|
|
305
295
|
}
|
|
306
|
-
},
|
|
296
|
+
}, $ = () => {
|
|
307
297
|
z(!1), y(""), P(void 0);
|
|
308
298
|
}, O = () => {
|
|
309
|
-
|
|
299
|
+
$(), l();
|
|
310
300
|
};
|
|
311
301
|
return /* @__PURE__ */ n.jsxs(
|
|
312
|
-
|
|
302
|
+
Ie,
|
|
313
303
|
{
|
|
314
304
|
open: i,
|
|
315
305
|
onOpenChange: (j) => !j && O(),
|
|
@@ -453,7 +443,7 @@ function Cr({
|
|
|
453
443
|
y(j.target.value), P(void 0);
|
|
454
444
|
},
|
|
455
445
|
onKeyDown: (j) => {
|
|
456
|
-
j.key === "Enter" && (j.preventDefault(),
|
|
446
|
+
j.key === "Enter" && (j.preventDefault(), W()), j.key === "Escape" && $();
|
|
457
447
|
},
|
|
458
448
|
"aria-invalid": !!D || void 0,
|
|
459
449
|
autoFocus: !0
|
|
@@ -471,7 +461,7 @@ function Cr({
|
|
|
471
461
|
type: "button",
|
|
472
462
|
variant: "outline",
|
|
473
463
|
size: "sm",
|
|
474
|
-
onClick:
|
|
464
|
+
onClick: $,
|
|
475
465
|
children: h("cancel")
|
|
476
466
|
}
|
|
477
467
|
),
|
|
@@ -480,7 +470,7 @@ function Cr({
|
|
|
480
470
|
{
|
|
481
471
|
type: "button",
|
|
482
472
|
size: "sm",
|
|
483
|
-
onClick:
|
|
473
|
+
onClick: W,
|
|
484
474
|
disabled: !F.trim() || t,
|
|
485
475
|
children: [
|
|
486
476
|
t && /* @__PURE__ */ n.jsx("div", { className: "mr-2 size-3.5 animate-spin rounded-full border-2 border-current/30 border-t-current" }),
|
|
@@ -533,19 +523,19 @@ function Cr({
|
|
|
533
523
|
}
|
|
534
524
|
);
|
|
535
525
|
}
|
|
536
|
-
var
|
|
526
|
+
var wr = Object.defineProperty, X = Object.getOwnPropertySymbols, $e = Object.prototype.hasOwnProperty, qe = Object.prototype.propertyIsEnumerable, Ee = (e, i, r) => i in e ? wr(e, i, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[i] = r, ae = (e, i) => {
|
|
537
527
|
for (var r in i || (i = {}))
|
|
538
|
-
|
|
539
|
-
if (
|
|
540
|
-
for (var r of
|
|
528
|
+
$e.call(i, r) && Ee(e, r, i[r]);
|
|
529
|
+
if (X)
|
|
530
|
+
for (var r of X(i))
|
|
541
531
|
qe.call(i, r) && Ee(e, r, i[r]);
|
|
542
532
|
return e;
|
|
543
533
|
}, ie = (e, i) => {
|
|
544
534
|
var r = {};
|
|
545
535
|
for (var l in e)
|
|
546
|
-
|
|
547
|
-
if (e != null &&
|
|
548
|
-
for (var l of
|
|
536
|
+
$e.call(e, l) && i.indexOf(l) < 0 && (r[l] = e[l]);
|
|
537
|
+
if (e != null && X)
|
|
538
|
+
for (var l of X(e))
|
|
549
539
|
i.indexOf(l) < 0 && qe.call(e, l) && (r[l] = e[l]);
|
|
550
540
|
return r;
|
|
551
541
|
};
|
|
@@ -618,9 +608,9 @@ var U;
|
|
|
618
608
|
throw new RangeError("Invalid value");
|
|
619
609
|
let f, h;
|
|
620
610
|
for (f = s; ; f++) {
|
|
621
|
-
const _ = b.getNumDataCodewords(f, t) * 8,
|
|
622
|
-
if (
|
|
623
|
-
h =
|
|
611
|
+
const _ = b.getNumDataCodewords(f, t) * 8, C = p.getTotalBits(a, f);
|
|
612
|
+
if (C <= _) {
|
|
613
|
+
h = C;
|
|
624
614
|
break;
|
|
625
615
|
}
|
|
626
616
|
if (f >= o)
|
|
@@ -631,18 +621,18 @@ var U;
|
|
|
631
621
|
let x = [];
|
|
632
622
|
for (const _ of a) {
|
|
633
623
|
r(_.mode.modeBits, 4, x), r(_.numChars, _.mode.numCharCountBits(f), x);
|
|
634
|
-
for (const
|
|
635
|
-
x.push(
|
|
624
|
+
for (const C of _.getData())
|
|
625
|
+
x.push(C);
|
|
636
626
|
}
|
|
637
627
|
d(x.length == h);
|
|
638
628
|
const N = b.getNumDataCodewords(f, t) * 8;
|
|
639
629
|
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
630
|
for (let _ = 236; x.length < N; _ ^= 253)
|
|
641
631
|
r(_, 8, x);
|
|
642
|
-
let
|
|
643
|
-
for (;
|
|
644
|
-
|
|
645
|
-
return x.forEach((_,
|
|
632
|
+
let w = [];
|
|
633
|
+
for (; w.length * 8 < x.length; )
|
|
634
|
+
w.push(0);
|
|
635
|
+
return x.forEach((_, C) => w[C >>> 3] |= _ << 7 - (C & 7)), new b(f, t, w, c);
|
|
646
636
|
}
|
|
647
637
|
/*-- Accessor methods --*/
|
|
648
638
|
// Returns the color of the module (pixel) at the given coordinates, which is false
|
|
@@ -733,18 +723,18 @@ var U;
|
|
|
733
723
|
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);
|
|
734
724
|
let x = [];
|
|
735
725
|
const N = b.reedSolomonComputeDivisor(c);
|
|
736
|
-
for (let _ = 0,
|
|
737
|
-
let M = a.slice(
|
|
738
|
-
|
|
726
|
+
for (let _ = 0, C = 0; _ < o; _++) {
|
|
727
|
+
let M = a.slice(C, C + h - c + (_ < f ? 0 : 1));
|
|
728
|
+
C += M.length;
|
|
739
729
|
const k = b.reedSolomonComputeRemainder(M, N);
|
|
740
730
|
_ < f && M.push(0), x.push(M.concat(k));
|
|
741
731
|
}
|
|
742
|
-
let
|
|
732
|
+
let w = [];
|
|
743
733
|
for (let _ = 0; _ < x[0].length; _++)
|
|
744
|
-
x.forEach((
|
|
745
|
-
(_ != h - c || M >= f) &&
|
|
734
|
+
x.forEach((C, M) => {
|
|
735
|
+
(_ != h - c || M >= f) && w.push(C[_]);
|
|
746
736
|
});
|
|
747
|
-
return d(
|
|
737
|
+
return d(w.length == m), w;
|
|
748
738
|
}
|
|
749
739
|
// Draws the given sequence of 8-bit codewords (data and error correction) onto the entire
|
|
750
740
|
// data area of this QR Code. Function modules need to be marked off before this is called.
|
|
@@ -1095,12 +1085,12 @@ var V = U;
|
|
|
1095
1085
|
* Copyright (c) Paul O'Shannessy
|
|
1096
1086
|
* SPDX-License-Identifier: ISC
|
|
1097
1087
|
*/
|
|
1098
|
-
var
|
|
1088
|
+
var Nr = {
|
|
1099
1089
|
L: V.QrCode.Ecc.LOW,
|
|
1100
1090
|
M: V.QrCode.Ecc.MEDIUM,
|
|
1101
1091
|
Q: V.QrCode.Ecc.QUARTILE,
|
|
1102
1092
|
H: V.QrCode.Ecc.HIGH
|
|
1103
|
-
}, Ve = 128, He = "L", Ke = "#FFFFFF", Ge = "#000000", Ye = !1, We = 1,
|
|
1093
|
+
}, Ve = 128, He = "L", Ke = "#FFFFFF", Ge = "#000000", Ye = !1, We = 1, Sr = 4, Er = 0, Pr = 0.1;
|
|
1104
1094
|
function Xe(e, i = 0) {
|
|
1105
1095
|
const r = [];
|
|
1106
1096
|
return e.forEach(function(l, d) {
|
|
@@ -1127,10 +1117,10 @@ function Xe(e, i = 0) {
|
|
|
1127
1117
|
function Ze(e, i) {
|
|
1128
1118
|
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
1119
|
}
|
|
1130
|
-
function
|
|
1120
|
+
function Ar(e, i, r, l) {
|
|
1131
1121
|
if (l == null)
|
|
1132
1122
|
return null;
|
|
1133
|
-
const d = e.length + r * 2, u = Math.floor(i *
|
|
1123
|
+
const d = e.length + r * 2, u = Math.floor(i * Pr), 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;
|
|
1134
1124
|
let c = null;
|
|
1135
1125
|
if (l.excavate) {
|
|
1136
1126
|
let f = Math.floor(t), h = Math.floor(s), x = Math.ceil(g + t - f), N = Math.ceil(a + s - h);
|
|
@@ -1139,8 +1129,8 @@ function Mr(e, i, r, l) {
|
|
|
1139
1129
|
const m = l.crossOrigin;
|
|
1140
1130
|
return { x: t, y: s, h: a, w: g, excavation: c, opacity: o, crossOrigin: m };
|
|
1141
1131
|
}
|
|
1142
|
-
function
|
|
1143
|
-
return i != null ? Math.max(Math.floor(i), 0) : e ?
|
|
1132
|
+
function Mr(e, i) {
|
|
1133
|
+
return i != null ? Math.max(Math.floor(i), 0) : e ? Sr : Er;
|
|
1144
1134
|
}
|
|
1145
1135
|
function Je({
|
|
1146
1136
|
value: e,
|
|
@@ -1156,7 +1146,7 @@ function Je({
|
|
|
1156
1146
|
const f = (Array.isArray(e) ? e : [e]).reduce((h, x) => (h.push(...V.QrSegment.makeSegments(x)), h), []);
|
|
1157
1147
|
return V.QrCode.encodeSegments(
|
|
1158
1148
|
f,
|
|
1159
|
-
|
|
1149
|
+
Nr[i],
|
|
1160
1150
|
r,
|
|
1161
1151
|
void 0,
|
|
1162
1152
|
void 0,
|
|
@@ -1165,7 +1155,7 @@ function Je({
|
|
|
1165
1155
|
}, [e, i, r, g]);
|
|
1166
1156
|
const { cells: t, margin: s, numCells: o, calculatedImageSettings: c } = A.useMemo(() => {
|
|
1167
1157
|
let m = a.getModules();
|
|
1168
|
-
const f =
|
|
1158
|
+
const f = Mr(l, d), h = m.length + f * 2, x = Ar(
|
|
1169
1159
|
m,
|
|
1170
1160
|
p,
|
|
1171
1161
|
f,
|
|
@@ -1186,14 +1176,14 @@ function Je({
|
|
|
1186
1176
|
calculatedImageSettings: c
|
|
1187
1177
|
};
|
|
1188
1178
|
}
|
|
1189
|
-
var
|
|
1179
|
+
var Rr = (function() {
|
|
1190
1180
|
try {
|
|
1191
1181
|
new Path2D().addPath(new Path2D());
|
|
1192
1182
|
} catch {
|
|
1193
1183
|
return !1;
|
|
1194
1184
|
}
|
|
1195
1185
|
return !0;
|
|
1196
|
-
})(),
|
|
1186
|
+
})(), Fr = A.forwardRef(
|
|
1197
1187
|
function(i, r) {
|
|
1198
1188
|
const l = i, {
|
|
1199
1189
|
value: d,
|
|
@@ -1217,7 +1207,7 @@ var Fr = (function() {
|
|
|
1217
1207
|
"boostLevel",
|
|
1218
1208
|
"marginSize",
|
|
1219
1209
|
"imageSettings"
|
|
1220
|
-
]), { style: x } = h, N = ie(h, ["style"]),
|
|
1210
|
+
]), { style: x } = h, N = ie(h, ["style"]), w = m?.src, _ = A.useRef(null), C = A.useRef(null), M = A.useCallback(
|
|
1221
1211
|
(O) => {
|
|
1222
1212
|
_.current = O, typeof r == "function" ? r(O) : r && (r.current = O);
|
|
1223
1213
|
},
|
|
@@ -1238,7 +1228,7 @@ var Fr = (function() {
|
|
|
1238
1228
|
if (!j)
|
|
1239
1229
|
return;
|
|
1240
1230
|
let q = y;
|
|
1241
|
-
const I =
|
|
1231
|
+
const I = C.current, G = P != null && I !== null && I.complete && I.naturalHeight !== 0 && I.naturalWidth !== 0;
|
|
1242
1232
|
G && P.excavation != null && (q = Ze(
|
|
1243
1233
|
y,
|
|
1244
1234
|
P.excavation
|
|
@@ -1246,7 +1236,7 @@ var Fr = (function() {
|
|
|
1246
1236
|
const ve = window.devicePixelRatio || 1;
|
|
1247
1237
|
O.height = O.width = u * ve;
|
|
1248
1238
|
const ye = u / D * ve;
|
|
1249
|
-
j.scale(ye, ye), j.fillStyle = g, j.fillRect(0, 0, D, D), j.fillStyle = a,
|
|
1239
|
+
j.scale(ye, ye), j.fillStyle = g, j.fillRect(0, 0, D, D), j.fillStyle = a, Rr ? j.fill(new Path2D(Xe(q, F))) : y.forEach(function(ct, dt) {
|
|
1250
1240
|
ct.forEach(function(ut, ft) {
|
|
1251
1241
|
ut && j.fillRect(ft + F, dt + F, 1, 1);
|
|
1252
1242
|
});
|
|
@@ -1260,34 +1250,34 @@ var Fr = (function() {
|
|
|
1260
1250
|
}
|
|
1261
1251
|
}), A.useEffect(() => {
|
|
1262
1252
|
z(!1);
|
|
1263
|
-
}, [
|
|
1264
|
-
const
|
|
1265
|
-
let
|
|
1266
|
-
return
|
|
1253
|
+
}, [w]);
|
|
1254
|
+
const W = ae({ height: u, width: u }, x);
|
|
1255
|
+
let $ = null;
|
|
1256
|
+
return w != null && ($ = /* @__PURE__ */ A.createElement(
|
|
1267
1257
|
"img",
|
|
1268
1258
|
{
|
|
1269
|
-
src:
|
|
1270
|
-
key:
|
|
1259
|
+
src: w,
|
|
1260
|
+
key: w,
|
|
1271
1261
|
style: { display: "none" },
|
|
1272
1262
|
onLoad: () => {
|
|
1273
1263
|
z(!0);
|
|
1274
1264
|
},
|
|
1275
|
-
ref:
|
|
1265
|
+
ref: C,
|
|
1276
1266
|
crossOrigin: P?.crossOrigin
|
|
1277
1267
|
}
|
|
1278
1268
|
)), /* @__PURE__ */ A.createElement(A.Fragment, null, /* @__PURE__ */ A.createElement(
|
|
1279
1269
|
"canvas",
|
|
1280
1270
|
ae({
|
|
1281
|
-
style:
|
|
1271
|
+
style: W,
|
|
1282
1272
|
height: u,
|
|
1283
1273
|
width: u,
|
|
1284
1274
|
ref: M,
|
|
1285
1275
|
role: "img"
|
|
1286
1276
|
}, N)
|
|
1287
|
-
),
|
|
1277
|
+
), $);
|
|
1288
1278
|
}
|
|
1289
1279
|
);
|
|
1290
|
-
|
|
1280
|
+
Fr.displayName = "QRCodeCanvas";
|
|
1291
1281
|
var et = A.forwardRef(
|
|
1292
1282
|
function(i, r) {
|
|
1293
1283
|
const l = i, {
|
|
@@ -1314,7 +1304,7 @@ var et = A.forwardRef(
|
|
|
1314
1304
|
"title",
|
|
1315
1305
|
"marginSize",
|
|
1316
1306
|
"imageSettings"
|
|
1317
|
-
]), { margin: x, cells: N, numCells:
|
|
1307
|
+
]), { margin: x, cells: N, numCells: w, calculatedImageSettings: _ } = Je({
|
|
1318
1308
|
value: d,
|
|
1319
1309
|
level: p,
|
|
1320
1310
|
minVersion: s,
|
|
@@ -1324,8 +1314,8 @@ var et = A.forwardRef(
|
|
|
1324
1314
|
imageSettings: f,
|
|
1325
1315
|
size: u
|
|
1326
1316
|
});
|
|
1327
|
-
let
|
|
1328
|
-
f != null && _ != null && (_.excavation != null && (
|
|
1317
|
+
let C = N, M = null;
|
|
1318
|
+
f != null && _ != null && (_.excavation != null && (C = Ze(
|
|
1329
1319
|
N,
|
|
1330
1320
|
_.excavation
|
|
1331
1321
|
)), M = /* @__PURE__ */ A.createElement(
|
|
@@ -1341,13 +1331,13 @@ var et = A.forwardRef(
|
|
|
1341
1331
|
crossOrigin: _.crossOrigin
|
|
1342
1332
|
}
|
|
1343
1333
|
));
|
|
1344
|
-
const k = Xe(
|
|
1334
|
+
const k = Xe(C, x);
|
|
1345
1335
|
return /* @__PURE__ */ A.createElement(
|
|
1346
1336
|
"svg",
|
|
1347
1337
|
ae({
|
|
1348
1338
|
height: u,
|
|
1349
1339
|
width: u,
|
|
1350
|
-
viewBox: `0 0 ${
|
|
1340
|
+
viewBox: `0 0 ${w} ${w}`,
|
|
1351
1341
|
ref: r,
|
|
1352
1342
|
role: "img"
|
|
1353
1343
|
}, h),
|
|
@@ -1356,7 +1346,7 @@ var et = A.forwardRef(
|
|
|
1356
1346
|
"path",
|
|
1357
1347
|
{
|
|
1358
1348
|
fill: g,
|
|
1359
|
-
d: `M0,0 h${
|
|
1349
|
+
d: `M0,0 h${w}v${w}H0z`,
|
|
1360
1350
|
shapeRendering: "crispEdges"
|
|
1361
1351
|
}
|
|
1362
1352
|
),
|
|
@@ -1366,10 +1356,10 @@ var et = A.forwardRef(
|
|
|
1366
1356
|
}
|
|
1367
1357
|
);
|
|
1368
1358
|
et.displayName = "QRCodeSVG";
|
|
1369
|
-
function
|
|
1359
|
+
function Ir(e, i) {
|
|
1370
1360
|
ue({ title: e, type: i });
|
|
1371
1361
|
}
|
|
1372
|
-
function
|
|
1362
|
+
function Lr({
|
|
1373
1363
|
onToast: e,
|
|
1374
1364
|
/* eslint-disable @typescript-eslint/no-unused-vars -- destructured to exclude from divProps spread */
|
|
1375
1365
|
background: i,
|
|
@@ -1380,7 +1370,7 @@ function kr({
|
|
|
1380
1370
|
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
1381
1371
|
...p
|
|
1382
1372
|
}) {
|
|
1383
|
-
const { currentSlug: g } = de(), a = e ??
|
|
1373
|
+
const { currentSlug: g } = de(), a = e ?? Ir, t = g.split("/")[1], s = t !== void 0, { data: o } = Ae(), c = o?.id, m = o === void 0;
|
|
1384
1374
|
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(
|
|
1385
1375
|
kt,
|
|
1386
1376
|
{
|
|
@@ -1396,17 +1386,17 @@ function kr({
|
|
|
1396
1386
|
}
|
|
1397
1387
|
) }) }) }) });
|
|
1398
1388
|
}
|
|
1399
|
-
const oe = "profile/",
|
|
1389
|
+
const oe = "profile/", kr = /* @__PURE__ */ new Set(["orders", "subscriptions"]);
|
|
1400
1390
|
function Pe(e) {
|
|
1401
1391
|
return e.startsWith(oe) ? e.slice(oe.length) : e;
|
|
1402
1392
|
}
|
|
1403
|
-
function
|
|
1393
|
+
function Dr({
|
|
1404
1394
|
children: e
|
|
1405
1395
|
}) {
|
|
1406
1396
|
const { currentSlug: i, previousSlug: r, navigate: l } = de();
|
|
1407
1397
|
function d(u) {
|
|
1408
1398
|
const p = u.split("/")[0] ?? "";
|
|
1409
|
-
l(
|
|
1399
|
+
l(kr.has(p) ? `${oe}${u}` : u);
|
|
1410
1400
|
}
|
|
1411
1401
|
return /* @__PURE__ */ n.jsx(
|
|
1412
1402
|
xt,
|
|
@@ -1422,7 +1412,7 @@ function Or({
|
|
|
1422
1412
|
}
|
|
1423
1413
|
function tt() {
|
|
1424
1414
|
const e = St();
|
|
1425
|
-
return
|
|
1415
|
+
return Q({
|
|
1426
1416
|
queryKey: bt.languages(),
|
|
1427
1417
|
queryFn: async () => {
|
|
1428
1418
|
const i = [];
|
|
@@ -1450,11 +1440,11 @@ function rt() {
|
|
|
1450
1440
|
}
|
|
1451
1441
|
});
|
|
1452
1442
|
}
|
|
1453
|
-
function
|
|
1443
|
+
function Or({
|
|
1454
1444
|
account: e,
|
|
1455
1445
|
onClose: i
|
|
1456
1446
|
}) {
|
|
1457
|
-
const { t: r } = R(), { isMobile: l } =
|
|
1447
|
+
const { t: r } = R(), { isMobile: l } = Y(), d = me(), u = tt(), p = rt(), g = d.data?.allow_name_edit === !1, a = Yt(
|
|
1458
1448
|
se({
|
|
1459
1449
|
first_name: g ? L() : L().min(1, r("first_name_is_required")),
|
|
1460
1450
|
last_name: g ? L() : L().min(1, r("last_name_is_required")),
|
|
@@ -1511,20 +1501,20 @@ function zr({
|
|
|
1511
1501
|
const pe = ["memberStorefront", "profile", "addresses"];
|
|
1512
1502
|
function ge() {
|
|
1513
1503
|
const e = B();
|
|
1514
|
-
return
|
|
1504
|
+
return Q({
|
|
1515
1505
|
queryKey: pe,
|
|
1516
1506
|
queryFn: () => e.fetchAddresses()
|
|
1517
1507
|
});
|
|
1518
1508
|
}
|
|
1519
1509
|
function nt(e) {
|
|
1520
1510
|
const i = Zt(), { locale: r } = T();
|
|
1521
|
-
return
|
|
1511
|
+
return Q({
|
|
1522
1512
|
queryKey: ["memberStorefront", "profile", "countries", r],
|
|
1523
1513
|
queryFn: () => i.listCountries({ languageIso: r }),
|
|
1524
1514
|
enabled: e
|
|
1525
1515
|
});
|
|
1526
1516
|
}
|
|
1527
|
-
function
|
|
1517
|
+
function zr() {
|
|
1528
1518
|
const e = B(), i = H();
|
|
1529
1519
|
return K({
|
|
1530
1520
|
mutationFn: async ({
|
|
@@ -1537,7 +1527,7 @@ function Tr() {
|
|
|
1537
1527
|
onSuccess: () => i.invalidateQueries({ queryKey: pe })
|
|
1538
1528
|
});
|
|
1539
1529
|
}
|
|
1540
|
-
function
|
|
1530
|
+
function Tr() {
|
|
1541
1531
|
const e = B(), i = H();
|
|
1542
1532
|
return K({
|
|
1543
1533
|
mutationFn: (r) => e.deleteAddress(r),
|
|
@@ -1565,7 +1555,7 @@ function st({
|
|
|
1565
1555
|
selectedAddress: r,
|
|
1566
1556
|
onAddressCreated: l
|
|
1567
1557
|
}) {
|
|
1568
|
-
const { t: d } = R(), { isMobile: u } =
|
|
1558
|
+
const { t: d } = R(), { isMobile: u } = Y(), { locale: p } = T(), g = nt(e), a = ge(), t = zr(), s = v.useCallback(
|
|
1569
1559
|
(o) => Promise.resolve(
|
|
1570
1560
|
g.data?.countries.find((c) => c.code === o)?.states.map((c) => ({
|
|
1571
1561
|
name: c.name,
|
|
@@ -1626,8 +1616,8 @@ function st({
|
|
|
1626
1616
|
}
|
|
1627
1617
|
);
|
|
1628
1618
|
}
|
|
1629
|
-
function
|
|
1630
|
-
const { t: e } = R(), i = ge(), r =
|
|
1619
|
+
function Br() {
|
|
1620
|
+
const { t: e } = R(), i = ge(), r = Tr(), l = v.useRef(null), [d, u] = v.useState(), [p, g] = v.useState(null);
|
|
1631
1621
|
if (i.error) throw i.error;
|
|
1632
1622
|
function a() {
|
|
1633
1623
|
requestAnimationFrame(() => l.current?.focus());
|
|
@@ -1652,7 +1642,7 @@ function Ur() {
|
|
|
1652
1642
|
/* @__PURE__ */ n.jsxs("div", { className: "space-y-1 text-sm", children: [
|
|
1653
1643
|
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center justify-between gap-3", children: [
|
|
1654
1644
|
/* @__PURE__ */ n.jsx("p", { className: "font-medium", children: t.name }),
|
|
1655
|
-
t.default && /* @__PURE__ */ n.jsx(
|
|
1645
|
+
t.default && /* @__PURE__ */ n.jsx(Le, { variant: "secondary", children: e("default") })
|
|
1656
1646
|
] }),
|
|
1657
1647
|
/* @__PURE__ */ n.jsx("p", { children: t.street1 }),
|
|
1658
1648
|
t.street2 && /* @__PURE__ */ n.jsx("p", { children: t.street2 }),
|
|
@@ -1723,7 +1713,7 @@ function Ur() {
|
|
|
1723
1713
|
}
|
|
1724
1714
|
function at() {
|
|
1725
1715
|
const e = B();
|
|
1726
|
-
return
|
|
1716
|
+
return Q({
|
|
1727
1717
|
queryKey: ["memberStorefront", "profile", "points"],
|
|
1728
1718
|
queryFn: async () => {
|
|
1729
1719
|
try {
|
|
@@ -1736,7 +1726,7 @@ function at() {
|
|
|
1736
1726
|
}
|
|
1737
1727
|
});
|
|
1738
1728
|
}
|
|
1739
|
-
function
|
|
1729
|
+
function Ur() {
|
|
1740
1730
|
const { t: e } = R(), { locale: i } = T(), r = at(), l = me();
|
|
1741
1731
|
if (r.error) throw r.error;
|
|
1742
1732
|
if (r.isPending || !l.data)
|
|
@@ -1797,18 +1787,18 @@ function Qr({
|
|
|
1797
1787
|
)
|
|
1798
1788
|
] });
|
|
1799
1789
|
}
|
|
1800
|
-
function
|
|
1790
|
+
function $r({
|
|
1801
1791
|
onClose: e
|
|
1802
1792
|
}) {
|
|
1803
|
-
const i = ge(), { t: r } = R(), { isMobile: l } =
|
|
1793
|
+
const i = ge(), { t: r } = R(), { isMobile: l } = Y();
|
|
1804
1794
|
return /* @__PURE__ */ n.jsx(Qr, { children: i.data ? /* @__PURE__ */ n.jsx(
|
|
1805
|
-
|
|
1795
|
+
qr,
|
|
1806
1796
|
{
|
|
1807
1797
|
initialAddresses: i.data.addresses,
|
|
1808
1798
|
onClose: e
|
|
1809
1799
|
}
|
|
1810
1800
|
) : /* @__PURE__ */ n.jsxs(
|
|
1811
|
-
|
|
1801
|
+
Ie,
|
|
1812
1802
|
{
|
|
1813
1803
|
open: !0,
|
|
1814
1804
|
onOpenChange: (d) => {
|
|
@@ -1832,11 +1822,11 @@ function qr({
|
|
|
1832
1822
|
}
|
|
1833
1823
|
) });
|
|
1834
1824
|
}
|
|
1835
|
-
function
|
|
1825
|
+
function qr({
|
|
1836
1826
|
initialAddresses: e,
|
|
1837
1827
|
onClose: i
|
|
1838
1828
|
}) {
|
|
1839
|
-
const { t: r } = R(), { isMobile: l } =
|
|
1829
|
+
const { t: r } = R(), { isMobile: l } = Y(), d = B(), u = H(), [p, g] = v.useState(), a = v.useMemo(() => Tt(d), [d]), [t] = v.useState(
|
|
1840
1830
|
() => e.map(xe)
|
|
1841
1831
|
);
|
|
1842
1832
|
async function s() {
|
|
@@ -1854,11 +1844,11 @@ function Vr({
|
|
|
1854
1844
|
payment_method: {
|
|
1855
1845
|
...m.payment_method,
|
|
1856
1846
|
type: "card",
|
|
1857
|
-
token_provider:
|
|
1847
|
+
token_provider: $t,
|
|
1858
1848
|
default: m.set_as_default
|
|
1859
1849
|
},
|
|
1860
1850
|
billing_address_id: m.billing_address_id,
|
|
1861
|
-
browser_info:
|
|
1851
|
+
browser_info: Qt()
|
|
1862
1852
|
}),
|
|
1863
1853
|
onSuccess: async (m) => {
|
|
1864
1854
|
Ut(m) ? await o.begin(m) : await s();
|
|
@@ -1904,7 +1894,7 @@ function Vr({
|
|
|
1904
1894
|
}
|
|
1905
1895
|
function it() {
|
|
1906
1896
|
const e = B();
|
|
1907
|
-
return
|
|
1897
|
+
return Q({
|
|
1908
1898
|
queryKey: J.paymentMethods.list(),
|
|
1909
1899
|
queryFn: () => e.fetchPaymentMethods()
|
|
1910
1900
|
});
|
|
@@ -1916,18 +1906,18 @@ function ot() {
|
|
|
1916
1906
|
onSuccess: () => i.invalidateQueries({ queryKey: J.paymentMethods.all })
|
|
1917
1907
|
});
|
|
1918
1908
|
}
|
|
1919
|
-
function
|
|
1909
|
+
function Vr() {
|
|
1920
1910
|
const e = B(), i = H();
|
|
1921
1911
|
return K({
|
|
1922
1912
|
mutationFn: (r) => e.deletePaymentMethod(r),
|
|
1923
1913
|
onSuccess: () => i.invalidateQueries({ queryKey: J.paymentMethods.all })
|
|
1924
1914
|
});
|
|
1925
1915
|
}
|
|
1926
|
-
function
|
|
1916
|
+
function Hr({
|
|
1927
1917
|
card: e,
|
|
1928
1918
|
onClose: i
|
|
1929
1919
|
}) {
|
|
1930
|
-
const { t: r } = R(), { locale: l } = T(), { isMobile: d } =
|
|
1920
|
+
const { t: r } = R(), { locale: l } = T(), { isMobile: d } = Y(), u = nt(!0), p = ot(), g = v.useMemo(() => Ht(e), [e]), a = v.useCallback(
|
|
1931
1921
|
(t) => Promise.resolve(
|
|
1932
1922
|
u.data?.countries.find((s) => s.code === t)?.states.map((s) => ({
|
|
1933
1923
|
name: s.name,
|
|
@@ -1982,8 +1972,8 @@ function Kr({
|
|
|
1982
1972
|
}
|
|
1983
1973
|
);
|
|
1984
1974
|
}
|
|
1985
|
-
function
|
|
1986
|
-
const { t: e } = R(), { preview: i } = fe(), r = it(), l = ot(), d =
|
|
1975
|
+
function Kr() {
|
|
1976
|
+
const { t: e } = R(), { preview: i } = fe(), r = it(), l = ot(), d = Vr(), u = v.useRef(null), p = v.useRef(null), [g, a] = v.useState(!1), [t, s] = v.useState(null), [o, c] = v.useState(null);
|
|
1987
1977
|
function m() {
|
|
1988
1978
|
requestAnimationFrame(() => {
|
|
1989
1979
|
(u.current?.isConnected ? u.current : p.current?.querySelector("button") ?? p.current)?.focus();
|
|
@@ -2024,7 +2014,7 @@ function Gr() {
|
|
|
2024
2014
|
brand: f.brand || e("card_fallback"),
|
|
2025
2015
|
lastFour: f.last_four
|
|
2026
2016
|
}) }),
|
|
2027
|
-
f.default && /* @__PURE__ */ n.jsx(
|
|
2017
|
+
f.default && /* @__PURE__ */ n.jsx(Le, { variant: "secondary", children: e("default") })
|
|
2028
2018
|
] }),
|
|
2029
2019
|
f.exp_month !== null && f.exp_year !== null && /* @__PURE__ */ n.jsxs("p", { className: "text-muted-foreground text-sm", children: [
|
|
2030
2020
|
e("card_expires"),
|
|
@@ -2090,7 +2080,7 @@ function Gr() {
|
|
|
2090
2080
|
}
|
|
2091
2081
|
),
|
|
2092
2082
|
g && /* @__PURE__ */ n.jsx(
|
|
2093
|
-
|
|
2083
|
+
$r,
|
|
2094
2084
|
{
|
|
2095
2085
|
onClose: () => {
|
|
2096
2086
|
a(!1), m();
|
|
@@ -2098,7 +2088,7 @@ function Gr() {
|
|
|
2098
2088
|
}
|
|
2099
2089
|
),
|
|
2100
2090
|
t && /* @__PURE__ */ n.jsx(
|
|
2101
|
-
|
|
2091
|
+
Hr,
|
|
2102
2092
|
{
|
|
2103
2093
|
card: t,
|
|
2104
2094
|
onClose: () => {
|
|
@@ -2190,7 +2180,7 @@ function be({
|
|
|
2190
2180
|
)
|
|
2191
2181
|
] });
|
|
2192
2182
|
}
|
|
2193
|
-
function
|
|
2183
|
+
function Gr({
|
|
2194
2184
|
onOpen: e,
|
|
2195
2185
|
triggerRef: i
|
|
2196
2186
|
}) {
|
|
@@ -2206,7 +2196,7 @@ function Yr({
|
|
|
2206
2196
|
) : /* @__PURE__ */ n.jsx(
|
|
2207
2197
|
_e,
|
|
2208
2198
|
{
|
|
2209
|
-
icon:
|
|
2199
|
+
icon: Fe,
|
|
2210
2200
|
label: r("profile_default_payment"),
|
|
2211
2201
|
detail: l.isPending ? r("profile_loading") : d ? r("profile_card_ending", {
|
|
2212
2202
|
brand: d.brand || r("card_fallback"),
|
|
@@ -2229,24 +2219,24 @@ function lt(e, i, r) {
|
|
|
2229
2219
|
return new Intl.DateTimeFormat("en-US", l).format(e);
|
|
2230
2220
|
}
|
|
2231
2221
|
}
|
|
2232
|
-
function
|
|
2222
|
+
function Yr(e, i) {
|
|
2233
2223
|
if (!e) return null;
|
|
2234
2224
|
const r = new Date(e);
|
|
2235
2225
|
return Number.isNaN(r.getTime()) ? null : lt(r, i);
|
|
2236
2226
|
}
|
|
2237
|
-
function
|
|
2227
|
+
function Wr(e, i) {
|
|
2238
2228
|
if (!e) return null;
|
|
2239
2229
|
const r = /* @__PURE__ */ new Date(`${e.slice(0, 10)}T00:00:00Z`);
|
|
2240
2230
|
return Number.isNaN(r.getTime()) ? null : lt(r, i, "UTC");
|
|
2241
2231
|
}
|
|
2242
|
-
const
|
|
2232
|
+
const Xr = se({
|
|
2243
2233
|
subscription: se({
|
|
2244
2234
|
token: L(),
|
|
2245
2235
|
plan_name: L().nullish(),
|
|
2246
2236
|
next_billing_date: L().nullish()
|
|
2247
2237
|
}).nullish()
|
|
2248
2238
|
});
|
|
2249
|
-
async function
|
|
2239
|
+
async function Zr(e = Ct) {
|
|
2250
2240
|
const i = await e(
|
|
2251
2241
|
"/api/member-storefront/subscriptions/next",
|
|
2252
2242
|
{
|
|
@@ -2256,32 +2246,32 @@ async function Jr(e = wt) {
|
|
|
2256
2246
|
);
|
|
2257
2247
|
if (!i.ok)
|
|
2258
2248
|
throw new Error(`Next subscription request failed (${i.status})`);
|
|
2259
|
-
const { subscription: r } =
|
|
2249
|
+
const { subscription: r } = Xr.parse(await i.json());
|
|
2260
2250
|
return r ? {
|
|
2261
2251
|
token: r.token,
|
|
2262
2252
|
planName: r.plan_name ?? null,
|
|
2263
2253
|
nextBillingDate: r.next_billing_date ?? null
|
|
2264
2254
|
} : null;
|
|
2265
2255
|
}
|
|
2266
|
-
function
|
|
2256
|
+
function Jr() {
|
|
2267
2257
|
const e = Jt(), i = v.useMemo(() => Et(e), [e]);
|
|
2268
|
-
return
|
|
2258
|
+
return Q({
|
|
2269
2259
|
queryKey: ["memberStorefront", "profile", "latest-order"],
|
|
2270
2260
|
queryFn: async () => (await i.fetchCustomerOrders({ limit: 1 })).orders[0] ?? null
|
|
2271
2261
|
});
|
|
2272
2262
|
}
|
|
2273
|
-
function
|
|
2263
|
+
function en() {
|
|
2274
2264
|
const { fetch: e } = fe();
|
|
2275
|
-
return
|
|
2265
|
+
return Q({
|
|
2276
2266
|
queryKey: ["memberStorefront", "profile", "next-subscription"],
|
|
2277
|
-
queryFn: () =>
|
|
2267
|
+
queryFn: () => Zr(e)
|
|
2278
2268
|
});
|
|
2279
2269
|
}
|
|
2280
|
-
function
|
|
2270
|
+
function tn({
|
|
2281
2271
|
onOpen: e,
|
|
2282
2272
|
triggerRef: i
|
|
2283
2273
|
}) {
|
|
2284
|
-
const { t: r } = R(), { locale: l } = T(), d =
|
|
2274
|
+
const { t: r } = R(), { locale: l } = T(), d = Jr();
|
|
2285
2275
|
if (d.error)
|
|
2286
2276
|
return /* @__PURE__ */ n.jsx(
|
|
2287
2277
|
be,
|
|
@@ -2294,12 +2284,12 @@ function rn({
|
|
|
2294
2284
|
);
|
|
2295
2285
|
const u = d.data, p = d.isPending ? r("profile_loading") : u ? [
|
|
2296
2286
|
u.order_number ? `#${u.order_number}` : null,
|
|
2297
|
-
|
|
2287
|
+
Yr(u.created_at, l)
|
|
2298
2288
|
].filter(Boolean).join(" · ") || r("profile_view_orders") : r("profile_no_orders");
|
|
2299
2289
|
return /* @__PURE__ */ n.jsx(
|
|
2300
2290
|
_e,
|
|
2301
2291
|
{
|
|
2302
|
-
icon:
|
|
2292
|
+
icon: ke,
|
|
2303
2293
|
label: r("profile_latest_order"),
|
|
2304
2294
|
detail: p,
|
|
2305
2295
|
busy: d.isPending,
|
|
@@ -2308,11 +2298,11 @@ function rn({
|
|
|
2308
2298
|
}
|
|
2309
2299
|
);
|
|
2310
2300
|
}
|
|
2311
|
-
function
|
|
2301
|
+
function rn({
|
|
2312
2302
|
onOpen: e,
|
|
2313
2303
|
triggerRef: i
|
|
2314
2304
|
}) {
|
|
2315
|
-
const { t: r } = R(), { locale: l } = T(), d =
|
|
2305
|
+
const { t: r } = R(), { locale: l } = T(), d = en();
|
|
2316
2306
|
if (d.error)
|
|
2317
2307
|
return /* @__PURE__ */ n.jsx(
|
|
2318
2308
|
be,
|
|
@@ -2323,7 +2313,7 @@ function nn({
|
|
|
2323
2313
|
onRetry: () => void d.refetch()
|
|
2324
2314
|
}
|
|
2325
2315
|
);
|
|
2326
|
-
const u = d.data, p =
|
|
2316
|
+
const u = d.data, p = Wr(u?.nextBillingDate, l), g = d.isPending ? r("profile_loading") : u ? [
|
|
2327
2317
|
u.planName,
|
|
2328
2318
|
p ? r("profile_next_bill_on", { date: p }) : null
|
|
2329
2319
|
].filter(Boolean).join(" · ") || r("profile_view_subscriptions") : r("profile_no_next_subscription");
|
|
@@ -2339,7 +2329,7 @@ function nn({
|
|
|
2339
2329
|
}
|
|
2340
2330
|
);
|
|
2341
2331
|
}
|
|
2342
|
-
function
|
|
2332
|
+
function nn({
|
|
2343
2333
|
onOpenPayment: e,
|
|
2344
2334
|
paymentTriggerRef: i,
|
|
2345
2335
|
onOpenOrder: r,
|
|
@@ -2352,15 +2342,15 @@ function sn({
|
|
|
2352
2342
|
/* @__PURE__ */ n.jsx("h2", { className: "text-muted-foreground text-sm font-medium", children: p("profile_at_a_glance") }),
|
|
2353
2343
|
/* @__PURE__ */ n.jsxs("div", { className: "space-y-3", children: [
|
|
2354
2344
|
/* @__PURE__ */ n.jsx(
|
|
2355
|
-
|
|
2345
|
+
Gr,
|
|
2356
2346
|
{
|
|
2357
2347
|
onOpen: e,
|
|
2358
2348
|
triggerRef: i
|
|
2359
2349
|
}
|
|
2360
2350
|
),
|
|
2361
|
-
/* @__PURE__ */ n.jsx(
|
|
2351
|
+
/* @__PURE__ */ n.jsx(tn, { onOpen: r, triggerRef: l }),
|
|
2362
2352
|
/* @__PURE__ */ n.jsx(
|
|
2363
|
-
|
|
2353
|
+
rn,
|
|
2364
2354
|
{
|
|
2365
2355
|
onOpen: d,
|
|
2366
2356
|
triggerRef: u
|
|
@@ -2369,7 +2359,7 @@ function sn({
|
|
|
2369
2359
|
] })
|
|
2370
2360
|
] });
|
|
2371
2361
|
}
|
|
2372
|
-
function
|
|
2362
|
+
function sn({
|
|
2373
2363
|
initialLanguage: e
|
|
2374
2364
|
}) {
|
|
2375
2365
|
const { t: i } = R(), r = tt(), l = rt(), [d, u] = v.useState(e);
|
|
@@ -2388,7 +2378,7 @@ function an({
|
|
|
2388
2378
|
},
|
|
2389
2379
|
children: [
|
|
2390
2380
|
/* @__PURE__ */ n.jsxs("div", { className: "space-y-2", children: [
|
|
2391
|
-
/* @__PURE__ */ n.jsx(
|
|
2381
|
+
/* @__PURE__ */ n.jsx(wt, { htmlFor: "profile-language", children: i("language") }),
|
|
2392
2382
|
/* @__PURE__ */ n.jsx("p", { className: "text-muted-foreground text-sm", children: i("profile_language_hint") }),
|
|
2393
2383
|
/* @__PURE__ */ n.jsxs(
|
|
2394
2384
|
"select",
|
|
@@ -2419,29 +2409,29 @@ function an({
|
|
|
2419
2409
|
}
|
|
2420
2410
|
);
|
|
2421
2411
|
}
|
|
2422
|
-
function
|
|
2412
|
+
function an() {
|
|
2423
2413
|
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({});
|
|
2424
2414
|
if (i.error) throw i.error;
|
|
2425
2415
|
if (r.error) throw r.error;
|
|
2426
2416
|
if (!i.data || !r.data)
|
|
2427
2417
|
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/"),
|
|
2418
|
+
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 = [
|
|
2429
2419
|
{
|
|
2430
2420
|
slug: "profile/information",
|
|
2431
2421
|
label: e("personal_information"),
|
|
2432
|
-
icon:
|
|
2422
|
+
icon: lr,
|
|
2433
2423
|
dialog: !0
|
|
2434
2424
|
},
|
|
2435
2425
|
{
|
|
2436
2426
|
slug: "profile/payment-methods",
|
|
2437
2427
|
label: e("payment_methods"),
|
|
2438
|
-
icon:
|
|
2428
|
+
icon: Fe
|
|
2439
2429
|
},
|
|
2440
2430
|
{ slug: "profile/addresses", label: e("shipping_addresses"), icon: er },
|
|
2441
2431
|
{
|
|
2442
2432
|
slug: "orders",
|
|
2443
2433
|
label: e("orders"),
|
|
2444
|
-
icon:
|
|
2434
|
+
icon: ke
|
|
2445
2435
|
},
|
|
2446
2436
|
{
|
|
2447
2437
|
slug: "subscriptions",
|
|
@@ -2451,14 +2441,14 @@ function on() {
|
|
|
2451
2441
|
{
|
|
2452
2442
|
slug: "profile/language",
|
|
2453
2443
|
label: e("language"),
|
|
2454
|
-
icon:
|
|
2444
|
+
icon: nr,
|
|
2455
2445
|
value: s.language_iso?.toUpperCase()
|
|
2456
2446
|
},
|
|
2457
2447
|
...p.data ? [
|
|
2458
2448
|
{
|
|
2459
2449
|
slug: "profile/points",
|
|
2460
2450
|
label: k,
|
|
2461
|
-
icon:
|
|
2451
|
+
icon: ir,
|
|
2462
2452
|
value: new Intl.NumberFormat(g).format(
|
|
2463
2453
|
p.data.points_ledgers[0]?.total_balance ?? 0
|
|
2464
2454
|
)
|
|
@@ -2474,21 +2464,21 @@ function on() {
|
|
|
2474
2464
|
return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
2475
2465
|
/* @__PURE__ */ n.jsx(Nt, { children: /* @__PURE__ */ n.jsx("span", { className: "text-lg font-semibold", children: e("breadcrumb") }) }),
|
|
2476
2466
|
_ ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
2477
|
-
|
|
2478
|
-
/* @__PURE__ */ n.jsx(
|
|
2467
|
+
C && /* @__PURE__ */ n.jsx("div", { className: "px-5 pt-6 md:px-8", children: /* @__PURE__ */ n.jsxs(E, { variant: "ghost", onClick: F, children: [
|
|
2468
|
+
/* @__PURE__ */ n.jsx(Ce, { "aria-hidden": "true", className: "size-4" }),
|
|
2479
2469
|
e("profile_back")
|
|
2480
2470
|
] }) }),
|
|
2481
|
-
/* @__PURE__ */ n.jsx(
|
|
2471
|
+
/* @__PURE__ */ n.jsx(Dr, { children: N ? /* @__PURE__ */ n.jsx(At, {}) : /* @__PURE__ */ n.jsx(Lr, {}) })
|
|
2482
2472
|
] }) : /* @__PURE__ */ n.jsxs("main", { className: "mx-auto w-full max-w-3xl space-y-8 p-4 sm:p-8", children: [
|
|
2483
2473
|
m || f || x || h ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
2484
2474
|
/* @__PURE__ */ n.jsxs(E, { variant: "ghost", onClick: F, children: [
|
|
2485
|
-
/* @__PURE__ */ n.jsx(
|
|
2475
|
+
/* @__PURE__ */ n.jsx(Ce, { "aria-hidden": "true", className: "size-4" }),
|
|
2486
2476
|
e("profile_back")
|
|
2487
2477
|
] }),
|
|
2488
2478
|
/* @__PURE__ */ n.jsx("h1", { className: "text-2xl font-semibold", children: x ? k : e(
|
|
2489
2479
|
h ? "payment_methods" : f ? "shipping_addresses" : "language"
|
|
2490
2480
|
) }),
|
|
2491
|
-
h ? /* @__PURE__ */ n.jsx(
|
|
2481
|
+
h ? /* @__PURE__ */ n.jsx(Kr, {}) : f ? /* @__PURE__ */ n.jsx(Br, {}) : x ? /* @__PURE__ */ n.jsx(Ur, {}) : /* @__PURE__ */ n.jsx(sn, { initialLanguage: s.language_iso ?? "" })
|
|
2492
2482
|
] }) : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
2493
2483
|
/* @__PURE__ */ n.jsxs(
|
|
2494
2484
|
"section",
|
|
@@ -2498,15 +2488,15 @@ function on() {
|
|
|
2498
2488
|
children: [
|
|
2499
2489
|
/* @__PURE__ */ n.jsxs("div", { className: "flex flex-wrap items-center justify-between gap-4 sm:gap-6", children: [
|
|
2500
2490
|
/* @__PURE__ */ n.jsxs("div", { className: "flex min-w-0 flex-1 items-center gap-3 sm:gap-4", children: [
|
|
2501
|
-
/* @__PURE__ */ n.jsxs(
|
|
2491
|
+
/* @__PURE__ */ n.jsxs(vr, { className: "size-12 shrink-0 sm:size-16", children: [
|
|
2502
2492
|
/* @__PURE__ */ n.jsx(
|
|
2503
|
-
|
|
2493
|
+
yr,
|
|
2504
2494
|
{
|
|
2505
2495
|
src: s.avatar_url ?? void 0,
|
|
2506
2496
|
alt: ""
|
|
2507
2497
|
}
|
|
2508
2498
|
),
|
|
2509
|
-
/* @__PURE__ */ n.jsx(
|
|
2499
|
+
/* @__PURE__ */ n.jsx(jr, { children: `${s.first_name[0] ?? ""}${s.last_name[0] ?? ""}` })
|
|
2510
2500
|
] }),
|
|
2511
2501
|
/* @__PURE__ */ n.jsxs("div", { className: "min-w-0 space-y-1", children: [
|
|
2512
2502
|
c && /* @__PURE__ */ n.jsx("p", { className: "text-muted-foreground text-xs font-medium", children: e("member_of", { company: r.data.name }) }),
|
|
@@ -2584,7 +2574,7 @@ function on() {
|
|
|
2584
2574
|
}
|
|
2585
2575
|
),
|
|
2586
2576
|
/* @__PURE__ */ n.jsx(
|
|
2587
|
-
|
|
2577
|
+
nn,
|
|
2588
2578
|
{
|
|
2589
2579
|
paymentTriggerRef: (y) => {
|
|
2590
2580
|
t.current["profile/default-payment"] = y;
|
|
@@ -2646,13 +2636,13 @@ function on() {
|
|
|
2646
2636
|
}
|
|
2647
2637
|
)
|
|
2648
2638
|
] }),
|
|
2649
|
-
l === "profile/information" && /* @__PURE__ */ n.jsx(
|
|
2639
|
+
l === "profile/information" && /* @__PURE__ */ n.jsx(Or, { account: s, onClose: F })
|
|
2650
2640
|
] })
|
|
2651
2641
|
] });
|
|
2652
2642
|
}
|
|
2653
|
-
function
|
|
2654
|
-
return /* @__PURE__ */ n.jsx(Pt, { children: /* @__PURE__ */ n.jsx(
|
|
2643
|
+
function Nn() {
|
|
2644
|
+
return /* @__PURE__ */ n.jsx(Pt, { children: /* @__PURE__ */ n.jsx(an, {}) });
|
|
2655
2645
|
}
|
|
2656
2646
|
export {
|
|
2657
|
-
|
|
2647
|
+
Nn as default
|
|
2658
2648
|
};
|