@fluid-app/portal-sdk 0.1.129 → 0.1.130

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 (122) hide show
  1. package/dist/{AppDownloadScreen-DTxo4z3_.cjs → AppDownloadScreen-ChKim_6A.cjs} +2 -2
  2. package/dist/{AppDownloadScreen-DTxo4z3_.cjs.map → AppDownloadScreen-ChKim_6A.cjs.map} +1 -1
  3. package/dist/{AppDownloadScreen-BoGSdsJk.mjs → AppDownloadScreen-DGHd6hYM.mjs} +2 -2
  4. package/dist/{AppDownloadScreen-BoGSdsJk.mjs.map → AppDownloadScreen-DGHd6hYM.mjs.map} +1 -1
  5. package/dist/{AppDownloadScreen-Chxavsr_.cjs → AppDownloadScreen-DpyV1tJw.cjs} +2 -2
  6. package/dist/{ContactsScreen-BKOHursc.mjs → ContactsScreen-Bcea6126.mjs} +3 -3
  7. package/dist/{ContactsScreen-BKOHursc.mjs.map → ContactsScreen-Bcea6126.mjs.map} +1 -1
  8. package/dist/{ContactsScreen-DN8Qt2Ih.cjs → ContactsScreen-CsIGZaWy.cjs} +4 -4
  9. package/dist/{ContactsScreen-DN8Qt2Ih.cjs.map → ContactsScreen-CsIGZaWy.cjs.map} +1 -1
  10. package/dist/{ContactsScreen-FrVLbjGO.cjs → ContactsScreen-OBDC1046.cjs} +4 -4
  11. package/dist/{FluidProvider-CgTeGUnF.mjs → FluidProvider-BJQSXofR.mjs} +198 -615
  12. package/dist/FluidProvider-BJQSXofR.mjs.map +1 -0
  13. package/dist/{FluidProvider-BMMu_rp3.cjs → FluidProvider-DvqnkjZI.cjs} +196 -625
  14. package/dist/FluidProvider-DvqnkjZI.cjs.map +1 -0
  15. package/dist/{MessagingScreen-Bvq3Dd5i.mjs → MessagingScreen-B48ksZOJ.mjs} +3 -3
  16. package/dist/{MessagingScreen-Bvq3Dd5i.mjs.map → MessagingScreen-B48ksZOJ.mjs.map} +1 -1
  17. package/dist/{MessagingScreen-DMDXiH97.mjs → MessagingScreen-COGo4S9K.mjs} +2 -2
  18. package/dist/{MessagingScreen-DgbNN4BF.cjs → MessagingScreen-DYgiatey.cjs} +3 -3
  19. package/dist/{MessagingScreen-DgbNN4BF.cjs.map → MessagingScreen-DYgiatey.cjs.map} +1 -1
  20. package/dist/{MessagingScreen-bzzXjQMu.cjs → MessagingScreen-QyUOxYXl.cjs} +2 -2
  21. package/dist/{MySiteScreen-nV8x9xyy.cjs → MySiteScreen-ByIJ6CkU.cjs} +2 -2
  22. package/dist/{MySiteScreen-nV8x9xyy.cjs.map → MySiteScreen-ByIJ6CkU.cjs.map} +1 -1
  23. package/dist/{MySiteScreen-BJH5-RNT.mjs → MySiteScreen-DZ0ru6Bn.mjs} +2 -2
  24. package/dist/{MySiteScreen-BJH5-RNT.mjs.map → MySiteScreen-DZ0ru6Bn.mjs.map} +1 -1
  25. package/dist/{MySiteScreen-CYZpUYTn.cjs → MySiteScreen-DrWUJJiH.cjs} +2 -2
  26. package/dist/{OrdersScreen-BL__flBE.cjs → OrdersScreen-CkvoeTvK.cjs} +3 -3
  27. package/dist/OrdersScreen-D_7TJgZ4.mjs +561 -0
  28. package/dist/OrdersScreen-D_7TJgZ4.mjs.map +1 -0
  29. package/dist/OrdersScreen-DyYYjl9I.cjs +568 -0
  30. package/dist/OrdersScreen-DyYYjl9I.cjs.map +1 -0
  31. package/dist/{ProductsScreen-BIYHPaBZ.cjs → ProductsScreen-B8NmyIJy.cjs} +3 -3
  32. package/dist/{ProductsScreen-COwahI-V.mjs → ProductsScreen-CMnhqsSA.mjs} +5 -5
  33. package/dist/{ProductsScreen-COwahI-V.mjs.map → ProductsScreen-CMnhqsSA.mjs.map} +1 -1
  34. package/dist/{ProductsScreen-D6h-r9ht.mjs → ProductsScreen-DzNmbwVi.mjs} +3 -3
  35. package/dist/{ProductsScreen-C8UfVLRr.cjs → ProductsScreen-Z1hx1YZQ.cjs} +5 -5
  36. package/dist/{ProductsScreen-C8UfVLRr.cjs.map → ProductsScreen-Z1hx1YZQ.cjs.map} +1 -1
  37. package/dist/{ProfileScreen-CZp_NrjO.cjs → ProfileScreen-B81Ovmh_.cjs} +2 -2
  38. package/dist/{ProfileScreen-FYGHStqM.cjs → ProfileScreen-CYTxOGeW.cjs} +526 -137
  39. package/dist/ProfileScreen-CYTxOGeW.cjs.map +1 -0
  40. package/dist/{ProfileScreen-BKRn8AqI.mjs → ProfileScreen-QOXtyrJi.mjs} +522 -133
  41. package/dist/ProfileScreen-QOXtyrJi.mjs.map +1 -0
  42. package/dist/{ShareablesScreen-BEPVTMeI.cjs → ShareablesScreen-1HpfEjyd.cjs} +7 -7
  43. package/dist/{ShareablesScreen-BEPVTMeI.cjs.map → ShareablesScreen-1HpfEjyd.cjs.map} +1 -1
  44. package/dist/{ShareablesScreen-BrC5LGtU.cjs → ShareablesScreen-BXO8MpAy.cjs} +3 -3
  45. package/dist/{ShareablesScreen-BXzxUg0E.mjs → ShareablesScreen-DSsMJJh_.mjs} +7 -7
  46. package/dist/{ShareablesScreen-BXzxUg0E.mjs.map → ShareablesScreen-DSsMJJh_.mjs.map} +1 -1
  47. package/dist/{ShareablesScreen-aMnwEOAH.mjs → ShareablesScreen-Oo3jMHX6.mjs} +3 -3
  48. package/dist/{ShopScreen-CHH0cx2P.cjs → ShopScreen-BDcWpmi7.cjs} +4 -4
  49. package/dist/{ShopScreen-CHH0cx2P.cjs.map → ShopScreen-BDcWpmi7.cjs.map} +1 -1
  50. package/dist/{ShopScreen-8OQhLeLt.cjs → ShopScreen-CWxOPn7H.cjs} +2 -2
  51. package/dist/{ShopScreen-Yi9sOX_2.mjs → ShopScreen-DsReuJ7P.mjs} +4 -4
  52. package/dist/{ShopScreen-Yi9sOX_2.mjs.map → ShopScreen-DsReuJ7P.mjs.map} +1 -1
  53. package/dist/{SubscriptionsScreen-oApGaq11.cjs → SubscriptionsScreen-B8mLGt5-.cjs} +27 -10
  54. package/dist/SubscriptionsScreen-B8mLGt5-.cjs.map +1 -0
  55. package/dist/{SubscriptionsScreen-C2F3HNJS.cjs → SubscriptionsScreen-C2zbEjMC.cjs} +4 -4
  56. package/dist/{SubscriptionsScreen-CZ-1jSO2.mjs → SubscriptionsScreen-DZxLo4up.mjs} +21 -4
  57. package/dist/SubscriptionsScreen-DZxLo4up.mjs.map +1 -0
  58. package/dist/index.cjs +37 -37
  59. package/dist/index.d.cts.map +1 -1
  60. package/dist/index.d.mts.map +1 -1
  61. package/dist/index.mjs +37 -37
  62. package/dist/order-status-badge-KooNqnAs.mjs +262 -0
  63. package/dist/order-status-badge-KooNqnAs.mjs.map +1 -0
  64. package/dist/order-status-badge-cwqA8dZ-.cjs +304 -0
  65. package/dist/order-status-badge-cwqA8dZ-.cjs.map +1 -0
  66. package/dist/portal_tenant-CP5Ce8Jn.cjs +261 -0
  67. package/dist/portal_tenant-CP5Ce8Jn.cjs.map +1 -0
  68. package/dist/portal_tenant-CWy4Zg2t.mjs +166 -0
  69. package/dist/portal_tenant-CWy4Zg2t.mjs.map +1 -0
  70. package/dist/src-BOIW-KES.mjs +3 -0
  71. package/dist/src-CzwiFO_J.cjs +3 -0
  72. package/dist/{src-BMUEjfhg.mjs → src-Dgo44BGe.mjs} +1 -1
  73. package/dist/{src-BMUEjfhg.mjs.map → src-Dgo44BGe.mjs.map} +1 -1
  74. package/dist/{src-BJdOxgpp.cjs → src-DkhHoxnS.cjs} +1 -1
  75. package/dist/{src-BJdOxgpp.cjs.map → src-DkhHoxnS.cjs.map} +1 -1
  76. package/dist/use-account-clients-Dim60sir.mjs +451 -0
  77. package/dist/use-account-clients-Dim60sir.mjs.map +1 -0
  78. package/dist/use-account-clients-DoJW3KTx.cjs +481 -0
  79. package/dist/use-account-clients-DoJW3KTx.cjs.map +1 -0
  80. package/dist/{use-current-user-DCk55_Qn.mjs → use-current-user-Baxj7HJt.mjs} +3 -3
  81. package/dist/{use-current-user-DCk55_Qn.mjs.map → use-current-user-Baxj7HJt.mjs.map} +1 -1
  82. package/dist/{use-current-user-BR5_zaoZ.cjs → use-current-user-BcZWV7oU.cjs} +3 -3
  83. package/dist/{use-current-user-BR5_zaoZ.cjs.map → use-current-user-BcZWV7oU.cjs.map} +1 -1
  84. package/dist/{use-fluid-api-CmCAH10d.mjs → use-fluid-api-BP05Cf-f.mjs} +2 -2
  85. package/dist/{use-fluid-api-CmCAH10d.mjs.map → use-fluid-api-BP05Cf-f.mjs.map} +1 -1
  86. package/dist/{use-fluid-api-C1KeHB7q.cjs → use-fluid-api-Ds8BInAZ.cjs} +2 -2
  87. package/dist/{use-fluid-api-C1KeHB7q.cjs.map → use-fluid-api-Ds8BInAZ.cjs.map} +1 -1
  88. package/dist/{use-fluid-auth-BQEV7ylM.mjs → use-fluid-auth-C-Qpl8j4.mjs} +2 -2
  89. package/dist/{use-fluid-auth-BQEV7ylM.mjs.map → use-fluid-auth-C-Qpl8j4.mjs.map} +1 -1
  90. package/dist/{use-fluid-auth-CyKaXLbW.cjs → use-fluid-auth-sGNMgfnt.cjs} +2 -2
  91. package/dist/{use-fluid-auth-CyKaXLbW.cjs.map → use-fluid-auth-sGNMgfnt.cjs.map} +1 -1
  92. package/dist/{use-portal-products-client-pptYMuSw.cjs → use-portal-products-client-DKYkBjm-.cjs} +7 -48
  93. package/dist/use-portal-products-client-DKYkBjm-.cjs.map +1 -0
  94. package/dist/{use-portal-products-client-BL1xVtex.mjs → use-portal-products-client-s2qtZjhU.mjs} +3 -44
  95. package/dist/use-portal-products-client-s2qtZjhU.mjs.map +1 -0
  96. package/package.json +13 -12
  97. package/dist/FluidProvider-BMMu_rp3.cjs.map +0 -1
  98. package/dist/FluidProvider-CgTeGUnF.mjs.map +0 -1
  99. package/dist/OrdersScreen-BLb3_KtI.mjs +0 -176
  100. package/dist/OrdersScreen-BLb3_KtI.mjs.map +0 -1
  101. package/dist/OrdersScreen-uL3mRk1h.cjs +0 -183
  102. package/dist/OrdersScreen-uL3mRk1h.cjs.map +0 -1
  103. package/dist/ProfileScreen-BKRn8AqI.mjs.map +0 -1
  104. package/dist/ProfileScreen-FYGHStqM.cjs.map +0 -1
  105. package/dist/SubscriptionsScreen-CZ-1jSO2.mjs.map +0 -1
  106. package/dist/SubscriptionsScreen-oApGaq11.cjs.map +0 -1
  107. package/dist/order-detail-DHXdE4Cl.cjs +0 -961
  108. package/dist/order-detail-DHXdE4Cl.cjs.map +0 -1
  109. package/dist/order-detail-iZm_R0TX.mjs +0 -931
  110. package/dist/order-detail-iZm_R0TX.mjs.map +0 -1
  111. package/dist/src-BJSTFxSO.mjs +0 -1
  112. package/dist/src-DMVR26Fk.cjs +0 -1
  113. package/dist/use-account-clients-CL6rr17o.cjs +0 -214
  114. package/dist/use-account-clients-CL6rr17o.cjs.map +0 -1
  115. package/dist/use-account-clients-CMjRB5On.mjs +0 -190
  116. package/dist/use-account-clients-CMjRB5On.mjs.map +0 -1
  117. package/dist/use-customer-account-BAolVc3q.mjs +0 -22
  118. package/dist/use-customer-account-BAolVc3q.mjs.map +0 -1
  119. package/dist/use-customer-account-DSsXbcme.cjs +0 -28
  120. package/dist/use-customer-account-DSsXbcme.cjs.map +0 -1
  121. package/dist/use-portal-products-client-BL1xVtex.mjs.map +0 -1
  122. package/dist/use-portal-products-client-pptYMuSw.cjs.map +0 -1
