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

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,15 +1,15 @@
1
- import { c as D, l as o, j as c, W as I, am as Y, z as H } from "./account-screen-runtime-DxhJm6Qd.js";
2
- import { l as W, c as V, a as G, C as K } from "./countries-api-adapter-B3usO25w.js";
3
- import { c as Z, a as X } from "./client.gen-CSTBgfxj.js";
4
- import { q as J, r as Q, c as w } from "./hey-api-client-DSvKWGPq.js";
5
- import { b as ee, c as te, a as ae, u as ne } from "./sheet-haptics-context-D2WUiXJm.js";
1
+ import { c as M, l as o, j as c, av as H, aw as S, X as W, aE as V, z as G } from "./account-screen-runtime-DYMunv0A.js";
2
+ import { l as K, c as X, a as Z, C as J } from "./countries-api-adapter-lxSE748x.js";
3
+ import { c as Q, a as w } from "./client.gen-Ck6Pm2jV.js";
4
+ import { q as ee, r as te, c as ae } from "./hey-api-client-DGRBsZ7Y.js";
5
+ import { b as ne, c as re, a as ie, u as se } from "./sheet-haptics-context-iOjKcNDj.js";
6
6
  /**
7
7
  * @license lucide-react v0.575.0 - ISC
8
8
  *
9
9
  * This source code is licensed under the ISC license.
10
10
  * See the LICENSE file in the root directory of this source tree.
11
11
  */
12
- const re = [
12
+ const oe = [
13
13
  ["line", { x1: "2", x2: "22", y1: "2", y2: "22", key: "a6p6uj" }],
14
14
  ["path", { d: "M10.41 10.41a2 2 0 1 1-2.83-2.83", key: "1bzlo9" }],
15
15
  ["line", { x1: "13.5", x2: "6", y1: "13.5", y2: "21", key: "1q0aeu" }],
@@ -22,50 +22,50 @@ const re = [
22
22
  }
23
23
  ],
24
24
  ["path", { d: "M21 15V5a2 2 0 0 0-2-2H9", key: "43el77" }]
25
- ], bt = D("image-off", re);
25
+ ], xt = M("image-off", oe);
26
26
  /**
27
27
  * @license lucide-react v0.575.0 - ISC
28
28
  *
29
29
  * This source code is licensed under the ISC license.
30
30
  * See the LICENSE file in the root directory of this source tree.
31
31
  */
