@fluid-app/fluid-cli-theme-dev 0.1.59 → 0.1.61

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 (252) hide show
  1. package/README.md +109 -0
  2. package/dist/dist-cli-preview/.vite/manifest.json +1831 -0
  3. package/dist/dist-cli-preview/account-screens.js +1 -0
  4. package/dist/dist-cli-preview/capabilities.json +1 -0
  5. package/dist/dist-cli-preview/chunks/Breadcrumb-CZ-skiUy.js +91 -0
  6. package/dist/dist-cli-preview/chunks/Combobox-BGiCYa56.js +1455 -0
  7. package/dist/dist-cli-preview/chunks/ContactsScreen-vsNgy_gn.js +6930 -0
  8. package/dist/dist-cli-preview/chunks/MemberManagementProviders-DMwkh3JW.js +1509 -0
  9. package/dist/dist-cli-preview/chunks/MessagingScreen-DzJOwPGH.js +38475 -0
  10. package/dist/dist-cli-preview/chunks/MobileActionSheet-DqVPgFKI.js +2895 -0
  11. package/dist/dist-cli-preview/chunks/MySiteScreen-BSmWlCKA.js +4950 -0
  12. package/dist/dist-cli-preview/chunks/OrdersScreen-CVEl9FnN.js +1349 -0
  13. package/dist/dist-cli-preview/chunks/OrdersScreen-d4fJE_dm.js +9 -0
  14. package/dist/dist-cli-preview/chunks/ProfileScreen-BC5gyJDY.js +2581 -0
  15. package/dist/dist-cli-preview/chunks/SubscriptionsScreen-CFM4Pufg.js +38 -0
  16. package/dist/dist-cli-preview/chunks/account-screen-runtime-DxhJm6Qd.js +12407 -0
  17. package/dist/dist-cli-preview/chunks/ar-4OhalXtk.js +628 -0
  18. package/dist/dist-cli-preview/chunks/ar-8iaFSgop.js +189 -0
  19. package/dist/dist-cli-preview/chunks/ar-B7NQmkZ1.js +341 -0
  20. package/dist/dist-cli-preview/chunks/ar-DEUMqcX3.js +563 -0
  21. package/dist/dist-cli-preview/chunks/ar-DT9j-dOi.js +720 -0
  22. package/dist/dist-cli-preview/chunks/ar-D_B30x0o.js +176 -0
  23. package/dist/dist-cli-preview/chunks/arrow-left-UFKI-PQf.js +14 -0
  24. package/dist/dist-cli-preview/chunks/bg-CIgMfa9k.js +176 -0
  25. package/dist/dist-cli-preview/chunks/bg-CS2zt-UV.js +720 -0
  26. package/dist/dist-cli-preview/chunks/bg-CxfL8rZN.js +341 -0
  27. package/dist/dist-cli-preview/chunks/bg-DOdbUYGw.js +563 -0
  28. package/dist/dist-cli-preview/chunks/bg-D_C_HmWn.js +189 -0
  29. package/dist/dist-cli-preview/chunks/bg-DeBjzn9B.js +628 -0
  30. package/dist/dist-cli-preview/chunks/bn-BAGJspTJ.js +563 -0
  31. package/dist/dist-cli-preview/chunks/bn-BgnBXWHo.js +176 -0
  32. package/dist/dist-cli-preview/chunks/bn-CRBwi_3N.js +628 -0
  33. package/dist/dist-cli-preview/chunks/bn-CdhHCK--.js +341 -0
  34. package/dist/dist-cli-preview/chunks/bn-DiqHsF7K.js +720 -0
  35. package/dist/dist-cli-preview/chunks/bn-UEAt87N9.js +189 -0
  36. package/dist/dist-cli-preview/chunks/cli-preview-DunPfnjU.js +151 -0
  37. package/dist/dist-cli-preview/chunks/client.gen-CSTBgfxj.js +672 -0
  38. package/dist/dist-cli-preview/chunks/contacts-CpYlEgAq.js +4 -0
  39. package/dist/dist-cli-preview/chunks/countries-api-adapter-B3usO25w.js +108 -0
  40. package/dist/dist-cli-preview/chunks/create-card-entry-container-DHgsbSyr.js +23942 -0
  41. package/dist/dist-cli-preview/chunks/cs-B8rJsMOS.js +189 -0
  42. package/dist/dist-cli-preview/chunks/cs-ChKaPMtV.js +563 -0
  43. package/dist/dist-cli-preview/chunks/cs-CkdXQxaf.js +720 -0
  44. package/dist/dist-cli-preview/chunks/cs-DTe-xGeI.js +341 -0
  45. package/dist/dist-cli-preview/chunks/cs-DmLSumGB.js +176 -0
  46. package/dist/dist-cli-preview/chunks/cs-jXPm6Nhj.js +628 -0
  47. package/dist/dist-cli-preview/chunks/da-7uI_CROE.js +628 -0
  48. package/dist/dist-cli-preview/chunks/da-B8Cl_vkl.js +341 -0
  49. package/dist/dist-cli-preview/chunks/da-Bee-xQNq.js +563 -0
  50. package/dist/dist-cli-preview/chunks/da-DYlEkykt.js +720 -0
  51. package/dist/dist-cli-preview/chunks/da-EfkyseOR.js +176 -0
  52. package/dist/dist-cli-preview/chunks/da-J--1RxZp.js +189 -0
  53. package/dist/dist-cli-preview/chunks/de-BTNiErdB.js +189 -0
  54. package/dist/dist-cli-preview/chunks/de-CIhZnrdS.js +720 -0
  55. package/dist/dist-cli-preview/chunks/de-CKtChtTF.js +628 -0
  56. package/dist/dist-cli-preview/chunks/de-D8cYy8G-.js +341 -0
  57. package/dist/dist-cli-preview/chunks/de-EARi-xk5.js +176 -0
  58. package/dist/dist-cli-preview/chunks/de-zeOnL7Nl.js +563 -0
  59. package/dist/dist-cli-preview/chunks/el-0NNTwBnJ.js +563 -0
  60. package/dist/dist-cli-preview/chunks/el-BPz4rb5a.js +176 -0
  61. package/dist/dist-cli-preview/chunks/el-Bg6zRbVK.js +720 -0
  62. package/dist/dist-cli-preview/chunks/el-CUjODD23.js +628 -0
  63. package/dist/dist-cli-preview/chunks/el-Chjin2JW.js +341 -0
  64. package/dist/dist-cli-preview/chunks/el-DYay96x-.js +189 -0
  65. package/dist/dist-cli-preview/chunks/es-CFZtv6aF.js +176 -0
  66. package/dist/dist-cli-preview/chunks/es-CGgD1AV1.js +720 -0
  67. package/dist/dist-cli-preview/chunks/es-CXXB8ubn.js +628 -0
  68. package/dist/dist-cli-preview/chunks/es-Cf56ydFZ.js +189 -0
  69. package/dist/dist-cli-preview/chunks/es-DirUtV7k.js +563 -0
  70. package/dist/dist-cli-preview/chunks/es-mp8RwFN4.js +341 -0
  71. package/dist/dist-cli-preview/chunks/fi-91gcpxoy.js +341 -0
  72. package/dist/dist-cli-preview/chunks/fi-BfDoQ1rt.js +628 -0
  73. package/dist/dist-cli-preview/chunks/fi-Bn9_l4IH.js +176 -0
  74. package/dist/dist-cli-preview/chunks/fi-Bo5QdhP_.js +563 -0
  75. package/dist/dist-cli-preview/chunks/fi-CC2YqekN.js +189 -0
  76. package/dist/dist-cli-preview/chunks/fi-DUhIWph7.js +720 -0
  77. package/dist/dist-cli-preview/chunks/fr-BSouGEGN.js +176 -0
  78. package/dist/dist-cli-preview/chunks/fr-BnYsse99.js +563 -0
  79. package/dist/dist-cli-preview/chunks/fr-C32S8PvA.js +720 -0
  80. package/dist/dist-cli-preview/chunks/fr-DIQcYUq-.js +628 -0
  81. package/dist/dist-cli-preview/chunks/fr-Do6AIa1z.js +189 -0
  82. package/dist/dist-cli-preview/chunks/fr-ekvUCKTH.js +341 -0
  83. package/dist/dist-cli-preview/chunks/he-B7QiuquT.js +341 -0
  84. package/dist/dist-cli-preview/chunks/he-BYEZTUry.js +176 -0
  85. package/dist/dist-cli-preview/chunks/he-CO8gUz9X.js +628 -0
  86. package/dist/dist-cli-preview/chunks/he-DaWGyHjM.js +189 -0
  87. package/dist/dist-cli-preview/chunks/he-pFefco4W.js +563 -0
  88. package/dist/dist-cli-preview/chunks/he-xSGbvsti.js +720 -0
  89. package/dist/dist-cli-preview/chunks/hey-api-client-DSvKWGPq.js +153 -0
  90. package/dist/dist-cli-preview/chunks/hi-BLnEaAml.js +176 -0
  91. package/dist/dist-cli-preview/chunks/hi-BMFNssNU.js +720 -0
  92. package/dist/dist-cli-preview/chunks/hi-BXBdXuFm.js +189 -0
  93. package/dist/dist-cli-preview/chunks/hi-DNNhi7ud.js +341 -0
  94. package/dist/dist-cli-preview/chunks/hi-DVSXxEzh.js +628 -0
  95. package/dist/dist-cli-preview/chunks/hi-Uqd1FKtv.js +563 -0
  96. package/dist/dist-cli-preview/chunks/hr-B1T2UY_p.js +176 -0
  97. package/dist/dist-cli-preview/chunks/hr-B432GvmU.js +720 -0
  98. package/dist/dist-cli-preview/chunks/hr-BJR58Xci.js +563 -0
  99. package/dist/dist-cli-preview/chunks/hr-CAwxMKX_.js +341 -0
  100. package/dist/dist-cli-preview/chunks/hr-DBrPFNLx.js +189 -0
  101. package/dist/dist-cli-preview/chunks/hr-yH6ab4ea.js +628 -0
  102. package/dist/dist-cli-preview/chunks/hu-BcC628Ln.js +189 -0
  103. package/dist/dist-cli-preview/chunks/hu-Bv0_YQEn.js +628 -0
  104. package/dist/dist-cli-preview/chunks/hu-D_oQwH4Q.js +341 -0
  105. package/dist/dist-cli-preview/chunks/hu-Q0aE9GvJ.js +720 -0
  106. package/dist/dist-cli-preview/chunks/hu-TNzzMEzp.js +563 -0
  107. package/dist/dist-cli-preview/chunks/hu-cQw9hgLe.js +176 -0
  108. package/dist/dist-cli-preview/chunks/id-Becf5X73.js +720 -0
  109. package/dist/dist-cli-preview/chunks/id-CLvNjXjm.js +189 -0
  110. package/dist/dist-cli-preview/chunks/id-CzSVbo5E.js +628 -0
  111. package/dist/dist-cli-preview/chunks/id-Vudf_d_f.js +563 -0
  112. package/dist/dist-cli-preview/chunks/id-Zd_5csjz.js +176 -0
  113. package/dist/dist-cli-preview/chunks/id-oeAszBoo.js +341 -0
  114. package/dist/dist-cli-preview/chunks/isAfter-BUGgByEf.js +1414 -0
  115. package/dist/dist-cli-preview/chunks/it-BlwQOBaX.js +720 -0
  116. package/dist/dist-cli-preview/chunks/it-C0jghILa.js +563 -0
  117. package/dist/dist-cli-preview/chunks/it-CmxC_FIJ.js +176 -0
  118. package/dist/dist-cli-preview/chunks/it-D5BXSiSl.js +189 -0
  119. package/dist/dist-cli-preview/chunks/it-Dme6GXSG.js +341 -0
  120. package/dist/dist-cli-preview/chunks/it-xT70eFoJ.js +628 -0
  121. package/dist/dist-cli-preview/chunks/ja-BJ7phJBG.js +720 -0
  122. package/dist/dist-cli-preview/chunks/ja-Bc8dA1LN.js +189 -0
  123. package/dist/dist-cli-preview/chunks/ja-BcOunH2q.js +176 -0
  124. package/dist/dist-cli-preview/chunks/ja-CRnvQNCa.js +341 -0
  125. package/dist/dist-cli-preview/chunks/ja-CfYfDP_F.js +563 -0
  126. package/dist/dist-cli-preview/chunks/ja-Dh3z4uJk.js +628 -0
  127. package/dist/dist-cli-preview/chunks/ko-8mk8A3_I.js +341 -0
  128. package/dist/dist-cli-preview/chunks/ko-Bnp-5GAn.js +720 -0
  129. package/dist/dist-cli-preview/chunks/ko-CG_0ufw6.js +176 -0
  130. package/dist/dist-cli-preview/chunks/ko-CJ-8gCc9.js +189 -0
  131. package/dist/dist-cli-preview/chunks/ko-CnpxBQ2W.js +628 -0
  132. package/dist/dist-cli-preview/chunks/ko-CtkKNEZB.js +563 -0
  133. package/dist/dist-cli-preview/chunks/log-out-CBUq5Hd-.js +15 -0
  134. package/dist/dist-cli-preview/chunks/map-pin-DHfjSyoR.js +20 -0
  135. package/dist/dist-cli-preview/chunks/messaging-DkyH4CPP.js +4 -0
  136. package/dist/dist-cli-preview/chunks/mount-account-screen-pc1VISwF.js +11041 -0
  137. package/dist/dist-cli-preview/chunks/ms-BF5gF9D5.js +189 -0
  138. package/dist/dist-cli-preview/chunks/ms-Bs0GvdOw.js +341 -0
  139. package/dist/dist-cli-preview/chunks/ms-CyhqvfOb.js +563 -0
  140. package/dist/dist-cli-preview/chunks/ms-D6Cf3VUm.js +628 -0
  141. package/dist/dist-cli-preview/chunks/ms-DR0U3aeO.js +720 -0
  142. package/dist/dist-cli-preview/chunks/ms-DTN7PIDq.js +176 -0
  143. package/dist/dist-cli-preview/chunks/mysite-wvfITV7T.js +4 -0
  144. package/dist/dist-cli-preview/chunks/nl-C1v8tc97.js +720 -0
  145. package/dist/dist-cli-preview/chunks/nl-C5fWLZkK.js +189 -0
  146. package/dist/dist-cli-preview/chunks/nl-Cgt3zlZ8.js +628 -0
  147. package/dist/dist-cli-preview/chunks/nl-DWtWnOvH.js +563 -0
  148. package/dist/dist-cli-preview/chunks/nl-tsI6lLxl.js +341 -0
  149. package/dist/dist-cli-preview/chunks/nl-x2lc8Ct5.js +176 -0
  150. package/dist/dist-cli-preview/chunks/no-BeVycdYu.js +563 -0
  151. package/dist/dist-cli-preview/chunks/no-DMot6qX0.js +341 -0
  152. package/dist/dist-cli-preview/chunks/no-Dk9D1gjY.js +189 -0
  153. package/dist/dist-cli-preview/chunks/no-R8FScfrK.js +176 -0
  154. package/dist/dist-cli-preview/chunks/no-dhNRqvE4.js +720 -0
  155. package/dist/dist-cli-preview/chunks/no-xVFexdWN.js +628 -0
  156. package/dist/dist-cli-preview/chunks/orders-c13r499A.js +4 -0
  157. package/dist/dist-cli-preview/chunks/pl-BH1bEHfg.js +720 -0
  158. package/dist/dist-cli-preview/chunks/pl-Bl9G1yOR.js +176 -0
  159. package/dist/dist-cli-preview/chunks/pl-Cu0JzUUV.js +563 -0
  160. package/dist/dist-cli-preview/chunks/pl-D7AZQwtK.js +189 -0
  161. package/dist/dist-cli-preview/chunks/pl-Dl0M9JDp.js +628 -0
  162. package/dist/dist-cli-preview/chunks/pl-DmTxONNg.js +341 -0
  163. package/dist/dist-cli-preview/chunks/plus-C-lo0pFM.js +14 -0
  164. package/dist/dist-cli-preview/chunks/profile-CoWo9Sxe.js +4 -0
  165. package/dist/dist-cli-preview/chunks/pt-62Kd-NN1.js +189 -0
  166. package/dist/dist-cli-preview/chunks/pt-BAq7bseT.js +628 -0
  167. package/dist/dist-cli-preview/chunks/pt-DgmwnAV-.js +341 -0
  168. package/dist/dist-cli-preview/chunks/pt-K0EDcWuR.js +720 -0
  169. package/dist/dist-cli-preview/chunks/pt-nD60RpwN.js +176 -0
  170. package/dist/dist-cli-preview/chunks/pt-voHVxH2b.js +563 -0
  171. package/dist/dist-cli-preview/chunks/ro-B4M17oRc.js +341 -0
  172. package/dist/dist-cli-preview/chunks/ro-CFfjUJ1T.js +563 -0
  173. package/dist/dist-cli-preview/chunks/ro-CtL0oK2c.js +628 -0
  174. package/dist/dist-cli-preview/chunks/ro-D6ybG7vp.js +176 -0
  175. package/dist/dist-cli-preview/chunks/ro-DTauvv2V.js +189 -0
  176. package/dist/dist-cli-preview/chunks/ro-DUxhal7c.js +720 -0
  177. package/dist/dist-cli-preview/chunks/ru-45VizwWQ.js +628 -0
  178. package/dist/dist-cli-preview/chunks/ru-BS2gZnbs.js +341 -0
  179. package/dist/dist-cli-preview/chunks/ru-C0oMeuhb.js +176 -0
  180. package/dist/dist-cli-preview/chunks/ru-COxlz18L.js +563 -0
  181. package/dist/dist-cli-preview/chunks/ru-CjEXCUxb.js +720 -0
  182. package/dist/dist-cli-preview/chunks/ru-g5Cz5HSk.js +189 -0
  183. package/dist/dist-cli-preview/chunks/schemas-9_ZwC5nC.js +3977 -0
  184. package/dist/dist-cli-preview/chunks/screen-route-slug-utils-B254xI_J.js +14954 -0
  185. package/dist/dist-cli-preview/chunks/sheet-haptics-context-D2WUiXJm.js +116 -0
  186. package/dist/dist-cli-preview/chunks/sidebar-CMSWZCPS.js +848 -0
  187. package/dist/dist-cli-preview/chunks/sk-BGDxj2sS.js +563 -0
  188. package/dist/dist-cli-preview/chunks/sk-BdDjjHfn.js +341 -0
  189. package/dist/dist-cli-preview/chunks/sk-Bpdt_mn0.js +176 -0
  190. package/dist/dist-cli-preview/chunks/sk-DX2wOf1g.js +628 -0
  191. package/dist/dist-cli-preview/chunks/sk-QbdQWjZy.js +714 -0
  192. package/dist/dist-cli-preview/chunks/sk-YuAeAaeZ.js +189 -0
  193. package/dist/dist-cli-preview/chunks/store-api-context-BIdILNWL.js +16 -0
  194. package/dist/dist-cli-preview/chunks/subscriptions-BHALQrcU.js +4 -0
  195. package/dist/dist-cli-preview/chunks/sv-BlNLvbmj.js +628 -0
  196. package/dist/dist-cli-preview/chunks/sv-CEmTDhJy.js +176 -0
  197. package/dist/dist-cli-preview/chunks/sv-CW7FL5HA.js +341 -0
  198. package/dist/dist-cli-preview/chunks/sv-CiCeNX1x.js +720 -0
  199. package/dist/dist-cli-preview/chunks/sv-DefBhX0c.js +563 -0
  200. package/dist/dist-cli-preview/chunks/sv-iaAh80e4.js +189 -0
  201. package/dist/dist-cli-preview/chunks/th-BNEA6ESz.js +720 -0
  202. package/dist/dist-cli-preview/chunks/th-BYBMKmSh.js +341 -0
  203. package/dist/dist-cli-preview/chunks/th-DMPCj1Fg.js +189 -0
  204. package/dist/dist-cli-preview/chunks/th-DV3lk4-6.js +563 -0
  205. package/dist/dist-cli-preview/chunks/th-F8oLBw5n.js +176 -0
  206. package/dist/dist-cli-preview/chunks/th-fPXxGW_m.js +628 -0
  207. package/dist/dist-cli-preview/chunks/tl-BMLmbhme.js +628 -0
  208. package/dist/dist-cli-preview/chunks/tl-BXIS85ly.js +176 -0
  209. package/dist/dist-cli-preview/chunks/tl-CDigaLsK.js +341 -0
  210. package/dist/dist-cli-preview/chunks/tl-DVdSJCnc.js +563 -0
  211. package/dist/dist-cli-preview/chunks/tl-fdtlfqan.js +720 -0
  212. package/dist/dist-cli-preview/chunks/tl-w5CgYWXn.js +189 -0
  213. package/dist/dist-cli-preview/chunks/tr-BA1MDk8A.js +563 -0
  214. package/dist/dist-cli-preview/chunks/tr-CHri_kqV.js +189 -0
  215. package/dist/dist-cli-preview/chunks/tr-DD75kuPl.js +720 -0
  216. package/dist/dist-cli-preview/chunks/tr-Mq5Hfqt2.js +628 -0
  217. package/dist/dist-cli-preview/chunks/tr-PxiurNCr.js +341 -0
  218. package/dist/dist-cli-preview/chunks/tr-YXIIDIEV.js +176 -0
  219. package/dist/dist-cli-preview/chunks/trash-2-Bq4IqH0j.js +137 -0
  220. package/dist/dist-cli-preview/chunks/uk-B4aYnJ8t.js +341 -0
  221. package/dist/dist-cli-preview/chunks/uk-ByJtQJHi.js +189 -0
  222. package/dist/dist-cli-preview/chunks/uk-CCVTTskN.js +720 -0
  223. package/dist/dist-cli-preview/chunks/uk-CS0tJc6H.js +628 -0
  224. package/dist/dist-cli-preview/chunks/uk-CYYjeT-V.js +176 -0
  225. package/dist/dist-cli-preview/chunks/uk-DGb0m_JV.js +563 -0
  226. package/dist/dist-cli-preview/chunks/use-optional-store-Csor1Z3z.js +22 -0
  227. package/dist/dist-cli-preview/chunks/useInfiniteQuery-BpFtQ7DH.js +67 -0
  228. package/dist/dist-cli-preview/chunks/user-BGrQJ1GJ.js +31 -0
  229. package/dist/dist-cli-preview/chunks/users-DBL0isYy.js +27 -0
  230. package/dist/dist-cli-preview/chunks/vi-BoKSdzH3.js +341 -0
  231. package/dist/dist-cli-preview/chunks/vi-CHKjehVL.js +628 -0
  232. package/dist/dist-cli-preview/chunks/vi-DFicISRE.js +189 -0
  233. package/dist/dist-cli-preview/chunks/vi-DT4XS4HU.js +176 -0
  234. package/dist/dist-cli-preview/chunks/vi-RFwPNQ96.js +720 -0
  235. package/dist/dist-cli-preview/chunks/vi-SG6trKny.js +563 -0
  236. package/dist/dist-cli-preview/chunks/zh_CN-BJVGrpVl.js +714 -0
  237. package/dist/dist-cli-preview/chunks/zh_CN-BeGANQIJ.js +176 -0
  238. package/dist/dist-cli-preview/chunks/zh_CN-BwpNGMQN.js +189 -0
  239. package/dist/dist-cli-preview/chunks/zh_CN-CFu3GI2I.js +563 -0
  240. package/dist/dist-cli-preview/chunks/zh_CN-DrCrXsZC.js +341 -0
  241. package/dist/dist-cli-preview/chunks/zh_CN-x6mJyUQH.js +628 -0
  242. package/dist/dist-cli-preview/chunks/zh_TW-CorN6cwY.js +720 -0
  243. package/dist/dist-cli-preview/chunks/zh_TW-D9gGVyEb.js +176 -0
  244. package/dist/dist-cli-preview/chunks/zh_TW-DdD6Hf_A.js +628 -0
  245. package/dist/dist-cli-preview/chunks/zh_TW-JmyC1W5K.js +341 -0
  246. package/dist/dist-cli-preview/chunks/zh_TW-Oq4Chn8F.js +189 -0
  247. package/dist/dist-cli-preview/chunks/zh_TW-kUnD3TL4.js +563 -0
  248. package/dist/index.mjs +1220 -513
  249. package/dist/index.mjs.map +1 -1
  250. package/dist/skills/themes-review/SKILL.md +2 -2
  251. package/dist/skills/themes-review/references/navigation.md +3 -1
  252. package/package.json +60 -10
