@saasquatch/mint-components 1.12.0-8 → 1.12.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 (570) hide show
  1. package/dist/cjs/{GenericTableView-80d7642e.js → GenericTableView-bb2fcd95.js} +2 -2
  2. package/dist/cjs/{ShadowViewAddon-040cffad.js → ShadowViewAddon-652aa5e4.js} +178 -236
  3. package/dist/cjs/copy-text-view-f1ce8888.js +231 -0
  4. package/dist/cjs/{email-registration-view-248652bb.js → email-registration-view-54cedb43.js} +2 -2
  5. package/dist/cjs/{global-c3637175.js → global-ae358e7d.js} +3 -3
  6. package/dist/cjs/{index-b0129cd6.js → index-ff72278c.js} +2 -0
  7. package/dist/cjs/{index.module-b8d9d0ba.js → index.module-191d84c2.js} +19 -52
  8. package/dist/cjs/loader.cjs.js +5 -5
  9. package/dist/cjs/{luxon-05098e19.js → luxon-45228ff5.js} +1 -1
  10. package/dist/cjs/mint-components.cjs.js +5 -5
  11. package/dist/cjs/{mockRewardData-4258e067.js → mockRewardData-d6be2267.js} +1 -1
  12. package/dist/cjs/raisins-plop-target.cjs.entry.js +1 -1
  13. package/dist/cjs/{re-render-5bde3d2e.js → re-render-811491ef.js} +5 -5
  14. package/dist/cjs/{sqm-asset-card-view-a0e33f21.js → sqm-asset-card-view-30ca5188.js} +1 -1
  15. package/dist/cjs/sqm-asset-card.cjs.entry.js +4 -4
  16. package/dist/cjs/{sqm-banking-info-form_16.cjs.entry.js → sqm-banking-info-form_17.cjs.entry.js} +927 -239
  17. package/dist/cjs/sqm-big-stat_39.cjs.entry.js +226 -164
  18. package/dist/cjs/{sqm-close-button-view-fd6e8f60.js → sqm-close-button-view-6a709e00.js} +2 -2
  19. package/dist/cjs/sqm-close-button.cjs.entry.js +5 -5
  20. package/dist/cjs/sqm-context-router.cjs.entry.js +4 -4
  21. package/dist/cjs/sqm-email-verification.cjs.entry.js +30 -22
  22. package/dist/cjs/sqm-empty_4.cjs.entry.js +12 -8
  23. package/dist/cjs/sqm-form-message.cjs.entry.js +2 -2
  24. package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +7 -7
  25. package/dist/cjs/sqm-header-logo.cjs.entry.js +2 -2
  26. package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +7 -7
  27. package/dist/cjs/{sqm-invoice-table-view-5d3a2d35.js → sqm-invoice-table-view-bfea11c8.js} +117 -5
  28. package/dist/cjs/{sqm-leaderboard-rank-view-5a3d4a88.js → sqm-leaderboard-rank-view-317eb84f.js} +1 -1
  29. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +8 -8
  30. package/dist/cjs/{sqm-logout-current-user-view-c9f18d96.js → sqm-logout-current-user-view-1912b773.js} +1 -1
  31. package/dist/cjs/sqm-logout-current-user.cjs.entry.js +7 -7
  32. package/dist/cjs/{sqm-navigation-sidebar-item-view-a2135064.js → sqm-navigation-sidebar-item-view-67d1184c.js} +4 -4
  33. package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +7 -7
  34. package/dist/cjs/{sqm-navigation-sidebar-view-921704fb.js → sqm-navigation-sidebar-view-215eba1d.js} +1 -1
  35. package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +6 -6
  36. package/dist/cjs/sqm-pagination_3.cjs.entry.js +392 -0
  37. package/dist/cjs/sqm-password-field.cjs.entry.js +6 -6
  38. package/dist/cjs/sqm-popup-container.cjs.entry.js +6 -6
  39. package/dist/cjs/{sqm-portal-container-view-990a85a3.js → sqm-portal-container-view-976bf0f5.js} +1 -1
  40. package/dist/cjs/{sqm-portal-email-verification-view-050dbe0f.js → sqm-portal-email-verification-view-1a852b01.js} +4 -4
  41. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +12 -12
  42. package/dist/cjs/{sqm-portal-forgot-password-view-969c49ed.js → sqm-portal-forgot-password-view-24339191.js} +3 -3
  43. package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +9 -9
  44. package/dist/cjs/sqm-portal-logout.cjs.entry.js +4 -4
  45. package/dist/cjs/{sqm-portal-profile-view-d97086bc.js → sqm-portal-profile-view-a2ed3b27.js} +3 -3
  46. package/dist/cjs/sqm-portal-profile.cjs.entry.js +11 -11
  47. package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +7 -7
  48. package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +11 -11
  49. package/dist/cjs/{sqm-portal-reset-password-view-96f329ed.js → sqm-portal-reset-password-view-1b85b8cf.js} +3 -3
  50. package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +12 -12
  51. package/dist/cjs/{sqm-portal-verify-email-view-7ffcc0d4.js → sqm-portal-verify-email-view-cc3c87c3.js} +3 -3
  52. package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +12 -12
  53. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +15 -13
  54. package/dist/cjs/sqm-referred-registration.cjs.entry.js +7 -7
  55. package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +3 -3
  56. package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +4 -4
  57. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +17 -17
  58. package/dist/cjs/sqm-route.cjs.entry.js +1 -1
  59. package/dist/cjs/sqm-scroll.cjs.entry.js +2 -2
  60. package/dist/cjs/sqm-stencilbook.cjs.entry.js +427 -183
  61. package/dist/cjs/sqm-tab.cjs.entry.js +4 -4
  62. package/dist/cjs/sqm-tabs.cjs.entry.js +6 -6
  63. package/dist/cjs/{sqm-text-span-view-e1cd9bd3.js → sqm-text-span-view-38222836.js} +1 -1
  64. package/dist/cjs/sqm-text-span.cjs.entry.js +3 -3
  65. package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +113 -0
  66. package/dist/cjs/sqm-widget-verification.cjs.entry.js +104 -111
  67. package/dist/cjs/{stencil-hooks.module-72742a0b.js → stencil-hooks.module-8f69ed33.js} +1 -1
  68. package/dist/cjs/{useChildElements-410d2435.js → useChildElements-d64dfedd.js} +3 -3
  69. package/dist/cjs/{useInstantAccessRegistration-ccf81eae.js → useInstantAccessRegistration-fb1d317a.js} +4 -4
  70. package/dist/cjs/usePayoutStatus-9f25038a.js +1045 -0
  71. package/dist/cjs/{useReferralTable-824ac152.js → useReferralTable-b09d9b9e.js} +11 -11
  72. package/dist/cjs/{useRegistrationFormState-f9ce55be.js → useRegistrationFormState-b07ba3d4.js} +3 -3
  73. package/dist/cjs/{useVerificationEmail-6aacdb71.js → useVerificationEmail-f3db90da.js} +13 -9
  74. package/dist/cjs/{utilities-f7de6c04.js → utilities-cec246be.js} +2 -2
  75. package/dist/collection/collection-manifest.json +11 -1
  76. package/dist/collection/components/sqm-coupon-code/sqm-coupon-code.js +1 -1
  77. package/dist/collection/components/sqm-empty/sqm-empty.js +10 -2
  78. package/dist/collection/components/sqm-logout-current-user/sqm-logout-current-user.js +1 -1
  79. package/dist/collection/components/sqm-pagination/Pagination.stories.js +12 -0
  80. package/dist/collection/components/sqm-pagination/sqm-pagination-view.js +32 -0
  81. package/dist/collection/components/sqm-pagination/sqm-pagination.js +112 -0
  82. package/dist/collection/components/sqm-pagination/usePagination.js +29 -0
  83. package/dist/collection/components/sqm-payout-button-scroll/PayoutButtonScroll.stories.js +7 -0
  84. package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll-view.js +2 -1
  85. package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll.js +5 -1
  86. package/dist/collection/components/sqm-payout-button-scroll/usePayoutButton.js +3 -10
  87. package/dist/collection/components/sqm-portal-container/sqm-portal-container.js +0 -4
  88. package/dist/collection/components/sqm-referral-card/ReferralCard.stories.js +20 -0
  89. package/dist/collection/components/sqm-referral-code/ReferralCode.stories.js +60 -0
  90. package/dist/collection/components/sqm-referral-code/sqm-referral-code.js +317 -0
  91. package/dist/collection/components/sqm-referral-code/useReferralCode.js +63 -0
  92. package/dist/collection/components/sqm-referral-codes/ReferralCodes.stories.js +65 -0
  93. package/dist/collection/components/sqm-referral-codes/sqm-referral-codes-view.js +69 -0
  94. package/dist/collection/components/sqm-referral-codes/sqm-referral-codes.js +219 -0
  95. package/dist/collection/components/sqm-referral-codes/useReferralCodes.js +131 -0
  96. package/dist/collection/components/sqm-referral-table/ReferralTable.stories.js +7 -1
  97. package/dist/collection/components/sqm-referral-table/ReferralTableRewardsCell.stories.js +16 -4
  98. package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +6 -2
  99. package/dist/collection/components/sqm-rewards-table/RewardsTableCell.stories.js +8 -15
  100. package/dist/collection/components/sqm-share-button/useShareButton.js +29 -18
  101. package/dist/collection/components/sqm-share-code/sqm-share-code.js +1 -1
  102. package/dist/collection/components/sqm-share-link/sqm-share-link.js +1 -1
  103. package/dist/collection/components/sqm-share-link/useShareLink.js +11 -4
  104. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +6 -0
  105. package/dist/collection/components/sqm-text/sqm-text.js +1 -1
  106. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +1 -1
  107. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.js +2 -2
  108. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/useCodeVerification.js +3 -6
  109. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/WidgetEmailVerification.stories.js +22 -6
  110. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +10 -6
  111. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.js +29 -4
  112. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/useEmailVerification.js +2 -2
  113. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-controller.js +120 -0
  114. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +106 -127
  115. package/dist/collection/components/sqm-widget-verification/useVerificationEmail.js +5 -1
  116. package/dist/collection/components/sqm-widget-verification/useWidgetVerification.js +60 -0
  117. package/dist/collection/components/tax-and-cash/BankingForm.stories.js +18 -0
  118. package/dist/collection/components/tax-and-cash/TaxForm.stories.js +111 -3
  119. package/dist/collection/components/tax-and-cash/eventKeys.js +1 -0
  120. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +12 -2
  121. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +127 -14
  122. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +8 -1
  123. package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +12 -2
  124. package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +31 -6
  125. package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +3 -0
  126. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +26 -8
  127. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +33 -8
  128. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +3 -0
  129. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/PayoutDetailsCard.stories.js +0 -7
  130. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card-view.js +0 -5
  131. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js +0 -56
  132. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.js +5 -9
  133. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +84 -24
  134. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +186 -13
  135. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +31 -20
  136. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/data.js +1 -0
  137. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +414 -23
  138. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +133 -15
  139. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +276 -11
  140. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +15 -1
  141. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +23 -9
  142. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +33 -8
  143. package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +2 -0
  144. package/dist/collection/components/tax-and-cash/useVeriffApp.js +64 -0
  145. package/dist/collection/components/views/copy-text-view.js +18 -3
  146. package/dist/collection/stories/Widget.stories.js +5 -0
  147. package/dist/esm/{GenericTableView-d59d8ab4.js → GenericTableView-706f5b56.js} +2 -2
  148. package/dist/esm/{ShadowViewAddon-69b61037.js → ShadowViewAddon-a0cff36f.js} +177 -234
  149. package/dist/esm/copy-text-view-200d6958.js +225 -0
  150. package/dist/esm/{email-registration-view-a89a88bf.js → email-registration-view-5ecee6f8.js} +2 -2
  151. package/dist/esm/{global-6306a9b8.js → global-9832e13a.js} +3 -3
  152. package/dist/esm/{index-17b4da69.js → index-014ddfa3.js} +2 -1
  153. package/dist/esm/{index.module-6c840c4e.js → index.module-32d2bf62.js} +4 -37
  154. package/dist/esm/{keys-db1897ae.js → keys-406491dc.js} +1 -1
  155. package/dist/esm/loader.js +5 -5
  156. package/dist/esm/{luxon-7600be8d.js → luxon-12195d94.js} +1 -1
  157. package/dist/esm/mint-components.js +5 -5
  158. package/dist/esm/{mockRewardData-0eb6e778.js → mockRewardData-133c20ca.js} +1 -1
  159. package/dist/esm/raisins-plop-target.entry.js +1 -1
  160. package/dist/esm/{re-render-1bcfd0de.js → re-render-6977623c.js} +5 -5
  161. package/dist/esm/{sqm-asset-card-view-9d93fbdd.js → sqm-asset-card-view-da88351a.js} +1 -1
  162. package/dist/esm/sqm-asset-card.entry.js +4 -4
  163. package/dist/esm/{sqm-banking-info-form_16.entry.js → sqm-banking-info-form_17.entry.js} +927 -240
  164. package/dist/esm/sqm-big-stat_39.entry.js +223 -161
  165. package/dist/esm/{sqm-close-button-view-dc65b4e3.js → sqm-close-button-view-8058642b.js} +2 -2
  166. package/dist/esm/sqm-close-button.entry.js +5 -5
  167. package/dist/esm/sqm-context-router.entry.js +4 -4
  168. package/dist/esm/sqm-email-verification.entry.js +31 -23
  169. package/dist/esm/sqm-empty_4.entry.js +12 -8
  170. package/dist/esm/sqm-form-message.entry.js +2 -2
  171. package/dist/esm/sqm-graphql-client-provider.entry.js +7 -7
  172. package/dist/esm/sqm-header-logo.entry.js +2 -2
  173. package/dist/esm/sqm-instant-access-registration.entry.js +7 -7
  174. package/dist/esm/{sqm-invoice-table-view-e9075c0b.js → sqm-invoice-table-view-e3a1287a.js} +117 -5
  175. package/dist/esm/{sqm-leaderboard-rank-view-10657658.js → sqm-leaderboard-rank-view-773a586f.js} +1 -1
  176. package/dist/esm/sqm-leaderboard-rank.entry.js +8 -8
  177. package/dist/esm/{sqm-logout-current-user-view-2c6122cd.js → sqm-logout-current-user-view-dfcd508a.js} +1 -1
  178. package/dist/esm/sqm-logout-current-user.entry.js +7 -7
  179. package/dist/esm/{sqm-navigation-sidebar-item-view-f8e78810.js → sqm-navigation-sidebar-item-view-721b0060.js} +4 -4
  180. package/dist/esm/sqm-navigation-sidebar-item.entry.js +7 -7
  181. package/dist/esm/{sqm-navigation-sidebar-view-0312e073.js → sqm-navigation-sidebar-view-5f332ea1.js} +1 -1
  182. package/dist/esm/sqm-navigation-sidebar.entry.js +6 -6
  183. package/dist/esm/sqm-pagination_3.entry.js +386 -0
  184. package/dist/esm/sqm-password-field.entry.js +6 -6
  185. package/dist/esm/sqm-popup-container.entry.js +6 -6
  186. package/dist/esm/{sqm-portal-container-view-6c582684.js → sqm-portal-container-view-83df005d.js} +1 -1
  187. package/dist/esm/{sqm-portal-email-verification-view-c6ac5430.js → sqm-portal-email-verification-view-d90f5490.js} +4 -4
  188. package/dist/esm/sqm-portal-email-verification.entry.js +12 -12
  189. package/dist/esm/{sqm-portal-forgot-password-view-c2ed8fed.js → sqm-portal-forgot-password-view-8629f753.js} +3 -3
  190. package/dist/esm/sqm-portal-forgot-password.entry.js +9 -9
  191. package/dist/esm/sqm-portal-logout.entry.js +4 -4
  192. package/dist/esm/{sqm-portal-profile-view-15ddbec8.js → sqm-portal-profile-view-9ac8ea4d.js} +3 -3
  193. package/dist/esm/sqm-portal-profile.entry.js +11 -11
  194. package/dist/esm/sqm-portal-protected-route.entry.js +7 -7
  195. package/dist/esm/sqm-portal-registration-form.entry.js +11 -11
  196. package/dist/esm/{sqm-portal-reset-password-view-79a85e02.js → sqm-portal-reset-password-view-865655da.js} +3 -3
  197. package/dist/esm/sqm-portal-reset-password.entry.js +12 -12
  198. package/dist/esm/{sqm-portal-verify-email-view-d7ea2c56.js → sqm-portal-verify-email-view-6c60df25.js} +3 -3
  199. package/dist/esm/sqm-portal-verify-email.entry.js +12 -12
  200. package/dist/esm/sqm-referral-table_11.entry.js +15 -13
  201. package/dist/esm/sqm-referred-registration.entry.js +7 -7
  202. package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +3 -3
  203. package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +4 -4
  204. package/dist/esm/sqm-rewards-table_9.entry.js +17 -17
  205. package/dist/esm/sqm-route.entry.js +1 -1
  206. package/dist/esm/sqm-scroll.entry.js +2 -2
  207. package/dist/esm/sqm-stencilbook.entry.js +414 -170
  208. package/dist/esm/sqm-tab.entry.js +4 -4
  209. package/dist/esm/sqm-tabs.entry.js +6 -6
  210. package/dist/esm/{sqm-text-span-view-8d140661.js → sqm-text-span-view-d6e03f93.js} +1 -1
  211. package/dist/esm/sqm-text-span.entry.js +3 -3
  212. package/dist/esm/sqm-widget-verification-controller.entry.js +109 -0
  213. package/dist/esm/sqm-widget-verification.entry.js +105 -112
  214. package/dist/esm/{stencil-hooks.module-ac12ca1c.js → stencil-hooks.module-576d7f01.js} +1 -1
  215. package/dist/esm/{useChildElements-fc84e640.js → useChildElements-dd86d4a4.js} +3 -3
  216. package/dist/esm/{useInstantAccessRegistration-8b0a4556.js → useInstantAccessRegistration-82ac94b9.js} +4 -4
  217. package/dist/esm/usePayoutStatus-a7510912.js +1039 -0
  218. package/dist/esm/{useReferralTable-f6ffa103.js → useReferralTable-f677f1aa.js} +11 -11
  219. package/dist/esm/{useRegistrationFormState-849e27f7.js → useRegistrationFormState-6e89095a.js} +3 -3
  220. package/dist/esm/{useVerificationEmail-c32696ba.js → useVerificationEmail-7e3eb7c0.js} +13 -9
  221. package/dist/esm/{utilities-443732be.js → utilities-34fdb9e3.js} +2 -2
  222. package/dist/esm-es5/{GenericTableView-d59d8ab4.js → GenericTableView-706f5b56.js} +1 -1
  223. package/dist/esm-es5/ShadowViewAddon-a0cff36f.js +1 -0
  224. package/dist/esm-es5/copy-text-view-200d6958.js +1 -0
  225. package/dist/esm-es5/{email-registration-view-a89a88bf.js → email-registration-view-5ecee6f8.js} +1 -1
  226. package/dist/esm-es5/{global-6306a9b8.js → global-9832e13a.js} +2 -2
  227. package/dist/esm-es5/{index-17b4da69.js → index-014ddfa3.js} +1 -1
  228. package/dist/esm-es5/index.module-32d2bf62.js +1 -0
  229. package/dist/esm-es5/{keys-db1897ae.js → keys-406491dc.js} +1 -1
  230. package/dist/esm-es5/loader.js +1 -1
  231. package/dist/esm-es5/{luxon-7600be8d.js → luxon-12195d94.js} +1 -1
  232. package/dist/esm-es5/mint-components.js +1 -1
  233. package/dist/esm-es5/{mockRewardData-0eb6e778.js → mockRewardData-133c20ca.js} +1 -1
  234. package/dist/esm-es5/raisins-plop-target.entry.js +1 -1
  235. package/dist/esm-es5/{re-render-1bcfd0de.js → re-render-6977623c.js} +1 -1
  236. package/dist/esm-es5/{sqm-asset-card-view-9d93fbdd.js → sqm-asset-card-view-da88351a.js} +1 -1
  237. package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
  238. package/dist/esm-es5/sqm-banking-info-form_17.entry.js +1 -0
  239. package/dist/esm-es5/sqm-big-stat_39.entry.js +1 -1
  240. package/dist/esm-es5/{sqm-close-button-view-dc65b4e3.js → sqm-close-button-view-8058642b.js} +1 -1
  241. package/dist/esm-es5/sqm-close-button.entry.js +1 -1
  242. package/dist/esm-es5/sqm-context-router.entry.js +1 -1
  243. package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
  244. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  245. package/dist/esm-es5/sqm-form-message.entry.js +1 -1
  246. package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
  247. package/dist/esm-es5/sqm-header-logo.entry.js +1 -1
  248. package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
  249. package/dist/esm-es5/sqm-invoice-table-view-e3a1287a.js +1 -0
  250. package/dist/esm-es5/sqm-leaderboard-rank-view-773a586f.js +1 -0
  251. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  252. package/dist/esm-es5/{sqm-logout-current-user-view-2c6122cd.js → sqm-logout-current-user-view-dfcd508a.js} +1 -1
  253. package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
  254. package/dist/esm-es5/{sqm-navigation-sidebar-item-view-f8e78810.js → sqm-navigation-sidebar-item-view-721b0060.js} +1 -1
  255. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  256. package/dist/esm-es5/{sqm-navigation-sidebar-view-0312e073.js → sqm-navigation-sidebar-view-5f332ea1.js} +1 -1
  257. package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
  258. package/dist/esm-es5/sqm-pagination_3.entry.js +1 -0
  259. package/dist/esm-es5/sqm-password-field.entry.js +1 -1
  260. package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
  261. package/dist/esm-es5/{sqm-portal-container-view-6c582684.js → sqm-portal-container-view-83df005d.js} +1 -1
  262. package/dist/esm-es5/{sqm-portal-email-verification-view-c6ac5430.js → sqm-portal-email-verification-view-d90f5490.js} +1 -1
  263. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  264. package/dist/esm-es5/{sqm-portal-forgot-password-view-c2ed8fed.js → sqm-portal-forgot-password-view-8629f753.js} +1 -1
  265. package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
  266. package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
  267. package/dist/esm-es5/{sqm-portal-profile-view-15ddbec8.js → sqm-portal-profile-view-9ac8ea4d.js} +1 -1
  268. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  269. package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
  270. package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
  271. package/dist/esm-es5/{sqm-portal-reset-password-view-79a85e02.js → sqm-portal-reset-password-view-865655da.js} +1 -1
  272. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  273. package/dist/esm-es5/{sqm-portal-verify-email-view-d7ea2c56.js → sqm-portal-verify-email-view-6c60df25.js} +1 -1
  274. package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
  275. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  276. package/dist/esm-es5/sqm-referred-registration.entry.js +1 -1
  277. package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -1
  278. package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
  279. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  280. package/dist/esm-es5/sqm-route.entry.js +1 -1
  281. package/dist/esm-es5/sqm-scroll.entry.js +1 -1
  282. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  283. package/dist/esm-es5/sqm-tab.entry.js +1 -1
  284. package/dist/esm-es5/sqm-tabs.entry.js +1 -1
  285. package/dist/esm-es5/{sqm-text-span-view-8d140661.js → sqm-text-span-view-d6e03f93.js} +1 -1
  286. package/dist/esm-es5/sqm-text-span.entry.js +1 -1
  287. package/dist/esm-es5/sqm-widget-verification-controller.entry.js +1 -0
  288. package/dist/esm-es5/sqm-widget-verification.entry.js +1 -1
  289. package/dist/esm-es5/{stencil-hooks.module-ac12ca1c.js → stencil-hooks.module-576d7f01.js} +1 -1
  290. package/dist/esm-es5/useChildElements-dd86d4a4.js +1 -0
  291. package/dist/esm-es5/{useInstantAccessRegistration-8b0a4556.js → useInstantAccessRegistration-82ac94b9.js} +1 -1
  292. package/dist/esm-es5/usePayoutStatus-a7510912.js +6 -0
  293. package/dist/esm-es5/{useReferralTable-f6ffa103.js → useReferralTable-f677f1aa.js} +1 -1
  294. package/dist/esm-es5/useRegistrationFormState-6e89095a.js +1 -0
  295. package/dist/esm-es5/useVerificationEmail-7e3eb7c0.js +1 -0
  296. package/dist/esm-es5/{utilities-443732be.js → utilities-34fdb9e3.js} +1 -1
  297. package/dist/mint-components/mint-components.esm.js +1 -1
  298. package/dist/mint-components/mint-components.js +1 -1
  299. package/dist/mint-components/{p-fd2c5407.js → p-019506c4.js} +1 -1
  300. package/dist/mint-components/{p-43621f12.system.js → p-01d6c1f0.system.js} +1 -1
  301. package/dist/mint-components/{p-59818690.system.entry.js → p-04a17b6f.system.entry.js} +1 -1
  302. package/dist/mint-components/p-062051ad.entry.js +1 -0
  303. package/dist/mint-components/{p-c5577dd7.system.js → p-06b8a582.system.js} +1 -1
  304. package/dist/mint-components/p-0740469e.entry.js +33 -0
  305. package/dist/mint-components/p-0d485762.system.entry.js +1 -0
  306. package/dist/mint-components/{p-a51533cb.system.js → p-0dc18b5c.system.js} +1 -1
  307. package/dist/mint-components/p-11c8ad61.entry.js +9 -0
  308. package/dist/mint-components/{p-d468925f.entry.js → p-135356c8.entry.js} +1 -1
  309. package/dist/mint-components/p-147eddc7.system.js +1 -0
  310. package/dist/mint-components/{p-7dd1ff31.system.entry.js → p-14f23e8b.system.entry.js} +1 -1
  311. package/dist/mint-components/{p-251e7567.js → p-1a4e5a3a.js} +1 -1
  312. package/dist/mint-components/p-1d00f622.entry.js +25 -0
  313. package/dist/mint-components/{p-cb433855.system.entry.js → p-1da85c55.system.entry.js} +1 -1
  314. package/dist/mint-components/{p-7d5e0645.system.js → p-1e03d640.system.js} +1 -1
  315. package/dist/mint-components/{p-f4cbbe47.entry.js → p-1f03999a.entry.js} +1 -1
  316. package/dist/mint-components/{p-ff17b3a4.system.js → p-21d94eab.system.js} +1 -1
  317. package/dist/mint-components/p-2478ab2e.js +1 -0
  318. package/dist/mint-components/p-26989f51.system.entry.js +1 -0
  319. package/dist/mint-components/{p-04348a9b.js → p-27063220.js} +1 -1
  320. package/dist/mint-components/{p-fd21ae8f.entry.js → p-27f4da12.entry.js} +1 -1
  321. package/dist/mint-components/{p-e12d3414.system.entry.js → p-28e02729.system.entry.js} +1 -1
  322. package/dist/mint-components/{p-c1a47137.system.entry.js → p-29952a5b.system.entry.js} +1 -1
  323. package/dist/mint-components/p-2a2fb958.system.js +1 -0
  324. package/dist/mint-components/{p-ac51940e.system.js → p-2ae74e3d.system.js} +1 -1
  325. package/dist/mint-components/{p-5becb2ff.system.js → p-2bc74e74.system.js} +1 -1
  326. package/dist/mint-components/{p-4f775e84.system.js → p-2be11651.system.js} +1 -1
  327. package/dist/mint-components/{p-94454880.entry.js → p-2be940fd.entry.js} +1 -1
  328. package/dist/mint-components/{p-d83b0cf3.js → p-346b0453.js} +1 -1
  329. package/dist/mint-components/p-38c7775a.js +1 -0
  330. package/dist/mint-components/p-38e25302.system.js +1 -0
  331. package/dist/mint-components/{p-cd44de66.system.js → p-38eeea85.system.js} +1 -1
  332. package/dist/mint-components/p-3a82938a.system.js +1 -0
  333. package/dist/mint-components/p-3b9a0443.js +1 -0
  334. package/dist/mint-components/{p-3ed71bef.system.js → p-3c6bc373.system.js} +1 -1
  335. package/dist/mint-components/{p-fb93c962.js → p-42390bcc.js} +1 -1
  336. package/dist/mint-components/p-437d9179.entry.js +1 -0
  337. package/dist/mint-components/{p-9cdbd1ac.system.entry.js → p-4460a1b5.system.entry.js} +1 -1
  338. package/dist/mint-components/{p-e546347e.system.js → p-4531488f.system.js} +1 -1
  339. package/dist/mint-components/{p-5291891c.entry.js → p-45348151.entry.js} +2 -2
  340. package/dist/mint-components/{p-2a414b2e.system.js → p-45d71b2a.system.js} +1 -1
  341. package/dist/mint-components/{p-fc422446.system.js → p-4665c2df.system.js} +1 -1
  342. package/dist/mint-components/p-4769ea4e.js +1 -0
  343. package/dist/mint-components/p-4810eded.js +52 -0
  344. package/dist/mint-components/p-493ceeaa.system.entry.js +1 -0
  345. package/dist/mint-components/{p-be1ae1ed.system.entry.js → p-4d50c2fd.system.entry.js} +1 -1
  346. package/dist/mint-components/{p-0527d90b.system.entry.js → p-4e88b1cc.system.entry.js} +1 -1
  347. package/dist/mint-components/p-5327c91f.system.js +1 -0
  348. package/dist/mint-components/p-533a6058.entry.js +1 -0
  349. package/dist/mint-components/p-558daf4f.system.js +1 -0
  350. package/dist/mint-components/p-55a5bbca.system.entry.js +1 -0
  351. package/dist/mint-components/{p-3925bcd6.entry.js → p-567510ed.entry.js} +1 -1
  352. package/dist/mint-components/p-57dd28bd.system.js +1 -0
  353. package/dist/mint-components/p-57f92fe0.entry.js +1 -0
  354. package/dist/mint-components/{p-c3b37bbf.js → p-597d9584.js} +1 -1
  355. package/dist/mint-components/{p-1b9e6fc6.js → p-59e310c8.js} +1 -1
  356. package/dist/mint-components/p-59fb25c9.system.entry.js +1 -0
  357. package/dist/mint-components/{p-2816bf6a.js → p-5c3bf70d.js} +1 -1
  358. package/dist/mint-components/{p-92110eef.entry.js → p-5c70bc39.entry.js} +1 -1
  359. package/dist/mint-components/p-606f8320.js +31 -0
  360. package/dist/mint-components/{p-64c3217a.js → p-61d5f26e.js} +1 -1
  361. package/dist/mint-components/{p-509e29e6.js → p-6568392b.js} +1 -1
  362. package/dist/mint-components/{p-03dbe2ce.entry.js → p-6765a6d5.entry.js} +1 -1
  363. package/dist/mint-components/{p-0c9ad5f3.system.entry.js → p-69429d09.system.entry.js} +1 -1
  364. package/dist/mint-components/p-6b3cb50a.entry.js +1 -0
  365. package/dist/mint-components/{p-0121e044.js → p-6c03512b.js} +1 -1
  366. package/dist/mint-components/{p-79da7f18.js → p-6d164a9e.js} +1 -1
  367. package/dist/mint-components/{p-c1f4fb6d.system.entry.js → p-70f4aab2.system.entry.js} +1 -1
  368. package/dist/mint-components/p-72aff425.js +48 -0
  369. package/dist/mint-components/p-72b57205.js +1 -0
  370. package/dist/mint-components/p-73e9caad.system.js +1 -0
  371. package/dist/mint-components/{p-3036cf58.system.js → p-752650b9.system.js} +1 -1
  372. package/dist/mint-components/{p-5fba1a04.system.entry.js → p-775685a2.system.entry.js} +1 -1
  373. package/dist/mint-components/p-7a4a47b2.entry.js +205 -0
  374. package/dist/mint-components/{p-f3053c61.js → p-7ae55645.js} +1 -1
  375. package/dist/mint-components/{p-f450654b.system.entry.js → p-7c1650bb.system.entry.js} +1 -1
  376. package/dist/mint-components/{p-3e7ec0f3.system.entry.js → p-7d85fba4.system.entry.js} +1 -1
  377. package/dist/mint-components/p-7ddd0248.entry.js +1 -0
  378. package/dist/mint-components/{p-c3babfa4.system.entry.js → p-7e0c2fd5.system.entry.js} +1 -1
  379. package/dist/mint-components/{p-a45b03d2.entry.js → p-813f6633.entry.js} +1 -1
  380. package/dist/mint-components/{p-370a1a73.system.js → p-81ed0e97.system.js} +1 -1
  381. package/dist/mint-components/p-81fd8e56.system.js +1 -0
  382. package/dist/mint-components/{p-6b5e355c.system.js → p-842cbd05.system.js} +1 -1
  383. package/dist/mint-components/{p-88bf51b7.system.entry.js → p-87bde6c3.system.entry.js} +1 -1
  384. package/dist/mint-components/{p-64491210.system.entry.js → p-89283c37.system.entry.js} +1 -1
  385. package/dist/mint-components/{p-d35d8c06.entry.js → p-8b24b795.entry.js} +2 -2
  386. package/dist/mint-components/{p-6c928c7d.entry.js → p-8b66735f.entry.js} +1 -1
  387. package/dist/mint-components/p-8e6c97b5.system.entry.js +1 -0
  388. package/dist/mint-components/{p-8d554a89.system.js → p-90b906e3.system.js} +1 -1
  389. package/dist/mint-components/p-95f71da6.entry.js +1 -0
  390. package/dist/mint-components/p-96755021.entry.js +16 -0
  391. package/dist/mint-components/{p-ead27698.system.entry.js → p-98c5589b.system.entry.js} +1 -1
  392. package/dist/mint-components/p-9a3612e3.system.js +1 -0
  393. package/dist/mint-components/{p-012daf3c.entry.js → p-9c980a21.entry.js} +1 -1
  394. package/dist/mint-components/{p-6afb4f48.system.entry.js → p-9f9f851d.system.entry.js} +1 -1
  395. package/dist/mint-components/{p-4e48267b.system.js → p-9fc73ff8.system.js} +1 -1
  396. package/dist/mint-components/p-a13c83c5.entry.js +1 -0
  397. package/dist/mint-components/p-a1cc7c75.system.js +6 -0
  398. package/dist/mint-components/{p-e8dde8f4.system.js → p-a2aed0da.system.js} +1 -1
  399. package/dist/mint-components/{p-178d2d2e.entry.js → p-a3fdbfed.entry.js} +1 -1
  400. package/dist/mint-components/{p-fbdf0738.entry.js → p-a4c1b404.entry.js} +1 -1
  401. package/dist/mint-components/p-a5c46b1f.system.entry.js +1 -0
  402. package/dist/mint-components/p-a966450d.entry.js +1 -0
  403. package/dist/mint-components/{p-1f7d7524.system.entry.js → p-a9ad04e3.system.entry.js} +1 -1
  404. package/dist/mint-components/{p-c5d2e4ba.js → p-a9ff5495.js} +1 -1
  405. package/dist/mint-components/{p-ce9e7c98.system.js → p-b210bcc2.system.js} +1 -1
  406. package/dist/mint-components/{p-bc826117.system.entry.js → p-b38c43c6.system.entry.js} +1 -1
  407. package/dist/mint-components/{p-04ced592.system.entry.js → p-b4fd6877.system.entry.js} +1 -1
  408. package/dist/mint-components/{p-c8610d0c.js → p-b7705066.js} +1 -1
  409. package/dist/mint-components/p-b7ea46a9.system.entry.js +1 -0
  410. package/dist/mint-components/{p-a85f57bb.entry.js → p-b8e79be3.entry.js} +1 -1
  411. package/dist/mint-components/p-bc827206.entry.js +241 -0
  412. package/dist/mint-components/p-bd5cb4f3.system.js +1 -0
  413. package/dist/mint-components/{p-51d53165.system.entry.js → p-bf1ce947.system.entry.js} +1 -1
  414. package/dist/mint-components/{p-83c9f37b.system.entry.js → p-c10eb4d9.system.entry.js} +1 -1
  415. package/dist/mint-components/{p-f0806232.system.entry.js → p-c2281e04.system.entry.js} +1 -1
  416. package/dist/mint-components/{p-1d27da33.js → p-c49e034d.js} +2 -2
  417. package/dist/mint-components/p-c5a86ae0.system.js +1 -0
  418. package/dist/mint-components/{p-bee1e573.entry.js → p-c6b10310.entry.js} +1 -1
  419. package/dist/mint-components/p-c7d74b3d.entry.js +1 -0
  420. package/dist/mint-components/{p-f56348dc.system.entry.js → p-c9a1e91f.system.entry.js} +1 -1
  421. package/dist/mint-components/{p-9e0230c3.entry.js → p-ce7d155e.entry.js} +1 -1
  422. package/dist/mint-components/{p-e3e16c36.js → p-d25af377.js} +1 -1
  423. package/dist/mint-components/{p-f531a5c9.system.entry.js → p-d2ce8962.system.entry.js} +1 -1
  424. package/dist/mint-components/{p-76392386.entry.js → p-d2fdccaf.entry.js} +1 -1
  425. package/dist/mint-components/p-d30d4615.system.entry.js +1 -0
  426. package/dist/mint-components/p-d72ca162.entry.js +13 -0
  427. package/dist/mint-components/p-d8d97ff5.js +1 -0
  428. package/dist/mint-components/p-d9125705.entry.js +1 -0
  429. package/dist/mint-components/{p-bdd6bb13.js → p-d998f2cf.js} +1 -1
  430. package/dist/mint-components/{p-e0e7635a.js → p-da694498.js} +1 -1
  431. package/dist/mint-components/p-dc10f1c8.entry.js +1 -0
  432. package/dist/mint-components/p-dd5a844d.entry.js +1 -0
  433. package/dist/mint-components/{p-ac1bf045.js → p-e039ce2f.js} +1 -1
  434. package/dist/mint-components/{p-88aac6a9.system.entry.js → p-e401cb44.system.entry.js} +1 -1
  435. package/dist/mint-components/{p-68747d88.js → p-e445df4e.js} +1 -1
  436. package/dist/mint-components/{p-ed6ebd60.system.js → p-e479d77e.system.js} +1 -1
  437. package/dist/mint-components/{p-88a2e66e.system.entry.js → p-e53e95ce.system.entry.js} +1 -1
  438. package/dist/mint-components/p-e9561792.entry.js +1 -0
  439. package/dist/mint-components/{p-36e9296e.system.entry.js → p-ea99fae7.system.entry.js} +1 -1
  440. package/dist/mint-components/{p-5d0c9424.js → p-ee343d0b.js} +1 -1
  441. package/dist/mint-components/{p-22425c71.system.entry.js → p-f1a8e889.system.entry.js} +1 -1
  442. package/dist/mint-components/{p-c7fd9e16.js → p-f29e62e1.js} +1 -1
  443. package/dist/mint-components/{p-9eae245f.js → p-f754e08b.js} +23 -23
  444. package/dist/mint-components/p-f831ddd1.entry.js +13 -0
  445. package/dist/mint-components/{p-b3b5b4b7.system.entry.js → p-f9564398.system.entry.js} +1 -1
  446. package/dist/types/components/sqm-empty/sqm-empty.d.ts +1 -1
  447. package/dist/types/components/sqm-pagination/Pagination.stories.d.ts +5 -0
  448. package/dist/types/components/sqm-pagination/sqm-pagination-view.d.ts +15 -0
  449. package/dist/types/components/sqm-pagination/sqm-pagination.d.ts +22 -0
  450. package/dist/types/components/sqm-pagination/usePagination.d.ts +16 -0
  451. package/dist/types/components/sqm-payout-button-scroll/PayoutButtonScroll.stories.d.ts +1 -0
  452. package/dist/types/components/sqm-portal-container/sqm-portal-container.d.ts +0 -1
  453. package/dist/types/components/sqm-referral-card/ReferralCard.stories.d.ts +1 -0
  454. package/dist/types/components/sqm-referral-code/ReferralCode.stories.d.ts +18 -0
  455. package/dist/types/components/sqm-referral-code/sqm-referral-code.d.ts +70 -0
  456. package/dist/types/components/sqm-referral-code/useReferralCode.d.ts +3 -0
  457. package/dist/types/components/sqm-referral-codes/ReferralCodes.stories.d.ts +12 -0
  458. package/dist/types/components/sqm-referral-codes/sqm-referral-codes-view.d.ts +16 -0
  459. package/dist/types/components/sqm-referral-codes/sqm-referral-codes.d.ts +39 -0
  460. package/dist/types/components/sqm-referral-codes/useReferralCodes.d.ts +52 -0
  461. package/dist/types/components/sqm-referral-table/ReferralTableRewardsCell.stories.d.ts +1 -0
  462. package/dist/types/components/sqm-rewards-table/RewardsTableCell.stories.d.ts +1 -0
  463. package/dist/types/components/sqm-share-link/useShareLink.d.ts +1 -0
  464. package/dist/types/components/sqm-widget-verification/sqm-email-verification/WidgetEmailVerification.stories.d.ts +1 -0
  465. package/dist/types/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.d.ts +1 -0
  466. package/dist/types/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.d.ts +4 -0
  467. package/dist/types/components/sqm-widget-verification/sqm-widget-verification-controller.d.ts +12 -0
  468. package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +13 -4
  469. package/dist/types/components/sqm-widget-verification/useVerificationEmail.d.ts +1 -0
  470. package/dist/types/components/sqm-widget-verification/useWidgetVerification.d.ts +5 -0
  471. package/dist/types/components/tax-and-cash/BankingForm.stories.d.ts +1 -0
  472. package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +4 -0
  473. package/dist/types/components/tax-and-cash/eventKeys.d.ts +1 -0
  474. package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.d.ts +6 -0
  475. package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.d.ts +13 -0
  476. package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.d.ts +1 -0
  477. package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.d.ts +4 -0
  478. package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.d.ts +1 -0
  479. package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.d.ts +4 -0
  480. package/dist/types/components/tax-and-cash/sqm-payout-details-card/PayoutDetailsCard.stories.d.ts +0 -1
  481. package/dist/types/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card-view.d.ts +0 -4
  482. package/dist/types/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.d.ts +1 -16
  483. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.d.ts +3 -1
  484. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.d.ts +8 -2
  485. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +30 -2
  486. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +5 -4
  487. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/data.d.ts +1 -0
  488. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/extractProps.d.ts +5 -1
  489. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +82 -3
  490. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +14 -2
  491. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +45 -0
  492. package/dist/types/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.d.ts +1 -0
  493. package/dist/types/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.d.ts +4 -0
  494. package/dist/types/components/tax-and-cash/useVeriffApp.d.ts +6 -0
  495. package/dist/types/components/views/copy-text-view.d.ts +3 -0
  496. package/dist/types/components.d.ts +625 -92
  497. package/dist/types/stories/Widget.stories.d.ts +6 -0
  498. package/docs/docs.docx +0 -0
  499. package/docs/raisins.json +1 -1
  500. package/grapesjs/grapesjs.js +1 -1
  501. package/package.json +3 -2
  502. package/dist/cjs/sqm-code-verification.cjs.entry.js +0 -345
  503. package/dist/cjs/sqm-widget-verification-internal.cjs.entry.js +0 -103
  504. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-internal.js +0 -339
  505. package/dist/esm/sqm-code-verification.entry.js +0 -341
  506. package/dist/esm/sqm-widget-verification-internal.entry.js +0 -99
  507. package/dist/esm-es5/ShadowViewAddon-69b61037.js +0 -1
  508. package/dist/esm-es5/index.module-6c840c4e.js +0 -1
  509. package/dist/esm-es5/sqm-banking-info-form_16.entry.js +0 -1
  510. package/dist/esm-es5/sqm-code-verification.entry.js +0 -1
  511. package/dist/esm-es5/sqm-invoice-table-view-e9075c0b.js +0 -1
  512. package/dist/esm-es5/sqm-leaderboard-rank-view-10657658.js +0 -1
  513. package/dist/esm-es5/sqm-widget-verification-internal.entry.js +0 -1
  514. package/dist/esm-es5/useChildElements-fc84e640.js +0 -1
  515. package/dist/esm-es5/useRegistrationFormState-849e27f7.js +0 -1
  516. package/dist/esm-es5/useVerificationEmail-c32696ba.js +0 -1
  517. package/dist/mint-components/p-0893073b.entry.js +0 -1
  518. package/dist/mint-components/p-0a898ab1.js +0 -1
  519. package/dist/mint-components/p-11d1b212.js +0 -1
  520. package/dist/mint-components/p-1649ee1e.entry.js +0 -240
  521. package/dist/mint-components/p-1712a9fd.entry.js +0 -11
  522. package/dist/mint-components/p-1b861be5.entry.js +0 -1
  523. package/dist/mint-components/p-1e616d45.system.js +0 -1
  524. package/dist/mint-components/p-2868f475.entry.js +0 -1
  525. package/dist/mint-components/p-39840341.js +0 -1
  526. package/dist/mint-components/p-39e412e8.system.entry.js +0 -1
  527. package/dist/mint-components/p-4364001c.entry.js +0 -12
  528. package/dist/mint-components/p-4671e644.entry.js +0 -1
  529. package/dist/mint-components/p-4babe350.system.js +0 -1
  530. package/dist/mint-components/p-4e373c3d.system.js +0 -1
  531. package/dist/mint-components/p-4eae91a9.system.js +0 -1
  532. package/dist/mint-components/p-54ffae13.entry.js +0 -194
  533. package/dist/mint-components/p-5a23b560.system.entry.js +0 -1
  534. package/dist/mint-components/p-639d3dd3.entry.js +0 -1
  535. package/dist/mint-components/p-63ac51e1.system.entry.js +0 -1
  536. package/dist/mint-components/p-84b25a46.entry.js +0 -1
  537. package/dist/mint-components/p-8690f682.system.js +0 -1
  538. package/dist/mint-components/p-93576222.system.js +0 -1
  539. package/dist/mint-components/p-947fe79b.entry.js +0 -1
  540. package/dist/mint-components/p-9596e97c.system.entry.js +0 -1
  541. package/dist/mint-components/p-974070c4.system.entry.js +0 -1
  542. package/dist/mint-components/p-99c15c5e.entry.js +0 -1
  543. package/dist/mint-components/p-9d34f4f0.entry.js +0 -33
  544. package/dist/mint-components/p-9dcfa187.system.js +0 -1
  545. package/dist/mint-components/p-9ec008cb.system.entry.js +0 -1
  546. package/dist/mint-components/p-a4282d02.system.entry.js +0 -1
  547. package/dist/mint-components/p-b1e8a802.entry.js +0 -1
  548. package/dist/mint-components/p-b2a99637.system.js +0 -1
  549. package/dist/mint-components/p-c510fb88.entry.js +0 -1
  550. package/dist/mint-components/p-c8878e79.entry.js +0 -1
  551. package/dist/mint-components/p-c92a743e.entry.js +0 -1
  552. package/dist/mint-components/p-c9fb6102.entry.js +0 -1
  553. package/dist/mint-components/p-ca809fdd.system.js +0 -1
  554. package/dist/mint-components/p-d238372a.system.entry.js +0 -1
  555. package/dist/mint-components/p-d49e2f7a.js +0 -1
  556. package/dist/mint-components/p-d7806f31.js +0 -48
  557. package/dist/mint-components/p-dd0d79bf.entry.js +0 -1
  558. package/dist/mint-components/p-def516b8.system.js +0 -1
  559. package/dist/mint-components/p-e01ac27c.system.js +0 -1
  560. package/dist/mint-components/p-e45a8501.system.entry.js +0 -1
  561. package/dist/mint-components/p-f340214f.entry.js +0 -25
  562. package/dist/mint-components/p-f36e33ff.entry.js +0 -13
  563. package/dist/mint-components/p-f55060db.js +0 -1
  564. package/dist/mint-components/p-f655a7df.js +0 -1
  565. package/dist/mint-components/p-fffc3590.entry.js +0 -9
  566. package/dist/types/components/sqm-widget-verification/sqm-widget-verification-internal.d.ts +0 -20
  567. package/dist/types/global/android.d.ts +0 -7
  568. package/dist/types/global/demo.d.ts +0 -2
  569. package/dist/types/stories/features.d.ts +0 -4
  570. package/dist/types/stories/templates.d.ts +0 -4
