@saasquatch/mint-components 1.15.0-4 → 1.15.0-41

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 (578) hide show
  1. package/dist/cjs/{GenericTableView-a9f4ba75.js → GenericTableView-a9d0b798.js} +7 -7
  2. package/dist/cjs/IndirectTaxDetailsView-d0290a12.js +646 -0
  3. package/dist/cjs/{ShadowViewAddon-9e7916d8.js → ShadowViewAddon-9cb7a310.js} +1333 -1316
  4. package/dist/cjs/{copy-text-view-c85acaaa.js → copy-text-view-ee147291.js} +54 -39
  5. package/dist/cjs/data-6d96b89c.js +137 -0
  6. package/dist/cjs/{email-registration-view-55b378dc.js → email-registration-view-dca94dc9.js} +2 -2
  7. package/dist/cjs/{global-0cf6d295.js → global-d62c5561.js} +308 -90
  8. package/dist/cjs/loader.cjs.js +2 -2
  9. package/dist/cjs/mint-components.cjs.js +2 -2
  10. package/dist/cjs/{mixins-f7e0377a.js → mixins-4761d472.js} +6 -6
  11. package/dist/cjs/parseStates-d1effc19.js +16 -0
  12. package/dist/cjs/{sqm-banking-info-form_17.cjs.entry.js → sqm-banking-info-form_10.cjs.entry.js} +647 -2188
  13. package/dist/cjs/{sqm-base-registration-form-view-8a2c8763.js → sqm-base-registration-form-view-1c5094d3.js} +2 -2
  14. package/dist/cjs/{sqm-big-stat_41.cjs.entry.js → sqm-big-stat_42.cjs.entry.js} +570 -115
  15. package/dist/cjs/{sqm-close-button-view-ea3fa23b.js → sqm-close-button-view-b297e933.js} +1 -1
  16. package/dist/cjs/sqm-close-button.cjs.entry.js +2 -2
  17. package/dist/cjs/sqm-code-verification.cjs.entry.js +348 -0
  18. package/dist/cjs/sqm-email-verification.cjs.entry.js +2 -2
  19. package/dist/cjs/sqm-empty_4.cjs.entry.js +49 -49
  20. package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +3 -3
  21. package/dist/cjs/sqm-invoice-table-data-cell_5.cjs.entry.js +84 -0
  22. package/dist/cjs/{sqm-leaderboard-rank-view-d39a55d8.js → sqm-leaderboard-rank-view-7c6cebe3.js} +1 -1
  23. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +3 -3
  24. package/dist/cjs/{sqm-navigation-sidebar-item-view-6f35d2ee.js → sqm-navigation-sidebar-item-view-10b62df1.js} +18 -7
  25. package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +26 -3
  26. package/dist/cjs/{sqm-navigation-sidebar-view-17111896.js → sqm-navigation-sidebar-view-38a5227a.js} +16 -6
  27. package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +19 -3
  28. package/dist/cjs/sqm-pagination_3.cjs.entry.js +86 -59
  29. package/dist/cjs/sqm-password-field.cjs.entry.js +1 -1
  30. package/dist/cjs/{sqm-portal-email-verification-view-ab0fb983.js → sqm-portal-email-verification-view-156accab.js} +3 -3
  31. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +4 -4
  32. package/dist/cjs/{sqm-portal-forgot-password-view-78f19ef9.js → sqm-portal-forgot-password-view-fdd97c18.js} +24 -17
  33. package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +25 -4
  34. package/dist/cjs/sqm-portal-google-login.cjs.entry.js +3 -3
  35. package/dist/cjs/sqm-portal-google-registration-form.cjs.entry.js +4 -4
  36. package/dist/cjs/{sqm-portal-login-view-761a4d8e.js → sqm-portal-login-view-0fbbda1b.js} +3 -3
  37. package/dist/cjs/{sqm-portal-profile-view-e3026b53.js → sqm-portal-profile-view-f226725e.js} +3 -3
  38. package/dist/cjs/sqm-portal-profile.cjs.entry.js +3 -3
  39. package/dist/cjs/{sqm-portal-registration-form-view-637a4bf4.js → sqm-portal-registration-form-view-399f4eaf.js} +2 -2
  40. package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +3 -3
  41. package/dist/cjs/{sqm-portal-reset-password-view-fe602822.js → sqm-portal-reset-password-view-0439a9e5.js} +2 -2
  42. package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +3 -3
  43. package/dist/cjs/{sqm-portal-verify-email-view-7b678f34.js → sqm-portal-verify-email-view-05f72dec.js} +2 -2
  44. package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +3 -3
  45. package/dist/cjs/{sqm-qr-code-view-15dfc0b6.js → sqm-qr-code-view-7ee9fa56.js} +2 -7
  46. package/dist/cjs/sqm-qr-code.cjs.entry.js +1 -1
  47. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +111 -24
  48. package/dist/cjs/sqm-referred-registration.cjs.entry.js +2 -2
  49. package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +1 -1
  50. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +81 -15
  51. package/dist/cjs/sqm-stencilbook.cjs.entry.js +13717 -12395
  52. package/dist/cjs/sqm-tabs.cjs.entry.js +16 -4
  53. package/dist/cjs/sqm-tax-and-cash.cjs.entry.js +1221 -0
  54. package/dist/cjs/sqm-text-span-view-ce4c0178.js +63 -0
  55. package/dist/cjs/sqm-text-span.cjs.entry.js +4 -4
  56. package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +11 -3
  57. package/dist/cjs/sqm-widget-verification.cjs.entry.js +17 -6
  58. package/dist/cjs/{usePayoutStatus-4b5894ef.js → usePayoutStatus-feeac99b.js} +8 -5
  59. package/dist/cjs/utils-ce18d1bc.js +105 -0
  60. package/dist/collection/collection-manifest.json +1 -0
  61. package/dist/collection/components/sqm-big-stat/BigStat.stories.js +13 -0
  62. package/dist/collection/components/sqm-big-stat/sqm-big-stat-view.js +15 -7
  63. package/dist/collection/components/sqm-big-stat/sqm-big-stat.js +162 -2
  64. package/dist/collection/components/sqm-big-stat/useBigStat.js +10 -0
  65. package/dist/collection/components/sqm-big-stat/useDemoBigStat.js +13 -4
  66. package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +1 -0
  67. package/dist/collection/components/sqm-coupon-code/CouponCode.stories.js +7 -0
  68. package/dist/collection/components/sqm-coupon-code/sqm-coupon-code-view.js +13 -13
  69. package/dist/collection/components/sqm-coupon-code/sqm-coupon-code.js +169 -1
  70. package/dist/collection/components/sqm-coupon-code/useCouponCode.js +1 -0
  71. package/dist/collection/components/sqm-divided-layout/sqm-divided-layout-view.js +14 -6
  72. package/dist/collection/components/sqm-divided-layout/sqm-divided-layout.js +58 -1
  73. package/dist/collection/components/sqm-edit-profile/sqm-edit-profile-view.js +1 -1
  74. package/dist/collection/components/sqm-form-message/FormMessage.stories.js +1 -1
  75. package/dist/collection/components/sqm-hero-image/sqm-hero-image-view.js +3 -2
  76. package/dist/collection/components/sqm-hero-image/sqm-hero-image.js +79 -0
  77. package/dist/collection/components/sqm-instant-access-registration/sqm-instant-access-registration.js +2 -2
  78. package/dist/collection/components/sqm-invoice-table/cells/sqm-invoice-table-download-cell.js +2 -2
  79. package/dist/collection/components/sqm-invoice-table/sqm-invoice-table-view.js +1 -1
  80. package/dist/collection/components/sqm-leaderboard/Leaderboard.stories.js +37 -0
  81. package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +60 -54
  82. package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +197 -32
  83. package/dist/collection/components/sqm-leaderboard-rank/sqm-leaderboard-rank-view.js +2 -2
  84. package/dist/collection/components/sqm-leaderboard-rank/sqm-leaderboard-rank.css +2 -2
  85. package/dist/collection/components/sqm-logout-current-user/sqm-logout-current-user.js +1 -1
  86. package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +27 -2
  87. package/dist/collection/components/sqm-name-fields/sqm-name-fields.js +1 -0
  88. package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar-view.js +16 -6
  89. package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar.js +83 -5
  90. package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view.js +17 -6
  91. package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.js +233 -1
  92. package/dist/collection/components/sqm-navigation-sidebar-item/useNavigationSidebarItem.js +9 -1
  93. package/dist/collection/components/sqm-pagination/sqm-pagination-view.js +3 -3
  94. package/dist/collection/components/sqm-pagination/sqm-pagination.js +43 -0
  95. package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password-view.js +8 -4
  96. package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password.js +1 -1
  97. package/dist/collection/components/sqm-portal-footer/sqm-portal-footer-view.js +6 -6
  98. package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.js +22 -15
  99. package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password.js +95 -2
  100. package/dist/collection/components/sqm-portal-frame/sqm-portal-frame-view.js +41 -36
  101. package/dist/collection/components/sqm-portal-frame/sqm-portal-frame.js +103 -2
  102. package/dist/collection/components/sqm-portal-frame/usePortalFrame.js +4 -1
  103. package/dist/collection/components/sqm-portal-login/sqm-portal-login-view.js +1 -1
  104. package/dist/collection/components/sqm-portal-profile/sqm-portal-profile-view.js +1 -1
  105. package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step-view.js +9 -3
  106. package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step.js +77 -2
  107. package/dist/collection/components/sqm-qr-code/sqm-qr-code-view.js +2 -7
  108. package/dist/collection/components/sqm-referral-card/sqm-referral-card-view.js +32 -31
  109. package/dist/collection/components/sqm-referral-card/sqm-referral-card.js +75 -0
  110. package/dist/collection/components/sqm-referral-code/ReferralCode.stories.js +3 -0
  111. package/dist/collection/components/sqm-referral-code/sqm-referral-code.js +169 -1
  112. package/dist/collection/components/sqm-referral-codes/ReferralCodes.stories.js +6 -0
  113. package/dist/collection/components/sqm-referral-codes/sqm-referral-codes-view.js +46 -46
  114. package/dist/collection/components/sqm-referral-codes/sqm-referral-codes.js +28 -1
  115. package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +48 -15
  116. package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-status-cell.js +60 -6
  117. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.js +4 -4
  118. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.js +3 -3
  119. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.js +71 -5
  120. package/dist/collection/components/sqm-share-button/ShareButton.stories.js +3 -1
  121. package/dist/collection/components/sqm-share-button/sqm-share-button-view.js +23 -22
  122. package/dist/collection/components/sqm-share-button/sqm-share-button.js +53 -7
  123. package/dist/collection/components/sqm-share-code/sqm-share-code.js +169 -1
  124. package/dist/collection/components/sqm-share-link/ShareLink.stories.js +12 -0
  125. package/dist/collection/components/sqm-share-link/sqm-share-link.js +171 -3
  126. package/dist/collection/components/sqm-stat-container/sqm-stat-container-view.js +20 -8
  127. package/dist/collection/components/sqm-stat-container/sqm-stat-container.js +110 -2
  128. package/dist/collection/components/sqm-stencilbook/BrandSelector.js +179 -0
  129. package/dist/collection/components/sqm-stencilbook/Themes.js +21 -17
  130. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +83 -97
  131. package/dist/collection/components/sqm-tabs/Tabs.stories.js +7 -0
  132. package/dist/collection/components/sqm-tabs/sqm-tabs-view.js +14 -2
  133. package/dist/collection/components/sqm-tabs/sqm-tabs.js +28 -2
  134. package/dist/collection/components/sqm-task-card/DetailsView.js +8 -2
  135. package/dist/collection/components/sqm-task-card/progress-bar/progress-bar-view.js +3 -2
  136. package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +138 -156
  137. package/dist/collection/components/sqm-task-card/sqm-task-card.js +146 -0
  138. package/dist/collection/components/sqm-task-card/useTaskCard.js +10 -0
  139. package/dist/collection/components/sqm-text/Text.stories.js +12 -0
  140. package/dist/collection/components/sqm-text/sqm-text.js +100 -49
  141. package/dist/collection/components/sqm-text-span/sqm-text-span-view.js +44 -43
  142. package/dist/collection/components/sqm-text-span/sqm-text-span.js +51 -2
  143. package/dist/collection/components/sqm-timeline/Timeline.stories.js +8 -1
  144. package/dist/collection/components/sqm-timeline/sqm-timeline-entry-view.js +45 -45
  145. package/dist/collection/components/sqm-timeline/sqm-timeline-entry.js +52 -0
  146. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.js +33 -3
  147. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-controller.js +39 -5
  148. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +41 -6
  149. package/dist/collection/components/tax-and-cash/TaxForm.stories.js +12 -8
  150. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +20 -43
  151. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +2 -2
  152. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +1 -1
  153. package/dist/collection/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.js +2 -2
  154. package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +15 -42
  155. package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +3 -3
  156. package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +2 -2
  157. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +57 -23
  158. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +1 -1
  159. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +2 -2
  160. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card-view.js +13 -13
  161. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js +26 -1
  162. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/usePayoutDetailsCard.js +2 -2
  163. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +8 -5
  164. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +77 -28
  165. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +1 -1
  166. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +18 -18
  167. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +62 -3
  168. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +3 -3
  169. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +173 -20
  170. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +49 -11
  171. package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +3 -3
  172. package/dist/collection/components/views/copy-text-view.js +53 -38
  173. package/dist/collection/components/views/email-registration-view.js +1 -1
  174. package/dist/collection/global/mixins.js +8 -8
  175. package/dist/collection/global/styles.js +308 -90
  176. package/dist/collection/global/styles.ts +321 -90
  177. package/dist/collection/tables/GenericTableView.js +6 -6
  178. package/dist/collection/utils/parseStates.js +12 -0
  179. package/dist/esm/{GenericTableView-7b9087af.js → GenericTableView-3b6f9ccc.js} +7 -7
  180. package/dist/esm/IndirectTaxDetailsView-3be86bcf.js +639 -0
  181. package/dist/esm/{ShadowViewAddon-e350d540.js → ShadowViewAddon-d8cfd6c7.js} +1336 -1318
  182. package/dist/esm/{copy-text-view-782137ba.js → copy-text-view-4a207b17.js} +54 -39
  183. package/dist/esm/data-a05c78ae.js +121 -0
  184. package/dist/esm/{email-registration-view-a7818cf2.js → email-registration-view-8782c01b.js} +2 -2
  185. package/dist/esm/{global-1d207c9e.js → global-632fb2fa.js} +308 -90
  186. package/dist/esm/loader.js +2 -2
  187. package/dist/esm/mint-components.js +2 -2
  188. package/dist/esm/{mixins-83f90fa1.js → mixins-f750863a.js} +6 -6
  189. package/dist/esm/parseStates-ed75e224.js +14 -0
  190. package/dist/esm/{sqm-banking-info-form_17.entry.js → sqm-banking-info-form_10.entry.js} +571 -2105
  191. package/dist/esm/{sqm-base-registration-form-view-593d4ac3.js → sqm-base-registration-form-view-d732a5df.js} +2 -2
  192. package/dist/esm/{sqm-big-stat_41.entry.js → sqm-big-stat_42.entry.js} +574 -120
  193. package/dist/esm/{sqm-close-button-view-f9819751.js → sqm-close-button-view-bc2bc10e.js} +1 -1
  194. package/dist/esm/sqm-close-button.entry.js +2 -2
  195. package/dist/esm/sqm-code-verification.entry.js +344 -0
  196. package/dist/esm/sqm-email-verification.entry.js +2 -2
  197. package/dist/esm/sqm-empty_4.entry.js +49 -49
  198. package/dist/esm/sqm-instant-access-registration.entry.js +3 -3
  199. package/dist/esm/sqm-invoice-table-data-cell_5.entry.js +76 -0
  200. package/dist/esm/{sqm-leaderboard-rank-view-753c8d4a.js → sqm-leaderboard-rank-view-84b3c539.js} +1 -1
  201. package/dist/esm/sqm-leaderboard-rank.entry.js +3 -3
  202. package/dist/esm/{sqm-navigation-sidebar-item-view-8f1c72bc.js → sqm-navigation-sidebar-item-view-6e046743.js} +18 -7
  203. package/dist/esm/sqm-navigation-sidebar-item.entry.js +26 -3
  204. package/dist/esm/{sqm-navigation-sidebar-view-9d802b78.js → sqm-navigation-sidebar-view-f898265a.js} +16 -6
  205. package/dist/esm/sqm-navigation-sidebar.entry.js +20 -4
  206. package/dist/esm/sqm-pagination_3.entry.js +86 -59
  207. package/dist/esm/sqm-password-field.entry.js +1 -1
  208. package/dist/esm/{sqm-portal-email-verification-view-6c8bad0b.js → sqm-portal-email-verification-view-24ea7b3c.js} +3 -3
  209. package/dist/esm/sqm-portal-email-verification.entry.js +4 -4
  210. package/dist/esm/{sqm-portal-forgot-password-view-3d3182f1.js → sqm-portal-forgot-password-view-55fc0873.js} +24 -17
  211. package/dist/esm/sqm-portal-forgot-password.entry.js +25 -4
  212. package/dist/esm/sqm-portal-google-login.entry.js +3 -3
  213. package/dist/esm/sqm-portal-google-registration-form.entry.js +4 -4
  214. package/dist/esm/{sqm-portal-login-view-7e49609a.js → sqm-portal-login-view-e870b4b0.js} +3 -3
  215. package/dist/esm/{sqm-portal-profile-view-cbdeec1f.js → sqm-portal-profile-view-9b4d7ec1.js} +3 -3
  216. package/dist/esm/sqm-portal-profile.entry.js +3 -3
  217. package/dist/esm/{sqm-portal-registration-form-view-3c1f6000.js → sqm-portal-registration-form-view-5d651c04.js} +2 -2
  218. package/dist/esm/sqm-portal-registration-form.entry.js +3 -3
  219. package/dist/esm/{sqm-portal-reset-password-view-54a8651f.js → sqm-portal-reset-password-view-6903828e.js} +2 -2
  220. package/dist/esm/sqm-portal-reset-password.entry.js +3 -3
  221. package/dist/esm/{sqm-portal-verify-email-view-b12cb894.js → sqm-portal-verify-email-view-01ac711f.js} +2 -2
  222. package/dist/esm/sqm-portal-verify-email.entry.js +3 -3
  223. package/dist/esm/{sqm-qr-code-view-f1d0763b.js → sqm-qr-code-view-62c10948.js} +2 -7
  224. package/dist/esm/sqm-qr-code.entry.js +1 -1
  225. package/dist/esm/sqm-referral-table_11.entry.js +111 -24
  226. package/dist/esm/sqm-referred-registration.entry.js +2 -2
  227. package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +1 -1
  228. package/dist/esm/sqm-rewards-table_9.entry.js +81 -15
  229. package/dist/esm/sqm-stencilbook.entry.js +13715 -12393
  230. package/dist/esm/sqm-tabs.entry.js +16 -4
  231. package/dist/esm/sqm-tax-and-cash.entry.js +1217 -0
  232. package/dist/esm/sqm-text-span-view-cd3902e5.js +61 -0
  233. package/dist/esm/sqm-text-span.entry.js +4 -4
  234. package/dist/esm/sqm-widget-verification-controller.entry.js +12 -4
  235. package/dist/esm/sqm-widget-verification.entry.js +17 -6
  236. package/dist/esm/{usePayoutStatus-58aa56b4.js → usePayoutStatus-fed17fc9.js} +8 -5
  237. package/dist/esm/utils-1654e233.js +97 -0
  238. package/dist/esm-es5/GenericTableView-3b6f9ccc.js +1 -0
  239. package/dist/esm-es5/IndirectTaxDetailsView-3be86bcf.js +1 -0
  240. package/dist/esm-es5/ShadowViewAddon-d8cfd6c7.js +1 -0
  241. package/dist/esm-es5/copy-text-view-4a207b17.js +1 -0
  242. package/dist/esm-es5/data-a05c78ae.js +1 -0
  243. package/dist/esm-es5/email-registration-view-8782c01b.js +1 -0
  244. package/dist/esm-es5/{global-1d207c9e.js → global-632fb2fa.js} +5 -5
  245. package/dist/esm-es5/loader.js +1 -1
  246. package/dist/esm-es5/mint-components.js +1 -1
  247. package/dist/esm-es5/mixins-f750863a.js +1 -0
  248. package/dist/esm-es5/parseStates-ed75e224.js +1 -0
  249. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -0
  250. package/dist/esm-es5/{sqm-base-registration-form-view-593d4ac3.js → sqm-base-registration-form-view-d732a5df.js} +1 -1
  251. package/dist/esm-es5/sqm-big-stat_42.entry.js +1 -0
  252. package/dist/esm-es5/{sqm-close-button-view-f9819751.js → sqm-close-button-view-bc2bc10e.js} +1 -1
  253. package/dist/esm-es5/sqm-close-button.entry.js +1 -1
  254. package/dist/esm-es5/sqm-code-verification.entry.js +1 -0
  255. package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
  256. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  257. package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
  258. package/dist/esm-es5/sqm-invoice-table-data-cell_5.entry.js +1 -0
  259. package/dist/esm-es5/sqm-leaderboard-rank-view-84b3c539.js +1 -0
  260. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  261. package/dist/esm-es5/sqm-navigation-sidebar-item-view-6e046743.js +1 -0
  262. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  263. package/dist/esm-es5/sqm-navigation-sidebar-view-f898265a.js +1 -0
  264. package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
  265. package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
  266. package/dist/esm-es5/sqm-password-field.entry.js +1 -1
  267. package/dist/esm-es5/{sqm-portal-email-verification-view-6c8bad0b.js → sqm-portal-email-verification-view-24ea7b3c.js} +1 -1
  268. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  269. package/dist/esm-es5/sqm-portal-forgot-password-view-55fc0873.js +1 -0
  270. package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
  271. package/dist/esm-es5/sqm-portal-google-login.entry.js +1 -1
  272. package/dist/esm-es5/sqm-portal-google-registration-form.entry.js +1 -1
  273. package/dist/esm-es5/sqm-portal-login-view-e870b4b0.js +1 -0
  274. package/dist/esm-es5/{sqm-portal-profile-view-cbdeec1f.js → sqm-portal-profile-view-9b4d7ec1.js} +1 -1
  275. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  276. package/dist/esm-es5/{sqm-portal-registration-form-view-3c1f6000.js → sqm-portal-registration-form-view-5d651c04.js} +1 -1
  277. package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
  278. package/dist/esm-es5/{sqm-portal-reset-password-view-54a8651f.js → sqm-portal-reset-password-view-6903828e.js} +1 -1
  279. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  280. package/dist/esm-es5/{sqm-portal-verify-email-view-b12cb894.js → sqm-portal-verify-email-view-01ac711f.js} +1 -1
  281. package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
  282. package/dist/esm-es5/{sqm-qr-code-view-f1d0763b.js → sqm-qr-code-view-62c10948.js} +1 -1
  283. package/dist/esm-es5/sqm-qr-code.entry.js +1 -1
  284. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  285. package/dist/esm-es5/sqm-referred-registration.entry.js +1 -1
  286. package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -1
  287. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  288. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  289. package/dist/esm-es5/sqm-tabs.entry.js +1 -1
  290. package/dist/esm-es5/sqm-tax-and-cash.entry.js +1 -0
  291. package/dist/esm-es5/sqm-text-span-view-cd3902e5.js +1 -0
  292. package/dist/esm-es5/sqm-text-span.entry.js +1 -1
  293. package/dist/esm-es5/sqm-widget-verification-controller.entry.js +1 -1
  294. package/dist/esm-es5/sqm-widget-verification.entry.js +1 -1
  295. package/dist/esm-es5/{usePayoutStatus-58aa56b4.js → usePayoutStatus-fed17fc9.js} +2 -2
  296. package/dist/esm-es5/utils-1654e233.js +1 -0
  297. package/dist/mint-components/global/styles.ts +321 -90
  298. package/dist/mint-components/mint-components.esm.js +1 -1
  299. package/dist/mint-components/mint-components.js +1 -1
  300. package/dist/mint-components/p-042642d3.entry.js +1 -0
  301. package/dist/mint-components/{p-91ab3da1.js → p-057f5402.js} +1 -1
  302. package/dist/mint-components/p-06ce54e2.entry.js +258 -0
  303. package/dist/mint-components/p-0984523b.js +1 -0
  304. package/dist/mint-components/p-0a37a288.system.entry.js +1 -0
  305. package/dist/mint-components/p-0a8a6d45.system.entry.js +1 -0
  306. package/dist/mint-components/{p-d07f3090.entry.js → p-0b3218a5.entry.js} +1 -1
  307. package/dist/mint-components/{p-e5d0375e.system.js → p-0df294ad.system.js} +1 -1
  308. package/dist/mint-components/p-0e32981f.js +1 -0
  309. package/dist/mint-components/p-115dfc03.system.js +1 -0
  310. package/dist/mint-components/{p-480e08e9.js → p-11dff275.js} +2 -2
  311. package/dist/mint-components/{p-1673fae9.system.entry.js → p-12e61414.system.entry.js} +1 -1
  312. package/dist/mint-components/p-13f3a647.js +1 -0
  313. package/dist/mint-components/p-155cf177.system.js +1 -0
  314. package/dist/mint-components/{p-15d77d0b.entry.js → p-1878da9b.entry.js} +2 -2
  315. package/dist/mint-components/{p-99ad7d56.system.js → p-223dd3f7.system.js} +1 -1
  316. package/dist/mint-components/p-2cfe9826.system.entry.js +1 -0
  317. package/dist/mint-components/p-2df6ce8f.entry.js +144 -0
  318. package/dist/mint-components/p-32a47b41.system.js +1 -0
  319. package/dist/mint-components/{p-9d3d4098.system.js → p-33f640f6.system.js} +1 -1
  320. package/dist/mint-components/p-3a21f8f9.system.entry.js +1 -0
  321. package/dist/mint-components/p-3c3aab4c.system.js +1 -0
  322. package/dist/mint-components/{p-19bc3406.system.entry.js → p-3e4e74a2.system.entry.js} +1 -1
  323. package/dist/mint-components/{p-164a9103.system.entry.js → p-41d051b1.system.entry.js} +1 -1
  324. package/dist/mint-components/{p-709e1799.system.entry.js → p-450a7705.system.entry.js} +1 -1
  325. package/dist/mint-components/{p-90fc6774.system.entry.js → p-457962b7.system.entry.js} +1 -1
  326. package/dist/mint-components/p-46a672e4.entry.js +1 -0
  327. package/dist/mint-components/p-4841c5e9.system.entry.js +1 -0
  328. package/dist/mint-components/p-49b20dae.js +1 -0
  329. package/dist/mint-components/{p-380bfde1.entry.js → p-4b42b756.entry.js} +1 -1
  330. package/dist/mint-components/{p-2dca9e1a.system.js → p-4b9789a2.system.js} +1 -1
  331. package/dist/mint-components/p-4bb1c4b2.system.js +1 -0
  332. package/dist/mint-components/p-4cbd7eec.js +394 -0
  333. package/dist/mint-components/{p-f0772618.system.entry.js → p-4d478108.system.entry.js} +1 -1
  334. package/dist/mint-components/{p-b75bb6e3.system.js → p-505951d2.system.js} +1 -1
  335. package/dist/mint-components/{p-6df88590.system.entry.js → p-51aa8c38.system.entry.js} +1 -1
  336. package/dist/mint-components/p-52d15f87.system.js +1 -0
  337. package/dist/mint-components/p-54b0b768.system.js +1 -0
  338. package/dist/mint-components/p-5510be1e.system.entry.js +1 -0
  339. package/dist/mint-components/p-5c5964e0.js +1 -0
  340. package/dist/mint-components/p-5d407714.system.entry.js +1 -0
  341. package/dist/mint-components/{p-a2fde301.entry.js → p-5ef6de10.entry.js} +1 -1
  342. package/dist/mint-components/p-66a2b1a4.js +1 -0
  343. package/dist/mint-components/p-66d22d46.entry.js +13 -0
  344. package/dist/mint-components/p-674b82ac.js +1 -0
  345. package/dist/mint-components/p-6798cad1.system.js +1 -0
  346. package/dist/mint-components/{p-0c78815e.system.entry.js → p-6a49b077.system.entry.js} +1 -1
  347. package/dist/mint-components/{p-53730ffe.entry.js → p-6a5f57d7.entry.js} +1 -1
  348. package/dist/mint-components/p-6ef506ba.entry.js +16 -0
  349. package/dist/mint-components/{p-9cb06082.system.entry.js → p-6fa624ff.system.entry.js} +1 -1
  350. package/dist/mint-components/p-704f162e.entry.js +1 -0
  351. package/dist/mint-components/p-70fddbdd.entry.js +11 -0
  352. package/dist/mint-components/p-731d06a9.entry.js +1 -0
  353. package/dist/mint-components/p-74afdafb.system.js +1 -0
  354. package/dist/mint-components/p-767485b8.system.js +1 -0
  355. package/dist/mint-components/p-780b981b.entry.js +1 -0
  356. package/dist/mint-components/{p-fbac722b.js → p-7adb141e.js} +1 -1
  357. package/dist/mint-components/p-7b731acd.entry.js +93 -0
  358. package/dist/mint-components/{p-7a9290ba.js → p-82113e37.js} +1 -1
  359. package/dist/mint-components/{p-42187319.system.entry.js → p-846aff6a.system.entry.js} +1 -1
  360. package/dist/mint-components/p-84a78d09.entry.js +1 -0
  361. package/dist/mint-components/{p-0d2d0b6d.entry.js → p-865f812e.entry.js} +1 -1
  362. package/dist/mint-components/p-8a6494c7.system.js +1 -0
  363. package/dist/mint-components/p-8feb4180.entry.js +1 -0
  364. package/dist/mint-components/{p-475245d1.system.js → p-96e339f6.system.js} +15 -15
  365. package/dist/mint-components/p-9711efb7.entry.js +1 -0
  366. package/dist/mint-components/{p-cc7af682.system.js → p-9721a29a.system.js} +2 -2
  367. package/dist/mint-components/p-9acf0b39.system.entry.js +1 -0
  368. package/dist/mint-components/p-9d41d676.system.entry.js +1 -0
  369. package/dist/mint-components/p-9f2edf59.system.js +1 -0
  370. package/dist/mint-components/p-a1e17fd2.js +1 -0
  371. package/dist/mint-components/p-a27a15c5.system.entry.js +1 -0
  372. package/dist/mint-components/{p-d929b9d5.system.js → p-a3383f54.system.js} +1 -1
  373. package/dist/mint-components/{p-4428294b.entry.js → p-a3e68251.entry.js} +1 -1
  374. package/dist/mint-components/p-a572db9b.system.entry.js +1 -0
  375. package/dist/mint-components/{p-7f80a9d7.entry.js → p-a60d5315.entry.js} +1 -1
  376. package/dist/mint-components/p-a91e7c05.system.entry.js +1 -0
  377. package/dist/mint-components/{p-f4a8ee29.system.entry.js → p-af516659.system.entry.js} +1 -1
  378. package/dist/mint-components/p-b637f1e4.js +1 -0
  379. package/dist/mint-components/{p-2f101bae.entry.js → p-b6761073.entry.js} +1 -1
  380. package/dist/mint-components/{p-f1e72435.entry.js → p-b73a4df4.entry.js} +2 -2
  381. package/dist/mint-components/{p-9bfd9bed.system.entry.js → p-bb6e411d.system.entry.js} +1 -1
  382. package/dist/mint-components/p-bdd80fce.js +1 -0
  383. package/dist/mint-components/p-be89074c.entry.js +1 -0
  384. package/dist/mint-components/p-c0b07067.system.js +1 -0
  385. package/dist/mint-components/p-c1b1f8ae.system.entry.js +1 -0
  386. package/dist/mint-components/p-c75a3b4a.js +103 -0
  387. package/dist/mint-components/{p-91959fbe.js → p-c96a25c6.js} +1 -1
  388. package/dist/mint-components/p-c9745c8f.system.js +1 -0
  389. package/dist/mint-components/p-ca9e0322.system.js +1 -0
  390. package/dist/mint-components/{p-1a6b7d2a.entry.js → p-cd0ee247.entry.js} +1 -1
  391. package/dist/mint-components/p-cf157c6e.system.entry.js +1 -0
  392. package/dist/mint-components/{p-9386ad84.system.entry.js → p-d12e9cfd.system.entry.js} +1 -1
  393. package/dist/mint-components/{p-35b475bf.js → p-d1ae7a2d.js} +1 -1
  394. package/dist/mint-components/{p-5c28406d.system.entry.js → p-d5b3397c.system.entry.js} +1 -1
  395. package/dist/mint-components/p-d6352d15.js +1 -0
  396. package/dist/mint-components/p-d94a4d50.system.entry.js +1 -0
  397. package/dist/mint-components/p-da71337b.entry.js +1 -0
  398. package/dist/mint-components/{p-9b894557.entry.js → p-dbb83730.entry.js} +1 -1
  399. package/dist/mint-components/{p-6d4a313f.js → p-dc293b10.js} +81 -81
  400. package/dist/mint-components/p-de136dd3.js +1 -0
  401. package/dist/mint-components/{p-00ed4c2e.entry.js → p-df223bff.entry.js} +1 -1
  402. package/dist/mint-components/p-e1e62d55.entry.js +1 -0
  403. package/dist/mint-components/{p-f2d8d3d3.system.entry.js → p-e217afd9.system.entry.js} +1 -1
  404. package/dist/mint-components/{p-4794641c.system.js → p-e2705fbe.system.js} +1 -1
  405. package/dist/mint-components/p-e309a219.js +1 -0
  406. package/dist/mint-components/{p-f940190a.js → p-e518a60d.js} +1 -1
  407. package/dist/mint-components/p-e5d9e709.entry.js +13 -0
  408. package/dist/mint-components/p-eb998f7b.entry.js +9 -0
  409. package/dist/mint-components/p-f53f5304.system.entry.js +1 -0
  410. package/dist/mint-components/p-f8175201.system.js +1 -0
  411. package/dist/mint-components/p-fb13065a.js +1 -0
  412. package/dist/mint-components/p-fb584d7a.js +1 -0
  413. package/dist/mint-components/p-fbef4ecb.system.js +1 -0
  414. package/dist/mint-components/p-fda43e22.system.entry.js +1 -0
  415. package/dist/types/components/sqm-big-stat/BigStat.stories.d.ts +2 -0
  416. package/dist/types/components/sqm-big-stat/sqm-big-stat-view.d.ts +5 -0
  417. package/dist/types/components/sqm-big-stat/sqm-big-stat.d.ts +41 -0
  418. package/dist/types/components/sqm-coupon-code/CouponCode.stories.d.ts +2 -0
  419. package/dist/types/components/sqm-coupon-code/sqm-coupon-code-view.d.ts +2 -0
  420. package/dist/types/components/sqm-coupon-code/sqm-coupon-code.d.ts +42 -0
  421. package/dist/types/components/sqm-coupon-code/useCouponCode.d.ts +1 -0
  422. package/dist/types/components/sqm-divided-layout/sqm-divided-layout-view.d.ts +4 -1
  423. package/dist/types/components/sqm-divided-layout/sqm-divided-layout.d.ts +13 -0
  424. package/dist/types/components/sqm-hero-image/sqm-hero-image-view.d.ts +1 -0
  425. package/dist/types/components/sqm-hero-image/sqm-hero-image.d.ts +19 -0
  426. package/dist/types/components/sqm-leaderboard/Leaderboard.stories.d.ts +1 -0
  427. package/dist/types/components/sqm-leaderboard/sqm-leaderboard-view.d.ts +6 -0
  428. package/dist/types/components/sqm-leaderboard/sqm-leaderboard.d.ts +48 -7
  429. package/dist/types/components/sqm-leaderboard/useLeaderboard.d.ts +6 -0
  430. package/dist/types/components/sqm-navigation-sidebar/sqm-navigation-sidebar-view.d.ts +1 -0
  431. package/dist/types/components/sqm-navigation-sidebar/sqm-navigation-sidebar.d.ts +14 -0
  432. package/dist/types/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view.d.ts +8 -0
  433. package/dist/types/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.d.ts +57 -0
  434. package/dist/types/components/sqm-pagination/sqm-pagination-view.d.ts +1 -0
  435. package/dist/types/components/sqm-pagination/sqm-pagination.d.ts +9 -0
  436. package/dist/types/components/sqm-portal-change-password/sqm-portal-change-password-view.d.ts +2 -0
  437. package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.d.ts +7 -0
  438. package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password.d.ts +15 -0
  439. package/dist/types/components/sqm-portal-frame/sqm-portal-frame-view.d.ts +3 -0
  440. package/dist/types/components/sqm-portal-frame/sqm-portal-frame.d.ts +19 -0
  441. package/dist/types/components/sqm-portal-frame/usePortalFrame.d.ts +2 -1
  442. package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step-view.d.ts +3 -0
  443. package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step.d.ts +20 -2
  444. package/dist/types/components/sqm-referral-card/sqm-referral-card-view.d.ts +5 -2
  445. package/dist/types/components/sqm-referral-card/sqm-referral-card.d.ts +20 -0
  446. package/dist/types/components/sqm-referral-code/ReferralCode.stories.d.ts +1 -0
  447. package/dist/types/components/sqm-referral-code/sqm-referral-code.d.ts +42 -0
  448. package/dist/types/components/sqm-referral-codes/ReferralCodes.stories.d.ts +1 -0
  449. package/dist/types/components/sqm-referral-codes/sqm-referral-codes-view.d.ts +1 -0
  450. package/dist/types/components/sqm-referral-codes/sqm-referral-codes.d.ts +6 -0
  451. package/dist/types/components/sqm-share-button/ShareButton.stories.d.ts +1 -1
  452. package/dist/types/components/sqm-share-button/sqm-share-button-view.d.ts +2 -1
  453. package/dist/types/components/sqm-share-button/sqm-share-button.d.ts +15 -3
  454. package/dist/types/components/sqm-share-code/sqm-share-code.d.ts +42 -0
  455. package/dist/types/components/sqm-share-link/ShareLink.stories.d.ts +1 -0
  456. package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +43 -1
  457. package/dist/types/components/sqm-stat-container/sqm-stat-container-view.d.ts +3 -0
  458. package/dist/types/components/sqm-stat-container/sqm-stat-container.d.ts +23 -0
  459. package/dist/types/components/sqm-stencilbook/BrandSelector.d.ts +6 -0
  460. package/dist/types/components/sqm-stencilbook/Themes.d.ts +4 -5
  461. package/dist/types/components/sqm-tabs/Tabs.stories.d.ts +1 -0
  462. package/dist/types/components/sqm-tabs/sqm-tabs-view.d.ts +1 -0
  463. package/dist/types/components/sqm-tabs/sqm-tabs.d.ts +8 -0
  464. package/dist/types/components/sqm-task-card/DetailsView.d.ts +6 -0
  465. package/dist/types/components/sqm-task-card/sqm-task-card-view.d.ts +5 -0
  466. package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +32 -0
  467. package/dist/types/components/sqm-task-card/useTaskCard.d.ts +9 -0
  468. package/dist/types/components/sqm-text/Text.stories.d.ts +6 -0
  469. package/dist/types/components/sqm-text/sqm-text.d.ts +12 -0
  470. package/dist/types/components/sqm-text-span/sqm-text-span-view.d.ts +4 -2
  471. package/dist/types/components/sqm-text-span/sqm-text-span.d.ts +13 -1
  472. package/dist/types/components/sqm-timeline/Timeline.stories.d.ts +1 -0
  473. package/dist/types/components/sqm-timeline/sqm-timeline-entry-view.d.ts +2 -0
  474. package/dist/types/components/sqm-timeline/sqm-timeline-entry.d.ts +14 -0
  475. package/dist/types/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.d.ts +5 -0
  476. package/dist/types/components/sqm-widget-verification/sqm-widget-verification-controller.d.ts +5 -0
  477. package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +5 -0
  478. package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +0 -1
  479. package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.d.ts +1 -1
  480. package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +2 -2
  481. package/dist/types/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.d.ts +4 -0
  482. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +1 -1
  483. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +10 -4
  484. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.d.ts +1 -1
  485. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +1 -1
  486. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +10 -0
  487. package/dist/types/components/tax-and-cash/sqm-user-info-form/small-views/IndirectTaxDetailsView.d.ts +1 -1
  488. package/dist/types/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.d.ts +7 -0
  489. package/dist/types/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.d.ts +1 -1
  490. package/dist/types/components/tax-and-cash/utils.d.ts +1 -1
  491. package/dist/types/components/views/copy-text-view.d.ts +5 -0
  492. package/dist/types/components.d.ts +1232 -35
  493. package/dist/types/global/mixins.d.ts +12 -12
  494. package/dist/types/global/styles.d.ts +6 -1
  495. package/dist/types/saasquatch.d.ts +61 -0
  496. package/dist/types/utils/parseStates.d.ts +1 -0
  497. package/docs/docs.docx +0 -0
  498. package/docs/raisins.json +1 -1
  499. package/grapesjs/grapesjs.js +1 -1
  500. package/package.json +2 -1
  501. package/dist/cjs/sqm-invoice-table-view-dbf7a907.js +0 -2038
  502. package/dist/cjs/sqm-text-span-view-0aa82125.js +0 -62
  503. package/dist/esm/sqm-invoice-table-view-e0c9772a.js +0 -2022
  504. package/dist/esm/sqm-text-span-view-ca32495e.js +0 -60
  505. package/dist/esm-es5/GenericTableView-7b9087af.js +0 -1
  506. package/dist/esm-es5/ShadowViewAddon-e350d540.js +0 -1
  507. package/dist/esm-es5/copy-text-view-782137ba.js +0 -1
  508. package/dist/esm-es5/email-registration-view-a7818cf2.js +0 -1
  509. package/dist/esm-es5/mixins-83f90fa1.js +0 -1
  510. package/dist/esm-es5/sqm-banking-info-form_17.entry.js +0 -1
  511. package/dist/esm-es5/sqm-big-stat_41.entry.js +0 -1
  512. package/dist/esm-es5/sqm-invoice-table-view-e0c9772a.js +0 -1
  513. package/dist/esm-es5/sqm-leaderboard-rank-view-753c8d4a.js +0 -1
  514. package/dist/esm-es5/sqm-navigation-sidebar-item-view-8f1c72bc.js +0 -1
  515. package/dist/esm-es5/sqm-navigation-sidebar-view-9d802b78.js +0 -1
  516. package/dist/esm-es5/sqm-portal-forgot-password-view-3d3182f1.js +0 -1
  517. package/dist/esm-es5/sqm-portal-login-view-7e49609a.js +0 -1
  518. package/dist/esm-es5/sqm-text-span-view-ca32495e.js +0 -1
  519. package/dist/mint-components/p-091e7ca2.system.entry.js +0 -1
  520. package/dist/mint-components/p-0ebab63e.system.js +0 -1
  521. package/dist/mint-components/p-141bf5c1.system.entry.js +0 -1
  522. package/dist/mint-components/p-14a65f29.system.js +0 -1
  523. package/dist/mint-components/p-23379b5b.entry.js +0 -144
  524. package/dist/mint-components/p-24db5c70.js +0 -1
  525. package/dist/mint-components/p-2bcd406c.system.js +0 -1
  526. package/dist/mint-components/p-2da21ba4.entry.js +0 -1
  527. package/dist/mint-components/p-31015791.js +0 -1
  528. package/dist/mint-components/p-33c96e14.entry.js +0 -16
  529. package/dist/mint-components/p-342bc70c.system.entry.js +0 -1
  530. package/dist/mint-components/p-38e5c429.system.js +0 -1
  531. package/dist/mint-components/p-3a31cc83.entry.js +0 -13
  532. package/dist/mint-components/p-3b90e01b.system.js +0 -1
  533. package/dist/mint-components/p-3ba1ab43.system.js +0 -1
  534. package/dist/mint-components/p-3db34d68.js +0 -1
  535. package/dist/mint-components/p-3f6e0197.system.entry.js +0 -1
  536. package/dist/mint-components/p-420554af.system.entry.js +0 -1
  537. package/dist/mint-components/p-441b60ac.system.entry.js +0 -1
  538. package/dist/mint-components/p-492b70db.system.js +0 -1
  539. package/dist/mint-components/p-4e5af50c.js +0 -1
  540. package/dist/mint-components/p-5bdafc7e.system.entry.js +0 -1
  541. package/dist/mint-components/p-6055eb4c.system.js +0 -1
  542. package/dist/mint-components/p-626e9e84.js +0 -1
  543. package/dist/mint-components/p-635d5ef2.system.js +0 -1
  544. package/dist/mint-components/p-6427e963.entry.js +0 -1
  545. package/dist/mint-components/p-6a97b51d.entry.js +0 -13
  546. package/dist/mint-components/p-716d0275.entry.js +0 -1
  547. package/dist/mint-components/p-775f3ded.entry.js +0 -1
  548. package/dist/mint-components/p-7ab21e4d.entry.js +0 -1
  549. package/dist/mint-components/p-837a0fdd.js +0 -1
  550. package/dist/mint-components/p-85671c3d.system.entry.js +0 -1
  551. package/dist/mint-components/p-904ebcf6.system.entry.js +0 -1
  552. package/dist/mint-components/p-91521e9d.js +0 -1
  553. package/dist/mint-components/p-92816d1f.js +0 -1
  554. package/dist/mint-components/p-9cf80e85.system.entry.js +0 -1
  555. package/dist/mint-components/p-9db71c84.entry.js +0 -1
  556. package/dist/mint-components/p-aad32fb6.system.js +0 -1
  557. package/dist/mint-components/p-b207beeb.entry.js +0 -1
  558. package/dist/mint-components/p-b2bf509e.entry.js +0 -9
  559. package/dist/mint-components/p-b33b7eb5.system.js +0 -1
  560. package/dist/mint-components/p-babcdb1f.system.entry.js +0 -1
  561. package/dist/mint-components/p-c060f770.system.entry.js +0 -1
  562. package/dist/mint-components/p-c36506f6.system.entry.js +0 -1
  563. package/dist/mint-components/p-c3bfb9c3.entry.js +0 -258
  564. package/dist/mint-components/p-c8147def.js +0 -1
  565. package/dist/mint-components/p-c9f1dde7.js +0 -1
  566. package/dist/mint-components/p-cd1d497f.system.js +0 -1
  567. package/dist/mint-components/p-dbcb5359.js +0 -1
  568. package/dist/mint-components/p-dcc81e90.entry.js +0 -1
  569. package/dist/mint-components/p-e07bc6c4.system.js +0 -1
  570. package/dist/mint-components/p-e41aac34.js +0 -1
  571. package/dist/mint-components/p-e6f50ffd.entry.js +0 -1
  572. package/dist/mint-components/p-f3e2098c.js +0 -394
  573. package/dist/mint-components/p-f56bedd5.js +0 -1
  574. package/dist/mint-components/p-f71ae358.system.entry.js +0 -1
  575. package/dist/mint-components/p-f7c99803.system.js +0 -1
  576. package/dist/mint-components/p-f87ae19e.entry.js +0 -205
  577. /package/dist/collection/components/tax-and-cash/{sqm-tax-and-cash/data.js → data.js} +0 -0
  578. /package/dist/types/components/tax-and-cash/{sqm-tax-and-cash/data.d.ts → data.d.ts} +0 -0
