@saasquatch/mint-components 1.16.0-9 → 2.0.0-0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (984) hide show
  1. package/dist/cjs/ErrorView-3f91e5ab.js +11 -0
  2. package/dist/cjs/{GenericTableView-a9f4ba75.js → GenericTableView-a9845e80.js} +8 -8
  3. package/dist/cjs/IndirectTaxDetailsView-e5f70b8b.js +660 -0
  4. package/dist/cjs/{ShadowViewAddon-28865623.js → ShadowViewAddon-23b04c91.js} +1692 -1496
  5. package/dist/cjs/copy-text-view-51c8ee5d.js +122 -0
  6. package/dist/cjs/data-88adb95b.js +146 -0
  7. package/dist/cjs/{stencil-hooks.module-3a336b0f.js → dom-context-hooks.module-7fa676ae.js} +18 -18
  8. package/dist/cjs/{email-registration-view-55b378dc.js → email-registration-view-ace50780.js} +5 -3
  9. package/dist/cjs/{global-e31dc4f5.js → global-8bba5b3a.js} +11840 -11561
  10. package/dist/cjs/{index-a29c60ef.js → index-a43a63b4.js} +4 -0
  11. package/dist/cjs/{index.module-ee84433d.js → index.module-4f54e412.js} +191 -191
  12. package/dist/cjs/loader.cjs.js +5 -5
  13. package/dist/cjs/{luxon-2926d85f.js → luxon-949beaf2.js} +2 -2
  14. package/dist/cjs/mint-components.cjs.js +5 -5
  15. package/dist/cjs/{mixins-f7e0377a.js → mixins-4761d472.js} +6 -6
  16. package/dist/cjs/{mockRewardData-7815f10f.js → mockRewardData-df37c8a3.js} +1 -1
  17. package/dist/cjs/parseStates-d1effc19.js +16 -0
  18. package/dist/cjs/raisins-plop-target.cjs.entry.js +1 -1
  19. package/dist/cjs/{re-render-b324deab.js → re-render-d516138a.js} +4 -4
  20. package/dist/cjs/{sqm-banking-info-form_17.cjs.entry.js → sqm-banking-info-form_10.cjs.entry.js} +795 -2496
  21. package/dist/cjs/{sqm-base-registration-form-view-8a2c8763.js → sqm-base-registration-form-view-8847804c.js} +3 -3
  22. package/dist/cjs/{sqm-big-stat_43.cjs.entry.js → sqm-big-stat_46.cjs.entry.js} +1475 -382
  23. package/dist/cjs/{sqm-close-button-view-ea3fa23b.js → sqm-close-button-view-5e85ac51.js} +2 -2
  24. package/dist/cjs/sqm-close-button.cjs.entry.js +6 -6
  25. package/dist/cjs/sqm-code-verification.cjs.entry.js +352 -0
  26. package/dist/cjs/sqm-context-router.cjs.entry.js +11 -11
  27. package/dist/cjs/sqm-email-verification.cjs.entry.js +152 -28
  28. package/dist/cjs/sqm-empty_4.cjs.entry.js +58 -63
  29. package/dist/cjs/sqm-form-message.cjs.entry.js +8 -8
  30. package/dist/cjs/sqm-google-sign-in.cjs.entry.js +14 -14
  31. package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +6 -6
  32. package/dist/cjs/sqm-header-logo.cjs.entry.js +3 -3
  33. package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +9 -9
  34. package/dist/cjs/sqm-invoice-table-data-cell_5.cjs.entry.js +84 -0
  35. package/dist/cjs/{sqm-lead-checkbox-field-view-34d94919.js → sqm-lead-checkbox-field-view-340acad0.js} +2 -2
  36. package/dist/cjs/sqm-lead-checkbox-field.cjs.entry.js +9 -9
  37. package/dist/cjs/{sqm-lead-input-field-view-89308aab.js → sqm-lead-input-field-view-06ed3632.js} +3 -3
  38. package/dist/cjs/sqm-lead-input-field.cjs.entry.js +10 -10
  39. package/dist/cjs/sqm-leaderboard-rank-view-6a1e63de.js +10 -0
  40. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +7 -7
  41. package/dist/cjs/{sqm-logout-current-user-view-11d57c12.js → sqm-logout-current-user-view-b61c8bdf.js} +1 -1
  42. package/dist/cjs/sqm-logout-current-user.cjs.entry.js +6 -6
  43. package/dist/cjs/sqm-navigation-sidebar-item-view-4e88f774.js +56 -0
  44. package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +31 -8
  45. package/dist/cjs/{sqm-navigation-sidebar-view-17111896.js → sqm-navigation-sidebar-view-de90ef03.js} +18 -8
  46. package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +25 -9
  47. package/dist/cjs/sqm-pagination_3.cjs.entry.js +97 -70
  48. package/dist/cjs/sqm-password-field.cjs.entry.js +11 -11
  49. package/dist/cjs/sqm-popup-container.cjs.entry.js +5 -5
  50. package/dist/cjs/{sqm-portal-container-view-4f15143a.js → sqm-portal-container-view-07e4343f.js} +2 -2
  51. package/dist/cjs/{sqm-portal-email-verification-view-7ebb426a.js → sqm-portal-email-verification-view-5518eb0d.js} +4 -4
  52. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +15 -15
  53. package/dist/cjs/sqm-portal-google-login.cjs.entry.js +9 -9
  54. package/dist/cjs/sqm-portal-google-registration-form.cjs.entry.js +13 -13
  55. package/dist/cjs/{sqm-portal-login-view-761a4d8e.js → sqm-portal-login-view-bb50304c.js} +4 -4
  56. package/dist/cjs/sqm-portal-logout.cjs.entry.js +4 -4
  57. package/dist/cjs/{sqm-portal-profile-view-33164798.js → sqm-portal-profile-view-615e6975.js} +4 -4
  58. package/dist/cjs/sqm-portal-profile.cjs.entry.js +15 -15
  59. package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +5 -5
  60. package/dist/cjs/{sqm-portal-registration-form-view-637a4bf4.js → sqm-portal-registration-form-view-5a96c2f5.js} +3 -3
  61. package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +9 -9
  62. package/dist/cjs/{sqm-portal-reset-password-view-fe602822.js → sqm-portal-reset-password-view-25eb2099.js} +3 -3
  63. package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +11 -11
  64. package/dist/cjs/{sqm-portal-verify-email-view-7b678f34.js → sqm-portal-verify-email-view-1c4e781f.js} +3 -3
  65. package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +12 -12
  66. package/dist/cjs/{sqm-qr-code-view-15dfc0b6.js → sqm-qr-code-view-4ccf89da.js} +4 -9
  67. package/dist/cjs/sqm-qr-code.cjs.entry.js +14 -26
  68. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +131 -44
  69. package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +4 -4
  70. package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +5 -5
  71. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +85 -38
  72. package/dist/cjs/sqm-route.cjs.entry.js +1 -1
  73. package/dist/cjs/sqm-scroll.cjs.entry.js +21 -67
  74. package/dist/cjs/sqm-stencilbook.cjs.entry.js +13741 -12408
  75. package/dist/cjs/sqm-tab.cjs.entry.js +5 -5
  76. package/dist/cjs/sqm-tabs.cjs.entry.js +28 -13
  77. package/dist/cjs/sqm-tax-and-cash.cjs.entry.js +1313 -0
  78. package/dist/cjs/sqm-text-span-view-7a61ae4c.js +63 -0
  79. package/dist/cjs/sqm-text-span.cjs.entry.js +7 -7
  80. package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +19 -11
  81. package/dist/cjs/sqm-widget-verification.cjs.entry.js +25 -13
  82. package/dist/cjs/{useChildElements-1b35d945.js → useChildElements-966c9041.js} +5 -5
  83. package/dist/cjs/{useInstantAccessRegistration-0537e28e.js → useInstantAccessRegistration-08bcb487.js} +4 -4
  84. package/dist/cjs/{useLeadFormState-c83d2034.js → useLeadFormState-fd0445f9.js} +7 -7
  85. package/dist/cjs/{usePayoutStatus-c84a7d98.js → usePayoutStatus-fe32dd1a.js} +49 -17
  86. package/dist/cjs/{usePortalLogin-63d896d1.js → usePortalLogin-353f776a.js} +4 -4
  87. package/dist/cjs/{usePortalRegistrationForm-f25d89e7.js → usePortalRegistrationForm-75b647fe.js} +6 -6
  88. package/dist/cjs/{useReferralCodes-82e8797b.js → useReferralCodes-11cdf43b.js} +3 -3
  89. package/dist/cjs/{useReferralTable-7c3f9600.js → useReferralTable-90d4d6e9.js} +10 -10
  90. package/dist/cjs/{useRegistrationFormState-7b820f0c.js → useRegistrationFormState-bbee6e7b.js} +6 -6
  91. package/dist/cjs/{useVerificationEmail-95a82767.js → useVerificationEmail-9dd3997a.js} +6 -6
  92. package/dist/cjs/{utilities-78f5e169.js → utilities-9a0c5e91.js} +4 -4
  93. package/dist/cjs/{utils-6847bc06.js → utils-0d3ac0fb.js} +4 -0
  94. package/dist/cjs/utils-83d125fa.js +105 -0
  95. package/dist/collection/collection-manifest.json +1 -1
  96. package/dist/collection/components/sqm-big-stat/BigStat.stories.js +13 -0
  97. package/dist/collection/components/sqm-big-stat/sqm-big-stat-view.js +15 -8
  98. package/dist/collection/components/sqm-big-stat/sqm-big-stat.js +171 -4
  99. package/dist/collection/components/sqm-big-stat/useBigStat.js +127 -8
  100. package/dist/collection/components/sqm-big-stat/useDemoBigStat.js +14 -5
  101. package/dist/collection/components/sqm-brand/sqm-brand.js +12 -4
  102. package/dist/collection/components/sqm-card-feed/sqm-card-feed.js +2 -0
  103. package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field-view.js +7 -0
  104. package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +1 -0
  105. package/dist/collection/components/sqm-coupon-code/CouponCode.stories.js +4 -0
  106. package/dist/collection/components/sqm-coupon-code/sqm-coupon-code-view.js +13 -13
  107. package/dist/collection/components/sqm-coupon-code/sqm-coupon-code.js +170 -1
  108. package/dist/collection/components/sqm-coupon-code/useCouponCode.js +1 -0
  109. package/dist/collection/components/sqm-divided-layout/sqm-divided-layout-view.js +14 -6
  110. package/dist/collection/components/sqm-divided-layout/sqm-divided-layout.js +62 -3
  111. package/dist/collection/components/sqm-edit-profile/sqm-edit-profile-view.js +1 -1
  112. package/dist/collection/components/sqm-empty/sqm-empty-view.js +1 -1
  113. package/dist/collection/components/sqm-form-message/FormMessage.stories.js +8 -16
  114. package/dist/collection/components/sqm-form-message/sqm-form-message.css +50 -11
  115. package/dist/collection/components/sqm-form-message/sqm-form-message.js +5 -5
  116. package/dist/collection/components/sqm-header-logo/sqm-header-logo.js +1 -0
  117. package/dist/collection/components/sqm-hero/Hero.stories.js +11 -0
  118. package/dist/collection/components/sqm-hero/sqm-hero-view.js +16 -8
  119. package/dist/collection/components/sqm-hero/sqm-hero.js +39 -4
  120. package/dist/collection/components/sqm-hero-image/sqm-hero-image-view.js +7 -4
  121. package/dist/collection/components/sqm-hero-image/sqm-hero-image.js +80 -0
  122. package/dist/collection/components/sqm-image/sqm-image.js +1 -0
  123. package/dist/collection/components/sqm-instant-access-registration/sqm-instant-access-registration.js +4 -3
  124. package/dist/collection/components/sqm-invoice-table/cells/sqm-invoice-table-download-cell.js +2 -2
  125. package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-data-column.js +2 -1
  126. package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-date-column.js +2 -1
  127. package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-download-column.js +2 -1
  128. package/dist/collection/components/sqm-invoice-table/sqm-invoice-table-view.js +1 -1
  129. package/dist/collection/components/sqm-invoice-table/sqm-invoice-table.js +6 -3
  130. package/dist/collection/components/sqm-leaderboard/Leaderboard.stories.js +37 -0
  131. package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +60 -54
  132. package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +202 -36
  133. package/dist/collection/components/sqm-leaderboard-rank/sqm-leaderboard-rank-view.js +2 -2
  134. package/dist/collection/components/sqm-leaderboard-rank/sqm-leaderboard-rank.css +2 -2
  135. package/dist/collection/components/sqm-link-button/sqm-link-button.js +1 -0
  136. package/dist/collection/components/sqm-logout-current-user/sqm-logout-current-user.js +2 -1
  137. package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +28 -3
  138. package/dist/collection/components/sqm-name-fields/sqm-name-fields.js +2 -1
  139. package/dist/collection/components/sqm-navigation-menu/sqm-navigation-menu.js +1 -0
  140. package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar-view.js +17 -7
  141. package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar.js +85 -5
  142. package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view.js +18 -7
  143. package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.js +233 -1
  144. package/dist/collection/components/sqm-navigation-sidebar-item/useNavigationSidebarItem.js +9 -1
  145. package/dist/collection/components/sqm-pagination/sqm-pagination-view.js +3 -3
  146. package/dist/collection/components/sqm-pagination/sqm-pagination.js +43 -2
  147. package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll-view.js +1 -1
  148. package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password-view.js +8 -4
  149. package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password.js +2 -1
  150. package/dist/collection/components/sqm-portal-container/sqm-portal-container-view.js +1 -1
  151. package/dist/collection/components/sqm-portal-container/sqm-portal-container.js +1 -8
  152. package/dist/collection/components/sqm-portal-footer/sqm-portal-footer-view.js +6 -6
  153. package/dist/collection/components/sqm-portal-footer/sqm-portal-footer.js +1 -0
  154. package/dist/collection/components/sqm-portal-forgot-password/PortalForgotPassword.stories.js +5 -4
  155. package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.js +21 -13
  156. package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password.js +103 -3
  157. package/dist/collection/components/sqm-portal-frame/sqm-portal-frame-view.js +41 -36
  158. package/dist/collection/components/sqm-portal-frame/sqm-portal-frame.js +102 -2
  159. package/dist/collection/components/sqm-portal-frame/usePortalFrame.js +4 -1
  160. package/dist/collection/components/sqm-portal-login/PortalLogin.stories.js +10 -5
  161. package/dist/collection/components/sqm-portal-login/sqm-portal-login-view.js +1 -1
  162. package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +2 -1
  163. package/dist/collection/components/sqm-portal-logout/sqm-portal-logout.js +1 -0
  164. package/dist/collection/components/sqm-portal-profile/sqm-portal-profile-view.js +1 -1
  165. package/dist/collection/components/sqm-portal-profile/sqm-portal-profile.js +1 -0
  166. package/dist/collection/components/sqm-portal-protected-route/sqm-portal-protected-route.js +1 -0
  167. package/dist/collection/components/sqm-portal-register/sqm-portal-register.js +1 -2
  168. package/dist/collection/components/sqm-portal-registration-form/PortalRegistrationForm.stories.js +1 -0
  169. package/dist/collection/components/sqm-program-explainer/sqm-program-explainer-view.js +1 -1
  170. package/dist/collection/components/sqm-program-explainer/sqm-program-explainer.js +3 -1
  171. package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step-view.js +12 -4
  172. package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step.js +78 -3
  173. package/dist/collection/components/sqm-program-menu/sqm-program-menu.js +1 -0
  174. package/dist/collection/components/sqm-qr-code/sqm-qr-code-view.js +2 -7
  175. package/dist/collection/components/sqm-qr-code/sqm-qr-code.js +1 -0
  176. package/dist/collection/components/sqm-qr-code/useQRCode.js +1 -13
  177. package/dist/collection/components/sqm-radio-card/sqm-radio-card-view.js +9 -2
  178. package/dist/collection/components/sqm-referral-card/sqm-referral-card-view.js +34 -31
  179. package/dist/collection/components/sqm-referral-card/sqm-referral-card.js +81 -10
  180. package/dist/collection/components/sqm-referral-code/ReferralCode.stories.js +3 -0
  181. package/dist/collection/components/sqm-referral-code/sqm-referral-code.js +170 -1
  182. package/dist/collection/components/sqm-referral-codes/ReferralCodes.stories.js +6 -0
  183. package/dist/collection/components/sqm-referral-codes/sqm-referral-codes-view.js +46 -46
  184. package/dist/collection/components/sqm-referral-codes/sqm-referral-codes.js +29 -1
  185. package/dist/collection/components/sqm-referral-table/ReferralTable.stories.js +2 -2
  186. package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +52 -17
  187. package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-status-cell.js +62 -7
  188. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-column.js +2 -1
  189. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-date-column.js +4 -2
  190. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.js +6 -3
  191. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-status-column.js +6 -3
  192. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-user-column.js +4 -2
  193. package/dist/collection/components/sqm-referral-table/sqm-referral-table.js +4 -1
  194. package/dist/collection/components/sqm-referred-registration/sqm-referred-registration.js +3 -10
  195. package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeList.stories.js +19 -19
  196. package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeListData.js +32 -6
  197. package/dist/collection/components/sqm-reward-exchange-list/progressBar.js +10 -10
  198. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +48 -49
  199. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +83 -35
  200. package/dist/collection/components/sqm-rewards-table/RewardsTableCell.stories.js +1 -1
  201. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.js +6 -5
  202. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.js +5 -4
  203. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.js +56 -7
  204. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.js +3 -2
  205. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.js +3 -2
  206. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.js +3 -2
  207. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.js +2 -1
  208. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.js +8 -6
  209. package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +4 -2
  210. package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +1 -1
  211. package/dist/collection/components/sqm-route/sqm-route.js +1 -0
  212. package/dist/collection/components/sqm-router/sqm-router.js +2 -0
  213. package/dist/collection/components/sqm-scroll/sqm-scroll.js +23 -101
  214. package/dist/collection/components/sqm-share-button/ShareButton.stories.js +3 -1
  215. package/dist/collection/components/sqm-share-button/sqm-share-button-view.js +12 -24
  216. package/dist/collection/components/sqm-share-button/sqm-share-button.js +57 -10
  217. package/dist/collection/components/sqm-share-code/sqm-share-code.js +170 -1
  218. package/dist/collection/components/sqm-share-link/ShareLink.stories.js +25 -0
  219. package/dist/collection/components/sqm-share-link/sqm-share-link.js +173 -3
  220. package/dist/collection/components/sqm-stat-container/sqm-stat-container-view.js +21 -9
  221. package/dist/collection/components/sqm-stat-container/sqm-stat-container.js +112 -2
  222. package/dist/collection/components/sqm-stencilbook/BrandSelector.js +198 -0
  223. package/dist/collection/components/sqm-stencilbook/Themes.js +325 -33
  224. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +81 -99
  225. package/dist/collection/components/sqm-table-row/sqm-table-row.js +2 -2
  226. package/dist/collection/components/sqm-tabs/Tabs.stories.js +7 -0
  227. package/dist/collection/components/sqm-tabs/sqm-tabs-view.js +17 -2
  228. package/dist/collection/components/sqm-tabs/sqm-tabs.js +30 -2
  229. package/dist/collection/components/sqm-task-card/DetailsView.js +8 -2
  230. package/dist/collection/components/sqm-task-card/progress-bar/progress-bar-view.js +3 -2
  231. package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +138 -157
  232. package/dist/collection/components/sqm-task-card/sqm-task-card.js +147 -4
  233. package/dist/collection/components/sqm-task-card/useTaskCard.js +10 -0
  234. package/dist/collection/components/sqm-text/Text.stories.js +12 -0
  235. package/dist/collection/components/sqm-text/sqm-text.js +101 -48
  236. package/dist/collection/components/sqm-text-span/sqm-text-span-view.js +44 -43
  237. package/dist/collection/components/sqm-text-span/sqm-text-span.js +52 -2
  238. package/dist/collection/components/sqm-timeline/Timeline.stories.js +8 -1
  239. package/dist/collection/components/sqm-timeline/sqm-timeline-entry-view.js +45 -45
  240. package/dist/collection/components/sqm-timeline/sqm-timeline-entry.js +52 -0
  241. package/dist/collection/components/sqm-timeline/sqm-timeline.js +3 -1
  242. package/dist/collection/components/sqm-titled-section/sqm-titled-section.js +2 -0
  243. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +12 -2
  244. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.js +2 -2
  245. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +138 -14
  246. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-controller.js +39 -7
  247. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +45 -8
  248. package/dist/collection/components/tax-and-cash/TaxForm.stories.js +13 -8
  249. package/dist/collection/components/tax-and-cash/{sqm-tax-and-cash/data.js → data.js} +9 -0
  250. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +23 -73
  251. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +11 -2
  252. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +5 -3
  253. package/dist/collection/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.js +4 -4
  254. package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +21 -76
  255. package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +5 -5
  256. package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +2 -2
  257. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +59 -72
  258. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +2 -2
  259. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +6 -4
  260. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card-view.js +24 -27
  261. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js +26 -1
  262. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/usePayoutDetailsCard.js +2 -2
  263. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +59 -54
  264. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +64 -13
  265. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +44 -12
  266. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/ErrorView.js +3 -27
  267. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +130 -25
  268. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +1 -1
  269. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +51 -20
  270. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +113 -44
  271. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +23 -12
  272. package/dist/collection/components/tax-and-cash/sqm-user-info-form/small-views/DocusignExpiredView.js +1 -1
  273. package/dist/collection/components/tax-and-cash/sqm-user-info-form/small-views/IndirectTaxDetailsView.js +17 -3
  274. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +183 -56
  275. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +10 -10
  276. package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +7 -5
  277. package/dist/collection/components/views/copy-text-view.js +65 -39
  278. package/dist/collection/components/views/email-registration-view.js +3 -1
  279. package/dist/collection/global/global.js +27 -12
  280. package/dist/collection/global/mixins.js +8 -8
  281. package/dist/collection/global/styles.js +334 -102
  282. package/dist/collection/global/styles.ts +434 -102
  283. package/dist/collection/insertfont.js +18 -0
  284. package/dist/collection/stories/PortalTemplates.stories.js +22 -30
  285. package/dist/collection/tables/GenericTableView.js +6 -6
  286. package/dist/collection/utils/parseStates.js +12 -0
  287. package/dist/collection/utils/utils.js +4 -0
  288. package/dist/esm/ErrorView-bbf0a042.js +9 -0
  289. package/dist/esm/{GenericTableView-7b9087af.js → GenericTableView-e43d310f.js} +8 -8
  290. package/dist/esm/IndirectTaxDetailsView-0a57b622.js +653 -0
  291. package/dist/esm/{ShadowViewAddon-f2176779.js → ShadowViewAddon-c0bd62f7.js} +1689 -1493
  292. package/dist/esm/copy-text-view-83b09456.js +120 -0
  293. package/dist/esm/data-807686c2.js +130 -0
  294. package/dist/esm/{stencil-hooks.module-4bc38af4.js → dom-context-hooks.module-63370afd.js} +13 -13
  295. package/dist/esm/{email-registration-view-a7818cf2.js → email-registration-view-1f587f8b.js} +5 -3
  296. package/dist/esm/{global-be1f9992.js → global-1099f20d.js} +11864 -11586
  297. package/dist/esm/{index-91e7729f.js → index-b3a06de8.js} +4 -0
  298. package/dist/esm/{index.module-89a79f66.js → index.module-c9811a48.js} +154 -154
  299. package/dist/esm/loader.js +5 -5
  300. package/dist/esm/{luxon-8d51c92b.js → luxon-bbf75a9d.js} +1 -1
  301. package/dist/esm/mint-components.js +5 -5
  302. package/dist/esm/{mixins-83f90fa1.js → mixins-f750863a.js} +6 -6
  303. package/dist/esm/{mockRewardData-a3cdb832.js → mockRewardData-96a2d26d.js} +1 -1
  304. package/dist/esm/parseStates-ed75e224.js +14 -0
  305. package/dist/esm/raisins-plop-target.entry.js +1 -1
  306. package/dist/esm/{re-render-cc945f38.js → re-render-7e22fb0d.js} +2 -2
  307. package/dist/esm/{sqm-banking-info-form_17.entry.js → sqm-banking-info-form_10.entry.js} +651 -2345
  308. package/dist/esm/{sqm-base-registration-form-view-593d4ac3.js → sqm-base-registration-form-view-193f1721.js} +3 -3
  309. package/dist/esm/{sqm-big-stat_43.entry.js → sqm-big-stat_46.entry.js} +1371 -281
  310. package/dist/esm/{sqm-close-button-view-f9819751.js → sqm-close-button-view-2fa57229.js} +2 -2
  311. package/dist/esm/sqm-close-button.entry.js +5 -5
  312. package/dist/esm/sqm-code-verification.entry.js +348 -0
  313. package/dist/esm/sqm-context-router.entry.js +4 -4
  314. package/dist/esm/sqm-email-verification.entry.js +145 -21
  315. package/dist/esm/sqm-empty_4.entry.js +55 -60
  316. package/dist/esm/sqm-form-message.entry.js +7 -7
  317. package/dist/esm/sqm-google-sign-in.entry.js +3 -3
  318. package/dist/esm/sqm-graphql-client-provider.entry.js +3 -3
  319. package/dist/esm/sqm-header-logo.entry.js +2 -2
  320. package/dist/esm/sqm-instant-access-registration.entry.js +8 -8
  321. package/dist/esm/sqm-invoice-table-data-cell_5.entry.js +76 -0
  322. package/dist/esm/{sqm-lead-checkbox-field-view-a8c1c78e.js → sqm-lead-checkbox-field-view-cbafee07.js} +2 -2
  323. package/dist/esm/sqm-lead-checkbox-field.entry.js +7 -7
  324. package/dist/esm/{sqm-lead-input-field-view-4ede5d7f.js → sqm-lead-input-field-view-f3775c28.js} +3 -3
  325. package/dist/esm/sqm-lead-input-field.entry.js +8 -8
  326. package/dist/esm/sqm-leaderboard-rank-view-18baae5b.js +8 -0
  327. package/dist/esm/sqm-leaderboard-rank.entry.js +6 -6
  328. package/dist/esm/{sqm-logout-current-user-view-8ef8180f.js → sqm-logout-current-user-view-f21e54e3.js} +1 -1
  329. package/dist/esm/sqm-logout-current-user.entry.js +5 -5
  330. package/dist/esm/sqm-navigation-sidebar-item-view-5a452423.js +54 -0
  331. package/dist/esm/sqm-navigation-sidebar-item.entry.js +30 -7
  332. package/dist/esm/{sqm-navigation-sidebar-view-9d802b78.js → sqm-navigation-sidebar-view-0a2ec560.js} +18 -8
  333. package/dist/esm/sqm-navigation-sidebar.entry.js +22 -6
  334. package/dist/esm/sqm-pagination_3.entry.js +91 -64
  335. package/dist/esm/sqm-password-field.entry.js +6 -6
  336. package/dist/esm/sqm-popup-container.entry.js +4 -4
  337. package/dist/esm/{sqm-portal-container-view-1683ae32.js → sqm-portal-container-view-176e92e3.js} +2 -2
  338. package/dist/esm/{sqm-portal-email-verification-view-35b4353b.js → sqm-portal-email-verification-view-7d86299c.js} +4 -4
  339. package/dist/esm/sqm-portal-email-verification.entry.js +7 -7
  340. package/dist/esm/sqm-portal-google-login.entry.js +8 -8
  341. package/dist/esm/sqm-portal-google-registration-form.entry.js +9 -9
  342. package/dist/esm/{sqm-portal-login-view-7e49609a.js → sqm-portal-login-view-7670cd86.js} +4 -4
  343. package/dist/esm/sqm-portal-logout.entry.js +3 -3
  344. package/dist/esm/{sqm-portal-profile-view-93003974.js → sqm-portal-profile-view-3ed13e4d.js} +4 -4
  345. package/dist/esm/sqm-portal-profile.entry.js +8 -8
  346. package/dist/esm/sqm-portal-protected-route.entry.js +3 -3
  347. package/dist/esm/{sqm-portal-registration-form-view-3c1f6000.js → sqm-portal-registration-form-view-8bdc3804.js} +3 -3
  348. package/dist/esm/sqm-portal-registration-form.entry.js +8 -8
  349. package/dist/esm/{sqm-portal-reset-password-view-54a8651f.js → sqm-portal-reset-password-view-abef7286.js} +3 -3
  350. package/dist/esm/sqm-portal-reset-password.entry.js +7 -7
  351. package/dist/esm/{sqm-portal-verify-email-view-b12cb894.js → sqm-portal-verify-email-view-33805220.js} +3 -3
  352. package/dist/esm/sqm-portal-verify-email.entry.js +7 -7
  353. package/dist/esm/{sqm-qr-code-view-f1d0763b.js → sqm-qr-code-view-ea505213.js} +4 -9
  354. package/dist/esm/sqm-qr-code.entry.js +8 -20
  355. package/dist/esm/sqm-referral-table_11.entry.js +120 -33
  356. package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +3 -3
  357. package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +4 -4
  358. package/dist/esm/sqm-rewards-table_9.entry.js +73 -26
  359. package/dist/esm/sqm-route.entry.js +1 -1
  360. package/dist/esm/sqm-scroll.entry.js +20 -66
  361. package/dist/esm/sqm-stencilbook.entry.js +13818 -12485
  362. package/dist/esm/sqm-tab.entry.js +4 -4
  363. package/dist/esm/sqm-tabs.entry.js +25 -10
  364. package/dist/esm/sqm-tax-and-cash.entry.js +1309 -0
  365. package/dist/esm/sqm-text-span-view-4c17b8c9.js +61 -0
  366. package/dist/esm/sqm-text-span.entry.js +6 -6
  367. package/dist/esm/sqm-widget-verification-controller.entry.js +14 -6
  368. package/dist/esm/sqm-widget-verification.entry.js +22 -10
  369. package/dist/esm/{useChildElements-7945ae56.js → useChildElements-3d872cef.js} +2 -2
  370. package/dist/esm/{useInstantAccessRegistration-dc4ad9f2.js → useInstantAccessRegistration-dda1f52b.js} +3 -3
  371. package/dist/esm/{useLeadFormState-9016d812.js → useLeadFormState-c379e5d7.js} +4 -4
  372. package/dist/esm/{usePayoutStatus-f07bcf90.js → usePayoutStatus-42cc6a2c.js} +46 -14
  373. package/dist/esm/{usePortalLogin-ef647a50.js → usePortalLogin-95814943.js} +3 -3
  374. package/dist/esm/{usePortalRegistrationForm-4b35a357.js → usePortalRegistrationForm-1eb3cd72.js} +3 -3
  375. package/dist/esm/{useReferralCodes-8f75921a.js → useReferralCodes-c2e809cf.js} +2 -2
  376. package/dist/esm/{useReferralTable-b3876ed6.js → useReferralTable-909ccb28.js} +5 -5
  377. package/dist/esm/{useRegistrationFormState-d6f33135.js → useRegistrationFormState-24d594ea.js} +2 -2
  378. package/dist/esm/{useVerificationEmail-edc318cb.js → useVerificationEmail-55e0e98f.js} +2 -2
  379. package/dist/esm/{utilities-5b0ca040.js → utilities-72c07b09.js} +2 -2
  380. package/dist/esm/utils-6122971b.js +97 -0
  381. package/dist/esm/{utils-334c1e34.js → utils-84b4b092.js} +4 -0
  382. package/dist/esm-es5/ErrorView-bbf0a042.js +1 -0
  383. package/dist/esm-es5/GenericTableView-e43d310f.js +1 -0
  384. package/dist/esm-es5/IndirectTaxDetailsView-0a57b622.js +1 -0
  385. package/dist/esm-es5/ShadowViewAddon-c0bd62f7.js +1 -0
  386. package/dist/esm-es5/copy-text-view-83b09456.js +1 -0
  387. package/dist/esm-es5/data-807686c2.js +1 -0
  388. package/dist/esm-es5/dom-context-hooks.module-63370afd.js +53 -0
  389. package/dist/esm-es5/email-registration-view-1f587f8b.js +1 -0
  390. package/dist/esm-es5/{global-be1f9992.js → global-1099f20d.js} +5 -5
  391. package/dist/esm-es5/{index-91e7729f.js → index-b3a06de8.js} +1 -1
  392. package/dist/esm-es5/index.module-c9811a48.js +1 -0
  393. package/dist/esm-es5/loader.js +1 -1
  394. package/dist/esm-es5/luxon-bbf75a9d.js +1 -0
  395. package/dist/esm-es5/mint-components.js +1 -1
  396. package/dist/esm-es5/mixins-f750863a.js +1 -0
  397. package/dist/esm-es5/{mockRewardData-a3cdb832.js → mockRewardData-96a2d26d.js} +1 -1
  398. package/dist/esm-es5/parseStates-ed75e224.js +1 -0
  399. package/dist/esm-es5/raisins-plop-target.entry.js +1 -1
  400. package/dist/esm-es5/re-render-7e22fb0d.js +1 -0
  401. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -0
  402. package/dist/esm-es5/{sqm-base-registration-form-view-593d4ac3.js → sqm-base-registration-form-view-193f1721.js} +1 -1
  403. package/dist/esm-es5/sqm-big-stat_46.entry.js +1 -0
  404. package/dist/esm-es5/{sqm-close-button-view-f9819751.js → sqm-close-button-view-2fa57229.js} +1 -1
  405. package/dist/esm-es5/sqm-close-button.entry.js +1 -1
  406. package/dist/esm-es5/sqm-code-verification.entry.js +1 -0
  407. package/dist/esm-es5/sqm-context-router.entry.js +1 -1
  408. package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
  409. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  410. package/dist/esm-es5/sqm-form-message.entry.js +1 -1
  411. package/dist/esm-es5/sqm-google-sign-in.entry.js +1 -1
  412. package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
  413. package/dist/esm-es5/sqm-header-logo.entry.js +1 -1
  414. package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
  415. package/dist/esm-es5/sqm-invoice-table-data-cell_5.entry.js +1 -0
  416. package/dist/esm-es5/{sqm-lead-checkbox-field-view-a8c1c78e.js → sqm-lead-checkbox-field-view-cbafee07.js} +1 -1
  417. package/dist/esm-es5/sqm-lead-checkbox-field.entry.js +1 -1
  418. package/dist/esm-es5/{sqm-lead-input-field-view-4ede5d7f.js → sqm-lead-input-field-view-f3775c28.js} +1 -1
  419. package/dist/esm-es5/sqm-lead-input-field.entry.js +1 -1
  420. package/dist/esm-es5/sqm-leaderboard-rank-view-18baae5b.js +1 -0
  421. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  422. package/dist/esm-es5/{sqm-logout-current-user-view-8ef8180f.js → sqm-logout-current-user-view-f21e54e3.js} +1 -1
  423. package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
  424. package/dist/esm-es5/sqm-navigation-sidebar-item-view-5a452423.js +1 -0
  425. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  426. package/dist/esm-es5/sqm-navigation-sidebar-view-0a2ec560.js +1 -0
  427. package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
  428. package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
  429. package/dist/esm-es5/sqm-password-field.entry.js +1 -1
  430. package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
  431. package/dist/esm-es5/{sqm-portal-container-view-1683ae32.js → sqm-portal-container-view-176e92e3.js} +1 -1
  432. package/dist/esm-es5/{sqm-portal-email-verification-view-35b4353b.js → sqm-portal-email-verification-view-7d86299c.js} +1 -1
  433. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  434. package/dist/esm-es5/sqm-portal-google-login.entry.js +1 -1
  435. package/dist/esm-es5/sqm-portal-google-registration-form.entry.js +1 -1
  436. package/dist/esm-es5/sqm-portal-login-view-7670cd86.js +1 -0
  437. package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
  438. package/dist/esm-es5/{sqm-portal-profile-view-93003974.js → sqm-portal-profile-view-3ed13e4d.js} +1 -1
  439. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  440. package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
  441. package/dist/esm-es5/{sqm-portal-registration-form-view-3c1f6000.js → sqm-portal-registration-form-view-8bdc3804.js} +1 -1
  442. package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
  443. package/dist/esm-es5/{sqm-portal-reset-password-view-54a8651f.js → sqm-portal-reset-password-view-abef7286.js} +1 -1
  444. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  445. package/dist/esm-es5/{sqm-portal-verify-email-view-b12cb894.js → sqm-portal-verify-email-view-33805220.js} +1 -1
  446. package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
  447. package/dist/esm-es5/{sqm-qr-code-view-f1d0763b.js → sqm-qr-code-view-ea505213.js} +1 -1
  448. package/dist/esm-es5/sqm-qr-code.entry.js +1 -1
  449. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  450. package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -1
  451. package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
  452. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  453. package/dist/esm-es5/sqm-route.entry.js +1 -1
  454. package/dist/esm-es5/sqm-scroll.entry.js +1 -1
  455. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  456. package/dist/esm-es5/sqm-tab.entry.js +1 -1
  457. package/dist/esm-es5/sqm-tabs.entry.js +1 -1
  458. package/dist/esm-es5/sqm-tax-and-cash.entry.js +1 -0
  459. package/dist/esm-es5/sqm-text-span-view-4c17b8c9.js +1 -0
  460. package/dist/esm-es5/sqm-text-span.entry.js +1 -1
  461. package/dist/esm-es5/sqm-widget-verification-controller.entry.js +1 -1
  462. package/dist/esm-es5/sqm-widget-verification.entry.js +1 -1
  463. package/dist/esm-es5/useChildElements-3d872cef.js +1 -0
  464. package/dist/esm-es5/useInstantAccessRegistration-dda1f52b.js +1 -0
  465. package/dist/esm-es5/useLeadFormState-c379e5d7.js +1 -0
  466. package/dist/esm-es5/usePayoutStatus-42cc6a2c.js +6 -0
  467. package/dist/esm-es5/usePortalLogin-95814943.js +1 -0
  468. package/dist/esm-es5/usePortalRegistrationForm-1eb3cd72.js +1 -0
  469. package/dist/esm-es5/useReferralCodes-c2e809cf.js +1 -0
  470. package/dist/esm-es5/useReferralTable-909ccb28.js +1 -0
  471. package/dist/esm-es5/useRegistrationFormState-24d594ea.js +1 -0
  472. package/dist/esm-es5/useVerificationEmail-55e0e98f.js +1 -0
  473. package/dist/esm-es5/utilities-72c07b09.js +1 -0
  474. package/dist/esm-es5/utils-6122971b.js +1 -0
  475. package/dist/esm-es5/utils-84b4b092.js +1 -0
  476. package/dist/mint-components/global/styles.ts +434 -102
  477. package/dist/mint-components/mint-components.esm.js +1 -1
  478. package/dist/mint-components/mint-components.js +1 -1
  479. package/dist/mint-components/{p-266a8b4d.js → p-00791abc.js} +1 -1
  480. package/dist/mint-components/p-0087ad39.system.js +1 -0
  481. package/dist/mint-components/{p-bbcd824a.js → p-00bc7211.js} +1 -1
  482. package/dist/mint-components/{p-50c902ca.system.entry.js → p-06f13966.system.entry.js} +1 -1
  483. package/dist/mint-components/{p-f940190a.js → p-07dc6d68.js} +1 -1
  484. package/dist/mint-components/{p-5bedb58c.js → p-08700497.js} +1 -1
  485. package/dist/mint-components/p-0935f9b7.system.js +1 -0
  486. package/dist/mint-components/p-0caad0db.entry.js +144 -0
  487. package/dist/mint-components/{p-48c69c2d.entry.js → p-0d21194c.entry.js} +1 -1
  488. package/dist/mint-components/p-0d71303d.js +1 -0
  489. package/dist/mint-components/p-0e532b53.entry.js +1 -0
  490. package/dist/mint-components/{p-f4a8ee29.system.entry.js → p-0ea4d6a1.system.entry.js} +1 -1
  491. package/dist/mint-components/p-0ec54f97.js +1 -0
  492. package/dist/mint-components/p-115dfc03.system.js +1 -0
  493. package/dist/mint-components/p-125a894f.js +1 -0
  494. package/dist/mint-components/p-1363c4ab.system.js +1 -0
  495. package/dist/mint-components/p-13e66b37.system.entry.js +1 -0
  496. package/dist/mint-components/p-13f3a647.js +1 -0
  497. package/dist/mint-components/p-14128c84.system.entry.js +1 -0
  498. package/dist/mint-components/p-171310d9.system.js +1 -0
  499. package/dist/mint-components/{p-dbc0e4f8.system.js → p-17a0f310.system.js} +1 -1
  500. package/dist/mint-components/{p-5c28406d.system.entry.js → p-1c6ef258.system.entry.js} +1 -1
  501. package/dist/mint-components/p-1cd0e1e9.system.js +1 -0
  502. package/dist/mint-components/p-204861a6.js +1 -0
  503. package/dist/mint-components/{p-b287833c.system.entry.js → p-22a9114f.system.entry.js} +1 -1
  504. package/dist/mint-components/p-2403c6e1.system.js +1 -0
  505. package/dist/mint-components/p-240bec23.js +1 -0
  506. package/dist/mint-components/p-2623b232.system.entry.js +1 -0
  507. package/dist/mint-components/{p-164a9103.system.entry.js → p-26a7051d.system.entry.js} +1 -1
  508. package/dist/mint-components/p-29398c98.entry.js +1 -0
  509. package/dist/mint-components/p-29ba2eaa.entry.js +1 -0
  510. package/dist/mint-components/{p-d07f3090.entry.js → p-29f0c87d.entry.js} +1 -1
  511. package/dist/mint-components/p-2ff72acc.entry.js +16 -0
  512. package/dist/mint-components/p-35081b0c.system.entry.js +1 -0
  513. package/dist/mint-components/{p-44891949.entry.js → p-386ec00c.entry.js} +1 -1
  514. package/dist/mint-components/{p-7a9290ba.js → p-3eba9036.js} +1 -1
  515. package/dist/mint-components/p-402984b3.system.entry.js +1 -0
  516. package/dist/mint-components/p-40752a0f.entry.js +1 -0
  517. package/dist/mint-components/{p-301ddcaa.system.entry.js → p-40c33b6a.system.entry.js} +1 -1
  518. package/dist/mint-components/{p-4b6dc0e5.entry.js → p-4204a6e3.entry.js} +1 -1
  519. package/dist/mint-components/p-4250b06d.entry.js +1 -0
  520. package/dist/mint-components/{p-6a8d9def.system.entry.js → p-42b62299.system.entry.js} +1 -1
  521. package/dist/mint-components/{p-ff8b8067.entry.js → p-4306a11d.entry.js} +1 -1
  522. package/dist/mint-components/{p-a2fde301.entry.js → p-433e7458.entry.js} +1 -1
  523. package/dist/mint-components/{p-9bfd9bed.system.entry.js → p-43d9c1c5.system.entry.js} +1 -1
  524. package/dist/mint-components/p-45c3ff6d.js +1 -0
  525. package/dist/mint-components/{p-938f64d9.js → p-460155de.js} +1 -1
  526. package/dist/mint-components/{p-10d17989.entry.js → p-47c83656.entry.js} +1 -1
  527. package/dist/mint-components/{p-c0f19490.js → p-49400aab.js} +2 -2
  528. package/dist/mint-components/p-4965dae4.system.js +1 -0
  529. package/dist/mint-components/p-49b20dae.js +1 -0
  530. package/dist/mint-components/p-4b9976cc.system.js +1 -0
  531. package/dist/mint-components/p-4c811d12.entry.js +13 -0
  532. package/dist/mint-components/{p-2f101bae.entry.js → p-4c9d80e4.entry.js} +1 -1
  533. package/dist/mint-components/p-4f5329a2.system.js +53 -0
  534. package/dist/mint-components/{p-00df0cac.js → p-4fed8672.js} +1 -1
  535. package/dist/mint-components/p-511c87ce.system.entry.js +1 -0
  536. package/dist/mint-components/p-513f5d80.js +1 -0
  537. package/dist/mint-components/{p-13ed8586.system.js → p-537a3894.system.js} +1 -1
  538. package/dist/mint-components/{p-9b6a0152.system.entry.js → p-55eaba8e.system.entry.js} +1 -1
  539. package/dist/mint-components/p-59b028db.system.js +1 -0
  540. package/dist/mint-components/p-5e145a54.system.entry.js +1 -0
  541. package/dist/mint-components/p-5ff2da11.js +1 -0
  542. package/dist/mint-components/{p-cd569259.system.js → p-60465a2d.system.js} +1 -1
  543. package/dist/mint-components/{p-fa37513e.system.entry.js → p-60ec0961.system.entry.js} +1 -1
  544. package/dist/mint-components/p-60f1cca2.system.js +1 -0
  545. package/dist/mint-components/p-61157c6a.entry.js +11 -0
  546. package/dist/mint-components/p-621f3e30.entry.js +1 -0
  547. package/dist/mint-components/p-625ca62f.entry.js +1 -0
  548. package/dist/mint-components/p-63e29387.js +42 -0
  549. package/dist/mint-components/{p-99ad7d56.system.js → p-64997b59.system.js} +1 -1
  550. package/dist/mint-components/{p-b75bb6e3.system.js → p-6578ea31.system.js} +1 -1
  551. package/dist/mint-components/{p-f0772618.system.entry.js → p-66cf70f7.system.entry.js} +1 -1
  552. package/dist/mint-components/{p-1a6b7d2a.entry.js → p-67aa0b2d.entry.js} +1 -1
  553. package/dist/mint-components/p-67ad2252.system.js +1 -0
  554. package/dist/mint-components/{p-91ab3da1.js → p-68043f30.js} +1 -1
  555. package/dist/mint-components/p-6b0f79d1.system.entry.js +1 -0
  556. package/dist/mint-components/{p-8175e85f.system.js → p-6c82d60c.system.js} +1 -1
  557. package/dist/mint-components/p-6d5bd95a.js +1 -0
  558. package/dist/mint-components/{p-9ec99ced.js → p-6dc742bc.js} +1 -1
  559. package/dist/mint-components/p-71271fbd.system.js +1 -0
  560. package/dist/mint-components/{p-6d9e52c7.system.js → p-7159c51c.system.js} +1 -1
  561. package/dist/mint-components/{p-05f29f64.js → p-71af93e3.js} +1 -1
  562. package/dist/mint-components/p-74f43a08.system.js +1 -0
  563. package/dist/mint-components/p-75b8fd75.entry.js +1 -0
  564. package/dist/mint-components/p-7602eb6a.entry.js +1 -0
  565. package/dist/mint-components/p-76d4ef41.entry.js +1 -0
  566. package/dist/mint-components/{p-6bb25c02.js → p-7837f69e.js} +18 -3
  567. package/dist/mint-components/{p-8362cb4c.system.entry.js → p-78c754de.system.entry.js} +1 -1
  568. package/dist/mint-components/{p-6ba44ca9.js → p-79a3344f.js} +1 -1
  569. package/dist/mint-components/p-7a268047.js +1 -0
  570. package/dist/mint-components/p-7b8232f8.system.js +6 -0
  571. package/dist/mint-components/p-7b8cd420.system.entry.js +1 -0
  572. package/dist/mint-components/p-7b8d29bb.entry.js +1 -0
  573. package/dist/mint-components/p-7bae9bb7.system.entry.js +1 -0
  574. package/dist/mint-components/p-7d735c9c.js +448 -0
  575. package/dist/mint-components/{p-f4a72903.system.entry.js → p-84d1041d.system.entry.js} +1 -1
  576. package/dist/mint-components/{p-7c2b9fe4.system.js → p-867b2baf.system.js} +1 -1
  577. package/dist/mint-components/p-8a6494c7.system.js +1 -0
  578. package/dist/mint-components/p-8c3c4e92.js +112 -0
  579. package/dist/mint-components/p-8caef004.js +1 -0
  580. package/dist/mint-components/{p-ae1ea5ac.system.js → p-8e28333b.system.js} +1 -1
  581. package/dist/mint-components/p-916a2045.system.entry.js +1 -0
  582. package/dist/mint-components/p-92a54b0c.entry.js +1 -0
  583. package/dist/mint-components/{p-c2fdd608.system.entry.js → p-9491f5fb.system.entry.js} +1 -1
  584. package/dist/mint-components/{p-a9f4ddb1.js → p-9580aac3.js} +1 -1
  585. package/dist/mint-components/p-967a9040.system.js +1 -0
  586. package/dist/mint-components/p-976ee669.js +1 -0
  587. package/dist/mint-components/p-978d06ab.entry.js +1 -0
  588. package/dist/mint-components/{p-6d2f5a1d.js → p-97dc6863.js} +2 -2
  589. package/dist/mint-components/{p-3f7b81b8.js → p-9c79ab08.js} +2 -2
  590. package/dist/mint-components/p-9e297104.entry.js +1 -0
  591. package/dist/mint-components/p-9eba8408.js +1 -0
  592. package/dist/mint-components/p-a0730259.entry.js +99 -0
  593. package/dist/mint-components/p-a38dd63f.system.entry.js +1 -0
  594. package/dist/mint-components/p-a44a912b.entry.js +1 -0
  595. package/dist/mint-components/{p-35b475bf.js → p-a45680fe.js} +1 -1
  596. package/dist/mint-components/p-a4e8eb33.entry.js +1 -0
  597. package/dist/mint-components/p-a513c1a6.js +1 -0
  598. package/dist/mint-components/p-a597b136.entry.js +1 -0
  599. package/dist/mint-components/{p-127e66c2.system.js → p-a6f4fb03.system.js} +1 -1
  600. package/dist/mint-components/{p-faba3198.entry.js → p-a7ee19dc.entry.js} +1 -1
  601. package/dist/mint-components/p-a8c86cd8.system.entry.js +1 -0
  602. package/dist/mint-components/p-a9ad7fb2.system.entry.js +1 -0
  603. package/dist/mint-components/{p-0d182dc1.system.js → p-aa08457e.system.js} +1 -1
  604. package/dist/mint-components/p-aa8c6332.js +1 -0
  605. package/dist/mint-components/{p-e8ffcc68.entry.js → p-ab018deb.entry.js} +2 -2
  606. package/dist/mint-components/p-ad4348c3.system.js +1 -0
  607. package/dist/mint-components/{p-f2d8d3d3.system.entry.js → p-af69ee79.system.entry.js} +1 -1
  608. package/dist/mint-components/p-b1eafaae.entry.js +25 -0
  609. package/dist/mint-components/p-b487cb00.system.entry.js +1 -0
  610. package/dist/mint-components/{p-36ffebd8.system.entry.js → p-b55002dc.system.entry.js} +1 -1
  611. package/dist/mint-components/{p-e5d0375e.system.js → p-b6911812.system.js} +1 -1
  612. package/dist/mint-components/p-b703c89f.system.entry.js +1 -0
  613. package/dist/mint-components/p-b8d3fb57.entry.js +273 -0
  614. package/dist/mint-components/p-bb452830.system.js +1 -0
  615. package/dist/mint-components/{p-5488fdd9.system.js → p-bb5d153f.system.js} +1 -1
  616. package/dist/mint-components/p-bcac83f0.system.js +1 -0
  617. package/dist/mint-components/p-bd093069.system.entry.js +1 -0
  618. package/dist/mint-components/p-be88596c.system.js +1 -0
  619. package/dist/mint-components/{p-2ae0e06a.entry.js → p-bfd77a07.entry.js} +1 -1
  620. package/dist/mint-components/p-c065057d.entry.js +17 -0
  621. package/dist/mint-components/p-c210374a.system.js +1 -0
  622. package/dist/mint-components/{p-d6831af5.js → p-c30ad421.js} +1 -1
  623. package/dist/mint-components/{p-96431b4f.system.entry.js → p-c3dce602.system.entry.js} +1 -1
  624. package/dist/mint-components/p-c531cc75.entry.js +1 -0
  625. package/dist/mint-components/p-c5fea579.system.entry.js +1 -0
  626. package/dist/mint-components/{p-527216de.system.js → p-c6fa4cc5.system.js} +1 -1
  627. package/dist/mint-components/p-c7c11325.js +1 -0
  628. package/dist/mint-components/p-c85f204b.system.js +1 -0
  629. package/dist/mint-components/{p-90fc6774.system.entry.js → p-c86f64ad.system.entry.js} +1 -1
  630. package/dist/mint-components/{p-95b88eb6.system.js → p-c994512c.system.js} +1 -1
  631. package/dist/mint-components/{p-0b4cac9f.system.entry.js → p-cb845a3a.system.entry.js} +1 -1
  632. package/dist/mint-components/{p-9386ad84.system.entry.js → p-cc8ca3ff.system.entry.js} +1 -1
  633. package/dist/mint-components/p-cf22cf56.entry.js +1 -0
  634. package/dist/mint-components/p-cf4e1709.entry.js +1 -0
  635. package/dist/mint-components/{p-0d2d0b6d.entry.js → p-d08bcd88.entry.js} +1 -1
  636. package/dist/mint-components/{p-a71b9154.system.js → p-d09d3b8f.system.js} +1 -1
  637. package/dist/mint-components/p-d399b343.system.entry.js +1 -0
  638. package/dist/mint-components/{p-8c0b7881.system.entry.js → p-d4edce6c.system.entry.js} +1 -1
  639. package/dist/mint-components/p-db1a0db1.js +1233 -0
  640. package/dist/mint-components/p-dcc50d90.entry.js +1 -0
  641. package/dist/mint-components/p-dd30354a.system.entry.js +1 -0
  642. package/dist/mint-components/{p-91959fbe.js → p-ddf3c05e.js} +1 -1
  643. package/dist/mint-components/{p-bdb7d451.system.js → p-e0a724dd.system.js} +21 -21
  644. package/dist/mint-components/{p-2d52e2d7.system.js → p-e174b704.system.js} +1 -1
  645. package/dist/mint-components/{p-4e526a94.js → p-e711d0e9.js} +1 -1
  646. package/dist/mint-components/{p-7f80a9d7.entry.js → p-ea063d99.entry.js} +1 -1
  647. package/dist/mint-components/p-eaeddfe2.system.js +1 -0
  648. package/dist/mint-components/p-eba70d67.system.entry.js +1 -0
  649. package/dist/mint-components/p-ecc84140.system.entry.js +1 -0
  650. package/dist/mint-components/p-ed16b35a.js +1 -0
  651. package/dist/mint-components/p-ee92a728.system.entry.js +1 -0
  652. package/dist/mint-components/{p-7dabdca6.system.entry.js → p-eea87fdc.system.entry.js} +1 -1
  653. package/dist/mint-components/{p-01dd541f.system.js → p-f0eae4e6.system.js} +1 -1
  654. package/dist/mint-components/p-f1dc581f.js +1 -0
  655. package/dist/mint-components/p-f1f6a13d.system.js +1 -0
  656. package/dist/mint-components/p-f370bddc.entry.js +13 -0
  657. package/dist/mint-components/{p-4e451f75.js → p-f5fff87e.js} +1 -1
  658. package/dist/mint-components/p-f6baa0c9.system.js +1 -0
  659. package/dist/mint-components/{p-284e4ed5.entry.js → p-f7c0877d.entry.js} +1 -1
  660. package/dist/mint-components/p-f860e7f1.entry.js +9 -0
  661. package/dist/mint-components/p-f9c7248e.js +1 -0
  662. package/dist/mint-components/{p-19bc3406.system.entry.js → p-fb2976fc.system.entry.js} +1 -1
  663. package/dist/mint-components/{p-59274a91.system.js → p-ff0e1564.system.js} +1 -1
  664. package/dist/types/components/sqm-big-stat/BigStat.stories.d.ts +2 -0
  665. package/dist/types/components/sqm-big-stat/sqm-big-stat-view.d.ts +5 -0
  666. package/dist/types/components/sqm-big-stat/sqm-big-stat.d.ts +47 -1
  667. package/dist/types/components/sqm-card-feed/sqm-card-feed.d.ts +2 -0
  668. package/dist/types/components/sqm-coupon-code/CouponCode.stories.d.ts +1 -0
  669. package/dist/types/components/sqm-coupon-code/sqm-coupon-code-view.d.ts +2 -0
  670. package/dist/types/components/sqm-coupon-code/sqm-coupon-code.d.ts +43 -0
  671. package/dist/types/components/sqm-coupon-code/useCouponCode.d.ts +1 -0
  672. package/dist/types/components/sqm-divided-layout/sqm-divided-layout-view.d.ts +4 -1
  673. package/dist/types/components/sqm-divided-layout/sqm-divided-layout.d.ts +15 -0
  674. package/dist/types/components/sqm-form-message/FormMessage.stories.d.ts +0 -1
  675. package/dist/types/components/sqm-header-logo/sqm-header-logo.d.ts +1 -0
  676. package/dist/types/components/sqm-hero/Hero.stories.d.ts +1 -0
  677. package/dist/types/components/sqm-hero/sqm-hero-view.d.ts +1 -0
  678. package/dist/types/components/sqm-hero/sqm-hero.d.ts +9 -1
  679. package/dist/types/components/sqm-hero-image/sqm-hero-image-view.d.ts +1 -0
  680. package/dist/types/components/sqm-hero-image/sqm-hero-image.d.ts +20 -0
  681. package/dist/types/components/sqm-image/sqm-image.d.ts +1 -0
  682. package/dist/types/components/sqm-instant-access-registration/sqm-instant-access-registration.d.ts +2 -1
  683. package/dist/types/components/sqm-invoice-table/columns/InvoiceTableColumn.d.ts +1 -0
  684. package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-data-column.d.ts +1 -0
  685. package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-date-column.d.ts +1 -0
  686. package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-download-column.d.ts +1 -0
  687. package/dist/types/components/sqm-invoice-table/mockInvoiceData.d.ts +1 -0
  688. package/dist/types/components/sqm-invoice-table/sqm-invoice-table.d.ts +3 -0
  689. package/dist/types/components/sqm-leaderboard/Leaderboard.stories.d.ts +1 -0
  690. package/dist/types/components/sqm-leaderboard/sqm-leaderboard-view.d.ts +6 -0
  691. package/dist/types/components/sqm-leaderboard/sqm-leaderboard.d.ts +53 -11
  692. package/dist/types/components/sqm-leaderboard/useLeaderboard.d.ts +6 -0
  693. package/dist/types/components/sqm-link-button/sqm-link-button.d.ts +1 -0
  694. package/dist/types/components/sqm-logout-current-user/sqm-logout-current-user.d.ts +1 -0
  695. package/dist/types/components/sqm-name-fields/sqm-name-fields.d.ts +1 -1
  696. package/dist/types/components/sqm-navigation-menu/sqm-navigation-menu.d.ts +1 -0
  697. package/dist/types/components/sqm-navigation-sidebar/sqm-navigation-sidebar-view.d.ts +1 -0
  698. package/dist/types/components/sqm-navigation-sidebar/sqm-navigation-sidebar.d.ts +16 -0
  699. package/dist/types/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view.d.ts +8 -0
  700. package/dist/types/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.d.ts +57 -0
  701. package/dist/types/components/sqm-pagination/sqm-pagination-view.d.ts +1 -0
  702. package/dist/types/components/sqm-pagination/sqm-pagination.d.ts +9 -2
  703. package/dist/types/components/sqm-popup-container/usePopupContainer.d.ts +2 -2
  704. package/dist/types/components/sqm-portal-change-password/sqm-portal-change-password-view.d.ts +2 -0
  705. package/dist/types/components/sqm-portal-change-password/sqm-portal-change-password.d.ts +1 -0
  706. package/dist/types/components/sqm-portal-footer/sqm-portal-footer.d.ts +1 -0
  707. package/dist/types/components/sqm-portal-forgot-password/PortalForgotPassword.stories.d.ts +1 -0
  708. package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.d.ts +5 -1
  709. package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password.d.ts +15 -0
  710. package/dist/types/components/sqm-portal-frame/sqm-portal-frame-view.d.ts +3 -0
  711. package/dist/types/components/sqm-portal-frame/sqm-portal-frame.d.ts +19 -0
  712. package/dist/types/components/sqm-portal-frame/usePortalFrame.d.ts +2 -1
  713. package/dist/types/components/sqm-portal-login/PortalLogin.stories.d.ts +1 -0
  714. package/dist/types/components/sqm-portal-login/sqm-portal-login.d.ts +1 -0
  715. package/dist/types/components/sqm-portal-logout/sqm-portal-logout.d.ts +1 -0
  716. package/dist/types/components/sqm-portal-profile/sqm-portal-profile.d.ts +1 -0
  717. package/dist/types/components/sqm-portal-protected-route/sqm-portal-protected-route.d.ts +1 -0
  718. package/dist/types/components/sqm-program-explainer/sqm-program-explainer.d.ts +3 -1
  719. package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step-view.d.ts +3 -0
  720. package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step.d.ts +21 -3
  721. package/dist/types/components/sqm-program-menu/sqm-program-menu.d.ts +1 -0
  722. package/dist/types/components/sqm-qr-code/sqm-qr-code.d.ts +1 -0
  723. package/dist/types/components/sqm-referral-card/sqm-referral-card-view.d.ts +5 -2
  724. package/dist/types/components/sqm-referral-card/sqm-referral-card.d.ts +25 -2
  725. package/dist/types/components/sqm-referral-code/ReferralCode.stories.d.ts +1 -0
  726. package/dist/types/components/sqm-referral-code/sqm-referral-code.d.ts +43 -0
  727. package/dist/types/components/sqm-referral-codes/ReferralCodes.stories.d.ts +1 -0
  728. package/dist/types/components/sqm-referral-codes/sqm-referral-codes-view.d.ts +1 -0
  729. package/dist/types/components/sqm-referral-codes/sqm-referral-codes.d.ts +7 -0
  730. package/dist/types/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.d.ts +1 -0
  731. package/dist/types/components/sqm-referral-table/cells/sqm-referral-table-status-cell.d.ts +1 -0
  732. package/dist/types/components/sqm-referral-table/columns/ReferralTableColumn.d.ts +1 -0
  733. package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-column.d.ts +1 -0
  734. package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-date-column.d.ts +1 -0
  735. package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.d.ts +1 -0
  736. package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-status-column.d.ts +1 -0
  737. package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-user-column.d.ts +1 -0
  738. package/dist/types/components/sqm-referral-table/sqm-referral-table.d.ts +3 -0
  739. package/dist/types/components/sqm-referred-registration/sqm-referred-registration.d.ts +2 -1
  740. package/dist/types/components/sqm-reward-exchange-list/RewardExchangeListData.d.ts +457 -437
  741. package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list.d.ts +10 -1
  742. package/dist/types/components/sqm-reward-exchange-list/useRewardExchangeList.d.ts +1 -0
  743. package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.d.ts +1 -0
  744. package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.d.ts +1 -0
  745. package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.d.ts +2 -1
  746. package/dist/types/components/sqm-rewards-table/columns/RewardTableColumn.d.ts +1 -0
  747. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.d.ts +2 -1
  748. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.d.ts +2 -1
  749. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.d.ts +2 -1
  750. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.d.ts +1 -0
  751. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.d.ts +3 -2
  752. package/dist/types/components/sqm-rewards-table/mockRewardData.d.ts +1 -0
  753. package/dist/types/components/sqm-rewards-table/mockTaxData.d.ts +1 -0
  754. package/dist/types/components/sqm-rewards-table/sqm-rewards-table.d.ts +2 -0
  755. package/dist/types/components/sqm-rewards-table/useRewardsTable.d.ts +1 -1
  756. package/dist/types/components/sqm-route/sqm-route.d.ts +1 -0
  757. package/dist/types/components/sqm-router/sqm-router.d.ts +2 -0
  758. package/dist/types/components/sqm-scroll/sqm-scroll.d.ts +1 -8
  759. package/dist/types/components/sqm-share-button/ShareButton.stories.d.ts +1 -1
  760. package/dist/types/components/sqm-share-button/sqm-share-button-view.d.ts +2 -1
  761. package/dist/types/components/sqm-share-button/sqm-share-button.d.ts +19 -6
  762. package/dist/types/components/sqm-share-code/sqm-share-code.d.ts +43 -0
  763. package/dist/types/components/sqm-share-link/ShareLink.stories.d.ts +2 -0
  764. package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +44 -1
  765. package/dist/types/components/sqm-stat-container/sqm-stat-container-view.d.ts +3 -0
  766. package/dist/types/components/sqm-stat-container/sqm-stat-container.d.ts +25 -0
  767. package/dist/types/components/sqm-stencilbook/BrandSelector.d.ts +9 -0
  768. package/dist/types/components/sqm-stencilbook/Themes.d.ts +6 -6
  769. package/dist/types/components/sqm-tabs/Tabs.stories.d.ts +1 -0
  770. package/dist/types/components/sqm-tabs/sqm-tabs-view.d.ts +1 -0
  771. package/dist/types/components/sqm-tabs/sqm-tabs.d.ts +10 -0
  772. package/dist/types/components/sqm-task-card/DetailsView.d.ts +6 -0
  773. package/dist/types/components/sqm-task-card/sqm-task-card-view.d.ts +5 -0
  774. package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +33 -4
  775. package/dist/types/components/sqm-task-card/useTaskCard.d.ts +9 -0
  776. package/dist/types/components/sqm-text/Text.stories.d.ts +6 -0
  777. package/dist/types/components/sqm-text/sqm-text.d.ts +13 -0
  778. package/dist/types/components/sqm-text-span/sqm-text-span-view.d.ts +4 -2
  779. package/dist/types/components/sqm-text-span/sqm-text-span.d.ts +14 -1
  780. package/dist/types/components/sqm-timeline/Timeline.stories.d.ts +1 -0
  781. package/dist/types/components/sqm-timeline/sqm-timeline-entry-view.d.ts +2 -0
  782. package/dist/types/components/sqm-timeline/sqm-timeline-entry.d.ts +14 -0
  783. package/dist/types/components/sqm-timeline/sqm-timeline.d.ts +3 -1
  784. package/dist/types/components/sqm-titled-section/sqm-titled-section.d.ts +2 -0
  785. package/dist/types/components/sqm-widget-verification/sqm-widget-verification-controller.d.ts +5 -2
  786. package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +6 -2
  787. package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +0 -1
  788. package/dist/types/components/tax-and-cash/{sqm-tax-and-cash/data.d.ts → data.d.ts} +9 -0
  789. package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.d.ts +1 -1
  790. package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +2 -2
  791. package/dist/types/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.d.ts +4 -0
  792. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.d.ts +4 -1
  793. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +12 -3
  794. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +9 -2
  795. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +23 -6
  796. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.d.ts +1 -1
  797. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +4 -2
  798. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +16 -8
  799. package/dist/types/components/tax-and-cash/sqm-user-info-form/small-views/IndirectTaxDetailsView.d.ts +1 -1
  800. package/dist/types/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.d.ts +1 -1
  801. package/dist/types/components/tax-and-cash/utils.d.ts +1 -1
  802. package/dist/types/components/views/copy-text-view.d.ts +5 -0
  803. package/dist/types/components.d.ts +1288 -120
  804. package/dist/types/global/global.d.ts +2 -2
  805. package/dist/types/global/mixins.d.ts +12 -12
  806. package/dist/types/global/styles.d.ts +10 -2
  807. package/dist/types/insertfont.d.ts +1 -0
  808. package/dist/types/saasquatch.d.ts +142 -0
  809. package/dist/types/utils/parseStates.d.ts +1 -0
  810. package/dist/types/utils/utils.d.ts +1 -0
  811. package/docs/docs.docx +0 -0
  812. package/docs/raisins.json +1 -1
  813. package/grapesjs/grapesjs.js +1 -1
  814. package/package.json +3 -2
  815. package/shoelace/assets/icons/twitter-x.svg +4 -0
  816. package/dist/cjs/ErrorView-b2fcf954.js +0 -35
  817. package/dist/cjs/copy-text-view-c85acaaa.js +0 -96
  818. package/dist/cjs/sqm-asset-card-view-21ddf04f.js +0 -51
  819. package/dist/cjs/sqm-asset-card.cjs.entry.js +0 -45
  820. package/dist/cjs/sqm-invoice-table-view-5c74607f.js +0 -2074
  821. package/dist/cjs/sqm-leaderboard-rank-view-d39a55d8.js +0 -10
  822. package/dist/cjs/sqm-navigation-sidebar-item-view-6f35d2ee.js +0 -45
  823. package/dist/cjs/sqm-portal-forgot-password-view-78f19ef9.js +0 -45
  824. package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +0 -127
  825. package/dist/cjs/sqm-referred-registration.cjs.entry.js +0 -178
  826. package/dist/cjs/sqm-text-span-view-0aa82125.js +0 -62
  827. package/dist/collection/components/sqm-asset-card/AssetCard.stories.js +0 -29
  828. package/dist/collection/components/sqm-asset-card/sqm-asset-card-view.js +0 -46
  829. package/dist/collection/components/sqm-asset-card/sqm-asset-card.js +0 -107
  830. package/dist/collection/components/sqm-asset-card/useAssetCard.js +0 -9
  831. package/dist/esm/ErrorView-48e2b969.js +0 -33
  832. package/dist/esm/copy-text-view-782137ba.js +0 -94
  833. package/dist/esm/sqm-asset-card-view-fe5db3c0.js +0 -49
  834. package/dist/esm/sqm-asset-card.entry.js +0 -41
  835. package/dist/esm/sqm-invoice-table-view-3491dd80.js +0 -2058
  836. package/dist/esm/sqm-leaderboard-rank-view-753c8d4a.js +0 -8
  837. package/dist/esm/sqm-navigation-sidebar-item-view-8f1c72bc.js +0 -43
  838. package/dist/esm/sqm-portal-forgot-password-view-3d3182f1.js +0 -43
  839. package/dist/esm/sqm-portal-forgot-password.entry.js +0 -123
  840. package/dist/esm/sqm-referred-registration.entry.js +0 -174
  841. package/dist/esm/sqm-text-span-view-ca32495e.js +0 -60
  842. package/dist/esm-es5/ErrorView-48e2b969.js +0 -1
  843. package/dist/esm-es5/GenericTableView-7b9087af.js +0 -1
  844. package/dist/esm-es5/ShadowViewAddon-f2176779.js +0 -1
  845. package/dist/esm-es5/copy-text-view-782137ba.js +0 -1
  846. package/dist/esm-es5/email-registration-view-a7818cf2.js +0 -1
  847. package/dist/esm-es5/index.module-89a79f66.js +0 -1
  848. package/dist/esm-es5/luxon-8d51c92b.js +0 -1
  849. package/dist/esm-es5/mixins-83f90fa1.js +0 -1
  850. package/dist/esm-es5/re-render-cc945f38.js +0 -1
  851. package/dist/esm-es5/sqm-asset-card-view-fe5db3c0.js +0 -1
  852. package/dist/esm-es5/sqm-asset-card.entry.js +0 -1
  853. package/dist/esm-es5/sqm-banking-info-form_17.entry.js +0 -1
  854. package/dist/esm-es5/sqm-big-stat_43.entry.js +0 -1
  855. package/dist/esm-es5/sqm-invoice-table-view-3491dd80.js +0 -1
  856. package/dist/esm-es5/sqm-leaderboard-rank-view-753c8d4a.js +0 -1
  857. package/dist/esm-es5/sqm-navigation-sidebar-item-view-8f1c72bc.js +0 -1
  858. package/dist/esm-es5/sqm-navigation-sidebar-view-9d802b78.js +0 -1
  859. package/dist/esm-es5/sqm-portal-forgot-password-view-3d3182f1.js +0 -1
  860. package/dist/esm-es5/sqm-portal-forgot-password.entry.js +0 -1
  861. package/dist/esm-es5/sqm-portal-login-view-7e49609a.js +0 -1
  862. package/dist/esm-es5/sqm-referred-registration.entry.js +0 -1
  863. package/dist/esm-es5/sqm-text-span-view-ca32495e.js +0 -1
  864. package/dist/esm-es5/stencil-hooks.module-4bc38af4.js +0 -53
  865. package/dist/esm-es5/useChildElements-7945ae56.js +0 -1
  866. package/dist/esm-es5/useInstantAccessRegistration-dc4ad9f2.js +0 -1
  867. package/dist/esm-es5/useLeadFormState-9016d812.js +0 -1
  868. package/dist/esm-es5/usePayoutStatus-f07bcf90.js +0 -6
  869. package/dist/esm-es5/usePortalLogin-ef647a50.js +0 -1
  870. package/dist/esm-es5/usePortalRegistrationForm-4b35a357.js +0 -1
  871. package/dist/esm-es5/useReferralCodes-8f75921a.js +0 -1
  872. package/dist/esm-es5/useReferralTable-b3876ed6.js +0 -1
  873. package/dist/esm-es5/useRegistrationFormState-d6f33135.js +0 -1
  874. package/dist/esm-es5/useVerificationEmail-edc318cb.js +0 -1
  875. package/dist/esm-es5/utilities-5b0ca040.js +0 -1
  876. package/dist/esm-es5/utils-334c1e34.js +0 -1
  877. package/dist/mint-components/p-00ed4c2e.entry.js +0 -1
  878. package/dist/mint-components/p-01a851f7.system.entry.js +0 -1
  879. package/dist/mint-components/p-0309fdfa.entry.js +0 -1
  880. package/dist/mint-components/p-04a6e457.entry.js +0 -1
  881. package/dist/mint-components/p-0c78815e.system.entry.js +0 -1
  882. package/dist/mint-components/p-0c9debc1.system.js +0 -6
  883. package/dist/mint-components/p-0d939b73.system.js +0 -1
  884. package/dist/mint-components/p-0ebab63e.system.js +0 -1
  885. package/dist/mint-components/p-12bba567.entry.js +0 -1
  886. package/dist/mint-components/p-141bf5c1.system.entry.js +0 -1
  887. package/dist/mint-components/p-14a65f29.system.js +0 -1
  888. package/dist/mint-components/p-1513309d.entry.js +0 -1
  889. package/dist/mint-components/p-18425f38.system.entry.js +0 -1
  890. package/dist/mint-components/p-1870ab08.system.entry.js +0 -1
  891. package/dist/mint-components/p-19ccb4ce.js +0 -1
  892. package/dist/mint-components/p-1b3ab15a.system.entry.js +0 -1
  893. package/dist/mint-components/p-1d704c40.system.js +0 -1
  894. package/dist/mint-components/p-1fa9ed0d.system.entry.js +0 -1
  895. package/dist/mint-components/p-21620f81.system.entry.js +0 -1
  896. package/dist/mint-components/p-229f797b.js +0 -1
  897. package/dist/mint-components/p-24db5c70.js +0 -1
  898. package/dist/mint-components/p-267c8f8c.entry.js +0 -144
  899. package/dist/mint-components/p-275b4767.entry.js +0 -1
  900. package/dist/mint-components/p-2bbff88f.entry.js +0 -1
  901. package/dist/mint-components/p-2da21ba4.entry.js +0 -1
  902. package/dist/mint-components/p-2dca9e1a.system.js +0 -1
  903. package/dist/mint-components/p-31015791.js +0 -1
  904. package/dist/mint-components/p-33c96e14.entry.js +0 -16
  905. package/dist/mint-components/p-37996351.system.js +0 -1
  906. package/dist/mint-components/p-37a4452c.system.entry.js +0 -1
  907. package/dist/mint-components/p-380bfde1.entry.js +0 -1
  908. package/dist/mint-components/p-38e5c429.system.js +0 -1
  909. package/dist/mint-components/p-38fc919b.entry.js +0 -1
  910. package/dist/mint-components/p-3a62a7e2.system.js +0 -1
  911. package/dist/mint-components/p-3b90e01b.system.js +0 -1
  912. package/dist/mint-components/p-3db34d68.js +0 -1
  913. package/dist/mint-components/p-3f6e0197.system.entry.js +0 -1
  914. package/dist/mint-components/p-420554af.system.entry.js +0 -1
  915. package/dist/mint-components/p-42187319.system.entry.js +0 -1
  916. package/dist/mint-components/p-4428294b.entry.js +0 -1
  917. package/dist/mint-components/p-4794641c.system.js +0 -1
  918. package/dist/mint-components/p-48135f99.system.js +0 -53
  919. package/dist/mint-components/p-492b70db.system.js +0 -1
  920. package/dist/mint-components/p-49932f12.system.js +0 -1
  921. package/dist/mint-components/p-4e5af50c.js +0 -1
  922. package/dist/mint-components/p-53730ffe.entry.js +0 -17
  923. package/dist/mint-components/p-5cb7f9fc.system.entry.js +0 -1
  924. package/dist/mint-components/p-6055eb4c.system.js +0 -1
  925. package/dist/mint-components/p-609613e8.entry.js +0 -205
  926. package/dist/mint-components/p-626e9e84.js +0 -1
  927. package/dist/mint-components/p-6333265f.system.js +0 -1
  928. package/dist/mint-components/p-635d5ef2.system.js +0 -1
  929. package/dist/mint-components/p-63a75798.js +0 -1
  930. package/dist/mint-components/p-6427e963.entry.js +0 -1
  931. package/dist/mint-components/p-65069b66.js +0 -1248
  932. package/dist/mint-components/p-653f963f.entry.js +0 -13
  933. package/dist/mint-components/p-65ba9e94.entry.js +0 -1
  934. package/dist/mint-components/p-6b7a595f.system.js +0 -1
  935. package/dist/mint-components/p-6cd4f2b1.system.js +0 -1
  936. package/dist/mint-components/p-6eaf9c57.entry.js +0 -1
  937. package/dist/mint-components/p-775f3ded.entry.js +0 -1
  938. package/dist/mint-components/p-7846937e.entry.js +0 -13
  939. package/dist/mint-components/p-7893e7d1.entry.js +0 -9
  940. package/dist/mint-components/p-7ab21e4d.entry.js +0 -1
  941. package/dist/mint-components/p-837a0fdd.js +0 -1
  942. package/dist/mint-components/p-85671c3d.system.entry.js +0 -1
  943. package/dist/mint-components/p-8abfeff8.entry.js +0 -1
  944. package/dist/mint-components/p-8c23d1b8.js +0 -1
  945. package/dist/mint-components/p-8d9d04b7.system.entry.js +0 -1
  946. package/dist/mint-components/p-91521e9d.js +0 -1
  947. package/dist/mint-components/p-92816d1f.js +0 -1
  948. package/dist/mint-components/p-94a876b9.js +0 -1
  949. package/dist/mint-components/p-97d4d651.system.js +0 -1
  950. package/dist/mint-components/p-98698131.js +0 -1
  951. package/dist/mint-components/p-986d4c17.system.entry.js +0 -1
  952. package/dist/mint-components/p-9acb5038.js +0 -1
  953. package/dist/mint-components/p-9cf80e85.system.entry.js +0 -1
  954. package/dist/mint-components/p-aad32fb6.system.js +0 -1
  955. package/dist/mint-components/p-b207beeb.entry.js +0 -1
  956. package/dist/mint-components/p-b7d1469d.system.entry.js +0 -1
  957. package/dist/mint-components/p-b82e1935.system.entry.js +0 -1
  958. package/dist/mint-components/p-bfc7cfc0.system.js +0 -1
  959. package/dist/mint-components/p-c060f770.system.entry.js +0 -1
  960. package/dist/mint-components/p-c1b074b6.js +0 -394
  961. package/dist/mint-components/p-c36506f6.system.entry.js +0 -1
  962. package/dist/mint-components/p-c9f1dde7.js +0 -1
  963. package/dist/mint-components/p-cb7bdbe4.entry.js +0 -1
  964. package/dist/mint-components/p-cbbfac66.entry.js +0 -25
  965. package/dist/mint-components/p-cd1d497f.system.js +0 -1
  966. package/dist/mint-components/p-cd651f81.js +0 -42
  967. package/dist/mint-components/p-d8ea88f9.entry.js +0 -273
  968. package/dist/mint-components/p-da7708a7.entry.js +0 -1
  969. package/dist/mint-components/p-dbcb5359.js +0 -1
  970. package/dist/mint-components/p-dcc81e90.entry.js +0 -1
  971. package/dist/mint-components/p-ddcf4a9e.system.entry.js +0 -1
  972. package/dist/mint-components/p-e07bc6c4.system.js +0 -1
  973. package/dist/mint-components/p-e5a5ae7f.system.entry.js +0 -1
  974. package/dist/mint-components/p-e6f50ffd.entry.js +0 -1
  975. package/dist/mint-components/p-e8e48982.js +0 -1
  976. package/dist/mint-components/p-f26aedcd.system.js +0 -1
  977. package/dist/mint-components/p-f56bedd5.js +0 -1
  978. package/dist/mint-components/p-f708da7b.js +0 -1
  979. package/dist/mint-components/p-f7c99803.system.js +0 -1
  980. package/dist/mint-components/p-f98a4354.js +0 -1
  981. package/dist/types/components/sqm-asset-card/AssetCard.stories.d.ts +0 -7
  982. package/dist/types/components/sqm-asset-card/sqm-asset-card-view.d.ts +0 -8
  983. package/dist/types/components/sqm-asset-card/sqm-asset-card.d.ts +0 -24
  984. package/dist/types/components/sqm-asset-card/useAssetCard.d.ts +0 -7
