@saasquatch/mint-components 1.15.0-12 → 1.15.0-121

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 (902) hide show
  1. package/dist/cjs/{GenericTableView-f0e9c531.js → GenericTableView-a9845e80.js} +6 -6
  2. package/dist/cjs/IndirectTaxDetailsView-cf888c7b.js +646 -0
  3. package/dist/cjs/{ShadowViewAddon-9618130b.js → ShadowViewAddon-ef5e33a3.js} +1608 -1390
  4. package/dist/cjs/{copy-text-view-b2f47da0.js → copy-text-view-9d368345.js} +22 -11
  5. package/dist/cjs/data-d4339c2e.js +137 -0
  6. package/dist/cjs/{stencil-hooks.module-3a336b0f.js → dom-context-hooks.module-7fa676ae.js} +18 -18
  7. package/dist/cjs/{email-registration-view-55b378dc.js → email-registration-view-ace50780.js} +5 -3
  8. package/dist/cjs/{global-19fe8600.js → global-191f2253.js} +11938 -11717
  9. package/dist/cjs/{index-a29c60ef.js → index-a43a63b4.js} +4 -0
  10. package/dist/cjs/{index.module-ee84433d.js → index.module-4f54e412.js} +191 -191
  11. package/dist/cjs/loader.cjs.js +5 -5
  12. package/dist/cjs/{luxon-2926d85f.js → luxon-949beaf2.js} +2 -2
  13. package/dist/cjs/mint-components.cjs.js +5 -5
  14. package/dist/cjs/{mixins-f7e0377a.js → mixins-4761d472.js} +6 -6
  15. package/dist/cjs/{mockRewardData-272e22d6.js → mockRewardData-df37c8a3.js} +2 -2
  16. package/dist/cjs/parseStates-d1effc19.js +16 -0
  17. package/dist/cjs/raisins-plop-target.cjs.entry.js +1 -1
  18. package/dist/cjs/{re-render-b324deab.js → re-render-d516138a.js} +4 -4
  19. package/dist/cjs/{sqm-banking-info-form_17.cjs.entry.js → sqm-banking-info-form_10.cjs.entry.js} +875 -2413
  20. package/dist/cjs/{sqm-base-registration-form-view-1b2440c3.js → sqm-base-registration-form-view-8847804c.js} +3 -3
  21. package/dist/cjs/{sqm-big-stat_41.cjs.entry.js → sqm-big-stat_44.cjs.entry.js} +1172 -226
  22. package/dist/cjs/{sqm-close-button-view-ea3fa23b.js → sqm-close-button-view-5e85ac51.js} +2 -2
  23. package/dist/cjs/sqm-close-button.cjs.entry.js +6 -6
  24. package/dist/cjs/sqm-code-verification.cjs.entry.js +352 -0
  25. package/dist/cjs/sqm-context-router.cjs.entry.js +11 -11
  26. package/dist/cjs/sqm-email-verification.cjs.entry.js +152 -28
  27. package/dist/cjs/sqm-empty_4.cjs.entry.js +9 -15
  28. package/dist/cjs/sqm-form-message.cjs.entry.js +8 -8
  29. package/dist/cjs/sqm-google-sign-in.cjs.entry.js +14 -14
  30. package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +6 -6
  31. package/dist/cjs/sqm-header-logo.cjs.entry.js +3 -3
  32. package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +9 -9
  33. package/dist/cjs/sqm-invoice-table-data-cell_5.cjs.entry.js +84 -0
  34. package/dist/cjs/sqm-leaderboard-rank-view-6a1e63de.js +10 -0
  35. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +6 -6
  36. package/dist/cjs/{sqm-logout-current-user-view-11d57c12.js → sqm-logout-current-user-view-b61c8bdf.js} +1 -1
  37. package/dist/cjs/sqm-logout-current-user.cjs.entry.js +6 -6
  38. package/dist/cjs/sqm-navigation-sidebar-item-view-ec7a5c53.js +56 -0
  39. package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +31 -8
  40. package/dist/cjs/{sqm-navigation-sidebar-view-17111896.js → sqm-navigation-sidebar-view-de90ef03.js} +18 -8
  41. package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +25 -9
  42. package/dist/cjs/sqm-pagination_3.cjs.entry.js +28 -18
  43. package/dist/cjs/sqm-password-field.cjs.entry.js +11 -11
  44. package/dist/cjs/sqm-popup-container.cjs.entry.js +5 -5
  45. package/dist/cjs/{sqm-portal-container-view-4f15143a.js → sqm-portal-container-view-07e4343f.js} +2 -2
  46. package/dist/cjs/{sqm-portal-email-verification-view-9f7b86a9.js → sqm-portal-email-verification-view-87e083ca.js} +4 -4
  47. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +15 -15
  48. package/dist/cjs/sqm-portal-google-login.cjs.entry.js +9 -9
  49. package/dist/cjs/sqm-portal-google-registration-form.cjs.entry.js +13 -13
  50. package/dist/cjs/{sqm-portal-login-view-84e99287.js → sqm-portal-login-view-bb50304c.js} +4 -4
  51. package/dist/cjs/sqm-portal-logout.cjs.entry.js +4 -4
  52. package/dist/cjs/{sqm-portal-profile-view-e77710f0.js → sqm-portal-profile-view-7ac7d3ac.js} +4 -4
  53. package/dist/cjs/sqm-portal-profile.cjs.entry.js +15 -15
  54. package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +5 -5
  55. package/dist/cjs/{sqm-portal-registration-form-view-4377d849.js → sqm-portal-registration-form-view-5a96c2f5.js} +3 -3
  56. package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +9 -9
  57. package/dist/cjs/{sqm-portal-reset-password-view-52fc50fe.js → sqm-portal-reset-password-view-25eb2099.js} +3 -3
  58. package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +11 -11
  59. package/dist/cjs/{sqm-portal-verify-email-view-4f837226.js → sqm-portal-verify-email-view-1c4e781f.js} +3 -3
  60. package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +12 -12
  61. package/dist/cjs/{sqm-qr-code-view-3da9ed28.js → sqm-qr-code-view-0c3b2f48.js} +9 -4
  62. package/dist/cjs/sqm-qr-code.cjs.entry.js +12 -13
  63. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +133 -44
  64. package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +4 -4
  65. package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +5 -5
  66. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +82 -35
  67. package/dist/cjs/sqm-route.cjs.entry.js +1 -1
  68. package/dist/cjs/sqm-scroll.cjs.entry.js +3 -3
  69. package/dist/cjs/sqm-stencilbook.cjs.entry.js +13732 -12465
  70. package/dist/cjs/sqm-tab.cjs.entry.js +5 -5
  71. package/dist/cjs/sqm-tabs.cjs.entry.js +27 -13
  72. package/dist/cjs/sqm-tax-and-cash.cjs.entry.js +1254 -0
  73. package/dist/cjs/sqm-text-span-view-7a61ae4c.js +63 -0
  74. package/dist/cjs/sqm-text-span.cjs.entry.js +7 -7
  75. package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +19 -11
  76. package/dist/cjs/sqm-widget-verification.cjs.entry.js +25 -13
  77. package/dist/cjs/{useChildElements-1b35d945.js → useChildElements-966c9041.js} +5 -5
  78. package/dist/cjs/{useInstantAccessRegistration-0537e28e.js → useInstantAccessRegistration-08bcb487.js} +4 -4
  79. package/dist/cjs/{usePayoutStatus-4b5894ef.js → usePayoutStatus-3b34dab1.js} +13 -10
  80. package/dist/cjs/{usePortalLogin-63d896d1.js → usePortalLogin-6aa864ef.js} +4 -4
  81. package/dist/cjs/{usePortalRegistrationForm-f25d89e7.js → usePortalRegistrationForm-75b647fe.js} +6 -6
  82. package/dist/cjs/{useReferralCodes-82e8797b.js → useReferralCodes-11cdf43b.js} +3 -3
  83. package/dist/cjs/{useReferralTable-7c3f9600.js → useReferralTable-90d4d6e9.js} +10 -10
  84. package/dist/cjs/{useRegistrationFormState-7b820f0c.js → useRegistrationFormState-bbee6e7b.js} +6 -6
  85. package/dist/cjs/{useVerificationEmail-95a82767.js → useVerificationEmail-9dd3997a.js} +6 -6
  86. package/dist/cjs/{utilities-78f5e169.js → utilities-9a0c5e91.js} +4 -4
  87. package/dist/cjs/{utils-6847bc06.js → utils-7cbd60cc.js} +5 -0
  88. package/dist/cjs/utils-e3305bd8.js +105 -0
  89. package/dist/collection/collection-manifest.json +1 -1
  90. package/dist/collection/components/sqm-big-stat/BigStat.stories.js +13 -0
  91. package/dist/collection/components/sqm-big-stat/sqm-big-stat-view.js +15 -7
  92. package/dist/collection/components/sqm-big-stat/sqm-big-stat.js +169 -4
  93. package/dist/collection/components/sqm-big-stat/useBigStat.js +127 -8
  94. package/dist/collection/components/sqm-big-stat/useDemoBigStat.js +14 -5
  95. package/dist/collection/components/sqm-brand/sqm-brand.js +12 -4
  96. package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +1 -0
  97. package/dist/collection/components/sqm-coupon-code/CouponCode.stories.js +4 -0
  98. package/dist/collection/components/sqm-coupon-code/sqm-coupon-code-view.js +13 -13
  99. package/dist/collection/components/sqm-coupon-code/sqm-coupon-code.js +2 -2
  100. package/dist/collection/components/sqm-coupon-code/useCouponCode.js +1 -0
  101. package/dist/collection/components/sqm-divided-layout/sqm-divided-layout-view.js +14 -6
  102. package/dist/collection/components/sqm-divided-layout/sqm-divided-layout.js +61 -4
  103. package/dist/collection/components/sqm-edit-profile/sqm-edit-profile-view.js +1 -1
  104. package/dist/collection/components/sqm-form-message/FormMessage.stories.js +8 -16
  105. package/dist/collection/components/sqm-form-message/sqm-form-message.css +50 -11
  106. package/dist/collection/components/sqm-form-message/sqm-form-message.js +4 -4
  107. package/dist/collection/components/sqm-hero/Hero.stories.js +11 -0
  108. package/dist/collection/components/sqm-hero/sqm-hero-view.js +16 -8
  109. package/dist/collection/components/sqm-hero/sqm-hero.js +25 -5
  110. package/dist/collection/components/sqm-hero-image/sqm-hero-image-view.js +5 -2
  111. package/dist/collection/components/sqm-hero-image/sqm-hero-image.js +2 -2
  112. package/dist/collection/components/sqm-instant-access-registration/sqm-instant-access-registration.js +3 -3
  113. package/dist/collection/components/sqm-invoice-table/cells/sqm-invoice-table-download-cell.js +2 -2
  114. package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-data-column.js +2 -1
  115. package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-date-column.js +2 -1
  116. package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-download-column.js +2 -1
  117. package/dist/collection/components/sqm-invoice-table/sqm-invoice-table-view.js +1 -1
  118. package/dist/collection/components/sqm-invoice-table/sqm-invoice-table.js +6 -3
  119. package/dist/collection/components/sqm-leaderboard/Leaderboard.stories.js +37 -0
  120. package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +10 -4
  121. package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +202 -61
  122. package/dist/collection/components/sqm-leaderboard-rank/sqm-leaderboard-rank-view.js +2 -2
  123. package/dist/collection/components/sqm-link-button/sqm-link-button.js +1 -0
  124. package/dist/collection/components/sqm-logout-current-user/sqm-logout-current-user.js +2 -1
  125. package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +28 -3
  126. package/dist/collection/components/sqm-name-fields/sqm-name-fields.js +1 -0
  127. package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar-view.js +17 -7
  128. package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar.js +83 -5
  129. package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view.js +18 -7
  130. package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.js +233 -1
  131. package/dist/collection/components/sqm-navigation-sidebar-item/useNavigationSidebarItem.js +9 -1
  132. package/dist/collection/components/sqm-pagination/sqm-pagination-view.js +3 -3
  133. package/dist/collection/components/sqm-pagination/sqm-pagination.js +43 -2
  134. package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll-view.js +1 -1
  135. package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password-view.js +8 -4
  136. package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password.js +1 -1
  137. package/dist/collection/components/sqm-portal-container/sqm-portal-container-view.js +1 -1
  138. package/dist/collection/components/sqm-portal-container/sqm-portal-container.js +1 -8
  139. package/dist/collection/components/sqm-portal-footer/sqm-portal-footer-view.js +6 -6
  140. package/dist/collection/components/sqm-portal-footer/sqm-portal-footer.js +1 -1
  141. package/dist/collection/components/sqm-portal-forgot-password/PortalForgotPassword.stories.js +5 -4
  142. package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.js +21 -13
  143. package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password.js +103 -3
  144. package/dist/collection/components/sqm-portal-frame/sqm-portal-frame-view.js +41 -36
  145. package/dist/collection/components/sqm-portal-frame/sqm-portal-frame.js +102 -2
  146. package/dist/collection/components/sqm-portal-frame/usePortalFrame.js +4 -1
  147. package/dist/collection/components/sqm-portal-login/PortalLogin.stories.js +10 -5
  148. package/dist/collection/components/sqm-portal-login/sqm-portal-login-view.js +1 -1
  149. package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +1 -1
  150. package/dist/collection/components/sqm-portal-profile/sqm-portal-profile-view.js +1 -1
  151. package/dist/collection/components/sqm-portal-register/sqm-portal-register.js +1 -2
  152. package/dist/collection/components/sqm-portal-registration-form/PortalRegistrationForm.stories.js +1 -0
  153. package/dist/collection/components/sqm-program-explainer/sqm-program-explainer.js +1 -1
  154. package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step-view.js +5 -3
  155. package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step.js +5 -5
  156. package/dist/collection/components/sqm-qr-code/sqm-qr-code-view.js +1 -1
  157. package/dist/collection/components/sqm-radio-card/sqm-radio-card-view.js +2 -2
  158. package/dist/collection/components/sqm-referral-card/sqm-referral-card-view.js +6 -4
  159. package/dist/collection/components/sqm-referral-card/sqm-referral-card.js +7 -13
  160. package/dist/collection/components/sqm-referral-code/sqm-referral-code.js +4 -4
  161. package/dist/collection/components/sqm-referral-table/ReferralTable.stories.js +2 -2
  162. package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +55 -18
  163. package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-status-cell.js +62 -7
  164. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-column.js +2 -1
  165. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-date-column.js +4 -2
  166. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.js +6 -3
  167. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-status-column.js +6 -3
  168. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-user-column.js +4 -2
  169. package/dist/collection/components/sqm-referral-table/mockReferralData.js +1 -1
  170. package/dist/collection/components/sqm-referral-table/sqm-referral-table.js +3 -2
  171. package/dist/collection/components/sqm-referred-registration/sqm-referred-registration.js +2 -10
  172. package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeList.stories.js +19 -19
  173. package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeListData.js +31 -5
  174. package/dist/collection/components/sqm-reward-exchange-list/progressBar.js +10 -10
  175. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +39 -42
  176. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +48 -7
  177. package/dist/collection/components/sqm-rewards-table/RewardsTableCell.stories.js +3 -3
  178. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.js +4 -3
  179. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.js +5 -4
  180. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.js +57 -8
  181. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.js +3 -2
  182. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.js +3 -2
  183. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.js +3 -2
  184. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.js +3 -2
  185. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.js +5 -3
  186. package/dist/collection/components/sqm-rewards-table/mockRewardData.js +1 -1
  187. package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +3 -2
  188. package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +1 -1
  189. package/dist/collection/components/sqm-share-button/ShareButton.stories.js +3 -1
  190. package/dist/collection/components/sqm-share-button/sqm-share-button-view.js +23 -22
  191. package/dist/collection/components/sqm-share-button/sqm-share-button.js +56 -10
  192. package/dist/collection/components/sqm-share-code/sqm-share-code.js +5 -5
  193. package/dist/collection/components/sqm-share-link/ShareLink.stories.js +13 -0
  194. package/dist/collection/components/sqm-share-link/sqm-share-link.js +6 -4
  195. package/dist/collection/components/sqm-stat-container/sqm-stat-container-view.js +21 -9
  196. package/dist/collection/components/sqm-stat-container/sqm-stat-container.js +110 -2
  197. package/dist/collection/components/sqm-stencilbook/BrandSelector.js +198 -0
  198. package/dist/collection/components/sqm-stencilbook/Themes.js +325 -33
  199. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +80 -100
  200. package/dist/collection/components/sqm-table-row/sqm-table-row.js +2 -2
  201. package/dist/collection/components/sqm-tabs/Tabs.stories.js +7 -0
  202. package/dist/collection/components/sqm-tabs/sqm-tabs-view.js +16 -2
  203. package/dist/collection/components/sqm-tabs/sqm-tabs.js +28 -2
  204. package/dist/collection/components/sqm-task-card/DetailsView.js +7 -1
  205. package/dist/collection/components/sqm-task-card/progress-bar/progress-bar-view.js +3 -2
  206. package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +18 -20
  207. package/dist/collection/components/sqm-task-card/sqm-task-card.js +4 -8
  208. package/dist/collection/components/sqm-task-card/useTaskCard.js +1 -1
  209. package/dist/collection/components/sqm-text/sqm-text.js +1 -1
  210. package/dist/collection/components/sqm-text-span/sqm-text-span-view.js +44 -43
  211. package/dist/collection/components/sqm-text-span/sqm-text-span.js +51 -2
  212. package/dist/collection/components/sqm-timeline/sqm-timeline-entry-view.js +2 -2
  213. package/dist/collection/components/sqm-timeline/sqm-timeline-entry.js +0 -1
  214. package/dist/collection/components/sqm-titled-section/sqm-titled-section.js +2 -2
  215. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +12 -2
  216. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.js +2 -2
  217. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +138 -14
  218. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-controller.js +39 -7
  219. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +45 -8
  220. package/dist/collection/components/tax-and-cash/BankingForm.stories.js +12 -0
  221. package/dist/collection/components/tax-and-cash/TaxForm.stories.js +30 -9
  222. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/formDefinitions.js +1 -1
  223. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +54 -58
  224. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +108 -5
  225. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +8 -1
  226. package/dist/collection/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.js +3 -3
  227. package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +59 -61
  228. package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +82 -4
  229. package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +6 -2
  230. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +56 -62
  231. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +2 -2
  232. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +2 -2
  233. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card-view.js +24 -27
  234. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js +26 -1
  235. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/usePayoutDetailsCard.js +2 -2
  236. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +18 -48
  237. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +1 -0
  238. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +8 -5
  239. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/ErrorView.js +3 -27
  240. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +283 -30
  241. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +1 -1
  242. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +96 -92
  243. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +49 -5
  244. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +3 -3
  245. package/dist/collection/components/tax-and-cash/sqm-user-info-form/small-views/DocusignExpiredView.js +1 -1
  246. package/dist/collection/components/tax-and-cash/sqm-user-info-form/small-views/IndirectTaxDetailsView.js +2 -2
  247. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +166 -52
  248. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +10 -10
  249. package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +3 -3
  250. package/dist/collection/components/views/copy-text-view.js +20 -9
  251. package/dist/collection/components/views/email-registration-view.js +3 -1
  252. package/dist/collection/global/global.js +27 -12
  253. package/dist/collection/global/mixins.js +6 -6
  254. package/dist/collection/global/styles.js +307 -133
  255. package/dist/collection/global/styles.ts +396 -134
  256. package/dist/collection/insertfont.js +18 -0
  257. package/dist/collection/stories/PortalTemplates.stories.js +22 -30
  258. package/dist/collection/tables/GenericTableView.js +4 -4
  259. package/dist/collection/utils/parseStates.js +12 -0
  260. package/dist/collection/utils/utils.js +4 -0
  261. package/dist/esm/{GenericTableView-e7addb2b.js → GenericTableView-e43d310f.js} +6 -6
  262. package/dist/esm/IndirectTaxDetailsView-a2beb98a.js +639 -0
  263. package/dist/esm/{ShadowViewAddon-8f268346.js → ShadowViewAddon-09d3154b.js} +1605 -1387
  264. package/dist/esm/{copy-text-view-0ac6e1d1.js → copy-text-view-5c086e98.js} +22 -11
  265. package/dist/esm/data-dea73d4d.js +121 -0
  266. package/dist/esm/{stencil-hooks.module-4bc38af4.js → dom-context-hooks.module-63370afd.js} +13 -13
  267. package/dist/esm/{email-registration-view-a7818cf2.js → email-registration-view-1f587f8b.js} +5 -3
  268. package/dist/esm/{global-9d6f3bbe.js → global-ef7a7354.js} +11849 -11629
  269. package/dist/esm/{index-91e7729f.js → index-b3a06de8.js} +4 -0
  270. package/dist/esm/{index.module-89a79f66.js → index.module-c9811a48.js} +154 -154
  271. package/dist/esm/loader.js +5 -5
  272. package/dist/esm/{luxon-8d51c92b.js → luxon-bbf75a9d.js} +1 -1
  273. package/dist/esm/mint-components.js +5 -5
  274. package/dist/esm/{mixins-83f90fa1.js → mixins-f750863a.js} +6 -6
  275. package/dist/esm/{mockRewardData-8bd1b356.js → mockRewardData-96a2d26d.js} +2 -2
  276. package/dist/esm/parseStates-ed75e224.js +14 -0
  277. package/dist/esm/raisins-plop-target.entry.js +1 -1
  278. package/dist/esm/{re-render-cc945f38.js → re-render-7e22fb0d.js} +2 -2
  279. package/dist/esm/{sqm-banking-info-form_17.entry.js → sqm-banking-info-form_10.entry.js} +724 -2255
  280. package/dist/esm/{sqm-base-registration-form-view-31f1cb87.js → sqm-base-registration-form-view-193f1721.js} +3 -3
  281. package/dist/esm/{sqm-big-stat_41.entry.js → sqm-big-stat_44.entry.js} +1083 -140
  282. package/dist/esm/{sqm-close-button-view-f9819751.js → sqm-close-button-view-2fa57229.js} +2 -2
  283. package/dist/esm/sqm-close-button.entry.js +5 -5
  284. package/dist/esm/sqm-code-verification.entry.js +348 -0
  285. package/dist/esm/sqm-context-router.entry.js +4 -4
  286. package/dist/esm/sqm-email-verification.entry.js +145 -21
  287. package/dist/esm/sqm-empty_4.entry.js +6 -12
  288. package/dist/esm/sqm-form-message.entry.js +7 -7
  289. package/dist/esm/sqm-google-sign-in.entry.js +3 -3
  290. package/dist/esm/sqm-graphql-client-provider.entry.js +3 -3
  291. package/dist/esm/sqm-header-logo.entry.js +2 -2
  292. package/dist/esm/sqm-instant-access-registration.entry.js +8 -8
  293. package/dist/esm/sqm-invoice-table-data-cell_5.entry.js +76 -0
  294. package/dist/esm/sqm-leaderboard-rank-view-18baae5b.js +8 -0
  295. package/dist/esm/sqm-leaderboard-rank.entry.js +5 -5
  296. package/dist/esm/{sqm-logout-current-user-view-8ef8180f.js → sqm-logout-current-user-view-f21e54e3.js} +1 -1
  297. package/dist/esm/sqm-logout-current-user.entry.js +5 -5
  298. package/dist/esm/sqm-navigation-sidebar-item-view-bedd6ed7.js +54 -0
  299. package/dist/esm/sqm-navigation-sidebar-item.entry.js +30 -7
  300. package/dist/esm/{sqm-navigation-sidebar-view-9d802b78.js → sqm-navigation-sidebar-view-0a2ec560.js} +18 -8
  301. package/dist/esm/sqm-navigation-sidebar.entry.js +22 -6
  302. package/dist/esm/sqm-pagination_3.entry.js +22 -12
  303. package/dist/esm/sqm-password-field.entry.js +6 -6
  304. package/dist/esm/sqm-popup-container.entry.js +4 -4
  305. package/dist/esm/{sqm-portal-container-view-1683ae32.js → sqm-portal-container-view-176e92e3.js} +2 -2
  306. package/dist/esm/{sqm-portal-email-verification-view-14f1c22c.js → sqm-portal-email-verification-view-37bee5df.js} +4 -4
  307. package/dist/esm/sqm-portal-email-verification.entry.js +7 -7
  308. package/dist/esm/sqm-portal-google-login.entry.js +8 -8
  309. package/dist/esm/sqm-portal-google-registration-form.entry.js +9 -9
  310. package/dist/esm/{sqm-portal-login-view-37c85d04.js → sqm-portal-login-view-7670cd86.js} +4 -4
  311. package/dist/esm/sqm-portal-logout.entry.js +3 -3
  312. package/dist/esm/{sqm-portal-profile-view-41116f1d.js → sqm-portal-profile-view-afb6d879.js} +4 -4
  313. package/dist/esm/sqm-portal-profile.entry.js +8 -8
  314. package/dist/esm/sqm-portal-protected-route.entry.js +3 -3
  315. package/dist/esm/{sqm-portal-registration-form-view-21d57492.js → sqm-portal-registration-form-view-8bdc3804.js} +3 -3
  316. package/dist/esm/sqm-portal-registration-form.entry.js +8 -8
  317. package/dist/esm/{sqm-portal-reset-password-view-b000ffc5.js → sqm-portal-reset-password-view-abef7286.js} +3 -3
  318. package/dist/esm/sqm-portal-reset-password.entry.js +7 -7
  319. package/dist/esm/{sqm-portal-verify-email-view-2983ba9b.js → sqm-portal-verify-email-view-33805220.js} +3 -3
  320. package/dist/esm/sqm-portal-verify-email.entry.js +7 -7
  321. package/dist/esm/{sqm-qr-code-view-10b8b4cb.js → sqm-qr-code-view-97124a66.js} +8 -3
  322. package/dist/esm/sqm-qr-code.entry.js +6 -7
  323. package/dist/esm/sqm-referral-table_11.entry.js +122 -33
  324. package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +3 -3
  325. package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +4 -4
  326. package/dist/esm/sqm-rewards-table_9.entry.js +70 -23
  327. package/dist/esm/sqm-route.entry.js +1 -1
  328. package/dist/esm/sqm-scroll.entry.js +2 -2
  329. package/dist/esm/sqm-stencilbook.entry.js +11428 -10161
  330. package/dist/esm/sqm-tab.entry.js +4 -4
  331. package/dist/esm/sqm-tabs.entry.js +24 -10
  332. package/dist/esm/sqm-tax-and-cash.entry.js +1250 -0
  333. package/dist/esm/sqm-text-span-view-4c17b8c9.js +61 -0
  334. package/dist/esm/sqm-text-span.entry.js +6 -6
  335. package/dist/esm/sqm-widget-verification-controller.entry.js +14 -6
  336. package/dist/esm/sqm-widget-verification.entry.js +22 -10
  337. package/dist/esm/{useChildElements-7945ae56.js → useChildElements-3d872cef.js} +2 -2
  338. package/dist/esm/{useInstantAccessRegistration-dc4ad9f2.js → useInstantAccessRegistration-dda1f52b.js} +3 -3
  339. package/dist/esm/{usePayoutStatus-58aa56b4.js → usePayoutStatus-93462be3.js} +10 -7
  340. package/dist/esm/{usePortalLogin-ef647a50.js → usePortalLogin-e95df3c3.js} +3 -3
  341. package/dist/esm/{usePortalRegistrationForm-4b35a357.js → usePortalRegistrationForm-1eb3cd72.js} +3 -3
  342. package/dist/esm/{useReferralCodes-8f75921a.js → useReferralCodes-c2e809cf.js} +2 -2
  343. package/dist/esm/{useReferralTable-b3876ed6.js → useReferralTable-909ccb28.js} +5 -5
  344. package/dist/esm/{useRegistrationFormState-d6f33135.js → useRegistrationFormState-24d594ea.js} +2 -2
  345. package/dist/esm/{useVerificationEmail-edc318cb.js → useVerificationEmail-55e0e98f.js} +2 -2
  346. package/dist/esm/{utilities-5b0ca040.js → utilities-72c07b09.js} +2 -2
  347. package/dist/esm/{utils-334c1e34.js → utils-03188de2.js} +5 -1
  348. package/dist/esm/utils-a86c25e9.js +97 -0
  349. package/dist/esm-es5/GenericTableView-e43d310f.js +1 -0
  350. package/dist/esm-es5/IndirectTaxDetailsView-a2beb98a.js +1 -0
  351. package/dist/esm-es5/ShadowViewAddon-09d3154b.js +1 -0
  352. package/dist/esm-es5/copy-text-view-5c086e98.js +1 -0
  353. package/dist/esm-es5/data-dea73d4d.js +1 -0
  354. package/dist/esm-es5/dom-context-hooks.module-63370afd.js +53 -0
  355. package/dist/esm-es5/email-registration-view-1f587f8b.js +1 -0
  356. package/dist/esm-es5/{global-9d6f3bbe.js → global-ef7a7354.js} +5 -5
  357. package/dist/esm-es5/{index-91e7729f.js → index-b3a06de8.js} +1 -1
  358. package/dist/esm-es5/index.module-c9811a48.js +1 -0
  359. package/dist/esm-es5/loader.js +1 -1
  360. package/dist/esm-es5/luxon-bbf75a9d.js +1 -0
  361. package/dist/esm-es5/mint-components.js +1 -1
  362. package/dist/esm-es5/mixins-f750863a.js +1 -0
  363. package/dist/esm-es5/{mockRewardData-8bd1b356.js → mockRewardData-96a2d26d.js} +1 -1
  364. package/dist/esm-es5/parseStates-ed75e224.js +1 -0
  365. package/dist/esm-es5/raisins-plop-target.entry.js +1 -1
  366. package/dist/esm-es5/re-render-7e22fb0d.js +1 -0
  367. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -0
  368. package/dist/esm-es5/{sqm-base-registration-form-view-31f1cb87.js → sqm-base-registration-form-view-193f1721.js} +1 -1
  369. package/dist/esm-es5/sqm-big-stat_44.entry.js +1 -0
  370. package/dist/esm-es5/{sqm-close-button-view-f9819751.js → sqm-close-button-view-2fa57229.js} +1 -1
  371. package/dist/esm-es5/sqm-close-button.entry.js +1 -1
  372. package/dist/esm-es5/sqm-code-verification.entry.js +1 -0
  373. package/dist/esm-es5/sqm-context-router.entry.js +1 -1
  374. package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
  375. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  376. package/dist/esm-es5/sqm-form-message.entry.js +1 -1
  377. package/dist/esm-es5/sqm-google-sign-in.entry.js +1 -1
  378. package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
  379. package/dist/esm-es5/sqm-header-logo.entry.js +1 -1
  380. package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
  381. package/dist/esm-es5/sqm-invoice-table-data-cell_5.entry.js +1 -0
  382. package/dist/esm-es5/sqm-leaderboard-rank-view-18baae5b.js +1 -0
  383. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  384. package/dist/esm-es5/{sqm-logout-current-user-view-8ef8180f.js → sqm-logout-current-user-view-f21e54e3.js} +1 -1
  385. package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
  386. package/dist/esm-es5/sqm-navigation-sidebar-item-view-bedd6ed7.js +1 -0
  387. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  388. package/dist/esm-es5/sqm-navigation-sidebar-view-0a2ec560.js +1 -0
  389. package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
  390. package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
  391. package/dist/esm-es5/sqm-password-field.entry.js +1 -1
  392. package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
  393. package/dist/esm-es5/{sqm-portal-container-view-1683ae32.js → sqm-portal-container-view-176e92e3.js} +1 -1
  394. package/dist/esm-es5/{sqm-portal-email-verification-view-14f1c22c.js → sqm-portal-email-verification-view-37bee5df.js} +1 -1
  395. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  396. package/dist/esm-es5/sqm-portal-google-login.entry.js +1 -1
  397. package/dist/esm-es5/sqm-portal-google-registration-form.entry.js +1 -1
  398. package/dist/esm-es5/sqm-portal-login-view-7670cd86.js +1 -0
  399. package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
  400. package/dist/esm-es5/{sqm-portal-profile-view-41116f1d.js → sqm-portal-profile-view-afb6d879.js} +1 -1
  401. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  402. package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
  403. package/dist/esm-es5/{sqm-portal-registration-form-view-21d57492.js → sqm-portal-registration-form-view-8bdc3804.js} +1 -1
  404. package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
  405. package/dist/esm-es5/{sqm-portal-reset-password-view-b000ffc5.js → sqm-portal-reset-password-view-abef7286.js} +1 -1
  406. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  407. package/dist/esm-es5/{sqm-portal-verify-email-view-2983ba9b.js → sqm-portal-verify-email-view-33805220.js} +1 -1
  408. package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
  409. package/dist/esm-es5/sqm-qr-code-view-97124a66.js +1 -0
  410. package/dist/esm-es5/sqm-qr-code.entry.js +1 -1
  411. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  412. package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -1
  413. package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
  414. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  415. package/dist/esm-es5/sqm-route.entry.js +1 -1
  416. package/dist/esm-es5/sqm-scroll.entry.js +1 -1
  417. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  418. package/dist/esm-es5/sqm-tab.entry.js +1 -1
  419. package/dist/esm-es5/sqm-tabs.entry.js +1 -1
  420. package/dist/esm-es5/sqm-tax-and-cash.entry.js +1 -0
  421. package/dist/esm-es5/sqm-text-span-view-4c17b8c9.js +1 -0
  422. package/dist/esm-es5/sqm-text-span.entry.js +1 -1
  423. package/dist/esm-es5/sqm-widget-verification-controller.entry.js +1 -1
  424. package/dist/esm-es5/sqm-widget-verification.entry.js +1 -1
  425. package/dist/esm-es5/useChildElements-3d872cef.js +1 -0
  426. package/dist/esm-es5/useInstantAccessRegistration-dda1f52b.js +1 -0
  427. package/dist/esm-es5/{usePayoutStatus-58aa56b4.js → usePayoutStatus-93462be3.js} +2 -2
  428. package/dist/esm-es5/usePortalLogin-e95df3c3.js +1 -0
  429. package/dist/esm-es5/usePortalRegistrationForm-1eb3cd72.js +1 -0
  430. package/dist/esm-es5/useReferralCodes-c2e809cf.js +1 -0
  431. package/dist/esm-es5/useReferralTable-909ccb28.js +1 -0
  432. package/dist/esm-es5/useRegistrationFormState-24d594ea.js +1 -0
  433. package/dist/esm-es5/useVerificationEmail-55e0e98f.js +1 -0
  434. package/dist/esm-es5/utilities-72c07b09.js +1 -0
  435. package/dist/esm-es5/utils-03188de2.js +1 -0
  436. package/dist/esm-es5/utils-a86c25e9.js +1 -0
  437. package/dist/mint-components/global/styles.ts +396 -134
  438. package/dist/mint-components/mint-components.esm.js +1 -1
  439. package/dist/mint-components/mint-components.js +1 -1
  440. package/dist/mint-components/{p-266a8b4d.js → p-00791abc.js} +1 -1
  441. package/dist/mint-components/{p-e145e4f8.js → p-07dc6d68.js} +1 -1
  442. package/dist/mint-components/{p-5bedb58c.js → p-08700497.js} +1 -1
  443. package/dist/mint-components/p-0935f9b7.system.js +1 -0
  444. package/dist/mint-components/p-0e532b53.entry.js +1 -0
  445. package/dist/mint-components/p-0ec54f97.js +1 -0
  446. package/dist/mint-components/p-10c63703.entry.js +1 -0
  447. package/dist/mint-components/p-115dfc03.system.js +1 -0
  448. package/dist/mint-components/p-125a894f.js +1 -0
  449. package/dist/mint-components/p-1363c4ab.system.js +1 -0
  450. package/dist/mint-components/p-13f3a647.js +1 -0
  451. package/dist/mint-components/p-14128c84.system.entry.js +1 -0
  452. package/dist/mint-components/p-14fd4b05.entry.js +1 -0
  453. package/dist/mint-components/{p-a81b507f.entry.js → p-155f7d25.entry.js} +2 -2
  454. package/dist/mint-components/p-15bfd7e2.system.js +1 -0
  455. package/dist/mint-components/p-171310d9.system.js +1 -0
  456. package/dist/mint-components/{p-dbc0e4f8.system.js → p-17a0f310.system.js} +1 -1
  457. package/dist/mint-components/p-1b933fb5.system.js +1 -0
  458. package/dist/mint-components/p-1cd0e1e9.system.js +1 -0
  459. package/dist/mint-components/p-204861a6.js +1 -0
  460. package/dist/mint-components/{p-642b0650.system.js → p-2074933f.system.js} +22 -22
  461. package/dist/mint-components/{p-e8ffcc68.entry.js → p-20916402.entry.js} +2 -2
  462. package/dist/mint-components/p-2403c6e1.system.js +1 -0
  463. package/dist/mint-components/p-240bec23.js +1 -0
  464. package/dist/mint-components/p-261ef00a.entry.js +93 -0
  465. package/dist/mint-components/{p-164a9103.system.entry.js → p-26a7051d.system.entry.js} +1 -1
  466. package/dist/mint-components/{p-0559d880.entry.js → p-27a7f6a6.entry.js} +1 -1
  467. package/dist/mint-components/p-28c50364.js +1233 -0
  468. package/dist/mint-components/p-29398c98.entry.js +1 -0
  469. package/dist/mint-components/{p-480e08e9.js → p-293e3b25.js} +2 -2
  470. package/dist/mint-components/p-29ba2eaa.entry.js +1 -0
  471. package/dist/mint-components/{p-4027c743.system.entry.js → p-29fa3d84.system.entry.js} +1 -1
  472. package/dist/mint-components/p-2c0c8872.entry.js +144 -0
  473. package/dist/mint-components/p-2e1eceb7.system.entry.js +1 -0
  474. package/dist/mint-components/{p-1b7e6ee9.entry.js → p-2fd59b38.entry.js} +1 -1
  475. package/dist/mint-components/{p-36ffebd8.system.entry.js → p-355079f4.system.entry.js} +1 -1
  476. package/dist/mint-components/p-37ffa277.system.js +1 -0
  477. package/dist/mint-components/{p-44891949.entry.js → p-386ec00c.entry.js} +1 -1
  478. package/dist/mint-components/p-3b0e2094.entry.js +13 -0
  479. package/dist/mint-components/{p-20245645.js → p-3eba9036.js} +1 -1
  480. package/dist/mint-components/p-40752a0f.entry.js +1 -0
  481. package/dist/mint-components/p-40b8b093.js +448 -0
  482. package/dist/mint-components/p-40c01a5a.system.js +1 -0
  483. package/dist/mint-components/{p-301ddcaa.system.entry.js → p-40c33b6a.system.entry.js} +1 -1
  484. package/dist/mint-components/{p-4b6dc0e5.entry.js → p-4204a6e3.entry.js} +1 -1
  485. package/dist/mint-components/{p-6a8d9def.system.entry.js → p-42b62299.system.entry.js} +1 -1
  486. package/dist/mint-components/{p-28b011a0.js → p-43246ab1.js} +1 -1
  487. package/dist/mint-components/{p-345fd28e.system.entry.js → p-43d9c1c5.system.entry.js} +1 -1
  488. package/dist/mint-components/{p-726a9924.js → p-460155de.js} +1 -1
  489. package/dist/mint-components/{p-c0f19490.js → p-49400aab.js} +2 -2
  490. package/dist/mint-components/p-49b20dae.js +1 -0
  491. package/dist/mint-components/p-4a0f42ac.system.entry.js +1 -0
  492. package/dist/mint-components/p-4a379796.js +1 -0
  493. package/dist/mint-components/p-4ddf5eaa.system.js +1 -0
  494. package/dist/mint-components/p-4f5329a2.system.js +53 -0
  495. package/dist/mint-components/{p-ac9f4085.system.entry.js → p-4f5a3dad.system.entry.js} +1 -1
  496. package/dist/mint-components/p-5116afad.system.entry.js +1 -0
  497. package/dist/mint-components/p-513f5d80.js +1 -0
  498. package/dist/mint-components/{p-13ed8586.system.js → p-537a3894.system.js} +1 -1
  499. package/dist/mint-components/{p-4b6f2eca.system.entry.js → p-54abb144.system.entry.js} +1 -1
  500. package/dist/mint-components/p-552a6d1b.js +103 -0
  501. package/dist/mint-components/p-56069d3f.entry.js +1 -0
  502. package/dist/mint-components/{p-17da19a2.system.js → p-574b08e7.system.js} +1 -1
  503. package/dist/mint-components/{p-9b6a0152.system.entry.js → p-58e0eccc.system.entry.js} +1 -1
  504. package/dist/mint-components/p-59b028db.system.js +1 -0
  505. package/dist/mint-components/p-5aad9df5.system.entry.js +1 -0
  506. package/dist/mint-components/{p-f4a72903.system.entry.js → p-5b29d833.system.entry.js} +1 -1
  507. package/dist/mint-components/{p-45bb63c7.system.entry.js → p-5bb59fa8.system.entry.js} +1 -1
  508. package/dist/mint-components/{p-f4a8ee29.system.entry.js → p-5e8d6f3a.system.entry.js} +1 -1
  509. package/dist/mint-components/p-5ff2da11.js +1 -0
  510. package/dist/mint-components/{p-fa37513e.system.entry.js → p-60ec0961.system.entry.js} +1 -1
  511. package/dist/mint-components/p-621f3e30.entry.js +1 -0
  512. package/dist/mint-components/p-625ca62f.entry.js +1 -0
  513. package/dist/mint-components/p-63e29387.js +42 -0
  514. package/dist/mint-components/{p-71d7c2a0.system.js → p-64997b59.system.js} +1 -1
  515. package/dist/mint-components/{p-b5fb3826.system.js → p-6578ea31.system.js} +1 -1
  516. package/dist/mint-components/p-6773244a.entry.js +13 -0
  517. package/dist/mint-components/p-67ad2252.system.js +1 -0
  518. package/dist/mint-components/{p-dc52c36a.js → p-68043f30.js} +1 -1
  519. package/dist/mint-components/p-682359ae.entry.js +25 -0
  520. package/dist/mint-components/p-6919414d.entry.js +33 -0
  521. package/dist/mint-components/p-692bacf3.js +1 -0
  522. package/dist/mint-components/{p-9ec99ced.js → p-6951663b.js} +1 -1
  523. package/dist/mint-components/{p-3c96533f.js → p-699a9b20.js} +1 -1
  524. package/dist/mint-components/p-6b076bae.system.entry.js +1 -0
  525. package/dist/mint-components/{p-8175e85f.system.js → p-6c82d60c.system.js} +1 -1
  526. package/dist/mint-components/p-71271fbd.system.js +1 -0
  527. package/dist/mint-components/{p-6d9e52c7.system.js → p-7159c51c.system.js} +1 -1
  528. package/dist/mint-components/{p-05f29f64.js → p-71af93e3.js} +1 -1
  529. package/dist/mint-components/{p-cc7af682.system.js → p-71daeed9.system.js} +2 -2
  530. package/dist/mint-components/p-73c3804f.system.js +1 -0
  531. package/dist/mint-components/p-75b8fd75.entry.js +1 -0
  532. package/dist/mint-components/p-76b1b937.system.entry.js +1 -0
  533. package/dist/mint-components/p-78878a5a.entry.js +1 -0
  534. package/dist/mint-components/{p-8362cb4c.system.entry.js → p-78c754de.system.entry.js} +1 -1
  535. package/dist/mint-components/p-7b2d40e5.entry.js +9 -0
  536. package/dist/mint-components/p-7b8d29bb.entry.js +1 -0
  537. package/dist/mint-components/{p-1a6b7d2a.entry.js → p-7eb0573c.entry.js} +1 -1
  538. package/dist/mint-components/{p-4d91a1d6.system.js → p-7ff34e84.system.js} +1 -1
  539. package/dist/mint-components/{p-7c2b9fe4.system.js → p-867b2baf.system.js} +1 -1
  540. package/dist/mint-components/p-8a6494c7.system.js +1 -0
  541. package/dist/mint-components/p-8caef004.js +1 -0
  542. package/dist/mint-components/{p-8413ade9.system.js → p-8e28333b.system.js} +1 -1
  543. package/dist/mint-components/p-9049b387.entry.js +1 -0
  544. package/dist/mint-components/{p-18425f38.system.entry.js → p-910f56ca.system.entry.js} +1 -1
  545. package/dist/mint-components/p-92a54b0c.entry.js +1 -0
  546. package/dist/mint-components/{p-c2fdd608.system.entry.js → p-9491f5fb.system.entry.js} +1 -1
  547. package/dist/mint-components/{p-a9f4ddb1.js → p-9580aac3.js} +1 -1
  548. package/dist/mint-components/p-976ee669.js +1 -0
  549. package/dist/mint-components/p-97b980b3.js +1 -0
  550. package/dist/mint-components/{p-6d2f5a1d.js → p-97dc6863.js} +2 -2
  551. package/dist/mint-components/{p-284e4ed5.entry.js → p-9943f53e.entry.js} +1 -1
  552. package/dist/mint-components/{p-e21a1cb8.system.entry.js → p-9ab8a0fd.system.entry.js} +1 -1
  553. package/dist/mint-components/p-9b29f4f5.system.entry.js +1 -0
  554. package/dist/mint-components/{p-3f7b81b8.js → p-9c79ab08.js} +2 -2
  555. package/dist/mint-components/p-9e297104.entry.js +1 -0
  556. package/dist/mint-components/{p-b385c9f0.system.entry.js → p-a4564acb.system.entry.js} +1 -1
  557. package/dist/mint-components/{p-35b475bf.js → p-a45680fe.js} +1 -1
  558. package/dist/mint-components/p-a4e8eb33.entry.js +1 -0
  559. package/dist/mint-components/{p-87c21535.entry.js → p-a52df294.entry.js} +1 -1
  560. package/dist/mint-components/p-a5b58d30.js +1 -0
  561. package/dist/mint-components/p-a5e8bfd4.system.js +1 -0
  562. package/dist/mint-components/{p-127e66c2.system.js → p-a6f4fb03.system.js} +1 -1
  563. package/dist/mint-components/{p-faba3198.entry.js → p-a7ee19dc.entry.js} +1 -1
  564. package/dist/mint-components/p-a8c86cd8.system.entry.js +1 -0
  565. package/dist/mint-components/p-a8e92144.js +1 -0
  566. package/dist/mint-components/{p-4e526a94.js → p-aa596749.js} +1 -1
  567. package/dist/mint-components/{p-f2d8d3d3.system.entry.js → p-af69ee79.system.entry.js} +1 -1
  568. package/dist/mint-components/{p-2ae0e06a.entry.js → p-b2fdb0b1.entry.js} +1 -1
  569. package/dist/mint-components/p-b4a922e1.system.entry.js +1 -0
  570. package/dist/mint-components/{p-571e1427.system.js → p-b6911812.system.js} +1 -1
  571. package/dist/mint-components/p-b6e8d3d7.system.entry.js +1 -0
  572. package/dist/mint-components/p-bad50dc1.entry.js +1 -0
  573. package/dist/mint-components/{p-5488fdd9.system.js → p-bb5d153f.system.js} +1 -1
  574. package/dist/mint-components/p-bcac83f0.system.js +1 -0
  575. package/dist/mint-components/p-bd093069.system.entry.js +1 -0
  576. package/dist/mint-components/p-be88596c.system.js +1 -0
  577. package/dist/mint-components/{p-d6831af5.js → p-c30ad421.js} +1 -1
  578. package/dist/mint-components/{p-96431b4f.system.entry.js → p-c3dce602.system.entry.js} +1 -1
  579. package/dist/mint-components/p-c7c11325.js +1 -0
  580. package/dist/mint-components/{p-605c2904.system.entry.js → p-cc8ca3ff.system.entry.js} +1 -1
  581. package/dist/mint-components/{p-aaff68dc.entry.js → p-d08bcd88.entry.js} +1 -1
  582. package/dist/mint-components/{p-a71b9154.system.js → p-d09d3b8f.system.js} +1 -1
  583. package/dist/mint-components/p-d14f3149.system.js +1 -0
  584. package/dist/mint-components/p-d399b343.system.entry.js +1 -0
  585. package/dist/mint-components/p-d51c9a98.system.entry.js +1 -0
  586. package/dist/mint-components/p-d848957e.system.entry.js +1 -0
  587. package/dist/mint-components/p-dcc50d90.entry.js +1 -0
  588. package/dist/mint-components/p-ddaf4c57.system.entry.js +1 -0
  589. package/dist/mint-components/{p-69ac09d4.js → p-ddf3c05e.js} +1 -1
  590. package/dist/mint-components/{p-2d52e2d7.system.js → p-e174b704.system.js} +1 -1
  591. package/dist/mint-components/{p-da7708a7.entry.js → p-e27ff213.entry.js} +1 -1
  592. package/dist/mint-components/p-e71e147a.system.entry.js +1 -0
  593. package/dist/mint-components/{p-ccf8c9aa.entry.js → p-ea063d99.entry.js} +1 -1
  594. package/dist/mint-components/p-eaeddfe2.system.js +1 -0
  595. package/dist/mint-components/p-ee92a728.system.entry.js +1 -0
  596. package/dist/mint-components/{p-7dabdca6.system.entry.js → p-eea87fdc.system.entry.js} +1 -1
  597. package/dist/mint-components/p-ef1616b5.entry.js +258 -0
  598. package/dist/mint-components/p-f0ebccea.system.entry.js +1 -0
  599. package/dist/mint-components/p-f1dc581f.js +1 -0
  600. package/dist/mint-components/{p-527216de.system.js → p-f3392945.system.js} +1 -1
  601. package/dist/mint-components/p-f4202a64.system.entry.js +1 -0
  602. package/dist/mint-components/{p-4e451f75.js → p-f5fff87e.js} +1 -1
  603. package/dist/mint-components/p-f6baa0c9.system.js +1 -0
  604. package/dist/mint-components/p-f764e51f.entry.js +16 -0
  605. package/dist/mint-components/p-f7919872.system.js +1 -0
  606. package/dist/mint-components/{p-3af1ec4c.entry.js → p-f9295990.entry.js} +1 -1
  607. package/dist/mint-components/p-f9c7248e.js +1 -0
  608. package/dist/mint-components/p-fa0ad3f2.entry.js +11 -0
  609. package/dist/mint-components/p-fab109de.entry.js +1 -0
  610. package/dist/mint-components/{p-2b462e4f.system.entry.js → p-fb2976fc.system.entry.js} +1 -1
  611. package/dist/mint-components/p-fcbed888.system.entry.js +1 -0
  612. package/dist/mint-components/{p-59274a91.system.js → p-ff0e1564.system.js} +1 -1
  613. package/dist/types/components/sqm-big-stat/BigStat.stories.d.ts +2 -0
  614. package/dist/types/components/sqm-big-stat/sqm-big-stat-view.d.ts +5 -0
  615. package/dist/types/components/sqm-big-stat/sqm-big-stat.d.ts +45 -1
  616. package/dist/types/components/sqm-coupon-code/CouponCode.stories.d.ts +1 -0
  617. package/dist/types/components/sqm-coupon-code/sqm-coupon-code-view.d.ts +2 -0
  618. package/dist/types/components/sqm-coupon-code/sqm-coupon-code.d.ts +1 -1
  619. package/dist/types/components/sqm-coupon-code/useCouponCode.d.ts +1 -0
  620. package/dist/types/components/sqm-divided-layout/sqm-divided-layout-view.d.ts +4 -1
  621. package/dist/types/components/sqm-divided-layout/sqm-divided-layout.d.ts +14 -1
  622. package/dist/types/components/sqm-form-message/FormMessage.stories.d.ts +0 -1
  623. package/dist/types/components/sqm-hero/Hero.stories.d.ts +1 -0
  624. package/dist/types/components/sqm-hero/sqm-hero-view.d.ts +1 -0
  625. package/dist/types/components/sqm-hero/sqm-hero.d.ts +7 -2
  626. package/dist/types/components/sqm-hero-image/sqm-hero-image.d.ts +1 -1
  627. package/dist/types/components/sqm-instant-access-registration/sqm-instant-access-registration.d.ts +1 -1
  628. package/dist/types/components/sqm-invoice-table/columns/InvoiceTableColumn.d.ts +1 -0
  629. package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-data-column.d.ts +1 -0
  630. package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-date-column.d.ts +1 -0
  631. package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-download-column.d.ts +1 -0
  632. package/dist/types/components/sqm-invoice-table/mockInvoiceData.d.ts +1 -0
  633. package/dist/types/components/sqm-invoice-table/sqm-invoice-table.d.ts +3 -0
  634. package/dist/types/components/sqm-leaderboard/Leaderboard.stories.d.ts +1 -0
  635. package/dist/types/components/sqm-leaderboard/sqm-leaderboard-view.d.ts +6 -1
  636. package/dist/types/components/sqm-leaderboard/sqm-leaderboard.d.ts +53 -17
  637. package/dist/types/components/sqm-leaderboard/useLeaderboard.d.ts +6 -0
  638. package/dist/types/components/sqm-link-button/sqm-link-button.d.ts +1 -0
  639. package/dist/types/components/sqm-logout-current-user/sqm-logout-current-user.d.ts +1 -0
  640. package/dist/types/components/sqm-navigation-sidebar/sqm-navigation-sidebar-view.d.ts +1 -0
  641. package/dist/types/components/sqm-navigation-sidebar/sqm-navigation-sidebar.d.ts +14 -0
  642. package/dist/types/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view.d.ts +8 -0
  643. package/dist/types/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.d.ts +57 -0
  644. package/dist/types/components/sqm-pagination/sqm-pagination-view.d.ts +1 -0
  645. package/dist/types/components/sqm-pagination/sqm-pagination.d.ts +9 -2
  646. package/dist/types/components/sqm-popup-container/usePopupContainer.d.ts +2 -2
  647. package/dist/types/components/sqm-portal-change-password/sqm-portal-change-password-view.d.ts +2 -0
  648. package/dist/types/components/sqm-portal-footer/sqm-portal-footer.d.ts +1 -1
  649. package/dist/types/components/sqm-portal-forgot-password/PortalForgotPassword.stories.d.ts +1 -0
  650. package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.d.ts +5 -1
  651. package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password.d.ts +15 -0
  652. package/dist/types/components/sqm-portal-frame/sqm-portal-frame-view.d.ts +3 -0
  653. package/dist/types/components/sqm-portal-frame/sqm-portal-frame.d.ts +19 -0
  654. package/dist/types/components/sqm-portal-frame/usePortalFrame.d.ts +2 -1
  655. package/dist/types/components/sqm-portal-login/PortalLogin.stories.d.ts +1 -0
  656. package/dist/types/components/sqm-program-explainer/sqm-program-explainer.d.ts +1 -1
  657. package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step-view.d.ts +1 -1
  658. package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step.d.ts +3 -2
  659. package/dist/types/components/sqm-referral-card/sqm-referral-card.d.ts +6 -5
  660. package/dist/types/components/sqm-referral-code/sqm-referral-code.d.ts +2 -2
  661. package/dist/types/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.d.ts +1 -0
  662. package/dist/types/components/sqm-referral-table/cells/sqm-referral-table-status-cell.d.ts +1 -0
  663. package/dist/types/components/sqm-referral-table/columns/ReferralTableColumn.d.ts +1 -0
  664. package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-column.d.ts +1 -0
  665. package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-date-column.d.ts +1 -0
  666. package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.d.ts +1 -0
  667. package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-status-column.d.ts +1 -0
  668. package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-user-column.d.ts +1 -0
  669. package/dist/types/components/sqm-referral-table/sqm-referral-table.d.ts +2 -1
  670. package/dist/types/components/sqm-referred-registration/sqm-referred-registration.d.ts +1 -1
  671. package/dist/types/components/sqm-reward-exchange-list/RewardExchangeListData.d.ts +457 -437
  672. package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list.d.ts +8 -1
  673. package/dist/types/components/sqm-reward-exchange-list/useRewardExchangeList.d.ts +1 -0
  674. package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.d.ts +1 -0
  675. package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.d.ts +1 -0
  676. package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.d.ts +1 -0
  677. package/dist/types/components/sqm-rewards-table/columns/RewardTableColumn.d.ts +1 -0
  678. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.d.ts +2 -1
  679. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.d.ts +2 -1
  680. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.d.ts +2 -1
  681. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.d.ts +2 -1
  682. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.d.ts +2 -1
  683. package/dist/types/components/sqm-rewards-table/mockRewardData.d.ts +1 -0
  684. package/dist/types/components/sqm-rewards-table/mockTaxData.d.ts +1 -0
  685. package/dist/types/components/sqm-rewards-table/sqm-rewards-table.d.ts +1 -0
  686. package/dist/types/components/sqm-rewards-table/useRewardsTable.d.ts +1 -1
  687. package/dist/types/components/sqm-share-button/ShareButton.stories.d.ts +1 -1
  688. package/dist/types/components/sqm-share-button/sqm-share-button-view.d.ts +2 -1
  689. package/dist/types/components/sqm-share-button/sqm-share-button.d.ts +18 -6
  690. package/dist/types/components/sqm-share-code/sqm-share-code.d.ts +3 -3
  691. package/dist/types/components/sqm-share-link/ShareLink.stories.d.ts +1 -0
  692. package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +3 -2
  693. package/dist/types/components/sqm-stat-container/sqm-stat-container-view.d.ts +3 -0
  694. package/dist/types/components/sqm-stat-container/sqm-stat-container.d.ts +23 -0
  695. package/dist/types/components/sqm-stencilbook/BrandSelector.d.ts +9 -0
  696. package/dist/types/components/sqm-stencilbook/Themes.d.ts +6 -6
  697. package/dist/types/components/sqm-tabs/Tabs.stories.d.ts +1 -0
  698. package/dist/types/components/sqm-tabs/sqm-tabs-view.d.ts +1 -0
  699. package/dist/types/components/sqm-tabs/sqm-tabs.d.ts +8 -0
  700. package/dist/types/components/sqm-task-card/DetailsView.d.ts +6 -0
  701. package/dist/types/components/sqm-task-card/sqm-task-card-view.d.ts +1 -1
  702. package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +1 -5
  703. package/dist/types/components/sqm-task-card/useTaskCard.d.ts +1 -1
  704. package/dist/types/components/sqm-text/sqm-text.d.ts +1 -1
  705. package/dist/types/components/sqm-text-span/sqm-text-span-view.d.ts +4 -2
  706. package/dist/types/components/sqm-text-span/sqm-text-span.d.ts +13 -1
  707. package/dist/types/components/sqm-titled-section/sqm-titled-section.d.ts +2 -2
  708. package/dist/types/components/sqm-widget-verification/sqm-widget-verification-controller.d.ts +5 -2
  709. package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +6 -2
  710. package/dist/types/components/tax-and-cash/BankingForm.stories.d.ts +1 -0
  711. package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +1 -1
  712. package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.d.ts +6 -0
  713. package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.d.ts +16 -0
  714. package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.d.ts +7 -1
  715. package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.d.ts +12 -0
  716. package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +5 -2
  717. package/dist/types/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.d.ts +4 -0
  718. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +1 -0
  719. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +1 -1
  720. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +46 -4
  721. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.d.ts +1 -1
  722. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +1 -1
  723. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +5 -0
  724. package/dist/types/components/tax-and-cash/sqm-user-info-form/small-views/IndirectTaxDetailsView.d.ts +1 -1
  725. package/dist/types/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.d.ts +1 -1
  726. package/dist/types/components/tax-and-cash/utils.d.ts +1 -1
  727. package/dist/types/components.d.ts +786 -94
  728. package/dist/types/global/android.d.ts +7 -0
  729. package/dist/types/global/demo.d.ts +2 -0
  730. package/dist/types/global/global.d.ts +2 -2
  731. package/dist/types/global/mixins.d.ts +12 -12
  732. package/dist/types/global/styles.d.ts +10 -2
  733. package/dist/types/insertfont.d.ts +1 -0
  734. package/dist/types/saasquatch.d.ts +142 -0
  735. package/dist/types/stories/features.d.ts +4 -0
  736. package/dist/types/stories/templates.d.ts +4 -0
  737. package/dist/types/utils/parseStates.d.ts +1 -0
  738. package/dist/types/utils/utils.d.ts +1 -0
  739. package/docs/docs.docx +0 -0
  740. package/docs/raisins.json +1 -1
  741. package/grapesjs/grapesjs.js +1 -1
  742. package/package.json +3 -2
  743. package/dist/cjs/ErrorView-b2fcf954.js +0 -35
  744. package/dist/cjs/sqm-asset-card-view-21ddf04f.js +0 -51
  745. package/dist/cjs/sqm-asset-card.cjs.entry.js +0 -45
  746. package/dist/cjs/sqm-invoice-table-view-55066ec6.js +0 -2038
  747. package/dist/cjs/sqm-leaderboard-rank-view-d39a55d8.js +0 -10
  748. package/dist/cjs/sqm-navigation-sidebar-item-view-6f35d2ee.js +0 -45
  749. package/dist/cjs/sqm-portal-forgot-password-view-b986086e.js +0 -45
  750. package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +0 -127
  751. package/dist/cjs/sqm-referred-registration.cjs.entry.js +0 -178
  752. package/dist/cjs/sqm-text-span-view-56e48a78.js +0 -62
  753. package/dist/collection/components/sqm-asset-card/AssetCard.stories.js +0 -29
  754. package/dist/collection/components/sqm-asset-card/sqm-asset-card-view.js +0 -46
  755. package/dist/collection/components/sqm-asset-card/sqm-asset-card.js +0 -107
  756. package/dist/collection/components/sqm-asset-card/useAssetCard.js +0 -9
  757. package/dist/esm/ErrorView-48e2b969.js +0 -33
  758. package/dist/esm/sqm-asset-card-view-fe5db3c0.js +0 -49
  759. package/dist/esm/sqm-asset-card.entry.js +0 -41
  760. package/dist/esm/sqm-invoice-table-view-fda573e4.js +0 -2022
  761. package/dist/esm/sqm-leaderboard-rank-view-753c8d4a.js +0 -8
  762. package/dist/esm/sqm-navigation-sidebar-item-view-8f1c72bc.js +0 -43
  763. package/dist/esm/sqm-portal-forgot-password-view-50444a7c.js +0 -43
  764. package/dist/esm/sqm-portal-forgot-password.entry.js +0 -123
  765. package/dist/esm/sqm-referred-registration.entry.js +0 -174
  766. package/dist/esm/sqm-text-span-view-c577cc60.js +0 -60
  767. package/dist/esm-es5/ErrorView-48e2b969.js +0 -1
  768. package/dist/esm-es5/GenericTableView-e7addb2b.js +0 -1
  769. package/dist/esm-es5/ShadowViewAddon-8f268346.js +0 -1
  770. package/dist/esm-es5/copy-text-view-0ac6e1d1.js +0 -1
  771. package/dist/esm-es5/email-registration-view-a7818cf2.js +0 -1
  772. package/dist/esm-es5/index.module-89a79f66.js +0 -1
  773. package/dist/esm-es5/luxon-8d51c92b.js +0 -1
  774. package/dist/esm-es5/mixins-83f90fa1.js +0 -1
  775. package/dist/esm-es5/re-render-cc945f38.js +0 -1
  776. package/dist/esm-es5/sqm-asset-card-view-fe5db3c0.js +0 -1
  777. package/dist/esm-es5/sqm-asset-card.entry.js +0 -1
  778. package/dist/esm-es5/sqm-banking-info-form_17.entry.js +0 -1
  779. package/dist/esm-es5/sqm-big-stat_41.entry.js +0 -1
  780. package/dist/esm-es5/sqm-invoice-table-view-fda573e4.js +0 -1
  781. package/dist/esm-es5/sqm-leaderboard-rank-view-753c8d4a.js +0 -1
  782. package/dist/esm-es5/sqm-navigation-sidebar-item-view-8f1c72bc.js +0 -1
  783. package/dist/esm-es5/sqm-navigation-sidebar-view-9d802b78.js +0 -1
  784. package/dist/esm-es5/sqm-portal-forgot-password-view-50444a7c.js +0 -1
  785. package/dist/esm-es5/sqm-portal-forgot-password.entry.js +0 -1
  786. package/dist/esm-es5/sqm-portal-login-view-37c85d04.js +0 -1
  787. package/dist/esm-es5/sqm-qr-code-view-10b8b4cb.js +0 -1
  788. package/dist/esm-es5/sqm-referred-registration.entry.js +0 -1
  789. package/dist/esm-es5/sqm-text-span-view-c577cc60.js +0 -1
  790. package/dist/esm-es5/stencil-hooks.module-4bc38af4.js +0 -53
  791. package/dist/esm-es5/useChildElements-7945ae56.js +0 -1
  792. package/dist/esm-es5/useInstantAccessRegistration-dc4ad9f2.js +0 -1
  793. package/dist/esm-es5/usePortalLogin-ef647a50.js +0 -1
  794. package/dist/esm-es5/usePortalRegistrationForm-4b35a357.js +0 -1
  795. package/dist/esm-es5/useReferralCodes-8f75921a.js +0 -1
  796. package/dist/esm-es5/useReferralTable-b3876ed6.js +0 -1
  797. package/dist/esm-es5/useRegistrationFormState-d6f33135.js +0 -1
  798. package/dist/esm-es5/useVerificationEmail-edc318cb.js +0 -1
  799. package/dist/esm-es5/utilities-5b0ca040.js +0 -1
  800. package/dist/esm-es5/utils-334c1e34.js +0 -1
  801. package/dist/mint-components/p-00ed4c2e.entry.js +0 -1
  802. package/dist/mint-components/p-04a6e457.entry.js +0 -1
  803. package/dist/mint-components/p-12536a1f.system.entry.js +0 -1
  804. package/dist/mint-components/p-141bf5c1.system.entry.js +0 -1
  805. package/dist/mint-components/p-14a65f29.system.js +0 -1
  806. package/dist/mint-components/p-1513309d.entry.js +0 -1
  807. package/dist/mint-components/p-19ccb4ce.js +0 -1
  808. package/dist/mint-components/p-1ae6c418.entry.js +0 -1
  809. package/dist/mint-components/p-1b3ab15a.system.entry.js +0 -1
  810. package/dist/mint-components/p-1fa9ed0d.system.entry.js +0 -1
  811. package/dist/mint-components/p-217514ac.system.js +0 -1
  812. package/dist/mint-components/p-229f797b.js +0 -1
  813. package/dist/mint-components/p-24db5c70.js +0 -1
  814. package/dist/mint-components/p-275b4767.entry.js +0 -1
  815. package/dist/mint-components/p-2bbff88f.entry.js +0 -1
  816. package/dist/mint-components/p-2c7ebd5b.js +0 -1
  817. package/dist/mint-components/p-2dca9e1a.system.js +0 -1
  818. package/dist/mint-components/p-2e110002.system.js +0 -1
  819. package/dist/mint-components/p-3109f2d2.js +0 -394
  820. package/dist/mint-components/p-320d3c31.entry.js +0 -205
  821. package/dist/mint-components/p-32dbde60.system.js +0 -1
  822. package/dist/mint-components/p-33c96e14.entry.js +0 -16
  823. package/dist/mint-components/p-38de17fa.system.js +0 -1
  824. package/dist/mint-components/p-38e5c429.system.js +0 -1
  825. package/dist/mint-components/p-38fc919b.entry.js +0 -1
  826. package/dist/mint-components/p-3a62a7e2.system.js +0 -1
  827. package/dist/mint-components/p-3db34d68.js +0 -1
  828. package/dist/mint-components/p-3f3ae257.entry.js +0 -9
  829. package/dist/mint-components/p-420554af.system.entry.js +0 -1
  830. package/dist/mint-components/p-42187319.system.entry.js +0 -1
  831. package/dist/mint-components/p-4428294b.entry.js +0 -1
  832. package/dist/mint-components/p-48135f99.system.js +0 -53
  833. package/dist/mint-components/p-49206a9c.entry.js +0 -1
  834. package/dist/mint-components/p-4e5af50c.js +0 -1
  835. package/dist/mint-components/p-52858682.system.js +0 -1
  836. package/dist/mint-components/p-5dbe8b0a.system.js +0 -1
  837. package/dist/mint-components/p-6055eb4c.system.js +0 -1
  838. package/dist/mint-components/p-6333265f.system.js +0 -1
  839. package/dist/mint-components/p-635d5ef2.system.js +0 -1
  840. package/dist/mint-components/p-6427e963.entry.js +0 -1
  841. package/dist/mint-components/p-65ba9e94.entry.js +0 -1
  842. package/dist/mint-components/p-6b7a595f.system.js +0 -1
  843. package/dist/mint-components/p-6cd4f2b1.system.js +0 -1
  844. package/dist/mint-components/p-6d8f7c71.js +0 -1
  845. package/dist/mint-components/p-6eaf9c57.entry.js +0 -1
  846. package/dist/mint-components/p-70c41f97.system.js +0 -1
  847. package/dist/mint-components/p-775f3ded.entry.js +0 -1
  848. package/dist/mint-components/p-776260e8.js +0 -1248
  849. package/dist/mint-components/p-7ab21e4d.entry.js +0 -1
  850. package/dist/mint-components/p-7cbec088.system.entry.js +0 -1
  851. package/dist/mint-components/p-7e3a84bc.js +0 -1
  852. package/dist/mint-components/p-7e3d84a3.entry.js +0 -13
  853. package/dist/mint-components/p-802b9f7e.entry.js +0 -1
  854. package/dist/mint-components/p-8053366e.system.entry.js +0 -1
  855. package/dist/mint-components/p-8119a65e.system.entry.js +0 -1
  856. package/dist/mint-components/p-82d04fd3.entry.js +0 -25
  857. package/dist/mint-components/p-868daffd.system.entry.js +0 -1
  858. package/dist/mint-components/p-893d7ab4.js +0 -1
  859. package/dist/mint-components/p-8ab87bd4.entry.js +0 -144
  860. package/dist/mint-components/p-8abfeff8.entry.js +0 -1
  861. package/dist/mint-components/p-8c23d1b8.js +0 -1
  862. package/dist/mint-components/p-8c494bf1.js +0 -1
  863. package/dist/mint-components/p-8d9328dd.entry.js +0 -33
  864. package/dist/mint-components/p-8d9d04b7.system.entry.js +0 -1
  865. package/dist/mint-components/p-8e876dde.entry.js +0 -258
  866. package/dist/mint-components/p-91521e9d.js +0 -1
  867. package/dist/mint-components/p-92816d1f.js +0 -1
  868. package/dist/mint-components/p-94a876b9.js +0 -1
  869. package/dist/mint-components/p-97d4d651.system.js +0 -1
  870. package/dist/mint-components/p-98698131.js +0 -1
  871. package/dist/mint-components/p-9abb9ab0.entry.js +0 -13
  872. package/dist/mint-components/p-9acb5038.js +0 -1
  873. package/dist/mint-components/p-9cf80e85.system.entry.js +0 -1
  874. package/dist/mint-components/p-afbb3f73.entry.js +0 -1
  875. package/dist/mint-components/p-b12e132b.system.entry.js +0 -1
  876. package/dist/mint-components/p-b7d1469d.system.entry.js +0 -1
  877. package/dist/mint-components/p-bd2a2546.system.js +0 -1
  878. package/dist/mint-components/p-bfc7cfc0.system.js +0 -1
  879. package/dist/mint-components/p-c060f770.system.entry.js +0 -1
  880. package/dist/mint-components/p-c36506f6.system.entry.js +0 -1
  881. package/dist/mint-components/p-c571bc61.system.entry.js +0 -1
  882. package/dist/mint-components/p-ccb5699b.js +0 -1
  883. package/dist/mint-components/p-cd1d497f.system.js +0 -1
  884. package/dist/mint-components/p-cd651f81.js +0 -42
  885. package/dist/mint-components/p-dcc81e90.entry.js +0 -1
  886. package/dist/mint-components/p-dce51a2e.system.entry.js +0 -1
  887. package/dist/mint-components/p-df89186f.system.js +0 -1
  888. package/dist/mint-components/p-e6f50ffd.entry.js +0 -1
  889. package/dist/mint-components/p-eab1c9f3.js +0 -1
  890. package/dist/mint-components/p-ee06426a.system.js +0 -1
  891. package/dist/mint-components/p-f219e877.system.entry.js +0 -1
  892. package/dist/mint-components/p-f2228da3.system.entry.js +0 -1
  893. package/dist/mint-components/p-f26aedcd.system.js +0 -1
  894. package/dist/mint-components/p-f708da7b.js +0 -1
  895. package/dist/mint-components/p-f9da2c34.system.entry.js +0 -1
  896. package/dist/mint-components/p-fd0a013f.entry.js +0 -1
  897. package/dist/types/components/sqm-asset-card/AssetCard.stories.d.ts +0 -7
  898. package/dist/types/components/sqm-asset-card/sqm-asset-card-view.d.ts +0 -8
  899. package/dist/types/components/sqm-asset-card/sqm-asset-card.d.ts +0 -24
  900. package/dist/types/components/sqm-asset-card/useAssetCard.d.ts +0 -7
  901. /package/dist/collection/components/tax-and-cash/{sqm-tax-and-cash/data.js → data.js} +0 -0
  902. /package/dist/types/components/tax-and-cash/{sqm-tax-and-cash/data.d.ts → data.d.ts} +0 -0