@@ -4,143 +4,24 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-a29c60ef.js');
6
6
  const stencilHooks_module = require('./stencil-hooks.module-3a336b0f.js');
7
- const global = require('./global-0cf6d295.js');
7
+ const global = require('./global-d62c5561.js');
8
8
  const index_module = require('./index.module-ee84433d.js');
9
9
  const jsonpointer = require('./jsonpointer-11327262.js');
10
10
  const cjs = require('./cjs-1066ec21.js');
11
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-a9f4ba75.js');
13
+ require('./mixins-4761d472.js');
14
+ const GenericTableView = require('./GenericTableView-a9d0b798.js');
15
15
  const reRender = require('./re-render-b324deab.js');
16
16
  const useChildElements = require('./useChildElements-1b35d945.js');
17
17
  const luxon = require('./luxon-2926d85f.js');
18
18
  const useReferralTable = require('./useReferralTable-7c3f9600.js');
19
- const sqmTextSpanView = require('./sqm-text-span-view-0aa82125.js');
20
- const ErrorView = require('./ErrorView-b2fcf954.js');
21
- const sqmInvoiceTableView = require('./sqm-invoice-table-view-dbf7a907.js');
22
- const extractProps = require('./extractProps-fd93ba62.js');
19
+ const IndirectTaxDetailsView = require('./IndirectTaxDetailsView-d0290a12.js');
20
+ const utils$1 = require('./utils-ce18d1bc.js');
21
+ const parseStates = require('./parseStates-d1effc19.js');
22
+ const data = require('./data-6d96b89c.js');
23
23
  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;
24
+ const usePayoutStatus = require('./usePayoutStatus-feeac99b.js');
144
25
 
145
26
  function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
146
27
  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;
@@ -679,29 +560,26 @@ const style = {
679
560
  gap: "8px",
680
561
  },
681
562
  ErrorText: {
682
- color: "var(--sl-color-danger-500)",
563
+ color: "var(--sqm-danger-color-icon)",
683
564
  marginTop: "10px",
684
565
  },
685
566
  PageDescriptionText: {
686
- color: "var(--sl-color-neutral-500)",
567
+ color: "var(--sqm-text-subdued)",
687
568
  fontSize: "var(--sl-font-size-medium)",
688
569
  },
689
570
  DescriptionText: {
690
- color: "var(--sl-color-neutral-500)",
691
- },
692
- SecondaryBtn: {
693
- "&::part(base)": {
694
- color: "var(--sl-color-gray-800) !important",
695
- },
571
+ color: "var(--sqm-text-subdued)",
696
572
  },
697
573
  AlertContainer: {
698
574
  "&::part(base)": {
699
- backgroundColor: "var(--sl-color-red-100)",
700
- borderTop: "none",
575
+ backgroundColor: "var(--sqm-danger-color-background)",
576
+ border: "none",
701
577
  padding: "0 16px",
578
+ color: "var(--sqm-danger-color-text)",
579
+ marginBottom: "16px",
702
580
  },
703
581
  "& sl-icon::part(base)": {
704
- color: "var(--sl-color-danger-500)",
582
+ color: "var(--sqm-danger-color-icon)",
705
583
  },
706
584
  },
707
585
  RadioContainer: {
@@ -710,12 +588,15 @@ const style = {
710
588
  },
711
589
  PartnerAlertContainer: {
712
590
  "&::part(base)": {
713
- backgroundColor: "var(--sl-color-sky-100)",
591
+ backgroundColor: "var(--sqm-informative-color-background)",
714
592
  borderTop: "none",
715
593
  padding: "0 16px",
594
+ border: "none",
595
+ color: "var(--sqm-informative-color-text)",
596
+ marginBottom: "16px",
716
597
  },
717
598
  "& sl-icon::part(base)": {
718
- color: "var(--sl-color-blue-500)",
599
+ color: "var(--sqm-informative-color-icon)",
719
600
  },
720
601
  },
721
602
  Checkbox: {
@@ -729,8 +610,8 @@ const style = {
729
610
  InputContainer: {
730
611
  padding: "16px",
731
612
  margin: "16px 0px 16px 0px",
732
- borderTop: "1px solid var(--sl-color-gray-300)",
733
- borderBottom: "1px solid var(--sl-color-gray-300)",
613
+ borderTop: "1px solid var(--sqm-border-color)",
614
+ borderBottom: "1px solid var(--sqm-border-color)",
734
615
  display: "flex",
735
616
  flexDirection: "column",
736
617
  width: "100%",
@@ -767,23 +648,6 @@ const style = {
767
648
  borderRadius: "50px",
768
649
  background: "var(--sl-color-gray-200)",
769
650
  },
770
- InfoAlert: {
771
- "&::part(base)": {
772
- backgroundColor: "transparent",
773
- borderTop: "none",
774
- border: "none",
775
- },
776
- "&::part(message)": {
777
- display: "flex",
778
- alignItems: "center",
779
- justifyContent: "flex-start",
780
- padding: "10px",
781
- height: "max-content",
782
- },
783
- "& sl-icon::part(base)": {
784
- color: "var(--sl-color-yellow-500)",
785
- },
786
- },
787
651
  InfoWarningIcon: {
788
652
  height: "26px",
789
653
  width: "26px",
@@ -806,20 +670,14 @@ const vanillaStyle = `
806
670
  font-weight: 600
807
671
  }
808
672
 
809
- p {
810
- line-height: 18px;
811
- color: var(--sl-color-gray-800);
812
- font-size: var(--sl-font-size-small);
813
- }
814
-
815
673
  /* this class is dynamically applied in controller */
816
674
  .error-input::part(base) {
817
- border: 1px solid var(--sl-color-danger-500);
818
- border-radius: var(--sl-input-border-radius-medium);
675
+ border: 1px solid var(--sqm-danger-color-border);
676
+ border-radius: var(--sqm-input-border-radius);
819
677
  }
820
678
 
821
679
  .error-input::part(help-text) {
822
- color: var(--sl-color-danger-500) !important;
680
+ color: var(--sqm-danger-color-text);
823
681
  }
824
682
 
825
683
  `;
@@ -862,7 +720,7 @@ const BankingInfoFormView = (props) => {
862
720
  !states.hideSteps && (index.h("p", null, global.intl.formatMessage({
863
721
  id: "formStep",
864
722
  defaultMessage: text.formStep,
865
- }, { step: states.step, count: FORM_STEPS }))),
723
+ }, { step: states.step, count: data.FORM_STEPS }))),
866
724
  index.h("h3", { style: { fontSize: "24px" } }, text.taxAndPayouts),
867
725
  index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription)),
868
726
  ((_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 },
@@ -917,7 +775,7 @@ const BankingInfoFormView = (props) => {
917
775
  : slots.paymentFixedDaySelectSlot))))),
918
776
  index.h("div", { class: classes.BtnContainer },
919
777
  index.h("sl-button", { type: "primary", disabled: states.disabled || states.saveDisabled, loading: states.saveLoading, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton),
920
- !states.hideBackButton && (index.h("sl-button", { exportparts: "base: secondarybutton-base", class: classes.SecondaryBtn, type: "text", onClick: callbacks.onBack }, text.backButton))))));
778
+ !states.hideBackButton && (index.h("sl-button", { exportparts: "base: secondarybutton-base", type: "text", onClick: callbacks.onBack }, text.backButton))))));
921
779
  };
922
780
 
923
781
  // Hardcoded in Impact backend
@@ -1001,12 +859,12 @@ function useBankingInfoForm(props) {
1001
859
  const host = index_module._();
1002
860
  const locale = index_module.L();
1003
861
  const user = index_module.J();
1004
- const [step, setStep] = index_module.Pn(TAX_CONTEXT_NAMESPACE);
1005
- const context = index_module.Fn(TAX_FORM_CONTEXT_NAMESPACE);
1006
- const countries = index_module.Fn(SORTED_COUNTRIES_NAMESPACE);
862
+ const [step, setStep] = index_module.Pn(data.TAX_CONTEXT_NAMESPACE);
863
+ const context = index_module.Fn(data.TAX_FORM_CONTEXT_NAMESPACE);
864
+ const countries = index_module.Fn(data.SORTED_COUNTRIES_NAMESPACE);
1007
865
  const formRef = stencilHooks_module.useRef(null);
1008
- const { data: paymentOptionsData, loading: paymentOptionsLoading, errors: paymentOptionsError, } = index_module.$n(FINANCE_NETWORK_SETTINGS_NAMESPACE);
1009
- const { data: userData, refetch, errors: userError, } = index_module.$n(USER_QUERY_NAMESPACE);
866
+ const { data: paymentOptionsData, loading: paymentOptionsLoading, errors: paymentOptionsError, } = index_module.$n(data.FINANCE_NETWORK_SETTINGS_NAMESPACE);
867
+ const { data: userData, refetch, errors: userError, } = index_module.$n(data.USER_QUERY_NAMESPACE);
1010
868
  const [saveWithdrawalSettings] = index_module.$e(SAVE_WITHDRAWAL_SETTINGS);
1011
869
  const [updateWithdrawalSettings] = index_module.$e(UPDATE_WITHDRAWAL_SETTINGS);
1012
870
  const [showVerification, setShowVerification] = stencilHooks_module.useState(false);
@@ -1675,7 +1533,7 @@ function useDemoBankingInfoForm(props) {
1675
1533
  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;
1676
1534
  const defaultCurrency = (_h = (_g = props.demoData) === null || _g === void 0 ? void 0 : _g.states) === null || _h === void 0 ? void 0 : _h.currency;
1677
1535
  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;
1678
- const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
1536
+ const setStep = index_module.En(data.TAX_CONTEXT_NAMESPACE);
1679
1537
  const [paymentMethodChecked, setPaymentMethodChecked] = stencilHooks_module.useState(undefined);
1680
1538
  const [paymentScheduleChecked, setPaymentScheduleChecked] = stencilHooks_module.useState(undefined);
1681
1539
  const [currency, setCurrency] = stencilHooks_module.useState(defaultCurrency);
@@ -1768,331 +1626,6 @@ function useDemoBankingInfoForm(props) {
1768
1626
  }, props.demoData || {}, { arrayMerge: (_, a) => a });
1769
1627
  }
1770
1628
 