@@ -2,145 +2,25 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-a29c60ef.js');
6
- const stencilHooks_module = require('./stencil-hooks.module-3a336b0f.js');
7
- const global = require('./global-e31dc4f5.js');
8
- const index_module = require('./index.module-ee84433d.js');
5
+ const index = require('./index-a43a63b4.js');
6
+ const global = require('./global-8bba5b3a.js');
7
+ const domContextHooks_module = require('./dom-context-hooks.module-7fa676ae.js');
8
+ const index_module = require('./index.module-4f54e412.js');
9
9
  const jsonpointer = require('./jsonpointer-11327262.js');
10
10
  const cjs = require('./cjs-1066ec21.js');
11
- const utils = require('./utils-6847bc06.js');
11
+ const utils = require('./utils-0d3ac0fb.js');
12
12
  const JSS = require('./JSS-8503a151.js');
13
- const mixins = require('./mixins-f7e0377a.js');
14
- const GenericTableView = require('./GenericTableView-a9f4ba75.js');
15
- const reRender = require('./re-render-b324deab.js');
16
- const useChildElements = require('./useChildElements-1b35d945.js');
17
- const luxon = require('./luxon-2926d85f.js');
18
- const useReferralTable = require('./useReferralTable-7c3f9600.js');
19
- const sqmTextSpanView = require('./sqm-text-span-view-0aa82125.js');
20
- const ErrorView = require('./ErrorView-b2fcf954.js');
21
- const sqmInvoiceTableView = require('./sqm-invoice-table-view-5c74607f.js');
22
- const extractProps = require('./extractProps-fd93ba62.js');
13
+ require('./mixins-4761d472.js');
14
+ const GenericTableView = require('./GenericTableView-a9845e80.js');
15
+ const reRender = require('./re-render-d516138a.js');
16
+ const useChildElements = require('./useChildElements-966c9041.js');
17
+ const luxon = require('./luxon-949beaf2.js');
18
+ const useReferralTable = require('./useReferralTable-90d4d6e9.js');
19
+ const IndirectTaxDetailsView = require('./IndirectTaxDetailsView-e5f70b8b.js');
20
+ const utils$1 = require('./utils-83d125fa.js');
21
+ const data = require('./data-88adb95b.js');
23
22
  const keys = require('./keys-cff24974.js');