@@ -2,152 +2,32 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-a29c60ef.js');
6
- const stencilHooks_module = require('./stencil-hooks.module-3a336b0f.js');
7
- const global = require('./global-19fe8600.js');
8
- const index_module = require('./index.module-ee84433d.js');
5
+ const index = require('./index-a43a63b4.js');
6
+ const global = require('./global-191f2253.js');
7
+ const domContextHooks_module = require('./dom-context-hooks.module-7fa676ae.js');
8
+ const index_module = require('./index.module-4f54e412.js');
9
9
  const jsonpointer = require('./jsonpointer-11327262.js');
10
10
  const cjs = require('./cjs-1066ec21.js');
11
- const utils = require('./utils-6847bc06.js');
11
+ const utils = require('./utils-7cbd60cc.js');
12
12
  const JSS = require('./JSS-8503a151.js');
13
- const mixins = require('./mixins-f7e0377a.js');
14
- const GenericTableView = require('./GenericTableView-f0e9c531.js');
15
- const reRender = require('./re-render-b324deab.js');
16
- const useChildElements = require('./useChildElements-1b35d945.js');
17
- const luxon = require('./luxon-2926d85f.js');
18
- const useReferralTable = require('./useReferralTable-7c3f9600.js');
19
- const sqmTextSpanView = require('./sqm-text-span-view-56e48a78.js');
20
- const ErrorView = require('./ErrorView-b2fcf954.js');
21
- const sqmInvoiceTableView = require('./sqm-invoice-table-view-55066ec6.js');
22
- const extractProps = require('./extractProps-fd93ba62.js');
13
+ require('./mixins-4761d472.js');
14
+ const GenericTableView = require('./GenericTableView-a9845e80.js');
15
+ const reRender = require('./re-render-d516138a.js');
16
+ const useChildElements = require('./useChildElements-966c9041.js');
17
+ const luxon = require('./luxon-949beaf2.js');
18
+ const useReferralTable = require('./useReferralTable-90d4d6e9.js');
19
+ const IndirectTaxDetailsView = require('./IndirectTaxDetailsView-cf888c7b.js');
20
+ const utils$1 = require('./utils-e3305bd8.js');
21
+ const data = require('./data-d4339c2e.js');
23
22
  const keys = require('./keys-cff24974.js');