@@ -2,23 +2,26 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-b0129cd6.js');
6
- const stencilHooks_module = require('./stencil-hooks.module-72742a0b.js');
7
- const global = require('./global-c3637175.js');
8
- const index_module = require('./index.module-b8d9d0ba.js');
5
+ const index = require('./index-ff72278c.js');
6
+ const stencilHooks_module = require('./stencil-hooks.module-8f69ed33.js');
7
+ const global = require('./global-ae358e7d.js');
8
+ const index_module = require('./index.module-191d84c2.js');
9
9
  const jsonpointer = require('./jsonpointer-11327262.js');
10
10
  const cjs = require('./cjs-1066ec21.js');
11
- require('./mixins-fe9d4112.js');
12
- const JSS = require('./JSS-8503a151.js');
13
- const GenericTableView = require('./GenericTableView-80d7642e.js');
14
- const reRender = require('./re-render-5bde3d2e.js');
15
- const useChildElements = require('./useChildElements-410d2435.js');
16
- const luxon = require('./luxon-05098e19.js');
17
- const useReferralTable = require('./useReferralTable-824ac152.js');
18
11
  const utils = require('./utils-6847bc06.js');
19
- const sqmInvoiceTableView = require('./sqm-invoice-table-view-5d3a2d35.js');
20
- const keys = require('./keys-cff24974.js');
12
+ const JSS = require('./JSS-8503a151.js');
13
+ const mixins = require('./mixins-fe9d4112.js');
14
+ const GenericTableView = require('./GenericTableView-bb2fcd95.js');
15
+ const reRender = require('./re-render-811491ef.js');
16
+ const useChildElements = require('./useChildElements-d64dfedd.js');
17
+ const luxon = require('./luxon-45228ff5.js');
18
+ const useReferralTable = require('./useReferralTable-b09d9b9e.js');
19
+ const sqmTextSpanView = require('./sqm-text-span-view-38222836.js');
20
+ const sqmInvoiceTableView = require('./sqm-invoice-table-view-bfea11c8.js');
21
21
  const extractProps = require('./extractProps-fd93ba62.js');