@@ -0,0 +1,1509 @@
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";
6
+ /**
7
+ * @license lucide-react v0.575.0 - ISC
8
+ *
9
+ * This source code is licensed under the ISC license.
10
+ * See the LICENSE file in the root directory of this source tree.
11
+ */
12
+ const re = [
13
+ ["line", { x1: "2", x2: "22", y1: "2", y2: "22", key: "a6p6uj" }],
14
+ ["path", { d: "M10.41 10.41a2 2 0 1 1-2.83-2.83", key: "1bzlo9" }],
15
+ ["line", { x1: "13.5", x2: "6", y1: "13.5", y2: "21", key: "1q0aeu" }],
16
+ ["line", { x1: "18", x2: "21", y1: "12", y2: "15", key: "5mozeu" }],
17
+ [
18
+ "path",
19
+ {
20
+ d: "M3.59 3.59A1.99 1.99 0 0 0 3 5v14a2 2 0 0 0 2 2h14c.55 0 1.052-.22 1.41-.59",
21
+ key: "mmje98"
22
+ }
23
+ ],
24
+ ["path", { d: "M21 15V5a2 2 0 0 0-2-2H9", key: "43el77" }]
25
+ ], bt = D("image-off", re);
26
+ /**
27
+ * @license lucide-react v0.575.0 - ISC
28
+ *
29
+ * This source code is licensed under the ISC license.
30
+ * See the LICENSE file in the root directory of this source tree.
31
+ */
32
+ const ie = [
33
+ ["path", { d: "m17 2 4 4-4 4", key: "nntrym" }],
34
+ ["path", { d: "M3 11v-1a4 4 0 0 1 4-4h14", key: "84bu3i" }],
35
+ ["path", { d: "m7 22-4-4 4-4", key: "1wqhfi" }],
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);
41
+ if (!e)
42
+ throw new Error(
43
+ "usePortalTenantClient must be used within a PortalTenantClientProvider"
44
+ );
45
+ return e;
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([
48
+ "visa",
49
+ "mastercard",
50
+ "amex",
51
+ "discover",
52
+ "jcb",
53
+ "maestro"
54
+ ]), _e = /* @__PURE__ */ new Set([
55
+ "apple_pay",
56
+ "google_pay",
57
+ "samsung_pay"
58
+ ]), me = /* @__PURE__ */ new Set([
59
+ "apple_pay",
60
+ "google_pay"
61
+ ]), ye = {
62
+ visa: "Visa",
63
+ mastercard: "Mastercard",
64
+ amex: "American Express",
65
+ discover: "Discover",
66
+ jcb: "JCB",
67
+ maestro: "Maestro"
68
+ }, fe = {
69
+ apple_pay: "Apple Pay",
70
+ google_pay: "Google Pay",
71
+ samsung_pay: "Samsung Pay"
72
+ }, P = {
73
+ paypal: "PayPal",
74
+ venmo: "Venmo",
75
+ klarna: "Klarna",
76
+ affirm: "Affirm",
77
+ afterpay: "Afterpay",
78
+ bread: "Bread",
79
+ skrill: "Skrill",
80
+ ideal: "iDEAL",
81
+ bancontact: "Bancontact",
82
+ eps: "EPS",
83
+ blik: "BLIK",
84
+ trustly: "Trustly",
85
+ oxxo: "OXXO",
86
+ pix: "Pix",
87
+ yape: "Yape",
88
+ mercado_pago: "Mercado Pago",
89
+ satispay: "Satispay",
90
+ alipay: "Alipay",
91
+ unionpay: "UnionPay",
92
+ gcash: "GCash",
93
+ grabpay: "GrabPay",
94
+ maya: "Maya",
95
+ upi: "UPI"
96
+ }, he = {
97
+ visa: "visa",
98
+ mastercard: "mastercard",
99
+ master: "mastercard",
100
+ "master card": "mastercard",
101
+ mc: "mastercard",
102
+ amex: "amex",
103
+ "american express": "amex",
104
+ americanexpress: "amex",
105
+ discover: "discover",
106
+ disc: "discover",
107
+ jcb: "jcb",
108
+ maestro: "maestro",
109
+ "international maestro": "maestro",
110
+ "uk maestro": "maestro",
111
+ paypal: "paypal",
112
+ venmo: "venmo",
113
+ "apple pay": "apple_pay",
114
+ applepay: "apple_pay",
115
+ "google pay": "google_pay",
116
+ googlepay: "google_pay",
117
+ "samsung pay": "samsung_pay",
118
+ samsungpay: "samsung_pay",
119
+ klarna: "klarna",
120
+ affirm: "affirm",
121
+ afterpay: "afterpay",
122
+ clearpay: "afterpay",
123
+ bread: "bread",
124
+ skrill: "skrill",
125
+ ideal: "ideal",
126
+ bancontact: "bancontact",
127
+ eps: "eps",
128
+ blik: "blik",
129
+ trustly: "trustly",
130
+ oxxo: "oxxo",
131
+ pix: "pix",
132
+ yape: "yape",
133
+ "mercado pago": "mercado_pago",
134
+ mercadopago: "mercado_pago",
135
+ satispay: "satispay",
136
+ alipay: "alipay",
137
+ unionpay: "unionpay",
138
+ gcash: "gcash",
139
+ grabpay: "grabpay",
140
+ maya: "maya",
141
+ paymaya: "maya",
142
+ upi: "upi",
143
+ "upi india": "upi"
144
+ }, ge = {
145
+ visa: "visa",
146
+ mastercard: "master",
147
+ amex: "american_express",
148
+ discover: "discover",
149
+ jcb: "jcb",
150
+ maestro: "maestro",
151
+ apple_pay: "apple_pay",
152
+ google_pay: "google_pay",
153
+ samsung_pay: "samsung_pay",
154
+ paypal: "paypal",
155
+ venmo: "venmo",
156
+ klarna: "klarna",
157
+ affirm: "affirm",
158
+ afterpay: "afterpay",
159
+ bread: "bread",
160
+ skrill: "skrill",
161
+ ideal: "ideal",
162
+ bancontact: "bancontact",
163
+ eps: "eps",
164
+ blik: "blik",
165
+ trustly: "trustly",
166
+ oxxo: "oxxo",
167
+ pix: "pix",
168
+ yape: "yape",
169
+ // The CDN asset (and the payment_icons gem it came from) spells this one
170
+ // without a separator, unlike the brand key.
171
+ mercado_pago: "mercadopago",
172
+ satispay: "satispay",
173
+ alipay: "alipay",
174
+ unionpay: "unionpay",
175
+ gcash: "gcash",
176
+ grabpay: "grabpay",
177
+ maya: "maya",
178
+ upi: "upi"
179
+ };
180
+ function p(e) {
181
+ const t = B(e);
182
+ return t ? he[t] ?? null : null;
183
+ }
184
+ function be(e) {
185
+ const t = p(e);
186
+ return t ? `${N}/${ge[t]}.svg` : g;
187
+ }
188
+ function y(e) {
189
+ const t = p(e);
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];
195
+ const r = A(t);
196
+ return r ? P[r] : null;
197
+ }
198
+ function ke(e) {
199
+ const t = A(e);
200
+ return t ? P[t] : null;
201
+ }
202
+ function ve(e) {
203
+ const t = p(e);
204
+ return t != null && pe.has(t) ? t : null;
205
+ }
206
+ function Pe(e) {
207
+ const t = p(e);
208
+ return t != null && _e.has(t) ? t : null;
209
+ }
210
+ function Ae(e) {
211
+ const t = p(e);
212
+ return t != null && me.has(t) ? t : null;
213
+ }
214
+ function A(e) {
215
+ const t = p(e);
216
+ return t != null && t in P ? t : null;
217
+ }
218
+ function xe(e) {
219
+ const t = B(e)?.replace(/\s+/g, "_");
220
+ return t === "card" || t === "credit_card";
221
+ }
222
+ function B(e) {
223
+ const t = e?.trim().toLowerCase().replace(/[_-]+/g, " ").replace(/\s+/g, " ");
224
+ return t || null;
225
+ }
226
+ const Ce = {
227
+ paypal: "email",
228
+ venmo: "handle",
229
+ upi: "handle",
230
+ ideal: "bank",
231
+ bancontact: "bank",
232
+ eps: "bank",
233
+ klarna: "none",
234
+ affirm: "none",
235
+ afterpay: "none",
236
+ bread: "none",
237
+ skrill: "email",
238
+ blik: "none",
239
+ trustly: "none",
240
+ oxxo: "none",
241
+ pix: "none",
242
+ yape: "none",
243
+ mercado_pago: "none",
244
+ satispay: "none",
245
+ alipay: "none",
246
+ unionpay: "none",
247
+ gcash: "none",
248
+ grabpay: "none",
249
+ maya: "none"
250
+ }, x = "Payment method", S = "•", Se = {
251
+ card: "Credit Card",
252
+ credit_card: "Credit Card",
253
+ paypal: "PayPal",
254
+ braintree_paypal: "PayPal",
255
+ apple_pay: "Apple Pay",
256
+ google_pay: "Google Pay",
257
+ affirm: "Affirm",
258
+ klarna: "Klarna",
259
+ bread: "Bread",
260
+ iap: "In-App Purchase",
261
+ citcon: "Citcon",
262
+ ppro: "PPRO",
263
+ dlocal: "dLocal",
264
+ droplet: "Droplet"
265
+ };
266
+ function j(e) {
267
+ return e?.replace(/([a-z])([A-Z])/g, "$1 $2").trim().toLowerCase().replace(/[_-]+/g, " ").replace(/\s+/g, " ") || null;
268
+ }
269
+ function Pt(e) {
270
+ const t = j(e);
271
+ return t === "card" || t === "credit card";
272
+ }
273
+ function At(...e) {
274
+ for (const t of e) {
275
+ const a = j(t);
276
+ if (!a) continue;
277
+ const n = a.replace(/\s+/g, "_");
278
+ return Se[n] ?? t?.trim() ?? null;
279
+ }
280
+ return null;
281
+ }
282
+ function qe(e, t) {
283
+ const a = u(e) ?? "••••";
284
+ return p(t) === "amex" ? `•••• •••••• •${a}` : `•••• •••• •••• ${a}`;
285
+ }
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;
289
+ }
290
+ function xt(e) {
291
+ const t = u(e);
292
+ if (!t) return null;
293
+ const a = [];
294
+ let n = !1;
295
+ const r = t.split(/\s+/);
296
+ for (const [i, l] of r.entries()) {
297
+ if (!/^[•\d]+$/.test(l)) return null;
298
+ i > 0 && a.push({ kind: "gap" });
299
+ let d = 0;
300
+ for (; l[d] === S; ) d += 1;
301
+ const _ = l.slice(d);
302
+ if (_.includes(S)) return null;
303
+ d > 0 && (n = !0, a.push({ kind: "dots", count: d })), _ && a.push({ kind: "text", value: _ });
304
+ }
305
+ return n ? a : null;
306
+ }
307
+ function Ee(e) {
308
+ const t = u(e);
309
+ if (!t) return null;
310
+ const a = t.indexOf("@");
311
+ if (a <= 0) return t;
312
+ const n = t.slice(0, a), r = t.slice(a);
313
+ if (n.length <= 2) return `${n[0] ?? ""}••${r}`;
314
+ const i = "•".repeat(Math.min(n.length - 2, 6));
315
+ return `${n[0]}${i}${n[n.length - 1]}${r}`;
316
+ }
317
+ function Te(e) {
318
+ const t = A(
319
+ e.brand ?? e.fallbackLabel
320
+ );
321
+ switch (t != null ? Ce[t] : "none") {
322
+ case "email":
323
+ return Ee(e.emailAddress);
324
+ case "handle":
325
+ return u(e.accountHandle);
326
+ case "bank":
327
+ return Ne(e);
328
+ case "none":
329
+ return null;
330
+ }
331
+ }
332
+ function De(e) {
333
+ return Te(e) ?? ke(e.brand ?? e.fallbackLabel) ?? y(e.brand ?? e.fallbackLabel) ?? u(e.fallbackLabel) ?? x;
334
+ }
335
+ function q({
336
+ brand: e,
337
+ logoUrl: t,
338
+ alt: a
339
+ }) {
340
+ const n = p(e), i = u(t) ?? g;
341
+ return {
342
+ primaryUrl: n ? be(n) : i,
343
+ fallbackUrl: n ? i : g,
344
+ alt: u(a) ?? y(e) ?? u(e) ?? x,
345
+ brand: n
346
+ };
347
+ }
348
+ function Me(e) {
349
+ const t = Ae(e);
350
+ return t ? {
351
+ brand: t,
352
+ label: y(t) ?? x
353
+ } : null;
354
+ }
355
+ function Ct(e) {
356
+ if (e.kind === "card") {
357
+ const r = Le(e.last4, e.brand), i = q({
358
+ brand: e.brand,
359
+ logoUrl: e.logoUrl,
360
+ alt: y(e.brand) ?? "Card"
361
+ }), l = Me(e.walletBrand);
362
+ return {
363
+ kind: "card",
364
+ label: r,
365
+ logo: i,
366
+ brand: i.brand,
367
+ walletBadge: l,
368
+ accessibilityLabel: L(i.alt, r)
369
+ };
370
+ }
371
+ const t = e.brand ?? e.fallbackLabel, a = De(e), n = q({
372
+ brand: t,
373
+ logoUrl: e.logoUrl,
374
+ alt: y(t) ?? e.fallbackLabel
375
+ });
376
+ return {
377
+ kind: "non_card",
378
+ label: a,
379
+ logo: n,
380
+ brand: n.brand,
381
+ walletBadge: null,
382
+ accessibilityLabel: L(n.alt, a)
383
+ };
384
+ }
385
+ function Ne(e) {
386
+ const t = u(e.bankName), a = u(e.accountLast4), n = a ? `••${a}` : null;
387
+ return t && n ? `${t} ${n}` : t ?? n;
388
+ }
389
+ function L(e, t) {
390
+ return e === t ? t : `${e} ${t}`;
391
+ }
392
+ function u(e) {
393
+ const t = e?.trim();
394
+ return t || null;
395
+ }
396
+ const U = o.createContext(null), Be = U.Provider;
397
+ function St() {
398
+ const e = o.use(U);
399
+ if (!e)
400
+ throw new Error("usePayApi must be used within a PayApiProvider");
401
+ return e;
402
+ }
403
+ const O = o.createContext(null), je = O.Provider;
404
+ function qt() {
405
+ const e = o.use(O);
406
+ if (!e)
407
+ throw new Error(
408
+ "useLanguagesApi must be used within a LanguagesApiProvider"
409
+ );
410
+ return e;
411
+ }
412
+ function Ue(e) {
413
+ return e instanceof DOMException && e.name === "AbortError" || e instanceof Error && e.name === "AbortError";
414
+ }
415
+ function Oe(e) {
416
+ const t = Z({
417
+ baseUrl: e.baseUrl,
418
+ cache: e.cache,
419
+ credentials: e.credentials,
420
+ fetch: e.fetch,
421
+ headers: {
422
+ Accept: "application/json",
423
+ "Content-Type": "application/json",
424
+ ...e.defaultHeaders
425
+ },
426
+ throwOnError: !0
427
+ }), a = e.getHeaders;
428
+ return a && t.interceptors.request.use((n) => {
429
+ for (const [r, i] of Object.entries(a()))
430
+ n.headers.set(r, i);
431
+ return n;
432
+ }), t.interceptors.error.use(
433
+ X({
434
+ onResponseError: (n) => {
435
+ n.status === 401 && e.onAuthError?.();
436
+ },
437
+ shouldPassThroughTransportError: Ue
438
+ })
439
+ ), t;
440
+ }
441
+ function Re(e) {
442
+ return {
443
+ code: e.code ?? "",
444
+ name: e.name ?? ""
445
+ };
446
+ }
447
+ function $e(e) {
448
+ return {
449
+ request_id: e?.request_id ?? null,
450
+ timestamp: e?.timestamp ?? "",
451
+ pagination: e?.pagination ? {
452
+ cursor: e.pagination.cursor ?? null,
453
+ limit: e.pagination.limit,
454
+ next_cursor: e.pagination.next_cursor ?? null,
455
+ prev_cursor: e.pagination.prev_cursor ?? null
456
+ } : void 0
457
+ };
458
+ }
459
+ function ze(e) {
460
+ return {
461
+ listLanguages: async (t) => {
462
+ const a = await W({
463
+ client: e,
464
+ query: {
465
+ "page[cursor]": t?.cursor,
466
+ "page[limit]": t?.limit
467
+ }
468
+ });
469
+ return {
470
+ languages: (a.languages ?? []).map(Re),
471
+ meta: $e(a.meta)
472
+ };
473
+ }
474
+ };
475
+ }
476
+ const b = (e) => e.client.get({
477
+ responseStyle: "data",
478
+ url: "/api/pay/addresses",
479
+ ...e
480
+ }), Fe = (e) => e.client.post({
481
+ responseStyle: "data",
482
+ url: "/api/pay/addresses",
483
+ ...e,
484
+ headers: {
485
+ "Content-Type": "application/json",
486
+ ...e.headers
487
+ }
488
+ }), Ie = (e) => e.client.delete({
489
+ responseStyle: "data",
490
+ url: "/api/pay/addresses/{id}",
491
+ ...e
492
+ }), Ye = (e) => e.client.patch({
493
+ responseStyle: "data",
494
+ url: "/api/pay/addresses/{id}",
495
+ ...e,
496
+ headers: {
497
+ "Content-Type": "application/json",
498
+ ...e.headers
499
+ }
500
+ }), k = (e) => e.client.get({
501
+ responseStyle: "data",
502
+ url: "/api/pay/payment_methods",
503
+ ...e
504
+ }), He = (e) => e.client.post({
505
+ responseStyle: "data",
506
+ url: "/api/pay/payment_methods",
507
+ ...e,
508
+ headers: {
509
+ "Content-Type": "application/json",
510
+ ...e.headers
511
+ }
512
+ }), We = (e) => e.client.post({
513
+ responseStyle: "data",
514
+ url: "/api/pay/payment_methods/three_ds_confirm",
515
+ ...e,
516
+ headers: {
517
+ "Content-Type": "application/json",
518
+ ...e.headers
519
+ }
520
+ }), Ve = (e) => e.client.post({
521
+ responseStyle: "data",
522
+ url: "/api/pay/payment_methods/three_ds_status",
523
+ ...e,
524
+ headers: {
525
+ "Content-Type": "application/json",
526
+ ...e.headers
527
+ }
528
+ }), Ge = (e) => e.client.post({
529
+ responseStyle: "data",
530
+ url: "/api/pay/payment_methods/three_ds_cancel",
531
+ ...e,
532
+ headers: {
533
+ "Content-Type": "application/json",
534
+ ...e.headers
535
+ }
536
+ }), Ke = (e) => e.client.delete({
537
+ responseStyle: "data",
538
+ url: "/api/pay/payment_methods/{id}",
539
+ ...e
540
+ }), Ze = (e) => e.client.patch({
541
+ responseStyle: "data",
542
+ url: "/api/pay/payment_methods/{id}",
543
+ ...e,
544
+ headers: {
545
+ "Content-Type": "application/json",
546
+ ...e.headers
547
+ }
548
+ }), Xe = (e) => e.client.get({
549
+ responseStyle: "data",
550
+ url: "/api/pay/payment_methods/vault",
551
+ ...e
552
+ }), v = (e) => e.client.get({
553
+ responseStyle: "data",
554
+ url: "/api/pay/points_ledgers",
555
+ ...e
556
+ });
557
+ function E(e) {
558
+ return {
559
+ id: e.id ?? 0,
560
+ name: e.name ?? null,
561
+ street1: e.street1 ?? "",
562
+ street2: e.street2 ?? null,
563
+ city: e.city ?? "",
564
+ state: e.state ?? "",
565
+ zip: e.zip ?? "",
566
+ country: e.country ?? "",
567
+ phone: e.phone ?? null,
568
+ default: e.default ?? !1,
569
+ created_at: e.created_at ?? null,
570
+ updated_at: e.updated_at ?? null
571
+ };
572
+ }
573
+ function Je(e) {
574
+ const t = e;
575
+ return {
576
+ id: t.id ?? 0,
577
+ name: e.name ?? null,
578
+ street1: e.street1 ?? "",
579
+ street2: e.street2 ?? null,
580
+ city: e.city ?? "",
581
+ state: e.state ?? "",
582
+ zip: e.zip ?? "",
583
+ country: e.country ?? "",
584
+ default: !1,
585
+ created_at: t.created_at ?? null,
586
+ updated_at: t.updated_at ?? null
587
+ };
588
+ }
589
+ function h(e) {
590
+ return {
591
+ id: e.id ?? 0,
592
+ type: e.type ?? "card",
593
+ brand: e.brand ?? null,
594
+ last_four: e.last_four ?? "",
595
+ logo_url: e.logo_url ?? null,
596
+ exp_month: e.exp_month ?? null,
597
+ exp_year: e.exp_year ?? null,
598
+ card_holder: e.card_holder ?? null,
599
+ default: e.default ?? !1,
600
+ billing_address: e.billing_address ? Je(e.billing_address) : null,
601
+ created_at: e.created_at ?? null,
602
+ updated_at: e.updated_at ?? null
603
+ };
604
+ }
605
+ function Qe(e) {
606
+ return {
607
+ fetchAddresses: async () => {
608
+ const t = await b({ client: e });
609
+ return {
610
+ addresses: (t.addresses ?? []).map(E),
611
+ meta: {
612
+ request_id: t.meta?.request_id ?? "",
613
+ timestamp: t.meta?.timestamp ?? ""
614
+ }
615
+ };
616
+ },
617
+ createAddress: async (t) => {
618
+ const a = await Fe({ client: e, body: t });
619
+ if (!a.address)
620
+ throw new Error("addresses_create returned no address");
621
+ return E(a.address);
622
+ },
623
+ updateAddress: async (t, a) => {
624
+ await Ye({ client: e, path: { id: t }, body: a });
625
+ },
626
+ deleteAddress: async (t) => {
627
+ await Ie({ client: e, path: { id: t } });
628
+ },
629
+ fetchPaymentMethods: async () => {
630
+ const t = await k({ client: e });
631
+ return {
632
+ payment_methods: (t.payment_methods ?? []).map(h),
633
+ meta: {
634
+ request_id: t.meta?.request_id ?? "",
635
+ timestamp: t.meta?.timestamp ?? ""
636
+ }
637
+ };
638
+ },
639
+ createPaymentMethod: async (t) => {
640
+ const a = await He({ client: e, body: t });
641
+ if ("three_ds" in a) {
642
+ if (!a.three_ds.session_token)
643
+ throw new Error("three_ds_required without a session_token");
644
+ return {
645
+ three_ds: {
646
+ status: "three_ds_required",
647
+ session_token: a.three_ds.session_token,
648
+ tds_method_content: a.three_ds.tds_method_content ?? null,
649
+ fingerprinting_required: a.three_ds.fingerprinting_required ?? null,
650
+ merchant_tx_id: a.three_ds.merchant_tx_id ?? null
651
+ },
652
+ meta: {
653
+ request_id: a.meta?.request_id ?? "",
654
+ timestamp: a.meta?.timestamp ?? ""
655
+ }
656
+ };
657
+ }
658
+ if (!a.payment_method)
659
+ throw new Error("payment_methods_create returned no payment_method");
660
+ return {
661
+ payment_method: h(a.payment_method),
662
+ meta: {
663
+ request_id: a.meta?.request_id ?? "",
664
+ timestamp: a.meta?.timestamp ?? ""
665
+ }
666
+ };
667
+ },
668
+ confirmPaymentMethod3DS: async ({ session_token: t }) => {
669
+ const a = await We({
670
+ client: e,
671
+ body: { session_token: t }
672
+ });
673
+ if ("payment_method" in a) {
674
+ const r = a.three_ds;
675
+ return {
676
+ status: "approved",
677
+ session_token: r.session_token ?? t,
678
+ payment_method: h(a.payment_method),
679
+ was_created: r.was_created ?? void 0
680
+ };
681
+ }
682
+ const n = a.three_ds;
683
+ if (n.status !== "three_ds_challenge")
684
+ throw new Error(`Unexpected 3ds_confirm status: ${n.status}`);
685
+ return {
686
+ status: "three_ds_challenge",
687
+ session_token: n.session_token ?? t,
688
+ challenge_form: n.challenge_form ?? null,
689
+ challenge_url: n.challenge_url ?? null
690
+ };
691
+ },
692
+ fetchPaymentMethod3DSStatus: async ({ session_token: t }) => {
693
+ const a = await Ve({
694
+ client: e,
695
+ body: { session_token: t }
696
+ });
697
+ return {
698
+ session_token: a.three_ds.session_token,
699
+ state: a.three_ds.state,
700
+ payment_method_id: a.three_ds.payment_method_id ?? null,
701
+ expired: a.three_ds.expired ?? null
702
+ };
703
+ },
704
+ cancelPaymentMethod3DS: async ({ session_token: t }) => {
705
+ const a = await Ge({
706
+ client: e,
707
+ body: { session_token: t }
708
+ });
709
+ return {
710
+ session_token: a.three_ds.session_token,
711
+ state: a.three_ds.state,
712
+ cancelled: a.three_ds.cancelled ?? null
713
+ };
714
+ },
715
+ updatePaymentMethod: async (t, a) => {
716
+ await Ze({
717
+ client: e,
718
+ path: { id: t },
719
+ body: a
720
+ });
721
+ },
722
+ deletePaymentMethod: async (t) => {
723
+ await Ke({
724
+ client: e,
725
+ path: { id: t }
726
+ });
727
+ },
728
+ fetchVaultCredentials: async () => {
729
+ const t = await Xe({ client: e });
730
+ return {
731
+ vault: {
732
+ vault_id: t.vault?.vault_id ?? "",
733
+ environment: t.vault?.environment ?? "sandbox",
734
+ route_id: t.vault?.route_id ?? null
735
+ },
736
+ meta: {
737
+ request_id: t.meta?.request_id ?? "",
738
+ timestamp: t.meta?.timestamp ?? ""
739
+ }
740
+ };
741
+ },
742
+ fetchPointsLedgers: async () => {
743
+ const t = await v({ client: e });
744
+ return {
745
+ points_ledgers: (t.points_ledgers ?? []).map((a) => ({
746
+ id: a.id ?? 0,
747
+ amount: a.amount ?? 0,
748
+ total_balance: a.total_balance ?? 0,
749
+ metadata: a.metadata ?? null,
750
+ created_at: a.created_at ?? ""
751
+ })),
752
+ meta: {
753
+ request_id: t.meta?.request_id ?? "",
754
+ timestamp: t.meta?.timestamp ?? ""
755
+ }
756
+ };
757
+ }
758
+ };
759
+ }
760
+ const R = o.createContext(null), we = R.Provider;
761
+ function Lt() {
762
+ const e = o.use(R);
763
+ if (!e)
764
+ throw new Error("useOrdersApi must be used within an OrdersCoreProvider");
765
+ return e;
766
+ }
767
+ function et({
768
+ api: e,
769
+ children: t
770
+ }) {
771
+ return /* @__PURE__ */ c.jsx(we, { value: e, children: t });
772
+ }
773
+ function $(e) {
774
+ return (e ?? []).map(
775
+ (t) => ({
776
+ namespace: t.namespace,
777
+ key: t.key,
778
+ value: t.value,
779
+ value_type: t.value_type
780
+ })
781
+ );
782
+ }
783
+ function m(e, t) {
784
+ if (e == null)
785
+ throw new Error(
786
+ `BFF returned an order without required money field "${t}"`
787
+ );
788
+ return e;
789
+ }
790
+ function z(e, t) {
791
+ return typeof e == "string" && e ? e : t;
792
+ }
793
+ function T(e) {
794
+ return e ? {
795
+ id: e.id ?? 0,
796
+ name: e.name ?? null,
797
+ address1: e.address1 ?? null,
798
+ address2: e.address2 ?? null,
799
+ city: e.city ?? null,
800
+ state: e.state ?? null,
801
+ postal_code: e.postal_code ?? null,
802
+ country_code: e.country_code ?? null,
803
+ phone: e.phone ?? null
804
+ } : null;
805
+ }
806
+ function tt(e) {
807
+ return e ? {
808
+ id: e.id ?? 0,
809
+ source: e.source ?? "",
810
+ payment_type: e.payment_type ?? "",
811
+ card_network: e.card_network ?? null,
812
+ last4: e.last4 ?? null,
813
+ logo_url: e.logo_url ?? null
814
+ } : null;
815
+ }
816
+ function at(e) {
817
+ return e ? {
818
+ id: e.id ?? null,
819
+ title: e.title ?? ""
820
+ } : null;
821
+ }
822
+ function nt(e) {
823
+ return Array.isArray(e) ? e.flatMap((t) => {
824
+ if (typeof t != "object" || t === null) return [];
825
+ const a = t;
826
+ return typeof a.tracking_number != "string" || a.tracking_number.length === 0 ? [] : [
827
+ {
828
+ id: typeof a.id == "number" ? a.id : 0,
829
+ tracking_number: a.tracking_number,
830
+ shipping_carrier: typeof a.shipping_carrier == "string" ? a.shipping_carrier : null,
831
+ tracking_url: typeof a.tracking_url == "string" ? a.tracking_url : null
832
+ }
833
+ ];
834
+ }) : [];
835
+ }
836
+ function rt(e) {
837
+ 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
+ return {
839
+ id: e.id ?? 0,
840
+ token: e.token ?? "",
841
+ order_number: typeof l == "string" && l.length > 0 ? l : null,
842
+ status: e.status ?? "pending",
843
+ // `fulfillment_status` is exposed by the BFF OrderBlueprinter but the
844
+ // generated client may not yet include it before `pnpm generate` runs.
845
+ // Read defensively (same as `mapToListOrder`) and fall back to
846
+ // `unfulfilled` so the status tag renders a real fulfillment state.
847
+ fulfillment_status: typeof e.fulfillment_status == "string" ? e.fulfillment_status : "unfulfilled",
848
+ financial_status: z(e.financial_status, "pending"),
849
+ subtotal: t,
850
+ subtotal_in_currency: e.subtotal_in_currency ?? t,
851
+ // STU2-2580: the display-ready Commerce::Totals breakdown (gross catalog
852
+ // subtotal + inclusive-tax split). Read defensively — the BFF serves it on
853
+ // the detail view, but the generated client types may not include it until
854
+ // `pnpm generate` runs. Passed through so PortalOrderDetail can render the
855
+ // gross subtotal; absent on payloads that predate the field.
856
+ totals: _,
857
+ discount: a,
858
+ discount_in_currency: e.discount_in_currency ?? a,
859
+ shipping: n,
860
+ shipping_in_currency: e.shipping_in_currency ?? n,
861
+ tax: r,
862
+ tax_in_currency: e.tax_in_currency ?? r,
863
+ total: i,
864
+ total_in_currency: e.total_in_currency ?? i,
865
+ currency: e.currency ?? "",
866
+ line_items: (e.line_items ?? []).map((s) => {
867
+ const f = s.price ?? "0", C = s.total ?? "0";
868
+ return {
869
+ id: s.id ?? 0,
870
+ product_id: s.product_id ?? 0,
871
+ product_name: s.product_name ?? "",
872
+ variant_id: s.variant_id ?? null,
873
+ variant_name: s.variant_name ?? null,
874
+ sku: s.sku ?? null,
875
+ image_url: s.image_url ?? null,
876
+ quantity: s.quantity ?? 0,
877
+ price: f,
878
+ price_in_currency: s.price_in_currency ?? f,
879
+ total: C,
880
+ total_in_currency: s.total_in_currency ?? C,
881
+ source_subscription: s.source_subscription?.subscription_token ? { subscription_token: s.source_subscription.subscription_token } : null
882
+ };
883
+ }),
884
+ metafields: $(e.metafields),
885
+ customer_name: e.customer_name ?? null,
886
+ 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),
891
+ subscription_order: e.subscription_order ?? !1,
892
+ subscription_token: e.subscription_token ?? null,
893
+ // Returned by the BFF but not in the OpenAPI spec yet (added
894
+ // alongside this UI work). Defensive read so we don't crash on
895
+ // older deployments that haven't shipped the blueprinter change.
896
+ tracking_informations: nt(
897
+ e.tracking_informations
898
+ ),
899
+ // These fields are returned by the BFF but not yet in the OpenAPI spec.
900
+ // Regenerate the portal-tenant client (`pnpm generate`) and drop these
901
+ // defensive casts once the paired BE OpenAPI change lands.
902
+ total_points_credited: typeof e.total_points_credited == "number" ? e.total_points_credited : void 0,
903
+ customer_points_balance: typeof e.customer_points_balance == "number" ? e.customer_points_balance : void 0,
904
+ points_applied: typeof e.points_applied == "number" ? e.points_applied : void 0,
905
+ points_applied_amount: typeof e.points_applied_amount == "number" ? e.points_applied_amount : void 0,
906
+ points_applied_amount_in_currency: typeof e.points_applied_amount_in_currency == "string" ? e.points_applied_amount_in_currency : null,
907
+ order_total_after_points_redemption: typeof e.order_total_after_points_redemption == "number" ? e.order_total_after_points_redemption : void 0,
908
+ order_total_after_points_redemption_in_currency: typeof e.order_total_after_points_redemption_in_currency == "string" ? e.order_total_after_points_redemption_in_currency : null,
909
+ sale_date: e.sale_date ?? null,
910
+ created_at: e.created_at ?? "",
911
+ updated_at: e.updated_at ?? ""
912
+ };
913
+ }
914
+ function it(e) {
915
+ const t = e.line_items?.[0], a = e.order_number, n = typeof a == "string" ? a : "";
916
+ return {
917
+ id: e.id ?? 0,
918
+ external_id: null,
919
+ order_number: n,
920
+ email: e.customer_email ?? null,
921
+ first_name: e.customer_name?.split(" ")[0] ?? null,
922
+ last_name: e.customer_name?.split(" ").slice(1).join(" ") || null,
923
+ amount: e.total ?? "0",
924
+ status: e.status ?? "pending",
925
+ order_status: e.status ?? "pending",
926
+ fulfillment_status: (typeof e.fulfillment_status == "string" ? e.fulfillment_status : null) ?? "unfulfilled",
927
+ financial_status: z(e.financial_status, "pending"),
928
+ currency_code: e.currency ?? "",
929
+ note: null,
930
+ token: e.token ?? "",
931
+ warehouse_id: null,
932
+ source: "web",
933
+ created_at: e.created_at ?? "",
934
+ updated_at: e.updated_at ?? "",
935
+ total_display_amount: e.total_in_currency ?? e.total ?? "0",
936
+ total_cv: 0,
937
+ total_qv: 0,
938
+ // BFF doesn't expose a currency symbol; leave empty so `formatOrderTotal`
939
+ // falls back to "$" rather than rendering the ISO code (e.g. "USD50.00").
940
+ currency_symbol: "",
941
+ items_count: e.line_items?.length ?? 0,
942
+ quantity_count: e.line_items?.reduce((r, i) => r + (i.quantity ?? 0), 0) ?? 0,
943
+ order_on_behalf_of: !1,
944
+ sale_date: e.sale_date ?? null,
945
+ metafields: $(e.metafields),
946
+ customer: null,
947
+ first_item: t ? {
948
+ title: t.product_name ?? "",
949
+ image_url: t.image_url ?? ""
950
+ } : null,
951
+ // Up to 3 product image URLs from the order's line items, in line-item
952
+ // order, used for list-row photo stacks. Skips items without an image.
953
+ thumbnail_image_urls: e.line_items?.map((r) => r.image_url).filter((r) => typeof r == "string" && r.length > 0).slice(0, 3) ?? [],
954
+ // The BFF indicates subscription_order but doesn't expose the
955
+ // subscription's lifecycle status. We set "active" because the order's
956
+ // existence implies the subscription was active at purchase time. The
957
+ // real status is shown on the subscription detail screen.
958
+ subscription: e.subscription_order && e.subscription_token ? { subscription_token: e.subscription_token, status: "active" } : e.subscription_order ? { subscription_token: "", status: "active" } : null
959
+ };
960
+ }
961
+ function st(e) {
962
+ return {
963
+ fetchOrderById: async (t) => {
964
+ const a = await Q({
965
+ client: e,
966
+ path: { token: String(t) }
967
+ });
968
+ if (!a.order)
969
+ throw new Error(
970
+ "BFF returned a successful response without order data"
971
+ );
972
+ return {
973
+ order: rt(a.order),
974
+ meta: {
975
+ request_id: a.meta?.request_id ?? "",
976
+ timestamp: a.meta?.timestamp ?? ""
977
+ }
978
+ };
979
+ },
980
+ 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
+ });
990
+ return {
991
+ orders: (a.orders ?? []).map(it),
992
+ meta: {
993
+ request_id: a.meta?.request_id ?? "",
994
+ timestamp: a.meta?.timestamp ?? "",
995
+ pagination: {
996
+ cursor: a.meta?.pagination?.cursor ?? null,
997
+ limit: a.meta?.pagination?.limit ?? 25,
998
+ next_cursor: a.meta?.pagination?.next_cursor ?? null,
999
+ prev_cursor: a.meta?.pagination?.prev_cursor ?? null
1000
+ }
1001
+ }
1002
+ };
1003
+ }
1004
+ };
1005
+ }
1006
+ function ot({
1007
+ children: e
1008
+ }) {
1009
+ const t = le(), a = o.useMemo(() => st(t), [t]);
1010
+ return /* @__PURE__ */ c.jsx(et, { api: a, children: e });
1011
+ }
1012
+ const lt = {
1013
+ profile_try_again: "Try again",
1014
+ profile_at_a_glance: "At a glance",
1015
+ profile_default_payment: "Default payment",
1016
+ profile_no_default_payment: "No default payment method",
1017
+ profile_no_saved_cards: "No saved payment methods",
1018
+ profile_payments_load_failed: "Unable to load payment methods. Please try again.",
1019
+ profile_payments_retry: "Retry payment methods",
1020
+ profile_card_ending: "{{brand}} ending in {{lastFour}}",
1021
+ profile_latest_order: "Latest order",
1022
+ profile_no_orders: "No orders yet",
1023
+ profile_view_orders: "View orders",
1024
+ profile_orders_load_failed: "Unable to load orders. Please try again.",
1025
+ profile_orders_retry: "Retry orders",
1026
+ profile_next_subscription: "Next subscription",
1027
+ profile_no_next_subscription: "No upcoming billing",
1028
+ profile_view_subscriptions: "View subscriptions",
1029
+ profile_next_bill_on: "Bills {{date}}",
1030
+ profile_subscription_load_failed: "Unable to load subscriptions. Please try again.",
1031
+ profile_subscription_retry: "Retry subscriptions",
1032
+ profile_points_load_failed: "Unable to load rewards. Please try again.",
1033
+ profile_points_retry: "Retry rewards",
1034
+ profile_points_unavailable: "Reward points are not available for this account.",
1035
+ profile_points_refunded: "{{label}} refunded",
1036
+ search_country: "Search countries",
1037
+ no_results_found: "No results found.",
1038
+ account_preferences: "Account & preferences",
1039
+ member_of: "Member of {{company}}",
1040
+ profile_loading: "Loading your profile…",
1041
+ profile_back: "Back to profile",
1042
+ profile_qr_code: "Open your public site",
1043
+ profile_language_hint: "Choose the language you use for your account.",
1044
+ profile_sign_out_error: "Unable to sign out. Please try again.",
1045
+ profile_languages_unavailable: "Languages could not load. Please try again.",
1046
+ breadcrumb: "Profile",
1047
+ edit_profile: "Edit Profile",
1048
+ first_name: "First Name",
1049
+ last_name: "Last Name",
1050
+ phone_number: "Phone Number",
1051
+ bio: "Bio",
1052
+ add_a_short_bio: "Add a short bio",
1053
+ language: "Language",
1054
+ first_name_is_required: "First name is required",
1055
+ last_name_is_required: "Last name is required",
1056
+ language_is_required: "Language is required",
1057
+ saving: "Saving...",
1058
+ save_changes: "Save Changes",
1059
+ select_an_option: "Select an option",
1060
+ points_history: "{{label}} History",
1061
+ points_available: "{{label}} Available",
1062
+ points_awarded: "{{label}} Awarded",
1063
+ points_redeemed: "{{label}} Redeemed",
1064
+ transaction: "Transaction",
1065
+ no_points_history_found: "No {{label}} history found",
1066
+ email: "Email",
1067
+ shipping_addresses: "Shipping Addresses",
1068
+ add_an_address: "Add an Address",
1069
+ delete_address: "Delete Address",
1070
+ delete_address_message: "Are you sure you want to delete this address? This action cannot be undone.",
1071
+ delete: "Delete",
1072
+ no_saved_addresses_found: "No saved addresses found",
1073
+ add_address: "Add Address",
1074
+ edit_address: "Edit Address",
1075
+ set_as_default_address: "Set as default address",
1076
+ save_address: "Save Address",
1077
+ card_number: "Card Number",
1078
+ expiration_date: "Expiration (MM / YY)",
1079
+ cvc: "CVC",
1080
+ cardholder_name: "Cardholder Name",
1081
+ add_credit_card: "Add Credit Card",
1082
+ save_card: "Save Card",
1083
+ securing: "Loading secure form...",
1084
+ payment_methods: "Payment Methods",
1085
+ orders: "Orders",
1086
+ subscriptions: "Subscriptions",
1087
+ add_payment_method: "Add Payment Method",
1088
+ delete_credit_card: "Delete Credit Card",
1089
+ delete_credit_card_message: "Are you sure you want to delete this payment method? This action cannot be undone.",
1090
+ delete_card: "Delete card",
1091
+ deleting: "Deleting...",
1092
+ tap_to_confirm: "Tap to confirm",
1093
+ edit_card: "Card Details",
1094
+ billing_address: "Billing Address",
1095
+ country: "Country",
1096
+ name: "Name",
1097
+ name_change_disabled_hint: "Your admin manages the name on this account.",
1098
+ address_line_1: "Address Line 1",
1099
+ address_line_2: "Apartment, suite, etc.",
1100
+ city: "City",
1101
+ state: "State",
1102
+ province: "Province",
1103
+ prefecture: "Prefecture",
1104
+ zip_code: "Zip Code",
1105
+ postal_code: "Postal Code",
1106
+ select_state: "Select state",
1107
+ set_as_default_payment_method: "Set as default payment method",
1108
+ same_as_shipping: "Same as shipping address",
1109
+ use_a_different_address: "Use a different address",
1110
+ add_billing_address: "Add billing address",
1111
+ cancel: "Cancel",
1112
+ save: "Save",
1113
+ close: "Close",
1114
+ edit: "Edit",
1115
+ default: "Default",
1116
+ card_expires: "Expires",
1117
+ no_billing_address: "No billing address on file",
1118
+ default_payment_method_updated: "Payment method updated",
1119
+ failed_to_set_default_payment_method: "Failed to update payment method",
1120
+ personal_information: "Personal information",
1121
+ phone: "Phone",
1122
+ add_phone_number: "Add phone number",
1123
+ pts_available: "{{count}} {{label}} available",
1124
+ see_all_transactions: "See all {{count}} transactions",
1125
+ no_points_yet: "No {{label}} yet",
1126
+ earn_points_hint: "Earn {{label}} on every order to unlock rewards.",
1127
+ your_mysite_link: "Your MySite link",
1128
+ edit_link: "Edit link",
1129
+ public_link: "Public link",
1130
+ set_your_mysite_link: "Set your MySite link",
1131
+ copy: "Copy",
1132
+ cardholder: "Cardholder",
1133
+ accepted_cards: "Visa, Mastercard, Amex",
1134
+ address: "Address",
1135
+ social_media: "Social media",
1136
+ connected_count: "{{count}} connected",
1137
+ connect: "Connect",
1138
+ sign_out: "Sign out",
1139
+ sign_out_description: "You can sign back in any time",
1140
+ profile_updated: "Profile updated",
1141
+ failed_to_update_profile: "Failed to update profile",
1142
+ failed_to_delete_payment_method: "Failed to delete payment method",
1143
+ failed_to_update_payment_method: "Failed to update payment method",
1144
+ address_created: "Address created",
1145
+ address_already_exists: "This address already exists",
1146
+ failed_to_create_address: "Failed to create address",
1147
+ address_updated: "Address updated",
1148
+ failed_to_update_address: "Failed to update address",
1149
+ address_deleted: "Address deleted",
1150
+ failed_to_delete_address: "Failed to delete address",
1151
+ payment_method_added: "Payment method added",
1152
+ failed_to_add_payment_method: "Failed to add payment method",
1153
+ verify_your_payment: "Verify Your Payment",
1154
+ payment_verification_timed_out: "Payment verification timed out. Please try again.",
1155
+ payment_verification_didnt_complete: "Payment verification didn't complete. Please try again.",
1156
+ still_working_with_your_bank: "Still working with your bank…",
1157
+ dont_refresh_this_tab: "Don't refresh this tab",
1158
+ mysite_link_copied: "MySite link copied",
1159
+ failed_to_copy_link: "Failed to copy link",
1160
+ mysite_link_empty: "Link cannot be empty",
1161
+ mysite_link_updated: "MySite link updated",
1162
+ failed_to_update_mysite_link: "Failed to update MySite link",
1163
+ platform_not_editable: "This platform isn't editable yet",
1164
+ social_link_updated: "Social link updated",
1165
+ failed_to_update_social_link: "Failed to update social link",
1166
+ edit_social_link: "Edit social link",
1167
+ edit_platform_link: "Edit {{platform}} link",
1168
+ url: "URL",
1169
+ make_default: "Make Default",
1170
+ please_enter_new_email: "Please enter a new email address",
1171
+ please_enter_valid_email: "Please enter a valid email address",
1172
+ new_email_must_be_different: "New email must be different from your current email",
1173
+ failed_to_initiate_email_change: "Failed to initiate email change",
1174
+ sending: "Sending...",
1175
+ send_verification: "Send verification",
1176
+ name_is_required: "Name is required",
1177
+ address_line_1_is_required: "Address line 1 is required",
1178
+ city_is_required: "City is required",
1179
+ state_is_required: "State is required",
1180
+ zip_code_is_required: "Zip code is required",
1181
+ country_is_required: "Country is required",
1182
+ about_me: "About Me",
1183
+ profile_image_alt: "Profile",
1184
+ social_media_links: "Social Media Links",
1185
+ whatsapp_placeholder: "Phone number or link",
1186
+ wechat_placeholder: "WeChat ID",
1187
+ bio_placeholder: "Tell people a little about yourself...",
1188
+ unable_to_load_account: "Unable to load account data. Please try again later.",
1189
+ account_fallback: "Account",
1190
+ change: "Change",
1191
+ personal_information_title: "Personal Information",
1192
+ error_updating_profile: "Error updating profile. Please verify your information and try again.",
1193
+ payment_method_deleted: "Payment method deleted",
1194
+ default_address_updated: "Default address updated",
1195
+ failed_to_update_default_address: "Failed to update default address",
1196
+ unable_to_delete_payment_method: "We were unable to delete this payment method. Please try again.",
1197
+ unable_to_delete_address: "We were unable to delete this address. Please try again.",
1198
+ add_a_payment_method: "+ Add a payment method",
1199
+ payment_method_alt: "Payment Method",
1200
+ add_an_address_action: "+ Add an address",
1201
+ add_payment_method_action: "+ Add Payment Method",
1202
+ shipping_address_updated: "Shipping address updated",
1203
+ failed_to_update_shipping_address: "Failed to update shipping address",
1204
+ email_change_pending: "Email change pending",
1205
+ email_being_changed_to: "Your email is being changed to",
1206
+ new_email_verified: "Your new email has been verified.",
1207
+ check_new_inbox_verification: "Check your new inbox and click the verification link to complete the change.",
1208
+ request_expired: "This request has expired.",
1209
+ request_expires_in_one_day: "This request expires in 1 day.",
1210
+ request_expires_in_days: "This request expires in {{days}} days.",
1211
+ cancel_change: "Cancel change",
1212
+ card_fallback: "Card",
1213
+ enter_new_email_placeholder: "Enter your new email...",
1214
+ email_verification_hint: "We'll send a verification link to your new email. Click it to complete the change.",
1215
+ changing_email_to: "Changing to",
1216
+ check_new_email_verification: "Check your new email inbox and click the verification link to complete the change.",
1217
+ unexpected_error: "An unexpected error occurred. Please try again."
1218
+ }, dt = ae({
1219
+ fallback: lt,
1220
+ loaders: {
1221
+ ar: () => import("./ar-B7NQmkZ1.js").then(
1222
+ (e) => e.default
1223
+ ),
1224
+ bg: () => import("./bg-CxfL8rZN.js").then(
1225
+ (e) => e.default
1226
+ ),
1227
+ bn: () => import("./bn-CdhHCK--.js").then(
1228
+ (e) => e.default
1229
+ ),
1230
+ cs: () => import("./cs-DTe-xGeI.js").then(
1231
+ (e) => e.default
1232
+ ),
1233
+ da: () => import("./da-B8Cl_vkl.js").then(
1234
+ (e) => e.default
1235
+ ),
1236
+ de: () => import("./de-D8cYy8G-.js").then(
1237
+ (e) => e.default
1238
+ ),
1239
+ el: () => import("./el-Chjin2JW.js").then(
1240
+ (e) => e.default
1241
+ ),
1242
+ es: () => import("./es-mp8RwFN4.js").then(
1243
+ (e) => e.default
1244
+ ),
1245
+ fi: () => import("./fi-91gcpxoy.js").then(
1246
+ (e) => e.default
1247
+ ),
1248
+ fr: () => import("./fr-ekvUCKTH.js").then(
1249
+ (e) => e.default
1250
+ ),
1251
+ he: () => import("./he-B7QiuquT.js").then(
1252
+ (e) => e.default
1253
+ ),
1254
+ hi: () => import("./hi-DNNhi7ud.js").then(
1255
+ (e) => e.default
1256
+ ),
1257
+ hr: () => import("./hr-CAwxMKX_.js").then(
1258
+ (e) => e.default
1259
+ ),
1260
+ hu: () => import("./hu-D_oQwH4Q.js").then(
1261
+ (e) => e.default
1262
+ ),
1263
+ id: () => import("./id-oeAszBoo.js").then(
1264
+ (e) => e.default
1265
+ ),
1266
+ it: () => import("./it-Dme6GXSG.js").then(
1267
+ (e) => e.default
1268
+ ),
1269
+ ja: () => import("./ja-CRnvQNCa.js").then(
1270
+ (e) => e.default
1271
+ ),
1272
+ ko: () => import("./ko-8mk8A3_I.js").then(
1273
+ (e) => e.default
1274
+ ),
1275
+ ms: () => import("./ms-Bs0GvdOw.js").then(
1276
+ (e) => e.default
1277
+ ),
1278
+ nl: () => import("./nl-tsI6lLxl.js").then(
1279
+ (e) => e.default
1280
+ ),
1281
+ no: () => import("./no-DMot6qX0.js").then(
1282
+ (e) => e.default
1283
+ ),
1284
+ pl: () => import("./pl-DmTxONNg.js").then(
1285
+ (e) => e.default
1286
+ ),
1287
+ pt: () => import("./pt-DgmwnAV-.js").then(
1288
+ (e) => e.default
1289
+ ),
1290
+ ro: () => import("./ro-B4M17oRc.js").then(
1291
+ (e) => e.default
1292
+ ),
1293
+ ru: () => import("./ru-BS2gZnbs.js").then(
1294
+ (e) => e.default
1295
+ ),
1296
+ sk: () => import("./sk-BdDjjHfn.js").then(
1297
+ (e) => e.default
1298
+ ),
1299
+ sv: () => import("./sv-CW7FL5HA.js").then(
1300
+ (e) => e.default
1301
+ ),
1302
+ th: () => import("./th-BYBMKmSh.js").then(
1303
+ (e) => e.default
1304
+ ),
1305
+ tl: () => import("./tl-CDigaLsK.js").then(
1306
+ (e) => e.default
1307
+ ),
1308
+ tr: () => import("./tr-PxiurNCr.js").then(
1309
+ (e) => e.default
1310
+ ),
1311
+ uk: () => import("./uk-B4aYnJ8t.js").then(
1312
+ (e) => e.default
1313
+ ),
1314
+ vi: () => import("./vi-BoKSdzH3.js").then(
1315
+ (e) => e.default
1316
+ ),
1317
+ zh_CN: () => import("./zh_CN-DrCrXsZC.js").then(
1318
+ (e) => e.default
1319
+ ),
1320
+ zh_TW: () => import("./zh_TW-JmyC1W5K.js").then(
1321
+ (e) => e.default
1322
+ )
1323
+ }
1324
+ });
1325
+ function ut(e, t) {
1326
+ return te(e, t);
1327
+ }
1328
+ function ct({
1329
+ children: e
1330
+ }) {
1331
+ const { locale: t } = I(), a = ne(dt, t), n = o.useMemo(
1332
+ () => ut(t, a),
1333
+ [t, a]
1334
+ );
1335
+ return /* @__PURE__ */ c.jsx(ce, { value: n, children: e });
1336
+ }
1337
+ function F(e) {
1338
+ return {
1339
+ id: e.id ?? 0,
1340
+ name: e.name ?? null,
1341
+ street1: e.street1 ?? "",
1342
+ street2: e.street2 ?? null,
1343
+ city: e.city ?? "",
1344
+ state: e.state ?? "",
1345
+ zip: e.zip ?? "",
1346
+ country: e.country ?? "",
1347
+ phone: e.phone ?? null,
1348
+ default: e.default ?? !1,
1349
+ created_at: e.created_at ?? null,
1350
+ updated_at: e.updated_at ?? null
1351
+ };
1352
+ }
1353
+ function pt(e) {
1354
+ return {
1355
+ id: e.id ?? 0,
1356
+ type: e.type ?? "card",
1357
+ brand: e.brand ?? null,
1358
+ last_four: e.last_four ?? "",
1359
+ logo_url: e.logo_url ?? null,
1360
+ exp_month: e.exp_month ?? null,
1361
+ exp_year: e.exp_year ?? null,
1362
+ card_holder: e.card_holder ?? null,
1363
+ default: e.default ?? !1,
1364
+ billing_address: e.billing_address ? F({ id: 0, ...e.billing_address }) : null,
1365
+ created_at: e.created_at ?? null,
1366
+ updated_at: e.updated_at ?? null
1367
+ };
1368
+ }
1369
+ function _t(e) {
1370
+ return {
1371
+ ...Qe(e),
1372
+ async fetchPaymentMethods() {
1373
+ let t = await k({
1374
+ client: e,
1375
+ query: { "page[limit]": 100 }
1376
+ });
1377
+ const a = [...t.payment_methods ?? []], n = /* @__PURE__ */ new Set();
1378
+ for (; t.meta?.pagination?.next_cursor; ) {
1379
+ const r = t.meta.pagination.next_cursor;
1380
+ if (typeof r != "string" || n.has(r))
1381
+ throw new Error("Payment method pagination did not advance");
1382
+ n.add(r), t = await k({
1383
+ client: e,
1384
+ query: { "page[limit]": 100, "page[cursor]": r }
1385
+ }), a.push(...t.payment_methods ?? []);
1386
+ }
1387
+ return {
1388
+ payment_methods: a.map(pt),
1389
+ meta: {
1390
+ request_id: t.meta?.request_id ?? "",
1391
+ timestamp: t.meta?.timestamp ?? ""
1392
+ }
1393
+ };
1394
+ },
1395
+ async fetchPointsLedgers() {
1396
+ let t = await v({
1397
+ client: e,
1398
+ query: { "page[limit]": 100 }
1399
+ });
1400
+ const a = [...t.points_ledgers ?? []], n = /* @__PURE__ */ new Set();
1401
+ for (; t.meta?.pagination?.next_cursor; ) {
1402
+ const r = t.meta.pagination.next_cursor;
1403
+ if (typeof r != "string" || n.has(r))
1404
+ throw new Error("Points pagination did not advance");
1405
+ n.add(r), t = await v({
1406
+ client: e,
1407
+ query: { "page[limit]": 100, "page[cursor]": r }
1408
+ }), a.push(...t.points_ledgers ?? []);
1409
+ }
1410
+ return {
1411
+ points_ledgers: a.map((r) => ({
1412
+ id: r.id ?? 0,
1413
+ amount: r.amount ?? 0,
1414
+ total_balance: r.total_balance ?? 0,
1415
+ metadata: r.metadata ?? null,
1416
+ created_at: r.created_at ?? ""
1417
+ })),
1418
+ meta: {
1419
+ request_id: t.meta?.request_id ?? "",
1420
+ timestamp: t.meta?.timestamp ?? ""
1421
+ }
1422
+ };
1423
+ },
1424
+ async fetchAddresses() {
1425
+ let t = await b({ client: e, query: { "page[limit]": 100 } });
1426
+ const a = [...t.addresses ?? []], n = /* @__PURE__ */ new Set();
1427
+ for (; t.meta?.pagination?.next_cursor; ) {
1428
+ const r = t.meta.pagination.next_cursor;
1429
+ if (typeof r != "string" || n.has(r))
1430
+ throw new Error("Address pagination did not advance");
1431
+ n.add(r), t = await b({
1432
+ client: e,
1433
+ query: {
1434
+ "page[limit]": 100,
1435
+ "page[cursor]": r
1436
+ }
1437
+ }), a.push(...t.addresses ?? []);
1438
+ }
1439
+ return {
1440
+ addresses: a.map(F),
1441
+ meta: {
1442
+ request_id: t.meta?.request_id ?? "",
1443
+ timestamp: t.meta?.timestamp ?? ""
1444
+ }
1445
+ };
1446
+ }
1447
+ };
1448
+ }
1449
+ function Et({
1450
+ children: e
1451
+ }) {
1452
+ const { config: t } = Y(), { fetch: a } = H(), { baseUrl: n, defaultHeaders: r, onAuthError: i } = t, l = o.useMemo(
1453
+ () => V({
1454
+ baseUrl: n,
1455
+ defaultHeaders: r,
1456
+ onAuthError: i,
1457
+ fetch: a,
1458
+ credentials: "same-origin"
1459
+ }),
1460
+ [n, r, i, a]
1461
+ ), d = o.useMemo(
1462
+ () => ze(l),
1463
+ [l]
1464
+ ), _ = o.useMemo(
1465
+ () => G(l),
1466
+ [l]
1467
+ ), s = o.useMemo(
1468
+ () => _t(
1469
+ Oe({
1470
+ baseUrl: n,
1471
+ defaultHeaders: r,
1472
+ onAuthError: i,
1473
+ fetch: a,
1474
+ credentials: "same-origin"
1475
+ })
1476
+ ),
1477
+ [n, r, i, a]
1478
+ ), f = o.useMemo(
1479
+ () => w({
1480
+ baseUrl: n,
1481
+ defaultHeaders: r,
1482
+ onAuthError: i,
1483
+ fetch: a,
1484
+ credentials: "same-origin"
1485
+ }),
1486
+ [n, r, i, a]
1487
+ );
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 }) }) }) }) }) });
1489
+ }
1490
+ 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,
1500
+ j as f,
1501
+ 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
1509
+ };