@saasquatch/mint-components 1.15.4 → 1.15.5-0

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 (110) hide show
  1. package/dist/cjs/{ShadowViewAddon-e9dc77e3.js → ShadowViewAddon-28865623.js} +2 -2
  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_17.cjs.entry.js +265 -193
  5. package/dist/cjs/{sqm-base-registration-form-view-66f99821.js → sqm-base-registration-form-view-8029d30e.js} +4 -9
  6. package/dist/cjs/sqm-big-stat_43.cjs.entry.js +143 -10
  7. package/dist/cjs/{sqm-invoice-table-view-5c74607f.js → sqm-invoice-table-view-3f60fba9.js} +1 -0
  8. package/dist/cjs/sqm-portal-google-registration-form.cjs.entry.js +19 -28
  9. package/dist/cjs/sqm-stencilbook.cjs.entry.js +5 -8
  10. package/dist/cjs/{usePayoutStatus-733ef29a.js → usePayoutStatus-fc4e609e.js} +167 -2
  11. package/dist/collection/components/sqm-base-registration/BaseRegistrationForm.stories.js +2 -2
  12. package/dist/collection/components/sqm-base-registration/sqm-base-registration-form-view.js +4 -9
  13. package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +1 -1
  14. package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field.js +1 -1
  15. package/dist/collection/components/sqm-input-field/sqm-input-field.js +1 -1
  16. package/dist/collection/components/sqm-marketing-emails-checkbox/sqm-marketing-emails-checkbox.js +1 -1
  17. package/dist/collection/components/sqm-name-fields/NameFields.stories.js +0 -2
  18. package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +3 -3
  19. package/dist/collection/components/sqm-name-fields/sqm-name-fields.js +1 -31
  20. package/dist/collection/components/sqm-name-fields/useNameFields.js +0 -1
  21. package/dist/collection/components/sqm-password-field/sqm-password-field.js +2 -2
  22. package/dist/collection/components/sqm-portal-google-registration-form/PortalGoogleRegistrationForm.stories.js +0 -1
  23. package/dist/collection/components/sqm-portal-google-registration-form/sqm-portal-google-registration-form.js +5 -7
  24. package/dist/collection/components/sqm-portal-google-registration-form/usePortalGoogleRegistrationForm.js +15 -22
  25. package/dist/collection/components/tax-and-cash/TaxForm.stories.js +1 -0
  26. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +87 -1
  27. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +327 -0
  28. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +27 -3
  29. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +300 -0
  30. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +85 -1
  31. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +300 -0
  32. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +23 -12
  33. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +1 -1
  34. package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +19 -4
  35. package/dist/esm/{ShadowViewAddon-e0d5f1c9.js → ShadowViewAddon-f2176779.js} +2 -2
  36. package/dist/esm/loader.js +1 -1
  37. package/dist/esm/mint-components.js +1 -1
  38. package/dist/esm/sqm-banking-info-form_17.entry.js +218 -146
  39. package/dist/esm/{sqm-base-registration-form-view-d81e316a.js → sqm-base-registration-form-view-dafba287.js} +4 -9
  40. package/dist/esm/sqm-big-stat_43.entry.js +143 -10
  41. package/dist/esm/{sqm-invoice-table-view-3491dd80.js → sqm-invoice-table-view-01453fa3.js} +1 -0
  42. package/dist/esm/sqm-portal-google-registration-form.entry.js +19 -28
  43. package/dist/esm/sqm-stencilbook.entry.js +5 -8
  44. package/dist/esm/{usePayoutStatus-b89e8c49.js → usePayoutStatus-b4bdbfa7.js} +154 -4
  45. package/dist/esm-es5/{ShadowViewAddon-e0d5f1c9.js → ShadowViewAddon-f2176779.js} +1 -1
  46. package/dist/esm-es5/loader.js +1 -1
  47. package/dist/esm-es5/mint-components.js +1 -1
  48. package/dist/esm-es5/sqm-banking-info-form_17.entry.js +1 -1
  49. package/dist/esm-es5/sqm-base-registration-form-view-dafba287.js +1 -0
  50. package/dist/esm-es5/sqm-big-stat_43.entry.js +1 -1
  51. package/dist/esm-es5/sqm-invoice-table-view-01453fa3.js +1 -0
  52. package/dist/esm-es5/sqm-portal-google-registration-form.entry.js +1 -1
  53. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  54. package/dist/esm-es5/usePayoutStatus-b4bdbfa7.js +6 -0
  55. package/dist/mint-components/mint-components.esm.js +1 -1
  56. package/dist/mint-components/{p-3ac8613d.system.entry.js → p-02832118.system.entry.js} +1 -1
  57. package/dist/mint-components/{p-d15b642f.system.js → p-0d939b73.system.js} +1 -1
  58. package/dist/mint-components/p-2651ef99.system.js +1 -0
  59. package/dist/mint-components/p-28131538.entry.js +109 -0
  60. package/dist/mint-components/p-35701119.js +1 -0
  61. package/dist/mint-components/p-37996351.system.js +1 -1
  62. package/dist/mint-components/{p-1edebab1.entry.js → p-4a731079.entry.js} +2 -2
  63. package/dist/mint-components/p-59fe6066.js +1 -0
  64. package/dist/mint-components/p-86a5db85.system.js +1 -0
  65. package/dist/mint-components/p-93db61eb.system.js +6 -0
  66. package/dist/mint-components/p-9c4f4cd6.entry.js +1 -0
  67. package/dist/mint-components/p-a3647f70.system.entry.js +1 -0
  68. package/dist/mint-components/p-a4f494ee.system.entry.js +1 -0
  69. package/dist/mint-components/p-b24fae32.system.entry.js +1 -0
  70. package/dist/mint-components/{p-3b6dccec.js → p-c1b074b6.js} +1 -1
  71. package/dist/mint-components/p-e3deed72.entry.js +273 -0
  72. package/dist/mint-components/p-fde41ad1.js +157 -0
  73. package/dist/types/components/sqm-base-registration/sqm-base-registration-form-view.d.ts +1 -2
  74. package/dist/types/components/sqm-checkbox-field/sqm-checkbox-field.d.ts +1 -1
  75. package/dist/types/components/sqm-dropdown-field/sqm-dropdown-field.d.ts +1 -1
  76. package/dist/types/components/sqm-input-field/sqm-input-field.d.ts +1 -1
  77. package/dist/types/components/sqm-marketing-emails-checkbox/sqm-marketing-emails-checkbox.d.ts +1 -1
  78. package/dist/types/components/sqm-name-fields/sqm-name-fields-view.d.ts +0 -1
  79. package/dist/types/components/sqm-name-fields/sqm-name-fields.d.ts +0 -5
  80. package/dist/types/components/sqm-name-fields/useNameFields.d.ts +0 -1
  81. package/dist/types/components/sqm-password-field/sqm-password-field.d.ts +1 -1
  82. package/dist/types/components/sqm-portal-google-registration-form/usePortalGoogleRegistrationForm.d.ts +1 -2
  83. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.d.ts +14 -0
  84. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +53 -0
  85. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +2 -1
  86. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +48 -0
  87. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +12 -0
  88. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +48 -0
  89. package/dist/types/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.d.ts +2 -0
  90. package/dist/types/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.d.ts +1 -0
  91. package/dist/types/components.d.ts +296 -10
  92. package/docs/docs.docx +0 -0
  93. package/docs/raisins.json +1 -1
  94. package/grapesjs/grapesjs.js +1 -1
  95. package/package.json +1 -1
  96. package/dist/esm-es5/sqm-base-registration-form-view-d81e316a.js +0 -1
  97. package/dist/esm-es5/sqm-invoice-table-view-3491dd80.js +0 -1
  98. package/dist/esm-es5/usePayoutStatus-b89e8c49.js +0 -6
  99. package/dist/mint-components/p-021b0540.js +0 -46
  100. package/dist/mint-components/p-3d73cd84.entry.js +0 -220
  101. package/dist/mint-components/p-49932f12.system.js +0 -1
  102. package/dist/mint-components/p-7176a952.entry.js +0 -1
  103. package/dist/mint-components/p-8d0393d9.system.entry.js +0 -1
  104. package/dist/mint-components/p-9308221f.js +0 -1
  105. package/dist/mint-components/p-959c42b2.system.entry.js +0 -1
  106. package/dist/mint-components/p-a6494752.system.js +0 -6
  107. package/dist/mint-components/p-bc021969.system.js +0 -1
  108. package/dist/mint-components/p-c78e6066.entry.js +0 -273
  109. package/dist/mint-components/p-e64e8354.system.entry.js +0 -1
  110. package/dist/mint-components/p-e8e48982.js +0 -1
