@saasquatch/mint-components 1.15.0-5 → 1.15.0-50

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 (854) hide show
  1. package/dist/cjs/{ErrorView-b2fcf954.js → ErrorView-5504c2b6.js} +1 -1
  2. package/dist/cjs/{GenericTableView-f0e9c531.js → GenericTableView-107ade89.js} +6 -6
  3. package/dist/cjs/IndirectTaxDetailsView-6e117dd3.js +646 -0
  4. package/dist/cjs/{ShadowViewAddon-3f11bc68.js → ShadowViewAddon-e1bcffe2.js} +1475 -1435
  5. package/dist/cjs/copy-text-view-95cf4875.js +122 -0
  6. package/dist/cjs/data-68a42a7b.js +137 -0
  7. package/dist/cjs/{email-registration-view-55b378dc.js → email-registration-view-996fb438.js} +3 -3
  8. package/dist/cjs/{extractProps-fd93ba62.js → extractProps-e9c55ba8.js} +14 -0
  9. package/dist/cjs/{global-261393c6.js → global-6d0d196d.js} +293 -127
  10. package/dist/cjs/{index-a29c60ef.js → index-a43a63b4.js} +4 -0
  11. package/dist/cjs/{index.module-ee84433d.js → index.module-39955732.js} +1 -1
  12. package/dist/cjs/loader.cjs.js +5 -5
  13. package/dist/cjs/{luxon-2926d85f.js → luxon-3b809948.js} +1 -1
  14. package/dist/cjs/mint-components.cjs.js +5 -5
  15. package/dist/cjs/{mixins-f7e0377a.js → mixins-4761d472.js} +6 -6
  16. package/dist/cjs/{mockRewardData-272e22d6.js → mockRewardData-baa02051.js} +2 -2
  17. package/dist/cjs/raisins-plop-target.cjs.entry.js +1 -1
  18. package/dist/cjs/{re-render-b324deab.js → re-render-28fed959.js} +2 -2
  19. package/dist/cjs/{sqm-banking-info-form_17.cjs.entry.js → sqm-banking-info-form_10.cjs.entry.js} +801 -2188
  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_42.cjs.entry.js} +892 -138
  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 +5 -5
  24. package/dist/cjs/sqm-code-verification.cjs.entry.js +342 -0
  25. package/dist/cjs/sqm-context-router.cjs.entry.js +3 -3
  26. package/dist/cjs/sqm-email-verification.cjs.entry.js +6 -6
  27. package/dist/cjs/sqm-empty_4.cjs.entry.js +53 -59
  28. package/dist/cjs/sqm-form-message.cjs.entry.js +2 -2
  29. package/dist/cjs/sqm-google-sign-in.cjs.entry.js +3 -3
  30. package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +3 -3
  31. package/dist/cjs/sqm-header-logo.cjs.entry.js +2 -2
  32. package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +8 -8
  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 +5 -5
  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 +4 -4
  38. package/dist/cjs/sqm-navigation-sidebar-item-view-188bfc41.js +56 -0
  39. package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +29 -6
  40. package/dist/cjs/{sqm-navigation-sidebar-view-17111896.js → sqm-navigation-sidebar-view-50ee8796.js} +17 -7
  41. package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +22 -6
  42. package/dist/cjs/sqm-pagination_3.cjs.entry.js +90 -63
  43. package/dist/cjs/sqm-password-field.cjs.entry.js +5 -5
  44. package/dist/cjs/sqm-popup-container.cjs.entry.js +3 -3
  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-8d5b23f3.js → sqm-portal-email-verification-view-14ea3a91.js} +4 -4
  47. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +7 -7
  48. package/dist/cjs/{sqm-portal-forgot-password-view-b986086e.js → sqm-portal-forgot-password-view-7519a332.js} +24 -16
  49. package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +36 -7
  50. package/dist/cjs/sqm-portal-google-login.cjs.entry.js +7 -7
  51. package/dist/cjs/sqm-portal-google-registration-form.cjs.entry.js +9 -9
  52. package/dist/cjs/{sqm-portal-login-view-84e99287.js → sqm-portal-login-view-bb50304c.js} +4 -4
  53. package/dist/cjs/sqm-portal-logout.cjs.entry.js +3 -3
  54. package/dist/cjs/{sqm-portal-profile-view-fcb3ea3f.js → sqm-portal-profile-view-570d2ae3.js} +4 -4
  55. package/dist/cjs/sqm-portal-profile.cjs.entry.js +7 -7
  56. package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +3 -3
  57. package/dist/cjs/{sqm-portal-registration-form-view-4377d849.js → sqm-portal-registration-form-view-5a96c2f5.js} +3 -3
  58. package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +8 -8
  59. package/dist/cjs/{sqm-portal-reset-password-view-52fc50fe.js → sqm-portal-reset-password-view-25eb2099.js} +3 -3
  60. package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +6 -6
  61. package/dist/cjs/{sqm-portal-verify-email-view-4f837226.js → sqm-portal-verify-email-view-1c4e781f.js} +3 -3
  62. package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +6 -6
  63. package/dist/cjs/{sqm-qr-code-view-3da9ed28.js → sqm-qr-code-view-2cca145e.js} +3 -3
  64. package/dist/cjs/sqm-qr-code.cjs.entry.js +6 -6
  65. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +121 -32
  66. package/dist/cjs/sqm-referred-registration.cjs.entry.js +7 -7
  67. package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +3 -3
  68. package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +4 -4
  69. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +69 -22
  70. package/dist/cjs/sqm-route.cjs.entry.js +1 -1
  71. package/dist/cjs/sqm-scroll.cjs.entry.js +2 -2
  72. package/dist/cjs/sqm-stencilbook.cjs.entry.js +13552 -12252
  73. package/dist/cjs/sqm-tab.cjs.entry.js +4 -4
  74. package/dist/cjs/sqm-tabs.cjs.entry.js +21 -9
  75. package/dist/cjs/sqm-tax-and-cash.cjs.entry.js +1255 -0
  76. package/dist/cjs/sqm-text-span-view-7a61ae4c.js +63 -0
  77. package/dist/cjs/sqm-text-span.cjs.entry.js +6 -6
  78. package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +14 -6
  79. package/dist/cjs/sqm-widget-verification.cjs.entry.js +20 -10
  80. package/dist/cjs/{stencil-hooks.module-3a336b0f.js → stencil-hooks.module-62264802.js} +1 -1
  81. package/dist/cjs/{useChildElements-1b35d945.js → useChildElements-e5fa605c.js} +2 -2
  82. package/dist/cjs/{useInstantAccessRegistration-0537e28e.js → useInstantAccessRegistration-86b7164c.js} +3 -3
  83. package/dist/cjs/{usePayoutStatus-4b5894ef.js → usePayoutStatus-3cca69e5.js} +10 -7
  84. package/dist/cjs/{usePortalLogin-63d896d1.js → usePortalLogin-e246988e.js} +2 -2
  85. package/dist/cjs/{usePortalRegistrationForm-f25d89e7.js → usePortalRegistrationForm-d28621de.js} +3 -3
  86. package/dist/cjs/{useReferralCodes-82e8797b.js → useReferralCodes-a47dcbc2.js} +2 -2
  87. package/dist/cjs/{useReferralTable-7c3f9600.js → useReferralTable-19e7523a.js} +5 -5
  88. package/dist/cjs/{useRegistrationFormState-7b820f0c.js → useRegistrationFormState-5f44ca80.js} +2 -2
  89. package/dist/cjs/{useVerificationEmail-95a82767.js → useVerificationEmail-1496b993.js} +2 -2
  90. package/dist/cjs/{utilities-78f5e169.js → utilities-be3ce1f8.js} +2 -2
  91. package/dist/cjs/utils-0b09e2cb.js +105 -0
  92. package/dist/collection/collection-manifest.json +1 -1
  93. package/dist/collection/components/sqm-big-stat/BigStat.stories.js +13 -0
  94. package/dist/collection/components/sqm-big-stat/sqm-big-stat-view.js +15 -7
  95. package/dist/collection/components/sqm-big-stat/sqm-big-stat.js +162 -2
  96. package/dist/collection/components/sqm-big-stat/useBigStat.js +15 -5
  97. package/dist/collection/components/sqm-big-stat/useDemoBigStat.js +13 -4
  98. package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +1 -0
  99. package/dist/collection/components/sqm-coupon-code/CouponCode.stories.js +4 -0
  100. package/dist/collection/components/sqm-coupon-code/sqm-coupon-code-view.js +13 -13
  101. package/dist/collection/components/sqm-coupon-code/sqm-coupon-code.js +169 -1
  102. package/dist/collection/components/sqm-coupon-code/useCouponCode.js +1 -0
  103. package/dist/collection/components/sqm-divided-layout/sqm-divided-layout-view.js +14 -6
  104. package/dist/collection/components/sqm-divided-layout/sqm-divided-layout.js +58 -1
  105. package/dist/collection/components/sqm-edit-profile/sqm-edit-profile-view.js +1 -1
  106. package/dist/collection/components/sqm-hero-image/sqm-hero-image-view.js +3 -2
  107. package/dist/collection/components/sqm-hero-image/sqm-hero-image.js +79 -0
  108. package/dist/collection/components/sqm-instant-access-registration/sqm-instant-access-registration.js +2 -2
  109. package/dist/collection/components/sqm-invoice-table/cells/sqm-invoice-table-download-cell.js +2 -2
  110. package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-data-column.js +2 -1
  111. package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-date-column.js +2 -1
  112. package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-download-column.js +2 -1
  113. package/dist/collection/components/sqm-invoice-table/sqm-invoice-table-view.js +1 -1
  114. package/dist/collection/components/sqm-invoice-table/sqm-invoice-table.js +4 -3
  115. package/dist/collection/components/sqm-leaderboard/Leaderboard.stories.js +37 -0
  116. package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +10 -4
  117. package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +197 -56
  118. package/dist/collection/components/sqm-leaderboard-rank/sqm-leaderboard-rank-view.js +2 -2
  119. package/dist/collection/components/sqm-logout-current-user/sqm-logout-current-user.js +1 -1
  120. package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +28 -3
  121. package/dist/collection/components/sqm-name-fields/sqm-name-fields.js +1 -0
  122. package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar-view.js +16 -6
  123. package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar.js +83 -5
  124. package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view.js +18 -7
  125. package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.js +233 -1
  126. package/dist/collection/components/sqm-navigation-sidebar-item/useNavigationSidebarItem.js +9 -1
  127. package/dist/collection/components/sqm-pagination/sqm-pagination-view.js +3 -3
  128. package/dist/collection/components/sqm-pagination/sqm-pagination.js +43 -0
  129. package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll-view.js +1 -1
  130. package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password-view.js +8 -4
  131. package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password.js +1 -1
  132. package/dist/collection/components/sqm-portal-container/sqm-portal-container-view.js +1 -1
  133. package/dist/collection/components/sqm-portal-container/sqm-portal-container.js +1 -8
  134. package/dist/collection/components/sqm-portal-footer/sqm-portal-footer-view.js +6 -6
  135. package/dist/collection/components/sqm-portal-forgot-password/PortalForgotPassword.stories.js +4 -4
  136. package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.js +21 -13
  137. package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password.js +103 -3
  138. package/dist/collection/components/sqm-portal-frame/sqm-portal-frame-view.js +41 -36
  139. package/dist/collection/components/sqm-portal-frame/sqm-portal-frame.js +103 -2
  140. package/dist/collection/components/sqm-portal-frame/usePortalFrame.js +4 -1
  141. package/dist/collection/components/sqm-portal-login/PortalLogin.stories.js +10 -5
  142. package/dist/collection/components/sqm-portal-login/sqm-portal-login-view.js +1 -1
  143. package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +1 -1
  144. package/dist/collection/components/sqm-portal-profile/sqm-portal-profile-view.js +1 -1
  145. package/dist/collection/components/sqm-portal-register/sqm-portal-register.js +1 -2
  146. package/dist/collection/components/sqm-portal-registration-form/PortalRegistrationForm.stories.js +1 -0
  147. package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step-view.js +9 -3
  148. package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step.js +77 -2
  149. package/dist/collection/components/sqm-qr-code/sqm-qr-code-view.js +1 -1
  150. package/dist/collection/components/sqm-referral-card/sqm-referral-card-view.js +32 -31
  151. package/dist/collection/components/sqm-referral-card/sqm-referral-card.js +77 -9
  152. package/dist/collection/components/sqm-referral-code/ReferralCode.stories.js +3 -0
  153. package/dist/collection/components/sqm-referral-code/sqm-referral-code.js +169 -1
  154. package/dist/collection/components/sqm-referral-codes/ReferralCodes.stories.js +6 -0
  155. package/dist/collection/components/sqm-referral-codes/sqm-referral-codes-view.js +46 -46
  156. package/dist/collection/components/sqm-referral-codes/sqm-referral-codes.js +28 -1
  157. package/dist/collection/components/sqm-referral-table/ReferralTable.stories.js +2 -2
  158. package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +55 -18
  159. package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-status-cell.js +62 -7
  160. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-column.js +2 -1
  161. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-date-column.js +4 -2
  162. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.js +6 -3
  163. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-status-column.js +6 -3
  164. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-user-column.js +4 -2
  165. package/dist/collection/components/sqm-referral-table/mockReferralData.js +1 -1
  166. package/dist/collection/components/sqm-referral-table/sqm-referral-table.js +2 -1
  167. package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeList.stories.js +19 -19
  168. package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeListData.js +31 -5
  169. package/dist/collection/components/sqm-reward-exchange-list/progressBar.js +10 -10
  170. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +39 -42
  171. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +1 -2
  172. package/dist/collection/components/sqm-rewards-table/RewardsTableCell.stories.js +3 -3
  173. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.js +4 -3
  174. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.js +5 -4
  175. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.js +57 -8
  176. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.js +2 -1
  177. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.js +2 -1
  178. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.js +2 -1
  179. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.js +2 -1
  180. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.js +4 -2
  181. package/dist/collection/components/sqm-rewards-table/mockRewardData.js +1 -1
  182. package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +3 -2
  183. package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +1 -1
  184. package/dist/collection/components/sqm-share-button/ShareButton.stories.js +3 -1
  185. package/dist/collection/components/sqm-share-button/sqm-share-button-view.js +23 -22
  186. package/dist/collection/components/sqm-share-button/sqm-share-button.js +53 -7
  187. package/dist/collection/components/sqm-share-code/sqm-share-code.js +169 -1
  188. package/dist/collection/components/sqm-share-link/ShareLink.stories.js +12 -0
  189. package/dist/collection/components/sqm-share-link/sqm-share-link.js +171 -3
  190. package/dist/collection/components/sqm-stat-container/sqm-stat-container-view.js +20 -8
  191. package/dist/collection/components/sqm-stat-container/sqm-stat-container.js +110 -2
  192. package/dist/collection/components/sqm-stencilbook/BrandSelector.js +198 -0
  193. package/dist/collection/components/sqm-stencilbook/Themes.js +325 -33
  194. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +81 -99
  195. package/dist/collection/components/sqm-tabs/Tabs.stories.js +7 -0
  196. package/dist/collection/components/sqm-tabs/sqm-tabs-view.js +14 -2
  197. package/dist/collection/components/sqm-tabs/sqm-tabs.js +28 -2
  198. package/dist/collection/components/sqm-task-card/DetailsView.js +8 -2
  199. package/dist/collection/components/sqm-task-card/progress-bar/progress-bar-view.js +3 -2
  200. package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +139 -157
  201. package/dist/collection/components/sqm-task-card/sqm-task-card.js +146 -0
  202. package/dist/collection/components/sqm-task-card/useTaskCard.js +10 -0
  203. package/dist/collection/components/sqm-text/Text.stories.js +12 -0
  204. package/dist/collection/components/sqm-text/sqm-text.js +100 -49
  205. package/dist/collection/components/sqm-text-span/sqm-text-span-view.js +44 -43
  206. package/dist/collection/components/sqm-text-span/sqm-text-span.js +51 -2
  207. package/dist/collection/components/sqm-timeline/Timeline.stories.js +8 -1
  208. package/dist/collection/components/sqm-timeline/sqm-timeline-entry-view.js +45 -45
  209. package/dist/collection/components/sqm-timeline/sqm-timeline-entry.js +52 -0
  210. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.js +2 -2
  211. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-controller.js +39 -5
  212. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +41 -6
  213. package/dist/collection/components/tax-and-cash/BankingForm.stories.js +12 -0
  214. package/dist/collection/components/tax-and-cash/TaxForm.stories.js +28 -8
  215. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/formDefinitions.js +1 -1
  216. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +60 -35
  217. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +108 -5
  218. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +8 -1
  219. package/dist/collection/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.js +3 -3
  220. package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +53 -27
  221. package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +82 -4
  222. package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +6 -2
  223. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +57 -13
  224. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +2 -2
  225. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +2 -2
  226. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card-view.js +31 -14
  227. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js +26 -1
  228. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/usePayoutDetailsCard.js +2 -2
  229. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +8 -5
  230. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +282 -30
  231. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +1 -1
  232. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +18 -18
  233. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +19 -4
  234. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +3 -3
  235. package/dist/collection/components/tax-and-cash/sqm-user-info-form/small-views/DocusignExpiredView.js +1 -1
  236. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +164 -18
  237. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +10 -10
  238. package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +3 -3
  239. package/dist/collection/components/views/copy-text-view.js +64 -38
  240. package/dist/collection/components/views/email-registration-view.js +1 -1
  241. package/dist/collection/global/mixins.js +6 -6
  242. package/dist/collection/global/styles.js +291 -125
  243. package/dist/collection/global/styles.ts +391 -120
  244. package/dist/collection/stories/PortalTemplates.stories.js +22 -30
  245. package/dist/collection/tables/GenericTableView.js +4 -4
  246. package/dist/collection/utils/parseStates.js +12 -0
  247. package/dist/esm/{ErrorView-48e2b969.js → ErrorView-eaafd6f5.js} +1 -1
  248. package/dist/esm/{GenericTableView-e7addb2b.js → GenericTableView-dd9be3ea.js} +6 -6
  249. package/dist/esm/IndirectTaxDetailsView-2eff2cc8.js +639 -0
  250. package/dist/esm/{ShadowViewAddon-f5791215.js → ShadowViewAddon-dc890af9.js} +1476 -1435
  251. package/dist/esm/copy-text-view-6dec9902.js +120 -0
  252. package/dist/esm/data-ce8ed0ae.js +121 -0
  253. package/dist/esm/{email-registration-view-a7818cf2.js → email-registration-view-db81655f.js} +3 -3
  254. package/dist/esm/{extractProps-ae1afbb3.js → extractProps-54064fb0.js} +14 -1
  255. package/dist/esm/{global-7b65dcb8.js → global-64286824.js} +293 -127
  256. package/dist/esm/{index-91e7729f.js → index-b3a06de8.js} +4 -0
  257. package/dist/esm/{index.module-89a79f66.js → index.module-d49ae5e7.js} +1 -1
  258. package/dist/esm/loader.js +5 -5
  259. package/dist/esm/{luxon-8d51c92b.js → luxon-793b7f13.js} +1 -1
  260. package/dist/esm/mint-components.js +5 -5
  261. package/dist/esm/{mixins-83f90fa1.js → mixins-f750863a.js} +6 -6
  262. package/dist/esm/{mockRewardData-8bd1b356.js → mockRewardData-3d8fe7b0.js} +2 -2
  263. package/dist/esm/raisins-plop-target.entry.js +1 -1
  264. package/dist/esm/{re-render-cc945f38.js → re-render-789f9123.js} +2 -2
  265. package/dist/esm/{sqm-banking-info-form_17.entry.js → sqm-banking-info-form_10.entry.js} +723 -2103
  266. package/dist/esm/{sqm-base-registration-form-view-31f1cb87.js → sqm-base-registration-form-view-193f1721.js} +3 -3
  267. package/dist/esm/{sqm-big-stat_41.entry.js → sqm-big-stat_42.entry.js} +895 -142
  268. package/dist/esm/{sqm-close-button-view-f9819751.js → sqm-close-button-view-2fa57229.js} +2 -2
  269. package/dist/esm/sqm-close-button.entry.js +5 -5
  270. package/dist/esm/sqm-code-verification.entry.js +338 -0
  271. package/dist/esm/sqm-context-router.entry.js +3 -3
  272. package/dist/esm/sqm-email-verification.entry.js +6 -6
  273. package/dist/esm/sqm-empty_4.entry.js +53 -59
  274. package/dist/esm/sqm-form-message.entry.js +2 -2
  275. package/dist/esm/sqm-google-sign-in.entry.js +3 -3
  276. package/dist/esm/sqm-graphql-client-provider.entry.js +3 -3
  277. package/dist/esm/sqm-header-logo.entry.js +2 -2
  278. package/dist/esm/sqm-instant-access-registration.entry.js +8 -8
  279. package/dist/esm/sqm-invoice-table-data-cell_5.entry.js +76 -0
  280. package/dist/esm/sqm-leaderboard-rank-view-18baae5b.js +8 -0
  281. package/dist/esm/sqm-leaderboard-rank.entry.js +5 -5
  282. package/dist/esm/{sqm-logout-current-user-view-8ef8180f.js → sqm-logout-current-user-view-f21e54e3.js} +1 -1
  283. package/dist/esm/sqm-logout-current-user.entry.js +4 -4
  284. package/dist/esm/sqm-navigation-sidebar-item-view-30c52ccd.js +54 -0
  285. package/dist/esm/sqm-navigation-sidebar-item.entry.js +29 -6
  286. package/dist/esm/{sqm-navigation-sidebar-view-9d802b78.js → sqm-navigation-sidebar-view-6c13798c.js} +17 -7
  287. package/dist/esm/sqm-navigation-sidebar.entry.js +22 -6
  288. package/dist/esm/sqm-pagination_3.entry.js +90 -63
  289. package/dist/esm/sqm-password-field.entry.js +5 -5
  290. package/dist/esm/sqm-popup-container.entry.js +3 -3
  291. package/dist/esm/{sqm-portal-container-view-1683ae32.js → sqm-portal-container-view-176e92e3.js} +2 -2
  292. package/dist/esm/{sqm-portal-email-verification-view-3bd4f1d9.js → sqm-portal-email-verification-view-86d50913.js} +4 -4
  293. package/dist/esm/sqm-portal-email-verification.entry.js +7 -7
  294. package/dist/esm/{sqm-portal-forgot-password-view-50444a7c.js → sqm-portal-forgot-password-view-dc6b4f26.js} +24 -16
  295. package/dist/esm/sqm-portal-forgot-password.entry.js +36 -7
  296. package/dist/esm/sqm-portal-google-login.entry.js +7 -7
  297. package/dist/esm/sqm-portal-google-registration-form.entry.js +9 -9
  298. package/dist/esm/{sqm-portal-login-view-37c85d04.js → sqm-portal-login-view-7670cd86.js} +4 -4
  299. package/dist/esm/sqm-portal-logout.entry.js +3 -3
  300. package/dist/esm/{sqm-portal-profile-view-3a751a15.js → sqm-portal-profile-view-c2b82f77.js} +4 -4
  301. package/dist/esm/sqm-portal-profile.entry.js +7 -7
  302. package/dist/esm/sqm-portal-protected-route.entry.js +3 -3
  303. package/dist/esm/{sqm-portal-registration-form-view-21d57492.js → sqm-portal-registration-form-view-8bdc3804.js} +3 -3
  304. package/dist/esm/sqm-portal-registration-form.entry.js +8 -8
  305. package/dist/esm/{sqm-portal-reset-password-view-b000ffc5.js → sqm-portal-reset-password-view-abef7286.js} +3 -3
  306. package/dist/esm/sqm-portal-reset-password.entry.js +6 -6
  307. package/dist/esm/{sqm-portal-verify-email-view-2983ba9b.js → sqm-portal-verify-email-view-33805220.js} +3 -3
  308. package/dist/esm/sqm-portal-verify-email.entry.js +6 -6
  309. package/dist/esm/{sqm-qr-code-view-10b8b4cb.js → sqm-qr-code-view-11121d3c.js} +3 -3
  310. package/dist/esm/sqm-qr-code.entry.js +6 -6
  311. package/dist/esm/sqm-referral-table_11.entry.js +121 -32
  312. package/dist/esm/sqm-referred-registration.entry.js +7 -7
  313. package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +3 -3
  314. package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +4 -4
  315. package/dist/esm/sqm-rewards-table_9.entry.js +69 -22
  316. package/dist/esm/sqm-route.entry.js +1 -1
  317. package/dist/esm/sqm-scroll.entry.js +2 -2
  318. package/dist/esm/sqm-stencilbook.entry.js +13550 -12250
  319. package/dist/esm/sqm-tab.entry.js +4 -4
  320. package/dist/esm/sqm-tabs.entry.js +21 -9
  321. package/dist/esm/sqm-tax-and-cash.entry.js +1251 -0
  322. package/dist/esm/sqm-text-span-view-4c17b8c9.js +61 -0
  323. package/dist/esm/sqm-text-span.entry.js +6 -6
  324. package/dist/esm/sqm-widget-verification-controller.entry.js +14 -6
  325. package/dist/esm/sqm-widget-verification.entry.js +20 -10
  326. package/dist/esm/{stencil-hooks.module-4bc38af4.js → stencil-hooks.module-20ad2b5f.js} +1 -1
  327. package/dist/esm/{useChildElements-7945ae56.js → useChildElements-0ca9a015.js} +2 -2
  328. package/dist/esm/{useInstantAccessRegistration-dc4ad9f2.js → useInstantAccessRegistration-b224f3ce.js} +3 -3
  329. package/dist/esm/{usePayoutStatus-58aa56b4.js → usePayoutStatus-e92a6e43.js} +10 -7
  330. package/dist/esm/{usePortalLogin-ef647a50.js → usePortalLogin-6b1951c6.js} +2 -2
  331. package/dist/esm/{usePortalRegistrationForm-4b35a357.js → usePortalRegistrationForm-61bf948d.js} +3 -3
  332. package/dist/esm/{useReferralCodes-8f75921a.js → useReferralCodes-0b798295.js} +2 -2
  333. package/dist/esm/{useReferralTable-b3876ed6.js → useReferralTable-c1511d9d.js} +5 -5
  334. package/dist/esm/{useRegistrationFormState-d6f33135.js → useRegistrationFormState-2db047e9.js} +2 -2
  335. package/dist/esm/{useVerificationEmail-edc318cb.js → useVerificationEmail-085eda87.js} +2 -2
  336. package/dist/esm/{utilities-5b0ca040.js → utilities-6341d9fd.js} +2 -2
  337. package/dist/esm/utils-517e9b20.js +97 -0
  338. package/dist/esm-es5/{ErrorView-48e2b969.js → ErrorView-eaafd6f5.js} +1 -1
  339. package/dist/esm-es5/GenericTableView-dd9be3ea.js +1 -0
  340. package/dist/esm-es5/IndirectTaxDetailsView-2eff2cc8.js +1 -0
  341. package/dist/esm-es5/ShadowViewAddon-dc890af9.js +1 -0
  342. package/dist/esm-es5/copy-text-view-6dec9902.js +1 -0
  343. package/dist/esm-es5/data-ce8ed0ae.js +1 -0
  344. package/dist/esm-es5/email-registration-view-db81655f.js +1 -0
  345. package/dist/esm-es5/extractProps-54064fb0.js +1 -0
  346. package/dist/esm-es5/{global-7b65dcb8.js → global-64286824.js} +5 -5
  347. package/dist/esm-es5/{index-91e7729f.js → index-b3a06de8.js} +1 -1
  348. package/dist/esm-es5/{index.module-89a79f66.js → index.module-d49ae5e7.js} +1 -1
  349. package/dist/esm-es5/loader.js +1 -1
  350. package/dist/esm-es5/{luxon-8d51c92b.js → luxon-793b7f13.js} +1 -1
  351. package/dist/esm-es5/mint-components.js +1 -1
  352. package/dist/esm-es5/mixins-f750863a.js +1 -0
  353. package/dist/esm-es5/{mockRewardData-8bd1b356.js → mockRewardData-3d8fe7b0.js} +1 -1
  354. package/dist/esm-es5/raisins-plop-target.entry.js +1 -1
  355. package/dist/esm-es5/{re-render-cc945f38.js → re-render-789f9123.js} +1 -1
  356. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -0
  357. package/dist/esm-es5/{sqm-base-registration-form-view-31f1cb87.js → sqm-base-registration-form-view-193f1721.js} +1 -1
  358. package/dist/esm-es5/sqm-big-stat_42.entry.js +1 -0
  359. package/dist/esm-es5/{sqm-close-button-view-f9819751.js → sqm-close-button-view-2fa57229.js} +1 -1
  360. package/dist/esm-es5/sqm-close-button.entry.js +1 -1
  361. package/dist/esm-es5/sqm-code-verification.entry.js +1 -0
  362. package/dist/esm-es5/sqm-context-router.entry.js +1 -1
  363. package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
  364. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  365. package/dist/esm-es5/sqm-form-message.entry.js +1 -1
  366. package/dist/esm-es5/sqm-google-sign-in.entry.js +1 -1
  367. package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
  368. package/dist/esm-es5/sqm-header-logo.entry.js +1 -1
  369. package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
  370. package/dist/esm-es5/sqm-invoice-table-data-cell_5.entry.js +1 -0
  371. package/dist/esm-es5/sqm-leaderboard-rank-view-18baae5b.js +1 -0
  372. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  373. package/dist/esm-es5/{sqm-logout-current-user-view-8ef8180f.js → sqm-logout-current-user-view-f21e54e3.js} +1 -1
  374. package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
  375. package/dist/esm-es5/sqm-navigation-sidebar-item-view-30c52ccd.js +1 -0
  376. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  377. package/dist/esm-es5/sqm-navigation-sidebar-view-6c13798c.js +1 -0
  378. package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
  379. package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
  380. package/dist/esm-es5/sqm-password-field.entry.js +1 -1
  381. package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
  382. package/dist/esm-es5/{sqm-portal-container-view-1683ae32.js → sqm-portal-container-view-176e92e3.js} +1 -1
  383. package/dist/esm-es5/{sqm-portal-email-verification-view-3bd4f1d9.js → sqm-portal-email-verification-view-86d50913.js} +1 -1
  384. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  385. package/dist/esm-es5/sqm-portal-forgot-password-view-dc6b4f26.js +1 -0
  386. package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
  387. package/dist/esm-es5/sqm-portal-google-login.entry.js +1 -1
  388. package/dist/esm-es5/sqm-portal-google-registration-form.entry.js +1 -1
  389. package/dist/esm-es5/sqm-portal-login-view-7670cd86.js +1 -0
  390. package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
  391. package/dist/esm-es5/{sqm-portal-profile-view-3a751a15.js → sqm-portal-profile-view-c2b82f77.js} +1 -1
  392. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  393. package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
  394. package/dist/esm-es5/{sqm-portal-registration-form-view-21d57492.js → sqm-portal-registration-form-view-8bdc3804.js} +1 -1
  395. package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
  396. package/dist/esm-es5/{sqm-portal-reset-password-view-b000ffc5.js → sqm-portal-reset-password-view-abef7286.js} +1 -1
  397. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  398. package/dist/esm-es5/{sqm-portal-verify-email-view-2983ba9b.js → sqm-portal-verify-email-view-33805220.js} +1 -1
  399. package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
  400. package/dist/esm-es5/{sqm-qr-code-view-10b8b4cb.js → sqm-qr-code-view-11121d3c.js} +1 -1
  401. package/dist/esm-es5/sqm-qr-code.entry.js +1 -1
  402. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  403. package/dist/esm-es5/sqm-referred-registration.entry.js +1 -1
  404. package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -1
  405. package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
  406. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  407. package/dist/esm-es5/sqm-route.entry.js +1 -1
  408. package/dist/esm-es5/sqm-scroll.entry.js +1 -1
  409. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  410. package/dist/esm-es5/sqm-tab.entry.js +1 -1
  411. package/dist/esm-es5/sqm-tabs.entry.js +1 -1
  412. package/dist/esm-es5/sqm-tax-and-cash.entry.js +1 -0
  413. package/dist/esm-es5/sqm-text-span-view-4c17b8c9.js +1 -0
  414. package/dist/esm-es5/sqm-text-span.entry.js +1 -1
  415. package/dist/esm-es5/sqm-widget-verification-controller.entry.js +1 -1
  416. package/dist/esm-es5/sqm-widget-verification.entry.js +1 -1
  417. package/dist/esm-es5/{stencil-hooks.module-4bc38af4.js → stencil-hooks.module-20ad2b5f.js} +1 -1
  418. package/dist/esm-es5/{useChildElements-7945ae56.js → useChildElements-0ca9a015.js} +1 -1
  419. package/dist/esm-es5/{useInstantAccessRegistration-dc4ad9f2.js → useInstantAccessRegistration-b224f3ce.js} +1 -1
  420. package/dist/esm-es5/{usePayoutStatus-58aa56b4.js → usePayoutStatus-e92a6e43.js} +2 -2
  421. package/dist/esm-es5/{usePortalLogin-ef647a50.js → usePortalLogin-6b1951c6.js} +1 -1
  422. package/dist/esm-es5/{usePortalRegistrationForm-4b35a357.js → usePortalRegistrationForm-61bf948d.js} +1 -1
  423. package/dist/esm-es5/{useReferralCodes-8f75921a.js → useReferralCodes-0b798295.js} +1 -1
  424. package/dist/esm-es5/{useReferralTable-b3876ed6.js → useReferralTable-c1511d9d.js} +1 -1
  425. package/dist/esm-es5/{useRegistrationFormState-d6f33135.js → useRegistrationFormState-2db047e9.js} +1 -1
  426. package/dist/esm-es5/{useVerificationEmail-edc318cb.js → useVerificationEmail-085eda87.js} +1 -1
  427. package/dist/esm-es5/{utilities-5b0ca040.js → utilities-6341d9fd.js} +1 -1
  428. package/dist/esm-es5/utils-517e9b20.js +1 -0
  429. package/dist/mint-components/global/styles.ts +391 -120
  430. package/dist/mint-components/mint-components.esm.js +1 -1
  431. package/dist/mint-components/mint-components.js +1 -1
  432. package/dist/mint-components/{p-266a8b4d.js → p-00791abc.js} +1 -1
  433. package/dist/mint-components/p-0126962c.entry.js +1 -0
  434. package/dist/mint-components/p-01c508cc.js +1 -0
  435. package/dist/mint-components/p-01dd6b18.system.js +1 -0
  436. package/dist/mint-components/{p-6d9e52c7.system.js → p-02c92db1.system.js} +1 -1
  437. package/dist/mint-components/{p-6d2f5a1d.js → p-037da77e.js} +2 -2
  438. package/dist/mint-components/{p-8175e85f.system.js → p-04007292.system.js} +1 -1
  439. package/dist/mint-components/{p-1fa9ed0d.system.entry.js → p-055e6ebd.system.entry.js} +1 -1
  440. package/dist/mint-components/{p-605c2904.system.entry.js → p-0714554e.system.entry.js} +1 -1
  441. package/dist/mint-components/p-0797a946.js +1 -0
  442. package/dist/mint-components/{p-e145e4f8.js → p-07dc6d68.js} +1 -1
  443. package/dist/mint-components/p-08cf4237.system.entry.js +1 -0
  444. package/dist/mint-components/p-0c327ec3.entry.js +1 -0
  445. package/dist/mint-components/p-0e532b53.entry.js +1 -0
  446. package/dist/mint-components/p-106e808d.entry.js +11 -0
  447. package/dist/mint-components/p-10c2a48c.system.js +1 -0
  448. package/dist/mint-components/{p-3a62a7e2.system.js → p-12fd7ee9.system.js} +1 -1
  449. package/dist/mint-components/{p-7c2b9fe4.system.js → p-167be4b9.system.js} +1 -1
  450. package/dist/mint-components/{p-c0b52238.entry.js → p-191c1dbf.entry.js} +2 -2
  451. package/dist/mint-components/p-1bdc4f94.system.entry.js +1 -0
  452. package/dist/mint-components/p-1cd0e1e9.system.js +1 -0
  453. package/dist/mint-components/{p-b7d1469d.system.entry.js → p-1d46f8fa.system.entry.js} +1 -1
  454. package/dist/mint-components/p-1e79befd.entry.js +1 -0
  455. package/dist/mint-components/{p-164a9103.system.entry.js → p-1f82181b.system.entry.js} +1 -1
  456. package/dist/mint-components/p-1fb297f9.entry.js +93 -0
  457. package/dist/mint-components/p-204861a6.js +1 -0
  458. package/dist/mint-components/{p-c0f19490.js → p-20b2f691.js} +1 -1
  459. package/dist/mint-components/p-22405668.entry.js +1 -0
  460. package/dist/mint-components/p-2378a0dd.entry.js +16 -0
  461. package/dist/mint-components/{p-ccf8c9aa.entry.js → p-238fcec6.entry.js} +1 -1
  462. package/dist/mint-components/p-2403c6e1.system.js +1 -0
  463. package/dist/mint-components/p-240bec23.js +1 -0
  464. package/dist/mint-components/p-24af584d.js +1 -0
  465. package/dist/mint-components/{p-00ed4c2e.entry.js → p-27903fca.entry.js} +1 -1
  466. package/dist/mint-components/{p-da7708a7.entry.js → p-27bb9d05.entry.js} +1 -1
  467. package/dist/mint-components/{p-a71b9154.system.js → p-2f2bced4.system.js} +1 -1
  468. package/dist/mint-components/p-305cbc9b.entry.js +1 -0
  469. package/dist/mint-components/{p-e21a1cb8.system.entry.js → p-30826d8f.system.entry.js} +1 -1
  470. package/dist/mint-components/p-3168fa90.js +1 -0
  471. package/dist/mint-components/p-3174c756.entry.js +1 -0
  472. package/dist/mint-components/p-3206d0a4.js +103 -0
  473. package/dist/mint-components/{p-aaff68dc.entry.js → p-322c1e5e.entry.js} +1 -1
  474. package/dist/mint-components/{p-2b462e4f.system.entry.js → p-33b13e55.system.entry.js} +1 -1
  475. package/dist/mint-components/{p-cd651f81.js → p-35b2fde0.js} +1 -1
  476. package/dist/mint-components/p-36bbd4de.entry.js +1 -0
  477. package/dist/mint-components/{p-3af1ec4c.entry.js → p-37c4ae42.entry.js} +1 -1
  478. package/dist/mint-components/p-37e58170.system.entry.js +1 -0
  479. package/dist/mint-components/{p-8f603753.system.entry.js → p-3ca0adb2.system.entry.js} +1 -1
  480. package/dist/mint-components/p-3cb1d066.js +1 -0
  481. package/dist/mint-components/{p-20245645.js → p-3eba9036.js} +1 -1
  482. package/dist/mint-components/{p-22f374db.entry.js → p-3f35ded4.entry.js} +1 -1
  483. package/dist/mint-components/{p-4b6f2eca.system.entry.js → p-4115e328.system.entry.js} +1 -1
  484. package/dist/mint-components/{p-38de17fa.system.js → p-4196d37a.system.js} +1 -1
  485. package/dist/mint-components/{p-4b6dc0e5.entry.js → p-4204a6e3.entry.js} +1 -1
  486. package/dist/mint-components/{p-6a8d9def.system.entry.js → p-42b62299.system.entry.js} +1 -1
  487. package/dist/mint-components/{p-faba3198.entry.js → p-43ce09f0.entry.js} +1 -1
  488. package/dist/mint-components/p-470c9c64.system.js +1 -0
  489. package/dist/mint-components/p-4904d54f.system.js +1 -0
  490. package/dist/mint-components/p-49b20dae.js +1 -0
  491. package/dist/mint-components/{p-4e451f75.js → p-4b12067f.js} +1 -1
  492. package/dist/mint-components/{p-7dabdca6.system.entry.js → p-4d8e3766.system.entry.js} +1 -1
  493. package/dist/mint-components/{p-f4a72903.system.entry.js → p-4e5dff09.system.entry.js} +1 -1
  494. package/dist/mint-components/{p-f4a8ee29.system.entry.js → p-4edcf988.system.entry.js} +1 -1
  495. package/dist/mint-components/{p-32d5cbc1.js → p-50ee4d5e.js} +1 -1
  496. package/dist/mint-components/p-51810653.system.entry.js +1 -0
  497. package/dist/mint-components/p-54212ad6.system.js +1 -0
  498. package/dist/mint-components/p-5856f946.system.js +1 -0
  499. package/dist/mint-components/p-59270c5f.system.entry.js +1 -0
  500. package/dist/mint-components/p-59b028db.system.js +1 -0
  501. package/dist/mint-components/p-5a44e1d2.system.entry.js +1 -0
  502. package/dist/mint-components/p-5c362093.system.js +1 -0
  503. package/dist/mint-components/{p-345fd28e.system.entry.js → p-5fbbc259.system.entry.js} +1 -1
  504. package/dist/mint-components/p-620e625b.system.entry.js +1 -0
  505. package/dist/mint-components/p-6491939b.entry.js +258 -0
  506. package/dist/mint-components/{p-71d7c2a0.system.js → p-64997b59.system.js} +1 -1
  507. package/dist/mint-components/{p-b5fb3826.system.js → p-6578ea31.system.js} +1 -1
  508. package/dist/mint-components/{p-94a876b9.js → p-66ac6bed.js} +1 -1
  509. package/dist/mint-components/p-676ca2c0.system.js +1 -0
  510. package/dist/mint-components/p-67ad2252.system.js +1 -0
  511. package/dist/mint-components/{p-36ffebd8.system.entry.js → p-67ca8443.system.entry.js} +1 -1
  512. package/dist/mint-components/{p-dc52c36a.js → p-68043f30.js} +1 -1
  513. package/dist/mint-components/{p-dbc0e4f8.system.js → p-6c0c466f.system.js} +1 -1
  514. package/dist/mint-components/p-71271fbd.system.js +1 -0
  515. package/dist/mint-components/{p-0559d880.entry.js → p-71a0adcf.entry.js} +1 -1
  516. package/dist/mint-components/{p-fbfbbbd2.system.js → p-71bc7f52.system.js} +21 -21
  517. package/dist/mint-components/p-7371218f.system.entry.js +1 -0
  518. package/dist/mint-components/{p-fa630b25.system.entry.js → p-73a761b4.system.entry.js} +1 -1
  519. package/dist/mint-components/{p-d6831af5.js → p-73feb66f.js} +2 -2
  520. package/dist/mint-components/{p-3f7b81b8.js → p-74eaa3c0.js} +2 -2
  521. package/dist/mint-components/p-799d62fe.entry.js +1 -0
  522. package/dist/mint-components/p-79a50a65.entry.js +1 -0
  523. package/dist/mint-components/p-7b4f0dbc.js +1 -0
  524. package/dist/mint-components/{p-8362cb4c.system.entry.js → p-7d456d0a.system.entry.js} +1 -1
  525. package/dist/mint-components/p-7dc10820.system.js +1 -0
  526. package/dist/mint-components/p-7e0c12e3.entry.js +1 -0
  527. package/dist/mint-components/{p-13ed8586.system.js → p-7f499d2f.system.js} +1 -1
  528. package/dist/mint-components/{p-44891949.entry.js → p-8278225e.entry.js} +1 -1
  529. package/dist/mint-components/{p-2ae0e06a.entry.js → p-84079726.entry.js} +1 -1
  530. package/dist/mint-components/{p-1a6b7d2a.entry.js → p-8408b84b.entry.js} +1 -1
  531. package/dist/mint-components/{p-48135f99.system.js → p-88e32c4a.system.js} +1 -1
  532. package/dist/mint-components/p-8a6494c7.system.js +1 -0
  533. package/dist/mint-components/p-8c126ccb.system.entry.js +1 -0
  534. package/dist/mint-components/p-8caef004.js +1 -0
  535. package/dist/mint-components/{p-42187319.system.entry.js → p-8f6e124b.system.entry.js} +1 -1
  536. package/dist/mint-components/p-9199ab6d.system.entry.js +1 -0
  537. package/dist/mint-components/{p-87c21535.entry.js → p-92d706e7.entry.js} +1 -1
  538. package/dist/mint-components/p-951ded9b.js +1 -0
  539. package/dist/mint-components/{p-a9f4ddb1.js → p-9580aac3.js} +1 -1
  540. package/dist/mint-components/{p-7e8bf5cb.system.entry.js → p-9697bb3f.system.entry.js} +1 -1
  541. package/dist/mint-components/{p-2bbff88f.entry.js → p-9713e9a9.entry.js} +1 -1
  542. package/dist/mint-components/{p-8413ade9.system.js → p-9841c478.system.js} +1 -1
  543. package/dist/mint-components/{p-a81b507f.entry.js → p-992ff197.entry.js} +2 -2
  544. package/dist/mint-components/p-99a82e5a.system.entry.js +1 -0
  545. package/dist/mint-components/p-99fb2a50.js +1 -0
  546. package/dist/mint-components/p-9b52645f.entry.js +9 -0
  547. package/dist/mint-components/p-9b7745db.js +394 -0
  548. package/dist/mint-components/p-9c73e84d.entry.js +144 -0
  549. package/dist/mint-components/{p-284e4ed5.entry.js → p-9cc40be1.entry.js} +1 -1
  550. package/dist/mint-components/{p-726a9924.js → p-a11426b2.js} +1 -1
  551. package/dist/mint-components/{p-10ed0483.system.entry.js → p-a2e377aa.system.entry.js} +1 -1
  552. package/dist/mint-components/{p-480e08e9.js → p-a341ce23.js} +2 -2
  553. package/dist/mint-components/p-a39c3535.system.entry.js +1 -0
  554. package/dist/mint-components/{p-cc7af682.system.js → p-a44b7a52.system.js} +2 -2
  555. package/dist/mint-components/{p-35b475bf.js → p-a45680fe.js} +1 -1
  556. package/dist/mint-components/{p-127e66c2.system.js → p-a6f4fb03.system.js} +1 -1
  557. package/dist/mint-components/{p-1b3ab15a.system.entry.js → p-a9be22a6.system.entry.js} +1 -1
  558. package/dist/mint-components/{p-aa3c81d3.system.js → p-aadb1a8a.system.js} +1 -1
  559. package/dist/mint-components/p-ac71b501.js +1 -0
  560. package/dist/mint-components/p-b0362941.js +1 -0
  561. package/dist/mint-components/{p-cde752fa.js → p-b12bd1e1.js} +1 -1
  562. package/dist/mint-components/{p-ac9f4085.system.entry.js → p-b143d532.system.entry.js} +1 -1
  563. package/dist/mint-components/p-b1ddc706.js +1 -0
  564. package/dist/mint-components/{p-05255c61.system.js → p-b3f6377c.system.js} +1 -1
  565. package/dist/mint-components/p-b4638167.entry.js +1 -0
  566. package/dist/mint-components/p-b4eca678.js +1 -0
  567. package/dist/mint-components/p-b6083f58.system.entry.js +1 -0
  568. package/dist/mint-components/{p-571e1427.system.js → p-b6911812.system.js} +1 -1
  569. package/dist/mint-components/p-b6bdf89e.entry.js +1 -0
  570. package/dist/mint-components/p-bcee8002.entry.js +13 -0
  571. package/dist/mint-components/{p-527216de.system.js → p-bd11230d.system.js} +1 -1
  572. package/dist/mint-components/{p-fa37513e.system.entry.js → p-bdb9e05a.system.entry.js} +1 -1
  573. package/dist/mint-components/p-be88596c.system.js +1 -0
  574. package/dist/mint-components/p-c1821c6d.entry.js +1 -0
  575. package/dist/mint-components/{p-4b626c19.entry.js → p-c2b880ef.entry.js} +2 -2
  576. package/dist/mint-components/{p-96431b4f.system.entry.js → p-c3dce602.system.entry.js} +1 -1
  577. package/dist/mint-components/p-c7c11325.js +1 -0
  578. package/dist/mint-components/p-cbc93735.system.entry.js +1 -0
  579. package/dist/mint-components/p-cfce2cfa.system.js +1 -0
  580. package/dist/mint-components/p-d54fa68e.entry.js +1 -0
  581. package/dist/mint-components/p-d5b01068.system.entry.js +1 -0
  582. package/dist/mint-components/p-d6c151e3.system.js +1 -0
  583. package/dist/mint-components/p-d7cbca3c.system.entry.js +1 -0
  584. package/dist/mint-components/p-dbf52a1f.js +1 -0
  585. package/dist/mint-components/{p-18425f38.system.entry.js → p-dccfe305.system.entry.js} +1 -1
  586. package/dist/mint-components/{p-69ac09d4.js → p-ddf3c05e.js} +1 -1
  587. package/dist/mint-components/{p-5bedb58c.js → p-de3ef27e.js} +1 -1
  588. package/dist/mint-components/{p-7cbec088.system.entry.js → p-deca5ec3.system.entry.js} +1 -1
  589. package/dist/mint-components/{p-c2fdd608.system.entry.js → p-df34f189.system.entry.js} +1 -1
  590. package/dist/mint-components/p-e05d092a.entry.js +1 -0
  591. package/dist/mint-components/{p-ae473175.js → p-e078e746.js} +85 -85
  592. package/dist/mint-components/p-e13ed54a.entry.js +1 -0
  593. package/dist/mint-components/p-e523b22e.entry.js +11 -0
  594. package/dist/mint-components/p-e524056f.entry.js +1 -0
  595. package/dist/mint-components/p-e55aafe9.system.js +1 -0
  596. package/dist/mint-components/p-e59eba75.entry.js +13 -0
  597. package/dist/mint-components/{p-59274a91.system.js → p-e7aa4f3b.system.js} +1 -1
  598. package/dist/mint-components/{p-98698131.js → p-ea1eed5d.js} +1 -1
  599. package/dist/mint-components/p-ecf91505.system.js +1 -0
  600. package/dist/mint-components/p-edf6bf2e.system.entry.js +1 -0
  601. package/dist/mint-components/p-edfa670f.system.entry.js +1 -0
  602. package/dist/mint-components/{p-9b6a0152.system.entry.js → p-efd2b6ec.system.entry.js} +1 -1
  603. package/dist/mint-components/p-f0368b8b.system.js +1 -0
  604. package/dist/mint-components/p-f03bd6ad.system.js +1 -0
  605. package/dist/mint-components/p-f2ebbbe3.system.entry.js +1 -0
  606. package/dist/mint-components/p-f6baa0c9.system.js +1 -0
  607. package/dist/mint-components/p-f826665a.entry.js +1 -0
  608. package/dist/mint-components/{p-4e526a94.js → p-fa420231.js} +1 -1
  609. package/dist/mint-components/{p-6cd4f2b1.system.js → p-fca47a45.system.js} +1 -1
  610. package/dist/mint-components/p-ff3c651c.js +1 -0
  611. package/dist/types/components/sqm-big-stat/BigStat.stories.d.ts +2 -0
  612. package/dist/types/components/sqm-big-stat/sqm-big-stat-view.d.ts +5 -0
  613. package/dist/types/components/sqm-big-stat/sqm-big-stat.d.ts +41 -0
  614. package/dist/types/components/sqm-coupon-code/CouponCode.stories.d.ts +1 -0
  615. package/dist/types/components/sqm-coupon-code/sqm-coupon-code-view.d.ts +2 -0
  616. package/dist/types/components/sqm-coupon-code/sqm-coupon-code.d.ts +42 -0
  617. package/dist/types/components/sqm-coupon-code/useCouponCode.d.ts +1 -0
  618. package/dist/types/components/sqm-divided-layout/sqm-divided-layout-view.d.ts +4 -1
  619. package/dist/types/components/sqm-divided-layout/sqm-divided-layout.d.ts +13 -0
  620. package/dist/types/components/sqm-hero-image/sqm-hero-image-view.d.ts +1 -0
  621. package/dist/types/components/sqm-hero-image/sqm-hero-image.d.ts +19 -0
  622. package/dist/types/components/sqm-invoice-table/columns/InvoiceTableColumn.d.ts +1 -0
  623. package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-data-column.d.ts +1 -0
  624. package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-date-column.d.ts +1 -0
  625. package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-download-column.d.ts +1 -0
  626. package/dist/types/components/sqm-invoice-table/mockInvoiceData.d.ts +1 -0
  627. package/dist/types/components/sqm-invoice-table/sqm-invoice-table.d.ts +1 -0
  628. package/dist/types/components/sqm-leaderboard/Leaderboard.stories.d.ts +1 -0
  629. package/dist/types/components/sqm-leaderboard/sqm-leaderboard-view.d.ts +6 -1
  630. package/dist/types/components/sqm-leaderboard/sqm-leaderboard.d.ts +48 -12
  631. package/dist/types/components/sqm-leaderboard/useLeaderboard.d.ts +6 -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 -0
  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-forgot-password/sqm-portal-forgot-password-view.d.ts +5 -1
  641. package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password.d.ts +15 -0
  642. package/dist/types/components/sqm-portal-frame/sqm-portal-frame-view.d.ts +3 -0
  643. package/dist/types/components/sqm-portal-frame/sqm-portal-frame.d.ts +19 -0
  644. package/dist/types/components/sqm-portal-frame/usePortalFrame.d.ts +2 -1
  645. package/dist/types/components/sqm-portal-login/PortalLogin.stories.d.ts +1 -0
  646. package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step-view.d.ts +3 -0
  647. package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step.d.ts +20 -2
  648. package/dist/types/components/sqm-referral-card/sqm-referral-card-view.d.ts +5 -2
  649. package/dist/types/components/sqm-referral-card/sqm-referral-card.d.ts +21 -1
  650. package/dist/types/components/sqm-referral-code/ReferralCode.stories.d.ts +1 -0
  651. package/dist/types/components/sqm-referral-code/sqm-referral-code.d.ts +42 -0
  652. package/dist/types/components/sqm-referral-codes/ReferralCodes.stories.d.ts +1 -0
  653. package/dist/types/components/sqm-referral-codes/sqm-referral-codes-view.d.ts +1 -0
  654. package/dist/types/components/sqm-referral-codes/sqm-referral-codes.d.ts +6 -0
  655. package/dist/types/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.d.ts +1 -0
  656. package/dist/types/components/sqm-referral-table/cells/sqm-referral-table-status-cell.d.ts +1 -0
  657. package/dist/types/components/sqm-referral-table/columns/ReferralTableColumn.d.ts +1 -0
  658. package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-column.d.ts +1 -0
  659. package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-date-column.d.ts +1 -0
  660. package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.d.ts +1 -0
  661. package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-status-column.d.ts +1 -0
  662. package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-user-column.d.ts +1 -0
  663. package/dist/types/components/sqm-referral-table/sqm-referral-table.d.ts +1 -0
  664. package/dist/types/components/sqm-reward-exchange-list/RewardExchangeListData.d.ts +457 -437
  665. package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.d.ts +1 -0
  666. package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.d.ts +1 -0
  667. package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.d.ts +2 -1
  668. package/dist/types/components/sqm-rewards-table/columns/RewardTableColumn.d.ts +1 -0
  669. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.d.ts +1 -0
  670. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.d.ts +1 -0
  671. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.d.ts +1 -0
  672. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.d.ts +1 -0
  673. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.d.ts +1 -0
  674. package/dist/types/components/sqm-rewards-table/mockRewardData.d.ts +1 -0
  675. package/dist/types/components/sqm-rewards-table/mockTaxData.d.ts +1 -0
  676. package/dist/types/components/sqm-rewards-table/sqm-rewards-table.d.ts +1 -0
  677. package/dist/types/components/sqm-rewards-table/useRewardsTable.d.ts +1 -1
  678. package/dist/types/components/sqm-share-button/ShareButton.stories.d.ts +1 -1
  679. package/dist/types/components/sqm-share-button/sqm-share-button-view.d.ts +2 -1
  680. package/dist/types/components/sqm-share-button/sqm-share-button.d.ts +15 -3
  681. package/dist/types/components/sqm-share-code/sqm-share-code.d.ts +42 -0
  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 +43 -1
  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-tabs/Tabs.stories.d.ts +1 -0
  689. package/dist/types/components/sqm-tabs/sqm-tabs-view.d.ts +1 -0
  690. package/dist/types/components/sqm-tabs/sqm-tabs.d.ts +8 -0
  691. package/dist/types/components/sqm-task-card/DetailsView.d.ts +6 -0
  692. package/dist/types/components/sqm-task-card/sqm-task-card-view.d.ts +5 -0
  693. package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +32 -0
  694. package/dist/types/components/sqm-task-card/useTaskCard.d.ts +9 -0
  695. package/dist/types/components/sqm-text/Text.stories.d.ts +6 -0
  696. package/dist/types/components/sqm-text/sqm-text.d.ts +12 -0
  697. package/dist/types/components/sqm-text-span/sqm-text-span-view.d.ts +4 -2
  698. package/dist/types/components/sqm-text-span/sqm-text-span.d.ts +13 -1
  699. package/dist/types/components/sqm-timeline/Timeline.stories.d.ts +1 -0
  700. package/dist/types/components/sqm-timeline/sqm-timeline-entry-view.d.ts +2 -0
  701. package/dist/types/components/sqm-timeline/sqm-timeline-entry.d.ts +14 -0
  702. package/dist/types/components/sqm-widget-verification/sqm-widget-verification-controller.d.ts +5 -0
  703. package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +5 -0
  704. package/dist/types/components/tax-and-cash/BankingForm.stories.d.ts +1 -0
  705. package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +1 -1
  706. package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.d.ts +6 -0
  707. package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.d.ts +16 -0
  708. package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.d.ts +7 -1
  709. package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.d.ts +12 -0
  710. package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +5 -2
  711. package/dist/types/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.d.ts +4 -0
  712. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +1 -1
  713. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +45 -4
  714. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.d.ts +1 -1
  715. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +1 -1
  716. package/dist/types/components/tax-and-cash/sqm-user-info-form/small-views/IndirectTaxDetailsView.d.ts +1 -1
  717. package/dist/types/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.d.ts +1 -1
  718. package/dist/types/components/tax-and-cash/utils.d.ts +1 -1
  719. package/dist/types/components/views/copy-text-view.d.ts +5 -0
  720. package/dist/types/components.d.ts +1293 -63
  721. package/dist/types/global/mixins.d.ts +12 -12
  722. package/dist/types/global/styles.d.ts +7 -1
  723. package/dist/types/saasquatch.d.ts +142 -0
  724. package/dist/types/utils/parseStates.d.ts +1 -0
  725. package/docs/docs.docx +0 -0
  726. package/docs/raisins.json +1 -1
  727. package/grapesjs/grapesjs.js +1 -1
  728. package/package.json +3 -2
  729. package/dist/cjs/copy-text-view-c85acaaa.js +0 -96
  730. package/dist/cjs/sqm-asset-card-view-21ddf04f.js +0 -51
  731. package/dist/cjs/sqm-asset-card.cjs.entry.js +0 -45
  732. package/dist/cjs/sqm-invoice-table-view-8b950046.js +0 -2038
  733. package/dist/cjs/sqm-leaderboard-rank-view-d39a55d8.js +0 -10
  734. package/dist/cjs/sqm-navigation-sidebar-item-view-6f35d2ee.js +0 -45
  735. package/dist/cjs/sqm-text-span-view-56e48a78.js +0 -62
  736. package/dist/collection/components/sqm-asset-card/AssetCard.stories.js +0 -29
  737. package/dist/collection/components/sqm-asset-card/sqm-asset-card-view.js +0 -46
  738. package/dist/collection/components/sqm-asset-card/sqm-asset-card.js +0 -107
  739. package/dist/collection/components/sqm-asset-card/useAssetCard.js +0 -9
  740. package/dist/esm/copy-text-view-782137ba.js +0 -94
  741. package/dist/esm/sqm-asset-card-view-fe5db3c0.js +0 -49
  742. package/dist/esm/sqm-asset-card.entry.js +0 -41
  743. package/dist/esm/sqm-invoice-table-view-0f0a7386.js +0 -2022
  744. package/dist/esm/sqm-leaderboard-rank-view-753c8d4a.js +0 -8
  745. package/dist/esm/sqm-navigation-sidebar-item-view-8f1c72bc.js +0 -43
  746. package/dist/esm/sqm-text-span-view-c577cc60.js +0 -60
  747. package/dist/esm-es5/GenericTableView-e7addb2b.js +0 -1
  748. package/dist/esm-es5/ShadowViewAddon-f5791215.js +0 -1
  749. package/dist/esm-es5/copy-text-view-782137ba.js +0 -1
  750. package/dist/esm-es5/email-registration-view-a7818cf2.js +0 -1
  751. package/dist/esm-es5/extractProps-ae1afbb3.js +0 -1
  752. package/dist/esm-es5/mixins-83f90fa1.js +0 -1
  753. package/dist/esm-es5/sqm-asset-card-view-fe5db3c0.js +0 -1
  754. package/dist/esm-es5/sqm-asset-card.entry.js +0 -1
  755. package/dist/esm-es5/sqm-banking-info-form_17.entry.js +0 -1
  756. package/dist/esm-es5/sqm-big-stat_41.entry.js +0 -1
  757. package/dist/esm-es5/sqm-invoice-table-view-0f0a7386.js +0 -1
  758. package/dist/esm-es5/sqm-leaderboard-rank-view-753c8d4a.js +0 -1
  759. package/dist/esm-es5/sqm-navigation-sidebar-item-view-8f1c72bc.js +0 -1
  760. package/dist/esm-es5/sqm-navigation-sidebar-view-9d802b78.js +0 -1
  761. package/dist/esm-es5/sqm-portal-forgot-password-view-50444a7c.js +0 -1
  762. package/dist/esm-es5/sqm-portal-login-view-37c85d04.js +0 -1
  763. package/dist/esm-es5/sqm-text-span-view-c577cc60.js +0 -1
  764. package/dist/mint-components/p-04a6e457.entry.js +0 -1
  765. package/dist/mint-components/p-05f29f64.js +0 -1
  766. package/dist/mint-components/p-141bf5c1.system.entry.js +0 -1
  767. package/dist/mint-components/p-14a65f29.system.js +0 -1
  768. package/dist/mint-components/p-1513309d.entry.js +0 -1
  769. package/dist/mint-components/p-15d20bf9.entry.js +0 -258
  770. package/dist/mint-components/p-19ccb4ce.js +0 -1
  771. package/dist/mint-components/p-217514ac.system.js +0 -1
  772. package/dist/mint-components/p-229f797b.js +0 -1
  773. package/dist/mint-components/p-24db5c70.js +0 -1
  774. package/dist/mint-components/p-26468242.js +0 -1
  775. package/dist/mint-components/p-275b4767.entry.js +0 -1
  776. package/dist/mint-components/p-2d52e2d7.system.js +0 -1
  777. package/dist/mint-components/p-2dca9e1a.system.js +0 -1
  778. package/dist/mint-components/p-2e110002.system.js +0 -1
  779. package/dist/mint-components/p-2e4129e0.system.entry.js +0 -1
  780. package/dist/mint-components/p-301ddcaa.system.entry.js +0 -1
  781. package/dist/mint-components/p-31015791.js +0 -1
  782. package/dist/mint-components/p-33c96e14.entry.js +0 -16
  783. package/dist/mint-components/p-3708a40b.system.js +0 -1
  784. package/dist/mint-components/p-383d8c5a.system.entry.js +0 -1
  785. package/dist/mint-components/p-38e5c429.system.js +0 -1
  786. package/dist/mint-components/p-38fc919b.entry.js +0 -1
  787. package/dist/mint-components/p-3b90e01b.system.js +0 -1
  788. package/dist/mint-components/p-3db34d68.js +0 -1
  789. package/dist/mint-components/p-420554af.system.entry.js +0 -1
  790. package/dist/mint-components/p-4428294b.entry.js +0 -1
  791. package/dist/mint-components/p-49206a9c.entry.js +0 -1
  792. package/dist/mint-components/p-4ae5ac59.entry.js +0 -13
  793. package/dist/mint-components/p-4e5af50c.js +0 -1
  794. package/dist/mint-components/p-5488fdd9.system.js +0 -1
  795. package/dist/mint-components/p-5c0576c0.system.entry.js +0 -1
  796. package/dist/mint-components/p-5c2d9a52.entry.js +0 -205
  797. package/dist/mint-components/p-5dbe8b0a.system.js +0 -1
  798. package/dist/mint-components/p-6055eb4c.system.js +0 -1
  799. package/dist/mint-components/p-635d5ef2.system.js +0 -1
  800. package/dist/mint-components/p-6427e963.entry.js +0 -1
  801. package/dist/mint-components/p-646cfbd5.system.js +0 -1
  802. package/dist/mint-components/p-65ba9e94.entry.js +0 -1
  803. package/dist/mint-components/p-6b7a595f.system.js +0 -1
  804. package/dist/mint-components/p-6eaf9c57.entry.js +0 -1
  805. package/dist/mint-components/p-7127a230.js +0 -1
  806. package/dist/mint-components/p-775f3ded.entry.js +0 -1
  807. package/dist/mint-components/p-7ab21e4d.entry.js +0 -1
  808. package/dist/mint-components/p-7e3a84bc.js +0 -1
  809. package/dist/mint-components/p-802b9f7e.entry.js +0 -1
  810. package/dist/mint-components/p-8053366e.system.entry.js +0 -1
  811. package/dist/mint-components/p-893d7ab4.js +0 -1
  812. package/dist/mint-components/p-8abfeff8.entry.js +0 -1
  813. package/dist/mint-components/p-8c23d1b8.js +0 -1
  814. package/dist/mint-components/p-8c494bf1.js +0 -1
  815. package/dist/mint-components/p-8d9d04b7.system.entry.js +0 -1
  816. package/dist/mint-components/p-91521e9d.js +0 -1
  817. package/dist/mint-components/p-92816d1f.js +0 -1
  818. package/dist/mint-components/p-97ccee03.system.entry.js +0 -1
  819. package/dist/mint-components/p-97d4d651.system.js +0 -1
  820. package/dist/mint-components/p-9acb5038.js +0 -1
  821. package/dist/mint-components/p-9cf80e85.system.entry.js +0 -1
  822. package/dist/mint-components/p-9dd8c93b.system.js +0 -1
  823. package/dist/mint-components/p-a4eb4b81.entry.js +0 -144
  824. package/dist/mint-components/p-a8645c1b.system.js +0 -1
  825. package/dist/mint-components/p-acf93efa.js +0 -394
  826. package/dist/mint-components/p-bd2a2546.system.js +0 -1
  827. package/dist/mint-components/p-bfc7cfc0.system.js +0 -1
  828. package/dist/mint-components/p-c060f770.system.entry.js +0 -1
  829. package/dist/mint-components/p-c07551c4.system.entry.js +0 -1
  830. package/dist/mint-components/p-c2ab40ae.system.entry.js +0 -1
  831. package/dist/mint-components/p-c36506f6.system.entry.js +0 -1
  832. package/dist/mint-components/p-c53b8fe7.entry.js +0 -13
  833. package/dist/mint-components/p-ccb5699b.js +0 -1
  834. package/dist/mint-components/p-cd1d497f.system.js +0 -1
  835. package/dist/mint-components/p-dcc81e90.entry.js +0 -1
  836. package/dist/mint-components/p-df89186f.system.js +0 -1
  837. package/dist/mint-components/p-e4fd9966.entry.js +0 -9
  838. package/dist/mint-components/p-e6f50ffd.entry.js +0 -1
  839. package/dist/mint-components/p-e8ffcc68.entry.js +0 -11
  840. package/dist/mint-components/p-eab1c9f3.js +0 -1
  841. package/dist/mint-components/p-ebdf906a.entry.js +0 -1
  842. package/dist/mint-components/p-ec7d2a85.entry.js +0 -1
  843. package/dist/mint-components/p-f2228da3.system.entry.js +0 -1
  844. package/dist/mint-components/p-f25f3d2a.system.entry.js +0 -1
  845. package/dist/mint-components/p-f26aedcd.system.js +0 -1
  846. package/dist/mint-components/p-f2d8d3d3.system.entry.js +0 -1
  847. package/dist/mint-components/p-f708da7b.js +0 -1
  848. package/dist/mint-components/p-fd0a013f.entry.js +0 -1
  849. package/dist/types/components/sqm-asset-card/AssetCard.stories.d.ts +0 -7
  850. package/dist/types/components/sqm-asset-card/sqm-asset-card-view.d.ts +0 -8
  851. package/dist/types/components/sqm-asset-card/sqm-asset-card.d.ts +0 -24
  852. package/dist/types/components/sqm-asset-card/useAssetCard.d.ts +0 -7
  853. /package/dist/collection/components/tax-and-cash/{sqm-tax-and-cash/data.js → data.js} +0 -0
  854. /package/dist/types/components/tax-and-cash/{sqm-tax-and-cash/data.d.ts → data.d.ts} +0 -0
