@saasquatch/mint-components 1.15.0-16 → 1.15.0-160

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 (889) hide show
  1. package/dist/cjs/{GenericTableView-f0e9c531.js → GenericTableView-a9845e80.js} +6 -6
  2. package/dist/cjs/IndirectTaxDetailsView-bb1aae3a.js +653 -0
  3. package/dist/cjs/{ShadowViewAddon-8bab3674.js → ShadowViewAddon-b761012b.js} +1432 -1232
  4. package/dist/cjs/{copy-text-view-b2f47da0.js → copy-text-view-51c8ee5d.js} +23 -12
  5. package/dist/cjs/data-d4339c2e.js +137 -0
  6. package/dist/cjs/{stencil-hooks.module-3a336b0f.js → dom-context-hooks.module-7fa676ae.js} +18 -18
  7. package/dist/cjs/{email-registration-view-55b378dc.js → email-registration-view-ace50780.js} +5 -3
  8. package/dist/cjs/{global-19fe8600.js → global-8bba5b3a.js} +11845 -11623
  9. package/dist/cjs/{index-a29c60ef.js → index-a43a63b4.js} +4 -0
  10. package/dist/cjs/{index.module-ee84433d.js → index.module-4f54e412.js} +191 -191
  11. package/dist/cjs/loader.cjs.js +5 -5
  12. package/dist/cjs/{luxon-2926d85f.js → luxon-949beaf2.js} +2 -2
  13. package/dist/cjs/mint-components.cjs.js +5 -5
  14. package/dist/cjs/{mixins-f7e0377a.js → mixins-4761d472.js} +6 -6
  15. package/dist/cjs/{mockRewardData-272e22d6.js → mockRewardData-df37c8a3.js} +2 -2
  16. package/dist/cjs/parseStates-d1effc19.js +16 -0
  17. package/dist/cjs/raisins-plop-target.cjs.entry.js +1 -1
  18. package/dist/cjs/{re-render-b324deab.js → re-render-d516138a.js} +4 -4
  19. package/dist/cjs/{sqm-banking-info-form_17.cjs.entry.js → sqm-banking-info-form_10.cjs.entry.js} +930 -2404
  20. package/dist/cjs/{sqm-base-registration-form-view-1b2440c3.js → sqm-base-registration-form-view-8847804c.js} +3 -3
  21. package/dist/cjs/{sqm-big-stat_41.cjs.entry.js → sqm-big-stat_44.cjs.entry.js} +1189 -243
  22. package/dist/cjs/{sqm-close-button-view-ea3fa23b.js → sqm-close-button-view-5e85ac51.js} +2 -2
  23. package/dist/cjs/sqm-close-button.cjs.entry.js +6 -6
  24. package/dist/cjs/sqm-code-verification.cjs.entry.js +352 -0
  25. package/dist/cjs/sqm-context-router.cjs.entry.js +11 -11
  26. package/dist/cjs/sqm-email-verification.cjs.entry.js +152 -28
  27. package/dist/cjs/sqm-empty_4.cjs.entry.js +9 -15
  28. package/dist/cjs/sqm-form-message.cjs.entry.js +8 -8
  29. package/dist/cjs/sqm-google-sign-in.cjs.entry.js +14 -14
  30. package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +6 -6
  31. package/dist/cjs/sqm-header-logo.cjs.entry.js +3 -3
  32. package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +9 -9
  33. package/dist/cjs/sqm-invoice-table-data-cell_5.cjs.entry.js +84 -0
  34. package/dist/cjs/sqm-leaderboard-rank-view-6a1e63de.js +10 -0
  35. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +6 -6
  36. package/dist/cjs/{sqm-logout-current-user-view-11d57c12.js → sqm-logout-current-user-view-b61c8bdf.js} +1 -1
  37. package/dist/cjs/sqm-logout-current-user.cjs.entry.js +6 -6
  38. package/dist/cjs/sqm-navigation-sidebar-item-view-4e88f774.js +56 -0
  39. package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +31 -8
  40. package/dist/cjs/{sqm-navigation-sidebar-view-17111896.js → sqm-navigation-sidebar-view-de90ef03.js} +18 -8
  41. package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +25 -9
  42. package/dist/cjs/sqm-pagination_3.cjs.entry.js +28 -18
  43. package/dist/cjs/sqm-password-field.cjs.entry.js +11 -11
  44. package/dist/cjs/sqm-popup-container.cjs.entry.js +5 -5
  45. package/dist/cjs/{sqm-portal-container-view-4f15143a.js → sqm-portal-container-view-07e4343f.js} +2 -2
  46. package/dist/cjs/{sqm-portal-email-verification-view-9f7b86a9.js → sqm-portal-email-verification-view-5518eb0d.js} +4 -4
  47. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +15 -15
  48. package/dist/cjs/sqm-portal-google-login.cjs.entry.js +9 -9
  49. package/dist/cjs/sqm-portal-google-registration-form.cjs.entry.js +13 -13
  50. package/dist/cjs/{sqm-portal-login-view-84e99287.js → sqm-portal-login-view-bb50304c.js} +4 -4
  51. package/dist/cjs/sqm-portal-logout.cjs.entry.js +4 -4
  52. package/dist/cjs/{sqm-portal-profile-view-e77710f0.js → sqm-portal-profile-view-615e6975.js} +4 -4
  53. package/dist/cjs/sqm-portal-profile.cjs.entry.js +15 -15
  54. package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +5 -5
  55. package/dist/cjs/{sqm-portal-registration-form-view-4377d849.js → sqm-portal-registration-form-view-5a96c2f5.js} +3 -3
  56. package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +9 -9
  57. package/dist/cjs/{sqm-portal-reset-password-view-52fc50fe.js → sqm-portal-reset-password-view-25eb2099.js} +3 -3
  58. package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +11 -11
  59. package/dist/cjs/{sqm-portal-verify-email-view-4f837226.js → sqm-portal-verify-email-view-1c4e781f.js} +3 -3
  60. package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +12 -12
  61. package/dist/cjs/{sqm-qr-code-view-3da9ed28.js → sqm-qr-code-view-0c3b2f48.js} +9 -4
  62. package/dist/cjs/sqm-qr-code.cjs.entry.js +12 -13
  63. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +133 -44
  64. package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +4 -4
  65. package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +5 -5
  66. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +82 -35
  67. package/dist/cjs/sqm-route.cjs.entry.js +1 -1
  68. package/dist/cjs/sqm-scroll.cjs.entry.js +21 -67
  69. package/dist/cjs/sqm-stencilbook.cjs.entry.js +13835 -12616
  70. package/dist/cjs/sqm-tab.cjs.entry.js +5 -5
  71. package/dist/cjs/sqm-tabs.cjs.entry.js +20 -10
  72. package/dist/cjs/sqm-tax-and-cash.cjs.entry.js +1254 -0
  73. package/dist/cjs/sqm-text-span-view-7a61ae4c.js +63 -0
  74. package/dist/cjs/sqm-text-span.cjs.entry.js +7 -7
  75. package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +19 -11
  76. package/dist/cjs/sqm-widget-verification.cjs.entry.js +25 -13
  77. package/dist/cjs/{useChildElements-1b35d945.js → useChildElements-966c9041.js} +5 -5
  78. package/dist/cjs/{useInstantAccessRegistration-0537e28e.js → useInstantAccessRegistration-08bcb487.js} +4 -4
  79. package/dist/cjs/{usePayoutStatus-4b5894ef.js → usePayoutStatus-3b34dab1.js} +13 -10
  80. package/dist/cjs/{usePortalLogin-63d896d1.js → usePortalLogin-6aa864ef.js} +4 -4
  81. package/dist/cjs/{usePortalRegistrationForm-f25d89e7.js → usePortalRegistrationForm-75b647fe.js} +6 -6
  82. package/dist/cjs/{useReferralCodes-82e8797b.js → useReferralCodes-11cdf43b.js} +3 -3
  83. package/dist/cjs/{useReferralTable-7c3f9600.js → useReferralTable-90d4d6e9.js} +10 -10
  84. package/dist/cjs/{useRegistrationFormState-7b820f0c.js → useRegistrationFormState-bbee6e7b.js} +6 -6
  85. package/dist/cjs/{useVerificationEmail-95a82767.js → useVerificationEmail-9dd3997a.js} +6 -6
  86. package/dist/cjs/{utilities-78f5e169.js → utilities-9a0c5e91.js} +4 -4
  87. package/dist/cjs/{utils-6847bc06.js → utils-7cbd60cc.js} +5 -0
  88. package/dist/cjs/utils-83d125fa.js +105 -0
  89. package/dist/collection/collection-manifest.json +1 -1
  90. package/dist/collection/components/sqm-big-stat/BigStat.stories.js +13 -0
  91. package/dist/collection/components/sqm-big-stat/sqm-big-stat-view.js +15 -7
  92. package/dist/collection/components/sqm-big-stat/sqm-big-stat.js +169 -4
  93. package/dist/collection/components/sqm-big-stat/useBigStat.js +127 -8
  94. package/dist/collection/components/sqm-big-stat/useDemoBigStat.js +14 -5
  95. package/dist/collection/components/sqm-brand/sqm-brand.js +12 -4
  96. package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +1 -0
  97. package/dist/collection/components/sqm-coupon-code/CouponCode.stories.js +4 -0
  98. package/dist/collection/components/sqm-coupon-code/sqm-coupon-code.js +2 -2
  99. package/dist/collection/components/sqm-coupon-code/useCouponCode.js +1 -0
  100. package/dist/collection/components/sqm-divided-layout/sqm-divided-layout-view.js +14 -6
  101. package/dist/collection/components/sqm-divided-layout/sqm-divided-layout.js +61 -4
  102. package/dist/collection/components/sqm-edit-profile/sqm-edit-profile-view.js +1 -1
  103. package/dist/collection/components/sqm-form-message/FormMessage.stories.js +8 -16
  104. package/dist/collection/components/sqm-form-message/sqm-form-message.css +50 -11
  105. package/dist/collection/components/sqm-form-message/sqm-form-message.js +5 -5
  106. package/dist/collection/components/sqm-hero/Hero.stories.js +11 -0
  107. package/dist/collection/components/sqm-hero/sqm-hero-view.js +16 -8
  108. package/dist/collection/components/sqm-hero/sqm-hero.js +39 -5
  109. package/dist/collection/components/sqm-hero-image/sqm-hero-image-view.js +5 -2
  110. package/dist/collection/components/sqm-hero-image/sqm-hero-image.js +2 -2
  111. package/dist/collection/components/sqm-instant-access-registration/sqm-instant-access-registration.js +3 -3
  112. package/dist/collection/components/sqm-invoice-table/cells/sqm-invoice-table-download-cell.js +2 -2
  113. package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-data-column.js +2 -1
  114. package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-date-column.js +2 -1
  115. package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-download-column.js +2 -1
  116. package/dist/collection/components/sqm-invoice-table/sqm-invoice-table-view.js +1 -1
  117. package/dist/collection/components/sqm-invoice-table/sqm-invoice-table.js +6 -3
  118. package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +3 -2
  119. package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +5 -5
  120. package/dist/collection/components/sqm-leaderboard-rank/sqm-leaderboard-rank-view.js +2 -2
  121. package/dist/collection/components/sqm-link-button/sqm-link-button.js +1 -0
  122. package/dist/collection/components/sqm-logout-current-user/sqm-logout-current-user.js +2 -1
  123. package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +28 -3
  124. package/dist/collection/components/sqm-name-fields/sqm-name-fields.js +1 -0
  125. package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar-view.js +17 -7
  126. package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar.js +83 -5
  127. package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view.js +18 -7
  128. package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.js +233 -1
  129. package/dist/collection/components/sqm-navigation-sidebar-item/useNavigationSidebarItem.js +9 -1
  130. package/dist/collection/components/sqm-pagination/sqm-pagination-view.js +3 -3
  131. package/dist/collection/components/sqm-pagination/sqm-pagination.js +43 -2
  132. package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll-view.js +1 -1
  133. package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password-view.js +8 -4
  134. package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password.js +1 -1
  135. package/dist/collection/components/sqm-portal-container/sqm-portal-container-view.js +1 -1
  136. package/dist/collection/components/sqm-portal-container/sqm-portal-container.js +1 -8
  137. package/dist/collection/components/sqm-portal-footer/sqm-portal-footer-view.js +6 -6
  138. package/dist/collection/components/sqm-portal-footer/sqm-portal-footer.js +1 -1
  139. package/dist/collection/components/sqm-portal-forgot-password/PortalForgotPassword.stories.js +5 -4
  140. package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.js +21 -13
  141. package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password.js +103 -3
  142. package/dist/collection/components/sqm-portal-frame/sqm-portal-frame-view.js +41 -36
  143. package/dist/collection/components/sqm-portal-frame/sqm-portal-frame.js +102 -2
  144. package/dist/collection/components/sqm-portal-frame/usePortalFrame.js +4 -1
  145. package/dist/collection/components/sqm-portal-login/PortalLogin.stories.js +10 -5
  146. package/dist/collection/components/sqm-portal-login/sqm-portal-login-view.js +1 -1
  147. package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +1 -1
  148. package/dist/collection/components/sqm-portal-profile/sqm-portal-profile-view.js +1 -1
  149. package/dist/collection/components/sqm-portal-register/sqm-portal-register.js +1 -2
  150. package/dist/collection/components/sqm-portal-registration-form/PortalRegistrationForm.stories.js +1 -0
  151. package/dist/collection/components/sqm-program-explainer/sqm-program-explainer.js +1 -1
  152. package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step-view.js +5 -3
  153. package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step.js +5 -5
  154. package/dist/collection/components/sqm-qr-code/sqm-qr-code-view.js +1 -1
  155. package/dist/collection/components/sqm-radio-card/sqm-radio-card-view.js +2 -2
  156. package/dist/collection/components/sqm-referral-card/sqm-referral-card-view.js +6 -4
  157. package/dist/collection/components/sqm-referral-card/sqm-referral-card.js +7 -13
  158. package/dist/collection/components/sqm-referral-code/sqm-referral-code.js +4 -4
  159. package/dist/collection/components/sqm-referral-table/ReferralTable.stories.js +2 -2
  160. package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +55 -18
  161. package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-status-cell.js +62 -7
  162. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-column.js +2 -1
  163. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-date-column.js +4 -2
  164. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.js +6 -3
  165. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-status-column.js +6 -3
  166. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-user-column.js +4 -2
  167. package/dist/collection/components/sqm-referral-table/mockReferralData.js +1 -1
  168. package/dist/collection/components/sqm-referral-table/sqm-referral-table.js +3 -2
  169. package/dist/collection/components/sqm-referred-registration/sqm-referred-registration.js +2 -10
  170. package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeList.stories.js +19 -19
  171. package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeListData.js +32 -6
  172. package/dist/collection/components/sqm-reward-exchange-list/progressBar.js +10 -10
  173. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +48 -49
  174. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +81 -35
  175. package/dist/collection/components/sqm-rewards-table/RewardsTableCell.stories.js +3 -3
  176. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.js +4 -3
  177. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.js +5 -4
  178. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.js +57 -8
  179. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.js +3 -2
  180. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.js +3 -2
  181. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.js +3 -2
  182. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.js +3 -2
  183. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.js +5 -3
  184. package/dist/collection/components/sqm-rewards-table/mockRewardData.js +1 -1
  185. package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +3 -2
  186. package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +1 -1
  187. package/dist/collection/components/sqm-scroll/sqm-scroll.js +22 -101
  188. package/dist/collection/components/sqm-share-button/sqm-share-button-view.js +9 -22
  189. package/dist/collection/components/sqm-share-button/sqm-share-button.js +4 -4
  190. package/dist/collection/components/sqm-share-code/sqm-share-code.js +5 -5
  191. package/dist/collection/components/sqm-share-link/ShareLink.stories.js +13 -0
  192. package/dist/collection/components/sqm-share-link/sqm-share-link.js +6 -4
  193. package/dist/collection/components/sqm-stat-container/sqm-stat-container-view.js +21 -9
  194. package/dist/collection/components/sqm-stat-container/sqm-stat-container.js +110 -2
  195. package/dist/collection/components/sqm-stencilbook/BrandSelector.js +198 -0
  196. package/dist/collection/components/sqm-stencilbook/Themes.js +325 -33
  197. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +80 -100
  198. package/dist/collection/components/sqm-table-row/sqm-table-row.js +2 -2
  199. package/dist/collection/components/sqm-tabs/sqm-tabs-view.js +11 -1
  200. package/dist/collection/components/sqm-task-card/DetailsView.js +7 -1
  201. package/dist/collection/components/sqm-task-card/progress-bar/progress-bar-view.js +3 -2
  202. package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +23 -26
  203. package/dist/collection/components/sqm-task-card/sqm-task-card.js +4 -8
  204. package/dist/collection/components/sqm-task-card/useTaskCard.js +1 -1
  205. package/dist/collection/components/sqm-text/sqm-text.js +1 -1
  206. package/dist/collection/components/sqm-text-span/sqm-text-span-view.js +44 -43
  207. package/dist/collection/components/sqm-text-span/sqm-text-span.js +51 -2
  208. package/dist/collection/components/sqm-timeline/sqm-timeline-entry-view.js +2 -2
  209. package/dist/collection/components/sqm-titled-section/sqm-titled-section.js +2 -2
  210. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +12 -2
  211. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.js +2 -2
  212. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +138 -14
  213. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-controller.js +39 -7
  214. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +45 -8
  215. package/dist/collection/components/tax-and-cash/BankingForm.stories.js +12 -0
  216. package/dist/collection/components/tax-and-cash/TaxForm.stories.js +30 -9
  217. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/formDefinitions.js +1 -1
  218. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +58 -62
  219. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +117 -5
  220. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +8 -1
  221. package/dist/collection/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.js +3 -3
  222. package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +59 -61
  223. package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +82 -4
  224. package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +6 -2
  225. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +60 -63
  226. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +2 -2
  227. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +2 -2
  228. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card-view.js +24 -27
  229. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js +26 -1
  230. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/usePayoutDetailsCard.js +2 -2
  231. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +18 -48
  232. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +1 -0
  233. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +8 -5
  234. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/ErrorView.js +3 -27
  235. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +284 -30
  236. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +1 -1
  237. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +135 -93
  238. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +50 -5
  239. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +3 -3
  240. package/dist/collection/components/tax-and-cash/sqm-user-info-form/small-views/DocusignExpiredView.js +1 -1
  241. package/dist/collection/components/tax-and-cash/sqm-user-info-form/small-views/IndirectTaxDetailsView.js +10 -3
  242. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +182 -54
  243. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +10 -10
  244. package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +3 -3
  245. package/dist/collection/components/views/copy-text-view.js +21 -10
  246. package/dist/collection/components/views/email-registration-view.js +3 -1
  247. package/dist/collection/global/global.js +27 -12
  248. package/dist/collection/global/mixins.js +6 -6
  249. package/dist/collection/global/styles.js +311 -136
  250. package/dist/collection/global/styles.ts +411 -136
  251. package/dist/collection/insertfont.js +18 -0
  252. package/dist/collection/stories/PortalTemplates.stories.js +22 -30
  253. package/dist/collection/tables/GenericTableView.js +4 -4
  254. package/dist/collection/utils/parseStates.js +12 -0
  255. package/dist/collection/utils/utils.js +4 -0
  256. package/dist/esm/{GenericTableView-e7addb2b.js → GenericTableView-e43d310f.js} +6 -6
  257. package/dist/esm/IndirectTaxDetailsView-daecbf7c.js +646 -0
  258. package/dist/esm/{ShadowViewAddon-967f1f54.js → ShadowViewAddon-09e5a727.js} +1428 -1228
  259. package/dist/esm/{copy-text-view-0ac6e1d1.js → copy-text-view-83b09456.js} +23 -12
  260. package/dist/esm/data-dea73d4d.js +121 -0
  261. package/dist/esm/{stencil-hooks.module-4bc38af4.js → dom-context-hooks.module-63370afd.js} +13 -13
  262. package/dist/esm/{email-registration-view-a7818cf2.js → email-registration-view-1f587f8b.js} +5 -3
  263. package/dist/esm/{global-9d6f3bbe.js → global-1099f20d.js} +11879 -11658
  264. package/dist/esm/{index-91e7729f.js → index-b3a06de8.js} +4 -0
  265. package/dist/esm/{index.module-89a79f66.js → index.module-c9811a48.js} +154 -154
  266. package/dist/esm/loader.js +5 -5
  267. package/dist/esm/{luxon-8d51c92b.js → luxon-bbf75a9d.js} +1 -1
  268. package/dist/esm/mint-components.js +5 -5
  269. package/dist/esm/{mixins-83f90fa1.js → mixins-f750863a.js} +6 -6
  270. package/dist/esm/{mockRewardData-8bd1b356.js → mockRewardData-96a2d26d.js} +2 -2
  271. package/dist/esm/parseStates-ed75e224.js +14 -0
  272. package/dist/esm/raisins-plop-target.entry.js +1 -1
  273. package/dist/esm/{re-render-cc945f38.js → re-render-7e22fb0d.js} +2 -2
  274. package/dist/esm/{sqm-banking-info-form_17.entry.js → sqm-banking-info-form_10.entry.js} +779 -2246
  275. package/dist/esm/{sqm-base-registration-form-view-31f1cb87.js → sqm-base-registration-form-view-193f1721.js} +3 -3
  276. package/dist/esm/{sqm-big-stat_41.entry.js → sqm-big-stat_44.entry.js} +1100 -157
  277. package/dist/esm/{sqm-close-button-view-f9819751.js → sqm-close-button-view-2fa57229.js} +2 -2
  278. package/dist/esm/sqm-close-button.entry.js +5 -5
  279. package/dist/esm/sqm-code-verification.entry.js +348 -0
  280. package/dist/esm/sqm-context-router.entry.js +4 -4
  281. package/dist/esm/sqm-email-verification.entry.js +145 -21
  282. package/dist/esm/sqm-empty_4.entry.js +6 -12
  283. package/dist/esm/sqm-form-message.entry.js +7 -7
  284. package/dist/esm/sqm-google-sign-in.entry.js +3 -3
  285. package/dist/esm/sqm-graphql-client-provider.entry.js +3 -3
  286. package/dist/esm/sqm-header-logo.entry.js +2 -2
  287. package/dist/esm/sqm-instant-access-registration.entry.js +8 -8
  288. package/dist/esm/sqm-invoice-table-data-cell_5.entry.js +76 -0
  289. package/dist/esm/sqm-leaderboard-rank-view-18baae5b.js +8 -0
  290. package/dist/esm/sqm-leaderboard-rank.entry.js +5 -5
  291. package/dist/esm/{sqm-logout-current-user-view-8ef8180f.js → sqm-logout-current-user-view-f21e54e3.js} +1 -1
  292. package/dist/esm/sqm-logout-current-user.entry.js +5 -5
  293. package/dist/esm/sqm-navigation-sidebar-item-view-5a452423.js +54 -0
  294. package/dist/esm/sqm-navigation-sidebar-item.entry.js +30 -7
  295. package/dist/esm/{sqm-navigation-sidebar-view-9d802b78.js → sqm-navigation-sidebar-view-0a2ec560.js} +18 -8
  296. package/dist/esm/sqm-navigation-sidebar.entry.js +22 -6
  297. package/dist/esm/sqm-pagination_3.entry.js +22 -12
  298. package/dist/esm/sqm-password-field.entry.js +6 -6
  299. package/dist/esm/sqm-popup-container.entry.js +4 -4
  300. package/dist/esm/{sqm-portal-container-view-1683ae32.js → sqm-portal-container-view-176e92e3.js} +2 -2
  301. package/dist/esm/{sqm-portal-email-verification-view-14f1c22c.js → sqm-portal-email-verification-view-7d86299c.js} +4 -4
  302. package/dist/esm/sqm-portal-email-verification.entry.js +7 -7
  303. package/dist/esm/sqm-portal-google-login.entry.js +8 -8
  304. package/dist/esm/sqm-portal-google-registration-form.entry.js +9 -9
  305. package/dist/esm/{sqm-portal-login-view-37c85d04.js → sqm-portal-login-view-7670cd86.js} +4 -4
  306. package/dist/esm/sqm-portal-logout.entry.js +3 -3
  307. package/dist/esm/{sqm-portal-profile-view-41116f1d.js → sqm-portal-profile-view-3ed13e4d.js} +4 -4
  308. package/dist/esm/sqm-portal-profile.entry.js +8 -8
  309. package/dist/esm/sqm-portal-protected-route.entry.js +3 -3
  310. package/dist/esm/{sqm-portal-registration-form-view-21d57492.js → sqm-portal-registration-form-view-8bdc3804.js} +3 -3
  311. package/dist/esm/sqm-portal-registration-form.entry.js +8 -8
  312. package/dist/esm/{sqm-portal-reset-password-view-b000ffc5.js → sqm-portal-reset-password-view-abef7286.js} +3 -3
  313. package/dist/esm/sqm-portal-reset-password.entry.js +7 -7
  314. package/dist/esm/{sqm-portal-verify-email-view-2983ba9b.js → sqm-portal-verify-email-view-33805220.js} +3 -3
  315. package/dist/esm/sqm-portal-verify-email.entry.js +7 -7
  316. package/dist/esm/{sqm-qr-code-view-10b8b4cb.js → sqm-qr-code-view-97124a66.js} +8 -3
  317. package/dist/esm/sqm-qr-code.entry.js +6 -7
  318. package/dist/esm/sqm-referral-table_11.entry.js +122 -33
  319. package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +3 -3
  320. package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +4 -4
  321. package/dist/esm/sqm-rewards-table_9.entry.js +70 -23
  322. package/dist/esm/sqm-route.entry.js +1 -1
  323. package/dist/esm/sqm-scroll.entry.js +20 -66
  324. package/dist/esm/sqm-stencilbook.entry.js +11159 -9940
  325. package/dist/esm/sqm-tab.entry.js +4 -4
  326. package/dist/esm/sqm-tabs.entry.js +17 -7
  327. package/dist/esm/sqm-tax-and-cash.entry.js +1250 -0
  328. package/dist/esm/sqm-text-span-view-4c17b8c9.js +61 -0
  329. package/dist/esm/sqm-text-span.entry.js +6 -6
  330. package/dist/esm/sqm-widget-verification-controller.entry.js +14 -6
  331. package/dist/esm/sqm-widget-verification.entry.js +22 -10
  332. package/dist/esm/{useChildElements-7945ae56.js → useChildElements-3d872cef.js} +2 -2
  333. package/dist/esm/{useInstantAccessRegistration-dc4ad9f2.js → useInstantAccessRegistration-dda1f52b.js} +3 -3
  334. package/dist/esm/{usePayoutStatus-58aa56b4.js → usePayoutStatus-93462be3.js} +10 -7
  335. package/dist/esm/{usePortalLogin-ef647a50.js → usePortalLogin-e95df3c3.js} +3 -3
  336. package/dist/esm/{usePortalRegistrationForm-4b35a357.js → usePortalRegistrationForm-1eb3cd72.js} +3 -3
  337. package/dist/esm/{useReferralCodes-8f75921a.js → useReferralCodes-c2e809cf.js} +2 -2
  338. package/dist/esm/{useReferralTable-b3876ed6.js → useReferralTable-909ccb28.js} +5 -5
  339. package/dist/esm/{useRegistrationFormState-d6f33135.js → useRegistrationFormState-24d594ea.js} +2 -2
  340. package/dist/esm/{useVerificationEmail-edc318cb.js → useVerificationEmail-55e0e98f.js} +2 -2
  341. package/dist/esm/{utilities-5b0ca040.js → utilities-72c07b09.js} +2 -2
  342. package/dist/esm/{utils-334c1e34.js → utils-03188de2.js} +5 -1
  343. package/dist/esm/utils-6122971b.js +97 -0
  344. package/dist/esm-es5/GenericTableView-e43d310f.js +1 -0
  345. package/dist/esm-es5/IndirectTaxDetailsView-daecbf7c.js +1 -0
  346. package/dist/esm-es5/ShadowViewAddon-09e5a727.js +1 -0
  347. package/dist/esm-es5/copy-text-view-83b09456.js +1 -0
  348. package/dist/esm-es5/data-dea73d4d.js +1 -0
  349. package/dist/esm-es5/dom-context-hooks.module-63370afd.js +53 -0
  350. package/dist/esm-es5/email-registration-view-1f587f8b.js +1 -0
  351. package/dist/esm-es5/{global-9d6f3bbe.js → global-1099f20d.js} +5 -5
  352. package/dist/esm-es5/{index-91e7729f.js → index-b3a06de8.js} +1 -1
  353. package/dist/esm-es5/index.module-c9811a48.js +1 -0
  354. package/dist/esm-es5/loader.js +1 -1
  355. package/dist/esm-es5/luxon-bbf75a9d.js +1 -0
  356. package/dist/esm-es5/mint-components.js +1 -1
  357. package/dist/esm-es5/mixins-f750863a.js +1 -0
  358. package/dist/esm-es5/{mockRewardData-8bd1b356.js → mockRewardData-96a2d26d.js} +1 -1
  359. package/dist/esm-es5/parseStates-ed75e224.js +1 -0
  360. package/dist/esm-es5/raisins-plop-target.entry.js +1 -1
  361. package/dist/esm-es5/re-render-7e22fb0d.js +1 -0
  362. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -0
  363. package/dist/esm-es5/{sqm-base-registration-form-view-31f1cb87.js → sqm-base-registration-form-view-193f1721.js} +1 -1
  364. package/dist/esm-es5/sqm-big-stat_44.entry.js +1 -0
  365. package/dist/esm-es5/{sqm-close-button-view-f9819751.js → sqm-close-button-view-2fa57229.js} +1 -1
  366. package/dist/esm-es5/sqm-close-button.entry.js +1 -1
  367. package/dist/esm-es5/sqm-code-verification.entry.js +1 -0
  368. package/dist/esm-es5/sqm-context-router.entry.js +1 -1
  369. package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
  370. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  371. package/dist/esm-es5/sqm-form-message.entry.js +1 -1
  372. package/dist/esm-es5/sqm-google-sign-in.entry.js +1 -1
  373. package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
  374. package/dist/esm-es5/sqm-header-logo.entry.js +1 -1
  375. package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
  376. package/dist/esm-es5/sqm-invoice-table-data-cell_5.entry.js +1 -0
  377. package/dist/esm-es5/sqm-leaderboard-rank-view-18baae5b.js +1 -0
  378. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  379. package/dist/esm-es5/{sqm-logout-current-user-view-8ef8180f.js → sqm-logout-current-user-view-f21e54e3.js} +1 -1
  380. package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
  381. package/dist/esm-es5/sqm-navigation-sidebar-item-view-5a452423.js +1 -0
  382. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  383. package/dist/esm-es5/sqm-navigation-sidebar-view-0a2ec560.js +1 -0
  384. package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
  385. package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
  386. package/dist/esm-es5/sqm-password-field.entry.js +1 -1
  387. package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
  388. package/dist/esm-es5/{sqm-portal-container-view-1683ae32.js → sqm-portal-container-view-176e92e3.js} +1 -1
  389. package/dist/esm-es5/{sqm-portal-email-verification-view-14f1c22c.js → sqm-portal-email-verification-view-7d86299c.js} +1 -1
  390. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  391. package/dist/esm-es5/sqm-portal-google-login.entry.js +1 -1
  392. package/dist/esm-es5/sqm-portal-google-registration-form.entry.js +1 -1
  393. package/dist/esm-es5/sqm-portal-login-view-7670cd86.js +1 -0
  394. package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
  395. package/dist/esm-es5/{sqm-portal-profile-view-41116f1d.js → sqm-portal-profile-view-3ed13e4d.js} +1 -1
  396. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  397. package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
  398. package/dist/esm-es5/{sqm-portal-registration-form-view-21d57492.js → sqm-portal-registration-form-view-8bdc3804.js} +1 -1
  399. package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
  400. package/dist/esm-es5/{sqm-portal-reset-password-view-b000ffc5.js → sqm-portal-reset-password-view-abef7286.js} +1 -1
  401. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  402. package/dist/esm-es5/{sqm-portal-verify-email-view-2983ba9b.js → sqm-portal-verify-email-view-33805220.js} +1 -1
  403. package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
  404. package/dist/esm-es5/sqm-qr-code-view-97124a66.js +1 -0
  405. package/dist/esm-es5/sqm-qr-code.entry.js +1 -1
  406. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  407. package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -1
  408. package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
  409. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  410. package/dist/esm-es5/sqm-route.entry.js +1 -1
  411. package/dist/esm-es5/sqm-scroll.entry.js +1 -1
  412. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  413. package/dist/esm-es5/sqm-tab.entry.js +1 -1
  414. package/dist/esm-es5/sqm-tabs.entry.js +1 -1
  415. package/dist/esm-es5/sqm-tax-and-cash.entry.js +1 -0
  416. package/dist/esm-es5/sqm-text-span-view-4c17b8c9.js +1 -0
  417. package/dist/esm-es5/sqm-text-span.entry.js +1 -1
  418. package/dist/esm-es5/sqm-widget-verification-controller.entry.js +1 -1
  419. package/dist/esm-es5/sqm-widget-verification.entry.js +1 -1
  420. package/dist/esm-es5/useChildElements-3d872cef.js +1 -0
  421. package/dist/esm-es5/useInstantAccessRegistration-dda1f52b.js +1 -0
  422. package/dist/esm-es5/{usePayoutStatus-58aa56b4.js → usePayoutStatus-93462be3.js} +2 -2
  423. package/dist/esm-es5/usePortalLogin-e95df3c3.js +1 -0
  424. package/dist/esm-es5/usePortalRegistrationForm-1eb3cd72.js +1 -0
  425. package/dist/esm-es5/useReferralCodes-c2e809cf.js +1 -0
  426. package/dist/esm-es5/useReferralTable-909ccb28.js +1 -0
  427. package/dist/esm-es5/useRegistrationFormState-24d594ea.js +1 -0
  428. package/dist/esm-es5/useVerificationEmail-55e0e98f.js +1 -0
  429. package/dist/esm-es5/utilities-72c07b09.js +1 -0
  430. package/dist/esm-es5/utils-03188de2.js +1 -0
  431. package/dist/esm-es5/utils-6122971b.js +1 -0
  432. package/dist/mint-components/global/styles.ts +411 -136
  433. package/dist/mint-components/mint-components.esm.js +1 -1
  434. package/dist/mint-components/mint-components.js +1 -1
  435. package/dist/mint-components/{p-266a8b4d.js → p-00791abc.js} +1 -1
  436. package/dist/mint-components/p-0087ad39.system.js +1 -0
  437. package/dist/mint-components/{p-28b011a0.js → p-00bc7211.js} +1 -1
  438. package/dist/mint-components/p-0723f759.system.entry.js +1 -0
  439. package/dist/mint-components/{p-e145e4f8.js → p-07dc6d68.js} +1 -1
  440. package/dist/mint-components/{p-5bedb58c.js → p-08700497.js} +1 -1
  441. package/dist/mint-components/p-0935f9b7.system.js +1 -0
  442. package/dist/mint-components/p-0e532b53.entry.js +1 -0
  443. package/dist/mint-components/p-0ec54f97.js +1 -0
  444. package/dist/mint-components/p-107f589b.js +1 -0
  445. package/dist/mint-components/p-115dfc03.system.js +1 -0
  446. package/dist/mint-components/p-125a894f.js +1 -0
  447. package/dist/mint-components/p-1363c4ab.system.js +1 -0
  448. package/dist/mint-components/p-13f3a647.js +1 -0
  449. package/dist/mint-components/p-14128c84.system.entry.js +1 -0
  450. package/dist/mint-components/{p-a81b507f.entry.js → p-155f7d25.entry.js} +2 -2
  451. package/dist/mint-components/p-15bfd7e2.system.js +1 -0
  452. package/dist/mint-components/p-171310d9.system.js +1 -0
  453. package/dist/mint-components/{p-dbc0e4f8.system.js → p-17a0f310.system.js} +1 -1
  454. package/dist/mint-components/p-1cd0e1e9.system.js +1 -0
  455. package/dist/mint-components/p-1d4ba4ce.system.entry.js +1 -0
  456. package/dist/mint-components/p-1de5d35d.entry.js +33 -0
  457. package/dist/mint-components/p-204861a6.js +1 -0
  458. package/dist/mint-components/{p-e8ffcc68.entry.js → p-20916402.entry.js} +2 -2
  459. package/dist/mint-components/p-2128d9c2.system.entry.js +1 -0
  460. package/dist/mint-components/{p-b385c9f0.system.entry.js → p-22a9114f.system.entry.js} +1 -1
  461. package/dist/mint-components/p-2403c6e1.system.js +1 -0
  462. package/dist/mint-components/p-240bec23.js +1 -0
  463. package/dist/mint-components/{p-164a9103.system.entry.js → p-26a7051d.system.entry.js} +1 -1
  464. package/dist/mint-components/p-26b1971c.entry.js +1 -0
  465. package/dist/mint-components/{p-0559d880.entry.js → p-27a7f6a6.entry.js} +1 -1
  466. package/dist/mint-components/p-29398c98.entry.js +1 -0
  467. package/dist/mint-components/{p-480e08e9.js → p-293e3b25.js} +2 -2
  468. package/dist/mint-components/p-29ba2eaa.entry.js +1 -0
  469. package/dist/mint-components/p-3007e9dc.entry.js +13 -0
  470. package/dist/mint-components/{p-36ffebd8.system.entry.js → p-355079f4.system.entry.js} +1 -1
  471. package/dist/mint-components/{p-44891949.entry.js → p-386ec00c.entry.js} +1 -1
  472. package/dist/mint-components/p-39bdd771.system.entry.js +1 -0
  473. package/dist/mint-components/{p-20245645.js → p-3eba9036.js} +1 -1
  474. package/dist/mint-components/p-40752a0f.entry.js +1 -0
  475. package/dist/mint-components/p-40c01a5a.system.js +1 -0
  476. package/dist/mint-components/{p-301ddcaa.system.entry.js → p-40c33b6a.system.entry.js} +1 -1
  477. package/dist/mint-components/{p-4b6dc0e5.entry.js → p-4204a6e3.entry.js} +1 -1
  478. package/dist/mint-components/{p-6a8d9def.system.entry.js → p-42b62299.system.entry.js} +1 -1
  479. package/dist/mint-components/{p-345fd28e.system.entry.js → p-43d9c1c5.system.entry.js} +1 -1
  480. package/dist/mint-components/p-45c3ff6d.js +1 -0
  481. package/dist/mint-components/{p-726a9924.js → p-460155de.js} +1 -1
  482. package/dist/mint-components/p-473f68fb.entry.js +93 -0
  483. package/dist/mint-components/{p-1b7e6ee9.entry.js → p-47c83656.entry.js} +1 -1
  484. package/dist/mint-components/{p-c0f19490.js → p-49400aab.js} +2 -2
  485. package/dist/mint-components/p-49b20dae.js +1 -0
  486. package/dist/mint-components/p-4c811d12.entry.js +13 -0
  487. package/dist/mint-components/p-4f5329a2.system.js +53 -0
  488. package/dist/mint-components/{p-ac9f4085.system.entry.js → p-4f5a3dad.system.entry.js} +1 -1
  489. package/dist/mint-components/{p-4027c743.system.entry.js → p-511c87ce.system.entry.js} +1 -1
  490. package/dist/mint-components/p-513f5d80.js +1 -0
  491. package/dist/mint-components/{p-13ed8586.system.js → p-537a3894.system.js} +1 -1
  492. package/dist/mint-components/{p-4b6f2eca.system.entry.js → p-54abb144.system.entry.js} +1 -1
  493. package/dist/mint-components/p-552a6d1b.js +103 -0
  494. package/dist/mint-components/{p-9b6a0152.system.entry.js → p-58e0eccc.system.entry.js} +1 -1
  495. package/dist/mint-components/p-59b028db.system.js +1 -0
  496. package/dist/mint-components/{p-f4a72903.system.entry.js → p-5b29d833.system.entry.js} +1 -1
  497. package/dist/mint-components/p-5e145a54.system.entry.js +1 -0
  498. package/dist/mint-components/{p-f4a8ee29.system.entry.js → p-5e8d6f3a.system.entry.js} +1 -1
  499. package/dist/mint-components/p-5ff2da11.js +1 -0
  500. package/dist/mint-components/{p-4d91a1d6.system.js → p-60465a2d.system.js} +1 -1
  501. package/dist/mint-components/{p-fa37513e.system.entry.js → p-60ec0961.system.entry.js} +1 -1
  502. package/dist/mint-components/p-621f3e30.entry.js +1 -0
  503. package/dist/mint-components/p-625ca62f.entry.js +1 -0
  504. package/dist/mint-components/p-63e29387.js +42 -0
  505. package/dist/mint-components/{p-71d7c2a0.system.js → p-64997b59.system.js} +1 -1
  506. package/dist/mint-components/{p-b5fb3826.system.js → p-6578ea31.system.js} +1 -1
  507. package/dist/mint-components/p-676f7f4c.system.entry.js +1 -0
  508. package/dist/mint-components/p-67ad2252.system.js +1 -0
  509. package/dist/mint-components/p-67e9414e.system.entry.js +1 -0
  510. package/dist/mint-components/{p-dc52c36a.js → p-68043f30.js} +1 -1
  511. package/dist/mint-components/p-692bacf3.js +1 -0
  512. package/dist/mint-components/{p-9ec99ced.js → p-6951663b.js} +1 -1
  513. package/dist/mint-components/p-6a8ce297.entry.js +11 -0
  514. package/dist/mint-components/p-6b076bae.system.entry.js +1 -0
  515. package/dist/mint-components/p-6b5cc1cb.entry.js +1 -0
  516. package/dist/mint-components/{p-8175e85f.system.js → p-6c82d60c.system.js} +1 -1
  517. package/dist/mint-components/p-71271fbd.system.js +1 -0
  518. package/dist/mint-components/{p-6d9e52c7.system.js → p-7159c51c.system.js} +1 -1
  519. package/dist/mint-components/{p-05f29f64.js → p-71af93e3.js} +1 -1
  520. package/dist/mint-components/{p-cc7af682.system.js → p-71daeed9.system.js} +2 -2
  521. package/dist/mint-components/p-74f43a08.system.js +1 -0
  522. package/dist/mint-components/p-75b8fd75.entry.js +1 -0
  523. package/dist/mint-components/p-7602eb6a.entry.js +1 -0
  524. package/dist/mint-components/p-76680eed.entry.js +1 -0
  525. package/dist/mint-components/{p-8362cb4c.system.entry.js → p-78c754de.system.entry.js} +1 -1
  526. package/dist/mint-components/p-7a268047.js +1 -0
  527. package/dist/mint-components/p-7ae7bd46.entry.js +9 -0
  528. package/dist/mint-components/p-7b8d29bb.entry.js +1 -0
  529. package/dist/mint-components/{p-1a6b7d2a.entry.js → p-7eb0573c.entry.js} +1 -1
  530. package/dist/mint-components/p-8477d29e.system.entry.js +1 -0
  531. package/dist/mint-components/{p-7c2b9fe4.system.js → p-867b2baf.system.js} +1 -1
  532. package/dist/mint-components/p-8700536e.entry.js +1 -0
  533. package/dist/mint-components/p-8a6494c7.system.js +1 -0
  534. package/dist/mint-components/p-8caef004.js +1 -0
  535. package/dist/mint-components/{p-8413ade9.system.js → p-8e28333b.system.js} +1 -1
  536. package/dist/mint-components/p-916a2045.system.entry.js +1 -0
  537. package/dist/mint-components/p-92a54b0c.entry.js +1 -0
  538. package/dist/mint-components/{p-c2fdd608.system.entry.js → p-9491f5fb.system.entry.js} +1 -1
  539. package/dist/mint-components/{p-a9f4ddb1.js → p-9580aac3.js} +1 -1
  540. package/dist/mint-components/p-967a9040.system.js +1 -0
  541. package/dist/mint-components/p-976ee669.js +1 -0
  542. package/dist/mint-components/{p-6d2f5a1d.js → p-97dc6863.js} +2 -2
  543. package/dist/mint-components/{p-284e4ed5.entry.js → p-9943f53e.entry.js} +1 -1
  544. package/dist/mint-components/{p-e21a1cb8.system.entry.js → p-9ab8a0fd.system.entry.js} +1 -1
  545. package/dist/mint-components/{p-3f7b81b8.js → p-9c79ab08.js} +2 -2
  546. package/dist/mint-components/p-9e297104.entry.js +1 -0
  547. package/dist/mint-components/p-9eba8408.js +1 -0
  548. package/dist/mint-components/p-a1b89894.system.entry.js +1 -0
  549. package/dist/mint-components/{p-35b475bf.js → p-a45680fe.js} +1 -1
  550. package/dist/mint-components/p-a4e8eb33.entry.js +1 -0
  551. package/dist/mint-components/{p-87c21535.entry.js → p-a52df294.entry.js} +1 -1
  552. package/dist/mint-components/p-a597b136.entry.js +1 -0
  553. package/dist/mint-components/{p-127e66c2.system.js → p-a6f4fb03.system.js} +1 -1
  554. package/dist/mint-components/{p-faba3198.entry.js → p-a7ee19dc.entry.js} +1 -1
  555. package/dist/mint-components/p-a85ff05e.system.entry.js +1 -0
  556. package/dist/mint-components/p-a8c86cd8.system.entry.js +1 -0
  557. package/dist/mint-components/{p-17da19a2.system.js → p-aa08457e.system.js} +1 -1
  558. package/dist/mint-components/{p-4e526a94.js → p-aa596749.js} +1 -1
  559. package/dist/mint-components/{p-3c96533f.js → p-aa8c6332.js} +1 -1
  560. package/dist/mint-components/p-ab9d8c32.js +448 -0
  561. package/dist/mint-components/p-abceeb88.system.js +1 -0
  562. package/dist/mint-components/{p-f2d8d3d3.system.entry.js → p-af69ee79.system.entry.js} +1 -1
  563. package/dist/mint-components/{p-2ae0e06a.entry.js → p-b2fdb0b1.entry.js} +1 -1
  564. package/dist/mint-components/p-b4f94ebe.system.js +1 -0
  565. package/dist/mint-components/p-b56a295f.entry.js +1 -0
  566. package/dist/mint-components/{p-571e1427.system.js → p-b6911812.system.js} +1 -1
  567. package/dist/mint-components/p-bad50dc1.entry.js +1 -0
  568. package/dist/mint-components/{p-5488fdd9.system.js → p-bb5d153f.system.js} +1 -1
  569. package/dist/mint-components/p-bcac83f0.system.js +1 -0
  570. package/dist/mint-components/p-bd093069.system.entry.js +1 -0
  571. package/dist/mint-components/p-be88596c.system.js +1 -0
  572. package/dist/mint-components/p-bfe02bdf.system.entry.js +1 -0
  573. package/dist/mint-components/p-c210374a.system.js +1 -0
  574. package/dist/mint-components/{p-d6831af5.js → p-c30ad421.js} +1 -1
  575. package/dist/mint-components/{p-96431b4f.system.entry.js → p-c3dce602.system.entry.js} +1 -1
  576. package/dist/mint-components/p-c7c11325.js +1 -0
  577. package/dist/mint-components/{p-605c2904.system.entry.js → p-cc8ca3ff.system.entry.js} +1 -1
  578. package/dist/mint-components/{p-aaff68dc.entry.js → p-d08bcd88.entry.js} +1 -1
  579. package/dist/mint-components/{p-a71b9154.system.js → p-d09d3b8f.system.js} +1 -1
  580. package/dist/mint-components/p-d14f3149.system.js +1 -0
  581. package/dist/mint-components/p-d399b343.system.entry.js +1 -0
  582. package/dist/mint-components/p-d848957e.system.entry.js +1 -0
  583. package/dist/mint-components/p-db1a0db1.js +1233 -0
  584. package/dist/mint-components/p-dcc50d90.entry.js +1 -0
  585. package/dist/mint-components/{p-69ac09d4.js → p-ddf3c05e.js} +1 -1
  586. package/dist/mint-components/{p-642b0650.system.js → p-e0a724dd.system.js} +21 -21
  587. package/dist/mint-components/{p-2d52e2d7.system.js → p-e174b704.system.js} +1 -1
  588. package/dist/mint-components/p-e18813bc.entry.js +258 -0
  589. package/dist/mint-components/p-e1ad2fe0.system.entry.js +1 -0
  590. package/dist/mint-components/{p-45bb63c7.system.entry.js → p-e37c04f6.system.entry.js} +1 -1
  591. package/dist/mint-components/{p-ccf8c9aa.entry.js → p-ea063d99.entry.js} +1 -1
  592. package/dist/mint-components/p-eacc4e0f.entry.js +144 -0
  593. package/dist/mint-components/p-eaeddfe2.system.js +1 -0
  594. package/dist/mint-components/p-ecd36b10.entry.js +25 -0
  595. package/dist/mint-components/p-ee92a728.system.entry.js +1 -0
  596. package/dist/mint-components/{p-7dabdca6.system.entry.js → p-eea87fdc.system.entry.js} +1 -1
  597. package/dist/mint-components/p-f1dc581f.js +1 -0
  598. package/dist/mint-components/{p-527216de.system.js → p-f3392945.system.js} +1 -1
  599. package/dist/mint-components/p-f4202a64.system.entry.js +1 -0
  600. package/dist/mint-components/{p-4e451f75.js → p-f5fff87e.js} +1 -1
  601. package/dist/mint-components/p-f6baa0c9.system.js +1 -0
  602. package/dist/mint-components/p-f764e51f.entry.js +16 -0
  603. package/dist/mint-components/{p-3af1ec4c.entry.js → p-f9295990.entry.js} +1 -1
  604. package/dist/mint-components/p-f94edac5.system.entry.js +1 -0
  605. package/dist/mint-components/p-f9c7248e.js +1 -0
  606. package/dist/mint-components/{p-2b462e4f.system.entry.js → p-fb2976fc.system.entry.js} +1 -1
  607. package/dist/mint-components/{p-59274a91.system.js → p-ff0e1564.system.js} +1 -1
  608. package/dist/types/components/sqm-big-stat/BigStat.stories.d.ts +2 -0
  609. package/dist/types/components/sqm-big-stat/sqm-big-stat-view.d.ts +5 -0
  610. package/dist/types/components/sqm-big-stat/sqm-big-stat.d.ts +45 -1
  611. package/dist/types/components/sqm-coupon-code/CouponCode.stories.d.ts +1 -0
  612. package/dist/types/components/sqm-coupon-code/sqm-coupon-code-view.d.ts +1 -0
  613. package/dist/types/components/sqm-coupon-code/sqm-coupon-code.d.ts +1 -1
  614. package/dist/types/components/sqm-coupon-code/useCouponCode.d.ts +1 -0
  615. package/dist/types/components/sqm-divided-layout/sqm-divided-layout-view.d.ts +4 -1
  616. package/dist/types/components/sqm-divided-layout/sqm-divided-layout.d.ts +14 -1
  617. package/dist/types/components/sqm-form-message/FormMessage.stories.d.ts +0 -1
  618. package/dist/types/components/sqm-hero/Hero.stories.d.ts +1 -0
  619. package/dist/types/components/sqm-hero/sqm-hero-view.d.ts +1 -0
  620. package/dist/types/components/sqm-hero/sqm-hero.d.ts +9 -2
  621. package/dist/types/components/sqm-hero-image/sqm-hero-image.d.ts +1 -1
  622. package/dist/types/components/sqm-instant-access-registration/sqm-instant-access-registration.d.ts +1 -1
  623. package/dist/types/components/sqm-invoice-table/columns/InvoiceTableColumn.d.ts +1 -0
  624. package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-data-column.d.ts +1 -0
  625. package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-date-column.d.ts +1 -0
  626. package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-download-column.d.ts +1 -0
  627. package/dist/types/components/sqm-invoice-table/mockInvoiceData.d.ts +1 -0
  628. package/dist/types/components/sqm-invoice-table/sqm-invoice-table.d.ts +3 -0
  629. package/dist/types/components/sqm-leaderboard/sqm-leaderboard.d.ts +5 -5
  630. package/dist/types/components/sqm-link-button/sqm-link-button.d.ts +1 -0
  631. package/dist/types/components/sqm-logout-current-user/sqm-logout-current-user.d.ts +1 -0
  632. package/dist/types/components/sqm-navigation-sidebar/sqm-navigation-sidebar-view.d.ts +1 -0
  633. package/dist/types/components/sqm-navigation-sidebar/sqm-navigation-sidebar.d.ts +14 -0
  634. package/dist/types/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view.d.ts +8 -0
  635. package/dist/types/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.d.ts +57 -0
  636. package/dist/types/components/sqm-pagination/sqm-pagination-view.d.ts +1 -0
  637. package/dist/types/components/sqm-pagination/sqm-pagination.d.ts +9 -2
  638. package/dist/types/components/sqm-popup-container/usePopupContainer.d.ts +2 -2
  639. package/dist/types/components/sqm-portal-change-password/sqm-portal-change-password-view.d.ts +2 -0
  640. package/dist/types/components/sqm-portal-footer/sqm-portal-footer.d.ts +1 -1
  641. package/dist/types/components/sqm-portal-forgot-password/PortalForgotPassword.stories.d.ts +1 -0
  642. package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.d.ts +5 -1
  643. package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password.d.ts +15 -0
  644. package/dist/types/components/sqm-portal-frame/sqm-portal-frame-view.d.ts +3 -0
  645. package/dist/types/components/sqm-portal-frame/sqm-portal-frame.d.ts +19 -0
  646. package/dist/types/components/sqm-portal-frame/usePortalFrame.d.ts +2 -1
  647. package/dist/types/components/sqm-portal-login/PortalLogin.stories.d.ts +1 -0
  648. package/dist/types/components/sqm-program-explainer/sqm-program-explainer.d.ts +1 -1
  649. package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step-view.d.ts +1 -1
  650. package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step.d.ts +3 -2
  651. package/dist/types/components/sqm-referral-card/sqm-referral-card.d.ts +6 -5
  652. package/dist/types/components/sqm-referral-code/sqm-referral-code.d.ts +2 -2
  653. package/dist/types/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.d.ts +1 -0
  654. package/dist/types/components/sqm-referral-table/cells/sqm-referral-table-status-cell.d.ts +1 -0
  655. package/dist/types/components/sqm-referral-table/columns/ReferralTableColumn.d.ts +1 -0
  656. package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-column.d.ts +1 -0
  657. package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-date-column.d.ts +1 -0
  658. package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.d.ts +1 -0
  659. package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-status-column.d.ts +1 -0
  660. package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-user-column.d.ts +1 -0
  661. package/dist/types/components/sqm-referral-table/sqm-referral-table.d.ts +2 -1
  662. package/dist/types/components/sqm-referred-registration/sqm-referred-registration.d.ts +1 -1
  663. package/dist/types/components/sqm-reward-exchange-list/RewardExchangeListData.d.ts +457 -437
  664. package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list.d.ts +8 -1
  665. package/dist/types/components/sqm-reward-exchange-list/useRewardExchangeList.d.ts +1 -0
  666. package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.d.ts +1 -0
  667. package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.d.ts +1 -0
  668. package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.d.ts +1 -0
  669. package/dist/types/components/sqm-rewards-table/columns/RewardTableColumn.d.ts +1 -0
  670. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.d.ts +2 -1
  671. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.d.ts +2 -1
  672. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.d.ts +2 -1
  673. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.d.ts +2 -1
  674. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.d.ts +2 -1
  675. package/dist/types/components/sqm-rewards-table/mockRewardData.d.ts +1 -0
  676. package/dist/types/components/sqm-rewards-table/mockTaxData.d.ts +1 -0
  677. package/dist/types/components/sqm-rewards-table/sqm-rewards-table.d.ts +1 -0
  678. package/dist/types/components/sqm-rewards-table/useRewardsTable.d.ts +1 -1
  679. package/dist/types/components/sqm-scroll/sqm-scroll.d.ts +0 -8
  680. package/dist/types/components/sqm-share-button/sqm-share-button.d.ts +3 -3
  681. package/dist/types/components/sqm-share-code/sqm-share-code.d.ts +3 -3
  682. package/dist/types/components/sqm-share-link/ShareLink.stories.d.ts +1 -0
  683. package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +3 -2
  684. package/dist/types/components/sqm-stat-container/sqm-stat-container-view.d.ts +3 -0
  685. package/dist/types/components/sqm-stat-container/sqm-stat-container.d.ts +23 -0
  686. package/dist/types/components/sqm-stencilbook/BrandSelector.d.ts +9 -0
  687. package/dist/types/components/sqm-stencilbook/Themes.d.ts +6 -6
  688. package/dist/types/components/sqm-task-card/DetailsView.d.ts +6 -0
  689. package/dist/types/components/sqm-task-card/sqm-task-card-view.d.ts +1 -1
  690. package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +1 -5
  691. package/dist/types/components/sqm-task-card/useTaskCard.d.ts +1 -1
  692. package/dist/types/components/sqm-text/sqm-text.d.ts +1 -1
  693. package/dist/types/components/sqm-text-span/sqm-text-span-view.d.ts +4 -2
  694. package/dist/types/components/sqm-text-span/sqm-text-span.d.ts +13 -1
  695. package/dist/types/components/sqm-titled-section/sqm-titled-section.d.ts +2 -2
  696. package/dist/types/components/sqm-widget-verification/sqm-widget-verification-controller.d.ts +5 -2
  697. package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +6 -2
  698. package/dist/types/components/tax-and-cash/BankingForm.stories.d.ts +1 -0
  699. package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +1 -1
  700. package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.d.ts +6 -0
  701. package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.d.ts +16 -0
  702. package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.d.ts +7 -1
  703. package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.d.ts +12 -0
  704. package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +5 -2
  705. package/dist/types/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.d.ts +4 -0
  706. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +1 -0
  707. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +1 -1
  708. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +47 -4
  709. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.d.ts +1 -1
  710. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +1 -1
  711. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +5 -0
  712. package/dist/types/components/tax-and-cash/sqm-user-info-form/small-views/IndirectTaxDetailsView.d.ts +1 -1
  713. package/dist/types/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.d.ts +1 -1
  714. package/dist/types/components/tax-and-cash/utils.d.ts +1 -1
  715. package/dist/types/components.d.ts +670 -112
  716. package/dist/types/global/global.d.ts +2 -2
  717. package/dist/types/global/mixins.d.ts +12 -12
  718. package/dist/types/global/styles.d.ts +10 -2
  719. package/dist/types/insertfont.d.ts +1 -0
  720. package/dist/types/saasquatch.d.ts +142 -0
  721. package/dist/types/utils/parseStates.d.ts +1 -0
  722. package/dist/types/utils/utils.d.ts +1 -0
  723. package/docs/docs.docx +0 -0
  724. package/docs/raisins.json +1 -1
  725. package/grapesjs/grapesjs.js +1 -1
  726. package/package.json +3 -2
  727. package/shoelace/assets/icons/twitter-x.svg +4 -0
  728. package/dist/cjs/ErrorView-b2fcf954.js +0 -35
  729. package/dist/cjs/sqm-asset-card-view-21ddf04f.js +0 -51
  730. package/dist/cjs/sqm-asset-card.cjs.entry.js +0 -45
  731. package/dist/cjs/sqm-invoice-table-view-55066ec6.js +0 -2038
  732. package/dist/cjs/sqm-leaderboard-rank-view-d39a55d8.js +0 -10
  733. package/dist/cjs/sqm-navigation-sidebar-item-view-6f35d2ee.js +0 -45
  734. package/dist/cjs/sqm-portal-forgot-password-view-b986086e.js +0 -45
  735. package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +0 -127
  736. package/dist/cjs/sqm-referred-registration.cjs.entry.js +0 -178
  737. package/dist/cjs/sqm-text-span-view-56e48a78.js +0 -62
  738. package/dist/collection/components/sqm-asset-card/AssetCard.stories.js +0 -29
  739. package/dist/collection/components/sqm-asset-card/sqm-asset-card-view.js +0 -46
  740. package/dist/collection/components/sqm-asset-card/sqm-asset-card.js +0 -107
  741. package/dist/collection/components/sqm-asset-card/useAssetCard.js +0 -9
  742. package/dist/esm/ErrorView-48e2b969.js +0 -33
  743. package/dist/esm/sqm-asset-card-view-fe5db3c0.js +0 -49
  744. package/dist/esm/sqm-asset-card.entry.js +0 -41
  745. package/dist/esm/sqm-invoice-table-view-fda573e4.js +0 -2022
  746. package/dist/esm/sqm-leaderboard-rank-view-753c8d4a.js +0 -8
  747. package/dist/esm/sqm-navigation-sidebar-item-view-8f1c72bc.js +0 -43
  748. package/dist/esm/sqm-portal-forgot-password-view-50444a7c.js +0 -43
  749. package/dist/esm/sqm-portal-forgot-password.entry.js +0 -123
  750. package/dist/esm/sqm-referred-registration.entry.js +0 -174
  751. package/dist/esm/sqm-text-span-view-c577cc60.js +0 -60
  752. package/dist/esm-es5/ErrorView-48e2b969.js +0 -1
  753. package/dist/esm-es5/GenericTableView-e7addb2b.js +0 -1
  754. package/dist/esm-es5/ShadowViewAddon-967f1f54.js +0 -1
  755. package/dist/esm-es5/copy-text-view-0ac6e1d1.js +0 -1
  756. package/dist/esm-es5/email-registration-view-a7818cf2.js +0 -1
  757. package/dist/esm-es5/index.module-89a79f66.js +0 -1
  758. package/dist/esm-es5/luxon-8d51c92b.js +0 -1
  759. package/dist/esm-es5/mixins-83f90fa1.js +0 -1
  760. package/dist/esm-es5/re-render-cc945f38.js +0 -1
  761. package/dist/esm-es5/sqm-asset-card-view-fe5db3c0.js +0 -1
  762. package/dist/esm-es5/sqm-asset-card.entry.js +0 -1
  763. package/dist/esm-es5/sqm-banking-info-form_17.entry.js +0 -1
  764. package/dist/esm-es5/sqm-big-stat_41.entry.js +0 -1
  765. package/dist/esm-es5/sqm-invoice-table-view-fda573e4.js +0 -1
  766. package/dist/esm-es5/sqm-leaderboard-rank-view-753c8d4a.js +0 -1
  767. package/dist/esm-es5/sqm-navigation-sidebar-item-view-8f1c72bc.js +0 -1
  768. package/dist/esm-es5/sqm-navigation-sidebar-view-9d802b78.js +0 -1
  769. package/dist/esm-es5/sqm-portal-forgot-password-view-50444a7c.js +0 -1
  770. package/dist/esm-es5/sqm-portal-forgot-password.entry.js +0 -1
  771. package/dist/esm-es5/sqm-portal-login-view-37c85d04.js +0 -1
  772. package/dist/esm-es5/sqm-qr-code-view-10b8b4cb.js +0 -1
  773. package/dist/esm-es5/sqm-referred-registration.entry.js +0 -1
  774. package/dist/esm-es5/sqm-text-span-view-c577cc60.js +0 -1
  775. package/dist/esm-es5/stencil-hooks.module-4bc38af4.js +0 -53
  776. package/dist/esm-es5/useChildElements-7945ae56.js +0 -1
  777. package/dist/esm-es5/useInstantAccessRegistration-dc4ad9f2.js +0 -1
  778. package/dist/esm-es5/usePortalLogin-ef647a50.js +0 -1
  779. package/dist/esm-es5/usePortalRegistrationForm-4b35a357.js +0 -1
  780. package/dist/esm-es5/useReferralCodes-8f75921a.js +0 -1
  781. package/dist/esm-es5/useReferralTable-b3876ed6.js +0 -1
  782. package/dist/esm-es5/useRegistrationFormState-d6f33135.js +0 -1
  783. package/dist/esm-es5/useVerificationEmail-edc318cb.js +0 -1
  784. package/dist/esm-es5/utilities-5b0ca040.js +0 -1
  785. package/dist/esm-es5/utils-334c1e34.js +0 -1
  786. package/dist/mint-components/p-00ed4c2e.entry.js +0 -1
  787. package/dist/mint-components/p-04a6e457.entry.js +0 -1
  788. package/dist/mint-components/p-12536a1f.system.entry.js +0 -1
  789. package/dist/mint-components/p-141bf5c1.system.entry.js +0 -1
  790. package/dist/mint-components/p-14a65f29.system.js +0 -1
  791. package/dist/mint-components/p-1513309d.entry.js +0 -1
  792. package/dist/mint-components/p-18425f38.system.entry.js +0 -1
  793. package/dist/mint-components/p-19ccb4ce.js +0 -1
  794. package/dist/mint-components/p-1ae6c418.entry.js +0 -1
  795. package/dist/mint-components/p-1b3ab15a.system.entry.js +0 -1
  796. package/dist/mint-components/p-1fa9ed0d.system.entry.js +0 -1
  797. package/dist/mint-components/p-217514ac.system.js +0 -1
  798. package/dist/mint-components/p-229f797b.js +0 -1
  799. package/dist/mint-components/p-24db5c70.js +0 -1
  800. package/dist/mint-components/p-266bbd02.system.js +0 -1
  801. package/dist/mint-components/p-275b4767.entry.js +0 -1
  802. package/dist/mint-components/p-2bbff88f.entry.js +0 -1
  803. package/dist/mint-components/p-2c7ebd5b.js +0 -1
  804. package/dist/mint-components/p-2dca9e1a.system.js +0 -1
  805. package/dist/mint-components/p-2e110002.system.js +0 -1
  806. package/dist/mint-components/p-320d3c31.entry.js +0 -205
  807. package/dist/mint-components/p-32dbde60.system.js +0 -1
  808. package/dist/mint-components/p-33c96e14.entry.js +0 -16
  809. package/dist/mint-components/p-38de17fa.system.js +0 -1
  810. package/dist/mint-components/p-38e5c429.system.js +0 -1
  811. package/dist/mint-components/p-38fc919b.entry.js +0 -1
  812. package/dist/mint-components/p-3a62a7e2.system.js +0 -1
  813. package/dist/mint-components/p-3db34d68.js +0 -1
  814. package/dist/mint-components/p-420554af.system.entry.js +0 -1
  815. package/dist/mint-components/p-42187319.system.entry.js +0 -1
  816. package/dist/mint-components/p-4428294b.entry.js +0 -1
  817. package/dist/mint-components/p-44eead35.entry.js +0 -258
  818. package/dist/mint-components/p-48135f99.system.js +0 -53
  819. package/dist/mint-components/p-49206a9c.entry.js +0 -1
  820. package/dist/mint-components/p-4e5af50c.js +0 -1
  821. package/dist/mint-components/p-52858682.system.js +0 -1
  822. package/dist/mint-components/p-5dbe8b0a.system.js +0 -1
  823. package/dist/mint-components/p-6055eb4c.system.js +0 -1
  824. package/dist/mint-components/p-6333265f.system.js +0 -1
  825. package/dist/mint-components/p-635d5ef2.system.js +0 -1
  826. package/dist/mint-components/p-6427e963.entry.js +0 -1
  827. package/dist/mint-components/p-65ba9e94.entry.js +0 -1
  828. package/dist/mint-components/p-6b7a595f.system.js +0 -1
  829. package/dist/mint-components/p-6cd4f2b1.system.js +0 -1
  830. package/dist/mint-components/p-6d8f7c71.js +0 -1
  831. package/dist/mint-components/p-6eaf9c57.entry.js +0 -1
  832. package/dist/mint-components/p-775f3ded.entry.js +0 -1
  833. package/dist/mint-components/p-776260e8.js +0 -1248
  834. package/dist/mint-components/p-7ab21e4d.entry.js +0 -1
  835. package/dist/mint-components/p-7cbec088.system.entry.js +0 -1
  836. package/dist/mint-components/p-7e3a84bc.js +0 -1
  837. package/dist/mint-components/p-7e3d84a3.entry.js +0 -13
  838. package/dist/mint-components/p-802b9f7e.entry.js +0 -1
  839. package/dist/mint-components/p-8053366e.system.entry.js +0 -1
  840. package/dist/mint-components/p-8119a65e.system.entry.js +0 -1
  841. package/dist/mint-components/p-82d04fd3.entry.js +0 -25
  842. package/dist/mint-components/p-868daffd.system.entry.js +0 -1
  843. package/dist/mint-components/p-893d7ab4.js +0 -1
  844. package/dist/mint-components/p-8ab87bd4.entry.js +0 -144
  845. package/dist/mint-components/p-8abfeff8.entry.js +0 -1
  846. package/dist/mint-components/p-8c23d1b8.js +0 -1
  847. package/dist/mint-components/p-8c494bf1.js +0 -1
  848. package/dist/mint-components/p-8d9328dd.entry.js +0 -33
  849. package/dist/mint-components/p-8d9d04b7.system.entry.js +0 -1
  850. package/dist/mint-components/p-8f6297b0.js +0 -394
  851. package/dist/mint-components/p-91521e9d.js +0 -1
  852. package/dist/mint-components/p-92816d1f.js +0 -1
  853. package/dist/mint-components/p-94a876b9.js +0 -1
  854. package/dist/mint-components/p-97d4d651.system.js +0 -1
  855. package/dist/mint-components/p-98698131.js +0 -1
  856. package/dist/mint-components/p-9abb9ab0.entry.js +0 -13
  857. package/dist/mint-components/p-9acb5038.js +0 -1
  858. package/dist/mint-components/p-9cf80e85.system.entry.js +0 -1
  859. package/dist/mint-components/p-ae07ce99.system.entry.js +0 -1
  860. package/dist/mint-components/p-afbb3f73.entry.js +0 -1
  861. package/dist/mint-components/p-b12e132b.system.entry.js +0 -1
  862. package/dist/mint-components/p-b22a7b2d.entry.js +0 -9
  863. package/dist/mint-components/p-b6de39a2.entry.js +0 -1
  864. package/dist/mint-components/p-b7d1469d.system.entry.js +0 -1
  865. package/dist/mint-components/p-bd2a2546.system.js +0 -1
  866. package/dist/mint-components/p-bfc7cfc0.system.js +0 -1
  867. package/dist/mint-components/p-c36506f6.system.entry.js +0 -1
  868. package/dist/mint-components/p-ccb5699b.js +0 -1
  869. package/dist/mint-components/p-cd1d497f.system.js +0 -1
  870. package/dist/mint-components/p-cd651f81.js +0 -42
  871. package/dist/mint-components/p-d68003fe.system.entry.js +0 -1
  872. package/dist/mint-components/p-da7708a7.entry.js +0 -1
  873. package/dist/mint-components/p-dce51a2e.system.entry.js +0 -1
  874. package/dist/mint-components/p-df89186f.system.js +0 -1
  875. package/dist/mint-components/p-e6f50ffd.entry.js +0 -1
  876. package/dist/mint-components/p-eab1c9f3.js +0 -1
  877. package/dist/mint-components/p-ee06426a.system.js +0 -1
  878. package/dist/mint-components/p-f2228da3.system.entry.js +0 -1
  879. package/dist/mint-components/p-f26aedcd.system.js +0 -1
  880. package/dist/mint-components/p-f708da7b.js +0 -1
  881. package/dist/mint-components/p-f9da2c34.system.entry.js +0 -1
  882. package/dist/mint-components/p-fd0a013f.entry.js +0 -1
  883. package/dist/mint-components/p-fdaa4dbb.system.entry.js +0 -1
  884. package/dist/types/components/sqm-asset-card/AssetCard.stories.d.ts +0 -7
  885. package/dist/types/components/sqm-asset-card/sqm-asset-card-view.d.ts +0 -8
  886. package/dist/types/components/sqm-asset-card/sqm-asset-card.d.ts +0 -24
  887. package/dist/types/components/sqm-asset-card/useAssetCard.d.ts +0 -7
  888. /package/dist/collection/components/tax-and-cash/{sqm-tax-and-cash/data.js → data.js} +0 -0
  889. /package/dist/types/components/tax-and-cash/{sqm-tax-and-cash/data.d.ts → data.d.ts} +0 -0
