@saasquatch/mint-components 1.13.0-9 → 1.13.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 (471) hide show
  1. package/dist/cjs/{ShadowViewAddon-44cb1a98.js → ShadowViewAddon-d98f73be.js} +109 -157
  2. package/dist/cjs/{copy-text-view-9b950efe.js → copy-text-view-a5524c20.js} +1 -1
  3. package/dist/cjs/extractProps-fd93ba62.js +21 -0
  4. package/dist/cjs/{global-19fc8a7a.js → global-e31dc4f5.js} +1 -1
  5. package/dist/cjs/{index.module-57703088.js → index.module-ee84433d.js} +4 -0
  6. package/dist/cjs/keys-cff24974.js +11 -0
  7. package/dist/cjs/loader.cjs.js +3 -3
  8. package/dist/cjs/mint-components.cjs.js +3 -3
  9. package/dist/cjs/{re-render-35b016ed.js → re-render-b324deab.js} +1 -1
  10. package/dist/cjs/sqm-asset-card.cjs.entry.js +1 -1
  11. package/dist/cjs/{sqm-banking-info-form_16.cjs.entry.js → sqm-banking-info-form_17.cjs.entry.js} +1012 -239
  12. package/dist/cjs/{sqm-base-registration-form-view-d5685747.js → sqm-base-registration-form-view-8a2c8763.js} +1 -1
  13. package/dist/cjs/{sqm-big-stat_38.cjs.entry.js → sqm-big-stat_39.cjs.entry.js} +402 -191
  14. package/dist/cjs/sqm-close-button.cjs.entry.js +1 -1
  15. package/dist/cjs/sqm-context-router.cjs.entry.js +1 -1
  16. package/dist/cjs/sqm-email-verification.cjs.entry.js +291 -0
  17. package/dist/cjs/sqm-empty_4.cjs.entry.js +3 -3
  18. package/dist/cjs/sqm-google-sign-in.cjs.entry.js +38 -35
  19. package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +1 -1
  20. package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +3 -3
  21. package/dist/cjs/{sqm-invoice-table-view-9dfa2a16.js → sqm-invoice-table-view-baded4af.js} +172 -2
  22. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +2 -2
  23. package/dist/cjs/sqm-logout-current-user.cjs.entry.js +1 -1
  24. package/dist/cjs/{sqm-navigation-sidebar-item-view-9bba5f7e.js → sqm-navigation-sidebar-item-view-6f35d2ee.js} +1 -1
  25. package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +2 -2
  26. package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +1 -1
  27. package/dist/cjs/sqm-pagination_3.cjs.entry.js +3 -3
  28. package/dist/cjs/sqm-password-field.cjs.entry.js +2 -2
  29. package/dist/cjs/sqm-popup-container.cjs.entry.js +1 -1
  30. package/dist/cjs/{sqm-portal-email-verification-view-98d84549.js → sqm-portal-email-verification-view-7ebb426a.js} +1 -1
  31. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +3 -3
  32. package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +1 -1
  33. package/dist/cjs/sqm-portal-google-login.cjs.entry.js +130 -0
  34. package/dist/cjs/sqm-portal-google-registration-form.cjs.entry.js +6 -6
  35. package/dist/cjs/sqm-portal-login-view-761a4d8e.js +58 -0
  36. package/dist/cjs/sqm-portal-logout.cjs.entry.js +1 -1
  37. package/dist/cjs/{sqm-portal-profile-view-bae28ea0.js → sqm-portal-profile-view-33164798.js} +1 -1
  38. package/dist/cjs/sqm-portal-profile.cjs.entry.js +4 -4
  39. package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +1 -1
  40. package/dist/cjs/{sqm-portal-registration-form-view-e947a5b3.js → sqm-portal-registration-form-view-ebf355a6.js} +13 -12
  41. package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +4 -4
  42. package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +1 -1
  43. package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +1 -1
  44. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +5 -5
  45. package/dist/cjs/sqm-referred-registration.cjs.entry.js +3 -3
  46. package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +2 -2
  47. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +5 -5
  48. package/dist/cjs/sqm-scroll.cjs.entry.js +109 -0
  49. package/dist/cjs/sqm-stencilbook.cjs.entry.js +265 -73
  50. package/dist/cjs/sqm-tab.cjs.entry.js +2 -2
  51. package/dist/cjs/sqm-tabs.cjs.entry.js +3 -3
  52. package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +113 -0
  53. package/dist/cjs/sqm-widget-verification.cjs.entry.js +203 -0
  54. package/dist/cjs/{useChildElements-854cd1e5.js → useChildElements-1b35d945.js} +1 -1
  55. package/dist/cjs/{useInstantAccessRegistration-daff8290.js → useInstantAccessRegistration-9a46c324.js} +2 -2
  56. package/dist/cjs/usePayoutStatus-4b5894ef.js +1045 -0
  57. package/dist/cjs/usePortalLogin-63d896d1.js +74 -0
  58. package/dist/cjs/{usePortalRegistrationForm-a89d736e.js → usePortalRegistrationForm-f25d89e7.js} +2 -2
  59. package/dist/cjs/{useReferralTable-283d2316.js → useReferralTable-7c3f9600.js} +3 -3
  60. package/dist/cjs/{useRegistrationFormState-986b5ea1.js → useRegistrationFormState-7b820f0c.js} +1 -1
  61. package/dist/cjs/useVerificationEmail-95a82767.js +173 -0
  62. package/dist/cjs/{utilities-c135f16f.js → utilities-78f5e169.js} +1 -1
  63. package/dist/collection/collection-manifest.json +8 -1
  64. package/dist/collection/components/sqm-base-registration/sqm-base-registration-form-view.js +1 -1
  65. package/dist/collection/components/sqm-big-stat/useBigStat.js +6 -3
  66. package/dist/collection/components/sqm-google-sign-in/sqm-google-sign-in.js +24 -10
  67. package/dist/collection/components/sqm-google-sign-in/useGoogleSignIn.js +34 -27
  68. package/dist/collection/components/sqm-payout-button-scroll/PayoutButtonScroll.stories.js +15 -0
  69. package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll-view.js +24 -0
  70. package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll.js +122 -0
  71. package/dist/collection/components/sqm-payout-button-scroll/usePayoutButton.js +37 -0
  72. package/dist/collection/components/sqm-portal-google-login/sqm-portal-google-login.js +428 -0
  73. package/dist/collection/components/sqm-portal-google-registration-form/sqm-portal-google-registration-form.js +3 -3
  74. package/dist/collection/components/sqm-portal-login/PortalLogin.stories.js +2 -13
  75. package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +2 -30
  76. package/dist/collection/components/sqm-portal-login/usePortalLogin.js +9 -4
  77. package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form-view.js +13 -12
  78. package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form.js +1 -1
  79. package/dist/collection/components/sqm-referral-table/ReferralTable.stories.js +7 -1
  80. package/dist/collection/components/sqm-referral-table/ReferralTableRewardsCell.stories.js +16 -3
  81. package/dist/collection/components/sqm-rewards-table/RewardsTableCell.stories.js +7 -12
  82. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +8 -0
  83. package/dist/collection/components/sqm-text/sqm-text.js +1 -1
  84. package/dist/collection/components/sqm-widget-verification/keys.js +4 -0
  85. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/WidgetCodeVerification.stories.js +36 -0
  86. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +128 -0
  87. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.js +301 -0
  88. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/useCodeVerification.js +153 -0
  89. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/WidgetEmailVerification.stories.js +58 -0
  90. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +95 -0
  91. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.js +251 -0
  92. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/useEmailVerification.js +126 -0
  93. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-controller.js +120 -0
  94. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +536 -0
  95. package/dist/collection/components/sqm-widget-verification/useVerificationEmail.js +169 -0
  96. package/dist/collection/components/sqm-widget-verification/useWidgetVerification.js +60 -0
  97. package/dist/collection/components/tax-and-cash/BankingForm.stories.js +20 -0
  98. package/dist/collection/components/tax-and-cash/TaxForm.stories.js +165 -1
  99. package/dist/collection/components/tax-and-cash/eventKeys.js +1 -0
  100. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +12 -2
  101. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +128 -11
  102. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +109 -39
  103. package/dist/collection/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.js +15 -2
  104. package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +12 -2
  105. package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +31 -6
  106. package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +3 -0
  107. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +26 -8
  108. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +33 -8
  109. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +3 -0
  110. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/PayoutDetailsCard.stories.js +0 -7
  111. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card-view.js +0 -5
  112. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js +0 -56
  113. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.js +18 -0
  114. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +176 -0
  115. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +527 -0
  116. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +76 -0
  117. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/data.js +7 -0
  118. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +415 -24
  119. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +2 -2
  120. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +138 -9
  121. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +283 -17
  122. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +17 -2
  123. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +23 -9
  124. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +33 -8
  125. package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +16 -11
  126. package/dist/collection/components/tax-and-cash/useVeriffApp.js +64 -0
  127. package/dist/esm/{ShadowViewAddon-eba44767.js → ShadowViewAddon-ddfbe8e2.js} +110 -157
  128. package/dist/esm/{copy-text-view-b060162f.js → copy-text-view-459a2e35.js} +1 -1
  129. package/dist/esm/extractProps-ae1afbb3.js +19 -0
  130. package/dist/esm/{global-bedc4329.js → global-be1f9992.js} +1 -1
  131. package/dist/esm/{index.module-a2989d3c.js → index.module-89a79f66.js} +5 -1
  132. package/dist/esm/keys-406491dc.js +6 -0
  133. package/dist/esm/loader.js +3 -3
  134. package/dist/esm/mint-components.js +3 -3
  135. package/dist/esm/{re-render-268bb9c8.js → re-render-cc945f38.js} +1 -1
  136. package/dist/esm/sqm-asset-card.entry.js +1 -1
  137. package/dist/esm/{sqm-banking-info-form_16.entry.js → sqm-banking-info-form_17.entry.js} +1012 -240
  138. package/dist/esm/{sqm-base-registration-form-view-98c4db70.js → sqm-base-registration-form-view-593d4ac3.js} +1 -1
  139. package/dist/esm/{sqm-big-stat_38.entry.js → sqm-big-stat_39.entry.js} +400 -190
  140. package/dist/esm/sqm-close-button.entry.js +1 -1
  141. package/dist/esm/sqm-context-router.entry.js +1 -1
  142. package/dist/esm/sqm-email-verification.entry.js +287 -0
  143. package/dist/esm/sqm-empty_4.entry.js +3 -3
  144. package/dist/esm/sqm-google-sign-in.entry.js +39 -36
  145. package/dist/esm/sqm-graphql-client-provider.entry.js +1 -1
  146. package/dist/esm/sqm-instant-access-registration.entry.js +3 -3
  147. package/dist/esm/{sqm-invoice-table-view-8e2bb54a.js → sqm-invoice-table-view-af69cd33.js} +172 -2
  148. package/dist/esm/sqm-leaderboard-rank.entry.js +2 -2
  149. package/dist/esm/sqm-logout-current-user.entry.js +1 -1
  150. package/dist/esm/{sqm-navigation-sidebar-item-view-56da6bca.js → sqm-navigation-sidebar-item-view-8f1c72bc.js} +1 -1
  151. package/dist/esm/sqm-navigation-sidebar-item.entry.js +2 -2
  152. package/dist/esm/sqm-navigation-sidebar.entry.js +1 -1
  153. package/dist/esm/sqm-pagination_3.entry.js +3 -3
  154. package/dist/esm/sqm-password-field.entry.js +2 -2
  155. package/dist/esm/sqm-popup-container.entry.js +1 -1
  156. package/dist/esm/{sqm-portal-email-verification-view-44c8970f.js → sqm-portal-email-verification-view-35b4353b.js} +1 -1
  157. package/dist/esm/sqm-portal-email-verification.entry.js +3 -3
  158. package/dist/esm/sqm-portal-forgot-password.entry.js +1 -1
  159. package/dist/esm/sqm-portal-google-login.entry.js +126 -0
  160. package/dist/esm/sqm-portal-google-registration-form.entry.js +6 -6
  161. package/dist/esm/sqm-portal-login-view-7e49609a.js +56 -0
  162. package/dist/esm/sqm-portal-logout.entry.js +1 -1
  163. package/dist/esm/{sqm-portal-profile-view-39039274.js → sqm-portal-profile-view-93003974.js} +1 -1
  164. package/dist/esm/sqm-portal-profile.entry.js +4 -4
  165. package/dist/esm/sqm-portal-protected-route.entry.js +1 -1
  166. package/dist/esm/{sqm-portal-registration-form-view-90e2bfd5.js → sqm-portal-registration-form-view-32c4b488.js} +13 -12
  167. package/dist/esm/sqm-portal-registration-form.entry.js +4 -4
  168. package/dist/esm/sqm-portal-reset-password.entry.js +1 -1
  169. package/dist/esm/sqm-portal-verify-email.entry.js +1 -1
  170. package/dist/esm/sqm-referral-table_11.entry.js +5 -5
  171. package/dist/esm/sqm-referred-registration.entry.js +3 -3
  172. package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +2 -2
  173. package/dist/esm/sqm-rewards-table_9.entry.js +5 -5
  174. package/dist/esm/sqm-scroll.entry.js +105 -0
  175. package/dist/esm/sqm-stencilbook.entry.js +263 -71
  176. package/dist/esm/sqm-tab.entry.js +2 -2
  177. package/dist/esm/sqm-tabs.entry.js +3 -3
  178. package/dist/esm/sqm-widget-verification-controller.entry.js +109 -0
  179. package/dist/esm/sqm-widget-verification.entry.js +199 -0
  180. package/dist/esm/stencil-hooks.module-4bc38af4.js +1 -1
  181. package/dist/esm/{useChildElements-38c11321.js → useChildElements-7945ae56.js} +1 -1
  182. package/dist/esm/{useInstantAccessRegistration-7255b0ca.js → useInstantAccessRegistration-cd0172c8.js} +2 -2
  183. package/dist/esm/usePayoutStatus-58aa56b4.js +1039 -0
  184. package/dist/esm/usePortalLogin-ef647a50.js +72 -0
  185. package/dist/esm/{usePortalRegistrationForm-5715c7a5.js → usePortalRegistrationForm-4b35a357.js} +2 -2
  186. package/dist/esm/{useReferralTable-d77b11f5.js → useReferralTable-b3876ed6.js} +3 -3
  187. package/dist/esm/{useRegistrationFormState-01cdd8c7.js → useRegistrationFormState-d6f33135.js} +1 -1
  188. package/dist/esm/useVerificationEmail-edc318cb.js +171 -0
  189. package/dist/esm/{utilities-863d06d1.js → utilities-5b0ca040.js} +1 -1
  190. package/dist/esm-es5/ShadowViewAddon-ddfbe8e2.js +1 -0
  191. package/dist/esm-es5/{copy-text-view-b060162f.js → copy-text-view-459a2e35.js} +1 -1
  192. package/dist/esm-es5/extractProps-ae1afbb3.js +1 -0
  193. package/dist/esm-es5/{global-bedc4329.js → global-be1f9992.js} +1 -1
  194. package/dist/esm-es5/index.module-89a79f66.js +1 -0
  195. package/dist/esm-es5/keys-406491dc.js +1 -0
  196. package/dist/esm-es5/loader.js +1 -1
  197. package/dist/esm-es5/mint-components.js +1 -1
  198. package/dist/esm-es5/{re-render-268bb9c8.js → re-render-cc945f38.js} +1 -1
  199. package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
  200. package/dist/esm-es5/sqm-banking-info-form_17.entry.js +1 -0
  201. package/dist/esm-es5/sqm-base-registration-form-view-593d4ac3.js +1 -0
  202. package/dist/esm-es5/sqm-big-stat_39.entry.js +1 -0
  203. package/dist/esm-es5/sqm-close-button.entry.js +1 -1
  204. package/dist/esm-es5/sqm-context-router.entry.js +1 -1
  205. package/dist/esm-es5/sqm-email-verification.entry.js +1 -0
  206. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  207. package/dist/esm-es5/sqm-google-sign-in.entry.js +1 -1
  208. package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
  209. package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
  210. package/dist/esm-es5/sqm-invoice-table-view-af69cd33.js +1 -0
  211. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  212. package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
  213. package/dist/esm-es5/{sqm-navigation-sidebar-item-view-56da6bca.js → sqm-navigation-sidebar-item-view-8f1c72bc.js} +1 -1
  214. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  215. package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
  216. package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
  217. package/dist/esm-es5/sqm-password-field.entry.js +1 -1
  218. package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
  219. package/dist/esm-es5/{sqm-portal-email-verification-view-44c8970f.js → sqm-portal-email-verification-view-35b4353b.js} +1 -1
  220. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  221. package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
  222. package/dist/esm-es5/sqm-portal-google-login.entry.js +1 -0
  223. package/dist/esm-es5/sqm-portal-google-registration-form.entry.js +1 -1
  224. package/dist/esm-es5/sqm-portal-login-view-7e49609a.js +1 -0
  225. package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
  226. package/dist/esm-es5/{sqm-portal-profile-view-39039274.js → sqm-portal-profile-view-93003974.js} +1 -1
  227. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  228. package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
  229. package/dist/esm-es5/sqm-portal-registration-form-view-32c4b488.js +1 -0
  230. package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
  231. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  232. package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
  233. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  234. package/dist/esm-es5/sqm-referred-registration.entry.js +1 -1
  235. package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
  236. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  237. package/dist/esm-es5/sqm-scroll.entry.js +1 -0
  238. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  239. package/dist/esm-es5/sqm-tab.entry.js +1 -1
  240. package/dist/esm-es5/sqm-tabs.entry.js +1 -1
  241. package/dist/esm-es5/sqm-widget-verification-controller.entry.js +1 -0
  242. package/dist/esm-es5/sqm-widget-verification.entry.js +1 -0
  243. package/dist/esm-es5/stencil-hooks.module-4bc38af4.js +1 -1
  244. package/dist/esm-es5/{useChildElements-38c11321.js → useChildElements-7945ae56.js} +1 -1
  245. package/dist/esm-es5/{useInstantAccessRegistration-7255b0ca.js → useInstantAccessRegistration-cd0172c8.js} +1 -1
  246. package/dist/esm-es5/usePayoutStatus-58aa56b4.js +6 -0
  247. package/dist/esm-es5/usePortalLogin-ef647a50.js +1 -0
  248. package/dist/esm-es5/{usePortalRegistrationForm-5715c7a5.js → usePortalRegistrationForm-4b35a357.js} +1 -1
  249. package/dist/esm-es5/{useReferralTable-d77b11f5.js → useReferralTable-b3876ed6.js} +1 -1
  250. package/dist/esm-es5/{useRegistrationFormState-01cdd8c7.js → useRegistrationFormState-d6f33135.js} +1 -1
  251. package/dist/esm-es5/useVerificationEmail-edc318cb.js +1 -0
  252. package/dist/esm-es5/{utilities-863d06d1.js → utilities-5b0ca040.js} +1 -1
  253. package/dist/mint-components/mint-components.esm.js +1 -1
  254. package/dist/mint-components/mint-components.js +1 -1
  255. package/dist/mint-components/{p-2126e1e6.entry.js → p-04a6e457.entry.js} +1 -1
  256. package/dist/mint-components/{p-3e1b7fb4.entry.js → p-079405ff.entry.js} +1 -1
  257. package/dist/mint-components/{p-35698aaa.system.js → p-0d182dc1.system.js} +1 -1
  258. package/dist/mint-components/p-0ebab63e.system.js +1 -0
  259. package/dist/mint-components/{p-ca04737a.entry.js → p-10d17989.entry.js} +1 -1
  260. package/dist/mint-components/p-11d8ea66.system.js +1 -0
  261. package/dist/mint-components/{p-95c64cfd.system.js → p-13ed8586.system.js} +1 -1
  262. package/dist/mint-components/{p-3972037c.system.entry.js → p-141bf5c1.system.entry.js} +1 -1
  263. package/dist/mint-components/{p-80fc549b.entry.js → p-1513309d.entry.js} +1 -1
  264. package/dist/mint-components/{p-79ea1597.system.entry.js → p-164a9103.system.entry.js} +1 -1
  265. package/dist/mint-components/p-18425f38.system.entry.js +1 -0
  266. package/dist/mint-components/p-19ccb4ce.js +1 -0
  267. package/dist/mint-components/{p-0aa62b64.entry.js → p-1a6b7d2a.entry.js} +1 -1
  268. package/dist/mint-components/{p-de9afac2.system.entry.js → p-1fa9ed0d.system.entry.js} +1 -1
  269. package/dist/mint-components/p-21620f81.system.entry.js +1 -0
  270. package/dist/mint-components/p-26468242.js +1 -0
  271. package/dist/mint-components/{p-53aaa0a4.entry.js → p-275b4767.entry.js} +1 -1
  272. package/dist/mint-components/{p-618e1342.entry.js → p-284e4ed5.entry.js} +1 -1
  273. package/dist/mint-components/{p-e544bb9a.entry.js → p-2ae0e06a.entry.js} +1 -1
  274. package/dist/mint-components/p-2d52e2d7.system.js +1 -0
  275. package/dist/mint-components/{p-4ae54b04.entry.js → p-2da21ba4.entry.js} +1 -1
  276. package/dist/mint-components/{p-45436d5a.entry.js → p-2f101bae.entry.js} +1 -1
  277. package/dist/mint-components/p-301ddcaa.system.entry.js +1 -0
  278. package/dist/mint-components/p-33c96e14.entry.js +16 -0
  279. package/dist/mint-components/{p-731aa5c6.system.entry.js → p-36ffebd8.system.entry.js} +1 -1
  280. package/dist/mint-components/p-37996351.system.js +1 -0
  281. package/dist/mint-components/p-38c7775a.js +1 -0
  282. package/dist/mint-components/{p-4448febd.entry.js → p-38fc919b.entry.js} +1 -1
  283. package/dist/mint-components/{p-40e99b24.js → p-3db34d68.js} +1 -1
  284. package/dist/mint-components/{p-ebdcea27.system.entry.js → p-420554af.system.entry.js} +1 -1
  285. package/dist/mint-components/{p-571c451e.entry.js → p-4428294b.entry.js} +1 -1
  286. package/dist/mint-components/{p-a21d1a30.system.entry.js → p-4469fea6.system.entry.js} +1 -1
  287. package/dist/mint-components/p-44891949.entry.js +1 -0
  288. package/dist/mint-components/p-4794641c.system.js +1 -0
  289. package/dist/mint-components/p-480e08e9.js +31 -0
  290. package/dist/mint-components/p-48135f99.system.js +2 -2
  291. package/dist/mint-components/{p-492fdaf9.js → p-4e451f75.js} +1 -1
  292. package/dist/mint-components/p-4e526a94.js +1 -0
  293. package/dist/mint-components/{p-92a25556.system.entry.js → p-50c902ca.system.entry.js} +1 -1
  294. package/dist/mint-components/{p-4bcb04aa.system.entry.js → p-51d3cde7.system.entry.js} +1 -1
  295. package/dist/mint-components/p-527216de.system.js +1 -0
  296. package/dist/mint-components/{p-2dc5e60a.entry.js → p-54440d8d.entry.js} +1 -1
  297. package/dist/mint-components/p-5488fdd9.system.js +1 -0
  298. package/dist/mint-components/{p-8da47802.system.entry.js → p-54adee71.system.entry.js} +1 -1
  299. package/dist/mint-components/p-57dd28bd.system.js +1 -0
  300. package/dist/mint-components/{p-a8524459.system.js → p-59274a91.system.js} +1 -1
  301. package/dist/mint-components/{p-7989a098.system.entry.js → p-5c28406d.system.entry.js} +1 -1
  302. package/dist/mint-components/{p-9a0c3ed9.system.entry.js → p-5d7e308c.system.entry.js} +1 -1
  303. package/dist/mint-components/{p-09c5e3ee.system.js → p-635d5ef2.system.js} +1 -1
  304. package/dist/mint-components/{p-6de85677.js → p-63a75798.js} +1 -1
  305. package/dist/mint-components/p-6427e963.entry.js +1 -0
  306. package/dist/mint-components/{p-506679e9.js → p-65069b66.js} +1 -1
  307. package/dist/mint-components/{p-9e49479a.entry.js → p-653f963f.entry.js} +2 -2
  308. package/dist/mint-components/p-68d18642.entry.js +9 -0
  309. package/dist/mint-components/{p-b9d17fa1.entry.js → p-693942df.entry.js} +1 -1
  310. package/dist/mint-components/p-6b78811d.entry.js +241 -0
  311. package/dist/mint-components/p-6b7a595f.system.js +1 -0
  312. package/dist/mint-components/p-6cd4f2b1.system.js +1 -0
  313. package/dist/mint-components/{p-550ef977.js → p-6d2f5a1d.js} +2 -2
  314. package/dist/mint-components/p-6eaf9c57.entry.js +1 -0
  315. package/dist/mint-components/{p-7166caa6.system.js → p-717cc8ac.system.js} +1 -1
  316. package/dist/mint-components/{p-7bcf4467.system.entry.js → p-71bc04d2.system.entry.js} +1 -1
  317. package/dist/mint-components/p-793d2130.js +1 -0
  318. package/dist/mint-components/{p-b114e746.entry.js → p-7ab21e4d.entry.js} +1 -1
  319. package/dist/mint-components/{p-2ab3b8d6.js → p-7f2d4212.js} +1 -1
  320. package/dist/mint-components/p-8175e85f.system.js +1 -0
  321. package/dist/mint-components/{p-81665df6.system.entry.js → p-8362cb4c.system.entry.js} +1 -1
  322. package/dist/mint-components/{p-bd4810c7.system.entry.js → p-85671c3d.system.entry.js} +1 -1
  323. package/dist/mint-components/{p-f9de8a59.system.js → p-89903f6d.system.js} +1 -1
  324. package/dist/mint-components/{p-0873eaa8.entry.js → p-8abfeff8.entry.js} +1 -1
  325. package/dist/mint-components/p-8c23d1b8.js +1 -0
  326. package/dist/mint-components/{p-8056fd5b.system.entry.js → p-8d9d04b7.system.entry.js} +1 -1
  327. package/dist/mint-components/{p-988ea164.system.entry.js → p-90fc6774.system.entry.js} +1 -1
  328. package/dist/mint-components/p-91959fbe.js +1 -0
  329. package/dist/mint-components/p-9320582e.system.js +1 -0
  330. package/dist/mint-components/p-94a876b9.js +1 -0
  331. package/dist/mint-components/p-962f3200.js +1 -0
  332. package/dist/mint-components/{p-1c5cffae.js → p-98698131.js} +1 -1
  333. package/dist/mint-components/{p-f32c8cb5.entry.js → p-99374849.entry.js} +1 -1
  334. package/dist/mint-components/{p-a4a5beb5.system.entry.js → p-99bc1231.system.entry.js} +1 -1
  335. package/dist/mint-components/{p-9a16a3d8.system.entry.js → p-9b6a0152.system.entry.js} +1 -1
  336. package/dist/mint-components/p-9cf80e85.system.entry.js +1 -0
  337. package/dist/mint-components/{p-f4a1dc19.entry.js → p-a2fde301.entry.js} +1 -1
  338. package/dist/mint-components/p-a71b9154.system.js +1 -0
  339. package/dist/mint-components/p-a8645c1b.system.js +1 -0
  340. package/dist/mint-components/{p-635aaf11.system.entry.js → p-b287833c.system.entry.js} +1 -1
  341. package/dist/mint-components/p-b3532369.js +394 -0
  342. package/dist/mint-components/{p-8975c2be.entry.js → p-b51e79b3.entry.js} +1 -1
  343. package/dist/mint-components/{p-f0c23e81.system.entry.js → p-b7d1469d.system.entry.js} +1 -1
  344. package/dist/mint-components/{p-7cb919d4.system.entry.js → p-b82e1935.system.entry.js} +1 -1
  345. package/dist/mint-components/p-b93fd99c.system.entry.js +1 -0
  346. package/dist/mint-components/p-bb0f585c.system.js +1 -0
  347. package/dist/mint-components/{p-1833c4f5.js → p-bbcd824a.js} +1 -1
  348. package/dist/mint-components/p-bd91bba4.js +1 -0
  349. package/dist/mint-components/{p-f2fd1910.system.js → p-bdb7d451.system.js} +1 -1
  350. package/dist/mint-components/{p-24c4e0b8.system.entry.js → p-c060f770.system.entry.js} +1 -1
  351. package/dist/mint-components/{p-1ef299d7.js → p-c0f19490.js} +1 -1
  352. package/dist/mint-components/{p-ca740238.system.entry.js → p-c2fdd608.system.entry.js} +1 -1
  353. package/dist/mint-components/p-c36506f6.system.entry.js +1 -0
  354. package/dist/mint-components/p-c8cbb40f.system.entry.js +1 -0
  355. package/dist/mint-components/p-cb7bdbe4.entry.js +1 -0
  356. package/dist/mint-components/p-cbbfac66.entry.js +25 -0
  357. package/dist/mint-components/p-cc7af682.system.js +6 -0
  358. package/dist/mint-components/{p-4f45be94.system.js → p-cd569259.system.js} +1 -1
  359. package/dist/mint-components/p-cd651f81.js +2 -2
  360. package/dist/mint-components/p-d07f3090.entry.js +1 -0
  361. package/dist/mint-components/p-d1b92919.system.entry.js +1 -0
  362. package/dist/mint-components/p-d6831af5.js +48 -0
  363. package/dist/mint-components/p-da7708a7.entry.js +1 -0
  364. package/dist/mint-components/p-dbcb5359.js +1 -0
  365. package/dist/mint-components/{p-75f50e5a.entry.js → p-dcc81e90.entry.js} +1 -1
  366. package/dist/mint-components/{p-1b0c58bc.system.entry.js → p-de8e9981.system.entry.js} +1 -1
  367. package/dist/mint-components/{p-857947fa.system.entry.js → p-e5a5ae7f.system.entry.js} +1 -1
  368. package/dist/mint-components/{p-045d1d49.entry.js → p-e6045498.entry.js} +1 -1
  369. package/dist/mint-components/{p-9b779add.entry.js → p-e6f50ffd.entry.js} +1 -1
  370. package/dist/mint-components/{p-c470caf6.entry.js → p-e8ffcc68.entry.js} +2 -2
  371. package/dist/mint-components/p-f0772618.system.entry.js +1 -0
  372. package/dist/mint-components/p-f29eda2f.entry.js +205 -0
  373. package/dist/mint-components/{p-9f231a48.system.entry.js → p-f4a72903.system.entry.js} +1 -1
  374. package/dist/mint-components/{p-aaeaff1a.system.entry.js → p-f4a8ee29.system.entry.js} +1 -1
  375. package/dist/mint-components/p-fa37513e.system.entry.js +1 -0
  376. package/dist/mint-components/{p-e0b344fb.entry.js → p-fe2e2f4a.entry.js} +1 -1
  377. package/dist/mint-components/p-ff8b8067.entry.js +33 -0
  378. package/dist/types/components/sqm-google-sign-in/sqm-google-sign-in.d.ts +2 -0
  379. package/dist/types/components/sqm-google-sign-in/useGoogleSignIn.d.ts +1 -1
  380. package/dist/types/components/sqm-payout-button-scroll/PayoutButtonScroll.stories.d.ts +6 -0
  381. package/dist/types/components/sqm-payout-button-scroll/sqm-payout-button-scroll-view.d.ts +10 -0
  382. package/dist/types/components/sqm-payout-button-scroll/sqm-payout-button-scroll.d.ts +26 -0
  383. package/dist/types/components/sqm-payout-button-scroll/usePayoutButton.d.ts +7 -0
  384. package/dist/types/components/sqm-portal-google-login/sqm-portal-google-login.d.ts +74 -0
  385. package/dist/types/components/sqm-portal-login/sqm-portal-login.d.ts +0 -4
  386. package/dist/types/components/sqm-portal-login/usePortalLogin.d.ts +2 -1
  387. package/dist/types/components/sqm-portal-registration-form/sqm-portal-registration-form-view.d.ts +1 -0
  388. package/dist/types/components/sqm-referral-table/ReferralTableRewardsCell.stories.d.ts +1 -0
  389. package/dist/types/components/sqm-rewards-table/RewardsTableCell.stories.d.ts +1 -0
  390. package/dist/types/components/sqm-widget-verification/keys.d.ts +4 -0
  391. package/dist/types/components/sqm-widget-verification/sqm-code-verification/WidgetCodeVerification.stories.d.ts +9 -0
  392. package/dist/types/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.d.ts +26 -0
  393. package/dist/types/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.d.ts +54 -0
  394. package/dist/types/components/sqm-widget-verification/sqm-code-verification/useCodeVerification.d.ts +25 -0
  395. package/dist/types/components/sqm-widget-verification/sqm-email-verification/WidgetEmailVerification.stories.d.ts +11 -0
  396. package/dist/types/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.d.ts +22 -0
  397. package/dist/types/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.d.ts +44 -0
  398. package/dist/types/components/sqm-widget-verification/sqm-email-verification/useEmailVerification.d.ts +10 -0
  399. package/dist/types/components/sqm-widget-verification/sqm-widget-verification-controller.d.ts +12 -0
  400. package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +96 -0
  401. package/dist/types/components/sqm-widget-verification/useVerificationEmail.d.ts +15 -0
  402. package/dist/types/components/sqm-widget-verification/useWidgetVerification.d.ts +5 -0
  403. package/dist/types/components/tax-and-cash/BankingForm.stories.d.ts +1 -0
  404. package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +6 -0
  405. package/dist/types/components/tax-and-cash/eventKeys.d.ts +1 -0
  406. package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.d.ts +8 -0
  407. package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.d.ts +13 -0
  408. package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.d.ts +1 -0
  409. package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.d.ts +4 -0
  410. package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +1 -1
  411. package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.d.ts +1 -0
  412. package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.d.ts +4 -0
  413. package/dist/types/components/tax-and-cash/sqm-payout-details-card/PayoutDetailsCard.stories.d.ts +0 -1
  414. package/dist/types/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card-view.d.ts +0 -4
  415. package/dist/types/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.d.ts +1 -16
  416. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.d.ts +12 -0
  417. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.d.ts +36 -0
  418. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +90 -0
  419. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +20 -0
  420. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/data.d.ts +6 -0
  421. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/extractProps.d.ts +5 -1
  422. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +82 -3
  423. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +17 -0
  424. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +47 -2
  425. package/dist/types/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.d.ts +1 -0
  426. package/dist/types/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.d.ts +4 -0
  427. package/dist/types/components/tax-and-cash/useVeriffApp.d.ts +6 -0
  428. package/dist/types/components.d.ts +1071 -86
  429. package/docs/docs.docx +0 -0
  430. package/docs/raisins.json +1 -1
  431. package/grapesjs/grapesjs.js +1 -1
  432. package/package.json +3 -4
  433. package/dist/collection/components/sqm-portal-google-registration-form/small-views/RegistrationFieldsView.js +0 -86
  434. package/dist/esm-es5/ShadowViewAddon-eba44767.js +0 -1
  435. package/dist/esm-es5/index.module-a2989d3c.js +0 -1
  436. package/dist/esm-es5/sqm-banking-info-form_16.entry.js +0 -1
  437. package/dist/esm-es5/sqm-base-registration-form-view-98c4db70.js +0 -1
  438. package/dist/esm-es5/sqm-big-stat_38.entry.js +0 -1
  439. package/dist/esm-es5/sqm-invoice-table-view-8e2bb54a.js +0 -1
  440. package/dist/esm-es5/sqm-portal-registration-form-view-90e2bfd5.js +0 -1
  441. package/dist/mint-components/p-0323586f.entry.js +0 -223
  442. package/dist/mint-components/p-046f4631.system.js +0 -1
  443. package/dist/mint-components/p-0e53c59e.system.js +0 -1
  444. package/dist/mint-components/p-16c7bfda.js +0 -391
  445. package/dist/mint-components/p-28042d23.entry.js +0 -174
  446. package/dist/mint-components/p-30108c0e.js +0 -1
  447. package/dist/mint-components/p-31a691af.js +0 -1
  448. package/dist/mint-components/p-39b1a7fe.js +0 -1
  449. package/dist/mint-components/p-3bdd338c.system.js +0 -1
  450. package/dist/mint-components/p-3ec660e9.js +0 -1
  451. package/dist/mint-components/p-46ab5f80.system.js +0 -1
  452. package/dist/mint-components/p-4daa3f8a.system.entry.js +0 -1
  453. package/dist/mint-components/p-62f6627d.js +0 -1
  454. package/dist/mint-components/p-6a89b821.system.entry.js +0 -1
  455. package/dist/mint-components/p-749c7c9c.system.js +0 -1
  456. package/dist/mint-components/p-868f176e.entry.js +0 -1
  457. package/dist/mint-components/p-8d77feee.js +0 -1
  458. package/dist/mint-components/p-96b48c2b.system.js +0 -1
  459. package/dist/mint-components/p-a1f40614.system.entry.js +0 -1
  460. package/dist/mint-components/p-ac2b7eb8.system.js +0 -1
  461. package/dist/mint-components/p-b611eefd.entry.js +0 -1
  462. package/dist/mint-components/p-c4b21562.system.entry.js +0 -1
  463. package/dist/mint-components/p-c6a8c075.system.js +0 -1
  464. package/dist/mint-components/p-cd480e3f.entry.js +0 -33
  465. package/dist/mint-components/p-cf505e92.system.js +0 -1
  466. package/dist/mint-components/p-d671e44e.system.js +0 -1
  467. package/dist/mint-components/p-d7ed4bb5.entry.js +0 -1
  468. package/dist/mint-components/p-d87ce3d2.js +0 -1
  469. package/dist/mint-components/p-ea9fd654.entry.js +0 -9
  470. package/dist/mint-components/p-fe4a9dfe.system.entry.js +0 -1
  471. package/dist/types/components/sqm-portal-google-registration-form/small-views/RegistrationFieldsView.d.ts +0 -31