@@ -2,152 +2,32 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-a29c60ef.js');
6
- const stencilHooks_module = require('./stencil-hooks.module-3a336b0f.js');
7
- const global = require('./global-261393c6.js');
8
- const index_module = require('./index.module-ee84433d.js');
5
+ const index = require('./index-a43a63b4.js');
6
+ const stencilHooks_module = require('./stencil-hooks.module-62264802.js');
7
+ const global = require('./global-6d0d196d.js');
8
+ const index_module = require('./index.module-39955732.js');
9
9
  const jsonpointer = require('./jsonpointer-11327262.js');
10
10
  const cjs = require('./cjs-1066ec21.js');
11
11
  const utils = require('./utils-6847bc06.js');
12
12
  const JSS = require('./JSS-8503a151.js');
13
- const mixins = require('./mixins-f7e0377a.js');
14
- const GenericTableView = require('./GenericTableView-f0e9c531.js');
15
- const reRender = require('./re-render-b324deab.js');
16
- const useChildElements = require('./useChildElements-1b35d945.js');
17
- const luxon = require('./luxon-2926d85f.js');
18
- const useReferralTable = require('./useReferralTable-7c3f9600.js');
19
- const sqmTextSpanView = require('./sqm-text-span-view-56e48a78.js');
20
- const ErrorView = require('./ErrorView-b2fcf954.js');
21
- const sqmInvoiceTableView = require('./sqm-invoice-table-view-8b950046.js');
22
- const extractProps = require('./extractProps-fd93ba62.js');
13
+ require('./mixins-4761d472.js');
14
+ const GenericTableView = require('./GenericTableView-107ade89.js');
15
+ const reRender = require('./re-render-28fed959.js');
16
+ const useChildElements = require('./useChildElements-e5fa605c.js');
17
+ const luxon = require('./luxon-3b809948.js');
18
+ const useReferralTable = require('./useReferralTable-19e7523a.js');
19
+ const IndirectTaxDetailsView = require('./IndirectTaxDetailsView-6e117dd3.js');
20
+ const utils$1 = require('./utils-0b09e2cb.js');
21
+ const data = require('./data-68a42a7b.js');
23
22
  const keys = require('./keys-cff24974.js');
