@saasquatch/mint-components 2.0.2-6 → 2.0.2-8

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 (184) hide show
  1. package/dist/cjs/{IndirectTaxDetailsView-dce2a79b.js → IndirectTaxDetailsView-e5f70b8b.js} +2 -2
  2. package/dist/cjs/{ShadowViewAddon-357bc625.js → ShadowViewAddon-925a8fa6.js} +8 -8
  3. package/dist/cjs/{global-3d01d469.js → global-8bba5b3a.js} +1 -5
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/cjs/mint-components.cjs.js +2 -2
  6. package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +345 -115
  7. package/dist/cjs/sqm-big-stat_47.cjs.entry.js +224 -29
  8. package/dist/cjs/sqm-code-verification.cjs.entry.js +1 -1
  9. package/dist/cjs/sqm-email-verification.cjs.entry.js +1 -1
  10. package/dist/cjs/sqm-empty_4.cjs.entry.js +1 -1
  11. package/dist/cjs/sqm-header-logo.cjs.entry.js +14 -1
  12. package/dist/cjs/{sqm-lead-checkbox-field-view-ebb9ead9.js → sqm-lead-checkbox-field-view-340acad0.js} +1 -1
  13. package/dist/cjs/sqm-lead-checkbox-field.cjs.entry.js +3 -3
  14. package/dist/cjs/{sqm-lead-input-field-view-62debb73.js → sqm-lead-input-field-view-06ed3632.js} +1 -1
  15. package/dist/cjs/sqm-lead-input-field.cjs.entry.js +3 -3
  16. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +1 -1
  17. package/dist/cjs/sqm-pagination_3.cjs.entry.js +1 -1
  18. package/dist/cjs/{sqm-portal-email-verification-view-c280139a.js → sqm-portal-email-verification-view-5518eb0d.js} +1 -1
  19. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +2 -2
  20. package/dist/cjs/{sqm-portal-profile-view-7bca5749.js → sqm-portal-profile-view-615e6975.js} +1 -1
  21. package/dist/cjs/sqm-portal-profile.cjs.entry.js +2 -2
  22. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +1 -1
  23. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +1 -1
  24. package/dist/cjs/sqm-stencilbook.cjs.entry.js +9 -8
  25. package/dist/cjs/{useLeadFormState-593f5d39.js → useLeadFormState-fd0445f9.js} +1 -1
  26. package/dist/cjs/{data-16106637.js → usePayoutStatus-9abe2de8.js} +158 -129
  27. package/dist/cjs/{utils-5167439f.js → utils-83d125fa.js} +1 -1
  28. package/dist/collection/components/sqm-header-logo/sqm-header-logo.js +80 -3
  29. package/dist/collection/components/sqm-portal-footer/sqm-portal-footer-view.js +3 -3
  30. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +4 -4
  31. package/dist/collection/components/tax-and-cash/TaxForm.stories.js +1 -0
  32. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +2 -1
  33. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +46 -40
  34. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +90 -2
  35. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +353 -0
  36. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +33 -3
  37. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +301 -1
  38. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +92 -2
  39. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +302 -2
  40. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +23 -12
  41. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +1 -1
  42. package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +92 -9
  43. package/dist/collection/global/styles.js +1 -5
  44. package/dist/collection/global/styles.ts +1 -5
  45. package/dist/esm/{IndirectTaxDetailsView-b7fa596b.js → IndirectTaxDetailsView-0a57b622.js} +2 -2
  46. package/dist/esm/{ShadowViewAddon-32559cba.js → ShadowViewAddon-aae27c2e.js} +8 -8
  47. package/dist/esm/{global-55e73040.js → global-1099f20d.js} +1 -5
  48. package/dist/esm/loader.js +2 -2
  49. package/dist/esm/mint-components.js +2 -2
  50. package/dist/esm/sqm-banking-info-form_10.entry.js +296 -66
  51. package/dist/esm/sqm-big-stat_47.entry.js +202 -7
  52. package/dist/esm/sqm-code-verification.entry.js +1 -1
  53. package/dist/esm/sqm-email-verification.entry.js +1 -1
  54. package/dist/esm/sqm-empty_4.entry.js +1 -1
  55. package/dist/esm/sqm-header-logo.entry.js +14 -1
  56. package/dist/esm/{sqm-lead-checkbox-field-view-c359cc95.js → sqm-lead-checkbox-field-view-cbafee07.js} +1 -1
  57. package/dist/esm/sqm-lead-checkbox-field.entry.js +3 -3
  58. package/dist/esm/{sqm-lead-input-field-view-6fe71f32.js → sqm-lead-input-field-view-f3775c28.js} +1 -1
  59. package/dist/esm/sqm-lead-input-field.entry.js +3 -3
  60. package/dist/esm/sqm-leaderboard-rank.entry.js +1 -1
  61. package/dist/esm/sqm-pagination_3.entry.js +1 -1
  62. package/dist/esm/{sqm-portal-email-verification-view-176ddb91.js → sqm-portal-email-verification-view-7d86299c.js} +1 -1
  63. package/dist/esm/sqm-portal-email-verification.entry.js +2 -2
  64. package/dist/esm/{sqm-portal-profile-view-6a53716b.js → sqm-portal-profile-view-3ed13e4d.js} +1 -1
  65. package/dist/esm/sqm-portal-profile.entry.js +2 -2
  66. package/dist/esm/sqm-referral-table_11.entry.js +1 -1
  67. package/dist/esm/sqm-rewards-table_9.entry.js +1 -1
  68. package/dist/esm/sqm-stencilbook.entry.js +9 -8
  69. package/dist/esm/{useLeadFormState-d8667862.js → useLeadFormState-c379e5d7.js} +1 -1
  70. package/dist/esm/{data-acdb790f.js → usePayoutStatus-e0ef2374.js} +159 -130
  71. package/dist/esm/{utils-27fdc7d7.js → utils-6122971b.js} +1 -1
  72. package/dist/esm-es5/{IndirectTaxDetailsView-b7fa596b.js → IndirectTaxDetailsView-0a57b622.js} +1 -1
  73. package/dist/esm-es5/{ShadowViewAddon-32559cba.js → ShadowViewAddon-aae27c2e.js} +1 -1
  74. package/dist/esm-es5/{global-55e73040.js → global-1099f20d.js} +1 -1
  75. package/dist/esm-es5/loader.js +1 -1
  76. package/dist/esm-es5/mint-components.js +1 -1
  77. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
  78. package/dist/esm-es5/sqm-big-stat_47.entry.js +1 -1
  79. package/dist/esm-es5/sqm-code-verification.entry.js +1 -1
  80. package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
  81. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  82. package/dist/esm-es5/sqm-header-logo.entry.js +1 -1
  83. package/dist/esm-es5/{sqm-lead-checkbox-field-view-c359cc95.js → sqm-lead-checkbox-field-view-cbafee07.js} +1 -1
  84. package/dist/esm-es5/sqm-lead-checkbox-field.entry.js +1 -1
  85. package/dist/esm-es5/{sqm-lead-input-field-view-6fe71f32.js → sqm-lead-input-field-view-f3775c28.js} +1 -1
  86. package/dist/esm-es5/sqm-lead-input-field.entry.js +1 -1
  87. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  88. package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
  89. package/dist/esm-es5/{sqm-portal-email-verification-view-176ddb91.js → sqm-portal-email-verification-view-7d86299c.js} +1 -1
  90. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  91. package/dist/esm-es5/{sqm-portal-profile-view-6a53716b.js → sqm-portal-profile-view-3ed13e4d.js} +1 -1
  92. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  93. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  94. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  95. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  96. package/dist/esm-es5/{useLeadFormState-d8667862.js → useLeadFormState-c379e5d7.js} +1 -1
  97. package/dist/esm-es5/usePayoutStatus-e0ef2374.js +6 -0
  98. package/dist/esm-es5/{utils-27fdc7d7.js → utils-6122971b.js} +1 -1
  99. package/dist/mint-components/global/styles.ts +1 -5
  100. package/dist/mint-components/mint-components.esm.js +1 -1
  101. package/dist/mint-components/mint-components.js +1 -1
  102. package/dist/mint-components/{p-c25e76f7.js → p-00bc7211.js} +1 -1
  103. package/dist/mint-components/p-0279c71d.system.entry.js +1 -0
  104. package/dist/mint-components/{p-3aba7c3a.system.entry.js → p-0649123a.system.entry.js} +1 -1
  105. package/dist/mint-components/p-09ab53fb.system.entry.js +1 -0
  106. package/dist/mint-components/{p-b9d63ca9.system.entry.js → p-14e813a7.system.entry.js} +1 -1
  107. package/dist/mint-components/{p-7a2375c3.system.entry.js → p-18720462.system.entry.js} +1 -1
  108. package/dist/mint-components/{p-6ec7b746.system.entry.js → p-22a9114f.system.entry.js} +1 -1
  109. package/dist/mint-components/p-27bc4daa.system.entry.js +1 -0
  110. package/dist/mint-components/{p-73fdd315.system.js → p-38f932ae.system.js} +1 -1
  111. package/dist/mint-components/{p-5a8911c7.entry.js → p-47c83656.entry.js} +1 -1
  112. package/dist/mint-components/{p-449314ca.entry.js → p-4c811d12.entry.js} +1 -1
  113. package/dist/mint-components/{p-745a27ee.system.entry.js → p-4ce51b1c.system.entry.js} +1 -1
  114. package/dist/mint-components/{p-9db05d78.js → p-4fed8672.js} +1 -1
  115. package/dist/mint-components/{p-b5905137.system.entry.js → p-511c87ce.system.entry.js} +1 -1
  116. package/dist/mint-components/{p-5b088b96.system.entry.js → p-56009bf0.system.entry.js} +1 -1
  117. package/dist/mint-components/{p-47b73018.js → p-57ce33dd.js} +2 -2
  118. package/dist/mint-components/p-59bb2d52.system.js +6 -0
  119. package/dist/mint-components/{p-da0a7fa5.entry.js → p-5d059c95.entry.js} +1 -1
  120. package/dist/mint-components/{p-2e0a3d84.entry.js → p-5f3eafd4.entry.js} +2 -2
  121. package/dist/mint-components/{p-4cfa1432.system.js → p-60465a2d.system.js} +1 -1
  122. package/dist/mint-components/{p-93f37676.entry.js → p-60c14cec.entry.js} +1 -1
  123. package/dist/mint-components/{p-709cdbf7.system.entry.js → p-6445e926.system.entry.js} +1 -1
  124. package/dist/mint-components/{p-c803eaed.entry.js → p-6c006998.entry.js} +1 -1
  125. package/dist/mint-components/{p-618d249d.js → p-6d5bd95a.js} +1 -1
  126. package/dist/mint-components/{p-757820a4.entry.js → p-6d9ce4e5.entry.js} +1 -1
  127. package/dist/mint-components/{p-959925bf.system.entry.js → p-717b6730.system.entry.js} +1 -1
  128. package/dist/mint-components/p-72bc9830.entry.js +273 -0
  129. package/dist/mint-components/{p-f9c3290d.system.js → p-74f43a08.system.js} +1 -1
  130. package/dist/mint-components/{p-ec0f9326.js → p-79a3344f.js} +1 -1
  131. package/dist/mint-components/{p-9504b639.js → p-7a268047.js} +1 -1
  132. package/dist/mint-components/p-8b5b2acc.entry.js +1 -0
  133. package/dist/mint-components/p-967a9040.system.js +1 -0
  134. package/dist/mint-components/{p-bcb8532f.entry.js → p-a217cc8d.entry.js} +1 -1
  135. package/dist/mint-components/{p-b427cf9e.entry.js → p-a5c63310.entry.js} +1 -1
  136. package/dist/mint-components/{p-271c092c.system.js → p-aa08457e.system.js} +1 -1
  137. package/dist/mint-components/{p-887e3b03.js → p-aa8c6332.js} +1 -1
  138. package/dist/mint-components/p-ab111e29.entry.js +1 -0
  139. package/dist/mint-components/{p-e8661eaa.system.js → p-ad4348c3.system.js} +1 -1
  140. package/dist/mint-components/{p-130fd1d8.entry.js → p-aefaec37.entry.js} +1 -1
  141. package/dist/mint-components/{p-54154ed4.system.entry.js → p-bec87ac9.system.entry.js} +1 -1
  142. package/dist/mint-components/p-c41108ae.js +157 -0
  143. package/dist/mint-components/{p-52123353.system.js → p-c85f204b.system.js} +1 -1
  144. package/dist/mint-components/{p-aeea89b4.system.js → p-c994512c.system.js} +1 -1
  145. package/dist/mint-components/{p-84632241.system.entry.js → p-d3120982.system.entry.js} +1 -1
  146. package/dist/mint-components/{p-1b7900ed.js → p-db1a0db1.js} +1 -1
  147. package/dist/mint-components/p-e09c13e3.entry.js +99 -0
  148. package/dist/mint-components/{p-bcc61fbe.system.js → p-e0a724dd.system.js} +1 -1
  149. package/dist/mint-components/p-ea0bc627.entry.js +1 -0
  150. package/dist/mint-components/{p-23c21cf4.js → p-ed16b35a.js} +1 -1
  151. package/dist/mint-components/{p-0c6259b2.system.js → p-f0eae4e6.system.js} +1 -1
  152. package/dist/mint-components/{p-46a22d08.system.entry.js → p-f401ef19.system.entry.js} +1 -1
  153. package/dist/types/components/sqm-header-logo/sqm-header-logo.d.ts +14 -1
  154. package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.d.ts +24 -0
  155. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.d.ts +16 -0
  156. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +57 -0
  157. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +3 -1
  158. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +48 -0
  159. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +12 -0
  160. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +48 -0
  161. package/dist/types/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.d.ts +2 -0
  162. package/dist/types/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.d.ts +1 -0
  163. package/dist/types/components.d.ts +331 -41
  164. package/dist/types/global/android.d.ts +7 -0
  165. package/dist/types/global/demo.d.ts +2 -0
  166. package/dist/types/stories/features.d.ts +4 -0
  167. package/dist/types/stories/templates.d.ts +4 -0
  168. package/docs/docs.docx +0 -0
  169. package/docs/raisins.json +1 -1
  170. package/grapesjs/grapesjs.js +1 -1
  171. package/package.json +1 -1
  172. package/dist/esm-es5/data-acdb790f.js +0 -6
  173. package/dist/mint-components/p-17e3f564.system.entry.js +0 -1
  174. package/dist/mint-components/p-469a6450.system.js +0 -6
  175. package/dist/mint-components/p-8a2ec966.entry.js +0 -1
  176. package/dist/mint-components/p-8a458176.entry.js +0 -273
  177. package/dist/mint-components/p-9d4f1401.system.entry.js +0 -1
  178. package/dist/mint-components/p-9ff60e10.system.js +0 -1
  179. package/dist/mint-components/p-a7ee19dc.entry.js +0 -1
  180. package/dist/mint-components/p-c8bbd212.entry.js +0 -99
  181. package/dist/mint-components/p-e1e7d01c.js +0 -157
  182. package/dist/mint-components/p-eea87fdc.system.entry.js +0 -1
  183. package/dist/mint-components/p-fac02d24.entry.js +0 -1
  184. package/shoelace/assets/icons/twitter-x.svg +0 -4