@@ -4,19 +4,24 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-a29c60ef.js');
6
6
  const stencilHooks_module = require('./stencil-hooks.module-3a336b0f.js');
7
- const global = require('./global-19fc8a7a.js');
8
- const index_module = require('./index.module-57703088.js');
7
+ const global = require('./global-e31dc4f5.js');
8
+ const index_module = require('./index.module-ee84433d.js');
9
9
  const jsonpointer = require('./jsonpointer-11327262.js');
10
10
  const cjs = require('./cjs-1066ec21.js');
11
11
  const utils = require('./utils-6847bc06.js');
12
12
  const JSS = require('./JSS-8503a151.js');
13
- require('./mixins-f7e0377a.js');
13
+ const mixins = require('./mixins-f7e0377a.js');
14
14
  const GenericTableView = require('./GenericTableView-a9f4ba75.js');
15
- const reRender = require('./re-render-35b016ed.js');
16
- const useChildElements = require('./useChildElements-854cd1e5.js');
15
+ const reRender = require('./re-render-b324deab.js');
16
+ const useChildElements = require('./useChildElements-1b35d945.js');
17
17
  const luxon = require('./luxon-2926d85f.js');
18
- const useReferralTable = require('./useReferralTable-283d2316.js');
19
- const sqmInvoiceTableView = require('./sqm-invoice-table-view-9dfa2a16.js');
18
+ const useReferralTable = require('./useReferralTable-7c3f9600.js');
19
+ const sqmTextSpanView = require('./sqm-text-span-view-0aa82125.js');
20
+ const sqmInvoiceTableView = require('./sqm-invoice-table-view-baded4af.js');
21
+ const extractProps = require('./extractProps-fd93ba62.js');
22
+ const keys = require('./keys-cff24974.js');
23
+ const usePayoutStatus = require('./usePayoutStatus-4b5894ef.js');
24
+ const useVerificationEmail = require('./useVerificationEmail-95a82767.js');
20
25
 