@@ -14,139 +14,12 @@ import { l as luxon } from './luxon-8d51c92b.js';
14
14
  import { g as generateUserError } from './useReferralTable-b3876ed6.js';
15
15
  import { T as TextSpanView } from './sqm-text-span-view-ca32495e.js';
16
16
  import { E as ErrorView } from './ErrorView-48e2b969.js';
17
- 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, 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-3491dd80.js';
17
+ 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, 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-01453fa3.js';
18
18
  import { e as extractProps } from './extractProps-ae1afbb3.js';
19
19
  import { b as VERIFICATION_EVENT_KEY, V as VERIFICATION_EMAIL_NAMESPACE, S as SHOW_CODE_NAMESPACE, a as VERIFICATION_PARENT_NAMESPACE } from './keys-406491dc.js';
20
- import { T as TAX_FORM_UPDATED_EVENT_KEY, a as useVeriffApp, g as getStatus, V as VERIFF_COMPLETE_EVENT_KEY } from './usePayoutStatus-b89e8c49.js';
20
+ import { F as FORM_STEPS, T as TAX_FORM_CONTEXT_NAMESPACE, S as SORTED_COUNTRIES_NAMESPACE, U as USER_QUERY_NAMESPACE, a as TAX_CONTEXT_NAMESPACE, b as FINANCE_NETWORK_SETTINGS_NAMESPACE, c as TAX_FORM_UPDATED_EVENT_KEY, d as USER_FORM_CONTEXT_NAMESPACE, C as COUNTRIES_QUERY_NAMESPACE, e as CURRENCIES_NAMESPACE, f as COUNTRIES_NAMESPACE, G as GET_USER, g as GET_COUNTRIES, h as GET_FINANCE_NETWORK_SETTINGS, i as CURRENCIES_QUERY_NAMESPACE, j as GET_CURRENCIES, k as useVeriffApp, l as getStatus, V as VERIFF_COMPLETE_EVENT_KEY } from './usePayoutStatus-b4bdbfa7.js';
21
21
  import { u as useVerificationEmail } from './useVerificationEmail-edc318cb.js';