32
- const ie = [
32
+ const le = [
33
33
  ["path", { d: "m17 2 4 4-4 4", key: "nntrym" }],
34
34
  ["path", { d: "M3 11v-1a4 4 0 0 1 4-4h14", key: "84bu3i" }],
35
35
  ["path", { d: "m7 22-4-4 4-4", key: "1wqhfi" }],
36
36
  ["path", { d: "M21 13v1a4 4 0 0 1-4 4H3", key: "1rx37r" }]
37
- ], kt = D("repeat", ie), M = o.createContext(null), se = o.createContext(null), oe = M.Provider;
38
- se.Provider;
39
- function le() {
40
- const e = o.use(M);
37
+ ], Ct = M("repeat", le), N = o.createContext(null), de = o.createContext(null), ue = N.Provider;
38
+ de.Provider;
39
+ function ce() {
40
+ const e = o.use(N);
41
41
  if (!e)
42
42
  throw new Error(
43
43
  "usePortalTenantClient must be used within a PortalTenantClientProvider"
44
44
  );
45
45
  return e;
46
46
  }
47
- const { Provider: de, useTranslation: ue } = ee("Profile"), ce = de, vt = ue, N = "https://assets.fluid.app/images/payment_icons", g = `${N}/generic.svg`, pe = /* @__PURE__ */ new Set([
47
+ const { Provider: pe, useTranslation: _e } = ne("Profile"), me = pe, St = _e, B = "https://assets.fluid.app/images/payment_icons", g = `${B}/generic.svg`, ye = /* @__PURE__ */ new Set([
48
48
  "visa",
49
49
  "mastercard",
50
50
  "amex",
51
51
  "discover",
52
52
  "jcb",
53
53
  "maestro"
54
- ]), _e = /* @__PURE__ */ new Set([
54
+ ]), fe = /* @__PURE__ */ new Set([
55
55
  "apple_pay",
56
56
  "google_pay",
57
57
  "samsung_pay"
58
- ]), me = /* @__PURE__ */ new Set([
58
+ ]), he = /* @__PURE__ */ new Set([
59
59
  "apple_pay",
60
60
  "google_pay"
61
- ]), ye = {
61
+ ]), ge = {
62
62
  visa: "Visa",
63
63
  mastercard: "Mastercard",
64
64
  amex: "American Express",
65
65
  discover: "Discover",
66
66
  jcb: "JCB",
67
67
  maestro: "Maestro"
68
- }, fe = {
68
+ }, be = {
69
69
  apple_pay: "Apple Pay",
70
70
  google_pay: "Google Pay",
71
71
  samsung_pay: "Samsung Pay"
@@ -93,7 +93,7 @@ const { Provider: de, useTranslation: ue } = ee("Profile"), ce = de, vt = ue, N
93
93
  grabpay: "GrabPay",
94
94
  maya: "Maya",
95
95
  upi: "UPI"
96
- }, he = {
96
+ }, ke = {
97
97
  visa: "visa",
98
98
  mastercard: "mastercard",
99
99
  master: "mastercard",
@@ -141,7 +141,7 @@ const { Provider: de, useTranslation: ue } = ee("Profile"), ce = de, vt = ue, N
141
141
  paymaya: "maya",
142
142
  upi: "upi",
143
143
  "upi india": "upi"
144
- }, ge = {
144
+ }, ve = {
145
145
  visa: "visa",
146
146
  mastercard: "master",
147
147
  amex: "american_express",
@@ -178,52 +178,52 @@ const { Provider: de, useTranslation: ue } = ee("Profile"), ce = de, vt = ue, N
178
178
  upi: "upi"
179
179
  };
180
180
  function p(e) {
181
- const t = B(e);
182
- return t ? he[t] ?? null : null;
181
+ const t = U(e);
182
+ return t ? ke[t] ?? null : null;
183
183
  }
184
- function be(e) {
184
+ function Pe(e) {
185
185
  const t = p(e);
186
- return t ? `${N}/${ge[t]}.svg` : g;
186
+ return t ? `${B}/${ve[t]}.svg` : g;
187
187
  }
188
188
  function y(e) {
189
189
  const t = p(e);
190
190
  if (!t) return null;
191
- const a = ve(t);
192
- if (a) return ye[a];
193
- const n = Pe(t);
194
- if (n) return fe[n];
191
+ const a = xe(t);
192
+ if (a) return ge[a];
193
+ const n = Ce(t);
194
+ if (n) return be[n];
195
195
  const r = A(t);
196
196
  return r ? P[r] : null;
197
197
  }
198
- function ke(e) {
198
+ function Ae(e) {
199
199
  const t = A(e);
200
200
  return t ? P[t] : null;
201
201
  }
202
- function ve(e) {
202
+ function xe(e) {
203
203
  const t = p(e);
204
- return t != null && pe.has(t) ? t : null;
204
+ return t != null && ye.has(t) ? t : null;
205
205
  }
206
- function Pe(e) {
206
+ function Ce(e) {
207
207
  const t = p(e);
208
- return t != null && _e.has(t) ? t : null;
208
+ return t != null && fe.has(t) ? t : null;
209
209
  }
210
- function Ae(e) {
210
+ function Se(e) {
211
211
  const t = p(e);
212
- return t != null && me.has(t) ? t : null;
212
+ return t != null && he.has(t) ? t : null;
213
213
  }
214
214
  function A(e) {
215
215
  const t = p(e);
216
216
  return t != null && t in P ? t : null;
217
217
  }
218
- function xe(e) {
219
- const t = B(e)?.replace(/\s+/g, "_");
218
+ function Ee(e) {
219
+ const t = U(e)?.replace(/\s+/g, "_");
220
220
  return t === "card" || t === "credit_card";
221
221
  }
222
- function B(e) {
222
+ function U(e) {
223
223
  const t = e?.trim().toLowerCase().replace(/[_-]+/g, " ").replace(/\s+/g, " ");
224
224
  return t || null;
225
225
  }
226
- const Ce = {
226
+ const Le = {
227
227
  paypal: "email",
228
228
  venmo: "handle",
229
229
  upi: "handle",
@@ -247,15 +247,19 @@ const Ce = {
247
247
  gcash: "none",
248
248
  grabpay: "none",
249
249
  maya: "none"
250
- }, x = "Payment method", S = "•", Se = {
250
+ }, x = "Payment method", E = "•", qe = {
251
251
  card: "Credit Card",
252
252
  credit_card: "Credit Card",
253
253
  paypal: "PayPal",
254
254
  braintree_paypal: "PayPal",
255
+ braintree_paypal_pay_later: "PayPal Pay Later",
255
256
  apple_pay: "Apple Pay",
256
257
  google_pay: "Google Pay",
257
258
  affirm: "Affirm",
258
259
  klarna: "Klarna",
260
+ // KlarnaCitcon's integration TITLE is "Klarna Citcon", named to tell the two
261
+ // Klarna integrations apart internally; shoppers only need "Klarna".
262
+ klarna_citcon: "Klarna",
259
263
  bread: "Bread",
260
264
  iap: "In-App Purchase",
261
265
  citcon: "Citcon",
@@ -266,28 +270,28 @@ const Ce = {
266
270
  function j(e) {
267
271
  return e?.replace(/([a-z])([A-Z])/g, "$1 $2").trim().toLowerCase().replace(/[_-]+/g, " ").replace(/\s+/g, " ") || null;
268
272
  }
269
- function Pt(e) {
273
+ function Et(e) {
270
274
  const t = j(e);
271
275
  return t === "card" || t === "credit card";
272
276
  }
273
- function At(...e) {
277
+ function Lt(...e) {
274
278
  for (const t of e) {
275
279
  const a = j(t);
276
280
  if (!a) continue;
277
281
  const n = a.replace(/\s+/g, "_");
278
- return Se[n] ?? t?.trim() ?? null;
282
+ return qe[n] ?? t?.trim() ?? null;
279
283
  }
280
284
  return null;
281
285
  }
282
- function qe(e, t) {
286
+ function Te(e, t) {
283
287
  const a = u(e) ?? "••••";
284
288
  return p(t) === "amex" ? `•••• •••••• •${a}` : `•••• •••• •••• ${a}`;
285
289
  }
286
- function Le(e, t) {
287
- const a = u(t), n = qe(e, a);
288
- return a && p(a) == null && !xe(a) ? `${a} ${n}` : n;
290
+ function De(e, t) {
291
+ const a = u(t), n = Te(e, a);
292
+ return a && p(a) == null && !Ee(a) ? `${a} ${n}` : n;
289
293
  }
290
- function xt(e) {
294
+ function qt(e) {
291
295
  const t = u(e);
292
296
  if (!t) return null;
293
297
  const a = [];
@@ -297,14 +301,14 @@ function xt(e) {
297
301
  if (!/^[•\d]+$/.test(l)) return null;
298
302
  i > 0 && a.push({ kind: "gap" });
299
303
  let d = 0;
300
- for (; l[d] === S; ) d += 1;
304
+ for (; l[d] === E; ) d += 1;
301
305
  const _ = l.slice(d);
302
- if (_.includes(S)) return null;
306
+ if (_.includes(E)) return null;
303
307
  d > 0 && (n = !0, a.push({ kind: "dots", count: d })), _ && a.push({ kind: "text", value: _ });
304
308
  }
305
309
  return n ? a : null;
306
310
  }
307
- function Ee(e) {
311
+ function Me(e) {
308
312
  const t = u(e);
309
313
  if (!t) return null;
310
314
  const a = t.indexOf("@");
@@ -314,61 +318,61 @@ function Ee(e) {
314
318
  const i = "•".repeat(Math.min(n.length - 2, 6));
315
319
  return `${n[0]}${i}${n[n.length - 1]}${r}`;
316
320
  }
317
- function Te(e) {
321
+ function Ne(e) {
318
322
  const t = A(
319
323
  e.brand ?? e.fallbackLabel
320
324
  );
321
- switch (t != null ? Ce[t] : "none") {
325
+ switch (t != null ? Le[t] : "none") {
322
326
  case "email":
323
- return Ee(e.emailAddress);
327
+ return Me(e.emailAddress);
324
328
  case "handle":
325
329
  return u(e.accountHandle);
326
330
  case "bank":
327
- return Ne(e);
331
+ return je(e);
328
332
  case "none":
329
333
  return null;
330
334
  }
331
335
  }
332
- function De(e) {
333
- return Te(e) ?? ke(e.brand ?? e.fallbackLabel) ?? y(e.brand ?? e.fallbackLabel) ?? u(e.fallbackLabel) ?? x;
336
+ function Be(e) {
337
+ return Ne(e) ?? Ae(e.brand ?? e.fallbackLabel) ?? y(e.brand ?? e.fallbackLabel) ?? u(e.fallbackLabel) ?? x;
334
338
  }
335
- function q({
339
+ function L({
336
340
  brand: e,
337
341
  logoUrl: t,
338
342
  alt: a
339
343
  }) {
340
344
  const n = p(e), i = u(t) ?? g;
341
345
  return {
342
- primaryUrl: n ? be(n) : i,
346
+ primaryUrl: n ? Pe(n) : i,
343
347
  fallbackUrl: n ? i : g,
344
348
  alt: u(a) ?? y(e) ?? u(e) ?? x,
345
349
  brand: n
346
350
  };
347
351
  }
348
- function Me(e) {
349
- const t = Ae(e);
352
+ function Ue(e) {
353
+ const t = Se(e);
350
354
  return t ? {
351
355
  brand: t,
352
356
  label: y(t) ?? x
353
357
  } : null;
354
358
  }
355
- function Ct(e) {
359
+ function Tt(e) {
356
360
  if (e.kind === "card") {
357
- const r = Le(e.last4, e.brand), i = q({
361
+ const r = De(e.last4, e.brand), i = L({
358
362
  brand: e.brand,
359
363
  logoUrl: e.logoUrl,
360
364
  alt: y(e.brand) ?? "Card"
361
- }), l = Me(e.walletBrand);
365
+ }), l = Ue(e.walletBrand);
362
366
  return {
363
367
  kind: "card",
364
368
  label: r,
365
369
  logo: i,
366
370
  brand: i.brand,
367
371
  walletBadge: l,
368
- accessibilityLabel: L(i.alt, r)
372
+ accessibilityLabel: q(i.alt, r)
369
373
  };
370
374
  }
371
- const t = e.brand ?? e.fallbackLabel, a = De(e), n = q({
375
+ const t = e.brand ?? e.fallbackLabel, a = Be(e), n = L({
372
376
  brand: t,
373
377
  logoUrl: e.logoUrl,
374
378
  alt: y(t) ?? e.fallbackLabel
@@ -379,41 +383,41 @@ function Ct(e) {
379
383
  logo: n,
380
384
  brand: n.brand,
381
385
  walletBadge: null,
382
- accessibilityLabel: L(n.alt, a)
386
+ accessibilityLabel: q(n.alt, a)
383
387
  };
384
388
  }
385
- function Ne(e) {
389
+ function je(e) {
386
390
  const t = u(e.bankName), a = u(e.accountLast4), n = a ? `••${a}` : null;
387
391
  return t && n ? `${t} ${n}` : t ?? n;
388
392
  }
389
- function L(e, t) {
393
+ function q(e, t) {
390
394
  return e === t ? t : `${e} ${t}`;
391
395
  }
392
396
  function u(e) {
393
397
  const t = e?.trim();
394
398
  return t || null;
395
399
  }
396
- const U = o.createContext(null), Be = U.Provider;
397
- function St() {
398
- const e = o.use(U);
400
+ const O = o.createContext(null), Oe = O.Provider;
401
+ function Dt() {
402
+ const e = o.use(O);
399
403
  if (!e)
400
404
  throw new Error("usePayApi must be used within a PayApiProvider");
401
405
  return e;
402
406
  }
403
- const O = o.createContext(null), je = O.Provider;
404
- function qt() {
405
- const e = o.use(O);
407
+ const R = o.createContext(null), Re = R.Provider;
408
+ function Mt() {
409
+ const e = o.use(R);
406
410
  if (!e)
407
411
  throw new Error(
408
412
  "useLanguagesApi must be used within a LanguagesApiProvider"
409
413
  );
410
414
  return e;
411
415
  }
412
- function Ue(e) {
416
+ function $e(e) {
413
417
  return e instanceof DOMException && e.name === "AbortError" || e instanceof Error && e.name === "AbortError";
414
418
  }
415
- function Oe(e) {
416
- const t = Z({
419
+ function ze(e) {
420
+ const t = Q({
417
421
  baseUrl: e.baseUrl,
418
422
  cache: e.cache,
419
423
  credentials: e.credentials,
@@ -430,21 +434,21 @@ function Oe(e) {
430
434
  n.headers.set(r, i);
431
435
  return n;
432
436
  }), t.interceptors.error.use(
433
- X({
437
+ w({
434
438
  onResponseError: (n) => {
435
439
  n.status === 401 && e.onAuthError?.();
436
440
  },
437
- shouldPassThroughTransportError: Ue
441
+ shouldPassThroughTransportError: $e
438
442
  })
439
443
  ), t;
440
444
  }
441
- function Re(e) {
445
+ function Fe(e) {
442
446
  return {
443
447
  code: e.code ?? "",
444
448
  name: e.name ?? ""
445
449
  };
446
450
  }
447
- function $e(e) {
451
+ function Ie(e) {
448
452
  return {
449
453
  request_id: e?.request_id ?? null,
450
454
  timestamp: e?.timestamp ?? "",
@@ -456,10 +460,10 @@ function $e(e) {
456
460
  } : void 0
457
461
  };
458
462
  }
459
- function ze(e) {
463
+ function Ye(e) {
460
464
  return {
461
465
  listLanguages: async (t) => {
462
- const a = await W({
466
+ const a = await K({
463
467
  client: e,
464
468
  query: {
465
469
  "page[cursor]": t?.cursor,
@@ -467,8 +471,8 @@ function ze(e) {
467
471
  }
468
472
  });
469
473
  return {
470
- languages: (a.languages ?? []).map(Re),
471
- meta: $e(a.meta)
474
+ languages: (a.languages ?? []).map(Fe),
475
+ meta: Ie(a.meta)
472
476
  };
473
477
  }
474
478
  };
@@ -477,7 +481,7 @@ const b = (e) => e.client.get({
477
481
  responseStyle: "data",
478
482
  url: "/api/pay/addresses",
479
483
  ...e
480
- }), Fe = (e) => e.client.post({
484
+ }), He = (e) => e.client.post({
481
485
  responseStyle: "data",
482
486
  url: "/api/pay/addresses",
483
487
  ...e,
@@ -485,11 +489,11 @@ const b = (e) => e.client.get({
485
489
  "Content-Type": "application/json",
486
490
  ...e.headers
487
491
  }
488
- }), Ie = (e) => e.client.delete({
492
+ }), We = (e) => e.client.delete({
489
493
  responseStyle: "data",
490
494
  url: "/api/pay/addresses/{id}",
491
495
  ...e
492
- }), Ye = (e) => e.client.patch({
496
+ }), Ve = (e) => e.client.patch({
493
497
  responseStyle: "data",
494
498
  url: "/api/pay/addresses/{id}",
495
499
  ...e,
@@ -501,7 +505,7 @@ const b = (e) => e.client.get({
501
505
  responseStyle: "data",
502
506
  url: "/api/pay/payment_methods",
503
507
  ...e
504
- }), He = (e) => e.client.post({
508
+ }), Ge = (e) => e.client.post({
505
509
  responseStyle: "data",
506
510
  url: "/api/pay/payment_methods",
507
511
  ...e,
@@ -509,7 +513,7 @@ const b = (e) => e.client.get({
509
513
  "Content-Type": "application/json",
510
514
  ...e.headers
511
515
  }
512
- }), We = (e) => e.client.post({
516
+ }), Ke = (e) => e.client.post({
513
517
  responseStyle: "data",
514
518
  url: "/api/pay/payment_methods/three_ds_confirm",
515
519
  ...e,
@@ -517,7 +521,7 @@ const b = (e) => e.client.get({
517
521
  "Content-Type": "application/json",
518
522
  ...e.headers
519
523
  }
520
- }), Ve = (e) => e.client.post({
524
+ }), Xe = (e) => e.client.post({
521
525
  responseStyle: "data",
522
526
  url: "/api/pay/payment_methods/three_ds_status",
523
527
  ...e,
@@ -525,7 +529,7 @@ const b = (e) => e.client.get({
525
529
  "Content-Type": "application/json",
526
530
  ...e.headers
527
531
  }
528
- }), Ge = (e) => e.client.post({
532
+ }), Ze = (e) => e.client.post({
529
533
  responseStyle: "data",
530
534
  url: "/api/pay/payment_methods/three_ds_cancel",
531
535
  ...e,
@@ -533,11 +537,11 @@ const b = (e) => e.client.get({
533
537
  "Content-Type": "application/json",
534
538
  ...e.headers
535
539
  }
536
- }), Ke = (e) => e.client.delete({
540
+ }), Je = (e) => e.client.delete({
537
541
  responseStyle: "data",
538
542
  url: "/api/pay/payment_methods/{id}",
539
543
  ...e
540
- }), Ze = (e) => e.client.patch({
544
+ }), Qe = (e) => e.client.patch({
541
545
  responseStyle: "data",
542
546
  url: "/api/pay/payment_methods/{id}",
543
547
  ...e,
@@ -545,7 +549,7 @@ const b = (e) => e.client.get({
545
549
  "Content-Type": "application/json",
546
550
  ...e.headers
547
551
  }
548
- }), Xe = (e) => e.client.get({
552
+ }), we = (e) => e.client.get({
549
553
  responseStyle: "data",
550
554
  url: "/api/pay/payment_methods/vault",
551
555
  ...e
@@ -554,7 +558,7 @@ const b = (e) => e.client.get({
554
558
  url: "/api/pay/points_ledgers",
555
559
  ...e
556
560
  });
557
- function E(e) {
561
+ function T(e) {
558
562
  return {
559
563
  id: e.id ?? 0,
560
564
  name: e.name ?? null,
@@ -570,7 +574,7 @@ function E(e) {
570
574
  updated_at: e.updated_at ?? null
571
575
  };
572
576
  }
573
- function Je(e) {
577
+ function et(e) {
574
578
  const t = e;
575
579
  return {
576
580
  id: t.id ?? 0,
@@ -597,17 +601,17 @@ function h(e) {
597
601
  exp_year: e.exp_year ?? null,
598
602
  card_holder: e.card_holder ?? null,
599
603
  default: e.default ?? !1,
600
- billing_address: e.billing_address ? Je(e.billing_address) : null,
604
+ billing_address: e.billing_address ? et(e.billing_address) : null,
601
605
  created_at: e.created_at ?? null,
602
606
  updated_at: e.updated_at ?? null
603
607
  };
604
608
  }
605
- function Qe(e) {
609
+ function tt(e) {
606
610
  return {
607
611
  fetchAddresses: async () => {
608
612
  const t = await b({ client: e });
609
613
  return {
610
- addresses: (t.addresses ?? []).map(E),
614
+ addresses: (t.addresses ?? []).map(T),
611
615
  meta: {
612
616
  request_id: t.meta?.request_id ?? "",
613
617
  timestamp: t.meta?.timestamp ?? ""
@@ -615,16 +619,16 @@ function Qe(e) {
615
619
  };
616
620
  },
617
621
  createAddress: async (t) => {
618
- const a = await Fe({ client: e, body: t });
622
+ const a = await He({ client: e, body: t });
619
623
  if (!a.address)
620
624
  throw new Error("addresses_create returned no address");
621
- return E(a.address);
625
+ return T(a.address);
622
626
  },
623
627
  updateAddress: async (t, a) => {
624
- await Ye({ client: e, path: { id: t }, body: a });
628
+ await Ve({ client: e, path: { id: t }, body: a });
625
629
  },
626
630
  deleteAddress: async (t) => {
627
- await Ie({ client: e, path: { id: t } });
631
+ await We({ client: e, path: { id: t } });
628
632
  },
629
633
  fetchPaymentMethods: async () => {
630
634
  const t = await k({ client: e });
@@ -637,7 +641,7 @@ function Qe(e) {
637
641
  };
638
642
  },
639
643
  createPaymentMethod: async (t) => {
640
- const a = await He({ client: e, body: t });
644
+ const a = await Ge({ client: e, body: t });
641
645
  if ("three_ds" in a) {
642
646
  if (!a.three_ds.session_token)
643
647
  throw new Error("three_ds_required without a session_token");
@@ -666,7 +670,7 @@ function Qe(e) {
666
670
  };
667
671
  },
668
672
  confirmPaymentMethod3DS: async ({ session_token: t }) => {
669
- const a = await We({
673
+ const a = await Ke({
670
674
  client: e,
671
675
  body: { session_token: t }
672
676
  });
@@ -690,7 +694,7 @@ function Qe(e) {
690
694
  };
691
695
  },
692
696
  fetchPaymentMethod3DSStatus: async ({ session_token: t }) => {
693
- const a = await Ve({
697
+ const a = await Xe({
694
698
  client: e,
695
699
  body: { session_token: t }
696
700
  });
@@ -702,7 +706,7 @@ function Qe(e) {
702
706
  };
703
707
  },
704
708
  cancelPaymentMethod3DS: async ({ session_token: t }) => {
705
- const a = await Ge({
709
+ const a = await Ze({
706
710
  client: e,
707
711
  body: { session_token: t }
708
712
  });
@@ -713,20 +717,20 @@ function Qe(e) {
713
717
  };
714
718
  },
715
719
  updatePaymentMethod: async (t, a) => {
716
- await Ze({
720
+ await Qe({
717
721
  client: e,
718
722
  path: { id: t },
719
723
  body: a
720
724
  });
721
725
  },
722
726
  deletePaymentMethod: async (t) => {
723
- await Ke({
727
+ await Je({
724
728
  client: e,
725
729
  path: { id: t }
726
730
  });
727
731
  },
728
732
  fetchVaultCredentials: async () => {
729
- const t = await Xe({ client: e });
733
+ const t = await we({ client: e });
730
734
  return {
731
735
  vault: {
732
736
  vault_id: t.vault?.vault_id ?? "",
@@ -757,20 +761,28 @@ function Qe(e) {
757
761
  }
758
762
  };
759
763
  }
760
- const R = o.createContext(null), we = R.Provider;
761
- function Lt() {
762
- const e = o.use(R);
764
+ const $ = o.createContext(null), at = $.Provider;
765
+ function Nt() {
766
+ const e = o.use($);
763
767
  if (!e)
764
768
  throw new Error("useOrdersApi must be used within an OrdersCoreProvider");
765
769
  return e;
766
770
  }
767
- function et({
771
+ function nt({
768
772
  api: e,
769
773
  children: t
770
774
  }) {
771
- return /* @__PURE__ */ c.jsx(we, { value: e, children: t });
775
+ return /* @__PURE__ */ c.jsx(at, { value: e, children: t });
776
+ }
777
+ class z extends Error {
778
+ constructor(t = "This API does not filter orders by status bucket") {
779
+ super(t), this.name = "OrderStatusUnsupportedError";
780
+ }
781
+ }
782
+ function Bt(e) {
783
+ return e instanceof z || e instanceof Error && e.name === "OrderStatusUnsupportedError";
772
784
  }
773
- function $(e) {
785
+ function F(e) {
774
786
  return (e ?? []).map(
775
787
  (t) => ({
776
788
  namespace: t.namespace,
@@ -787,10 +799,10 @@ function m(e, t) {
787
799
  );
788
800
  return e;
789
801
  }
790
- function z(e, t) {
802
+ function I(e, t) {
791
803
  return typeof e == "string" && e ? e : t;
792
804
  }
793
- function T(e) {
805
+ function D(e) {
794
806
  return e ? {
795
807
  id: e.id ?? 0,
796
808
  name: e.name ?? null,
@@ -803,23 +815,24 @@ function T(e) {
803
815
  phone: e.phone ?? null
804
816
  } : null;
805
817
  }
806
- function tt(e) {
818
+ function rt(e) {
807
819
  return e ? {
808
820
  id: e.id ?? 0,
809
821
  source: e.source ?? "",
810
822
  payment_type: e.payment_type ?? "",
823
+ payment_title: e.payment_title ?? null,
811
824
  card_network: e.card_network ?? null,
812
825
  last4: e.last4 ?? null,
813
826
  logo_url: e.logo_url ?? null
814
827
  } : null;
815
828
  }
816
- function at(e) {
829
+ function it(e) {
817
830
  return e ? {
818
831
  id: e.id ?? null,
819
832
  title: e.title ?? ""
820
833
  } : null;
821
834
  }
822
- function nt(e) {
835
+ function st(e) {
823
836
  return Array.isArray(e) ? e.flatMap((t) => {
824
837
  if (typeof t != "object" || t === null) return [];
825
838
  const a = t;
@@ -833,7 +846,7 @@ function nt(e) {
833
846
  ];
834
847
  }) : [];
835
848
  }
836
- function rt(e) {
849
+ function ot(e) {
837
850
  const t = m(e.subtotal, "subtotal"), a = m(e.discount, "discount"), n = m(e.shipping, "shipping"), r = m(e.tax, "tax"), i = m(e.total, "total"), l = e.order_number, d = e.totals, _ = d && typeof d == "object" ? d : void 0;
838
851
  return {
839
852
  id: e.id ?? 0,
@@ -845,7 +858,7 @@ function rt(e) {
845
858
  // Read defensively (same as `mapToListOrder`) and fall back to
846
859
  // `unfulfilled` so the status tag renders a real fulfillment state.
847
860
  fulfillment_status: typeof e.fulfillment_status == "string" ? e.fulfillment_status : "unfulfilled",
848
- financial_status: z(e.financial_status, "pending"),
861
+ financial_status: I(e.financial_status, "pending"),
849
862
  subtotal: t,
850
863
  subtotal_in_currency: e.subtotal_in_currency ?? t,
851
864
  // STU2-2580: the display-ready Commerce::Totals breakdown (gross catalog
@@ -881,19 +894,19 @@ function rt(e) {
881
894
  source_subscription: s.source_subscription?.subscription_token ? { subscription_token: s.source_subscription.subscription_token } : null
882
895
  };
883
896
  }),
884
- metafields: $(e.metafields),
897
+ metafields: F(e.metafields),
885
898
  customer_name: e.customer_name ?? null,
886
899
  customer_email: e.customer_email ?? null,
887
- shipping_address: T(e.shipping_address ?? null),
888
- billing_address: T(e.billing_address ?? null),
889
- payment_method: tt(e.payment_method),
890
- shipping_method: at(e.shipping_method),
900
+ shipping_address: D(e.shipping_address ?? null),
901
+ billing_address: D(e.billing_address ?? null),
902
+ payment_method: rt(e.payment_method),
903
+ shipping_method: it(e.shipping_method),
891
904
  subscription_order: e.subscription_order ?? !1,
892
905
  subscription_token: e.subscription_token ?? null,
893
906
  // Returned by the BFF but not in the OpenAPI spec yet (added
894
907
  // alongside this UI work). Defensive read so we don't crash on
895
908
  // older deployments that haven't shipped the blueprinter change.
896
- tracking_informations: nt(
909
+ tracking_informations: st(
897
910
  e.tracking_informations
898
911
  ),
899
912
  // These fields are returned by the BFF but not yet in the OpenAPI spec.
@@ -911,7 +924,7 @@ function rt(e) {
911
924
  updated_at: e.updated_at ?? ""
912
925
  };
913
926
  }
914
- function it(e) {
927
+ function lt(e) {
915
928
  const t = e.line_items?.[0], a = e.order_number, n = typeof a == "string" ? a : "";
916
929
  return {
917
930
  id: e.id ?? 0,
@@ -924,7 +937,7 @@ function it(e) {
924
937
  status: e.status ?? "pending",
925
938
  order_status: e.status ?? "pending",
926
939
  fulfillment_status: (typeof e.fulfillment_status == "string" ? e.fulfillment_status : null) ?? "unfulfilled",
927
- financial_status: z(e.financial_status, "pending"),
940
+ financial_status: I(e.financial_status, "pending"),
928
941
  currency_code: e.currency ?? "",
929
942
  note: null,
930
943
  token: e.token ?? "",
@@ -942,7 +955,7 @@ function it(e) {
942
955
  quantity_count: e.line_items?.reduce((r, i) => r + (i.quantity ?? 0), 0) ?? 0,
943
956
  order_on_behalf_of: !1,
944
957
  sale_date: e.sale_date ?? null,
945
- metafields: $(e.metafields),
958
+ metafields: F(e.metafields),
946
959
  customer: null,
947
960
  first_item: t ? {
948
961
  title: t.product_name ?? "",
@@ -958,10 +971,30 @@ function it(e) {
958
971
  subscription: e.subscription_order && e.subscription_token ? { subscription_token: e.subscription_token, status: "active" } : e.subscription_order ? { subscription_token: "", status: "active" } : null
959
972
  };
960
973
  }
961
- function st(e) {
974
+ function dt(e, t) {
975
+ if (!t || !H(e) || e.status !== 422) return !1;
976
+ const a = S(e.body?.error), n = S(a?.details);
977
+ return n !== null && "status" in n;
978
+ }
979
+ async function ut(e, t) {
980
+ try {
981
+ return await te({
982
+ client: e,
983
+ query: {
984
+ "page[cursor]": t.cursor,
985
+ "page[limit]": t.limit,
986
+ status: t.status,
987
+ q: t.search
988
+ }
989
+ });
990
+ } catch (a) {
991
+ throw dt(a, t.status) ? new z() : a;
992
+ }
993
+ }
994
+ function ct(e) {
962
995
  return {
963
996
  fetchOrderById: async (t) => {
964
- const a = await Q({
997
+ const a = await ee({
965
998
  client: e,
966
999
  path: { token: String(t) }
967
1000
  });
@@ -970,7 +1003,7 @@ function st(e) {
970
1003
  "BFF returned a successful response without order data"
971
1004
  );
972
1005
  return {
973
- order: rt(a.order),
1006
+ order: ot(a.order),
974
1007
  meta: {
975
1008
  request_id: a.meta?.request_id ?? "",
976
1009
  timestamp: a.meta?.timestamp ?? ""
@@ -978,17 +1011,12 @@ function st(e) {
978
1011
  };
979
1012
  },
980
1013
  fetchCustomerOrders: async (t) => {
981
- const a = await J({
982
- client: e,
983
- query: {
984
- "page[cursor]": t.cursor,
985
- "page[limit]": t.limit,
986
- status: t.status,
987
- q: t.search
988
- }
989
- });
1014
+ const a = await ut(e, t);
990
1015
  return {
991
- orders: (a.orders ?? []).map(it),
1016
+ orders: (a.orders ?? []).map(lt),
1017
+ // Absent until the BFF reports them; the screen reads that as "this
1018
+ // API cannot filter by bucket yet" and keeps sifting its own page.
1019
+ counts: a.counts,
992
1020
  meta: {
993
1021
  request_id: a.meta?.request_id ?? "",
994
1022
  timestamp: a.meta?.timestamp ?? "",
@@ -1003,13 +1031,13 @@ function st(e) {
1003
1031
  }
1004
1032
  };
1005
1033
  }
1006
- function ot({
1034
+ function pt({
1007
1035
  children: e
1008
1036
  }) {
1009
- const t = le(), a = o.useMemo(() => st(t), [t]);
1010
- return /* @__PURE__ */ c.jsx(et, { api: a, children: e });
1037
+ const t = ce(), a = o.useMemo(() => ct(t), [t]);
1038
+ return /* @__PURE__ */ c.jsx(nt, { api: a, children: e });
1011
1039
  }
1012
- const lt = {
1040
+ const _t = {
1013
1041
  profile_try_again: "Try again",
1014
1042
  profile_at_a_glance: "At a glance",
1015
1043
  profile_default_payment: "Default payment",
@@ -1045,6 +1073,9 @@ const lt = {
1045
1073
  profile_languages_unavailable: "Languages could not load. Please try again.",
1046
1074
  breadcrumb: "Profile",
1047
1075
  edit_profile: "Edit Profile",
1076
+ profile_photo: "Profile photo",
1077
+ remove: "Remove",
1078
+ uploading: "Uploading...",
1048
1079
  first_name: "First Name",
1049
1080
  last_name: "Last Name",
1050
1081
  phone_number: "Phone Number",
@@ -1139,6 +1170,8 @@ const lt = {
1139
1170
  sign_out_description: "You can sign back in any time",
1140
1171
  profile_updated: "Profile updated",
1141
1172
  failed_to_update_profile: "Failed to update profile",
1173
+ failed_to_upload_photo: "Failed to upload photo",
1174
+ invalid_photo_file: "Choose an image under {{size}}",
1142
1175
  failed_to_delete_payment_method: "Failed to delete payment method",
1143
1176
  failed_to_update_payment_method: "Failed to update payment method",
1144
1177
  address_created: "Address created",
@@ -1215,126 +1248,126 @@ const lt = {
1215
1248
  changing_email_to: "Changing to",
1216
1249
  check_new_email_verification: "Check your new email inbox and click the verification link to complete the change.",
1217
1250
  unexpected_error: "An unexpected error occurred. Please try again."
1218
- }, dt = ae({
1219
- fallback: lt,
1251
+ }, mt = ie({
1252
+ fallback: _t,
1220
1253
  loaders: {
1221
- ar: () => import("./ar-B7NQmkZ1.js").then(
1254
+ ar: () => import("./ar-DaN3xEy4.js").then(
1222
1255
  (e) => e.default
1223
1256
  ),
1224
- bg: () => import("./bg-CxfL8rZN.js").then(
1257
+ bg: () => import("./bg-D3Np0de3.js").then(
1225
1258
  (e) => e.default
1226
1259
  ),
1227
- bn: () => import("./bn-CdhHCK--.js").then(
1260
+ bn: () => import("./bn-BDSehnZ3.js").then(
1228
1261
  (e) => e.default
1229
1262
  ),
1230
- cs: () => import("./cs-DTe-xGeI.js").then(
1263
+ cs: () => import("./cs-CrmATj4L.js").then(
1231
1264
  (e) => e.default
1232
1265
  ),
1233
- da: () => import("./da-B8Cl_vkl.js").then(
1266
+ da: () => import("./da-CmJdErjd.js").then(
1234
1267
  (e) => e.default
1235
1268
  ),
1236
- de: () => import("./de-D8cYy8G-.js").then(
1269
+ de: () => import("./de-C0KTNBZq.js").then(
1237
1270
  (e) => e.default
1238
1271
  ),
1239
- el: () => import("./el-Chjin2JW.js").then(
1272
+ el: () => import("./el-BOQs49GU.js").then(
1240
1273
  (e) => e.default
1241
1274
  ),
1242
- es: () => import("./es-mp8RwFN4.js").then(
1275
+ es: () => import("./es-Dt3VSQPu.js").then(
1243
1276
  (e) => e.default
1244
1277
  ),
1245
- fi: () => import("./fi-91gcpxoy.js").then(
1278
+ fi: () => import("./fi-B8UZ7eJL.js").then(
1246
1279
  (e) => e.default
1247
1280
  ),
1248
- fr: () => import("./fr-ekvUCKTH.js").then(
1281
+ fr: () => import("./fr-BomEiNL0.js").then(
1249
1282
  (e) => e.default
1250
1283
  ),
1251
- he: () => import("./he-B7QiuquT.js").then(
1284
+ he: () => import("./he-CfmnXjsr.js").then(
1252
1285
  (e) => e.default
1253
1286
  ),
1254
- hi: () => import("./hi-DNNhi7ud.js").then(
1287
+ hi: () => import("./hi-CTk5zGoJ.js").then(
1255
1288
  (e) => e.default
1256
1289
  ),
1257
- hr: () => import("./hr-CAwxMKX_.js").then(
1290
+ hr: () => import("./hr-DaNToqEm.js").then(
1258
1291
  (e) => e.default
1259
1292
  ),
1260
- hu: () => import("./hu-D_oQwH4Q.js").then(
1293
+ hu: () => import("./hu-lcAuIwez.js").then(
1261
1294
  (e) => e.default
1262
1295
  ),
1263
- id: () => import("./id-oeAszBoo.js").then(
1296
+ id: () => import("./id-CEThcKZG.js").then(
1264
1297
  (e) => e.default
1265
1298
  ),
1266
- it: () => import("./it-Dme6GXSG.js").then(
1299
+ it: () => import("./it-BCRCoDOg.js").then(
1267
1300
  (e) => e.default
1268
1301
  ),
1269
- ja: () => import("./ja-CRnvQNCa.js").then(
1302
+ ja: () => import("./ja-BIkFdIfq.js").then(
1270
1303
  (e) => e.default
1271
1304
  ),
1272
- ko: () => import("./ko-8mk8A3_I.js").then(
1305
+ ko: () => import("./ko-CD3bk6gv.js").then(
1273
1306
  (e) => e.default
1274
1307
  ),
1275
- ms: () => import("./ms-Bs0GvdOw.js").then(
1308
+ ms: () => import("./ms-DI4mGa5X.js").then(
1276
1309
  (e) => e.default
1277
1310
  ),
1278
- nl: () => import("./nl-tsI6lLxl.js").then(
1311
+ nl: () => import("./nl-B-XAD3Ra.js").then(
1279
1312
  (e) => e.default
1280
1313
  ),
1281
- no: () => import("./no-DMot6qX0.js").then(
1314
+ no: () => import("./no-C_NmYGbe.js").then(
1282
1315
  (e) => e.default
1283
1316
  ),
1284
- pl: () => import("./pl-DmTxONNg.js").then(
1317
+ pl: () => import("./pl-mQRzJZEW.js").then(
1285
1318
  (e) => e.default
1286
1319
  ),
1287
- pt: () => import("./pt-DgmwnAV-.js").then(
1320
+ pt: () => import("./pt-BYMWPjog.js").then(
1288
1321
  (e) => e.default
1289
1322
  ),
1290
- ro: () => import("./ro-B4M17oRc.js").then(
1323
+ ro: () => import("./ro-B98EuFQI.js").then(
1291
1324
  (e) => e.default
1292
1325
  ),
1293
- ru: () => import("./ru-BS2gZnbs.js").then(
1326
+ ru: () => import("./ru-DBO9IasC.js").then(
1294
1327
  (e) => e.default
1295
1328
  ),
1296
- sk: () => import("./sk-BdDjjHfn.js").then(
1329
+ sk: () => import("./sk-hRvNJfiN.js").then(
1297
1330
  (e) => e.default
1298
1331
  ),
1299
- sv: () => import("./sv-CW7FL5HA.js").then(
1332
+ sv: () => import("./sv-noYtTQbO.js").then(
1300
1333
  (e) => e.default
1301
1334
  ),
1302
- th: () => import("./th-BYBMKmSh.js").then(
1335
+ th: () => import("./th-CJCAKsR-.js").then(
1303
1336
  (e) => e.default
1304
1337
  ),
1305
- tl: () => import("./tl-CDigaLsK.js").then(
1338
+ tl: () => import("./tl-Bx8pJ7p7.js").then(
1306
1339
  (e) => e.default
1307
1340
  ),
1308
- tr: () => import("./tr-PxiurNCr.js").then(
1341
+ tr: () => import("./tr-C4tCNiV7.js").then(
1309
1342
  (e) => e.default
1310
1343
  ),
1311
- uk: () => import("./uk-B4aYnJ8t.js").then(
1344
+ uk: () => import("./uk-xFjXQDP3.js").then(
1312
1345
  (e) => e.default
1313
1346
  ),
1314
- vi: () => import("./vi-BoKSdzH3.js").then(
1347
+ vi: () => import("./vi-BAvhRTgb.js").then(
1315
1348
  (e) => e.default
1316
1349
  ),
1317
- zh_CN: () => import("./zh_CN-DrCrXsZC.js").then(
1350
+ zh_CN: () => import("./zh_CN-Cyq9zeex.js").then(
1318
1351
  (e) => e.default
1319
1352
  ),
1320
- zh_TW: () => import("./zh_TW-JmyC1W5K.js").then(
1353
+ zh_TW: () => import("./zh_TW-DFM5MhMA.js").then(
1321
1354
  (e) => e.default
1322
1355
  )
1323
1356
  }
1324
1357
  });
1325
- function ut(e, t) {
1326
- return te(e, t);
1358
+ function yt(e, t) {
1359
+ return re(e, t);
1327
1360
  }
1328
- function ct({
1361
+ function ft({
1329
1362
  children: e
1330
1363
  }) {
1331
- const { locale: t } = I(), a = ne(dt, t), n = o.useMemo(
1332
- () => ut(t, a),
1364
+ const { locale: t } = W(), a = se(mt, t), n = o.useMemo(
1365
+ () => yt(t, a),
1333
1366
  [t, a]
1334
1367
  );
1335
- return /* @__PURE__ */ c.jsx(ce, { value: n, children: e });
1368
+ return /* @__PURE__ */ c.jsx(me, { value: n, children: e });
1336
1369
  }
1337
- function F(e) {
1370
+ function Y(e) {
1338
1371
  return {
1339
1372
  id: e.id ?? 0,
1340
1373
  name: e.name ?? null,
@@ -1350,7 +1383,7 @@ function F(e) {
1350
1383
  updated_at: e.updated_at ?? null
1351
1384
  };
1352
1385
  }
1353
- function pt(e) {
1386
+ function ht(e) {
1354
1387
  return {
1355
1388
  id: e.id ?? 0,
1356
1389
  type: e.type ?? "card",
@@ -1361,14 +1394,14 @@ function pt(e) {
1361
1394
  exp_year: e.exp_year ?? null,
1362
1395
  card_holder: e.card_holder ?? null,
1363
1396
  default: e.default ?? !1,
1364
- billing_address: e.billing_address ? F({ id: 0, ...e.billing_address }) : null,
1397
+ billing_address: e.billing_address ? Y({ id: 0, ...e.billing_address }) : null,
1365
1398
  created_at: e.created_at ?? null,
1366
1399
  updated_at: e.updated_at ?? null
1367
1400
  };
1368
1401
  }
1369
- function _t(e) {
1402
+ function gt(e) {
1370
1403
  return {
1371
- ...Qe(e),
1404
+ ...tt(e),
1372
1405
  async fetchPaymentMethods() {
1373
1406
  let t = await k({
1374
1407
  client: e,
@@ -1385,7 +1418,7 @@ function _t(e) {
1385
1418
  }), a.push(...t.payment_methods ?? []);
1386
1419
  }
1387
1420
  return {
1388
- payment_methods: a.map(pt),
1421
+ payment_methods: a.map(ht),
1389
1422
  meta: {
1390
1423
  request_id: t.meta?.request_id ?? "",
1391
1424
  timestamp: t.meta?.timestamp ?? ""
@@ -1437,7 +1470,7 @@ function _t(e) {
1437
1470
  }), a.push(...t.addresses ?? []);
1438
1471
  }
1439
1472
  return {
1440
- addresses: a.map(F),
1473
+ addresses: a.map(Y),
1441
1474
  meta: {
1442
1475
  request_id: t.meta?.request_id ?? "",
1443
1476
  timestamp: t.meta?.timestamp ?? ""
@@ -1446,11 +1479,11 @@ function _t(e) {
1446
1479
  }
1447
1480
  };
1448
1481
  }
1449
- function Et({
1482
+ function Ut({
1450
1483
  children: e
1451
1484
  }) {
1452
- const { config: t } = Y(), { fetch: a } = H(), { baseUrl: n, defaultHeaders: r, onAuthError: i } = t, l = o.useMemo(
1453
- () => V({
1485
+ const { config: t } = V(), { fetch: a } = G(), { baseUrl: n, defaultHeaders: r, onAuthError: i } = t, l = o.useMemo(
1486
+ () => X({
1454
1487
  baseUrl: n,
1455
1488
  defaultHeaders: r,
1456
1489
  onAuthError: i,
@@ -1459,14 +1492,14 @@ function Et({
1459
1492
  }),
1460
1493
  [n, r, i, a]
1461
1494
  ), d = o.useMemo(
1462
- () => ze(l),
1495
+ () => Ye(l),
1463
1496
  [l]
1464
1497
  ), _ = o.useMemo(
1465
- () => G(l),
1498
+ () => Z(l),
1466
1499
  [l]
1467
1500
  ), s = o.useMemo(
1468
- () => _t(
1469
- Oe({
1501
+ () => gt(
1502
+ ze({
1470
1503
  baseUrl: n,
1471
1504
  defaultHeaders: r,
1472
1505
  onAuthError: i,
@@ -1476,7 +1509,7 @@ function Et({
1476
1509
  ),
1477
1510
  [n, r, i, a]
1478
1511
  ), f = o.useMemo(
1479
- () => w({
1512
+ () => ae({
1480
1513
  baseUrl: n,
1481
1514
  defaultHeaders: r,
1482
1515
  onAuthError: i,
@@ -1485,25 +1518,26 @@ function Et({
1485
1518
  }),
1486
1519
  [n, r, i, a]
1487
1520
  );
1488
- return /* @__PURE__ */ c.jsx(oe, { value: f, children: /* @__PURE__ */ c.jsx(ot, { children: /* @__PURE__ */ c.jsx(Be, { value: s, children: /* @__PURE__ */ c.jsx(K, { value: _, children: /* @__PURE__ */ c.jsx(je, { value: d, children: /* @__PURE__ */ c.jsx(ct, { children: e }) }) }) }) }) });
1521
+ return /* @__PURE__ */ c.jsx(ue, { value: f, children: /* @__PURE__ */ c.jsx(pt, { children: /* @__PURE__ */ c.jsx(Oe, { value: s, children: /* @__PURE__ */ c.jsx(J, { value: _, children: /* @__PURE__ */ c.jsx(Re, { value: d, children: /* @__PURE__ */ c.jsx(ft, { children: e }) }) }) }) }) });
1489
1522
  }
1490
1523
  export {
1491
- bt as I,
1492
- Et as M,
1493
- ct as P,
1494
- kt as R,
1495
- qt as a,
1496
- St as b,
1497
- le as c,
1498
- st as d,
1499
- q as e,
1524
+ xt as I,
1525
+ Ut as M,
1526
+ ft as P,
1527
+ Ct as R,
1528
+ Mt as a,
1529
+ Dt as b,
1530
+ ce as c,
1531
+ ct as d,
1532
+ L as e,
1500
1533
  j as f,
1501
1534
  y as g,
1502
- Lt as h,
1503
- Pt as i,
1504
- xt as m,
1505
- ve as n,
1506
- At as p,
1507
- Ct as r,
1508
- vt as u
1535
+ Nt as h,
1536
+ Et as i,
1537
+ Bt as j,
1538
+ qt as m,
1539
+ xe as n,
1540
+ Lt as p,
1541
+ Tt as r,
1542
+ St as u
1509
1543
  };