@saasquatch/mint-components 1.16.0-8 → 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 -2498
  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 -4
  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 -2347
  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-626e9e84.js +0 -1
  926. package/dist/mint-components/p-6333265f.system.js +0 -1
  927. package/dist/mint-components/p-635d5ef2.system.js +0 -1
  928. package/dist/mint-components/p-63a75798.js +0 -1
  929. package/dist/mint-components/p-6427e963.entry.js +0 -1
  930. package/dist/mint-components/p-65069b66.js +0 -1248
  931. package/dist/mint-components/p-653f963f.entry.js +0 -13
  932. package/dist/mint-components/p-65ba9e94.entry.js +0 -1
  933. package/dist/mint-components/p-6b7a595f.system.js +0 -1
  934. package/dist/mint-components/p-6cd4f2b1.system.js +0 -1
  935. package/dist/mint-components/p-6eaf9c57.entry.js +0 -1
  936. package/dist/mint-components/p-775f3ded.entry.js +0 -1
  937. package/dist/mint-components/p-7846937e.entry.js +0 -13
  938. package/dist/mint-components/p-7893e7d1.entry.js +0 -9
  939. package/dist/mint-components/p-7ab21e4d.entry.js +0 -1
  940. package/dist/mint-components/p-7fe7e515.entry.js +0 -205
  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-ba42732b.system.entry.js +0 -1
  959. package/dist/mint-components/p-bfc7cfc0.system.js +0 -1
  960. package/dist/mint-components/p-c060f770.system.entry.js +0 -1
  961. package/dist/mint-components/p-c1b074b6.js +0 -394
  962. package/dist/mint-components/p-c36506f6.system.entry.js +0 -1
  963. package/dist/mint-components/p-c9f1dde7.js +0 -1
  964. package/dist/mint-components/p-cb7bdbe4.entry.js +0 -1
  965. package/dist/mint-components/p-cbbfac66.entry.js +0 -25
  966. package/dist/mint-components/p-cd1d497f.system.js +0 -1
  967. package/dist/mint-components/p-cd651f81.js +0 -42
  968. package/dist/mint-components/p-d8ea88f9.entry.js +0 -273
  969. package/dist/mint-components/p-da7708a7.entry.js +0 -1
  970. package/dist/mint-components/p-dbcb5359.js +0 -1
  971. package/dist/mint-components/p-dcc81e90.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() === "") {
@@ -1199,8 +1033,6 @@ function useBankingInfoForm(props) {
1199
1033
  }
1200
1034
  // Fire form change event
1201
1035
  window.dispatchEvent(new Event(usePayoutStatus.TAX_FORM_UPDATED_EVENT_KEY));
1202
- // reset redirect hash
1203
- window.location.hash = "";
1204
1036
  await refetch();
1205
1037
  setStep("/dashboard");
1206
1038
  }
@@ -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;
@@ -2256,8 +1771,6 @@ function useDocusignForm(props) {
2256
1771
  throw new Error();
2257
1772
  // Fire form change event
2258
1773
  window.dispatchEvent(new Event(usePayoutStatus.TAX_FORM_UPDATED_EVENT_KEY));
2259
- // reset redirect hash
2260
- window.location.hash = "";
2261
1774
  setShowExitButton(true);
2262
1775
  }
2263
1776
  catch (e) {
@@ -2291,7 +1804,7 @@ function useDocusignForm(props) {
2291
1804
  },
2292
1805
  docusignStatus,
2293
1806
  documentType: actualDocumentType,
2294
- documentTypeString: sqmInvoiceTableView.taxTypeToName(actualDocumentType),
1807
+ documentTypeString: utils$1.taxTypeToName(actualDocumentType),
2295
1808
  showExitButton,
2296
1809
  showModal,
2297
1810
  },
@@ -2319,7 +1832,7 @@ function getDocumentType(p) {
2319
1832
  return undefined;
2320
1833
  }
2321
1834
 