@@ -1,149 +1,29 @@
1
- import { h, r as registerInstance, c as Host, g as getElement } from './index-91e7729f.js';
2
- import { m as useRef, k as useState, f as useEffect, n as h$1, l, u as useMemo, b as browser, j as useReducer } from './stencil-hooks.module-4bc38af4.js';
3
- import { i as intl } from './global-9d6f3bbe.js';
4
- import { d as dist, _, L, J, t as Pn, F as Fn, x as $n, $ as $e, i as isDemo, q as En, u as useCallback, R as Rn, M as Mn, I as In, S as Sn } from './index.module-89a79f66.js';
1
+ import { h, r as registerInstance, c as Host, g as getElement } from './index-b3a06de8.js';
2
+ import { i as intl } from './global-1099f20d.js';
3
+ import { m as useRef, k as useState, f as useEffect, n as h$1, u as useMemo, b as browser, j as useReducer } from './dom-context-hooks.module-63370afd.js';
4
+ import { d as dist, _, L, J, t as Pn, F as Fn, x as $n, $ as $e, i as isDemo, p as En, u as useCallback, R as Rn } from './index.module-c9811a48.js';
5
5
  import { j as jsonpointer } from './jsonpointer-388a7082.js';
6
6
  import { c as cjs } from './cjs-bdfb4486.js';