1771
- const style$1 = {
1772
- Wrapper: {
1773
- display: "flex",
1774
- flexDirection: "column",
1775
- gap: "var(--sl-spacing-medium)",
1776
- maxWidth: "550px",
1777
- },
1778
- HeaderContainer: {
1779
- display: "flex",
1780
- flexDirection: "column",
1781
- },
1782
- InputsContainer: {
1783
- display: "flex",
1784
- gap: "var(--sl-spacing-medium)",
1785
- position: "relative",
1786
- flexDirection: "column",
1787
- },
1788
- CodeInputContainer: {
1789
- display: "flex",
1790
- gap: "var(--sl-spacing-medium)",
1791
- },
1792
- CodeInput: {
1793
- maxWidth: "40px",
1794
- "&::part(input)": {
1795
- margin: "0",
1796
- padding: "0 var(--sl-input-spacing-small)",
1797
- fontSize: "var(--sl-font-size-large)",
1798
- },
1799
- },
1800
- CodeInputError: {
1801
- ...mixins.ErrorStyles,
1802
- maxWidth: "40px",
1803
- "&::part(input)": {
1804
- margin: "0",
1805
- padding: "0 var(--sl-input-spacing-small)",
1806
- fontSize: "var(--sl-font-size-large)",
1807
- },
1808
- },
1809
- ErrorText: {
1810
- color: "var(--sl-color-danger-500)",
1811
- fontSize: "var(--sl-font-size-small)",
1812
- margin: "0",
1813
- },
1814
- ContinueButton: {
1815
- width: "100%",
1816
- maxWidth: "100px",
1817
- },
1818
- FooterContainer: {
1819
- display: "flex",
1820
- flexDirection: "column",
1821
- },
1822
- SkeletonOne: {
1823
- width: "50%",
1824
- height: "16px",
1825
- },
1826
- SkeletonTwo: {
1827
- width: "30%",
1828
- height: "34px",
1829
- },
1830
- SkeletonThree: {
1831
- width: "15%",
1832
- height: "24px",
1833
- },
1834
- };
1835
- const vanillaStyle$1 = `
1836
- :host {
1837
- display: block;
1838
- }
1839
- :host([hidden]): {
1840
- display: none;
1841
- }
1842
-
1843
-
1844
- `;
1845
- const sheet$1 = JSS.createStyleSheet(style$1);
1846
- const styleString$1 = sheet$1.toString();
1847
- function WidgetCodeVerificationView(props) {
1848
- const { states, refs, callbacks, text } = props;
1849
- const resendCodeText = global.intl.formatMessage({
1850
- id: "resendCodeText",
1851
- defaultMessage: text.resendCodeText,
1852
- }, {
1853
- resendCodeLink: (index.h("a", { href: "", style: { textDecoration: "none" }, onClick: (e) => {
1854
- e.preventDefault();
1855
- callbacks.resendEmail();
1856
- } }, text.resendCodeLabel)),
1857
- });
1858
- const codeResentSuccessfully = global.intl.formatMessage({
1859
- id: "codeResentSuccessfully",
1860
- defaultMessage: text.codeResentSuccessfullyText,
1861
- }, {
1862
- email: states.email,
1863
- });
1864
- const inputClass = states.verifyFailed
1865
- ? sheet$1.classes.CodeInputError
1866
- : sheet$1.classes.CodeInput;
1867
- return (index.h("div", { part: "sqm-base" },
1868
- index.h("style", { type: "text/css" },
1869
- vanillaStyle$1,
1870
- styleString$1),
1871
- index.h("div", { class: sheet$1.classes.Wrapper },
1872
- index.h("div", { class: sheet$1.classes.HeaderContainer },
1873
- index.h(sqmTextSpanView.TextSpanView, { type: "p" }, global.intl.formatMessage({
1874
- id: `emailHeaderText`,
1875
- defaultMessage: states.verifyFailed
1876
- ? text.reverifyCodeHeaderText
1877
- : text.verifyCodeHeaderText,
1878
- }, { email: states.email }))),
1879
- states.emailResent && (index.h("sqm-form-message", { type: "success", exportparts: "successalert-icon" },
1880
- index.h("b", null, codeResentSuccessfully))),
1881
- index.h("div", { class: sheet$1.classes.InputsContainer },
1882
- index.h("div", { ref: refs.codeWrapperRef, class: sheet$1.classes.CodeInputContainer },
1883
- index.h("sl-input", { class: inputClass, name: "code" }),
1884
- index.h("sl-input", { class: inputClass, name: "code" }),
1885
- index.h("sl-input", { class: inputClass, name: "code" }),
1886
- index.h("sl-input", { class: inputClass, name: "code" }),
1887
- index.h("sl-input", { class: inputClass, name: "code" }),
1888
- index.h("sl-input", { class: inputClass, name: "code" })),
1889
- states.verifyFailed && (index.h("p", { class: sheet$1.classes.ErrorText }, text.invalidCodeText)),
1890
- 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)),
1891
- index.h("div", { class: sheet$1.classes.FooterContainer },
1892
- index.h(sqmTextSpanView.TextSpanView, { type: "p" }, resendCodeText)))));
1893
- }
1894
-
1895
- const VerifyEmailWithCodeMutation = index_module.dist.gql `
1896
- mutation submitImpactPublisherEmail2FACode(
1897
- $user: UserIdInput!
1898
- $code: String!
1899
- ) {
1900
- submitImpactPublisherEmail2FACode(user: $user, code: $code) {
1901
- verifiedEmail
1902
- accessKey
1903
- }
1904
- }
1905
- `;
1906
- function useWidgetCodeVerification(props) {
1907
- const host = stencilHooks_module.l();
1908
- const [_, setShowCode] = index_module.Pn(keys.SHOW_CODE_NAMESPACE);
1909
- const email = index_module.Fn(keys.VERIFICATION_EMAIL_NAMESPACE);
1910
- const [emailSent, setEmailSent] = stencilHooks_module.useState(false);
1911
- const [emailResent, setEmailResent] = stencilHooks_module.useState(false);
1912
- const [codeRef, setCodeRef] = stencilHooks_module.useState(null);
1913
- const [validationError, setValidationError] = stencilHooks_module.useState(false);
1914
- const [emailError, setEmailError] = stencilHooks_module.useState(false);
1915
- const { initialized, verificationEmail, send: [sendEmail, { loading: sendLoading, errors: sendErrors }], verify: [verifyEmail, { loading: verifyLoading, errors: verifyErrors }], } = useVerificationEmail.useVerificationEmail();
1916
- stencilHooks_module.useEffect(() => {
1917
- if (!codeRef)
1918
- return;
1919
- const slInputs = codeRef.querySelectorAll("sl-input");
1920
- const codeElements = Array.from(slInputs).map((node) => node.shadowRoot.querySelector(`input[name="code"]`));
1921
- codeElements.forEach((element, idx) => {
1922
- element.addEventListener("focus", (e) => {
1923
- e.target.select();
1924
- });
1925
- element.addEventListener("keydown", (e) => {
1926
- if (e.key === "Backspace" && e.target.value === "") {
1927
- codeElements[Math.max(0, idx - 1)].focus();
1928
- }
1929
- });
1930
- element.addEventListener("input", (e) => {
1931
- const input = e.data;
1932
- if (!input)
1933
- return;
1934
- if (idx === codeElements.length - 1) {
1935
- e.target.value = input.slice(0, 1);
1936
- return;
1937
- }
1938
- if (input.length > 1) {
1939
- const rest = input.slice(1);
1940
- e.target.value = input.slice(0, 1);
1941
- codeElements[idx + 1].dispatchEvent(new InputEvent("input", {
1942
- inputType: "insertFromPaste",
1943
- data: rest,
1944
- }));
1945
- }
1946
- codeElements[idx + 1].focus();
1947
- });
1948
- });
1949
- }, [codeRef]);
1950
- const reset = () => {
1951
- setShowCode(false);
1952
- setValidationError(false);
1953
- };
1954
- const resendEmail = async () => {
1955
- // UI should only allow this to be called if initialized, but checking just in case
1956
- if (!initialized)
1957
- return;
1958
- const result = await sendEmail();
1959
- if (!result) {
1960
- setEmailError(true);
1961
- return;
1962
- }
1963
- if (emailSent)
1964
- setEmailResent(true);
1965
- setEmailSent(true);
1966
- };
1967
- const submitCode = async () => {
1968
- const slInputs = codeRef.querySelectorAll("sl-input");
1969
- const codeElements = Array.from(slInputs).map((node) => node.shadowRoot.querySelector(`input[name="code"]`));
1970
- if (codeElements.find((el) => !el.value)) {
1971
- setValidationError(true);
1972
- return;
1973
- }
1974
- let code = "";
1975
- codeElements.forEach((element) => {
1976
- code = `${code}${element.value}`;
1977
- });
1978
- // UI should only allow this to be called if initialized, but checking just in case
1979
- if (!initialized)
1980
- return;
1981
- setValidationError(false);
1982
- const res = await verifyEmail(code);
1983
- if (res === null || res === void 0 ? void 0 : res.success) {
1984
- props.onVerification(res.accessKey);
1985
- reset();
1986
- }
1987
- else {
1988
- setValidationError(true);
1989
- }
1990
- };
1991
- stencilHooks_module.useEffect(() => {
1992
- // Wait for mutations to be determined from user lookup
1993
- if (!initialized)
1994
- return;
1995
- // email should already exist if user has completed email-verification
1996
- if (!email)
1997
- resendEmail();
1998
- else
1999
- setEmailSent(true);
2000
- }, [initialized]);
2001
- return {
2002
- refs: {
2003
- codeWrapperRef: setCodeRef,
2004
- },
2005
- states: {
2006
- email: verificationEmail,
2007
- emailResent,
2008
- resendError: sendErrors || verifyErrors,
2009
- initialiseLoading: !initialized,
2010
- loading: sendLoading || verifyLoading,
2011
- verifyFailed: !!validationError,
2012
- },
2013
- callbacks: {
2014
- resendEmail,
2015
- submitCode,
2016
- },
2017
- text: props.getTextProps(),
2018
- };
2019
- }
2020
-
2021
- const WidgetCodeVerification = class {
2022
- constructor(hostRef) {
2023
- index.registerInstance(this, hostRef);
2024
- /**
2025
- * @uiName Verify code widget header text
2026
- */
2027
- this.verifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
2028
- /**
2029
- * @uiName Reverify code widget header text
2030
- */
2031
- this.reverifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
2032
- /**
2033
- * Text displayed under verify button
2034
- * @uiName Resend code text
2035
- */
2036
- this.resendCodeText = "Didn't receive your code? {resendCodeLink}";
2037
- /**
2038
- * The link that appears in the resend code link
2039
- * @uiName Resend code label
2040
- */
2041
- this.resendCodeLabel = "Resend code";
2042
- /**
2043
- * Link text displayed under verify button
2044
- * @uiName Resend code text
2045
- */
2046
- this.codeResentSuccessfullyText = "Another code has been sent to {email}";
2047
- /**
2048
- * Error text displayed under verification input
2049
- * @uiName Invalid code text
2050
- */
2051
- this.invalidCodeText = "Please check your code and try again. If you’re still having trouble, try resending your code.";
2052
- /**
2053
- * @uiName Verify code button text
2054
- */
2055
- this.verifyText = "Verify";
2056
- /**
2057
- * Displayed when the email verification fails due to a network error. The participant can try refreshing the page.
2058
- * @uiName Network error message
2059
- */
2060
- this.networkErrorMessage = "An error occurred while verifying your email. Please refresh the page and try again.";
2061
- stencilHooks_module.h$1(this);
2062
- }
2063
- disconnectedCallback() { }
2064
- getTextProps() {
2065
- return utils.getProps(this);
2066
- }
2067
- render() {
2068
- const props = index_module.isDemo()
2069
- ? useDemoWidgetCodeVerification(this)
2070
- : useWidgetCodeVerification(this);
2071
- return index.h(WidgetCodeVerificationView, Object.assign({}, props));
2072
- }
2073
- };
2074
- function useDemoWidgetCodeVerification(props) {
2075
- const [emailResent, setEmailResent] = stencilHooks_module.useState(false);
2076
- const setVerifiedContext = index_module.En(keys.VERIFICATION_PARENT_NAMESPACE);
2077
- return cjs.cjs({
2078
- states: {
2079
- loading: false,
2080
- email: "test@example.com",
2081
- emailResent,
2082
- resendError: false,
2083
- verifyFailed: false,
2084
- },
2085
- refs: {
2086
- codeWrapperRef: () => { },
2087
- },
2088
- callbacks: {
2089
- resendEmail: async () => setEmailResent(true),
2090
- submitCode: async () => setVerifiedContext(true),
2091
- },
2092
- text: props.getTextProps(),
2093
- }, props.demoData || {}, { arrayMerge: (_, a) => a });
2094
- }
2095
-
2096
1629
  const GET_TAX_DOCUMENT = index_module.dist.gql `
2097
1630
  mutation createImpactPublisherTaxDocument(
2098
1631
  $vars: CreateImpactPublisherTaxDocumentInput!
@@ -2121,10 +1654,10 @@ const DOCUSIGN_EXPIRED_STATES = ["ttl_expired", "session_timeout"];
2121
1654
  function useDocusignForm(props) {
2122
1655
  var _a, _b, _c;
2123
1656
  const user = index_module.J();
2124
- const context = index_module.Fn(TAX_FORM_CONTEXT_NAMESPACE);
2125
- const [step, setStep] = index_module.Pn(TAX_CONTEXT_NAMESPACE);
2126
- const { data, loading: userLoading, refetch, } = index_module.$n(USER_QUERY_NAMESPACE);
2127
- 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;
1657
+ const context = index_module.Fn(data.TAX_FORM_CONTEXT_NAMESPACE);
1658
+ const [step, setStep] = index_module.Pn(data.TAX_CONTEXT_NAMESPACE);
1659
+ const { data: data$1, loading: userLoading, refetch, } = index_module.$n(data.USER_QUERY_NAMESPACE);
1660
+ 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;
2128
1661
  const [createTaxDocument, { loading: documentLoading, data: document, errors: documentErrors },] = index_module.$e(GET_TAX_DOCUMENT);
2129
1662
  const [completeTaxDocument, { loading: completeDocumentLoading, data: completeData, errors: completeErrors, },] = index_module.$e(COMPLETE_TAX_DOCUMENT);
2130
1663
  const [docusignStatus, setDocusignStatus] = stencilHooks_module.useState(undefined);
@@ -2133,7 +1666,7 @@ function useDocusignForm(props) {
2133
1666
  const [loading, setLoading] = stencilHooks_module.useState(false);
2134
1667
  const [showExitButton, setShowExitButton] = stencilHooks_module.useState(false);
2135
1668
  // Only look at current document if it's valid (same as required type)
2136
- const existingDocumentType = sqmInvoiceTableView.validTaxDocument(publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType) && (publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument)
1669
+ const existingDocumentType = utils$1.validTaxDocument(publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType) && (publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument)
2137
1670
  ? publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType : undefined;
2138
1671
  const actualDocumentType = existingDocumentType ||
2139
1672
  getDocumentType(participantType) || (publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType);
@@ -2225,7 +1758,7 @@ function useDocusignForm(props) {
2225
1758
  },
2226
1759
  docusignStatus,
2227
1760
  documentType: actualDocumentType,
2228
- documentTypeString: sqmInvoiceTableView.taxTypeToName(actualDocumentType),
1761
+ documentTypeString: utils$1.taxTypeToName(actualDocumentType),
2229
1762
  showExitButton,
2230
1763
  },
2231
1764
  data: {
@@ -2250,7 +1783,7 @@ function getDocumentType(p) {
2250
1783
  return undefined;
2251
1784
  }
2252
1785
 
2253
- const style$2 = {
1786
+ const style$1 = {
2254
1787
  DocusignStatusContainer: {
2255
1788
  width: "100%",
2256
1789
  minHeight: "600px",
@@ -2277,47 +1810,47 @@ const style$2 = {
2277
1810
  },
2278
1811
  },
2279
1812
  };
2280
- const sheet$2 = JSS.createStyleSheet(style$2);
2281
- const styleString$2 = sheet$2.toString();
1813
+ const sheet$1 = JSS.createStyleSheet(style$1);
1814
+ const styleString$1 = sheet$1.toString();
2282
1815
  const DocusignExpiredView = (props) => {
2283
- const { classes } = sheet$2;
1816
+ const { classes } = sheet$1;
2284
1817
  const { text } = props;
2285
1818
  return (index.h("div", null,
2286
- index.h("style", { type: "text/css" }, styleString$2),
1819
+ index.h("style", { type: "text/css" }, styleString$1),
2287
1820
  index.h("div", { class: classes.DocusignStatusContainer },
2288
1821
  index.h("sl-icon", { style: {
2289
1822
  width: "50px",
2290
1823
  height: "50px",
2291
- color: "var(--sl-color-neutral-500)",
1824
+ color: "var(--sqm-text)",
2292
1825
  }, name: "clock" }),
2293
1826
  index.h("div", { class: classes.MessageContainer },
2294
1827
  index.h("p", { style: { margin: "0" } }, text.docusignExpired)),
2295
1828
  index.h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
2296
1829
  };
2297
1830
  const DocusignErrorView = (props) => {
2298
- const { classes } = sheet$2;
1831
+ const { classes } = sheet$1;
2299
1832
  const { text } = props;
2300
1833
  return (index.h("div", null,
2301
- index.h("style", { type: "text/css" }, styleString$2),
1834
+ index.h("style", { type: "text/css" }, styleString$1),
2302
1835
  index.h("div", { class: classes.DocusignStatusContainer },
2303
1836
  index.h("sl-icon", { style: {
2304
1837
  width: "50px",
2305
1838
  height: "50px",
2306
- color: "var(--sl-color-gray-500)",
1839
+ color: "var(--sqm-text)",
2307
1840
  }, name: "exclamation-octagon" }),
2308
1841
  index.h("div", { class: classes.MessageContainer },
2309
1842
  index.h("p", { style: { margin: "0" } }, text.docusignError)),
2310
1843
  index.h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
2311
1844
  };
2312
1845
  const DocusignLoadingView = () => {
2313
- const { classes } = sheet$2;
1846
+ const { classes } = sheet$1;
2314
1847
  return (index.h("div", null,
2315
- index.h("style", { type: "text/css" }, styleString$2),
1848
+ index.h("style", { type: "text/css" }, styleString$1),
2316
1849
  index.h("div", { class: classes.DocusignStatusContainer },
2317
1850
  index.h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } }))));
2318
1851
  };
2319
1852
  const DocusignIframe = ({ states, data, callbacks, text, }) => {
2320
- const { classes } = sheet$2;
1853
+ const { classes } = sheet$1;
2321
1854
  const [iFrameHeight, setiFrameHeight] = stencilHooks_module.useState("100%");
2322
1855
  const allowedDomains = [
2323
1856
  "referralsaasquatch.com",
@@ -2350,12 +1883,12 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
2350
1883
  return index.h(DocusignExpiredView, { text: text });
2351
1884
  // Wrap iFrame with container that shares the same height to push other elements down when absolute positioned
2352
1885
  return (index.h("div", { style: { height: iFrameHeight } },
2353
- index.h("style", { type: "text/css" }, styleString$2),
1886
+ index.h("style", { type: "text/css" }, styleString$1),
2354
1887
  index.h("div", { class: classes.IFrameContainer },
2355
1888
  index.h("iframe", { scrolling: "yes", frameBorder: "0", width: "100%", src: data.documentUrl, height: iFrameHeight }))));
2356
1889
  };
2357
1890
 
2358
- const style$3 = {
1891
+ const style$2 = {
2359
1892
  FormWrapper: {
2360
1893
  display: "flex",
2361
1894
  justifyContent: "flex-start",
@@ -2387,7 +1920,7 @@ const style$3 = {
2387
1920
  gap: "8px",
2388
1921
  },
2389
1922
  ErrorText: {
2390
- color: "var(--sl-color-danger-500)",
1923
+ color: "var(--sqm-danger-color-icon)",
2391
1924
  marginTop: "10px",
2392
1925
  },
2393
1926
  DescriptionText: {
@@ -2396,42 +1929,29 @@ const style$3 = {
2396
1929
  BoldText: {
2397
1930
  fontWeight: "bold",
2398
1931
  },
2399
- SecondaryBtn: {
2400
- "&::part(base)": {
2401
- color: "var(--sl-color-gray-800) !important",
2402
- },
2403
- "&::part(label)": {
2404
- padding: "0px",
2405
- margin: "0px",
2406
- },
2407
- },
2408
1932
  ErrorAlertContainer: {
2409
1933
  "&::part(base)": {
2410
- backgroundColor: "var(--sl-color-red-100)",
2411
- borderTop: "none",
1934
+ backgroundColor: "var(--sqm-danger-color-background)",
1935
+ border: "none",
2412
1936
  padding: "0 16px",
1937
+ color: "var(--sqm-danger-color-text)",
1938
+ marginBottom: "16px",
2413
1939
  },
2414
1940
  "& sl-icon::part(base)": {
2415
- color: "var(--sl-color-danger-500)",
1941
+ color: "var(--sqm-danger-color-icon)",
2416
1942
  },
2417
1943
  },
2418
1944
  InfoAlert: {
2419
1945
  "&::part(base)": {
2420
- backgroundColor: "transparent",
1946
+ backgroundColor: "var(--sqm-informative-color-background)",
2421
1947
  borderTop: "none",
2422
- padding: "0px",
2423
- marginBottom: "16px",
1948
+ padding: "0 16px",
2424
1949
  border: "none",
2425
- },
2426
- "&::part(message)": {
2427
- display: "flex",
2428
- alignItems: "center",
2429
- justifyContent: "flex-start",
2430
- padding: "10px",
2431
- height: "max-content",
1950
+ color: "var(--sqm-informative-color-text)",
1951
+ marginBottom: "16px",
2432
1952
  },
2433
1953
  "& sl-icon::part(base)": {
2434
- color: "var(--sl-color-sky-500)",
1954
+ color: "var(--sqm-informative-color-icon)",
2435
1955
  },
2436
1956
  },
2437
1957
  Container: {
@@ -2441,16 +1961,6 @@ const style$3 = {
2441
1961
  flexDirection: "column",
2442
1962
  gap: "16px",
2443
1963
  },
2444
- Link: {
2445
- color: "var(--sl-color-sky-500)",
2446
- textDecoration: "none",
2447
- "&:visited": {
2448
- color: "var(--sl-color-sky-500)",
2449
- },
2450
- "&:hover": {
2451
- textDecoration: "underline",
2452
- },
2453
- },
2454
1964
  CheckboxWrapper: {
2455
1965
  display: "flex",
2456
1966
  justifyContent: "flex-start",
@@ -2464,13 +1974,13 @@ const style$3 = {
2464
1974
  fontSize: "var(--sl-font-size-small)",
2465
1975
  },
2466
1976
  PageDescriptionText: {
2467
- color: "var(--sl-color-neutral-500)",
1977
+ color: "var(--sqm-text-subdued)",
2468
1978
  fontSize: "var(--sl-font-size-medium)",
2469
1979
  },
2470
1980
  };
2471
- const sheet$3 = JSS.createStyleSheet(style$3);
2472
- const styleString$3 = sheet$3.toString();
2473
- const vanillaStyle$2 = `
1981
+ const sheet$2 = JSS.createStyleSheet(style$2);
1982
+ const styleString$2 = sheet$2.toString();
1983
+ const vanillaStyle$1 = `
2474
1984
  :host{
2475
1985
  display: block;
2476
1986
  }
@@ -2480,14 +1990,10 @@ const vanillaStyle$2 = `
2480
1990
  box-sizing: border-box;
2481
1991
  }
2482
1992
 
2483
- p {
2484
- line-height: 18px;
2485
- color: var(--sl-color-gray-800);
2486
- font-size: var(--sl-font-size-small);
2487
- }
2488
-
2489
1993
  a {
2490
1994
  cursor: pointer;
1995
+ color: var(--sqm-text);
1996
+ text-decoration: underline;
2491
1997
  }
2492
1998
 
2493
1999
 
@@ -2495,21 +2001,21 @@ const vanillaStyle$2 = `
2495
2001
  const DocusignFormView = (props) => {
2496
2002
  var _a;
2497
2003
  const { states, states: { formState, documentTypeString }, callbacks, text, slots, } = props;
2498
- const { classes } = sheet$3;
2004
+ const { classes } = sheet$2;
2499
2005
  return (index.h("div", { class: classes.Container },
2500
2006
  index.h("style", { type: "text/css" },
2501
- styleString$3,
2502
- vanillaStyle$2),
2007
+ styleString$2,
2008
+ vanillaStyle$1),
2503
2009
  index.h("div", { class: classes.TextContainer },
2504
2010
  index.h("div", null,
2505
2011
  !states.hideSteps && (index.h("p", null, global.intl.formatMessage({
2506
2012
  id: "formStep",
2507
2013
  defaultMessage: text.formStep,
2508
- }, { step: states.step, count: FORM_STEPS }))),
2014
+ }, { step: states.step, count: data.FORM_STEPS }))),
2509
2015
  index.h("h3", null, text.taxForm),
2510
2016
  index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
2511
2017
  states.loadingError && (index.h("div", null,
2512
- index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$3.classes.ErrorAlertContainer },
2018
+ index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$2.classes.ErrorAlertContainer },
2513
2019
  index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
2514
2020
  index.h("strong", null, text.error.loadingErrorAlertHeader),
2515
2021
  index.h("br", null),
@@ -2519,7 +2025,7 @@ const DocusignFormView = (props) => {
2519
2025
  }, {
2520
2026
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
2521
2027
  })))),
2522
- ((_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 },
2028
+ ((_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 },
2523
2029
  index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
2524
2030
  index.h("strong", null, text.error.generalTitle),
2525
2031
  index.h("br", null),
@@ -2690,11 +2196,11 @@ const DocusignForm = class {
2690
2196
  get el() { return index.getElement(this); }
2691
2197
  };
2692
2198
  function useDocusignFormDemo(props) {
2693
- const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
2199
+ const setStep = index_module.En(data.TAX_CONTEXT_NAMESPACE);
2694
2200
  return cjs.cjs({
2695
2201
  text: props.getTextProps(),
2696
2202
  states: {
2697
- step: "4",
2203
+ step: "3",
2698
2204
  disabled: false,
2699
2205
  submitDisabled: false,
2700
2206
  loading: false,
@@ -2727,7 +2233,7 @@ const DemoDocusignIframe = ({ callbacks }) => {
2727
2233
  return (index.h("div", { style: {
2728
2234
  width: "100%",
2729
2235
  height: "600px",
2730
- background: "#fafafa",
2236
+ background: "inherit",
2731
2237
  display: "flex",
2732
2238
  justifyContent: "center",
2733
2239
  alignItems: "center",
@@ -2739,7 +2245,7 @@ const DemoDocusignIframe = ({ callbacks }) => {
2739
2245
  } }, 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")))));
2740
2246
  };
2741
2247
 
2742
- const style$4 = {
2248
+ const style$3 = {
2743
2249
  FormWrapper: {
2744
2250
  display: "flex",
2745
2251
  justifyContent: "flex-start",
@@ -2751,6 +2257,7 @@ const style$4 = {
2751
2257
  justifyContent: "flex-start",
2752
2258
  flexDirection: "column",
2753
2259
  gap: "var(--sl-spacing-medium)",
2260
+ marginBottom: "16px",
2754
2261
  "& sl-radio::part(base)": {
2755
2262
  alignItems: "start",
2756
2263
  },
@@ -2791,31 +2298,30 @@ const style$4 = {
2791
2298
  marginTop: "10px",
2792
2299
  },
2793
2300
  DescriptionText: {
2794
- color: "var(--sl-color-neutral-500)",
2795
- },
2796
- SecondaryBtn: {
2797
- "&::part(base)": {
2798
- color: "var(--sl-color-gray-800) !important",
2799
- },
2301
+ color: "var(--sqm-text-subdued)",
2800
2302
  },
2801
2303
  AlertContainer: {
2802
2304
  "&::part(base)": {
2803
- backgroundColor: "var(--sl-color-red-100)",
2804
- borderTop: "none",
2305
+ backgroundColor: "var(--sqm-danger-color-background)",
2306
+ border: "none",
2805
2307
  padding: "0 16px",
2308
+ marginBottom: "16px",
2806
2309
  },
2807
2310
  "& sl-icon::part(base)": {
2808
- color: "var(--sl-color-danger-500)",
2311
+ color: "var(--sqm-danger-color-icon)",
2809
2312
  },
2810
2313
  },
2811
2314
  PartnerAlertContainer: {
2812
2315
  "&::part(base)": {
2813
- backgroundColor: "var(--sl-color-sky-100)",
2316
+ backgroundColor: "var(--sqm-informative-color-background)",
2814
2317
  borderTop: "none",
2815
2318
  padding: "0 16px",
2319
+ border: "none",
2320
+ color: "var(--sqm-informative-color-text)",
2321
+ marginBottom: "16px",
2816
2322
  },
2817
2323
  "& sl-icon::part(base)": {
2818
- color: "var(--sl-color-blue-500)",
2324
+ color: "var(--sqm-informative-color-icon)",
2819
2325
  },
2820
2326
  },
2821
2327
  InfoAlert: {
@@ -2840,37 +2346,71 @@ const style$4 = {
2840
2346
  width: "26px",
2841
2347
  },
2842
2348
  PageDescriptionText: {
2843
- color: "var(--sl-color-neutral-500)",
2349
+ color: "var(--sqm-text-subdued)",
2844
2350
  fontSize: "var(--sl-font-size-medium)",
2845
2351
  marginBottom: "var(--sl-spacing-small)",
2846
2352
  },
2353
+ PrimaryButton: {
2354
+ "&::part(base)": {
2355
+ background: "var(--sqm-primary-button-background)",
2356
+ color: "var(--sqm-primary-button-color)",
2357
+ borderColor: "var(--sqm-primary-button-color-border)",
2358
+ borderRadius: "var(--sqm-primary-button-radius)",
2359
+ },
2360
+ "&::part(base):hover": {
2361
+ background: "var(--sqm-primary-button-background-hover)",
2362
+ },
2363
+ },
2364
+ TertiaryButton: {
2365
+ "&::part(base)": {
2366
+ background: "var(--sqm-tertiary-button-background)",
2367
+ color: "var(--sqm-tertiary-button-color)",
2368
+ borderColor: "var(--sqm-tertiary-button-color-border)",
2369
+ borderRadius: "var(--sqm-tertiary-button-radius)",
2370
+ width: "max-content",
2371
+ display: "flex",
2372
+ margin: "auto",
2373
+ },
2374
+ "&::part(base):hover": {
2375
+ color: "var(--sqm-text)",
2376
+ background: "var(--sqm-tertiary-button-background-hover)",
2377
+ },
2378
+ },
2847
2379
  };
2848
- const sheet$4 = JSS.createStyleSheet(style$4);
2849
- const styleString$4 = sheet$4.toString();
2850
- const vanillaStyle$3 = `
2380
+ const sheet$3 = JSS.createStyleSheet(style$3);
2381
+ const styleString$3 = sheet$3.toString();
2382
+ const vanillaStyle$2 = `
2851
2383
  :host{
2852
2384
  display: block;
2853
2385
  }
2386
+
2387
+ hr {
2388
+ border: 1px solid var(--sqm-border-color);
2389
+ }
2390
+
2391
+ a {
2392
+ color: inherit;
2393
+ text-decoration: underline;
2394
+ }
2395
+
2396
+ a:hover {
2397
+ cursor: pointer;
2398
+ }
2854
2399
  * {
2855
2400
  margin: 0;
2856
2401
  padding: 0;
2857
2402
  box-sizing: border-box;
2858
2403
  }
2859
2404
 
2860
- p {
2861
- line-height: 18px;
2862
- color: var(--sl-color-gray-800);
2863
- font-size: var(--sl-font-size-small);
2864
- }
2865
2405
  `;
