@saasquatch/mint-components 1.15.0-99 → 1.15.1-0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1016) hide show
  1. package/dist/cjs/ErrorView-b2fcf954.js +35 -0
  2. package/dist/cjs/{GenericTableView-a9845e80.js → GenericTableView-a9f4ba75.js} +8 -8
  3. package/dist/cjs/{ShadowViewAddon-c06b2910.js → ShadowViewAddon-28865623.js} +1531 -1495
  4. package/dist/cjs/copy-text-view-c85acaaa.js +96 -0
  5. package/dist/cjs/{email-registration-view-ace50780.js → email-registration-view-55b378dc.js} +3 -5
  6. package/dist/cjs/{global-4cd8623e.js → global-e31dc4f5.js} +10494 -10772
  7. package/dist/cjs/{index-a43a63b4.js → index-a29c60ef.js} +0 -4
  8. package/dist/cjs/{index.module-4f54e412.js → index.module-ee84433d.js} +191 -191
  9. package/dist/cjs/loader.cjs.js +5 -5
  10. package/dist/cjs/{luxon-949beaf2.js → luxon-2926d85f.js} +2 -2
  11. package/dist/cjs/mint-components.cjs.js +5 -5
  12. package/dist/cjs/{mixins-4761d472.js → mixins-f7e0377a.js} +6 -6
  13. package/dist/cjs/{mockRewardData-df37c8a3.js → mockRewardData-7815f10f.js} +1 -1
  14. package/dist/cjs/raisins-plop-target.cjs.entry.js +1 -1
  15. package/dist/cjs/{re-render-d516138a.js → re-render-b324deab.js} +4 -4
  16. package/dist/cjs/sqm-asset-card-view-21ddf04f.js +51 -0
  17. package/dist/cjs/sqm-asset-card.cjs.entry.js +45 -0
  18. package/dist/cjs/{sqm-banking-info-form_10.cjs.entry.js → sqm-banking-info-form_17.cjs.entry.js} +2619 -729
  19. package/dist/cjs/{sqm-base-registration-form-view-8847804c.js → sqm-base-registration-form-view-8a2c8763.js} +3 -3
  20. package/dist/cjs/sqm-big-stat_43.cjs.entry.js +834 -1274
  21. package/dist/cjs/{sqm-close-button-view-5e85ac51.js → sqm-close-button-view-ea3fa23b.js} +2 -2
  22. package/dist/cjs/sqm-close-button.cjs.entry.js +6 -6
  23. package/dist/cjs/sqm-context-router.cjs.entry.js +11 -11
  24. package/dist/cjs/sqm-email-verification.cjs.entry.js +28 -152
  25. package/dist/cjs/sqm-empty_4.cjs.entry.js +63 -58
  26. package/dist/cjs/sqm-form-message.cjs.entry.js +8 -8
  27. package/dist/cjs/sqm-google-sign-in.cjs.entry.js +14 -14
  28. package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +6 -6
  29. package/dist/cjs/sqm-header-logo.cjs.entry.js +3 -3
  30. package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +9 -9
  31. package/dist/cjs/sqm-invoice-table-view-5c74607f.js +2074 -0
  32. package/dist/cjs/sqm-lead-checkbox-field-view-34d94919.js +83 -0
  33. package/dist/cjs/sqm-lead-checkbox-field.cjs.entry.js +81 -0
  34. package/dist/cjs/sqm-lead-input-field-view-89308aab.js +51 -0
  35. package/dist/cjs/sqm-lead-input-field.cjs.entry.js +88 -0
  36. package/dist/cjs/sqm-leaderboard-rank-view-d39a55d8.js +10 -0
  37. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +7 -7
  38. package/dist/cjs/{sqm-logout-current-user-view-b61c8bdf.js → sqm-logout-current-user-view-11d57c12.js} +1 -1
  39. package/dist/cjs/sqm-logout-current-user.cjs.entry.js +6 -6
  40. package/dist/cjs/sqm-navigation-sidebar-item-view-6f35d2ee.js +45 -0
  41. package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +8 -31
  42. package/dist/cjs/{sqm-navigation-sidebar-view-de90ef03.js → sqm-navigation-sidebar-view-17111896.js} +8 -18
  43. package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +9 -25
  44. package/dist/cjs/sqm-pagination_3.cjs.entry.js +70 -97
  45. package/dist/cjs/sqm-password-field.cjs.entry.js +11 -11
  46. package/dist/cjs/sqm-popup-container.cjs.entry.js +5 -5
  47. package/dist/cjs/{sqm-portal-container-view-07e4343f.js → sqm-portal-container-view-4f15143a.js} +2 -2
  48. package/dist/cjs/{sqm-portal-email-verification-view-5a22b152.js → sqm-portal-email-verification-view-7ebb426a.js} +4 -4
  49. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +15 -15
  50. package/dist/cjs/{sqm-portal-forgot-password-view-0a8d3243.js → sqm-portal-forgot-password-view-78f19ef9.js} +16 -24
  51. package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +10 -39
  52. package/dist/cjs/sqm-portal-google-login.cjs.entry.js +9 -9
  53. package/dist/cjs/sqm-portal-google-registration-form.cjs.entry.js +13 -13
  54. package/dist/cjs/{sqm-portal-login-view-bb50304c.js → sqm-portal-login-view-761a4d8e.js} +4 -4
  55. package/dist/cjs/sqm-portal-logout.cjs.entry.js +4 -4
  56. package/dist/cjs/{sqm-portal-profile-view-4dbfeaeb.js → sqm-portal-profile-view-33164798.js} +4 -4
  57. package/dist/cjs/sqm-portal-profile.cjs.entry.js +15 -15
  58. package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +5 -5
  59. package/dist/cjs/{sqm-portal-registration-form-view-5a96c2f5.js → sqm-portal-registration-form-view-637a4bf4.js} +3 -3
  60. package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +9 -9
  61. package/dist/cjs/{sqm-portal-reset-password-view-25eb2099.js → sqm-portal-reset-password-view-fe602822.js} +3 -3
  62. package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +11 -11
  63. package/dist/cjs/{sqm-portal-verify-email-view-1c4e781f.js → sqm-portal-verify-email-view-7b678f34.js} +3 -3
  64. package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +12 -12
  65. package/dist/cjs/{sqm-qr-code-view-0c3b2f48.js → sqm-qr-code-view-15dfc0b6.js} +10 -10
  66. package/dist/cjs/sqm-qr-code.cjs.entry.js +14 -25
  67. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +49 -134
  68. package/dist/cjs/sqm-referred-registration.cjs.entry.js +178 -0
  69. package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +4 -4
  70. package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +5 -5
  71. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +40 -87
  72. package/dist/cjs/sqm-route.cjs.entry.js +1 -1
  73. package/dist/cjs/sqm-scroll.cjs.entry.js +3 -3
  74. package/dist/cjs/sqm-stencilbook.cjs.entry.js +14117 -15117
  75. package/dist/cjs/sqm-tab.cjs.entry.js +5 -5
  76. package/dist/cjs/sqm-tabs.cjs.entry.js +13 -27
  77. package/dist/cjs/sqm-text-span-view-0aa82125.js +62 -0
  78. package/dist/cjs/sqm-text-span.cjs.entry.js +7 -7
  79. package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +11 -19
  80. package/dist/cjs/sqm-widget-verification.cjs.entry.js +13 -25
  81. package/dist/cjs/{dom-context-hooks.module-7fa676ae.js → stencil-hooks.module-3a336b0f.js} +18 -18
  82. package/dist/cjs/{useChildElements-966c9041.js → useChildElements-1b35d945.js} +5 -5
  83. package/dist/cjs/{useInstantAccessRegistration-08bcb487.js → useInstantAccessRegistration-0537e28e.js} +4 -4
  84. package/dist/cjs/useLeadFormState-c83d2034.js +72 -0
  85. package/dist/cjs/{usePayoutStatus-3b34dab1.js → usePayoutStatus-d459ddde.js} +38 -14
  86. package/dist/cjs/{usePortalLogin-6aa864ef.js → usePortalLogin-63d896d1.js} +4 -4
  87. package/dist/cjs/{usePortalRegistrationForm-75b647fe.js → usePortalRegistrationForm-f25d89e7.js} +6 -6
  88. package/dist/cjs/{useReferralCodes-11cdf43b.js → useReferralCodes-82e8797b.js} +3 -3
  89. package/dist/cjs/{useReferralTable-90d4d6e9.js → useReferralTable-7c3f9600.js} +10 -10
  90. package/dist/cjs/{useRegistrationFormState-bbee6e7b.js → useRegistrationFormState-7b820f0c.js} +6 -6
  91. package/dist/cjs/{useVerificationEmail-9dd3997a.js → useVerificationEmail-95a82767.js} +6 -6
  92. package/dist/cjs/{utilities-9a0c5e91.js → utilities-78f5e169.js} +4 -4
  93. package/dist/cjs/{utils-7cbd60cc.js → utils-6847bc06.js} +0 -5
  94. package/dist/collection/collection-manifest.json +5 -1
  95. package/dist/collection/components/sqm-asset-card/AssetCard.stories.js +29 -0
  96. package/dist/collection/components/sqm-asset-card/sqm-asset-card-view.js +46 -0
  97. package/dist/collection/components/sqm-asset-card/sqm-asset-card.js +107 -0
  98. package/dist/collection/components/sqm-asset-card/useAssetCard.js +9 -0
  99. package/dist/collection/components/sqm-big-stat/BigStat.stories.js +0 -13
  100. package/dist/collection/components/sqm-big-stat/sqm-big-stat-view.js +8 -15
  101. package/dist/collection/components/sqm-big-stat/sqm-big-stat.js +4 -171
  102. package/dist/collection/components/sqm-big-stat/useBigStat.js +8 -127
  103. package/dist/collection/components/sqm-big-stat/useDemoBigStat.js +5 -14
  104. package/dist/collection/components/sqm-brand/sqm-brand.js +4 -12
  105. package/dist/collection/components/sqm-card-feed/sqm-card-feed.js +0 -2
  106. package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field-view.js +11 -4
  107. package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +0 -1
  108. package/dist/collection/components/sqm-coupon-code/CouponCode.stories.js +0 -4
  109. package/dist/collection/components/sqm-coupon-code/sqm-coupon-code-view.js +13 -13
  110. package/dist/collection/components/sqm-coupon-code/sqm-coupon-code.js +48 -145
  111. package/dist/collection/components/sqm-coupon-code/useCouponCode.js +65 -3
  112. package/dist/collection/components/sqm-divided-layout/sqm-divided-layout-view.js +6 -14
  113. package/dist/collection/components/sqm-divided-layout/sqm-divided-layout.js +3 -62
  114. package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field-view.js +1 -1
  115. package/dist/collection/components/sqm-edit-profile/sqm-edit-profile-view.js +1 -1
  116. package/dist/collection/components/sqm-empty/sqm-empty-view.js +1 -1
  117. package/dist/collection/components/sqm-form-message/FormMessage.stories.js +16 -8
  118. package/dist/collection/components/sqm-form-message/sqm-form-message.css +11 -50
  119. package/dist/collection/components/sqm-form-message/sqm-form-message.js +4 -4
  120. package/dist/collection/components/sqm-header-logo/sqm-header-logo.js +0 -1
  121. package/dist/collection/components/sqm-hero/Hero.stories.js +0 -11
  122. package/dist/collection/components/sqm-hero/sqm-hero-view.js +6 -13
  123. package/dist/collection/components/sqm-hero/sqm-hero.js +4 -30
  124. package/dist/collection/components/sqm-hero-image/sqm-hero-image-view.js +4 -4
  125. package/dist/collection/components/sqm-hero-image/sqm-hero-image.js +0 -80
  126. package/dist/collection/components/sqm-image/sqm-image.js +0 -1
  127. package/dist/collection/components/sqm-instant-access-registration/sqm-instant-access-registration.js +3 -4
  128. package/dist/collection/components/sqm-invoice-table/cells/sqm-invoice-table-download-cell.js +2 -2
  129. package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-data-column.js +1 -2
  130. package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-date-column.js +1 -2
  131. package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-download-column.js +1 -2
  132. package/dist/collection/components/sqm-invoice-table/sqm-invoice-table-view.js +1 -1
  133. package/dist/collection/components/sqm-invoice-table/sqm-invoice-table.js +3 -6
  134. package/dist/collection/components/sqm-lead-form/LeadCheckboxField.stories.js +44 -0
  135. package/dist/collection/components/sqm-lead-form/LeadForm.stories.js +93 -0
  136. package/dist/collection/components/sqm-lead-form/LeadFormDropdownField.stories.js +62 -0
  137. package/dist/collection/components/sqm-lead-form/LeadInputField.stories.js +49 -0
  138. package/dist/collection/components/sqm-lead-form/sqm-lead-checkbox-field-view.js +79 -0
  139. package/dist/collection/components/sqm-lead-form/sqm-lead-checkbox-field.js +234 -0
  140. package/dist/collection/components/sqm-lead-form/sqm-lead-dropdown-field-view.js +65 -0
  141. package/dist/collection/components/sqm-lead-form/sqm-lead-dropdown-field.js +251 -0
  142. package/dist/collection/components/sqm-lead-form/sqm-lead-form-view.js +123 -0
  143. package/dist/collection/components/sqm-lead-form/sqm-lead-form.js +495 -0
  144. package/dist/collection/components/sqm-lead-form/sqm-lead-input-field-view.js +47 -0
  145. package/dist/collection/components/sqm-lead-form/sqm-lead-input-field.js +251 -0
  146. package/dist/collection/components/sqm-lead-form/useCheckboxField.js +10 -0
  147. package/dist/collection/components/sqm-lead-form/useLeadDropdownField.js +10 -0
  148. package/dist/collection/components/sqm-lead-form/useLeadForm.js +155 -0
  149. package/dist/collection/components/sqm-lead-form/useLeadFormState.js +10 -0
  150. package/dist/collection/components/sqm-lead-form/useLeadInputField.js +10 -0
  151. package/dist/collection/components/sqm-leaderboard/Leaderboard.stories.js +0 -37
  152. package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +54 -60
  153. package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +36 -202
  154. package/dist/collection/components/sqm-leaderboard-rank/sqm-leaderboard-rank-view.js +2 -2
  155. package/dist/collection/components/sqm-leaderboard-rank/sqm-leaderboard-rank.css +2 -2
  156. package/dist/collection/components/sqm-link-button/sqm-link-button.js +0 -1
  157. package/dist/collection/components/sqm-logout-current-user/sqm-logout-current-user.js +1 -2
  158. package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +3 -28
  159. package/dist/collection/components/sqm-name-fields/sqm-name-fields.js +1 -2
  160. package/dist/collection/components/sqm-navigation-menu/sqm-navigation-menu.js +0 -1
  161. package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar-view.js +7 -17
  162. package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar.js +5 -85
  163. package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view.js +7 -18
  164. package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.js +1 -233
  165. package/dist/collection/components/sqm-navigation-sidebar-item/useNavigationSidebarItem.js +1 -9
  166. package/dist/collection/components/sqm-pagination/sqm-pagination-view.js +3 -3
  167. package/dist/collection/components/sqm-pagination/sqm-pagination.js +2 -43
  168. package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll-view.js +1 -1
  169. package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password-view.js +4 -8
  170. package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password.js +1 -2
  171. package/dist/collection/components/sqm-portal-container/sqm-portal-container-view.js +1 -1
  172. package/dist/collection/components/sqm-portal-container/sqm-portal-container.js +8 -1
  173. package/dist/collection/components/sqm-portal-footer/sqm-portal-footer-view.js +6 -6
  174. package/dist/collection/components/sqm-portal-footer/sqm-portal-footer.js +0 -1
  175. package/dist/collection/components/sqm-portal-forgot-password/PortalForgotPassword.stories.js +4 -4
  176. package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.js +13 -21
  177. package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password.js +3 -103
  178. package/dist/collection/components/sqm-portal-frame/sqm-portal-frame-view.js +36 -41
  179. package/dist/collection/components/sqm-portal-frame/sqm-portal-frame.js +2 -102
  180. package/dist/collection/components/sqm-portal-frame/usePortalFrame.js +1 -4
  181. package/dist/collection/components/sqm-portal-login/PortalLogin.stories.js +5 -10
  182. package/dist/collection/components/sqm-portal-login/sqm-portal-login-view.js +1 -1
  183. package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +1 -2
  184. package/dist/collection/components/sqm-portal-logout/sqm-portal-logout.js +0 -1
  185. package/dist/collection/components/sqm-portal-profile/sqm-portal-profile-view.js +1 -1
  186. package/dist/collection/components/sqm-portal-profile/sqm-portal-profile.js +0 -1
  187. package/dist/collection/components/sqm-portal-protected-route/sqm-portal-protected-route.js +0 -1
  188. package/dist/collection/components/sqm-portal-register/sqm-portal-register.js +3 -1
  189. package/dist/collection/components/sqm-portal-registration-form/PortalRegistrationForm.stories.js +0 -1
  190. package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form.js +1 -0
  191. package/dist/collection/components/sqm-program-explainer/sqm-program-explainer-view.js +1 -1
  192. package/dist/collection/components/sqm-program-explainer/sqm-program-explainer.js +0 -2
  193. package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step-view.js +4 -12
  194. package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step.js +2 -77
  195. package/dist/collection/components/sqm-program-menu/sqm-program-menu.js +0 -1
  196. package/dist/collection/components/sqm-qr-code/sqm-qr-code-view.js +7 -2
  197. package/dist/collection/components/sqm-qr-code/sqm-qr-code.js +0 -1
  198. package/dist/collection/components/sqm-qr-code/useQRCode.js +1 -13
  199. package/dist/collection/components/sqm-radio-card/sqm-radio-card-view.js +2 -2
  200. package/dist/collection/components/sqm-referral-card/sqm-referral-card-view.js +31 -34
  201. package/dist/collection/components/sqm-referral-card/sqm-referral-card.js +10 -81
  202. package/dist/collection/components/sqm-referral-code/ReferralCode.stories.js +0 -3
  203. package/dist/collection/components/sqm-referral-code/sqm-referral-code.js +1 -170
  204. package/dist/collection/components/sqm-referral-codes/ReferralCodes.stories.js +0 -6
  205. package/dist/collection/components/sqm-referral-codes/sqm-referral-codes-view.js +46 -46
  206. package/dist/collection/components/sqm-referral-codes/sqm-referral-codes.js +1 -29
  207. package/dist/collection/components/sqm-referral-table/ReferralTable.stories.js +2 -2
  208. package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +22 -55
  209. package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-status-cell.js +7 -62
  210. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-column.js +1 -2
  211. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-date-column.js +2 -4
  212. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.js +6 -9
  213. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-status-column.js +3 -6
  214. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-user-column.js +2 -4
  215. package/dist/collection/components/sqm-referral-table/sqm-referral-table.js +2 -5
  216. package/dist/collection/components/sqm-referred-registration/sqm-referred-registration.js +10 -3
  217. package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeList.stories.js +19 -19
  218. package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeListData.js +5 -31
  219. package/dist/collection/components/sqm-reward-exchange-list/progressBar.js +10 -10
  220. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +42 -39
  221. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +7 -50
  222. package/dist/collection/components/sqm-rewards-table/RewardsTableCell.stories.js +1 -1
  223. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.js +5 -6
  224. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.js +4 -5
  225. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.js +9 -58
  226. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.js +2 -3
  227. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.js +2 -3
  228. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.js +2 -3
  229. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.js +2 -3
  230. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.js +9 -11
  231. package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +3 -5
  232. package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +1 -1
  233. package/dist/collection/components/sqm-route/sqm-route.js +0 -1
  234. package/dist/collection/components/sqm-router/sqm-router.js +0 -2
  235. package/dist/collection/components/sqm-scroll/sqm-scroll.js +0 -1
  236. package/dist/collection/components/sqm-share-button/ShareButton.stories.js +1 -3
  237. package/dist/collection/components/sqm-share-button/sqm-share-button-view.js +22 -23
  238. package/dist/collection/components/sqm-share-button/sqm-share-button.js +10 -57
  239. package/dist/collection/components/sqm-share-code/sqm-share-code.js +1 -170
  240. package/dist/collection/components/sqm-share-link/ShareLink.stories.js +1 -13
  241. package/dist/collection/components/sqm-share-link/sqm-share-link.js +3 -172
  242. package/dist/collection/components/sqm-stat-container/sqm-stat-container-view.js +9 -21
  243. package/dist/collection/components/sqm-stat-container/sqm-stat-container.js +2 -112
  244. package/dist/collection/components/sqm-stencilbook/Themes.js +33 -325
  245. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +107 -81
  246. package/dist/collection/components/sqm-table-row/sqm-table-row.js +2 -2
  247. package/dist/collection/components/sqm-tabs/Tabs.stories.js +0 -7
  248. package/dist/collection/components/sqm-tabs/sqm-tabs-view.js +2 -16
  249. package/dist/collection/components/sqm-tabs/sqm-tabs.js +2 -30
  250. package/dist/collection/components/sqm-task-card/DetailsView.js +2 -8
  251. package/dist/collection/components/sqm-task-card/progress-bar/progress-bar-view.js +2 -3
  252. package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +157 -139
  253. package/dist/collection/components/sqm-task-card/sqm-task-card.js +4 -147
  254. package/dist/collection/components/sqm-task-card/useTaskCard.js +0 -10
  255. package/dist/collection/components/sqm-text/sqm-text.js +48 -101
  256. package/dist/collection/components/sqm-text-span/sqm-text-span-view.js +43 -44
  257. package/dist/collection/components/sqm-text-span/sqm-text-span.js +2 -52
  258. package/dist/collection/components/sqm-timeline/Timeline.stories.js +1 -8
  259. package/dist/collection/components/sqm-timeline/sqm-timeline-entry-view.js +45 -45
  260. package/dist/collection/components/sqm-timeline/sqm-timeline-entry.js +0 -52
  261. package/dist/collection/components/sqm-timeline/sqm-timeline.js +1 -3
  262. package/dist/collection/components/sqm-titled-section/sqm-titled-section.js +0 -2
  263. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +2 -12
  264. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.js +2 -2
  265. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +14 -138
  266. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-controller.js +7 -39
  267. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +8 -45
  268. package/dist/collection/components/tax-and-cash/TaxForm.stories.js +26 -13
  269. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +69 -19
  270. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +2 -2
  271. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +5 -1
  272. package/dist/collection/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.js +4 -4
  273. package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +76 -21
  274. package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +5 -5
  275. package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +2 -2
  276. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +71 -54
  277. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +2 -2
  278. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +6 -2
  279. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card-view.js +27 -24
  280. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js +1 -26
  281. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/usePayoutDetailsCard.js +2 -2
  282. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.js +1 -0
  283. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +100 -19
  284. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +154 -5
  285. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +33 -9
  286. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/ErrorView.js +27 -3
  287. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +281 -63
  288. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +8 -3
  289. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +159 -109
  290. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +213 -110
  291. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +25 -12
  292. package/dist/collection/components/tax-and-cash/sqm-user-info-form/small-views/DocusignExpiredView.js +1 -1
  293. package/dist/collection/components/tax-and-cash/sqm-user-info-form/small-views/IndirectTaxDetailsView.js +2 -2
  294. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +54 -167
  295. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +10 -10
  296. package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +7 -3
  297. package/dist/collection/components/views/copy-text-view.js +38 -69
  298. package/dist/collection/components/views/email-registration-view.js +1 -3
  299. package/dist/collection/global/global.js +12 -27
  300. package/dist/collection/global/mixins.js +8 -8
  301. package/dist/collection/global/styles.js +99 -330
  302. package/dist/collection/global/styles.ts +100 -419
  303. package/dist/collection/stories/PortalTemplates.stories.js +30 -22
  304. package/dist/collection/tables/GenericTableView.js +6 -6
  305. package/dist/collection/utils/utils.js +0 -4
  306. package/dist/esm/ErrorView-48e2b969.js +33 -0
  307. package/dist/esm/{GenericTableView-e43d310f.js → GenericTableView-7b9087af.js} +8 -8
  308. package/dist/esm/{ShadowViewAddon-cf7c03a0.js → ShadowViewAddon-f2176779.js} +1525 -1492
  309. package/dist/esm/copy-text-view-782137ba.js +94 -0
  310. package/dist/esm/{email-registration-view-1f587f8b.js → email-registration-view-a7818cf2.js} +3 -5
  311. package/dist/esm/{global-f97ae778.js → global-be1f9992.js} +8276 -8553
  312. package/dist/esm/{index-b3a06de8.js → index-91e7729f.js} +0 -4
  313. package/dist/esm/{index.module-38dad6c9.js → index.module-89a79f66.js} +153 -153
  314. package/dist/esm/loader.js +5 -5
  315. package/dist/esm/{luxon-bbf75a9d.js → luxon-8d51c92b.js} +1 -1
  316. package/dist/esm/mint-components.js +5 -5
  317. package/dist/esm/{mixins-f750863a.js → mixins-83f90fa1.js} +6 -6
  318. package/dist/esm/{mockRewardData-96a2d26d.js → mockRewardData-a3cdb832.js} +1 -1
  319. package/dist/esm/raisins-plop-target.entry.js +1 -1
  320. package/dist/esm/{re-render-9c90767d.js → re-render-cc945f38.js} +2 -2
  321. package/dist/esm/sqm-asset-card-view-fe5db3c0.js +49 -0
  322. package/dist/esm/sqm-asset-card.entry.js +41 -0
  323. package/dist/esm/{sqm-banking-info-form_10.entry.js → sqm-banking-info-form_17.entry.js} +2459 -576
  324. package/dist/esm/{sqm-base-registration-form-view-193f1721.js → sqm-base-registration-form-view-593d4ac3.js} +3 -3
  325. package/dist/esm/sqm-big-stat_43.entry.js +742 -1182
  326. package/dist/esm/{sqm-close-button-view-2fa57229.js → sqm-close-button-view-f9819751.js} +2 -2
  327. package/dist/esm/sqm-close-button.entry.js +5 -5
  328. package/dist/esm/sqm-context-router.entry.js +4 -4
  329. package/dist/esm/sqm-email-verification.entry.js +21 -145
  330. package/dist/esm/sqm-empty_4.entry.js +60 -55
  331. package/dist/esm/sqm-form-message.entry.js +7 -7
  332. package/dist/esm/sqm-google-sign-in.entry.js +3 -3
  333. package/dist/esm/sqm-graphql-client-provider.entry.js +3 -3
  334. package/dist/esm/sqm-header-logo.entry.js +2 -2
  335. package/dist/esm/sqm-instant-access-registration.entry.js +8 -8
  336. package/dist/esm/sqm-invoice-table-view-3491dd80.js +2058 -0
  337. package/dist/esm/sqm-lead-checkbox-field-view-a8c1c78e.js +81 -0
  338. package/dist/esm/sqm-lead-checkbox-field.entry.js +77 -0
  339. package/dist/esm/sqm-lead-input-field-view-4ede5d7f.js +49 -0
  340. package/dist/esm/sqm-lead-input-field.entry.js +84 -0
  341. package/dist/esm/sqm-leaderboard-rank-view-753c8d4a.js +8 -0
  342. package/dist/esm/sqm-leaderboard-rank.entry.js +6 -6
  343. package/dist/esm/{sqm-logout-current-user-view-f21e54e3.js → sqm-logout-current-user-view-8ef8180f.js} +1 -1
  344. package/dist/esm/sqm-logout-current-user.entry.js +5 -5
  345. package/dist/esm/sqm-navigation-sidebar-item-view-8f1c72bc.js +43 -0
  346. package/dist/esm/sqm-navigation-sidebar-item.entry.js +7 -30
  347. package/dist/esm/{sqm-navigation-sidebar-view-0a2ec560.js → sqm-navigation-sidebar-view-9d802b78.js} +8 -18
  348. package/dist/esm/sqm-navigation-sidebar.entry.js +6 -22
  349. package/dist/esm/sqm-pagination_3.entry.js +64 -91
  350. package/dist/esm/sqm-password-field.entry.js +6 -6
  351. package/dist/esm/sqm-popup-container.entry.js +4 -4
  352. package/dist/esm/{sqm-portal-container-view-176e92e3.js → sqm-portal-container-view-1683ae32.js} +2 -2
  353. package/dist/esm/{sqm-portal-email-verification-view-98fc3374.js → sqm-portal-email-verification-view-35b4353b.js} +4 -4
  354. package/dist/esm/sqm-portal-email-verification.entry.js +7 -7
  355. package/dist/esm/{sqm-portal-forgot-password-view-0e795cdd.js → sqm-portal-forgot-password-view-3d3182f1.js} +16 -24
  356. package/dist/esm/sqm-portal-forgot-password.entry.js +7 -36
  357. package/dist/esm/sqm-portal-google-login.entry.js +8 -8
  358. package/dist/esm/sqm-portal-google-registration-form.entry.js +9 -9
  359. package/dist/esm/{sqm-portal-login-view-7670cd86.js → sqm-portal-login-view-7e49609a.js} +4 -4
  360. package/dist/esm/sqm-portal-logout.entry.js +3 -3
  361. package/dist/esm/{sqm-portal-profile-view-25b3250a.js → sqm-portal-profile-view-93003974.js} +4 -4
  362. package/dist/esm/sqm-portal-profile.entry.js +8 -8
  363. package/dist/esm/sqm-portal-protected-route.entry.js +3 -3
  364. package/dist/esm/{sqm-portal-registration-form-view-8bdc3804.js → sqm-portal-registration-form-view-3c1f6000.js} +3 -3
  365. package/dist/esm/sqm-portal-registration-form.entry.js +8 -8
  366. package/dist/esm/{sqm-portal-reset-password-view-abef7286.js → sqm-portal-reset-password-view-54a8651f.js} +3 -3
  367. package/dist/esm/sqm-portal-reset-password.entry.js +7 -7
  368. package/dist/esm/{sqm-portal-verify-email-view-33805220.js → sqm-portal-verify-email-view-b12cb894.js} +3 -3
  369. package/dist/esm/sqm-portal-verify-email.entry.js +7 -7
  370. package/dist/esm/{sqm-qr-code-view-97124a66.js → sqm-qr-code-view-f1d0763b.js} +9 -9
  371. package/dist/esm/sqm-qr-code.entry.js +8 -19
  372. package/dist/esm/sqm-referral-table_11.entry.js +38 -123
  373. package/dist/esm/sqm-referred-registration.entry.js +174 -0
  374. package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +3 -3
  375. package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +4 -4
  376. package/dist/esm/sqm-rewards-table_9.entry.js +28 -75
  377. package/dist/esm/sqm-route.entry.js +1 -1
  378. package/dist/esm/sqm-scroll.entry.js +2 -2
  379. package/dist/esm/sqm-stencilbook.entry.js +14111 -15111
  380. package/dist/esm/sqm-tab.entry.js +4 -4
  381. package/dist/esm/sqm-tabs.entry.js +10 -24
  382. package/dist/esm/sqm-text-span-view-ca32495e.js +60 -0
  383. package/dist/esm/sqm-text-span.entry.js +6 -6
  384. package/dist/esm/sqm-widget-verification-controller.entry.js +6 -14
  385. package/dist/esm/sqm-widget-verification.entry.js +10 -22
  386. package/dist/esm/{dom-context-hooks.module-63370afd.js → stencil-hooks.module-4bc38af4.js} +13 -13
  387. package/dist/esm/{useChildElements-4e70ac0e.js → useChildElements-7945ae56.js} +2 -2
  388. package/dist/esm/{useInstantAccessRegistration-0f04459e.js → useInstantAccessRegistration-dc4ad9f2.js} +3 -3
  389. package/dist/esm/useLeadFormState-9016d812.js +68 -0
  390. package/dist/esm/{usePayoutStatus-7eeec61b.js → usePayoutStatus-4a7625b9.js} +35 -11
  391. package/dist/esm/{usePortalLogin-d0720c81.js → usePortalLogin-ef647a50.js} +3 -3
  392. package/dist/esm/{usePortalRegistrationForm-afc0171e.js → usePortalRegistrationForm-4b35a357.js} +3 -3
  393. package/dist/esm/{useReferralCodes-311e6d72.js → useReferralCodes-8f75921a.js} +2 -2
  394. package/dist/esm/{useReferralTable-65a01a6a.js → useReferralTable-b3876ed6.js} +5 -5
  395. package/dist/esm/{useRegistrationFormState-18c2cea7.js → useRegistrationFormState-d6f33135.js} +2 -2
  396. package/dist/esm/{useVerificationEmail-f9413de9.js → useVerificationEmail-edc318cb.js} +2 -2
  397. package/dist/esm/{utilities-ad9c2893.js → utilities-5b0ca040.js} +2 -2
  398. package/dist/esm/{utils-03188de2.js → utils-334c1e34.js} +1 -5
  399. package/dist/esm-es5/ErrorView-48e2b969.js +1 -0
  400. package/dist/esm-es5/GenericTableView-7b9087af.js +1 -0
  401. package/dist/esm-es5/ShadowViewAddon-f2176779.js +1 -0
  402. package/dist/esm-es5/copy-text-view-782137ba.js +1 -0
  403. package/dist/esm-es5/email-registration-view-a7818cf2.js +1 -0
  404. package/dist/esm-es5/{global-f97ae778.js → global-be1f9992.js} +5 -5
  405. package/dist/esm-es5/{index-b3a06de8.js → index-91e7729f.js} +1 -1
  406. package/dist/esm-es5/index.module-89a79f66.js +1 -0
  407. package/dist/esm-es5/loader.js +1 -1
  408. package/dist/esm-es5/luxon-8d51c92b.js +1 -0
  409. package/dist/esm-es5/mint-components.js +1 -1
  410. package/dist/esm-es5/mixins-83f90fa1.js +1 -0
  411. package/dist/esm-es5/{mockRewardData-96a2d26d.js → mockRewardData-a3cdb832.js} +1 -1
  412. package/dist/esm-es5/raisins-plop-target.entry.js +1 -1
  413. package/dist/esm-es5/re-render-cc945f38.js +1 -0
  414. package/dist/esm-es5/sqm-asset-card-view-fe5db3c0.js +1 -0
  415. package/dist/esm-es5/sqm-asset-card.entry.js +1 -0
  416. package/dist/esm-es5/sqm-banking-info-form_17.entry.js +1 -0
  417. package/dist/esm-es5/{sqm-base-registration-form-view-193f1721.js → sqm-base-registration-form-view-593d4ac3.js} +1 -1
  418. package/dist/esm-es5/sqm-big-stat_43.entry.js +1 -1
  419. package/dist/esm-es5/{sqm-close-button-view-2fa57229.js → sqm-close-button-view-f9819751.js} +1 -1
  420. package/dist/esm-es5/sqm-close-button.entry.js +1 -1
  421. package/dist/esm-es5/sqm-context-router.entry.js +1 -1
  422. package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
  423. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  424. package/dist/esm-es5/sqm-form-message.entry.js +1 -1
  425. package/dist/esm-es5/sqm-google-sign-in.entry.js +1 -1
  426. package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
  427. package/dist/esm-es5/sqm-header-logo.entry.js +1 -1
  428. package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
  429. package/dist/esm-es5/sqm-invoice-table-view-3491dd80.js +1 -0
  430. package/dist/esm-es5/sqm-lead-checkbox-field-view-a8c1c78e.js +1 -0
  431. package/dist/esm-es5/sqm-lead-checkbox-field.entry.js +1 -0
  432. package/dist/esm-es5/sqm-lead-input-field-view-4ede5d7f.js +1 -0
  433. package/dist/esm-es5/sqm-lead-input-field.entry.js +1 -0
  434. package/dist/esm-es5/sqm-leaderboard-rank-view-753c8d4a.js +1 -0
  435. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  436. package/dist/esm-es5/{sqm-logout-current-user-view-f21e54e3.js → sqm-logout-current-user-view-8ef8180f.js} +1 -1
  437. package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
  438. package/dist/esm-es5/sqm-navigation-sidebar-item-view-8f1c72bc.js +1 -0
  439. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  440. package/dist/esm-es5/sqm-navigation-sidebar-view-9d802b78.js +1 -0
  441. package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
  442. package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
  443. package/dist/esm-es5/sqm-password-field.entry.js +1 -1
  444. package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
  445. package/dist/esm-es5/{sqm-portal-container-view-176e92e3.js → sqm-portal-container-view-1683ae32.js} +1 -1
  446. package/dist/esm-es5/{sqm-portal-email-verification-view-98fc3374.js → sqm-portal-email-verification-view-35b4353b.js} +1 -1
  447. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  448. package/dist/esm-es5/sqm-portal-forgot-password-view-3d3182f1.js +1 -0
  449. package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
  450. package/dist/esm-es5/sqm-portal-google-login.entry.js +1 -1
  451. package/dist/esm-es5/sqm-portal-google-registration-form.entry.js +1 -1
  452. package/dist/esm-es5/sqm-portal-login-view-7e49609a.js +1 -0
  453. package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
  454. package/dist/esm-es5/{sqm-portal-profile-view-25b3250a.js → sqm-portal-profile-view-93003974.js} +1 -1
  455. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  456. package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
  457. package/dist/esm-es5/{sqm-portal-registration-form-view-8bdc3804.js → sqm-portal-registration-form-view-3c1f6000.js} +1 -1
  458. package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
  459. package/dist/esm-es5/{sqm-portal-reset-password-view-abef7286.js → sqm-portal-reset-password-view-54a8651f.js} +1 -1
  460. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  461. package/dist/esm-es5/{sqm-portal-verify-email-view-33805220.js → sqm-portal-verify-email-view-b12cb894.js} +1 -1
  462. package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
  463. package/dist/esm-es5/sqm-qr-code-view-f1d0763b.js +1 -0
  464. package/dist/esm-es5/sqm-qr-code.entry.js +1 -1
  465. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  466. package/dist/esm-es5/sqm-referred-registration.entry.js +1 -0
  467. package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -1
  468. package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
  469. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  470. package/dist/esm-es5/sqm-route.entry.js +1 -1
  471. package/dist/esm-es5/sqm-scroll.entry.js +1 -1
  472. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  473. package/dist/esm-es5/sqm-tab.entry.js +1 -1
  474. package/dist/esm-es5/sqm-tabs.entry.js +1 -1
  475. package/dist/esm-es5/sqm-text-span-view-ca32495e.js +1 -0
  476. package/dist/esm-es5/sqm-text-span.entry.js +1 -1
  477. package/dist/esm-es5/sqm-widget-verification-controller.entry.js +1 -1
  478. package/dist/esm-es5/sqm-widget-verification.entry.js +1 -1
  479. package/dist/esm-es5/stencil-hooks.module-4bc38af4.js +53 -0
  480. package/dist/esm-es5/useChildElements-7945ae56.js +1 -0
  481. package/dist/esm-es5/useInstantAccessRegistration-dc4ad9f2.js +1 -0
  482. package/dist/esm-es5/useLeadFormState-9016d812.js +1 -0
  483. package/dist/esm-es5/usePayoutStatus-4a7625b9.js +6 -0
  484. package/dist/esm-es5/usePortalLogin-ef647a50.js +1 -0
  485. package/dist/esm-es5/usePortalRegistrationForm-4b35a357.js +1 -0
  486. package/dist/esm-es5/useReferralCodes-8f75921a.js +1 -0
  487. package/dist/esm-es5/useReferralTable-b3876ed6.js +1 -0
  488. package/dist/esm-es5/useRegistrationFormState-d6f33135.js +1 -0
  489. package/dist/esm-es5/useVerificationEmail-edc318cb.js +1 -0
  490. package/dist/esm-es5/utilities-5b0ca040.js +1 -0
  491. package/dist/esm-es5/utils-334c1e34.js +1 -0
  492. package/dist/mint-components/global/styles.ts +100 -419
  493. package/dist/mint-components/mint-components.esm.js +1 -1
  494. package/dist/mint-components/mint-components.js +1 -1
  495. package/dist/mint-components/p-00df0cac.js +1 -0
  496. package/dist/mint-components/p-00ed4c2e.entry.js +1 -0
  497. package/dist/mint-components/p-01dd541f.system.js +1 -0
  498. package/dist/mint-components/p-0309fdfa.entry.js +1 -0
  499. package/dist/mint-components/p-04a6e457.entry.js +1 -0
  500. package/dist/mint-components/{p-f307b716.js → p-05f29f64.js} +1 -1
  501. package/dist/mint-components/p-0b4cac9f.system.entry.js +1 -0
  502. package/dist/mint-components/{p-bb12b845.system.js → p-0d182dc1.system.js} +1 -1
  503. package/dist/mint-components/{p-8dc1cd0f.entry.js → p-0d2d0b6d.entry.js} +1 -1
  504. package/dist/mint-components/p-0d939b73.system.js +1 -0
  505. package/dist/mint-components/p-0ebab63e.system.js +1 -0
  506. package/dist/mint-components/{p-e0f9a395.entry.js → p-10d17989.entry.js} +1 -1
  507. package/dist/mint-components/{p-a6f4fb03.system.js → p-127e66c2.system.js} +1 -1
  508. package/dist/mint-components/p-12bba567.entry.js +1 -0
  509. package/dist/mint-components/{p-3dc34570.system.js → p-13ed8586.system.js} +1 -1
  510. package/dist/mint-components/p-141bf5c1.system.entry.js +1 -0
  511. package/dist/mint-components/p-14a65f29.system.js +1 -0
  512. package/dist/mint-components/p-1513309d.entry.js +1 -0
  513. package/dist/mint-components/{p-0cba75e6.system.entry.js → p-164a9103.system.entry.js} +1 -1
  514. package/dist/mint-components/{p-910f56ca.system.entry.js → p-18425f38.system.entry.js} +1 -1
  515. package/dist/mint-components/{p-fb2976fc.system.entry.js → p-19bc3406.system.entry.js} +1 -1
  516. package/dist/mint-components/p-19ccb4ce.js +1 -0
  517. package/dist/mint-components/{p-b9bccc55.entry.js → p-1a6b7d2a.entry.js} +1 -1
  518. package/dist/mint-components/p-1b3ab15a.system.entry.js +1 -0
  519. package/dist/mint-components/p-1d704c40.system.js +1 -0
  520. package/dist/mint-components/p-1fa9ed0d.system.entry.js +1 -0
  521. package/dist/mint-components/p-21620f81.system.entry.js +1 -0
  522. package/dist/mint-components/p-229f797b.js +1 -0
  523. package/dist/mint-components/p-24db5c70.js +1 -0
  524. package/dist/mint-components/p-25ae959c.system.entry.js +1 -0
  525. package/dist/mint-components/{p-00791abc.js → p-266a8b4d.js} +1 -1
  526. package/dist/mint-components/p-267c8f8c.entry.js +144 -0
  527. package/dist/mint-components/p-275b4767.entry.js +1 -0
  528. package/dist/mint-components/{p-0b0f49ad.entry.js → p-284e4ed5.entry.js} +1 -1
  529. package/dist/mint-components/{p-711bc624.entry.js → p-2ae0e06a.entry.js} +1 -1
  530. package/dist/mint-components/p-2bbff88f.entry.js +1 -0
  531. package/dist/mint-components/{p-91014439.system.js → p-2d52e2d7.system.js} +1 -1
  532. package/dist/mint-components/p-2da21ba4.entry.js +1 -0
  533. package/dist/mint-components/p-2dca9e1a.system.js +1 -0
  534. package/dist/mint-components/{p-d5f1df29.entry.js → p-2f101bae.entry.js} +1 -1
  535. package/dist/mint-components/{p-485e2d9f.system.entry.js → p-301ddcaa.system.entry.js} +1 -1
  536. package/dist/mint-components/p-31015791.js +1 -0
  537. package/dist/mint-components/p-33c96e14.entry.js +16 -0
  538. package/dist/mint-components/{p-a45680fe.js → p-35b475bf.js} +1 -1
  539. package/dist/mint-components/{p-0d22c0e5.system.entry.js → p-36ffebd8.system.entry.js} +1 -1
  540. package/dist/mint-components/p-37996351.system.js +1 -0
  541. package/dist/mint-components/p-37a4452c.system.entry.js +1 -0
  542. package/dist/mint-components/p-380bfde1.entry.js +1 -0
  543. package/dist/mint-components/p-38e5c429.system.js +1 -0
  544. package/dist/mint-components/p-38fc919b.entry.js +1 -0
  545. package/dist/mint-components/p-3a62a7e2.system.js +1 -0
  546. package/dist/mint-components/{p-0e59a91e.js → p-3b2f1211.js} +8 -2
  547. package/dist/mint-components/p-3b90e01b.system.js +1 -0
  548. package/dist/mint-components/p-3db34d68.js +1 -0
  549. package/dist/mint-components/p-3f6e0197.system.entry.js +1 -0
  550. package/dist/mint-components/{p-862845d7.js → p-3f7b81b8.js} +2 -2
  551. package/dist/mint-components/p-420554af.system.entry.js +1 -0
  552. package/dist/mint-components/p-42187319.system.entry.js +1 -0
  553. package/dist/mint-components/p-4428294b.entry.js +1 -0
  554. package/dist/mint-components/{p-c3884e55.entry.js → p-44891949.entry.js} +1 -1
  555. package/dist/mint-components/p-457fb652.entry.js +211 -0
  556. package/dist/mint-components/p-4794641c.system.js +1 -0
  557. package/dist/mint-components/p-48135f99.system.js +53 -0
  558. package/dist/mint-components/p-48c69c2d.entry.js +1 -0
  559. package/dist/mint-components/p-492b70db.system.js +1 -0
  560. package/dist/mint-components/p-49932f12.system.js +1 -0
  561. package/dist/mint-components/{p-4204a6e3.entry.js → p-4b6dc0e5.entry.js} +1 -1
  562. package/dist/mint-components/{p-fb5be0c5.js → p-4e451f75.js} +1 -1
  563. package/dist/mint-components/{p-5ed49bf2.js → p-4e526a94.js} +1 -1
  564. package/dist/mint-components/p-4e5af50c.js +1 -0
  565. package/dist/mint-components/{p-3d05ebb1.system.entry.js → p-50c902ca.system.entry.js} +1 -1
  566. package/dist/mint-components/{p-82505f6e.system.js → p-527216de.system.js} +1 -1
  567. package/dist/mint-components/{p-9fb8b33a.system.js → p-5488fdd9.system.js} +1 -1
  568. package/dist/mint-components/p-5868dc11.entry.js +9 -0
  569. package/dist/mint-components/{p-578a27c8.system.js → p-59274a91.system.js} +1 -1
  570. package/dist/mint-components/{p-08700497.js → p-5bedb58c.js} +1 -1
  571. package/dist/mint-components/{p-ebb487d0.system.entry.js → p-5c28406d.system.entry.js} +1 -1
  572. package/dist/mint-components/p-5cb7f9fc.system.entry.js +1 -0
  573. package/dist/mint-components/p-6055eb4c.system.js +1 -0
  574. package/dist/mint-components/p-6122bf99.system.entry.js +1 -0
  575. package/dist/mint-components/p-626e9e84.js +1 -0
  576. package/dist/mint-components/p-6333265f.system.js +1 -0
  577. package/dist/mint-components/p-635d5ef2.system.js +1 -0
  578. package/dist/mint-components/{p-750e7b01.js → p-63a75798.js} +1 -1
  579. package/dist/mint-components/p-6427e963.entry.js +1 -0
  580. package/dist/mint-components/p-65069b66.js +1248 -0
  581. package/dist/mint-components/p-653f963f.entry.js +13 -0
  582. package/dist/mint-components/p-65ba9e94.entry.js +1 -0
  583. package/dist/mint-components/{p-42b62299.system.entry.js → p-6a8d9def.system.entry.js} +1 -1
  584. package/dist/mint-components/p-6b7a595f.system.js +1 -0
  585. package/dist/mint-components/p-6ba44ca9.js +1 -0
  586. package/dist/mint-components/p-6cd4f2b1.system.js +1 -0
  587. package/dist/mint-components/{p-4d19270b.js → p-6d2f5a1d.js} +2 -2
  588. package/dist/mint-components/{p-7159c51c.system.js → p-6d9e52c7.system.js} +1 -1
  589. package/dist/mint-components/p-6eaf9c57.entry.js +1 -0
  590. package/dist/mint-components/p-775f3ded.entry.js +1 -0
  591. package/dist/mint-components/p-7846937e.entry.js +13 -0
  592. package/dist/mint-components/{p-3eba9036.js → p-7a9290ba.js} +1 -1
  593. package/dist/mint-components/p-7ab21e4d.entry.js +1 -0
  594. package/dist/mint-components/{p-15012f59.system.js → p-7c2b9fe4.system.js} +1 -1
  595. package/dist/mint-components/{p-eea87fdc.system.entry.js → p-7dabdca6.system.entry.js} +1 -1
  596. package/dist/mint-components/{p-94f9fbf7.entry.js → p-7f80a9d7.entry.js} +1 -1
  597. package/dist/mint-components/{p-a148663a.system.js → p-8175e85f.system.js} +1 -1
  598. package/dist/mint-components/{p-ac2fdad8.system.entry.js → p-8362cb4c.system.entry.js} +1 -1
  599. package/dist/mint-components/p-837a0fdd.js +1 -0
  600. package/dist/mint-components/p-85671c3d.system.entry.js +1 -0
  601. package/dist/mint-components/p-8abfeff8.entry.js +1 -0
  602. package/dist/mint-components/p-8b584c46.system.entry.js +1 -0
  603. package/dist/mint-components/p-8c0b7881.system.entry.js +1 -0
  604. package/dist/mint-components/p-8c23d1b8.js +1 -0
  605. package/dist/mint-components/p-8d9d04b7.system.entry.js +1 -0
  606. package/dist/mint-components/{p-258f4e5e.system.entry.js → p-90fc6774.system.entry.js} +1 -1
  607. package/dist/mint-components/p-91521e9d.js +1 -0
  608. package/dist/mint-components/{p-ddf3c05e.js → p-91959fbe.js} +1 -1
  609. package/dist/mint-components/{p-68043f30.js → p-91ab3da1.js} +1 -1
  610. package/dist/mint-components/p-92816d1f.js +1 -0
  611. package/dist/mint-components/{p-da6fe95f.system.entry.js → p-9386ad84.system.entry.js} +1 -1
  612. package/dist/mint-components/{p-460155de.js → p-938f64d9.js} +1 -1
  613. package/dist/mint-components/p-94a876b9.js +1 -0
  614. package/dist/mint-components/p-95b88eb6.system.js +1 -0
  615. package/dist/mint-components/{p-c3dce602.system.entry.js → p-96431b4f.system.entry.js} +1 -1
  616. package/dist/mint-components/p-97d4d651.system.js +1 -0
  617. package/dist/mint-components/p-98698131.js +1 -0
  618. package/dist/mint-components/p-986d4c17.system.entry.js +1 -0
  619. package/dist/mint-components/{p-64997b59.system.js → p-99ad7d56.system.js} +1 -1
  620. package/dist/mint-components/p-9acb5038.js +1 -0
  621. package/dist/mint-components/{p-002e6205.system.entry.js → p-9b6a0152.system.entry.js} +1 -1
  622. package/dist/mint-components/{p-b3da317b.system.entry.js → p-9bfd9bed.system.entry.js} +1 -1
  623. package/dist/mint-components/p-9cf80e85.system.entry.js +1 -0
  624. package/dist/mint-components/{p-6951663b.js → p-9ec99ced.js} +1 -1
  625. package/dist/mint-components/{p-fa6fba34.system.js → p-9f22f58a.system.js} +2 -2
  626. package/dist/mint-components/{p-22c11f0e.entry.js → p-a2fde301.entry.js} +1 -1
  627. package/dist/mint-components/{p-d399162b.system.js → p-a71b9154.system.js} +1 -1
  628. package/dist/mint-components/{p-9580aac3.js → p-a9f4ddb1.js} +1 -1
  629. package/dist/mint-components/p-aad32fb6.system.js +1 -0
  630. package/dist/mint-components/{p-8e28333b.system.js → p-ae1ea5ac.system.js} +1 -1
  631. package/dist/mint-components/p-b207beeb.entry.js +1 -0
  632. package/dist/mint-components/{p-e55f3eb6.system.entry.js → p-b287833c.system.entry.js} +1 -1
  633. package/dist/mint-components/{p-6578ea31.system.js → p-b75bb6e3.system.js} +1 -1
  634. package/dist/mint-components/{p-7059ee40.system.entry.js → p-b7d1469d.system.entry.js} +1 -1
  635. package/dist/mint-components/p-b82e1935.system.entry.js +1 -0
  636. package/dist/mint-components/p-b965147c.system.entry.js +1 -0
  637. package/dist/mint-components/{p-6ef73224.js → p-bbcd824a.js} +1 -1
  638. package/dist/mint-components/{p-f1f20fdf.system.js → p-bdb7d451.system.js} +22 -22
  639. package/dist/mint-components/p-bfc7cfc0.system.js +1 -0
  640. package/dist/mint-components/p-c060f770.system.entry.js +1 -0
  641. package/dist/mint-components/{p-3787a4d6.js → p-c0f19490.js} +1 -1
  642. package/dist/mint-components/p-c1b074b6.js +394 -0
  643. package/dist/mint-components/{p-dbe29e53.system.entry.js → p-c2fdd608.system.entry.js} +1 -1
  644. package/dist/mint-components/p-c36506f6.system.entry.js +1 -0
  645. package/dist/mint-components/p-c9b08184.entry.js +17 -0
  646. package/dist/mint-components/p-c9f1dde7.js +1 -0
  647. package/dist/mint-components/p-cb7bdbe4.entry.js +1 -0
  648. package/dist/mint-components/p-cbbfac66.entry.js +25 -0
  649. package/dist/mint-components/p-cd1d497f.system.js +1 -0
  650. package/dist/mint-components/{p-a392912a.system.js → p-cd569259.system.js} +1 -1
  651. package/dist/mint-components/p-cd651f81.js +42 -0
  652. package/dist/mint-components/{p-9aadc253.entry.js → p-d07f3090.entry.js} +1 -1
  653. package/dist/mint-components/{p-b22b7891.js → p-d6831af5.js} +1 -1
  654. package/dist/mint-components/p-d78e7323.entry.js +273 -0
  655. package/dist/mint-components/{p-e27ff213.entry.js → p-da7708a7.entry.js} +1 -1
  656. package/dist/mint-components/{p-1c1f4ce7.system.js → p-dbc0e4f8.system.js} +1 -1
  657. package/dist/mint-components/p-dbcb5359.js +1 -0
  658. package/dist/mint-components/p-dcc81e90.entry.js +1 -0
  659. package/dist/mint-components/p-e07bc6c4.system.js +1 -0
  660. package/dist/mint-components/p-e5a5ae7f.system.entry.js +1 -0
  661. package/dist/mint-components/{p-b6911812.system.js → p-e5d0375e.system.js} +1 -1
  662. package/dist/mint-components/p-e6f50ffd.entry.js +1 -0
  663. package/dist/mint-components/p-e8e48982.js +1 -0
  664. package/dist/mint-components/{p-5e0af707.entry.js → p-e8ffcc68.entry.js} +2 -2
  665. package/dist/mint-components/{p-a2533860.system.entry.js → p-f0772618.system.entry.js} +1 -1
  666. package/dist/mint-components/p-f26aedcd.system.js +1 -0
  667. package/dist/mint-components/p-f2d8d3d3.system.entry.js +1 -0
  668. package/dist/mint-components/{p-4271f436.system.entry.js → p-f4a72903.system.entry.js} +1 -1
  669. package/dist/mint-components/{p-22d20816.system.entry.js → p-f4a8ee29.system.entry.js} +1 -1
  670. package/dist/mint-components/p-f56bedd5.js +1 -0
  671. package/dist/mint-components/p-f708da7b.js +1 -0
  672. package/dist/mint-components/p-f7c99803.system.js +1 -0
  673. package/dist/mint-components/{p-07dc6d68.js → p-f940190a.js} +1 -1
  674. package/dist/mint-components/p-f98a4354.js +1 -0
  675. package/dist/mint-components/{p-7af4fba0.system.entry.js → p-fa37513e.system.entry.js} +1 -1
  676. package/dist/mint-components/{p-a7ee19dc.entry.js → p-faba3198.entry.js} +1 -1
  677. package/dist/mint-components/p-ff8b8067.entry.js +33 -0
  678. package/dist/types/components/sqm-asset-card/AssetCard.stories.d.ts +7 -0
  679. package/dist/types/components/sqm-asset-card/sqm-asset-card-view.d.ts +8 -0
  680. package/dist/types/components/sqm-asset-card/sqm-asset-card.d.ts +24 -0
  681. package/dist/types/components/sqm-asset-card/useAssetCard.d.ts +7 -0
  682. package/dist/types/components/sqm-big-stat/BigStat.stories.d.ts +0 -2
  683. package/dist/types/components/sqm-big-stat/sqm-big-stat-view.d.ts +0 -5
  684. package/dist/types/components/sqm-big-stat/sqm-big-stat.d.ts +1 -47
  685. package/dist/types/components/sqm-card-feed/sqm-card-feed.d.ts +0 -2
  686. package/dist/types/components/sqm-coupon-code/CouponCode.stories.d.ts +0 -1
  687. package/dist/types/components/sqm-coupon-code/sqm-coupon-code-view.d.ts +0 -2
  688. package/dist/types/components/sqm-coupon-code/sqm-coupon-code.d.ts +16 -43
  689. package/dist/types/components/sqm-coupon-code/useCouponCode.d.ts +3 -2
  690. package/dist/types/components/sqm-divided-layout/sqm-divided-layout-view.d.ts +1 -4
  691. package/dist/types/components/sqm-divided-layout/sqm-divided-layout.d.ts +0 -15
  692. package/dist/types/components/sqm-form-message/FormMessage.stories.d.ts +1 -0
  693. package/dist/types/components/sqm-header-logo/sqm-header-logo.d.ts +0 -1
  694. package/dist/types/components/sqm-hero/Hero.stories.d.ts +0 -1
  695. package/dist/types/components/sqm-hero/sqm-hero-view.d.ts +0 -1
  696. package/dist/types/components/sqm-hero/sqm-hero.d.ts +1 -6
  697. package/dist/types/components/sqm-hero-image/sqm-hero-image-view.d.ts +0 -1
  698. package/dist/types/components/sqm-hero-image/sqm-hero-image.d.ts +0 -20
  699. package/dist/types/components/sqm-image/sqm-image.d.ts +0 -1
  700. package/dist/types/components/sqm-instant-access-registration/sqm-instant-access-registration.d.ts +1 -2
  701. package/dist/types/components/sqm-invoice-table/columns/InvoiceTableColumn.d.ts +0 -1
  702. package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-data-column.d.ts +0 -1
  703. package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-date-column.d.ts +0 -1
  704. package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-download-column.d.ts +0 -1
  705. package/dist/types/components/sqm-invoice-table/mockInvoiceData.d.ts +0 -1
  706. package/dist/types/components/sqm-invoice-table/sqm-invoice-table.d.ts +0 -3
  707. package/dist/types/components/sqm-lead-form/LeadCheckboxField.stories.d.ts +28 -0
  708. package/dist/types/components/sqm-lead-form/LeadForm.stories.d.ts +10 -0
  709. package/dist/types/components/sqm-lead-form/LeadFormDropdownField.stories.d.ts +10 -0
  710. package/dist/types/components/sqm-lead-form/LeadInputField.stories.d.ts +8 -0
  711. package/dist/types/components/sqm-lead-form/sqm-lead-checkbox-field-view.d.ts +15 -0
  712. package/dist/types/components/sqm-lead-form/sqm-lead-checkbox-field.d.ts +46 -0
  713. package/dist/types/components/sqm-lead-form/sqm-lead-dropdown-field-view.d.ts +17 -0
  714. package/dist/types/components/sqm-lead-form/sqm-lead-dropdown-field.d.ts +49 -0
  715. package/dist/types/components/sqm-lead-form/sqm-lead-form-view.d.ts +36 -0
  716. package/dist/types/components/sqm-lead-form/sqm-lead-form.d.ts +93 -0
  717. package/dist/types/components/sqm-lead-form/sqm-lead-input-field-view.d.ts +15 -0
  718. package/dist/types/components/sqm-lead-form/sqm-lead-input-field.d.ts +51 -0
  719. package/dist/types/components/sqm-lead-form/useCheckboxField.d.ts +6 -0
  720. package/dist/types/components/sqm-lead-form/useLeadDropdownField.d.ts +6 -0
  721. package/dist/types/components/sqm-lead-form/useLeadForm.d.ts +28 -0
  722. package/dist/types/components/sqm-lead-form/useLeadFormState.d.ts +19 -0
  723. package/dist/types/components/sqm-lead-form/useLeadInputField.d.ts +6 -0
  724. package/dist/types/components/sqm-leaderboard/Leaderboard.stories.d.ts +0 -1
  725. package/dist/types/components/sqm-leaderboard/sqm-leaderboard-view.d.ts +0 -6
  726. package/dist/types/components/sqm-leaderboard/sqm-leaderboard.d.ts +11 -53
  727. package/dist/types/components/sqm-leaderboard/useLeaderboard.d.ts +0 -6
  728. package/dist/types/components/sqm-link-button/sqm-link-button.d.ts +0 -1
  729. package/dist/types/components/sqm-logout-current-user/sqm-logout-current-user.d.ts +0 -1
  730. package/dist/types/components/sqm-name-fields/sqm-name-fields.d.ts +1 -1
  731. package/dist/types/components/sqm-navigation-menu/sqm-navigation-menu.d.ts +0 -1
  732. package/dist/types/components/sqm-navigation-sidebar/sqm-navigation-sidebar-view.d.ts +0 -1
  733. package/dist/types/components/sqm-navigation-sidebar/sqm-navigation-sidebar.d.ts +0 -16
  734. package/dist/types/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view.d.ts +0 -8
  735. package/dist/types/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.d.ts +0 -57
  736. package/dist/types/components/sqm-pagination/sqm-pagination-view.d.ts +0 -1
  737. package/dist/types/components/sqm-pagination/sqm-pagination.d.ts +2 -9
  738. package/dist/types/components/sqm-popup-container/usePopupContainer.d.ts +2 -2
  739. package/dist/types/components/sqm-portal-change-password/sqm-portal-change-password-view.d.ts +0 -2
  740. package/dist/types/components/sqm-portal-change-password/sqm-portal-change-password.d.ts +0 -1
  741. package/dist/types/components/sqm-portal-footer/sqm-portal-footer.d.ts +0 -1
  742. package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.d.ts +1 -5
  743. package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password.d.ts +0 -15
  744. package/dist/types/components/sqm-portal-frame/sqm-portal-frame-view.d.ts +0 -3
  745. package/dist/types/components/sqm-portal-frame/sqm-portal-frame.d.ts +0 -19
  746. package/dist/types/components/sqm-portal-frame/usePortalFrame.d.ts +1 -2
  747. package/dist/types/components/sqm-portal-login/PortalLogin.stories.d.ts +0 -1
  748. package/dist/types/components/sqm-portal-login/sqm-portal-login.d.ts +0 -1
  749. package/dist/types/components/sqm-portal-logout/sqm-portal-logout.d.ts +0 -1
  750. package/dist/types/components/sqm-portal-profile/sqm-portal-profile.d.ts +0 -1
  751. package/dist/types/components/sqm-portal-protected-route/sqm-portal-protected-route.d.ts +0 -1
  752. package/dist/types/components/sqm-portal-register/sqm-portal-register.d.ts +1 -0
  753. package/dist/types/components/sqm-portal-registration-form/sqm-portal-registration-form.d.ts +1 -0
  754. package/dist/types/components/sqm-program-explainer/sqm-program-explainer.d.ts +0 -2
  755. package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step-view.d.ts +0 -3
  756. package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step.d.ts +2 -20
  757. package/dist/types/components/sqm-program-menu/sqm-program-menu.d.ts +0 -1
  758. package/dist/types/components/sqm-qr-code/sqm-qr-code.d.ts +0 -1
  759. package/dist/types/components/sqm-referral-card/sqm-referral-card-view.d.ts +2 -5
  760. package/dist/types/components/sqm-referral-card/sqm-referral-card.d.ts +2 -25
  761. package/dist/types/components/sqm-referral-code/ReferralCode.stories.d.ts +0 -1
  762. package/dist/types/components/sqm-referral-code/sqm-referral-code.d.ts +0 -43
  763. package/dist/types/components/sqm-referral-codes/ReferralCodes.stories.d.ts +0 -1
  764. package/dist/types/components/sqm-referral-codes/sqm-referral-codes-view.d.ts +0 -1
  765. package/dist/types/components/sqm-referral-codes/sqm-referral-codes.d.ts +0 -7
  766. package/dist/types/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.d.ts +0 -1
  767. package/dist/types/components/sqm-referral-table/cells/sqm-referral-table-status-cell.d.ts +0 -1
  768. package/dist/types/components/sqm-referral-table/columns/ReferralTableColumn.d.ts +0 -1
  769. package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-column.d.ts +0 -1
  770. package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-date-column.d.ts +0 -1
  771. package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.d.ts +1 -2
  772. package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-status-column.d.ts +0 -1
  773. package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-user-column.d.ts +0 -1
  774. package/dist/types/components/sqm-referral-table/sqm-referral-table.d.ts +1 -4
  775. package/dist/types/components/sqm-referred-registration/sqm-referred-registration.d.ts +1 -2
  776. package/dist/types/components/sqm-reward-exchange-list/RewardExchangeListData.d.ts +437 -457
  777. package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list.d.ts +1 -10
  778. package/dist/types/components/sqm-reward-exchange-list/useRewardExchangeList.d.ts +0 -1
  779. package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.d.ts +0 -1
  780. package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.d.ts +0 -1
  781. package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.d.ts +1 -2
  782. package/dist/types/components/sqm-rewards-table/columns/RewardTableColumn.d.ts +0 -1
  783. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.d.ts +1 -2
  784. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.d.ts +1 -2
  785. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.d.ts +1 -2
  786. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.d.ts +1 -2
  787. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.d.ts +3 -4
  788. package/dist/types/components/sqm-rewards-table/mockRewardData.d.ts +0 -1
  789. package/dist/types/components/sqm-rewards-table/mockTaxData.d.ts +0 -1
  790. package/dist/types/components/sqm-rewards-table/sqm-rewards-table.d.ts +1 -3
  791. package/dist/types/components/sqm-rewards-table/useRewardsTable.d.ts +1 -1
  792. package/dist/types/components/sqm-route/sqm-route.d.ts +0 -1
  793. package/dist/types/components/sqm-router/sqm-router.d.ts +0 -2
  794. package/dist/types/components/sqm-scroll/sqm-scroll.d.ts +0 -1
  795. package/dist/types/components/sqm-share-button/ShareButton.stories.d.ts +1 -1
  796. package/dist/types/components/sqm-share-button/sqm-share-button-view.d.ts +1 -2
  797. package/dist/types/components/sqm-share-button/sqm-share-button.d.ts +6 -19
  798. package/dist/types/components/sqm-share-code/sqm-share-code.d.ts +0 -43
  799. package/dist/types/components/sqm-share-link/ShareLink.stories.d.ts +0 -1
  800. package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +1 -44
  801. package/dist/types/components/sqm-stat-container/sqm-stat-container-view.d.ts +0 -3
  802. package/dist/types/components/sqm-stat-container/sqm-stat-container.d.ts +0 -25
  803. package/dist/types/components/sqm-stencilbook/Themes.d.ts +6 -6
  804. package/dist/types/components/sqm-tabs/Tabs.stories.d.ts +0 -1
  805. package/dist/types/components/sqm-tabs/sqm-tabs-view.d.ts +0 -1
  806. package/dist/types/components/sqm-tabs/sqm-tabs.d.ts +0 -10
  807. package/dist/types/components/sqm-task-card/DetailsView.d.ts +0 -6
  808. package/dist/types/components/sqm-task-card/sqm-task-card-view.d.ts +0 -5
  809. package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +4 -33
  810. package/dist/types/components/sqm-task-card/useTaskCard.d.ts +0 -9
  811. package/dist/types/components/sqm-text/sqm-text.d.ts +0 -13
  812. package/dist/types/components/sqm-text-span/sqm-text-span-view.d.ts +2 -4
  813. package/dist/types/components/sqm-text-span/sqm-text-span.d.ts +1 -14
  814. package/dist/types/components/sqm-timeline/Timeline.stories.d.ts +0 -1
  815. package/dist/types/components/sqm-timeline/sqm-timeline-entry-view.d.ts +0 -2
  816. package/dist/types/components/sqm-timeline/sqm-timeline-entry.d.ts +0 -14
  817. package/dist/types/components/sqm-timeline/sqm-timeline.d.ts +1 -3
  818. package/dist/types/components/sqm-titled-section/sqm-titled-section.d.ts +0 -2
  819. package/dist/types/components/sqm-widget-verification/sqm-widget-verification-controller.d.ts +2 -5
  820. package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +2 -6
  821. package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +2 -0
  822. package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.d.ts +1 -1
  823. package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +2 -2
  824. package/dist/types/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.d.ts +0 -4
  825. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.d.ts +1 -0
  826. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.d.ts +8 -1
  827. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +24 -1
  828. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +9 -2
  829. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +51 -9
  830. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.d.ts +1 -1
  831. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +10 -3
  832. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +36 -17
  833. package/dist/types/components/tax-and-cash/sqm-user-info-form/small-views/IndirectTaxDetailsView.d.ts +1 -1
  834. package/dist/types/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.d.ts +1 -1
  835. package/dist/types/components/tax-and-cash/utils.d.ts +1 -1
  836. package/dist/types/components/views/copy-text-view.d.ts +0 -5
  837. package/dist/types/components.d.ts +729 -1243
  838. package/dist/types/global/global.d.ts +2 -2
  839. package/dist/types/global/mixins.d.ts +12 -12
  840. package/dist/types/global/styles.d.ts +2 -10
  841. package/dist/types/saasquatch.d.ts +7 -143
  842. package/dist/types/utils/utils.d.ts +0 -1
  843. package/docs/docs.docx +0 -0
  844. package/docs/raisins.json +1 -1
  845. package/grapesjs/grapesjs.js +1 -1
  846. package/package.json +2 -3
  847. package/dist/cjs/IndirectTaxDetailsView-282c1fda.js +0 -646
  848. package/dist/cjs/copy-text-view-97ae8a48.js +0 -127
  849. package/dist/cjs/data-d4339c2e.js +0 -137
  850. package/dist/cjs/parseStates-d1effc19.js +0 -16
  851. package/dist/cjs/sqm-code-verification.cjs.entry.js +0 -352
  852. package/dist/cjs/sqm-invoice-table-data-cell_5.cjs.entry.js +0 -84
  853. package/dist/cjs/sqm-leaderboard-rank-view-6a1e63de.js +0 -10
  854. package/dist/cjs/sqm-navigation-sidebar-item-view-ec7a5c53.js +0 -56
  855. package/dist/cjs/sqm-tax-and-cash.cjs.entry.js +0 -1254
  856. package/dist/cjs/sqm-text-span-view-7a61ae4c.js +0 -63
  857. package/dist/cjs/utils-aacb4233.js +0 -105
  858. package/dist/collection/components/sqm-stencilbook/BrandSelector.js +0 -198
  859. package/dist/collection/components/sqm-text/Text.stories.js +0 -12
  860. package/dist/collection/insertfont.js +0 -18
  861. package/dist/collection/utils/parseStates.js +0 -12
  862. package/dist/esm/IndirectTaxDetailsView-5e60d91f.js +0 -639
  863. package/dist/esm/copy-text-view-ab2fda20.js +0 -125
  864. package/dist/esm/data-ee3ae298.js +0 -121
  865. package/dist/esm/parseStates-ed75e224.js +0 -14
  866. package/dist/esm/sqm-code-verification.entry.js +0 -348
  867. package/dist/esm/sqm-invoice-table-data-cell_5.entry.js +0 -76
  868. package/dist/esm/sqm-leaderboard-rank-view-18baae5b.js +0 -8
  869. package/dist/esm/sqm-navigation-sidebar-item-view-797601b0.js +0 -54
  870. package/dist/esm/sqm-tax-and-cash.entry.js +0 -1250
  871. package/dist/esm/sqm-text-span-view-4c17b8c9.js +0 -61
  872. package/dist/esm/utils-e1cdc479.js +0 -97
  873. package/dist/esm-es5/GenericTableView-e43d310f.js +0 -1
  874. package/dist/esm-es5/IndirectTaxDetailsView-5e60d91f.js +0 -1
  875. package/dist/esm-es5/ShadowViewAddon-cf7c03a0.js +0 -1
  876. package/dist/esm-es5/copy-text-view-ab2fda20.js +0 -1
  877. package/dist/esm-es5/data-ee3ae298.js +0 -1
  878. package/dist/esm-es5/dom-context-hooks.module-63370afd.js +0 -53
  879. package/dist/esm-es5/email-registration-view-1f587f8b.js +0 -1
  880. package/dist/esm-es5/index.module-38dad6c9.js +0 -1
  881. package/dist/esm-es5/luxon-bbf75a9d.js +0 -1
  882. package/dist/esm-es5/mixins-f750863a.js +0 -1
  883. package/dist/esm-es5/parseStates-ed75e224.js +0 -1
  884. package/dist/esm-es5/re-render-9c90767d.js +0 -1
  885. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +0 -1
  886. package/dist/esm-es5/sqm-code-verification.entry.js +0 -1
  887. package/dist/esm-es5/sqm-invoice-table-data-cell_5.entry.js +0 -1
  888. package/dist/esm-es5/sqm-leaderboard-rank-view-18baae5b.js +0 -1
  889. package/dist/esm-es5/sqm-navigation-sidebar-item-view-797601b0.js +0 -1
  890. package/dist/esm-es5/sqm-navigation-sidebar-view-0a2ec560.js +0 -1
  891. package/dist/esm-es5/sqm-portal-forgot-password-view-0e795cdd.js +0 -1
  892. package/dist/esm-es5/sqm-portal-login-view-7670cd86.js +0 -1
  893. package/dist/esm-es5/sqm-qr-code-view-97124a66.js +0 -1
  894. package/dist/esm-es5/sqm-tax-and-cash.entry.js +0 -1
  895. package/dist/esm-es5/sqm-text-span-view-4c17b8c9.js +0 -1
  896. package/dist/esm-es5/useChildElements-4e70ac0e.js +0 -1
  897. package/dist/esm-es5/useInstantAccessRegistration-0f04459e.js +0 -1
  898. package/dist/esm-es5/usePayoutStatus-7eeec61b.js +0 -6
  899. package/dist/esm-es5/usePortalLogin-d0720c81.js +0 -1
  900. package/dist/esm-es5/usePortalRegistrationForm-afc0171e.js +0 -1
  901. package/dist/esm-es5/useReferralCodes-311e6d72.js +0 -1
  902. package/dist/esm-es5/useReferralTable-65a01a6a.js +0 -1
  903. package/dist/esm-es5/useRegistrationFormState-18c2cea7.js +0 -1
  904. package/dist/esm-es5/useVerificationEmail-f9413de9.js +0 -1
  905. package/dist/esm-es5/utilities-ad9c2893.js +0 -1
  906. package/dist/esm-es5/utils-03188de2.js +0 -1
  907. package/dist/esm-es5/utils-e1cdc479.js +0 -1
  908. package/dist/mint-components/p-000c91b1.js +0 -1
  909. package/dist/mint-components/p-0935f9b7.system.js +0 -1
  910. package/dist/mint-components/p-0bb21f5b.system.entry.js +0 -1
  911. package/dist/mint-components/p-0e532b53.entry.js +0 -1
  912. package/dist/mint-components/p-0ea61502.system.js +0 -1
  913. package/dist/mint-components/p-100c878b.system.entry.js +0 -1
  914. package/dist/mint-components/p-11500698.entry.js +0 -25
  915. package/dist/mint-components/p-115dfc03.system.js +0 -1
  916. package/dist/mint-components/p-1337f47c.entry.js +0 -1
  917. package/dist/mint-components/p-1363c4ab.system.js +0 -1
  918. package/dist/mint-components/p-13f3a647.js +0 -1
  919. package/dist/mint-components/p-14128c84.system.entry.js +0 -1
  920. package/dist/mint-components/p-14959d73.system.entry.js +0 -1
  921. package/dist/mint-components/p-15bfd7e2.system.js +0 -1
  922. package/dist/mint-components/p-1a278658.entry.js +0 -1
  923. package/dist/mint-components/p-1c727332.entry.js +0 -1
  924. package/dist/mint-components/p-1cd0e1e9.system.js +0 -1
  925. package/dist/mint-components/p-1ee5070b.system.entry.js +0 -1
  926. package/dist/mint-components/p-204861a6.js +0 -1
  927. package/dist/mint-components/p-209ea185.js +0 -1
  928. package/dist/mint-components/p-21e3cac4.js +0 -1
  929. package/dist/mint-components/p-2403c6e1.system.js +0 -1
  930. package/dist/mint-components/p-240bec23.js +0 -1
  931. package/dist/mint-components/p-274ea2c4.entry.js +0 -9
  932. package/dist/mint-components/p-2f2bff39.entry.js +0 -1
  933. package/dist/mint-components/p-3285a6b3.system.entry.js +0 -1
  934. package/dist/mint-components/p-3836d1e2.entry.js +0 -1
  935. package/dist/mint-components/p-38a03a10.system.js +0 -1
  936. package/dist/mint-components/p-3cb249c3.js +0 -1
  937. package/dist/mint-components/p-3d1b91a1.system.entry.js +0 -1
  938. package/dist/mint-components/p-3d99fa43.entry.js +0 -1
  939. package/dist/mint-components/p-3ea3f5e3.system.entry.js +0 -1
  940. package/dist/mint-components/p-40c01a5a.system.js +0 -1
  941. package/dist/mint-components/p-42da8239.system.js +0 -1
  942. package/dist/mint-components/p-49b20dae.js +0 -1
  943. package/dist/mint-components/p-4f5329a2.system.js +0 -53
  944. package/dist/mint-components/p-51b8979d.js +0 -448
  945. package/dist/mint-components/p-57970440.js +0 -1233
  946. package/dist/mint-components/p-587115cb.system.entry.js +0 -1
  947. package/dist/mint-components/p-59b028db.system.js +0 -1
  948. package/dist/mint-components/p-5aca73f7.entry.js +0 -13
  949. package/dist/mint-components/p-5ff2da11.js +0 -1
  950. package/dist/mint-components/p-63e29387.js +0 -42
  951. package/dist/mint-components/p-66c14cb2.system.entry.js +0 -1
  952. package/dist/mint-components/p-672d144e.entry.js +0 -1
  953. package/dist/mint-components/p-67ad2252.system.js +0 -1
  954. package/dist/mint-components/p-6906ef5d.system.entry.js +0 -1
  955. package/dist/mint-components/p-692bacf3.js +0 -1
  956. package/dist/mint-components/p-6ad674c2.js +0 -103
  957. package/dist/mint-components/p-6b076bae.system.entry.js +0 -1
  958. package/dist/mint-components/p-6d290019.js +0 -1
  959. package/dist/mint-components/p-6e069052.entry.js +0 -1
  960. package/dist/mint-components/p-71271fbd.system.js +0 -1
  961. package/dist/mint-components/p-75584f9e.entry.js +0 -11
  962. package/dist/mint-components/p-77d2244b.system.js +0 -1
  963. package/dist/mint-components/p-7970e73a.js +0 -1
  964. package/dist/mint-components/p-797fd8d9.system.js +0 -1
  965. package/dist/mint-components/p-7b8d29bb.entry.js +0 -1
  966. package/dist/mint-components/p-7c17e06f.system.entry.js +0 -1
  967. package/dist/mint-components/p-7e13424d.system.js +0 -1
  968. package/dist/mint-components/p-88b63a7c.entry.js +0 -93
  969. package/dist/mint-components/p-8a6494c7.system.js +0 -1
  970. package/dist/mint-components/p-8caef004.js +0 -1
  971. package/dist/mint-components/p-8e2bead4.js +0 -1
  972. package/dist/mint-components/p-901cb538.system.entry.js +0 -1
  973. package/dist/mint-components/p-9049b387.entry.js +0 -1
  974. package/dist/mint-components/p-916100a9.js +0 -1
  975. package/dist/mint-components/p-926f17f9.system.js +0 -1
  976. package/dist/mint-components/p-9374b5bb.system.entry.js +0 -1
  977. package/dist/mint-components/p-9e297104.entry.js +0 -1
  978. package/dist/mint-components/p-9f3e7e48.entry.js +0 -13
  979. package/dist/mint-components/p-9f82e69d.entry.js +0 -1
  980. package/dist/mint-components/p-a5c9ce6c.entry.js +0 -1
  981. package/dist/mint-components/p-abd33116.system.entry.js +0 -1
  982. package/dist/mint-components/p-b065215a.entry.js +0 -1
  983. package/dist/mint-components/p-b1a2a83b.entry.js +0 -144
  984. package/dist/mint-components/p-ba4a5fed.entry.js +0 -258
  985. package/dist/mint-components/p-bab57520.system.entry.js +0 -1
  986. package/dist/mint-components/p-bad50dc1.entry.js +0 -1
  987. package/dist/mint-components/p-bb627d95.entry.js +0 -17
  988. package/dist/mint-components/p-be88596c.system.js +0 -1
  989. package/dist/mint-components/p-c0d48b64.system.entry.js +0 -1
  990. package/dist/mint-components/p-c4886223.entry.js +0 -1
  991. package/dist/mint-components/p-c726f778.system.entry.js +0 -1
  992. package/dist/mint-components/p-c7965639.entry.js +0 -1
  993. package/dist/mint-components/p-c79bb1c6.entry.js +0 -16
  994. package/dist/mint-components/p-c7c11325.js +0 -1
  995. package/dist/mint-components/p-cab1f502.js +0 -1
  996. package/dist/mint-components/p-d785a297.system.entry.js +0 -1
  997. package/dist/mint-components/p-d821418e.system.js +0 -1
  998. package/dist/mint-components/p-d8c5b80a.system.js +0 -1
  999. package/dist/mint-components/p-da3ffd4e.system.entry.js +0 -1
  1000. package/dist/mint-components/p-e539fed3.entry.js +0 -1
  1001. package/dist/mint-components/p-e57d61af.system.js +0 -1
  1002. package/dist/mint-components/p-eaeddfe2.system.js +0 -1
  1003. package/dist/mint-components/p-ecc5faba.entry.js +0 -33
  1004. package/dist/mint-components/p-f0e0d0b9.system.entry.js +0 -1
  1005. package/dist/mint-components/p-f0ebccea.system.entry.js +0 -1
  1006. package/dist/mint-components/p-f1dc581f.js +0 -1
  1007. package/dist/mint-components/p-f6baa0c9.system.js +0 -1
  1008. package/dist/mint-components/p-f9c7248e.js +0 -1
  1009. package/dist/mint-components/p-fb77f662.entry.js +0 -1
  1010. package/dist/types/components/sqm-stencilbook/BrandSelector.d.ts +0 -9
  1011. package/dist/types/components/sqm-text/Text.stories.d.ts +0 -6
  1012. package/dist/types/insertfont.d.ts +0 -1
  1013. package/dist/types/utils/parseStates.d.ts +0 -1
  1014. package/shoelace/assets/icons/twitter-x.svg +0 -4
  1015. /package/dist/collection/components/tax-and-cash/{data.js → sqm-tax-and-cash/data.js} +0 -0
  1016. /package/dist/types/components/tax-and-cash/{data.d.ts → sqm-tax-and-cash/data.d.ts} +0 -0
