@saasquatch/mint-components 1.12.0-9 → 1.12.1-1

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 (187) hide show
  1. package/dist/cjs/{ShadowViewAddon-040cffad.js → ShadowViewAddon-88821c64.js} +3 -6
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/mint-components.cjs.js +1 -1
  4. package/dist/cjs/sqm-banking-info-form_16.cjs.entry.js +79 -202
  5. package/dist/cjs/sqm-big-stat_39.cjs.entry.js +160 -281
  6. package/dist/cjs/{sqm-invoice-table-view-c58966f8.js → sqm-invoice-table-view-a9133a11.js} +0 -98
  7. package/dist/cjs/sqm-portal-registration-form-view-621348a6.js +85 -0
  8. package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +12 -81
  9. package/dist/cjs/sqm-stencilbook.cjs.entry.js +323 -334
  10. package/dist/collection/collection-manifest.json +1 -6
  11. package/dist/collection/components/sqm-big-stat/useBigStat.js +3 -6
  12. package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +5 -5
  13. package/dist/collection/components/sqm-marketing-emails-checkbox/MarketingEmailsCheckbox.stories.js +11 -0
  14. package/dist/collection/components/sqm-marketing-emails-checkbox/sqm-marketing-emails-checkbox.js +160 -0
  15. package/dist/collection/components/sqm-portal-registration-form/PortalRegistrationForm.stories.js +5 -1
  16. package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form-view.js +1 -1
  17. package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form.js +3 -2
  18. package/dist/collection/components/sqm-portal-registration-form/usePortalRegistrationForm.js +6 -0
  19. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +4 -8
  20. package/dist/collection/components/tax-and-cash/BankingForm.stories.js +0 -2
  21. package/dist/collection/components/tax-and-cash/TaxForm.stories.js +0 -96
  22. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +1 -5
  23. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +38 -101
  24. package/dist/collection/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.js +2 -15
  25. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/data.js +0 -7
  26. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +8 -8
  27. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +2 -2
  28. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +0 -22
  29. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +9 -99
  30. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +1 -8
  31. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +2 -2
  32. package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +11 -14
  33. package/dist/esm/{ShadowViewAddon-69b61037.js → ShadowViewAddon-65c8679e.js} +3 -6
  34. package/dist/esm/loader.js +1 -1
  35. package/dist/esm/mint-components.js +1 -1
  36. package/dist/esm/sqm-banking-info-form_16.entry.js +79 -202
  37. package/dist/esm/sqm-big-stat_39.entry.js +159 -280
  38. package/dist/esm/{sqm-invoice-table-view-d1cfdaf4.js → sqm-invoice-table-view-71915a5e.js} +0 -98
  39. package/dist/esm/sqm-portal-registration-form-view-1d3066e1.js +83 -0
  40. package/dist/esm/sqm-portal-registration-form.entry.js +18 -87
  41. package/dist/esm/sqm-stencilbook.entry.js +323 -334
  42. package/dist/esm/stencil-hooks.module-ac12ca1c.js +1 -1
  43. package/dist/esm-es5/ShadowViewAddon-65c8679e.js +1 -0
  44. package/dist/esm-es5/loader.js +1 -1
  45. package/dist/esm-es5/mint-components.js +1 -1
  46. package/dist/esm-es5/sqm-banking-info-form_16.entry.js +1 -1
  47. package/dist/esm-es5/sqm-big-stat_39.entry.js +1 -1
  48. package/dist/esm-es5/sqm-invoice-table-view-71915a5e.js +1 -0
  49. package/dist/esm-es5/sqm-portal-registration-form-view-1d3066e1.js +1 -0
  50. package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
  51. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  52. package/dist/esm-es5/stencil-hooks.module-ac12ca1c.js +1 -1
  53. package/dist/mint-components/mint-components.esm.js +1 -1
  54. package/dist/mint-components/p-1279f7a3.system.entry.js +1 -0
  55. package/dist/mint-components/p-15a64357.entry.js +13 -0
  56. package/dist/mint-components/p-17f56865.entry.js +9 -0
  57. package/dist/mint-components/p-2a414b2e.system.js +2 -2
  58. package/dist/mint-components/p-3cb18382.system.js +1 -0
  59. package/dist/mint-components/p-40b1de58.js +1 -0
  60. package/dist/mint-components/p-4112e198.system.js +1 -0
  61. package/dist/mint-components/p-5cd917db.js +1 -0
  62. package/dist/mint-components/p-6792c8d8.system.entry.js +1 -0
  63. package/dist/mint-components/p-a02afa72.system.js +1 -0
  64. package/dist/mint-components/p-acd77a6e.entry.js +223 -0
  65. package/dist/mint-components/p-b3e97f8a.system.entry.js +1 -0
  66. package/dist/mint-components/{p-9eae245f.js → p-b651706a.js} +3 -6
  67. package/dist/mint-components/p-b8233366.entry.js +174 -0
  68. package/dist/mint-components/p-ca809fdd.system.js +1 -1
  69. package/dist/mint-components/p-cb38b9b0.system.entry.js +1 -0
  70. package/dist/mint-components/p-fd2c5407.js +2 -2
  71. package/dist/types/components/sqm-checkbox-field/sqm-checkbox-field-view.d.ts +1 -1
  72. package/dist/types/components/sqm-checkbox-field/sqm-checkbox-field.d.ts +4 -4
  73. package/dist/types/components/sqm-marketing-emails-checkbox/MarketingEmailsCheckbox.stories.d.ts +8 -0
  74. package/dist/types/components/sqm-marketing-emails-checkbox/sqm-marketing-emails-checkbox.d.ts +34 -0
  75. package/dist/types/components/sqm-portal-registration-form/PortalRegistrationForm.stories.d.ts +1 -0
  76. package/dist/types/components/sqm-portal-registration-form/sqm-portal-registration-form-view.d.ts +1 -0
  77. package/dist/types/components/sqm-portal-registration-form/sqm-portal-registration-form.d.ts +1 -1
  78. package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +0 -2
  79. package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.d.ts +0 -2
  80. package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +1 -1
  81. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/data.d.ts +0 -6
  82. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +2 -2
  83. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +0 -12
  84. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +2 -19
  85. package/dist/types/components.d.ts +108 -625
  86. package/docs/docs.docx +0 -0
  87. package/docs/raisins.json +1 -1
  88. package/grapesjs/grapesjs.js +1 -1
  89. package/package.json +2 -2
  90. package/dist/cjs/extractProps-fd93ba62.js +0 -21
  91. package/dist/cjs/keys-cff24974.js +0 -11
  92. package/dist/cjs/sqm-code-verification.cjs.entry.js +0 -342
  93. package/dist/cjs/sqm-email-verification.cjs.entry.js +0 -283
  94. package/dist/cjs/sqm-scroll.cjs.entry.js +0 -109
  95. package/dist/cjs/sqm-widget-verification-internal.cjs.entry.js +0 -103
  96. package/dist/cjs/sqm-widget-verification.cjs.entry.js +0 -210
  97. package/dist/cjs/usePayoutStatus-b9fb7399.js +0 -70
  98. package/dist/cjs/useVerificationEmail-6aacdb71.js +0 -169
  99. package/dist/collection/components/sqm-payout-button-scroll/PayoutButtonScroll.stories.js +0 -8
  100. package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll-view.js +0 -23
  101. package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll.js +0 -118
  102. package/dist/collection/components/sqm-payout-button-scroll/usePayoutButton.js +0 -44
  103. package/dist/collection/components/sqm-widget-verification/keys.js +0 -4
  104. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/WidgetCodeVerification.stories.js +0 -36
  105. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +0 -128
  106. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.js +0 -301
  107. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/useCodeVerification.js +0 -153
  108. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/WidgetEmailVerification.stories.js +0 -42
  109. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +0 -91
  110. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.js +0 -226
  111. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/useEmailVerification.js +0 -126
  112. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-internal.js +0 -339
  113. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +0 -557
  114. package/dist/collection/components/sqm-widget-verification/useVerificationEmail.js +0 -165
  115. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.js +0 -22
  116. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +0 -131
  117. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +0 -354
  118. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +0 -65
  119. package/dist/esm/extractProps-ae1afbb3.js +0 -19
  120. package/dist/esm/keys-db1897ae.js +0 -6
  121. package/dist/esm/sqm-code-verification.entry.js +0 -338
  122. package/dist/esm/sqm-email-verification.entry.js +0 -279
  123. package/dist/esm/sqm-scroll.entry.js +0 -105
  124. package/dist/esm/sqm-widget-verification-internal.entry.js +0 -99
  125. package/dist/esm/sqm-widget-verification.entry.js +0 -206
  126. package/dist/esm/usePayoutStatus-1a635054.js +0 -67
  127. package/dist/esm/useVerificationEmail-c32696ba.js +0 -167
  128. package/dist/esm-es5/ShadowViewAddon-69b61037.js +0 -1
  129. package/dist/esm-es5/extractProps-ae1afbb3.js +0 -1
  130. package/dist/esm-es5/keys-db1897ae.js +0 -1
  131. package/dist/esm-es5/sqm-code-verification.entry.js +0 -1
  132. package/dist/esm-es5/sqm-email-verification.entry.js +0 -1
  133. package/dist/esm-es5/sqm-invoice-table-view-d1cfdaf4.js +0 -1
  134. package/dist/esm-es5/sqm-scroll.entry.js +0 -1
  135. package/dist/esm-es5/sqm-widget-verification-internal.entry.js +0 -1
  136. package/dist/esm-es5/sqm-widget-verification.entry.js +0 -1
  137. package/dist/esm-es5/usePayoutStatus-1a635054.js +0 -1
  138. package/dist/esm-es5/useVerificationEmail-c32696ba.js +0 -1
  139. package/dist/mint-components/p-1712a9fd.entry.js +0 -11
  140. package/dist/mint-components/p-1e616d45.system.js +0 -1
  141. package/dist/mint-components/p-24092973.entry.js +0 -9
  142. package/dist/mint-components/p-26468242.js +0 -1
  143. package/dist/mint-components/p-331d060e.entry.js +0 -223
  144. package/dist/mint-components/p-3925bcd6.entry.js +0 -13
  145. package/dist/mint-components/p-39840341.js +0 -1
  146. package/dist/mint-components/p-4364001c.entry.js +0 -12
  147. package/dist/mint-components/p-4bd7a472.js +0 -1
  148. package/dist/mint-components/p-517224ef.js +0 -19
  149. package/dist/mint-components/p-5a23b560.system.entry.js +0 -1
  150. package/dist/mint-components/p-64491210.system.entry.js +0 -1
  151. package/dist/mint-components/p-8300d8c8.system.js +0 -1
  152. package/dist/mint-components/p-8bddb468.system.entry.js +0 -1
  153. package/dist/mint-components/p-9596e97c.system.entry.js +0 -1
  154. package/dist/mint-components/p-974070c4.system.entry.js +0 -1
  155. package/dist/mint-components/p-a85f57bb.entry.js +0 -1
  156. package/dist/mint-components/p-a8645c1b.system.js +0 -1
  157. package/dist/mint-components/p-b2a99637.system.js +0 -1
  158. package/dist/mint-components/p-b62faaa5.system.entry.js +0 -1
  159. package/dist/mint-components/p-c05e7b9f.entry.js +0 -195
  160. package/dist/mint-components/p-c510fb88.entry.js +0 -1
  161. package/dist/mint-components/p-c7057066.system.entry.js +0 -1
  162. package/dist/mint-components/p-d7806f31.js +0 -48
  163. package/dist/mint-components/p-e01ac27c.system.js +0 -1
  164. package/dist/mint-components/p-e45a8501.system.entry.js +0 -1
  165. package/dist/mint-components/p-e990dc21.system.js +0 -1
  166. package/dist/mint-components/p-ead27698.system.entry.js +0 -1
  167. package/dist/mint-components/p-f340214f.entry.js +0 -25
  168. package/dist/types/components/sqm-payout-button-scroll/PayoutButtonScroll.stories.d.ts +0 -5
  169. package/dist/types/components/sqm-payout-button-scroll/sqm-payout-button-scroll-view.d.ts +0 -10
  170. package/dist/types/components/sqm-payout-button-scroll/sqm-payout-button-scroll.d.ts +0 -26
  171. package/dist/types/components/sqm-payout-button-scroll/usePayoutButton.d.ts +0 -7
  172. package/dist/types/components/sqm-widget-verification/keys.d.ts +0 -4
  173. package/dist/types/components/sqm-widget-verification/sqm-code-verification/WidgetCodeVerification.stories.d.ts +0 -9
  174. package/dist/types/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.d.ts +0 -26
  175. package/dist/types/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.d.ts +0 -54
  176. package/dist/types/components/sqm-widget-verification/sqm-code-verification/useCodeVerification.d.ts +0 -25
  177. package/dist/types/components/sqm-widget-verification/sqm-email-verification/WidgetEmailVerification.stories.d.ts +0 -10
  178. package/dist/types/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.d.ts +0 -21
  179. package/dist/types/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.d.ts +0 -40
  180. package/dist/types/components/sqm-widget-verification/sqm-email-verification/useEmailVerification.d.ts +0 -10
  181. package/dist/types/components/sqm-widget-verification/sqm-widget-verification-internal.d.ts +0 -20
  182. package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +0 -87
  183. package/dist/types/components/sqm-widget-verification/useVerificationEmail.d.ts +0 -14
  184. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.d.ts +0 -10
  185. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.d.ts +0 -30
  186. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +0 -62
  187. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +0 -21
