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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/dist/dist-cli-preview/.vite/manifest.json +276 -295
  2. package/dist/dist-cli-preview/account-screens.js +1 -1
  3. package/dist/dist-cli-preview/chunks/{Combobox-CJDvxjNn.js → Combobox-D4l7DbBy.js} +54 -53
  4. package/dist/dist-cli-preview/chunks/{ContactsScreen-DD3XWK3Q.js → ContactsScreen-CEtA3-1c.js} +903 -850
  5. package/dist/dist-cli-preview/chunks/MediaScreen-C2rOxuuv.js +8 -0
  6. package/dist/dist-cli-preview/chunks/{MemberManagementProviders-iVdfo0DH.js → MemberManagementProviders-B_YXVcDi.js} +13 -13
  7. package/dist/dist-cli-preview/chunks/{MemberShareablesScreen-BulCAnNO.js → MemberShareablesScreen-UNjYr5R6.js} +4207 -3757
  8. package/dist/dist-cli-preview/chunks/{MessagingScreen-DlDsOy19.js → MessagingScreen-Btga_V0H.js} +24118 -21933
  9. package/dist/dist-cli-preview/chunks/MobileActionSheet-CrEH2vO7.js +1384 -0
  10. package/dist/dist-cli-preview/chunks/{MySiteScreen-BfPfyV4m.js → MySiteScreen-B1fGtPDj.js} +177 -163
  11. package/dist/dist-cli-preview/chunks/OrdersScreen-Bf9DtOCA.js +9 -0
  12. package/dist/dist-cli-preview/chunks/{OrdersScreen-C4yi3z2p.js → OrdersScreen-DyyL-P7j.js} +35 -34
  13. package/dist/dist-cli-preview/chunks/PlaylistsScreen-tws56I3H.js +8 -0
  14. package/dist/dist-cli-preview/chunks/{PortalTenantClientProvider-Clys_Bme.js → PortalTenantClientProvider-DUOOCXfW.js} +1 -1
  15. package/dist/dist-cli-preview/chunks/{ProfileScreen-e4QhExeS.js → ProfileScreen-wZO6QMrU.js} +259 -234
  16. package/dist/dist-cli-preview/chunks/ResponsiveDialog-DSDcOjhm.js +731 -0
  17. package/dist/dist-cli-preview/chunks/Select-DmRoXIkQ.js +2499 -0
  18. package/dist/dist-cli-preview/chunks/{SubscriptionsScreen-DysTJ6w_.js → SubscriptionsScreen-BR2C0m7M.js} +3 -3
  19. package/dist/dist-cli-preview/chunks/Textarea-C59p5Cek.js +365 -0
  20. package/dist/dist-cli-preview/chunks/{account-screen-runtime-B3e0JV6I.js → account-screen-runtime-BqMndJcu.js} +1389 -1409
  21. package/dist/dist-cli-preview/chunks/{arrow-left-BOYuYcvT.js → arrow-left-CFy5J6Id.js} +1 -1
  22. package/dist/dist-cli-preview/chunks/{cli-preview-cY0EPyxC.js → cli-preview-DZOhxtLy.js} +10 -10
  23. package/dist/dist-cli-preview/chunks/{client.gen-jwIybX1j.js → client.gen-DTVKCFco.js} +12 -12
  24. package/dist/dist-cli-preview/chunks/{copy-Cm_EKxcg.js → copy-Da4VLOCZ.js} +1 -1
  25. package/dist/dist-cli-preview/chunks/{countries-api-adapter-BCS0247N.js → countries-api-adapter-Bh5QfCO1.js} +2 -2
  26. package/dist/dist-cli-preview/chunks/{create-card-entry-container-CZi7shLR.js → create-card-entry-container-ohrRYgww.js} +1939 -1929
  27. package/dist/dist-cli-preview/chunks/{hey-api-client-B6n5a7q-.js → hey-api-client-BIjWueui.js} +1 -1
  28. package/dist/dist-cli-preview/chunks/{index-CfLLmITa.js → index-BMWjXC9i.js} +405 -869
  29. package/dist/dist-cli-preview/chunks/{index-DFIsiT9r.js → index-BVehJyDQ.js} +2080 -2372
  30. package/dist/dist-cli-preview/chunks/index-_r1wSvno.js +427 -0
  31. package/dist/dist-cli-preview/chunks/{isAfter-D0zQuNEJ.js → isAfter-BR4uNpua.js} +145 -156
  32. package/dist/dist-cli-preview/chunks/{map-pin-Vt1smsNu.js → map-pin-C_cK_i_W.js} +1 -1
  33. package/dist/dist-cli-preview/chunks/messaging-B1UjYRdl.js +4 -0
  34. package/dist/dist-cli-preview/chunks/{mount-account-screen-BOVvR3Og.js → mount-account-screen-JJGALFRE.js} +8 -8
  35. package/dist/dist-cli-preview/chunks/{navigate-account-screen-D756rD78.js → navigate-account-screen-C0VoUNOi.js} +1 -1
  36. package/dist/dist-cli-preview/chunks/schemas-D0s3rDQw.js +4851 -0
  37. package/dist/dist-cli-preview/chunks/{screen-route-slug-utils-HNXiCpo6.js → screen-route-slug-utils-n2BiDZmp.js} +205 -260
  38. package/dist/dist-cli-preview/chunks/search-zEnxG69C.js +14 -0
  39. package/dist/dist-cli-preview/chunks/sheet-haptics-context-p5ZPxslK.js +133 -0
  40. package/dist/dist-cli-preview/chunks/{sidebar-BDgHluGp.js → sidebar-CjPHl33n.js} +8 -8
  41. package/dist/dist-cli-preview/chunks/{sortable.esm-Cw91KlVU.js → sortable.esm-CrxUZkb-.js} +373 -362
  42. package/dist/dist-cli-preview/chunks/{store-api-context-BCaEZBlj.js → store-api-context-0k_ECvSE.js} +1 -1
  43. package/dist/dist-cli-preview/chunks/translation-api-context-factory-CP0LBb-M.js +74 -0
  44. package/dist/dist-cli-preview/chunks/{use-mobile-BztyG-mE.js → use-mobile-DIhDH3dI.js} +1 -1
  45. package/dist/dist-cli-preview/chunks/{use-optional-store-Dl6PSQur.js → use-optional-store-t4xzc2Rl.js} +2 -2
  46. package/dist/dist-cli-preview/chunks/use-store-YC0Ovzht.js +76 -0
  47. package/dist/dist-cli-preview/chunks/{useInfiniteQuery-fL_VYHHr.js → useInfiniteQuery-Bnzu0kZa.js} +9 -20
  48. package/dist/dist-cli-preview/chunks/{users-B3YJ3D1U.js → users-CabXl4EL.js} +1 -1
  49. package/package.json +1 -1
  50. package/dist/dist-cli-preview/chunks/Breadcrumb-ixf0cTR_.js +0 -91
  51. package/dist/dist-cli-preview/chunks/MediaScreen-D8WSOaze.js +0 -8
  52. package/dist/dist-cli-preview/chunks/MobileActionSheet-aGr-nGxu.js +0 -3884
  53. package/dist/dist-cli-preview/chunks/OrdersScreen-hidM-JR_.js +0 -9
  54. package/dist/dist-cli-preview/chunks/PlaylistsScreen-BIqSXZ5B.js +0 -8
  55. package/dist/dist-cli-preview/chunks/ellipsis-C1sJRT_T.js +0 -15
  56. package/dist/dist-cli-preview/chunks/eye-BHBOtWLw.js +0 -20
  57. package/dist/dist-cli-preview/chunks/index-COIiY5Im.js +0 -135
  58. package/dist/dist-cli-preview/chunks/log-out-segl_UhK.js +0 -30
  59. package/dist/dist-cli-preview/chunks/messaging-C_IkzF0O.js +0 -4
  60. package/dist/dist-cli-preview/chunks/pause-YWP8mWBs.js +0 -41
  61. package/dist/dist-cli-preview/chunks/schemas-BiM-ImW1.js +0 -5565
  62. package/dist/dist-cli-preview/chunks/sheet-haptics-context-d9udqor0.js +0 -116
  63. package/dist/dist-cli-preview/chunks/trash-2-CZEbdFT_.js +0 -17
  64. package/dist/dist-cli-preview/chunks/use-store-aahN8SDp.js +0 -400
  65. package/dist/dist-cli-preview/chunks/user-B4pULYRZ.js +0 -14