21
26
  const TAX_CONTEXT_NAMESPACE = "sq:tax-and-cash";
22
27
  const TAX_FORM_CONTEXT_NAMESPACE = "sq:tax-form-context";
@@ -32,11 +37,17 @@ const GET_USER = index_module.dist.gql `
32
37
  query getUserTaxInfo {
33
38
  user: viewer {
34
39
  ... on User {
40
+ id
35
41
  firstName
36
42
  lastName
37
43
  email
38
44
  countryCode
39
45
  customFields
46
+ managedIdentity {
47
+ uid
48
+ email
49
+ emailVerified
50
+ }
40
51
  impactConnection {
41
52
  connected
42
53
  user {
@@ -80,6 +91,7 @@ const GET_USER = index_module.dist.gql `
80
91
  }
81
92
  payoutsAccount {
82
93
  hold
94
+ holdReasons
83
95
  balance
84
96
  }
85
97
  }
@@ -856,12 +868,22 @@ const BankingInfoFormView = (props) => {
856
868
  index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
857
869
  index.h("strong", null, text.error.generalTitle),
858
870
  index.h("br", null),
859
- text.error.generalDescription)),
871
+ global.intl.formatMessage({
872
+ id: "generalDescription",
873
+ defaultMessage: text.error.generalDescription,
874
+ }, {
875
+ supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
876
+ }))),
860
877
  states.isPartner && !states.hideSteps && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "primary", open: true, class: sheet.classes.PartnerAlertContainer },
861
878
  index.h("sl-icon", { slot: "icon", name: "info-circle" }),
862
879
  index.h("strong", null, text.isPartnerAlertHeader),
863
880
  index.h("br", null),
864
- text.isPartnerAlertDescription)),
881
+ global.intl.formatMessage({
882
+ id: "isPartnerAlertDescription",
883
+ defaultMessage: text.isPartnerAlertDescription,
884
+ }, {
885
+ supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
886
+ }))),
865
887
  index.h("div", null,
866
888
  index.h("h4", null, text.paymentMethod),
867
889
  index.h("p", { class: classes.DescriptionText }, text.paymentMethodSubtext))),
@@ -943,6 +965,21 @@ const SAVE_WITHDRAWAL_SETTINGS = index_module.dist.gql `
943
965
  }
944
966
  }
945
967
  `;
