@fluid-app/fluid-cli-theme-dev 0.1.63 → 0.1.64

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 (137) hide show
  1. package/README.md +1 -1
  2. package/dist/dist-cli-preview/.vite/manifest.json +225 -225
  3. package/dist/dist-cli-preview/account-screens.js +1 -1
  4. package/dist/dist-cli-preview/chunks/{Breadcrumb-CZ-skiUy.js → Breadcrumb-BQKo8hPc.js} +1 -1
  5. package/dist/dist-cli-preview/chunks/{Combobox-BGiCYa56.js → Combobox-cf11L_T-.js} +4 -4
  6. package/dist/dist-cli-preview/chunks/{ContactsScreen-vsNgy_gn.js → ContactsScreen-gIiy4u7c.js} +1160 -1155
  7. package/dist/dist-cli-preview/chunks/{MemberManagementProviders-DMwkh3JW.js → MemberManagementProviders-C1bwc3tB.js} +258 -224
  8. package/dist/dist-cli-preview/chunks/{MessagingScreen-DzJOwPGH.js → MessagingScreen-B8ZxAE0L.js} +3904 -3927
  9. package/dist/dist-cli-preview/chunks/{MobileActionSheet-DqVPgFKI.js → MobileActionSheet-DMeTsLlK.js} +100 -100
  10. package/dist/dist-cli-preview/chunks/{MySiteScreen-BSmWlCKA.js → MySiteScreen-Dtw1rsF9.js} +69 -69
  11. package/dist/dist-cli-preview/chunks/OrdersScreen-C-b6i5jB.js +9 -0
  12. package/dist/dist-cli-preview/chunks/{OrdersScreen-CVEl9FnN.js → OrdersScreen-D9HfcTaa.js} +247 -249
  13. package/dist/dist-cli-preview/chunks/{ProfileScreen-BC5gyJDY.js → ProfileScreen-DwXozaLs.js} +1051 -965
  14. package/dist/dist-cli-preview/chunks/{SubscriptionsScreen-CFM4Pufg.js → SubscriptionsScreen-CIdYNpWT.js} +3 -3
  15. package/dist/dist-cli-preview/chunks/{account-screen-runtime-DxhJm6Qd.js → account-screen-runtime-DYMunv0A.js} +2482 -2407
  16. package/dist/dist-cli-preview/chunks/ar-DaN3xEy4.js +351 -0
  17. package/dist/dist-cli-preview/chunks/{arrow-left-UFKI-PQf.js → arrow-left-Bd7dJtIV.js} +1 -1
  18. package/dist/dist-cli-preview/chunks/bg-D3Np0de3.js +351 -0
  19. package/dist/dist-cli-preview/chunks/bn-BDSehnZ3.js +351 -0
  20. package/dist/dist-cli-preview/chunks/{cli-preview-DunPfnjU.js → cli-preview-BT_ARKjk.js} +13 -13
  21. package/dist/dist-cli-preview/chunks/{client.gen-CSTBgfxj.js → client.gen-Ck6Pm2jV.js} +246 -236
  22. package/dist/dist-cli-preview/chunks/contacts-ChSWj70z.js +4 -0
  23. package/dist/dist-cli-preview/chunks/{countries-api-adapter-B3usO25w.js → countries-api-adapter-lxSE748x.js} +2 -2
  24. package/dist/dist-cli-preview/chunks/{create-card-entry-container-DHgsbSyr.js → create-card-entry-container-D6kSC2Aw.js} +20726 -20509
  25. package/dist/dist-cli-preview/chunks/cs-CrmATj4L.js +351 -0
  26. package/dist/dist-cli-preview/chunks/da-CmJdErjd.js +351 -0
  27. package/dist/dist-cli-preview/chunks/de-C0KTNBZq.js +351 -0
  28. package/dist/dist-cli-preview/chunks/el-BOQs49GU.js +351 -0
  29. package/dist/dist-cli-preview/chunks/es-Dt3VSQPu.js +351 -0
  30. package/dist/dist-cli-preview/chunks/fi-B8UZ7eJL.js +351 -0
  31. package/dist/dist-cli-preview/chunks/fr-BomEiNL0.js +351 -0
  32. package/dist/dist-cli-preview/chunks/he-CfmnXjsr.js +351 -0
  33. package/dist/dist-cli-preview/chunks/{hey-api-client-DSvKWGPq.js → hey-api-client-DGRBsZ7Y.js} +3 -3
  34. package/dist/dist-cli-preview/chunks/hi-CTk5zGoJ.js +351 -0
  35. package/dist/dist-cli-preview/chunks/hr-DaNToqEm.js +351 -0
  36. package/dist/dist-cli-preview/chunks/hu-lcAuIwez.js +351 -0
  37. package/dist/dist-cli-preview/chunks/id-CEThcKZG.js +351 -0
  38. package/dist/dist-cli-preview/chunks/it-BCRCoDOg.js +351 -0
  39. package/dist/dist-cli-preview/chunks/ja-BIkFdIfq.js +351 -0
  40. package/dist/dist-cli-preview/chunks/ko-CD3bk6gv.js +351 -0
  41. package/dist/dist-cli-preview/chunks/{log-out-CBUq5Hd-.js → log-out-CSPZjXTK.js} +1 -1
  42. package/dist/dist-cli-preview/chunks/{map-pin-DHfjSyoR.js → map-pin-B2ScoijR.js} +1 -1
  43. package/dist/dist-cli-preview/chunks/messaging-Bq5UPkvG.js +4 -0
  44. package/dist/dist-cli-preview/chunks/{mount-account-screen-pc1VISwF.js → mount-account-screen-C_CdoGir.js} +2453 -2392
  45. package/dist/dist-cli-preview/chunks/ms-DI4mGa5X.js +351 -0
  46. package/dist/dist-cli-preview/chunks/mysite-DcpuKsuW.js +4 -0
  47. package/dist/dist-cli-preview/chunks/nl-B-XAD3Ra.js +351 -0
  48. package/dist/dist-cli-preview/chunks/no-C_NmYGbe.js +351 -0
  49. package/dist/dist-cli-preview/chunks/orders-B_57xKkq.js +4 -0
  50. package/dist/dist-cli-preview/chunks/pl-mQRzJZEW.js +351 -0
  51. package/dist/dist-cli-preview/chunks/{plus-C-lo0pFM.js → plus-CocoE5gC.js} +1 -1
  52. package/dist/dist-cli-preview/chunks/profile-BfM2KxKe.js +4 -0
  53. package/dist/dist-cli-preview/chunks/pt-BYMWPjog.js +351 -0
  54. package/dist/dist-cli-preview/chunks/ro-B98EuFQI.js +351 -0
  55. package/dist/dist-cli-preview/chunks/ru-DBO9IasC.js +351 -0
  56. package/dist/dist-cli-preview/chunks/schemas-D94nZk5x.js +5374 -0
  57. package/dist/dist-cli-preview/chunks/{screen-route-slug-utils-B254xI_J.js → screen-route-slug-utils-BDjSpDoe.js} +1 -1
  58. package/dist/dist-cli-preview/chunks/{sheet-haptics-context-D2WUiXJm.js → sheet-haptics-context-iOjKcNDj.js} +1 -1
  59. package/dist/dist-cli-preview/chunks/{sidebar-CMSWZCPS.js → sidebar-Ckzom4Xc.js} +12 -12
  60. package/dist/dist-cli-preview/chunks/sk-hRvNJfiN.js +351 -0
  61. package/dist/dist-cli-preview/chunks/{store-api-context-BIdILNWL.js → store-api-context-B96Ip2FB.js} +1 -1
  62. package/dist/dist-cli-preview/chunks/subscriptions-8VtIA4w9.js +4 -0
  63. package/dist/dist-cli-preview/chunks/sv-noYtTQbO.js +351 -0
  64. package/dist/dist-cli-preview/chunks/th-CJCAKsR-.js +351 -0
  65. package/dist/dist-cli-preview/chunks/tl-Bx8pJ7p7.js +351 -0
  66. package/dist/dist-cli-preview/chunks/tr-C4tCNiV7.js +351 -0
  67. package/dist/dist-cli-preview/chunks/{trash-2-Bq4IqH0j.js → trash-2-wVweQZMw.js} +4 -4
  68. package/dist/dist-cli-preview/chunks/uk-xFjXQDP3.js +351 -0
  69. package/dist/dist-cli-preview/chunks/{use-optional-store-Csor1Z3z.js → use-optional-store-lZUz976C.js} +2 -2
  70. package/dist/dist-cli-preview/chunks/use-store-DVmgsDXy.js +103 -0
  71. package/dist/dist-cli-preview/chunks/{useInfiniteQuery-BpFtQ7DH.js → useInfiniteQuery-Dtzov9uh.js} +1 -1
  72. package/dist/dist-cli-preview/chunks/{user-BGrQJ1GJ.js → user-B81IrSgp.js} +1 -1
  73. package/dist/dist-cli-preview/chunks/{users-DBL0isYy.js → users-BXTjoCUz.js} +1 -1
  74. package/dist/dist-cli-preview/chunks/vi-BAvhRTgb.js +351 -0
  75. package/dist/dist-cli-preview/chunks/zh_CN-Cyq9zeex.js +351 -0
  76. package/dist/dist-cli-preview/chunks/zh_TW-DFM5MhMA.js +351 -0
  77. package/dist/index.mjs +346 -32
  78. package/dist/index.mjs.map +1 -1
  79. package/dist/skills/themes-cart-feedback/SKILL.md +9 -14
  80. package/dist/skills/themes-review/SKILL.md +40 -34
  81. package/dist/skills/themes-review/references/blocks-vs-sections.md +2 -2
  82. package/dist/skills/themes-review/references/dead-code.md +1 -1
  83. package/dist/skills/themes-review/references/dynamism.md +9 -3
  84. package/dist/skills/themes-review/references/editor-attributes.md +25 -26
  85. package/dist/skills/themes-review/references/examples.md +3 -4
  86. package/dist/skills/themes-review/references/fairshare-attributes.md +5 -5
  87. package/dist/skills/themes-review/references/global-settings.md +56 -67
  88. package/dist/skills/themes-review/references/liquid-correctness.md +10 -15
  89. package/dist/skills/themes-review/references/media-tag.md +8 -7
  90. package/dist/skills/themes-review/references/navigation.md +18 -13
  91. package/dist/skills/themes-review/references/security-accessibility.md +11 -6
  92. package/dist/skills/themes-review/references/setting-types.md +136 -77
  93. package/dist/skills/themes-settings-schema/SKILL.md +15 -2
  94. package/package.json +2 -2
  95. package/dist/dist-cli-preview/chunks/OrdersScreen-d4fJE_dm.js +0 -9
  96. package/dist/dist-cli-preview/chunks/ar-B7NQmkZ1.js +0 -341
  97. package/dist/dist-cli-preview/chunks/bg-CxfL8rZN.js +0 -341
  98. package/dist/dist-cli-preview/chunks/bn-CdhHCK--.js +0 -341
  99. package/dist/dist-cli-preview/chunks/contacts-CpYlEgAq.js +0 -4
  100. package/dist/dist-cli-preview/chunks/cs-DTe-xGeI.js +0 -341
  101. package/dist/dist-cli-preview/chunks/da-B8Cl_vkl.js +0 -341
  102. package/dist/dist-cli-preview/chunks/de-D8cYy8G-.js +0 -341
  103. package/dist/dist-cli-preview/chunks/el-Chjin2JW.js +0 -341
  104. package/dist/dist-cli-preview/chunks/es-mp8RwFN4.js +0 -341
  105. package/dist/dist-cli-preview/chunks/fi-91gcpxoy.js +0 -341
  106. package/dist/dist-cli-preview/chunks/fr-ekvUCKTH.js +0 -341
  107. package/dist/dist-cli-preview/chunks/he-B7QiuquT.js +0 -341
  108. package/dist/dist-cli-preview/chunks/hi-DNNhi7ud.js +0 -341
  109. package/dist/dist-cli-preview/chunks/hr-CAwxMKX_.js +0 -341
  110. package/dist/dist-cli-preview/chunks/hu-D_oQwH4Q.js +0 -341
  111. package/dist/dist-cli-preview/chunks/id-oeAszBoo.js +0 -341
  112. package/dist/dist-cli-preview/chunks/isAfter-BUGgByEf.js +0 -1414
  113. package/dist/dist-cli-preview/chunks/it-Dme6GXSG.js +0 -341
  114. package/dist/dist-cli-preview/chunks/ja-CRnvQNCa.js +0 -341
  115. package/dist/dist-cli-preview/chunks/ko-8mk8A3_I.js +0 -341
  116. package/dist/dist-cli-preview/chunks/messaging-DkyH4CPP.js +0 -4
  117. package/dist/dist-cli-preview/chunks/ms-Bs0GvdOw.js +0 -341
  118. package/dist/dist-cli-preview/chunks/mysite-wvfITV7T.js +0 -4
  119. package/dist/dist-cli-preview/chunks/nl-tsI6lLxl.js +0 -341
  120. package/dist/dist-cli-preview/chunks/no-DMot6qX0.js +0 -341
  121. package/dist/dist-cli-preview/chunks/orders-c13r499A.js +0 -4
  122. package/dist/dist-cli-preview/chunks/pl-DmTxONNg.js +0 -341
  123. package/dist/dist-cli-preview/chunks/profile-CoWo9Sxe.js +0 -4
  124. package/dist/dist-cli-preview/chunks/pt-DgmwnAV-.js +0 -341
  125. package/dist/dist-cli-preview/chunks/ro-B4M17oRc.js +0 -341
  126. package/dist/dist-cli-preview/chunks/ru-BS2gZnbs.js +0 -341
  127. package/dist/dist-cli-preview/chunks/schemas-9_ZwC5nC.js +0 -3977
  128. package/dist/dist-cli-preview/chunks/sk-BdDjjHfn.js +0 -341
  129. package/dist/dist-cli-preview/chunks/subscriptions-BHALQrcU.js +0 -4
  130. package/dist/dist-cli-preview/chunks/sv-CW7FL5HA.js +0 -341
  131. package/dist/dist-cli-preview/chunks/th-BYBMKmSh.js +0 -341
  132. package/dist/dist-cli-preview/chunks/tl-CDigaLsK.js +0 -341
  133. package/dist/dist-cli-preview/chunks/tr-PxiurNCr.js +0 -341
  134. package/dist/dist-cli-preview/chunks/uk-B4aYnJ8t.js +0 -341
  135. package/dist/dist-cli-preview/chunks/vi-BoKSdzH3.js +0 -341
  136. package/dist/dist-cli-preview/chunks/zh_CN-DrCrXsZC.js +0 -341
  137. package/dist/dist-cli-preview/chunks/zh_TW-JmyC1W5K.js +0 -341