7
- import { g as getProps, l as luxonLocale } from './utils-334c1e34.js';
7
+ import { g as getProps, c as capitalizeFirstLetter } from './utils-03188de2.js';
8
8
  import { c as createStyleSheet } from './JSS-67b5cff8.js';
9
- import { E as ErrorStyles } from './mixins-83f90fa1.js';
10
- import { G as GenericTableView } from './GenericTableView-e7addb2b.js';
11
- import { u as useRerenderListener, a as useRequestRerender } from './re-render-cc945f38.js';
12
- import { u as useChildElements } from './useChildElements-7945ae56.js';
13
- import { l as luxon } from './luxon-8d51c92b.js';
14
- import { g as generateUserError } from './useReferralTable-b3876ed6.js';
15
- import { T as TextSpanView } from './sqm-text-span-view-c577cc60.js';
16
- import { E as ErrorView } from './ErrorView-48e2b969.js';
17
- import { t as taxTypeToName, v as validTaxDocument, a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, g as getCountryObj, O as OtherRegionSlotView, I as InvoiceTableView, L as LoadingView, c as vatLabels, G as GeneralLoadingView, f as formatErrorMessage, d as validateBillingField, o as objectIsFull, A as ADDRESS_REGIONS } from './sqm-invoice-table-view-fda573e4.js';
18
- import { e as extractProps } from './extractProps-ae1afbb3.js';
19
- import { b as VERIFICATION_EVENT_KEY, V as VERIFICATION_EMAIL_NAMESPACE, S as SHOW_CODE_NAMESPACE, a as VERIFICATION_PARENT_NAMESPACE } from './keys-406491dc.js';
20
- import { T as TAX_FORM_UPDATED_EVENT_KEY, a as useVeriffApp, g as getStatus, V as VERIFF_COMPLETE_EVENT_KEY } from './usePayoutStatus-58aa56b4.js';
21
- import { u as useVerificationEmail } from './useVerificationEmail-edc318cb.js';
22
-
23
- const TAX_CONTEXT_NAMESPACE = "sq:tax-and-cash";
24
- const TAX_FORM_CONTEXT_NAMESPACE = "sq:tax-form-context";
25
- const USER_QUERY_NAMESPACE = "sq:user-info-query";
26
- const USER_FORM_CONTEXT_NAMESPACE = "sq:user-form-context";
27
- const FINANCE_NETWORK_SETTINGS_NAMESPACE = "sq:finance-network-settings";
28
- const COUNTRIES_NAMESPACE = "sq:countries:list";
29
- const SORTED_COUNTRIES_NAMESPACE = "sq:countries:sorted";
30
- const COUNTRIES_QUERY_NAMESPACE = "sq:countries:query";
31
- const CURRENCIES_NAMESPACE = "sq:currencies:list";
32
- const CURRENCIES_QUERY_NAMESPACE = "sq:currencies:query";
33
- const GET_USER = dist.gql `
34
- query getUserTaxInfo {
35
- user: viewer {
36
- ... on User {
37
- id
38
- firstName
39
- lastName
40
- email
41
- countryCode
42
- customFields
43
- managedIdentity {
44
- uid
45
- email
46
- emailVerified
47
- }
48
- impactConnection {
49
- connected
50
- user {
51
- firstName
52
- lastName
53
- }
54
- publisher {
55
- id
56
- brandedSignup
57
- countryCode
58
- currency
59
- billingAddress
60
- billingCity
61
- billingState
62
- billingCountryCode
63
- billingPostalCode
64
- phoneNumberCountryCode
65
- phoneNumber
66
- taxInformation {
67
- indirectTaxId
68
- indirectTaxCountryCode
69
- indirectTaxRegion
70
- additionalTaxId
71
- withholdingTaxId
72
- withholdingTaxCountryCode
73
- }
74
- requiredTaxDocumentType
75
- currentTaxDocument {
76
- status
77
- type
78
- dateCreated
79
- }
80
- withdrawalSettings {
81
- paymentMethod
82
- paypalEmailAddress
83
- bankCountry
84
- bankAccountNumber
85
- paymentSchedulingType
86
- paymentThreshold
87
- paymentDay
88
- }
89
- payoutsAccount {
90
- hold
91
- holdReasons
92
- balance
93
- }
94
- }
95
- }
96
- }
97
- }
98
- }
99
- `;
100
- const GET_COUNTRIES = dist.gql `
101
- query getCountries {
102
- impactPayoutCountries(limit: 1000) {
103
- data {
104
- countryCode
105
- displayName
106
- }
107
- }
108
- }
109
- `;
110
- const GET_CURRENCIES = dist.gql `
111
- query currencies($locale: RSLocale) {
112
- currencies(limit: 300) {
113
- data {
114
- displayName(locale: $locale)
115
- currencyCode
116
- }
117
- }
118
- }
119
- `;
120
- const GET_FINANCE_NETWORK_SETTINGS = dist.gql `
121
- query impactFinanceNetworkSettings(
122
- $filter: ImpactFinanceNetworkSettingsFilterInput
123
- ) {
124
- impactFinanceNetworkSettings(filter: $filter, limit: 1000) {
125
- data {
126
- countryCode
127
- currency
128
- defaultFinancePaymentMethodId
129
- thresholdOptions
130
- withdrawalSettingId
131
- internationalEftFee
132
- foreignFxFee
133
- defaultFxFee
134
- }
135
- totalCount
136
- }
137
- }
138
- `;
139
- const FORM_STEPS = 4;
9
+ import './mixins-f750863a.js';
10
+ import { G as GenericTableView } from './GenericTableView-e43d310f.js';
11
+ import { u as useRerenderListener, a as useRequestRerender } from './re-render-7e22fb0d.js';
12
+ import { u as useChildElements } from './useChildElements-3d872cef.js';
13
+ import { l as luxon } from './luxon-bbf75a9d.js';
14
+ import { g as generateUserError } from './useReferralTable-909ccb28.js';
15
+ import { a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, O as OtherRegionSlotView, I as InvoiceTableView, v as vatLabels, A as ADDRESS_REGIONS } from './IndirectTaxDetailsView-daecbf7c.js';
16
+ import { t as taxTypeToName, v as validTaxDocument, g as getCountryObj, L as LoadingView, f as formatErrorMessage, a as validateBillingField, o as objectIsFull } from './utils-6122971b.js';
17
+ import { i as FORM_STEPS, a as TAX_FORM_CONTEXT_NAMESPACE, S as SORTED_COUNTRIES_NAMESPACE, c as USER_QUERY_NAMESPACE, T as TAX_CONTEXT_NAMESPACE, F as FINANCE_NETWORK_SETTINGS_NAMESPACE, U as USER_FORM_CONTEXT_NAMESPACE, d as COUNTRIES_QUERY_NAMESPACE, C as CURRENCIES_NAMESPACE } from './data-dea73d4d.js';
18
+ import { b as VERIFICATION_EVENT_KEY } from './keys-406491dc.js';
19
+ import { T as TAX_FORM_UPDATED_EVENT_KEY, a as useVeriffApp, g as getStatus, V as VERIFF_COMPLETE_EVENT_KEY } from './usePayoutStatus-93462be3.js';
140
20
 
141
21
  function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
142
22
  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;
143
23
  const { errors, ...formState } = props.states.formState;