@@ -1,4 +1,4 @@
1
- import { h } from "@stencil/core";
1
+ import { Fragment, h } from "@stencil/core";
2
2
  import { intl } from "../../../global/global";
3
3
  import { createStyleSheet } from "../../../styling/JSS";
4
4
  const style = {
@@ -126,7 +126,7 @@ export function PayoutStatusAlertView(props) {
126
126
  icon: "exclamation-triangle",
127
127
  };
128
128
  }
129
- case "ACCOUNT_REVIEW":
129
+ case "NEW_PAYEE_REVIEW":
130
130
  return {
131
131
  header: text.accountReviewHeader,
132
132
  description: intl.formatMessage({
@@ -139,6 +139,92 @@ export function PayoutStatusAlertView(props) {
139
139
  alertType: "warning",
140
140
  icon: "exclamation-triangle",
141
141
  };
142
+ case "PAYMENT_HOLD_ON_CHANGE":
143
+ return {
144
+ header: text.paymentHoldOnChangeHeader,
145
+ description: intl.formatMessage({
146
+ id: "accountReviewDescription",
147
+ defaultMessage: text.paymentHoldOnChangeDescription,
148
+ }, {
149
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
150
+ }),
151
+ buttonText: null,
152
+ alertType: "warning",
153
+ icon: "exclamation-triangle",
154
+ };
155
+ case "BENEFICIARY_NAME_INVALID":
156
+ return {
157
+ header: text.beneficiaryNameInvalidHeader,
158
+ description: intl.formatMessage({
159
+ id: "accountReviewDescription",
160
+ defaultMessage: text.beneficiaryNameInvalidDescription,
161
+ }, {
162
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
163
+ }),
164
+ button: (h(Fragment, null,
165
+ h("sl-button", { disabled: states.loading, type: "primary", onClick: callbacks.onPaymentInfoClick }, text.editPaymentInformationButton),
166
+ h("sl-button", { disabled: states.loading, type: "default", onClick: callbacks.onNewFormClick }, text.newFormButton))),
167
+ alertType: "warning",
168
+ icon: "exclamation-triangle",
169
+ };
170
+ case "BENEFICIARY_NAME_MISMATCH":
171
+ return {
172
+ header: text.beneficiaryNameMismatchHeader,
173
+ description: intl.formatMessage({
174
+ id: "accountReviewDescription",
175
+ defaultMessage: text.beneficiaryNameMismatchDescription,
176
+ }, {
177
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
178
+ }),
179
+ button: (h(Fragment, null,
180
+ h("sl-button", { disabled: states.loading, type: "primary", onClick: callbacks.onPaymentInfoClick }, text.editPaymentInformationButton),
181
+ h("sl-button", { disabled: states.loading, type: "default", onClick: callbacks.onNewFormClick }, text.newFormButton))),
182
+ alertType: "warning",
183
+ icon: "exclamation-triangle",
184
+ };
185
+ case "BANK_TAX_NAME_MISMATCH":
186
+ return {
187
+ header: text.bankTaxNameMismatchHeader,
188
+ description: intl.formatMessage({
189
+ id: "accountReviewDescription",
190
+ defaultMessage: text.bankTaxNameMismatchDescription,
191
+ }, {
192
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
193
+ }),
194
+ button: (h(Fragment, null,
195
+ h("sl-button", { disabled: states.loading, type: "primary", onClick: callbacks.onPaymentInfoClick }, text.editPaymentInformationButton),
196
+ h("sl-button", { disabled: states.loading, type: "default", onClick: callbacks.onNewFormClick }, text.newFormButton))),
197
+ alertType: "warning",
198
+ icon: "exclamation-triangle",
199
+ };
200
+ case "WITHDRAWAL_SETTINGS_INVALID":
201
+ return {
202
+ header: text.withdrawalSettingsInvalidHeader,
203
+ description: intl.formatMessage({
204
+ id: "accountReviewDescription",
205
+ defaultMessage: text.withdrawalSettingsInvalidDescription,
206
+ }, {
207
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
208
+ }),
209
+ button: (h(Fragment, null,
210
+ h("sl-button", { disabled: states.loading, type: "primary", onClick: callbacks.onPaymentInfoClick }, text.editPaymentInformationButton))),
211
+ alertType: "warning",
212
+ icon: "exclamation-triangle",
213
+ };
214
+ case "PAYMENT_RETURNED":
215
+ return {
216
+ header: text.paymentReturnedHeader,
217
+ description: intl.formatMessage({
218
+ id: "accountReviewDescription",
219
+ defaultMessage: text.paymentReturnedDescription,
220
+ }, {
221
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
222
+ }),
223
+ button: (h(Fragment, null,
224
+ h("sl-button", { disabled: states.loading, type: "primary", onClick: callbacks.onPaymentInfoClick }, text.editPaymentInformationButton))),
225
+ alertType: "error",
226
+ icon: "exclamation-triangle",
227
+ };
142
228
  case "HOLD":
143
229
  return {
144
230
  header: text.holdHeader,
@@ -174,6 +260,8 @@ export function PayoutStatusAlertView(props) {
174
260
  return (h("div", { style: { paddingTop: "10px" } },
175
261
  h("sl-button", { type: "secondary", exportparts: "base: secondarybutton-base", loading: states.veriffLoading, onClick: callbacks.onClick }, text.verificationRequiredButtonText)));
176
262
  default:
263
+ if (alertDetails.button)
264
+ return alertDetails.button;
177
265
  return;
178
266
  }
179
267
  }
@@ -18,6 +18,15 @@ export class PayoutStatusAlert {
18
18
  * @uiName Info required alert header
19
19
  */
20
20
  this.informationRequiredHeader = "Payout and tax information required";
21
+ /**
22
+ *
23
+ * @uiName Edit payment info button label
24
+ */
25
+ this.editPaymentInformationButton = "Edit Payout Information";
26
+ /**
27
+ * @uiName Submit new tax form button label
28
+ */
29
+ this.newFormButton = "Submit new form";
21
30
  /**
22
31
  * @uiName Info required alert description
23
32
  */
@@ -70,6 +79,54 @@ export class PayoutStatusAlert {
70
79
  * @uiName Account review alert description
71
80
  */
72
81
  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}.";
82
+ /**
83
+ * @uiName Payment on hold alert header
84
+ */
85
+ this.paymentHoldOnChangeHeader = "We are reviewing your new payout settings";
86
+ /**
87
+ * @uiName Payment on hold alert description
88
+ */
89
+ this.paymentHoldOnChangeDescription = "Your payout is temporarily on hold while we review your new payment information, this process is usually resolved within 48 hours.";
90
+ /**
91
+ * @uiName Beneficiary name invalid alert header
92
+ */
93
+ this.beneficiaryNameInvalidHeader = "Your payment information does not match your tax form";
94
+ /**
95
+ * @uiName Beneficiary name invalid description
96
+ */
97
+ 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.";
98
+ /**
99
+ * @uiName Beneficiary name mismatch alert header
100
+ */
101
+ this.beneficiaryNameMismatchHeader = "Your payment information does not match your tax form";
102
+ /**
103
+ * @uiName Beneficiary name mismatch alert description
104
+ */
105
+ 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.";
106
+ /**
107
+ * @uiName Bank name mismatch alert header
108
+ */
109
+ this.bankTaxNameMismatchHeader = "Your payment information does not match your tax form";
110
+ /**
111
+ * @uiName Bank name mismatch alert description
112
+ */
113
+ 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.";
114
+ /**
115
+ * @uiName Withdrawal settings invalid alert header
116
+ */
117
+ this.withdrawalSettingsInvalidHeader = "Your payment information includes invalid characters";
118
+ /**
119
+ * @uiName Withdrawal settings invalid alert description
120
+ */
121
+ 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.";
122
+ /**
123
+ * @uiName Payment returned alert header
124
+ */
125
+ this.paymentReturnedHeader = "Payout unsuccessful";
126
+ /**
127
+ * @uiName Payment returned alert description
128
+ */
129
+ this.paymentReturnedDescription = "Our recent payment attempt for your earnings was unsuccessful. Please review your payment information and make sure it is correct.";
73
130
  /**
74
131
  * @uiName W-9 payment threshold alert header
75
132
  */
@@ -154,6 +211,48 @@ export class PayoutStatusAlert {
154
211
  "reflect": false,
155
212
  "defaultValue": "\"Payout and tax information required\""
156
213
  },
214
+ "editPaymentInformationButton": {
215
+ "type": "string",
216
+ "mutable": false,
217
+ "complexType": {
218
+ "original": "string",
219
+ "resolved": "string",
220
+ "references": {}
221
+ },
222
+ "required": false,
223
+ "optional": false,
224
+ "docs": {
225
+ "tags": [{
226
+ "text": "Edit payment info button label",
227
+ "name": "uiName"
228
+ }],
229
+ "text": ""
230
+ },
231
+ "attribute": "edit-payment-information-button",
232
+ "reflect": false,
233
+ "defaultValue": "\"Edit Payout Information\""
234
+ },
235
+ "newFormButton": {
236
+ "type": "string",
237
+ "mutable": false,
238
+ "complexType": {
239
+ "original": "string",
240
+ "resolved": "string",
241
+ "references": {}
242
+ },
243
+ "required": false,
244
+ "optional": false,
245
+ "docs": {
246
+ "tags": [{
247
+ "text": "Submit new tax form button label",
248
+ "name": "uiName"
249
+ }],
250
+ "text": ""
251
+ },
252
+ "attribute": "new-form-button",
253
+ "reflect": false,
254
+ "defaultValue": "\"Submit new form\""
255
+ },
157
256
  "informationRequiredDescription": {
158
257
  "type": "string",
159
258
  "mutable": false,
@@ -427,6 +526,258 @@ export class PayoutStatusAlert {
427
526
  "reflect": false,
428
527
  "defaultValue": "\"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}.\""
429
528
  },
529
+ "paymentHoldOnChangeHeader": {
530
+ "type": "string",
531
+ "mutable": false,
532
+ "complexType": {
533
+ "original": "string",
534
+ "resolved": "string",
535
+ "references": {}
536
+ },
537
+ "required": false,
538
+ "optional": false,
539
+ "docs": {
540
+ "tags": [{
541
+ "text": "Payment on hold alert header",
542
+ "name": "uiName"
543
+ }],
544
+ "text": ""
545
+ },
546
+ "attribute": "payment-hold-on-change-header",
547
+ "reflect": false,
548
+ "defaultValue": "\"We are reviewing your new payout settings\""
549
+ },
550
+ "paymentHoldOnChangeDescription": {
551
+ "type": "string",
552
+ "mutable": false,
553
+ "complexType": {
554
+ "original": "string",
555
+ "resolved": "string",
556
+ "references": {}
557
+ },
558
+ "required": false,
559
+ "optional": false,
560
+ "docs": {
561
+ "tags": [{
562
+ "text": "Payment on hold alert description",
563
+ "name": "uiName"
564
+ }],
565
+ "text": ""
566
+ },
567
+ "attribute": "payment-hold-on-change-description",
568
+ "reflect": false,
569
+ "defaultValue": "\"Your payout is temporarily on hold while we review your new payment information, this process is usually resolved within 48 hours.\""
570
+ },
571
+ "beneficiaryNameInvalidHeader": {
572
+ "type": "string",
573
+ "mutable": false,
574
+ "complexType": {
575
+ "original": "string",
576
+ "resolved": "string",
577
+ "references": {}
578
+ },
579
+ "required": false,
580
+ "optional": false,
581
+ "docs": {
582
+ "tags": [{
583
+ "text": "Beneficiary name invalid alert header",
584
+ "name": "uiName"
585
+ }],
586
+ "text": ""
587
+ },
588
+ "attribute": "beneficiary-name-invalid-header",
589
+ "reflect": false,
590
+ "defaultValue": "\"Your payment information does not match your tax form\""
591
+ },
592
+ "beneficiaryNameInvalidDescription": {
593
+ "type": "string",
594
+ "mutable": false,
595
+ "complexType": {
596
+ "original": "string",
597
+ "resolved": "string",
598
+ "references": {}
599
+ },
600
+ "required": false,
601
+ "optional": false,
602
+ "docs": {
603
+ "tags": [{
604
+ "text": "Beneficiary name invalid description",
605
+ "name": "uiName"
606
+ }],
607
+ "text": ""
608
+ },
609
+ "attribute": "beneficiary-name-invalid-description",
610
+ "reflect": false,
611
+ "defaultValue": "\"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.\""
612
+ },
613
+ "beneficiaryNameMismatchHeader": {
614
+ "type": "string",
615
+ "mutable": false,
616
+ "complexType": {
617
+ "original": "string",
618
+ "resolved": "string",
619
+ "references": {}
620
+ },
621
+ "required": false,
622
+ "optional": false,
623
+ "docs": {
624
+ "tags": [{
625
+ "text": "Beneficiary name mismatch alert header",
626
+ "name": "uiName"
627
+ }],
628
+ "text": ""
629
+ },
630
+ "attribute": "beneficiary-name-mismatch-header",
631
+ "reflect": false,
632
+ "defaultValue": "\"Your payment information does not match your tax form\""
633
+ },
634
+ "beneficiaryNameMismatchDescription": {
635
+ "type": "string",
636
+ "mutable": false,
637
+ "complexType": {
638
+ "original": "string",
639
+ "resolved": "string",
640
+ "references": {}
641
+ },
642
+ "required": false,
643
+ "optional": false,
644
+ "docs": {
645
+ "tags": [{
646
+ "text": "Beneficiary name mismatch alert description",
647
+ "name": "uiName"
648
+ }],
649
+ "text": ""
650
+ },
651
+ "attribute": "beneficiary-name-mismatch-description",
652
+ "reflect": false,
653
+ "defaultValue": "\"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.\""
654
+ },
655
+ "bankTaxNameMismatchHeader": {
656
+ "type": "string",
657
+ "mutable": false,
658
+ "complexType": {
659
+ "original": "string",
660
+ "resolved": "string",
661
+ "references": {}
662
+ },
663
+ "required": false,
664
+ "optional": false,
665
+ "docs": {
666
+ "tags": [{
667
+ "text": "Bank name mismatch alert header",
668
+ "name": "uiName"
669
+ }],
670
+ "text": ""
671
+ },
672
+ "attribute": "bank-tax-name-mismatch-header",
673
+ "reflect": false,
674
+ "defaultValue": "\"Your payment information does not match your tax form\""
675
+ },
676
+ "bankTaxNameMismatchDescription": {
677
+ "type": "string",
678
+ "mutable": false,
679
+ "complexType": {
680
+ "original": "string",
681
+ "resolved": "string",
682
+ "references": {}
683
+ },
684
+ "required": false,
685
+ "optional": false,
686
+ "docs": {
687
+ "tags": [{
688
+ "text": "Bank name mismatch alert description",
689
+ "name": "uiName"
690
+ }],
691
+ "text": ""
692
+ },
693
+ "attribute": "bank-tax-name-mismatch-description",
694
+ "reflect": false,
695
+ "defaultValue": "\"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.\""
696
+ },
697
+ "withdrawalSettingsInvalidHeader": {
698
+ "type": "string",
699
+ "mutable": false,
700
+ "complexType": {
701
+ "original": "string",
702
+ "resolved": "string",
703
+ "references": {}
704
+ },
705
+ "required": false,
706
+ "optional": false,
707
+ "docs": {
708
+ "tags": [{
709
+ "text": "Withdrawal settings invalid alert header",
710
+ "name": "uiName"
711
+ }],
712
+ "text": ""
713
+ },
714
+ "attribute": "withdrawal-settings-invalid-header",
715
+ "reflect": false,
716
+ "defaultValue": "\"Your payment information includes invalid characters\""
717
+ },
718
+ "withdrawalSettingsInvalidDescription": {
719
+ "type": "string",
720
+ "mutable": false,
721
+ "complexType": {
722
+ "original": "string",
723
+ "resolved": "string",
724
+ "references": {}
725
+ },
726
+ "required": false,
727
+ "optional": false,
728
+ "docs": {
729
+ "tags": [{
730
+ "text": "Withdrawal settings invalid alert description",
731
+ "name": "uiName"
732
+ }],
733
+ "text": ""
734
+ },
735
+ "attribute": "withdrawal-settings-invalid-description",
736
+ "reflect": false,
737
+ "defaultValue": "\"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.\""
738
+ },
739
+ "paymentReturnedHeader": {
740
+ "type": "string",
741
+ "mutable": false,
742
+ "complexType": {
743
+ "original": "string",
744
+ "resolved": "string",
745
+ "references": {}
746
+ },
747
+ "required": false,
748
+ "optional": false,
749
+ "docs": {
750
+ "tags": [{
751
+ "text": "Payment returned alert header",
752
+ "name": "uiName"
753
+ }],
754
+ "text": ""
755
+ },
756
+ "attribute": "payment-returned-header",
757
+ "reflect": false,
758
+ "defaultValue": "\"Payout unsuccessful\""
759
+ },
760
+ "paymentReturnedDescription": {
761
+ "type": "string",
762
+ "mutable": false,
763
+ "complexType": {
764
+ "original": "string",
765
+ "resolved": "string",
766
+ "references": {}
767
+ },
768
+ "required": false,
769
+ "optional": false,
770
+ "docs": {
771
+ "tags": [{
772
+ "text": "Payment returned alert description",
773
+ "name": "uiName"
774
+ }],
775
+ "text": ""
776
+ },
777
+ "attribute": "payment-returned-description",
778
+ "reflect": false,
779
+ "defaultValue": "\"Our recent payment attempt for your earnings was unsuccessful. Please review your payment information and make sure it is correct.\""
780
+ },
430
781
  "w9RequiredHeader": {
431
782
  "type": "string",
432
783
  "mutable": false,
@@ -719,6 +1070,8 @@ function useDemoPayoutStatusAlert(props) {
719
1070
  callbacks: {
720
1071
  onTermsClick: () => { },
721
1072
  onClick: () => console.log("show"),
1073
+ onPaymentInfoClick: () => { },
1074
+ onNewFormClick: () => { },
722
1075
  },
723
1076
  }, formatted || props.demoData || {}, { arrayMerge: (_, a) => a });
724
1077
  }
@@ -1,6 +1,7 @@
1
- import { getEnvironmentSDK, useQuery } from "@saasquatch/component-boilerplate";
1
+ import { getEnvironmentSDK, useQuery, useSetParent, } from "@saasquatch/component-boilerplate";
2
2
  import { useEffect, useState } from "@saasquatch/stencil-hooks";
3
3
  import { gql } from "graphql-request";
4
+ import { TAX_CONTEXT_NAMESPACE, TAX_FORM_CONTEXT_NAMESPACE, } from "../data";
4
5
  import { TAX_FORM_UPDATED_EVENT_KEY } from "../eventKeys";
5
6
  import { useVeriffApp, VERIFF_COMPLETE_EVENT_KEY } from "../useVeriffApp";
6
7
  const GET_USER_STATUS = gql `
@@ -39,7 +40,7 @@ const GET_TAX_SETTING = gql `
39
40
  }
40
41
  `;
41
42
  export function getStatus(data) {
42
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
43
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
43
44
  const account = (_b = (_a = data.user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) === null || _b === void 0 ? void 0 : _b.payoutsAccount;
44
45
  const hasTransferredReward = (_e = (_d = (_c = data === null || data === void 0 ? void 0 : data.user) === null || _c === void 0 ? void 0 : _c.rewards) === null || _d === void 0 ? void 0 : _d.data) === null || _e === void 0 ? void 0 : _e.find((reward) => reward.statuses.includes("REDEEMED") &&
45
46
  reward.partnerFundsTransfer.status === "TRANSFERRED");
@@ -56,8 +57,23 @@ export function getStatus(data) {
56
57
  return "VERIFICATION:REVIEW";
57
58
  if ((_p = account.holdReasons) === null || _p === void 0 ? void 0 : _p.includes("IDV_CHECK_FAILED_INTERNAL"))
58
59
  return "VERIFICATION:FAILED";
60
+ // only show banner for NEW_PAYEE_REVIEW if a PFT was created
59
61
  if (((_q = account.holdReasons) === null || _q === void 0 ? void 0 : _q.includes("NEW_PAYEE_REVIEW")) && hasTransferredReward)
60
- return "ACCOUNT_REVIEW";
62
+ return "NEW_PAYEE_REVIEW";
63
+ if ((_r = account.holdReasons) === null || _r === void 0 ? void 0 : _r.includes("NEW_PAYEE_REVIEW"))
64
+ return "DONE";
65
+ if ((_s = account.holdReasons) === null || _s === void 0 ? void 0 : _s.includes("PAYMENT_HOLD_ON_CHANGE"))
66
+ return "PAYMENT_HOLD_ON_CHANGE";
67
+ if ((_t = account.holdReasons) === null || _t === void 0 ? void 0 : _t.includes("BENEFICIARY_NAME_INVALID"))
68
+ return "BENEFICIARY_NAME_INVALID";
69
+ if ((_u = account.holdReasons) === null || _u === void 0 ? void 0 : _u.includes("BENEFICIARY_NAME_MISMATCH"))
70
+ return "BENEFICIARY_NAME_MISMATCH";
71
+ if ((_v = account.holdReasons) === null || _v === void 0 ? void 0 : _v.includes("BANK_TAX_NAME_MISMATCH"))
72
+ return "BANK_TAX_NAME_MISMATCH";
73
+ if ((_w = account.holdReasons) === null || _w === void 0 ? void 0 : _w.includes("WITHDRAWAL_SETTINGS_INVALID"))
74
+ return "WITHDRAWAL_SETTINGS_INVALID";
75
+ if ((_x = account.holdReasons) === null || _x === void 0 ? void 0 : _x.includes("PAYMENT_RETURNED"))
76
+ return "PAYMENT_RETURNED";
61
77
  if (account.hold)
62
78
  return "HOLD";
63
79
  return "DONE";
@@ -69,6 +85,8 @@ export function usePayoutStatus(props) {
69
85
  const { data: taxSettingRes } = useQuery(GET_TAX_SETTING, {});
70
86
  const { render, loading: veriffLoading, errors: veriffErrors, } = useVeriffApp();
71
87
  const [status, setStatus] = useState(undefined);
88
+ const setContext = useSetParent(TAX_FORM_CONTEXT_NAMESPACE);
89
+ const setStep = useSetParent(TAX_CONTEXT_NAMESPACE);
72
90
  const enforceUsTaxComplianceOption = (_a = taxSettingRes === null || taxSettingRes === void 0 ? void 0 : taxSettingRes.tenantSettings) === null || _a === void 0 ? void 0 : _a.enforceUsTaxCompliance;
73
91
  useEffect(() => {
74
92
  if (!data)
@@ -96,6 +114,16 @@ export function usePayoutStatus(props) {
96
114
  url += "#3";
97
115
  window.history.pushState(null, "", url);
98
116
  };
117
+ const onPaymentInfoClick = () => {
118
+ let url = props.cashPayoutsPageUrl;
119
+ url += "#4";
120
+ window.history.pushState(null, "", url);
121
+ };
122
+ const onNewFormClick = () => {
123
+ let url = props.cashPayoutsPageUrl;
124
+ url += "#3";
125
+ window.history.pushState(null, "", url);
126
+ };
99
127
  return {
100
128
  states: {
101
129
  loading,
@@ -109,6 +137,8 @@ export function usePayoutStatus(props) {
109
137
  callbacks: {
110
138
  onTermsClick,
111
139
  onClick: render,
140
+ onPaymentInfoClick,
141
+ onNewFormClick,
112
142
  },
113
143
  };
114
144
  }