24
- const usePayoutStatus = require('./usePayoutStatus-c84a7d98.js');
25
- const useVerificationEmail = require('./useVerificationEmail-95a82767.js');
26
-
27
- const TAX_CONTEXT_NAMESPACE = "sq:tax-and-cash";
28
- const TAX_FORM_CONTEXT_NAMESPACE = "sq:tax-form-context";
29
- const USER_QUERY_NAMESPACE = "sq:user-info-query";
30
- const USER_FORM_CONTEXT_NAMESPACE = "sq:user-form-context";
31
- const FINANCE_NETWORK_SETTINGS_NAMESPACE = "sq:finance-network-settings";
32
- const COUNTRIES_NAMESPACE = "sq:countries:list";
33
- const SORTED_COUNTRIES_NAMESPACE = "sq:countries:sorted";
34
- const COUNTRIES_QUERY_NAMESPACE = "sq:countries:query";
35
- const CURRENCIES_NAMESPACE = "sq:currencies:list";
36
- const CURRENCIES_QUERY_NAMESPACE = "sq:currencies:query";
37
- const GET_USER = index_module.dist.gql `
38
- query getUserTaxInfo {
39
- user: viewer {
40
- ... on User {
41
- id
42
- firstName
43
- lastName
44
- email
45
- countryCode
46
- customFields
47
- managedIdentity {
48
- uid
49
- email
50
- emailVerified
51
- }
52
- impactConnection {
53
- connected
54
- user {
55
- firstName
56
- lastName
57
- }
58
- publisher {
59
- id
60
- brandedSignup
61
- countryCode
62
- currency
63
- billingAddress
64
- billingCity
65
- billingState
66
- billingCountryCode
67
- billingPostalCode
68
- phoneNumberCountryCode
69
- phoneNumber
70
- taxInformation {
71
- indirectTaxId
72
- indirectTaxCountryCode
73
- indirectTaxRegion
74
- additionalTaxId
75
- withholdingTaxId
76
- withholdingTaxCountryCode
77
- }
78
- requiredTaxDocumentType
79
- currentTaxDocument {
80
- status
81
- type
82
- dateCreated
83
- }
84
- withdrawalSettings {
85
- paymentMethod
86
- paypalEmailAddress
87
- bankCountry
88
- bankAccountNumber
89
- paymentSchedulingType
90
- paymentThreshold
91
- paymentDay
92
- }
93
- payoutsAccount {
94
- hold
95
- holdReasons
96
- balance
97
- }
98
- }
99
- }
100
- }
101
- }
102
- }
103
- `;
104
- const GET_COUNTRIES = index_module.dist.gql `
105
- query getCountries {
106
- impactPayoutCountries(limit: 1000) {
107
- data {
108
- countryCode
109
- displayName
110
- }
111
- }
112
- }
113
- `;
114
- const GET_CURRENCIES = index_module.dist.gql `
115
- query currencies($locale: RSLocale) {
116
- currencies(limit: 300) {
117
- data {
118
- displayName(locale: $locale)
119
- currencyCode
120
- }
121
- }
122
- }
123
- `;
124
- const GET_FINANCE_NETWORK_SETTINGS = index_module.dist.gql `
125
- query impactFinanceNetworkSettings(
126
- $filter: ImpactFinanceNetworkSettingsFilterInput
127
- ) {
128
- impactFinanceNetworkSettings(filter: $filter, limit: 1000) {
129
- data {
130
- countryCode
131
- currency
132
- defaultFinancePaymentMethodId
133
- thresholdOptions
134
- withdrawalSettingId
135
- internationalEftFee
136
- foreignFxFee
137
- defaultFxFee
138
- }
139
- totalCount
140
- }
141
- }
142
- `;
143
- const FORM_STEPS = 4;
23
+ const usePayoutStatus = require('./usePayoutStatus-fe32dd1a.js');
144
24
 
145
25
  function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
146
26
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32;
@@ -684,45 +564,20 @@ const style = {
684
564
  gap: "8px",
685
565
  },
686
566
  ErrorText: {
687
- color: "var(--sl-color-danger-500)",
567
+ color: "var(--sqm-danger-color-icon)",
688
568
  marginTop: "10px",
689
569
  },
690
570
  PageDescriptionText: {
691
- color: "var(--sl-color-neutral-500)",
571
+ color: "var(--sqm-text-subdued)",
692
572
  fontSize: "var(--sl-font-size-medium)",
693
573
  },
694
574
  DescriptionText: {
695
- color: "var(--sl-color-neutral-500)",
696
- },
697
- SecondaryBtn: {
698
- "&::part(base)": {
699
- color: "var(--sl-color-gray-800) !important",
700
- },
701
- },
702
- AlertContainer: {
703
- "&::part(base)": {
704
- backgroundColor: "var(--sl-color-red-100)",
705
- borderTop: "none",
706
- padding: "0 16px",
707
- },
708
- "& sl-icon::part(base)": {
709
- color: "var(--sl-color-danger-500)",
710
- },
575
+ color: "var(--sqm-text-subdued)",
711
576
  },
712
577
  RadioContainer: {
713
578
  display: "flex",
714
579
  flexDirection: "column",
715
580
  },
716
- PartnerAlertContainer: {
717
- "&::part(base)": {
718
- backgroundColor: "var(--sl-color-sky-100)",
719
- borderTop: "none",
720
- padding: "0 16px",
721
- },
722
- "& sl-icon::part(base)": {
723
- color: "var(--sl-color-blue-500)",
724
- },
725
- },
726
581
  Checkbox: {
727
582
  "&::part(control)": {
728
583
  borderRadius: "50% !important",
@@ -734,8 +589,8 @@ const style = {
734
589
  InputContainer: {
735
590
  padding: "16px",
736
591
  margin: "16px 0px 16px 0px",
737
- borderTop: "1px solid var(--sl-color-gray-300)",
738
- borderBottom: "1px solid var(--sl-color-gray-300)",
592
+ borderTop: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
593
+ borderBottom: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
739
594
  display: "flex",
740
595
  flexDirection: "column",
741
596
  width: "100%",
@@ -757,37 +612,20 @@ const style = {
757
612
  width: "16px",
758
613
  height: "16px",
759
614
  borderRadius: "50%",
760
- background: "var(--sl-color-gray-200)",
615
+ background: "var(--sqm-skeleton-background)",
761
616
  },
762
617
  SmallSkeleton: {
763
618
  width: "100px",
764
619
  height: "16px",
765
620
  borderRadius: "50px",
766
- background: "var(--sl-color-gray-200)",
621
+ background: "var(--sqm-skeleton-background)",
767
622
  },
768
623
  LargeSkeleton: {
769
624
  width: "100%",
770
625
  maxWidth: "320px",
771
626
  height: "40px",
772
627
  borderRadius: "50px",
773
- background: "var(--sl-color-gray-200)",
774
- },
775
- InfoAlert: {
776
- "&::part(base)": {
777
- backgroundColor: "transparent",
778
- borderTop: "none",
779
- border: "none",
780
- },
781
- "&::part(message)": {
782
- display: "flex",
783
- alignItems: "center",
784
- justifyContent: "flex-start",
785
- padding: "10px",
786
- height: "max-content",
787
- },
788
- "& sl-icon::part(base)": {
789
- color: "var(--sl-color-yellow-500)",
790
- },
628
+ background: "var(--sqm-skeleton-background)",
791
629
  },
792
630
  InfoWarningIcon: {
793
631
  height: "26px",
@@ -833,20 +671,16 @@ const vanillaStyle = `
833
671
  font-weight: 600
834
672
  }
835
673
 
836
- p {
837
- line-height: 18px;
838
- color: var(--sl-color-gray-800);
839
- font-size: var(--sl-font-size-small);
840
- }
841
-
842
674
  /* this class is dynamically applied in controller */
843
675
  .error-input::part(base) {
844
- border: 1px solid var(--sl-color-danger-500);
845
- border-radius: var(--sl-input-border-radius-medium);
676
+ --sqm-input-border-color: var(--sqm-danger-color-border);
677
+ --sl-input-border-color: var(--sqm-danger-color-border);
678
+ --sl-input-border-color-hover: var(--sqm-danger-color-border);
679
+ --sl-input-border-color-focus: var(--sqm-danger-color-background);
846
680
  }
847
681
 
848
682
  .error-input::part(help-text) {
849
- color: var(--sl-color-danger-500) !important;
683
+ color: var(--sqm-danger-color-text);
850
684
  }
851
685
 
852
686
  `;
@@ -895,23 +729,19 @@ const BankingInfoFormView = (props) => {
895
729
  !states.hideSteps && (index.h("p", null, global.intl.formatMessage({
896
730
  id: "formStep",
897
731
  defaultMessage: text.formStep,
898
- }, { step: states.step, count: FORM_STEPS }))),
732
+ }, { step: states.step, count: data.FORM_STEPS }))),
899
733
  index.h("h3", { style: { fontSize: "24px" } }, text.taxAndPayouts),
900
734
  index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription)),
901
- ((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet.classes.AlertContainer },
902
- index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
903
- index.h("strong", null, text.error.generalTitle),
904
- index.h("br", null),
735
+ ((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sqm-form-message", { type: "error" },
736
+ index.h("p", { part: "alert-title" }, text.error.generalTitle),
905
737
  global.intl.formatMessage({
906
738
  id: "generalDescription",
907
739
  defaultMessage: text.error.generalDescription,
908
740
  }, {
909
741
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
910
742
  }))),
911
- states.isPartner && !states.hideSteps && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "primary", open: true, class: sheet.classes.PartnerAlertContainer },
912
- index.h("sl-icon", { slot: "icon", name: "info-circle" }),
913
- index.h("strong", null, text.isPartnerAlertHeader),
914
- index.h("br", null),
743
+ states.isPartner && !states.hideSteps && (index.h("sqm-form-message", { type: "info" },
744
+ index.h("p", { part: "alert-title" }, text.isPartnerAlertHeader),
915
745
  global.intl.formatMessage({
916
746
  id: "isPartnerAlertDescription",
917
747
  defaultMessage: text.isPartnerAlertDescription,
@@ -923,7 +753,7 @@ const BankingInfoFormView = (props) => {
923
753
  index.h("p", { class: classes.DescriptionText }, text.paymentMethodSubtext))),
924
754
  index.h("div", null,
925
755
  index.h("div", { class: classes.CheckboxContainer }, states.loading && formState.paymentMethodChecked === undefined ? (getLoadingSkeleton(undefined)) : (index.h("div", { class: classes.RadioContainer },
926
- states.hasPayPal && (index.h("sl-radio", { class: classes.Checkbox, exportparts: "label: input-label, base: input-base", checked: formState.paymentMethodChecked === "toBankAccount", onInput: () => callbacks.setPaymentMethodChecked("toBankAccount"), disabled: states.disabled, id: "toBankAccount", name: "/toBankAccount" }, text.directlyToBankAccount)),
756
+ states.hasPayPal && (index.h("sl-radio", { class: classes.Checkbox, exportparts: "base: radio-base", checked: formState.paymentMethodChecked === "toBankAccount", onInput: () => callbacks.setPaymentMethodChecked("toBankAccount"), disabled: states.disabled, id: "toBankAccount", name: "/toBankAccount" }, text.directlyToBankAccount)),
927
757
  formState.paymentMethodChecked === "toBankAccount" && (index.h("div", { class: classes.InputContainer, style: states.hideBanking ? { display: "none" } : {} }, states.loading
928
758
  ? getLoadingSkeleton("toBankAccount", slots.formInputsSlot.length + 3)
929
759
  : [
@@ -931,7 +761,7 @@ const BankingInfoFormView = (props) => {
931
761
  slots.paymentMethodSlot,
932
762
  slots.formInputsSlot,
933
763
  ])),
934
- states.hasPayPal && (index.h("sl-radio", { class: classes.Checkbox, exportparts: "label: input-label, base: input-base", checked: formState.paymentMethodChecked === "toPayPalAccount", onInput: () => callbacks.setPaymentMethodChecked("toPayPalAccount"), disabled: states.disabled, id: "toPayPalAccount", name: "/toPayPalAccount" }, global.intl.formatMessage({
764
+ states.hasPayPal && (index.h("sl-radio", { class: classes.Checkbox, exportparts: "base: radio-base", checked: formState.paymentMethodChecked === "toPayPalAccount", onInput: () => callbacks.setPaymentMethodChecked("toPayPalAccount"), disabled: states.disabled, id: "toPayPalAccount", name: "/toPayPalAccount" }, global.intl.formatMessage({
935
765
  id: "paypal-input-label",
936
766
  defaultMessage: text.toPayPalAccount,
937
767
  }, { feeCap: states.feeCap }))),
@@ -940,11 +770,11 @@ const BankingInfoFormView = (props) => {
940
770
  : slots.paypalInputSlot)),
941
771
  index.h("div", { style: { paddingTop: "24px", paddingBottom: "12px" } },
942
772
  index.h("h4", null, text.paymentSchedule)),
943
- index.h("sl-radio", { class: classes.Checkbox, exportparts: "label: input-label, base: input-base", checked: formState.paymentScheduleChecked === "BALANCE_THRESHOLD", onInput: () => callbacks.setPaymentScheduleChecked("BALANCE_THRESHOLD"), disabled: states.disabled, id: "paymentSchedulingType", name: "/paymentSchedulingType", value: "BALANCE_THRESHOLD" }, text.paymentScheduleBalanceThreshold),
773
+ index.h("sl-radio", { class: classes.Checkbox, exportparts: "base: radio-base", checked: formState.paymentScheduleChecked === "BALANCE_THRESHOLD", onInput: () => callbacks.setPaymentScheduleChecked("BALANCE_THRESHOLD"), disabled: states.disabled, id: "paymentSchedulingType", name: "/paymentSchedulingType", value: "BALANCE_THRESHOLD" }, text.paymentScheduleBalanceThreshold),
944
774
  formState.paymentScheduleChecked === "BALANCE_THRESHOLD" && (index.h("div", { class: classes.InputContainer, style: states.hideBalanceThreshold ? { display: "none" } : {} }, states.loading
945
775
  ? getLoadingSkeleton("toPayPalAccount")
946
776
  : slots.paymentThresholdSelectSlot)),
947
- index.h("sl-radio", { class: classes.Checkbox, exportparts: "label: input-label, base: input-base", checked: formState.paymentScheduleChecked === "FIXED_DAY", onInput: () => callbacks.setPaymentScheduleChecked("FIXED_DAY"), disabled: states.disabled, id: "paymentSchedulingType", name: "/paymentSchedulingType", value: "FIXED_DAY" }, text.paymentScheduleFixedDay),
777
+ index.h("sl-radio", { class: classes.Checkbox, exportparts: "base: radio-base", checked: formState.paymentScheduleChecked === "FIXED_DAY", onInput: () => callbacks.setPaymentScheduleChecked("FIXED_DAY"), disabled: states.disabled, id: "paymentSchedulingType", name: "/paymentSchedulingType", value: "FIXED_DAY" }, text.paymentScheduleFixedDay),
948
778
  formState.paymentScheduleChecked === "FIXED_DAY" && (index.h("div", { class: classes.InputContainer, style: states.hideFixedDay ? { display: "none" } : {} }, states.loading
949
779
  ? getLoadingSkeleton("toPayPalAccount")
950
780
  : slots.paymentFixedDaySelectSlot))))),
@@ -952,7 +782,7 @@ const BankingInfoFormView = (props) => {
952
782
  index.h("sl-button", Object.assign({ type: "primary", disabled: states.disabled || states.saveDisabled, loading: states.saveLoading }, (states.hideSteps
953
783
  ? { onClick: callbacks.onModalOpen }
954
784
  : { submit: "submit" }), { exportparts: "base: primarybutton-base" }), text.continueButton),
955
- !states.hideBackButton && (index.h("sl-button", { exportparts: "base: secondarybutton-base", class: classes.SecondaryBtn, type: "text", onClick: callbacks.onBack }, text.backButton))))));
785
+ !states.hideBackButton && (index.h("sl-button", { exportparts: "base: secondarybutton-base", type: "secondary", onClick: callbacks.onBack }, text.backButton))))));
956
786
  };
957
787
 
958
788
  // Hardcoded in Impact backend