@@ -1,7 +1,7 @@
1
1
  import { h, r as registerInstance, c as Host, g as getElement } from './index-17b4da69.js';
2
2
  import { m as useRef, k as useState, f as useEffect, n as h$1, u as useMemo, b as browser, j as useReducer } from './stencil-hooks.module-ac12ca1c.js';
3
3
  import { i as intl } from './global-6306a9b8.js';
4
- import { d as dist, T, Q, K, M as Mn, D as Dn, t as qn, c as xe, i as isDemo, S as Sn, b as useCallback, O as On, y as $n, F as Fn, A as An } from './index.module-6c840c4e.js';
4
+ import { d as dist, Q, K, M as Mn, D as Dn, t as qn, c as xe, i as isDemo, S as Sn, b as useCallback, O as On, y as $n, T, F as Fn, A as An } from './index.module-6c840c4e.js';
5
5
  import { j as jsonpointer } from './jsonpointer-388a7082.js';
6
6
  import { c as cjs } from './cjs-bdfb4486.js';
7
7
  import './mixins-f60a614c.js';
@@ -12,10 +12,7 @@ import { u as useChildElements } from './useChildElements-fc84e640.js';
12
12
  import { l as luxon } from './luxon-7600be8d.js';
13
13
  import { g as generateUserError } from './useReferralTable-f6ffa103.js';