22
22
 
23
- const TAX_CONTEXT_NAMESPACE = "sq:tax-and-cash";
24
- const TAX_FORM_CONTEXT_NAMESPACE = "sq:tax-form-context";
25
- const USER_QUERY_NAMESPACE = "sq:user-info-query";
26
- const USER_FORM_CONTEXT_NAMESPACE = "sq:user-form-context";
27
- const FINANCE_NETWORK_SETTINGS_NAMESPACE = "sq:finance-network-settings";
28
- const COUNTRIES_NAMESPACE = "sq:countries:list";
29
- const SORTED_COUNTRIES_NAMESPACE = "sq:countries:sorted";
30
- const COUNTRIES_QUERY_NAMESPACE = "sq:countries:query";
31
- const CURRENCIES_NAMESPACE = "sq:currencies:list";
32
- const CURRENCIES_QUERY_NAMESPACE = "sq:currencies:query";
33
- const GET_USER = dist.gql `
34
- query getUserTaxInfo {
35
- user: viewer {
36
- ... on User {
37
- id
38
- firstName
39
- lastName
40
- email
41
- countryCode
42
- customFields
43
- rewards(limit: 1000) {
44
- data {
45
- statuses
46
- partnerFundsTransfer {
47
- id
48
- status
49
- }
50
- }
51
- }
52
- managedIdentity {
53
- uid
54
- email
55
- emailVerified
56
- }
57
- impactConnection {
58
- connected
59
- user {
60
- firstName
61
- lastName
62
- }
63
- publisher {
64
- id
65
- brandedSignup
66
- countryCode
67
- currency
68
- billingAddress
69
- billingCity
70
- billingState
71
- billingCountryCode
72
- billingPostalCode
73
- phoneNumberCountryCode
74
- phoneNumber
75
- taxInformation {
76
- indirectTaxId
77
- indirectTaxCountryCode
78
- indirectTaxRegion
79
- additionalTaxId
80
- withholdingTaxId
81
- withholdingTaxCountryCode
82
- }
83
- requiredTaxDocumentType
84
- currentTaxDocument {
85
- status
86
- type
87
- dateCreated
88
- }
89
- withdrawalSettings {
90
- paymentMethod
91
- paypalEmailAddress
92
- bankCountry
93
- bankAccountNumber
94
- paymentSchedulingType
95
- paymentThreshold
96
- paymentDay
97
- }
98
- payoutsAccount {
99
- hold
100
- holdReasons
101
- balance
102
- }
103
- }
104
- }
105
- }
106
- }
107
- }
108
- `;
109
- const GET_COUNTRIES = dist.gql `
110
- query getCountries {
111
- impactPayoutCountries(limit: 1000) {
112
- data {
113
- countryCode
114
- displayName
115
- }
116
- }
117
- }
118
- `;
119
- const GET_CURRENCIES = dist.gql `
120
- query currencies($locale: RSLocale) {
121
- currencies(limit: 300) {
122
- data {
123
- displayName(locale: $locale)
124
- currencyCode
125
- }
126
- }
127
- }
128
- `;
129
- const GET_FINANCE_NETWORK_SETTINGS = dist.gql `
130
- query impactFinanceNetworkSettings(
131
- $filter: ImpactFinanceNetworkSettingsFilterInput
132
- ) {
133
- impactFinanceNetworkSettings(filter: $filter, limit: 1000) {
134
- data {
135
- countryCode
136
- currency
137
- defaultFinancePaymentMethodId
138
- thresholdOptions
139
- withdrawalSettingId
140
- internationalEftFee
141
- foreignFxFee
142
- defaultFxFee
143
- }
144
- totalCount
145
- }
146
- }
147
- `;
148
- const FORM_STEPS = 4;
149
-
150
23
  function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
151
24
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32;
152
25
  const { errors, ...formState } = props.states.formState;