22
+ const keys = require('./keys-cff24974.js');
23
+ const usePayoutStatus = require('./usePayoutStatus-9f25038a.js');
24
+ const useVerificationEmail = require('./useVerificationEmail-f3db90da.js');
22
25
 
23
26
  const TAX_CONTEXT_NAMESPACE = "sq:tax-and-cash";
24
27
  const TAX_FORM_CONTEXT_NAMESPACE = "sq:tax-form-context";
@@ -88,6 +91,7 @@ const GET_USER = index_module.dist.gql `
88
91
  }
89
92
  payoutsAccount {
90
93
  hold
94
+ holdReasons
91
95
  balance
92
96
  }
93
97
  }
@@ -864,12 +868,22 @@ const BankingInfoFormView = (props) => {
864
868
  index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
865
869
  index.h("strong", null, text.error.generalTitle),
866
870
  index.h("br", null),
867
- 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
+ }))),
868
877
  states.isPartner && !states.hideSteps && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "primary", open: true, class: sheet.classes.PartnerAlertContainer },
869
878
  index.h("sl-icon", { slot: "icon", name: "info-circle" }),
870
879
  index.h("strong", null, text.isPartnerAlertHeader),
871
880
  index.h("br", null),
872
- 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
+ }))),
873
887
  index.h("div", null,
874
888
  index.h("h4", null, text.paymentMethod),
875
889
  index.h("p", { class: classes.DescriptionText }, text.paymentMethodSubtext))),
@@ -982,18 +996,18 @@ function parseImpactThreshold(threshold) {
982
996
  return parsed.toString();
983
997
  }
984
998
  function useBankingInfoForm(props) {
985
- var _a, _b, _c, _d, _e, _f, _g, _h;
986
- const host = index_module.T();
987
- const locale = index_module.Q();
988
- const user = index_module.K();
989
- const [step, setStep] = index_module.Mn(TAX_CONTEXT_NAMESPACE);
990
- const context = index_module.Dn(TAX_FORM_CONTEXT_NAMESPACE);
991
- const countries = index_module.Dn(SORTED_COUNTRIES_NAMESPACE);
999
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
1000
+ const host = index_module._();
1001
+ const locale = index_module.L();
1002
+ const user = index_module.Q();
1003
+ const [step, setStep] = index_module.bn(TAX_CONTEXT_NAMESPACE);
1004
+ const context = index_module.In(TAX_FORM_CONTEXT_NAMESPACE);
1005
+ const countries = index_module.In(SORTED_COUNTRIES_NAMESPACE);
992
1006
  const formRef = stencilHooks_module.useRef(null);
993
- const { data: paymentOptionsData, loading: paymentOptionsLoading, errors: paymentOptionsError, } = index_module.qn(FINANCE_NETWORK_SETTINGS_NAMESPACE);
994
- const { data: userData, refetch, errors: userError, } = index_module.qn(USER_QUERY_NAMESPACE);
995
- const [saveWithdrawalSettings] = index_module.xe(SAVE_WITHDRAWAL_SETTINGS);
996
- const [updateWithdrawalSettings] = index_module.xe(UPDATE_WITHDRAWAL_SETTINGS);
1007
+ const { data: paymentOptionsData, loading: paymentOptionsLoading, errors: paymentOptionsError, } = index_module.Mn(FINANCE_NETWORK_SETTINGS_NAMESPACE);
1008
+ const { data: userData, refetch, errors: userError, } = index_module.Mn(USER_QUERY_NAMESPACE);
1009
+ const [saveWithdrawalSettings] = index_module.$e(SAVE_WITHDRAWAL_SETTINGS);
1010
+ const [updateWithdrawalSettings] = index_module.$e(UPDATE_WITHDRAWAL_SETTINGS);
997
1011
  const [showVerification, setShowVerification] = stencilHooks_module.useState(false);
998
1012
  const [currentFormData, setCurrentFormData] = stencilHooks_module.useState(null);
999
1013
  const [formState, setFormState] = stencilHooks_module.useState({});
@@ -1107,6 +1121,8 @@ function useBankingInfoForm(props) {
1107
1121
  // Call difference mutations based on whether the user is updating
1108
1122
  // the info for setting it for the first time
1109
1123
  if (isPartner) {
1124
+ if (!token)
1125
+ return; // Require token for this mutation
1110
1126
  response = await updateWithdrawalSettings({
1111
1127
  updateImpactPublisherWithdrawalSettingsInput: {
1112
1128
  ...body,
@@ -1144,6 +1160,8 @@ function useBankingInfoForm(props) {
1144
1160
  });
1145
1161
  return;
1146
1162
  }
1163
+ // Fire form change event
1164
+ window.dispatchEvent(new Event(usePayoutStatus.TAX_FORM_UPDATED_EVENT_KEY));
1147
1165
  await refetch();
1148
1166
  setStep("/dashboard");
1149
1167
  }
@@ -1219,6 +1237,7 @@ function useBankingInfoForm(props) {
1219
1237
  onBack: () => setStep("/dashboard"),
1220
1238
  setCountrySearch,
1221
1239
  onVerification,
1240
+ onVerificationHide: () => onVerification(null),
1222
1241
  },
1223
1242
  states: {
1224
1243
  showVerification,
@@ -1251,6 +1270,7 @@ function useBankingInfoForm(props) {
1251
1270
  hasPayPal,
1252
1271
  bankCountry: formState.bankCountry,
1253
1272
  countrySearch,
1273
+ email: (_j = userData === null || userData === void 0 ? void 0 : userData.user) === null || _j === void 0 ? void 0 : _j.email,
1254
1274
  },
1255
1275
  refs: {
1256
1276
  formRef,
@@ -1457,7 +1477,16 @@ const BankingInfoForm = class {
1457
1477
  * @uiName Participant is a partner alert description
1458
1478
  * @uiWidget textArea
1459
1479
  */
1460
- 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.";
1461
1490
  /**
1462
1491
  * Part of the alert displayed at the top of the page.
1463
1492
  * @uiName Form submission error message title
@@ -1469,7 +1498,7 @@ const BankingInfoForm = class {
1469
1498
  * @uiName Form submission error message description
1470
1499
  * @uiWidget textArea
1471
1500
  */
1472
- 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}.";
1473
1502
  /**
1474
1503
  * Displayed under a field that is missing required information.
1475
1504
  * @uiName Empty form field error message
@@ -1480,6 +1509,10 @@ const BankingInfoForm = class {
1480
1509
  * @uiName Form field error message
1481
1510
  */
1482
1511
  this.fieldInvalidError = "{fieldName} is invalid";
1512
+ /**
1513
+ * @uiName Support link text
1514
+ */
1515
+ this.supportLink = "support team";
1483
1516
  /**
1484
1517
  * @uiName Continue button label
1485
1518
  */
@@ -1552,23 +1585,55 @@ const BankingInfoForm = class {
1552
1585
  bitset: props.states.bitset,
1553
1586
  formMap,
1554
1587
  });
1555
- 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
+ },
1556
1616
  SearchInput: {
1557
1617
  padding: "var(--sl-spacing-x-small)",
1558
1618
  },
1559
1619
  };
1560
- if (props.states.isPartner && props.states.showVerification) {
1561
- return (index.h("sqm-code-verification", { onVerification: props.callbacks.onVerification }));
1562
- }
1563
- 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: {
1564
1629
  formInputsSlot: inputFields === null || inputFields === void 0 ? void 0 : inputFields.map(({ input }) => input),
1565
- 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) && {
1566
1631
  class: "error-input",
1567
1632
  helpText: getValidationErrorMessage({
1568
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,
1569
1634
  label: props.text.bankLocationLabel,
1570
1635
  }),
1571
- })), 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) => {
1572
1637
  // Stop shoelace intercepting key presses
1573
1638
  e.stopPropagation();
1574
1639
  }, "onSl-input": (e) => {
@@ -1579,21 +1644,21 @@ const BankingInfoForm = class {
1579
1644
  }), (_f = (_e = props.states) === null || _e === void 0 ? void 0 : _e.allCountries) === null || _f === void 0 ? void 0 :
1580
1645
  _f.map((c) => (index.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } }, c.displayName))))),
1581
1646
  paymentMethodSlot: (index.h("sl-input", { key: "paymentMethod", label: props.text.paymentMethod, placeholder: props.states.paymentMethodFeeLabel, disabled: true })),
1582
- 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) && {
1583
1648
  class: "error-input",
1584
1649
  helpText: getValidationErrorMessage({
1585
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,
1586
1651
  label: props.text.paymentThresholdSelectLabel,
1587
1652
  }),
1588
1653
  })), props.states.thresholds.map((t) => (index.h("sl-menu-item", { value: t }, `${props.states.currency}${t}`))))),
1589
- 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) && {
1590
1655
  class: "error-input",
1591
1656
  helpText: getValidationErrorMessage({
1592
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,
1593
1658
  label: props.text.paymentDaySelectLabel,
1594
1659
  }),
1595
1660
  })), index.h("sl-menu-item", { value: "1" }, props.text.paymentDayFirstOfMonthLabelText), index.h("sl-menu-item", { value: "15" }, props.text.paymentDayFifteenthOfMonthLabelText))),
1596
- 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) && {
1597
1662
  class: "error-input",
1598
1663
  helpText: getValidationErrorMessage({
1599
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,
@@ -1609,7 +1674,7 @@ function useDemoBankingInfoForm(props) {
1609
1674
  const defaultPaymentScheduleChecked = (_f = (_e = (_d = props.demoData) === null || _d === void 0 ? void 0 : _d.states) === null || _e === void 0 ? void 0 : _e.formState) === null || _f === void 0 ? void 0 : _f.paymentScheduleChecked;
1610
1675
  const defaultCurrency = (_h = (_g = props.demoData) === null || _g === void 0 ? void 0 : _g.states) === null || _h === void 0 ? void 0 : _h.currency;
1611
1676
  const defaultCountry = (_l = (_k = (_j = props.demoData) === null || _j === void 0 ? void 0 : _j.states) === null || _k === void 0 ? void 0 : _k.formState) === null || _l === void 0 ? void 0 : _l.bankCountry;
1612
- const setStep = index_module.Sn(TAX_CONTEXT_NAMESPACE);
1677
+ const setStep = index_module.wn(TAX_CONTEXT_NAMESPACE);
1613
1678
  const [paymentMethodChecked, setPaymentMethodChecked] = stencilHooks_module.useState(undefined);
1614
1679
  const [paymentScheduleChecked, setPaymentScheduleChecked] = stencilHooks_module.useState(undefined);
1615
1680
  const [currency, setCurrency] = stencilHooks_module.useState(defaultCurrency);
@@ -1684,6 +1749,7 @@ function useDemoBankingInfoForm(props) {
1684
1749
  hasPayPal: true,
1685
1750
  },
1686
1751
  callbacks: {
1752
+ onVerificationHide: () => { },
1687
1753
  onSubmit: async () => {
1688
1754
  setStep("/dashboard");
1689
1755
  },
@@ -1701,6 +1767,331 @@ function useDemoBankingInfoForm(props) {
1701
1767
  }, props.demoData || {}, { arrayMerge: (_, a) => a });
1702
1768
  }
1703
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.bn(keys.SHOW_CODE_NAMESPACE);
1908
+ const email = index_module.In(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.wn(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
+
1704
2095
  const GET_TAX_DOCUMENT = index_module.dist.gql `