@@ -2,25 +2,145 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-a43a63b4.js');
6
- const global = require('./global-4cd8623e.js');
7
- const domContextHooks_module = require('./dom-context-hooks.module-7fa676ae.js');
8
- const index_module = require('./index.module-4f54e412.js');
5
+ const index = require('./index-a29c60ef.js');
6
+ const stencilHooks_module = require('./stencil-hooks.module-3a336b0f.js');
7
+ const global = require('./global-e31dc4f5.js');
8
+ const index_module = require('./index.module-ee84433d.js');
9
9
  const jsonpointer = require('./jsonpointer-11327262.js');
10
10
  const cjs = require('./cjs-1066ec21.js');
11
- const utils = require('./utils-7cbd60cc.js');
11
+ const utils = require('./utils-6847bc06.js');
12
12
  const JSS = require('./JSS-8503a151.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-282c1fda.js');
20
- const utils$1 = require('./utils-aacb4233.js');
21
- const data = require('./data-d4339c2e.js');
13
+ const mixins = require('./mixins-f7e0377a.js');
14
+ const GenericTableView = require('./GenericTableView-a9f4ba75.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-0aa82125.js');
20
+ const ErrorView = require('./ErrorView-b2fcf954.js');
21
+ const sqmInvoiceTableView = require('./sqm-invoice-table-view-5c74607f.js');
22
+ const extractProps = require('./extractProps-fd93ba62.js');
22
23
  const keys = require('./keys-cff24974.js');