2866
2406
  const IndirectTaxFormView = (props) => {
2867
2407
  var _a;
2868
2408
  const { states, states: { formState }, callbacks, text, refs, slots, } = props;
2869
- const { classes } = sheet$4;
2409
+ const { classes } = sheet$3;
2870
2410
  return (index.h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
2871
2411
  index.h("style", { type: "text/css" },
2872
- styleString$4,
2873
- vanillaStyle$3),
2412
+ styleString$3,
2413
+ vanillaStyle$2),
2874
2414
  index.h("div", { class: classes.TextContainer },
2875
2415
  index.h("div", null,
2876
2416
  !states.hideSteps && (index.h("p", null,
@@ -2878,12 +2418,12 @@ const IndirectTaxFormView = (props) => {
2878
2418
  global.intl.formatMessage({
2879
2419
  id: "formStep",
2880
2420
  defaultMessage: text.formStep,
2881
- }, { step: states.step, count: FORM_STEPS }))),
2421
+ }, { step: states.step, count: data.FORM_STEPS }))),
2882
2422
  index.h("h3", null, text.indirectTax),
2883
2423
  index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription),
2884
2424
  index.h("p", { class: classes.DescriptionText }, text.indirectTaxDescription)),
2885
2425
  states.loadingError && (index.h("div", null,
2886
- index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.AlertContainer },
2426
+ index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$3.classes.AlertContainer },
2887
2427
  index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
2888
2428
  index.h("strong", null, text.error.loadingErrorAlertHeader),
2889
2429
  index.h("br", null),
@@ -2893,7 +2433,7 @@ const IndirectTaxFormView = (props) => {
2893
2433
  }, {
2894
2434
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
2895
2435
  })))),
2896
- ((_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 },
2436
+ ((_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 },
2897
2437
  index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
2898
2438
  index.h("strong", null, text.error.generalTitle),
2899
2439
  index.h("br", null),
@@ -2903,7 +2443,7 @@ const IndirectTaxFormView = (props) => {
2903
2443
  }, {
2904
2444
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
2905
2445
  }))),
2906
- states.isPartner && (index.h("sl-alert", { type: "primary", open: true, class: sheet$4.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
2446
+ states.isPartner && (index.h("sl-alert", { type: "primary", open: true, class: sheet$3.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
2907
2447
  index.h("sl-icon", { slot: "icon", name: "info-circle" }),
2908
2448
  index.h("strong", null, text.isPartnerAlertHeader),
2909
2449
  index.h("br", null),
@@ -2927,8 +2467,8 @@ const IndirectTaxFormView = (props) => {
2927
2467
  text.otherRegion,
2928
2468
  index.h("p", { class: classes.DescriptionText }, text.otherRegionSubtext))),
2929
2469
  slots.registeredInDifferentCountryDetailsSlot)),
2930
- index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "primary", open: true, class: classes.InfoAlert },
2931
- index.h("sl-icon", { class: classes.InfoWarningIcon, slot: "icon", name: "exclamation-triangle" }),
2470
+ index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "primary", open: true, class: classes.PartnerAlertContainer },
2471
+ index.h("sl-icon", { slot: "icon", name: "exclamation-triangle" }),
2932
2472
  global.intl.formatMessage({
2933
2473
  id: "cannotChangeInfoAlert",
2934
2474
  defaultMessage: text.cannotChangeInfoAlert,
@@ -2936,8 +2476,8 @@ const IndirectTaxFormView = (props) => {
2936
2476
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
2937
2477
  })),
2938
2478
  index.h("div", { class: classes.BtnContainer },
2939
- index.h("sl-button", { type: "primary", disabled: states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton),
2940
- index.h("sl-button", { class: classes.SecondaryBtn, type: "text", disabled: states.disabled, onClick: callbacks.onBack, exportparts: "base: secondarybutton-base" }, text.backButton))))));
2479
+ index.h("sl-button", { class: classes.PrimaryButton, type: "primary", disabled: states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton),
2480
+ index.h("sl-button", { class: classes.TertiaryButton, type: "text", disabled: states.disabled, onClick: callbacks.onBack, exportparts: "base: tertiarybutton-base" }, text.backButton))))));
2941
2481
  };
2942
2482
 