@@ -5428,6 +5301,54 @@ const TaxAndCashMonolith = class {
5428
5301
  * @uiName Account review alert description
5429
5302
  */
5430
5303
  this.dashboard_accountReviewDescription = "This process takes 48 hours, payouts are on hold until it's completed. You will receive an email from our referral provider, Impact.com, if any issues arise. It contains details on how to resolve this issue. If you need further assistance, please reach out to our {supportLink}.";
5304
+ /**
5305
+ * @uiName Account review alert header
5306
+ */
5307
+ this.dashboard_paymentOnHoldHeader = "We are reviewing your new payout settings";
5308
+ /**
5309
+ * @uiName Account review alert description
5310
+ */
5311
+ this.dashboard_paymentOnHoldDescription = "Your payout is temporarily on hold while we review your new payment information, this process is usually resolved within 48 hours.";
5312
+ /**
5313
+ * @uiName Account review alert header
5314
+ */
5315
+ this.dashboard_beneficiaryNameInvalidHeader = "Your payment information does not match your tax form";
5316
+ /**
5317
+ * @uiName Account review alert description
5318
+ */
5319
+ this.dashboard_beneficiaryNameInvalidDescription = "The beneficiary name in your payment information does not match what was submitted in your tax form. Please review and update your payment information or tax form so that they match exactly and do not include any invalid characters. Your payouts are on hold until this is resolved.";
5320
+ /**
5321
+ * @uiName Account review alert header
5322
+ */
5323
+ this.dashboard_beneficiaryNameMismatchHeader = "Your payment information does not match your tax form";
5324
+ /**
5325
+ * @uiName Account review alert description
5326
+ */
5327
+ this.dashboard_beneficiaryNameMismatchDescription = "The beneficiary name in your payment information does not match what was submitted in your tax form. Please review and update your payment information or tax form so that they match exactly and do not include any invalid characters. Your payouts are on hold until this is resolved.";
5328
+ /**
5329
+ * @uiName Account review alert header
5330
+ */
5331
+ this.dashboard_bankNameMismatchHeader = "Your payment information does not match your tax form";
5332
+ /**
5333
+ * @uiName Account review alert description
5334
+ */
5335
+ this.dashboard_bankNameMismatchDescription = "The bank name in your payment information does not match what was submitted in your tax form. Please review and update your payment information or tax form so that they match exactly and do not include any invalid characters. Your payouts are on hold until this is resolved.";
5336
+ /**
5337
+ * @uiName Account review alert header
5338
+ */
5339
+ this.dashboard_withdrawalSettingsInvalidHeader = "Your payment information includes invalid characters";
5340
+ /**
5341
+ * @uiName Account review alert description
5342
+ */
5343
+ this.dashboard_withdrawalSettingsInvalidDescription = "There are invalid characters in your payment information. Please review your information and make sure it is correct with no invalid characters. Your payouts are on hold until this is resolved.";
5344
+ /**
5345
+ * @uiName Account review alert header
5346
+ */
5347
+ this.dashboard_paymentReturnedHeader = "Payout unsuccessful";
5348
+ /**
5349
+ * @uiName Account review alert description
5350
+ */
5351
+ this.dashboard_paymentReturnedDescription = "Our recent payment attempt for your earnings was unsuccessful. Please review your payment information and make sure it is correct.";
5431
5352
  /**
5432
5353
  * @uiName Terms and Conditions text
5433
5354
  * @uiGroup Dashboard Properties
@@ -5899,7 +5820,7 @@ const TaxAndCashDashboardView = (props) => {
5899
5820
  icon: "exclamation-octagon",
5900
5821
  class: sheet$5.classes.ErrorHoldAlertContainer,
5901
5822
  };
5902
- case "ACCOUNT_REVIEW":
5823
+ case "NEW_PAYEE_REVIEW":
5903
5824
  return {
5904
5825
  header: text.accountReviewHeader,
5905
5826
  description: intl.formatMessage({
@@ -5913,6 +5834,90 @@ const TaxAndCashDashboardView = (props) => {
5913
5834
  icon: "exclamation-triangle",
5914
5835
  class: sheet$5.classes.WarningHoldAlertContainer,
5915
5836
  };
5837
+ case "PAYMENT_HOLD_ON_CHANGE":
5838
+ return {
5839
+ header: text.paymentHoldOnChangeHeader,
5840
+ description: intl.formatMessage({
5841
+ id: "accountReviewDescription",
5842
+ defaultMessage: text.paymentHoldOnChangeDescription,
5843
+ }, {
5844
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
5845
+ }),
5846
+ buttonText: null,
5847
+ alertType: "warning",
5848
+ icon: "exclamation-triangle",
5849
+ class: sheet$5.classes.WarningHoldAlertContainer,
5850
+ };
5851
+ case "BENEFICIARY_NAME_INVALID":
5852
+ return {
5853
+ header: text.beneficiaryNameInvalidHeader,
5854
+ description: intl.formatMessage({
5855
+ id: "accountReviewDescription",
5856
+ defaultMessage: text.beneficiaryNameInvalidDescription,
5857
+ }, {
5858
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
5859
+ }),
5860
+ button: (h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$5.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)),
5861
+ alertType: "warning",
5862
+ icon: "exclamation-triangle",
5863
+ class: sheet$5.classes.WarningHoldAlertContainer,
5864
+ };
5865
+ case "BENEFICIARY_NAME_MISMATCH":
5866
+ return {
5867
+ header: text.beneficiaryNameMismatchHeader,
5868
+ description: intl.formatMessage({
5869
+ id: "accountReviewDescription",
5870
+ defaultMessage: text.beneficiaryNameMismatchDescription,
5871
+ }, {
5872
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
5873
+ }),
5874
+ button: (h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$5.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)),
5875
+ alertType: "warning",
5876
+ icon: "exclamation-triangle",
5877
+ class: sheet$5.classes.WarningHoldAlertContainer,
5878
+ };
5879
+ case "BANK_TAX_NAME_MISMATCH":
5880
+ return {
5881
+ header: text.bankTaxNameMismatchHeader,
5882
+ description: intl.formatMessage({
5883
+ id: "accountReviewDescription",
5884
+ defaultMessage: text.bankTaxNameMismatchDescription,
5885
+ }, {
5886
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
5887
+ }),
5888
+ button: (h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$5.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)),
5889
+ alertType: "warning",
5890
+ icon: "exclamation-triangle",
5891
+ class: sheet$5.classes.WarningHoldAlertContainer,
5892
+ };
5893
+ case "WITHDRAWAL_SETTINGS_INVALID":
5894
+ return {
5895
+ header: text.withdrawalSettingsInvalidHeader,
5896
+ description: intl.formatMessage({
5897
+ id: "accountReviewDescription",
5898
+ defaultMessage: text.withdrawalSettingsInvalidDescription,
5899
+ }, {
5900
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
5901
+ }),
5902
+ button: (h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$5.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)),
5903
+ alertType: "warning",
5904
+ icon: "exclamation-triangle",
5905
+ class: sheet$5.classes.WarningHoldAlertContainer,
5906
+ };
5907
+ case "PAYMENT_RETURNED":
5908
+ return {
5909
+ header: text.paymentReturnedHeader,
5910
+ description: intl.formatMessage({
5911
+ id: "accountReviewDescription",
5912
+ defaultMessage: text.paymentReturnedDescription,
5913
+ }, {
5914
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
5915
+ }),
5916
+ button: (h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$5.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)),
5917
+ alertType: "warning",
5918
+ icon: "exclamation-triangle",
5919
+ class: sheet$5.classes.WarningHoldAlertContainer,
5920
+ };
5916
5921
  case "HOLD":
5917
5922
  return {
5918
5923
  header: text.payoutHoldAlertHeader,
@@ -6482,6 +6487,54 @@ const TaxAndCashDashboard = class {
6482
6487
  * @uiName Account review alert description
6483
6488
  */
6484
6489
  this.accountReviewDescription = "This process takes 48 hours, payouts are on hold until it's completed. You will receive an email from our referral provider, Impact.com, if any issues arise. It contains details on how to resolve this issue. If you need further assistance, please reach out to our {supportLink}.";
6490
+ /**
6491
+ * @uiName Payment hold on change alert header
6492
+ */
6493
+ this.paymentHoldOnChangeHeader = "We are reviewing your new payout settings";
6494
+ /**
6495
+ * @uiName Payment hold on change alert description
6496
+ */
6497
+ this.paymentHoldOnChangeDescription = "Your payout is temporarily on hold while we review your new payment information, this process is usually resolved within 48 hours.";
6498
+ /**
6499
+ * @uiName Beneficiary name invalid alert header
6500
+ */
6501
+ this.beneficiaryNameInvalidHeader = "Your payment information does not match your tax form";
6502
+ /**
6503
+ * @uiName Beneficiary name invalid description
6504
+ */
6505
+ this.beneficiaryNameInvalidDescription = "The beneficiary name in your payment information does not match what was submitted in your tax form. Please review and update your payment information or tax form so that they match exactly and do not include any invalid characters. Your payouts are on hold until this is resolved.";
6506
+ /**
6507
+ * @uiName Beneficiary name mismatch alert header
6508
+ */
6509
+ this.beneficiaryNameMismatchHeader = "Your payment information does not match your tax form";
6510
+ /**
6511
+ * @uiName Beneficiary name mismatch alert description
6512
+ */
6513
+ this.beneficiaryNameMismatchDescription = "The beneficiary name in your payment information does not match what was submitted in your tax form. Please review and update your payment information or tax form so that they match exactly and do not include any invalid characters. Your payouts are on hold until this is resolved.";
6514
+ /**
6515
+ * @uiName Bank name mismatch alert header
6516
+ */
6517
+ this.bankTaxNameMismatchHeader = "Your payment information does not match your tax form";
6518
+ /**
6519
+ * @uiName Bank name mismatch alert description
6520
+ */
6521
+ this.bankTaxNameMismatchDescription = "The bank name in your payment information does not match what was submitted in your tax form. Please review and update your payment information or tax form so that they match exactly and do not include any invalid characters. Your payouts are on hold until this is resolved.";
6522
+ /**
6523
+ * @uiName Withdrawal settings invalid alert header
6524
+ */
6525
+ this.withdrawalSettingsInvalidHeader = "Your payment information includes invalid characters";
6526
+ /**
6527
+ * @uiName Withdrawal settings invalid alert description
6528
+ */
6529
+ this.withdrawalSettingsInvalidDescription = "There are invalid characters in your payment information. Please review your information and make sure it is correct with no invalid characters. Your payouts are on hold until this is resolved.";
6530
+ /**
6531
+ * @uiName Payment returned alert header
6532
+ */
6533
+ this.paymentReturnedHeader = "Payout unsuccessful";
6534
+ /**
6535
+ * @uiName Payment returned alert description
6536
+ */
6537
+ this.paymentReturnedDescription = "Our recent payment attempt for your earnings was unsuccessful. Please review your payment information and make sure it is correct.";
6485
6538
  /**
6486
6539
  * @uiName Terms and Conditions text
6487
6540
  */
@@ -7747,6 +7800,12 @@ const UserInfoFormView = (props) => {
7747
7800
  default:
7748
7801
  regionLabel = text.state;
7749
7802
  }
7803
+ function isDisabledInput(field) {
7804
+ var _a;
7805
+ if (states.isPartner && !!((_a = data.partnerData) === null || _a === void 0 ? void 0 : _a[field]))
7806
+ return true;
7807
+ return false;
7808
+ }
7750
7809
  return (h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
7751
7810
  h("style", { type: "text/css" },
7752
7811
  styleString$6,
@@ -7794,18 +7853,22 @@ const UserInfoFormView = (props) => {
7794
7853
  }))),