2322
- const style$2 = {
1835
+ const style$1 = {
2323
1836
  DocusignStatusContainer: {
2324
1837
  width: "100%",
2325
1838
  minHeight: "600px",
@@ -2331,7 +1844,7 @@ const style$2 = {
2331
1844
  gap: "10px",
2332
1845
  margin: "auto",
2333
1846
  textAlign: "center",
2334
- border: "1px solid var(--sl-color-gray-200)",
1847
+ border: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
2335
1848
  justifyContent: "center",
2336
1849
  },
2337
1850
  MessageContainer: {
@@ -2346,48 +1859,48 @@ const style$2 = {
2346
1859
  },
2347
1860
  },
2348
1861
  };
2349
- const sheet$2 = JSS.createStyleSheet(style$2);
2350
- const styleString$2 = sheet$2.toString();
1862
+ const sheet$1 = JSS.createStyleSheet(style$1);
1863
+ const styleString$1 = sheet$1.toString();
2351
1864
  const DocusignExpiredView = (props) => {
2352
- const { classes } = sheet$2;
1865
+ const { classes } = sheet$1;
2353
1866
  const { text } = props;
2354
1867
  return (index.h("div", null,
2355
- index.h("style", { type: "text/css" }, styleString$2),
1868
+ index.h("style", { type: "text/css" }, styleString$1),
2356
1869
  index.h("div", { class: classes.DocusignStatusContainer },
2357
1870
  index.h("sl-icon", { style: {
2358
1871
  width: "50px",
2359
1872
  height: "50px",
2360
- color: "var(--sl-color-neutral-500)",
1873
+ color: "var(--sqm-text)",
2361
1874
  }, name: "clock" }),
2362
1875
  index.h("div", { class: classes.MessageContainer },
2363
1876
  index.h("p", { style: { margin: "0" } }, text.docusignExpired)),
2364
1877
  index.h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
2365
1878
  };
2366
1879
  const DocusignErrorView = (props) => {
2367
- const { classes } = sheet$2;
1880
+ const { classes } = sheet$1;
2368
1881
  const { text } = props;
2369
1882
  return (index.h("div", null,
2370
- index.h("style", { type: "text/css" }, styleString$2),
1883
+ index.h("style", { type: "text/css" }, styleString$1),
2371
1884
  index.h("div", { class: classes.DocusignStatusContainer },
2372
1885
  index.h("sl-icon", { style: {
2373
1886
  width: "50px",
2374
1887
  height: "50px",
2375
- color: "var(--sl-color-gray-500)",
1888
+ color: "var(--sqm-text)",
2376
1889
  }, name: "exclamation-octagon" }),
2377
1890
  index.h("div", { class: classes.MessageContainer },
2378
1891
  index.h("p", { style: { margin: "0" } }, text.docusignError)),
2379
1892
  index.h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
2380
1893
  };
2381
1894
  const DocusignLoadingView = () => {
2382
- const { classes } = sheet$2;
1895
+ const { classes } = sheet$1;
2383
1896
  return (index.h("div", null,
2384
- index.h("style", { type: "text/css" }, styleString$2),
1897
+ index.h("style", { type: "text/css" }, styleString$1),
2385
1898
  index.h("div", { class: classes.DocusignStatusContainer },
2386
1899
  index.h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } }))));
2387
1900
  };
2388
1901
  const DocusignIframe = ({ states, data, callbacks, text, }) => {
2389
- const { classes } = sheet$2;
2390
- const [iFrameHeight, setiFrameHeight] = stencilHooks_module.useState("100%");
1902
+ const { classes } = sheet$1;
1903
+ const [iFrameHeight, setiFrameHeight] = domContextHooks_module.useState("100%");
2391
1904
  const allowedDomains = [
2392
1905
  "referralsaasquatch.com",
2393
1906
  "impacttech.complysandbox.com",
@@ -2400,11 +1913,11 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
2400
1913
  if (typeof e.data === "number") {
2401
1914
  setiFrameHeight(e.data + "px");
2402
1915
  }
2403
- if (e.data === "Complyexchange Thank you page Load") {
1916
+ if (e.data === "Complyexchange Thank you page Load" && !states.loading) {
2404
1917
  callbacks.completeDocument();
2405
1918
  }
2406
1919
  }, []);
2407
- stencilHooks_module.useEffect(() => {
1920
+ domContextHooks_module.useEffect(() => {
2408
1921
  window.addEventListener("message", callback, false);
2409
1922
  return () => {
2410
1923
  window.removeEventListener("message", callback, false);
@@ -2419,12 +1932,12 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
2419
1932
  return index.h(DocusignExpiredView, { text: text });
2420
1933
  // Wrap iFrame with container that shares the same height to push other elements down when absolute positioned
2421
1934
  return (index.h("div", { style: { height: iFrameHeight } },
2422
- index.h("style", { type: "text/css" }, styleString$2),
1935
+ index.h("style", { type: "text/css" }, styleString$1),
2423
1936
  index.h("div", { class: classes.IFrameContainer },
2424
1937
  index.h("iframe", { scrolling: "yes", frameBorder: "0", width: "100%", src: data.documentUrl, height: iFrameHeight }))));
2425
1938
  };
2426
1939
 
2427
- const style$3 = {
1940
+ const style$2 = {
2428
1941
  ModalTitleContainer: {
2429
1942
  display: "flex",
2430
1943
  gap: "var(--sl-spacing-small)",
@@ -2461,7 +1974,7 @@ const style$3 = {
2461
1974
  gap: "8px",
2462
1975
  },
2463
1976
  ErrorText: {
2464
- color: "var(--sl-color-danger-500)",
1977
+ color: "var(--sqm-danger-color-icon)",
2465
1978
  marginTop: "10px",
2466
1979
  },
2467
1980
  DescriptionText: {
@@ -2470,44 +1983,6 @@ const style$3 = {
2470
1983
  BoldText: {
2471
1984
  fontWeight: "bold",
2472
1985
  },
2473
- SecondaryBtn: {
2474
- "&::part(base)": {
2475
- color: "var(--sl-color-gray-800) !important",
2476
- },
2477
- "&::part(label)": {
2478
- padding: "0px",
2479
- margin: "0px",
2480
- },
2481
- },
2482
- ErrorAlertContainer: {
2483
- "&::part(base)": {
2484
- backgroundColor: "var(--sl-color-red-100)",
2485
- borderTop: "none",
2486
- padding: "0 16px",
2487
- },
2488
- "& sl-icon::part(base)": {
2489
- color: "var(--sl-color-danger-500)",
2490
- },
2491
- },
2492
- InfoAlert: {
2493
- "&::part(base)": {
2494
- backgroundColor: "transparent",
2495
- borderTop: "none",
2496
- padding: "0px",
2497
- marginBottom: "16px",
2498
- border: "none",
2499
- },
2500
- "&::part(message)": {
2501
- display: "flex",
2502
- alignItems: "center",
2503
- justifyContent: "flex-start",
2504
- padding: "10px",
2505
- height: "max-content",
2506
- },
2507
- "& sl-icon::part(base)": {
2508
- color: "var(--sl-color-sky-500)",
2509
- },
2510
- },
2511
1986
  Container: {
2512
1987
  width: "100%",
2513
1988
  display: "flex",
@@ -2515,16 +1990,6 @@ const style$3 = {
2515
1990
  flexDirection: "column",
2516
1991
  gap: "16px",
2517
1992
  },
2518
- Link: {
2519
- color: "var(--sl-color-sky-500)",
2520
- textDecoration: "none",
2521
- "&:visited": {
2522
- color: "var(--sl-color-sky-500)",
2523
- },
2524
- "&:hover": {
2525
- textDecoration: "underline",
2526
- },
2527
- },
2528
1993
  CheckboxWrapper: {
2529
1994
  display: "flex",
2530
1995
  justifyContent: "flex-start",
@@ -2538,7 +2003,7 @@ const style$3 = {
2538
2003
  fontSize: "var(--sl-font-size-small)",
2539
2004
  },
2540
2005
  PageDescriptionText: {
2541
- color: "var(--sl-color-neutral-500)",
2006
+ color: "var(--sqm-text-subdued)",
2542
2007
  fontSize: "var(--sl-font-size-medium)",
2543
2008
  },
2544
2009
  Dialog: {
@@ -2564,41 +2029,38 @@ const style$3 = {
2564
2029
  },
2565
2030
  DialogButton: { margin: "auto", width: "100%" },
2566
2031
  };
2567
- const sheet$3 = JSS.createStyleSheet(style$3);
2568
- const styleString$3 = sheet$3.toString();
2569
- const vanillaStyle$2 = `
2570
- :host{
2571
- display: block;
2572
- }
2573
- * {
2574
- margin: 0;
2575
- padding: 0;
2576
- box-sizing: border-box;
2577
- }
2032
+ const sheet$2 = JSS.createStyleSheet(style$2);
2033
+ const styleString$2 = sheet$2.toString();
2034
+ const vanillaStyle$1 = `
2035
+ :host{
2036
+ display: block;
2037
+ }
2578
2038
 
2579
- p {
2580
- line-height: 18px;
2581
- color: var(--sl-color-gray-800);
2582
- font-size: var(--sl-font-size-small);
2583
- }
2039
+ * {
2040
+ margin: 0;
2041
+ padding: 0;
2042
+ box-sizing: border-box;
2043
+ }
2584
2044
 
2585
- a {
2586
- cursor: pointer;
2587
- }
2045
+ a {
2046
+ color: inherit;
2047
+ text-decoration: underline;
2048
+ cursor: pointer;
2049
+ }
2588
2050
 
2589
2051
 
2590
2052
  `;
2591
2053
  const DocusignFormView = (props) => {
2592
2054
  var _a;
2593
2055
  const { states, states: { formState, documentTypeString }, callbacks, text, slots, } = props;
2594
- const { classes } = sheet$3;
2056
+ const { classes } = sheet$2;
2595
2057
  return (index.h("div", { class: classes.Container },
2596
2058
  index.h("style", { type: "text/css" },
2597
- styleString$3,
2598
- vanillaStyle$2),
2599
- 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 },
2600
2062
  index.h("div", { class: classes.ModalTitleContainer, slot: "label" },
2601
- 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)" } }),
2602
2064
  index.h("h2", { style: { fontSize: "var(--sl-font-size-large)" } }, text.modalTitle)),
2603
2065
  index.h("p", null, global.intl.formatMessage({
2604
2066
  id: "modalText",
@@ -2606,30 +2068,26 @@ const DocusignFormView = (props) => {
2606
2068
  }, {
2607
2069
  br: index.h("br", null),
2608
2070
  })),
2609
- 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)),
2610
2072
  index.h("div", { class: classes.TextContainer },
2611
2073
  index.h("div", null,
2612
2074
  !states.hideSteps && (index.h("p", null, global.intl.formatMessage({
2613
2075
  id: "formStep",
2614
2076
  defaultMessage: text.formStep,
2615
- }, { step: states.step, count: FORM_STEPS }))),
2077
+ }, { step: states.step, count: data.FORM_STEPS }))),
2616
2078
  index.h("h3", null, text.taxForm),
2617
2079
  index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
2618
2080
  states.loadingError && (index.h("div", null,
2619
- index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$3.classes.ErrorAlertContainer },
2620
- index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
2621
- index.h("strong", null, text.error.loadingErrorAlertHeader),
2622
- index.h("br", null),
2081
+ index.h("sqm-form-message", { type: "error" },
2082
+ index.h("p", { part: "alert-title" }, text.error.loadingErrorAlertHeader),
2623
2083
  global.intl.formatMessage({
2624
2084
  id: "loadingErrorAlertDescription",
2625
2085
  defaultMessage: text.error.loadingErrorAlertDescription,
2626
2086
  }, {
2627
2087
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
2628
2088
  })))),
2629
- ((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$3.classes.ErrorAlertContainer },
2630
- index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
2631
- index.h("strong", null, text.error.generalTitle),
2632
- index.h("br", null),
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),
2633
2091
  global.intl.formatMessage({
2634
2092
  id: "generalDescription",
2635
2093
  defaultMessage: text.error.generalDescription,
@@ -2689,7 +2147,7 @@ const DocusignForm = class {
2689
2147
  * @uiName W-8 BEN-E tax form description
2690
2148
  * @uiWidget textArea
2691
2149
  */
2692
- 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.";
2693
2151
  /**
2694
2152
  * This appears inside the Docusign frame.
2695
2153
  * @uiName Docusign session expired messag
@@ -2772,7 +2230,7 @@ const DocusignForm = class {
2772
2230
  * @uiName Information modal button text
2773
2231
  */
2774
2232
  this.modalButtonText = "I understand";
2775
- stencilHooks_module.h$1(this);
2233
+ domContextHooks_module.h$1(this);
2776
2234
  }
2777
2235
  disconnectedCallback() { }
2778
2236
  getTextProps() {
@@ -2809,11 +2267,11 @@ const DocusignForm = class {
2809
2267
  get el() { return index.getElement(this); }
2810
2268
  };
2811
2269
  function useDocusignFormDemo(props) {
2812
- const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
2270
+ const setStep = index_module.En(data.TAX_CONTEXT_NAMESPACE);
2813
2271
  return cjs.cjs({
2814
2272
  text: props.getTextProps(),
2815
2273
  states: {
2816
- step: "4",
2274
+ step: "3",
2817
2275
  disabled: false,
2818
2276
  submitDisabled: false,
2819
2277
  loading: false,
@@ -2849,7 +2307,7 @@ const DemoDocusignIframe = ({ callbacks }) => {
2849
2307
  return (index.h("div", { style: {
2850
2308
  width: "100%",
2851
2309
  height: "600px",
2852
- background: "#fafafa",
2310
+ background: "inherit",
2853
2311
  display: "flex",
2854
2312
  justifyContent: "center",
2855
2313
  alignItems: "center",
@@ -2861,7 +2319,7 @@ const DemoDocusignIframe = ({ callbacks }) => {
2861
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")))));
2862
2320
  };
2863
2321
 
2864
- const style$4 = {
2322
+ const style$3 = {
2865
2323
  FormWrapper: {
2866
2324
  display: "flex",
2867
2325
  justifyContent: "flex-start",
@@ -2873,6 +2331,7 @@ const style$4 = {
2873
2331
  justifyContent: "flex-start",
2874
2332
  flexDirection: "column",
2875
2333
  gap: "var(--sl-spacing-medium)",
2334
+ marginBottom: "16px",
2876
2335
  "& sl-radio::part(base)": {
2877
2336
  alignItems: "start",
2878
2337
  },
@@ -2888,6 +2347,7 @@ const style$4 = {
2888
2347
  flexDirection: "column",
2889
2348
  gap: "var(--sl-spacing-xx-small)",
2890
2349
  fontSize: "var(--sl-font-size-small)",
2350
+ color: "var(--sqm-text)",
2891
2351
  },
2892
2352
  TitleContainer: {
2893
2353
  display: "flex",
@@ -2909,90 +2369,83 @@ const style$4 = {
2909
2369
  gap: "8px",
2910
2370
  },
2911
2371
  ErrorText: {
2912
- color: "var(--sl-color-danger-500)",
2372
+ color: "var(--sqm-danger-color-text)",
2913
2373
  marginTop: "10px",
2914
2374
  },
2915
2375
  DescriptionText: {
2916
- color: "var(--sl-color-neutral-500)",
2376
+ color: "var(--sqm-text-subdued)",
2917
2377
  },
2918
- SecondaryBtn: {
2919
- "&::part(base)": {
2920
- color: "var(--sl-color-gray-800) !important",
2921
- },
2378
+ InfoWarningIcon: {
2379
+ height: "26px",
2380
+ width: "26px",
2922
2381
  },
2923
- AlertContainer: {
2924
- "&::part(base)": {
2925
- backgroundColor: "var(--sl-color-red-100)",
2926
- borderTop: "none",
2927
- padding: "0 16px",
2928
- },
2929
- "& sl-icon::part(base)": {
2930
- color: "var(--sl-color-danger-500)",
2931
- },
2382
+ PageDescriptionText: {
2383
+ color: "var(--sqm-text-subdued)",
2384
+ fontSize: "var(--sl-font-size-medium)",
2385
+ marginBottom: "var(--sl-spacing-small)",
2932
2386
  },
2933
- PartnerAlertContainer: {
2387
+ PrimaryButton: {
2934
2388
  "&::part(base)": {
2935
- backgroundColor: "var(--sl-color-sky-100)",
2936
- borderTop: "none",
2937
- 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)",
2938
2393
  },
2939
- "& sl-icon::part(base)": {
2940
- 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)",
2941
2398
  },
2942
2399
  },
2943
- InfoAlert: {
2944
- marginTop: "var(--sl-spacing-large)",
2400
+ SecondaryButton: {
2945
2401
  "&::part(base)": {
2946
- backgroundColor: "transparent",
2947
- borderTop: "none",
2948
- padding: "0px",
2949
- border: "none",
2950
- },
2951
- "&::part(message)": {
2952
- alignItems: "center",
2953
- padding: "var(--sl-spacing-small)",
2954
- whiteSpace: "nowrap",
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",
2955
2409
  },
2956
- "& sl-icon::part(base)": {
2957
- 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)",
2958
2414
  },
2959
2415
  },
2960
- InfoWarningIcon: {
2961
- height: "26px",
2962
- width: "26px",
2963
- },
2964
- PageDescriptionText: {
2965
- color: "var(--sl-color-neutral-500)",
2966
- fontSize: "var(--sl-font-size-medium)",
2967
- marginBottom: "var(--sl-spacing-small)",
2968
- },
2969
2416
  };
2970
- const sheet$4 = JSS.createStyleSheet(style$4);
2971
- const styleString$4 = sheet$4.toString();
2972
- const vanillaStyle$3 = `
2417
+ const sheet$3 = JSS.createStyleSheet(style$3);
2418
+ const styleString$3 = sheet$3.toString();
2419
+ const vanillaStyle$2 = `
2973
2420
  :host{
2974
2421
  display: block;
2975
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
+
2976
2434
  * {
2977
2435
  margin: 0;
2978
2436
  padding: 0;
2979
2437
  box-sizing: border-box;
2980
2438
  }
2981
2439
 
2982
- p {
2983
- line-height: 18px;
2984
- color: var(--sl-color-gray-800);
2985
- font-size: var(--sl-font-size-small);
2986
- }
2987
2440
  `;
2988
2441
  const IndirectTaxFormView = (props) => {
2989
2442
  var _a;
2990
2443
  const { states, states: { formState }, callbacks, text, refs, slots, } = props;
2991
- const { classes } = sheet$4;
2444
+ const { classes } = sheet$3;
2992
2445
  return (index.h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
2993
2446
  index.h("style", { type: "text/css" },
2994
- styleString$4,
2995
- vanillaStyle$3),
2447
+ styleString$3,
2448
+ vanillaStyle$2),
2996
2449
  index.h("div", { class: classes.TextContainer },
2997
2450
  index.h("div", null,
2998
2451
  !states.hideSteps && (index.h("p", null,
@@ -3000,35 +2453,29 @@ const IndirectTaxFormView = (props) => {
3000
2453
  global.intl.formatMessage({
3001
2454
  id: "formStep",
3002
2455
  defaultMessage: text.formStep,
3003
- }, { step: states.step, count: FORM_STEPS }))),
2456
+ }, { step: states.step, count: data.FORM_STEPS }))),
3004
2457
  index.h("h3", null, text.indirectTax),
3005
2458
  index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription),
3006
2459
  index.h("p", { class: classes.DescriptionText }, text.indirectTaxDescription)),
3007
2460
  states.loadingError && (index.h("div", null,
3008
- index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.AlertContainer },
3009
- index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
3010
- index.h("strong", null, text.error.loadingErrorAlertHeader),
3011
- index.h("br", null),
2461
+ index.h("sqm-form-message", { type: "error" },
2462
+ index.h("p", { part: "alert-title" }, text.error.loadingErrorAlertHeader),
3012
2463
  global.intl.formatMessage({
3013
2464
  id: "loadingErrorAlertDescription",
3014
2465
  defaultMessage: text.error.loadingErrorAlertDescription,
3015
2466
  }, {
3016
2467
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
3017
2468
  })))),
3018
- ((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$4.classes.AlertContainer },
3019
- index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
3020
- index.h("strong", null, text.error.generalTitle),
3021
- index.h("br", null),
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),
3022
2471
  global.intl.formatMessage({
3023
2472
  id: "generalDescription",
3024
2473
  defaultMessage: text.error.generalDescription,
3025
2474
  }, {
3026
2475
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
3027
2476
  }))),
3028
- states.isPartner && (index.h("sl-alert", { type: "primary", open: true, class: sheet$4.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
3029
- index.h("sl-icon", { slot: "icon", name: "info-circle" }),
3030
- index.h("strong", null, text.isPartnerAlertHeader),
3031
- index.h("br", null),
2477
+ states.isPartner && (index.h("sqm-form-message", { type: "info" },
2478
+ index.h("p", { part: "alert-title" }, text.isPartnerAlertHeader),
3032
2479
  global.intl.formatMessage({
3033
2480
  id: "isPartnerAlertDescription",
3034
2481
  defaultMessage: text.isPartnerAlertDescription,
@@ -3049,17 +2496,15 @@ const IndirectTaxFormView = (props) => {
3049
2496
  text.otherRegion,
3050
2497
  index.h("p", { class: classes.DescriptionText }, text.otherRegionSubtext))),
3051
2498
  slots.registeredInDifferentCountryDetailsSlot)),
3052
- index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "primary", open: true, class: classes.InfoAlert },
3053
- index.h("sl-icon", { class: classes.InfoWarningIcon, slot: "icon", name: "exclamation-triangle" }),
3054
- global.intl.formatMessage({
3055
- id: "cannotChangeInfoAlert",
3056
- defaultMessage: text.cannotChangeInfoAlert,
3057
- }, {
3058
- supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
3059
- })),
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
+ })),
3060
2505
  index.h("div", { class: classes.BtnContainer },
3061
- index.h("sl-button", { type: "primary", disabled: states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton),
3062
- index.h("sl-button", { class: classes.SecondaryBtn, type: "text", disabled: states.disabled, onClick: callbacks.onBack, exportparts: "base: secondarybutton-base" }, text.backButton))))));
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))))));
3063
2508
  };
3064
2509
 
3065
2510
  const CONNECT_PARTNER = index_module.dist.gql `
@@ -3102,30 +2547,34 @@ function useIndirectTaxForm(props) {
3102
2547
  var _a, _b, _c, _d, _e;
3103
2548
  const user = index_module.J();
3104
2549
  const locale = index_module.L();
3105
- const formRef = stencilHooks_module.useRef(null);
3106
- const context = index_module.Fn(TAX_FORM_CONTEXT_NAMESPACE);
3107
- const [step, setStep] = index_module.Pn(TAX_CONTEXT_NAMESPACE);
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);
3108
2553
  const [connectImpactPartner, { loading: connectLoading, errors: connectErrors },] = index_module.$e(CONNECT_PARTNER);
3109
- const userForm = index_module.Fn(USER_FORM_CONTEXT_NAMESPACE);
3110
- const { data: userData, refetch, errors: userError, } = index_module.$n(USER_QUERY_NAMESPACE);
3111
- const { data: _countriesRes, loading: countriesLoading } = index_module.$n(COUNTRIES_QUERY_NAMESPACE);
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);
3112
2557
  const intlLocale = (locale === null || locale === void 0 ? void 0 : locale.replace("_", "-")) || "en";
3113
- const _countries = stencilHooks_module.useMemo(() => { var _a, _b; return (_b = (_a = _countriesRes === null || _countriesRes === void 0 ? void 0 : _countriesRes.impactPayoutCountries) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.map((country) => sqmInvoiceTableView.getCountryObj({ countryCode: country.countryCode, locale: intlLocale })); }, [(_a = _countriesRes === null || _countriesRes === void 0 ? void 0 : _countriesRes.impactPayoutCountries) === null || _a === void 0 ? void 0 : _a.data]);
3114
- const [loading, setLoading] = stencilHooks_module.useState(false);
3115
- const [formState, setFormState] = stencilHooks_module.useState({});
3116
- const [errors, setErrors] = stencilHooks_module.useState({});
3117
- const [countrySearch, setCountrySearch] = stencilHooks_module.useState("");
3118
- const [filteredCountries, setFilteredCountries] = stencilHooks_module.useState(_countries || []);
3119
- const [option, setOption] = stencilHooks_module.useState("notRegistered");
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");
3120
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;
3121
- stencilHooks_module.useEffect(() => {
2566
+ domContextHooks_module.useEffect(() => {
2567
+ // reset redirect hash
2568
+ window.location.hash = "";
2569
+ }, []);
2570
+ domContextHooks_module.useEffect(() => {
3122
2571
  var _a;
3123
2572
  if (!((_a = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _a === void 0 ? void 0 : _a.indirectTaxCountryCode))
3124
2573
  return;
3125
2574
  const _option = getOption(_countries, publisher.taxInformation.indirectTaxCountryCode);
3126
2575
  setOption(_option);
3127
2576
  }, [publisher, _countries]);
3128
- stencilHooks_module.useEffect(() => {
2577
+ domContextHooks_module.useEffect(() => {
3129
2578
  if (countrySearch.trim() === "") {
3130
2579
  setFilteredCountries(_countries || []);
3131
2580
  }
@@ -3133,7 +2582,7 @@ function useIndirectTaxForm(props) {
3133
2582
  setFilteredCountries((_countries === null || _countries === void 0 ? void 0 : _countries.filter((c) => c.displayName.toLowerCase().includes(countrySearch.toLowerCase()))) || []);
3134
2583
  }
3135
2584
  }, [countrySearch, _countries]);
3136
- stencilHooks_module.useEffect(() => {
2585
+ domContextHooks_module.useEffect(() => {
3137
2586
  var _a, _b;
3138
2587
  const user = userData === null || userData === void 0 ? void 0 : userData.user;
3139
2588
  if (!user)
@@ -3225,11 +2674,9 @@ function useIndirectTaxForm(props) {
3225
2674
  await refetch();
3226
2675
  const resultPublisher = (_e = (_d = (_c = result
3227
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;
3228
- 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);
3229
2678
  // Fire form change event
3230
2679
  window.dispatchEvent(new Event(usePayoutStatus.TAX_FORM_UPDATED_EVENT_KEY));
3231
- // reset redirect hash
3232
- window.location.hash = "";
3233
2680
  if ((resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) &&
3234
2681
  !hasValidCurrentDocument) {
3235
2682
  // Go to docusign form
@@ -3282,10 +2729,10 @@ function useIndirectTaxForm(props) {
3282
2729
  })),
3283
2730
  },
3284
2731
  data: {
3285
- esRegions: sqmInvoiceTableView.INDIRECT_TAX_SPAIN_REGIONS,
2732
+ esRegions: IndirectTaxDetailsView.INDIRECT_TAX_SPAIN_REGIONS,
3286
2733
  countries: filteredCountries,
3287
2734
  allCountries: _countries,
3288
- provinces: sqmInvoiceTableView.INDIRECT_TAX_PROVINCES,
2735
+ provinces: IndirectTaxDetailsView.INDIRECT_TAX_PROVINCES,
3289
2736
  },
3290
2737
  text: props.getTextProps(),
3291
2738
  refs: {
@@ -3452,7 +2899,7 @@ const IndirectTaxForm = class {
3452
2899
  * @uiName Page description
3453
2900
  */
3454
2901
  this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
3455
- stencilHooks_module.h$1(this);
2902
+ domContextHooks_module.h$1(this);
3456
2903
  }
3457
2904
  disconnectedCallback() { }
3458
2905
  getTextProps() {
@@ -3487,7 +2934,7 @@ const IndirectTaxForm = class {
3487
2934
  const props = index_module.isDemo()
3488
2935
  ? useDemoIndirectTaxForm(this)
3489
2936
  : useIndirectTaxForm(this);
3490
- const registeredInDifferentCountryDetailsSlot = (index.h(sqmInvoiceTableView.OtherRegionSlotView, { states: {
2937
+ const registeredInDifferentCountryDetailsSlot = (index.h(IndirectTaxDetailsView.OtherRegionSlotView, { states: {
3491
2938
  hide: props.states.formState.checked !== "otherRegion",
3492
2939
  disabled: props.states.disabled || props.states.isPartner,
3493
2940
  formState: props.slotProps.formState,
@@ -3505,9 +2952,9 @@ const IndirectTaxForm = class {
3505
2952
  }
3506
2953
  };
3507
2954
  function useDemoIndirectTaxForm(props) {
3508
- const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
3509
- const [option, setOption] = stencilHooks_module.useState(null);
3510
- 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({});
3511
2958
  return cjs.cjs({
3512
2959
  states: {
3513
2960
  step: "2",
@@ -3546,7 +2993,7 @@ function useDemoIndirectTaxForm(props) {
3546
2993
  setCountrySearch: (c) => console.log(c),
3547
2994
  },
3548
2995
  data: {
3549
- esRegions: sqmInvoiceTableView.INDIRECT_TAX_SPAIN_REGIONS,
2996
+ esRegions: IndirectTaxDetailsView.INDIRECT_TAX_SPAIN_REGIONS,
3550
2997
  countries: [
3551
2998
  {
3552
2999
  countryCode: "CA",
@@ -3565,7 +3012,7 @@ function useDemoIndirectTaxForm(props) {
3565
3012
  displayName: "United States",
3566
3013
  },
3567
3014
  ],
3568
- provinces: sqmInvoiceTableView.INDIRECT_TAX_PROVINCES,
3015
+ provinces: IndirectTaxDetailsView.INDIRECT_TAX_PROVINCES,
3569
3016
  },
3570
3017
  text: props.getTextProps(),
3571
3018
  refs: {
@@ -3587,7 +3034,27 @@ function useDemoIndirectTaxForm(props) {
3587
3034
  }, props.demoData || {}, { arrayMerge: (_, a) => a });
3588
3035
  }
3589
3036
 
3590
- 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");
3591
3058
  const CSS_NAMESPACE = "sqm-invoice-table";
3592
3059
  const GET_INVOICES = index_module.dist.gql `
3593
3060
  query getUserTaxInfo($limit: Int!, $offset: Int!) {
@@ -3617,7 +3084,7 @@ function useInvoiceTable(props, emptyElement, loadingElement) {
3617
3084
  var _a;
3618
3085
  const user = index_module.J();
3619
3086
  const locale = index_module.L();
3620
- const [content, setContent] = stencilHooks_module.useReducer((state, next) => ({
3087
+ const [content, setContent] = domContextHooks_module.useReducer((state, next) => ({
3621
3088
  ...state,
3622
3089
  ...next,
3623
3090
  }), {
@@ -3661,7 +3128,7 @@ function useInvoiceTable(props, emptyElement, loadingElement) {
3661
3128
  // Set the content to render and finish loading components
3662
3129
  setContent({ columns, loading: false, page: states.currentPage });
3663
3130
  }
3664
- stencilHooks_module.useEffect(() => {
3131
+ domContextHooks_module.useEffect(() => {
3665
3132
  setContent({ loading: true });
3666
3133
  invoicesData && getComponentData(components);
3667
3134
  }, [invoicesData, components, tick]);
@@ -3735,26 +3202,6 @@ async function tryMethod(c, callback) {
3735
3202
  }
3736
3203
  }
3737
3204
 
3738
- const mockInvoiceData = (count = 4) => {
3739
- const data = [...Array(count)].map(() => getMockData());
3740
- return { data };
3741
- };
3742
- const getMockData = () => {
3743
- const today = luxon.luxon.DateTime.now();
3744
- const invoiceId = Math.random().toString(36).slice(2, 12);
3745
- const earnings = Math.floor(Math.random() * 100) + 1;
3746
- const indirectTax = Math.round(earnings * 0.2);
3747
- return {
3748
- downloadUrl: "https://example.com",
3749
- dateCreated: today.toMillis(),
3750
- invoiceId,
3751
- program: "my-program",
3752
- earnings: `$${earnings}.00`,
3753
- indirectTax: `$${indirectTax}.00`,
3754
- netEarnings: `$${earnings - indirectTax}.00`,
3755
- };
3756
- };
3757
-
3758
3205
  const InvoiceTable = class {
3759
3206
  constructor(hostRef) {
3760
3207
  index.registerInstance(this, hostRef);
@@ -3788,7 +3235,7 @@ const InvoiceTable = class {
3788
3235
  this.emptyStateHeader = "View your invoice details";
3789
3236
  /** @uiName Empty invoice table description */
3790
3237
  this.emptyStateText = "Refer a friend to view the status of your invoices and rewards earned";
3791
- stencilHooks_module.h$1(this);
3238
+ domContextHooks_module.h$1(this);
3792
3239
  }
3793
3240
  disconnectedCallback() { }
3794
3241
  render() {
@@ -3798,7 +3245,7 @@ const InvoiceTable = class {
3798
3245
  ? useInvoiceTableDemo(this, empty, loading)
3799
3246
  : useInvoiceTable(this, empty, loading);
3800
3247
  reRender.useRequestRerender([this.perPage]);
3801
- 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 })));
3802
3249
  }
3803
3250
  };
3804
3251
  function EmptySlot(props) {
@@ -3811,7 +3258,7 @@ function LoadingRow() {
3811
3258
  return (index.h("sqm-table-row", null, index.h("sqm-table-cell", { colspan: 6 }, index.h("sl-skeleton", null))));
3812
3259
  }
3813
3260
  function useInvoiceTableDemo(props, emptyElement, loadingElement) {
3814
- const [content, setContent] = stencilHooks_module.useReducer((state, next) => ({
3261
+ const [content, setContent] = domContextHooks_module.useReducer((state, next) => ({
3815
3262
  ...state,
3816
3263
  ...next,
3817
3264
  }), {
@@ -3821,7 +3268,7 @@ function useInvoiceTableDemo(props, emptyElement, loadingElement) {
3821
3268
  page: 0,
3822
3269
  });
3823
3270
  const tick = reRender.useRerenderListener();
3824
- 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]);
3825
3272
  const components = useChildElements.useChildElements();
3826
3273
  async function getComponentData(components) {
3827
3274
  const componentData = mockData.data.slice(0, props.perPage);
@@ -3864,7 +3311,7 @@ function useInvoiceTableDemo(props, emptyElement, loadingElement) {
3864
3311
  // Set the content to render and finish loading components
3865
3312
  setContent({ columns, loading: false, page: 0 });
3866
3313
  }
3867
- stencilHooks_module.useEffect(() => {
3314
+ domContextHooks_module.useEffect(() => {
3868
3315
  setContent({ loading: true });
3869
3316
  (mockData === null || mockData === void 0 ? void 0 : mockData.data) && getComponentData(components);
3870
3317
  }, [mockData === null || mockData === void 0 ? void 0 : mockData.data, components, tick]);
@@ -3900,22 +3347,10 @@ function useInvoiceTableDemo(props, emptyElement, loadingElement) {
3900
3347
  return demoProps;
3901
3348
  }
3902
3349
 
3903
- const InvoiceTableDataCell = class {
3904
- constructor(hostRef) {
3905
- index.registerInstance(this, hostRef);
3906
- this.ignored = true;
3907
- stencilHooks_module.h$1(this);
3908
- }
3909
- disconnectedCallback() { }
3910
- render() {
3911
- return this.data;
3912
- }
3913
- };
3914
-
3915
3350
  const InvoiceTableDataColumn = class {
3916
3351
  constructor(hostRef) {
3917
3352
  index.registerInstance(this, hostRef);
3918
- stencilHooks_module.h$1(this);
3353
+ domContextHooks_module.h$1(this);
3919
3354
  }
3920
3355
  disconnectedCallback() { }
3921
3356
  async renderCell(data) {
@@ -3930,27 +3365,10 @@ const InvoiceTableDataColumn = class {
3930
3365
  }
3931
3366
  };
3932
3367
 
3933
- const RewardTableDateCell = class {
3934
- constructor(hostRef) {
3935
- index.registerInstance(this, hostRef);
3936
- this.ignored = true;
3937
- this.locale = "en";
3938
- stencilHooks_module.h$1(this);
3939
- }
3940
- disconnectedCallback() { }
3941
- render() {
3942
- var _a, _b;
3943
- const date = !this.date
3944
- ? "-"
3945
- : (_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);
3946
- return date;
3947
- }
3948
- };
3949
-
3950
3368
  const InvoiceTableDateColumn = class {
3951
3369
  constructor(hostRef) {
3952
3370
  index.registerInstance(this, hostRef);
3953
- stencilHooks_module.h$1(this);
3371
+ domContextHooks_module.h$1(this);
3954
3372
  }
3955
3373
  disconnectedCallback() { }
3956
3374
  async renderCell(data, options) {
@@ -3965,25 +3383,10 @@ const InvoiceTableDateColumn = class {
3965
3383
  }
3966
3384
  };
3967
3385
 
3968
- const InvoiceTableDownloadCell = class {
3969
- constructor(hostRef) {
3970
- index.registerInstance(this, hostRef);
3971
- this.ignored = true;
3972
- stencilHooks_module.h$1(this);
3973
- }
3974
- disconnectedCallback() { }
3975
- render() {
3976
- const vanillaStyle = `svg:hover, svg:hover * {
3977
- cursor: pointer;
3978
- }`;
3979
- 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" }))))));
3980
- }
3981
- };
3982
-
3983
3386
  const InvoiceTableGenericColumn = class {
3984
3387
  constructor(hostRef) {
3985
3388
  index.registerInstance(this, hostRef);
3986
- stencilHooks_module.h$1(this);
3389
+ domContextHooks_module.h$1(this);
3987
3390
  }
3988
3391
  disconnectedCallback() { }
3989
3392
  async renderCell(data) {
@@ -4002,17 +3405,17 @@ const PayPalIcon = () => (index.h("svg", { xmlns: "http://www.w3.org/2000/svg",
4002
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" }),
4003
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" })));
4004
3407
 
4005
- const style$5 = {
3408
+ const style$4 = {
4006
3409
  CardContainer: {
4007
3410
  display: "grid",
4008
3411
  gridTemplateColumns: "1fr",
4009
3412
  gridGap: "var(--sl-spacing-large)",
4010
- background: "var(--sl-color-neutral-0)",
3413
+ background: "inherit",
4011
3414
  boxShadow: "0px 2px 4px rgba(28, 28, 33, 0.12)",
4012
- borderRadius: "4px",
3415
+ borderRadius: "var(--sqm-border-radius-normal)",
4013
3416
  padding: "var(--sl-spacing-large)",
4014
3417
  minHeight: "150px",
4015
- border: "1px solid var(--sl-color-gray-200)",
3418
+ border: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
4016
3419
  maxWidth: "450px",
4017
3420
  },
4018
3421
  StatusContainer: {
@@ -4022,7 +3425,7 @@ const style$5 = {
4022
3425
  },
4023
3426
  MainCurrencyLabel: {
4024
3427
  fontWeight: "var(--sl-font-weight-normal)",
4025
- color: "var(--sl-color-gray-500)",
3428
+ color: "var(--sqm-text-subdued)",
4026
3429
  },
4027
3430
  MainCurrency: {
4028
3431
  margin: 0,
@@ -4031,12 +3434,12 @@ const style$5 = {
4031
3434
  },
4032
3435
  SubduedRegularText: {
4033
3436
  fontSize: "var(--sl-font-size-small)",
4034
- color: "var(--sl-color-gray-500)",
3437
+ color: "var(--sqm-text-subdued)",
4035
3438
  margin: 0,
4036
3439
  width: "auto",
4037
3440
  },
4038
3441
  PaypalEmail: {
4039
- borderRight: "1px solid var(--sl-color-gray-200)",
3442
+ borderRight: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
4040
3443
  paddingRight: "var(--sl-spacing-small)",
4041
3444
  "@media (max-width: 499px)": {
4042
3445
  borderRight: "none",
@@ -4044,7 +3447,7 @@ const style$5 = {
4044
3447
  },
4045
3448
  },
4046
3449
  PaypalDetailsContainer: {
4047
- color: "var(--sl-color-gray-500)",
3450
+ color: "var(--sqm-text-subdued)",
4048
3451
  display: "flex",
4049
3452
  gap: "var(--sl-spacing-small)",
4050
3453
  justifyContent: "flex-start",
@@ -4065,7 +3468,7 @@ const style$5 = {
4065
3468
  },
4066
3469
  },
4067
3470
  AccountDetailsContainer: {
4068
- color: "var(--sl-color-gray-500)",
3471
+ color: "var(--sqm-text-subdued)",
4069
3472
  display: "flex",
4070
3473
  gap: "var(--sl-spacing-small)",
4071
3474
  justifyContent: "flex-start",
@@ -4078,7 +3481,7 @@ const style$5 = {
4078
3481
  gap: "var(--sl-spacing-xx-small) var(--sl-spacing-small)",
4079
3482
  paddingTop: "var(--sq-spacing-xx-small)",
4080
3483
  "& > :not(:last-child)": {
4081
- borderRight: "1px solid var(--sl-color-gray-200)",
3484
+ borderRight: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
4082
3485
  },
4083
3486
  "& > :nth-child(3)": {
4084
3487
  border: "none",
@@ -4095,7 +3498,7 @@ const style$5 = {
4095
3498
  },
4096
3499
  W9Container: {
4097
3500
  paddingTop: "var(--sl-spacing-large)",
4098
- borderTop: "1px solid var(--sl-color-gray-200)",
3501
+ borderTop: "var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",
4099
3502
  },
4100
3503
  SkeletonOne: {
4101
3504
  width: "25%",
@@ -4109,25 +3512,21 @@ const style$5 = {
4109
3512
  width: "50%",
4110
3513
  height: "34px",
4111
3514
  },
4112
- Alert: {
3515
+ SuccessBadge: {
4113
3516
  "&::part(base)": {
4114
- backgroundColor: "var(--sl-color-warning-100)",
4115
- border: "1px solid var(--sl-color-warning-200)",
4116
- padding: "0 16px",
4117
- },
4118
- "& sl-icon": {
4119
- margin: 0,
4120
- },
4121
- "& sl-icon::part(base)": {
4122
- color: "var(--sl-color-warning-500)",
4123
- margin: 0,
3517
+ textAlign: "center",
3518
+ whiteSpace: "pre-line",
3519
+ background: "var(--sqm-success-color-icon)",
3520
+ color: "var(--sl-color-white)",
4124
3521
  },
4125
3522
  },
4126
- AlertContent: {
4127
- display: "flex",
4128
- alignItems: "flex-start",
4129
- justifyContent: "flex-start",
4130
- 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
+ },
4131
3530
  },
4132
3531
  Container: {
4133
3532
  display: "flex",
@@ -4136,7 +3535,7 @@ const style$5 = {
4136
3535
  },
4137
3536
  };
4138
3537
  function PayoutDetailsCardView(props) {
4139
- const sheet = JSS.createStyleSheet(style$5);
3538
+ const sheet = JSS.createStyleSheet(style$4);
4140
3539
  const styleString = sheet.toString();
4141
3540
  const { classes } = sheet;
4142
3541
  const { states, text } = props;
@@ -4150,13 +3549,14 @@ function PayoutDetailsCardView(props) {
4150
3549
  };
4151
3550
  const renderStatusBadge = (status, statusBadgeText) => {
4152
3551
  const badgeType = status === "nextPayout" ? "success" : "primary";
3552
+ const badgeClass = badgeType === "success" ? classes.SuccessBadge : classes.PrimaryBadge;
4153
3553
  const statusText = global.intl.formatMessage({
4154
3554
  id: "badgeText",
4155
3555
  defaultMessage: statusBadgeText,
4156
3556
  }, {
4157
3557
  badgeText: status,
4158
3558
  });
4159
- return (index.h("sl-badge", { pill: true, type: badgeType }, statusText));
3559
+ return (index.h("sl-badge", { pill: true, class: badgeClass }, statusText));
4160
3560
  };
4161
3561
  const thresholdText = global.intl.formatMessage({
4162
3562
  id: "thresholdText",
@@ -4187,1417 +3587,127 @@ function PayoutDetailsCardView(props) {
4187
3587
 
4188
3588
  function usePayoutDetailsCard(props) {
4189
3589
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
4190
- const { data, loading } = index_module.$n(USER_QUERY_NAMESPACE);
4191
- 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;
4192
3592
  function getPayoutDetailedStatusText(paymentDay) {
4193
3593
  var _a;
4194
3594
  const currentDay = luxon.luxon.DateTime.now().day;
4195
3595
  if (paymentDay === "1") {
4196
3596
  return currentDay === 1
4197
3597
  ? luxon.luxon.DateTime.now().toFormat("LLL dd, yyyy")
4198
- : luxon.luxon.DateTime.now()
4199
- .plus({ month: 1 })
4200
- .startOf("month")
4201
- .toFormat("LLL dd, yyyy");
4202
- }
4203
- else if (paymentDay === "15") {
4204
- return currentDay <= 15
4205
- ? luxon.luxon.DateTime.now()
4206
- .plus({ day: 15 - currentDay })
4207
- .toFormat("LLL dd, yyyy")
4208
- : luxon.luxon.DateTime.now()
4209
- .plus({ month: 1 })
4210
- .startOf("month")
4211
- .plus({ day: 14 })
4212
- .toFormat("LLL dd, yyyy");
4213
- }
4214
- else {
4215
- global.intl.formatMessage({
4216
- id: `nextPayoutBalance`,
4217
- defaultMessage: props.thresholdPayoutText,
4218
- }, {
4219
- thresholdBalance: (_a = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _a === void 0 ? void 0 : _a.paymentThreshold,
4220
- });
4221
- }
4222
- }
4223
- const paymentDay = getPayoutDetailedStatusText((_c = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _c === void 0 ? void 0 : _c.paymentDay);
4224
- const isPayoutToday = luxon.luxon.DateTime.now().toFormat("LLL dd, yyyy") === paymentDay;
4225
- return {
4226
- states: {
4227
- loading,
4228
- 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}`
4229
- : undefined,
4230
- balance: (_f = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _f === void 0 ? void 0 : _f.balance,
4231
- badgeStatus: ((_g = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _g === void 0 ? void 0 : _g.paymentSchedulingType) !== "FIXED_DAY"
4232
- ? "thresholdPayout"
4233
- : isPayoutToday
4234
- ? "payoutToday"
4235
- : "nextPayout",
4236
- payoutType: (_h = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _h === void 0 ? void 0 : _h.paymentMethod,
4237
- error: (_j = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _j === void 0 ? void 0 : _j.hold,
4238
- paypalEmailAddress: (_k = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _k === void 0 ? void 0 : _k.paypalEmailAddress,
4239
- cardNumberPreview: (_l = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _l === void 0 ? void 0 : _l.bankAccountNumber,
4240
- nextPayoutDate: paymentDay,
4241
- },
4242
- text: props.getTextProps(),
4243
- };
4244
- }
4245
-
4246
- const PayoutDetailsCard = class {
4247
- constructor(hostRef) {
4248
- index.registerInstance(this, hostRef);
4249
- /**
4250
- * Badge text indicating payout status
4251
- * @uiName Payout badge status text
4252
- */
4253
- this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
4254
- /**
4255
- * Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
4256
- * @uiName Payout schedule by threshold text
4257
- */
4258
- this.thresholdPayoutText = "Next payout occurs when balance is {thresholdBalance}";
4259
- /**
4260
- * Shown before the participant’s bank account information.
4261
- * @uiName Bank account field label
4262
- */
4263
- this.accountText = "Account";
4264
- /**
4265
- * Text displayed for existing publishers that do not have saved banking information.
4266
- * @uiName Payout missing information subtext
4267
- */
4268
- this.payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
4269
- stencilHooks_module.h$1(this);
4270
- }
4271
- disconnectedCallback() { }
4272
- getTextProps() {
4273
- const props = utils.getProps(this);
4274
- return {
4275
- ...props,
4276
- };
4277
- }
4278
- render() {
4279
- const props = index_module.isDemo()
4280
- ? useDemoPayoutDetailsCard(this)
4281
- : usePayoutDetailsCard(this);
4282
- return (index.h(index.Host, null, index.h(PayoutDetailsCardView, { text: props.text, states: props.states })));
4283
- }
4284
- };
4285
- function useDemoPayoutDetailsCard(props) {
4286
- return cjs.cjs({
4287
- states: {
4288
- loading: false,
4289
- error: false,
4290
- thresholdBalance: "$50",
4291
- mainCurrency: { currencyText: "USD", amountText: "100.00" },
4292
- badgeStatus: "nextPayout",
4293
- payoutType: "BANK_TRANSFER",
4294
- nextPayoutDate: "March 14, 2024",
4295
- paypalEmailAddress: "joesmith@example.com",
4296
- otherCurrencies: false,
4297
- hasW9Pending: false,
4298
- hasDatePending: true,
4299
- cardNumberPreview: "XX2381",
4300
- balance: "20.00 USD",
4301
- },
4302
- text: props.getTextProps(),
4303
- }, props.demoData || {}, { arrayMerge: (_, a) => a });
4304
- }
4305
-
4306
- const TableCell = class {
4307
- constructor(hostRef) {
4308
- index.registerInstance(this, hostRef);
4309
- /** @uiName Column span */
4310
- this.colspan = 1;
4311
- /** @uiName Padding */
4312
- this.padding = "15px 10px";
4313
- }
4314
- render() {
4315
- return (index.h(index.Host, { style: { display: "contents" } }, index.h("td", { colSpan: this.colspan, style: { padding: this.padding } }, index.h("slot", null))));
4316
- }
4317
- };
4318
-
4319
- const TableRow = class {
4320
- constructor(hostRef) {
4321
- index.registerInstance(this, hostRef);
4322
- /**
4323
- * @uiName Border
4324
- */
4325
- this.border = "1px solid #EAEAEA";
4326
- }
4327
- render() {
4328
- return (index.h(index.Host, { style: { display: "contents" } }, index.h("tr", { style: { border: this.border } }, index.h("slot", null))));
4329
- }
4330
- };
4331
-
4332
- function getCurrentStep(user) {
4333
- var _a, _b;
4334
- if (!((_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.connected) || !((_b = user.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher)) {
4335
- return "/1";
4336
- }
4337
- const { requiredTaxDocumentType, currentTaxDocument, withdrawalSettings, brandedSignup, payoutsAccount, } = user.impactConnection.publisher;
4338
- // If they do have a required document, look at current document
4339
- if (requiredTaxDocumentType && !currentTaxDocument) {
4340
- // Specific to custom CASH setting,
4341
- if (payoutsAccount.hold &&
4342
- payoutsAccount.holdReasons.includes("NO_W9_DOCUMENT"))
4343
- return "/dashboard";
4344
- return "/3";
4345
- }
4346
- if (!withdrawalSettings && brandedSignup)
4347
- return "/4";
4348
- return "/dashboard";
4349
- }
4350
- function useTaxAndCash() {
4351
- var _a, _b, _c, _d, _e;
4352
- const host = index_module._();
4353
- const user = index_module.J();
4354
- const locale = index_module.L();
4355
- // State for current step of form
4356
- const [step, setStep] = index_module.In({
4357
- namespace: TAX_CONTEXT_NAMESPACE,
4358
- initialValue: "/loading",
4359
- });
4360
- // State for when to hide steps, or override certain actions
4361
- const [context, _setContext] = index_module.In({
4362
- namespace: TAX_FORM_CONTEXT_NAMESPACE,
4363
- initialValue: {},
4364
- });
4365
- // State to carry user form information into step 2
4366
- const [userFormContext, _setUserFormContext] = index_module.In({
4367
- namespace: USER_FORM_CONTEXT_NAMESPACE,
4368
- initialValue: {
4369
- firstName: undefined,
4370
- lastName: undefined,
4371
- email: undefined,
4372
- countryCode: undefined,
4373
- currency: undefined,
4374
- },
4375
- });
4376
- const [_currenciesContext, setCurrenciesContext] = index_module.In({
4377
- namespace: CURRENCIES_NAMESPACE,
4378
- initialValue: [],
4379
- });
4380
- const [_countriesContext, _setCountriesContext] = index_module.In({
4381
- namespace: COUNTRIES_NAMESPACE,
4382
- initialValue: [],
4383
- });
4384
- const [_sortedCountriesContext, setSortedCountriesContext] = index_module.In({
4385
- namespace: SORTED_COUNTRIES_NAMESPACE,
4386
- initialValue: [],
4387
- });
4388
- const { data, errors } = index_module.Sn({
4389
- namespace: USER_QUERY_NAMESPACE,
4390
- query: GET_USER,
4391
- skip: !user,
4392
- options: {
4393
- batch: false,
4394
- },
4395
- });
4396
- 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) ||
4397
- userFormContext.countryCode;
4398
- index_module.Sn({
4399
- namespace: COUNTRIES_QUERY_NAMESPACE,
4400
- query: GET_COUNTRIES,
4401
- skip: !user,
4402
- });
4403
- const { data: financeNetworkData, refetch } = index_module.Sn({
4404
- namespace: FINANCE_NETWORK_SETTINGS_NAMESPACE,
4405
- query: GET_FINANCE_NETWORK_SETTINGS,
4406
- skip: !user,
4407
- variables: {
4408
- filter: getFinanceNetworkFilter(),
4409
- },
4410
- });
4411
- const { data: currenciesData } = index_module.Sn({
4412
- namespace: CURRENCIES_QUERY_NAMESPACE,
4413
- query: GET_CURRENCIES,
4414
- skip: !user,
4415
- variables: {
4416
- locale,
4417
- },
4418
- });
4419
- const supportedCurrencies = stencilHooks_module.useMemo(() => {
4420
- var _a, _b;
4421
- // Filter out any currencies not supported by finance network settings
4422
- 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) => {
4423
- var _a, _b;
4424
- 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);
4425
- // Currency not in supported list
4426
- if (!currency)
4427
- return agg;
4428
- // Currency already added to list
4429
- if (agg.find((currency) => currency.currencyCode === settings.currency))
4430
- return agg;
4431
- // Currency not supported by selected country
4432
- if (userFormContext.countryCode &&
4433
- settings.countryCode !== countryCode)
4434
- return agg;
4435
- return [...agg, currency];
4436
- }, []);
4437
- return allValidCurrencies;
4438
- }, [financeNetworkData, countryCode]);
4439
- const intlLocale = (locale === null || locale === void 0 ? void 0 : locale.replace("_", "-")) || "en";
4440
- const sortByName = (a, b) => a.displayName < b.displayName ? -1 : 1;
4441
- const paymentOptions = (_d = financeNetworkData === null || financeNetworkData === void 0 ? void 0 : financeNetworkData.impactFinanceNetworkSettings) === null || _d === void 0 ? void 0 : _d.data;
4442
- // filter out any duplicate countries and null countryCode
4443
- const availableCountries = stencilHooks_module.useMemo(() => new Set(paymentOptions === null || paymentOptions === void 0 ? void 0 : paymentOptions.map((option) => option.countryCode).filter((value) => value)), [paymentOptions]);
4444
- const _topCountries = ["CA", "GB", "US"];
4445
- const sortedCountries = stencilHooks_module.useMemo(() => Array.from(availableCountries)
4446
- .map((countryCode) => sqmInvoiceTableView.getCountryObj({ countryCode, locale: intlLocale }))
4447
- .sort(sortByName)
4448
- .reduce((prev, countryObj) => {
4449
- if (_topCountries.includes(countryObj.countryCode))
4450
- return [countryObj, ...prev];
4451
- return [...prev, countryObj];
4452
- }, []), [availableCountries]);
4453
- stencilHooks_module.useEffect(() => {
4454
- if (sortedCountries)
4455
- setSortedCountriesContext(sortedCountries);
4456
- }, [sortedCountries]);
4457
- stencilHooks_module.useEffect(() => {
4458
- if (supportedCurrencies)
4459
- setCurrenciesContext(supportedCurrencies);
4460
- }, [supportedCurrencies]);
4461
- stencilHooks_module.useEffect(() => {
4462
- if (errors) {
4463
- setStep("/error");
4464
- return;
4465
- }
4466
- if (!host || !user)
4467
- return;
4468
- if (data) {
4469
- const user = data === null || data === void 0 ? void 0 : data.user;
4470
- if (!user || step !== "/loading")
4471
- return;
4472
- const currentStep = getCurrentStep(user);
4473
- setStep(currentStep);
4474
- }
4475
- }, [host, user, (_e = data === null || data === void 0 ? void 0 : data.user) === null || _e === void 0 ? void 0 : _e.email, errors]);
4476
- function getFinanceNetworkFilter() {
4477
- var _a, _b, _c;
4478
- if (step === "/1")
4479
- return {};
4480
- if (step === "/4")
4481
- 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 };
4482
- if (countryCode)
4483
- return {
4484
- countryCode_eq: countryCode,
4485
- };
4486
- return {};
4487
- }
4488
- return {
4489
- step,
4490
- setStep,
4491
- context,
4492
- namespace: index_module.Mn(TAX_CONTEXT_NAMESPACE),
4493
- loading: step === "/loading",
4494
- };
4495
- }
4496
-
4497
- const TaxAndCashMonolith = class {
4498
- constructor(hostRef) {
4499
- index.registerInstance(this, hostRef);
4500
- /*---------------------------------------------------------------------------------
4501
- !IMPORTANT!: Make sure to also change the prop names in the respective component
4502
- -----------------------------------------------------------------------------------*/
4503
- /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4504
- STEP 1 PROPS:
4505
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
4506
- /**
4507
- * @uiName First name field label
4508
- * @uiGroup Step 1 Properties
4509
- */
4510
- this.step1_firstName = "First name";
4511
- /**
4512
- * @uiName Last name field label
4513
- * @uiGroup Step 1 Properties
4514
- */
4515
- this.step1_lastName = "Last name";
4516
- /**
4517
- * @uiName Email field label
4518
- * @uiGroup Step 1 Properties
4519
- */
4520
- this.step1_email = "Email";
4521
- /**
4522
- * @uiName Country field label
4523
- * @uiGroup Step 1 Properties
4524
- */
4525
- this.step1_country = "Country";
4526
- /**
4527
- * @uiName Phone number field label
4528
- * @uiGroup Step 1 Properties
4529
- */
4530
- this.step1_phoneNumber = "Phone number";
4531
- /**
4532
- * @uiName Address field label
4533
- * @uiGroup Step 1 Properties
4534
- */
4535
- this.step1_address = "Address";
4536
- /**
4537
- * @uiName City field label
4538
- * @uiGroup Step 1 Properties
4539
- */
4540
- this.step1_city = "City";
4541
- /**
4542
- * @uiName State field label for states
4543
- * @uiGroup Step 1 Properties
4544
- */
4545
- this.step1_state = "State";
4546
- /**
4547
- * @uiName State field label for provinces
4548
- * @uiGroup Step 1 Properties
4549
- */
4550
- this.step1_province = "Province";
4551
- /**
4552
- * @uiName State field label for regions
4553
- * @uiGroup Step 1 Properties
4554
- */
4555
- this.step1_region = "Region";
4556
- /**
4557
- * @uiName Postal code field label
4558
- * @uiGroup Step 1 Properties
4559
- */
4560
- this.step1_postalCode = "Postal code";
4561
- /**
4562
- * @uiName Currency field label
4563
- * @uiGroup Step 1 Properties
4564
- */
4565
- this.step1_currency = "Currency";
4566
- /**
4567
- * @uiName Currency field help text
4568
- * @uiGroup Step 1 Properties
4569
- */
4570
- this.step1_currencyHelpText = "Choose your preferred payout currency";
4571
- /**
4572
- * Edit the property called terms and conditions text to change what's displayed for {termsAndConditionsLink}.
4573
- * @uiName Terms and conditions checkbox
4574
- * @uiGroup Step 1 Properties
4575
- */
4576
- this.step1_allowBankingCollection = "I have read the {termsAndConditionsLink} and allow impact.com to collect my tax and banking information";
4577
- /**
4578
- * @uiName Step 1 title
4579
- * @uiGroup Step 1 Properties
4580
- */
4581
- this.step1_personalInformation = "Personal Information";
4582
- /**
4583
- * The link text that appears in the terms and conditions checkbox
4584
- * @uiName Terms and conditions text
4585
- * @uiGroup Step 1 Properties
4586
- * @uiWidget textArea
4587
- */
4588
- this.step1_termsAndConditionsLabel = "terms and conditions";
4589
- /**
4590
- * The link that appears in the terms and conditions checkbox
4591
- * @uiName Terms and conditions link
4592
- * @uiGroup Step 1 Properties
4593
- */
4594
- this.step1_termsAndConditionsLink = "https://terms.advocate.impact.com/PayoutTermsAndConditions.html";
4595
- /**
4596
- * Placeholder text displayed in the currency search dropdown
4597
- * @uiName Currency field placeholder text
4598
- * @uiGroup Step 1 Properties
4599
- */
4600
- this.step1_searchForCurrencyText = "Search for currency..";
4601
- /**
4602
-
4603
- /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4604
- STEP 2 PROPS:
4605
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
4606
- /**
4607
- * @uiName Step 2 title
4608
- * @uiGroup Step 2 Properties
4609
- */
4610
- this.step2_indirectTax = "Indirect Tax";
4611
- /**
4612
- * Displayed under the title of this step.
4613
- * @uiName Step 2 description
4614
- * @uiGroup Step 2 Properties
4615
- * @uiWidget textArea
4616
- */
4617
- 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.";
4618
- /**
4619
- * Displayed with indirect tax registration options.
4620
- * @uiName Indirect tax details section title
4621
- * @uiGroup Step 2 Properties
4622
- */
4623
- this.step2_indirectTaxDetails = "Indirect tax details";
4624
- /**
4625
- * @uiName Registered for indirect tax option
4626
- * @uiGroup Step 2 Properties
4627
- * @uiWidget textArea
4628
- *
4629
- */
4630
- this.step2_otherRegion = "Registered for indirect tax";
4631
- /**
4632
- * Selecting this option will display fields to enter indirect tax details.
4633
- * @uiName Registered for indirect tax option description
4634
- * @uiGroup Step 2 Properties
4635
- */
4636
- this.step2_otherRegionSubtext = "If you’ve registered with your tax authority, add your information to stay tax compliant.";
4637
- /**
4638
- * @uiName Not registered for indirect tax option
4639
- * @uiGroup Step 2 Properties
4640
- * @uiWidget textArea
4641
- */
4642
- this.step2_notRegistered = "Not registered for indirect tax";
4643
- /**
4644
- * Participants based in the US are considered not registered.
4645
- * @uiName Not registered for indirect tax option description
4646
- * @uiGroup Step 2 Properties
4647
- */
4648
- this.step2_notRegisteredSubtext = "If you’ve never set up indirect tax with your tax authority, then you’re likely not considered registered.";
4649
- /**
4650
- * @uiName Region of indirect tax field label
4651
- * @uiGroup Step 2 Properties
4652
- */
4653
- this.step2_selectedRegion = "Country / region of indirect tax";
4654
- /**
4655
- * @uiName Indirect tax number field label
4656
- * @uiGroup Step 2 Properties
4657
- */
4658
- this.step2_indirectTaxNumber = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}}";
4659
- /**
4660
- * @uiName Province field label
4661
- * @uiGroup Step 2 Properties
4662
- */
4663
- this.step2_province = "Province";
4664
- /**
4665
- * @uiName Missing indirect tax number error message
4666
- * @uiGroup Step 2 Properties
4667
- */
4668
- 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";
4669
- /**
4670
- * Displayed to participants registered for QST.
4671
- * @uiName QST number field label
4672
- * @uiGroup Step 2 Properties
4673
- */
4674
- this.step2_qstNumber = "QST number";
4675
- /**
4676
- * Displayed to participants registered for indirect tax in Quebec, Canada.
4677
- * @uiName QST tax checkbox
4678
- * @uiGroup Step 2 Properties
4679
- */
4680
- this.step2_isRegisteredQST = "I am registered for QST Tax";
4681
- /**
4682
- * Displayed to participants registered for indirect tax in Spain.
4683
- * @uiName Spain income tax checkbox
4684
- * @uiGroup Step 2 Properties
4685
- * @uiWidget textArea
4686
- */
4687
- 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.";
4688
- /**
4689
- * Displayed to participants registered in Spain.
4690
- * @uiName Sub-region of indirect tax field label
4691
- * @uiGroup Step 2 Properties
4692
- */
4693
- this.step2_subRegion = "Sub-region";
4694
- /**
4695
- * @uiName Income tax field label
4696
- * @uiGroup Step 2 Properties
4697
- */
4698
- this.step2_subRegionTaxNumberLabel = "Income Tax Number";
4699
- /**
4700
- * Communicate that after this step, only Support can change personal and indirect tax information.
4701
- * @uiName Submission confirmation alert
4702
- * @uiGroup Step 2 Properties
4703
- * @uiWidget textArea
4704
- */
4705
- 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.";
4706
- /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4707
- STEP 3 PROPS:
4708
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
4709
- /**
4710
- * @uiName Step 3 title
4711
- * @uiGroup Step 3 Properties
4712
- */
4713
- this.step3_taxForm = "Tax form";
4714
- /**
4715
- * Display the type of tax form that the participant must submit.
4716
- * @uiName Tax form name
4717
- * @uiGroup Step 3 Properties
4718
- */
4719
- this.step3_taxFormLabel = "{documentType} Tax Form";
4720
- /**
4721
- * @uiName Participant type field label
4722
- * @uiGroup Step 3 Properties
4723
- */
4724
- this.step3_participantType = "Participant type";
4725
- /**
4726
- * An option for the participant type field. Used to determine which W-8 form is required.
4727
- * @uiName Business representative participant type label
4728
- * @uiGroup Step 3 Properties
4729
- */
4730
- this.step3_businessEntity = "I represent a business";
4731
- /**
4732
- * An option for the participant type field. Used to determine which W-8 form is required.
4733
- * @uiName Individual participant type label
4734
- * @uiGroup Step 3 Properties
4735
- */
4736
- this.step3_individualParticipant = "I am an individual participant";
4737
- /**
4738
- * Displayed at the top of the page to participants based in the US.
4739
- * @uiName W-9 tax form description
4740
- * @uiGroup Step 3 Properties
4741
- * @uiWidget textArea
4742
- */
4743
- this.step3_taxFormDescription = "Participants based in the US need to submit a {documentType} form.";
4744
- /**
4745
- * Displayed at the top of the page to individuals joining a US program who reside outside the country.
4746
- * @uiName W-8 BEN tax form description
4747
- * @uiGroup Step 3 Properties
4748
- * @uiWidget textArea
4749
- */
4750
- this.step3_taxFormDescriptionIndividualParticipant = "Participants residing outside of the US, joining the referral program of a US-based company, need to submit a {documentType} form.";
4751
- /**
4752
- * Displayed at the top of the page to participants representing a business.
4753
- * @uiName W-8 BEN-E tax form description
4754
- * @uiGroup Step 3 Properties
4755
- * @uiWidget textArea
4756
- */
4757
- this.step3_taxFormDescriptionBusinessEntity = "Participants residing outside of the US who represent a business entity need to submit a {documentType} form.";
4758
- /**
4759
- * This appears inside the Docusign frame.
4760
- * @uiName Docusign session expired message
4761
- * @uiGroup Step 3 Properties
4762
- * @uiWidget textArea
4763
- */
4764
- 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.";
4765
- /**
4766
- * Remind participants their session will time out after 20 minutes of inactivity.
4767
- * @uiName Docusign timed session message
4768
- * @uiGroup Step 3 Properties
4769
- * @uiWidget textArea
4770
- */
4771
- this.step3_docusignSessionWarning = "For your security, we automatically end your session when you have not interacted with the form after 20 minutes.";
4772
- /**
4773
- * This appears inside the Docusign frame.
4774
- * @uiName Docusign form error message
4775
- * @uiGroup Step 3 Properties
4776
- * @uiWidget textArea
4777
- */
4778
- this.step3_docusignError = "There was a problem displaying this form. Please refresh the page. If this problem continues, contact our {supportLink}.";
4779
- /**
4780
- * @uiName Refresh page button label
4781
- * @uiGroup Step 3 Properties
4782
- */
4783
- this.step3_refreshButton = "Refresh Page";
4784
- /**
4785
- * @uiName Exit button text
4786
- * @uiGroup Step 3 Properties
4787
- */
4788
- this.step3_exitButton = "Exit";
4789
- /**
4790
- * @uiName Information modal title
4791
- * @uiGroup Step 3 Properties
4792
- */
4793
- this.step3_modalTitle = "Important Note";
4794
- /**
4795
- * @uiName Information modal description text
4796
- * @uiGroup Step 3 Properties
4797
- */
4798
- 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.";
4799
- /**
4800
- * @uiName Information modal button text
4801
- * @uiGroup Step 3 Properties
4802
- */
4803
- this.step3_modalButtonText = "I understand";
4804
- /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4805
- STEP 4 PROPS:
4806
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
4807
- /**
4808
- * @uiName Step 4 title
4809
- * @uiGroup Step 4 Properties
4810
- */
4811
- this.step4_taxAndPayouts = "Payouts";
4812
- /**
4813
- * @uiName Direct to bank payout option
4814
- * @uiGroup Step 4 Properties
4815
- */
4816
- this.step4_directlyToBankAccount = "Directly to my bank account";
4817
- /**
4818
- * @uiName PayPal payout option
4819
- * @uiGroup Step 4 Properties
4820
- */
4821
- this.step4_toPayPalAccount = "PayPal (2% processing fee capped to {feeCap})";
4822
- /**
4823
- * @uiName Threshold balance payment schedule option
4824
- * @uiGroup Step 4 Properties
4825
- */
4826
- this.step4_paymentScheduleBalanceThreshold = "Pay me when my balance reaches a threshold";
4827
- /**
4828
- * @uiName Fixed day payment schedule option
4829
- * @uiGroup Step 4 Properties
4830
- */
4831
- this.step4_paymentScheduleFixedDay = "Pay me on a fixed day of the month";
4832
- /**
4833
- * Let the participant choose what day of the month they’ll get paid
4834
- * @uiName Payment day field label
4835
- * @uiGroup Step 4 Properties
4836
- */
4837
- this.step4_paymentDaySelectLabel = "Payment Day";
4838
- /**
4839
- * Participant use this field to select the balance at which they want to be paid
4840
- * @uiName Payment threshold field label
4841
- * @uiGroup Step 4 Properties
4842
- */
4843
- this.step4_paymentThresholdSelectLabel = "Payment threshold";
4844
- /**
4845
- * One of two payment day options
4846
- * @uiName First of month payday option
4847
- * @uiGroup Step 4 Properties
4848
- */
4849
- this.step4_paymentDayFirstOfMonthLabelText = "1st of the month";
4850
- /**
4851
- * One of two payment day options
4852
- * @uiName Fifteenth of month payday option
4853
- * @uiGroup Step 4 Properties
4854
- */
4855
- this.step4_paymentDayFifteenthOfMonthLabelText = "15th of the month";
4856
- /**
4857
- * @uiName Payment method section header
4858
- * @uiGroup Step 4 Properties
4859
- */
4860
- this.step4_paymentMethod = "Payment method";
4861
- /**
4862
- * @uiName Payment schedule section header
4863
- * @uiGroup Step 4 Properties
4864
- */
4865
- this.step4_paymentSchedule = "Payment schedule";
4866
- /**
4867
- * @uiName Payment method section description
4868
- * @uiGroup Step 4 Properties
4869
- */
4870
- this.step4_paymentMethodSubtext = "Payouts will be sent from our referral program provider, impact.com.";
4871
- /**
4872
- * Displayed to participants who choose PayPal as their payout method
4873
- * @uiName PayPal email field label
4874
- * @uiGroup Step 4 Properties
4875
- */
4876
- this.step4_payPalInputLabel = "PayPal email";
4877
- /**
4878
- * @uiName Bank country field label
4879
- * @uiGroup Step 4 Properties
4880
- */
4881
- this.step4_bankLocationLabel = "Bank country location";
4882
- /**
4883
- * @uiName Beneficiary account field label
4884
- * @uiGroup Step 4 Properties
4885
- */
4886
- this.step4_beneficiaryAccountNameLabel = "Account holder name";
4887
- /**
4888
- * @uiName Beneficiary account field description
4889
- * @uiGroup Step 4 Properties
4890
- */
4891
- this.step4_beneficiaryAccountNameDescription = "The beneficiary name of your bank account. Ensure this matches the name on your tax form.";
4892
- /**
4893
- * @uiName Bank account type field label
4894
- * @uiGroup Step 4 Properties
4895
- */
4896
- this.step4_bankAccountTypeLabel = "Bank account type";
4897
- /**
4898
- * @uiName Checking account option
4899
- * @uiGroup Step 4 Properties
4900
- */
4901
- this.step4_checkingSelectItemLabel = "Checking";
4902
- /**
4903
- * Label text for the savings account type select item
4904
- * @uiName Savings account options
4905
- * @uiGroup Step 4 Properties
4906
- */
4907
- this.step4_savingsSelectItemLabel = "Savings";
4908
- /**
4909
- * @uiName Bank account number field label
4910
- * @uiGroup Step 4 Properties
4911
- */
4912
- this.step4_bankAccountNumberLabel = "Bank account number";
4913
- /**
4914
- * @uiName IBAN field label
4915
- * @uiGroup Step 4 Properties
4916
- */
4917
- this.step4_ibanLabel = "IBAN";
4918
- /**
4919
- * @uiName SWIFT code field label
4920
- * @uiGroup Step 4 Properties
4921
- */
4922
- this.step4_swiftCodeLabel = "SWIFT code";
4923
- /**
4924
- * @uiName Routing code field label
4925
- * @uiGroup Step 4 Properties
4926
- */
4927
- 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} }";
4928
- /**
4929
- * @uiName Bank name field label
4930
- * @uiGroup Step 4 Properties
4931
- */
4932
- this.step4_bankNameLabel = "Bank name";
4933
- /**
4934
- * @uiName Classification entity field label
4935
- * @uiGroup Step 4 Properties
4936
- */
4937
- this.step4_classificationEntityLabel = "Classification entity";
4938
- /**
4939
- * One of three options listed for the classification field
4940
- * @uiName Business classification option
4941
- * @uiGroup Step 4 Properties
4942
- */
4943
- this.step4_businessSelectItemLabel = "Business";
4944
- /**
4945
- * One of three options listed for the classification field
4946
- * @uiName Individual classification option
4947
- * @uiGroup Step 4 Properties
4948
- */
4949
- this.step4_individualSelectItemLabel = "Individual";
4950
- /**
4951
- * One of three options listed for the classification field
4952
- * @uiName Foreign classification option
4953
- * @uiGroup Step 4 Properties
4954
- */
4955
- this.step4_foreignSelectItemLabel = "Foreign";
4956
- /**
4957
- * @uiName Classification CPF field label
4958
- * @uiGroup Step 4 Properties
4959
- */
4960
- this.step4_classificationCPFLabel = "Classification CPF";
4961
- /**
4962
- * @uiName Patronymic name field label
4963
- * @uiGroup Step 4 Properties
4964
- */
4965
- this.step4_patronymicNameLabel = "Patronymic name";
4966
- /**
4967
- * @uiName VO code field label
4968
- * @uiGroup Step 4 Properties
4969
- */
4970
- this.step4_voCodeLabel = "VO code";
4971
- /**
4972
- * @uiName Agency code field label
4973
- * @uiGroup Step 4 Properties
4974
- */
4975
- this.step4_agencyCodeLabel = "Agency code";
4976
- /**
4977
- * @uiName Branch code field label
4978
- * @uiGroup Step 4 Properties
4979
- */
4980
- this.step4_branchCodeLabel = "Branch code";
4981
- /**
4982
- * Label text for the classification input field
4983
- * @uiName Classification field label
4984
- * @uiGroup Step 4 Properties
4985
- */
4986
- this.step4_classificationLabel = "Classification";
4987
- /**
4988
- * @uiName Taxpayer ID field label
4989
- * @uiGroup Step 4 Properties
4990
- */
4991
- this.step4_taxPayerIdLabel = "Beneficiary INN";
4992
- /**
4993
- * @uiName Bank address field label
4994
- * @uiGroup Step 4 Properties
4995
- */
4996
- this.step4_bankAddressLabel = "Bank address";
4997
- /**
4998
- * @uiName Bank city field label
4999
- * @uiGroup Step 4 Properties
5000
- */
5001
- this.step4_bankCityLabel = "Bank city";
5002
- /**
5003
- * @uiName Bank province/state field label
5004
- * @uiGroup Step 4 Properties
5005
- */
5006
- this.step4_bankStateLabel = "Bank Province / State";
5007
- /**
5008
- * @uiName Bank postal code field label
5009
- * @uiGroup Step 4 Properties
5010
- */
5011
- this.step4_bankPostalCodeLabel = "Bank postal code";
5012
- /**
5013
- * Default payment method to the participants’ bank account.
5014
- * @uiName EFT withdrawal payment method
5015
- * @uiGroup Step 4 Properties
5016
- */
5017
- this.step4_eftWithdrawalLabel = "EFT Withdrawal (free)";
5018
- /**
5019
- * @uiName FX Wire Processing fee text
5020
- * @uiGroup Step 4 Properties
5021
- */
5022
- this.step4_fxWireProcessingFeeLabel = "FX Wire (Processing Fee {currency}{defaultFxFee}.00)";
5023
- /**
5024
- * @uiName Text for verify email dialog
5025
- * @uiGroup Step 4 Properties
5026
- */
5027
- this.step4_verifyEmailHeaderText = "Verify your email";
5028
- /**
5029
- * @uiName Verify code widget header text
5030
- * @uiGroup Step 4 Properties
5031
- */
5032
- this.step4_verifyEmailDescriptionText = "Verify your email to update your payment settings. Enter the code sent to {email} from our referral provider, impact.com.";
5033
- /**
5034
- * @uiName Information modal title
5035
- * @uiGroup Step 4 Properties
5036
- */
5037
- this.step4_modalTitle = "Important Note";
5038
- /**
5039
- * @uiName Information modal description text
5040
- * @uiGroup Step 4 Properties
5041
- */
5042
- 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.";
5043
- /**
5044
- * @uiName Information modal button text
5045
- * @uiGroup Step 4 Properties
5046
- */
5047
- this.step4_modalButtonText = "I understand, update my information";
5048
- /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5049
- DASHBOARD PROPS:
5050
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
5051
- /**
5052
- * @uiName Active tax form badge label
5053
- * @uiGroup Dashboard Properties
5054
- */
5055
- this.dashboard_statusTextActive = "Active";
5056
- /**
5057
- * @uiName Invalid tax form badge label
5058
- * @uiGroup Dashboard Properties
5059
- */
5060
- this.dashboard_statusTextNotActive = "Invalid Tax Form";
5061
- /**
5062
- * Displayed when the participant submitted their form but it is awaiting review.
5063
- *
5064
- * @uiName Not verified tax form badge label
5065
- * @uiGroup Dashboard Properties
5066
- */
5067
- this.dashboard_statusTextNotVerified = "Not Verified";
5068
- /**
5069
- * Displayed when the participant has not submitted their required tax form.
5070
- *
5071
- * @uiName Required tax form badge label
5072
- */
5073
- this.dashboard_statusTextRequired = "Required";
5074
- /**
5075
- * Additional text displayed next to the tax form's status badge
5076
- *
5077
- * @uiName Required tax form description
5078
- */
5079
- this.dashboard_requiredTaxForm = "Your payouts are on hold until you submit a {taxFormType} tax form.";
5080
- /**
5081
- * Additional text displayed next to the tax form's status badge
5082
- *
5083
- * @uiName Active W-9 description
5084
- * @uiGroup Dashboard Properties
5085
- */
5086
- this.dashboard_badgeTextSubmittedOn = "Submitted on {dateSubmitted}.";
5087
- /**
5088
- * Additional text displayed next to the tax form's status badge.
5089
- *
5090
- * @uiName Active W-8 description
5091
- * @uiGroup Dashboard Properties
5092
- */
5093
- this.dashboard_badgeTextSubmittedOnW8 = "Submitted on {dateSubmitted}. Valid for three years after submission.";
5094
- /**
5095
- * Additional text displayed next to the tax form's status badge.
5096
- *
5097
- * @uiName Tax form in review description
5098
- * @uiGroup Dashboard Properties
5099
- */
5100
- this.dashboard_badgeTextAwaitingReview = "Awaiting review. Submitted on {dateSubmitted}.";
5101
- /**
5102
- * Part of the alert displayed at the top of the page.
5103
- *
5104
- * @uiName Inactive W-9 error message title
5105
- * @uiGroup Dashboard Properties
5106
- * @uiWidget textArea
5107
- */
5108
- this.dashboard_taxAlertHeaderNotActiveW9 = "Your W9 tax form has personal information that doesn’t match your profile";
5109
- /**
5110
- * Part of the alert displayed at the top of the page.
5111
- *
5112
- * @uiName Inactive W-8 error message title
5113
- * @uiGroup Dashboard Properties
5114
- * @uiWidget textArea
5115
- */
5116
- this.dashboard_taxAlertHeaderNotActiveW8 = "{documentType} tax form is invalid";
5117
- /**
5118
- * Part of the alert displayed at the top of the page.
5119
- *
5120
- * @uiName Inactive W-9 error message description
5121
- * @uiGroup Dashboard Properties
5122
- * @uiWidget textArea
5123
- */
5124
- this.dashboard_taxAlertNotActiveMessageW9 = "Please resubmit a new {documentType} form.";
5125
- /**
5126
- * Part of the alert displayed at the top of the page.
5127
- *
5128
- * @uiName Inactive W-8 error message description
5129
- * @uiGroup Dashboard Properties
5130
- */
5131
- 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.";
5132
- /**
5133
- * Additional text displayed next to the tax form's status badge.
5134
- *
5135
- * @uiName Invalid tax form description
5136
- * @uiGroup Dashboard Properties
5137
- * @uiWidget textArea
5138
- */
5139
- this.dashboard_invalidForm = "Make sure your information is correct and submit new form.";
5140
- /**
5141
- * @uiName Payout information section header
5142
- * @uiGroup Dashboard Properties
5143
- */
5144
- this.dashboard_bankingInformationSectionHeader = "Payout Information";
5145
- /**
5146
- * @uiName Tax document section header
5147
- * @uiGroup Dashboard Properties
5148
- */
5149
- this.dashboard_taxDocumentSectionHeader = "Tax documents";
5150
- /**
5151
- * Displayed under the tax document section header.
5152
- *
5153
- * @uiName Tax documents section description
5154
- * @uiGroup Dashboard Properties
5155
- */
5156
- this.dashboard_taxDocumentSectionSubHeader = "{documentType} tax form";
5157
- /**
5158
- * No other statuses or badges will be displayed in the tax form section in this case.
5159
- *
5160
- * @uiName Tax form not required text
5161
- * @uiGroup Dashboard Properties
5162
- * @uiWidget textArea
5163
- */
5164
- 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.";
5165
- /**
5166
- *
5167
- * @uiName Indirect tax section header
5168
- * @uiGroup Dashboard Properties
5169
- */
5170
- this.dashboard_indirectTaxInfoSectionHeader = "Indirect tax";
5171
- /**
5172
- * If the participant is registered for indirect tax in Canada, display the province they’re registered in.
5173
- *
5174
- * @uiName Canadian province of indirect tax
5175
- * @uiGroup Dashboard Properties
5176
- */
5177
- this.dashboard_indirectTaxInfoCanada = "Registered in {province}, {country}";
5178
- /**
5179
- * If the participant is registered for indirect tax, display the country they’re registered in.
5180
- *
5181
- * @uiName Indirect tax country
5182
- * @uiGroup Dashboard Properties
5183
- */
5184
- this.dashboard_indirectTaxInfoOtherCountry = "Registered in {country}";
5185
- /**
5186
- * If the participant is registered for indirect tax in Spain, display the region they’re registered in.
5187
- *
5188
- * @uiName Spanish region of indirect tax
5189
- * @uiGroup Dashboard Properties
5190
- */
5191
- this.dashboard_indirectTaxInfoSpain = "Registered in {country}, {subRegion}";
5192
- /**
5193
- * @uiName Indirect tax tooltip
5194
- * @uiGroup Dashboard Properties
5195
- * @uiWidget textArea
5196
- */
5197
- this.dashboard_indirectTaxTooltipSupport = "To make changes to your indirect tax information, please contact our {supportLink}.";
5198
- /**
5199
- * Displayed to participants who have submitted their indirect tax information.
5200
- *
5201
- * @uiName Indirect tax details
5202
- * @uiGroup Dashboard Properties
5203
- */
5204
- this.dashboard_indirectTaxDetails = "{indirectTaxType} number: {indirectTaxNumber}";
5205
- /**
5206
- * @uiName Submit new tax form button label
5207
- * @uiGroup Dashboard Properties
5208
- */
5209
- this.dashboard_newFormButton = "Submit new form";
5210
- /**
5211
- * @uiName Edit payment info button label
5212
- * @uiGroup Dashboard Properties
5213
- */
5214
- this.dashboard_editPaymentInformationButton = "Edit Payout Information";
5215
- /**
5216
- * @uiName Not registered for indirect tax text
5217
- * @uiGroup Dashboard Properties
5218
- * @uiWidget textArea
5219
- */
5220
- 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.";
5221
- /**
5222
- * Displayed to participants registered in Quebec, Canada.
5223
- * @uiName QST indirect tax details
5224
- * @uiGroup Dashboard Properties
5225
- */
5226
- this.dashboard_qstNumber = "QST number: {qstNumber}";
5227
- /**
5228
- * @uiName Spain sub-region indirect tax number
5229
- * @uiGroup Dashboard Properties
5230
- */
5231
- this.dashboard_subRegionTaxNumber = "Income tax number: {subRegionTaxNumber}";
5232
- /**
5233
- * @uiName Payout status badge
5234
- * @uiGroup Dashboard Properties
5235
- */
5236
- this.dashboard_statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
5237
- /**
5238
- * Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
5239
- * @uiName Payout schedule by threshold text
5240
- * @uiGroup Dashboard Properties
5241
- */
5242
- this.dashboard_thresholdPayoutText = "Next payout occurs when balance is {thresholdBalance}";
5243
- /**
5244
- * Shown before the participant’s bank account information.
5245
- * @uiName Bank account field label
5246
- * @uiGroup Dashboard Properties
5247
- */
5248
- this.dashboard_accountText = "Account";
5249
- /**
5250
- * Part of the Invoice table displayed at the bottom of the page.
5251
- * @uiName Invoice number column title
5252
- * @uiGroup Dashboard Properties
5253
- */
5254
- this.dashboard_invoiceColumnTitle = "Invoice";
5255
- /**
5256
- * Part of the Invoice table displayed at the bottom of the page.
5257
- * @uiName Date column title
5258
- * @uiGroup Dashboard Properties
5259
- */
5260
- this.dashboard_dateColumnTitle = "Date";
5261
- /**
5262
- * Part of the Invoice table displayed at the bottom of the page.
5263
- * @uiName Earnings column title
5264
- * @uiGroup Dashboard Properties
5265
- */
5266
- this.dashboard_earningsColumnTitle = "Earnings";
5267
- /**
5268
- * Part of the Invoice table displayed at the bottom of the page.
5269
- * @uiName Indirect tax column title
5270
- * @uiGroup Dashboard Properties
5271
- */
5272
- this.dashboard_indirectTaxColumnTitle = "Indirect tax";
5273
- /**
5274
- * Displayed under the payout details card.
5275
- * @uiName Payout from impact text
5276
- * @uiGroup Dashboard Properties
5277
- * @uiWidget textArea
5278
- */
5279
- this.dashboard_payoutFromImpact = "Your balance may take up to 24 hours to update. Payouts will be sent from our referral program provider, impact.com.";
5280
- /**
5281
- * Part of the Invoice table displayed at the bottom of the page.
5282
- * @uiName Earnings after tax column title
5283
- * @uiGroup Dashboard Properties
5284
- */
5285
- this.dashboard_earningsAfterTaxColumnTitle = "Earnings after tax";
5286
- /**
5287
- * Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
5288
- * @uiName Payout error message title
5289
- * @uiGroup Dashboard Properties
5290
- * @uiWidget textArea
5291
- */
5292
- this.dashboard_payoutHoldAlertHeader = "Your payout is on hold";
5293
- /**
5294
- * Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
5295
- * @uiName Payout error message description
5296
- * @uiGroup Dashboard Properties
5297
- * @uiWidget textArea
5298
- */
5299
- this.dashboard_payoutHoldAlertDescription = "Please contact our {supportLink} or check your inbox for an email from our referral program provider, impact.com.";
5300
- /**
5301
- * Text displayed for existing publishers that do not have saved banking information.
5302
- * @uiName Payout missing information subtext
5303
- * @uiGroup Dashboard Properties
5304
- */
5305
- this.dashboard_payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
5306
- /**
5307
- * @uiName Invoice table description
5308
- * @uiGroup Dashboard Properties
5309
- */
5310
- this.dashboard_invoiceDescription = "View and download your invoices to report your earnings and stay tax compliant.";
5311
- /**
5312
- * @uiName Invoice table previous page button label
5313
- * @uiGroup Dashboard Properties
5314
- */
5315
- this.dashboard_invoicePrevLabel = "Prev";
5316
- /**
5317
- * @uiName Invoice table next page button label
5318
- * @uiGroup Dashboard Properties
5319
- */
5320
- this.dashboard_invoiceMoreLabel = "Next";
5321
- /**
5322
- * @uiName Invoice table title
5323
- * @uiGroup Dashboard Properties
5324
- */
5325
- this.dashboard_invoiceHeader = "Invoices";
5326
- /**
5327
- * @uiName Empty invoice table header
5328
- * @uiGroup Dashboard Properties
5329
- */
5330
- this.dashboard_invoiceEmptyStateHeader = "View your invoice details";
5331
- /**
5332
- * @uiName Empty invoice table description
5333
- * @uiGroup Dashboard Properties
5334
- */
5335
- this.dashboard_invoiceEmptyStateText = "Refer a friend to view the status of your invoices and rewards earned";
5336
- /**
5337
- * @uiName Replace tax form modal header
5338
- * @uiGroup Dashboard Properties
5339
- */
5340
- this.dashboard_replaceTaxFormModalHeader = "Replace existing tax form";
5341
- /**
5342
- * @uiName Replace tax form modal body text
5343
- * @uiGroup Dashboard Properties
5344
- * @uiWidget textArea
5345
- */
5346
- 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.";
5347
- /**
5348
- * Part of the alert displayed at the top of the page when the user needs to verify their identity.
5349
- * @uiName Verification required alert message title
5350
- * @uiGroup Dashboard Properties
5351
- * @uiWidget textArea
5352
- */
5353
- this.dashboard_verificationRequiredHeader = "Verify your identity";
5354
- /**
5355
- * Part of the alert displayed at the top of the page when the user needs to verify their identity
5356
- * @uiName Verification required alert message description
5357
- * @uiGroup Dashboard Properties
5358
- * @uiWidget textArea
5359
- */
5360
- 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}.";
5361
- /**
5362
- * @uiName Verification required internal alert header
5363
- * @uiGroup Dashboard Properties
5364
- * @uiWidget textArea
5365
- */
5366
- this.dashboard_verificationRequiredInternalHeader = "Identity Verification in Progress";
5367
- /**
5368
- * @uiName Verification required internal alert description
5369
- * @uiGroup Dashboard Properties
5370
- * @uiWidget textArea
5371
- */
5372
- 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}.";
5373
- /**
5374
- * @uiName Verification review internal alert header
5375
- * @uiGroup Dashboard Properties
5376
- * @uiWidget textArea
5377
- */
5378
- this.dashboard_verificationReviewInternalHeader = "Identity Verification Under Review";
5379
- /**
5380
- * @uiName Verification review internal alert description
5381
- * @uiGroup Dashboard Properties
5382
- * @uiWidget textArea
5383
- */
5384
- 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}.";
5385
- /**
5386
- * @uiName Verification failed internal alert header
5387
- * @uiGroup Dashboard Properties
5388
- * @uiWidget textArea
5389
- */
5390
- this.dashboard_verificationFailedInternalHeader = "Identity Verification Unsuccessful";
5391
- /**
5392
- * @uiName Verification failed internal alert description
5393
- * @uiGroup Dashboard Properties
5394
- * @uiWidget textArea
5395
- */
5396
- 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}.";
5397
- /**
5398
- * Part of the alert displayed at the top of the page when the user needs to verify their identity.
5399
- * @uiName Verification required alert button text
5400
- * @uiGroup Dashboard Properties
5401
- * @uiWidget textArea
5402
- */
5403
- this.dashboard_verificationRequiredButtonText = "Start Verification";
5404
- /**
5405
- * @uiName W9 payment threshold alert header
5406
- * @uiGroup Dashboard Properties
5407
- * @uiWidget textArea
5408
- */
5409
- this.dashboard_w9RequiredHeader = "Your next payout is on hold";
5410
- /**
5411
- * @uiName W9 payment threshold alert description
5412
- * @uiGroup Dashboard Properties
5413
- * @uiWidget textArea
5414
- */
5415
- 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.";
5416
- /**
5417
- * @uiName Terms and Conditions text
5418
- * @uiGroup Dashboard Properties
5419
- */
5420
- this.dashboard_termsAndConditions = "Terms and Conditions";
5421
- /**
5422
- * @uiName W9 payment threshold alert button text
5423
- * @uiGroup Dashboard Properties
5424
- * @uiWidget textArea
5425
- */
5426
- this.dashboard_w9RequiredButtonText = "Submit W9";
5427
- /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5428
- GENERAL PROPS:
5429
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
5430
- /**
5431
- * @uiName Setup progress
5432
- * @uiGroup General Form Properties
5433
- */
5434
- this.formStep = "Step {step} of {count}";
5435
- /**
5436
- * Part of the alert displayed at the top of the page.
5437
- * @uiName Form submission error message title
5438
- * @uiGroup General Form Properties
5439
- * @uiWidget textArea
5440
- */
5441
- this.generalErrorTitle = "There was a problem submitting your information";
5442
- /**
5443
- * Part of the alert displayed at the top of the page.
5444
- * @uiName Form submission error message description
5445
- * @uiGroup General Form Properties
5446
- * @uiWidget textArea
5447
- */
5448
- this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact our {supportLink}.";
5449
- /**
5450
- * Displayed under a field that is missing required information.
5451
- * @uiName Empty form field error message
5452
- * @uiGroup General Form Properties
5453
- */
5454
- this.fieldRequiredError = "{fieldName} is required";
5455
- /**
5456
- * Displayed under a field that includes invalid characters (non-ASCII).
5457
- * @uiName Invalid character error message
5458
- * @uiGroup General Form Properties
5459
- */
5460
- this.invalidCharacterError = "{fieldName} includes characters that aren't supported.";
5461
- /**
5462
- * Displayed under a field when it has an invalid entry.
5463
- * @uiName Form field error message
5464
- * @uiGroup General Form Properties
5465
- */
5466
- this.fieldInvalidError = "{fieldName} is invalid";
5467
- /**
5468
- * @uiName Continue button label
5469
- * @uiGroup General Form Properties
5470
- */
5471
- this.continueButton = "Continue";
5472
- /**
5473
- * @uiName Back button label
5474
- * @uiGroup General Form Properties
5475
- */
5476
- this.backButton = "Back";
5477
- /**
5478
- * @uiName Cancel button label
5479
- * @uiGroup General Form Properties
5480
- */
5481
- this.cancelButton = "Cancel";
5482
- /**
5483
- * Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com.
5484
- * @uiName Participant is a partner alert title
5485
- * @uiGroup General Form Properties
5486
- * @uiWidget textArea
5487
- */
5488
- this.isPartnerAlertHeader = "An account with this email already exists with our referral program provider, impact.com";
5489
- /**
5490
- * Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com.
5491
- * @uiName Participant is a partner alert description
5492
- * @uiGroup General Form Properties
5493
- * @uiWidget textArea
5494
- */
5495
- 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.";
5496
- /**
5497
- * Placeholder text displayed in the country search dropdown
5498
- * @uiName Country field placeholder text
5499
- * @uiGroup General Form Properties
5500
- */
5501
- 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);
5502
3649
  /**
5503
- * Part of the alert displayed at the top of the page.
5504
- * @uiName Page load error message title
5505
- * @uiGroup General Form Properties
5506
- * @uiWidget textArea
3650
+ * Badge text indicating payout status
3651
+ * @uiName Payout badge status text
5507
3652
  */
5508
- this.loadingErrorAlertHeader = "There was a problem loading your form";
3653
+ this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
5509
3654
  /**
5510
- * Part of the alert displayed at the top of the page.
5511
- * @uiName Page load error message description
5512
- * @uiGroup General Form Properties
5513
- * @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
5514
3657
  */
5515
- 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}";
5516
3659
  /**
5517
- * Displayed at the top of the page on all set up steps.
5518
- * @uiName Page description
5519
- * @uiGroup General Form Properties
3660
+ * Shown before the participant’s bank account information.
3661
+ * @uiName Bank account field label
5520
3662
  */
5521
- this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
3663
+ this.accountText = "Account";
5522
3664
  /**
5523
- * Link text for contacting support team
5524
- * @uiName Suport link text
5525
- * @uiGroup General Form Properties
3665
+ * Text displayed for existing publishers that do not have saved banking information.
3666
+ * @uiName Payout missing information subtext
5526
3667
  */
5527
- this.supportLink = "support team";
3668
+ this.payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
5528
3669
  /**
5529
- * Link text for Terms and Conditions
5530
- * @uiName Terms and Conditions text
5531
- * @uiGroup General Form Properties
3670
+ * @componentState { "title": "Loading", "props": { "states": { "loading": true } } }
5532
3671
  */
5533
- this.termsAndConditions = "Terms and Conditions";
5534
- stencilHooks_module.h$1(this);
3672
+ this.stateController = "{}";
3673
+ domContextHooks_module.h$1(this);
5535
3674
  }
5536
3675
  disconnectedCallback() { }
5537
- // this field is required prop
5538
- getGeneralStepTextProps(prefix) {
3676
+ getTextProps() {
5539
3677
  const props = utils.getProps(this);
5540
3678
  return {
5541
- ...extractProps.extractProps(props, prefix),
5542
- generalErrorTitle: props.generalErrorTitle,
5543
- generalErrorDescription: props.generalErrorDescription,
5544
- fieldRequiredError: props.fieldRequiredError,
5545
- invalidCharacterError: props.invalidCharacterError,
5546
- fieldInvalidError: props.fieldInvalidError,
5547
- continueButton: props.continueButton,
5548
- backButton: props.backButton,
5549
- cancelButton: props.cancelButton,
5550
- isPartnerAlertHeader: props.isPartnerAlertHeader,
5551
- isPartnerAlertDescription: props.isPartnerAlertDescription,
5552
- loadingErrorAlertHeader: props.loadingErrorAlertHeader,
5553
- loadingErrorAlertDescription: props.loadingErrorAlertDescription,
5554
- taxAndPayoutsDescription: props.taxAndPayoutsDescription,
5555
- searchForCountryText: props.searchForCountryText,
5556
- formStep: props.formStep,
5557
- supportLink: props.supportLink,
3679
+ ...props,
5558
3680
  };
5559
3681
  }
5560
3682
  render() {
5561
- var _a, _b;
5562
- const props = index_module.isDemo() ? useDemoTaxAndCash(this) : useTaxAndCash();
5563
- // @ts-ignore
5564
- if ((_a = this.demoData) === null || _a === void 0 ? void 0 : _a.showTextProps) {
5565
- const textProps = utils.getProps(this);
5566
- return (index.h("div", null, (_b = Object.keys(textProps)) === null || _b === void 0 ? void 0 : _b.map((prop) => {
5567
- if (prop === "demoData")
5568
- return;
5569
- return (index.h("div", null, index.h("b", null, prop, ":"), " ", this[prop], index.h("hr", null)));
5570
- })));
5571
- }
5572
- switch (props.step) {
5573
- case "/1":
5574
- return (index.h("sqm-user-info-form", Object.assign({}, this.getGeneralStepTextProps("step1_"))));
5575
- case "/2":
5576
- return (index.h("sqm-indirect-tax-form", Object.assign({}, this.getGeneralStepTextProps("step2_"))));
5577
- case "/3":
5578
- return (index.h("sqm-docusign-form", Object.assign({}, this.getGeneralStepTextProps("step3_"))));
5579
- case "/4":
5580
- return (index.h("sqm-banking-info-form", Object.assign({}, this.getGeneralStepTextProps("step4_"))));
5581
- case "/dashboard":
5582
- return (index.h("sqm-tax-and-cash-dashboard", Object.assign({}, this.getGeneralStepTextProps("dashboard_"))));
5583
- case "/error":
5584
- return (index.h(ErrorView.ErrorView, { loadingErrorAlertHeader: this.loadingErrorAlertHeader, loadingErrorAlertDescription: this.loadingErrorAlertDescription }));
5585
- }
5586
- 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 })));
5587
3687
  }
5588
3688
  };
5589
- function useDemoTaxAndCash(props) {
5590
- const [step, setStep] = index_module.In({
5591
- namespace: TAX_CONTEXT_NAMESPACE,
5592
- initialValue: "/1",
5593
- });
3689
+ function useDemoPayoutDetailsCard(props) {
5594
3690
  return cjs.cjs({
5595
- step,
5596
- 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(),
5597
3707
  }, props.demoData || {}, { arrayMerge: (_, a) => a });
5598
3708
  }
5599
3709
 
5600
- const style$6 = {
3710
+ const style$5 = {
5601
3711
  ErrorAlertContainer: {
5602
3712
  "&::part(base)": {
5603
3713
  backgroundColor: "var(--sl-color-red-100)",
@@ -5788,27 +3898,44 @@ const style$6 = {
5788
3898
  },
5789
3899
  DialogButton: { margin: "auto", width: "100%" },
5790
3900
  };
5791
- const sheet$5 = JSS.createStyleSheet(style$6);
5792
- const styleString$5 = sheet$5.toString();
3901
+ const sheet$4 = JSS.createStyleSheet(style$5);
3902
+ const styleString$4 = sheet$4.toString();
5793
3903
  const TaxAndCashDashboardView = (props) => {
5794
3904
  var _a;
5795
3905
  const { states, text, callbacks, slots } = props;
5796
3906
  function getAlert(status) {
5797
3907
  switch (status) {
5798
3908
  case "OVER_W9_THRESHOLD":
5799
- return {
5800
- header: text.w9RequiredHeader,
5801
- description: global.intl.formatMessage({
5802
- id: "w9RequiredDescription",
5803
- defaultMessage: text.w9RequiredDescription,
5804
- }, {
5805
- termsAndConditions: (index.h("a", { target: "_blank", href: `https://terms.advocate.impact.com/PayoutTermsAndConditions.html` }, text.termsAndConditions)),
5806
- }),
5807
- button: (index.h("sl-button", { style: { marginTop: "var(--sl-spacing-x-small)" }, type: "default", onClick: callbacks.onNewFormClick }, text.w9RequiredButtonText)),
5808
- alertType: "info",
5809
- icon: "info-circle",
5810
- class: sheet$5.classes.WarningHoldAlertContainer,
5811
- };
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
+ }
5812
3939
  case "VERIFICATION:REQUIRED":
5813
3940
  return {
5814
3941
  header: text.verificationRequiredHeader,
@@ -5821,7 +3948,7 @@ const TaxAndCashDashboardView = (props) => {
5821
3948
  buttonText: text.verificationRequiredButtonText,
5822
3949
  alertType: "warning",
5823
3950
  icon: "exclamation-triangle",
5824
- class: sheet$5.classes.WarningHoldAlertContainer,
3951
+ class: sheet$4.classes.WarningHoldAlertContainer,
5825
3952
  };
5826
3953
  case "VERIFICATION:INTERNAL":
5827
3954
  return {
@@ -5834,7 +3961,7 @@ const TaxAndCashDashboardView = (props) => {
5834
3961
  }),
5835
3962
  alertType: "warning",
5836
3963
  icon: "exclamation-triangle",
5837
- class: sheet$5.classes.WarningHoldAlertContainer,
3964
+ class: sheet$4.classes.WarningHoldAlertContainer,
5838
3965
  };
5839
3966
  case "VERIFICATION:REVIEW":
5840
3967
  return {
@@ -5847,7 +3974,7 @@ const TaxAndCashDashboardView = (props) => {
5847
3974
  }),
5848
3975
  alertType: "warning",
5849
3976
  icon: "exclamation-triangle",
5850
- class: sheet$5.classes.WarningHoldAlertContainer,
3977
+ class: sheet$4.classes.WarningHoldAlertContainer,
5851
3978
  };
5852
3979
  case "VERIFICATION:FAILED":
5853
3980
  return {
@@ -5858,9 +3985,23 @@ const TaxAndCashDashboardView = (props) => {
5858
3985
  }, {
5859
3986
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
5860
3987
  }),
5861
- alertType: "critical",
3988
+ alertType: "error",
5862
3989
  icon: "exclamation-octagon",
5863
- 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,
5864
4005
  };
5865
4006
  case "HOLD":
5866
4007
  return {
@@ -5874,14 +4015,14 @@ const TaxAndCashDashboardView = (props) => {
5874
4015
  buttonText: null,
5875
4016
  alertType: "warning",
5876
4017
  icon: "exclamation-triangle",
5877
- class: sheet$5.classes.WarningHoldAlertContainer,
4018
+ class: sheet$4.classes.WarningHoldAlertContainer,
5878
4019
  };
5879
4020
  default:
5880
4021
  return;
5881
4022
  }
5882
4023
  }
5883
4024
  const statusMap = {
5884
- NOT_VERIFIED: (index.h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
4025
+ NOT_VERIFIED: (index.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
5885
4026
  index.h("sl-badge", { type: "warning", pill: true }, text.statusTextNotVerified),
5886
4027
  index.h("p", null, global.intl.formatMessage({
5887
4028
  id: `badgeTextAwaitingReview`,
@@ -5889,7 +4030,7 @@ const TaxAndCashDashboardView = (props) => {
5889
4030
  }, {
5890
4031
  dateSubmitted: states.dateSubmitted,
5891
4032
  })))),
5892
- ACTIVE: (index.h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
4033
+ ACTIVE: (index.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
5893
4034
  index.h("sl-badge", { type: "success", pill: true }, text.statusTextActive),
5894
4035
  index.h("p", null, global.intl.formatMessage({
5895
4036
  id: `badgeTextSubmittedOn`,
@@ -5899,10 +4040,10 @@ const TaxAndCashDashboardView = (props) => {
5899
4040
  }, {
5900
4041
  dateSubmitted: states.dateSubmitted,
5901
4042
  })))),
5902
- INACTIVE: (index.h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
4043
+ INACTIVE: (index.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
5903
4044
  index.h("sl-badge", { type: "danger", pill: true }, text.statusTextNotActive),
5904
4045
  index.h("p", null, text.invalidForm))),
5905
- undefined: (index.h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
4046
+ undefined: (index.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
5906
4047
  index.h("sl-badge", { type: "danger", pill: true }, text.statusTextRequired),
5907
4048
  index.h("p", null, global.intl.formatMessage({
5908
4049
  id: `requiredTaxForm`,
@@ -5912,7 +4053,7 @@ const TaxAndCashDashboardView = (props) => {
5912
4053
  })))),
5913
4054
  };
5914
4055
  const alertMap = {
5915
- 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 },
5916
4057
  index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
5917
4058
  index.h("strong", null, global.intl.formatMessage({
5918
4059
  id: `taxAlertHeaderNotActive`,
@@ -5963,9 +4104,9 @@ const TaxAndCashDashboardView = (props) => {
5963
4104
  const alertInfo = getAlert(states.payoutStatus);
5964
4105
  return (index.h("div", null,
5965
4106
  index.h("div", null,
5966
- index.h("style", { type: "text/css" }, styleString$5),
4107
+ index.h("style", { type: "text/css" }, styleString$4),
5967
4108
  states.loadingError && (index.h("div", null,
5968
- 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 },
5969
4110
  index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
5970
4111
  index.h("strong", null, text.error.loadingErrorAlertHeader),
5971
4112
  index.h("br", null),
@@ -5975,7 +4116,7 @@ const TaxAndCashDashboardView = (props) => {
5975
4116
  }, {
5976
4117
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
5977
4118
  })))),
5978
- ((_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 },
5979
4120
  index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
5980
4121
  index.h("strong", null, text.error.generalTitle),
5981
4122
  index.h("br", null),
@@ -5991,48 +4132,48 @@ const TaxAndCashDashboardView = (props) => {
5991
4132
  index.h("p", { style: { margin: "0" } }, alertInfo.description),
5992
4133
  alertInfo.buttonText && (index.h("sl-button", { style: { marginTop: "var(--sl-spacing-x-small)" }, type: "default", loading: states.veriffLoading, onClick: () => callbacks.onVerifyClick() }, alertInfo.buttonText)),
5993
4134
  alertInfo.button ? (alertInfo.button) : (index.h("div", { style: { display: "none" } })))),
5994
- 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 },
5995
4136
  index.h("p", null, text.replaceTaxFormModalBodyText),
5996
- index.h("sl-button", { slot: "footer", type: "primary", class: sheet$5.classes.DialogButton, onClick: callbacks.onNewFormClick }, text.newFormButton),
5997
- 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)),
5998
4139
  states.status === "INACTIVE" && alertMap[states.status],
5999
4140
  index.h("div", null,
6000
4141
  index.h("h3", { style: { marginBottom: "0" } }, text.bankingInformationSectionHeader),
6001
- index.h("p", { class: sheet$5.classes.PageDescriptionText }, text.taxAndPayoutsDescription),
6002
- index.h("div", { class: sheet$5.classes.BankingInformationContainer },
4142
+ index.h("div", { class: sheet$4.classes.BankingInformationContainer },
6003
4143
  slots.payoutDetailsCardSlot,
6004
- !states.loading && (index.h("p", { class: sheet$5.classes.DescriptionText }, text.payoutFromImpact)),
6005
- states.canEditPayoutInfo && (index.h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$5.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
6006
- !states.noFormNeeded && (index.h("div", { class: sheet$5.classes.TaxDocumentsContainer },
6007
- index.h("div", null, states.loading ? (index.h("div", { class: sheet$5.classes.TaxSectionSkeletonContainer },
6008
- index.h("sl-skeleton", { class: sheet$5.classes.SkeletonOne }),
6009
- 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,
6010
4150
  index.h("div", null,
6011
- index.h("span", { class: sheet$5.classes.TaxFormDetailsContainer },
6012
- 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 },
6013
4153
  index.h("h3", null, global.intl.formatMessage({
6014
4154
  id: "section-subheader",
6015
4155
  defaultMessage: text.taxDocumentSectionSubHeader,
6016
4156
  }, {
6017
- documentType: states.documentTypeString,
4157
+ documentType: states.documentTypeString || "W-9",
6018
4158
  })),
6019
- index.h("span", { class: sheet$5.classes.StatusAlert }, statusMap[states.status]))),
6020
- 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)))))))),
6021
- index.h("div", { class: sheet$5.classes.IndirectTaxPreviewContainer }, states.loading ? (index.h("div", { class: sheet$5.classes.TaxSectionSkeletonContainer },
6022
- index.h("sl-skeleton", { class: sheet$5.classes.SkeletonOne }),
6023
- index.h("sl-skeleton", { class: sheet$5.classes.SkeletonTwo }))) : (index.h("div", null,
6024
- 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 },
6025
4166
  text.indirectTaxInfoSectionHeader,
6026
- index.h("sl-tooltip", { trigger: "hover", placement: "right", content: text.indirectTaxTooltipSupport, class: sheet$5.classes.TooltipContainer },
6027
- index.h("sl-icon", { name: "info-circle", class: sheet$5.classes.ToolTip }))),
6028
- index.h("div", { class: sheet$5.classes.IndirectTaxPreviewDetails },
6029
- 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({
6030
4171
  id: "notRegisteredForTax",
6031
4172
  defaultMessage: text.notRegisteredForTax,
6032
4173
  }, {
6033
4174
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
6034
4175
  }))) : (getIndirectTaxRegisteredIn())),
6035
- !states.notRegistered && (index.h("div", { class: sheet$5.classes.TaxNumberContainer },
4176
+ !states.notRegistered && (index.h("div", { class: sheet$4.classes.TaxNumberContainer },
6036
4177
  index.h("span", null, global.intl.formatMessage({
6037
4178
  id: `indirectTaxDetails`,
6038
4179
  defaultMessage: text.indirectTaxDetails,
@@ -6055,7 +4196,7 @@ const TaxAndCashDashboardView = (props) => {
6055
4196
  }, {
6056
4197
  subRegionTaxNumber: states.subRegionTaxNumber,
6057
4198
  })))),
6058
- !states.notRegistered && (index.h("div", { class: sheet$5.classes.InvoiceTableContainer },
4199
+ !states.notRegistered && (index.h("div", { class: sheet$4.classes.InvoiceTableContainer },
6059
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 },
6060
4201
  index.h("sqm-invoice-table-download-column", null),
6061
4202
  index.h("sqm-invoice-table-date-column", { "column-title": text.dateColumnTitle }),
@@ -6065,6 +4206,13 @@ const TaxAndCashDashboardView = (props) => {
6065
4206
  index.h("sqm-invoice-table-data-column", { "column-title": text.earningsAfterTaxColumnTitle, property: "netEarnings" })))))))))));
6066
4207
  };
6067
4208
 
4209
+ const GET_TAX_SETTING = index_module.dist.gql `
4210
+ query getTenantSettings {
4211
+ tenantSettings {
4212
+ enforceUsTaxCompliance
4213
+ }
4214
+ }
4215
+ `;
6068
4216
  function getCountryName(countryCode, locale) {
6069
4217
  if (!countryCode)
6070
4218
  return undefined;
@@ -6079,12 +4227,12 @@ function getSubRegionName(regionCode) {
6079
4227
  return "";
6080
4228
  // Impact adds an underscore to some regions
6081
4229
  const standardCode = regionCode.replace("_", "");
6082
- const regions = [...sqmInvoiceTableView.INDIRECT_TAX_PROVINCES, ...sqmInvoiceTableView.INDIRECT_TAX_SPAIN_REGIONS];
4230
+ const regions = [...IndirectTaxDetailsView.INDIRECT_TAX_PROVINCES, ...IndirectTaxDetailsView.INDIRECT_TAX_SPAIN_REGIONS];
6083
4231
  return (_a = regions.find((r) => r.regionCode === standardCode)) === null || _a === void 0 ? void 0 : _a.displayName;
6084
4232
  }
6085
4233
  function getIndirectTaxType(taxInformation) {
6086
4234
  var _a;
6087
- const regions = [...sqmInvoiceTableView.INDIRECT_TAX_PROVINCES, ...sqmInvoiceTableView.INDIRECT_TAX_SPAIN_REGIONS];
4235
+ const regions = [...IndirectTaxDetailsView.INDIRECT_TAX_PROVINCES, ...IndirectTaxDetailsView.INDIRECT_TAX_SPAIN_REGIONS];
6088
4236
  if (taxInformation === null || taxInformation === void 0 ? void 0 : taxInformation.indirectTaxRegion) {
6089
4237
  const standardRegion = taxInformation.indirectTaxRegion.replace("_", "");
6090
4238
  const taxType = (_a = regions.find((r) => r.regionCode === standardRegion)) === null || _a === void 0 ? void 0 : _a.taxType;
@@ -6095,25 +4243,26 @@ function getIndirectTaxType(taxInformation) {
6095
4243
  if (taxInformation === null || taxInformation === void 0 ? void 0 : taxInformation.withholdingTaxCountryCode)
6096
4244
  return "VAT";
6097
4245
  if (taxInformation === null || taxInformation === void 0 ? void 0 : taxInformation.indirectTaxCountryCode) {
6098
- return sqmInvoiceTableView.vatLabels[taxInformation.indirectTaxCountryCode] || "Indirect Tax";
4246
+ return IndirectTaxDetailsView.vatLabels[taxInformation.indirectTaxCountryCode] || "Indirect Tax";
6099
4247
  }
6100
4248
  return "Indirect Tax";
6101
4249
  }
6102
4250
  const useTaxAndCashDashboard = (props) => {
6103
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
6104
- const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
6105
- const setContext = index_module.En(TAX_FORM_CONTEXT_NAMESPACE);
6106
- 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);
6107
4255
  const { render, loading: veriffLoading, errors: veriffErrors, } = usePayoutStatus.useVeriffApp();
4256
+ const { data: taxSettingRes } = index_module.wn(GET_TAX_SETTING, {});
6108
4257
  const locale = index_module.L();
6109
- stencilHooks_module.useEffect(() => {
4258
+ domContextHooks_module.useEffect(() => {
6110
4259
  // Clear override context once on submitted
6111
4260
  setContext({});
6112
4261
  if (window.location.hash)
6113
4262
  setStep(`/${window.location.hash.replace("#", "")}`);
6114
4263
  }, []);
6115
- const { data, loading, errors: userError, refetch, } = index_module.$n(USER_QUERY_NAMESPACE);
6116
- 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;
6117
4266
  const documentType = publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType;
6118
4267
  const submissionDate = (_c = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _c === void 0 ? void 0 : _c.dateCreated;
6119
4268
  const dateSubmitted = submissionDate
@@ -6136,39 +4285,41 @@ const useTaxAndCashDashboard = (props) => {
6136
4285
  });
6137
4286
  setStep("/3");
6138
4287
  };
6139
- 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;
6140
- const payoutStatus = data ? usePayoutStatus.getStatus(data) : null;
6141
- 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(() => {
6142
4291
  const cb = () => refetch();
6143
4292
  window.addEventListener(usePayoutStatus.VERIFF_COMPLETE_EVENT_KEY, cb);
6144
4293
  return () => {
6145
4294
  window.removeEventListener(usePayoutStatus.VERIFF_COMPLETE_EVENT_KEY, cb);
6146
4295
  };
6147
4296
  }, []);
4297
+ const enforceUsTaxComplianceOption = (_e = taxSettingRes === null || taxSettingRes === void 0 ? void 0 : taxSettingRes.tenantSettings) === null || _e === void 0 ? void 0 : _e.enforceUsTaxCompliance;
6148
4298
  return {
6149
4299
  states: {
6150
4300
  dateSubmitted,
6151
4301
  documentType,
6152
4302
  canEditPayoutInfo: publisher === null || publisher === void 0 ? void 0 : publisher.brandedSignup,
6153
- documentTypeString: sqmInvoiceTableView.taxTypeToName(documentType),
6154
- status: (_e = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _e === void 0 ? void 0 : _e.status,
6155
- subRegion: getSubRegionName((_f = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _f === void 0 ? void 0 : _f.indirectTaxRegion),
6156
- subRegionTaxNumber: (_g = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _g === void 0 ? void 0 : _g.withholdingTaxId,
6157
- 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,
6158
4308
  indirectTaxType: getIndirectTaxType(publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation),
6159
- 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,
6160
4310
  isBusinessEntity: (publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType) === "W8BENE",
6161
4311
  province: provinceName,
6162
- country: getCountryName((_k = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _k === void 0 ? void 0 : _k.indirectTaxCountryCode, locale),
6163
- 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),
6164
4314
  noFormNeeded: !documentType,
6165
4315
  disabled: loading,
6166
4316
  loading,
6167
4317
  loadingError: !!(userError === null || userError === void 0 ? void 0 : userError.message),
6168
4318
  showNewFormDialog: showDialog,
6169
- 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),
6170
4320
  payoutStatus,
6171
4321
  veriffLoading,
4322
+ enforceUsTaxComplianceOption,
6172
4323
  },
6173
4324
  callbacks: {
6174
4325
  onClick: () => setShowDialog(true),
@@ -6234,7 +4385,7 @@ const TaxAndCashDashboard = class {
6234
4385
  * @uiName Inactive W-9 error message title
6235
4386
  * @uiWidget textArea
6236
4387
  */
6237
- 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";
6238
4389
  /**
6239
4390
  * Part of the alert displayed at the top of the page.
6240
4391
  *
@@ -6406,21 +4557,29 @@ const TaxAndCashDashboard = class {
6406
4557
  */
6407
4558
  this.verificationRequiredButtonText = "Start Verification";
6408
4559
  /**
6409
- * @uiName W9 payment threshold alert header
4560
+ * @uiName W-9 payment threshold alert header
6410
4561
  */
6411
4562
  this.w9RequiredHeader = "Your next payout is on hold";
6412
4563
  /**
6413
- * @uiName W9 payment threshold alert description
4564
+ * @uiName W-9 payment threshold alert description
6414
4565
  */
6415
- 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}.";
6416
4575
  /**
6417
4576
  * @uiName Terms and Conditions text
6418
4577
  */
6419
4578
  this.termsAndConditions = "Terms and Conditions";
6420
4579
  /**
6421
- * @uiName W9 payment threshold alert button text
4580
+ * @uiName W-9 payment threshold alert button text
6422
4581
  */
6423
- this.w9RequiredButtonText = "Submit W9";
4582
+ this.w9RequiredButtonText = "Submit W-9";
6424
4583
  /**
6425
4584
  * Part of the alert displayed at the top of the page.
6426
4585
  * @uiName Form submission error message title
@@ -6488,11 +4647,6 @@ const TaxAndCashDashboard = class {
6488
4647
  this.invoiceEmptyStateHeader = "View your invoice details";
6489
4648
  /** @uiName Empty invoice table description */
6490
4649
  this.invoiceEmptyStateText = "Refer a friend to view the status of your invoices and rewards earned";
6491
- /**
6492
- * Displayed at the top of the page on all set up steps and on the dashboard.
6493
- * @uiName Page description
6494
- */
6495
- this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
6496
4650
  /**
6497
4651
  * @uiName Replace tax form modal header
6498
4652
  */
@@ -6509,7 +4663,12 @@ const TaxAndCashDashboard = class {
6509
4663
  * @uiName Cancel button label
6510
4664
  */
6511
4665
  this.cancelButton = "Cancel";
6512
- 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);
6513
4672
  }
6514
4673
  disconnectedCallback() { }
6515
4674
  getTextProps() {
@@ -6534,23 +4693,32 @@ const TaxAndCashDashboard = class {
6534
4693
  }
6535
4694
  };
6536
4695
  function useDemoTaxAndCashDashboard(props) {
4696
+ console.log("dashboard", { props });
4697
+ // @ts-ignore
6537
4698
  return cjs.cjs({
6538
4699
  states: {
6539
4700
  dateSubmitted: "today",
6540
4701
  documentType: "W9",
6541
- documentTypeString: "W9",
4702
+ documentTypeString: "W-9",
6542
4703
  status: "ACTIVE",
6543
4704
  country: "United States",
6544
- indirectTaxNumber: 55555555,
4705
+ indirectTaxNumber: "55555555",
6545
4706
  indirectTaxType: "Indirect Tax",
6546
- noFormNeeded: true,
4707
+ noFormNeeded: false,
6547
4708
  disabled: false,
6548
4709
  loading: false,
6549
4710
  showNewFormDialog: false,
6550
4711
  hasHold: false,
6551
- showVerifyIdentity: false,
4712
+ subRegion: "CA",
4713
+ subRegionTaxNumber: undefined,
4714
+ qstNumber: undefined,
4715
+ isBusinessEntity: false,
4716
+ province: undefined,
4717
+ notRegistered: true,
4718
+ loadingError: false,
6552
4719
  payoutStatus: "DONE",
6553
4720
  veriffLoading: false,
4721
+ canEditPayoutInfo: true,
6554
4722
  },
6555
4723
  callbacks: {
6556
4724
  onClick: () => console.debug("check step"),
@@ -6560,7 +4728,14 @@ function useDemoTaxAndCashDashboard(props) {
6560
4728
  onVerifyClick: () => console.log("verify"),
6561
4729
  },
6562
4730
  text: props.getTextProps(),
6563
- }, 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 });
6564
4739
  }
6565
4740
 
6566
4741
  const PHONE_EXTENSIONS = {
@@ -7534,19 +5709,19 @@ const PHONE_EXTENSIONS = {
7534
5709
  },
7535
5710
  };
7536
5711
 
7537
- const style$7 = {
5712
+ const style$6 = {
7538
5713
  FormWrapper: {},
7539
5714
  ErrorInput: {
7540
5715
  "&::part(base)": {
7541
- border: "1px solid var(--sl-color-danger-500)",
5716
+ border: "var(--sqm-border-thickness, 1px) solid var(--sqm-danger-color-border)",
7542
5717
  borderRadius: "var(--sl-input-border-radius-medium)",
7543
5718
  },
7544
5719
  "&::part(help-text)": {
7545
- color: "var(--sl-color-danger-500)",
5720
+ color: "var(--sqm-danger-color-text)",
7546
5721
  },
7547
5722
  },
7548
5723
  ErrorText: {
7549
- color: "var(--sl-color-danger-500)",
5724
+ color: "var(--sqm-danger-color-text)",
7550
5725
  marginTop: "10px",
7551
5726
  },
7552
5727
  TextContainer: {
@@ -7577,9 +5752,6 @@ const style$7 = {
7577
5752
  justifyContent: "flex-start",
7578
5753
  flexDirection: "column",
7579
5754
  },
7580
- DescriptionText: {
7581
- color: "var(--sl-color-neutral-500)",
7582
- },
7583
5755
  BoldText: {
7584
5756
  fontWeight: "bold",
7585
5757
  },
@@ -7588,28 +5760,8 @@ const style$7 = {
7588
5760
  borderRadius: "50%",
7589
5761
  },
7590
5762
  },
7591
- AlertContainer: {
7592
- "&::part(base)": {
7593
- backgroundColor: "var(--sl-color-red-100)",
7594
- borderTop: "none",
7595
- padding: "0 16px",
7596
- },
7597
- "& sl-icon::part(base)": {
7598
- color: "var(--sl-color-danger-500)",
7599
- },
7600
- },
7601
- PartnerAlertContainer: {
7602
- "&::part(base)": {
7603
- backgroundColor: "var(--sl-color-sky-100)",
7604
- borderTop: "none",
7605
- padding: "0 16px",
7606
- },
7607
- "& sl-icon::part(base)": {
7608
- color: "var(--sl-color-blue-500)",
7609
- },
7610
- },
7611
5763
  PageDescriptionText: {
7612
- color: "var(--sl-color-neutral-500)",
5764
+ color: "var(--sqm-text-subdued)",
7613
5765
  fontSize: "var(--sl-font-size-medium)",
7614
5766
  },
7615
5767
  PhoneInputsSection: {
@@ -7618,7 +5770,7 @@ const style$7 = {
7618
5770
  gap: "4px",
7619
5771
  "& p": {
7620
5772
  fontSize: "var(--sl-font-size-small)",
7621
- color: "var(--sl-input-label-color)",
5773
+ color: "var(--sqm-input-label-color)",
7622
5774
  fontWeight: "var(--sl-font-weight-semibold)",
7623
5775
  },
7624
5776
  },
@@ -7632,9 +5784,9 @@ const style$7 = {
7632
5784
  },
7633
5785
  },
7634
5786
  };
7635
- const sheet$6 = JSS.createStyleSheet(style$7);
7636
- const styleString$6 = sheet$6.toString();
7637
- const vanillaStyle$4 = `
5787
+ const sheet$5 = JSS.createStyleSheet(style$6);
5788
+ const styleString$5 = sheet$5.toString();
5789
+ const vanillaStyle$3 = `
7638
5790
  :host{
7639
5791
  display: block;
7640
5792
  }
@@ -7643,11 +5795,15 @@ const vanillaStyle$4 = `
7643
5795
  padding: 0;
7644
5796
  box-sizing: border-box;
7645
5797
  }
5798
+ a {
5799
+ color: var(--sqm-text);
5800
+ color: inherit !important;
5801
+ text-decoration: underline;
5802
+ }
7646
5803
 
7647
5804
  p {
7648
5805
  line-height: 18px;
7649
- color: var(--sl-color-gray-800);
7650
- font-size: var(--sl-font-size-small);
5806
+ font-size: var(--sl-font-size-small);
7651
5807
  }
7652
5808
 
7653
5809
  sl-radio-group::part(base) {
@@ -7658,11 +5814,163 @@ const vanillaStyle$4 = `
7658
5814
  sl-select#phoneNumberCountryCode::part(menu) {
7659
5815
  min-width: 250px;
7660
5816
  }
7661
- `;
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
+ `;
7662
5970
  const UserInfoFormView = (props) => {
7663
5971
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
7664
- const { states, states: { formState }, callbacks, text, refs, data, } = props;
7665
- const { classes } = sheet$6;
5972
+ const { states, states: { formState }, callbacks, text, refs, data: data$1, } = props;
5973
+ const { classes } = sheet$5;
7666
5974
  const bankingCollectionText = global.intl.formatMessage({
7667
5975
  id: "bankingCollectionText",
7668
5976
  defaultMessage: text.allowBankingCollection,
@@ -7670,7 +5978,7 @@ const UserInfoFormView = (props) => {
7670
5978
  termsAndConditionsLink: (index.h("a", { href: text.termsAndConditionsLink, target: "_blank" }, text.termsAndConditionsLabel)),
7671
5979
  });
7672
5980
  let regionLabel = undefined;
7673
- switch (data.regionLabelEnum) {
5981
+ switch (data$1.regionLabelEnum) {
7674
5982
  case "STATE":
7675
5983
  regionLabel = text.state;
7676
5984
  break;
@@ -7685,65 +5993,58 @@ const UserInfoFormView = (props) => {
7685
5993
  }
7686
5994
  return (index.h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
7687
5995
  index.h("style", { type: "text/css" },
7688
- styleString$6,
7689
- vanillaStyle$4),
5996
+ styleString$5,
5997
+ vanillaStyle$3),
7690
5998
  states.loadingError && (index.h("div", null,
7691
- index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$6.classes.AlertContainer },
7692
- index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
7693
- index.h("strong", null, text.error.loadingErrorAlertHeader),
7694
- index.h("br", null),
7695
- 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({
7696
6002
  id: "loadingErrorAlertDescription",
7697
6003
  defaultMessage: text.error.loadingErrorAlertDescription,
7698
6004
  }, {
7699
6005
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
7700
- })),
7701
- index.h("br", null))),
7702
- 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,
7703
6008
  index.h("div", { class: classes.TextContainer },
7704
6009
  index.h("div", null,
7705
6010
  !states.hideSteps && (index.h("p", null, global.intl.formatMessage({
7706
6011
  id: "formStep",
7707
6012
  defaultMessage: text.formStep,
7708
- }, { step: states.step, count: FORM_STEPS }))),
6013
+ }, { step: states.step, count: data.FORM_STEPS }))),
7709
6014
  index.h("h3", null, text.personalInformation),
7710
6015
  index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
7711
- ((_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 },
7712
- index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
7713
- index.h("strong", null, text.error.generalTitle),
7714
- index.h("br", null),
7715
- 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({
7716
6019
  id: "generalDescription",
7717
6020
  defaultMessage: text.error.generalDescription,
7718
6021
  }, {
7719
6022
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
7720
- }))),
7721
- (states.isPartner || states.isUser) && (index.h("sl-alert", { type: "primary", open: true, class: sheet$6.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
7722
- index.h("sl-icon", { slot: "icon", name: "info-circle" }),
7723
- index.h("strong", null, text.isPartnerAlertHeader),
7724
- index.h("br", null),
7725
- 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({
7726
6027
  id: "isPartnerAlertDescription",
7727
6028
  defaultMessage: text.isPartnerAlertDescription,
7728
6029
  }, {
7729
6030
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
7730
- }))),
6031
+ })))),
7731
6032
  index.h("div", null,
7732
6033
  index.h("div", { class: classes.InputContainer },
7733
- 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) ? {
7734
6035
  class: classes.ErrorInput,
7735
- helpText: sqmInvoiceTableView.formatErrorMessage(text.firstName, formState.errors.firstName),
6036
+ helpText: utils$1.formatErrorMessage(text.firstName, formState.errors.firstName),
7736
6037
  }
7737
6038
  : {}), { id: "firstName", name: "/firstName", required: true })),
7738
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) ? {
7739
6040
  class: classes.ErrorInput,
7740
- helpText: sqmInvoiceTableView.formatErrorMessage(text.lastName, formState.errors.lastName),
6041
+ helpText: utils$1.formatErrorMessage(text.lastName, formState.errors.lastName),
7741
6042
  }
7742
6043
  : {}), { id: "lastName", name: "/lastName", required: true })),
7743
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 }),
7744
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) ? {
7745
6046
  class: classes.ErrorInput,
7746
- helpText: sqmInvoiceTableView.formatErrorMessage(text.country, formState.errors.countryCode),
6047
+ helpText: utils$1.formatErrorMessage(text.country, formState.errors.countryCode),
7747
6048
  }
7748
6049
  : {}), { required: true, "onSl-select": (e) => callbacks.onFormChange("countryCode", e) }),
7749
6050
  index.h("sl-input", { class: classes.SearchInput, placeholder: text.searchForCountryText, onKeyDown: (e) => {
@@ -7751,8 +6052,8 @@ const UserInfoFormView = (props) => {
7751
6052
  e.stopPropagation();
7752
6053
  }, "onSl-input": (e) => {
7753
6054
  callbacks.setCountrySearch(e.target.value);
7754
- } }), (_e = data === null || data === void 0 ? void 0 : data.countries) === null || _e === void 0 ? void 0 :
7755
- _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 :
7756
6057
  _f.map((c) => (index.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } }, c.displayName)))),
7757
6058
  index.h("div", { class: classes.PhoneInputsSection },
7758
6059
  index.h("p", null, text.phoneNumber),
@@ -7766,13 +6067,13 @@ const UserInfoFormView = (props) => {
7766
6067
  e.stopPropagation();
7767
6068
  }, "onSl-input": (e) => {
7768
6069
  callbacks.setPhoneCountrySearch(e.target.value);
7769
- } }), (_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 :
7770
6071
  _h.map((c) => {
7771
6072
  var _a, _b;
7772
6073
  return (index.h("sl-menu-item", { value: c.countryCode },
7773
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 :
7774
6075
  _b.dial_code));
7775
- }), (_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 :
7776
6077
  _j.map((c) => {
7777
6078
  var _a, _b;
7778
6079
  return (index.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } },
@@ -7781,42 +6082,42 @@ const UserInfoFormView = (props) => {
7781
6082
  })),
7782
6083
  index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", id: "phoneNumber", name: "/phoneNumber", value: formState.phoneNumber, validationError: ({ value }) => {
7783
6084
  // Naive phone number validation
7784
- sqmInvoiceTableView.validateBillingField(/[a-zA-Z]+/, value) &&
7785
- sqmInvoiceTableView.formatErrorMessage(text.phoneNumber, text.error.fieldInvalidError);
6085
+ utils$1.validateBillingField(/[a-zA-Z]+/, value) &&
6086
+ utils$1.formatErrorMessage(text.phoneNumber, text.error.fieldInvalidError);
7786
6087
  }, disabled: states.disabled || states.isPartner }, (((_k = formState.errors) === null || _k === void 0 ? void 0 : _k.phoneNumber) ? {
7787
6088
  class: classes.ErrorInput,
7788
- helpText: sqmInvoiceTableView.formatErrorMessage(text.phoneNumber, formState.errors.phoneNumber),
6089
+ helpText: utils$1.formatErrorMessage(text.phoneNumber, formState.errors.phoneNumber),
7789
6090
  }
7790
6091
  : {}), { required: true })))),
7791
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 }) =>
7792
6093
  // Checks for non-ASCII characters
7793
- !sqmInvoiceTableView.validateBillingField(/^[\x20-\xFF]+$/, value) &&
7794
- 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) ? {
7795
6096
  class: classes.ErrorInput,
7796
- helpText: sqmInvoiceTableView.formatErrorMessage(text.address, formState.errors.address),
6097
+ helpText: utils$1.formatErrorMessage(text.address, formState.errors.address),
7797
6098
  }
7798
6099
  : {}), { required: true })),
7799
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 }) =>
7800
6101
  // Checks for non-ASCII characters
7801
- !sqmInvoiceTableView.validateBillingField(/^[\x20-\xFF]+$/, value) &&
7802
- 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) ? {
7803
6104
  class: classes.ErrorInput,
7804
- helpText: sqmInvoiceTableView.formatErrorMessage(text.city, formState.errors.city),
6105
+ helpText: utils$1.formatErrorMessage(text.city, formState.errors.city),
7805
6106
  }
7806
6107
  : {}), { required: true })),