2943
2483
  const CONNECT_PARTNER = index_module.dist.gql `
@@ -2981,14 +2521,14 @@ function useIndirectTaxForm(props) {
2981
2521
  const user = index_module.J();
2982
2522
  const locale = index_module.L();
2983
2523
  const formRef = stencilHooks_module.useRef(null);
2984
- const context = index_module.Fn(TAX_FORM_CONTEXT_NAMESPACE);
2985
- const [step, setStep] = index_module.Pn(TAX_CONTEXT_NAMESPACE);
2524
+ const context = index_module.Fn(data.TAX_FORM_CONTEXT_NAMESPACE);
2525
+ const [step, setStep] = index_module.Pn(data.TAX_CONTEXT_NAMESPACE);
2986
2526
  const [connectImpactPartner, { loading: connectLoading, errors: connectErrors },] = index_module.$e(CONNECT_PARTNER);
2987
- const userForm = index_module.Fn(USER_FORM_CONTEXT_NAMESPACE);
2988
- const { data: userData, refetch, errors: userError, } = index_module.$n(USER_QUERY_NAMESPACE);
2989
- const { data: _countriesRes, loading: countriesLoading } = index_module.$n(COUNTRIES_QUERY_NAMESPACE);
2527
+ const userForm = index_module.Fn(data.USER_FORM_CONTEXT_NAMESPACE);
2528
+ const { data: userData, refetch, errors: userError, } = index_module.$n(data.USER_QUERY_NAMESPACE);
2529
+ const { data: _countriesRes, loading: countriesLoading } = index_module.$n(data.COUNTRIES_QUERY_NAMESPACE);
2990
2530
  const intlLocale = (locale === null || locale === void 0 ? void 0 : locale.replace("_", "-")) || "en";
2991
- 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]);
2531
+ 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]);
2992
2532
  const [loading, setLoading] = stencilHooks_module.useState(false);
2993
2533
  const [formState, setFormState] = stencilHooks_module.useState({});
2994
2534
  const [errors, setErrors] = stencilHooks_module.useState({});
@@ -3103,7 +2643,7 @@ function useIndirectTaxForm(props) {
3103
2643
  await refetch();
3104
2644
  const resultPublisher = (_e = (_d = (_c = result
3105
2645
  .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;
3106
- const hasValidCurrentDocument = sqmInvoiceTableView.validTaxDocument(resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) && (resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.currentTaxDocument);
2646
+ const hasValidCurrentDocument = utils$1.validTaxDocument(resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) && (resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.currentTaxDocument);
3107
2647
  // Fire form change event
3108
2648
  window.dispatchEvent(new Event(usePayoutStatus.TAX_FORM_UPDATED_EVENT_KEY));
3109
2649
  if ((resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) &&
@@ -3158,10 +2698,10 @@ function useIndirectTaxForm(props) {
3158
2698
  })),
3159
2699
  },
3160
2700
  data: {
3161
- esRegions: sqmInvoiceTableView.INDIRECT_TAX_SPAIN_REGIONS,
2701
+ esRegions: IndirectTaxDetailsView.INDIRECT_TAX_SPAIN_REGIONS,
3162
2702
  countries: filteredCountries,
3163
2703
  allCountries: _countries,
3164
- provinces: sqmInvoiceTableView.INDIRECT_TAX_PROVINCES,
2704
+ provinces: IndirectTaxDetailsView.INDIRECT_TAX_PROVINCES,
3165
2705
  },
3166
2706
  text: props.getTextProps(),
3167
2707
  refs: {
@@ -3363,7 +2903,7 @@ const IndirectTaxForm = class {
3363
2903
  const props = index_module.isDemo()
3364
2904
  ? useDemoIndirectTaxForm(this)
3365
2905
  : useIndirectTaxForm(this);
3366
- const registeredInDifferentCountryDetailsSlot = (index.h(sqmInvoiceTableView.OtherRegionSlotView, { states: {
2906
+ const registeredInDifferentCountryDetailsSlot = (index.h(IndirectTaxDetailsView.OtherRegionSlotView, { states: {
3367
2907
  hide: props.states.formState.checked !== "otherRegion",
3368
2908
  disabled: props.states.disabled || props.states.isPartner,
3369
2909
  formState: props.slotProps.formState,
@@ -3381,7 +2921,7 @@ const IndirectTaxForm = class {
3381
2921
  }
3382
2922
  };
3383
2923
  function useDemoIndirectTaxForm(props) {
3384
- const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
2924
+ const setStep = index_module.En(data.TAX_CONTEXT_NAMESPACE);
3385
2925
  const [option, setOption] = stencilHooks_module.useState(null);
3386
2926
  const [demoFormState, setDemoFormState] = stencilHooks_module.useState({});
3387
2927
  return cjs.cjs({
@@ -3422,7 +2962,7 @@ function useDemoIndirectTaxForm(props) {
3422
2962
  setCountrySearch: (c) => console.log(c),
3423
2963
  },
3424
2964
  data: {
3425
- esRegions: sqmInvoiceTableView.INDIRECT_TAX_SPAIN_REGIONS,
2965
+ esRegions: IndirectTaxDetailsView.INDIRECT_TAX_SPAIN_REGIONS,
3426
2966
  countries: [
3427
2967
  {
3428
2968
  countryCode: "CA",
@@ -3441,7 +2981,7 @@ function useDemoIndirectTaxForm(props) {
3441
2981
  displayName: "United States",
3442
2982
  },
3443
2983
  ],
3444
- provinces: sqmInvoiceTableView.INDIRECT_TAX_PROVINCES,
2984
+ provinces: IndirectTaxDetailsView.INDIRECT_TAX_PROVINCES,
3445
2985
  },
3446
2986
  text: props.getTextProps(),
3447
2987
  refs: {
@@ -3674,7 +3214,7 @@ const InvoiceTable = class {
3674
3214
  ? useInvoiceTableDemo(this, empty, loading)
3675
3215
  : useInvoiceTable(this, empty, loading);
3676
3216
  reRender.useRequestRerender([this.perPage]);
3677
- return (index.h(sqmInvoiceTableView.InvoiceTableView, { header: this.header, description: this.description }, index.h(GenericTableView.GenericTableView, { states: states, data: data, callbacks: callbacks, elements: elements })));
3217
+ return (index.h(IndirectTaxDetailsView.InvoiceTableView, { header: this.header, description: this.description }, index.h(GenericTableView.GenericTableView, { states: states, data: data, callbacks: callbacks, elements: elements })));
3678
3218
  }
3679
3219
  };
3680
3220
  function EmptySlot(props) {
@@ -3776,18 +3316,6 @@ function useInvoiceTableDemo(props, emptyElement, loadingElement) {
3776
3316
  return demoProps;
3777
3317
  }
3778
3318
 
3779
- const InvoiceTableDataCell = class {
3780
- constructor(hostRef) {
3781
- index.registerInstance(this, hostRef);
3782
- this.ignored = true;
3783
- stencilHooks_module.h$1(this);
3784
- }
3785
- disconnectedCallback() { }
3786
- render() {
3787
- return this.data;
3788
- }
3789
- };
3790
-
3791
3319
  const InvoiceTableDataColumn = class {
3792
3320
  constructor(hostRef) {
3793
3321
  index.registerInstance(this, hostRef);
@@ -3806,23 +3334,6 @@ const InvoiceTableDataColumn = class {
3806
3334
  }
3807
3335
  };
3808
3336
 
3809
- const RewardTableDateCell = class {
3810
- constructor(hostRef) {
3811
- index.registerInstance(this, hostRef);
3812
- this.ignored = true;
3813
- this.locale = "en";
3814
- stencilHooks_module.h$1(this);
3815
- }
3816
- disconnectedCallback() { }
3817
- render() {
3818
- var _a, _b;
3819
- const date = !this.date
3820
- ? "-"
3821
- : (_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);
3822
- return date;
3823
- }
3824
- };
3825
-
3826
3337
  const InvoiceTableDateColumn = class {
3827
3338
  constructor(hostRef) {
3828
3339
  index.registerInstance(this, hostRef);
@@ -3841,21 +3352,6 @@ const InvoiceTableDateColumn = class {
3841
3352
  }
3842
3353
  };
3843
3354
 
3844
- const InvoiceTableDownloadCell = class {
3845
- constructor(hostRef) {
3846
- index.registerInstance(this, hostRef);
3847
- this.ignored = true;
3848
- stencilHooks_module.h$1(this);
3849
- }
3850
- disconnectedCallback() { }
3851
- render() {
3852
- const vanillaStyle = `svg:hover, svg:hover * {
3853
- cursor: pointer;
3854
- }`;
3855
- 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" }))))));
3856
- }
3857
- };
3858
-
3859
3355
  const InvoiceTableGenericColumn = class {
3860
3356
  constructor(hostRef) {
3861
3357
  index.registerInstance(this, hostRef);
@@ -3878,17 +3374,17 @@ const PayPalIcon = () => (index.h("svg", { xmlns: "http://www.w3.org/2000/svg",
3878
3374
  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" }),
3879
3375
  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" })));
3880
3376
 
3881
- const style$5 = {
3377
+ const style$4 = {
3882
3378
  CardContainer: {
3883
3379
  display: "grid",
3884
3380
  gridTemplateColumns: "1fr",
3885
3381
  gridGap: "var(--sl-spacing-large)",
3886
- background: "var(--sl-color-neutral-0)",
3382
+ background: "inherit",
3887
3383
  boxShadow: "0px 2px 4px rgba(28, 28, 33, 0.12)",
3888
- borderRadius: "4px",
3384
+ borderRadius: "var(--sqm-border-radius-normal)",
3889
3385
  padding: "var(--sl-spacing-large)",
3890
3386
  minHeight: "150px",
3891
- border: "1px solid var(--sl-color-gray-200)",
3387
+ border: "1px solid var(--sqm-border-color)",
3892
3388
  maxWidth: "450px",
3893
3389
  },
3894
3390
  StatusContainer: {
@@ -3898,7 +3394,7 @@ const style$5 = {
3898
3394
  },
3899
3395
  MainCurrencyLabel: {
3900
3396
  fontWeight: "var(--sl-font-weight-normal)",
3901
- color: "var(--sl-color-gray-500)",
3397
+ color: "var(--sqm-text-subdued)",
3902
3398
  },
3903
3399
  MainCurrency: {
3904
3400
  margin: 0,
@@ -3907,12 +3403,12 @@ const style$5 = {
3907
3403
  },
3908
3404
  SubduedRegularText: {
3909
3405
  fontSize: "var(--sl-font-size-small)",
3910
- color: "var(--sl-color-gray-500)",
3406
+ color: "var(--sqm-text-subdued)",
3911
3407
  margin: 0,
3912
3408
  width: "auto",
3913
3409
  },
3914
3410
  PaypalEmail: {
3915
- borderRight: "1px solid var(--sl-color-gray-200)",
3411
+ borderRight: "1px solid var(--sqm-border-color)",
3916
3412
  paddingRight: "var(--sl-spacing-small)",
3917
3413
  "@media (max-width: 499px)": {
3918
3414
  borderRight: "none",
@@ -3920,7 +3416,7 @@ const style$5 = {
3920
3416
  },
3921
3417
  },
3922
3418
  PaypalDetailsContainer: {
3923
- color: "var(--sl-color-gray-500)",
3419
+ color: "var(--sqm-text-subdued)",
3924
3420
  display: "flex",
3925
3421
  gap: "var(--sl-spacing-small)",
3926
3422
  justifyContent: "flex-start",
@@ -3941,7 +3437,7 @@ const style$5 = {
3941
3437
  },
3942
3438
  },
3943
3439
  AccountDetailsContainer: {
3944
- color: "var(--sl-color-gray-500)",
3440
+ color: "var(--sqm-text-subdued)",
3945
3441
  display: "flex",
3946
3442
  gap: "var(--sl-spacing-small)",
3947
3443
  justifyContent: "flex-start",
@@ -3954,7 +3450,7 @@ const style$5 = {
3954
3450
  gap: "var(--sl-spacing-xx-small) var(--sl-spacing-small)",
3955
3451
  paddingTop: "var(--sq-spacing-xx-small)",
3956
3452
  "& > :not(:last-child)": {
3957
- borderRight: "1px solid var(--sl-color-gray-200)",
3453
+ borderRight: "1px solid var(--sqm-border-color)",
3958
3454
  },
3959
3455
  "& > :nth-child(3)": {
3960
3456
  border: "none",
@@ -3971,7 +3467,7 @@ const style$5 = {
3971
3467
  },
3972
3468
  W9Container: {
3973
3469
  paddingTop: "var(--sl-spacing-large)",
3974
- borderTop: "1px solid var(--sl-color-gray-200)",
3470
+ borderTop: "1px solid var(--sqm-border-color)",
3975
3471
  },
3976
3472
  SkeletonOne: {
3977
3473
  width: "25%",
@@ -3987,15 +3483,15 @@ const style$5 = {
3987
3483
  },
3988
3484
  Alert: {
3989
3485
  "&::part(base)": {
3990
- backgroundColor: "var(--sl-color-warning-100)",
3991
- border: "1px solid var(--sl-color-warning-200)",
3486
+ backgroundColor: "var(--sqm-warning-color-background)",
3487
+ border: "1px solid var(--sqm-warning-color-border)",
3992
3488
  padding: "0 16px",
3993
3489
  },
3994
3490
  "& sl-icon": {
3995
3491
  margin: 0,
3996
3492
  },
3997
3493
  "& sl-icon::part(base)": {
3998
- color: "var(--sl-color-warning-500)",
3494
+ color: "var(--sqm-warning-color-text)",
3999
3495
  margin: 0,
4000
3496
  },
4001
3497
  },
@@ -4008,1408 +3504,199 @@ const style$5 = {
4008
3504
  Container: {
4009
3505
  display: "flex",
4010
3506
  flexDirection: "column",
4011
- gap: "var(--sl-spacing-xx-large)",
4012
- },
4013
- };
4014
- function PayoutDetailsCardView(props) {
4015
- const sheet = JSS.createStyleSheet(style$5);
4016
- const styleString = sheet.toString();
4017
- const { classes } = sheet;
4018
- const { states, text } = props;
4019
- const renderLoadingSkeleton = () => {
4020
- return (index.h("div", { class: classes.CardContainer },
4021
- index.h("div", { class: classes.StatusContainer },
4022
- index.h("sl-skeleton", { class: classes.SkeletonOne }),
4023
- index.h("sl-skeleton", { class: classes.SkeletonTwo })),
4024
- index.h("sl-skeleton", { class: classes.SkeletonThree }),
4025
- index.h("sl-skeleton", { class: classes.SkeletonOne })));
4026
- };
4027
- const renderStatusBadge = (status, statusBadgeText) => {
4028
- const badgeType = status === "nextPayout" ? "success" : "primary";
4029
- const statusText = global.intl.formatMessage({
4030
- id: "badgeText",
4031
- defaultMessage: statusBadgeText,
4032
- }, {
4033
- badgeText: status,
4034
- });
4035
- return (index.h("sl-badge", { pill: true, type: badgeType }, statusText));
4036
- };
4037
- const thresholdText = global.intl.formatMessage({
4038
- id: "thresholdText",
4039
- defaultMessage: text.thresholdPayoutText,
4040
- }, {
4041
- thresholdBalance: states.thresholdBalance,
4042
- });
4043
- return (index.h("div", { class: classes.Container },
4044
- index.h("style", { type: "text/css" }, styleString),
4045
- states.loading ? (renderLoadingSkeleton()) : (index.h("div", { class: classes.CardContainer },
4046
- index.h("div", { class: classes.StatusContainer },
4047
- index.h("p", { class: classes.SubduedRegularText }, states.badgeStatus === "thresholdPayout"
4048
- ? states.thresholdBalance
4049
- ? thresholdText
4050
- : ""
4051
- : states.nextPayoutDate),
4052
- states.badgeStatus === "thresholdPayout"
4053
- ? null
4054
- : renderStatusBadge(states.badgeStatus, text.statusBadgeText)),
4055
- index.h("h1", { class: classes.MainCurrency }, states.balance),
4056
- states.payoutType === "PAYPAL" ? (index.h("div", { class: classes.PaypalDetailsContainer },
4057
- index.h("span", { class: classes.PaypalEmail }, states.paypalEmailAddress),
4058
- index.h(PayPalIcon, null))) : (index.h("div", { class: classes.AccountDetailsContainer },
4059
- index.h("span", null, states.cardNumberPreview
4060
- ? `${text.accountText} ${states.cardNumberPreview}`
4061
- : text.payoutMissingInformationText)))))));
4062
- }
4063
-
4064
- function usePayoutDetailsCard(props) {
4065
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
4066
- const { data, loading } = index_module.$n(USER_QUERY_NAMESPACE);
4067
- 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;
4068
- function getPayoutDetailedStatusText(paymentDay) {
4069
- var _a;
4070
- const currentDay = luxon.luxon.DateTime.now().day;
4071
- if (paymentDay === "1") {
4072
- return currentDay === 1
4073
- ? luxon.luxon.DateTime.now().toFormat("LLL dd, yyyy")
4074
- : luxon.luxon.DateTime.now()
4075
- .plus({ month: 1 })
4076
- .startOf("month")
4077
- .toFormat("LLL dd, yyyy");
4078
- }
4079
- else if (paymentDay === "15") {
4080
- return currentDay <= 15
4081
- ? luxon.luxon.DateTime.now()
4082
- .plus({ day: 15 - currentDay })
4083
- .toFormat("LLL dd, yyyy")
4084
- : luxon.luxon.DateTime.now()
4085
- .plus({ month: 1 })
4086
- .startOf("month")
4087
- .plus({ day: 14 })
4088
- .toFormat("LLL dd, yyyy");
4089
- }
4090
- else {
4091
- global.intl.formatMessage({
4092
- id: `nextPayoutBalance`,
4093
- defaultMessage: props.thresholdPayoutText,
4094
- }, {
4095
- thresholdBalance: (_a = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _a === void 0 ? void 0 : _a.paymentThreshold,
4096
- });
4097
- }
4098
- }
4099
- const paymentDay = getPayoutDetailedStatusText((_c = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _c === void 0 ? void 0 : _c.paymentDay);
4100
- const isPayoutToday = luxon.luxon.DateTime.now().toFormat("LLL dd, yyyy") === paymentDay;
4101
- return {
4102
- states: {
4103
- loading,
4104
- 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}`
4105
- : undefined,
4106
- balance: (_f = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _f === void 0 ? void 0 : _f.balance,
4107
- badgeStatus: ((_g = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _g === void 0 ? void 0 : _g.paymentSchedulingType) !== "FIXED_DAY"
4108
- ? "thresholdPayout"
4109
- : isPayoutToday
4110
- ? "payoutToday"
4111
- : "nextPayout",
4112
- payoutType: (_h = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _h === void 0 ? void 0 : _h.paymentMethod,
4113
- error: (_j = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _j === void 0 ? void 0 : _j.hold,
4114
- paypalEmailAddress: (_k = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _k === void 0 ? void 0 : _k.paypalEmailAddress,
4115
- cardNumberPreview: (_l = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _l === void 0 ? void 0 : _l.bankAccountNumber,
4116
- nextPayoutDate: paymentDay,
4117
- },
4118
- text: props.getTextProps(),
4119
- };
4120
- }
4121
-
4122
- const PayoutDetailsCard = class {
4123
- constructor(hostRef) {
4124
- index.registerInstance(this, hostRef);
4125
- /**
4126
- * Badge text indicating payout status
4127
- * @uiName Payout badge status text
4128
- */
4129
- this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
4130
- /**
4131
- * Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
4132
- * @uiName Payout schedule by threshold text
4133
- */
4134
- this.thresholdPayoutText = "Next payout occurs when balance is {thresholdBalance}";
4135
- /**
4136
- * Shown before the participant’s bank account information.
4137
- * @uiName Bank account field label
4138
- */
4139
- this.accountText = "Account";
4140
- /**
4141
- * Text displayed for existing publishers that do not have saved banking information.
4142
- * @uiName Payout missing information subtext
4143
- */
4144
- this.payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
4145
- stencilHooks_module.h$1(this);
4146
- }
4147
- disconnectedCallback() { }
4148
- getTextProps() {
4149
- const props = utils.getProps(this);
4150
- return {
4151
- ...props,
4152
- };
4153
- }
4154
- render() {
4155
- const props = index_module.isDemo()
4156
- ? useDemoPayoutDetailsCard(this)
4157
- : usePayoutDetailsCard(this);
4158
- return (index.h(index.Host, null, index.h(PayoutDetailsCardView, { text: props.text, states: props.states })));
4159
- }
4160
- };
4161
- function useDemoPayoutDetailsCard(props) {
4162
- return cjs.cjs({
4163
- states: {
4164
- loading: false,
4165
- error: false,
4166
- thresholdBalance: "$50",
4167
- mainCurrency: { currencyText: "USD", amountText: "100.00" },
4168
- badgeStatus: "nextPayout",
4169
- payoutType: "BANK_TRANSFER",
4170
- nextPayoutDate: "March 14, 2024",
4171
- paypalEmailAddress: "joesmith@example.com",
4172
- otherCurrencies: false,
4173
- hasW9Pending: false,
4174
- hasDatePending: true,
4175
- cardNumberPreview: "XX2381",
4176
- balance: "20.00 USD",
4177
- },
4178
- text: props.getTextProps(),
4179
- }, props.demoData || {}, { arrayMerge: (_, a) => a });
4180
- }
4181
-
4182
- const TableCell = class {
4183
- constructor(hostRef) {
4184
- index.registerInstance(this, hostRef);
4185
- /** @uiName Column span */
4186
- this.colspan = 1;
4187
- /** @uiName Padding */
4188
- this.padding = "15px 10px";
4189
- }
4190
- render() {
4191
- return (index.h(index.Host, { style: { display: "contents" } }, index.h("td", { colSpan: this.colspan, style: { padding: this.padding } }, index.h("slot", null))));
4192
- }
4193
- };
4194
-
4195
- const TableRow = class {
4196
- constructor(hostRef) {
4197
- index.registerInstance(this, hostRef);
4198
- /**
4199
- * @uiName Border
4200
- */
4201
- this.border = "1px solid #EAEAEA";
4202
- }
4203
- render() {
4204
- return (index.h(index.Host, { style: { display: "contents" } }, index.h("tr", { style: { border: this.border } }, index.h("slot", null))));
4205
- }
4206
- };
4207
-
4208
- function getCurrentStep(user) {
4209
- var _a, _b;
4210
- if (!((_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.connected) || !((_b = user.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher)) {
4211
- return "/1";
4212
- }
4213
- const { requiredTaxDocumentType, currentTaxDocument, withdrawalSettings, brandedSignup, } = user.impactConnection.publisher;
4214
- // If they do have a required document, look at current document
4215
- if (requiredTaxDocumentType && !currentTaxDocument)
4216
- return "/3";
4217
- if (!withdrawalSettings && brandedSignup)
4218
- return "/4";
4219
- return "/dashboard";
4220
- }
4221
- function useTaxAndCash() {
4222
- var _a, _b, _c, _d, _e;
4223
- const host = index_module._();
4224
- const user = index_module.J();
4225
- const locale = index_module.L();
4226
- // State for current step of form
4227
- const [step, setStep] = index_module.In({
4228
- namespace: TAX_CONTEXT_NAMESPACE,
4229
- initialValue: "/loading",
4230
- });
4231
- // State for when to hide steps, or override certain actions
4232
- const [context, _setContext] = index_module.In({
4233
- namespace: TAX_FORM_CONTEXT_NAMESPACE,
4234
- initialValue: {},
4235
- });
4236
- // State to carry user form information into step 2
4237
- const [userFormContext, _setUserFormContext] = index_module.In({
4238
- namespace: USER_FORM_CONTEXT_NAMESPACE,
4239
- initialValue: {
4240
- firstName: undefined,
4241
- lastName: undefined,
4242
- email: undefined,
4243
- countryCode: undefined,
4244
- currency: undefined,
4245
- },
4246
- });
4247
- const [_currenciesContext, setCurrenciesContext] = index_module.In({
4248
- namespace: CURRENCIES_NAMESPACE,
4249
- initialValue: [],
4250
- });
4251
- const [_countriesContext, _setCountriesContext] = index_module.In({
4252
- namespace: COUNTRIES_NAMESPACE,
4253
- initialValue: [],
4254
- });
4255
- const [_sortedCountriesContext, setSortedCountriesContext] = index_module.In({
4256
- namespace: SORTED_COUNTRIES_NAMESPACE,
4257
- initialValue: [],
4258
- });
4259
- const { data, errors } = index_module.Sn({
4260
- namespace: USER_QUERY_NAMESPACE,
4261
- query: GET_USER,
4262
- skip: !user,
4263
- options: {
4264
- batch: false,
4265
- },
4266
- });
4267
- 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) ||
4268
- userFormContext.countryCode;
4269
- index_module.Sn({
4270
- namespace: COUNTRIES_QUERY_NAMESPACE,
4271
- query: GET_COUNTRIES,
4272
- skip: !user,
4273
- });
4274
- const { data: financeNetworkData, refetch } = index_module.Sn({
4275
- namespace: FINANCE_NETWORK_SETTINGS_NAMESPACE,
4276
- query: GET_FINANCE_NETWORK_SETTINGS,
4277
- skip: !user,
4278
- variables: {
4279
- filter: getFinanceNetworkFilter(),
4280
- },
4281
- });
4282
- const { data: currenciesData } = index_module.Sn({
4283
- namespace: CURRENCIES_QUERY_NAMESPACE,
4284
- query: GET_CURRENCIES,
4285
- skip: !user,
4286
- variables: {
4287
- locale,
4288
- },
4289
- });
4290
- const supportedCurrencies = stencilHooks_module.useMemo(() => {
4291
- var _a, _b;
4292
- // Filter out any currencies not supported by finance network settings
4293
- 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) => {
4294
- var _a, _b;
4295
- 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);
4296
- // Currency not in supported list
4297
- if (!currency)
4298
- return agg;
4299
- // Currency already added to list
4300
- if (agg.find((currency) => currency.currencyCode === settings.currency))
4301
- return agg;
4302
- // Currency not supported by selected country
4303
- if (userFormContext.countryCode &&
4304
- settings.countryCode !== countryCode)
4305
- return agg;
4306
- return [...agg, currency];
4307
- }, []);
4308
- return allValidCurrencies;
4309
- }, [financeNetworkData, countryCode]);
4310
- const intlLocale = (locale === null || locale === void 0 ? void 0 : locale.replace("_", "-")) || "en";
4311
- const sortByName = (a, b) => a.displayName < b.displayName ? -1 : 1;
4312
- const paymentOptions = (_d = financeNetworkData === null || financeNetworkData === void 0 ? void 0 : financeNetworkData.impactFinanceNetworkSettings) === null || _d === void 0 ? void 0 : _d.data;
4313
- // filter out any duplicate countries and null countryCode
4314
- const availableCountries = stencilHooks_module.useMemo(() => new Set(paymentOptions === null || paymentOptions === void 0 ? void 0 : paymentOptions.map((option) => option.countryCode).filter((value) => value)), [paymentOptions]);
4315
- const _topCountries = ["CA", "GB", "US"];
4316
- const sortedCountries = stencilHooks_module.useMemo(() => Array.from(availableCountries)
4317
- .map((countryCode) => sqmInvoiceTableView.getCountryObj({ countryCode, locale: intlLocale }))
4318
- .sort(sortByName)
4319
- .reduce((prev, countryObj) => {
4320
- if (_topCountries.includes(countryObj.countryCode))
4321
- return [countryObj, ...prev];
4322
- return [...prev, countryObj];
4323
- }, []), [availableCountries]);
4324
- stencilHooks_module.useEffect(() => {
4325
- if (sortedCountries)
4326
- setSortedCountriesContext(sortedCountries);
4327
- }, [sortedCountries]);
4328
- stencilHooks_module.useEffect(() => {
4329
- if (supportedCurrencies)
4330
- setCurrenciesContext(supportedCurrencies);
4331
- }, [supportedCurrencies]);
4332
- stencilHooks_module.useEffect(() => {
4333
- if (errors) {
4334
- setStep("/error");
4335
- return;
4336
- }
4337
- if (!host || !user)
4338
- return;
4339
- if (data) {
4340
- const user = data === null || data === void 0 ? void 0 : data.user;
4341
- if (!user || step !== "/loading")
4342
- return;
4343
- const currentStep = getCurrentStep(user);
4344
- setStep(currentStep);
4345
- }
4346
- }, [host, user, (_e = data === null || data === void 0 ? void 0 : data.user) === null || _e === void 0 ? void 0 : _e.email, errors]);
4347
- function getFinanceNetworkFilter() {
4348
- var _a, _b, _c;
4349
- if (step === "/1")
4350
- return {};
4351
- if (step === "/4")
4352
- 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 };
4353
- if (countryCode)
4354
- return {
4355
- countryCode_eq: countryCode,
4356
- };
4357
- return {};
4358
- }
4359
- return {
4360
- step,
4361
- setStep,
4362
- context,
4363
- namespace: index_module.Mn(TAX_CONTEXT_NAMESPACE),
4364
- loading: step === "/loading",
4365
- };
4366
- }
4367
-
4368
- const TaxAndCashMonolith = class {
4369
- constructor(hostRef) {
4370
- index.registerInstance(this, hostRef);
4371
- /*---------------------------------------------------------------------------------
4372
- !IMPORTANT!: Make sure to also change the prop names in the respective component
4373
- -----------------------------------------------------------------------------------*/
4374
- /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4375
- STEP 1 PROPS:
4376
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
4377
- /**
4378
- * @uiName First name field label
4379
- * @uiGroup Step 1 Properties
4380
- */
4381
- this.step1_firstName = "First name";
4382
- /**
4383
- * @uiName Last name field label
4384
- * @uiGroup Step 1 Properties
4385
- */
4386
- this.step1_lastName = "Last name";
4387
- /**
4388
- * @uiName Email field label
4389
- * @uiGroup Step 1 Properties
4390
- */
4391
- this.step1_email = "Email";
4392
- /**
4393
- * @uiName Country field label
4394
- * @uiGroup Step 1 Properties
4395
- */
4396
- this.step1_country = "Country";
4397
- /**
4398
- * @uiName Phone number field label
4399
- * @uiGroup Step 1 Properties
4400
- */
4401
- this.step1_phoneNumber = "Phone number";
4402
- /**
4403
- * @uiName Address field label
4404
- * @uiGroup Step 1 Properties
4405
- */
4406
- this.step1_address = "Address";
4407
- /**
4408
- * @uiName City field label
4409
- * @uiGroup Step 1 Properties
4410
- */
4411
- this.step1_city = "City";
4412
- /**
4413
- * @uiName State field label for states
4414
- * @uiGroup Step 1 Properties
4415
- */
4416
- this.step1_state = "State";
4417
- /**
4418
- * @uiName State field label for provinces
4419
- * @uiGroup Step 1 Properties
4420
- */
4421
- this.step1_province = "Province";
4422
- /**
4423
- * @uiName State field label for regions
4424
- * @uiGroup Step 1 Properties
4425
- */
4426
- this.step1_region = "Region";
4427
- /**
4428
- * @uiName Postal code field label
4429
- * @uiGroup Step 1 Properties
4430
- */
4431
- this.step1_postalCode = "Postal code";
4432
- /**
4433
- * @uiName Currency field label
4434
- * @uiGroup Step 1 Properties
4435
- */
4436
- this.step1_currency = "Currency";
4437
- /**
4438
- * @uiName Currency field help text
4439
- * @uiGroup Step 1 Properties
4440
- */
4441
- this.step1_currencyHelpText = "Choose your preferred payout currency";
4442
- /**
4443
- * Edit the property called terms and conditions text to change what's displayed for {termsAndConditionsLink}.
4444
- * @uiName Terms and conditions checkbox
4445
- * @uiGroup Step 1 Properties
4446
- */
4447
- this.step1_allowBankingCollection = "I have read the {termsAndConditionsLink} and allow impact.com to collect my tax and banking information";
4448
- /**
4449
- * @uiName Step 1 title
4450
- * @uiGroup Step 1 Properties
4451
- */
4452
- this.step1_personalInformation = "Personal Information";
4453
- /**
4454
- * The link text that appears in the terms and conditions checkbox
4455
- * @uiName Terms and conditions text
4456
- * @uiGroup Step 1 Properties
4457
- * @uiWidget textArea
4458
- */
4459
- this.step1_termsAndConditionsLabel = "terms and conditions";
4460
- /**
4461
- * The link that appears in the terms and conditions checkbox
4462
- * @uiName Terms and conditions link
4463
- * @uiGroup Step 1 Properties
4464
- */
4465
- this.step1_termsAndConditionsLink = "https://terms.advocate.impact.com/PayoutTermsAndConditions.html";
4466
- /**
4467
- * Placeholder text displayed in the currency search dropdown
4468
- * @uiName Currency field placeholder text
4469
- * @uiGroup Step 1 Properties
4470
- */
4471
- this.step1_searchForCurrencyText = "Search for currency..";
4472
- /**
4473
-
4474
- /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4475
- STEP 2 PROPS:
4476
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
4477
- /**
4478
- * @uiName Step 2 title
4479
- * @uiGroup Step 2 Properties
4480
- */
4481
- this.step2_indirectTax = "Indirect Tax";
4482
- /**
4483
- * Displayed under the title of this step.
4484
- * @uiName Step 2 description
4485
- * @uiGroup Step 2 Properties
4486
- * @uiWidget textArea
4487
- */
4488
- 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.";
4489
- /**
4490
- * Displayed with indirect tax registration options.
4491
- * @uiName Indirect tax details section title
4492
- * @uiGroup Step 2 Properties
4493
- */
4494
- this.step2_indirectTaxDetails = "Indirect tax details";
4495
- /**
4496
- * @uiName Registered for indirect tax option
4497
- * @uiGroup Step 2 Properties
4498
- * @uiWidget textArea
4499
- *
4500
- */
4501
- this.step2_otherRegion = "Registered for indirect tax";
4502
- /**
4503
- * Selecting this option will display fields to enter indirect tax details.
4504
- * @uiName Registered for indirect tax option description
4505
- * @uiGroup Step 2 Properties
4506
- */
4507
- this.step2_otherRegionSubtext = "If you’ve registered with your tax authority, add your information to stay tax compliant.";
4508
- /**
4509
- * @uiName Not registered for indirect tax option
4510
- * @uiGroup Step 2 Properties
4511
- * @uiWidget textArea
4512
- */
4513
- this.step2_notRegistered = "Not registered for indirect tax";
4514
- /**
4515
- * Participants based in the US are considered not registered.
4516
- * @uiName Not registered for indirect tax option description
4517
- * @uiGroup Step 2 Properties
4518
- */
4519
- this.step2_notRegisteredSubtext = "If you’ve never set up indirect tax with your tax authority, then you’re likely not considered registered.";
4520
- /**
4521
- * @uiName Region of indirect tax field label
4522
- * @uiGroup Step 2 Properties
4523
- */
4524
- this.step2_selectedRegion = "Country / region of indirect tax";
4525
- /**
4526
- * @uiName Indirect tax number field label
4527
- * @uiGroup Step 2 Properties
4528
- */
4529
- this.step2_indirectTaxNumber = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}}";
4530
- /**
4531
- * @uiName Province field label
4532
- * @uiGroup Step 2 Properties
4533
- */
4534
- this.step2_province = "Province";
4535
- /**
4536
- * @uiName Missing indirect tax number error message
4537
- * @uiGroup Step 2 Properties
4538
- */
4539
- 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";
4540
- /**
4541
- * Displayed to participants registered for QST.
4542
- * @uiName QST number field label
4543
- * @uiGroup Step 2 Properties
4544
- */
4545
- this.step2_qstNumber = "QST number";
4546
- /**
4547
- * Displayed to participants registered for indirect tax in Quebec, Canada.
4548
- * @uiName QST tax checkbox
4549
- * @uiGroup Step 2 Properties
4550
- */
4551
- this.step2_isRegisteredQST = "I am registered for QST Tax";
4552
- /**
4553
- * Displayed to participants registered for indirect tax in Spain.
4554
- * @uiName Spain income tax checkbox
4555
- * @uiGroup Step 2 Properties
4556
- * @uiWidget textArea
4557
- */
4558
- 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.";
4559
- /**
4560
- * Displayed to participants registered in Spain.
4561
- * @uiName Sub-region of indirect tax field label
4562
- * @uiGroup Step 2 Properties
4563
- */
4564
- this.step2_subRegion = "Sub-region";
4565
- /**
4566
- * @uiName Income tax field label
4567
- * @uiGroup Step 2 Properties
4568
- */
4569
- this.step2_subRegionTaxNumberLabel = "Income Tax Number";
4570
- /**
4571
- * Communicate that after this step, only Support can change personal and indirect tax information.
4572
- * @uiName Submission confirmation alert
4573
- * @uiGroup Step 2 Properties
4574
- * @uiWidget textArea
4575
- */
4576
- 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.";
4577
- /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4578
- STEP 3 PROPS:
4579
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
4580
- /**
4581
- * @uiName Step 3 title
4582
- * @uiGroup Step 3 Properties
4583
- */
4584
- this.step3_taxForm = "Tax form";
4585
- /**
4586
- * Display the type of tax form that the participant must submit.
4587
- * @uiName Tax form name
4588
- * @uiGroup Step 3 Properties
4589
- */
4590
- this.step3_taxFormLabel = "{documentType} Tax Form";
4591
- /**
4592
- * @uiName Participant type field label
4593
- * @uiGroup Step 3 Properties
4594
- */
4595
- this.step3_participantType = "Participant type";
4596
- /**
4597
- * An option for the participant type field. Used to determine which W-8 form is required.
4598
- * @uiName Business representative participant type label
4599
- * @uiGroup Step 3 Properties
4600
- */
4601
- this.step3_businessEntity = "I represent a business";
4602
- /**
4603
- * An option for the participant type field. Used to determine which W-8 form is required.
4604
- * @uiName Individual participant type label
4605
- * @uiGroup Step 3 Properties
4606
- */
4607
- this.step3_individualParticipant = "I am an individual participant";
4608
- /**
4609
- * Displayed at the top of the page to participants based in the US.
4610
- * @uiName W-9 tax form description
4611
- * @uiGroup Step 3 Properties
4612
- * @uiWidget textArea
4613
- */
4614
- this.step3_taxFormDescription = "Participants based in the US need to submit a {documentType} form.";
4615
- /**
4616
- * Displayed at the top of the page to individuals joining a US program who reside outside the country.
4617
- * @uiName W-8 BEN tax form description
4618
- * @uiGroup Step 3 Properties
4619
- * @uiWidget textArea
4620
- */
4621
- this.step3_taxFormDescriptionIndividualParticipant = "Participants residing outside of the US, joining the referral program of a US-based company, need to submit a {documentType} form.";
4622
- /**
4623
- * Displayed at the top of the page to participants representing a business.
4624
- * @uiName W-8 BEN-E tax form description
4625
- * @uiGroup Step 3 Properties
4626
- * @uiWidget textArea
4627
- */
4628
- this.step3_taxFormDescriptionBusinessEntity = "Participants residing outside of the US who represent a business entity need to submit a {documentType} form.";
4629
- /**
4630
- * This appears inside the Docusign frame.
4631
- * @uiName Docusign session expired message
4632
- * @uiGroup Step 3 Properties
4633
- * @uiWidget textArea
4634
- */
4635
- 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.";
4636
- /**
4637
- * Remind participants their session will time out after 20 minutes of inactivity.
4638
- * @uiName Docusign timed session message
4639
- * @uiGroup Step 3 Properties
4640
- * @uiWidget textArea
4641
- */
4642
- this.step3_docusignSessionWarning = "For your security, we automatically end your session when you have not interacted with the form after 20 minutes.";
4643
- /**
4644
- * This appears inside the Docusign frame.
4645
- * @uiName Docusign form error message
4646
- * @uiGroup Step 3 Properties
4647
- * @uiWidget textArea
4648
- */
4649
- this.step3_docusignError = "There was a problem displaying this form. Please refresh the page. If this problem continues, contact our {supportLink}.";
4650
- /**
4651
- * @uiName Refresh page button label
4652
- * @uiGroup Step 3 Properties
4653
- */
4654
- this.step3_refreshButton = "Refresh Page";
4655
- /**
4656
- * @uiName Exit button text
4657
- * @uiGroup Step 3 Properties
4658
- */
4659
- this.step3_exitButton = "Exit";
4660
- /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4661
- STEP 4 PROPS:
4662
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
4663
- /**
4664
- * @uiName Step 4 title
4665
- * @uiGroup Step 4 Properties
4666
- */
4667
- this.step4_taxAndPayouts = "Payouts";
4668
- /**
4669
- * @uiName Direct to bank payout option
4670
- * @uiGroup Step 4 Properties
4671
- */
4672
- this.step4_directlyToBankAccount = "Directly to my bank account";
4673
- /**
4674
- * @uiName PayPal payout option
4675
- * @uiGroup Step 4 Properties
4676
- */
4677
- this.step4_toPayPalAccount = "PayPal (2% processing fee capped to {feeCap})";
4678
- /**
4679
- * @uiName Threshold balance payment schedule option
4680
- * @uiGroup Step 4 Properties
4681
- */
4682
- this.step4_paymentScheduleBalanceThreshold = "Pay me when my balance reaches a threshold";
4683
- /**
4684
- * @uiName Fixed day payment schedule option
4685
- * @uiGroup Step 4 Properties
4686
- */
4687
- this.step4_paymentScheduleFixedDay = "Pay me on a fixed day of the month";
4688
- /**
4689
- * Let the participant choose what day of the month they’ll get paid
4690
- * @uiName Payment day field label
4691
- * @uiGroup Step 4 Properties
4692
- */
4693
- this.step4_paymentDaySelectLabel = "Payment Day";
4694
- /**
4695
- * Participant use this field to select the balance at which they want to be paid
4696
- * @uiName Payment threshold field label
4697
- * @uiGroup Step 4 Properties
4698
- */
4699
- this.step4_paymentThresholdSelectLabel = "Payment threshold";
4700
- /**
4701
- * One of two payment day options
4702
- * @uiName First of month payday option
4703
- * @uiGroup Step 4 Properties
4704
- */
4705
- this.step4_paymentDayFirstOfMonthLabelText = "1st of the month";
4706
- /**
4707
- * One of two payment day options
4708
- * @uiName Fifteenth of month payday option
4709
- * @uiGroup Step 4 Properties
4710
- */
4711
- this.step4_paymentDayFifteenthOfMonthLabelText = "15th of the month";
4712
- /**
4713
- * @uiName Payment method section header
4714
- * @uiGroup Step 4 Properties
4715
- */
4716
- this.step4_paymentMethod = "Payment method";
4717
- /**
4718
- * @uiName Payment schedule section header
4719
- * @uiGroup Step 4 Properties
4720
- */
4721
- this.step4_paymentSchedule = "Payment schedule";
4722
- /**
4723
- * @uiName Payment method section description
4724
- * @uiGroup Step 4 Properties
4725
- */
4726
- this.step4_paymentMethodSubtext = "Payouts will be sent from our referral program provider, impact.com.";
4727
- /**
4728
- * Displayed to participants who choose PayPal as their payout method
4729
- * @uiName PayPal email field label
4730
- * @uiGroup Step 4 Properties
4731
- */
4732
- this.step4_payPalInputLabel = "PayPal email";
4733
- /**
4734
- * @uiName Bank country field label
4735
- * @uiGroup Step 4 Properties
4736
- */
4737
- this.step4_bankLocationLabel = "Bank country location";
4738
- /**
4739
- * @uiName Beneficiary account field label
4740
- * @uiGroup Step 4 Properties
4741
- */
4742
- this.step4_beneficiaryAccountNameLabel = "Beneficiary account name";
4743
- /**
4744
- * @uiName Bank account type field label
4745
- * @uiGroup Step 4 Properties
4746
- */
4747
- this.step4_bankAccountTypeLabel = "Bank account type";
4748
- /**
4749
- * @uiName Checking account option
4750
- * @uiGroup Step 4 Properties
4751
- */
4752
- this.step4_checkingSelectItemLabel = "Checking";
4753
- /**
4754
- * Label text for the savings account type select item
4755
- * @uiName Savings account options
4756
- * @uiGroup Step 4 Properties
4757
- */
4758
- this.step4_savingsSelectItemLabel = "Savings";
4759
- /**
4760
- * @uiName Bank account number field label
4761
- * @uiGroup Step 4 Properties
4762
- */
4763
- this.step4_bankAccountNumberLabel = "Bank account number";
4764
- /**
4765
- * @uiName IBAN field label
4766
- * @uiGroup Step 4 Properties
4767
- */
4768
- this.step4_ibanLabel = "IBAN";
4769
- /**
4770
- * @uiName SWIFT code field label
4771
- * @uiGroup Step 4 Properties
4772
- */
4773
- this.step4_swiftCodeLabel = "SWIFT code";
4774
- /**
4775
- * @uiName Routing code field label
4776
- * @uiGroup Step 4 Properties
4777
- */
4778
- 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} }";
4779
- /**
4780
- * @uiName Bank name field label
4781
- * @uiGroup Step 4 Properties
4782
- */
4783
- this.step4_bankNameLabel = "Bank name";
4784
- /**
4785
- * @uiName Classification entity field label
4786
- * @uiGroup Step 4 Properties
4787
- */
4788
- this.step4_classificationEntityLabel = "Classification entity";
4789
- /**
4790
- * One of three options listed for the classification field
4791
- * @uiName Business classification option
4792
- * @uiGroup Step 4 Properties
4793
- */
4794
- this.step4_businessSelectItemLabel = "Business";
4795
- /**
4796
- * One of three options listed for the classification field
4797
- * @uiName Individual classification option
4798
- * @uiGroup Step 4 Properties
4799
- */
4800
- this.step4_individualSelectItemLabel = "Individual";
4801
- /**
4802
- * One of three options listed for the classification field
4803
- * @uiName Foreign classification option
4804
- * @uiGroup Step 4 Properties
4805
- */
4806
- this.step4_foreignSelectItemLabel = "Foreign";
4807
- /**
4808
- * @uiName Classification CPF field label
4809
- * @uiGroup Step 4 Properties
4810
- */
4811
- this.step4_classificationCPFLabel = "Classification CPF";
4812
- /**
4813
- * @uiName Patronymic name field label
4814
- * @uiGroup Step 4 Properties
4815
- */
4816
- this.step4_patronymicNameLabel = "Patronymic name";
4817
- /**
4818
- * @uiName VO code field label
4819
- * @uiGroup Step 4 Properties
4820
- */
4821
- this.step4_voCodeLabel = "VO code";
4822
- /**
4823
- * @uiName Agency code field label
4824
- * @uiGroup Step 4 Properties
4825
- */
4826
- this.step4_agencyCodeLabel = "Agency code";
4827
- /**
4828
- * @uiName Branch code field label
4829
- * @uiGroup Step 4 Properties
4830
- */
4831
- this.step4_branchCodeLabel = "Branch code";
4832
- /**
4833
- * Label text for the classification input field
4834
- * @uiName Classification field label
4835
- * @uiGroup Step 4 Properties
4836
- */
4837
- this.step4_classificationLabel = "Classification";
4838
- /**
4839
- * @uiName Taxpayer ID field label
4840
- * @uiGroup Step 4 Properties
4841
- */
4842
- this.step4_taxPayerIdLabel = "Beneficiary INN";
4843
- /**
4844
- * @uiName Bank address field label
4845
- * @uiGroup Step 4 Properties
4846
- */
4847
- this.step4_bankAddressLabel = "Bank address";
4848
- /**
4849
- * @uiName Bank city field label
4850
- * @uiGroup Step 4 Properties
4851
- */
4852
- this.step4_bankCityLabel = "Bank city";
4853
- /**
4854
- * @uiName Bank province/state field label
4855
- * @uiGroup Step 4 Properties
4856
- */
4857
- this.step4_bankStateLabel = "Bank Province / State";
4858
- /**
4859
- * @uiName Bank postal code field label
4860
- * @uiGroup Step 4 Properties
4861
- */
4862
- this.step4_bankPostalCodeLabel = "Bank postal code";
4863
- /**
4864
- * Default payment method to the participants’ bank account.
4865
- * @uiName EFT withdrawal payment method
4866
- * @uiGroup Step 4 Properties
4867
- */
4868
- this.step4_eftWithdrawalLabel = "EFT Withdrawal (free)";
4869
- /**
4870
- * @uiName FX Wire Processing fee text
4871
- * @uiGroup Step 4 Properties
4872
- */
4873
- this.step4_fxWireProcessingFeeLabel = "FX Wire (Processing Fee {currency}{defaultFxFee}.00)";
4874
- /**
4875
- * @uiName Text for verify email dialog
4876
- * @uiGroup Step 4 Properties
4877
- */
4878
- this.step4_verifyEmailHeaderText = "Verify your email";
4879
- /**
4880
- * @uiName Verify code widget header text
4881
- * @uiGroup Step 4 Properties
4882
- */
4883
- this.step4_verifyEmailDescriptionText = "Verify your email to update your payment settings. Enter the code sent to {email} from our referral provider, impact.com.";
4884
- /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4885
- DASHBOARD PROPS:
4886
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
4887
- /**
4888
- * @uiName Active tax form badge label
4889
- * @uiGroup Dashboard Properties
4890
- */
4891
- this.dashboard_statusTextActive = "Active";
4892
- /**
4893
- * @uiName Invalid tax form badge label
4894
- * @uiGroup Dashboard Properties
4895
- */
4896
- this.dashboard_statusTextNotActive = "Invalid Tax Form";
4897
- /**
4898
- * Displayed when the participant submitted their form but it is awaiting review.
4899
- *
4900
- * @uiName Not verified tax form badge label
4901
- * @uiGroup Dashboard Properties
4902
- */
4903
- this.dashboard_statusTextNotVerified = "Not Verified";
4904
- /**
4905
- * Additional text displayed next to the tax form's status badge
4906
- *
4907
- * @uiName Active W-9 description
4908
- * @uiGroup Dashboard Properties
4909
- */
4910
- this.dashboard_badgeTextSubmittedOn = "Submitted on {dateSubmitted}.";
4911
- /**
4912
- * Additional text displayed next to the tax form's status badge.
4913
- *
4914
- * @uiName Active W-8 description
4915
- * @uiGroup Dashboard Properties
4916
- */
4917
- this.dashboard_badgeTextSubmittedOnW8 = "Submitted on {dateSubmitted}. Valid for three years after submission.";
4918
- /**
4919
- * Additional text displayed next to the tax form's status badge.
4920
- *
4921
- * @uiName Tax form in review description
4922
- * @uiGroup Dashboard Properties
4923
- */
4924
- this.dashboard_badgeTextAwaitingReview = "Awaiting review. Submitted on {dateSubmitted}.";
4925
- /**
4926
- * Part of the alert displayed at the top of the page.
4927
- *
4928
- * @uiName Inactive W-9 error message title
4929
- * @uiGroup Dashboard Properties
4930
- * @uiWidget textArea
4931
- */
4932
- this.dashboard_taxAlertHeaderNotActiveW9 = "Your W9 tax form has personal information that doesn’t match your profile";
4933
- /**
4934
- * Part of the alert displayed at the top of the page.
4935
- *
4936
- * @uiName Inactive W-8 error message title
4937
- * @uiGroup Dashboard Properties
4938
- * @uiWidget textArea
4939
- */
4940
- this.dashboard_taxAlertHeaderNotActiveW8 = "{documentType} tax form is invalid";
4941
- /**
4942
- * Part of the alert displayed at the top of the page.
4943
- *
4944
- * @uiName Inactive W-9 error message description
4945
- * @uiGroup Dashboard Properties
4946
- * @uiWidget textArea
4947
- */
4948
- this.dashboard_taxAlertNotActiveMessageW9 = "Please resubmit a new {documentType} form.";
4949
- /**
4950
- * Part of the alert displayed at the top of the page.
4951
- *
4952
- * @uiName Inactive W-8 error message description
4953
- * @uiGroup Dashboard Properties
4954
- */
4955
- 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.";
4956
- /**
4957
- * Additional text displayed next to the tax form's status badge.
4958
- *
4959
- * @uiName Invalid tax form description
4960
- * @uiGroup Dashboard Properties
4961
- * @uiWidget textArea
4962
- */
4963
- this.dashboard_invalidForm = "Make sure your information is correct and submit new form.";
4964
- /**
4965
- * @uiName Payout information section header
4966
- * @uiGroup Dashboard Properties
4967
- */
4968
- this.dashboard_bankingInformationSectionHeader = "Payout Information";
4969
- /**
4970
- * @uiName Tax document section header
4971
- * @uiGroup Dashboard Properties
4972
- */
4973
- this.dashboard_taxDocumentSectionHeader = "Tax documents";
4974
- /**
4975
- * Displayed under the tax document section header.
4976
- *
4977
- * @uiName Tax documents section description
4978
- * @uiGroup Dashboard Properties
4979
- */
4980
- this.dashboard_taxDocumentSectionSubHeader = "{documentType} tax form";
4981
- /**
4982
- * No other statuses or badges will be displayed in the tax form section in this case.
4983
- *
4984
- * @uiName Tax form not required text
4985
- * @uiGroup Dashboard Properties
4986
- * @uiWidget textArea
4987
- */
4988
- 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.";
4989
- /**
4990
- *
4991
- * @uiName Indirect tax section header
4992
- * @uiGroup Dashboard Properties
4993
- */
4994
- this.dashboard_indirectTaxInfoSectionHeader = "Indirect tax";
4995
- /**
4996
- * If the participant is registered for indirect tax in Canada, display the province they’re registered in.
4997
- *
4998
- * @uiName Canadian province of indirect tax
4999
- * @uiGroup Dashboard Properties
5000
- */
5001
- this.dashboard_indirectTaxInfoCanada = "Registered in {province}, {country}";
5002
- /**
5003
- * If the participant is registered for indirect tax, display the country they’re registered in.
5004
- *
5005
- * @uiName Indirect tax country
5006
- * @uiGroup Dashboard Properties
5007
- */
5008
- this.dashboard_indirectTaxInfoOtherCountry = "Registered in {country}";
5009
- /**
5010
- * If the participant is registered for indirect tax in Spain, display the region they’re registered in.
5011
- *
5012
- * @uiName Spanish region of indirect tax
5013
- * @uiGroup Dashboard Properties
5014
- */
5015
- this.dashboard_indirectTaxInfoSpain = "Registered in {country}, {subRegion}";
5016
- /**
5017
- * @uiName Indirect tax tooltip
5018
- * @uiGroup Dashboard Properties
5019
- * @uiWidget textArea
5020
- */
5021
- this.dashboard_indirectTaxTooltipSupport = "To make changes to your indirect tax information, please contact our {supportLink}.";
5022
- /**
5023
- * Displayed to participants who have submitted their indirect tax information.
5024
- *
5025
- * @uiName Indirect tax details
5026
- * @uiGroup Dashboard Properties
5027
- */
5028
- this.dashboard_indirectTaxDetails = "{indirectTaxType} number: {indirectTaxNumber}";
5029
- /**
5030
- * @uiName Submit new tax form button label
5031
- * @uiGroup Dashboard Properties
5032
- */
5033
- this.dashboard_newFormButton = "Submit new form";
5034
- /**
5035
- * @uiName Edit payment info button label
5036
- * @uiGroup Dashboard Properties
5037
- */
5038
- this.dashboard_editPaymentInformationButton = "Edit Payout Information";
5039
- /**
5040
- * @uiName Not registered for indirect tax text
5041
- * @uiGroup Dashboard Properties
5042
- * @uiWidget textArea
5043
- */
5044
- 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.";
5045
- /**
5046
- * Displayed to participants registered in Quebec, Canada.
5047
- * @uiName QST indirect tax details
5048
- * @uiGroup Dashboard Properties
5049
- */
5050
- this.dashboard_qstNumber = "QST number: {qstNumber}";
5051
- /**
5052
- * @uiName Spain sub-region indirect tax number
5053
- * @uiGroup Dashboard Properties
5054
- */
5055
- this.dashboard_subRegionTaxNumber = "Income tax number: {subRegionTaxNumber}";
5056
- /**
5057
- * @uiName Payout status badge
5058
- * @uiGroup Dashboard Properties
5059
- */
5060
- this.dashboard_statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
5061
- /**
5062
- * Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
5063
- * @uiName Payout schedule by threshold text
5064
- * @uiGroup Dashboard Properties
5065
- */
5066
- this.dashboard_thresholdPayoutText = "Next payout occurs when balance is {thresholdBalance}";
5067
- /**
5068
- * Shown before the participant’s bank account information.
5069
- * @uiName Bank account field label
5070
- * @uiGroup Dashboard Properties
5071
- */
5072
- this.dashboard_accountText = "Account";
5073
- /**
5074
- * Part of the Invoice table displayed at the bottom of the page.
5075
- * @uiName Invoice number column title
5076
- * @uiGroup Dashboard Properties
5077
- */
5078
- this.dashboard_invoiceColumnTitle = "Invoice";
5079
- /**
5080
- * Part of the Invoice table displayed at the bottom of the page.
5081
- * @uiName Date column title
5082
- * @uiGroup Dashboard Properties
5083
- */
5084
- this.dashboard_dateColumnTitle = "Date";
5085
- /**
5086
- * Part of the Invoice table displayed at the bottom of the page.
5087
- * @uiName Earnings column title
5088
- * @uiGroup Dashboard Properties
5089
- */
5090
- this.dashboard_earningsColumnTitle = "Earnings";
5091
- /**
5092
- * Part of the Invoice table displayed at the bottom of the page.
5093
- * @uiName Indirect tax column title
5094
- * @uiGroup Dashboard Properties
5095
- */
5096
- this.dashboard_indirectTaxColumnTitle = "Indirect tax";
5097
- /**
5098
- * Displayed under the payout details card.
5099
- * @uiName Payout from impact text
5100
- * @uiGroup Dashboard Properties
5101
- * @uiWidget textArea
5102
- */
5103
- this.dashboard_payoutFromImpact = "Your balance may take up to 24 hours to update. Payouts will be sent from our referral program provider, impact.com.";
5104
- /**
5105
- * Part of the Invoice table displayed at the bottom of the page.
5106
- * @uiName Earnings after tax column title
5107
- * @uiGroup Dashboard Properties
5108
- */
5109
- this.dashboard_earningsAfterTaxColumnTitle = "Earnings after tax";
5110
- /**
5111
- * Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
5112
- * @uiName Payout error message title
5113
- * @uiGroup Dashboard Properties
5114
- * @uiWidget textArea
5115
- */
5116
- this.dashboard_payoutHoldAlertHeader = "Your payout is on hold";
5117
- /**
5118
- * Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
5119
- * @uiName Payout error message description
5120
- * @uiGroup Dashboard Properties
5121
- * @uiWidget textArea
5122
- */
5123
- this.dashboard_payoutHoldAlertDescription = "Please contact our {supportLink} or check your inbox for an email from our referral program provider, impact.com.";
5124
- /**
5125
- * Text displayed for existing publishers that do not have saved banking information.
5126
- * @uiName Payout missing information subtext
5127
- * @uiGroup Dashboard Properties
5128
- */
5129
- this.dashboard_payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
5130
- /**
5131
- * @uiName Invoice table description
5132
- * @uiGroup Dashboard Properties
5133
- */
5134
- this.dashboard_invoiceDescription = "View and download your invoices to report your earnings and stay tax compliant.";
5135
- /**
5136
- * @uiName Invoice table previous page button label
5137
- * @uiGroup Dashboard Properties
5138
- */
5139
- this.dashboard_invoicePrevLabel = "Prev";
5140
- /**
5141
- * @uiName Invoice table next page button label
5142
- * @uiGroup Dashboard Properties
5143
- */
5144
- this.dashboard_invoiceMoreLabel = "Next";
5145
- /**
5146
- * @uiName Invoice table title
5147
- * @uiGroup Dashboard Properties
5148
- */
5149
- this.dashboard_invoiceHeader = "Invoices";
5150
- /**
5151
- * @uiName Empty invoice table header
5152
- * @uiGroup Dashboard Properties
5153
- */
5154
- this.dashboard_invoiceEmptyStateHeader = "View your invoice details";
5155
- /**
5156
- * @uiName Empty invoice table description
5157
- * @uiGroup Dashboard Properties
5158
- */
5159
- this.dashboard_invoiceEmptyStateText = "Refer a friend to view the status of your invoices and rewards earned";
5160
- /**
5161
- * @uiName Replace tax form modal header
5162
- * @uiGroup Dashboard Properties
5163
- */
5164
- this.dashboard_replaceTaxFormModalHeader = "Replace existing tax form";
5165
- /**
5166
- * @uiName Replace tax form modal body text
5167
- * @uiGroup Dashboard Properties
5168
- * @uiWidget textArea
5169
- */
5170
- 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.";
5171
- /**
5172
- * Part of the alert displayed at the top of the page when the user needs to verify their identity.
5173
- * @uiName Verification required alert message title
5174
- * @uiGroup Dashboard Properties
5175
- * @uiWidget textArea
5176
- */
5177
- this.dashboard_verificationRequiredHeader = "Verify your identity";
5178
- /**
5179
- * Part of the alert displayed at the top of the page when the user needs to verify their identity
5180
- * @uiName Verification required alert message description
5181
- * @uiGroup Dashboard Properties
5182
- * @uiWidget textArea
5183
- */
5184
- 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}.";
5185
- /**
5186
- * @uiName Verification required internal alert header
5187
- * @uiGroup Dashboard Properties
5188
- * @uiWidget textArea
5189
- */
5190
- this.dashboard_verificationRequiredInternalHeader = "Identity Verification in Progress";
5191
- /**
5192
- * @uiName Verification required internal alert description
5193
- * @uiGroup Dashboard Properties
5194
- * @uiWidget textArea
5195
- */
5196
- 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}.";
5197
- /**
5198
- * @uiName Verification review internal alert header
5199
- * @uiGroup Dashboard Properties
5200
- * @uiWidget textArea
5201
- */
5202
- this.dashboard_verificationReviewInternalHeader = "Identity Verification Under Review";
5203
- /**
5204
- * @uiName Verification review internal alert description
5205
- * @uiGroup Dashboard Properties
5206
- * @uiWidget textArea
5207
- */
5208
- 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}.";
5209
- /**
5210
- * @uiName Verification failed internal alert header
5211
- * @uiGroup Dashboard Properties
5212
- * @uiWidget textArea
5213
- */
5214
- this.dashboard_verificationFailedInternalHeader = "Identity Verification Unsuccessful";
5215
- /**
5216
- * @uiName Verification failed internal alert description
5217
- * @uiGroup Dashboard Properties
5218
- * @uiWidget textArea
5219
- */
5220
- 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}.";
5221
- /**
5222
- * Part of the alert displayed at the top of the page when the user needs to verify their identity.
5223
- * @uiName Verification required alert button text
5224
- * @uiGroup Dashboard Properties
5225
- * @uiWidget textArea
5226
- */
5227
- this.dashboard_verificationRequiredButtonText = "Start Verification";
5228
- /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5229
- GENERAL PROPS:
5230
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
5231
- /**
5232
- * @uiName Setup progress
5233
- * @uiGroup General Form Properties
5234
- */
5235
- this.formStep = "Step {step} of {count}";
5236
- /**
5237
- * Part of the alert displayed at the top of the page.
5238
- * @uiName Form submission error message title
5239
- * @uiGroup General Form Properties
5240
- * @uiWidget textArea
5241
- */
5242
- this.generalErrorTitle = "There was a problem submitting your information";
5243
- /**
5244
- * Part of the alert displayed at the top of the page.
5245
- * @uiName Form submission error message description
5246
- * @uiGroup General Form Properties
5247
- * @uiWidget textArea
5248
- */
5249
- this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact our {supportLink}.";
5250
- /**
5251
- * Displayed under a field that is missing required information.
5252
- * @uiName Empty form field error message
5253
- * @uiGroup General Form Properties
5254
- */
5255
- this.fieldRequiredError = "{fieldName} is required";
5256
- /**
5257
- * Displayed under a field that includes invalid characters (non-ASCII).
5258
- * @uiName Invalid character error message
5259
- * @uiGroup General Form Properties
5260
- */
5261
- this.invalidCharacterError = "{fieldName} includes characters that aren't supported.";
5262
- /**
5263
- * Displayed under a field when it has an invalid entry.
5264
- * @uiName Form field error message
5265
- * @uiGroup General Form Properties
5266
- */
5267
- this.fieldInvalidError = "{fieldName} is invalid";
5268
- /**
5269
- * @uiName Continue button label
5270
- * @uiGroup General Form Properties
5271
- */
5272
- this.continueButton = "Continue";
5273
- /**
5274
- * @uiName Back button label
5275
- * @uiGroup General Form Properties
5276
- */
5277
- this.backButton = "Back";
5278
- /**
5279
- * @uiName Cancel button label
5280
- * @uiGroup General Form Properties
5281
- */
5282
- this.cancelButton = "Cancel";
5283
- /**
5284
- * Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com.
5285
- * @uiName Participant is a partner alert title
5286
- * @uiGroup General Form Properties
5287
- * @uiWidget textArea
5288
- */
5289
- this.isPartnerAlertHeader = "An account with this email already exists with our referral program provider, impact.com";
5290
- /**
5291
- * Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com.
5292
- * @uiName Participant is a partner alert description
5293
- * @uiGroup General Form Properties
5294
- * @uiWidget textArea
5295
- */
5296
- 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.";
3507
+ gap: "var(--sl-spacing-xx-large)",
3508
+ },
3509
+ };
3510
+ function PayoutDetailsCardView(props) {
3511
+ const sheet = JSS.createStyleSheet(style$4);
3512
+ const styleString = sheet.toString();
3513
+ const { classes } = sheet;
3514
+ const { states, text } = props;
3515
+ const renderLoadingSkeleton = () => {
3516
+ return (index.h("div", { class: classes.CardContainer },
3517
+ index.h("div", { class: classes.StatusContainer },
3518
+ index.h("sl-skeleton", { class: classes.SkeletonOne }),
3519
+ index.h("sl-skeleton", { class: classes.SkeletonTwo })),
3520
+ index.h("sl-skeleton", { class: classes.SkeletonThree }),
3521
+ index.h("sl-skeleton", { class: classes.SkeletonOne })));
3522
+ };
3523
+ const renderStatusBadge = (status, statusBadgeText) => {
3524
+ const badgeType = status === "nextPayout" ? "success" : "primary";
3525
+ const statusText = global.intl.formatMessage({
3526
+ id: "badgeText",
3527
+ defaultMessage: statusBadgeText,
3528
+ }, {
3529
+ badgeText: status,
3530
+ });
3531
+ return (index.h("sl-badge", { pill: true, type: badgeType }, statusText));
3532
+ };
3533
+ const thresholdText = global.intl.formatMessage({
3534
+ id: "thresholdText",
3535
+ defaultMessage: text.thresholdPayoutText,
3536
+ }, {
3537
+ thresholdBalance: states.thresholdBalance,
3538
+ });
3539
+ return (index.h("div", { class: classes.Container },
3540
+ index.h("style", { type: "text/css" }, styleString),
3541
+ states.loading ? (renderLoadingSkeleton()) : (index.h("div", { class: classes.CardContainer },
3542
+ index.h("div", { class: classes.StatusContainer },
3543
+ index.h("p", { class: classes.SubduedRegularText }, states.badgeStatus === "thresholdPayout"
3544
+ ? states.thresholdBalance
3545
+ ? thresholdText
3546
+ : ""
3547
+ : states.nextPayoutDate),
3548
+ states.badgeStatus === "thresholdPayout"
3549
+ ? null
3550
+ : renderStatusBadge(states.badgeStatus, text.statusBadgeText)),
3551
+ index.h("h1", { class: classes.MainCurrency }, states.balance),
3552
+ states.payoutType === "PAYPAL" ? (index.h("div", { class: classes.PaypalDetailsContainer },
3553
+ index.h("span", { class: classes.PaypalEmail }, states.paypalEmailAddress),
3554
+ index.h(PayPalIcon, null))) : (index.h("div", { class: classes.AccountDetailsContainer },
3555
+ index.h("span", null, states.cardNumberPreview
3556
+ ? `${text.accountText} ${states.cardNumberPreview}`
3557
+ : text.payoutMissingInformationText)))))));
3558
+ }
3559
+
3560
+ function usePayoutDetailsCard(props) {
3561
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
3562
+ const { data: data$1, loading } = index_module.$n(data.USER_QUERY_NAMESPACE);
3563
+ 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;
3564
+ function getPayoutDetailedStatusText(paymentDay) {
3565
+ var _a;
3566
+ const currentDay = luxon.luxon.DateTime.now().day;
3567
+ if (paymentDay === "1") {
3568
+ return currentDay === 1
3569
+ ? luxon.luxon.DateTime.now().toFormat("LLL dd, yyyy")
3570
+ : luxon.luxon.DateTime.now()
3571
+ .plus({ month: 1 })
3572
+ .startOf("month")
3573
+ .toFormat("LLL dd, yyyy");
3574
+ }
3575
+ else if (paymentDay === "15") {
3576
+ return currentDay <= 15
3577
+ ? luxon.luxon.DateTime.now()
3578
+ .plus({ day: 15 - currentDay })
3579
+ .toFormat("LLL dd, yyyy")
3580
+ : luxon.luxon.DateTime.now()
3581
+ .plus({ month: 1 })
3582
+ .startOf("month")
3583
+ .plus({ day: 14 })
3584
+ .toFormat("LLL dd, yyyy");
3585
+ }
3586
+ else {
3587
+ global.intl.formatMessage({
3588
+ id: `nextPayoutBalance`,
3589
+ defaultMessage: props.thresholdPayoutText,
3590
+ }, {
3591
+ thresholdBalance: (_a = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _a === void 0 ? void 0 : _a.paymentThreshold,
3592
+ });
3593
+ }
3594
+ }
3595
+ const paymentDay = getPayoutDetailedStatusText((_c = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _c === void 0 ? void 0 : _c.paymentDay);
3596
+ const isPayoutToday = luxon.luxon.DateTime.now().toFormat("LLL dd, yyyy") === paymentDay;
3597
+ return {
3598
+ states: {
3599
+ loading,
3600
+ 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}`
3601
+ : undefined,
3602
+ balance: (_f = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _f === void 0 ? void 0 : _f.balance,
3603
+ badgeStatus: ((_g = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _g === void 0 ? void 0 : _g.paymentSchedulingType) !== "FIXED_DAY"
3604
+ ? "thresholdPayout"
3605
+ : isPayoutToday
3606
+ ? "payoutToday"
3607
+ : "nextPayout",
3608
+ payoutType: (_h = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _h === void 0 ? void 0 : _h.paymentMethod,
3609
+ error: (_j = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _j === void 0 ? void 0 : _j.hold,
3610
+ paypalEmailAddress: (_k = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _k === void 0 ? void 0 : _k.paypalEmailAddress,
3611
+ cardNumberPreview: (_l = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _l === void 0 ? void 0 : _l.bankAccountNumber,
3612
+ nextPayoutDate: paymentDay,
3613
+ },
3614
+ text: props.getTextProps(),
3615
+ };
3616
+ }
3617
+
3618
+ const PayoutDetailsCard = class {
3619
+ constructor(hostRef) {
3620
+ index.registerInstance(this, hostRef);
5297
3621
  /**
5298
- * Placeholder text displayed in the country search dropdown
5299
- * @uiName Country field placeholder text
5300
- * @uiGroup General Form Properties
3622
+ * Badge text indicating payout status
3623
+ * @uiName Payout badge status text
5301
3624
  */
5302
- this.searchForCountryText = "Search for country..";
3625
+ this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
5303
3626
  /**
5304
- * Part of the alert displayed at the top of the page.
5305
- * @uiName Page load error message title
5306
- * @uiGroup General Form Properties
5307
- * @uiWidget textArea
3627
+ * Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
3628
+ * @uiName Payout schedule by threshold text
5308
3629
  */
5309
- this.loadingErrorAlertHeader = "There was a problem loading your form";
3630
+ this.thresholdPayoutText = "Next payout occurs when balance is {thresholdBalance}";
5310
3631
  /**
5311
- * Part of the alert displayed at the top of the page.
5312
- * @uiName Page load error message description
5313
- * @uiGroup General Form Properties
5314
- * @uiWidget textArea
3632
+ * Shown before the participant’s bank account information.
3633
+ * @uiName Bank account field label
5315
3634
  */
5316
- this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact our {supportLink}.";
3635
+ this.accountText = "Account";
5317
3636
  /**
5318
- * Displayed at the top of the page on all set up steps.
5319
- * @uiName Page description
5320
- * @uiGroup General Form Properties
3637
+ * Text displayed for existing publishers that do not have saved banking information.
3638
+ * @uiName Payout missing information subtext
5321
3639
  */
5322
- this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
3640
+ this.payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
5323
3641
  /**
5324
- * Link text for contacting support team
5325
- * @uiName Suport link text
5326
- * @uiGroup General Form Properties
3642
+ * @componentState { "title": "Loading", "props": { "states": { "loading": true } } }
5327
3643
  */
5328
- this.supportLink = "support team";
3644
+ this.stateController = "{}";
5329
3645
  stencilHooks_module.h$1(this);
5330
3646
  }
5331
3647
  disconnectedCallback() { }
5332
- // this field is required prop
5333
- getGeneralStepTextProps(prefix) {
3648
+ getTextProps() {
5334
3649
  const props = utils.getProps(this);
5335
3650
  return {
5336
- ...extractProps.extractProps(props, prefix),
5337
- generalErrorTitle: props.generalErrorTitle,
5338
- generalErrorDescription: props.generalErrorDescription,
5339
- fieldRequiredError: props.fieldRequiredError,
5340
- invalidCharacterError: props.invalidCharacterError,
5341
- fieldInvalidError: props.fieldInvalidError,
5342
- continueButton: props.continueButton,
5343
- backButton: props.backButton,
5344
- cancelButton: props.cancelButton,
5345
- isPartnerAlertHeader: props.isPartnerAlertHeader,
5346
- isPartnerAlertDescription: props.isPartnerAlertDescription,
5347
- loadingErrorAlertHeader: props.loadingErrorAlertHeader,
5348
- loadingErrorAlertDescription: props.loadingErrorAlertDescription,
5349
- taxAndPayoutsDescription: props.taxAndPayoutsDescription,
5350
- searchForCountryText: props.searchForCountryText,
5351
- formStep: props.formStep,
5352
- supportLink: props.supportLink,
3651
+ ...props,
5353
3652
  };
5354
3653
  }
5355
3654
  render() {
5356
- var _a, _b;
5357
- const props = index_module.isDemo() ? useDemoTaxAndCash(this) : useTaxAndCash();
5358
- // @ts-ignore
5359
- if ((_a = this.demoData) === null || _a === void 0 ? void 0 : _a.showTextProps) {
5360
- const textProps = utils.getProps(this);
5361
- return (index.h("div", null, (_b = Object.keys(textProps)) === null || _b === void 0 ? void 0 : _b.map((prop) => {
5362
- if (prop === "demoData")
5363
- return;
5364
- return (index.h("div", null, index.h("b", null, prop, ":"), " ", this[prop], index.h("hr", null)));
5365
- })));
5366
- }
5367
- switch (props.step) {
5368
- case "/1":
5369
- return (index.h("sqm-user-info-form", Object.assign({}, this.getGeneralStepTextProps("step1_"))));
5370
- case "/2":
5371
- return (index.h("sqm-indirect-tax-form", Object.assign({}, this.getGeneralStepTextProps("step2_"))));
5372
- case "/3":
5373
- return (index.h("sqm-docusign-form", Object.assign({}, this.getGeneralStepTextProps("step3_"))));
5374
- case "/4":
5375
- return (index.h("sqm-banking-info-form", Object.assign({}, this.getGeneralStepTextProps("step4_"))));
5376
- case "/dashboard":
5377
- return (index.h("sqm-tax-and-cash-dashboard", Object.assign({}, this.getGeneralStepTextProps("dashboard_"))));
5378
- case "/error":
5379
- return (index.h(ErrorView.ErrorView, { loadingErrorAlertHeader: this.loadingErrorAlertHeader, loadingErrorAlertDescription: this.loadingErrorAlertDescription }));
5380
- }
5381
- return index.h(sqmInvoiceTableView.LoadingView, null);
3655
+ const props = index_module.isDemo()
3656
+ ? useDemoPayoutDetailsCard(this)
3657
+ : usePayoutDetailsCard(this);
3658
+ return (index.h(index.Host, null, index.h(PayoutDetailsCardView, { text: props.text, states: props.states })));
5382
3659
  }
5383
3660
  };
5384
- function useDemoTaxAndCash(props) {
5385
- const [step, setStep] = index_module.In({
5386
- namespace: TAX_CONTEXT_NAMESPACE,
5387
- initialValue: "/1",
5388
- });
3661
+ function useDemoPayoutDetailsCard(props) {
5389
3662
  return cjs.cjs({
5390
- step,
5391
- setStep,
3663
+ states: {
3664
+ loading: false,
3665
+ error: false,
3666
+ thresholdBalance: "$50",
3667
+ mainCurrency: { currencyText: "USD", amountText: "100.00" },
3668
+ badgeStatus: "nextPayout",
3669
+ payoutType: "BANK_TRANSFER",
3670
+ nextPayoutDate: "March 14, 2024",
3671
+ paypalEmailAddress: "joesmith@example.com",
3672
+ otherCurrencies: false,
3673
+ hasW9Pending: false,
3674
+ hasDatePending: true,
3675
+ cardNumberPreview: "XX2381",
3676
+ balance: "20.00 USD",
3677
+ },
3678
+ text: props.getTextProps(),
5392
3679
  }, props.demoData || {}, { arrayMerge: (_, a) => a });
5393
3680
  }
5394
3681
 
5395
- const style$6 = {
3682
+ const style$5 = {
5396
3683
  ErrorAlertContainer: {
5397
3684
  "&::part(base)": {
5398
- backgroundColor: "var(--sl-color-red-100)",
5399
- borderTop: "none",
3685
+ backgroundColor: "var(--sqm-danger-color-background)",
3686
+ border: "none",
5400
3687
  },
5401
3688
  "& sl-icon::part(base)": {
5402
- color: "var(--sl-color-danger-500)",
3689
+ color: "var(--sqm-danger-color-text)",
5403
3690
  },
5404
3691
  },
5405
3692
  WarningAlertContainer: {
5406
3693
  "&::part(base)": {
5407
- backgroundColor: "var(--sl-color-yellow-100)",
5408
- borderTop: "none",
3694
+ backgroundColor: "var(--sqm-warning-color-background)",
3695
+ border: "none",
5409
3696
  maxWidth: "600px",
5410
3697
  },
5411
3698
  "& sl-icon::part(base)": {
5412
- color: "var(--sl-color-warning-500)",
3699
+ color: "var(--sqm-warning-color-text)",
5413
3700
  },
5414
3701
  },
5415
3702
  WarningHoldAlertContainer: {
@@ -5420,7 +3707,7 @@ const style$6 = {
5420
3707
  backgroundColor: "transparent",
5421
3708
  },
5422
3709
  "& sl-icon::part(base)": {
5423
- color: "var(--sl-color-warning-500)",
3710
+ color: "var(--sqm-warning-color-text)",
5424
3711
  },
5425
3712
  },
5426
3713
  ErrorHoldAlertContainer: {
@@ -5431,13 +3718,13 @@ const style$6 = {
5431
3718
  backgroundColor: "transparent",
5432
3719
  },
5433
3720
  "& sl-icon::part(base)": {
5434
- color: "var(--sl-color-danger-500)",
3721
+ color: "var(--sqm-danger-color-icon)",
5435
3722
  },
5436
3723
  },
5437
3724
  ExpiringSoonAlertContainer: {
5438
3725
  "&::part(base)": {
5439
- backgroundColor: "var(--sl-color-yellow-100)",
5440
- borderTop: "none",
3726
+ backgroundColor: "var(--sqm-warning-color-background)",
3727
+ border: "none",
5441
3728
  },
5442
3729
  },
5443
3730
  BankingInformationContainer: {
@@ -5445,7 +3732,7 @@ const style$6 = {
5445
3732
  },
5446
3733
  IndirectTaxPreviewContainer: {
5447
3734
  marginTop: "var(--sl-spacing-x-large)",
5448
- borderTop: "1px solid var(--sl-color-neutral-200)",
3735
+ borderTop: "1px solid var(--sqm-border-color)",
5449
3736
  },
5450
3737
  IndirectTaxPreviewHeaderContainer: {
5451
3738
  marginTop: "var(--sl-spacing-large)",
@@ -5454,7 +3741,7 @@ const style$6 = {
5454
3741
  display: "flex",
5455
3742
  gap: "var(--sl-spacing-x-small)",
5456
3743
  "&::part(base)": {
5457
- color: "var(--sl-color-green-500)",
3744
+ color: "var(--sqm-success-color-text)",
5458
3745
  },
5459
3746
  },
5460
3747
  IndirectTaxPreviewDetails: {
@@ -5468,11 +3755,11 @@ const style$6 = {
5468
3755
  marginTop: "var(--sl-spacing-medium)",
5469
3756
  },
5470
3757
  NotRegisteredIndirectTaxText: {
5471
- color: "var(--sl-color-gray-500)",
3758
+ color: "var(--sqm-text-subdued)",
5472
3759
  },
5473
3760
  TaxDocumentsContainer: {
5474
3761
  marginTop: "var(--sl-spacing-xx-large)",
5475
- borderTop: "1px solid var(--sl-color-neutral-200)",
3762
+ borderTop: "1px solid var(--sqm-border-color)",
5476
3763
  },
5477
3764
  TaxDocumentsSectionHeaderContainer: {
5478
3765
  marginTop: "var(--sl-spacing-x-large)",
@@ -5489,7 +3776,7 @@ const style$6 = {
5489
3776
  "& p": {
5490
3777
  margin: "0",
5491
3778
  paddingTop: "2px",
5492
- color: "var(--sl-color-gray-500)",
3779
+ color: "var(--sqm-text-subdued)",
5493
3780
  },
5494
3781
  },
5495
3782
  StatusAlert: {
@@ -5524,7 +3811,7 @@ const style$6 = {
5524
3811
  },
5525
3812
  TaxDocSubtext: {
5526
3813
  margin: "0",
5527
- color: "var(--sl-color-neutral-500)",
3814
+ color: "var(--sqm-text-subdued)",
5528
3815
  lineHeight: "var(--sl-spacing-medium)",
5529
3816
  fontSize: "var(--sl-font-size-small)",
5530
3817
  marginLeft: "1px",
@@ -5545,13 +3832,13 @@ const style$6 = {
5545
3832
  gap: "6px",
5546
3833
  },
5547
3834
  DescriptionText: {
5548
- color: "var(--sl-color-gray-500)",
3835
+ color: "var(--sqm-text-subdued)",
5549
3836
  fontSize: "var(--sl-font-size-x-small)",
5550
3837
  marginBottom: "none",
5551
3838
  maxWidth: "492px",
5552
3839
  },
5553
3840
  PageDescriptionText: {
5554
- color: "var(--sl-color-neutral-500)",
3841
+ color: "var(--sqm-text-subdued)",
5555
3842
  fontSize: "var(--sl-font-size-medium)",
5556
3843
  marginTop: "0",
5557
3844
  },
@@ -5583,8 +3870,8 @@ const style$6 = {
5583
3870
  },
5584
3871
  DialogButton: { margin: "auto", width: "100%" },
5585
3872
  };
5586
- const sheet$5 = JSS.createStyleSheet(style$6);
5587
- const styleString$5 = sheet$5.toString();
3873
+ const sheet$4 = JSS.createStyleSheet(style$5);
3874
+ const styleString$4 = sheet$4.toString();
5588
3875
  const TaxAndCashDashboardView = (props) => {
5589
3876
  var _a, _b, _c, _d;
5590
3877
  const { states, text, callbacks, slots } = props;
@@ -5602,7 +3889,7 @@ const TaxAndCashDashboardView = (props) => {
5602
3889
  buttonText: text.verificationRequiredButtonText,
5603
3890
  alertType: "warning",
5604
3891
  icon: "exclamation-triangle",
5605
- class: sheet$5.classes.WarningHoldAlertContainer,
3892
+ class: sheet$4.classes.WarningHoldAlertContainer,
5606
3893
  };
5607
3894
  case "VERIFICATION:INTERNAL":
5608
3895
  return {
@@ -5615,7 +3902,7 @@ const TaxAndCashDashboardView = (props) => {
5615
3902
  }),
5616
3903
  alertType: "warning",
5617
3904
  icon: "exclamation-triangle",
5618
- class: sheet$5.classes.WarningHoldAlertContainer,
3905
+ class: sheet$4.classes.WarningHoldAlertContainer,
5619
3906
  };
5620
3907
  case "VERIFICATION:REVIEW":
5621
3908
  return {
@@ -5628,7 +3915,7 @@ const TaxAndCashDashboardView = (props) => {
5628
3915
  }),
5629
3916
  alertType: "warning",
5630
3917
  icon: "exclamation-triangle",
5631
- class: sheet$5.classes.WarningHoldAlertContainer,
3918
+ class: sheet$4.classes.WarningHoldAlertContainer,
5632
3919
  };
5633
3920
  case "VERIFICATION:FAILED":
5634
3921
  return {
@@ -5641,7 +3928,7 @@ const TaxAndCashDashboardView = (props) => {
5641
3928
  }),
5642
3929
  alertType: "critical",
5643
3930
  icon: "exclamation-octagon",
5644
- class: sheet$5.classes.ErrorHoldAlertContainer,
3931
+ class: sheet$4.classes.ErrorHoldAlertContainer,
5645
3932
  };
5646
3933
  case "HOLD":
5647
3934
  return {
@@ -5655,14 +3942,14 @@ const TaxAndCashDashboardView = (props) => {
5655
3942
  buttonText: null,
5656
3943
  alertType: "warning",
5657
3944
  icon: "exclamation-triangle",
5658
- class: sheet$5.classes.WarningHoldAlertContainer,
3945
+ class: sheet$4.classes.WarningHoldAlertContainer,
5659
3946
  };
5660
3947
  default:
5661
3948
  return;
5662
3949
  }
5663
3950
  }
5664
3951
  const statusMap = {
5665
- NOT_VERIFIED: (index.h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
3952
+ NOT_VERIFIED: (index.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
5666
3953
  index.h("sl-badge", { type: "warning", pill: true }, text.statusTextNotVerified),
5667
3954
  index.h("p", null, global.intl.formatMessage({
5668
3955
  id: `badgeTextAwaitingReview`,
@@ -5670,7 +3957,7 @@ const TaxAndCashDashboardView = (props) => {
5670
3957
  }, {
5671
3958
  dateSubmitted: states.dateSubmitted,
5672
3959
  })))),
5673
- ACTIVE: (index.h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
3960
+ ACTIVE: (index.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
5674
3961
  index.h("sl-badge", { type: "success", pill: true }, text.statusTextActive),
5675
3962
  index.h("p", null, global.intl.formatMessage({
5676
3963
  id: `badgeTextSubmittedOn`,
@@ -5680,12 +3967,12 @@ const TaxAndCashDashboardView = (props) => {
5680
3967
  }, {
5681
3968
  dateSubmitted: states.dateSubmitted,
5682
3969
  })))),
5683
- INACTIVE: (index.h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
3970
+ INACTIVE: (index.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
5684
3971
  index.h("sl-badge", { type: "danger", pill: true }, text.statusTextNotActive),
5685
3972
  index.h("p", null, text.invalidForm))),
5686
3973
  };
5687
3974
  const alertMap = {
5688
- INACTIVE: (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.ErrorAlertContainer },
3975
+ INACTIVE: (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.ErrorAlertContainer },
5689
3976
  index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
5690
3977
  index.h("strong", null, global.intl.formatMessage({
5691
3978
  id: `taxAlertHeaderNotActive`,
@@ -5735,9 +4022,9 @@ const TaxAndCashDashboardView = (props) => {
5735
4022
  };
5736
4023
  return (index.h("div", null,
5737
4024
  index.h("div", null,
5738
- index.h("style", { type: "text/css" }, styleString$5),
4025
+ index.h("style", { type: "text/css" }, styleString$4),
5739
4026
  states.loadingError && (index.h("div", null,
5740
- index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.ErrorAlertContainer },
4027
+ index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.ErrorAlertContainer },
5741
4028
  index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
5742
4029
  index.h("strong", null, text.error.loadingErrorAlertHeader),
5743
4030
  index.h("br", null),
@@ -5747,7 +4034,7 @@ const TaxAndCashDashboardView = (props) => {
5747
4034
  }, {
5748
4035
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
5749
4036
  })))),
5750
- ((_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 },
4037
+ ((_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 },
5751
4038
  index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
5752
4039
  index.h("strong", null, text.error.generalTitle),
5753
4040
  index.h("br", null),
@@ -5762,49 +4049,49 @@ const TaxAndCashDashboardView = (props) => {
5762
4049
  index.h("strong", null, getAlert(states.payoutStatus).header),
5763
4050
  index.h("p", { style: { margin: "0" } }, getAlert(states.payoutStatus).description),
5764
4051
  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)))),
5765
- index.h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet$5.classes.Dialog, open: states.showNewFormDialog, "onSl-hide": callbacks.onNewFormCancel },
4052
+ index.h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet$4.classes.Dialog, open: states.showNewFormDialog, "onSl-hide": callbacks.onNewFormCancel },
5766
4053
  index.h("p", null, text.replaceTaxFormModalBodyText),
5767
- index.h("sl-button", { slot: "footer", type: "primary", class: sheet$5.classes.DialogButton, onClick: callbacks.onNewFormClick }, text.newFormButton),
5768
- index.h("sl-button", { slot: "footer", type: "default", class: sheet$5.classes.DialogButton, onClick: callbacks.onNewFormCancel }, text.cancelButton)),
4054
+ index.h("sl-button", { slot: "footer", type: "primary", class: sheet$4.classes.DialogButton, onClick: callbacks.onNewFormClick }, text.newFormButton),
4055
+ index.h("sl-button", { slot: "footer", type: "default", class: sheet$4.classes.DialogButton, onClick: callbacks.onNewFormCancel }, text.cancelButton)),
5769
4056
  states.status === "INACTIVE" && alertMap[states.status],
5770
4057
  index.h("div", null,
5771
4058
  index.h("h3", { style: { marginBottom: "0" } }, text.bankingInformationSectionHeader),
5772
- index.h("p", { class: sheet$5.classes.PageDescriptionText }, text.taxAndPayoutsDescription),
5773
- index.h("div", { class: sheet$5.classes.BankingInformationContainer },
4059
+ index.h("p", { class: sheet$4.classes.PageDescriptionText }, text.taxAndPayoutsDescription),
4060
+ index.h("div", { class: sheet$4.classes.BankingInformationContainer },
5774
4061
  slots.payoutDetailsCardSlot,
5775
- !states.loading && (index.h("p", { class: sheet$5.classes.DescriptionText }, text.payoutFromImpact)),
5776
- states.canEditPayoutInfo && (index.h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$5.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
5777
- index.h("div", { class: sheet$5.classes.TaxDocumentsContainer },
5778
- index.h("div", null, states.loading ? (index.h("div", { class: sheet$5.classes.TaxSectionSkeletonContainer },
5779
- index.h("sl-skeleton", { class: sheet$5.classes.SkeletonOne }),
5780
- index.h("sl-skeleton", { class: sheet$5.classes.SkeletonTwo }))) : (index.h("div", null, states.noFormNeeded ? (index.h("div", null,
5781
- index.h("h3", { class: sheet$5.classes.TaxDocumentsSectionHeaderContainer }, text.taxDocumentSectionHeader),
5782
- index.h("p", { class: sheet$5.classes.TaxDocSubtext }, text.noFormNeededSubtext))) : (index.h("div", null,
5783
- index.h("span", { class: sheet$5.classes.TaxFormDetailsContainer },
5784
- index.h("div", { class: sheet$5.classes.StatusContainer },
4062
+ !states.loading && (index.h("p", { class: sheet$4.classes.DescriptionText }, text.payoutFromImpact)),
4063
+ states.canEditPayoutInfo && (index.h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$4.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
4064
+ index.h("div", { class: sheet$4.classes.TaxDocumentsContainer },
4065
+ index.h("div", null, states.loading ? (index.h("div", { class: sheet$4.classes.TaxSectionSkeletonContainer },
4066
+ index.h("sl-skeleton", { class: sheet$4.classes.SkeletonOne }),
4067
+ index.h("sl-skeleton", { class: sheet$4.classes.SkeletonTwo }))) : (index.h("div", null, states.noFormNeeded ? (index.h("div", null,
4068
+ index.h("h3", { class: sheet$4.classes.TaxDocumentsSectionHeaderContainer }, text.taxDocumentSectionHeader),
4069
+ index.h("p", { class: sheet$4.classes.TaxDocSubtext }, text.noFormNeededSubtext))) : (index.h("div", null,
4070
+ index.h("span", { class: sheet$4.classes.TaxFormDetailsContainer },
4071
+ index.h("div", { class: sheet$4.classes.StatusContainer },
5785
4072
  index.h("h3", null, global.intl.formatMessage({
5786
4073
  id: "section-subheader",
5787
4074
  defaultMessage: text.taxDocumentSectionSubHeader,
5788
4075
  }, {
5789
4076
  documentType: states.documentTypeString,
5790
4077
  })),
5791
- index.h("span", { class: sheet$5.classes.StatusAlert }, statusMap[states.status]))),
5792
- 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)))))))),
5793
- index.h("div", { class: sheet$5.classes.IndirectTaxPreviewContainer }, states.loading ? (index.h("div", { class: sheet$5.classes.TaxSectionSkeletonContainer },
5794
- index.h("sl-skeleton", { class: sheet$5.classes.SkeletonOne }),
5795
- index.h("sl-skeleton", { class: sheet$5.classes.SkeletonTwo }))) : (index.h("div", null,
5796
- index.h("h3", { class: sheet$5.classes.IndirectTaxPreviewHeaderContainer },
4078
+ index.h("span", { class: sheet$4.classes.StatusAlert }, statusMap[states.status]))),
4079
+ 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)))))))),
4080
+ index.h("div", { class: sheet$4.classes.IndirectTaxPreviewContainer }, states.loading ? (index.h("div", { class: sheet$4.classes.TaxSectionSkeletonContainer },
4081
+ index.h("sl-skeleton", { class: sheet$4.classes.SkeletonOne }),
4082
+ index.h("sl-skeleton", { class: sheet$4.classes.SkeletonTwo }))) : (index.h("div", null,
4083
+ index.h("h3", { class: sheet$4.classes.IndirectTaxPreviewHeaderContainer },
5797
4084
  text.indirectTaxInfoSectionHeader,
5798
- index.h("sl-tooltip", { trigger: "hover", placement: "right", content: text.indirectTaxTooltipSupport, class: sheet$5.classes.TooltipContainer },
5799
- index.h("sl-icon", { name: "info-circle", class: sheet$5.classes.ToolTip }))),
5800
- index.h("div", { class: sheet$5.classes.IndirectTaxPreviewDetails },
5801
- index.h("span", null, states.notRegistered ? (index.h("span", { class: sheet$5.classes.NotRegisteredIndirectTaxText }, global.intl.formatMessage({
4085
+ index.h("sl-tooltip", { trigger: "hover", placement: "right", content: text.indirectTaxTooltipSupport, class: sheet$4.classes.TooltipContainer },
4086
+ index.h("sl-icon", { name: "info-circle", class: sheet$4.classes.ToolTip }))),
4087
+ index.h("div", { class: sheet$4.classes.IndirectTaxPreviewDetails },
4088
+ index.h("span", null, states.notRegistered ? (index.h("span", { class: sheet$4.classes.NotRegisteredIndirectTaxText }, global.intl.formatMessage({
5802
4089
  id: "notRegisteredForTax",
5803
4090
  defaultMessage: text.notRegisteredForTax,
5804
4091
  }, {
5805
4092
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
5806
4093
  }))) : (getIndirectTaxRegisteredIn())),
5807
- !states.notRegistered && (index.h("div", { class: sheet$5.classes.TaxNumberContainer },
4094
+ !states.notRegistered && (index.h("div", { class: sheet$4.classes.TaxNumberContainer },
5808
4095
  index.h("span", null, global.intl.formatMessage({
5809
4096
  id: `indirectTaxDetails`,
5810
4097
  defaultMessage: text.indirectTaxDetails,
@@ -5827,7 +4114,7 @@ const TaxAndCashDashboardView = (props) => {
5827
4114
  }, {
5828
4115
  subRegionTaxNumber: states.subRegionTaxNumber,
5829
4116
  })))),
5830
- !states.notRegistered && (index.h("div", { class: sheet$5.classes.InvoiceTableContainer },
4117
+ !states.notRegistered && (index.h("div", { class: sheet$4.classes.InvoiceTableContainer },
5831
4118
  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 },
5832
4119
  index.h("sqm-invoice-table-download-column", null),
5833
4120
  index.h("sqm-invoice-table-date-column", { "column-title": text.dateColumnTitle }),
@@ -5851,12 +4138,12 @@ function getSubRegionName(regionCode) {
5851
4138
  return "";
5852
4139
  // Impact adds an underscore to some regions
5853
4140
  const standardCode = regionCode.replace("_", "");
5854
- const regions = [...sqmInvoiceTableView.INDIRECT_TAX_PROVINCES, ...sqmInvoiceTableView.INDIRECT_TAX_SPAIN_REGIONS];
4141
+ const regions = [...IndirectTaxDetailsView.INDIRECT_TAX_PROVINCES, ...IndirectTaxDetailsView.INDIRECT_TAX_SPAIN_REGIONS];
5855
4142
  return (_a = regions.find((r) => r.regionCode === standardCode)) === null || _a === void 0 ? void 0 : _a.displayName;
5856
4143
  }
5857
4144
  function getIndirectTaxType(taxInformation) {
5858
4145
  var _a;
5859
- const regions = [...sqmInvoiceTableView.INDIRECT_TAX_PROVINCES, ...sqmInvoiceTableView.INDIRECT_TAX_SPAIN_REGIONS];
4146
+ const regions = [...IndirectTaxDetailsView.INDIRECT_TAX_PROVINCES, ...IndirectTaxDetailsView.INDIRECT_TAX_SPAIN_REGIONS];
5860
4147
  if (taxInformation === null || taxInformation === void 0 ? void 0 : taxInformation.indirectTaxRegion) {
5861
4148
  const standardRegion = taxInformation.indirectTaxRegion.replace("_", "");
5862
4149
  const taxType = (_a = regions.find((r) => r.regionCode === standardRegion)) === null || _a === void 0 ? void 0 : _a.taxType;
@@ -5867,14 +4154,14 @@ function getIndirectTaxType(taxInformation) {
5867
4154
  if (taxInformation === null || taxInformation === void 0 ? void 0 : taxInformation.withholdingTaxCountryCode)
5868
4155
  return "VAT";
5869
4156
  if (taxInformation === null || taxInformation === void 0 ? void 0 : taxInformation.indirectTaxCountryCode) {
5870
- return sqmInvoiceTableView.vatLabels[taxInformation.indirectTaxCountryCode] || "Indirect Tax";
4157
+ return IndirectTaxDetailsView.vatLabels[taxInformation.indirectTaxCountryCode] || "Indirect Tax";
5871
4158
  }
5872
4159
  return "Indirect Tax";
5873
4160
  }
5874
4161
  const useTaxAndCashDashboard = (props) => {
5875
4162
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
5876
- const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
5877
- const setContext = index_module.En(TAX_FORM_CONTEXT_NAMESPACE);
4163
+ const setStep = index_module.En(data.TAX_CONTEXT_NAMESPACE);
4164
+ const setContext = index_module.En(data.TAX_FORM_CONTEXT_NAMESPACE);
5878
4165
  const [showDialog, setShowDialog] = stencilHooks_module.useState(false);
5879
4166
  const { render, loading: veriffLoading, errors: veriffErrors, } = usePayoutStatus.useVeriffApp();
5880
4167
  const locale = index_module.L();
@@ -5882,8 +4169,8 @@ const useTaxAndCashDashboard = (props) => {
5882
4169
  // Clear override context once on submitted
5883
4170
  setContext({});
5884
4171
  }, []);
5885
- const { data, loading, errors: userError, refetch, } = index_module.$n(USER_QUERY_NAMESPACE);
5886
- 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;
4172
+ const { data: data$1, loading, errors: userError, refetch, } = index_module.$n(data.USER_QUERY_NAMESPACE);
4173
+ 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;
5887
4174
  const documentType = publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType;
5888
4175
  const submissionDate = (_c = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _c === void 0 ? void 0 : _c.dateCreated;
5889
4176
  const dateSubmitted = submissionDate
@@ -5906,8 +4193,8 @@ const useTaxAndCashDashboard = (props) => {
5906
4193
  });
5907
4194
  setStep("/3");
5908
4195
  };
5909
- 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;
5910
- const payoutStatus = data ? usePayoutStatus.getStatus(data) : null;
4196
+ 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;
4197
+ const payoutStatus = data$1 ? usePayoutStatus.getStatus(data$1) : null;
5911
4198
  stencilHooks_module.useEffect(() => {
5912
4199
  const cb = () => refetch();
5913
4200
  window.addEventListener(usePayoutStatus.VERIFF_COMPLETE_EVENT_KEY, cb);
@@ -5920,7 +4207,7 @@ const useTaxAndCashDashboard = (props) => {
5920
4207
  dateSubmitted,
5921
4208
  documentType,
5922
4209
  canEditPayoutInfo: publisher === null || publisher === void 0 ? void 0 : publisher.brandedSignup,
5923
- documentTypeString: sqmInvoiceTableView.taxTypeToName(documentType),
4210
+ documentTypeString: utils$1.taxTypeToName(documentType),
5924
4211
  status: (_e = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _e === void 0 ? void 0 : _e.status,
5925
4212
  subRegion: getSubRegionName((_f = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _f === void 0 ? void 0 : _f.indirectTaxRegion),
5926
4213
  subRegionTaxNumber: (_g = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _g === void 0 ? void 0 : _g.withholdingTaxId,
@@ -6258,6 +4545,16 @@ const TaxAndCashDashboard = class {
6258
4545
  * @uiName Cancel button label
6259
4546
  */
6260
4547
  this.cancelButton = "Cancel";
4548
+ /**
4549
+ * @parentState { "parent": "sqm-tax-and-cash", "title": "Dashboard" }
4550
+ * @componentState { "title": "Default", "props": { } }
4551
+ * @componentState { "title": "Verification Required", "props": { "states": { "payoutStatus": "VERIFICATION:REQUIRED" } } }
4552
+ * @componentState { "title": "Internal Verification Required", "props": { "states": { "payoutStatus": "VERIFICATION:INTERNAL" } } }
4553
+ * @componentState { "title": "Review in progress", "props": { "states": { "payoutStatus": "VERIFICATION:REVIEW" } } }
4554
+ * @componentState { "title": "Verification failed", "props": { "states": { "payoutStatus": "VERIFICATION:FAILED" } } }
4555
+ * @componentState { "title": "Payout hold", "props": { "states": { "payoutStatus": "HOLD" } } }
4556
+ */
4557
+ this.stateController = "{}";
6261
4558
  stencilHooks_module.h$1(this);
6262
4559
  }
6263
4560
  disconnectedCallback() { }
@@ -6283,6 +4580,8 @@ const TaxAndCashDashboard = class {
6283
4580
  }
6284
4581
  };
6285
4582
  function useDemoTaxAndCashDashboard(props) {
4583
+ const states = parseStates.parseStates(props.stateController);
4584
+ console.log({ states });
6286
4585
  return cjs.cjs({
6287
4586
  states: {
6288
4587
  dateSubmitted: "today",
@@ -6290,16 +4589,23 @@ function useDemoTaxAndCashDashboard(props) {
6290
4589
  documentTypeString: "W9",
6291
4590
  status: "ACTIVE",
6292
4591
  country: "United States",
6293
- indirectTaxNumber: 55555555,
4592
+ indirectTaxNumber: "55555555",
6294
4593
  indirectTaxType: "Indirect Tax",
6295
4594
  noFormNeeded: true,
6296
4595
  disabled: false,
6297
4596
  loading: false,
6298
4597
  showNewFormDialog: false,
6299
4598
  hasHold: false,
6300
- showVerifyIdentity: false,
6301
4599
  payoutStatus: "DONE",
6302
4600
  veriffLoading: false,
4601
+ canEditPayoutInfo: true,
4602
+ subRegion: "CA",
4603
+ subRegionTaxNumber: undefined,
4604
+ qstNumber: undefined,
4605
+ isBusinessEntity: false,
4606
+ province: undefined,
4607
+ notRegistered: false,
4608
+ loadingError: false,
6303
4609
  },
6304
4610
  callbacks: {
6305
4611
  onClick: () => console.debug("check step"),
@@ -6309,7 +4615,7 @@ function useDemoTaxAndCashDashboard(props) {
6309
4615
  onVerifyClick: () => console.log("verify"),
6310
4616
  },
6311
4617
  text: props.getTextProps(),
6312
- }, props.demoData || {}, { arrayMerge: (_, a) => a });
4618
+ }, props.demoData || states || {}, { arrayMerge: (_, a) => a });
6313
4619
  }
6314
4620
 
6315
4621
  const PHONE_EXTENSIONS = {
@@ -7283,19 +5589,19 @@ const PHONE_EXTENSIONS = {
7283
5589
  },
7284
5590
  };
7285
5591
 
7286
- const style$7 = {
5592
+ const style$6 = {
7287
5593
  FormWrapper: {},
7288
5594
  ErrorInput: {
7289
5595
  "&::part(base)": {
7290
- border: "1px solid var(--sl-color-danger-500)",
5596
+ border: "1px solid var(--sqm-danger-color-icon)",
7291
5597
  borderRadius: "var(--sl-input-border-radius-medium)",
7292
5598
  },
7293
5599
  "&::part(help-text)": {
7294
- color: "var(--sl-color-danger-500)",
5600
+ color: "var(--sqm-danger-color-icon)",
7295
5601
  },
7296
5602
  },
7297
5603
  ErrorText: {
7298
- color: "var(--sl-color-danger-500)",
5604
+ color: "var(--sqm-danger-color-icon)",
7299
5605
  marginTop: "10px",
7300
5606
  },
7301
5607
  TextContainer: {
@@ -7326,9 +5632,6 @@ const style$7 = {
7326
5632
  justifyContent: "flex-start",
7327
5633
  flexDirection: "column",
7328
5634
  },
7329
- DescriptionText: {
7330
- color: "var(--sl-color-neutral-500)",
7331
- },
7332
5635
  BoldText: {
7333
5636
  fontWeight: "bold",
7334
5637
  },
@@ -7339,26 +5642,31 @@ const style$7 = {
7339
5642
  },
7340
5643
  AlertContainer: {
7341
5644
  "&::part(base)": {
7342
- backgroundColor: "var(--sl-color-red-100)",
7343
- borderTop: "none",
5645
+ backgroundColor: "var(--sqm-danger-color-background)",
5646
+ border: "none",
7344
5647
  padding: "0 16px",
5648
+ color: "var(--sqm-danger-color-text)",
5649
+ marginBottom: "16px",
7345
5650
  },
7346
5651
  "& sl-icon::part(base)": {
7347
- color: "var(--sl-color-danger-500)",
5652
+ color: "var(--sqm-danger-color-icon)",
7348
5653
  },
7349
5654
  },
7350
5655
  PartnerAlertContainer: {
7351
5656
  "&::part(base)": {
7352
- backgroundColor: "var(--sl-color-sky-100)",
5657
+ backgroundColor: "var(--sqm-informative-color-background)",
7353
5658
  borderTop: "none",
7354
5659
  padding: "0 16px",
5660
+ border: "none",
5661
+ color: "var(--sqm-informative-color-text)",
5662
+ marginBottom: "16px",
7355
5663
  },
7356
5664
  "& sl-icon::part(base)": {
7357
- color: "var(--sl-color-blue-500)",
5665
+ color: "var(--sqm-informative-color-icon)",
7358
5666
  },
7359
5667
  },
7360
5668
  PageDescriptionText: {
7361
- color: "var(--sl-color-neutral-500)",
5669
+ color: "var(--sqm-text-subdued)",
7362
5670
  fontSize: "var(--sl-font-size-medium)",
7363
5671
  },
7364
5672
  PhoneInputsSection: {
@@ -7381,9 +5689,9 @@ const style$7 = {
7381
5689
  },
7382
5690
  },
7383
5691
  };
7384
- const sheet$6 = JSS.createStyleSheet(style$7);
7385
- const styleString$6 = sheet$6.toString();
7386
- const vanillaStyle$4 = `
5692
+ const sheet$5 = JSS.createStyleSheet(style$6);
5693
+ const styleString$5 = sheet$5.toString();
5694
+ const vanillaStyle$3 = `
7387
5695
  :host{
7388
5696
  display: block;
7389
5697
  }
@@ -7392,11 +5700,15 @@ const vanillaStyle$4 = `
7392
5700
  padding: 0;
7393
5701
  box-sizing: border-box;
7394
5702
  }
5703
+ a {
5704
+ color: var(--sqm-text);
5705
+ color: inherit !important;
5706
+ text-decoration: underline;
5707
+ }
7395
5708
 
7396
5709
  p {
7397
5710
  line-height: 18px;
7398
- color: var(--sl-color-gray-800);
7399
- font-size: var(--sl-font-size-small);
5711
+ font-size: var(--sl-font-size-small);
7400
5712
  }
7401
5713
 
7402
5714
  sl-radio-group::part(base) {
@@ -7407,11 +5719,157 @@ const vanillaStyle$4 = `
7407
5719
  sl-select#phoneNumberCountryCode::part(menu) {
7408
5720
  min-width: 250px;
7409
5721
  }
7410
- `;
5722
+
5723
+ /* Corrected: Target sl-button::part(base) for primary button */
5724
+ sl-button[type="primary"]::part(base){
5725
+ background-color: var(--sqm-primary-button-background);
5726
+ color: var(--sqm-primary-button-color);
5727
+ border-color: var(--sqm-primary-button-color-border);
5728
+ border-radius: var(--sqm-primary-button-radius);
5729
+ }
5730
+
5731
+ sl-button[type="primary"]::part(base):hover{
5732
+ background-color: var(--sqm-primary-button-background-hover);
5733
+ }
5734
+
5735
+ sl-button[type="primary"]::part(base):focus{
5736
+ box-shadow: none;
5737
+ }
5738
+
5739
+ /* Corrected: Target sl-button::part(base) for secondary button */
5740
+ sl-button[type="secondary"]::part(base){
5741
+ background-color: var(--sqm-secondary-button-background);
5742
+ color: var(--sqm-secondary-button-color);
5743
+ border-color: var(--sqm-secondary-button-color-border);
5744
+ border-radius: var(--sqm-secondary-button-radius);
5745
+ }
5746
+
5747
+ sl-button[type="secondary"]::part(base):hover{
5748
+ background-color: var(--sqm-secondary-button-background-hover);
5749
+ }
5750
+
5751
+ /* Corrected: Target sl-button::part(base) for tertiary button */
5752
+ sl-button[type="tertiary"]::part(base){
5753
+ color: var(--sqm-text, var(--sl-color-neutral-800));
5754
+ width: max-content;
5755
+ display: flex;
5756
+ margin: auto;
5757
+ }
5758
+
5759
+ *::part(primarybutton-base){
5760
+ background-color: var(--sqm-primary-button-background);
5761
+ color: var(--sqm-primary-button-color);
5762
+ border-color: var(--sqm-primary-button-color-border);
5763
+ border-radius: var(--sqm-primary-button-radius);
5764
+ }
5765
+
5766
+ *::part(primarybutton-base):hover{
5767
+ background-color: var(--sqm-primary-button-background-hover);
5768
+ }
5769
+
5770
+ *::part(primarybutton-base):focus{
5771
+ box-shadow: none;
5772
+ }
5773
+
5774
+ *::part(secondarybutton-base){
5775
+ background-color: var(--sqm-secondary-button-background);
5776
+ color: var(--sqm-secondary-button-color);
5777
+ border-color: var(--sqm-secondary-button-color-border);
5778
+ border-radius: var(--sqm-secondary-button-radius);
5779
+ }
5780
+
5781
+ *::part(secondarybutton-base):hover{
5782
+ background-color: var(--sqm-secondary-button-background-hover);
5783
+ }
5784
+
5785
+ *::part(tertiarybutton-base){
5786
+ background-color: var(--sqm-tertiary-button-background);
5787
+ color: var(--sqm-tertiary-button-color);
5788
+ border-color: var(--sqm-tertiary-button-color-border);
5789
+ border-radius: var(--sqm-tertiary-button-radius);
5790
+ width: max-content;
5791
+ display: flex;
5792
+ margin: auto;
5793
+ }
5794
+
5795
+ *::part(tertiarybutton-base):hover{
5796
+ background: var(--sqm-tertiary-button-background-hover);
5797
+ }
5798
+
5799
+ sl-input::part(label),
5800
+ sl-select::part(label),
5801
+ sl-textarea::part(label){
5802
+ font-size: var(--sqm-input-label-font-size, var(--sl-input-font-size-small));
5803
+ font-weight: var(--sl-font-weight-semibold);
5804
+ color: var(--sqm-input-label-color, var(--sqm-text), black);
5805
+ }
5806
+
5807
+ /* Corrected: Target sl-input, sl-select, sl-textarea base elements */
5808
+ sl-input::part(base),
5809
+ sl-dropdown::part(base),
5810
+ sl-textarea::part(base){
5811
+ background-color: var(--sqm-input-background, #fff);
5812
+ border-radius: var(--sqm-input-border-radius, var(--sl-input-border-radius-large), 0.25rem);
5813
+ color: var(--sqm-input-color, white);
5814
+ border-width: var(--sqm-border-width, 1px);
5815
+ border-style: solid;
5816
+ border-color: var(--sqm-input-border-color, #ccc);
5817
+ }
5818
+
5819
+
5820
+ sl-select::part(menu) {
5821
+ background: var(--sqm-input-background, inherit);
5822
+ color: var(--sqm-input-color, inherit);
5823
+ border:none;
5824
+ }
5825
+
5826
+ sl-select::part(panel) {
5827
+ border-radius: var(--sqm-border-radius-normal);
5828
+ }
5829
+
5830
+ sl-select::part(help-text) {
5831
+ color: var(--sqm-text-subdued, var(--sl-input-help-text-color, #6c757d));
5832
+ }
5833
+
5834
+ sl-input::part(base):focus,
5835
+ sl-select::part(base):focus, /* Corrected part name for sl-select */
5836
+ sl-textarea::part(base):focus { /* Corrected part name for sl-textarea */
5837
+ border: var(--sqm-input-focus-border, 1px solid var(--sl-input-border-color-focus, #007bff)); /* Added fallback for --sl-input-border-color-focus */
5838
+ }
5839
+
5840
+ sl-input[disabled]::part(label),
5841
+ sl-select[disabled]::part(label),
5842
+ sl-textarea[disabled]::part(label){
5843
+ color: var(--sqm-input-disabled-color, var(--sl-color-gray-600));
5844
+ }
5845
+
5846
+ sl-input[disabled]::part(base),
5847
+ sl-select[disabled]::part(base),
5848
+ sl-textarea[disabled]::part(base){
5849
+ background: var(--sqm-input-disabled-background, #f5f5f5);
5850
+ border-color: var(--sl-input-border-color-disabled, #e0e0e0); /* Example disabled border color */
5851
+ }
5852
+
5853
+
5854
+ sl-input::part(input):-webkit-autofill {
5855
+ box-shadow: 0 0 0 50px var(--sqm-input-background, #fff) inset !important;
5856
+ -webkit-text-fill-color: var(--sqm-input-color, white) !important;
5857
+ }
5858
+
5859
+ sl-input::part(input):-webkit-autofill:hover {
5860
+ box-shadow: 0 0 0 50px var(--sqm-input-background, #fff) inset !important;
5861
+ -webkit-text-fill-color: var(--sqm-input-color, white) !important;
5862
+ }
5863
+
5864
+ sl-input::part(input):-webkit-autofill:focus {
5865
+ box-shadow: 0 0 0 50px var(--sqm-input-background, #fff) inset !important;
5866
+ -webkit-text-fill-color: var(--sqm-input-color, white) !important;
5867
+ }
5868
+ `;
7411
5869
  const UserInfoFormView = (props) => {
7412
5870
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
7413
- const { states, states: { formState }, callbacks, text, refs, data, } = props;
7414
- const { classes } = sheet$6;
5871
+ const { states, states: { formState }, callbacks, text, refs, data: data$1, } = props;
5872
+ const { classes } = sheet$5;
7415
5873
  const bankingCollectionText = global.intl.formatMessage({
7416
5874
  id: "bankingCollectionText",
7417
5875
  defaultMessage: text.allowBankingCollection,
@@ -7419,7 +5877,7 @@ const UserInfoFormView = (props) => {
7419
5877
  termsAndConditionsLink: (index.h("a", { href: text.termsAndConditionsLink, target: "_blank" }, text.termsAndConditionsLabel)),
7420
5878
  });
7421
5879
  let regionLabel = undefined;
7422
- switch (data.regionLabelEnum) {
5880
+ switch (data$1.regionLabelEnum) {
7423
5881
  case "STATE":
7424
5882
  regionLabel = text.state;
7425
5883
  break;
@@ -7434,10 +5892,10 @@ const UserInfoFormView = (props) => {
7434
5892
  }
7435
5893
  return (index.h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
7436
5894
  index.h("style", { type: "text/css" },
7437
- styleString$6,
7438
- vanillaStyle$4),
5895
+ styleString$5,
5896
+ vanillaStyle$3),
7439
5897
  states.loadingError && (index.h("div", null,
7440
- index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$6.classes.AlertContainer },
5898
+ index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.AlertContainer },
7441
5899
  index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
7442
5900
  index.h("strong", null, text.error.loadingErrorAlertHeader),
7443
5901
  index.h("br", null),
@@ -7448,16 +5906,16 @@ const UserInfoFormView = (props) => {
7448
5906
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
7449
5907
  })),
7450
5908
  index.h("br", null))),
7451
- states.loading ? (index.h(sqmInvoiceTableView.GeneralLoadingView, null)) : (index.h("div", null,
5909
+ states.loading ? (index.h(utils$1.LoadingView, null)) : (index.h("div", null,
7452
5910
  index.h("div", { class: classes.TextContainer },
7453
5911
  index.h("div", null,
7454
5912
  !states.hideSteps && (index.h("p", null, global.intl.formatMessage({
7455
5913
  id: "formStep",
7456
5914
  defaultMessage: text.formStep,
7457
- }, { step: states.step, count: FORM_STEPS }))),
5915
+ }, { step: states.step, count: data.FORM_STEPS }))),
7458
5916
  index.h("h3", null, text.personalInformation),
7459
5917
  index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
7460
- ((_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 },
5918
+ ((_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 },
7461
5919
  index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
7462
5920
  index.h("strong", null, text.error.generalTitle),
7463
5921
  index.h("br", null),
@@ -7467,7 +5925,7 @@ const UserInfoFormView = (props) => {
7467
5925
  }, {
7468
5926
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
7469
5927
  }))),
7470
- (states.isPartner || states.isUser) && (index.h("sl-alert", { type: "primary", open: true, class: sheet$6.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
5928
+ (states.isPartner || states.isUser) && (index.h("sl-alert", { type: "primary", open: true, class: sheet$5.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
7471
5929
  index.h("sl-icon", { slot: "icon", name: "info-circle" }),
7472
5930
  index.h("strong", null, text.isPartnerAlertHeader),
7473
5931
  index.h("br", null),
@@ -7479,20 +5937,20 @@ const UserInfoFormView = (props) => {
7479
5937
  }))),
7480
5938
  index.h("div", null,
7481
5939
  index.h("div", { class: classes.InputContainer },
7482
- 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) ? {
5940
+ 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) ? {
7483
5941
  class: classes.ErrorInput,
7484
- helpText: sqmInvoiceTableView.formatErrorMessage(text.firstName, formState.errors.firstName),
5942
+ helpText: utils$1.formatErrorMessage(text.firstName, formState.errors.firstName),
7485
5943
  }
7486
5944
  : {}), { id: "firstName", name: "/firstName", required: true })),
7487
5945
  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) ? {
7488
5946
  class: classes.ErrorInput,
7489
- helpText: sqmInvoiceTableView.formatErrorMessage(text.lastName, formState.errors.lastName),
5947
+ helpText: utils$1.formatErrorMessage(text.lastName, formState.errors.lastName),
7490
5948
  }
7491
5949
  : {}), { id: "lastName", name: "/lastName", required: true })),
7492
5950
  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 }),
7493
5951
  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) ? {
7494
5952
  class: classes.ErrorInput,
7495
- helpText: sqmInvoiceTableView.formatErrorMessage(text.country, formState.errors.countryCode),
5953
+ helpText: utils$1.formatErrorMessage(text.country, formState.errors.countryCode),
7496
5954
  }
7497
5955
  : {}), { required: true, "onSl-select": (e) => callbacks.onFormChange("countryCode", e) }),
7498
5956
  index.h("sl-input", { class: classes.SearchInput, placeholder: text.searchForCountryText, onKeyDown: (e) => {
@@ -7500,8 +5958,8 @@ const UserInfoFormView = (props) => {
7500
5958
  e.stopPropagation();
7501
5959
  }, "onSl-input": (e) => {
7502
5960
  callbacks.setCountrySearch(e.target.value);
7503
- } }), (_e = data === null || data === void 0 ? void 0 : data.countries) === null || _e === void 0 ? void 0 :
7504
- _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 :
5961
+ } }), (_e = data$1 === null || data$1 === void 0 ? void 0 : data$1.countries) === null || _e === void 0 ? void 0 :
5962
+ _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 :
7505
5963
  _f.map((c) => (index.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } }, c.displayName)))),
7506
5964
  index.h("div", { class: classes.PhoneInputsSection },
7507
5965
  index.h("p", null, text.phoneNumber),
@@ -7515,13 +5973,13 @@ const UserInfoFormView = (props) => {
7515
5973
  e.stopPropagation();
7516
5974
  }, "onSl-input": (e) => {
7517
5975
  callbacks.setPhoneCountrySearch(e.target.value);
7518
- } }), (_h = data === null || data === void 0 ? void 0 : data.phoneCountries) === null || _h === void 0 ? void 0 :
5976
+ } }), (_h = data$1 === null || data$1 === void 0 ? void 0 : data$1.phoneCountries) === null || _h === void 0 ? void 0 :
7519
5977
  _h.map((c) => {
7520
5978
  var _a, _b;
7521
5979
  return (index.h("sl-menu-item", { value: c.countryCode },
7522
5980
  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 :
7523
5981
  _b.dial_code));
7524
- }), (_j = data === null || data === void 0 ? void 0 : data.allCountries) === null || _j === void 0 ? void 0 :
5982
+ }), (_j = data$1 === null || data$1 === void 0 ? void 0 : data$1.allCountries) === null || _j === void 0 ? void 0 :
7525
5983
  _j.map((c) => {
7526
5984
  var _a, _b;
7527
5985
  return (index.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } },
@@ -7530,42 +5988,42 @@ const UserInfoFormView = (props) => {
7530
5988
  })),
7531
5989
  index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", id: "phoneNumber", name: "/phoneNumber", value: formState.phoneNumber, validationError: ({ value }) => {
7532
5990
  // Naive phone number validation
7533
- sqmInvoiceTableView.validateBillingField(/[a-zA-Z]+/, value) &&
7534
- sqmInvoiceTableView.formatErrorMessage(text.phoneNumber, text.error.fieldInvalidError);
5991
+ utils$1.validateBillingField(/[a-zA-Z]+/, value) &&
5992
+ utils$1.formatErrorMessage(text.phoneNumber, text.error.fieldInvalidError);
7535
5993
  }, disabled: states.disabled || states.isPartner }, (((_k = formState.errors) === null || _k === void 0 ? void 0 : _k.phoneNumber) ? {
7536
5994
  class: classes.ErrorInput,
7537
- helpText: sqmInvoiceTableView.formatErrorMessage(text.phoneNumber, formState.errors.phoneNumber),
5995
+ helpText: utils$1.formatErrorMessage(text.phoneNumber, formState.errors.phoneNumber),
7538
5996
  }
7539
5997
  : {}), { required: true })))),
7540
5998
  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 }) =>
7541
5999
  // Checks for non-ASCII characters
7542
- !sqmInvoiceTableView.validateBillingField(/^[\x20-\xFF]+$/, value) &&
7543
- sqmInvoiceTableView.formatErrorMessage(text.address, text.error.invalidCharacterError), disabled: states.disabled || states.isPartner }, (((_l = formState.errors) === null || _l === void 0 ? void 0 : _l.address) ? {
6000
+ !utils$1.validateBillingField(/^[\x20-\xFF]+$/, value) &&
6001
+ utils$1.formatErrorMessage(text.address, text.error.invalidCharacterError), disabled: states.disabled || states.isPartner }, (((_l = formState.errors) === null || _l === void 0 ? void 0 : _l.address) ? {
7544
6002
  class: classes.ErrorInput,
7545
- helpText: sqmInvoiceTableView.formatErrorMessage(text.address, formState.errors.address),
6003
+ helpText: utils$1.formatErrorMessage(text.address, formState.errors.address),
7546
6004
  }
7547
6005
  : {}), { required: true })),
7548
6006
  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 }) =>
7549
6007
  // Checks for non-ASCII characters
7550
- !sqmInvoiceTableView.validateBillingField(/^[\x20-\xFF]+$/, value) &&
7551
- sqmInvoiceTableView.formatErrorMessage(text.city, text.error.invalidCharacterError), disabled: states.disabled || states.isPartner }, (((_m = formState.errors) === null || _m === void 0 ? void 0 : _m.city) ? {
6008
+ !utils$1.validateBillingField(/^[\x20-\xFF]+$/, value) &&
6009
+ utils$1.formatErrorMessage(text.city, text.error.invalidCharacterError), disabled: states.disabled || states.isPartner }, (((_m = formState.errors) === null || _m === void 0 ? void 0 : _m.city) ? {
7552
6010
  class: classes.ErrorInput,
7553
- helpText: sqmInvoiceTableView.formatErrorMessage(text.city, formState.errors.city),
6011
+ helpText: utils$1.formatErrorMessage(text.city, formState.errors.city),
7554
6012
  }
7555
6013
  : {}), { required: true })),
7556
6014
  !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) ? {
7557
6015
  class: classes.ErrorInput,
7558
- helpText: sqmInvoiceTableView.formatErrorMessage(text.state, formState.errors.state),
6016
+ helpText: utils$1.formatErrorMessage(text.state, formState.errors.state),
7559
6017
  }
7560
- : {}), { required: true }), (_p = data.regions) === null || _p === void 0 ? void 0 : _p.map((r) => (index.h("sl-menu-item", { value: r.value }, r.label))))),
6018
+ : {}), { 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))))),
7561
6019
  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) ? {
7562
6020
  class: classes.ErrorInput,
7563
- helpText: sqmInvoiceTableView.formatErrorMessage(text.postalCode, formState.errors.postalCode),
6021
+ helpText: utils$1.formatErrorMessage(text.postalCode, formState.errors.postalCode),
7564
6022
  }
7565
6023
  : {}), { required: true })),
7566
6024
  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) ? {
7567
6025
  class: classes.ErrorInput,
7568
- helpText: sqmInvoiceTableView.formatErrorMessage(text.currency, formState.errors.currency),
6026
+ helpText: utils$1.formatErrorMessage(text.currency, formState.errors.currency),
7569
6027
  }
7570
6028
  : {}), { required: true, ref: (el) => (refs.currencyRef.current = el) }),
7571
6029
  index.h("sl-input", { class: classes.SearchInput, placeholder: text.searchForCurrencyText, onKeyDown: (e) => {
@@ -7573,11 +6031,11 @@ const UserInfoFormView = (props) => {
7573
6031
  e.stopPropagation();
7574
6032
  }, "onSl-input": (e) => {
7575
6033
  callbacks.setCurrencySearch(e.target.value);
7576
- } }), (_s = data === null || data === void 0 ? void 0 : data.currencies) === null || _s === void 0 ? void 0 :
6034
+ } }), (_s = data$1 === null || data$1 === void 0 ? void 0 : data$1.currencies) === null || _s === void 0 ? void 0 :
7577
6035
  _s.map((c) => (index.h("sl-menu-item", { value: c.currencyCode },
7578
6036
  c.currencyCode,
7579
6037
  " - ",
7580
- c.displayName))), (_t = data === null || data === void 0 ? void 0 : data.allCurrencies) === null || _t === void 0 ? void 0 :
6038
+ c.displayName))), (_t = data$1 === null || data$1 === void 0 ? void 0 : data$1.allCurrencies) === null || _t === void 0 ? void 0 :
7581
6039
  _t.map((c) => (index.h("sl-menu-item", { value: c.currencyCode, style: { display: "none" } },
7582
6040
  c.currencyCode,
7583
6041
  " - ",
@@ -7586,7 +6044,7 @@ const UserInfoFormView = (props) => {
7586
6044
  index.h("sl-checkbox", { exportparts: "label: input-label, base: input-base", checked: formState.allowBankingCollection === true, "onSl-change": (e) => {
7587
6045
  e.target.value = e.target.checked;
7588
6046
  }, disabled: states.isPartner ? false : states.disabled, required: true, value: formState.allowBankingCollection, id: "allowBankingCollection", name: "/allowBankingCollection" }, bankingCollectionText),
7589
- ((_u = formState.errors) === null || _u === void 0 ? void 0 : _u.allowBankingCollection) && (index.h("p", { class: classes.ErrorText }, sqmInvoiceTableView.formatErrorMessage(text.termsAndConditionsLabel, formState.errors.allowBankingCollection))))),
6047
+ ((_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))))),
7590
6048
  index.h("sl-button", { type: "primary", disabled: states.isPartner ? false : states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton))))));
7591
6049
  };
7592
6050
 
@@ -7595,12 +6053,12 @@ function useUserInfoForm(props) {
7595
6053
  const currencyRef = stencilHooks_module.useRef(undefined);
7596
6054
  const phoneCountryRef = stencilHooks_module.useRef(undefined);
7597
6055
  const formRef = stencilHooks_module.useRef(null);
7598
- const context = index_module.Fn(TAX_FORM_CONTEXT_NAMESPACE);
7599
- const countries = index_module.Fn(SORTED_COUNTRIES_NAMESPACE);
7600
- const [step, setStep] = index_module.Pn(TAX_CONTEXT_NAMESPACE);
7601
- const [userFormContext, setUserFormContext] = index_module.Pn(USER_FORM_CONTEXT_NAMESPACE);
7602
- const { data, loading, errors: userError, } = index_module.$n(USER_QUERY_NAMESPACE);
7603
- const _currencies = index_module.Fn(CURRENCIES_NAMESPACE);
6056
+ const context = index_module.Fn(data.TAX_FORM_CONTEXT_NAMESPACE);
6057
+ const countries = index_module.Fn(data.SORTED_COUNTRIES_NAMESPACE);
6058
+ const [step, setStep] = index_module.Pn(data.TAX_CONTEXT_NAMESPACE);
6059
+ const [userFormContext, setUserFormContext] = index_module.Pn(data.USER_FORM_CONTEXT_NAMESPACE);
6060
+ const { data: data$1, loading, errors: userError, } = index_module.$n(data.USER_QUERY_NAMESPACE);
6061
+ const _currencies = index_module.Fn(data.CURRENCIES_NAMESPACE);
7604
6062
  const currencies = stencilHooks_module.useMemo(() => [...(_currencies || [])].sort((a, b) => a.displayName.localeCompare(b.displayName)), [_currencies]);
7605
6063
  const [countrySearch, setCountrySearch] = stencilHooks_module.useState("");
7606
6064
  const [phoneCountrySearch, setPhoneCountrySearch] = stencilHooks_module.useState("");
@@ -7611,11 +6069,11 @@ function useUserInfoForm(props) {
7611
6069
  const [formErrors, setErrors] = stencilHooks_module.useState({});
7612
6070
  stencilHooks_module.useEffect(() => {
7613
6071
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
7614
- const user = data === null || data === void 0 ? void 0 : data.user;
6072
+ const user = data$1 === null || data$1 === void 0 ? void 0 : data$1.user;
7615
6073
  if (!user || step !== "/1")
7616
6074
  return;
7617
6075
  // If form already filled out, skip initialising it
7618
- if (sqmInvoiceTableView.objectIsFull(userFormContext))
6076
+ if (utils$1.objectIsFull(userFormContext))
7619
6077
  return;
7620
6078
  // Prefer MI email if it was verified before this
7621
6079
  const email = ((_a = user.managedIdentity) === null || _a === void 0 ? void 0 : _a.emailVerified) ? user.managedIdentity.email
@@ -7652,7 +6110,7 @@ function useUserInfoForm(props) {
7652
6110
  postalCode: (_k = user.customFields) === null || _k === void 0 ? void 0 : _k.postalCode,
7653
6111
  });
7654
6112
  }
7655
- }, [data, step, userFormContext]);
6113
+ }, [data$1, step, userFormContext]);
7656
6114
  const onFormChange = (field, e) => {
7657
6115
  var _a, _b;
7658
6116
  const value = (_b = (_a = e.detail) === null || _a === void 0 ? void 0 : _a.item) === null || _b === void 0 ? void 0 : _b.__value;
@@ -7744,7 +6202,7 @@ function useUserInfoForm(props) {
7744
6202
  }
7745
6203
  const hasStates = ["ES", "AU", "US", "CA"].includes(userFormContext.countryCode);
7746
6204
  const regionObj = hasStates
7747
- ? sqmInvoiceTableView.ADDRESS_REGIONS[userFormContext === null || userFormContext === void 0 ? void 0 : userFormContext.countryCode]
6205
+ ? IndirectTaxDetailsView.ADDRESS_REGIONS[userFormContext === null || userFormContext === void 0 ? void 0 : userFormContext.countryCode]
7748
6206
  : {};
7749
6207
  return {
7750
6208
  setStep: setStep,
@@ -7777,8 +6235,8 @@ function useUserInfoForm(props) {
7777
6235
  disabled: loading,
7778
6236
  loadingError: !!(userError === null || userError === void 0 ? void 0 : userError.message),
7779
6237
  loading: loading,
7780
- 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),
7781
- 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),
6238
+ 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),
6239
+ 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),
7782
6240
  formState: {
7783
6241
  ...userFormContext,
7784
6242
  errors: formErrors,
@@ -7941,6 +6399,13 @@ const TaxForm = class {
7941
6399
  * @uiName Support link text
7942
6400
  */
7943
6401
  this.supportLink = "support team";
6402
+ /**
6403
+ * @uiName States
6404
+ * @parentState { "parent": "sqm-tax-and-cash", "title": "Step 1" }
6405
+ * @componentState { "title": "Errors", "props": { "states": { "loadingError": true, "formState": { "errors": { "email": true, "firstName": true, "lastName": true, "countryCode": true, "currency": true } } } } }
6406
+ * @componentState { "title": "Loading", "props": { "states": { "loading": true } } }
6407
+ */
6408
+ this.stateController = "{}";
7944
6409
  stencilHooks_module.h$1(this);
7945
6410
  }
7946
6411
  disconnectedCallback() { }
@@ -7961,19 +6426,20 @@ const TaxForm = class {
7961
6426
  }
7962
6427
  render() {
7963
6428
  const props = index_module.isDemo() ? useDemoUserInfoForm(this) : useUserInfoForm(this);
7964
- return (index.h(index.Host, null, index.h(UserInfoFormView, { data: props.data,
6429
+ return (index.h(UserInfoFormView, { data: props.data,
7965
6430
  // @ts-ignore
7966
6431
  states: props.states, callbacks: {
7967
6432
  ...props.callbacks,
7968
6433
  onSubmit: props.onSubmit,
7969
- }, text: props.text, refs: props.refs })));
6434
+ }, text: props.text, refs: props.refs }));
7970
6435
  }
7971
6436
  };
7972
6437
  function useDemoUserInfoForm(props) {
7973
- const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
6438
+ const setStep = index_module.En(data.TAX_CONTEXT_NAMESPACE);
6439
+ // @ts-ignore
7974
6440
  return cjs.cjs({
7975
6441
  setStep,
7976
- onSubmit: () => {
6442
+ onSubmit: async () => {
7977
6443
  setStep("/2");
7978
6444
  },
7979
6445
  onRadioClick: () => { },
@@ -8013,23 +6479,16 @@ function useDemoUserInfoForm(props) {
8013
6479
  },
8014
6480
  },
8015
6481
  },
8016
- }, props.demoData || {}, { arrayMerge: (_, a) => a });
6482
+ }, props.demoData || parseStates.parseStates(props.stateController) || {}, { arrayMerge: (_, a) => a });
8017
6483
  }
8018
6484
 
8019
6485
  exports.sqm_banking_info_form = BankingInfoForm;
8020
- exports.sqm_code_verification = WidgetCodeVerification;
8021
6486
  exports.sqm_docusign_form = DocusignForm;
8022
6487
  exports.sqm_indirect_tax_form = IndirectTaxForm;
8023
6488
  exports.sqm_invoice_table = InvoiceTable;
8024
- exports.sqm_invoice_table_data_cell = InvoiceTableDataCell;
8025
6489
  exports.sqm_invoice_table_data_column = InvoiceTableDataColumn;
8026
- exports.sqm_invoice_table_date_cell = RewardTableDateCell;
8027
6490
  exports.sqm_invoice_table_date_column = InvoiceTableDateColumn;
8028
- exports.sqm_invoice_table_download_cell = InvoiceTableDownloadCell;
8029
6491
  exports.sqm_invoice_table_download_column = InvoiceTableGenericColumn;
8030
6492
  exports.sqm_payout_details_card = PayoutDetailsCard;
8031
- exports.sqm_table_cell = TableCell;
8032
- exports.sqm_table_row = TableRow;
8033
- exports.sqm_tax_and_cash = TaxAndCashMonolith;
8034
6493
  exports.sqm_tax_and_cash_dashboard = TaxAndCashDashboard;
8035
6494
  exports.sqm_user_info_form = TaxForm;