7795
7854
  h("div", null,
7796
7855
  h("div", { class: classes.InputContainer },
7797
- h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", value: formState.firstName, label: text.firstName, disabled: states.disabled || states.isUser || states.isPartner }, (((_b = formState.errors) === null || _b === void 0 ? void 0 : _b.firstName) ? {
7856
+ h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", value: formState.firstName, label: text.firstName, disabled: states.disabled ||
7857
+ states.isUser ||
7858
+ isDisabledInput("firstName") }, (((_b = formState.errors) === null || _b === void 0 ? void 0 : _b.firstName) ? {
7798
7859
  class: classes.ErrorInput,
7799
7860
  helpText: formatErrorMessage(text.firstName, formState.errors.firstName),
7800
7861
  }
7801
7862
  : {}), { id: "firstName", name: "/firstName", required: true })),
7802
- h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", value: formState.lastName, label: text.lastName, disabled: states.disabled || states.isUser || states.isPartner }, (((_c = formState.errors) === null || _c === void 0 ? void 0 : _c.lastName) ? {
7863
+ h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", value: formState.lastName, label: text.lastName, disabled: states.disabled ||
7864
+ states.isUser ||
7865
+ isDisabledInput("lastName") }, (((_c = formState.errors) === null || _c === void 0 ? void 0 : _c.lastName) ? {
7803
7866
  class: classes.ErrorInput,
7804
7867
  helpText: formatErrorMessage(text.lastName, formState.errors.lastName),
7805
7868
  }
7806
7869
  : {}), { id: "lastName", name: "/lastName", required: true })),
