@saasquatch/mint-components 1.13.0-9 → 1.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (471) hide show
  1. package/dist/cjs/{ShadowViewAddon-44cb1a98.js → ShadowViewAddon-d98f73be.js} +109 -157
  2. package/dist/cjs/{copy-text-view-9b950efe.js → copy-text-view-a5524c20.js} +1 -1
  3. package/dist/cjs/extractProps-fd93ba62.js +21 -0
  4. package/dist/cjs/{global-19fc8a7a.js → global-e31dc4f5.js} +1 -1
  5. package/dist/cjs/{index.module-57703088.js → index.module-ee84433d.js} +4 -0
  6. package/dist/cjs/keys-cff24974.js +11 -0
  7. package/dist/cjs/loader.cjs.js +3 -3
  8. package/dist/cjs/mint-components.cjs.js +3 -3
  9. package/dist/cjs/{re-render-35b016ed.js → re-render-b324deab.js} +1 -1
  10. package/dist/cjs/sqm-asset-card.cjs.entry.js +1 -1
  11. package/dist/cjs/{sqm-banking-info-form_16.cjs.entry.js → sqm-banking-info-form_17.cjs.entry.js} +1012 -239
  12. package/dist/cjs/{sqm-base-registration-form-view-d5685747.js → sqm-base-registration-form-view-8a2c8763.js} +1 -1
  13. package/dist/cjs/{sqm-big-stat_38.cjs.entry.js → sqm-big-stat_39.cjs.entry.js} +402 -191
  14. package/dist/cjs/sqm-close-button.cjs.entry.js +1 -1
  15. package/dist/cjs/sqm-context-router.cjs.entry.js +1 -1
  16. package/dist/cjs/sqm-email-verification.cjs.entry.js +291 -0
  17. package/dist/cjs/sqm-empty_4.cjs.entry.js +3 -3
  18. package/dist/cjs/sqm-google-sign-in.cjs.entry.js +38 -35
  19. package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +1 -1
  20. package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +3 -3
  21. package/dist/cjs/{sqm-invoice-table-view-9dfa2a16.js → sqm-invoice-table-view-baded4af.js} +172 -2
  22. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +2 -2
  23. package/dist/cjs/sqm-logout-current-user.cjs.entry.js +1 -1
  24. package/dist/cjs/{sqm-navigation-sidebar-item-view-9bba5f7e.js → sqm-navigation-sidebar-item-view-6f35d2ee.js} +1 -1
  25. package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +2 -2
  26. package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +1 -1
  27. package/dist/cjs/sqm-pagination_3.cjs.entry.js +3 -3
  28. package/dist/cjs/sqm-password-field.cjs.entry.js +2 -2
  29. package/dist/cjs/sqm-popup-container.cjs.entry.js +1 -1
  30. package/dist/cjs/{sqm-portal-email-verification-view-98d84549.js → sqm-portal-email-verification-view-7ebb426a.js} +1 -1
  31. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +3 -3
  32. package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +1 -1
  33. package/dist/cjs/sqm-portal-google-login.cjs.entry.js +130 -0
  34. package/dist/cjs/sqm-portal-google-registration-form.cjs.entry.js +6 -6
  35. package/dist/cjs/sqm-portal-login-view-761a4d8e.js +58 -0
  36. package/dist/cjs/sqm-portal-logout.cjs.entry.js +1 -1
  37. package/dist/cjs/{sqm-portal-profile-view-bae28ea0.js → sqm-portal-profile-view-33164798.js} +1 -1
  38. package/dist/cjs/sqm-portal-profile.cjs.entry.js +4 -4
  39. package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +1 -1
  40. package/dist/cjs/{sqm-portal-registration-form-view-e947a5b3.js → sqm-portal-registration-form-view-ebf355a6.js} +13 -12
  41. package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +4 -4
  42. package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +1 -1
  43. package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +1 -1
  44. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +5 -5
  45. package/dist/cjs/sqm-referred-registration.cjs.entry.js +3 -3
  46. package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +2 -2
  47. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +5 -5
  48. package/dist/cjs/sqm-scroll.cjs.entry.js +109 -0
  49. package/dist/cjs/sqm-stencilbook.cjs.entry.js +265 -73
  50. package/dist/cjs/sqm-tab.cjs.entry.js +2 -2
  51. package/dist/cjs/sqm-tabs.cjs.entry.js +3 -3
  52. package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +113 -0
  53. package/dist/cjs/sqm-widget-verification.cjs.entry.js +203 -0
  54. package/dist/cjs/{useChildElements-854cd1e5.js → useChildElements-1b35d945.js} +1 -1
  55. package/dist/cjs/{useInstantAccessRegistration-daff8290.js → useInstantAccessRegistration-9a46c324.js} +2 -2
  56. package/dist/cjs/usePayoutStatus-4b5894ef.js +1045 -0
  57. package/dist/cjs/usePortalLogin-63d896d1.js +74 -0
  58. package/dist/cjs/{usePortalRegistrationForm-a89d736e.js → usePortalRegistrationForm-f25d89e7.js} +2 -2
  59. package/dist/cjs/{useReferralTable-283d2316.js → useReferralTable-7c3f9600.js} +3 -3
  60. package/dist/cjs/{useRegistrationFormState-986b5ea1.js → useRegistrationFormState-7b820f0c.js} +1 -1
  61. package/dist/cjs/useVerificationEmail-95a82767.js +173 -0
  62. package/dist/cjs/{utilities-c135f16f.js → utilities-78f5e169.js} +1 -1
  63. package/dist/collection/collection-manifest.json +8 -1
  64. package/dist/collection/components/sqm-base-registration/sqm-base-registration-form-view.js +1 -1
  65. package/dist/collection/components/sqm-big-stat/useBigStat.js +6 -3
  66. package/dist/collection/components/sqm-google-sign-in/sqm-google-sign-in.js +24 -10
  67. package/dist/collection/components/sqm-google-sign-in/useGoogleSignIn.js +34 -27
  68. package/dist/collection/components/sqm-payout-button-scroll/PayoutButtonScroll.stories.js +15 -0
  69. package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll-view.js +24 -0
  70. package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll.js +122 -0
  71. package/dist/collection/components/sqm-payout-button-scroll/usePayoutButton.js +37 -0
  72. package/dist/collection/components/sqm-portal-google-login/sqm-portal-google-login.js +428 -0
  73. package/dist/collection/components/sqm-portal-google-registration-form/sqm-portal-google-registration-form.js +3 -3
  74. package/dist/collection/components/sqm-portal-login/PortalLogin.stories.js +2 -13
  75. package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +2 -30
  76. package/dist/collection/components/sqm-portal-login/usePortalLogin.js +9 -4
  77. package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form-view.js +13 -12
  78. package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form.js +1 -1
  79. package/dist/collection/components/sqm-referral-table/ReferralTable.stories.js +7 -1
  80. package/dist/collection/components/sqm-referral-table/ReferralTableRewardsCell.stories.js +16 -3
  81. package/dist/collection/components/sqm-rewards-table/RewardsTableCell.stories.js +7 -12
  82. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +8 -0
  83. package/dist/collection/components/sqm-text/sqm-text.js +1 -1
  84. package/dist/collection/components/sqm-widget-verification/keys.js +4 -0
  85. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/WidgetCodeVerification.stories.js +36 -0
  86. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +128 -0
  87. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.js +301 -0
  88. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/useCodeVerification.js +153 -0
  89. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/WidgetEmailVerification.stories.js +58 -0
  90. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +95 -0
  91. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.js +251 -0
  92. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/useEmailVerification.js +126 -0
  93. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-controller.js +120 -0
  94. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +536 -0
  95. package/dist/collection/components/sqm-widget-verification/useVerificationEmail.js +169 -0
  96. package/dist/collection/components/sqm-widget-verification/useWidgetVerification.js +60 -0
  97. package/dist/collection/components/tax-and-cash/BankingForm.stories.js +20 -0
  98. package/dist/collection/components/tax-and-cash/TaxForm.stories.js +165 -1
  99. package/dist/collection/components/tax-and-cash/eventKeys.js +1 -0
  100. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +12 -2
  101. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +128 -11
  102. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +109 -39
  103. package/dist/collection/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.js +15 -2
  104. package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +12 -2
  105. package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +31 -6
  106. package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +3 -0
  107. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +26 -8
  108. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +33 -8
  109. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +3 -0
  110. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/PayoutDetailsCard.stories.js +0 -7
  111. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card-view.js +0 -5
  112. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js +0 -56
  113. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.js +18 -0
  114. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +176 -0
  115. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +527 -0
  116. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +76 -0
  117. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/data.js +7 -0
  118. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +415 -24
  119. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +2 -2
  120. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +138 -9
  121. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +283 -17
  122. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +17 -2
  123. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +23 -9
  124. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +33 -8
  125. package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +16 -11
  126. package/dist/collection/components/tax-and-cash/useVeriffApp.js +64 -0
  127. package/dist/esm/{ShadowViewAddon-eba44767.js → ShadowViewAddon-ddfbe8e2.js} +110 -157
  128. package/dist/esm/{copy-text-view-b060162f.js → copy-text-view-459a2e35.js} +1 -1
  129. package/dist/esm/extractProps-ae1afbb3.js +19 -0
  130. package/dist/esm/{global-bedc4329.js → global-be1f9992.js} +1 -1
  131. package/dist/esm/{index.module-a2989d3c.js → index.module-89a79f66.js} +5 -1
  132. package/dist/esm/keys-406491dc.js +6 -0
  133. package/dist/esm/loader.js +3 -3
  134. package/dist/esm/mint-components.js +3 -3
  135. package/dist/esm/{re-render-268bb9c8.js → re-render-cc945f38.js} +1 -1
  136. package/dist/esm/sqm-asset-card.entry.js +1 -1
  137. package/dist/esm/{sqm-banking-info-form_16.entry.js → sqm-banking-info-form_17.entry.js} +1012 -240
  138. package/dist/esm/{sqm-base-registration-form-view-98c4db70.js → sqm-base-registration-form-view-593d4ac3.js} +1 -1
  139. package/dist/esm/{sqm-big-stat_38.entry.js → sqm-big-stat_39.entry.js} +400 -190
  140. package/dist/esm/sqm-close-button.entry.js +1 -1
  141. package/dist/esm/sqm-context-router.entry.js +1 -1
  142. package/dist/esm/sqm-email-verification.entry.js +287 -0
  143. package/dist/esm/sqm-empty_4.entry.js +3 -3
  144. package/dist/esm/sqm-google-sign-in.entry.js +39 -36
  145. package/dist/esm/sqm-graphql-client-provider.entry.js +1 -1
  146. package/dist/esm/sqm-instant-access-registration.entry.js +3 -3
  147. package/dist/esm/{sqm-invoice-table-view-8e2bb54a.js → sqm-invoice-table-view-af69cd33.js} +172 -2
  148. package/dist/esm/sqm-leaderboard-rank.entry.js +2 -2
  149. package/dist/esm/sqm-logout-current-user.entry.js +1 -1
  150. package/dist/esm/{sqm-navigation-sidebar-item-view-56da6bca.js → sqm-navigation-sidebar-item-view-8f1c72bc.js} +1 -1
  151. package/dist/esm/sqm-navigation-sidebar-item.entry.js +2 -2
  152. package/dist/esm/sqm-navigation-sidebar.entry.js +1 -1
  153. package/dist/esm/sqm-pagination_3.entry.js +3 -3
  154. package/dist/esm/sqm-password-field.entry.js +2 -2
  155. package/dist/esm/sqm-popup-container.entry.js +1 -1
  156. package/dist/esm/{sqm-portal-email-verification-view-44c8970f.js → sqm-portal-email-verification-view-35b4353b.js} +1 -1
  157. package/dist/esm/sqm-portal-email-verification.entry.js +3 -3
  158. package/dist/esm/sqm-portal-forgot-password.entry.js +1 -1
  159. package/dist/esm/sqm-portal-google-login.entry.js +126 -0
  160. package/dist/esm/sqm-portal-google-registration-form.entry.js +6 -6
  161. package/dist/esm/sqm-portal-login-view-7e49609a.js +56 -0
  162. package/dist/esm/sqm-portal-logout.entry.js +1 -1
  163. package/dist/esm/{sqm-portal-profile-view-39039274.js → sqm-portal-profile-view-93003974.js} +1 -1
  164. package/dist/esm/sqm-portal-profile.entry.js +4 -4
  165. package/dist/esm/sqm-portal-protected-route.entry.js +1 -1
  166. package/dist/esm/{sqm-portal-registration-form-view-90e2bfd5.js → sqm-portal-registration-form-view-32c4b488.js} +13 -12
  167. package/dist/esm/sqm-portal-registration-form.entry.js +4 -4
  168. package/dist/esm/sqm-portal-reset-password.entry.js +1 -1
  169. package/dist/esm/sqm-portal-verify-email.entry.js +1 -1
  170. package/dist/esm/sqm-referral-table_11.entry.js +5 -5
  171. package/dist/esm/sqm-referred-registration.entry.js +3 -3
  172. package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +2 -2
  173. package/dist/esm/sqm-rewards-table_9.entry.js +5 -5
  174. package/dist/esm/sqm-scroll.entry.js +105 -0
  175. package/dist/esm/sqm-stencilbook.entry.js +263 -71
  176. package/dist/esm/sqm-tab.entry.js +2 -2
  177. package/dist/esm/sqm-tabs.entry.js +3 -3
  178. package/dist/esm/sqm-widget-verification-controller.entry.js +109 -0
  179. package/dist/esm/sqm-widget-verification.entry.js +199 -0
  180. package/dist/esm/stencil-hooks.module-4bc38af4.js +1 -1
  181. package/dist/esm/{useChildElements-38c11321.js → useChildElements-7945ae56.js} +1 -1
  182. package/dist/esm/{useInstantAccessRegistration-7255b0ca.js → useInstantAccessRegistration-cd0172c8.js} +2 -2
  183. package/dist/esm/usePayoutStatus-58aa56b4.js +1039 -0
  184. package/dist/esm/usePortalLogin-ef647a50.js +72 -0
  185. package/dist/esm/{usePortalRegistrationForm-5715c7a5.js → usePortalRegistrationForm-4b35a357.js} +2 -2
  186. package/dist/esm/{useReferralTable-d77b11f5.js → useReferralTable-b3876ed6.js} +3 -3
  187. package/dist/esm/{useRegistrationFormState-01cdd8c7.js → useRegistrationFormState-d6f33135.js} +1 -1
  188. package/dist/esm/useVerificationEmail-edc318cb.js +171 -0
  189. package/dist/esm/{utilities-863d06d1.js → utilities-5b0ca040.js} +1 -1
  190. package/dist/esm-es5/ShadowViewAddon-ddfbe8e2.js +1 -0
  191. package/dist/esm-es5/{copy-text-view-b060162f.js → copy-text-view-459a2e35.js} +1 -1
  192. package/dist/esm-es5/extractProps-ae1afbb3.js +1 -0
  193. package/dist/esm-es5/{global-bedc4329.js → global-be1f9992.js} +1 -1
  194. package/dist/esm-es5/index.module-89a79f66.js +1 -0
  195. package/dist/esm-es5/keys-406491dc.js +1 -0
  196. package/dist/esm-es5/loader.js +1 -1
  197. package/dist/esm-es5/mint-components.js +1 -1
  198. package/dist/esm-es5/{re-render-268bb9c8.js → re-render-cc945f38.js} +1 -1
  199. package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
  200. package/dist/esm-es5/sqm-banking-info-form_17.entry.js +1 -0
  201. package/dist/esm-es5/sqm-base-registration-form-view-593d4ac3.js +1 -0
  202. package/dist/esm-es5/sqm-big-stat_39.entry.js +1 -0
  203. package/dist/esm-es5/sqm-close-button.entry.js +1 -1
  204. package/dist/esm-es5/sqm-context-router.entry.js +1 -1
  205. package/dist/esm-es5/sqm-email-verification.entry.js +1 -0
  206. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  207. package/dist/esm-es5/sqm-google-sign-in.entry.js +1 -1
  208. package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
  209. package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
  210. package/dist/esm-es5/sqm-invoice-table-view-af69cd33.js +1 -0
  211. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  212. package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
  213. package/dist/esm-es5/{sqm-navigation-sidebar-item-view-56da6bca.js → sqm-navigation-sidebar-item-view-8f1c72bc.js} +1 -1
  214. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  215. package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
  216. package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
  217. package/dist/esm-es5/sqm-password-field.entry.js +1 -1
  218. package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
  219. package/dist/esm-es5/{sqm-portal-email-verification-view-44c8970f.js → sqm-portal-email-verification-view-35b4353b.js} +1 -1
  220. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  221. package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
  222. package/dist/esm-es5/sqm-portal-google-login.entry.js +1 -0
  223. package/dist/esm-es5/sqm-portal-google-registration-form.entry.js +1 -1
  224. package/dist/esm-es5/sqm-portal-login-view-7e49609a.js +1 -0
  225. package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
  226. package/dist/esm-es5/{sqm-portal-profile-view-39039274.js → sqm-portal-profile-view-93003974.js} +1 -1
  227. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  228. package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
  229. package/dist/esm-es5/sqm-portal-registration-form-view-32c4b488.js +1 -0
  230. package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
  231. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  232. package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
  233. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  234. package/dist/esm-es5/sqm-referred-registration.entry.js +1 -1
  235. package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
  236. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  237. package/dist/esm-es5/sqm-scroll.entry.js +1 -0
  238. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  239. package/dist/esm-es5/sqm-tab.entry.js +1 -1
  240. package/dist/esm-es5/sqm-tabs.entry.js +1 -1
  241. package/dist/esm-es5/sqm-widget-verification-controller.entry.js +1 -0
  242. package/dist/esm-es5/sqm-widget-verification.entry.js +1 -0
  243. package/dist/esm-es5/stencil-hooks.module-4bc38af4.js +1 -1
  244. package/dist/esm-es5/{useChildElements-38c11321.js → useChildElements-7945ae56.js} +1 -1
  245. package/dist/esm-es5/{useInstantAccessRegistration-7255b0ca.js → useInstantAccessRegistration-cd0172c8.js} +1 -1
  246. package/dist/esm-es5/usePayoutStatus-58aa56b4.js +6 -0
  247. package/dist/esm-es5/usePortalLogin-ef647a50.js +1 -0
  248. package/dist/esm-es5/{usePortalRegistrationForm-5715c7a5.js → usePortalRegistrationForm-4b35a357.js} +1 -1
  249. package/dist/esm-es5/{useReferralTable-d77b11f5.js → useReferralTable-b3876ed6.js} +1 -1
  250. package/dist/esm-es5/{useRegistrationFormState-01cdd8c7.js → useRegistrationFormState-d6f33135.js} +1 -1
  251. package/dist/esm-es5/useVerificationEmail-edc318cb.js +1 -0
  252. package/dist/esm-es5/{utilities-863d06d1.js → utilities-5b0ca040.js} +1 -1
  253. package/dist/mint-components/mint-components.esm.js +1 -1
  254. package/dist/mint-components/mint-components.js +1 -1
  255. package/dist/mint-components/{p-2126e1e6.entry.js → p-04a6e457.entry.js} +1 -1
  256. package/dist/mint-components/{p-3e1b7fb4.entry.js → p-079405ff.entry.js} +1 -1
  257. package/dist/mint-components/{p-35698aaa.system.js → p-0d182dc1.system.js} +1 -1
  258. package/dist/mint-components/p-0ebab63e.system.js +1 -0
  259. package/dist/mint-components/{p-ca04737a.entry.js → p-10d17989.entry.js} +1 -1
  260. package/dist/mint-components/p-11d8ea66.system.js +1 -0
  261. package/dist/mint-components/{p-95c64cfd.system.js → p-13ed8586.system.js} +1 -1
  262. package/dist/mint-components/{p-3972037c.system.entry.js → p-141bf5c1.system.entry.js} +1 -1
  263. package/dist/mint-components/{p-80fc549b.entry.js → p-1513309d.entry.js} +1 -1
  264. package/dist/mint-components/{p-79ea1597.system.entry.js → p-164a9103.system.entry.js} +1 -1
  265. package/dist/mint-components/p-18425f38.system.entry.js +1 -0
  266. package/dist/mint-components/p-19ccb4ce.js +1 -0
  267. package/dist/mint-components/{p-0aa62b64.entry.js → p-1a6b7d2a.entry.js} +1 -1
  268. package/dist/mint-components/{p-de9afac2.system.entry.js → p-1fa9ed0d.system.entry.js} +1 -1
  269. package/dist/mint-components/p-21620f81.system.entry.js +1 -0
  270. package/dist/mint-components/p-26468242.js +1 -0
  271. package/dist/mint-components/{p-53aaa0a4.entry.js → p-275b4767.entry.js} +1 -1
  272. package/dist/mint-components/{p-618e1342.entry.js → p-284e4ed5.entry.js} +1 -1
  273. package/dist/mint-components/{p-e544bb9a.entry.js → p-2ae0e06a.entry.js} +1 -1
  274. package/dist/mint-components/p-2d52e2d7.system.js +1 -0
  275. package/dist/mint-components/{p-4ae54b04.entry.js → p-2da21ba4.entry.js} +1 -1
  276. package/dist/mint-components/{p-45436d5a.entry.js → p-2f101bae.entry.js} +1 -1
  277. package/dist/mint-components/p-301ddcaa.system.entry.js +1 -0
  278. package/dist/mint-components/p-33c96e14.entry.js +16 -0
  279. package/dist/mint-components/{p-731aa5c6.system.entry.js → p-36ffebd8.system.entry.js} +1 -1
  280. package/dist/mint-components/p-37996351.system.js +1 -0
  281. package/dist/mint-components/p-38c7775a.js +1 -0
  282. package/dist/mint-components/{p-4448febd.entry.js → p-38fc919b.entry.js} +1 -1
  283. package/dist/mint-components/{p-40e99b24.js → p-3db34d68.js} +1 -1
  284. package/dist/mint-components/{p-ebdcea27.system.entry.js → p-420554af.system.entry.js} +1 -1
  285. package/dist/mint-components/{p-571c451e.entry.js → p-4428294b.entry.js} +1 -1
  286. package/dist/mint-components/{p-a21d1a30.system.entry.js → p-4469fea6.system.entry.js} +1 -1
  287. package/dist/mint-components/p-44891949.entry.js +1 -0
  288. package/dist/mint-components/p-4794641c.system.js +1 -0
  289. package/dist/mint-components/p-480e08e9.js +31 -0
  290. package/dist/mint-components/p-48135f99.system.js +2 -2
  291. package/dist/mint-components/{p-492fdaf9.js → p-4e451f75.js} +1 -1
  292. package/dist/mint-components/p-4e526a94.js +1 -0
  293. package/dist/mint-components/{p-92a25556.system.entry.js → p-50c902ca.system.entry.js} +1 -1
  294. package/dist/mint-components/{p-4bcb04aa.system.entry.js → p-51d3cde7.system.entry.js} +1 -1
  295. package/dist/mint-components/p-527216de.system.js +1 -0
  296. package/dist/mint-components/{p-2dc5e60a.entry.js → p-54440d8d.entry.js} +1 -1
  297. package/dist/mint-components/p-5488fdd9.system.js +1 -0
  298. package/dist/mint-components/{p-8da47802.system.entry.js → p-54adee71.system.entry.js} +1 -1
  299. package/dist/mint-components/p-57dd28bd.system.js +1 -0
  300. package/dist/mint-components/{p-a8524459.system.js → p-59274a91.system.js} +1 -1
  301. package/dist/mint-components/{p-7989a098.system.entry.js → p-5c28406d.system.entry.js} +1 -1
  302. package/dist/mint-components/{p-9a0c3ed9.system.entry.js → p-5d7e308c.system.entry.js} +1 -1
  303. package/dist/mint-components/{p-09c5e3ee.system.js → p-635d5ef2.system.js} +1 -1
  304. package/dist/mint-components/{p-6de85677.js → p-63a75798.js} +1 -1
  305. package/dist/mint-components/p-6427e963.entry.js +1 -0
  306. package/dist/mint-components/{p-506679e9.js → p-65069b66.js} +1 -1
  307. package/dist/mint-components/{p-9e49479a.entry.js → p-653f963f.entry.js} +2 -2
  308. package/dist/mint-components/p-68d18642.entry.js +9 -0
  309. package/dist/mint-components/{p-b9d17fa1.entry.js → p-693942df.entry.js} +1 -1
  310. package/dist/mint-components/p-6b78811d.entry.js +241 -0
  311. package/dist/mint-components/p-6b7a595f.system.js +1 -0
  312. package/dist/mint-components/p-6cd4f2b1.system.js +1 -0
  313. package/dist/mint-components/{p-550ef977.js → p-6d2f5a1d.js} +2 -2
  314. package/dist/mint-components/p-6eaf9c57.entry.js +1 -0
  315. package/dist/mint-components/{p-7166caa6.system.js → p-717cc8ac.system.js} +1 -1
  316. package/dist/mint-components/{p-7bcf4467.system.entry.js → p-71bc04d2.system.entry.js} +1 -1
  317. package/dist/mint-components/p-793d2130.js +1 -0
  318. package/dist/mint-components/{p-b114e746.entry.js → p-7ab21e4d.entry.js} +1 -1
  319. package/dist/mint-components/{p-2ab3b8d6.js → p-7f2d4212.js} +1 -1
  320. package/dist/mint-components/p-8175e85f.system.js +1 -0
  321. package/dist/mint-components/{p-81665df6.system.entry.js → p-8362cb4c.system.entry.js} +1 -1
  322. package/dist/mint-components/{p-bd4810c7.system.entry.js → p-85671c3d.system.entry.js} +1 -1
  323. package/dist/mint-components/{p-f9de8a59.system.js → p-89903f6d.system.js} +1 -1
  324. package/dist/mint-components/{p-0873eaa8.entry.js → p-8abfeff8.entry.js} +1 -1
  325. package/dist/mint-components/p-8c23d1b8.js +1 -0
  326. package/dist/mint-components/{p-8056fd5b.system.entry.js → p-8d9d04b7.system.entry.js} +1 -1
  327. package/dist/mint-components/{p-988ea164.system.entry.js → p-90fc6774.system.entry.js} +1 -1
  328. package/dist/mint-components/p-91959fbe.js +1 -0
  329. package/dist/mint-components/p-9320582e.system.js +1 -0
  330. package/dist/mint-components/p-94a876b9.js +1 -0
  331. package/dist/mint-components/p-962f3200.js +1 -0
  332. package/dist/mint-components/{p-1c5cffae.js → p-98698131.js} +1 -1
  333. package/dist/mint-components/{p-f32c8cb5.entry.js → p-99374849.entry.js} +1 -1
  334. package/dist/mint-components/{p-a4a5beb5.system.entry.js → p-99bc1231.system.entry.js} +1 -1
  335. package/dist/mint-components/{p-9a16a3d8.system.entry.js → p-9b6a0152.system.entry.js} +1 -1
  336. package/dist/mint-components/p-9cf80e85.system.entry.js +1 -0
  337. package/dist/mint-components/{p-f4a1dc19.entry.js → p-a2fde301.entry.js} +1 -1
  338. package/dist/mint-components/p-a71b9154.system.js +1 -0
  339. package/dist/mint-components/p-a8645c1b.system.js +1 -0
  340. package/dist/mint-components/{p-635aaf11.system.entry.js → p-b287833c.system.entry.js} +1 -1
  341. package/dist/mint-components/p-b3532369.js +394 -0
  342. package/dist/mint-components/{p-8975c2be.entry.js → p-b51e79b3.entry.js} +1 -1
  343. package/dist/mint-components/{p-f0c23e81.system.entry.js → p-b7d1469d.system.entry.js} +1 -1
  344. package/dist/mint-components/{p-7cb919d4.system.entry.js → p-b82e1935.system.entry.js} +1 -1
  345. package/dist/mint-components/p-b93fd99c.system.entry.js +1 -0
  346. package/dist/mint-components/p-bb0f585c.system.js +1 -0
  347. package/dist/mint-components/{p-1833c4f5.js → p-bbcd824a.js} +1 -1
  348. package/dist/mint-components/p-bd91bba4.js +1 -0
  349. package/dist/mint-components/{p-f2fd1910.system.js → p-bdb7d451.system.js} +1 -1
  350. package/dist/mint-components/{p-24c4e0b8.system.entry.js → p-c060f770.system.entry.js} +1 -1
  351. package/dist/mint-components/{p-1ef299d7.js → p-c0f19490.js} +1 -1
  352. package/dist/mint-components/{p-ca740238.system.entry.js → p-c2fdd608.system.entry.js} +1 -1
  353. package/dist/mint-components/p-c36506f6.system.entry.js +1 -0
  354. package/dist/mint-components/p-c8cbb40f.system.entry.js +1 -0
  355. package/dist/mint-components/p-cb7bdbe4.entry.js +1 -0
  356. package/dist/mint-components/p-cbbfac66.entry.js +25 -0
  357. package/dist/mint-components/p-cc7af682.system.js +6 -0
  358. package/dist/mint-components/{p-4f45be94.system.js → p-cd569259.system.js} +1 -1
  359. package/dist/mint-components/p-cd651f81.js +2 -2
  360. package/dist/mint-components/p-d07f3090.entry.js +1 -0
  361. package/dist/mint-components/p-d1b92919.system.entry.js +1 -0
  362. package/dist/mint-components/p-d6831af5.js +48 -0
  363. package/dist/mint-components/p-da7708a7.entry.js +1 -0
  364. package/dist/mint-components/p-dbcb5359.js +1 -0
  365. package/dist/mint-components/{p-75f50e5a.entry.js → p-dcc81e90.entry.js} +1 -1
  366. package/dist/mint-components/{p-1b0c58bc.system.entry.js → p-de8e9981.system.entry.js} +1 -1
  367. package/dist/mint-components/{p-857947fa.system.entry.js → p-e5a5ae7f.system.entry.js} +1 -1
  368. package/dist/mint-components/{p-045d1d49.entry.js → p-e6045498.entry.js} +1 -1
  369. package/dist/mint-components/{p-9b779add.entry.js → p-e6f50ffd.entry.js} +1 -1
  370. package/dist/mint-components/{p-c470caf6.entry.js → p-e8ffcc68.entry.js} +2 -2
  371. package/dist/mint-components/p-f0772618.system.entry.js +1 -0
  372. package/dist/mint-components/p-f29eda2f.entry.js +205 -0
  373. package/dist/mint-components/{p-9f231a48.system.entry.js → p-f4a72903.system.entry.js} +1 -1
  374. package/dist/mint-components/{p-aaeaff1a.system.entry.js → p-f4a8ee29.system.entry.js} +1 -1
  375. package/dist/mint-components/p-fa37513e.system.entry.js +1 -0
  376. package/dist/mint-components/{p-e0b344fb.entry.js → p-fe2e2f4a.entry.js} +1 -1
  377. package/dist/mint-components/p-ff8b8067.entry.js +33 -0
  378. package/dist/types/components/sqm-google-sign-in/sqm-google-sign-in.d.ts +2 -0
  379. package/dist/types/components/sqm-google-sign-in/useGoogleSignIn.d.ts +1 -1
  380. package/dist/types/components/sqm-payout-button-scroll/PayoutButtonScroll.stories.d.ts +6 -0
  381. package/dist/types/components/sqm-payout-button-scroll/sqm-payout-button-scroll-view.d.ts +10 -0
  382. package/dist/types/components/sqm-payout-button-scroll/sqm-payout-button-scroll.d.ts +26 -0
  383. package/dist/types/components/sqm-payout-button-scroll/usePayoutButton.d.ts +7 -0
  384. package/dist/types/components/sqm-portal-google-login/sqm-portal-google-login.d.ts +74 -0
  385. package/dist/types/components/sqm-portal-login/sqm-portal-login.d.ts +0 -4
  386. package/dist/types/components/sqm-portal-login/usePortalLogin.d.ts +2 -1
  387. package/dist/types/components/sqm-portal-registration-form/sqm-portal-registration-form-view.d.ts +1 -0
  388. package/dist/types/components/sqm-referral-table/ReferralTableRewardsCell.stories.d.ts +1 -0
  389. package/dist/types/components/sqm-rewards-table/RewardsTableCell.stories.d.ts +1 -0
  390. package/dist/types/components/sqm-widget-verification/keys.d.ts +4 -0
  391. package/dist/types/components/sqm-widget-verification/sqm-code-verification/WidgetCodeVerification.stories.d.ts +9 -0
  392. package/dist/types/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.d.ts +26 -0
  393. package/dist/types/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.d.ts +54 -0
  394. package/dist/types/components/sqm-widget-verification/sqm-code-verification/useCodeVerification.d.ts +25 -0
  395. package/dist/types/components/sqm-widget-verification/sqm-email-verification/WidgetEmailVerification.stories.d.ts +11 -0
  396. package/dist/types/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.d.ts +22 -0
  397. package/dist/types/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.d.ts +44 -0
  398. package/dist/types/components/sqm-widget-verification/sqm-email-verification/useEmailVerification.d.ts +10 -0
  399. package/dist/types/components/sqm-widget-verification/sqm-widget-verification-controller.d.ts +12 -0
  400. package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +96 -0
  401. package/dist/types/components/sqm-widget-verification/useVerificationEmail.d.ts +15 -0
  402. package/dist/types/components/sqm-widget-verification/useWidgetVerification.d.ts +5 -0
  403. package/dist/types/components/tax-and-cash/BankingForm.stories.d.ts +1 -0
  404. package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +6 -0
  405. package/dist/types/components/tax-and-cash/eventKeys.d.ts +1 -0
  406. package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.d.ts +8 -0
  407. package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.d.ts +13 -0
  408. package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.d.ts +1 -0
  409. package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.d.ts +4 -0
  410. package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +1 -1
  411. package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.d.ts +1 -0
  412. package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.d.ts +4 -0
  413. package/dist/types/components/tax-and-cash/sqm-payout-details-card/PayoutDetailsCard.stories.d.ts +0 -1
  414. package/dist/types/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card-view.d.ts +0 -4
  415. package/dist/types/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.d.ts +1 -16
  416. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.d.ts +12 -0
  417. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.d.ts +36 -0
  418. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +90 -0
  419. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +20 -0
  420. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/data.d.ts +6 -0
  421. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/extractProps.d.ts +5 -1
  422. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +82 -3
  423. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +17 -0
  424. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +47 -2
  425. package/dist/types/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.d.ts +1 -0
  426. package/dist/types/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.d.ts +4 -0
  427. package/dist/types/components/tax-and-cash/useVeriffApp.d.ts +6 -0
  428. package/dist/types/components.d.ts +1071 -86
  429. package/docs/docs.docx +0 -0
  430. package/docs/raisins.json +1 -1
  431. package/grapesjs/grapesjs.js +1 -1
  432. package/package.json +3 -4
  433. package/dist/collection/components/sqm-portal-google-registration-form/small-views/RegistrationFieldsView.js +0 -86
  434. package/dist/esm-es5/ShadowViewAddon-eba44767.js +0 -1
  435. package/dist/esm-es5/index.module-a2989d3c.js +0 -1
  436. package/dist/esm-es5/sqm-banking-info-form_16.entry.js +0 -1
  437. package/dist/esm-es5/sqm-base-registration-form-view-98c4db70.js +0 -1
  438. package/dist/esm-es5/sqm-big-stat_38.entry.js +0 -1
  439. package/dist/esm-es5/sqm-invoice-table-view-8e2bb54a.js +0 -1
  440. package/dist/esm-es5/sqm-portal-registration-form-view-90e2bfd5.js +0 -1
  441. package/dist/mint-components/p-0323586f.entry.js +0 -223
  442. package/dist/mint-components/p-046f4631.system.js +0 -1
  443. package/dist/mint-components/p-0e53c59e.system.js +0 -1
  444. package/dist/mint-components/p-16c7bfda.js +0 -391
  445. package/dist/mint-components/p-28042d23.entry.js +0 -174
  446. package/dist/mint-components/p-30108c0e.js +0 -1
  447. package/dist/mint-components/p-31a691af.js +0 -1
  448. package/dist/mint-components/p-39b1a7fe.js +0 -1
  449. package/dist/mint-components/p-3bdd338c.system.js +0 -1
  450. package/dist/mint-components/p-3ec660e9.js +0 -1
  451. package/dist/mint-components/p-46ab5f80.system.js +0 -1
  452. package/dist/mint-components/p-4daa3f8a.system.entry.js +0 -1
  453. package/dist/mint-components/p-62f6627d.js +0 -1
  454. package/dist/mint-components/p-6a89b821.system.entry.js +0 -1
  455. package/dist/mint-components/p-749c7c9c.system.js +0 -1
  456. package/dist/mint-components/p-868f176e.entry.js +0 -1
  457. package/dist/mint-components/p-8d77feee.js +0 -1
  458. package/dist/mint-components/p-96b48c2b.system.js +0 -1
  459. package/dist/mint-components/p-a1f40614.system.entry.js +0 -1
  460. package/dist/mint-components/p-ac2b7eb8.system.js +0 -1
  461. package/dist/mint-components/p-b611eefd.entry.js +0 -1
  462. package/dist/mint-components/p-c4b21562.system.entry.js +0 -1
  463. package/dist/mint-components/p-c6a8c075.system.js +0 -1
  464. package/dist/mint-components/p-cd480e3f.entry.js +0 -33
  465. package/dist/mint-components/p-cf505e92.system.js +0 -1
  466. package/dist/mint-components/p-d671e44e.system.js +0 -1
  467. package/dist/mint-components/p-d7ed4bb5.entry.js +0 -1
  468. package/dist/mint-components/p-d87ce3d2.js +0 -1
  469. package/dist/mint-components/p-ea9fd654.entry.js +0 -9
  470. package/dist/mint-components/p-fe4a9dfe.system.entry.js +0 -1
  471. package/dist/types/components/sqm-portal-google-registration-form/small-views/RegistrationFieldsView.d.ts +0 -31