144
24
  return {
145
25
  0: {
146
- input: (h("sl-input", Object.assign({ required: true, label: props.text.beneficiaryAccountNameLabel, name: "/beneficiaryAccountName", id: "beneficiaryAccountName", key: "beneficiaryAccountName", type: "text" }, (((_a = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _a === void 0 ? void 0 : _a.beneficiaryAccountName) && {
26
+ input: (h("sl-input", Object.assign({ required: true, label: props.text.beneficiaryAccountNameLabel, name: "/beneficiaryAccountName", id: "beneficiaryAccountName", key: "beneficiaryAccountName", type: "text", "help-text": props.text.beneficiaryAccountNameDescription }, (((_a = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _a === void 0 ? void 0 : _a.beneficiaryAccountName) && {
147
27
  class: "error-input",
148
28
  helpText: getValidationErrorMessage({
149
29
  type: (_c = (_b = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _b === void 0 ? void 0 : _b.beneficiaryAccountName) === null || _c === void 0 ? void 0 : _c.type,
@@ -645,6 +525,11 @@ const mockPaymentOptions = {
645
525
  };
646
526
 
647
527
  const style = {
528
+ ModalTitleContainer: {
529
+ display: "flex",
530
+ gap: "var(--sl-spacing-small)",
531
+ alignItems: "center",
532
+ },
648
533
  FormWrapper: {
649
534
  display: "flex",
650
535
  justifyContent: "flex-start",
@@ -675,40 +560,20 @@ const style = {
675
560
  gap: "8px",
676
561
  },
677
562
  ErrorText: {
678
- color: "var(--sl-color-danger-500)",
563
+ color: "var(--sqm-danger-color-icon)",
679
564
  marginTop: "10px",
680
565
  },
681
566
  PageDescriptionText: {
682
- color: "var(--sl-color-neutral-500)",
567
+ color: "var(--sqm-text-subdued)",
683
568
  fontSize: "var(--sl-font-size-medium)",
684
569
  },
685
570
  DescriptionText: {
686
- color: "var(--sl-color-neutral-500)",
687
- },
688
- AlertContainer: {
689
- "&::part(base)": {
690
- backgroundColor: "var(--sl-color-red-100)",
691
- borderTop: "none",
692
- padding: "0 16px",
693
- },
694
- "& sl-icon::part(base)": {
695
- color: "var(--sl-color-danger-500)",
696
- },
571
+ color: "var(--sqm-text-subdued)",
697
572
  },
698
573
  RadioContainer: {
699
574
  display: "flex",
700
575
  flexDirection: "column",
701
576
  },
702
- PartnerAlertContainer: {
703
- "&::part(base)": {
704
- backgroundColor: "var(--sl-color-sky-100)",
705
- borderTop: "none",
706
- padding: "0 16px",
707
- },
708
- "& sl-icon::part(base)": {
709
- color: "var(--sl-color-blue-500)",
710
- },
711
- },
712
577
  Checkbox: {
713
578
  "&::part(control)": {
714
579
  borderRadius: "50% !important",
@@ -720,8 +585,8 @@ const style = {
720
585
  InputContainer: {
721
586
  padding: "16px",
722
587
  margin: "16px 0px 16px 0px",
723
- borderTop: "1px solid var(--sl-color-gray-300)",
724
- borderBottom: "1px solid var(--sl-color-gray-300)",
588
+ borderTop: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
589
+ borderBottom: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
725
590
  display: "flex",
726
591
  flexDirection: "column",
727
592
  width: "100%",
@@ -743,42 +608,47 @@ const style = {
743
608
  width: "16px",
744
609
  height: "16px",
745
610
  borderRadius: "50%",
746
- background: "var(--sl-color-gray-200)",
611
+ background: "var(--sqm-skeleton-background)",
747
612
  },
748
613
  SmallSkeleton: {
749
614
  width: "100px",
750
615
  height: "16px",
751
616
  borderRadius: "50px",
752
- background: "var(--sl-color-gray-200)",
617
+ background: "var(--sqm-skeleton-background)",
753
618
  },
754
619
  LargeSkeleton: {
755
620
  width: "100%",
756
621
  maxWidth: "320px",
757
622
  height: "40px",
758
623
  borderRadius: "50px",
759
- background: "var(--sl-color-gray-200)",
624
+ background: "var(--sqm-skeleton-background)",
760
625
  },
761
- InfoAlert: {
762
- "&::part(base)": {
763
- backgroundColor: "transparent",
764
- borderTop: "none",
765
- border: "none",
626
+ InfoWarningIcon: {
627
+ height: "26px",
628
+ width: "26px",
629
+ },
630
+ Dialog: {
631
+ "&::part(panel)": {
632
+ maxWidth: "420px",
633
+ },
634
+ "&::part(title)": {
635
+ fontSize: "var(--sl-font-size-large)",
636
+ fontWeight: "600",
766
637
  },
767
- "&::part(message)": {
638
+ "&::part(body)": {
639
+ padding: "0 var(--sl-spacing-x-large) 0 var(--sl-spacing-x-large)",
640
+ fontSize: "var(--sl-font-size-small)",
641
+ },
642
+ "&::part(footer)": {
768
643
  display: "flex",
644
+ flexDirection: "column",
645
+ gap: "var(--sl-spacing-small)",
646
+ marginBottom: "var(--sl-spacing-xx-small)",
769
647
  alignItems: "center",
770
- justifyContent: "flex-start",
771
- padding: "10px",
772
- height: "max-content",
773
- },
774
- "& sl-icon::part(base)": {
775
- color: "var(--sl-color-yellow-500)",
648
+ flex: "1",
776
649
  },
777
650
  },
778
- InfoWarningIcon: {
779
- height: "26px",
780
- width: "26px",
781
- },
651
+ DialogButton: { margin: "auto", width: "100%" },
782
652
  };
783
653
  const sheet = createStyleSheet(style);
784
654
  const styleString = sheet.toString();
@@ -799,12 +669,14 @@ const vanillaStyle = `
799
669
 
800
670
  /* this class is dynamically applied in controller */
801
671
  .error-input::part(base) {
802
- border: 1px solid var(--sl-color-danger-500);
803
- border-radius: var(--sl-input-border-radius-medium);
672
+ --sqm-input-border-color: var(--sqm-danger-color-border);
673
+ --sl-input-border-color: var(--sqm-danger-color-border);
674
+ --sl-input-border-color-hover: var(--sqm-danger-color-border);
675
+ --sl-input-border-color-focus: var(--sqm-danger-color-background);
804
676
  }
805
677
 
806
678
  .error-input::part(help-text) {
807
- color: var(--sl-color-danger-500) !important;
679
+ color: var(--sqm-danger-color-text);
808
680
  }
809
681
 
810
682
  `;
@@ -842,6 +714,12 @@ const BankingInfoFormView = (props) => {
842
714
  h("style", { type: "text/css" },
843
715
  styleString,
844
716
  vanillaStyle),
717
+ h("sl-dialog", { class: sheet.classes.Dialog, open: states.showModal, "onSl-hide": callbacks.onModalClose },
718
+ h("div", { class: classes.ModalTitleContainer, slot: "label" },
719
+ h("sl-icon", { name: "info-circle", style: { color: "var(--sl-color-info-500)" } }),
720
+ h("h2", { style: { fontSize: "var(--sl-font-size-large)" } }, text.modalTitle)),
721
+ h("p", null, text.modalDescription),
722
+ h("sl-button", { slot: "footer", type: "primary", class: sheet.classes.DialogButton, submit: true, exportparts: "base: primarybutton-base" }, text.modalButtonText)),
845
723
  h("div", { class: classes.TextContainer },
846
724
  h("div", null,
847
725
  !states.hideSteps && (h("p", null, intl.formatMessage({
@@ -850,20 +728,16 @@ const BankingInfoFormView = (props) => {
850
728
  }, { step: states.step, count: FORM_STEPS }))),
851
729
  h("h3", { style: { fontSize: "24px" } }, text.taxAndPayouts),
852
730
  h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription)),
853
- ((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet.classes.AlertContainer },
854
- h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
855
- h("strong", null, text.error.generalTitle),
856
- h("br", null),
731
+ ((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sqm-form-message", { type: "error" },
732
+ h("p", { part: "alert-title" }, text.error.generalTitle),
857
733
  intl.formatMessage({
858
734
  id: "generalDescription",
859
735
  defaultMessage: text.error.generalDescription,
860
736
  }, {
861
737
  supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
862
738
  }))),
863
- states.isPartner && !states.hideSteps && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "primary", open: true, class: sheet.classes.PartnerAlertContainer },
864
- h("sl-icon", { slot: "icon", name: "info-circle" }),
865
- h("strong", null, text.isPartnerAlertHeader),
866
- h("br", null),
739
+ states.isPartner && !states.hideSteps && (h("sqm-form-message", { type: "info" },
740
+ h("p", { part: "alert-title" }, text.isPartnerAlertHeader),
867
741
  intl.formatMessage({
868
742
  id: "isPartnerAlertDescription",
869
743
  defaultMessage: text.isPartnerAlertDescription,
@@ -875,7 +749,7 @@ const BankingInfoFormView = (props) => {
875
749
  h("p", { class: classes.DescriptionText }, text.paymentMethodSubtext))),
876
750
  h("div", null,
877
751
  h("div", { class: classes.CheckboxContainer }, states.loading && formState.paymentMethodChecked === undefined ? (getLoadingSkeleton(undefined)) : (h("div", { class: classes.RadioContainer },
878
- states.hasPayPal && (h("sl-radio", { class: classes.Checkbox, exportparts: "label: input-label, base: input-base", checked: formState.paymentMethodChecked === "toBankAccount", onInput: () => callbacks.setPaymentMethodChecked("toBankAccount"), disabled: states.disabled, id: "toBankAccount", name: "/toBankAccount" }, text.directlyToBankAccount)),
752
+ states.hasPayPal && (h("sl-radio", { class: classes.Checkbox, exportparts: "base: radio-base", checked: formState.paymentMethodChecked === "toBankAccount", onInput: () => callbacks.setPaymentMethodChecked("toBankAccount"), disabled: states.disabled, id: "toBankAccount", name: "/toBankAccount" }, text.directlyToBankAccount)),
879
753
  formState.paymentMethodChecked === "toBankAccount" && (h("div", { class: classes.InputContainer, style: states.hideBanking ? { display: "none" } : {} }, states.loading
880
754
  ? getLoadingSkeleton("toBankAccount", slots.formInputsSlot.length + 3)
881
755
  : [
@@ -883,7 +757,7 @@ const BankingInfoFormView = (props) => {
883
757
  slots.paymentMethodSlot,
884
758
  slots.formInputsSlot,
885
759
  ])),
886
- states.hasPayPal && (h("sl-radio", { class: classes.Checkbox, exportparts: "label: input-label, base: input-base", checked: formState.paymentMethodChecked === "toPayPalAccount", onInput: () => callbacks.setPaymentMethodChecked("toPayPalAccount"), disabled: states.disabled, id: "toPayPalAccount", name: "/toPayPalAccount" }, intl.formatMessage({
760
+ states.hasPayPal && (h("sl-radio", { class: classes.Checkbox, exportparts: "base: radio-base", checked: formState.paymentMethodChecked === "toPayPalAccount", onInput: () => callbacks.setPaymentMethodChecked("toPayPalAccount"), disabled: states.disabled, id: "toPayPalAccount", name: "/toPayPalAccount" }, intl.formatMessage({
887
761
  id: "paypal-input-label",
888
762
  defaultMessage: text.toPayPalAccount,
889
763
  }, { feeCap: states.feeCap }))),
@@ -892,17 +766,19 @@ const BankingInfoFormView = (props) => {
892
766
  : slots.paypalInputSlot)),
893
767
  h("div", { style: { paddingTop: "24px", paddingBottom: "12px" } },
894
768
  h("h4", null, text.paymentSchedule)),
895
- h("sl-radio", { class: classes.Checkbox, exportparts: "label: input-label, base: input-base", checked: formState.paymentScheduleChecked === "BALANCE_THRESHOLD", onInput: () => callbacks.setPaymentScheduleChecked("BALANCE_THRESHOLD"), disabled: states.disabled, id: "paymentSchedulingType", name: "/paymentSchedulingType", value: "BALANCE_THRESHOLD" }, text.paymentScheduleBalanceThreshold),
769
+ h("sl-radio", { class: classes.Checkbox, exportparts: "base: radio-base", checked: formState.paymentScheduleChecked === "BALANCE_THRESHOLD", onInput: () => callbacks.setPaymentScheduleChecked("BALANCE_THRESHOLD"), disabled: states.disabled, id: "paymentSchedulingType", name: "/paymentSchedulingType", value: "BALANCE_THRESHOLD" }, text.paymentScheduleBalanceThreshold),
896
770
  formState.paymentScheduleChecked === "BALANCE_THRESHOLD" && (h("div", { class: classes.InputContainer, style: states.hideBalanceThreshold ? { display: "none" } : {} }, states.loading
897
771
  ? getLoadingSkeleton("toPayPalAccount")
898
772
  : slots.paymentThresholdSelectSlot)),
899
- h("sl-radio", { class: classes.Checkbox, exportparts: "label: input-label, base: input-base", checked: formState.paymentScheduleChecked === "FIXED_DAY", onInput: () => callbacks.setPaymentScheduleChecked("FIXED_DAY"), disabled: states.disabled, id: "paymentSchedulingType", name: "/paymentSchedulingType", value: "FIXED_DAY" }, text.paymentScheduleFixedDay),
773
+ h("sl-radio", { class: classes.Checkbox, exportparts: "base: radio-base", checked: formState.paymentScheduleChecked === "FIXED_DAY", onInput: () => callbacks.setPaymentScheduleChecked("FIXED_DAY"), disabled: states.disabled, id: "paymentSchedulingType", name: "/paymentSchedulingType", value: "FIXED_DAY" }, text.paymentScheduleFixedDay),
900
774
  formState.paymentScheduleChecked === "FIXED_DAY" && (h("div", { class: classes.InputContainer, style: states.hideFixedDay ? { display: "none" } : {} }, states.loading
901
775
  ? getLoadingSkeleton("toPayPalAccount")
902
776
  : slots.paymentFixedDaySelectSlot))))),
903
777
  h("div", { class: classes.BtnContainer },
904
- h("sl-button", { type: "primary", disabled: states.disabled || states.saveDisabled, loading: states.saveLoading, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton),
905
- !states.hideBackButton && (h("sl-button", { exportparts: "base: secondarybutton-base", type: "text", onClick: callbacks.onBack }, text.backButton))))));
778
+ h("sl-button", Object.assign({ type: "primary", disabled: states.disabled || states.saveDisabled, loading: states.saveLoading }, (states.hideSteps
779
+ ? { onClick: callbacks.onModalOpen }
780
+ : { submit: "submit" }), { exportparts: "base: primarybutton-base" }), text.continueButton),
781
+ !states.hideBackButton && (h("sl-button", { exportparts: "base: secondarybutton-base", type: "secondary", onClick: callbacks.onBack }, text.backButton))))));
906
782
  };
907
783
 
908
784
  // Hardcoded in Impact backend
@@ -1004,6 +880,7 @@ function useBankingInfoForm(props) {
1004
880
  const [paymentScheduleChecked, setPaymentScheduleChecked] = useState(undefined);
1005
881
  const [countrySearch, setCountrySearch] = useState("");
1006
882
  const [filteredCountries, setFilteredCountries] = useState(countries || []);
883
+ const [showModal, setShowModal] = useState(false);
1007
884
  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) || "";
1008
885
  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);
1009
886
  const feeCap = paypalFeeMap[currency] || "";
@@ -1175,10 +1052,12 @@ function useBankingInfoForm(props) {
1175
1052
  });
1176
1053
  setErrors({ inputErrors: validationErrors });
1177
1054
  if (Object.keys(validationErrors).length) {
1055
+ setShowModal(false);
1178
1056
  return;
1179
1057
  }
1180
1058
  let token = undefined;
1181
1059
  if (isPartner) {
1060
+ setShowModal(false);
1182
1061
  setShowVerification(true);
1183
1062
  token = await new Promise((res) => {
1184
1063
  const cb = (e) => {
@@ -1191,6 +1070,7 @@ function useBankingInfoForm(props) {
1191
1070
  setShowVerification(false);
1192
1071
  }
1193
1072
  await runMutation(formData, token);
1073
+ setShowModal(false);
1194
1074
  };
1195
1075
  const onVerification = async (token) => {
1196
1076
  host.dispatchEvent(new CustomEvent(VERIFICATION_EVENT_KEY, {
@@ -1224,6 +1104,8 @@ function useBankingInfoForm(props) {
1224
1104
  setCountrySearch,
1225
1105
  onVerification,
1226
1106
  onVerificationHide: () => onVerification(null),
1107
+ onModalClose: () => setShowModal(false),
1108
+ onModalOpen: () => setShowModal(true),
1227
1109
  },
1228
1110
  states: {
1229
1111
  showVerification,
@@ -1257,6 +1139,7 @@ function useBankingInfoForm(props) {
1257
1139
  bankCountry: formState.bankCountry,
1258
1140
  countrySearch,
1259
1141
  email: (_j = userData === null || userData === void 0 ? void 0 : userData.user) === null || _j === void 0 ? void 0 : _j.email,
1142
+ showModal,
1260
1143
  },
1261
1144
  refs: {
1262
1145
  formRef,
@@ -1341,7 +1224,11 @@ const BankingInfoForm = class {
1341
1224
  /**
1342
1225
  * @uiName Beneficiary account field label
1343
1226
  */
1344
- this.beneficiaryAccountNameLabel = "Beneficiary account name";
1227
+ this.beneficiaryAccountNameLabel = "Account holder name";
1228
+ /**
1229
+ * @uiName Beneficiary account field description
1230
+ */
1231
+ this.beneficiaryAccountNameDescription = "The beneficiary name of your bank account. Ensure this matches the name on your tax form.";
1345
1232
  /**
1346
1233
  * @uiName Bank account type field label
1347
1234
  */
@@ -1520,6 +1407,18 @@ const BankingInfoForm = class {
1520
1407
  * @uiWidget textArea
1521
1408
  */
1522
1409
  this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact Support.";
1410
+ /**
1411
+ * @uiName Information modal title
1412
+ */
1413
+ this.modalTitle = "Important Note";
1414
+ /**
1415
+ * @uiName Information modal description text
1416
+ */
1417
+ this.modalDescription = "Updating payment information places your account and payouts on hold for up to 48 hours while we verify your change. Payments scheduled during the hold period are skipped.";
1418
+ /**
1419
+ * @uiName Information modal button text
1420
+ */
1421
+ this.modalButtonText = "I understand, update my information";
1523
1422
  h$1(this);
1524
1423
  }
1525
1424
  disconnectedCallback() { }
@@ -1611,7 +1510,15 @@ const BankingInfoForm = class {
1611
1510
  }, {
1612
1511
  email: props.states.email,
1613
1512
  });
1614
- return (h(Host, null, h("style", { type: "text/css" }, styleString), props.states.isPartner && props.states.showVerification ? (h("sl-dialog", { class: sheet.classes.Dialog, open: true, "onSl-hide": props.callbacks.onVerificationHide, label: props.text.verifyEmailHeaderText }, h("sqm-code-verification", { verifyCodeHeaderText: verifyDescription, reverifyCodeHeaderText: verifyDescription, onVerification: props.callbacks.onVerification }))) : null, h(BankingInfoFormView, { callbacks: props.callbacks, text: props.text, states: props.states, refs: props.refs, slots: {
1513
+ const vanillaStyle = `
1514
+ sl-menu-item::part(base) {
1515
+ color: var(--sqm-input-color);
1516
+ }
1517
+ sl-menu-item::part(base):hover {
1518
+ background-color: var(--sqm-input-border-color-hover);
1519
+ }
1520
+ `;
1521
+ return (h(Host, null, h("style", { type: "text/css" }, styleString), h("style", { type: "text/css" }, vanillaStyle), props.states.isPartner && props.states.showVerification ? (h("sl-dialog", { class: sheet.classes.Dialog, open: true, "onSl-hide": props.callbacks.onVerificationHide, label: props.text.verifyEmailHeaderText }, h("sqm-code-verification", { verifyCodeHeaderText: verifyDescription, reverifyCodeHeaderText: verifyDescription, onVerification: props.callbacks.onVerification }))) : null, h(BankingInfoFormView, { callbacks: props.callbacks, text: props.text, states: props.states, refs: props.refs, slots: {
1615
1522
  formInputsSlot: inputFields === null || inputFields === void 0 ? void 0 : inputFields.map(({ input }) => input),
1616
1523
  countryInputSlot: (h("sl-select", Object.assign({ label: props.text.bankLocationLabel, disabled: props.states.saveLoading, required: true, name: "/bankCountry", id: "bankCountry", value: props.states.formState.bankCountry || "", "onSl-select": (e) => { var _a, _b; return props.callbacks.setBankCountry((_b = (_a = e.detail) === null || _a === void 0 ? void 0 : _a.item) === null || _b === void 0 ? void 0 : _b.value); } }, (((_a = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _a === void 0 ? void 0 : _a.bankCountry) && {
1617
1524
  class: "error-input",
@@ -1733,6 +1640,7 @@ function useDemoBankingInfoForm(props) {
1733
1640
  currency,
1734
1641
  setCurrency,
1735
1642
  hasPayPal: true,
1643
+ showModal: false,
1736
1644
  },
1737
1645
  callbacks: {
1738
1646
  onVerificationHide: () => { },
@@ -1745,6 +1653,8 @@ function useDemoBankingInfoForm(props) {
1745
1653
  setCountrySearch: () => { },
1746
1654
  onBack: async () => setStep("/dashboard"),
1747
1655
  onVerification: () => { },
1656
+ onModalOpen: () => { },
1657
+ onModalClose: () => { },
1748
1658
  },
1749
1659
  text: props.getTextProps(),
1750
1660
  refs: {
@@ -1753,331 +1663,6 @@ function useDemoBankingInfoForm(props) {
1753
1663
  }, props.demoData || {}, { arrayMerge: (_, a) => a });
1754
1664
  }
1755
1665
 
1756
- const style$1 = {
1757
- Wrapper: {
1758
- display: "flex",
1759
- flexDirection: "column",
1760
- gap: "var(--sl-spacing-medium)",
1761
- maxWidth: "550px",
1762
- },
1763
- HeaderContainer: {
1764
- display: "flex",
1765
- flexDirection: "column",
1766
- },
1767
- InputsContainer: {
1768
- display: "flex",
1769
- gap: "var(--sl-spacing-medium)",
1770
- position: "relative",
1771
- flexDirection: "column",
1772
- },
1773
- CodeInputContainer: {
1774
- display: "flex",
1775
- gap: "var(--sl-spacing-medium)",
1776
- },
1777
- CodeInput: {
1778
- maxWidth: "40px",
1779
- "&::part(input)": {
1780
- margin: "0",
1781
- padding: "0 var(--sl-input-spacing-small)",
1782
- fontSize: "var(--sl-font-size-large)",
1783
- },
1784
- },
1785
- CodeInputError: {
1786
- ...ErrorStyles,
1787
- maxWidth: "40px",
1788
- "&::part(input)": {
1789
- margin: "0",
1790
- padding: "0 var(--sl-input-spacing-small)",
1791
- fontSize: "var(--sl-font-size-large)",
1792
- },
1793
- },
1794
- ErrorText: {
1795
- color: "var(--sl-color-danger-500)",
1796
- fontSize: "var(--sl-font-size-small)",
1797
- margin: "0",
1798
- },
1799
- ContinueButton: {
1800
- width: "100%",
1801
- maxWidth: "100px",
1802
- },
1803
- FooterContainer: {
1804
- display: "flex",
1805
- flexDirection: "column",
1806
- },
1807
- SkeletonOne: {
1808
- width: "50%",
1809
- height: "16px",
1810
- },
1811
- SkeletonTwo: {
1812
- width: "30%",
1813
- height: "34px",
1814
- },
1815
- SkeletonThree: {
1816
- width: "15%",
1817
- height: "24px",
1818
- },
1819
- };
1820
- const vanillaStyle$1 = `
1821
- :host {
1822
- display: block;
1823
- }
1824
- :host([hidden]): {
1825
- display: none;
1826
- }
1827
-
1828
-
1829
- `;
1830
- const sheet$1 = createStyleSheet(style$1);
1831
- const styleString$1 = sheet$1.toString();
1832
- function WidgetCodeVerificationView(props) {
1833
- const { states, refs, callbacks, text } = props;
1834
- const resendCodeText = intl.formatMessage({
1835
- id: "resendCodeText",
1836
- defaultMessage: text.resendCodeText,
1837
- }, {
1838
- resendCodeLink: (h("a", { href: "", style: { textDecoration: "none" }, onClick: (e) => {
1839
- e.preventDefault();
1840
- callbacks.resendEmail();
1841
- } }, text.resendCodeLabel)),
1842
- });
1843
- const codeResentSuccessfully = intl.formatMessage({
1844
- id: "codeResentSuccessfully",
1845
- defaultMessage: text.codeResentSuccessfullyText,
1846
- }, {
1847
- email: states.email,
1848
- });
1849
- const inputClass = states.verifyFailed
1850
- ? sheet$1.classes.CodeInputError
1851
- : sheet$1.classes.CodeInput;
1852
- return (h("div", { part: "sqm-base" },
1853
- h("style", { type: "text/css" },
1854
- vanillaStyle$1,
1855
- styleString$1),
1856
- h("div", { class: sheet$1.classes.Wrapper },
1857
- h("div", { class: sheet$1.classes.HeaderContainer },
1858
- h(TextSpanView, { type: "p" }, intl.formatMessage({
1859
- id: `emailHeaderText`,
1860
- defaultMessage: states.verifyFailed
1861
- ? text.reverifyCodeHeaderText
1862
- : text.verifyCodeHeaderText,
1863
- }, { email: states.email }))),
1864
- states.emailResent && (h("sqm-form-message", { type: "success", exportparts: "successalert-icon" },
1865
- h("b", null, codeResentSuccessfully))),
1866
- h("div", { class: sheet$1.classes.InputsContainer },
1867
- h("div", { ref: refs.codeWrapperRef, class: sheet$1.classes.CodeInputContainer },
1868
- h("sl-input", { class: inputClass, name: "code" }),
1869
- h("sl-input", { class: inputClass, name: "code" }),
1870
- h("sl-input", { class: inputClass, name: "code" }),
1871
- h("sl-input", { class: inputClass, name: "code" }),
1872
- h("sl-input", { class: inputClass, name: "code" }),
1873
- h("sl-input", { class: inputClass, name: "code" })),
1874
- states.verifyFailed && (h("p", { class: sheet$1.classes.ErrorText }, text.invalidCodeText)),
1875
- 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)),
1876
- h("div", { class: sheet$1.classes.FooterContainer },
1877
- h(TextSpanView, { type: "p" }, resendCodeText)))));
1878
- }
1879
-
1880
- const VerifyEmailWithCodeMutation = dist.gql `
1881
- mutation submitImpactPublisherEmail2FACode(
1882
- $user: UserIdInput!
1883
- $code: String!
1884
- ) {
1885
- submitImpactPublisherEmail2FACode(user: $user, code: $code) {
1886
- verifiedEmail
1887
- accessKey
1888
- }
1889
- }
1890
- `;
1891
- function useWidgetCodeVerification(props) {
1892
- const host = l();
1893
- const [_, setShowCode] = Pn(SHOW_CODE_NAMESPACE);
1894
- const email = Fn(VERIFICATION_EMAIL_NAMESPACE);
1895
- const [emailSent, setEmailSent] = useState(false);
1896
- const [emailResent, setEmailResent] = useState(false);
1897
- const [codeRef, setCodeRef] = useState(null);
1898
- const [validationError, setValidationError] = useState(false);
1899
- const [emailError, setEmailError] = useState(false);
1900
- const { initialized, verificationEmail, send: [sendEmail, { loading: sendLoading, errors: sendErrors }], verify: [verifyEmail, { loading: verifyLoading, errors: verifyErrors }], } = useVerificationEmail();
1901
- useEffect(() => {
1902
- if (!codeRef)
1903
- return;
1904
- const slInputs = codeRef.querySelectorAll("sl-input");
1905
- const codeElements = Array.from(slInputs).map((node) => node.shadowRoot.querySelector(`input[name="code"]`));
1906
- codeElements.forEach((element, idx) => {
1907
- element.addEventListener("focus", (e) => {
1908
- e.target.select();
1909
- });
1910
- element.addEventListener("keydown", (e) => {
1911
- if (e.key === "Backspace" && e.target.value === "") {
1912
- codeElements[Math.max(0, idx - 1)].focus();
1913
- }
1914
- });
1915
- element.addEventListener("input", (e) => {
1916
- const input = e.data;
1917
- if (!input)
1918
- return;
1919
- if (idx === codeElements.length - 1) {
1920
- e.target.value = input.slice(0, 1);
1921
- return;
1922
- }
1923
- if (input.length > 1) {
1924
- const rest = input.slice(1);
1925
- e.target.value = input.slice(0, 1);
1926
- codeElements[idx + 1].dispatchEvent(new InputEvent("input", {
1927
- inputType: "insertFromPaste",
1928
- data: rest,
1929
- }));
1930
- }
1931
- codeElements[idx + 1].focus();
1932
- });
1933
- });
1934
- }, [codeRef]);
1935
- const reset = () => {
1936
- setShowCode(false);
1937
- setValidationError(false);
1938
- };
1939
- const resendEmail = async () => {
1940
- // UI should only allow this to be called if initialized, but checking just in case
1941
- if (!initialized)
1942
- return;
1943
- const result = await sendEmail();
1944
- if (!result) {
1945
- setEmailError(true);
1946
- return;
1947
- }
1948
- if (emailSent)
1949
- setEmailResent(true);
1950
- setEmailSent(true);
1951
- };
1952
- const submitCode = async () => {
1953
- const slInputs = codeRef.querySelectorAll("sl-input");
1954
- const codeElements = Array.from(slInputs).map((node) => node.shadowRoot.querySelector(`input[name="code"]`));
1955
- if (codeElements.find((el) => !el.value)) {
1956
- setValidationError(true);
1957
- return;
1958
- }
1959
- let code = "";
1960
- codeElements.forEach((element) => {
1961
- code = `${code}${element.value}`;
1962
- });
1963
- // UI should only allow this to be called if initialized, but checking just in case
1964
- if (!initialized)
1965
- return;
1966
- setValidationError(false);
1967
- const res = await verifyEmail(code);
1968
- if (res === null || res === void 0 ? void 0 : res.success) {
1969
- props.onVerification(res.accessKey);
1970
- reset();
1971
- }
1972
- else {
1973
- setValidationError(true);
1974
- }
1975
- };
1976
- useEffect(() => {
1977
- // Wait for mutations to be determined from user lookup
1978
- if (!initialized)
1979
- return;
1980
- // email should already exist if user has completed email-verification
1981
- if (!email)
1982
- resendEmail();
1983
- else
1984
- setEmailSent(true);
1985
- }, [initialized]);
1986
- return {
1987
- refs: {
1988
- codeWrapperRef: setCodeRef,
1989
- },
1990
- states: {
1991
- email: verificationEmail,
1992
- emailResent,
1993
- resendError: sendErrors || verifyErrors,
1994
- initialiseLoading: !initialized,
1995
- loading: sendLoading || verifyLoading,
1996
- verifyFailed: !!validationError,
1997
- },
1998
- callbacks: {
1999
- resendEmail,
2000
- submitCode,
2001
- },
2002
- text: props.getTextProps(),
2003
- };
2004
- }
2005
-
2006
- const WidgetCodeVerification = class {
2007
- constructor(hostRef) {
2008
- registerInstance(this, hostRef);
2009
- /**
2010
- * @uiName Verify code widget header text
2011
- */
2012
- this.verifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
2013
- /**
2014
- * @uiName Reverify code widget header text
2015
- */
2016
- this.reverifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
2017
- /**
2018
- * Text displayed under verify button
2019
- * @uiName Resend code text
2020
- */
2021
- this.resendCodeText = "Didn't receive your code? {resendCodeLink}";
2022
- /**
2023
- * The link that appears in the resend code link
2024
- * @uiName Resend code label
2025
- */
2026
- this.resendCodeLabel = "Resend code";
2027
- /**
2028
- * Link text displayed under verify button
2029
- * @uiName Resend code text
2030
- */
2031
- this.codeResentSuccessfullyText = "Another code has been sent to {email}";
2032
- /**
2033
- * Error text displayed under verification input
2034
- * @uiName Invalid code text
2035
- */
2036
- this.invalidCodeText = "Please check your code and try again. If you’re still having trouble, try resending your code.";
2037
- /**
2038
- * @uiName Verify code button text
2039
- */
2040
- this.verifyText = "Verify";
2041
- /**
2042
- * Displayed when the email verification fails due to a network error. The participant can try refreshing the page.
2043
- * @uiName Network error message
2044
- */
2045
- this.networkErrorMessage = "An error occurred while verifying your email. Please refresh the page and try again.";
2046
- h$1(this);
2047
- }
2048
- disconnectedCallback() { }
2049
- getTextProps() {
2050
- return getProps(this);
2051
- }
2052
- render() {
2053
- const props = isDemo()
2054
- ? useDemoWidgetCodeVerification(this)
2055
- : useWidgetCodeVerification(this);
2056
- return h(WidgetCodeVerificationView, Object.assign({}, props));
2057
- }
2058
- };
2059
- function useDemoWidgetCodeVerification(props) {
2060
- const [emailResent, setEmailResent] = useState(false);
2061
- const setVerifiedContext = En(VERIFICATION_PARENT_NAMESPACE);
2062
- return cjs({
2063
- states: {
2064
- loading: false,
2065
- email: "test@example.com",
2066
- emailResent,
2067
- resendError: false,
2068
- verifyFailed: false,
2069
- },
2070
- refs: {
2071
- codeWrapperRef: () => { },
2072
- },
2073
- callbacks: {
2074
- resendEmail: async () => setEmailResent(true),
2075
- submitCode: async () => setVerifiedContext(true),
2076
- },
2077
- text: props.getTextProps(),
2078
- }, props.demoData || {}, { arrayMerge: (_, a) => a });
2079
- }
2080
-
2081
1666
  const GET_TAX_DOCUMENT = dist.gql `
2082
1667
  mutation createImpactPublisherTaxDocument(
2083
1668
  $vars: CreateImpactPublisherTaxDocumentInput!
@@ -2117,6 +1702,7 @@ function useDocusignForm(props) {
2117
1702
  const [errors, setErrors] = useState({});
2118
1703
  const [loading, setLoading] = useState(false);
2119
1704
  const [showExitButton, setShowExitButton] = useState(false);
1705
+ const [showModal, setShowModal] = useState(true);
2120
1706
  // Only look at current document if it's valid (same as required type)
2121
1707
  const existingDocumentType = validTaxDocument(publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType) && (publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument)
2122
1708
  ? publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType : undefined;
@@ -2212,6 +1798,7 @@ function useDocusignForm(props) {
2212
1798
  documentType: actualDocumentType,
2213
1799
  documentTypeString: taxTypeToName(actualDocumentType),
2214
1800
  showExitButton,
1801
+ showModal,
2215
1802
  },
2216
1803
  data: {
2217
1804
  taxForm: actualDocumentType,
@@ -2222,6 +1809,8 @@ function useDocusignForm(props) {
2222
1809
  completeDocument,
2223
1810
  onExit: progressStep,
2224
1811
  setParticipantType,
1812
+ onModalClose: () => setShowModal(false),
1813
+ onModalOpen: () => setShowModal(true),
2225
1814
  },
2226
1815
  text: props.getTextProps(),
2227
1816
  };
@@ -2235,7 +1824,7 @@ function getDocumentType(p) {
2235
1824
  return undefined;
2236
1825
  }
2237
1826
 
2238
- const style$2 = {
1827
+ const style$1 = {
2239
1828
  DocusignStatusContainer: {
2240
1829
  width: "100%",
2241
1830
  minHeight: "600px",
@@ -2247,7 +1836,7 @@ const style$2 = {
2247
1836
  gap: "10px",
2248
1837
  margin: "auto",
2249
1838
  textAlign: "center",
2250
- border: "1px solid var(--sl-color-gray-200)",
1839
+ border: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
2251
1840
  justifyContent: "center",
2252
1841
  },
2253
1842
  MessageContainer: {
@@ -2262,47 +1851,47 @@ const style$2 = {
2262
1851
  },
2263
1852
  },
2264
1853
  };
2265
- const sheet$2 = createStyleSheet(style$2);
2266
- const styleString$2 = sheet$2.toString();
1854
+ const sheet$1 = createStyleSheet(style$1);
1855
+ const styleString$1 = sheet$1.toString();
2267
1856
  const DocusignExpiredView = (props) => {
2268
- const { classes } = sheet$2;
1857
+ const { classes } = sheet$1;
2269
1858
  const { text } = props;
2270
1859
  return (h("div", null,
2271
- h("style", { type: "text/css" }, styleString$2),
1860
+ h("style", { type: "text/css" }, styleString$1),
2272
1861
  h("div", { class: classes.DocusignStatusContainer },
2273
1862
  h("sl-icon", { style: {
2274
1863
  width: "50px",
2275
1864
  height: "50px",
2276
- color: "var(--sl-color-neutral-500)",
1865
+ color: "var(--sqm-text)",
2277
1866
  }, name: "clock" }),
2278
1867
  h("div", { class: classes.MessageContainer },
2279
1868
  h("p", { style: { margin: "0" } }, text.docusignExpired)),
2280
1869
  h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
2281
1870
  };
2282
1871
  const DocusignErrorView = (props) => {
2283
- const { classes } = sheet$2;
1872
+ const { classes } = sheet$1;
2284
1873
  const { text } = props;
2285
1874
  return (h("div", null,
2286
- h("style", { type: "text/css" }, styleString$2),
1875
+ h("style", { type: "text/css" }, styleString$1),
2287
1876
  h("div", { class: classes.DocusignStatusContainer },
2288
1877
  h("sl-icon", { style: {
2289
1878
  width: "50px",
2290
1879
  height: "50px",
2291
- color: "var(--sl-color-gray-500)",
1880
+ color: "var(--sqm-text)",
2292
1881
  }, name: "exclamation-octagon" }),
2293
1882
  h("div", { class: classes.MessageContainer },
2294
1883
  h("p", { style: { margin: "0" } }, text.docusignError)),
2295
1884
  h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
2296
1885
  };
2297
1886
  const DocusignLoadingView = () => {
2298
- const { classes } = sheet$2;
1887
+ const { classes } = sheet$1;
2299
1888
  return (h("div", null,
2300
- h("style", { type: "text/css" }, styleString$2),
1889
+ h("style", { type: "text/css" }, styleString$1),
2301
1890
  h("div", { class: classes.DocusignStatusContainer },
2302
1891
  h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } }))));
2303
1892
  };
2304
1893
  const DocusignIframe = ({ states, data, callbacks, text, }) => {
2305
- const { classes } = sheet$2;
1894
+ const { classes } = sheet$1;
2306
1895
  const [iFrameHeight, setiFrameHeight] = useState("100%");
2307
1896
  const allowedDomains = [
2308
1897
  "referralsaasquatch.com",
@@ -2335,12 +1924,17 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
2335
1924
  return h(DocusignExpiredView, { text: text });
2336
1925
  // Wrap iFrame with container that shares the same height to push other elements down when absolute positioned
2337
1926
  return (h("div", { style: { height: iFrameHeight } },
2338
- h("style", { type: "text/css" }, styleString$2),
1927
+ h("style", { type: "text/css" }, styleString$1),
2339
1928
  h("div", { class: classes.IFrameContainer },
2340
1929
  h("iframe", { scrolling: "yes", frameBorder: "0", width: "100%", src: data.documentUrl, height: iFrameHeight }))));
2341
1930
  };
2342
1931
 
2343
- const style$3 = {
1932
+ const style$2 = {
1933
+ ModalTitleContainer: {
1934
+ display: "flex",
1935
+ gap: "var(--sl-spacing-small)",
1936
+ alignItems: "center",
1937
+ },
2344
1938
  FormWrapper: {
2345
1939
  display: "flex",
2346
1940
  justifyContent: "flex-start",
@@ -2372,7 +1966,7 @@ const style$3 = {
2372
1966
  gap: "8px",
2373
1967
  },
2374
1968
  ErrorText: {
2375
- color: "var(--sl-color-danger-500)",
1969
+ color: "var(--sqm-danger-color-icon)",
2376
1970
  marginTop: "10px",
2377
1971
  },
2378
1972
  DescriptionText: {
@@ -2381,35 +1975,6 @@ const style$3 = {
2381
1975
  BoldText: {
2382
1976
  fontWeight: "bold",
2383
1977
  },
2384
- ErrorAlertContainer: {
2385
- "&::part(base)": {
2386
- backgroundColor: "var(--sl-color-red-100)",
2387
- borderTop: "none",
2388
- padding: "0 16px",
2389
- },
2390
- "& sl-icon::part(base)": {
2391
- color: "var(--sl-color-danger-500)",
2392
- },
2393
- },
2394
- InfoAlert: {
2395
- "&::part(base)": {
2396
- backgroundColor: "transparent",
2397
- borderTop: "none",
2398
- padding: "0px",
2399
- marginBottom: "16px",
2400
- border: "none",
2401
- },
2402
- "&::part(message)": {
2403
- display: "flex",
2404
- alignItems: "center",
2405
- justifyContent: "flex-start",
2406
- padding: "10px",
2407
- height: "max-content",
2408
- },
2409
- "& sl-icon::part(base)": {
2410
- color: "var(--sl-color-sky-500)",
2411
- },
2412
- },
2413
1978
  Container: {
2414
1979
  width: "100%",
2415
1980
  display: "flex",
@@ -2417,16 +1982,6 @@ const style$3 = {
2417
1982
  flexDirection: "column",
2418
1983
  gap: "16px",
2419
1984
  },
2420
- Link: {
2421
- color: "var(--sl-color-sky-500)",
2422
- textDecoration: "none",
2423
- "&:visited": {
2424
- color: "var(--sl-color-sky-500)",
2425
- },
2426
- "&:hover": {
2427
- textDecoration: "underline",
2428
- },
2429
- },
2430
1985
  CheckboxWrapper: {
2431
1986
  display: "flex",
2432
1987
  justifyContent: "flex-start",
@@ -2440,36 +1995,72 @@ const style$3 = {
2440
1995
  fontSize: "var(--sl-font-size-small)",
2441
1996
  },
2442
1997
  PageDescriptionText: {
2443
- color: "var(--sl-color-neutral-500)",
1998
+ color: "var(--sqm-text-subdued)",
2444
1999
  fontSize: "var(--sl-font-size-medium)",
2445
2000
  },
2001
+ Dialog: {
2002
+ "&::part(panel)": {
2003
+ maxWidth: "420px",
2004
+ },
2005
+ "&::part(title)": {
2006
+ fontSize: "var(--sl-font-size-large)",
2007
+ fontWeight: "600",
2008
+ },
2009
+ "&::part(body)": {
2010
+ padding: "0 var(--sl-spacing-x-large) 0 var(--sl-spacing-x-large)",
2011
+ fontSize: "var(--sl-font-size-small)",
2012
+ },
2013
+ "&::part(footer)": {
2014
+ display: "flex",
2015
+ flexDirection: "column",
2016
+ gap: "var(--sl-spacing-small)",
2017
+ marginBottom: "var(--sl-spacing-xx-small)",
2018
+ alignItems: "center",
2019
+ flex: "1",
2020
+ },
2021
+ },
2022
+ DialogButton: { margin: "auto", width: "100%" },
2446
2023
  };
2447
- const sheet$3 = createStyleSheet(style$3);
2448
- const styleString$3 = sheet$3.toString();
2449
- const vanillaStyle$2 = `
2450
- :host{
2451
- display: block;
2452
- }
2453
- * {
2454
- margin: 0;
2455
- padding: 0;
2456
- box-sizing: border-box;
2457
- }
2024
+ const sheet$2 = createStyleSheet(style$2);
2025
+ const styleString$2 = sheet$2.toString();
2026
+ const vanillaStyle$1 = `
2027
+ :host{
2028
+ display: block;
2029
+ }
2458
2030
 
2459
- a {
2460
- cursor: pointer;
2461
- }
2031
+ * {
2032
+ margin: 0;
2033
+ padding: 0;
2034
+ box-sizing: border-box;
2035
+ }
2036
+
2037
+ a {
2038
+ color: inherit;
2039
+ text-decoration: underline;
2040
+ cursor: pointer;
2041
+ }
2462
2042
 
2463
2043
 
2464
2044
  `;
2465
2045
  const DocusignFormView = (props) => {
2466
2046
  var _a;
2467
2047
  const { states, states: { formState, documentTypeString }, callbacks, text, slots, } = props;
2468
- const { classes } = sheet$3;
2048
+ const { classes } = sheet$2;
2469
2049
  return (h("div", { class: classes.Container },
2470
2050
  h("style", { type: "text/css" },
2471
- styleString$3,
2472
- vanillaStyle$2),
2051
+ styleString$2,
2052
+ vanillaStyle$1),
2053
+ h("sl-dialog", { class: sheet$2.classes.Dialog, open: states.showModal, "onSl-hide": callbacks.onModalClose },
2054
+ h("div", { class: classes.ModalTitleContainer, slot: "label" },
2055
+ h("sl-icon", { name: "info-circle", style: { color: "var(--sqm-informative-color-icon)" } }),
2056
+ h("h2", { style: { fontSize: "var(--sl-font-size-large)" } }, text.modalTitle)),
2057
+ h("p", null, intl.formatMessage({
2058
+ id: "modalText",
2059
+ defaultMessage: text.modalDescription,
2060
+ }, {
2061
+ br: h("br", null),
2062
+ })),
2063
+ h("sl-button", { slot: "footer", type: "primary", class: sheet$2.classes.DialogButton, onClick: callbacks.onModalClose, exportparts: "base: primarybutton-base" }, text.modalButtonText)),
2473
2064
  h("div", { class: classes.TextContainer },
2474
2065
  h("div", null,
2475
2066
  !states.hideSteps && (h("p", null, intl.formatMessage({
@@ -2479,20 +2070,16 @@ const DocusignFormView = (props) => {
2479
2070
  h("h3", null, text.taxForm),
2480
2071
  h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
2481
2072
  states.loadingError && (h("div", null,
2482
- h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$3.classes.ErrorAlertContainer },
2483
- h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
2484
- h("strong", null, text.error.loadingErrorAlertHeader),
2485
- h("br", null),
2073
+ h("sqm-form-message", { type: "error" },
2074
+ h("p", { part: "alert-title" }, text.error.loadingErrorAlertHeader),
2486
2075
  intl.formatMessage({
2487
2076
  id: "loadingErrorAlertDescription",
2488
2077
  defaultMessage: text.error.loadingErrorAlertDescription,
2489
2078
  }, {
2490
2079
  supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
2491
2080
  })))),
2492
- ((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$3.classes.ErrorAlertContainer },
2493
- h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
2494
- h("strong", null, text.error.generalTitle),
2495
- h("br", null),
2081
+ ((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sqm-form-message", { type: "error" },
2082
+ h("p", { part: "alert-title" }, text.error.generalTitle),
2496
2083
  intl.formatMessage({
2497
2084
  id: "generalDescription",
2498
2085
  defaultMessage: text.error.generalDescription,
@@ -2623,6 +2210,18 @@ const DocusignForm = class {
2623
2210
  * @uiName Exit button text
2624
2211
  */
2625
2212
  this.exitButton = "Exit";
2213
+ /**
2214
+ * @uiName Information modal title
2215
+ */
2216
+ this.modalTitle = "Important Note";
2217
+ /**
2218
+ * @uiName Information modal description text
2219
+ */
2220
+ this.modalDescription = "Remember the name you enter in your tax form. It must exactly match the bank account holder name configured in the next step. {br}{br}Otherwise you will have to resubmit your form again and there will be delays receiving your payout.";
2221
+ /**
2222
+ * @uiName Information modal button text
2223
+ */
2224
+ this.modalButtonText = "I understand";
2626
2225
  h$1(this);
2627
2226
  }
2628
2227
  disconnectedCallback() { }
@@ -2664,7 +2263,7 @@ function useDocusignFormDemo(props) {
2664
2263
  return cjs({
2665
2264
  text: props.getTextProps(),
2666
2265
  states: {
2667
- step: "4",
2266
+ step: "3",
2668
2267
  disabled: false,
2669
2268
  submitDisabled: false,
2670
2269
  loading: false,
@@ -2677,6 +2276,7 @@ function useDocusignFormDemo(props) {
2677
2276
  errors: {},
2678
2277
  },
2679
2278
  documentType: "W9",
2279
+ showModal: false,
2680
2280
  },
2681
2281
  data: {
2682
2282
  taxForm: "W9",
@@ -2687,6 +2287,8 @@ function useDocusignFormDemo(props) {
2687
2287
  demo: {
2688
2288
  onSubmit: () => setStep("/4"),
2689
2289
  onBack: () => setStep("/3"),
2290
+ onModalOpen: () => { },
2291
+ onModalClose: () => { },
2690
2292
  },
2691
2293
  setParticipantType: (p) => console.log({ p }),
2692
2294
  setDocusignStatus: (status) => console.log(status),
@@ -2697,7 +2299,7 @@ const DemoDocusignIframe = ({ callbacks }) => {
2697
2299
  return (h("div", { style: {
2698
2300
  width: "100%",
2699
2301
  height: "600px",
2700
- background: "#fafafa",
2302
+ background: "inherit",
2701
2303
  display: "flex",
2702
2304
  justifyContent: "center",
2703
2305
  alignItems: "center",
@@ -2709,7 +2311,7 @@ const DemoDocusignIframe = ({ callbacks }) => {
2709
2311
  } }, h("span", null, "Placeholder for docusign iframe"), h("div", { style: { display: "flex", gap: "8px" } }, h("sl-button", { type: "primary", submit: true, exportparts: "base: primarybutton-base", onClick: callbacks.demo.onBack }, "Back to Step 2"), h("sl-button", { type: "primary", submit: true, exportparts: "base: primarybutton-base", onClick: callbacks.demo.onSubmit }, "Continue to Step 4")))));
2710
2312
  };
2711
2313
 
2712
- const style$4 = {
2314
+ const style$3 = {
2713
2315
  FormWrapper: {
2714
2316
  display: "flex",
2715
2317
  justifyContent: "flex-start",
@@ -2721,6 +2323,7 @@ const style$4 = {
2721
2323
  justifyContent: "flex-start",
2722
2324
  flexDirection: "column",
2723
2325
  gap: "var(--sl-spacing-medium)",
2326
+ marginBottom: "16px",
2724
2327
  "& sl-radio::part(base)": {
2725
2328
  alignItems: "start",
2726
2329
  },
@@ -2736,6 +2339,7 @@ const style$4 = {
2736
2339
  flexDirection: "column",
2737
2340
  gap: "var(--sl-spacing-xx-small)",
2738
2341
  fontSize: "var(--sl-font-size-small)",
2342
+ color: "var(--sqm-text)",
2739
2343
  },
2740
2344
  TitleContainer: {
2741
2345
  display: "flex",
@@ -2757,65 +2361,68 @@ const style$4 = {
2757
2361
  gap: "8px",
2758
2362
  },
2759
2363
  ErrorText: {
2760
- color: "var(--sl-color-danger-500)",
2364
+ color: "var(--sqm-danger-color-text)",
2761
2365
  marginTop: "10px",
2762
2366
  },
2763
2367
  DescriptionText: {
2764
- color: "var(--sl-color-neutral-500)",
2368
+ color: "var(--sqm-text-subdued)",
2765
2369
  },
2766
- AlertContainer: {
2767
- "&::part(base)": {
2768
- backgroundColor: "var(--sl-color-red-100)",
2769
- borderTop: "none",
2770
- padding: "0 16px",
2771
- },
2772
- "& sl-icon::part(base)": {
2773
- color: "var(--sl-color-danger-500)",
2774
- },
2370
+ InfoWarningIcon: {
2371
+ height: "26px",
2372
+ width: "26px",
2373
+ },
2374
+ PageDescriptionText: {
2375
+ color: "var(--sqm-text-subdued)",
2376
+ fontSize: "var(--sl-font-size-medium)",
2377
+ marginBottom: "var(--sl-spacing-small)",
2775
2378
  },
2776
- PartnerAlertContainer: {
2379
+ PrimaryButton: {
2777
2380
  "&::part(base)": {
2778
- backgroundColor: "var(--sl-color-sky-100)",
2779
- borderTop: "none",
2780
- padding: "0 16px",
2381
+ background: "var(--sqm-primary-button-background)",
2382
+ color: "var(--sqm-primary-button-color)",
2383
+ borderColor: "var(--sqm-primary-button-color-border)",
2384
+ borderRadius: "var(--sqm-primary-button-radius)",
2781
2385
  },
2782
- "& sl-icon::part(base)": {
2783
- color: "var(--sl-color-blue-500)",
2386
+ "&::part(base):hover": {
2387
+ backgroundColor: "var(--sqm-primary-button-background-hover)",
2388
+ borderColor: "var(--sqm-primary-button-border-color-hover)",
2389
+ color: "var(--sqm-primary-button-color-hover)",
2784
2390
  },
2785
2391
  },
2786
- InfoAlert: {
2787
- marginTop: "var(--sl-spacing-large)",
2392
+ SecondaryButton: {
2788
2393
  "&::part(base)": {
2789
- backgroundColor: "transparent",
2790
- borderTop: "none",
2791
- padding: "0px",
2792
- border: "none",
2793
- },
2794
- "&::part(message)": {
2795
- alignItems: "center",
2796
- padding: "var(--sl-spacing-small)",
2797
- whiteSpace: "nowrap",
2394
+ background: "var(--sqm-secondary-button-background)",
2395
+ color: "var(--sqm-secondary-button-color)",
2396
+ borderColor: "var(--sqm-secondary-button-color-border)",
2397
+ borderRadius: "var(--sqm-secondary-button-radius)",
2398
+ width: "max-content",
2399
+ display: "flex",
2400
+ margin: "auto",
2798
2401
  },
2799
- "& sl-icon::part(base)": {
2800
- color: "var(--sl-color-yellow-500)",
2402
+ "&::part(base):hover": {
2403
+ backgroundColor: "var(--sqm-secondary-button-background-hover)",
2404
+ color: "var(--sqm-secondary-button-color-hover)",
2405
+ borderColor: "var(--sqm-secondary-button-border-color-hover)",
2801
2406
  },
2802
2407
  },
2803
- InfoWarningIcon: {
2804
- height: "26px",
2805
- width: "26px",
2806
- },
2807
- PageDescriptionText: {
2808
- color: "var(--sl-color-neutral-500)",
2809
- fontSize: "var(--sl-font-size-medium)",
2810
- marginBottom: "var(--sl-spacing-small)",
2811
- },
2812
2408
  };
2813
- const sheet$4 = createStyleSheet(style$4);
2814
- const styleString$4 = sheet$4.toString();
2815
- const vanillaStyle$3 = `
2409
+ const sheet$3 = createStyleSheet(style$3);
2410
+ const styleString$3 = sheet$3.toString();
2411
+ const vanillaStyle$2 = `
2816
2412
  :host{
2817
2413
  display: block;
2818
2414
  }
2415
+
2416
+ hr {
2417
+ border: var(--sqm-border-thickness, 1px) solid var(--sqm-border-color);
2418
+ }
2419
+
2420
+ a {
2421
+ color: inherit;
2422
+ text-decoration: underline;
2423
+ cursor: pointer;
2424
+ }
2425
+
2819
2426
  * {
2820
2427
  margin: 0;
2821
2428
  padding: 0;
@@ -2826,11 +2433,11 @@ const vanillaStyle$3 = `
2826
2433
  const IndirectTaxFormView = (props) => {
2827
2434
  var _a;
2828
2435
  const { states, states: { formState }, callbacks, text, refs, slots, } = props;
2829
- const { classes } = sheet$4;
2436
+ const { classes } = sheet$3;
2830
2437
  return (h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
2831
2438
  h("style", { type: "text/css" },
2832
- styleString$4,
2833
- vanillaStyle$3),
2439
+ styleString$3,
2440
+ vanillaStyle$2),
2834
2441
  h("div", { class: classes.TextContainer },
2835
2442
  h("div", null,
2836
2443
  !states.hideSteps && (h("p", null,
@@ -2843,30 +2450,24 @@ const IndirectTaxFormView = (props) => {
2843
2450
  h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription),
2844
2451
  h("p", { class: classes.DescriptionText }, text.indirectTaxDescription)),
2845
2452
  states.loadingError && (h("div", null,
2846
- h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.AlertContainer },
2847
- h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
2848
- h("strong", null, text.error.loadingErrorAlertHeader),
2849
- h("br", null),
2453
+ h("sqm-form-message", { type: "error" },
2454
+ h("p", { part: "alert-title" }, text.error.loadingErrorAlertHeader),
2850
2455
  intl.formatMessage({
2851
2456
  id: "loadingErrorAlertDescription",
2852
2457
  defaultMessage: text.error.loadingErrorAlertDescription,
2853
2458
  }, {
2854
2459
  supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
2855
2460
  })))),
2856
- ((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$4.classes.AlertContainer },
2857
- h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
2858
- h("strong", null, text.error.generalTitle),
2859
- h("br", null),
2461
+ ((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sqm-form-message", { type: "error" },
2462
+ h("p", { part: "alert-title" }, text.error.generalTitle),
2860
2463
  intl.formatMessage({
2861
2464
  id: "generalDescription",
2862
2465
  defaultMessage: text.error.generalDescription,
2863
2466
  }, {
2864
2467
  supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
2865
2468
  }))),
2866
- states.isPartner && (h("sl-alert", { type: "primary", open: true, class: sheet$4.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
2867
- h("sl-icon", { slot: "icon", name: "info-circle" }),
2868
- h("strong", null, text.isPartnerAlertHeader),
2869
- h("br", null),
2469
+ states.isPartner && (h("sqm-form-message", { type: "info" },
2470
+ h("p", { part: "alert-title" }, text.isPartnerAlertHeader),
2870
2471
  intl.formatMessage({
2871
2472
  id: "isPartnerAlertDescription",
2872
2473
  defaultMessage: text.isPartnerAlertDescription,
@@ -2887,17 +2488,15 @@ const IndirectTaxFormView = (props) => {
2887
2488
  text.otherRegion,
2888
2489
  h("p", { class: classes.DescriptionText }, text.otherRegionSubtext))),
2889
2490
  slots.registeredInDifferentCountryDetailsSlot)),
2890
- h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "primary", open: true, class: classes.InfoAlert },
2891
- h("sl-icon", { class: classes.InfoWarningIcon, slot: "icon", name: "exclamation-triangle" }),
2892
- intl.formatMessage({
2893
- id: "cannotChangeInfoAlert",
2894
- defaultMessage: text.cannotChangeInfoAlert,
2895
- }, {
2896
- supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
2897
- })),
2491
+ h("sqm-form-message", { type: "info" }, intl.formatMessage({
2492
+ id: "cannotChangeInfoAlert",
2493
+ defaultMessage: text.cannotChangeInfoAlert,
2494
+ }, {
2495
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
2496
+ })),
2898
2497
  h("div", { class: classes.BtnContainer },
2899
- h("sl-button", { type: "primary", disabled: states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton),
2900
- h("sl-button", { type: "text", disabled: states.disabled, onClick: callbacks.onBack, exportparts: "base: secondarybutton-base" }, text.backButton))))));
2498
+ h("sl-button", { class: classes.PrimaryButton, type: "primary", disabled: states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton),
2499
+ h("sl-button", { class: classes.SecondaryButton, type: "text", disabled: states.disabled, onClick: callbacks.onBack, exportparts: "base: secondarybutton-base" }, text.backButton))))));
2901
2500
  };
2902
2501
 
2903
2502
  const CONNECT_PARTNER = dist.gql `
@@ -3342,7 +2941,7 @@ const IndirectTaxForm = class {
3342
2941
  };
3343
2942
  function useDemoIndirectTaxForm(props) {
3344
2943
  const setStep = En(TAX_CONTEXT_NAMESPACE);
3345
- const [option, setOption] = useState(null);
2944
+ const [option, setOption] = useState("otherRegion");
3346
2945
  const [demoFormState, setDemoFormState] = useState({});
3347
2946
  return cjs({
3348
2947
  states: {
@@ -3423,6 +3022,26 @@ function useDemoIndirectTaxForm(props) {
3423
3022
  }, props.demoData || {}, { arrayMerge: (_, a) => a });
3424
3023
  }
3425
3024
 
3025
+ const mockInvoiceData = (count = 4) => {
3026
+ const data = [...Array(count)].map(() => getMockData());
3027
+ return { data };
3028
+ };
3029
+ const getMockData = () => {
3030
+ const today = luxon.DateTime.now();
3031
+ const invoiceId = Math.random().toString(36).slice(2, 12);
3032
+ const earnings = Math.floor(Math.random() * 100) + 1;
3033
+ const indirectTax = Math.round(earnings * 0.2);
3034
+ return {
3035
+ downloadUrl: "https://example.com",
3036
+ dateCreated: today.toMillis(),
3037
+ invoiceId,
3038
+ program: "my-program",
3039
+ earnings: `$${earnings}.00`,
3040
+ indirectTax: `$${indirectTax}.00`,
3041
+ netEarnings: `$${earnings - indirectTax}.00`,
3042
+ };
3043
+ };
3044
+
3426
3045
  const debug = browser("sq:useInvoiceTable");
3427
3046
  const CSS_NAMESPACE = "sqm-invoice-table";
3428
3047
  const GET_INVOICES = dist.gql `
@@ -3571,26 +3190,6 @@ async function tryMethod(c, callback) {
3571
3190
  }
3572
3191
  }
3573
3192
 
3574
- const mockInvoiceData = (count = 4) => {
3575
- const data = [...Array(count)].map(() => getMockData());
3576
- return { data };
3577
- };
3578
- const getMockData = () => {
3579
- const today = luxon.DateTime.now();
3580
- const invoiceId = Math.random().toString(36).slice(2, 12);
3581
- const earnings = Math.floor(Math.random() * 100) + 1;
3582
- const indirectTax = Math.round(earnings * 0.2);
3583
- return {
3584
- downloadUrl: "https://example.com",
3585
- dateCreated: today.toMillis(),
3586
- invoiceId,
3587
- program: "my-program",
3588
- earnings: `$${earnings}.00`,
3589
- indirectTax: `$${indirectTax}.00`,
3590
- netEarnings: `$${earnings - indirectTax}.00`,
3591
- };
3592
- };
3593
-
3594
3193
  const InvoiceTable = class {
3595
3194
  constructor(hostRef) {
3596
3195
  registerInstance(this, hostRef);
@@ -3736,18 +3335,6 @@ function useInvoiceTableDemo(props, emptyElement, loadingElement) {
3736
3335
  return demoProps;
3737
3336
  }
3738
3337
 
3739
- const InvoiceTableDataCell = class {
3740
- constructor(hostRef) {
3741
- registerInstance(this, hostRef);
3742
- this.ignored = true;
3743
- h$1(this);
3744
- }
3745
- disconnectedCallback() { }
3746
- render() {
3747
- return this.data;
3748
- }
3749
- };
3750
-
3751
3338
  const InvoiceTableDataColumn = class {
3752
3339
  constructor(hostRef) {
3753
3340
  registerInstance(this, hostRef);
@@ -3766,23 +3353,6 @@ const InvoiceTableDataColumn = class {
3766
3353
  }
3767
3354
  };
3768
3355
 
3769
- const RewardTableDateCell = class {
3770
- constructor(hostRef) {
3771
- registerInstance(this, hostRef);
3772
- this.ignored = true;
3773
- this.locale = "en";
3774
- h$1(this);
3775
- }
3776
- disconnectedCallback() { }
3777
- render() {
3778
- var _a, _b;
3779
- const date = !this.date
3780
- ? "-"
3781
- : (_b = (_a = luxon.DateTime.fromMillis(this.date)) === null || _a === void 0 ? void 0 : _a.setLocale(luxonLocale(this.locale))) === null || _b === void 0 ? void 0 : _b.toLocaleString(luxon.DateTime.DATE_MED);
3782
- return date;
3783
- }
3784
- };
3785
-
3786
3356
  const InvoiceTableDateColumn = class {
3787
3357
  constructor(hostRef) {
3788
3358
  registerInstance(this, hostRef);
@@ -3801,21 +3371,6 @@ const InvoiceTableDateColumn = class {
3801
3371
  }
3802
3372
  };
3803
3373
 
3804
- const InvoiceTableDownloadCell = class {
3805
- constructor(hostRef) {
3806
- registerInstance(this, hostRef);
3807
- this.ignored = true;
3808
- h$1(this);
3809
- }
3810
- disconnectedCallback() { }
3811
- render() {
3812
- const vanillaStyle = `svg:hover, svg:hover * {
3813
- cursor: pointer;
3814
- }`;
3815
- return (h(Host, null, h("style", null, vanillaStyle), !!this.downloadUrl && (h("a", { href: this.downloadUrl, target: "_blank" }, h("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, 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" }), 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" }))))));
3816
- }
3817
- };
3818
-
3819
3374
  const InvoiceTableGenericColumn = class {
3820
3375
  constructor(hostRef) {
3821
3376
  registerInstance(this, hostRef);
@@ -3838,17 +3393,17 @@ const PayPalIcon = () => (h("svg", { xmlns: "http://www.w3.org/2000/svg", width:
3838
3393
  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" }),
3839
3394
  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" })));
3840
3395
 
3841
- const style$5 = {
3396
+ const style$4 = {
3842
3397
  CardContainer: {
3843
3398
  display: "grid",
3844
3399
  gridTemplateColumns: "1fr",
3845
3400
  gridGap: "var(--sl-spacing-large)",
3846
- background: "var(--sl-color-neutral-0)",
3401
+ background: "inherit",
3847
3402
  boxShadow: "0px 2px 4px rgba(28, 28, 33, 0.12)",
3848
- borderRadius: "4px",
3403
+ borderRadius: "var(--sqm-border-radius-normal)",
3849
3404
  padding: "var(--sl-spacing-large)",
3850
3405
  minHeight: "150px",
3851
- border: "1px solid var(--sl-color-gray-200)",
3406
+ border: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
3852
3407
  maxWidth: "450px",
3853
3408
  },
3854
3409
  StatusContainer: {
@@ -3858,7 +3413,7 @@ const style$5 = {
3858
3413
  },
3859
3414
  MainCurrencyLabel: {
3860
3415
  fontWeight: "var(--sl-font-weight-normal)",
3861
- color: "var(--sl-color-gray-500)",
3416
+ color: "var(--sqm-text-subdued)",
3862
3417
  },
3863
3418
  MainCurrency: {
3864
3419
  margin: 0,
@@ -3867,12 +3422,12 @@ const style$5 = {
3867
3422
  },
3868
3423
  SubduedRegularText: {
3869
3424
  fontSize: "var(--sl-font-size-small)",
3870
- color: "var(--sl-color-gray-500)",
3425
+ color: "var(--sqm-text-subdued)",
3871
3426
  margin: 0,
3872
3427
  width: "auto",
3873
3428
  },
3874
3429
  PaypalEmail: {
3875
- borderRight: "1px solid var(--sl-color-gray-200)",
3430
+ borderRight: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
3876
3431
  paddingRight: "var(--sl-spacing-small)",
3877
3432
  "@media (max-width: 499px)": {
3878
3433
  borderRight: "none",
@@ -3880,7 +3435,7 @@ const style$5 = {
3880
3435
  },
3881
3436
  },
3882
3437
  PaypalDetailsContainer: {
3883
- color: "var(--sl-color-gray-500)",
3438
+ color: "var(--sqm-text-subdued)",
3884
3439
  display: "flex",
3885
3440
  gap: "var(--sl-spacing-small)",
3886
3441
  justifyContent: "flex-start",
@@ -3901,7 +3456,7 @@ const style$5 = {
3901
3456
  },
3902
3457
  },
3903
3458
  AccountDetailsContainer: {
3904
- color: "var(--sl-color-gray-500)",
3459
+ color: "var(--sqm-text-subdued)",
3905
3460
  display: "flex",
3906
3461
  gap: "var(--sl-spacing-small)",
3907
3462
  justifyContent: "flex-start",
@@ -3914,7 +3469,7 @@ const style$5 = {
3914
3469
  gap: "var(--sl-spacing-xx-small) var(--sl-spacing-small)",
3915
3470
  paddingTop: "var(--sq-spacing-xx-small)",
3916
3471
  "& > :not(:last-child)": {
3917
- borderRight: "1px solid var(--sl-color-gray-200)",
3472
+ borderRight: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
3918
3473
  },
3919
3474
  "& > :nth-child(3)": {
3920
3475
  border: "none",
@@ -3931,7 +3486,7 @@ const style$5 = {
3931
3486
  },
3932
3487
  W9Container: {
3933
3488
  paddingTop: "var(--sl-spacing-large)",
3934
- borderTop: "1px solid var(--sl-color-gray-200)",
3489
+ borderTop: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
3935
3490
  },
3936
3491
  SkeletonOne: {
3937
3492
  width: "25%",
@@ -3945,25 +3500,21 @@ const style$5 = {
3945
3500
  width: "50%",
3946
3501
  height: "34px",
3947
3502
  },
3948
- Alert: {
3503
+ SuccessBadge: {
3949
3504
  "&::part(base)": {
3950
- backgroundColor: "var(--sl-color-warning-100)",
3951
- border: "1px solid var(--sl-color-warning-200)",
3952
- padding: "0 16px",
3953
- },
3954
- "& sl-icon": {
3955
- margin: 0,
3956
- },
3957
- "& sl-icon::part(base)": {
3958
- color: "var(--sl-color-warning-500)",
3959
- margin: 0,
3505
+ textAlign: "center",
3506
+ whiteSpace: "pre-line",
3507
+ background: "var(--sqm-success-color-icon)",
3508
+ color: "var(--sl-color-white)",
3960
3509
  },
3961
3510
  },
3962
- AlertContent: {
3963
- display: "flex",
3964
- alignItems: "flex-start",
3965
- justifyContent: "flex-start",
3966
- flexDirection: "column",
3511
+ PrimaryBadge: {
3512
+ "&::part(base)": {
3513
+ textAlign: "center",
3514
+ whiteSpace: "pre-line",
3515
+ background: "var(--sqm-informative-color-icon)",
3516
+ color: "var(--sl-color-white)",
3517
+ },
3967
3518
  },
3968
3519
  Container: {
3969
3520
  display: "flex",
@@ -3972,7 +3523,7 @@ const style$5 = {
3972
3523
  },
3973
3524
  };
3974
3525
  function PayoutDetailsCardView(props) {
3975
- const sheet = createStyleSheet(style$5);
3526
+ const sheet = createStyleSheet(style$4);
3976
3527
  const styleString = sheet.toString();
3977
3528
  const { classes } = sheet;
3978
3529
  const { states, text } = props;
@@ -3986,13 +3537,14 @@ function PayoutDetailsCardView(props) {
3986
3537
  };
3987
3538
  const renderStatusBadge = (status, statusBadgeText) => {
3988
3539
  const badgeType = status === "nextPayout" ? "success" : "primary";
3540
+ const badgeClass = badgeType === "success" ? classes.SuccessBadge : classes.PrimaryBadge;
3989
3541
  const statusText = intl.formatMessage({
3990
3542
  id: "badgeText",
3991
3543
  defaultMessage: statusBadgeText,
3992
3544
  }, {
3993
3545
  badgeText: status,
3994
3546
  });
3995
- return (h("sl-badge", { pill: true, type: badgeType }, statusText));
3547
+ return (h("sl-badge", { pill: true, class: badgeClass }, statusText));
3996
3548
  };
3997
3549
  const thresholdText = intl.formatMessage({
3998
3550
  id: "thresholdText",
@@ -4040,1364 +3592,126 @@ function usePayoutDetailsCard(props) {
4040
3592
  return currentDay <= 15
4041
3593
  ? luxon.DateTime.now()
4042
3594
  .plus({ day: 15 - currentDay })
4043
- .toFormat("LLL dd, yyyy")
4044
- : luxon.DateTime.now()
4045
- .plus({ month: 1 })
4046
- .startOf("month")
4047
- .plus({ day: 14 })
4048
- .toFormat("LLL dd, yyyy");
4049
- }
4050
- else {
4051
- intl.formatMessage({
4052
- id: `nextPayoutBalance`,
4053
- defaultMessage: props.thresholdPayoutText,
4054
- }, {
4055
- thresholdBalance: (_a = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _a === void 0 ? void 0 : _a.paymentThreshold,
4056
- });
4057
- }
4058
- }
4059
- const paymentDay = getPayoutDetailedStatusText((_c = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _c === void 0 ? void 0 : _c.paymentDay);
4060
- const isPayoutToday = luxon.DateTime.now().toFormat("LLL dd, yyyy") === paymentDay;
4061
- return {
4062
- states: {
4063
- loading,
4064
- thresholdBalance: ((_d = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _d === void 0 ? void 0 : _d.paymentThreshold) ? `${publisher === null || publisher === void 0 ? void 0 : publisher.currency}${(_e = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _e === void 0 ? void 0 : _e.paymentThreshold}`
4065
- : undefined,
4066
- balance: (_f = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _f === void 0 ? void 0 : _f.balance,
4067
- badgeStatus: ((_g = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _g === void 0 ? void 0 : _g.paymentSchedulingType) !== "FIXED_DAY"
4068
- ? "thresholdPayout"
4069
- : isPayoutToday
4070
- ? "payoutToday"
4071
- : "nextPayout",
4072
- payoutType: (_h = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _h === void 0 ? void 0 : _h.paymentMethod,
4073
- error: (_j = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _j === void 0 ? void 0 : _j.hold,
4074
- paypalEmailAddress: (_k = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _k === void 0 ? void 0 : _k.paypalEmailAddress,
4075
- cardNumberPreview: (_l = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _l === void 0 ? void 0 : _l.bankAccountNumber,
4076
- nextPayoutDate: paymentDay,
4077
- },
4078
- text: props.getTextProps(),
4079
- };
4080
- }
4081
-
4082
- const PayoutDetailsCard = class {
4083
- constructor(hostRef) {
4084
- registerInstance(this, hostRef);
4085
- /**
4086
- * Badge text indicating payout status
4087
- * @uiName Payout badge status text
4088
- */
4089
- this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
4090
- /**
4091
- * Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
4092
- * @uiName Payout schedule by threshold text
4093
- */
4094
- this.thresholdPayoutText = "Next payout occurs when balance is {thresholdBalance}";
4095
- /**
4096
- * Shown before the participant’s bank account information.
4097
- * @uiName Bank account field label
4098
- */
4099
- this.accountText = "Account";
4100
- /**
4101
- * Text displayed for existing publishers that do not have saved banking information.
4102
- * @uiName Payout missing information subtext
4103
- */
4104
- this.payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
4105
- h$1(this);
4106
- }
4107
- disconnectedCallback() { }
4108
- getTextProps() {
4109
- const props = getProps(this);
4110
- return {
4111
- ...props,
4112
- };
4113
- }
4114
- render() {
4115
- const props = isDemo()
4116
- ? useDemoPayoutDetailsCard(this)
4117
- : usePayoutDetailsCard(this);
4118
- return (h(Host, null, h(PayoutDetailsCardView, { text: props.text, states: props.states })));
4119
- }
4120
- };
4121
- function useDemoPayoutDetailsCard(props) {
4122
- return cjs({
4123
- states: {
4124
- loading: false,
4125
- error: false,
4126
- thresholdBalance: "$50",
4127
- mainCurrency: { currencyText: "USD", amountText: "100.00" },
4128
- badgeStatus: "nextPayout",
4129
- payoutType: "BANK_TRANSFER",
4130
- nextPayoutDate: "March 14, 2024",
4131
- paypalEmailAddress: "joesmith@example.com",
4132
- otherCurrencies: false,
4133
- hasW9Pending: false,
4134
- hasDatePending: true,
4135
- cardNumberPreview: "XX2381",
4136
- balance: "20.00 USD",
4137
- },
4138
- text: props.getTextProps(),
4139
- }, props.demoData || {}, { arrayMerge: (_, a) => a });
4140
- }
4141
-
4142
- const TableCell = class {
4143
- constructor(hostRef) {
4144
- registerInstance(this, hostRef);
4145
- /** @uiName Column span */
4146
- this.colspan = 1;
4147
- /** @uiName Padding */
4148
- this.padding = "15px 10px";
4149
- }
4150
- render() {
4151
- return (h(Host, { style: { display: "contents" } }, h("td", { colSpan: this.colspan, style: { padding: this.padding } }, h("slot", null))));
4152
- }
4153
- };
4154
-
4155
- const TableRow = class {
4156
- constructor(hostRef) {
4157
- registerInstance(this, hostRef);
4158
- /**
4159
- * @uiName Border
4160
- */
4161
- this.border = "1px solid #EAEAEA";
4162
- }
4163
- render() {
4164
- return (h(Host, { style: { display: "contents" } }, h("tr", { style: { border: this.border } }, h("slot", null))));
4165
- }
4166
- };
4167
-
4168
- function getCurrentStep(user) {
4169
- var _a, _b;
4170
- if (!((_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.connected) || !((_b = user.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher)) {
4171
- return "/1";
4172
- }
4173
- const { requiredTaxDocumentType, currentTaxDocument, withdrawalSettings, brandedSignup, } = user.impactConnection.publisher;
4174
- // If they do have a required document, look at current document
4175
- if (requiredTaxDocumentType && !currentTaxDocument)
4176
- return "/3";
4177
- if (!withdrawalSettings && brandedSignup)
4178
- return "/4";
4179
- return "/dashboard";
4180
- }
4181
- function useTaxAndCash() {
4182
- var _a, _b, _c, _d, _e;
4183
- const host = _();
4184
- const user = J();
4185
- const locale = L();
4186
- // State for current step of form
4187
- const [step, setStep] = In({
4188
- namespace: TAX_CONTEXT_NAMESPACE,
4189
- initialValue: "/loading",
4190
- });
4191
- // State for when to hide steps, or override certain actions
4192
- const [context, _setContext] = In({
4193
- namespace: TAX_FORM_CONTEXT_NAMESPACE,
4194
- initialValue: {},
4195
- });
4196
- // State to carry user form information into step 2
4197
- const [userFormContext, _setUserFormContext] = In({
4198
- namespace: USER_FORM_CONTEXT_NAMESPACE,
4199
- initialValue: {
4200
- firstName: undefined,
4201
- lastName: undefined,
4202
- email: undefined,
4203
- countryCode: undefined,
4204
- currency: undefined,
4205
- },
4206
- });
4207
- const [_currenciesContext, setCurrenciesContext] = In({
4208
- namespace: CURRENCIES_NAMESPACE,
4209
- initialValue: [],
4210
- });
4211
- const [_countriesContext, _setCountriesContext] = In({
4212
- namespace: COUNTRIES_NAMESPACE,
4213
- initialValue: [],
4214
- });
4215
- const [_sortedCountriesContext, setSortedCountriesContext] = In({
4216
- namespace: SORTED_COUNTRIES_NAMESPACE,
4217
- initialValue: [],
4218
- });
4219
- const { data, errors } = Sn({
4220
- namespace: USER_QUERY_NAMESPACE,
4221
- query: GET_USER,
4222
- skip: !user,
4223
- options: {
4224
- batch: false,
4225
- },
4226
- });
4227
- 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) ||
4228
- userFormContext.countryCode;
4229
- Sn({
4230
- namespace: COUNTRIES_QUERY_NAMESPACE,
4231
- query: GET_COUNTRIES,
4232
- skip: !user,
4233
- });
4234
- const { data: financeNetworkData, refetch } = Sn({
4235
- namespace: FINANCE_NETWORK_SETTINGS_NAMESPACE,
4236
- query: GET_FINANCE_NETWORK_SETTINGS,
4237
- skip: !user,
4238
- variables: {
4239
- filter: getFinanceNetworkFilter(),
4240
- },
4241
- });
4242
- const { data: currenciesData } = Sn({
4243
- namespace: CURRENCIES_QUERY_NAMESPACE,
4244
- query: GET_CURRENCIES,
4245
- skip: !user,
4246
- variables: {
4247
- locale,
4248
- },
4249
- });
4250
- const supportedCurrencies = useMemo(() => {
4251
- var _a, _b;
4252
- // Filter out any currencies not supported by finance network settings
4253
- 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) => {
4254
- var _a, _b;
4255
- 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);
4256
- // Currency not in supported list
4257
- if (!currency)
4258
- return agg;
4259
- // Currency already added to list
4260
- if (agg.find((currency) => currency.currencyCode === settings.currency))
4261
- return agg;
4262
- // Currency not supported by selected country
4263
- if (userFormContext.countryCode &&
4264
- settings.countryCode !== countryCode)
4265
- return agg;
4266
- return [...agg, currency];
4267
- }, []);
4268
- return allValidCurrencies;
4269
- }, [financeNetworkData, countryCode]);
4270
- const intlLocale = (locale === null || locale === void 0 ? void 0 : locale.replace("_", "-")) || "en";
4271
- const sortByName = (a, b) => a.displayName < b.displayName ? -1 : 1;
4272
- const paymentOptions = (_d = financeNetworkData === null || financeNetworkData === void 0 ? void 0 : financeNetworkData.impactFinanceNetworkSettings) === null || _d === void 0 ? void 0 : _d.data;
4273
- // filter out any duplicate countries and null countryCode
4274
- const availableCountries = useMemo(() => new Set(paymentOptions === null || paymentOptions === void 0 ? void 0 : paymentOptions.map((option) => option.countryCode).filter((value) => value)), [paymentOptions]);
4275
- const _topCountries = ["CA", "GB", "US"];
4276
- const sortedCountries = useMemo(() => Array.from(availableCountries)
4277
- .map((countryCode) => getCountryObj({ countryCode, locale: intlLocale }))
4278
- .sort(sortByName)
4279
- .reduce((prev, countryObj) => {
4280
- if (_topCountries.includes(countryObj.countryCode))
4281
- return [countryObj, ...prev];
4282
- return [...prev, countryObj];
4283
- }, []), [availableCountries]);
4284
- useEffect(() => {
4285
- if (sortedCountries)
4286
- setSortedCountriesContext(sortedCountries);
4287
- }, [sortedCountries]);
4288
- useEffect(() => {
4289
- if (supportedCurrencies)
4290
- setCurrenciesContext(supportedCurrencies);
4291
- }, [supportedCurrencies]);
4292
- useEffect(() => {
4293
- if (errors) {
4294
- setStep("/error");
4295
- return;
4296
- }
4297
- if (!host || !user)
4298
- return;
4299
- if (data) {
4300
- const user = data === null || data === void 0 ? void 0 : data.user;
4301
- if (!user || step !== "/loading")
4302
- return;
4303
- const currentStep = getCurrentStep(user);
4304
- setStep(currentStep);
4305
- }
4306
- }, [host, user, (_e = data === null || data === void 0 ? void 0 : data.user) === null || _e === void 0 ? void 0 : _e.email, errors]);
4307
- function getFinanceNetworkFilter() {
4308
- var _a, _b, _c;
4309
- if (step === "/1")
4310
- return {};
4311
- if (step === "/4")
4312
- 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 };
4313
- if (countryCode)
4314
- return {
4315
- countryCode_eq: countryCode,
4316
- };
4317
- return {};
4318
- }
4319
- return {
4320
- step,
4321
- setStep,
4322
- context,
4323
- namespace: Mn(TAX_CONTEXT_NAMESPACE),
4324
- loading: step === "/loading",
4325
- };
4326
- }
4327
-
4328
- const TaxAndCashMonolith = class {
4329
- constructor(hostRef) {
4330
- registerInstance(this, hostRef);
4331
- /*---------------------------------------------------------------------------------
4332
- !IMPORTANT!: Make sure to also change the prop names in the respective component
4333
- -----------------------------------------------------------------------------------*/
4334
- /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4335
- STEP 1 PROPS:
4336
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
4337
- /**
4338
- * @uiName First name field label
4339
- * @uiGroup Step 1 Properties
4340
- */
4341
- this.step1_firstName = "First name";
4342
- /**
4343
- * @uiName Last name field label
4344
- * @uiGroup Step 1 Properties
4345
- */
4346
- this.step1_lastName = "Last name";
4347
- /**
4348
- * @uiName Email field label
4349
- * @uiGroup Step 1 Properties
4350
- */
4351
- this.step1_email = "Email";
4352
- /**
4353
- * @uiName Country field label
4354
- * @uiGroup Step 1 Properties
4355
- */
4356
- this.step1_country = "Country";
4357
- /**
4358
- * @uiName Phone number field label
4359
- * @uiGroup Step 1 Properties
4360
- */
4361
- this.step1_phoneNumber = "Phone number";
4362
- /**
4363
- * @uiName Address field label
4364
- * @uiGroup Step 1 Properties
4365
- */
4366
- this.step1_address = "Address";
4367
- /**
4368
- * @uiName City field label
4369
- * @uiGroup Step 1 Properties
4370
- */
4371
- this.step1_city = "City";
4372
- /**
4373
- * @uiName State field label for states
4374
- * @uiGroup Step 1 Properties
4375
- */
4376
- this.step1_state = "State";
4377
- /**
4378
- * @uiName State field label for provinces
4379
- * @uiGroup Step 1 Properties
4380
- */
4381
- this.step1_province = "Province";
4382
- /**
4383
- * @uiName State field label for regions
4384
- * @uiGroup Step 1 Properties
4385
- */
4386
- this.step1_region = "Region";
4387
- /**
4388
- * @uiName Postal code field label
4389
- * @uiGroup Step 1 Properties
4390
- */
4391
- this.step1_postalCode = "Postal code";
4392
- /**
4393
- * @uiName Currency field label
4394
- * @uiGroup Step 1 Properties
4395
- */
4396
- this.step1_currency = "Currency";
4397
- /**
4398
- * @uiName Currency field help text
4399
- * @uiGroup Step 1 Properties
4400
- */
4401
- this.step1_currencyHelpText = "Choose your preferred payout currency";
4402
- /**
4403
- * Edit the property called terms and conditions text to change what's displayed for {termsAndConditionsLink}.
4404
- * @uiName Terms and conditions checkbox
4405
- * @uiGroup Step 1 Properties
4406
- */
4407
- this.step1_allowBankingCollection = "I have read the {termsAndConditionsLink} and allow impact.com to collect my tax and banking information";
4408
- /**
4409
- * @uiName Step 1 title
4410
- * @uiGroup Step 1 Properties
4411
- */
4412
- this.step1_personalInformation = "Personal Information";
4413
- /**
4414
- * The link text that appears in the terms and conditions checkbox
4415
- * @uiName Terms and conditions text
4416
- * @uiGroup Step 1 Properties
4417
- * @uiWidget textArea
4418
- */
4419
- this.step1_termsAndConditionsLabel = "terms and conditions";
4420
- /**
4421
- * The link that appears in the terms and conditions checkbox
4422
- * @uiName Terms and conditions link
4423
- * @uiGroup Step 1 Properties
4424
- */
4425
- this.step1_termsAndConditionsLink = "https://terms.advocate.impact.com/PayoutTermsAndConditions.html";
4426
- /**
4427
- * Placeholder text displayed in the currency search dropdown
4428
- * @uiName Currency field placeholder text
4429
- * @uiGroup Step 1 Properties
4430
- */
4431
- this.step1_searchForCurrencyText = "Search for currency..";
4432
- /**
4433
-
4434
- /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4435
- STEP 2 PROPS:
4436
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
4437
- /**
4438
- * @uiName Step 2 title
4439
- * @uiGroup Step 2 Properties
4440
- */
4441
- this.step2_indirectTax = "Indirect Tax";
4442
- /**
4443
- * Displayed under the title of this step.
4444
- * @uiName Step 2 description
4445
- * @uiGroup Step 2 Properties
4446
- * @uiWidget textArea
4447
- */
4448
- 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.";
4449
- /**
4450
- * Displayed with indirect tax registration options.
4451
- * @uiName Indirect tax details section title
4452
- * @uiGroup Step 2 Properties
4453
- */
4454
- this.step2_indirectTaxDetails = "Indirect tax details";
4455
- /**
4456
- * @uiName Registered for indirect tax option
4457
- * @uiGroup Step 2 Properties
4458
- * @uiWidget textArea
4459
- *
4460
- */
4461
- this.step2_otherRegion = "Registered for indirect tax";
4462
- /**
4463
- * Selecting this option will display fields to enter indirect tax details.
4464
- * @uiName Registered for indirect tax option description
4465
- * @uiGroup Step 2 Properties
4466
- */
4467
- this.step2_otherRegionSubtext = "If you’ve registered with your tax authority, add your information to stay tax compliant.";
4468
- /**
4469
- * @uiName Not registered for indirect tax option
4470
- * @uiGroup Step 2 Properties
4471
- * @uiWidget textArea
4472
- */
4473
- this.step2_notRegistered = "Not registered for indirect tax";
4474
- /**
4475
- * Participants based in the US are considered not registered.
4476
- * @uiName Not registered for indirect tax option description
4477
- * @uiGroup Step 2 Properties
4478
- */
4479
- this.step2_notRegisteredSubtext = "If you’ve never set up indirect tax with your tax authority, then you’re likely not considered registered.";
4480
- /**
4481
- * @uiName Region of indirect tax field label
4482
- * @uiGroup Step 2 Properties
4483
- */
4484
- this.step2_selectedRegion = "Country / region of indirect tax";
4485
- /**
4486
- * @uiName Indirect tax number field label
4487
- * @uiGroup Step 2 Properties
4488
- */
4489
- this.step2_indirectTaxNumber = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}}";
4490
- /**
4491
- * @uiName Province field label
4492
- * @uiGroup Step 2 Properties
4493
- */
4494
- this.step2_province = "Province";
4495
- /**
4496
- * @uiName Missing indirect tax number error message
4497
- * @uiGroup Step 2 Properties
4498
- */
4499
- 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";
4500
- /**
4501
- * Displayed to participants registered for QST.
4502
- * @uiName QST number field label
4503
- * @uiGroup Step 2 Properties
4504
- */
4505
- this.step2_qstNumber = "QST number";
4506
- /**
4507
- * Displayed to participants registered for indirect tax in Quebec, Canada.
4508
- * @uiName QST tax checkbox
4509
- * @uiGroup Step 2 Properties
4510
- */
4511
- this.step2_isRegisteredQST = "I am registered for QST Tax";
4512
- /**
4513
- * Displayed to participants registered for indirect tax in Spain.
4514
- * @uiName Spain income tax checkbox
4515
- * @uiGroup Step 2 Properties
4516
- * @uiWidget textArea
4517
- */
4518
- 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.";
4519
- /**
4520
- * Displayed to participants registered in Spain.
4521
- * @uiName Sub-region of indirect tax field label
4522
- * @uiGroup Step 2 Properties
4523
- */
4524
- this.step2_subRegion = "Sub-region";
4525
- /**
4526
- * @uiName Income tax field label
4527
- * @uiGroup Step 2 Properties
4528
- */
4529
- this.step2_subRegionTaxNumberLabel = "Income Tax Number";
4530
- /**
4531
- * Communicate that after this step, only Support can change personal and indirect tax information.
4532
- * @uiName Submission confirmation alert
4533
- * @uiGroup Step 2 Properties
4534
- * @uiWidget textArea
4535
- */
4536
- 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.";
4537
- /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4538
- STEP 3 PROPS:
4539
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
4540
- /**
4541
- * @uiName Step 3 title
4542
- * @uiGroup Step 3 Properties
4543
- */
4544
- this.step3_taxForm = "Tax form";
4545
- /**
4546
- * Display the type of tax form that the participant must submit.
4547
- * @uiName Tax form name
4548
- * @uiGroup Step 3 Properties
4549
- */
4550
- this.step3_taxFormLabel = "{documentType} Tax Form";
4551
- /**
4552
- * @uiName Participant type field label
4553
- * @uiGroup Step 3 Properties
4554
- */
4555
- this.step3_participantType = "Participant type";
4556
- /**
4557
- * An option for the participant type field. Used to determine which W-8 form is required.
4558
- * @uiName Business representative participant type label
4559
- * @uiGroup Step 3 Properties
4560
- */
4561
- this.step3_businessEntity = "I represent a business";
4562
- /**
4563
- * An option for the participant type field. Used to determine which W-8 form is required.
4564
- * @uiName Individual participant type label
4565
- * @uiGroup Step 3 Properties
4566
- */
4567
- this.step3_individualParticipant = "I am an individual participant";
4568
- /**
4569
- * Displayed at the top of the page to participants based in the US.
4570
- * @uiName W-9 tax form description
4571
- * @uiGroup Step 3 Properties
4572
- * @uiWidget textArea
4573
- */
4574
- this.step3_taxFormDescription = "Participants based in the US need to submit a {documentType} form.";
4575
- /**
4576
- * Displayed at the top of the page to individuals joining a US program who reside outside the country.
4577
- * @uiName W-8 BEN tax form description
4578
- * @uiGroup Step 3 Properties
4579
- * @uiWidget textArea
4580
- */
4581
- this.step3_taxFormDescriptionIndividualParticipant = "Participants residing outside of the US, joining the referral program of a US-based company, need to submit a {documentType} form.";
4582
- /**
4583
- * Displayed at the top of the page to participants representing a business.
4584
- * @uiName W-8 BEN-E tax form description
4585
- * @uiGroup Step 3 Properties
4586
- * @uiWidget textArea
4587
- */
4588
- this.step3_taxFormDescriptionBusinessEntity = "Participants residing outside of the US who represent a business entity need to submit a {documentType} form.";
4589
- /**
4590
- * This appears inside the Docusign frame.
4591
- * @uiName Docusign session expired message
4592
- * @uiGroup Step 3 Properties
4593
- * @uiWidget textArea
4594
- */
4595
- 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.";
4596
- /**
4597
- * Remind participants their session will time out after 20 minutes of inactivity.
4598
- * @uiName Docusign timed session message
4599
- * @uiGroup Step 3 Properties
4600
- * @uiWidget textArea
4601
- */
4602
- this.step3_docusignSessionWarning = "For your security, we automatically end your session when you have not interacted with the form after 20 minutes.";
4603
- /**
4604
- * This appears inside the Docusign frame.
4605
- * @uiName Docusign form error message
4606
- * @uiGroup Step 3 Properties
4607
- * @uiWidget textArea
4608
- */
4609
- this.step3_docusignError = "There was a problem displaying this form. Please refresh the page. If this problem continues, contact our {supportLink}.";
4610
- /**
4611
- * @uiName Refresh page button label
4612
- * @uiGroup Step 3 Properties
4613
- */
4614
- this.step3_refreshButton = "Refresh Page";
4615
- /**
4616
- * @uiName Exit button text
4617
- * @uiGroup Step 3 Properties
4618
- */
4619
- this.step3_exitButton = "Exit";
4620
- /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4621
- STEP 4 PROPS:
4622
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
4623
- /**
4624
- * @uiName Step 4 title
4625
- * @uiGroup Step 4 Properties
4626
- */
4627
- this.step4_taxAndPayouts = "Payouts";
4628
- /**
4629
- * @uiName Direct to bank payout option
4630
- * @uiGroup Step 4 Properties
4631
- */
4632
- this.step4_directlyToBankAccount = "Directly to my bank account";
4633
- /**
4634
- * @uiName PayPal payout option
4635
- * @uiGroup Step 4 Properties
4636
- */
4637
- this.step4_toPayPalAccount = "PayPal (2% processing fee capped to {feeCap})";
4638
- /**
4639
- * @uiName Threshold balance payment schedule option
4640
- * @uiGroup Step 4 Properties
4641
- */
4642
- this.step4_paymentScheduleBalanceThreshold = "Pay me when my balance reaches a threshold";
4643
- /**
4644
- * @uiName Fixed day payment schedule option
4645
- * @uiGroup Step 4 Properties
4646
- */
4647
- this.step4_paymentScheduleFixedDay = "Pay me on a fixed day of the month";
4648
- /**
4649
- * Let the participant choose what day of the month they’ll get paid
4650
- * @uiName Payment day field label
4651
- * @uiGroup Step 4 Properties
4652
- */
4653
- this.step4_paymentDaySelectLabel = "Payment Day";
4654
- /**
4655
- * Participant use this field to select the balance at which they want to be paid
4656
- * @uiName Payment threshold field label
4657
- * @uiGroup Step 4 Properties
4658
- */
4659
- this.step4_paymentThresholdSelectLabel = "Payment threshold";
4660
- /**
4661
- * One of two payment day options
4662
- * @uiName First of month payday option
4663
- * @uiGroup Step 4 Properties
4664
- */
4665
- this.step4_paymentDayFirstOfMonthLabelText = "1st of the month";
4666
- /**
4667
- * One of two payment day options
4668
- * @uiName Fifteenth of month payday option
4669
- * @uiGroup Step 4 Properties
4670
- */
4671
- this.step4_paymentDayFifteenthOfMonthLabelText = "15th of the month";
4672
- /**
4673
- * @uiName Payment method section header
4674
- * @uiGroup Step 4 Properties
4675
- */
4676
- this.step4_paymentMethod = "Payment method";
4677
- /**
4678
- * @uiName Payment schedule section header
4679
- * @uiGroup Step 4 Properties
4680
- */
4681
- this.step4_paymentSchedule = "Payment schedule";
4682
- /**
4683
- * @uiName Payment method section description
4684
- * @uiGroup Step 4 Properties
4685
- */
4686
- this.step4_paymentMethodSubtext = "Payouts will be sent from our referral program provider, impact.com.";
4687
- /**
4688
- * Displayed to participants who choose PayPal as their payout method
4689
- * @uiName PayPal email field label
4690
- * @uiGroup Step 4 Properties
4691
- */
4692
- this.step4_payPalInputLabel = "PayPal email";
4693
- /**
4694
- * @uiName Bank country field label
4695
- * @uiGroup Step 4 Properties
4696
- */
4697
- this.step4_bankLocationLabel = "Bank country location";
4698
- /**
4699
- * @uiName Beneficiary account field label
4700
- * @uiGroup Step 4 Properties
4701
- */
4702
- this.step4_beneficiaryAccountNameLabel = "Beneficiary account name";
4703
- /**
4704
- * @uiName Bank account type field label
4705
- * @uiGroup Step 4 Properties
4706
- */
4707
- this.step4_bankAccountTypeLabel = "Bank account type";
4708
- /**
4709
- * @uiName Checking account option
4710
- * @uiGroup Step 4 Properties
4711
- */
4712
- this.step4_checkingSelectItemLabel = "Checking";
4713
- /**
4714
- * Label text for the savings account type select item
4715
- * @uiName Savings account options
4716
- * @uiGroup Step 4 Properties
4717
- */
4718
- this.step4_savingsSelectItemLabel = "Savings";
4719
- /**
4720
- * @uiName Bank account number field label
4721
- * @uiGroup Step 4 Properties
4722
- */
4723
- this.step4_bankAccountNumberLabel = "Bank account number";
4724
- /**
4725
- * @uiName IBAN field label
4726
- * @uiGroup Step 4 Properties
4727
- */
4728
- this.step4_ibanLabel = "IBAN";
4729
- /**
4730
- * @uiName SWIFT code field label
4731
- * @uiGroup Step 4 Properties
4732
- */
4733
- this.step4_swiftCodeLabel = "SWIFT code";
4734
- /**
4735
- * @uiName Routing code field label
4736
- * @uiGroup Step 4 Properties
4737
- */
4738
- 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} }";
4739
- /**
4740
- * @uiName Bank name field label
4741
- * @uiGroup Step 4 Properties
4742
- */
4743
- this.step4_bankNameLabel = "Bank name";
4744
- /**
4745
- * @uiName Classification entity field label
4746
- * @uiGroup Step 4 Properties
4747
- */
4748
- this.step4_classificationEntityLabel = "Classification entity";
4749
- /**
4750
- * One of three options listed for the classification field
4751
- * @uiName Business classification option
4752
- * @uiGroup Step 4 Properties
4753
- */
4754
- this.step4_businessSelectItemLabel = "Business";
4755
- /**
4756
- * One of three options listed for the classification field
4757
- * @uiName Individual classification option
4758
- * @uiGroup Step 4 Properties
4759
- */
4760
- this.step4_individualSelectItemLabel = "Individual";
4761
- /**
4762
- * One of three options listed for the classification field
4763
- * @uiName Foreign classification option
4764
- * @uiGroup Step 4 Properties
4765
- */
4766
- this.step4_foreignSelectItemLabel = "Foreign";
4767
- /**
4768
- * @uiName Classification CPF field label
4769
- * @uiGroup Step 4 Properties
4770
- */
4771
- this.step4_classificationCPFLabel = "Classification CPF";
4772
- /**
4773
- * @uiName Patronymic name field label
4774
- * @uiGroup Step 4 Properties
4775
- */
4776
- this.step4_patronymicNameLabel = "Patronymic name";
4777
- /**
4778
- * @uiName VO code field label
4779
- * @uiGroup Step 4 Properties
4780
- */
4781
- this.step4_voCodeLabel = "VO code";
4782
- /**
4783
- * @uiName Agency code field label
4784
- * @uiGroup Step 4 Properties
4785
- */
4786
- this.step4_agencyCodeLabel = "Agency code";
4787
- /**
4788
- * @uiName Branch code field label
4789
- * @uiGroup Step 4 Properties
4790
- */
4791
- this.step4_branchCodeLabel = "Branch code";
4792
- /**
4793
- * Label text for the classification input field
4794
- * @uiName Classification field label
4795
- * @uiGroup Step 4 Properties
4796
- */
4797
- this.step4_classificationLabel = "Classification";
4798
- /**
4799
- * @uiName Taxpayer ID field label
4800
- * @uiGroup Step 4 Properties
4801
- */
4802
- this.step4_taxPayerIdLabel = "Beneficiary INN";
4803
- /**
4804
- * @uiName Bank address field label
4805
- * @uiGroup Step 4 Properties
4806
- */
4807
- this.step4_bankAddressLabel = "Bank address";
4808
- /**
4809
- * @uiName Bank city field label
4810
- * @uiGroup Step 4 Properties
4811
- */
4812
- this.step4_bankCityLabel = "Bank city";
4813
- /**
4814
- * @uiName Bank province/state field label
4815
- * @uiGroup Step 4 Properties
4816
- */
4817
- this.step4_bankStateLabel = "Bank Province / State";
4818
- /**
4819
- * @uiName Bank postal code field label
4820
- * @uiGroup Step 4 Properties
4821
- */
4822
- this.step4_bankPostalCodeLabel = "Bank postal code";
4823
- /**
4824
- * Default payment method to the participants’ bank account.
4825
- * @uiName EFT withdrawal payment method
4826
- * @uiGroup Step 4 Properties
4827
- */
4828
- this.step4_eftWithdrawalLabel = "EFT Withdrawal (free)";
4829
- /**
4830
- * @uiName FX Wire Processing fee text
4831
- * @uiGroup Step 4 Properties
4832
- */
4833
- this.step4_fxWireProcessingFeeLabel = "FX Wire (Processing Fee {currency}{defaultFxFee}.00)";
4834
- /**
4835
- * @uiName Text for verify email dialog
4836
- * @uiGroup Step 4 Properties
4837
- */
4838
- this.step4_verifyEmailHeaderText = "Verify your email";
4839
- /**
4840
- * @uiName Verify code widget header text
4841
- * @uiGroup Step 4 Properties
4842
- */
4843
- this.step4_verifyEmailDescriptionText = "Verify your email to update your payment settings. Enter the code sent to {email} from our referral provider, impact.com.";
4844
- /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4845
- DASHBOARD PROPS:
4846
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
4847
- /**
4848
- * @uiName Active tax form badge label
4849
- * @uiGroup Dashboard Properties
4850
- */
4851
- this.dashboard_statusTextActive = "Active";
4852
- /**
4853
- * @uiName Invalid tax form badge label
4854
- * @uiGroup Dashboard Properties
4855
- */
4856
- this.dashboard_statusTextNotActive = "Invalid Tax Form";
4857
- /**
4858
- * Displayed when the participant submitted their form but it is awaiting review.
4859
- *
4860
- * @uiName Not verified tax form badge label
4861
- * @uiGroup Dashboard Properties
4862
- */
4863
- this.dashboard_statusTextNotVerified = "Not Verified";
4864
- /**
4865
- * Additional text displayed next to the tax form's status badge
4866
- *
4867
- * @uiName Active W-9 description
4868
- * @uiGroup Dashboard Properties
4869
- */
4870
- this.dashboard_badgeTextSubmittedOn = "Submitted on {dateSubmitted}.";
4871
- /**
4872
- * Additional text displayed next to the tax form's status badge.
4873
- *
4874
- * @uiName Active W-8 description
4875
- * @uiGroup Dashboard Properties
4876
- */
4877
- this.dashboard_badgeTextSubmittedOnW8 = "Submitted on {dateSubmitted}. Valid for three years after submission.";
4878
- /**
4879
- * Additional text displayed next to the tax form's status badge.
4880
- *
4881
- * @uiName Tax form in review description
4882
- * @uiGroup Dashboard Properties
4883
- */
4884
- this.dashboard_badgeTextAwaitingReview = "Awaiting review. Submitted on {dateSubmitted}.";
4885
- /**
4886
- * Part of the alert displayed at the top of the page.
4887
- *
4888
- * @uiName Inactive W-9 error message title
4889
- * @uiGroup Dashboard Properties
4890
- * @uiWidget textArea
4891
- */
4892
- this.dashboard_taxAlertHeaderNotActiveW9 = "Your W9 tax form has personal information that doesn’t match your profile";
4893
- /**
4894
- * Part of the alert displayed at the top of the page.
4895
- *
4896
- * @uiName Inactive W-8 error message title
4897
- * @uiGroup Dashboard Properties
4898
- * @uiWidget textArea
4899
- */
4900
- this.dashboard_taxAlertHeaderNotActiveW8 = "{documentType} tax form is invalid";
4901
- /**
4902
- * Part of the alert displayed at the top of the page.
4903
- *
4904
- * @uiName Inactive W-9 error message description
4905
- * @uiGroup Dashboard Properties
4906
- * @uiWidget textArea
4907
- */
4908
- this.dashboard_taxAlertNotActiveMessageW9 = "Please resubmit a new {documentType} form.";
4909
- /**
4910
- * Part of the alert displayed at the top of the page.
4911
- *
4912
- * @uiName Inactive W-8 error message description
4913
- * @uiGroup Dashboard Properties
4914
- */
4915
- 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.";
4916
- /**
4917
- * Additional text displayed next to the tax form's status badge.
4918
- *
4919
- * @uiName Invalid tax form description
4920
- * @uiGroup Dashboard Properties
4921
- * @uiWidget textArea
4922
- */
4923
- this.dashboard_invalidForm = "Make sure your information is correct and submit new form.";
4924
- /**
4925
- * @uiName Payout information section header
4926
- * @uiGroup Dashboard Properties
4927
- */
4928
- this.dashboard_bankingInformationSectionHeader = "Payout Information";
4929
- /**
4930
- * @uiName Tax document section header
4931
- * @uiGroup Dashboard Properties
4932
- */
4933
- this.dashboard_taxDocumentSectionHeader = "Tax documents";
4934
- /**
4935
- * Displayed under the tax document section header.
4936
- *
4937
- * @uiName Tax documents section description
4938
- * @uiGroup Dashboard Properties
4939
- */
4940
- this.dashboard_taxDocumentSectionSubHeader = "{documentType} tax form";
4941
- /**
4942
- * No other statuses or badges will be displayed in the tax form section in this case.
4943
- *
4944
- * @uiName Tax form not required text
4945
- * @uiGroup Dashboard Properties
4946
- * @uiWidget textArea
4947
- */
4948
- 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.";
4949
- /**
4950
- *
4951
- * @uiName Indirect tax section header
4952
- * @uiGroup Dashboard Properties
4953
- */
4954
- this.dashboard_indirectTaxInfoSectionHeader = "Indirect tax";
4955
- /**
4956
- * If the participant is registered for indirect tax in Canada, display the province they’re registered in.
4957
- *
4958
- * @uiName Canadian province of indirect tax
4959
- * @uiGroup Dashboard Properties
4960
- */
4961
- this.dashboard_indirectTaxInfoCanada = "Registered in {province}, {country}";
4962
- /**
4963
- * If the participant is registered for indirect tax, display the country they’re registered in.
4964
- *
4965
- * @uiName Indirect tax country
4966
- * @uiGroup Dashboard Properties
4967
- */
4968
- this.dashboard_indirectTaxInfoOtherCountry = "Registered in {country}";
4969
- /**
4970
- * If the participant is registered for indirect tax in Spain, display the region they’re registered in.
4971
- *
4972
- * @uiName Spanish region of indirect tax
4973
- * @uiGroup Dashboard Properties
4974
- */
4975
- this.dashboard_indirectTaxInfoSpain = "Registered in {country}, {subRegion}";
4976
- /**
4977
- * @uiName Indirect tax tooltip
4978
- * @uiGroup Dashboard Properties
4979
- * @uiWidget textArea
4980
- */
4981
- this.dashboard_indirectTaxTooltipSupport = "To make changes to your indirect tax information, please contact our {supportLink}.";
4982
- /**
4983
- * Displayed to participants who have submitted their indirect tax information.
4984
- *
4985
- * @uiName Indirect tax details
4986
- * @uiGroup Dashboard Properties
4987
- */
4988
- this.dashboard_indirectTaxDetails = "{indirectTaxType} number: {indirectTaxNumber}";
4989
- /**
4990
- * @uiName Submit new tax form button label
4991
- * @uiGroup Dashboard Properties
4992
- */
4993
- this.dashboard_newFormButton = "Submit new form";
4994
- /**
4995
- * @uiName Edit payment info button label
4996
- * @uiGroup Dashboard Properties
4997
- */
4998
- this.dashboard_editPaymentInformationButton = "Edit Payout Information";
4999
- /**
5000
- * @uiName Not registered for indirect tax text
5001
- * @uiGroup Dashboard Properties
5002
- * @uiWidget textArea
5003
- */
5004
- 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.";
5005
- /**
5006
- * Displayed to participants registered in Quebec, Canada.
5007
- * @uiName QST indirect tax details
5008
- * @uiGroup Dashboard Properties
5009
- */
5010
- this.dashboard_qstNumber = "QST number: {qstNumber}";
5011
- /**
5012
- * @uiName Spain sub-region indirect tax number
5013
- * @uiGroup Dashboard Properties
5014
- */
5015
- this.dashboard_subRegionTaxNumber = "Income tax number: {subRegionTaxNumber}";
5016
- /**
5017
- * @uiName Payout status badge
5018
- * @uiGroup Dashboard Properties
5019
- */
5020
- this.dashboard_statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
5021
- /**
5022
- * Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
5023
- * @uiName Payout schedule by threshold text
5024
- * @uiGroup Dashboard Properties
5025
- */
5026
- this.dashboard_thresholdPayoutText = "Next payout occurs when balance is {thresholdBalance}";
5027
- /**
5028
- * Shown before the participant’s bank account information.
5029
- * @uiName Bank account field label
5030
- * @uiGroup Dashboard Properties
5031
- */
5032
- this.dashboard_accountText = "Account";
5033
- /**
5034
- * Part of the Invoice table displayed at the bottom of the page.
5035
- * @uiName Invoice number column title
5036
- * @uiGroup Dashboard Properties
5037
- */
5038
- this.dashboard_invoiceColumnTitle = "Invoice";
5039
- /**
5040
- * Part of the Invoice table displayed at the bottom of the page.
5041
- * @uiName Date column title
5042
- * @uiGroup Dashboard Properties
5043
- */
5044
- this.dashboard_dateColumnTitle = "Date";
5045
- /**
5046
- * Part of the Invoice table displayed at the bottom of the page.
5047
- * @uiName Earnings column title
5048
- * @uiGroup Dashboard Properties
5049
- */
5050
- this.dashboard_earningsColumnTitle = "Earnings";
5051
- /**
5052
- * Part of the Invoice table displayed at the bottom of the page.
5053
- * @uiName Indirect tax column title
5054
- * @uiGroup Dashboard Properties
5055
- */
5056
- this.dashboard_indirectTaxColumnTitle = "Indirect tax";
5057
- /**
5058
- * Displayed under the payout details card.
5059
- * @uiName Payout from impact text
5060
- * @uiGroup Dashboard Properties
5061
- * @uiWidget textArea
5062
- */
5063
- this.dashboard_payoutFromImpact = "Your balance may take up to 24 hours to update. Payouts will be sent from our referral program provider, impact.com.";
5064
- /**
5065
- * Part of the Invoice table displayed at the bottom of the page.
5066
- * @uiName Earnings after tax column title
5067
- * @uiGroup Dashboard Properties
5068
- */
5069
- this.dashboard_earningsAfterTaxColumnTitle = "Earnings after tax";
5070
- /**
5071
- * Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
5072
- * @uiName Payout error message title
5073
- * @uiGroup Dashboard Properties
5074
- * @uiWidget textArea
5075
- */
5076
- this.dashboard_payoutHoldAlertHeader = "Your payout is on hold";
5077
- /**
5078
- * Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
5079
- * @uiName Payout error message description
5080
- * @uiGroup Dashboard Properties
5081
- * @uiWidget textArea
5082
- */
5083
- this.dashboard_payoutHoldAlertDescription = "Please contact our {supportLink} or check your inbox for an email from our referral program provider, impact.com.";
5084
- /**
5085
- * Text displayed for existing publishers that do not have saved banking information.
5086
- * @uiName Payout missing information subtext
5087
- * @uiGroup Dashboard Properties
5088
- */
5089
- this.dashboard_payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
5090
- /**
5091
- * @uiName Invoice table description
5092
- * @uiGroup Dashboard Properties
5093
- */
5094
- this.dashboard_invoiceDescription = "View and download your invoices to report your earnings and stay tax compliant.";
5095
- /**
5096
- * @uiName Invoice table previous page button label
5097
- * @uiGroup Dashboard Properties
5098
- */
5099
- this.dashboard_invoicePrevLabel = "Prev";
5100
- /**
5101
- * @uiName Invoice table next page button label
5102
- * @uiGroup Dashboard Properties
5103
- */
5104
- this.dashboard_invoiceMoreLabel = "Next";
5105
- /**
5106
- * @uiName Invoice table title
5107
- * @uiGroup Dashboard Properties
5108
- */
5109
- this.dashboard_invoiceHeader = "Invoices";
5110
- /**
5111
- * @uiName Empty invoice table header
5112
- * @uiGroup Dashboard Properties
5113
- */
5114
- this.dashboard_invoiceEmptyStateHeader = "View your invoice details";
5115
- /**
5116
- * @uiName Empty invoice table description
5117
- * @uiGroup Dashboard Properties
5118
- */
5119
- this.dashboard_invoiceEmptyStateText = "Refer a friend to view the status of your invoices and rewards earned";
5120
- /**
5121
- * @uiName Replace tax form modal header
5122
- * @uiGroup Dashboard Properties
5123
- */
5124
- this.dashboard_replaceTaxFormModalHeader = "Replace existing tax form";
5125
- /**
5126
- * @uiName Replace tax form modal body text
5127
- * @uiGroup Dashboard Properties
5128
- * @uiWidget textArea
5129
- */
5130
- 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.";
5131
- /**
5132
- * Part of the alert displayed at the top of the page when the user needs to verify their identity.
5133
- * @uiName Verification required alert message title
5134
- * @uiGroup Dashboard Properties
5135
- * @uiWidget textArea
5136
- */
5137
- this.dashboard_verificationRequiredHeader = "Verify your identity";
5138
- /**
5139
- * Part of the alert displayed at the top of the page when the user needs to verify their identity
5140
- * @uiName Verification required alert message description
5141
- * @uiGroup Dashboard Properties
5142
- * @uiWidget textArea
5143
- */
5144
- 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}.";
5145
- /**
5146
- * @uiName Verification required internal alert header
5147
- * @uiGroup Dashboard Properties
5148
- * @uiWidget textArea
5149
- */
5150
- this.dashboard_verificationRequiredInternalHeader = "Identity Verification in Progress";
5151
- /**
5152
- * @uiName Verification required internal alert description
5153
- * @uiGroup Dashboard Properties
5154
- * @uiWidget textArea
5155
- */
5156
- 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}.";
5157
- /**
5158
- * @uiName Verification review internal alert header
5159
- * @uiGroup Dashboard Properties
5160
- * @uiWidget textArea
5161
- */
5162
- this.dashboard_verificationReviewInternalHeader = "Identity Verification Under Review";
5163
- /**
5164
- * @uiName Verification review internal alert description
5165
- * @uiGroup Dashboard Properties
5166
- * @uiWidget textArea
5167
- */
5168
- 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}.";
5169
- /**
5170
- * @uiName Verification failed internal alert header
5171
- * @uiGroup Dashboard Properties
5172
- * @uiWidget textArea
5173
- */
5174
- this.dashboard_verificationFailedInternalHeader = "Identity Verification Unsuccessful";
5175
- /**
5176
- * @uiName Verification failed internal alert description
5177
- * @uiGroup Dashboard Properties
5178
- * @uiWidget textArea
5179
- */
5180
- 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}.";
5181
- /**
5182
- * Part of the alert displayed at the top of the page when the user needs to verify their identity.
5183
- * @uiName Verification required alert button text
5184
- * @uiGroup Dashboard Properties
5185
- * @uiWidget textArea
5186
- */
5187
- this.dashboard_verificationRequiredButtonText = "Start Verification";
5188
- /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5189
- GENERAL PROPS:
5190
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
5191
- /**
5192
- * @uiName Setup progress
5193
- * @uiGroup General Form Properties
5194
- */
5195
- this.formStep = "Step {step} of {count}";
5196
- /**
5197
- * Part of the alert displayed at the top of the page.
5198
- * @uiName Form submission error message title
5199
- * @uiGroup General Form Properties
5200
- * @uiWidget textArea
5201
- */
5202
- this.generalErrorTitle = "There was a problem submitting your information";
5203
- /**
5204
- * Part of the alert displayed at the top of the page.
5205
- * @uiName Form submission error message description
5206
- * @uiGroup General Form Properties
5207
- * @uiWidget textArea
5208
- */
5209
- this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact our {supportLink}.";
5210
- /**
5211
- * Displayed under a field that is missing required information.
5212
- * @uiName Empty form field error message
5213
- * @uiGroup General Form Properties
5214
- */
5215
- this.fieldRequiredError = "{fieldName} is required";
5216
- /**
5217
- * Displayed under a field that includes invalid characters (non-ASCII).
5218
- * @uiName Invalid character error message
5219
- * @uiGroup General Form Properties
5220
- */
5221
- this.invalidCharacterError = "{fieldName} includes characters that aren't supported.";
5222
- /**
5223
- * Displayed under a field when it has an invalid entry.
5224
- * @uiName Form field error message
5225
- * @uiGroup General Form Properties
5226
- */
5227
- this.fieldInvalidError = "{fieldName} is invalid";
5228
- /**
5229
- * @uiName Continue button label
5230
- * @uiGroup General Form Properties
5231
- */
5232
- this.continueButton = "Continue";
5233
- /**
5234
- * @uiName Back button label
5235
- * @uiGroup General Form Properties
5236
- */
5237
- this.backButton = "Back";
5238
- /**
5239
- * @uiName Cancel button label
5240
- * @uiGroup General Form Properties
5241
- */
5242
- this.cancelButton = "Cancel";
5243
- /**
5244
- * Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com.
5245
- * @uiName Participant is a partner alert title
5246
- * @uiGroup General Form Properties
5247
- * @uiWidget textArea
5248
- */
5249
- this.isPartnerAlertHeader = "An account with this email already exists with our referral program provider, impact.com";
5250
- /**
5251
- * Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com.
5252
- * @uiName Participant is a partner alert description
5253
- * @uiGroup General Form Properties
5254
- * @uiWidget textArea
5255
- */
5256
- 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.";
3595
+ .toFormat("LLL dd, yyyy")
3596
+ : luxon.DateTime.now()
3597
+ .plus({ month: 1 })
3598
+ .startOf("month")
3599
+ .plus({ day: 14 })
3600
+ .toFormat("LLL dd, yyyy");
3601
+ }
3602
+ else {
3603
+ intl.formatMessage({
3604
+ id: `nextPayoutBalance`,
3605
+ defaultMessage: props.thresholdPayoutText,
3606
+ }, {
3607
+ thresholdBalance: (_a = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _a === void 0 ? void 0 : _a.paymentThreshold,
3608
+ });
3609
+ }
3610
+ }
3611
+ const paymentDay = getPayoutDetailedStatusText((_c = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _c === void 0 ? void 0 : _c.paymentDay);
3612
+ const isPayoutToday = luxon.DateTime.now().toFormat("LLL dd, yyyy") === paymentDay;
3613
+ return {
3614
+ states: {
3615
+ loading,
3616
+ thresholdBalance: ((_d = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _d === void 0 ? void 0 : _d.paymentThreshold) ? `${publisher === null || publisher === void 0 ? void 0 : publisher.currency}${(_e = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _e === void 0 ? void 0 : _e.paymentThreshold}`
3617
+ : undefined,
3618
+ balance: (_f = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _f === void 0 ? void 0 : _f.balance,
3619
+ badgeStatus: ((_g = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _g === void 0 ? void 0 : _g.paymentSchedulingType) !== "FIXED_DAY"
3620
+ ? "thresholdPayout"
3621
+ : isPayoutToday
3622
+ ? "payoutToday"
3623
+ : "nextPayout",
3624
+ payoutType: (_h = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _h === void 0 ? void 0 : _h.paymentMethod,
3625
+ error: (_j = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _j === void 0 ? void 0 : _j.hold,
3626
+ paypalEmailAddress: (_k = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _k === void 0 ? void 0 : _k.paypalEmailAddress,
3627
+ cardNumberPreview: (_l = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _l === void 0 ? void 0 : _l.bankAccountNumber,
3628
+ nextPayoutDate: paymentDay,
3629
+ },
3630
+ text: props.getTextProps(),
3631
+ };
3632
+ }
3633
+
3634
+ const PayoutDetailsCard = class {
3635
+ constructor(hostRef) {
3636
+ registerInstance(this, hostRef);
5257
3637
  /**
5258
- * Placeholder text displayed in the country search dropdown
5259
- * @uiName Country field placeholder text
5260
- * @uiGroup General Form Properties
3638
+ * Badge text indicating payout status
3639
+ * @uiName Payout badge status text
5261
3640
  */
5262
- this.searchForCountryText = "Search for country..";
3641
+ this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
5263
3642
  /**
5264
- * Part of the alert displayed at the top of the page.
5265
- * @uiName Page load error message title
5266
- * @uiGroup General Form Properties
5267
- * @uiWidget textArea
3643
+ * Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
3644
+ * @uiName Payout schedule by threshold text
5268
3645
  */
5269
- this.loadingErrorAlertHeader = "There was a problem loading your form";
3646
+ this.thresholdPayoutText = "Next payout occurs when balance is {thresholdBalance}";
5270
3647
  /**
5271
- * Part of the alert displayed at the top of the page.
5272
- * @uiName Page load error message description
5273
- * @uiGroup General Form Properties
5274
- * @uiWidget textArea
3648
+ * Shown before the participant’s bank account information.
3649
+ * @uiName Bank account field label
5275
3650
  */
5276
- this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact our {supportLink}.";
3651
+ this.accountText = "Account";
5277
3652
  /**
5278
- * Displayed at the top of the page on all set up steps.
5279
- * @uiName Page description
5280
- * @uiGroup General Form Properties
3653
+ * Text displayed for existing publishers that do not have saved banking information.
3654
+ * @uiName Payout missing information subtext
5281
3655
  */
5282
- this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
3656
+ this.payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
5283
3657
  /**
5284
- * Link text for contacting support team
5285
- * @uiName Suport link text
5286
- * @uiGroup General Form Properties
3658
+ * @componentState { "title": "Loading", "props": { "states": { "loading": true } } }
5287
3659
  */
5288
- this.supportLink = "support team";
3660
+ this.stateController = "{}";
5289
3661
  h$1(this);
5290
3662
  }
5291
3663
  disconnectedCallback() { }
5292
- // this field is required prop
5293
- getGeneralStepTextProps(prefix) {
3664
+ getTextProps() {
5294
3665
  const props = getProps(this);
5295
3666
  return {
5296
- ...extractProps(props, prefix),
5297
- generalErrorTitle: props.generalErrorTitle,
5298
- generalErrorDescription: props.generalErrorDescription,
5299
- fieldRequiredError: props.fieldRequiredError,
5300
- invalidCharacterError: props.invalidCharacterError,
5301
- fieldInvalidError: props.fieldInvalidError,
5302
- continueButton: props.continueButton,
5303
- backButton: props.backButton,
5304
- cancelButton: props.cancelButton,
5305
- isPartnerAlertHeader: props.isPartnerAlertHeader,
5306
- isPartnerAlertDescription: props.isPartnerAlertDescription,
5307
- loadingErrorAlertHeader: props.loadingErrorAlertHeader,
5308
- loadingErrorAlertDescription: props.loadingErrorAlertDescription,
5309
- taxAndPayoutsDescription: props.taxAndPayoutsDescription,
5310
- searchForCountryText: props.searchForCountryText,
5311
- formStep: props.formStep,
5312
- supportLink: props.supportLink,
3667
+ ...props,
5313
3668
  };
5314
3669
  }
5315
3670
  render() {
5316
- var _a, _b;
5317
- const props = isDemo() ? useDemoTaxAndCash(this) : useTaxAndCash();
5318
- // @ts-ignore
5319
- if ((_a = this.demoData) === null || _a === void 0 ? void 0 : _a.showTextProps) {
5320
- const textProps = getProps(this);
5321
- return (h("div", null, (_b = Object.keys(textProps)) === null || _b === void 0 ? void 0 : _b.map((prop) => {
5322
- if (prop === "demoData")
5323
- return;
5324
- return (h("div", null, h("b", null, prop, ":"), " ", this[prop], h("hr", null)));
5325
- })));
5326
- }
5327
- switch (props.step) {
5328
- case "/1":
5329
- return (h("sqm-user-info-form", Object.assign({}, this.getGeneralStepTextProps("step1_"))));
5330
- case "/2":
5331
- return (h("sqm-indirect-tax-form", Object.assign({}, this.getGeneralStepTextProps("step2_"))));
5332
- case "/3":
5333
- return (h("sqm-docusign-form", Object.assign({}, this.getGeneralStepTextProps("step3_"))));
5334
- case "/4":
5335
- return (h("sqm-banking-info-form", Object.assign({}, this.getGeneralStepTextProps("step4_"))));
5336
- case "/dashboard":
5337
- return (h("sqm-tax-and-cash-dashboard", Object.assign({}, this.getGeneralStepTextProps("dashboard_"))));
5338
- case "/error":
5339
- return (h(ErrorView, { loadingErrorAlertHeader: this.loadingErrorAlertHeader, loadingErrorAlertDescription: this.loadingErrorAlertDescription }));
5340
- }
5341
- return h(LoadingView, null);
3671
+ const props = isDemo()
3672
+ ? useDemoPayoutDetailsCard(this)
3673
+ : usePayoutDetailsCard(this);
3674
+ return (h(Host, null, h(PayoutDetailsCardView, { text: props.text, states: props.states })));
5342
3675
  }
5343
3676
  };
5344
- function useDemoTaxAndCash(props) {
5345
- const [step, setStep] = In({
5346
- namespace: TAX_CONTEXT_NAMESPACE,
5347
- initialValue: "/1",
5348
- });
3677
+ function useDemoPayoutDetailsCard(props) {
5349
3678
  return cjs({
5350
- step,
5351
- setStep,
3679
+ states: {
3680
+ loading: false,
3681
+ error: false,
3682
+ thresholdBalance: "$50",
3683
+ mainCurrency: { currencyText: "USD", amountText: "100.00" },
3684
+ badgeStatus: "nextPayout",
3685
+ payoutType: "BANK_TRANSFER",
3686
+ nextPayoutDate: "March 14, 2024",
3687
+ paypalEmailAddress: "joesmith@example.com",
3688
+ otherCurrencies: false,
3689
+ hasW9Pending: false,
3690
+ hasDatePending: true,
3691
+ cardNumberPreview: "XX2381",
3692
+ balance: "20.00 USD",
3693
+ },
3694
+ text: props.getTextProps(),
5352
3695
  }, props.demoData || {}, { arrayMerge: (_, a) => a });
5353
3696
  }
5354
3697
 
5355
- const style$6 = {
5356
- ErrorAlertContainer: {
5357
- "&::part(base)": {
5358
- backgroundColor: "var(--sl-color-red-100)",
5359
- borderTop: "none",
5360
- },
5361
- "& sl-icon::part(base)": {
5362
- color: "var(--sl-color-danger-500)",
5363
- },
5364
- },
5365
- WarningAlertContainer: {
5366
- "&::part(base)": {
5367
- backgroundColor: "var(--sl-color-yellow-100)",
5368
- borderTop: "none",
5369
- maxWidth: "600px",
5370
- },
5371
- "& sl-icon::part(base)": {
5372
- color: "var(--sl-color-warning-500)",
5373
- },
5374
- },
5375
- WarningHoldAlertContainer: {
5376
- marginLeft: "-20px",
3698
+ const style$5 = {
3699
+ DangerBadge: {
5377
3700
  "&::part(base)": {
5378
- maxWidth: "850px",
5379
- border: "none",
5380
- backgroundColor: "transparent",
5381
- },
5382
- "& sl-icon::part(base)": {
5383
- color: "var(--sl-color-warning-500)",
3701
+ backgroundColor: "var(--sqm-danger-color-icon)",
3702
+ color: "var(--sl-color-white)",
5384
3703
  },
5385
3704
  },
5386
- ErrorHoldAlertContainer: {
5387
- marginLeft: "-20px",
3705
+ SuccessBadge: {
5388
3706
  "&::part(base)": {
5389
- maxWidth: "850px",
5390
- border: "none",
5391
- backgroundColor: "transparent",
5392
- },
5393
- "& sl-icon::part(base)": {
5394
- color: "var(--sl-color-danger-500)",
3707
+ backgroundColor: "var(--sqm-success-color-icon)",
3708
+ color: "var(--sl-color-white)",
5395
3709
  },
5396
3710
  },
5397
- ExpiringSoonAlertContainer: {
3711
+ WarningBadge: {
5398
3712
  "&::part(base)": {
5399
- backgroundColor: "var(--sl-color-yellow-100)",
5400
- borderTop: "none",
3713
+ backgroundColor: "var(--sqm-warning-color-icon)",
3714
+ color: "var(--sl-color-white)",
5401
3715
  },
5402
3716
  },
5403
3717
  BankingInformationContainer: {
@@ -5405,7 +3719,7 @@ const style$6 = {
5405
3719
  },
5406
3720
  IndirectTaxPreviewContainer: {
5407
3721
  marginTop: "var(--sl-spacing-x-large)",
5408
- borderTop: "1px solid var(--sl-color-neutral-200)",
3722
+ borderTop: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
5409
3723
  },
5410
3724
  IndirectTaxPreviewHeaderContainer: {
5411
3725
  marginTop: "var(--sl-spacing-large)",
@@ -5414,7 +3728,7 @@ const style$6 = {
5414
3728
  display: "flex",
5415
3729
  gap: "var(--sl-spacing-x-small)",
5416
3730
  "&::part(base)": {
5417
- color: "var(--sl-color-green-500)",
3731
+ color: "var(--sqm-success-color-text)",
5418
3732
  },
5419
3733
  },
5420
3734
  IndirectTaxPreviewDetails: {
@@ -5428,11 +3742,11 @@ const style$6 = {
5428
3742
  marginTop: "var(--sl-spacing-medium)",
5429
3743
  },
5430
3744
  NotRegisteredIndirectTaxText: {
5431
- color: "var(--sl-color-gray-500)",
3745
+ color: "var(--sqm-text-subdued)",
5432
3746
  },
5433
3747
  TaxDocumentsContainer: {
5434
3748
  marginTop: "var(--sl-spacing-xx-large)",
5435
- borderTop: "1px solid var(--sl-color-neutral-200)",
3749
+ borderTop: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
5436
3750
  },
5437
3751
  TaxDocumentsSectionHeaderContainer: {
5438
3752
  marginTop: "var(--sl-spacing-x-large)",
@@ -5449,7 +3763,7 @@ const style$6 = {
5449
3763
  "& p": {
5450
3764
  margin: "0",
5451
3765
  paddingTop: "2px",
5452
- color: "var(--sl-color-gray-500)",
3766
+ color: "var(--sqm-text-subdued)",
5453
3767
  },
5454
3768
  },
5455
3769
  StatusAlert: {
@@ -5484,7 +3798,7 @@ const style$6 = {
5484
3798
  },
5485
3799
  TaxDocSubtext: {
5486
3800
  margin: "0",
5487
- color: "var(--sl-color-neutral-500)",
3801
+ color: "var(--sqm-text-subdued)",
5488
3802
  lineHeight: "var(--sl-spacing-medium)",
5489
3803
  fontSize: "var(--sl-font-size-small)",
5490
3804
  marginLeft: "1px",
@@ -5505,28 +3819,65 @@ const style$6 = {
5505
3819
  gap: "6px",
5506
3820
  },
5507
3821
  DescriptionText: {
5508
- color: "var(--sl-color-gray-500)",
3822
+ color: "var(--sqm-text-subdued)",
5509
3823
  fontSize: "var(--sl-font-size-x-small)",
5510
- marginBottom: "none",
5511
3824
  maxWidth: "492px",
5512
3825
  },
5513
3826
  PageDescriptionText: {
5514
- color: "var(--sl-color-neutral-500)",
3827
+ color: "var(--sqm-text-subdued)",
5515
3828
  fontSize: "var(--sl-font-size-medium)",
5516
3829
  marginTop: "0",
5517
3830
  },
3831
+ WarningButton: {
3832
+ "&::part(base)": {
3833
+ marginTop: "20px",
3834
+ borderColor: "var(--sqm-warning-color-border)",
3835
+ color: "var(--sqm-warning-color-text)",
3836
+ background: "var(--sqm-warning-color-background)",
3837
+ "&:hover": {
3838
+ background: "var(--sqm-warning-color-icon)",
3839
+ },
3840
+ },
3841
+ },
3842
+ ErrorButton: {
3843
+ "&::part(base)": {
3844
+ marginTop: "20px",
3845
+ borderColor: "var(--sqm-danger-color-border)",
3846
+ color: "var(--sqm-danger-color-text)",
3847
+ background: "var(--sqm-danger-color-background)",
3848
+ "&:hover": {
3849
+ background: "var(--sqm-danger-color-icon)",
3850
+ },
3851
+ },
3852
+ },
3853
+ SuccessButton: {
3854
+ "&::part(base)": {
3855
+ marginTop: "20px",
3856
+ borderColor: "var(--sqm-success-color-border)",
3857
+ color: "var(--sqm-success-color-text)",
3858
+ background: "var(--sqm-success-color-background)",
3859
+ "&:hover": {
3860
+ background: "var(--sqm-success-color-icon)",
3861
+ },
3862
+ },
3863
+ },
5518
3864
  Dialog: {
5519
3865
  "&::part(panel)": {
5520
3866
  maxWidth: "420px",
5521
3867
  },
3868
+ "&::part(header)": {
3869
+ display: "flex",
3870
+ alignItems: "center",
3871
+ justifyContent: "center",
3872
+ paddingTop: "var(--sl-spacing-large)",
3873
+ },
5522
3874
  "&::part(close-button)": {
5523
3875
  marginBottom: "var(--sl-spacing-xx-large)",
5524
3876
  },
5525
3877
  "&::part(title)": {
5526
- fontSize: "var(--sl-font-size-x-large)",
3878
+ fontSize: "var(--sl-font-size-large)",
5527
3879
  fontWeight: "600",
5528
- marginTop: "var(--sl-spacing-xxx-large)",
5529
- padding: "var(--sl-spacing-x-large) var(--sl-spacing-x-large) 0 var(--sl-spacing-x-large)",
3880
+ padding: "0px var(--sl-spacing-x-large) 0 var(--sl-spacing-x-large)",
5530
3881
  },
5531
3882
  "&::part(body)": {
5532
3883
  padding: "0 var(--sl-spacing-x-large) 0 var(--sl-spacing-x-large)",
@@ -5543,10 +3894,59 @@ const style$6 = {
5543
3894
  },
5544
3895
  DialogButton: { margin: "auto", width: "100%" },
5545
3896
  };
5546
- const sheet$5 = createStyleSheet(style$6);
5547
- const styleString$5 = sheet$5.toString();
3897
+ const vanillaStyle$3 = `
3898
+ * {
3899
+ font-family: var(--sqm-primary-font);
3900
+ }
3901
+ a {
3902
+ color: inherit;
3903
+ text-decoration: underline;
3904
+ cursor: pointer;
3905
+ }
3906
+
3907
+ *::part(primarybutton-base),
3908
+ sl-button[type="primary"]::part(base) {
3909
+ font-family: var(--sqm-primary-font);
3910
+ width: 100%;
3911
+ background-color: var(--sqm-primary-button-background);
3912
+ color: var(--sqm-primary-button-color);
3913
+ border-color: var(--sqm-primary-button-color-border);
3914
+ border-radius: var(--sqm-primary-button-radius);
3915
+ }
3916
+
3917
+ *::part(primarybutton-base):hover,
3918
+ sl-button[type="primary"]::part(base):hover{
3919
+ background-color: var(--sqm-primary-button-background-hover);
3920
+ border-color: var(--sqm-primary-button-border-color-hover);
3921
+ color: var(--sqm-primary-button-color-hover);
3922
+ }
3923
+
3924
+
3925
+ *::part(primarybutton-base):focus,
3926
+ sl-button[type="primary"]::part(base):focus {
3927
+ box-shadow: none;
3928
+ }
3929
+
3930
+ *::part(secondarybutton-base),
3931
+ sl-button[type="secondary"]::part(base) {
3932
+ font-family: var(--sqm-primary-font);
3933
+ background-color: var(--sqm-secondary-button-background);
3934
+ color: var(--sqm-secondary-button-color);
3935
+ border-color: var(--sqm-secondary-button-color-border);
3936
+ border-radius: var(--sqm-secondary-button-radius);
3937
+ }
3938
+
3939
+ *::part(secondarybutton-base):hover,
3940
+ sl-button[type="secondary"]::part(base):hover {
3941
+ background-color: var(--sqm-secondary-button-background-hover);
3942
+ color: var(--sqm-secondary-button-color-hover);
3943
+ border-color: var(--sqm-secondary-button-border-color-hover);
3944
+ }
3945
+ `;
3946
+ const sheet$4 = createStyleSheet(style$5);
3947
+ const styleString$4 = sheet$4.toString();
5548
3948
  const TaxAndCashDashboardView = (props) => {
5549
- var _a, _b, _c, _d;
3949
+ var _a;
5550
3950
  const { states, text, callbacks, slots } = props;
5551
3951
  function getAlert(status) {
5552
3952
  switch (status) {
@@ -5561,8 +3961,6 @@ const TaxAndCashDashboardView = (props) => {
5561
3961
  }),
5562
3962
  buttonText: text.verificationRequiredButtonText,
5563
3963
  alertType: "warning",
5564
- icon: "exclamation-triangle",
5565
- class: sheet$5.classes.WarningHoldAlertContainer,
5566
3964
  };
5567
3965
  case "VERIFICATION:INTERNAL":
5568
3966
  return {
@@ -5574,8 +3972,6 @@ const TaxAndCashDashboardView = (props) => {
5574
3972
  supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
5575
3973
  }),
5576
3974
  alertType: "warning",
5577
- icon: "exclamation-triangle",
5578
- class: sheet$5.classes.WarningHoldAlertContainer,
5579
3975
  };
5580
3976
  case "VERIFICATION:REVIEW":
5581
3977
  return {
@@ -5587,8 +3983,6 @@ const TaxAndCashDashboardView = (props) => {
5587
3983
  supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
5588
3984
  }),
5589
3985
  alertType: "warning",
5590
- icon: "exclamation-triangle",
5591
- class: sheet$5.classes.WarningHoldAlertContainer,
5592
3986
  };
5593
3987
  case "VERIFICATION:FAILED":
5594
3988
  return {
@@ -5599,9 +3993,7 @@ const TaxAndCashDashboardView = (props) => {
5599
3993
  }, {
5600
3994
  supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
5601
3995
  }),
5602
- alertType: "critical",
5603
- icon: "exclamation-octagon",
5604
- class: sheet$5.classes.ErrorHoldAlertContainer,
3996
+ alertType: "error",
5605
3997
  };
5606
3998
  case "HOLD":
5607
3999
  return {
@@ -5614,24 +4006,22 @@ const TaxAndCashDashboardView = (props) => {
5614
4006
  }),
5615
4007
  buttonText: null,
5616
4008
  alertType: "warning",
5617
- icon: "exclamation-triangle",
5618
- class: sheet$5.classes.WarningHoldAlertContainer,
5619
4009
  };
5620
4010
  default:
5621
4011
  return;
5622
4012
  }
5623
4013
  }
5624
4014
  const statusMap = {
5625
- NOT_VERIFIED: (h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
5626
- h("sl-badge", { type: "warning", pill: true }, text.statusTextNotVerified),
4015
+ NOT_VERIFIED: (h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
4016
+ h("sl-badge", { class: sheet$4.classes.WarningBadge, type: "warning", pill: true }, text.statusTextNotVerified),
5627
4017
  h("p", null, intl.formatMessage({
5628
4018
  id: `badgeTextAwaitingReview`,
5629
4019
  defaultMessage: text.badgeTextAwaitingReview,
5630
4020
  }, {
5631
4021
  dateSubmitted: states.dateSubmitted,
5632
4022
  })))),
5633
- ACTIVE: (h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
5634
- h("sl-badge", { type: "success", pill: true }, text.statusTextActive),
4023
+ ACTIVE: (h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
4024
+ h("sl-badge", { class: sheet$4.classes.SuccessBadge, type: "success", pill: true }, text.statusTextActive),
5635
4025
  h("p", null, intl.formatMessage({
5636
4026
  id: `badgeTextSubmittedOn`,
5637
4027
  defaultMessage: states.documentType === "W9"
@@ -5640,14 +4030,13 @@ const TaxAndCashDashboardView = (props) => {
5640
4030
  }, {
5641
4031
  dateSubmitted: states.dateSubmitted,
5642
4032
  })))),
5643
- INACTIVE: (h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
5644
- h("sl-badge", { type: "danger", pill: true }, text.statusTextNotActive),
4033
+ INACTIVE: (h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
4034
+ h("sl-badge", { class: sheet$4.classes.DangerBadge, type: "danger", pill: true }, text.statusTextNotActive),
5645
4035
  h("p", null, text.invalidForm))),
5646
4036
  };
5647
4037
  const alertMap = {
5648
- INACTIVE: (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.ErrorAlertContainer },
5649
- h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
5650
- h("strong", null, intl.formatMessage({
4038
+ INACTIVE: (h("sqm-form-message", { type: "error" },
4039
+ h("p", { part: "alert-title" }, intl.formatMessage({
5651
4040
  id: `taxAlertHeaderNotActive`,
5652
4041
  defaultMessage: states.documentType === "W9"
5653
4042
  ? text.taxAlertHeaderNotActiveW9
@@ -5655,7 +4044,6 @@ const TaxAndCashDashboardView = (props) => {
5655
4044
  }, {
5656
4045
  documentType: states.documentTypeString,
5657
4046
  })),
5658
- h("br", null),
5659
4047
  intl.formatMessage({
5660
4048
  id: `taxAlertMessage`,
5661
4049
  defaultMessage: states.documentType === "W9"
@@ -5693,78 +4081,74 @@ const TaxAndCashDashboardView = (props) => {
5693
4081
  });
5694
4082
  }
5695
4083
  };
4084
+ const alert = getAlert(states.payoutStatus);
5696
4085
  return (h("div", null,
5697
4086
  h("div", null,
5698
- h("style", { type: "text/css" }, styleString$5),
5699
- states.loadingError && (h("div", null,
5700
- h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.ErrorAlertContainer },
5701
- h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
5702
- h("strong", null, text.error.loadingErrorAlertHeader),
5703
- h("br", null),
5704
- intl.formatMessage({
5705
- id: "loadingErrorAlertDescription",
5706
- defaultMessage: text.error.loadingErrorAlertDescription,
5707
- }, {
5708
- supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
5709
- })))),
5710
- ((_a = states.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.ErrorAlertContainer },
5711
- h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
5712
- h("strong", null, text.error.generalTitle),
5713
- h("br", null),
4087
+ h("style", { type: "text/css" }, styleString$4),
4088
+ h("style", { type: "text/css" }, vanillaStyle$3),
4089
+ states.loadingError && (h("sqm-form-message", { type: "error" },
4090
+ h("p", { part: "alert-title" }, text.error.loadingErrorAlertHeader),
4091
+ intl.formatMessage({
4092
+ id: "loadingErrorAlertDescription",
4093
+ defaultMessage: text.error.loadingErrorAlertDescription,
4094
+ }, {
4095
+ supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
4096
+ }))),
4097
+ ((_a = states.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sqm-form-message", { type: "error" },
4098
+ h("p", { part: "alert-title" }, text.error.generalTitle),
5714
4099
  intl.formatMessage({
5715
4100
  id: "generalDescription",
5716
4101
  defaultMessage: text.error.generalDescription,
5717
4102
  }, {
5718
4103
  supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
5719
4104
  }))),
5720
- getAlert(states.payoutStatus) && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", name: (_b = getAlert(states.payoutStatus)) === null || _b === void 0 ? void 0 : _b.alertType, open: true, class: (_c = getAlert(states.payoutStatus)) === null || _c === void 0 ? void 0 : _c.class },
5721
- h("sl-icon", { slot: "icon", name: (_d = getAlert(states.payoutStatus)) === null || _d === void 0 ? void 0 : _d.icon }),
5722
- h("strong", null, getAlert(states.payoutStatus).header),
5723
- h("p", { style: { margin: "0" } }, getAlert(states.payoutStatus).description),
5724
- getAlert(states.payoutStatus).buttonText && (h("sl-button", { style: { marginTop: "var(--sl-spacing-x-small)" }, type: "default", loading: states.veriffLoading, onClick: () => callbacks.onVerifyClick() }, getAlert(states.payoutStatus).buttonText)))),
5725
- h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet$5.classes.Dialog, open: states.showNewFormDialog, "onSl-hide": callbacks.onNewFormCancel },
4105
+ alert && (h("sqm-form-message", { type: alert.alertType },
4106
+ h("p", { part: "alert-title" }, alert.header),
4107
+ h("p", { part: "alert-description" }, alert.description),
4108
+ alert.buttonText && (h("sl-button", { class: sheet$4.classes[`${capitalizeFirstLetter(alert.alertType)}Button`], loading: states.veriffLoading, onClick: () => callbacks.onVerifyClick() }, alert.buttonText)))),
4109
+ h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet$4.classes.Dialog, open: states.showNewFormDialog, "onSl-hide": callbacks.onNewFormCancel },
5726
4110
  h("p", null, text.replaceTaxFormModalBodyText),
5727
- h("sl-button", { slot: "footer", type: "primary", class: sheet$5.classes.DialogButton, onClick: callbacks.onNewFormClick }, text.newFormButton),
5728
- h("sl-button", { slot: "footer", type: "default", class: sheet$5.classes.DialogButton, onClick: callbacks.onNewFormCancel }, text.cancelButton)),
4111
+ h("sl-button", { slot: "footer", type: "primary", exportparts: "base: primarybutton-base", class: sheet$4.classes.DialogButton, onClick: callbacks.onNewFormClick }, text.newFormButton),
4112
+ h("sl-button", { slot: "footer", type: "secondary", exportparts: "base: secondarybutton-base", class: sheet$4.classes.DialogButton, onClick: callbacks.onNewFormCancel }, text.cancelButton)),
5729
4113
  states.status === "INACTIVE" && alertMap[states.status],
5730
4114
  h("div", null,
5731
4115
  h("h3", { style: { marginBottom: "0" } }, text.bankingInformationSectionHeader),
5732
- h("p", { class: sheet$5.classes.PageDescriptionText }, text.taxAndPayoutsDescription),
5733
- h("div", { class: sheet$5.classes.BankingInformationContainer },
4116
+ h("p", { class: sheet$4.classes.PageDescriptionText }, text.taxAndPayoutsDescription),
4117
+ h("div", { class: sheet$4.classes.BankingInformationContainer },
5734
4118
  slots.payoutDetailsCardSlot,
5735
- !states.loading && (h("p", { class: sheet$5.classes.DescriptionText }, text.payoutFromImpact)),
5736
- states.canEditPayoutInfo && (h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$5.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
5737
- h("div", { class: sheet$5.classes.TaxDocumentsContainer },
5738
- h("div", null, states.loading ? (h("div", { class: sheet$5.classes.TaxSectionSkeletonContainer },
5739
- h("sl-skeleton", { class: sheet$5.classes.SkeletonOne }),
5740
- h("sl-skeleton", { class: sheet$5.classes.SkeletonTwo }))) : (h("div", null, states.noFormNeeded ? (h("div", null,
5741
- h("h3", { class: sheet$5.classes.TaxDocumentsSectionHeaderContainer }, text.taxDocumentSectionHeader),
5742
- h("p", { class: sheet$5.classes.TaxDocSubtext }, text.noFormNeededSubtext))) : (h("div", null,
5743
- h("span", { class: sheet$5.classes.TaxFormDetailsContainer },
5744
- h("div", { class: sheet$5.classes.StatusContainer },
4119
+ !states.loading && (h("p", { class: sheet$4.classes.DescriptionText }, text.payoutFromImpact)),
4120
+ states.canEditPayoutInfo && (h("sl-button", { disabled: states.disabled || states.loading, type: "secondary", exportparts: "base: secondarybutton-base", onClick: callbacks.onEditPayoutInfo, style: { marginTop: states.loading ? "12px" : "0px" } }, text.editPaymentInformationButton)))),
4121
+ h("div", { class: sheet$4.classes.TaxDocumentsContainer },
4122
+ h("div", null, states.loading ? (h("div", { class: sheet$4.classes.TaxSectionSkeletonContainer },
4123
+ h("sl-skeleton", { class: sheet$4.classes.SkeletonOne }),
4124
+ h("sl-skeleton", { class: sheet$4.classes.SkeletonTwo }))) : (h("div", null, states.noFormNeeded ? (h("div", null,
4125
+ h("h3", { class: sheet$4.classes.TaxDocumentsSectionHeaderContainer }, text.taxDocumentSectionHeader),
4126
+ h("p", { class: sheet$4.classes.TaxDocSubtext }, text.noFormNeededSubtext))) : (h("div", null,
4127
+ h("span", { class: sheet$4.classes.TaxFormDetailsContainer },
4128
+ h("div", { class: sheet$4.classes.StatusContainer },
5745
4129
  h("h3", null, intl.formatMessage({
5746
4130
  id: "section-subheader",
5747
4131
  defaultMessage: text.taxDocumentSectionSubHeader,
5748
4132
  }, {
5749
4133
  documentType: states.documentTypeString,
5750
4134
  })),
5751
- h("span", { class: sheet$5.classes.StatusAlert }, statusMap[states.status]))),
5752
- states.status !== "NOT_VERIFIED" && (h("sl-button", { disabled: states.disabled || states.loading, onClick: callbacks.onClick, type: "default", class: sheet$5.classes.NewFormButton, exportparts: "base: primarybutton-base" }, text.newFormButton)))))))),
5753
- h("div", { class: sheet$5.classes.IndirectTaxPreviewContainer }, states.loading ? (h("div", { class: sheet$5.classes.TaxSectionSkeletonContainer },
5754
- h("sl-skeleton", { class: sheet$5.classes.SkeletonOne }),
5755
- h("sl-skeleton", { class: sheet$5.classes.SkeletonTwo }))) : (h("div", null,
5756
- h("h3", { class: sheet$5.classes.IndirectTaxPreviewHeaderContainer },
4135
+ h("span", { class: sheet$4.classes.StatusAlert }, statusMap[states.status]))),
4136
+ states.status !== "NOT_VERIFIED" && (h("sl-button", { style: { marginTop: "20px" }, disabled: states.disabled || states.loading, onClick: callbacks.onClick, type: "secondary", exportparts: "base: secondarybutton-base" }, text.newFormButton)))))))),
4137
+ h("div", { class: sheet$4.classes.IndirectTaxPreviewContainer }, states.loading ? (h("div", { class: sheet$4.classes.TaxSectionSkeletonContainer },
4138
+ h("sl-skeleton", { class: sheet$4.classes.SkeletonOne }),
4139
+ h("sl-skeleton", { class: sheet$4.classes.SkeletonTwo }))) : (h("div", null,
4140
+ h("h3", { class: sheet$4.classes.IndirectTaxPreviewHeaderContainer },
5757
4141
  text.indirectTaxInfoSectionHeader,
5758
- h("sl-tooltip", { trigger: "hover", placement: "right", content: text.indirectTaxTooltipSupport, class: sheet$5.classes.TooltipContainer },
5759
- h("sl-icon", { name: "info-circle", class: sheet$5.classes.ToolTip }))),
5760
- h("div", { class: sheet$5.classes.IndirectTaxPreviewDetails },
5761
- h("span", null, states.notRegistered ? (h("span", { class: sheet$5.classes.NotRegisteredIndirectTaxText }, intl.formatMessage({
4142
+ h("sl-tooltip", { trigger: "hover", placement: "right", content: text.indirectTaxTooltipSupport, class: sheet$4.classes.TooltipContainer },
4143
+ h("sl-icon", { name: "info-circle", class: sheet$4.classes.ToolTip }))),
4144
+ h("div", { class: sheet$4.classes.IndirectTaxPreviewDetails },
4145
+ h("span", null, states.notRegistered ? (h("span", { class: sheet$4.classes.NotRegisteredIndirectTaxText }, intl.formatMessage({
5762
4146
  id: "notRegisteredForTax",
5763
4147
  defaultMessage: text.notRegisteredForTax,
5764
4148
  }, {
5765
4149
  supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
5766
4150
  }))) : (getIndirectTaxRegisteredIn())),
5767
- !states.notRegistered && (h("div", { class: sheet$5.classes.TaxNumberContainer },
4151
+ !states.notRegistered && (h("div", { class: sheet$4.classes.TaxNumberContainer },
5768
4152
  h("span", null, intl.formatMessage({
5769
4153
  id: `indirectTaxDetails`,
5770
4154
  defaultMessage: text.indirectTaxDetails,
@@ -5787,7 +4171,7 @@ const TaxAndCashDashboardView = (props) => {
5787
4171
  }, {
5788
4172
  subRegionTaxNumber: states.subRegionTaxNumber,
5789
4173
  })))),
5790
- !states.notRegistered && (h("div", { class: sheet$5.classes.InvoiceTableContainer },
4174
+ !states.notRegistered && (h("div", { class: sheet$4.classes.InvoiceTableContainer },
5791
4175
  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 },
5792
4176
  h("sqm-invoice-table-download-column", null),
5793
4177
  h("sqm-invoice-table-date-column", { "column-title": text.dateColumnTitle }),
@@ -6218,6 +4602,11 @@ const TaxAndCashDashboard = class {
6218
4602
  * @uiName Cancel button label
6219
4603
  */
6220
4604
  this.cancelButton = "Cancel";
4605
+ /**
4606
+ * @undocumented
4607
+ * @componentState { "title": "Payouts on hold", "props": { "states": { "payoutStatus": "HOLD" } }, "uiGroup": "Dashboard Properties" }
4608
+ */
4609
+ this.stateController = "{}";
6221
4610
  h$1(this);
6222
4611
  }
6223
4612
  disconnectedCallback() { }
@@ -6243,23 +4632,32 @@ const TaxAndCashDashboard = class {
6243
4632
  }
6244
4633
  };
6245
4634
  function useDemoTaxAndCashDashboard(props) {
4635
+ console.log("dashboard", { props });
4636
+ // @ts-ignore
6246
4637
  return cjs({
6247
4638
  states: {
6248
4639
  dateSubmitted: "today",
6249
4640
  documentType: "W9",
6250
4641
  documentTypeString: "W9",
6251
- status: "ACTIVE",
6252
4642
  country: "United States",
6253
- indirectTaxNumber: 55555555,
4643
+ indirectTaxNumber: "55555555",
6254
4644
  indirectTaxType: "Indirect Tax",
6255
- noFormNeeded: true,
4645
+ noFormNeeded: false,
6256
4646
  disabled: false,
6257
4647
  loading: false,
6258
4648
  showNewFormDialog: false,
6259
4649
  hasHold: false,
6260
- showVerifyIdentity: false,
4650
+ subRegion: "CA",
4651
+ subRegionTaxNumber: undefined,
4652
+ qstNumber: undefined,
4653
+ isBusinessEntity: false,
4654
+ province: undefined,
4655
+ notRegistered: true,
4656
+ loadingError: false,
6261
4657
  payoutStatus: "DONE",
6262
4658
  veriffLoading: false,
4659
+ canEditPayoutInfo: true,
4660
+ status: "ACTIVE",
6263
4661
  },
6264
4662
  callbacks: {
6265
4663
  onClick: () => console.debug("check step"),
@@ -6269,7 +4667,14 @@ function useDemoTaxAndCashDashboard(props) {
6269
4667
  onVerifyClick: () => console.log("verify"),
6270
4668
  },
6271
4669
  text: props.getTextProps(),
6272
- }, props.demoData || {}, { arrayMerge: (_, a) => a });
4670
+ slots: {
4671
+ payoutDetailsCardSlot: (h("sqm-payout-details-card", { demoData: {
4672
+ states: {
4673
+ badgeStatus: "nextPayout",
4674
+ },
4675
+ } })),
4676
+ },
4677
+ }, props.demoData || props.stateController || {}, { arrayMerge: (_, a) => a });
6273
4678
  }
6274
4679
 
6275
4680
  const PHONE_EXTENSIONS = {
@@ -7243,19 +5648,19 @@ const PHONE_EXTENSIONS = {
7243
5648
  },
7244
5649
  };
7245
5650
 
7246
- const style$7 = {
5651
+ const style$6 = {
7247
5652
  FormWrapper: {},
7248
5653
  ErrorInput: {
7249
5654
  "&::part(base)": {
7250
- border: "1px solid var(--sl-color-danger-500)",
5655
+ border: "var(--sqm-border-thickness, 1px) solid var(--sqm-danger-color-border)",
7251
5656
  borderRadius: "var(--sl-input-border-radius-medium)",
7252
5657
  },
7253
5658
  "&::part(help-text)": {
7254
- color: "var(--sl-color-danger-500)",
5659
+ color: "var(--sqm-danger-color-text)",
7255
5660
  },
7256
5661
  },
7257
5662
  ErrorText: {
7258
- color: "var(--sl-color-danger-500)",
5663
+ color: "var(--sqm-danger-color-text)",
7259
5664
  marginTop: "10px",
7260
5665
  },
7261
5666
  TextContainer: {
@@ -7286,9 +5691,6 @@ const style$7 = {
7286
5691
  justifyContent: "flex-start",
7287
5692
  flexDirection: "column",
7288
5693
  },
7289
- DescriptionText: {
7290
- color: "var(--sl-color-neutral-500)",
7291
- },
7292
5694
  BoldText: {
7293
5695
  fontWeight: "bold",
7294
5696
  },
@@ -7297,28 +5699,8 @@ const style$7 = {
7297
5699
  borderRadius: "50%",
7298
5700
  },
7299
5701
  },
7300
- AlertContainer: {
7301
- "&::part(base)": {
7302
- backgroundColor: "var(--sl-color-red-100)",
7303
- borderTop: "none",
7304
- padding: "0 16px",
7305
- },
7306
- "& sl-icon::part(base)": {
7307
- color: "var(--sl-color-danger-500)",
7308
- },
7309
- },
7310
- PartnerAlertContainer: {
7311
- "&::part(base)": {
7312
- backgroundColor: "var(--sl-color-sky-100)",
7313
- borderTop: "none",
7314
- padding: "0 16px",
7315
- },
7316
- "& sl-icon::part(base)": {
7317
- color: "var(--sl-color-blue-500)",
7318
- },
7319
- },
7320
5702
  PageDescriptionText: {
7321
- color: "var(--sl-color-neutral-500)",
5703
+ color: "var(--sqm-text-subdued)",
7322
5704
  fontSize: "var(--sl-font-size-medium)",
7323
5705
  },
7324
5706
  PhoneInputsSection: {
@@ -7327,7 +5709,7 @@ const style$7 = {
7327
5709
  gap: "4px",
7328
5710
  "& p": {
7329
5711
  fontSize: "var(--sl-font-size-small)",
7330
- color: "var(--sl-input-label-color)",
5712
+ color: "var(--sqm-input-label-color)",
7331
5713
  fontWeight: "var(--sl-font-weight-semibold)",
7332
5714
  },
7333
5715
  },
@@ -7341,8 +5723,8 @@ const style$7 = {
7341
5723
  },
7342
5724
  },
7343
5725
  };
7344
- const sheet$6 = createStyleSheet(style$7);
7345
- const styleString$6 = sheet$6.toString();
5726
+ const sheet$5 = createStyleSheet(style$6);
5727
+ const styleString$5 = sheet$5.toString();
7346
5728
  const vanillaStyle$4 = `
7347
5729
  :host{
7348
5730
  display: block;
@@ -7352,6 +5734,11 @@ const vanillaStyle$4 = `
7352
5734
  padding: 0;
7353
5735
  box-sizing: border-box;
7354
5736
  }
5737
+ a {
5738
+ color: var(--sqm-text);
5739
+ color: inherit !important;
5740
+ text-decoration: underline;
5741
+ }
7355
5742
 
7356
5743
  p {
7357
5744
  line-height: 18px;
@@ -7366,11 +5753,163 @@ const vanillaStyle$4 = `
7366
5753
  sl-select#phoneNumberCountryCode::part(menu) {
7367
5754
  min-width: 250px;
7368
5755
  }
7369
- `;
5756
+
5757
+ sl-button[type="primary"]::part(base){
5758
+ background-color: var(--sqm-primary-button-background);
5759
+ color: var(--sqm-primary-button-color);
5760
+ border-color: var(--sqm-primary-button-color-border);
5761
+ border-radius: var(--sqm-primary-button-radius);
5762
+ }
5763
+
5764
+ sl-button[type="primary"]::part(base):hover{
5765
+ background-color: var(--sqm-primary-button-background-hover);
5766
+ }
5767
+
5768
+ sl-button[type="primary"]::part(base):focus{
5769
+ box-shadow: none;
5770
+ }
5771
+
5772
+ sl-button[type="secondary"]::part(base){
5773
+ background-color: var(--sqm-secondary-button-background);
5774
+ color: var(--sqm-secondary-button-color);
5775
+ border-color: var(--sqm-secondary-button-color-border);
5776
+ border-radius: var(--sqm-secondary-button-radius);
5777
+ }
5778
+
5779
+ sl-button[type="secondary"]::part(base):hover{
5780
+ background-color: var(--sqm-secondary-button-background-hover);
5781
+ }
5782
+
5783
+
5784
+
5785
+ *::part(primarybutton-base){
5786
+ background-color: var(--sqm-primary-button-background);
5787
+ color: var(--sqm-primary-button-color);
5788
+ border-color: var(--sqm-primary-button-color-border);
5789
+ border-radius: var(--sqm-primary-button-radius);
5790
+ }
5791
+
5792
+ *::part(primarybutton-base):hover{
5793
+ background-color: var(--sqm-primary-button-background-hover);
5794
+ }
5795
+
5796
+ *::part(primarybutton-base):focus{
5797
+ box-shadow: none;
5798
+ }
5799
+
5800
+ *::part(secondarybutton-base){
5801
+ background-color: var(--sqm-secondary-button-background);
5802
+ color: var(--sqm-secondary-button-color);
5803
+ border-color: var(--sqm-secondary-button-color-border);
5804
+ border-radius: var(--sqm-secondary-button-radius);
5805
+ }
5806
+
5807
+ *::part(secondarybutton-base):hover{
5808
+ background-color: var(--sqm-secondary-button-background-hover);
5809
+ }
5810
+
5811
+ *::part(secondarybutton-base){
5812
+ background-color: var(--sqm-secondary-button-background);
5813
+ color: var(--sqm-secondary-button-color);
5814
+ border-color: var(--sqm-secondary-button-color-border);
5815
+ border-radius: var(--sqm-secondary-button-radius);
5816
+ width: max-content;
5817
+ display: flex;
5818
+ margin: auto;
5819
+ }
5820
+
5821
+ *::part(secondarybutton-base):hover{
5822
+ background: var(--sqm-secondary-button-background-hover);
5823
+ }
5824
+
5825
+ sl-input::part(label),
5826
+ sl-select::part(label),
5827
+ sl-textarea::part(label){
5828
+ font-size: var(--sqm-input-label-font-size, var(--sl-input-font-size-small));
5829
+ font-weight: var(--sl-font-weight-semibold);
5830
+ color: var(--sqm-input-label-color, var(--sqm-text), black);
5831
+ }
5832
+
5833
+ /* Corrected: Target sl-input, sl-select, sl-textarea base elements */
5834
+ sl-input::part(base),
5835
+ sl-dropdown::part(base),
5836
+ sl-textarea::part(base){
5837
+ background-color: var(--sqm-input-background, #fff);
5838
+ border-radius: var(--sqm-input-border-radius, var(--sl-input-border-radius-large), 0.25rem);
5839
+ color: var(--sqm-input-color, white);
5840
+ border-width: var(--sqm-border-thickness, 1px);
5841
+ border-style: solid;
5842
+ border-color: var(--sqm-input-border-color, #ccc);
5843
+ }
5844
+
5845
+
5846
+ sl-select::part(menu) {
5847
+ background: var(--sqm-input-background, inherit);
5848
+ color: var(--sqm-input-color, inherit);
5849
+ border:none;
5850
+ }
5851
+
5852
+ sl-menu-item::part(base) {
5853
+ color: var(--sqm-input-color);
5854
+ }
5855
+
5856
+ sl-menu-item::part(base):hover {
5857
+ background-color: var(--sqm-input-border-color-hover);
5858
+ }
5859
+
5860
+ sl-select::part(panel) {
5861
+ border-radius: var(--sqm-border-radius-normal);
5862
+ }
5863
+
5864
+ sl-select::part(help-text) {
5865
+ color: var(--sqm-text-subdued, var(--sl-input-help-text-color, #6c757d));
5866
+ }
5867
+
5868
+ sl-input::part(base):focus,
5869
+ sl-select::part(base):focus, /* Corrected part name for sl-select */
5870
+ sl-textarea::part(base):focus { /* Corrected part name for sl-textarea */
5871
+ border: var(--sqm-input-focus-border, 1px solid var(--sl-input-border-color-focus, #007bff)); /* Added fallback for --sl-input-border-color-focus */
5872
+ }
5873
+
5874
+ sl-input[disabled]::part(base),
5875
+ sl-select[disabled]::part(base),
5876
+ sl-textarea[disabled]::part(base){
5877
+ background: var(--sqm-input-disabled-background, #f5f5f5);
5878
+ border-color: var(--sl-input-border-color-disabled, #e0e0e0); /* Example disabled border color */
5879
+ }
5880
+
5881
+
5882
+ sl-input::part(input):-webkit-autofill {
5883
+ box-shadow: 0 0 0 50px var(--sqm-input-background, #fff) inset !important;
5884
+ -webkit-text-fill-color: var(--sqm-input-color, white) !important;
5885
+ }
5886
+
5887
+ sl-input::part(input):-webkit-autofill:hover {
5888
+ box-shadow: 0 0 0 50px var(--sqm-input-background, #fff) inset !important;
5889
+ -webkit-text-fill-color: var(--sqm-input-color, white) !important;
5890
+ }
5891
+
5892
+ sl-input::part(input):-webkit-autofill:focus {
5893
+ box-shadow: 0 0 0 50px var(--sqm-input-background, #fff) inset !important;
5894
+ -webkit-text-fill-color: var(--sqm-input-color, white) !important;
5895
+ }
5896
+
5897
+ sl-checkbox::part(label){
5898
+ color: var(--sqm-text);
5899
+ }
5900
+
5901
+ sl-checkbox[checked]::part(control){
5902
+ background-color: var(--sqm-input-border-color-focus);
5903
+ }
5904
+
5905
+ sl-checkbox[checked]::part(checked-icon){
5906
+ color: var(--sqm-input-background);
5907
+ }
5908
+ `;
7370
5909
  const UserInfoFormView = (props) => {
7371
5910
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
7372
5911
  const { states, states: { formState }, callbacks, text, refs, data, } = props;
7373
- const { classes } = sheet$6;
5912
+ const { classes } = sheet$5;
7374
5913
  const bankingCollectionText = intl.formatMessage({
7375
5914
  id: "bankingCollectionText",
7376
5915
  defaultMessage: text.allowBankingCollection,
@@ -7393,21 +5932,18 @@ const UserInfoFormView = (props) => {
7393
5932
  }
7394
5933
  return (h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
7395
5934
  h("style", { type: "text/css" },
7396
- styleString$6,
5935
+ styleString$5,
7397
5936
  vanillaStyle$4),
7398
5937
  states.loadingError && (h("div", null,
7399
- h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$6.classes.AlertContainer },
7400
- h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
7401
- h("strong", null, text.error.loadingErrorAlertHeader),
7402
- h("br", null),
7403
- intl.formatMessage({
5938
+ h("sqm-form-message", { type: "error" },
5939
+ h("p", { part: "alert-title" }, text.error.loadingErrorAlertHeader),
5940
+ h("p", { part: "alert-description" }, intl.formatMessage({
7404
5941
  id: "loadingErrorAlertDescription",
7405
5942
  defaultMessage: text.error.loadingErrorAlertDescription,
7406
5943
  }, {
7407
5944
  supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
7408
- })),
7409
- h("br", null))),
7410
- states.loading ? (h(GeneralLoadingView, null)) : (h("div", null,
5945
+ }))))),
5946
+ states.loading ? (h(LoadingView, null)) : (h("div", null,
7411
5947
  h("div", { class: classes.TextContainer },
7412
5948
  h("div", null,
7413
5949
  !states.hideSteps && (h("p", null, intl.formatMessage({
@@ -7416,29 +5952,25 @@ const UserInfoFormView = (props) => {
7416
5952
  }, { step: states.step, count: FORM_STEPS }))),
7417
5953
  h("h3", null, text.personalInformation),
7418
5954
  h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
7419
- ((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$6.classes.AlertContainer },
7420
- h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
7421
- h("strong", null, text.error.generalTitle),
7422
- h("br", null),
7423
- intl.formatMessage({
5955
+ ((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sqm-form-message", { type: "error" },
5956
+ h("p", { part: "alert-title" }, text.error.generalTitle),
5957
+ h("p", { part: "alert-description" }, intl.formatMessage({
7424
5958
  id: "generalDescription",
7425
5959
  defaultMessage: text.error.generalDescription,
7426
5960
  }, {
7427
5961
  supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
7428
- }))),
7429
- (states.isPartner || states.isUser) && (h("sl-alert", { type: "primary", open: true, class: sheet$6.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
7430
- h("sl-icon", { slot: "icon", name: "info-circle" }),
7431
- h("strong", null, text.isPartnerAlertHeader),
7432
- h("br", null),
7433
- intl.formatMessage({
5962
+ })))),
5963
+ (states.isPartner || states.isUser) && (h("sqm-form-message", { type: "info" },
5964
+ h("p", { part: "alert-title" }, text.isPartnerAlertHeader),
5965
+ h("p", { part: "alert-description" }, intl.formatMessage({
7434
5966
  id: "isPartnerAlertDescription",
7435
5967
  defaultMessage: text.isPartnerAlertDescription,
7436
5968
  }, {
7437
5969
  supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
7438
- }))),
5970
+ })))),
7439
5971
  h("div", null,
7440
5972
  h("div", { class: classes.InputContainer },
7441
- 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) ? {
5973
+ 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) ? {
7442
5974
  class: classes.ErrorInput,
7443
5975
  helpText: formatErrorMessage(text.firstName, formState.errors.firstName),
7444
5976
  }
@@ -7542,7 +6074,7 @@ const UserInfoFormView = (props) => {
7542
6074
  " - ",
7543
6075
  c.displayName)))),
7544
6076
  h("div", { class: classes.CheckboxWrapper },
7545
- h("sl-checkbox", { exportparts: "label: input-label, base: input-base", checked: formState.allowBankingCollection === true, "onSl-change": (e) => {
6077
+ h("sl-checkbox", { checked: formState.allowBankingCollection === true, "onSl-change": (e) => {
7546
6078
  e.target.value = e.target.checked;
7547
6079
  }, disabled: states.isPartner ? false : states.disabled, required: true, value: formState.allowBankingCollection, id: "allowBankingCollection", name: "/allowBankingCollection" }, bankingCollectionText),
7548
6080
  ((_u = formState.errors) === null || _u === void 0 ? void 0 : _u.allowBankingCollection) && (h("p", { class: classes.ErrorText }, formatErrorMessage(text.termsAndConditionsLabel, formState.errors.allowBankingCollection))))),
@@ -7920,19 +6452,20 @@ const TaxForm = class {
7920
6452
  }
7921
6453
  render() {
7922
6454
  const props = isDemo() ? useDemoUserInfoForm(this) : useUserInfoForm(this);
7923
- return (h(Host, null, h(UserInfoFormView, { data: props.data,
6455
+ return (h(UserInfoFormView, { data: props.data,
7924
6456
  // @ts-ignore
7925
6457
  states: props.states, callbacks: {
7926
6458
  ...props.callbacks,
7927
6459
  onSubmit: props.onSubmit,
7928
- }, text: props.text, refs: props.refs })));
6460
+ }, text: props.text, refs: props.refs }));
7929
6461
  }
7930
6462
  };
7931
6463
  function useDemoUserInfoForm(props) {
7932
6464
  const setStep = En(TAX_CONTEXT_NAMESPACE);
6465
+ // @ts-ignore
7933
6466
  return cjs({
7934
6467
  setStep,
7935
- onSubmit: () => {
6468
+ onSubmit: async () => {
7936
6469
  setStep("/2");
7937
6470
  },
7938
6471
  onRadioClick: () => { },
@@ -7975,4 +6508,4 @@ function useDemoUserInfoForm(props) {
7975
6508
  }, props.demoData || {}, { arrayMerge: (_, a) => a });
7976
6509
  }
7977
6510
 
7978
- export { BankingInfoForm as sqm_banking_info_form, WidgetCodeVerification as sqm_code_verification, DocusignForm as sqm_docusign_form, IndirectTaxForm as sqm_indirect_tax_form, InvoiceTable as sqm_invoice_table, InvoiceTableDataCell as sqm_invoice_table_data_cell, InvoiceTableDataColumn as sqm_invoice_table_data_column, RewardTableDateCell as sqm_invoice_table_date_cell, InvoiceTableDateColumn as sqm_invoice_table_date_column, InvoiceTableDownloadCell as sqm_invoice_table_download_cell, InvoiceTableGenericColumn as sqm_invoice_table_download_column, PayoutDetailsCard as sqm_payout_details_card, TableCell as sqm_table_cell, TableRow as sqm_table_row, TaxAndCashMonolith as sqm_tax_and_cash, TaxAndCashDashboard as sqm_tax_and_cash_dashboard, TaxForm as sqm_user_info_form };
6511
+ export { BankingInfoForm as sqm_banking_info_form, DocusignForm as sqm_docusign_form, IndirectTaxForm as sqm_indirect_tax_form, InvoiceTable as sqm_invoice_table, InvoiceTableDataColumn as sqm_invoice_table_data_column, InvoiceTableDateColumn as sqm_invoice_table_date_column, InvoiceTableGenericColumn as sqm_invoice_table_download_column, PayoutDetailsCard as sqm_payout_details_card, TaxAndCashDashboard as sqm_tax_and_cash_dashboard, TaxForm as sqm_user_info_form };