23
- const usePayoutStatus = require('./usePayoutStatus-3b34dab1.js');
24
+ const usePayoutStatus = require('./usePayoutStatus-d459ddde.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;
24
144
 
25
145
  function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
26
146
  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;
@@ -564,20 +684,45 @@ const style = {
564
684
  gap: "8px",
565
685
  },
566
686
  ErrorText: {
567
- color: "var(--sqm-danger-color-icon)",
687
+ color: "var(--sl-color-danger-500)",
568
688
  marginTop: "10px",
569
689
  },
570
690
  PageDescriptionText: {
571
- color: "var(--sqm-text-subdued)",
691
+ color: "var(--sl-color-neutral-500)",
572
692
  fontSize: "var(--sl-font-size-medium)",
573
693
  },
574
694
  DescriptionText: {
575
- color: "var(--sqm-text-subdued)",
695
+ color: "var(--sl-color-neutral-500)",
696
+ },
697
+ SecondaryBtn: {
698
+ "&::part(base)": {
699
+ color: "var(--sl-color-gray-800) !important",
700
+ },
701
+ },
702
+ AlertContainer: {
703
+ "&::part(base)": {
704
+ backgroundColor: "var(--sl-color-red-100)",
705
+ borderTop: "none",
706
+ padding: "0 16px",
707
+ },
708
+ "& sl-icon::part(base)": {
709
+ color: "var(--sl-color-danger-500)",
710
+ },
576
711
  },
577
712
  RadioContainer: {
578
713
  display: "flex",
579
714
  flexDirection: "column",
580
715
  },
716
+ PartnerAlertContainer: {
717
+ "&::part(base)": {
718
+ backgroundColor: "var(--sl-color-sky-100)",
719
+ borderTop: "none",
720
+ padding: "0 16px",
721
+ },
722
+ "& sl-icon::part(base)": {
723
+ color: "var(--sl-color-blue-500)",
724
+ },
725
+ },
581
726
  Checkbox: {
582
727
  "&::part(control)": {
583
728
  borderRadius: "50% !important",
@@ -589,8 +734,8 @@ const style = {
589
734
  InputContainer: {
590
735
  padding: "16px",
591
736
  margin: "16px 0px 16px 0px",
592
- borderTop: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
593
- borderBottom: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
737
+ borderTop: "1px solid var(--sl-color-gray-300)",
738
+ borderBottom: "1px solid var(--sl-color-gray-300)",
594
739
  display: "flex",
595
740
  flexDirection: "column",
596
741
  width: "100%",
@@ -612,20 +757,37 @@ const style = {
612
757
  width: "16px",
613
758
  height: "16px",
614
759
  borderRadius: "50%",
615
- background: "var(--sqm-skeleton-background)",
760
+ background: "var(--sl-color-gray-200)",
616
761
  },
617
762
  SmallSkeleton: {
618
763
  width: "100px",
619
764
  height: "16px",
620
765
  borderRadius: "50px",
621
- background: "var(--sqm-skeleton-background)",
766
+ background: "var(--sl-color-gray-200)",
622
767
  },
623
768
  LargeSkeleton: {
624
769
  width: "100%",
625
770
  maxWidth: "320px",
626
771
  height: "40px",
627
772
  borderRadius: "50px",
628
- background: "var(--sqm-skeleton-background)",
773
+ background: "var(--sl-color-gray-200)",
774
+ },
775
+ InfoAlert: {
776
+ "&::part(base)": {
777
+ backgroundColor: "transparent",
778
+ borderTop: "none",
779
+ border: "none",
780
+ },
781
+ "&::part(message)": {
782
+ display: "flex",
783
+ alignItems: "center",
784
+ justifyContent: "flex-start",
785
+ padding: "10px",
786
+ height: "max-content",
787
+ },
788
+ "& sl-icon::part(base)": {
789
+ color: "var(--sl-color-yellow-500)",
790
+ },
629
791
  },
630
792
  InfoWarningIcon: {
631
793
  height: "26px",
@@ -671,16 +833,20 @@ const vanillaStyle = `
671
833
  font-weight: 600
672
834
  }
673
835
 
836
+ p {
837
+ line-height: 18px;
838
+ color: var(--sl-color-gray-800);
839
+ font-size: var(--sl-font-size-small);
840
+ }
841
+
674
842
  /* this class is dynamically applied in controller */
675
843
  .error-input::part(base) {
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);
844
+ border: 1px solid var(--sl-color-danger-500);
845
+ border-radius: var(--sl-input-border-radius-medium);
680
846
  }
681
847
 
682
848
  .error-input::part(help-text) {
683
- color: var(--sqm-danger-color-text);
849
+ color: var(--sl-color-danger-500) !important;
684
850
  }
685
851
 
686
852
  `;
@@ -729,19 +895,23 @@ const BankingInfoFormView = (props) => {
729
895
  !states.hideSteps && (index.h("p", null, global.intl.formatMessage({
730
896
  id: "formStep",
731
897
  defaultMessage: text.formStep,
732
- }, { step: states.step, count: data.FORM_STEPS }))),
898
+ }, { step: states.step, count: FORM_STEPS }))),
733
899
  index.h("h3", { style: { fontSize: "24px" } }, text.taxAndPayouts),
734
900
  index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription)),
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),
901
+ ((_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 },
902
+ index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
903
+ index.h("strong", null, text.error.generalTitle),
904
+ index.h("br", null),
737
905
  global.intl.formatMessage({
738
906
  id: "generalDescription",
739
907
  defaultMessage: text.error.generalDescription,
740
908
  }, {
741
909
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
742
910
  }))),
743
- states.isPartner && !states.hideSteps && (index.h("sqm-form-message", { type: "info" },
744
- index.h("p", { part: "alert-title" }, text.isPartnerAlertHeader),
911
+ states.isPartner && !states.hideSteps && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "primary", open: true, class: sheet.classes.PartnerAlertContainer },
912
+ index.h("sl-icon", { slot: "icon", name: "info-circle" }),
913
+ index.h("strong", null, text.isPartnerAlertHeader),
914
+ index.h("br", null),
745
915
  global.intl.formatMessage({
746
916
  id: "isPartnerAlertDescription",
747
917
  defaultMessage: text.isPartnerAlertDescription,
@@ -782,7 +952,7 @@ const BankingInfoFormView = (props) => {
782
952
  index.h("sl-button", Object.assign({ type: "primary", disabled: states.disabled || states.saveDisabled, loading: states.saveLoading }, (states.hideSteps
783
953
  ? { onClick: callbacks.onModalOpen }
784
954
  : { 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))))));
955
+ !states.hideBackButton && (index.h("sl-button", { exportparts: "base: secondarybutton-base", class: classes.SecondaryBtn, type: "text", onClick: callbacks.onBack }, text.backButton))))));
786
956
  };
787
957
 
788
958
  // Hardcoded in Impact backend
@@ -866,25 +1036,25 @@ function useBankingInfoForm(props) {
866
1036
  const host = index_module._();
867
1037
  const locale = index_module.L();
868
1038
  const user = index_module.J();
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);
1039
+ const [step, setStep] = index_module.Pn(TAX_CONTEXT_NAMESPACE);
1040
+ const context = index_module.Fn(TAX_FORM_CONTEXT_NAMESPACE);
1041
+ const countries = index_module.Fn(SORTED_COUNTRIES_NAMESPACE);
1042
+ const formRef = stencilHooks_module.useRef(null);
1043
+ const { data: paymentOptionsData, loading: paymentOptionsLoading, errors: paymentOptionsError, } = index_module.$n(FINANCE_NETWORK_SETTINGS_NAMESPACE);
1044
+ const { data: userData, refetch, errors: userError, } = index_module.$n(USER_QUERY_NAMESPACE);
875
1045
  const [saveWithdrawalSettings] = index_module.$e(SAVE_WITHDRAWAL_SETTINGS);
876
1046
  const [updateWithdrawalSettings] = index_module.$e(UPDATE_WITHDRAWAL_SETTINGS);
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);
1047
+ const [showVerification, setShowVerification] = stencilHooks_module.useState(false);
1048
+ const [currentFormData, setCurrentFormData] = stencilHooks_module.useState(null);
1049
+ const [formState, setFormState] = stencilHooks_module.useState({});
1050
+ const [currentPaymentOption, setCurrentPaymentOption] = stencilHooks_module.useState(null);
1051
+ const [loading, setLoading] = stencilHooks_module.useState(false);
1052
+ const [errors, setErrors] = stencilHooks_module.useState({});
1053
+ const [_paymentMethodChecked, _setPaymentMethodChecked] = stencilHooks_module.useState(undefined);
1054
+ const [paymentScheduleChecked, setPaymentScheduleChecked] = stencilHooks_module.useState(undefined);
1055
+ const [countrySearch, setCountrySearch] = stencilHooks_module.useState("");
1056
+ const [filteredCountries, setFilteredCountries] = stencilHooks_module.useState(countries || []);
1057
+ const [showModal, setShowModal] = stencilHooks_module.useState(false);
888
1058
  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) || "";
889
1059
  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);
890
1060
  const feeCap = paypalFeeMap[currency] || "";