7807
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) ? {
7808
6109
  class: classes.ErrorInput,
7809
- helpText: sqmInvoiceTableView.formatErrorMessage(text.state, formState.errors.state),
6110
+ helpText: utils$1.formatErrorMessage(text.state, formState.errors.state),
7810
6111
  }
7811
- : {}), { 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))))),
7812
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) ? {
7813
6114
  class: classes.ErrorInput,
7814
- helpText: sqmInvoiceTableView.formatErrorMessage(text.postalCode, formState.errors.postalCode),
6115
+ helpText: utils$1.formatErrorMessage(text.postalCode, formState.errors.postalCode),
7815
6116
  }
7816
6117
  : {}), { required: true })),
7817
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) ? {
7818
6119
  class: classes.ErrorInput,
7819
- helpText: sqmInvoiceTableView.formatErrorMessage(text.currency, formState.errors.currency),
6120
+ helpText: utils$1.formatErrorMessage(text.currency, formState.errors.currency),
7820
6121
  }
7821
6122
  : {}), { required: true, ref: (el) => (refs.currencyRef.current = el) }),
7822
6123
  index.h("sl-input", { class: classes.SearchInput, placeholder: text.searchForCurrencyText, onKeyDown: (e) => {
@@ -7824,49 +6125,53 @@ const UserInfoFormView = (props) => {
7824
6125
  e.stopPropagation();
7825
6126
  }, "onSl-input": (e) => {
7826
6127
  callbacks.setCurrencySearch(e.target.value);
7827
- } }), (_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 :
7828
6129
  _s.map((c) => (index.h("sl-menu-item", { value: c.currencyCode },
7829
6130
  c.currencyCode,
7830
6131
  " - ",
7831
- 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 :
7832
6133
  _t.map((c) => (index.h("sl-menu-item", { value: c.currencyCode, style: { display: "none" } },
7833
6134
  c.currencyCode,
7834
6135
  " - ",
7835
6136
  c.displayName)))),
7836
6137
  index.h("div", { class: classes.CheckboxWrapper },
7837
- 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) => {
7838
6139
  e.target.value = e.target.checked;
7839
6140
  }, disabled: states.isPartner ? false : states.disabled, required: true, value: formState.allowBankingCollection, id: "allowBankingCollection", name: "/allowBankingCollection" }, bankingCollectionText),
7840
- ((_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))))),
7841
6142
  index.h("sl-button", { type: "primary", disabled: states.isPartner ? false : states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton))))));
