@fluid-app/fluid-cli-theme-dev 0.1.908 → 0.1.910
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 +22 -22
- package/dist/dist-cli-preview/account-screens.js +1 -1
- package/dist/dist-cli-preview/chunks/{MediaScreen-LS8BqdJo.js → MediaScreen-BeW7cyF3.js} +1 -1
- package/dist/dist-cli-preview/chunks/{MemberShareablesScreen-B_90NXVv.js → MemberShareablesScreen-Cjiwm4hS.js} +1 -1
- package/dist/dist-cli-preview/chunks/{PlaylistsScreen-30HuA--_.js → PlaylistsScreen-C-g9E_Fb.js} +1 -1
- package/dist/dist-cli-preview/chunks/{ProfileScreen-CzgfmfKM.js → ProfileScreen-orGTC794.js} +1 -1
- package/dist/dist-cli-preview/chunks/{SubscriptionsScreen-DNDW_BaY.js → SubscriptionsScreen-ctYrPNHQ.js} +1 -1
- package/dist/dist-cli-preview/chunks/{cli-preview-BpH7WOe-.js → cli-preview-CmXcVR8O.js} +5 -5
- package/dist/dist-cli-preview/chunks/{create-card-entry-container-DrPn7Z4x.js → create-card-entry-container-C2ukbqXJ.js} +112 -109
- package/dist/dist-cli-preview/chunks/{mount-account-screen-CYp2b75A.js → mount-account-screen-ClGhNo9j.js} +2 -2
- package/dist/dist-cli-preview/chunks/{navigate-account-screen-ZvE87bLi.js → navigate-account-screen-AGarxy-u.js} +1 -1
- package/package.json +2 -2
|
@@ -1486,8 +1486,8 @@
|
|
|
1486
1486
|
"../../profile/core/src/locale/zh_TW.json"
|
|
1487
1487
|
]
|
|
1488
1488
|
},
|
|
1489
|
-
"_MemberShareablesScreen-
|
|
1490
|
-
"file": "chunks/MemberShareablesScreen-
|
|
1489
|
+
"_MemberShareablesScreen-Cjiwm4hS.js": {
|
|
1490
|
+
"file": "chunks/MemberShareablesScreen-Cjiwm4hS.js",
|
|
1491
1491
|
"name": "MemberShareablesScreen",
|
|
1492
1492
|
"imports": [
|
|
1493
1493
|
"_account-screen-runtime-B9i-9CLs.js",
|
|
@@ -1511,7 +1511,7 @@
|
|
|
1511
1511
|
"_member-permissions-ndhNmlOk.js",
|
|
1512
1512
|
"_use-store-CXu_fhao.js",
|
|
1513
1513
|
"_client.gen-CG8-mDod.js",
|
|
1514
|
-
"_navigate-account-screen-
|
|
1514
|
+
"_navigate-account-screen-AGarxy-u.js"
|
|
1515
1515
|
],
|
|
1516
1516
|
"dynamicImports": [
|
|
1517
1517
|
"../../shareables/core/src/locale/ar.json",
|
|
@@ -1652,8 +1652,8 @@
|
|
|
1652
1652
|
"_account-screen-runtime-B9i-9CLs.js"
|
|
1653
1653
|
]
|
|
1654
1654
|
},
|
|
1655
|
-
"_cli-preview-
|
|
1656
|
-
"file": "chunks/cli-preview-
|
|
1655
|
+
"_cli-preview-CmXcVR8O.js": {
|
|
1656
|
+
"file": "chunks/cli-preview-CmXcVR8O.js",
|
|
1657
1657
|
"name": "cli-preview",
|
|
1658
1658
|
"dynamicImports": [
|
|
1659
1659
|
"src/screens/SubscriptionsScreen.tsx",
|
|
@@ -1697,8 +1697,8 @@
|
|
|
1697
1697
|
"_client.gen-CG8-mDod.js"
|
|
1698
1698
|
]
|
|
1699
1699
|
},
|
|
1700
|
-
"_create-card-entry-container-
|
|
1701
|
-
"file": "chunks/create-card-entry-container-
|
|
1700
|
+
"_create-card-entry-container-C2ukbqXJ.js": {
|
|
1701
|
+
"file": "chunks/create-card-entry-container-C2ukbqXJ.js",
|
|
1702
1702
|
"name": "create-card-entry-container",
|
|
1703
1703
|
"imports": [
|
|
1704
1704
|
"_account-screen-runtime-B9i-9CLs.js",
|
|
@@ -1798,11 +1798,11 @@
|
|
|
1798
1798
|
"file": "chunks/member-permissions-ndhNmlOk.js",
|
|
1799
1799
|
"name": "member-permissions"
|
|
1800
1800
|
},
|
|
1801
|
-
"_navigate-account-screen-
|
|
1802
|
-
"file": "chunks/navigate-account-screen-
|
|
1801
|
+
"_navigate-account-screen-AGarxy-u.js": {
|
|
1802
|
+
"file": "chunks/navigate-account-screen-AGarxy-u.js",
|
|
1803
1803
|
"name": "navigate-account-screen",
|
|
1804
1804
|
"imports": [
|
|
1805
|
-
"_cli-preview-
|
|
1805
|
+
"_cli-preview-CmXcVR8O.js"
|
|
1806
1806
|
]
|
|
1807
1807
|
},
|
|
1808
1808
|
"_schemas-CZvv_5iX.js": {
|
|
@@ -1908,11 +1908,11 @@
|
|
|
1908
1908
|
"src": "src/browser/cli-preview.ts",
|
|
1909
1909
|
"isEntry": true,
|
|
1910
1910
|
"imports": [
|
|
1911
|
-
"_cli-preview-
|
|
1911
|
+
"_cli-preview-CmXcVR8O.js"
|
|
1912
1912
|
]
|
|
1913
1913
|
},
|
|
1914
1914
|
"src/runtime/mount-account-screen.tsx": {
|
|
1915
|
-
"file": "chunks/mount-account-screen-
|
|
1915
|
+
"file": "chunks/mount-account-screen-ClGhNo9j.js",
|
|
1916
1916
|
"name": "mount-account-screen",
|
|
1917
1917
|
"src": "src/runtime/mount-account-screen.tsx",
|
|
1918
1918
|
"isDynamicEntry": true,
|
|
@@ -1922,8 +1922,8 @@
|
|
|
1922
1922
|
"_store-api-context-TW7uud2C.js",
|
|
1923
1923
|
"_hey-api-client-EAWr0fT_.js",
|
|
1924
1924
|
"_use-mobile-BChC77Fq.js",
|
|
1925
|
-
"_navigate-account-screen-
|
|
1926
|
-
"_cli-preview-
|
|
1925
|
+
"_navigate-account-screen-AGarxy-u.js",
|
|
1926
|
+
"_cli-preview-CmXcVR8O.js",
|
|
1927
1927
|
"_arrow-left-Ds5JkG8w.js"
|
|
1928
1928
|
]
|
|
1929
1929
|
},
|
|
@@ -1992,13 +1992,13 @@
|
|
|
1992
1992
|
]
|
|
1993
1993
|
},
|
|
1994
1994
|
"src/screens/MediaScreen.tsx": {
|
|
1995
|
-
"file": "chunks/MediaScreen-
|
|
1995
|
+
"file": "chunks/MediaScreen-BeW7cyF3.js",
|
|
1996
1996
|
"name": "MediaScreen",
|
|
1997
1997
|
"src": "src/screens/MediaScreen.tsx",
|
|
1998
1998
|
"isDynamicEntry": true,
|
|
1999
1999
|
"imports": [
|
|
2000
2000
|
"_account-screen-runtime-B9i-9CLs.js",
|
|
2001
|
-
"_MemberShareablesScreen-
|
|
2001
|
+
"_MemberShareablesScreen-Cjiwm4hS.js"
|
|
2002
2002
|
]
|
|
2003
2003
|
},
|
|
2004
2004
|
"src/screens/MessagingScreen.tsx": {
|
|
@@ -2122,17 +2122,17 @@
|
|
|
2122
2122
|
]
|
|
2123
2123
|
},
|
|
2124
2124
|
"src/screens/PlaylistsScreen.tsx": {
|
|
2125
|
-
"file": "chunks/PlaylistsScreen-
|
|
2125
|
+
"file": "chunks/PlaylistsScreen-C-g9E_Fb.js",
|
|
2126
2126
|
"name": "PlaylistsScreen",
|
|
2127
2127
|
"src": "src/screens/PlaylistsScreen.tsx",
|
|
2128
2128
|
"isDynamicEntry": true,
|
|
2129
2129
|
"imports": [
|
|
2130
2130
|
"_account-screen-runtime-B9i-9CLs.js",
|
|
2131
|
-
"_MemberShareablesScreen-
|
|
2131
|
+
"_MemberShareablesScreen-Cjiwm4hS.js"
|
|
2132
2132
|
]
|
|
2133
2133
|
},
|
|
2134
2134
|
"src/screens/ProfileScreen.tsx": {
|
|
2135
|
-
"file": "chunks/ProfileScreen-
|
|
2135
|
+
"file": "chunks/ProfileScreen-orGTC794.js",
|
|
2136
2136
|
"name": "ProfileScreen",
|
|
2137
2137
|
"src": "src/screens/ProfileScreen.tsx",
|
|
2138
2138
|
"isDynamicEntry": true,
|
|
@@ -2140,7 +2140,7 @@
|
|
|
2140
2140
|
"_account-screen-runtime-B9i-9CLs.js",
|
|
2141
2141
|
"_MemberManagementProviders-Bln-Y7uX.js",
|
|
2142
2142
|
"_OrdersScreen-0mJVaeqy.js",
|
|
2143
|
-
"_create-card-entry-container-
|
|
2143
|
+
"_create-card-entry-container-C2ukbqXJ.js",
|
|
2144
2144
|
"_member-permissions-ndhNmlOk.js",
|
|
2145
2145
|
"_use-store-CXu_fhao.js",
|
|
2146
2146
|
"_schemas-CZvv_5iX.js",
|
|
@@ -2155,13 +2155,13 @@
|
|
|
2155
2155
|
]
|
|
2156
2156
|
},
|
|
2157
2157
|
"src/screens/SubscriptionsScreen.tsx": {
|
|
2158
|
-
"file": "chunks/SubscriptionsScreen-
|
|
2158
|
+
"file": "chunks/SubscriptionsScreen-ctYrPNHQ.js",
|
|
2159
2159
|
"name": "SubscriptionsScreen",
|
|
2160
2160
|
"src": "src/screens/SubscriptionsScreen.tsx",
|
|
2161
2161
|
"isDynamicEntry": true,
|
|
2162
2162
|
"imports": [
|
|
2163
2163
|
"_account-screen-runtime-B9i-9CLs.js",
|
|
2164
|
-
"_create-card-entry-container-
|
|
2164
|
+
"_create-card-entry-container-C2ukbqXJ.js",
|
|
2165
2165
|
"_MemberManagementProviders-Bln-Y7uX.js"
|
|
2166
2166
|
]
|
|
2167
2167
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import "./chunks/cli-preview-
|
|
1
|
+
import "./chunks/cli-preview-CmXcVR8O.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { j as e } from "./account-screen-runtime-B9i-9CLs.js";
|
|
2
|
-
import { M as r } from "./MemberShareablesScreen-
|
|
2
|
+
import { M as r } from "./MemberShareablesScreen-Cjiwm4hS.js";
|
|
3
3
|
function t() {
|
|
4
4
|
return /* @__PURE__ */ e.jsx(r, { curation: "when-served" });
|
|
5
5
|
}
|
|
@@ -19,7 +19,7 @@ import { u as ec } from "./index-BNk_peyi.js";
|
|
|
19
19
|
import { d as tc } from "./member-permissions-ndhNmlOk.js";
|
|
20
20
|
import { u as sc } from "./use-store-CXu_fhao.js";
|
|
21
21
|
import { c as ac, a as rc } from "./client.gen-CG8-mDod.js";
|
|
22
|
-
import { i as nc } from "./navigate-account-screen-
|
|
22
|
+
import { i as nc } from "./navigate-account-screen-AGarxy-u.js";
|
|
23
23
|
/**
|
|
24
24
|
* @license lucide-react v0.575.0 - ISC
|
|
25
25
|
*
|
package/dist/dist-cli-preview/chunks/{PlaylistsScreen-30HuA--_.js → PlaylistsScreen-C-g9E_Fb.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { j as r } from "./account-screen-runtime-B9i-9CLs.js";
|
|
2
|
-
import { M as e } from "./MemberShareablesScreen-
|
|
2
|
+
import { M as e } from "./MemberShareablesScreen-Cjiwm4hS.js";
|
|
3
3
|
function a() {
|
|
4
4
|
return /* @__PURE__ */ r.jsx(e, { curation: "always" });
|
|
5
5
|
}
|
package/dist/dist-cli-preview/chunks/{ProfileScreen-CzgfmfKM.js → ProfileScreen-orGTC794.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as Y, i as ht, l as v, j as n, G as pt, J as ce, al as gt, am as ne, X as de, an as xt, $ as E, I as Ce, Z as A, B as ue, D as Me, E as fe, x as _t, Y as $, ao as bt, _ as H, aj as T, ap as vt, aq as yt, ai as jt, P as Ct, ar as J, z as me, a3 as Re, q as wt, a7 as Nt, a1 as St } from "./account-screen-runtime-B9i-9CLs.js";
|
|
2
2
|
import { u as R, a as Et, b as B, c as Pt, M as At } from "./MemberManagementProviders-Bln-Y7uX.js";
|
|
3
3
|
import { O as Mt } from "./OrdersScreen-0mJVaeqy.js";
|
|
4
|
-
import { F as ee, e as Rt, f as Ft, S as It, P as Lt, a as kt, b as Dt, d as Ot, A as zt, C as Fe, c as Tt, g as Bt, u as Ut, i as $t, h as qt, T as Qt, j as Vt, k as Ht, m as Kt, E as Gt, p as Yt, l as Ie } from "./create-card-entry-container-
|
|
4
|
+
import { F as ee, e as Rt, f as Ft, S as It, P as Lt, a as kt, b as Dt, d as Ot, A as zt, C as Fe, c as Tt, g as Bt, u as Ut, i as $t, h as qt, T as Qt, j as Vt, k as Ht, m as Kt, E as Gt, p as Yt, l as Ie } from "./create-card-entry-container-C2ukbqXJ.js";
|
|
5
5
|
import { c as Xt } from "./member-permissions-ndhNmlOk.js";
|
|
6
6
|
import { u as he } from "./use-store-CXu_fhao.js";
|
|
7
7
|
import { u as K, f as Wt, o as se, s as L } from "./schemas-CZvv_5iX.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { l as o, z as u, j as r, P as d, B as l, D as p, E as m } from "./account-screen-runtime-B9i-9CLs.js";
|
|
2
|
-
import { c as x, S as f, P as j, a as S, b as P, d as h } from "./create-card-entry-container-
|
|
2
|
+
import { c as x, S as f, P as j, a as S, b as P, d as h } from "./create-card-entry-container-C2ukbqXJ.js";
|
|
3
3
|
import { M as b } from "./MemberManagementProviders-Bln-Y7uX.js";
|
|
4
4
|
function v({
|
|
5
5
|
children: n
|
|
@@ -4,7 +4,7 @@ var l = (t, e, s) => b(t, typeof e != "symbol" ? e + "" : e, s);
|
|
|
4
4
|
const p = {
|
|
5
5
|
subscriptions: async () => {
|
|
6
6
|
const [t, e] = await Promise.all([
|
|
7
|
-
import("./SubscriptionsScreen-
|
|
7
|
+
import("./SubscriptionsScreen-ctYrPNHQ.js"),
|
|
8
8
|
import("./subscriptions-DF_fAjQj.js")
|
|
9
9
|
]);
|
|
10
10
|
return { Component: t.SubscriptionsScreen, styles: e.default };
|
|
@@ -18,21 +18,21 @@ const p = {
|
|
|
18
18
|
},
|
|
19
19
|
media: async () => {
|
|
20
20
|
const [t, e] = await Promise.all([
|
|
21
|
-
import("./MediaScreen-
|
|
21
|
+
import("./MediaScreen-BeW7cyF3.js"),
|
|
22
22
|
import("./media-7vUjJ3C6.js")
|
|
23
23
|
]);
|
|
24
24
|
return { Component: t.MediaScreen, styles: e.default };
|
|
25
25
|
},
|
|
26
26
|
playlists: async () => {
|
|
27
27
|
const [t, e] = await Promise.all([
|
|
28
|
-
import("./PlaylistsScreen-
|
|
28
|
+
import("./PlaylistsScreen-C-g9E_Fb.js"),
|
|
29
29
|
import("./playlists-7vUjJ3C6.js")
|
|
30
30
|
]);
|
|
31
31
|
return { Component: t.PlaylistsScreen, styles: e.default };
|
|
32
32
|
},
|
|
33
33
|
profile: async () => {
|
|
34
34
|
const [t, e] = await Promise.all([
|
|
35
|
-
import("./ProfileScreen-
|
|
35
|
+
import("./ProfileScreen-orGTC794.js"),
|
|
36
36
|
import("./profile-g3axYULK.js")
|
|
37
37
|
]);
|
|
38
38
|
return { Component: t.default, styles: e.default };
|
|
@@ -132,7 +132,7 @@ function h(t = "fluid-account-screen", e, s = !1) {
|
|
|
132
132
|
this.status(!1);
|
|
133
133
|
try {
|
|
134
134
|
const [a, i] = await Promise.all([
|
|
135
|
-
import("./mount-account-screen-
|
|
135
|
+
import("./mount-account-screen-ClGhNo9j.js"),
|
|
136
136
|
w(r)
|
|
137
137
|
]);
|
|
138
138
|
if (!this.isConnected || this.generation !== n) return;
|
|
@@ -3485,7 +3485,7 @@ function L2(e) {
|
|
|
3485
3485
|
})).milestones,
|
|
3486
3486
|
updateSubscriptionInfo: async (n, t) => {
|
|
3487
3487
|
const r = {};
|
|
3488
|
-
t.payment_method_id != null && (r.payment_method_id = t.payment_method_id), t.quantity != null && (r.quantity = t.quantity), t.address_id != null && (r.address_id = t.address_id), t.next_bill_date != null && (r.next_bill_date = t.next_bill_date), t.auto_apply_points != null && (r.auto_apply_points = t.auto_apply_points);
|
|
3488
|
+
t.payment_method_id != null && (r.payment_method_id = t.payment_method_id), t.quantity != null && (r.quantity = t.quantity), t.address_id != null && (r.address_id = t.address_id), t.next_bill_date != null && (r.next_bill_date = t.next_bill_date), t.confirm_early_order !== void 0 && (r.confirm_early_order = t.confirm_early_order), t.auto_apply_points != null && (r.auto_apply_points = t.auto_apply_points);
|
|
3489
3489
|
const a = await Si({
|
|
3490
3490
|
client: e,
|
|
3491
3491
|
path: { token: n },
|
|
@@ -4838,8 +4838,8 @@ function S1({
|
|
|
4838
4838
|
C(!1);
|
|
4839
4839
|
const Z = ++$.current;
|
|
4840
4840
|
j.current = setTimeout(() => {
|
|
4841
|
-
j.current = null, g.fetchSuggestions({ query: W, countryIso: t }).then((
|
|
4842
|
-
Z === $.current && (E(
|
|
4841
|
+
j.current = null, g.fetchSuggestions({ query: W, countryIso: t }).then((G) => {
|
|
4842
|
+
Z === $.current && (E(G), F(!0));
|
|
4843
4843
|
});
|
|
4844
4844
|
}, c0);
|
|
4845
4845
|
},
|
|
@@ -4858,7 +4858,7 @@ function S1({
|
|
|
4858
4858
|
return;
|
|
4859
4859
|
}
|
|
4860
4860
|
if (!g) return;
|
|
4861
|
-
const { details: Z, drilldownSuggestions:
|
|
4861
|
+
const { details: Z, drilldownSuggestions: G } = await g.fetchDetails({
|
|
4862
4862
|
suggestion: I,
|
|
4863
4863
|
countryIso: t
|
|
4864
4864
|
});
|
|
@@ -4867,7 +4867,7 @@ function S1({
|
|
|
4867
4867
|
H(Z), F(!1);
|
|
4868
4868
|
return;
|
|
4869
4869
|
}
|
|
4870
|
-
E(
|
|
4870
|
+
E(G), F(!0);
|
|
4871
4871
|
}
|
|
4872
4872
|
},
|
|
4873
4873
|
[g, t, H]
|
|
@@ -5097,7 +5097,7 @@ function g0({
|
|
|
5097
5097
|
m.useEffect(() => {
|
|
5098
5098
|
Z && H(Z, u);
|
|
5099
5099
|
}, [Z, H, u]);
|
|
5100
|
-
const
|
|
5100
|
+
const G = D === $, Q = P1(), [X, te] = m.useState(null);
|
|
5101
5101
|
m.useEffect(() => {
|
|
5102
5102
|
if (!Q || !Z) return;
|
|
5103
5103
|
let q = !1;
|
|
@@ -5112,17 +5112,17 @@ function g0({
|
|
|
5112
5112
|
q = !0;
|
|
5113
5113
|
};
|
|
5114
5114
|
}, [Q, Z, d]);
|
|
5115
|
-
const
|
|
5116
|
-
() => D1(
|
|
5117
|
-
[
|
|
5115
|
+
const U = X?.country === $ ? X?.fields : null, de = m.useMemo(
|
|
5116
|
+
() => D1(U ?? null).filter((q) => q !== "phone"),
|
|
5117
|
+
[U]
|
|
5118
5118
|
), R = m.useMemo(
|
|
5119
5119
|
() => k1(de),
|
|
5120
5120
|
[de]
|
|
5121
5121
|
), ee = Q ? Z === null || X?.country === $ : (
|
|
5122
5122
|
// Without the service, the option list is the only signal, so wait for it.
|
|
5123
|
-
|
|
5124
|
-
), A = (q) =>
|
|
5125
|
-
const ce = H1(
|
|
5123
|
+
G
|
|
5124
|
+
), A = (q) => U ? kr(U, q) : q === "state" ? B.length > 0 : kr(null, q), k = (q) => {
|
|
5125
|
+
const ce = H1(U ?? null, q, {
|
|
5126
5126
|
regionKey: P?.regionLabel,
|
|
5127
5127
|
postalKey: P?.postalLabel
|
|
5128
5128
|
});
|
|
@@ -10126,19 +10126,19 @@ var zm = /* @__PURE__ */ (function(e) {
|
|
|
10126
10126
|
limitMaxLength: M,
|
|
10127
10127
|
countryCallingCodeEditable: $,
|
|
10128
10128
|
metadata: j
|
|
10129
|
-
}), W = I.phoneDigits, Z = I.country,
|
|
10129
|
+
}), W = I.phoneDigits, Z = I.country, G = I.value, Q = {
|
|
10130
10130
|
phoneDigits: W,
|
|
10131
|
-
value:
|
|
10131
|
+
value: G,
|
|
10132
10132
|
country: Z
|
|
10133
10133
|
};
|
|
10134
|
-
B &&
|
|
10134
|
+
B && G && !zt(G, B, j) && (Q.latestCountrySelectedByUser = void 0), $ === !1 && !G && W === r.state.phoneDigits && (Q.forceRerender = {}), r.setState(
|
|
10135
10135
|
Q,
|
|
10136
10136
|
// Update the new `value` property.
|
|
10137
10137
|
// Doing it after the `state` has been updated
|
|
10138
10138
|
// because `onChange()` will trigger `getDerivedStateFromProps()`
|
|
10139
10139
|
// with the new `value` which will be compared to `state.value` there.
|
|
10140
10140
|
function() {
|
|
10141
|
-
return F(
|
|
10141
|
+
return F(G);
|
|
10142
10142
|
}
|
|
10143
10143
|
);
|
|
10144
10144
|
}), qe(r, "_onFocus", function() {
|
|
@@ -17305,7 +17305,7 @@ function Zn({
|
|
|
17305
17305
|
const W = m.useMemo(() => D1(x), [x]), Z = m.useMemo(
|
|
17306
17306
|
() => k1(W),
|
|
17307
17307
|
[W]
|
|
17308
|
-
),
|
|
17308
|
+
), G = (R) => {
|
|
17309
17309
|
const ee = H1(x, R, {
|
|
17310
17310
|
regionKey: B?.regionLabel,
|
|
17311
17311
|
postalKey: B?.postalLabel
|
|
@@ -17372,8 +17372,8 @@ function Zn({
|
|
|
17372
17372
|
default: R.default
|
|
17373
17373
|
}
|
|
17374
17374
|
});
|
|
17375
|
-
}),
|
|
17376
|
-
const A =
|
|
17375
|
+
}), U = (R, ee) => {
|
|
17376
|
+
const A = G(R);
|
|
17377
17377
|
return R === "state" && X.length > 0 ? /* @__PURE__ */ i.jsx(
|
|
17378
17378
|
ra,
|
|
17379
17379
|
{
|
|
@@ -17476,12 +17476,12 @@ function Zn({
|
|
|
17476
17476
|
}
|
|
17477
17477
|
}
|
|
17478
17478
|
),
|
|
17479
|
-
Z.map((R) => R.length === 1 ?
|
|
17479
|
+
Z.map((R) => R.length === 1 ? U(R[0]) : /* @__PURE__ */ i.jsx(
|
|
17480
17480
|
"div",
|
|
17481
17481
|
{
|
|
17482
17482
|
className: "flex flex-col gap-3 sm:flex-row",
|
|
17483
17483
|
children: R.map(
|
|
17484
|
-
(ee) =>
|
|
17484
|
+
(ee) => U(ee, "min-w-0 flex-1")
|
|
17485
17485
|
)
|
|
17486
17486
|
},
|
|
17487
17487
|
R.join("-")
|
|
@@ -17629,8 +17629,8 @@ function H_() {
|
|
|
17629
17629
|
"vgs-cvc",
|
|
17630
17630
|
"vgs-card-holder"
|
|
17631
17631
|
].every((Z) => {
|
|
17632
|
-
const
|
|
17633
|
-
return
|
|
17632
|
+
const G = document.getElementById(Z);
|
|
17633
|
+
return G && G.isConnected;
|
|
17634
17634
|
}) ? !0 : C >= M ? !1 : (C++, await new Promise((Z) => setTimeout(Z, $)), j());
|
|
17635
17635
|
if (!await j())
|
|
17636
17636
|
throw new Error("Payment form elements not ready");
|
|
@@ -17854,14 +17854,14 @@ function Cs({
|
|
|
17854
17854
|
vgsFieldState: I,
|
|
17855
17855
|
resetVgs: W,
|
|
17856
17856
|
onSuccessRef: Z,
|
|
17857
|
-
onErrorRef:
|
|
17857
|
+
onErrorRef: G
|
|
17858
17858
|
} = H_(), Q = c?.id ?? null, X = m.useMemo(
|
|
17859
17859
|
() => Q === null ? u : u.filter((S) => S.id !== Q),
|
|
17860
17860
|
[u, Q]
|
|
17861
17861
|
), te = m.useMemo(() => {
|
|
17862
17862
|
const S = [];
|
|
17863
17863
|
return c && S.push(c), S.push(...X), S.push(...N), S;
|
|
17864
|
-
}, [c, X, N]),
|
|
17864
|
+
}, [c, X, N]), U = te.length > 0, de = m.useMemo(() => {
|
|
17865
17865
|
if (c) return c.id.toString();
|
|
17866
17866
|
if (d && X.some((J) => J.id === d))
|
|
17867
17867
|
return d.toString();
|
|
@@ -17970,8 +17970,8 @@ function Cs({
|
|
|
17970
17970
|
E(S), F(!1);
|
|
17971
17971
|
}, []);
|
|
17972
17972
|
m.useEffect(() => {
|
|
17973
|
-
Z.current = Pe,
|
|
17974
|
-
}, [Pe, Ie, Z,
|
|
17973
|
+
Z.current = Pe, G.current = Ie;
|
|
17974
|
+
}, [Pe, Ie, Z, G]), m.useEffect(() => {
|
|
17975
17975
|
if (!e || !P) return;
|
|
17976
17976
|
let S = !1;
|
|
17977
17977
|
return (async () => {
|
|
@@ -18014,7 +18014,7 @@ function Cs({
|
|
|
18014
18014
|
),
|
|
18015
18015
|
/* @__PURE__ */ i.jsxs("div", { className: "space-y-3 pt-2", children: [
|
|
18016
18016
|
/* @__PURE__ */ i.jsx("h3", { className: "text-muted-foreground text-sm font-medium", children: f("billing_address") }),
|
|
18017
|
-
|
|
18017
|
+
U ? /* @__PURE__ */ i.jsx(
|
|
18018
18018
|
St,
|
|
18019
18019
|
{
|
|
18020
18020
|
control: R,
|
|
@@ -19518,13 +19518,13 @@ function Ny({
|
|
|
19518
19518
|
ci(t, a)
|
|
19519
19519
|
);
|
|
19520
19520
|
}, [x, t, a]);
|
|
19521
|
-
const N = m.useCallback((
|
|
19521
|
+
const N = m.useCallback((G) => {
|
|
19522
19522
|
u((Q) => {
|
|
19523
19523
|
const X = new Set(Q);
|
|
19524
|
-
return X.has(
|
|
19524
|
+
return X.has(G) ? X.delete(G) : X.add(G), X;
|
|
19525
19525
|
});
|
|
19526
19526
|
}, []), C = m.useMemo(() => {
|
|
19527
|
-
const
|
|
19527
|
+
const G = Array.from(c).map((Q) => {
|
|
19528
19528
|
const X = e.find(
|
|
19529
19529
|
(te) => te.subscription_token === Q
|
|
19530
19530
|
)?.subscription_plan;
|
|
@@ -19533,34 +19533,34 @@ function Ny({
|
|
|
19533
19533
|
billingIntervalUnit: X?.billing_interval_unit
|
|
19534
19534
|
};
|
|
19535
19535
|
});
|
|
19536
|
-
return { today: d, maxDate: _2(
|
|
19536
|
+
return { today: d, maxDate: _2(G, d) };
|
|
19537
19537
|
}, [c, e, d]), M = m.useMemo(() => {
|
|
19538
|
-
const
|
|
19538
|
+
const G = /* @__PURE__ */ new Set();
|
|
19539
19539
|
for (const Q of c) {
|
|
19540
19540
|
const X = e.find((te) => te.subscription_token === Q);
|
|
19541
|
-
for (const te of X?.blackout_days ?? [])
|
|
19541
|
+
for (const te of X?.blackout_days ?? []) G.add(te);
|
|
19542
19542
|
}
|
|
19543
|
-
return [...
|
|
19543
|
+
return [...G];
|
|
19544
19544
|
}, [c, e]), $ = b !== null && M.includes(b) ? null : b, j = m.useCallback(
|
|
19545
|
-
(
|
|
19546
|
-
if (f(
|
|
19547
|
-
if (kl(
|
|
19545
|
+
(G) => {
|
|
19546
|
+
if (f(G), v != null) {
|
|
19547
|
+
if (kl(G, v, C)) {
|
|
19548
19548
|
g(null), w(null);
|
|
19549
19549
|
return;
|
|
19550
19550
|
}
|
|
19551
|
-
b != null && Sn(
|
|
19551
|
+
b != null && Sn(G, v, b, C) && w(null);
|
|
19552
19552
|
}
|
|
19553
19553
|
},
|
|
19554
19554
|
[v, b, C]
|
|
19555
19555
|
), D = m.useCallback(
|
|
19556
|
-
(
|
|
19557
|
-
g(
|
|
19556
|
+
(G) => {
|
|
19557
|
+
g(G), b != null && Sn(h, G, b, C) && w(null);
|
|
19558
19558
|
},
|
|
19559
19559
|
[b, h, C]
|
|
19560
|
-
), P = m.useCallback((
|
|
19560
|
+
), P = m.useCallback((G) => w(G), []), H = c.size >= 2, L = v !== null && $ !== null && Sn(h, v, $, C), B = v !== null && $ !== null && !L, I = p != null, W = x != null, Z = m.useMemo(() => {
|
|
19561
19561
|
if (v == null || $ == null) return null;
|
|
19562
|
-
const
|
|
19563
|
-
return `${h}-${
|
|
19562
|
+
const G = String(v + 1).padStart(2, "0"), Q = String($).padStart(2, "0");
|
|
19563
|
+
return `${h}-${G}-${Q}`;
|
|
19564
19564
|
}, [h, v, $]);
|
|
19565
19565
|
return {
|
|
19566
19566
|
step: s,
|
|
@@ -19998,9 +19998,9 @@ function Iy({
|
|
|
19998
19998
|
const W = I.next_bill_date ? Dt(I.next_bill_date) : "";
|
|
19999
19999
|
return M !== "" && W !== "" && W > M;
|
|
20000
20000
|
}), j = $.map((I) => Dt(I.next_bill_date)).sort()[0] ?? "", D = (I, W) => {
|
|
20001
|
-
const [Z,
|
|
20001
|
+
const [Z, G, Q] = I.slice(0, 10).split("-").map(Number);
|
|
20002
20002
|
return new Intl.DateTimeFormat(b, { dateStyle: W }).format(
|
|
20003
|
-
new Date(Z ?? 1970, (
|
|
20003
|
+
new Date(Z ?? 1970, (G ?? 1) - 1, Q ?? 1)
|
|
20004
20004
|
);
|
|
20005
20005
|
}, P = async () => {
|
|
20006
20006
|
if (!(!H || !x.canProceedFromStep2 || !x.canProceedFromStep3 || !x.canProceedFromStep4 || x.formattedDate == null || x.selectedAddressId == null || x.selectedPaymentMethodId == null)) {
|
|
@@ -20273,7 +20273,7 @@ function Ly({
|
|
|
20273
20273
|
F,
|
|
20274
20274
|
E
|
|
20275
20275
|
]);
|
|
20276
|
-
const B = F || x && !N, [I, W] = m.useState(0), [Z,
|
|
20276
|
+
const B = F || x && !N, [I, W] = m.useState(0), [Z, G] = m.useState({ open: !1, selected: null }), [Q, X] = m.useState(!1), [te, U] = m.useState(null), [de, R] = m.useState(!1), { data: ee } = Te({
|
|
20277
20277
|
queryKey: il.countries(f),
|
|
20278
20278
|
queryFn: () => c.listCountries({ languageIso: f }),
|
|
20279
20279
|
enabled: Z.open || Q
|
|
@@ -20327,7 +20327,7 @@ function Ly({
|
|
|
20327
20327
|
}), X(!1), t?.(d("payment_method_added"), "success");
|
|
20328
20328
|
},
|
|
20329
20329
|
onFailed: (S) => {
|
|
20330
|
-
|
|
20330
|
+
U(S);
|
|
20331
20331
|
},
|
|
20332
20332
|
onCanceled: () => {
|
|
20333
20333
|
}
|
|
@@ -20420,7 +20420,7 @@ function Ly({
|
|
|
20420
20420
|
paymentMethods: w,
|
|
20421
20421
|
defaultAddressId: b.find((S) => S.default)?.id ?? b[0]?.id ?? null,
|
|
20422
20422
|
defaultPaymentMethodId: w.find((S) => S.default)?.id ?? w[0]?.id ?? null,
|
|
20423
|
-
onAddAddress: () =>
|
|
20423
|
+
onAddAddress: () => G({ open: !0, selected: null }),
|
|
20424
20424
|
onAddPaymentMethod: () => X(!0),
|
|
20425
20425
|
onSubmit: ce,
|
|
20426
20426
|
isSubmitting: de
|
|
@@ -20432,14 +20432,14 @@ function Ly({
|
|
|
20432
20432
|
{
|
|
20433
20433
|
presentation: r ? "bottom-sheet" : "dialog",
|
|
20434
20434
|
isOpen: Z.open,
|
|
20435
|
-
onClose: () =>
|
|
20435
|
+
onClose: () => G({ open: !1, selected: null }),
|
|
20436
20436
|
selectedAddress: Z.selected,
|
|
20437
20437
|
defaultCountry: b.find((S) => S.default)?.country_code ?? h.countryIso ?? "US",
|
|
20438
20438
|
languageIso: f,
|
|
20439
20439
|
t: Nr,
|
|
20440
20440
|
onSubmit: async (S) => {
|
|
20441
20441
|
try {
|
|
20442
|
-
await ie.mutateAsync(S),
|
|
20442
|
+
await ie.mutateAsync(S), G({ open: !1, selected: null });
|
|
20443
20443
|
} catch {
|
|
20444
20444
|
}
|
|
20445
20445
|
},
|
|
@@ -20454,12 +20454,12 @@ function Ly({
|
|
|
20454
20454
|
presentation: r ? "bottom-sheet" : "dialog",
|
|
20455
20455
|
isOpen: Q,
|
|
20456
20456
|
onClose: () => {
|
|
20457
|
-
xe.isActive || (
|
|
20457
|
+
xe.isActive || (U(null), X(!1));
|
|
20458
20458
|
},
|
|
20459
20459
|
t: Nr,
|
|
20460
20460
|
error: te ?? void 0,
|
|
20461
20461
|
onSubmit: async (S) => {
|
|
20462
|
-
|
|
20462
|
+
U(null);
|
|
20463
20463
|
try {
|
|
20464
20464
|
await ze.mutateAsync(S);
|
|
20465
20465
|
} catch {
|
|
@@ -21365,7 +21365,7 @@ function ex({
|
|
|
21365
21365
|
}
|
|
21366
21366
|
}
|
|
21367
21367
|
return k;
|
|
21368
|
-
}, [W]),
|
|
21368
|
+
}, [W]), G = m.useMemo(
|
|
21369
21369
|
() => ({
|
|
21370
21370
|
DayContent: ({ date: k }) => {
|
|
21371
21371
|
const re = st(k, "yyyy-MM-dd"), ie = Z.get(re) ?? [];
|
|
@@ -21400,11 +21400,11 @@ function ex({
|
|
|
21400
21400
|
} else
|
|
21401
21401
|
C(void 0);
|
|
21402
21402
|
}, [e, s]);
|
|
21403
|
-
const Q = s ? Dt(s, c) : "", X = o ? Dt(o, c) : "", te = N ? st(N, "yyyy-MM-dd") : "",
|
|
21404
|
-
te && t(te);
|
|
21403
|
+
const Q = s ? Dt(s, c) : "", X = o ? Dt(o, c) : "", te = N ? st(N, "yyyy-MM-dd") : "", U = u && te !== "" && Q !== "" && te < Q, de = () => {
|
|
21404
|
+
te && t(te, U);
|
|
21405
21405
|
}, R = () => {
|
|
21406
21406
|
if (te) {
|
|
21407
|
-
if (
|
|
21407
|
+
if (U) {
|
|
21408
21408
|
D(!0);
|
|
21409
21409
|
return;
|
|
21410
21410
|
}
|
|
@@ -21472,7 +21472,7 @@ function ex({
|
|
|
21472
21472
|
},
|
|
21473
21473
|
disabled: (k) => k < B || k > I || Bn(k, E),
|
|
21474
21474
|
defaultMonth: N ?? (s ? Se(s) : void 0),
|
|
21475
|
-
components:
|
|
21475
|
+
components: G,
|
|
21476
21476
|
initialFocus: !0
|
|
21477
21477
|
}
|
|
21478
21478
|
)
|
|
@@ -21493,7 +21493,7 @@ function ex({
|
|
|
21493
21493
|
/* @__PURE__ */ i.jsx("span", { className: "font-semibold", children: A }),
|
|
21494
21494
|
x("bill_date_preview_suffix")
|
|
21495
21495
|
] }),
|
|
21496
|
-
|
|
21496
|
+
U && /* @__PURE__ */ i.jsx("p", { className: "text-destructive text-xs", children: x("bill_date_early_order_warning") }),
|
|
21497
21497
|
W.length > 0 && /* @__PURE__ */ i.jsxs("div", { className: "space-y-2", children: [
|
|
21498
21498
|
/* @__PURE__ */ i.jsx(_e, { className: "text-foreground text-sm font-semibold", children: x("your_other_subscriptions") }),
|
|
21499
21499
|
/* @__PURE__ */ i.jsx("div", { className: "border-border max-h-40 overflow-auto rounded-md border", children: /* @__PURE__ */ i.jsxs("table", { className: "w-full table-fixed text-sm", children: [
|
|
@@ -22583,15 +22583,15 @@ function px({
|
|
|
22583
22583
|
[]
|
|
22584
22584
|
), [N, C] = m.useState(!1), [M, $] = m.useState(!1), [j, D] = m.useState(!1), [P, H] = m.useState(!1), [L, B] = m.useState(!1), [I, W] = m.useState(
|
|
22585
22585
|
null
|
|
22586
|
-
), [Z,
|
|
22586
|
+
), [Z, G] = m.useState(
|
|
22587
22587
|
null
|
|
22588
|
-
), { data: Q, isLoading: X, error: te } = h1(e),
|
|
22588
|
+
), { data: Q, isLoading: X, error: te } = h1(e), U = Q?.subscription, de = U?.customer?.id ?? 0, R = U?.status === "past_due" && !vt(U) && U.next_retry_at == null, ee = m2(e, {
|
|
22589
22589
|
enabled: R
|
|
22590
22590
|
}), A = R && ee.isFetching, k = ee.data?.failed_cycle_waiver, re = k?.next_bill_date != null && k.next_ship_date != null ? y1({
|
|
22591
22591
|
nextBillDate: k.next_bill_date,
|
|
22592
22592
|
nextShipDate: k.next_ship_date,
|
|
22593
22593
|
locale: b,
|
|
22594
|
-
timezone:
|
|
22594
|
+
timezone: U?.timezone ?? "UTC"
|
|
22595
22595
|
}) : null, ie = R && !A && !ee.isError && k?.eligible === !0 && re != null, $e = p1({
|
|
22596
22596
|
subscriptionToken: e,
|
|
22597
22597
|
onSucceeded: () => r?.(g("payment_retry_succeeded"), "success"),
|
|
@@ -22699,14 +22699,14 @@ function px({
|
|
|
22699
22699
|
b,
|
|
22700
22700
|
Ae.subscription.timezone
|
|
22701
22701
|
) ?? g("bill_date_updated")
|
|
22702
|
-
), Ae.subscription.next_bill_date &&
|
|
22702
|
+
), Ae.subscription.next_bill_date && G(Ae.subscription.next_bill_date.slice(0, 10)), B(!1));
|
|
22703
22703
|
},
|
|
22704
22704
|
onError: (O, { subscriptionToken: le }) => {
|
|
22705
|
-
p.current === le && (
|
|
22705
|
+
p.current === le && (G(null), a?.(g("failed_to_update_bill_date"), O));
|
|
22706
22706
|
}
|
|
22707
22707
|
}), Ze = Q?.subscription.next_bill_date ?? null;
|
|
22708
22708
|
m.useEffect(() => {
|
|
22709
|
-
Z != null && Ze != null && Ze.startsWith(Z) &&
|
|
22709
|
+
Z != null && Ze != null && Ze.startsWith(Z) && G(null);
|
|
22710
22710
|
}, [Z, Ze]);
|
|
22711
22711
|
const dt = Q?.subscription.quantity;
|
|
22712
22712
|
m.useEffect(() => {
|
|
@@ -22739,27 +22739,27 @@ function px({
|
|
|
22739
22739
|
if (yn.current = n, m.useEffect(() => {
|
|
22740
22740
|
!X && te && _n.current?.(te);
|
|
22741
22741
|
}, [X, te]), m.useEffect(() => {
|
|
22742
|
-
!X && !te && !
|
|
22743
|
-
}, [X, te,
|
|
22742
|
+
!X && !te && !U && yn.current?.();
|
|
22743
|
+
}, [X, te, U]), X)
|
|
22744
22744
|
return /* @__PURE__ */ i.jsx(cx, {});
|
|
22745
|
-
if (!
|
|
22745
|
+
if (!U)
|
|
22746
22746
|
return null;
|
|
22747
|
-
const z =
|
|
22748
|
-
status:
|
|
22749
|
-
billingCycleLimitReached:
|
|
22750
|
-
nextRetryAt:
|
|
22751
|
-
nextBillDate:
|
|
22752
|
-
allowSkipping:
|
|
22753
|
-
maxSkips:
|
|
22754
|
-
skippedCount:
|
|
22747
|
+
const z = U.subscription_plan, K = mr(U), it = K === "active", _t = C2({
|
|
22748
|
+
status: U.status,
|
|
22749
|
+
billingCycleLimitReached: U.billing_cycle_limit_reached,
|
|
22750
|
+
nextRetryAt: U.next_retry_at,
|
|
22751
|
+
nextBillDate: U.next_bill_date,
|
|
22752
|
+
allowSkipping: U.subscription_plan.allow_skipping,
|
|
22753
|
+
maxSkips: U.subscription_plan.max_skips,
|
|
22754
|
+
skippedCount: U.skipped_count,
|
|
22755
22755
|
hasPendingSkip: $2(
|
|
22756
|
-
|
|
22756
|
+
U.subscription_skips,
|
|
22757
22757
|
/* @__PURE__ */ new Date(),
|
|
22758
|
-
|
|
22758
|
+
U.timezone
|
|
22759
22759
|
),
|
|
22760
22760
|
canWaiveFailedCycle: ie,
|
|
22761
22761
|
isWaiverPreviewLoading: A
|
|
22762
|
-
}), yt = xe.isPending && xe.variables?.subscriptionToken === e || $e.isProcessing, xn = q.isPending || ce.isPending || pe.isPending || S.isPending || J.isPending || Oe.isPending, Ws = E === e, bn = Me.isPending && Me.variables?.subscriptionToken === e, yr = yt || Ws || bn, Ks = vt(
|
|
22762
|
+
}), yt = xe.isPending && xe.variables?.subscriptionToken === e || $e.isProcessing, xn = q.isPending || ce.isPending || pe.isPending || S.isPending || J.isPending || Oe.isPending, Ws = E === e, bn = Me.isPending && Me.variables?.subscriptionToken === e, yr = yt || Ws || bn, Ks = vt(U) || yt || bn || xn, Ys = xn || yr, Qs = (O) => {
|
|
22763
22763
|
const le = { customerId: de };
|
|
22764
22764
|
Ie.current = null, O.type === "order_count" && (le.numberOfOrders = O.numberOfOrders, Ie.current = O.shownResumeDate), q.mutate(
|
|
22765
22765
|
{ subscriptionToken: e, pauseParams: le },
|
|
@@ -22796,7 +22796,7 @@ function px({
|
|
|
22796
22796
|
}, to = () => {
|
|
22797
22797
|
yr || xe.mutate({ subscriptionToken: e });
|
|
22798
22798
|
}, no = sx(
|
|
22799
|
-
|
|
22799
|
+
U.payment_method ?? null
|
|
22800
22800
|
), ro = ({
|
|
22801
22801
|
addressId: O
|
|
22802
22802
|
}) => {
|
|
@@ -22812,9 +22812,9 @@ function px({
|
|
|
22812
22812
|
K === "past_due" && /* @__PURE__ */ i.jsx("div", { className: "mb-4 px-2 sm:px-0 lg:mb-6", children: /* @__PURE__ */ i.jsx(
|
|
22813
22813
|
rx,
|
|
22814
22814
|
{
|
|
22815
|
-
productTitle:
|
|
22816
|
-
nextRetryAt:
|
|
22817
|
-
declineCount:
|
|
22815
|
+
productTitle: U.variant?.product?.title ?? null,
|
|
22816
|
+
nextRetryAt: U.next_retry_at ?? null,
|
|
22817
|
+
declineCount: U.decline_count ?? null,
|
|
22818
22818
|
savedMethodLabel: no,
|
|
22819
22819
|
onRetryPaymentClick: _t.recovery?.primary === "retry_payment" ? to : void 0,
|
|
22820
22820
|
isRetryingPayment: yt,
|
|
@@ -22833,7 +22833,7 @@ function px({
|
|
|
22833
22833
|
/* @__PURE__ */ i.jsx(
|
|
22834
22834
|
mx,
|
|
22835
22835
|
{
|
|
22836
|
-
subscription:
|
|
22836
|
+
subscription: U,
|
|
22837
22837
|
displayQuantity: ue ?? void 0,
|
|
22838
22838
|
displayNextBillDate: Z ?? void 0,
|
|
22839
22839
|
canEditQuantity: it,
|
|
@@ -22845,7 +22845,7 @@ function px({
|
|
|
22845
22845
|
/* @__PURE__ */ i.jsx(
|
|
22846
22846
|
hx,
|
|
22847
22847
|
{
|
|
22848
|
-
subscription:
|
|
22848
|
+
subscription: U,
|
|
22849
22849
|
actionPolicy: _t,
|
|
22850
22850
|
isMutating: Ys,
|
|
22851
22851
|
paymentMethodDisabled: Ks,
|
|
@@ -22864,7 +22864,7 @@ function px({
|
|
|
22864
22864
|
}
|
|
22865
22865
|
)
|
|
22866
22866
|
] }),
|
|
22867
|
-
/* @__PURE__ */ i.jsx(fx, { subscription:
|
|
22867
|
+
/* @__PURE__ */ i.jsx(fx, { subscription: U }),
|
|
22868
22868
|
/* @__PURE__ */ i.jsx(
|
|
22869
22869
|
Yy,
|
|
22870
22870
|
{
|
|
@@ -22901,18 +22901,21 @@ function px({
|
|
|
22901
22901
|
onOpenChange: (O) => {
|
|
22902
22902
|
O || Oe.reset(), B(O);
|
|
22903
22903
|
},
|
|
22904
|
-
onConfirm: (O) => {
|
|
22905
|
-
|
|
22904
|
+
onConfirm: (O, le) => {
|
|
22905
|
+
G(O), Oe.mutate({
|
|
22906
22906
|
subscriptionToken: e,
|
|
22907
|
-
body: {
|
|
22907
|
+
body: {
|
|
22908
|
+
next_bill_date: O,
|
|
22909
|
+
...le ? { confirm_early_order: !0 } : {}
|
|
22910
|
+
}
|
|
22908
22911
|
});
|
|
22909
22912
|
},
|
|
22910
22913
|
isLoading: Oe.isPending,
|
|
22911
22914
|
errorMessage: Oe.isError ? g("bill_date_error") : void 0,
|
|
22912
|
-
blackoutDays:
|
|
22913
|
-
currentNextBillDate:
|
|
22914
|
-
currentLastBillDate:
|
|
22915
|
-
timezone:
|
|
22915
|
+
blackoutDays: U.blackout_days,
|
|
22916
|
+
currentNextBillDate: U.next_bill_date,
|
|
22917
|
+
currentLastBillDate: U.last_bill_date,
|
|
22918
|
+
timezone: U.timezone,
|
|
22916
22919
|
billingInterval: z.billing_interval,
|
|
22917
22920
|
billingIntervalUnit: z.billing_interval_unit,
|
|
22918
22921
|
otherSubscriptions: Pe,
|
|
@@ -22930,7 +22933,7 @@ function px({
|
|
|
22930
22933
|
onConfirm: Qs,
|
|
22931
22934
|
isLoading: q.isPending,
|
|
22932
22935
|
errorMessage: q.isError ? g("generic_error") : void 0,
|
|
22933
|
-
currentNextBillDate:
|
|
22936
|
+
currentNextBillDate: U.next_bill_date,
|
|
22934
22937
|
billingInterval: z.billing_interval,
|
|
22935
22938
|
billingIntervalUnit: z.billing_interval_unit
|
|
22936
22939
|
}
|
|
@@ -22946,14 +22949,14 @@ function px({
|
|
|
22946
22949
|
onConfirm: Xs,
|
|
22947
22950
|
isLoading: ce.isPending,
|
|
22948
22951
|
errorMessage: ce.isError ? g("generic_error") : void 0,
|
|
22949
|
-
blackoutDays:
|
|
22952
|
+
blackoutDays: U.blackout_days,
|
|
22950
22953
|
defaultNextBillDate: Ul(
|
|
22951
22954
|
z.billing_interval,
|
|
22952
22955
|
z.billing_interval_unit
|
|
22953
22956
|
),
|
|
22954
|
-
currentNextBillDate:
|
|
22955
|
-
currentLastBillDate:
|
|
22956
|
-
timezone:
|
|
22957
|
+
currentNextBillDate: U.next_bill_date,
|
|
22958
|
+
currentLastBillDate: U.last_bill_date,
|
|
22959
|
+
timezone: U.timezone
|
|
22957
22960
|
}
|
|
22958
22961
|
),
|
|
22959
22962
|
/* @__PURE__ */ i.jsx(
|
|
@@ -22962,7 +22965,7 @@ function px({
|
|
|
22962
22965
|
open: I === e,
|
|
22963
22966
|
presentation: v,
|
|
22964
22967
|
preview: I === e ? ee.data?.failed_cycle_waiver ?? null : null,
|
|
22965
|
-
timezone:
|
|
22968
|
+
timezone: U.timezone ?? "UTC",
|
|
22966
22969
|
isPending: bn,
|
|
22967
22970
|
onOpenChange: (O) => {
|
|
22968
22971
|
O || W(
|
|
@@ -23314,7 +23317,7 @@ function $x({
|
|
|
23314
23317
|
c ? c(z) : M(z);
|
|
23315
23318
|
},
|
|
23316
23319
|
[c]
|
|
23317
|
-
), D = m.useRef(!1), [P, H] = m.useState(null), [L, B] = m.useState(null), [I, W] = m.useState(void 0), [Z,
|
|
23320
|
+
), D = m.useRef(!1), [P, H] = m.useState(null), [L, B] = m.useState(null), [I, W] = m.useState(void 0), [Z, G] = m.useState(null), [Q, X] = m.useState(null), te = m.useRef(n), { data: U } = h1(n), de = E2(U?.subscription), { data: R = [], isLoading: ee } = Te({
|
|
23318
23321
|
queryKey: Ce.paymentMethods.list(),
|
|
23319
23322
|
queryFn: async () => (await x.fetchPaymentMethods()).payment_methods.map(Ps)
|
|
23320
23323
|
}), { data: A = [] } = Te({
|
|
@@ -23404,14 +23407,14 @@ function $x({
|
|
|
23404
23407
|
},
|
|
23405
23408
|
onFailed: (z) => {
|
|
23406
23409
|
const K = b.current;
|
|
23407
|
-
p(K) &&
|
|
23410
|
+
p(K) && G(z);
|
|
23408
23411
|
},
|
|
23409
23412
|
onCanceled: () => {
|
|
23410
23413
|
}
|
|
23411
23414
|
});
|
|
23412
23415
|
m.useEffect(() => {
|
|
23413
23416
|
const z = te.current !== n;
|
|
23414
|
-
z && (te.current = n, D.current = !1, H(null), B(null), W(void 0),
|
|
23417
|
+
z && (te.current = n, D.current = !1, H(null), B(null), W(void 0), G(null));
|
|
23415
23418
|
const K = b.current !== null && b.current !== n;
|
|
23416
23419
|
!q.isActive && (z || K) && (b.current = null, j(!1));
|
|
23417
23420
|
}, [q.isActive, j, n]);
|
|
@@ -23603,7 +23606,7 @@ function $x({
|
|
|
23603
23606
|
presentation: u ? "bottom-sheet" : "dialog",
|
|
23604
23607
|
isOpen: $,
|
|
23605
23608
|
onClose: () => {
|
|
23606
|
-
q.isActive || (D.current = !1, b.current = null,
|
|
23609
|
+
q.isActive || (D.current = !1, b.current = null, G(null), j(!1));
|
|
23607
23610
|
},
|
|
23608
23611
|
error: Z ?? void 0,
|
|
23609
23612
|
t: E,
|
|
@@ -23613,7 +23616,7 @@ function $x({
|
|
|
23613
23616
|
} : {},
|
|
23614
23617
|
onSubmit: async (z) => {
|
|
23615
23618
|
if (!Ne) {
|
|
23616
|
-
b.current = n,
|
|
23619
|
+
b.current = n, G(null);
|
|
23617
23620
|
try {
|
|
23618
23621
|
await pe.mutateAsync(z);
|
|
23619
23622
|
} catch {
|
|
@@ -23934,7 +23937,7 @@ function Nx({
|
|
|
23934
23937
|
}, [B]), Z = m.useCallback(
|
|
23935
23938
|
(A) => Promise.resolve(W.get(A) ?? []),
|
|
23936
23939
|
[W]
|
|
23937
|
-
),
|
|
23940
|
+
), G = qt({
|
|
23938
23941
|
onSuccess: ({ subscriptionToken: A }) => {
|
|
23939
23942
|
f.current === A && a?.(c("shipping_address_updated"));
|
|
23940
23943
|
},
|
|
@@ -23999,7 +24002,7 @@ function Nx({
|
|
|
23999
24002
|
onSuccess: (A, { subscriptionToken: k }) => {
|
|
24000
24003
|
w.invalidateQueries({ queryKey: Ce.addresses.all }), v(k) && a?.(c("address_deleted"));
|
|
24001
24004
|
}
|
|
24002
|
-
}),
|
|
24005
|
+
}), U = ve({
|
|
24003
24006
|
mutationFn: ({
|
|
24004
24007
|
address: A
|
|
24005
24008
|
}) => b.updateAddress(A.id, {
|
|
@@ -24050,7 +24053,7 @@ function Nx({
|
|
|
24050
24053
|
addressList: P,
|
|
24051
24054
|
selectedAddressId: e ?? 0,
|
|
24052
24055
|
onSelectAddress: (A) => {
|
|
24053
|
-
A.id !== e &&
|
|
24056
|
+
A.id !== e && G.mutate({
|
|
24054
24057
|
subscriptionToken: t,
|
|
24055
24058
|
body: { address_id: A.id }
|
|
24056
24059
|
});
|
|
@@ -24064,14 +24067,14 @@ function Nx({
|
|
|
24064
24067
|
onDeleteAddress: r ? void 0 : (A) => {
|
|
24065
24068
|
j(void 0), M(A);
|
|
24066
24069
|
},
|
|
24067
|
-
onMakeDefaultAddress: r ? void 0 : (A) =>
|
|
24070
|
+
onMakeDefaultAddress: r ? void 0 : (A) => U.mutate({
|
|
24068
24071
|
subscriptionToken: t,
|
|
24069
24072
|
address: A
|
|
24070
24073
|
}),
|
|
24071
24074
|
addAddressLabel: c("add_an_address_action"),
|
|
24072
24075
|
showAddButton: !r,
|
|
24073
24076
|
isLoading: H,
|
|
24074
|
-
isPending: r ||
|
|
24077
|
+
isPending: r || G.isPending || Q.isPending || X.isPending || te.isPending || U.isPending
|
|
24075
24078
|
}
|
|
24076
24079
|
),
|
|
24077
24080
|
/* @__PURE__ */ i.jsx(
|
|
@@ -18,8 +18,8 @@ import { u as cr, S as sr } from "./sidebar-SmEnwFoV.js";
|
|
|
18
18
|
import { S as or } from "./store-api-context-TW7uud2C.js";
|
|
19
19
|
import { s as dr, a as mr, b as vr, c as hr } from "./hey-api-client-EAWr0fT_.js";
|
|
20
20
|
import { M as yr } from "./use-mobile-BChC77Fq.js";
|
|
21
|
-
import { i as zv, n as rr } from "./navigate-account-screen-
|
|
22
|
-
import { a as gr } from "./cli-preview-
|
|
21
|
+
import { i as zv, n as rr } from "./navigate-account-screen-AGarxy-u.js";
|
|
22
|
+
import { a as gr } from "./cli-preview-CmXcVR8O.js";
|
|
23
23
|
import { A as Sr } from "./arrow-left-Ds5JkG8w.js";
|
|
24
24
|
/**
|
|
25
25
|
* @license lucide-react v0.575.0 - ISC
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-app/fluid-cli-theme-dev",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.910",
|
|
4
4
|
"description": "Fluid CLI plugin for theme developer workflows — dev server, push, pull, init, crawl, compare",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"access": "public"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@fluid-app/fluid-cli": "0.1.
|
|
24
|
+
"@fluid-app/fluid-cli": "0.1.547",
|
|
25
25
|
"chalk": "^5.6.2",
|
|
26
26
|
"chokidar": "^4.0.0",
|
|
27
27
|
"commander": "^12.0.0",
|