14
14
  import { g as getProps, l as luxonLocale } from './utils-334c1e34.js';
15
- import { t as taxTypeToName, v as validTaxDocument, a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, g as getCountryObj, O as OtherRegionSlotView, I as InvoiceTableView, E as ErrorView, L as LoadingView, c as vatLabels, G as GeneralLoadingView, f as formatErrorMessage, d as validateBillingField, o as objectIsFull, A as ADDRESS_REGIONS } from './sqm-invoice-table-view-d1cfdaf4.js';
16
- import { b as VERIFICATION_EVENT_KEY } from './keys-db1897ae.js';
17
- import { g as getStatus } from './usePayoutStatus-1a635054.js';
18
- import { e as extractProps } from './extractProps-ae1afbb3.js';
15
+ import { t as taxTypeToName, v as validTaxDocument, a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, g as getCountryObj, O as OtherRegionSlotView, I as InvoiceTableView, E as ErrorView, L as LoadingView, c as vatLabels, G as GeneralLoadingView, f as formatErrorMessage, d as validateBillingField, o as objectIsFull, A as ADDRESS_REGIONS } from './sqm-invoice-table-view-71915a5e.js';
19
16
 
20
17
  const TAX_CONTEXT_NAMESPACE = "sq:tax-and-cash";
21
18
  const TAX_FORM_CONTEXT_NAMESPACE = "sq:tax-form-context";
@@ -31,17 +28,11 @@ const GET_USER = dist.gql `
31
28
  query getUserTaxInfo {
32
29
  user: viewer {
33
30
  ... on User {
34
- id
35
31
  firstName
36
32
  lastName
37
33
  email
38
34
  countryCode
39
35
  customFields
40
- managedIdentity {
41
- uid
42
- email
43
- emailVerified
44
- }
45
36
  impactConnection {
46
37
  connected
47
38
  user {
@@ -85,7 +76,6 @@ const GET_USER = dist.gql `
85
76
  }
86
77
  payoutsAccount {
87
78
  hold
88
- holdReasons
89
79
  balance
90
80
  }
91
81
  }
@@ -949,21 +939,6 @@ const SAVE_WITHDRAWAL_SETTINGS = dist.gql `
949
939
  }
950
940
  }
951
941
  `;