@@ -1,34 +1,48 @@
1
- import { c as xe, a8 as Ie, l as i, j as t, U as Be, K as g, L as Re, M as le, Y as oe, B as Oe, J as Ue, R as de, bh as Ke, E as $e, N as He, a9 as qe, z as Ve } from "./account-screen-runtime-B3e0JV6I.js";
2
- import { C as B, h as ae, i as ge, a as W, j as Ge, k as Ye, l as We, m as Je, n as Qe, o as Ze, c as be, d as Y, f as ye, D as _e, e as ve, S as je, v as Ne, s as ke, K as Ce, P as Se, u as we, b as Le, G as Ee, p as Xe, q as et, r as tt, t as De, w as st, x as at, L as nt, M as rt } from "./sortable.esm-Cw91KlVU.js";
3
- import { c as it, a as lt } from "./client.gen-jwIybX1j.js";
4
- import { B as ot, a as dt, b as ce, d as ct, c as ue, e as ut } from "./Breadcrumb-ixf0cTR_.js";
5
- import { a as mt, c as pt, b as ft, u as ht, S as E, I as me } from "./sheet-haptics-context-d9udqor0.js";
6
- import { E as xt } from "./eye-BHBOtWLw.js";
7
- import { U as gt } from "./users-B3YJ3D1U.js";
8
- import { C as bt } from "./copy-Cm_EKxcg.js";
9
- import { A as ne } from "./arrow-left-BOYuYcvT.js";
10
- import { C as yt, o as w, n as _, s as c, d as ee, m as _t, P as pe, R as te, j as se, k as vt } from "./schemas-BiM-ImW1.js";
11
- import { u as Pe } from "./sidebar-BDgHluGp.js";
12
- import { T as re } from "./trash-2-CZEbdFT_.js";
13
- import { U as jt } from "./user-B4pULYRZ.js";
1
+ import { c as ae, aj as Ie, l as i, j as t, a4 as Be, $ as g, L as Re, X as oe, a7 as de, B as Oe, _ as Ue, a3 as ce, b9 as $e, E as Ke, a1 as He, ak as qe, z as Ve } from "./account-screen-runtime-BqMndJcu.js";
2
+ import { C as B, h as ne, i as ge, a as W, j as Ge, k as Ye, l as We, m as Qe, n as Xe, o as Ze, c as be, d as Y, f as ye, D as _e, e as ve, S as je, v as Ne, s as ke, K as Ce, P as Se, u as we, b as Le, G as Ee, p as Je, q as et, r as tt, t as De, w as st, x as at, U as nt, L as rt, M as it } from "./sortable.esm-CrxUZkb-.js";
3
+ import { c as lt, a as ot } from "./client.gen-DTVKCFco.js";
4
+ import { S as E, I as ue, B as dt, a as ct, b as me, d as ut, c as pe, e as mt } from "./sheet-haptics-context-p5ZPxslK.js";
5
+ import { a as pt, c as ft, b as ht, u as xt } from "./translation-api-context-factory-CP0LBb-M.js";
6
+ import { U as gt } from "./users-CabXl4EL.js";
7
+ import { C as bt } from "./copy-Da4VLOCZ.js";
8
+ import { A as re } from "./arrow-left-CFy5J6Id.js";
9
+ import { C as yt, o as w, n as _, s as c, d as ee, f as _t } from "./schemas-D0s3rDQw.js";
10
+ import { P as fe, R as te, e as se, T as ie, f as vt } from "./ResponsiveDialog-DSDcOjhm.js";
11
+ import { u as Pe } from "./sidebar-CjPHl33n.js";
14
12
  /**
15
13
  * @license lucide-react v0.575.0 - ISC
16
14
  *
17
15
  * This source code is licensed under the ISC license.
18
16
  * See the LICENSE file in the root directory of this source tree.
19
17
  */