7807
7870
  h("sl-input", { exportparts: "label: input-label, base: input-base", value: formState.email, label: text.email, disabled: true, id: "email", name: "/email", required: true }),
7808
- h("sl-select", Object.assign({ id: "countryCode", exportparts: "label: input-label, base: input-base", name: "/countryCode", label: text.country, value: formState.countryCode, disabled: states.disabled || states.isPartner }, (((_d = formState.errors) === null || _d === void 0 ? void 0 : _d.countryCode) ? {
7871
+ h("sl-select", Object.assign({ id: "countryCode", exportparts: "label: input-label, base: input-base", name: "/countryCode", label: text.country, value: formState.countryCode, disabled: states.disabled || isDisabledInput("countryCode") }, (((_d = formState.errors) === null || _d === void 0 ? void 0 : _d.countryCode) ? {
7809
7872
  class: classes.ErrorInput,
7810
7873
  helpText: formatErrorMessage(text.country, formState.errors.countryCode),
7811
7874
  }
@@ -7821,7 +7884,8 @@ const UserInfoFormView = (props) => {
7821
7884
  h("div", { class: classes.PhoneInputsSection },
7822
7885
  h("p", null, text.phoneNumber),
7823
7886
  h("div", { class: classes.PhoneInputsContainer },
7824
- h("sl-select", Object.assign({ id: "phoneNumberCountryCode", exportparts: "label: input-label, base: input-base", name: "/phoneNumberCountryCode", value: formState.phoneNumberCountryCode, disabled: states.disabled || states.isPartner, ref: (el) => (refs.phoneCountryRef.current = el) }, (((_g = formState.errors) === null || _g === void 0 ? void 0 : _g.phoneNumberCountryCode) ? {
7887
+ h("sl-select", Object.assign({ id: "phoneNumberCountryCode", exportparts: "label: input-label, base: input-base", name: "/phoneNumberCountryCode", value: formState.phoneNumberCountryCode, disabled: states.disabled ||
7888
+ isDisabledInput("phoneNumberCountryCode"), ref: (el) => (refs.phoneCountryRef.current = el) }, (((_g = formState.errors) === null || _g === void 0 ? void 0 : _g.phoneNumberCountryCode) ? {
7825
7889
  class: classes.ErrorInput,
7826
7890
  }
7827
7891
  : {}), { required: true, "onSl-select": (e) => callbacks.onFormChange("phoneCountry", e) }),
@@ -7847,7 +7911,7 @@ const UserInfoFormView = (props) => {
7847
7911
  // Naive phone number validation
7848
7912
  validateBillingField(/[a-zA-Z]+/, value) &&
7849
7913
  formatErrorMessage(text.phoneNumber, text.error.fieldInvalidError);
7850
- }, disabled: states.disabled || states.isPartner }, (((_k = formState.errors) === null || _k === void 0 ? void 0 : _k.phoneNumber) ? {
7914
+ }, disabled: states.disabled || isDisabledInput("phoneNumber") }, (((_k = formState.errors) === null || _k === void 0 ? void 0 : _k.phoneNumber) ? {
7851
7915
  class: classes.ErrorInput,
7852
7916
  helpText: formatErrorMessage(text.phoneNumber, formState.errors.phoneNumber),
7853
7917
  }
@@ -7855,7 +7919,7 @@ const UserInfoFormView = (props) => {
7855
7919
  h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", label: text.address, id: "address", name: "/address", value: formState.address, validationError: ({ value }) =>
7856
7920
  // Checks for non-ASCII characters
7857
7921
  !validateBillingField(/^[\x20-\xFF]+$/, value) &&
7858
- formatErrorMessage(text.address, text.error.invalidCharacterError), disabled: states.disabled || states.isPartner }, (((_l = formState.errors) === null || _l === void 0 ? void 0 : _l.address) ? {
7922
+ formatErrorMessage(text.address, text.error.invalidCharacterError), disabled: states.disabled || isDisabledInput("address") }, (((_l = formState.errors) === null || _l === void 0 ? void 0 : _l.address) ? {
7859
7923
  class: classes.ErrorInput,
7860
7924
  helpText: formatErrorMessage(text.address, formState.errors.address),
7861
7925
  }
@@ -7863,22 +7927,22 @@ const UserInfoFormView = (props) => {
7863
7927
  h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", label: text.city, id: "city", name: "/city", value: formState.city, validationError: ({ value }) =>
7864
7928
  // Checks for non-ASCII characters
7865
7929
  !validateBillingField(/^[\x20-\xFF]+$/, value) &&
7866
- formatErrorMessage(text.city, text.error.invalidCharacterError), disabled: states.disabled || states.isPartner }, (((_m = formState.errors) === null || _m === void 0 ? void 0 : _m.city) ? {
7930
+ formatErrorMessage(text.city, text.error.invalidCharacterError), disabled: states.disabled || isDisabledInput("city") }, (((_m = formState.errors) === null || _m === void 0 ? void 0 : _m.city) ? {
7867
7931
  class: classes.ErrorInput,
7868
7932
  helpText: formatErrorMessage(text.city, formState.errors.city),
7869
7933
  }
7870
7934
  : {}), { required: true })),
7871
- !states.hideState && (h("sl-select", Object.assign({ label: regionLabel, exportparts: "label: input-label, base: input-base", id: "state", name: "/state", value: formState.state, disabled: states.disabled || states.isPartner }, (((_o = formState.errors) === null || _o === void 0 ? void 0 : _o.state) ? {
7935
+ !states.hideState && (h("sl-select", Object.assign({ label: regionLabel, exportparts: "label: input-label, base: input-base", id: "state", name: "/state", value: formState.state, disabled: states.disabled || isDisabledInput("state") }, (((_o = formState.errors) === null || _o === void 0 ? void 0 : _o.state) ? {
7872
7936
  class: classes.ErrorInput,
7873
7937
  helpText: formatErrorMessage(text.state, formState.errors.state),
7874
7938
  }
7875
7939
  : {}), { required: true }), (_p = data.regions) === null || _p === void 0 ? void 0 : _p.map((r) => (h("sl-menu-item", { value: r.value }, r.label))))),
7876
- h("sl-input", Object.assign({ label: text.postalCode, exportparts: "label: input-label, base: input-base", id: "postalCode", name: "/postalCode", value: formState.postalCode, disabled: states.disabled || states.isPartner }, (((_q = formState.errors) === null || _q === void 0 ? void 0 : _q.postalCode) ? {
7940
+ h("sl-input", Object.assign({ label: text.postalCode, exportparts: "label: input-label, base: input-base", id: "postalCode", name: "/postalCode", value: formState.postalCode, disabled: states.disabled || isDisabledInput("postalCode") }, (((_q = formState.errors) === null || _q === void 0 ? void 0 : _q.postalCode) ? {
7877
7941
  class: classes.ErrorInput,
7878
7942
  helpText: formatErrorMessage(text.postalCode, formState.errors.postalCode),
7879
7943
  }
7880
7944
  : {}), { required: true })),
7881
- h("sl-select", Object.assign({ id: "currency", exportparts: "label: input-label, base: input-base", name: "/currency", label: text.currency, menu: true, value: formState.currency, disabled: states.disabled || states.isPartner, helpText: text.currencyHelpText }, (((_r = formState.errors) === null || _r === void 0 ? void 0 : _r.currency) ? {
7945
+ h("sl-select", Object.assign({ id: "currency", exportparts: "label: input-label, base: input-base", name: "/currency", label: text.currency, menu: true, value: formState.currency, disabled: states.disabled || isDisabledInput("currency"), helpText: text.currencyHelpText }, (((_r = formState.errors) === null || _r === void 0 ? void 0 : _r.currency) ? {
7882
7946
  class: classes.ErrorInput,
7883
7947
  helpText: formatErrorMessage(text.currency, formState.errors.currency),
7884
7948
  }
@@ -7900,13 +7964,13 @@ const UserInfoFormView = (props) => {
7900
7964
  h("div", { class: classes.CheckboxWrapper },
7901
7965
  h("sl-checkbox", { exportparts: "label: input-label, base: input-base", checked: formState.allowBankingCollection === true, "onSl-change": (e) => {
7902
7966
  e.target.value = e.target.checked;
7903
- }, disabled: states.isPartner ? false : states.disabled, required: true, value: formState.allowBankingCollection, id: "allowBankingCollection", name: "/allowBankingCollection" }, bankingCollectionText),
7967
+ }, disabled: states.disabled, required: true, value: formState.allowBankingCollection, id: "allowBankingCollection", name: "/allowBankingCollection" }, bankingCollectionText),
7904
7968
  ((_u = formState.errors) === null || _u === void 0 ? void 0 : _u.allowBankingCollection) && (h("p", { class: classes.ErrorText }, formatErrorMessage(text.termsAndConditionsLabel, formState.errors.allowBankingCollection))))),
7905
- h("sl-button", { type: "primary", disabled: states.isPartner ? false : states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton))))));
7969
+ h("sl-button", { type: "primary", disabled: states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton))))));
7906
7970
  };
7907
7971
 
7908
7972
  function useUserInfoForm(props) {
7909
- var _a, _b, _c, _d;
7973
+ var _a, _b, _c, _d, _e, _f;
7910
7974
  const currencyRef = useRef(undefined);
7911
7975
  const phoneCountryRef = useRef(undefined);
7912
7976
  const formRef = useRef(null);
@@ -8058,9 +8122,16 @@ function useUserInfoForm(props) {
8058
8122
  postalCode: userData.postalCode,
8059
8123
  currency: userData.currency,
8060
8124
  });
8061
- const nextStep = context.overrideNextStep || "/2";
8125
+ const skipNextStep = getSkipNextStep(userData);
8126
+ console.log({ skipNextStep });
8127
+ const nextStep = context.overrideNextStep || skipNextStep ? "/3" : "/2";
8062
8128
  setStep(nextStep);
8063
8129
  }
8130
+ function getSkipNextStep(userData) {
8131
+ if (userData.countryCode === "US")
8132
+ return true;
8133
+ return true;
8134
+ }
8064
8135
  const hasStates = ["ES", "AU", "US", "CA"].includes(userFormContext.countryCode);
8065
8136
  const regionObj = hasStates
8066
8137
  ? ADDRESS_REGIONS[userFormContext === null || userFormContext === void 0 ? void 0 : userFormContext.countryCode]
@@ -8088,6 +8159,7 @@ function useUserInfoForm(props) {
8088
8159
  allCountries: countries,
8089
8160
  regionLabelEnum: regionObj === null || regionObj === void 0 ? void 0 : regionObj.labelEnum,
8090
8161
  regions: (regionObj === null || regionObj === void 0 ? void 0 : regionObj.regions) || [],
8162
+ partnerData: (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher,
8091
8163
  },
8092
8164
  states: {
8093
8165
  step: step === null || step === void 0 ? void 0 : step.replace("/", ""),
@@ -8096,8 +8168,8 @@ function useUserInfoForm(props) {
8096
8168
  disabled: loading,
8097
8169
  loadingError: !!(userError === null || userError === void 0 ? void 0 : userError.message),
8098
8170
  loading: loading,
8099
- isPartner: !!((_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher),
8100
- isUser: !!((_d = (_c = data === null || data === void 0 ? void 0 : data.user) === null || _c === void 0 ? void 0 : _c.impactConnection) === null || _d === void 0 ? void 0 : _d.user),
8171
+ isPartner: !!((_d = (_c = data === null || data === void 0 ? void 0 : data.user) === null || _c === void 0 ? void 0 : _c.impactConnection) === null || _d === void 0 ? void 0 : _d.publisher),
8172
+ isUser: !!((_f = (_e = data === null || data === void 0 ? void 0 : data.user) === null || _e === void 0 ? void 0 : _e.impactConnection) === null || _f === void 0 ? void 0 : _f.user),
8101
8173
  formState: {
8102
8174
  ...userFormContext,
8103
8175
  errors: formErrors,
@@ -38,7 +38,6 @@ sqm-portal-register {
38
38
  const sheet = createStyleSheet(style);
39
39
  const styleString = sheet.toString();
40
40
  function BaseRegistrationFormView(props) {
41
- var _a, _b;
42
41
  const { states, content, callbacks } = props;
43
42
  return (h("div", { class: sheet.classes.Wrapper },
44
43
  h("style", { type: "text/css" },
@@ -46,8 +45,10 @@ function BaseRegistrationFormView(props) {
46
45
  styleString),
47
46
  h(TextSpanView, { type: "h3" }, content.pageLabel),
48
47
  h("sl-form", { class: sheet.classes.Column, "onSl-submit": callbacks.handleEmailSubmit, novalidate: true },
48
+ states.error && (h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
49
+ h("div", { part: "erroralert-text" }, props.states.error))),
49
50
  content.formData,
50
- h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", type: "email", name: "/email", label: content.emailLabel || "Email", required: true, validationError: ({ value }) => {
51
+ h("sl-input", { exportparts: "label: input-label, base: input-base", type: "email", name: "/email", label: content.emailLabel || "Email", required: true, validationError: ({ value }) => {
51
52
  if (!value) {
52
53
  return content.requiredFieldErrorMessage;
53
54
  }
@@ -55,13 +56,7 @@ function BaseRegistrationFormView(props) {
55
56
  if (!value.includes("@")) {
56
57
  return content.invalidEmailErrorMessage;
57
58
  }
58
- } }, (((_a = states === null || states === void 0 ? void 0 : states.validationErrors) === null || _a === void 0 ? void 0 : _a.email) ? {
59
- class: sheet.classes.ErrorStyle,
60
- helpText: ((_b = states === null || states === void 0 ? void 0 : states.validationErrors) === null || _b === void 0 ? void 0 : _b.email) ||
61
- content.requiredFieldErrorMessage,
62
- }
63
- : []))),
64
- content.terms,
59
+ } }),
65
60
  h("div", { class: sheet.classes.ButtonsContainer },
66
61
  h("sl-button", { submit: true, exportparts: "base: primarybutton-base", type: "primary", style: { margin: "0" } }, content.submitLabel || "Register"),
67
62
  h("sl-menu-divider", { style: { margin: "0" } }),