952
- const UPDATE_WITHDRAWAL_SETTINGS = dist.gql `
953
- mutation updateImpactPublisherWithdrawalSettings(
954
- $updateImpactPublisherWithdrawalSettingsInput: UpdateImpactPublisherWithdrawalSettingsInput!
955
- ) {
956
- updateImpactPublisherWithdrawalSettings(
957
- updateImpactPublisherWithdrawalSettingsInput: $updateImpactPublisherWithdrawalSettingsInput
958
- ) {
959
- success
960
- validationErrors {
961
- field
962
- message
963
- }
964
- }
965
- }
966
- `;
967
942
  function getPaymentMethod(paymentOption) {
968
943
  if (paymentOption.defaultFinancePaymentMethodId === 3 ||
969
944
  paymentOption.defaultFinancePaymentMethodId === 5)
@@ -981,7 +956,6 @@ function parseImpactThreshold(threshold) {
981
956
  }
982
957
  function useBankingInfoForm(props) {
983
958
  var _a, _b, _c, _d, _e, _f, _g, _h;
984
- const host = T();
985
959
  const locale = Q();
986
960
  const user = K();
987
961
  const [step, setStep] = Mn(TAX_CONTEXT_NAMESPACE);
@@ -991,9 +965,6 @@ function useBankingInfoForm(props) {
991
965
  const { data: paymentOptionsData, loading: paymentOptionsLoading, errors: paymentOptionsError, } = qn(FINANCE_NETWORK_SETTINGS_NAMESPACE);
992
966
  const { data: userData, refetch, errors: userError, } = qn(USER_QUERY_NAMESPACE);
993
967
  const [saveWithdrawalSettings] = xe(SAVE_WITHDRAWAL_SETTINGS);
994
- const [updateWithdrawalSettings] = xe(UPDATE_WITHDRAWAL_SETTINGS);
995
- const [showVerification, setShowVerification] = useState(false);
996
- const [currentFormData, setCurrentFormData] = useState(null);
997
968
  const [formState, setFormState] = useState({});
998
969
  const [currentPaymentOption, setCurrentPaymentOption] = useState(null);
999
970
  const [loading, setLoading] = useState(false);
@@ -1003,9 +974,8 @@ function useBankingInfoForm(props) {
1003
974
  const [countrySearch, setCountrySearch] = useState("");
1004
975
  const [filteredCountries, setFilteredCountries] = useState(countries || []);
1005
976
  const currency = ((_c = (_b = (_a = userData === null || userData === void 0 ? void 0 : userData.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher) === null || _c === void 0 ? void 0 : _c.currency) || "";
1006
- const isPartner = !!((_f = (_e = (_d = userData === null || userData === void 0 ? void 0 : userData.user) === null || _d === void 0 ? void 0 : _d.impactConnection) === null || _e === void 0 ? void 0 : _e.publisher) === null || _f === void 0 ? void 0 : _f.withdrawalSettings);
1007
977
  const feeCap = paypalFeeMap[currency] || "";
1008
- const paymentOptions = (_g = paymentOptionsData === null || paymentOptionsData === void 0 ? void 0 : paymentOptionsData.impactFinanceNetworkSettings) === null || _g === void 0 ? void 0 : _g.data;
978
+ const paymentOptions = (_d = paymentOptionsData === null || paymentOptionsData === void 0 ? void 0 : paymentOptionsData.impactFinanceNetworkSettings) === null || _d === void 0 ? void 0 : _d.data;
1009
979
  const paymentMethodFeeMap = {
1010
980
  [ACH_PAYMENT_METHOD]: props.eftWithdrawalLabel,
1011
981
  [WIRE_PAYMENT_METHOD]: intl.formatMessage({
@@ -1084,50 +1054,49 @@ function useBankingInfoForm(props) {
1084
1054
  setFormState((p) => ({ ...p, bankCountry }));
1085
1055
  setCurrentPaymentOption(currentPaymentOption);
1086
1056
  };
1087
- const runMutation = async (formData, token) => {
1088
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
1057
+ const onSubmit = async (event) => {
1058
+ var _a, _b, _c, _d;
1059
+ let formData = {};
1060
+ let validationErrors = {};
1061
+ const controls = event.target.getFormControls();
1062
+ controls.forEach((control) => {
1063
+ if (!control.name || !control.id)
1064
+ return;
1065
+ const key = control.name;
1066
+ const value = control.value;
1067
+ jsonpointer.set(formData, key, value);
1068
+ if (control.required && !value) {
1069
+ jsonpointer.set(validationErrors, key, { type: "required" });
1070
+ }
1071
+ });
1072
+ setErrors({ inputErrors: validationErrors });
1073
+ if (Object.keys(validationErrors).length) {
1074
+ return;
1075
+ }
1089
1076
  setLoading(true);
1090
1077
  try {
1091
1078
  if (!currentPaymentOption)
1092
1079
  throw new Error("No currentPaymentOption");
1093
- const body = {
1094
- user: {
1095
- id: user.id,
1096
- accountId: user.accountId,
1080
+ const input = {
1081
+ setImpactPublisherWithdrawalSettingsInput: {
1082
+ user: {
1083
+ id: user.id,
1084
+ accountId: user.accountId,
1085
+ },
1086
+ ...formData,
1087
+ paymentMethod: getPaymentMethod(currentPaymentOption),
1088
+ paymentSchedulingType: paymentScheduleChecked,
1097
1089
  },
1098
- ...formData,
1099
- paymentMethod: getPaymentMethod(currentPaymentOption),
1100
- paymentSchedulingType: paymentScheduleChecked,
1101
1090
  };
1102
- let response = null;
1103
- let success = null;
1104
- let validationErrors = null;
1105
- // Call difference mutations based on whether the user is updating
1106
- // the info for setting it for the first time
1107
- if (isPartner) {
1108
- response = await updateWithdrawalSettings({
1109
- updateImpactPublisherWithdrawalSettingsInput: {
1110
- ...body,
1111
- accessKey: token,
1112
- },
1113
- });
1114
- success = (_b = (_a = response) === null || _a === void 0 ? void 0 : _a.updateImpactPublisherWithdrawalSettings) === null || _b === void 0 ? void 0 : _b.success;
1115
- validationErrors = (_d = (_c = response) === null || _c === void 0 ? void 0 : _c.updateImpactPublisherWithdrawalSettings) === null || _d === void 0 ? void 0 : _d.validationErrors;
1116
- }
1117
- else {
1118
- response = await saveWithdrawalSettings({
1119
- setImpactPublisherWithdrawalSettingsInput: {
1120
- ...body,
1121
- },
1122
- });
1123
- success = (_f = (_e = response) === null || _e === void 0 ? void 0 : _e.setImpactPublisherWithdrawalSettings) === null || _f === void 0 ? void 0 : _f.success;
1124
- validationErrors = (_h = (_g = response) === null || _g === void 0 ? void 0 : _g.setImpactPublisherWithdrawalSettings) === null || _h === void 0 ? void 0 : _h.validationErrors;
1125
- }
1126
- if (!response || ((_j = response) === null || _j === void 0 ? void 0 : _j.message)) {
1091
+ const response = await saveWithdrawalSettings(input);
1092
+ if (!response || ((_a = response) === null || _a === void 0 ? void 0 : _a.message)) {
1127
1093
  throw new Error();
1128
1094
  }
1129
- else if (!success) {
1130
- console.error("Validation failed: ", validationErrors);
1095
+ else if (!((_b = response
1096
+ .setImpactPublisherWithdrawalSettings) === null || _b === void 0 ? void 0 : _b.success)) {
1097
+ console.error("Validation failed: ", (_c = response
1098
+ .setImpactPublisherWithdrawalSettings) === null || _c === void 0 ? void 0 : _c.validationErrors);
1099
+ const validationErrors = (_d = response.setImpactPublisherWithdrawalSettings) === null || _d === void 0 ? void 0 : _d.validationErrors;
1131
1100
  const mappedValidationErrors = validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.reduce((agg, error) => {
1132
1101
  return {
1133
1102
  ...agg,
@@ -1153,45 +1122,6 @@ function useBankingInfoForm(props) {
1153
1122
  setLoading(false);
1154
1123
  }
1155
1124
  };
1156
- const onSubmit = async (event) => {
1157
- let formData = {};
1158
- let validationErrors = {};
1159
- const controls = event.target.getFormControls();
1160
- controls.forEach((control) => {
1161
- if (!control.name || !control.id)
1162
- return;
1163
- const key = control.name;
1164
- const value = control.value;
1165
- jsonpointer.set(formData, key, value);
1166
- if (control.required && !value) {
1167
- jsonpointer.set(validationErrors, key, { type: "required" });
1168
- }
1169
- });
1170
- setErrors({ inputErrors: validationErrors });
1171
- if (Object.keys(validationErrors).length) {
1172
- return;
1173
- }
1174
- let token = undefined;
1175
- if (isPartner) {
1176
- setShowVerification(true);
1177
- token = await new Promise((res) => {
1178
- const cb = (e) => {
1179
- e.stopPropagation();
1180
- host.removeEventListener(VERIFICATION_EVENT_KEY, cb);
1181
- res(e.detail.token);
1182
- };
1183
- host.addEventListener(VERIFICATION_EVENT_KEY, cb);
1184
- });
1185
- setShowVerification(false);
1186
- }
1187
- await runMutation(formData, token);
1188
- };
1189
- const onVerification = async (token) => {
1190
- host.dispatchEvent(new CustomEvent(VERIFICATION_EVENT_KEY, {
1191
- detail: { token },
1192
- bubbles: false,
1193
- }));
1194
- };
1195
1125
  function setPaymentMethodChecked(paymentMethod) {
1196
1126
  _setPaymentMethodChecked(paymentMethod);
1197
1127
  if (paymentMethod === "toPayPalAccount") {
@@ -1216,15 +1146,13 @@ function useBankingInfoForm(props) {
1216
1146
  setPaymentScheduleChecked,
1217
1147
  onBack: () => setStep("/dashboard"),
1218
1148
  setCountrySearch,
1219
- onVerification,
1220
1149
  },
1221
1150
  states: {
1222
- showVerification,
1223
1151
  step: step === null || step === void 0 ? void 0 : step.replace("/", ""),
1224
1152
  hideSteps: !!context.hideSteps,
1225
1153
  saveDisabled: !paymentMethodChecked || !paymentScheduleChecked,
1226
1154
  locale,
1227
- isPartner,
1155
+ isPartner: !!((_g = (_f = (_e = userData === null || userData === void 0 ? void 0 : userData.user) === null || _e === void 0 ? void 0 : _e.impactConnection) === null || _f === void 0 ? void 0 : _f.publisher) === null || _g === void 0 ? void 0 : _g.withdrawalSettings),
1228
1156
  feeCap,
1229
1157
  paymentMethodFeeLabel,
1230
1158
  disabled: loading,
@@ -1555,9 +1483,6 @@ const BankingInfoForm = class {
1555
1483
  padding: "var(--sl-spacing-x-small)",
1556
1484
  },
1557
1485
  };
1558
- if (props.states.isPartner && props.states.showVerification) {
1559
- return (h("sqm-code-verification", { onVerification: props.callbacks.onVerification }));
1560
- }
1561
1486
  return (h(Host, null, h(BankingInfoFormView, { callbacks: props.callbacks, text: props.text, states: props.states, refs: props.refs, slots: {
1562
1487
  formInputsSlot: inputFields === null || inputFields === void 0 ? void 0 : inputFields.map(({ input }) => input),
1563
1488
  countryInputSlot: (h("sl-select", Object.assign({ label: props.text.bankLocationLabel, required: true, name: "/bankCountry", id: "bankCountry", value: props.states.formState.bankCountry || "", "onSl-select": (e) => { var _a, _b; return props.callbacks.setBankCountry((_b = (_a = e.detail) === null || _a === void 0 ? void 0 : _a.item) === null || _b === void 0 ? void 0 : _b.value); } }, (((_a = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _a === void 0 ? void 0 : _a.bankCountry) && {
@@ -1690,7 +1615,6 @@ function useDemoBankingInfoForm(props) {
1690
1615
  setPaymentScheduleChecked,
1691
1616
  setCountrySearch: () => { },
1692
1617
  onBack: async () => setStep("/dashboard"),
1693
- onVerification: () => { },
1694
1618
  },
1695
1619
  text: props.getTextProps(),
1696
1620
  refs: {
@@ -1872,14 +1796,6 @@ const style$1 = {
1872
1796
  MessageContainer: {
1873
1797
  maxWidth: "400px",
1874
1798
  },
1875
- IFrameContainer: {
1876
- "@media screen and (max-width: 440px)": {
1877
- position: "absolute",
1878
- width: "100vw",
1879
- left: "-30px",
1880
- zIndex: "9999",
1881
- },
1882
- },
1883
1799
  };
1884
1800
  const sheet$1 = createStyleSheet(style$1);
1885
1801
  const styleString$1 = sheet$1.toString();
@@ -1921,7 +1837,6 @@ const DocusignLoadingView = () => {
1921
1837
  h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } }))));
1922
1838
  };
1923
1839
  const DocusignIframe = ({ states, data, callbacks, text, }) => {
1924
- const { classes } = sheet$1;
1925
1840
  const [iFrameHeight, setiFrameHeight] = useState("100%");
1926
1841
  const allowedDomains = [
1927
1842
  "referralsaasquatch.com",
@@ -1944,7 +1859,7 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
1944
1859
  return () => {
1945
1860
  window.removeEventListener("message", callback, false);
1946
1861
  };
1947
- }, [iFrameHeight]);
1862
+ }, []);
1948
1863
  if (states.urlLoading)
1949
1864
  return h(DocusignLoadingView, null);
1950
1865
  if (DOCUSIGN_ERROR_STATES.includes(states.status)) {
@@ -1952,11 +1867,7 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
1952
1867
  }
1953
1868
  if (DOCUSIGN_EXPIRED_STATES.includes(states.status))
1954
1869
  return h(DocusignExpiredView, { text: text });
1955
- // Wrap iFrame with container that shares the same height to push other elements down when absolute positioned
1956
- return (h("div", { style: { height: iFrameHeight } },
1957
- h("style", { type: "text/css" }, styleString$1),
1958
- h("div", { class: classes.IFrameContainer },
1959
- h("iframe", { scrolling: "yes", frameBorder: "0", width: "100%", src: data.documentUrl, height: iFrameHeight }))));
1870
+ return (h("iframe", { scrolling: "yes", frameBorder: "0", src: data.documentUrl, width: "100%", height: iFrameHeight }));
1960
1871
  };
1961
1872
 
1962
1873
  const style$2 = {
@@ -3790,9 +3701,27 @@ const TableRow = class {
3790
3701
  }
3791
3702
  };
3792
3703
 
3704
+ /**
3705
+ * Util function for getting just the props with a certain prefix.
3706
+ * @param props Text props on stencil component
3707
+ * @param prefix Prefix denoting which group the text prop belongs to
3708
+ * @returns A new object with all keys with the prefix provided. The prefix is removed from each key.
3709
+ */
3710
+ function extractProps(props, prefix) {
3711
+ const keys = Object.keys(props).filter((k) => k.startsWith(prefix));
3712
+ const formattedProps = keys.reduce((prev, k) => {
3713
+ const key = k.replace(prefix, "");
3714
+ return {
3715
+ ...prev,
3716
+ [key]: props[k],
3717
+ };
3718
+ }, {});
3719
+ return formattedProps;
3720
+ }
3721
+
3793
3722
  function getCurrentStep(user) {
3794
- var _a, _b;
3795
- if (!((_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.connected) || !((_b = user.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher)) {
3723
+ var _a;
3724
+ if (!((_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.connected)) {
3796
3725
  return "/1";
3797
3726
  }
3798
3727
  const { requiredTaxDocumentType, currentTaxDocument, withdrawalSettings, brandedSignup, } = user.impactConnection.publisher;
@@ -4686,14 +4615,14 @@ const TaxAndCashMonolith = class {
4686
4615
  * @uiGroup Dashboard Properties
4687
4616
  * @uiWidget textArea
4688
4617
  */
4689
- this.payoutHoldAlertHeader = "Your payout is on hold";
4618
+ this.dashboard_errorTitleText = "Your payout is on hold ";
4690
4619
  /**
4691
4620
  * Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
4692
4621
  * @uiName Payout error message description
4693
4622
  * @uiGroup Dashboard Properties
4694
4623
  * @uiWidget textArea
4695
4624
  */
4696
- this.payoutHoldAlertDescription = "Please contact Support or check your inbox for an email from our referral program provider, impact.com.";
4625
+ this.dashboard_errorDescriptionText = "If you’ve recently added your payout information, please wait while we verify your information. If it’s still on hold after a few days, please contact Support or check your inbox for an email from our referral program provider, impact.com.";
4697
4626
  /**
4698
4627
  * Text displayed for existing publishers that do not have saved banking information.
4699
4628
  * @uiName Payout missing information subtext
@@ -4908,12 +4837,6 @@ const style$5 = {
4908
4837
  borderTop: "none",
4909
4838
  },
4910
4839
  },
4911
- HoldAlertContainer: {
4912
- "&::part(base)": {
4913
- border: "none",
4914
- backgroundColor: "transparent",
4915
- },
4916
- },
4917
4840
  ExpiringSoonAlertContainer: {
4918
4841
  "&::part(base)": {
4919
4842
  backgroundColor: "var(--sl-color-yellow-100)",
@@ -5153,22 +5076,6 @@ const TaxAndCashDashboardView = (props) => {
5153
5076
  h("strong", null, text.error.generalTitle),
5154
5077
  h("br", null),
5155
5078
  text.error.generalDescription)),
5156
- states.hasHold && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$4.classes.HoldAlertContainer },
5157
- h("sl-icon", { slot: "icon", name: "exclamation-triangle" }),
5158
- h("strong", null, text.payoutHoldAlertHeader),
5159
- h("br", null),
5160
- text.payoutHoldAlertDescription)),
5161
- states.payoutStatus === "VERIFICATION_NEEDED" && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$4.classes.HoldAlertContainer },
5162
- h("sl-icon", { slot: "icon", name: "exclamation-triangle" }),
5163
- h("strong", null, text.verificationRequiredHeader),
5164
- h("p", { style: { margin: "0" } }, text.verificationRequiredDescription),
5165
- h("sl-button", { style: { marginTop: "var(--sl-spacing-x-small)" }, type: "default", loading: states.loading,
5166
- //AL: TODO hooks
5167
- onClick: () => callbacks.onClick }, text.verificationRequiredButtonText))),
5168
- h("sl-dialog", { noDismiss: true, class: sheet$4.classes.Dialog, open: states.showVerifyIdentity, "onSl-hide": callbacks.onVerifyIdentityCancel },
5169
- h("iframe", {
5170
- // AL: TODO replace iframe URL with verification url when available
5171
- scrolling: "yes", frameBorder: "0", width: "100%", height: "100%", src: "https://impacttech.complytaxforms.com/ServiceRedirect.aspx?Language=eng&Param1=UxBORV4bOIrqNb4gbpNmtvW3wjdZJyx4gPElIGMJNR8=&UUID=B576EA3E-80FD-4D85-AA59-653D23A7CCE8" })),
5172
5079
  h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet$4.classes.Dialog, open: states.showNewFormDialog, "onSl-hide": callbacks.onNewFormCancel },
5173
5080
  h("p", null, text.replaceTaxFormModalBodyText),
5174
5081
  h("sl-button", { slot: "footer", type: "primary", class: sheet$4.classes.DialogButton, onClick: callbacks.onNewFormClick }, text.newFormButton),
@@ -5274,11 +5181,10 @@ function getIndirectTaxType(taxInformation) {
5274
5181
  return "Indirect Tax";
5275
5182
  }
5276
5183
  const useTaxAndCashDashboard = (props) => {
5277
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
5184
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
5278
5185
  const setStep = Sn(TAX_CONTEXT_NAMESPACE);
5279
5186
  const setContext = Sn(TAX_FORM_CONTEXT_NAMESPACE);
5280
5187
  const [showDialog, setShowDialog] = useState(false);
5281
- const [showVerification, setShowVerification] = useState(false);
5282
5188
  const locale = Q();
5283
5189
  useEffect(() => {
5284
5190
  // Clear override context once on submitted
@@ -5309,7 +5215,6 @@ const useTaxAndCashDashboard = (props) => {
5309
5215
  setStep("/3");
5310
5216
  };
5311
5217
  const provinceName = (_d = INDIRECT_TAX_PROVINCES.find((p) => { var _a; return p.regionCode === ((_a = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _a === void 0 ? void 0 : _a.indirectTaxRegion); })) === null || _d === void 0 ? void 0 : _d.displayName;
5312
- const payoutStatus = getStatus(data);
5313
5218
  return {
5314
5219
  states: {
5315
5220
  dateSubmitted,
@@ -5331,16 +5236,12 @@ const useTaxAndCashDashboard = (props) => {
5331
5236
  loading,
5332
5237
  loadingError: !!(userError === null || userError === void 0 ? void 0 : userError.message),
5333
5238
  showNewFormDialog: showDialog,
5334
- hasHold: !!((_m = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _m === void 0 ? void 0 : _m.hold),
5335
- payoutStatus,
5336
- showVerifyIdentity: showVerification,
5337
5239
  },
5338
5240
  callbacks: {
5339
5241
  onClick: () => setShowDialog(true),
5340
5242
  onEditPayoutInfo,
5341
5243
  onNewFormCancel: () => setShowDialog(false),
5342
5244
  onNewFormClick,
5343
- onVerifyIdentityCancel: () => setShowVerification(false),
5344
5245
  },
5345
5246
  text: props.getTextProps(),
5346
5247
  };
@@ -5512,35 +5413,18 @@ const TaxAndCashDashboard = class {
5512
5413
  * @uiName Payout error message title
5513
5414
  * @uiWidget textArea
5514
5415
  */
5515
- this.payoutHoldAlertHeader = "Your payout is on hold";
5416
+ this.errorTitleText = "Your payout is on hold ";
5516
5417
  /**
5517
5418
  * Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
5518
5419
  * @uiName Payout error message description
5519
5420
  * @uiWidget textArea
5520
5421
  */
5521
- this.payoutHoldAlertDescription = "Please contact Support or check your inbox for an email from our referral program provider, impact.com.";
5422
+ this.errorDescriptionText = "If you’ve recently added your payout information, please wait while we verify your information. If it’s still on hold after a few days, please contact Support or check your inbox for an email from our referral program provider, impact.com.";
5522
5423
  /**
5523
5424
  * Text displayed for existing publishers that do not have saved banking information.
5524
5425
  * @uiName Payout missing information subtext
5525
5426
  */
5526
5427
  this.payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
5527
- /**
5528
- * Part of the alert displayed at the top of the page when the user needs to verify their identity.
5529
- * @uiName Verification required alert message title
5530
- * @uiWidget textArea
5531
- */
5532
- this.verificationRequiredHeader = "Verify your identity";
5533
- /**
5534
- * Part of the alert displayed at the top of the page when the user needs to verify their identity
5535
- * @uiName Verification required alert message description
5536
- * @uiWidget textArea
5537
- */
5538
- this.verificationRequiredDescription = "Complete your verification to start receiving your cash rewards. It should only take a few minutes verify.";
5539
- /**
5540
- * Part of the alert displayed at the top of the page when the user needs to verify their identity.
5541
- * @uiName Verification required alert button text
5542
- */
5543
- this.verificationRequiredButtonText = "Start Verification";
5544
5428
  /**
5545
5429
  * Part of the alert displayed at the top of the page.
5546
5430
  * @uiName Form submission error message title
@@ -5663,16 +5547,12 @@ function useDemoTaxAndCashDashboard(props) {
5663
5547
  disabled: false,
5664
5548
  loading: false,
5665
5549
  showNewFormDialog: false,
5666
- hasHold: false,
5667
- showVerifyIdentity: false,
5668
- payoutStatus: "DONE",
5669
5550
  },
5670
5551
  callbacks: {
5671
5552
  onClick: () => console.debug("check step"),
5672
5553
  onEditPayoutInfo: () => console.debug("payout info"),
5673
5554
  onNewFormCancel: () => console.log("hide"),
5674
5555
  onNewFormClick: () => console.log("show"),
5675
- onVerifyIdentityCancel: () => console.log("hide"),
5676
5556
  },
5677
5557
  text: props.getTextProps(),
5678
5558
  }, props.demoData || {}, { arrayMerge: (_, a) => a });
@@ -6729,7 +6609,7 @@ const style$6 = {
6729
6609
  },
6730
6610
  PhoneInputsSection: {
6731
6611
  display: "flex",
6732
- alignItems: "flex-end",
6612
+ alignItems: "flex-start",
6733
6613
  flexDirection: "column",
6734
6614
  gap: "4px",
6735
6615
  "& p": {
@@ -6740,7 +6620,7 @@ const style$6 = {
6740
6620
  },
6741
6621
  PhoneInputsContainer: {
6742
6622
  display: "flex",
6743
- alignItems: "flex-end",
6623
+ alignItems: "flex-start",
6744
6624
  gap: "4px",
6745
6625
  width: "100%",
6746
6626
  "& #phoneNumber": {
@@ -6962,20 +6842,17 @@ function useUserInfoForm(props) {
6962
6842
  const [filteredCurrencies, setFilteredCurrencies] = useState(currencies || []);
6963
6843
  const [formErrors, setErrors] = useState({});
6964
6844
  useEffect(() => {
6965
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
6845
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
6966
6846
  const user = data === null || data === void 0 ? void 0 : data.user;
6967
6847
  if (!user || step !== "/1")
6968
6848
  return;
6969
6849
  // If form already filled out, skip initialising it
6970
6850
  if (objectIsFull(userFormContext))
6971
6851
  return;
6972
- // Prefer MI email if it was verified before this
6973
- const email = ((_a = user.managedIdentity) === null || _a === void 0 ? void 0 : _a.emailVerified) ? user.managedIdentity.email
6974
- : user.email;
6975
- if (((_b = user.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher) && ((_c = user.impactConnection) === null || _c === void 0 ? void 0 : _c.user)) {
6852
+ if (((_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) && ((_b = user.impactConnection) === null || _b === void 0 ? void 0 : _b.user)) {
6976
6853
  // Initialise with partner information
6977
6854
  setUserFormContext({
6978
- email,
6855
+ email: user.email,
6979
6856
  firstName: user.impactConnection.user.firstName,
6980
6857
  lastName: user.impactConnection.user.lastName,
6981
6858
  countryCode: user.impactConnection.publisher.countryCode,
@@ -6991,17 +6868,17 @@ function useUserInfoForm(props) {
6991
6868
  else if (!(userFormContext === null || userFormContext === void 0 ? void 0 : userFormContext.email)) {
6992
6869
  // Initialise with user information
6993
6870
  setUserFormContext({
6994
- email,
6871
+ email: user.email,
6995
6872
  firstName: user.firstName,
6996
6873
  lastName: user.lastName,
6997
6874
  countryCode: user.countryCode || "US",
6998
- currency: (_d = user.customFields) === null || _d === void 0 ? void 0 : _d.currency,
6999
- phoneNumberCountryCode: ((_e = user.customFields) === null || _e === void 0 ? void 0 : _e.phoneNumberCountryCode) || "US",
7000
- phoneNumber: (_f = user.customFields) === null || _f === void 0 ? void 0 : _f.phoneNumber,
7001
- address: (_g = user.customFields) === null || _g === void 0 ? void 0 : _g.address,
7002
- city: (_h = user.customFields) === null || _h === void 0 ? void 0 : _h.city,
7003
- state: (_j = user.customFields) === null || _j === void 0 ? void 0 : _j.state,
7004
- postalCode: (_k = user.customFields) === null || _k === void 0 ? void 0 : _k.postalCode,
6875
+ currency: (_c = user.customFields) === null || _c === void 0 ? void 0 : _c.currency,
6876
+ phoneNumberCountryCode: ((_d = user.customFields) === null || _d === void 0 ? void 0 : _d.phoneNumberCountryCode) || "US",
6877
+ phoneNumber: (_e = user.customFields) === null || _e === void 0 ? void 0 : _e.phoneNumber,
6878
+ address: (_f = user.customFields) === null || _f === void 0 ? void 0 : _f.address,
6879
+ city: (_g = user.customFields) === null || _g === void 0 ? void 0 : _g.city,
6880
+ state: (_h = user.customFields) === null || _h === void 0 ? void 0 : _h.state,
6881
+ postalCode: (_j = user.customFields) === null || _j === void 0 ? void 0 : _j.postalCode,
7005
6882
  });
7006
6883
  }
7007
6884
  }, [data, step, userFormContext]);