1705
2096
  mutation createImpactPublisherTaxDocument(
1706
2097
  $vars: CreateImpactPublisherTaxDocumentInput!
@@ -1728,13 +2119,13 @@ const DOCUSIGN_ERROR_STATES = [
1728
2119
  const DOCUSIGN_EXPIRED_STATES = ["ttl_expired", "session_timeout"];
1729
2120
  function useDocusignForm(props) {
1730
2121
  var _a, _b, _c;
1731
- const user = index_module.K();
1732
- const context = index_module.Dn(TAX_FORM_CONTEXT_NAMESPACE);
1733
- const [step, setStep] = index_module.Mn(TAX_CONTEXT_NAMESPACE);
1734
- const { data, loading: userLoading, refetch, } = index_module.qn(USER_QUERY_NAMESPACE);
2122
+ const user = index_module.Q();
2123
+ const context = index_module.In(TAX_FORM_CONTEXT_NAMESPACE);
2124
+ const [step, setStep] = index_module.bn(TAX_CONTEXT_NAMESPACE);
2125
+ const { data, loading: userLoading, refetch, } = index_module.Mn(USER_QUERY_NAMESPACE);
1735
2126
  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;
1736
- const [createTaxDocument, { loading: documentLoading, data: document, errors: documentErrors },] = index_module.xe(GET_TAX_DOCUMENT);
1737
- const [completeTaxDocument, { loading: completeDocumentLoading, data: completeData, errors: completeErrors, },] = index_module.xe(COMPLETE_TAX_DOCUMENT);
2127
+ const [createTaxDocument, { loading: documentLoading, data: document, errors: documentErrors },] = index_module.$e(GET_TAX_DOCUMENT);
2128
+ const [completeTaxDocument, { loading: completeDocumentLoading, data: completeData, errors: completeErrors, },] = index_module.$e(COMPLETE_TAX_DOCUMENT);
1738
2129
  const [docusignStatus, setDocusignStatus] = stencilHooks_module.useState(undefined);
1739
2130
  const [participantType, setParticipantType] = stencilHooks_module.useState(undefined);
1740
2131
  const [errors, setErrors] = stencilHooks_module.useState({});
@@ -1798,6 +2189,8 @@ function useDocusignForm(props) {
1798
2189
  // @ts-expect-error: no data type for result
1799
2190
  if (!result.completeImpactPublisherTaxDocument.success)
1800
2191
  throw new Error();
2192
+ // Fire form change event
2193
+ window.dispatchEvent(new Event(usePayoutStatus.TAX_FORM_UPDATED_EVENT_KEY));
1801
2194
  setShowExitButton(true);
1802
2195
  }
1803
2196
  catch (e) {
@@ -1856,7 +2249,7 @@ function getDocumentType(p) {
1856
2249
  return undefined;
1857
2250
  }
1858
2251
 
1859
- const style$1 = {
2252
+ const style$2 = {
1860
2253
  DocusignStatusContainer: {
1861
2254
  width: "100%",
1862
2255
  minHeight: "600px",
@@ -1883,13 +2276,13 @@ const style$1 = {
1883
2276
  },
1884
2277
  },
1885
2278
  };
1886
- const sheet$1 = JSS.createStyleSheet(style$1);
1887
- const styleString$1 = sheet$1.toString();
2279
+ const sheet$2 = JSS.createStyleSheet(style$2);
2280
+ const styleString$2 = sheet$2.toString();
1888
2281
  const DocusignExpiredView = (props) => {
1889
- const { classes } = sheet$1;
2282
+ const { classes } = sheet$2;
1890
2283
  const { text } = props;
1891
2284
  return (index.h("div", null,
1892
- index.h("style", { type: "text/css" }, styleString$1),
2285
+ index.h("style", { type: "text/css" }, styleString$2),
1893
2286
  index.h("div", { class: classes.DocusignStatusContainer },
1894
2287
  index.h("sl-icon", { style: {
1895
2288
  width: "50px",
@@ -1901,10 +2294,10 @@ const DocusignExpiredView = (props) => {
1901
2294
  index.h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
1902
2295
  };
1903
2296
  const DocusignErrorView = (props) => {
1904
- const { classes } = sheet$1;
2297
+ const { classes } = sheet$2;
1905
2298
  const { text } = props;
1906
2299
  return (index.h("div", null,
1907
- index.h("style", { type: "text/css" }, styleString$1),
2300
+ index.h("style", { type: "text/css" }, styleString$2),
1908
2301
  index.h("div", { class: classes.DocusignStatusContainer },
1909
2302
  index.h("sl-icon", { style: {
1910
2303
  width: "50px",
@@ -1916,14 +2309,14 @@ const DocusignErrorView = (props) => {
1916
2309
  index.h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
1917
2310
  };
1918
2311
  const DocusignLoadingView = () => {
1919
- const { classes } = sheet$1;
2312
+ const { classes } = sheet$2;
1920
2313
  return (index.h("div", null,
1921
- index.h("style", { type: "text/css" }, styleString$1),
2314
+ index.h("style", { type: "text/css" }, styleString$2),
1922
2315
  index.h("div", { class: classes.DocusignStatusContainer },
1923
2316
  index.h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } }))));
1924
2317
  };
1925
2318
  const DocusignIframe = ({ states, data, callbacks, text, }) => {
1926
- const { classes } = sheet$1;
2319
+ const { classes } = sheet$2;
1927
2320
  const [iFrameHeight, setiFrameHeight] = stencilHooks_module.useState("100%");
1928
2321
  const allowedDomains = [
1929
2322
  "referralsaasquatch.com",
@@ -1956,12 +2349,12 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
1956
2349
  return index.h(DocusignExpiredView, { text: text });
1957
2350
  // Wrap iFrame with container that shares the same height to push other elements down when absolute positioned
1958
2351
  return (index.h("div", { style: { height: iFrameHeight } },
1959
- index.h("style", { type: "text/css" }, styleString$1),
2352
+ index.h("style", { type: "text/css" }, styleString$2),
1960
2353
  index.h("div", { class: classes.IFrameContainer },
1961
2354
  index.h("iframe", { scrolling: "yes", frameBorder: "0", width: "100%", src: data.documentUrl, height: iFrameHeight }))));
1962
2355
  };
1963
2356
 
1964
- const style$2 = {
2357
+ const style$3 = {
1965
2358
  FormWrapper: {
1966
2359
  display: "flex",
1967
2360
  justifyContent: "flex-start",
@@ -2074,9 +2467,9 @@ const style$2 = {
2074
2467
  fontSize: "var(--sl-font-size-medium)",
2075
2468
  },
2076
2469
  };
2077
- const sheet$2 = JSS.createStyleSheet(style$2);
2078
- const styleString$2 = sheet$2.toString();
2079
- const vanillaStyle$1 = `
2470
+ const sheet$3 = JSS.createStyleSheet(style$3);
2471
+ const styleString$3 = sheet$3.toString();
2472
+ const vanillaStyle$2 = `
2080
2473
  :host{
2081
2474
  display: block;
2082
2475
  }
@@ -2101,11 +2494,11 @@ const vanillaStyle$1 = `
2101
2494
  const DocusignFormView = (props) => {
2102
2495
  var _a;
2103
2496
  const { states, states: { formState, documentTypeString }, callbacks, text, slots, } = props;
2104
- const { classes } = sheet$2;
2497
+ const { classes } = sheet$3;
2105
2498
  return (index.h("div", { class: classes.Container },
2106
2499
  index.h("style", { type: "text/css" },
2107
- styleString$2,
2108
- vanillaStyle$1),
2500
+ styleString$3,
2501
+ vanillaStyle$2),
2109
2502
  index.h("div", { class: classes.TextContainer },
2110
2503
  index.h("div", null,
2111
2504
  !states.hideSteps && (index.h("p", null, global.intl.formatMessage({
@@ -2115,16 +2508,26 @@ const DocusignFormView = (props) => {
2115
2508
  index.h("h3", null, text.taxForm),
2116
2509
  index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
2117
2510
  states.loadingError && (index.h("div", null,
2118
- 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 },
2119
2512
  index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
2120
2513
  index.h("strong", null, text.error.loadingErrorAlertHeader),
2121
2514
  index.h("br", null),
2122
- text.error.loadingErrorAlertDescription))),
2123
- ((_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 },
2124
2522
  index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
2125
2523
  index.h("strong", null, text.error.generalTitle),
2126
2524
  index.h("br", null),
2127
- 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
+ }))),
2128
2531
  index.h("div", null,
2129
2532
  index.h("div", null,
2130
2533
  index.h("h5", { class: classes.BoldText }, global.intl.formatMessage({ id: "tax-form-label", defaultMessage: text.taxFormLabel }, { documentType: documentTypeString })),
@@ -2163,6 +2566,10 @@ const DocusignForm = class {
2163
2566
  * @uiWidget textArea
2164
2567
  */
2165
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";
2166
2573
  /**
2167
2574
  * Displayed at the top of the page to individuals joining a US program who reside outside the country.
2168
2575
  * @uiName W-8 BEN tax form description
@@ -2206,7 +2613,7 @@ const DocusignForm = class {
2206
2613
  * @uiName Docusign form error message
2207
2614
  * @uiWidget textArea
2208
2615
  */
2209
- 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}.";
2210
2617
  /**
2211
2618
  * @uiName Refresh page button label
2212
2619
  */
@@ -2222,7 +2629,7 @@ const DocusignForm = class {
2222
2629
  * @uiName Form submission error message description
2223
2630
  * @uiWidget textArea
2224
2631
  */
2225
- 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}.";
2226
2633
  /**
2227
2634
  * Part of the alert displayed at the top of the page.
2228
2635
  * @uiName Page load error message title
@@ -2234,7 +2641,7 @@ const DocusignForm = class {
2234
2641
  * @uiName Page load error message description
2235
2642
  * @uiWidget textArea
2236
2643
  */
2237
- 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}.";
2238
2645
  /**
2239
2646
  * Displayed at the top of the page on all set up steps.
2240
2647
  * @uiName Page description
@@ -2282,7 +2689,7 @@ const DocusignForm = class {
2282
2689
  get el() { return index.getElement(this); }
2283
2690
  };
2284
2691
  function useDocusignFormDemo(props) {
2285
- const setStep = index_module.Sn(TAX_CONTEXT_NAMESPACE);
2692
+ const setStep = index_module.wn(TAX_CONTEXT_NAMESPACE);
2286
2693
  return cjs.cjs({
2287
2694
  text: props.getTextProps(),
2288
2695
  states: {
@@ -2331,7 +2738,7 @@ const DemoDocusignIframe = ({ callbacks }) => {
2331
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")))));
2332
2739
  };
2333
2740
 
2334
- const style$3 = {
2741
+ const style$4 = {
2335
2742
  FormWrapper: {
2336
2743
  display: "flex",
2337
2744
  justifyContent: "flex-start",
@@ -2419,11 +2826,9 @@ const style$3 = {
2419
2826
  border: "none",
2420
2827
  },
2421
2828
  "&::part(message)": {
2422
- display: "flex",
2423
2829
  alignItems: "center",
2424
- justifyContent: "flex-start",
2425
- padding: "10px",
2426
- height: "max-content",
2830
+ padding: "var(--sl-spacing-small)",
2831
+ whiteSpace: "nowrap",
2427
2832
  },
2428
2833
  "& sl-icon::part(base)": {
2429
2834
  color: "var(--sl-color-yellow-500)",
@@ -2439,9 +2844,9 @@ const style$3 = {
2439
2844
  marginBottom: "var(--sl-spacing-small)",
2440
2845
  },
2441
2846
  };
2442
- const sheet$3 = JSS.createStyleSheet(style$3);
2443
- const styleString$3 = sheet$3.toString();
2444
- const vanillaStyle$2 = `
2847
+ const sheet$4 = JSS.createStyleSheet(style$4);
2848
+ const styleString$4 = sheet$4.toString();
2849
+ const vanillaStyle$3 = `
2445
2850
  :host{
2446
2851
  display: block;
2447
2852
  }
@@ -2460,11 +2865,11 @@ const vanillaStyle$2 = `
2460
2865
  const IndirectTaxFormView = (props) => {
2461
2866
  var _a;
2462
2867
  const { states, states: { formState }, callbacks, text, refs, slots, } = props;
2463
- const { classes } = sheet$3;
2868
+ const { classes } = sheet$4;
2464
2869
  return (index.h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
2465
2870
  index.h("style", { type: "text/css" },
2466
- styleString$3,
2467
- vanillaStyle$2),
2871
+ styleString$4,
2872
+ vanillaStyle$3),
2468
2873
  index.h("div", { class: classes.TextContainer },
2469
2874
  index.h("div", null,
2470
2875
  !states.hideSteps && (index.h("p", null,
@@ -2477,21 +2882,36 @@ const IndirectTaxFormView = (props) => {
2477
2882
  index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription),
2478
2883
  index.h("p", { class: classes.DescriptionText }, text.indirectTaxDescription)),
2479
2884
  states.loadingError && (index.h("div", null,
2480
- 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 },
2481
2886
  index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
2482
2887
  index.h("strong", null, text.error.loadingErrorAlertHeader),
2483
2888
  index.h("br", null),
2484
- text.error.loadingErrorAlertDescription))),
2485
- ((_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 },
2486
2896
  index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
2487
2897
  index.h("strong", null, text.error.generalTitle),
2488
2898
  index.h("br", null),
2489
- text.error.generalDescription)),
2490
- 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" },
2491
2906
  index.h("sl-icon", { slot: "icon", name: "info-circle" }),
2492
2907
  index.h("strong", null, text.isPartnerAlertHeader),
2493
2908
  index.h("br", null),
2494
- 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
+ }))),
2495
2915
  index.h("div", null,
2496
2916
  index.h("h4", null, text.indirectTaxDetails))),
2497
2917
  states.loading ? (index.h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } })) : (index.h("div", null,
@@ -2508,7 +2928,12 @@ const IndirectTaxFormView = (props) => {
2508
2928
  slots.registeredInDifferentCountryDetailsSlot)),
2509
2929
  index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "primary", open: true, class: classes.InfoAlert },
2510
2930
  index.h("sl-icon", { class: classes.InfoWarningIcon, slot: "icon", name: "exclamation-triangle" }),
2511
- 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
+ })),
2512
2937
  index.h("div", { class: classes.BtnContainer },
2513
2938
  index.h("sl-button", { type: "primary", disabled: states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton),
2514
2939
  index.h("sl-button", { class: classes.SecondaryBtn, type: "text", disabled: states.disabled, onClick: callbacks.onBack, exportparts: "base: secondarybutton-base" }, text.backButton))))));
@@ -2552,15 +2977,15 @@ function getOption(countries, countryCode) {
2552
2977
  }
2553
2978
  function useIndirectTaxForm(props) {
2554
2979
  var _a, _b, _c, _d, _e;
2555
- const user = index_module.K();
2556
- const locale = index_module.Q();
2980
+ const user = index_module.Q();
2981
+ const locale = index_module.L();
2557
2982
  const formRef = stencilHooks_module.useRef(null);
2558
- const context = index_module.Dn(TAX_FORM_CONTEXT_NAMESPACE);
2559
- const [step, setStep] = index_module.Mn(TAX_CONTEXT_NAMESPACE);
2560
- const [connectImpactPartner, { loading: connectLoading, errors: connectErrors },] = index_module.xe(CONNECT_PARTNER);
2561
- const userForm = index_module.Dn(USER_FORM_CONTEXT_NAMESPACE);
2562
- const { data: userData, refetch, errors: userError, } = index_module.qn(USER_QUERY_NAMESPACE);
2563
- const { data: _countriesRes, loading: countriesLoading } = index_module.qn(COUNTRIES_QUERY_NAMESPACE);
2983
+ const context = index_module.In(TAX_FORM_CONTEXT_NAMESPACE);
2984
+ const [step, setStep] = index_module.bn(TAX_CONTEXT_NAMESPACE);
2985
+ const [connectImpactPartner, { loading: connectLoading, errors: connectErrors },] = index_module.$e(CONNECT_PARTNER);
2986
+ const userForm = index_module.In(USER_FORM_CONTEXT_NAMESPACE);
2987
+ const { data: userData, refetch, errors: userError, } = index_module.Mn(USER_QUERY_NAMESPACE);
2988
+ const { data: _countriesRes, loading: countriesLoading } = index_module.Mn(COUNTRIES_QUERY_NAMESPACE);
2564
2989
  const intlLocale = (locale === null || locale === void 0 ? void 0 : locale.replace("_", "-")) || "en";
2565
2990
  const _countries = stencilHooks_module.useMemo(() => { var _a, _b; return (_b = (_a = _countriesRes === null || _countriesRes === void 0 ? void 0 : _countriesRes.impactPayoutCountries) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.map((country) => sqmInvoiceTableView.getCountryObj({ countryCode: country.countryCode, locale: intlLocale })); }, [(_a = _countriesRes === null || _countriesRes === void 0 ? void 0 : _countriesRes.impactPayoutCountries) === null || _a === void 0 ? void 0 : _a.data]);
2566
2991
  const [loading, setLoading] = stencilHooks_module.useState(false);
@@ -2678,6 +3103,8 @@ function useIndirectTaxForm(props) {
2678
3103
  const resultPublisher = (_e = (_d = (_c = result
2679
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;
2680
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));
2681
3108
  if ((resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) &&
2682
3109
  !hasValidCurrentDocument) {
2683
3110
  // Go to docusign form
@@ -2836,7 +3263,7 @@ const IndirectTaxForm = class {
2836
3263
  * @uiName Submission confirmation alert
2837
3264
  * @uiWidget textArea
2838
3265
  */
2839
- 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.";
2840
3267
  /**
2841
3268
  * @uiName Missing indirect tax number error message
2842
3269
  */
@@ -2862,11 +3289,15 @@ const IndirectTaxForm = class {
2862
3289
  * @uiName Participant is a partner alert description
2863
3290
  * @uiWidget textArea
2864
3291
  */
2865
- 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.";
2866
3293
  /**
2867
3294
  * @uiName Continue button label
2868
3295
  */
2869
3296
  this.continueButton = "Continue";
3297
+ /**
3298
+ * @uiName Support link text
3299
+ */
3300
+ this.supportLink = "support team";
2870
3301
  /**
2871
3302
  * Part of the alert displayed at the top of the page.
2872
3303
  * @uiName Form submission error message title
@@ -2878,7 +3309,7 @@ const IndirectTaxForm = class {
2878
3309
  * @uiName Form submission error message description
2879
3310
  * @uiWidget textArea
2880
3311
  */
2881
- 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}.";
2882
3313
  /**
2883
3314
  * Part of the alert displayed at the top of the page.
2884
3315
  * @uiName Page load error message title
@@ -2890,7 +3321,7 @@ const IndirectTaxForm = class {
2890
3321
  * @uiName Page load error message description
2891
3322
  * @uiWidget textArea
2892
3323
  */
2893
- 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}.";
2894
3325
  /**
2895
3326
  * Displayed at the top of the page on all set up steps.
2896
3327
  * @uiName Page description
@@ -2949,7 +3380,7 @@ const IndirectTaxForm = class {
2949
3380
  }
2950
3381
  };
2951
3382
  function useDemoIndirectTaxForm(props) {
2952
- const setStep = index_module.Sn(TAX_CONTEXT_NAMESPACE);
3383
+ const setStep = index_module.wn(TAX_CONTEXT_NAMESPACE);
2953
3384
  const [option, setOption] = stencilHooks_module.useState(null);
2954
3385
  const [demoFormState, setDemoFormState] = stencilHooks_module.useState({});
2955
3386
  return cjs.cjs({
@@ -3059,8 +3490,8 @@ const GET_INVOICES = index_module.dist.gql `
3059
3490
  `;
3060
3491
  function useInvoiceTable(props, emptyElement, loadingElement) {
3061
3492
  var _a;
3062
- const user = index_module.K();
3063
- const locale = index_module.Q();
3493
+ const user = index_module.Q();
3494
+ const locale = index_module.L();
3064
3495
  const [content, setContent] = stencilHooks_module.useReducer((state, next) => ({
3065
3496
  ...state,
3066
3497
  ...next,
@@ -3070,7 +3501,7 @@ function useInvoiceTable(props, emptyElement, loadingElement) {
3070
3501
  loading: false,
3071
3502
  page: 0,
3072
3503
  });
3073
- const { envelope: invoicesData, states, callbacks, } = index_module.On(GET_INVOICES, (data) => { var _a, _b, _c; return (_c = (_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) === null || _c === void 0 ? void 0 : _c.invoices; }, {
3504
+ const { envelope: invoicesData, states, callbacks, } = index_module.kn(GET_INVOICES, (data) => { var _a, _b, _c; return (_c = (_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) === null || _c === void 0 ? void 0 : _c.invoices; }, {
3074
3505
  limit: props.perPage,
3075
3506
  offset: 0,
3076
3507
  }, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
@@ -3446,7 +3877,7 @@ const PayPalIcon = () => (index.h("svg", { xmlns: "http://www.w3.org/2000/svg",
3446
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" }),
3447
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" })));
3448
3879
 
3449
- const style$4 = {
3880
+ const style$5 = {
3450
3881
  CardContainer: {
3451
3882
  display: "grid",
3452
3883
  gridTemplateColumns: "1fr",
@@ -3580,7 +4011,7 @@ const style$4 = {
3580
4011
  },
3581
4012
  };
3582
4013
  function PayoutDetailsCardView(props) {
3583
- const sheet = JSS.createStyleSheet(style$4);
4014
+ const sheet = JSS.createStyleSheet(style$5);
3584
4015
  const styleString = sheet.toString();
3585
4016
  const { classes } = sheet;
3586
4017
  const { states, text } = props;
@@ -3610,11 +4041,6 @@ function PayoutDetailsCardView(props) {
3610
4041
  });
3611
4042
  return (index.h("div", { class: classes.Container },
3612
4043
  index.h("style", { type: "text/css" }, styleString),
3613
- states.error && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", class: classes.Alert, type: "warning", open: true },
3614
- index.h("sl-icon", { slot: "icon", name: "exclamation-triangle" }),
3615
- index.h("div", { class: classes.AlertContent },
3616
- index.h("b", null, text.error.errorTitleText),
3617
- text.error.errorDescriptionText))),
3618
4044
  states.loading ? (renderLoadingSkeleton()) : (index.h("div", { class: classes.CardContainer },
3619
4045
  index.h("div", { class: classes.StatusContainer },
3620
4046
  index.h("p", { class: classes.SubduedRegularText }, states.badgeStatus === "thresholdPayout"
@@ -3636,7 +4062,7 @@ function PayoutDetailsCardView(props) {
3636
4062
 
3637
4063
  function usePayoutDetailsCard(props) {
3638
4064
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
3639
- const { data, loading } = index_module.qn(USER_QUERY_NAMESPACE);
4065
+ const { data, loading } = index_module.Mn(USER_QUERY_NAMESPACE);
3640
4066
  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;
3641
4067
  function getPayoutDetailedStatusText(paymentDay) {
3642
4068
  var _a;
@@ -3710,16 +4136,6 @@ const PayoutDetailsCard = class {
3710
4136
  * @uiName Bank account field label
3711
4137
  */
3712
4138
  this.accountText = "Account";
3713
- /**
3714
- * Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
3715
- * @uiName Payout error message title
3716
- */
3717
- this.errorTitleText = "Your payout is on hold ";
3718
- /**
3719
- * Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
3720
- * @uiName Payout error message description
3721
- */
3722
- 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.";
3723
4139
  /**
3724
4140
  * Text displayed for existing publishers that do not have saved banking information.
3725
4141
  * @uiName Payout missing information subtext
@@ -3732,10 +4148,6 @@ const PayoutDetailsCard = class {
3732
4148
  const props = utils.getProps(this);
3733
4149
  return {
3734
4150
  ...props,
3735
- error: {
3736
- errorTitleText: this.errorTitleText,
3737
- errorDescriptionText: this.errorDescriptionText,
3738
- },
3739
4151
  };
3740
4152
  }
3741
4153
  render() {
@@ -3807,21 +4219,21 @@ function getCurrentStep(user) {
3807
4219
  }
3808
4220
  function useTaxAndCash() {
3809
4221
  var _a, _b, _c, _d, _e;
3810
- const host = index_module.T();
3811
- const user = index_module.K();
3812
- const locale = index_module.Q();
4222
+ const host = index_module._();
4223
+ const user = index_module.Q();
4224
+ const locale = index_module.L();
3813
4225
  // State for current step of form
3814
- const [step, setStep] = index_module.Fn({
4226
+ const [step, setStep] = index_module.Cn({
3815
4227
  namespace: TAX_CONTEXT_NAMESPACE,
3816
4228
  initialValue: "/loading",
3817
4229
  });
3818
4230
  // State for when to hide steps, or override certain actions
3819
- const [context, _setContext] = index_module.Fn({
4231
+ const [context, _setContext] = index_module.Cn({
3820
4232
  namespace: TAX_FORM_CONTEXT_NAMESPACE,
3821
4233
  initialValue: {},
3822
4234
  });
3823
4235
  // State to carry user form information into step 2
3824
- const [userFormContext, _setUserFormContext] = index_module.Fn({
4236
+ const [userFormContext, _setUserFormContext] = index_module.Cn({
3825
4237
  namespace: USER_FORM_CONTEXT_NAMESPACE,
3826
4238
  initialValue: {
3827
4239
  firstName: undefined,
@@ -3831,19 +4243,19 @@ function useTaxAndCash() {
3831
4243
  currency: undefined,
3832
4244
  },
3833
4245
  });
3834
- const [_currenciesContext, setCurrenciesContext] = index_module.Fn({
4246
+ const [_currenciesContext, setCurrenciesContext] = index_module.Cn({
3835
4247
  namespace: CURRENCIES_NAMESPACE,
3836
4248
  initialValue: [],
3837
4249
  });
3838
- const [_countriesContext, _setCountriesContext] = index_module.Fn({
4250
+ const [_countriesContext, _setCountriesContext] = index_module.Cn({
3839
4251
  namespace: COUNTRIES_NAMESPACE,
3840
4252
  initialValue: [],
3841
4253
  });
3842
- const [_sortedCountriesContext, setSortedCountriesContext] = index_module.Fn({
4254
+ const [_sortedCountriesContext, setSortedCountriesContext] = index_module.Cn({
3843
4255
  namespace: SORTED_COUNTRIES_NAMESPACE,
3844
4256
  initialValue: [],
3845
4257
  });
3846
- const { data, errors } = index_module.An({
4258
+ const { data, errors } = index_module.Fn({
3847
4259
  namespace: USER_QUERY_NAMESPACE,
3848
4260
  query: GET_USER,
3849
4261
  skip: !user,
@@ -3853,12 +4265,12 @@ function useTaxAndCash() {
3853
4265
  });
3854
4266
  const countryCode = ((_c = (_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) === null || _c === void 0 ? void 0 : _c.countryCode) ||
3855
4267
  userFormContext.countryCode;
3856
- index_module.An({
4268
+ index_module.Fn({
3857
4269
  namespace: COUNTRIES_QUERY_NAMESPACE,
3858
4270
  query: GET_COUNTRIES,
3859
4271
  skip: !user,
3860
4272
  });
3861
- const { data: financeNetworkData, refetch } = index_module.An({
4273
+ const { data: financeNetworkData, refetch } = index_module.Fn({
3862
4274
  namespace: FINANCE_NETWORK_SETTINGS_NAMESPACE,
3863
4275
  query: GET_FINANCE_NETWORK_SETTINGS,
3864
4276
  skip: !user,
@@ -3866,7 +4278,7 @@ function useTaxAndCash() {
3866
4278
  filter: getFinanceNetworkFilter(),
3867
4279
  },
3868
4280
  });
3869
- const { data: currenciesData } = index_module.An({
4281
+ const { data: currenciesData } = index_module.Fn({
3870
4282
  namespace: CURRENCIES_QUERY_NAMESPACE,
3871
4283
  query: GET_CURRENCIES,
3872
4284
  skip: !user,
@@ -3947,7 +4359,7 @@ function useTaxAndCash() {
3947
4359
  step,
3948
4360
  setStep,
3949
4361
  context,
3950
- namespace: index_module.$n(TAX_CONTEXT_NAMESPACE),
4362
+ namespace: index_module.Pn(TAX_CONTEXT_NAMESPACE),
3951
4363
  loading: step === "/loading",
3952
4364
  };
3953
4365
  }
@@ -4049,13 +4461,15 @@ const TaxAndCashMonolith = class {
4049
4461
  * @uiName Terms and conditions link
4050
4462
  * @uiGroup Step 1 Properties
4051
4463
  */
4052
- this.step1_termsAndConditionsLink = "/payout-terms-and-conditions";
4464
+ this.step1_termsAndConditionsLink = "https://terms.advocate.impact.com/PayoutTermsAndConditions.html";
4053
4465
  /**
4054
4466
  * Placeholder text displayed in the currency search dropdown
4055
4467
  * @uiName Currency field placeholder text
4056
4468
  * @uiGroup Step 1 Properties
4057
4469
  */
4058
4470
  this.step1_searchForCurrencyText = "Search for currency..";
4471
+ /**
4472
+
4059
4473
  /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4060
4474
  STEP 2 PROPS:
4061
4475
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
@@ -4158,7 +4572,7 @@ const TaxAndCashMonolith = class {
4158
4572
  * @uiGroup Step 2 Properties
4159
4573
  * @uiWidget textArea
4160
4574
  */
4161
- 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.";
4162
4576
  /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4163
4577
  STEP 3 PROPS:
4164
4578
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
@@ -4231,7 +4645,7 @@ const TaxAndCashMonolith = class {
4231
4645
  * @uiGroup Step 3 Properties
4232
4646
  * @uiWidget textArea
4233
4647
  */
4234
- 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}.";
4235
4649
  /**
4236
4650
  * @uiName Refresh page button label
4237
4651
  * @uiGroup Step 3 Properties
@@ -4456,6 +4870,16 @@ const TaxAndCashMonolith = class {
4456
4870
  * @uiGroup Step 4 Properties
4457
4871
  */
4458
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.";
4459
4883
  /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4460
4884
  DASHBOARD PROPS:
4461
4885
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
@@ -4593,7 +5017,7 @@ const TaxAndCashMonolith = class {
4593
5017
  * @uiGroup Dashboard Properties
4594
5018
  * @uiWidget textArea
4595
5019
  */
4596
- 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}.";
4597
5021
  /**
4598
5022
  * Displayed to participants who have submitted their indirect tax information.
4599
5023
  *
@@ -4616,7 +5040,7 @@ const TaxAndCashMonolith = class {
4616
5040
  * @uiGroup Dashboard Properties
4617
5041
  * @uiWidget textArea
4618
5042
  */
4619
- 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.";
4620
5044
  /**
4621
5045
  * Displayed to participants registered in Quebec, Canada.
4622
5046
  * @uiName QST indirect tax details
@@ -4688,14 +5112,14 @@ const TaxAndCashMonolith = class {
4688
5112
  * @uiGroup Dashboard Properties
4689
5113
  * @uiWidget textArea
4690
5114
  */
4691
- this.payoutHoldAlertHeader = "Your payout is on hold";
5115
+ this.dashboard_payoutHoldAlertHeader = "Your payout is on hold";
4692
5116
  /**
4693
5117
  * Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
4694
5118
  * @uiName Payout error message description
4695
5119
  * @uiGroup Dashboard Properties
4696
5120
  * @uiWidget textArea
4697
5121
  */
4698
- this.payoutHoldAlertDescription = "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.";
4699
5123
  /**
4700
5124
  * Text displayed for existing publishers that do not have saved banking information.
4701
5125
  * @uiName Payout missing information subtext
@@ -4743,6 +5167,63 @@ const TaxAndCashMonolith = class {
4743
5167
  * @uiWidget textArea
4744
5168
  */
4745
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";
4746
5227
  /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4747
5228
  GENERAL PROPS:
4748
5229
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
@@ -4764,7 +5245,7 @@ const TaxAndCashMonolith = class {
4764
5245
  * @uiGroup General Form Properties
4765
5246
  * @uiWidget textArea
4766
5247
  */
4767
- 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}.";
4768
5249
  /**
4769
5250
  * Displayed under a field that is missing required information.
4770
5251
  * @uiName Empty form field error message
@@ -4811,7 +5292,7 @@ const TaxAndCashMonolith = class {
4811
5292
  * @uiGroup General Form Properties
4812
5293
  * @uiWidget textArea
4813
5294
  */
4814
- 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.";
4815
5296
  /**
4816
5297
  * Placeholder text displayed in the country search dropdown
4817
5298
  * @uiName Country field placeholder text
@@ -4831,13 +5312,19 @@ const TaxAndCashMonolith = class {
4831
5312
  * @uiGroup General Form Properties
4832
5313
  * @uiWidget textArea
4833
5314
  */
4834
- 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}.";
4835
5316
  /**
4836
5317
  * Displayed at the top of the page on all set up steps.
4837
5318
  * @uiName Page description
4838
5319
  * @uiGroup General Form Properties
4839
5320
  */
4840
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";
4841
5328
  stencilHooks_module.h$1(this);
4842
5329
  }
4843
5330
  disconnectedCallback() { }
@@ -4861,6 +5348,7 @@ const TaxAndCashMonolith = class {
4861
5348
  taxAndPayoutsDescription: props.taxAndPayoutsDescription,
4862
5349
  searchForCountryText: props.searchForCountryText,
4863
5350
  formStep: props.formStep,
5351
+ supportLink: props.supportLink,
4864
5352
  };
4865
5353
  }
4866
5354
  render() {
@@ -4893,7 +5381,7 @@ const TaxAndCashMonolith = class {
4893
5381
  }
4894
5382
  };
4895
5383
  function useDemoTaxAndCash(props) {
4896
- const [step, setStep] = index_module.Fn({
5384
+ const [step, setStep] = index_module.Cn({
4897
5385
  namespace: TAX_CONTEXT_NAMESPACE,
4898
5386
  initialValue: "/1",
4899
5387
  });
@@ -4903,18 +5391,47 @@ function useDemoTaxAndCash(props) {
4903
5391
  }, props.demoData || {}, { arrayMerge: (_, a) => a });
4904
5392
  }
4905
5393
 
4906
- const style$5 = {
4907
- WarningAlertContainer: {
5394
+ const style$6 = {
5395
+ ErrorAlertContainer: {
4908
5396
  "&::part(base)": {
4909
5397
  backgroundColor: "var(--sl-color-red-100)",
4910
5398
  borderTop: "none",
4911
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
+ },
4912
5413
  },
4913
- HoldAlertContainer: {
5414
+ WarningHoldAlertContainer: {
5415
+ marginLeft: "-20px",
4914
5416
  "&::part(base)": {
5417
+ maxWidth: "850px",
4915
5418
  border: "none",
4916
5419
  backgroundColor: "transparent",
4917
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
+ },
4918
5435
  },
4919
5436
  ExpiringSoonAlertContainer: {
4920
5437
  "&::part(base)": {
@@ -5035,6 +5552,7 @@ const style$5 = {
5035
5552
  PageDescriptionText: {
5036
5553
  color: "var(--sl-color-neutral-500)",
5037
5554
  fontSize: "var(--sl-font-size-medium)",
5555
+ marginTop: "0",
5038
5556
  },
5039
5557
  Dialog: {
5040
5558
  "&::part(panel)": {
@@ -5064,13 +5582,86 @@ const style$5 = {
5064
5582
  },
5065
5583
  DialogButton: { margin: "auto", width: "100%" },
5066
5584
  };
5067
- const sheet$4 = JSS.createStyleSheet(style$5);
5068
- const styleString$4 = sheet$4.toString();
5585
+ const sheet$5 = JSS.createStyleSheet(style$6);
5586
+ const styleString$5 = sheet$5.toString();
5069
5587
  const TaxAndCashDashboardView = (props) => {
5070
- var _a;
5588
+ var _a, _b, _c, _d;
5071
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
+ }
5072
5663
  const statusMap = {
5073
- NOT_VERIFIED: (index.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
5664
+ NOT_VERIFIED: (index.h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
5074
5665
  index.h("sl-badge", { type: "warning", pill: true }, text.statusTextNotVerified),
5075
5666
  index.h("p", null, global.intl.formatMessage({
5076
5667
  id: `badgeTextAwaitingReview`,
@@ -5078,7 +5669,7 @@ const TaxAndCashDashboardView = (props) => {
5078
5669
  }, {
5079
5670
  dateSubmitted: states.dateSubmitted,
5080
5671
  })))),
5081
- ACTIVE: (index.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
5672
+ ACTIVE: (index.h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
5082
5673
  index.h("sl-badge", { type: "success", pill: true }, text.statusTextActive),
5083
5674
  index.h("p", null, global.intl.formatMessage({
5084
5675
  id: `badgeTextSubmittedOn`,
@@ -5088,12 +5679,12 @@ const TaxAndCashDashboardView = (props) => {
5088
5679
  }, {
5089
5680
  dateSubmitted: states.dateSubmitted,
5090
5681
  })))),
5091
- INACTIVE: (index.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
5682
+ INACTIVE: (index.h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
5092
5683
  index.h("sl-badge", { type: "danger", pill: true }, text.statusTextNotActive),
5093
5684
  index.h("p", null, text.invalidForm))),
5094
5685
  };
5095
5686
  const alertMap = {
5096
- 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 },
5097
5688
  index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
5098
5689
  index.h("strong", null, global.intl.formatMessage({
5099
5690
  id: `taxAlertHeaderNotActive`,
@@ -5143,61 +5734,76 @@ const TaxAndCashDashboardView = (props) => {
5143
5734
  };
5144
5735
  return (index.h("div", null,
5145
5736
  index.h("div", null,
5146
- index.h("style", { type: "text/css" }, styleString$4),
5737
+ index.h("style", { type: "text/css" }, styleString$5),
5147
5738
  states.loadingError && (index.h("div", null,
5148
- 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 },
5149
5740
  index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
5150
5741
  index.h("strong", null, text.error.loadingErrorAlertHeader),
5151
5742
  index.h("br", null),
5152
- text.error.loadingErrorAlertDescription))),
5153
- ((_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 },
5154
5750
  index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
5155
5751
  index.h("strong", null, text.error.generalTitle),
5156
5752
  index.h("br", null),
5157
- text.error.generalDescription)),
5158
- states.hasHold && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$4.classes.HoldAlertContainer },
5159
- index.h("sl-icon", { slot: "icon", name: "exclamation-triangle" }),
5160
- index.h("strong", null, text.payoutHoldAlertHeader),
5161
- index.h("br", null),
5162
- text.payoutHoldAlertDescription)),
5163
- 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 },
5164
5765
  index.h("p", null, text.replaceTaxFormModalBodyText),
5165
- index.h("sl-button", { slot: "footer", type: "primary", class: sheet$4.classes.DialogButton, onClick: callbacks.onNewFormClick }, text.newFormButton),
5166
- 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)),
5167
5768
  states.status === "INACTIVE" && alertMap[states.status],
5168
5769
  index.h("div", null,
5169
- index.h("h3", null, text.bankingInformationSectionHeader),
5170
- index.h("p", { class: sheet$4.classes.PageDescriptionText }, text.taxAndPayoutsDescription),
5171
- 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 },
5172
5773
  slots.payoutDetailsCardSlot,
5173
- !states.loading && (index.h("p", { class: sheet$4.classes.DescriptionText }, text.payoutFromImpact)),
5174
- states.canEditPayoutInfo && (index.h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$4.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
5175
- index.h("div", { class: sheet$4.classes.TaxDocumentsContainer },
5176
- index.h("div", null, states.loading ? (index.h("div", { class: sheet$4.classes.TaxSectionSkeletonContainer },
5177
- index.h("sl-skeleton", { class: sheet$4.classes.SkeletonOne }),
5178
- index.h("sl-skeleton", { class: sheet$4.classes.SkeletonTwo }))) : (index.h("div", null, states.noFormNeeded ? (index.h("div", null,
5179
- index.h("h3", { class: sheet$4.classes.TaxDocumentsSectionHeaderContainer }, text.taxDocumentSectionHeader),
5180
- index.h("p", { class: sheet$4.classes.TaxDocSubtext }, text.noFormNeededSubtext))) : (index.h("div", null,
5181
- index.h("span", { class: sheet$4.classes.TaxFormDetailsContainer },
5182
- 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 },
5183
5784
  index.h("h3", null, global.intl.formatMessage({
5184
5785
  id: "section-subheader",
5185
5786
  defaultMessage: text.taxDocumentSectionSubHeader,
5186
5787
  }, {
5187
5788
  documentType: states.documentTypeString,
5188
5789
  })),
5189
- index.h("span", { class: sheet$4.classes.StatusAlert }, statusMap[states.status]))),
5190
- 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)))))))),
5191
- index.h("div", { class: sheet$4.classes.IndirectTaxPreviewContainer }, states.loading ? (index.h("div", { class: sheet$4.classes.TaxSectionSkeletonContainer },
5192
- index.h("sl-skeleton", { class: sheet$4.classes.SkeletonOne }),
5193
- index.h("sl-skeleton", { class: sheet$4.classes.SkeletonTwo }))) : (index.h("div", null,
5194
- 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 },
5195
5796
  text.indirectTaxInfoSectionHeader,
5196
- index.h("sl-tooltip", { trigger: "hover", placement: "top", content: text.indirectTaxTooltipSupport, class: sheet$4.classes.TooltipContainer },
5197
- index.h("sl-icon", { name: "info-circle", class: sheet$4.classes.ToolTip }))),
5198
- index.h("div", { class: sheet$4.classes.IndirectTaxPreviewDetails },
5199
- index.h("span", null, states.notRegistered ? (index.h("span", { class: sheet$4.classes.NotRegisteredIndirectTaxText }, text.notRegisteredForTax)) : (getIndirectTaxRegisteredIn())),
5200
- !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 },
5201
5807
  index.h("span", null, global.intl.formatMessage({
5202
5808
  id: `indirectTaxDetails`,
5203
5809
  defaultMessage: text.indirectTaxDetails,
@@ -5220,7 +5826,7 @@ const TaxAndCashDashboardView = (props) => {
5220
5826
  }, {
5221
5827
  subRegionTaxNumber: states.subRegionTaxNumber,
5222
5828
  })))),
5223
- !states.notRegistered && (index.h("div", { class: sheet$4.classes.InvoiceTableContainer },
5829
+ !states.notRegistered && (index.h("div", { class: sheet$5.classes.InvoiceTableContainer },
5224
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 },
5225
5831
  index.h("sqm-invoice-table-download-column", null),
5226
5832
  index.h("sqm-invoice-table-date-column", { "column-title": text.dateColumnTitle }),
@@ -5266,15 +5872,16 @@ function getIndirectTaxType(taxInformation) {
5266
5872
  }
5267
5873
  const useTaxAndCashDashboard = (props) => {
5268
5874
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
5269
- const setStep = index_module.Sn(TAX_CONTEXT_NAMESPACE);
5270
- const setContext = index_module.Sn(TAX_FORM_CONTEXT_NAMESPACE);
5875
+ const setStep = index_module.wn(TAX_CONTEXT_NAMESPACE);
5876
+ const setContext = index_module.wn(TAX_FORM_CONTEXT_NAMESPACE);
5271
5877
  const [showDialog, setShowDialog] = stencilHooks_module.useState(false);
5272
- const locale = index_module.Q();
5878
+ const { render, loading: veriffLoading, errors: veriffErrors, } = usePayoutStatus.useVeriffApp();
5879
+ const locale = index_module.L();
5273
5880
  stencilHooks_module.useEffect(() => {
5274
5881
  // Clear override context once on submitted
5275
5882
  setContext({});
5276
5883
  }, []);
5277
- const { data, loading, errors: userError, } = index_module.qn(USER_QUERY_NAMESPACE);
5884
+ const { data, loading, errors: userError, refetch, } = index_module.Mn(USER_QUERY_NAMESPACE);
5278
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;
5279
5886
  const documentType = publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType;
5280
5887
  const submissionDate = (_c = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _c === void 0 ? void 0 : _c.dateCreated;
@@ -5299,6 +5906,14 @@ const useTaxAndCashDashboard = (props) => {
5299
5906
  setStep("/3");
5300
5907
  };
5301
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
+ }, []);
5302
5917
  return {
5303
5918
  states: {
5304
5919
  dateSubmitted,
@@ -5321,9 +5936,12 @@ const useTaxAndCashDashboard = (props) => {
5321
5936
  loadingError: !!(userError === null || userError === void 0 ? void 0 : userError.message),
5322
5937
  showNewFormDialog: showDialog,
5323
5938
  hasHold: !!((_m = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _m === void 0 ? void 0 : _m.hold),
5939
+ payoutStatus,
5940
+ veriffLoading,
5324
5941
  },
5325
5942
  callbacks: {
5326
5943
  onClick: () => setShowDialog(true),
5944
+ onVerifyClick: () => render(),
5327
5945
  onEditPayoutInfo,
5328
5946
  onNewFormCancel: () => setShowDialog(false),
5329
5947
  onNewFormClick,
@@ -5449,7 +6067,7 @@ const TaxAndCashDashboard = class {
5449
6067
  * @uiName Indirect tax tooltip
5450
6068
  * @uiWidget textArea
5451
6069
  */
5452
- 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.";
5453
6071
  /**
5454
6072
  * Displayed to participants who have submitted their indirect tax information.
5455
6073
  *
@@ -5469,7 +6087,7 @@ const TaxAndCashDashboard = class {
5469
6087
  * @uiName Not registered for indirect tax text
5470
6088
  * @uiWidget textArea
5471
6089
  */
5472
- 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.";
5473
6091
  /**
5474
6092
  * Displayed to participants registered in Quebec, Canada.
5475
6093
  * @uiName QST indirect tax details
@@ -5504,12 +6122,53 @@ const TaxAndCashDashboard = class {
5504
6122
  * @uiName Payout error message description
5505
6123
  * @uiWidget textArea
5506
6124
  */
5507
- this.payoutHoldAlertDescription = "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.";
5508
6126
  /**
5509
6127
  * Text displayed for existing publishers that do not have saved banking information.
5510
6128
  * @uiName Payout missing information subtext
5511
6129
  */
5512
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";
5513
6172
  /**
5514
6173
  * Part of the alert displayed at the top of the page.
5515
6174
  * @uiName Form submission error message title
@@ -5521,7 +6180,7 @@ const TaxAndCashDashboard = class {
5521
6180
  * @uiName Form submission error message description
5522
6181
  * @uiWidget textArea
5523
6182
  */
5524
- 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}.";
5525
6184
  /**
5526
6185
  * Displayed under the payout details card.
5527
6186
  * @uiName Payout from impact text
@@ -5539,7 +6198,7 @@ const TaxAndCashDashboard = class {
5539
6198
  * @uiName Page load error message description
5540
6199
  * @uiWidget textArea
5541
6200
  */
5542
- 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}.";
5543
6202
  /**
5544
6203
  * Part of the Invoice table displayed at the bottom of the page.
5545
6204
  * @uiName Invoice number column title
@@ -5590,6 +6249,10 @@ const TaxAndCashDashboard = class {
5590
6249
  * @uiName Replace tax form modal body text
5591
6250
  */
5592
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";
5593
6256
  /**
5594
6257
  * @uiName Cancel button label
5595
6258
  */
@@ -5633,12 +6296,16 @@ function useDemoTaxAndCashDashboard(props) {
5633
6296
  loading: false,
5634
6297
  showNewFormDialog: false,
5635
6298
  hasHold: false,
6299
+ showVerifyIdentity: false,
6300
+ payoutStatus: "DONE",
6301
+ veriffLoading: false,
5636
6302
  },
5637
6303
  callbacks: {
5638
6304
  onClick: () => console.debug("check step"),
5639
6305
  onEditPayoutInfo: () => console.debug("payout info"),
5640
6306
  onNewFormCancel: () => console.log("hide"),
5641
6307
  onNewFormClick: () => console.log("show"),
6308
+ onVerifyClick: () => console.log("verify"),
5642
6309
  },
5643
6310
  text: props.getTextProps(),
5644
6311
  }, props.demoData || {}, { arrayMerge: (_, a) => a });
@@ -6615,7 +7282,7 @@ const PHONE_EXTENSIONS = {
6615
7282
  },
6616
7283
  };
6617
7284
 
6618
- const style$6 = {
7285
+ const style$7 = {
6619
7286
  FormWrapper: {},
6620
7287
  ErrorInput: {
6621
7288
  "&::part(base)": {
@@ -6695,7 +7362,6 @@ const style$6 = {
6695
7362
  },
6696
7363
  PhoneInputsSection: {
6697
7364
  display: "flex",
6698
- alignItems: "flex-end",
6699
7365
  flexDirection: "column",
6700
7366
  gap: "4px",
6701
7367
  "& p": {
@@ -6706,7 +7372,6 @@ const style$6 = {
6706
7372
  },
6707
7373
  PhoneInputsContainer: {
6708
7374
  display: "flex",
6709
- alignItems: "flex-end",
6710
7375
  gap: "4px",
6711
7376
  width: "100%",
6712
7377
  "& #phoneNumber": {
@@ -6715,9 +7380,9 @@ const style$6 = {
6715
7380
  },
6716
7381
  },
6717
7382
  };
6718
- const sheet$5 = JSS.createStyleSheet(style$6);
6719
- const styleString$5 = sheet$5.toString();
6720
- const vanillaStyle$3 = `
7383
+ const sheet$6 = JSS.createStyleSheet(style$7);
7384
+ const styleString$6 = sheet$6.toString();
7385
+ const vanillaStyle$4 = `
6721
7386
  :host{
6722
7387
  display: block;
6723
7388
  }
@@ -6745,7 +7410,7 @@ const vanillaStyle$3 = `
6745
7410
  const UserInfoFormView = (props) => {
6746
7411
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
6747
7412
  const { states, states: { formState }, callbacks, text, refs, data, } = props;
6748
- const { classes } = sheet$5;
7413
+ const { classes } = sheet$6;
6749
7414
  const bankingCollectionText = global.intl.formatMessage({
6750
7415
  id: "bankingCollectionText",
6751
7416
  defaultMessage: text.allowBankingCollection,
@@ -6768,14 +7433,19 @@ const UserInfoFormView = (props) => {
6768
7433
  }
6769
7434
  return (index.h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
6770
7435
  index.h("style", { type: "text/css" },
6771
- styleString$5,
6772
- vanillaStyle$3),
7436
+ styleString$6,
7437
+ vanillaStyle$4),
6773
7438
  states.loadingError && (index.h("div", null,
6774
- 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 },
6775
7440
  index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
6776
7441
  index.h("strong", null, text.error.loadingErrorAlertHeader),
6777
7442
  index.h("br", null),
6778
- 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
+ })),
6779
7449
  index.h("br", null))),
6780
7450
  states.loading ? (index.h(sqmInvoiceTableView.GeneralLoadingView, null)) : (index.h("div", null,
6781
7451
  index.h("div", { class: classes.TextContainer },
@@ -6786,16 +7456,26 @@ const UserInfoFormView = (props) => {
6786
7456
  }, { step: states.step, count: FORM_STEPS }))),
6787
7457
  index.h("h3", null, text.personalInformation),
6788
7458
  index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
6789
- ((_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 },
6790
7460
  index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
6791
7461
  index.h("strong", null, text.error.generalTitle),
6792
7462
  index.h("br", null),
6793
- text.error.generalDescription)),
6794
- (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" },
6795
7470
  index.h("sl-icon", { slot: "icon", name: "info-circle" }),
6796
7471
  index.h("strong", null, text.isPartnerAlertHeader),
6797
7472
  index.h("br", null),
6798
- 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
+ }))),
6799
7479
  index.h("div", null,
6800
7480
  index.h("div", { class: classes.InputContainer },
6801
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) ? {
@@ -6847,10 +7527,11 @@ const UserInfoFormView = (props) => {
6847
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 :
6848
7528
  _b.dial_code));
6849
7529
  })),
6850
- index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", id: "phoneNumber", name: "/phoneNumber", value: formState.phoneNumber, validationError: ({ value }) =>
6851
- // Naive phone number validation
6852
- sqmInvoiceTableView.validateBillingField(/[a-zA-Z]+/, value) &&
6853
- 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) ? {
6854
7535
  class: classes.ErrorInput,
6855
7536
  helpText: sqmInvoiceTableView.formatErrorMessage(text.phoneNumber, formState.errors.phoneNumber),
6856
7537
  }
@@ -6913,12 +7594,12 @@ function useUserInfoForm(props) {
6913
7594
  const currencyRef = stencilHooks_module.useRef(undefined);
6914
7595
  const phoneCountryRef = stencilHooks_module.useRef(undefined);
6915
7596
  const formRef = stencilHooks_module.useRef(null);
6916
- const context = index_module.Dn(TAX_FORM_CONTEXT_NAMESPACE);
6917
- const countries = index_module.Dn(SORTED_COUNTRIES_NAMESPACE);
6918
- const [step, setStep] = index_module.Mn(TAX_CONTEXT_NAMESPACE);
6919
- const [userFormContext, setUserFormContext] = index_module.Mn(USER_FORM_CONTEXT_NAMESPACE);
6920
- const { data, loading, errors: userError, } = index_module.qn(USER_QUERY_NAMESPACE);
6921
- const _currencies = index_module.Dn(CURRENCIES_NAMESPACE);
7597
+ const context = index_module.In(TAX_FORM_CONTEXT_NAMESPACE);
7598
+ const countries = index_module.In(SORTED_COUNTRIES_NAMESPACE);
7599
+ const [step, setStep] = index_module.bn(TAX_CONTEXT_NAMESPACE);
7600
+ const [userFormContext, setUserFormContext] = index_module.bn(USER_FORM_CONTEXT_NAMESPACE);
7601
+ const { data, loading, errors: userError, } = index_module.Mn(USER_QUERY_NAMESPACE);
7602
+ const _currencies = index_module.In(CURRENCIES_NAMESPACE);
6922
7603
  const currencies = stencilHooks_module.useMemo(() => [...(_currencies || [])].sort((a, b) => a.displayName.localeCompare(b.displayName)), [_currencies]);
6923
7604
  const [countrySearch, setCountrySearch] = stencilHooks_module.useState("");
6924
7605
  const [phoneCountrySearch, setPhoneCountrySearch] = stencilHooks_module.useState("");
@@ -7046,6 +7727,8 @@ function useUserInfoForm(props) {
7046
7727
  const { allowBankingCollection, ...userData } = formData;
7047
7728
  setUserFormContext({
7048
7729
  ...userFormContext,
7730
+ firstName: userData.firstName,
7731
+ lastName: userData.lastName,
7049
7732
  phoneNumberCountryCode: userData.phoneNumberCountryCode,
7050
7733
  phoneNumber: userData.phoneNumber,
7051
7734
  countryCode: userData.countryCode,
@@ -7182,7 +7865,7 @@ const TaxForm = class {
7182
7865
  * @uiName Participant is a partner alert description
7183
7866
  * @uiWidget textArea
7184
7867
  */
7185
- 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.";
7186
7869
  /**
7187
7870
  * Part of the alert displayed at the top of the page.
7188
7871
  * @uiName Form submission error message title
@@ -7194,7 +7877,7 @@ const TaxForm = class {
7194
7877
  * @uiName Form submission error message description
7195
7878
  * @uiWidget textArea
7196
7879
  */
7197
- 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}.";
7198
7881
  /**
7199
7882
  * Edit the property called terms and conditions text to change what's displayed for {termsAndConditionsLink}.
7200
7883
  * @uiName Terms and conditions checkbox
@@ -7210,7 +7893,7 @@ const TaxForm = class {
7210
7893
  * The link that appears in the terms and conditions checkbox
7211
7894
  * @uiName Terms and conditions link
7212
7895
  */
7213
- this.termsAndConditionsLink = "/payout-terms-and-conditions";
7896
+ this.termsAndConditionsLink = "https://terms.advocate.impact.com/PayoutTermsAndConditions.html";
7214
7897
  /**
7215
7898
  * Placeholder text displayed in the country search dropdown
7216
7899
  * @uiName Country field placeholder text
@@ -7247,12 +7930,16 @@ const TaxForm = class {
7247
7930
  * @uiName Page load error message description
7248
7931
  * @uiWidget textArea
7249
7932
  */
7250
- 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}.";
7251
7934
  /**
7252
7935
  * Displayed at the top of the page on all set up steps.
7253
7936
  * @uiName Page description
7254
7937
  */
7255
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";
7256
7943
  stencilHooks_module.h$1(this);
7257
7944
  }
7258
7945
  disconnectedCallback() { }
@@ -7282,7 +7969,7 @@ const TaxForm = class {
7282
7969
  }
7283
7970
  };
7284
7971
  function useDemoUserInfoForm(props) {
7285
- const setStep = index_module.Sn(TAX_CONTEXT_NAMESPACE);
7972
+ const setStep = index_module.wn(TAX_CONTEXT_NAMESPACE);
7286
7973
  return cjs.cjs({
7287
7974
  setStep,
7288
7975
  onSubmit: () => {
@@ -7329,6 +8016,7 @@ function useDemoUserInfoForm(props) {
7329
8016
  }
7330
8017
 
7331
8018
  exports.sqm_banking_info_form = BankingInfoForm;
8019
+ exports.sqm_code_verification = WidgetCodeVerification;
7332
8020
  exports.sqm_docusign_form = DocusignForm;
7333
8021
  exports.sqm_indirect_tax_form = IndirectTaxForm;
7334
8022
  exports.sqm_invoice_table = InvoiceTable;