24
- const usePayoutStatus = require('./usePayoutStatus-4b5894ef.js');
25
- const useVerificationEmail = require('./useVerificationEmail-95a82767.js');
26
-
27
- const TAX_CONTEXT_NAMESPACE = "sq:tax-and-cash";
28
- const TAX_FORM_CONTEXT_NAMESPACE = "sq:tax-form-context";
29
- const USER_QUERY_NAMESPACE = "sq:user-info-query";
30
- const USER_FORM_CONTEXT_NAMESPACE = "sq:user-form-context";
31
- const FINANCE_NETWORK_SETTINGS_NAMESPACE = "sq:finance-network-settings";
32
- const COUNTRIES_NAMESPACE = "sq:countries:list";
33
- const SORTED_COUNTRIES_NAMESPACE = "sq:countries:sorted";
34
- const COUNTRIES_QUERY_NAMESPACE = "sq:countries:query";
35
- const CURRENCIES_NAMESPACE = "sq:currencies:list";
36
- const CURRENCIES_QUERY_NAMESPACE = "sq:currencies:query";
37
- const GET_USER = index_module.dist.gql `
38
- query getUserTaxInfo {
39
- user: viewer {
40
- ... on User {
41
- id
42
- firstName
43
- lastName
44
- email
45
- countryCode
46
- customFields
47
- managedIdentity {
48
- uid
49
- email
50
- emailVerified
51
- }
52
- impactConnection {
53
- connected
54
- user {
55
- firstName
56
- lastName
57
- }
58
- publisher {
59
- id
60
- brandedSignup
61
- countryCode
62
- currency
63
- billingAddress
64
- billingCity
65
- billingState
66
- billingCountryCode
67
- billingPostalCode
68
- phoneNumberCountryCode
69
- phoneNumber
70
- taxInformation {
71
- indirectTaxId
72
- indirectTaxCountryCode
73
- indirectTaxRegion
74
- additionalTaxId
75
- withholdingTaxId
76
- withholdingTaxCountryCode
77
- }
78
- requiredTaxDocumentType
79
- currentTaxDocument {
80
- status
81
- type
82
- dateCreated
83
- }
84
- withdrawalSettings {
85
- paymentMethod
86
- paypalEmailAddress
87
- bankCountry
88
- bankAccountNumber
89
- paymentSchedulingType
90
- paymentThreshold
91
- paymentDay
92
- }
93
- payoutsAccount {
94
- hold
95
- holdReasons
96
- balance
97
- }
98
- }
99
- }
100
- }
101
- }
102
- }
103
- `;
104
- const GET_COUNTRIES = index_module.dist.gql `
105
- query getCountries {
106
- impactPayoutCountries(limit: 1000) {
107
- data {
108
- countryCode
109
- displayName
110
- }
111
- }
112
- }
113
- `;
114
- const GET_CURRENCIES = index_module.dist.gql `
115
- query currencies($locale: RSLocale) {
116
- currencies(limit: 300) {
117
- data {
118
- displayName(locale: $locale)
119
- currencyCode
120
- }
121
- }
122
- }
123
- `;
124
- const GET_FINANCE_NETWORK_SETTINGS = index_module.dist.gql `
125
- query impactFinanceNetworkSettings(
126
- $filter: ImpactFinanceNetworkSettingsFilterInput
127
- ) {
128
- impactFinanceNetworkSettings(filter: $filter, limit: 1000) {
129
- data {
130
- countryCode
131
- currency
132
- defaultFinancePaymentMethodId
133
- thresholdOptions
134
- withdrawalSettingId
135
- internationalEftFee
136
- foreignFxFee
137
- defaultFxFee
138
- }
139
- totalCount
140
- }
141
- }
142
- `;
143
- const FORM_STEPS = 4;
23
+ const usePayoutStatus = require('./usePayoutStatus-3cca69e5.js');
144
24
 
145
25
  function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
146
26
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32;
147
27
  const { errors, ...formState } = props.states.formState;