@@ -10,6 +10,7 @@ import { getFormMap } from "./formDefinitions";
10
10
  import { mockPaymentOptions } from "./mockData";
11
11
  import { BankingInfoFormView, } from "./sqm-banking-info-form-view";
12
12
  import { getFormInputs, paypalFeeMap, useBankingInfoForm, } from "./useBankingInfoForm";
13
+ import { createStyleSheet } from "../../../styling/JSS";
13
14
  /**
14
15
  * @uiName Banking Information Form
15
16
  * @exampleGroup Common Components
@@ -213,7 +214,16 @@ export class BankingInfoForm {
213
214
  * @uiName Participant is a partner alert description
214
215
  * @uiWidget textArea
215
216
  */
216
- 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.";
217
+ 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.";
218
+ /**
219
+ * Text for verify email dialog
220
+ * @uiName Verify email header
221
+ */
222
+ this.verifyEmailHeaderText = "Verify your email";
223
+ /**
224
+ * @uiName Verify code widget header text
225
+ */
226
+ this.verifyEmailDescriptionText = "Verify your email to update your payment settings. Enter the code sent to {email} from our referral provider, impact.com.";
217
227
  /**
218
228
  * Part of the alert displayed at the top of the page.
219
229
  * @uiName Form submission error message title
@@ -225,7 +235,7 @@ export class BankingInfoForm {
225
235
  * @uiName Form submission error message description
226
236
  * @uiWidget textArea
227
237
  */