24
- const usePayoutStatus = require('./usePayoutStatus-4b5894ef.js');
25
- const useVerificationEmail = require('./useVerificationEmail-95a82767.js');
26
-
27
- const TAX_CONTEXT_NAMESPACE = "sq:tax-and-cash";
28
- const TAX_FORM_CONTEXT_NAMESPACE = "sq:tax-form-context";
29
- const USER_QUERY_NAMESPACE = "sq:user-info-query";
30
- const USER_FORM_CONTEXT_NAMESPACE = "sq:user-form-context";
31
- const FINANCE_NETWORK_SETTINGS_NAMESPACE = "sq:finance-network-settings";
32
- const COUNTRIES_NAMESPACE = "sq:countries:list";
33
- const SORTED_COUNTRIES_NAMESPACE = "sq:countries:sorted";
34
- const COUNTRIES_QUERY_NAMESPACE = "sq:countries:query";
35
- const CURRENCIES_NAMESPACE = "sq:currencies:list";
36
- const CURRENCIES_QUERY_NAMESPACE = "sq:currencies:query";
37
- const GET_USER = index_module.dist.gql `
38
- query getUserTaxInfo {
39
- user: viewer {
40
- ... on User {
41
- id
42
- firstName
43
- lastName
44
- email
45
- countryCode
46
- customFields
47
- managedIdentity {
48
- uid
49
- email
50
- emailVerified
51
- }
52
- impactConnection {
53
- connected
54
- user {
55
- firstName
56
- lastName
57
- }
58
- publisher {
59
- id
60
- brandedSignup
61
- countryCode
62
- currency
63
- billingAddress
64
- billingCity
65
- billingState
66
- billingCountryCode
67
- billingPostalCode
68
- phoneNumberCountryCode
69
- phoneNumber
70
- taxInformation {
71
- indirectTaxId
72
- indirectTaxCountryCode
73
- indirectTaxRegion
74
- additionalTaxId
75
- withholdingTaxId
76
- withholdingTaxCountryCode
77
- }
78
- requiredTaxDocumentType
79
- currentTaxDocument {
80
- status
81
- type
82
- dateCreated
83
- }
84
- withdrawalSettings {
85
- paymentMethod
86
- paypalEmailAddress
87
- bankCountry
88
- bankAccountNumber
89
- paymentSchedulingType
90
- paymentThreshold
91
- paymentDay
92
- }
93
- payoutsAccount {
94
- hold
95
- holdReasons
96
- balance
97
- }
98
- }
99
- }
100
- }
101
- }
102
- }
103
- `;
104
- const GET_COUNTRIES = index_module.dist.gql `
105
- query getCountries {
106
- impactPayoutCountries(limit: 1000) {
107
- data {
108
- countryCode
109
- displayName
110
- }
111
- }
112
- }
113
- `;
114
- const GET_CURRENCIES = index_module.dist.gql `
115
- query currencies($locale: RSLocale) {
116
- currencies(limit: 300) {
117
- data {
118
- displayName(locale: $locale)
119
- currencyCode
120
- }
121
- }
122
- }
123
- `;
124
- const GET_FINANCE_NETWORK_SETTINGS = index_module.dist.gql `
125
- query impactFinanceNetworkSettings(
126
- $filter: ImpactFinanceNetworkSettingsFilterInput
127
- ) {
128
- impactFinanceNetworkSettings(filter: $filter, limit: 1000) {
129
- data {
130
- countryCode
131
- currency
132
- defaultFinancePaymentMethodId
133
- thresholdOptions
134
- withdrawalSettingId
135
- internationalEftFee
136
- foreignFxFee
137
- defaultFxFee
138
- }
139
- totalCount
140
- }
141
- }
142
- `;
143
- const FORM_STEPS = 4;
23
+ const usePayoutStatus = require('./usePayoutStatus-3b34dab1.js');
144
24
 
145
25
  function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
146
26
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32;
147
27
  const { errors, ...formState } = props.states.formState;