7842
6143
  };
7843
6144
 
7844
6145
  function useUserInfoForm(props) {
7845
6146
  var _a, _b, _c, _d;
7846
- const currencyRef = stencilHooks_module.useRef(undefined);
7847
- const phoneCountryRef = stencilHooks_module.useRef(undefined);
7848
- const formRef = stencilHooks_module.useRef(null);
7849
- const context = index_module.Fn(TAX_FORM_CONTEXT_NAMESPACE);
7850
- const countries = index_module.Fn(SORTED_COUNTRIES_NAMESPACE);
7851
- const [step, setStep] = index_module.Pn(TAX_CONTEXT_NAMESPACE);
7852
- const [userFormContext, setUserFormContext] = index_module.Pn(USER_FORM_CONTEXT_NAMESPACE);
7853
- const { data, loading, errors: userError, } = index_module.$n(USER_QUERY_NAMESPACE);
7854
- const _currencies = index_module.Fn(CURRENCIES_NAMESPACE);
7855
- const currencies = stencilHooks_module.useMemo(() => [...(_currencies || [])].sort((a, b) => a.displayName.localeCompare(b.displayName)), [_currencies]);
7856
- const [countrySearch, setCountrySearch] = stencilHooks_module.useState("");
7857
- const [phoneCountrySearch, setPhoneCountrySearch] = stencilHooks_module.useState("");
7858
- const [filteredCountries, setFilteredCountries] = stencilHooks_module.useState(countries || []);
7859
- const [filteredPhoneCountries, setFilteredPhoneCountries] = stencilHooks_module.useState(countries || []);
7860
- const [currencySearch, setCurrencySearch] = stencilHooks_module.useState("");
7861
- const [filteredCurrencies, setFilteredCurrencies] = stencilHooks_module.useState(currencies || []);
7862
- const [formErrors, setErrors] = stencilHooks_module.useState({});
7863
- 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(() => {
7864
6169
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
7865
- 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;
7866
6171
  if (!user || step !== "/1")
7867
6172
  return;
7868
6173
  // If form already filled out, skip initialising it
7869
- if (sqmInvoiceTableView.objectIsFull(userFormContext))
6174
+ if (utils$1.objectIsFull(userFormContext))
7870
6175
  return;
7871
6176
  // Prefer MI email if it was verified before this
7872
6177
  const email = ((_a = user.managedIdentity) === null || _a === void 0 ? void 0 : _a.emailVerified) ? user.managedIdentity.email
@@ -7903,7 +6208,7 @@ function useUserInfoForm(props) {
7903
6208
  postalCode: (_k = user.customFields) === null || _k === void 0 ? void 0 : _k.postalCode,
7904
6209
  });
7905
6210
  }
7906
- }, [data, step, userFormContext]);
6211
+ }, [data$1, step, userFormContext]);
7907
6212
  const onFormChange = (field, e) => {
7908
6213
  var _a, _b;
7909
6214
  const value = (_b = (_a = e.detail) === null || _a === void 0 ? void 0 : _a.item) === null || _b === void 0 ? void 0 : _b.__value;
@@ -7918,7 +6223,7 @@ function useUserInfoForm(props) {
7918
6223
  currencyRef.current.value = "";
7919
6224
  }
7920
6225
  };