@@ -1,10 +1,10 @@
1
1
  require("./chunk-9hOWP6kD.cjs");
2
- const require_FluidProvider = require("./FluidProvider-BMMu_rp3.cjs");
2
+ const require_FluidProvider = require("./FluidProvider-DvqnkjZI.cjs");
3
3
  const require_portal_tenant_countries_adapter = require("./portal-tenant-countries-adapter-BJb82oyY.cjs");
4
4
  const require_src = require("./src-UnXevN9n.cjs");
5
- const require_use_fluid_auth = require("./use-fluid-auth-CyKaXLbW.cjs");
5
+ const require_use_fluid_auth = require("./use-fluid-auth-sGNMgfnt.cjs");
6
6
  const require_ScreenHeaderContext = require("./ScreenHeaderContext-wrJlkhgN.cjs");
7
- const require_use_account_clients = require("./use-account-clients-CL6rr17o.cjs");
7
+ const require_use_account_clients = require("./use-account-clients-DoJW3KTx.cjs");
8
8
  let react = require("react");
9
9
  let _tanstack_react_query = require("@tanstack/react-query");
10
10
  let react_jsx_runtime = require("react/jsx-runtime");
@@ -28,6 +28,268 @@ function ProfileUIProvider({ t, children }) {
28
28
  });