148
28
  return {
149
29
  0: {
150
- input: (index.h("sl-input", Object.assign({ required: true, label: props.text.beneficiaryAccountNameLabel, name: "/beneficiaryAccountName", id: "beneficiaryAccountName", key: "beneficiaryAccountName", type: "text" }, (((_a = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _a === void 0 ? void 0 : _a.beneficiaryAccountName) && {
30
+ input: (index.h("sl-input", Object.assign({ required: true, label: props.text.beneficiaryAccountNameLabel, name: "/beneficiaryAccountName", id: "beneficiaryAccountName", key: "beneficiaryAccountName", type: "text", "help-text": props.text.beneficiaryAccountNameDescription }, (((_a = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _a === void 0 ? void 0 : _a.beneficiaryAccountName) && {
151
31
  class: "error-input",
152
32
  helpText: getValidationErrorMessage({
153
33
  type: (_c = (_b = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _b === void 0 ? void 0 : _b.beneficiaryAccountName) === null || _c === void 0 ? void 0 : _c.type,
@@ -649,6 +529,11 @@ const mockPaymentOptions = {
649
529
  };
650
530
 
651
531
  const style = {
532
+ ModalTitleContainer: {
533
+ display: "flex",
534
+ gap: "var(--sl-spacing-small)",
535
+ alignItems: "center",
536
+ },
652
537
  FormWrapper: {
653
538
  display: "flex",
654
539
  justifyContent: "flex-start",
@@ -679,24 +564,26 @@ const style = {
679
564
  gap: "8px",
680
565
  },
681
566
  ErrorText: {
682
- color: "var(--sl-color-danger-500)",
567
+ color: "var(--sqm-danger-color-icon)",
683
568
  marginTop: "10px",
684
569
  },
685
570
  PageDescriptionText: {
686
- color: "var(--sl-color-neutral-500)",
571
+ color: "var(--sqm-text-subdued)",
687
572
  fontSize: "var(--sl-font-size-medium)",
688
573
  },
689
574
  DescriptionText: {
690
- color: "var(--sl-color-neutral-500)",
575
+ color: "var(--sqm-text-subdued)",
691
576
  },
692
577
  AlertContainer: {
693
578
  "&::part(base)": {
694
- backgroundColor: "var(--sl-color-red-100)",
695
- borderTop: "none",
579
+ backgroundColor: "var(--sqm-danger-color-background)",
580
+ border: "none",
696
581
  padding: "0 16px",
582
+ color: "var(--sqm-danger-color-text)",
583
+ marginBottom: "16px",
697
584
  },
698
585
  "& sl-icon::part(base)": {
699
- color: "var(--sl-color-danger-500)",
586
+ color: "var(--sqm-danger-color-icon)",
700
587
  },
701
588
  },
702
589
  RadioContainer: {
@@ -705,12 +592,15 @@ const style = {
705
592
  },
706
593
  PartnerAlertContainer: {
707
594
  "&::part(base)": {
708
- backgroundColor: "var(--sl-color-sky-100)",
595
+ backgroundColor: "var(--sqm-informative-color-background)",
709
596
  borderTop: "none",
710
597
  padding: "0 16px",
598
+ border: "none",
599
+ color: "var(--sqm-informative-color-text)",
600
+ marginBottom: "16px",
711
601
  },
712
602
  "& sl-icon::part(base)": {
713
- color: "var(--sl-color-blue-500)",
603
+ color: "var(--sqm-informative-color-icon)",
714
604
  },
715
605
  },
716
606
  Checkbox: {
@@ -724,8 +614,8 @@ const style = {
724
614
  InputContainer: {
725
615
  padding: "16px",
726
616
  margin: "16px 0px 16px 0px",
727
- borderTop: "1px solid var(--sl-color-gray-300)",
728
- borderBottom: "1px solid var(--sl-color-gray-300)",
617
+ borderTop: "1px solid var(--sqm-border-color)",
618
+ borderBottom: "1px solid var(--sqm-border-color)",
729
619
  display: "flex",
730
620
  flexDirection: "column",
731
621
  width: "100%",
@@ -747,42 +637,47 @@ const style = {
747
637
  width: "16px",
748
638
  height: "16px",
749
639
  borderRadius: "50%",
750
- background: "var(--sl-color-gray-200)",
640
+ background: "var(--sqm-skeleton-background)",
751
641
  },
752
642
  SmallSkeleton: {
753
643
  width: "100px",
754
644
  height: "16px",
755
645
  borderRadius: "50px",
756
- background: "var(--sl-color-gray-200)",
646
+ background: "var(--sqm-skeleton-background)",
757
647
  },
758
648
  LargeSkeleton: {
759
649
  width: "100%",
760
650
  maxWidth: "320px",
761
651
  height: "40px",
762
652
  borderRadius: "50px",
763
- background: "var(--sl-color-gray-200)",
653
+ background: "var(--sqm-skeleton-background)",
764
654
  },
765
- InfoAlert: {
766
- "&::part(base)": {
767
- backgroundColor: "transparent",
768
- borderTop: "none",
769
- border: "none",
655
+ InfoWarningIcon: {
656
+ height: "26px",
657
+ width: "26px",
658
+ },
659
+ Dialog: {
660
+ "&::part(panel)": {
661
+ maxWidth: "420px",
770
662
  },
771
- "&::part(message)": {
663
+ "&::part(title)": {
664
+ fontSize: "var(--sl-font-size-large)",
665
+ fontWeight: "600",
666
+ },
667
+ "&::part(body)": {
668
+ padding: "0 var(--sl-spacing-x-large) 0 var(--sl-spacing-x-large)",
669
+ fontSize: "var(--sl-font-size-small)",
670
+ },
671
+ "&::part(footer)": {
772
672
  display: "flex",
673
+ flexDirection: "column",
674
+ gap: "var(--sl-spacing-small)",
675
+ marginBottom: "var(--sl-spacing-xx-small)",
773
676
  alignItems: "center",
774
- justifyContent: "flex-start",
775
- padding: "10px",
776
- height: "max-content",
777
- },
778
- "& sl-icon::part(base)": {
779
- color: "var(--sl-color-yellow-500)",
677
+ flex: "1",
780
678
  },
781
679
  },
782
- InfoWarningIcon: {
783
- height: "26px",
784
- width: "26px",
785
- },
680
+ DialogButton: { margin: "auto", width: "100%" },
786
681
  };
787
682
  const sheet = JSS.createStyleSheet(style);
788
683
  const styleString = sheet.toString();
@@ -803,12 +698,14 @@ const vanillaStyle = `
803
698
 
804
699
  /* this class is dynamically applied in controller */
805
700
  .error-input::part(base) {
806
- border: 1px solid var(--sl-color-danger-500);
807
- border-radius: var(--sl-input-border-radius-medium);
701
+ --sqm-input-border-color: var(--sqm-danger-color-border);
702
+ --sl-input-border-color: var(--sqm-danger-color-border);
703
+ --sl-input-border-color-hover: var(--sqm-danger-color-border);
704
+ --sl-input-border-color-focus: var(--sqm-danger-color-background);
808
705
  }
809
706
 
810
707
  .error-input::part(help-text) {
811
- color: var(--sl-color-danger-500) !important;
708
+ color: var(--sqm-danger-color-text);
812
709
  }
813
710
 
814
711
  `;
@@ -846,12 +743,18 @@ const BankingInfoFormView = (props) => {
846
743
  index.h("style", { type: "text/css" },
847
744
  styleString,
848
745
  vanillaStyle),
746
+ index.h("sl-dialog", { class: sheet.classes.Dialog, open: states.showModal, "onSl-hide": callbacks.onModalClose },
747
+ index.h("div", { class: classes.ModalTitleContainer, slot: "label" },
748
+ index.h("sl-icon", { name: "info-circle", style: { color: "var(--sl-color-info-500)" } }),
749
+ index.h("h2", { style: { fontSize: "var(--sl-font-size-large)" } }, text.modalTitle)),
750
+ index.h("p", null, text.modalDescription),
751
+ index.h("sl-button", { slot: "footer", type: "primary", class: sheet.classes.DialogButton, submit: true, exportparts: "base: primarybutton-base" }, text.modalButtonText)),
849
752
  index.h("div", { class: classes.TextContainer },
850
753
  index.h("div", null,
851
754
  !states.hideSteps && (index.h("p", null, global.intl.formatMessage({
852
755
  id: "formStep",
853
756
  defaultMessage: text.formStep,
854
- }, { step: states.step, count: FORM_STEPS }))),
757
+ }, { step: states.step, count: data.FORM_STEPS }))),
855
758
  index.h("h3", { style: { fontSize: "24px" } }, text.taxAndPayouts),
856
759
  index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription)),
857
760
  ((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet.classes.AlertContainer },
@@ -905,8 +808,10 @@ const BankingInfoFormView = (props) => {
905
808
  ? getLoadingSkeleton("toPayPalAccount")
906
809
  : slots.paymentFixedDaySelectSlot))))),
907
810
  index.h("div", { class: classes.BtnContainer },
908
- index.h("sl-button", { type: "primary", disabled: states.disabled || states.saveDisabled, loading: states.saveLoading, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton),
909
- !states.hideBackButton && (index.h("sl-button", { exportparts: "base: secondarybutton-base", type: "text", onClick: callbacks.onBack }, text.backButton))))));
811
+ index.h("sl-button", Object.assign({ type: "primary", disabled: states.disabled || states.saveDisabled, loading: states.saveLoading }, (states.hideSteps
812
+ ? { onClick: callbacks.onModalOpen }
813
+ : { submit: "submit" }), { exportparts: "base: primarybutton-base" }), text.continueButton),
814
+ !states.hideBackButton && (index.h("sl-button", { exportparts: "base: secondarybutton-base", type: "secondary", onClick: callbacks.onBack }, text.backButton))))));
910
815
  };
911
816
 
912
817
  // Hardcoded in Impact backend
@@ -990,12 +895,12 @@ function useBankingInfoForm(props) {
990
895
  const host = index_module._();
991
896
  const locale = index_module.L();
992
897
  const user = index_module.J();
993
- const [step, setStep] = index_module.Pn(TAX_CONTEXT_NAMESPACE);
994
- const context = index_module.Fn(TAX_FORM_CONTEXT_NAMESPACE);
995
- const countries = index_module.Fn(SORTED_COUNTRIES_NAMESPACE);
898
+ const [step, setStep] = index_module.Pn(data.TAX_CONTEXT_NAMESPACE);
899
+ const context = index_module.Fn(data.TAX_FORM_CONTEXT_NAMESPACE);
900
+ const countries = index_module.Fn(data.SORTED_COUNTRIES_NAMESPACE);
996
901
  const formRef = stencilHooks_module.useRef(null);
997
- const { data: paymentOptionsData, loading: paymentOptionsLoading, errors: paymentOptionsError, } = index_module.$n(FINANCE_NETWORK_SETTINGS_NAMESPACE);
998
- const { data: userData, refetch, errors: userError, } = index_module.$n(USER_QUERY_NAMESPACE);
902
+ const { data: paymentOptionsData, loading: paymentOptionsLoading, errors: paymentOptionsError, } = index_module.$n(data.FINANCE_NETWORK_SETTINGS_NAMESPACE);
903
+ const { data: userData, refetch, errors: userError, } = index_module.$n(data.USER_QUERY_NAMESPACE);
999
904
  const [saveWithdrawalSettings] = index_module.$e(SAVE_WITHDRAWAL_SETTINGS);
1000
905
  const [updateWithdrawalSettings] = index_module.$e(UPDATE_WITHDRAWAL_SETTINGS);
1001
906
  const [showVerification, setShowVerification] = stencilHooks_module.useState(false);
@@ -1008,6 +913,7 @@ function useBankingInfoForm(props) {
1008
913
  const [paymentScheduleChecked, setPaymentScheduleChecked] = stencilHooks_module.useState(undefined);
1009
914
  const [countrySearch, setCountrySearch] = stencilHooks_module.useState("");
1010
915
  const [filteredCountries, setFilteredCountries] = stencilHooks_module.useState(countries || []);
916
+ const [showModal, setShowModal] = stencilHooks_module.useState(false);
1011
917
  const currency = ((_c = (_b = (_a = userData === null || userData === void 0 ? void 0 : userData.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher) === null || _c === void 0 ? void 0 : _c.currency) || "";
1012
918
  const isPartner = !!((_f = (_e = (_d = userData === null || userData === void 0 ? void 0 : userData.user) === null || _d === void 0 ? void 0 : _d.impactConnection) === null || _e === void 0 ? void 0 : _e.publisher) === null || _f === void 0 ? void 0 : _f.withdrawalSettings);
1013
919
  const feeCap = paypalFeeMap[currency] || "";
@@ -1179,10 +1085,12 @@ function useBankingInfoForm(props) {
1179
1085
  });
1180
1086
  setErrors({ inputErrors: validationErrors });
1181
1087
  if (Object.keys(validationErrors).length) {
1088
+ setShowModal(false);
1182
1089
  return;
1183
1090
  }
1184
1091
  let token = undefined;
1185
1092
  if (isPartner) {
1093
+ setShowModal(false);
1186
1094
  setShowVerification(true);
1187
1095
  token = await new Promise((res) => {
1188
1096
  const cb = (e) => {
@@ -1195,6 +1103,7 @@ function useBankingInfoForm(props) {
1195
1103
  setShowVerification(false);
1196
1104
  }
1197
1105
  await runMutation(formData, token);
1106
+ setShowModal(false);
1198
1107
  };
1199
1108
  const onVerification = async (token) => {
1200
1109
  host.dispatchEvent(new CustomEvent(keys.VERIFICATION_EVENT_KEY, {
@@ -1228,6 +1137,8 @@ function useBankingInfoForm(props) {
1228
1137
  setCountrySearch,
1229
1138
  onVerification,
1230
1139
  onVerificationHide: () => onVerification(null),
1140
+ onModalClose: () => setShowModal(false),
1141
+ onModalOpen: () => setShowModal(true),
1231
1142
  },
1232
1143
  states: {
1233
1144
  showVerification,
@@ -1261,6 +1172,7 @@ function useBankingInfoForm(props) {
1261
1172
  bankCountry: formState.bankCountry,
1262
1173
  countrySearch,
1263
1174
  email: (_j = userData === null || userData === void 0 ? void 0 : userData.user) === null || _j === void 0 ? void 0 : _j.email,
1175
+ showModal,
1264
1176
  },
1265
1177
  refs: {
1266
1178
  formRef,
@@ -1345,7 +1257,11 @@ const BankingInfoForm = class {
1345
1257
  /**
1346
1258
  * @uiName Beneficiary account field label
1347
1259
  */
1348
- this.beneficiaryAccountNameLabel = "Beneficiary account name";
1260
+ this.beneficiaryAccountNameLabel = "Account holder name";
1261
+ /**
1262
+ * @uiName Beneficiary account field description
1263
+ */
1264
+ this.beneficiaryAccountNameDescription = "The beneficiary name of your bank account. Ensure this matches the name on your tax form.";
1349
1265
  /**
1350
1266
  * @uiName Bank account type field label
1351
1267
  */
@@ -1524,6 +1440,18 @@ const BankingInfoForm = class {
1524
1440
  * @uiWidget textArea
1525
1441
  */
1526
1442
  this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact Support.";
1443
+ /**
1444
+ * @uiName Information modal title
1445
+ */
1446
+ this.modalTitle = "Important Note";
1447
+ /**
1448
+ * @uiName Information modal description text
1449
+ */
1450
+ 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.";
1451
+ /**
1452
+ * @uiName Information modal button text
1453
+ */
1454
+ this.modalButtonText = "I understand, update my information";
1527
1455
  stencilHooks_module.h$1(this);
1528
1456
  }
1529
1457
  disconnectedCallback() { }
@@ -1664,7 +1592,7 @@ function useDemoBankingInfoForm(props) {
1664
1592
  const defaultPaymentScheduleChecked = (_f = (_e = (_d = props.demoData) === null || _d === void 0 ? void 0 : _d.states) === null || _e === void 0 ? void 0 : _e.formState) === null || _f === void 0 ? void 0 : _f.paymentScheduleChecked;
1665
1593
  const defaultCurrency = (_h = (_g = props.demoData) === null || _g === void 0 ? void 0 : _g.states) === null || _h === void 0 ? void 0 : _h.currency;
1666
1594
  const defaultCountry = (_l = (_k = (_j = props.demoData) === null || _j === void 0 ? void 0 : _j.states) === null || _k === void 0 ? void 0 : _k.formState) === null || _l === void 0 ? void 0 : _l.bankCountry;
1667
- const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
1595
+ const setStep = index_module.En(data.TAX_CONTEXT_NAMESPACE);
1668
1596
  const [paymentMethodChecked, setPaymentMethodChecked] = stencilHooks_module.useState(undefined);
1669
1597
  const [paymentScheduleChecked, setPaymentScheduleChecked] = stencilHooks_module.useState(undefined);
1670
1598
  const [currency, setCurrency] = stencilHooks_module.useState(defaultCurrency);
@@ -1737,6 +1665,7 @@ function useDemoBankingInfoForm(props) {
1737
1665
  currency,
1738
1666
  setCurrency,
1739
1667
  hasPayPal: true,
1668
+ showModal: false,
1740
1669
  },
1741
1670
  callbacks: {
1742
1671
  onVerificationHide: () => { },
@@ -1749,6 +1678,8 @@ function useDemoBankingInfoForm(props) {
1749
1678
  setCountrySearch: () => { },
1750
1679
  onBack: async () => setStep("/dashboard"),
1751
1680
  onVerification: () => { },
1681
+ onModalOpen: () => { },
1682
+ onModalClose: () => { },
1752
1683
  },
1753
1684
  text: props.getTextProps(),
1754
1685
  refs: {
@@ -1757,331 +1688,6 @@ function useDemoBankingInfoForm(props) {
1757
1688
  }, props.demoData || {}, { arrayMerge: (_, a) => a });
1758
1689
  }
1759
1690
 
1760
- const style$1 = {
1761
- Wrapper: {
1762
- display: "flex",
1763
- flexDirection: "column",
1764
- gap: "var(--sl-spacing-medium)",
1765
- maxWidth: "550px",
1766
- },
1767
- HeaderContainer: {
1768
- display: "flex",
1769
- flexDirection: "column",
1770
- },
1771
- InputsContainer: {
1772
- display: "flex",
1773
- gap: "var(--sl-spacing-medium)",
1774
- position: "relative",
1775
- flexDirection: "column",
1776
- },
1777
- CodeInputContainer: {
1778
- display: "flex",
1779
- gap: "var(--sl-spacing-medium)",
1780
- },
1781
- CodeInput: {
1782
- maxWidth: "40px",
1783
- "&::part(input)": {
1784
- margin: "0",
1785
- padding: "0 var(--sl-input-spacing-small)",
1786
- fontSize: "var(--sl-font-size-large)",
1787
- },
1788
- },
1789
- CodeInputError: {
1790
- ...mixins.ErrorStyles,
1791
- maxWidth: "40px",
1792
- "&::part(input)": {
1793
- margin: "0",
1794
- padding: "0 var(--sl-input-spacing-small)",
1795
- fontSize: "var(--sl-font-size-large)",
1796
- },
1797
- },
1798
- ErrorText: {
1799
- color: "var(--sl-color-danger-500)",
1800
- fontSize: "var(--sl-font-size-small)",
1801
- margin: "0",
1802
- },
1803
- ContinueButton: {
1804
- width: "100%",
1805
- maxWidth: "100px",
1806
- },
1807
- FooterContainer: {
1808
- display: "flex",
1809
- flexDirection: "column",
1810
- },
1811
- SkeletonOne: {
1812
- width: "50%",
1813
- height: "16px",
1814
- },
1815
- SkeletonTwo: {
1816
- width: "30%",
1817
- height: "34px",
1818
- },
1819
- SkeletonThree: {
1820
- width: "15%",
1821
- height: "24px",
1822
- },
1823
- };
1824
- const vanillaStyle$1 = `
1825
- :host {
1826
- display: block;
1827
- }
1828
- :host([hidden]): {
1829
- display: none;
1830
- }
1831
-
1832
-
1833
- `;
1834
- const sheet$1 = JSS.createStyleSheet(style$1);
1835
- const styleString$1 = sheet$1.toString();
1836
- function WidgetCodeVerificationView(props) {
1837
- const { states, refs, callbacks, text } = props;
1838
- const resendCodeText = global.intl.formatMessage({
1839
- id: "resendCodeText",
1840
- defaultMessage: text.resendCodeText,
1841
- }, {
1842
- resendCodeLink: (index.h("a", { href: "", style: { textDecoration: "none" }, onClick: (e) => {
1843
- e.preventDefault();
1844
- callbacks.resendEmail();
1845
- } }, text.resendCodeLabel)),
1846
- });
1847
- const codeResentSuccessfully = global.intl.formatMessage({
1848
- id: "codeResentSuccessfully",
1849
- defaultMessage: text.codeResentSuccessfullyText,
1850
- }, {
1851
- email: states.email,
1852
- });
1853
- const inputClass = states.verifyFailed
1854
- ? sheet$1.classes.CodeInputError
1855
- : sheet$1.classes.CodeInput;
1856
- return (index.h("div", { part: "sqm-base" },
1857
- index.h("style", { type: "text/css" },
1858
- vanillaStyle$1,
1859
- styleString$1),
1860
- index.h("div", { class: sheet$1.classes.Wrapper },
1861
- index.h("div", { class: sheet$1.classes.HeaderContainer },
1862
- index.h(sqmTextSpanView.TextSpanView, { type: "p" }, global.intl.formatMessage({
1863
- id: `emailHeaderText`,
1864
- defaultMessage: states.verifyFailed
1865
- ? text.reverifyCodeHeaderText
1866
- : text.verifyCodeHeaderText,
1867
- }, { email: states.email }))),
1868
- states.emailResent && (index.h("sqm-form-message", { type: "success", exportparts: "successalert-icon" },
1869
- index.h("b", null, codeResentSuccessfully))),
1870
- index.h("div", { class: sheet$1.classes.InputsContainer },
1871
- index.h("div", { ref: refs.codeWrapperRef, class: sheet$1.classes.CodeInputContainer },
1872
- index.h("sl-input", { class: inputClass, name: "code" }),
1873
- index.h("sl-input", { class: inputClass, name: "code" }),
1874
- index.h("sl-input", { class: inputClass, name: "code" }),
1875
- index.h("sl-input", { class: inputClass, name: "code" }),
1876
- index.h("sl-input", { class: inputClass, name: "code" }),
1877
- index.h("sl-input", { class: inputClass, name: "code" })),
1878
- states.verifyFailed && (index.h("p", { class: sheet$1.classes.ErrorText }, text.invalidCodeText)),
1879
- index.h("sl-button", { class: sheet$1.classes.ContinueButton, onClick: callbacks.submitCode, disabled: states.loading || states.initialiseLoading, loading: states.loading || states.initialiseLoading, exportparts: "base: primarybutton-base", type: "primary" }, text.verifyText)),
1880
- index.h("div", { class: sheet$1.classes.FooterContainer },
1881
- index.h(sqmTextSpanView.TextSpanView, { type: "p" }, resendCodeText)))));
1882
- }
1883
-
1884
- const VerifyEmailWithCodeMutation = index_module.dist.gql `
1885
- mutation submitImpactPublisherEmail2FACode(
1886
- $user: UserIdInput!
1887
- $code: String!
1888
- ) {
1889
- submitImpactPublisherEmail2FACode(user: $user, code: $code) {
1890
- verifiedEmail
1891
- accessKey
1892
- }
1893
- }
1894
- `;
1895
- function useWidgetCodeVerification(props) {
1896
- const host = stencilHooks_module.l();
1897
- const [_, setShowCode] = index_module.Pn(keys.SHOW_CODE_NAMESPACE);
1898
- const email = index_module.Fn(keys.VERIFICATION_EMAIL_NAMESPACE);
1899
- const [emailSent, setEmailSent] = stencilHooks_module.useState(false);
1900
- const [emailResent, setEmailResent] = stencilHooks_module.useState(false);
1901
- const [codeRef, setCodeRef] = stencilHooks_module.useState(null);
1902
- const [validationError, setValidationError] = stencilHooks_module.useState(false);
1903
- const [emailError, setEmailError] = stencilHooks_module.useState(false);
1904
- const { initialized, verificationEmail, send: [sendEmail, { loading: sendLoading, errors: sendErrors }], verify: [verifyEmail, { loading: verifyLoading, errors: verifyErrors }], } = useVerificationEmail.useVerificationEmail();
1905
- stencilHooks_module.useEffect(() => {
1906
- if (!codeRef)
1907
- return;
1908
- const slInputs = codeRef.querySelectorAll("sl-input");
1909
- const codeElements = Array.from(slInputs).map((node) => node.shadowRoot.querySelector(`input[name="code"]`));
1910
- codeElements.forEach((element, idx) => {
1911
- element.addEventListener("focus", (e) => {
1912
- e.target.select();
1913
- });
1914
- element.addEventListener("keydown", (e) => {
1915
- if (e.key === "Backspace" && e.target.value === "") {
1916
- codeElements[Math.max(0, idx - 1)].focus();
1917
- }
1918
- });
1919
- element.addEventListener("input", (e) => {
1920
- const input = e.data;
1921
- if (!input)
1922
- return;
1923
- if (idx === codeElements.length - 1) {
1924
- e.target.value = input.slice(0, 1);
1925
- return;
1926
- }
1927
- if (input.length > 1) {
1928
- const rest = input.slice(1);
1929
- e.target.value = input.slice(0, 1);
1930
- codeElements[idx + 1].dispatchEvent(new InputEvent("input", {
1931
- inputType: "insertFromPaste",
1932
- data: rest,
1933
- }));
1934
- }
1935
- codeElements[idx + 1].focus();
1936
- });
1937
- });
1938
- }, [codeRef]);
1939
- const reset = () => {
1940
- setShowCode(false);
1941
- setValidationError(false);
1942
- };
1943
- const resendEmail = async () => {
1944
- // UI should only allow this to be called if initialized, but checking just in case
1945
- if (!initialized)
1946
- return;
1947
- const result = await sendEmail();
1948
- if (!result) {
1949
- setEmailError(true);
1950
- return;
1951
- }
1952
- if (emailSent)
1953
- setEmailResent(true);
1954
- setEmailSent(true);
1955
- };
1956
- const submitCode = async () => {
1957
- const slInputs = codeRef.querySelectorAll("sl-input");
1958
- const codeElements = Array.from(slInputs).map((node) => node.shadowRoot.querySelector(`input[name="code"]`));
1959
- if (codeElements.find((el) => !el.value)) {
1960
- setValidationError(true);
1961
- return;
1962
- }
1963
- let code = "";
1964
- codeElements.forEach((element) => {
1965
- code = `${code}${element.value}`;
1966
- });
1967
- // UI should only allow this to be called if initialized, but checking just in case
1968
- if (!initialized)
1969
- return;
1970
- setValidationError(false);
1971
- const res = await verifyEmail(code);
1972
- if (res === null || res === void 0 ? void 0 : res.success) {
1973
- props.onVerification(res.accessKey);
1974
- reset();
1975
- }
1976
- else {
1977
- setValidationError(true);
1978
- }
1979
- };
1980
- stencilHooks_module.useEffect(() => {
1981
- // Wait for mutations to be determined from user lookup
1982
- if (!initialized)
1983
- return;
1984
- // email should already exist if user has completed email-verification
1985
- if (!email)
1986
- resendEmail();
1987
- else
1988
- setEmailSent(true);
1989
- }, [initialized]);
1990
- return {
1991
- refs: {
1992
- codeWrapperRef: setCodeRef,
1993
- },
1994
- states: {
1995
- email: verificationEmail,
1996
- emailResent,
1997
- resendError: sendErrors || verifyErrors,
1998
- initialiseLoading: !initialized,
1999
- loading: sendLoading || verifyLoading,
2000
- verifyFailed: !!validationError,
2001
- },
2002
- callbacks: {
2003
- resendEmail,
2004
- submitCode,
2005
- },
2006
- text: props.getTextProps(),
2007
- };
2008
- }
2009
-
2010
- const WidgetCodeVerification = class {
2011
- constructor(hostRef) {
2012
- index.registerInstance(this, hostRef);
2013
- /**
2014
- * @uiName Verify code widget header text
2015
- */
2016
- this.verifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
2017
- /**
2018
- * @uiName Reverify code widget header text
2019
- */
2020
- this.reverifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
2021
- /**
2022
- * Text displayed under verify button
2023
- * @uiName Resend code text
2024
- */
2025
- this.resendCodeText = "Didn't receive your code? {resendCodeLink}";
2026
- /**
2027
- * The link that appears in the resend code link
2028
- * @uiName Resend code label
2029
- */
2030
- this.resendCodeLabel = "Resend code";
2031
- /**
2032
- * Link text displayed under verify button
2033
- * @uiName Resend code text
2034
- */
2035
- this.codeResentSuccessfullyText = "Another code has been sent to {email}";
2036
- /**
2037
- * Error text displayed under verification input
2038
- * @uiName Invalid code text
2039
- */
2040
- this.invalidCodeText = "Please check your code and try again. If you’re still having trouble, try resending your code.";
2041
- /**
2042
- * @uiName Verify code button text
2043
- */
2044
- this.verifyText = "Verify";
2045
- /**
2046
- * Displayed when the email verification fails due to a network error. The participant can try refreshing the page.
2047
- * @uiName Network error message
2048
- */
2049
- this.networkErrorMessage = "An error occurred while verifying your email. Please refresh the page and try again.";
2050
- stencilHooks_module.h$1(this);
2051
- }
2052
- disconnectedCallback() { }
2053
- getTextProps() {
2054
- return utils.getProps(this);
2055
- }
2056
- render() {
2057
- const props = index_module.isDemo()
2058
- ? useDemoWidgetCodeVerification(this)
2059
- : useWidgetCodeVerification(this);
2060
- return index.h(WidgetCodeVerificationView, Object.assign({}, props));
2061
- }
2062
- };
2063
- function useDemoWidgetCodeVerification(props) {
2064
- const [emailResent, setEmailResent] = stencilHooks_module.useState(false);
2065
- const setVerifiedContext = index_module.En(keys.VERIFICATION_PARENT_NAMESPACE);
2066
- return cjs.cjs({
2067
- states: {
2068
- loading: false,
2069
- email: "test@example.com",
2070
- emailResent,
2071
- resendError: false,
2072
- verifyFailed: false,
2073
- },
2074
- refs: {
2075
- codeWrapperRef: () => { },
2076
- },
2077
- callbacks: {
2078
- resendEmail: async () => setEmailResent(true),
2079
- submitCode: async () => setVerifiedContext(true),
2080
- },
2081
- text: props.getTextProps(),
2082
- }, props.demoData || {}, { arrayMerge: (_, a) => a });
2083
- }
2084
-
2085
1691
  const GET_TAX_DOCUMENT = index_module.dist.gql `
2086
1692
  mutation createImpactPublisherTaxDocument(
2087
1693
  $vars: CreateImpactPublisherTaxDocumentInput!
@@ -2110,10 +1716,10 @@ const DOCUSIGN_EXPIRED_STATES = ["ttl_expired", "session_timeout"];
2110
1716
  function useDocusignForm(props) {
2111
1717
  var _a, _b, _c;
2112
1718
  const user = index_module.J();
2113
- const context = index_module.Fn(TAX_FORM_CONTEXT_NAMESPACE);
2114
- const [step, setStep] = index_module.Pn(TAX_CONTEXT_NAMESPACE);
2115
- const { data, loading: userLoading, refetch, } = index_module.$n(USER_QUERY_NAMESPACE);
2116
- const publisher = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher;
1719
+ const context = index_module.Fn(data.TAX_FORM_CONTEXT_NAMESPACE);
1720
+ const [step, setStep] = index_module.Pn(data.TAX_CONTEXT_NAMESPACE);
1721
+ const { data: data$1, loading: userLoading, refetch, } = index_module.$n(data.USER_QUERY_NAMESPACE);
1722
+ const publisher = (_b = (_a = data$1 === null || data$1 === void 0 ? void 0 : data$1.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher;
2117
1723
  const [createTaxDocument, { loading: documentLoading, data: document, errors: documentErrors },] = index_module.$e(GET_TAX_DOCUMENT);
2118
1724
  const [completeTaxDocument, { loading: completeDocumentLoading, data: completeData, errors: completeErrors, },] = index_module.$e(COMPLETE_TAX_DOCUMENT);
2119
1725
  const [docusignStatus, setDocusignStatus] = stencilHooks_module.useState(undefined);
@@ -2121,8 +1727,9 @@ function useDocusignForm(props) {
2121
1727
  const [errors, setErrors] = stencilHooks_module.useState({});
2122
1728
  const [loading, setLoading] = stencilHooks_module.useState(false);
2123
1729
  const [showExitButton, setShowExitButton] = stencilHooks_module.useState(false);
1730
+ const [showModal, setShowModal] = stencilHooks_module.useState(true);
2124
1731
  // Only look at current document if it's valid (same as required type)
2125
- const existingDocumentType = sqmInvoiceTableView.validTaxDocument(publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType) && (publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument)
1732
+ const existingDocumentType = utils$1.validTaxDocument(publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType) && (publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument)
2126
1733
  ? publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType : undefined;
2127
1734
  const actualDocumentType = existingDocumentType ||
2128
1735
  getDocumentType(participantType) || (publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType);
@@ -2214,8 +1821,9 @@ function useDocusignForm(props) {
2214
1821
  },
2215
1822
  docusignStatus,
2216
1823
  documentType: actualDocumentType,
2217
- documentTypeString: sqmInvoiceTableView.taxTypeToName(actualDocumentType),
1824
+ documentTypeString: utils$1.taxTypeToName(actualDocumentType),
2218
1825
  showExitButton,
1826
+ showModal,
2219
1827
  },
2220
1828
  data: {
2221
1829
  taxForm: actualDocumentType,
@@ -2226,6 +1834,8 @@ function useDocusignForm(props) {
2226
1834
  completeDocument,
2227
1835
  onExit: progressStep,
2228
1836
  setParticipantType,
1837
+ onModalClose: () => setShowModal(false),
1838
+ onModalOpen: () => setShowModal(true),
2229
1839
  },
2230
1840
  text: props.getTextProps(),
2231
1841
  };
@@ -2239,7 +1849,7 @@ function getDocumentType(p) {
2239
1849
  return undefined;
2240
1850
  }
2241
1851
 
2242
- const style$2 = {
1852
+ const style$1 = {
2243
1853
  DocusignStatusContainer: {
2244
1854
  width: "100%",
2245
1855
  minHeight: "600px",
@@ -2251,7 +1861,7 @@ const style$2 = {
2251
1861
  gap: "10px",
2252
1862
  margin: "auto",
2253
1863
  textAlign: "center",
2254
- border: "1px solid var(--sl-color-gray-200)",
1864
+ border: "1px solid var(--sqm-border-color)",
2255
1865
  justifyContent: "center",
2256
1866
  },
2257
1867
  MessageContainer: {
@@ -2266,47 +1876,47 @@ const style$2 = {
2266
1876
  },
2267
1877
  },
2268
1878
  };
2269
- const sheet$2 = JSS.createStyleSheet(style$2);
2270
- const styleString$2 = sheet$2.toString();
1879
+ const sheet$1 = JSS.createStyleSheet(style$1);
1880
+ const styleString$1 = sheet$1.toString();
2271
1881
  const DocusignExpiredView = (props) => {
2272
- const { classes } = sheet$2;
1882
+ const { classes } = sheet$1;
2273
1883
  const { text } = props;
2274
1884
  return (index.h("div", null,
2275
- index.h("style", { type: "text/css" }, styleString$2),
1885
+ index.h("style", { type: "text/css" }, styleString$1),
2276
1886
  index.h("div", { class: classes.DocusignStatusContainer },
2277
1887
  index.h("sl-icon", { style: {
2278
1888
  width: "50px",
2279
1889
  height: "50px",
2280
- color: "var(--sl-color-neutral-500)",
1890
+ color: "var(--sqm-text)",
2281
1891
  }, name: "clock" }),
2282
1892
  index.h("div", { class: classes.MessageContainer },
2283
1893
  index.h("p", { style: { margin: "0" } }, text.docusignExpired)),
2284
1894
  index.h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
2285
1895
  };
2286
1896
  const DocusignErrorView = (props) => {
2287
- const { classes } = sheet$2;
1897
+ const { classes } = sheet$1;
2288
1898
  const { text } = props;
2289
1899
  return (index.h("div", null,
2290
- index.h("style", { type: "text/css" }, styleString$2),
1900
+ index.h("style", { type: "text/css" }, styleString$1),
2291
1901
  index.h("div", { class: classes.DocusignStatusContainer },
2292
1902
  index.h("sl-icon", { style: {
2293
1903
  width: "50px",
2294
1904
  height: "50px",
2295
- color: "var(--sl-color-gray-500)",
1905
+ color: "var(--sqm-text)",
2296
1906
  }, name: "exclamation-octagon" }),
2297
1907
  index.h("div", { class: classes.MessageContainer },
2298
1908
  index.h("p", { style: { margin: "0" } }, text.docusignError)),
2299
1909
  index.h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
2300
1910
  };
2301
1911
  const DocusignLoadingView = () => {
2302
- const { classes } = sheet$2;
1912
+ const { classes } = sheet$1;
2303
1913
  return (index.h("div", null,
2304
- index.h("style", { type: "text/css" }, styleString$2),
1914
+ index.h("style", { type: "text/css" }, styleString$1),
2305
1915
  index.h("div", { class: classes.DocusignStatusContainer },
2306
1916
  index.h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } }))));
2307
1917
  };
2308
1918
  const DocusignIframe = ({ states, data, callbacks, text, }) => {
2309
- const { classes } = sheet$2;
1919
+ const { classes } = sheet$1;
2310
1920
  const [iFrameHeight, setiFrameHeight] = stencilHooks_module.useState("100%");
2311
1921
  const allowedDomains = [
2312
1922
  "referralsaasquatch.com",
@@ -2339,12 +1949,17 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
2339
1949
  return index.h(DocusignExpiredView, { text: text });
2340
1950
  // Wrap iFrame with container that shares the same height to push other elements down when absolute positioned
2341
1951
  return (index.h("div", { style: { height: iFrameHeight } },
2342
- index.h("style", { type: "text/css" }, styleString$2),
1952
+ index.h("style", { type: "text/css" }, styleString$1),
2343
1953
  index.h("div", { class: classes.IFrameContainer },
2344
1954
  index.h("iframe", { scrolling: "yes", frameBorder: "0", width: "100%", src: data.documentUrl, height: iFrameHeight }))));
2345
1955
  };
2346
1956
 
2347
- const style$3 = {
1957
+ const style$2 = {
1958
+ ModalTitleContainer: {
1959
+ display: "flex",
1960
+ gap: "var(--sl-spacing-small)",
1961
+ alignItems: "center",
1962
+ },
2348
1963
  FormWrapper: {
2349
1964
  display: "flex",
2350
1965
  justifyContent: "flex-start",
@@ -2376,7 +1991,7 @@ const style$3 = {
2376
1991
  gap: "8px",
2377
1992
  },
2378
1993
  ErrorText: {
2379
- color: "var(--sl-color-danger-500)",
1994
+ color: "var(--sqm-danger-color-icon)",
2380
1995
  marginTop: "10px",
2381
1996
  },
2382
1997
  DescriptionText: {
@@ -2387,31 +2002,27 @@ const style$3 = {
2387
2002
  },
2388
2003
  ErrorAlertContainer: {
2389
2004
  "&::part(base)": {
2390
- backgroundColor: "var(--sl-color-red-100)",
2391
- borderTop: "none",
2005
+ backgroundColor: "var(--sqm-danger-color-background)",
2006
+ border: "none",
2392
2007
  padding: "0 16px",
2008
+ color: "var(--sqm-danger-color-text)",
2009
+ marginBottom: "16px",
2393
2010
  },
2394
2011
  "& sl-icon::part(base)": {
2395
- color: "var(--sl-color-danger-500)",
2012
+ color: "var(--sqm-danger-color-icon)",
2396
2013
  },
2397
2014
  },
2398
2015
  InfoAlert: {
2399
2016
  "&::part(base)": {
2400
- backgroundColor: "transparent",
2017
+ backgroundColor: "var(--sqm-informative-color-background)",
2401
2018
  borderTop: "none",
2402
- padding: "0px",
2403
- marginBottom: "16px",
2019
+ padding: "0 16px",
2404
2020
  border: "none",
2405
- },
2406
- "&::part(message)": {
2407
- display: "flex",
2408
- alignItems: "center",
2409
- justifyContent: "flex-start",
2410
- padding: "10px",
2411
- height: "max-content",
2021
+ color: "var(--sqm-informative-color-text)",
2022
+ marginBottom: "16px",
2412
2023
  },
2413
2024
  "& sl-icon::part(base)": {
2414
- color: "var(--sl-color-sky-500)",
2025
+ color: "var(--sqm-informative-color-icon)",
2415
2026
  },
2416
2027
  },
2417
2028
  Container: {
@@ -2421,16 +2032,6 @@ const style$3 = {
2421
2032
  flexDirection: "column",
2422
2033
  gap: "16px",
2423
2034
  },
2424
- Link: {
2425
- color: "var(--sl-color-sky-500)",
2426
- textDecoration: "none",
2427
- "&:visited": {
2428
- color: "var(--sl-color-sky-500)",
2429
- },
2430
- "&:hover": {
2431
- textDecoration: "underline",
2432
- },
2433
- },
2434
2035
  CheckboxWrapper: {
2435
2036
  display: "flex",
2436
2037
  justifyContent: "flex-start",
@@ -2444,13 +2045,35 @@ const style$3 = {
2444
2045
  fontSize: "var(--sl-font-size-small)",
2445
2046
  },
2446
2047
  PageDescriptionText: {
2447
- color: "var(--sl-color-neutral-500)",
2048
+ color: "var(--sqm-text-subdued)",
2448
2049
  fontSize: "var(--sl-font-size-medium)",
2449
2050
  },
2051
+ Dialog: {
2052
+ "&::part(panel)": {
2053
+ maxWidth: "420px",
2054
+ },
2055
+ "&::part(title)": {
2056
+ fontSize: "var(--sl-font-size-large)",
2057
+ fontWeight: "600",
2058
+ },
2059
+ "&::part(body)": {
2060
+ padding: "0 var(--sl-spacing-x-large) 0 var(--sl-spacing-x-large)",
2061
+ fontSize: "var(--sl-font-size-small)",
2062
+ },
2063
+ "&::part(footer)": {
2064
+ display: "flex",
2065
+ flexDirection: "column",
2066
+ gap: "var(--sl-spacing-small)",
2067
+ marginBottom: "var(--sl-spacing-xx-small)",
2068
+ alignItems: "center",
2069
+ flex: "1",
2070
+ },
2071
+ },
2072
+ DialogButton: { margin: "auto", width: "100%" },
2450
2073
  };
2451
- const sheet$3 = JSS.createStyleSheet(style$3);
2452
- const styleString$3 = sheet$3.toString();
2453
- const vanillaStyle$2 = `
2074
+ const sheet$2 = JSS.createStyleSheet(style$2);
2075
+ const styleString$2 = sheet$2.toString();
2076
+ const vanillaStyle$1 = `
2454
2077
  :host{
2455
2078
  display: block;
2456
2079
  }
@@ -2462,6 +2085,8 @@ const vanillaStyle$2 = `
2462
2085
 
2463
2086
  a {
2464
2087
  cursor: pointer;
2088
+ color: var(--sqm-text);
2089
+ text-decoration: underline;
2465
2090
  }
2466
2091
 
2467
2092
 
@@ -2469,21 +2094,32 @@ const vanillaStyle$2 = `
2469
2094
  const DocusignFormView = (props) => {
2470
2095
  var _a;
2471
2096
  const { states, states: { formState, documentTypeString }, callbacks, text, slots, } = props;
2472
- const { classes } = sheet$3;
2097
+ const { classes } = sheet$2;
2473
2098
  return (index.h("div", { class: classes.Container },
2474
2099
  index.h("style", { type: "text/css" },
2475
- styleString$3,
2476
- vanillaStyle$2),
2100
+ styleString$2,
2101
+ vanillaStyle$1),
2102
+ index.h("sl-dialog", { class: sheet$2.classes.Dialog, open: states.showModal, "onSl-hide": callbacks.onModalClose },
2103
+ index.h("div", { class: classes.ModalTitleContainer, slot: "label" },
2104
+ index.h("sl-icon", { name: "info-circle", style: { color: "var(--sl-color-info-500)" } }),
2105
+ index.h("h2", { style: { fontSize: "var(--sl-font-size-large)" } }, text.modalTitle)),
2106
+ index.h("p", null, global.intl.formatMessage({
2107
+ id: "modalText",
2108
+ defaultMessage: text.modalDescription,
2109
+ }, {
2110
+ br: index.h("br", null),
2111
+ })),
2112
+ index.h("sl-button", { slot: "footer", type: "primary", class: sheet$2.classes.DialogButton, onClick: callbacks.onModalClose, exportparts: "base: primarybutton-base" }, text.modalButtonText)),
2477
2113
  index.h("div", { class: classes.TextContainer },
2478
2114
  index.h("div", null,
2479
2115
  !states.hideSteps && (index.h("p", null, global.intl.formatMessage({
2480
2116
  id: "formStep",
2481
2117
  defaultMessage: text.formStep,
2482
- }, { step: states.step, count: FORM_STEPS }))),
2118
+ }, { step: states.step, count: data.FORM_STEPS }))),
2483
2119
  index.h("h3", null, text.taxForm),
2484
2120
  index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
2485
2121
  states.loadingError && (index.h("div", null,
2486
- index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$3.classes.ErrorAlertContainer },
2122
+ index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$2.classes.ErrorAlertContainer },
2487
2123
  index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
2488
2124
  index.h("strong", null, text.error.loadingErrorAlertHeader),
2489
2125
  index.h("br", null),
@@ -2493,7 +2129,7 @@ const DocusignFormView = (props) => {
2493
2129
  }, {
2494
2130
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
2495
2131
  })))),
2496
- ((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$3.classes.ErrorAlertContainer },
2132
+ ((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$2.classes.ErrorAlertContainer },
2497
2133
  index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
2498
2134
  index.h("strong", null, text.error.generalTitle),
2499
2135
  index.h("br", null),
@@ -2627,6 +2263,18 @@ const DocusignForm = class {
2627
2263
  * @uiName Exit button text
2628
2264
  */
2629
2265
  this.exitButton = "Exit";
2266
+ /**
2267
+ * @uiName Information modal title
2268
+ */
2269
+ this.modalTitle = "Important Note";
2270
+ /**
2271
+ * @uiName Information modal description text
2272
+ */
2273
+ 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.";
2274
+ /**
2275
+ * @uiName Information modal button text
2276
+ */
2277
+ this.modalButtonText = "I understand";
2630
2278
  stencilHooks_module.h$1(this);
2631
2279
  }
2632
2280
  disconnectedCallback() { }
@@ -2664,11 +2312,11 @@ const DocusignForm = class {
2664
2312
  get el() { return index.getElement(this); }
2665
2313
  };
2666
2314
  function useDocusignFormDemo(props) {
2667
- const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
2315
+ const setStep = index_module.En(data.TAX_CONTEXT_NAMESPACE);
2668
2316
  return cjs.cjs({
2669
2317
  text: props.getTextProps(),
2670
2318
  states: {
2671
- step: "4",
2319
+ step: "3",
2672
2320
  disabled: false,
2673
2321
  submitDisabled: false,
2674
2322
  loading: false,
@@ -2681,6 +2329,7 @@ function useDocusignFormDemo(props) {
2681
2329
  errors: {},
2682
2330
  },
2683
2331
  documentType: "W9",
2332
+ showModal: false,
2684
2333
  },
2685
2334
  data: {
2686
2335
  taxForm: "W9",
@@ -2691,6 +2340,8 @@ function useDocusignFormDemo(props) {
2691
2340
  demo: {
2692
2341
  onSubmit: () => setStep("/4"),
2693
2342
  onBack: () => setStep("/3"),
2343
+ onModalOpen: () => { },
2344
+ onModalClose: () => { },
2694
2345
  },
2695
2346
  setParticipantType: (p) => console.log({ p }),
2696
2347
  setDocusignStatus: (status) => console.log(status),
@@ -2701,7 +2352,7 @@ const DemoDocusignIframe = ({ callbacks }) => {
2701
2352
  return (index.h("div", { style: {
2702
2353
  width: "100%",
2703
2354
  height: "600px",
2704
- background: "#fafafa",
2355
+ background: "inherit",
2705
2356
  display: "flex",
2706
2357
  justifyContent: "center",
2707
2358
  alignItems: "center",
@@ -2713,7 +2364,7 @@ const DemoDocusignIframe = ({ callbacks }) => {
2713
2364
  } }, index.h("span", null, "Placeholder for docusign iframe"), index.h("div", { style: { display: "flex", gap: "8px" } }, index.h("sl-button", { type: "primary", submit: true, exportparts: "base: primarybutton-base", onClick: callbacks.demo.onBack }, "Back to Step 2"), index.h("sl-button", { type: "primary", submit: true, exportparts: "base: primarybutton-base", onClick: callbacks.demo.onSubmit }, "Continue to Step 4")))));
2714
2365
  };
2715
2366
 
2716
- const style$4 = {
2367
+ const style$3 = {
2717
2368
  FormWrapper: {
2718
2369
  display: "flex",
2719
2370
  justifyContent: "flex-start",
@@ -2725,6 +2376,7 @@ const style$4 = {
2725
2376
  justifyContent: "flex-start",
2726
2377
  flexDirection: "column",
2727
2378
  gap: "var(--sl-spacing-medium)",
2379
+ marginBottom: "16px",
2728
2380
  "& sl-radio::part(base)": {
2729
2381
  alignItems: "start",
2730
2382
  },
@@ -2765,26 +2417,30 @@ const style$4 = {
2765
2417
  marginTop: "10px",
2766
2418
  },
2767
2419
  DescriptionText: {
2768
- color: "var(--sl-color-neutral-500)",
2420
+ color: "var(--sqm-text-subdued)",
2769
2421
  },
2770
2422
  AlertContainer: {
2771
2423
  "&::part(base)": {
2772
- backgroundColor: "var(--sl-color-red-100)",
2773
- borderTop: "none",
2424
+ backgroundColor: "var(--sqm-danger-color-background)",
2425
+ border: "none",
2774
2426
  padding: "0 16px",
2427
+ marginBottom: "16px",
2775
2428
  },
2776
2429
  "& sl-icon::part(base)": {
2777
- color: "var(--sl-color-danger-500)",
2430
+ color: "var(--sqm-danger-color-icon)",
2778
2431
  },
2779
2432
  },
2780
2433
  PartnerAlertContainer: {
2781
2434
  "&::part(base)": {
2782
- backgroundColor: "var(--sl-color-sky-100)",
2435
+ backgroundColor: "var(--sqm-informative-color-background)",
2783
2436
  borderTop: "none",
2784
2437
  padding: "0 16px",
2438
+ border: "none",
2439
+ color: "var(--sqm-informative-color-text)",
2440
+ marginBottom: "16px",
2785
2441
  },
2786
2442
  "& sl-icon::part(base)": {
2787
- color: "var(--sl-color-blue-500)",
2443
+ color: "var(--sqm-informative-color-icon)",
2788
2444
  },
2789
2445
  },
2790
2446
  InfoAlert: {
@@ -2809,17 +2465,56 @@ const style$4 = {
2809
2465
  width: "26px",
2810
2466
  },
2811
2467
  PageDescriptionText: {
2812
- color: "var(--sl-color-neutral-500)",
2468
+ color: "var(--sqm-text-subdued)",
2813
2469
  fontSize: "var(--sl-font-size-medium)",
2814
2470
  marginBottom: "var(--sl-spacing-small)",
2815
2471
  },
2472
+ PrimaryButton: {
2473
+ "&::part(base)": {
2474
+ background: "var(--sqm-primary-button-background)",
2475
+ color: "var(--sqm-primary-button-color)",
2476
+ borderColor: "var(--sqm-primary-button-color-border)",
2477
+ borderRadius: "var(--sqm-primary-button-radius)",
2478
+ },
2479
+ "&::part(base):hover": {
2480
+ background: "var(--sqm-primary-button-background-hover)",
2481
+ },
2482
+ },
2483
+ SecondaryButton: {
2484
+ "&::part(base)": {
2485
+ background: "var(--sqm-secondary-button-background)",
2486
+ color: "var(--sqm-secondary-button-color)",
2487
+ borderColor: "var(--sqm-secondary-button-color-border)",
2488
+ borderRadius: "var(--sqm-secondary-button-radius)",
2489
+ width: "max-content",
2490
+ display: "flex",
2491
+ margin: "auto",
2492
+ },
2493
+ "&::part(base):hover": {
2494
+ color: "var(--sqm-text)",
2495
+ background: "var(--sqm-secondary-button-background-hover)",
2496
+ },
2497
+ },
2816
2498
  };
2817
- const sheet$4 = JSS.createStyleSheet(style$4);
2818
- const styleString$4 = sheet$4.toString();
2819
- const vanillaStyle$3 = `
2499
+ const sheet$3 = JSS.createStyleSheet(style$3);
2500
+ const styleString$3 = sheet$3.toString();
2501
+ const vanillaStyle$2 = `
2820
2502
  :host{
2821
2503
  display: block;
2822
2504
  }
2505
+
2506
+ hr {
2507
+ border: 1px solid var(--sqm-border-color);
2508
+ }
2509
+
2510
+ a {
2511
+ color: inherit;
2512
+ text-decoration: underline;
2513
+ }
2514
+
2515
+ a:hover {
2516
+ cursor: pointer;
2517
+ }
2823
2518
  * {
2824
2519
  margin: 0;
2825
2520
  padding: 0;
@@ -2830,11 +2525,11 @@ const vanillaStyle$3 = `
2830
2525
  const IndirectTaxFormView = (props) => {
2831
2526
  var _a;
2832
2527
  const { states, states: { formState }, callbacks, text, refs, slots, } = props;
2833
- const { classes } = sheet$4;
2528
+ const { classes } = sheet$3;
2834
2529
  return (index.h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
2835
2530
  index.h("style", { type: "text/css" },
2836
- styleString$4,
2837
- vanillaStyle$3),
2531
+ styleString$3,
2532
+ vanillaStyle$2),
2838
2533
  index.h("div", { class: classes.TextContainer },
2839
2534
  index.h("div", null,
2840
2535
  !states.hideSteps && (index.h("p", null,
@@ -2842,12 +2537,12 @@ const IndirectTaxFormView = (props) => {
2842
2537
  global.intl.formatMessage({
2843
2538
  id: "formStep",
2844
2539
  defaultMessage: text.formStep,
2845
- }, { step: states.step, count: FORM_STEPS }))),
2540
+ }, { step: states.step, count: data.FORM_STEPS }))),
2846
2541
  index.h("h3", null, text.indirectTax),
2847
2542
  index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription),
2848
2543
  index.h("p", { class: classes.DescriptionText }, text.indirectTaxDescription)),
2849
2544
  states.loadingError && (index.h("div", null,
2850
- index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.AlertContainer },
2545
+ index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$3.classes.AlertContainer },
2851
2546
  index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
2852
2547
  index.h("strong", null, text.error.loadingErrorAlertHeader),
2853
2548
  index.h("br", null),
@@ -2857,7 +2552,7 @@ const IndirectTaxFormView = (props) => {
2857
2552
  }, {
2858
2553
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
2859
2554
  })))),
2860
- ((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$4.classes.AlertContainer },
2555
+ ((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$3.classes.AlertContainer },
2861
2556
  index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
2862
2557
  index.h("strong", null, text.error.generalTitle),
2863
2558
  index.h("br", null),
@@ -2867,7 +2562,7 @@ const IndirectTaxFormView = (props) => {
2867
2562
  }, {
2868
2563
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
2869
2564
  }))),
2870
- states.isPartner && (index.h("sl-alert", { type: "primary", open: true, class: sheet$4.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
2565
+ states.isPartner && (index.h("sl-alert", { type: "primary", open: true, class: sheet$3.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
2871
2566
  index.h("sl-icon", { slot: "icon", name: "info-circle" }),
2872
2567
  index.h("strong", null, text.isPartnerAlertHeader),
2873
2568
  index.h("br", null),
@@ -2891,8 +2586,8 @@ const IndirectTaxFormView = (props) => {
2891
2586
  text.otherRegion,
2892
2587
  index.h("p", { class: classes.DescriptionText }, text.otherRegionSubtext))),
2893
2588
  slots.registeredInDifferentCountryDetailsSlot)),
2894
- index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "primary", open: true, class: classes.InfoAlert },
2895
- index.h("sl-icon", { class: classes.InfoWarningIcon, slot: "icon", name: "exclamation-triangle" }),
2589
+ index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "primary", open: true, class: classes.PartnerAlertContainer },
2590
+ index.h("sl-icon", { slot: "icon", name: "exclamation-triangle" }),
2896
2591
  global.intl.formatMessage({
2897
2592
  id: "cannotChangeInfoAlert",
2898
2593
  defaultMessage: text.cannotChangeInfoAlert,
@@ -2900,8 +2595,8 @@ const IndirectTaxFormView = (props) => {
2900
2595
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
2901
2596
  })),
2902
2597
  index.h("div", { class: classes.BtnContainer },
2903
- index.h("sl-button", { type: "primary", disabled: states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton),
2904
- index.h("sl-button", { type: "text", disabled: states.disabled, onClick: callbacks.onBack, exportparts: "base: secondarybutton-base" }, text.backButton))))));
2598
+ index.h("sl-button", { class: classes.PrimaryButton, type: "primary", disabled: states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton),
2599
+ index.h("sl-button", { class: classes.SecondaryButton, type: "text", disabled: states.disabled, onClick: callbacks.onBack, exportparts: "base: secondarybutton-base" }, text.backButton))))));
2905
2600
  };
2906
2601
 
2907
2602
  const CONNECT_PARTNER = index_module.dist.gql `
@@ -2945,14 +2640,14 @@ function useIndirectTaxForm(props) {
2945
2640
  const user = index_module.J();
2946
2641
  const locale = index_module.L();
2947
2642
  const formRef = stencilHooks_module.useRef(null);
2948
- const context = index_module.Fn(TAX_FORM_CONTEXT_NAMESPACE);
2949
- const [step, setStep] = index_module.Pn(TAX_CONTEXT_NAMESPACE);
2643
+ const context = index_module.Fn(data.TAX_FORM_CONTEXT_NAMESPACE);
2644
+ const [step, setStep] = index_module.Pn(data.TAX_CONTEXT_NAMESPACE);
2950
2645
  const [connectImpactPartner, { loading: connectLoading, errors: connectErrors },] = index_module.$e(CONNECT_PARTNER);
2951
- const userForm = index_module.Fn(USER_FORM_CONTEXT_NAMESPACE);
2952
- const { data: userData, refetch, errors: userError, } = index_module.$n(USER_QUERY_NAMESPACE);
2953
- const { data: _countriesRes, loading: countriesLoading } = index_module.$n(COUNTRIES_QUERY_NAMESPACE);
2646
+ const userForm = index_module.Fn(data.USER_FORM_CONTEXT_NAMESPACE);
2647
+ const { data: userData, refetch, errors: userError, } = index_module.$n(data.USER_QUERY_NAMESPACE);
2648
+ const { data: _countriesRes, loading: countriesLoading } = index_module.$n(data.COUNTRIES_QUERY_NAMESPACE);
2954
2649
  const intlLocale = (locale === null || locale === void 0 ? void 0 : locale.replace("_", "-")) || "en";
2955
- const _countries = stencilHooks_module.useMemo(() => { var _a, _b; return (_b = (_a = _countriesRes === null || _countriesRes === void 0 ? void 0 : _countriesRes.impactPayoutCountries) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.map((country) => sqmInvoiceTableView.getCountryObj({ countryCode: country.countryCode, locale: intlLocale })); }, [(_a = _countriesRes === null || _countriesRes === void 0 ? void 0 : _countriesRes.impactPayoutCountries) === null || _a === void 0 ? void 0 : _a.data]);
2650
+ const _countries = stencilHooks_module.useMemo(() => { var _a, _b; return (_b = (_a = _countriesRes === null || _countriesRes === void 0 ? void 0 : _countriesRes.impactPayoutCountries) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.map((country) => utils$1.getCountryObj({ countryCode: country.countryCode, locale: intlLocale })); }, [(_a = _countriesRes === null || _countriesRes === void 0 ? void 0 : _countriesRes.impactPayoutCountries) === null || _a === void 0 ? void 0 : _a.data]);
2956
2651
  const [loading, setLoading] = stencilHooks_module.useState(false);
2957
2652
  const [formState, setFormState] = stencilHooks_module.useState({});
2958
2653
  const [errors, setErrors] = stencilHooks_module.useState({});
@@ -3067,7 +2762,7 @@ function useIndirectTaxForm(props) {
3067
2762
  await refetch();
3068
2763
  const resultPublisher = (_e = (_d = (_c = result
3069
2764
  .createImpactConnection) === null || _c === void 0 ? void 0 : _c.user) === null || _d === void 0 ? void 0 : _d.impactConnection) === null || _e === void 0 ? void 0 : _e.publisher;
3070
- const hasValidCurrentDocument = sqmInvoiceTableView.validTaxDocument(resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) && (resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.currentTaxDocument);
2765
+ const hasValidCurrentDocument = utils$1.validTaxDocument(resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) && (resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.currentTaxDocument);
3071
2766
  // Fire form change event
3072
2767
  window.dispatchEvent(new Event(usePayoutStatus.TAX_FORM_UPDATED_EVENT_KEY));
3073
2768
  if ((resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) &&
@@ -3122,10 +2817,10 @@ function useIndirectTaxForm(props) {
3122
2817
  })),
3123
2818
  },
3124
2819
  data: {
3125
- esRegions: sqmInvoiceTableView.INDIRECT_TAX_SPAIN_REGIONS,
2820
+ esRegions: IndirectTaxDetailsView.INDIRECT_TAX_SPAIN_REGIONS,
3126
2821
  countries: filteredCountries,
3127
2822
  allCountries: _countries,
3128
- provinces: sqmInvoiceTableView.INDIRECT_TAX_PROVINCES,
2823
+ provinces: IndirectTaxDetailsView.INDIRECT_TAX_PROVINCES,
3129
2824
  },
3130
2825
  text: props.getTextProps(),
3131
2826
  refs: {
@@ -3327,7 +3022,7 @@ const IndirectTaxForm = class {
3327
3022
  const props = index_module.isDemo()
3328
3023
  ? useDemoIndirectTaxForm(this)
3329
3024
  : useIndirectTaxForm(this);
3330
- const registeredInDifferentCountryDetailsSlot = (index.h(sqmInvoiceTableView.OtherRegionSlotView, { states: {
3025
+ const registeredInDifferentCountryDetailsSlot = (index.h(IndirectTaxDetailsView.OtherRegionSlotView, { states: {
3331
3026
  hide: props.states.formState.checked !== "otherRegion",
3332
3027
  disabled: props.states.disabled || props.states.isPartner,
3333
3028
  formState: props.slotProps.formState,
@@ -3345,8 +3040,8 @@ const IndirectTaxForm = class {
3345
3040
  }
3346
3041
  };
3347
3042
  function useDemoIndirectTaxForm(props) {
3348
- const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
3349
- const [option, setOption] = stencilHooks_module.useState(null);
3043
+ const setStep = index_module.En(data.TAX_CONTEXT_NAMESPACE);
3044
+ const [option, setOption] = stencilHooks_module.useState("otherRegion");
3350
3045
  const [demoFormState, setDemoFormState] = stencilHooks_module.useState({});
3351
3046
  return cjs.cjs({
3352
3047
  states: {
@@ -3386,7 +3081,7 @@ function useDemoIndirectTaxForm(props) {
3386
3081
  setCountrySearch: (c) => console.log(c),
3387
3082
  },
3388
3083
  data: {
3389
- esRegions: sqmInvoiceTableView.INDIRECT_TAX_SPAIN_REGIONS,
3084
+ esRegions: IndirectTaxDetailsView.INDIRECT_TAX_SPAIN_REGIONS,
3390
3085
  countries: [
3391
3086
  {
3392
3087
  countryCode: "CA",
@@ -3405,7 +3100,7 @@ function useDemoIndirectTaxForm(props) {
3405
3100
  displayName: "United States",
3406
3101
  },
3407
3102
  ],
3408
- provinces: sqmInvoiceTableView.INDIRECT_TAX_PROVINCES,
3103
+ provinces: IndirectTaxDetailsView.INDIRECT_TAX_PROVINCES,
3409
3104
  },
3410
3105
  text: props.getTextProps(),
3411
3106
  refs: {
@@ -3427,6 +3122,26 @@ function useDemoIndirectTaxForm(props) {
3427
3122
  }, props.demoData || {}, { arrayMerge: (_, a) => a });
3428
3123
  }
3429
3124
 
3125
+ const mockInvoiceData = (count = 4) => {
3126
+ const data = [...Array(count)].map(() => getMockData());
3127
+ return { data };
3128
+ };
3129
+ const getMockData = () => {
3130
+ const today = luxon.luxon.DateTime.now();
3131
+ const invoiceId = Math.random().toString(36).slice(2, 12);
3132
+ const earnings = Math.floor(Math.random() * 100) + 1;
3133
+ const indirectTax = Math.round(earnings * 0.2);
3134
+ return {
3135
+ downloadUrl: "https://example.com",
3136
+ dateCreated: today.toMillis(),
3137
+ invoiceId,
3138
+ program: "my-program",
3139
+ earnings: `$${earnings}.00`,
3140
+ indirectTax: `$${indirectTax}.00`,
3141
+ netEarnings: `$${earnings - indirectTax}.00`,
3142
+ };
3143
+ };
3144
+
3430
3145
  const debug = stencilHooks_module.browser("sq:useInvoiceTable");
3431
3146
  const CSS_NAMESPACE = "sqm-invoice-table";
3432
3147
  const GET_INVOICES = index_module.dist.gql `
@@ -3575,26 +3290,6 @@ async function tryMethod(c, callback) {
3575
3290
  }
3576
3291
  }
3577
3292
 
3578
- const mockInvoiceData = (count = 4) => {
3579
- const data = [...Array(count)].map(() => getMockData());
3580
- return { data };
3581
- };
3582
- const getMockData = () => {
3583
- const today = luxon.luxon.DateTime.now();
3584
- const invoiceId = Math.random().toString(36).slice(2, 12);
3585
- const earnings = Math.floor(Math.random() * 100) + 1;
3586
- const indirectTax = Math.round(earnings * 0.2);
3587
- return {
3588
- downloadUrl: "https://example.com",
3589
- dateCreated: today.toMillis(),
3590
- invoiceId,
3591
- program: "my-program",
3592
- earnings: `$${earnings}.00`,
3593
- indirectTax: `$${indirectTax}.00`,
3594
- netEarnings: `$${earnings - indirectTax}.00`,
3595
- };
3596
- };
3597
-
3598
3293
  const InvoiceTable = class {
3599
3294
  constructor(hostRef) {
3600
3295
  index.registerInstance(this, hostRef);
@@ -3638,7 +3333,7 @@ const InvoiceTable = class {
3638
3333
  ? useInvoiceTableDemo(this, empty, loading)
3639
3334
  : useInvoiceTable(this, empty, loading);
3640
3335
  reRender.useRequestRerender([this.perPage]);
3641
- return (index.h(sqmInvoiceTableView.InvoiceTableView, { header: this.header, description: this.description }, index.h(GenericTableView.GenericTableView, { states: states, data: data, callbacks: callbacks, elements: elements })));
3336
+ return (index.h(IndirectTaxDetailsView.InvoiceTableView, { header: this.header, description: this.description }, index.h(GenericTableView.GenericTableView, { states: states, data: data, callbacks: callbacks, elements: elements })));
3642
3337
  }
3643
3338
  };
3644
3339
  function EmptySlot(props) {
@@ -3740,18 +3435,6 @@ function useInvoiceTableDemo(props, emptyElement, loadingElement) {
3740
3435
  return demoProps;
3741
3436
  }
3742
3437
 
3743
- const InvoiceTableDataCell = class {
3744
- constructor(hostRef) {
3745
- index.registerInstance(this, hostRef);
3746
- this.ignored = true;
3747
- stencilHooks_module.h$1(this);
3748
- }
3749
- disconnectedCallback() { }
3750
- render() {
3751
- return this.data;
3752
- }
3753
- };
3754
-
3755
3438
  const InvoiceTableDataColumn = class {
3756
3439
  constructor(hostRef) {
3757
3440
  index.registerInstance(this, hostRef);
@@ -3770,23 +3453,6 @@ const InvoiceTableDataColumn = class {
3770
3453
  }
3771
3454
  };
3772
3455
 
3773
- const RewardTableDateCell = class {
3774
- constructor(hostRef) {
3775
- index.registerInstance(this, hostRef);
3776
- this.ignored = true;
3777
- this.locale = "en";
3778
- stencilHooks_module.h$1(this);
3779
- }
3780
- disconnectedCallback() { }
3781
- render() {
3782
- var _a, _b;
3783
- const date = !this.date
3784
- ? "-"
3785
- : (_b = (_a = luxon.luxon.DateTime.fromMillis(this.date)) === null || _a === void 0 ? void 0 : _a.setLocale(utils.luxonLocale(this.locale))) === null || _b === void 0 ? void 0 : _b.toLocaleString(luxon.luxon.DateTime.DATE_MED);
3786
- return date;
3787
- }
3788
- };
3789
-
3790
3456
  const InvoiceTableDateColumn = class {
3791
3457
  constructor(hostRef) {
3792
3458
  index.registerInstance(this, hostRef);
@@ -3805,21 +3471,6 @@ const InvoiceTableDateColumn = class {
3805
3471
  }
3806
3472
  };
3807
3473
 
3808
- const InvoiceTableDownloadCell = class {
3809
- constructor(hostRef) {
3810
- index.registerInstance(this, hostRef);
3811
- this.ignored = true;
3812
- stencilHooks_module.h$1(this);
3813
- }
3814
- disconnectedCallback() { }
3815
- render() {
3816
- const vanillaStyle = `svg:hover, svg:hover * {
3817
- cursor: pointer;
3818
- }`;
3819
- return (index.h(index.Host, null, index.h("style", null, vanillaStyle), !!this.downloadUrl && (index.h("a", { href: this.downloadUrl, target: "_blank" }, index.h("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { d: "M0.625 12.4375C0.79076 12.4375 0.949732 12.5033 1.06694 12.6206C1.18415 12.7378 1.25 12.8967 1.25 13.0625V16.1875C1.25 16.519 1.3817 16.837 1.61612 17.0714C1.85054 17.3058 2.16848 17.4375 2.5 17.4375H17.5C17.8315 17.4375 18.1495 17.3058 18.3839 17.0714C18.6183 16.837 18.75 16.519 18.75 16.1875V13.0625C18.75 12.8967 18.8158 12.7378 18.9331 12.6206C19.0503 12.5033 19.2092 12.4375 19.375 12.4375C19.5408 12.4375 19.6997 12.5033 19.8169 12.6206C19.9342 12.7378 20 12.8967 20 13.0625V16.1875C20 16.8505 19.7366 17.4864 19.2678 17.9553C18.7989 18.4241 18.163 18.6875 17.5 18.6875H2.5C1.83696 18.6875 1.20107 18.4241 0.732233 17.9553C0.263392 17.4864 0 16.8505 0 16.1875V13.0625C0 12.8967 0.065848 12.7378 0.183058 12.6206C0.300269 12.5033 0.45924 12.4375 0.625 12.4375Z", fill: "#717179" }), index.h("path", { d: "M9.5575 14.88C9.61556 14.9382 9.68453 14.9844 9.76046 15.0159C9.83639 15.0474 9.91779 15.0636 10 15.0636C10.0822 15.0636 10.1636 15.0474 10.2395 15.0159C10.3155 14.9844 10.3844 14.9382 10.4425 14.88L14.1925 11.13C14.3099 11.0126 14.3758 10.8535 14.3758 10.6875C14.3758 10.5215 14.3099 10.3624 14.1925 10.245C14.0751 10.1276 13.916 10.0617 13.75 10.0617C13.584 10.0617 13.4249 10.1276 13.3075 10.245L10.625 12.9288V1.9375C10.625 1.77174 10.5592 1.61277 10.4419 1.49556C10.3247 1.37835 10.1658 1.3125 10 1.3125C9.83424 1.3125 9.67527 1.37835 9.55806 1.49556C9.44085 1.61277 9.375 1.77174 9.375 1.9375V12.9288L6.6925 10.245C6.57514 10.1276 6.41597 10.0617 6.25 10.0617C6.08403 10.0617 5.92486 10.1276 5.8075 10.245C5.69014 10.3624 5.62421 10.5215 5.62421 10.6875C5.62421 10.8535 5.69014 11.0126 5.8075 11.13L9.5575 14.88Z", fill: "#717179" }))))));
3820
- }
3821
- };
3822
-
3823
3474
  const InvoiceTableGenericColumn = class {
3824
3475
  constructor(hostRef) {
3825
3476
  index.registerInstance(this, hostRef);
@@ -3842,17 +3493,17 @@ const PayPalIcon = () => (index.h("svg", { xmlns: "http://www.w3.org/2000/svg",
3842
3493
  index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M3.71826 -0.15332H9.30607C10.8808 -0.15332 12.7478 -0.099593 13.9903 1.00853C14.8208 1.754 15.2593 2.936 15.1597 4.21203C14.8142 8.52364 12.2694 10.9347 8.84762 10.9347H6.09026C5.61852 10.9347 5.31288 11.2503 5.18 12.0965L4.40926 17.0461C4.35611 17.3685 4.22323 17.5566 3.97739 17.5767H0.53567C0.156948 17.5767 0.0174187 17.2879 0.117082 16.6432L2.59539 0.786908C2.69505 0.148896 3.04055 -0.15332 3.71826 -0.15332Z", fill: "#113984" }),
3843
3494
  index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M5.25973 11.5995L6.23643 5.36045C6.32281 4.81646 6.61515 4.54782 7.20649 4.54782H12.7877C13.7112 4.54782 14.4554 4.69557 15.0401 4.96421C14.4819 8.799 12.0236 10.9347 8.80775 10.9347H6.06368C5.6916 10.9347 5.42583 11.1227 5.25973 11.5995Z", fill: "#172C70" })));
3844
3495
 
3845
- const style$5 = {
3496
+ const style$4 = {
3846
3497
  CardContainer: {
3847
3498
  display: "grid",
3848
3499
  gridTemplateColumns: "1fr",
3849
3500
  gridGap: "var(--sl-spacing-large)",
3850
- background: "var(--sl-color-neutral-0)",
3501
+ background: "inherit",
3851
3502
  boxShadow: "0px 2px 4px rgba(28, 28, 33, 0.12)",
3852
- borderRadius: "4px",
3503
+ borderRadius: "var(--sqm-border-radius-normal)",
3853
3504
  padding: "var(--sl-spacing-large)",
3854
3505
  minHeight: "150px",
3855
- border: "1px solid var(--sl-color-gray-200)",
3506
+ border: "1px solid var(--sqm-border-color)",
3856
3507
  maxWidth: "450px",
3857
3508
  },
3858
3509
  StatusContainer: {
@@ -3862,7 +3513,7 @@ const style$5 = {
3862
3513
  },
3863
3514
  MainCurrencyLabel: {
3864
3515
  fontWeight: "var(--sl-font-weight-normal)",
3865
- color: "var(--sl-color-gray-500)",
3516
+ color: "var(--sqm-text-subdued)",
3866
3517
  },
3867
3518
  MainCurrency: {
3868
3519
  margin: 0,
@@ -3871,12 +3522,12 @@ const style$5 = {
3871
3522
  },
3872
3523
  SubduedRegularText: {
3873
3524
  fontSize: "var(--sl-font-size-small)",
3874
- color: "var(--sl-color-gray-500)",
3525
+ color: "var(--sqm-text-subdued)",
3875
3526
  margin: 0,
3876
3527
  width: "auto",
3877
3528
  },
3878
3529
  PaypalEmail: {
3879
- borderRight: "1px solid var(--sl-color-gray-200)",
3530
+ borderRight: "1px solid var(--sqm-border-color)",
3880
3531
  paddingRight: "var(--sl-spacing-small)",
3881
3532
  "@media (max-width: 499px)": {
3882
3533
  borderRight: "none",
@@ -3884,7 +3535,7 @@ const style$5 = {
3884
3535
  },
3885
3536
  },
3886
3537
  PaypalDetailsContainer: {
3887
- color: "var(--sl-color-gray-500)",
3538
+ color: "var(--sqm-text-subdued)",
3888
3539
  display: "flex",
3889
3540
  gap: "var(--sl-spacing-small)",
3890
3541
  justifyContent: "flex-start",
@@ -3905,7 +3556,7 @@ const style$5 = {
3905
3556
  },
3906
3557
  },
3907
3558
  AccountDetailsContainer: {
3908
- color: "var(--sl-color-gray-500)",
3559
+ color: "var(--sqm-text-subdued)",
3909
3560
  display: "flex",
3910
3561
  gap: "var(--sl-spacing-small)",
3911
3562
  justifyContent: "flex-start",
@@ -3918,7 +3569,7 @@ const style$5 = {
3918
3569
  gap: "var(--sl-spacing-xx-small) var(--sl-spacing-small)",
3919
3570
  paddingTop: "var(--sq-spacing-xx-small)",
3920
3571
  "& > :not(:last-child)": {
3921
- borderRight: "1px solid var(--sl-color-gray-200)",
3572
+ borderRight: "1px solid var(--sqm-border-color)",
3922
3573
  },
3923
3574
  "& > :nth-child(3)": {
3924
3575
  border: "none",
@@ -3935,7 +3586,7 @@ const style$5 = {
3935
3586
  },
3936
3587
  W9Container: {
3937
3588
  paddingTop: "var(--sl-spacing-large)",
3938
- borderTop: "1px solid var(--sl-color-gray-200)",
3589
+ borderTop: "1px solid var(--sqm-border-color)",
3939
3590
  },
3940
3591
  SkeletonOne: {
3941
3592
  width: "25%",
@@ -3951,1429 +3602,237 @@ const style$5 = {
3951
3602
  },
3952
3603
  Alert: {
3953
3604
  "&::part(base)": {
3954
- backgroundColor: "var(--sl-color-warning-100)",
3955
- border: "1px solid var(--sl-color-warning-200)",
3605
+ backgroundColor: "var(--sqm-warning-color-background)",
3606
+ border: "1px solid var(--sqm-warning-color-border)",
3956
3607
  padding: "0 16px",
3957
3608
  },
3958
3609
  "& sl-icon": {
3959
3610
  margin: 0,
3960
3611
  },
3961
3612
  "& sl-icon::part(base)": {
3962
- color: "var(--sl-color-warning-500)",
3613
+ color: "var(--sqm-warning-color-text)",
3963
3614
  margin: 0,
3964
3615
  },
3965
3616
  },
3617
+ SuccessBadge: {
3618
+ "&::part(base)": {
3619
+ textAlign: "center",
3620
+ whiteSpace: "pre-line",
3621
+ background: "var(--sqm-success-color-icon)",
3622
+ color: "var(--sqm-success-color-text)",
3623
+ },
3624
+ },
3625
+ PrimaryBadge: {
3626
+ "&::part(base)": {
3627
+ textAlign: "center",
3628
+ whiteSpace: "pre-line",
3629
+ background: "var(--sqm-informative-color-icon)",
3630
+ color: "var(--sqm-informative-color-text)",
3631
+ },
3632
+ },
3966
3633
  AlertContent: {
3967
3634
  display: "flex",
3968
3635
  alignItems: "flex-start",
3969
3636
  justifyContent: "flex-start",
3970
3637
  flexDirection: "column",
3971
- },
3972
- Container: {
3973
- display: "flex",
3974
- flexDirection: "column",
3975
- gap: "var(--sl-spacing-xx-large)",
3976
- },
3977
- };
3978
- function PayoutDetailsCardView(props) {
3979
- const sheet = JSS.createStyleSheet(style$5);
3980
- const styleString = sheet.toString();
3981
- const { classes } = sheet;
3982
- const { states, text } = props;
3983
- const renderLoadingSkeleton = () => {
3984
- return (index.h("div", { class: classes.CardContainer },
3985
- index.h("div", { class: classes.StatusContainer },
3986
- index.h("sl-skeleton", { class: classes.SkeletonOne }),
3987
- index.h("sl-skeleton", { class: classes.SkeletonTwo })),
3988
- index.h("sl-skeleton", { class: classes.SkeletonThree }),
3989
- index.h("sl-skeleton", { class: classes.SkeletonOne })));
3990
- };
3991
- const renderStatusBadge = (status, statusBadgeText) => {
3992
- const badgeType = status === "nextPayout" ? "success" : "primary";
3993
- const statusText = global.intl.formatMessage({
3994
- id: "badgeText",
3995
- defaultMessage: statusBadgeText,
3996
- }, {
3997
- badgeText: status,
3998
- });
3999
- return (index.h("sl-badge", { pill: true, type: badgeType }, statusText));
4000
- };
4001
- const thresholdText = global.intl.formatMessage({
4002
- id: "thresholdText",
4003
- defaultMessage: text.thresholdPayoutText,
4004
- }, {
4005
- thresholdBalance: states.thresholdBalance,
4006
- });
4007
- return (index.h("div", { class: classes.Container },
4008
- index.h("style", { type: "text/css" }, styleString),
4009
- states.loading ? (renderLoadingSkeleton()) : (index.h("div", { class: classes.CardContainer },
4010
- index.h("div", { class: classes.StatusContainer },
4011
- index.h("p", { class: classes.SubduedRegularText }, states.badgeStatus === "thresholdPayout"
4012
- ? states.thresholdBalance
4013
- ? thresholdText
4014
- : ""
4015
- : states.nextPayoutDate),
4016
- states.badgeStatus === "thresholdPayout"
4017
- ? null
4018
- : renderStatusBadge(states.badgeStatus, text.statusBadgeText)),
4019
- index.h("h1", { class: classes.MainCurrency }, states.balance),
4020
- states.payoutType === "PAYPAL" ? (index.h("div", { class: classes.PaypalDetailsContainer },
4021
- index.h("span", { class: classes.PaypalEmail }, states.paypalEmailAddress),
4022
- index.h(PayPalIcon, null))) : (index.h("div", { class: classes.AccountDetailsContainer },
4023
- index.h("span", null, states.cardNumberPreview
4024
- ? `${text.accountText} ${states.cardNumberPreview}`
4025
- : text.payoutMissingInformationText)))))));
4026
- }
4027
-
4028
- function usePayoutDetailsCard(props) {
4029
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
4030
- const { data, loading } = index_module.$n(USER_QUERY_NAMESPACE);
4031
- const publisher = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher;
4032
- function getPayoutDetailedStatusText(paymentDay) {
4033
- var _a;
4034
- const currentDay = luxon.luxon.DateTime.now().day;
4035
- if (paymentDay === "1") {
4036
- return currentDay === 1
4037
- ? luxon.luxon.DateTime.now().toFormat("LLL dd, yyyy")
4038
- : luxon.luxon.DateTime.now()
4039
- .plus({ month: 1 })
4040
- .startOf("month")
4041
- .toFormat("LLL dd, yyyy");
4042
- }
4043
- else if (paymentDay === "15") {
4044
- return currentDay <= 15
4045
- ? luxon.luxon.DateTime.now()
4046
- .plus({ day: 15 - currentDay })
4047
- .toFormat("LLL dd, yyyy")
4048
- : luxon.luxon.DateTime.now()
4049
- .plus({ month: 1 })
4050
- .startOf("month")
4051
- .plus({ day: 14 })
4052
- .toFormat("LLL dd, yyyy");
4053
- }
4054
- else {
4055
- global.intl.formatMessage({
4056
- id: `nextPayoutBalance`,
4057
- defaultMessage: props.thresholdPayoutText,
4058
- }, {
4059
- thresholdBalance: (_a = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _a === void 0 ? void 0 : _a.paymentThreshold,
4060
- });
4061
- }
4062
- }
4063
- const paymentDay = getPayoutDetailedStatusText((_c = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _c === void 0 ? void 0 : _c.paymentDay);
4064
- const isPayoutToday = luxon.luxon.DateTime.now().toFormat("LLL dd, yyyy") === paymentDay;
4065
- return {
4066
- states: {
4067
- loading,
4068
- thresholdBalance: ((_d = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _d === void 0 ? void 0 : _d.paymentThreshold) ? `${publisher === null || publisher === void 0 ? void 0 : publisher.currency}${(_e = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _e === void 0 ? void 0 : _e.paymentThreshold}`
4069
- : undefined,
4070
- balance: (_f = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _f === void 0 ? void 0 : _f.balance,
4071
- badgeStatus: ((_g = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _g === void 0 ? void 0 : _g.paymentSchedulingType) !== "FIXED_DAY"
4072
- ? "thresholdPayout"
4073
- : isPayoutToday
4074
- ? "payoutToday"
4075
- : "nextPayout",
4076
- payoutType: (_h = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _h === void 0 ? void 0 : _h.paymentMethod,
4077
- error: (_j = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _j === void 0 ? void 0 : _j.hold,
4078
- paypalEmailAddress: (_k = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _k === void 0 ? void 0 : _k.paypalEmailAddress,
4079
- cardNumberPreview: (_l = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _l === void 0 ? void 0 : _l.bankAccountNumber,
4080
- nextPayoutDate: paymentDay,
4081
- },
4082
- text: props.getTextProps(),
4083
- };
4084
- }
4085
-
4086
- const PayoutDetailsCard = class {
4087
- constructor(hostRef) {
4088
- index.registerInstance(this, hostRef);
4089
- /**
4090
- * Badge text indicating payout status
4091
- * @uiName Payout badge status text
4092
- */
4093
- this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
4094
- /**
4095
- * Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
4096
- * @uiName Payout schedule by threshold text
4097
- */
4098
- this.thresholdPayoutText = "Next payout occurs when balance is {thresholdBalance}";
4099
- /**
4100
- * Shown before the participant’s bank account information.
4101
- * @uiName Bank account field label
4102
- */
4103
- this.accountText = "Account";
4104
- /**
4105
- * Text displayed for existing publishers that do not have saved banking information.
4106
- * @uiName Payout missing information subtext
4107
- */
4108
- this.payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
4109
- stencilHooks_module.h$1(this);
4110
- }
4111
- disconnectedCallback() { }
4112
- getTextProps() {
4113
- const props = utils.getProps(this);
4114
- return {
4115
- ...props,
4116
- };
4117
- }
4118
- render() {
4119
- const props = index_module.isDemo()
4120
- ? useDemoPayoutDetailsCard(this)
4121
- : usePayoutDetailsCard(this);
4122
- return (index.h(index.Host, null, index.h(PayoutDetailsCardView, { text: props.text, states: props.states })));
4123
- }
4124
- };
4125
- function useDemoPayoutDetailsCard(props) {
4126
- return cjs.cjs({
4127
- states: {
4128
- loading: false,
4129
- error: false,
4130
- thresholdBalance: "$50",
4131
- mainCurrency: { currencyText: "USD", amountText: "100.00" },
4132
- badgeStatus: "nextPayout",
4133
- payoutType: "BANK_TRANSFER",
4134
- nextPayoutDate: "March 14, 2024",
4135
- paypalEmailAddress: "joesmith@example.com",
4136
- otherCurrencies: false,
4137
- hasW9Pending: false,
4138
- hasDatePending: true,
4139
- cardNumberPreview: "XX2381",
4140
- balance: "20.00 USD",
4141
- },
4142
- text: props.getTextProps(),
4143
- }, props.demoData || {}, { arrayMerge: (_, a) => a });
4144
- }
4145
-
4146
- const TableCell = class {
4147
- constructor(hostRef) {
4148
- index.registerInstance(this, hostRef);
4149
- /** @uiName Column span */
4150
- this.colspan = 1;
4151
- /** @uiName Padding */
4152
- this.padding = "15px 10px";
4153
- }
4154
- render() {
4155
- return (index.h(index.Host, { style: { display: "contents" } }, index.h("td", { colSpan: this.colspan, style: { padding: this.padding } }, index.h("slot", null))));
4156
- }
4157
- };
4158
-
4159
- const TableRow = class {
4160
- constructor(hostRef) {
4161
- index.registerInstance(this, hostRef);
4162
- /**
4163
- * @uiName Border
4164
- */
4165
- this.border = "1px solid #EAEAEA";
4166
- }
4167
- render() {
4168
- return (index.h(index.Host, { style: { display: "contents" } }, index.h("tr", { style: { border: this.border } }, index.h("slot", null))));
4169
- }
4170
- };
4171
-
4172
- function getCurrentStep(user) {
4173
- var _a, _b;
4174
- if (!((_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.connected) || !((_b = user.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher)) {
4175
- return "/1";
4176
- }
4177
- const { requiredTaxDocumentType, currentTaxDocument, withdrawalSettings, brandedSignup, } = user.impactConnection.publisher;
4178
- // If they do have a required document, look at current document
4179
- if (requiredTaxDocumentType && !currentTaxDocument)
4180
- return "/3";
4181
- if (!withdrawalSettings && brandedSignup)
4182
- return "/4";
4183
- return "/dashboard";
4184
- }
4185
- function useTaxAndCash() {
4186
- var _a, _b, _c, _d, _e;
4187
- const host = index_module._();
4188
- const user = index_module.J();
4189
- const locale = index_module.L();
4190
- // State for current step of form
4191
- const [step, setStep] = index_module.In({
4192
- namespace: TAX_CONTEXT_NAMESPACE,
4193
- initialValue: "/loading",
4194
- });
4195
- // State for when to hide steps, or override certain actions
4196
- const [context, _setContext] = index_module.In({
4197
- namespace: TAX_FORM_CONTEXT_NAMESPACE,
4198
- initialValue: {},
4199
- });
4200
- // State to carry user form information into step 2
4201
- const [userFormContext, _setUserFormContext] = index_module.In({
4202
- namespace: USER_FORM_CONTEXT_NAMESPACE,
4203
- initialValue: {
4204
- firstName: undefined,
4205
- lastName: undefined,
4206
- email: undefined,
4207
- countryCode: undefined,
4208
- currency: undefined,
4209
- },
4210
- });
4211
- const [_currenciesContext, setCurrenciesContext] = index_module.In({
4212
- namespace: CURRENCIES_NAMESPACE,
4213
- initialValue: [],
4214
- });
4215
- const [_countriesContext, _setCountriesContext] = index_module.In({
4216
- namespace: COUNTRIES_NAMESPACE,
4217
- initialValue: [],
4218
- });
4219
- const [_sortedCountriesContext, setSortedCountriesContext] = index_module.In({
4220
- namespace: SORTED_COUNTRIES_NAMESPACE,
4221
- initialValue: [],
4222
- });
4223
- const { data, errors } = index_module.Sn({
4224
- namespace: USER_QUERY_NAMESPACE,
4225
- query: GET_USER,
4226
- skip: !user,
4227
- options: {
4228
- batch: false,
4229
- },
4230
- });
4231
- const countryCode = ((_c = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher) === null || _c === void 0 ? void 0 : _c.countryCode) ||
4232
- userFormContext.countryCode;
4233
- index_module.Sn({
4234
- namespace: COUNTRIES_QUERY_NAMESPACE,
4235
- query: GET_COUNTRIES,
4236
- skip: !user,
4237
- });
4238
- const { data: financeNetworkData, refetch } = index_module.Sn({
4239
- namespace: FINANCE_NETWORK_SETTINGS_NAMESPACE,
4240
- query: GET_FINANCE_NETWORK_SETTINGS,
4241
- skip: !user,
4242
- variables: {
4243
- filter: getFinanceNetworkFilter(),
4244
- },
4245
- });
4246
- const { data: currenciesData } = index_module.Sn({
4247
- namespace: CURRENCIES_QUERY_NAMESPACE,
4248
- query: GET_CURRENCIES,
4249
- skip: !user,
4250
- variables: {
4251
- locale,
4252
- },
4253
- });
4254
- const supportedCurrencies = stencilHooks_module.useMemo(() => {
4255
- var _a, _b;
4256
- // Filter out any currencies not supported by finance network settings
4257
- const allValidCurrencies = (_b = (_a = financeNetworkData === null || financeNetworkData === void 0 ? void 0 : financeNetworkData.impactFinanceNetworkSettings) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.reduce((agg, settings) => {
4258
- var _a, _b;
4259
- const currency = (_b = (_a = currenciesData === null || currenciesData === void 0 ? void 0 : currenciesData.currencies) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.find((currency) => currency.currencyCode === settings.currency);
4260
- // Currency not in supported list
4261
- if (!currency)
4262
- return agg;
4263
- // Currency already added to list
4264
- if (agg.find((currency) => currency.currencyCode === settings.currency))
4265
- return agg;
4266
- // Currency not supported by selected country
4267
- if (userFormContext.countryCode &&
4268
- settings.countryCode !== countryCode)
4269
- return agg;
4270
- return [...agg, currency];
4271
- }, []);
4272
- return allValidCurrencies;
4273
- }, [financeNetworkData, countryCode]);
4274
- const intlLocale = (locale === null || locale === void 0 ? void 0 : locale.replace("_", "-")) || "en";
4275
- const sortByName = (a, b) => a.displayName < b.displayName ? -1 : 1;
4276
- const paymentOptions = (_d = financeNetworkData === null || financeNetworkData === void 0 ? void 0 : financeNetworkData.impactFinanceNetworkSettings) === null || _d === void 0 ? void 0 : _d.data;
4277
- // filter out any duplicate countries and null countryCode
4278
- const availableCountries = stencilHooks_module.useMemo(() => new Set(paymentOptions === null || paymentOptions === void 0 ? void 0 : paymentOptions.map((option) => option.countryCode).filter((value) => value)), [paymentOptions]);
4279
- const _topCountries = ["CA", "GB", "US"];
4280
- const sortedCountries = stencilHooks_module.useMemo(() => Array.from(availableCountries)
4281
- .map((countryCode) => sqmInvoiceTableView.getCountryObj({ countryCode, locale: intlLocale }))
4282
- .sort(sortByName)
4283
- .reduce((prev, countryObj) => {
4284
- if (_topCountries.includes(countryObj.countryCode))
4285
- return [countryObj, ...prev];
4286
- return [...prev, countryObj];
4287
- }, []), [availableCountries]);
4288
- stencilHooks_module.useEffect(() => {
4289
- if (sortedCountries)
4290
- setSortedCountriesContext(sortedCountries);
4291
- }, [sortedCountries]);
4292
- stencilHooks_module.useEffect(() => {
4293
- if (supportedCurrencies)
4294
- setCurrenciesContext(supportedCurrencies);
4295
- }, [supportedCurrencies]);
4296
- stencilHooks_module.useEffect(() => {
4297
- if (errors) {
4298
- setStep("/error");
4299
- return;
4300
- }
4301
- if (!host || !user)
4302
- return;
4303
- if (data) {
4304
- const user = data === null || data === void 0 ? void 0 : data.user;
4305
- if (!user || step !== "/loading")
4306
- return;
4307
- const currentStep = getCurrentStep(user);
4308
- setStep(currentStep);
4309
- }
4310
- }, [host, user, (_e = data === null || data === void 0 ? void 0 : data.user) === null || _e === void 0 ? void 0 : _e.email, errors]);
4311
- function getFinanceNetworkFilter() {
4312
- var _a, _b, _c;
4313
- if (step === "/1")
4314
- return {};
4315
- if (step === "/4")
4316
- return { currency_eq: (_c = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher) === null || _c === void 0 ? void 0 : _c.currency };
4317
- if (countryCode)
4318
- return {
4319
- countryCode_eq: countryCode,
4320
- };
4321
- return {};
4322
- }
4323
- return {
4324
- step,
4325
- setStep,
4326
- context,
4327
- namespace: index_module.Mn(TAX_CONTEXT_NAMESPACE),
4328
- loading: step === "/loading",
4329
- };
4330
- }
4331
-
4332
- const TaxAndCashMonolith = class {
4333
- constructor(hostRef) {
4334
- index.registerInstance(this, hostRef);
4335
- /*---------------------------------------------------------------------------------
4336
- !IMPORTANT!: Make sure to also change the prop names in the respective component
4337
- -----------------------------------------------------------------------------------*/
4338
- /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4339
- STEP 1 PROPS:
4340
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
4341
- /**
4342
- * @uiName First name field label
4343
- * @uiGroup Step 1 Properties
4344
- */
4345
- this.step1_firstName = "First name";
4346
- /**
4347
- * @uiName Last name field label
4348
- * @uiGroup Step 1 Properties
4349
- */
4350
- this.step1_lastName = "Last name";
4351
- /**
4352
- * @uiName Email field label
4353
- * @uiGroup Step 1 Properties
4354
- */
4355
- this.step1_email = "Email";
4356
- /**
4357
- * @uiName Country field label
4358
- * @uiGroup Step 1 Properties
4359
- */
4360
- this.step1_country = "Country";
4361
- /**
4362
- * @uiName Phone number field label
4363
- * @uiGroup Step 1 Properties
4364
- */
4365
- this.step1_phoneNumber = "Phone number";
4366
- /**
4367
- * @uiName Address field label
4368
- * @uiGroup Step 1 Properties
4369
- */
4370
- this.step1_address = "Address";
4371
- /**
4372
- * @uiName City field label
4373
- * @uiGroup Step 1 Properties
4374
- */
4375
- this.step1_city = "City";
4376
- /**
4377
- * @uiName State field label for states
4378
- * @uiGroup Step 1 Properties
4379
- */
4380
- this.step1_state = "State";
4381
- /**
4382
- * @uiName State field label for provinces
4383
- * @uiGroup Step 1 Properties
4384
- */
4385
- this.step1_province = "Province";
4386
- /**
4387
- * @uiName State field label for regions
4388
- * @uiGroup Step 1 Properties
4389
- */
4390
- this.step1_region = "Region";
4391
- /**
4392
- * @uiName Postal code field label
4393
- * @uiGroup Step 1 Properties
4394
- */
4395
- this.step1_postalCode = "Postal code";
4396
- /**
4397
- * @uiName Currency field label
4398
- * @uiGroup Step 1 Properties
4399
- */
4400
- this.step1_currency = "Currency";
4401
- /**
4402
- * @uiName Currency field help text
4403
- * @uiGroup Step 1 Properties
4404
- */
4405
- this.step1_currencyHelpText = "Choose your preferred payout currency";
4406
- /**
4407
- * Edit the property called terms and conditions text to change what's displayed for {termsAndConditionsLink}.
4408
- * @uiName Terms and conditions checkbox
4409
- * @uiGroup Step 1 Properties
4410
- */
4411
- this.step1_allowBankingCollection = "I have read the {termsAndConditionsLink} and allow impact.com to collect my tax and banking information";
4412
- /**
4413
- * @uiName Step 1 title
4414
- * @uiGroup Step 1 Properties
4415
- */
4416
- this.step1_personalInformation = "Personal Information";
4417
- /**
4418
- * The link text that appears in the terms and conditions checkbox
4419
- * @uiName Terms and conditions text
4420
- * @uiGroup Step 1 Properties
4421
- * @uiWidget textArea
4422
- */
4423
- this.step1_termsAndConditionsLabel = "terms and conditions";
4424
- /**
4425
- * The link that appears in the terms and conditions checkbox
4426
- * @uiName Terms and conditions link
4427
- * @uiGroup Step 1 Properties
4428
- */
4429
- this.step1_termsAndConditionsLink = "https://terms.advocate.impact.com/PayoutTermsAndConditions.html";
4430
- /**
4431
- * Placeholder text displayed in the currency search dropdown
4432
- * @uiName Currency field placeholder text
4433
- * @uiGroup Step 1 Properties
4434
- */
4435
- this.step1_searchForCurrencyText = "Search for currency..";
4436
- /**
4437
-
4438
- /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4439
- STEP 2 PROPS:
4440
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
4441
- /**
4442
- * @uiName Step 2 title
4443
- * @uiGroup Step 2 Properties
4444
- */
4445
- this.step2_indirectTax = "Indirect Tax";
4446
- /**
4447
- * Displayed under the title of this step.
4448
- * @uiName Step 2 description
4449
- * @uiGroup Step 2 Properties
4450
- * @uiWidget textArea
4451
- */
4452
- this.step2_indirectTaxDescription = "Indirect taxes (e.g. VAT, HST, GST) are transaction based taxes often applied to goods and services. Service providers are typically required to register with their tax authority and collect these taxes on behalf governments.";
4453
- /**
4454
- * Displayed with indirect tax registration options.
4455
- * @uiName Indirect tax details section title
4456
- * @uiGroup Step 2 Properties
4457
- */
4458
- this.step2_indirectTaxDetails = "Indirect tax details";
4459
- /**
4460
- * @uiName Registered for indirect tax option
4461
- * @uiGroup Step 2 Properties
4462
- * @uiWidget textArea
4463
- *
4464
- */
4465
- this.step2_otherRegion = "Registered for indirect tax";
4466
- /**
4467
- * Selecting this option will display fields to enter indirect tax details.
4468
- * @uiName Registered for indirect tax option description
4469
- * @uiGroup Step 2 Properties
4470
- */
4471
- this.step2_otherRegionSubtext = "If you’ve registered with your tax authority, add your information to stay tax compliant.";
4472
- /**
4473
- * @uiName Not registered for indirect tax option
4474
- * @uiGroup Step 2 Properties
4475
- * @uiWidget textArea
4476
- */
4477
- this.step2_notRegistered = "Not registered for indirect tax";
4478
- /**
4479
- * Participants based in the US are considered not registered.
4480
- * @uiName Not registered for indirect tax option description
4481
- * @uiGroup Step 2 Properties
4482
- */
4483
- this.step2_notRegisteredSubtext = "If you’ve never set up indirect tax with your tax authority, then you’re likely not considered registered.";
4484
- /**
4485
- * @uiName Region of indirect tax field label
4486
- * @uiGroup Step 2 Properties
4487
- */
4488
- this.step2_selectedRegion = "Country / region of indirect tax";
4489
- /**
4490
- * @uiName Indirect tax number field label
4491
- * @uiGroup Step 2 Properties
4492
- */
4493
- this.step2_indirectTaxNumber = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}}";
4494
- /**
4495
- * @uiName Province field label
4496
- * @uiGroup Step 2 Properties
4497
- */
4498
- this.step2_province = "Province";
4499
- /**
4500
- * @uiName Missing indirect tax number error message
4501
- * @uiGroup Step 2 Properties
4502
- */
4503
- this.step2_indirectTaxNumberError = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}} is required";
4504
- /**
4505
- * Displayed to participants registered for QST.
4506
- * @uiName QST number field label
4507
- * @uiGroup Step 2 Properties
4508
- */
4509
- this.step2_qstNumber = "QST number";
4510
- /**
4511
- * Displayed to participants registered for indirect tax in Quebec, Canada.
4512
- * @uiName QST tax checkbox
4513
- * @uiGroup Step 2 Properties
4514
- */
4515
- this.step2_isRegisteredQST = "I am registered for QST Tax";
4516
- /**
4517
- * Displayed to participants registered for indirect tax in Spain.
4518
- * @uiName Spain income tax checkbox
4519
- * @uiGroup Step 2 Properties
4520
- * @uiWidget textArea
4521
- */
4522
- this.step2_isRegisteredSubRegionIncomeTax = "I am an individual registered for Income Tax purposes in Spain, and withholding tax will apply to any payments made to me.";
4523
- /**
4524
- * Displayed to participants registered in Spain.
4525
- * @uiName Sub-region of indirect tax field label
4526
- * @uiGroup Step 2 Properties
4527
- */
4528
- this.step2_subRegion = "Sub-region";
4529
- /**
4530
- * @uiName Income tax field label
4531
- * @uiGroup Step 2 Properties
4532
- */
4533
- this.step2_subRegionTaxNumberLabel = "Income Tax Number";
4534
- /**
4535
- * Communicate that after this step, only Support can change personal and indirect tax information.
4536
- * @uiName Submission confirmation alert
4537
- * @uiGroup Step 2 Properties
4538
- * @uiWidget textArea
4539
- */
4540
- this.step2_cannotChangeInfoAlert = "Changes to your personal and indirect tax information can only be made through our {supportLink} after you complete this step. Make sure these are correct before continuing.";
4541
- /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4542
- STEP 3 PROPS:
4543
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
4544
- /**
4545
- * @uiName Step 3 title
4546
- * @uiGroup Step 3 Properties
4547
- */
4548
- this.step3_taxForm = "Tax form";
4549
- /**
4550
- * Display the type of tax form that the participant must submit.
4551
- * @uiName Tax form name
4552
- * @uiGroup Step 3 Properties
4553
- */
4554
- this.step3_taxFormLabel = "{documentType} Tax Form";
4555
- /**
4556
- * @uiName Participant type field label
4557
- * @uiGroup Step 3 Properties
4558
- */
4559
- this.step3_participantType = "Participant type";
4560
- /**
4561
- * An option for the participant type field. Used to determine which W-8 form is required.
4562
- * @uiName Business representative participant type label
4563
- * @uiGroup Step 3 Properties
4564
- */
4565
- this.step3_businessEntity = "I represent a business";
4566
- /**
4567
- * An option for the participant type field. Used to determine which W-8 form is required.
4568
- * @uiName Individual participant type label
4569
- * @uiGroup Step 3 Properties
4570
- */
4571
- this.step3_individualParticipant = "I am an individual participant";
4572
- /**
4573
- * Displayed at the top of the page to participants based in the US.
4574
- * @uiName W-9 tax form description
4575
- * @uiGroup Step 3 Properties
4576
- * @uiWidget textArea
4577
- */
4578
- this.step3_taxFormDescription = "Participants based in the US need to submit a {documentType} form.";
4579
- /**
4580
- * Displayed at the top of the page to individuals joining a US program who reside outside the country.
4581
- * @uiName W-8 BEN tax form description
4582
- * @uiGroup Step 3 Properties
4583
- * @uiWidget textArea
4584
- */
4585
- this.step3_taxFormDescriptionIndividualParticipant = "Participants residing outside of the US, joining the referral program of a US-based company, need to submit a {documentType} form.";
4586
- /**
4587
- * Displayed at the top of the page to participants representing a business.
4588
- * @uiName W-8 BEN-E tax form description
4589
- * @uiGroup Step 3 Properties
4590
- * @uiWidget textArea
4591
- */
4592
- this.step3_taxFormDescriptionBusinessEntity = "Participants residing outside of the US who represent a business entity need to submit a {documentType} form.";
4593
- /**
4594
- * This appears inside the Docusign frame.
4595
- * @uiName Docusign session expired message
4596
- * @uiGroup Step 3 Properties
4597
- * @uiWidget textArea
4598
- */
4599
- this.step3_docusignExpired = "For your security and privacy, we automatically end your session after 20 minutes of inactivity. Please refresh and re-enter your tax information to continue.";
4600
- /**
4601
- * Remind participants their session will time out after 20 minutes of inactivity.
4602
- * @uiName Docusign timed session message
4603
- * @uiGroup Step 3 Properties
4604
- * @uiWidget textArea
4605
- */
4606
- this.step3_docusignSessionWarning = "For your security, we automatically end your session when you have not interacted with the form after 20 minutes.";
4607
- /**
4608
- * This appears inside the Docusign frame.
4609
- * @uiName Docusign form error message
4610
- * @uiGroup Step 3 Properties
4611
- * @uiWidget textArea
4612
- */
4613
- this.step3_docusignError = "There was a problem displaying this form. Please refresh the page. If this problem continues, contact our {supportLink}.";
4614
- /**
4615
- * @uiName Refresh page button label
4616
- * @uiGroup Step 3 Properties
4617
- */
4618
- this.step3_refreshButton = "Refresh Page";
4619
- /**
4620
- * @uiName Exit button text
4621
- * @uiGroup Step 3 Properties
4622
- */
4623
- this.step3_exitButton = "Exit";
4624
- /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4625
- STEP 4 PROPS:
4626
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
4627
- /**
4628
- * @uiName Step 4 title
4629
- * @uiGroup Step 4 Properties
4630
- */
4631
- this.step4_taxAndPayouts = "Payouts";
4632
- /**
4633
- * @uiName Direct to bank payout option
4634
- * @uiGroup Step 4 Properties
4635
- */
4636
- this.step4_directlyToBankAccount = "Directly to my bank account";
4637
- /**
4638
- * @uiName PayPal payout option
4639
- * @uiGroup Step 4 Properties
4640
- */
4641
- this.step4_toPayPalAccount = "PayPal (2% processing fee capped to {feeCap})";
4642
- /**
4643
- * @uiName Threshold balance payment schedule option
4644
- * @uiGroup Step 4 Properties
4645
- */
4646
- this.step4_paymentScheduleBalanceThreshold = "Pay me when my balance reaches a threshold";
4647
- /**
4648
- * @uiName Fixed day payment schedule option
4649
- * @uiGroup Step 4 Properties
4650
- */
4651
- this.step4_paymentScheduleFixedDay = "Pay me on a fixed day of the month";
4652
- /**
4653
- * Let the participant choose what day of the month they’ll get paid
4654
- * @uiName Payment day field label
4655
- * @uiGroup Step 4 Properties
4656
- */
4657
- this.step4_paymentDaySelectLabel = "Payment Day";
4658
- /**
4659
- * Participant use this field to select the balance at which they want to be paid
4660
- * @uiName Payment threshold field label
4661
- * @uiGroup Step 4 Properties
4662
- */
4663
- this.step4_paymentThresholdSelectLabel = "Payment threshold";
4664
- /**
4665
- * One of two payment day options
4666
- * @uiName First of month payday option
4667
- * @uiGroup Step 4 Properties
4668
- */
4669
- this.step4_paymentDayFirstOfMonthLabelText = "1st of the month";
4670
- /**
4671
- * One of two payment day options
4672
- * @uiName Fifteenth of month payday option
4673
- * @uiGroup Step 4 Properties
4674
- */
4675
- this.step4_paymentDayFifteenthOfMonthLabelText = "15th of the month";
4676
- /**
4677
- * @uiName Payment method section header
4678
- * @uiGroup Step 4 Properties
4679
- */
4680
- this.step4_paymentMethod = "Payment method";
4681
- /**
4682
- * @uiName Payment schedule section header
4683
- * @uiGroup Step 4 Properties
4684
- */
4685
- this.step4_paymentSchedule = "Payment schedule";
4686
- /**
4687
- * @uiName Payment method section description
4688
- * @uiGroup Step 4 Properties
4689
- */
4690
- this.step4_paymentMethodSubtext = "Payouts will be sent from our referral program provider, impact.com.";
4691
- /**
4692
- * Displayed to participants who choose PayPal as their payout method
4693
- * @uiName PayPal email field label
4694
- * @uiGroup Step 4 Properties
4695
- */
4696
- this.step4_payPalInputLabel = "PayPal email";
4697
- /**
4698
- * @uiName Bank country field label
4699
- * @uiGroup Step 4 Properties
4700
- */
4701
- this.step4_bankLocationLabel = "Bank country location";
4702
- /**
4703
- * @uiName Beneficiary account field label
4704
- * @uiGroup Step 4 Properties
4705
- */
4706
- this.step4_beneficiaryAccountNameLabel = "Beneficiary account name";
4707
- /**
4708
- * @uiName Bank account type field label
4709
- * @uiGroup Step 4 Properties
4710
- */
4711
- this.step4_bankAccountTypeLabel = "Bank account type";
4712
- /**
4713
- * @uiName Checking account option
4714
- * @uiGroup Step 4 Properties
4715
- */
4716
- this.step4_checkingSelectItemLabel = "Checking";
4717
- /**
4718
- * Label text for the savings account type select item
4719
- * @uiName Savings account options
4720
- * @uiGroup Step 4 Properties
4721
- */
4722
- this.step4_savingsSelectItemLabel = "Savings";
4723
- /**
4724
- * @uiName Bank account number field label
4725
- * @uiGroup Step 4 Properties
4726
- */
4727
- this.step4_bankAccountNumberLabel = "Bank account number";
4728
- /**
4729
- * @uiName IBAN field label
4730
- * @uiGroup Step 4 Properties
4731
- */
4732
- this.step4_ibanLabel = "IBAN";
4733
- /**
4734
- * @uiName SWIFT code field label
4735
- * @uiGroup Step 4 Properties
4736
- */
4737
- this.step4_swiftCodeLabel = "SWIFT code";
4738
- /**
4739
- * @uiName Routing code field label
4740
- * @uiGroup Step 4 Properties
4741
- */
4742
- this.step4_routingCodeLabel = "{bankCountry, select, AU {BSB number} CA {Routing number} CZ {Bank code} HK {Clearing code} SG {Clearing code} US {ABA routing number} NZ {BSB number} ZA {Bank/Branch number} IN {IFSC} CNY {CNAPS} other {Routing code} }";
4743
- /**
4744
- * @uiName Bank name field label
4745
- * @uiGroup Step 4 Properties
4746
- */
4747
- this.step4_bankNameLabel = "Bank name";
4748
- /**
4749
- * @uiName Classification entity field label
4750
- * @uiGroup Step 4 Properties
4751
- */
4752
- this.step4_classificationEntityLabel = "Classification entity";
4753
- /**
4754
- * One of three options listed for the classification field
4755
- * @uiName Business classification option
4756
- * @uiGroup Step 4 Properties
4757
- */
4758
- this.step4_businessSelectItemLabel = "Business";
4759
- /**
4760
- * One of three options listed for the classification field
4761
- * @uiName Individual classification option
4762
- * @uiGroup Step 4 Properties
4763
- */
4764
- this.step4_individualSelectItemLabel = "Individual";
4765
- /**
4766
- * One of three options listed for the classification field
4767
- * @uiName Foreign classification option
4768
- * @uiGroup Step 4 Properties
4769
- */
4770
- this.step4_foreignSelectItemLabel = "Foreign";
4771
- /**
4772
- * @uiName Classification CPF field label
4773
- * @uiGroup Step 4 Properties
4774
- */
4775
- this.step4_classificationCPFLabel = "Classification CPF";
4776
- /**
4777
- * @uiName Patronymic name field label
4778
- * @uiGroup Step 4 Properties
4779
- */
4780
- this.step4_patronymicNameLabel = "Patronymic name";
4781
- /**
4782
- * @uiName VO code field label
4783
- * @uiGroup Step 4 Properties
4784
- */
4785
- this.step4_voCodeLabel = "VO code";
4786
- /**
4787
- * @uiName Agency code field label
4788
- * @uiGroup Step 4 Properties
4789
- */
4790
- this.step4_agencyCodeLabel = "Agency code";
4791
- /**
4792
- * @uiName Branch code field label
4793
- * @uiGroup Step 4 Properties
4794
- */
4795
- this.step4_branchCodeLabel = "Branch code";
4796
- /**
4797
- * Label text for the classification input field
4798
- * @uiName Classification field label
4799
- * @uiGroup Step 4 Properties
4800
- */
4801
- this.step4_classificationLabel = "Classification";
4802
- /**
4803
- * @uiName Taxpayer ID field label
4804
- * @uiGroup Step 4 Properties
4805
- */
4806
- this.step4_taxPayerIdLabel = "Beneficiary INN";
4807
- /**
4808
- * @uiName Bank address field label
4809
- * @uiGroup Step 4 Properties
4810
- */
4811
- this.step4_bankAddressLabel = "Bank address";
4812
- /**
4813
- * @uiName Bank city field label
4814
- * @uiGroup Step 4 Properties
4815
- */
4816
- this.step4_bankCityLabel = "Bank city";
4817
- /**
4818
- * @uiName Bank province/state field label
4819
- * @uiGroup Step 4 Properties
4820
- */
4821
- this.step4_bankStateLabel = "Bank Province / State";
4822
- /**
4823
- * @uiName Bank postal code field label
4824
- * @uiGroup Step 4 Properties
4825
- */
4826
- this.step4_bankPostalCodeLabel = "Bank postal code";
4827
- /**
4828
- * Default payment method to the participants’ bank account.
4829
- * @uiName EFT withdrawal payment method
4830
- * @uiGroup Step 4 Properties
4831
- */
4832
- this.step4_eftWithdrawalLabel = "EFT Withdrawal (free)";
4833
- /**
4834
- * @uiName FX Wire Processing fee text
4835
- * @uiGroup Step 4 Properties
4836
- */
4837
- this.step4_fxWireProcessingFeeLabel = "FX Wire (Processing Fee {currency}{defaultFxFee}.00)";
4838
- /**
4839
- * @uiName Text for verify email dialog
4840
- * @uiGroup Step 4 Properties
4841
- */
4842
- this.step4_verifyEmailHeaderText = "Verify your email";
4843
- /**
4844
- * @uiName Verify code widget header text
4845
- * @uiGroup Step 4 Properties
4846
- */
4847
- this.step4_verifyEmailDescriptionText = "Verify your email to update your payment settings. Enter the code sent to {email} from our referral provider, impact.com.";
4848
- /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4849
- DASHBOARD PROPS:
4850
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
4851
- /**
4852
- * @uiName Active tax form badge label
4853
- * @uiGroup Dashboard Properties
4854
- */
4855
- this.dashboard_statusTextActive = "Active";
4856
- /**
4857
- * @uiName Invalid tax form badge label
4858
- * @uiGroup Dashboard Properties
4859
- */
4860
- this.dashboard_statusTextNotActive = "Invalid Tax Form";
4861
- /**
4862
- * Displayed when the participant submitted their form but it is awaiting review.
4863
- *
4864
- * @uiName Not verified tax form badge label
4865
- * @uiGroup Dashboard Properties
4866
- */
4867
- this.dashboard_statusTextNotVerified = "Not Verified";
4868
- /**
4869
- * Additional text displayed next to the tax form's status badge
4870
- *
4871
- * @uiName Active W-9 description
4872
- * @uiGroup Dashboard Properties
4873
- */
4874
- this.dashboard_badgeTextSubmittedOn = "Submitted on {dateSubmitted}.";
4875
- /**
4876
- * Additional text displayed next to the tax form's status badge.
4877
- *
4878
- * @uiName Active W-8 description
4879
- * @uiGroup Dashboard Properties
4880
- */
4881
- this.dashboard_badgeTextSubmittedOnW8 = "Submitted on {dateSubmitted}. Valid for three years after submission.";
4882
- /**
4883
- * Additional text displayed next to the tax form's status badge.
4884
- *
4885
- * @uiName Tax form in review description
4886
- * @uiGroup Dashboard Properties
4887
- */
4888
- this.dashboard_badgeTextAwaitingReview = "Awaiting review. Submitted on {dateSubmitted}.";
4889
- /**
4890
- * Part of the alert displayed at the top of the page.
4891
- *
4892
- * @uiName Inactive W-9 error message title
4893
- * @uiGroup Dashboard Properties
4894
- * @uiWidget textArea
4895
- */
4896
- this.dashboard_taxAlertHeaderNotActiveW9 = "Your W9 tax form has personal information that doesn’t match your profile";
4897
- /**
4898
- * Part of the alert displayed at the top of the page.
4899
- *
4900
- * @uiName Inactive W-8 error message title
4901
- * @uiGroup Dashboard Properties
4902
- * @uiWidget textArea
4903
- */
4904
- this.dashboard_taxAlertHeaderNotActiveW8 = "{documentType} tax form is invalid";
4905
- /**
4906
- * Part of the alert displayed at the top of the page.
4907
- *
4908
- * @uiName Inactive W-9 error message description
4909
- * @uiGroup Dashboard Properties
4910
- * @uiWidget textArea
4911
- */
4912
- this.dashboard_taxAlertNotActiveMessageW9 = "Please resubmit a new {documentType} form.";
4913
- /**
4914
- * Part of the alert displayed at the top of the page.
4915
- *
4916
- * @uiName Inactive W-8 error message description
4917
- * @uiGroup Dashboard Properties
4918
- */
4919
- this.dashboard_taxAlertNotActiveMessageW8 = "Your tax form may have expired or has personal information that doesn’t match your profile. Please submit a new {documentType} form.";
4920
- /**
4921
- * Additional text displayed next to the tax form's status badge.
4922
- *
4923
- * @uiName Invalid tax form description
4924
- * @uiGroup Dashboard Properties
4925
- * @uiWidget textArea
4926
- */
4927
- this.dashboard_invalidForm = "Make sure your information is correct and submit new form.";
4928
- /**
4929
- * @uiName Payout information section header
4930
- * @uiGroup Dashboard Properties
4931
- */
4932
- this.dashboard_bankingInformationSectionHeader = "Payout Information";
4933
- /**
4934
- * @uiName Tax document section header
4935
- * @uiGroup Dashboard Properties
4936
- */
4937
- this.dashboard_taxDocumentSectionHeader = "Tax documents";
4938
- /**
4939
- * Displayed under the tax document section header.
4940
- *
4941
- * @uiName Tax documents section description
4942
- * @uiGroup Dashboard Properties
4943
- */
4944
- this.dashboard_taxDocumentSectionSubHeader = "{documentType} tax form";
4945
- /**
4946
- * No other statuses or badges will be displayed in the tax form section in this case.
4947
- *
4948
- * @uiName Tax form not required text
4949
- * @uiGroup Dashboard Properties
4950
- * @uiWidget textArea
4951
- */
4952
- this.dashboard_noFormNeededSubtext = "Tax documents are only required if you are based in the US or joining the referral program of a US based brand.";
4953
- /**
4954
- *
4955
- * @uiName Indirect tax section header
4956
- * @uiGroup Dashboard Properties
4957
- */
4958
- this.dashboard_indirectTaxInfoSectionHeader = "Indirect tax";
4959
- /**
4960
- * If the participant is registered for indirect tax in Canada, display the province they’re registered in.
4961
- *
4962
- * @uiName Canadian province of indirect tax
4963
- * @uiGroup Dashboard Properties
4964
- */
4965
- this.dashboard_indirectTaxInfoCanada = "Registered in {province}, {country}";
4966
- /**
4967
- * If the participant is registered for indirect tax, display the country they’re registered in.
4968
- *
4969
- * @uiName Indirect tax country
4970
- * @uiGroup Dashboard Properties
4971
- */
4972
- this.dashboard_indirectTaxInfoOtherCountry = "Registered in {country}";
4973
- /**
4974
- * If the participant is registered for indirect tax in Spain, display the region they’re registered in.
4975
- *
4976
- * @uiName Spanish region of indirect tax
4977
- * @uiGroup Dashboard Properties
4978
- */
4979
- this.dashboard_indirectTaxInfoSpain = "Registered in {country}, {subRegion}";
4980
- /**
4981
- * @uiName Indirect tax tooltip
4982
- * @uiGroup Dashboard Properties
4983
- * @uiWidget textArea
4984
- */
4985
- this.dashboard_indirectTaxTooltipSupport = "To make changes to your indirect tax information, please contact our {supportLink}.";
4986
- /**
4987
- * Displayed to participants who have submitted their indirect tax information.
4988
- *
4989
- * @uiName Indirect tax details
4990
- * @uiGroup Dashboard Properties
4991
- */
4992
- this.dashboard_indirectTaxDetails = "{indirectTaxType} number: {indirectTaxNumber}";
4993
- /**
4994
- * @uiName Submit new tax form button label
4995
- * @uiGroup Dashboard Properties
4996
- */
4997
- this.dashboard_newFormButton = "Submit new form";
4998
- /**
4999
- * @uiName Edit payment info button label
5000
- * @uiGroup Dashboard Properties
5001
- */
5002
- this.dashboard_editPaymentInformationButton = "Edit Payout Information";
5003
- /**
5004
- * @uiName Not registered for indirect tax text
5005
- * @uiGroup Dashboard Properties
5006
- * @uiWidget textArea
5007
- */
5008
- this.dashboard_notRegisteredForTax = "Not registered for indirect tax. If you’ve previously registered with your tax authority, contact our {supportLink} to add your information to stay tax compliant.";
5009
- /**
5010
- * Displayed to participants registered in Quebec, Canada.
5011
- * @uiName QST indirect tax details
5012
- * @uiGroup Dashboard Properties
5013
- */
5014
- this.dashboard_qstNumber = "QST number: {qstNumber}";
5015
- /**
5016
- * @uiName Spain sub-region indirect tax number
5017
- * @uiGroup Dashboard Properties
5018
- */
5019
- this.dashboard_subRegionTaxNumber = "Income tax number: {subRegionTaxNumber}";
5020
- /**
5021
- * @uiName Payout status badge
5022
- * @uiGroup Dashboard Properties
5023
- */
5024
- this.dashboard_statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
5025
- /**
5026
- * Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
5027
- * @uiName Payout schedule by threshold text
5028
- * @uiGroup Dashboard Properties
5029
- */
5030
- this.dashboard_thresholdPayoutText = "Next payout occurs when balance is {thresholdBalance}";
5031
- /**
5032
- * Shown before the participant’s bank account information.
5033
- * @uiName Bank account field label
5034
- * @uiGroup Dashboard Properties
5035
- */
5036
- this.dashboard_accountText = "Account";
5037
- /**
5038
- * Part of the Invoice table displayed at the bottom of the page.
5039
- * @uiName Invoice number column title
5040
- * @uiGroup Dashboard Properties
5041
- */
5042
- this.dashboard_invoiceColumnTitle = "Invoice";
5043
- /**
5044
- * Part of the Invoice table displayed at the bottom of the page.
5045
- * @uiName Date column title
5046
- * @uiGroup Dashboard Properties
5047
- */
5048
- this.dashboard_dateColumnTitle = "Date";
5049
- /**
5050
- * Part of the Invoice table displayed at the bottom of the page.
5051
- * @uiName Earnings column title
5052
- * @uiGroup Dashboard Properties
5053
- */
5054
- this.dashboard_earningsColumnTitle = "Earnings";
5055
- /**
5056
- * Part of the Invoice table displayed at the bottom of the page.
5057
- * @uiName Indirect tax column title
5058
- * @uiGroup Dashboard Properties
5059
- */
5060
- this.dashboard_indirectTaxColumnTitle = "Indirect tax";
5061
- /**
5062
- * Displayed under the payout details card.
5063
- * @uiName Payout from impact text
5064
- * @uiGroup Dashboard Properties
5065
- * @uiWidget textArea
5066
- */
5067
- this.dashboard_payoutFromImpact = "Your balance may take up to 24 hours to update. Payouts will be sent from our referral program provider, impact.com.";
5068
- /**
5069
- * Part of the Invoice table displayed at the bottom of the page.
5070
- * @uiName Earnings after tax column title
5071
- * @uiGroup Dashboard Properties
5072
- */
5073
- this.dashboard_earningsAfterTaxColumnTitle = "Earnings after tax";
5074
- /**
5075
- * Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
5076
- * @uiName Payout error message title
5077
- * @uiGroup Dashboard Properties
5078
- * @uiWidget textArea
5079
- */
5080
- this.dashboard_payoutHoldAlertHeader = "Your payout is on hold";
5081
- /**
5082
- * Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
5083
- * @uiName Payout error message description
5084
- * @uiGroup Dashboard Properties
5085
- * @uiWidget textArea
5086
- */
5087
- this.dashboard_payoutHoldAlertDescription = "Please contact our {supportLink} or check your inbox for an email from our referral program provider, impact.com.";
5088
- /**
5089
- * Text displayed for existing publishers that do not have saved banking information.
5090
- * @uiName Payout missing information subtext
5091
- * @uiGroup Dashboard Properties
5092
- */
5093
- this.dashboard_payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
5094
- /**
5095
- * @uiName Invoice table description
5096
- * @uiGroup Dashboard Properties
5097
- */
5098
- this.dashboard_invoiceDescription = "View and download your invoices to report your earnings and stay tax compliant.";
5099
- /**
5100
- * @uiName Invoice table previous page button label
5101
- * @uiGroup Dashboard Properties
5102
- */
5103
- this.dashboard_invoicePrevLabel = "Prev";
5104
- /**
5105
- * @uiName Invoice table next page button label
5106
- * @uiGroup Dashboard Properties
5107
- */
5108
- this.dashboard_invoiceMoreLabel = "Next";
5109
- /**
5110
- * @uiName Invoice table title
5111
- * @uiGroup Dashboard Properties
5112
- */
5113
- this.dashboard_invoiceHeader = "Invoices";
5114
- /**
5115
- * @uiName Empty invoice table header
5116
- * @uiGroup Dashboard Properties
5117
- */
5118
- this.dashboard_invoiceEmptyStateHeader = "View your invoice details";
5119
- /**
5120
- * @uiName Empty invoice table description
5121
- * @uiGroup Dashboard Properties
5122
- */
5123
- this.dashboard_invoiceEmptyStateText = "Refer a friend to view the status of your invoices and rewards earned";
5124
- /**
5125
- * @uiName Replace tax form modal header
5126
- * @uiGroup Dashboard Properties
5127
- */
5128
- this.dashboard_replaceTaxFormModalHeader = "Replace existing tax form";
5129
- /**
5130
- * @uiName Replace tax form modal body text
5131
- * @uiGroup Dashboard Properties
5132
- * @uiWidget textArea
5133
- */
5134
- this.dashboard_replaceTaxFormModalBodyText = "Submitting a new tax form will remove your existing form. Make sure to sign and complete your new tax form to prevent any issues with your next payout.";
5135
- /**
5136
- * Part of the alert displayed at the top of the page when the user needs to verify their identity.
5137
- * @uiName Verification required alert message title
5138
- * @uiGroup Dashboard Properties
5139
- * @uiWidget textArea
5140
- */
5141
- this.dashboard_verificationRequiredHeader = "Verify your identity";
5142
- /**
5143
- * Part of the alert displayed at the top of the page when the user needs to verify their identity
5144
- * @uiName Verification required alert message description
5145
- * @uiGroup Dashboard Properties
5146
- * @uiWidget textArea
5147
- */
5148
- this.dashboard_verificationRequiredDescription = "Complete your verification to start receiving your cash rewards. It should only take a few minutes verify. If you run in to an issue verifying your identity contact our {supportLink}.";
5149
- /**
5150
- * @uiName Verification required internal alert header
5151
- * @uiGroup Dashboard Properties
5152
- * @uiWidget textArea
5153
- */
5154
- this.dashboard_verificationRequiredInternalHeader = "Identity Verification in Progress";
5155
- /**
5156
- * @uiName Verification required internal alert description
5157
- * @uiGroup Dashboard Properties
5158
- * @uiWidget textArea
5159
- */
5160
- this.dashboard_verificationRequiredInternalDescription = "Identity verification submission has been received. Our system is currently performing additional checks and analyzing the results. You will be updated shortly. If you don't hear from us contact our {supportLink}.";
5161
- /**
5162
- * @uiName Verification review internal alert header
5163
- * @uiGroup Dashboard Properties
5164
- * @uiWidget textArea
5165
- */
5166
- this.dashboard_verificationReviewInternalHeader = "Identity Verification Under Review";
5167
- /**
5168
- * @uiName Verification review internal alert description
5169
- * @uiGroup Dashboard Properties
5170
- * @uiWidget textArea
5171
- */
5172
- this.dashboard_verificationReviewInternalDescription = "Identity verification requires further review due to a potential error. Our team is reviewing the information and will update you shortly. If you don't hear from us contact our {supportLink}.";
5173
- /**
5174
- * @uiName Verification failed internal alert header
5175
- * @uiGroup Dashboard Properties
5176
- * @uiWidget textArea
5177
- */
5178
- this.dashboard_verificationFailedInternalHeader = "Identity Verification Unsuccessful";
5179
- /**
5180
- * @uiName Verification failed internal alert description
5181
- * @uiGroup Dashboard Properties
5182
- * @uiWidget textArea
5183
- */
5184
- this.dashboard_verificationFailedInternalDescription = "Identity verification has failed. Our team is reviewing the report and will contact you with further information. If you don't hear from us contact our {supportLink}.";
5185
- /**
5186
- * Part of the alert displayed at the top of the page when the user needs to verify their identity.
5187
- * @uiName Verification required alert button text
5188
- * @uiGroup Dashboard Properties
5189
- * @uiWidget textArea
5190
- */
5191
- this.dashboard_verificationRequiredButtonText = "Start Verification";
5192
- /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5193
- GENERAL PROPS:
5194
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
5195
- /**
5196
- * @uiName Setup progress
5197
- * @uiGroup General Form Properties
5198
- */
5199
- this.formStep = "Step {step} of {count}";
5200
- /**
5201
- * Part of the alert displayed at the top of the page.
5202
- * @uiName Form submission error message title
5203
- * @uiGroup General Form Properties
5204
- * @uiWidget textArea
5205
- */
5206
- this.generalErrorTitle = "There was a problem submitting your information";
5207
- /**
5208
- * Part of the alert displayed at the top of the page.
5209
- * @uiName Form submission error message description
5210
- * @uiGroup General Form Properties
5211
- * @uiWidget textArea
5212
- */
5213
- this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact our {supportLink}.";
5214
- /**
5215
- * Displayed under a field that is missing required information.
5216
- * @uiName Empty form field error message
5217
- * @uiGroup General Form Properties
5218
- */
5219
- this.fieldRequiredError = "{fieldName} is required";
5220
- /**
5221
- * Displayed under a field that includes invalid characters (non-ASCII).
5222
- * @uiName Invalid character error message
5223
- * @uiGroup General Form Properties
5224
- */
5225
- this.invalidCharacterError = "{fieldName} includes characters that aren't supported.";
5226
- /**
5227
- * Displayed under a field when it has an invalid entry.
5228
- * @uiName Form field error message
5229
- * @uiGroup General Form Properties
5230
- */
5231
- this.fieldInvalidError = "{fieldName} is invalid";
5232
- /**
5233
- * @uiName Continue button label
5234
- * @uiGroup General Form Properties
5235
- */
5236
- this.continueButton = "Continue";
5237
- /**
5238
- * @uiName Back button label
5239
- * @uiGroup General Form Properties
5240
- */
5241
- this.backButton = "Back";
5242
- /**
5243
- * @uiName Cancel button label
5244
- * @uiGroup General Form Properties
5245
- */
5246
- this.cancelButton = "Cancel";
5247
- /**
5248
- * Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com.
5249
- * @uiName Participant is a partner alert title
5250
- * @uiGroup General Form Properties
5251
- * @uiWidget textArea
5252
- */
5253
- this.isPartnerAlertHeader = "An account with this email already exists with our referral program provider, impact.com";
5254
- /**
5255
- * Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com.
5256
- * @uiName Participant is a partner alert description
5257
- * @uiGroup General Form Properties
5258
- * @uiWidget textArea
5259
- */
5260
- this.isPartnerAlertDescription = "If you don’t recognize this referral program provider or believe this is a mistake, please contact our {supportLink} or sign up for this referral program with a different email.";
3638
+ },
3639
+ Container: {
3640
+ display: "flex",
3641
+ flexDirection: "column",
3642
+ gap: "var(--sl-spacing-xx-large)",
3643
+ },
3644
+ };
3645
+ function PayoutDetailsCardView(props) {
3646
+ const sheet = JSS.createStyleSheet(style$4);
3647
+ const styleString = sheet.toString();
3648
+ const { classes } = sheet;
3649
+ const { states, text } = props;
3650
+ const renderLoadingSkeleton = () => {
3651
+ return (index.h("div", { class: classes.CardContainer },
3652
+ index.h("div", { class: classes.StatusContainer },
3653
+ index.h("sl-skeleton", { class: classes.SkeletonOne }),
3654
+ index.h("sl-skeleton", { class: classes.SkeletonTwo })),
3655
+ index.h("sl-skeleton", { class: classes.SkeletonThree }),
3656
+ index.h("sl-skeleton", { class: classes.SkeletonOne })));
3657
+ };
3658
+ const renderStatusBadge = (status, statusBadgeText) => {
3659
+ const badgeType = status === "nextPayout" ? "success" : "primary";
3660
+ const badgeClass = badgeType === "success" ? classes.SuccessBadge : classes.PrimaryBadge;
3661
+ const statusText = global.intl.formatMessage({
3662
+ id: "badgeText",
3663
+ defaultMessage: statusBadgeText,
3664
+ }, {
3665
+ badgeText: status,
3666
+ });
3667
+ return (index.h("sl-badge", { pill: true, class: badgeClass }, statusText));
3668
+ };
3669
+ const thresholdText = global.intl.formatMessage({
3670
+ id: "thresholdText",
3671
+ defaultMessage: text.thresholdPayoutText,
3672
+ }, {
3673
+ thresholdBalance: states.thresholdBalance,
3674
+ });
3675
+ return (index.h("div", { class: classes.Container },
3676
+ index.h("style", { type: "text/css" }, styleString),
3677
+ states.loading ? (renderLoadingSkeleton()) : (index.h("div", { class: classes.CardContainer },
3678
+ index.h("div", { class: classes.StatusContainer },
3679
+ index.h("p", { class: classes.SubduedRegularText }, states.badgeStatus === "thresholdPayout"
3680
+ ? states.thresholdBalance
3681
+ ? thresholdText
3682
+ : ""
3683
+ : states.nextPayoutDate),
3684
+ states.badgeStatus === "thresholdPayout"
3685
+ ? null
3686
+ : renderStatusBadge(states.badgeStatus, text.statusBadgeText)),
3687
+ index.h("h1", { class: classes.MainCurrency }, states.balance),
3688
+ states.payoutType === "PAYPAL" ? (index.h("div", { class: classes.PaypalDetailsContainer },
3689
+ index.h("span", { class: classes.PaypalEmail }, states.paypalEmailAddress),
3690
+ index.h(PayPalIcon, null))) : (index.h("div", { class: classes.AccountDetailsContainer },
3691
+ index.h("span", null, states.cardNumberPreview
3692
+ ? `${text.accountText} ${states.cardNumberPreview}`
3693
+ : text.payoutMissingInformationText)))))));
3694
+ }
3695
+
3696
+ function usePayoutDetailsCard(props) {
3697
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
3698
+ const { data: data$1, loading } = index_module.$n(data.USER_QUERY_NAMESPACE);
3699
+ const publisher = (_b = (_a = data$1 === null || data$1 === void 0 ? void 0 : data$1.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher;
3700
+ function getPayoutDetailedStatusText(paymentDay) {
3701
+ var _a;
3702
+ const currentDay = luxon.luxon.DateTime.now().day;
3703
+ if (paymentDay === "1") {
3704
+ return currentDay === 1
3705
+ ? luxon.luxon.DateTime.now().toFormat("LLL dd, yyyy")
3706
+ : luxon.luxon.DateTime.now()
3707
+ .plus({ month: 1 })
3708
+ .startOf("month")
3709
+ .toFormat("LLL dd, yyyy");
3710
+ }
3711
+ else if (paymentDay === "15") {
3712
+ return currentDay <= 15
3713
+ ? luxon.luxon.DateTime.now()
3714
+ .plus({ day: 15 - currentDay })
3715
+ .toFormat("LLL dd, yyyy")
3716
+ : luxon.luxon.DateTime.now()
3717
+ .plus({ month: 1 })
3718
+ .startOf("month")
3719
+ .plus({ day: 14 })
3720
+ .toFormat("LLL dd, yyyy");
3721
+ }
3722
+ else {
3723
+ global.intl.formatMessage({
3724
+ id: `nextPayoutBalance`,
3725
+ defaultMessage: props.thresholdPayoutText,
3726
+ }, {
3727
+ thresholdBalance: (_a = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _a === void 0 ? void 0 : _a.paymentThreshold,
3728
+ });
3729
+ }
3730
+ }
3731
+ const paymentDay = getPayoutDetailedStatusText((_c = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _c === void 0 ? void 0 : _c.paymentDay);
3732
+ const isPayoutToday = luxon.luxon.DateTime.now().toFormat("LLL dd, yyyy") === paymentDay;
3733
+ return {
3734
+ states: {
3735
+ loading,
3736
+ 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}`
3737
+ : undefined,
3738
+ balance: (_f = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _f === void 0 ? void 0 : _f.balance,
3739
+ badgeStatus: ((_g = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _g === void 0 ? void 0 : _g.paymentSchedulingType) !== "FIXED_DAY"
3740
+ ? "thresholdPayout"
3741
+ : isPayoutToday
3742
+ ? "payoutToday"
3743
+ : "nextPayout",
3744
+ payoutType: (_h = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _h === void 0 ? void 0 : _h.paymentMethod,
3745
+ error: (_j = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _j === void 0 ? void 0 : _j.hold,
3746
+ paypalEmailAddress: (_k = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _k === void 0 ? void 0 : _k.paypalEmailAddress,
3747
+ cardNumberPreview: (_l = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _l === void 0 ? void 0 : _l.bankAccountNumber,
3748
+ nextPayoutDate: paymentDay,
3749
+ },
3750
+ text: props.getTextProps(),
3751
+ };
3752
+ }
3753
+
3754
+ const PayoutDetailsCard = class {
3755
+ constructor(hostRef) {
3756
+ index.registerInstance(this, hostRef);
5261
3757
  /**
5262
- * Placeholder text displayed in the country search dropdown
5263
- * @uiName Country field placeholder text
5264
- * @uiGroup General Form Properties
3758
+ * Badge text indicating payout status
3759
+ * @uiName Payout badge status text
5265
3760
  */
5266
- this.searchForCountryText = "Search for country..";
3761
+ this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
5267
3762
  /**
5268
- * Part of the alert displayed at the top of the page.
5269
- * @uiName Page load error message title
5270
- * @uiGroup General Form Properties
5271
- * @uiWidget textArea
3763
+ * Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
3764
+ * @uiName Payout schedule by threshold text
5272
3765
  */
5273
- this.loadingErrorAlertHeader = "There was a problem loading your form";
3766
+ this.thresholdPayoutText = "Next payout occurs when balance is {thresholdBalance}";
5274
3767
  /**
5275
- * Part of the alert displayed at the top of the page.
5276
- * @uiName Page load error message description
5277
- * @uiGroup General Form Properties
5278
- * @uiWidget textArea
3768
+ * Shown before the participant’s bank account information.
3769
+ * @uiName Bank account field label
5279
3770
  */
5280
- this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact our {supportLink}.";
3771
+ this.accountText = "Account";
5281
3772
  /**
5282
- * Displayed at the top of the page on all set up steps.
5283
- * @uiName Page description
5284
- * @uiGroup General Form Properties
3773
+ * Text displayed for existing publishers that do not have saved banking information.
3774
+ * @uiName Payout missing information subtext
5285
3775
  */
5286
- this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
3776
+ this.payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
5287
3777
  /**
5288
- * Link text for contacting support team
5289
- * @uiName Suport link text
5290
- * @uiGroup General Form Properties
3778
+ * @componentState { "title": "Loading", "props": { "states": { "loading": true } } }
5291
3779
  */
5292
- this.supportLink = "support team";
3780
+ this.stateController = "{}";
5293
3781
  stencilHooks_module.h$1(this);
5294
3782
  }
5295
3783
  disconnectedCallback() { }
5296
- // this field is required prop
5297
- getGeneralStepTextProps(prefix) {
3784
+ getTextProps() {
5298
3785
  const props = utils.getProps(this);
5299
3786
  return {
5300
- ...extractProps.extractProps(props, prefix),
5301
- generalErrorTitle: props.generalErrorTitle,
5302
- generalErrorDescription: props.generalErrorDescription,
5303
- fieldRequiredError: props.fieldRequiredError,
5304
- invalidCharacterError: props.invalidCharacterError,
5305
- fieldInvalidError: props.fieldInvalidError,
5306
- continueButton: props.continueButton,
5307
- backButton: props.backButton,
5308
- cancelButton: props.cancelButton,
5309
- isPartnerAlertHeader: props.isPartnerAlertHeader,
5310
- isPartnerAlertDescription: props.isPartnerAlertDescription,
5311
- loadingErrorAlertHeader: props.loadingErrorAlertHeader,
5312
- loadingErrorAlertDescription: props.loadingErrorAlertDescription,
5313
- taxAndPayoutsDescription: props.taxAndPayoutsDescription,
5314
- searchForCountryText: props.searchForCountryText,
5315
- formStep: props.formStep,
5316
- supportLink: props.supportLink,
3787
+ ...props,
5317
3788
  };
5318
3789
  }
5319
3790
  render() {
5320
- var _a, _b;
5321
- const props = index_module.isDemo() ? useDemoTaxAndCash(this) : useTaxAndCash();
5322
- // @ts-ignore
5323
- if ((_a = this.demoData) === null || _a === void 0 ? void 0 : _a.showTextProps) {
5324
- const textProps = utils.getProps(this);
5325
- return (index.h("div", null, (_b = Object.keys(textProps)) === null || _b === void 0 ? void 0 : _b.map((prop) => {
5326
- if (prop === "demoData")
5327
- return;
5328
- return (index.h("div", null, index.h("b", null, prop, ":"), " ", this[prop], index.h("hr", null)));
5329
- })));
5330
- }
5331
- switch (props.step) {
5332
- case "/1":
5333
- return (index.h("sqm-user-info-form", Object.assign({}, this.getGeneralStepTextProps("step1_"))));
5334
- case "/2":
5335
- return (index.h("sqm-indirect-tax-form", Object.assign({}, this.getGeneralStepTextProps("step2_"))));
5336
- case "/3":
5337
- return (index.h("sqm-docusign-form", Object.assign({}, this.getGeneralStepTextProps("step3_"))));
5338
- case "/4":
5339
- return (index.h("sqm-banking-info-form", Object.assign({}, this.getGeneralStepTextProps("step4_"))));
5340
- case "/dashboard":
5341
- return (index.h("sqm-tax-and-cash-dashboard", Object.assign({}, this.getGeneralStepTextProps("dashboard_"))));
5342
- case "/error":
5343
- return (index.h(ErrorView.ErrorView, { loadingErrorAlertHeader: this.loadingErrorAlertHeader, loadingErrorAlertDescription: this.loadingErrorAlertDescription }));
5344
- }
5345
- return index.h(sqmInvoiceTableView.LoadingView, null);
3791
+ const props = index_module.isDemo()
3792
+ ? useDemoPayoutDetailsCard(this)
3793
+ : usePayoutDetailsCard(this);
3794
+ return (index.h(index.Host, null, index.h(PayoutDetailsCardView, { text: props.text, states: props.states })));
5346
3795
  }
5347
3796
  };
5348
- function useDemoTaxAndCash(props) {
5349
- const [step, setStep] = index_module.In({
5350
- namespace: TAX_CONTEXT_NAMESPACE,
5351
- initialValue: "/1",
5352
- });
3797
+ function useDemoPayoutDetailsCard(props) {
5353
3798
  return cjs.cjs({
5354
- step,
5355
- setStep,
3799
+ states: {
3800
+ loading: false,
3801
+ error: false,
3802
+ thresholdBalance: "$50",
3803
+ mainCurrency: { currencyText: "USD", amountText: "100.00" },
3804
+ badgeStatus: "nextPayout",
3805
+ payoutType: "BANK_TRANSFER",
3806
+ nextPayoutDate: "March 14, 2024",
3807
+ paypalEmailAddress: "joesmith@example.com",
3808
+ otherCurrencies: false,
3809
+ hasW9Pending: false,
3810
+ hasDatePending: true,
3811
+ cardNumberPreview: "XX2381",
3812
+ balance: "20.00 USD",
3813
+ },
3814
+ text: props.getTextProps(),
5356
3815
  }, props.demoData || {}, { arrayMerge: (_, a) => a });
5357
3816
  }
5358
3817
 
5359
- const style$6 = {
3818
+ const style$5 = {
5360
3819
  ErrorAlertContainer: {
5361
3820
  "&::part(base)": {
5362
- backgroundColor: "var(--sl-color-red-100)",
5363
- borderTop: "none",
3821
+ backgroundColor: "var(--sqm-danger-color-background)",
3822
+ border: "none",
5364
3823
  },
5365
3824
  "& sl-icon::part(base)": {
5366
- color: "var(--sl-color-danger-500)",
3825
+ color: "var(--sqm-danger-color-text)",
5367
3826
  },
5368
3827
  },
5369
3828
  WarningAlertContainer: {
5370
3829
  "&::part(base)": {
5371
- backgroundColor: "var(--sl-color-yellow-100)",
5372
- borderTop: "none",
3830
+ backgroundColor: "var(--sqm-warning-color-background)",
3831
+ border: "none",
5373
3832
  maxWidth: "600px",
5374
3833
  },
5375
3834
  "& sl-icon::part(base)": {
5376
- color: "var(--sl-color-warning-500)",
3835
+ color: "var(--sqm-warning-color-text)",
5377
3836
  },
5378
3837
  },
5379
3838
  WarningHoldAlertContainer: {
@@ -5384,7 +3843,7 @@ const style$6 = {
5384
3843
  backgroundColor: "transparent",
5385
3844
  },
5386
3845
  "& sl-icon::part(base)": {
5387
- color: "var(--sl-color-warning-500)",
3846
+ color: "var(--sqm-warning-color-text)",
5388
3847
  },
5389
3848
  },
5390
3849
  ErrorHoldAlertContainer: {
@@ -5395,13 +3854,13 @@ const style$6 = {
5395
3854
  backgroundColor: "transparent",
5396
3855
  },
5397
3856
  "& sl-icon::part(base)": {
5398
- color: "var(--sl-color-danger-500)",
3857
+ color: "var(--sqm-danger-color-icon)",
5399
3858
  },
5400
3859
  },
5401
3860
  ExpiringSoonAlertContainer: {
5402
3861
  "&::part(base)": {
5403
- backgroundColor: "var(--sl-color-yellow-100)",
5404
- borderTop: "none",
3862
+ backgroundColor: "var(--sqm-warning-color-background)",
3863
+ border: "none",
5405
3864
  },
5406
3865
  },
5407
3866
  BankingInformationContainer: {
@@ -5409,7 +3868,7 @@ const style$6 = {
5409
3868
  },
5410
3869
  IndirectTaxPreviewContainer: {
5411
3870
  marginTop: "var(--sl-spacing-x-large)",
5412
- borderTop: "1px solid var(--sl-color-neutral-200)",
3871
+ borderTop: "1px solid var(--sqm-border-color)",
5413
3872
  },
5414
3873
  IndirectTaxPreviewHeaderContainer: {
5415
3874
  marginTop: "var(--sl-spacing-large)",
@@ -5418,7 +3877,7 @@ const style$6 = {
5418
3877
  display: "flex",
5419
3878
  gap: "var(--sl-spacing-x-small)",
5420
3879
  "&::part(base)": {
5421
- color: "var(--sl-color-green-500)",
3880
+ color: "var(--sqm-success-color-text)",
5422
3881
  },
5423
3882
  },
5424
3883
  IndirectTaxPreviewDetails: {
@@ -5432,11 +3891,11 @@ const style$6 = {
5432
3891
  marginTop: "var(--sl-spacing-medium)",
5433
3892
  },
5434
3893
  NotRegisteredIndirectTaxText: {
5435
- color: "var(--sl-color-gray-500)",
3894
+ color: "var(--sqm-text-subdued)",
5436
3895
  },
5437
3896
  TaxDocumentsContainer: {
5438
3897
  marginTop: "var(--sl-spacing-xx-large)",
5439
- borderTop: "1px solid var(--sl-color-neutral-200)",
3898
+ borderTop: "1px solid var(--sqm-border-color)",
5440
3899
  },
5441
3900
  TaxDocumentsSectionHeaderContainer: {
5442
3901
  marginTop: "var(--sl-spacing-x-large)",
@@ -5453,7 +3912,7 @@ const style$6 = {
5453
3912
  "& p": {
5454
3913
  margin: "0",
5455
3914
  paddingTop: "2px",
5456
- color: "var(--sl-color-gray-500)",
3915
+ color: "var(--sqm-text-subdued)",
5457
3916
  },
5458
3917
  },
5459
3918
  StatusAlert: {
@@ -5488,7 +3947,7 @@ const style$6 = {
5488
3947
  },
5489
3948
  TaxDocSubtext: {
5490
3949
  margin: "0",
5491
- color: "var(--sl-color-neutral-500)",
3950
+ color: "var(--sqm-text-subdued)",
5492
3951
  lineHeight: "var(--sl-spacing-medium)",
5493
3952
  fontSize: "var(--sl-font-size-small)",
5494
3953
  marginLeft: "1px",
@@ -5509,13 +3968,13 @@ const style$6 = {
5509
3968
  gap: "6px",
5510
3969
  },
5511
3970
  DescriptionText: {
5512
- color: "var(--sl-color-gray-500)",
3971
+ color: "var(--sqm-text-subdued)",
5513
3972
  fontSize: "var(--sl-font-size-x-small)",
5514
3973
  marginBottom: "none",
5515
3974
  maxWidth: "492px",
5516
3975
  },
5517
3976
  PageDescriptionText: {
5518
- color: "var(--sl-color-neutral-500)",
3977
+ color: "var(--sqm-text-subdued)",
5519
3978
  fontSize: "var(--sl-font-size-medium)",
5520
3979
  marginTop: "0",
5521
3980
  },
@@ -5547,8 +4006,8 @@ const style$6 = {
5547
4006
  },
5548
4007
  DialogButton: { margin: "auto", width: "100%" },
5549
4008
  };
5550
- const sheet$5 = JSS.createStyleSheet(style$6);
5551
- const styleString$5 = sheet$5.toString();
4009
+ const sheet$4 = JSS.createStyleSheet(style$5);
4010
+ const styleString$4 = sheet$4.toString();
5552
4011
  const TaxAndCashDashboardView = (props) => {
5553
4012
  var _a, _b, _c, _d;
5554
4013
  const { states, text, callbacks, slots } = props;
@@ -5566,7 +4025,7 @@ const TaxAndCashDashboardView = (props) => {
5566
4025
  buttonText: text.verificationRequiredButtonText,
5567
4026
  alertType: "warning",
5568
4027
  icon: "exclamation-triangle",
5569
- class: sheet$5.classes.WarningHoldAlertContainer,
4028
+ class: sheet$4.classes.WarningHoldAlertContainer,
5570
4029
  };
5571
4030
  case "VERIFICATION:INTERNAL":
5572
4031
  return {
@@ -5579,7 +4038,7 @@ const TaxAndCashDashboardView = (props) => {
5579
4038
  }),
5580
4039
  alertType: "warning",
5581
4040
  icon: "exclamation-triangle",
5582
- class: sheet$5.classes.WarningHoldAlertContainer,
4041
+ class: sheet$4.classes.WarningHoldAlertContainer,
5583
4042
  };
5584
4043
  case "VERIFICATION:REVIEW":
5585
4044
  return {
@@ -5592,7 +4051,7 @@ const TaxAndCashDashboardView = (props) => {
5592
4051
  }),
5593
4052
  alertType: "warning",
5594
4053
  icon: "exclamation-triangle",
5595
- class: sheet$5.classes.WarningHoldAlertContainer,
4054
+ class: sheet$4.classes.WarningHoldAlertContainer,
5596
4055
  };
5597
4056
  case "VERIFICATION:FAILED":
5598
4057
  return {
@@ -5605,7 +4064,7 @@ const TaxAndCashDashboardView = (props) => {
5605
4064
  }),
5606
4065
  alertType: "critical",
5607
4066
  icon: "exclamation-octagon",
5608
- class: sheet$5.classes.ErrorHoldAlertContainer,
4067
+ class: sheet$4.classes.ErrorHoldAlertContainer,
5609
4068
  };
5610
4069
  case "HOLD":
5611
4070
  return {
@@ -5619,14 +4078,14 @@ const TaxAndCashDashboardView = (props) => {
5619
4078
  buttonText: null,
5620
4079
  alertType: "warning",
5621
4080
  icon: "exclamation-triangle",
5622
- class: sheet$5.classes.WarningHoldAlertContainer,
4081
+ class: sheet$4.classes.WarningHoldAlertContainer,
5623
4082
  };
5624
4083
  default:
5625
4084
  return;
5626
4085
  }
5627
4086
  }
5628
4087
  const statusMap = {
5629
- NOT_VERIFIED: (index.h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
4088
+ NOT_VERIFIED: (index.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
5630
4089
  index.h("sl-badge", { type: "warning", pill: true }, text.statusTextNotVerified),
5631
4090
  index.h("p", null, global.intl.formatMessage({
5632
4091
  id: `badgeTextAwaitingReview`,
@@ -5634,7 +4093,7 @@ const TaxAndCashDashboardView = (props) => {
5634
4093
  }, {
5635
4094
  dateSubmitted: states.dateSubmitted,
5636
4095
  })))),
5637
- ACTIVE: (index.h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
4096
+ ACTIVE: (index.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
5638
4097
  index.h("sl-badge", { type: "success", pill: true }, text.statusTextActive),
5639
4098
  index.h("p", null, global.intl.formatMessage({
5640
4099
  id: `badgeTextSubmittedOn`,
@@ -5644,12 +4103,12 @@ const TaxAndCashDashboardView = (props) => {
5644
4103
  }, {
5645
4104
  dateSubmitted: states.dateSubmitted,
5646
4105
  })))),
5647
- INACTIVE: (index.h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
4106
+ INACTIVE: (index.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
5648
4107
  index.h("sl-badge", { type: "danger", pill: true }, text.statusTextNotActive),
5649
4108
  index.h("p", null, text.invalidForm))),
5650
4109
  };
5651
4110
  const alertMap = {
5652
- INACTIVE: (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.ErrorAlertContainer },
4111
+ INACTIVE: (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.ErrorAlertContainer },
5653
4112
  index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
5654
4113
  index.h("strong", null, global.intl.formatMessage({
5655
4114
  id: `taxAlertHeaderNotActive`,
@@ -5699,9 +4158,9 @@ const TaxAndCashDashboardView = (props) => {
5699
4158
  };
5700
4159
  return (index.h("div", null,
5701
4160
  index.h("div", null,
5702
- index.h("style", { type: "text/css" }, styleString$5),
4161
+ index.h("style", { type: "text/css" }, styleString$4),
5703
4162
  states.loadingError && (index.h("div", null,
5704
- index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.ErrorAlertContainer },
4163
+ index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.ErrorAlertContainer },
5705
4164
  index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
5706
4165
  index.h("strong", null, text.error.loadingErrorAlertHeader),
5707
4166
  index.h("br", null),
@@ -5711,7 +4170,7 @@ const TaxAndCashDashboardView = (props) => {
5711
4170
  }, {
5712
4171
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
5713
4172
  })))),
5714
- ((_a = states.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.ErrorAlertContainer },
4173
+ ((_a = states.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.ErrorAlertContainer },
5715
4174
  index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
5716
4175
  index.h("strong", null, text.error.generalTitle),
5717
4176
  index.h("br", null),
@@ -5726,49 +4185,49 @@ const TaxAndCashDashboardView = (props) => {
5726
4185
  index.h("strong", null, getAlert(states.payoutStatus).header),
5727
4186
  index.h("p", { style: { margin: "0" } }, getAlert(states.payoutStatus).description),
5728
4187
  getAlert(states.payoutStatus).buttonText && (index.h("sl-button", { style: { marginTop: "var(--sl-spacing-x-small)" }, type: "default", loading: states.veriffLoading, onClick: () => callbacks.onVerifyClick() }, getAlert(states.payoutStatus).buttonText)))),
5729
- index.h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet$5.classes.Dialog, open: states.showNewFormDialog, "onSl-hide": callbacks.onNewFormCancel },
4188
+ index.h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet$4.classes.Dialog, open: states.showNewFormDialog, "onSl-hide": callbacks.onNewFormCancel },
5730
4189
  index.h("p", null, text.replaceTaxFormModalBodyText),
5731
- index.h("sl-button", { slot: "footer", type: "primary", class: sheet$5.classes.DialogButton, onClick: callbacks.onNewFormClick }, text.newFormButton),
5732
- index.h("sl-button", { slot: "footer", type: "default", class: sheet$5.classes.DialogButton, onClick: callbacks.onNewFormCancel }, text.cancelButton)),
4190
+ index.h("sl-button", { slot: "footer", type: "primary", class: sheet$4.classes.DialogButton, onClick: callbacks.onNewFormClick }, text.newFormButton),
4191
+ index.h("sl-button", { slot: "footer", type: "default", class: sheet$4.classes.DialogButton, onClick: callbacks.onNewFormCancel }, text.cancelButton)),
5733
4192
  states.status === "INACTIVE" && alertMap[states.status],
5734
4193
  index.h("div", null,
5735
4194
  index.h("h3", { style: { marginBottom: "0" } }, text.bankingInformationSectionHeader),
5736
- index.h("p", { class: sheet$5.classes.PageDescriptionText }, text.taxAndPayoutsDescription),
5737
- index.h("div", { class: sheet$5.classes.BankingInformationContainer },
4195
+ index.h("p", { class: sheet$4.classes.PageDescriptionText }, text.taxAndPayoutsDescription),
4196
+ index.h("div", { class: sheet$4.classes.BankingInformationContainer },
5738
4197
  slots.payoutDetailsCardSlot,
5739
- !states.loading && (index.h("p", { class: sheet$5.classes.DescriptionText }, text.payoutFromImpact)),
5740
- states.canEditPayoutInfo && (index.h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$5.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
5741
- index.h("div", { class: sheet$5.classes.TaxDocumentsContainer },
5742
- index.h("div", null, states.loading ? (index.h("div", { class: sheet$5.classes.TaxSectionSkeletonContainer },
5743
- index.h("sl-skeleton", { class: sheet$5.classes.SkeletonOne }),
5744
- index.h("sl-skeleton", { class: sheet$5.classes.SkeletonTwo }))) : (index.h("div", null, states.noFormNeeded ? (index.h("div", null,
5745
- index.h("h3", { class: sheet$5.classes.TaxDocumentsSectionHeaderContainer }, text.taxDocumentSectionHeader),
5746
- index.h("p", { class: sheet$5.classes.TaxDocSubtext }, text.noFormNeededSubtext))) : (index.h("div", null,
5747
- index.h("span", { class: sheet$5.classes.TaxFormDetailsContainer },
5748
- index.h("div", { class: sheet$5.classes.StatusContainer },
4198
+ !states.loading && (index.h("p", { class: sheet$4.classes.DescriptionText }, text.payoutFromImpact)),
4199
+ states.canEditPayoutInfo && (index.h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$4.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
4200
+ index.h("div", { class: sheet$4.classes.TaxDocumentsContainer },
4201
+ index.h("div", null, states.loading ? (index.h("div", { class: sheet$4.classes.TaxSectionSkeletonContainer },
4202
+ index.h("sl-skeleton", { class: sheet$4.classes.SkeletonOne }),
4203
+ index.h("sl-skeleton", { class: sheet$4.classes.SkeletonTwo }))) : (index.h("div", null, states.noFormNeeded ? (index.h("div", null,
4204
+ index.h("h3", { class: sheet$4.classes.TaxDocumentsSectionHeaderContainer }, text.taxDocumentSectionHeader),
4205
+ index.h("p", { class: sheet$4.classes.TaxDocSubtext }, text.noFormNeededSubtext))) : (index.h("div", null,
4206
+ index.h("span", { class: sheet$4.classes.TaxFormDetailsContainer },
4207
+ index.h("div", { class: sheet$4.classes.StatusContainer },
5749
4208
  index.h("h3", null, global.intl.formatMessage({
5750
4209
  id: "section-subheader",
5751
4210
  defaultMessage: text.taxDocumentSectionSubHeader,
5752
4211
  }, {
5753
4212
  documentType: states.documentTypeString,
5754
4213
  })),
5755
- index.h("span", { class: sheet$5.classes.StatusAlert }, statusMap[states.status]))),
5756
- states.status !== "NOT_VERIFIED" && (index.h("sl-button", { disabled: states.disabled || states.loading, onClick: callbacks.onClick, type: "default", class: sheet$5.classes.NewFormButton, exportparts: "base: primarybutton-base" }, text.newFormButton)))))))),
5757
- index.h("div", { class: sheet$5.classes.IndirectTaxPreviewContainer }, states.loading ? (index.h("div", { class: sheet$5.classes.TaxSectionSkeletonContainer },
5758
- index.h("sl-skeleton", { class: sheet$5.classes.SkeletonOne }),
5759
- index.h("sl-skeleton", { class: sheet$5.classes.SkeletonTwo }))) : (index.h("div", null,
5760
- index.h("h3", { class: sheet$5.classes.IndirectTaxPreviewHeaderContainer },
4214
+ index.h("span", { class: sheet$4.classes.StatusAlert }, statusMap[states.status]))),
4215
+ states.status !== "NOT_VERIFIED" && (index.h("sl-button", { disabled: states.disabled || states.loading, onClick: callbacks.onClick, type: "default", class: sheet$4.classes.NewFormButton, exportparts: "base: primarybutton-base" }, text.newFormButton)))))))),
4216
+ index.h("div", { class: sheet$4.classes.IndirectTaxPreviewContainer }, states.loading ? (index.h("div", { class: sheet$4.classes.TaxSectionSkeletonContainer },
4217
+ index.h("sl-skeleton", { class: sheet$4.classes.SkeletonOne }),
4218
+ index.h("sl-skeleton", { class: sheet$4.classes.SkeletonTwo }))) : (index.h("div", null,
4219
+ index.h("h3", { class: sheet$4.classes.IndirectTaxPreviewHeaderContainer },
5761
4220
  text.indirectTaxInfoSectionHeader,
5762
- index.h("sl-tooltip", { trigger: "hover", placement: "right", content: text.indirectTaxTooltipSupport, class: sheet$5.classes.TooltipContainer },
5763
- index.h("sl-icon", { name: "info-circle", class: sheet$5.classes.ToolTip }))),
5764
- index.h("div", { class: sheet$5.classes.IndirectTaxPreviewDetails },
5765
- index.h("span", null, states.notRegistered ? (index.h("span", { class: sheet$5.classes.NotRegisteredIndirectTaxText }, global.intl.formatMessage({
4221
+ index.h("sl-tooltip", { trigger: "hover", placement: "right", content: text.indirectTaxTooltipSupport, class: sheet$4.classes.TooltipContainer },
4222
+ index.h("sl-icon", { name: "info-circle", class: sheet$4.classes.ToolTip }))),
4223
+ index.h("div", { class: sheet$4.classes.IndirectTaxPreviewDetails },
4224
+ index.h("span", null, states.notRegistered ? (index.h("span", { class: sheet$4.classes.NotRegisteredIndirectTaxText }, global.intl.formatMessage({
5766
4225
  id: "notRegisteredForTax",
5767
4226
  defaultMessage: text.notRegisteredForTax,
5768
4227
  }, {
5769
4228
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
5770
4229
  }))) : (getIndirectTaxRegisteredIn())),
5771
- !states.notRegistered && (index.h("div", { class: sheet$5.classes.TaxNumberContainer },
4230
+ !states.notRegistered && (index.h("div", { class: sheet$4.classes.TaxNumberContainer },
5772
4231
  index.h("span", null, global.intl.formatMessage({
5773
4232
  id: `indirectTaxDetails`,
5774
4233
  defaultMessage: text.indirectTaxDetails,
@@ -5791,7 +4250,7 @@ const TaxAndCashDashboardView = (props) => {
5791
4250
  }, {
5792
4251
  subRegionTaxNumber: states.subRegionTaxNumber,
5793
4252
  })))),
5794
- !states.notRegistered && (index.h("div", { class: sheet$5.classes.InvoiceTableContainer },
4253
+ !states.notRegistered && (index.h("div", { class: sheet$4.classes.InvoiceTableContainer },
5795
4254
  index.h("sqm-invoice-table", { description: text.invoiceDescription, "prev-label": text.invoicePrevLabel, "more-label": text.invoiceMoreLabel, header: text.invoiceHeader, "empty-state-header": text.invoiceEmptyStateHeader, "empty-state-text": text.invoiceEmptyStateText },
5796
4255
  index.h("sqm-invoice-table-download-column", null),
5797
4256
  index.h("sqm-invoice-table-date-column", { "column-title": text.dateColumnTitle }),
@@ -5815,12 +4274,12 @@ function getSubRegionName(regionCode) {
5815
4274
  return "";
5816
4275
  // Impact adds an underscore to some regions
5817
4276
  const standardCode = regionCode.replace("_", "");
5818
- const regions = [...sqmInvoiceTableView.INDIRECT_TAX_PROVINCES, ...sqmInvoiceTableView.INDIRECT_TAX_SPAIN_REGIONS];
4277
+ const regions = [...IndirectTaxDetailsView.INDIRECT_TAX_PROVINCES, ...IndirectTaxDetailsView.INDIRECT_TAX_SPAIN_REGIONS];
5819
4278
  return (_a = regions.find((r) => r.regionCode === standardCode)) === null || _a === void 0 ? void 0 : _a.displayName;
5820
4279
  }
5821
4280
  function getIndirectTaxType(taxInformation) {
5822
4281
  var _a;
5823
- const regions = [...sqmInvoiceTableView.INDIRECT_TAX_PROVINCES, ...sqmInvoiceTableView.INDIRECT_TAX_SPAIN_REGIONS];
4282
+ const regions = [...IndirectTaxDetailsView.INDIRECT_TAX_PROVINCES, ...IndirectTaxDetailsView.INDIRECT_TAX_SPAIN_REGIONS];
5824
4283
  if (taxInformation === null || taxInformation === void 0 ? void 0 : taxInformation.indirectTaxRegion) {
5825
4284
  const standardRegion = taxInformation.indirectTaxRegion.replace("_", "");
5826
4285
  const taxType = (_a = regions.find((r) => r.regionCode === standardRegion)) === null || _a === void 0 ? void 0 : _a.taxType;
@@ -5831,14 +4290,14 @@ function getIndirectTaxType(taxInformation) {
5831
4290
  if (taxInformation === null || taxInformation === void 0 ? void 0 : taxInformation.withholdingTaxCountryCode)
5832
4291
  return "VAT";
5833
4292
  if (taxInformation === null || taxInformation === void 0 ? void 0 : taxInformation.indirectTaxCountryCode) {
5834
- return sqmInvoiceTableView.vatLabels[taxInformation.indirectTaxCountryCode] || "Indirect Tax";
4293
+ return IndirectTaxDetailsView.vatLabels[taxInformation.indirectTaxCountryCode] || "Indirect Tax";
5835
4294
  }
5836
4295
  return "Indirect Tax";
5837
4296
  }
5838
4297
  const useTaxAndCashDashboard = (props) => {
5839
4298
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
5840
- const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
5841
- const setContext = index_module.En(TAX_FORM_CONTEXT_NAMESPACE);
4299
+ const setStep = index_module.En(data.TAX_CONTEXT_NAMESPACE);
4300
+ const setContext = index_module.En(data.TAX_FORM_CONTEXT_NAMESPACE);
5842
4301
  const [showDialog, setShowDialog] = stencilHooks_module.useState(false);
5843
4302
  const { render, loading: veriffLoading, errors: veriffErrors, } = usePayoutStatus.useVeriffApp();
5844
4303
  const locale = index_module.L();
@@ -5846,8 +4305,8 @@ const useTaxAndCashDashboard = (props) => {
5846
4305
  // Clear override context once on submitted
5847
4306
  setContext({});
5848
4307
  }, []);
5849
- const { data, loading, errors: userError, refetch, } = index_module.$n(USER_QUERY_NAMESPACE);
5850
- const publisher = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher;
4308
+ const { data: data$1, loading, errors: userError, refetch, } = index_module.$n(data.USER_QUERY_NAMESPACE);
4309
+ const publisher = (_b = (_a = data$1 === null || data$1 === void 0 ? void 0 : data$1.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher;
5851
4310
  const documentType = publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType;
5852
4311
  const submissionDate = (_c = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _c === void 0 ? void 0 : _c.dateCreated;
5853
4312
  const dateSubmitted = submissionDate
@@ -5870,8 +4329,8 @@ const useTaxAndCashDashboard = (props) => {
5870
4329
  });
5871
4330
  setStep("/3");
5872
4331
  };
5873
- const provinceName = (_d = sqmInvoiceTableView.INDIRECT_TAX_PROVINCES.find((p) => { var _a; return p.regionCode === ((_a = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _a === void 0 ? void 0 : _a.indirectTaxRegion); })) === null || _d === void 0 ? void 0 : _d.displayName;
5874
- const payoutStatus = data ? usePayoutStatus.getStatus(data) : null;
4332
+ const provinceName = (_d = IndirectTaxDetailsView.INDIRECT_TAX_PROVINCES.find((p) => { var _a; return p.regionCode === ((_a = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _a === void 0 ? void 0 : _a.indirectTaxRegion); })) === null || _d === void 0 ? void 0 : _d.displayName;
4333
+ const payoutStatus = data$1 ? usePayoutStatus.getStatus(data$1) : null;
5875
4334
  stencilHooks_module.useEffect(() => {
5876
4335
  const cb = () => refetch();
5877
4336
  window.addEventListener(usePayoutStatus.VERIFF_COMPLETE_EVENT_KEY, cb);
@@ -5884,7 +4343,7 @@ const useTaxAndCashDashboard = (props) => {
5884
4343
  dateSubmitted,
5885
4344
  documentType,
5886
4345
  canEditPayoutInfo: publisher === null || publisher === void 0 ? void 0 : publisher.brandedSignup,
5887
- documentTypeString: sqmInvoiceTableView.taxTypeToName(documentType),
4346
+ documentTypeString: utils$1.taxTypeToName(documentType),
5888
4347
  status: (_e = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _e === void 0 ? void 0 : _e.status,
5889
4348
  subRegion: getSubRegionName((_f = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _f === void 0 ? void 0 : _f.indirectTaxRegion),
5890
4349
  subRegionTaxNumber: (_g = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _g === void 0 ? void 0 : _g.withholdingTaxId,
@@ -6247,23 +4706,31 @@ const TaxAndCashDashboard = class {
6247
4706
  }
6248
4707
  };
6249
4708
  function useDemoTaxAndCashDashboard(props) {
4709
+ // const states = parseStates(props.stateController);
6250
4710
  return cjs.cjs({
6251
4711
  states: {
6252
4712
  dateSubmitted: "today",
6253
4713
  documentType: "W9",
6254
4714
  documentTypeString: "W9",
6255
- status: "ACTIVE",
6256
4715
  country: "United States",
6257
- indirectTaxNumber: 55555555,
4716
+ indirectTaxNumber: "55555555",
6258
4717
  indirectTaxType: "Indirect Tax",
6259
- noFormNeeded: true,
4718
+ noFormNeeded: false,
6260
4719
  disabled: false,
6261
4720
  loading: false,
6262
4721
  showNewFormDialog: false,
6263
4722
  hasHold: false,
6264
- showVerifyIdentity: false,
4723
+ subRegion: "CA",
4724
+ subRegionTaxNumber: undefined,
4725
+ qstNumber: undefined,
4726
+ isBusinessEntity: false,
4727
+ province: undefined,
4728
+ notRegistered: true,
4729
+ loadingError: false,
6265
4730
  payoutStatus: "DONE",
6266
4731
  veriffLoading: false,
4732
+ canEditPayoutInfo: true,
4733
+ status: "ACTIVE",
6267
4734
  },
6268
4735
  callbacks: {
6269
4736
  onClick: () => console.debug("check step"),
@@ -6273,6 +4740,13 @@ function useDemoTaxAndCashDashboard(props) {
6273
4740
  onVerifyClick: () => console.log("verify"),
6274
4741
  },
6275
4742
  text: props.getTextProps(),
4743
+ slots: {
4744
+ payoutDetailsCardSlot: (index.h("sqm-payout-details-card", { demoData: {
4745
+ states: {
4746
+ badgeStatus: "nextPayout",
4747
+ },
4748
+ } })),
4749
+ },
6276
4750
  }, props.demoData || {}, { arrayMerge: (_, a) => a });
6277
4751
  }
6278
4752
 
@@ -7247,19 +5721,19 @@ const PHONE_EXTENSIONS = {
7247
5721
  },
7248
5722
  };
7249
5723
 
7250
- const style$7 = {
5724
+ const style$6 = {
7251
5725
  FormWrapper: {},
7252
5726
  ErrorInput: {
7253
5727
  "&::part(base)": {
7254
- border: "1px solid var(--sl-color-danger-500)",
5728
+ border: "1px solid var(--sqm-danger-color-icon)",
7255
5729
  borderRadius: "var(--sl-input-border-radius-medium)",
7256
5730
  },
7257
5731
  "&::part(help-text)": {
7258
- color: "var(--sl-color-danger-500)",
5732
+ color: "var(--sqm-danger-color-icon)",
7259
5733
  },
7260
5734
  },
7261
5735
  ErrorText: {
7262
- color: "var(--sl-color-danger-500)",
5736
+ color: "var(--sqm-danger-color-icon)",
7263
5737
  marginTop: "10px",
7264
5738
  },
7265
5739
  TextContainer: {
@@ -7290,9 +5764,6 @@ const style$7 = {
7290
5764
  justifyContent: "flex-start",
7291
5765
  flexDirection: "column",
7292
5766
  },
7293
- DescriptionText: {
7294
- color: "var(--sl-color-neutral-500)",
7295
- },
7296
5767
  BoldText: {
7297
5768
  fontWeight: "bold",
7298
5769
  },
@@ -7303,26 +5774,31 @@ const style$7 = {
7303
5774
  },
7304
5775
  AlertContainer: {
7305
5776
  "&::part(base)": {
7306
- backgroundColor: "var(--sl-color-red-100)",
7307
- borderTop: "none",
5777
+ backgroundColor: "var(--sqm-danger-color-background)",
5778
+ border: "none",
7308
5779
  padding: "0 16px",
5780
+ color: "var(--sqm-danger-color-text)",
5781
+ marginBottom: "16px",
7309
5782
  },
7310
5783
  "& sl-icon::part(base)": {
7311
- color: "var(--sl-color-danger-500)",
5784
+ color: "var(--sqm-danger-color-icon)",
7312
5785
  },
7313
5786
  },
7314
5787
  PartnerAlertContainer: {
7315
5788
  "&::part(base)": {
7316
- backgroundColor: "var(--sl-color-sky-100)",
5789
+ backgroundColor: "var(--sqm-informative-color-background)",
7317
5790
  borderTop: "none",
7318
5791
  padding: "0 16px",
5792
+ border: "none",
5793
+ color: "var(--sqm-informative-color-text)",
5794
+ marginBottom: "16px",
7319
5795
  },
7320
5796
  "& sl-icon::part(base)": {
7321
- color: "var(--sl-color-blue-500)",
5797
+ color: "var(--sqm-informative-color-icon)",
7322
5798
  },
7323
5799
  },
7324
5800
  PageDescriptionText: {
7325
- color: "var(--sl-color-neutral-500)",
5801
+ color: "var(--sqm-text-subdued)",
7326
5802
  fontSize: "var(--sl-font-size-medium)",
7327
5803
  },
7328
5804
  PhoneInputsSection: {
@@ -7345,9 +5821,9 @@ const style$7 = {
7345
5821
  },
7346
5822
  },
7347
5823
  };
7348
- const sheet$6 = JSS.createStyleSheet(style$7);
7349
- const styleString$6 = sheet$6.toString();
7350
- const vanillaStyle$4 = `
5824
+ const sheet$5 = JSS.createStyleSheet(style$6);
5825
+ const styleString$5 = sheet$5.toString();
5826
+ const vanillaStyle$3 = `
7351
5827
  :host{
7352
5828
  display: block;
7353
5829
  }
@@ -7356,6 +5832,11 @@ const vanillaStyle$4 = `
7356
5832
  padding: 0;
7357
5833
  box-sizing: border-box;
7358
5834
  }
5835
+ a {
5836
+ color: var(--sqm-text);
5837
+ color: inherit !important;
5838
+ text-decoration: underline;
5839
+ }
7359
5840
 
7360
5841
  p {
7361
5842
  line-height: 18px;
@@ -7370,11 +5851,149 @@ const vanillaStyle$4 = `
7370
5851
  sl-select#phoneNumberCountryCode::part(menu) {
7371
5852
  min-width: 250px;
7372
5853
  }
7373
- `;
5854
+
5855
+ sl-button[type="primary"]::part(base){
5856
+ background-color: var(--sqm-primary-button-background);
5857
+ color: var(--sqm-primary-button-color);
5858
+ border-color: var(--sqm-primary-button-color-border);
5859
+ border-radius: var(--sqm-primary-button-radius);
5860
+ }
5861
+
5862
+ sl-button[type="primary"]::part(base):hover{
5863
+ background-color: var(--sqm-primary-button-background-hover);
5864
+ }
5865
+
5866
+ sl-button[type="primary"]::part(base):focus{
5867
+ box-shadow: none;
5868
+ }
5869
+
5870
+ sl-button[type="secondary"]::part(base){
5871
+ background-color: var(--sqm-secondary-button-background);
5872
+ color: var(--sqm-secondary-button-color);
5873
+ border-color: var(--sqm-secondary-button-color-border);
5874
+ border-radius: var(--sqm-secondary-button-radius);
5875
+ }
5876
+
5877
+ sl-button[type="secondary"]::part(base):hover{
5878
+ background-color: var(--sqm-secondary-button-background-hover);
5879
+ }
5880
+
5881
+
5882
+
5883
+ *::part(primarybutton-base){
5884
+ background-color: var(--sqm-primary-button-background);
5885
+ color: var(--sqm-primary-button-color);
5886
+ border-color: var(--sqm-primary-button-color-border);
5887
+ border-radius: var(--sqm-primary-button-radius);
5888
+ }
5889
+
5890
+ *::part(primarybutton-base):hover{
5891
+ background-color: var(--sqm-primary-button-background-hover);
5892
+ }
5893
+
5894
+ *::part(primarybutton-base):focus{
5895
+ box-shadow: none;
5896
+ }
5897
+
5898
+ *::part(secondarybutton-base){
5899
+ background-color: var(--sqm-secondary-button-background);
5900
+ color: var(--sqm-secondary-button-color);
5901
+ border-color: var(--sqm-secondary-button-color-border);
5902
+ border-radius: var(--sqm-secondary-button-radius);
5903
+ }
5904
+
5905
+ *::part(secondarybutton-base):hover{
5906
+ background-color: var(--sqm-secondary-button-background-hover);
5907
+ }
5908
+
5909
+ *::part(secondarybutton-base){
5910
+ background-color: var(--sqm-secondary-button-background);
5911
+ color: var(--sqm-secondary-button-color);
5912
+ border-color: var(--sqm-secondary-button-color-border);
5913
+ border-radius: var(--sqm-secondary-button-radius);
5914
+ width: max-content;
5915
+ display: flex;
5916
+ margin: auto;
5917
+ }
5918
+
5919
+ *::part(secondarybutton-base):hover{
5920
+ background: var(--sqm-secondary-button-background-hover);
5921
+ }
5922
+
5923
+ sl-input::part(label),
5924
+ sl-select::part(label),
5925
+ sl-textarea::part(label){
5926
+ font-size: var(--sqm-input-label-font-size, var(--sl-input-font-size-small));
5927
+ font-weight: var(--sl-font-weight-semibold);
5928
+ color: var(--sqm-input-label-color, var(--sqm-text), black);
5929
+ }
5930
+
5931
+ /* Corrected: Target sl-input, sl-select, sl-textarea base elements */
5932
+ sl-input::part(base),
5933
+ sl-dropdown::part(base),
5934
+ sl-textarea::part(base){
5935
+ background-color: var(--sqm-input-background, #fff);
5936
+ border-radius: var(--sqm-input-border-radius, var(--sl-input-border-radius-large), 0.25rem);
5937
+ color: var(--sqm-input-color, white);
5938
+ border-width: var(--sqm-border-thickness, 1px);
5939
+ border-style: solid;
5940
+ border-color: var(--sqm-input-border-color, #ccc);
5941
+ }
5942
+
5943
+
5944
+ sl-select::part(menu) {
5945
+ background: var(--sqm-input-background, inherit);
5946
+ color: var(--sqm-input-color, inherit);
5947
+ border:none;
5948
+ }
5949
+
5950
+ sl-select::part(panel) {
5951
+ border-radius: var(--sqm-border-radius-normal);
5952
+ }
5953
+
5954
+ sl-select::part(help-text) {
5955
+ color: var(--sqm-text-subdued, var(--sl-input-help-text-color, #6c757d));
5956
+ }
5957
+
5958
+ sl-input::part(base):focus,
5959
+ sl-select::part(base):focus, /* Corrected part name for sl-select */
5960
+ sl-textarea::part(base):focus { /* Corrected part name for sl-textarea */
5961
+ border: var(--sqm-input-focus-border, 1px solid var(--sl-input-border-color-focus, #007bff)); /* Added fallback for --sl-input-border-color-focus */
5962
+ }
5963
+
5964
+ sl-input[disabled]::part(label),
5965
+ sl-select[disabled]::part(label),
5966
+ sl-textarea[disabled]::part(label){
5967
+ color: var(--sqm-input-disabled-color, var(--sl-color-gray-600));
5968
+ }
5969
+
5970
+ sl-input[disabled]::part(base),
5971
+ sl-select[disabled]::part(base),
5972
+ sl-textarea[disabled]::part(base){
5973
+ background: var(--sqm-input-disabled-background, #f5f5f5);
5974
+ border-color: var(--sl-input-border-color-disabled, #e0e0e0); /* Example disabled border color */
5975
+ }
5976
+
5977
+
5978
+ sl-input::part(input):-webkit-autofill {
5979
+ box-shadow: 0 0 0 50px var(--sqm-input-background, #fff) inset !important;
5980
+ -webkit-text-fill-color: var(--sqm-input-color, white) !important;
5981
+ }
5982
+
5983
+ sl-input::part(input):-webkit-autofill:hover {
5984
+ box-shadow: 0 0 0 50px var(--sqm-input-background, #fff) inset !important;
5985
+ -webkit-text-fill-color: var(--sqm-input-color, white) !important;
5986
+ }
5987
+
5988
+ sl-input::part(input):-webkit-autofill:focus {
5989
+ box-shadow: 0 0 0 50px var(--sqm-input-background, #fff) inset !important;
5990
+ -webkit-text-fill-color: var(--sqm-input-color, white) !important;
5991
+ }
5992
+ `;
7374
5993
  const UserInfoFormView = (props) => {
7375
5994
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
7376
- const { states, states: { formState }, callbacks, text, refs, data, } = props;
7377
- const { classes } = sheet$6;
5995
+ const { states, states: { formState }, callbacks, text, refs, data: data$1, } = props;
5996
+ const { classes } = sheet$5;
7378
5997
  const bankingCollectionText = global.intl.formatMessage({
7379
5998
  id: "bankingCollectionText",
7380
5999
  defaultMessage: text.allowBankingCollection,
@@ -7382,7 +6001,7 @@ const UserInfoFormView = (props) => {
7382
6001
  termsAndConditionsLink: (index.h("a", { href: text.termsAndConditionsLink, target: "_blank" }, text.termsAndConditionsLabel)),
7383
6002
  });
7384
6003
  let regionLabel = undefined;
7385
- switch (data.regionLabelEnum) {
6004
+ switch (data$1.regionLabelEnum) {
7386
6005
  case "STATE":
7387
6006
  regionLabel = text.state;
7388
6007
  break;
@@ -7397,10 +6016,10 @@ const UserInfoFormView = (props) => {
7397
6016
  }
7398
6017
  return (index.h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
7399
6018
  index.h("style", { type: "text/css" },
7400
- styleString$6,
7401
- vanillaStyle$4),
6019
+ styleString$5,
6020
+ vanillaStyle$3),
7402
6021
  states.loadingError && (index.h("div", null,
7403
- index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$6.classes.AlertContainer },
6022
+ index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.AlertContainer },
7404
6023
  index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
7405
6024
  index.h("strong", null, text.error.loadingErrorAlertHeader),
7406
6025
  index.h("br", null),
@@ -7411,16 +6030,16 @@ const UserInfoFormView = (props) => {
7411
6030
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
7412
6031
  })),
7413
6032
  index.h("br", null))),
7414
- states.loading ? (index.h(sqmInvoiceTableView.GeneralLoadingView, null)) : (index.h("div", null,
6033
+ states.loading ? (index.h(utils$1.LoadingView, null)) : (index.h("div", null,
7415
6034
  index.h("div", { class: classes.TextContainer },
7416
6035
  index.h("div", null,
7417
6036
  !states.hideSteps && (index.h("p", null, global.intl.formatMessage({
7418
6037
  id: "formStep",
7419
6038
  defaultMessage: text.formStep,
7420
- }, { step: states.step, count: FORM_STEPS }))),
6039
+ }, { step: states.step, count: data.FORM_STEPS }))),
7421
6040
  index.h("h3", null, text.personalInformation),
7422
6041
  index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
7423
- ((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$6.classes.AlertContainer },
6042
+ ((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$5.classes.AlertContainer },
7424
6043
  index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
7425
6044
  index.h("strong", null, text.error.generalTitle),
7426
6045
  index.h("br", null),
@@ -7430,7 +6049,7 @@ const UserInfoFormView = (props) => {
7430
6049
  }, {
7431
6050
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
7432
6051
  }))),
7433
- (states.isPartner || states.isUser) && (index.h("sl-alert", { type: "primary", open: true, class: sheet$6.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
6052
+ (states.isPartner || states.isUser) && (index.h("sl-alert", { type: "primary", open: true, class: sheet$5.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
7434
6053
  index.h("sl-icon", { slot: "icon", name: "info-circle" }),
7435
6054
  index.h("strong", null, text.isPartnerAlertHeader),
7436
6055
  index.h("br", null),
@@ -7442,20 +6061,20 @@ const UserInfoFormView = (props) => {
7442
6061
  }))),
7443
6062
  index.h("div", null,
7444
6063
  index.h("div", { class: classes.InputContainer },
7445
- index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", value: formState.firstName, label: text.firstName, disabled: states.disabled || states.isUser || states.isPartner }, (((_b = formState.errors) === null || _b === void 0 ? void 0 : _b.firstName) ? {
6064
+ index.h("sl-input", Object.assign({ class: "ErrorInput", exportparts: "label: input-label, base: input-base", value: formState.firstName, label: text.firstName, disabled: states.disabled || states.isUser || states.isPartner }, (((_b = formState.errors) === null || _b === void 0 ? void 0 : _b.firstName) ? {
7446
6065
  class: classes.ErrorInput,
7447
- helpText: sqmInvoiceTableView.formatErrorMessage(text.firstName, formState.errors.firstName),
6066
+ helpText: utils$1.formatErrorMessage(text.firstName, formState.errors.firstName),
7448
6067
  }
7449
6068
  : {}), { id: "firstName", name: "/firstName", required: true })),
7450
6069
  index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", value: formState.lastName, label: text.lastName, disabled: states.disabled || states.isUser || states.isPartner }, (((_c = formState.errors) === null || _c === void 0 ? void 0 : _c.lastName) ? {
7451
6070
  class: classes.ErrorInput,
7452
- helpText: sqmInvoiceTableView.formatErrorMessage(text.lastName, formState.errors.lastName),
6071
+ helpText: utils$1.formatErrorMessage(text.lastName, formState.errors.lastName),
7453
6072
  }
7454
6073
  : {}), { id: "lastName", name: "/lastName", required: true })),
7455
6074
  index.h("sl-input", { exportparts: "label: input-label, base: input-base", value: formState.email, label: text.email, disabled: true, id: "email", name: "/email", required: true }),
7456
6075
  index.h("sl-select", Object.assign({ id: "countryCode", exportparts: "label: input-label, base: input-base", name: "/countryCode", label: text.country, value: formState.countryCode, disabled: states.disabled || states.isPartner }, (((_d = formState.errors) === null || _d === void 0 ? void 0 : _d.countryCode) ? {
7457
6076
  class: classes.ErrorInput,
7458
- helpText: sqmInvoiceTableView.formatErrorMessage(text.country, formState.errors.countryCode),
6077
+ helpText: utils$1.formatErrorMessage(text.country, formState.errors.countryCode),
7459
6078
  }
7460
6079
  : {}), { required: true, "onSl-select": (e) => callbacks.onFormChange("countryCode", e) }),
7461
6080
  index.h("sl-input", { class: classes.SearchInput, placeholder: text.searchForCountryText, onKeyDown: (e) => {
@@ -7463,8 +6082,8 @@ const UserInfoFormView = (props) => {
7463
6082
  e.stopPropagation();
7464
6083
  }, "onSl-input": (e) => {
7465
6084
  callbacks.setCountrySearch(e.target.value);
7466
- } }), (_e = data === null || data === void 0 ? void 0 : data.countries) === null || _e === void 0 ? void 0 :
7467
- _e.map((c) => (index.h("sl-menu-item", { value: c.countryCode }, c.displayName))), (_f = data === null || data === void 0 ? void 0 : data.allCountries) === null || _f === void 0 ? void 0 :
6085
+ } }), (_e = data$1 === null || data$1 === void 0 ? void 0 : data$1.countries) === null || _e === void 0 ? void 0 :
6086
+ _e.map((c) => (index.h("sl-menu-item", { value: c.countryCode }, c.displayName))), (_f = data$1 === null || data$1 === void 0 ? void 0 : data$1.allCountries) === null || _f === void 0 ? void 0 :
7468
6087
  _f.map((c) => (index.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } }, c.displayName)))),
7469
6088
  index.h("div", { class: classes.PhoneInputsSection },
7470
6089
  index.h("p", null, text.phoneNumber),
@@ -7478,13 +6097,13 @@ const UserInfoFormView = (props) => {
7478
6097
  e.stopPropagation();
7479
6098
  }, "onSl-input": (e) => {
7480
6099
  callbacks.setPhoneCountrySearch(e.target.value);
7481
- } }), (_h = data === null || data === void 0 ? void 0 : data.phoneCountries) === null || _h === void 0 ? void 0 :
6100
+ } }), (_h = data$1 === null || data$1 === void 0 ? void 0 : data$1.phoneCountries) === null || _h === void 0 ? void 0 :
7482
6101
  _h.map((c) => {
7483
6102
  var _a, _b;
7484
6103
  return (index.h("sl-menu-item", { value: c.countryCode },
7485
6104
  index.h("div", { slot: "prefix" }, `${(_a = PHONE_EXTENSIONS[c.countryCode]) === null || _a === void 0 ? void 0 : _a.name} `), (_b = PHONE_EXTENSIONS[c.countryCode]) === null || _b === void 0 ? void 0 :
7486
6105
  _b.dial_code));
7487
- }), (_j = data === null || data === void 0 ? void 0 : data.allCountries) === null || _j === void 0 ? void 0 :
6106
+ }), (_j = data$1 === null || data$1 === void 0 ? void 0 : data$1.allCountries) === null || _j === void 0 ? void 0 :
7488
6107
  _j.map((c) => {
7489
6108
  var _a, _b;
7490
6109
  return (index.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } },
@@ -7493,42 +6112,42 @@ const UserInfoFormView = (props) => {
7493
6112
  })),
7494
6113
  index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", id: "phoneNumber", name: "/phoneNumber", value: formState.phoneNumber, validationError: ({ value }) => {
7495
6114
  // Naive phone number validation
7496
- sqmInvoiceTableView.validateBillingField(/[a-zA-Z]+/, value) &&
7497
- sqmInvoiceTableView.formatErrorMessage(text.phoneNumber, text.error.fieldInvalidError);
6115
+ utils$1.validateBillingField(/[a-zA-Z]+/, value) &&
6116
+ utils$1.formatErrorMessage(text.phoneNumber, text.error.fieldInvalidError);
7498
6117
  }, disabled: states.disabled || states.isPartner }, (((_k = formState.errors) === null || _k === void 0 ? void 0 : _k.phoneNumber) ? {
7499
6118
  class: classes.ErrorInput,
7500
- helpText: sqmInvoiceTableView.formatErrorMessage(text.phoneNumber, formState.errors.phoneNumber),
6119
+ helpText: utils$1.formatErrorMessage(text.phoneNumber, formState.errors.phoneNumber),
7501
6120
  }
7502
6121
  : {}), { required: true })))),
7503
6122
  index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", label: text.address, id: "address", name: "/address", value: formState.address, validationError: ({ value }) =>
7504
6123
  // Checks for non-ASCII characters
7505
- !sqmInvoiceTableView.validateBillingField(/^[\x20-\xFF]+$/, value) &&
7506
- sqmInvoiceTableView.formatErrorMessage(text.address, text.error.invalidCharacterError), disabled: states.disabled || states.isPartner }, (((_l = formState.errors) === null || _l === void 0 ? void 0 : _l.address) ? {
6124
+ !utils$1.validateBillingField(/^[\x20-\xFF]+$/, value) &&
6125
+ utils$1.formatErrorMessage(text.address, text.error.invalidCharacterError), disabled: states.disabled || states.isPartner }, (((_l = formState.errors) === null || _l === void 0 ? void 0 : _l.address) ? {
7507
6126
  class: classes.ErrorInput,
7508
- helpText: sqmInvoiceTableView.formatErrorMessage(text.address, formState.errors.address),
6127
+ helpText: utils$1.formatErrorMessage(text.address, formState.errors.address),
7509
6128
  }
7510
6129
  : {}), { required: true })),
7511
6130
  index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", label: text.city, id: "city", name: "/city", value: formState.city, validationError: ({ value }) =>
7512
6131
  // Checks for non-ASCII characters
7513
- !sqmInvoiceTableView.validateBillingField(/^[\x20-\xFF]+$/, value) &&
7514
- sqmInvoiceTableView.formatErrorMessage(text.city, text.error.invalidCharacterError), disabled: states.disabled || states.isPartner }, (((_m = formState.errors) === null || _m === void 0 ? void 0 : _m.city) ? {
6132
+ !utils$1.validateBillingField(/^[\x20-\xFF]+$/, value) &&
6133
+ utils$1.formatErrorMessage(text.city, text.error.invalidCharacterError), disabled: states.disabled || states.isPartner }, (((_m = formState.errors) === null || _m === void 0 ? void 0 : _m.city) ? {
7515
6134
  class: classes.ErrorInput,
7516
- helpText: sqmInvoiceTableView.formatErrorMessage(text.city, formState.errors.city),
6135
+ helpText: utils$1.formatErrorMessage(text.city, formState.errors.city),
7517
6136
  }
7518
6137
  : {}), { required: true })),
7519
6138
  !states.hideState && (index.h("sl-select", Object.assign({ label: regionLabel, exportparts: "label: input-label, base: input-base", id: "state", name: "/state", value: formState.state, disabled: states.disabled || states.isPartner }, (((_o = formState.errors) === null || _o === void 0 ? void 0 : _o.state) ? {
7520
6139
  class: classes.ErrorInput,
7521
- helpText: sqmInvoiceTableView.formatErrorMessage(text.state, formState.errors.state),
6140
+ helpText: utils$1.formatErrorMessage(text.state, formState.errors.state),
7522
6141
  }
7523
- : {}), { required: true }), (_p = data.regions) === null || _p === void 0 ? void 0 : _p.map((r) => (index.h("sl-menu-item", { value: r.value }, r.label))))),
6142
+ : {}), { required: true }), (_p = data$1.regions) === null || _p === void 0 ? void 0 : _p.map((r) => (index.h("sl-menu-item", { value: r.value }, r.label))))),
7524
6143
  index.h("sl-input", Object.assign({ label: text.postalCode, exportparts: "label: input-label, base: input-base", id: "postalCode", name: "/postalCode", value: formState.postalCode, disabled: states.disabled || states.isPartner }, (((_q = formState.errors) === null || _q === void 0 ? void 0 : _q.postalCode) ? {
7525
6144
  class: classes.ErrorInput,
7526
- helpText: sqmInvoiceTableView.formatErrorMessage(text.postalCode, formState.errors.postalCode),
6145
+ helpText: utils$1.formatErrorMessage(text.postalCode, formState.errors.postalCode),
7527
6146
  }
7528
6147
  : {}), { required: true })),
7529
6148
  index.h("sl-select", Object.assign({ id: "currency", exportparts: "label: input-label, base: input-base", name: "/currency", label: text.currency, menu: true, value: formState.currency, disabled: states.disabled || states.isPartner, helpText: text.currencyHelpText }, (((_r = formState.errors) === null || _r === void 0 ? void 0 : _r.currency) ? {
7530
6149
  class: classes.ErrorInput,
7531
- helpText: sqmInvoiceTableView.formatErrorMessage(text.currency, formState.errors.currency),
6150
+ helpText: utils$1.formatErrorMessage(text.currency, formState.errors.currency),
7532
6151
  }
7533
6152
  : {}), { required: true, ref: (el) => (refs.currencyRef.current = el) }),
7534
6153
  index.h("sl-input", { class: classes.SearchInput, placeholder: text.searchForCurrencyText, onKeyDown: (e) => {
@@ -7536,11 +6155,11 @@ const UserInfoFormView = (props) => {
7536
6155
  e.stopPropagation();
7537
6156
  }, "onSl-input": (e) => {
7538
6157
  callbacks.setCurrencySearch(e.target.value);
7539
- } }), (_s = data === null || data === void 0 ? void 0 : data.currencies) === null || _s === void 0 ? void 0 :
6158
+ } }), (_s = data$1 === null || data$1 === void 0 ? void 0 : data$1.currencies) === null || _s === void 0 ? void 0 :
7540
6159
  _s.map((c) => (index.h("sl-menu-item", { value: c.currencyCode },
7541
6160
  c.currencyCode,
7542
6161
  " - ",
7543
- c.displayName))), (_t = data === null || data === void 0 ? void 0 : data.allCurrencies) === null || _t === void 0 ? void 0 :
6162
+ c.displayName))), (_t = data$1 === null || data$1 === void 0 ? void 0 : data$1.allCurrencies) === null || _t === void 0 ? void 0 :
7544
6163
  _t.map((c) => (index.h("sl-menu-item", { value: c.currencyCode, style: { display: "none" } },
7545
6164
  c.currencyCode,
7546
6165
  " - ",
@@ -7549,7 +6168,7 @@ const UserInfoFormView = (props) => {
7549
6168
  index.h("sl-checkbox", { exportparts: "label: input-label, base: input-base", checked: formState.allowBankingCollection === true, "onSl-change": (e) => {
7550
6169
  e.target.value = e.target.checked;
7551
6170
  }, disabled: states.isPartner ? false : states.disabled, required: true, value: formState.allowBankingCollection, id: "allowBankingCollection", name: "/allowBankingCollection" }, bankingCollectionText),
7552
- ((_u = formState.errors) === null || _u === void 0 ? void 0 : _u.allowBankingCollection) && (index.h("p", { class: classes.ErrorText }, sqmInvoiceTableView.formatErrorMessage(text.termsAndConditionsLabel, formState.errors.allowBankingCollection))))),
6171
+ ((_u = formState.errors) === null || _u === void 0 ? void 0 : _u.allowBankingCollection) && (index.h("p", { class: classes.ErrorText }, utils$1.formatErrorMessage(text.termsAndConditionsLabel, formState.errors.allowBankingCollection))))),
7553
6172
  index.h("sl-button", { type: "primary", disabled: states.isPartner ? false : states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton))))));
7554
6173
  };
7555
6174
 
@@ -7558,12 +6177,12 @@ function useUserInfoForm(props) {
7558
6177
  const currencyRef = stencilHooks_module.useRef(undefined);
7559
6178
  const phoneCountryRef = stencilHooks_module.useRef(undefined);
7560
6179
  const formRef = stencilHooks_module.useRef(null);
7561
- const context = index_module.Fn(TAX_FORM_CONTEXT_NAMESPACE);
7562
- const countries = index_module.Fn(SORTED_COUNTRIES_NAMESPACE);
7563
- const [step, setStep] = index_module.Pn(TAX_CONTEXT_NAMESPACE);
7564
- const [userFormContext, setUserFormContext] = index_module.Pn(USER_FORM_CONTEXT_NAMESPACE);
7565
- const { data, loading, errors: userError, } = index_module.$n(USER_QUERY_NAMESPACE);
7566
- const _currencies = index_module.Fn(CURRENCIES_NAMESPACE);
6180
+ const context = index_module.Fn(data.TAX_FORM_CONTEXT_NAMESPACE);
6181
+ const countries = index_module.Fn(data.SORTED_COUNTRIES_NAMESPACE);
6182
+ const [step, setStep] = index_module.Pn(data.TAX_CONTEXT_NAMESPACE);
6183
+ const [userFormContext, setUserFormContext] = index_module.Pn(data.USER_FORM_CONTEXT_NAMESPACE);
6184
+ const { data: data$1, loading, errors: userError, } = index_module.$n(data.USER_QUERY_NAMESPACE);
6185
+ const _currencies = index_module.Fn(data.CURRENCIES_NAMESPACE);
7567
6186
  const currencies = stencilHooks_module.useMemo(() => [...(_currencies || [])].sort((a, b) => a.displayName.localeCompare(b.displayName)), [_currencies]);
7568
6187
  const [countrySearch, setCountrySearch] = stencilHooks_module.useState("");
7569
6188
  const [phoneCountrySearch, setPhoneCountrySearch] = stencilHooks_module.useState("");
@@ -7574,11 +6193,11 @@ function useUserInfoForm(props) {
7574
6193
  const [formErrors, setErrors] = stencilHooks_module.useState({});
7575
6194
  stencilHooks_module.useEffect(() => {
7576
6195
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
7577
- const user = data === null || data === void 0 ? void 0 : data.user;
6196
+ const user = data$1 === null || data$1 === void 0 ? void 0 : data$1.user;
7578
6197
  if (!user || step !== "/1")
7579
6198
  return;
7580
6199
  // If form already filled out, skip initialising it
7581
- if (sqmInvoiceTableView.objectIsFull(userFormContext))
6200
+ if (utils$1.objectIsFull(userFormContext))
7582
6201
  return;
7583
6202
  // Prefer MI email if it was verified before this
7584
6203
  const email = ((_a = user.managedIdentity) === null || _a === void 0 ? void 0 : _a.emailVerified) ? user.managedIdentity.email
@@ -7615,7 +6234,7 @@ function useUserInfoForm(props) {
7615
6234
  postalCode: (_k = user.customFields) === null || _k === void 0 ? void 0 : _k.postalCode,
7616
6235
  });
7617
6236
  }
7618
- }, [data, step, userFormContext]);
6237
+ }, [data$1, step, userFormContext]);
7619
6238
  const onFormChange = (field, e) => {
7620
6239
  var _a, _b;
7621
6240
  const value = (_b = (_a = e.detail) === null || _a === void 0 ? void 0 : _a.item) === null || _b === void 0 ? void 0 : _b.__value;
@@ -7707,7 +6326,7 @@ function useUserInfoForm(props) {
7707
6326
  }
7708
6327
  const hasStates = ["ES", "AU", "US", "CA"].includes(userFormContext.countryCode);
7709
6328
  const regionObj = hasStates
7710
- ? sqmInvoiceTableView.ADDRESS_REGIONS[userFormContext === null || userFormContext === void 0 ? void 0 : userFormContext.countryCode]
6329
+ ? IndirectTaxDetailsView.ADDRESS_REGIONS[userFormContext === null || userFormContext === void 0 ? void 0 : userFormContext.countryCode]
7711
6330
  : {};
7712
6331
  return {
7713
6332
  setStep: setStep,
@@ -7740,8 +6359,8 @@ function useUserInfoForm(props) {
7740
6359
  disabled: loading,
7741
6360
  loadingError: !!(userError === null || userError === void 0 ? void 0 : userError.message),
7742
6361
  loading: loading,
7743
- isPartner: !!((_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher),
7744
- isUser: !!((_d = (_c = data === null || data === void 0 ? void 0 : data.user) === null || _c === void 0 ? void 0 : _c.impactConnection) === null || _d === void 0 ? void 0 : _d.user),
6362
+ isPartner: !!((_b = (_a = data$1 === null || data$1 === void 0 ? void 0 : data$1.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher),
6363
+ isUser: !!((_d = (_c = data$1 === null || data$1 === void 0 ? void 0 : data$1.user) === null || _c === void 0 ? void 0 : _c.impactConnection) === null || _d === void 0 ? void 0 : _d.user),
7745
6364
  formState: {
7746
6365
  ...userFormContext,
7747
6366
  errors: formErrors,
@@ -7924,19 +6543,20 @@ const TaxForm = class {
7924
6543
  }
7925
6544
  render() {
7926
6545
  const props = index_module.isDemo() ? useDemoUserInfoForm(this) : useUserInfoForm(this);
7927
- return (index.h(index.Host, null, index.h(UserInfoFormView, { data: props.data,
6546
+ return (index.h(UserInfoFormView, { data: props.data,
7928
6547
  // @ts-ignore
7929
6548
  states: props.states, callbacks: {
7930
6549
  ...props.callbacks,
7931
6550
  onSubmit: props.onSubmit,
7932
- }, text: props.text, refs: props.refs })));
6551
+ }, text: props.text, refs: props.refs }));
7933
6552
  }
7934
6553
  };
7935
6554
  function useDemoUserInfoForm(props) {
7936
- const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
6555
+ const setStep = index_module.En(data.TAX_CONTEXT_NAMESPACE);
6556
+ // @ts-ignore
7937
6557
  return cjs.cjs({
7938
6558
  setStep,
7939
- onSubmit: () => {
6559
+ onSubmit: async () => {
7940
6560
  setStep("/2");
7941
6561
  },
7942
6562
  onRadioClick: () => { },
@@ -7980,19 +6600,12 @@ function useDemoUserInfoForm(props) {
7980
6600
  }
7981
6601
 
7982
6602
  exports.sqm_banking_info_form = BankingInfoForm;
7983
- exports.sqm_code_verification = WidgetCodeVerification;
7984
6603
  exports.sqm_docusign_form = DocusignForm;
7985
6604
  exports.sqm_indirect_tax_form = IndirectTaxForm;
7986
6605
  exports.sqm_invoice_table = InvoiceTable;
7987
- exports.sqm_invoice_table_data_cell = InvoiceTableDataCell;
7988
6606
  exports.sqm_invoice_table_data_column = InvoiceTableDataColumn;
7989
- exports.sqm_invoice_table_date_cell = RewardTableDateCell;
7990
6607
  exports.sqm_invoice_table_date_column = InvoiceTableDateColumn;
7991
- exports.sqm_invoice_table_download_cell = InvoiceTableDownloadCell;
7992
6608
  exports.sqm_invoice_table_download_column = InvoiceTableGenericColumn;
7993
6609
  exports.sqm_payout_details_card = PayoutDetailsCard;
7994
- exports.sqm_table_cell = TableCell;
7995
- exports.sqm_table_row = TableRow;
7996
- exports.sqm_tax_and_cash = TaxAndCashMonolith;
7997
6610
  exports.sqm_tax_and_cash_dashboard = TaxAndCashDashboard;
7998
6611
  exports.sqm_user_info_form = TaxForm;