7921
- stencilHooks_module.useEffect(() => {
6226
+ domContextHooks_module.useEffect(() => {
7922
6227
  if (!(countries === null || countries === void 0 ? void 0 : countries.length))
7923
6228
  return;
7924
6229
  if (countrySearch.trim() === "") {
@@ -7928,7 +6233,7 @@ function useUserInfoForm(props) {
7928
6233
  setFilteredCountries(countries.filter((c) => c.displayName.toLowerCase().includes(countrySearch.toLowerCase())) || []);
7929
6234
  }
7930
6235
  }, [countrySearch, countries]);
7931
- stencilHooks_module.useEffect(() => {
6236
+ domContextHooks_module.useEffect(() => {
7932
6237
  if (!(countries === null || countries === void 0 ? void 0 : countries.length))
7933
6238
  return;
7934
6239
  if (phoneCountrySearch.trim() === "") {
@@ -7938,7 +6243,7 @@ function useUserInfoForm(props) {
7938
6243
  setFilteredPhoneCountries(countries.filter((c) => c.displayName.toLowerCase().includes(phoneCountrySearch.toLowerCase())) || []);
7939
6244
  }
7940
6245
  }, [phoneCountrySearch, countries]);
7941
- stencilHooks_module.useEffect(() => {
6246
+ domContextHooks_module.useEffect(() => {
7942
6247
  if (!(currencies === null || currencies === void 0 ? void 0 : currencies.length))
7943
6248
  return;
7944
6249
  if (currencySearch.trim() === "") {
@@ -7990,14 +6295,12 @@ function useUserInfoForm(props) {
7990
6295
  postalCode: userData.postalCode,
7991
6296
  currency: userData.currency,
7992
6297
  });
7993
- // reset redirect hash
7994
- window.location.hash = "";
7995
6298
  const nextStep = context.overrideNextStep || "/2";
7996
6299
  setStep(nextStep);
7997
6300
  }
7998
6301
  const hasStates = ["ES", "AU", "US", "CA"].includes(userFormContext.countryCode);
7999
6302
  const regionObj = hasStates
8000
- ? 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]
8001
6304
  : {};
8002
6305
  return {
8003
6306
  setStep: setStep,
@@ -8030,8 +6333,8 @@ function useUserInfoForm(props) {
8030
6333
  disabled: loading,
8031
6334
  loadingError: !!(userError === null || userError === void 0 ? void 0 : userError.message),
8032
6335
  loading: loading,
8033
- 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),
8034
- 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),
8035
6338
  formState: {
8036
6339
  ...userFormContext,
8037
6340
  errors: formErrors,
@@ -8194,7 +6497,7 @@ const TaxForm = class {
8194
6497
  * @uiName Support link text
8195
6498
  */
8196
6499
  this.supportLink = "support team";
8197
- stencilHooks_module.h$1(this);
6500
+ domContextHooks_module.h$1(this);
8198
6501
  }
8199
6502
  disconnectedCallback() { }
8200
6503
  getTextProps() {
@@ -8214,19 +6517,20 @@ const TaxForm = class {
8214
6517
  }
8215
6518
  render() {
8216
6519
  const props = index_module.isDemo() ? useDemoUserInfoForm(this) : useUserInfoForm(this);
8217
- return (index.h(index.Host, null, index.h(UserInfoFormView, { data: props.data,
6520
+ return (index.h(UserInfoFormView, { data: props.data,
8218
6521
  // @ts-ignore
8219
6522
  states: props.states, callbacks: {
8220
6523
  ...props.callbacks,
8221
6524
  onSubmit: props.onSubmit,
8222
- }, text: props.text, refs: props.refs })));
6525
+ }, text: props.text, refs: props.refs }));
8223
6526
  }
8224
6527
  };
8225
6528
  function useDemoUserInfoForm(props) {
8226
- const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
6529
+ const setStep = index_module.En(data.TAX_CONTEXT_NAMESPACE);
6530
+ // @ts-ignore
8227
6531
  return cjs.cjs({
8228
6532
  setStep,
8229
- onSubmit: () => {
6533
+ onSubmit: async () => {
8230
6534
  setStep("/2");
8231
6535
  },
8232
6536
  onRadioClick: () => { },
@@ -8270,19 +6574,12 @@ function useDemoUserInfoForm(props) {
8270
6574
  }
8271
6575
 
8272
6576
  exports.sqm_banking_info_form = BankingInfoForm;
8273
- exports.sqm_code_verification = WidgetCodeVerification;
8274
6577
  exports.sqm_docusign_form = DocusignForm;
8275
6578
  exports.sqm_indirect_tax_form = IndirectTaxForm;
8276
6579
  exports.sqm_invoice_table = InvoiceTable;
8277
- exports.sqm_invoice_table_data_cell = InvoiceTableDataCell;
8278
6580
  exports.sqm_invoice_table_data_column = InvoiceTableDataColumn;
8279
- exports.sqm_invoice_table_date_cell = RewardTableDateCell;
8280
6581
  exports.sqm_invoice_table_date_column = InvoiceTableDateColumn;
8281
- exports.sqm_invoice_table_download_cell = InvoiceTableDownloadCell;
8282
6582
  exports.sqm_invoice_table_download_column = InvoiceTableGenericColumn;
8283
6583
  exports.sqm_payout_details_card = PayoutDetailsCard;
8284
- exports.sqm_table_cell = TableCell;
8285
- exports.sqm_table_row = TableRow;
8286
- exports.sqm_tax_and_cash = TaxAndCashMonolith;
8287
6584
  exports.sqm_tax_and_cash_dashboard = TaxAndCashDashboard;
8288
6585
  exports.sqm_user_info_form = TaxForm;