29
29
  }
30
30
  //#endregion
31
+ //#region ../../fluid-pay/core/src/context.ts
32
+ const FluidPayApiContext = (0, react.createContext)(null);
33
+ const FluidPayApiProvider = FluidPayApiContext.Provider;
34
+ function useFluidPayApi() {
35
+ const api = (0, react.useContext)(FluidPayApiContext);
36
+ if (!api) throw new Error("useFluidPayApi must be used within a FluidPayCoreProvider");
37
+ return api;
38
+ }
39
+ //#endregion
40
+ //#region ../../fluid-pay/core/src/provider.tsx
41
+ function FluidPayCoreProvider({ api, children }) {
42
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(FluidPayApiProvider, {
43
+ value: api,
44
+ children
45
+ });
46
+ }
47
+ //#endregion
48
+ //#region ../../fluid-pay/core/src/utils/country-config.ts
49
+ const US_STATES = [
50
+ {
51
+ name: "Alabama",
52
+ isoCode: "AL"
53
+ },
54
+ {
55
+ name: "Alaska",
56
+ isoCode: "AK"
57
+ },
58
+ {
59
+ name: "Arizona",
60
+ isoCode: "AZ"
61
+ },
62
+ {
63
+ name: "Arkansas",
64
+ isoCode: "AR"
65
+ },
66
+ {
67
+ name: "California",
68
+ isoCode: "CA"
69
+ },
70
+ {
71
+ name: "Colorado",
72
+ isoCode: "CO"
73
+ },
74
+ {
75
+ name: "Connecticut",
76
+ isoCode: "CT"
77
+ },
78
+ {
79
+ name: "Delaware",
80
+ isoCode: "DE"
81
+ },
82
+ {
83
+ name: "Florida",
84
+ isoCode: "FL"
85
+ },
86
+ {
87
+ name: "Georgia",
88
+ isoCode: "GA"
89
+ },
90
+ {
91
+ name: "Hawaii",
92
+ isoCode: "HI"
93
+ },
94
+ {
95
+ name: "Idaho",
96
+ isoCode: "ID"
97
+ },
98
+ {
99
+ name: "Illinois",
100
+ isoCode: "IL"
101
+ },
102
+ {
103
+ name: "Indiana",
104
+ isoCode: "IN"
105
+ },
106
+ {
107
+ name: "Iowa",
108
+ isoCode: "IA"
109
+ },
110
+ {
111
+ name: "Kansas",
112
+ isoCode: "KS"
113
+ },
114
+ {
115
+ name: "Kentucky",
116
+ isoCode: "KY"
117
+ },
118
+ {
119
+ name: "Louisiana",
120
+ isoCode: "LA"
121
+ },
122
+ {
123
+ name: "Maine",
124
+ isoCode: "ME"
125
+ },
126
+ {
127
+ name: "Maryland",
128
+ isoCode: "MD"
129
+ },
130
+ {
131
+ name: "Massachusetts",
132
+ isoCode: "MA"
133
+ },
134
+ {
135
+ name: "Michigan",
136
+ isoCode: "MI"
137
+ },
138
+ {
139
+ name: "Minnesota",
140
+ isoCode: "MN"
141
+ },
142
+ {
143
+ name: "Mississippi",
144
+ isoCode: "MS"
145
+ },
146
+ {
147
+ name: "Missouri",
148
+ isoCode: "MO"
149
+ },
150
+ {
151
+ name: "Montana",
152
+ isoCode: "MT"
153
+ },
154
+ {
155
+ name: "Nebraska",
156
+ isoCode: "NE"
157
+ },
158
+ {
159
+ name: "Nevada",
160
+ isoCode: "NV"
161
+ },
162
+ {
163
+ name: "New Hampshire",
164
+ isoCode: "NH"
165
+ },
166
+ {
167
+ name: "New Jersey",
168
+ isoCode: "NJ"
169
+ },
170
+ {
171
+ name: "New Mexico",
172
+ isoCode: "NM"
173
+ },
174
+ {
175
+ name: "New York",
176
+ isoCode: "NY"
177
+ },
178
+ {
179
+ name: "North Carolina",
180
+ isoCode: "NC"
181
+ },
182
+ {
183
+ name: "North Dakota",
184
+ isoCode: "ND"
185
+ },
186
+ {
187
+ name: "Ohio",
188
+ isoCode: "OH"
189
+ },
190
+ {
191
+ name: "Oklahoma",
192
+ isoCode: "OK"
193
+ },
194
+ {
195
+ name: "Oregon",
196
+ isoCode: "OR"
197
+ },
198
+ {
199
+ name: "Pennsylvania",
200
+ isoCode: "PA"
201
+ },
202
+ {
203
+ name: "Rhode Island",
204
+ isoCode: "RI"
205
+ },
206
+ {
207
+ name: "South Carolina",
208
+ isoCode: "SC"
209
+ },
210
+ {
211
+ name: "South Dakota",
212
+ isoCode: "SD"
213
+ },
214
+ {
215
+ name: "Tennessee",
216
+ isoCode: "TN"
217
+ },
218
+ {
219
+ name: "Texas",
220
+ isoCode: "TX"
221
+ },
222
+ {
223
+ name: "Utah",
224
+ isoCode: "UT"
225
+ },
226
+ {
227
+ name: "Vermont",
228
+ isoCode: "VT"
229
+ },
230
+ {
231
+ name: "Virginia",
232
+ isoCode: "VA"
233
+ },
234
+ {
235
+ name: "Washington",
236
+ isoCode: "WA"
237
+ },
238
+ {
239
+ name: "West Virginia",
240
+ isoCode: "WV"
241
+ },
242
+ {
243
+ name: "Wisconsin",
244
+ isoCode: "WI"
245
+ },
246
+ {
247
+ name: "Wyoming",
248
+ isoCode: "WY"
249
+ },
250
+ {
251
+ name: "District of Columbia",
252
+ isoCode: "DC"
253
+ }
254
+ ];
255
+ const COUNTRY_CONFIGS = {
256
+ US: {
257
+ regionLabel: "State",
258
+ postalLabel: "ZIP Code"
259
+ },
260
+ JP: {
261
+ regionLabel: "Prefecture",
262
+ postalLabel: "Postal Code"
263
+ }
264
+ };
265
+ const DEFAULT_REGION_CONFIG = {
266
+ regionLabel: "Province",
267
+ postalLabel: "Postal Code"
268
+ };
269
+ function getRegionConfig(countryCode) {
270
+ return COUNTRY_CONFIGS[countryCode] ?? DEFAULT_REGION_CONFIG;
271
+ }
272
+ //#endregion
273
+ //#region ../../fluid-pay/core/src/hooks/use-country-states.ts
274
+ function useCountryStates() {
275
+ const [selectedCountry, setSelectedCountry] = (0, react.useState)("US");
276
+ const [stateOptions, setStateOptions] = (0, react.useState)(US_STATES);
277
+ return {
278
+ handleCountryChange: (0, react.useCallback)((selectedCountryCode, fetchStates) => {
279
+ setSelectedCountry(selectedCountryCode);
280
+ if (selectedCountryCode === "US") setStateOptions(US_STATES);
281
+ else if (fetchStates) fetchStates(selectedCountryCode).then((states) => setStateOptions(states)).catch((error) => {
282
+ console.error("Failed to fetch states:", error);
283
+ setStateOptions([]);
284
+ });
285
+ else setStateOptions([]);
286
+ }, []),
287
+ stateOptions,
288
+ config: getRegionConfig(selectedCountry),
289
+ selectedCountry
290
+ };
291
+ }
292
+ //#endregion
31
293
  //#region ../../profile/ui/src/components/ellipses-dropdown.tsx