@@ -1,21 +1,21 @@
1
- import { O as re, l as c, W as se, j as t, M as L, a1 as B, ai as ne, B as D, am as ae, E as ie } from "./account-screen-runtime-DxhJm6Qd.js";
2
- import { a as le, c as oe, b as de, u as ce, I as ue, S as g } from "./sheet-haptics-context-D2WUiXJm.js";
3
- import { h as R, I as me, R as pe, m as xe, r as T, n as U, i as P, f as fe, p as ge } from "./MemberManagementProviders-DMwkh3JW.js";
4
- import { u as he, S as M } from "./useInfiniteQuery-BpFtQ7DH.js";
5
- import { B as K, a as Y, b as S, c as W, d as _e, e as be } from "./Breadcrumb-CZ-skiUy.js";
6
- import "./store-api-context-BIdILNWL.js";
7
- import { u as je } from "./use-optional-store-Csor1Z3z.js";
8
- const ye = {
1
+ import { U as de, l as u, X as ce, j as t, M as E, a2 as K, aA as ue, B as T, aE as me, E as pe } from "./account-screen-runtime-DYMunv0A.js";
2
+ import { a as xe, c as fe, b as ge, u as he, I as _e, S as g } from "./sheet-haptics-context-iOjKcNDj.js";
3
+ import { h as Y, j as be, I as je, R as ye, m as Ne, r as F, n as W, i as A, f as ve, p as we } from "./MemberManagementProviders-C1bwc3tB.js";
4
+ import { u as ke, S as q } from "./useInfiniteQuery-Dtzov9uh.js";
5
+ import { B as G, a as X, b as C, c as V, d as Se, e as Oe } from "./Breadcrumb-BQKo8hPc.js";
6
+ import "./store-api-context-B96Ip2FB.js";
7
+ import { u as De } from "./use-optional-store-lZUz976C.js";
8
+ const Ce = {
9
9
  all: ["orders"]
10
- }, O = {
10
+ }, L = {
11
11
  all: ["portalTenantOrders"],
12
- list: (e) => [...O.all, "list", e],
13
- detail: (e) => [...O.all, "detail", e]
12
+ list: (e) => [...L.all, "list", e],
13
+ detail: (e) => [...L.all, "detail", e]
14
14
  };
15
- function Ne(e, r) {
16
- const s = R();
17
- return he({
18
- queryKey: [...ye.all, "infinite-list", e],
15
+ function Le(e, r) {
16
+ const s = Y();
17
+ return ke({
18
+ queryKey: [...Ce.all, "infinite-list", e],
19
19
  queryFn: ({ pageParam: a }) => {
20
20
  if (!s.fetchCustomerOrders)
21
21
  throw new Error(
@@ -28,10 +28,10 @@ function Ne(e, r) {
28
28
  enabled: r?.enabled ?? !0
29
29
  });
30
30
  }
31
- function q(e, r) {
32
- const s = R();
33
- return re({
34
- queryKey: O.detail(e),
31
+ function H(e, r) {
32
+ const s = Y();
33
+ return de({
34
+ queryKey: L.detail(e),
35
35
  queryFn: () => {
36
36
  if (!s.fetchOrderById)
37
37
  throw new Error("fetchOrderById not implemented on this OrdersApi");
@@ -40,26 +40,26 @@ function q(e, r) {
40
40
  enabled: !!e
41
41
  });
42
42
  }
43
- function ve(e) {
43
+ function Te(e) {
44
44
  return e.order_total_after_points_redemption != null ? `${e.currency_symbol || "$"}${Number(
45
45
  e.order_total_after_points_redemption
46
46
  ).toFixed(2)}` : e.total_display_amount || `${e.currency_symbol || "$"}${Number(e.amount).toFixed(2)}`;
47
47
  }
48
- function we(e, r, s) {
48
+ function Pe(e, r, s) {
49
49
  if (!r.address1 || !r.city || !r.state || !r.postal_code)
50
50
  return null;
51
51
  const a = `${r.address1}, ${r.city}, ${r.state} ${r.postal_code.slice(0, 5)}`, n = encodeURIComponent(a), l = s?.width ?? 600, i = s?.height ?? 300, o = s?.zoom ?? 15, d = encodeURIComponent(s?.markerColor ?? "red");
52
52
  return `https://maps.googleapis.com/maps/api/staticmap?center=${n}&zoom=${o}&size=${l}x${i}&maptype=roadmap&markers=color:${d}%7C${n}&key=${e}`;
53
53
  }
54
- const $ = {
54
+ const z = {
55
55
  singular: "point",
56
56
  plural: "points"
57
57
  };
58
- function ke() {
59
- const { data: e } = je(), r = e?.reward_points_label_singular?.trim() || $.singular, s = e?.reward_points_label_plural?.trim() || $.plural;
60
- return c.useMemo(() => ({ singular: r, plural: s }), [r, s]);
58
+ function $e() {
59
+ const { data: e } = De(), r = e?.reward_points_label_singular?.trim() || z.singular, s = e?.reward_points_label_plural?.trim() || z.plural;
60
+ return u.useMemo(() => ({ singular: r, plural: s }), [r, s]);
61
61
  }
62
- const Se = {
62
+ const Ee = {
63
63
  breadcrumb: "Orders",
64
64
  breadcrumb_detail: "Order #{{id}}",
65
65
  search_orders: "Search orders...",
@@ -154,8 +154,8 @@ const Se = {
154
154
  track_package: "Track package",
155
155
  track_package_aria: "Track package {{number}}",
156
156
  track_package_aria_with_carrier: "Track {{carrier}} package {{number}}"
157
- }, Oe = le({
158
- fallback: Se,
157
+ }, Fe = xe({
158
+ fallback: Ee,
159
159
  loaders: {
160
160
  ar: () => import("./ar-8iaFSgop.js").then(
161
161
  (e) => e.default
@@ -261,39 +261,39 @@ const Se = {
261
261
  )
262
262
  }
263
263
  });
264
- function De(e, r) {
265
- return oe(e, r);
264
+ function Ae(e, r) {
265
+ return fe(e, r);
266
266
  }
267
- const { Provider: Ce, useTranslation: Le } = de("Orders"), Te = Ce, m = Le;
268
- function F({
267
+ const { Provider: ze, useTranslation: Ie } = ge("Orders"), Be = ze, m = Ie;
268
+ function I({
269
269
  children: e
270
270
  }) {
271
- const { locale: r } = se(), s = ce(Oe, r), a = c.useMemo(
272
- () => De(r, s),
271
+ const { locale: r } = ce(), s = he(Fe, r), a = u.useMemo(
272
+ () => Ae(r, s),
273
273
  [r, s]
274
274
  );
275
- return /* @__PURE__ */ t.jsx(Te, { value: a, children: e });
275
+ return /* @__PURE__ */ t.jsx(Be, { value: a, children: e });
276
276
  }
277
- const Pe = {
277
+ const Ue = {
278
278
  green: "bg-green-500/15 text-foreground",
279
279
  yellow: "bg-yellow-500/15 text-foreground",
280
280
  red: "bg-red-500/15 text-foreground",
281
281
  blue: "bg-blue-500/15 text-foreground",
282
282
  orange: "bg-orange-500/15 text-foreground",
283
283
  gray: "bg-foreground/10 text-foreground"
284
- }, $e = {
284
+ }, Me = {
285
285
  green: "bg-green-500",
286
286
  yellow: "bg-yellow-500",
287
287
  red: "bg-red-500",
288
288
  blue: "bg-blue-500",
289
289
  orange: "bg-orange-500",
290
290
  gray: "bg-gray-500"
291
- }, Fe = {
291
+ }, Re = {
292
292
  xs: "px-1.5 py-0.5 text-[10px]",
293
293
  sm: "px-2 py-0.5 text-xs",
294
294
  md: "px-2.5 py-1 text-sm"
295
295
  };
296
- function Ee({
296
+ function Ke({
297
297
  color: e,
298
298
  dot: r,
299
299
  size: s = "md",
@@ -303,17 +303,17 @@ function Ee({
303
303
  return /* @__PURE__ */ t.jsxs(
304
304
  "span",
305
305
  {
306
- className: L(
306
+ className: E(
307
307
  "inline-flex items-center gap-1 rounded-full font-medium whitespace-nowrap capitalize",
308
- Pe[e],
309
- Fe[s],
308
+ Ue[e],
309
+ Re[s],
310
310
  a
311
311
  ),
312
312
  children: [
313
313
  r && /* @__PURE__ */ t.jsx(
314
314
  "span",
315
315
  {
316
- className: L("h-1.5 w-1.5 rounded-full", $e[e])
316
+ className: E("h-1.5 w-1.5 rounded-full", Me[e])
317
317
  }
318
318
  ),
319
319
  n
@@ -321,13 +321,13 @@ function Ee({
321
321
  }
322
322
  );
323
323
  }
324
- function ze(e) {
324
+ function Ye(e) {
325
325
  return e ? e.replace(/_/g, " ").replace(/\b\w/g, (r) => r.toUpperCase()) : "";
326
326
  }
327
- function E(e) {
327
+ function B(e) {
328
328
  return e.charAt(0).toUpperCase() + e.slice(1);
329
329
  }
330
- const Ae = /* @__PURE__ */ new Set([
330
+ const We = /* @__PURE__ */ new Set([
331
331
  "cancelled",
332
332
  "completed",
333
333
  "fulfilled",
@@ -338,14 +338,14 @@ const Ae = /* @__PURE__ */ new Set([
338
338
  "returned",
339
339
  "shipped"
340
340
  ]);
341
- function Ie(e, r) {
341
+ function qe(e, r) {
342
342
  const s = r.toLowerCase();
343
- return Ae.has(s) ? e(`status_${s}`) : ze(r);
343
+ return We.has(s) ? e(`status_${s}`) : Ye(r);
344
344
  }
345
- function Be(e) {
345
+ function Ge(e) {
346
346
  return e.sale_date ?? e.created_at;
347
347
  }
348
- const Re = {
348
+ const Xe = {
349
349
  fulfilled: "gray",
350
350
  unfulfilled: "yellow",
351
351
  in_progress: "yellow",
@@ -355,47 +355,47 @@ const Re = {
355
355
  // `processing` is not a fulfillment_status enum value but the BFF /
356
356
  // legacy responses can surface it; admin colors it yellow, so we match.
357
357
  processing: "yellow"
358
- }, G = {
358
+ }, Q = {
359
359
  cancelled: "red",
360
360
  returned: "red",
361
361
  refunded: "red"
362
362
  };
363
- function Ue(e) {
363
+ function Ve(e) {
364
364
  return e.includes("fulfilled") || e.includes("complete") ? "gray" : e.includes("hold") ? "orange" : "yellow";
365
365
  }
366
- const Me = new Set(Object.keys(G)), z = "refunded";
367
- function V(e, r, s) {
368
- return e && Me.has(e.toLowerCase()) ? e : s?.toLowerCase() === z ? z : r ?? e ?? "";
366
+ const He = new Set(Object.keys(Q)), U = "refunded";
367
+ function J(e, r, s) {
368
+ return e && He.has(e.toLowerCase()) ? e : s?.toLowerCase() === U ? U : r ?? e ?? "";
369
369
  }
370
- function Ke(e) {
370
+ function Qe(e) {
371
371
  if (!e) return "gray";
372
372
  const r = e.toLowerCase();
373
- return Re[r] ?? G[r] ?? Ue(r);
373
+ return Xe[r] ?? Q[r] ?? Ve(r);
374
374
  }
375
- function X({
375
+ function Z({
376
376
  status: e,
377
377
  className: r
378
378
  }) {
379
379
  const { t: s } = m();
380
380
  return /* @__PURE__ */ t.jsx(
381
- Ee,
381
+ Ke,
382
382
  {
383
- color: Ke(e),
383
+ color: Qe(e),
384
384
  dot: !0,
385
385
  size: "sm",
386
386
  className: r,
387
- children: Ie(s, e)
387
+ children: qe(s, e)
388
388
  }
389
389
  );
390
390
  }
391
- function Ye({
391
+ function Je({
392
392
  apiKey: e,
393
393
  address: r,
394
394
  options: s,
395
395
  alt: a,
396
396
  className: n
397
397
  }) {
398
- const { t: l } = m(), [i, o] = c.useState(!1), d = we(e, r, s);
398
+ const { t: l } = m(), [i, o] = u.useState(!1), d = Pe(e, r, s);
399
399
  return !d || i ? null : /* @__PURE__ */ t.jsx(
400
400
  "img",
401
401
  {
@@ -408,7 +408,7 @@ function Ye({
408
408
  }
409
409
  );
410
410
  }
411
- const We = {
411
+ const Ze = {
412
412
  fulfilled: "fulfilled",
413
413
  // `completed` is an order_status lifecycle value kept as a defensive
414
414
  // alias so an order whose BFF response is missing `fulfillment_status`
@@ -427,11 +427,11 @@ const We = {
427
427
  unfulfilled: "pending",
428
428
  processing: "pending"
429
429
  };
430
- function qe(e) {
431
- return We[(e || "").toLowerCase()] ?? "pending";
430
+ function et(e) {
431
+ return Ze[(e || "").toLowerCase()] ?? "pending";
432
432
  }
433
- function H(e) {
434
- return V(
433
+ function ee(e) {
434
+ return J(
435
435
  e.order_status,
436
436
  e.fulfillment_status,
437
437
  e.financial_status
@@ -440,10 +440,10 @@ function H(e) {
440
440
  function y(e, r) {
441
441
  if (e === "all") return !0;
442
442
  if (e === "subscription") return r.subscription != null;
443
- const s = qe(H(r));
443
+ const s = et(ee(r));
444
444
  return e === "fulfilled" ? s === "fulfilled" || s === "shipped" : e === "preparing" ? s === "preparing" || s === "pending" : !0;
445
445
  }
446
- function Ge(e) {
446
+ function tt(e) {
447
447
  return {
448
448
  all: e.length,
449
449
  fulfilled: e.filter((r) => y("fulfilled", r)).length,
@@ -451,10 +451,10 @@ function Ge(e) {
451
451
  subscription: e.filter((r) => y("subscription", r)).length
452
452
  };
453
453
  }
454
- function Q(e) {
454
+ function te(e) {
455
455
  return e.sale_date ?? e.created_at;
456
456
  }
457
- function Ve(e, r, s = /* @__PURE__ */ new Date()) {
457
+ function rt(e, r, s = /* @__PURE__ */ new Date()) {
458
458
  if (e.length === 0) return [];
459
459
  const a = new Date(
460
460
  s.getFullYear(),
@@ -463,24 +463,24 @@ function Ve(e, r, s = /* @__PURE__ */ new Date()) {
463
463
  ), n = new Date(a);
464
464
  n.setDate(n.getDate() - 7);
465
465
  const l = new Date(s.getFullYear(), s.getMonth(), 1), i = new Date(s.getFullYear(), 0, 1), o = /* @__PURE__ */ new Map(), d = [];
466
- for (const u of e) {
467
- const h = new Date(Q(u));
468
- let x;
469
- h >= n ? x = r("group_this_week") : h >= l ? x = r("group_this_month") : h >= i ? x = h.toLocaleDateString(void 0, {
466
+ for (const c of e) {
467
+ const h = new Date(te(c));
468
+ let p;
469
+ h >= n ? p = r("group_this_week") : h >= l ? p = r("group_this_month") : h >= i ? p = h.toLocaleDateString(void 0, {
470
470
  month: "long"
471
- }) : x = h.toLocaleDateString(void 0, {
471
+ }) : p = h.toLocaleDateString(void 0, {
472
472
  month: "long",
473
473
  year: "numeric"
474
474
  });
475
- let _ = o.get(x);
476
- _ || (_ = [], o.set(x, _), d.push(x)), _.push(u);
475
+ let _ = o.get(p);
476
+ _ || (_ = [], o.set(p, _), d.push(p)), _.push(c);
477
477
  }
478
- return d.map((u) => ({
479
- label: u,
480
- orders: o.get(u) ?? []
478
+ return d.map((c) => ({
479
+ label: c,
480
+ orders: o.get(c) ?? []
481
481
  }));
482
482
  }
483
- function Xe(e, r, s = /* @__PURE__ */ new Date()) {
483
+ function st(e, r, s = /* @__PURE__ */ new Date()) {
484
484
  try {
485
485
  const a = new Date(e), n = new Date(
486
486
  s.getFullYear(),
@@ -501,7 +501,7 @@ function Xe(e, r, s = /* @__PURE__ */ new Date()) {
501
501
  return "";
502
502
  }
503
503
  }
504
- function He(e, r) {
504
+ function nt(e, r) {
505
505
  return e === 0 ? {
506
506
  left: "50%",
507
507
  transform: "translateX(-50%)",
@@ -516,52 +516,54 @@ function He(e, r) {
516
516
  zIndex: 10
517
517
  };
518
518
  }
519
- function Qe({
519
+ const at = 10;
520
+ function it({
520
521
  customerId: e,
521
522
  onOrderClick: r,
522
523
  t: s
523
524
  }) {
524
- const { t: a } = m(), n = s ?? a, [l, i] = c.useState(""), [o, d] = c.useState("all"), {
525
- data: u,
526
- isLoading: h,
527
- isError: x,
528
- refetch: _,
529
- fetchNextPage: J,
530
- hasNextPage: Z,
531
- isFetchingNextPage: C
532
- } = Ne(
525
+ const { t: a } = m(), n = s ?? a, [l, i] = u.useState(""), [o, d] = u.useState("all"), [c, h] = u.useState(), [p, _] = u.useState(!1), N = c && !p && o !== "all" ? o : void 0, {
526
+ data: v,
527
+ isLoading: re,
528
+ isError: se,
529
+ error: ne,
530
+ refetch: ae,
531
+ fetchNextPage: ie,
532
+ hasNextPage: le,
533
+ isFetchingNextPage: P
534
+ } = Le(
533
535
  {
534
536
  customerId: e,
535
- limit: 10,
537
+ limit: at,
536
538
  search: l || void 0,
537
- sort: "-created_at"
539
+ sort: "-created_at",
540
+ status: N
538
541
  },
539
542
  { enabled: !!e }
540
- ), b = c.useMemo(
541
- () => u?.pages.flatMap((f) => f.orders) ?? [],
542
- [u]
543
- ), ee = c.useMemo(() => Ge(b), [b]), N = c.useMemo(
544
- () => b.filter((f) => y(o, f)),
545
- [b, o]
546
- ), te = c.useMemo(
547
- () => Ve(N, n),
548
- [N, n]
549
- );
543
+ ), b = u.useMemo(
544
+ () => v?.pages.flatMap((f) => f.orders) ?? [],
545
+ [v]
546
+ ), w = v?.pages[0]?.counts;
547
+ w && w !== c && h(w), be(ne) && !p && _(!0);
548
+ const $ = c ?? tt(b), k = u.useMemo(
549
+ () => N ? b : b.filter((f) => y(o, f)),
550
+ [N, b, o]
551
+ ), oe = u.useMemo(() => rt(k, n), [k, n]);
550
552
  return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
551
- /* @__PURE__ */ t.jsx(B, { children: /* @__PURE__ */ t.jsx(K, { children: /* @__PURE__ */ t.jsx(Y, { className: "text-lg", children: /* @__PURE__ */ t.jsx(S, { children: /* @__PURE__ */ t.jsx(W, { className: "font-semibold", children: n("order_history") }) }) }) }) }),
553
+ /* @__PURE__ */ t.jsx(K, { children: /* @__PURE__ */ t.jsx(G, { children: /* @__PURE__ */ t.jsx(X, { className: "text-lg", children: /* @__PURE__ */ t.jsx(C, { children: /* @__PURE__ */ t.jsx(V, { className: "font-semibold", children: n("order_history") }) }) }) }) }),
552
554
  /* @__PURE__ */ t.jsx("div", { className: "relative", children: /* @__PURE__ */ t.jsxs("div", { className: "relative mx-auto max-w-4xl px-5 pt-8 pb-20 md:px-8", children: [
553
555
  /* @__PURE__ */ t.jsxs("div", { className: "flex items-center gap-3", children: [
554
556
  /* @__PURE__ */ t.jsx("h1", { className: "text-foreground flex-1 truncate text-xl font-bold tracking-tight md:text-2xl", children: n("order_history") }),
555
557
  /* @__PURE__ */ t.jsxs("div", { className: "relative hidden sm:block", children: [
556
558
  /* @__PURE__ */ t.jsx(
557
- M,
559
+ q,
558
560
  {
559
561
  className: "text-muted-foreground pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2",
560
562
  strokeWidth: 2
561
563
  }
562
564
  ),
563
565
  /* @__PURE__ */ t.jsx(
564
- ue,
566
+ _e,
565
567
  {
566
568
  value: l,
567
569
  onChange: (f) => i(f.target.value),
@@ -571,53 +573,53 @@ function Qe({
571
573
  )
572
574
  ] })
573
575
  ] }),
574
- b.length > 0 && /* @__PURE__ */ t.jsx(
575
- Ze,
576
+ ($.all > 0 || o !== "all") && /* @__PURE__ */ t.jsx(
577
+ ot,
576
578
  {
577
579
  active: o,
578
- counts: ee,
580
+ counts: $,
579
581
  onChange: d,
580
582
  t: n
581
583
  }
582
584
  ),
583
- h ? /* @__PURE__ */ t.jsx("div", { className: "ring-border mt-4 overflow-hidden rounded-2xl bg-transparent ring-1", children: /* @__PURE__ */ t.jsx(rt, {}) }) : x ? /* @__PURE__ */ t.jsx("div", { className: "ring-border mt-4 overflow-hidden rounded-2xl bg-transparent ring-1", children: /* @__PURE__ */ t.jsx(nt, { onRetry: () => _(), t: n }) }) : N.length === 0 ? /* @__PURE__ */ t.jsx("div", { className: "ring-border mt-4 overflow-hidden rounded-2xl bg-transparent ring-1", children: /* @__PURE__ */ t.jsx(st, { searching: !!l || o !== "all", t: n }) }) : /* @__PURE__ */ t.jsx("div", { className: "mt-4 space-y-6", children: te.map((f) => /* @__PURE__ */ t.jsxs("div", { children: [
585
+ re ? /* @__PURE__ */ t.jsx("div", { className: "ring-border mt-4 overflow-hidden rounded-2xl bg-transparent ring-1", children: /* @__PURE__ */ t.jsx(ut, {}) }) : se ? /* @__PURE__ */ t.jsx("div", { className: "ring-border mt-4 overflow-hidden rounded-2xl bg-transparent ring-1", children: /* @__PURE__ */ t.jsx(pt, { onRetry: () => ae(), t: n }) }) : k.length === 0 ? /* @__PURE__ */ t.jsx("div", { className: "ring-border mt-4 overflow-hidden rounded-2xl bg-transparent ring-1", children: /* @__PURE__ */ t.jsx(mt, { searching: !!l || o !== "all", t: n }) }) : /* @__PURE__ */ t.jsx("div", { className: "mt-4 space-y-6", children: oe.map((f) => /* @__PURE__ */ t.jsxs("div", { children: [
584
586
  /* @__PURE__ */ t.jsx("div", { className: "text-muted-foreground mb-2 px-1 text-xs font-semibold", children: f.label }),
585
- /* @__PURE__ */ t.jsx("div", { className: "space-y-3", children: f.orders.map((v) => /* @__PURE__ */ t.jsx(
586
- et,
587
+ /* @__PURE__ */ t.jsx("div", { className: "space-y-3", children: f.orders.map((S) => /* @__PURE__ */ t.jsx(
588
+ dt,
587
589
  {
588
- order: v,
589
- onClick: () => r(v),
590
+ order: S,
591
+ onClick: () => r(S),
590
592
  t: n
591
593
  },
592
- v.id
594
+ S.id
593
595
  )) })
594
596
  ] }, f.label)) }),
595
- Z && /* @__PURE__ */ t.jsx("div", { className: "mt-3 flex justify-center", children: /* @__PURE__ */ t.jsx(
597
+ le && /* @__PURE__ */ t.jsx("div", { className: "mt-3 flex justify-center", children: /* @__PURE__ */ t.jsx(
596
598
  "button",
597
599
  {
598
600
  type: "button",
599
- onClick: () => J(),
600
- disabled: C,
601
+ onClick: () => ie(),
602
+ disabled: P,
601
603
  className: "ring-border text-foreground hover:bg-muted inline-flex items-center gap-1 rounded-md bg-transparent px-3 py-1.5 text-xs font-bold ring-1 transition-all disabled:cursor-not-allowed disabled:opacity-40",
602
- children: n(C ? "loading" : "load_more")
604
+ children: n(P ? "loading" : "load_more")
603
605
  }
604
606
  ) })
605
607
  ] }) })
606
608
  ] });
607
609
  }
608
- const Je = [
610
+ const lt = [
609
611
  { key: "all", labelKey: "filter_all" },
610
612
  { key: "fulfilled", labelKey: "filter_fulfilled" },
611
613
  { key: "preparing", labelKey: "filter_preparing" },
612
614
  { key: "subscription", labelKey: "filter_subscription" }
613
615
  ];
614
- function Ze({
616
+ function ot({
615
617
  active: e,
616
618
  counts: r,
617
619
  onChange: s,
618
620
  t: a
619
621
  }) {
620
- return /* @__PURE__ */ t.jsx("div", { className: "-mx-1 mt-5 flex flex-wrap gap-1.5 px-1", children: Je.map((n) => {
622
+ return /* @__PURE__ */ t.jsx("div", { className: "-mx-1 mt-5 flex flex-wrap gap-1.5 px-1", children: lt.map((n) => {
621
623
  const l = n.key === e, i = r[n.key];
622
624
  return /* @__PURE__ */ t.jsxs(
623
625
  "button",
@@ -640,12 +642,12 @@ function Ze({
640
642
  );
641
643
  }) });
642
644
  }
643
- function et({
645
+ function dt({
644
646
  order: e,
645
647
  onClick: r,
646
648
  t: s
647
649
  }) {
648
- const a = Xe(Q(e), s), n = ve(e), l = e.first_item?.title || `${s("order_number")}${e.order_number}`, i = e.items_count > 1 ? s("more_items", { n: e.items_count - 1 }) : "";
650
+ const a = st(te(e), s), n = Te(e), l = e.first_item?.title || `${s("order_number")}${e.order_number}`, i = e.items_count > 1 ? s("more_items", { n: e.items_count - 1 }) : "";
649
651
  return /* @__PURE__ */ t.jsxs(
650
652
  "button",
651
653
  {
@@ -663,7 +665,7 @@ function et({
663
665
  l,
664
666
  i && /* @__PURE__ */ t.jsx("span", { className: "text-muted-foreground font-medium", children: i })
665
667
  ] }),
666
- /* @__PURE__ */ t.jsx(X, { status: H(e) })
668
+ /* @__PURE__ */ t.jsx(Z, { status: ee(e) })
667
669
  ] }),
668
670
  /* @__PURE__ */ t.jsxs("div", { className: "text-muted-foreground mt-1 truncate text-xs", children: [
669
671
  a,
@@ -672,7 +674,7 @@ function et({
672
674
  ] })
673
675
  ] }),
674
676
  /* @__PURE__ */ t.jsx(
675
- tt,
677
+ ct,
676
678
  {
677
679
  fallback: e.first_item,
678
680
  urls: e.thumbnail_image_urls,
@@ -684,7 +686,7 @@ function et({
684
686
  }
685
687
  );
686
688
  }
687
- function tt({
689
+ function ct({
688
690
  urls: e,
689
691
  fallback: r,
690
692
  isSubscription: s,
@@ -693,8 +695,8 @@ function tt({
693
695
  const n = (e && e.length > 0 ? e : r?.image_url ? [r.image_url] : []).slice(0, 3);
694
696
  if (n.length === 0)
695
697
  return /* @__PURE__ */ t.jsxs("div", { className: "ring-border bg-muted text-muted-foreground relative flex size-12 shrink-0 items-center justify-center rounded-xl ring-1", children: [
696
- /* @__PURE__ */ t.jsx(me, { className: "size-5", strokeWidth: 1.75 }),
697
- s && /* @__PURE__ */ t.jsx(w, { t: a })
698
+ /* @__PURE__ */ t.jsx(je, { className: "size-5", strokeWidth: 1.75 }),
699
+ s && /* @__PURE__ */ t.jsx(O, { t: a })
698
700
  ] });
699
701
  if (n.length === 1)
700
702
  return /* @__PURE__ */ t.jsxs("div", { className: "relative size-12 shrink-0", children: [
@@ -706,7 +708,7 @@ function tt({
706
708
  className: "ring-background size-12 rounded-xl bg-transparent object-cover ring-[3px]"
707
709
  }
708
710
  ),
709
- s && /* @__PURE__ */ t.jsx(w, { t: a })
711
+ s && /* @__PURE__ */ t.jsx(O, { t: a })
710
712
  ] });
711
713
  const l = n.length === 3 ? "w-[80px]" : "w-[60px]";
712
714
  return /* @__PURE__ */ t.jsxs("div", { className: `relative h-12 ${l} shrink-0`, children: [
@@ -716,24 +718,24 @@ function tt({
716
718
  src: i,
717
719
  alt: "",
718
720
  className: "ring-background absolute top-0 size-12 rounded-xl bg-transparent object-cover ring-[3px]",
719
- style: He(o, n.length)
721
+ style: nt(o, n.length)
720
722
  },
721
723
  `${i}-${o}`
722
724
  )),
723
- s && /* @__PURE__ */ t.jsx(w, { t: a })
725
+ s && /* @__PURE__ */ t.jsx(O, { t: a })
724
726
  ] });
725
727
  }
726
- function w({ t: e }) {
728
+ function O({ t: e }) {
727
729
  return /* @__PURE__ */ t.jsx(
728
730
  "div",
729
731
  {
730
732
  className: "bg-primary text-primary-foreground ring-background absolute -top-1 -right-1 z-40 flex size-5 items-center justify-center rounded-full ring-2",
731
733
  title: e("from_subscription"),
732
- children: /* @__PURE__ */ t.jsx(pe, { className: "size-2.5", strokeWidth: 2.75 })
734
+ children: /* @__PURE__ */ t.jsx(ye, { className: "size-2.5", strokeWidth: 2.75 })
733
735
  }
734
736
  );
735
737
  }
736
- function rt() {
738
+ function ut() {
737
739
  return /* @__PURE__ */ t.jsx(t.Fragment, { children: Array(4).fill(0).map((e, r) => /* @__PURE__ */ t.jsxs(
738
740
  "div",
739
741
  {
@@ -749,22 +751,22 @@ function rt() {
749
751
  r
750
752
  )) });
751
753
  }
752
- function st({
754
+ function mt({
753
755
  searching: e,
754
756
  t: r
755
757
  }) {
756
758
  return /* @__PURE__ */ t.jsxs("div", { className: "flex flex-col items-center gap-2 px-4 py-12 text-center", children: [
757
- /* @__PURE__ */ t.jsx("div", { className: "bg-muted flex size-12 items-center justify-center rounded-full", children: /* @__PURE__ */ t.jsx(M, { className: "text-muted-foreground size-5", strokeWidth: 2 }) }),
759
+ /* @__PURE__ */ t.jsx("div", { className: "bg-muted flex size-12 items-center justify-center rounded-full", children: /* @__PURE__ */ t.jsx(q, { className: "text-muted-foreground size-5", strokeWidth: 2 }) }),
758
760
  /* @__PURE__ */ t.jsx("div", { className: "text-foreground text-sm font-bold", children: r(e ? "no_matching_orders" : "no_orders_yet") }),
759
761
  /* @__PURE__ */ t.jsx("div", { className: "text-muted-foreground max-w-sm text-xs", children: r(e ? "search_hint" : "empty_hint") })
760
762
  ] });
761
763
  }
762
- function nt({
764
+ function pt({
763
765
  onRetry: e,
764
766
  t: r
765
767
  }) {
766
768
  return /* @__PURE__ */ t.jsxs("div", { className: "flex flex-col items-center gap-2 px-4 py-12 text-center", children: [
767
- /* @__PURE__ */ t.jsx("div", { className: "bg-muted flex size-12 items-center justify-center rounded-full", children: /* @__PURE__ */ t.jsx(ne, { className: "text-muted-foreground size-5", strokeWidth: 2 }) }),
769
+ /* @__PURE__ */ t.jsx("div", { className: "bg-muted flex size-12 items-center justify-center rounded-full", children: /* @__PURE__ */ t.jsx(ue, { className: "text-muted-foreground size-5", strokeWidth: 2 }) }),
768
770
  /* @__PURE__ */ t.jsx("div", { className: "text-foreground text-sm font-bold", children: r("load_failed_title") }),
769
771
  /* @__PURE__ */ t.jsx("div", { className: "text-muted-foreground max-w-sm text-xs", children: r("load_failed_hint") }),
770
772
  /* @__PURE__ */ t.jsx(
@@ -778,21 +780,21 @@ function nt({
778
780
  )
779
781
  ] });
780
782
  }
781
- const at = 1;
782
- function it() {
783
- const { navigate: e } = D(), { t: r } = m(), s = (a) => {
783
+ const xt = 1;
784
+ function ft() {
785
+ const { navigate: e } = T(), { t: r } = m(), s = (a) => {
784
786
  e(`orders/${a.token}`);
785
787
  };
786
788
  return /* @__PURE__ */ t.jsx(
787
- Qe,
789
+ it,
788
790
  {
789
- customerId: at,
791
+ customerId: xt,
790
792
  onOrderClick: s,
791
793
  t: r
792
794
  }
793
795
  );
794
796
  }
795
- const A = {
797
+ const M = {
796
798
  display: "inline-flex",
797
799
  minHeight: "1.5rem",
798
800
  alignItems: "center",
@@ -802,48 +804,48 @@ const A = {
802
804
  // spaces) wrap instead of overflowing a narrow column. Inert for the
803
805
  // masked-segments path, whose children are spans rather than text.
804
806
  overflowWrap: "anywhere"
805
- }, lt = {
807
+ }, gt = {
806
808
  display: "inline-flex",
807
809
  alignItems: "center",
808
810
  // Wrap onto a new line in narrow containers (e.g. the checkout
809
811
  // order-confirmation grid) instead of overflowing the box.
810
812
  flexWrap: "wrap",
811
813
  rowGap: "0.25rem"
812
- }, ot = {
814
+ }, ht = {
813
815
  display: "inline-flex",
814
816
  alignItems: "center",
815
817
  gap: "0.375rem",
816
818
  // Let a single group's dots wrap too, so one atomic group can never
817
819
  // overflow an extremely narrow container.
818
820
  flexWrap: "wrap"
819
- }, dt = {
821
+ }, _t = {
820
822
  display: "block",
821
823
  width: "0.375rem",
822
824
  height: "0.375rem",
823
825
  borderRadius: "9999px",
824
826
  backgroundColor: "currentColor"
825
- }, ct = {
827
+ }, bt = {
826
828
  marginLeft: "0.125rem"
827
- }, ut = "0.75rem";
828
- function mt({
829
+ }, jt = "0.75rem";
830
+ function yt({
829
831
  label: e,
830
832
  className: r
831
833
  }) {
832
- const s = xe(e);
833
- return s ? /* @__PURE__ */ t.jsx("p", { className: r, style: A, "aria-label": e, children: /* @__PURE__ */ t.jsx("span", { "aria-hidden": "true", style: lt, children: s.map((a, n) => {
834
+ const s = Ne(e);
835
+ return s ? /* @__PURE__ */ t.jsx("p", { className: r, style: M, "aria-label": e, children: /* @__PURE__ */ t.jsx("span", { "aria-hidden": "true", style: gt, children: s.map((a, n) => {
834
836
  if (a.kind === "gap") return null;
835
- const l = s[n + 1]?.kind === "gap" ? { marginInlineEnd: ut } : null;
837
+ const l = s[n + 1]?.kind === "gap" ? { marginInlineEnd: jt } : null;
836
838
  if (a.kind === "dots")
837
839
  return /* @__PURE__ */ t.jsx(
838
840
  "span",
839
841
  {
840
- style: { ...ot, ...l },
841
- children: Array.from({ length: a.count }, (o, d) => /* @__PURE__ */ t.jsx("span", { style: dt }, d))
842
+ style: { ...ht, ...l },
843
+ children: Array.from({ length: a.count }, (o, d) => /* @__PURE__ */ t.jsx("span", { style: _t }, d))
842
844
  },
843
845
  `${a.kind}-${n}`
844
846
  );
845
847
  const i = {
846
- ...s[n - 1]?.kind === "dots" ? ct : null,
848
+ ...s[n - 1]?.kind === "dots" ? bt : null,
847
849
  ...l
848
850
  };
849
851
  return /* @__PURE__ */ t.jsx(
@@ -854,31 +856,35 @@ function mt({
854
856
  },
855
857
  `${a.kind}-${n}`
856
858
  );
857
- }) }) }) : /* @__PURE__ */ t.jsx("p", { className: r, style: A, children: e });
859
+ }) }) }) : /* @__PURE__ */ t.jsx("p", { className: r, style: M, children: e });
858
860
  }
859
- function pt(e) {
860
- return e.last4 != null || fe(e.card_network) != null || U(e.card_network) != null || P(e.source) || P(e.payment_type);
861
+ function Nt(e) {
862
+ return e.last4 != null || ve(e.card_network) != null || W(e.card_network) != null || A(e.source) || A(e.payment_type);
861
863
  }
862
- function xt(e) {
863
- return ge(e.payment_type, e.source) ?? "Payment method";
864
+ function vt(e) {
865
+ return we(
866
+ e.payment_title,
867
+ e.payment_type,
868
+ e.source
869
+ ) ?? "Payment method";
864
870
  }
865
- function ft(e) {
866
- if (pt(e))
867
- return T({
871
+ function wt(e) {
872
+ if (Nt(e))
873
+ return F({
868
874
  kind: "card",
869
- brand: U(e.card_network),
875
+ brand: W(e.card_network),
870
876
  last4: e.last4,
871
877
  logoUrl: e.logo_url
872
878
  });
873
- const r = xt(e);
874
- return T({
879
+ const r = vt(e);
880
+ return F({
875
881
  kind: "non_card",
876
882
  brand: r,
877
883
  fallbackLabel: r,
878
884
  logoUrl: e.logo_url
879
885
  });
880
886
  }
881
- function gt() {
887
+ function kt() {
882
888
  return /* @__PURE__ */ t.jsxs("div", { className: "flex flex-col lg:grid lg:grid-cols-8", children: [
883
889
  /* @__PURE__ */ t.jsx("div", { className: "bg-muted flex flex-col items-center px-8 lg:col-span-4", children: /* @__PURE__ */ t.jsxs("div", { className: "w-full max-w-lg py-6", children: [
884
890
  /* @__PURE__ */ t.jsx(g, { className: "mb-4 h-6 w-48" }),
@@ -909,29 +915,29 @@ function j({ label: e, value: r }) {
909
915
  /* @__PURE__ */ t.jsx("p", { className: "text-foreground", children: r })
910
916
  ] });
911
917
  }
912
- function I(e) {
918
+ function R(e) {
913
919
  return e.startsWith("-") ? e : `-${e}`;
914
920
  }
915
- function p(e, r) {
921
+ function x(e, r) {
916
922
  return e ?? r;
917
923
  }
918
- function ht(e) {
924
+ function St(e) {
919
925
  const r = [];
920
926
  e.name && r.push(e.name), e.address1 && r.push(e.address1), e.address2 && r.push(e.address2);
921
927
  const s = [e.city, e.state, e.postal_code].filter(Boolean).join(", ");
922
928
  return s && r.push(s), e.country_code && r.push(e.country_code), e.phone && r.push(e.phone), r;
923
929
  }
924
- function k({
930
+ function D({
925
931
  address: e,
926
932
  title: r
927
933
  }) {
928
- const s = ht(e);
934
+ const s = St(e);
929
935
  return s.length === 0 ? null : /* @__PURE__ */ t.jsxs("div", { children: [
930
936
  /* @__PURE__ */ t.jsx("h3", { className: "text-foreground mb-3 text-sm/6 font-semibold", children: r }),
931
937
  /* @__PURE__ */ t.jsx("div", { className: "text-foreground space-y-0.5 text-sm", children: s.map((a, n) => /* @__PURE__ */ t.jsx("p", { children: a }, n)) })
932
938
  ] });
933
939
  }
934
- function _t({
940
+ function Ot({
935
941
  shippingMethod: e
936
942
  }) {
937
943
  const { t: r } = m();
@@ -940,7 +946,7 @@ function _t({
940
946
  /* @__PURE__ */ t.jsx("p", { className: "text-foreground text-sm", children: e.title })
941
947
  ] }) : null;
942
948
  }
943
- function bt({
949
+ function Dt({
944
950
  trackings: e
945
951
  }) {
946
952
  const { t: r } = m();
@@ -977,19 +983,11 @@ function bt({
977
983
  )) })
978
984
  ] });
979
985
  }
980
- function jt({
986
+ function Ct({
981
987
  paymentMethod: e
982
988
  }) {
983
- const { t: r } = m(), [s, a] = c.useState(!1), n = ft(e), l = s ? n.logo.fallbackUrl : n.logo.primaryUrl;
984
- return c.useEffect(() => {
985
- a(!1);
986
- }, [
987
- e.card_network,
988
- e.last4,
989
- e.logo_url,
990
- e.payment_type,
991
- e.source
992
- ]), /* @__PURE__ */ t.jsxs("div", { children: [
989
+ const { t: r } = m(), [s, a] = u.useState(null), n = wt(e), l = s === n.logo.primaryUrl ? n.logo.fallbackUrl : n.logo.primaryUrl;
990
+ return /* @__PURE__ */ t.jsxs("div", { children: [
993
991
  /* @__PURE__ */ t.jsx("h3", { className: "text-foreground mb-3 text-sm/6 font-semibold", children: r("payment_method") }),
994
992
  /* @__PURE__ */ t.jsxs("div", { className: "flex min-h-6 items-center gap-2", children: [
995
993
  /* @__PURE__ */ t.jsx("span", { className: "inline-flex h-6 max-w-16 shrink-0 items-center justify-center", children: /* @__PURE__ */ t.jsx(
@@ -998,15 +996,15 @@ function jt({
998
996
  src: l,
999
997
  alt: n.accessibilityLabel,
1000
998
  className: "block max-h-6 max-w-16 object-contain align-middle",
1001
- onError: () => a(!0)
999
+ onError: () => a(n.logo.primaryUrl)
1002
1000
  }
1003
1001
  ) }),
1004
- /* @__PURE__ */ t.jsx(mt, { label: n.label, className: "text-foreground" })
1002
+ /* @__PURE__ */ t.jsx(yt, { label: n.label, className: "text-foreground" })
1005
1003
  ] })
1006
1004
  ] });
1007
1005
  }
1008
- function yt({ src: e, alt: r }) {
1009
- const { t: s } = m(), [a, n] = c.useState(!1);
1006
+ function Lt({ src: e, alt: r }) {
1007
+ const { t: s } = m(), [a, n] = u.useState(!1);
1010
1008
  return a ? /* @__PURE__ */ t.jsx("span", { className: "text-xs", children: s("no_image") }) : /* @__PURE__ */ t.jsx(
1011
1009
  "img",
1012
1010
  {
@@ -1017,14 +1015,14 @@ function yt({ src: e, alt: r }) {
1017
1015
  }
1018
1016
  );
1019
1017
  }
1020
- function Nt({
1018
+ function Tt({
1021
1019
  item: e,
1022
1020
  onSubscriptionClick: r
1023
1021
  }) {
1024
1022
  const { t: s } = m(), a = e.source_subscription?.subscription_token;
1025
1023
  return /* @__PURE__ */ t.jsxs("div", { className: "flex items-center gap-x-4 py-4", children: [
1026
1024
  /* @__PURE__ */ t.jsxs("div", { className: "relative shrink-0", children: [
1027
- /* @__PURE__ */ t.jsx("div", { className: "bg-muted text-muted-foreground flex h-24 w-24 items-center justify-center overflow-hidden rounded", children: e.image_url ? /* @__PURE__ */ t.jsx(yt, { src: e.image_url, alt: e.product_name }) : /* @__PURE__ */ t.jsx("span", { className: "text-xs", children: s("no_image") }) }),
1025
+ /* @__PURE__ */ t.jsx("div", { className: "bg-muted text-muted-foreground flex h-24 w-24 items-center justify-center overflow-hidden rounded", children: e.image_url ? /* @__PURE__ */ t.jsx(Lt, { src: e.image_url, alt: e.product_name }) : /* @__PURE__ */ t.jsx("span", { className: "text-xs", children: s("no_image") }) }),
1028
1026
  e.quantity > 1 && /* @__PURE__ */ t.jsx("span", { className: "bg-foreground text-background absolute -top-2 -right-2 z-10 flex h-6 w-6 items-center justify-center rounded-full text-xs font-medium", children: e.quantity })
1029
1027
  ] }),
1030
1028
  /* @__PURE__ */ t.jsxs("div", { className: "flex min-w-0 flex-1 flex-col gap-y-0.5", children: [
@@ -1044,9 +1042,9 @@ function Nt({
1044
1042
  children: e.variant_name
1045
1043
  }
1046
1044
  ),
1047
- /* @__PURE__ */ t.jsx("p", { className: "text-foreground text-sm font-medium", children: p(e.total_in_currency, e.total) }),
1045
+ /* @__PURE__ */ t.jsx("p", { className: "text-foreground text-sm font-medium", children: x(e.total_in_currency, e.total) }),
1048
1046
  e.quantity > 1 && /* @__PURE__ */ t.jsxs("p", { className: "text-muted-foreground text-xs", children: [
1049
- p(e.price_in_currency, e.price),
1047
+ x(e.price_in_currency, e.price),
1050
1048
  " x ",
1051
1049
  e.quantity
1052
1050
  ] }),
@@ -1063,21 +1061,21 @@ function Nt({
1063
1061
  ] })
1064
1062
  ] });
1065
1063
  }
1066
- function vt({
1064
+ function Pt({
1067
1065
  order: e,
1068
1066
  onSubscriptionClick: r
1069
1067
  }) {
1070
- const { t: s } = m(), { singular: a, plural: n } = ke(), i = e.points_applied != null && e.points_applied > 0 ? p(
1068
+ const { t: s } = m(), { singular: a, plural: n } = $e(), i = e.points_applied != null && e.points_applied > 0 ? x(
1071
1069
  e.order_total_after_points_redemption_in_currency ?? null,
1072
- e.order_total_after_points_redemption != null ? String(e.order_total_after_points_redemption) : p(e.total_in_currency, e.total)
1073
- ) : p(e.total_in_currency, e.total);
1070
+ e.order_total_after_points_redemption != null ? String(e.order_total_after_points_redemption) : x(e.total_in_currency, e.total)
1071
+ ) : x(e.total_in_currency, e.total);
1074
1072
  return /* @__PURE__ */ t.jsx("section", { className: "bg-muted flex w-full flex-col items-center px-8 lg:col-span-4", children: /* @__PURE__ */ t.jsxs("div", { className: "flex w-full max-w-lg flex-col", children: [
1075
1073
  /* @__PURE__ */ t.jsxs("div", { className: "mt-4", children: [
1076
1074
  /* @__PURE__ */ t.jsx("h2", { className: "text-foreground mb-2 text-lg font-medium", children: s("items_count", { count: String(e.line_items.length) }) }),
1077
1075
  /* @__PURE__ */ t.jsx("hr", { className: "border-border" })
1078
1076
  ] }),
1079
1077
  /* @__PURE__ */ t.jsx("div", { className: "divide-border divide-y", children: e.line_items.map((o) => /* @__PURE__ */ t.jsx(
1080
- Nt,
1078
+ Tt,
1081
1079
  {
1082
1080
  item: o,
1083
1081
  onSubscriptionClick: r
@@ -1089,7 +1087,7 @@ function vt({
1089
1087
  j,
1090
1088
  {
1091
1089
  label: s("subtotal"),
1092
- value: p(
1090
+ value: x(
1093
1091
  e.totals?.gross_subtotal_in_currency ?? e.subtotal_in_currency,
1094
1092
  e.totals?.gross_subtotal ?? e.subtotal
1095
1093
  )
@@ -1099,8 +1097,8 @@ function vt({
1099
1097
  j,
1100
1098
  {
1101
1099
  label: s("discount"),
1102
- value: I(
1103
- p(e.discount_in_currency, e.discount)
1100
+ value: R(
1101
+ x(e.discount_in_currency, e.discount)
1104
1102
  )
1105
1103
  }
1106
1104
  ),
@@ -1108,7 +1106,7 @@ function vt({
1108
1106
  j,
1109
1107
  {
1110
1108
  label: s("shipping"),
1111
- value: p(e.shipping_in_currency, e.shipping)
1109
+ value: x(e.shipping_in_currency, e.shipping)
1112
1110
  }
1113
1111
  ),
1114
1112
  /* @__PURE__ */ t.jsx(
@@ -1122,12 +1120,12 @@ function vt({
1122
1120
  // the rows visually sum above the authoritative Total.
1123
1121
  e.totals?.price_inclusive_of_tax && e.totals.tax_label ? `${s("tax")} (${s("tax_included", { name: e.totals.tax_label })})` : s("tax")
1124
1122
  ),
1125
- value: p(e.tax_in_currency, e.tax)
1123
+ value: x(e.tax_in_currency, e.tax)
1126
1124
  }
1127
1125
  ),
1128
1126
  e.points_applied != null && e.points_applied > 0 && /* @__PURE__ */ t.jsxs("div", { className: "flex items-center justify-between text-sm", children: [
1129
1127
  /* @__PURE__ */ t.jsxs("p", { className: "text-muted-foreground", children: [
1130
- s("points_applied", { label: E(n) }),
1128
+ s("points_applied", { label: B(n) }),
1131
1129
  /* @__PURE__ */ t.jsxs("span", { className: "ml-1 text-xs", children: [
1132
1130
  "(",
1133
1131
  e.points_applied.toLocaleString(),
@@ -1136,8 +1134,8 @@ function vt({
1136
1134
  ")"
1137
1135
  ] })
1138
1136
  ] }),
1139
- /* @__PURE__ */ t.jsx("p", { className: "text-foreground", children: I(
1140
- p(
1137
+ /* @__PURE__ */ t.jsx("p", { className: "text-foreground", children: R(
1138
+ x(
1141
1139
  e.points_applied_amount_in_currency ?? null,
1142
1140
  String(e.points_applied_amount ?? 0)
1143
1141
  )
@@ -1150,7 +1148,7 @@ function vt({
1150
1148
  ] }),
1151
1149
  e.total_points_credited != null && e.total_points_credited > 0 && /* @__PURE__ */ t.jsx("div", { className: "border-border mb-4 border-t pt-4", children: /* @__PURE__ */ t.jsxs("div", { className: "flex items-baseline justify-between", children: [
1152
1150
  /* @__PURE__ */ t.jsxs("div", { children: [
1153
- /* @__PURE__ */ t.jsx("p", { className: "text-foreground text-sm font-semibold", children: s("points_earned", { label: E(n) }) }),
1151
+ /* @__PURE__ */ t.jsx("p", { className: "text-foreground text-sm font-semibold", children: s("points_earned", { label: B(n) }) }),
1154
1152
  e.customer_points_balance != null && /* @__PURE__ */ t.jsx("p", { className: "text-muted-foreground text-xs", children: s("points_total", {
1155
1153
  count: e.customer_points_balance.toLocaleString(),
1156
1154
  label: n
@@ -1166,7 +1164,7 @@ function vt({
1166
1164
  ] }) })
1167
1165
  ] }) });
1168
1166
  }
1169
- function wt({
1167
+ function $t({
1170
1168
  order: e,
1171
1169
  googleMapsApiKey: r
1172
1170
  }) {
@@ -1175,9 +1173,9 @@ function wt({
1175
1173
  /* @__PURE__ */ t.jsx("div", { className: "border-border mb-6 border-b pb-6", children: /* @__PURE__ */ t.jsx("div", { className: "flex flex-wrap items-center gap-3", children: /* @__PURE__ */ t.jsxs("div", { className: "flex items-center gap-2", children: [
1176
1174
  /* @__PURE__ */ t.jsx("span", { className: "text-muted-foreground text-sm", children: s("status_label") }),
1177
1175
  /* @__PURE__ */ t.jsx(
1178
- X,
1176
+ Z,
1179
1177
  {
1180
- status: V(
1178
+ status: J(
1181
1179
  e.status,
1182
1180
  e.fulfillment_status,
1183
1181
  e.financial_status
@@ -1186,13 +1184,13 @@ function wt({
1186
1184
  )
1187
1185
  ] }) }) }),
1188
1186
  r && e.shipping_address && /* @__PURE__ */ t.jsx("div", { className: "mb-6", children: /* @__PURE__ */ t.jsx(
1189
- Ye,
1187
+ Je,
1190
1188
  {
1191
1189
  apiKey: r,
1192
1190
  address: e.shipping_address
1193
1191
  }
1194
1192
  ) }),
1195
- /* @__PURE__ */ t.jsx(bt, { trackings: e.tracking_informations }),
1193
+ /* @__PURE__ */ t.jsx(Dt, { trackings: e.tracking_informations }),
1196
1194
  /* @__PURE__ */ t.jsxs("div", { className: "border-border mb-6 border-b pb-6", children: [
1197
1195
  /* @__PURE__ */ t.jsx("h3", { className: "text-foreground mb-3 text-sm/6 font-semibold", children: s("order_info") }),
1198
1196
  /* @__PURE__ */ t.jsxs("div", { className: "divide-border flex divide-x", children: [
@@ -1205,7 +1203,7 @@ function wt({
1205
1203
  ] }),
1206
1204
  /* @__PURE__ */ t.jsxs("div", { className: "flex-1 pl-4 text-right", children: [
1207
1205
  /* @__PURE__ */ t.jsx("div", { className: "text-muted-foreground text-sm", children: s("date") }),
1208
- /* @__PURE__ */ t.jsx("div", { className: "text-foreground font-medium", children: new Date(Be(e)).toLocaleDateString(
1206
+ /* @__PURE__ */ t.jsx("div", { className: "text-foreground font-medium", children: new Date(Ge(e)).toLocaleDateString(
1209
1207
  a,
1210
1208
  {
1211
1209
  year: "numeric",
@@ -1226,50 +1224,50 @@ function wt({
1226
1224
  ] }),
1227
1225
  e.shipping_address && e.billing_address ? /* @__PURE__ */ t.jsxs("div", { className: "border-border mb-6 grid grid-cols-2 gap-x-4 border-b pb-6", children: [
1228
1226
  /* @__PURE__ */ t.jsx(
1229
- k,
1227
+ D,
1230
1228
  {
1231
1229
  address: e.shipping_address,
1232
1230
  title: s("shipping_address")
1233
1231
  }
1234
1232
  ),
1235
1233
  /* @__PURE__ */ t.jsx(
1236
- k,
1234
+ D,
1237
1235
  {
1238
1236
  address: e.billing_address,
1239
1237
  title: s("billing_address")
1240
1238
  }
1241
1239
  )
1242
1240
  ] }) : e.shipping_address && /* @__PURE__ */ t.jsx("div", { className: "border-border mb-6 border-b pb-6", children: /* @__PURE__ */ t.jsx(
1243
- k,
1241
+ D,
1244
1242
  {
1245
1243
  address: e.shipping_address,
1246
1244
  title: s("shipping_address")
1247
1245
  }
1248
1246
  ) }),
1249
1247
  (e.shipping_method || e.payment_method) && /* @__PURE__ */ t.jsxs("div", { className: "border-border mb-6 grid grid-cols-1 gap-x-4 gap-y-4 border-b pb-6 sm:grid-cols-2", children: [
1250
- e.shipping_method && /* @__PURE__ */ t.jsx(_t, { shippingMethod: e.shipping_method }),
1251
- e.payment_method && /* @__PURE__ */ t.jsx(jt, { paymentMethod: e.payment_method })
1248
+ e.shipping_method && /* @__PURE__ */ t.jsx(Ot, { shippingMethod: e.shipping_method }),
1249
+ e.payment_method && /* @__PURE__ */ t.jsx(Ct, { paymentMethod: e.payment_method })
1252
1250
  ] })
1253
1251
  ] }) });
1254
1252
  }
1255
- function kt({
1253
+ function Et({
1256
1254
  id: e,
1257
1255
  googleMapsApiKey: r,
1258
1256
  onNotFound: s,
1259
1257
  onError: a,
1260
1258
  onSubscriptionClick: n
1261
1259
  }) {
1262
- const { data: l, isLoading: i, error: o } = q(e), d = l?.order;
1263
- return c.useEffect(() => {
1260
+ const { data: l, isLoading: i, error: o } = H(e), d = l?.order;
1261
+ return u.useEffect(() => {
1264
1262
  !i && o && a?.(o);
1265
- }, [i, o, a]), c.useEffect(() => {
1263
+ }, [i, o, a]), u.useEffect(() => {
1266
1264
  !i && !o && !d && s?.();
1267
- }, [i, o, d, s]), i ? /* @__PURE__ */ t.jsx(gt, {}) : d ? /* @__PURE__ */ t.jsxs("div", { className: "flex flex-col lg:grid lg:grid-cols-8", children: [
1268
- /* @__PURE__ */ t.jsx(vt, { order: d, onSubscriptionClick: n }),
1269
- /* @__PURE__ */ t.jsx(wt, { order: d, googleMapsApiKey: r })
1265
+ }, [i, o, d, s]), i ? /* @__PURE__ */ t.jsx(kt, {}) : d ? /* @__PURE__ */ t.jsxs("div", { className: "flex flex-col lg:grid lg:grid-cols-8", children: [
1266
+ /* @__PURE__ */ t.jsx(Pt, { order: d, onSubscriptionClick: n }),
1267
+ /* @__PURE__ */ t.jsx($t, { order: d, googleMapsApiKey: r })
1270
1268
  ] }) : null;
1271
1269
  }
1272
- function St({
1270
+ function Ft({
1273
1271
  id: e,
1274
1272
  googleMapsApiKey: r,
1275
1273
  onNavigateToList: s,
@@ -1277,24 +1275,24 @@ function St({
1277
1275
  onError: n,
1278
1276
  onSubscriptionClick: l
1279
1277
  }) {
1280
- const { t: i } = m(), { data: o } = q(e), d = o?.order.order_number ?? o?.order.id.toString() ?? String(e);
1278
+ const { t: i } = m(), { data: o } = H(e), d = o?.order.order_number ?? o?.order.id.toString() ?? String(e);
1281
1279
  return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1282
- /* @__PURE__ */ t.jsx(B, { children: /* @__PURE__ */ t.jsx(K, { children: /* @__PURE__ */ t.jsxs(Y, { className: "text-lg", children: [
1283
- /* @__PURE__ */ t.jsx(S, { children: /* @__PURE__ */ t.jsx(
1284
- _e,
1280
+ /* @__PURE__ */ t.jsx(K, { children: /* @__PURE__ */ t.jsx(G, { children: /* @__PURE__ */ t.jsxs(X, { className: "text-lg", children: [
1281
+ /* @__PURE__ */ t.jsx(C, { children: /* @__PURE__ */ t.jsx(
1282
+ Se,
1285
1283
  {
1286
1284
  href: "#",
1287
- onClick: (u) => {
1288
- u.preventDefault(), s();
1285
+ onClick: (c) => {
1286
+ c.preventDefault(), s();
1289
1287
  },
1290
1288
  children: i("breadcrumb")
1291
1289
  }
1292
1290
  ) }),
1293
- /* @__PURE__ */ t.jsx(be, {}),
1294
- /* @__PURE__ */ t.jsx(S, { children: /* @__PURE__ */ t.jsx(W, { className: "font-semibold", children: i("breadcrumb_detail", { id: d }) }) })
1291
+ /* @__PURE__ */ t.jsx(Oe, {}),
1292
+ /* @__PURE__ */ t.jsx(C, { children: /* @__PURE__ */ t.jsx(V, { className: "font-semibold", children: i("breadcrumb_detail", { id: d }) }) })
1295
1293
  ] }) }) }),
1296
1294
  /* @__PURE__ */ t.jsx("div", { className: "mx-auto max-w-7xl px-4 py-4 sm:px-6 sm:py-6 lg:px-10 lg:py-8", children: /* @__PURE__ */ t.jsx(
1297
- kt,
1295
+ Et,
1298
1296
  {
1299
1297
  id: e,
1300
1298
  googleMapsApiKey: r,
@@ -1305,13 +1303,13 @@ function St({
1305
1303
  ) })
1306
1304
  ] });
1307
1305
  }
1308
- function Ot({
1306
+ function At({
1309
1307
  token: e,
1310
1308
  onToast: r
1311
1309
  }) {
1312
- const { navigate: s } = D(), { config: a } = ae(), { t: n } = m();
1310
+ const { navigate: s } = T(), { config: a } = me(), { t: n } = m();
1313
1311
  return /* @__PURE__ */ t.jsx(
1314
- St,
1312
+ Ft,
1315
1313
  {
1316
1314
  id: e,
1317
1315
  googleMapsApiKey: a.googleMapsApiKey,
@@ -1327,10 +1325,10 @@ function Ot({
1327
1325
  }
1328
1326
  );
1329
1327
  }
1330
- function Dt(e, r) {
1331
- ie({ title: e, type: r });
1328
+ function zt(e, r) {
1329
+ pe({ title: e, type: r });
1332
1330
  }
1333
- function zt({
1331
+ function Wt({
1334
1332
  onToast: e,
1335
1333
  /* eslint-disable @typescript-eslint/no-unused-vars -- destructured to exclude from divProps spread */
1336
1334
  background: r,
@@ -1341,9 +1339,9 @@ function zt({
1341
1339
  /* eslint-enable @typescript-eslint/no-unused-vars */
1342
1340
  ...i
1343
1341
  }) {
1344
- const { currentSlug: o } = D(), d = e ?? Dt, u = o.split("/")[1];
1345
- return u !== void 0 ? /* @__PURE__ */ t.jsx(F, { children: /* @__PURE__ */ t.jsx("div", { ...i, children: /* @__PURE__ */ t.jsx(Ot, { token: u, onToast: d }) }) }) : /* @__PURE__ */ t.jsx(F, { children: /* @__PURE__ */ t.jsx("div", { ...i, children: /* @__PURE__ */ t.jsx(it, {}) }) });
1342
+ const { currentSlug: o } = T(), d = e ?? zt, c = o.split("/")[1];
1343
+ return c !== void 0 ? /* @__PURE__ */ t.jsx(I, { children: /* @__PURE__ */ t.jsx("div", { ...i, children: /* @__PURE__ */ t.jsx(At, { token: c, onToast: d }) }) }) : /* @__PURE__ */ t.jsx(I, { children: /* @__PURE__ */ t.jsx("div", { ...i, children: /* @__PURE__ */ t.jsx(ft, {}) }) });
1346
1344
  }
1347
1345
  export {
1348
- zt as O
1346
+ Wt as O
1349
1347
  };