148
28
  return {
149
29
  0: {
150
- input: (index.h("sl-input", Object.assign({ required: true, label: props.text.beneficiaryAccountNameLabel, name: "/beneficiaryAccountName", id: "beneficiaryAccountName", key: "beneficiaryAccountName", type: "text" }, (((_a = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _a === void 0 ? void 0 : _a.beneficiaryAccountName) && {
30
+ input: (index.h("sl-input", Object.assign({ required: true, label: props.text.beneficiaryAccountNameLabel, name: "/beneficiaryAccountName", id: "beneficiaryAccountName", key: "beneficiaryAccountName", type: "text", "help-text": props.text.beneficiaryAccountNameDescription }, (((_a = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _a === void 0 ? void 0 : _a.beneficiaryAccountName) && {
151
31
  class: "error-input",
152
32
  helpText: getValidationErrorMessage({
153
33
  type: (_c = (_b = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _b === void 0 ? void 0 : _b.beneficiaryAccountName) === null || _c === void 0 ? void 0 : _c.type,
@@ -649,6 +529,11 @@ const mockPaymentOptions = {
649
529
  };
650
530
 
651
531
  const style = {
532
+ ModalTitleContainer: {
533
+ display: "flex",
534
+ gap: "var(--sl-spacing-small)",
535
+ alignItems: "center",
536
+ },
652
537
  FormWrapper: {
653
538
  display: "flex",
654
539
  justifyContent: "flex-start",
@@ -679,40 +564,20 @@ const style = {
679
564
  gap: "8px",
680
565
  },
681
566
  ErrorText: {
682
- color: "var(--sl-color-danger-500)",
567
+ color: "var(--sqm-danger-color-icon)",
683
568
  marginTop: "10px",
684
569
  },
685
570
  PageDescriptionText: {
686
- color: "var(--sl-color-neutral-500)",
571
+ color: "var(--sqm-text-subdued)",
687
572
  fontSize: "var(--sl-font-size-medium)",
688
573
  },
689
574
  DescriptionText: {
690
- color: "var(--sl-color-neutral-500)",
691
- },
692
- AlertContainer: {
693
- "&::part(base)": {
694
- backgroundColor: "var(--sl-color-red-100)",
695
- borderTop: "none",
696
- padding: "0 16px",
697
- },
698
- "& sl-icon::part(base)": {
699
- color: "var(--sl-color-danger-500)",
700
- },
575
+ color: "var(--sqm-text-subdued)",
701
576
  },
702
577
  RadioContainer: {
703
578
  display: "flex",
704
579
  flexDirection: "column",
705
580
  },
706
- PartnerAlertContainer: {
707
- "&::part(base)": {
708
- backgroundColor: "var(--sl-color-sky-100)",
709
- borderTop: "none",
710
- padding: "0 16px",
711
- },
712
- "& sl-icon::part(base)": {
713
- color: "var(--sl-color-blue-500)",
714
- },
715
- },
716
581
  Checkbox: {
717
582
  "&::part(control)": {
718
583
  borderRadius: "50% !important",
@@ -724,8 +589,8 @@ const style = {
724
589
  InputContainer: {
725
590
  padding: "16px",
726
591
  margin: "16px 0px 16px 0px",
727
- borderTop: "1px solid var(--sl-color-gray-300)",
728
- borderBottom: "1px solid var(--sl-color-gray-300)",
592
+ borderTop: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
593
+ borderBottom: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
729
594
  display: "flex",
730
595
  flexDirection: "column",
731
596
  width: "100%",
@@ -747,42 +612,47 @@ const style = {
747
612
  width: "16px",
748
613
  height: "16px",
749
614
  borderRadius: "50%",
750
- background: "var(--sl-color-gray-200)",
615
+ background: "var(--sqm-skeleton-background)",
751
616
  },
752
617
  SmallSkeleton: {
753
618
  width: "100px",
754
619
  height: "16px",
755
620
  borderRadius: "50px",
756
- background: "var(--sl-color-gray-200)",
621
+ background: "var(--sqm-skeleton-background)",
757
622
  },
758
623
  LargeSkeleton: {
759
624
  width: "100%",
760
625
  maxWidth: "320px",
761
626
  height: "40px",
762
627
  borderRadius: "50px",
763
- background: "var(--sl-color-gray-200)",
628
+ background: "var(--sqm-skeleton-background)",
764
629
  },
765
- InfoAlert: {
766
- "&::part(base)": {
767
- backgroundColor: "transparent",
768
- borderTop: "none",
769
- border: "none",
630
+ InfoWarningIcon: {
631
+ height: "26px",
632
+ width: "26px",
633
+ },
634
+ Dialog: {
635
+ "&::part(panel)": {
636
+ maxWidth: "420px",
637
+ },
638
+ "&::part(title)": {
639
+ fontSize: "var(--sl-font-size-large)",
640
+ fontWeight: "600",
641
+ },
642
+ "&::part(body)": {
643
+ padding: "0 var(--sl-spacing-x-large) 0 var(--sl-spacing-x-large)",
644
+ fontSize: "var(--sl-font-size-small)",
770
645
  },
771
- "&::part(message)": {
646
+ "&::part(footer)": {
772
647
  display: "flex",
648
+ flexDirection: "column",
649
+ gap: "var(--sl-spacing-small)",
650
+ marginBottom: "var(--sl-spacing-xx-small)",
773
651
  alignItems: "center",
774
- justifyContent: "flex-start",
775
- padding: "10px",
776
- height: "max-content",
777
- },
778
- "& sl-icon::part(base)": {
779
- color: "var(--sl-color-yellow-500)",
652
+ flex: "1",
780
653
  },
781
654
  },
782
- InfoWarningIcon: {
783
- height: "26px",
784
- width: "26px",
785
- },
655
+ DialogButton: { margin: "auto", width: "100%" },
786
656
  };
787
657
  const sheet = JSS.createStyleSheet(style);
788
658
  const styleString = sheet.toString();
@@ -803,12 +673,14 @@ const vanillaStyle = `
803
673
 
804
674
  /* this class is dynamically applied in controller */
805
675
  .error-input::part(base) {
806
- border: 1px solid var(--sl-color-danger-500);
807
- border-radius: var(--sl-input-border-radius-medium);
676
+ --sqm-input-border-color: var(--sqm-danger-color-border);
677
+ --sl-input-border-color: var(--sqm-danger-color-border);
678
+ --sl-input-border-color-hover: var(--sqm-danger-color-border);
679
+ --sl-input-border-color-focus: var(--sqm-danger-color-background);
808
680
  }
809
681
 
810
682
  .error-input::part(help-text) {
811
- color: var(--sl-color-danger-500) !important;
683
+ color: var(--sqm-danger-color-text);
812
684
  }
813
685
 
814
686
  `;
@@ -846,28 +718,30 @@ const BankingInfoFormView = (props) => {
846
718
  index.h("style", { type: "text/css" },
847
719
  styleString,
848
720
  vanillaStyle),
721
+ index.h("sl-dialog", { class: sheet.classes.Dialog, open: states.showModal, "onSl-hide": callbacks.onModalClose },
722
+ index.h("div", { class: classes.ModalTitleContainer, slot: "label" },
723
+ index.h("sl-icon", { name: "info-circle", style: { color: "var(--sl-color-info-500)" } }),
724
+ index.h("h2", { style: { fontSize: "var(--sl-font-size-large)" } }, text.modalTitle)),
725
+ index.h("p", null, text.modalDescription),
726
+ index.h("sl-button", { slot: "footer", type: "primary", class: sheet.classes.DialogButton, submit: true, exportparts: "base: primarybutton-base" }, text.modalButtonText)),
849
727
  index.h("div", { class: classes.TextContainer },
850
728
  index.h("div", null,
851
729
  !states.hideSteps && (index.h("p", null, global.intl.formatMessage({
852
730
  id: "formStep",
853
731
  defaultMessage: text.formStep,
854
- }, { step: states.step, count: FORM_STEPS }))),
732
+ }, { step: states.step, count: data.FORM_STEPS }))),
855
733
  index.h("h3", { style: { fontSize: "24px" } }, text.taxAndPayouts),
856
734
  index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription)),
857
- ((_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.classes.AlertContainer },
858
- index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
859
- index.h("strong", null, text.error.generalTitle),
860
- index.h("br", null),
735
+ ((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sqm-form-message", { type: "error" },
736
+ index.h("p", { part: "alert-title" }, text.error.generalTitle),
861
737
  global.intl.formatMessage({
862
738
  id: "generalDescription",
863
739
  defaultMessage: text.error.generalDescription,
864
740
  }, {
865
741
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
866
742
  }))),
867
- states.isPartner && !states.hideSteps && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "primary", open: true, class: sheet.classes.PartnerAlertContainer },
868
- index.h("sl-icon", { slot: "icon", name: "info-circle" }),
869
- index.h("strong", null, text.isPartnerAlertHeader),
870
- index.h("br", null),
743
+ states.isPartner && !states.hideSteps && (index.h("sqm-form-message", { type: "info" },
744
+ index.h("p", { part: "alert-title" }, text.isPartnerAlertHeader),
871
745
  global.intl.formatMessage({
872
746
  id: "isPartnerAlertDescription",
873
747
  defaultMessage: text.isPartnerAlertDescription,
@@ -905,8 +779,10 @@ const BankingInfoFormView = (props) => {
905
779
  ? getLoadingSkeleton("toPayPalAccount")
906
780
  : slots.paymentFixedDaySelectSlot))))),
907
781
  index.h("div", { class: classes.BtnContainer },
908
- index.h("sl-button", { type: "primary", disabled: states.disabled || states.saveDisabled, loading: states.saveLoading, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton),
909
- !states.hideBackButton && (index.h("sl-button", { exportparts: "base: secondarybutton-base", type: "text", onClick: callbacks.onBack }, text.backButton))))));
782
+ index.h("sl-button", Object.assign({ type: "primary", disabled: states.disabled || states.saveDisabled, loading: states.saveLoading }, (states.hideSteps
783
+ ? { onClick: callbacks.onModalOpen }
784
+ : { submit: "submit" }), { exportparts: "base: primarybutton-base" }), text.continueButton),
785
+ !states.hideBackButton && (index.h("sl-button", { exportparts: "base: secondarybutton-base", type: "secondary", onClick: callbacks.onBack }, text.backButton))))));
910
786
  };
911
787
 
912
788
  // Hardcoded in Impact backend
@@ -990,24 +866,25 @@ function useBankingInfoForm(props) {
990
866
  const host = index_module._();
991
867
  const locale = index_module.L();
992
868
  const user = index_module.J();
993
- const [step, setStep] = index_module.Pn(TAX_CONTEXT_NAMESPACE);
994
- const context = index_module.Fn(TAX_FORM_CONTEXT_NAMESPACE);
995
- const countries = index_module.Fn(SORTED_COUNTRIES_NAMESPACE);
996
- const formRef = stencilHooks_module.useRef(null);
997
- const { data: paymentOptionsData, loading: paymentOptionsLoading, errors: paymentOptionsError, } = index_module.$n(FINANCE_NETWORK_SETTINGS_NAMESPACE);
998
- const { data: userData, refetch, errors: userError, } = index_module.$n(USER_QUERY_NAMESPACE);
869
+ const [step, setStep] = index_module.Pn(data.TAX_CONTEXT_NAMESPACE);
870
+ const context = index_module.Fn(data.TAX_FORM_CONTEXT_NAMESPACE);
871
+ const countries = index_module.Fn(data.SORTED_COUNTRIES_NAMESPACE);
872
+ const formRef = domContextHooks_module.useRef(null);
873
+ const { data: paymentOptionsData, loading: paymentOptionsLoading, errors: paymentOptionsError, } = index_module.$n(data.FINANCE_NETWORK_SETTINGS_NAMESPACE);
874
+ const { data: userData, refetch, errors: userError, } = index_module.$n(data.USER_QUERY_NAMESPACE);
999
875
  const [saveWithdrawalSettings] = index_module.$e(SAVE_WITHDRAWAL_SETTINGS);
1000
876
  const [updateWithdrawalSettings] = index_module.$e(UPDATE_WITHDRAWAL_SETTINGS);
1001
- const [showVerification, setShowVerification] = stencilHooks_module.useState(false);
1002
- const [currentFormData, setCurrentFormData] = stencilHooks_module.useState(null);
1003
- const [formState, setFormState] = stencilHooks_module.useState({});
1004
- const [currentPaymentOption, setCurrentPaymentOption] = stencilHooks_module.useState(null);
1005
- const [loading, setLoading] = stencilHooks_module.useState(false);
1006
- const [errors, setErrors] = stencilHooks_module.useState({});
1007
- const [_paymentMethodChecked, _setPaymentMethodChecked] = stencilHooks_module.useState(undefined);
1008
- const [paymentScheduleChecked, setPaymentScheduleChecked] = stencilHooks_module.useState(undefined);
1009
- const [countrySearch, setCountrySearch] = stencilHooks_module.useState("");
1010
- const [filteredCountries, setFilteredCountries] = stencilHooks_module.useState(countries || []);
877
+ const [showVerification, setShowVerification] = domContextHooks_module.useState(false);
878
+ const [currentFormData, setCurrentFormData] = domContextHooks_module.useState(null);
879
+ const [formState, setFormState] = domContextHooks_module.useState({});
880
+ const [currentPaymentOption, setCurrentPaymentOption] = domContextHooks_module.useState(null);
881
+ const [loading, setLoading] = domContextHooks_module.useState(false);
882
+ const [errors, setErrors] = domContextHooks_module.useState({});
883
+ const [_paymentMethodChecked, _setPaymentMethodChecked] = domContextHooks_module.useState(undefined);
884
+ const [paymentScheduleChecked, setPaymentScheduleChecked] = domContextHooks_module.useState(undefined);
885
+ const [countrySearch, setCountrySearch] = domContextHooks_module.useState("");
886
+ const [filteredCountries, setFilteredCountries] = domContextHooks_module.useState(countries || []);
887
+ const [showModal, setShowModal] = domContextHooks_module.useState(false);
1011
888
  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) || "";
1012
889
  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);
1013
890
  const feeCap = paypalFeeMap[currency] || "";
@@ -1027,7 +904,7 @@ function useBankingInfoForm(props) {
1027
904
  const paymentMethodChecked = !hasPayPal
1028
905
  ? "toBankAccount"
1029
906
  : _paymentMethodChecked;
1030
- stencilHooks_module.useEffect(() => {
907
+ domContextHooks_module.useEffect(() => {
1031
908
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
1032
909
  if (!userData)
1033
910
  return;
@@ -1071,7 +948,7 @@ function useBankingInfoForm(props) {
1071
948
  setPaymentScheduleChecked(initialData.paymentSchedulingType);
1072
949
  setFormState(initialData);
1073
950
  }, [paymentOptions, userData, setCurrentPaymentOption, setFormState]);
1074
- stencilHooks_module.useEffect(() => {
951
+ domContextHooks_module.useEffect(() => {
1075
952
  if (!(countries === null || countries === void 0 ? void 0 : countries.length))
1076
953
  return;
1077
954
  if (countrySearch.trim() === "") {
@@ -1179,10 +1056,12 @@ function useBankingInfoForm(props) {
1179
1056
  });
1180
1057
  setErrors({ inputErrors: validationErrors });
1181
1058
  if (Object.keys(validationErrors).length) {
1059
+ setShowModal(false);
1182
1060
  return;
1183
1061
  }
1184
1062
  let token = undefined;
1185
1063
  if (isPartner) {
1064
+ setShowModal(false);
1186
1065
  setShowVerification(true);
1187
1066
  token = await new Promise((res) => {
1188
1067
  const cb = (e) => {
@@ -1195,6 +1074,7 @@ function useBankingInfoForm(props) {
1195
1074
  setShowVerification(false);
1196
1075
  }
1197
1076
  await runMutation(formData, token);
1077
+ setShowModal(false);
1198
1078
  };
1199
1079
  const onVerification = async (token) => {
1200
1080
  host.dispatchEvent(new CustomEvent(keys.VERIFICATION_EVENT_KEY, {
@@ -1228,6 +1108,8 @@ function useBankingInfoForm(props) {
1228
1108
  setCountrySearch,
1229
1109
  onVerification,
1230
1110
  onVerificationHide: () => onVerification(null),
1111
+ onModalClose: () => setShowModal(false),
1112
+ onModalOpen: () => setShowModal(true),
1231
1113
  },
1232
1114
  states: {
1233
1115
  showVerification,
@@ -1261,6 +1143,7 @@ function useBankingInfoForm(props) {
1261
1143
  bankCountry: formState.bankCountry,
1262
1144
  countrySearch,
1263
1145
  email: (_j = userData === null || userData === void 0 ? void 0 : userData.user) === null || _j === void 0 ? void 0 : _j.email,
1146
+ showModal,
1264
1147
  },
1265
1148
  refs: {
1266
1149
  formRef,
@@ -1345,7 +1228,11 @@ const BankingInfoForm = class {
1345
1228
  /**
1346
1229
  * @uiName Beneficiary account field label
1347
1230
  */
1348
- this.beneficiaryAccountNameLabel = "Beneficiary account name";
1231
+ this.beneficiaryAccountNameLabel = "Account holder name";
1232
+ /**
1233
+ * @uiName Beneficiary account field description
1234
+ */
1235
+ this.beneficiaryAccountNameDescription = "The beneficiary name of your bank account. Ensure this matches the name on your tax form.";
1349
1236
  /**
1350
1237
  * @uiName Bank account type field label
1351
1238
  */
@@ -1524,7 +1411,19 @@ const BankingInfoForm = class {
1524
1411
  * @uiWidget textArea
1525
1412
  */
1526
1413
  this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact Support.";
1527
- stencilHooks_module.h$1(this);
1414
+ /**
1415
+ * @uiName Information modal title
1416
+ */
1417
+ this.modalTitle = "Important Note";
1418
+ /**
1419
+ * @uiName Information modal description text
1420
+ */
1421
+ this.modalDescription = "Updating payment information places your account and payouts on hold for up to 48 hours while we verify your change. Payments scheduled during the hold period are skipped.";
1422
+ /**
1423
+ * @uiName Information modal button text
1424
+ */
1425
+ this.modalButtonText = "I understand, update my information";
1426
+ domContextHooks_module.h$1(this);
1528
1427
  }
1529
1428
  disconnectedCallback() { }
1530
1429
  getTextProps() {
@@ -1664,11 +1563,11 @@ function useDemoBankingInfoForm(props) {
1664
1563
  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;
1665
1564
  const defaultCurrency = (_h = (_g = props.demoData) === null || _g === void 0 ? void 0 : _g.states) === null || _h === void 0 ? void 0 : _h.currency;
1666
1565
  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;
1667
- const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
1668
- const [paymentMethodChecked, setPaymentMethodChecked] = stencilHooks_module.useState(undefined);
1669
- const [paymentScheduleChecked, setPaymentScheduleChecked] = stencilHooks_module.useState(undefined);
1670
- const [currency, setCurrency] = stencilHooks_module.useState(defaultCurrency);
1671
- const [bankCountry, setBankCountry] = stencilHooks_module.useState(defaultCountry);
1566
+ const setStep = index_module.En(data.TAX_CONTEXT_NAMESPACE);
1567
+ const [paymentMethodChecked, setPaymentMethodChecked] = domContextHooks_module.useState(undefined);
1568
+ const [paymentScheduleChecked, setPaymentScheduleChecked] = domContextHooks_module.useState(undefined);
1569
+ const [currency, setCurrency] = domContextHooks_module.useState(defaultCurrency);
1570
+ const [bankCountry, setBankCountry] = domContextHooks_module.useState(defaultCountry);
1672
1571
  const currentPaymentOption = (_m = mockPaymentOptions[currency]) === null || _m === void 0 ? void 0 : _m.find((paymentOption) => {
1673
1572
  if (paymentOption.countryCode === bankCountry)
1674
1573
  return true;
@@ -1676,7 +1575,7 @@ function useDemoBankingInfoForm(props) {
1676
1575
  });
1677
1576
  const bitset = (currentPaymentOption === null || currentPaymentOption === void 0 ? void 0 : currentPaymentOption.withdrawalSettingId) || ((_p = (_o = props.demoData) === null || _o === void 0 ? void 0 : _o.states) === null || _p === void 0 ? void 0 : _p.bitset) ||
1678
1577
  0;
1679
- stencilHooks_module.useEffect(() => {
1578
+ domContextHooks_module.useEffect(() => {
1680
1579
  if (defaultPaymentMethodChecked !== paymentMethodChecked)
1681
1580
  setPaymentMethodChecked(defaultPaymentMethodChecked);
1682
1581
  if (defaultPaymentScheduleChecked !== paymentScheduleChecked)
@@ -1737,6 +1636,7 @@ function useDemoBankingInfoForm(props) {
1737
1636
  currency,
1738
1637
  setCurrency,
1739
1638
  hasPayPal: true,
1639
+ showModal: false,
1740
1640
  },
1741
1641
  callbacks: {
1742
1642
  onVerificationHide: () => { },
@@ -1749,6 +1649,8 @@ function useDemoBankingInfoForm(props) {
1749
1649
  setCountrySearch: () => { },
1750
1650
  onBack: async () => setStep("/dashboard"),
1751
1651
  onVerification: () => { },
1652
+ onModalOpen: () => { },
1653
+ onModalClose: () => { },
1752
1654
  },
1753
1655
  text: props.getTextProps(),
1754
1656
  refs: {
@@ -1757,331 +1659,6 @@ function useDemoBankingInfoForm(props) {
1757
1659
  }, props.demoData || {}, { arrayMerge: (_, a) => a });
1758
1660
  }
1759
1661
 
1760
- const style$1 = {
1761
- Wrapper: {
1762
- display: "flex",
1763
- flexDirection: "column",
1764
- gap: "var(--sl-spacing-medium)",
1765
- maxWidth: "550px",
1766
- },
1767
- HeaderContainer: {
1768
- display: "flex",
1769
- flexDirection: "column",
1770
- },
1771
- InputsContainer: {
1772
- display: "flex",
1773
- gap: "var(--sl-spacing-medium)",
1774
- position: "relative",
1775
- flexDirection: "column",
1776
- },
1777
- CodeInputContainer: {
1778
- display: "flex",
1779
- gap: "var(--sl-spacing-medium)",
1780
- },
1781
- CodeInput: {
1782
- maxWidth: "40px",
1783
- "&::part(input)": {
1784
- margin: "0",
1785
- padding: "0 var(--sl-input-spacing-small)",
1786
- fontSize: "var(--sl-font-size-large)",
1787
- },
1788
- },
1789
- CodeInputError: {
1790
- ...mixins.ErrorStyles,
1791
- maxWidth: "40px",
1792
- "&::part(input)": {
1793
- margin: "0",
1794
- padding: "0 var(--sl-input-spacing-small)",
1795
- fontSize: "var(--sl-font-size-large)",
1796
- },
1797
- },
1798
- ErrorText: {
1799
- color: "var(--sl-color-danger-500)",
1800
- fontSize: "var(--sl-font-size-small)",
1801
- margin: "0",
1802
- },
1803
- ContinueButton: {
1804
- width: "100%",
1805
- maxWidth: "100px",
1806
- },
1807
- FooterContainer: {
1808
- display: "flex",
1809
- flexDirection: "column",
1810
- },
1811
- SkeletonOne: {
1812
- width: "50%",
1813
- height: "16px",
1814
- },
1815
- SkeletonTwo: {
1816
- width: "30%",
1817
- height: "34px",
1818
- },
1819
- SkeletonThree: {
1820
- width: "15%",
1821
- height: "24px",
1822
- },
1823
- };
1824
- const vanillaStyle$1 = `
1825
- :host {
1826
- display: block;
1827
- }
1828
- :host([hidden]): {
1829
- display: none;
1830
- }
1831
-
1832
-
1833
- `;
1834
- const sheet$1 = JSS.createStyleSheet(style$1);
1835
- const styleString$1 = sheet$1.toString();
1836
- function WidgetCodeVerificationView(props) {
1837
- const { states, refs, callbacks, text } = props;
1838
- const resendCodeText = global.intl.formatMessage({
1839
- id: "resendCodeText",
1840
- defaultMessage: text.resendCodeText,
1841
- }, {
1842
- resendCodeLink: (index.h("a", { href: "", style: { textDecoration: "none" }, onClick: (e) => {
1843
- e.preventDefault();
1844
- callbacks.resendEmail();
1845
- } }, text.resendCodeLabel)),
1846
- });
1847
- const codeResentSuccessfully = global.intl.formatMessage({
1848
- id: "codeResentSuccessfully",
1849
- defaultMessage: text.codeResentSuccessfullyText,
1850
- }, {
1851
- email: states.email,
1852
- });
1853
- const inputClass = states.verifyFailed
1854
- ? sheet$1.classes.CodeInputError
1855
- : sheet$1.classes.CodeInput;
1856
- return (index.h("div", { part: "sqm-base" },
1857
- index.h("style", { type: "text/css" },
1858
- vanillaStyle$1,
1859
- styleString$1),
1860
- index.h("div", { class: sheet$1.classes.Wrapper },
1861
- index.h("div", { class: sheet$1.classes.HeaderContainer },
1862
- index.h(sqmTextSpanView.TextSpanView, { type: "p" }, global.intl.formatMessage({
1863
- id: `emailHeaderText`,
1864
- defaultMessage: states.verifyFailed
1865
- ? text.reverifyCodeHeaderText
1866
- : text.verifyCodeHeaderText,
1867
- }, { email: states.email }))),
1868
- states.emailResent && (index.h("sqm-form-message", { type: "success", exportparts: "successalert-icon" },
1869
- index.h("b", null, codeResentSuccessfully))),
1870
- index.h("div", { class: sheet$1.classes.InputsContainer },
1871
- index.h("div", { ref: refs.codeWrapperRef, class: sheet$1.classes.CodeInputContainer },
1872
- index.h("sl-input", { class: inputClass, name: "code" }),
1873
- index.h("sl-input", { class: inputClass, name: "code" }),
1874
- index.h("sl-input", { class: inputClass, name: "code" }),
1875
- index.h("sl-input", { class: inputClass, name: "code" }),
1876
- index.h("sl-input", { class: inputClass, name: "code" }),
1877
- index.h("sl-input", { class: inputClass, name: "code" })),
1878
- states.verifyFailed && (index.h("p", { class: sheet$1.classes.ErrorText }, text.invalidCodeText)),
1879
- 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)),
1880
- index.h("div", { class: sheet$1.classes.FooterContainer },
1881
- index.h(sqmTextSpanView.TextSpanView, { type: "p" }, resendCodeText)))));
1882
- }
1883
-
1884
- const VerifyEmailWithCodeMutation = index_module.dist.gql `
1885
- mutation submitImpactPublisherEmail2FACode(
1886
- $user: UserIdInput!
1887
- $code: String!
1888
- ) {
1889
- submitImpactPublisherEmail2FACode(user: $user, code: $code) {
1890
- verifiedEmail
1891
- accessKey
1892
- }
1893
- }
1894
- `;
1895
- function useWidgetCodeVerification(props) {
1896
- const host = stencilHooks_module.l();
1897
- const [_, setShowCode] = index_module.Pn(keys.SHOW_CODE_NAMESPACE);
1898
- const email = index_module.Fn(keys.VERIFICATION_EMAIL_NAMESPACE);
1899
- const [emailSent, setEmailSent] = stencilHooks_module.useState(false);
1900
- const [emailResent, setEmailResent] = stencilHooks_module.useState(false);
1901
- const [codeRef, setCodeRef] = stencilHooks_module.useState(null);
1902
- const [validationError, setValidationError] = stencilHooks_module.useState(false);
1903
- const [emailError, setEmailError] = stencilHooks_module.useState(false);
1904
- const { initialized, verificationEmail, send: [sendEmail, { loading: sendLoading, errors: sendErrors }], verify: [verifyEmail, { loading: verifyLoading, errors: verifyErrors }], } = useVerificationEmail.useVerificationEmail();
1905
- stencilHooks_module.useEffect(() => {
1906
- if (!codeRef)
1907
- return;
1908
- const slInputs = codeRef.querySelectorAll("sl-input");
1909
- const codeElements = Array.from(slInputs).map((node) => node.shadowRoot.querySelector(`input[name="code"]`));
1910
- codeElements.forEach((element, idx) => {
1911
- element.addEventListener("focus", (e) => {
1912
- e.target.select();
1913
- });
1914
- element.addEventListener("keydown", (e) => {
1915
- if (e.key === "Backspace" && e.target.value === "") {
1916
- codeElements[Math.max(0, idx - 1)].focus();
1917
- }
1918
- });
1919
- element.addEventListener("input", (e) => {
1920
- const input = e.data;
1921
- if (!input)
1922
- return;
1923
- if (idx === codeElements.length - 1) {
1924
- e.target.value = input.slice(0, 1);
1925
- return;
1926
- }
1927
- if (input.length > 1) {
1928
- const rest = input.slice(1);
1929
- e.target.value = input.slice(0, 1);
1930
- codeElements[idx + 1].dispatchEvent(new InputEvent("input", {
1931
- inputType: "insertFromPaste",
1932
- data: rest,
1933
- }));
1934
- }
1935
- codeElements[idx + 1].focus();
1936
- });
1937
- });
1938
- }, [codeRef]);
1939
- const reset = () => {
1940
- setShowCode(false);
1941
- setValidationError(false);
1942
- };
1943
- const resendEmail = async () => {
1944
- // UI should only allow this to be called if initialized, but checking just in case
1945
- if (!initialized)
1946
- return;
1947
- const result = await sendEmail();
1948
- if (!result) {
1949
- setEmailError(true);
1950
- return;
1951
- }
1952
- if (emailSent)
1953
- setEmailResent(true);
1954
- setEmailSent(true);
1955
- };
1956
- const submitCode = async () => {
1957
- const slInputs = codeRef.querySelectorAll("sl-input");
1958
- const codeElements = Array.from(slInputs).map((node) => node.shadowRoot.querySelector(`input[name="code"]`));
1959
- if (codeElements.find((el) => !el.value)) {
1960
- setValidationError(true);
1961
- return;
1962
- }
1963
- let code = "";
1964
- codeElements.forEach((element) => {
1965
- code = `${code}${element.value}`;
1966
- });
1967
- // UI should only allow this to be called if initialized, but checking just in case
1968
- if (!initialized)
1969
- return;
1970
- setValidationError(false);
1971
- const res = await verifyEmail(code);
1972
- if (res === null || res === void 0 ? void 0 : res.success) {
1973
- props.onVerification(res.accessKey);
1974
- reset();
1975
- }
1976
- else {
1977
- setValidationError(true);
1978
- }
1979
- };
1980
- stencilHooks_module.useEffect(() => {
1981
- // Wait for mutations to be determined from user lookup
1982
- if (!initialized)
1983
- return;
1984
- // email should already exist if user has completed email-verification
1985
- if (!email)
1986
- resendEmail();
1987
- else
1988
- setEmailSent(true);
1989
- }, [initialized]);
1990
- return {
1991
- refs: {
1992
- codeWrapperRef: setCodeRef,
1993
- },
1994
- states: {
1995
- email: verificationEmail,
1996
- emailResent,
1997
- resendError: sendErrors || verifyErrors,
1998
- initialiseLoading: !initialized,
1999
- loading: sendLoading || verifyLoading,
2000
- verifyFailed: !!validationError,
2001
- },
2002
- callbacks: {
2003
- resendEmail,
2004
- submitCode,
2005
- },
2006
- text: props.getTextProps(),
2007
- };
2008
- }
2009
-
2010
- const WidgetCodeVerification = class {
2011
- constructor(hostRef) {
2012
- index.registerInstance(this, hostRef);
2013
- /**
2014
- * @uiName Verify code widget header text
2015
- */
2016
- this.verifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
2017
- /**
2018
- * @uiName Reverify code widget header text
2019
- */
2020
- this.reverifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
2021
- /**
2022
- * Text displayed under verify button
2023
- * @uiName Resend code text
2024
- */
2025
- this.resendCodeText = "Didn't receive your code? {resendCodeLink}";
2026
- /**
2027
- * The link that appears in the resend code link
2028
- * @uiName Resend code label
2029
- */
2030
- this.resendCodeLabel = "Resend code";
2031
- /**
2032
- * Link text displayed under verify button
2033
- * @uiName Resend code text
2034
- */
2035
- this.codeResentSuccessfullyText = "Another code has been sent to {email}";
2036
- /**
2037
- * Error text displayed under verification input
2038
- * @uiName Invalid code text
2039
- */
2040
- this.invalidCodeText = "Please check your code and try again. If you’re still having trouble, try resending your code.";
2041
- /**
2042
- * @uiName Verify code button text
2043
- */
2044
- this.verifyText = "Verify";
2045
- /**
2046
- * Displayed when the email verification fails due to a network error. The participant can try refreshing the page.
2047
- * @uiName Network error message
2048
- */
2049
- this.networkErrorMessage = "An error occurred while verifying your email. Please refresh the page and try again.";
2050
- stencilHooks_module.h$1(this);
2051
- }
2052
- disconnectedCallback() { }
2053
- getTextProps() {
2054
- return utils.getProps(this);
2055
- }
2056
- render() {
2057
- const props = index_module.isDemo()
2058
- ? useDemoWidgetCodeVerification(this)
2059
- : useWidgetCodeVerification(this);
2060
- return index.h(WidgetCodeVerificationView, Object.assign({}, props));
2061
- }
2062
- };
2063
- function useDemoWidgetCodeVerification(props) {
2064
- const [emailResent, setEmailResent] = stencilHooks_module.useState(false);
2065
- const setVerifiedContext = index_module.En(keys.VERIFICATION_PARENT_NAMESPACE);
2066
- return cjs.cjs({
2067
- states: {
2068
- loading: false,
2069
- email: "test@example.com",
2070
- emailResent,
2071
- resendError: false,
2072
- verifyFailed: false,
2073
- },
2074
- refs: {
2075
- codeWrapperRef: () => { },
2076
- },
2077
- callbacks: {
2078
- resendEmail: async () => setEmailResent(true),
2079
- submitCode: async () => setVerifiedContext(true),
2080
- },
2081
- text: props.getTextProps(),
2082
- }, props.demoData || {}, { arrayMerge: (_, a) => a });
2083
- }
2084
-
2085
1662
  const GET_TAX_DOCUMENT = index_module.dist.gql `
2086
1663
  mutation createImpactPublisherTaxDocument(
2087
1664
  $vars: CreateImpactPublisherTaxDocumentInput!
@@ -2110,23 +1687,24 @@ const DOCUSIGN_EXPIRED_STATES = ["ttl_expired", "session_timeout"];
2110
1687
  function useDocusignForm(props) {
2111
1688
  var _a, _b, _c;
2112
1689
  const user = index_module.J();
2113
- const context = index_module.Fn(TAX_FORM_CONTEXT_NAMESPACE);
2114
- const [step, setStep] = index_module.Pn(TAX_CONTEXT_NAMESPACE);
2115
- const { data, loading: userLoading, refetch, } = index_module.$n(USER_QUERY_NAMESPACE);
2116
- 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;
1690
+ const context = index_module.Fn(data.TAX_FORM_CONTEXT_NAMESPACE);
1691
+ const [step, setStep] = index_module.Pn(data.TAX_CONTEXT_NAMESPACE);
1692
+ const { data: data$1, loading: userLoading, refetch, } = index_module.$n(data.USER_QUERY_NAMESPACE);
1693
+ const publisher = (_b = (_a = data$1 === null || data$1 === void 0 ? void 0 : data$1.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher;
2117
1694
  const [createTaxDocument, { loading: documentLoading, data: document, errors: documentErrors },] = index_module.$e(GET_TAX_DOCUMENT);
2118
1695
  const [completeTaxDocument, { loading: completeDocumentLoading, data: completeData, errors: completeErrors, },] = index_module.$e(COMPLETE_TAX_DOCUMENT);
2119
- const [docusignStatus, setDocusignStatus] = stencilHooks_module.useState(undefined);
2120
- const [participantType, setParticipantType] = stencilHooks_module.useState(undefined);
2121
- const [errors, setErrors] = stencilHooks_module.useState({});
2122
- const [loading, setLoading] = stencilHooks_module.useState(false);
2123
- const [showExitButton, setShowExitButton] = stencilHooks_module.useState(false);
1696
+ const [docusignStatus, setDocusignStatus] = domContextHooks_module.useState(undefined);
1697
+ const [participantType, setParticipantType] = domContextHooks_module.useState(undefined);
1698
+ const [errors, setErrors] = domContextHooks_module.useState({});
1699
+ const [loading, setLoading] = domContextHooks_module.useState(false);
1700
+ const [showExitButton, setShowExitButton] = domContextHooks_module.useState(false);
1701
+ const [showModal, setShowModal] = domContextHooks_module.useState(true);
2124
1702
  // Only look at current document if it's valid (same as required type)
2125
- const existingDocumentType = sqmInvoiceTableView.validTaxDocument(publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType) && (publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument)
1703
+ const existingDocumentType = utils$1.validTaxDocument(publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType) && (publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument)
2126
1704
  ? publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType : undefined;
2127
1705
  const actualDocumentType = existingDocumentType ||
2128
1706
  getDocumentType(participantType) || (publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType);
2129
- stencilHooks_module.useEffect(() => {
1707
+ domContextHooks_module.useEffect(() => {
2130
1708
  if (!existingDocumentType)
2131
1709
  return;
2132
1710
  if (existingDocumentType === "W8BEN") {
@@ -2136,7 +1714,7 @@ function useDocusignForm(props) {
2136
1714
  setParticipantType("businessEntity");
2137
1715
  }
2138
1716
  }, [existingDocumentType]);
2139
- stencilHooks_module.useEffect(() => {
1717
+ domContextHooks_module.useEffect(() => {
2140
1718
  // Skip if no publisher info
2141
1719
  if (!user || !publisher)
2142
1720
  return;
@@ -2214,8 +1792,9 @@ function useDocusignForm(props) {
2214
1792
  },
2215
1793
  docusignStatus,
2216
1794
  documentType: actualDocumentType,
2217
- documentTypeString: sqmInvoiceTableView.taxTypeToName(actualDocumentType),
1795
+ documentTypeString: utils$1.taxTypeToName(actualDocumentType),
2218
1796
  showExitButton,
1797
+ showModal,
2219
1798
  },
2220
1799
  data: {
2221
1800
  taxForm: actualDocumentType,
@@ -2226,6 +1805,8 @@ function useDocusignForm(props) {
2226
1805
  completeDocument,
2227
1806
  onExit: progressStep,
2228
1807
  setParticipantType,
1808
+ onModalClose: () => setShowModal(false),
1809
+ onModalOpen: () => setShowModal(true),
2229
1810
  },
2230
1811
  text: props.getTextProps(),
2231
1812
  };
@@ -2239,7 +1820,7 @@ function getDocumentType(p) {
2239
1820
  return undefined;
2240
1821
  }
2241
1822
 
2242
- const style$2 = {
1823
+ const style$1 = {
2243
1824
  DocusignStatusContainer: {
2244
1825
  width: "100%",
2245
1826
  minHeight: "600px",
@@ -2251,7 +1832,7 @@ const style$2 = {
2251
1832
  gap: "10px",
2252
1833
  margin: "auto",
2253
1834
  textAlign: "center",
2254
- border: "1px solid var(--sl-color-gray-200)",
1835
+ border: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
2255
1836
  justifyContent: "center",
2256
1837
  },
2257
1838
  MessageContainer: {
@@ -2266,48 +1847,48 @@ const style$2 = {
2266
1847
  },
2267
1848
  },
2268
1849
  };
2269
- const sheet$2 = JSS.createStyleSheet(style$2);
2270
- const styleString$2 = sheet$2.toString();
1850
+ const sheet$1 = JSS.createStyleSheet(style$1);
1851
+ const styleString$1 = sheet$1.toString();
2271
1852
  const DocusignExpiredView = (props) => {
2272
- const { classes } = sheet$2;
1853
+ const { classes } = sheet$1;
2273
1854
  const { text } = props;
2274
1855
  return (index.h("div", null,
2275
- index.h("style", { type: "text/css" }, styleString$2),
1856
+ index.h("style", { type: "text/css" }, styleString$1),
2276
1857
  index.h("div", { class: classes.DocusignStatusContainer },
2277
1858
  index.h("sl-icon", { style: {
2278
1859
  width: "50px",
2279
1860
  height: "50px",
2280
- color: "var(--sl-color-neutral-500)",
1861
+ color: "var(--sqm-text)",
2281
1862
  }, name: "clock" }),
2282
1863
  index.h("div", { class: classes.MessageContainer },
2283
1864
  index.h("p", { style: { margin: "0" } }, text.docusignExpired)),
2284
1865
  index.h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
2285
1866
  };
2286
1867
  const DocusignErrorView = (props) => {
2287
- const { classes } = sheet$2;
1868
+ const { classes } = sheet$1;
2288
1869
  const { text } = props;
2289
1870
  return (index.h("div", null,
2290
- index.h("style", { type: "text/css" }, styleString$2),
1871
+ index.h("style", { type: "text/css" }, styleString$1),
2291
1872
  index.h("div", { class: classes.DocusignStatusContainer },
2292
1873
  index.h("sl-icon", { style: {
2293
1874
  width: "50px",
2294
1875
  height: "50px",
2295
- color: "var(--sl-color-gray-500)",
1876
+ color: "var(--sqm-text)",
2296
1877
  }, name: "exclamation-octagon" }),
2297
1878
  index.h("div", { class: classes.MessageContainer },
2298
1879
  index.h("p", { style: { margin: "0" } }, text.docusignError)),
2299
1880
  index.h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
2300
1881
  };
2301
1882
  const DocusignLoadingView = () => {
2302
- const { classes } = sheet$2;
1883
+ const { classes } = sheet$1;
2303
1884
  return (index.h("div", null,
2304
- index.h("style", { type: "text/css" }, styleString$2),
1885
+ index.h("style", { type: "text/css" }, styleString$1),
2305
1886
  index.h("div", { class: classes.DocusignStatusContainer },
2306
1887
  index.h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } }))));
2307
1888
  };
2308
1889
  const DocusignIframe = ({ states, data, callbacks, text, }) => {
2309
- const { classes } = sheet$2;
2310
- const [iFrameHeight, setiFrameHeight] = stencilHooks_module.useState("100%");
1890
+ const { classes } = sheet$1;
1891
+ const [iFrameHeight, setiFrameHeight] = domContextHooks_module.useState("100%");
2311
1892
  const allowedDomains = [
2312
1893
  "referralsaasquatch.com",
2313
1894
  "impacttech.complysandbox.com",
@@ -2324,7 +1905,7 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
2324
1905
  callbacks.completeDocument();
2325
1906
  }
2326
1907
  }, []);
2327
- stencilHooks_module.useEffect(() => {
1908
+ domContextHooks_module.useEffect(() => {
2328
1909
  window.addEventListener("message", callback, false);
2329
1910
  return () => {
2330
1911
  window.removeEventListener("message", callback, false);
@@ -2339,12 +1920,17 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
2339
1920
  return index.h(DocusignExpiredView, { text: text });
2340
1921
  // Wrap iFrame with container that shares the same height to push other elements down when absolute positioned
2341
1922
  return (index.h("div", { style: { height: iFrameHeight } },
2342
- index.h("style", { type: "text/css" }, styleString$2),
1923
+ index.h("style", { type: "text/css" }, styleString$1),
2343
1924
  index.h("div", { class: classes.IFrameContainer },
2344
1925
  index.h("iframe", { scrolling: "yes", frameBorder: "0", width: "100%", src: data.documentUrl, height: iFrameHeight }))));
2345
1926
  };
2346
1927
 
2347
- const style$3 = {
1928
+ const style$2 = {
1929
+ ModalTitleContainer: {
1930
+ display: "flex",
1931
+ gap: "var(--sl-spacing-small)",
1932
+ alignItems: "center",
1933
+ },
2348
1934
  FormWrapper: {
2349
1935
  display: "flex",
2350
1936
  justifyContent: "flex-start",
@@ -2376,7 +1962,7 @@ const style$3 = {
2376
1962
  gap: "8px",
2377
1963
  },
2378
1964
  ErrorText: {
2379
- color: "var(--sl-color-danger-500)",
1965
+ color: "var(--sqm-danger-color-icon)",
2380
1966
  marginTop: "10px",
2381
1967
  },
2382
1968
  DescriptionText: {
@@ -2385,35 +1971,6 @@ const style$3 = {
2385
1971
  BoldText: {
2386
1972
  fontWeight: "bold",
2387
1973
  },
2388
- ErrorAlertContainer: {
2389
- "&::part(base)": {
2390
- backgroundColor: "var(--sl-color-red-100)",
2391
- borderTop: "none",
2392
- padding: "0 16px",
2393
- },
2394
- "& sl-icon::part(base)": {
2395
- color: "var(--sl-color-danger-500)",
2396
- },
2397
- },
2398
- InfoAlert: {
2399
- "&::part(base)": {
2400
- backgroundColor: "transparent",
2401
- borderTop: "none",
2402
- padding: "0px",
2403
- marginBottom: "16px",
2404
- border: "none",
2405
- },
2406
- "&::part(message)": {
2407
- display: "flex",
2408
- alignItems: "center",
2409
- justifyContent: "flex-start",
2410
- padding: "10px",
2411
- height: "max-content",
2412
- },
2413
- "& sl-icon::part(base)": {
2414
- color: "var(--sl-color-sky-500)",
2415
- },
2416
- },
2417
1974
  Container: {
2418
1975
  width: "100%",
2419
1976
  display: "flex",
@@ -2421,16 +1978,6 @@ const style$3 = {
2421
1978
  flexDirection: "column",
2422
1979
  gap: "16px",
2423
1980
  },
2424
- Link: {
2425
- color: "var(--sl-color-sky-500)",
2426
- textDecoration: "none",
2427
- "&:visited": {
2428
- color: "var(--sl-color-sky-500)",
2429
- },
2430
- "&:hover": {
2431
- textDecoration: "underline",
2432
- },
2433
- },
2434
1981
  CheckboxWrapper: {
2435
1982
  display: "flex",
2436
1983
  justifyContent: "flex-start",
@@ -2444,59 +1991,91 @@ const style$3 = {
2444
1991
  fontSize: "var(--sl-font-size-small)",
2445
1992
  },
2446
1993
  PageDescriptionText: {
2447
- color: "var(--sl-color-neutral-500)",
1994
+ color: "var(--sqm-text-subdued)",
2448
1995
  fontSize: "var(--sl-font-size-medium)",
2449
1996
  },
1997
+ Dialog: {
1998
+ "&::part(panel)": {
1999
+ maxWidth: "420px",
2000
+ },
2001
+ "&::part(title)": {
2002
+ fontSize: "var(--sl-font-size-large)",
2003
+ fontWeight: "600",
2004
+ },
2005
+ "&::part(body)": {
2006
+ padding: "0 var(--sl-spacing-x-large) 0 var(--sl-spacing-x-large)",
2007
+ fontSize: "var(--sl-font-size-small)",
2008
+ },
2009
+ "&::part(footer)": {
2010
+ display: "flex",
2011
+ flexDirection: "column",
2012
+ gap: "var(--sl-spacing-small)",
2013
+ marginBottom: "var(--sl-spacing-xx-small)",
2014
+ alignItems: "center",
2015
+ flex: "1",
2016
+ },
2017
+ },
2018
+ DialogButton: { margin: "auto", width: "100%" },
2450
2019
  };
2451
- const sheet$3 = JSS.createStyleSheet(style$3);
2452
- const styleString$3 = sheet$3.toString();
2453
- const vanillaStyle$2 = `
2454
- :host{
2455
- display: block;
2456
- }
2457
- * {
2458
- margin: 0;
2459
- padding: 0;
2460
- box-sizing: border-box;
2461
- }
2020
+ const sheet$2 = JSS.createStyleSheet(style$2);
2021
+ const styleString$2 = sheet$2.toString();
2022
+ const vanillaStyle$1 = `
2023
+ :host{
2024
+ display: block;
2025
+ }
2462
2026
 
2463
- a {
2464
- cursor: pointer;
2465
- }
2027
+ * {
2028
+ margin: 0;
2029
+ padding: 0;
2030
+ box-sizing: border-box;
2031
+ }
2032
+
2033
+ a {
2034
+ color: inherit;
2035
+ text-decoration: underline;
2036
+ cursor: pointer;
2037
+ }
2466
2038
 
2467
2039
 
2468
2040
  `;
2469
2041
  const DocusignFormView = (props) => {
2470
2042
  var _a;
2471
2043
  const { states, states: { formState, documentTypeString }, callbacks, text, slots, } = props;
2472
- const { classes } = sheet$3;
2044
+ const { classes } = sheet$2;
2473
2045
  return (index.h("div", { class: classes.Container },
2474
2046
  index.h("style", { type: "text/css" },
2475
- styleString$3,
2476
- vanillaStyle$2),
2047
+ styleString$2,
2048
+ vanillaStyle$1),
2049
+ index.h("sl-dialog", { class: sheet$2.classes.Dialog, open: states.showModal, "onSl-hide": callbacks.onModalClose },
2050
+ index.h("div", { class: classes.ModalTitleContainer, slot: "label" },
2051
+ index.h("sl-icon", { name: "info-circle", style: { color: "var(--sqm-informative-color-icon)" } }),
2052
+ index.h("h2", { style: { fontSize: "var(--sl-font-size-large)" } }, text.modalTitle)),
2053
+ index.h("p", null, global.intl.formatMessage({
2054
+ id: "modalText",
2055
+ defaultMessage: text.modalDescription,
2056
+ }, {
2057
+ br: index.h("br", null),
2058
+ })),
2059
+ index.h("sl-button", { slot: "footer", type: "primary", class: sheet$2.classes.DialogButton, onClick: callbacks.onModalClose, exportparts: "base: primarybutton-base" }, text.modalButtonText)),
2477
2060
  index.h("div", { class: classes.TextContainer },
2478
2061
  index.h("div", null,
2479
2062
  !states.hideSteps && (index.h("p", null, global.intl.formatMessage({
2480
2063
  id: "formStep",
2481
2064
  defaultMessage: text.formStep,
2482
- }, { step: states.step, count: FORM_STEPS }))),
2065
+ }, { step: states.step, count: data.FORM_STEPS }))),
2483
2066
  index.h("h3", null, text.taxForm),
2484
2067
  index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
2485
2068
  states.loadingError && (index.h("div", null,
2486
- index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$3.classes.ErrorAlertContainer },
2487
- index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
2488
- index.h("strong", null, text.error.loadingErrorAlertHeader),
2489
- index.h("br", null),
2069
+ index.h("sqm-form-message", { type: "error" },
2070
+ index.h("p", { part: "alert-title" }, text.error.loadingErrorAlertHeader),
2490
2071
  global.intl.formatMessage({
2491
2072
  id: "loadingErrorAlertDescription",
2492
2073
  defaultMessage: text.error.loadingErrorAlertDescription,
2493
2074
  }, {
2494
2075
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
2495
2076
  })))),
2496
- ((_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 },
2497
- index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
2498
- index.h("strong", null, text.error.generalTitle),
2499
- index.h("br", null),
2077
+ ((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sqm-form-message", { type: "error" },
2078
+ index.h("p", { part: "alert-title" }, text.error.generalTitle),
2500
2079
  global.intl.formatMessage({
2501
2080
  id: "generalDescription",
2502
2081
  defaultMessage: text.error.generalDescription,
@@ -2627,7 +2206,19 @@ const DocusignForm = class {
2627
2206
  * @uiName Exit button text
2628
2207
  */
2629
2208
  this.exitButton = "Exit";
2630
- stencilHooks_module.h$1(this);
2209
+ /**
2210
+ * @uiName Information modal title
2211
+ */
2212
+ this.modalTitle = "Important Note";
2213
+ /**
2214
+ * @uiName Information modal description text
2215
+ */
2216
+ this.modalDescription = "Remember the name you enter in your tax form. It must exactly match the bank account holder name configured in the next step. {br}{br}Otherwise you will have to resubmit your form again and there will be delays receiving your payout.";
2217
+ /**
2218
+ * @uiName Information modal button text
2219
+ */
2220
+ this.modalButtonText = "I understand";
2221
+ domContextHooks_module.h$1(this);
2631
2222
  }
2632
2223
  disconnectedCallback() { }
2633
2224
  getTextProps() {
@@ -2664,11 +2255,11 @@ const DocusignForm = class {
2664
2255
  get el() { return index.getElement(this); }
2665
2256
  };
2666
2257
  function useDocusignFormDemo(props) {
2667
- const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
2258
+ const setStep = index_module.En(data.TAX_CONTEXT_NAMESPACE);
2668
2259
  return cjs.cjs({
2669
2260
  text: props.getTextProps(),
2670
2261
  states: {
2671
- step: "4",
2262
+ step: "3",
2672
2263
  disabled: false,
2673
2264
  submitDisabled: false,
2674
2265
  loading: false,
@@ -2681,6 +2272,7 @@ function useDocusignFormDemo(props) {
2681
2272
  errors: {},
2682
2273
  },
2683
2274
  documentType: "W9",
2275
+ showModal: false,
2684
2276
  },
2685
2277
  data: {
2686
2278
  taxForm: "W9",
@@ -2691,6 +2283,8 @@ function useDocusignFormDemo(props) {
2691
2283
  demo: {
2692
2284
  onSubmit: () => setStep("/4"),
2693
2285
  onBack: () => setStep("/3"),
2286
+ onModalOpen: () => { },
2287
+ onModalClose: () => { },
2694
2288
  },
2695
2289
  setParticipantType: (p) => console.log({ p }),
2696
2290
  setDocusignStatus: (status) => console.log(status),
@@ -2701,7 +2295,7 @@ const DemoDocusignIframe = ({ callbacks }) => {
2701
2295
  return (index.h("div", { style: {
2702
2296
  width: "100%",
2703
2297
  height: "600px",
2704
- background: "#fafafa",
2298
+ background: "inherit",
2705
2299
  display: "flex",
2706
2300
  justifyContent: "center",
2707
2301
  alignItems: "center",
@@ -2713,7 +2307,7 @@ const DemoDocusignIframe = ({ callbacks }) => {
2713
2307
  } }, 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")))));
2714
2308
  };
2715
2309
 
2716
- const style$4 = {
2310
+ const style$3 = {
2717
2311
  FormWrapper: {
2718
2312
  display: "flex",
2719
2313
  justifyContent: "flex-start",
@@ -2725,6 +2319,7 @@ const style$4 = {
2725
2319
  justifyContent: "flex-start",
2726
2320
  flexDirection: "column",
2727
2321
  gap: "var(--sl-spacing-medium)",
2322
+ marginBottom: "16px",
2728
2323
  "& sl-radio::part(base)": {
2729
2324
  alignItems: "start",
2730
2325
  },
@@ -2740,6 +2335,7 @@ const style$4 = {
2740
2335
  flexDirection: "column",
2741
2336
  gap: "var(--sl-spacing-xx-small)",
2742
2337
  fontSize: "var(--sl-font-size-small)",
2338
+ color: "var(--sqm-text)",
2743
2339
  },
2744
2340
  TitleContainer: {
2745
2341
  display: "flex",
@@ -2765,61 +2361,61 @@ const style$4 = {
2765
2361
  marginTop: "10px",
2766
2362
  },
2767
2363
  DescriptionText: {
2768
- color: "var(--sl-color-neutral-500)",
2364
+ color: "var(--sqm-text-subdued)",
2769
2365
  },
2770
- AlertContainer: {
2771
- "&::part(base)": {
2772
- backgroundColor: "var(--sl-color-red-100)",
2773
- borderTop: "none",
2774
- padding: "0 16px",
2775
- },
2776
- "& sl-icon::part(base)": {
2777
- color: "var(--sl-color-danger-500)",
2778
- },
2366
+ InfoWarningIcon: {
2367
+ height: "26px",
2368
+ width: "26px",
2369
+ },
2370
+ PageDescriptionText: {
2371
+ color: "var(--sqm-text-subdued)",
2372
+ fontSize: "var(--sl-font-size-medium)",
2373
+ marginBottom: "var(--sl-spacing-small)",
2779
2374
  },
2780
- PartnerAlertContainer: {
2375
+ PrimaryButton: {
2781
2376
  "&::part(base)": {
2782
- backgroundColor: "var(--sl-color-sky-100)",
2783
- borderTop: "none",
2784
- padding: "0 16px",
2377
+ background: "var(--sqm-primary-button-background)",
2378
+ color: "var(--sqm-primary-button-color)",
2379
+ borderColor: "var(--sqm-primary-button-color-border)",
2380
+ borderRadius: "var(--sqm-primary-button-radius)",
2785
2381
  },
2786
- "& sl-icon::part(base)": {
2787
- color: "var(--sl-color-blue-500)",
2382
+ "&::part(base):hover": {
2383
+ background: "var(--sqm-primary-button-background-hover)",
2788
2384
  },
2789
2385
  },
2790
- InfoAlert: {
2791
- marginTop: "var(--sl-spacing-large)",
2386
+ SecondaryButton: {
2792
2387
  "&::part(base)": {
2793
- backgroundColor: "transparent",
2794
- borderTop: "none",
2795
- padding: "0px",
2796
- border: "none",
2797
- },
2798
- "&::part(message)": {
2799
- alignItems: "center",
2800
- padding: "var(--sl-spacing-small)",
2801
- whiteSpace: "nowrap",
2388
+ background: "var(--sqm-secondary-button-background)",
2389
+ color: "var(--sqm-secondary-button-color)",
2390
+ borderColor: "var(--sqm-secondary-button-color-border)",
2391
+ borderRadius: "var(--sqm-secondary-button-radius)",
2392
+ width: "max-content",
2393
+ display: "flex",
2394
+ margin: "auto",
2802
2395
  },
2803
- "& sl-icon::part(base)": {
2804
- color: "var(--sl-color-yellow-500)",
2396
+ "&::part(base):hover": {
2397
+ color: "var(--sqm-text)",
2398
+ background: "var(--sqm-secondary-button-background-hover)",
2805
2399
  },
2806
2400
  },
2807
- InfoWarningIcon: {
2808
- height: "26px",
2809
- width: "26px",
2810
- },
2811
- PageDescriptionText: {
2812
- color: "var(--sl-color-neutral-500)",
2813
- fontSize: "var(--sl-font-size-medium)",
2814
- marginBottom: "var(--sl-spacing-small)",
2815
- },
2816
2401
  };
2817
- const sheet$4 = JSS.createStyleSheet(style$4);
2818
- const styleString$4 = sheet$4.toString();
2819
- const vanillaStyle$3 = `
2402
+ const sheet$3 = JSS.createStyleSheet(style$3);
2403
+ const styleString$3 = sheet$3.toString();
2404
+ const vanillaStyle$2 = `
2820
2405
  :host{
2821
2406
  display: block;
2822
2407
  }
2408
+
2409
+ hr {
2410
+ border: var(--sqm-border-thickness, 1px) solid var(--sqm-border-color);
2411
+ }
2412
+
2413
+ a {
2414
+ color: inherit;
2415
+ text-decoration: underline;
2416
+ cursor: pointer;
2417
+ }
2418
+
2823
2419
  * {
2824
2420
  margin: 0;
2825
2421
  padding: 0;
@@ -2830,11 +2426,11 @@ const vanillaStyle$3 = `
2830
2426
  const IndirectTaxFormView = (props) => {
2831
2427
  var _a;
2832
2428
  const { states, states: { formState }, callbacks, text, refs, slots, } = props;
2833
- const { classes } = sheet$4;
2429
+ const { classes } = sheet$3;
2834
2430
  return (index.h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
2835
2431
  index.h("style", { type: "text/css" },
2836
- styleString$4,
2837
- vanillaStyle$3),
2432
+ styleString$3,
2433
+ vanillaStyle$2),
2838
2434
  index.h("div", { class: classes.TextContainer },
2839
2435
  index.h("div", null,
2840
2436
  !states.hideSteps && (index.h("p", null,
@@ -2842,35 +2438,29 @@ const IndirectTaxFormView = (props) => {
2842
2438
  global.intl.formatMessage({
2843
2439
  id: "formStep",
2844
2440
  defaultMessage: text.formStep,
2845
- }, { step: states.step, count: FORM_STEPS }))),
2441
+ }, { step: states.step, count: data.FORM_STEPS }))),
2846
2442
  index.h("h3", null, text.indirectTax),
2847
2443
  index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription),
2848
2444
  index.h("p", { class: classes.DescriptionText }, text.indirectTaxDescription)),
2849
2445
  states.loadingError && (index.h("div", null,
2850
- index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.AlertContainer },
2851
- index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
2852
- index.h("strong", null, text.error.loadingErrorAlertHeader),
2853
- index.h("br", null),
2446
+ index.h("sqm-form-message", { type: "error" },
2447
+ index.h("p", { part: "alert-title" }, text.error.loadingErrorAlertHeader),
2854
2448
  global.intl.formatMessage({
2855
2449
  id: "loadingErrorAlertDescription",
2856
2450
  defaultMessage: text.error.loadingErrorAlertDescription,
2857
2451
  }, {
2858
2452
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
2859
2453
  })))),
2860
- ((_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 },
2861
- index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
2862
- index.h("strong", null, text.error.generalTitle),
2863
- index.h("br", null),
2454
+ ((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sqm-form-message", { type: "error" },
2455
+ index.h("p", { part: "alert-title" }, text.error.generalTitle),
2864
2456
  global.intl.formatMessage({
2865
2457
  id: "generalDescription",
2866
2458
  defaultMessage: text.error.generalDescription,
2867
2459
  }, {
2868
2460
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
2869
2461
  }))),
2870
- states.isPartner && (index.h("sl-alert", { type: "primary", open: true, class: sheet$4.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
2871
- index.h("sl-icon", { slot: "icon", name: "info-circle" }),
2872
- index.h("strong", null, text.isPartnerAlertHeader),
2873
- index.h("br", null),
2462
+ states.isPartner && (index.h("sqm-form-message", { type: "info" },
2463
+ index.h("p", { part: "alert-title" }, text.isPartnerAlertHeader),
2874
2464
  global.intl.formatMessage({
2875
2465
  id: "isPartnerAlertDescription",
2876
2466
  defaultMessage: text.isPartnerAlertDescription,
@@ -2891,17 +2481,15 @@ const IndirectTaxFormView = (props) => {
2891
2481
  text.otherRegion,
2892
2482
  index.h("p", { class: classes.DescriptionText }, text.otherRegionSubtext))),
2893
2483
  slots.registeredInDifferentCountryDetailsSlot)),
2894
- index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "primary", open: true, class: classes.InfoAlert },
2895
- index.h("sl-icon", { class: classes.InfoWarningIcon, slot: "icon", name: "exclamation-triangle" }),
2896
- global.intl.formatMessage({
2897
- id: "cannotChangeInfoAlert",
2898
- defaultMessage: text.cannotChangeInfoAlert,
2899
- }, {
2900
- supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
2901
- })),
2484
+ index.h("sqm-form-message", { type: "info" }, global.intl.formatMessage({
2485
+ id: "cannotChangeInfoAlert",
2486
+ defaultMessage: text.cannotChangeInfoAlert,
2487
+ }, {
2488
+ supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
2489
+ })),
2902
2490
  index.h("div", { class: classes.BtnContainer },
2903
- index.h("sl-button", { type: "primary", disabled: states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton),
2904
- index.h("sl-button", { type: "text", disabled: states.disabled, onClick: callbacks.onBack, exportparts: "base: secondarybutton-base" }, text.backButton))))));
2491
+ index.h("sl-button", { class: classes.PrimaryButton, type: "primary", disabled: states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton),
2492
+ index.h("sl-button", { class: classes.SecondaryButton, type: "text", disabled: states.disabled, onClick: callbacks.onBack, exportparts: "base: secondarybutton-base" }, text.backButton))))));
2905
2493
  };
2906
2494
 
2907
2495
  const CONNECT_PARTNER = index_module.dist.gql `
@@ -2944,30 +2532,30 @@ function useIndirectTaxForm(props) {
2944
2532
  var _a, _b, _c, _d, _e;
2945
2533
  const user = index_module.J();
2946
2534
  const locale = index_module.L();
2947
- const formRef = stencilHooks_module.useRef(null);
2948
- const context = index_module.Fn(TAX_FORM_CONTEXT_NAMESPACE);
2949
- const [step, setStep] = index_module.Pn(TAX_CONTEXT_NAMESPACE);
2535
+ const formRef = domContextHooks_module.useRef(null);
2536
+ const context = index_module.Fn(data.TAX_FORM_CONTEXT_NAMESPACE);
2537
+ const [step, setStep] = index_module.Pn(data.TAX_CONTEXT_NAMESPACE);
2950
2538
  const [connectImpactPartner, { loading: connectLoading, errors: connectErrors },] = index_module.$e(CONNECT_PARTNER);
2951
- const userForm = index_module.Fn(USER_FORM_CONTEXT_NAMESPACE);
2952
- const { data: userData, refetch, errors: userError, } = index_module.$n(USER_QUERY_NAMESPACE);
2953
- const { data: _countriesRes, loading: countriesLoading } = index_module.$n(COUNTRIES_QUERY_NAMESPACE);
2539
+ const userForm = index_module.Fn(data.USER_FORM_CONTEXT_NAMESPACE);
2540
+ const { data: userData, refetch, errors: userError, } = index_module.$n(data.USER_QUERY_NAMESPACE);
2541
+ const { data: _countriesRes, loading: countriesLoading } = index_module.$n(data.COUNTRIES_QUERY_NAMESPACE);
2954
2542
  const intlLocale = (locale === null || locale === void 0 ? void 0 : locale.replace("_", "-")) || "en";
2955
- 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]);
2956
- const [loading, setLoading] = stencilHooks_module.useState(false);
2957
- const [formState, setFormState] = stencilHooks_module.useState({});
2958
- const [errors, setErrors] = stencilHooks_module.useState({});
2959
- const [countrySearch, setCountrySearch] = stencilHooks_module.useState("");
2960
- const [filteredCountries, setFilteredCountries] = stencilHooks_module.useState(_countries || []);
2961
- const [option, setOption] = stencilHooks_module.useState("notRegistered");
2543
+ const _countries = domContextHooks_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) => utils$1.getCountryObj({ countryCode: country.countryCode, locale: intlLocale })); }, [(_a = _countriesRes === null || _countriesRes === void 0 ? void 0 : _countriesRes.impactPayoutCountries) === null || _a === void 0 ? void 0 : _a.data]);
2544
+ const [loading, setLoading] = domContextHooks_module.useState(false);
2545
+ const [formState, setFormState] = domContextHooks_module.useState({});
2546
+ const [errors, setErrors] = domContextHooks_module.useState({});
2547
+ const [countrySearch, setCountrySearch] = domContextHooks_module.useState("");
2548
+ const [filteredCountries, setFilteredCountries] = domContextHooks_module.useState(_countries || []);
2549
+ const [option, setOption] = domContextHooks_module.useState("notRegistered");
2962
2550
  const publisher = (_c = (_b = userData === null || userData === void 0 ? void 0 : userData.user) === null || _b === void 0 ? void 0 : _b.impactConnection) === null || _c === void 0 ? void 0 : _c.publisher;
2963
- stencilHooks_module.useEffect(() => {
2551
+ domContextHooks_module.useEffect(() => {
2964
2552
  var _a;
2965
2553
  if (!((_a = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _a === void 0 ? void 0 : _a.indirectTaxCountryCode))
2966
2554
  return;
2967
2555
  const _option = getOption(_countries, publisher.taxInformation.indirectTaxCountryCode);
2968
2556
  setOption(_option);
2969
2557
  }, [publisher, _countries]);
2970
- stencilHooks_module.useEffect(() => {
2558
+ domContextHooks_module.useEffect(() => {
2971
2559
  if (countrySearch.trim() === "") {
2972
2560
  setFilteredCountries(_countries || []);
2973
2561
  }
@@ -2975,7 +2563,7 @@ function useIndirectTaxForm(props) {
2975
2563
  setFilteredCountries((_countries === null || _countries === void 0 ? void 0 : _countries.filter((c) => c.displayName.toLowerCase().includes(countrySearch.toLowerCase()))) || []);
2976
2564
  }
2977
2565
  }, [countrySearch, _countries]);
2978
- stencilHooks_module.useEffect(() => {
2566
+ domContextHooks_module.useEffect(() => {
2979
2567
  var _a, _b;
2980
2568
  const user = userData === null || userData === void 0 ? void 0 : userData.user;
2981
2569
  if (!user)
@@ -3067,7 +2655,7 @@ function useIndirectTaxForm(props) {
3067
2655
  await refetch();
3068
2656
  const resultPublisher = (_e = (_d = (_c = result
3069
2657
  .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;
3070
- const hasValidCurrentDocument = sqmInvoiceTableView.validTaxDocument(resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) && (resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.currentTaxDocument);
2658
+ const hasValidCurrentDocument = utils$1.validTaxDocument(resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) && (resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.currentTaxDocument);
3071
2659
  // Fire form change event
3072
2660
  window.dispatchEvent(new Event(usePayoutStatus.TAX_FORM_UPDATED_EVENT_KEY));
3073
2661
  if ((resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) &&
@@ -3122,10 +2710,10 @@ function useIndirectTaxForm(props) {
3122
2710
  })),
3123
2711
  },
3124
2712
  data: {
3125
- esRegions: sqmInvoiceTableView.INDIRECT_TAX_SPAIN_REGIONS,
2713
+ esRegions: IndirectTaxDetailsView.INDIRECT_TAX_SPAIN_REGIONS,
3126
2714
  countries: filteredCountries,
3127
2715
  allCountries: _countries,
3128
- provinces: sqmInvoiceTableView.INDIRECT_TAX_PROVINCES,
2716
+ provinces: IndirectTaxDetailsView.INDIRECT_TAX_PROVINCES,
3129
2717
  },
3130
2718
  text: props.getTextProps(),
3131
2719
  refs: {
@@ -3292,7 +2880,7 @@ const IndirectTaxForm = class {
3292
2880
  * @uiName Page description
3293
2881
  */
3294
2882
  this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
3295
- stencilHooks_module.h$1(this);
2883
+ domContextHooks_module.h$1(this);
3296
2884
  }
3297
2885
  disconnectedCallback() { }
3298
2886
  getTextProps() {
@@ -3327,7 +2915,7 @@ const IndirectTaxForm = class {
3327
2915
  const props = index_module.isDemo()
3328
2916
  ? useDemoIndirectTaxForm(this)
3329
2917
  : useIndirectTaxForm(this);
3330
- const registeredInDifferentCountryDetailsSlot = (index.h(sqmInvoiceTableView.OtherRegionSlotView, { states: {
2918
+ const registeredInDifferentCountryDetailsSlot = (index.h(IndirectTaxDetailsView.OtherRegionSlotView, { states: {
3331
2919
  hide: props.states.formState.checked !== "otherRegion",
3332
2920
  disabled: props.states.disabled || props.states.isPartner,
3333
2921
  formState: props.slotProps.formState,
@@ -3345,9 +2933,9 @@ const IndirectTaxForm = class {
3345
2933
  }
3346
2934
  };
3347
2935
  function useDemoIndirectTaxForm(props) {
3348
- const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
3349
- const [option, setOption] = stencilHooks_module.useState(null);
3350
- const [demoFormState, setDemoFormState] = stencilHooks_module.useState({});
2936
+ const setStep = index_module.En(data.TAX_CONTEXT_NAMESPACE);
2937
+ const [option, setOption] = domContextHooks_module.useState("otherRegion");
2938
+ const [demoFormState, setDemoFormState] = domContextHooks_module.useState({});
3351
2939
  return cjs.cjs({
3352
2940
  states: {
3353
2941
  step: "2",
@@ -3386,7 +2974,7 @@ function useDemoIndirectTaxForm(props) {
3386
2974
  setCountrySearch: (c) => console.log(c),
3387
2975
  },
3388
2976
  data: {
3389
- esRegions: sqmInvoiceTableView.INDIRECT_TAX_SPAIN_REGIONS,
2977
+ esRegions: IndirectTaxDetailsView.INDIRECT_TAX_SPAIN_REGIONS,
3390
2978
  countries: [
3391
2979
  {
3392
2980
  countryCode: "CA",
@@ -3405,7 +2993,7 @@ function useDemoIndirectTaxForm(props) {
3405
2993
  displayName: "United States",
3406
2994
  },
3407
2995
  ],
3408
- provinces: sqmInvoiceTableView.INDIRECT_TAX_PROVINCES,
2996
+ provinces: IndirectTaxDetailsView.INDIRECT_TAX_PROVINCES,
3409
2997
  },
3410
2998
  text: props.getTextProps(),
3411
2999
  refs: {
@@ -3427,7 +3015,27 @@ function useDemoIndirectTaxForm(props) {
3427
3015
  }, props.demoData || {}, { arrayMerge: (_, a) => a });
3428
3016
  }
3429
3017
 
3430
- const debug = stencilHooks_module.browser("sq:useInvoiceTable");
3018
+ const mockInvoiceData = (count = 4) => {
3019
+ const data = [...Array(count)].map(() => getMockData());
3020
+ return { data };
3021
+ };
3022
+ const getMockData = () => {
3023
+ const today = luxon.luxon.DateTime.now();
3024
+ const invoiceId = Math.random().toString(36).slice(2, 12);
3025
+ const earnings = Math.floor(Math.random() * 100) + 1;
3026
+ const indirectTax = Math.round(earnings * 0.2);
3027
+ return {
3028
+ downloadUrl: "https://example.com",
3029
+ dateCreated: today.toMillis(),
3030
+ invoiceId,
3031
+ program: "my-program",
3032
+ earnings: `$${earnings}.00`,
3033
+ indirectTax: `$${indirectTax}.00`,
3034
+ netEarnings: `$${earnings - indirectTax}.00`,
3035
+ };
3036
+ };
3037
+
3038
+ const debug = domContextHooks_module.browser("sq:useInvoiceTable");
3431
3039
  const CSS_NAMESPACE = "sqm-invoice-table";
3432
3040
  const GET_INVOICES = index_module.dist.gql `
3433
3041
  query getUserTaxInfo($limit: Int!, $offset: Int!) {
@@ -3457,7 +3065,7 @@ function useInvoiceTable(props, emptyElement, loadingElement) {
3457
3065
  var _a;
3458
3066
  const user = index_module.J();
3459
3067
  const locale = index_module.L();
3460
- const [content, setContent] = stencilHooks_module.useReducer((state, next) => ({
3068
+ const [content, setContent] = domContextHooks_module.useReducer((state, next) => ({
3461
3069
  ...state,
3462
3070
  ...next,
3463
3071
  }), {
@@ -3501,7 +3109,7 @@ function useInvoiceTable(props, emptyElement, loadingElement) {
3501
3109
  // Set the content to render and finish loading components
3502
3110
  setContent({ columns, loading: false, page: states.currentPage });
3503
3111
  }
3504
- stencilHooks_module.useEffect(() => {
3112
+ domContextHooks_module.useEffect(() => {
3505
3113
  setContent({ loading: true });
3506
3114
  invoicesData && getComponentData(components);
3507
3115
  }, [invoicesData, components, tick]);
@@ -3575,26 +3183,6 @@ async function tryMethod(c, callback) {
3575
3183
  }
3576
3184
  }
3577
3185
 
3578
- const mockInvoiceData = (count = 4) => {
3579
- const data = [...Array(count)].map(() => getMockData());
3580
- return { data };
3581
- };
3582
- const getMockData = () => {
3583
- const today = luxon.luxon.DateTime.now();
3584
- const invoiceId = Math.random().toString(36).slice(2, 12);
3585
- const earnings = Math.floor(Math.random() * 100) + 1;
3586
- const indirectTax = Math.round(earnings * 0.2);
3587
- return {
3588
- downloadUrl: "https://example.com",
3589
- dateCreated: today.toMillis(),
3590
- invoiceId,
3591
- program: "my-program",
3592
- earnings: `$${earnings}.00`,
3593
- indirectTax: `$${indirectTax}.00`,
3594
- netEarnings: `$${earnings - indirectTax}.00`,
3595
- };
3596
- };
3597
-
3598
3186
  const InvoiceTable = class {
3599
3187
  constructor(hostRef) {
3600
3188
  index.registerInstance(this, hostRef);
@@ -3628,7 +3216,7 @@ const InvoiceTable = class {
3628
3216
  this.emptyStateHeader = "View your invoice details";
3629
3217
  /** @uiName Empty invoice table description */
3630
3218
  this.emptyStateText = "Refer a friend to view the status of your invoices and rewards earned";
3631
- stencilHooks_module.h$1(this);
3219
+ domContextHooks_module.h$1(this);
3632
3220
  }
3633
3221
  disconnectedCallback() { }
3634
3222
  render() {
@@ -3638,7 +3226,7 @@ const InvoiceTable = class {
3638
3226
  ? useInvoiceTableDemo(this, empty, loading)
3639
3227
  : useInvoiceTable(this, empty, loading);
3640
3228
  reRender.useRequestRerender([this.perPage]);
3641
- return (index.h(sqmInvoiceTableView.InvoiceTableView, { header: this.header, description: this.description }, index.h(GenericTableView.GenericTableView, { states: states, data: data, callbacks: callbacks, elements: elements })));
3229
+ return (index.h(IndirectTaxDetailsView.InvoiceTableView, { header: this.header, description: this.description }, index.h(GenericTableView.GenericTableView, { states: states, data: data, callbacks: callbacks, elements: elements })));
3642
3230
  }
3643
3231
  };
3644
3232
  function EmptySlot(props) {
@@ -3651,7 +3239,7 @@ function LoadingRow() {
3651
3239
  return (index.h("sqm-table-row", null, index.h("sqm-table-cell", { colspan: 6 }, index.h("sl-skeleton", null))));
3652
3240
  }
3653
3241
  function useInvoiceTableDemo(props, emptyElement, loadingElement) {
3654
- const [content, setContent] = stencilHooks_module.useReducer((state, next) => ({
3242
+ const [content, setContent] = domContextHooks_module.useReducer((state, next) => ({
3655
3243
  ...state,
3656
3244
  ...next,
3657
3245
  }), {
@@ -3661,7 +3249,7 @@ function useInvoiceTableDemo(props, emptyElement, loadingElement) {
3661
3249
  page: 0,
3662
3250
  });
3663
3251
  const tick = reRender.useRerenderListener();
3664
- const mockData = stencilHooks_module.useMemo(() => { var _a; return ((_a = props.demoData) === null || _a === void 0 ? void 0 : _a.mockData) || mockInvoiceData(props.perPage); }, [props.perPage]);
3252
+ const mockData = domContextHooks_module.useMemo(() => { var _a; return ((_a = props.demoData) === null || _a === void 0 ? void 0 : _a.mockData) || mockInvoiceData(props.perPage); }, [props.perPage]);
3665
3253
  const components = useChildElements.useChildElements();
3666
3254
  async function getComponentData(components) {
3667
3255
  const componentData = mockData.data.slice(0, props.perPage);
@@ -3704,7 +3292,7 @@ function useInvoiceTableDemo(props, emptyElement, loadingElement) {
3704
3292
  // Set the content to render and finish loading components
3705
3293
  setContent({ columns, loading: false, page: 0 });
3706
3294
  }
3707
- stencilHooks_module.useEffect(() => {
3295
+ domContextHooks_module.useEffect(() => {
3708
3296
  setContent({ loading: true });
3709
3297
  (mockData === null || mockData === void 0 ? void 0 : mockData.data) && getComponentData(components);
3710
3298
  }, [mockData === null || mockData === void 0 ? void 0 : mockData.data, components, tick]);
@@ -3740,22 +3328,10 @@ function useInvoiceTableDemo(props, emptyElement, loadingElement) {
3740
3328
  return demoProps;
3741
3329
  }
3742
3330
 
3743
- const InvoiceTableDataCell = class {
3744
- constructor(hostRef) {
3745
- index.registerInstance(this, hostRef);
3746
- this.ignored = true;
3747
- stencilHooks_module.h$1(this);
3748
- }
3749
- disconnectedCallback() { }
3750
- render() {
3751
- return this.data;
3752
- }
3753
- };
3754
-
3755
3331
  const InvoiceTableDataColumn = class {
3756
3332
  constructor(hostRef) {
3757
3333
  index.registerInstance(this, hostRef);
3758
- stencilHooks_module.h$1(this);
3334
+ domContextHooks_module.h$1(this);
3759
3335
  }
3760
3336
  disconnectedCallback() { }
3761
3337
  async renderCell(data) {
@@ -3770,27 +3346,10 @@ const InvoiceTableDataColumn = class {
3770
3346
  }
3771
3347
  };
3772
3348
 
3773
- const RewardTableDateCell = class {
3774
- constructor(hostRef) {
3775
- index.registerInstance(this, hostRef);
3776
- this.ignored = true;
3777
- this.locale = "en";
3778
- stencilHooks_module.h$1(this);
3779
- }
3780
- disconnectedCallback() { }
3781
- render() {
3782
- var _a, _b;
3783
- const date = !this.date
3784
- ? "-"
3785
- : (_b = (_a = luxon.luxon.DateTime.fromMillis(this.date)) === null || _a === void 0 ? void 0 : _a.setLocale(utils.luxonLocale(this.locale))) === null || _b === void 0 ? void 0 : _b.toLocaleString(luxon.luxon.DateTime.DATE_MED);
3786
- return date;
3787
- }
3788
- };
3789
-
3790
3349
  const InvoiceTableDateColumn = class {
3791
3350
  constructor(hostRef) {
3792
3351
  index.registerInstance(this, hostRef);
3793
- stencilHooks_module.h$1(this);
3352
+ domContextHooks_module.h$1(this);
3794
3353
  }
3795
3354
  disconnectedCallback() { }
3796
3355
  async renderCell(data, options) {
@@ -3805,25 +3364,10 @@ const InvoiceTableDateColumn = class {
3805
3364
  }
3806
3365
  };
3807
3366
 
3808
- const InvoiceTableDownloadCell = class {
3809
- constructor(hostRef) {
3810
- index.registerInstance(this, hostRef);
3811
- this.ignored = true;
3812
- stencilHooks_module.h$1(this);
3813
- }
3814
- disconnectedCallback() { }
3815
- render() {
3816
- const vanillaStyle = `svg:hover, svg:hover * {
3817
- cursor: pointer;
3818
- }`;
3819
- return (index.h(index.Host, null, index.h("style", null, vanillaStyle), !!this.downloadUrl && (index.h("a", { href: this.downloadUrl, target: "_blank" }, index.h("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { d: "M0.625 12.4375C0.79076 12.4375 0.949732 12.5033 1.06694 12.6206C1.18415 12.7378 1.25 12.8967 1.25 13.0625V16.1875C1.25 16.519 1.3817 16.837 1.61612 17.0714C1.85054 17.3058 2.16848 17.4375 2.5 17.4375H17.5C17.8315 17.4375 18.1495 17.3058 18.3839 17.0714C18.6183 16.837 18.75 16.519 18.75 16.1875V13.0625C18.75 12.8967 18.8158 12.7378 18.9331 12.6206C19.0503 12.5033 19.2092 12.4375 19.375 12.4375C19.5408 12.4375 19.6997 12.5033 19.8169 12.6206C19.9342 12.7378 20 12.8967 20 13.0625V16.1875C20 16.8505 19.7366 17.4864 19.2678 17.9553C18.7989 18.4241 18.163 18.6875 17.5 18.6875H2.5C1.83696 18.6875 1.20107 18.4241 0.732233 17.9553C0.263392 17.4864 0 16.8505 0 16.1875V13.0625C0 12.8967 0.065848 12.7378 0.183058 12.6206C0.300269 12.5033 0.45924 12.4375 0.625 12.4375Z", fill: "#717179" }), index.h("path", { d: "M9.5575 14.88C9.61556 14.9382 9.68453 14.9844 9.76046 15.0159C9.83639 15.0474 9.91779 15.0636 10 15.0636C10.0822 15.0636 10.1636 15.0474 10.2395 15.0159C10.3155 14.9844 10.3844 14.9382 10.4425 14.88L14.1925 11.13C14.3099 11.0126 14.3758 10.8535 14.3758 10.6875C14.3758 10.5215 14.3099 10.3624 14.1925 10.245C14.0751 10.1276 13.916 10.0617 13.75 10.0617C13.584 10.0617 13.4249 10.1276 13.3075 10.245L10.625 12.9288V1.9375C10.625 1.77174 10.5592 1.61277 10.4419 1.49556C10.3247 1.37835 10.1658 1.3125 10 1.3125C9.83424 1.3125 9.67527 1.37835 9.55806 1.49556C9.44085 1.61277 9.375 1.77174 9.375 1.9375V12.9288L6.6925 10.245C6.57514 10.1276 6.41597 10.0617 6.25 10.0617C6.08403 10.0617 5.92486 10.1276 5.8075 10.245C5.69014 10.3624 5.62421 10.5215 5.62421 10.6875C5.62421 10.8535 5.69014 11.0126 5.8075 11.13L9.5575 14.88Z", fill: "#717179" }))))));
3820
- }
3821
- };
3822
-
3823
3367
  const InvoiceTableGenericColumn = class {
3824
3368
  constructor(hostRef) {
3825
3369
  index.registerInstance(this, hostRef);
3826
- stencilHooks_module.h$1(this);
3370
+ domContextHooks_module.h$1(this);
3827
3371
  }
3828
3372
  disconnectedCallback() { }
3829
3373
  async renderCell(data) {
@@ -3842,17 +3386,17 @@ const PayPalIcon = () => (index.h("svg", { xmlns: "http://www.w3.org/2000/svg",
3842
3386
  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" }),
3843
3387
  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" })));
3844
3388
 
3845
- const style$5 = {
3389
+ const style$4 = {
3846
3390
  CardContainer: {
3847
3391
  display: "grid",
3848
3392
  gridTemplateColumns: "1fr",
3849
3393
  gridGap: "var(--sl-spacing-large)",
3850
- background: "var(--sl-color-neutral-0)",
3394
+ background: "inherit",
3851
3395
  boxShadow: "0px 2px 4px rgba(28, 28, 33, 0.12)",
3852
- borderRadius: "4px",
3396
+ borderRadius: "var(--sqm-border-radius-normal)",
3853
3397
  padding: "var(--sl-spacing-large)",
3854
3398
  minHeight: "150px",
3855
- border: "1px solid var(--sl-color-gray-200)",
3399
+ border: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
3856
3400
  maxWidth: "450px",
3857
3401
  },
3858
3402
  StatusContainer: {
@@ -3862,7 +3406,7 @@ const style$5 = {
3862
3406
  },
3863
3407
  MainCurrencyLabel: {
3864
3408
  fontWeight: "var(--sl-font-weight-normal)",
3865
- color: "var(--sl-color-gray-500)",
3409
+ color: "var(--sqm-text-subdued)",
3866
3410
  },
3867
3411
  MainCurrency: {
3868
3412
  margin: 0,
@@ -3871,12 +3415,12 @@ const style$5 = {
3871
3415
  },
3872
3416
  SubduedRegularText: {
3873
3417
  fontSize: "var(--sl-font-size-small)",
3874
- color: "var(--sl-color-gray-500)",
3418
+ color: "var(--sqm-text-subdued)",
3875
3419
  margin: 0,
3876
3420
  width: "auto",
3877
3421
  },
3878
3422
  PaypalEmail: {
3879
- borderRight: "1px solid var(--sl-color-gray-200)",
3423
+ borderRight: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
3880
3424
  paddingRight: "var(--sl-spacing-small)",
3881
3425
  "@media (max-width: 499px)": {
3882
3426
  borderRight: "none",
@@ -3884,7 +3428,7 @@ const style$5 = {
3884
3428
  },
3885
3429
  },
3886
3430
  PaypalDetailsContainer: {
3887
- color: "var(--sl-color-gray-500)",
3431
+ color: "var(--sqm-text-subdued)",
3888
3432
  display: "flex",
3889
3433
  gap: "var(--sl-spacing-small)",
3890
3434
  justifyContent: "flex-start",
@@ -3905,7 +3449,7 @@ const style$5 = {
3905
3449
  },
3906
3450
  },
3907
3451
  AccountDetailsContainer: {
3908
- color: "var(--sl-color-gray-500)",
3452
+ color: "var(--sqm-text-subdued)",
3909
3453
  display: "flex",
3910
3454
  gap: "var(--sl-spacing-small)",
3911
3455
  justifyContent: "flex-start",
@@ -3918,7 +3462,7 @@ const style$5 = {
3918
3462
  gap: "var(--sl-spacing-xx-small) var(--sl-spacing-small)",
3919
3463
  paddingTop: "var(--sq-spacing-xx-small)",
3920
3464
  "& > :not(:last-child)": {
3921
- borderRight: "1px solid var(--sl-color-gray-200)",
3465
+ borderRight: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
3922
3466
  },
3923
3467
  "& > :nth-child(3)": {
3924
3468
  border: "none",
@@ -3935,7 +3479,7 @@ const style$5 = {
3935
3479
  },
3936
3480
  W9Container: {
3937
3481
  paddingTop: "var(--sl-spacing-large)",
3938
- borderTop: "1px solid var(--sl-color-gray-200)",
3482
+ borderTop: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
3939
3483
  },
3940
3484
  SkeletonOne: {
3941
3485
  width: "25%",
@@ -3949,25 +3493,21 @@ const style$5 = {
3949
3493
  width: "50%",
3950
3494
  height: "34px",
3951
3495
  },
3952
- Alert: {
3496
+ SuccessBadge: {
3953
3497
  "&::part(base)": {
3954
- backgroundColor: "var(--sl-color-warning-100)",
3955
- border: "1px solid var(--sl-color-warning-200)",
3956
- padding: "0 16px",
3957
- },
3958
- "& sl-icon": {
3959
- margin: 0,
3960
- },
3961
- "& sl-icon::part(base)": {
3962
- color: "var(--sl-color-warning-500)",
3963
- margin: 0,
3498
+ textAlign: "center",
3499
+ whiteSpace: "pre-line",
3500
+ background: "var(--sqm-success-color-icon)",
3501
+ color: "var(--sl-color-white)",
3964
3502
  },
3965
3503
  },
3966
- AlertContent: {
3967
- display: "flex",
3968
- alignItems: "flex-start",
3969
- justifyContent: "flex-start",
3970
- flexDirection: "column",
3504
+ PrimaryBadge: {
3505
+ "&::part(base)": {
3506
+ textAlign: "center",
3507
+ whiteSpace: "pre-line",
3508
+ background: "var(--sqm-informative-color-icon)",
3509
+ color: "var(--sl-color-white)",
3510
+ },
3971
3511
  },
3972
3512
  Container: {
3973
3513
  display: "flex",
@@ -3976,7 +3516,7 @@ const style$5 = {
3976
3516
  },
3977
3517
  };
3978
3518
  function PayoutDetailsCardView(props) {
3979
- const sheet = JSS.createStyleSheet(style$5);
3519
+ const sheet = JSS.createStyleSheet(style$4);
3980
3520
  const styleString = sheet.toString();
3981
3521
  const { classes } = sheet;
3982
3522
  const { states, text } = props;
@@ -3990,13 +3530,14 @@ function PayoutDetailsCardView(props) {
3990
3530
  };
3991
3531
  const renderStatusBadge = (status, statusBadgeText) => {
3992
3532
  const badgeType = status === "nextPayout" ? "success" : "primary";
3533
+ const badgeClass = badgeType === "success" ? classes.SuccessBadge : classes.PrimaryBadge;
3993
3534
  const statusText = global.intl.formatMessage({
3994
3535
  id: "badgeText",
3995
3536
  defaultMessage: statusBadgeText,
3996
3537
  }, {
3997
3538
  badgeText: status,
3998
3539
  });
3999
- return (index.h("sl-badge", { pill: true, type: badgeType }, statusText));
3540
+ return (index.h("sl-badge", { pill: true, class: badgeClass }, statusText));
4000
3541
  };
4001
3542
  const thresholdText = global.intl.formatMessage({
4002
3543
  id: "thresholdText",
@@ -4024,1384 +3565,146 @@ function PayoutDetailsCardView(props) {
4024
3565
  ? `${text.accountText} ${states.cardNumberPreview}`
4025
3566
  : text.payoutMissingInformationText)))))));
4026
3567
  }
4027
-
4028
- function usePayoutDetailsCard(props) {
4029
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
4030
- const { data, loading } = index_module.$n(USER_QUERY_NAMESPACE);
4031
- 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;
4032
- function getPayoutDetailedStatusText(paymentDay) {
4033
- var _a;
4034
- const currentDay = luxon.luxon.DateTime.now().day;
4035
- if (paymentDay === "1") {
4036
- return currentDay === 1
4037
- ? luxon.luxon.DateTime.now().toFormat("LLL dd, yyyy")
4038
- : luxon.luxon.DateTime.now()
4039
- .plus({ month: 1 })
4040
- .startOf("month")
4041
- .toFormat("LLL dd, yyyy");
4042
- }
4043
- else if (paymentDay === "15") {
4044
- return currentDay <= 15
4045
- ? luxon.luxon.DateTime.now()
4046
- .plus({ day: 15 - currentDay })
4047
- .toFormat("LLL dd, yyyy")
4048
- : luxon.luxon.DateTime.now()
4049
- .plus({ month: 1 })
4050
- .startOf("month")
4051
- .plus({ day: 14 })
4052
- .toFormat("LLL dd, yyyy");
4053
- }
4054
- else {
4055
- global.intl.formatMessage({
4056
- id: `nextPayoutBalance`,
4057
- defaultMessage: props.thresholdPayoutText,
4058
- }, {
4059
- thresholdBalance: (_a = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _a === void 0 ? void 0 : _a.paymentThreshold,
4060
- });
4061
- }
4062
- }
4063
- const paymentDay = getPayoutDetailedStatusText((_c = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _c === void 0 ? void 0 : _c.paymentDay);
4064
- const isPayoutToday = luxon.luxon.DateTime.now().toFormat("LLL dd, yyyy") === paymentDay;
4065
- return {
4066
- states: {
4067
- loading,
4068
- thresholdBalance: ((_d = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _d === void 0 ? void 0 : _d.paymentThreshold) ? `${publisher === null || publisher === void 0 ? void 0 : publisher.currency}${(_e = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _e === void 0 ? void 0 : _e.paymentThreshold}`
4069
- : undefined,
4070
- balance: (_f = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _f === void 0 ? void 0 : _f.balance,
4071
- badgeStatus: ((_g = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _g === void 0 ? void 0 : _g.paymentSchedulingType) !== "FIXED_DAY"
4072
- ? "thresholdPayout"
4073
- : isPayoutToday
4074
- ? "payoutToday"
4075
- : "nextPayout",
4076
- payoutType: (_h = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _h === void 0 ? void 0 : _h.paymentMethod,
4077
- error: (_j = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _j === void 0 ? void 0 : _j.hold,
4078
- paypalEmailAddress: (_k = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _k === void 0 ? void 0 : _k.paypalEmailAddress,
4079
- cardNumberPreview: (_l = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _l === void 0 ? void 0 : _l.bankAccountNumber,
4080
- nextPayoutDate: paymentDay,
4081
- },
4082
- text: props.getTextProps(),
4083
- };
4084
- }
4085
-
4086
- const PayoutDetailsCard = class {
4087
- constructor(hostRef) {
4088
- index.registerInstance(this, hostRef);
4089
- /**
4090
- * Badge text indicating payout status
4091
- * @uiName Payout badge status text
4092
- */
4093
- this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
4094
- /**
4095
- * Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
4096
- * @uiName Payout schedule by threshold text
4097
- */
4098
- this.thresholdPayoutText = "Next payout occurs when balance is {thresholdBalance}";
4099
- /**
4100
- * Shown before the participant’s bank account information.
4101
- * @uiName Bank account field label
4102
- */
4103
- this.accountText = "Account";
4104
- /**
4105
- * Text displayed for existing publishers that do not have saved banking information.
4106
- * @uiName Payout missing information subtext
4107
- */
4108
- this.payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
4109
- stencilHooks_module.h$1(this);
4110
- }
4111
- disconnectedCallback() { }
4112
- getTextProps() {
4113
- const props = utils.getProps(this);
4114
- return {
4115
- ...props,
4116
- };
4117
- }
4118
- render() {
4119
- const props = index_module.isDemo()
4120
- ? useDemoPayoutDetailsCard(this)
4121
- : usePayoutDetailsCard(this);
4122
- return (index.h(index.Host, null, index.h(PayoutDetailsCardView, { text: props.text, states: props.states })));
4123
- }
4124
- };
4125
- function useDemoPayoutDetailsCard(props) {
4126
- return cjs.cjs({
4127
- states: {
4128
- loading: false,
4129
- error: false,
4130
- thresholdBalance: "$50",
4131
- mainCurrency: { currencyText: "USD", amountText: "100.00" },
4132
- badgeStatus: "nextPayout",
4133
- payoutType: "BANK_TRANSFER",
4134
- nextPayoutDate: "March 14, 2024",
4135
- paypalEmailAddress: "joesmith@example.com",
4136
- otherCurrencies: false,
4137
- hasW9Pending: false,
4138
- hasDatePending: true,
4139
- cardNumberPreview: "XX2381",
4140
- balance: "20.00 USD",
4141
- },
4142
- text: props.getTextProps(),
4143
- }, props.demoData || {}, { arrayMerge: (_, a) => a });
4144
- }
4145
-
4146
- const TableCell = class {
4147
- constructor(hostRef) {
4148
- index.registerInstance(this, hostRef);
4149
- /** @uiName Column span */
4150
- this.colspan = 1;
4151
- /** @uiName Padding */
4152
- this.padding = "15px 10px";
4153
- }
4154
- render() {
4155
- return (index.h(index.Host, { style: { display: "contents" } }, index.h("td", { colSpan: this.colspan, style: { padding: this.padding } }, index.h("slot", null))));
4156
- }
4157
- };
4158
-
4159
- const TableRow = class {
4160
- constructor(hostRef) {
4161
- index.registerInstance(this, hostRef);
4162
- /**
4163
- * @uiName Border
4164
- */
4165
- this.border = "1px solid #EAEAEA";
4166
- }
4167
- render() {
4168
- return (index.h(index.Host, { style: { display: "contents" } }, index.h("tr", { style: { border: this.border } }, index.h("slot", null))));
4169
- }
4170
- };
4171
-
4172
- function getCurrentStep(user) {
4173
- var _a, _b;
4174
- if (!((_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.connected) || !((_b = user.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher)) {
4175
- return "/1";
4176
- }
4177
- const { requiredTaxDocumentType, currentTaxDocument, withdrawalSettings, brandedSignup, } = user.impactConnection.publisher;
4178
- // If they do have a required document, look at current document
4179
- if (requiredTaxDocumentType && !currentTaxDocument)
4180
- return "/3";
4181
- if (!withdrawalSettings && brandedSignup)
4182
- return "/4";
4183
- return "/dashboard";
4184
- }
4185
- function useTaxAndCash() {
4186
- var _a, _b, _c, _d, _e;
4187
- const host = index_module._();
4188
- const user = index_module.J();
4189
- const locale = index_module.L();
4190
- // State for current step of form
4191
- const [step, setStep] = index_module.In({
4192
- namespace: TAX_CONTEXT_NAMESPACE,
4193
- initialValue: "/loading",
4194
- });
4195
- // State for when to hide steps, or override certain actions
4196
- const [context, _setContext] = index_module.In({
4197
- namespace: TAX_FORM_CONTEXT_NAMESPACE,
4198
- initialValue: {},
4199
- });
4200
- // State to carry user form information into step 2
4201
- const [userFormContext, _setUserFormContext] = index_module.In({
4202
- namespace: USER_FORM_CONTEXT_NAMESPACE,
4203
- initialValue: {
4204
- firstName: undefined,
4205
- lastName: undefined,
4206
- email: undefined,
4207
- countryCode: undefined,
4208
- currency: undefined,
4209
- },
4210
- });
4211
- const [_currenciesContext, setCurrenciesContext] = index_module.In({
4212
- namespace: CURRENCIES_NAMESPACE,
4213
- initialValue: [],
4214
- });
4215
- const [_countriesContext, _setCountriesContext] = index_module.In({
4216
- namespace: COUNTRIES_NAMESPACE,
4217
- initialValue: [],
4218
- });
4219
- const [_sortedCountriesContext, setSortedCountriesContext] = index_module.In({
4220
- namespace: SORTED_COUNTRIES_NAMESPACE,
4221
- initialValue: [],
4222
- });
4223
- const { data, errors } = index_module.Sn({
4224
- namespace: USER_QUERY_NAMESPACE,
4225
- query: GET_USER,
4226
- skip: !user,
4227
- options: {
4228
- batch: false,
4229
- },
4230
- });
4231
- 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) ||
4232
- userFormContext.countryCode;
4233
- index_module.Sn({
4234
- namespace: COUNTRIES_QUERY_NAMESPACE,
4235
- query: GET_COUNTRIES,
4236
- skip: !user,
4237
- });
4238
- const { data: financeNetworkData, refetch } = index_module.Sn({
4239
- namespace: FINANCE_NETWORK_SETTINGS_NAMESPACE,
4240
- query: GET_FINANCE_NETWORK_SETTINGS,
4241
- skip: !user,
4242
- variables: {
4243
- filter: getFinanceNetworkFilter(),
4244
- },
4245
- });
4246
- const { data: currenciesData } = index_module.Sn({
4247
- namespace: CURRENCIES_QUERY_NAMESPACE,
4248
- query: GET_CURRENCIES,
4249
- skip: !user,
4250
- variables: {
4251
- locale,
4252
- },
4253
- });
4254
- const supportedCurrencies = stencilHooks_module.useMemo(() => {
4255
- var _a, _b;
4256
- // Filter out any currencies not supported by finance network settings
4257
- const allValidCurrencies = (_b = (_a = financeNetworkData === null || financeNetworkData === void 0 ? void 0 : financeNetworkData.impactFinanceNetworkSettings) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.reduce((agg, settings) => {
4258
- var _a, _b;
4259
- const currency = (_b = (_a = currenciesData === null || currenciesData === void 0 ? void 0 : currenciesData.currencies) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.find((currency) => currency.currencyCode === settings.currency);
4260
- // Currency not in supported list
4261
- if (!currency)
4262
- return agg;
4263
- // Currency already added to list
4264
- if (agg.find((currency) => currency.currencyCode === settings.currency))
4265
- return agg;
4266
- // Currency not supported by selected country
4267
- if (userFormContext.countryCode &&
4268
- settings.countryCode !== countryCode)
4269
- return agg;
4270
- return [...agg, currency];
4271
- }, []);
4272
- return allValidCurrencies;
4273
- }, [financeNetworkData, countryCode]);
4274
- const intlLocale = (locale === null || locale === void 0 ? void 0 : locale.replace("_", "-")) || "en";
4275
- const sortByName = (a, b) => a.displayName < b.displayName ? -1 : 1;
4276
- const paymentOptions = (_d = financeNetworkData === null || financeNetworkData === void 0 ? void 0 : financeNetworkData.impactFinanceNetworkSettings) === null || _d === void 0 ? void 0 : _d.data;
4277
- // filter out any duplicate countries and null countryCode
4278
- const availableCountries = stencilHooks_module.useMemo(() => new Set(paymentOptions === null || paymentOptions === void 0 ? void 0 : paymentOptions.map((option) => option.countryCode).filter((value) => value)), [paymentOptions]);
4279
- const _topCountries = ["CA", "GB", "US"];
4280
- const sortedCountries = stencilHooks_module.useMemo(() => Array.from(availableCountries)
4281
- .map((countryCode) => sqmInvoiceTableView.getCountryObj({ countryCode, locale: intlLocale }))
4282
- .sort(sortByName)
4283
- .reduce((prev, countryObj) => {
4284
- if (_topCountries.includes(countryObj.countryCode))
4285
- return [countryObj, ...prev];
4286
- return [...prev, countryObj];
4287
- }, []), [availableCountries]);
4288
- stencilHooks_module.useEffect(() => {
4289
- if (sortedCountries)
4290
- setSortedCountriesContext(sortedCountries);
4291
- }, [sortedCountries]);
4292
- stencilHooks_module.useEffect(() => {
4293
- if (supportedCurrencies)
4294
- setCurrenciesContext(supportedCurrencies);
4295
- }, [supportedCurrencies]);
4296
- stencilHooks_module.useEffect(() => {
4297
- if (errors) {
4298
- setStep("/error");
4299
- return;
4300
- }
4301
- if (!host || !user)
4302
- return;
4303
- if (data) {
4304
- const user = data === null || data === void 0 ? void 0 : data.user;
4305
- if (!user || step !== "/loading")
4306
- return;
4307
- const currentStep = getCurrentStep(user);
4308
- setStep(currentStep);
4309
- }
4310
- }, [host, user, (_e = data === null || data === void 0 ? void 0 : data.user) === null || _e === void 0 ? void 0 : _e.email, errors]);
4311
- function getFinanceNetworkFilter() {
4312
- var _a, _b, _c;
4313
- if (step === "/1")
4314
- return {};
4315
- if (step === "/4")
4316
- return { currency_eq: (_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.currency };
4317
- if (countryCode)
4318
- return {
4319
- countryCode_eq: countryCode,
4320
- };
4321
- return {};
4322
- }
4323
- return {
4324
- step,
4325
- setStep,
4326
- context,
4327
- namespace: index_module.Mn(TAX_CONTEXT_NAMESPACE),
4328
- loading: step === "/loading",
4329
- };
4330
- }
4331
-
4332
- const TaxAndCashMonolith = class {
4333
- constructor(hostRef) {
4334
- index.registerInstance(this, hostRef);
4335
- /*---------------------------------------------------------------------------------
4336
- !IMPORTANT!: Make sure to also change the prop names in the respective component
4337
- -----------------------------------------------------------------------------------*/
4338
- /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4339
- STEP 1 PROPS:
4340
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
4341
- /**
4342
- * @uiName First name field label
4343
- * @uiGroup Step 1 Properties
4344
- */
4345
- this.step1_firstName = "First name";
4346
- /**
4347
- * @uiName Last name field label
4348
- * @uiGroup Step 1 Properties
4349
- */
4350
- this.step1_lastName = "Last name";
4351
- /**
4352
- * @uiName Email field label
4353
- * @uiGroup Step 1 Properties
4354
- */
4355
- this.step1_email = "Email";
4356
- /**
4357
- * @uiName Country field label
4358
- * @uiGroup Step 1 Properties
4359
- */
4360
- this.step1_country = "Country";
4361
- /**
4362
- * @uiName Phone number field label
4363
- * @uiGroup Step 1 Properties
4364
- */
4365
- this.step1_phoneNumber = "Phone number";
4366
- /**
4367
- * @uiName Address field label
4368
- * @uiGroup Step 1 Properties
4369
- */
4370
- this.step1_address = "Address";
4371
- /**
4372
- * @uiName City field label
4373
- * @uiGroup Step 1 Properties
4374
- */
4375
- this.step1_city = "City";
4376
- /**
4377
- * @uiName State field label for states
4378
- * @uiGroup Step 1 Properties
4379
- */
4380
- this.step1_state = "State";
4381
- /**
4382
- * @uiName State field label for provinces
4383
- * @uiGroup Step 1 Properties
4384
- */
4385
- this.step1_province = "Province";
4386
- /**
4387
- * @uiName State field label for regions
4388
- * @uiGroup Step 1 Properties
4389
- */
4390
- this.step1_region = "Region";
4391
- /**
4392
- * @uiName Postal code field label
4393
- * @uiGroup Step 1 Properties
4394
- */
4395
- this.step1_postalCode = "Postal code";
4396
- /**
4397
- * @uiName Currency field label
4398
- * @uiGroup Step 1 Properties
4399
- */
4400
- this.step1_currency = "Currency";
4401
- /**
4402
- * @uiName Currency field help text
4403
- * @uiGroup Step 1 Properties
4404
- */
4405
- this.step1_currencyHelpText = "Choose your preferred payout currency";
4406
- /**
4407
- * Edit the property called terms and conditions text to change what's displayed for {termsAndConditionsLink}.
4408
- * @uiName Terms and conditions checkbox
4409
- * @uiGroup Step 1 Properties
4410
- */
4411
- this.step1_allowBankingCollection = "I have read the {termsAndConditionsLink} and allow impact.com to collect my tax and banking information";
4412
- /**
4413
- * @uiName Step 1 title
4414
- * @uiGroup Step 1 Properties
4415
- */
4416
- this.step1_personalInformation = "Personal Information";
4417
- /**
4418
- * The link text that appears in the terms and conditions checkbox
4419
- * @uiName Terms and conditions text
4420
- * @uiGroup Step 1 Properties
4421
- * @uiWidget textArea
4422
- */
4423
- this.step1_termsAndConditionsLabel = "terms and conditions";
4424
- /**
4425
- * The link that appears in the terms and conditions checkbox
4426
- * @uiName Terms and conditions link
4427
- * @uiGroup Step 1 Properties
4428
- */
4429
- this.step1_termsAndConditionsLink = "https://terms.advocate.impact.com/PayoutTermsAndConditions.html";
4430
- /**
4431
- * Placeholder text displayed in the currency search dropdown
4432
- * @uiName Currency field placeholder text
4433
- * @uiGroup Step 1 Properties
4434
- */
4435
- this.step1_searchForCurrencyText = "Search for currency..";
4436
- /**
4437
-
4438
- /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4439
- STEP 2 PROPS:
4440
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
4441
- /**
4442
- * @uiName Step 2 title
4443
- * @uiGroup Step 2 Properties
4444
- */
4445
- this.step2_indirectTax = "Indirect Tax";
4446
- /**
4447
- * Displayed under the title of this step.
4448
- * @uiName Step 2 description
4449
- * @uiGroup Step 2 Properties
4450
- * @uiWidget textArea
4451
- */
4452
- this.step2_indirectTaxDescription = "Indirect taxes (e.g. VAT, HST, GST) are transaction based taxes often applied to goods and services. Service providers are typically required to register with their tax authority and collect these taxes on behalf governments.";
4453
- /**
4454
- * Displayed with indirect tax registration options.
4455
- * @uiName Indirect tax details section title
4456
- * @uiGroup Step 2 Properties
4457
- */
4458
- this.step2_indirectTaxDetails = "Indirect tax details";
4459
- /**
4460
- * @uiName Registered for indirect tax option
4461
- * @uiGroup Step 2 Properties
4462
- * @uiWidget textArea
4463
- *
4464
- */
4465
- this.step2_otherRegion = "Registered for indirect tax";
4466
- /**
4467
- * Selecting this option will display fields to enter indirect tax details.
4468
- * @uiName Registered for indirect tax option description
4469
- * @uiGroup Step 2 Properties
4470
- */
4471
- this.step2_otherRegionSubtext = "If you’ve registered with your tax authority, add your information to stay tax compliant.";
4472
- /**
4473
- * @uiName Not registered for indirect tax option
4474
- * @uiGroup Step 2 Properties
4475
- * @uiWidget textArea
4476
- */
4477
- this.step2_notRegistered = "Not registered for indirect tax";
4478
- /**
4479
- * Participants based in the US are considered not registered.
4480
- * @uiName Not registered for indirect tax option description
4481
- * @uiGroup Step 2 Properties
4482
- */
4483
- this.step2_notRegisteredSubtext = "If you’ve never set up indirect tax with your tax authority, then you’re likely not considered registered.";
4484
- /**
4485
- * @uiName Region of indirect tax field label
4486
- * @uiGroup Step 2 Properties
4487
- */
4488
- this.step2_selectedRegion = "Country / region of indirect tax";
4489
- /**
4490
- * @uiName Indirect tax number field label
4491
- * @uiGroup Step 2 Properties
4492
- */
4493
- this.step2_indirectTaxNumber = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}}";
4494
- /**
4495
- * @uiName Province field label
4496
- * @uiGroup Step 2 Properties
4497
- */
4498
- this.step2_province = "Province";
4499
- /**
4500
- * @uiName Missing indirect tax number error message
4501
- * @uiGroup Step 2 Properties
4502
- */
4503
- this.step2_indirectTaxNumberError = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}} is required";
4504
- /**
4505
- * Displayed to participants registered for QST.
4506
- * @uiName QST number field label
4507
- * @uiGroup Step 2 Properties
4508
- */
4509
- this.step2_qstNumber = "QST number";
4510
- /**
4511
- * Displayed to participants registered for indirect tax in Quebec, Canada.
4512
- * @uiName QST tax checkbox
4513
- * @uiGroup Step 2 Properties
4514
- */
4515
- this.step2_isRegisteredQST = "I am registered for QST Tax";
4516
- /**
4517
- * Displayed to participants registered for indirect tax in Spain.
4518
- * @uiName Spain income tax checkbox
4519
- * @uiGroup Step 2 Properties
4520
- * @uiWidget textArea
4521
- */
4522
- this.step2_isRegisteredSubRegionIncomeTax = "I am an individual registered for Income Tax purposes in Spain, and withholding tax will apply to any payments made to me.";
4523
- /**
4524
- * Displayed to participants registered in Spain.
4525
- * @uiName Sub-region of indirect tax field label
4526
- * @uiGroup Step 2 Properties
4527
- */
4528
- this.step2_subRegion = "Sub-region";
4529
- /**
4530
- * @uiName Income tax field label
4531
- * @uiGroup Step 2 Properties
4532
- */
4533
- this.step2_subRegionTaxNumberLabel = "Income Tax Number";
4534
- /**
4535
- * Communicate that after this step, only Support can change personal and indirect tax information.
4536
- * @uiName Submission confirmation alert
4537
- * @uiGroup Step 2 Properties
4538
- * @uiWidget textArea
4539
- */
4540
- 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.";
4541
- /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4542
- STEP 3 PROPS:
4543
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
4544
- /**
4545
- * @uiName Step 3 title
4546
- * @uiGroup Step 3 Properties
4547
- */
4548
- this.step3_taxForm = "Tax form";
4549
- /**
4550
- * Display the type of tax form that the participant must submit.
4551
- * @uiName Tax form name
4552
- * @uiGroup Step 3 Properties
4553
- */
4554
- this.step3_taxFormLabel = "{documentType} Tax Form";
4555
- /**
4556
- * @uiName Participant type field label
4557
- * @uiGroup Step 3 Properties
4558
- */
4559
- this.step3_participantType = "Participant type";
4560
- /**
4561
- * An option for the participant type field. Used to determine which W-8 form is required.
4562
- * @uiName Business representative participant type label
4563
- * @uiGroup Step 3 Properties
4564
- */
4565
- this.step3_businessEntity = "I represent a business";
4566
- /**
4567
- * An option for the participant type field. Used to determine which W-8 form is required.
4568
- * @uiName Individual participant type label
4569
- * @uiGroup Step 3 Properties
4570
- */
4571
- this.step3_individualParticipant = "I am an individual participant";
4572
- /**
4573
- * Displayed at the top of the page to participants based in the US.
4574
- * @uiName W-9 tax form description
4575
- * @uiGroup Step 3 Properties
4576
- * @uiWidget textArea
4577
- */
4578
- this.step3_taxFormDescription = "Participants based in the US need to submit a {documentType} form.";
4579
- /**
4580
- * Displayed at the top of the page to individuals joining a US program who reside outside the country.
4581
- * @uiName W-8 BEN tax form description
4582
- * @uiGroup Step 3 Properties
4583
- * @uiWidget textArea
4584
- */
4585
- this.step3_taxFormDescriptionIndividualParticipant = "Participants residing outside of the US, joining the referral program of a US-based company, need to submit a {documentType} form.";
4586
- /**
4587
- * Displayed at the top of the page to participants representing a business.
4588
- * @uiName W-8 BEN-E tax form description
4589
- * @uiGroup Step 3 Properties
4590
- * @uiWidget textArea
4591
- */
4592
- this.step3_taxFormDescriptionBusinessEntity = "Participants residing outside of the US who represent a business entity need to submit a {documentType} form.";
4593
- /**
4594
- * This appears inside the Docusign frame.
4595
- * @uiName Docusign session expired message
4596
- * @uiGroup Step 3 Properties
4597
- * @uiWidget textArea
4598
- */
4599
- this.step3_docusignExpired = "For your security and privacy, we automatically end your session after 20 minutes of inactivity. Please refresh and re-enter your tax information to continue.";
4600
- /**
4601
- * Remind participants their session will time out after 20 minutes of inactivity.
4602
- * @uiName Docusign timed session message
4603
- * @uiGroup Step 3 Properties
4604
- * @uiWidget textArea
4605
- */
4606
- this.step3_docusignSessionWarning = "For your security, we automatically end your session when you have not interacted with the form after 20 minutes.";
4607
- /**
4608
- * This appears inside the Docusign frame.
4609
- * @uiName Docusign form error message
4610
- * @uiGroup Step 3 Properties
4611
- * @uiWidget textArea
4612
- */
4613
- this.step3_docusignError = "There was a problem displaying this form. Please refresh the page. If this problem continues, contact our {supportLink}.";
4614
- /**
4615
- * @uiName Refresh page button label
4616
- * @uiGroup Step 3 Properties
4617
- */
4618
- this.step3_refreshButton = "Refresh Page";
4619
- /**
4620
- * @uiName Exit button text
4621
- * @uiGroup Step 3 Properties
4622
- */
4623
- this.step3_exitButton = "Exit";
4624
- /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4625
- STEP 4 PROPS:
4626
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
4627
- /**
4628
- * @uiName Step 4 title
4629
- * @uiGroup Step 4 Properties
4630
- */
4631
- this.step4_taxAndPayouts = "Payouts";
4632
- /**
4633
- * @uiName Direct to bank payout option
4634
- * @uiGroup Step 4 Properties
4635
- */
4636
- this.step4_directlyToBankAccount = "Directly to my bank account";
4637
- /**
4638
- * @uiName PayPal payout option
4639
- * @uiGroup Step 4 Properties
4640
- */
4641
- this.step4_toPayPalAccount = "PayPal (2% processing fee capped to {feeCap})";
4642
- /**
4643
- * @uiName Threshold balance payment schedule option
4644
- * @uiGroup Step 4 Properties
4645
- */
4646
- this.step4_paymentScheduleBalanceThreshold = "Pay me when my balance reaches a threshold";
4647
- /**
4648
- * @uiName Fixed day payment schedule option
4649
- * @uiGroup Step 4 Properties
4650
- */
4651
- this.step4_paymentScheduleFixedDay = "Pay me on a fixed day of the month";
4652
- /**
4653
- * Let the participant choose what day of the month they’ll get paid
4654
- * @uiName Payment day field label
4655
- * @uiGroup Step 4 Properties
4656
- */
4657
- this.step4_paymentDaySelectLabel = "Payment Day";
4658
- /**
4659
- * Participant use this field to select the balance at which they want to be paid
4660
- * @uiName Payment threshold field label
4661
- * @uiGroup Step 4 Properties
4662
- */
4663
- this.step4_paymentThresholdSelectLabel = "Payment threshold";
4664
- /**
4665
- * One of two payment day options
4666
- * @uiName First of month payday option
4667
- * @uiGroup Step 4 Properties
4668
- */
4669
- this.step4_paymentDayFirstOfMonthLabelText = "1st of the month";
4670
- /**
4671
- * One of two payment day options
4672
- * @uiName Fifteenth of month payday option
4673
- * @uiGroup Step 4 Properties
4674
- */
4675
- this.step4_paymentDayFifteenthOfMonthLabelText = "15th of the month";
4676
- /**
4677
- * @uiName Payment method section header
4678
- * @uiGroup Step 4 Properties
4679
- */
4680
- this.step4_paymentMethod = "Payment method";
4681
- /**
4682
- * @uiName Payment schedule section header
4683
- * @uiGroup Step 4 Properties
4684
- */
4685
- this.step4_paymentSchedule = "Payment schedule";
4686
- /**
4687
- * @uiName Payment method section description
4688
- * @uiGroup Step 4 Properties
4689
- */
4690
- this.step4_paymentMethodSubtext = "Payouts will be sent from our referral program provider, impact.com.";
4691
- /**
4692
- * Displayed to participants who choose PayPal as their payout method
4693
- * @uiName PayPal email field label
4694
- * @uiGroup Step 4 Properties
4695
- */
4696
- this.step4_payPalInputLabel = "PayPal email";
4697
- /**
4698
- * @uiName Bank country field label
4699
- * @uiGroup Step 4 Properties
4700
- */
4701
- this.step4_bankLocationLabel = "Bank country location";
4702
- /**
4703
- * @uiName Beneficiary account field label
4704
- * @uiGroup Step 4 Properties
4705
- */
4706
- this.step4_beneficiaryAccountNameLabel = "Beneficiary account name";
4707
- /**
4708
- * @uiName Bank account type field label
4709
- * @uiGroup Step 4 Properties
4710
- */
4711
- this.step4_bankAccountTypeLabel = "Bank account type";
4712
- /**
4713
- * @uiName Checking account option
4714
- * @uiGroup Step 4 Properties
4715
- */
4716
- this.step4_checkingSelectItemLabel = "Checking";
4717
- /**
4718
- * Label text for the savings account type select item
4719
- * @uiName Savings account options
4720
- * @uiGroup Step 4 Properties
4721
- */
4722
- this.step4_savingsSelectItemLabel = "Savings";
4723
- /**
4724
- * @uiName Bank account number field label
4725
- * @uiGroup Step 4 Properties
4726
- */
4727
- this.step4_bankAccountNumberLabel = "Bank account number";
4728
- /**
4729
- * @uiName IBAN field label
4730
- * @uiGroup Step 4 Properties
4731
- */
4732
- this.step4_ibanLabel = "IBAN";
4733
- /**
4734
- * @uiName SWIFT code field label
4735
- * @uiGroup Step 4 Properties
4736
- */
4737
- this.step4_swiftCodeLabel = "SWIFT code";
4738
- /**
4739
- * @uiName Routing code field label
4740
- * @uiGroup Step 4 Properties
4741
- */
4742
- this.step4_routingCodeLabel = "{bankCountry, select, AU {BSB number} CA {Routing number} CZ {Bank code} HK {Clearing code} SG {Clearing code} US {ABA routing number} NZ {BSB number} ZA {Bank/Branch number} IN {IFSC} CNY {CNAPS} other {Routing code} }";
4743
- /**
4744
- * @uiName Bank name field label
4745
- * @uiGroup Step 4 Properties
4746
- */
4747
- this.step4_bankNameLabel = "Bank name";
4748
- /**
4749
- * @uiName Classification entity field label
4750
- * @uiGroup Step 4 Properties
4751
- */
4752
- this.step4_classificationEntityLabel = "Classification entity";
4753
- /**
4754
- * One of three options listed for the classification field
4755
- * @uiName Business classification option
4756
- * @uiGroup Step 4 Properties
4757
- */
4758
- this.step4_businessSelectItemLabel = "Business";
4759
- /**
4760
- * One of three options listed for the classification field
4761
- * @uiName Individual classification option
4762
- * @uiGroup Step 4 Properties
4763
- */
4764
- this.step4_individualSelectItemLabel = "Individual";
4765
- /**
4766
- * One of three options listed for the classification field
4767
- * @uiName Foreign classification option
4768
- * @uiGroup Step 4 Properties
4769
- */
4770
- this.step4_foreignSelectItemLabel = "Foreign";
4771
- /**
4772
- * @uiName Classification CPF field label
4773
- * @uiGroup Step 4 Properties
4774
- */
4775
- this.step4_classificationCPFLabel = "Classification CPF";
4776
- /**
4777
- * @uiName Patronymic name field label
4778
- * @uiGroup Step 4 Properties
4779
- */
4780
- this.step4_patronymicNameLabel = "Patronymic name";
4781
- /**
4782
- * @uiName VO code field label
4783
- * @uiGroup Step 4 Properties
4784
- */
4785
- this.step4_voCodeLabel = "VO code";
4786
- /**
4787
- * @uiName Agency code field label
4788
- * @uiGroup Step 4 Properties
4789
- */
4790
- this.step4_agencyCodeLabel = "Agency code";
4791
- /**
4792
- * @uiName Branch code field label
4793
- * @uiGroup Step 4 Properties
4794
- */
4795
- this.step4_branchCodeLabel = "Branch code";
4796
- /**
4797
- * Label text for the classification input field
4798
- * @uiName Classification field label
4799
- * @uiGroup Step 4 Properties
4800
- */
4801
- this.step4_classificationLabel = "Classification";
4802
- /**
4803
- * @uiName Taxpayer ID field label
4804
- * @uiGroup Step 4 Properties
4805
- */
4806
- this.step4_taxPayerIdLabel = "Beneficiary INN";
4807
- /**
4808
- * @uiName Bank address field label
4809
- * @uiGroup Step 4 Properties
4810
- */
4811
- this.step4_bankAddressLabel = "Bank address";
4812
- /**
4813
- * @uiName Bank city field label
4814
- * @uiGroup Step 4 Properties
4815
- */
4816
- this.step4_bankCityLabel = "Bank city";
4817
- /**
4818
- * @uiName Bank province/state field label
4819
- * @uiGroup Step 4 Properties
4820
- */
4821
- this.step4_bankStateLabel = "Bank Province / State";
4822
- /**
4823
- * @uiName Bank postal code field label
4824
- * @uiGroup Step 4 Properties
4825
- */
4826
- this.step4_bankPostalCodeLabel = "Bank postal code";
4827
- /**
4828
- * Default payment method to the participants’ bank account.
4829
- * @uiName EFT withdrawal payment method
4830
- * @uiGroup Step 4 Properties
4831
- */
4832
- this.step4_eftWithdrawalLabel = "EFT Withdrawal (free)";
4833
- /**
4834
- * @uiName FX Wire Processing fee text
4835
- * @uiGroup Step 4 Properties
4836
- */
4837
- this.step4_fxWireProcessingFeeLabel = "FX Wire (Processing Fee {currency}{defaultFxFee}.00)";
4838
- /**
4839
- * @uiName Text for verify email dialog
4840
- * @uiGroup Step 4 Properties
4841
- */
4842
- this.step4_verifyEmailHeaderText = "Verify your email";
4843
- /**
4844
- * @uiName Verify code widget header text
4845
- * @uiGroup Step 4 Properties
4846
- */
4847
- this.step4_verifyEmailDescriptionText = "Verify your email to update your payment settings. Enter the code sent to {email} from our referral provider, impact.com.";
4848
- /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4849
- DASHBOARD PROPS:
4850
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
4851
- /**
4852
- * @uiName Active tax form badge label
4853
- * @uiGroup Dashboard Properties
4854
- */
4855
- this.dashboard_statusTextActive = "Active";
4856
- /**
4857
- * @uiName Invalid tax form badge label
4858
- * @uiGroup Dashboard Properties
4859
- */
4860
- this.dashboard_statusTextNotActive = "Invalid Tax Form";
4861
- /**
4862
- * Displayed when the participant submitted their form but it is awaiting review.
4863
- *
4864
- * @uiName Not verified tax form badge label
4865
- * @uiGroup Dashboard Properties
4866
- */
4867
- this.dashboard_statusTextNotVerified = "Not Verified";
4868
- /**
4869
- * Additional text displayed next to the tax form's status badge
4870
- *
4871
- * @uiName Active W-9 description
4872
- * @uiGroup Dashboard Properties
4873
- */
4874
- this.dashboard_badgeTextSubmittedOn = "Submitted on {dateSubmitted}.";
4875
- /**
4876
- * Additional text displayed next to the tax form's status badge.
4877
- *
4878
- * @uiName Active W-8 description
4879
- * @uiGroup Dashboard Properties
4880
- */
4881
- this.dashboard_badgeTextSubmittedOnW8 = "Submitted on {dateSubmitted}. Valid for three years after submission.";
4882
- /**
4883
- * Additional text displayed next to the tax form's status badge.
4884
- *
4885
- * @uiName Tax form in review description
4886
- * @uiGroup Dashboard Properties
4887
- */
4888
- this.dashboard_badgeTextAwaitingReview = "Awaiting review. Submitted on {dateSubmitted}.";
4889
- /**
4890
- * Part of the alert displayed at the top of the page.
4891
- *
4892
- * @uiName Inactive W-9 error message title
4893
- * @uiGroup Dashboard Properties
4894
- * @uiWidget textArea
4895
- */
4896
- this.dashboard_taxAlertHeaderNotActiveW9 = "Your W9 tax form has personal information that doesn’t match your profile";
4897
- /**
4898
- * Part of the alert displayed at the top of the page.
4899
- *
4900
- * @uiName Inactive W-8 error message title
4901
- * @uiGroup Dashboard Properties
4902
- * @uiWidget textArea
4903
- */
4904
- this.dashboard_taxAlertHeaderNotActiveW8 = "{documentType} tax form is invalid";
4905
- /**
4906
- * Part of the alert displayed at the top of the page.
4907
- *
4908
- * @uiName Inactive W-9 error message description
4909
- * @uiGroup Dashboard Properties
4910
- * @uiWidget textArea
4911
- */
4912
- this.dashboard_taxAlertNotActiveMessageW9 = "Please resubmit a new {documentType} form.";
4913
- /**
4914
- * Part of the alert displayed at the top of the page.
4915
- *
4916
- * @uiName Inactive W-8 error message description
4917
- * @uiGroup Dashboard Properties
4918
- */
4919
- this.dashboard_taxAlertNotActiveMessageW8 = "Your tax form may have expired or has personal information that doesn’t match your profile. Please submit a new {documentType} form.";
4920
- /**
4921
- * Additional text displayed next to the tax form's status badge.
4922
- *
4923
- * @uiName Invalid tax form description
4924
- * @uiGroup Dashboard Properties
4925
- * @uiWidget textArea
4926
- */
4927
- this.dashboard_invalidForm = "Make sure your information is correct and submit new form.";
4928
- /**
4929
- * @uiName Payout information section header
4930
- * @uiGroup Dashboard Properties
4931
- */
4932
- this.dashboard_bankingInformationSectionHeader = "Payout Information";
4933
- /**
4934
- * @uiName Tax document section header
4935
- * @uiGroup Dashboard Properties
4936
- */
4937
- this.dashboard_taxDocumentSectionHeader = "Tax documents";
4938
- /**
4939
- * Displayed under the tax document section header.
4940
- *
4941
- * @uiName Tax documents section description
4942
- * @uiGroup Dashboard Properties
4943
- */
4944
- this.dashboard_taxDocumentSectionSubHeader = "{documentType} tax form";
4945
- /**
4946
- * No other statuses or badges will be displayed in the tax form section in this case.
4947
- *
4948
- * @uiName Tax form not required text
4949
- * @uiGroup Dashboard Properties
4950
- * @uiWidget textArea
4951
- */
4952
- this.dashboard_noFormNeededSubtext = "Tax documents are only required if you are based in the US or joining the referral program of a US based brand.";
4953
- /**
4954
- *
4955
- * @uiName Indirect tax section header
4956
- * @uiGroup Dashboard Properties
4957
- */
4958
- this.dashboard_indirectTaxInfoSectionHeader = "Indirect tax";
4959
- /**
4960
- * If the participant is registered for indirect tax in Canada, display the province they’re registered in.
4961
- *
4962
- * @uiName Canadian province of indirect tax
4963
- * @uiGroup Dashboard Properties
4964
- */
4965
- this.dashboard_indirectTaxInfoCanada = "Registered in {province}, {country}";
4966
- /**
4967
- * If the participant is registered for indirect tax, display the country they’re registered in.
4968
- *
4969
- * @uiName Indirect tax country
4970
- * @uiGroup Dashboard Properties
4971
- */
4972
- this.dashboard_indirectTaxInfoOtherCountry = "Registered in {country}";
4973
- /**
4974
- * If the participant is registered for indirect tax in Spain, display the region they’re registered in.
4975
- *
4976
- * @uiName Spanish region of indirect tax
4977
- * @uiGroup Dashboard Properties
4978
- */
4979
- this.dashboard_indirectTaxInfoSpain = "Registered in {country}, {subRegion}";
4980
- /**
4981
- * @uiName Indirect tax tooltip
4982
- * @uiGroup Dashboard Properties
4983
- * @uiWidget textArea
4984
- */
4985
- this.dashboard_indirectTaxTooltipSupport = "To make changes to your indirect tax information, please contact our {supportLink}.";
4986
- /**
4987
- * Displayed to participants who have submitted their indirect tax information.
4988
- *
4989
- * @uiName Indirect tax details
4990
- * @uiGroup Dashboard Properties
4991
- */
4992
- this.dashboard_indirectTaxDetails = "{indirectTaxType} number: {indirectTaxNumber}";
4993
- /**
4994
- * @uiName Submit new tax form button label
4995
- * @uiGroup Dashboard Properties
4996
- */
4997
- this.dashboard_newFormButton = "Submit new form";
4998
- /**
4999
- * @uiName Edit payment info button label
5000
- * @uiGroup Dashboard Properties
5001
- */
5002
- this.dashboard_editPaymentInformationButton = "Edit Payout Information";
5003
- /**
5004
- * @uiName Not registered for indirect tax text
5005
- * @uiGroup Dashboard Properties
5006
- * @uiWidget textArea
5007
- */
5008
- 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.";
5009
- /**
5010
- * Displayed to participants registered in Quebec, Canada.
5011
- * @uiName QST indirect tax details
5012
- * @uiGroup Dashboard Properties
5013
- */
5014
- this.dashboard_qstNumber = "QST number: {qstNumber}";
5015
- /**
5016
- * @uiName Spain sub-region indirect tax number
5017
- * @uiGroup Dashboard Properties
5018
- */
5019
- this.dashboard_subRegionTaxNumber = "Income tax number: {subRegionTaxNumber}";
5020
- /**
5021
- * @uiName Payout status badge
5022
- * @uiGroup Dashboard Properties
5023
- */
5024
- this.dashboard_statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
5025
- /**
5026
- * Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
5027
- * @uiName Payout schedule by threshold text
5028
- * @uiGroup Dashboard Properties
5029
- */
5030
- this.dashboard_thresholdPayoutText = "Next payout occurs when balance is {thresholdBalance}";
5031
- /**
5032
- * Shown before the participant’s bank account information.
5033
- * @uiName Bank account field label
5034
- * @uiGroup Dashboard Properties
5035
- */
5036
- this.dashboard_accountText = "Account";
5037
- /**
5038
- * Part of the Invoice table displayed at the bottom of the page.
5039
- * @uiName Invoice number column title
5040
- * @uiGroup Dashboard Properties
5041
- */
5042
- this.dashboard_invoiceColumnTitle = "Invoice";
5043
- /**
5044
- * Part of the Invoice table displayed at the bottom of the page.
5045
- * @uiName Date column title
5046
- * @uiGroup Dashboard Properties
5047
- */
5048
- this.dashboard_dateColumnTitle = "Date";
5049
- /**
5050
- * Part of the Invoice table displayed at the bottom of the page.
5051
- * @uiName Earnings column title
5052
- * @uiGroup Dashboard Properties
5053
- */
5054
- this.dashboard_earningsColumnTitle = "Earnings";
5055
- /**
5056
- * Part of the Invoice table displayed at the bottom of the page.
5057
- * @uiName Indirect tax column title
5058
- * @uiGroup Dashboard Properties
5059
- */
5060
- this.dashboard_indirectTaxColumnTitle = "Indirect tax";
5061
- /**
5062
- * Displayed under the payout details card.
5063
- * @uiName Payout from impact text
5064
- * @uiGroup Dashboard Properties
5065
- * @uiWidget textArea
5066
- */
5067
- this.dashboard_payoutFromImpact = "Your balance may take up to 24 hours to update. Payouts will be sent from our referral program provider, impact.com.";
5068
- /**
5069
- * Part of the Invoice table displayed at the bottom of the page.
5070
- * @uiName Earnings after tax column title
5071
- * @uiGroup Dashboard Properties
5072
- */
5073
- this.dashboard_earningsAfterTaxColumnTitle = "Earnings after tax";
5074
- /**
5075
- * Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
5076
- * @uiName Payout error message title
5077
- * @uiGroup Dashboard Properties
5078
- * @uiWidget textArea
5079
- */
5080
- this.dashboard_payoutHoldAlertHeader = "Your payout is on hold";
5081
- /**
5082
- * Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
5083
- * @uiName Payout error message description
5084
- * @uiGroup Dashboard Properties
5085
- * @uiWidget textArea
5086
- */
5087
- this.dashboard_payoutHoldAlertDescription = "Please contact our {supportLink} or check your inbox for an email from our referral program provider, impact.com.";
5088
- /**
5089
- * Text displayed for existing publishers that do not have saved banking information.
5090
- * @uiName Payout missing information subtext
5091
- * @uiGroup Dashboard Properties
5092
- */
5093
- this.dashboard_payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
5094
- /**
5095
- * @uiName Invoice table description
5096
- * @uiGroup Dashboard Properties
5097
- */
5098
- this.dashboard_invoiceDescription = "View and download your invoices to report your earnings and stay tax compliant.";
5099
- /**
5100
- * @uiName Invoice table previous page button label
5101
- * @uiGroup Dashboard Properties
5102
- */
5103
- this.dashboard_invoicePrevLabel = "Prev";
5104
- /**
5105
- * @uiName Invoice table next page button label
5106
- * @uiGroup Dashboard Properties
5107
- */
5108
- this.dashboard_invoiceMoreLabel = "Next";
5109
- /**
5110
- * @uiName Invoice table title
5111
- * @uiGroup Dashboard Properties
5112
- */
5113
- this.dashboard_invoiceHeader = "Invoices";
5114
- /**
5115
- * @uiName Empty invoice table header
5116
- * @uiGroup Dashboard Properties
5117
- */
5118
- this.dashboard_invoiceEmptyStateHeader = "View your invoice details";
5119
- /**
5120
- * @uiName Empty invoice table description
5121
- * @uiGroup Dashboard Properties
5122
- */
5123
- this.dashboard_invoiceEmptyStateText = "Refer a friend to view the status of your invoices and rewards earned";
5124
- /**
5125
- * @uiName Replace tax form modal header
5126
- * @uiGroup Dashboard Properties
5127
- */
5128
- this.dashboard_replaceTaxFormModalHeader = "Replace existing tax form";
5129
- /**
5130
- * @uiName Replace tax form modal body text
5131
- * @uiGroup Dashboard Properties
5132
- * @uiWidget textArea
5133
- */
5134
- 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.";
5135
- /**
5136
- * Part of the alert displayed at the top of the page when the user needs to verify their identity.
5137
- * @uiName Verification required alert message title
5138
- * @uiGroup Dashboard Properties
5139
- * @uiWidget textArea
5140
- */
5141
- this.dashboard_verificationRequiredHeader = "Verify your identity";
5142
- /**
5143
- * Part of the alert displayed at the top of the page when the user needs to verify their identity
5144
- * @uiName Verification required alert message description
5145
- * @uiGroup Dashboard Properties
5146
- * @uiWidget textArea
5147
- */
5148
- 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}.";
5149
- /**
5150
- * @uiName Verification required internal alert header
5151
- * @uiGroup Dashboard Properties
5152
- * @uiWidget textArea
5153
- */
5154
- this.dashboard_verificationRequiredInternalHeader = "Identity Verification in Progress";
5155
- /**
5156
- * @uiName Verification required internal alert description
5157
- * @uiGroup Dashboard Properties
5158
- * @uiWidget textArea
5159
- */
5160
- 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}.";
5161
- /**
5162
- * @uiName Verification review internal alert header
5163
- * @uiGroup Dashboard Properties
5164
- * @uiWidget textArea
5165
- */
5166
- this.dashboard_verificationReviewInternalHeader = "Identity Verification Under Review";
5167
- /**
5168
- * @uiName Verification review internal alert description
5169
- * @uiGroup Dashboard Properties
5170
- * @uiWidget textArea
5171
- */
5172
- 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}.";
5173
- /**
5174
- * @uiName Verification failed internal alert header
5175
- * @uiGroup Dashboard Properties
5176
- * @uiWidget textArea
5177
- */
5178
- this.dashboard_verificationFailedInternalHeader = "Identity Verification Unsuccessful";
5179
- /**
5180
- * @uiName Verification failed internal alert description
5181
- * @uiGroup Dashboard Properties
5182
- * @uiWidget textArea
5183
- */
5184
- 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}.";
5185
- /**
5186
- * Part of the alert displayed at the top of the page when the user needs to verify their identity.
5187
- * @uiName Verification required alert button text
5188
- * @uiGroup Dashboard Properties
5189
- * @uiWidget textArea
5190
- */
5191
- this.dashboard_verificationRequiredButtonText = "Start Verification";
5192
- /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5193
- GENERAL PROPS:
5194
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
5195
- /**
5196
- * @uiName Setup progress
5197
- * @uiGroup General Form Properties
5198
- */
5199
- this.formStep = "Step {step} of {count}";
5200
- /**
5201
- * Part of the alert displayed at the top of the page.
5202
- * @uiName Form submission error message title
5203
- * @uiGroup General Form Properties
5204
- * @uiWidget textArea
5205
- */
5206
- this.generalErrorTitle = "There was a problem submitting your information";
5207
- /**
5208
- * Part of the alert displayed at the top of the page.
5209
- * @uiName Form submission error message description
5210
- * @uiGroup General Form Properties
5211
- * @uiWidget textArea
5212
- */
5213
- this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact our {supportLink}.";
5214
- /**
5215
- * Displayed under a field that is missing required information.
5216
- * @uiName Empty form field error message
5217
- * @uiGroup General Form Properties
5218
- */
5219
- this.fieldRequiredError = "{fieldName} is required";
5220
- /**
5221
- * Displayed under a field that includes invalid characters (non-ASCII).
5222
- * @uiName Invalid character error message
5223
- * @uiGroup General Form Properties
5224
- */
5225
- this.invalidCharacterError = "{fieldName} includes characters that aren't supported.";
5226
- /**
5227
- * Displayed under a field when it has an invalid entry.
5228
- * @uiName Form field error message
5229
- * @uiGroup General Form Properties
5230
- */
5231
- this.fieldInvalidError = "{fieldName} is invalid";
5232
- /**
5233
- * @uiName Continue button label
5234
- * @uiGroup General Form Properties
5235
- */
5236
- this.continueButton = "Continue";
5237
- /**
5238
- * @uiName Back button label
5239
- * @uiGroup General Form Properties
5240
- */
5241
- this.backButton = "Back";
5242
- /**
5243
- * @uiName Cancel button label
5244
- * @uiGroup General Form Properties
5245
- */
5246
- this.cancelButton = "Cancel";
5247
- /**
5248
- * Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com.
5249
- * @uiName Participant is a partner alert title
5250
- * @uiGroup General Form Properties
5251
- * @uiWidget textArea
5252
- */
5253
- this.isPartnerAlertHeader = "An account with this email already exists with our referral program provider, impact.com";
5254
- /**
5255
- * Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com.
5256
- * @uiName Participant is a partner alert description
5257
- * @uiGroup General Form Properties
5258
- * @uiWidget textArea
5259
- */
5260
- 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.";
3568
+
3569
+ function usePayoutDetailsCard(props) {
3570
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
3571
+ const { data: data$1, loading } = index_module.$n(data.USER_QUERY_NAMESPACE);
3572
+ const publisher = (_b = (_a = data$1 === null || data$1 === void 0 ? void 0 : data$1.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher;
3573
+ function getPayoutDetailedStatusText(paymentDay) {
3574
+ var _a;
3575
+ const currentDay = luxon.luxon.DateTime.now().day;
3576
+ if (paymentDay === "1") {
3577
+ return currentDay === 1
3578
+ ? luxon.luxon.DateTime.now().toFormat("LLL dd, yyyy")
3579
+ : luxon.luxon.DateTime.now()
3580
+ .plus({ month: 1 })
3581
+ .startOf("month")
3582
+ .toFormat("LLL dd, yyyy");
3583
+ }
3584
+ else if (paymentDay === "15") {
3585
+ return currentDay <= 15
3586
+ ? luxon.luxon.DateTime.now()
3587
+ .plus({ day: 15 - currentDay })
3588
+ .toFormat("LLL dd, yyyy")
3589
+ : luxon.luxon.DateTime.now()
3590
+ .plus({ month: 1 })
3591
+ .startOf("month")
3592
+ .plus({ day: 14 })
3593
+ .toFormat("LLL dd, yyyy");
3594
+ }
3595
+ else {
3596
+ global.intl.formatMessage({
3597
+ id: `nextPayoutBalance`,
3598
+ defaultMessage: props.thresholdPayoutText,
3599
+ }, {
3600
+ thresholdBalance: (_a = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _a === void 0 ? void 0 : _a.paymentThreshold,
3601
+ });
3602
+ }
3603
+ }
3604
+ const paymentDay = getPayoutDetailedStatusText((_c = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _c === void 0 ? void 0 : _c.paymentDay);
3605
+ const isPayoutToday = luxon.luxon.DateTime.now().toFormat("LLL dd, yyyy") === paymentDay;
3606
+ return {
3607
+ states: {
3608
+ loading,
3609
+ thresholdBalance: ((_d = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _d === void 0 ? void 0 : _d.paymentThreshold) ? `${publisher === null || publisher === void 0 ? void 0 : publisher.currency}${(_e = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _e === void 0 ? void 0 : _e.paymentThreshold}`
3610
+ : undefined,
3611
+ balance: (_f = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _f === void 0 ? void 0 : _f.balance,
3612
+ badgeStatus: ((_g = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _g === void 0 ? void 0 : _g.paymentSchedulingType) !== "FIXED_DAY"
3613
+ ? "thresholdPayout"
3614
+ : isPayoutToday
3615
+ ? "payoutToday"
3616
+ : "nextPayout",
3617
+ payoutType: (_h = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _h === void 0 ? void 0 : _h.paymentMethod,
3618
+ error: (_j = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _j === void 0 ? void 0 : _j.hold,
3619
+ paypalEmailAddress: (_k = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _k === void 0 ? void 0 : _k.paypalEmailAddress,
3620
+ cardNumberPreview: (_l = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _l === void 0 ? void 0 : _l.bankAccountNumber,
3621
+ nextPayoutDate: paymentDay,
3622
+ },
3623
+ text: props.getTextProps(),
3624
+ };
3625
+ }
3626
+
3627
+ const PayoutDetailsCard = class {
3628
+ constructor(hostRef) {
3629
+ index.registerInstance(this, hostRef);
5261
3630
  /**
5262
- * Placeholder text displayed in the country search dropdown
5263
- * @uiName Country field placeholder text
5264
- * @uiGroup General Form Properties
3631
+ * Badge text indicating payout status
3632
+ * @uiName Payout badge status text
5265
3633
  */
5266
- this.searchForCountryText = "Search for country..";
3634
+ this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
5267
3635
  /**
5268
- * Part of the alert displayed at the top of the page.
5269
- * @uiName Page load error message title
5270
- * @uiGroup General Form Properties
5271
- * @uiWidget textArea
3636
+ * Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
3637
+ * @uiName Payout schedule by threshold text
5272
3638
  */
5273
- this.loadingErrorAlertHeader = "There was a problem loading your form";
3639
+ this.thresholdPayoutText = "Next payout occurs when balance is {thresholdBalance}";
5274
3640
  /**
5275
- * Part of the alert displayed at the top of the page.
5276
- * @uiName Page load error message description
5277
- * @uiGroup General Form Properties
5278
- * @uiWidget textArea
3641
+ * Shown before the participant’s bank account information.
3642
+ * @uiName Bank account field label
5279
3643
  */
5280
- this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact our {supportLink}.";
3644
+ this.accountText = "Account";
5281
3645
  /**
5282
- * Displayed at the top of the page on all set up steps.
5283
- * @uiName Page description
5284
- * @uiGroup General Form Properties
3646
+ * Text displayed for existing publishers that do not have saved banking information.
3647
+ * @uiName Payout missing information subtext
5285
3648
  */
5286
- this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
3649
+ this.payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
5287
3650
  /**
5288
- * Link text for contacting support team
5289
- * @uiName Suport link text
5290
- * @uiGroup General Form Properties
3651
+ * @componentState { "title": "Loading", "props": { "states": { "loading": true } } }
5291
3652
  */
5292
- this.supportLink = "support team";
5293
- stencilHooks_module.h$1(this);
3653
+ this.stateController = "{}";
3654
+ domContextHooks_module.h$1(this);
5294
3655
  }
5295
3656
  disconnectedCallback() { }
5296
- // this field is required prop
5297
- getGeneralStepTextProps(prefix) {
3657
+ getTextProps() {
5298
3658
  const props = utils.getProps(this);
5299
3659
  return {
5300
- ...extractProps.extractProps(props, prefix),
5301
- generalErrorTitle: props.generalErrorTitle,
5302
- generalErrorDescription: props.generalErrorDescription,
5303
- fieldRequiredError: props.fieldRequiredError,
5304
- invalidCharacterError: props.invalidCharacterError,
5305
- fieldInvalidError: props.fieldInvalidError,
5306
- continueButton: props.continueButton,
5307
- backButton: props.backButton,
5308
- cancelButton: props.cancelButton,
5309
- isPartnerAlertHeader: props.isPartnerAlertHeader,
5310
- isPartnerAlertDescription: props.isPartnerAlertDescription,
5311
- loadingErrorAlertHeader: props.loadingErrorAlertHeader,
5312
- loadingErrorAlertDescription: props.loadingErrorAlertDescription,
5313
- taxAndPayoutsDescription: props.taxAndPayoutsDescription,
5314
- searchForCountryText: props.searchForCountryText,
5315
- formStep: props.formStep,
5316
- supportLink: props.supportLink,
3660
+ ...props,
5317
3661
  };
5318
3662
  }
5319
3663
  render() {
5320
- var _a, _b;
5321
- const props = index_module.isDemo() ? useDemoTaxAndCash(this) : useTaxAndCash();
5322
- // @ts-ignore
5323
- if ((_a = this.demoData) === null || _a === void 0 ? void 0 : _a.showTextProps) {
5324
- const textProps = utils.getProps(this);
5325
- return (index.h("div", null, (_b = Object.keys(textProps)) === null || _b === void 0 ? void 0 : _b.map((prop) => {
5326
- if (prop === "demoData")
5327
- return;
5328
- return (index.h("div", null, index.h("b", null, prop, ":"), " ", this[prop], index.h("hr", null)));
5329
- })));
5330
- }
5331
- switch (props.step) {
5332
- case "/1":
5333
- return (index.h("sqm-user-info-form", Object.assign({}, this.getGeneralStepTextProps("step1_"))));
5334
- case "/2":
5335
- return (index.h("sqm-indirect-tax-form", Object.assign({}, this.getGeneralStepTextProps("step2_"))));
5336
- case "/3":
5337
- return (index.h("sqm-docusign-form", Object.assign({}, this.getGeneralStepTextProps("step3_"))));
5338
- case "/4":
5339
- return (index.h("sqm-banking-info-form", Object.assign({}, this.getGeneralStepTextProps("step4_"))));
5340
- case "/dashboard":
5341
- return (index.h("sqm-tax-and-cash-dashboard", Object.assign({}, this.getGeneralStepTextProps("dashboard_"))));
5342
- case "/error":
5343
- return (index.h(ErrorView.ErrorView, { loadingErrorAlertHeader: this.loadingErrorAlertHeader, loadingErrorAlertDescription: this.loadingErrorAlertDescription }));
5344
- }
5345
- return index.h(sqmInvoiceTableView.LoadingView, null);
3664
+ const props = index_module.isDemo()
3665
+ ? useDemoPayoutDetailsCard(this)
3666
+ : usePayoutDetailsCard(this);
3667
+ return (index.h(index.Host, null, index.h(PayoutDetailsCardView, { text: props.text, states: props.states })));
5346
3668
  }
5347
3669
  };
5348
- function useDemoTaxAndCash(props) {
5349
- const [step, setStep] = index_module.In({
5350
- namespace: TAX_CONTEXT_NAMESPACE,
5351
- initialValue: "/1",
5352
- });
3670
+ function useDemoPayoutDetailsCard(props) {
5353
3671
  return cjs.cjs({
5354
- step,
5355
- setStep,
3672
+ states: {
3673
+ loading: false,
3674
+ error: false,
3675
+ thresholdBalance: "$50",
3676
+ mainCurrency: { currencyText: "USD", amountText: "100.00" },
3677
+ badgeStatus: "nextPayout",
3678
+ payoutType: "BANK_TRANSFER",
3679
+ nextPayoutDate: "March 14, 2024",
3680
+ paypalEmailAddress: "joesmith@example.com",
3681
+ otherCurrencies: false,
3682
+ hasW9Pending: false,
3683
+ hasDatePending: true,
3684
+ cardNumberPreview: "XX2381",
3685
+ balance: "20.00 USD",
3686
+ },
3687
+ text: props.getTextProps(),
5356
3688
  }, props.demoData || {}, { arrayMerge: (_, a) => a });
5357
3689
  }
5358
3690
 
5359
- const style$6 = {
5360
- ErrorAlertContainer: {
5361
- "&::part(base)": {
5362
- backgroundColor: "var(--sl-color-red-100)",
5363
- borderTop: "none",
5364
- },
5365
- "& sl-icon::part(base)": {
5366
- color: "var(--sl-color-danger-500)",
5367
- },
5368
- },
5369
- WarningAlertContainer: {
5370
- "&::part(base)": {
5371
- backgroundColor: "var(--sl-color-yellow-100)",
5372
- borderTop: "none",
5373
- maxWidth: "600px",
5374
- },
5375
- "& sl-icon::part(base)": {
5376
- color: "var(--sl-color-warning-500)",
5377
- },
5378
- },
5379
- WarningHoldAlertContainer: {
5380
- marginLeft: "-20px",
3691
+ const style$5 = {
3692
+ DangerBadge: {
5381
3693
  "&::part(base)": {
5382
- maxWidth: "850px",
5383
- border: "none",
5384
- backgroundColor: "transparent",
5385
- },
5386
- "& sl-icon::part(base)": {
5387
- color: "var(--sl-color-warning-500)",
3694
+ backgroundColor: "var(--sqm-danger-color-icon)",
3695
+ color: "var(--sl-color-white)",
5388
3696
  },
5389
3697
  },
5390
- ErrorHoldAlertContainer: {
5391
- marginLeft: "-20px",
3698
+ SuccessBadge: {
5392
3699
  "&::part(base)": {
5393
- maxWidth: "850px",
5394
- border: "none",
5395
- backgroundColor: "transparent",
5396
- },
5397
- "& sl-icon::part(base)": {
5398
- color: "var(--sl-color-danger-500)",
3700
+ backgroundColor: "var(--sqm-success-color-icon)",
3701
+ color: "var(--sl-color-white)",
5399
3702
  },
5400
3703
  },
5401
- ExpiringSoonAlertContainer: {
3704
+ WarningBadge: {
5402
3705
  "&::part(base)": {
5403
- backgroundColor: "var(--sl-color-yellow-100)",
5404
- borderTop: "none",
3706
+ backgroundColor: "var(--sqm-warning-color-icon)",
3707
+ color: "var(--sl-color-white)",
5405
3708
  },
5406
3709
  },
5407
3710
  BankingInformationContainer: {
@@ -5409,7 +3712,7 @@ const style$6 = {
5409
3712
  },
5410
3713
  IndirectTaxPreviewContainer: {
5411
3714
  marginTop: "var(--sl-spacing-x-large)",
5412
- borderTop: "1px solid var(--sl-color-neutral-200)",
3715
+ borderTop: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
5413
3716
  },
5414
3717
  IndirectTaxPreviewHeaderContainer: {
5415
3718
  marginTop: "var(--sl-spacing-large)",
@@ -5418,7 +3721,7 @@ const style$6 = {
5418
3721
  display: "flex",
5419
3722
  gap: "var(--sl-spacing-x-small)",
5420
3723
  "&::part(base)": {
5421
- color: "var(--sl-color-green-500)",
3724
+ color: "var(--sqm-success-color-text)",
5422
3725
  },
5423
3726
  },
5424
3727
  IndirectTaxPreviewDetails: {
@@ -5432,11 +3735,11 @@ const style$6 = {
5432
3735
  marginTop: "var(--sl-spacing-medium)",
5433
3736
  },
5434
3737
  NotRegisteredIndirectTaxText: {
5435
- color: "var(--sl-color-gray-500)",
3738
+ color: "var(--sqm-text-subdued)",
5436
3739
  },
5437
3740
  TaxDocumentsContainer: {
5438
3741
  marginTop: "var(--sl-spacing-xx-large)",
5439
- borderTop: "1px solid var(--sl-color-neutral-200)",
3742
+ borderTop: "1px solid var(--sqm-border-color)",
5440
3743
  },
5441
3744
  TaxDocumentsSectionHeaderContainer: {
5442
3745
  marginTop: "var(--sl-spacing-x-large)",
@@ -5453,7 +3756,7 @@ const style$6 = {
5453
3756
  "& p": {
5454
3757
  margin: "0",
5455
3758
  paddingTop: "2px",
5456
- color: "var(--sl-color-gray-500)",
3759
+ color: "var(--sqm-text-subdued)",
5457
3760
  },
5458
3761
  },
5459
3762
  StatusAlert: {
@@ -5488,7 +3791,7 @@ const style$6 = {
5488
3791
  },
5489
3792
  TaxDocSubtext: {
5490
3793
  margin: "0",
5491
- color: "var(--sl-color-neutral-500)",
3794
+ color: "var(--sqm-text-subdued)",
5492
3795
  lineHeight: "var(--sl-spacing-medium)",
5493
3796
  fontSize: "var(--sl-font-size-small)",
5494
3797
  marginLeft: "1px",
@@ -5509,28 +3812,66 @@ const style$6 = {
5509
3812
  gap: "6px",
5510
3813
  },
5511
3814
  DescriptionText: {
5512
- color: "var(--sl-color-gray-500)",
3815
+ color: "var(--sqm-text-subdued)",
5513
3816
  fontSize: "var(--sl-font-size-x-small)",
5514
3817
  marginBottom: "none",
5515
3818
  maxWidth: "492px",
5516
3819
  },
5517
3820
  PageDescriptionText: {
5518
- color: "var(--sl-color-neutral-500)",
3821
+ color: "var(--sqm-text-subdued)",
5519
3822
  fontSize: "var(--sl-font-size-medium)",
5520
3823
  marginTop: "0",
5521
3824
  },
3825
+ WarningButton: {
3826
+ "&::part(base)": {
3827
+ marginTop: "20px",
3828
+ borderColor: "var(--sqm-warning-color-border)",
3829
+ color: "var(--sqm-warning-color-text)",
3830
+ background: "var(--sqm-warning-color-background)",
3831
+ "&:hover": {
3832
+ background: "var(--sqm-warning-color-icon)",
3833
+ },
3834
+ },
3835
+ },
3836
+ ErrorButton: {
3837
+ "&::part(base)": {
3838
+ marginTop: "20px",
3839
+ borderColor: "var(--sqm-danger-color-border)",
3840
+ color: "var(--sqm-danger-color-text)",
3841
+ background: "var(--sqm-danger-color-background)",
3842
+ "&:hover": {
3843
+ background: "var(--sqm-danger-color-icon)",
3844
+ },
3845
+ },
3846
+ },
3847
+ SuccessButton: {
3848
+ "&::part(base)": {
3849
+ marginTop: "20px",
3850
+ borderColor: "var(--sqm-success-color-border)",
3851
+ color: "var(--sqm-success-color-text)",
3852
+ background: "var(--sqm-success-color-background)",
3853
+ "&:hover": {
3854
+ background: "var(--sqm-success-color-icon)",
3855
+ },
3856
+ },
3857
+ },
5522
3858
  Dialog: {
5523
3859
  "&::part(panel)": {
5524
3860
  maxWidth: "420px",
5525
3861
  },
3862
+ "&::part(header)": {
3863
+ display: "flex",
3864
+ alignItems: "center",
3865
+ justifyContent: "center",
3866
+ paddingTop: "var(--sl-spacing-large)",
3867
+ },
5526
3868
  "&::part(close-button)": {
5527
3869
  marginBottom: "var(--sl-spacing-xx-large)",
5528
3870
  },
5529
3871
  "&::part(title)": {
5530
- fontSize: "var(--sl-font-size-x-large)",
3872
+ fontSize: "var(--sl-font-size-large)",
5531
3873
  fontWeight: "600",
5532
- marginTop: "var(--sl-spacing-xxx-large)",
5533
- padding: "var(--sl-spacing-x-large) var(--sl-spacing-x-large) 0 var(--sl-spacing-x-large)",
3874
+ padding: "0px var(--sl-spacing-x-large) 0 var(--sl-spacing-x-large)",
5534
3875
  },
5535
3876
  "&::part(body)": {
5536
3877
  padding: "0 var(--sl-spacing-x-large) 0 var(--sl-spacing-x-large)",
@@ -5547,10 +3888,20 @@ const style$6 = {
5547
3888
  },
5548
3889
  DialogButton: { margin: "auto", width: "100%" },
5549
3890
  };
5550
- const sheet$5 = JSS.createStyleSheet(style$6);
5551
- const styleString$5 = sheet$5.toString();
3891
+ const vanillaStyle$3 = `
3892
+ * {
3893
+ font-family: var(--sqm-primary-font);
3894
+ }
3895
+ a {
3896
+ color: inherit;
3897
+ text-decoration: underline;
3898
+ cursor: pointer;
3899
+ }
3900
+ `;
3901
+ const sheet$4 = JSS.createStyleSheet(style$5);
3902
+ const styleString$4 = sheet$4.toString();
5552
3903
  const TaxAndCashDashboardView = (props) => {
5553
- var _a, _b, _c, _d;
3904
+ var _a;
5554
3905
  const { states, text, callbacks, slots } = props;
5555
3906
  function getAlert(status) {
5556
3907
  switch (status) {
@@ -5565,8 +3916,6 @@ const TaxAndCashDashboardView = (props) => {
5565
3916
  }),
5566
3917
  buttonText: text.verificationRequiredButtonText,
5567
3918
  alertType: "warning",
5568
- icon: "exclamation-triangle",
5569
- class: sheet$5.classes.WarningHoldAlertContainer,
5570
3919
  };
5571
3920
  case "VERIFICATION:INTERNAL":
5572
3921
  return {
@@ -5578,8 +3927,6 @@ const TaxAndCashDashboardView = (props) => {
5578
3927
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
5579
3928
  }),
5580
3929
  alertType: "warning",
5581
- icon: "exclamation-triangle",
5582
- class: sheet$5.classes.WarningHoldAlertContainer,
5583
3930
  };
5584
3931
  case "VERIFICATION:REVIEW":
5585
3932
  return {
@@ -5591,8 +3938,6 @@ const TaxAndCashDashboardView = (props) => {
5591
3938
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
5592
3939
  }),
5593
3940
  alertType: "warning",
5594
- icon: "exclamation-triangle",
5595
- class: sheet$5.classes.WarningHoldAlertContainer,
5596
3941
  };
5597
3942
  case "VERIFICATION:FAILED":
5598
3943
  return {
@@ -5603,9 +3948,7 @@ const TaxAndCashDashboardView = (props) => {
5603
3948
  }, {
5604
3949
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
5605
3950
  }),
5606
- alertType: "critical",
5607
- icon: "exclamation-octagon",
5608
- class: sheet$5.classes.ErrorHoldAlertContainer,
3951
+ alertType: "error",
5609
3952
  };
5610
3953
  case "HOLD":
5611
3954
  return {
@@ -5618,24 +3961,22 @@ const TaxAndCashDashboardView = (props) => {
5618
3961
  }),
5619
3962
  buttonText: null,
5620
3963
  alertType: "warning",
5621
- icon: "exclamation-triangle",
5622
- class: sheet$5.classes.WarningHoldAlertContainer,
5623
3964
  };
5624
3965
  default:
5625
3966
  return;
5626
3967
  }
5627
3968
  }
5628
3969
  const statusMap = {
5629
- NOT_VERIFIED: (index.h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
5630
- index.h("sl-badge", { type: "warning", pill: true }, text.statusTextNotVerified),
3970
+ NOT_VERIFIED: (index.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
3971
+ index.h("sl-badge", { class: sheet$4.classes.WarningBadge, type: "warning", pill: true }, text.statusTextNotVerified),
5631
3972
  index.h("p", null, global.intl.formatMessage({
5632
3973
  id: `badgeTextAwaitingReview`,
5633
3974
  defaultMessage: text.badgeTextAwaitingReview,
5634
3975
  }, {
5635
3976
  dateSubmitted: states.dateSubmitted,
5636
3977
  })))),
5637
- ACTIVE: (index.h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
5638
- index.h("sl-badge", { type: "success", pill: true }, text.statusTextActive),
3978
+ ACTIVE: (index.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
3979
+ index.h("sl-badge", { class: sheet$4.classes.SuccessBadge, type: "success", pill: true }, text.statusTextActive),
5639
3980
  index.h("p", null, global.intl.formatMessage({
5640
3981
  id: `badgeTextSubmittedOn`,
5641
3982
  defaultMessage: states.documentType === "W9"
@@ -5644,14 +3985,13 @@ const TaxAndCashDashboardView = (props) => {
5644
3985
  }, {
5645
3986
  dateSubmitted: states.dateSubmitted,
5646
3987
  })))),
5647
- INACTIVE: (index.h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
5648
- index.h("sl-badge", { type: "danger", pill: true }, text.statusTextNotActive),
3988
+ INACTIVE: (index.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
3989
+ index.h("sl-badge", { class: sheet$4.classes.DangerBadge, type: "danger", pill: true }, text.statusTextNotActive),
5649
3990
  index.h("p", null, text.invalidForm))),
5650
3991
  };
5651
3992
  const alertMap = {
5652
- INACTIVE: (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.ErrorAlertContainer },
5653
- index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
5654
- index.h("strong", null, global.intl.formatMessage({
3993
+ INACTIVE: (index.h("sqm-form-message", { type: "error" },
3994
+ index.h("p", { part: "alert-title" }, global.intl.formatMessage({
5655
3995
  id: `taxAlertHeaderNotActive`,
5656
3996
  defaultMessage: states.documentType === "W9"
5657
3997
  ? text.taxAlertHeaderNotActiveW9
@@ -5659,7 +3999,6 @@ const TaxAndCashDashboardView = (props) => {
5659
3999
  }, {
5660
4000
  documentType: states.documentTypeString,
5661
4001
  })),
5662
- index.h("br", null),
5663
4002
  global.intl.formatMessage({
5664
4003
  id: `taxAlertMessage`,
5665
4004
  defaultMessage: states.documentType === "W9"
@@ -5697,78 +4036,74 @@ const TaxAndCashDashboardView = (props) => {
5697
4036
  });
5698
4037
  }
5699
4038
  };
4039
+ const alert = getAlert(states.payoutStatus);
5700
4040
  return (index.h("div", null,
5701
4041
  index.h("div", null,
5702
- index.h("style", { type: "text/css" }, styleString$5),
5703
- states.loadingError && (index.h("div", null,
5704
- index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.ErrorAlertContainer },
5705
- index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
5706
- index.h("strong", null, text.error.loadingErrorAlertHeader),
5707
- index.h("br", null),
5708
- global.intl.formatMessage({
5709
- id: "loadingErrorAlertDescription",
5710
- defaultMessage: text.error.loadingErrorAlertDescription,
5711
- }, {
5712
- supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
5713
- })))),
5714
- ((_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 },
5715
- index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
5716
- index.h("strong", null, text.error.generalTitle),
5717
- index.h("br", null),
4042
+ index.h("style", { type: "text/css" }, styleString$4),
4043
+ index.h("style", { type: "text/css" }, vanillaStyle$3),
4044
+ states.loadingError && (index.h("sqm-form-message", { type: "error" },
4045
+ index.h("p", { part: "alert-title" }, text.error.loadingErrorAlertHeader),
4046
+ global.intl.formatMessage({
4047
+ id: "loadingErrorAlertDescription",
4048
+ defaultMessage: text.error.loadingErrorAlertDescription,
4049
+ }, {
4050
+ supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
4051
+ }))),
4052
+ ((_a = states.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sqm-form-message", { type: "error" },
4053
+ index.h("p", { part: "alert-title" }, text.error.generalTitle),
5718
4054
  global.intl.formatMessage({
5719
4055
  id: "generalDescription",
5720
4056
  defaultMessage: text.error.generalDescription,
5721
4057
  }, {
5722
4058
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
5723
4059
  }))),
5724
- 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 },
5725
- index.h("sl-icon", { slot: "icon", name: (_d = getAlert(states.payoutStatus)) === null || _d === void 0 ? void 0 : _d.icon }),
5726
- index.h("strong", null, getAlert(states.payoutStatus).header),
5727
- index.h("p", { style: { margin: "0" } }, getAlert(states.payoutStatus).description),
5728
- 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)))),
5729
- index.h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet$5.classes.Dialog, open: states.showNewFormDialog, "onSl-hide": callbacks.onNewFormCancel },
4060
+ alert && (index.h("sqm-form-message", { type: alert.alertType },
4061
+ index.h("p", { part: "alert-title" }, alert.header),
4062
+ index.h("p", { part: "alert-description" }, alert.description),
4063
+ alert.buttonText && (index.h("sl-button", { class: sheet$4.classes[`${utils.capitalizeFirstLetter(alert.alertType)}Button`], loading: states.veriffLoading, onClick: () => callbacks.onVerifyClick() }, alert.buttonText)))),
4064
+ index.h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet$4.classes.Dialog, open: states.showNewFormDialog, "onSl-hide": callbacks.onNewFormCancel },
5730
4065
  index.h("p", null, text.replaceTaxFormModalBodyText),
5731
- index.h("sl-button", { slot: "footer", type: "primary", class: sheet$5.classes.DialogButton, onClick: callbacks.onNewFormClick }, text.newFormButton),
5732
- index.h("sl-button", { slot: "footer", type: "default", class: sheet$5.classes.DialogButton, onClick: callbacks.onNewFormCancel }, text.cancelButton)),
4066
+ index.h("sl-button", { slot: "footer", type: "primary", exportparts: "base: primarybutton-base", class: sheet$4.classes.DialogButton, onClick: callbacks.onNewFormClick }, text.newFormButton),
4067
+ index.h("sl-button", { slot: "footer", type: "secondary", exportparts: "base: secondarybutton-base", class: sheet$4.classes.DialogButton, onClick: callbacks.onNewFormCancel }, text.cancelButton)),
5733
4068
  states.status === "INACTIVE" && alertMap[states.status],
5734
4069
  index.h("div", null,
5735
4070
  index.h("h3", { style: { marginBottom: "0" } }, text.bankingInformationSectionHeader),
5736
- index.h("p", { class: sheet$5.classes.PageDescriptionText }, text.taxAndPayoutsDescription),
5737
- index.h("div", { class: sheet$5.classes.BankingInformationContainer },
4071
+ index.h("p", { class: sheet$4.classes.PageDescriptionText }, text.taxAndPayoutsDescription),
4072
+ index.h("div", { class: sheet$4.classes.BankingInformationContainer },
5738
4073
  slots.payoutDetailsCardSlot,
5739
- !states.loading && (index.h("p", { class: sheet$5.classes.DescriptionText }, text.payoutFromImpact)),
5740
- states.canEditPayoutInfo && (index.h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$5.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
5741
- index.h("div", { class: sheet$5.classes.TaxDocumentsContainer },
5742
- index.h("div", null, states.loading ? (index.h("div", { class: sheet$5.classes.TaxSectionSkeletonContainer },
5743
- index.h("sl-skeleton", { class: sheet$5.classes.SkeletonOne }),
5744
- index.h("sl-skeleton", { class: sheet$5.classes.SkeletonTwo }))) : (index.h("div", null, states.noFormNeeded ? (index.h("div", null,
5745
- index.h("h3", { class: sheet$5.classes.TaxDocumentsSectionHeaderContainer }, text.taxDocumentSectionHeader),
5746
- index.h("p", { class: sheet$5.classes.TaxDocSubtext }, text.noFormNeededSubtext))) : (index.h("div", null,
5747
- index.h("span", { class: sheet$5.classes.TaxFormDetailsContainer },
5748
- index.h("div", { class: sheet$5.classes.StatusContainer },
4074
+ !states.loading && (index.h("p", { class: sheet$4.classes.DescriptionText }, text.payoutFromImpact)),
4075
+ states.canEditPayoutInfo && (index.h("sl-button", { disabled: states.disabled || states.loading, type: "primary", exportparts: "base: primarybutton-base", onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
4076
+ index.h("div", { class: sheet$4.classes.TaxDocumentsContainer },
4077
+ index.h("div", null, states.loading ? (index.h("div", { class: sheet$4.classes.TaxSectionSkeletonContainer },
4078
+ index.h("sl-skeleton", { class: sheet$4.classes.SkeletonOne }),
4079
+ index.h("sl-skeleton", { class: sheet$4.classes.SkeletonTwo }))) : (index.h("div", null, states.noFormNeeded ? (index.h("div", null,
4080
+ index.h("h3", { class: sheet$4.classes.TaxDocumentsSectionHeaderContainer }, text.taxDocumentSectionHeader),
4081
+ index.h("p", { class: sheet$4.classes.TaxDocSubtext }, text.noFormNeededSubtext))) : (index.h("div", null,
4082
+ index.h("span", { class: sheet$4.classes.TaxFormDetailsContainer },
4083
+ index.h("div", { class: sheet$4.classes.StatusContainer },
5749
4084
  index.h("h3", null, global.intl.formatMessage({
5750
4085
  id: "section-subheader",
5751
4086
  defaultMessage: text.taxDocumentSectionSubHeader,
5752
4087
  }, {
5753
4088
  documentType: states.documentTypeString,
5754
4089
  })),
5755
- index.h("span", { class: sheet$5.classes.StatusAlert }, statusMap[states.status]))),
5756
- 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)))))))),
5757
- index.h("div", { class: sheet$5.classes.IndirectTaxPreviewContainer }, states.loading ? (index.h("div", { class: sheet$5.classes.TaxSectionSkeletonContainer },
5758
- index.h("sl-skeleton", { class: sheet$5.classes.SkeletonOne }),
5759
- index.h("sl-skeleton", { class: sheet$5.classes.SkeletonTwo }))) : (index.h("div", null,
5760
- index.h("h3", { class: sheet$5.classes.IndirectTaxPreviewHeaderContainer },
4090
+ index.h("span", { class: sheet$4.classes.StatusAlert }, statusMap[states.status]))),
4091
+ states.status !== "NOT_VERIFIED" && (index.h("sl-button", { style: { marginTop: "20px" }, disabled: states.disabled || states.loading, onClick: callbacks.onClick, type: "primary", exportparts: "base: primarybutton-base" }, text.newFormButton)))))))),
4092
+ index.h("div", { class: sheet$4.classes.IndirectTaxPreviewContainer }, states.loading ? (index.h("div", { class: sheet$4.classes.TaxSectionSkeletonContainer },
4093
+ index.h("sl-skeleton", { class: sheet$4.classes.SkeletonOne }),
4094
+ index.h("sl-skeleton", { class: sheet$4.classes.SkeletonTwo }))) : (index.h("div", null,
4095
+ index.h("h3", { class: sheet$4.classes.IndirectTaxPreviewHeaderContainer },
5761
4096
  text.indirectTaxInfoSectionHeader,
5762
- index.h("sl-tooltip", { trigger: "hover", placement: "right", content: text.indirectTaxTooltipSupport, class: sheet$5.classes.TooltipContainer },
5763
- index.h("sl-icon", { name: "info-circle", class: sheet$5.classes.ToolTip }))),
5764
- index.h("div", { class: sheet$5.classes.IndirectTaxPreviewDetails },
5765
- index.h("span", null, states.notRegistered ? (index.h("span", { class: sheet$5.classes.NotRegisteredIndirectTaxText }, global.intl.formatMessage({
4097
+ index.h("sl-tooltip", { trigger: "hover", placement: "right", content: text.indirectTaxTooltipSupport, class: sheet$4.classes.TooltipContainer },
4098
+ index.h("sl-icon", { name: "info-circle", class: sheet$4.classes.ToolTip }))),
4099
+ index.h("div", { class: sheet$4.classes.IndirectTaxPreviewDetails },
4100
+ index.h("span", null, states.notRegistered ? (index.h("span", { class: sheet$4.classes.NotRegisteredIndirectTaxText }, global.intl.formatMessage({
5766
4101
  id: "notRegisteredForTax",
5767
4102
  defaultMessage: text.notRegisteredForTax,
5768
4103
  }, {
5769
4104
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
5770
4105
  }))) : (getIndirectTaxRegisteredIn())),
5771
- !states.notRegistered && (index.h("div", { class: sheet$5.classes.TaxNumberContainer },
4106
+ !states.notRegistered && (index.h("div", { class: sheet$4.classes.TaxNumberContainer },
5772
4107
  index.h("span", null, global.intl.formatMessage({
5773
4108
  id: `indirectTaxDetails`,
5774
4109
  defaultMessage: text.indirectTaxDetails,
@@ -5791,7 +4126,7 @@ const TaxAndCashDashboardView = (props) => {
5791
4126
  }, {
5792
4127
  subRegionTaxNumber: states.subRegionTaxNumber,
5793
4128
  })))),
5794
- !states.notRegistered && (index.h("div", { class: sheet$5.classes.InvoiceTableContainer },
4129
+ !states.notRegistered && (index.h("div", { class: sheet$4.classes.InvoiceTableContainer },
5795
4130
  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 },
5796
4131
  index.h("sqm-invoice-table-download-column", null),
5797
4132
  index.h("sqm-invoice-table-date-column", { "column-title": text.dateColumnTitle }),
@@ -5815,12 +4150,12 @@ function getSubRegionName(regionCode) {
5815
4150
  return "";
5816
4151
  // Impact adds an underscore to some regions
5817
4152
  const standardCode = regionCode.replace("_", "");
5818
- const regions = [...sqmInvoiceTableView.INDIRECT_TAX_PROVINCES, ...sqmInvoiceTableView.INDIRECT_TAX_SPAIN_REGIONS];
4153
+ const regions = [...IndirectTaxDetailsView.INDIRECT_TAX_PROVINCES, ...IndirectTaxDetailsView.INDIRECT_TAX_SPAIN_REGIONS];
5819
4154
  return (_a = regions.find((r) => r.regionCode === standardCode)) === null || _a === void 0 ? void 0 : _a.displayName;
5820
4155
  }
5821
4156
  function getIndirectTaxType(taxInformation) {
5822
4157
  var _a;
5823
- const regions = [...sqmInvoiceTableView.INDIRECT_TAX_PROVINCES, ...sqmInvoiceTableView.INDIRECT_TAX_SPAIN_REGIONS];
4158
+ const regions = [...IndirectTaxDetailsView.INDIRECT_TAX_PROVINCES, ...IndirectTaxDetailsView.INDIRECT_TAX_SPAIN_REGIONS];
5824
4159
  if (taxInformation === null || taxInformation === void 0 ? void 0 : taxInformation.indirectTaxRegion) {
5825
4160
  const standardRegion = taxInformation.indirectTaxRegion.replace("_", "");
5826
4161
  const taxType = (_a = regions.find((r) => r.regionCode === standardRegion)) === null || _a === void 0 ? void 0 : _a.taxType;
@@ -5831,23 +4166,23 @@ function getIndirectTaxType(taxInformation) {
5831
4166
  if (taxInformation === null || taxInformation === void 0 ? void 0 : taxInformation.withholdingTaxCountryCode)
5832
4167
  return "VAT";
5833
4168
  if (taxInformation === null || taxInformation === void 0 ? void 0 : taxInformation.indirectTaxCountryCode) {
5834
- return sqmInvoiceTableView.vatLabels[taxInformation.indirectTaxCountryCode] || "Indirect Tax";
4169
+ return IndirectTaxDetailsView.vatLabels[taxInformation.indirectTaxCountryCode] || "Indirect Tax";
5835
4170
  }
5836
4171
  return "Indirect Tax";
5837
4172
  }
5838
4173
  const useTaxAndCashDashboard = (props) => {
5839
4174
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
5840
- const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
5841
- const setContext = index_module.En(TAX_FORM_CONTEXT_NAMESPACE);
5842
- const [showDialog, setShowDialog] = stencilHooks_module.useState(false);
4175
+ const setStep = index_module.En(data.TAX_CONTEXT_NAMESPACE);
4176
+ const setContext = index_module.En(data.TAX_FORM_CONTEXT_NAMESPACE);
4177
+ const [showDialog, setShowDialog] = domContextHooks_module.useState(false);
5843
4178
  const { render, loading: veriffLoading, errors: veriffErrors, } = usePayoutStatus.useVeriffApp();
5844
4179
  const locale = index_module.L();
5845
- stencilHooks_module.useEffect(() => {
4180
+ domContextHooks_module.useEffect(() => {
5846
4181
  // Clear override context once on submitted
5847
4182
  setContext({});
5848
4183
  }, []);
5849
- const { data, loading, errors: userError, refetch, } = index_module.$n(USER_QUERY_NAMESPACE);
5850
- 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;
4184
+ const { data: data$1, loading, errors: userError, refetch, } = index_module.$n(data.USER_QUERY_NAMESPACE);
4185
+ const publisher = (_b = (_a = data$1 === null || data$1 === void 0 ? void 0 : data$1.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher;
5851
4186
  const documentType = publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType;
5852
4187
  const submissionDate = (_c = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _c === void 0 ? void 0 : _c.dateCreated;
5853
4188
  const dateSubmitted = submissionDate
@@ -5870,9 +4205,9 @@ const useTaxAndCashDashboard = (props) => {
5870
4205
  });
5871
4206
  setStep("/3");
5872
4207
  };
5873
- 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;
5874
- const payoutStatus = data ? usePayoutStatus.getStatus(data) : null;
5875
- stencilHooks_module.useEffect(() => {
4208
+ const provinceName = (_d = IndirectTaxDetailsView.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;
4209
+ const payoutStatus = data$1 ? usePayoutStatus.getStatus(data$1) : null;
4210
+ domContextHooks_module.useEffect(() => {
5876
4211
  const cb = () => refetch();
5877
4212
  window.addEventListener(usePayoutStatus.VERIFF_COMPLETE_EVENT_KEY, cb);
5878
4213
  return () => {
@@ -5884,7 +4219,7 @@ const useTaxAndCashDashboard = (props) => {
5884
4219
  dateSubmitted,
5885
4220
  documentType,
5886
4221
  canEditPayoutInfo: publisher === null || publisher === void 0 ? void 0 : publisher.brandedSignup,
5887
- documentTypeString: sqmInvoiceTableView.taxTypeToName(documentType),
4222
+ documentTypeString: utils$1.taxTypeToName(documentType),
5888
4223
  status: (_e = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _e === void 0 ? void 0 : _e.status,
5889
4224
  subRegion: getSubRegionName((_f = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _f === void 0 ? void 0 : _f.indirectTaxRegion),
5890
4225
  subRegionTaxNumber: (_g = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _g === void 0 ? void 0 : _g.withholdingTaxId,
@@ -6222,7 +4557,12 @@ const TaxAndCashDashboard = class {
6222
4557
  * @uiName Cancel button label
6223
4558
  */
6224
4559
  this.cancelButton = "Cancel";
6225
- stencilHooks_module.h$1(this);
4560
+ /**
4561
+ * @undocumented
4562
+ * @componentState { "title": "Payouts on hold", "props": { "payoutStatus": "HOLD" }, "uiGroup": "Dashboard Properties" }
4563
+ */
4564
+ this.stateController = "{}";
4565
+ domContextHooks_module.h$1(this);
6226
4566
  }
6227
4567
  disconnectedCallback() { }
6228
4568
  getTextProps() {
@@ -6247,23 +4587,31 @@ const TaxAndCashDashboard = class {
6247
4587
  }
6248
4588
  };
6249
4589
  function useDemoTaxAndCashDashboard(props) {
4590
+ // @ts-ignore
6250
4591
  return cjs.cjs({
6251
4592
  states: {
6252
4593
  dateSubmitted: "today",
6253
4594
  documentType: "W9",
6254
4595
  documentTypeString: "W9",
6255
- status: "ACTIVE",
6256
4596
  country: "United States",
6257
- indirectTaxNumber: 55555555,
4597
+ indirectTaxNumber: "55555555",
6258
4598
  indirectTaxType: "Indirect Tax",
6259
- noFormNeeded: true,
4599
+ noFormNeeded: false,
6260
4600
  disabled: false,
6261
4601
  loading: false,
6262
4602
  showNewFormDialog: false,
6263
4603
  hasHold: false,
6264
- showVerifyIdentity: false,
4604
+ subRegion: "CA",
4605
+ subRegionTaxNumber: undefined,
4606
+ qstNumber: undefined,
4607
+ isBusinessEntity: false,
4608
+ province: undefined,
4609
+ notRegistered: true,
4610
+ loadingError: false,
6265
4611
  payoutStatus: "DONE",
6266
4612
  veriffLoading: false,
4613
+ canEditPayoutInfo: true,
4614
+ status: "ACTIVE",
6267
4615
  },
6268
4616
  callbacks: {
6269
4617
  onClick: () => console.debug("check step"),
@@ -6273,7 +4621,14 @@ function useDemoTaxAndCashDashboard(props) {
6273
4621
  onVerifyClick: () => console.log("verify"),
6274
4622
  },
6275
4623
  text: props.getTextProps(),
6276
- }, props.demoData || {}, { arrayMerge: (_, a) => a });
4624
+ slots: {
4625
+ payoutDetailsCardSlot: (index.h("sqm-payout-details-card", { demoData: {
4626
+ states: {
4627
+ badgeStatus: "nextPayout",
4628
+ },
4629
+ } })),
4630
+ },
4631
+ }, props.demoData || props.stateController || {}, { arrayMerge: (_, a) => a });
6277
4632
  }
6278
4633
 
6279
4634
  const PHONE_EXTENSIONS = {
@@ -7247,19 +5602,19 @@ const PHONE_EXTENSIONS = {
7247
5602
  },
7248
5603
  };
7249
5604
 
7250
- const style$7 = {
5605
+ const style$6 = {
7251
5606
  FormWrapper: {},
7252
5607
  ErrorInput: {
7253
5608
  "&::part(base)": {
7254
- border: "1px solid var(--sl-color-danger-500)",
5609
+ border: "var(--sqm-border-thickness, 1px) solid var(--sqm-danger-color-icon)",
7255
5610
  borderRadius: "var(--sl-input-border-radius-medium)",
7256
5611
  },
7257
5612
  "&::part(help-text)": {
7258
- color: "var(--sl-color-danger-500)",
5613
+ color: "var(--sqm-danger-color-icon)",
7259
5614
  },
7260
5615
  },
7261
5616
  ErrorText: {
7262
- color: "var(--sl-color-danger-500)",
5617
+ color: "var(--sqm-danger-color-icon)",
7263
5618
  marginTop: "10px",
7264
5619
  },
7265
5620
  TextContainer: {
@@ -7290,9 +5645,6 @@ const style$7 = {
7290
5645
  justifyContent: "flex-start",
7291
5646
  flexDirection: "column",
7292
5647
  },
7293
- DescriptionText: {
7294
- color: "var(--sl-color-neutral-500)",
7295
- },
7296
5648
  BoldText: {
7297
5649
  fontWeight: "bold",
7298
5650
  },
@@ -7301,28 +5653,8 @@ const style$7 = {
7301
5653
  borderRadius: "50%",
7302
5654
  },
7303
5655
  },
7304
- AlertContainer: {
7305
- "&::part(base)": {
7306
- backgroundColor: "var(--sl-color-red-100)",
7307
- borderTop: "none",
7308
- padding: "0 16px",
7309
- },
7310
- "& sl-icon::part(base)": {
7311
- color: "var(--sl-color-danger-500)",
7312
- },
7313
- },
7314
- PartnerAlertContainer: {
7315
- "&::part(base)": {
7316
- backgroundColor: "var(--sl-color-sky-100)",
7317
- borderTop: "none",
7318
- padding: "0 16px",
7319
- },
7320
- "& sl-icon::part(base)": {
7321
- color: "var(--sl-color-blue-500)",
7322
- },
7323
- },
7324
5656
  PageDescriptionText: {
7325
- color: "var(--sl-color-neutral-500)",
5657
+ color: "var(--sqm-text-subdued)",
7326
5658
  fontSize: "var(--sl-font-size-medium)",
7327
5659
  },
7328
5660
  PhoneInputsSection: {
@@ -7345,8 +5677,8 @@ const style$7 = {
7345
5677
  },
7346
5678
  },
7347
5679
  };
7348
- const sheet$6 = JSS.createStyleSheet(style$7);
7349
- const styleString$6 = sheet$6.toString();
5680
+ const sheet$5 = JSS.createStyleSheet(style$6);
5681
+ const styleString$5 = sheet$5.toString();
7350
5682
  const vanillaStyle$4 = `
7351
5683
  :host{
7352
5684
  display: block;
@@ -7356,6 +5688,11 @@ const vanillaStyle$4 = `
7356
5688
  padding: 0;
7357
5689
  box-sizing: border-box;
7358
5690
  }
5691
+ a {
5692
+ color: var(--sqm-text);
5693
+ color: inherit !important;
5694
+ text-decoration: underline;
5695
+ }
7359
5696
 
7360
5697
  p {
7361
5698
  line-height: 18px;
@@ -7370,11 +5707,149 @@ const vanillaStyle$4 = `
7370
5707
  sl-select#phoneNumberCountryCode::part(menu) {
7371
5708
  min-width: 250px;
7372
5709
  }
7373
- `;
5710
+
5711
+ sl-button[type="primary"]::part(base){
5712
+ background-color: var(--sqm-primary-button-background);
5713
+ color: var(--sqm-primary-button-color);
5714
+ border-color: var(--sqm-primary-button-color-border);
5715
+ border-radius: var(--sqm-primary-button-radius);
5716
+ }
5717
+
5718
+ sl-button[type="primary"]::part(base):hover{
5719
+ background-color: var(--sqm-primary-button-background-hover);
5720
+ }
5721
+
5722
+ sl-button[type="primary"]::part(base):focus{
5723
+ box-shadow: none;
5724
+ }
5725
+
5726
+ sl-button[type="secondary"]::part(base){
5727
+ background-color: var(--sqm-secondary-button-background);
5728
+ color: var(--sqm-secondary-button-color);
5729
+ border-color: var(--sqm-secondary-button-color-border);
5730
+ border-radius: var(--sqm-secondary-button-radius);
5731
+ }
5732
+
5733
+ sl-button[type="secondary"]::part(base):hover{
5734
+ background-color: var(--sqm-secondary-button-background-hover);
5735
+ }
5736
+
5737
+
5738
+
5739
+ *::part(primarybutton-base){
5740
+ background-color: var(--sqm-primary-button-background);
5741
+ color: var(--sqm-primary-button-color);
5742
+ border-color: var(--sqm-primary-button-color-border);
5743
+ border-radius: var(--sqm-primary-button-radius);
5744
+ }
5745
+
5746
+ *::part(primarybutton-base):hover{
5747
+ background-color: var(--sqm-primary-button-background-hover);
5748
+ }
5749
+
5750
+ *::part(primarybutton-base):focus{
5751
+ box-shadow: none;
5752
+ }
5753
+
5754
+ *::part(secondarybutton-base){
5755
+ background-color: var(--sqm-secondary-button-background);
5756
+ color: var(--sqm-secondary-button-color);
5757
+ border-color: var(--sqm-secondary-button-color-border);
5758
+ border-radius: var(--sqm-secondary-button-radius);
5759
+ }
5760
+
5761
+ *::part(secondarybutton-base):hover{
5762
+ background-color: var(--sqm-secondary-button-background-hover);
5763
+ }
5764
+
5765
+ *::part(secondarybutton-base){
5766
+ background-color: var(--sqm-secondary-button-background);
5767
+ color: var(--sqm-secondary-button-color);
5768
+ border-color: var(--sqm-secondary-button-color-border);
5769
+ border-radius: var(--sqm-secondary-button-radius);
5770
+ width: max-content;
5771
+ display: flex;
5772
+ margin: auto;
5773
+ }
5774
+
5775
+ *::part(secondarybutton-base):hover{
5776
+ background: var(--sqm-secondary-button-background-hover);
5777
+ }
5778
+
5779
+ sl-input::part(label),
5780
+ sl-select::part(label),
5781
+ sl-textarea::part(label){
5782
+ font-size: var(--sqm-input-label-font-size, var(--sl-input-font-size-small));
5783
+ font-weight: var(--sl-font-weight-semibold);
5784
+ color: var(--sqm-input-label-color, var(--sqm-text), black);
5785
+ }
5786
+
5787
+ /* Corrected: Target sl-input, sl-select, sl-textarea base elements */
5788
+ sl-input::part(base),
5789
+ sl-dropdown::part(base),
5790
+ sl-textarea::part(base){
5791
+ background-color: var(--sqm-input-background, #fff);
5792
+ border-radius: var(--sqm-input-border-radius, var(--sl-input-border-radius-large), 0.25rem);
5793
+ color: var(--sqm-input-color, white);
5794
+ border-width: var(--sqm-border-thickness, 1px);
5795
+ border-style: solid;
5796
+ border-color: var(--sqm-input-border-color, #ccc);
5797
+ }
5798
+
5799
+
5800
+ sl-select::part(menu) {
5801
+ background: var(--sqm-input-background, inherit);
5802
+ color: var(--sqm-input-color, inherit);
5803
+ border:none;
5804
+ }
5805
+
5806
+ sl-select::part(panel) {
5807
+ border-radius: var(--sqm-border-radius-normal);
5808
+ }
5809
+
5810
+ sl-select::part(help-text) {
5811
+ color: var(--sqm-text-subdued, var(--sl-input-help-text-color, #6c757d));
5812
+ }
5813
+
5814
+ sl-input::part(base):focus,
5815
+ sl-select::part(base):focus, /* Corrected part name for sl-select */
5816
+ sl-textarea::part(base):focus { /* Corrected part name for sl-textarea */
5817
+ border: var(--sqm-input-focus-border, 1px solid var(--sl-input-border-color-focus, #007bff)); /* Added fallback for --sl-input-border-color-focus */
5818
+ }
5819
+
5820
+ sl-input[disabled]::part(label),
5821
+ sl-select[disabled]::part(label),
5822
+ sl-textarea[disabled]::part(label){
5823
+ color: var(--sqm-input-disabled-color, var(--sl-color-gray-600));
5824
+ }
5825
+
5826
+ sl-input[disabled]::part(base),
5827
+ sl-select[disabled]::part(base),
5828
+ sl-textarea[disabled]::part(base){
5829
+ background: var(--sqm-input-disabled-background, #f5f5f5);
5830
+ border-color: var(--sl-input-border-color-disabled, #e0e0e0); /* Example disabled border color */
5831
+ }
5832
+
5833
+
5834
+ sl-input::part(input):-webkit-autofill {
5835
+ box-shadow: 0 0 0 50px var(--sqm-input-background, #fff) inset !important;
5836
+ -webkit-text-fill-color: var(--sqm-input-color, white) !important;
5837
+ }
5838
+
5839
+ sl-input::part(input):-webkit-autofill:hover {
5840
+ box-shadow: 0 0 0 50px var(--sqm-input-background, #fff) inset !important;
5841
+ -webkit-text-fill-color: var(--sqm-input-color, white) !important;
5842
+ }
5843
+
5844
+ sl-input::part(input):-webkit-autofill:focus {
5845
+ box-shadow: 0 0 0 50px var(--sqm-input-background, #fff) inset !important;
5846
+ -webkit-text-fill-color: var(--sqm-input-color, white) !important;
5847
+ }
5848
+ `;
7374
5849
  const UserInfoFormView = (props) => {
7375
5850
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
7376
- const { states, states: { formState }, callbacks, text, refs, data, } = props;
7377
- const { classes } = sheet$6;
5851
+ const { states, states: { formState }, callbacks, text, refs, data: data$1, } = props;
5852
+ const { classes } = sheet$5;
7378
5853
  const bankingCollectionText = global.intl.formatMessage({
7379
5854
  id: "bankingCollectionText",
7380
5855
  defaultMessage: text.allowBankingCollection,
@@ -7382,7 +5857,7 @@ const UserInfoFormView = (props) => {
7382
5857
  termsAndConditionsLink: (index.h("a", { href: text.termsAndConditionsLink, target: "_blank" }, text.termsAndConditionsLabel)),
7383
5858
  });
7384
5859
  let regionLabel = undefined;
7385
- switch (data.regionLabelEnum) {
5860
+ switch (data$1.regionLabelEnum) {
7386
5861
  case "STATE":
7387
5862
  regionLabel = text.state;
7388
5863
  break;
@@ -7397,65 +5872,58 @@ const UserInfoFormView = (props) => {
7397
5872
  }
7398
5873
  return (index.h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
7399
5874
  index.h("style", { type: "text/css" },
7400
- styleString$6,
5875
+ styleString$5,
7401
5876
  vanillaStyle$4),
7402
5877
  states.loadingError && (index.h("div", null,
7403
- index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$6.classes.AlertContainer },
7404
- index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
7405
- index.h("strong", null, text.error.loadingErrorAlertHeader),
7406
- index.h("br", null),
7407
- global.intl.formatMessage({
5878
+ index.h("sqm-form-message", { type: "error" },
5879
+ index.h("p", { part: "alert-title" }, text.error.loadingErrorAlertHeader),
5880
+ index.h("p", { part: "alert-description" }, global.intl.formatMessage({
7408
5881
  id: "loadingErrorAlertDescription",
7409
5882
  defaultMessage: text.error.loadingErrorAlertDescription,
7410
5883
  }, {
7411
5884
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
7412
- })),
7413
- index.h("br", null))),
7414
- states.loading ? (index.h(sqmInvoiceTableView.GeneralLoadingView, null)) : (index.h("div", null,
5885
+ }))))),
5886
+ states.loading ? (index.h(utils$1.LoadingView, null)) : (index.h("div", null,
7415
5887
  index.h("div", { class: classes.TextContainer },
7416
5888
  index.h("div", null,
7417
5889
  !states.hideSteps && (index.h("p", null, global.intl.formatMessage({
7418
5890
  id: "formStep",
7419
5891
  defaultMessage: text.formStep,
7420
- }, { step: states.step, count: FORM_STEPS }))),
5892
+ }, { step: states.step, count: data.FORM_STEPS }))),
7421
5893
  index.h("h3", null, text.personalInformation),
7422
5894
  index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
7423
- ((_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 },
7424
- index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
7425
- index.h("strong", null, text.error.generalTitle),
7426
- index.h("br", null),
7427
- global.intl.formatMessage({
5895
+ ((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sqm-form-message", { type: "error" },
5896
+ index.h("p", { part: "alert-title" }, text.error.generalTitle),
5897
+ index.h("p", { part: "alert-description" }, global.intl.formatMessage({
7428
5898
  id: "generalDescription",
7429
5899
  defaultMessage: text.error.generalDescription,
7430
5900
  }, {
7431
5901
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
7432
- }))),
7433
- (states.isPartner || states.isUser) && (index.h("sl-alert", { type: "primary", open: true, class: sheet$6.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
7434
- index.h("sl-icon", { slot: "icon", name: "info-circle" }),
7435
- index.h("strong", null, text.isPartnerAlertHeader),
7436
- index.h("br", null),
7437
- global.intl.formatMessage({
5902
+ })))),
5903
+ (states.isPartner || states.isUser) && (index.h("sqm-form-message", { type: "info" },
5904
+ index.h("p", { part: "alert-title" }, text.isPartnerAlertHeader),
5905
+ index.h("p", { part: "alert-description" }, global.intl.formatMessage({
7438
5906
  id: "isPartnerAlertDescription",
7439
5907
  defaultMessage: text.isPartnerAlertDescription,
7440
5908
  }, {
7441
5909
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
7442
- }))),
5910
+ })))),
7443
5911
  index.h("div", null,
7444
5912
  index.h("div", { class: classes.InputContainer },
7445
- 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) ? {
5913
+ index.h("sl-input", Object.assign({ class: "ErrorInput", 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) ? {
7446
5914
  class: classes.ErrorInput,
7447
- helpText: sqmInvoiceTableView.formatErrorMessage(text.firstName, formState.errors.firstName),
5915
+ helpText: utils$1.formatErrorMessage(text.firstName, formState.errors.firstName),
7448
5916
  }
7449
5917
  : {}), { id: "firstName", name: "/firstName", required: true })),
7450
5918
  index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", value: formState.lastName, label: text.lastName, disabled: states.disabled || states.isUser || states.isPartner }, (((_c = formState.errors) === null || _c === void 0 ? void 0 : _c.lastName) ? {
7451
5919
  class: classes.ErrorInput,
7452
- helpText: sqmInvoiceTableView.formatErrorMessage(text.lastName, formState.errors.lastName),
5920
+ helpText: utils$1.formatErrorMessage(text.lastName, formState.errors.lastName),
7453
5921
  }
7454
5922
  : {}), { id: "lastName", name: "/lastName", required: true })),
7455
5923
  index.h("sl-input", { exportparts: "label: input-label, base: input-base", value: formState.email, label: text.email, disabled: true, id: "email", name: "/email", required: true }),
7456
5924
  index.h("sl-select", Object.assign({ id: "countryCode", exportparts: "label: input-label, base: input-base", name: "/countryCode", label: text.country, value: formState.countryCode, disabled: states.disabled || states.isPartner }, (((_d = formState.errors) === null || _d === void 0 ? void 0 : _d.countryCode) ? {
7457
5925
  class: classes.ErrorInput,
7458
- helpText: sqmInvoiceTableView.formatErrorMessage(text.country, formState.errors.countryCode),
5926
+ helpText: utils$1.formatErrorMessage(text.country, formState.errors.countryCode),
7459
5927
  }
7460
5928
  : {}), { required: true, "onSl-select": (e) => callbacks.onFormChange("countryCode", e) }),
7461
5929
  index.h("sl-input", { class: classes.SearchInput, placeholder: text.searchForCountryText, onKeyDown: (e) => {
@@ -7463,8 +5931,8 @@ const UserInfoFormView = (props) => {
7463
5931
  e.stopPropagation();
7464
5932
  }, "onSl-input": (e) => {
7465
5933
  callbacks.setCountrySearch(e.target.value);
7466
- } }), (_e = data === null || data === void 0 ? void 0 : data.countries) === null || _e === void 0 ? void 0 :
7467
- _e.map((c) => (index.h("sl-menu-item", { value: c.countryCode }, c.displayName))), (_f = data === null || data === void 0 ? void 0 : data.allCountries) === null || _f === void 0 ? void 0 :
5934
+ } }), (_e = data$1 === null || data$1 === void 0 ? void 0 : data$1.countries) === null || _e === void 0 ? void 0 :
5935
+ _e.map((c) => (index.h("sl-menu-item", { value: c.countryCode }, c.displayName))), (_f = data$1 === null || data$1 === void 0 ? void 0 : data$1.allCountries) === null || _f === void 0 ? void 0 :
7468
5936
  _f.map((c) => (index.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } }, c.displayName)))),
7469
5937
  index.h("div", { class: classes.PhoneInputsSection },
7470
5938
  index.h("p", null, text.phoneNumber),
@@ -7478,13 +5946,13 @@ const UserInfoFormView = (props) => {
7478
5946
  e.stopPropagation();
7479
5947
  }, "onSl-input": (e) => {
7480
5948
  callbacks.setPhoneCountrySearch(e.target.value);
7481
- } }), (_h = data === null || data === void 0 ? void 0 : data.phoneCountries) === null || _h === void 0 ? void 0 :
5949
+ } }), (_h = data$1 === null || data$1 === void 0 ? void 0 : data$1.phoneCountries) === null || _h === void 0 ? void 0 :
7482
5950
  _h.map((c) => {
7483
5951
  var _a, _b;
7484
5952
  return (index.h("sl-menu-item", { value: c.countryCode },
7485
5953
  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 :
7486
5954
  _b.dial_code));
7487
- }), (_j = data === null || data === void 0 ? void 0 : data.allCountries) === null || _j === void 0 ? void 0 :
5955
+ }), (_j = data$1 === null || data$1 === void 0 ? void 0 : data$1.allCountries) === null || _j === void 0 ? void 0 :
7488
5956
  _j.map((c) => {
7489
5957
  var _a, _b;
7490
5958
  return (index.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } },
@@ -7493,42 +5961,42 @@ const UserInfoFormView = (props) => {
7493
5961
  })),
7494
5962
  index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", id: "phoneNumber", name: "/phoneNumber", value: formState.phoneNumber, validationError: ({ value }) => {
7495
5963
  // Naive phone number validation
7496
- sqmInvoiceTableView.validateBillingField(/[a-zA-Z]+/, value) &&
7497
- sqmInvoiceTableView.formatErrorMessage(text.phoneNumber, text.error.fieldInvalidError);
5964
+ utils$1.validateBillingField(/[a-zA-Z]+/, value) &&
5965
+ utils$1.formatErrorMessage(text.phoneNumber, text.error.fieldInvalidError);
7498
5966
  }, disabled: states.disabled || states.isPartner }, (((_k = formState.errors) === null || _k === void 0 ? void 0 : _k.phoneNumber) ? {
7499
5967
  class: classes.ErrorInput,
7500
- helpText: sqmInvoiceTableView.formatErrorMessage(text.phoneNumber, formState.errors.phoneNumber),
5968
+ helpText: utils$1.formatErrorMessage(text.phoneNumber, formState.errors.phoneNumber),
7501
5969
  }
7502
5970
  : {}), { required: true })))),
7503
5971
  index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", label: text.address, id: "address", name: "/address", value: formState.address, validationError: ({ value }) =>
7504
5972
  // Checks for non-ASCII characters
7505
- !sqmInvoiceTableView.validateBillingField(/^[\x20-\xFF]+$/, value) &&
7506
- sqmInvoiceTableView.formatErrorMessage(text.address, text.error.invalidCharacterError), disabled: states.disabled || states.isPartner }, (((_l = formState.errors) === null || _l === void 0 ? void 0 : _l.address) ? {
5973
+ !utils$1.validateBillingField(/^[\x20-\xFF]+$/, value) &&
5974
+ utils$1.formatErrorMessage(text.address, text.error.invalidCharacterError), disabled: states.disabled || states.isPartner }, (((_l = formState.errors) === null || _l === void 0 ? void 0 : _l.address) ? {
7507
5975
  class: classes.ErrorInput,
7508
- helpText: sqmInvoiceTableView.formatErrorMessage(text.address, formState.errors.address),
5976
+ helpText: utils$1.formatErrorMessage(text.address, formState.errors.address),
7509
5977
  }
7510
5978
  : {}), { required: true })),
7511
5979
  index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", label: text.city, id: "city", name: "/city", value: formState.city, validationError: ({ value }) =>
7512
5980
  // Checks for non-ASCII characters
7513
- !sqmInvoiceTableView.validateBillingField(/^[\x20-\xFF]+$/, value) &&
7514
- sqmInvoiceTableView.formatErrorMessage(text.city, text.error.invalidCharacterError), disabled: states.disabled || states.isPartner }, (((_m = formState.errors) === null || _m === void 0 ? void 0 : _m.city) ? {
5981
+ !utils$1.validateBillingField(/^[\x20-\xFF]+$/, value) &&
5982
+ utils$1.formatErrorMessage(text.city, text.error.invalidCharacterError), disabled: states.disabled || states.isPartner }, (((_m = formState.errors) === null || _m === void 0 ? void 0 : _m.city) ? {
7515
5983
  class: classes.ErrorInput,
7516
- helpText: sqmInvoiceTableView.formatErrorMessage(text.city, formState.errors.city),
5984
+ helpText: utils$1.formatErrorMessage(text.city, formState.errors.city),
7517
5985
  }
7518
5986
  : {}), { required: true })),
7519
5987
  !states.hideState && (index.h("sl-select", Object.assign({ label: regionLabel, exportparts: "label: input-label, base: input-base", id: "state", name: "/state", value: formState.state, disabled: states.disabled || states.isPartner }, (((_o = formState.errors) === null || _o === void 0 ? void 0 : _o.state) ? {
7520
5988
  class: classes.ErrorInput,
7521
- helpText: sqmInvoiceTableView.formatErrorMessage(text.state, formState.errors.state),
5989
+ helpText: utils$1.formatErrorMessage(text.state, formState.errors.state),
7522
5990
  }
7523
- : {}), { required: true }), (_p = data.regions) === null || _p === void 0 ? void 0 : _p.map((r) => (index.h("sl-menu-item", { value: r.value }, r.label))))),
5991
+ : {}), { required: true }), (_p = data$1.regions) === null || _p === void 0 ? void 0 : _p.map((r) => (index.h("sl-menu-item", { value: r.value }, r.label))))),
7524
5992
  index.h("sl-input", Object.assign({ label: text.postalCode, exportparts: "label: input-label, base: input-base", id: "postalCode", name: "/postalCode", value: formState.postalCode, disabled: states.disabled || states.isPartner }, (((_q = formState.errors) === null || _q === void 0 ? void 0 : _q.postalCode) ? {
7525
5993
  class: classes.ErrorInput,
7526
- helpText: sqmInvoiceTableView.formatErrorMessage(text.postalCode, formState.errors.postalCode),
5994
+ helpText: utils$1.formatErrorMessage(text.postalCode, formState.errors.postalCode),
7527
5995
  }
7528
5996
  : {}), { required: true })),
7529
5997
  index.h("sl-select", Object.assign({ id: "currency", exportparts: "label: input-label, base: input-base", name: "/currency", label: text.currency, menu: true, value: formState.currency, disabled: states.disabled || states.isPartner, helpText: text.currencyHelpText }, (((_r = formState.errors) === null || _r === void 0 ? void 0 : _r.currency) ? {
7530
5998
  class: classes.ErrorInput,
7531
- helpText: sqmInvoiceTableView.formatErrorMessage(text.currency, formState.errors.currency),
5999
+ helpText: utils$1.formatErrorMessage(text.currency, formState.errors.currency),
7532
6000
  }
7533
6001
  : {}), { required: true, ref: (el) => (refs.currencyRef.current = el) }),
7534
6002
  index.h("sl-input", { class: classes.SearchInput, placeholder: text.searchForCurrencyText, onKeyDown: (e) => {
@@ -7536,11 +6004,11 @@ const UserInfoFormView = (props) => {
7536
6004
  e.stopPropagation();
7537
6005
  }, "onSl-input": (e) => {
7538
6006
  callbacks.setCurrencySearch(e.target.value);
7539
- } }), (_s = data === null || data === void 0 ? void 0 : data.currencies) === null || _s === void 0 ? void 0 :
6007
+ } }), (_s = data$1 === null || data$1 === void 0 ? void 0 : data$1.currencies) === null || _s === void 0 ? void 0 :
7540
6008
  _s.map((c) => (index.h("sl-menu-item", { value: c.currencyCode },
7541
6009
  c.currencyCode,
7542
6010
  " - ",
7543
- c.displayName))), (_t = data === null || data === void 0 ? void 0 : data.allCurrencies) === null || _t === void 0 ? void 0 :
6011
+ c.displayName))), (_t = data$1 === null || data$1 === void 0 ? void 0 : data$1.allCurrencies) === null || _t === void 0 ? void 0 :
7544
6012
  _t.map((c) => (index.h("sl-menu-item", { value: c.currencyCode, style: { display: "none" } },
7545
6013
  c.currencyCode,
7546
6014
  " - ",
@@ -7549,36 +6017,36 @@ const UserInfoFormView = (props) => {
7549
6017
  index.h("sl-checkbox", { exportparts: "label: input-label, base: input-base", checked: formState.allowBankingCollection === true, "onSl-change": (e) => {
7550
6018
  e.target.value = e.target.checked;
7551
6019
  }, disabled: states.isPartner ? false : states.disabled, required: true, value: formState.allowBankingCollection, id: "allowBankingCollection", name: "/allowBankingCollection" }, bankingCollectionText),
7552
- ((_u = formState.errors) === null || _u === void 0 ? void 0 : _u.allowBankingCollection) && (index.h("p", { class: classes.ErrorText }, sqmInvoiceTableView.formatErrorMessage(text.termsAndConditionsLabel, formState.errors.allowBankingCollection))))),
6020
+ ((_u = formState.errors) === null || _u === void 0 ? void 0 : _u.allowBankingCollection) && (index.h("p", { class: classes.ErrorText }, utils$1.formatErrorMessage(text.termsAndConditionsLabel, formState.errors.allowBankingCollection))))),
7553
6021
  index.h("sl-button", { type: "primary", disabled: states.isPartner ? false : states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton))))));
7554
6022
  };
7555
6023
 
7556
6024
  function useUserInfoForm(props) {
7557
6025
  var _a, _b, _c, _d;
7558
- const currencyRef = stencilHooks_module.useRef(undefined);
7559
- const phoneCountryRef = stencilHooks_module.useRef(undefined);
7560
- const formRef = stencilHooks_module.useRef(null);
7561
- const context = index_module.Fn(TAX_FORM_CONTEXT_NAMESPACE);
7562
- const countries = index_module.Fn(SORTED_COUNTRIES_NAMESPACE);
7563
- const [step, setStep] = index_module.Pn(TAX_CONTEXT_NAMESPACE);
7564
- const [userFormContext, setUserFormContext] = index_module.Pn(USER_FORM_CONTEXT_NAMESPACE);
7565
- const { data, loading, errors: userError, } = index_module.$n(USER_QUERY_NAMESPACE);
7566
- const _currencies = index_module.Fn(CURRENCIES_NAMESPACE);
7567
- const currencies = stencilHooks_module.useMemo(() => [...(_currencies || [])].sort((a, b) => a.displayName.localeCompare(b.displayName)), [_currencies]);
7568
- const [countrySearch, setCountrySearch] = stencilHooks_module.useState("");
7569
- const [phoneCountrySearch, setPhoneCountrySearch] = stencilHooks_module.useState("");
7570
- const [filteredCountries, setFilteredCountries] = stencilHooks_module.useState(countries || []);
7571
- const [filteredPhoneCountries, setFilteredPhoneCountries] = stencilHooks_module.useState(countries || []);
7572
- const [currencySearch, setCurrencySearch] = stencilHooks_module.useState("");
7573
- const [filteredCurrencies, setFilteredCurrencies] = stencilHooks_module.useState(currencies || []);
7574
- const [formErrors, setErrors] = stencilHooks_module.useState({});
7575
- stencilHooks_module.useEffect(() => {
6026
+ const currencyRef = domContextHooks_module.useRef(undefined);
6027
+ const phoneCountryRef = domContextHooks_module.useRef(undefined);
6028
+ const formRef = domContextHooks_module.useRef(null);
6029
+ const context = index_module.Fn(data.TAX_FORM_CONTEXT_NAMESPACE);
6030
+ const countries = index_module.Fn(data.SORTED_COUNTRIES_NAMESPACE);
6031
+ const [step, setStep] = index_module.Pn(data.TAX_CONTEXT_NAMESPACE);
6032
+ const [userFormContext, setUserFormContext] = index_module.Pn(data.USER_FORM_CONTEXT_NAMESPACE);
6033
+ const { data: data$1, loading, errors: userError, } = index_module.$n(data.USER_QUERY_NAMESPACE);
6034
+ const _currencies = index_module.Fn(data.CURRENCIES_NAMESPACE);
6035
+ const currencies = domContextHooks_module.useMemo(() => [...(_currencies || [])].sort((a, b) => a.displayName.localeCompare(b.displayName)), [_currencies]);
6036
+ const [countrySearch, setCountrySearch] = domContextHooks_module.useState("");
6037
+ const [phoneCountrySearch, setPhoneCountrySearch] = domContextHooks_module.useState("");
6038
+ const [filteredCountries, setFilteredCountries] = domContextHooks_module.useState(countries || []);
6039
+ const [filteredPhoneCountries, setFilteredPhoneCountries] = domContextHooks_module.useState(countries || []);
6040
+ const [currencySearch, setCurrencySearch] = domContextHooks_module.useState("");
6041
+ const [filteredCurrencies, setFilteredCurrencies] = domContextHooks_module.useState(currencies || []);
6042
+ const [formErrors, setErrors] = domContextHooks_module.useState({});
6043
+ domContextHooks_module.useEffect(() => {
7576
6044
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
7577
- const user = data === null || data === void 0 ? void 0 : data.user;
6045
+ const user = data$1 === null || data$1 === void 0 ? void 0 : data$1.user;
7578
6046
  if (!user || step !== "/1")
7579
6047
  return;
7580
6048
  // If form already filled out, skip initialising it
7581
- if (sqmInvoiceTableView.objectIsFull(userFormContext))
6049
+ if (utils$1.objectIsFull(userFormContext))
7582
6050
  return;
7583
6051
  // Prefer MI email if it was verified before this
7584
6052
  const email = ((_a = user.managedIdentity) === null || _a === void 0 ? void 0 : _a.emailVerified) ? user.managedIdentity.email
@@ -7615,7 +6083,7 @@ function useUserInfoForm(props) {
7615
6083
  postalCode: (_k = user.customFields) === null || _k === void 0 ? void 0 : _k.postalCode,
7616
6084
  });
7617
6085
  }
7618
- }, [data, step, userFormContext]);
6086
+ }, [data$1, step, userFormContext]);
7619
6087
  const onFormChange = (field, e) => {
7620
6088
  var _a, _b;
7621
6089
  const value = (_b = (_a = e.detail) === null || _a === void 0 ? void 0 : _a.item) === null || _b === void 0 ? void 0 : _b.__value;
@@ -7630,7 +6098,7 @@ function useUserInfoForm(props) {
7630
6098
  currencyRef.current.value = "";
7631
6099
  }
7632
6100
  };
7633
- stencilHooks_module.useEffect(() => {
6101
+ domContextHooks_module.useEffect(() => {
7634
6102
  if (!(countries === null || countries === void 0 ? void 0 : countries.length))
7635
6103
  return;
7636
6104
  if (countrySearch.trim() === "") {
@@ -7640,7 +6108,7 @@ function useUserInfoForm(props) {
7640
6108
  setFilteredCountries(countries.filter((c) => c.displayName.toLowerCase().includes(countrySearch.toLowerCase())) || []);
7641
6109
  }
7642
6110
  }, [countrySearch, countries]);
7643
- stencilHooks_module.useEffect(() => {
6111
+ domContextHooks_module.useEffect(() => {
7644
6112
  if (!(countries === null || countries === void 0 ? void 0 : countries.length))
7645
6113
  return;
7646
6114
  if (phoneCountrySearch.trim() === "") {
@@ -7650,7 +6118,7 @@ function useUserInfoForm(props) {
7650
6118
  setFilteredPhoneCountries(countries.filter((c) => c.displayName.toLowerCase().includes(phoneCountrySearch.toLowerCase())) || []);
7651
6119
  }
7652
6120
  }, [phoneCountrySearch, countries]);
7653
- stencilHooks_module.useEffect(() => {
6121
+ domContextHooks_module.useEffect(() => {
7654
6122
  if (!(currencies === null || currencies === void 0 ? void 0 : currencies.length))
7655
6123
  return;
7656
6124
  if (currencySearch.trim() === "") {
@@ -7707,7 +6175,7 @@ function useUserInfoForm(props) {
7707
6175
  }
7708
6176
  const hasStates = ["ES", "AU", "US", "CA"].includes(userFormContext.countryCode);
7709
6177
  const regionObj = hasStates
7710
- ? sqmInvoiceTableView.ADDRESS_REGIONS[userFormContext === null || userFormContext === void 0 ? void 0 : userFormContext.countryCode]
6178
+ ? IndirectTaxDetailsView.ADDRESS_REGIONS[userFormContext === null || userFormContext === void 0 ? void 0 : userFormContext.countryCode]
7711
6179
  : {};
7712
6180
  return {
7713
6181
  setStep: setStep,
@@ -7740,8 +6208,8 @@ function useUserInfoForm(props) {
7740
6208
  disabled: loading,
7741
6209
  loadingError: !!(userError === null || userError === void 0 ? void 0 : userError.message),
7742
6210
  loading: loading,
7743
- isPartner: !!((_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher),
7744
- isUser: !!((_d = (_c = data === null || data === void 0 ? void 0 : data.user) === null || _c === void 0 ? void 0 : _c.impactConnection) === null || _d === void 0 ? void 0 : _d.user),
6211
+ isPartner: !!((_b = (_a = data$1 === null || data$1 === void 0 ? void 0 : data$1.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher),
6212
+ isUser: !!((_d = (_c = data$1 === null || data$1 === void 0 ? void 0 : data$1.user) === null || _c === void 0 ? void 0 : _c.impactConnection) === null || _d === void 0 ? void 0 : _d.user),
7745
6213
  formState: {
7746
6214
  ...userFormContext,
7747
6215
  errors: formErrors,
@@ -7904,7 +6372,7 @@ const TaxForm = class {
7904
6372
  * @uiName Support link text
7905
6373
  */
7906
6374
  this.supportLink = "support team";
7907
- stencilHooks_module.h$1(this);
6375
+ domContextHooks_module.h$1(this);
7908
6376
  }
7909
6377
  disconnectedCallback() { }
7910
6378
  getTextProps() {
@@ -7924,19 +6392,20 @@ const TaxForm = class {
7924
6392
  }
7925
6393
  render() {
7926
6394
  const props = index_module.isDemo() ? useDemoUserInfoForm(this) : useUserInfoForm(this);
7927
- return (index.h(index.Host, null, index.h(UserInfoFormView, { data: props.data,
6395
+ return (index.h(UserInfoFormView, { data: props.data,
7928
6396
  // @ts-ignore
7929
6397
  states: props.states, callbacks: {
7930
6398
  ...props.callbacks,
7931
6399
  onSubmit: props.onSubmit,
7932
- }, text: props.text, refs: props.refs })));
6400
+ }, text: props.text, refs: props.refs }));
7933
6401
  }
7934
6402
  };
7935
6403
  function useDemoUserInfoForm(props) {
7936
- const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
6404
+ const setStep = index_module.En(data.TAX_CONTEXT_NAMESPACE);
6405
+ // @ts-ignore
7937
6406
  return cjs.cjs({
7938
6407
  setStep,
7939
- onSubmit: () => {
6408
+ onSubmit: async () => {
7940
6409
  setStep("/2");
7941
6410
  },
7942
6411
  onRadioClick: () => { },
@@ -7980,19 +6449,12 @@ function useDemoUserInfoForm(props) {
7980
6449
  }
7981
6450
 
7982
6451
  exports.sqm_banking_info_form = BankingInfoForm;
7983
- exports.sqm_code_verification = WidgetCodeVerification;
7984
6452
  exports.sqm_docusign_form = DocusignForm;
7985
6453
  exports.sqm_indirect_tax_form = IndirectTaxForm;
7986
6454
  exports.sqm_invoice_table = InvoiceTable;
7987
- exports.sqm_invoice_table_data_cell = InvoiceTableDataCell;
7988
6455
  exports.sqm_invoice_table_data_column = InvoiceTableDataColumn;
7989
- exports.sqm_invoice_table_date_cell = RewardTableDateCell;
7990
6456
  exports.sqm_invoice_table_date_column = InvoiceTableDateColumn;
7991
- exports.sqm_invoice_table_download_cell = InvoiceTableDownloadCell;
7992
6457
  exports.sqm_invoice_table_download_column = InvoiceTableGenericColumn;
7993
6458
  exports.sqm_payout_details_card = PayoutDetailsCard;
7994
- exports.sqm_table_cell = TableCell;
7995
- exports.sqm_table_row = TableRow;
7996
- exports.sqm_tax_and_cash = TaxAndCashMonolith;
7997
6459
  exports.sqm_tax_and_cash_dashboard = TaxAndCashDashboard;
7998
6460
  exports.sqm_user_info_form = TaxForm;