@@ -1036,25 +866,25 @@ function useBankingInfoForm(props) {
1036
866
  const host = index_module._();
1037
867
  const locale = index_module.L();
1038
868
  const user = index_module.J();
1039
- const [step, setStep] = index_module.Pn(TAX_CONTEXT_NAMESPACE);
1040
- const context = index_module.Fn(TAX_FORM_CONTEXT_NAMESPACE);
1041
- const countries = index_module.Fn(SORTED_COUNTRIES_NAMESPACE);
1042
- const formRef = stencilHooks_module.useRef(null);
1043
- const { data: paymentOptionsData, loading: paymentOptionsLoading, errors: paymentOptionsError, } = index_module.$n(FINANCE_NETWORK_SETTINGS_NAMESPACE);
1044
- const { data: userData, refetch, errors: userError, } = index_module.$n(USER_QUERY_NAMESPACE);
869
+ const [step, setStep] = index_module.Pn(data.TAX_CONTEXT_NAMESPACE);
870
+ const context = index_module.Fn(data.TAX_FORM_CONTEXT_NAMESPACE);
871
+ const countries = index_module.Fn(data.SORTED_COUNTRIES_NAMESPACE);
872
+ const formRef = domContextHooks_module.useRef(null);
873
+ const { data: paymentOptionsData, loading: paymentOptionsLoading, errors: paymentOptionsError, } = index_module.$n(data.FINANCE_NETWORK_SETTINGS_NAMESPACE);
874
+ const { data: userData, refetch, errors: userError, } = index_module.$n(data.USER_QUERY_NAMESPACE);
1045
875
  const [saveWithdrawalSettings] = index_module.$e(SAVE_WITHDRAWAL_SETTINGS);
1046
876
  const [updateWithdrawalSettings] = index_module.$e(UPDATE_WITHDRAWAL_SETTINGS);
1047
- const [showVerification, setShowVerification] = stencilHooks_module.useState(false);
1048
- const [currentFormData, setCurrentFormData] = stencilHooks_module.useState(null);
1049
- const [formState, setFormState] = stencilHooks_module.useState({});
1050
- const [currentPaymentOption, setCurrentPaymentOption] = stencilHooks_module.useState(null);
1051
- const [loading, setLoading] = stencilHooks_module.useState(false);
1052
- const [errors, setErrors] = stencilHooks_module.useState({});
1053
- const [_paymentMethodChecked, _setPaymentMethodChecked] = stencilHooks_module.useState(undefined);
1054
- const [paymentScheduleChecked, setPaymentScheduleChecked] = stencilHooks_module.useState(undefined);
1055
- const [countrySearch, setCountrySearch] = stencilHooks_module.useState("");
1056
- const [filteredCountries, setFilteredCountries] = stencilHooks_module.useState(countries || []);
1057
- const [showModal, setShowModal] = stencilHooks_module.useState(false);
877
+ const [showVerification, setShowVerification] = domContextHooks_module.useState(false);
878
+ const [currentFormData, setCurrentFormData] = domContextHooks_module.useState(null);
879
+ const [formState, setFormState] = domContextHooks_module.useState({});
880
+ const [currentPaymentOption, setCurrentPaymentOption] = domContextHooks_module.useState(null);
881
+ const [loading, setLoading] = domContextHooks_module.useState(false);
882
+ const [errors, setErrors] = domContextHooks_module.useState({});
883
+ const [_paymentMethodChecked, _setPaymentMethodChecked] = domContextHooks_module.useState(undefined);
884
+ const [paymentScheduleChecked, setPaymentScheduleChecked] = domContextHooks_module.useState(undefined);
885
+ const [countrySearch, setCountrySearch] = domContextHooks_module.useState("");
886
+ const [filteredCountries, setFilteredCountries] = domContextHooks_module.useState(countries || []);
887
+ const [showModal, setShowModal] = domContextHooks_module.useState(false);
1058
888
  const currency = ((_c = (_b = (_a = userData === null || userData === void 0 ? void 0 : userData.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher) === null || _c === void 0 ? void 0 : _c.currency) || "";
1059
889
  const isPartner = !!((_f = (_e = (_d = userData === null || userData === void 0 ? void 0 : userData.user) === null || _d === void 0 ? void 0 : _d.impactConnection) === null || _e === void 0 ? void 0 : _e.publisher) === null || _f === void 0 ? void 0 : _f.withdrawalSettings);
1060
890
  const feeCap = paypalFeeMap[currency] || "";
@@ -1074,7 +904,11 @@ function useBankingInfoForm(props) {
1074
904
  const paymentMethodChecked = !hasPayPal
1075
905
  ? "toBankAccount"
1076
906
  : _paymentMethodChecked;
1077
- stencilHooks_module.useEffect(() => {
907
+ domContextHooks_module.useEffect(() => {
908
+ // reset redirect hash
909
+ window.location.hash = "";
910
+ }, []);
911
+ domContextHooks_module.useEffect(() => {
1078
912
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
1079
913
  if (!userData)
1080
914
  return;
@@ -1118,7 +952,7 @@ function useBankingInfoForm(props) {
1118
952
  setPaymentScheduleChecked(initialData.paymentSchedulingType);
1119
953
  setFormState(initialData);
1120
954
  }, [paymentOptions, userData, setCurrentPaymentOption, setFormState]);
1121
- stencilHooks_module.useEffect(() => {
955
+ domContextHooks_module.useEffect(() => {
1122
956
  if (!(countries === null || countries === void 0 ? void 0 : countries.length))
1123
957
  return;
1124
958
  if (countrySearch.trim() === "") {
@@ -1201,8 +1035,6 @@ function useBankingInfoForm(props) {
1201
1035
  window.dispatchEvent(new Event(usePayoutStatus.TAX_FORM_UPDATED_EVENT_KEY));
1202
1036
  await refetch();
1203
1037
  setStep("/dashboard");
1204
- // reset redirect hash
1205
- window.location.hash = "";
1206
1038
  }
1207
1039
  catch (e) {
1208
1040
  console.error(e);
@@ -1595,7 +1427,7 @@ const BankingInfoForm = class {
1595
1427
  * @uiName Information modal button text
1596
1428
  */
1597
1429
  this.modalButtonText = "I understand, update my information";
1598
- stencilHooks_module.h$1(this);
1430
+ domContextHooks_module.h$1(this);
1599
1431
  }
1600
1432
  disconnectedCallback() { }
1601
1433
  getTextProps() {
@@ -1686,7 +1518,15 @@ const BankingInfoForm = class {
1686
1518
  }, {
1687
1519
  email: props.states.email,
1688
1520
  });
1689
- return (index.h(index.Host, null, index.h("style", { type: "text/css" }, styleString), props.states.isPartner && props.states.showVerification ? (index.h("sl-dialog", { class: sheet.classes.Dialog, open: true, "onSl-hide": props.callbacks.onVerificationHide, label: props.text.verifyEmailHeaderText }, index.h("sqm-code-verification", { verifyCodeHeaderText: verifyDescription, reverifyCodeHeaderText: verifyDescription, onVerification: props.callbacks.onVerification }))) : null, index.h(BankingInfoFormView, { callbacks: props.callbacks, text: props.text, states: props.states, refs: props.refs, slots: {
1521
+ const vanillaStyle = `
1522
+ sl-menu-item::part(base) {
1523
+ color: var(--sqm-input-color);
1524
+ }
1525
+ sl-menu-item::part(base):hover {
1526
+ background-color: var(--sqm-input-border-color-hover);
1527
+ }
1528
+ `;
1529
+ return (index.h(index.Host, null, index.h("style", { type: "text/css" }, styleString), index.h("style", { type: "text/css" }, vanillaStyle), props.states.isPartner && props.states.showVerification ? (index.h("sl-dialog", { class: sheet.classes.Dialog, open: true, "onSl-hide": props.callbacks.onVerificationHide, label: props.text.verifyEmailHeaderText }, index.h("sqm-code-verification", { verifyCodeHeaderText: verifyDescription, reverifyCodeHeaderText: verifyDescription, onVerification: props.callbacks.onVerification }))) : null, index.h(BankingInfoFormView, { callbacks: props.callbacks, text: props.text, states: props.states, refs: props.refs, slots: {
1690
1530
  formInputsSlot: inputFields === null || inputFields === void 0 ? void 0 : inputFields.map(({ input }) => input),
1691
1531
  countryInputSlot: (index.h("sl-select", Object.assign({ label: props.text.bankLocationLabel, disabled: props.states.saveLoading, required: true, name: "/bankCountry", id: "bankCountry", value: props.states.formState.bankCountry || "", "onSl-select": (e) => { var _a, _b; return props.callbacks.setBankCountry((_b = (_a = e.detail) === null || _a === void 0 ? void 0 : _a.item) === null || _b === void 0 ? void 0 : _b.value); } }, (((_a = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _a === void 0 ? void 0 : _a.bankCountry) && {
1692
1532
  class: "error-input",
@@ -1735,11 +1575,11 @@ function useDemoBankingInfoForm(props) {
1735
1575
  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;
1736
1576
  const defaultCurrency = (_h = (_g = props.demoData) === null || _g === void 0 ? void 0 : _g.states) === null || _h === void 0 ? void 0 : _h.currency;
1737
1577
  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;
1738
- const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
1739
- const [paymentMethodChecked, setPaymentMethodChecked] = stencilHooks_module.useState(undefined);
1740
- const [paymentScheduleChecked, setPaymentScheduleChecked] = stencilHooks_module.useState(undefined);
1741
- const [currency, setCurrency] = stencilHooks_module.useState(defaultCurrency);
1742
- const [bankCountry, setBankCountry] = stencilHooks_module.useState(defaultCountry);
1578
+ const setStep = index_module.En(data.TAX_CONTEXT_NAMESPACE);
1579
+ const [paymentMethodChecked, setPaymentMethodChecked] = domContextHooks_module.useState(undefined);
1580
+ const [paymentScheduleChecked, setPaymentScheduleChecked] = domContextHooks_module.useState(undefined);
1581
+ const [currency, setCurrency] = domContextHooks_module.useState(defaultCurrency);
1582
+ const [bankCountry, setBankCountry] = domContextHooks_module.useState(defaultCountry);
1743
1583
  const currentPaymentOption = (_m = mockPaymentOptions[currency]) === null || _m === void 0 ? void 0 : _m.find((paymentOption) => {
1744
1584
  if (paymentOption.countryCode === bankCountry)
1745
1585
  return true;
@@ -1747,7 +1587,7 @@ function useDemoBankingInfoForm(props) {
1747
1587
  });
1748
1588
  const bitset = (currentPaymentOption === null || currentPaymentOption === void 0 ? void 0 : currentPaymentOption.withdrawalSettingId) || ((_p = (_o = props.demoData) === null || _o === void 0 ? void 0 : _o.states) === null || _p === void 0 ? void 0 : _p.bitset) ||
1749
1589
  0;
1750
- stencilHooks_module.useEffect(() => {
1590
+ domContextHooks_module.useEffect(() => {
1751
1591
  if (defaultPaymentMethodChecked !== paymentMethodChecked)
1752
1592
  setPaymentMethodChecked(defaultPaymentMethodChecked);
1753
1593
  if (defaultPaymentScheduleChecked !== paymentScheduleChecked)
@@ -1831,331 +1671,6 @@ function useDemoBankingInfoForm(props) {
1831
1671
  }, props.demoData || {}, { arrayMerge: (_, a) => a });
1832
1672
  }
1833
1673
 
1834
- const style$1 = {
1835
- Wrapper: {
1836
- display: "flex",
1837
- flexDirection: "column",
1838
- gap: "var(--sl-spacing-medium)",
1839
- maxWidth: "550px",
1840
- },
1841
- HeaderContainer: {
1842
- display: "flex",
1843
- flexDirection: "column",
1844
- },
1845
- InputsContainer: {
1846
- display: "flex",
1847
- gap: "var(--sl-spacing-medium)",
1848
- position: "relative",
1849
- flexDirection: "column",
1850
- },
1851
- CodeInputContainer: {
1852
- display: "flex",
1853
- gap: "var(--sl-spacing-medium)",
1854
- },
1855
- CodeInput: {
1856
- maxWidth: "40px",
1857
- "&::part(input)": {
1858
- margin: "0",
1859
- padding: "0 var(--sl-input-spacing-small)",
1860
- fontSize: "var(--sl-font-size-large)",
1861
- },
1862
- },
1863
- CodeInputError: {
1864
- ...mixins.ErrorStyles,
1865
- maxWidth: "40px",
1866
- "&::part(input)": {
1867
- margin: "0",
1868
- padding: "0 var(--sl-input-spacing-small)",
1869
- fontSize: "var(--sl-font-size-large)",
1870
- },
1871
- },
1872
- ErrorText: {
1873
- color: "var(--sl-color-danger-500)",
1874
- fontSize: "var(--sl-font-size-small)",
1875
- margin: "0",
1876
- },
1877
- ContinueButton: {
1878
- width: "100%",
1879
- maxWidth: "100px",
1880
- },
1881
- FooterContainer: {
1882
- display: "flex",
1883
- flexDirection: "column",
1884
- },
1885
- SkeletonOne: {
1886
- width: "50%",
1887
- height: "16px",
1888
- },
1889
- SkeletonTwo: {
1890
- width: "30%",
1891
- height: "34px",
1892
- },
1893
- SkeletonThree: {
1894
- width: "15%",
1895
- height: "24px",
1896
- },
1897
- };
1898
- const vanillaStyle$1 = `
1899
- :host {
1900
- display: block;
1901
- }
1902
- :host([hidden]): {
1903
- display: none;
1904
- }
1905
-
1906
-
1907
- `;
1908
- const sheet$1 = JSS.createStyleSheet(style$1);
1909
- const styleString$1 = sheet$1.toString();
1910
- function WidgetCodeVerificationView(props) {
1911
- const { states, refs, callbacks, text } = props;
1912
- const resendCodeText = global.intl.formatMessage({
1913
- id: "resendCodeText",
1914
- defaultMessage: text.resendCodeText,
1915
- }, {
1916
- resendCodeLink: (index.h("a", { href: "", style: { textDecoration: "none" }, onClick: (e) => {
1917
- e.preventDefault();
1918
- callbacks.resendEmail();
1919
- } }, text.resendCodeLabel)),
1920
- });
1921
- const codeResentSuccessfully = global.intl.formatMessage({
1922
- id: "codeResentSuccessfully",
1923
- defaultMessage: text.codeResentSuccessfullyText,
1924
- }, {
1925
- email: states.email,
1926
- });
1927
- const inputClass = states.verifyFailed
1928
- ? sheet$1.classes.CodeInputError
1929
- : sheet$1.classes.CodeInput;
1930
- return (index.h("div", { part: "sqm-base" },
1931
- index.h("style", { type: "text/css" },
1932
- vanillaStyle$1,
1933
- styleString$1),
1934
- index.h("div", { class: sheet$1.classes.Wrapper },
1935
- index.h("div", { class: sheet$1.classes.HeaderContainer },
1936
- index.h(sqmTextSpanView.TextSpanView, { type: "p" }, global.intl.formatMessage({
1937
- id: `emailHeaderText`,
1938
- defaultMessage: states.verifyFailed
1939
- ? text.reverifyCodeHeaderText
1940
- : text.verifyCodeHeaderText,
1941
- }, { email: states.email }))),
1942
- states.emailResent && (index.h("sqm-form-message", { type: "success", exportparts: "successalert-icon" },
1943
- index.h("b", null, codeResentSuccessfully))),
1944
- index.h("div", { class: sheet$1.classes.InputsContainer },
1945
- index.h("div", { ref: refs.codeWrapperRef, class: sheet$1.classes.CodeInputContainer },
1946
- index.h("sl-input", { class: inputClass, name: "code" }),
1947
- index.h("sl-input", { class: inputClass, name: "code" }),
1948
- index.h("sl-input", { class: inputClass, name: "code" }),
1949
- index.h("sl-input", { class: inputClass, name: "code" }),
1950
- index.h("sl-input", { class: inputClass, name: "code" }),
1951
- index.h("sl-input", { class: inputClass, name: "code" })),
1952
- states.verifyFailed && (index.h("p", { class: sheet$1.classes.ErrorText }, text.invalidCodeText)),
1953
- 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)),
1954
- index.h("div", { class: sheet$1.classes.FooterContainer },
1955
- index.h(sqmTextSpanView.TextSpanView, { type: "p" }, resendCodeText)))));
1956
- }
1957
-
1958
- const VerifyEmailWithCodeMutation = index_module.dist.gql `
1959
- mutation submitImpactPublisherEmail2FACode(
1960
- $user: UserIdInput!
1961
- $code: String!
1962
- ) {
1963
- submitImpactPublisherEmail2FACode(user: $user, code: $code) {
1964
- verifiedEmail
1965
- accessKey
1966
- }
1967
- }
1968
- `;
1969
- function useWidgetCodeVerification(props) {
1970
- const host = stencilHooks_module.l();
1971
- const [_, setShowCode] = index_module.Pn(keys.SHOW_CODE_NAMESPACE);
1972
- const email = index_module.Fn(keys.VERIFICATION_EMAIL_NAMESPACE);
1973
- const [emailSent, setEmailSent] = stencilHooks_module.useState(false);
1974
- const [emailResent, setEmailResent] = stencilHooks_module.useState(false);
1975
- const [codeRef, setCodeRef] = stencilHooks_module.useState(null);
1976
- const [validationError, setValidationError] = stencilHooks_module.useState(false);
1977
- const [emailError, setEmailError] = stencilHooks_module.useState(false);
1978
- const { initialized, verificationEmail, send: [sendEmail, { loading: sendLoading, errors: sendErrors }], verify: [verifyEmail, { loading: verifyLoading, errors: verifyErrors }], } = useVerificationEmail.useVerificationEmail();
1979
- stencilHooks_module.useEffect(() => {
1980
- if (!codeRef)
1981
- return;
1982
- const slInputs = codeRef.querySelectorAll("sl-input");
1983
- const codeElements = Array.from(slInputs).map((node) => node.shadowRoot.querySelector(`input[name="code"]`));
1984
- codeElements.forEach((element, idx) => {
1985
- element.addEventListener("focus", (e) => {
1986
- e.target.select();
1987
- });
1988
- element.addEventListener("keydown", (e) => {
1989
- if (e.key === "Backspace" && e.target.value === "") {
1990
- codeElements[Math.max(0, idx - 1)].focus();
1991
- }
1992
- });
1993
- element.addEventListener("input", (e) => {
1994
- const input = e.data;
1995
- if (!input)
1996
- return;
1997
- if (idx === codeElements.length - 1) {
1998
- e.target.value = input.slice(0, 1);
1999
- return;
2000
- }
2001
- if (input.length > 1) {
2002
- const rest = input.slice(1);
2003
- e.target.value = input.slice(0, 1);
2004
- codeElements[idx + 1].dispatchEvent(new InputEvent("input", {
2005
- inputType: "insertFromPaste",
2006
- data: rest,
2007
- }));
2008
- }
2009
- codeElements[idx + 1].focus();
2010
- });
2011
- });
2012
- }, [codeRef]);
2013
- const reset = () => {
2014
- setShowCode(false);
2015
- setValidationError(false);
2016
- };
2017
- const resendEmail = async () => {
2018
- // UI should only allow this to be called if initialized, but checking just in case
2019
- if (!initialized)
2020
- return;
2021
- const result = await sendEmail();
2022
- if (!result) {
2023
- setEmailError(true);
2024
- return;
2025
- }
2026
- if (emailSent)
2027
- setEmailResent(true);
2028
- setEmailSent(true);
2029
- };
2030
- const submitCode = async () => {
2031
- const slInputs = codeRef.querySelectorAll("sl-input");
2032
- const codeElements = Array.from(slInputs).map((node) => node.shadowRoot.querySelector(`input[name="code"]`));
2033
- if (codeElements.find((el) => !el.value)) {
2034
- setValidationError(true);
2035
- return;
2036
- }
2037
- let code = "";
2038
- codeElements.forEach((element) => {
2039
- code = `${code}${element.value}`;
2040
- });
2041
- // UI should only allow this to be called if initialized, but checking just in case
2042
- if (!initialized)
2043
- return;
2044
- setValidationError(false);
2045
- const res = await verifyEmail(code);
2046
- if (res === null || res === void 0 ? void 0 : res.success) {
2047
- props.onVerification(res.accessKey);
2048
- reset();
2049
- }
2050
- else {
2051
- setValidationError(true);
2052
- }
2053
- };
2054
- stencilHooks_module.useEffect(() => {
2055
- // Wait for mutations to be determined from user lookup
2056
- if (!initialized)
2057
- return;
2058
- // email should already exist if user has completed email-verification
2059
- if (!email)
2060
- resendEmail();
2061
- else
2062
- setEmailSent(true);
2063
- }, [initialized]);
2064
- return {
2065
- refs: {
2066
- codeWrapperRef: setCodeRef,
2067
- },
2068
- states: {
2069
- email: verificationEmail,
2070
- emailResent,
2071
- resendError: sendErrors || verifyErrors,
2072
- initialiseLoading: !initialized,
2073
- loading: sendLoading || verifyLoading,
2074
- verifyFailed: !!validationError,
2075
- },
2076
- callbacks: {
2077
- resendEmail,
2078
- submitCode,
2079
- },
2080
- text: props.getTextProps(),
2081
- };
2082
- }
2083
-
2084
- const WidgetCodeVerification = class {
2085
- constructor(hostRef) {
2086
- index.registerInstance(this, hostRef);
2087
- /**
2088
- * @uiName Verify code widget header text
2089
- */
2090
- this.verifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
2091
- /**
2092
- * @uiName Reverify code widget header text
2093
- */
2094
- this.reverifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
2095
- /**
2096
- * Text displayed under verify button
2097
- * @uiName Resend code text
2098
- */
2099
- this.resendCodeText = "Didn't receive your code? {resendCodeLink}";
2100
- /**
2101
- * The link that appears in the resend code link
2102
- * @uiName Resend code label
2103
- */
2104
- this.resendCodeLabel = "Resend code";
2105
- /**
2106
- * Link text displayed under verify button
2107
- * @uiName Resend code text
2108
- */
2109
- this.codeResentSuccessfullyText = "Another code has been sent to {email}";
2110
- /**
2111
- * Error text displayed under verification input
2112
- * @uiName Invalid code text
2113
- */
2114
- this.invalidCodeText = "Please check your code and try again. If you’re still having trouble, try resending your code.";
2115
- /**
2116
- * @uiName Verify code button text
2117
- */
2118
- this.verifyText = "Verify";
2119
- /**
2120
- * Displayed when the email verification fails due to a network error. The participant can try refreshing the page.
2121
- * @uiName Network error message
2122
- */
2123
- this.networkErrorMessage = "An error occurred while verifying your email. Please refresh the page and try again.";
2124
- stencilHooks_module.h$1(this);
2125
- }
2126
- disconnectedCallback() { }
2127
- getTextProps() {
2128
- return utils.getProps(this);
2129
- }
2130
- render() {
2131
- const props = index_module.isDemo()
2132
- ? useDemoWidgetCodeVerification(this)
2133
- : useWidgetCodeVerification(this);
2134
- return index.h(WidgetCodeVerificationView, Object.assign({}, props));
2135
- }
2136
- };
2137
- function useDemoWidgetCodeVerification(props) {
2138
- const [emailResent, setEmailResent] = stencilHooks_module.useState(false);
2139
- const setVerifiedContext = index_module.En(keys.VERIFICATION_PARENT_NAMESPACE);
2140
- return cjs.cjs({
2141
- states: {
2142
- loading: false,
2143
- email: "test@example.com",
2144
- emailResent,
2145
- resendError: false,
2146
- verifyFailed: false,
2147
- },
2148
- refs: {
2149
- codeWrapperRef: () => { },
2150
- },
2151
- callbacks: {
2152
- resendEmail: async () => setEmailResent(true),
2153
- submitCode: async () => setVerifiedContext(true),
2154
- },
2155
- text: props.getTextProps(),
2156
- }, props.demoData || {}, { arrayMerge: (_, a) => a });
2157
- }
2158
-
2159
1674
  const GET_TAX_DOCUMENT = index_module.dist.gql `
2160
1675
  mutation createImpactPublisherTaxDocument(
2161
1676
  $vars: CreateImpactPublisherTaxDocumentInput!
@@ -2184,24 +1699,24 @@ const DOCUSIGN_EXPIRED_STATES = ["ttl_expired", "session_timeout"];
2184
1699
  function useDocusignForm(props) {
2185
1700
  var _a, _b, _c;
2186
1701
  const user = index_module.J();
2187
- const context = index_module.Fn(TAX_FORM_CONTEXT_NAMESPACE);
2188
- const [step, setStep] = index_module.Pn(TAX_CONTEXT_NAMESPACE);
2189
- const { data, loading: userLoading, refetch, } = index_module.$n(USER_QUERY_NAMESPACE);
2190
- 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;
1702
+ const context = index_module.Fn(data.TAX_FORM_CONTEXT_NAMESPACE);
1703
+ const [step, setStep] = index_module.Pn(data.TAX_CONTEXT_NAMESPACE);
1704
+ const { data: data$1, loading: userLoading, refetch, } = index_module.$n(data.USER_QUERY_NAMESPACE);
1705
+ 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;
2191
1706
  const [createTaxDocument, { loading: documentLoading, data: document, errors: documentErrors },] = index_module.$e(GET_TAX_DOCUMENT);
2192
1707
  const [completeTaxDocument, { loading: completeDocumentLoading, data: completeData, errors: completeErrors, },] = index_module.$e(COMPLETE_TAX_DOCUMENT);
2193
- const [docusignStatus, setDocusignStatus] = stencilHooks_module.useState(undefined);
2194
- const [participantType, setParticipantType] = stencilHooks_module.useState(undefined);
2195
- const [errors, setErrors] = stencilHooks_module.useState({});
2196
- const [loading, setLoading] = stencilHooks_module.useState(false);
2197
- const [showExitButton, setShowExitButton] = stencilHooks_module.useState(false);
2198
- const [showModal, setShowModal] = stencilHooks_module.useState(true);
1708
+ const [docusignStatus, setDocusignStatus] = domContextHooks_module.useState(undefined);
1709
+ const [participantType, setParticipantType] = domContextHooks_module.useState(undefined);
1710
+ const [errors, setErrors] = domContextHooks_module.useState({});
1711
+ const [loading, setLoading] = domContextHooks_module.useState(false);
1712
+ const [showExitButton, setShowExitButton] = domContextHooks_module.useState(false);
1713
+ const [showModal, setShowModal] = domContextHooks_module.useState(true);
2199
1714
  // Only look at current document if it's valid (same as required type)
2200
- const existingDocumentType = sqmInvoiceTableView.validTaxDocument(publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType) && (publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument)
1715
+ const existingDocumentType = utils$1.validTaxDocument(publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType) && (publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument)
2201
1716
  ? publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType : undefined;
2202
1717
  const actualDocumentType = existingDocumentType ||
2203
1718
  getDocumentType(participantType) || (publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType);
2204
- stencilHooks_module.useEffect(() => {
1719
+ domContextHooks_module.useEffect(() => {
2205
1720
  if (!existingDocumentType)
2206
1721
  return;
2207
1722
  if (existingDocumentType === "W8BEN") {
@@ -2211,7 +1726,7 @@ function useDocusignForm(props) {
2211
1726
  setParticipantType("businessEntity");
2212
1727
  }
2213
1728
  }, [existingDocumentType]);
2214
- stencilHooks_module.useEffect(() => {
1729
+ domContextHooks_module.useEffect(() => {
2215
1730
  // Skip if no publisher info
2216
1731
  if (!user || !publisher)
2217
1732
  return;
@@ -2289,7 +1804,7 @@ function useDocusignForm(props) {
2289
1804
  },
2290
1805
  docusignStatus,
2291
1806
  documentType: actualDocumentType,
2292
- documentTypeString: sqmInvoiceTableView.taxTypeToName(actualDocumentType),
1807
+ documentTypeString: utils$1.taxTypeToName(actualDocumentType),
2293
1808
  showExitButton,
2294
1809
  showModal,
2295
1810
  },
@@ -2317,7 +1832,7 @@ function getDocumentType(p) {
2317
1832
  return undefined;
2318
1833
  }
2319
1834
 
2320
- const style$2 = {
1835
+ const style$1 = {
2321
1836
  DocusignStatusContainer: {
2322
1837
  width: "100%",
2323
1838
  minHeight: "600px",
@@ -2329,7 +1844,7 @@ const style$2 = {
2329
1844
  gap: "10px",
2330
1845
  margin: "auto",
2331
1846
  textAlign: "center",
2332
- border: "1px solid var(--sl-color-gray-200)",
1847
+ border: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
2333
1848
  justifyContent: "center",
2334
1849
  },
2335
1850
  MessageContainer: {
@@ -2344,48 +1859,48 @@ const style$2 = {
2344
1859
  },
2345
1860
  },
2346
1861
  };
2347
- const sheet$2 = JSS.createStyleSheet(style$2);
2348
- const styleString$2 = sheet$2.toString();
1862
+ const sheet$1 = JSS.createStyleSheet(style$1);
1863
+ const styleString$1 = sheet$1.toString();
2349
1864
  const DocusignExpiredView = (props) => {
2350
- const { classes } = sheet$2;
1865
+ const { classes } = sheet$1;
2351
1866
  const { text } = props;
2352
1867
  return (index.h("div", null,
2353
- index.h("style", { type: "text/css" }, styleString$2),
1868
+ index.h("style", { type: "text/css" }, styleString$1),
2354
1869
  index.h("div", { class: classes.DocusignStatusContainer },
2355
1870
  index.h("sl-icon", { style: {
2356
1871
  width: "50px",
2357
1872
  height: "50px",
2358
- color: "var(--sl-color-neutral-500)",
1873
+ color: "var(--sqm-text)",
2359
1874
  }, name: "clock" }),
2360
1875
  index.h("div", { class: classes.MessageContainer },
2361
1876
  index.h("p", { style: { margin: "0" } }, text.docusignExpired)),
2362
1877
  index.h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
2363
1878
  };
2364
1879
  const DocusignErrorView = (props) => {
2365
- const { classes } = sheet$2;
1880
+ const { classes } = sheet$1;
2366
1881
  const { text } = props;
2367
1882
  return (index.h("div", null,
2368
- index.h("style", { type: "text/css" }, styleString$2),
1883
+ index.h("style", { type: "text/css" }, styleString$1),
2369
1884
  index.h("div", { class: classes.DocusignStatusContainer },
2370
1885
  index.h("sl-icon", { style: {
2371
1886
  width: "50px",
2372
1887
  height: "50px",
2373
- color: "var(--sl-color-gray-500)",
1888
+ color: "var(--sqm-text)",
2374
1889
  }, name: "exclamation-octagon" }),
2375
1890
  index.h("div", { class: classes.MessageContainer },
2376
1891
  index.h("p", { style: { margin: "0" } }, text.docusignError)),
2377
1892
  index.h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
2378
1893
  };
2379
1894
  const DocusignLoadingView = () => {
2380
- const { classes } = sheet$2;
1895
+ const { classes } = sheet$1;
2381
1896
  return (index.h("div", null,
2382
- index.h("style", { type: "text/css" }, styleString$2),
1897
+ index.h("style", { type: "text/css" }, styleString$1),
2383
1898
  index.h("div", { class: classes.DocusignStatusContainer },
2384
1899
  index.h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } }))));
2385
1900
  };
2386
1901
  const DocusignIframe = ({ states, data, callbacks, text, }) => {
2387
- const { classes } = sheet$2;
2388
- const [iFrameHeight, setiFrameHeight] = stencilHooks_module.useState("100%");
1902
+ const { classes } = sheet$1;
1903
+ const [iFrameHeight, setiFrameHeight] = domContextHooks_module.useState("100%");
2389
1904
  const allowedDomains = [
2390
1905
  "referralsaasquatch.com",
2391
1906
  "impacttech.complysandbox.com",
@@ -2398,11 +1913,11 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
2398
1913
  if (typeof e.data === "number") {
2399
1914
  setiFrameHeight(e.data + "px");
2400
1915
  }
2401
- if (e.data === "Complyexchange Thank you page Load") {
1916
+ if (e.data === "Complyexchange Thank you page Load" && !states.loading) {
2402
1917
  callbacks.completeDocument();
2403
1918
  }
2404
1919
  }, []);
2405
- stencilHooks_module.useEffect(() => {
1920
+ domContextHooks_module.useEffect(() => {
2406
1921
  window.addEventListener("message", callback, false);
2407
1922
  return () => {
2408
1923
  window.removeEventListener("message", callback, false);
@@ -2417,12 +1932,12 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
2417
1932
  return index.h(DocusignExpiredView, { text: text });
2418
1933
  // Wrap iFrame with container that shares the same height to push other elements down when absolute positioned
2419
1934
  return (index.h("div", { style: { height: iFrameHeight } },
2420
- index.h("style", { type: "text/css" }, styleString$2),
1935
+ index.h("style", { type: "text/css" }, styleString$1),
2421
1936
  index.h("div", { class: classes.IFrameContainer },
2422
1937
  index.h("iframe", { scrolling: "yes", frameBorder: "0", width: "100%", src: data.documentUrl, height: iFrameHeight }))));
2423
1938
  };
2424
1939
 
2425
- const style$3 = {
1940
+ const style$2 = {
2426
1941
  ModalTitleContainer: {
2427
1942
  display: "flex",
2428
1943
  gap: "var(--sl-spacing-small)",
@@ -2459,7 +1974,7 @@ const style$3 = {
2459
1974
  gap: "8px",
2460
1975
  },
2461
1976
  ErrorText: {
2462
- color: "var(--sl-color-danger-500)",
1977
+ color: "var(--sqm-danger-color-icon)",
2463
1978
  marginTop: "10px",
2464
1979
  },
2465
1980
  DescriptionText: {
@@ -2468,44 +1983,6 @@ const style$3 = {
2468
1983
  BoldText: {
2469
1984
  fontWeight: "bold",
2470
1985
  },
2471
- SecondaryBtn: {
2472
- "&::part(base)": {
2473
- color: "var(--sl-color-gray-800) !important",
2474
- },
2475
- "&::part(label)": {
2476
- padding: "0px",
2477
- margin: "0px",
2478
- },
2479
- },
2480
- ErrorAlertContainer: {
2481
- "&::part(base)": {
2482
- backgroundColor: "var(--sl-color-red-100)",
2483
- borderTop: "none",
2484
- padding: "0 16px",
2485
- },
2486
- "& sl-icon::part(base)": {
2487
- color: "var(--sl-color-danger-500)",
2488
- },
2489
- },
2490
- InfoAlert: {
2491
- "&::part(base)": {
2492
- backgroundColor: "transparent",
2493
- borderTop: "none",
2494
- padding: "0px",
2495
- marginBottom: "16px",
2496
- border: "none",
2497
- },
2498
- "&::part(message)": {
2499
- display: "flex",
2500
- alignItems: "center",
2501
- justifyContent: "flex-start",
2502
- padding: "10px",
2503
- height: "max-content",
2504
- },
2505
- "& sl-icon::part(base)": {
2506
- color: "var(--sl-color-sky-500)",
2507
- },
2508
- },
2509
1986
  Container: {
2510
1987
  width: "100%",
2511
1988
  display: "flex",
@@ -2513,16 +1990,6 @@ const style$3 = {
2513
1990
  flexDirection: "column",
2514
1991
  gap: "16px",
2515
1992
  },
2516
- Link: {
2517
- color: "var(--sl-color-sky-500)",
2518
- textDecoration: "none",
2519
- "&:visited": {
2520
- color: "var(--sl-color-sky-500)",
2521
- },
2522
- "&:hover": {
2523
- textDecoration: "underline",
2524
- },
2525
- },
2526
1993
  CheckboxWrapper: {
2527
1994
  display: "flex",
2528
1995
  justifyContent: "flex-start",
@@ -2536,7 +2003,7 @@ const style$3 = {
2536
2003
  fontSize: "var(--sl-font-size-small)",
2537
2004
  },
2538
2005
  PageDescriptionText: {
2539
- color: "var(--sl-color-neutral-500)",
2006
+ color: "var(--sqm-text-subdued)",
2540
2007
  fontSize: "var(--sl-font-size-medium)",
2541
2008
  },
2542
2009
  Dialog: {
@@ -2562,41 +2029,38 @@ const style$3 = {
2562
2029
  },
2563
2030
  DialogButton: { margin: "auto", width: "100%" },
2564
2031
  };
2565
- const sheet$3 = JSS.createStyleSheet(style$3);
2566
- const styleString$3 = sheet$3.toString();
2567
- const vanillaStyle$2 = `
2568
- :host{
2569
- display: block;
2570
- }
2571
- * {
2572
- margin: 0;
2573
- padding: 0;
2574
- box-sizing: border-box;
2575
- }
2032
+ const sheet$2 = JSS.createStyleSheet(style$2);
2033
+ const styleString$2 = sheet$2.toString();
2034
+ const vanillaStyle$1 = `
2035
+ :host{
2036
+ display: block;
2037
+ }
2576
2038
 
2577
- p {
2578
- line-height: 18px;
2579
- color: var(--sl-color-gray-800);
2580
- font-size: var(--sl-font-size-small);
2581
- }
2039
+ * {
2040
+ margin: 0;
2041
+ padding: 0;
2042
+ box-sizing: border-box;
2043
+ }
2582
2044
 
2583
- a {
2584
- cursor: pointer;
2585
- }
2045
+ a {
2046
+ color: inherit;
2047
+ text-decoration: underline;
2048
+ cursor: pointer;
2049
+ }
2586
2050
 
2587
2051
 
2588
2052
  `;
2589
2053
  const DocusignFormView = (props) => {
2590
2054
  var _a;
2591
2055
  const { states, states: { formState, documentTypeString }, callbacks, text, slots, } = props;
2592
- const { classes } = sheet$3;
2056
+ const { classes } = sheet$2;
2593
2057
  return (index.h("div", { class: classes.Container },
2594
2058
  index.h("style", { type: "text/css" },
2595
- styleString$3,
2596
- vanillaStyle$2),
2597
- index.h("sl-dialog", { class: sheet$3.classes.Dialog, open: states.showModal, "onSl-hide": callbacks.onModalClose },
2059
+ styleString$2,
2060
+ vanillaStyle$1),
2061
+ index.h("sl-dialog", { class: sheet$2.classes.Dialog, open: states.showModal, "onSl-hide": callbacks.onModalClose },
2598
2062
  index.h("div", { class: classes.ModalTitleContainer, slot: "label" },
2599
- index.h("sl-icon", { name: "info-circle", style: { color: "var(--sl-color-info-500)" } }),
2063
+ index.h("sl-icon", { name: "info-circle", style: { color: "var(--sqm-informative-color-icon)" } }),
2600
2064
  index.h("h2", { style: { fontSize: "var(--sl-font-size-large)" } }, text.modalTitle)),
2601
2065
  index.h("p", null, global.intl.formatMessage({
2602
2066
  id: "modalText",
@@ -2604,30 +2068,26 @@ const DocusignFormView = (props) => {
2604
2068
  }, {
2605
2069
  br: index.h("br", null),
2606
2070
  })),
2607
- index.h("sl-button", { slot: "footer", type: "primary", class: sheet$3.classes.DialogButton, onClick: callbacks.onModalClose, exportparts: "base: primarybutton-base" }, text.modalButtonText)),
2071
+ index.h("sl-button", { slot: "footer", type: "primary", class: sheet$2.classes.DialogButton, onClick: callbacks.onModalClose, exportparts: "base: primarybutton-base" }, text.modalButtonText)),
2608
2072
  index.h("div", { class: classes.TextContainer },
2609
2073
  index.h("div", null,
2610
2074
  !states.hideSteps && (index.h("p", null, global.intl.formatMessage({
2611
2075
  id: "formStep",
2612
2076
  defaultMessage: text.formStep,
2613
- }, { step: states.step, count: FORM_STEPS }))),
2077
+ }, { step: states.step, count: data.FORM_STEPS }))),
2614
2078
  index.h("h3", null, text.taxForm),
2615
2079
  index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
2616
2080
  states.loadingError && (index.h("div", null,
2617
- index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$3.classes.ErrorAlertContainer },
2618
- index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
2619
- index.h("strong", null, text.error.loadingErrorAlertHeader),
2620
- index.h("br", null),
2081
+ index.h("sqm-form-message", { type: "error" },
2082
+ index.h("p", { part: "alert-title" }, text.error.loadingErrorAlertHeader),
2621
2083
  global.intl.formatMessage({
2622
2084
  id: "loadingErrorAlertDescription",
2623
2085
  defaultMessage: text.error.loadingErrorAlertDescription,
2624
2086
  }, {
2625
2087
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
2626
2088
  })))),
2627
- ((_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 },
2628
- index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
2629
- index.h("strong", null, text.error.generalTitle),
2630
- index.h("br", null),
2089
+ ((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sqm-form-message", { type: "error" },
2090
+ index.h("p", { part: "alert-title" }, text.error.generalTitle),
2631
2091
  global.intl.formatMessage({
2632
2092
  id: "generalDescription",
2633
2093
  defaultMessage: text.error.generalDescription,
@@ -2687,7 +2147,7 @@ const DocusignForm = class {
2687
2147
  * @uiName W-8 BEN-E tax form description
2688
2148
  * @uiWidget textArea
2689
2149
  */
2690
- this.taxFormDescriptionBusinessEntity = "Participants residing outside of the US who represent a business entity need to submit a {documentType} form.";
2150
+ this.taxFormDescriptionBusinessEntity = "Participants residing outside of the US working with a US Brand need to submit a {documentType} form.";
2691
2151
  /**
2692
2152
  * This appears inside the Docusign frame.
2693
2153
  * @uiName Docusign session expired messag
@@ -2770,7 +2230,7 @@ const DocusignForm = class {
2770
2230
  * @uiName Information modal button text
2771
2231
  */
2772
2232
  this.modalButtonText = "I understand";
2773
- stencilHooks_module.h$1(this);
2233
+ domContextHooks_module.h$1(this);
2774
2234
  }
2775
2235
  disconnectedCallback() { }
2776
2236
  getTextProps() {
@@ -2807,11 +2267,11 @@ const DocusignForm = class {
2807
2267
  get el() { return index.getElement(this); }
2808
2268
  };
2809
2269
  function useDocusignFormDemo(props) {
2810
- const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
2270
+ const setStep = index_module.En(data.TAX_CONTEXT_NAMESPACE);
2811
2271
  return cjs.cjs({
2812
2272
  text: props.getTextProps(),
2813
2273
  states: {
2814
- step: "4",
2274
+ step: "3",
2815
2275
  disabled: false,
2816
2276
  submitDisabled: false,
2817
2277
  loading: false,
@@ -2847,7 +2307,7 @@ const DemoDocusignIframe = ({ callbacks }) => {
2847
2307
  return (index.h("div", { style: {
2848
2308
  width: "100%",
2849
2309
  height: "600px",
2850
- background: "#fafafa",
2310
+ background: "inherit",
2851
2311
  display: "flex",
2852
2312
  justifyContent: "center",
2853
2313
  alignItems: "center",
@@ -2859,7 +2319,7 @@ const DemoDocusignIframe = ({ callbacks }) => {
2859
2319
  } }, 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")))));
2860
2320
  };
2861
2321
 
2862
- const style$4 = {
2322
+ const style$3 = {
2863
2323
  FormWrapper: {
2864
2324
  display: "flex",
2865
2325
  justifyContent: "flex-start",
@@ -2871,6 +2331,7 @@ const style$4 = {
2871
2331
  justifyContent: "flex-start",
2872
2332
  flexDirection: "column",
2873
2333
  gap: "var(--sl-spacing-medium)",
2334
+ marginBottom: "16px",
2874
2335
  "& sl-radio::part(base)": {
2875
2336
  alignItems: "start",
2876
2337
  },
@@ -2886,6 +2347,7 @@ const style$4 = {
2886
2347
  flexDirection: "column",
2887
2348
  gap: "var(--sl-spacing-xx-small)",
2888
2349
  fontSize: "var(--sl-font-size-small)",
2350
+ color: "var(--sqm-text)",
2889
2351
  },
2890
2352
  TitleContainer: {
2891
2353
  display: "flex",
@@ -2907,90 +2369,83 @@ const style$4 = {
2907
2369
  gap: "8px",
2908
2370
  },
2909
2371
  ErrorText: {
2910
- color: "var(--sl-color-danger-500)",
2372
+ color: "var(--sqm-danger-color-text)",
2911
2373
  marginTop: "10px",
2912
2374
  },
2913
2375
  DescriptionText: {
2914
- color: "var(--sl-color-neutral-500)",
2376
+ color: "var(--sqm-text-subdued)",
2915
2377
  },
2916
- SecondaryBtn: {
2917
- "&::part(base)": {
2918
- color: "var(--sl-color-gray-800) !important",
2919
- },
2378
+ InfoWarningIcon: {
2379
+ height: "26px",
2380
+ width: "26px",
2920
2381
  },
2921
- AlertContainer: {
2922
- "&::part(base)": {
2923
- backgroundColor: "var(--sl-color-red-100)",
2924
- borderTop: "none",
2925
- padding: "0 16px",
2926
- },
2927
- "& sl-icon::part(base)": {
2928
- color: "var(--sl-color-danger-500)",
2929
- },
2382
+ PageDescriptionText: {
2383
+ color: "var(--sqm-text-subdued)",
2384
+ fontSize: "var(--sl-font-size-medium)",
2385
+ marginBottom: "var(--sl-spacing-small)",
2930
2386
  },
2931
- PartnerAlertContainer: {
2387
+ PrimaryButton: {
2932
2388
  "&::part(base)": {
2933
- backgroundColor: "var(--sl-color-sky-100)",
2934
- borderTop: "none",
2935
- padding: "0 16px",
2389
+ background: "var(--sqm-primary-button-background)",
2390
+ color: "var(--sqm-primary-button-color)",
2391
+ borderColor: "var(--sqm-primary-button-color-border)",
2392
+ borderRadius: "var(--sqm-primary-button-radius)",
2936
2393
  },
2937
- "& sl-icon::part(base)": {
2938
- color: "var(--sl-color-blue-500)",
2394
+ "&::part(base):hover": {
2395
+ backgroundColor: "var(--sqm-primary-button-background-hover)",
2396
+ borderColor: "var(--sqm-primary-button-border-color-hover)",
2397
+ color: "var(--sqm-primary-button-color-hover)",
2939
2398
  },
2940
2399
  },
2941
- InfoAlert: {
2942
- marginTop: "var(--sl-spacing-large)",
2400
+ SecondaryButton: {
2943
2401
  "&::part(base)": {
2944
- backgroundColor: "transparent",
2945
- borderTop: "none",
2946
- padding: "0px",
2947
- border: "none",
2948
- },
2949
- "&::part(message)": {
2950
- alignItems: "center",
2951
- padding: "var(--sl-spacing-small)",
2952
- whiteSpace: "nowrap",
2402
+ background: "var(--sqm-secondary-button-background)",
2403
+ color: "var(--sqm-secondary-button-color)",
2404
+ borderColor: "var(--sqm-secondary-button-color-border)",
2405
+ borderRadius: "var(--sqm-secondary-button-radius)",
2406
+ width: "max-content",
2407
+ display: "flex",
2408
+ margin: "auto",
2953
2409
  },
2954
- "& sl-icon::part(base)": {
2955
- color: "var(--sl-color-yellow-500)",
2410
+ "&::part(base):hover": {
2411
+ backgroundColor: "var(--sqm-secondary-button-background-hover)",
2412
+ color: "var(--sqm-secondary-button-color-hover)",
2413
+ borderColor: "var(--sqm-secondary-button-border-color-hover)",
2956
2414
  },
2957
2415
  },
2958
- InfoWarningIcon: {
2959
- height: "26px",
2960
- width: "26px",
2961
- },
2962
- PageDescriptionText: {
2963
- color: "var(--sl-color-neutral-500)",
2964
- fontSize: "var(--sl-font-size-medium)",
2965
- marginBottom: "var(--sl-spacing-small)",
2966
- },
2967
2416
  };
2968
- const sheet$4 = JSS.createStyleSheet(style$4);
2969
- const styleString$4 = sheet$4.toString();
2970
- const vanillaStyle$3 = `
2417
+ const sheet$3 = JSS.createStyleSheet(style$3);
2418
+ const styleString$3 = sheet$3.toString();
2419
+ const vanillaStyle$2 = `
2971
2420
  :host{
2972
2421
  display: block;
2973
2422
  }
2423
+
2424
+ hr {
2425
+ border: var(--sqm-border-thickness, 1px) solid var(--sqm-border-color);
2426
+ }
2427
+
2428
+ a {
2429
+ color: inherit;
2430
+ text-decoration: underline;
2431
+ cursor: pointer;
2432
+ }
2433
+
2974
2434
  * {
2975
2435
  margin: 0;
2976
2436
  padding: 0;
2977
2437
  box-sizing: border-box;
2978
2438
  }
2979
2439
 
2980
- p {
2981
- line-height: 18px;
2982
- color: var(--sl-color-gray-800);
2983
- font-size: var(--sl-font-size-small);
2984
- }
2985
2440
  `;
2986
2441
  const IndirectTaxFormView = (props) => {
2987
2442
  var _a;
2988
2443
  const { states, states: { formState }, callbacks, text, refs, slots, } = props;
2989
- const { classes } = sheet$4;
2444
+ const { classes } = sheet$3;
2990
2445
  return (index.h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
2991
2446
  index.h("style", { type: "text/css" },
2992
- styleString$4,
2993
- vanillaStyle$3),
2447
+ styleString$3,
2448
+ vanillaStyle$2),
2994
2449
  index.h("div", { class: classes.TextContainer },
2995
2450
  index.h("div", null,
2996
2451
  !states.hideSteps && (index.h("p", null,
@@ -2998,35 +2453,29 @@ const IndirectTaxFormView = (props) => {
2998
2453
  global.intl.formatMessage({
2999
2454
  id: "formStep",
3000
2455
  defaultMessage: text.formStep,
3001
- }, { step: states.step, count: FORM_STEPS }))),
2456
+ }, { step: states.step, count: data.FORM_STEPS }))),
3002
2457
  index.h("h3", null, text.indirectTax),
3003
2458
  index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription),
3004
2459
  index.h("p", { class: classes.DescriptionText }, text.indirectTaxDescription)),
3005
2460
  states.loadingError && (index.h("div", null,
3006
- index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.AlertContainer },
3007
- index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
3008
- index.h("strong", null, text.error.loadingErrorAlertHeader),
3009
- index.h("br", null),
2461
+ index.h("sqm-form-message", { type: "error" },
2462
+ index.h("p", { part: "alert-title" }, text.error.loadingErrorAlertHeader),
3010
2463
  global.intl.formatMessage({
3011
2464
  id: "loadingErrorAlertDescription",
3012
2465
  defaultMessage: text.error.loadingErrorAlertDescription,
3013
2466
  }, {
3014
2467
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
3015
2468
  })))),
3016
- ((_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 },
3017
- index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
3018
- index.h("strong", null, text.error.generalTitle),
3019
- index.h("br", null),
2469
+ ((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sqm-form-message", { type: "error" },
2470
+ index.h("p", { part: "alert-title" }, text.error.generalTitle),
3020
2471
  global.intl.formatMessage({
3021
2472
  id: "generalDescription",
3022
2473
  defaultMessage: text.error.generalDescription,
3023
2474
  }, {
3024
2475
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
3025
2476
  }))),
3026
- states.isPartner && (index.h("sl-alert", { type: "primary", open: true, class: sheet$4.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
3027
- index.h("sl-icon", { slot: "icon", name: "info-circle" }),
3028
- index.h("strong", null, text.isPartnerAlertHeader),
3029
- index.h("br", null),
2477
+ states.isPartner && (index.h("sqm-form-message", { type: "info" },
2478
+ index.h("p", { part: "alert-title" }, text.isPartnerAlertHeader),
3030
2479
  global.intl.formatMessage({
3031
2480
  id: "isPartnerAlertDescription",
3032
2481
  defaultMessage: text.isPartnerAlertDescription,
@@ -3047,17 +2496,15 @@ const IndirectTaxFormView = (props) => {
3047
2496
  text.otherRegion,
3048
2497
  index.h("p", { class: classes.DescriptionText }, text.otherRegionSubtext))),
3049
2498
  slots.registeredInDifferentCountryDetailsSlot)),
3050
- index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "primary", open: true, class: classes.InfoAlert },
3051
- index.h("sl-icon", { class: classes.InfoWarningIcon, slot: "icon", name: "exclamation-triangle" }),
3052
- global.intl.formatMessage({
3053
- id: "cannotChangeInfoAlert",
3054
- defaultMessage: text.cannotChangeInfoAlert,
3055
- }, {
3056
- supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
3057
- })),
2499
+ index.h("sqm-form-message", { type: "info" }, global.intl.formatMessage({
2500
+ id: "cannotChangeInfoAlert",
2501
+ defaultMessage: text.cannotChangeInfoAlert,
2502
+ }, {
2503
+ supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
2504
+ })),
3058
2505
  index.h("div", { class: classes.BtnContainer },
3059
- index.h("sl-button", { type: "primary", disabled: states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton),
3060
- index.h("sl-button", { class: classes.SecondaryBtn, type: "text", disabled: states.disabled, onClick: callbacks.onBack, exportparts: "base: secondarybutton-base" }, text.backButton))))));
2506
+ index.h("sl-button", { class: classes.PrimaryButton, type: "primary", disabled: states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton),
2507
+ index.h("sl-button", { class: classes.SecondaryButton, type: "text", disabled: states.disabled, onClick: callbacks.onBack, exportparts: "base: secondarybutton-base" }, text.backButton))))));
3061
2508
  };
3062
2509
 
3063
2510
  const CONNECT_PARTNER = index_module.dist.gql `
@@ -3100,30 +2547,34 @@ function useIndirectTaxForm(props) {
3100
2547
  var _a, _b, _c, _d, _e;
3101
2548
  const user = index_module.J();
3102
2549
  const locale = index_module.L();
3103
- const formRef = stencilHooks_module.useRef(null);
3104
- const context = index_module.Fn(TAX_FORM_CONTEXT_NAMESPACE);
3105
- const [step, setStep] = index_module.Pn(TAX_CONTEXT_NAMESPACE);
2550
+ const formRef = domContextHooks_module.useRef(null);
2551
+ const context = index_module.Fn(data.TAX_FORM_CONTEXT_NAMESPACE);
2552
+ const [step, setStep] = index_module.Pn(data.TAX_CONTEXT_NAMESPACE);
3106
2553
  const [connectImpactPartner, { loading: connectLoading, errors: connectErrors },] = index_module.$e(CONNECT_PARTNER);
3107
- const userForm = index_module.Fn(USER_FORM_CONTEXT_NAMESPACE);
3108
- const { data: userData, refetch, errors: userError, } = index_module.$n(USER_QUERY_NAMESPACE);
3109
- const { data: _countriesRes, loading: countriesLoading } = index_module.$n(COUNTRIES_QUERY_NAMESPACE);
2554
+ const userForm = index_module.Fn(data.USER_FORM_CONTEXT_NAMESPACE);
2555
+ const { data: userData, refetch, errors: userError, } = index_module.$n(data.USER_QUERY_NAMESPACE);
2556
+ const { data: _countriesRes, loading: countriesLoading } = index_module.$n(data.COUNTRIES_QUERY_NAMESPACE);
3110
2557
  const intlLocale = (locale === null || locale === void 0 ? void 0 : locale.replace("_", "-")) || "en";
3111
- 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]);
3112
- const [loading, setLoading] = stencilHooks_module.useState(false);
3113
- const [formState, setFormState] = stencilHooks_module.useState({});
3114
- const [errors, setErrors] = stencilHooks_module.useState({});
3115
- const [countrySearch, setCountrySearch] = stencilHooks_module.useState("");
3116
- const [filteredCountries, setFilteredCountries] = stencilHooks_module.useState(_countries || []);
3117
- const [option, setOption] = stencilHooks_module.useState("notRegistered");
2558
+ const _countries = domContextHooks_module.useMemo(() => { var _a, _b; return (_b = (_a = _countriesRes === null || _countriesRes === void 0 ? void 0 : _countriesRes.impactPayoutCountries) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.map((country) => utils$1.getCountryObj({ countryCode: country.countryCode, locale: intlLocale })); }, [(_a = _countriesRes === null || _countriesRes === void 0 ? void 0 : _countriesRes.impactPayoutCountries) === null || _a === void 0 ? void 0 : _a.data]);
2559
+ const [loading, setLoading] = domContextHooks_module.useState(false);
2560
+ const [formState, setFormState] = domContextHooks_module.useState({});
2561
+ const [errors, setErrors] = domContextHooks_module.useState({});
2562
+ const [countrySearch, setCountrySearch] = domContextHooks_module.useState("");
2563
+ const [filteredCountries, setFilteredCountries] = domContextHooks_module.useState(_countries || []);
2564
+ const [option, setOption] = domContextHooks_module.useState("notRegistered");
3118
2565
  const publisher = (_c = (_b = userData === null || userData === void 0 ? void 0 : userData.user) === null || _b === void 0 ? void 0 : _b.impactConnection) === null || _c === void 0 ? void 0 : _c.publisher;
3119
- stencilHooks_module.useEffect(() => {
2566
+ domContextHooks_module.useEffect(() => {
2567
+ // reset redirect hash
2568
+ window.location.hash = "";
2569
+ }, []);
2570
+ domContextHooks_module.useEffect(() => {
3120
2571
  var _a;
3121
2572
  if (!((_a = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _a === void 0 ? void 0 : _a.indirectTaxCountryCode))
3122
2573
  return;
3123
2574
  const _option = getOption(_countries, publisher.taxInformation.indirectTaxCountryCode);
3124
2575
  setOption(_option);
3125
2576
  }, [publisher, _countries]);
3126
- stencilHooks_module.useEffect(() => {
2577
+ domContextHooks_module.useEffect(() => {
3127
2578
  if (countrySearch.trim() === "") {
3128
2579
  setFilteredCountries(_countries || []);
3129
2580
  }
@@ -3131,7 +2582,7 @@ function useIndirectTaxForm(props) {
3131
2582
  setFilteredCountries((_countries === null || _countries === void 0 ? void 0 : _countries.filter((c) => c.displayName.toLowerCase().includes(countrySearch.toLowerCase()))) || []);
3132
2583
  }
3133
2584
  }, [countrySearch, _countries]);
3134
- stencilHooks_module.useEffect(() => {
2585
+ domContextHooks_module.useEffect(() => {
3135
2586
  var _a, _b;
3136
2587
  const user = userData === null || userData === void 0 ? void 0 : userData.user;
3137
2588
  if (!user)
@@ -3223,7 +2674,7 @@ function useIndirectTaxForm(props) {
3223
2674
  await refetch();
3224
2675
  const resultPublisher = (_e = (_d = (_c = result
3225
2676
  .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;
3226
- const hasValidCurrentDocument = sqmInvoiceTableView.validTaxDocument(resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) && (resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.currentTaxDocument);
2677
+ const hasValidCurrentDocument = utils$1.validTaxDocument(resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) && (resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.currentTaxDocument);
3227
2678
  // Fire form change event
3228
2679
  window.dispatchEvent(new Event(usePayoutStatus.TAX_FORM_UPDATED_EVENT_KEY));
3229
2680
  if ((resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) &&
@@ -3241,8 +2692,6 @@ function useIndirectTaxForm(props) {
3241
2692
  setStep("/dashboard");
3242
2693
  }
3243
2694
  }
3244
- // reset redirect hash
3245
- window.location.hash = "";
3246
2695
  }
3247
2696
  catch (e) {
3248
2697
  setErrors({ general: true });
@@ -3280,10 +2729,10 @@ function useIndirectTaxForm(props) {
3280
2729
  })),
3281
2730
  },
3282
2731
  data: {
3283
- esRegions: sqmInvoiceTableView.INDIRECT_TAX_SPAIN_REGIONS,
2732
+ esRegions: IndirectTaxDetailsView.INDIRECT_TAX_SPAIN_REGIONS,
3284
2733
  countries: filteredCountries,
3285
2734
  allCountries: _countries,
3286
- provinces: sqmInvoiceTableView.INDIRECT_TAX_PROVINCES,
2735
+ provinces: IndirectTaxDetailsView.INDIRECT_TAX_PROVINCES,
3287
2736
  },
3288
2737
  text: props.getTextProps(),
3289
2738
  refs: {
@@ -3450,7 +2899,7 @@ const IndirectTaxForm = class {
3450
2899
  * @uiName Page description
3451
2900
  */
3452
2901
  this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
3453
- stencilHooks_module.h$1(this);
2902
+ domContextHooks_module.h$1(this);
3454
2903
  }
3455
2904
  disconnectedCallback() { }
3456
2905
  getTextProps() {
@@ -3485,7 +2934,7 @@ const IndirectTaxForm = class {
3485
2934
  const props = index_module.isDemo()
3486
2935
  ? useDemoIndirectTaxForm(this)
3487
2936
  : useIndirectTaxForm(this);
3488
- const registeredInDifferentCountryDetailsSlot = (index.h(sqmInvoiceTableView.OtherRegionSlotView, { states: {
2937
+ const registeredInDifferentCountryDetailsSlot = (index.h(IndirectTaxDetailsView.OtherRegionSlotView, { states: {
3489
2938
  hide: props.states.formState.checked !== "otherRegion",
3490
2939
  disabled: props.states.disabled || props.states.isPartner,
3491
2940
  formState: props.slotProps.formState,
@@ -3503,9 +2952,9 @@ const IndirectTaxForm = class {
3503
2952
  }
3504
2953
  };
3505
2954
  function useDemoIndirectTaxForm(props) {
3506
- const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
3507
- const [option, setOption] = stencilHooks_module.useState(null);
3508
- const [demoFormState, setDemoFormState] = stencilHooks_module.useState({});
2955
+ const setStep = index_module.En(data.TAX_CONTEXT_NAMESPACE);
2956
+ const [option, setOption] = domContextHooks_module.useState("otherRegion");
2957
+ const [demoFormState, setDemoFormState] = domContextHooks_module.useState({});
3509
2958
  return cjs.cjs({
3510
2959
  states: {
3511
2960
  step: "2",
@@ -3544,7 +2993,7 @@ function useDemoIndirectTaxForm(props) {
3544
2993
  setCountrySearch: (c) => console.log(c),
3545
2994
  },
3546
2995
  data: {
3547
- esRegions: sqmInvoiceTableView.INDIRECT_TAX_SPAIN_REGIONS,
2996
+ esRegions: IndirectTaxDetailsView.INDIRECT_TAX_SPAIN_REGIONS,
3548
2997
  countries: [
3549
2998
  {
3550
2999
  countryCode: "CA",
@@ -3563,7 +3012,7 @@ function useDemoIndirectTaxForm(props) {
3563
3012
  displayName: "United States",
3564
3013
  },
3565
3014
  ],
3566
- provinces: sqmInvoiceTableView.INDIRECT_TAX_PROVINCES,
3015
+ provinces: IndirectTaxDetailsView.INDIRECT_TAX_PROVINCES,
3567
3016
  },
3568
3017
  text: props.getTextProps(),
3569
3018
  refs: {
@@ -3585,7 +3034,27 @@ function useDemoIndirectTaxForm(props) {
3585
3034
  }, props.demoData || {}, { arrayMerge: (_, a) => a });
3586
3035
  }
3587
3036
 
3588
- const debug = stencilHooks_module.browser("sq:useInvoiceTable");
3037
+ const mockInvoiceData = (count = 4) => {
3038
+ const data = [...Array(count)].map(() => getMockData());
3039
+ return { data };
3040
+ };
3041
+ const getMockData = () => {
3042
+ const today = luxon.luxon.DateTime.now();
3043
+ const invoiceId = Math.random().toString(36).slice(2, 12);
3044
+ const earnings = Math.floor(Math.random() * 100) + 1;
3045
+ const indirectTax = Math.round(earnings * 0.2);
3046
+ return {
3047
+ downloadUrl: "https://example.com",
3048
+ dateCreated: today.toMillis(),
3049
+ invoiceId,
3050
+ program: "my-program",
3051
+ earnings: `$${earnings}.00`,
3052
+ indirectTax: `$${indirectTax}.00`,
3053
+ netEarnings: `$${earnings - indirectTax}.00`,
3054
+ };
3055
+ };
3056
+
3057
+ const debug = domContextHooks_module.browser("sq:useInvoiceTable");
3589
3058
  const CSS_NAMESPACE = "sqm-invoice-table";
3590
3059
  const GET_INVOICES = index_module.dist.gql `
3591
3060
  query getUserTaxInfo($limit: Int!, $offset: Int!) {
@@ -3615,7 +3084,7 @@ function useInvoiceTable(props, emptyElement, loadingElement) {
3615
3084
  var _a;
3616
3085
  const user = index_module.J();
3617
3086
  const locale = index_module.L();
3618
- const [content, setContent] = stencilHooks_module.useReducer((state, next) => ({
3087
+ const [content, setContent] = domContextHooks_module.useReducer((state, next) => ({
3619
3088
  ...state,
3620
3089
  ...next,
3621
3090
  }), {
@@ -3659,7 +3128,7 @@ function useInvoiceTable(props, emptyElement, loadingElement) {
3659
3128
  // Set the content to render and finish loading components
3660
3129
  setContent({ columns, loading: false, page: states.currentPage });
3661
3130
  }
3662
- stencilHooks_module.useEffect(() => {
3131
+ domContextHooks_module.useEffect(() => {
3663
3132
  setContent({ loading: true });
3664
3133
  invoicesData && getComponentData(components);
3665
3134
  }, [invoicesData, components, tick]);
@@ -3733,26 +3202,6 @@ async function tryMethod(c, callback) {
3733
3202
  }
3734
3203
  }
3735
3204
 
3736
- const mockInvoiceData = (count = 4) => {
3737
- const data = [...Array(count)].map(() => getMockData());
3738
- return { data };
3739
- };
3740
- const getMockData = () => {
3741
- const today = luxon.luxon.DateTime.now();
3742
- const invoiceId = Math.random().toString(36).slice(2, 12);
3743
- const earnings = Math.floor(Math.random() * 100) + 1;
3744
- const indirectTax = Math.round(earnings * 0.2);
3745
- return {
3746
- downloadUrl: "https://example.com",
3747
- dateCreated: today.toMillis(),
3748
- invoiceId,
3749
- program: "my-program",
3750
- earnings: `$${earnings}.00`,
3751
- indirectTax: `$${indirectTax}.00`,
3752
- netEarnings: `$${earnings - indirectTax}.00`,
3753
- };
3754
- };
3755
-
3756
3205
  const InvoiceTable = class {
3757
3206
  constructor(hostRef) {
3758
3207
  index.registerInstance(this, hostRef);
@@ -3786,7 +3235,7 @@ const InvoiceTable = class {
3786
3235
  this.emptyStateHeader = "View your invoice details";
3787
3236
  /** @uiName Empty invoice table description */
3788
3237
  this.emptyStateText = "Refer a friend to view the status of your invoices and rewards earned";
3789
- stencilHooks_module.h$1(this);
3238
+ domContextHooks_module.h$1(this);
3790
3239
  }
3791
3240
  disconnectedCallback() { }
3792
3241
  render() {
@@ -3796,7 +3245,7 @@ const InvoiceTable = class {
3796
3245
  ? useInvoiceTableDemo(this, empty, loading)
3797
3246
  : useInvoiceTable(this, empty, loading);
3798
3247
  reRender.useRequestRerender([this.perPage]);
3799
- return (index.h(sqmInvoiceTableView.InvoiceTableView, { header: this.header, description: this.description }, index.h(GenericTableView.GenericTableView, { states: states, data: data, callbacks: callbacks, elements: elements })));
3248
+ return (index.h(IndirectTaxDetailsView.InvoiceTableView, { header: this.header, description: this.description }, index.h(GenericTableView.GenericTableView, { states: states, data: data, callbacks: callbacks, elements: elements })));
3800
3249
  }
3801
3250
  };
3802
3251
  function EmptySlot(props) {
@@ -3809,7 +3258,7 @@ function LoadingRow() {
3809
3258
  return (index.h("sqm-table-row", null, index.h("sqm-table-cell", { colspan: 6 }, index.h("sl-skeleton", null))));
3810
3259
  }
3811
3260
  function useInvoiceTableDemo(props, emptyElement, loadingElement) {
3812
- const [content, setContent] = stencilHooks_module.useReducer((state, next) => ({
3261
+ const [content, setContent] = domContextHooks_module.useReducer((state, next) => ({
3813
3262
  ...state,
3814
3263
  ...next,
3815
3264
  }), {
@@ -3819,7 +3268,7 @@ function useInvoiceTableDemo(props, emptyElement, loadingElement) {
3819
3268
  page: 0,
3820
3269
  });
3821
3270
  const tick = reRender.useRerenderListener();
3822
- const mockData = stencilHooks_module.useMemo(() => { var _a; return ((_a = props.demoData) === null || _a === void 0 ? void 0 : _a.mockData) || mockInvoiceData(props.perPage); }, [props.perPage]);
3271
+ const mockData = domContextHooks_module.useMemo(() => { var _a; return ((_a = props.demoData) === null || _a === void 0 ? void 0 : _a.mockData) || mockInvoiceData(props.perPage); }, [props.perPage]);
3823
3272
  const components = useChildElements.useChildElements();
3824
3273
  async function getComponentData(components) {
3825
3274
  const componentData = mockData.data.slice(0, props.perPage);
@@ -3862,7 +3311,7 @@ function useInvoiceTableDemo(props, emptyElement, loadingElement) {
3862
3311
  // Set the content to render and finish loading components
3863
3312
  setContent({ columns, loading: false, page: 0 });
3864
3313
  }
3865
- stencilHooks_module.useEffect(() => {
3314
+ domContextHooks_module.useEffect(() => {
3866
3315
  setContent({ loading: true });
3867
3316
  (mockData === null || mockData === void 0 ? void 0 : mockData.data) && getComponentData(components);
3868
3317
  }, [mockData === null || mockData === void 0 ? void 0 : mockData.data, components, tick]);
@@ -3898,22 +3347,10 @@ function useInvoiceTableDemo(props, emptyElement, loadingElement) {
3898
3347
  return demoProps;
3899
3348
  }
3900
3349
 
3901
- const InvoiceTableDataCell = class {
3902
- constructor(hostRef) {
3903
- index.registerInstance(this, hostRef);
3904
- this.ignored = true;
3905
- stencilHooks_module.h$1(this);
3906
- }
3907
- disconnectedCallback() { }
3908
- render() {
3909
- return this.data;
3910
- }
3911
- };
3912
-
3913
3350
  const InvoiceTableDataColumn = class {
3914
3351
  constructor(hostRef) {
3915
3352
  index.registerInstance(this, hostRef);
3916
- stencilHooks_module.h$1(this);
3353
+ domContextHooks_module.h$1(this);
3917
3354
  }
3918
3355
  disconnectedCallback() { }
3919
3356
  async renderCell(data) {
@@ -3928,27 +3365,10 @@ const InvoiceTableDataColumn = class {
3928
3365
  }
3929
3366
  };
3930
3367
 
3931
- const RewardTableDateCell = class {
3932
- constructor(hostRef) {
3933
- index.registerInstance(this, hostRef);
3934
- this.ignored = true;
3935
- this.locale = "en";
3936
- stencilHooks_module.h$1(this);
3937
- }
3938
- disconnectedCallback() { }
3939
- render() {
3940
- var _a, _b;
3941
- const date = !this.date
3942
- ? "-"
3943
- : (_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);
3944
- return date;
3945
- }
3946
- };
3947
-
3948
3368
  const InvoiceTableDateColumn = class {
3949
3369
  constructor(hostRef) {
3950
3370
  index.registerInstance(this, hostRef);
3951
- stencilHooks_module.h$1(this);
3371
+ domContextHooks_module.h$1(this);
3952
3372
  }
3953
3373
  disconnectedCallback() { }
3954
3374
  async renderCell(data, options) {
@@ -3963,25 +3383,10 @@ const InvoiceTableDateColumn = class {
3963
3383
  }
3964
3384
  };
3965
3385
 
3966
- const InvoiceTableDownloadCell = class {
3967
- constructor(hostRef) {
3968
- index.registerInstance(this, hostRef);
3969
- this.ignored = true;
3970
- stencilHooks_module.h$1(this);
3971
- }
3972
- disconnectedCallback() { }
3973
- render() {
3974
- const vanillaStyle = `svg:hover, svg:hover * {
3975
- cursor: pointer;
3976
- }`;
3977
- 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" }))))));
3978
- }
3979
- };
3980
-
3981
3386
  const InvoiceTableGenericColumn = class {
3982
3387
  constructor(hostRef) {
3983
3388
  index.registerInstance(this, hostRef);
3984
- stencilHooks_module.h$1(this);
3389
+ domContextHooks_module.h$1(this);
3985
3390
  }
3986
3391
  disconnectedCallback() { }
3987
3392
  async renderCell(data) {
@@ -4000,17 +3405,17 @@ const PayPalIcon = () => (index.h("svg", { xmlns: "http://www.w3.org/2000/svg",
4000
3405
  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" }),
4001
3406
  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" })));
4002
3407
 
4003
- const style$5 = {
3408
+ const style$4 = {
4004
3409
  CardContainer: {
4005
3410
  display: "grid",
4006
3411
  gridTemplateColumns: "1fr",
4007
3412
  gridGap: "var(--sl-spacing-large)",
4008
- background: "var(--sl-color-neutral-0)",
3413
+ background: "inherit",
4009
3414
  boxShadow: "0px 2px 4px rgba(28, 28, 33, 0.12)",
4010
- borderRadius: "4px",
3415
+ borderRadius: "var(--sqm-border-radius-normal)",
4011
3416
  padding: "var(--sl-spacing-large)",
4012
3417
  minHeight: "150px",
4013
- border: "1px solid var(--sl-color-gray-200)",
3418
+ border: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
4014
3419
  maxWidth: "450px",
4015
3420
  },
4016
3421
  StatusContainer: {
@@ -4020,7 +3425,7 @@ const style$5 = {
4020
3425
  },
4021
3426
  MainCurrencyLabel: {
4022
3427
  fontWeight: "var(--sl-font-weight-normal)",
4023
- color: "var(--sl-color-gray-500)",
3428
+ color: "var(--sqm-text-subdued)",
4024
3429
  },
4025
3430
  MainCurrency: {
4026
3431
  margin: 0,
@@ -4029,12 +3434,12 @@ const style$5 = {
4029
3434
  },
4030
3435
  SubduedRegularText: {
4031
3436
  fontSize: "var(--sl-font-size-small)",
4032
- color: "var(--sl-color-gray-500)",
3437
+ color: "var(--sqm-text-subdued)",
4033
3438
  margin: 0,
4034
3439
  width: "auto",
4035
3440
  },
4036
3441
  PaypalEmail: {
4037
- borderRight: "1px solid var(--sl-color-gray-200)",
3442
+ borderRight: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
4038
3443
  paddingRight: "var(--sl-spacing-small)",
4039
3444
  "@media (max-width: 499px)": {
4040
3445
  borderRight: "none",
@@ -4042,7 +3447,7 @@ const style$5 = {
4042
3447
  },
4043
3448
  },
4044
3449
  PaypalDetailsContainer: {
4045
- color: "var(--sl-color-gray-500)",
3450
+ color: "var(--sqm-text-subdued)",
4046
3451
  display: "flex",
4047
3452
  gap: "var(--sl-spacing-small)",
4048
3453
  justifyContent: "flex-start",
@@ -4063,7 +3468,7 @@ const style$5 = {
4063
3468
  },
4064
3469
  },
4065
3470
  AccountDetailsContainer: {
4066
- color: "var(--sl-color-gray-500)",
3471
+ color: "var(--sqm-text-subdued)",
4067
3472
  display: "flex",
4068
3473
  gap: "var(--sl-spacing-small)",
4069
3474
  justifyContent: "flex-start",
@@ -4076,7 +3481,7 @@ const style$5 = {
4076
3481
  gap: "var(--sl-spacing-xx-small) var(--sl-spacing-small)",
4077
3482
  paddingTop: "var(--sq-spacing-xx-small)",
4078
3483
  "& > :not(:last-child)": {
4079
- borderRight: "1px solid var(--sl-color-gray-200)",
3484
+ borderRight: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
4080
3485
  },
4081
3486
  "& > :nth-child(3)": {
4082
3487
  border: "none",
@@ -4093,7 +3498,7 @@ const style$5 = {
4093
3498
  },
4094
3499
  W9Container: {
4095
3500
  paddingTop: "var(--sl-spacing-large)",
4096
- borderTop: "1px solid var(--sl-color-gray-200)",
3501
+ borderTop: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
4097
3502
  },
4098
3503
  SkeletonOne: {
4099
3504
  width: "25%",
@@ -4107,25 +3512,21 @@ const style$5 = {
4107
3512
  width: "50%",
4108
3513
  height: "34px",
4109
3514
  },
4110
- Alert: {
3515
+ SuccessBadge: {
4111
3516
  "&::part(base)": {
4112
- backgroundColor: "var(--sl-color-warning-100)",
4113
- border: "1px solid var(--sl-color-warning-200)",
4114
- padding: "0 16px",
4115
- },
4116
- "& sl-icon": {
4117
- margin: 0,
4118
- },
4119
- "& sl-icon::part(base)": {
4120
- color: "var(--sl-color-warning-500)",
4121
- margin: 0,
3517
+ textAlign: "center",
3518
+ whiteSpace: "pre-line",
3519
+ background: "var(--sqm-success-color-icon)",
3520
+ color: "var(--sl-color-white)",
4122
3521
  },
4123
3522
  },
4124
- AlertContent: {
4125
- display: "flex",
4126
- alignItems: "flex-start",
4127
- justifyContent: "flex-start",
4128
- flexDirection: "column",
3523
+ PrimaryBadge: {
3524
+ "&::part(base)": {
3525
+ textAlign: "center",
3526
+ whiteSpace: "pre-line",
3527
+ background: "var(--sqm-informative-color-icon)",
3528
+ color: "var(--sl-color-white)",
3529
+ },
4129
3530
  },
4130
3531
  Container: {
4131
3532
  display: "flex",
@@ -4134,7 +3535,7 @@ const style$5 = {
4134
3535
  },
4135
3536
  };
4136
3537
  function PayoutDetailsCardView(props) {
4137
- const sheet = JSS.createStyleSheet(style$5);
3538
+ const sheet = JSS.createStyleSheet(style$4);
4138
3539
  const styleString = sheet.toString();
4139
3540
  const { classes } = sheet;
4140
3541
  const { states, text } = props;
@@ -4148,13 +3549,14 @@ function PayoutDetailsCardView(props) {
4148
3549
  };
4149
3550
  const renderStatusBadge = (status, statusBadgeText) => {
4150
3551
  const badgeType = status === "nextPayout" ? "success" : "primary";
3552
+ const badgeClass = badgeType === "success" ? classes.SuccessBadge : classes.PrimaryBadge;
4151
3553
  const statusText = global.intl.formatMessage({
4152
3554
  id: "badgeText",
4153
3555
  defaultMessage: statusBadgeText,
4154
3556
  }, {
4155
3557
  badgeText: status,
4156
3558
  });
4157
- return (index.h("sl-badge", { pill: true, type: badgeType }, statusText));
3559
+ return (index.h("sl-badge", { pill: true, class: badgeClass }, statusText));
4158
3560
  };
4159
3561
  const thresholdText = global.intl.formatMessage({
4160
3562
  id: "thresholdText",
@@ -4185,1417 +3587,127 @@ function PayoutDetailsCardView(props) {
4185
3587
 
4186
3588
  function usePayoutDetailsCard(props) {
4187
3589
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
4188
- const { data, loading } = index_module.$n(USER_QUERY_NAMESPACE);
4189
- 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;
3590
+ const { data: data$1, loading } = index_module.$n(data.USER_QUERY_NAMESPACE);
3591
+ 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;
4190
3592
  function getPayoutDetailedStatusText(paymentDay) {
4191
3593
  var _a;
4192
3594
  const currentDay = luxon.luxon.DateTime.now().day;
4193
3595
  if (paymentDay === "1") {
4194
3596
  return currentDay === 1
4195
3597
  ? luxon.luxon.DateTime.now().toFormat("LLL dd, yyyy")
4196
- : luxon.luxon.DateTime.now()
4197
- .plus({ month: 1 })
4198
- .startOf("month")
4199
- .toFormat("LLL dd, yyyy");
4200
- }
4201
- else if (paymentDay === "15") {
4202
- return currentDay <= 15
4203
- ? luxon.luxon.DateTime.now()
4204
- .plus({ day: 15 - currentDay })
4205
- .toFormat("LLL dd, yyyy")
4206
- : luxon.luxon.DateTime.now()
4207
- .plus({ month: 1 })
4208
- .startOf("month")
4209
- .plus({ day: 14 })
4210
- .toFormat("LLL dd, yyyy");
4211
- }
4212
- else {
4213
- global.intl.formatMessage({
4214
- id: `nextPayoutBalance`,
4215
- defaultMessage: props.thresholdPayoutText,
4216
- }, {
4217
- thresholdBalance: (_a = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _a === void 0 ? void 0 : _a.paymentThreshold,
4218
- });
4219
- }
4220
- }
4221
- const paymentDay = getPayoutDetailedStatusText((_c = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _c === void 0 ? void 0 : _c.paymentDay);
4222
- const isPayoutToday = luxon.luxon.DateTime.now().toFormat("LLL dd, yyyy") === paymentDay;
4223
- return {
4224
- states: {
4225
- loading,
4226
- 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}`
4227
- : undefined,
4228
- balance: (_f = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _f === void 0 ? void 0 : _f.balance,
4229
- badgeStatus: ((_g = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _g === void 0 ? void 0 : _g.paymentSchedulingType) !== "FIXED_DAY"
4230
- ? "thresholdPayout"
4231
- : isPayoutToday
4232
- ? "payoutToday"
4233
- : "nextPayout",
4234
- payoutType: (_h = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _h === void 0 ? void 0 : _h.paymentMethod,
4235
- error: (_j = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _j === void 0 ? void 0 : _j.hold,
4236
- paypalEmailAddress: (_k = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _k === void 0 ? void 0 : _k.paypalEmailAddress,
4237
- cardNumberPreview: (_l = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _l === void 0 ? void 0 : _l.bankAccountNumber,
4238
- nextPayoutDate: paymentDay,
4239
- },
4240
- text: props.getTextProps(),
4241
- };
4242
- }
4243
-
4244
- const PayoutDetailsCard = class {
4245
- constructor(hostRef) {
4246
- index.registerInstance(this, hostRef);
4247
- /**
4248
- * Badge text indicating payout status
4249
- * @uiName Payout badge status text
4250
- */
4251
- this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
4252
- /**
4253
- * Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
4254
- * @uiName Payout schedule by threshold text
4255
- */
4256
- this.thresholdPayoutText = "Next payout occurs when balance is {thresholdBalance}";
4257
- /**
4258
- * Shown before the participant’s bank account information.
4259
- * @uiName Bank account field label
4260
- */
4261
- this.accountText = "Account";
4262
- /**
4263
- * Text displayed for existing publishers that do not have saved banking information.
4264
- * @uiName Payout missing information subtext
4265
- */
4266
- this.payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
4267
- stencilHooks_module.h$1(this);
4268
- }
4269
- disconnectedCallback() { }
4270
- getTextProps() {
4271
- const props = utils.getProps(this);
4272
- return {
4273
- ...props,
4274
- };
4275
- }
4276
- render() {
4277
- const props = index_module.isDemo()
4278
- ? useDemoPayoutDetailsCard(this)
4279
- : usePayoutDetailsCard(this);
4280
- return (index.h(index.Host, null, index.h(PayoutDetailsCardView, { text: props.text, states: props.states })));
4281
- }
4282
- };
4283
- function useDemoPayoutDetailsCard(props) {
4284
- return cjs.cjs({
4285
- states: {
4286
- loading: false,
4287
- error: false,
4288
- thresholdBalance: "$50",
4289
- mainCurrency: { currencyText: "USD", amountText: "100.00" },
4290
- badgeStatus: "nextPayout",
4291
- payoutType: "BANK_TRANSFER",
4292
- nextPayoutDate: "March 14, 2024",
4293
- paypalEmailAddress: "joesmith@example.com",
4294
- otherCurrencies: false,
4295
- hasW9Pending: false,
4296
- hasDatePending: true,
4297
- cardNumberPreview: "XX2381",
4298
- balance: "20.00 USD",
4299
- },
4300
- text: props.getTextProps(),
4301
- }, props.demoData || {}, { arrayMerge: (_, a) => a });
4302
- }
4303
-
4304
- const TableCell = class {
4305
- constructor(hostRef) {
4306
- index.registerInstance(this, hostRef);
4307
- /** @uiName Column span */
4308
- this.colspan = 1;
4309
- /** @uiName Padding */
4310
- this.padding = "15px 10px";
4311
- }
4312
- render() {
4313
- return (index.h(index.Host, { style: { display: "contents" } }, index.h("td", { colSpan: this.colspan, style: { padding: this.padding } }, index.h("slot", null))));
4314
- }
4315
- };
4316
-
4317
- const TableRow = class {
4318
- constructor(hostRef) {
4319
- index.registerInstance(this, hostRef);
4320
- /**
4321
- * @uiName Border
4322
- */
4323
- this.border = "1px solid #EAEAEA";
4324
- }
4325
- render() {
4326
- return (index.h(index.Host, { style: { display: "contents" } }, index.h("tr", { style: { border: this.border } }, index.h("slot", null))));
4327
- }
4328
- };
4329
-
4330
- function getCurrentStep(user) {
4331
- var _a, _b;
4332
- if (!((_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.connected) || !((_b = user.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher)) {
4333
- return "/1";
4334
- }
4335
- const { requiredTaxDocumentType, currentTaxDocument, withdrawalSettings, brandedSignup, payoutsAccount, } = user.impactConnection.publisher;
4336
- // If they do have a required document, look at current document
4337
- if (requiredTaxDocumentType && !currentTaxDocument) {
4338
- // Specific to custom CASH setting,
4339
- if (payoutsAccount.hold &&
4340
- payoutsAccount.holdReasons.includes("NO_W9_DOCUMENT"))
4341
- return "/dashboard";
4342
- return "/3";
4343
- }
4344
- if (!withdrawalSettings && brandedSignup)
4345
- return "/4";
4346
- return "/dashboard";
4347
- }
4348
- function useTaxAndCash() {
4349
- var _a, _b, _c, _d, _e;
4350
- const host = index_module._();
4351
- const user = index_module.J();
4352
- const locale = index_module.L();
4353
- // State for current step of form
4354
- const [step, setStep] = index_module.In({
4355
- namespace: TAX_CONTEXT_NAMESPACE,
4356
- initialValue: "/loading",
4357
- });
4358
- // State for when to hide steps, or override certain actions
4359
- const [context, _setContext] = index_module.In({
4360
- namespace: TAX_FORM_CONTEXT_NAMESPACE,
4361
- initialValue: {},
4362
- });
4363
- // State to carry user form information into step 2
4364
- const [userFormContext, _setUserFormContext] = index_module.In({
4365
- namespace: USER_FORM_CONTEXT_NAMESPACE,
4366
- initialValue: {
4367
- firstName: undefined,
4368
- lastName: undefined,
4369
- email: undefined,
4370
- countryCode: undefined,
4371
- currency: undefined,
4372
- },
4373
- });
4374
- const [_currenciesContext, setCurrenciesContext] = index_module.In({
4375
- namespace: CURRENCIES_NAMESPACE,
4376
- initialValue: [],
4377
- });
4378
- const [_countriesContext, _setCountriesContext] = index_module.In({
4379
- namespace: COUNTRIES_NAMESPACE,
4380
- initialValue: [],
4381
- });
4382
- const [_sortedCountriesContext, setSortedCountriesContext] = index_module.In({
4383
- namespace: SORTED_COUNTRIES_NAMESPACE,
4384
- initialValue: [],
4385
- });
4386
- const { data, errors } = index_module.Sn({
4387
- namespace: USER_QUERY_NAMESPACE,
4388
- query: GET_USER,
4389
- skip: !user,
4390
- options: {
4391
- batch: false,
4392
- },
4393
- });
4394
- 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) ||
4395
- userFormContext.countryCode;
4396
- index_module.Sn({
4397
- namespace: COUNTRIES_QUERY_NAMESPACE,
4398
- query: GET_COUNTRIES,
4399
- skip: !user,
4400
- });
4401
- const { data: financeNetworkData, refetch } = index_module.Sn({
4402
- namespace: FINANCE_NETWORK_SETTINGS_NAMESPACE,
4403
- query: GET_FINANCE_NETWORK_SETTINGS,
4404
- skip: !user,
4405
- variables: {
4406
- filter: getFinanceNetworkFilter(),
4407
- },
4408
- });
4409
- const { data: currenciesData } = index_module.Sn({
4410
- namespace: CURRENCIES_QUERY_NAMESPACE,
4411
- query: GET_CURRENCIES,
4412
- skip: !user,
4413
- variables: {
4414
- locale,
4415
- },
4416
- });
4417
- const supportedCurrencies = stencilHooks_module.useMemo(() => {
4418
- var _a, _b;
4419
- // Filter out any currencies not supported by finance network settings
4420
- 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) => {
4421
- var _a, _b;
4422
- 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);
4423
- // Currency not in supported list
4424
- if (!currency)
4425
- return agg;
4426
- // Currency already added to list
4427
- if (agg.find((currency) => currency.currencyCode === settings.currency))
4428
- return agg;
4429
- // Currency not supported by selected country
4430
- if (userFormContext.countryCode &&
4431
- settings.countryCode !== countryCode)
4432
- return agg;
4433
- return [...agg, currency];
4434
- }, []);
4435
- return allValidCurrencies;
4436
- }, [financeNetworkData, countryCode]);
4437
- const intlLocale = (locale === null || locale === void 0 ? void 0 : locale.replace("_", "-")) || "en";
4438
- const sortByName = (a, b) => a.displayName < b.displayName ? -1 : 1;
4439
- const paymentOptions = (_d = financeNetworkData === null || financeNetworkData === void 0 ? void 0 : financeNetworkData.impactFinanceNetworkSettings) === null || _d === void 0 ? void 0 : _d.data;
4440
- // filter out any duplicate countries and null countryCode
4441
- const availableCountries = stencilHooks_module.useMemo(() => new Set(paymentOptions === null || paymentOptions === void 0 ? void 0 : paymentOptions.map((option) => option.countryCode).filter((value) => value)), [paymentOptions]);
4442
- const _topCountries = ["CA", "GB", "US"];
4443
- const sortedCountries = stencilHooks_module.useMemo(() => Array.from(availableCountries)
4444
- .map((countryCode) => sqmInvoiceTableView.getCountryObj({ countryCode, locale: intlLocale }))
4445
- .sort(sortByName)
4446
- .reduce((prev, countryObj) => {
4447
- if (_topCountries.includes(countryObj.countryCode))
4448
- return [countryObj, ...prev];
4449
- return [...prev, countryObj];
4450
- }, []), [availableCountries]);
4451
- stencilHooks_module.useEffect(() => {
4452
- if (sortedCountries)
4453
- setSortedCountriesContext(sortedCountries);
4454
- }, [sortedCountries]);
4455
- stencilHooks_module.useEffect(() => {
4456
- if (supportedCurrencies)
4457
- setCurrenciesContext(supportedCurrencies);
4458
- }, [supportedCurrencies]);
4459
- stencilHooks_module.useEffect(() => {
4460
- if (errors) {
4461
- setStep("/error");
4462
- return;
4463
- }
4464
- if (!host || !user)
4465
- return;
4466
- if (data) {
4467
- const user = data === null || data === void 0 ? void 0 : data.user;
4468
- if (!user || step !== "/loading")
4469
- return;
4470
- const currentStep = getCurrentStep(user);
4471
- setStep(currentStep);
4472
- }
4473
- }, [host, user, (_e = data === null || data === void 0 ? void 0 : data.user) === null || _e === void 0 ? void 0 : _e.email, errors]);
4474
- function getFinanceNetworkFilter() {
4475
- var _a, _b, _c;
4476
- if (step === "/1")
4477
- return {};
4478
- if (step === "/4")
4479
- 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 };
4480
- if (countryCode)
4481
- return {
4482
- countryCode_eq: countryCode,
4483
- };
4484
- return {};
4485
- }
4486
- return {
4487
- step,
4488
- setStep,
4489
- context,
4490
- namespace: index_module.Mn(TAX_CONTEXT_NAMESPACE),
4491
- loading: step === "/loading",
4492
- };
4493
- }
4494
-
4495
- const TaxAndCashMonolith = class {
4496
- constructor(hostRef) {
4497
- index.registerInstance(this, hostRef);
4498
- /*---------------------------------------------------------------------------------
4499
- !IMPORTANT!: Make sure to also change the prop names in the respective component
4500
- -----------------------------------------------------------------------------------*/
4501
- /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4502
- STEP 1 PROPS:
4503
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
4504
- /**
4505
- * @uiName First name field label
4506
- * @uiGroup Step 1 Properties
4507
- */
4508
- this.step1_firstName = "First name";
4509
- /**
4510
- * @uiName Last name field label
4511
- * @uiGroup Step 1 Properties
4512
- */
4513
- this.step1_lastName = "Last name";
4514
- /**
4515
- * @uiName Email field label
4516
- * @uiGroup Step 1 Properties
4517
- */
4518
- this.step1_email = "Email";
4519
- /**
4520
- * @uiName Country field label
4521
- * @uiGroup Step 1 Properties
4522
- */
4523
- this.step1_country = "Country";
4524
- /**
4525
- * @uiName Phone number field label
4526
- * @uiGroup Step 1 Properties
4527
- */
4528
- this.step1_phoneNumber = "Phone number";
4529
- /**
4530
- * @uiName Address field label
4531
- * @uiGroup Step 1 Properties
4532
- */
4533
- this.step1_address = "Address";
4534
- /**
4535
- * @uiName City field label
4536
- * @uiGroup Step 1 Properties
4537
- */
4538
- this.step1_city = "City";
4539
- /**
4540
- * @uiName State field label for states
4541
- * @uiGroup Step 1 Properties
4542
- */
4543
- this.step1_state = "State";
4544
- /**
4545
- * @uiName State field label for provinces
4546
- * @uiGroup Step 1 Properties
4547
- */
4548
- this.step1_province = "Province";
4549
- /**
4550
- * @uiName State field label for regions
4551
- * @uiGroup Step 1 Properties
4552
- */
4553
- this.step1_region = "Region";
4554
- /**
4555
- * @uiName Postal code field label
4556
- * @uiGroup Step 1 Properties
4557
- */
4558
- this.step1_postalCode = "Postal code";
4559
- /**
4560
- * @uiName Currency field label
4561
- * @uiGroup Step 1 Properties
4562
- */
4563
- this.step1_currency = "Currency";
4564
- /**
4565
- * @uiName Currency field help text
4566
- * @uiGroup Step 1 Properties
4567
- */
4568
- this.step1_currencyHelpText = "Choose your preferred payout currency";
4569
- /**
4570
- * Edit the property called terms and conditions text to change what's displayed for {termsAndConditionsLink}.
4571
- * @uiName Terms and conditions checkbox
4572
- * @uiGroup Step 1 Properties
4573
- */
4574
- this.step1_allowBankingCollection = "I have read the {termsAndConditionsLink} and allow impact.com to collect my tax and banking information";
4575
- /**
4576
- * @uiName Step 1 title
4577
- * @uiGroup Step 1 Properties
4578
- */
4579
- this.step1_personalInformation = "Personal Information";
4580
- /**
4581
- * The link text that appears in the terms and conditions checkbox
4582
- * @uiName Terms and conditions text
4583
- * @uiGroup Step 1 Properties
4584
- * @uiWidget textArea
4585
- */
4586
- this.step1_termsAndConditionsLabel = "terms and conditions";
4587
- /**
4588
- * The link that appears in the terms and conditions checkbox
4589
- * @uiName Terms and conditions link
4590
- * @uiGroup Step 1 Properties
4591
- */
4592
- this.step1_termsAndConditionsLink = "https://terms.advocate.impact.com/PayoutTermsAndConditions.html";
4593
- /**
4594
- * Placeholder text displayed in the currency search dropdown
4595
- * @uiName Currency field placeholder text
4596
- * @uiGroup Step 1 Properties
4597
- */
4598
- this.step1_searchForCurrencyText = "Search for currency..";
4599
- /**
4600
-
4601
- /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4602
- STEP 2 PROPS:
4603
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
4604
- /**
4605
- * @uiName Step 2 title
4606
- * @uiGroup Step 2 Properties
4607
- */
4608
- this.step2_indirectTax = "Indirect Tax";
4609
- /**
4610
- * Displayed under the title of this step.
4611
- * @uiName Step 2 description
4612
- * @uiGroup Step 2 Properties
4613
- * @uiWidget textArea
4614
- */
4615
- 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.";
4616
- /**
4617
- * Displayed with indirect tax registration options.
4618
- * @uiName Indirect tax details section title
4619
- * @uiGroup Step 2 Properties
4620
- */
4621
- this.step2_indirectTaxDetails = "Indirect tax details";
4622
- /**
4623
- * @uiName Registered for indirect tax option
4624
- * @uiGroup Step 2 Properties
4625
- * @uiWidget textArea
4626
- *
4627
- */
4628
- this.step2_otherRegion = "Registered for indirect tax";
4629
- /**
4630
- * Selecting this option will display fields to enter indirect tax details.
4631
- * @uiName Registered for indirect tax option description
4632
- * @uiGroup Step 2 Properties
4633
- */
4634
- this.step2_otherRegionSubtext = "If you’ve registered with your tax authority, add your information to stay tax compliant.";
4635
- /**
4636
- * @uiName Not registered for indirect tax option
4637
- * @uiGroup Step 2 Properties
4638
- * @uiWidget textArea
4639
- */
4640
- this.step2_notRegistered = "Not registered for indirect tax";
4641
- /**
4642
- * Participants based in the US are considered not registered.
4643
- * @uiName Not registered for indirect tax option description
4644
- * @uiGroup Step 2 Properties
4645
- */
4646
- this.step2_notRegisteredSubtext = "If you’ve never set up indirect tax with your tax authority, then you’re likely not considered registered.";
4647
- /**
4648
- * @uiName Region of indirect tax field label
4649
- * @uiGroup Step 2 Properties
4650
- */
4651
- this.step2_selectedRegion = "Country / region of indirect tax";
4652
- /**
4653
- * @uiName Indirect tax number field label
4654
- * @uiGroup Step 2 Properties
4655
- */
4656
- this.step2_indirectTaxNumber = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}}";
4657
- /**
4658
- * @uiName Province field label
4659
- * @uiGroup Step 2 Properties
4660
- */
4661
- this.step2_province = "Province";
4662
- /**
4663
- * @uiName Missing indirect tax number error message
4664
- * @uiGroup Step 2 Properties
4665
- */
4666
- 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";
4667
- /**
4668
- * Displayed to participants registered for QST.
4669
- * @uiName QST number field label
4670
- * @uiGroup Step 2 Properties
4671
- */
4672
- this.step2_qstNumber = "QST number";
4673
- /**
4674
- * Displayed to participants registered for indirect tax in Quebec, Canada.
4675
- * @uiName QST tax checkbox
4676
- * @uiGroup Step 2 Properties
4677
- */
4678
- this.step2_isRegisteredQST = "I am registered for QST Tax";
4679
- /**
4680
- * Displayed to participants registered for indirect tax in Spain.
4681
- * @uiName Spain income tax checkbox
4682
- * @uiGroup Step 2 Properties
4683
- * @uiWidget textArea
4684
- */
4685
- 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.";
4686
- /**
4687
- * Displayed to participants registered in Spain.
4688
- * @uiName Sub-region of indirect tax field label
4689
- * @uiGroup Step 2 Properties
4690
- */
4691
- this.step2_subRegion = "Sub-region";
4692
- /**
4693
- * @uiName Income tax field label
4694
- * @uiGroup Step 2 Properties
4695
- */
4696
- this.step2_subRegionTaxNumberLabel = "Income Tax Number";
4697
- /**
4698
- * Communicate that after this step, only Support can change personal and indirect tax information.
4699
- * @uiName Submission confirmation alert
4700
- * @uiGroup Step 2 Properties
4701
- * @uiWidget textArea
4702
- */
4703
- 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.";
4704
- /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4705
- STEP 3 PROPS:
4706
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
4707
- /**
4708
- * @uiName Step 3 title
4709
- * @uiGroup Step 3 Properties
4710
- */
4711
- this.step3_taxForm = "Tax form";
4712
- /**
4713
- * Display the type of tax form that the participant must submit.
4714
- * @uiName Tax form name
4715
- * @uiGroup Step 3 Properties
4716
- */
4717
- this.step3_taxFormLabel = "{documentType} Tax Form";
4718
- /**
4719
- * @uiName Participant type field label
4720
- * @uiGroup Step 3 Properties
4721
- */
4722
- this.step3_participantType = "Participant type";
4723
- /**
4724
- * An option for the participant type field. Used to determine which W-8 form is required.
4725
- * @uiName Business representative participant type label
4726
- * @uiGroup Step 3 Properties
4727
- */
4728
- this.step3_businessEntity = "I represent a business";
4729
- /**
4730
- * An option for the participant type field. Used to determine which W-8 form is required.
4731
- * @uiName Individual participant type label
4732
- * @uiGroup Step 3 Properties
4733
- */
4734
- this.step3_individualParticipant = "I am an individual participant";
4735
- /**
4736
- * Displayed at the top of the page to participants based in the US.
4737
- * @uiName W-9 tax form description
4738
- * @uiGroup Step 3 Properties
4739
- * @uiWidget textArea
4740
- */
4741
- this.step3_taxFormDescription = "Participants based in the US need to submit a {documentType} form.";
4742
- /**
4743
- * Displayed at the top of the page to individuals joining a US program who reside outside the country.
4744
- * @uiName W-8 BEN tax form description
4745
- * @uiGroup Step 3 Properties
4746
- * @uiWidget textArea
4747
- */
4748
- this.step3_taxFormDescriptionIndividualParticipant = "Participants residing outside of the US, joining the referral program of a US-based company, need to submit a {documentType} form.";
4749
- /**
4750
- * Displayed at the top of the page to participants representing a business.
4751
- * @uiName W-8 BEN-E tax form description
4752
- * @uiGroup Step 3 Properties
4753
- * @uiWidget textArea
4754
- */
4755
- this.step3_taxFormDescriptionBusinessEntity = "Participants residing outside of the US who represent a business entity need to submit a {documentType} form.";
4756
- /**
4757
- * This appears inside the Docusign frame.
4758
- * @uiName Docusign session expired message
4759
- * @uiGroup Step 3 Properties
4760
- * @uiWidget textArea
4761
- */
4762
- 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.";
4763
- /**
4764
- * Remind participants their session will time out after 20 minutes of inactivity.
4765
- * @uiName Docusign timed session message
4766
- * @uiGroup Step 3 Properties
4767
- * @uiWidget textArea
4768
- */
4769
- this.step3_docusignSessionWarning = "For your security, we automatically end your session when you have not interacted with the form after 20 minutes.";
4770
- /**
4771
- * This appears inside the Docusign frame.
4772
- * @uiName Docusign form error message
4773
- * @uiGroup Step 3 Properties
4774
- * @uiWidget textArea
4775
- */
4776
- this.step3_docusignError = "There was a problem displaying this form. Please refresh the page. If this problem continues, contact our {supportLink}.";
4777
- /**
4778
- * @uiName Refresh page button label
4779
- * @uiGroup Step 3 Properties
4780
- */
4781
- this.step3_refreshButton = "Refresh Page";
4782
- /**
4783
- * @uiName Exit button text
4784
- * @uiGroup Step 3 Properties
4785
- */
4786
- this.step3_exitButton = "Exit";
4787
- /**
4788
- * @uiName Information modal title
4789
- * @uiGroup Step 3 Properties
4790
- */
4791
- this.step3_modalTitle = "Important Note";
4792
- /**
4793
- * @uiName Information modal description text
4794
- * @uiGroup Step 3 Properties
4795
- */
4796
- this.step3_modalDescription = "Remember the name you enter in your tax form. It must exactly match the bank account holder name configured in the next step. {br}{br}Otherwise you will have to resubmit your form again and there will be delays receiving your payout.";
4797
- /**
4798
- * @uiName Information modal button text
4799
- * @uiGroup Step 3 Properties
4800
- */
4801
- this.step3_modalButtonText = "I understand";
4802
- /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4803
- STEP 4 PROPS:
4804
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
4805
- /**
4806
- * @uiName Step 4 title
4807
- * @uiGroup Step 4 Properties
4808
- */
4809
- this.step4_taxAndPayouts = "Payouts";
4810
- /**
4811
- * @uiName Direct to bank payout option
4812
- * @uiGroup Step 4 Properties
4813
- */
4814
- this.step4_directlyToBankAccount = "Directly to my bank account";
4815
- /**
4816
- * @uiName PayPal payout option
4817
- * @uiGroup Step 4 Properties
4818
- */
4819
- this.step4_toPayPalAccount = "PayPal (2% processing fee capped to {feeCap})";
4820
- /**
4821
- * @uiName Threshold balance payment schedule option
4822
- * @uiGroup Step 4 Properties
4823
- */
4824
- this.step4_paymentScheduleBalanceThreshold = "Pay me when my balance reaches a threshold";
4825
- /**
4826
- * @uiName Fixed day payment schedule option
4827
- * @uiGroup Step 4 Properties
4828
- */
4829
- this.step4_paymentScheduleFixedDay = "Pay me on a fixed day of the month";
4830
- /**
4831
- * Let the participant choose what day of the month they’ll get paid
4832
- * @uiName Payment day field label
4833
- * @uiGroup Step 4 Properties
4834
- */
4835
- this.step4_paymentDaySelectLabel = "Payment Day";
4836
- /**
4837
- * Participant use this field to select the balance at which they want to be paid
4838
- * @uiName Payment threshold field label
4839
- * @uiGroup Step 4 Properties
4840
- */
4841
- this.step4_paymentThresholdSelectLabel = "Payment threshold";
4842
- /**
4843
- * One of two payment day options
4844
- * @uiName First of month payday option
4845
- * @uiGroup Step 4 Properties
4846
- */
4847
- this.step4_paymentDayFirstOfMonthLabelText = "1st of the month";
4848
- /**
4849
- * One of two payment day options
4850
- * @uiName Fifteenth of month payday option
4851
- * @uiGroup Step 4 Properties
4852
- */
4853
- this.step4_paymentDayFifteenthOfMonthLabelText = "15th of the month";
4854
- /**
4855
- * @uiName Payment method section header
4856
- * @uiGroup Step 4 Properties
4857
- */
4858
- this.step4_paymentMethod = "Payment method";
4859
- /**
4860
- * @uiName Payment schedule section header
4861
- * @uiGroup Step 4 Properties
4862
- */
4863
- this.step4_paymentSchedule = "Payment schedule";
4864
- /**
4865
- * @uiName Payment method section description
4866
- * @uiGroup Step 4 Properties
4867
- */
4868
- this.step4_paymentMethodSubtext = "Payouts will be sent from our referral program provider, impact.com.";
4869
- /**
4870
- * Displayed to participants who choose PayPal as their payout method
4871
- * @uiName PayPal email field label
4872
- * @uiGroup Step 4 Properties
4873
- */
4874
- this.step4_payPalInputLabel = "PayPal email";
4875
- /**
4876
- * @uiName Bank country field label
4877
- * @uiGroup Step 4 Properties
4878
- */
4879
- this.step4_bankLocationLabel = "Bank country location";
4880
- /**
4881
- * @uiName Beneficiary account field label
4882
- * @uiGroup Step 4 Properties
4883
- */
4884
- this.step4_beneficiaryAccountNameLabel = "Account holder name";
4885
- /**
4886
- * @uiName Beneficiary account field description
4887
- * @uiGroup Step 4 Properties
4888
- */
4889
- this.step4_beneficiaryAccountNameDescription = "The beneficiary name of your bank account. Ensure this matches the name on your tax form.";
4890
- /**
4891
- * @uiName Bank account type field label
4892
- * @uiGroup Step 4 Properties
4893
- */
4894
- this.step4_bankAccountTypeLabel = "Bank account type";
4895
- /**
4896
- * @uiName Checking account option
4897
- * @uiGroup Step 4 Properties
4898
- */
4899
- this.step4_checkingSelectItemLabel = "Checking";
4900
- /**
4901
- * Label text for the savings account type select item
4902
- * @uiName Savings account options
4903
- * @uiGroup Step 4 Properties
4904
- */
4905
- this.step4_savingsSelectItemLabel = "Savings";
4906
- /**
4907
- * @uiName Bank account number field label
4908
- * @uiGroup Step 4 Properties
4909
- */
4910
- this.step4_bankAccountNumberLabel = "Bank account number";
4911
- /**
4912
- * @uiName IBAN field label
4913
- * @uiGroup Step 4 Properties
4914
- */
4915
- this.step4_ibanLabel = "IBAN";
4916
- /**
4917
- * @uiName SWIFT code field label
4918
- * @uiGroup Step 4 Properties
4919
- */
4920
- this.step4_swiftCodeLabel = "SWIFT code";
4921
- /**
4922
- * @uiName Routing code field label
4923
- * @uiGroup Step 4 Properties
4924
- */
4925
- 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} }";
4926
- /**
4927
- * @uiName Bank name field label
4928
- * @uiGroup Step 4 Properties
4929
- */
4930
- this.step4_bankNameLabel = "Bank name";
4931
- /**
4932
- * @uiName Classification entity field label
4933
- * @uiGroup Step 4 Properties
4934
- */
4935
- this.step4_classificationEntityLabel = "Classification entity";
4936
- /**
4937
- * One of three options listed for the classification field
4938
- * @uiName Business classification option
4939
- * @uiGroup Step 4 Properties
4940
- */
4941
- this.step4_businessSelectItemLabel = "Business";
4942
- /**
4943
- * One of three options listed for the classification field
4944
- * @uiName Individual classification option
4945
- * @uiGroup Step 4 Properties
4946
- */
4947
- this.step4_individualSelectItemLabel = "Individual";
4948
- /**
4949
- * One of three options listed for the classification field
4950
- * @uiName Foreign classification option
4951
- * @uiGroup Step 4 Properties
4952
- */
4953
- this.step4_foreignSelectItemLabel = "Foreign";
4954
- /**
4955
- * @uiName Classification CPF field label
4956
- * @uiGroup Step 4 Properties
4957
- */
4958
- this.step4_classificationCPFLabel = "Classification CPF";
4959
- /**
4960
- * @uiName Patronymic name field label
4961
- * @uiGroup Step 4 Properties
4962
- */
4963
- this.step4_patronymicNameLabel = "Patronymic name";
4964
- /**
4965
- * @uiName VO code field label
4966
- * @uiGroup Step 4 Properties
4967
- */
4968
- this.step4_voCodeLabel = "VO code";
4969
- /**
4970
- * @uiName Agency code field label
4971
- * @uiGroup Step 4 Properties
4972
- */
4973
- this.step4_agencyCodeLabel = "Agency code";
4974
- /**
4975
- * @uiName Branch code field label
4976
- * @uiGroup Step 4 Properties
4977
- */
4978
- this.step4_branchCodeLabel = "Branch code";
4979
- /**
4980
- * Label text for the classification input field
4981
- * @uiName Classification field label
4982
- * @uiGroup Step 4 Properties
4983
- */
4984
- this.step4_classificationLabel = "Classification";
4985
- /**
4986
- * @uiName Taxpayer ID field label
4987
- * @uiGroup Step 4 Properties
4988
- */
4989
- this.step4_taxPayerIdLabel = "Beneficiary INN";
4990
- /**
4991
- * @uiName Bank address field label
4992
- * @uiGroup Step 4 Properties
4993
- */
4994
- this.step4_bankAddressLabel = "Bank address";
4995
- /**
4996
- * @uiName Bank city field label
4997
- * @uiGroup Step 4 Properties
4998
- */
4999
- this.step4_bankCityLabel = "Bank city";
5000
- /**
5001
- * @uiName Bank province/state field label
5002
- * @uiGroup Step 4 Properties
5003
- */
5004
- this.step4_bankStateLabel = "Bank Province / State";
5005
- /**
5006
- * @uiName Bank postal code field label
5007
- * @uiGroup Step 4 Properties
5008
- */
5009
- this.step4_bankPostalCodeLabel = "Bank postal code";
5010
- /**
5011
- * Default payment method to the participants’ bank account.
5012
- * @uiName EFT withdrawal payment method
5013
- * @uiGroup Step 4 Properties
5014
- */
5015
- this.step4_eftWithdrawalLabel = "EFT Withdrawal (free)";
5016
- /**
5017
- * @uiName FX Wire Processing fee text
5018
- * @uiGroup Step 4 Properties
5019
- */
5020
- this.step4_fxWireProcessingFeeLabel = "FX Wire (Processing Fee {currency}{defaultFxFee}.00)";
5021
- /**
5022
- * @uiName Text for verify email dialog
5023
- * @uiGroup Step 4 Properties
5024
- */
5025
- this.step4_verifyEmailHeaderText = "Verify your email";
5026
- /**
5027
- * @uiName Verify code widget header text
5028
- * @uiGroup Step 4 Properties
5029
- */
5030
- this.step4_verifyEmailDescriptionText = "Verify your email to update your payment settings. Enter the code sent to {email} from our referral provider, impact.com.";
5031
- /**
5032
- * @uiName Information modal title
5033
- * @uiGroup Step 4 Properties
5034
- */
5035
- this.step4_modalTitle = "Important Note";
5036
- /**
5037
- * @uiName Information modal description text
5038
- * @uiGroup Step 4 Properties
5039
- */
5040
- this.step4_modalDescription = "Updating payment information places your account and payouts on hold for up to 48 hours while we verify your change. Payments scheduled during the hold period are skipped.";
5041
- /**
5042
- * @uiName Information modal button text
5043
- * @uiGroup Step 4 Properties
5044
- */
5045
- this.step4_modalButtonText = "I understand, update my information";
5046
- /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5047
- DASHBOARD PROPS:
5048
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
5049
- /**
5050
- * @uiName Active tax form badge label
5051
- * @uiGroup Dashboard Properties
5052
- */
5053
- this.dashboard_statusTextActive = "Active";
5054
- /**
5055
- * @uiName Invalid tax form badge label
5056
- * @uiGroup Dashboard Properties
5057
- */
5058
- this.dashboard_statusTextNotActive = "Invalid Tax Form";
5059
- /**
5060
- * Displayed when the participant submitted their form but it is awaiting review.
5061
- *
5062
- * @uiName Not verified tax form badge label
5063
- * @uiGroup Dashboard Properties
5064
- */
5065
- this.dashboard_statusTextNotVerified = "Not Verified";
5066
- /**
5067
- * Displayed when the participant has not submitted their required tax form.
5068
- *
5069
- * @uiName Required tax form badge label
5070
- */
5071
- this.dashboard_statusTextRequired = "Required";
5072
- /**
5073
- * Additional text displayed next to the tax form's status badge
5074
- *
5075
- * @uiName Required tax form description
5076
- */
5077
- this.dashboard_requiredTaxForm = "Your payouts are on hold until you submit a {taxFormType} tax form.";
5078
- /**
5079
- * Additional text displayed next to the tax form's status badge
5080
- *
5081
- * @uiName Active W-9 description
5082
- * @uiGroup Dashboard Properties
5083
- */
5084
- this.dashboard_badgeTextSubmittedOn = "Submitted on {dateSubmitted}.";
5085
- /**
5086
- * Additional text displayed next to the tax form's status badge.
5087
- *
5088
- * @uiName Active W-8 description
5089
- * @uiGroup Dashboard Properties
5090
- */
5091
- this.dashboard_badgeTextSubmittedOnW8 = "Submitted on {dateSubmitted}. Valid for three years after submission.";
5092
- /**
5093
- * Additional text displayed next to the tax form's status badge.
5094
- *
5095
- * @uiName Tax form in review description
5096
- * @uiGroup Dashboard Properties
5097
- */
5098
- this.dashboard_badgeTextAwaitingReview = "Awaiting review. Submitted on {dateSubmitted}.";
5099
- /**
5100
- * Part of the alert displayed at the top of the page.
5101
- *
5102
- * @uiName Inactive W-9 error message title
5103
- * @uiGroup Dashboard Properties
5104
- * @uiWidget textArea
5105
- */
5106
- this.dashboard_taxAlertHeaderNotActiveW9 = "Your W9 tax form has personal information that doesn’t match your profile";
5107
- /**
5108
- * Part of the alert displayed at the top of the page.
5109
- *
5110
- * @uiName Inactive W-8 error message title
5111
- * @uiGroup Dashboard Properties
5112
- * @uiWidget textArea
5113
- */
5114
- this.dashboard_taxAlertHeaderNotActiveW8 = "{documentType} tax form is invalid";
5115
- /**
5116
- * Part of the alert displayed at the top of the page.
5117
- *
5118
- * @uiName Inactive W-9 error message description
5119
- * @uiGroup Dashboard Properties
5120
- * @uiWidget textArea
5121
- */
5122
- this.dashboard_taxAlertNotActiveMessageW9 = "Please resubmit a new {documentType} form.";
5123
- /**
5124
- * Part of the alert displayed at the top of the page.
5125
- *
5126
- * @uiName Inactive W-8 error message description
5127
- * @uiGroup Dashboard Properties
5128
- */
5129
- 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.";
5130
- /**
5131
- * Additional text displayed next to the tax form's status badge.
5132
- *
5133
- * @uiName Invalid tax form description
5134
- * @uiGroup Dashboard Properties
5135
- * @uiWidget textArea
5136
- */
5137
- this.dashboard_invalidForm = "Make sure your information is correct and submit new form.";
5138
- /**
5139
- * @uiName Payout information section header
5140
- * @uiGroup Dashboard Properties
5141
- */
5142
- this.dashboard_bankingInformationSectionHeader = "Payout Information";
5143
- /**
5144
- * @uiName Tax document section header
5145
- * @uiGroup Dashboard Properties
5146
- */
5147
- this.dashboard_taxDocumentSectionHeader = "Tax documents";
5148
- /**
5149
- * Displayed under the tax document section header.
5150
- *
5151
- * @uiName Tax documents section description
5152
- * @uiGroup Dashboard Properties
5153
- */
5154
- this.dashboard_taxDocumentSectionSubHeader = "{documentType} tax form";
5155
- /**
5156
- * No other statuses or badges will be displayed in the tax form section in this case.
5157
- *
5158
- * @uiName Tax form not required text
5159
- * @uiGroup Dashboard Properties
5160
- * @uiWidget textArea
5161
- */
5162
- 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.";
5163
- /**
5164
- *
5165
- * @uiName Indirect tax section header
5166
- * @uiGroup Dashboard Properties
5167
- */
5168
- this.dashboard_indirectTaxInfoSectionHeader = "Indirect tax";
5169
- /**
5170
- * If the participant is registered for indirect tax in Canada, display the province they’re registered in.
5171
- *
5172
- * @uiName Canadian province of indirect tax
5173
- * @uiGroup Dashboard Properties
5174
- */
5175
- this.dashboard_indirectTaxInfoCanada = "Registered in {province}, {country}";
5176
- /**
5177
- * If the participant is registered for indirect tax, display the country they’re registered in.
5178
- *
5179
- * @uiName Indirect tax country
5180
- * @uiGroup Dashboard Properties
5181
- */
5182
- this.dashboard_indirectTaxInfoOtherCountry = "Registered in {country}";
5183
- /**
5184
- * If the participant is registered for indirect tax in Spain, display the region they’re registered in.
5185
- *
5186
- * @uiName Spanish region of indirect tax
5187
- * @uiGroup Dashboard Properties
5188
- */
5189
- this.dashboard_indirectTaxInfoSpain = "Registered in {country}, {subRegion}";
5190
- /**
5191
- * @uiName Indirect tax tooltip
5192
- * @uiGroup Dashboard Properties
5193
- * @uiWidget textArea
5194
- */
5195
- this.dashboard_indirectTaxTooltipSupport = "To make changes to your indirect tax information, please contact our {supportLink}.";
5196
- /**
5197
- * Displayed to participants who have submitted their indirect tax information.
5198
- *
5199
- * @uiName Indirect tax details
5200
- * @uiGroup Dashboard Properties
5201
- */
5202
- this.dashboard_indirectTaxDetails = "{indirectTaxType} number: {indirectTaxNumber}";
5203
- /**
5204
- * @uiName Submit new tax form button label
5205
- * @uiGroup Dashboard Properties
5206
- */
5207
- this.dashboard_newFormButton = "Submit new form";
5208
- /**
5209
- * @uiName Edit payment info button label
5210
- * @uiGroup Dashboard Properties
5211
- */
5212
- this.dashboard_editPaymentInformationButton = "Edit Payout Information";
5213
- /**
5214
- * @uiName Not registered for indirect tax text
5215
- * @uiGroup Dashboard Properties
5216
- * @uiWidget textArea
5217
- */
5218
- 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.";
5219
- /**
5220
- * Displayed to participants registered in Quebec, Canada.
5221
- * @uiName QST indirect tax details
5222
- * @uiGroup Dashboard Properties
5223
- */
5224
- this.dashboard_qstNumber = "QST number: {qstNumber}";
5225
- /**
5226
- * @uiName Spain sub-region indirect tax number
5227
- * @uiGroup Dashboard Properties
5228
- */
5229
- this.dashboard_subRegionTaxNumber = "Income tax number: {subRegionTaxNumber}";
5230
- /**
5231
- * @uiName Payout status badge
5232
- * @uiGroup Dashboard Properties
5233
- */
5234
- this.dashboard_statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
5235
- /**
5236
- * Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
5237
- * @uiName Payout schedule by threshold text
5238
- * @uiGroup Dashboard Properties
5239
- */
5240
- this.dashboard_thresholdPayoutText = "Next payout occurs when balance is {thresholdBalance}";
5241
- /**
5242
- * Shown before the participant’s bank account information.
5243
- * @uiName Bank account field label
5244
- * @uiGroup Dashboard Properties
5245
- */
5246
- this.dashboard_accountText = "Account";
5247
- /**
5248
- * Part of the Invoice table displayed at the bottom of the page.
5249
- * @uiName Invoice number column title
5250
- * @uiGroup Dashboard Properties
5251
- */
5252
- this.dashboard_invoiceColumnTitle = "Invoice";
5253
- /**
5254
- * Part of the Invoice table displayed at the bottom of the page.
5255
- * @uiName Date column title
5256
- * @uiGroup Dashboard Properties
5257
- */
5258
- this.dashboard_dateColumnTitle = "Date";
5259
- /**
5260
- * Part of the Invoice table displayed at the bottom of the page.
5261
- * @uiName Earnings column title
5262
- * @uiGroup Dashboard Properties
5263
- */
5264
- this.dashboard_earningsColumnTitle = "Earnings";
5265
- /**
5266
- * Part of the Invoice table displayed at the bottom of the page.
5267
- * @uiName Indirect tax column title
5268
- * @uiGroup Dashboard Properties
5269
- */
5270
- this.dashboard_indirectTaxColumnTitle = "Indirect tax";
5271
- /**
5272
- * Displayed under the payout details card.
5273
- * @uiName Payout from impact text
5274
- * @uiGroup Dashboard Properties
5275
- * @uiWidget textArea
5276
- */
5277
- this.dashboard_payoutFromImpact = "Your balance may take up to 24 hours to update. Payouts will be sent from our referral program provider, impact.com.";
5278
- /**
5279
- * Part of the Invoice table displayed at the bottom of the page.
5280
- * @uiName Earnings after tax column title
5281
- * @uiGroup Dashboard Properties
5282
- */
5283
- this.dashboard_earningsAfterTaxColumnTitle = "Earnings after tax";
5284
- /**
5285
- * Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
5286
- * @uiName Payout error message title
5287
- * @uiGroup Dashboard Properties
5288
- * @uiWidget textArea
5289
- */
5290
- this.dashboard_payoutHoldAlertHeader = "Your payout is on hold";
5291
- /**
5292
- * Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
5293
- * @uiName Payout error message description
5294
- * @uiGroup Dashboard Properties
5295
- * @uiWidget textArea
5296
- */
5297
- this.dashboard_payoutHoldAlertDescription = "Please contact our {supportLink} or check your inbox for an email from our referral program provider, impact.com.";
5298
- /**
5299
- * Text displayed for existing publishers that do not have saved banking information.
5300
- * @uiName Payout missing information subtext
5301
- * @uiGroup Dashboard Properties
5302
- */
5303
- this.dashboard_payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
5304
- /**
5305
- * @uiName Invoice table description
5306
- * @uiGroup Dashboard Properties
5307
- */
5308
- this.dashboard_invoiceDescription = "View and download your invoices to report your earnings and stay tax compliant.";
5309
- /**
5310
- * @uiName Invoice table previous page button label
5311
- * @uiGroup Dashboard Properties
5312
- */
5313
- this.dashboard_invoicePrevLabel = "Prev";
5314
- /**
5315
- * @uiName Invoice table next page button label
5316
- * @uiGroup Dashboard Properties
5317
- */
5318
- this.dashboard_invoiceMoreLabel = "Next";
5319
- /**
5320
- * @uiName Invoice table title
5321
- * @uiGroup Dashboard Properties
5322
- */
5323
- this.dashboard_invoiceHeader = "Invoices";
5324
- /**
5325
- * @uiName Empty invoice table header
5326
- * @uiGroup Dashboard Properties
5327
- */
5328
- this.dashboard_invoiceEmptyStateHeader = "View your invoice details";
5329
- /**
5330
- * @uiName Empty invoice table description
5331
- * @uiGroup Dashboard Properties
5332
- */
5333
- this.dashboard_invoiceEmptyStateText = "Refer a friend to view the status of your invoices and rewards earned";
5334
- /**
5335
- * @uiName Replace tax form modal header
5336
- * @uiGroup Dashboard Properties
5337
- */
5338
- this.dashboard_replaceTaxFormModalHeader = "Replace existing tax form";
5339
- /**
5340
- * @uiName Replace tax form modal body text
5341
- * @uiGroup Dashboard Properties
5342
- * @uiWidget textArea
5343
- */
5344
- 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.";
5345
- /**
5346
- * Part of the alert displayed at the top of the page when the user needs to verify their identity.
5347
- * @uiName Verification required alert message title
5348
- * @uiGroup Dashboard Properties
5349
- * @uiWidget textArea
5350
- */
5351
- this.dashboard_verificationRequiredHeader = "Verify your identity";
5352
- /**
5353
- * Part of the alert displayed at the top of the page when the user needs to verify their identity
5354
- * @uiName Verification required alert message description
5355
- * @uiGroup Dashboard Properties
5356
- * @uiWidget textArea
5357
- */
5358
- 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}.";
5359
- /**
5360
- * @uiName Verification required internal alert header
5361
- * @uiGroup Dashboard Properties
5362
- * @uiWidget textArea
5363
- */
5364
- this.dashboard_verificationRequiredInternalHeader = "Identity Verification in Progress";
5365
- /**
5366
- * @uiName Verification required internal alert description
5367
- * @uiGroup Dashboard Properties
5368
- * @uiWidget textArea
5369
- */
5370
- 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}.";
5371
- /**
5372
- * @uiName Verification review internal alert header
5373
- * @uiGroup Dashboard Properties
5374
- * @uiWidget textArea
5375
- */
5376
- this.dashboard_verificationReviewInternalHeader = "Identity Verification Under Review";
5377
- /**
5378
- * @uiName Verification review internal alert description
5379
- * @uiGroup Dashboard Properties
5380
- * @uiWidget textArea
5381
- */
5382
- 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}.";
5383
- /**
5384
- * @uiName Verification failed internal alert header
5385
- * @uiGroup Dashboard Properties
5386
- * @uiWidget textArea
5387
- */
5388
- this.dashboard_verificationFailedInternalHeader = "Identity Verification Unsuccessful";
5389
- /**
5390
- * @uiName Verification failed internal alert description
5391
- * @uiGroup Dashboard Properties
5392
- * @uiWidget textArea
5393
- */
5394
- 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}.";
5395
- /**
5396
- * Part of the alert displayed at the top of the page when the user needs to verify their identity.
5397
- * @uiName Verification required alert button text
5398
- * @uiGroup Dashboard Properties
5399
- * @uiWidget textArea
5400
- */
5401
- this.dashboard_verificationRequiredButtonText = "Start Verification";
5402
- /**
5403
- * @uiName W9 payment threshold alert header
5404
- * @uiGroup Dashboard Properties
5405
- * @uiWidget textArea
5406
- */
5407
- this.dashboard_w9RequiredHeader = "Your next payout is on hold";
5408
- /**
5409
- * @uiName W9 payment threshold alert description
5410
- * @uiGroup Dashboard Properties
5411
- * @uiWidget textArea
5412
- */
5413
- this.dashboard_w9RequiredDescription = "You have surpassed the $600 threshold for a W9 tax form. To remove the hold, you need to submit a W9 tax form as outlined in our {termsAndConditions}. Please click 'Submit W9' to start the process.";
5414
- /**
5415
- * @uiName Terms and Conditions text
5416
- * @uiGroup Dashboard Properties
5417
- */
5418
- this.dashboard_termsAndConditions = "Terms and Conditions";
5419
- /**
5420
- * @uiName W9 payment threshold alert button text
5421
- * @uiGroup Dashboard Properties
5422
- * @uiWidget textArea
5423
- */
5424
- this.dashboard_w9RequiredButtonText = "Submit W9";
5425
- /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5426
- GENERAL PROPS:
5427
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
5428
- /**
5429
- * @uiName Setup progress
5430
- * @uiGroup General Form Properties
5431
- */
5432
- this.formStep = "Step {step} of {count}";
5433
- /**
5434
- * Part of the alert displayed at the top of the page.
5435
- * @uiName Form submission error message title
5436
- * @uiGroup General Form Properties
5437
- * @uiWidget textArea
5438
- */
5439
- this.generalErrorTitle = "There was a problem submitting your information";
5440
- /**
5441
- * Part of the alert displayed at the top of the page.
5442
- * @uiName Form submission error message description
5443
- * @uiGroup General Form Properties
5444
- * @uiWidget textArea
5445
- */
5446
- this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact our {supportLink}.";
5447
- /**
5448
- * Displayed under a field that is missing required information.
5449
- * @uiName Empty form field error message
5450
- * @uiGroup General Form Properties
5451
- */
5452
- this.fieldRequiredError = "{fieldName} is required";
5453
- /**
5454
- * Displayed under a field that includes invalid characters (non-ASCII).
5455
- * @uiName Invalid character error message
5456
- * @uiGroup General Form Properties
5457
- */
5458
- this.invalidCharacterError = "{fieldName} includes characters that aren't supported.";
5459
- /**
5460
- * Displayed under a field when it has an invalid entry.
5461
- * @uiName Form field error message
5462
- * @uiGroup General Form Properties
5463
- */
5464
- this.fieldInvalidError = "{fieldName} is invalid";
5465
- /**
5466
- * @uiName Continue button label
5467
- * @uiGroup General Form Properties
5468
- */
5469
- this.continueButton = "Continue";
5470
- /**
5471
- * @uiName Back button label
5472
- * @uiGroup General Form Properties
5473
- */
5474
- this.backButton = "Back";
5475
- /**
5476
- * @uiName Cancel button label
5477
- * @uiGroup General Form Properties
5478
- */
5479
- this.cancelButton = "Cancel";
5480
- /**
5481
- * Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com.
5482
- * @uiName Participant is a partner alert title
5483
- * @uiGroup General Form Properties
5484
- * @uiWidget textArea
5485
- */
5486
- this.isPartnerAlertHeader = "An account with this email already exists with our referral program provider, impact.com";
5487
- /**
5488
- * Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com.
5489
- * @uiName Participant is a partner alert description
5490
- * @uiGroup General Form Properties
5491
- * @uiWidget textArea
5492
- */
5493
- 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.";
5494
- /**
5495
- * Placeholder text displayed in the country search dropdown
5496
- * @uiName Country field placeholder text
5497
- * @uiGroup General Form Properties
5498
- */
5499
- this.searchForCountryText = "Search for country..";
3598
+ : luxon.luxon.DateTime.now()
3599
+ .plus({ month: 1 })
3600
+ .startOf("month")
3601
+ .toFormat("LLL dd, yyyy");
3602
+ }
3603
+ else if (paymentDay === "15") {
3604
+ return currentDay <= 15
3605
+ ? luxon.luxon.DateTime.now()
3606
+ .plus({ day: 15 - currentDay })
3607
+ .toFormat("LLL dd, yyyy")
3608
+ : luxon.luxon.DateTime.now()
3609
+ .plus({ month: 1 })
3610
+ .startOf("month")
3611
+ .plus({ day: 14 })
3612
+ .toFormat("LLL dd, yyyy");
3613
+ }
3614
+ else {
3615
+ global.intl.formatMessage({
3616
+ id: `nextPayoutBalance`,
3617
+ defaultMessage: props.thresholdPayoutText,
3618
+ }, {
3619
+ thresholdBalance: (_a = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _a === void 0 ? void 0 : _a.paymentThreshold,
3620
+ });
3621
+ }
3622
+ }
3623
+ const paymentDay = getPayoutDetailedStatusText((_c = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _c === void 0 ? void 0 : _c.paymentDay);
3624
+ const isPayoutToday = luxon.luxon.DateTime.now().toFormat("LLL dd, yyyy") === paymentDay;
3625
+ return {
3626
+ states: {
3627
+ loading,
3628
+ 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}`
3629
+ : undefined,
3630
+ balance: (_f = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _f === void 0 ? void 0 : _f.balance,
3631
+ badgeStatus: ((_g = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _g === void 0 ? void 0 : _g.paymentSchedulingType) !== "FIXED_DAY"
3632
+ ? "thresholdPayout"
3633
+ : isPayoutToday
3634
+ ? "payoutToday"
3635
+ : "nextPayout",
3636
+ payoutType: (_h = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _h === void 0 ? void 0 : _h.paymentMethod,
3637
+ error: (_j = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _j === void 0 ? void 0 : _j.hold,
3638
+ paypalEmailAddress: (_k = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _k === void 0 ? void 0 : _k.paypalEmailAddress,
3639
+ cardNumberPreview: (_l = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _l === void 0 ? void 0 : _l.bankAccountNumber,
3640
+ nextPayoutDate: paymentDay,
3641
+ },
3642
+ text: props.getTextProps(),
3643
+ };
3644
+ }
3645
+
3646
+ const PayoutDetailsCard = class {
3647
+ constructor(hostRef) {
3648
+ index.registerInstance(this, hostRef);
5500
3649
  /**
5501
- * Part of the alert displayed at the top of the page.
5502
- * @uiName Page load error message title
5503
- * @uiGroup General Form Properties
5504
- * @uiWidget textArea
3650
+ * Badge text indicating payout status
3651
+ * @uiName Payout badge status text
5505
3652
  */
5506
- this.loadingErrorAlertHeader = "There was a problem loading your form";
3653
+ this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
5507
3654
  /**
5508
- * Part of the alert displayed at the top of the page.
5509
- * @uiName Page load error message description
5510
- * @uiGroup General Form Properties
5511
- * @uiWidget textArea
3655
+ * Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
3656
+ * @uiName Payout schedule by threshold text
5512
3657
  */
5513
- this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact our {supportLink}.";
3658
+ this.thresholdPayoutText = "Next payout occurs when balance is {thresholdBalance}";
5514
3659
  /**
5515
- * Displayed at the top of the page on all set up steps.
5516
- * @uiName Page description
5517
- * @uiGroup General Form Properties
3660
+ * Shown before the participant’s bank account information.
3661
+ * @uiName Bank account field label
5518
3662
  */
5519
- this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
3663
+ this.accountText = "Account";
5520
3664
  /**
5521
- * Link text for contacting support team
5522
- * @uiName Suport link text
5523
- * @uiGroup General Form Properties
3665
+ * Text displayed for existing publishers that do not have saved banking information.
3666
+ * @uiName Payout missing information subtext
5524
3667
  */
5525
- this.supportLink = "support team";
3668
+ this.payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
5526
3669
  /**
5527
- * Link text for Terms and Conditions
5528
- * @uiName Terms and Conditions text
5529
- * @uiGroup General Form Properties
3670
+ * @componentState { "title": "Loading", "props": { "states": { "loading": true } } }
5530
3671
  */
5531
- this.termsAndConditions = "Terms and Conditions";
5532
- stencilHooks_module.h$1(this);
3672
+ this.stateController = "{}";
3673
+ domContextHooks_module.h$1(this);
5533
3674
  }
5534
3675
  disconnectedCallback() { }
5535
- // this field is required prop
5536
- getGeneralStepTextProps(prefix) {
3676
+ getTextProps() {
5537
3677
  const props = utils.getProps(this);
5538
3678
  return {
5539
- ...extractProps.extractProps(props, prefix),
5540
- generalErrorTitle: props.generalErrorTitle,
5541
- generalErrorDescription: props.generalErrorDescription,
5542
- fieldRequiredError: props.fieldRequiredError,
5543
- invalidCharacterError: props.invalidCharacterError,
5544
- fieldInvalidError: props.fieldInvalidError,
5545
- continueButton: props.continueButton,
5546
- backButton: props.backButton,
5547
- cancelButton: props.cancelButton,
5548
- isPartnerAlertHeader: props.isPartnerAlertHeader,
5549
- isPartnerAlertDescription: props.isPartnerAlertDescription,
5550
- loadingErrorAlertHeader: props.loadingErrorAlertHeader,
5551
- loadingErrorAlertDescription: props.loadingErrorAlertDescription,
5552
- taxAndPayoutsDescription: props.taxAndPayoutsDescription,
5553
- searchForCountryText: props.searchForCountryText,
5554
- formStep: props.formStep,
5555
- supportLink: props.supportLink,
3679
+ ...props,
5556
3680
  };
5557
3681
  }
5558
3682
  render() {
5559
- var _a, _b;
5560
- const props = index_module.isDemo() ? useDemoTaxAndCash(this) : useTaxAndCash();
5561
- // @ts-ignore
5562
- if ((_a = this.demoData) === null || _a === void 0 ? void 0 : _a.showTextProps) {
5563
- const textProps = utils.getProps(this);
5564
- return (index.h("div", null, (_b = Object.keys(textProps)) === null || _b === void 0 ? void 0 : _b.map((prop) => {
5565
- if (prop === "demoData")
5566
- return;
5567
- return (index.h("div", null, index.h("b", null, prop, ":"), " ", this[prop], index.h("hr", null)));
5568
- })));
5569
- }
5570
- switch (props.step) {
5571
- case "/1":
5572
- return (index.h("sqm-user-info-form", Object.assign({}, this.getGeneralStepTextProps("step1_"))));
5573
- case "/2":
5574
- return (index.h("sqm-indirect-tax-form", Object.assign({}, this.getGeneralStepTextProps("step2_"))));
5575
- case "/3":
5576
- return (index.h("sqm-docusign-form", Object.assign({}, this.getGeneralStepTextProps("step3_"))));
5577
- case "/4":
5578
- return (index.h("sqm-banking-info-form", Object.assign({}, this.getGeneralStepTextProps("step4_"))));
5579
- case "/dashboard":
5580
- return (index.h("sqm-tax-and-cash-dashboard", Object.assign({}, this.getGeneralStepTextProps("dashboard_"))));
5581
- case "/error":
5582
- return (index.h(ErrorView.ErrorView, { loadingErrorAlertHeader: this.loadingErrorAlertHeader, loadingErrorAlertDescription: this.loadingErrorAlertDescription }));
5583
- }
5584
- return index.h(sqmInvoiceTableView.LoadingView, null);
3683
+ const props = index_module.isDemo()
3684
+ ? useDemoPayoutDetailsCard(this)
3685
+ : usePayoutDetailsCard(this);
3686
+ return (index.h(index.Host, null, index.h(PayoutDetailsCardView, { text: props.text, states: props.states })));
5585
3687
  }
5586
3688
  };
5587
- function useDemoTaxAndCash(props) {
5588
- const [step, setStep] = index_module.In({
5589
- namespace: TAX_CONTEXT_NAMESPACE,
5590
- initialValue: "/1",
5591
- });
3689
+ function useDemoPayoutDetailsCard(props) {
5592
3690
  return cjs.cjs({
5593
- step,
5594
- setStep,
3691
+ states: {
3692
+ loading: false,
3693
+ error: false,
3694
+ thresholdBalance: "$50",
3695
+ mainCurrency: { currencyText: "USD", amountText: "100.00" },
3696
+ badgeStatus: "nextPayout",
3697
+ payoutType: "BANK_TRANSFER",
3698
+ nextPayoutDate: "March 14, 2024",
3699
+ paypalEmailAddress: "joesmith@example.com",
3700
+ otherCurrencies: false,
3701
+ hasW9Pending: false,
3702
+ hasDatePending: true,
3703
+ cardNumberPreview: "XX2381",
3704
+ balance: "20.00 USD",
3705
+ },
3706
+ text: props.getTextProps(),
5595
3707
  }, props.demoData || {}, { arrayMerge: (_, a) => a });
5596
3708
  }
5597
3709
 
5598
- const style$6 = {
3710
+ const style$5 = {
5599
3711
  ErrorAlertContainer: {
5600
3712
  "&::part(base)": {
5601
3713
  backgroundColor: "var(--sl-color-red-100)",
@@ -5786,27 +3898,44 @@ const style$6 = {
5786
3898
  },
5787
3899
  DialogButton: { margin: "auto", width: "100%" },
5788
3900
  };
5789
- const sheet$5 = JSS.createStyleSheet(style$6);
5790
- const styleString$5 = sheet$5.toString();
3901
+ const sheet$4 = JSS.createStyleSheet(style$5);
3902
+ const styleString$4 = sheet$4.toString();
5791
3903
  const TaxAndCashDashboardView = (props) => {
5792
3904
  var _a;
5793
3905
  const { states, text, callbacks, slots } = props;
5794
3906
  function getAlert(status) {
5795
3907
  switch (status) {
5796
3908
  case "OVER_W9_THRESHOLD":
5797
- return {
5798
- header: text.w9RequiredHeader,
5799
- description: global.intl.formatMessage({
5800
- id: "w9RequiredDescription",
5801
- defaultMessage: text.w9RequiredDescription,
5802
- }, {
5803
- termsAndConditions: (index.h("a", { target: "_blank", href: `https://terms.advocate.impact.com/PayoutTermsAndConditions.html` }, text.termsAndConditions)),
5804
- }),
5805
- button: (index.h("sl-button", { style: { marginTop: "var(--sl-spacing-x-small)" }, type: "default", onClick: callbacks.onNewFormClick }, text.w9RequiredButtonText)),
5806
- alertType: "info",
5807
- icon: "info-circle",
5808
- class: sheet$5.classes.WarningHoldAlertContainer,
5809
- };
3909
+ if (states.enforceUsTaxComplianceOption === "CASH_ONLY_DEFER_W9") {
3910
+ return {
3911
+ header: text.w9RequiredHeader,
3912
+ description: global.intl.formatMessage({
3913
+ id: "w9RequiredDescription",
3914
+ defaultMessage: text.w9RequiredDescription,
3915
+ }, {
3916
+ termsAndConditions: (index.h("a", { target: "_blank", href: `https://terms.advocate.impact.com/PayoutTermsAndConditions.html` }, text.termsAndConditions)),
3917
+ }),
3918
+ button: (index.h("sl-button", { style: { marginTop: "var(--sl-spacing-x-small)" }, type: "default", onClick: callbacks.onNewFormClick }, text.w9RequiredButtonText)),
3919
+ alertType: "info",
3920
+ icon: "info-circle",
3921
+ class: sheet$4.classes.WarningHoldAlertContainer,
3922
+ };
3923
+ }
3924
+ else {
3925
+ return {
3926
+ header: text.payoutHoldAlertHeader,
3927
+ description: global.intl.formatMessage({
3928
+ id: "payoutHoldAlertDescription",
3929
+ defaultMessage: text.payoutHoldAlertDescription,
3930
+ }, {
3931
+ supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
3932
+ }),
3933
+ buttonText: null,
3934
+ alertType: "warning",
3935
+ icon: "exclamation-triangle",
3936
+ class: sheet$4.classes.WarningHoldAlertContainer,
3937
+ };
3938
+ }
5810
3939
  case "VERIFICATION:REQUIRED":
5811
3940
  return {
5812
3941
  header: text.verificationRequiredHeader,
@@ -5819,7 +3948,7 @@ const TaxAndCashDashboardView = (props) => {
5819
3948
  buttonText: text.verificationRequiredButtonText,
5820
3949
  alertType: "warning",
5821
3950
  icon: "exclamation-triangle",
5822
- class: sheet$5.classes.WarningHoldAlertContainer,
3951
+ class: sheet$4.classes.WarningHoldAlertContainer,
5823
3952
  };
5824
3953
  case "VERIFICATION:INTERNAL":
5825
3954
  return {
@@ -5832,7 +3961,7 @@ const TaxAndCashDashboardView = (props) => {
5832
3961
  }),
5833
3962
  alertType: "warning",
5834
3963
  icon: "exclamation-triangle",
5835
- class: sheet$5.classes.WarningHoldAlertContainer,
3964
+ class: sheet$4.classes.WarningHoldAlertContainer,
5836
3965
  };
5837
3966
  case "VERIFICATION:REVIEW":
5838
3967
  return {
@@ -5845,7 +3974,7 @@ const TaxAndCashDashboardView = (props) => {
5845
3974
  }),
5846
3975
  alertType: "warning",
5847
3976
  icon: "exclamation-triangle",
5848
- class: sheet$5.classes.WarningHoldAlertContainer,
3977
+ class: sheet$4.classes.WarningHoldAlertContainer,
5849
3978
  };
5850
3979
  case "VERIFICATION:FAILED":
5851
3980
  return {
@@ -5856,9 +3985,23 @@ const TaxAndCashDashboardView = (props) => {
5856
3985
  }, {
5857
3986
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
5858
3987
  }),
5859
- alertType: "critical",
3988
+ alertType: "error",
5860
3989
  icon: "exclamation-octagon",
5861
- class: sheet$5.classes.ErrorHoldAlertContainer,
3990
+ class: sheet$4.classes.ErrorHoldAlertContainer,
3991
+ };
3992
+ case "ACCOUNT_REVIEW":
3993
+ return {
3994
+ header: text.accountReviewHeader,
3995
+ description: global.intl.formatMessage({
3996
+ id: "accountReviewDescription",
3997
+ defaultMessage: text.accountReviewDescription,
3998
+ }, {
3999
+ supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
4000
+ }),
4001
+ buttonText: null,
4002
+ alertType: "warning",
4003
+ icon: "exclamation-triangle",
4004
+ class: sheet$4.classes.WarningHoldAlertContainer,
5862
4005
  };
5863
4006
  case "HOLD":
5864
4007
  return {
@@ -5872,14 +4015,14 @@ const TaxAndCashDashboardView = (props) => {
5872
4015
  buttonText: null,
5873
4016
  alertType: "warning",
5874
4017
  icon: "exclamation-triangle",
5875
- class: sheet$5.classes.WarningHoldAlertContainer,
4018
+ class: sheet$4.classes.WarningHoldAlertContainer,
5876
4019
  };
5877
4020
  default:
5878
4021
  return;
5879
4022
  }
5880
4023
  }
5881
4024
  const statusMap = {
5882
- NOT_VERIFIED: (index.h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
4025
+ NOT_VERIFIED: (index.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
5883
4026
  index.h("sl-badge", { type: "warning", pill: true }, text.statusTextNotVerified),
5884
4027
  index.h("p", null, global.intl.formatMessage({
5885
4028
  id: `badgeTextAwaitingReview`,
@@ -5887,7 +4030,7 @@ const TaxAndCashDashboardView = (props) => {
5887
4030
  }, {
5888
4031
  dateSubmitted: states.dateSubmitted,
5889
4032
  })))),
5890
- ACTIVE: (index.h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
4033
+ ACTIVE: (index.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
5891
4034
  index.h("sl-badge", { type: "success", pill: true }, text.statusTextActive),
5892
4035
  index.h("p", null, global.intl.formatMessage({
5893
4036
  id: `badgeTextSubmittedOn`,
@@ -5897,10 +4040,10 @@ const TaxAndCashDashboardView = (props) => {
5897
4040
  }, {
5898
4041
  dateSubmitted: states.dateSubmitted,
5899
4042
  })))),
5900
- INACTIVE: (index.h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
4043
+ INACTIVE: (index.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
5901
4044
  index.h("sl-badge", { type: "danger", pill: true }, text.statusTextNotActive),
5902
4045
  index.h("p", null, text.invalidForm))),
5903
- undefined: (index.h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
4046
+ undefined: (index.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
5904
4047
  index.h("sl-badge", { type: "danger", pill: true }, text.statusTextRequired),
5905
4048
  index.h("p", null, global.intl.formatMessage({
5906
4049
  id: `requiredTaxForm`,
@@ -5910,7 +4053,7 @@ const TaxAndCashDashboardView = (props) => {
5910
4053
  })))),
5911
4054
  };
5912
4055
  const alertMap = {
5913
- INACTIVE: (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.ErrorAlertContainer },
4056
+ INACTIVE: (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true },
5914
4057
  index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
5915
4058
  index.h("strong", null, global.intl.formatMessage({
5916
4059
  id: `taxAlertHeaderNotActive`,
@@ -5961,9 +4104,9 @@ const TaxAndCashDashboardView = (props) => {
5961
4104
  const alertInfo = getAlert(states.payoutStatus);
5962
4105
  return (index.h("div", null,
5963
4106
  index.h("div", null,
5964
- index.h("style", { type: "text/css" }, styleString$5),
4107
+ index.h("style", { type: "text/css" }, styleString$4),
5965
4108
  states.loadingError && (index.h("div", null,
5966
- index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.ErrorAlertContainer },
4109
+ index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true },
5967
4110
  index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
5968
4111
  index.h("strong", null, text.error.loadingErrorAlertHeader),
5969
4112
  index.h("br", null),
@@ -5973,7 +4116,7 @@ const TaxAndCashDashboardView = (props) => {
5973
4116
  }, {
5974
4117
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
5975
4118
  })))),
5976
- ((_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 },
4119
+ ((_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 },
5977
4120
  index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
5978
4121
  index.h("strong", null, text.error.generalTitle),
5979
4122
  index.h("br", null),
@@ -5989,48 +4132,48 @@ const TaxAndCashDashboardView = (props) => {
5989
4132
  index.h("p", { style: { margin: "0" } }, alertInfo.description),
5990
4133
  alertInfo.buttonText && (index.h("sl-button", { style: { marginTop: "var(--sl-spacing-x-small)" }, type: "default", loading: states.veriffLoading, onClick: () => callbacks.onVerifyClick() }, alertInfo.buttonText)),
5991
4134
  alertInfo.button ? (alertInfo.button) : (index.h("div", { style: { display: "none" } })))),
5992
- index.h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet$5.classes.Dialog, open: states.showNewFormDialog, "onSl-hide": callbacks.onNewFormCancel },
4135
+ index.h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet$4.classes.Dialog, open: states.showNewFormDialog, "onSl-hide": callbacks.onNewFormCancel },
5993
4136
  index.h("p", null, text.replaceTaxFormModalBodyText),
5994
- index.h("sl-button", { slot: "footer", type: "primary", class: sheet$5.classes.DialogButton, onClick: callbacks.onNewFormClick }, text.newFormButton),
5995
- index.h("sl-button", { slot: "footer", type: "default", class: sheet$5.classes.DialogButton, onClick: callbacks.onNewFormCancel }, text.cancelButton)),
4137
+ index.h("sl-button", { slot: "footer", type: "primary", class: sheet$4.classes.DialogButton, onClick: callbacks.onNewFormClick }, text.newFormButton),
4138
+ index.h("sl-button", { slot: "footer", type: "default", class: sheet$4.classes.DialogButton, onClick: callbacks.onNewFormCancel }, text.cancelButton)),
5996
4139
  states.status === "INACTIVE" && alertMap[states.status],
5997
4140
  index.h("div", null,
5998
4141
  index.h("h3", { style: { marginBottom: "0" } }, text.bankingInformationSectionHeader),
5999
- index.h("p", { class: sheet$5.classes.PageDescriptionText }, text.taxAndPayoutsDescription),
6000
- index.h("div", { class: sheet$5.classes.BankingInformationContainer },
4142
+ index.h("div", { class: sheet$4.classes.BankingInformationContainer },
6001
4143
  slots.payoutDetailsCardSlot,
6002
- !states.loading && (index.h("p", { class: sheet$5.classes.DescriptionText }, text.payoutFromImpact)),
6003
- states.canEditPayoutInfo && (index.h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$5.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
6004
- !states.noFormNeeded && (index.h("div", { class: sheet$5.classes.TaxDocumentsContainer },
6005
- index.h("div", null, states.loading ? (index.h("div", { class: sheet$5.classes.TaxSectionSkeletonContainer },
6006
- index.h("sl-skeleton", { class: sheet$5.classes.SkeletonOne }),
6007
- index.h("sl-skeleton", { class: sheet$5.classes.SkeletonTwo }))) : (index.h("div", null,
4144
+ !states.loading && (index.h("p", { class: sheet$4.classes.DescriptionText }, text.payoutFromImpact)),
4145
+ states.canEditPayoutInfo && (index.h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$4.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
4146
+ (!states.noFormNeeded || states.status === "NOT_VERIFIED") && (index.h("div", { class: sheet$4.classes.TaxDocumentsContainer },
4147
+ index.h("div", null, states.loading ? (index.h("div", { class: sheet$4.classes.TaxSectionSkeletonContainer },
4148
+ index.h("sl-skeleton", { class: sheet$4.classes.SkeletonOne }),
4149
+ index.h("sl-skeleton", { class: sheet$4.classes.SkeletonTwo }))) : (index.h("div", null,
6008
4150
  index.h("div", null,
6009
- index.h("span", { class: sheet$5.classes.TaxFormDetailsContainer },
6010
- index.h("div", { class: sheet$5.classes.StatusContainer },
4151
+ index.h("span", { class: sheet$4.classes.TaxFormDetailsContainer },
4152
+ index.h("div", { class: sheet$4.classes.StatusContainer },
6011
4153
  index.h("h3", null, global.intl.formatMessage({
6012
4154
  id: "section-subheader",
6013
4155
  defaultMessage: text.taxDocumentSectionSubHeader,
6014
4156
  }, {
6015
- documentType: states.documentTypeString,
4157
+ documentType: states.documentTypeString || "W-9",
6016
4158
  })),
6017
- index.h("span", { class: sheet$5.classes.StatusAlert }, statusMap[states.status]))),
6018
- 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)))))))),
6019
- index.h("div", { class: sheet$5.classes.IndirectTaxPreviewContainer }, states.loading ? (index.h("div", { class: sheet$5.classes.TaxSectionSkeletonContainer },
6020
- index.h("sl-skeleton", { class: sheet$5.classes.SkeletonOne }),
6021
- index.h("sl-skeleton", { class: sheet$5.classes.SkeletonTwo }))) : (index.h("div", null,
6022
- index.h("h3", { class: sheet$5.classes.IndirectTaxPreviewHeaderContainer },
4159
+ index.h("span", { class: sheet$4.classes.StatusAlert }, statusMap[states.status]))),
4160
+ states.noFormNeeded &&
4161
+ 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)))))))),
4162
+ index.h("div", { class: sheet$4.classes.IndirectTaxPreviewContainer }, states.loading ? (index.h("div", { class: sheet$4.classes.TaxSectionSkeletonContainer },
4163
+ index.h("sl-skeleton", { class: sheet$4.classes.SkeletonOne }),
4164
+ index.h("sl-skeleton", { class: sheet$4.classes.SkeletonTwo }))) : (index.h("div", null,
4165
+ index.h("h3", { class: sheet$4.classes.IndirectTaxPreviewHeaderContainer },
6023
4166
  text.indirectTaxInfoSectionHeader,
6024
- index.h("sl-tooltip", { trigger: "hover", placement: "right", content: text.indirectTaxTooltipSupport, class: sheet$5.classes.TooltipContainer },
6025
- index.h("sl-icon", { name: "info-circle", class: sheet$5.classes.ToolTip }))),
6026
- index.h("div", { class: sheet$5.classes.IndirectTaxPreviewDetails },
6027
- index.h("span", null, states.notRegistered ? (index.h("span", { class: sheet$5.classes.NotRegisteredIndirectTaxText }, global.intl.formatMessage({
4167
+ index.h("sl-tooltip", { trigger: "hover", placement: "right", content: text.indirectTaxTooltipSupport, class: sheet$4.classes.TooltipContainer },
4168
+ index.h("sl-icon", { name: "info-circle", class: sheet$4.classes.ToolTip }))),
4169
+ index.h("div", { class: sheet$4.classes.IndirectTaxPreviewDetails },
4170
+ index.h("span", null, states.notRegistered ? (index.h("span", { class: sheet$4.classes.NotRegisteredIndirectTaxText }, global.intl.formatMessage({
6028
4171
  id: "notRegisteredForTax",
6029
4172
  defaultMessage: text.notRegisteredForTax,
6030
4173
  }, {
6031
4174
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
6032
4175
  }))) : (getIndirectTaxRegisteredIn())),
6033
- !states.notRegistered && (index.h("div", { class: sheet$5.classes.TaxNumberContainer },
4176
+ !states.notRegistered && (index.h("div", { class: sheet$4.classes.TaxNumberContainer },
6034
4177
  index.h("span", null, global.intl.formatMessage({
6035
4178
  id: `indirectTaxDetails`,
6036
4179
  defaultMessage: text.indirectTaxDetails,
@@ -6053,7 +4196,7 @@ const TaxAndCashDashboardView = (props) => {
6053
4196
  }, {
6054
4197
  subRegionTaxNumber: states.subRegionTaxNumber,
6055
4198
  })))),
6056
- !states.notRegistered && (index.h("div", { class: sheet$5.classes.InvoiceTableContainer },
4199
+ !states.notRegistered && (index.h("div", { class: sheet$4.classes.InvoiceTableContainer },
6057
4200
  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 },
6058
4201
  index.h("sqm-invoice-table-download-column", null),
6059
4202
  index.h("sqm-invoice-table-date-column", { "column-title": text.dateColumnTitle }),
@@ -6063,6 +4206,13 @@ const TaxAndCashDashboardView = (props) => {
6063
4206
  index.h("sqm-invoice-table-data-column", { "column-title": text.earningsAfterTaxColumnTitle, property: "netEarnings" })))))))))));
6064
4207
  };
6065
4208
 
4209
+ const GET_TAX_SETTING = index_module.dist.gql `
4210
+ query getTenantSettings {
4211
+ tenantSettings {
4212
+ enforceUsTaxCompliance
4213
+ }
4214
+ }
4215
+ `;
6066
4216
  function getCountryName(countryCode, locale) {
6067
4217
  if (!countryCode)
6068
4218
  return undefined;
@@ -6077,12 +4227,12 @@ function getSubRegionName(regionCode) {
6077
4227
  return "";
6078
4228
  // Impact adds an underscore to some regions
6079
4229
  const standardCode = regionCode.replace("_", "");
6080
- const regions = [...sqmInvoiceTableView.INDIRECT_TAX_PROVINCES, ...sqmInvoiceTableView.INDIRECT_TAX_SPAIN_REGIONS];
4230
+ const regions = [...IndirectTaxDetailsView.INDIRECT_TAX_PROVINCES, ...IndirectTaxDetailsView.INDIRECT_TAX_SPAIN_REGIONS];
6081
4231
  return (_a = regions.find((r) => r.regionCode === standardCode)) === null || _a === void 0 ? void 0 : _a.displayName;
6082
4232
  }
6083
4233
  function getIndirectTaxType(taxInformation) {
6084
4234
  var _a;
6085
- const regions = [...sqmInvoiceTableView.INDIRECT_TAX_PROVINCES, ...sqmInvoiceTableView.INDIRECT_TAX_SPAIN_REGIONS];
4235
+ const regions = [...IndirectTaxDetailsView.INDIRECT_TAX_PROVINCES, ...IndirectTaxDetailsView.INDIRECT_TAX_SPAIN_REGIONS];
6086
4236
  if (taxInformation === null || taxInformation === void 0 ? void 0 : taxInformation.indirectTaxRegion) {
6087
4237
  const standardRegion = taxInformation.indirectTaxRegion.replace("_", "");
6088
4238
  const taxType = (_a = regions.find((r) => r.regionCode === standardRegion)) === null || _a === void 0 ? void 0 : _a.taxType;
@@ -6093,25 +4243,26 @@ function getIndirectTaxType(taxInformation) {
6093
4243
  if (taxInformation === null || taxInformation === void 0 ? void 0 : taxInformation.withholdingTaxCountryCode)
6094
4244
  return "VAT";
6095
4245
  if (taxInformation === null || taxInformation === void 0 ? void 0 : taxInformation.indirectTaxCountryCode) {
6096
- return sqmInvoiceTableView.vatLabels[taxInformation.indirectTaxCountryCode] || "Indirect Tax";
4246
+ return IndirectTaxDetailsView.vatLabels[taxInformation.indirectTaxCountryCode] || "Indirect Tax";
6097
4247
  }
6098
4248
  return "Indirect Tax";
6099
4249
  }
6100
4250
  const useTaxAndCashDashboard = (props) => {
6101
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
6102
- const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
6103
- const setContext = index_module.En(TAX_FORM_CONTEXT_NAMESPACE);
6104
- const [showDialog, setShowDialog] = stencilHooks_module.useState(false);
4251
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
4252
+ const setStep = index_module.En(data.TAX_CONTEXT_NAMESPACE);
4253
+ const setContext = index_module.En(data.TAX_FORM_CONTEXT_NAMESPACE);
4254
+ const [showDialog, setShowDialog] = domContextHooks_module.useState(false);
6105
4255
  const { render, loading: veriffLoading, errors: veriffErrors, } = usePayoutStatus.useVeriffApp();
4256
+ const { data: taxSettingRes } = index_module.wn(GET_TAX_SETTING, {});
6106
4257
  const locale = index_module.L();
6107
- stencilHooks_module.useEffect(() => {
4258
+ domContextHooks_module.useEffect(() => {
6108
4259
  // Clear override context once on submitted
6109
4260
  setContext({});
6110
4261
  if (window.location.hash)
6111
4262
  setStep(`/${window.location.hash.replace("#", "")}`);
6112
4263
  }, []);
6113
- const { data, loading, errors: userError, refetch, } = index_module.$n(USER_QUERY_NAMESPACE);
6114
- 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;
4264
+ const { data: data$1, loading, errors: userError, refetch, } = index_module.$n(data.USER_QUERY_NAMESPACE);
4265
+ 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;
6115
4266
  const documentType = publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType;
6116
4267
  const submissionDate = (_c = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _c === void 0 ? void 0 : _c.dateCreated;
6117
4268
  const dateSubmitted = submissionDate
@@ -6134,39 +4285,41 @@ const useTaxAndCashDashboard = (props) => {
6134
4285
  });
6135
4286
  setStep("/3");
6136
4287
  };
6137
- 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;
6138
- const payoutStatus = data ? usePayoutStatus.getStatus(data) : null;
6139
- stencilHooks_module.useEffect(() => {
4288
+ 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;
4289
+ const payoutStatus = data$1 ? usePayoutStatus.getStatus(data$1) : null;
4290
+ domContextHooks_module.useEffect(() => {
6140
4291
  const cb = () => refetch();
6141
4292
  window.addEventListener(usePayoutStatus.VERIFF_COMPLETE_EVENT_KEY, cb);
6142
4293
  return () => {
6143
4294
  window.removeEventListener(usePayoutStatus.VERIFF_COMPLETE_EVENT_KEY, cb);
6144
4295
  };
6145
4296
  }, []);
4297
+ const enforceUsTaxComplianceOption = (_e = taxSettingRes === null || taxSettingRes === void 0 ? void 0 : taxSettingRes.tenantSettings) === null || _e === void 0 ? void 0 : _e.enforceUsTaxCompliance;
6146
4298
  return {
6147
4299
  states: {
6148
4300
  dateSubmitted,
6149
4301
  documentType,
6150
4302
  canEditPayoutInfo: publisher === null || publisher === void 0 ? void 0 : publisher.brandedSignup,
6151
- documentTypeString: sqmInvoiceTableView.taxTypeToName(documentType),
6152
- status: (_e = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _e === void 0 ? void 0 : _e.status,
6153
- subRegion: getSubRegionName((_f = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _f === void 0 ? void 0 : _f.indirectTaxRegion),
6154
- subRegionTaxNumber: (_g = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _g === void 0 ? void 0 : _g.withholdingTaxId,
6155
- qstNumber: (_h = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _h === void 0 ? void 0 : _h.additionalTaxId,
4303
+ documentTypeString: utils$1.taxTypeToName(documentType),
4304
+ status: (_f = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _f === void 0 ? void 0 : _f.status,
4305
+ subRegion: getSubRegionName((_g = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _g === void 0 ? void 0 : _g.indirectTaxRegion),
4306
+ subRegionTaxNumber: (_h = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _h === void 0 ? void 0 : _h.withholdingTaxId,
4307
+ qstNumber: (_j = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _j === void 0 ? void 0 : _j.additionalTaxId,
6156
4308
  indirectTaxType: getIndirectTaxType(publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation),
6157
- indirectTaxNumber: (_j = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _j === void 0 ? void 0 : _j.indirectTaxId,
4309
+ indirectTaxNumber: (_k = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _k === void 0 ? void 0 : _k.indirectTaxId,
6158
4310
  isBusinessEntity: (publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType) === "W8BENE",
6159
4311
  province: provinceName,
6160
- country: getCountryName((_k = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _k === void 0 ? void 0 : _k.indirectTaxCountryCode, locale),
6161
- notRegistered: !((_l = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _l === void 0 ? void 0 : _l.indirectTaxId),
4312
+ country: getCountryName((_l = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _l === void 0 ? void 0 : _l.indirectTaxCountryCode, locale),
4313
+ notRegistered: !((_m = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _m === void 0 ? void 0 : _m.indirectTaxId),
6162
4314
  noFormNeeded: !documentType,
6163
4315
  disabled: loading,
6164
4316
  loading,
6165
4317
  loadingError: !!(userError === null || userError === void 0 ? void 0 : userError.message),
6166
4318
  showNewFormDialog: showDialog,
6167
- hasHold: !!((_m = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _m === void 0 ? void 0 : _m.hold),
4319
+ hasHold: !!((_o = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _o === void 0 ? void 0 : _o.hold),
6168
4320
  payoutStatus,
6169
4321
  veriffLoading,
4322
+ enforceUsTaxComplianceOption,
6170
4323
  },
6171
4324
  callbacks: {
6172
4325
  onClick: () => setShowDialog(true),
@@ -6232,7 +4385,7 @@ const TaxAndCashDashboard = class {
6232
4385
  * @uiName Inactive W-9 error message title
6233
4386
  * @uiWidget textArea
6234
4387
  */
6235
- this.taxAlertHeaderNotActiveW9 = "Your W9 tax form has personal information that doesn’t match your profile";
4388
+ this.taxAlertHeaderNotActiveW9 = "Your W-9 tax form has personal information that doesn’t match your profile";
6236
4389
  /**
6237
4390
  * Part of the alert displayed at the top of the page.
6238
4391
  *
@@ -6404,21 +4557,29 @@ const TaxAndCashDashboard = class {
6404
4557
  */
6405
4558
  this.verificationRequiredButtonText = "Start Verification";
6406
4559
  /**
6407
- * @uiName W9 payment threshold alert header
4560
+ * @uiName W-9 payment threshold alert header
6408
4561
  */
6409
4562
  this.w9RequiredHeader = "Your next payout is on hold";
6410
4563
  /**
6411
- * @uiName W9 payment threshold alert description
4564
+ * @uiName W-9 payment threshold alert description
6412
4565
  */
6413
- this.w9RequiredDescription = "You have surpassed the $600 threshold for a W9 tax form. To remove the hold, you need to submit a W9 tax form as outlined in our {termsAndConditions}. Please click 'Submit W9' to start the process.";
4566
+ this.w9RequiredDescription = "You have surpassed the $600 threshold requiring a W-9 form or have multiple accounts with impact.com. To remove the hold, please submit your W-9 form.";
4567
+ /**
4568
+ * @uiName Account review alert header
4569
+ */
4570
+ this.accountReviewHeader = "Your account is under review";
4571
+ /**
4572
+ * @uiName Account review alert description
4573
+ */
4574
+ this.accountReviewDescription = "This process takes 48 hours, payouts are on hold until it's completed. You will receive an email from our referral provider, Impact.com, if any issues arise. It contains details on how to resolve this issue. If you need further assistance, please reach out to our {supportLink}.";
6414
4575
  /**
6415
4576
  * @uiName Terms and Conditions text
6416
4577
  */
6417
4578
  this.termsAndConditions = "Terms and Conditions";
6418
4579
  /**
6419
- * @uiName W9 payment threshold alert button text
4580
+ * @uiName W-9 payment threshold alert button text
6420
4581
  */
6421
- this.w9RequiredButtonText = "Submit W9";
4582
+ this.w9RequiredButtonText = "Submit W-9";
6422
4583
  /**
6423
4584
  * Part of the alert displayed at the top of the page.
6424
4585
  * @uiName Form submission error message title
@@ -6486,11 +4647,6 @@ const TaxAndCashDashboard = class {
6486
4647
  this.invoiceEmptyStateHeader = "View your invoice details";
6487
4648
  /** @uiName Empty invoice table description */
6488
4649
  this.invoiceEmptyStateText = "Refer a friend to view the status of your invoices and rewards earned";
6489
- /**
6490
- * Displayed at the top of the page on all set up steps and on the dashboard.
6491
- * @uiName Page description
6492
- */
6493
- this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
6494
4650
  /**
6495
4651
  * @uiName Replace tax form modal header
6496
4652
  */
@@ -6507,7 +4663,12 @@ const TaxAndCashDashboard = class {
6507
4663
  * @uiName Cancel button label
6508
4664
  */
6509
4665
  this.cancelButton = "Cancel";
6510
- stencilHooks_module.h$1(this);
4666
+ /**
4667
+ * @undocumented
4668
+ * @componentState { "title": "Payouts on hold", "props": { "states": { "payoutStatus": "HOLD" } }, "uiGroup": "Dashboard Properties" }
4669
+ */
4670
+ this.stateController = "{}";
4671
+ domContextHooks_module.h$1(this);
6511
4672
  }
6512
4673
  disconnectedCallback() { }
6513
4674
  getTextProps() {
@@ -6532,23 +4693,32 @@ const TaxAndCashDashboard = class {
6532
4693
  }
6533
4694
  };
6534
4695
  function useDemoTaxAndCashDashboard(props) {
4696
+ console.log("dashboard", { props });
4697
+ // @ts-ignore
6535
4698
  return cjs.cjs({
6536
4699
  states: {
6537
4700
  dateSubmitted: "today",
6538
4701
  documentType: "W9",
6539
- documentTypeString: "W9",
4702
+ documentTypeString: "W-9",
6540
4703
  status: "ACTIVE",
6541
4704
  country: "United States",
6542
- indirectTaxNumber: 55555555,
4705
+ indirectTaxNumber: "55555555",
6543
4706
  indirectTaxType: "Indirect Tax",
6544
- noFormNeeded: true,
4707
+ noFormNeeded: false,
6545
4708
  disabled: false,
6546
4709
  loading: false,
6547
4710
  showNewFormDialog: false,
6548
4711
  hasHold: false,
6549
- showVerifyIdentity: false,
4712
+ subRegion: "CA",
4713
+ subRegionTaxNumber: undefined,
4714
+ qstNumber: undefined,
4715
+ isBusinessEntity: false,
4716
+ province: undefined,
4717
+ notRegistered: true,
4718
+ loadingError: false,
6550
4719
  payoutStatus: "DONE",
6551
4720
  veriffLoading: false,
4721
+ canEditPayoutInfo: true,
6552
4722
  },
6553
4723
  callbacks: {
6554
4724
  onClick: () => console.debug("check step"),
@@ -6558,7 +4728,14 @@ function useDemoTaxAndCashDashboard(props) {
6558
4728
  onVerifyClick: () => console.log("verify"),
6559
4729
  },
6560
4730
  text: props.getTextProps(),
6561
- }, props.demoData || {}, { arrayMerge: (_, a) => a });
4731
+ slots: {
4732
+ payoutDetailsCardSlot: (index.h("sqm-payout-details-card", { demoData: {
4733
+ states: {
4734
+ badgeStatus: "nextPayout",
4735
+ },
4736
+ } })),
4737
+ },
4738
+ }, props.demoData || props.stateController || {}, { arrayMerge: (_, a) => a });
6562
4739
  }
6563
4740
 
6564
4741
  const PHONE_EXTENSIONS = {
@@ -7532,19 +5709,19 @@ const PHONE_EXTENSIONS = {
7532
5709
  },
7533
5710
  };
7534
5711
 
7535
- const style$7 = {
5712
+ const style$6 = {
7536
5713
  FormWrapper: {},
7537
5714
  ErrorInput: {
7538
5715
  "&::part(base)": {
7539
- border: "1px solid var(--sl-color-danger-500)",
5716
+ border: "var(--sqm-border-thickness, 1px) solid var(--sqm-danger-color-border)",
7540
5717
  borderRadius: "var(--sl-input-border-radius-medium)",
7541
5718
  },
7542
5719
  "&::part(help-text)": {
7543
- color: "var(--sl-color-danger-500)",
5720
+ color: "var(--sqm-danger-color-text)",
7544
5721
  },
7545
5722
  },
7546
5723
  ErrorText: {
7547
- color: "var(--sl-color-danger-500)",
5724
+ color: "var(--sqm-danger-color-text)",
7548
5725
  marginTop: "10px",
7549
5726
  },
7550
5727
  TextContainer: {
@@ -7575,9 +5752,6 @@ const style$7 = {
7575
5752
  justifyContent: "flex-start",
7576
5753
  flexDirection: "column",
7577
5754
  },
7578
- DescriptionText: {
7579
- color: "var(--sl-color-neutral-500)",
7580
- },
7581
5755
  BoldText: {
7582
5756
  fontWeight: "bold",
7583
5757
  },
@@ -7586,28 +5760,8 @@ const style$7 = {
7586
5760
  borderRadius: "50%",
7587
5761
  },
7588
5762
  },
7589
- AlertContainer: {
7590
- "&::part(base)": {
7591
- backgroundColor: "var(--sl-color-red-100)",
7592
- borderTop: "none",
7593
- padding: "0 16px",
7594
- },
7595
- "& sl-icon::part(base)": {
7596
- color: "var(--sl-color-danger-500)",
7597
- },
7598
- },
7599
- PartnerAlertContainer: {
7600
- "&::part(base)": {
7601
- backgroundColor: "var(--sl-color-sky-100)",
7602
- borderTop: "none",
7603
- padding: "0 16px",
7604
- },
7605
- "& sl-icon::part(base)": {
7606
- color: "var(--sl-color-blue-500)",
7607
- },
7608
- },
7609
5763
  PageDescriptionText: {
7610
- color: "var(--sl-color-neutral-500)",
5764
+ color: "var(--sqm-text-subdued)",
7611
5765
  fontSize: "var(--sl-font-size-medium)",
7612
5766
  },
7613
5767
  PhoneInputsSection: {
@@ -7616,7 +5770,7 @@ const style$7 = {
7616
5770
  gap: "4px",
7617
5771
  "& p": {
7618
5772
  fontSize: "var(--sl-font-size-small)",
7619
- color: "var(--sl-input-label-color)",
5773
+ color: "var(--sqm-input-label-color)",
7620
5774
  fontWeight: "var(--sl-font-weight-semibold)",
7621
5775
  },
7622
5776
  },
@@ -7630,9 +5784,9 @@ const style$7 = {
7630
5784
  },
7631
5785
  },
7632
5786
  };
7633
- const sheet$6 = JSS.createStyleSheet(style$7);
7634
- const styleString$6 = sheet$6.toString();
7635
- const vanillaStyle$4 = `
5787
+ const sheet$5 = JSS.createStyleSheet(style$6);
5788
+ const styleString$5 = sheet$5.toString();
5789
+ const vanillaStyle$3 = `
7636
5790
  :host{
7637
5791
  display: block;
7638
5792
  }
@@ -7641,11 +5795,15 @@ const vanillaStyle$4 = `
7641
5795
  padding: 0;
7642
5796
  box-sizing: border-box;
7643
5797
  }
5798
+ a {
5799
+ color: var(--sqm-text);
5800
+ color: inherit !important;
5801
+ text-decoration: underline;
5802
+ }
7644
5803
 
7645
5804
  p {
7646
5805
  line-height: 18px;
7647
- color: var(--sl-color-gray-800);
7648
- font-size: var(--sl-font-size-small);
5806
+ font-size: var(--sl-font-size-small);
7649
5807
  }
7650
5808
 
7651
5809
  sl-radio-group::part(base) {
@@ -7656,11 +5814,163 @@ const vanillaStyle$4 = `
7656
5814
  sl-select#phoneNumberCountryCode::part(menu) {
7657
5815
  min-width: 250px;
7658
5816
  }
7659
- `;
5817
+
5818
+ sl-button[type="primary"]::part(base){
5819
+ background-color: var(--sqm-primary-button-background);
5820
+ color: var(--sqm-primary-button-color);
5821
+ border-color: var(--sqm-primary-button-color-border);
5822
+ border-radius: var(--sqm-primary-button-radius);
5823
+ }
5824
+
5825
+ sl-button[type="primary"]::part(base):hover{
5826
+ background-color: var(--sqm-primary-button-background-hover);
5827
+ }
5828
+
5829
+ sl-button[type="primary"]::part(base):focus{
5830
+ box-shadow: none;
5831
+ }
5832
+
5833
+ sl-button[type="secondary"]::part(base){
5834
+ background-color: var(--sqm-secondary-button-background);
5835
+ color: var(--sqm-secondary-button-color);
5836
+ border-color: var(--sqm-secondary-button-color-border);
5837
+ border-radius: var(--sqm-secondary-button-radius);
5838
+ }
5839
+
5840
+ sl-button[type="secondary"]::part(base):hover{
5841
+ background-color: var(--sqm-secondary-button-background-hover);
5842
+ }
5843
+
5844
+
5845
+
5846
+ *::part(primarybutton-base){
5847
+ background-color: var(--sqm-primary-button-background);
5848
+ color: var(--sqm-primary-button-color);
5849
+ border-color: var(--sqm-primary-button-color-border);
5850
+ border-radius: var(--sqm-primary-button-radius);
5851
+ }
5852
+
5853
+ *::part(primarybutton-base):hover{
5854
+ background-color: var(--sqm-primary-button-background-hover);
5855
+ }
5856
+
5857
+ *::part(primarybutton-base):focus{
5858
+ box-shadow: none;
5859
+ }
5860
+
5861
+ *::part(secondarybutton-base){
5862
+ background-color: var(--sqm-secondary-button-background);
5863
+ color: var(--sqm-secondary-button-color);
5864
+ border-color: var(--sqm-secondary-button-color-border);
5865
+ border-radius: var(--sqm-secondary-button-radius);
5866
+ }
5867
+
5868
+ *::part(secondarybutton-base):hover{
5869
+ background-color: var(--sqm-secondary-button-background-hover);
5870
+ }
5871
+
5872
+ *::part(secondarybutton-base){
5873
+ background-color: var(--sqm-secondary-button-background);
5874
+ color: var(--sqm-secondary-button-color);
5875
+ border-color: var(--sqm-secondary-button-color-border);
5876
+ border-radius: var(--sqm-secondary-button-radius);
5877
+ width: max-content;
5878
+ display: flex;
5879
+ margin: auto;
5880
+ }
5881
+
5882
+ *::part(secondarybutton-base):hover{
5883
+ background: var(--sqm-secondary-button-background-hover);
5884
+ }
5885
+
5886
+ sl-input::part(label),
5887
+ sl-select::part(label),
5888
+ sl-textarea::part(label){
5889
+ font-size: var(--sqm-input-label-font-size, var(--sl-input-font-size-small));
5890
+ font-weight: var(--sl-font-weight-semibold);
5891
+ color: var(--sqm-input-label-color, var(--sqm-text), black);
5892
+ }
5893
+
5894
+ /* Corrected: Target sl-input, sl-select, sl-textarea base elements */
5895
+ sl-input::part(base),
5896
+ sl-dropdown::part(base),
5897
+ sl-textarea::part(base){
5898
+ background-color: var(--sqm-input-background, #fff);
5899
+ border-radius: var(--sqm-input-border-radius, var(--sl-input-border-radius-large), 0.25rem);
5900
+ color: var(--sqm-input-color, white);
5901
+ border-width: var(--sqm-border-thickness, 1px);
5902
+ border-style: solid;
5903
+ border-color: var(--sqm-input-border-color, #ccc);
5904
+ }
5905
+
5906
+
5907
+ sl-select::part(menu) {
5908
+ background: var(--sqm-input-background, inherit);
5909
+ color: var(--sqm-input-color, inherit);
5910
+ border:none;
5911
+ }
5912
+
5913
+ sl-menu-item::part(base) {
5914
+ color: var(--sqm-input-color);
5915
+ }
5916
+
5917
+ sl-menu-item::part(base):hover {
5918
+ background-color: var(--sqm-input-border-color-hover);
5919
+ }
5920
+
5921
+ sl-select::part(panel) {
5922
+ border-radius: var(--sqm-border-radius-normal);
5923
+ }
5924
+
5925
+ sl-select::part(help-text) {
5926
+ color: var(--sqm-text-subdued, var(--sl-input-help-text-color, #6c757d));
5927
+ }
5928
+
5929
+ sl-input::part(base):focus,
5930
+ sl-select::part(base):focus, /* Corrected part name for sl-select */
5931
+ sl-textarea::part(base):focus { /* Corrected part name for sl-textarea */
5932
+ border: var(--sqm-input-focus-border, 1px solid var(--sl-input-border-color-focus, #007bff)); /* Added fallback for --sl-input-border-color-focus */
5933
+ }
5934
+
5935
+ sl-input[disabled]::part(base),
5936
+ sl-select[disabled]::part(base),
5937
+ sl-textarea[disabled]::part(base){
5938
+ background: var(--sqm-input-disabled-background, #f5f5f5);
5939
+ border-color: var(--sl-input-border-color-disabled, #e0e0e0); /* Example disabled border color */
5940
+ }
5941
+
5942
+
5943
+ sl-input::part(input):-webkit-autofill {
5944
+ box-shadow: 0 0 0 50px var(--sqm-input-background, #fff) inset !important;
5945
+ -webkit-text-fill-color: var(--sqm-input-color, white) !important;
5946
+ }
5947
+
5948
+ sl-input::part(input):-webkit-autofill:hover {
5949
+ box-shadow: 0 0 0 50px var(--sqm-input-background, #fff) inset !important;
5950
+ -webkit-text-fill-color: var(--sqm-input-color, white) !important;
5951
+ }
5952
+
5953
+ sl-input::part(input):-webkit-autofill:focus {
5954
+ box-shadow: 0 0 0 50px var(--sqm-input-background, #fff) inset !important;
5955
+ -webkit-text-fill-color: var(--sqm-input-color, white) !important;
5956
+ }
5957
+
5958
+ sl-checkbox::part(label){
5959
+ color: var(--sqm-text);
5960
+ }
5961
+
5962
+ sl-checkbox[checked]::part(control){
5963
+ background-color: var(--sqm-input-border-color-focus);
5964
+ }
5965
+
5966
+ sl-checkbox[checked]::part(checked-icon){
5967
+ color: var(--sqm-input-background);
5968
+ }
5969
+ `;
7660
5970
  const UserInfoFormView = (props) => {
7661
5971
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
7662
- const { states, states: { formState }, callbacks, text, refs, data, } = props;
7663
- const { classes } = sheet$6;
5972
+ const { states, states: { formState }, callbacks, text, refs, data: data$1, } = props;
5973
+ const { classes } = sheet$5;
7664
5974
  const bankingCollectionText = global.intl.formatMessage({
7665
5975
  id: "bankingCollectionText",
7666
5976
  defaultMessage: text.allowBankingCollection,
@@ -7668,7 +5978,7 @@ const UserInfoFormView = (props) => {
7668
5978
  termsAndConditionsLink: (index.h("a", { href: text.termsAndConditionsLink, target: "_blank" }, text.termsAndConditionsLabel)),
7669
5979
  });
7670
5980
  let regionLabel = undefined;
7671
- switch (data.regionLabelEnum) {
5981
+ switch (data$1.regionLabelEnum) {
7672
5982
  case "STATE":
7673
5983
  regionLabel = text.state;
7674
5984
  break;
@@ -7683,65 +5993,58 @@ const UserInfoFormView = (props) => {
7683
5993
  }
7684
5994
  return (index.h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
7685
5995
  index.h("style", { type: "text/css" },
7686
- styleString$6,
7687
- vanillaStyle$4),
5996
+ styleString$5,
5997
+ vanillaStyle$3),
7688
5998
  states.loadingError && (index.h("div", null,
7689
- index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$6.classes.AlertContainer },
7690
- index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
7691
- index.h("strong", null, text.error.loadingErrorAlertHeader),
7692
- index.h("br", null),
7693
- global.intl.formatMessage({
5999
+ index.h("sqm-form-message", { type: "error" },
6000
+ index.h("p", { part: "alert-title" }, text.error.loadingErrorAlertHeader),
6001
+ index.h("p", { part: "alert-description" }, global.intl.formatMessage({
7694
6002
  id: "loadingErrorAlertDescription",
7695
6003
  defaultMessage: text.error.loadingErrorAlertDescription,
7696
6004
  }, {
7697
6005
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
7698
- })),
7699
- index.h("br", null))),
7700
- states.loading ? (index.h(sqmInvoiceTableView.GeneralLoadingView, null)) : (index.h("div", null,
6006
+ }))))),
6007
+ states.loading ? (index.h(utils$1.LoadingView, null)) : (index.h("div", null,
7701
6008
  index.h("div", { class: classes.TextContainer },
7702
6009
  index.h("div", null,
7703
6010
  !states.hideSteps && (index.h("p", null, global.intl.formatMessage({
7704
6011
  id: "formStep",
7705
6012
  defaultMessage: text.formStep,
7706
- }, { step: states.step, count: FORM_STEPS }))),
6013
+ }, { step: states.step, count: data.FORM_STEPS }))),
7707
6014
  index.h("h3", null, text.personalInformation),
7708
6015
  index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
7709
- ((_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 },
7710
- index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
7711
- index.h("strong", null, text.error.generalTitle),
7712
- index.h("br", null),
7713
- global.intl.formatMessage({
6016
+ ((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sqm-form-message", { type: "error" },
6017
+ index.h("p", { part: "alert-title" }, text.error.generalTitle),
6018
+ index.h("p", { part: "alert-description" }, global.intl.formatMessage({
7714
6019
  id: "generalDescription",
7715
6020
  defaultMessage: text.error.generalDescription,
7716
6021
  }, {
7717
6022
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
7718
- }))),
7719
- (states.isPartner || states.isUser) && (index.h("sl-alert", { type: "primary", open: true, class: sheet$6.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
7720
- index.h("sl-icon", { slot: "icon", name: "info-circle" }),
7721
- index.h("strong", null, text.isPartnerAlertHeader),
7722
- index.h("br", null),
7723
- global.intl.formatMessage({
6023
+ })))),
6024
+ (states.isPartner || states.isUser) && (index.h("sqm-form-message", { type: "info" },
6025
+ index.h("p", { part: "alert-title" }, text.isPartnerAlertHeader),
6026
+ index.h("p", { part: "alert-description" }, global.intl.formatMessage({
7724
6027
  id: "isPartnerAlertDescription",
7725
6028
  defaultMessage: text.isPartnerAlertDescription,
7726
6029
  }, {
7727
6030
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
7728
- }))),
6031
+ })))),
7729
6032
  index.h("div", null,
7730
6033
  index.h("div", { class: classes.InputContainer },
7731
- 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) ? {
6034
+ 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) ? {
7732
6035
  class: classes.ErrorInput,
7733
- helpText: sqmInvoiceTableView.formatErrorMessage(text.firstName, formState.errors.firstName),
6036
+ helpText: utils$1.formatErrorMessage(text.firstName, formState.errors.firstName),
7734
6037
  }
7735
6038
  : {}), { id: "firstName", name: "/firstName", required: true })),
7736
6039
  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) ? {
7737
6040
  class: classes.ErrorInput,
7738
- helpText: sqmInvoiceTableView.formatErrorMessage(text.lastName, formState.errors.lastName),
6041
+ helpText: utils$1.formatErrorMessage(text.lastName, formState.errors.lastName),
7739
6042
  }
7740
6043
  : {}), { id: "lastName", name: "/lastName", required: true })),
7741
6044
  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 }),
7742
6045
  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) ? {
7743
6046
  class: classes.ErrorInput,
7744
- helpText: sqmInvoiceTableView.formatErrorMessage(text.country, formState.errors.countryCode),
6047
+ helpText: utils$1.formatErrorMessage(text.country, formState.errors.countryCode),
7745
6048
  }
7746
6049
  : {}), { required: true, "onSl-select": (e) => callbacks.onFormChange("countryCode", e) }),
7747
6050
  index.h("sl-input", { class: classes.SearchInput, placeholder: text.searchForCountryText, onKeyDown: (e) => {
@@ -7749,8 +6052,8 @@ const UserInfoFormView = (props) => {
7749
6052
  e.stopPropagation();
7750
6053
  }, "onSl-input": (e) => {
7751
6054
  callbacks.setCountrySearch(e.target.value);
7752
- } }), (_e = data === null || data === void 0 ? void 0 : data.countries) === null || _e === void 0 ? void 0 :
7753
- _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 :
6055
+ } }), (_e = data$1 === null || data$1 === void 0 ? void 0 : data$1.countries) === null || _e === void 0 ? void 0 :
6056
+ _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 :
7754
6057
  _f.map((c) => (index.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } }, c.displayName)))),
7755
6058
  index.h("div", { class: classes.PhoneInputsSection },
7756
6059
  index.h("p", null, text.phoneNumber),
@@ -7764,13 +6067,13 @@ const UserInfoFormView = (props) => {
7764
6067
  e.stopPropagation();
7765
6068
  }, "onSl-input": (e) => {
7766
6069
  callbacks.setPhoneCountrySearch(e.target.value);
7767
- } }), (_h = data === null || data === void 0 ? void 0 : data.phoneCountries) === null || _h === void 0 ? void 0 :
6070
+ } }), (_h = data$1 === null || data$1 === void 0 ? void 0 : data$1.phoneCountries) === null || _h === void 0 ? void 0 :
7768
6071
  _h.map((c) => {
7769
6072
  var _a, _b;
7770
6073
  return (index.h("sl-menu-item", { value: c.countryCode },
7771
6074
  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 :
7772
6075
  _b.dial_code));
7773
- }), (_j = data === null || data === void 0 ? void 0 : data.allCountries) === null || _j === void 0 ? void 0 :
6076
+ }), (_j = data$1 === null || data$1 === void 0 ? void 0 : data$1.allCountries) === null || _j === void 0 ? void 0 :
7774
6077
  _j.map((c) => {
7775
6078
  var _a, _b;
7776
6079
  return (index.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } },
@@ -7779,42 +6082,42 @@ const UserInfoFormView = (props) => {
7779
6082
  })),
7780
6083
  index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", id: "phoneNumber", name: "/phoneNumber", value: formState.phoneNumber, validationError: ({ value }) => {
7781
6084
  // Naive phone number validation
7782
- sqmInvoiceTableView.validateBillingField(/[a-zA-Z]+/, value) &&
7783
- sqmInvoiceTableView.formatErrorMessage(text.phoneNumber, text.error.fieldInvalidError);
6085
+ utils$1.validateBillingField(/[a-zA-Z]+/, value) &&
6086
+ utils$1.formatErrorMessage(text.phoneNumber, text.error.fieldInvalidError);
7784
6087
  }, disabled: states.disabled || states.isPartner }, (((_k = formState.errors) === null || _k === void 0 ? void 0 : _k.phoneNumber) ? {
7785
6088
  class: classes.ErrorInput,
7786
- helpText: sqmInvoiceTableView.formatErrorMessage(text.phoneNumber, formState.errors.phoneNumber),
6089
+ helpText: utils$1.formatErrorMessage(text.phoneNumber, formState.errors.phoneNumber),
7787
6090
  }
7788
6091
  : {}), { required: true })))),
7789
6092
  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 }) =>
7790
6093
  // Checks for non-ASCII characters
7791
- !sqmInvoiceTableView.validateBillingField(/^[\x20-\xFF]+$/, value) &&
7792
- sqmInvoiceTableView.formatErrorMessage(text.address, text.error.invalidCharacterError), disabled: states.disabled || states.isPartner }, (((_l = formState.errors) === null || _l === void 0 ? void 0 : _l.address) ? {
6094
+ !utils$1.validateBillingField(/^[\x20-\xFF]+$/, value) &&
6095
+ utils$1.formatErrorMessage(text.address, text.error.invalidCharacterError), disabled: states.disabled || states.isPartner }, (((_l = formState.errors) === null || _l === void 0 ? void 0 : _l.address) ? {
7793
6096
  class: classes.ErrorInput,
7794
- helpText: sqmInvoiceTableView.formatErrorMessage(text.address, formState.errors.address),
6097
+ helpText: utils$1.formatErrorMessage(text.address, formState.errors.address),
7795
6098
  }
7796
6099
  : {}), { required: true })),
7797
6100
  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 }) =>
7798
6101
  // Checks for non-ASCII characters
7799
- !sqmInvoiceTableView.validateBillingField(/^[\x20-\xFF]+$/, value) &&
7800
- sqmInvoiceTableView.formatErrorMessage(text.city, text.error.invalidCharacterError), disabled: states.disabled || states.isPartner }, (((_m = formState.errors) === null || _m === void 0 ? void 0 : _m.city) ? {
6102
+ !utils$1.validateBillingField(/^[\x20-\xFF]+$/, value) &&
6103
+ utils$1.formatErrorMessage(text.city, text.error.invalidCharacterError), disabled: states.disabled || states.isPartner }, (((_m = formState.errors) === null || _m === void 0 ? void 0 : _m.city) ? {
7801
6104
  class: classes.ErrorInput,
7802
- helpText: sqmInvoiceTableView.formatErrorMessage(text.city, formState.errors.city),
6105
+ helpText: utils$1.formatErrorMessage(text.city, formState.errors.city),
7803
6106
  }
7804
6107
  : {}), { required: true })),
7805
6108
  !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) ? {
7806
6109
  class: classes.ErrorInput,
7807
- helpText: sqmInvoiceTableView.formatErrorMessage(text.state, formState.errors.state),
6110
+ helpText: utils$1.formatErrorMessage(text.state, formState.errors.state),
7808
6111
  }
7809
- : {}), { required: true }), (_p = data.regions) === null || _p === void 0 ? void 0 : _p.map((r) => (index.h("sl-menu-item", { value: r.value }, r.label))))),
6112
+ : {}), { 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))))),
7810
6113
  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) ? {
7811
6114
  class: classes.ErrorInput,
7812
- helpText: sqmInvoiceTableView.formatErrorMessage(text.postalCode, formState.errors.postalCode),
6115
+ helpText: utils$1.formatErrorMessage(text.postalCode, formState.errors.postalCode),
7813
6116
  }
7814
6117
  : {}), { required: true })),
7815
6118
  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) ? {
7816
6119
  class: classes.ErrorInput,
7817
- helpText: sqmInvoiceTableView.formatErrorMessage(text.currency, formState.errors.currency),
6120
+ helpText: utils$1.formatErrorMessage(text.currency, formState.errors.currency),
7818
6121
  }
7819
6122
  : {}), { required: true, ref: (el) => (refs.currencyRef.current = el) }),
7820
6123
  index.h("sl-input", { class: classes.SearchInput, placeholder: text.searchForCurrencyText, onKeyDown: (e) => {
@@ -7822,49 +6125,53 @@ const UserInfoFormView = (props) => {
7822
6125
  e.stopPropagation();
7823
6126
  }, "onSl-input": (e) => {
7824
6127
  callbacks.setCurrencySearch(e.target.value);
7825
- } }), (_s = data === null || data === void 0 ? void 0 : data.currencies) === null || _s === void 0 ? void 0 :
6128
+ } }), (_s = data$1 === null || data$1 === void 0 ? void 0 : data$1.currencies) === null || _s === void 0 ? void 0 :
7826
6129
  _s.map((c) => (index.h("sl-menu-item", { value: c.currencyCode },
7827
6130
  c.currencyCode,
7828
6131
  " - ",
7829
- c.displayName))), (_t = data === null || data === void 0 ? void 0 : data.allCurrencies) === null || _t === void 0 ? void 0 :
6132
+ c.displayName))), (_t = data$1 === null || data$1 === void 0 ? void 0 : data$1.allCurrencies) === null || _t === void 0 ? void 0 :
7830
6133
  _t.map((c) => (index.h("sl-menu-item", { value: c.currencyCode, style: { display: "none" } },
7831
6134
  c.currencyCode,
7832
6135
  " - ",
7833
6136
  c.displayName)))),
7834
6137
  index.h("div", { class: classes.CheckboxWrapper },
7835
- index.h("sl-checkbox", { exportparts: "label: input-label, base: input-base", checked: formState.allowBankingCollection === true, "onSl-change": (e) => {
6138
+ index.h("sl-checkbox", { checked: formState.allowBankingCollection === true, "onSl-change": (e) => {
7836
6139
  e.target.value = e.target.checked;
7837
6140
  }, disabled: states.isPartner ? false : states.disabled, required: true, value: formState.allowBankingCollection, id: "allowBankingCollection", name: "/allowBankingCollection" }, bankingCollectionText),
7838
- ((_u = formState.errors) === null || _u === void 0 ? void 0 : _u.allowBankingCollection) && (index.h("p", { class: classes.ErrorText }, sqmInvoiceTableView.formatErrorMessage(text.termsAndConditionsLabel, formState.errors.allowBankingCollection))))),
6141
+ ((_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))))),
7839
6142
  index.h("sl-button", { type: "primary", disabled: states.isPartner ? false : states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton))))));
7840
6143
  };
7841
6144
 
7842
6145
  function useUserInfoForm(props) {
7843
6146
  var _a, _b, _c, _d;
7844
- const currencyRef = stencilHooks_module.useRef(undefined);
7845
- const phoneCountryRef = stencilHooks_module.useRef(undefined);
7846
- const formRef = stencilHooks_module.useRef(null);
7847
- const context = index_module.Fn(TAX_FORM_CONTEXT_NAMESPACE);
7848
- const countries = index_module.Fn(SORTED_COUNTRIES_NAMESPACE);
7849
- const [step, setStep] = index_module.Pn(TAX_CONTEXT_NAMESPACE);
7850
- const [userFormContext, setUserFormContext] = index_module.Pn(USER_FORM_CONTEXT_NAMESPACE);
7851
- const { data, loading, errors: userError, } = index_module.$n(USER_QUERY_NAMESPACE);
7852
- const _currencies = index_module.Fn(CURRENCIES_NAMESPACE);
7853
- const currencies = stencilHooks_module.useMemo(() => [...(_currencies || [])].sort((a, b) => a.displayName.localeCompare(b.displayName)), [_currencies]);
7854
- const [countrySearch, setCountrySearch] = stencilHooks_module.useState("");
7855
- const [phoneCountrySearch, setPhoneCountrySearch] = stencilHooks_module.useState("");
7856
- const [filteredCountries, setFilteredCountries] = stencilHooks_module.useState(countries || []);
7857
- const [filteredPhoneCountries, setFilteredPhoneCountries] = stencilHooks_module.useState(countries || []);
7858
- const [currencySearch, setCurrencySearch] = stencilHooks_module.useState("");
7859
- const [filteredCurrencies, setFilteredCurrencies] = stencilHooks_module.useState(currencies || []);
7860
- const [formErrors, setErrors] = stencilHooks_module.useState({});
7861
- stencilHooks_module.useEffect(() => {
6147
+ const currencyRef = domContextHooks_module.useRef(undefined);
6148
+ const phoneCountryRef = domContextHooks_module.useRef(undefined);
6149
+ const formRef = domContextHooks_module.useRef(null);
6150
+ const context = index_module.Fn(data.TAX_FORM_CONTEXT_NAMESPACE);
6151
+ const countries = index_module.Fn(data.SORTED_COUNTRIES_NAMESPACE);
6152
+ const [step, setStep] = index_module.Pn(data.TAX_CONTEXT_NAMESPACE);
6153
+ const [userFormContext, setUserFormContext] = index_module.Pn(data.USER_FORM_CONTEXT_NAMESPACE);
6154
+ const { data: data$1, loading, errors: userError, } = index_module.$n(data.USER_QUERY_NAMESPACE);
6155
+ const _currencies = index_module.Fn(data.CURRENCIES_NAMESPACE);
6156
+ const currencies = domContextHooks_module.useMemo(() => [...(_currencies || [])].sort((a, b) => a.displayName.localeCompare(b.displayName)), [_currencies]);
6157
+ const [countrySearch, setCountrySearch] = domContextHooks_module.useState("");
6158
+ const [phoneCountrySearch, setPhoneCountrySearch] = domContextHooks_module.useState("");
6159
+ const [filteredCountries, setFilteredCountries] = domContextHooks_module.useState(countries || []);
6160
+ const [filteredPhoneCountries, setFilteredPhoneCountries] = domContextHooks_module.useState(countries || []);
6161
+ const [currencySearch, setCurrencySearch] = domContextHooks_module.useState("");
6162
+ const [filteredCurrencies, setFilteredCurrencies] = domContextHooks_module.useState(currencies || []);
6163
+ const [formErrors, setErrors] = domContextHooks_module.useState({});
6164
+ domContextHooks_module.useEffect(() => {
6165
+ // reset redirect hash
6166
+ window.location.hash = "";
6167
+ }, []);
6168
+ domContextHooks_module.useEffect(() => {
7862
6169
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
7863
- const user = data === null || data === void 0 ? void 0 : data.user;
6170
+ const user = data$1 === null || data$1 === void 0 ? void 0 : data$1.user;
7864
6171
  if (!user || step !== "/1")
7865
6172
  return;
7866
6173
  // If form already filled out, skip initialising it
7867
- if (sqmInvoiceTableView.objectIsFull(userFormContext))
6174
+ if (utils$1.objectIsFull(userFormContext))
7868
6175
  return;
7869
6176
  // Prefer MI email if it was verified before this
7870
6177
  const email = ((_a = user.managedIdentity) === null || _a === void 0 ? void 0 : _a.emailVerified) ? user.managedIdentity.email
@@ -7901,7 +6208,7 @@ function useUserInfoForm(props) {
7901
6208
  postalCode: (_k = user.customFields) === null || _k === void 0 ? void 0 : _k.postalCode,
7902
6209
  });
7903
6210
  }
7904
- }, [data, step, userFormContext]);
6211
+ }, [data$1, step, userFormContext]);
7905
6212
  const onFormChange = (field, e) => {
7906
6213
  var _a, _b;
7907
6214
  const value = (_b = (_a = e.detail) === null || _a === void 0 ? void 0 : _a.item) === null || _b === void 0 ? void 0 : _b.__value;
@@ -7916,7 +6223,7 @@ function useUserInfoForm(props) {
7916
6223
  currencyRef.current.value = "";
7917
6224
  }
7918
6225
  };
7919
- stencilHooks_module.useEffect(() => {
6226
+ domContextHooks_module.useEffect(() => {
7920
6227
  if (!(countries === null || countries === void 0 ? void 0 : countries.length))
7921
6228
  return;
7922
6229
  if (countrySearch.trim() === "") {
@@ -7926,7 +6233,7 @@ function useUserInfoForm(props) {
7926
6233
  setFilteredCountries(countries.filter((c) => c.displayName.toLowerCase().includes(countrySearch.toLowerCase())) || []);
7927
6234
  }
7928
6235
  }, [countrySearch, countries]);
7929
- stencilHooks_module.useEffect(() => {
6236
+ domContextHooks_module.useEffect(() => {
7930
6237
  if (!(countries === null || countries === void 0 ? void 0 : countries.length))
7931
6238
  return;
7932
6239
  if (phoneCountrySearch.trim() === "") {
@@ -7936,7 +6243,7 @@ function useUserInfoForm(props) {
7936
6243
  setFilteredPhoneCountries(countries.filter((c) => c.displayName.toLowerCase().includes(phoneCountrySearch.toLowerCase())) || []);
7937
6244
  }
7938
6245
  }, [phoneCountrySearch, countries]);
7939
- stencilHooks_module.useEffect(() => {
6246
+ domContextHooks_module.useEffect(() => {
7940
6247
  if (!(currencies === null || currencies === void 0 ? void 0 : currencies.length))
7941
6248
  return;
7942
6249
  if (currencySearch.trim() === "") {
@@ -7990,12 +6297,10 @@ function useUserInfoForm(props) {
7990
6297
  });
7991
6298
  const nextStep = context.overrideNextStep || "/2";
7992
6299
  setStep(nextStep);
7993
- // reset redirect hash
7994
- window.location.hash = "";
7995
6300
  }
7996
6301
  const hasStates = ["ES", "AU", "US", "CA"].includes(userFormContext.countryCode);
7997
6302
  const regionObj = hasStates
7998
- ? sqmInvoiceTableView.ADDRESS_REGIONS[userFormContext === null || userFormContext === void 0 ? void 0 : userFormContext.countryCode]
6303
+ ? IndirectTaxDetailsView.ADDRESS_REGIONS[userFormContext === null || userFormContext === void 0 ? void 0 : userFormContext.countryCode]
7999
6304
  : {};
8000
6305
  return {
8001
6306
  setStep: setStep,
@@ -8028,8 +6333,8 @@ function useUserInfoForm(props) {
8028
6333
  disabled: loading,
8029
6334
  loadingError: !!(userError === null || userError === void 0 ? void 0 : userError.message),
8030
6335
  loading: loading,
8031
- 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),
8032
- 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),
6336
+ 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),
6337
+ 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),
8033
6338
  formState: {
8034
6339
  ...userFormContext,
8035
6340
  errors: formErrors,
@@ -8192,7 +6497,7 @@ const TaxForm = class {
8192
6497
  * @uiName Support link text
8193
6498
  */
8194
6499
  this.supportLink = "support team";
8195
- stencilHooks_module.h$1(this);
6500
+ domContextHooks_module.h$1(this);
8196
6501
  }
8197
6502
  disconnectedCallback() { }
8198
6503
  getTextProps() {
@@ -8212,19 +6517,20 @@ const TaxForm = class {
8212
6517
  }
8213
6518
  render() {
8214
6519
  const props = index_module.isDemo() ? useDemoUserInfoForm(this) : useUserInfoForm(this);
8215
- return (index.h(index.Host, null, index.h(UserInfoFormView, { data: props.data,
6520
+ return (index.h(UserInfoFormView, { data: props.data,
8216
6521
  // @ts-ignore
8217
6522
  states: props.states, callbacks: {
8218
6523
  ...props.callbacks,
8219
6524
  onSubmit: props.onSubmit,
8220
- }, text: props.text, refs: props.refs })));
6525
+ }, text: props.text, refs: props.refs }));
8221
6526
  }
8222
6527
  };
8223
6528
  function useDemoUserInfoForm(props) {
8224
- const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
6529
+ const setStep = index_module.En(data.TAX_CONTEXT_NAMESPACE);
6530
+ // @ts-ignore
8225
6531
  return cjs.cjs({
8226
6532
  setStep,
8227
- onSubmit: () => {
6533
+ onSubmit: async () => {
8228
6534
  setStep("/2");
8229
6535
  },
8230
6536
  onRadioClick: () => { },
@@ -8268,19 +6574,12 @@ function useDemoUserInfoForm(props) {
8268
6574
  }
8269
6575
 
8270
6576
  exports.sqm_banking_info_form = BankingInfoForm;
8271
- exports.sqm_code_verification = WidgetCodeVerification;
8272
6577
  exports.sqm_docusign_form = DocusignForm;
8273
6578
  exports.sqm_indirect_tax_form = IndirectTaxForm;
8274
6579
  exports.sqm_invoice_table = InvoiceTable;
8275
- exports.sqm_invoice_table_data_cell = InvoiceTableDataCell;
8276
6580
  exports.sqm_invoice_table_data_column = InvoiceTableDataColumn;
8277
- exports.sqm_invoice_table_date_cell = RewardTableDateCell;
8278
6581
  exports.sqm_invoice_table_date_column = InvoiceTableDateColumn;
8279
- exports.sqm_invoice_table_download_cell = InvoiceTableDownloadCell;
8280
6582
  exports.sqm_invoice_table_download_column = InvoiceTableGenericColumn;
8281
6583
  exports.sqm_payout_details_card = PayoutDetailsCard;
8282
- exports.sqm_table_cell = TableCell;
8283
- exports.sqm_table_row = TableRow;
8284
- exports.sqm_tax_and_cash = TaxAndCashMonolith;
8285
6584
  exports.sqm_tax_and_cash_dashboard = TaxAndCashDashboard;
8286
6585
  exports.sqm_user_info_form = TaxForm;