228
- this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact Support.";
238
+ this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact our {supportLink}.";
229
239
  /**
230
240
  * Displayed under a field that is missing required information.
231
241
  * @uiName Empty form field error message
@@ -236,6 +246,10 @@ export class BankingInfoForm {
236
246
  * @uiName Form field error message
237
247
  */
238
248
  this.fieldInvalidError = "{fieldName} is invalid";
249
+ /**
250
+ * @uiName Support link text
251
+ */
252
+ this.supportLink = "support team";
239
253
  /**
240
254
  * @uiName Continue button label
241
255
  */
@@ -308,22 +322,60 @@ export class BankingInfoForm {
308
322
  bitset: props.states.bitset,
309
323
  formMap,
310
324
  });
311
- const searchStyle = {
325
+ const style = {
326
+ Dialog: {
327
+ position: "relative",
328
+ "&::part(panel)": {
329
+ maxWidth: "420px",
330
+ },
331
+ "&::part(title)": {
332
+ padding: "var(--sl-spacing-large) var(--sl-spacing-large) 0 var(--sl-spacing-large)",
333
+ },
334
+ "&::part(base)": {
335
+ position: "absolute",
336
+ },
337
+ "&::part(close-button)": {
338
+ marginBottom: "var(--sl-spacing-large)",
339
+ },
340
+ "&::part(body)": {
341
+ padding: "0 var(--sl-spacing-large) 0 var(--sl-spacing-large)",
342
+ fontSize: "var(--sl-font-size-small)",
343
+ },
344
+ "&::part(footer)": {
345
+ display: "flex",
346
+ flexDirection: "column",
347
+ gap: "var(--sl-spacing-small)",
348
+ marginBottom: "var(--sl-spacing-xx-small)",
349
+ alignItems: "center",
350
+ flex: "1",
351
+ },
352
+ },
312
353
  SearchInput: {
313
354
  padding: "var(--sl-spacing-x-small)",
314
355
  },
315
356
  };
357
+ const sheet = createStyleSheet(style);
358
+ const styleString = sheet.toString();
359
+ const verifyDescription = intl.formatMessage({
360
+ id: "codeResentSuccessfully",
361
+ defaultMessage: props.text.verifyEmailDescriptionText,
362
+ }, {
363
+ email: props.states.email,
364
+ });
316
365
  return (h(Host, null,
366
+ h("style", { type: "text/css" }, styleString),
367
+ props.states.isPartner && props.states.showVerification ? (h("sl-dialog", { class: sheet.classes.Dialog, open: true, "onSl-hide": props.callbacks.onVerificationHide, label: props.text.verifyEmailHeaderText },
368
+ h("sqm-code-verification", { verifyCodeHeaderText: verifyDescription, reverifyCodeHeaderText: verifyDescription, onVerification: props.callbacks.onVerification }))) : null,
317
369
  h(BankingInfoFormView, { callbacks: props.callbacks, text: props.text, states: props.states, refs: props.refs, slots: {
318
370
  formInputsSlot: inputFields === null || inputFields === void 0 ? void 0 : inputFields.map(({ input }) => input),
319
- countryInputSlot: (h("sl-select", Object.assign({ label: props.text.bankLocationLabel, required: true, name: "/bankCountry", id: "bankCountry", value: props.states.formState.bankCountry || "", "onSl-select": (e) => { var _a, _b; return props.callbacks.setBankCountry((_b = (_a = e.detail) === null || _a === void 0 ? void 0 : _a.item) === null || _b === void 0 ? void 0 : _b.value); } }, (((_a = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _a === void 0 ? void 0 : _a.bankCountry) && {
371
+ countryInputSlot: (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) && {
320
372
  class: "error-input",
321
373
  helpText: getValidationErrorMessage({
322
374
  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,
323
375
  label: props.text.bankLocationLabel,
324
376
  }),
325
377
  })),
326
- h("sl-input", { class: searchStyle.SearchInput, placeholder: this.searchForCountryText, onKeyDown: (e) => {
378
+ h("sl-input", { disabled: props.states.saveLoading, class: sheet.classes.SearchInput, placeholder: this.searchForCountryText, onKeyDown: (e) => {
327
379
  // Stop shoelace intercepting key presses
328
380
  e.stopPropagation();
329
381
  }, "onSl-input": (e) => {
@@ -334,14 +386,14 @@ export class BankingInfoForm {
334
386
  }), (_f = (_e = props.states) === null || _e === void 0 ? void 0 : _e.allCountries) === null || _f === void 0 ? void 0 :
335
387
  _f.map((c) => (h("sl-menu-item", { value: c.countryCode, style: { display: "none" } }, c.displayName))))),
336
388
  paymentMethodSlot: (h("sl-input", { key: "paymentMethod", label: props.text.paymentMethod, placeholder: props.states.paymentMethodFeeLabel, disabled: true })),
337
- paymentThresholdSelectSlot: (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) && {
389
+ paymentThresholdSelectSlot: (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) && {
338
390
  class: "error-input",
339
391
  helpText: getValidationErrorMessage({
340
392
  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,
341
393
  label: props.text.paymentThresholdSelectLabel,
342
394
  }),
343
395
  })), props.states.thresholds.map((t) => (h("sl-menu-item", { value: t }, `${props.states.currency}${t}`))))),
344
- paymentFixedDaySelectSlot: (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) && {
396
+ paymentFixedDaySelectSlot: (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) && {
345
397
  class: "error-input",
346
398
  helpText: getValidationErrorMessage({
347
399
  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,
@@ -350,7 +402,7 @@ export class BankingInfoForm {
350
402
  })),
351
403
  h("sl-menu-item", { value: "1" }, props.text.paymentDayFirstOfMonthLabelText),
352
404
  h("sl-menu-item", { value: "15" }, props.text.paymentDayFifteenthOfMonthLabelText))),
353
- paypalInputSlot: (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) && {
405
+ paypalInputSlot: (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) && {
354
406
  class: "error-input",
355
407
  helpText: getValidationErrorMessage({
356
408
  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,
@@ -1310,7 +1362,49 @@ export class BankingInfoForm {
1310
1362
  },
1311
1363
  "attribute": "is-partner-alert-description",
1312
1364
  "reflect": false,
1313
- "defaultValue": "\"If you don\u2019t 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.\""
1365
+ "defaultValue": "\"If you don\u2019t 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.\""
1366
+ },
1367
+ "verifyEmailHeaderText": {
1368
+ "type": "string",
1369
+ "mutable": false,
1370
+ "complexType": {
1371
+ "original": "string",
1372
+ "resolved": "string",
1373
+ "references": {}
1374
+ },
1375
+ "required": false,
1376
+ "optional": false,
1377
+ "docs": {
1378
+ "tags": [{
1379
+ "text": "Verify email header",
1380
+ "name": "uiName"
1381
+ }],
1382
+ "text": "Text for verify email dialog"
1383
+ },
1384
+ "attribute": "verify-email-header-text",
1385
+ "reflect": false,
1386
+ "defaultValue": "\"Verify your email\""
1387
+ },
1388
+ "verifyEmailDescriptionText": {
1389
+ "type": "string",
1390
+ "mutable": false,
1391
+ "complexType": {
1392
+ "original": "string",
1393
+ "resolved": "string",
1394
+ "references": {}
1395
+ },
1396
+ "required": false,
1397
+ "optional": false,
1398
+ "docs": {
1399
+ "tags": [{
1400
+ "text": "Verify code widget header text",
1401
+ "name": "uiName"
1402
+ }],
1403
+ "text": ""
1404
+ },
1405
+ "attribute": "verify-email-description-text",
1406
+ "reflect": false,
1407
+ "defaultValue": "\"Verify your email to update your payment settings. Enter the code sent to {email} from our referral provider, impact.com.\""
1314
1408
  },
1315
1409
  "generalErrorTitle": {
1316
1410
  "type": "string",
@@ -1358,7 +1452,7 @@ export class BankingInfoForm {
1358
1452
  },
1359
1453
  "attribute": "general-error-description",
1360
1454
  "reflect": false,
1361
- "defaultValue": "\"Please review your information and try again. If this problem continues, contact Support.\""
1455
+ "defaultValue": "\"Please review your information and try again. If this problem continues, contact our {supportLink}.\""
1362
1456
  },
1363
1457
  "fieldRequiredError": {
1364
1458
  "type": "string",
@@ -1402,6 +1496,27 @@ export class BankingInfoForm {
1402
1496
  "reflect": false,
1403
1497
  "defaultValue": "\"{fieldName} is invalid\""
1404
1498
  },
1499
+ "supportLink": {
1500
+ "type": "string",
1501
+ "mutable": false,
1502
+ "complexType": {
1503
+ "original": "string",
1504
+ "resolved": "string",
1505
+ "references": {}
1506
+ },
1507
+ "required": false,
1508
+ "optional": false,
1509
+ "docs": {
1510
+ "tags": [{
1511
+ "text": "Support link text",
1512
+ "name": "uiName"
1513
+ }],
1514
+ "text": ""
1515
+ },
1516
+ "attribute": "support-link",
1517
+ "reflect": false,
1518
+ "defaultValue": "\"support team\""
1519
+ },
1405
1520
  "continueButton": {
1406
1521
  "type": "string",
1407
1522
  "mutable": false,
@@ -1497,7 +1612,7 @@ export class BankingInfoForm {
1497
1612
  "mutable": false,
1498
1613
  "complexType": {
1499
1614
  "original": "DemoData<BankingInfoFormViewProps>",
1500
- "resolved": "{ states?: { step?: string; locale?: string; loading: boolean; saveLoading?: boolean; disabled: boolean; saveDisabled: boolean; hideSteps?: boolean; hasPayPal: boolean; hideBanking?: boolean; hidePayPal?: boolean; hideBalanceThreshold?: boolean; hideFixedDay?: boolean; hideBackButton: boolean; feeCap?: string; isPartner: boolean; paymentMethodFeeLabel?: string; loadingError: boolean; formState: BankingInfoFormData & { paymentMethodChecked?: \"toBankAccount\" | \"toPayPalAccount\"; paymentScheduleChecked?: \"BALANCE_THRESHOLD\" | \"FIXED_DAY\"; errors?: { general?: boolean; inputErrors?: { [field: string]: { type: \"required\" | \"invalid\"; }; }; }; }; bitset?: number; currency?: string; thresholds: string[]; countries?: { countryCode: string; displayName: string; }[]; allCountries?: { countryCode: string; displayName: string; }[]; currentPaymentOption?: any; showInputs?: boolean; bankCountry?: string; countrySearch?: string; }; slots?: { formInputsSlot?: VNode[]; countryInputSlot?: VNode; paymentMethodSlot?: VNode; paymentThresholdSelectSlot?: VNode; paymentFixedDaySelectSlot?: VNode; paypalInputSlot?: VNode; }; refs?: { formRef: any; }; }",
1615
+ "resolved": "{ states?: { showVerification: boolean; step?: string; locale?: string; loading: boolean; saveLoading?: boolean; disabled: boolean; saveDisabled: boolean; hideSteps?: boolean; hasPayPal: boolean; hideBanking?: boolean; hidePayPal?: boolean; hideBalanceThreshold?: boolean; hideFixedDay?: boolean; hideBackButton: boolean; feeCap?: string; isPartner: boolean; paymentMethodFeeLabel?: string; loadingError: boolean; formState: BankingInfoFormData & { paymentMethodChecked?: \"toBankAccount\" | \"toPayPalAccount\"; paymentScheduleChecked?: \"BALANCE_THRESHOLD\" | \"FIXED_DAY\"; errors?: { general?: boolean; inputErrors?: { [field: string]: { type: \"required\" | \"invalid\"; }; }; }; }; bitset?: number; currency?: string; thresholds: string[]; countries?: { countryCode: string; displayName: string; }[]; allCountries?: { countryCode: string; displayName: string; }[]; currentPaymentOption?: any; showInputs?: boolean; bankCountry?: string; countrySearch?: string; email?: string; }; slots?: { verificationDialogSlot?: VNode; formInputsSlot?: VNode[]; countryInputSlot?: VNode; paymentMethodSlot?: VNode; paymentThresholdSelectSlot?: VNode; paymentFixedDaySelectSlot?: VNode; paypalInputSlot?: VNode; }; refs?: { formRef: any; }; }",
1501
1616
  "references": {
1502
1617
  "DemoData": {
1503
1618
  "location": "import",
@@ -1608,6 +1723,7 @@ function useDemoBankingInfoForm(props) {
1608
1723
  hasPayPal: true,
1609
1724
  },
1610
1725
  callbacks: {
1726
+ onVerificationHide: () => { },
1611
1727
  onSubmit: async () => {
1612
1728
  setStep("/dashboard");
1613
1729
  },
@@ -1616,6 +1732,7 @@ function useDemoBankingInfoForm(props) {
1616
1732
  setPaymentScheduleChecked,
1617
1733
  setCountrySearch: () => { },
1618
1734
  onBack: async () => setStep("/dashboard"),
1735
+ onVerification: () => { },
1619
1736
  },
1620
1737
  text: props.getTextProps(),
1621
1738
  refs: {
@@ -1,9 +1,11 @@
1
- import { useLocale, useMutation, useParent, useParentQueryValue, useParentValue, useUserIdentity, } from "@saasquatch/component-boilerplate";
1
+ import { useHost, useLocale, useMutation, useParent, useParentQueryValue, useParentValue, useUserIdentity, } from "@saasquatch/component-boilerplate";
2
2
  import { useEffect, useRef, useState } from "@saasquatch/universal-hooks";
3
3
  import { gql } from "graphql-request";
4
4
  import JSONPointer from "jsonpointer";
5
5
  import { intl } from "../../../global/global";
6
6
  import { FINANCE_NETWORK_SETTINGS_NAMESPACE, SORTED_COUNTRIES_NAMESPACE, TAX_CONTEXT_NAMESPACE, TAX_FORM_CONTEXT_NAMESPACE, USER_QUERY_NAMESPACE, } from "../sqm-tax-and-cash/data";
7
+ import { VERIFICATION_EVENT_KEY } from "../../sqm-widget-verification/keys";
8
+ import { TAX_FORM_UPDATED_EVENT_KEY } from "../eventKeys";
7
9
  // Hardcoded in Impact backend
8
10
  export const paypalFeeMap = {
9
11
  USD: "USD20.00",
@@ -50,6 +52,21 @@ const SAVE_WITHDRAWAL_SETTINGS = gql `
50
52
  }
51
53
  }
52
54
  `;
55
+ const UPDATE_WITHDRAWAL_SETTINGS = gql `
56
+ mutation updateImpactPublisherWithdrawalSettings(
57
+ $updateImpactPublisherWithdrawalSettingsInput: UpdateImpactPublisherWithdrawalSettingsInput!
58
+ ) {
59
+ updateImpactPublisherWithdrawalSettings(
60
+ updateImpactPublisherWithdrawalSettingsInput: $updateImpactPublisherWithdrawalSettingsInput
61
+ ) {
62
+ success
63
+ validationErrors {
64
+ field
65
+ message
66
+ }
67
+ }
68
+ }
69
+ `;
53
70
  function getPaymentMethod(paymentOption) {
54
71
  if (paymentOption.defaultFinancePaymentMethodId === 3 ||
55
72
  paymentOption.defaultFinancePaymentMethodId === 5)
@@ -66,7 +83,8 @@ function parseImpactThreshold(threshold) {
66
83
  return parsed.toString();
67
84
  }
68
85
  export function useBankingInfoForm(props) {
69
- var _a, _b, _c, _d, _e, _f, _g, _h;
86
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
87
+ const host = useHost();
70
88
  const locale = useLocale();
71
89
  const user = useUserIdentity();
72
90
  const [step, setStep] = useParent(TAX_CONTEXT_NAMESPACE);
@@ -76,6 +94,9 @@ export function useBankingInfoForm(props) {
76
94
  const { data: paymentOptionsData, loading: paymentOptionsLoading, errors: paymentOptionsError, } = useParentQueryValue(FINANCE_NETWORK_SETTINGS_NAMESPACE);
77
95
  const { data: userData, refetch, errors: userError, } = useParentQueryValue(USER_QUERY_NAMESPACE);
78
96
  const [saveWithdrawalSettings] = useMutation(SAVE_WITHDRAWAL_SETTINGS);
97
+ const [updateWithdrawalSettings] = useMutation(UPDATE_WITHDRAWAL_SETTINGS);
98
+ const [showVerification, setShowVerification] = useState(false);
99
+ const [currentFormData, setCurrentFormData] = useState(null);
79
100
  const [formState, setFormState] = useState({});
80
101
  const [currentPaymentOption, setCurrentPaymentOption] = useState(null);
81
102
  const [loading, setLoading] = useState(false);
@@ -85,8 +106,9 @@ export function useBankingInfoForm(props) {
85
106
  const [countrySearch, setCountrySearch] = useState("");
86
107
  const [filteredCountries, setFilteredCountries] = useState(countries || []);
87
108
  const currency = ((_c = (_b = (_a = userData === null || userData === void 0 ? void 0 : userData.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher) === null || _c === void 0 ? void 0 : _c.currency) || "";
109
+ const isPartner = !!((_f = (_e = (_d = userData === null || userData === void 0 ? void 0 : userData.user) === null || _d === void 0 ? void 0 : _d.impactConnection) === null || _e === void 0 ? void 0 : _e.publisher) === null || _f === void 0 ? void 0 : _f.withdrawalSettings);
88
110
  const feeCap = paypalFeeMap[currency] || "";
89
- const paymentOptions = (_d = paymentOptionsData === null || paymentOptionsData === void 0 ? void 0 : paymentOptionsData.impactFinanceNetworkSettings) === null || _d === void 0 ? void 0 : _d.data;
111
+ const paymentOptions = (_g = paymentOptionsData === null || paymentOptionsData === void 0 ? void 0 : paymentOptionsData.impactFinanceNetworkSettings) === null || _g === void 0 ? void 0 : _g.data;
90
112
  const paymentMethodFeeMap = {
91
113
  [ACH_PAYMENT_METHOD]: props.eftWithdrawalLabel,
92
114
  [WIRE_PAYMENT_METHOD]: intl.formatMessage({
@@ -165,49 +187,52 @@ export function useBankingInfoForm(props) {
165
187
  setFormState((p) => ({ ...p, bankCountry }));
166
188
  setCurrentPaymentOption(currentPaymentOption);
167
189
  };
168
- const onSubmit = async (event) => {
169
- var _a, _b, _c, _d;
170
- let formData = {};
171
- let validationErrors = {};
172
- const controls = event.target.getFormControls();
173
- controls.forEach((control) => {
174
- if (!control.name || !control.id)
175
- return;
176
- const key = control.name;
177
- const value = control.value;
178
- JSONPointer.set(formData, key, value);
179
- if (control.required && !value) {
180
- JSONPointer.set(validationErrors, key, { type: "required" });
181
- }
182
- });
183
- setErrors({ inputErrors: validationErrors });
184
- if (Object.keys(validationErrors).length) {
185
- return;
186
- }
190
+ const runMutation = async (formData, token) => {
191
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
187
192
  setLoading(true);
188
193
  try {
189
194
  if (!currentPaymentOption)
190
195
  throw new Error("No currentPaymentOption");
191
- const input = {
192
- setImpactPublisherWithdrawalSettingsInput: {
193
- user: {
194
- id: user.id,
195
- accountId: user.accountId,
196
- },
197
- ...formData,
198
- paymentMethod: getPaymentMethod(currentPaymentOption),
199
- paymentSchedulingType: paymentScheduleChecked,
196
+ const body = {
197
+ user: {
198
+ id: user.id,
199
+ accountId: user.accountId,
200
200
  },
201
+ ...formData,
202
+ paymentMethod: getPaymentMethod(currentPaymentOption),
203
+ paymentSchedulingType: paymentScheduleChecked,
201
204
  };
202
- const response = await saveWithdrawalSettings(input);
203
- if (!response || ((_a = response) === null || _a === void 0 ? void 0 : _a.message)) {
205
+ let response = null;
206
+ let success = null;
207
+ let validationErrors = null;
208
+ // Call difference mutations based on whether the user is updating
209
+ // the info for setting it for the first time
210
+ if (isPartner) {
211
+ if (!token)
212
+ return; // Require token for this mutation
213
+ response = await updateWithdrawalSettings({
214
+ updateImpactPublisherWithdrawalSettingsInput: {
215
+ ...body,
216
+ accessKey: token,
217
+ },
218
+ });
219
+ success = (_b = (_a = response) === null || _a === void 0 ? void 0 : _a.updateImpactPublisherWithdrawalSettings) === null || _b === void 0 ? void 0 : _b.success;
220
+ validationErrors = (_d = (_c = response) === null || _c === void 0 ? void 0 : _c.updateImpactPublisherWithdrawalSettings) === null || _d === void 0 ? void 0 : _d.validationErrors;
221
+ }
222
+ else {
223
+ response = await saveWithdrawalSettings({
224
+ setImpactPublisherWithdrawalSettingsInput: {
225
+ ...body,
226
+ },
227
+ });
228
+ success = (_f = (_e = response) === null || _e === void 0 ? void 0 : _e.setImpactPublisherWithdrawalSettings) === null || _f === void 0 ? void 0 : _f.success;
229
+ validationErrors = (_h = (_g = response) === null || _g === void 0 ? void 0 : _g.setImpactPublisherWithdrawalSettings) === null || _h === void 0 ? void 0 : _h.validationErrors;
230
+ }
231
+ if (!response || ((_j = response) === null || _j === void 0 ? void 0 : _j.message)) {
204
232
  throw new Error();
205
233
  }
206
- else if (!((_b = response
207
- .setImpactPublisherWithdrawalSettings) === null || _b === void 0 ? void 0 : _b.success)) {
208
- console.error("Validation failed: ", (_c = response
209
- .setImpactPublisherWithdrawalSettings) === null || _c === void 0 ? void 0 : _c.validationErrors);
210
- const validationErrors = (_d = response.setImpactPublisherWithdrawalSettings) === null || _d === void 0 ? void 0 : _d.validationErrors;
234
+ else if (!success) {
235
+ console.error("Validation failed: ", validationErrors);
211
236
  const mappedValidationErrors = validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.reduce((agg, error) => {
212
237
  return {
213
238
  ...agg,
@@ -222,6 +247,8 @@ export function useBankingInfoForm(props) {
222
247
  });
223
248
  return;
224
249
  }
250
+ // Fire form change event
251
+ window.dispatchEvent(new Event(TAX_FORM_UPDATED_EVENT_KEY));
225
252
  await refetch();
226
253
  setStep("/dashboard");
227
254
  }
@@ -233,6 +260,45 @@ export function useBankingInfoForm(props) {
233
260
  setLoading(false);
234
261
  }
235
262
  };
263
+ const onSubmit = async (event) => {
264
+ let formData = {};
265
+ let validationErrors = {};
266
+ const controls = event.target.getFormControls();
267
+ controls.forEach((control) => {
268
+ if (!control.name || !control.id)
269
+ return;
270
+ const key = control.name;
271
+ const value = control.value;
272
+ JSONPointer.set(formData, key, value);
273
+ if (control.required && !value) {
274
+ JSONPointer.set(validationErrors, key, { type: "required" });
275
+ }
276
+ });
277
+ setErrors({ inputErrors: validationErrors });
278
+ if (Object.keys(validationErrors).length) {
279
+ return;
280
+ }
281
+ let token = undefined;
282
+ if (isPartner) {
283
+ setShowVerification(true);
284
+ token = await new Promise((res) => {
285
+ const cb = (e) => {
286
+ e.stopPropagation();
287
+ host.removeEventListener(VERIFICATION_EVENT_KEY, cb);
288
+ res(e.detail.token);
289
+ };
290
+ host.addEventListener(VERIFICATION_EVENT_KEY, cb);
291
+ });
292
+ setShowVerification(false);
293
+ }
294
+ await runMutation(formData, token);
295
+ };
296
+ const onVerification = async (token) => {
297
+ host.dispatchEvent(new CustomEvent(VERIFICATION_EVENT_KEY, {
298
+ detail: { token },
299
+ bubbles: false,
300
+ }));
301
+ };
236
302
  function setPaymentMethodChecked(paymentMethod) {
237
303
  _setPaymentMethodChecked(paymentMethod);
238
304
  if (paymentMethod === "toPayPalAccount") {
@@ -257,13 +323,16 @@ export function useBankingInfoForm(props) {
257
323
  setPaymentScheduleChecked,
258
324
  onBack: () => setStep("/dashboard"),
259
325
  setCountrySearch,
326
+ onVerification,
327
+ onVerificationHide: () => onVerification(null),
260
328
  },
261
329
  states: {
330
+ showVerification,
262
331
  step: step === null || step === void 0 ? void 0 : step.replace("/", ""),
263
332
  hideSteps: !!context.hideSteps,
264
333
  saveDisabled: !paymentMethodChecked || !paymentScheduleChecked,
265
334
  locale,
266
- isPartner: !!((_g = (_f = (_e = userData === null || userData === void 0 ? void 0 : userData.user) === null || _e === void 0 ? void 0 : _e.impactConnection) === null || _f === void 0 ? void 0 : _f.publisher) === null || _g === void 0 ? void 0 : _g.withdrawalSettings),
335
+ isPartner,
267
336
  feeCap,
268
337
  paymentMethodFeeLabel,
269
338
  disabled: loading,
@@ -288,6 +357,7 @@ export function useBankingInfoForm(props) {
288
357
  hasPayPal,
289
358
  bankCountry: formState.bankCountry,
290
359
  countrySearch,
360
+ email: (_j = userData === null || userData === void 0 ? void 0 : userData.user) === null || _j === void 0 ? void 0 : _j.email,
291
361
  },
292
362
  refs: {
293
363
  formRef,
@@ -20,6 +20,14 @@ const style = {
20
20
  MessageContainer: {
21
21
  maxWidth: "400px",
22
22
  },
23
+ IFrameContainer: {
24
+ "@media screen and (max-width: 440px)": {
25
+ position: "absolute",
26
+ width: "100vw",
27
+ left: "-30px",
28
+ zIndex: "9999",
29
+ },
30
+ },
23
31
  };
24
32
  const sheet = createStyleSheet(style);
25
33
  const styleString = sheet.toString();
@@ -61,6 +69,7 @@ export const DocusignLoadingView = () => {
61
69
  h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } }))));
62
70
  };
63
71
  export const DocusignIframe = ({ states, data, callbacks, text, }) => {
72
+ const { classes } = sheet;
64
73
  const [iFrameHeight, setiFrameHeight] = useState("100%");
65
74
  const allowedDomains = [
66
75
  "referralsaasquatch.com",
@@ -83,7 +92,7 @@ export const DocusignIframe = ({ states, data, callbacks, text, }) => {
83
92
  return () => {
84
93
  window.removeEventListener("message", callback, false);
85
94
  };
86
- }, []);
95
+ }, [iFrameHeight]);
87
96
  if (states.urlLoading)
88
97
  return h(DocusignLoadingView, null);
89
98
  if (DOCUSIGN_ERROR_STATES.includes(states.status)) {
@@ -91,5 +100,9 @@ export const DocusignIframe = ({ states, data, callbacks, text, }) => {
91
100
  }
92
101
  if (DOCUSIGN_EXPIRED_STATES.includes(states.status))
93
102
  return h(DocusignExpiredView, { text: text });
94
- return (h("iframe", { scrolling: "yes", frameBorder: "0", src: data.documentUrl, width: "100%", height: iFrameHeight }));
103
+ // Wrap iFrame with container that shares the same height to push other elements down when absolute positioned
104
+ return (h("div", { style: { height: iFrameHeight } },
105
+ h("style", { type: "text/css" }, styleString),
106
+ h("div", { class: classes.IFrameContainer },
107
+ h("iframe", { scrolling: "yes", frameBorder: "0", width: "100%", src: data.documentUrl, height: iFrameHeight }))));
95
108
  };
@@ -160,12 +160,22 @@ export const DocusignFormView = (props) => {
160
160
  h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
161
161
  h("strong", null, text.error.loadingErrorAlertHeader),
162
162
  h("br", null),
163
- text.error.loadingErrorAlertDescription))),
163
+ intl.formatMessage({
164
+ id: "loadingErrorAlertDescription",
165
+ defaultMessage: text.error.loadingErrorAlertDescription,
166
+ }, {
167
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
168
+ })))),
164
169
  ((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet.classes.ErrorAlertContainer },
165
170
  h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
166
171
  h("strong", null, text.error.generalTitle),
167
172
  h("br", null),
168
- text.error.generalDescription)),
173
+ intl.formatMessage({
174
+ id: "generalDescription",
175
+ defaultMessage: text.error.generalDescription,
176
+ }, {
177
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
178
+ }))),
169
179
  h("div", null,
170
180
  h("div", null,
171
181
  h("h5", { class: classes.BoldText }, intl.formatMessage({ id: "tax-form-label", defaultMessage: text.taxFormLabel }, { documentType: documentTypeString })),
@@ -34,6 +34,10 @@ export class DocusignForm {
34
34
  * @uiWidget textArea
35
35
  */
36
36
  this.taxFormDescription = "Participants based in the US need to submit a {documentType} form.";
37
+ /**
38
+ * @uiName Support link text
39
+ */
40
+ this.supportLink = "support team";
37
41
  /**
38
42
  * Displayed at the top of the page to individuals joining a US program who reside outside the country.
39
43
  * @uiName W-8 BEN tax form description
@@ -77,7 +81,7 @@ export class DocusignForm {
77
81
  * @uiName Docusign form error message
78
82
  * @uiWidget textArea
79
83
  */
80
- this.docusignError = "There was a problem displaying this form. Please refresh the page. If this problem continues, contact Support.";
84
+ this.docusignError = "There was a problem displaying this form. Please refresh the page. If this problem continues, contact our {supportLink}.";
81
85
  /**
82
86
  * @uiName Refresh page button label
83
87
  */
@@ -93,7 +97,7 @@ export class DocusignForm {
93
97
  * @uiName Form submission error message description
94
98
  * @uiWidget textArea
95
99
  */
96
- this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact Support.";
100
+ this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact our {supportLink}.";
97
101
  /**
98
102
  * Part of the alert displayed at the top of the page.
99
103
  * @uiName Page load error message title
@@ -105,7 +109,7 @@ export class DocusignForm {
105
109
  * @uiName Page load error message description
106
110
  * @uiWidget textArea
107
111
  */
108
- this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact Support.";
112
+ this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact our {supportLink}.";
109
113
  /**
110
114
  * Displayed at the top of the page on all set up steps.
111
115
  * @uiName Page description
@@ -240,6 +244,27 @@ export class DocusignForm {
240
244
  "reflect": false,
241
245
  "defaultValue": "\"Participants based in the US need to submit a {documentType} form.\""
242
246
  },
247
+ "supportLink": {
248
+ "type": "string",
249
+ "mutable": false,
250
+ "complexType": {
251
+ "original": "string",
252
+ "resolved": "string",
253
+ "references": {}
254
+ },
255
+ "required": false,
256
+ "optional": false,
257
+ "docs": {
258
+ "tags": [{
259
+ "text": "Support link text",
260
+ "name": "uiName"
261
+ }],
262
+ "text": ""
263
+ },
264
+ "attribute": "support-link",
265
+ "reflect": false,
266
+ "defaultValue": "\"support team\""
267
+ },
243
268
  "taxFormDescriptionIndividualParticipant": {
244
269
  "type": "string",
245
270
  "mutable": false,
@@ -421,7 +446,7 @@ export class DocusignForm {
421
446
  },
422
447
  "attribute": "docusign-error",
423
448
  "reflect": false,
424
- "defaultValue": "\"There was a problem displaying this form. Please refresh the page. If this problem continues, contact Support.\""
449
+ "defaultValue": "\"There was a problem displaying this form. Please refresh the page. If this problem continues, contact our {supportLink}.\""
425
450
  },
426
451
  "refreshButton": {
427
452
  "type": "string",
@@ -490,7 +515,7 @@ export class DocusignForm {
490
515
  },
491
516
  "attribute": "general-error-description",
492
517
  "reflect": false,
493
- "defaultValue": "\"Please review your information and try again. If this problem continues, contact Support.\""
518
+ "defaultValue": "\"Please review your information and try again. If this problem continues, contact our {supportLink}.\""
494
519
  },
495
520
  "loadingErrorAlertHeader": {
496
521
  "type": "string",
@@ -538,7 +563,7 @@ export class DocusignForm {
538
563
  },
539
564
  "attribute": "loading-error-alert-description",
540
565
  "reflect": false,
541
- "defaultValue": "\"Please refresh the page and try again. If this problem continues, contact Support.\""
566
+ "defaultValue": "\"Please refresh the page and try again. If this problem continues, contact our {supportLink}.\""
542
567
  },
543
568
  "taxAndPayoutsDescription": {
544
569
  "type": "string",
@@ -3,6 +3,7 @@ import { useEffect, useState } from "@saasquatch/universal-hooks";
3
3
  import { gql } from "graphql-request";
4
4
  import { TAX_CONTEXT_NAMESPACE, TAX_FORM_CONTEXT_NAMESPACE, USER_QUERY_NAMESPACE, } from "../sqm-tax-and-cash/data";
5
5
  import { taxTypeToName, validTaxDocument } from "../utils";
6
+ import { TAX_FORM_UPDATED_EVENT_KEY } from "../eventKeys";
6
7
  const GET_TAX_DOCUMENT = gql `
7
8
  mutation createImpactPublisherTaxDocument(
8
9
  $vars: CreateImpactPublisherTaxDocumentInput!
@@ -101,6 +102,8 @@ export function useDocusignForm(props) {
101
102
  // @ts-expect-error: no data type for result
102
103
  if (!result.completeImpactPublisherTaxDocument.success)
103
104
  throw new Error();
105
+ // Fire form change event
106
+ window.dispatchEvent(new Event(TAX_FORM_UPDATED_EVENT_KEY));
104
107
  setShowExitButton(true);
105
108
  }
106
109
  catch (e) {