968
+ const UPDATE_WITHDRAWAL_SETTINGS = index_module.dist.gql `
969
+ mutation updateImpactPublisherWithdrawalSettings(
970
+ $updateImpactPublisherWithdrawalSettingsInput: UpdateImpactPublisherWithdrawalSettingsInput!
971
+ ) {
972
+ updateImpactPublisherWithdrawalSettings(
973
+ updateImpactPublisherWithdrawalSettingsInput: $updateImpactPublisherWithdrawalSettingsInput
974
+ ) {
975
+ success
976
+ validationErrors {
977
+ field
978
+ message
979
+ }
980
+ }
981
+ }
982
+ `;
946
983
  function getPaymentMethod(paymentOption) {
947
984
  if (paymentOption.defaultFinancePaymentMethodId === 3 ||
948
985
  paymentOption.defaultFinancePaymentMethodId === 5)
@@ -959,7 +996,8 @@ function parseImpactThreshold(threshold) {
959
996
  return parsed.toString();
960
997
  }
961
998
  function useBankingInfoForm(props) {
962
- var _a, _b, _c, _d, _e, _f, _g, _h;
999
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
1000
+ const host = index_module._();
963
1001
  const locale = index_module.L();
964
1002
  const user = index_module.J();
965
1003
  const [step, setStep] = index_module.Pn(TAX_CONTEXT_NAMESPACE);
@@ -969,6 +1007,9 @@ function useBankingInfoForm(props) {
969
1007
  const { data: paymentOptionsData, loading: paymentOptionsLoading, errors: paymentOptionsError, } = index_module.$n(FINANCE_NETWORK_SETTINGS_NAMESPACE);
970
1008
  const { data: userData, refetch, errors: userError, } = index_module.$n(USER_QUERY_NAMESPACE);
971
1009
  const [saveWithdrawalSettings] = index_module.$e(SAVE_WITHDRAWAL_SETTINGS);
1010
+ const [updateWithdrawalSettings] = index_module.$e(UPDATE_WITHDRAWAL_SETTINGS);
1011
+ const [showVerification, setShowVerification] = stencilHooks_module.useState(false);
1012
+ const [currentFormData, setCurrentFormData] = stencilHooks_module.useState(null);
972
1013
  const [formState, setFormState] = stencilHooks_module.useState({});
973
1014
  const [currentPaymentOption, setCurrentPaymentOption] = stencilHooks_module.useState(null);
974
1015
  const [loading, setLoading] = stencilHooks_module.useState(false);
@@ -978,8 +1019,9 @@ function useBankingInfoForm(props) {
978
1019
  const [countrySearch, setCountrySearch] = stencilHooks_module.useState("");
979
1020
  const [filteredCountries, setFilteredCountries] = stencilHooks_module.useState(countries || []);
980
1021
  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) || "";
1022
+ 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);
981
1023
  const feeCap = paypalFeeMap[currency] || "";
982
- const paymentOptions = (_d = paymentOptionsData === null || paymentOptionsData === void 0 ? void 0 : paymentOptionsData.impactFinanceNetworkSettings) === null || _d === void 0 ? void 0 : _d.data;
1024
+ const paymentOptions = (_g = paymentOptionsData === null || paymentOptionsData === void 0 ? void 0 : paymentOptionsData.impactFinanceNetworkSettings) === null || _g === void 0 ? void 0 : _g.data;
983
1025
  const paymentMethodFeeMap = {
984
1026
  [ACH_PAYMENT_METHOD]: props.eftWithdrawalLabel,
985
1027
  [WIRE_PAYMENT_METHOD]: global.intl.formatMessage({
@@ -1058,49 +1100,52 @@ function useBankingInfoForm(props) {
1058
1100
  setFormState((p) => ({ ...p, bankCountry }));
1059
1101
  setCurrentPaymentOption(currentPaymentOption);
1060
1102
  };
1061
- const onSubmit = async (event) => {
1062
- var _a, _b, _c, _d;
1063
- let formData = {};
1064
- let validationErrors = {};
1065
- const controls = event.target.getFormControls();
1066
- controls.forEach((control) => {
1067
- if (!control.name || !control.id)
1068
- return;
1069
- const key = control.name;
1070
- const value = control.value;
1071
- jsonpointer.jsonpointer.set(formData, key, value);
1072
- if (control.required && !value) {
1073
- jsonpointer.jsonpointer.set(validationErrors, key, { type: "required" });
1074
- }
1075
- });
1076
- setErrors({ inputErrors: validationErrors });
1077
- if (Object.keys(validationErrors).length) {
1078
- return;
1079
- }
1103
+ const runMutation = async (formData, token) => {
1104
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
1080
1105
  setLoading(true);
1081
1106
  try {
1082
1107
  if (!currentPaymentOption)
1083
1108
  throw new Error("No currentPaymentOption");
1084
- const input = {
1085
- setImpactPublisherWithdrawalSettingsInput: {
1086
- user: {
1087
- id: user.id,
1088
- accountId: user.accountId,
1089
- },
1090
- ...formData,
1091
- paymentMethod: getPaymentMethod(currentPaymentOption),
1092
- paymentSchedulingType: paymentScheduleChecked,
1109
+ const body = {
1110
+ user: {
1111
+ id: user.id,
1112
+ accountId: user.accountId,
1093
1113
  },
1114
+ ...formData,
1115
+ paymentMethod: getPaymentMethod(currentPaymentOption),
1116
+ paymentSchedulingType: paymentScheduleChecked,
1094
1117
  };
1095
- const response = await saveWithdrawalSettings(input);
1096
- if (!response || ((_a = response) === null || _a === void 0 ? void 0 : _a.message)) {
1118
+ let response = null;
1119
+ let success = null;
1120
+ let validationErrors = null;
1121
+ // Call difference mutations based on whether the user is updating
1122
+ // the info for setting it for the first time
1123
+ if (isPartner) {
1124
+ if (!token)
1125
+ return; // Require token for this mutation
1126
+ response = await updateWithdrawalSettings({
1127
+ updateImpactPublisherWithdrawalSettingsInput: {
1128
+ ...body,
1129
+ accessKey: token,
1130
+ },
1131
+ });
1132
+ success = (_b = (_a = response) === null || _a === void 0 ? void 0 : _a.updateImpactPublisherWithdrawalSettings) === null || _b === void 0 ? void 0 : _b.success;
1133
+ validationErrors = (_d = (_c = response) === null || _c === void 0 ? void 0 : _c.updateImpactPublisherWithdrawalSettings) === null || _d === void 0 ? void 0 : _d.validationErrors;
1134
+ }
1135
+ else {
1136
+ response = await saveWithdrawalSettings({
1137
+ setImpactPublisherWithdrawalSettingsInput: {
1138
+ ...body,
1139
+ },
1140
+ });
1141
+ success = (_f = (_e = response) === null || _e === void 0 ? void 0 : _e.setImpactPublisherWithdrawalSettings) === null || _f === void 0 ? void 0 : _f.success;
1142
+ validationErrors = (_h = (_g = response) === null || _g === void 0 ? void 0 : _g.setImpactPublisherWithdrawalSettings) === null || _h === void 0 ? void 0 : _h.validationErrors;
1143
+ }
1144
+ if (!response || ((_j = response) === null || _j === void 0 ? void 0 : _j.message)) {
1097
1145
  throw new Error();
1098
1146
  }
1099
- else if (!((_b = response
1100
- .setImpactPublisherWithdrawalSettings) === null || _b === void 0 ? void 0 : _b.success)) {
1101
- console.error("Validation failed: ", (_c = response
1102
- .setImpactPublisherWithdrawalSettings) === null || _c === void 0 ? void 0 : _c.validationErrors);
1103
- const validationErrors = (_d = response.setImpactPublisherWithdrawalSettings) === null || _d === void 0 ? void 0 : _d.validationErrors;
1147
+ else if (!success) {
1148
+ console.error("Validation failed: ", validationErrors);
1104
1149
  const mappedValidationErrors = validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.reduce((agg, error) => {
1105
1150
  return {
1106
1151
  ...agg,
@@ -1115,6 +1160,8 @@ function useBankingInfoForm(props) {
1115
1160
  });
1116
1161
  return;
1117
1162
  }
1163
+ // Fire form change event
1164
+ window.dispatchEvent(new Event(usePayoutStatus.TAX_FORM_UPDATED_EVENT_KEY));
1118
1165
  await refetch();
1119
1166
  setStep("/dashboard");
1120
1167
  }
@@ -1126,6 +1173,45 @@ function useBankingInfoForm(props) {
1126
1173
  setLoading(false);
1127
1174
  }
1128
1175
  };
1176
+ const onSubmit = async (event) => {
1177
+ let formData = {};
1178
+ let validationErrors = {};
1179
+ const controls = event.target.getFormControls();
1180
+ controls.forEach((control) => {
1181
+ if (!control.name || !control.id)
1182
+ return;
1183
+ const key = control.name;
1184
+ const value = control.value;
1185
+ jsonpointer.jsonpointer.set(formData, key, value);
1186
+ if (control.required && !value) {
1187
+ jsonpointer.jsonpointer.set(validationErrors, key, { type: "required" });
1188
+ }
1189
+ });
1190
+ setErrors({ inputErrors: validationErrors });
1191
+ if (Object.keys(validationErrors).length) {
1192
+ return;
1193
+ }
1194
+ let token = undefined;
1195
+ if (isPartner) {
1196
+ setShowVerification(true);
1197
+ token = await new Promise((res) => {
1198
+ const cb = (e) => {
1199
+ e.stopPropagation();
1200
+ host.removeEventListener(keys.VERIFICATION_EVENT_KEY, cb);
1201
+ res(e.detail.token);
1202
+ };
1203
+ host.addEventListener(keys.VERIFICATION_EVENT_KEY, cb);
1204
+ });
1205
+ setShowVerification(false);
1206
+ }
1207
+ await runMutation(formData, token);
1208
+ };
1209
+ const onVerification = async (token) => {
1210
+ host.dispatchEvent(new CustomEvent(keys.VERIFICATION_EVENT_KEY, {
1211
+ detail: { token },
1212
+ bubbles: false,
1213
+ }));
1214
+ };
1129
1215
  function setPaymentMethodChecked(paymentMethod) {
1130
1216
  _setPaymentMethodChecked(paymentMethod);
1131
1217
  if (paymentMethod === "toPayPalAccount") {
@@ -1150,13 +1236,16 @@ function useBankingInfoForm(props) {
1150
1236
  setPaymentScheduleChecked,
1151
1237
  onBack: () => setStep("/dashboard"),
1152
1238
  setCountrySearch,
1239
+ onVerification,
1240
+ onVerificationHide: () => onVerification(null),
1153
1241
  },
1154
1242
  states: {
1243
+ showVerification,
1155
1244
  step: step === null || step === void 0 ? void 0 : step.replace("/", ""),
1156
1245
  hideSteps: !!context.hideSteps,
1157
1246
  saveDisabled: !paymentMethodChecked || !paymentScheduleChecked,
1158
1247
  locale,
1159
- 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),
1248
+ isPartner,
1160
1249
  feeCap,
1161
1250
  paymentMethodFeeLabel,
1162
1251
  disabled: loading,
@@ -1181,6 +1270,7 @@ function useBankingInfoForm(props) {
1181
1270
  hasPayPal,
1182
1271
  bankCountry: formState.bankCountry,
1183
1272
  countrySearch,
1273
+ email: (_j = userData === null || userData === void 0 ? void 0 : userData.user) === null || _j === void 0 ? void 0 : _j.email,
1184
1274
  },
1185
1275
  refs: {
1186
1276
  formRef,
@@ -1387,7 +1477,16 @@ const BankingInfoForm = class {
1387
1477
  * @uiName Participant is a partner alert description
1388
1478
  * @uiWidget textArea
1389
1479
  */
1390
- this.isPartnerAlertDescription = "If you don’t recognize this referral program provider or believe this is a mistake, please contact our Support team or sign up for this referral program with a different email.";
1480
+ this.isPartnerAlertDescription = "If you don’t recognize this referral program provider or believe this is a mistake, please contact our {supportLink} or sign up for this referral program with a different email.";
1481
+ /**
1482
+ * Text for verify email dialog
1483
+ * @uiName Verify email header
1484
+ */
1485
+ this.verifyEmailHeaderText = "Verify your email";
1486
+ /**
1487
+ * @uiName Verify code widget header text
1488
+ */
1489
+ this.verifyEmailDescriptionText = "Verify your email to update your payment settings. Enter the code sent to {email} from our referral provider, impact.com.";
1391
1490
  /**
1392
1491
  * Part of the alert displayed at the top of the page.
1393
1492
  * @uiName Form submission error message title
@@ -1399,7 +1498,7 @@ const BankingInfoForm = class {
1399
1498
  * @uiName Form submission error message description
1400
1499
  * @uiWidget textArea
1401
1500
  */
1402
- this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact Support.";
1501
+ this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact our {supportLink}.";
1403
1502
  /**
1404
1503
  * Displayed under a field that is missing required information.
1405
1504
  * @uiName Empty form field error message
@@ -1410,6 +1509,10 @@ const BankingInfoForm = class {
1410
1509
  * @uiName Form field error message
1411
1510
  */
1412
1511
  this.fieldInvalidError = "{fieldName} is invalid";
1512
+ /**
1513
+ * @uiName Support link text
1514
+ */
1515
+ this.supportLink = "support team";
1413
1516
  /**
1414
1517
  * @uiName Continue button label
1415
1518
  */
@@ -1482,20 +1585,55 @@ const BankingInfoForm = class {
1482
1585
  bitset: props.states.bitset,
1483
1586
  formMap,
1484
1587
  });
1485
- const searchStyle = {
1588
+ const style = {
1589
+ Dialog: {
1590
+ position: "relative",
1591
+ "&::part(panel)": {
1592
+ maxWidth: "420px",
1593
+ },
1594
+ "&::part(title)": {
1595
+ padding: "var(--sl-spacing-large) var(--sl-spacing-large) 0 var(--sl-spacing-large)",
1596
+ },
1597
+ "&::part(base)": {
1598
+ position: "absolute",
1599
+ },
1600
+ "&::part(close-button)": {
1601
+ marginBottom: "var(--sl-spacing-large)",
1602
+ },
1603
+ "&::part(body)": {
1604
+ padding: "0 var(--sl-spacing-large) 0 var(--sl-spacing-large)",
1605
+ fontSize: "var(--sl-font-size-small)",
1606
+ },
1607
+ "&::part(footer)": {
1608
+ display: "flex",
1609
+ flexDirection: "column",
1610
+ gap: "var(--sl-spacing-small)",
1611
+ marginBottom: "var(--sl-spacing-xx-small)",
1612
+ alignItems: "center",
1613
+ flex: "1",
1614
+ },
1615
+ },
1486
1616
  SearchInput: {
1487
1617
  padding: "var(--sl-spacing-x-small)",
1488
1618
  },
1489
1619
  };
1490
- return (index.h(index.Host, null, index.h(BankingInfoFormView, { callbacks: props.callbacks, text: props.text, states: props.states, refs: props.refs, slots: {
1620
+ const sheet = JSS.createStyleSheet(style);
1621
+ const styleString = sheet.toString();
1622
+ const verifyDescription = global.intl.formatMessage({
1623
+ id: "codeResentSuccessfully",
1624
+ defaultMessage: props.text.verifyEmailDescriptionText,
1625
+ }, {
1626
+ email: props.states.email,
1627
+ });
1628
+ return (index.h(index.Host, null, index.h("style", { type: "text/css" }, styleString), props.states.isPartner && props.states.showVerification ? (index.h("sl-dialog", { class: sheet.classes.Dialog, open: true, "onSl-hide": props.callbacks.onVerificationHide, label: props.text.verifyEmailHeaderText }, index.h("sqm-code-verification", { verifyCodeHeaderText: verifyDescription, reverifyCodeHeaderText: verifyDescription, onVerification: props.callbacks.onVerification }))) : null, index.h(BankingInfoFormView, { callbacks: props.callbacks, text: props.text, states: props.states, refs: props.refs, slots: {
1491
1629
  formInputsSlot: inputFields === null || inputFields === void 0 ? void 0 : inputFields.map(({ input }) => input),
1492
- countryInputSlot: (index.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) && {
1630
+ countryInputSlot: (index.h("sl-select", Object.assign({ label: props.text.bankLocationLabel, disabled: props.states.saveLoading, 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) && {
1493
1631
  class: "error-input",
1494
1632
  helpText: getValidationErrorMessage({
1495
1633
  type: (_c = (_b = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _b === void 0 ? void 0 : _b.bankCountry) === null || _c === void 0 ? void 0 : _c.type,
1496
1634
  label: props.text.bankLocationLabel,
1497
1635
  }),
1498
- })), index.h("sl-input", { class: searchStyle.SearchInput, placeholder: this.searchForCountryText, onKeyDown: (e) => {
1636
+ })), index.h("sl-input", { disabled: props.states.saveLoading, class: sheet.classes.SearchInput, placeholder: this.searchForCountryText, onKeyDown: (e) => {
1499
1637
  // Stop shoelace intercepting key presses
1500
1638
  e.stopPropagation();
1501
1639
  }, "onSl-input": (e) => {
@@ -1506,21 +1644,21 @@ const BankingInfoForm = class {
1506
1644
  }), (_f = (_e = props.states) === null || _e === void 0 ? void 0 : _e.allCountries) === null || _f === void 0 ? void 0 :
1507
1645
  _f.map((c) => (index.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } }, c.displayName))))),
1508
1646
  paymentMethodSlot: (index.h("sl-input", { key: "paymentMethod", label: props.text.paymentMethod, placeholder: props.states.paymentMethodFeeLabel, disabled: true })),
1509
- paymentThresholdSelectSlot: (index.h("sl-select", Object.assign({ required: true, label: props.text.paymentThresholdSelectLabel, name: "/paymentThreshold", id: "paymentThreshold", value: ((_h = (_g = props.states) === null || _g === void 0 ? void 0 : _g.formState) === null || _h === void 0 ? void 0 : _h.paymentThreshold) || "" }, (((_j = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _j === void 0 ? void 0 : _j.paymentThreshold) && {
1647
+ paymentThresholdSelectSlot: (index.h("sl-select", Object.assign({ required: true, disabled: props.states.saveLoading, label: props.text.paymentThresholdSelectLabel, name: "/paymentThreshold", id: "paymentThreshold", value: ((_h = (_g = props.states) === null || _g === void 0 ? void 0 : _g.formState) === null || _h === void 0 ? void 0 : _h.paymentThreshold) || "" }, (((_j = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _j === void 0 ? void 0 : _j.paymentThreshold) && {
1510
1648
  class: "error-input",
1511
1649
  helpText: getValidationErrorMessage({
1512
1650
  type: (_l = (_k = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _k === void 0 ? void 0 : _k.paymentThreshold) === null || _l === void 0 ? void 0 : _l.type,
1513
1651
  label: props.text.paymentThresholdSelectLabel,
1514
1652
  }),
1515
1653
  })), props.states.thresholds.map((t) => (index.h("sl-menu-item", { value: t }, `${props.states.currency}${t}`))))),
1516
- paymentFixedDaySelectSlot: (index.h("sl-select", Object.assign({ required: true, label: props.text.paymentDaySelectLabel, value: ((_o = (_m = props.states) === null || _m === void 0 ? void 0 : _m.formState) === null || _o === void 0 ? void 0 : _o.paymentDay) || "", name: "/paymentDay", id: "paymentDay" }, (((_p = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _p === void 0 ? void 0 : _p.paymentDay) && {
1654
+ paymentFixedDaySelectSlot: (index.h("sl-select", Object.assign({ required: true, disabled: props.states.saveLoading, label: props.text.paymentDaySelectLabel, value: ((_o = (_m = props.states) === null || _m === void 0 ? void 0 : _m.formState) === null || _o === void 0 ? void 0 : _o.paymentDay) || "", name: "/paymentDay", id: "paymentDay" }, (((_p = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _p === void 0 ? void 0 : _p.paymentDay) && {
1517
1655
  class: "error-input",
1518
1656
  helpText: getValidationErrorMessage({
1519
1657
  type: (_r = (_q = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _q === void 0 ? void 0 : _q.paymentDay) === null || _r === void 0 ? void 0 : _r.type,
1520
1658
  label: props.text.paymentDaySelectLabel,
1521
1659
  }),
1522
1660
  })), index.h("sl-menu-item", { value: "1" }, props.text.paymentDayFirstOfMonthLabelText), index.h("sl-menu-item", { value: "15" }, props.text.paymentDayFifteenthOfMonthLabelText))),
1523
- paypalInputSlot: (index.h("sl-input", Object.assign({ required: true, value: ((_t = (_s = props.states) === null || _s === void 0 ? void 0 : _s.formState) === null || _t === void 0 ? void 0 : _t.paypalEmailAddress) || "", label: props.text.payPalInputLabel, key: "paypalEmailAddress", name: "/paypalEmailAddress", id: "paypalEmailAddress", type: "text" }, (((_w = (_v = (_u = props.states.formState) === null || _u === void 0 ? void 0 : _u.errors) === null || _v === void 0 ? void 0 : _v.inputErrors) === null || _w === void 0 ? void 0 : _w.paypalEmailAddress) && {
1661
+ paypalInputSlot: (index.h("sl-input", Object.assign({ required: true, disabled: props.states.saveLoading, value: ((_t = (_s = props.states) === null || _s === void 0 ? void 0 : _s.formState) === null || _t === void 0 ? void 0 : _t.paypalEmailAddress) || "", label: props.text.payPalInputLabel, key: "paypalEmailAddress", name: "/paypalEmailAddress", id: "paypalEmailAddress", type: "text" }, (((_w = (_v = (_u = props.states.formState) === null || _u === void 0 ? void 0 : _u.errors) === null || _v === void 0 ? void 0 : _v.inputErrors) === null || _w === void 0 ? void 0 : _w.paypalEmailAddress) && {
1524
1662
  class: "error-input",
1525
1663
  helpText: getValidationErrorMessage({
1526
1664
  type: (_0 = (_z = (_y = (_x = props.states.formState) === null || _x === void 0 ? void 0 : _x.errors) === null || _y === void 0 ? void 0 : _y.inputErrors) === null || _z === void 0 ? void 0 : _z.paypalEmailAddress) === null || _0 === void 0 ? void 0 : _0.type,
@@ -1611,6 +1749,7 @@ function useDemoBankingInfoForm(props) {
1611
1749
  hasPayPal: true,
1612
1750
  },
1613
1751
  callbacks: {
1752
+ onVerificationHide: () => { },
1614
1753
  onSubmit: async () => {
1615
1754
  setStep("/dashboard");
1616
1755
  },
@@ -1619,6 +1758,7 @@ function useDemoBankingInfoForm(props) {
1619
1758
  setPaymentScheduleChecked,
1620
1759
  setCountrySearch: () => { },
1621
1760
  onBack: async () => setStep("/dashboard"),
1761
+ onVerification: () => { },
1622
1762
  },
1623
1763
  text: props.getTextProps(),
1624
1764
  refs: {
@@ -1627,6 +1767,331 @@ function useDemoBankingInfoForm(props) {
1627
1767
  }, props.demoData || {}, { arrayMerge: (_, a) => a });
1628
1768
  }
1629
1769
 
1770
+ const style$1 = {
1771
+ Wrapper: {
1772
+ display: "flex",
1773
+ flexDirection: "column",
1774
+ gap: "var(--sl-spacing-medium)",
1775
+ maxWidth: "550px",
1776
+ },
1777
+ HeaderContainer: {
1778
+ display: "flex",
1779
+ flexDirection: "column",
1780
+ },
1781
+ InputsContainer: {
1782
+ display: "flex",
1783
+ gap: "var(--sl-spacing-medium)",
1784
+ position: "relative",
1785
+ flexDirection: "column",
1786
+ },
1787
+ CodeInputContainer: {
1788
+ display: "flex",
1789
+ gap: "var(--sl-spacing-medium)",
1790
+ },
1791
+ CodeInput: {
1792
+ maxWidth: "40px",
1793
+ "&::part(input)": {
1794
+ margin: "0",
1795
+ padding: "0 var(--sl-input-spacing-small)",
1796
+ fontSize: "var(--sl-font-size-large)",
1797
+ },
1798
+ },
1799
+ CodeInputError: {
1800
+ ...mixins.ErrorStyles,
1801
+ maxWidth: "40px",
1802
+ "&::part(input)": {
1803
+ margin: "0",
1804
+ padding: "0 var(--sl-input-spacing-small)",
1805
+ fontSize: "var(--sl-font-size-large)",
1806
+ },
1807
+ },
1808
+ ErrorText: {
1809
+ color: "var(--sl-color-danger-500)",
1810
+ fontSize: "var(--sl-font-size-small)",
1811
+ margin: "0",
1812
+ },
1813
+ ContinueButton: {
1814
+ width: "100%",
1815
+ maxWidth: "100px",
1816
+ },
1817
+ FooterContainer: {
1818
+ display: "flex",
1819
+ flexDirection: "column",
1820
+ },
1821
+ SkeletonOne: {
1822
+ width: "50%",
1823
+ height: "16px",
1824
+ },
1825
+ SkeletonTwo: {
1826
+ width: "30%",
1827
+ height: "34px",
1828
+ },
1829
+ SkeletonThree: {
1830
+ width: "15%",
1831
+ height: "24px",
1832
+ },
1833
+ };
1834
+ const vanillaStyle$1 = `
1835
+ :host {
1836
+ display: block;
1837
+ }
1838
+ :host([hidden]): {
1839
+ display: none;
1840
+ }
1841
+
1842
+
1843
+ `;
1844
+ const sheet$1 = JSS.createStyleSheet(style$1);
1845
+ const styleString$1 = sheet$1.toString();
1846
+ function WidgetCodeVerificationView(props) {
1847
+ const { states, refs, callbacks, text } = props;
1848
+ const resendCodeText = global.intl.formatMessage({
1849
+ id: "resendCodeText",
1850
+ defaultMessage: text.resendCodeText,
1851
+ }, {
1852
+ resendCodeLink: (index.h("a", { href: "", style: { textDecoration: "none" }, onClick: (e) => {
1853
+ e.preventDefault();
1854
+ callbacks.resendEmail();
1855
+ } }, text.resendCodeLabel)),
1856
+ });
1857
+ const codeResentSuccessfully = global.intl.formatMessage({
1858
+ id: "codeResentSuccessfully",
1859
+ defaultMessage: text.codeResentSuccessfullyText,
1860
+ }, {
1861
+ email: states.email,
1862
+ });
1863
+ const inputClass = states.verifyFailed
1864
+ ? sheet$1.classes.CodeInputError
1865
+ : sheet$1.classes.CodeInput;
1866
+ return (index.h("div", { part: "sqm-base" },
1867
+ index.h("style", { type: "text/css" },
1868
+ vanillaStyle$1,
1869
+ styleString$1),
1870
+ index.h("div", { class: sheet$1.classes.Wrapper },
1871
+ index.h("div", { class: sheet$1.classes.HeaderContainer },
1872
+ index.h(sqmTextSpanView.TextSpanView, { type: "p" }, global.intl.formatMessage({
1873
+ id: `emailHeaderText`,
1874
+ defaultMessage: states.verifyFailed
1875
+ ? text.reverifyCodeHeaderText
1876
+ : text.verifyCodeHeaderText,
1877
+ }, { email: states.email }))),
1878
+ states.emailResent && (index.h("sqm-form-message", { type: "success", exportparts: "successalert-icon" },
1879
+ index.h("b", null, codeResentSuccessfully))),
1880
+ index.h("div", { class: sheet$1.classes.InputsContainer },
1881
+ index.h("div", { ref: refs.codeWrapperRef, class: sheet$1.classes.CodeInputContainer },
1882
+ index.h("sl-input", { class: inputClass, name: "code" }),
1883
+ index.h("sl-input", { class: inputClass, name: "code" }),
1884
+ index.h("sl-input", { class: inputClass, name: "code" }),
1885
+ index.h("sl-input", { class: inputClass, name: "code" }),
1886
+ index.h("sl-input", { class: inputClass, name: "code" }),
1887
+ index.h("sl-input", { class: inputClass, name: "code" })),
1888
+ states.verifyFailed && (index.h("p", { class: sheet$1.classes.ErrorText }, text.invalidCodeText)),
1889
+ index.h("sl-button", { class: sheet$1.classes.ContinueButton, onClick: callbacks.submitCode, disabled: states.loading || states.initialiseLoading, loading: states.loading || states.initialiseLoading, exportparts: "base: primarybutton-base", type: "primary" }, text.verifyText)),
1890
+ index.h("div", { class: sheet$1.classes.FooterContainer },
1891
+ index.h(sqmTextSpanView.TextSpanView, { type: "p" }, resendCodeText)))));
1892
+ }
1893
+
1894
+ const VerifyEmailWithCodeMutation = index_module.dist.gql `
1895
+ mutation submitImpactPublisherEmail2FACode(
1896
+ $user: UserIdInput!
1897
+ $code: String!
1898
+ ) {
1899
+ submitImpactPublisherEmail2FACode(user: $user, code: $code) {
1900
+ verifiedEmail
1901
+ accessKey
1902
+ }
1903
+ }
1904
+ `;
1905
+ function useWidgetCodeVerification(props) {
1906
+ const host = stencilHooks_module.l();
1907
+ const [_, setShowCode] = index_module.Pn(keys.SHOW_CODE_NAMESPACE);
1908
+ const email = index_module.Fn(keys.VERIFICATION_EMAIL_NAMESPACE);
1909
+ const [emailSent, setEmailSent] = stencilHooks_module.useState(false);
1910
+ const [emailResent, setEmailResent] = stencilHooks_module.useState(false);
1911
+ const [codeRef, setCodeRef] = stencilHooks_module.useState(null);
1912
+ const [validationError, setValidationError] = stencilHooks_module.useState(false);
1913
+ const [emailError, setEmailError] = stencilHooks_module.useState(false);
1914
+ const { initialized, verificationEmail, send: [sendEmail, { loading: sendLoading, errors: sendErrors }], verify: [verifyEmail, { loading: verifyLoading, errors: verifyErrors }], } = useVerificationEmail.useVerificationEmail();
1915
+ stencilHooks_module.useEffect(() => {
1916
+ if (!codeRef)
1917
+ return;
1918
+ const slInputs = codeRef.querySelectorAll("sl-input");
1919
+ const codeElements = Array.from(slInputs).map((node) => node.shadowRoot.querySelector(`input[name="code"]`));
1920
+ codeElements.forEach((element, idx) => {
1921
+ element.addEventListener("focus", (e) => {
1922
+ e.target.select();
1923
+ });
1924
+ element.addEventListener("keydown", (e) => {
1925
+ if (e.key === "Backspace" && e.target.value === "") {
1926
+ codeElements[Math.max(0, idx - 1)].focus();
1927
+ }
1928
+ });
1929
+ element.addEventListener("input", (e) => {
1930
+ const input = e.data;
1931
+ if (!input)
1932
+ return;
1933
+ if (idx === codeElements.length - 1) {
1934
+ e.target.value = input.slice(0, 1);
1935
+ return;
1936
+ }
1937
+ if (input.length > 1) {
1938
+ const rest = input.slice(1);
1939
+ e.target.value = input.slice(0, 1);
1940
+ codeElements[idx + 1].dispatchEvent(new InputEvent("input", {
1941
+ inputType: "insertFromPaste",
1942
+ data: rest,
1943
+ }));
1944
+ }
1945
+ codeElements[idx + 1].focus();
1946
+ });
1947
+ });
1948
+ }, [codeRef]);
1949
+ const reset = () => {
1950
+ setShowCode(false);
1951
+ setValidationError(false);
1952
+ };
1953
+ const resendEmail = async () => {
1954
+ // UI should only allow this to be called if initialized, but checking just in case
1955
+ if (!initialized)
1956
+ return;
1957
+ const result = await sendEmail();
1958
+ if (!result) {
1959
+ setEmailError(true);
1960
+ return;
1961
+ }
1962
+ if (emailSent)
1963
+ setEmailResent(true);
1964
+ setEmailSent(true);
1965
+ };
1966
+ const submitCode = async () => {
1967
+ const slInputs = codeRef.querySelectorAll("sl-input");
1968
+ const codeElements = Array.from(slInputs).map((node) => node.shadowRoot.querySelector(`input[name="code"]`));
1969
+ if (codeElements.find((el) => !el.value)) {
1970
+ setValidationError(true);
1971
+ return;
1972
+ }
1973
+ let code = "";
1974
+ codeElements.forEach((element) => {
1975
+ code = `${code}${element.value}`;
1976
+ });
1977
+ // UI should only allow this to be called if initialized, but checking just in case
1978
+ if (!initialized)
1979
+ return;
1980
+ setValidationError(false);
1981
+ const res = await verifyEmail(code);
1982
+ if (res === null || res === void 0 ? void 0 : res.success) {
1983
+ props.onVerification(res.accessKey);
1984
+ reset();
1985
+ }
1986
+ else {
1987
+ setValidationError(true);
1988
+ }
1989
+ };
1990
+ stencilHooks_module.useEffect(() => {
1991
+ // Wait for mutations to be determined from user lookup
1992
+ if (!initialized)
1993
+ return;
1994
+ // email should already exist if user has completed email-verification
1995
+ if (!email)
1996
+ resendEmail();
1997
+ else
1998
+ setEmailSent(true);
1999
+ }, [initialized]);
2000
+ return {
2001
+ refs: {
2002
+ codeWrapperRef: setCodeRef,
2003
+ },
2004
+ states: {
2005
+ email: verificationEmail,
2006
+ emailResent,
2007
+ resendError: sendErrors || verifyErrors,
2008
+ initialiseLoading: !initialized,
2009
+ loading: sendLoading || verifyLoading,
2010
+ verifyFailed: !!validationError,
2011
+ },
2012
+ callbacks: {
2013
+ resendEmail,
2014
+ submitCode,
2015
+ },
2016
+ text: props.getTextProps(),
2017
+ };
2018
+ }
2019
+
2020
+ const WidgetCodeVerification = class {
2021
+ constructor(hostRef) {
2022
+ index.registerInstance(this, hostRef);
2023
+ /**
2024
+ * @uiName Verify code widget header text
2025
+ */
2026
+ this.verifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
2027
+ /**
2028
+ * @uiName Reverify code widget header text
2029
+ */
2030
+ this.reverifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
2031
+ /**
2032
+ * Text displayed under verify button
2033
+ * @uiName Resend code text
2034
+ */
2035
+ this.resendCodeText = "Didn't receive your code? {resendCodeLink}";
2036
+ /**
2037
+ * The link that appears in the resend code link
2038
+ * @uiName Resend code label
2039
+ */
2040
+ this.resendCodeLabel = "Resend code";
2041
+ /**
2042
+ * Link text displayed under verify button
2043
+ * @uiName Resend code text
2044
+ */
2045
+ this.codeResentSuccessfullyText = "Another code has been sent to {email}";
2046
+ /**
2047
+ * Error text displayed under verification input
2048
+ * @uiName Invalid code text
2049
+ */
2050
+ this.invalidCodeText = "Please check your code and try again. If you’re still having trouble, try resending your code.";
2051
+ /**
2052
+ * @uiName Verify code button text
2053
+ */
2054
+ this.verifyText = "Verify";
2055
+ /**
2056
+ * Displayed when the email verification fails due to a network error. The participant can try refreshing the page.
2057
+ * @uiName Network error message
2058
+ */
2059
+ this.networkErrorMessage = "An error occurred while verifying your email. Please refresh the page and try again.";
2060
+ stencilHooks_module.h$1(this);
2061
+ }
2062
+ disconnectedCallback() { }
2063
+ getTextProps() {
2064
+ return utils.getProps(this);
2065
+ }
2066
+ render() {
2067
+ const props = index_module.isDemo()
2068
+ ? useDemoWidgetCodeVerification(this)
2069
+ : useWidgetCodeVerification(this);
2070
+ return index.h(WidgetCodeVerificationView, Object.assign({}, props));
2071
+ }
2072
+ };
2073
+ function useDemoWidgetCodeVerification(props) {
2074
+ const [emailResent, setEmailResent] = stencilHooks_module.useState(false);
2075
+ const setVerifiedContext = index_module.En(keys.VERIFICATION_PARENT_NAMESPACE);
2076
+ return cjs.cjs({
2077
+ states: {
2078
+ loading: false,
2079
+ email: "test@example.com",
2080
+ emailResent,
2081
+ resendError: false,
2082
+ verifyFailed: false,
2083
+ },
2084
+ refs: {
2085
+ codeWrapperRef: () => { },
2086
+ },
2087
+ callbacks: {
2088
+ resendEmail: async () => setEmailResent(true),
2089
+ submitCode: async () => setVerifiedContext(true),
2090
+ },
2091
+ text: props.getTextProps(),
2092
+ }, props.demoData || {}, { arrayMerge: (_, a) => a });
2093
+ }
2094
+
1630
2095
  const GET_TAX_DOCUMENT = index_module.dist.gql `
1631
2096
  mutation createImpactPublisherTaxDocument(
1632
2097
  $vars: CreateImpactPublisherTaxDocumentInput!
@@ -1724,6 +2189,8 @@ function useDocusignForm(props) {
1724
2189
  // @ts-expect-error: no data type for result
1725
2190
  if (!result.completeImpactPublisherTaxDocument.success)
1726
2191
  throw new Error();
2192
+ // Fire form change event
2193
+ window.dispatchEvent(new Event(usePayoutStatus.TAX_FORM_UPDATED_EVENT_KEY));
1727
2194
  setShowExitButton(true);
1728
2195
  }
1729
2196
  catch (e) {
@@ -1782,7 +2249,7 @@ function getDocumentType(p) {
1782
2249
  return undefined;
1783
2250
  }
1784
2251
 
1785
- const style$1 = {
2252
+ const style$2 = {
1786
2253
  DocusignStatusContainer: {
1787
2254
  width: "100%",
1788
2255
  minHeight: "600px",
@@ -1800,14 +2267,22 @@ const style$1 = {
1800
2267
  MessageContainer: {
1801
2268
  maxWidth: "400px",
1802
2269
  },
2270
+ IFrameContainer: {
2271
+ "@media screen and (max-width: 440px)": {
2272
+ position: "absolute",
2273
+ width: "100vw",
2274
+ left: "-30px",
2275
+ zIndex: "9999",
2276
+ },
2277
+ },
1803
2278
  };
1804
- const sheet$1 = JSS.createStyleSheet(style$1);
1805
- const styleString$1 = sheet$1.toString();
2279
+ const sheet$2 = JSS.createStyleSheet(style$2);
2280
+ const styleString$2 = sheet$2.toString();
1806
2281
  const DocusignExpiredView = (props) => {
1807
- const { classes } = sheet$1;
2282
+ const { classes } = sheet$2;
1808
2283
  const { text } = props;
1809
2284
  return (index.h("div", null,
1810
- index.h("style", { type: "text/css" }, styleString$1),
2285
+ index.h("style", { type: "text/css" }, styleString$2),
1811
2286
  index.h("div", { class: classes.DocusignStatusContainer },
1812
2287
  index.h("sl-icon", { style: {
1813
2288
  width: "50px",
@@ -1819,10 +2294,10 @@ const DocusignExpiredView = (props) => {
1819
2294
  index.h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
1820
2295
  };
1821
2296
  const DocusignErrorView = (props) => {
1822
- const { classes } = sheet$1;
2297
+ const { classes } = sheet$2;
1823
2298
  const { text } = props;
1824
2299
  return (index.h("div", null,
1825
- index.h("style", { type: "text/css" }, styleString$1),
2300
+ index.h("style", { type: "text/css" }, styleString$2),
1826
2301
  index.h("div", { class: classes.DocusignStatusContainer },
1827
2302
  index.h("sl-icon", { style: {
1828
2303
  width: "50px",
@@ -1834,13 +2309,14 @@ const DocusignErrorView = (props) => {
1834
2309
  index.h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
1835
2310
  };
1836
2311
  const DocusignLoadingView = () => {
1837
- const { classes } = sheet$1;
2312
+ const { classes } = sheet$2;
1838
2313
  return (index.h("div", null,
1839
- index.h("style", { type: "text/css" }, styleString$1),
2314
+ index.h("style", { type: "text/css" }, styleString$2),
1840
2315
  index.h("div", { class: classes.DocusignStatusContainer },
1841
2316
  index.h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } }))));
1842
2317
  };
1843
2318
  const DocusignIframe = ({ states, data, callbacks, text, }) => {
2319
+ const { classes } = sheet$2;
1844
2320
  const [iFrameHeight, setiFrameHeight] = stencilHooks_module.useState("100%");
1845
2321
  const allowedDomains = [
1846
2322
  "referralsaasquatch.com",
@@ -1863,7 +2339,7 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
1863
2339
  return () => {
1864
2340
  window.removeEventListener("message", callback, false);
1865
2341
  };
1866
- }, []);
2342
+ }, [iFrameHeight]);
1867
2343
  if (states.urlLoading)
1868
2344
  return index.h(DocusignLoadingView, null);
1869
2345
  if (DOCUSIGN_ERROR_STATES.includes(states.status)) {
@@ -1871,10 +2347,14 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
1871
2347
  }
1872
2348
  if (DOCUSIGN_EXPIRED_STATES.includes(states.status))
1873
2349
  return index.h(DocusignExpiredView, { text: text });
1874
- return (index.h("iframe", { scrolling: "yes", frameBorder: "0", src: data.documentUrl, width: "100%", height: iFrameHeight }));
2350
+ // Wrap iFrame with container that shares the same height to push other elements down when absolute positioned
2351
+ return (index.h("div", { style: { height: iFrameHeight } },
2352
+ index.h("style", { type: "text/css" }, styleString$2),
2353
+ index.h("div", { class: classes.IFrameContainer },
2354
+ index.h("iframe", { scrolling: "yes", frameBorder: "0", width: "100%", src: data.documentUrl, height: iFrameHeight }))));
1875
2355
  };
1876
2356
 
1877
- const style$2 = {
2357
+ const style$3 = {
1878
2358
  FormWrapper: {
1879
2359
  display: "flex",
1880
2360
  justifyContent: "flex-start",
@@ -1987,9 +2467,9 @@ const style$2 = {
1987
2467
  fontSize: "var(--sl-font-size-medium)",
1988
2468
  },
1989
2469
  };
1990
- const sheet$2 = JSS.createStyleSheet(style$2);
1991
- const styleString$2 = sheet$2.toString();
1992
- const vanillaStyle$1 = `
2470
+ const sheet$3 = JSS.createStyleSheet(style$3);
2471
+ const styleString$3 = sheet$3.toString();
2472
+ const vanillaStyle$2 = `
1993
2473
  :host{
1994
2474
  display: block;
1995
2475
  }
@@ -2014,11 +2494,11 @@ const vanillaStyle$1 = `
2014
2494
  const DocusignFormView = (props) => {
2015
2495
  var _a;
2016
2496
  const { states, states: { formState, documentTypeString }, callbacks, text, slots, } = props;
2017
- const { classes } = sheet$2;
2497
+ const { classes } = sheet$3;
2018
2498
  return (index.h("div", { class: classes.Container },
2019
2499
  index.h("style", { type: "text/css" },
2020
- styleString$2,
2021
- vanillaStyle$1),
2500
+ styleString$3,
2501
+ vanillaStyle$2),
2022
2502
  index.h("div", { class: classes.TextContainer },
2023
2503
  index.h("div", null,
2024
2504
  !states.hideSteps && (index.h("p", null, global.intl.formatMessage({
@@ -2028,16 +2508,26 @@ const DocusignFormView = (props) => {
2028
2508
  index.h("h3", null, text.taxForm),
2029
2509
  index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
2030
2510
  states.loadingError && (index.h("div", null,
2031
- index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$2.classes.ErrorAlertContainer },
2511
+ index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$3.classes.ErrorAlertContainer },
2032
2512
  index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
2033
2513
  index.h("strong", null, text.error.loadingErrorAlertHeader),
2034
2514
  index.h("br", null),
2035
- text.error.loadingErrorAlertDescription))),
2036
- ((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$2.classes.ErrorAlertContainer },
2515
+ global.intl.formatMessage({
2516
+ id: "loadingErrorAlertDescription",
2517
+ defaultMessage: text.error.loadingErrorAlertDescription,
2518
+ }, {
2519
+ supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
2520
+ })))),
2521
+ ((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$3.classes.ErrorAlertContainer },
2037
2522
  index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
2038
2523
  index.h("strong", null, text.error.generalTitle),
2039
2524
  index.h("br", null),
2040
- text.error.generalDescription)),
2525
+ global.intl.formatMessage({
2526
+ id: "generalDescription",
2527
+ defaultMessage: text.error.generalDescription,
2528
+ }, {
2529
+ supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
2530
+ }))),
2041
2531
  index.h("div", null,
2042
2532
  index.h("div", null,
2043
2533
  index.h("h5", { class: classes.BoldText }, global.intl.formatMessage({ id: "tax-form-label", defaultMessage: text.taxFormLabel }, { documentType: documentTypeString })),
@@ -2076,6 +2566,10 @@ const DocusignForm = class {
2076
2566
  * @uiWidget textArea
2077
2567
  */
2078
2568
  this.taxFormDescription = "Participants based in the US need to submit a {documentType} form.";
2569
+ /**
2570
+ * @uiName Support link text
2571
+ */
2572
+ this.supportLink = "support team";
2079
2573
  /**
2080
2574
  * Displayed at the top of the page to individuals joining a US program who reside outside the country.
2081
2575
  * @uiName W-8 BEN tax form description
@@ -2119,7 +2613,7 @@ const DocusignForm = class {
2119
2613
  * @uiName Docusign form error message
2120
2614
  * @uiWidget textArea
2121
2615
  */
2122
- this.docusignError = "There was a problem displaying this form. Please refresh the page. If this problem continues, contact Support.";
2616
+ this.docusignError = "There was a problem displaying this form. Please refresh the page. If this problem continues, contact our {supportLink}.";
2123
2617
  /**
2124
2618
  * @uiName Refresh page button label
2125
2619
  */
@@ -2135,7 +2629,7 @@ const DocusignForm = class {
2135
2629
  * @uiName Form submission error message description
2136
2630
  * @uiWidget textArea
2137
2631
  */
2138
- this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact Support.";
2632
+ this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact our {supportLink}.";
2139
2633
  /**
2140
2634
  * Part of the alert displayed at the top of the page.
2141
2635
  * @uiName Page load error message title
@@ -2147,7 +2641,7 @@ const DocusignForm = class {
2147
2641
  * @uiName Page load error message description
2148
2642
  * @uiWidget textArea
2149
2643
  */
2150
- this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact Support.";
2644
+ this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact our {supportLink}.";
2151
2645
  /**
2152
2646
  * Displayed at the top of the page on all set up steps.
2153
2647
  * @uiName Page description
@@ -2244,7 +2738,7 @@ const DemoDocusignIframe = ({ callbacks }) => {
2244
2738
  } }, index.h("span", null, "Placeholder for docusign iframe"), index.h("div", { style: { display: "flex", gap: "8px" } }, index.h("sl-button", { type: "primary", submit: true, exportparts: "base: primarybutton-base", onClick: callbacks.demo.onBack }, "Back to Step 2"), index.h("sl-button", { type: "primary", submit: true, exportparts: "base: primarybutton-base", onClick: callbacks.demo.onSubmit }, "Continue to Step 4")))));
2245
2739
  };
2246
2740
 
2247
- const style$3 = {
2741
+ const style$4 = {
2248
2742
  FormWrapper: {
2249
2743
  display: "flex",
2250
2744
  justifyContent: "flex-start",
@@ -2332,11 +2826,9 @@ const style$3 = {
2332
2826
  border: "none",
2333
2827
  },
2334
2828
  "&::part(message)": {
2335
- display: "flex",
2336
2829
  alignItems: "center",
2337
- justifyContent: "flex-start",
2338
- padding: "10px",
2339
- height: "max-content",
2830
+ padding: "var(--sl-spacing-small)",
2831
+ whiteSpace: "nowrap",
2340
2832
  },
2341
2833
  "& sl-icon::part(base)": {
2342
2834
  color: "var(--sl-color-yellow-500)",
@@ -2352,9 +2844,9 @@ const style$3 = {
2352
2844
  marginBottom: "var(--sl-spacing-small)",
2353
2845
  },
2354
2846
  };
2355
- const sheet$3 = JSS.createStyleSheet(style$3);
2356
- const styleString$3 = sheet$3.toString();
2357
- const vanillaStyle$2 = `
2847
+ const sheet$4 = JSS.createStyleSheet(style$4);
2848
+ const styleString$4 = sheet$4.toString();
2849
+ const vanillaStyle$3 = `
2358
2850
  :host{
2359
2851
  display: block;
2360
2852
  }
@@ -2373,11 +2865,11 @@ const vanillaStyle$2 = `
2373
2865
  const IndirectTaxFormView = (props) => {
2374
2866
  var _a;
2375
2867
  const { states, states: { formState }, callbacks, text, refs, slots, } = props;
2376
- const { classes } = sheet$3;
2868
+ const { classes } = sheet$4;
2377
2869
  return (index.h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
2378
2870
  index.h("style", { type: "text/css" },
2379
- styleString$3,
2380
- vanillaStyle$2),
2871
+ styleString$4,
2872
+ vanillaStyle$3),
2381
2873
  index.h("div", { class: classes.TextContainer },
2382
2874
  index.h("div", null,
2383
2875
  !states.hideSteps && (index.h("p", null,
@@ -2390,21 +2882,36 @@ const IndirectTaxFormView = (props) => {
2390
2882
  index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription),
2391
2883
  index.h("p", { class: classes.DescriptionText }, text.indirectTaxDescription)),
2392
2884
  states.loadingError && (index.h("div", null,
2393
- index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$3.classes.AlertContainer },
2885
+ index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.AlertContainer },
2394
2886
  index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
2395
2887
  index.h("strong", null, text.error.loadingErrorAlertHeader),
2396
2888
  index.h("br", null),
2397
- text.error.loadingErrorAlertDescription))),
2398
- ((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$3.classes.AlertContainer },
2889
+ global.intl.formatMessage({
2890
+ id: "loadingErrorAlertDescription",
2891
+ defaultMessage: text.error.loadingErrorAlertDescription,
2892
+ }, {
2893
+ supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
2894
+ })))),
2895
+ ((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$4.classes.AlertContainer },
2399
2896
  index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
2400
2897
  index.h("strong", null, text.error.generalTitle),
2401
2898
  index.h("br", null),
2402
- text.error.generalDescription)),
2403
- states.isPartner && (index.h("sl-alert", { type: "primary", open: true, class: sheet$3.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
2899
+ global.intl.formatMessage({
2900
+ id: "generalDescription",
2901
+ defaultMessage: text.error.generalDescription,
2902
+ }, {
2903
+ supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
2904
+ }))),
2905
+ states.isPartner && (index.h("sl-alert", { type: "primary", open: true, class: sheet$4.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
2404
2906
  index.h("sl-icon", { slot: "icon", name: "info-circle" }),
2405
2907
  index.h("strong", null, text.isPartnerAlertHeader),
2406
2908
  index.h("br", null),
2407
- text.isPartnerAlertDescription)),
2909
+ global.intl.formatMessage({
2910
+ id: "isPartnerAlertDescription",
2911
+ defaultMessage: text.isPartnerAlertDescription,
2912
+ }, {
2913
+ supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
2914
+ }))),
2408
2915
  index.h("div", null,
2409
2916
  index.h("h4", null, text.indirectTaxDetails))),
2410
2917
  states.loading ? (index.h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } })) : (index.h("div", null,
@@ -2421,7 +2928,12 @@ const IndirectTaxFormView = (props) => {
2421
2928
  slots.registeredInDifferentCountryDetailsSlot)),
2422
2929
  index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "primary", open: true, class: classes.InfoAlert },
2423
2930
  index.h("sl-icon", { class: classes.InfoWarningIcon, slot: "icon", name: "exclamation-triangle" }),
2424
- text.cannotChangeInfoAlert),
2931
+ global.intl.formatMessage({
2932
+ id: "cannotChangeInfoAlert",
2933
+ defaultMessage: text.cannotChangeInfoAlert,
2934
+ }, {
2935
+ supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
2936
+ })),
2425
2937
  index.h("div", { class: classes.BtnContainer },
2426
2938
  index.h("sl-button", { type: "primary", disabled: states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton),
2427
2939
  index.h("sl-button", { class: classes.SecondaryBtn, type: "text", disabled: states.disabled, onClick: callbacks.onBack, exportparts: "base: secondarybutton-base" }, text.backButton))))));
@@ -2591,6 +3103,8 @@ function useIndirectTaxForm(props) {
2591
3103
  const resultPublisher = (_e = (_d = (_c = result
2592
3104
  .createImpactConnection) === null || _c === void 0 ? void 0 : _c.user) === null || _d === void 0 ? void 0 : _d.impactConnection) === null || _e === void 0 ? void 0 : _e.publisher;
2593
3105
  const hasValidCurrentDocument = sqmInvoiceTableView.validTaxDocument(resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) && (resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.currentTaxDocument);
3106
+ // Fire form change event
3107
+ window.dispatchEvent(new Event(usePayoutStatus.TAX_FORM_UPDATED_EVENT_KEY));
2594
3108
  if ((resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) &&
2595
3109
  !hasValidCurrentDocument) {
2596
3110
  // Go to docusign form
@@ -2749,7 +3263,7 @@ const IndirectTaxForm = class {
2749
3263
  * @uiName Submission confirmation alert
2750
3264
  * @uiWidget textArea
2751
3265
  */
2752
- this.cannotChangeInfoAlert = "Changes to your personal and indirect tax information can only be made through our Support team after you complete this step. Make sure these are correct before continuing.";
3266
+ this.cannotChangeInfoAlert = "Changes to your personal and indirect tax information can only be made through our {supportLink} after you complete this step. Make sure these are correct before continuing.";
2753
3267
  /**
2754
3268
  * @uiName Missing indirect tax number error message
2755
3269
  */
@@ -2775,11 +3289,15 @@ const IndirectTaxForm = class {
2775
3289
  * @uiName Participant is a partner alert description
2776
3290
  * @uiWidget textArea
2777
3291
  */
2778
- this.isPartnerAlertDescription = "If you don’t recognize this referral program provider or believe this is a mistake, please contact Support or sign up for this referral program with a different email.";
3292
+ this.isPartnerAlertDescription = "If you don’t recognize this referral program provider or believe this is a mistake, please contact our {supportLink} or sign up for this referral program with a different email.";
2779
3293
  /**
2780
3294
  * @uiName Continue button label
2781
3295
  */
2782
3296
  this.continueButton = "Continue";
3297
+ /**
3298
+ * @uiName Support link text
3299
+ */
3300
+ this.supportLink = "support team";
2783
3301
  /**
2784
3302
  * Part of the alert displayed at the top of the page.
2785
3303
  * @uiName Form submission error message title
@@ -2791,7 +3309,7 @@ const IndirectTaxForm = class {
2791
3309
  * @uiName Form submission error message description
2792
3310
  * @uiWidget textArea
2793
3311
  */
2794
- this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact Support.";
3312
+ this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact our {supportLink}.";
2795
3313
  /**
2796
3314
  * Part of the alert displayed at the top of the page.
2797
3315
  * @uiName Page load error message title
@@ -2803,7 +3321,7 @@ const IndirectTaxForm = class {
2803
3321
  * @uiName Page load error message description
2804
3322
  * @uiWidget textArea
2805
3323
  */
2806
- this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact Support.";
3324
+ this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact our {supportLink}.";
2807
3325
  /**
2808
3326
  * Displayed at the top of the page on all set up steps.
2809
3327
  * @uiName Page description
@@ -3359,7 +3877,7 @@ const PayPalIcon = () => (index.h("svg", { xmlns: "http://www.w3.org/2000/svg",
3359
3877
  index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M3.71826 -0.15332H9.30607C10.8808 -0.15332 12.7478 -0.099593 13.9903 1.00853C14.8208 1.754 15.2593 2.936 15.1597 4.21203C14.8142 8.52364 12.2694 10.9347 8.84762 10.9347H6.09026C5.61852 10.9347 5.31288 11.2503 5.18 12.0965L4.40926 17.0461C4.35611 17.3685 4.22323 17.5566 3.97739 17.5767H0.53567C0.156948 17.5767 0.0174187 17.2879 0.117082 16.6432L2.59539 0.786908C2.69505 0.148896 3.04055 -0.15332 3.71826 -0.15332Z", fill: "#113984" }),
3360
3878
  index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M5.25973 11.5995L6.23643 5.36045C6.32281 4.81646 6.61515 4.54782 7.20649 4.54782H12.7877C13.7112 4.54782 14.4554 4.69557 15.0401 4.96421C14.4819 8.799 12.0236 10.9347 8.80775 10.9347H6.06368C5.6916 10.9347 5.42583 11.1227 5.25973 11.5995Z", fill: "#172C70" })));
3361
3879
 
3362
- const style$4 = {
3880
+ const style$5 = {
3363
3881
  CardContainer: {
3364
3882
  display: "grid",
3365
3883
  gridTemplateColumns: "1fr",
@@ -3493,7 +4011,7 @@ const style$4 = {
3493
4011
  },
3494
4012
  };
3495
4013
  function PayoutDetailsCardView(props) {
3496
- const sheet = JSS.createStyleSheet(style$4);
4014
+ const sheet = JSS.createStyleSheet(style$5);
3497
4015
  const styleString = sheet.toString();
3498
4016
  const { classes } = sheet;
3499
4017
  const { states, text } = props;
@@ -3523,11 +4041,6 @@ function PayoutDetailsCardView(props) {
3523
4041
  });
3524
4042
  return (index.h("div", { class: classes.Container },
3525
4043
  index.h("style", { type: "text/css" }, styleString),
3526
- states.error && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", class: classes.Alert, type: "warning", open: true },
3527
- index.h("sl-icon", { slot: "icon", name: "exclamation-triangle" }),
3528
- index.h("div", { class: classes.AlertContent },
3529
- index.h("b", null, text.error.errorTitleText),
3530
- text.error.errorDescriptionText))),
3531
4044
  states.loading ? (renderLoadingSkeleton()) : (index.h("div", { class: classes.CardContainer },
3532
4045
  index.h("div", { class: classes.StatusContainer },
3533
4046
  index.h("p", { class: classes.SubduedRegularText }, states.badgeStatus === "thresholdPayout"
@@ -3623,16 +4136,6 @@ const PayoutDetailsCard = class {
3623
4136
  * @uiName Bank account field label
3624
4137
  */
3625
4138
  this.accountText = "Account";
3626
- /**
3627
- * Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
3628
- * @uiName Payout error message title
3629
- */
3630
- this.errorTitleText = "Your payout is on hold ";
3631
- /**
3632
- * Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
3633
- * @uiName Payout error message description
3634
- */
3635
- 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.";
3636
4139
  /**
3637
4140
  * Text displayed for existing publishers that do not have saved banking information.
3638
4141
  * @uiName Payout missing information subtext
@@ -3645,10 +4148,6 @@ const PayoutDetailsCard = class {
3645
4148
  const props = utils.getProps(this);
3646
4149
  return {
3647
4150
  ...props,
3648
- error: {
3649
- errorTitleText: this.errorTitleText,
3650
- errorDescriptionText: this.errorDescriptionText,
3651
- },
3652
4151
  };
3653
4152
  }
3654
4153
  render() {
@@ -3705,27 +4204,9 @@ const TableRow = class {
3705
4204
  }
3706
4205
  };
3707
4206
 
3708
- /**
3709
- * Util function for getting just the props with a certain prefix.
3710
- * @param props Text props on stencil component
3711
- * @param prefix Prefix denoting which group the text prop belongs to
3712
- * @returns A new object with all keys with the prefix provided. The prefix is removed from each key.
3713
- */
3714
- function extractProps(props, prefix) {
3715
- const keys = Object.keys(props).filter((k) => k.startsWith(prefix));
3716
- const formattedProps = keys.reduce((prev, k) => {
3717
- const key = k.replace(prefix, "");
3718
- return {
3719
- ...prev,
3720
- [key]: props[k],
3721
- };
3722
- }, {});
3723
- return formattedProps;
3724
- }
3725
-
3726
4207
  function getCurrentStep(user) {
3727
- var _a;
3728
- if (!((_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.connected)) {
4208
+ var _a, _b;
4209
+ if (!((_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.connected) || !((_b = user.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher)) {
3729
4210
  return "/1";
3730
4211
  }
3731
4212
  const { requiredTaxDocumentType, currentTaxDocument, withdrawalSettings, brandedSignup, } = user.impactConnection.publisher;
@@ -3980,13 +4461,15 @@ const TaxAndCashMonolith = class {
3980
4461
  * @uiName Terms and conditions link
3981
4462
  * @uiGroup Step 1 Properties
3982
4463
  */
3983
- this.step1_termsAndConditionsLink = "/payout-terms-and-conditions";
4464
+ this.step1_termsAndConditionsLink = "https://terms.advocate.impact.com/PayoutTermsAndConditions.html";
3984
4465
  /**
3985
4466
  * Placeholder text displayed in the currency search dropdown
3986
4467
  * @uiName Currency field placeholder text
3987
4468
  * @uiGroup Step 1 Properties
3988
4469
  */
3989
4470
  this.step1_searchForCurrencyText = "Search for currency..";
4471
+ /**
4472
+
3990
4473
  /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3991
4474
  STEP 2 PROPS:
3992
4475
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
@@ -4089,7 +4572,7 @@ const TaxAndCashMonolith = class {
4089
4572
  * @uiGroup Step 2 Properties
4090
4573
  * @uiWidget textArea
4091
4574
  */
4092
- this.step2_cannotChangeInfoAlert = "Changes to your personal and indirect tax information can only be made through our Support team after you complete this step. Make sure these are correct before continuing.";
4575
+ this.step2_cannotChangeInfoAlert = "Changes to your personal and indirect tax information can only be made through our {supportLink} after you complete this step. Make sure these are correct before continuing.";
4093
4576
  /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4094
4577
  STEP 3 PROPS:
4095
4578
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
@@ -4162,7 +4645,7 @@ const TaxAndCashMonolith = class {
4162
4645
  * @uiGroup Step 3 Properties
4163
4646
  * @uiWidget textArea
4164
4647
  */
4165
- this.step3_docusignError = "There was a problem displaying this form. Please refresh the page. If this problem continues, contact Support.";
4648
+ this.step3_docusignError = "There was a problem displaying this form. Please refresh the page. If this problem continues, contact our {supportLink}.";
4166
4649
  /**
4167
4650
  * @uiName Refresh page button label
4168
4651
  * @uiGroup Step 3 Properties
@@ -4387,6 +4870,16 @@ const TaxAndCashMonolith = class {
4387
4870
  * @uiGroup Step 4 Properties
4388
4871
  */
4389
4872
  this.step4_fxWireProcessingFeeLabel = "FX Wire (Processing Fee {currency}{defaultFxFee}.00)";
4873
+ /**
4874
+ * @uiName Text for verify email dialog
4875
+ * @uiGroup Step 4 Properties
4876
+ */
4877
+ this.step4_verifyEmailHeaderText = "Verify your email";
4878
+ /**
4879
+ * @uiName Verify code widget header text
4880
+ * @uiGroup Step 4 Properties
4881
+ */
4882
+ this.step4_verifyEmailDescriptionText = "Verify your email to update your payment settings. Enter the code sent to {email} from our referral provider, impact.com.";
4390
4883
  /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4391
4884
  DASHBOARD PROPS:
4392
4885
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
@@ -4524,7 +5017,7 @@ const TaxAndCashMonolith = class {
4524
5017
  * @uiGroup Dashboard Properties
4525
5018
  * @uiWidget textArea
4526
5019
  */
4527
- this.dashboard_indirectTaxTooltipSupport = "To make changes to your indirect tax information, please contact Support.";
5020
+ this.dashboard_indirectTaxTooltipSupport = "To make changes to your indirect tax information, please contact our {supportLink}.";
4528
5021
  /**
4529
5022
  * Displayed to participants who have submitted their indirect tax information.
4530
5023
  *
@@ -4547,7 +5040,7 @@ const TaxAndCashMonolith = class {
4547
5040
  * @uiGroup Dashboard Properties
4548
5041
  * @uiWidget textArea
4549
5042
  */
4550
- this.dashboard_notRegisteredForTax = "Not registered for indirect tax. If you’ve previously registered with your tax authority, contact Support to add your information to stay tax compliant.";
5043
+ this.dashboard_notRegisteredForTax = "Not registered for indirect tax. If you’ve previously registered with your tax authority, contact our {supportLink} to add your information to stay tax compliant.";
4551
5044
  /**
4552
5045
  * Displayed to participants registered in Quebec, Canada.
4553
5046
  * @uiName QST indirect tax details
@@ -4619,14 +5112,14 @@ const TaxAndCashMonolith = class {
4619
5112
  * @uiGroup Dashboard Properties
4620
5113
  * @uiWidget textArea
4621
5114
  */
4622
- this.dashboard_errorTitleText = "Your payout is on hold ";
5115
+ this.dashboard_payoutHoldAlertHeader = "Your payout is on hold";
4623
5116
  /**
4624
5117
  * Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
4625
5118
  * @uiName Payout error message description
4626
5119
  * @uiGroup Dashboard Properties
4627
5120
  * @uiWidget textArea
4628
5121
  */
4629
- 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.";
5122
+ this.dashboard_payoutHoldAlertDescription = "Please contact our {supportLink} or check your inbox for an email from our referral program provider, impact.com.";
4630
5123
  /**
4631
5124
  * Text displayed for existing publishers that do not have saved banking information.
4632
5125
  * @uiName Payout missing information subtext
@@ -4674,6 +5167,63 @@ const TaxAndCashMonolith = class {
4674
5167
  * @uiWidget textArea
4675
5168
  */
4676
5169
  this.dashboard_replaceTaxFormModalBodyText = "Submitting a new tax form will remove your existing form. Make sure to sign and complete your new tax form to prevent any issues with your next payout.";
5170
+ /**
5171
+ * Part of the alert displayed at the top of the page when the user needs to verify their identity.
5172
+ * @uiName Verification required alert message title
5173
+ * @uiGroup Dashboard Properties
5174
+ * @uiWidget textArea
5175
+ */
5176
+ this.dashboard_verificationRequiredHeader = "Verify your identity";
5177
+ /**
5178
+ * Part of the alert displayed at the top of the page when the user needs to verify their identity
5179
+ * @uiName Verification required alert message description
5180
+ * @uiGroup Dashboard Properties
5181
+ * @uiWidget textArea
5182
+ */
5183
+ this.dashboard_verificationRequiredDescription = "Complete your verification to start receiving your cash rewards. It should only take a few minutes verify. If you run in to an issue verifying your identity contact our {supportLink}.";
5184
+ /**
5185
+ * @uiName Verification required internal alert header
5186
+ * @uiGroup Dashboard Properties
5187
+ * @uiWidget textArea
5188
+ */
5189
+ this.dashboard_verificationRequiredInternalHeader = "Identity Verification in Progress";
5190
+ /**
5191
+ * @uiName Verification required internal alert description
5192
+ * @uiGroup Dashboard Properties
5193
+ * @uiWidget textArea
5194
+ */
5195
+ this.dashboard_verificationRequiredInternalDescription = "Identity verification submission has been received. Our system is currently performing additional checks and analyzing the results. You will be updated shortly. If you don't hear from us contact our {supportLink}.";
5196
+ /**
5197
+ * @uiName Verification review internal alert header
5198
+ * @uiGroup Dashboard Properties
5199
+ * @uiWidget textArea
5200
+ */
5201
+ this.dashboard_verificationReviewInternalHeader = "Identity Verification Under Review";
5202
+ /**
5203
+ * @uiName Verification review internal alert description
5204
+ * @uiGroup Dashboard Properties
5205
+ * @uiWidget textArea
5206
+ */
5207
+ this.dashboard_verificationReviewInternalDescription = "Identity verification requires further review due to a potential error. Our team is reviewing the information and will update you shortly. If you don't hear from us contact our {supportLink}.";
5208
+ /**
5209
+ * @uiName Verification failed internal alert header
5210
+ * @uiGroup Dashboard Properties
5211
+ * @uiWidget textArea
5212
+ */
5213
+ this.dashboard_verificationFailedInternalHeader = "Identity Verification Unsuccessful";
5214
+ /**
5215
+ * @uiName Verification failed internal alert description
5216
+ * @uiGroup Dashboard Properties
5217
+ * @uiWidget textArea
5218
+ */
5219
+ this.dashboard_verificationFailedInternalDescription = "Identity verification has failed. Our team is reviewing the report and will contact you with further information. If you don't hear from us contact our {supportLink}.";
5220
+ /**
5221
+ * Part of the alert displayed at the top of the page when the user needs to verify their identity.
5222
+ * @uiName Verification required alert button text
5223
+ * @uiGroup Dashboard Properties
5224
+ * @uiWidget textArea
5225
+ */
5226
+ this.dashboard_verificationRequiredButtonText = "Start Verification";
4677
5227
  /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4678
5228
  GENERAL PROPS:
4679
5229
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
@@ -4695,7 +5245,7 @@ const TaxAndCashMonolith = class {
4695
5245
  * @uiGroup General Form Properties
4696
5246
  * @uiWidget textArea
4697
5247
  */
4698
- this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact Support.";
5248
+ this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact our {supportLink}.";
4699
5249
  /**
4700
5250
  * Displayed under a field that is missing required information.
4701
5251
  * @uiName Empty form field error message
@@ -4742,7 +5292,7 @@ const TaxAndCashMonolith = class {
4742
5292
  * @uiGroup General Form Properties
4743
5293
  * @uiWidget textArea
4744
5294
  */
4745
- this.isPartnerAlertDescription = "If you don’t recognize this referral program provider or believe this is a mistake, please contact Support or sign up for this referral program with a different email.";
5295
+ this.isPartnerAlertDescription = "If you don’t recognize this referral program provider or believe this is a mistake, please contact our {supportLink} or sign up for this referral program with a different email.";
4746
5296
  /**
4747
5297
  * Placeholder text displayed in the country search dropdown
4748
5298
  * @uiName Country field placeholder text
@@ -4762,13 +5312,19 @@ const TaxAndCashMonolith = class {
4762
5312
  * @uiGroup General Form Properties
4763
5313
  * @uiWidget textArea
4764
5314
  */
4765
- this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact Support.";
5315
+ this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact our {supportLink}.";
4766
5316
  /**
4767
5317
  * Displayed at the top of the page on all set up steps.
4768
5318
  * @uiName Page description
4769
5319
  * @uiGroup General Form Properties
4770
5320
  */
4771
5321
  this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
5322
+ /**
5323
+ * Link text for contacting support team
5324
+ * @uiName Suport link text
5325
+ * @uiGroup General Form Properties
5326
+ */
5327
+ this.supportLink = "support team";
4772
5328
  stencilHooks_module.h$1(this);
4773
5329
  }
4774
5330
  disconnectedCallback() { }
@@ -4776,7 +5332,7 @@ const TaxAndCashMonolith = class {
4776
5332
  getGeneralStepTextProps(prefix) {
4777
5333
  const props = utils.getProps(this);
4778
5334
  return {
4779
- ...extractProps(props, prefix),
5335
+ ...extractProps.extractProps(props, prefix),
4780
5336
  generalErrorTitle: props.generalErrorTitle,
4781
5337
  generalErrorDescription: props.generalErrorDescription,
4782
5338
  fieldRequiredError: props.fieldRequiredError,
@@ -4792,6 +5348,7 @@ const TaxAndCashMonolith = class {
4792
5348
  taxAndPayoutsDescription: props.taxAndPayoutsDescription,
4793
5349
  searchForCountryText: props.searchForCountryText,
4794
5350
  formStep: props.formStep,
5351
+ supportLink: props.supportLink,
4795
5352
  };
4796
5353
  }
4797
5354
  render() {
@@ -4834,12 +5391,47 @@ function useDemoTaxAndCash(props) {
4834
5391
  }, props.demoData || {}, { arrayMerge: (_, a) => a });
4835
5392
  }
4836
5393
 
4837
- const style$5 = {
4838
- WarningAlertContainer: {
5394
+ const style$6 = {
5395
+ ErrorAlertContainer: {
4839
5396
  "&::part(base)": {
4840
5397
  backgroundColor: "var(--sl-color-red-100)",
4841
5398
  borderTop: "none",
4842
5399
  },
5400
+ "& sl-icon::part(base)": {
5401
+ color: "var(--sl-color-danger-500)",
5402
+ },
5403
+ },
5404
+ WarningAlertContainer: {
5405
+ "&::part(base)": {
5406
+ backgroundColor: "var(--sl-color-yellow-100)",
5407
+ borderTop: "none",
5408
+ maxWidth: "600px",
5409
+ },
5410
+ "& sl-icon::part(base)": {
5411
+ color: "var(--sl-color-warning-500)",
5412
+ },
5413
+ },
5414
+ WarningHoldAlertContainer: {
5415
+ marginLeft: "-20px",
5416
+ "&::part(base)": {
5417
+ maxWidth: "850px",
5418
+ border: "none",
5419
+ backgroundColor: "transparent",
5420
+ },
5421
+ "& sl-icon::part(base)": {
5422
+ color: "var(--sl-color-warning-500)",
5423
+ },
5424
+ },
5425
+ ErrorHoldAlertContainer: {
5426
+ marginLeft: "-20px",
5427
+ "&::part(base)": {
5428
+ maxWidth: "850px",
5429
+ border: "none",
5430
+ backgroundColor: "transparent",
5431
+ },
5432
+ "& sl-icon::part(base)": {
5433
+ color: "var(--sl-color-danger-500)",
5434
+ },
4843
5435
  },
4844
5436
  ExpiringSoonAlertContainer: {
4845
5437
  "&::part(base)": {
@@ -4960,6 +5552,7 @@ const style$5 = {
4960
5552
  PageDescriptionText: {
4961
5553
  color: "var(--sl-color-neutral-500)",
4962
5554
  fontSize: "var(--sl-font-size-medium)",
5555
+ marginTop: "0",
4963
5556
  },
4964
5557
  Dialog: {
4965
5558
  "&::part(panel)": {
@@ -4989,13 +5582,86 @@ const style$5 = {
4989
5582
  },
4990
5583
  DialogButton: { margin: "auto", width: "100%" },
4991
5584
  };
4992
- const sheet$4 = JSS.createStyleSheet(style$5);
4993
- const styleString$4 = sheet$4.toString();
5585
+ const sheet$5 = JSS.createStyleSheet(style$6);
5586
+ const styleString$5 = sheet$5.toString();
4994
5587
  const TaxAndCashDashboardView = (props) => {
4995
- var _a;
5588
+ var _a, _b, _c, _d;
4996
5589
  const { states, text, callbacks, slots } = props;
5590
+ function getAlert(status) {
5591
+ switch (status) {
5592
+ case "VERIFICATION:REQUIRED":
5593
+ return {
5594
+ header: text.verificationRequiredHeader,
5595
+ description: global.intl.formatMessage({
5596
+ id: "verificationRequiredDescription",
5597
+ defaultMessage: text.verificationRequiredDescription,
5598
+ }, {
5599
+ supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
5600
+ }),
5601
+ buttonText: text.verificationRequiredButtonText,
5602
+ alertType: "warning",
5603
+ icon: "exclamation-triangle",
5604
+ class: sheet$5.classes.WarningHoldAlertContainer,
5605
+ };
5606
+ case "VERIFICATION:INTERNAL":
5607
+ return {
5608
+ header: text.verificationRequiredInternalHeader,
5609
+ description: global.intl.formatMessage({
5610
+ id: "verificationRequiredInternalDescription",
5611
+ defaultMessage: text.verificationRequiredInternalDescription,
5612
+ }, {
5613
+ supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
5614
+ }),
5615
+ alertType: "warning",
5616
+ icon: "exclamation-triangle",
5617
+ class: sheet$5.classes.WarningHoldAlertContainer,
5618
+ };
5619
+ case "VERIFICATION:REVIEW":
5620
+ return {
5621
+ header: text.verificationReviewInternalHeader,
5622
+ description: global.intl.formatMessage({
5623
+ id: "verificationReviewInternalDescription",
5624
+ defaultMessage: text.verificationReviewInternalDescription,
5625
+ }, {
5626
+ supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
5627
+ }),
5628
+ alertType: "warning",
5629
+ icon: "exclamation-triangle",
5630
+ class: sheet$5.classes.WarningHoldAlertContainer,
5631
+ };
5632
+ case "VERIFICATION:FAILED":
5633
+ return {
5634
+ header: text.verificationFailedInternalHeader,
5635
+ description: global.intl.formatMessage({
5636
+ id: "verificationFailedInternalDescription",
5637
+ defaultMessage: text.verificationFailedInternalDescription,
5638
+ }, {
5639
+ supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
5640
+ }),
5641
+ alertType: "critical",
5642
+ icon: "exclamation-octagon",
5643
+ class: sheet$5.classes.ErrorHoldAlertContainer,
5644
+ };
5645
+ case "HOLD":
5646
+ return {
5647
+ header: text.payoutHoldAlertHeader,
5648
+ description: global.intl.formatMessage({
5649
+ id: "payoutHoldAlertDescription",
5650
+ defaultMessage: text.payoutHoldAlertDescription,
5651
+ }, {
5652
+ supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
5653
+ }),
5654
+ buttonText: null,
5655
+ alertType: "warning",
5656
+ icon: "exclamation-triangle",
5657
+ class: sheet$5.classes.WarningHoldAlertContainer,
5658
+ };
5659
+ default:
5660
+ return;
5661
+ }
5662
+ }
4997
5663
  const statusMap = {
4998
- NOT_VERIFIED: (index.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
5664
+ NOT_VERIFIED: (index.h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
4999
5665
  index.h("sl-badge", { type: "warning", pill: true }, text.statusTextNotVerified),
5000
5666
  index.h("p", null, global.intl.formatMessage({
5001
5667
  id: `badgeTextAwaitingReview`,
@@ -5003,7 +5669,7 @@ const TaxAndCashDashboardView = (props) => {
5003
5669
  }, {
5004
5670
  dateSubmitted: states.dateSubmitted,
5005
5671
  })))),
5006
- ACTIVE: (index.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
5672
+ ACTIVE: (index.h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
5007
5673
  index.h("sl-badge", { type: "success", pill: true }, text.statusTextActive),
5008
5674
  index.h("p", null, global.intl.formatMessage({
5009
5675
  id: `badgeTextSubmittedOn`,
@@ -5013,12 +5679,12 @@ const TaxAndCashDashboardView = (props) => {
5013
5679
  }, {
5014
5680
  dateSubmitted: states.dateSubmitted,
5015
5681
  })))),
5016
- INACTIVE: (index.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
5682
+ INACTIVE: (index.h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
5017
5683
  index.h("sl-badge", { type: "danger", pill: true }, text.statusTextNotActive),
5018
5684
  index.h("p", null, text.invalidForm))),
5019
5685
  };
5020
5686
  const alertMap = {
5021
- INACTIVE: (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.WarningAlertContainer },
5687
+ INACTIVE: (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.ErrorAlertContainer },
5022
5688
  index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
5023
5689
  index.h("strong", null, global.intl.formatMessage({
5024
5690
  id: `taxAlertHeaderNotActive`,
@@ -5068,56 +5734,76 @@ const TaxAndCashDashboardView = (props) => {
5068
5734
  };
5069
5735
  return (index.h("div", null,
5070
5736
  index.h("div", null,
5071
- index.h("style", { type: "text/css" }, styleString$4),
5737
+ index.h("style", { type: "text/css" }, styleString$5),
5072
5738
  states.loadingError && (index.h("div", null,
5073
- index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.WarningAlertContainer },
5739
+ index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.ErrorAlertContainer },
5074
5740
  index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
5075
5741
  index.h("strong", null, text.error.loadingErrorAlertHeader),
5076
5742
  index.h("br", null),
5077
- text.error.loadingErrorAlertDescription))),
5078
- ((_a = states.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.WarningAlertContainer },
5743
+ global.intl.formatMessage({
5744
+ id: "loadingErrorAlertDescription",
5745
+ defaultMessage: text.error.loadingErrorAlertDescription,
5746
+ }, {
5747
+ supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
5748
+ })))),
5749
+ ((_a = states.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.ErrorAlertContainer },
5079
5750
  index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
5080
5751
  index.h("strong", null, text.error.generalTitle),
5081
5752
  index.h("br", null),
5082
- text.error.generalDescription)),
5083
- index.h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet$4.classes.Dialog, open: states.showNewFormDialog, "onSl-hide": callbacks.onNewFormCancel },
5753
+ global.intl.formatMessage({
5754
+ id: "generalDescription",
5755
+ defaultMessage: text.error.generalDescription,
5756
+ }, {
5757
+ supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
5758
+ }))),
5759
+ getAlert(states.payoutStatus) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", name: (_b = getAlert(states.payoutStatus)) === null || _b === void 0 ? void 0 : _b.alertType, open: true, class: (_c = getAlert(states.payoutStatus)) === null || _c === void 0 ? void 0 : _c.class },
5760
+ index.h("sl-icon", { slot: "icon", name: (_d = getAlert(states.payoutStatus)) === null || _d === void 0 ? void 0 : _d.icon }),
5761
+ index.h("strong", null, getAlert(states.payoutStatus).header),
5762
+ index.h("p", { style: { margin: "0" } }, getAlert(states.payoutStatus).description),
5763
+ getAlert(states.payoutStatus).buttonText && (index.h("sl-button", { style: { marginTop: "var(--sl-spacing-x-small)" }, type: "default", loading: states.veriffLoading, onClick: () => callbacks.onVerifyClick() }, getAlert(states.payoutStatus).buttonText)))),
5764
+ index.h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet$5.classes.Dialog, open: states.showNewFormDialog, "onSl-hide": callbacks.onNewFormCancel },
5084
5765
  index.h("p", null, text.replaceTaxFormModalBodyText),
5085
- index.h("sl-button", { slot: "footer", type: "primary", class: sheet$4.classes.DialogButton, onClick: callbacks.onNewFormClick }, text.newFormButton),
5086
- index.h("sl-button", { slot: "footer", type: "default", class: sheet$4.classes.DialogButton, onClick: callbacks.onNewFormCancel }, text.cancelButton)),
5766
+ index.h("sl-button", { slot: "footer", type: "primary", class: sheet$5.classes.DialogButton, onClick: callbacks.onNewFormClick }, text.newFormButton),
5767
+ index.h("sl-button", { slot: "footer", type: "default", class: sheet$5.classes.DialogButton, onClick: callbacks.onNewFormCancel }, text.cancelButton)),
5087
5768
  states.status === "INACTIVE" && alertMap[states.status],
5088
5769
  index.h("div", null,
5089
- index.h("h3", null, text.bankingInformationSectionHeader),
5090
- index.h("p", { class: sheet$4.classes.PageDescriptionText }, text.taxAndPayoutsDescription),
5091
- index.h("div", { class: sheet$4.classes.BankingInformationContainer },
5770
+ index.h("h3", { style: { marginBottom: "0" } }, text.bankingInformationSectionHeader),
5771
+ index.h("p", { class: sheet$5.classes.PageDescriptionText }, text.taxAndPayoutsDescription),
5772
+ index.h("div", { class: sheet$5.classes.BankingInformationContainer },
5092
5773
  slots.payoutDetailsCardSlot,
5093
- !states.loading && (index.h("p", { class: sheet$4.classes.DescriptionText }, text.payoutFromImpact)),
5094
- states.canEditPayoutInfo && (index.h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$4.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
5095
- index.h("div", { class: sheet$4.classes.TaxDocumentsContainer },
5096
- index.h("div", null, states.loading ? (index.h("div", { class: sheet$4.classes.TaxSectionSkeletonContainer },
5097
- index.h("sl-skeleton", { class: sheet$4.classes.SkeletonOne }),
5098
- index.h("sl-skeleton", { class: sheet$4.classes.SkeletonTwo }))) : (index.h("div", null, states.noFormNeeded ? (index.h("div", null,
5099
- index.h("h3", { class: sheet$4.classes.TaxDocumentsSectionHeaderContainer }, text.taxDocumentSectionHeader),
5100
- index.h("p", { class: sheet$4.classes.TaxDocSubtext }, text.noFormNeededSubtext))) : (index.h("div", null,
5101
- index.h("span", { class: sheet$4.classes.TaxFormDetailsContainer },
5102
- index.h("div", { class: sheet$4.classes.StatusContainer },
5774
+ !states.loading && (index.h("p", { class: sheet$5.classes.DescriptionText }, text.payoutFromImpact)),
5775
+ states.canEditPayoutInfo && (index.h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$5.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
5776
+ index.h("div", { class: sheet$5.classes.TaxDocumentsContainer },
5777
+ index.h("div", null, states.loading ? (index.h("div", { class: sheet$5.classes.TaxSectionSkeletonContainer },
5778
+ index.h("sl-skeleton", { class: sheet$5.classes.SkeletonOne }),
5779
+ index.h("sl-skeleton", { class: sheet$5.classes.SkeletonTwo }))) : (index.h("div", null, states.noFormNeeded ? (index.h("div", null,
5780
+ index.h("h3", { class: sheet$5.classes.TaxDocumentsSectionHeaderContainer }, text.taxDocumentSectionHeader),
5781
+ index.h("p", { class: sheet$5.classes.TaxDocSubtext }, text.noFormNeededSubtext))) : (index.h("div", null,
5782
+ index.h("span", { class: sheet$5.classes.TaxFormDetailsContainer },
5783
+ index.h("div", { class: sheet$5.classes.StatusContainer },
5103
5784
  index.h("h3", null, global.intl.formatMessage({
5104
5785
  id: "section-subheader",
5105
5786
  defaultMessage: text.taxDocumentSectionSubHeader,
5106
5787
  }, {
5107
5788
  documentType: states.documentTypeString,
5108
5789
  })),
5109
- index.h("span", { class: sheet$4.classes.StatusAlert }, statusMap[states.status]))),
5110
- states.status !== "NOT_VERIFIED" && (index.h("sl-button", { disabled: states.disabled || states.loading, onClick: callbacks.onClick, type: "default", class: sheet$4.classes.NewFormButton, exportparts: "base: primarybutton-base" }, text.newFormButton)))))))),
5111
- index.h("div", { class: sheet$4.classes.IndirectTaxPreviewContainer }, states.loading ? (index.h("div", { class: sheet$4.classes.TaxSectionSkeletonContainer },
5112
- index.h("sl-skeleton", { class: sheet$4.classes.SkeletonOne }),
5113
- index.h("sl-skeleton", { class: sheet$4.classes.SkeletonTwo }))) : (index.h("div", null,
5114
- index.h("h3", { class: sheet$4.classes.IndirectTaxPreviewHeaderContainer },
5790
+ index.h("span", { class: sheet$5.classes.StatusAlert }, statusMap[states.status]))),
5791
+ states.status !== "NOT_VERIFIED" && (index.h("sl-button", { disabled: states.disabled || states.loading, onClick: callbacks.onClick, type: "default", class: sheet$5.classes.NewFormButton, exportparts: "base: primarybutton-base" }, text.newFormButton)))))))),
5792
+ index.h("div", { class: sheet$5.classes.IndirectTaxPreviewContainer }, states.loading ? (index.h("div", { class: sheet$5.classes.TaxSectionSkeletonContainer },
5793
+ index.h("sl-skeleton", { class: sheet$5.classes.SkeletonOne }),
5794
+ index.h("sl-skeleton", { class: sheet$5.classes.SkeletonTwo }))) : (index.h("div", null,
5795
+ index.h("h3", { class: sheet$5.classes.IndirectTaxPreviewHeaderContainer },
5115
5796
  text.indirectTaxInfoSectionHeader,
5116
- index.h("sl-tooltip", { trigger: "hover", placement: "top", content: text.indirectTaxTooltipSupport, class: sheet$4.classes.TooltipContainer },
5117
- index.h("sl-icon", { name: "info-circle", class: sheet$4.classes.ToolTip }))),
5118
- index.h("div", { class: sheet$4.classes.IndirectTaxPreviewDetails },
5119
- index.h("span", null, states.notRegistered ? (index.h("span", { class: sheet$4.classes.NotRegisteredIndirectTaxText }, text.notRegisteredForTax)) : (getIndirectTaxRegisteredIn())),
5120
- !states.notRegistered && (index.h("div", { class: sheet$4.classes.TaxNumberContainer },
5797
+ index.h("sl-tooltip", { trigger: "hover", placement: "top", content: text.indirectTaxTooltipSupport, class: sheet$5.classes.TooltipContainer },
5798
+ index.h("sl-icon", { name: "info-circle", class: sheet$5.classes.ToolTip }))),
5799
+ index.h("div", { class: sheet$5.classes.IndirectTaxPreviewDetails },
5800
+ index.h("span", null, states.notRegistered ? (index.h("span", { class: sheet$5.classes.NotRegisteredIndirectTaxText }, global.intl.formatMessage({
5801
+ id: "notRegisteredForTax",
5802
+ defaultMessage: text.notRegisteredForTax,
5803
+ }, {
5804
+ supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
5805
+ }))) : (getIndirectTaxRegisteredIn())),
5806
+ !states.notRegistered && (index.h("div", { class: sheet$5.classes.TaxNumberContainer },
5121
5807
  index.h("span", null, global.intl.formatMessage({
5122
5808
  id: `indirectTaxDetails`,
5123
5809
  defaultMessage: text.indirectTaxDetails,
@@ -5140,7 +5826,7 @@ const TaxAndCashDashboardView = (props) => {
5140
5826
  }, {
5141
5827
  subRegionTaxNumber: states.subRegionTaxNumber,
5142
5828
  })))),
5143
- !states.notRegistered && (index.h("div", { class: sheet$4.classes.InvoiceTableContainer },
5829
+ !states.notRegistered && (index.h("div", { class: sheet$5.classes.InvoiceTableContainer },
5144
5830
  index.h("sqm-invoice-table", { description: text.invoiceDescription, "prev-label": text.invoicePrevLabel, "more-label": text.invoiceMoreLabel, header: text.invoiceHeader, "empty-state-header": text.invoiceEmptyStateHeader, "empty-state-text": text.invoiceEmptyStateText },
5145
5831
  index.h("sqm-invoice-table-download-column", null),
5146
5832
  index.h("sqm-invoice-table-date-column", { "column-title": text.dateColumnTitle }),
@@ -5185,16 +5871,17 @@ function getIndirectTaxType(taxInformation) {
5185
5871
  return "Indirect Tax";
5186
5872
  }
5187
5873
  const useTaxAndCashDashboard = (props) => {
5188
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
5874
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
5189
5875
  const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
5190
5876
  const setContext = index_module.En(TAX_FORM_CONTEXT_NAMESPACE);
5191
5877
  const [showDialog, setShowDialog] = stencilHooks_module.useState(false);
5878
+ const { render, loading: veriffLoading, errors: veriffErrors, } = usePayoutStatus.useVeriffApp();
5192
5879
  const locale = index_module.L();
5193
5880
  stencilHooks_module.useEffect(() => {
5194
5881
  // Clear override context once on submitted
5195
5882
  setContext({});
5196
5883
  }, []);
5197
- const { data, loading, errors: userError, } = index_module.$n(USER_QUERY_NAMESPACE);
5884
+ const { data, loading, errors: userError, refetch, } = index_module.$n(USER_QUERY_NAMESPACE);
5198
5885
  const publisher = (_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;
5199
5886
  const documentType = publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType;
5200
5887
  const submissionDate = (_c = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _c === void 0 ? void 0 : _c.dateCreated;
@@ -5219,6 +5906,14 @@ const useTaxAndCashDashboard = (props) => {
5219
5906
  setStep("/3");
5220
5907
  };
5221
5908
  const provinceName = (_d = sqmInvoiceTableView.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;
5909
+ const payoutStatus = data ? usePayoutStatus.getStatus(data) : null;
5910
+ stencilHooks_module.useEffect(() => {
5911
+ const cb = () => refetch();
5912
+ window.addEventListener(usePayoutStatus.VERIFF_COMPLETE_EVENT_KEY, cb);
5913
+ return () => {
5914
+ window.removeEventListener(usePayoutStatus.VERIFF_COMPLETE_EVENT_KEY, cb);
5915
+ };
5916
+ }, []);
5222
5917
  return {
5223
5918
  states: {
5224
5919
  dateSubmitted,
@@ -5240,9 +5935,13 @@ const useTaxAndCashDashboard = (props) => {
5240
5935
  loading,
5241
5936
  loadingError: !!(userError === null || userError === void 0 ? void 0 : userError.message),
5242
5937
  showNewFormDialog: showDialog,
5938
+ hasHold: !!((_m = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _m === void 0 ? void 0 : _m.hold),
5939
+ payoutStatus,
5940
+ veriffLoading,
5243
5941
  },
5244
5942
  callbacks: {
5245
5943
  onClick: () => setShowDialog(true),
5944
+ onVerifyClick: () => render(),
5246
5945
  onEditPayoutInfo,
5247
5946
  onNewFormCancel: () => setShowDialog(false),
5248
5947
  onNewFormClick,
@@ -5368,7 +6067,7 @@ const TaxAndCashDashboard = class {
5368
6067
  * @uiName Indirect tax tooltip
5369
6068
  * @uiWidget textArea
5370
6069
  */
5371
- this.indirectTaxTooltipSupport = "To make changes to your indirect tax information, please contact Support.";
6070
+ this.indirectTaxTooltipSupport = "To make changes to your indirect tax information, please contact our Support team.";
5372
6071
  /**
5373
6072
  * Displayed to participants who have submitted their indirect tax information.
5374
6073
  *
@@ -5388,7 +6087,7 @@ const TaxAndCashDashboard = class {
5388
6087
  * @uiName Not registered for indirect tax text
5389
6088
  * @uiWidget textArea
5390
6089
  */
5391
- this.notRegisteredForTax = "Not registered for indirect tax. If you’ve previously registered with your tax authority, contact Support to add your information to stay tax compliant.";
6090
+ this.notRegisteredForTax = "Not registered for indirect tax. If you’ve previously registered with your tax authority, contact our {supportLink} to add your information to stay tax compliant.";
5392
6091
  /**
5393
6092
  * Displayed to participants registered in Quebec, Canada.
5394
6093
  * @uiName QST indirect tax details
@@ -5417,18 +6116,59 @@ const TaxAndCashDashboard = class {
5417
6116
  * @uiName Payout error message title
5418
6117
  * @uiWidget textArea
5419
6118
  */
5420
- this.errorTitleText = "Your payout is on hold ";
6119
+ this.payoutHoldAlertHeader = "Your payout is on hold";
5421
6120
  /**
5422
6121
  * Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
5423
6122
  * @uiName Payout error message description
5424
6123
  * @uiWidget textArea
5425
6124
  */
5426
- 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.";
6125
+ this.payoutHoldAlertDescription = "Please contact our {supportLink} or check your inbox for an email from our referral program provider, impact.com.";
5427
6126
  /**
5428
6127
  * Text displayed for existing publishers that do not have saved banking information.
5429
6128
  * @uiName Payout missing information subtext
5430
6129
  */
5431
6130
  this.payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
6131
+ /**
6132
+ * Part of the alert displayed at the top of the page when the user needs to verify their identity.
6133
+ * @uiName Verification required alert message title
6134
+ * @uiWidget textArea
6135
+ */
6136
+ this.verificationRequiredHeader = "Verify your identity";
6137
+ /**
6138
+ * Part of the alert displayed at the top of the page when the user needs to verify their identity
6139
+ * @uiName Verification required alert message description
6140
+ * @uiWidget textArea
6141
+ */
6142
+ this.verificationRequiredDescription = "Complete your verification to start receiving your cash rewards. It should only take a few minutes verify. If you run in to an issue verifying your identity contact our {supportLink}.";
6143
+ /**
6144
+ * @uiName Verification required internal alert header
6145
+ */
6146
+ this.verificationRequiredInternalHeader = "Identity Verification in Progress";
6147
+ /**
6148
+ * @uiName Verification required internal alert description
6149
+ */
6150
+ this.verificationRequiredInternalDescription = "Identity verification submission has been received. Our system is currently performing additional checks and analyzing the results. You will be updated shortly. If you don't hear from us contact our {supportLink}.";
6151
+ /**
6152
+ * @uiName Verification review internal alert header
6153
+ */
6154
+ this.verificationReviewInternalHeader = "Identity Verification Under Review";
6155
+ /**
6156
+ * @uiName Verification review internal alert description
6157
+ */
6158
+ this.verificationReviewInternalDescription = "Identity verification requires further review due to a potential error. Our team is reviewing the information and will update you shortly. If you don't hear from us contact our {supportLink}.";
6159
+ /**
6160
+ * @uiName Verification failed internal alert header
6161
+ */
6162
+ this.verificationFailedInternalHeader = "Identity Verification Unsuccessful";
6163
+ /**
6164
+ * @uiName Verification failed internal alert description
6165
+ */
6166
+ this.verificationFailedInternalDescription = "Identity verification has failed. Our team is reviewing the report and will contact you with further information. If you don't hear from us contact our {supportLink}.";
6167
+ /**
6168
+ * Part of the alert displayed at the top of the page when the user needs to verify their identity.
6169
+ * @uiName Verification required alert button text
6170
+ */
6171
+ this.verificationRequiredButtonText = "Start Verification";
5432
6172
  /**
5433
6173
  * Part of the alert displayed at the top of the page.
5434
6174
  * @uiName Form submission error message title
@@ -5440,7 +6180,7 @@ const TaxAndCashDashboard = class {
5440
6180
  * @uiName Form submission error message description
5441
6181
  * @uiWidget textArea
5442
6182
  */
5443
- this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact Support.";
6183
+ this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact our {supportLink}.";
5444
6184
  /**
5445
6185
  * Displayed under the payout details card.
5446
6186
  * @uiName Payout from impact text
@@ -5458,7 +6198,7 @@ const TaxAndCashDashboard = class {
5458
6198
  * @uiName Page load error message description
5459
6199
  * @uiWidget textArea
5460
6200
  */
5461
- this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact Support.";
6201
+ this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact our {supportLink}.";
5462
6202
  /**
5463
6203
  * Part of the Invoice table displayed at the bottom of the page.
5464
6204
  * @uiName Invoice number column title
@@ -5509,6 +6249,10 @@ const TaxAndCashDashboard = class {
5509
6249
  * @uiName Replace tax form modal body text
5510
6250
  */
5511
6251
  this.replaceTaxFormModalBodyText = "Submitting a new tax form will remove your existing form. Make sure to sign and complete your new tax form to prevent any issues with your next payout.";
6252
+ /**
6253
+ * @uiName Support link text
6254
+ */
6255
+ this.supportLink = "support team";
5512
6256
  /**
5513
6257
  * @uiName Cancel button label
5514
6258
  */
@@ -5551,12 +6295,17 @@ function useDemoTaxAndCashDashboard(props) {
5551
6295
  disabled: false,
5552
6296
  loading: false,
5553
6297
  showNewFormDialog: false,
6298
+ hasHold: false,
6299
+ showVerifyIdentity: false,
6300
+ payoutStatus: "DONE",
6301
+ veriffLoading: false,
5554
6302
  },
5555
6303
  callbacks: {
5556
6304
  onClick: () => console.debug("check step"),
5557
6305
  onEditPayoutInfo: () => console.debug("payout info"),
5558
6306
  onNewFormCancel: () => console.log("hide"),
5559
6307
  onNewFormClick: () => console.log("show"),
6308
+ onVerifyClick: () => console.log("verify"),
5560
6309
  },
5561
6310
  text: props.getTextProps(),
5562
6311
  }, props.demoData || {}, { arrayMerge: (_, a) => a });
@@ -6533,7 +7282,7 @@ const PHONE_EXTENSIONS = {
6533
7282
  },
6534
7283
  };
6535
7284
 
6536
- const style$6 = {
7285
+ const style$7 = {
6537
7286
  FormWrapper: {},
6538
7287
  ErrorInput: {
6539
7288
  "&::part(base)": {
@@ -6613,7 +7362,6 @@ const style$6 = {
6613
7362
  },
6614
7363
  PhoneInputsSection: {
6615
7364
  display: "flex",
6616
- alignItems: "flex-start",
6617
7365
  flexDirection: "column",
6618
7366
  gap: "4px",
6619
7367
  "& p": {
@@ -6624,7 +7372,6 @@ const style$6 = {
6624
7372
  },
6625
7373
  PhoneInputsContainer: {
6626
7374
  display: "flex",
6627
- alignItems: "flex-start",
6628
7375
  gap: "4px",
6629
7376
  width: "100%",
6630
7377
  "& #phoneNumber": {
@@ -6633,9 +7380,9 @@ const style$6 = {
6633
7380
  },
6634
7381
  },
6635
7382
  };
6636
- const sheet$5 = JSS.createStyleSheet(style$6);
6637
- const styleString$5 = sheet$5.toString();
6638
- const vanillaStyle$3 = `
7383
+ const sheet$6 = JSS.createStyleSheet(style$7);
7384
+ const styleString$6 = sheet$6.toString();
7385
+ const vanillaStyle$4 = `
6639
7386
  :host{
6640
7387
  display: block;
6641
7388
  }
@@ -6663,7 +7410,7 @@ const vanillaStyle$3 = `
6663
7410
  const UserInfoFormView = (props) => {
6664
7411
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
6665
7412
  const { states, states: { formState }, callbacks, text, refs, data, } = props;
6666
- const { classes } = sheet$5;
7413
+ const { classes } = sheet$6;
6667
7414
  const bankingCollectionText = global.intl.formatMessage({
6668
7415
  id: "bankingCollectionText",
6669
7416
  defaultMessage: text.allowBankingCollection,
@@ -6686,14 +7433,19 @@ const UserInfoFormView = (props) => {
6686
7433
  }
6687
7434
  return (index.h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
6688
7435
  index.h("style", { type: "text/css" },
6689
- styleString$5,
6690
- vanillaStyle$3),
7436
+ styleString$6,
7437
+ vanillaStyle$4),
6691
7438
  states.loadingError && (index.h("div", null,
6692
- index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.AlertContainer },
7439
+ index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$6.classes.AlertContainer },
6693
7440
  index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
6694
7441
  index.h("strong", null, text.error.loadingErrorAlertHeader),
6695
7442
  index.h("br", null),
6696
- text.error.loadingErrorAlertDescription),
7443
+ global.intl.formatMessage({
7444
+ id: "loadingErrorAlertDescription",
7445
+ defaultMessage: text.error.loadingErrorAlertDescription,
7446
+ }, {
7447
+ supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
7448
+ })),
6697
7449
  index.h("br", null))),
6698
7450
  states.loading ? (index.h(sqmInvoiceTableView.GeneralLoadingView, null)) : (index.h("div", null,
6699
7451
  index.h("div", { class: classes.TextContainer },
@@ -6704,16 +7456,26 @@ const UserInfoFormView = (props) => {
6704
7456
  }, { step: states.step, count: FORM_STEPS }))),
6705
7457
  index.h("h3", null, text.personalInformation),
6706
7458
  index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
6707
- ((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$5.classes.AlertContainer },
7459
+ ((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$6.classes.AlertContainer },
6708
7460
  index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
6709
7461
  index.h("strong", null, text.error.generalTitle),
6710
7462
  index.h("br", null),
6711
- text.error.generalDescription)),
6712
- (states.isPartner || states.isUser) && (index.h("sl-alert", { type: "primary", open: true, class: sheet$5.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
7463
+ global.intl.formatMessage({
7464
+ id: "generalDescription",
7465
+ defaultMessage: text.error.generalDescription,
7466
+ }, {
7467
+ supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
7468
+ }))),
7469
+ (states.isPartner || states.isUser) && (index.h("sl-alert", { type: "primary", open: true, class: sheet$6.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
6713
7470
  index.h("sl-icon", { slot: "icon", name: "info-circle" }),
6714
7471
  index.h("strong", null, text.isPartnerAlertHeader),
6715
7472
  index.h("br", null),
6716
- text.isPartnerAlertDescription)),
7473
+ global.intl.formatMessage({
7474
+ id: "isPartnerAlertDescription",
7475
+ defaultMessage: text.isPartnerAlertDescription,
7476
+ }, {
7477
+ supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
7478
+ }))),
6717
7479
  index.h("div", null,
6718
7480
  index.h("div", { class: classes.InputContainer },
6719
7481
  index.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) ? {
@@ -6765,10 +7527,11 @@ const UserInfoFormView = (props) => {
6765
7527
  index.h("div", { slot: "prefix" }, `${(_a = PHONE_EXTENSIONS[c.countryCode]) === null || _a === void 0 ? void 0 : _a.name} `), (_b = PHONE_EXTENSIONS[c.countryCode]) === null || _b === void 0 ? void 0 :
6766
7528
  _b.dial_code));
6767
7529
  })),
6768
- index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", id: "phoneNumber", name: "/phoneNumber", value: formState.phoneNumber, validationError: ({ value }) =>
6769
- // Naive phone number validation
6770
- sqmInvoiceTableView.validateBillingField(/[a-zA-Z]+/, value) &&
6771
- sqmInvoiceTableView.formatErrorMessage(text.phoneNumber, text.error.fieldInvalidError), disabled: states.disabled || states.isPartner }, (((_k = formState.errors) === null || _k === void 0 ? void 0 : _k.phoneNumber) ? {
7530
+ index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", id: "phoneNumber", name: "/phoneNumber", value: formState.phoneNumber, validationError: ({ value }) => {
7531
+ // Naive phone number validation
7532
+ sqmInvoiceTableView.validateBillingField(/[a-zA-Z]+/, value) &&
7533
+ sqmInvoiceTableView.formatErrorMessage(text.phoneNumber, text.error.fieldInvalidError);
7534
+ }, disabled: states.disabled || states.isPartner }, (((_k = formState.errors) === null || _k === void 0 ? void 0 : _k.phoneNumber) ? {
6772
7535
  class: classes.ErrorInput,
6773
7536
  helpText: sqmInvoiceTableView.formatErrorMessage(text.phoneNumber, formState.errors.phoneNumber),
6774
7537
  }
@@ -6846,17 +7609,20 @@ function useUserInfoForm(props) {
6846
7609
  const [filteredCurrencies, setFilteredCurrencies] = stencilHooks_module.useState(currencies || []);
6847
7610
  const [formErrors, setErrors] = stencilHooks_module.useState({});
6848
7611
  stencilHooks_module.useEffect(() => {
6849
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
7612
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
6850
7613
  const user = data === null || data === void 0 ? void 0 : data.user;
6851
7614
  if (!user || step !== "/1")
6852
7615
  return;
6853
7616
  // If form already filled out, skip initialising it
6854
7617
  if (sqmInvoiceTableView.objectIsFull(userFormContext))
6855
7618
  return;
6856
- if (((_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) && ((_b = user.impactConnection) === null || _b === void 0 ? void 0 : _b.user)) {
7619
+ // Prefer MI email if it was verified before this
7620
+ const email = ((_a = user.managedIdentity) === null || _a === void 0 ? void 0 : _a.emailVerified) ? user.managedIdentity.email
7621
+ : user.email;
7622
+ if (((_b = user.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher) && ((_c = user.impactConnection) === null || _c === void 0 ? void 0 : _c.user)) {
6857
7623
  // Initialise with partner information
6858
7624
  setUserFormContext({
6859
- email: user.email,
7625
+ email,
6860
7626
  firstName: user.impactConnection.user.firstName,
6861
7627
  lastName: user.impactConnection.user.lastName,
6862
7628
  countryCode: user.impactConnection.publisher.countryCode,
@@ -6872,17 +7638,17 @@ function useUserInfoForm(props) {
6872
7638
  else if (!(userFormContext === null || userFormContext === void 0 ? void 0 : userFormContext.email)) {
6873
7639
  // Initialise with user information
6874
7640
  setUserFormContext({
6875
- email: user.email,
7641
+ email,
6876
7642
  firstName: user.firstName,
6877
7643
  lastName: user.lastName,
6878
7644
  countryCode: user.countryCode || "US",
6879
- currency: (_c = user.customFields) === null || _c === void 0 ? void 0 : _c.currency,
6880
- phoneNumberCountryCode: ((_d = user.customFields) === null || _d === void 0 ? void 0 : _d.phoneNumberCountryCode) || "US",
6881
- phoneNumber: (_e = user.customFields) === null || _e === void 0 ? void 0 : _e.phoneNumber,
6882
- address: (_f = user.customFields) === null || _f === void 0 ? void 0 : _f.address,
6883
- city: (_g = user.customFields) === null || _g === void 0 ? void 0 : _g.city,
6884
- state: (_h = user.customFields) === null || _h === void 0 ? void 0 : _h.state,
6885
- postalCode: (_j = user.customFields) === null || _j === void 0 ? void 0 : _j.postalCode,
7645
+ currency: (_d = user.customFields) === null || _d === void 0 ? void 0 : _d.currency,
7646
+ phoneNumberCountryCode: ((_e = user.customFields) === null || _e === void 0 ? void 0 : _e.phoneNumberCountryCode) || "US",
7647
+ phoneNumber: (_f = user.customFields) === null || _f === void 0 ? void 0 : _f.phoneNumber,
7648
+ address: (_g = user.customFields) === null || _g === void 0 ? void 0 : _g.address,
7649
+ city: (_h = user.customFields) === null || _h === void 0 ? void 0 : _h.city,
7650
+ state: (_j = user.customFields) === null || _j === void 0 ? void 0 : _j.state,
7651
+ postalCode: (_k = user.customFields) === null || _k === void 0 ? void 0 : _k.postalCode,
6886
7652
  });
6887
7653
  }
6888
7654
  }, [data, step, userFormContext]);
@@ -6961,6 +7727,8 @@ function useUserInfoForm(props) {
6961
7727
  const { allowBankingCollection, ...userData } = formData;
6962
7728
  setUserFormContext({
6963
7729
  ...userFormContext,
7730
+ firstName: userData.firstName,
7731
+ lastName: userData.lastName,
6964
7732
  phoneNumberCountryCode: userData.phoneNumberCountryCode,
6965
7733
  phoneNumber: userData.phoneNumber,
6966
7734
  countryCode: userData.countryCode,
@@ -7097,7 +7865,7 @@ const TaxForm = class {
7097
7865
  * @uiName Participant is a partner alert description
7098
7866
  * @uiWidget textArea
7099
7867
  */
7100
- this.isPartnerAlertDescription = "If you don’t recognize this referral program provider or believe this is a mistake, please contact Support or sign up for this referral program with a different email.";
7868
+ this.isPartnerAlertDescription = "If you don’t recognize this referral program provider or believe this is a mistake, please contact our {supportLink} or sign up for this referral program with a different email.";
7101
7869
  /**
7102
7870
  * Part of the alert displayed at the top of the page.
7103
7871
  * @uiName Form submission error message title
@@ -7109,7 +7877,7 @@ const TaxForm = class {
7109
7877
  * @uiName Form submission error message description
7110
7878
  * @uiWidget textArea
7111
7879
  */
7112
- this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact Support.";
7880
+ this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact our {supportLink}.";
7113
7881
  /**
7114
7882
  * Edit the property called terms and conditions text to change what's displayed for {termsAndConditionsLink}.
7115
7883
  * @uiName Terms and conditions checkbox
@@ -7125,7 +7893,7 @@ const TaxForm = class {
7125
7893
  * The link that appears in the terms and conditions checkbox
7126
7894
  * @uiName Terms and conditions link
7127
7895
  */
7128
- this.termsAndConditionsLink = "/payout-terms-and-conditions";
7896
+ this.termsAndConditionsLink = "https://terms.advocate.impact.com/PayoutTermsAndConditions.html";
7129
7897
  /**
7130
7898
  * Placeholder text displayed in the country search dropdown
7131
7899
  * @uiName Country field placeholder text
@@ -7162,12 +7930,16 @@ const TaxForm = class {
7162
7930
  * @uiName Page load error message description
7163
7931
  * @uiWidget textArea
7164
7932
  */
7165
- this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact Support.";
7933
+ this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact our {supportLink}.";
7166
7934
  /**
7167
7935
  * Displayed at the top of the page on all set up steps.
7168
7936
  * @uiName Page description
7169
7937
  */
7170
7938
  this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
7939
+ /**
7940
+ * @uiName Support link text
7941
+ */
7942
+ this.supportLink = "support team";
7171
7943
  stencilHooks_module.h$1(this);
7172
7944
  }
7173
7945
  disconnectedCallback() { }
@@ -7244,6 +8016,7 @@ function useDemoUserInfoForm(props) {
7244
8016
  }
7245
8017
 
7246
8018
  exports.sqm_banking_info_form = BankingInfoForm;
8019
+ exports.sqm_code_verification = WidgetCodeVerification;
7247
8020
  exports.sqm_docusign_form = DocusignForm;
7248
8021
  exports.sqm_indirect_tax_form = IndirectTaxForm;
7249
8022
  exports.sqm_invoice_table = InvoiceTable;