32
294
  function EllipsesDropdown({ onDelete, onEdit, editLabel = "Edit", deleteLabel = "Delete", disabled = false }) {
33
295
  if (disabled) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_src.Button, {
@@ -909,7 +1171,7 @@ function EditPaymentMethodDialog({ isOpen, paymentMethod, billingAddress, onClos
909
1171
  control,
910
1172
  name: "set_as_default"
911
1173
  });
912
- const { stateOptions, config, handleCountryChange } = require_FluidProvider.useCountryStates();
1174
+ const { stateOptions, config, handleCountryChange } = useCountryStates();
913
1175
  const countryOptions = [...countries].map((country) => ({
914
1176
  name: country.name,
915
1177
  value: country.iso
@@ -1348,7 +1610,7 @@ function AddressFormDialog({ isOpen, onClose, selectedAddress, onSubmit, isSubmi
1348
1610
  control,
1349
1611
  name: "default"
1350
1612
  });
1351
- const { stateOptions, config, handleCountryChange } = require_FluidProvider.useCountryStates();
1613
+ const { stateOptions, config, handleCountryChange } = useCountryStates();
1352
1614
  const countrySelectOptions = [...countries].map((country) => ({
1353
1615
  name: country.name,
1354
1616
  value: country.iso
@@ -1806,7 +2068,7 @@ function VgsCardForm({ isLoading, isFormReady, vgsFieldState, networkError, t })
1806
2068
  });
1807
2069
  }
1808
2070
  function CreditCardFormDialog({ isOpen, onClose, onSubmit, isSubmitting, countries = [], error, jwt, renderAddressAutocomplete, t }) {
1809
- const api = require_FluidProvider.useFluidPayApi();
2071
+ const api = useFluidPayApi();
1810
2072
  const [cardError, setCardError] = (0, react.useState)(void 0);
1811
2073
  const [isVgsSubmitting, setIsVgsSubmitting] = (0, react.useState)(false);
1812
2074
  const { isFormReady, isLoading: isVgsLoading, isScriptLoaded, initializeForm, submitCard, vgsFieldState, resetVgs, onSuccessRef, onErrorRef } = useVgsCollect();
@@ -1828,7 +2090,7 @@ function CreditCardFormDialog({ isOpen, onClose, onSubmit, isSubmitting, countri
1828
2090
  control,
1829
2091
  name: "set_as_default"
1830
2092
  });
1831
- const { stateOptions, config, handleCountryChange } = require_FluidProvider.useCountryStates();
2093
+ const { stateOptions, config, handleCountryChange } = useCountryStates();
1832
2094
  const countrySelectOptions = [...countries].map((country) => ({
1833
2095
  name: country.name,
1834
2096
  value: country.iso
@@ -2110,6 +2372,26 @@ function createPortalTenantLanguagesAdapter(client) {
2110
2372
  } };
2111
2373
  }
2112
2374
  //#endregion
2375
+ //#region src/account/query-keys.ts
2376
+ const accountKeys = {
2377
+ all: ["portalTenant", "account"],
2378
+ detail: (userId) => [...accountKeys.all, userId]
2379
+ };
2380
+ const payKeys = {
2381
+ addresses: {
2382
+ all: ["portalTenant", "addresses"],
2383
+ list: (userId) => [...payKeys.addresses.all, userId]
2384
+ },
2385
+ paymentMethods: {
2386
+ all: ["portalTenant", "paymentMethods"],
2387
+ list: (userId) => [...payKeys.paymentMethods.all, userId]
2388
+ },
2389
+ pointsLedgers: {
2390
+ all: ["portalTenant", "pointsLedgers"],
2391
+ list: (userId) => [...payKeys.pointsLedgers.all, userId]
2392
+ }
2393
+ };
2394
+ //#endregion
2113
2395
  //#region src/screens/ProfileContentScreen.tsx
2114
2396
  const translations = {
2115
2397
  edit_profile: "Edit Profile",
@@ -2177,44 +2459,142 @@ function t(key) {
2177
2459
  return key.split("_").map((word) => word.charAt(0).toUpperCase() + word.slice(1)).join(" ");
2178
2460
  }
2179
2461
  function adaptPointsLedger(entry) {
2462
+ const meta = entry.metadata;
2180
2463
  return {
2181
2464
  id: entry.id,
2182
2465
  amount: entry.amount,
2183
2466
  company_id: 0,
2184
2467
  created_at: entry.created_at,
2185
- customer_id: entry.customer_id,
2468
+ customer_id: 0,
2186
2469
  metadata: {
2187
- transaction_type: entry.metadata?.transaction_type ?? void 0,
2188
- source: entry.metadata?.source ?? void 0
2470
+ transaction_type: meta?.transaction_type ?? void 0,
2471
+ source: meta?.source ?? void 0
2189
2472
  },
2190
- total_balance: entry.total_balance ?? 0,
2473
+ total_balance: entry.total_balance,
2191
2474
  updated_at: entry.created_at
2192
2475
  };
2193
2476
  }
2194
- function ProfileContentScreen({ onToast, countryIso }) {
2477
+ function mapAccountToCustomerAccount(raw) {
2478
+ return {
2479
+ fluid_pay_account: {
2480
+ id: raw.id,
2481
+ email: raw.email,
2482
+ address_count: 0,
2483
+ payment_methods_count: 0,
2484
+ language_iso: null
2485
+ },
2486
+ customer: {
2487
+ id: raw.id,
2488
+ active: true,
2489
+ active_subscriptions_count: 0,
2490
+ display_total_spent: "0",
2491
+ email: raw.email,
2492
+ first_name: raw.first_name,
2493
+ full_name: `${raw.first_name} ${raw.last_name}`.trim(),
2494
+ inactive_subscriptions_count: 0,
2495
+ is_rep: raw.member_type === "rep",
2496
+ phone: raw.phone,
2497
+ orders_count: 0
2498
+ }
2499
+ };
2500
+ }
2501
+ function mapToFluidPayAddress(raw) {
2502
+ return {
2503
+ id: raw.id,
2504
+ address1: raw.street1,
2505
+ address2: raw.street2,
2506
+ city: raw.city,
2507
+ country_code: raw.country,
2508
+ default: raw.default,
2509
+ name: null,
2510
+ postal_code: raw.zip,
2511
+ state: raw.state,
2512
+ subdivision_code: null
2513
+ };
2514
+ }
2515
+ function mapToFluidPayPaymentMethod(raw) {
2516
+ return {
2517
+ id: raw.id,
2518
+ created_at: raw.created_at ?? "",
2519
+ default: raw.default,
2520
+ details: {
2521
+ card_type: raw.brand,
2522
+ card_brand: raw.brand,
2523
+ last_four: raw.last_four,
2524
+ exp_month: raw.exp_month ?? void 0,
2525
+ exp_year: raw.exp_year ?? void 0
2526
+ },
2527
+ billing_address: null,
2528
+ payment_type: raw.type,
2529
+ source: "",
2530
+ updated_at: raw.updated_at ?? ""
2531
+ };
2532
+ }
2533
+ const notImplemented = () => {
2534
+ throw new Error("Not available in portal-tenant context");
2535
+ };
2536
+ function createFluidPayShim(payApi) {
2537
+ return {
2538
+ customers: {
2539
+ fetchAccount: notImplemented,
2540
+ update: notImplemented
2541
+ },
2542
+ addresses: {
2543
+ fetchAll: notImplemented,
2544
+ create: notImplemented,
2545
+ update: notImplemented,
2546
+ delete: notImplemented
2547
+ },
2548
+ paymentMethods: {
2549
+ fetchAll: notImplemented,
2550
+ addCreditCard: notImplemented,
2551
+ delete: notImplemented,
2552
+ updateDefault: notImplemented,
2553
+ update: notImplemented
2554
+ },
2555
+ vault: { fetchCredentials: async () => {
2556
+ const response = await payApi.fetchVaultCredentials();
2557
+ return {
2558
+ vault: {
2559
+ vault_id: response.vault.token ?? "",
2560
+ environment: response.vault.environment,
2561
+ route_id: "",
2562
+ requires_3ds: false
2563
+ },
2564
+ meta: {
2565
+ request_id: response.meta?.request_id ?? "",
2566
+ timestamp: response.meta?.timestamp ?? ""
2567
+ }
2568
+ };
2569
+ } }
2570
+ };
2571
+ }
2572
+ function ProfileContentScreen({ onToast, countryIso: _countryIso }) {
2195
2573
  const { isAuthenticated, user } = require_use_fluid_auth.useFluidAuth();
2196
- const api = require_FluidProvider.useFluidPayApi();
2197
- const sdkClient = require_use_account_clients.useSdkClient();
2574
+ const payApi = require_use_account_clients.usePayApi();
2575
+ const accountApi = require_use_account_clients.useAccountApi();
2198
2576
  const queryClient = (0, _tanstack_react_query.useQueryClient)();
2199
- const jwt = "";
2577
+ const fluidPayShim = (0, react.useMemo)(() => createFluidPayShim(payApi), [payApi]);
2200
2578
  const userId = user?.id;
2201
2579
  const { data: accountData, isLoading: isLoadingAccount, isError: isAccountError } = (0, _tanstack_react_query.useQuery)({
2202
- queryKey: ["fluidPayAccount", userId],
2203
- queryFn: () => api.customers.fetchAccount(jwt),
2580
+ queryKey: accountKeys.detail(userId),
2581
+ queryFn: async () => {
2582
+ return mapAccountToCustomerAccount((await accountApi.fetchAccount()).account);
2583
+ },
2204
2584
  enabled: isAuthenticated
2205
2585
  });
2206
2586
  const { data: addressesData, isLoading: isLoadingAddresses } = (0, _tanstack_react_query.useQuery)({
2207
- queryKey: ["fluidPayAddresses", userId],
2208
- queryFn: () => api.addresses.fetchAll(jwt),
2587
+ queryKey: payKeys.addresses.list(userId),
2588
+ queryFn: async () => {
2589
+ return (await payApi.fetchAddresses()).addresses.map(mapToFluidPayAddress);
2590
+ },
2209
2591
  enabled: isAuthenticated
2210
2592
  });
2211
2593
  const { data: paymentMethodsData, isLoading: isLoadingPaymentMethods } = (0, _tanstack_react_query.useQuery)({
2212
- queryKey: [
2213
- "fluidPayPaymentMethods",
2214
- userId,
2215
- countryIso
2216
- ],
2217
- queryFn: () => api.paymentMethods.fetchAll(jwt, countryIso),
2594
+ queryKey: payKeys.paymentMethods.list(userId),
2595
+ queryFn: async () => {
2596
+ return (await payApi.fetchPaymentMethods()).payment_methods.map(mapToFluidPayPaymentMethod);
2597
+ },
2218
2598
  enabled: isAuthenticated
2219
2599
  });
2220
2600
  const portalTenantClient = require_FluidProvider.usePortalTenantClient();
@@ -2230,29 +2610,26 @@ function ProfileContentScreen({ onToast, countryIso }) {
2230
2610
  queryFn: () => languagesAdapter.listLanguages(),
2231
2611
  enabled: isAuthenticated
2232
2612
  });
2233
- const { data: companySettings, isLoading: isLoadingCompanySettings } = (0, _tanstack_react_query.useQuery)({
2234
- queryKey: ["sdk-company-settings"],
2235
- queryFn: () => sdkClient.get("/settings/checkout")
2236
- });
2237
- const rewardPointsEnabled = companySettings?.reward_points_enabled ?? false;
2238
- const customerId = accountData?.customer?.id;
2239
- const { data: pointsLedgerData, isLoading: isLoadingPointsLedger } = (0, _tanstack_react_query.useQuery)({
2240
- queryKey: ["customer-points-ledger", customerId],
2241
- queryFn: () => sdkClient.get(`${require_use_account_clients.API_VERSION}/customers/${customerId}/points_ledgers`),
2242
- enabled: !!customerId && rewardPointsEnabled
2613
+ const { data: pointsLedgerData, isLoading: isLoadingPointsLedger, isError: isPointsLedgerError } = (0, _tanstack_react_query.useQuery)({
2614
+ queryKey: payKeys.pointsLedgers.list(userId),
2615
+ queryFn: () => payApi.fetchPointsLedgers(),
2616
+ enabled: isAuthenticated,
2617
+ retry: (failureCount, error) => {
2618
+ if (error instanceof Error && "status" in error && error.status === 403) return false;
2619
+ return failureCount < 1;
2620
+ }
2243
2621
  });
2622
+ const rewardPointsEnabled = !isPointsLedgerError && pointsLedgerData != null;
2244
2623
  const updateCustomerMutation = (0, _tanstack_react_query.useMutation)({
2245
- mutationFn: (data) => {
2246
- const languageIso = adaptedLanguages?.find((l) => l.name === data.language)?.iso ?? "en";
2247
- return api.customers.update(jwt, {
2624
+ mutationFn: async (data) => {
2625
+ await accountApi.updateAccount({ account: {
2248
2626
  first_name: data.first_name,
2249
2627
  last_name: data.last_name,
2250
- phone: data.phone_number,
2251
- language_iso: languageIso
2252
- });
2628
+ phone: data.phone_number
2629
+ } });
2253
2630
  },
2254
2631
  onSuccess: () => {
2255
- queryClient.invalidateQueries({ queryKey: ["fluidPayAccount", userId] });
2632
+ queryClient.invalidateQueries({ queryKey: accountKeys.all });
2256
2633
  onToast("Profile updated", "success");
2257
2634
  },
2258
2635
  onError: () => {
@@ -2260,38 +2637,40 @@ function ProfileContentScreen({ onToast, countryIso }) {
2260
2637
  }
2261
2638
  });
2262
2639
  const deleteAddressMutation = (0, _tanstack_react_query.useMutation)({
2263
- mutationFn: (addressId) => api.addresses.delete(jwt, addressId),
2640
+ mutationFn: (addressId) => payApi.deleteAddress(addressId),
2264
2641
  onSuccess: () => {
2265
- queryClient.invalidateQueries({ queryKey: ["fluidPayAddresses", userId] });
2642
+ queryClient.invalidateQueries({ queryKey: payKeys.addresses.all });
2643
+ },
2644
+ onError: () => {
2645
+ onToast("Failed to delete address", "error");
2266
2646
  }
2267
2647
  });
2268
2648
  const deletePaymentMethodMutation = (0, _tanstack_react_query.useMutation)({
2269
- mutationFn: (paymentMethodId) => api.paymentMethods.delete(jwt, paymentMethodId),
2649
+ mutationFn: (paymentMethodId) => payApi.deletePaymentMethod(paymentMethodId),
2270
2650
  onSuccess: () => {
2271
- queryClient.invalidateQueries({ queryKey: [
2272
- "fluidPayPaymentMethods",
2273
- userId,
2274
- countryIso
2275
- ] });
2651
+ queryClient.invalidateQueries({ queryKey: payKeys.paymentMethods.all });
2652
+ },
2653
+ onError: () => {
2654
+ onToast("Failed to delete payment method", "error");
2276
2655
  }
2277
2656
  });
2278
2657
  const updatePaymentMethodMutation = (0, _tanstack_react_query.useMutation)({
2279
- mutationFn: ({ paymentMethodId, data }) => api.paymentMethods.update(jwt, paymentMethodId, {
2280
- set_as_default: data.set_as_default,
2281
- billing_address: data.billing_address
2282
- }),
2658
+ mutationFn: ({ paymentMethodId, data }) => payApi.updatePaymentMethod(paymentMethodId, { payment_method: { default: data.set_as_default } }),
2283
2659
  onSuccess: () => {
2284
- queryClient.invalidateQueries({ queryKey: [
2285
- "fluidPayPaymentMethods",
2286
- userId,
2287
- countryIso
2288
- ] });
2660
+ queryClient.invalidateQueries({ queryKey: payKeys.paymentMethods.all });
2289
2661
  }
2290
2662
  });
2291
2663
  const createAddressMutation = (0, _tanstack_react_query.useMutation)({
2292
- mutationFn: (body) => api.addresses.create(jwt, body),
2664
+ mutationFn: (body) => payApi.createAddress({ address: {
2665
+ street1: body.address.address1,
2666
+ street2: body.address.address2,
2667
+ city: body.address.city,
2668
+ state: body.address.state,
2669
+ zip: body.address.postal_code,
2670
+ country: body.address.country_code
2671
+ } }),
2293
2672
  onSuccess: () => {
2294
- queryClient.invalidateQueries({ queryKey: ["fluidPayAddresses", userId] });
2673
+ queryClient.invalidateQueries({ queryKey: payKeys.addresses.all });
2295
2674
  onToast("Address created", "success");
2296
2675
  },
2297
2676
  onError: () => {
@@ -2299,9 +2678,16 @@ function ProfileContentScreen({ onToast, countryIso }) {
2299
2678
  }
2300
2679
  });
2301
2680
  const updateAddressMutation = (0, _tanstack_react_query.useMutation)({
2302
- mutationFn: ({ addressId, body }) => api.addresses.update(jwt, addressId, body),
2681
+ mutationFn: ({ addressId, body }) => payApi.updateAddress(addressId, { address: {
2682
+ street1: body.address.address1,
2683
+ street2: body.address.address2,
2684
+ city: body.address.city,
2685
+ state: body.address.state,
2686
+ zip: body.address.postal_code,
2687
+ country: body.address.country_code
2688
+ } }),
2303
2689
  onSuccess: () => {
2304
- queryClient.invalidateQueries({ queryKey: ["fluidPayAddresses", userId] });
2690
+ queryClient.invalidateQueries({ queryKey: payKeys.addresses.all });
2305
2691
  onToast("Address updated", "success");
2306
2692
  },
2307
2693
  onError: () => {
@@ -2309,21 +2695,21 @@ function ProfileContentScreen({ onToast, countryIso }) {
2309
2695
  }
2310
2696
  });
2311
2697
  const addCreditCardMutation = (0, _tanstack_react_query.useMutation)({
2312
- mutationFn: (data) => api.paymentMethods.addCreditCard(jwt, data),
2698
+ mutationFn: (data) => payApi.createPaymentMethod({ payment_method: {
2699
+ type: "card",
2700
+ token: data.payment_method.token,
2701
+ default: data.default_payment_method
2702
+ } }),
2313
2703
  onSuccess: () => {
2314
- queryClient.invalidateQueries({ queryKey: [
2315
- "fluidPayPaymentMethods",
2316
- userId,
2317
- countryIso
2318
- ] });
2704
+ queryClient.invalidateQueries({ queryKey: payKeys.paymentMethods.all });
2319
2705
  onToast("Payment method added", "success");
2320
2706
  },
2321
2707
  onError: () => {
2322
2708
  onToast("Failed to add payment method", "error");
2323
2709
  }
2324
2710
  });
2325
- const addresses = addressesData?.addresses ?? [];
2326
- const paymentMethods = paymentMethodsData?.payment_methods ?? [];
2711
+ const addresses = addressesData ?? [];
2712
+ const paymentMethods = paymentMethodsData ?? [];
2327
2713
  const adaptedPointsLedger = pointsLedgerData?.points_ledgers?.map(adaptPointsLedger) ?? [];
2328
2714
  const adaptedLanguages = (languagesData?.languages ?? []).map((l, i) => ({
2329
2715
  id: i,
@@ -2348,7 +2734,7 @@ function ProfileContentScreen({ onToast, countryIso }) {
2348
2734
  children: "Unable to load account data. Please try again later."
2349
2735
  })
2350
2736
  });
2351
- if (isLoadingAccount || isLoadingCompanySettings || !accountData) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
2737
+ if (isLoadingAccount || !accountData) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
2352
2738
  className: "px-4 pt-4 sm:px-9 md:pt-8",
2353
2739
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
2354
2740
  className: "space-y-4",
@@ -2361,73 +2747,76 @@ function ProfileContentScreen({ onToast, countryIso }) {
2361
2747
  });
2362
2748
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
2363
2749
  className: "px-4 pt-4 sm:px-9 md:pt-8",
2364
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ProfileUIProvider, {
2365
- t,
2366
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Profile, {
2367
- customerAccount: accountData,
2368
- languages: adaptedLanguages,
2369
- onUpdateCustomer: async (data) => {
2370
- await updateCustomerMutation.mutateAsync(data);
2371
- },
2372
- isUpdatingCustomer: updateCustomerMutation.isPending,
2373
- rewardsPointsEnabled: rewardPointsEnabled,
2374
- pointsLedger: adaptedPointsLedger,
2375
- isLoadingPointsLedger,
2376
- addresses,
2377
- isLoadingAddresses,
2378
- onDeleteAddress: async (addressId) => {
2379
- await deleteAddressMutation.mutateAsync(addressId);
2380
- },
2381
- isDeletingAddress: deleteAddressMutation.isPending,
2382
- paymentMethods,
2383
- isLoadingPaymentMethods,
2384
- onDeletePaymentMethod: async (paymentMethodId) => {
2385
- await deletePaymentMethodMutation.mutateAsync(paymentMethodId);
2386
- },
2387
- isDeletingPaymentMethod: deletePaymentMethodMutation.isPending,
2388
- onUpdatePaymentMethod: async (paymentMethodId, data) => {
2389
- await updatePaymentMethodMutation.mutateAsync({
2390
- paymentMethodId,
2391
- data
2392
- });
2393
- },
2394
- isUpdatingPaymentMethod: updatePaymentMethodMutation.isPending,
2395
- getBillingAddress: (pm) => pm.billing_address ?? null,
2396
- countries: countryOptions,
2397
- renderAddressDialog: ({ isOpen, onClose, selectedAddress }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(AddressFormDialog, {
2398
- isOpen,
2399
- onClose,
2400
- selectedAddress,
2401
- t,
2402
- onSubmit: async (formData) => {
2403
- if (selectedAddress) await updateAddressMutation.mutateAsync({
2404
- addressId: selectedAddress.id,
2405
- body: formData
2406
- });
2407
- else await createAddressMutation.mutateAsync(formData);
2408
- onClose();
2750
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(FluidPayCoreProvider, {
2751
+ api: fluidPayShim,
2752
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ProfileUIProvider, {
2753
+ t,
2754
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Profile, {
2755
+ customerAccount: accountData,
2756
+ languages: adaptedLanguages,
2757
+ onUpdateCustomer: async (data) => {
2758
+ await updateCustomerMutation.mutateAsync(data);
2409
2759
  },
2410
- isSubmitting: createAddressMutation.isPending || updateAddressMutation.isPending,
2411
- countries: countryOptions,
2412
- renderAddressAutocomplete: ({ control, setValue: _setValue }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PlainAddressInput, {
2413
- control,
2414
- name: "address1"
2415
- })
2416
- }),
2417
- renderCreditCardDialog: ({ isOpen, onClose }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CreditCardFormDialog, {
2418
- isOpen,
2419
- onClose,
2420
- t,
2421
- onSubmit: async (data) => {
2422
- await addCreditCardMutation.mutateAsync(data);
2423
- onClose();
2760
+ isUpdatingCustomer: updateCustomerMutation.isPending,
2761
+ rewardsPointsEnabled: rewardPointsEnabled,
2762
+ pointsLedger: adaptedPointsLedger,
2763
+ isLoadingPointsLedger,
2764
+ addresses,
2765
+ isLoadingAddresses,
2766
+ onDeleteAddress: async (addressId) => {
2767
+ await deleteAddressMutation.mutateAsync(addressId);
2768
+ },
2769
+ isDeletingAddress: deleteAddressMutation.isPending,
2770
+ paymentMethods,
2771
+ isLoadingPaymentMethods,
2772
+ onDeletePaymentMethod: async (paymentMethodId) => {
2773
+ await deletePaymentMethodMutation.mutateAsync(paymentMethodId);
2424
2774
  },
2425
- isSubmitting: addCreditCardMutation.isPending,
2775
+ isDeletingPaymentMethod: deletePaymentMethodMutation.isPending,
2776
+ onUpdatePaymentMethod: async (paymentMethodId, data) => {
2777
+ await updatePaymentMethodMutation.mutateAsync({
2778
+ paymentMethodId,
2779
+ data
2780
+ });
2781
+ },
2782
+ isUpdatingPaymentMethod: updatePaymentMethodMutation.isPending,
2783
+ getBillingAddress: () => null,
2426
2784
  countries: countryOptions,
2427
- jwt,
2428
- renderAddressAutocomplete: ({ control, setValue: _setValue }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PlainAddressInput, {
2429
- control,
2430
- name: "address1"
2785
+ renderAddressDialog: ({ isOpen, onClose, selectedAddress }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(AddressFormDialog, {
2786
+ isOpen,
2787
+ onClose,
2788
+ selectedAddress,
2789
+ t,
2790
+ onSubmit: async (formData) => {
2791
+ if (selectedAddress) await updateAddressMutation.mutateAsync({
2792
+ addressId: selectedAddress.id,
2793
+ body: formData
2794
+ });
2795
+ else await createAddressMutation.mutateAsync(formData);
2796
+ onClose();
2797
+ },
2798
+ isSubmitting: createAddressMutation.isPending || updateAddressMutation.isPending,
2799
+ countries: countryOptions,
2800
+ renderAddressAutocomplete: ({ control, setValue: _setValue }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PlainAddressInput, {
2801
+ control,
2802
+ name: "address1"
2803
+ })
2804
+ }),
2805
+ renderCreditCardDialog: ({ isOpen, onClose }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CreditCardFormDialog, {
2806
+ isOpen,
2807
+ onClose,
2808
+ t,
2809
+ onSubmit: async (data) => {
2810
+ await addCreditCardMutation.mutateAsync(data);
2811
+ onClose();
2812
+ },
2813
+ isSubmitting: addCreditCardMutation.isPending,
2814
+ countries: countryOptions,
2815
+ jwt: "",
2816
+ renderAddressAutocomplete: ({ control, setValue: _setValue }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PlainAddressInput, {
2817
+ control,
2818
+ name: "address1"
2819
+ })
2431
2820
  })
2432
2821
  })
2433
2822
  })
@@ -2499,4 +2888,4 @@ Object.defineProperty(exports, "profileScreenPropertySchema", {
2499
2888
  }
2500
2889
  });
2501
2890
 
2502
- //# sourceMappingURL=ProfileScreen-FYGHStqM.cjs.map
2891
+ //# sourceMappingURL=ProfileScreen-CYTxOGeW.cjs.map