20
- const Nt = [
18
+ const jt = [
19
+ [
20
+ "path",
21
+ {
22
+ d: "M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",
23
+ key: "1nclc0"
24
+ }
25
+ ],
26
+ ["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
27
+ ], Nt = ae("eye", jt);
28
+ /**
29
+ * @license lucide-react v0.575.0 - ISC
30
+ *
31
+ * This source code is licensed under the ISC license.
32
+ * See the LICENSE file in the root directory of this source tree.
33
+ */
34
+ const kt = [
21
35
  ["path", { d: "M9 17H7A5 5 0 0 1 7 7h2", key: "8i5ue5" }],
22
36
  ["path", { d: "M15 7h2a5 5 0 1 1 0 10h-2", key: "1b9ql8" }],
23
37
  ["line", { x1: "8", x2: "16", y1: "12", y2: "12", key: "1jonct" }]
24
- ], kt = xe("link-2", Nt);
38
+ ], Ct = ae("link-2", kt);
25
39
  /**
26
40
  * @license lucide-react v0.575.0 - ISC
27
41
  *
28
42
  * This source code is licensed under the ISC license.
29
43
  * See the LICENSE file in the root directory of this source tree.
30
44
  */
31
- const Ct = [
45
+ const St = [
32
46
  [
33
47
  "path",
34
48
  {
@@ -40,12 +54,12 @@ const Ct = [
40
54
  ["circle", { cx: "17.5", cy: "10.5", r: ".5", fill: "currentColor", key: "f64h9f" }],
41
55
  ["circle", { cx: "6.5", cy: "12.5", r: ".5", fill: "currentColor", key: "qy21gx" }],
42
56
  ["circle", { cx: "8.5", cy: "7.5", r: ".5", fill: "currentColor", key: "fotxhn" }]
43
- ], Me = xe("palette", Ct);
44
- function St(e) {
57
+ ], Me = ae("palette", St);
58
+ function wt(e) {
45
59
  return e instanceof DOMException && e.name === "AbortError" || e instanceof Error && e.name === "AbortError";
46
60
  }
47
- function wt(e) {
48
- const s = it({
61
+ function Lt(e) {
62
+ const s = lt({
49
63
  baseUrl: e.baseUrl,
50
64
  credentials: "include",
51
65
  fetch: e.fetch,
@@ -65,19 +79,19 @@ function wt(e) {
65
79
  l.set(r, o);
66
80
  return new Request(n, { headers: l });
67
81
  }), s.interceptors.error.use(
68
- lt({
82
+ ot({
69
83
  onResponseError: (n) => {
70
84
  n.status === 401 && e.onAuthError?.();
71
85
  },
72
- shouldPassThroughTransportError: St
86
+ shouldPassThroughTransportError: wt
73
87
  })
74
88
  ), s;
75
89
  }
76
- const Lt = (e) => e.client.get({
90
+ const Et = (e) => e.client.get({
77
91
  responseStyle: "data",
78
92
  url: "/api/mysite/profile",
79
93
  ...e
80
- }), fe = (e) => e.client.put({
94
+ }), he = (e) => e.client.put({
81
95
  responseStyle: "data",
82
96
  url: "/api/mysite/profile",
83
97
  ...e,
@@ -85,11 +99,11 @@ const Lt = (e) => e.client.get({
85
99
  "Content-Type": "application/json",
86
100
  ...e.headers
87
101
  }
88
- }), Et = (e) => e.client.get({
102
+ }), Dt = (e) => e.client.get({
89
103
  responseStyle: "data",
90
104
  url: "/api/mysite/themes",
91
105
  ...e
92
- }), Dt = (e) => e.client.put({
106
+ }), Pt = (e) => e.client.put({
93
107
  responseStyle: "data",
94
108
  url: "/api/mysite/settings",
95
109
  ...e,
@@ -97,11 +111,11 @@ const Lt = (e) => e.client.get({
97
111
  "Content-Type": "application/json",
98
112
  ...e.headers
99
113
  }
100
- }), Pt = (e) => e.client.get({
114
+ }), Mt = (e) => e.client.get({
101
115
  responseStyle: "data",
102
116
  url: "/api/mysite/links",
103
117
  ...e
104
- }), Mt = (e) => e.client.post({
118
+ }), Ft = (e) => e.client.post({
105
119
  responseStyle: "data",
106
120
  url: "/api/mysite/links",
107
121
  ...e,
@@ -109,11 +123,11 @@ const Lt = (e) => e.client.get({
109
123
  "Content-Type": "application/json",
110
124
  ...e.headers
111
125
  }
112
- }), Ft = (e) => e.client.delete({
126
+ }), zt = (e) => e.client.delete({
113
127
  responseStyle: "data",
114
128
  url: "/api/mysite/links/{id}",
115
129
  ...e
116
- }), zt = (e) => e.client.put({
130
+ }), Tt = (e) => e.client.put({
117
131
  responseStyle: "data",
118
132
  url: "/api/mysite/links/{id}",
119
133
  ...e,
@@ -121,7 +135,7 @@ const Lt = (e) => e.client.get({
121
135
  "Content-Type": "application/json",
122
136
  ...e.headers
123
137
  }
124
- }), Tt = (e) => e.client.patch({
138
+ }), At = (e) => e.client.patch({
125
139
  responseStyle: "data",
126
140
  url: "/api/mysite/links/bulk",
127
141
  ...e,
@@ -129,11 +143,11 @@ const Lt = (e) => e.client.get({
129
143
  "Content-Type": "application/json",
130
144
  ...e.headers
131
145
  }
132
- }), At = (e) => e.client.get({
146
+ }), It = (e) => e.client.get({
133
147
  responseStyle: "data",
134
148
  url: "/api/mysite/favorites",
135
149
  ...e
136
- }), It = (e) => e.client.post({
150
+ }), Bt = (e) => e.client.post({
137
151
  responseStyle: "data",
138
152
  url: "/api/mysite/favorites",
139
153
  ...e,
@@ -141,11 +155,11 @@ const Lt = (e) => e.client.get({
141
155
  "Content-Type": "application/json",
142
156
  ...e.headers
143
157
  }
144
- }), Bt = (e) => e.client.delete({
158
+ }), Rt = (e) => e.client.delete({
145
159
  responseStyle: "data",
146
160
  url: "/api/mysite/favorites/{id}",
147
161
  ...e
148
- }), Rt = (e) => e.client.patch({
162
+ }), Ot = (e) => e.client.patch({
149
163
  responseStyle: "data",
150
164
  url: "/api/mysite/favorites/bulk",
151
165
  ...e,
@@ -154,7 +168,7 @@ const Lt = (e) => e.client.get({
154
168
  ...e.headers
155
169
  }
156
170
  });
157
- function he(e) {
171
+ function xe(e) {
158
172
  return {
159
173
  id: e.id ?? 0,
160
174
  mysite_url: e.mysite_url ?? null,
@@ -175,7 +189,7 @@ function V(e) {
175
189
  position: e.position ?? 0
176
190
  };
177
191
  }
178
- function X(e) {
192
+ function J(e) {
179
193
  return {
180
194
  id: e.id ?? 0,
181
195
  favoriteable_id: e.favoriteable_id ?? e.product_id ?? 0,
@@ -189,21 +203,21 @@ function X(e) {
189
203
  created_at: e.created_at ?? null
190
204
  };
191
205
  }
192
- function Ot(e) {
206
+ function Ut(e) {
193
207
  return {
194
208
  id: e.id ?? 0,
195
209
  name: e.name ?? "",
196
210
  preview_url: e.preview_url ?? null
197
211
  };
198
212
  }
199
- function Ut(e) {
213
+ function $t(e) {
200
214
  return {
201
215
  fetchProfile: async () => {
202
- const s = await Lt({ client: e });
203
- return he(s.profile ?? {});
216
+ const s = await Et({ client: e });
217
+ return xe(s.profile ?? {});
204
218
  },
205
219
  updateProfile: async (s) => {
206
- const n = await fe({
220
+ const n = await he({
207
221
  client: e,
208
222
  body: {
209
223
  profile: {
@@ -213,30 +227,30 @@ function Ut(e) {
213
227
  }
214
228
  }
215
229
  });
216
- return he(n.profile ?? {});
230
+ return xe(n.profile ?? {});
217
231
  },
218
232
  updateSettings: async (s) => {
219
233
  await Promise.all([
220
- s.theme_id !== void 0 ? Dt({
234
+ s.theme_id !== void 0 ? Pt({
221
235
  client: e,
222
236
  body: { settings: { theme_id: s.theme_id } }
223
237
  }) : Promise.resolve(),
224
- s.slug !== void 0 ? fe({
238
+ s.slug !== void 0 ? he({
225
239
  client: e,
226
240
  body: { profile: { slug: s.slug } }
227
241
  }) : Promise.resolve()
228
242
  ]);
229
243
  },
230
- listLinks: async () => ((await Pt({ client: e })).links ?? []).map(V),
244
+ listLinks: async () => ((await Mt({ client: e })).links ?? []).map(V),
231
245
  createLink: async (s) => {
232
- const n = await Mt({
246
+ const n = await Ft({
233
247
  client: e,
234
248
  body: { link: { title: s.title, url: s.url } }
235
249
  });
236
250
  return V(n.link ?? {});
237
251
  },
238
252
  updateLink: async (s, n) => {
239
- const a = await zt({
253
+ const a = await Tt({
240
254
  client: e,
241
255
  path: { id: s },
242
256
  body: { link: { title: n.title, url: n.url } }
@@ -244,31 +258,31 @@ function Ut(e) {
244
258
  return V(a.link ?? {});
245
259
  },
246
260
  deleteLink: async (s) => {
247
- await Ft({ client: e, path: { id: s } });
261
+ await zt({ client: e, path: { id: s } });
248
262
  },
249
- reorderLinks: async (s) => ((await Tt({
263
+ reorderLinks: async (s) => ((await At({
250
264
  client: e,
251
265
  body: { ordered_ids: s }
252
266
  })).links ?? []).map(V),
253
- listFavorites: async () => ((await At({ client: e })).favorites ?? []).map(X),
267
+ listFavorites: async () => ((await It({ client: e })).favorites ?? []).map(J),
254
268
  addFavorite: async (s) => {
255
- const n = await It({
269
+ const n = await Bt({
256
270
  client: e,
257
271
  body: { favorite: { product_id: s.product_id } }
258
272
  });
259
- return X(n.favorite ?? {});
273
+ return J(n.favorite ?? {});
260
274
  },
261
275
  deleteFavorite: async (s) => {
262
- await Bt({
276
+ await Rt({
263
277
  client: e,
264
278
  path: { id: s }
265
279
  });
266
280
  },
267
- reorderFavorites: async (s) => ((await Rt({
281
+ reorderFavorites: async (s) => ((await Ot({
268
282
  client: e,
269
283
  body: { ordered_ids: s }
270
- })).favorites ?? []).map(X),
271
- listThemes: async () => ((await Et({ client: e })).themes ?? []).map(Ot)
284
+ })).favorites ?? []).map(J),
285
+ listThemes: async () => ((await Dt({ client: e })).themes ?? []).map(Ut)
272
286
  };
273
287
  }
274
288
  const Kt = {
@@ -358,7 +372,7 @@ const Kt = {
358
372
  theme_name_aria: "Theme name",
359
373
  rename_failed: "Couldn't rename theme. Try again.",
360
374
  name_validation_error: "Name {{error}}"
361
- }, $t = pt({
375
+ }, Ht = ft({
362
376
  fallback: Kt,
363
377
  loaders: {
364
378
  ar: () => import("./ar-D_B30x0o.js").then(
@@ -465,21 +479,21 @@ const Kt = {
465
479
  )
466
480
  }
467
481
  });
468
- function Ht(e, s) {
469
- return mt(e, s);
482
+ function qt(e, s) {
483
+ return pt(e, s);
470
484
  }
471
- const { Provider: qt, useTranslation: Vt } = ft("Mysite"), Gt = qt, D = Vt;
472
- function Yt({
485
+ const { Provider: Vt, useTranslation: Gt } = ht("Mysite"), Yt = Vt, D = Gt;
486
+ function Wt({
473
487
  children: e
474
488
  }) {
475
- const { locale: s } = Ie(), n = ht($t, s), a = i.useMemo(
476
- () => Ht(s, n),
489
+ const { locale: s } = Ie(), n = xt(Ht, s), a = i.useMemo(
490
+ () => qt(s, n),
477
491
  [s, n]
478
492
  );
479
- return /* @__PURE__ */ t.jsx(Gt, { value: a, children: e });
493
+ return /* @__PURE__ */ t.jsx(Yt, { value: a, children: e });
480
494
  }
481
495
  const T = 300, G = 500;
482
- function Wt(e) {
496
+ function Qt(e) {
483
497
  switch (e) {
484
498
  case "idle":
485
499
  return "opacity-100 transition-none";
@@ -499,7 +513,7 @@ function Wt(e) {
499
513
  return "opacity-100 transition-opacity duration-300 ease-in-out";
500
514
  }
501
515
  }
502
- function Jt(e) {
516
+ function Xt(e) {
503
517
  switch (e) {
504
518
  case "idle":
505
519
  case "fade-out":
@@ -515,17 +529,17 @@ function Jt(e) {
515
529
  return "transition-transform duration-500 ease-in-out";
516
530
  }
517
531
  }
518
- function Qt({
532
+ function Zt({
519
533
  views: e,
520
534
  leads: s
521
535
  }) {
522
536
  const { t: n } = D();
523
537
  return /* @__PURE__ */ t.jsxs(B, { className: "h-auto gap-0 py-0 shadow-none", children: [
524
- /* @__PURE__ */ t.jsx(ae, { className: "p-4 pb-3", children: /* @__PURE__ */ t.jsx(ge, { className: "text-sm", children: n("visitor_details") }) }),
538
+ /* @__PURE__ */ t.jsx(ne, { className: "p-4 pb-3", children: /* @__PURE__ */ t.jsx(ge, { className: "text-sm", children: n("visitor_details") }) }),
525
539
  /* @__PURE__ */ t.jsxs(W, { className: "flex px-4 pb-4", children: [
526
540
  /* @__PURE__ */ t.jsxs("div", { className: "flex-1", children: [
527
541
  /* @__PURE__ */ t.jsxs("div", { className: "mb-2 flex items-center gap-1.5", children: [
528
- /* @__PURE__ */ t.jsx(xt, { className: "text-muted-foreground size-3.5" }),
542
+ /* @__PURE__ */ t.jsx(Nt, { className: "text-muted-foreground size-3.5" }),
529
543
  /* @__PURE__ */ t.jsx("span", { className: "text-muted-foreground text-sm", children: n("views") })
530
544
  ] }),
531
545
  /* @__PURE__ */ t.jsx("p", { className: "text-foreground text-2xl font-bold", children: e.toLocaleString() })
@@ -541,7 +555,7 @@ function Qt({
541
555
  ] })
542
556
  ] });
543
557
  }
544
- function Zt({
558
+ function Jt({
545
559
  mysiteUrl: e,
546
560
  displayUrl: s,
547
561
  onUpdateSlug: n,
@@ -580,7 +594,7 @@ function Zt({
580
594
  }
581
595
  }, [e, a, l]);
582
596
  return /* @__PURE__ */ t.jsxs(B, { className: "h-auto gap-0 py-0 shadow-none", children: [
583
- /* @__PURE__ */ t.jsxs(ae, { className: "items-center p-4", children: [
597
+ /* @__PURE__ */ t.jsxs(ne, { className: "items-center p-4", children: [
584
598
  /* @__PURE__ */ t.jsx(ge, { className: "text-sm", children: l("your_mysite_link") }),
585
599
  !u && n && /* @__PURE__ */ t.jsx(Ge, { children: /* @__PURE__ */ t.jsx(g, { variant: "link", size: "sm", onClick: v, children: l("edit_link") }) })
586
600
  ] }),
@@ -639,7 +653,7 @@ function Zt({
639
653
  ] })
640
654
  ] });
641
655
  }
642
- function Xt({
656
+ function es({
643
657
  mysiteUrl: e,
644
658
  themeName: s,
645
659
  previewKey: n,
@@ -659,7 +673,7 @@ function Xt({
659
673
  m && (u.current = !0, m.src = d);
660
674
  };
661
675
  return /* @__PURE__ */ t.jsxs(B, { className: "items-center gap-4 py-5", children: [
662
- /* @__PURE__ */ t.jsxs(ae, { className: "w-full items-center px-5", children: [
676
+ /* @__PURE__ */ t.jsxs(ne, { className: "w-full items-center px-5", children: [
663
677
  /* @__PURE__ */ t.jsxs("div", { children: [
664
678
  /* @__PURE__ */ t.jsx("p", { className: "text-muted-foreground text-xs", children: r("current_theme") }),
665
679
  /* @__PURE__ */ t.jsx("p", { className: "text-foreground text-sm font-semibold", children: s })
@@ -714,13 +728,13 @@ function Xt({
714
728
  ] })
715
729
  ] });
716
730
  }
717
- const es = 137, ts = (e) => {
731
+ const ts = 137, ss = (e) => {
718
732
  let s = 0;
719
733
  for (const a of e)
720
734
  s = s * 31 + (a.codePointAt(0) ?? 0) >>> 0;
721
- return `color-mix(in oklab, hsl(${s * es % 360} 70% 50%) 28%, var(--color-muted))`;
735
+ return `color-mix(in oklab, hsl(${s * ts % 360} 70% 50%) 28%, var(--color-muted))`;
722
736
  };
723
- function ss({
737
+ function as({
724
738
  themes: e,
725
739
  selectedThemeId: s,
726
740
  onSelectTheme: n,
@@ -730,7 +744,7 @@ function ss({
730
744
  const { t: r } = D();
731
745
  return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
732
746
  /* @__PURE__ */ t.jsxs("div", { className: "flex items-center gap-3", children: [
733
- /* @__PURE__ */ t.jsx(g, { variant: "ghost", size: "icon", onClick: l, children: /* @__PURE__ */ t.jsx(ne, { className: "size-4" }) }),
747
+ /* @__PURE__ */ t.jsx(g, { variant: "ghost", size: "icon", onClick: l, children: /* @__PURE__ */ t.jsx(re, { className: "size-4" }) }),
734
748
  /* @__PURE__ */ t.jsx("h1", { className: "text-foreground text-xl font-bold", children: r("choose_a_theme") })
735
749
  ] }),
736
750
  e.length === 0 ? /* @__PURE__ */ t.jsx(B, { children: /* @__PURE__ */ t.jsx(W, { className: "py-8 text-center", children: /* @__PURE__ */ t.jsx("p", { className: "text-muted-foreground", children: r("no_themes_available") }) }) }) : /* @__PURE__ */ t.jsx("div", { className: "grid grid-cols-2 gap-4 sm:grid-cols-3", children: e.map((o) => {
@@ -740,7 +754,7 @@ function ss({
740
754
  {
741
755
  type: "button",
742
756
  onClick: () => n(o),
743
- className: le(
757
+ className: oe(
744
758
  "group focus:ring-primary relative overflow-hidden rounded-lg border-2 transition-all focus:ring-2 focus:ring-offset-2 focus:outline-none",
745
759
  d ? "border-primary ring-primary ring-2" : "border-border hover:border-muted-foreground/50"
746
760
  ),
@@ -760,7 +774,7 @@ function ss({
760
774
  "div",
761
775
  {
762
776
  className: "text-muted-foreground/50 flex h-full w-full items-center justify-center",
763
- style: { backgroundColor: ts(o.name) },
777
+ style: { backgroundColor: ss(o.name) },
764
778
  children: /* @__PURE__ */ t.jsx(Me, { className: "size-8" })
765
779
  }
766
780
  ),
@@ -770,7 +784,7 @@ function ss({
770
784
  /* @__PURE__ */ t.jsx("div", { className: "bg-card p-2", children: /* @__PURE__ */ t.jsx(
771
785
  "p",
772
786
  {
773
- className: le(
787
+ className: oe(
774
788
  "truncate text-sm font-medium",
775
789
  d ? "text-primary" : "text-foreground"
776
790
  ),
@@ -791,7 +805,7 @@ w({
791
805
  order: _(),
792
806
  clicks: _().optional().default(0)
793
807
  });
794
- const as = w({
808
+ const ns = w({
795
809
  id: _(),
796
810
  title: c().nullable().optional(),
797
811
  name: c().nullable().optional(),
@@ -805,7 +819,7 @@ w({
805
819
  order: _(),
806
820
  user_company_id: _().optional(),
807
821
  created_at: c().optional(),
808
- favoriteable: as.nullable()
822
+ favoriteable: ns.nullable()
809
823
  }).passthrough();
810
824
  w({
811
825
  id: _()
@@ -837,7 +851,7 @@ w({
837
851
  application_theme_template_id: _().nullable(),
838
852
  default: ee().nullable().optional()
839
853
  });
840
- const ns = w({
854
+ const rs = w({
841
855
  id: _(),
842
856
  name: c(),
843
857
  content: c().nullable(),
@@ -854,7 +868,7 @@ w({
854
868
  image_url: c().nullable(),
855
869
  public: ee(),
856
870
  company_id: _().nullable(),
857
- template: ns
871
+ template: rs
858
872
  })
859
873
  })
860
874
  });
@@ -867,17 +881,17 @@ function Fe(e) {
867
881
  return e;
868
882
  }
869
883
  }
870
- function rs(e) {
884
+ function is(e) {
871
885
  const s = e.trim();
872
886
  return s ? /^https?:\/\//i.test(s) ? s : `https://${s}` : "";
873
887
  }
874
- function is(e) {
888
+ function ls(e) {
875
889
  return w({
876
890
  title: c().min(1, e("validation_button_text_required")),
877
- url: c().transform(rs).pipe(c().url(e("validation_url_invalid")))
891
+ url: c().transform(is).pipe(c().url(e("validation_url_invalid")))
878
892
  });
879
893
  }
880
- function ls({
894
+ function os({
881
895
  link: e,
882
896
  onEdit: s,
883
897
  onDelete: n
@@ -935,7 +949,7 @@ function ls({
935
949
  className: "text-muted-foreground hover:text-destructive",
936
950
  onClick: () => n(e),
937
951
  "aria-label": a("delete_button_aria"),
938
- children: /* @__PURE__ */ t.jsx(re, { className: "size-4" })
952
+ children: /* @__PURE__ */ t.jsx(ie, { className: "size-4" })
939
953
  }
940
954
  )
941
955
  ] })
@@ -943,13 +957,13 @@ function ls({
943
957
  }
944
958
  );
945
959
  }
946
- function os({
960
+ function ds({
947
961
  onBack: e,
948
962
  onRefreshPreview: s,
949
963
  onToast: n
950
964
  }) {
951
965
  "use no memo";
952
- const { t: a } = D(), { isMobile: l } = Pe(), r = i.useMemo(() => is(a), [a]), { data: o = [], isLoading: d } = Ye(), u = We(), f = Je(), m = Qe(), p = Ze(), [y, j] = i.useState(!1), [v, N] = i.useState(null), [P, C] = i.useState(!1), [h, M] = i.useState(null), {
966
+ const { t: a } = D(), { isMobile: l } = Pe(), r = i.useMemo(() => ls(a), [a]), { data: o = [], isLoading: d } = Ye(), u = We(), f = Qe(), m = Xe(), p = Ze(), [y, j] = i.useState(!1), [v, N] = i.useState(null), [P, C] = i.useState(!1), [h, M] = i.useState(null), {
953
967
  register: k,
954
968
  handleSubmit: R,
955
969
  reset: L,
@@ -961,7 +975,7 @@ function os({
961
975
  Y(Ce, {
962
976
  coordinateGetter: ke
963
977
  })
964
- ), $ = i.useCallback(() => {
978
+ ), K = i.useCallback(() => {
965
979
  N(null), L({ title: "", url: "" }), j(!0);
966
980
  }, [L]), H = i.useCallback(
967
981
  (b) => {
@@ -973,7 +987,7 @@ function os({
973
987
  [L]
974
988
  ), A = i.useCallback(() => {
975
989
  j(!1), N(null), L({ title: "", url: "" });
976
- }, [L]), J = i.useCallback(
990
+ }, [L]), Q = i.useCallback(
977
991
  (b) => {
978
992
  v ? f.mutate(
979
993
  {
@@ -1029,13 +1043,13 @@ function os({
1029
1043
  s,
1030
1044
  n,
1031
1045
  a
1032
- ]), Q = i.useCallback(
1046
+ ]), X = i.useCallback(
1033
1047
  (b) => {
1034
1048
  const { active: q, over: Z } = b;
1035
1049
  if (Z && q.id !== Z.id) {
1036
- const ze = o.findIndex((U) => U.id === q.id), Te = o.findIndex((U) => U.id === Z.id), ie = ye(o, ze, Te), Ae = ie.map((U) => U.id);
1050
+ const ze = o.findIndex((U) => U.id === q.id), Te = o.findIndex((U) => U.id === Z.id), le = ye(o, ze, Te), Ae = le.map((U) => U.id);
1037
1051
  p.mutate(
1038
- { orderedIds: Ae, optimisticItems: ie },
1052
+ { orderedIds: Ae, optimisticItems: le },
1039
1053
  {
1040
1054
  onSuccess: () => {
1041
1055
  s?.();
@@ -1052,11 +1066,11 @@ function os({
1052
1066
  return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1053
1067
  /* @__PURE__ */ t.jsxs("div", { className: "flex items-center justify-between", children: [
1054
1068
  /* @__PURE__ */ t.jsxs("div", { className: "flex items-center gap-3", children: [
1055
- /* @__PURE__ */ t.jsx(g, { variant: "ghost", size: "icon", onClick: e, children: /* @__PURE__ */ t.jsx(ne, { className: "size-4" }) }),
1069
+ /* @__PURE__ */ t.jsx(g, { variant: "ghost", size: "icon", onClick: e, children: /* @__PURE__ */ t.jsx(re, { className: "size-4" }) }),
1056
1070
  /* @__PURE__ */ t.jsx("h1", { className: "text-foreground text-xl font-bold", children: a("buttons_heading") })
1057
1071
  ] }),
1058
- /* @__PURE__ */ t.jsxs(g, { size: "sm", onClick: $, children: [
1059
- /* @__PURE__ */ t.jsx(pe, { className: "mr-1 size-4" }),
1072
+ /* @__PURE__ */ t.jsxs(g, { size: "sm", onClick: K, children: [
1073
+ /* @__PURE__ */ t.jsx(fe, { className: "mr-1 size-4" }),
1060
1074
  a("add_button")
1061
1075
  ] })
1062
1076
  ] }),
@@ -1079,8 +1093,8 @@ function os({
1079
1093
  q
1080
1094
  )) }) : o.length === 0 ? /* @__PURE__ */ t.jsxs(B, { className: "p-6 text-center sm:p-8", children: [
1081
1095
  /* @__PURE__ */ t.jsx("p", { className: "text-muted-foreground mb-4", children: a("no_buttons_empty") }),
1082
- /* @__PURE__ */ t.jsxs(g, { size: "sm", onClick: $, children: [
1083
- /* @__PURE__ */ t.jsx(pe, { className: "mr-1 size-4" }),
1096
+ /* @__PURE__ */ t.jsxs(g, { size: "sm", onClick: K, children: [
1097
+ /* @__PURE__ */ t.jsx(fe, { className: "mr-1 size-4" }),
1084
1098
  a("add_button")
1085
1099
  ] })
1086
1100
  ] }) : /* @__PURE__ */ t.jsx(
@@ -1088,14 +1102,14 @@ function os({
1088
1102
  {
1089
1103
  sensors: F,
1090
1104
  collisionDetection: ve,
1091
- onDragEnd: Q,
1105
+ onDragEnd: X,
1092
1106
  children: /* @__PURE__ */ t.jsx(
1093
1107
  je,
1094
1108
  {
1095
1109
  items: o.map((b) => b.id),
1096
1110
  strategy: Ne,
1097
1111
  children: /* @__PURE__ */ t.jsx("div", { className: "space-y-2", children: o.map((b) => /* @__PURE__ */ t.jsx(
1098
- ls,
1112
+ os,
1099
1113
  {
1100
1114
  link: b,
1101
1115
  onEdit: H,
@@ -1117,13 +1131,13 @@ function os({
1117
1131
  children: /* @__PURE__ */ t.jsxs(
1118
1132
  "form",
1119
1133
  {
1120
- onSubmit: R(J),
1134
+ onSubmit: R(Q),
1121
1135
  className: "space-y-4",
1122
1136
  children: [
1123
1137
  /* @__PURE__ */ t.jsxs("div", { className: "space-y-2", children: [
1124
- /* @__PURE__ */ t.jsx(oe, { htmlFor: "title", children: a("button_text_label") }),
1138
+ /* @__PURE__ */ t.jsx(de, { htmlFor: "title", children: a("button_text_label") }),
1125
1139
  /* @__PURE__ */ t.jsx(
1126
- me,
1140
+ ue,
1127
1141
  {
1128
1142
  id: "title",
1129
1143
  placeholder: a("button_text_placeholder"),
@@ -1134,9 +1148,9 @@ function os({
1134
1148
  S.title && /* @__PURE__ */ t.jsx("p", { className: "text-destructive text-sm", children: S.title.message })
1135
1149
  ] }),
1136
1150
  /* @__PURE__ */ t.jsxs("div", { className: "space-y-2", children: [
1137
- /* @__PURE__ */ t.jsx(oe, { htmlFor: "url", children: a("url_label") }),
1151
+ /* @__PURE__ */ t.jsx(de, { htmlFor: "url", children: a("url_label") }),
1138
1152
  /* @__PURE__ */ t.jsx(
1139
- me,
1153
+ ue,
1140
1154
  {
1141
1155
  id: "url",
1142
1156
  placeholder: a("url_placeholder"),
@@ -1156,7 +1170,7 @@ function os({
1156
1170
  A(), x(v);
1157
1171
  },
1158
1172
  children: [
1159
- /* @__PURE__ */ t.jsx(re, { className: "mr-1 size-4" }),
1173
+ /* @__PURE__ */ t.jsx(ie, { className: "mr-1 size-4" }),
1160
1174
  a("delete")
1161
1175
  ]
1162
1176
  }
@@ -1224,13 +1238,13 @@ function os({
1224
1238
  )
1225
1239
  ] });
1226
1240
  }
1227
- const ds = {
1241
+ const cs = {
1228
1242
  Medium: "type_media",
1229
1243
  Library: "type_playlist",
1230
1244
  EnrollmentPack: "type_enrollment_pack",
1231
1245
  Page: "type_page"
1232
1246
  };
1233
- function cs({
1247
+ function us({
1234
1248
  favorite: e,
1235
1249
  onDelete: s
1236
1250
  }) {
@@ -1244,7 +1258,7 @@ function cs({
1244
1258
  } = we({ id: e.id }), f = {
1245
1259
  transform: Le.Transform.toString(o),
1246
1260
  transition: d
1247
- }, m = e.name ?? n("untitled"), p = e.image_url, y = ds[e.favoriteable_type], j = e.favoriteable_type !== "Product" ? y ? n(y) : e.favoriteable_type : null;
1261
+ }, m = e.name ?? n("untitled"), p = e.image_url, y = cs[e.favoriteable_type], j = e.favoriteable_type !== "Product" ? y ? n(y) : e.favoriteable_type : null;
1248
1262
  return /* @__PURE__ */ t.jsxs(
1249
1263
  "div",
1250
1264
  {
@@ -1286,19 +1300,19 @@ function cs({
1286
1300
  className: "text-muted-foreground hover:text-destructive",
1287
1301
  onClick: () => s(e),
1288
1302
  "aria-label": n("remove_favorite_aria"),
1289
- children: /* @__PURE__ */ t.jsx(re, { className: "size-4" })
1303
+ children: /* @__PURE__ */ t.jsx(ie, { className: "size-4" })
1290
1304
  }
1291
1305
  ) })
1292
1306
  ]
1293
1307
  }
1294
1308
  );
1295
1309
  }
1296
- function us({
1310
+ function ms({
1297
1311
  onBack: e,
1298
1312
  onRefreshPreview: s,
1299
1313
  onToast: n
1300
1314
  }) {
1301
- const { t: a } = D(), { isMobile: l } = Pe(), { data: r = [], isLoading: o } = Xe(), d = et(), u = tt(), [f, m] = i.useState(!1), [p, y] = i.useState(null), j = be(
1315
+ const { t: a } = D(), { isMobile: l } = Pe(), { data: r = [], isLoading: o } = Je(), d = et(), u = tt(), [f, m] = i.useState(!1), [p, y] = i.useState(null), j = be(
1302
1316
  Y(Se),
1303
1317
  Y(Ce, {
1304
1318
  coordinateGetter: ke
@@ -1348,7 +1362,7 @@ function us({
1348
1362
  );
1349
1363
  return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1350
1364
  /* @__PURE__ */ t.jsxs("div", { className: "flex items-center gap-3", children: [
1351
- /* @__PURE__ */ t.jsx(g, { variant: "ghost", size: "icon", onClick: e, children: /* @__PURE__ */ t.jsx(ne, { className: "size-4" }) }),
1365
+ /* @__PURE__ */ t.jsx(g, { variant: "ghost", size: "icon", onClick: e, children: /* @__PURE__ */ t.jsx(re, { className: "size-4" }) }),
1352
1366
  /* @__PURE__ */ t.jsx("h1", { className: "text-foreground text-xl font-bold", children: a("content_heading") })
1353
1367
  ] }),
1354
1368
  o ? /* @__PURE__ */ t.jsx("div", { className: "space-y-2", children: Array.from({ length: 3 }).map((h, M) => /* @__PURE__ */ t.jsxs(
@@ -1378,7 +1392,7 @@ function us({
1378
1392
  items: r.map((h) => h.id),
1379
1393
  strategy: Ne,
1380
1394
  children: /* @__PURE__ */ t.jsx("div", { className: "space-y-2", children: r.map((h) => /* @__PURE__ */ t.jsx(
1381
- cs,
1395
+ us,
1382
1396
  {
1383
1397
  favorite: h,
1384
1398
  onDelete: v
@@ -1427,16 +1441,16 @@ function us({
1427
1441
  )
1428
1442
  ] });
1429
1443
  }
1430
- const ms = [
1431
- { labelKey: "nav_profile", slug: "profile", icon: jt },
1444
+ const ps = [
1445
+ { labelKey: "nav_profile", slug: "profile", icon: nt },
1432
1446
  { labelKey: "nav_theme", key: "theme", icon: Me },
1433
- { labelKey: "nav_content", key: "content", icon: nt },
1434
- { labelKey: "nav_buttons", key: "buttons", icon: kt }
1447
+ { labelKey: "nav_content", key: "content", icon: rt },
1448
+ { labelKey: "nav_buttons", key: "buttons", icon: Ct }
1435
1449
  ];
1436
- function K(e, s) {
1437
- $e({ title: e, type: s });
1450
+ function $(e, s) {
1451
+ Ke({ title: e, type: s });
1438
1452
  }
1439
- function ps({
1453
+ function fs({
1440
1454
  editingSection: e,
1441
1455
  animPhase: s,
1442
1456
  showEditContent: n,
@@ -1445,7 +1459,7 @@ function ps({
1445
1459
  }) {
1446
1460
  const { t: r } = D(), { navigate: o } = Oe(), { data: d, isLoading: u } = De(), { data: f = [] } = st(), m = Ue(), p = at({
1447
1461
  // The theme saves through here too, and only a slug write moves the URL.
1448
- onSuccess: (x) => x.slug === void 0 ? void 0 : Ke(m)
1462
+ onSuccess: (x) => x.slug === void 0 ? void 0 : $e(m)
1449
1463
  }), [y, j] = i.useState(0), v = i.useCallback(() => j((x) => x + 1), []), [N, P] = i.useState(null), C = N ?? d?.theme_id ?? f.find((x) => x.name === "Default")?.id ?? f[0]?.id ?? null, M = f.find((x) => x.id === C)?.name ?? "Default", k = d?.mysite_url ?? "", R = k ? k.replace(/^https?:\/\//, "") : "", L = d?.mysite_views ?? 0, S = d?.mysite_leads ?? 0, I = i.useCallback(
1450
1464
  (x) => {
1451
1465
  if (x.id === C) return;
@@ -1454,10 +1468,10 @@ function ps({
1454
1468
  { theme_id: x.id },
1455
1469
  {
1456
1470
  onSuccess: () => {
1457
- K(r("theme_changed", { name: x.name }), "success"), v();
1471
+ $(r("theme_changed", { name: x.name }), "success"), v();
1458
1472
  },
1459
1473
  onError: () => {
1460
- P(z), K(r("theme_update_failed"), "error");
1474
+ P(z), $(r("theme_update_failed"), "error");
1461
1475
  }
1462
1476
  }
1463
1477
  );
@@ -1482,7 +1496,7 @@ function ps({
1482
1496
  });
1483
1497
  },
1484
1498
  [p]
1485
- ), $ = i.useCallback(() => {
1499
+ ), K = i.useCallback(() => {
1486
1500
  k && window.open(`${k}?preview=true`, "_blank");
1487
1501
  }, [k]), H = i.useMemo(() => e === "theme" ? r("nav_theme") : e === "buttons" ? r("nav_buttons") : e === "content" ? r("nav_content") : "", [e, r]);
1488
1502
  if (u)
@@ -1504,14 +1518,14 @@ function ps({
1504
1518
  /* @__PURE__ */ t.jsx("div", { className: "bg-background/50 h-[490px] w-[260px] animate-pulse rounded-[36px] sm:h-[600px] sm:w-[320px]" })
1505
1519
  ] }) })
1506
1520
  ] });
1507
- const A = Wt(s), J = Jt(s);
1521
+ const A = Qt(s), Q = Xt(s);
1508
1522
  return /* @__PURE__ */ t.jsxs("div", { className: "flex h-full flex-col overflow-y-auto px-2 py-6 2xl:flex-row 2xl:overflow-hidden", children: [
1509
1523
  /* @__PURE__ */ t.jsx(
1510
1524
  "div",
1511
1525
  {
1512
1526
  className: `w-full px-4 2xl:w-2/3 2xl:shrink-0 ${A}`,
1513
1527
  children: /* @__PURE__ */ t.jsx("div", { className: "flex min-w-0 flex-col gap-5 2xl:h-full 2xl:overflow-y-auto", children: n && e === "theme" ? /* @__PURE__ */ t.jsx(
1514
- ss,
1528
+ as,
1515
1529
  {
1516
1530
  themes: f,
1517
1531
  selectedThemeId: C,
@@ -1520,49 +1534,49 @@ function ps({
1520
1534
  onBack: l
1521
1535
  }
1522
1536
  ) : n && e === "buttons" ? /* @__PURE__ */ t.jsx(
1523
- os,
1537
+ ds,
1524
1538
  {
1525
1539
  onBack: l,
1526
1540
  onRefreshPreview: v,
1527
- onToast: K
1541
+ onToast: $
1528
1542
  }
1529
1543
  ) : n && e === "content" ? /* @__PURE__ */ t.jsx(
1530
- us,
1544
+ ms,
1531
1545
  {
1532
1546
  onBack: l,
1533
1547
  onRefreshPreview: v,
1534
- onToast: K
1548
+ onToast: $
1535
1549
  }
1536
1550
  ) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1537
1551
  /* @__PURE__ */ t.jsxs("div", { className: "flex items-center gap-2", children: [
1538
1552
  /* @__PURE__ */ t.jsx("h1", { className: "text-foreground text-xl font-bold", children: r("heading") }),
1539
1553
  s !== "idle" && H && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1540
- /* @__PURE__ */ t.jsx(de, { className: "text-muted-foreground size-4" }),
1554
+ /* @__PURE__ */ t.jsx(ce, { className: "text-muted-foreground size-4" }),
1541
1555
  /* @__PURE__ */ t.jsx("span", { className: "text-foreground text-xl font-bold", children: H })
1542
1556
  ] })
1543
1557
  ] }),
1544
- /* @__PURE__ */ t.jsx(Qt, { views: L, leads: S }),
1558
+ /* @__PURE__ */ t.jsx(Zt, { views: L, leads: S }),
1545
1559
  /* @__PURE__ */ t.jsx(
1546
- Zt,
1560
+ Jt,
1547
1561
  {
1548
1562
  mysiteUrl: k,
1549
1563
  displayUrl: R,
1550
1564
  onUpdateSlug: F,
1551
- onToast: K
1565
+ onToast: $
1552
1566
  }
1553
1567
  ),
1554
- /* @__PURE__ */ t.jsx("div", { className: "border-border bg-card divide-border divide-y overflow-hidden rounded-lg border", children: ms.map((x) => {
1555
- const z = x.icon, O = "group hover:bg-muted flex w-full items-center gap-2.5 px-3 py-2.5 transition-colors text-left cursor-pointer", Q = "slug" in x ? () => o(x.slug) : () => a(x.key);
1568
+ /* @__PURE__ */ t.jsx("div", { className: "border-border bg-card divide-border divide-y overflow-hidden rounded-lg border", children: ps.map((x) => {
1569
+ const z = x.icon, O = "group hover:bg-muted flex w-full items-center gap-2.5 px-3 py-2.5 transition-colors text-left cursor-pointer", X = "slug" in x ? () => o(x.slug) : () => a(x.key);
1556
1570
  return /* @__PURE__ */ t.jsxs(
1557
1571
  "button",
1558
1572
  {
1559
1573
  type: "button",
1560
- onClick: Q,
1574
+ onClick: X,
1561
1575
  className: O,
1562
1576
  children: [
1563
1577
  /* @__PURE__ */ t.jsx("div", { className: "bg-muted text-foreground flex size-7 shrink-0 items-center justify-center rounded-full", children: /* @__PURE__ */ t.jsx(z, { className: "size-3.5" }) }),
1564
1578
  /* @__PURE__ */ t.jsx("span", { className: "text-foreground flex-1 text-sm font-medium", children: r(x.labelKey) }),
1565
- /* @__PURE__ */ t.jsx(de, { className: "text-muted-foreground size-3 shrink-0 transition-transform group-hover:translate-x-0.5" })
1579
+ /* @__PURE__ */ t.jsx(ce, { className: "text-muted-foreground size-3 shrink-0 transition-transform group-hover:translate-x-0.5" })
1566
1580
  ]
1567
1581
  },
1568
1582
  x.labelKey
@@ -1574,22 +1588,22 @@ function ps({
1574
1588
  /* @__PURE__ */ t.jsx(
1575
1589
  "div",
1576
1590
  {
1577
- className: `w-full shrink-0 overflow-y-hidden px-4 pt-5 2xl:h-full 2xl:w-1/3 2xl:overflow-y-auto 2xl:pt-0 ${J}`,
1591
+ className: `w-full shrink-0 overflow-y-hidden px-4 pt-5 2xl:h-full 2xl:w-1/3 2xl:overflow-y-auto 2xl:pt-0 ${Q}`,
1578
1592
  children: /* @__PURE__ */ t.jsx(
1579
- Xt,
1593
+ es,
1580
1594
  {
1581
1595
  mysiteUrl: k,
1582
1596
  themeName: M,
1583
1597
  previewKey: y,
1584
1598
  isUpdating: p.isPending,
1585
- onPreview: $
1599
+ onPreview: K
1586
1600
  }
1587
1601
  )
1588
1602
  }
1589
1603
  )
1590
1604
  ] });
1591
1605
  }
1592
- function fs() {
1606
+ function hs() {
1593
1607
  const [e, s] = i.useState("idle"), [n, a] = i.useState(null), l = i.useRef([]);
1594
1608
  i.useEffect(() => {
1595
1609
  const m = l;
@@ -1629,7 +1643,7 @@ function fs() {
1629
1643
  handleBackClick: f
1630
1644
  };
1631
1645
  }
1632
- function hs({
1646
+ function xs({
1633
1647
  /* eslint-disable @typescript-eslint/no-unused-vars -- destructured to exclude from divProps spread */
1634
1648
  background: e,
1635
1649
  textColor: s,
@@ -1639,27 +1653,27 @@ function hs({
1639
1653
  /* eslint-enable @typescript-eslint/no-unused-vars */
1640
1654
  ...r
1641
1655
  }) {
1642
- return /* @__PURE__ */ t.jsx(Yt, { children: /* @__PURE__ */ t.jsx(xs, { ...r }) });
1656
+ return /* @__PURE__ */ t.jsx(Wt, { children: /* @__PURE__ */ t.jsx(gs, { ...r }) });
1643
1657
  }
1644
- function xs(e) {
1658
+ function gs(e) {
1645
1659
  const { t: s } = D(), {
1646
1660
  editingSection: n,
1647
1661
  animPhase: a,
1648
1662
  showEditContent: l,
1649
1663
  handleEditSection: r,
1650
1664
  handleBackClick: o
1651
- } = fs(), d = i.useMemo(() => n === "theme" ? s("nav_theme") : n === "buttons" ? s("nav_buttons") : n === "content" ? s("nav_content") : null, [n, s]), u = i.useCallback(
1665
+ } = hs(), d = i.useMemo(() => n === "theme" ? s("nav_theme") : n === "buttons" ? s("nav_buttons") : n === "content" ? s("nav_content") : null, [n, s]), u = i.useCallback(
1652
1666
  (f) => {
1653
1667
  f.preventDefault(), n !== null && o();
1654
1668
  },
1655
1669
  [n, o]
1656
1670
  );
1657
1671
  return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1658
- /* @__PURE__ */ t.jsx(He, { children: /* @__PURE__ */ t.jsx(ot, { children: /* @__PURE__ */ t.jsxs(dt, { className: "text-lg", children: [
1659
- /* @__PURE__ */ t.jsx(ce, { children: d ? /* @__PURE__ */ t.jsx(ct, { href: "#", onClick: u, children: "MySite" }) : /* @__PURE__ */ t.jsx(ue, { className: "font-semibold", children: "MySite" }) }),
1672
+ /* @__PURE__ */ t.jsx(He, { children: /* @__PURE__ */ t.jsx(dt, { children: /* @__PURE__ */ t.jsxs(ct, { className: "text-lg", children: [
1673
+ /* @__PURE__ */ t.jsx(me, { children: d ? /* @__PURE__ */ t.jsx(ut, { href: "#", onClick: u, children: "MySite" }) : /* @__PURE__ */ t.jsx(pe, { className: "font-semibold", children: "MySite" }) }),
1660
1674
  d && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1661
- /* @__PURE__ */ t.jsx(ut, {}),
1662
- /* @__PURE__ */ t.jsx(ce, { children: /* @__PURE__ */ t.jsx(ue, { className: "font-semibold", children: d }) })
1675
+ /* @__PURE__ */ t.jsx(mt, {}),
1676
+ /* @__PURE__ */ t.jsx(me, { children: /* @__PURE__ */ t.jsx(pe, { className: "font-semibold", children: d }) })
1663
1677
  ] })
1664
1678
  ] }) }) }),
1665
1679
  /* @__PURE__ */ t.jsx(
@@ -1668,7 +1682,7 @@ function xs(e) {
1668
1682
  ...e,
1669
1683
  className: `h-full min-h-0 flex-1 ${e.className ?? ""}`,
1670
1684
  children: /* @__PURE__ */ t.jsx(
1671
- ps,
1685
+ fs,
1672
1686
  {
1673
1687
  editingSection: n,
1674
1688
  animPhase: a,
@@ -1681,10 +1695,10 @@ function xs(e) {
1681
1695
  )
1682
1696
  ] });
1683
1697
  }
1684
- function Ps() {
1698
+ function Ds() {
1685
1699
  const { config: e } = qe(), { fetch: s } = Ve(), { baseUrl: n, defaultHeaders: a, onAuthError: l } = e, r = i.useMemo(
1686
- () => Ut(
1687
- wt({
1700
+ () => $t(
1701
+ Lt({
1688
1702
  baseUrl: n,
1689
1703
  fetch: s,
1690
1704
  defaultHeaders: a,
@@ -1693,13 +1707,13 @@ function Ps() {
1693
1707
  ),
1694
1708
  [n, a, l, s]
1695
1709
  );
1696
- return /* @__PURE__ */ t.jsx(rt, { value: r, children: /* @__PURE__ */ t.jsx(gs, {}) });
1710
+ return /* @__PURE__ */ t.jsx(it, { value: r, children: /* @__PURE__ */ t.jsx(bs, {}) });
1697
1711
  }
1698
- function gs() {
1712
+ function bs() {
1699
1713
  const { error: e } = De();
1700
1714
  if (e) throw e;
1701
- return /* @__PURE__ */ t.jsx(hs, {});
1715
+ return /* @__PURE__ */ t.jsx(xs, {});
1702
1716
  }
1703
1717
  export {
1704
- Ps as default
1718
+ Ds as default
1705
1719
  };