@@ -904,7 +1074,11 @@ function useBankingInfoForm(props) {
904
1074
  const paymentMethodChecked = !hasPayPal
905
1075
  ? "toBankAccount"
906
1076
  : _paymentMethodChecked;
907
- domContextHooks_module.useEffect(() => {
1077
+ stencilHooks_module.useEffect(() => {
1078
+ // reset redirect hash
1079
+ window.location.hash = "";
1080
+ }, []);
1081
+ stencilHooks_module.useEffect(() => {
908
1082
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
909
1083
  if (!userData)
910
1084
  return;
@@ -948,7 +1122,7 @@ function useBankingInfoForm(props) {
948
1122
  setPaymentScheduleChecked(initialData.paymentSchedulingType);
949
1123
  setFormState(initialData);
950
1124
  }, [paymentOptions, userData, setCurrentPaymentOption, setFormState]);
951
- domContextHooks_module.useEffect(() => {
1125
+ stencilHooks_module.useEffect(() => {
952
1126
  if (!(countries === null || countries === void 0 ? void 0 : countries.length))
953
1127
  return;
954
1128
  if (countrySearch.trim() === "") {
@@ -1423,7 +1597,7 @@ const BankingInfoForm = class {
1423
1597
  * @uiName Information modal button text
1424
1598
  */
1425
1599
  this.modalButtonText = "I understand, update my information";
1426
- domContextHooks_module.h$1(this);
1600
+ stencilHooks_module.h$1(this);
1427
1601
  }
1428
1602
  disconnectedCallback() { }
1429
1603
  getTextProps() {
@@ -1563,11 +1737,11 @@ function useDemoBankingInfoForm(props) {
1563
1737
  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;
1564
1738
  const defaultCurrency = (_h = (_g = props.demoData) === null || _g === void 0 ? void 0 : _g.states) === null || _h === void 0 ? void 0 : _h.currency;
1565
1739
  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;
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);
1740
+ const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
1741
+ const [paymentMethodChecked, setPaymentMethodChecked] = stencilHooks_module.useState(undefined);
1742
+ const [paymentScheduleChecked, setPaymentScheduleChecked] = stencilHooks_module.useState(undefined);
1743
+ const [currency, setCurrency] = stencilHooks_module.useState(defaultCurrency);
1744
+ const [bankCountry, setBankCountry] = stencilHooks_module.useState(defaultCountry);
1571
1745
  const currentPaymentOption = (_m = mockPaymentOptions[currency]) === null || _m === void 0 ? void 0 : _m.find((paymentOption) => {
1572
1746
  if (paymentOption.countryCode === bankCountry)
1573
1747
  return true;
@@ -1575,7 +1749,7 @@ function useDemoBankingInfoForm(props) {
1575
1749
  });
1576
1750
  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) ||
1577
1751
  0;
1578
- domContextHooks_module.useEffect(() => {
1752
+ stencilHooks_module.useEffect(() => {
1579
1753
  if (defaultPaymentMethodChecked !== paymentMethodChecked)
1580
1754
  setPaymentMethodChecked(defaultPaymentMethodChecked);
1581
1755
  if (defaultPaymentScheduleChecked !== paymentScheduleChecked)
@@ -1659,6 +1833,331 @@ function useDemoBankingInfoForm(props) {
1659
1833
  }, props.demoData || {}, { arrayMerge: (_, a) => a });
1660
1834
  }
1661
1835
 
1836
+ const style$1 = {
1837
+ Wrapper: {
1838
+ display: "flex",
1839
+ flexDirection: "column",
1840
+ gap: "var(--sl-spacing-medium)",
1841
+ maxWidth: "550px",
1842
+ },
1843
+ HeaderContainer: {
1844
+ display: "flex",
1845
+ flexDirection: "column",
1846
+ },
1847
+ InputsContainer: {
1848
+ display: "flex",
1849
+ gap: "var(--sl-spacing-medium)",
1850
+ position: "relative",
1851
+ flexDirection: "column",
1852
+ },
1853
+ CodeInputContainer: {
1854
+ display: "flex",
1855
+ gap: "var(--sl-spacing-medium)",
1856
+ },
1857
+ CodeInput: {
1858
+ maxWidth: "40px",
1859
+ "&::part(input)": {
1860
+ margin: "0",
1861
+ padding: "0 var(--sl-input-spacing-small)",
1862
+ fontSize: "var(--sl-font-size-large)",
1863
+ },
1864
+ },
1865
+ CodeInputError: {
1866
+ ...mixins.ErrorStyles,
1867
+ maxWidth: "40px",
1868
+ "&::part(input)": {
1869
+ margin: "0",
1870
+ padding: "0 var(--sl-input-spacing-small)",
1871
+ fontSize: "var(--sl-font-size-large)",
1872
+ },
1873
+ },
1874
+ ErrorText: {
1875
+ color: "var(--sl-color-danger-500)",
1876
+ fontSize: "var(--sl-font-size-small)",
1877
+ margin: "0",
1878
+ },
1879
+ ContinueButton: {
1880
+ width: "100%",
1881
+ maxWidth: "100px",
1882
+ },
1883
+ FooterContainer: {
1884
+ display: "flex",
1885
+ flexDirection: "column",
1886
+ },
1887
+ SkeletonOne: {
1888
+ width: "50%",
1889
+ height: "16px",
1890
+ },
1891
+ SkeletonTwo: {
1892
+ width: "30%",
1893
+ height: "34px",
1894
+ },
1895
+ SkeletonThree: {
1896
+ width: "15%",
1897
+ height: "24px",
1898
+ },
1899
+ };
1900
+ const vanillaStyle$1 = `
1901
+ :host {
1902
+ display: block;
1903
+ }
1904
+ :host([hidden]): {
1905
+ display: none;
1906
+ }
1907
+
1908
+
1909
+ `;
1910
+ const sheet$1 = JSS.createStyleSheet(style$1);
1911
+ const styleString$1 = sheet$1.toString();
1912
+ function WidgetCodeVerificationView(props) {
1913
+ const { states, refs, callbacks, text } = props;
1914
+ const resendCodeText = global.intl.formatMessage({
1915
+ id: "resendCodeText",
1916
+ defaultMessage: text.resendCodeText,
1917
+ }, {
1918
+ resendCodeLink: (index.h("a", { href: "", style: { textDecoration: "none" }, onClick: (e) => {
1919
+ e.preventDefault();
1920
+ callbacks.resendEmail();
1921
+ } }, text.resendCodeLabel)),
1922
+ });
1923
+ const codeResentSuccessfully = global.intl.formatMessage({
1924
+ id: "codeResentSuccessfully",
1925
+ defaultMessage: text.codeResentSuccessfullyText,
1926
+ }, {
1927
+ email: states.email,
1928
+ });
1929
+ const inputClass = states.verifyFailed
1930
+ ? sheet$1.classes.CodeInputError
1931
+ : sheet$1.classes.CodeInput;
1932
+ return (index.h("div", { part: "sqm-base" },
1933
+ index.h("style", { type: "text/css" },
1934
+ vanillaStyle$1,
1935
+ styleString$1),
1936
+ index.h("div", { class: sheet$1.classes.Wrapper },
1937
+ index.h("div", { class: sheet$1.classes.HeaderContainer },
1938
+ index.h(sqmTextSpanView.TextSpanView, { type: "p" }, global.intl.formatMessage({
1939
+ id: `emailHeaderText`,
1940
+ defaultMessage: states.verifyFailed
1941
+ ? text.reverifyCodeHeaderText
1942
+ : text.verifyCodeHeaderText,
1943
+ }, { email: states.email }))),
1944
+ states.emailResent && (index.h("sqm-form-message", { type: "success", exportparts: "successalert-icon" },
1945
+ index.h("b", null, codeResentSuccessfully))),
1946
+ index.h("div", { class: sheet$1.classes.InputsContainer },
1947
+ index.h("div", { ref: refs.codeWrapperRef, class: sheet$1.classes.CodeInputContainer },
1948
+ index.h("sl-input", { class: inputClass, name: "code" }),
1949
+ index.h("sl-input", { class: inputClass, name: "code" }),
1950
+ index.h("sl-input", { class: inputClass, name: "code" }),
1951
+ index.h("sl-input", { class: inputClass, name: "code" }),
1952
+ index.h("sl-input", { class: inputClass, name: "code" }),
1953
+ index.h("sl-input", { class: inputClass, name: "code" })),
1954
+ states.verifyFailed && (index.h("p", { class: sheet$1.classes.ErrorText }, text.invalidCodeText)),
1955
+ 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)),
1956
+ index.h("div", { class: sheet$1.classes.FooterContainer },
1957
+ index.h(sqmTextSpanView.TextSpanView, { type: "p" }, resendCodeText)))));
1958
+ }
1959
+
1960
+ const VerifyEmailWithCodeMutation = index_module.dist.gql `
1961
+ mutation submitImpactPublisherEmail2FACode(
1962
+ $user: UserIdInput!
1963
+ $code: String!
1964
+ ) {
1965
+ submitImpactPublisherEmail2FACode(user: $user, code: $code) {
1966
+ verifiedEmail
1967
+ accessKey
1968
+ }
1969
+ }
1970
+ `;
1971
+ function useWidgetCodeVerification(props) {
1972
+ const host = stencilHooks_module.l();
1973
+ const [_, setShowCode] = index_module.Pn(keys.SHOW_CODE_NAMESPACE);
1974
+ const email = index_module.Fn(keys.VERIFICATION_EMAIL_NAMESPACE);
1975
+ const [emailSent, setEmailSent] = stencilHooks_module.useState(false);
1976
+ const [emailResent, setEmailResent] = stencilHooks_module.useState(false);
1977
+ const [codeRef, setCodeRef] = stencilHooks_module.useState(null);
1978
+ const [validationError, setValidationError] = stencilHooks_module.useState(false);
1979
+ const [emailError, setEmailError] = stencilHooks_module.useState(false);
1980
+ const { initialized, verificationEmail, send: [sendEmail, { loading: sendLoading, errors: sendErrors }], verify: [verifyEmail, { loading: verifyLoading, errors: verifyErrors }], } = useVerificationEmail.useVerificationEmail();
1981
+ stencilHooks_module.useEffect(() => {
1982
+ if (!codeRef)
1983
+ return;
1984
+ const slInputs = codeRef.querySelectorAll("sl-input");
1985
+ const codeElements = Array.from(slInputs).map((node) => node.shadowRoot.querySelector(`input[name="code"]`));
1986
+ codeElements.forEach((element, idx) => {
1987
+ element.addEventListener("focus", (e) => {
1988
+ e.target.select();
1989
+ });
1990
+ element.addEventListener("keydown", (e) => {
1991
+ if (e.key === "Backspace" && e.target.value === "") {
1992
+ codeElements[Math.max(0, idx - 1)].focus();
1993
+ }
1994
+ });
1995
+ element.addEventListener("input", (e) => {
1996
+ const input = e.data;
1997
+ if (!input)
1998
+ return;
1999
+ if (idx === codeElements.length - 1) {
2000
+ e.target.value = input.slice(0, 1);
2001
+ return;
2002
+ }
2003
+ if (input.length > 1) {
2004
+ const rest = input.slice(1);
2005
+ e.target.value = input.slice(0, 1);
2006
+ codeElements[idx + 1].dispatchEvent(new InputEvent("input", {
2007
+ inputType: "insertFromPaste",
2008
+ data: rest,
2009
+ }));
2010
+ }
2011
+ codeElements[idx + 1].focus();
2012
+ });
2013
+ });
2014
+ }, [codeRef]);
2015
+ const reset = () => {
2016
+ setShowCode(false);
2017
+ setValidationError(false);
2018
+ };
2019
+ const resendEmail = async () => {
2020
+ // UI should only allow this to be called if initialized, but checking just in case
2021
+ if (!initialized)
2022
+ return;
2023
+ const result = await sendEmail();
2024
+ if (!result) {
2025
+ setEmailError(true);
2026
+ return;
2027
+ }
2028
+ if (emailSent)
2029
+ setEmailResent(true);
2030
+ setEmailSent(true);
2031
+ };
2032
+ const submitCode = async () => {
2033
+ const slInputs = codeRef.querySelectorAll("sl-input");
2034
+ const codeElements = Array.from(slInputs).map((node) => node.shadowRoot.querySelector(`input[name="code"]`));
2035
+ if (codeElements.find((el) => !el.value)) {
2036
+ setValidationError(true);
2037
+ return;
2038
+ }
2039
+ let code = "";
2040
+ codeElements.forEach((element) => {
2041
+ code = `${code}${element.value}`;
2042
+ });
2043
+ // UI should only allow this to be called if initialized, but checking just in case
2044
+ if (!initialized)
2045
+ return;
2046
+ setValidationError(false);
2047
+ const res = await verifyEmail(code);
2048
+ if (res === null || res === void 0 ? void 0 : res.success) {
2049
+ props.onVerification(res.accessKey);
2050
+ reset();
2051
+ }
2052
+ else {
2053
+ setValidationError(true);
2054
+ }
2055
+ };
2056
+ stencilHooks_module.useEffect(() => {
2057
+ // Wait for mutations to be determined from user lookup
2058
+ if (!initialized)
2059
+ return;
2060
+ // email should already exist if user has completed email-verification
2061
+ if (!email)
2062
+ resendEmail();
2063
+ else
2064
+ setEmailSent(true);
2065
+ }, [initialized]);
2066
+ return {
2067
+ refs: {
2068
+ codeWrapperRef: setCodeRef,
2069
+ },
2070
+ states: {
2071
+ email: verificationEmail,
2072
+ emailResent,
2073
+ resendError: sendErrors || verifyErrors,
2074
+ initialiseLoading: !initialized,
2075
+ loading: sendLoading || verifyLoading,
2076
+ verifyFailed: !!validationError,
2077
+ },
2078
+ callbacks: {
2079
+ resendEmail,
2080
+ submitCode,
2081
+ },
2082
+ text: props.getTextProps(),
2083
+ };
2084
+ }
2085
+
2086
+ const WidgetCodeVerification = class {
2087
+ constructor(hostRef) {
2088
+ index.registerInstance(this, hostRef);
2089
+ /**
2090
+ * @uiName Verify code widget header text
2091
+ */
2092
+ this.verifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
2093
+ /**
2094
+ * @uiName Reverify code widget header text
2095
+ */
2096
+ this.reverifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
2097
+ /**
2098
+ * Text displayed under verify button
2099
+ * @uiName Resend code text
2100
+ */
2101
+ this.resendCodeText = "Didn't receive your code? {resendCodeLink}";
2102
+ /**
2103
+ * The link that appears in the resend code link
2104
+ * @uiName Resend code label
2105
+ */
2106
+ this.resendCodeLabel = "Resend code";
2107
+ /**
2108
+ * Link text displayed under verify button
2109
+ * @uiName Resend code text
2110
+ */
2111
+ this.codeResentSuccessfullyText = "Another code has been sent to {email}";
2112
+ /**
2113
+ * Error text displayed under verification input
2114
+ * @uiName Invalid code text
2115
+ */
2116
+ this.invalidCodeText = "Please check your code and try again. If you’re still having trouble, try resending your code.";
2117
+ /**
2118
+ * @uiName Verify code button text
2119
+ */
2120
+ this.verifyText = "Verify";
2121
+ /**
2122
+ * Displayed when the email verification fails due to a network error. The participant can try refreshing the page.
2123
+ * @uiName Network error message
2124
+ */
2125
+ this.networkErrorMessage = "An error occurred while verifying your email. Please refresh the page and try again.";
2126
+ stencilHooks_module.h$1(this);
2127
+ }
2128
+ disconnectedCallback() { }
2129
+ getTextProps() {
2130
+ return utils.getProps(this);
2131
+ }
2132
+ render() {
2133
+ const props = index_module.isDemo()
2134
+ ? useDemoWidgetCodeVerification(this)
2135
+ : useWidgetCodeVerification(this);
2136
+ return index.h(WidgetCodeVerificationView, Object.assign({}, props));
2137
+ }
2138
+ };
2139
+ function useDemoWidgetCodeVerification(props) {
2140
+ const [emailResent, setEmailResent] = stencilHooks_module.useState(false);
2141
+ const setVerifiedContext = index_module.En(keys.VERIFICATION_PARENT_NAMESPACE);
2142
+ return cjs.cjs({
2143
+ states: {
2144
+ loading: false,
2145
+ email: "test@example.com",
2146
+ emailResent,
2147
+ resendError: false,
2148
+ verifyFailed: false,
2149
+ },
2150
+ refs: {
2151
+ codeWrapperRef: () => { },
2152
+ },
2153
+ callbacks: {
2154
+ resendEmail: async () => setEmailResent(true),
2155
+ submitCode: async () => setVerifiedContext(true),
2156
+ },
2157
+ text: props.getTextProps(),
2158
+ }, props.demoData || {}, { arrayMerge: (_, a) => a });
2159
+ }
2160
+
1662
2161
  const GET_TAX_DOCUMENT = index_module.dist.gql `
1663
2162
  mutation createImpactPublisherTaxDocument(
1664
2163
  $vars: CreateImpactPublisherTaxDocumentInput!
@@ -1687,24 +2186,24 @@ const DOCUSIGN_EXPIRED_STATES = ["ttl_expired", "session_timeout"];
1687
2186
  function useDocusignForm(props) {
1688
2187
  var _a, _b, _c;
1689
2188
  const user = index_module.J();
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;
2189
+ const context = index_module.Fn(TAX_FORM_CONTEXT_NAMESPACE);
2190
+ const [step, setStep] = index_module.Pn(TAX_CONTEXT_NAMESPACE);
2191
+ const { data, loading: userLoading, refetch, } = index_module.$n(USER_QUERY_NAMESPACE);
2192
+ 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;
1694
2193
  const [createTaxDocument, { loading: documentLoading, data: document, errors: documentErrors },] = index_module.$e(GET_TAX_DOCUMENT);
1695
2194
  const [completeTaxDocument, { loading: completeDocumentLoading, data: completeData, errors: completeErrors, },] = index_module.$e(COMPLETE_TAX_DOCUMENT);
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);
2195
+ const [docusignStatus, setDocusignStatus] = stencilHooks_module.useState(undefined);
2196
+ const [participantType, setParticipantType] = stencilHooks_module.useState(undefined);
2197
+ const [errors, setErrors] = stencilHooks_module.useState({});
2198
+ const [loading, setLoading] = stencilHooks_module.useState(false);
2199
+ const [showExitButton, setShowExitButton] = stencilHooks_module.useState(false);
2200
+ const [showModal, setShowModal] = stencilHooks_module.useState(true);
1702
2201
  // Only look at current document if it's valid (same as required type)
1703
- const existingDocumentType = utils$1.validTaxDocument(publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType) && (publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument)
2202
+ const existingDocumentType = sqmInvoiceTableView.validTaxDocument(publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType) && (publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument)
1704
2203
  ? publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType : undefined;
1705
2204
  const actualDocumentType = existingDocumentType ||
1706
2205
  getDocumentType(participantType) || (publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType);
1707
- domContextHooks_module.useEffect(() => {
2206
+ stencilHooks_module.useEffect(() => {
1708
2207
  if (!existingDocumentType)
1709
2208
  return;
1710
2209
  if (existingDocumentType === "W8BEN") {
@@ -1714,7 +2213,7 @@ function useDocusignForm(props) {
1714
2213
  setParticipantType("businessEntity");
1715
2214
  }
1716
2215
  }, [existingDocumentType]);
1717
- domContextHooks_module.useEffect(() => {
2216
+ stencilHooks_module.useEffect(() => {
1718
2217
  // Skip if no publisher info
1719
2218
  if (!user || !publisher)
1720
2219
  return;
@@ -1792,7 +2291,7 @@ function useDocusignForm(props) {
1792
2291
  },
1793
2292
  docusignStatus,
1794
2293
  documentType: actualDocumentType,
1795
- documentTypeString: utils$1.taxTypeToName(actualDocumentType),
2294
+ documentTypeString: sqmInvoiceTableView.taxTypeToName(actualDocumentType),
1796
2295
  showExitButton,
1797
2296
  showModal,
1798
2297
  },
@@ -1820,7 +2319,7 @@ function getDocumentType(p) {
1820
2319
  return undefined;
1821
2320
  }
1822
2321
 
1823
- const style$1 = {
2322
+ const style$2 = {
1824
2323
  DocusignStatusContainer: {
1825
2324
  width: "100%",
1826
2325
  minHeight: "600px",
@@ -1832,7 +2331,7 @@ const style$1 = {
1832
2331
  gap: "10px",
1833
2332
  margin: "auto",
1834
2333
  textAlign: "center",
1835
- border: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
2334
+ border: "1px solid var(--sl-color-gray-200)",
1836
2335
  justifyContent: "center",
1837
2336
  },
1838
2337
  MessageContainer: {
@@ -1847,48 +2346,48 @@ const style$1 = {
1847
2346
  },
1848
2347
  },
1849
2348
  };
1850
- const sheet$1 = JSS.createStyleSheet(style$1);
1851
- const styleString$1 = sheet$1.toString();
2349
+ const sheet$2 = JSS.createStyleSheet(style$2);
2350
+ const styleString$2 = sheet$2.toString();
1852
2351
  const DocusignExpiredView = (props) => {
1853
- const { classes } = sheet$1;
2352
+ const { classes } = sheet$2;
1854
2353
  const { text } = props;
1855
2354
  return (index.h("div", null,
1856
- index.h("style", { type: "text/css" }, styleString$1),
2355
+ index.h("style", { type: "text/css" }, styleString$2),
1857
2356
  index.h("div", { class: classes.DocusignStatusContainer },
1858
2357
  index.h("sl-icon", { style: {
1859
2358
  width: "50px",
1860
2359
  height: "50px",
1861
- color: "var(--sqm-text)",
2360
+ color: "var(--sl-color-neutral-500)",
1862
2361
  }, name: "clock" }),
1863
2362
  index.h("div", { class: classes.MessageContainer },
1864
2363
  index.h("p", { style: { margin: "0" } }, text.docusignExpired)),
1865
2364
  index.h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
1866
2365
  };
1867
2366
  const DocusignErrorView = (props) => {
1868
- const { classes } = sheet$1;
2367
+ const { classes } = sheet$2;
1869
2368
  const { text } = props;
1870
2369
  return (index.h("div", null,
1871
- index.h("style", { type: "text/css" }, styleString$1),
2370
+ index.h("style", { type: "text/css" }, styleString$2),
1872
2371
  index.h("div", { class: classes.DocusignStatusContainer },
1873
2372
  index.h("sl-icon", { style: {
1874
2373
  width: "50px",
1875
2374
  height: "50px",
1876
- color: "var(--sqm-text)",
2375
+ color: "var(--sl-color-gray-500)",
1877
2376
  }, name: "exclamation-octagon" }),
1878
2377
  index.h("div", { class: classes.MessageContainer },
1879
2378
  index.h("p", { style: { margin: "0" } }, text.docusignError)),
1880
2379
  index.h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
1881
2380
  };
1882
2381
  const DocusignLoadingView = () => {
1883
- const { classes } = sheet$1;
2382
+ const { classes } = sheet$2;
1884
2383
  return (index.h("div", null,
1885
- index.h("style", { type: "text/css" }, styleString$1),
2384
+ index.h("style", { type: "text/css" }, styleString$2),
1886
2385
  index.h("div", { class: classes.DocusignStatusContainer },
1887
2386
  index.h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } }))));
1888
2387
  };
1889
2388
  const DocusignIframe = ({ states, data, callbacks, text, }) => {
1890
- const { classes } = sheet$1;
1891
- const [iFrameHeight, setiFrameHeight] = domContextHooks_module.useState("100%");
2389
+ const { classes } = sheet$2;
2390
+ const [iFrameHeight, setiFrameHeight] = stencilHooks_module.useState("100%");
1892
2391
  const allowedDomains = [
1893
2392
  "referralsaasquatch.com",
1894
2393
  "impacttech.complysandbox.com",
@@ -1901,11 +2400,11 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
1901
2400
  if (typeof e.data === "number") {
1902
2401
  setiFrameHeight(e.data + "px");
1903
2402
  }
1904
- if (e.data === "Complyexchange Thank you page Load") {
2403
+ if (e.data === "Complyexchange Thank you page Load" && !states.loading) {
1905
2404
  callbacks.completeDocument();
1906
2405
  }
1907
2406
  }, []);
1908
- domContextHooks_module.useEffect(() => {
2407
+ stencilHooks_module.useEffect(() => {
1909
2408
  window.addEventListener("message", callback, false);
1910
2409
  return () => {
1911
2410
  window.removeEventListener("message", callback, false);
@@ -1920,12 +2419,12 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
1920
2419
  return index.h(DocusignExpiredView, { text: text });
1921
2420
  // Wrap iFrame with container that shares the same height to push other elements down when absolute positioned
1922
2421
  return (index.h("div", { style: { height: iFrameHeight } },
1923
- index.h("style", { type: "text/css" }, styleString$1),
2422
+ index.h("style", { type: "text/css" }, styleString$2),
1924
2423
  index.h("div", { class: classes.IFrameContainer },
1925
2424
  index.h("iframe", { scrolling: "yes", frameBorder: "0", width: "100%", src: data.documentUrl, height: iFrameHeight }))));
1926
2425
  };
1927
2426
 
1928
- const style$2 = {
2427
+ const style$3 = {
1929
2428
  ModalTitleContainer: {
1930
2429
  display: "flex",
1931
2430
  gap: "var(--sl-spacing-small)",
@@ -1962,7 +2461,7 @@ const style$2 = {
1962
2461
  gap: "8px",
1963
2462
  },
1964
2463
  ErrorText: {
1965
- color: "var(--sqm-danger-color-icon)",
2464
+ color: "var(--sl-color-danger-500)",
1966
2465
  marginTop: "10px",
1967
2466
  },
1968
2467
  DescriptionText: {
@@ -1971,6 +2470,44 @@ const style$2 = {
1971
2470
  BoldText: {
1972
2471
  fontWeight: "bold",
1973
2472
  },
2473
+ SecondaryBtn: {
2474
+ "&::part(base)": {
2475
+ color: "var(--sl-color-gray-800) !important",
2476
+ },
2477
+ "&::part(label)": {
2478
+ padding: "0px",
2479
+ margin: "0px",
2480
+ },
2481
+ },
2482
+ ErrorAlertContainer: {
2483
+ "&::part(base)": {
2484
+ backgroundColor: "var(--sl-color-red-100)",
2485
+ borderTop: "none",
2486
+ padding: "0 16px",
2487
+ },
2488
+ "& sl-icon::part(base)": {
2489
+ color: "var(--sl-color-danger-500)",
2490
+ },
2491
+ },
2492
+ InfoAlert: {
2493
+ "&::part(base)": {
2494
+ backgroundColor: "transparent",
2495
+ borderTop: "none",
2496
+ padding: "0px",
2497
+ marginBottom: "16px",
2498
+ border: "none",
2499
+ },
2500
+ "&::part(message)": {
2501
+ display: "flex",
2502
+ alignItems: "center",
2503
+ justifyContent: "flex-start",
2504
+ padding: "10px",
2505
+ height: "max-content",
2506
+ },
2507
+ "& sl-icon::part(base)": {
2508
+ color: "var(--sl-color-sky-500)",
2509
+ },
2510
+ },
1974
2511
  Container: {
1975
2512
  width: "100%",
1976
2513
  display: "flex",
@@ -1978,6 +2515,16 @@ const style$2 = {
1978
2515
  flexDirection: "column",
1979
2516
  gap: "16px",
1980
2517
  },
2518
+ Link: {
2519
+ color: "var(--sl-color-sky-500)",
2520
+ textDecoration: "none",
2521
+ "&:visited": {
2522
+ color: "var(--sl-color-sky-500)",
2523
+ },
2524
+ "&:hover": {
2525
+ textDecoration: "underline",
2526
+ },
2527
+ },
1981
2528
  CheckboxWrapper: {
1982
2529
  display: "flex",
1983
2530
  justifyContent: "flex-start",
@@ -1991,7 +2538,7 @@ const style$2 = {
1991
2538
  fontSize: "var(--sl-font-size-small)",
1992
2539
  },
1993
2540
  PageDescriptionText: {
1994
- color: "var(--sqm-text-subdued)",
2541
+ color: "var(--sl-color-neutral-500)",
1995
2542
  fontSize: "var(--sl-font-size-medium)",
1996
2543
  },
1997
2544
  Dialog: {
@@ -2017,38 +2564,41 @@ const style$2 = {
2017
2564
  },
2018
2565
  DialogButton: { margin: "auto", width: "100%" },
2019
2566
  };
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
- }
2026
-
2027
- * {
2028
- margin: 0;
2029
- padding: 0;
2030
- box-sizing: border-box;
2031
- }
2567
+ const sheet$3 = JSS.createStyleSheet(style$3);
2568
+ const styleString$3 = sheet$3.toString();
2569
+ const vanillaStyle$2 = `
2570
+ :host{
2571
+ display: block;
2572
+ }
2573
+ * {
2574
+ margin: 0;
2575
+ padding: 0;
2576
+ box-sizing: border-box;
2577
+ }
2032
2578
 
2033
- a {
2034
- color: inherit;
2035
- text-decoration: underline;
2036
- cursor: pointer;
2037
- }
2579
+ p {
2580
+ line-height: 18px;
2581
+ color: var(--sl-color-gray-800);
2582
+ font-size: var(--sl-font-size-small);
2583
+ }
2584
+
2585
+ a {
2586
+ cursor: pointer;
2587
+ }
2038
2588
 
2039
2589
 
2040
2590
  `;
2041
2591
  const DocusignFormView = (props) => {
2042
2592
  var _a;
2043
2593
  const { states, states: { formState, documentTypeString }, callbacks, text, slots, } = props;
2044
- const { classes } = sheet$2;
2594
+ const { classes } = sheet$3;
2045
2595
  return (index.h("div", { class: classes.Container },
2046
2596
  index.h("style", { type: "text/css" },
2047
- styleString$2,
2048
- vanillaStyle$1),
2049
- index.h("sl-dialog", { class: sheet$2.classes.Dialog, open: states.showModal, "onSl-hide": callbacks.onModalClose },
2597
+ styleString$3,
2598
+ vanillaStyle$2),
2599
+ index.h("sl-dialog", { class: sheet$3.classes.Dialog, open: states.showModal, "onSl-hide": callbacks.onModalClose },
2050
2600
  index.h("div", { class: classes.ModalTitleContainer, slot: "label" },
2051
- index.h("sl-icon", { name: "info-circle", style: { color: "var(--sqm-informative-color-icon)" } }),
2601
+ index.h("sl-icon", { name: "info-circle", style: { color: "var(--sl-color-info-500)" } }),
2052
2602
  index.h("h2", { style: { fontSize: "var(--sl-font-size-large)" } }, text.modalTitle)),
2053
2603
  index.h("p", null, global.intl.formatMessage({
2054
2604
  id: "modalText",
@@ -2056,26 +2606,30 @@ const DocusignFormView = (props) => {
2056
2606
  }, {
2057
2607
  br: index.h("br", null),
2058
2608
  })),
2059
- index.h("sl-button", { slot: "footer", type: "primary", class: sheet$2.classes.DialogButton, onClick: callbacks.onModalClose, exportparts: "base: primarybutton-base" }, text.modalButtonText)),
2609
+ index.h("sl-button", { slot: "footer", type: "primary", class: sheet$3.classes.DialogButton, onClick: callbacks.onModalClose, exportparts: "base: primarybutton-base" }, text.modalButtonText)),
2060
2610
  index.h("div", { class: classes.TextContainer },
2061
2611
  index.h("div", null,
2062
2612
  !states.hideSteps && (index.h("p", null, global.intl.formatMessage({
2063
2613
  id: "formStep",
2064
2614
  defaultMessage: text.formStep,
2065
- }, { step: states.step, count: data.FORM_STEPS }))),
2615
+ }, { step: states.step, count: FORM_STEPS }))),
2066
2616
  index.h("h3", null, text.taxForm),
2067
2617
  index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
2068
2618
  states.loadingError && (index.h("div", null,
2069
- index.h("sqm-form-message", { type: "error" },
2070
- index.h("p", { part: "alert-title" }, text.error.loadingErrorAlertHeader),
2619
+ index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$3.classes.ErrorAlertContainer },
2620
+ index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
2621
+ index.h("strong", null, text.error.loadingErrorAlertHeader),
2622
+ index.h("br", null),
2071
2623
  global.intl.formatMessage({
2072
2624
  id: "loadingErrorAlertDescription",
2073
2625
  defaultMessage: text.error.loadingErrorAlertDescription,
2074
2626
  }, {
2075
2627
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
2076
2628
  })))),
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),
2629
+ ((_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 },
2630
+ index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
2631
+ index.h("strong", null, text.error.generalTitle),
2632
+ index.h("br", null),
2079
2633
  global.intl.formatMessage({
2080
2634
  id: "generalDescription",
2081
2635
  defaultMessage: text.error.generalDescription,
@@ -2135,7 +2689,7 @@ const DocusignForm = class {
2135
2689
  * @uiName W-8 BEN-E tax form description
2136
2690
  * @uiWidget textArea
2137
2691
  */
2138
- this.taxFormDescriptionBusinessEntity = "Participants residing outside of the US who represent a business entity need to submit a {documentType} form.";
2692
+ this.taxFormDescriptionBusinessEntity = "Participants residing outside of the US working with a US Brand need to submit a {documentType} form.";
2139
2693
  /**
2140
2694
  * This appears inside the Docusign frame.
2141
2695
  * @uiName Docusign session expired messag
@@ -2218,7 +2772,7 @@ const DocusignForm = class {
2218
2772
  * @uiName Information modal button text
2219
2773
  */
2220
2774
  this.modalButtonText = "I understand";
2221
- domContextHooks_module.h$1(this);
2775
+ stencilHooks_module.h$1(this);
2222
2776
  }
2223
2777
  disconnectedCallback() { }
2224
2778
  getTextProps() {
@@ -2255,11 +2809,11 @@ const DocusignForm = class {
2255
2809
  get el() { return index.getElement(this); }
2256
2810
  };
2257
2811
  function useDocusignFormDemo(props) {
2258
- const setStep = index_module.En(data.TAX_CONTEXT_NAMESPACE);
2812
+ const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
2259
2813
  return cjs.cjs({
2260
2814
  text: props.getTextProps(),
2261
2815
  states: {
2262
- step: "3",
2816
+ step: "4",
2263
2817
  disabled: false,
2264
2818
  submitDisabled: false,
2265
2819
  loading: false,
@@ -2295,7 +2849,7 @@ const DemoDocusignIframe = ({ callbacks }) => {
2295
2849
  return (index.h("div", { style: {
2296
2850
  width: "100%",
2297
2851
  height: "600px",
2298
- background: "inherit",
2852
+ background: "#fafafa",
2299
2853
  display: "flex",
2300
2854
  justifyContent: "center",
2301
2855
  alignItems: "center",
@@ -2307,7 +2861,7 @@ const DemoDocusignIframe = ({ callbacks }) => {
2307
2861
  } }, 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")))));
2308
2862
  };
2309
2863
 
2310
- const style$3 = {
2864
+ const style$4 = {
2311
2865
  FormWrapper: {
2312
2866
  display: "flex",
2313
2867
  justifyContent: "flex-start",
@@ -2319,7 +2873,6 @@ const style$3 = {
2319
2873
  justifyContent: "flex-start",
2320
2874
  flexDirection: "column",
2321
2875
  gap: "var(--sl-spacing-medium)",
2322
- marginBottom: "16px",
2323
2876
  "& sl-radio::part(base)": {
2324
2877
  alignItems: "start",
2325
2878
  },
@@ -2360,76 +2913,86 @@ const style$3 = {
2360
2913
  marginTop: "10px",
2361
2914
  },
2362
2915
  DescriptionText: {
2363
- color: "var(--sqm-text-subdued)",
2916
+ color: "var(--sl-color-neutral-500)",
2364
2917
  },
2365
- InfoWarningIcon: {
2366
- height: "26px",
2367
- width: "26px",
2918
+ SecondaryBtn: {
2919
+ "&::part(base)": {
2920
+ color: "var(--sl-color-gray-800) !important",
2921
+ },
2368
2922
  },
2369
- PageDescriptionText: {
2370
- color: "var(--sqm-text-subdued)",
2371
- fontSize: "var(--sl-font-size-medium)",
2372
- marginBottom: "var(--sl-spacing-small)",
2923
+ AlertContainer: {
2924
+ "&::part(base)": {
2925
+ backgroundColor: "var(--sl-color-red-100)",
2926
+ borderTop: "none",
2927
+ padding: "0 16px",
2928
+ },
2929
+ "& sl-icon::part(base)": {
2930
+ color: "var(--sl-color-danger-500)",
2931
+ },
2373
2932
  },
2374
- PrimaryButton: {
2933
+ PartnerAlertContainer: {
2375
2934
  "&::part(base)": {
2376
- background: "var(--sqm-primary-button-background)",
2377
- color: "var(--sqm-primary-button-color)",
2378
- borderColor: "var(--sqm-primary-button-color-border)",
2379
- borderRadius: "var(--sqm-primary-button-radius)",
2935
+ backgroundColor: "var(--sl-color-sky-100)",
2936
+ borderTop: "none",
2937
+ padding: "0 16px",
2380
2938
  },
2381
- "&::part(base):hover": {
2382
- background: "var(--sqm-primary-button-background-hover)",
2939
+ "& sl-icon::part(base)": {
2940
+ color: "var(--sl-color-blue-500)",
2383
2941
  },
2384
2942
  },
2385
- SecondaryButton: {
2943
+ InfoAlert: {
2944
+ marginTop: "var(--sl-spacing-large)",
2386
2945
  "&::part(base)": {
2387
- background: "var(--sqm-secondary-button-background)",
2388
- color: "var(--sqm-secondary-button-color)",
2389
- borderColor: "var(--sqm-secondary-button-color-border)",
2390
- borderRadius: "var(--sqm-secondary-button-radius)",
2391
- width: "max-content",
2392
- display: "flex",
2393
- margin: "auto",
2946
+ backgroundColor: "transparent",
2947
+ borderTop: "none",
2948
+ padding: "0px",
2949
+ border: "none",
2950
+ },
2951
+ "&::part(message)": {
2952
+ alignItems: "center",
2953
+ padding: "var(--sl-spacing-small)",
2954
+ whiteSpace: "nowrap",
2394
2955
  },
2395
- "&::part(base):hover": {
2396
- color: "var(--sqm-text)",
2397
- background: "var(--sqm-secondary-button-background-hover)",
2956
+ "& sl-icon::part(base)": {
2957
+ color: "var(--sl-color-yellow-500)",
2398
2958
  },
2399
2959
  },
2960
+ InfoWarningIcon: {
2961
+ height: "26px",
2962
+ width: "26px",
2963
+ },
2964
+ PageDescriptionText: {
2965
+ color: "var(--sl-color-neutral-500)",
2966
+ fontSize: "var(--sl-font-size-medium)",
2967
+ marginBottom: "var(--sl-spacing-small)",
2968
+ },
2400
2969
  };
2401
- const sheet$3 = JSS.createStyleSheet(style$3);
2402
- const styleString$3 = sheet$3.toString();
2403
- const vanillaStyle$2 = `
2970
+ const sheet$4 = JSS.createStyleSheet(style$4);
2971
+ const styleString$4 = sheet$4.toString();
2972
+ const vanillaStyle$3 = `
2404
2973
  :host{
2405
2974
  display: block;
2406
2975
  }
2407
-
2408
- hr {
2409
- border: var(--sqm-border-thickness, 1px) solid var(--sqm-border-color);
2410
- }
2411
-
2412
- a {
2413
- color: inherit;
2414
- text-decoration: underline;
2415
- cursor: pointer;
2416
- }
2417
-
2418
2976
  * {
2419
2977
  margin: 0;
2420
2978
  padding: 0;
2421
2979
  box-sizing: border-box;
2422
2980
  }
2423
2981
 
2982
+ p {
2983
+ line-height: 18px;
2984
+ color: var(--sl-color-gray-800);
2985
+ font-size: var(--sl-font-size-small);
2986
+ }
2424
2987
  `;
2425
2988
  const IndirectTaxFormView = (props) => {
2426
2989
  var _a;
2427
2990
  const { states, states: { formState }, callbacks, text, refs, slots, } = props;
2428
- const { classes } = sheet$3;
2991
+ const { classes } = sheet$4;
2429
2992
  return (index.h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
2430
2993
  index.h("style", { type: "text/css" },
2431
- styleString$3,
2432
- vanillaStyle$2),
2994
+ styleString$4,
2995
+ vanillaStyle$3),
2433
2996
  index.h("div", { class: classes.TextContainer },
2434
2997
  index.h("div", null,
2435
2998
  !states.hideSteps && (index.h("p", null,
@@ -2437,29 +3000,35 @@ const IndirectTaxFormView = (props) => {
2437
3000
  global.intl.formatMessage({
2438
3001
  id: "formStep",
2439
3002
  defaultMessage: text.formStep,
2440
- }, { step: states.step, count: data.FORM_STEPS }))),
3003
+ }, { step: states.step, count: FORM_STEPS }))),
2441
3004
  index.h("h3", null, text.indirectTax),
2442
3005
  index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription),
2443
3006
  index.h("p", { class: classes.DescriptionText }, text.indirectTaxDescription)),
2444
3007
  states.loadingError && (index.h("div", null,
2445
- index.h("sqm-form-message", { type: "error" },
2446
- index.h("p", { part: "alert-title" }, text.error.loadingErrorAlertHeader),
3008
+ index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.AlertContainer },
3009
+ index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
3010
+ index.h("strong", null, text.error.loadingErrorAlertHeader),
3011
+ index.h("br", null),
2447
3012
  global.intl.formatMessage({
2448
3013
  id: "loadingErrorAlertDescription",
2449
3014
  defaultMessage: text.error.loadingErrorAlertDescription,
2450
3015
  }, {
2451
3016
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
2452
3017
  })))),
2453
- ((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sqm-form-message", { type: "error" },
2454
- index.h("p", { part: "alert-title" }, text.error.generalTitle),
3018
+ ((_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 },
3019
+ index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
3020
+ index.h("strong", null, text.error.generalTitle),
3021
+ index.h("br", null),
2455
3022
  global.intl.formatMessage({
2456
3023
  id: "generalDescription",
2457
3024
  defaultMessage: text.error.generalDescription,
2458
3025
  }, {
2459
3026
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
2460
3027
  }))),
2461
- states.isPartner && (index.h("sqm-form-message", { type: "info" },
2462
- index.h("p", { part: "alert-title" }, text.isPartnerAlertHeader),
3028
+ states.isPartner && (index.h("sl-alert", { type: "primary", open: true, class: sheet$4.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
3029
+ index.h("sl-icon", { slot: "icon", name: "info-circle" }),
3030
+ index.h("strong", null, text.isPartnerAlertHeader),
3031
+ index.h("br", null),
2463
3032
  global.intl.formatMessage({
2464
3033
  id: "isPartnerAlertDescription",
2465
3034
  defaultMessage: text.isPartnerAlertDescription,
@@ -2480,15 +3049,17 @@ const IndirectTaxFormView = (props) => {
2480
3049
  text.otherRegion,
2481
3050
  index.h("p", { class: classes.DescriptionText }, text.otherRegionSubtext))),
2482
3051
  slots.registeredInDifferentCountryDetailsSlot)),
2483
- index.h("sqm-form-message", { type: "info" }, global.intl.formatMessage({
2484
- id: "cannotChangeInfoAlert",
2485
- defaultMessage: text.cannotChangeInfoAlert,
2486
- }, {
2487
- supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
2488
- })),
3052
+ index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "primary", open: true, class: classes.InfoAlert },
3053
+ index.h("sl-icon", { class: classes.InfoWarningIcon, slot: "icon", name: "exclamation-triangle" }),
3054
+ global.intl.formatMessage({
3055
+ id: "cannotChangeInfoAlert",
3056
+ defaultMessage: text.cannotChangeInfoAlert,
3057
+ }, {
3058
+ supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
3059
+ })),
2489
3060
  index.h("div", { class: classes.BtnContainer },
2490
- index.h("sl-button", { class: classes.PrimaryButton, type: "primary", disabled: states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton),
2491
- index.h("sl-button", { class: classes.SecondaryButton, type: "text", disabled: states.disabled, onClick: callbacks.onBack, exportparts: "base: secondarybutton-base" }, text.backButton))))));
3061
+ index.h("sl-button", { type: "primary", disabled: states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton),
3062
+ index.h("sl-button", { class: classes.SecondaryBtn, type: "text", disabled: states.disabled, onClick: callbacks.onBack, exportparts: "base: secondarybutton-base" }, text.backButton))))));
2492
3063
  };
2493
3064
 
2494
3065
  const CONNECT_PARTNER = index_module.dist.gql `
@@ -2531,30 +3102,34 @@ function useIndirectTaxForm(props) {
2531
3102
  var _a, _b, _c, _d, _e;
2532
3103
  const user = index_module.J();
2533
3104
  const locale = index_module.L();
2534
- const formRef = domContextHooks_module.useRef(null);
2535
- const context = index_module.Fn(data.TAX_FORM_CONTEXT_NAMESPACE);
2536
- const [step, setStep] = index_module.Pn(data.TAX_CONTEXT_NAMESPACE);
3105
+ const formRef = stencilHooks_module.useRef(null);
3106
+ const context = index_module.Fn(TAX_FORM_CONTEXT_NAMESPACE);
3107
+ const [step, setStep] = index_module.Pn(TAX_CONTEXT_NAMESPACE);
2537
3108
  const [connectImpactPartner, { loading: connectLoading, errors: connectErrors },] = index_module.$e(CONNECT_PARTNER);
2538
- const userForm = index_module.Fn(data.USER_FORM_CONTEXT_NAMESPACE);
2539
- const { data: userData, refetch, errors: userError, } = index_module.$n(data.USER_QUERY_NAMESPACE);
2540
- const { data: _countriesRes, loading: countriesLoading } = index_module.$n(data.COUNTRIES_QUERY_NAMESPACE);
3109
+ const userForm = index_module.Fn(USER_FORM_CONTEXT_NAMESPACE);
3110
+ const { data: userData, refetch, errors: userError, } = index_module.$n(USER_QUERY_NAMESPACE);
3111
+ const { data: _countriesRes, loading: countriesLoading } = index_module.$n(COUNTRIES_QUERY_NAMESPACE);
2541
3112
  const intlLocale = (locale === null || locale === void 0 ? void 0 : locale.replace("_", "-")) || "en";
2542
- 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]);
2543
- const [loading, setLoading] = domContextHooks_module.useState(false);
2544
- const [formState, setFormState] = domContextHooks_module.useState({});
2545
- const [errors, setErrors] = domContextHooks_module.useState({});
2546
- const [countrySearch, setCountrySearch] = domContextHooks_module.useState("");
2547
- const [filteredCountries, setFilteredCountries] = domContextHooks_module.useState(_countries || []);
2548
- const [option, setOption] = domContextHooks_module.useState("notRegistered");
3113
+ 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]);
3114
+ const [loading, setLoading] = stencilHooks_module.useState(false);
3115
+ const [formState, setFormState] = stencilHooks_module.useState({});
3116
+ const [errors, setErrors] = stencilHooks_module.useState({});
3117
+ const [countrySearch, setCountrySearch] = stencilHooks_module.useState("");
3118
+ const [filteredCountries, setFilteredCountries] = stencilHooks_module.useState(_countries || []);
3119
+ const [option, setOption] = stencilHooks_module.useState("notRegistered");
2549
3120
  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;
2550
- domContextHooks_module.useEffect(() => {
3121
+ stencilHooks_module.useEffect(() => {
3122
+ // reset redirect hash
3123
+ window.location.hash = "";
3124
+ }, []);
3125
+ stencilHooks_module.useEffect(() => {
2551
3126
  var _a;
2552
3127
  if (!((_a = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _a === void 0 ? void 0 : _a.indirectTaxCountryCode))
2553
3128
  return;
2554
3129
  const _option = getOption(_countries, publisher.taxInformation.indirectTaxCountryCode);
2555
3130
  setOption(_option);
2556
3131
  }, [publisher, _countries]);
2557
- domContextHooks_module.useEffect(() => {
3132
+ stencilHooks_module.useEffect(() => {
2558
3133
  if (countrySearch.trim() === "") {
2559
3134
  setFilteredCountries(_countries || []);
2560
3135
  }
@@ -2562,7 +3137,7 @@ function useIndirectTaxForm(props) {
2562
3137
  setFilteredCountries((_countries === null || _countries === void 0 ? void 0 : _countries.filter((c) => c.displayName.toLowerCase().includes(countrySearch.toLowerCase()))) || []);
2563
3138
  }
2564
3139
  }, [countrySearch, _countries]);
2565
- domContextHooks_module.useEffect(() => {
3140
+ stencilHooks_module.useEffect(() => {
2566
3141
  var _a, _b;
2567
3142
  const user = userData === null || userData === void 0 ? void 0 : userData.user;
2568
3143
  if (!user)
@@ -2654,7 +3229,7 @@ function useIndirectTaxForm(props) {
2654
3229
  await refetch();
2655
3230
  const resultPublisher = (_e = (_d = (_c = result
2656
3231
  .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;
2657
- const hasValidCurrentDocument = utils$1.validTaxDocument(resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) && (resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.currentTaxDocument);
3232
+ const hasValidCurrentDocument = sqmInvoiceTableView.validTaxDocument(resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) && (resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.currentTaxDocument);
2658
3233
  // Fire form change event
2659
3234
  window.dispatchEvent(new Event(usePayoutStatus.TAX_FORM_UPDATED_EVENT_KEY));
2660
3235
  if ((resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) &&
@@ -2709,10 +3284,10 @@ function useIndirectTaxForm(props) {
2709
3284
  })),
2710
3285
  },
2711
3286
  data: {
2712
- esRegions: IndirectTaxDetailsView.INDIRECT_TAX_SPAIN_REGIONS,
3287
+ esRegions: sqmInvoiceTableView.INDIRECT_TAX_SPAIN_REGIONS,
2713
3288
  countries: filteredCountries,
2714
3289
  allCountries: _countries,
2715
- provinces: IndirectTaxDetailsView.INDIRECT_TAX_PROVINCES,
3290
+ provinces: sqmInvoiceTableView.INDIRECT_TAX_PROVINCES,
2716
3291
  },
2717
3292
  text: props.getTextProps(),
2718
3293
  refs: {
@@ -2879,7 +3454,7 @@ const IndirectTaxForm = class {
2879
3454
  * @uiName Page description
2880
3455
  */
2881
3456
  this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
2882
- domContextHooks_module.h$1(this);
3457
+ stencilHooks_module.h$1(this);
2883
3458
  }
2884
3459
  disconnectedCallback() { }
2885
3460
  getTextProps() {
@@ -2914,7 +3489,7 @@ const IndirectTaxForm = class {
2914
3489
  const props = index_module.isDemo()
2915
3490
  ? useDemoIndirectTaxForm(this)
2916
3491
  : useIndirectTaxForm(this);
2917
- const registeredInDifferentCountryDetailsSlot = (index.h(IndirectTaxDetailsView.OtherRegionSlotView, { states: {
3492
+ const registeredInDifferentCountryDetailsSlot = (index.h(sqmInvoiceTableView.OtherRegionSlotView, { states: {
2918
3493
  hide: props.states.formState.checked !== "otherRegion",
2919
3494
  disabled: props.states.disabled || props.states.isPartner,
2920
3495
  formState: props.slotProps.formState,
@@ -2932,9 +3507,9 @@ const IndirectTaxForm = class {
2932
3507
  }
2933
3508
  };
2934
3509
  function useDemoIndirectTaxForm(props) {
2935
- const setStep = index_module.En(data.TAX_CONTEXT_NAMESPACE);
2936
- const [option, setOption] = domContextHooks_module.useState("otherRegion");
2937
- const [demoFormState, setDemoFormState] = domContextHooks_module.useState({});
3510
+ const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
3511
+ const [option, setOption] = stencilHooks_module.useState(null);
3512
+ const [demoFormState, setDemoFormState] = stencilHooks_module.useState({});
2938
3513
  return cjs.cjs({
2939
3514
  states: {
2940
3515
  step: "2",
@@ -2973,7 +3548,7 @@ function useDemoIndirectTaxForm(props) {
2973
3548
  setCountrySearch: (c) => console.log(c),
2974
3549
  },
2975
3550
  data: {
2976
- esRegions: IndirectTaxDetailsView.INDIRECT_TAX_SPAIN_REGIONS,
3551
+ esRegions: sqmInvoiceTableView.INDIRECT_TAX_SPAIN_REGIONS,
2977
3552
  countries: [
2978
3553
  {
2979
3554
  countryCode: "CA",
@@ -2992,7 +3567,7 @@ function useDemoIndirectTaxForm(props) {
2992
3567
  displayName: "United States",
2993
3568
  },
2994
3569
  ],
2995
- provinces: IndirectTaxDetailsView.INDIRECT_TAX_PROVINCES,
3570
+ provinces: sqmInvoiceTableView.INDIRECT_TAX_PROVINCES,
2996
3571
  },
2997
3572
  text: props.getTextProps(),
2998
3573
  refs: {
@@ -3014,27 +3589,7 @@ function useDemoIndirectTaxForm(props) {
3014
3589
  }, props.demoData || {}, { arrayMerge: (_, a) => a });
3015
3590
  }
3016
3591
 
3017
- const mockInvoiceData = (count = 4) => {
3018
- const data = [...Array(count)].map(() => getMockData());
3019
- return { data };
3020
- };
3021
- const getMockData = () => {
3022
- const today = luxon.luxon.DateTime.now();
3023
- const invoiceId = Math.random().toString(36).slice(2, 12);
3024
- const earnings = Math.floor(Math.random() * 100) + 1;
3025
- const indirectTax = Math.round(earnings * 0.2);
3026
- return {
3027
- downloadUrl: "https://example.com",
3028
- dateCreated: today.toMillis(),
3029
- invoiceId,
3030
- program: "my-program",
3031
- earnings: `$${earnings}.00`,
3032
- indirectTax: `$${indirectTax}.00`,
3033
- netEarnings: `$${earnings - indirectTax}.00`,
3034
- };
3035
- };
3036
-
3037
- const debug = domContextHooks_module.browser("sq:useInvoiceTable");
3592
+ const debug = stencilHooks_module.browser("sq:useInvoiceTable");
3038
3593
  const CSS_NAMESPACE = "sqm-invoice-table";
3039
3594
  const GET_INVOICES = index_module.dist.gql `
3040
3595
  query getUserTaxInfo($limit: Int!, $offset: Int!) {
@@ -3064,7 +3619,7 @@ function useInvoiceTable(props, emptyElement, loadingElement) {
3064
3619
  var _a;
3065
3620
  const user = index_module.J();
3066
3621
  const locale = index_module.L();
3067
- const [content, setContent] = domContextHooks_module.useReducer((state, next) => ({
3622
+ const [content, setContent] = stencilHooks_module.useReducer((state, next) => ({
3068
3623
  ...state,
3069
3624
  ...next,
3070
3625
  }), {
@@ -3108,7 +3663,7 @@ function useInvoiceTable(props, emptyElement, loadingElement) {
3108
3663
  // Set the content to render and finish loading components
3109
3664
  setContent({ columns, loading: false, page: states.currentPage });
3110
3665
  }
3111
- domContextHooks_module.useEffect(() => {
3666
+ stencilHooks_module.useEffect(() => {
3112
3667
  setContent({ loading: true });
3113
3668
  invoicesData && getComponentData(components);
3114
3669
  }, [invoicesData, components, tick]);
@@ -3182,6 +3737,26 @@ async function tryMethod(c, callback) {
3182
3737
  }
3183
3738
  }
3184
3739
 
3740
+ const mockInvoiceData = (count = 4) => {
3741
+ const data = [...Array(count)].map(() => getMockData());
3742
+ return { data };
3743
+ };
3744
+ const getMockData = () => {
3745
+ const today = luxon.luxon.DateTime.now();
3746
+ const invoiceId = Math.random().toString(36).slice(2, 12);
3747
+ const earnings = Math.floor(Math.random() * 100) + 1;
3748
+ const indirectTax = Math.round(earnings * 0.2);
3749
+ return {
3750
+ downloadUrl: "https://example.com",
3751
+ dateCreated: today.toMillis(),
3752
+ invoiceId,
3753
+ program: "my-program",
3754
+ earnings: `$${earnings}.00`,
3755
+ indirectTax: `$${indirectTax}.00`,
3756
+ netEarnings: `$${earnings - indirectTax}.00`,
3757
+ };
3758
+ };
3759
+
3185
3760
  const InvoiceTable = class {
3186
3761
  constructor(hostRef) {
3187
3762
  index.registerInstance(this, hostRef);
@@ -3215,7 +3790,7 @@ const InvoiceTable = class {
3215
3790
  this.emptyStateHeader = "View your invoice details";
3216
3791
  /** @uiName Empty invoice table description */
3217
3792
  this.emptyStateText = "Refer a friend to view the status of your invoices and rewards earned";
3218
- domContextHooks_module.h$1(this);
3793
+ stencilHooks_module.h$1(this);
3219
3794
  }
3220
3795
  disconnectedCallback() { }
3221
3796
  render() {
@@ -3225,7 +3800,7 @@ const InvoiceTable = class {
3225
3800
  ? useInvoiceTableDemo(this, empty, loading)
3226
3801
  : useInvoiceTable(this, empty, loading);
3227
3802
  reRender.useRequestRerender([this.perPage]);
3228
- return (index.h(IndirectTaxDetailsView.InvoiceTableView, { header: this.header, description: this.description }, index.h(GenericTableView.GenericTableView, { states: states, data: data, callbacks: callbacks, elements: elements })));
3803
+ return (index.h(sqmInvoiceTableView.InvoiceTableView, { header: this.header, description: this.description }, index.h(GenericTableView.GenericTableView, { states: states, data: data, callbacks: callbacks, elements: elements })));
3229
3804
  }
3230
3805
  };
3231
3806
  function EmptySlot(props) {
@@ -3238,7 +3813,7 @@ function LoadingRow() {
3238
3813
  return (index.h("sqm-table-row", null, index.h("sqm-table-cell", { colspan: 6 }, index.h("sl-skeleton", null))));
3239
3814
  }
3240
3815
  function useInvoiceTableDemo(props, emptyElement, loadingElement) {
3241
- const [content, setContent] = domContextHooks_module.useReducer((state, next) => ({
3816
+ const [content, setContent] = stencilHooks_module.useReducer((state, next) => ({
3242
3817
  ...state,
3243
3818
  ...next,
3244
3819
  }), {
@@ -3248,7 +3823,7 @@ function useInvoiceTableDemo(props, emptyElement, loadingElement) {
3248
3823
  page: 0,
3249
3824
  });
3250
3825
  const tick = reRender.useRerenderListener();
3251
- const mockData = domContextHooks_module.useMemo(() => { var _a; return ((_a = props.demoData) === null || _a === void 0 ? void 0 : _a.mockData) || mockInvoiceData(props.perPage); }, [props.perPage]);
3826
+ 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
3827
  const components = useChildElements.useChildElements();
3253
3828
  async function getComponentData(components) {
3254
3829
  const componentData = mockData.data.slice(0, props.perPage);
@@ -3291,7 +3866,7 @@ function useInvoiceTableDemo(props, emptyElement, loadingElement) {
3291
3866
  // Set the content to render and finish loading components
3292
3867
  setContent({ columns, loading: false, page: 0 });
3293
3868
  }
3294
- domContextHooks_module.useEffect(() => {
3869
+ stencilHooks_module.useEffect(() => {
3295
3870
  setContent({ loading: true });
3296
3871
  (mockData === null || mockData === void 0 ? void 0 : mockData.data) && getComponentData(components);
3297
3872
  }, [mockData === null || mockData === void 0 ? void 0 : mockData.data, components, tick]);
@@ -3327,10 +3902,22 @@ function useInvoiceTableDemo(props, emptyElement, loadingElement) {
3327
3902
  return demoProps;
3328
3903
  }
3329
3904
 
3905
+ const InvoiceTableDataCell = class {
3906
+ constructor(hostRef) {
3907
+ index.registerInstance(this, hostRef);
3908
+ this.ignored = true;
3909
+ stencilHooks_module.h$1(this);
3910
+ }
3911
+ disconnectedCallback() { }
3912
+ render() {
3913
+ return this.data;
3914
+ }
3915
+ };
3916
+
3330
3917
  const InvoiceTableDataColumn = class {
3331
3918
  constructor(hostRef) {
3332
3919
  index.registerInstance(this, hostRef);
3333
- domContextHooks_module.h$1(this);
3920
+ stencilHooks_module.h$1(this);
3334
3921
  }
3335
3922
  disconnectedCallback() { }
3336
3923
  async renderCell(data) {
@@ -3345,10 +3932,27 @@ const InvoiceTableDataColumn = class {
3345
3932
  }
3346
3933
  };
3347
3934
 
3935
+ const RewardTableDateCell = class {
3936
+ constructor(hostRef) {
3937
+ index.registerInstance(this, hostRef);
3938
+ this.ignored = true;
3939
+ this.locale = "en";
3940
+ stencilHooks_module.h$1(this);
3941
+ }
3942
+ disconnectedCallback() { }
3943
+ render() {
3944
+ var _a, _b;
3945
+ const date = !this.date
3946
+ ? "-"
3947
+ : (_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);
3948
+ return date;
3949
+ }
3950
+ };
3951
+
3348
3952
  const InvoiceTableDateColumn = class {
3349
3953
  constructor(hostRef) {
3350
3954
  index.registerInstance(this, hostRef);
3351
- domContextHooks_module.h$1(this);
3955
+ stencilHooks_module.h$1(this);
3352
3956
  }
3353
3957
  disconnectedCallback() { }
3354
3958
  async renderCell(data, options) {
@@ -3363,10 +3967,25 @@ const InvoiceTableDateColumn = class {
3363
3967
  }
3364
3968
  };
3365
3969
 
3970
+ const InvoiceTableDownloadCell = class {
3971
+ constructor(hostRef) {
3972
+ index.registerInstance(this, hostRef);
3973
+ this.ignored = true;
3974
+ stencilHooks_module.h$1(this);
3975
+ }
3976
+ disconnectedCallback() { }
3977
+ render() {
3978
+ const vanillaStyle = `svg:hover, svg:hover * {
3979
+ cursor: pointer;
3980
+ }`;
3981
+ 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" }))))));
3982
+ }
3983
+ };
3984
+
3366
3985
  const InvoiceTableGenericColumn = class {
3367
3986
  constructor(hostRef) {
3368
3987
  index.registerInstance(this, hostRef);
3369
- domContextHooks_module.h$1(this);
3988
+ stencilHooks_module.h$1(this);
3370
3989
  }
3371
3990
  disconnectedCallback() { }
3372
3991
  async renderCell(data) {
@@ -3385,17 +4004,17 @@ const PayPalIcon = () => (index.h("svg", { xmlns: "http://www.w3.org/2000/svg",
3385
4004
  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" }),
3386
4005
  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" })));
3387
4006
 
3388
- const style$4 = {
4007
+ const style$5 = {
3389
4008
  CardContainer: {
3390
4009
  display: "grid",
3391
4010
  gridTemplateColumns: "1fr",
3392
4011
  gridGap: "var(--sl-spacing-large)",
3393
- background: "inherit",
4012
+ background: "var(--sl-color-neutral-0)",
3394
4013
  boxShadow: "0px 2px 4px rgba(28, 28, 33, 0.12)",
3395
- borderRadius: "var(--sqm-border-radius-normal)",
4014
+ borderRadius: "4px",
3396
4015
  padding: "var(--sl-spacing-large)",
3397
4016
  minHeight: "150px",
3398
- border: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
4017
+ border: "1px solid var(--sl-color-gray-200)",
3399
4018
  maxWidth: "450px",
3400
4019
  },
3401
4020
  StatusContainer: {
@@ -3405,7 +4024,7 @@ const style$4 = {
3405
4024
  },
3406
4025
  MainCurrencyLabel: {
3407
4026
  fontWeight: "var(--sl-font-weight-normal)",
3408
- color: "var(--sqm-text-subdued)",
4027
+ color: "var(--sl-color-gray-500)",
3409
4028
  },
3410
4029
  MainCurrency: {
3411
4030
  margin: 0,
@@ -3414,12 +4033,12 @@ const style$4 = {
3414
4033
  },
3415
4034
  SubduedRegularText: {
3416
4035
  fontSize: "var(--sl-font-size-small)",
3417
- color: "var(--sqm-text-subdued)",
4036
+ color: "var(--sl-color-gray-500)",
3418
4037
  margin: 0,
3419
4038
  width: "auto",
3420
4039
  },
3421
4040
  PaypalEmail: {
3422
- borderRight: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
4041
+ borderRight: "1px solid var(--sl-color-gray-200)",
3423
4042
  paddingRight: "var(--sl-spacing-small)",
3424
4043
  "@media (max-width: 499px)": {
3425
4044
  borderRight: "none",
@@ -3427,7 +4046,7 @@ const style$4 = {
3427
4046
  },
3428
4047
  },
3429
4048
  PaypalDetailsContainer: {
3430
- color: "var(--sqm-text-subdued)",
4049
+ color: "var(--sl-color-gray-500)",
3431
4050
  display: "flex",
3432
4051
  gap: "var(--sl-spacing-small)",
3433
4052
  justifyContent: "flex-start",
@@ -3448,7 +4067,7 @@ const style$4 = {
3448
4067
  },
3449
4068
  },
3450
4069
  AccountDetailsContainer: {
3451
- color: "var(--sqm-text-subdued)",
4070
+ color: "var(--sl-color-gray-500)",
3452
4071
  display: "flex",
3453
4072
  gap: "var(--sl-spacing-small)",
3454
4073
  justifyContent: "flex-start",
@@ -3461,7 +4080,7 @@ const style$4 = {
3461
4080
  gap: "var(--sl-spacing-xx-small) var(--sl-spacing-small)",
3462
4081
  paddingTop: "var(--sq-spacing-xx-small)",
3463
4082
  "& > :not(:last-child)": {
3464
- borderRight: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
4083
+ borderRight: "1px solid var(--sl-color-gray-200)",
3465
4084
  },
3466
4085
  "& > :nth-child(3)": {
3467
4086
  border: "none",
@@ -3478,7 +4097,7 @@ const style$4 = {
3478
4097
  },
3479
4098
  W9Container: {
3480
4099
  paddingTop: "var(--sl-spacing-large)",
3481
- borderTop: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
4100
+ borderTop: "1px solid var(--sl-color-gray-200)",
3482
4101
  },
3483
4102
  SkeletonOne: {
3484
4103
  width: "25%",
@@ -3492,22 +4111,26 @@ const style$4 = {
3492
4111
  width: "50%",
3493
4112
  height: "34px",
3494
4113
  },
3495
- SuccessBadge: {
4114
+ Alert: {
3496
4115
  "&::part(base)": {
3497
- textAlign: "center",
3498
- whiteSpace: "pre-line",
3499
- background: "var(--sqm-success-color-icon)",
3500
- color: "var(--sl-color-white)",
4116
+ backgroundColor: "var(--sl-color-warning-100)",
4117
+ border: "1px solid var(--sl-color-warning-200)",
4118
+ padding: "0 16px",
3501
4119
  },
3502
- },
3503
- PrimaryBadge: {
3504
- "&::part(base)": {
3505
- textAlign: "center",
3506
- whiteSpace: "pre-line",
3507
- background: "var(--sqm-informative-color-icon)",
3508
- color: "var(--sl-color-white)",
4120
+ "& sl-icon": {
4121
+ margin: 0,
4122
+ },
4123
+ "& sl-icon::part(base)": {
4124
+ color: "var(--sl-color-warning-500)",
4125
+ margin: 0,
3509
4126
  },
3510
4127
  },
4128
+ AlertContent: {
4129
+ display: "flex",
4130
+ alignItems: "flex-start",
4131
+ justifyContent: "flex-start",
4132
+ flexDirection: "column",
4133
+ },
3511
4134
  Container: {
3512
4135
  display: "flex",
3513
4136
  flexDirection: "column",
@@ -3515,7 +4138,7 @@ const style$4 = {
3515
4138
  },
3516
4139
  };
3517
4140
  function PayoutDetailsCardView(props) {
3518
- const sheet = JSS.createStyleSheet(style$4);
4141
+ const sheet = JSS.createStyleSheet(style$5);
3519
4142
  const styleString = sheet.toString();
3520
4143
  const { classes } = sheet;
3521
4144
  const { states, text } = props;
@@ -3529,14 +4152,13 @@ function PayoutDetailsCardView(props) {
3529
4152
  };
3530
4153
  const renderStatusBadge = (status, statusBadgeText) => {
3531
4154
  const badgeType = status === "nextPayout" ? "success" : "primary";
3532
- const badgeClass = badgeType === "success" ? classes.SuccessBadge : classes.PrimaryBadge;
3533
4155
  const statusText = global.intl.formatMessage({
3534
4156
  id: "badgeText",
3535
4157
  defaultMessage: statusBadgeText,
3536
4158
  }, {
3537
4159
  badgeText: status,
3538
4160
  });
3539
- return (index.h("sl-badge", { pill: true, class: badgeClass }, statusText));
4161
+ return (index.h("sl-badge", { pill: true, type: badgeType }, statusText));
3540
4162
  };
3541
4163
  const thresholdText = global.intl.formatMessage({
3542
4164
  id: "thresholdText",
@@ -3567,8 +4189,8 @@ function PayoutDetailsCardView(props) {
3567
4189
 
3568
4190
  function usePayoutDetailsCard(props) {
3569
4191
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
3570
- const { data: data$1, loading } = index_module.$n(data.USER_QUERY_NAMESPACE);
3571
- 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;
4192
+ const { data, loading } = index_module.$n(USER_QUERY_NAMESPACE);
4193
+ 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;
3572
4194
  function getPayoutDetailedStatusText(paymentDay) {
3573
4195
  var _a;
3574
4196
  const currentDay = luxon.luxon.DateTime.now().day;
@@ -3627,83 +4249,1415 @@ const PayoutDetailsCard = class {
3627
4249
  constructor(hostRef) {
3628
4250
  index.registerInstance(this, hostRef);
3629
4251
  /**
3630
- * Badge text indicating payout status
3631
- * @uiName Payout badge status text
4252
+ * Badge text indicating payout status
4253
+ * @uiName Payout badge status text
4254
+ */
4255
+ this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
4256
+ /**
4257
+ * Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
4258
+ * @uiName Payout schedule by threshold text
4259
+ */
4260
+ this.thresholdPayoutText = "Next payout occurs when balance is {thresholdBalance}";
4261
+ /**
4262
+ * Shown before the participant’s bank account information.
4263
+ * @uiName Bank account field label
4264
+ */
4265
+ this.accountText = "Account";
4266
+ /**
4267
+ * Text displayed for existing publishers that do not have saved banking information.
4268
+ * @uiName Payout missing information subtext
4269
+ */
4270
+ this.payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
4271
+ stencilHooks_module.h$1(this);
4272
+ }
4273
+ disconnectedCallback() { }
4274
+ getTextProps() {
4275
+ const props = utils.getProps(this);
4276
+ return {
4277
+ ...props,
4278
+ };
4279
+ }
4280
+ render() {
4281
+ const props = index_module.isDemo()
4282
+ ? useDemoPayoutDetailsCard(this)
4283
+ : usePayoutDetailsCard(this);
4284
+ return (index.h(index.Host, null, index.h(PayoutDetailsCardView, { text: props.text, states: props.states })));
4285
+ }
4286
+ };
4287
+ function useDemoPayoutDetailsCard(props) {
4288
+ return cjs.cjs({
4289
+ states: {
4290
+ loading: false,
4291
+ error: false,
4292
+ thresholdBalance: "$50",
4293
+ mainCurrency: { currencyText: "USD", amountText: "100.00" },
4294
+ badgeStatus: "nextPayout",
4295
+ payoutType: "BANK_TRANSFER",
4296
+ nextPayoutDate: "March 14, 2024",
4297
+ paypalEmailAddress: "joesmith@example.com",
4298
+ otherCurrencies: false,
4299
+ hasW9Pending: false,
4300
+ hasDatePending: true,
4301
+ cardNumberPreview: "XX2381",
4302
+ balance: "20.00 USD",
4303
+ },
4304
+ text: props.getTextProps(),
4305
+ }, props.demoData || {}, { arrayMerge: (_, a) => a });
4306
+ }
4307
+
4308
+ const TableCell = class {
4309
+ constructor(hostRef) {
4310
+ index.registerInstance(this, hostRef);
4311
+ /** @uiName Column span */
4312
+ this.colspan = 1;
4313
+ /** @uiName Padding */
4314
+ this.padding = "15px 10px";
4315
+ }
4316
+ render() {
4317
+ return (index.h(index.Host, { style: { display: "contents" } }, index.h("td", { colSpan: this.colspan, style: { padding: this.padding } }, index.h("slot", null))));
4318
+ }
4319
+ };
4320
+
4321
+ const TableRow = class {
4322
+ constructor(hostRef) {
4323
+ index.registerInstance(this, hostRef);
4324
+ /**
4325
+ * @uiName Border
4326
+ */
4327
+ this.border = "1px solid #EAEAEA";
4328
+ }
4329
+ render() {
4330
+ return (index.h(index.Host, { style: { display: "contents" } }, index.h("tr", { style: { border: this.border } }, index.h("slot", null))));
4331
+ }
4332
+ };
4333
+
4334
+ function getCurrentStep(user) {
4335
+ var _a, _b;
4336
+ if (!((_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.connected) || !((_b = user.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher)) {
4337
+ return "/1";
4338
+ }
4339
+ const { requiredTaxDocumentType, currentTaxDocument, withdrawalSettings, brandedSignup, payoutsAccount, } = user.impactConnection.publisher;
4340
+ // If they do have a required document, look at current document
4341
+ if (requiredTaxDocumentType && !currentTaxDocument) {
4342
+ // Specific to custom CASH setting,
4343
+ if (payoutsAccount.hold &&
4344
+ payoutsAccount.holdReasons.includes("NO_W9_DOCUMENT"))
4345
+ return "/dashboard";
4346
+ return "/3";
4347
+ }
4348
+ if (!withdrawalSettings && brandedSignup)
4349
+ return "/4";
4350
+ return "/dashboard";
4351
+ }
4352
+ function useTaxAndCash() {
4353
+ var _a, _b, _c, _d, _e;
4354
+ const host = index_module._();
4355
+ const user = index_module.J();
4356
+ const locale = index_module.L();
4357
+ // State for current step of form
4358
+ const [step, setStep] = index_module.In({
4359
+ namespace: TAX_CONTEXT_NAMESPACE,
4360
+ initialValue: "/loading",
4361
+ });
4362
+ // State for when to hide steps, or override certain actions
4363
+ const [context, _setContext] = index_module.In({
4364
+ namespace: TAX_FORM_CONTEXT_NAMESPACE,
4365
+ initialValue: {},
4366
+ });
4367
+ // State to carry user form information into step 2
4368
+ const [userFormContext, _setUserFormContext] = index_module.In({
4369
+ namespace: USER_FORM_CONTEXT_NAMESPACE,
4370
+ initialValue: {
4371
+ firstName: undefined,
4372
+ lastName: undefined,
4373
+ email: undefined,
4374
+ countryCode: undefined,
4375
+ currency: undefined,
4376
+ },
4377
+ });
4378
+ const [_currenciesContext, setCurrenciesContext] = index_module.In({
4379
+ namespace: CURRENCIES_NAMESPACE,
4380
+ initialValue: [],
4381
+ });
4382
+ const [_countriesContext, _setCountriesContext] = index_module.In({
4383
+ namespace: COUNTRIES_NAMESPACE,
4384
+ initialValue: [],
4385
+ });
4386
+ const [_sortedCountriesContext, setSortedCountriesContext] = index_module.In({
4387
+ namespace: SORTED_COUNTRIES_NAMESPACE,
4388
+ initialValue: [],
4389
+ });
4390
+ const { data, errors } = index_module.Sn({
4391
+ namespace: USER_QUERY_NAMESPACE,
4392
+ query: GET_USER,
4393
+ skip: !user,
4394
+ options: {
4395
+ batch: false,
4396
+ },
4397
+ });
4398
+ 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) ||
4399
+ userFormContext.countryCode;
4400
+ index_module.Sn({
4401
+ namespace: COUNTRIES_QUERY_NAMESPACE,
4402
+ query: GET_COUNTRIES,
4403
+ skip: !user,
4404
+ });
4405
+ const { data: financeNetworkData, refetch } = index_module.Sn({
4406
+ namespace: FINANCE_NETWORK_SETTINGS_NAMESPACE,
4407
+ query: GET_FINANCE_NETWORK_SETTINGS,
4408
+ skip: !user,
4409
+ variables: {
4410
+ filter: getFinanceNetworkFilter(),
4411
+ },
4412
+ });
4413
+ const { data: currenciesData } = index_module.Sn({
4414
+ namespace: CURRENCIES_QUERY_NAMESPACE,
4415
+ query: GET_CURRENCIES,
4416
+ skip: !user,
4417
+ variables: {
4418
+ locale,
4419
+ },
4420
+ });
4421
+ const supportedCurrencies = stencilHooks_module.useMemo(() => {
4422
+ var _a, _b;
4423
+ // Filter out any currencies not supported by finance network settings
4424
+ 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) => {
4425
+ var _a, _b;
4426
+ 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);
4427
+ // Currency not in supported list
4428
+ if (!currency)
4429
+ return agg;
4430
+ // Currency already added to list
4431
+ if (agg.find((currency) => currency.currencyCode === settings.currency))
4432
+ return agg;
4433
+ // Currency not supported by selected country
4434
+ if (userFormContext.countryCode &&
4435
+ settings.countryCode !== countryCode)
4436
+ return agg;
4437
+ return [...agg, currency];
4438
+ }, []);
4439
+ return allValidCurrencies;
4440
+ }, [financeNetworkData, countryCode]);
4441
+ const intlLocale = (locale === null || locale === void 0 ? void 0 : locale.replace("_", "-")) || "en";
4442
+ const sortByName = (a, b) => a.displayName < b.displayName ? -1 : 1;
4443
+ const paymentOptions = (_d = financeNetworkData === null || financeNetworkData === void 0 ? void 0 : financeNetworkData.impactFinanceNetworkSettings) === null || _d === void 0 ? void 0 : _d.data;
4444
+ // filter out any duplicate countries and null countryCode
4445
+ const availableCountries = stencilHooks_module.useMemo(() => new Set(paymentOptions === null || paymentOptions === void 0 ? void 0 : paymentOptions.map((option) => option.countryCode).filter((value) => value)), [paymentOptions]);
4446
+ const _topCountries = ["CA", "GB", "US"];
4447
+ const sortedCountries = stencilHooks_module.useMemo(() => Array.from(availableCountries)
4448
+ .map((countryCode) => sqmInvoiceTableView.getCountryObj({ countryCode, locale: intlLocale }))
4449
+ .sort(sortByName)
4450
+ .reduce((prev, countryObj) => {
4451
+ if (_topCountries.includes(countryObj.countryCode))
4452
+ return [countryObj, ...prev];
4453
+ return [...prev, countryObj];
4454
+ }, []), [availableCountries]);
4455
+ stencilHooks_module.useEffect(() => {
4456
+ if (sortedCountries)
4457
+ setSortedCountriesContext(sortedCountries);
4458
+ }, [sortedCountries]);
4459
+ stencilHooks_module.useEffect(() => {
4460
+ if (supportedCurrencies)
4461
+ setCurrenciesContext(supportedCurrencies);
4462
+ }, [supportedCurrencies]);
4463
+ stencilHooks_module.useEffect(() => {
4464
+ if (errors) {
4465
+ setStep("/error");
4466
+ return;
4467
+ }
4468
+ if (!host || !user)
4469
+ return;
4470
+ if (data) {
4471
+ const user = data === null || data === void 0 ? void 0 : data.user;
4472
+ if (!user || step !== "/loading")
4473
+ return;
4474
+ const currentStep = getCurrentStep(user);
4475
+ setStep(currentStep);
4476
+ }
4477
+ }, [host, user, (_e = data === null || data === void 0 ? void 0 : data.user) === null || _e === void 0 ? void 0 : _e.email, errors]);
4478
+ function getFinanceNetworkFilter() {
4479
+ var _a, _b, _c;
4480
+ if (step === "/1")
4481
+ return {};
4482
+ if (step === "/4")
4483
+ 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 };
4484
+ if (countryCode)
4485
+ return {
4486
+ countryCode_eq: countryCode,
4487
+ };
4488
+ return {};
4489
+ }
4490
+ return {
4491
+ step,
4492
+ setStep,
4493
+ context,
4494
+ namespace: index_module.Mn(TAX_CONTEXT_NAMESPACE),
4495
+ loading: step === "/loading",
4496
+ };
4497
+ }
4498
+
4499
+ const TaxAndCashMonolith = class {
4500
+ constructor(hostRef) {
4501
+ index.registerInstance(this, hostRef);
4502
+ /*---------------------------------------------------------------------------------
4503
+ !IMPORTANT!: Make sure to also change the prop names in the respective component
4504
+ -----------------------------------------------------------------------------------*/
4505
+ /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4506
+ STEP 1 PROPS:
4507
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
4508
+ /**
4509
+ * @uiName First name field label
4510
+ * @uiGroup Step 1 Properties
4511
+ */
4512
+ this.step1_firstName = "First name";
4513
+ /**
4514
+ * @uiName Last name field label
4515
+ * @uiGroup Step 1 Properties
4516
+ */
4517
+ this.step1_lastName = "Last name";
4518
+ /**
4519
+ * @uiName Email field label
4520
+ * @uiGroup Step 1 Properties
4521
+ */
4522
+ this.step1_email = "Email";
4523
+ /**
4524
+ * @uiName Country field label
4525
+ * @uiGroup Step 1 Properties
4526
+ */
4527
+ this.step1_country = "Country";
4528
+ /**
4529
+ * @uiName Phone number field label
4530
+ * @uiGroup Step 1 Properties
4531
+ */
4532
+ this.step1_phoneNumber = "Phone number";
4533
+ /**
4534
+ * @uiName Address field label
4535
+ * @uiGroup Step 1 Properties
4536
+ */
4537
+ this.step1_address = "Address";
4538
+ /**
4539
+ * @uiName City field label
4540
+ * @uiGroup Step 1 Properties
4541
+ */
4542
+ this.step1_city = "City";
4543
+ /**
4544
+ * @uiName State field label for states
4545
+ * @uiGroup Step 1 Properties
4546
+ */
4547
+ this.step1_state = "State";
4548
+ /**
4549
+ * @uiName State field label for provinces
4550
+ * @uiGroup Step 1 Properties
4551
+ */
4552
+ this.step1_province = "Province";
4553
+ /**
4554
+ * @uiName State field label for regions
4555
+ * @uiGroup Step 1 Properties
4556
+ */
4557
+ this.step1_region = "Region";
4558
+ /**
4559
+ * @uiName Postal code field label
4560
+ * @uiGroup Step 1 Properties
4561
+ */
4562
+ this.step1_postalCode = "Postal code";
4563
+ /**
4564
+ * @uiName Currency field label
4565
+ * @uiGroup Step 1 Properties
4566
+ */
4567
+ this.step1_currency = "Currency";
4568
+ /**
4569
+ * @uiName Currency field help text
4570
+ * @uiGroup Step 1 Properties
4571
+ */
4572
+ this.step1_currencyHelpText = "Choose your preferred payout currency";
4573
+ /**
4574
+ * Edit the property called terms and conditions text to change what's displayed for {termsAndConditionsLink}.
4575
+ * @uiName Terms and conditions checkbox
4576
+ * @uiGroup Step 1 Properties
4577
+ */
4578
+ this.step1_allowBankingCollection = "I have read the {termsAndConditionsLink} and allow impact.com to collect my tax and banking information";
4579
+ /**
4580
+ * @uiName Step 1 title
4581
+ * @uiGroup Step 1 Properties
4582
+ */
4583
+ this.step1_personalInformation = "Personal Information";
4584
+ /**
4585
+ * The link text that appears in the terms and conditions checkbox
4586
+ * @uiName Terms and conditions text
4587
+ * @uiGroup Step 1 Properties
4588
+ * @uiWidget textArea
4589
+ */
4590
+ this.step1_termsAndConditionsLabel = "terms and conditions";
4591
+ /**
4592
+ * The link that appears in the terms and conditions checkbox
4593
+ * @uiName Terms and conditions link
4594
+ * @uiGroup Step 1 Properties
4595
+ */
4596
+ this.step1_termsAndConditionsLink = "https://terms.advocate.impact.com/PayoutTermsAndConditions.html";
4597
+ /**
4598
+ * Placeholder text displayed in the currency search dropdown
4599
+ * @uiName Currency field placeholder text
4600
+ * @uiGroup Step 1 Properties
4601
+ */
4602
+ this.step1_searchForCurrencyText = "Search for currency..";
4603
+ /**
4604
+
4605
+ /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4606
+ STEP 2 PROPS:
4607
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
4608
+ /**
4609
+ * @uiName Step 2 title
4610
+ * @uiGroup Step 2 Properties
4611
+ */
4612
+ this.step2_indirectTax = "Indirect Tax";
4613
+ /**
4614
+ * Displayed under the title of this step.
4615
+ * @uiName Step 2 description
4616
+ * @uiGroup Step 2 Properties
4617
+ * @uiWidget textArea
4618
+ */
4619
+ 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.";
4620
+ /**
4621
+ * Displayed with indirect tax registration options.
4622
+ * @uiName Indirect tax details section title
4623
+ * @uiGroup Step 2 Properties
4624
+ */
4625
+ this.step2_indirectTaxDetails = "Indirect tax details";
4626
+ /**
4627
+ * @uiName Registered for indirect tax option
4628
+ * @uiGroup Step 2 Properties
4629
+ * @uiWidget textArea
4630
+ *
4631
+ */
4632
+ this.step2_otherRegion = "Registered for indirect tax";
4633
+ /**
4634
+ * Selecting this option will display fields to enter indirect tax details.
4635
+ * @uiName Registered for indirect tax option description
4636
+ * @uiGroup Step 2 Properties
4637
+ */
4638
+ this.step2_otherRegionSubtext = "If you’ve registered with your tax authority, add your information to stay tax compliant.";
4639
+ /**
4640
+ * @uiName Not registered for indirect tax option
4641
+ * @uiGroup Step 2 Properties
4642
+ * @uiWidget textArea
4643
+ */
4644
+ this.step2_notRegistered = "Not registered for indirect tax";
4645
+ /**
4646
+ * Participants based in the US are considered not registered.
4647
+ * @uiName Not registered for indirect tax option description
4648
+ * @uiGroup Step 2 Properties
4649
+ */
4650
+ this.step2_notRegisteredSubtext = "If you’ve never set up indirect tax with your tax authority, then you’re likely not considered registered.";
4651
+ /**
4652
+ * @uiName Region of indirect tax field label
4653
+ * @uiGroup Step 2 Properties
4654
+ */
4655
+ this.step2_selectedRegion = "Country / region of indirect tax";
4656
+ /**
4657
+ * @uiName Indirect tax number field label
4658
+ * @uiGroup Step 2 Properties
4659
+ */
4660
+ this.step2_indirectTaxNumber = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}}";
4661
+ /**
4662
+ * @uiName Province field label
4663
+ * @uiGroup Step 2 Properties
4664
+ */
4665
+ this.step2_province = "Province";
4666
+ /**
4667
+ * @uiName Missing indirect tax number error message
4668
+ * @uiGroup Step 2 Properties
4669
+ */
4670
+ 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";
4671
+ /**
4672
+ * Displayed to participants registered for QST.
4673
+ * @uiName QST number field label
4674
+ * @uiGroup Step 2 Properties
4675
+ */
4676
+ this.step2_qstNumber = "QST number";
4677
+ /**
4678
+ * Displayed to participants registered for indirect tax in Quebec, Canada.
4679
+ * @uiName QST tax checkbox
4680
+ * @uiGroup Step 2 Properties
4681
+ */
4682
+ this.step2_isRegisteredQST = "I am registered for QST Tax";
4683
+ /**
4684
+ * Displayed to participants registered for indirect tax in Spain.
4685
+ * @uiName Spain income tax checkbox
4686
+ * @uiGroup Step 2 Properties
4687
+ * @uiWidget textArea
4688
+ */
4689
+ 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.";
4690
+ /**
4691
+ * Displayed to participants registered in Spain.
4692
+ * @uiName Sub-region of indirect tax field label
4693
+ * @uiGroup Step 2 Properties
4694
+ */
4695
+ this.step2_subRegion = "Sub-region";
4696
+ /**
4697
+ * @uiName Income tax field label
4698
+ * @uiGroup Step 2 Properties
4699
+ */
4700
+ this.step2_subRegionTaxNumberLabel = "Income Tax Number";
4701
+ /**
4702
+ * Communicate that after this step, only Support can change personal and indirect tax information.
4703
+ * @uiName Submission confirmation alert
4704
+ * @uiGroup Step 2 Properties
4705
+ * @uiWidget textArea
4706
+ */
4707
+ 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.";
4708
+ /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4709
+ STEP 3 PROPS:
4710
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
4711
+ /**
4712
+ * @uiName Step 3 title
4713
+ * @uiGroup Step 3 Properties
4714
+ */
4715
+ this.step3_taxForm = "Tax form";
4716
+ /**
4717
+ * Display the type of tax form that the participant must submit.
4718
+ * @uiName Tax form name
4719
+ * @uiGroup Step 3 Properties
4720
+ */
4721
+ this.step3_taxFormLabel = "{documentType} Tax Form";
4722
+ /**
4723
+ * @uiName Participant type field label
4724
+ * @uiGroup Step 3 Properties
4725
+ */
4726
+ this.step3_participantType = "Participant type";
4727
+ /**
4728
+ * An option for the participant type field. Used to determine which W-8 form is required.
4729
+ * @uiName Business representative participant type label
4730
+ * @uiGroup Step 3 Properties
4731
+ */
4732
+ this.step3_businessEntity = "I represent a business";
4733
+ /**
4734
+ * An option for the participant type field. Used to determine which W-8 form is required.
4735
+ * @uiName Individual participant type label
4736
+ * @uiGroup Step 3 Properties
4737
+ */
4738
+ this.step3_individualParticipant = "I am an individual participant";
4739
+ /**
4740
+ * Displayed at the top of the page to participants based in the US.
4741
+ * @uiName W-9 tax form description
4742
+ * @uiGroup Step 3 Properties
4743
+ * @uiWidget textArea
4744
+ */
4745
+ this.step3_taxFormDescription = "Participants based in the US need to submit a {documentType} form.";
4746
+ /**
4747
+ * Displayed at the top of the page to individuals joining a US program who reside outside the country.
4748
+ * @uiName W-8 BEN tax form description
4749
+ * @uiGroup Step 3 Properties
4750
+ * @uiWidget textArea
4751
+ */
4752
+ this.step3_taxFormDescriptionIndividualParticipant = "Participants residing outside of the US, joining the referral program of a US-based company, need to submit a {documentType} form.";
4753
+ /**
4754
+ * Displayed at the top of the page to participants representing a business.
4755
+ * @uiName W-8 BEN-E tax form description
4756
+ * @uiGroup Step 3 Properties
4757
+ * @uiWidget textArea
4758
+ */
4759
+ this.step3_taxFormDescriptionBusinessEntity = "Participants residing outside of the US working with a US Brand need to submit a {documentType} form.";
4760
+ /**
4761
+ * This appears inside the Docusign frame.
4762
+ * @uiName Docusign session expired message
4763
+ * @uiGroup Step 3 Properties
4764
+ * @uiWidget textArea
4765
+ */
4766
+ 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.";
4767
+ /**
4768
+ * Remind participants their session will time out after 20 minutes of inactivity.
4769
+ * @uiName Docusign timed session message
4770
+ * @uiGroup Step 3 Properties
4771
+ * @uiWidget textArea
4772
+ */
4773
+ this.step3_docusignSessionWarning = "For your security, we automatically end your session when you have not interacted with the form after 20 minutes.";
4774
+ /**
4775
+ * This appears inside the Docusign frame.
4776
+ * @uiName Docusign form error message
4777
+ * @uiGroup Step 3 Properties
4778
+ * @uiWidget textArea
4779
+ */
4780
+ this.step3_docusignError = "There was a problem displaying this form. Please refresh the page. If this problem continues, contact our {supportLink}.";
4781
+ /**
4782
+ * @uiName Refresh page button label
4783
+ * @uiGroup Step 3 Properties
4784
+ */
4785
+ this.step3_refreshButton = "Refresh Page";
4786
+ /**
4787
+ * @uiName Exit button text
4788
+ * @uiGroup Step 3 Properties
4789
+ */
4790
+ this.step3_exitButton = "Exit";
4791
+ /**
4792
+ * @uiName Information modal title
4793
+ * @uiGroup Step 3 Properties
4794
+ */
4795
+ this.step3_modalTitle = "Important Note";
4796
+ /**
4797
+ * @uiName Information modal description text
4798
+ * @uiGroup Step 3 Properties
4799
+ */
4800
+ this.step3_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.";
4801
+ /**
4802
+ * @uiName Information modal button text
4803
+ * @uiGroup Step 3 Properties
4804
+ */
4805
+ this.step3_modalButtonText = "I understand";
4806
+ /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4807
+ STEP 4 PROPS:
4808
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
4809
+ /**
4810
+ * @uiName Step 4 title
4811
+ * @uiGroup Step 4 Properties
4812
+ */
4813
+ this.step4_taxAndPayouts = "Payouts";
4814
+ /**
4815
+ * @uiName Direct to bank payout option
4816
+ * @uiGroup Step 4 Properties
4817
+ */
4818
+ this.step4_directlyToBankAccount = "Directly to my bank account";
4819
+ /**
4820
+ * @uiName PayPal payout option
4821
+ * @uiGroup Step 4 Properties
4822
+ */
4823
+ this.step4_toPayPalAccount = "PayPal (2% processing fee capped to {feeCap})";
4824
+ /**
4825
+ * @uiName Threshold balance payment schedule option
4826
+ * @uiGroup Step 4 Properties
4827
+ */
4828
+ this.step4_paymentScheduleBalanceThreshold = "Pay me when my balance reaches a threshold";
4829
+ /**
4830
+ * @uiName Fixed day payment schedule option
4831
+ * @uiGroup Step 4 Properties
4832
+ */
4833
+ this.step4_paymentScheduleFixedDay = "Pay me on a fixed day of the month";
4834
+ /**
4835
+ * Let the participant choose what day of the month they’ll get paid
4836
+ * @uiName Payment day field label
4837
+ * @uiGroup Step 4 Properties
4838
+ */
4839
+ this.step4_paymentDaySelectLabel = "Payment Day";
4840
+ /**
4841
+ * Participant use this field to select the balance at which they want to be paid
4842
+ * @uiName Payment threshold field label
4843
+ * @uiGroup Step 4 Properties
4844
+ */
4845
+ this.step4_paymentThresholdSelectLabel = "Payment threshold";
4846
+ /**
4847
+ * One of two payment day options
4848
+ * @uiName First of month payday option
4849
+ * @uiGroup Step 4 Properties
4850
+ */
4851
+ this.step4_paymentDayFirstOfMonthLabelText = "1st of the month";
4852
+ /**
4853
+ * One of two payment day options
4854
+ * @uiName Fifteenth of month payday option
4855
+ * @uiGroup Step 4 Properties
4856
+ */
4857
+ this.step4_paymentDayFifteenthOfMonthLabelText = "15th of the month";
4858
+ /**
4859
+ * @uiName Payment method section header
4860
+ * @uiGroup Step 4 Properties
4861
+ */
4862
+ this.step4_paymentMethod = "Payment method";
4863
+ /**
4864
+ * @uiName Payment schedule section header
4865
+ * @uiGroup Step 4 Properties
4866
+ */
4867
+ this.step4_paymentSchedule = "Payment schedule";
4868
+ /**
4869
+ * @uiName Payment method section description
4870
+ * @uiGroup Step 4 Properties
4871
+ */
4872
+ this.step4_paymentMethodSubtext = "Payouts will be sent from our referral program provider, impact.com.";
4873
+ /**
4874
+ * Displayed to participants who choose PayPal as their payout method
4875
+ * @uiName PayPal email field label
4876
+ * @uiGroup Step 4 Properties
4877
+ */
4878
+ this.step4_payPalInputLabel = "PayPal email";
4879
+ /**
4880
+ * @uiName Bank country field label
4881
+ * @uiGroup Step 4 Properties
4882
+ */
4883
+ this.step4_bankLocationLabel = "Bank country location";
4884
+ /**
4885
+ * @uiName Beneficiary account field label
4886
+ * @uiGroup Step 4 Properties
4887
+ */
4888
+ this.step4_beneficiaryAccountNameLabel = "Account holder name";
4889
+ /**
4890
+ * @uiName Beneficiary account field description
4891
+ * @uiGroup Step 4 Properties
4892
+ */
4893
+ this.step4_beneficiaryAccountNameDescription = "The beneficiary name of your bank account. Ensure this matches the name on your tax form.";
4894
+ /**
4895
+ * @uiName Bank account type field label
4896
+ * @uiGroup Step 4 Properties
4897
+ */
4898
+ this.step4_bankAccountTypeLabel = "Bank account type";
4899
+ /**
4900
+ * @uiName Checking account option
4901
+ * @uiGroup Step 4 Properties
4902
+ */
4903
+ this.step4_checkingSelectItemLabel = "Checking";
4904
+ /**
4905
+ * Label text for the savings account type select item
4906
+ * @uiName Savings account options
4907
+ * @uiGroup Step 4 Properties
4908
+ */
4909
+ this.step4_savingsSelectItemLabel = "Savings";
4910
+ /**
4911
+ * @uiName Bank account number field label
4912
+ * @uiGroup Step 4 Properties
4913
+ */
4914
+ this.step4_bankAccountNumberLabel = "Bank account number";
4915
+ /**
4916
+ * @uiName IBAN field label
4917
+ * @uiGroup Step 4 Properties
4918
+ */
4919
+ this.step4_ibanLabel = "IBAN";
4920
+ /**
4921
+ * @uiName SWIFT code field label
4922
+ * @uiGroup Step 4 Properties
4923
+ */
4924
+ this.step4_swiftCodeLabel = "SWIFT code";
4925
+ /**
4926
+ * @uiName Routing code field label
4927
+ * @uiGroup Step 4 Properties
4928
+ */
4929
+ 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} }";
4930
+ /**
4931
+ * @uiName Bank name field label
4932
+ * @uiGroup Step 4 Properties
4933
+ */
4934
+ this.step4_bankNameLabel = "Bank name";
4935
+ /**
4936
+ * @uiName Classification entity field label
4937
+ * @uiGroup Step 4 Properties
4938
+ */
4939
+ this.step4_classificationEntityLabel = "Classification entity";
4940
+ /**
4941
+ * One of three options listed for the classification field
4942
+ * @uiName Business classification option
4943
+ * @uiGroup Step 4 Properties
4944
+ */
4945
+ this.step4_businessSelectItemLabel = "Business";
4946
+ /**
4947
+ * One of three options listed for the classification field
4948
+ * @uiName Individual classification option
4949
+ * @uiGroup Step 4 Properties
4950
+ */
4951
+ this.step4_individualSelectItemLabel = "Individual";
4952
+ /**
4953
+ * One of three options listed for the classification field
4954
+ * @uiName Foreign classification option
4955
+ * @uiGroup Step 4 Properties
4956
+ */
4957
+ this.step4_foreignSelectItemLabel = "Foreign";
4958
+ /**
4959
+ * @uiName Classification CPF field label
4960
+ * @uiGroup Step 4 Properties
4961
+ */
4962
+ this.step4_classificationCPFLabel = "Classification CPF";
4963
+ /**
4964
+ * @uiName Patronymic name field label
4965
+ * @uiGroup Step 4 Properties
4966
+ */
4967
+ this.step4_patronymicNameLabel = "Patronymic name";
4968
+ /**
4969
+ * @uiName VO code field label
4970
+ * @uiGroup Step 4 Properties
4971
+ */
4972
+ this.step4_voCodeLabel = "VO code";
4973
+ /**
4974
+ * @uiName Agency code field label
4975
+ * @uiGroup Step 4 Properties
4976
+ */
4977
+ this.step4_agencyCodeLabel = "Agency code";
4978
+ /**
4979
+ * @uiName Branch code field label
4980
+ * @uiGroup Step 4 Properties
4981
+ */
4982
+ this.step4_branchCodeLabel = "Branch code";
4983
+ /**
4984
+ * Label text for the classification input field
4985
+ * @uiName Classification field label
4986
+ * @uiGroup Step 4 Properties
4987
+ */
4988
+ this.step4_classificationLabel = "Classification";
4989
+ /**
4990
+ * @uiName Taxpayer ID field label
4991
+ * @uiGroup Step 4 Properties
4992
+ */
4993
+ this.step4_taxPayerIdLabel = "Beneficiary INN";
4994
+ /**
4995
+ * @uiName Bank address field label
4996
+ * @uiGroup Step 4 Properties
4997
+ */
4998
+ this.step4_bankAddressLabel = "Bank address";
4999
+ /**
5000
+ * @uiName Bank city field label
5001
+ * @uiGroup Step 4 Properties
5002
+ */
5003
+ this.step4_bankCityLabel = "Bank city";
5004
+ /**
5005
+ * @uiName Bank province/state field label
5006
+ * @uiGroup Step 4 Properties
5007
+ */
5008
+ this.step4_bankStateLabel = "Bank Province / State";
5009
+ /**
5010
+ * @uiName Bank postal code field label
5011
+ * @uiGroup Step 4 Properties
5012
+ */
5013
+ this.step4_bankPostalCodeLabel = "Bank postal code";
5014
+ /**
5015
+ * Default payment method to the participants’ bank account.
5016
+ * @uiName EFT withdrawal payment method
5017
+ * @uiGroup Step 4 Properties
5018
+ */
5019
+ this.step4_eftWithdrawalLabel = "EFT Withdrawal (free)";
5020
+ /**
5021
+ * @uiName FX Wire Processing fee text
5022
+ * @uiGroup Step 4 Properties
5023
+ */
5024
+ this.step4_fxWireProcessingFeeLabel = "FX Wire (Processing Fee {currency}{defaultFxFee}.00)";
5025
+ /**
5026
+ * @uiName Text for verify email dialog
5027
+ * @uiGroup Step 4 Properties
5028
+ */
5029
+ this.step4_verifyEmailHeaderText = "Verify your email";
5030
+ /**
5031
+ * @uiName Verify code widget header text
5032
+ * @uiGroup Step 4 Properties
5033
+ */
5034
+ this.step4_verifyEmailDescriptionText = "Verify your email to update your payment settings. Enter the code sent to {email} from our referral provider, impact.com.";
5035
+ /**
5036
+ * @uiName Information modal title
5037
+ * @uiGroup Step 4 Properties
5038
+ */
5039
+ this.step4_modalTitle = "Important Note";
5040
+ /**
5041
+ * @uiName Information modal description text
5042
+ * @uiGroup Step 4 Properties
5043
+ */
5044
+ this.step4_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.";
5045
+ /**
5046
+ * @uiName Information modal button text
5047
+ * @uiGroup Step 4 Properties
5048
+ */
5049
+ this.step4_modalButtonText = "I understand, update my information";
5050
+ /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5051
+ DASHBOARD PROPS:
5052
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
5053
+ /**
5054
+ * @uiName Active tax form badge label
5055
+ * @uiGroup Dashboard Properties
5056
+ */
5057
+ this.dashboard_statusTextActive = "Active";
5058
+ /**
5059
+ * @uiName Invalid tax form badge label
5060
+ * @uiGroup Dashboard Properties
5061
+ */
5062
+ this.dashboard_statusTextNotActive = "Invalid Tax Form";
5063
+ /**
5064
+ * Displayed when the participant submitted their form but it is awaiting review.
5065
+ *
5066
+ * @uiName Not verified tax form badge label
5067
+ * @uiGroup Dashboard Properties
5068
+ */
5069
+ this.dashboard_statusTextNotVerified = "Not Verified";
5070
+ /**
5071
+ * Displayed when the participant has not submitted their required tax form.
5072
+ *
5073
+ * @uiName Required tax form badge label
5074
+ */
5075
+ this.dashboard_statusTextRequired = "Required";
5076
+ /**
5077
+ * Additional text displayed next to the tax form's status badge
5078
+ *
5079
+ * @uiName Required tax form description
5080
+ */
5081
+ this.dashboard_requiredTaxForm = "Your payouts are on hold until you submit a {taxFormType} tax form.";
5082
+ /**
5083
+ * Additional text displayed next to the tax form's status badge
5084
+ *
5085
+ * @uiName Active W-9 description
5086
+ * @uiGroup Dashboard Properties
5087
+ */
5088
+ this.dashboard_badgeTextSubmittedOn = "Submitted on {dateSubmitted}.";
5089
+ /**
5090
+ * Additional text displayed next to the tax form's status badge.
5091
+ *
5092
+ * @uiName Active W-8 description
5093
+ * @uiGroup Dashboard Properties
5094
+ */
5095
+ this.dashboard_badgeTextSubmittedOnW8 = "Submitted on {dateSubmitted}. Valid for three years after submission.";
5096
+ /**
5097
+ * Additional text displayed next to the tax form's status badge.
5098
+ *
5099
+ * @uiName Tax form in review description
5100
+ * @uiGroup Dashboard Properties
5101
+ */
5102
+ this.dashboard_badgeTextAwaitingReview = "Awaiting review. Submitted on {dateSubmitted}.";
5103
+ /**
5104
+ * Part of the alert displayed at the top of the page.
5105
+ *
5106
+ * @uiName Inactive W-9 error message title
5107
+ * @uiGroup Dashboard Properties
5108
+ * @uiWidget textArea
5109
+ */
5110
+ this.dashboard_taxAlertHeaderNotActiveW9 = "Your W-9 tax form has personal information that doesn’t match your profile";
5111
+ /**
5112
+ * Part of the alert displayed at the top of the page.
5113
+ *
5114
+ * @uiName Inactive W-8 error message title
5115
+ * @uiGroup Dashboard Properties
5116
+ * @uiWidget textArea
5117
+ */
5118
+ this.dashboard_taxAlertHeaderNotActiveW8 = "{documentType} tax form is invalid";
5119
+ /**
5120
+ * Part of the alert displayed at the top of the page.
5121
+ *
5122
+ * @uiName Inactive W-9 error message description
5123
+ * @uiGroup Dashboard Properties
5124
+ * @uiWidget textArea
5125
+ */
5126
+ this.dashboard_taxAlertNotActiveMessageW9 = "Please resubmit a new {documentType} form.";
5127
+ /**
5128
+ * Part of the alert displayed at the top of the page.
5129
+ *
5130
+ * @uiName Inactive W-8 error message description
5131
+ * @uiGroup Dashboard Properties
5132
+ */
5133
+ 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.";
5134
+ /**
5135
+ * Additional text displayed next to the tax form's status badge.
5136
+ *
5137
+ * @uiName Invalid tax form description
5138
+ * @uiGroup Dashboard Properties
5139
+ * @uiWidget textArea
5140
+ */
5141
+ this.dashboard_invalidForm = "Make sure your information is correct and submit new form.";
5142
+ /**
5143
+ * @uiName Payout information section header
5144
+ * @uiGroup Dashboard Properties
5145
+ */
5146
+ this.dashboard_bankingInformationSectionHeader = "Payout Information";
5147
+ /**
5148
+ * @uiName Tax document section header
5149
+ * @uiGroup Dashboard Properties
5150
+ */
5151
+ this.dashboard_taxDocumentSectionHeader = "Tax documents";
5152
+ /**
5153
+ * Displayed under the tax document section header.
5154
+ *
5155
+ * @uiName Tax documents section description
5156
+ * @uiGroup Dashboard Properties
5157
+ */
5158
+ this.dashboard_taxDocumentSectionSubHeader = "{documentType} tax form";
5159
+ /**
5160
+ * No other statuses or badges will be displayed in the tax form section in this case.
5161
+ *
5162
+ * @uiName Tax form not required text
5163
+ * @uiGroup Dashboard Properties
5164
+ * @uiWidget textArea
5165
+ */
5166
+ 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.";
5167
+ /**
5168
+ *
5169
+ * @uiName Indirect tax section header
5170
+ * @uiGroup Dashboard Properties
5171
+ */
5172
+ this.dashboard_indirectTaxInfoSectionHeader = "Indirect tax";
5173
+ /**
5174
+ * If the participant is registered for indirect tax in Canada, display the province they’re registered in.
5175
+ *
5176
+ * @uiName Canadian province of indirect tax
5177
+ * @uiGroup Dashboard Properties
5178
+ */
5179
+ this.dashboard_indirectTaxInfoCanada = "Registered in {province}, {country}";
5180
+ /**
5181
+ * If the participant is registered for indirect tax, display the country they’re registered in.
5182
+ *
5183
+ * @uiName Indirect tax country
5184
+ * @uiGroup Dashboard Properties
5185
+ */
5186
+ this.dashboard_indirectTaxInfoOtherCountry = "Registered in {country}";
5187
+ /**
5188
+ * If the participant is registered for indirect tax in Spain, display the region they’re registered in.
5189
+ *
5190
+ * @uiName Spanish region of indirect tax
5191
+ * @uiGroup Dashboard Properties
5192
+ */
5193
+ this.dashboard_indirectTaxInfoSpain = "Registered in {country}, {subRegion}";
5194
+ /**
5195
+ * @uiName Indirect tax tooltip
5196
+ * @uiGroup Dashboard Properties
5197
+ * @uiWidget textArea
5198
+ */
5199
+ this.dashboard_indirectTaxTooltipSupport = "To make changes to your indirect tax information, please contact our {supportLink}.";
5200
+ /**
5201
+ * Displayed to participants who have submitted their indirect tax information.
5202
+ *
5203
+ * @uiName Indirect tax details
5204
+ * @uiGroup Dashboard Properties
5205
+ */
5206
+ this.dashboard_indirectTaxDetails = "{indirectTaxType} number: {indirectTaxNumber}";
5207
+ /**
5208
+ * @uiName Submit new tax form button label
5209
+ * @uiGroup Dashboard Properties
5210
+ */
5211
+ this.dashboard_newFormButton = "Submit new form";
5212
+ /**
5213
+ * @uiName Edit payment info button label
5214
+ * @uiGroup Dashboard Properties
5215
+ */
5216
+ this.dashboard_editPaymentInformationButton = "Edit Payout Information";
5217
+ /**
5218
+ * @uiName Not registered for indirect tax text
5219
+ * @uiGroup Dashboard Properties
5220
+ * @uiWidget textArea
5221
+ */
5222
+ 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.";
5223
+ /**
5224
+ * Displayed to participants registered in Quebec, Canada.
5225
+ * @uiName QST indirect tax details
5226
+ * @uiGroup Dashboard Properties
5227
+ */
5228
+ this.dashboard_qstNumber = "QST number: {qstNumber}";
5229
+ /**
5230
+ * @uiName Spain sub-region indirect tax number
5231
+ * @uiGroup Dashboard Properties
5232
+ */
5233
+ this.dashboard_subRegionTaxNumber = "Income tax number: {subRegionTaxNumber}";
5234
+ /**
5235
+ * @uiName Payout status badge
5236
+ * @uiGroup Dashboard Properties
5237
+ */
5238
+ this.dashboard_statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
5239
+ /**
5240
+ * Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
5241
+ * @uiName Payout schedule by threshold text
5242
+ * @uiGroup Dashboard Properties
5243
+ */
5244
+ this.dashboard_thresholdPayoutText = "Next payout occurs when balance is {thresholdBalance}";
5245
+ /**
5246
+ * Shown before the participant’s bank account information.
5247
+ * @uiName Bank account field label
5248
+ * @uiGroup Dashboard Properties
5249
+ */
5250
+ this.dashboard_accountText = "Account";
5251
+ /**
5252
+ * Part of the Invoice table displayed at the bottom of the page.
5253
+ * @uiName Invoice number column title
5254
+ * @uiGroup Dashboard Properties
5255
+ */
5256
+ this.dashboard_invoiceColumnTitle = "Invoice";
5257
+ /**
5258
+ * Part of the Invoice table displayed at the bottom of the page.
5259
+ * @uiName Date column title
5260
+ * @uiGroup Dashboard Properties
5261
+ */
5262
+ this.dashboard_dateColumnTitle = "Date";
5263
+ /**
5264
+ * Part of the Invoice table displayed at the bottom of the page.
5265
+ * @uiName Earnings column title
5266
+ * @uiGroup Dashboard Properties
5267
+ */
5268
+ this.dashboard_earningsColumnTitle = "Earnings";
5269
+ /**
5270
+ * Part of the Invoice table displayed at the bottom of the page.
5271
+ * @uiName Indirect tax column title
5272
+ * @uiGroup Dashboard Properties
5273
+ */
5274
+ this.dashboard_indirectTaxColumnTitle = "Indirect tax";
5275
+ /**
5276
+ * Displayed under the payout details card.
5277
+ * @uiName Payout from impact text
5278
+ * @uiGroup Dashboard Properties
5279
+ * @uiWidget textArea
5280
+ */
5281
+ this.dashboard_payoutFromImpact = "Your balance may take up to 24 hours to update. Payouts will be sent from our referral program provider, impact.com.";
5282
+ /**
5283
+ * Part of the Invoice table displayed at the bottom of the page.
5284
+ * @uiName Earnings after tax column title
5285
+ * @uiGroup Dashboard Properties
5286
+ */
5287
+ this.dashboard_earningsAfterTaxColumnTitle = "Earnings after tax";
5288
+ /**
5289
+ * Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
5290
+ * @uiName Payout error message title
5291
+ * @uiGroup Dashboard Properties
5292
+ * @uiWidget textArea
5293
+ */
5294
+ this.dashboard_payoutHoldAlertHeader = "Your payout is on hold";
5295
+ /**
5296
+ * Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
5297
+ * @uiName Payout error message description
5298
+ * @uiGroup Dashboard Properties
5299
+ * @uiWidget textArea
5300
+ */
5301
+ this.dashboard_payoutHoldAlertDescription = "Please contact our {supportLink} or check your inbox for an email from our referral program provider, impact.com.";
5302
+ /**
5303
+ * Text displayed for existing publishers that do not have saved banking information.
5304
+ * @uiName Payout missing information subtext
5305
+ * @uiGroup Dashboard Properties
5306
+ */
5307
+ this.dashboard_payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
5308
+ /**
5309
+ * @uiName Invoice table description
5310
+ * @uiGroup Dashboard Properties
5311
+ */
5312
+ this.dashboard_invoiceDescription = "View and download your invoices to report your earnings and stay tax compliant.";
5313
+ /**
5314
+ * @uiName Invoice table previous page button label
5315
+ * @uiGroup Dashboard Properties
5316
+ */
5317
+ this.dashboard_invoicePrevLabel = "Prev";
5318
+ /**
5319
+ * @uiName Invoice table next page button label
5320
+ * @uiGroup Dashboard Properties
5321
+ */
5322
+ this.dashboard_invoiceMoreLabel = "Next";
5323
+ /**
5324
+ * @uiName Invoice table title
5325
+ * @uiGroup Dashboard Properties
5326
+ */
5327
+ this.dashboard_invoiceHeader = "Invoices";
5328
+ /**
5329
+ * @uiName Empty invoice table header
5330
+ * @uiGroup Dashboard Properties
5331
+ */
5332
+ this.dashboard_invoiceEmptyStateHeader = "View your invoice details";
5333
+ /**
5334
+ * @uiName Empty invoice table description
5335
+ * @uiGroup Dashboard Properties
5336
+ */
5337
+ this.dashboard_invoiceEmptyStateText = "Refer a friend to view the status of your invoices and rewards earned";
5338
+ /**
5339
+ * @uiName Replace tax form modal header
5340
+ * @uiGroup Dashboard Properties
5341
+ */
5342
+ this.dashboard_replaceTaxFormModalHeader = "Replace existing tax form";
5343
+ /**
5344
+ * @uiName Replace tax form modal body text
5345
+ * @uiGroup Dashboard Properties
5346
+ * @uiWidget textArea
5347
+ */
5348
+ 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.";
5349
+ /**
5350
+ * Part of the alert displayed at the top of the page when the user needs to verify their identity.
5351
+ * @uiName Verification required alert message title
5352
+ * @uiGroup Dashboard Properties
5353
+ * @uiWidget textArea
5354
+ */
5355
+ this.dashboard_verificationRequiredHeader = "Verify your identity";
5356
+ /**
5357
+ * Part of the alert displayed at the top of the page when the user needs to verify their identity
5358
+ * @uiName Verification required alert message description
5359
+ * @uiGroup Dashboard Properties
5360
+ * @uiWidget textArea
5361
+ */
5362
+ 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}.";
5363
+ /**
5364
+ * @uiName Verification required internal alert header
5365
+ * @uiGroup Dashboard Properties
5366
+ * @uiWidget textArea
5367
+ */
5368
+ this.dashboard_verificationRequiredInternalHeader = "Identity Verification in Progress";
5369
+ /**
5370
+ * @uiName Verification required internal alert description
5371
+ * @uiGroup Dashboard Properties
5372
+ * @uiWidget textArea
5373
+ */
5374
+ 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}.";
5375
+ /**
5376
+ * @uiName Verification review internal alert header
5377
+ * @uiGroup Dashboard Properties
5378
+ * @uiWidget textArea
5379
+ */
5380
+ this.dashboard_verificationReviewInternalHeader = "Identity Verification Under Review";
5381
+ /**
5382
+ * @uiName Verification review internal alert description
5383
+ * @uiGroup Dashboard Properties
5384
+ * @uiWidget textArea
5385
+ */
5386
+ 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}.";
5387
+ /**
5388
+ * @uiName Verification failed internal alert header
5389
+ * @uiGroup Dashboard Properties
5390
+ * @uiWidget textArea
5391
+ */
5392
+ this.dashboard_verificationFailedInternalHeader = "Identity Verification Unsuccessful";
5393
+ /**
5394
+ * @uiName Verification failed internal alert description
5395
+ * @uiGroup Dashboard Properties
5396
+ * @uiWidget textArea
5397
+ */
5398
+ 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}.";
5399
+ /**
5400
+ * Part of the alert displayed at the top of the page when the user needs to verify their identity.
5401
+ * @uiName Verification required alert button text
5402
+ * @uiGroup Dashboard Properties
5403
+ * @uiWidget textArea
5404
+ */
5405
+ this.dashboard_verificationRequiredButtonText = "Start Verification";
5406
+ /**
5407
+ * @uiName W-9 payment threshold alert header
5408
+ * @uiGroup Dashboard Properties
5409
+ * @uiWidget textArea
5410
+ */
5411
+ this.dashboard_w9RequiredHeader = "Your next payout is on hold";
5412
+ /**
5413
+ * @uiName W-9 payment threshold alert description
5414
+ * @uiGroup Dashboard Properties
5415
+ * @uiWidget textArea
5416
+ */
5417
+ this.dashboard_w9RequiredDescription = "You have surpassed the $600 threshold requiring a W-9 form or have multiple accounts with impact.com. To remove the hold, please submit your W-9 form.";
5418
+ /**
5419
+ * @uiName Account review alert header
5420
+ */
5421
+ this.dashboard_accountReviewHeader = "Your account is under review";
5422
+ /**
5423
+ * @uiName Account review alert description
5424
+ */
5425
+ this.dashboard_accountReviewDescription = "This process takes 48 hours, payouts are on hold until it's completed. You will receive an email from our referral provider, Impact.com, if any issues arise. It contains details on how to resolve this issue. If you need further assistance, please reach out to our {supportLink}.";
5426
+ /**
5427
+ * @uiName Terms and Conditions text
5428
+ * @uiGroup Dashboard Properties
5429
+ */
5430
+ this.dashboard_termsAndConditions = "Terms and Conditions";
5431
+ /**
5432
+ * @uiName W-9 payment threshold alert button text
5433
+ * @uiGroup Dashboard Properties
5434
+ * @uiWidget textArea
5435
+ */
5436
+ this.dashboard_w9RequiredButtonText = "Submit W-9";
5437
+ /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5438
+ GENERAL PROPS:
5439
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
5440
+ /**
5441
+ * @uiName Setup progress
5442
+ * @uiGroup General Form Properties
5443
+ */
5444
+ this.formStep = "Step {step} of {count}";
5445
+ /**
5446
+ * Part of the alert displayed at the top of the page.
5447
+ * @uiName Form submission error message title
5448
+ * @uiGroup General Form Properties
5449
+ * @uiWidget textArea
5450
+ */
5451
+ this.generalErrorTitle = "There was a problem submitting your information";
5452
+ /**
5453
+ * Part of the alert displayed at the top of the page.
5454
+ * @uiName Form submission error message description
5455
+ * @uiGroup General Form Properties
5456
+ * @uiWidget textArea
5457
+ */
5458
+ this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact our {supportLink}.";
5459
+ /**
5460
+ * Displayed under a field that is missing required information.
5461
+ * @uiName Empty form field error message
5462
+ * @uiGroup General Form Properties
5463
+ */
5464
+ this.fieldRequiredError = "{fieldName} is required";
5465
+ /**
5466
+ * Displayed under a field that includes invalid characters (non-ASCII).
5467
+ * @uiName Invalid character error message
5468
+ * @uiGroup General Form Properties
5469
+ */
5470
+ this.invalidCharacterError = "{fieldName} includes characters that aren't supported.";
5471
+ /**
5472
+ * Displayed under a field when it has an invalid entry.
5473
+ * @uiName Form field error message
5474
+ * @uiGroup General Form Properties
5475
+ */
5476
+ this.fieldInvalidError = "{fieldName} is invalid";
5477
+ /**
5478
+ * @uiName Continue button label
5479
+ * @uiGroup General Form Properties
5480
+ */
5481
+ this.continueButton = "Continue";
5482
+ /**
5483
+ * @uiName Back button label
5484
+ * @uiGroup General Form Properties
5485
+ */
5486
+ this.backButton = "Back";
5487
+ /**
5488
+ * @uiName Cancel button label
5489
+ * @uiGroup General Form Properties
5490
+ */
5491
+ this.cancelButton = "Cancel";
5492
+ /**
5493
+ * Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com.
5494
+ * @uiName Participant is a partner alert title
5495
+ * @uiGroup General Form Properties
5496
+ * @uiWidget textArea
5497
+ */
5498
+ this.isPartnerAlertHeader = "An account with this email already exists with our referral program provider, impact.com";
5499
+ /**
5500
+ * Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com.
5501
+ * @uiName Participant is a partner alert description
5502
+ * @uiGroup General Form Properties
5503
+ * @uiWidget textArea
5504
+ */
5505
+ 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.";
5506
+ /**
5507
+ * Placeholder text displayed in the country search dropdown
5508
+ * @uiName Country field placeholder text
5509
+ * @uiGroup General Form Properties
3632
5510
  */
3633
- this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
5511
+ this.searchForCountryText = "Search for country..";
3634
5512
  /**
3635
- * Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
3636
- * @uiName Payout schedule by threshold text
5513
+ * Part of the alert displayed at the top of the page.
5514
+ * @uiName Page load error message title
5515
+ * @uiGroup General Form Properties
5516
+ * @uiWidget textArea
3637
5517
  */
3638
- this.thresholdPayoutText = "Next payout occurs when balance is {thresholdBalance}";
5518
+ this.loadingErrorAlertHeader = "There was a problem loading your form";
3639
5519
  /**
3640
- * Shown before the participant’s bank account information.
3641
- * @uiName Bank account field label
5520
+ * Part of the alert displayed at the top of the page.
5521
+ * @uiName Page load error message description
5522
+ * @uiGroup General Form Properties
5523
+ * @uiWidget textArea
3642
5524
  */
3643
- this.accountText = "Account";
5525
+ this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact our {supportLink}.";
3644
5526
  /**
3645
- * Text displayed for existing publishers that do not have saved banking information.
3646
- * @uiName Payout missing information subtext
5527
+ * Displayed at the top of the page on all set up steps.
5528
+ * @uiName Page description
5529
+ * @uiGroup General Form Properties
3647
5530
  */
3648
- this.payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
5531
+ this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
3649
5532
  /**
3650
- * @componentState { "title": "Loading", "props": { "states": { "loading": true } } }
5533
+ * Link text for contacting support team
5534
+ * @uiName Suport link text
5535
+ * @uiGroup General Form Properties
3651
5536
  */
3652
- this.stateController = "{}";
3653
- domContextHooks_module.h$1(this);
5537
+ this.supportLink = "support team";
5538
+ /**
5539
+ * Link text for Terms and Conditions
5540
+ * @uiName Terms and Conditions text
5541
+ * @uiGroup General Form Properties
5542
+ */
5543
+ this.termsAndConditions = "Terms and Conditions";
5544
+ stencilHooks_module.h$1(this);
3654
5545
  }
3655
5546
  disconnectedCallback() { }
3656
- getTextProps() {
5547
+ // this field is required prop
5548
+ getGeneralStepTextProps(prefix) {
3657
5549
  const props = utils.getProps(this);
3658
5550
  return {
3659
- ...props,
5551
+ ...extractProps.extractProps(props, prefix),
5552
+ generalErrorTitle: props.generalErrorTitle,
5553
+ generalErrorDescription: props.generalErrorDescription,
5554
+ fieldRequiredError: props.fieldRequiredError,
5555
+ invalidCharacterError: props.invalidCharacterError,
5556
+ fieldInvalidError: props.fieldInvalidError,
5557
+ continueButton: props.continueButton,
5558
+ backButton: props.backButton,
5559
+ cancelButton: props.cancelButton,
5560
+ isPartnerAlertHeader: props.isPartnerAlertHeader,
5561
+ isPartnerAlertDescription: props.isPartnerAlertDescription,
5562
+ loadingErrorAlertHeader: props.loadingErrorAlertHeader,
5563
+ loadingErrorAlertDescription: props.loadingErrorAlertDescription,
5564
+ taxAndPayoutsDescription: props.taxAndPayoutsDescription,
5565
+ searchForCountryText: props.searchForCountryText,
5566
+ formStep: props.formStep,
5567
+ supportLink: props.supportLink,
3660
5568
  };
3661
5569
  }
3662
5570
  render() {
3663
- const props = index_module.isDemo()
3664
- ? useDemoPayoutDetailsCard(this)
3665
- : usePayoutDetailsCard(this);
3666
- return (index.h(index.Host, null, index.h(PayoutDetailsCardView, { text: props.text, states: props.states })));
5571
+ var _a, _b;
5572
+ const props = index_module.isDemo() ? useDemoTaxAndCash(this) : useTaxAndCash();
5573
+ // @ts-ignore
5574
+ if ((_a = this.demoData) === null || _a === void 0 ? void 0 : _a.showTextProps) {
5575
+ const textProps = utils.getProps(this);
5576
+ return (index.h("div", null, (_b = Object.keys(textProps)) === null || _b === void 0 ? void 0 : _b.map((prop) => {
5577
+ if (prop === "demoData")
5578
+ return;
5579
+ return (index.h("div", null, index.h("b", null, prop, ":"), " ", this[prop], index.h("hr", null)));
5580
+ })));
5581
+ }
5582
+ switch (props.step) {
5583
+ case "/1":
5584
+ return (index.h("sqm-user-info-form", Object.assign({}, this.getGeneralStepTextProps("step1_"))));
5585
+ case "/2":
5586
+ return (index.h("sqm-indirect-tax-form", Object.assign({}, this.getGeneralStepTextProps("step2_"))));
5587
+ case "/3":
5588
+ return (index.h("sqm-docusign-form", Object.assign({}, this.getGeneralStepTextProps("step3_"))));
5589
+ case "/4":
5590
+ return (index.h("sqm-banking-info-form", Object.assign({}, this.getGeneralStepTextProps("step4_"))));
5591
+ case "/dashboard":
5592
+ return (index.h("sqm-tax-and-cash-dashboard", Object.assign({}, this.getGeneralStepTextProps("dashboard_"))));
5593
+ case "/error":
5594
+ return (index.h(ErrorView.ErrorView, { loadingErrorAlertHeader: this.loadingErrorAlertHeader, loadingErrorAlertDescription: global.intl.formatMessage({
5595
+ id: "loadingErrorAlertDescription",
5596
+ defaultMessage: this.loadingErrorAlertDescription,
5597
+ }, {
5598
+ supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, this.supportLink)),
5599
+ }) }));
5600
+ }
5601
+ return index.h(sqmInvoiceTableView.LoadingView, null);
3667
5602
  }
3668
5603
  };
3669
- function useDemoPayoutDetailsCard(props) {
5604
+ function useDemoTaxAndCash(props) {
5605
+ const [step, setStep] = index_module.In({
5606
+ namespace: TAX_CONTEXT_NAMESPACE,
5607
+ initialValue: "/1",
5608
+ });
3670
5609
  return cjs.cjs({
3671
- states: {
3672
- loading: false,
3673
- error: false,
3674
- thresholdBalance: "$50",
3675
- mainCurrency: { currencyText: "USD", amountText: "100.00" },
3676
- badgeStatus: "nextPayout",
3677
- payoutType: "BANK_TRANSFER",
3678
- nextPayoutDate: "March 14, 2024",
3679
- paypalEmailAddress: "joesmith@example.com",
3680
- otherCurrencies: false,
3681
- hasW9Pending: false,
3682
- hasDatePending: true,
3683
- cardNumberPreview: "XX2381",
3684
- balance: "20.00 USD",
3685
- },
3686
- text: props.getTextProps(),
5610
+ step,
5611
+ setStep,
3687
5612
  }, props.demoData || {}, { arrayMerge: (_, a) => a });
3688
5613
  }
3689
5614
 
3690
- const style$5 = {
3691
- DangerBadge: {
5615
+ const style$6 = {
5616
+ ErrorAlertContainer: {
5617
+ "&::part(base)": {
5618
+ backgroundColor: "var(--sl-color-red-100)",
5619
+ borderTop: "none",
5620
+ },
5621
+ "& sl-icon::part(base)": {
5622
+ color: "var(--sl-color-danger-500)",
5623
+ },
5624
+ },
5625
+ WarningAlertContainer: {
5626
+ "&::part(base)": {
5627
+ backgroundColor: "var(--sl-color-yellow-100)",
5628
+ borderTop: "none",
5629
+ maxWidth: "600px",
5630
+ },
5631
+ "& sl-icon::part(base)": {
5632
+ color: "var(--sl-color-warning-500)",
5633
+ },
5634
+ },
5635
+ WarningHoldAlertContainer: {
5636
+ marginLeft: "-20px",
3692
5637
  "&::part(base)": {
3693
- backgroundColor: "var(--sqm-danger-color-icon)",
3694
- color: "var(--sl-color-white)",
5638
+ maxWidth: "850px",
5639
+ border: "none",
5640
+ backgroundColor: "transparent",
5641
+ },
5642
+ "& sl-icon::part(base)": {
5643
+ color: "var(--sl-color-warning-500)",
3695
5644
  },
3696
5645
  },
3697
- SuccessBadge: {
5646
+ ErrorHoldAlertContainer: {
5647
+ marginLeft: "-20px",
3698
5648
  "&::part(base)": {
3699
- backgroundColor: "var(--sqm-success-color-icon)",
3700
- color: "var(--sl-color-white)",
5649
+ maxWidth: "850px",
5650
+ border: "none",
5651
+ backgroundColor: "transparent",
5652
+ },
5653
+ "& sl-icon::part(base)": {
5654
+ color: "var(--sl-color-danger-500)",
3701
5655
  },
3702
5656
  },
3703
- WarningBadge: {
5657
+ ExpiringSoonAlertContainer: {
3704
5658
  "&::part(base)": {
3705
- backgroundColor: "var(--sqm-warning-color-icon)",
3706
- color: "var(--sl-color-white)",
5659
+ backgroundColor: "var(--sl-color-yellow-100)",
5660
+ borderTop: "none",
3707
5661
  },
3708
5662
  },
3709
5663
  BankingInformationContainer: {
@@ -3711,7 +5665,7 @@ const style$5 = {
3711
5665
  },
3712
5666
  IndirectTaxPreviewContainer: {
3713
5667
  marginTop: "var(--sl-spacing-x-large)",
3714
- borderTop: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
5668
+ borderTop: "1px solid var(--sl-color-neutral-200)",
3715
5669
  },
3716
5670
  IndirectTaxPreviewHeaderContainer: {
3717
5671
  marginTop: "var(--sl-spacing-large)",
@@ -3720,7 +5674,7 @@ const style$5 = {
3720
5674
  display: "flex",
3721
5675
  gap: "var(--sl-spacing-x-small)",
3722
5676
  "&::part(base)": {
3723
- color: "var(--sqm-success-color-text)",
5677
+ color: "var(--sl-color-green-500)",
3724
5678
  },
3725
5679
  },
3726
5680
  IndirectTaxPreviewDetails: {
@@ -3734,11 +5688,11 @@ const style$5 = {
3734
5688
  marginTop: "var(--sl-spacing-medium)",
3735
5689
  },
3736
5690
  NotRegisteredIndirectTaxText: {
3737
- color: "var(--sqm-text-subdued)",
5691
+ color: "var(--sl-color-gray-500)",
3738
5692
  },
3739
5693
  TaxDocumentsContainer: {
3740
5694
  marginTop: "var(--sl-spacing-xx-large)",
3741
- borderTop: "1px solid var(--sqm-border-color)",
5695
+ borderTop: "1px solid var(--sl-color-neutral-200)",
3742
5696
  },
3743
5697
  TaxDocumentsSectionHeaderContainer: {
3744
5698
  marginTop: "var(--sl-spacing-x-large)",
@@ -3755,7 +5709,7 @@ const style$5 = {
3755
5709
  "& p": {
3756
5710
  margin: "0",
3757
5711
  paddingTop: "2px",
3758
- color: "var(--sqm-text-subdued)",
5712
+ color: "var(--sl-color-gray-500)",
3759
5713
  },
3760
5714
  },
3761
5715
  StatusAlert: {
@@ -3790,7 +5744,7 @@ const style$5 = {
3790
5744
  },
3791
5745
  TaxDocSubtext: {
3792
5746
  margin: "0",
3793
- color: "var(--sqm-text-subdued)",
5747
+ color: "var(--sl-color-neutral-500)",
3794
5748
  lineHeight: "var(--sl-spacing-medium)",
3795
5749
  fontSize: "var(--sl-font-size-small)",
3796
5750
  marginLeft: "1px",
@@ -3811,66 +5765,28 @@ const style$5 = {
3811
5765
  gap: "6px",
3812
5766
  },
3813
5767
  DescriptionText: {
3814
- color: "var(--sqm-text-subdued)",
5768
+ color: "var(--sl-color-gray-500)",
3815
5769
  fontSize: "var(--sl-font-size-x-small)",
3816
5770
  marginBottom: "none",
3817
5771
  maxWidth: "492px",
3818
5772
  },
3819
5773
  PageDescriptionText: {
3820
- color: "var(--sqm-text-subdued)",
5774
+ color: "var(--sl-color-neutral-500)",
3821
5775
  fontSize: "var(--sl-font-size-medium)",
3822
5776
  marginTop: "0",
3823
5777
  },
3824
- WarningButton: {
3825
- "&::part(base)": {
3826
- marginTop: "20px",
3827
- borderColor: "var(--sqm-warning-color-border)",
3828
- color: "var(--sqm-warning-color-text)",
3829
- background: "var(--sqm-warning-color-background)",
3830
- "&:hover": {
3831
- background: "var(--sqm-warning-color-icon)",
3832
- },
3833
- },
3834
- },
3835
- ErrorButton: {
3836
- "&::part(base)": {
3837
- marginTop: "20px",
3838
- borderColor: "var(--sqm-danger-color-border)",
3839
- color: "var(--sqm-danger-color-text)",
3840
- background: "var(--sqm-danger-color-background)",
3841
- "&:hover": {
3842
- background: "var(--sqm-danger-color-icon)",
3843
- },
3844
- },
3845
- },
3846
- SuccessButton: {
3847
- "&::part(base)": {
3848
- marginTop: "20px",
3849
- borderColor: "var(--sqm-success-color-border)",
3850
- color: "var(--sqm-success-color-text)",
3851
- background: "var(--sqm-success-color-background)",
3852
- "&:hover": {
3853
- background: "var(--sqm-success-color-icon)",
3854
- },
3855
- },
3856
- },
3857
5778
  Dialog: {
3858
5779
  "&::part(panel)": {
3859
5780
  maxWidth: "420px",
3860
5781
  },
3861
- "&::part(header)": {
3862
- display: "flex",
3863
- alignItems: "center",
3864
- justifyContent: "center",
3865
- paddingTop: "var(--sl-spacing-large)",
3866
- },
3867
5782
  "&::part(close-button)": {
3868
5783
  marginBottom: "var(--sl-spacing-xx-large)",
3869
5784
  },
3870
5785
  "&::part(title)": {
3871
- fontSize: "var(--sl-font-size-large)",
5786
+ fontSize: "var(--sl-font-size-x-large)",
3872
5787
  fontWeight: "600",
3873
- padding: "0px var(--sl-spacing-x-large) 0 var(--sl-spacing-x-large)",
5788
+ marginTop: "var(--sl-spacing-xxx-large)",
5789
+ padding: "var(--sl-spacing-x-large) var(--sl-spacing-x-large) 0 var(--sl-spacing-x-large)",
3874
5790
  },
3875
5791
  "&::part(body)": {
3876
5792
  padding: "0 var(--sl-spacing-x-large) 0 var(--sl-spacing-x-large)",
@@ -3887,23 +5803,44 @@ const style$5 = {
3887
5803
  },
3888
5804
  DialogButton: { margin: "auto", width: "100%" },
3889
5805
  };
3890
- const vanillaStyle$3 = `
3891
- * {
3892
- font-family: var(--sqm-primary-font);
3893
- }
3894
- a {
3895
- color: inherit;
3896
- text-decoration: underline;
3897
- cursor: pointer;
3898
- }
3899
- `;
3900
- const sheet$4 = JSS.createStyleSheet(style$5);
3901
- const styleString$4 = sheet$4.toString();
5806
+ const sheet$5 = JSS.createStyleSheet(style$6);
5807
+ const styleString$5 = sheet$5.toString();
3902
5808
  const TaxAndCashDashboardView = (props) => {
3903
5809
  var _a;
3904
5810
  const { states, text, callbacks, slots } = props;
3905
5811
  function getAlert(status) {
3906
5812
  switch (status) {
5813
+ case "OVER_W9_THRESHOLD":
5814
+ if (states.enforceUsTaxComplianceOption === "CASH_ONLY_DEFER_W9") {
5815
+ return {
5816
+ header: text.w9RequiredHeader,
5817
+ description: global.intl.formatMessage({
5818
+ id: "w9RequiredDescription",
5819
+ defaultMessage: text.w9RequiredDescription,
5820
+ }, {
5821
+ termsAndConditions: (index.h("a", { target: "_blank", href: `https://terms.advocate.impact.com/PayoutTermsAndConditions.html` }, text.termsAndConditions)),
5822
+ }),
5823
+ button: (index.h("sl-button", { style: { marginTop: "var(--sl-spacing-x-small)" }, type: "default", onClick: callbacks.onNewFormClick }, text.w9RequiredButtonText)),
5824
+ alertType: "info",
5825
+ icon: "info-circle",
5826
+ class: sheet$5.classes.WarningHoldAlertContainer,
5827
+ };
5828
+ }
5829
+ else {
5830
+ return {
5831
+ header: text.payoutHoldAlertHeader,
5832
+ description: global.intl.formatMessage({
5833
+ id: "payoutHoldAlertDescription",
5834
+ defaultMessage: text.payoutHoldAlertDescription,
5835
+ }, {
5836
+ supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
5837
+ }),
5838
+ buttonText: null,
5839
+ alertType: "warning",
5840
+ icon: "exclamation-triangle",
5841
+ class: sheet$5.classes.WarningHoldAlertContainer,
5842
+ };
5843
+ }
3907
5844
  case "VERIFICATION:REQUIRED":
3908
5845
  return {
3909
5846
  header: text.verificationRequiredHeader,
@@ -3915,6 +5852,8 @@ const TaxAndCashDashboardView = (props) => {
3915
5852
  }),
3916
5853
  buttonText: text.verificationRequiredButtonText,
3917
5854
  alertType: "warning",
5855
+ icon: "exclamation-triangle",
5856
+ class: sheet$5.classes.WarningHoldAlertContainer,
3918
5857
  };
3919
5858
  case "VERIFICATION:INTERNAL":
3920
5859
  return {
@@ -3926,6 +5865,8 @@ const TaxAndCashDashboardView = (props) => {
3926
5865
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
3927
5866
  }),
3928
5867
  alertType: "warning",
5868
+ icon: "exclamation-triangle",
5869
+ class: sheet$5.classes.WarningHoldAlertContainer,
3929
5870
  };
3930
5871
  case "VERIFICATION:REVIEW":
3931
5872
  return {
@@ -3937,6 +5878,8 @@ const TaxAndCashDashboardView = (props) => {
3937
5878
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
3938
5879
  }),
3939
5880
  alertType: "warning",
5881
+ icon: "exclamation-triangle",
5882
+ class: sheet$5.classes.WarningHoldAlertContainer,
3940
5883
  };
3941
5884
  case "VERIFICATION:FAILED":
3942
5885
  return {
@@ -3947,7 +5890,23 @@ const TaxAndCashDashboardView = (props) => {
3947
5890
  }, {
3948
5891
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
3949
5892
  }),
3950
- alertType: "error",
5893
+ alertType: "critical",
5894
+ icon: "exclamation-octagon",
5895
+ class: sheet$5.classes.ErrorHoldAlertContainer,
5896
+ };
5897
+ case "ACCOUNT_REVIEW":
5898
+ return {
5899
+ header: text.accountReviewHeader,
5900
+ description: global.intl.formatMessage({
5901
+ id: "accountReviewDescription",
5902
+ defaultMessage: text.accountReviewDescription,
5903
+ }, {
5904
+ supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
5905
+ }),
5906
+ buttonText: null,
5907
+ alertType: "warning",
5908
+ icon: "exclamation-triangle",
5909
+ class: sheet$5.classes.WarningHoldAlertContainer,
3951
5910
  };
3952
5911
  case "HOLD":
3953
5912
  return {
@@ -3960,22 +5919,24 @@ const TaxAndCashDashboardView = (props) => {
3960
5919
  }),
3961
5920
  buttonText: null,
3962
5921
  alertType: "warning",
5922
+ icon: "exclamation-triangle",
5923
+ class: sheet$5.classes.WarningHoldAlertContainer,
3963
5924
  };
3964
5925
  default:
3965
5926
  return;
3966
5927
  }
3967
5928
  }
3968
5929
  const statusMap = {
3969
- NOT_VERIFIED: (index.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
3970
- index.h("sl-badge", { class: sheet$4.classes.WarningBadge, type: "warning", pill: true }, text.statusTextNotVerified),
5930
+ NOT_VERIFIED: (index.h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
5931
+ index.h("sl-badge", { type: "warning", pill: true }, text.statusTextNotVerified),
3971
5932
  index.h("p", null, global.intl.formatMessage({
3972
5933
  id: `badgeTextAwaitingReview`,
3973
5934
  defaultMessage: text.badgeTextAwaitingReview,
3974
5935
  }, {
3975
5936
  dateSubmitted: states.dateSubmitted,
3976
5937
  })))),
3977
- ACTIVE: (index.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
3978
- index.h("sl-badge", { class: sheet$4.classes.SuccessBadge, type: "success", pill: true }, text.statusTextActive),
5938
+ ACTIVE: (index.h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
5939
+ index.h("sl-badge", { type: "success", pill: true }, text.statusTextActive),
3979
5940
  index.h("p", null, global.intl.formatMessage({
3980
5941
  id: `badgeTextSubmittedOn`,
3981
5942
  defaultMessage: states.documentType === "W9"
@@ -3984,13 +5945,22 @@ const TaxAndCashDashboardView = (props) => {
3984
5945
  }, {
3985
5946
  dateSubmitted: states.dateSubmitted,
3986
5947
  })))),
3987
- INACTIVE: (index.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
3988
- index.h("sl-badge", { class: sheet$4.classes.DangerBadge, type: "danger", pill: true }, text.statusTextNotActive),
5948
+ INACTIVE: (index.h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
5949
+ index.h("sl-badge", { type: "danger", pill: true }, text.statusTextNotActive),
3989
5950
  index.h("p", null, text.invalidForm))),
5951
+ undefined: (index.h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
5952
+ index.h("sl-badge", { type: "danger", pill: true }, text.statusTextRequired),
5953
+ index.h("p", null, global.intl.formatMessage({
5954
+ id: `requiredTaxForm`,
5955
+ defaultMessage: text.requiredTaxForm,
5956
+ }, {
5957
+ taxFormType: states.documentType,
5958
+ })))),
3990
5959
  };
3991
5960
  const alertMap = {
3992
- INACTIVE: (index.h("sqm-form-message", { type: "error" },
3993
- index.h("p", { part: "alert-title" }, global.intl.formatMessage({
5961
+ INACTIVE: (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.ErrorAlertContainer },
5962
+ index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
5963
+ index.h("strong", null, global.intl.formatMessage({
3994
5964
  id: `taxAlertHeaderNotActive`,
3995
5965
  defaultMessage: states.documentType === "W9"
3996
5966
  ? text.taxAlertHeaderNotActiveW9
@@ -3998,6 +5968,7 @@ const TaxAndCashDashboardView = (props) => {
3998
5968
  }, {
3999
5969
  documentType: states.documentTypeString,
4000
5970
  })),
5971
+ index.h("br", null),
4001
5972
  global.intl.formatMessage({
4002
5973
  id: `taxAlertMessage`,
4003
5974
  defaultMessage: states.documentType === "W9"
@@ -4035,74 +6006,79 @@ const TaxAndCashDashboardView = (props) => {
4035
6006
  });
4036
6007
  }
4037
6008
  };
4038
- const alert = getAlert(states.payoutStatus);
6009
+ const alertInfo = getAlert(states.payoutStatus);
4039
6010
  return (index.h("div", null,
4040
6011
  index.h("div", null,
4041
- index.h("style", { type: "text/css" }, styleString$4),
4042
- index.h("style", { type: "text/css" }, vanillaStyle$3),
4043
- states.loadingError && (index.h("sqm-form-message", { type: "error" },
4044
- index.h("p", { part: "alert-title" }, text.error.loadingErrorAlertHeader),
4045
- global.intl.formatMessage({
4046
- id: "loadingErrorAlertDescription",
4047
- defaultMessage: text.error.loadingErrorAlertDescription,
4048
- }, {
4049
- supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
4050
- }))),
4051
- ((_a = states.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sqm-form-message", { type: "error" },
4052
- index.h("p", { part: "alert-title" }, text.error.generalTitle),
6012
+ index.h("style", { type: "text/css" }, styleString$5),
6013
+ states.loadingError && (index.h("div", null,
6014
+ index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.ErrorAlertContainer },
6015
+ index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
6016
+ index.h("strong", null, text.error.loadingErrorAlertHeader),
6017
+ index.h("br", null),
6018
+ global.intl.formatMessage({
6019
+ id: "loadingErrorAlertDescription",
6020
+ defaultMessage: text.error.loadingErrorAlertDescription,
6021
+ }, {
6022
+ supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
6023
+ })))),
6024
+ ((_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 },
6025
+ index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
6026
+ index.h("strong", null, text.error.generalTitle),
6027
+ index.h("br", null),
4053
6028
  global.intl.formatMessage({
4054
6029
  id: "generalDescription",
4055
6030
  defaultMessage: text.error.generalDescription,
4056
6031
  }, {
4057
6032
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
4058
6033
  }))),
4059
- alert && (index.h("sqm-form-message", { type: alert.alertType },
4060
- index.h("p", { part: "alert-title" }, alert.header),
4061
- index.h("p", { part: "alert-description" }, alert.description),
4062
- alert.buttonText && (index.h("sl-button", { class: sheet$4.classes[`${utils.capitalizeFirstLetter(alert.alertType)}Button`], loading: states.veriffLoading, onClick: () => callbacks.onVerifyClick() }, alert.buttonText)))),
4063
- index.h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet$4.classes.Dialog, open: states.showNewFormDialog, "onSl-hide": callbacks.onNewFormCancel },
6034
+ alertInfo && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", name: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.alertType, open: true, class: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.class },
6035
+ index.h("sl-icon", { slot: "icon", name: alertInfo === null || alertInfo === void 0 ? void 0 : alertInfo.icon }),
6036
+ index.h("strong", null, alertInfo.header),
6037
+ index.h("p", { style: { margin: "0" } }, alertInfo.description),
6038
+ alertInfo.buttonText && (index.h("sl-button", { style: { marginTop: "var(--sl-spacing-x-small)" }, type: "default", loading: states.veriffLoading, onClick: () => callbacks.onVerifyClick() }, alertInfo.buttonText)),
6039
+ alertInfo.button ? (alertInfo.button) : (index.h("div", { style: { display: "none" } })))),
6040
+ index.h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet$5.classes.Dialog, open: states.showNewFormDialog, "onSl-hide": callbacks.onNewFormCancel },
4064
6041
  index.h("p", null, text.replaceTaxFormModalBodyText),
4065
- index.h("sl-button", { slot: "footer", type: "primary", exportparts: "base: primarybutton-base", class: sheet$4.classes.DialogButton, onClick: callbacks.onNewFormClick }, text.newFormButton),
4066
- index.h("sl-button", { slot: "footer", type: "secondary", exportparts: "base: secondarybutton-base", class: sheet$4.classes.DialogButton, onClick: callbacks.onNewFormCancel }, text.cancelButton)),
6042
+ index.h("sl-button", { slot: "footer", type: "primary", class: sheet$5.classes.DialogButton, onClick: callbacks.onNewFormClick }, text.newFormButton),
6043
+ index.h("sl-button", { slot: "footer", type: "default", class: sheet$5.classes.DialogButton, onClick: callbacks.onNewFormCancel }, text.cancelButton)),
4067
6044
  states.status === "INACTIVE" && alertMap[states.status],
4068
6045
  index.h("div", null,
4069
6046
  index.h("h3", { style: { marginBottom: "0" } }, text.bankingInformationSectionHeader),
4070
- index.h("p", { class: sheet$4.classes.PageDescriptionText }, text.taxAndPayoutsDescription),
4071
- index.h("div", { class: sheet$4.classes.BankingInformationContainer },
6047
+ index.h("div", { class: sheet$5.classes.BankingInformationContainer },
4072
6048
  slots.payoutDetailsCardSlot,
4073
- !states.loading && (index.h("p", { class: sheet$4.classes.DescriptionText }, text.payoutFromImpact)),
4074
- states.canEditPayoutInfo && (index.h("sl-button", { disabled: states.disabled || states.loading, type: "primary", exportparts: "base: primarybutton-base", onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
4075
- index.h("div", { class: sheet$4.classes.TaxDocumentsContainer },
4076
- index.h("div", null, states.loading ? (index.h("div", { class: sheet$4.classes.TaxSectionSkeletonContainer },
4077
- index.h("sl-skeleton", { class: sheet$4.classes.SkeletonOne }),
4078
- index.h("sl-skeleton", { class: sheet$4.classes.SkeletonTwo }))) : (index.h("div", null, states.noFormNeeded ? (index.h("div", null,
4079
- index.h("h3", { class: sheet$4.classes.TaxDocumentsSectionHeaderContainer }, text.taxDocumentSectionHeader),
4080
- index.h("p", { class: sheet$4.classes.TaxDocSubtext }, text.noFormNeededSubtext))) : (index.h("div", null,
4081
- index.h("span", { class: sheet$4.classes.TaxFormDetailsContainer },
4082
- index.h("div", { class: sheet$4.classes.StatusContainer },
4083
- index.h("h3", null, global.intl.formatMessage({
4084
- id: "section-subheader",
4085
- defaultMessage: text.taxDocumentSectionSubHeader,
4086
- }, {
4087
- documentType: states.documentTypeString,
4088
- })),
4089
- index.h("span", { class: sheet$4.classes.StatusAlert }, statusMap[states.status]))),
4090
- 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)))))))),
4091
- index.h("div", { class: sheet$4.classes.IndirectTaxPreviewContainer }, states.loading ? (index.h("div", { class: sheet$4.classes.TaxSectionSkeletonContainer },
4092
- index.h("sl-skeleton", { class: sheet$4.classes.SkeletonOne }),
4093
- index.h("sl-skeleton", { class: sheet$4.classes.SkeletonTwo }))) : (index.h("div", null,
4094
- index.h("h3", { class: sheet$4.classes.IndirectTaxPreviewHeaderContainer },
6049
+ !states.loading && (index.h("p", { class: sheet$5.classes.DescriptionText }, text.payoutFromImpact)),
6050
+ states.canEditPayoutInfo && (index.h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$5.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
6051
+ (!states.noFormNeeded || states.status === "NOT_VERIFIED") && (index.h("div", { class: sheet$5.classes.TaxDocumentsContainer },
6052
+ index.h("div", null, states.loading ? (index.h("div", { class: sheet$5.classes.TaxSectionSkeletonContainer },
6053
+ index.h("sl-skeleton", { class: sheet$5.classes.SkeletonOne }),
6054
+ index.h("sl-skeleton", { class: sheet$5.classes.SkeletonTwo }))) : (index.h("div", null,
6055
+ index.h("div", null,
6056
+ index.h("span", { class: sheet$5.classes.TaxFormDetailsContainer },
6057
+ index.h("div", { class: sheet$5.classes.StatusContainer },
6058
+ index.h("h3", null, global.intl.formatMessage({
6059
+ id: "section-subheader",
6060
+ defaultMessage: text.taxDocumentSectionSubHeader,
6061
+ }, {
6062
+ documentType: states.documentTypeString || "W-9",
6063
+ })),
6064
+ index.h("span", { class: sheet$5.classes.StatusAlert }, statusMap[states.status]))),
6065
+ states.noFormNeeded &&
6066
+ 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)))))))),
6067
+ index.h("div", { class: sheet$5.classes.IndirectTaxPreviewContainer }, states.loading ? (index.h("div", { class: sheet$5.classes.TaxSectionSkeletonContainer },
6068
+ index.h("sl-skeleton", { class: sheet$5.classes.SkeletonOne }),
6069
+ index.h("sl-skeleton", { class: sheet$5.classes.SkeletonTwo }))) : (index.h("div", null,
6070
+ index.h("h3", { class: sheet$5.classes.IndirectTaxPreviewHeaderContainer },
4095
6071
  text.indirectTaxInfoSectionHeader,
4096
- index.h("sl-tooltip", { trigger: "hover", placement: "right", content: text.indirectTaxTooltipSupport, class: sheet$4.classes.TooltipContainer },
4097
- index.h("sl-icon", { name: "info-circle", class: sheet$4.classes.ToolTip }))),
4098
- index.h("div", { class: sheet$4.classes.IndirectTaxPreviewDetails },
4099
- index.h("span", null, states.notRegistered ? (index.h("span", { class: sheet$4.classes.NotRegisteredIndirectTaxText }, global.intl.formatMessage({
6072
+ index.h("sl-tooltip", { trigger: "hover", placement: "right", content: text.indirectTaxTooltipSupport, class: sheet$5.classes.TooltipContainer },
6073
+ index.h("sl-icon", { name: "info-circle", class: sheet$5.classes.ToolTip }))),
6074
+ index.h("div", { class: sheet$5.classes.IndirectTaxPreviewDetails },
6075
+ index.h("span", null, states.notRegistered ? (index.h("span", { class: sheet$5.classes.NotRegisteredIndirectTaxText }, global.intl.formatMessage({
4100
6076
  id: "notRegisteredForTax",
4101
6077
  defaultMessage: text.notRegisteredForTax,
4102
6078
  }, {
4103
6079
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
4104
6080
  }))) : (getIndirectTaxRegisteredIn())),
4105
- !states.notRegistered && (index.h("div", { class: sheet$4.classes.TaxNumberContainer },
6081
+ !states.notRegistered && (index.h("div", { class: sheet$5.classes.TaxNumberContainer },
4106
6082
  index.h("span", null, global.intl.formatMessage({
4107
6083
  id: `indirectTaxDetails`,
4108
6084
  defaultMessage: text.indirectTaxDetails,
@@ -4125,7 +6101,7 @@ const TaxAndCashDashboardView = (props) => {
4125
6101
  }, {
4126
6102
  subRegionTaxNumber: states.subRegionTaxNumber,
4127
6103
  })))),
4128
- !states.notRegistered && (index.h("div", { class: sheet$4.classes.InvoiceTableContainer },
6104
+ !states.notRegistered && (index.h("div", { class: sheet$5.classes.InvoiceTableContainer },
4129
6105
  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 },
4130
6106
  index.h("sqm-invoice-table-download-column", null),
4131
6107
  index.h("sqm-invoice-table-date-column", { "column-title": text.dateColumnTitle }),
@@ -4135,6 +6111,13 @@ const TaxAndCashDashboardView = (props) => {
4135
6111
  index.h("sqm-invoice-table-data-column", { "column-title": text.earningsAfterTaxColumnTitle, property: "netEarnings" })))))))))));
4136
6112
  };
4137
6113
 
6114
+ const GET_TAX_SETTING = index_module.dist.gql `
6115
+ query getTenantSettings {
6116
+ tenantSettings {
6117
+ enforceUsTaxCompliance
6118
+ }
6119
+ }
6120
+ `;
4138
6121
  function getCountryName(countryCode, locale) {
4139
6122
  if (!countryCode)
4140
6123
  return undefined;
@@ -4149,12 +6132,12 @@ function getSubRegionName(regionCode) {
4149
6132
  return "";
4150
6133
  // Impact adds an underscore to some regions
4151
6134
  const standardCode = regionCode.replace("_", "");
4152
- const regions = [...IndirectTaxDetailsView.INDIRECT_TAX_PROVINCES, ...IndirectTaxDetailsView.INDIRECT_TAX_SPAIN_REGIONS];
6135
+ const regions = [...sqmInvoiceTableView.INDIRECT_TAX_PROVINCES, ...sqmInvoiceTableView.INDIRECT_TAX_SPAIN_REGIONS];
4153
6136
  return (_a = regions.find((r) => r.regionCode === standardCode)) === null || _a === void 0 ? void 0 : _a.displayName;
4154
6137
  }
4155
6138
  function getIndirectTaxType(taxInformation) {
4156
6139
  var _a;
4157
- const regions = [...IndirectTaxDetailsView.INDIRECT_TAX_PROVINCES, ...IndirectTaxDetailsView.INDIRECT_TAX_SPAIN_REGIONS];
6140
+ const regions = [...sqmInvoiceTableView.INDIRECT_TAX_PROVINCES, ...sqmInvoiceTableView.INDIRECT_TAX_SPAIN_REGIONS];
4158
6141
  if (taxInformation === null || taxInformation === void 0 ? void 0 : taxInformation.indirectTaxRegion) {
4159
6142
  const standardRegion = taxInformation.indirectTaxRegion.replace("_", "");
4160
6143
  const taxType = (_a = regions.find((r) => r.regionCode === standardRegion)) === null || _a === void 0 ? void 0 : _a.taxType;
@@ -4165,23 +6148,26 @@ function getIndirectTaxType(taxInformation) {
4165
6148
  if (taxInformation === null || taxInformation === void 0 ? void 0 : taxInformation.withholdingTaxCountryCode)
4166
6149
  return "VAT";
4167
6150
  if (taxInformation === null || taxInformation === void 0 ? void 0 : taxInformation.indirectTaxCountryCode) {
4168
- return IndirectTaxDetailsView.vatLabels[taxInformation.indirectTaxCountryCode] || "Indirect Tax";
6151
+ return sqmInvoiceTableView.vatLabels[taxInformation.indirectTaxCountryCode] || "Indirect Tax";
4169
6152
  }
4170
6153
  return "Indirect Tax";
4171
6154
  }
4172
6155
  const useTaxAndCashDashboard = (props) => {
4173
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
4174
- const setStep = index_module.En(data.TAX_CONTEXT_NAMESPACE);
4175
- const setContext = index_module.En(data.TAX_FORM_CONTEXT_NAMESPACE);
4176
- const [showDialog, setShowDialog] = domContextHooks_module.useState(false);
6156
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
6157
+ const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
6158
+ const setContext = index_module.En(TAX_FORM_CONTEXT_NAMESPACE);
6159
+ const [showDialog, setShowDialog] = stencilHooks_module.useState(false);
4177
6160
  const { render, loading: veriffLoading, errors: veriffErrors, } = usePayoutStatus.useVeriffApp();
6161
+ const { data: taxSettingRes } = index_module.wn(GET_TAX_SETTING, {});
4178
6162
  const locale = index_module.L();
4179
- domContextHooks_module.useEffect(() => {
6163
+ stencilHooks_module.useEffect(() => {
4180
6164
  // Clear override context once on submitted
4181
6165
  setContext({});
6166
+ if (window.location.hash)
6167
+ setStep(`/${window.location.hash.replace("#", "")}`);
4182
6168
  }, []);
4183
- const { data: data$1, loading, errors: userError, refetch, } = index_module.$n(data.USER_QUERY_NAMESPACE);
4184
- 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;
6169
+ const { data, loading, errors: userError, refetch, } = index_module.$n(USER_QUERY_NAMESPACE);
6170
+ 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;
4185
6171
  const documentType = publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType;
4186
6172
  const submissionDate = (_c = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _c === void 0 ? void 0 : _c.dateCreated;
4187
6173
  const dateSubmitted = submissionDate
@@ -4204,39 +6190,41 @@ const useTaxAndCashDashboard = (props) => {
4204
6190
  });
4205
6191
  setStep("/3");
4206
6192
  };
4207
- 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;
4208
- const payoutStatus = data$1 ? usePayoutStatus.getStatus(data$1) : null;
4209
- domContextHooks_module.useEffect(() => {
6193
+ 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;
6194
+ const payoutStatus = data ? usePayoutStatus.getStatus(data) : null;
6195
+ stencilHooks_module.useEffect(() => {
4210
6196
  const cb = () => refetch();
4211
6197
  window.addEventListener(usePayoutStatus.VERIFF_COMPLETE_EVENT_KEY, cb);
4212
6198
  return () => {
4213
6199
  window.removeEventListener(usePayoutStatus.VERIFF_COMPLETE_EVENT_KEY, cb);
4214
6200
  };
4215
6201
  }, []);
6202
+ const enforceUsTaxComplianceOption = (_e = taxSettingRes === null || taxSettingRes === void 0 ? void 0 : taxSettingRes.tenantSettings) === null || _e === void 0 ? void 0 : _e.enforceUsTaxCompliance;
4216
6203
  return {
4217
6204
  states: {
4218
6205
  dateSubmitted,
4219
6206
  documentType,
4220
6207
  canEditPayoutInfo: publisher === null || publisher === void 0 ? void 0 : publisher.brandedSignup,
4221
- documentTypeString: utils$1.taxTypeToName(documentType),
4222
- status: (_e = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _e === void 0 ? void 0 : _e.status,
4223
- subRegion: getSubRegionName((_f = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _f === void 0 ? void 0 : _f.indirectTaxRegion),
4224
- subRegionTaxNumber: (_g = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _g === void 0 ? void 0 : _g.withholdingTaxId,
4225
- qstNumber: (_h = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _h === void 0 ? void 0 : _h.additionalTaxId,
6208
+ documentTypeString: sqmInvoiceTableView.taxTypeToName(documentType),
6209
+ status: (_f = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _f === void 0 ? void 0 : _f.status,
6210
+ subRegion: getSubRegionName((_g = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _g === void 0 ? void 0 : _g.indirectTaxRegion),
6211
+ subRegionTaxNumber: (_h = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _h === void 0 ? void 0 : _h.withholdingTaxId,
6212
+ qstNumber: (_j = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _j === void 0 ? void 0 : _j.additionalTaxId,
4226
6213
  indirectTaxType: getIndirectTaxType(publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation),
4227
- indirectTaxNumber: (_j = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _j === void 0 ? void 0 : _j.indirectTaxId,
6214
+ indirectTaxNumber: (_k = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _k === void 0 ? void 0 : _k.indirectTaxId,
4228
6215
  isBusinessEntity: (publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType) === "W8BENE",
4229
6216
  province: provinceName,
4230
- country: getCountryName((_k = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _k === void 0 ? void 0 : _k.indirectTaxCountryCode, locale),
4231
- notRegistered: !((_l = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _l === void 0 ? void 0 : _l.indirectTaxId),
6217
+ country: getCountryName((_l = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _l === void 0 ? void 0 : _l.indirectTaxCountryCode, locale),
6218
+ notRegistered: !((_m = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _m === void 0 ? void 0 : _m.indirectTaxId),
4232
6219
  noFormNeeded: !documentType,
4233
6220
  disabled: loading,
4234
6221
  loading,
4235
6222
  loadingError: !!(userError === null || userError === void 0 ? void 0 : userError.message),
4236
6223
  showNewFormDialog: showDialog,
4237
- hasHold: !!((_m = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _m === void 0 ? void 0 : _m.hold),
6224
+ hasHold: !!((_o = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _o === void 0 ? void 0 : _o.hold),
4238
6225
  payoutStatus,
4239
6226
  veriffLoading,
6227
+ enforceUsTaxComplianceOption,
4240
6228
  },
4241
6229
  callbacks: {
4242
6230
  onClick: () => setShowDialog(true),
@@ -4266,6 +6254,18 @@ const TaxAndCashDashboard = class {
4266
6254
  * @uiName Not verified tax form badge label
4267
6255
  */
4268
6256
  this.statusTextNotVerified = "Not Verified";
6257
+ /**
6258
+ * Displayed when the participant has not submitted their required tax form.
6259
+ *
6260
+ * @uiName Required tax form badge label
6261
+ */
6262
+ this.statusTextRequired = "Required";
6263
+ /**
6264
+ * Additional text displayed next to the tax form's status badge
6265
+ *
6266
+ * @uiName Required tax form description
6267
+ */
6268
+ this.requiredTaxForm = "Your payouts are on hold until you submit a {taxFormType} tax form.";
4269
6269
  /**
4270
6270
  * Additional text displayed next to the tax form's status badge
4271
6271
  *
@@ -4290,7 +6290,7 @@ const TaxAndCashDashboard = class {
4290
6290
  * @uiName Inactive W-9 error message title
4291
6291
  * @uiWidget textArea
4292
6292
  */
4293
- this.taxAlertHeaderNotActiveW9 = "Your W9 tax form has personal information that doesn’t match your profile";
6293
+ this.taxAlertHeaderNotActiveW9 = "Your W-9 tax form has personal information that doesn’t match your profile";
4294
6294
  /**
4295
6295
  * Part of the alert displayed at the top of the page.
4296
6296
  *
@@ -4332,13 +6332,6 @@ const TaxAndCashDashboard = class {
4332
6332
  * @uiName Tax documents section description
4333
6333
  */
4334
6334
  this.taxDocumentSectionSubHeader = "{documentType} tax form";
4335
- /**
4336
- * No other statuses or badges will be displayed in the tax form section in this case.
4337
- *
4338
- * @uiName Tax form not required text
4339
- * @uiWidget textArea
4340
- */
4341
- this.noFormNeededSubtext = "Tax documents are only required if you are based in the US or joining the referral program of a US based brand.";
4342
6335
  /**
4343
6336
  *
4344
6337
  * @uiName Indirect tax section header
@@ -4468,6 +6461,30 @@ const TaxAndCashDashboard = class {
4468
6461
  * @uiName Verification required alert button text
4469
6462
  */
4470
6463
  this.verificationRequiredButtonText = "Start Verification";
6464
+ /**
6465
+ * @uiName W-9 payment threshold alert header
6466
+ */
6467
+ this.w9RequiredHeader = "Your next payout is on hold";
6468
+ /**
6469
+ * @uiName W-9 payment threshold alert description
6470
+ */
6471
+ this.w9RequiredDescription = "You have surpassed the $600 threshold requiring a W-9 form or have multiple accounts with impact.com. To remove the hold, please submit your W-9 form.";
6472
+ /**
6473
+ * @uiName Account review alert header
6474
+ */
6475
+ this.accountReviewHeader = "Your account is under review";
6476
+ /**
6477
+ * @uiName Account review alert description
6478
+ */
6479
+ this.accountReviewDescription = "This process takes 48 hours, payouts are on hold until it's completed. You will receive an email from our referral provider, Impact.com, if any issues arise. It contains details on how to resolve this issue. If you need further assistance, please reach out to our {supportLink}.";
6480
+ /**
6481
+ * @uiName Terms and Conditions text
6482
+ */
6483
+ this.termsAndConditions = "Terms and Conditions";
6484
+ /**
6485
+ * @uiName W-9 payment threshold alert button text
6486
+ */
6487
+ this.w9RequiredButtonText = "Submit W-9";
4471
6488
  /**
4472
6489
  * Part of the alert displayed at the top of the page.
4473
6490
  * @uiName Form submission error message title
@@ -4535,11 +6552,6 @@ const TaxAndCashDashboard = class {
4535
6552
  this.invoiceEmptyStateHeader = "View your invoice details";
4536
6553
  /** @uiName Empty invoice table description */
4537
6554
  this.invoiceEmptyStateText = "Refer a friend to view the status of your invoices and rewards earned";
4538
- /**
4539
- * Displayed at the top of the page on all set up steps and on the dashboard.
4540
- * @uiName Page description
4541
- */
4542
- this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
4543
6555
  /**
4544
6556
  * @uiName Replace tax form modal header
4545
6557
  */
@@ -4556,12 +6568,7 @@ const TaxAndCashDashboard = class {
4556
6568
  * @uiName Cancel button label
4557
6569
  */
4558
6570
  this.cancelButton = "Cancel";
4559
- /**
4560
- * @undocumented
4561
- * @componentState { "title": "Payouts on hold", "props": { "payoutStatus": "HOLD" }, "uiGroup": "Dashboard Properties" }
4562
- */
4563
- this.stateController = "{}";
4564
- domContextHooks_module.h$1(this);
6571
+ stencilHooks_module.h$1(this);
4565
6572
  }
4566
6573
  disconnectedCallback() { }
4567
6574
  getTextProps() {
@@ -4586,31 +6593,23 @@ const TaxAndCashDashboard = class {
4586
6593
  }
4587
6594
  };
4588
6595
  function useDemoTaxAndCashDashboard(props) {
4589
- // @ts-ignore
4590
6596
  return cjs.cjs({
4591
6597
  states: {
4592
6598
  dateSubmitted: "today",
4593
6599
  documentType: "W9",
4594
- documentTypeString: "W9",
6600
+ documentTypeString: "W-9",
6601
+ status: "ACTIVE",
4595
6602
  country: "United States",
4596
- indirectTaxNumber: "55555555",
6603
+ indirectTaxNumber: 55555555,
4597
6604
  indirectTaxType: "Indirect Tax",
4598
- noFormNeeded: false,
6605
+ noFormNeeded: true,
4599
6606
  disabled: false,
4600
6607
  loading: false,
4601
6608
  showNewFormDialog: false,
4602
6609
  hasHold: false,
4603
- subRegion: "CA",
4604
- subRegionTaxNumber: undefined,
4605
- qstNumber: undefined,
4606
- isBusinessEntity: false,
4607
- province: undefined,
4608
- notRegistered: true,
4609
- loadingError: false,
6610
+ showVerifyIdentity: false,
4610
6611
  payoutStatus: "DONE",
4611
6612
  veriffLoading: false,
4612
- canEditPayoutInfo: true,
4613
- status: "ACTIVE",
4614
6613
  },
4615
6614
  callbacks: {
4616
6615
  onClick: () => console.debug("check step"),
@@ -4620,14 +6619,7 @@ function useDemoTaxAndCashDashboard(props) {
4620
6619
  onVerifyClick: () => console.log("verify"),
4621
6620
  },
4622
6621
  text: props.getTextProps(),
4623
- slots: {
4624
- payoutDetailsCardSlot: (index.h("sqm-payout-details-card", { demoData: {
4625
- states: {
4626
- badgeStatus: "nextPayout",
4627
- },
4628
- } })),
4629
- },
4630
- }, props.demoData || props.stateController || {}, { arrayMerge: (_, a) => a });
6622
+ }, props.demoData || {}, { arrayMerge: (_, a) => a });
4631
6623
  }
4632
6624
 
4633
6625
  const PHONE_EXTENSIONS = {
@@ -5601,19 +7593,19 @@ const PHONE_EXTENSIONS = {
5601
7593
  },
5602
7594
  };
5603
7595
 
5604
- const style$6 = {
7596
+ const style$7 = {
5605
7597
  FormWrapper: {},
5606
7598
  ErrorInput: {
5607
7599
  "&::part(base)": {
5608
- border: "var(--sqm-border-thickness, 1px) solid var(--sqm-danger-color-icon)",
7600
+ border: "1px solid var(--sl-color-danger-500)",
5609
7601
  borderRadius: "var(--sl-input-border-radius-medium)",
5610
7602
  },
5611
7603
  "&::part(help-text)": {
5612
- color: "var(--sqm-danger-color-icon)",
7604
+ color: "var(--sl-color-danger-500)",
5613
7605
  },
5614
7606
  },
5615
7607
  ErrorText: {
5616
- color: "var(--sqm-danger-color-icon)",
7608
+ color: "var(--sl-color-danger-500)",
5617
7609
  marginTop: "10px",
5618
7610
  },
5619
7611
  TextContainer: {
@@ -5644,6 +7636,9 @@ const style$6 = {
5644
7636
  justifyContent: "flex-start",
5645
7637
  flexDirection: "column",
5646
7638
  },
7639
+ DescriptionText: {
7640
+ color: "var(--sl-color-neutral-500)",
7641
+ },
5647
7642
  BoldText: {
5648
7643
  fontWeight: "bold",
5649
7644
  },
@@ -5652,8 +7647,28 @@ const style$6 = {
5652
7647
  borderRadius: "50%",
5653
7648
  },
5654
7649
  },
7650
+ AlertContainer: {
7651
+ "&::part(base)": {
7652
+ backgroundColor: "var(--sl-color-red-100)",
7653
+ borderTop: "none",
7654
+ padding: "0 16px",
7655
+ },
7656
+ "& sl-icon::part(base)": {
7657
+ color: "var(--sl-color-danger-500)",
7658
+ },
7659
+ },
7660
+ PartnerAlertContainer: {
7661
+ "&::part(base)": {
7662
+ backgroundColor: "var(--sl-color-sky-100)",
7663
+ borderTop: "none",
7664
+ padding: "0 16px",
7665
+ },
7666
+ "& sl-icon::part(base)": {
7667
+ color: "var(--sl-color-blue-500)",
7668
+ },
7669
+ },
5655
7670
  PageDescriptionText: {
5656
- color: "var(--sqm-text-subdued)",
7671
+ color: "var(--sl-color-neutral-500)",
5657
7672
  fontSize: "var(--sl-font-size-medium)",
5658
7673
  },
5659
7674
  PhoneInputsSection: {
@@ -5676,8 +7691,8 @@ const style$6 = {
5676
7691
  },
5677
7692
  },
5678
7693
  };
5679
- const sheet$5 = JSS.createStyleSheet(style$6);
5680
- const styleString$5 = sheet$5.toString();
7694
+ const sheet$6 = JSS.createStyleSheet(style$7);
7695
+ const styleString$6 = sheet$6.toString();
5681
7696
  const vanillaStyle$4 = `
5682
7697
  :host{
5683
7698
  display: block;
@@ -5687,15 +7702,11 @@ const vanillaStyle$4 = `
5687
7702
  padding: 0;
5688
7703
  box-sizing: border-box;
5689
7704
  }
5690
- a {
5691
- color: var(--sqm-text);
5692
- color: inherit !important;
5693
- text-decoration: underline;
5694
- }
5695
7705
 
5696
7706
  p {
5697
7707
  line-height: 18px;
5698
- font-size: var(--sl-font-size-small);
7708
+ color: var(--sl-color-gray-800);
7709
+ font-size: var(--sl-font-size-small);
5699
7710
  }
5700
7711
 
5701
7712
  sl-radio-group::part(base) {
@@ -5706,149 +7717,11 @@ const vanillaStyle$4 = `
5706
7717
  sl-select#phoneNumberCountryCode::part(menu) {
5707
7718
  min-width: 250px;
5708
7719
  }
5709
-
5710
- sl-button[type="primary"]::part(base){
5711
- background-color: var(--sqm-primary-button-background);
5712
- color: var(--sqm-primary-button-color);
5713
- border-color: var(--sqm-primary-button-color-border);
5714
- border-radius: var(--sqm-primary-button-radius);
5715
- }
5716
-
5717
- sl-button[type="primary"]::part(base):hover{
5718
- background-color: var(--sqm-primary-button-background-hover);
5719
- }
5720
-
5721
- sl-button[type="primary"]::part(base):focus{
5722
- box-shadow: none;
5723
- }
5724
-
5725
- sl-button[type="secondary"]::part(base){
5726
- background-color: var(--sqm-secondary-button-background);
5727
- color: var(--sqm-secondary-button-color);
5728
- border-color: var(--sqm-secondary-button-color-border);
5729
- border-radius: var(--sqm-secondary-button-radius);
5730
- }
5731
-
5732
- sl-button[type="secondary"]::part(base):hover{
5733
- background-color: var(--sqm-secondary-button-background-hover);
5734
- }
5735
-
5736
-
5737
-
5738
- *::part(primarybutton-base){
5739
- background-color: var(--sqm-primary-button-background);
5740
- color: var(--sqm-primary-button-color);
5741
- border-color: var(--sqm-primary-button-color-border);
5742
- border-radius: var(--sqm-primary-button-radius);
5743
- }
5744
-
5745
- *::part(primarybutton-base):hover{
5746
- background-color: var(--sqm-primary-button-background-hover);
5747
- }
5748
-
5749
- *::part(primarybutton-base):focus{
5750
- box-shadow: none;
5751
- }
5752
-
5753
- *::part(secondarybutton-base){
5754
- background-color: var(--sqm-secondary-button-background);
5755
- color: var(--sqm-secondary-button-color);
5756
- border-color: var(--sqm-secondary-button-color-border);
5757
- border-radius: var(--sqm-secondary-button-radius);
5758
- }
5759
-
5760
- *::part(secondarybutton-base):hover{
5761
- background-color: var(--sqm-secondary-button-background-hover);
5762
- }
5763
-
5764
- *::part(secondarybutton-base){
5765
- background-color: var(--sqm-secondary-button-background);
5766
- color: var(--sqm-secondary-button-color);
5767
- border-color: var(--sqm-secondary-button-color-border);
5768
- border-radius: var(--sqm-secondary-button-radius);
5769
- width: max-content;
5770
- display: flex;
5771
- margin: auto;
5772
- }
5773
-
5774
- *::part(secondarybutton-base):hover{
5775
- background: var(--sqm-secondary-button-background-hover);
5776
- }
5777
-
5778
- sl-input::part(label),
5779
- sl-select::part(label),
5780
- sl-textarea::part(label){
5781
- font-size: var(--sqm-input-label-font-size, var(--sl-input-font-size-small));
5782
- font-weight: var(--sl-font-weight-semibold);
5783
- color: var(--sqm-input-label-color, var(--sqm-text), black);
5784
- }
5785
-
5786
- /* Corrected: Target sl-input, sl-select, sl-textarea base elements */
5787
- sl-input::part(base),
5788
- sl-dropdown::part(base),
5789
- sl-textarea::part(base){
5790
- background-color: var(--sqm-input-background, #fff);
5791
- border-radius: var(--sqm-input-border-radius, var(--sl-input-border-radius-large), 0.25rem);
5792
- color: var(--sqm-input-color, white);
5793
- border-width: var(--sqm-border-thickness, 1px);
5794
- border-style: solid;
5795
- border-color: var(--sqm-input-border-color, #ccc);
5796
- }
5797
-
5798
-
5799
- sl-select::part(menu) {
5800
- background: var(--sqm-input-background, inherit);
5801
- color: var(--sqm-input-color, inherit);
5802
- border:none;
5803
- }
5804
-
5805
- sl-select::part(panel) {
5806
- border-radius: var(--sqm-border-radius-normal);
5807
- }
5808
-
5809
- sl-select::part(help-text) {
5810
- color: var(--sqm-text-subdued, var(--sl-input-help-text-color, #6c757d));
5811
- }
5812
-
5813
- sl-input::part(base):focus,
5814
- sl-select::part(base):focus, /* Corrected part name for sl-select */
5815
- sl-textarea::part(base):focus { /* Corrected part name for sl-textarea */
5816
- border: var(--sqm-input-focus-border, 1px solid var(--sl-input-border-color-focus, #007bff)); /* Added fallback for --sl-input-border-color-focus */
5817
- }
5818
-
5819
- sl-input[disabled]::part(label),
5820
- sl-select[disabled]::part(label),
5821
- sl-textarea[disabled]::part(label){
5822
- color: var(--sqm-input-disabled-color, var(--sl-color-gray-600));
5823
- }
5824
-
5825
- sl-input[disabled]::part(base),
5826
- sl-select[disabled]::part(base),
5827
- sl-textarea[disabled]::part(base){
5828
- background: var(--sqm-input-disabled-background, #f5f5f5);
5829
- border-color: var(--sl-input-border-color-disabled, #e0e0e0); /* Example disabled border color */
5830
- }
5831
-
5832
-
5833
- sl-input::part(input):-webkit-autofill {
5834
- box-shadow: 0 0 0 50px var(--sqm-input-background, #fff) inset !important;
5835
- -webkit-text-fill-color: var(--sqm-input-color, white) !important;
5836
- }
5837
-
5838
- sl-input::part(input):-webkit-autofill:hover {
5839
- box-shadow: 0 0 0 50px var(--sqm-input-background, #fff) inset !important;
5840
- -webkit-text-fill-color: var(--sqm-input-color, white) !important;
5841
- }
5842
-
5843
- sl-input::part(input):-webkit-autofill:focus {
5844
- box-shadow: 0 0 0 50px var(--sqm-input-background, #fff) inset !important;
5845
- -webkit-text-fill-color: var(--sqm-input-color, white) !important;
5846
- }
5847
- `;
7720
+ `;
5848
7721
  const UserInfoFormView = (props) => {
5849
7722
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
5850
- const { states, states: { formState }, callbacks, text, refs, data: data$1, } = props;
5851
- const { classes } = sheet$5;
7723
+ const { states, states: { formState }, callbacks, text, refs, data, } = props;
7724
+ const { classes } = sheet$6;
5852
7725
  const bankingCollectionText = global.intl.formatMessage({
5853
7726
  id: "bankingCollectionText",
5854
7727
  defaultMessage: text.allowBankingCollection,
@@ -5856,7 +7729,7 @@ const UserInfoFormView = (props) => {
5856
7729
  termsAndConditionsLink: (index.h("a", { href: text.termsAndConditionsLink, target: "_blank" }, text.termsAndConditionsLabel)),
5857
7730
  });
5858
7731
  let regionLabel = undefined;
5859
- switch (data$1.regionLabelEnum) {
7732
+ switch (data.regionLabelEnum) {
5860
7733
  case "STATE":
5861
7734
  regionLabel = text.state;
5862
7735
  break;
@@ -5871,58 +7744,65 @@ const UserInfoFormView = (props) => {
5871
7744
  }
5872
7745
  return (index.h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
5873
7746
  index.h("style", { type: "text/css" },
5874
- styleString$5,
7747
+ styleString$6,
5875
7748
  vanillaStyle$4),
5876
7749
  states.loadingError && (index.h("div", null,
5877
- index.h("sqm-form-message", { type: "error" },
5878
- index.h("p", { part: "alert-title" }, text.error.loadingErrorAlertHeader),
5879
- index.h("p", { part: "alert-description" }, global.intl.formatMessage({
7750
+ index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$6.classes.AlertContainer },
7751
+ index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
7752
+ index.h("strong", null, text.error.loadingErrorAlertHeader),
7753
+ index.h("br", null),
7754
+ global.intl.formatMessage({
5880
7755
  id: "loadingErrorAlertDescription",
5881
7756
  defaultMessage: text.error.loadingErrorAlertDescription,
5882
7757
  }, {
5883
7758
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
5884
- }))))),
5885
- states.loading ? (index.h(utils$1.LoadingView, null)) : (index.h("div", null,
7759
+ })),
7760
+ index.h("br", null))),
7761
+ states.loading ? (index.h(sqmInvoiceTableView.GeneralLoadingView, null)) : (index.h("div", null,
5886
7762
  index.h("div", { class: classes.TextContainer },
5887
7763
  index.h("div", null,
5888
7764
  !states.hideSteps && (index.h("p", null, global.intl.formatMessage({
5889
7765
  id: "formStep",
5890
7766
  defaultMessage: text.formStep,
5891
- }, { step: states.step, count: data.FORM_STEPS }))),
7767
+ }, { step: states.step, count: FORM_STEPS }))),
5892
7768
  index.h("h3", null, text.personalInformation),
5893
7769
  index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
5894
- ((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sqm-form-message", { type: "error" },
5895
- index.h("p", { part: "alert-title" }, text.error.generalTitle),
5896
- index.h("p", { part: "alert-description" }, global.intl.formatMessage({
7770
+ ((_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 },
7771
+ index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
7772
+ index.h("strong", null, text.error.generalTitle),
7773
+ index.h("br", null),
7774
+ global.intl.formatMessage({
5897
7775
  id: "generalDescription",
5898
7776
  defaultMessage: text.error.generalDescription,
5899
7777
  }, {
5900
7778
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
5901
- })))),
5902
- (states.isPartner || states.isUser) && (index.h("sqm-form-message", { type: "info" },
5903
- index.h("p", { part: "alert-title" }, text.isPartnerAlertHeader),
5904
- index.h("p", { part: "alert-description" }, global.intl.formatMessage({
7779
+ }))),
7780
+ (states.isPartner || states.isUser) && (index.h("sl-alert", { type: "primary", open: true, class: sheet$6.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
7781
+ index.h("sl-icon", { slot: "icon", name: "info-circle" }),
7782
+ index.h("strong", null, text.isPartnerAlertHeader),
7783
+ index.h("br", null),
7784
+ global.intl.formatMessage({
5905
7785
  id: "isPartnerAlertDescription",
5906
7786
  defaultMessage: text.isPartnerAlertDescription,
5907
7787
  }, {
5908
7788
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
5909
- })))),
7789
+ }))),
5910
7790
  index.h("div", null,
5911
7791
  index.h("div", { class: classes.InputContainer },
5912
- 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) ? {
7792
+ 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
7793
  class: classes.ErrorInput,
5914
- helpText: utils$1.formatErrorMessage(text.firstName, formState.errors.firstName),
7794
+ helpText: sqmInvoiceTableView.formatErrorMessage(text.firstName, formState.errors.firstName),
5915
7795
  }
5916
7796
  : {}), { id: "firstName", name: "/firstName", required: true })),
5917
7797
  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) ? {
5918
7798
  class: classes.ErrorInput,
5919
- helpText: utils$1.formatErrorMessage(text.lastName, formState.errors.lastName),
7799
+ helpText: sqmInvoiceTableView.formatErrorMessage(text.lastName, formState.errors.lastName),
5920
7800
  }
5921
7801
  : {}), { id: "lastName", name: "/lastName", required: true })),
5922
7802
  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 }),
5923
7803
  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) ? {
5924
7804
  class: classes.ErrorInput,
5925
- helpText: utils$1.formatErrorMessage(text.country, formState.errors.countryCode),
7805
+ helpText: sqmInvoiceTableView.formatErrorMessage(text.country, formState.errors.countryCode),
5926
7806
  }
5927
7807
  : {}), { required: true, "onSl-select": (e) => callbacks.onFormChange("countryCode", e) }),
5928
7808
  index.h("sl-input", { class: classes.SearchInput, placeholder: text.searchForCountryText, onKeyDown: (e) => {
@@ -5930,8 +7810,8 @@ const UserInfoFormView = (props) => {
5930
7810
  e.stopPropagation();
5931
7811
  }, "onSl-input": (e) => {
5932
7812
  callbacks.setCountrySearch(e.target.value);
5933
- } }), (_e = data$1 === null || data$1 === void 0 ? void 0 : data$1.countries) === null || _e === void 0 ? void 0 :
5934
- _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 :
7813
+ } }), (_e = data === null || data === void 0 ? void 0 : data.countries) === null || _e === void 0 ? void 0 :
7814
+ _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 :
5935
7815
  _f.map((c) => (index.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } }, c.displayName)))),
5936
7816
  index.h("div", { class: classes.PhoneInputsSection },
5937
7817
  index.h("p", null, text.phoneNumber),
@@ -5945,13 +7825,13 @@ const UserInfoFormView = (props) => {
5945
7825
  e.stopPropagation();
5946
7826
  }, "onSl-input": (e) => {
5947
7827
  callbacks.setPhoneCountrySearch(e.target.value);
5948
- } }), (_h = data$1 === null || data$1 === void 0 ? void 0 : data$1.phoneCountries) === null || _h === void 0 ? void 0 :
7828
+ } }), (_h = data === null || data === void 0 ? void 0 : data.phoneCountries) === null || _h === void 0 ? void 0 :
5949
7829
  _h.map((c) => {
5950
7830
  var _a, _b;
5951
7831
  return (index.h("sl-menu-item", { value: c.countryCode },
5952
7832
  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 :
5953
7833
  _b.dial_code));
5954
- }), (_j = data$1 === null || data$1 === void 0 ? void 0 : data$1.allCountries) === null || _j === void 0 ? void 0 :
7834
+ }), (_j = data === null || data === void 0 ? void 0 : data.allCountries) === null || _j === void 0 ? void 0 :
5955
7835
  _j.map((c) => {
5956
7836
  var _a, _b;
5957
7837
  return (index.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } },
@@ -5960,42 +7840,42 @@ const UserInfoFormView = (props) => {
5960
7840
  })),
5961
7841
  index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", id: "phoneNumber", name: "/phoneNumber", value: formState.phoneNumber, validationError: ({ value }) => {
5962
7842
  // Naive phone number validation
5963
- utils$1.validateBillingField(/[a-zA-Z]+/, value) &&
5964
- utils$1.formatErrorMessage(text.phoneNumber, text.error.fieldInvalidError);
7843
+ sqmInvoiceTableView.validateBillingField(/[a-zA-Z]+/, value) &&
7844
+ sqmInvoiceTableView.formatErrorMessage(text.phoneNumber, text.error.fieldInvalidError);
5965
7845
  }, disabled: states.disabled || states.isPartner }, (((_k = formState.errors) === null || _k === void 0 ? void 0 : _k.phoneNumber) ? {
5966
7846
  class: classes.ErrorInput,
5967
- helpText: utils$1.formatErrorMessage(text.phoneNumber, formState.errors.phoneNumber),
7847
+ helpText: sqmInvoiceTableView.formatErrorMessage(text.phoneNumber, formState.errors.phoneNumber),
5968
7848
  }
5969
7849
  : {}), { required: true })))),
5970
7850
  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 }) =>
5971
7851
  // Checks for non-ASCII characters
5972
- !utils$1.validateBillingField(/^[\x20-\xFF]+$/, value) &&
5973
- utils$1.formatErrorMessage(text.address, text.error.invalidCharacterError), disabled: states.disabled || states.isPartner }, (((_l = formState.errors) === null || _l === void 0 ? void 0 : _l.address) ? {
7852
+ !sqmInvoiceTableView.validateBillingField(/^[\x20-\xFF]+$/, value) &&
7853
+ sqmInvoiceTableView.formatErrorMessage(text.address, text.error.invalidCharacterError), disabled: states.disabled || states.isPartner }, (((_l = formState.errors) === null || _l === void 0 ? void 0 : _l.address) ? {
5974
7854
  class: classes.ErrorInput,
5975
- helpText: utils$1.formatErrorMessage(text.address, formState.errors.address),
7855
+ helpText: sqmInvoiceTableView.formatErrorMessage(text.address, formState.errors.address),
5976
7856
  }
5977
7857
  : {}), { required: true })),
5978
7858
  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 }) =>
5979
7859
  // Checks for non-ASCII characters
5980
- !utils$1.validateBillingField(/^[\x20-\xFF]+$/, value) &&
5981
- utils$1.formatErrorMessage(text.city, text.error.invalidCharacterError), disabled: states.disabled || states.isPartner }, (((_m = formState.errors) === null || _m === void 0 ? void 0 : _m.city) ? {
7860
+ !sqmInvoiceTableView.validateBillingField(/^[\x20-\xFF]+$/, value) &&
7861
+ sqmInvoiceTableView.formatErrorMessage(text.city, text.error.invalidCharacterError), disabled: states.disabled || states.isPartner }, (((_m = formState.errors) === null || _m === void 0 ? void 0 : _m.city) ? {
5982
7862
  class: classes.ErrorInput,
5983
- helpText: utils$1.formatErrorMessage(text.city, formState.errors.city),
7863
+ helpText: sqmInvoiceTableView.formatErrorMessage(text.city, formState.errors.city),
5984
7864
  }
5985
7865
  : {}), { required: true })),
5986
7866
  !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) ? {
5987
7867
  class: classes.ErrorInput,
5988
- helpText: utils$1.formatErrorMessage(text.state, formState.errors.state),
7868
+ helpText: sqmInvoiceTableView.formatErrorMessage(text.state, formState.errors.state),
5989
7869
  }
5990
- : {}), { 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))))),
7870
+ : {}), { 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
7871
  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) ? {
5992
7872
  class: classes.ErrorInput,
5993
- helpText: utils$1.formatErrorMessage(text.postalCode, formState.errors.postalCode),
7873
+ helpText: sqmInvoiceTableView.formatErrorMessage(text.postalCode, formState.errors.postalCode),
5994
7874
  }
5995
7875
  : {}), { required: true })),
5996
7876
  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) ? {
5997
7877
  class: classes.ErrorInput,
5998
- helpText: utils$1.formatErrorMessage(text.currency, formState.errors.currency),
7878
+ helpText: sqmInvoiceTableView.formatErrorMessage(text.currency, formState.errors.currency),
5999
7879
  }
6000
7880
  : {}), { required: true, ref: (el) => (refs.currencyRef.current = el) }),
6001
7881
  index.h("sl-input", { class: classes.SearchInput, placeholder: text.searchForCurrencyText, onKeyDown: (e) => {
@@ -6003,11 +7883,11 @@ const UserInfoFormView = (props) => {
6003
7883
  e.stopPropagation();
6004
7884
  }, "onSl-input": (e) => {
6005
7885
  callbacks.setCurrencySearch(e.target.value);
6006
- } }), (_s = data$1 === null || data$1 === void 0 ? void 0 : data$1.currencies) === null || _s === void 0 ? void 0 :
7886
+ } }), (_s = data === null || data === void 0 ? void 0 : data.currencies) === null || _s === void 0 ? void 0 :
6007
7887
  _s.map((c) => (index.h("sl-menu-item", { value: c.currencyCode },
6008
7888
  c.currencyCode,
6009
7889
  " - ",
6010
- c.displayName))), (_t = data$1 === null || data$1 === void 0 ? void 0 : data$1.allCurrencies) === null || _t === void 0 ? void 0 :
7890
+ c.displayName))), (_t = data === null || data === void 0 ? void 0 : data.allCurrencies) === null || _t === void 0 ? void 0 :
6011
7891
  _t.map((c) => (index.h("sl-menu-item", { value: c.currencyCode, style: { display: "none" } },
6012
7892
  c.currencyCode,
6013
7893
  " - ",
@@ -6016,36 +7896,40 @@ const UserInfoFormView = (props) => {
6016
7896
  index.h("sl-checkbox", { exportparts: "label: input-label, base: input-base", checked: formState.allowBankingCollection === true, "onSl-change": (e) => {
6017
7897
  e.target.value = e.target.checked;
6018
7898
  }, disabled: states.isPartner ? false : states.disabled, required: true, value: formState.allowBankingCollection, id: "allowBankingCollection", name: "/allowBankingCollection" }, bankingCollectionText),
6019
- ((_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))))),
7899
+ ((_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
7900
  index.h("sl-button", { type: "primary", disabled: states.isPartner ? false : states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton))))));
6021
7901
  };
6022
7902
 
6023
7903
  function useUserInfoForm(props) {
6024
7904
  var _a, _b, _c, _d;
6025
- const currencyRef = domContextHooks_module.useRef(undefined);
6026
- const phoneCountryRef = domContextHooks_module.useRef(undefined);
6027
- const formRef = domContextHooks_module.useRef(null);
6028
- const context = index_module.Fn(data.TAX_FORM_CONTEXT_NAMESPACE);
6029
- const countries = index_module.Fn(data.SORTED_COUNTRIES_NAMESPACE);
6030
- const [step, setStep] = index_module.Pn(data.TAX_CONTEXT_NAMESPACE);
6031
- const [userFormContext, setUserFormContext] = index_module.Pn(data.USER_FORM_CONTEXT_NAMESPACE);
6032
- const { data: data$1, loading, errors: userError, } = index_module.$n(data.USER_QUERY_NAMESPACE);
6033
- const _currencies = index_module.Fn(data.CURRENCIES_NAMESPACE);
6034
- const currencies = domContextHooks_module.useMemo(() => [...(_currencies || [])].sort((a, b) => a.displayName.localeCompare(b.displayName)), [_currencies]);
6035
- const [countrySearch, setCountrySearch] = domContextHooks_module.useState("");
6036
- const [phoneCountrySearch, setPhoneCountrySearch] = domContextHooks_module.useState("");
6037
- const [filteredCountries, setFilteredCountries] = domContextHooks_module.useState(countries || []);
6038
- const [filteredPhoneCountries, setFilteredPhoneCountries] = domContextHooks_module.useState(countries || []);
6039
- const [currencySearch, setCurrencySearch] = domContextHooks_module.useState("");
6040
- const [filteredCurrencies, setFilteredCurrencies] = domContextHooks_module.useState(currencies || []);
6041
- const [formErrors, setErrors] = domContextHooks_module.useState({});
6042
- domContextHooks_module.useEffect(() => {
7905
+ const currencyRef = stencilHooks_module.useRef(undefined);
7906
+ const phoneCountryRef = stencilHooks_module.useRef(undefined);
7907
+ const formRef = stencilHooks_module.useRef(null);
7908
+ const context = index_module.Fn(TAX_FORM_CONTEXT_NAMESPACE);
7909
+ const countries = index_module.Fn(SORTED_COUNTRIES_NAMESPACE);
7910
+ const [step, setStep] = index_module.Pn(TAX_CONTEXT_NAMESPACE);
7911
+ const [userFormContext, setUserFormContext] = index_module.Pn(USER_FORM_CONTEXT_NAMESPACE);
7912
+ const { data, loading, errors: userError, } = index_module.$n(USER_QUERY_NAMESPACE);
7913
+ const _currencies = index_module.Fn(CURRENCIES_NAMESPACE);
7914
+ const currencies = stencilHooks_module.useMemo(() => [...(_currencies || [])].sort((a, b) => a.displayName.localeCompare(b.displayName)), [_currencies]);
7915
+ const [countrySearch, setCountrySearch] = stencilHooks_module.useState("");
7916
+ const [phoneCountrySearch, setPhoneCountrySearch] = stencilHooks_module.useState("");
7917
+ const [filteredCountries, setFilteredCountries] = stencilHooks_module.useState(countries || []);
7918
+ const [filteredPhoneCountries, setFilteredPhoneCountries] = stencilHooks_module.useState(countries || []);
7919
+ const [currencySearch, setCurrencySearch] = stencilHooks_module.useState("");
7920
+ const [filteredCurrencies, setFilteredCurrencies] = stencilHooks_module.useState(currencies || []);
7921
+ const [formErrors, setErrors] = stencilHooks_module.useState({});
7922
+ stencilHooks_module.useEffect(() => {
7923
+ // reset redirect hash
7924
+ window.location.hash = "";
7925
+ }, []);
7926
+ stencilHooks_module.useEffect(() => {
6043
7927
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
6044
- const user = data$1 === null || data$1 === void 0 ? void 0 : data$1.user;
7928
+ const user = data === null || data === void 0 ? void 0 : data.user;
6045
7929
  if (!user || step !== "/1")
6046
7930
  return;
6047
7931
  // If form already filled out, skip initialising it
6048
- if (utils$1.objectIsFull(userFormContext))
7932
+ if (sqmInvoiceTableView.objectIsFull(userFormContext))
6049
7933
  return;
6050
7934
  // Prefer MI email if it was verified before this
6051
7935
  const email = ((_a = user.managedIdentity) === null || _a === void 0 ? void 0 : _a.emailVerified) ? user.managedIdentity.email
@@ -6082,7 +7966,7 @@ function useUserInfoForm(props) {
6082
7966
  postalCode: (_k = user.customFields) === null || _k === void 0 ? void 0 : _k.postalCode,
6083
7967
  });
6084
7968
  }
6085
- }, [data$1, step, userFormContext]);
7969
+ }, [data, step, userFormContext]);
6086
7970
  const onFormChange = (field, e) => {
6087
7971
  var _a, _b;
6088
7972
  const value = (_b = (_a = e.detail) === null || _a === void 0 ? void 0 : _a.item) === null || _b === void 0 ? void 0 : _b.__value;
@@ -6097,7 +7981,7 @@ function useUserInfoForm(props) {
6097
7981
  currencyRef.current.value = "";
6098
7982
  }
6099
7983
  };
6100
- domContextHooks_module.useEffect(() => {
7984
+ stencilHooks_module.useEffect(() => {
6101
7985
  if (!(countries === null || countries === void 0 ? void 0 : countries.length))
6102
7986
  return;
6103
7987
  if (countrySearch.trim() === "") {
@@ -6107,7 +7991,7 @@ function useUserInfoForm(props) {
6107
7991
  setFilteredCountries(countries.filter((c) => c.displayName.toLowerCase().includes(countrySearch.toLowerCase())) || []);
6108
7992
  }
6109
7993
  }, [countrySearch, countries]);
6110
- domContextHooks_module.useEffect(() => {
7994
+ stencilHooks_module.useEffect(() => {
6111
7995
  if (!(countries === null || countries === void 0 ? void 0 : countries.length))
6112
7996
  return;
6113
7997
  if (phoneCountrySearch.trim() === "") {
@@ -6117,7 +8001,7 @@ function useUserInfoForm(props) {
6117
8001
  setFilteredPhoneCountries(countries.filter((c) => c.displayName.toLowerCase().includes(phoneCountrySearch.toLowerCase())) || []);
6118
8002
  }
6119
8003
  }, [phoneCountrySearch, countries]);
6120
- domContextHooks_module.useEffect(() => {
8004
+ stencilHooks_module.useEffect(() => {
6121
8005
  if (!(currencies === null || currencies === void 0 ? void 0 : currencies.length))
6122
8006
  return;
6123
8007
  if (currencySearch.trim() === "") {
@@ -6174,7 +8058,7 @@ function useUserInfoForm(props) {
6174
8058
  }
6175
8059
  const hasStates = ["ES", "AU", "US", "CA"].includes(userFormContext.countryCode);
6176
8060
  const regionObj = hasStates
6177
- ? IndirectTaxDetailsView.ADDRESS_REGIONS[userFormContext === null || userFormContext === void 0 ? void 0 : userFormContext.countryCode]
8061
+ ? sqmInvoiceTableView.ADDRESS_REGIONS[userFormContext === null || userFormContext === void 0 ? void 0 : userFormContext.countryCode]
6178
8062
  : {};
6179
8063
  return {
6180
8064
  setStep: setStep,
@@ -6207,8 +8091,8 @@ function useUserInfoForm(props) {
6207
8091
  disabled: loading,
6208
8092
  loadingError: !!(userError === null || userError === void 0 ? void 0 : userError.message),
6209
8093
  loading: loading,
6210
- 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),
6211
- 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),
8094
+ 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),
8095
+ 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),
6212
8096
  formState: {
6213
8097
  ...userFormContext,
6214
8098
  errors: formErrors,
@@ -6371,7 +8255,7 @@ const TaxForm = class {
6371
8255
  * @uiName Support link text
6372
8256
  */
6373
8257
  this.supportLink = "support team";
6374
- domContextHooks_module.h$1(this);
8258
+ stencilHooks_module.h$1(this);
6375
8259
  }
6376
8260
  disconnectedCallback() { }
6377
8261
  getTextProps() {
@@ -6391,20 +8275,19 @@ const TaxForm = class {
6391
8275
  }
6392
8276
  render() {
6393
8277
  const props = index_module.isDemo() ? useDemoUserInfoForm(this) : useUserInfoForm(this);
6394
- return (index.h(UserInfoFormView, { data: props.data,
8278
+ return (index.h(index.Host, null, index.h(UserInfoFormView, { data: props.data,
6395
8279
  // @ts-ignore
6396
8280
  states: props.states, callbacks: {
6397
8281
  ...props.callbacks,
6398
8282
  onSubmit: props.onSubmit,
6399
- }, text: props.text, refs: props.refs }));
8283
+ }, text: props.text, refs: props.refs })));
6400
8284
  }
6401
8285
  };
6402
8286
  function useDemoUserInfoForm(props) {
6403
- const setStep = index_module.En(data.TAX_CONTEXT_NAMESPACE);
6404
- // @ts-ignore
8287
+ const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
6405
8288
  return cjs.cjs({
6406
8289
  setStep,
6407
- onSubmit: async () => {
8290
+ onSubmit: () => {
6408
8291
  setStep("/2");
6409
8292
  },
6410
8293
  onRadioClick: () => { },
@@ -6448,12 +8331,19 @@ function useDemoUserInfoForm(props) {
6448
8331
  }
6449
8332
 
6450
8333
  exports.sqm_banking_info_form = BankingInfoForm;
8334
+ exports.sqm_code_verification = WidgetCodeVerification;
6451
8335
  exports.sqm_docusign_form = DocusignForm;
6452
8336
  exports.sqm_indirect_tax_form = IndirectTaxForm;
6453
8337
  exports.sqm_invoice_table = InvoiceTable;
8338
+ exports.sqm_invoice_table_data_cell = InvoiceTableDataCell;
6454
8339
  exports.sqm_invoice_table_data_column = InvoiceTableDataColumn;
8340
+ exports.sqm_invoice_table_date_cell = RewardTableDateCell;
6455
8341
  exports.sqm_invoice_table_date_column = InvoiceTableDateColumn;
8342
+ exports.sqm_invoice_table_download_cell = InvoiceTableDownloadCell;
6456
8343
  exports.sqm_invoice_table_download_column = InvoiceTableGenericColumn;
6457
8344
  exports.sqm_payout_details_card = PayoutDetailsCard;
8345
+ exports.sqm_table_cell = TableCell;
8346
+ exports.sqm_table_row = TableRow;
8347
+ exports.sqm_tax_and_cash = TaxAndCashMonolith;
6458
8348
  exports.sqm_tax_and_cash_dashboard = TaxAndCashDashboard;
6459
8349
  exports.sqm_user_info_form = TaxForm;