@saasquatch/mint-components 1.15.0-42 → 1.15.0-43

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 (596) hide show
  1. package/dist/cjs/{ErrorView-5504c2b6.js → ErrorView-b2fcf954.js} +1 -1
  2. package/dist/cjs/{GenericTableView-107ade89.js → GenericTableView-a9d0b798.js} +1 -1
  3. package/dist/cjs/IndirectTaxDetailsView-d0290a12.js +646 -0
  4. package/dist/cjs/{ShadowViewAddon-42af4b57.js → ShadowViewAddon-9cb7a310.js} +1002 -1002
  5. package/dist/cjs/{copy-text-view-af017955.js → copy-text-view-ee147291.js} +1 -1
  6. package/dist/cjs/data-6d96b89c.js +137 -0
  7. package/dist/cjs/{email-registration-view-996fb438.js → email-registration-view-dca94dc9.js} +1 -1
  8. package/dist/cjs/{extractProps-fd93ba62.js → extractProps-e9c55ba8.js} +14 -0
  9. package/dist/cjs/{global-b34bf5f2.js → global-d62c5561.js} +102 -95
  10. package/dist/cjs/{index-a43a63b4.js → index-a29c60ef.js} +0 -4
  11. package/dist/cjs/{index.module-39955732.js → index.module-ee84433d.js} +1 -1
  12. package/dist/cjs/loader.cjs.js +5 -5
  13. package/dist/cjs/{luxon-3b809948.js → luxon-2926d85f.js} +1 -1
  14. package/dist/cjs/mint-components.cjs.js +5 -5
  15. package/dist/cjs/{mockRewardData-6e4a90f9.js → mockRewardData-272e22d6.js} +1 -1
  16. package/dist/cjs/raisins-plop-target.cjs.entry.js +1 -1
  17. package/dist/cjs/{re-render-28fed959.js → re-render-b324deab.js} +2 -2
  18. package/dist/cjs/sqm-asset-card-view-21ddf04f.js +51 -0
  19. package/dist/cjs/sqm-asset-card.cjs.entry.js +45 -0
  20. package/dist/cjs/{sqm-banking-info-form_17.cjs.entry.js → sqm-banking-info-form_10.cjs.entry.js} +211 -1902
  21. package/dist/cjs/{sqm-base-registration-form-view-8847804c.js → sqm-base-registration-form-view-1c5094d3.js} +2 -2
  22. package/dist/cjs/sqm-big-stat_42.cjs.entry.js +88 -373
  23. package/dist/cjs/{sqm-close-button-view-5e85ac51.js → sqm-close-button-view-b297e933.js} +1 -1
  24. package/dist/cjs/sqm-close-button.cjs.entry.js +4 -4
  25. package/dist/cjs/sqm-code-verification.cjs.entry.js +342 -0
  26. package/dist/cjs/sqm-context-router.cjs.entry.js +3 -3
  27. package/dist/cjs/sqm-email-verification.cjs.entry.js +6 -6
  28. package/dist/cjs/sqm-empty_4.cjs.entry.js +5 -5
  29. package/dist/cjs/sqm-form-message.cjs.entry.js +2 -2
  30. package/dist/cjs/sqm-google-sign-in.cjs.entry.js +3 -3
  31. package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +3 -3
  32. package/dist/cjs/sqm-header-logo.cjs.entry.js +2 -2
  33. package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +6 -6
  34. package/dist/cjs/sqm-invoice-table-data-cell_5.cjs.entry.js +84 -0
  35. package/dist/cjs/{sqm-leaderboard-rank-view-6a1e63de.js → sqm-leaderboard-rank-view-7c6cebe3.js} +1 -1
  36. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +5 -5
  37. package/dist/cjs/{sqm-logout-current-user-view-b61c8bdf.js → sqm-logout-current-user-view-11d57c12.js} +1 -1
  38. package/dist/cjs/sqm-logout-current-user.cjs.entry.js +4 -4
  39. package/dist/cjs/{sqm-navigation-sidebar-item-view-06eb9721.js → sqm-navigation-sidebar-item-view-10b62df1.js} +2 -2
  40. package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +4 -4
  41. package/dist/cjs/{sqm-navigation-sidebar-view-50ee8796.js → sqm-navigation-sidebar-view-38a5227a.js} +1 -1
  42. package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +4 -4
  43. package/dist/cjs/sqm-pagination_3.cjs.entry.js +6 -6
  44. package/dist/cjs/sqm-password-field.cjs.entry.js +4 -4
  45. package/dist/cjs/sqm-popup-container.cjs.entry.js +3 -3
  46. package/dist/cjs/{sqm-portal-container-view-70eaf785.js → sqm-portal-container-view-4f15143a.js} +1 -1
  47. package/dist/cjs/{sqm-portal-email-verification-view-4100f28c.js → sqm-portal-email-verification-view-156accab.js} +3 -3
  48. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +6 -6
  49. package/dist/cjs/{sqm-portal-forgot-password-view-ba34601e.js → sqm-portal-forgot-password-view-fdd97c18.js} +3 -3
  50. package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +5 -5
  51. package/dist/cjs/sqm-portal-google-login.cjs.entry.js +7 -6
  52. package/dist/cjs/sqm-portal-google-registration-form.cjs.entry.js +8 -8
  53. package/dist/cjs/sqm-portal-login-view-0fbbda1b.js +58 -0
  54. package/dist/cjs/sqm-portal-logout.cjs.entry.js +3 -3
  55. package/dist/cjs/{sqm-portal-profile-view-1fc7fb29.js → sqm-portal-profile-view-f226725e.js} +3 -3
  56. package/dist/cjs/sqm-portal-profile.cjs.entry.js +7 -7
  57. package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +3 -3
  58. package/dist/cjs/{sqm-portal-registration-form-view-5a96c2f5.js → sqm-portal-registration-form-view-399f4eaf.js} +2 -2
  59. package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +7 -7
  60. package/dist/cjs/{sqm-portal-reset-password-view-25eb2099.js → sqm-portal-reset-password-view-0439a9e5.js} +2 -2
  61. package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +5 -5
  62. package/dist/cjs/{sqm-portal-verify-email-view-1c4e781f.js → sqm-portal-verify-email-view-05f72dec.js} +2 -2
  63. package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +5 -5
  64. package/dist/cjs/{sqm-qr-code-view-b18b42a8.js → sqm-qr-code-view-7ee9fa56.js} +2 -2
  65. package/dist/cjs/sqm-qr-code.cjs.entry.js +6 -6
  66. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +19 -19
  67. package/dist/cjs/sqm-referred-registration.cjs.entry.js +6 -6
  68. package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +3 -3
  69. package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +4 -4
  70. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +14 -14
  71. package/dist/cjs/sqm-route.cjs.entry.js +1 -1
  72. package/dist/cjs/sqm-scroll.cjs.entry.js +2 -2
  73. package/dist/cjs/sqm-stencilbook.cjs.entry.js +11116 -9786
  74. package/dist/cjs/sqm-tab.cjs.entry.js +4 -4
  75. package/dist/cjs/sqm-tabs.cjs.entry.js +5 -5
  76. package/dist/cjs/sqm-tax-and-cash.cjs.entry.js +1220 -0
  77. package/dist/cjs/{sqm-text-span-view-7a61ae4c.js → sqm-text-span-view-ce4c0178.js} +1 -1
  78. package/dist/cjs/sqm-text-span.cjs.entry.js +3 -3
  79. package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +14 -6
  80. package/dist/cjs/sqm-widget-verification.cjs.entry.js +20 -10
  81. package/dist/cjs/{stencil-hooks.module-62264802.js → stencil-hooks.module-3a336b0f.js} +1 -1
  82. package/dist/cjs/{useChildElements-e5fa605c.js → useChildElements-1b35d945.js} +2 -2
  83. package/dist/cjs/{useInstantAccessRegistration-86b7164c.js → useInstantAccessRegistration-0537e28e.js} +3 -3
  84. package/dist/cjs/{usePayoutStatus-f26f0467.js → usePayoutStatus-feeac99b.js} +10 -7
  85. package/dist/cjs/{usePortalLogin-bd975a79.js → usePortalLogin-63d896d1.js} +2 -57
  86. package/dist/cjs/{usePortalRegistrationForm-d28621de.js → usePortalRegistrationForm-f25d89e7.js} +3 -3
  87. package/dist/cjs/{useReferralCodes-a47dcbc2.js → useReferralCodes-82e8797b.js} +2 -2
  88. package/dist/cjs/{useReferralTable-19e7523a.js → useReferralTable-7c3f9600.js} +5 -5
  89. package/dist/cjs/{useRegistrationFormState-5f44ca80.js → useRegistrationFormState-7b820f0c.js} +2 -2
  90. package/dist/cjs/{useVerificationEmail-1496b993.js → useVerificationEmail-95a82767.js} +2 -2
  91. package/dist/cjs/{utilities-be3ce1f8.js → utilities-78f5e169.js} +2 -2
  92. package/dist/cjs/utils-ce18d1bc.js +105 -0
  93. package/dist/collection/collection-manifest.json +1 -0
  94. package/dist/collection/components/sqm-asset-card/AssetCard.stories.js +29 -0
  95. package/dist/collection/components/sqm-asset-card/sqm-asset-card-view.js +46 -0
  96. package/dist/collection/components/sqm-asset-card/sqm-asset-card.js +107 -0
  97. package/dist/collection/components/sqm-asset-card/useAssetCard.js +9 -0
  98. package/dist/collection/components/sqm-edit-profile/sqm-edit-profile-view.js +1 -1
  99. package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +1 -1
  100. package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password-view.js +2 -2
  101. package/dist/collection/components/sqm-portal-login/PortalLogin.stories.js +6 -9
  102. package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +1 -1
  103. package/dist/collection/components/sqm-portal-register/sqm-portal-register.js +2 -1
  104. package/dist/collection/components/sqm-referral-card/sqm-referral-card.js +9 -2
  105. package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +4 -4
  106. package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-status-cell.js +4 -4
  107. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +1 -1
  108. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.js +4 -4
  109. package/dist/collection/components/sqm-stencilbook/BrandSelector.js +24 -41
  110. package/dist/collection/components/sqm-stencilbook/Themes.js +36 -311
  111. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +81 -79
  112. package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +1 -1
  113. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.js +2 -2
  114. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-controller.js +39 -5
  115. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +41 -6
  116. package/dist/collection/components/tax-and-cash/TaxForm.stories.js +12 -8
  117. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +4 -6
  118. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +2 -2
  119. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +1 -1
  120. package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +1 -1
  121. package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +1 -1
  122. package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +2 -2
  123. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +2 -2
  124. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +2 -2
  125. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +2 -2
  126. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js +26 -1
  127. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/usePayoutDetailsCard.js +2 -2
  128. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +8 -5
  129. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +77 -28
  130. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +1 -1
  131. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +19 -4
  132. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +3 -3
  133. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +5 -4
  134. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +10 -10
  135. package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +3 -3
  136. package/dist/collection/global/styles.js +100 -93
  137. package/dist/collection/global/styles.ts +97 -177
  138. package/dist/collection/utils/parseStates.js +12 -0
  139. package/dist/esm/{ErrorView-eaafd6f5.js → ErrorView-48e2b969.js} +1 -1
  140. package/dist/esm/{GenericTableView-dd9be3ea.js → GenericTableView-3b6f9ccc.js} +1 -1
  141. package/dist/esm/IndirectTaxDetailsView-3be86bcf.js +639 -0
  142. package/dist/esm/{ShadowViewAddon-173ce794.js → ShadowViewAddon-d8cfd6c7.js} +1003 -1003
  143. package/dist/esm/{copy-text-view-38c7c3d5.js → copy-text-view-4a207b17.js} +1 -1
  144. package/dist/esm/data-a05c78ae.js +121 -0
  145. package/dist/esm/{email-registration-view-db81655f.js → email-registration-view-8782c01b.js} +1 -1
  146. package/dist/esm/{extractProps-ae1afbb3.js → extractProps-54064fb0.js} +14 -1
  147. package/dist/esm/{global-16971a34.js → global-632fb2fa.js} +102 -95
  148. package/dist/esm/{index-b3a06de8.js → index-91e7729f.js} +0 -4
  149. package/dist/esm/{index.module-d49ae5e7.js → index.module-89a79f66.js} +1 -1
  150. package/dist/esm/loader.js +5 -5
  151. package/dist/esm/{luxon-793b7f13.js → luxon-8d51c92b.js} +1 -1
  152. package/dist/esm/mint-components.js +5 -5
  153. package/dist/esm/{mockRewardData-bdc54f2e.js → mockRewardData-8bd1b356.js} +1 -1
  154. package/dist/esm/raisins-plop-target.entry.js +1 -1
  155. package/dist/esm/{re-render-789f9123.js → re-render-cc945f38.js} +2 -2
  156. package/dist/esm/sqm-asset-card-view-fe5db3c0.js +49 -0
  157. package/dist/esm/sqm-asset-card.entry.js +41 -0
  158. package/dist/esm/{sqm-banking-info-form_17.entry.js → sqm-banking-info-form_10.entry.js} +133 -1817
  159. package/dist/esm/{sqm-base-registration-form-view-193f1721.js → sqm-base-registration-form-view-d732a5df.js} +2 -2
  160. package/dist/esm/sqm-big-stat_42.entry.js +87 -372
  161. package/dist/esm/{sqm-close-button-view-2fa57229.js → sqm-close-button-view-bc2bc10e.js} +1 -1
  162. package/dist/esm/sqm-close-button.entry.js +4 -4
  163. package/dist/esm/sqm-code-verification.entry.js +338 -0
  164. package/dist/esm/sqm-context-router.entry.js +3 -3
  165. package/dist/esm/sqm-email-verification.entry.js +6 -6
  166. package/dist/esm/sqm-empty_4.entry.js +5 -5
  167. package/dist/esm/sqm-form-message.entry.js +2 -2
  168. package/dist/esm/sqm-google-sign-in.entry.js +3 -3
  169. package/dist/esm/sqm-graphql-client-provider.entry.js +3 -3
  170. package/dist/esm/sqm-header-logo.entry.js +2 -2
  171. package/dist/esm/sqm-instant-access-registration.entry.js +6 -6
  172. package/dist/esm/sqm-invoice-table-data-cell_5.entry.js +76 -0
  173. package/dist/esm/{sqm-leaderboard-rank-view-18baae5b.js → sqm-leaderboard-rank-view-84b3c539.js} +1 -1
  174. package/dist/esm/sqm-leaderboard-rank.entry.js +5 -5
  175. package/dist/esm/{sqm-logout-current-user-view-f21e54e3.js → sqm-logout-current-user-view-8ef8180f.js} +1 -1
  176. package/dist/esm/sqm-logout-current-user.entry.js +4 -4
  177. package/dist/esm/{sqm-navigation-sidebar-item-view-48b224fa.js → sqm-navigation-sidebar-item-view-6e046743.js} +2 -2
  178. package/dist/esm/sqm-navigation-sidebar-item.entry.js +4 -4
  179. package/dist/esm/{sqm-navigation-sidebar-view-6c13798c.js → sqm-navigation-sidebar-view-f898265a.js} +1 -1
  180. package/dist/esm/sqm-navigation-sidebar.entry.js +4 -4
  181. package/dist/esm/sqm-pagination_3.entry.js +6 -6
  182. package/dist/esm/sqm-password-field.entry.js +4 -4
  183. package/dist/esm/sqm-popup-container.entry.js +3 -3
  184. package/dist/esm/{sqm-portal-container-view-f0b1ccfc.js → sqm-portal-container-view-1683ae32.js} +1 -1
  185. package/dist/esm/{sqm-portal-email-verification-view-7ac99890.js → sqm-portal-email-verification-view-24ea7b3c.js} +3 -3
  186. package/dist/esm/sqm-portal-email-verification.entry.js +6 -6
  187. package/dist/esm/{sqm-portal-forgot-password-view-2628bc62.js → sqm-portal-forgot-password-view-55fc0873.js} +3 -3
  188. package/dist/esm/sqm-portal-forgot-password.entry.js +5 -5
  189. package/dist/esm/sqm-portal-google-login.entry.js +6 -5
  190. package/dist/esm/sqm-portal-google-registration-form.entry.js +8 -8
  191. package/dist/esm/sqm-portal-login-view-e870b4b0.js +56 -0
  192. package/dist/esm/sqm-portal-logout.entry.js +3 -3
  193. package/dist/esm/{sqm-portal-profile-view-c68753ea.js → sqm-portal-profile-view-9b4d7ec1.js} +3 -3
  194. package/dist/esm/sqm-portal-profile.entry.js +7 -7
  195. package/dist/esm/sqm-portal-protected-route.entry.js +3 -3
  196. package/dist/esm/{sqm-portal-registration-form-view-8bdc3804.js → sqm-portal-registration-form-view-5d651c04.js} +2 -2
  197. package/dist/esm/sqm-portal-registration-form.entry.js +7 -7
  198. package/dist/esm/{sqm-portal-reset-password-view-abef7286.js → sqm-portal-reset-password-view-6903828e.js} +2 -2
  199. package/dist/esm/sqm-portal-reset-password.entry.js +5 -5
  200. package/dist/esm/{sqm-portal-verify-email-view-33805220.js → sqm-portal-verify-email-view-01ac711f.js} +2 -2
  201. package/dist/esm/sqm-portal-verify-email.entry.js +5 -5
  202. package/dist/esm/{sqm-qr-code-view-358607d1.js → sqm-qr-code-view-62c10948.js} +2 -2
  203. package/dist/esm/sqm-qr-code.entry.js +6 -6
  204. package/dist/esm/sqm-referral-table_11.entry.js +19 -19
  205. package/dist/esm/sqm-referred-registration.entry.js +6 -6
  206. package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +3 -3
  207. package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +4 -4
  208. package/dist/esm/sqm-rewards-table_9.entry.js +14 -14
  209. package/dist/esm/sqm-route.entry.js +1 -1
  210. package/dist/esm/sqm-scroll.entry.js +2 -2
  211. package/dist/esm/sqm-stencilbook.entry.js +11452 -10122
  212. package/dist/esm/sqm-tab.entry.js +4 -4
  213. package/dist/esm/sqm-tabs.entry.js +5 -5
  214. package/dist/esm/sqm-tax-and-cash.entry.js +1216 -0
  215. package/dist/esm/{sqm-text-span-view-4c17b8c9.js → sqm-text-span-view-cd3902e5.js} +1 -1
  216. package/dist/esm/sqm-text-span.entry.js +3 -3
  217. package/dist/esm/sqm-widget-verification-controller.entry.js +14 -6
  218. package/dist/esm/sqm-widget-verification.entry.js +20 -10
  219. package/dist/esm/{stencil-hooks.module-20ad2b5f.js → stencil-hooks.module-4bc38af4.js} +1 -1
  220. package/dist/esm/{useChildElements-0ca9a015.js → useChildElements-7945ae56.js} +2 -2
  221. package/dist/esm/{useInstantAccessRegistration-b224f3ce.js → useInstantAccessRegistration-dc4ad9f2.js} +3 -3
  222. package/dist/esm/{usePayoutStatus-3768c8c3.js → usePayoutStatus-fed17fc9.js} +10 -7
  223. package/dist/esm/{usePortalLogin-2b813acc.js → usePortalLogin-ef647a50.js} +3 -57
  224. package/dist/esm/{usePortalRegistrationForm-61bf948d.js → usePortalRegistrationForm-4b35a357.js} +3 -3
  225. package/dist/esm/{useReferralCodes-0b798295.js → useReferralCodes-8f75921a.js} +2 -2
  226. package/dist/esm/{useReferralTable-c1511d9d.js → useReferralTable-b3876ed6.js} +5 -5
  227. package/dist/esm/{useRegistrationFormState-2db047e9.js → useRegistrationFormState-d6f33135.js} +2 -2
  228. package/dist/esm/{useVerificationEmail-085eda87.js → useVerificationEmail-edc318cb.js} +2 -2
  229. package/dist/esm/{utilities-6341d9fd.js → utilities-5b0ca040.js} +2 -2
  230. package/dist/esm/utils-1654e233.js +97 -0
  231. package/dist/esm-es5/{ErrorView-eaafd6f5.js → ErrorView-48e2b969.js} +1 -1
  232. package/dist/esm-es5/{GenericTableView-dd9be3ea.js → GenericTableView-3b6f9ccc.js} +1 -1
  233. package/dist/esm-es5/IndirectTaxDetailsView-3be86bcf.js +1 -0
  234. package/dist/esm-es5/ShadowViewAddon-d8cfd6c7.js +1 -0
  235. package/dist/esm-es5/{copy-text-view-38c7c3d5.js → copy-text-view-4a207b17.js} +1 -1
  236. package/dist/esm-es5/data-a05c78ae.js +1 -0
  237. package/dist/esm-es5/{email-registration-view-db81655f.js → email-registration-view-8782c01b.js} +1 -1
  238. package/dist/esm-es5/extractProps-54064fb0.js +1 -0
  239. package/dist/esm-es5/{global-16971a34.js → global-632fb2fa.js} +5 -5
  240. package/dist/esm-es5/{index-b3a06de8.js → index-91e7729f.js} +1 -1
  241. package/dist/esm-es5/{index.module-d49ae5e7.js → index.module-89a79f66.js} +1 -1
  242. package/dist/esm-es5/loader.js +1 -1
  243. package/dist/esm-es5/{luxon-793b7f13.js → luxon-8d51c92b.js} +1 -1
  244. package/dist/esm-es5/mint-components.js +1 -1
  245. package/dist/esm-es5/{mockRewardData-bdc54f2e.js → mockRewardData-8bd1b356.js} +1 -1
  246. package/dist/esm-es5/raisins-plop-target.entry.js +1 -1
  247. package/dist/esm-es5/{re-render-789f9123.js → re-render-cc945f38.js} +1 -1
  248. package/dist/esm-es5/sqm-asset-card-view-fe5db3c0.js +1 -0
  249. package/dist/esm-es5/sqm-asset-card.entry.js +1 -0
  250. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -0
  251. package/dist/esm-es5/{sqm-base-registration-form-view-193f1721.js → sqm-base-registration-form-view-d732a5df.js} +1 -1
  252. package/dist/esm-es5/sqm-big-stat_42.entry.js +1 -1
  253. package/dist/esm-es5/{sqm-close-button-view-2fa57229.js → sqm-close-button-view-bc2bc10e.js} +1 -1
  254. package/dist/esm-es5/sqm-close-button.entry.js +1 -1
  255. package/dist/esm-es5/sqm-code-verification.entry.js +1 -0
  256. package/dist/esm-es5/sqm-context-router.entry.js +1 -1
  257. package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
  258. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  259. package/dist/esm-es5/sqm-form-message.entry.js +1 -1
  260. package/dist/esm-es5/sqm-google-sign-in.entry.js +1 -1
  261. package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
  262. package/dist/esm-es5/sqm-header-logo.entry.js +1 -1
  263. package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
  264. package/dist/esm-es5/sqm-invoice-table-data-cell_5.entry.js +1 -0
  265. package/dist/esm-es5/{sqm-leaderboard-rank-view-18baae5b.js → sqm-leaderboard-rank-view-84b3c539.js} +1 -1
  266. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  267. package/dist/esm-es5/{sqm-logout-current-user-view-f21e54e3.js → sqm-logout-current-user-view-8ef8180f.js} +1 -1
  268. package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
  269. package/dist/esm-es5/{sqm-navigation-sidebar-item-view-48b224fa.js → sqm-navigation-sidebar-item-view-6e046743.js} +1 -1
  270. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  271. package/dist/esm-es5/{sqm-navigation-sidebar-view-6c13798c.js → sqm-navigation-sidebar-view-f898265a.js} +1 -1
  272. package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
  273. package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
  274. package/dist/esm-es5/sqm-password-field.entry.js +1 -1
  275. package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
  276. package/dist/esm-es5/{sqm-portal-container-view-f0b1ccfc.js → sqm-portal-container-view-1683ae32.js} +1 -1
  277. package/dist/esm-es5/{sqm-portal-email-verification-view-7ac99890.js → sqm-portal-email-verification-view-24ea7b3c.js} +1 -1
  278. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  279. package/dist/esm-es5/{sqm-portal-forgot-password-view-2628bc62.js → sqm-portal-forgot-password-view-55fc0873.js} +1 -1
  280. package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
  281. package/dist/esm-es5/sqm-portal-google-login.entry.js +1 -1
  282. package/dist/esm-es5/sqm-portal-google-registration-form.entry.js +1 -1
  283. package/dist/esm-es5/sqm-portal-login-view-e870b4b0.js +1 -0
  284. package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
  285. package/dist/esm-es5/{sqm-portal-profile-view-c68753ea.js → sqm-portal-profile-view-9b4d7ec1.js} +1 -1
  286. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  287. package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
  288. package/dist/esm-es5/{sqm-portal-registration-form-view-8bdc3804.js → sqm-portal-registration-form-view-5d651c04.js} +1 -1
  289. package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
  290. package/dist/esm-es5/{sqm-portal-reset-password-view-abef7286.js → sqm-portal-reset-password-view-6903828e.js} +1 -1
  291. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  292. package/dist/esm-es5/{sqm-portal-verify-email-view-33805220.js → sqm-portal-verify-email-view-01ac711f.js} +1 -1
  293. package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
  294. package/dist/esm-es5/{sqm-qr-code-view-358607d1.js → sqm-qr-code-view-62c10948.js} +1 -1
  295. package/dist/esm-es5/sqm-qr-code.entry.js +1 -1
  296. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  297. package/dist/esm-es5/sqm-referred-registration.entry.js +1 -1
  298. package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -1
  299. package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
  300. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  301. package/dist/esm-es5/sqm-route.entry.js +1 -1
  302. package/dist/esm-es5/sqm-scroll.entry.js +1 -1
  303. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  304. package/dist/esm-es5/sqm-tab.entry.js +1 -1
  305. package/dist/esm-es5/sqm-tabs.entry.js +1 -1
  306. package/dist/esm-es5/sqm-tax-and-cash.entry.js +1 -0
  307. package/dist/esm-es5/{sqm-text-span-view-4c17b8c9.js → sqm-text-span-view-cd3902e5.js} +1 -1
  308. package/dist/esm-es5/sqm-text-span.entry.js +1 -1
  309. package/dist/esm-es5/sqm-widget-verification-controller.entry.js +1 -1
  310. package/dist/esm-es5/sqm-widget-verification.entry.js +1 -1
  311. package/dist/esm-es5/{stencil-hooks.module-20ad2b5f.js → stencil-hooks.module-4bc38af4.js} +1 -1
  312. package/dist/esm-es5/{useChildElements-0ca9a015.js → useChildElements-7945ae56.js} +1 -1
  313. package/dist/esm-es5/{useInstantAccessRegistration-b224f3ce.js → useInstantAccessRegistration-dc4ad9f2.js} +1 -1
  314. package/dist/esm-es5/{usePayoutStatus-3768c8c3.js → usePayoutStatus-fed17fc9.js} +2 -2
  315. package/dist/esm-es5/usePortalLogin-ef647a50.js +1 -0
  316. package/dist/esm-es5/{usePortalRegistrationForm-61bf948d.js → usePortalRegistrationForm-4b35a357.js} +1 -1
  317. package/dist/esm-es5/{useReferralCodes-0b798295.js → useReferralCodes-8f75921a.js} +1 -1
  318. package/dist/esm-es5/{useReferralTable-c1511d9d.js → useReferralTable-b3876ed6.js} +1 -1
  319. package/dist/esm-es5/{useRegistrationFormState-2db047e9.js → useRegistrationFormState-d6f33135.js} +1 -1
  320. package/dist/esm-es5/{useVerificationEmail-085eda87.js → useVerificationEmail-edc318cb.js} +1 -1
  321. package/dist/esm-es5/{utilities-6341d9fd.js → utilities-5b0ca040.js} +1 -1
  322. package/dist/esm-es5/utils-1654e233.js +1 -0
  323. package/dist/mint-components/global/styles.ts +97 -177
  324. package/dist/mint-components/mint-components.esm.js +1 -1
  325. package/dist/mint-components/mint-components.js +1 -1
  326. package/dist/mint-components/{p-88e3b87a.entry.js → p-042642d3.entry.js} +1 -1
  327. package/dist/mint-components/p-04a6e457.entry.js +1 -0
  328. package/dist/mint-components/{p-68043f30.js → p-057f5402.js} +1 -1
  329. package/dist/mint-components/p-05f29f64.js +1 -0
  330. package/dist/mint-components/p-06ce54e2.entry.js +258 -0
  331. package/dist/mint-components/p-0797a946.js +1 -0
  332. package/dist/mint-components/p-0984523b.js +1 -0
  333. package/dist/mint-components/p-0a37a288.system.entry.js +1 -0
  334. package/dist/mint-components/{p-73b3e5a9.system.entry.js → p-0a8a6d45.system.entry.js} +1 -1
  335. package/dist/mint-components/p-0b3218a5.entry.js +1 -0
  336. package/dist/mint-components/{p-b6911812.system.js → p-0df294ad.system.js} +1 -1
  337. package/dist/mint-components/p-0e32981f.js +1 -0
  338. package/dist/mint-components/p-0f76b2dd.entry.js +93 -0
  339. package/dist/mint-components/{p-3466bfaa.js → p-11dff275.js} +2 -2
  340. package/dist/mint-components/p-127e66c2.system.js +1 -0
  341. package/dist/mint-components/{p-692e8ff2.system.entry.js → p-12e61414.system.entry.js} +1 -1
  342. package/dist/mint-components/{p-7f499d2f.system.js → p-13ed8586.system.js} +1 -1
  343. package/dist/mint-components/p-1513309d.entry.js +1 -0
  344. package/dist/mint-components/p-155cf177.system.js +1 -0
  345. package/dist/mint-components/{p-dccfe305.system.entry.js → p-18425f38.system.entry.js} +1 -1
  346. package/dist/mint-components/{p-d63e5657.entry.js → p-1878da9b.entry.js} +2 -2
  347. package/dist/mint-components/p-19ccb4ce.js +1 -0
  348. package/dist/mint-components/{p-a9be22a6.system.entry.js → p-1b3ab15a.system.entry.js} +1 -1
  349. package/dist/mint-components/{p-055e6ebd.system.entry.js → p-1fa9ed0d.system.entry.js} +1 -1
  350. package/dist/mint-components/{p-64997b59.system.js → p-223dd3f7.system.js} +1 -1
  351. package/dist/mint-components/p-229f797b.js +1 -0
  352. package/dist/mint-components/{p-00791abc.js → p-266a8b4d.js} +1 -1
  353. package/dist/mint-components/p-275b4767.entry.js +1 -0
  354. package/dist/mint-components/{p-9cc40be1.entry.js → p-284e4ed5.entry.js} +1 -1
  355. package/dist/mint-components/{p-84079726.entry.js → p-2ae0e06a.entry.js} +1 -1
  356. package/dist/mint-components/{p-9713e9a9.entry.js → p-2bbff88f.entry.js} +1 -1
  357. package/dist/mint-components/p-2d52e2d7.system.js +1 -0
  358. package/dist/mint-components/{p-29e61db2.entry.js → p-2df6ce8f.entry.js} +2 -2
  359. package/dist/mint-components/p-301ddcaa.system.entry.js +1 -0
  360. package/dist/mint-components/p-32a47b41.system.js +1 -0
  361. package/dist/mint-components/p-32d60c34.entry.js +16 -0
  362. package/dist/mint-components/{p-1e07c5b4.system.js → p-33f640f6.system.js} +1 -1
  363. package/dist/mint-components/{p-67ca8443.system.entry.js → p-36ffebd8.system.entry.js} +1 -1
  364. package/dist/mint-components/p-38fc919b.entry.js +1 -0
  365. package/dist/mint-components/{p-c9592908.system.entry.js → p-3a21f8f9.system.entry.js} +1 -1
  366. package/dist/mint-components/{p-12fd7ee9.system.js → p-3a62a7e2.system.js} +1 -1
  367. package/dist/mint-components/{p-10c2a48c.system.js → p-3c3aab4c.system.js} +1 -1
  368. package/dist/mint-components/{p-33b13e55.system.entry.js → p-3e4e74a2.system.entry.js} +1 -1
  369. package/dist/mint-components/{p-74eaa3c0.js → p-3f7b81b8.js} +2 -2
  370. package/dist/mint-components/{p-1f82181b.system.entry.js → p-41d051b1.system.entry.js} +1 -1
  371. package/dist/mint-components/{p-8278225e.entry.js → p-44891949.entry.js} +1 -1
  372. package/dist/mint-components/{p-968e5a9e.system.entry.js → p-450a7705.system.entry.js} +1 -1
  373. package/dist/mint-components/{p-4115e328.system.entry.js → p-457962b7.system.entry.js} +1 -1
  374. package/dist/mint-components/p-46a672e4.entry.js +1 -0
  375. package/dist/mint-components/{p-88e32c4a.system.js → p-48135f99.system.js} +1 -1
  376. package/dist/mint-components/p-4b42b756.entry.js +1 -0
  377. package/dist/mint-components/{p-4204a6e3.entry.js → p-4b6dc0e5.entry.js} +1 -1
  378. package/dist/mint-components/p-4b9789a2.system.js +1 -0
  379. package/dist/mint-components/p-4bb1c4b2.system.js +1 -0
  380. package/dist/mint-components/p-4cbd7eec.js +394 -0
  381. package/dist/mint-components/p-4d478108.system.entry.js +1 -0
  382. package/dist/mint-components/{p-4b12067f.js → p-4e451f75.js} +1 -1
  383. package/dist/mint-components/p-4e526a94.js +1 -0
  384. package/dist/mint-components/{p-6578ea31.system.js → p-505951d2.system.js} +1 -1
  385. package/dist/mint-components/{p-0a1666ef.system.entry.js → p-51aa8c38.system.entry.js} +1 -1
  386. package/dist/mint-components/p-527216de.system.js +1 -0
  387. package/dist/mint-components/p-52d15f87.system.js +1 -0
  388. package/dist/mint-components/p-5488fdd9.system.js +1 -0
  389. package/dist/mint-components/{p-34b652a9.system.js → p-54b0b768.system.js} +1 -1
  390. package/dist/mint-components/{p-e7aa4f3b.system.js → p-59274a91.system.js} +1 -1
  391. package/dist/mint-components/{p-de3ef27e.js → p-5bedb58c.js} +1 -1
  392. package/dist/mint-components/p-5c5964e0.js +1 -0
  393. package/dist/mint-components/p-5d407714.system.entry.js +1 -0
  394. package/dist/mint-components/p-5eebc8b4.system.entry.js +1 -0
  395. package/dist/mint-components/{p-37c4ae42.entry.js → p-5ef6de10.entry.js} +1 -1
  396. package/dist/mint-components/p-637c0357.system.entry.js +1 -0
  397. package/dist/mint-components/p-65ba9e94.entry.js +1 -0
  398. package/dist/mint-components/{p-99fb2a50.js → p-66a2b1a4.js} +1 -1
  399. package/dist/mint-components/{p-028d61de.entry.js → p-66d22d46.entry.js} +1 -1
  400. package/dist/mint-components/{p-7b4f0dbc.js → p-674b82ac.js} +1 -1
  401. package/dist/mint-components/p-6798cad1.system.js +1 -0
  402. package/dist/mint-components/{p-5cd3030b.system.entry.js → p-6a49b077.system.entry.js} +1 -1
  403. package/dist/mint-components/{p-64e3e87a.entry.js → p-6a5f57d7.entry.js} +3 -3
  404. package/dist/mint-components/{p-42b62299.system.entry.js → p-6a8d9def.system.entry.js} +1 -1
  405. package/dist/mint-components/p-6b7a595f.system.js +1 -0
  406. package/dist/mint-components/{p-fca47a45.system.js → p-6cd4f2b1.system.js} +1 -1
  407. package/dist/mint-components/{p-037da77e.js → p-6d2f5a1d.js} +2 -2
  408. package/dist/mint-components/{p-02c92db1.system.js → p-6d9e52c7.system.js} +1 -1
  409. package/dist/mint-components/p-6eaf9c57.entry.js +1 -0
  410. package/dist/mint-components/{p-3b7c875b.system.entry.js → p-6fa624ff.system.entry.js} +1 -1
  411. package/dist/mint-components/p-704f162e.entry.js +1 -0
  412. package/dist/mint-components/{p-4254a9b6.js → p-726a9924.js} +1 -1
  413. package/dist/mint-components/{p-d54fa68e.entry.js → p-731d06a9.entry.js} +1 -1
  414. package/dist/mint-components/{p-67ad2252.system.js → p-74afdafb.system.js} +1 -1
  415. package/dist/mint-components/{p-dbaab44b.system.js → p-767485b8.system.js} +1 -1
  416. package/dist/mint-components/{p-16dbd9cb.js → p-7adb141e.js} +1 -1
  417. package/dist/mint-components/{p-167be4b9.system.js → p-7c2b9fe4.system.js} +1 -1
  418. package/dist/mint-components/{p-4d8e3766.system.entry.js → p-7dabdca6.system.entry.js} +1 -1
  419. package/dist/mint-components/{p-04007292.system.js → p-8175e85f.system.js} +1 -1
  420. package/dist/mint-components/{p-3eba9036.js → p-82113e37.js} +1 -1
  421. package/dist/mint-components/{p-7d456d0a.system.entry.js → p-8362cb4c.system.entry.js} +1 -1
  422. package/dist/mint-components/{p-6cff599f.system.js → p-8413ade9.system.js} +1 -1
  423. package/dist/mint-components/{p-8f6e124b.system.entry.js → p-846aff6a.system.entry.js} +1 -1
  424. package/dist/mint-components/p-84a78d09.entry.js +1 -0
  425. package/dist/mint-components/p-8568a6ef.entry.js +1 -0
  426. package/dist/mint-components/{p-322c1e5e.entry.js → p-865f812e.entry.js} +1 -1
  427. package/dist/mint-components/p-8abfeff8.entry.js +1 -0
  428. package/dist/mint-components/p-8c23d1b8.js +1 -0
  429. package/dist/mint-components/p-8d9d04b7.system.entry.js +1 -0
  430. package/dist/mint-components/p-8feb4180.entry.js +1 -0
  431. package/dist/mint-components/{p-66ac6bed.js → p-94a876b9.js} +1 -1
  432. package/dist/mint-components/{p-c3dce602.system.entry.js → p-96431b4f.system.entry.js} +1 -1
  433. package/dist/mint-components/{p-27201067.system.js → p-96e339f6.system.js} +20 -20
  434. package/dist/mint-components/p-9711efb7.entry.js +1 -0
  435. package/dist/mint-components/{p-5efed40f.system.js → p-9721a29a.system.js} +2 -2
  436. package/dist/mint-components/p-97d4d651.system.js +1 -0
  437. package/dist/mint-components/{p-ea1eed5d.js → p-98698131.js} +1 -1
  438. package/dist/mint-components/p-9acb5038.js +1 -0
  439. package/dist/mint-components/{p-99a82e5a.system.entry.js → p-9acf0b39.system.entry.js} +1 -1
  440. package/dist/mint-components/{p-efd2b6ec.system.entry.js → p-9b6a0152.system.entry.js} +1 -1
  441. package/dist/mint-components/{p-cfa40c9b.system.entry.js → p-9d41d676.system.entry.js} +1 -1
  442. package/dist/mint-components/{p-470c9c64.system.js → p-9f2edf59.system.js} +1 -1
  443. package/dist/mint-components/{p-d2066cb0.js → p-a1e17fd2.js} +1 -1
  444. package/dist/mint-components/p-a27a15c5.system.entry.js +1 -0
  445. package/dist/mint-components/{p-84f3732f.system.js → p-a3383f54.system.js} +1 -1
  446. package/dist/mint-components/{p-c1821c6d.entry.js → p-a3e68251.entry.js} +1 -1
  447. package/dist/mint-components/{p-d533917f.system.entry.js → p-a572db9b.system.entry.js} +1 -1
  448. package/dist/mint-components/{p-238fcec6.entry.js → p-a60d5315.entry.js} +1 -1
  449. package/dist/mint-components/{p-2f2bced4.system.js → p-a71b9154.system.js} +1 -1
  450. package/dist/mint-components/p-a8cc450b.system.entry.js +1 -0
  451. package/dist/mint-components/p-a91e7c05.system.entry.js +1 -0
  452. package/dist/mint-components/{p-572ec8d4.js → p-a9f4ddb1.js} +1 -1
  453. package/dist/mint-components/{p-4edcf988.system.entry.js → p-af516659.system.entry.js} +1 -1
  454. package/dist/mint-components/p-b637f1e4.js +1 -0
  455. package/dist/mint-components/{p-71a0adcf.entry.js → p-b6761073.entry.js} +1 -1
  456. package/dist/mint-components/{p-e72c2b09.entry.js → p-b73a4df4.entry.js} +2 -2
  457. package/dist/mint-components/{p-1d46f8fa.system.entry.js → p-b7d1469d.system.entry.js} +1 -1
  458. package/dist/mint-components/{p-5fbbc259.system.entry.js → p-bb6e411d.system.entry.js} +1 -1
  459. package/dist/mint-components/{p-69e77f43.js → p-bdd80fce.js} +1 -1
  460. package/dist/mint-components/{p-799d62fe.entry.js → p-be89074c.entry.js} +1 -1
  461. package/dist/mint-components/p-bfc7cfc0.system.js +1 -0
  462. package/dist/mint-components/p-c0b07067.system.js +1 -0
  463. package/dist/mint-components/{p-20b2f691.js → p-c0f19490.js} +1 -1
  464. package/dist/mint-components/p-c1b1f8ae.system.entry.js +1 -0
  465. package/dist/mint-components/{p-df34f189.system.entry.js → p-c2fdd608.system.entry.js} +1 -1
  466. package/dist/mint-components/p-c75a3b4a.js +103 -0
  467. package/dist/mint-components/p-c8a7e3ba.system.entry.js +1 -0
  468. package/dist/mint-components/{p-ddf3c05e.js → p-c96a25c6.js} +1 -1
  469. package/dist/mint-components/p-c9745c8f.system.js +1 -0
  470. package/dist/mint-components/{p-0e73c48c.system.js → p-ca9e0322.system.js} +1 -1
  471. package/dist/mint-components/{p-8408b84b.entry.js → p-cd0ee247.entry.js} +1 -1
  472. package/dist/mint-components/{p-35b2fde0.js → p-cd651f81.js} +1 -1
  473. package/dist/mint-components/{p-4fc78f20.system.entry.js → p-cf157c6e.system.entry.js} +1 -1
  474. package/dist/mint-components/{p-0714554e.system.entry.js → p-d12e9cfd.system.entry.js} +1 -1
  475. package/dist/mint-components/{p-a45680fe.js → p-d1ae7a2d.js} +1 -1
  476. package/dist/mint-components/{p-30826d8f.system.entry.js → p-d5b3397c.system.entry.js} +1 -1
  477. package/dist/mint-components/{p-5cff2ac4.js → p-d6352d15.js} +1 -1
  478. package/dist/mint-components/{p-73feb66f.js → p-d6831af5.js} +2 -2
  479. package/dist/mint-components/{p-edf6bf2e.system.entry.js → p-d94a4d50.system.entry.js} +1 -1
  480. package/dist/mint-components/{p-c67034c1.entry.js → p-da71337b.entry.js} +1 -1
  481. package/dist/mint-components/{p-27bb9d05.entry.js → p-da7708a7.entry.js} +1 -1
  482. package/dist/mint-components/{p-0d3e4788.entry.js → p-dbb83730.entry.js} +1 -1
  483. package/dist/mint-components/{p-6c0c466f.system.js → p-dbc0e4f8.system.js} +1 -1
  484. package/dist/mint-components/{p-1238fbd0.js → p-dc293b10.js} +27 -27
  485. package/dist/mint-components/{p-b1ddc706.js → p-de136dd3.js} +1 -1
  486. package/dist/mint-components/{p-27903fca.entry.js → p-df223bff.entry.js} +1 -1
  487. package/dist/mint-components/{p-be725c96.entry.js → p-e1e62d55.entry.js} +1 -1
  488. package/dist/mint-components/{p-7371218f.system.entry.js → p-e217afd9.system.entry.js} +1 -1
  489. package/dist/mint-components/p-e2705fbe.system.js +1 -0
  490. package/dist/mint-components/{p-204861a6.js → p-e309a219.js} +1 -1
  491. package/dist/mint-components/{p-07dc6d68.js → p-e518a60d.js} +1 -1
  492. package/dist/mint-components/p-e55aafe9.system.js +1 -0
  493. package/dist/mint-components/p-e5d9e709.entry.js +13 -0
  494. package/dist/mint-components/p-e8ffcc68.entry.js +11 -0
  495. package/dist/mint-components/p-eb998f7b.entry.js +9 -0
  496. package/dist/mint-components/p-ee6ec12d.entry.js +11 -0
  497. package/dist/mint-components/p-f26aedcd.system.js +1 -0
  498. package/dist/mint-components/{p-4e5dff09.system.entry.js → p-f4a72903.system.entry.js} +1 -1
  499. package/dist/mint-components/p-f53f5304.system.entry.js +1 -0
  500. package/dist/mint-components/p-f708da7b.js +1 -0
  501. package/dist/mint-components/p-f8175201.system.js +1 -0
  502. package/dist/mint-components/{p-bdb9e05a.system.entry.js → p-fa37513e.system.entry.js} +1 -1
  503. package/dist/mint-components/{p-43ce09f0.entry.js → p-faba3198.entry.js} +1 -1
  504. package/dist/mint-components/p-fb13065a.js +1 -0
  505. package/dist/mint-components/{p-5500bd38.js → p-fb584d7a.js} +1 -1
  506. package/dist/mint-components/{p-71271fbd.system.js → p-fbef4ecb.system.js} +1 -1
  507. package/dist/types/components/sqm-asset-card/AssetCard.stories.d.ts +7 -0
  508. package/dist/types/components/sqm-asset-card/sqm-asset-card-view.d.ts +8 -0
  509. package/dist/types/components/sqm-asset-card/sqm-asset-card.d.ts +24 -0
  510. package/dist/types/components/sqm-asset-card/useAssetCard.d.ts +7 -0
  511. package/dist/types/components/sqm-popup-container/usePopupContainer.d.ts +2 -2
  512. package/dist/types/components/sqm-referral-card/sqm-referral-card.d.ts +1 -1
  513. package/dist/types/components/sqm-stencilbook/BrandSelector.d.ts +0 -3
  514. package/dist/types/components/sqm-stencilbook/Themes.d.ts +5 -5
  515. package/dist/types/components/sqm-widget-verification/sqm-widget-verification-controller.d.ts +5 -0
  516. package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +5 -0
  517. package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +0 -1
  518. package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.d.ts +1 -1
  519. package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +2 -2
  520. package/dist/types/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.d.ts +4 -0
  521. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +1 -1
  522. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +10 -4
  523. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.d.ts +1 -1
  524. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +1 -1
  525. package/dist/types/components/tax-and-cash/sqm-user-info-form/small-views/IndirectTaxDetailsView.d.ts +1 -1
  526. package/dist/types/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.d.ts +1 -1
  527. package/dist/types/components/tax-and-cash/utils.d.ts +1 -1
  528. package/dist/types/components.d.ts +91 -8
  529. package/dist/types/saasquatch.d.ts +5 -23
  530. package/dist/types/utils/parseStates.d.ts +1 -0
  531. package/docs/docs.docx +0 -0
  532. package/docs/raisins.json +1 -1
  533. package/grapesjs/grapesjs.js +1 -1
  534. package/package.json +2 -1
  535. package/dist/cjs/sqm-invoice-table-view-deaf0385.js +0 -2038
  536. package/dist/esm/sqm-invoice-table-view-e43241aa.js +0 -2022
  537. package/dist/esm-es5/ShadowViewAddon-173ce794.js +0 -1
  538. package/dist/esm-es5/extractProps-ae1afbb3.js +0 -1
  539. package/dist/esm-es5/sqm-banking-info-form_17.entry.js +0 -1
  540. package/dist/esm-es5/sqm-invoice-table-view-e43241aa.js +0 -1
  541. package/dist/esm-es5/usePortalLogin-2b813acc.js +0 -1
  542. package/dist/mint-components/p-00673c96.js +0 -1
  543. package/dist/mint-components/p-0126962c.entry.js +0 -1
  544. package/dist/mint-components/p-01dd6b18.system.js +0 -1
  545. package/dist/mint-components/p-0592dc0b.system.js +0 -1
  546. package/dist/mint-components/p-0bf0409f.entry.js +0 -205
  547. package/dist/mint-components/p-0c327ec3.entry.js +0 -1
  548. package/dist/mint-components/p-0e532b53.entry.js +0 -1
  549. package/dist/mint-components/p-15ad1e97.entry.js +0 -16
  550. package/dist/mint-components/p-1bdc4f94.system.entry.js +0 -1
  551. package/dist/mint-components/p-1f6cfd37.js +0 -1
  552. package/dist/mint-components/p-22405668.entry.js +0 -1
  553. package/dist/mint-components/p-2403c6e1.system.js +0 -1
  554. package/dist/mint-components/p-24af584d.js +0 -1
  555. package/dist/mint-components/p-26468242.js +0 -1
  556. package/dist/mint-components/p-2c227f02.js +0 -394
  557. package/dist/mint-components/p-2c637c26.system.js +0 -1
  558. package/dist/mint-components/p-3168fa90.js +0 -1
  559. package/dist/mint-components/p-3174c756.entry.js +0 -1
  560. package/dist/mint-components/p-32e6850d.entry.js +0 -13
  561. package/dist/mint-components/p-36bbd4de.entry.js +0 -1
  562. package/dist/mint-components/p-37e58170.system.entry.js +0 -1
  563. package/dist/mint-components/p-490864af.entry.js +0 -258
  564. package/dist/mint-components/p-492d810b.js +0 -1
  565. package/dist/mint-components/p-50bfb01f.system.entry.js +0 -1
  566. package/dist/mint-components/p-59b028db.system.js +0 -1
  567. package/dist/mint-components/p-676ca2c0.system.js +0 -1
  568. package/dist/mint-components/p-6b166700.system.entry.js +0 -1
  569. package/dist/mint-components/p-6bcac9ed.system.entry.js +0 -1
  570. package/dist/mint-components/p-7b97c0f4.system.entry.js +0 -1
  571. package/dist/mint-components/p-8caef004.js +0 -1
  572. package/dist/mint-components/p-96c0860e.system.js +0 -1
  573. package/dist/mint-components/p-96d3900f.entry.js +0 -1
  574. package/dist/mint-components/p-9daf835f.system.js +0 -1
  575. package/dist/mint-components/p-a09b2393.entry.js +0 -9
  576. package/dist/mint-components/p-a255bf0e.entry.js +0 -1
  577. package/dist/mint-components/p-a8645c1b.system.js +0 -1
  578. package/dist/mint-components/p-ac71b501.js +0 -1
  579. package/dist/mint-components/p-b4638167.entry.js +0 -1
  580. package/dist/mint-components/p-b6bdf89e.entry.js +0 -1
  581. package/dist/mint-components/p-be88596c.system.js +0 -1
  582. package/dist/mint-components/p-c7c11325.js +0 -1
  583. package/dist/mint-components/p-d0de4b73.system.js +0 -1
  584. package/dist/mint-components/p-d6c151e3.system.js +0 -1
  585. package/dist/mint-components/p-db86c62e.system.entry.js +0 -1
  586. package/dist/mint-components/p-dddac0ee.system.entry.js +0 -1
  587. package/dist/mint-components/p-e13ed54a.entry.js +0 -1
  588. package/dist/mint-components/p-e523b22e.entry.js +0 -11
  589. package/dist/mint-components/p-ecf91505.system.js +0 -1
  590. package/dist/mint-components/p-f5a7697e.system.entry.js +0 -1
  591. package/dist/mint-components/p-f66ccd51.entry.js +0 -1
  592. package/dist/mint-components/p-f6baa0c9.system.js +0 -1
  593. package/dist/mint-components/p-f8df914b.system.js +0 -1
  594. package/dist/mint-components/p-ff3c651c.js +0 -1
  595. /package/dist/collection/components/tax-and-cash/{sqm-tax-and-cash/data.js → data.js} +0 -0
  596. /package/dist/types/components/tax-and-cash/{sqm-tax-and-cash/data.d.ts → data.d.ts} +0 -0
@@ -2,145 +2,25 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-a43a63b4.js');
6
- const stencilHooks_module = require('./stencil-hooks.module-62264802.js');
7
- const global = require('./global-b34bf5f2.js');
8
- const index_module = require('./index.module-39955732.js');
5
+ const index = require('./index-a29c60ef.js');
6
+ const stencilHooks_module = require('./stencil-hooks.module-3a336b0f.js');
7
+ const global = require('./global-d62c5561.js');
8
+ const index_module = require('./index.module-ee84433d.js');
9
9
  const jsonpointer = require('./jsonpointer-11327262.js');
10
10
  const cjs = require('./cjs-1066ec21.js');
11
11
  const utils = require('./utils-6847bc06.js');
12
12
  const JSS = require('./JSS-8503a151.js');
13
- const mixins = require('./mixins-4761d472.js');
14
- const GenericTableView = require('./GenericTableView-107ade89.js');
15
- const reRender = require('./re-render-28fed959.js');
16
- const useChildElements = require('./useChildElements-e5fa605c.js');
17
- const luxon = require('./luxon-3b809948.js');
18
- const useReferralTable = require('./useReferralTable-19e7523a.js');
19
- const sqmTextSpanView = require('./sqm-text-span-view-7a61ae4c.js');
20
- const ErrorView = require('./ErrorView-5504c2b6.js');
21
- const sqmInvoiceTableView = require('./sqm-invoice-table-view-deaf0385.js');
22
- const extractProps = require('./extractProps-fd93ba62.js');
13
+ require('./mixins-4761d472.js');
14
+ const GenericTableView = require('./GenericTableView-a9d0b798.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 IndirectTaxDetailsView = require('./IndirectTaxDetailsView-d0290a12.js');
20
+ const utils$1 = require('./utils-ce18d1bc.js');
21
+ const data = require('./data-6d96b89c.js');
23
22
  const keys = require('./keys-cff24974.js');
24
- const usePayoutStatus = require('./usePayoutStatus-f26f0467.js');
25
- const useVerificationEmail = require('./useVerificationEmail-1496b993.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-feeac99b.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;
@@ -791,10 +671,8 @@ const vanillaStyle = `
791
671
 
792
672
  /* this class is dynamically applied in controller */
793
673
  .error-input::part(base) {
794
- --sqm-input-border-color: var(--sqm-danger-color-border);
795
- --sl-input-border-color: var(--sqm-danger-color-border);
796
- --sl-input-border-color-hover: var(--sqm-danger-color-border);
797
- --sl-input-border-color-focus: var(--sqm-danger-color-background);
674
+ border: 1px solid var(--sqm-danger-color-border);
675
+ border-radius: var(--sqm-input-border-radius);
798
676
  }
799
677
 
800
678
  .error-input::part(help-text) {
@@ -841,7 +719,7 @@ const BankingInfoFormView = (props) => {
841
719
  !states.hideSteps && (index.h("p", null, global.intl.formatMessage({
842
720
  id: "formStep",
843
721
  defaultMessage: text.formStep,
844
- }, { step: states.step, count: FORM_STEPS }))),
722
+ }, { step: states.step, count: data.FORM_STEPS }))),
845
723
  index.h("h3", { style: { fontSize: "24px" } }, text.taxAndPayouts),
846
724
  index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription)),
847
725
  ((_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 },
@@ -896,7 +774,7 @@ const BankingInfoFormView = (props) => {
896
774
  : slots.paymentFixedDaySelectSlot))))),
897
775
  index.h("div", { class: classes.BtnContainer },
898
776
  index.h("sl-button", { type: "primary", disabled: states.disabled || states.saveDisabled, loading: states.saveLoading, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton),
899
- !states.hideBackButton && (index.h("sl-button", { exportparts: "base: secondarybutton-base", type: "secondary", onClick: callbacks.onBack }, text.backButton))))));
777
+ !states.hideBackButton && (index.h("sl-button", { exportparts: "base: secondarybutton-base", type: "text", onClick: callbacks.onBack }, text.backButton))))));
900
778
  };
901
779
 
902
780
  // Hardcoded in Impact backend
@@ -980,12 +858,12 @@ function useBankingInfoForm(props) {
980
858
  const host = index_module._();
981
859
  const locale = index_module.L();
982
860
  const user = index_module.J();
983
- const [step, setStep] = index_module.Pn(TAX_CONTEXT_NAMESPACE);
984
- const context = index_module.Fn(TAX_FORM_CONTEXT_NAMESPACE);
985
- const countries = index_module.Fn(SORTED_COUNTRIES_NAMESPACE);
861
+ const [step, setStep] = index_module.Pn(data.TAX_CONTEXT_NAMESPACE);
862
+ const context = index_module.Fn(data.TAX_FORM_CONTEXT_NAMESPACE);
863
+ const countries = index_module.Fn(data.SORTED_COUNTRIES_NAMESPACE);
986
864
  const formRef = stencilHooks_module.useRef(null);
987
- const { data: paymentOptionsData, loading: paymentOptionsLoading, errors: paymentOptionsError, } = index_module.$n(FINANCE_NETWORK_SETTINGS_NAMESPACE);
988
- const { data: userData, refetch, errors: userError, } = index_module.$n(USER_QUERY_NAMESPACE);
865
+ const { data: paymentOptionsData, loading: paymentOptionsLoading, errors: paymentOptionsError, } = index_module.$n(data.FINANCE_NETWORK_SETTINGS_NAMESPACE);
866
+ const { data: userData, refetch, errors: userError, } = index_module.$n(data.USER_QUERY_NAMESPACE);
989
867
  const [saveWithdrawalSettings] = index_module.$e(SAVE_WITHDRAWAL_SETTINGS);
990
868
  const [updateWithdrawalSettings] = index_module.$e(UPDATE_WITHDRAWAL_SETTINGS);
991
869
  const [showVerification, setShowVerification] = stencilHooks_module.useState(false);
@@ -1654,7 +1532,7 @@ function useDemoBankingInfoForm(props) {
1654
1532
  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;
1655
1533
  const defaultCurrency = (_h = (_g = props.demoData) === null || _g === void 0 ? void 0 : _g.states) === null || _h === void 0 ? void 0 : _h.currency;
1656
1534
  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;
1657
- const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
1535
+ const setStep = index_module.En(data.TAX_CONTEXT_NAMESPACE);
1658
1536
  const [paymentMethodChecked, setPaymentMethodChecked] = stencilHooks_module.useState(undefined);
1659
1537
  const [paymentScheduleChecked, setPaymentScheduleChecked] = stencilHooks_module.useState(undefined);
1660
1538
  const [currency, setCurrency] = stencilHooks_module.useState(defaultCurrency);
@@ -1747,331 +1625,6 @@ function useDemoBankingInfoForm(props) {
1747
1625
  }, props.demoData || {}, { arrayMerge: (_, a) => a });
1748
1626
  }
1749
1627
 
1750
- const style$1 = {
1751
- Wrapper: {
1752
- display: "flex",
1753
- flexDirection: "column",
1754
- gap: "var(--sl-spacing-medium)",
1755
- maxWidth: "550px",
1756
- },
1757
- HeaderContainer: {
1758
- display: "flex",
1759
- flexDirection: "column",
1760
- },
1761
- InputsContainer: {
1762
- display: "flex",
1763
- gap: "var(--sl-spacing-medium)",
1764
- position: "relative",
1765
- flexDirection: "column",
1766
- },
1767
- CodeInputContainer: {
1768
- display: "flex",
1769
- gap: "var(--sl-spacing-medium)",
1770
- },
1771
- CodeInput: {
1772
- maxWidth: "40px",
1773
- "&::part(input)": {
1774
- margin: "0",
1775
- padding: "0 var(--sl-input-spacing-small)",
1776
- fontSize: "var(--sl-font-size-large)",
1777
- },
1778
- },
1779
- CodeInputError: {
1780
- ...mixins.ErrorStyles,
1781
- maxWidth: "40px",
1782
- "&::part(input)": {
1783
- margin: "0",
1784
- padding: "0 var(--sl-input-spacing-small)",
1785
- fontSize: "var(--sl-font-size-large)",
1786
- },
1787
- },
1788
- ErrorText: {
1789
- color: "var(--sl-color-danger-500)",
1790
- fontSize: "var(--sl-font-size-small)",
1791
- margin: "0",
1792
- },
1793
- ContinueButton: {
1794
- width: "100%",
1795
- maxWidth: "100px",
1796
- },
1797
- FooterContainer: {
1798
- display: "flex",
1799
- flexDirection: "column",
1800
- },
1801
- SkeletonOne: {
1802
- width: "50%",
1803
- height: "16px",
1804
- },
1805
- SkeletonTwo: {
1806
- width: "30%",
1807
- height: "34px",
1808
- },
1809
- SkeletonThree: {
1810
- width: "15%",
1811
- height: "24px",
1812
- },
1813
- };
1814
- const vanillaStyle$1 = `
1815
- :host {
1816
- display: block;
1817
- }
1818
- :host([hidden]): {
1819
- display: none;
1820
- }
1821
-
1822
-
1823
- `;
1824
- const sheet$1 = JSS.createStyleSheet(style$1);
1825
- const styleString$1 = sheet$1.toString();
1826
- function WidgetCodeVerificationView(props) {
1827
- const { states, refs, callbacks, text } = props;
1828
- const resendCodeText = global.intl.formatMessage({
1829
- id: "resendCodeText",
1830
- defaultMessage: text.resendCodeText,
1831
- }, {
1832
- resendCodeLink: (index.h("a", { href: "", style: { textDecoration: "none" }, onClick: (e) => {
1833
- e.preventDefault();
1834
- callbacks.resendEmail();
1835
- } }, text.resendCodeLabel)),
1836
- });
1837
- const codeResentSuccessfully = global.intl.formatMessage({
1838
- id: "codeResentSuccessfully",
1839
- defaultMessage: text.codeResentSuccessfullyText,
1840
- }, {
1841
- email: states.email,
1842
- });
1843
- const inputClass = states.verifyFailed
1844
- ? sheet$1.classes.CodeInputError
1845
- : sheet$1.classes.CodeInput;
1846
- return (index.h("div", { part: "sqm-base" },
1847
- index.h("style", { type: "text/css" },
1848
- vanillaStyle$1,
1849
- styleString$1),
1850
- index.h("div", { class: sheet$1.classes.Wrapper },
1851
- index.h("div", { class: sheet$1.classes.HeaderContainer },
1852
- index.h(sqmTextSpanView.TextSpanView, { type: "p" }, global.intl.formatMessage({
1853
- id: `emailHeaderText`,
1854
- defaultMessage: states.verifyFailed
1855
- ? text.reverifyCodeHeaderText
1856
- : text.verifyCodeHeaderText,
1857
- }, { email: states.email }))),
1858
- states.emailResent && (index.h("sqm-form-message", { type: "success", exportparts: "successalert-icon" },
1859
- index.h("b", null, codeResentSuccessfully))),
1860
- index.h("div", { class: sheet$1.classes.InputsContainer },
1861
- index.h("div", { ref: refs.codeWrapperRef, class: sheet$1.classes.CodeInputContainer },
1862
- index.h("sl-input", { class: inputClass, name: "code" }),
1863
- index.h("sl-input", { class: inputClass, name: "code" }),
1864
- index.h("sl-input", { class: inputClass, name: "code" }),
1865
- index.h("sl-input", { class: inputClass, name: "code" }),
1866
- index.h("sl-input", { class: inputClass, name: "code" }),
1867
- index.h("sl-input", { class: inputClass, name: "code" })),
1868
- states.verifyFailed && (index.h("p", { class: sheet$1.classes.ErrorText }, text.invalidCodeText)),
1869
- 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)),
1870
- index.h("div", { class: sheet$1.classes.FooterContainer },
1871
- index.h(sqmTextSpanView.TextSpanView, { type: "p" }, resendCodeText)))));
1872
- }
1873
-
1874
- const VerifyEmailWithCodeMutation = index_module.dist.gql `
1875
- mutation submitImpactPublisherEmail2FACode(
1876
- $user: UserIdInput!
1877
- $code: String!
1878
- ) {
1879
- submitImpactPublisherEmail2FACode(user: $user, code: $code) {
1880
- verifiedEmail
1881
- accessKey
1882
- }
1883
- }
1884
- `;
1885
- function useWidgetCodeVerification(props) {
1886
- const host = stencilHooks_module.l();
1887
- const [_, setShowCode] = index_module.Pn(keys.SHOW_CODE_NAMESPACE);
1888
- const email = index_module.Fn(keys.VERIFICATION_EMAIL_NAMESPACE);
1889
- const [emailSent, setEmailSent] = stencilHooks_module.useState(false);
1890
- const [emailResent, setEmailResent] = stencilHooks_module.useState(false);
1891
- const [codeRef, setCodeRef] = stencilHooks_module.useState(null);
1892
- const [validationError, setValidationError] = stencilHooks_module.useState(false);
1893
- const [emailError, setEmailError] = stencilHooks_module.useState(false);
1894
- const { initialized, verificationEmail, send: [sendEmail, { loading: sendLoading, errors: sendErrors }], verify: [verifyEmail, { loading: verifyLoading, errors: verifyErrors }], } = useVerificationEmail.useVerificationEmail();
1895
- stencilHooks_module.useEffect(() => {
1896
- if (!codeRef)
1897
- return;
1898
- const slInputs = codeRef.querySelectorAll("sl-input");
1899
- const codeElements = Array.from(slInputs).map((node) => node.shadowRoot.querySelector(`input[name="code"]`));
1900
- codeElements.forEach((element, idx) => {
1901
- element.addEventListener("focus", (e) => {
1902
- e.target.select();
1903
- });
1904
- element.addEventListener("keydown", (e) => {
1905
- if (e.key === "Backspace" && e.target.value === "") {
1906
- codeElements[Math.max(0, idx - 1)].focus();
1907
- }
1908
- });
1909
- element.addEventListener("input", (e) => {
1910
- const input = e.data;
1911
- if (!input)
1912
- return;
1913
- if (idx === codeElements.length - 1) {
1914
- e.target.value = input.slice(0, 1);
1915
- return;
1916
- }
1917
- if (input.length > 1) {
1918
- const rest = input.slice(1);
1919
- e.target.value = input.slice(0, 1);
1920
- codeElements[idx + 1].dispatchEvent(new InputEvent("input", {
1921
- inputType: "insertFromPaste",
1922
- data: rest,
1923
- }));
1924
- }
1925
- codeElements[idx + 1].focus();
1926
- });
1927
- });
1928
- }, [codeRef]);
1929
- const reset = () => {
1930
- setShowCode(false);
1931
- setValidationError(false);
1932
- };
1933
- const resendEmail = async () => {
1934
- // UI should only allow this to be called if initialized, but checking just in case
1935
- if (!initialized)
1936
- return;
1937
- const result = await sendEmail();
1938
- if (!result) {
1939
- setEmailError(true);
1940
- return;
1941
- }
1942
- if (emailSent)
1943
- setEmailResent(true);
1944
- setEmailSent(true);
1945
- };
1946
- const submitCode = async () => {
1947
- const slInputs = codeRef.querySelectorAll("sl-input");
1948
- const codeElements = Array.from(slInputs).map((node) => node.shadowRoot.querySelector(`input[name="code"]`));
1949
- if (codeElements.find((el) => !el.value)) {
1950
- setValidationError(true);
1951
- return;
1952
- }
1953
- let code = "";
1954
- codeElements.forEach((element) => {
1955
- code = `${code}${element.value}`;
1956
- });
1957
- // UI should only allow this to be called if initialized, but checking just in case
1958
- if (!initialized)
1959
- return;
1960
- setValidationError(false);
1961
- const res = await verifyEmail(code);
1962
- if (res === null || res === void 0 ? void 0 : res.success) {
1963
- props.onVerification(res.accessKey);
1964
- reset();
1965
- }
1966
- else {
1967
- setValidationError(true);
1968
- }
1969
- };
1970
- stencilHooks_module.useEffect(() => {
1971
- // Wait for mutations to be determined from user lookup
1972
- if (!initialized)
1973
- return;
1974
- // email should already exist if user has completed email-verification
1975
- if (!email)
1976
- resendEmail();
1977
- else
1978
- setEmailSent(true);
1979
- }, [initialized]);
1980
- return {
1981
- refs: {
1982
- codeWrapperRef: setCodeRef,
1983
- },
1984
- states: {
1985
- email: verificationEmail,
1986
- emailResent,
1987
- resendError: sendErrors || verifyErrors,
1988
- initialiseLoading: !initialized,
1989
- loading: sendLoading || verifyLoading,
1990
- verifyFailed: !!validationError,
1991
- },
1992
- callbacks: {
1993
- resendEmail,
1994
- submitCode,
1995
- },
1996
- text: props.getTextProps(),
1997
- };
1998
- }
1999
-
2000
- const WidgetCodeVerification = class {
2001
- constructor(hostRef) {
2002
- index.registerInstance(this, hostRef);
2003
- /**
2004
- * @uiName Verify code widget header text
2005
- */
2006
- this.verifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
2007
- /**
2008
- * @uiName Reverify code widget header text
2009
- */
2010
- this.reverifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
2011
- /**
2012
- * Text displayed under verify button
2013
- * @uiName Resend code text
2014
- */
2015
- this.resendCodeText = "Didn't receive your code? {resendCodeLink}";
2016
- /**
2017
- * The link that appears in the resend code link
2018
- * @uiName Resend code label
2019
- */
2020
- this.resendCodeLabel = "Resend code";
2021
- /**
2022
- * Link text displayed under verify button
2023
- * @uiName Resend code text
2024
- */
2025
- this.codeResentSuccessfullyText = "Another code has been sent to {email}";
2026
- /**
2027
- * Error text displayed under verification input
2028
- * @uiName Invalid code text
2029
- */
2030
- this.invalidCodeText = "Please check your code and try again. If you’re still having trouble, try resending your code.";
2031
- /**
2032
- * @uiName Verify code button text
2033
- */
2034
- this.verifyText = "Verify";
2035
- /**
2036
- * Displayed when the email verification fails due to a network error. The participant can try refreshing the page.
2037
- * @uiName Network error message
2038
- */
2039
- this.networkErrorMessage = "An error occurred while verifying your email. Please refresh the page and try again.";
2040
- stencilHooks_module.h$1(this);
2041
- }
2042
- disconnectedCallback() { }
2043
- getTextProps() {
2044
- return utils.getProps(this);
2045
- }
2046
- render() {
2047
- const props = index_module.isDemo()
2048
- ? useDemoWidgetCodeVerification(this)
2049
- : useWidgetCodeVerification(this);
2050
- return index.h(WidgetCodeVerificationView, Object.assign({}, props));
2051
- }
2052
- };
2053
- function useDemoWidgetCodeVerification(props) {
2054
- const [emailResent, setEmailResent] = stencilHooks_module.useState(false);
2055
- const setVerifiedContext = index_module.En(keys.VERIFICATION_PARENT_NAMESPACE);
2056
- return cjs.cjs({
2057
- states: {
2058
- loading: false,
2059
- email: "test@example.com",
2060
- emailResent,
2061
- resendError: false,
2062
- verifyFailed: false,
2063
- },
2064
- refs: {
2065
- codeWrapperRef: () => { },
2066
- },
2067
- callbacks: {
2068
- resendEmail: async () => setEmailResent(true),
2069
- submitCode: async () => setVerifiedContext(true),
2070
- },
2071
- text: props.getTextProps(),
2072
- }, props.demoData || {}, { arrayMerge: (_, a) => a });
2073
- }
2074
-
2075
1628
  const GET_TAX_DOCUMENT = index_module.dist.gql `
2076
1629
  mutation createImpactPublisherTaxDocument(
2077
1630
  $vars: CreateImpactPublisherTaxDocumentInput!
@@ -2100,10 +1653,10 @@ const DOCUSIGN_EXPIRED_STATES = ["ttl_expired", "session_timeout"];
2100
1653
  function useDocusignForm(props) {
2101
1654
  var _a, _b, _c;
2102
1655
  const user = index_module.J();
2103
- const context = index_module.Fn(TAX_FORM_CONTEXT_NAMESPACE);
2104
- const [step, setStep] = index_module.Pn(TAX_CONTEXT_NAMESPACE);
2105
- const { data, loading: userLoading, refetch, } = index_module.$n(USER_QUERY_NAMESPACE);
2106
- 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;
1656
+ const context = index_module.Fn(data.TAX_FORM_CONTEXT_NAMESPACE);
1657
+ const [step, setStep] = index_module.Pn(data.TAX_CONTEXT_NAMESPACE);
1658
+ const { data: data$1, loading: userLoading, refetch, } = index_module.$n(data.USER_QUERY_NAMESPACE);
1659
+ 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;
2107
1660
  const [createTaxDocument, { loading: documentLoading, data: document, errors: documentErrors },] = index_module.$e(GET_TAX_DOCUMENT);
2108
1661
  const [completeTaxDocument, { loading: completeDocumentLoading, data: completeData, errors: completeErrors, },] = index_module.$e(COMPLETE_TAX_DOCUMENT);
2109
1662
  const [docusignStatus, setDocusignStatus] = stencilHooks_module.useState(undefined);
@@ -2112,7 +1665,7 @@ function useDocusignForm(props) {
2112
1665
  const [loading, setLoading] = stencilHooks_module.useState(false);
2113
1666
  const [showExitButton, setShowExitButton] = stencilHooks_module.useState(false);
2114
1667
  // Only look at current document if it's valid (same as required type)
2115
- const existingDocumentType = sqmInvoiceTableView.validTaxDocument(publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType) && (publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument)
1668
+ const existingDocumentType = utils$1.validTaxDocument(publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType) && (publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument)
2116
1669
  ? publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType : undefined;
2117
1670
  const actualDocumentType = existingDocumentType ||
2118
1671
  getDocumentType(participantType) || (publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType);
@@ -2204,7 +1757,7 @@ function useDocusignForm(props) {
2204
1757
  },
2205
1758
  docusignStatus,
2206
1759
  documentType: actualDocumentType,
2207
- documentTypeString: sqmInvoiceTableView.taxTypeToName(actualDocumentType),
1760
+ documentTypeString: utils$1.taxTypeToName(actualDocumentType),
2208
1761
  showExitButton,
2209
1762
  },
2210
1763
  data: {
@@ -2229,7 +1782,7 @@ function getDocumentType(p) {
2229
1782
  return undefined;
2230
1783
  }
2231
1784
 
2232
- const style$2 = {
1785
+ const style$1 = {
2233
1786
  DocusignStatusContainer: {
2234
1787
  width: "100%",
2235
1788
  minHeight: "600px",
@@ -2256,13 +1809,13 @@ const style$2 = {
2256
1809
  },
2257
1810
  },
2258
1811
  };
2259
- const sheet$2 = JSS.createStyleSheet(style$2);
2260
- const styleString$2 = sheet$2.toString();
1812
+ const sheet$1 = JSS.createStyleSheet(style$1);
1813
+ const styleString$1 = sheet$1.toString();
2261
1814
  const DocusignExpiredView = (props) => {
2262
- const { classes } = sheet$2;
1815
+ const { classes } = sheet$1;
2263
1816
  const { text } = props;
2264
1817
  return (index.h("div", null,
2265
- index.h("style", { type: "text/css" }, styleString$2),
1818
+ index.h("style", { type: "text/css" }, styleString$1),
2266
1819
  index.h("div", { class: classes.DocusignStatusContainer },
2267
1820
  index.h("sl-icon", { style: {
2268
1821
  width: "50px",
@@ -2274,10 +1827,10 @@ const DocusignExpiredView = (props) => {
2274
1827
  index.h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
2275
1828
  };
2276
1829
  const DocusignErrorView = (props) => {
2277
- const { classes } = sheet$2;
1830
+ const { classes } = sheet$1;
2278
1831
  const { text } = props;
2279
1832
  return (index.h("div", null,
2280
- index.h("style", { type: "text/css" }, styleString$2),
1833
+ index.h("style", { type: "text/css" }, styleString$1),
2281
1834
  index.h("div", { class: classes.DocusignStatusContainer },
2282
1835
  index.h("sl-icon", { style: {
2283
1836
  width: "50px",
@@ -2289,14 +1842,14 @@ const DocusignErrorView = (props) => {
2289
1842
  index.h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
2290
1843
  };
2291
1844
  const DocusignLoadingView = () => {
2292
- const { classes } = sheet$2;
1845
+ const { classes } = sheet$1;
2293
1846
  return (index.h("div", null,
2294
- index.h("style", { type: "text/css" }, styleString$2),
1847
+ index.h("style", { type: "text/css" }, styleString$1),
2295
1848
  index.h("div", { class: classes.DocusignStatusContainer },
2296
1849
  index.h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } }))));
2297
1850
  };
2298
1851
  const DocusignIframe = ({ states, data, callbacks, text, }) => {
2299
- const { classes } = sheet$2;
1852
+ const { classes } = sheet$1;
2300
1853
  const [iFrameHeight, setiFrameHeight] = stencilHooks_module.useState("100%");
2301
1854
  const allowedDomains = [
2302
1855
  "referralsaasquatch.com",
@@ -2329,12 +1882,12 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
2329
1882
  return index.h(DocusignExpiredView, { text: text });
2330
1883
  // Wrap iFrame with container that shares the same height to push other elements down when absolute positioned
2331
1884
  return (index.h("div", { style: { height: iFrameHeight } },
2332
- index.h("style", { type: "text/css" }, styleString$2),
1885
+ index.h("style", { type: "text/css" }, styleString$1),
2333
1886
  index.h("div", { class: classes.IFrameContainer },
2334
1887
  index.h("iframe", { scrolling: "yes", frameBorder: "0", width: "100%", src: data.documentUrl, height: iFrameHeight }))));
2335
1888
  };
2336
1889
 
2337
- const style$3 = {
1890
+ const style$2 = {
2338
1891
  FormWrapper: {
2339
1892
  display: "flex",
2340
1893
  justifyContent: "flex-start",
@@ -2424,9 +1977,9 @@ const style$3 = {
2424
1977
  fontSize: "var(--sl-font-size-medium)",
2425
1978
  },
2426
1979
  };
2427
- const sheet$3 = JSS.createStyleSheet(style$3);
2428
- const styleString$3 = sheet$3.toString();
2429
- const vanillaStyle$2 = `
1980
+ const sheet$2 = JSS.createStyleSheet(style$2);
1981
+ const styleString$2 = sheet$2.toString();
1982
+ const vanillaStyle$1 = `
2430
1983
  :host{
2431
1984
  display: block;
2432
1985
  }
@@ -2447,21 +2000,21 @@ const vanillaStyle$2 = `
2447
2000
  const DocusignFormView = (props) => {
2448
2001
  var _a;
2449
2002
  const { states, states: { formState, documentTypeString }, callbacks, text, slots, } = props;
2450
- const { classes } = sheet$3;
2003
+ const { classes } = sheet$2;
2451
2004
  return (index.h("div", { class: classes.Container },
2452
2005
  index.h("style", { type: "text/css" },
2453
- styleString$3,
2454
- vanillaStyle$2),
2006
+ styleString$2,
2007
+ vanillaStyle$1),
2455
2008
  index.h("div", { class: classes.TextContainer },
2456
2009
  index.h("div", null,
2457
2010
  !states.hideSteps && (index.h("p", null, global.intl.formatMessage({
2458
2011
  id: "formStep",
2459
2012
  defaultMessage: text.formStep,
2460
- }, { step: states.step, count: FORM_STEPS }))),
2013
+ }, { step: states.step, count: data.FORM_STEPS }))),
2461
2014
  index.h("h3", null, text.taxForm),
2462
2015
  index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
2463
2016
  states.loadingError && (index.h("div", null,
2464
- index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$3.classes.ErrorAlertContainer },
2017
+ index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$2.classes.ErrorAlertContainer },
2465
2018
  index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
2466
2019
  index.h("strong", null, text.error.loadingErrorAlertHeader),
2467
2020
  index.h("br", null),
@@ -2471,7 +2024,7 @@ const DocusignFormView = (props) => {
2471
2024
  }, {
2472
2025
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
2473
2026
  })))),
2474
- ((_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 },
2027
+ ((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$2.classes.ErrorAlertContainer },
2475
2028
  index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
2476
2029
  index.h("strong", null, text.error.generalTitle),
2477
2030
  index.h("br", null),
@@ -2642,7 +2195,7 @@ const DocusignForm = class {
2642
2195
  get el() { return index.getElement(this); }
2643
2196
  };
2644
2197
  function useDocusignFormDemo(props) {
2645
- const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
2198
+ const setStep = index_module.En(data.TAX_CONTEXT_NAMESPACE);
2646
2199
  return cjs.cjs({
2647
2200
  text: props.getTextProps(),
2648
2201
  states: {
@@ -2691,7 +2244,7 @@ const DemoDocusignIframe = ({ callbacks }) => {
2691
2244
  } }, 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")))));
2692
2245
  };
2693
2246
 
2694
- const style$4 = {
2247
+ const style$3 = {
2695
2248
  FormWrapper: {
2696
2249
  display: "flex",
2697
2250
  justifyContent: "flex-start",
@@ -2823,9 +2376,9 @@ const style$4 = {
2823
2376
  },
2824
2377
  },
2825
2378
  };
2826
- const sheet$4 = JSS.createStyleSheet(style$4);
2827
- const styleString$4 = sheet$4.toString();
2828
- const vanillaStyle$3 = `
2379
+ const sheet$3 = JSS.createStyleSheet(style$3);
2380
+ const styleString$3 = sheet$3.toString();
2381
+ const vanillaStyle$2 = `
2829
2382
  :host{
2830
2383
  display: block;
2831
2384
  }
@@ -2852,11 +2405,11 @@ const vanillaStyle$3 = `
2852
2405
  const IndirectTaxFormView = (props) => {
2853
2406
  var _a;
2854
2407
  const { states, states: { formState }, callbacks, text, refs, slots, } = props;
2855
- const { classes } = sheet$4;
2408
+ const { classes } = sheet$3;
2856
2409
  return (index.h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
2857
2410
  index.h("style", { type: "text/css" },
2858
- styleString$4,
2859
- vanillaStyle$3),
2411
+ styleString$3,
2412
+ vanillaStyle$2),
2860
2413
  index.h("div", { class: classes.TextContainer },
2861
2414
  index.h("div", null,
2862
2415
  !states.hideSteps && (index.h("p", null,
@@ -2864,12 +2417,12 @@ const IndirectTaxFormView = (props) => {
2864
2417
  global.intl.formatMessage({
2865
2418
  id: "formStep",
2866
2419
  defaultMessage: text.formStep,
2867
- }, { step: states.step, count: FORM_STEPS }))),
2420
+ }, { step: states.step, count: data.FORM_STEPS }))),
2868
2421
  index.h("h3", null, text.indirectTax),
2869
2422
  index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription),
2870
2423
  index.h("p", { class: classes.DescriptionText }, text.indirectTaxDescription)),
2871
2424
  states.loadingError && (index.h("div", null,
2872
- index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.AlertContainer },
2425
+ index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$3.classes.AlertContainer },
2873
2426
  index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
2874
2427
  index.h("strong", null, text.error.loadingErrorAlertHeader),
2875
2428
  index.h("br", null),
@@ -2879,7 +2432,7 @@ const IndirectTaxFormView = (props) => {
2879
2432
  }, {
2880
2433
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
2881
2434
  })))),
2882
- ((_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 },
2435
+ ((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$3.classes.AlertContainer },
2883
2436
  index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
2884
2437
  index.h("strong", null, text.error.generalTitle),
2885
2438
  index.h("br", null),
@@ -2889,7 +2442,7 @@ const IndirectTaxFormView = (props) => {
2889
2442
  }, {
2890
2443
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
2891
2444
  }))),
2892
- states.isPartner && (index.h("sl-alert", { type: "primary", open: true, class: sheet$4.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
2445
+ states.isPartner && (index.h("sl-alert", { type: "primary", open: true, class: sheet$3.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
2893
2446
  index.h("sl-icon", { slot: "icon", name: "info-circle" }),
2894
2447
  index.h("strong", null, text.isPartnerAlertHeader),
2895
2448
  index.h("br", null),
@@ -2967,14 +2520,14 @@ function useIndirectTaxForm(props) {
2967
2520
  const user = index_module.J();
2968
2521
  const locale = index_module.L();
2969
2522
  const formRef = stencilHooks_module.useRef(null);
2970
- const context = index_module.Fn(TAX_FORM_CONTEXT_NAMESPACE);
2971
- const [step, setStep] = index_module.Pn(TAX_CONTEXT_NAMESPACE);
2523
+ const context = index_module.Fn(data.TAX_FORM_CONTEXT_NAMESPACE);
2524
+ const [step, setStep] = index_module.Pn(data.TAX_CONTEXT_NAMESPACE);
2972
2525
  const [connectImpactPartner, { loading: connectLoading, errors: connectErrors },] = index_module.$e(CONNECT_PARTNER);
2973
- const userForm = index_module.Fn(USER_FORM_CONTEXT_NAMESPACE);
2974
- const { data: userData, refetch, errors: userError, } = index_module.$n(USER_QUERY_NAMESPACE);
2975
- const { data: _countriesRes, loading: countriesLoading } = index_module.$n(COUNTRIES_QUERY_NAMESPACE);
2526
+ const userForm = index_module.Fn(data.USER_FORM_CONTEXT_NAMESPACE);
2527
+ const { data: userData, refetch, errors: userError, } = index_module.$n(data.USER_QUERY_NAMESPACE);
2528
+ const { data: _countriesRes, loading: countriesLoading } = index_module.$n(data.COUNTRIES_QUERY_NAMESPACE);
2976
2529
  const intlLocale = (locale === null || locale === void 0 ? void 0 : locale.replace("_", "-")) || "en";
2977
- 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]);
2530
+ const _countries = stencilHooks_module.useMemo(() => { var _a, _b; return (_b = (_a = _countriesRes === null || _countriesRes === void 0 ? void 0 : _countriesRes.impactPayoutCountries) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.map((country) => utils$1.getCountryObj({ countryCode: country.countryCode, locale: intlLocale })); }, [(_a = _countriesRes === null || _countriesRes === void 0 ? void 0 : _countriesRes.impactPayoutCountries) === null || _a === void 0 ? void 0 : _a.data]);
2978
2531
  const [loading, setLoading] = stencilHooks_module.useState(false);
2979
2532
  const [formState, setFormState] = stencilHooks_module.useState({});
2980
2533
  const [errors, setErrors] = stencilHooks_module.useState({});
@@ -3089,7 +2642,7 @@ function useIndirectTaxForm(props) {
3089
2642
  await refetch();
3090
2643
  const resultPublisher = (_e = (_d = (_c = result
3091
2644
  .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;
3092
- const hasValidCurrentDocument = sqmInvoiceTableView.validTaxDocument(resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) && (resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.currentTaxDocument);
2645
+ const hasValidCurrentDocument = utils$1.validTaxDocument(resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) && (resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.currentTaxDocument);
3093
2646
  // Fire form change event
3094
2647
  window.dispatchEvent(new Event(usePayoutStatus.TAX_FORM_UPDATED_EVENT_KEY));
3095
2648
  if ((resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) &&
@@ -3144,10 +2697,10 @@ function useIndirectTaxForm(props) {
3144
2697
  })),
3145
2698
  },
3146
2699
  data: {
3147
- esRegions: sqmInvoiceTableView.INDIRECT_TAX_SPAIN_REGIONS,
2700
+ esRegions: IndirectTaxDetailsView.INDIRECT_TAX_SPAIN_REGIONS,
3148
2701
  countries: filteredCountries,
3149
2702
  allCountries: _countries,
3150
- provinces: sqmInvoiceTableView.INDIRECT_TAX_PROVINCES,
2703
+ provinces: IndirectTaxDetailsView.INDIRECT_TAX_PROVINCES,
3151
2704
  },
3152
2705
  text: props.getTextProps(),
3153
2706
  refs: {
@@ -3349,7 +2902,7 @@ const IndirectTaxForm = class {
3349
2902
  const props = index_module.isDemo()
3350
2903
  ? useDemoIndirectTaxForm(this)
3351
2904
  : useIndirectTaxForm(this);
3352
- const registeredInDifferentCountryDetailsSlot = (index.h(sqmInvoiceTableView.OtherRegionSlotView, { states: {
2905
+ const registeredInDifferentCountryDetailsSlot = (index.h(IndirectTaxDetailsView.OtherRegionSlotView, { states: {
3353
2906
  hide: props.states.formState.checked !== "otherRegion",
3354
2907
  disabled: props.states.disabled || props.states.isPartner,
3355
2908
  formState: props.slotProps.formState,
@@ -3367,8 +2920,8 @@ const IndirectTaxForm = class {
3367
2920
  }
3368
2921
  };
3369
2922
  function useDemoIndirectTaxForm(props) {
3370
- const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
3371
- const [option, setOption] = stencilHooks_module.useState(null);
2923
+ const setStep = index_module.En(data.TAX_CONTEXT_NAMESPACE);
2924
+ const [option, setOption] = stencilHooks_module.useState("otherRegion");
3372
2925
  const [demoFormState, setDemoFormState] = stencilHooks_module.useState({});
3373
2926
  return cjs.cjs({
3374
2927
  states: {
@@ -3408,7 +2961,7 @@ function useDemoIndirectTaxForm(props) {
3408
2961
  setCountrySearch: (c) => console.log(c),
3409
2962
  },
3410
2963
  data: {
3411
- esRegions: sqmInvoiceTableView.INDIRECT_TAX_SPAIN_REGIONS,
2964
+ esRegions: IndirectTaxDetailsView.INDIRECT_TAX_SPAIN_REGIONS,
3412
2965
  countries: [
3413
2966
  {
3414
2967
  countryCode: "CA",
@@ -3427,7 +2980,7 @@ function useDemoIndirectTaxForm(props) {
3427
2980
  displayName: "United States",
3428
2981
  },
3429
2982
  ],
3430
- provinces: sqmInvoiceTableView.INDIRECT_TAX_PROVINCES,
2983
+ provinces: IndirectTaxDetailsView.INDIRECT_TAX_PROVINCES,
3431
2984
  },
3432
2985
  text: props.getTextProps(),
3433
2986
  refs: {
@@ -3660,7 +3213,7 @@ const InvoiceTable = class {
3660
3213
  ? useInvoiceTableDemo(this, empty, loading)
3661
3214
  : useInvoiceTable(this, empty, loading);
3662
3215
  reRender.useRequestRerender([this.perPage]);
3663
- return (index.h(sqmInvoiceTableView.InvoiceTableView, { header: this.header, description: this.description }, index.h(GenericTableView.GenericTableView, { states: states, data: data, callbacks: callbacks, elements: elements })));
3216
+ return (index.h(IndirectTaxDetailsView.InvoiceTableView, { header: this.header, description: this.description }, index.h(GenericTableView.GenericTableView, { states: states, data: data, callbacks: callbacks, elements: elements })));
3664
3217
  }
3665
3218
  };
3666
3219
  function EmptySlot(props) {
@@ -3762,18 +3315,6 @@ function useInvoiceTableDemo(props, emptyElement, loadingElement) {
3762
3315
  return demoProps;
3763
3316
  }
3764
3317
 
3765
- const InvoiceTableDataCell = class {
3766
- constructor(hostRef) {
3767
- index.registerInstance(this, hostRef);
3768
- this.ignored = true;
3769
- stencilHooks_module.h$1(this);
3770
- }
3771
- disconnectedCallback() { }
3772
- render() {
3773
- return this.data;
3774
- }
3775
- };
3776
-
3777
3318
  const InvoiceTableDataColumn = class {
3778
3319
  constructor(hostRef) {
3779
3320
  index.registerInstance(this, hostRef);
@@ -3792,23 +3333,6 @@ const InvoiceTableDataColumn = class {
3792
3333
  }
3793
3334
  };
3794
3335
 
3795
- const RewardTableDateCell = class {
3796
- constructor(hostRef) {
3797
- index.registerInstance(this, hostRef);
3798
- this.ignored = true;
3799
- this.locale = "en";
3800
- stencilHooks_module.h$1(this);
3801
- }
3802
- disconnectedCallback() { }
3803
- render() {
3804
- var _a, _b;
3805
- const date = !this.date
3806
- ? "-"
3807
- : (_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);
3808
- return date;
3809
- }
3810
- };
3811
-
3812
3336
  const InvoiceTableDateColumn = class {
3813
3337
  constructor(hostRef) {
3814
3338
  index.registerInstance(this, hostRef);
@@ -3827,21 +3351,6 @@ const InvoiceTableDateColumn = class {
3827
3351
  }
3828
3352
  };
3829
3353
 
3830
- const InvoiceTableDownloadCell = class {
3831
- constructor(hostRef) {
3832
- index.registerInstance(this, hostRef);
3833
- this.ignored = true;
3834
- stencilHooks_module.h$1(this);
3835
- }
3836
- disconnectedCallback() { }
3837
- render() {
3838
- const vanillaStyle = `svg:hover, svg:hover * {
3839
- cursor: pointer;
3840
- }`;
3841
- 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: "var(--sqm-text-subdued)" }), 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: "var(--sqm-text-subdued)" }))))));
3842
- }
3843
- };
3844
-
3845
3354
  const InvoiceTableGenericColumn = class {
3846
3355
  constructor(hostRef) {
3847
3356
  index.registerInstance(this, hostRef);
@@ -3864,7 +3373,7 @@ const PayPalIcon = () => (index.h("svg", { xmlns: "http://www.w3.org/2000/svg",
3864
3373
  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" }),
3865
3374
  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" })));
3866
3375
 
3867
- const style$5 = {
3376
+ const style$4 = {
3868
3377
  CardContainer: {
3869
3378
  display: "grid",
3870
3379
  gridTemplateColumns: "1fr",
@@ -3998,7 +3507,7 @@ const style$5 = {
3998
3507
  },
3999
3508
  };
4000
3509
  function PayoutDetailsCardView(props) {
4001
- const sheet = JSS.createStyleSheet(style$5);
3510
+ const sheet = JSS.createStyleSheet(style$4);
4002
3511
  const styleString = sheet.toString();
4003
3512
  const { classes } = sheet;
4004
3513
  const { states, text } = props;
@@ -4049,8 +3558,8 @@ function PayoutDetailsCardView(props) {
4049
3558
 
4050
3559
  function usePayoutDetailsCard(props) {
4051
3560
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
4052
- const { data, loading } = index_module.$n(USER_QUERY_NAMESPACE);
4053
- 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;
3561
+ const { data: data$1, loading } = index_module.$n(data.USER_QUERY_NAMESPACE);
3562
+ 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;
4054
3563
  function getPayoutDetailedStatusText(paymentDay) {
4055
3564
  var _a;
4056
3565
  const currentDay = luxon.luxon.DateTime.now().day;
@@ -4128,6 +3637,10 @@ const PayoutDetailsCard = class {
4128
3637
  * @uiName Payout missing information subtext
4129
3638
  */
4130
3639
  this.payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
3640
+ /**
3641
+ * @componentState { "title": "Loading", "props": { "states": { "loading": true } } }
3642
+ */
3643
+ this.stateController = "{}";
4131
3644
  stencilHooks_module.h$1(this);
4132
3645
  }
4133
3646
  disconnectedCallback() { }
@@ -4165,1220 +3678,7 @@ function useDemoPayoutDetailsCard(props) {
4165
3678
  }, props.demoData || {}, { arrayMerge: (_, a) => a });
4166
3679
  }
4167
3680
 
4168
- const TableCell = class {
4169
- constructor(hostRef) {
4170
- index.registerInstance(this, hostRef);
4171
- /** @uiName Column span */
4172
- this.colspan = 1;
4173
- /** @uiName Padding */
4174
- this.padding = "15px 10px";
4175
- }
4176
- render() {
4177
- return (index.h(index.Host, { style: { display: "contents" } }, index.h("td", { colSpan: this.colspan, style: { padding: this.padding } }, index.h("slot", null))));
4178
- }
4179
- };
4180
-
4181
- const TableRow = class {
4182
- constructor(hostRef) {
4183
- index.registerInstance(this, hostRef);
4184
- /**
4185
- * @uiName Border
4186
- */
4187
- this.border = "1px solid #EAEAEA";
4188
- }
4189
- render() {
4190
- return (index.h(index.Host, { style: { display: "contents" } }, index.h("tr", { style: { border: this.border } }, index.h("slot", null))));
4191
- }
4192
- };
4193
-
4194
- function getCurrentStep(user) {
4195
- var _a, _b;
4196
- if (!((_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.connected) || !((_b = user.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher)) {
4197
- return "/1";
4198
- }
4199
- const { requiredTaxDocumentType, currentTaxDocument, withdrawalSettings, brandedSignup, } = user.impactConnection.publisher;
4200
- // If they do have a required document, look at current document
4201
- if (requiredTaxDocumentType && !currentTaxDocument)
4202
- return "/3";
4203
- if (!withdrawalSettings && brandedSignup)
4204
- return "/4";
4205
- return "/dashboard";
4206
- }
4207
- function useTaxAndCash() {
4208
- var _a, _b, _c, _d, _e;
4209
- const host = index_module._();
4210
- const user = index_module.J();
4211
- const locale = index_module.L();
4212
- // State for current step of form
4213
- const [step, setStep] = index_module.In({
4214
- namespace: TAX_CONTEXT_NAMESPACE,
4215
- initialValue: "/loading",
4216
- });
4217
- // State for when to hide steps, or override certain actions
4218
- const [context, _setContext] = index_module.In({
4219
- namespace: TAX_FORM_CONTEXT_NAMESPACE,
4220
- initialValue: {},
4221
- });
4222
- // State to carry user form information into step 2
4223
- const [userFormContext, _setUserFormContext] = index_module.In({
4224
- namespace: USER_FORM_CONTEXT_NAMESPACE,
4225
- initialValue: {
4226
- firstName: undefined,
4227
- lastName: undefined,
4228
- email: undefined,
4229
- countryCode: undefined,
4230
- currency: undefined,
4231
- },
4232
- });
4233
- const [_currenciesContext, setCurrenciesContext] = index_module.In({
4234
- namespace: CURRENCIES_NAMESPACE,
4235
- initialValue: [],
4236
- });
4237
- const [_countriesContext, _setCountriesContext] = index_module.In({
4238
- namespace: COUNTRIES_NAMESPACE,
4239
- initialValue: [],
4240
- });
4241
- const [_sortedCountriesContext, setSortedCountriesContext] = index_module.In({
4242
- namespace: SORTED_COUNTRIES_NAMESPACE,
4243
- initialValue: [],
4244
- });
4245
- const { data, errors } = index_module.Sn({
4246
- namespace: USER_QUERY_NAMESPACE,
4247
- query: GET_USER,
4248
- skip: !user,
4249
- options: {
4250
- batch: false,
4251
- },
4252
- });
4253
- 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) ||
4254
- userFormContext.countryCode;
4255
- index_module.Sn({
4256
- namespace: COUNTRIES_QUERY_NAMESPACE,
4257
- query: GET_COUNTRIES,
4258
- skip: !user,
4259
- });
4260
- const { data: financeNetworkData, refetch } = index_module.Sn({
4261
- namespace: FINANCE_NETWORK_SETTINGS_NAMESPACE,
4262
- query: GET_FINANCE_NETWORK_SETTINGS,
4263
- skip: !user,
4264
- variables: {
4265
- filter: getFinanceNetworkFilter(),
4266
- },
4267
- });
4268
- const { data: currenciesData } = index_module.Sn({
4269
- namespace: CURRENCIES_QUERY_NAMESPACE,
4270
- query: GET_CURRENCIES,
4271
- skip: !user,
4272
- variables: {
4273
- locale,
4274
- },
4275
- });
4276
- const supportedCurrencies = stencilHooks_module.useMemo(() => {
4277
- var _a, _b;
4278
- // Filter out any currencies not supported by finance network settings
4279
- 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) => {
4280
- var _a, _b;
4281
- 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);
4282
- // Currency not in supported list
4283
- if (!currency)
4284
- return agg;
4285
- // Currency already added to list
4286
- if (agg.find((currency) => currency.currencyCode === settings.currency))
4287
- return agg;
4288
- // Currency not supported by selected country
4289
- if (userFormContext.countryCode &&
4290
- settings.countryCode !== countryCode)
4291
- return agg;
4292
- return [...agg, currency];
4293
- }, []);
4294
- return allValidCurrencies;
4295
- }, [financeNetworkData, countryCode]);
4296
- const intlLocale = (locale === null || locale === void 0 ? void 0 : locale.replace("_", "-")) || "en";
4297
- const sortByName = (a, b) => a.displayName < b.displayName ? -1 : 1;
4298
- const paymentOptions = (_d = financeNetworkData === null || financeNetworkData === void 0 ? void 0 : financeNetworkData.impactFinanceNetworkSettings) === null || _d === void 0 ? void 0 : _d.data;
4299
- // filter out any duplicate countries and null countryCode
4300
- const availableCountries = stencilHooks_module.useMemo(() => new Set(paymentOptions === null || paymentOptions === void 0 ? void 0 : paymentOptions.map((option) => option.countryCode).filter((value) => value)), [paymentOptions]);
4301
- const _topCountries = ["CA", "GB", "US"];
4302
- const sortedCountries = stencilHooks_module.useMemo(() => Array.from(availableCountries)
4303
- .map((countryCode) => sqmInvoiceTableView.getCountryObj({ countryCode, locale: intlLocale }))
4304
- .sort(sortByName)
4305
- .reduce((prev, countryObj) => {
4306
- if (_topCountries.includes(countryObj.countryCode))
4307
- return [countryObj, ...prev];
4308
- return [...prev, countryObj];
4309
- }, []), [availableCountries]);
4310
- stencilHooks_module.useEffect(() => {
4311
- if (sortedCountries)
4312
- setSortedCountriesContext(sortedCountries);
4313
- }, [sortedCountries]);
4314
- stencilHooks_module.useEffect(() => {
4315
- if (supportedCurrencies)
4316
- setCurrenciesContext(supportedCurrencies);
4317
- }, [supportedCurrencies]);
4318
- stencilHooks_module.useEffect(() => {
4319
- if (errors) {
4320
- setStep("/error");
4321
- return;
4322
- }
4323
- if (!host || !user)
4324
- return;
4325
- if (data) {
4326
- const user = data === null || data === void 0 ? void 0 : data.user;
4327
- if (!user || step !== "/loading")
4328
- return;
4329
- const currentStep = getCurrentStep(user);
4330
- setStep(currentStep);
4331
- }
4332
- }, [host, user, (_e = data === null || data === void 0 ? void 0 : data.user) === null || _e === void 0 ? void 0 : _e.email, errors]);
4333
- function getFinanceNetworkFilter() {
4334
- var _a, _b, _c;
4335
- if (step === "/1")
4336
- return {};
4337
- if (step === "/4")
4338
- 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 };
4339
- if (countryCode)
4340
- return {
4341
- countryCode_eq: countryCode,
4342
- };
4343
- return {};
4344
- }
4345
- return {
4346
- step,
4347
- setStep,
4348
- context,
4349
- namespace: index_module.Mn(TAX_CONTEXT_NAMESPACE),
4350
- loading: step === "/loading",
4351
- };
4352
- }
4353
-
4354
- const TaxAndCashMonolith = class {
4355
- constructor(hostRef) {
4356
- index.registerInstance(this, hostRef);
4357
- /*---------------------------------------------------------------------------------
4358
- !IMPORTANT!: Make sure to also change the prop names in the respective component
4359
- -----------------------------------------------------------------------------------*/
4360
- /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4361
- STEP 1 PROPS:
4362
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
4363
- /**
4364
- * @uiName First name field label
4365
- * @uiGroup Step 1 Properties
4366
- */
4367
- this.step1_firstName = "First name";
4368
- /**
4369
- * @uiName Last name field label
4370
- * @uiGroup Step 1 Properties
4371
- */
4372
- this.step1_lastName = "Last name";
4373
- /**
4374
- * @uiName Email field label
4375
- * @uiGroup Step 1 Properties
4376
- */
4377
- this.step1_email = "Email";
4378
- /**
4379
- * @uiName Country field label
4380
- * @uiGroup Step 1 Properties
4381
- */
4382
- this.step1_country = "Country";
4383
- /**
4384
- * @uiName Phone number field label
4385
- * @uiGroup Step 1 Properties
4386
- */
4387
- this.step1_phoneNumber = "Phone number";
4388
- /**
4389
- * @uiName Address field label
4390
- * @uiGroup Step 1 Properties
4391
- */
4392
- this.step1_address = "Address";
4393
- /**
4394
- * @uiName City field label
4395
- * @uiGroup Step 1 Properties
4396
- */
4397
- this.step1_city = "City";
4398
- /**
4399
- * @uiName State field label for states
4400
- * @uiGroup Step 1 Properties
4401
- */
4402
- this.step1_state = "State";
4403
- /**
4404
- * @uiName State field label for provinces
4405
- * @uiGroup Step 1 Properties
4406
- */
4407
- this.step1_province = "Province";
4408
- /**
4409
- * @uiName State field label for regions
4410
- * @uiGroup Step 1 Properties
4411
- */
4412
- this.step1_region = "Region";
4413
- /**
4414
- * @uiName Postal code field label
4415
- * @uiGroup Step 1 Properties
4416
- */
4417
- this.step1_postalCode = "Postal code";
4418
- /**
4419
- * @uiName Currency field label
4420
- * @uiGroup Step 1 Properties
4421
- */
4422
- this.step1_currency = "Currency";
4423
- /**
4424
- * @uiName Currency field help text
4425
- * @uiGroup Step 1 Properties
4426
- */
4427
- this.step1_currencyHelpText = "Choose your preferred payout currency";
4428
- /**
4429
- * Edit the property called terms and conditions text to change what's displayed for {termsAndConditionsLink}.
4430
- * @uiName Terms and conditions checkbox
4431
- * @uiGroup Step 1 Properties
4432
- */
4433
- this.step1_allowBankingCollection = "I have read the {termsAndConditionsLink} and allow impact.com to collect my tax and banking information";
4434
- /**
4435
- * @uiName Step 1 title
4436
- * @uiGroup Step 1 Properties
4437
- */
4438
- this.step1_personalInformation = "Personal Information";
4439
- /**
4440
- * The link text that appears in the terms and conditions checkbox
4441
- * @uiName Terms and conditions text
4442
- * @uiGroup Step 1 Properties
4443
- * @uiWidget textArea
4444
- */
4445
- this.step1_termsAndConditionsLabel = "terms and conditions";
4446
- /**
4447
- * The link that appears in the terms and conditions checkbox
4448
- * @uiName Terms and conditions link
4449
- * @uiGroup Step 1 Properties
4450
- */
4451
- this.step1_termsAndConditionsLink = "https://terms.advocate.impact.com/PayoutTermsAndConditions.html";
4452
- /**
4453
- * Placeholder text displayed in the currency search dropdown
4454
- * @uiName Currency field placeholder text
4455
- * @uiGroup Step 1 Properties
4456
- */
4457
- this.step1_searchForCurrencyText = "Search for currency..";
4458
- /**
4459
-
4460
- /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4461
- STEP 2 PROPS:
4462
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
4463
- /**
4464
- * @uiName Step 2 title
4465
- * @uiGroup Step 2 Properties
4466
- */
4467
- this.step2_indirectTax = "Indirect Tax";
4468
- /**
4469
- * Displayed under the title of this step.
4470
- * @uiName Step 2 description
4471
- * @uiGroup Step 2 Properties
4472
- * @uiWidget textArea
4473
- */
4474
- 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.";
4475
- /**
4476
- * Displayed with indirect tax registration options.
4477
- * @uiName Indirect tax details section title
4478
- * @uiGroup Step 2 Properties
4479
- */
4480
- this.step2_indirectTaxDetails = "Indirect tax details";
4481
- /**
4482
- * @uiName Registered for indirect tax option
4483
- * @uiGroup Step 2 Properties
4484
- * @uiWidget textArea
4485
- *
4486
- */
4487
- this.step2_otherRegion = "Registered for indirect tax";
4488
- /**
4489
- * Selecting this option will display fields to enter indirect tax details.
4490
- * @uiName Registered for indirect tax option description
4491
- * @uiGroup Step 2 Properties
4492
- */
4493
- this.step2_otherRegionSubtext = "If you’ve registered with your tax authority, add your information to stay tax compliant.";
4494
- /**
4495
- * @uiName Not registered for indirect tax option
4496
- * @uiGroup Step 2 Properties
4497
- * @uiWidget textArea
4498
- */
4499
- this.step2_notRegistered = "Not registered for indirect tax";
4500
- /**
4501
- * Participants based in the US are considered not registered.
4502
- * @uiName Not registered for indirect tax option description
4503
- * @uiGroup Step 2 Properties
4504
- */
4505
- this.step2_notRegisteredSubtext = "If you’ve never set up indirect tax with your tax authority, then you’re likely not considered registered.";
4506
- /**
4507
- * @uiName Region of indirect tax field label
4508
- * @uiGroup Step 2 Properties
4509
- */
4510
- this.step2_selectedRegion = "Country / region of indirect tax";
4511
- /**
4512
- * @uiName Indirect tax number field label
4513
- * @uiGroup Step 2 Properties
4514
- */
4515
- this.step2_indirectTaxNumber = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}}";
4516
- /**
4517
- * @uiName Province field label
4518
- * @uiGroup Step 2 Properties
4519
- */
4520
- this.step2_province = "Province";
4521
- /**
4522
- * @uiName Missing indirect tax number error message
4523
- * @uiGroup Step 2 Properties
4524
- */
4525
- 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";
4526
- /**
4527
- * Displayed to participants registered for QST.
4528
- * @uiName QST number field label
4529
- * @uiGroup Step 2 Properties
4530
- */
4531
- this.step2_qstNumber = "QST number";
4532
- /**
4533
- * Displayed to participants registered for indirect tax in Quebec, Canada.
4534
- * @uiName QST tax checkbox
4535
- * @uiGroup Step 2 Properties
4536
- */
4537
- this.step2_isRegisteredQST = "I am registered for QST Tax";
4538
- /**
4539
- * Displayed to participants registered for indirect tax in Spain.
4540
- * @uiName Spain income tax checkbox
4541
- * @uiGroup Step 2 Properties
4542
- * @uiWidget textArea
4543
- */
4544
- 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.";
4545
- /**
4546
- * Displayed to participants registered in Spain.
4547
- * @uiName Sub-region of indirect tax field label
4548
- * @uiGroup Step 2 Properties
4549
- */
4550
- this.step2_subRegion = "Sub-region";
4551
- /**
4552
- * @uiName Income tax field label
4553
- * @uiGroup Step 2 Properties
4554
- */
4555
- this.step2_subRegionTaxNumberLabel = "Income Tax Number";
4556
- /**
4557
- * Communicate that after this step, only Support can change personal and indirect tax information.
4558
- * @uiName Submission confirmation alert
4559
- * @uiGroup Step 2 Properties
4560
- * @uiWidget textArea
4561
- */
4562
- 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.";
4563
- /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4564
- STEP 3 PROPS:
4565
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
4566
- /**
4567
- * @uiName Step 3 title
4568
- * @uiGroup Step 3 Properties
4569
- */
4570
- this.step3_taxForm = "Tax form";
4571
- /**
4572
- * Display the type of tax form that the participant must submit.
4573
- * @uiName Tax form name
4574
- * @uiGroup Step 3 Properties
4575
- */
4576
- this.step3_taxFormLabel = "{documentType} Tax Form";
4577
- /**
4578
- * @uiName Participant type field label
4579
- * @uiGroup Step 3 Properties
4580
- */
4581
- this.step3_participantType = "Participant type";
4582
- /**
4583
- * An option for the participant type field. Used to determine which W-8 form is required.
4584
- * @uiName Business representative participant type label
4585
- * @uiGroup Step 3 Properties
4586
- */
4587
- this.step3_businessEntity = "I represent a business";
4588
- /**
4589
- * An option for the participant type field. Used to determine which W-8 form is required.
4590
- * @uiName Individual participant type label
4591
- * @uiGroup Step 3 Properties
4592
- */
4593
- this.step3_individualParticipant = "I am an individual participant";
4594
- /**
4595
- * Displayed at the top of the page to participants based in the US.
4596
- * @uiName W-9 tax form description
4597
- * @uiGroup Step 3 Properties
4598
- * @uiWidget textArea
4599
- */
4600
- this.step3_taxFormDescription = "Participants based in the US need to submit a {documentType} form.";
4601
- /**
4602
- * Displayed at the top of the page to individuals joining a US program who reside outside the country.
4603
- * @uiName W-8 BEN tax form description
4604
- * @uiGroup Step 3 Properties
4605
- * @uiWidget textArea
4606
- */
4607
- this.step3_taxFormDescriptionIndividualParticipant = "Participants residing outside of the US, joining the referral program of a US-based company, need to submit a {documentType} form.";
4608
- /**
4609
- * Displayed at the top of the page to participants representing a business.
4610
- * @uiName W-8 BEN-E tax form description
4611
- * @uiGroup Step 3 Properties
4612
- * @uiWidget textArea
4613
- */
4614
- this.step3_taxFormDescriptionBusinessEntity = "Participants residing outside of the US who represent a business entity need to submit a {documentType} form.";
4615
- /**
4616
- * This appears inside the Docusign frame.
4617
- * @uiName Docusign session expired message
4618
- * @uiGroup Step 3 Properties
4619
- * @uiWidget textArea
4620
- */
4621
- 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.";
4622
- /**
4623
- * Remind participants their session will time out after 20 minutes of inactivity.
4624
- * @uiName Docusign timed session message
4625
- * @uiGroup Step 3 Properties
4626
- * @uiWidget textArea
4627
- */
4628
- this.step3_docusignSessionWarning = "For your security, we automatically end your session when you have not interacted with the form after 20 minutes.";
4629
- /**
4630
- * This appears inside the Docusign frame.
4631
- * @uiName Docusign form error message
4632
- * @uiGroup Step 3 Properties
4633
- * @uiWidget textArea
4634
- */
4635
- this.step3_docusignError = "There was a problem displaying this form. Please refresh the page. If this problem continues, contact our {supportLink}.";
4636
- /**
4637
- * @uiName Refresh page button label
4638
- * @uiGroup Step 3 Properties
4639
- */
4640
- this.step3_refreshButton = "Refresh Page";
4641
- /**
4642
- * @uiName Exit button text
4643
- * @uiGroup Step 3 Properties
4644
- */
4645
- this.step3_exitButton = "Exit";
4646
- /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4647
- STEP 4 PROPS:
4648
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
4649
- /**
4650
- * @uiName Step 4 title
4651
- * @uiGroup Step 4 Properties
4652
- */
4653
- this.step4_taxAndPayouts = "Payouts";
4654
- /**
4655
- * @uiName Direct to bank payout option
4656
- * @uiGroup Step 4 Properties
4657
- */
4658
- this.step4_directlyToBankAccount = "Directly to my bank account";
4659
- /**
4660
- * @uiName PayPal payout option
4661
- * @uiGroup Step 4 Properties
4662
- */
4663
- this.step4_toPayPalAccount = "PayPal (2% processing fee capped to {feeCap})";
4664
- /**
4665
- * @uiName Threshold balance payment schedule option
4666
- * @uiGroup Step 4 Properties
4667
- */
4668
- this.step4_paymentScheduleBalanceThreshold = "Pay me when my balance reaches a threshold";
4669
- /**
4670
- * @uiName Fixed day payment schedule option
4671
- * @uiGroup Step 4 Properties
4672
- */
4673
- this.step4_paymentScheduleFixedDay = "Pay me on a fixed day of the month";
4674
- /**
4675
- * Let the participant choose what day of the month they’ll get paid
4676
- * @uiName Payment day field label
4677
- * @uiGroup Step 4 Properties
4678
- */
4679
- this.step4_paymentDaySelectLabel = "Payment Day";
4680
- /**
4681
- * Participant use this field to select the balance at which they want to be paid
4682
- * @uiName Payment threshold field label
4683
- * @uiGroup Step 4 Properties
4684
- */
4685
- this.step4_paymentThresholdSelectLabel = "Payment threshold";
4686
- /**
4687
- * One of two payment day options
4688
- * @uiName First of month payday option
4689
- * @uiGroup Step 4 Properties
4690
- */
4691
- this.step4_paymentDayFirstOfMonthLabelText = "1st of the month";
4692
- /**
4693
- * One of two payment day options
4694
- * @uiName Fifteenth of month payday option
4695
- * @uiGroup Step 4 Properties
4696
- */
4697
- this.step4_paymentDayFifteenthOfMonthLabelText = "15th of the month";
4698
- /**
4699
- * @uiName Payment method section header
4700
- * @uiGroup Step 4 Properties
4701
- */
4702
- this.step4_paymentMethod = "Payment method";
4703
- /**
4704
- * @uiName Payment schedule section header
4705
- * @uiGroup Step 4 Properties
4706
- */
4707
- this.step4_paymentSchedule = "Payment schedule";
4708
- /**
4709
- * @uiName Payment method section description
4710
- * @uiGroup Step 4 Properties
4711
- */
4712
- this.step4_paymentMethodSubtext = "Payouts will be sent from our referral program provider, impact.com.";
4713
- /**
4714
- * Displayed to participants who choose PayPal as their payout method
4715
- * @uiName PayPal email field label
4716
- * @uiGroup Step 4 Properties
4717
- */
4718
- this.step4_payPalInputLabel = "PayPal email";
4719
- /**
4720
- * @uiName Bank country field label
4721
- * @uiGroup Step 4 Properties
4722
- */
4723
- this.step4_bankLocationLabel = "Bank country location";
4724
- /**
4725
- * @uiName Beneficiary account field label
4726
- * @uiGroup Step 4 Properties
4727
- */
4728
- this.step4_beneficiaryAccountNameLabel = "Beneficiary account name";
4729
- /**
4730
- * @uiName Bank account type field label
4731
- * @uiGroup Step 4 Properties
4732
- */
4733
- this.step4_bankAccountTypeLabel = "Bank account type";
4734
- /**
4735
- * @uiName Checking account option
4736
- * @uiGroup Step 4 Properties
4737
- */
4738
- this.step4_checkingSelectItemLabel = "Checking";
4739
- /**
4740
- * Label text for the savings account type select item
4741
- * @uiName Savings account options
4742
- * @uiGroup Step 4 Properties
4743
- */
4744
- this.step4_savingsSelectItemLabel = "Savings";
4745
- /**
4746
- * @uiName Bank account number field label
4747
- * @uiGroup Step 4 Properties
4748
- */
4749
- this.step4_bankAccountNumberLabel = "Bank account number";
4750
- /**
4751
- * @uiName IBAN field label
4752
- * @uiGroup Step 4 Properties
4753
- */
4754
- this.step4_ibanLabel = "IBAN";
4755
- /**
4756
- * @uiName SWIFT code field label
4757
- * @uiGroup Step 4 Properties
4758
- */
4759
- this.step4_swiftCodeLabel = "SWIFT code";
4760
- /**
4761
- * @uiName Routing code field label
4762
- * @uiGroup Step 4 Properties
4763
- */
4764
- 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} }";
4765
- /**
4766
- * @uiName Bank name field label
4767
- * @uiGroup Step 4 Properties
4768
- */
4769
- this.step4_bankNameLabel = "Bank name";
4770
- /**
4771
- * @uiName Classification entity field label
4772
- * @uiGroup Step 4 Properties
4773
- */
4774
- this.step4_classificationEntityLabel = "Classification entity";
4775
- /**
4776
- * One of three options listed for the classification field
4777
- * @uiName Business classification option
4778
- * @uiGroup Step 4 Properties
4779
- */
4780
- this.step4_businessSelectItemLabel = "Business";
4781
- /**
4782
- * One of three options listed for the classification field
4783
- * @uiName Individual classification option
4784
- * @uiGroup Step 4 Properties
4785
- */
4786
- this.step4_individualSelectItemLabel = "Individual";
4787
- /**
4788
- * One of three options listed for the classification field
4789
- * @uiName Foreign classification option
4790
- * @uiGroup Step 4 Properties
4791
- */
4792
- this.step4_foreignSelectItemLabel = "Foreign";
4793
- /**
4794
- * @uiName Classification CPF field label
4795
- * @uiGroup Step 4 Properties
4796
- */
4797
- this.step4_classificationCPFLabel = "Classification CPF";
4798
- /**
4799
- * @uiName Patronymic name field label
4800
- * @uiGroup Step 4 Properties
4801
- */
4802
- this.step4_patronymicNameLabel = "Patronymic name";
4803
- /**
4804
- * @uiName VO code field label
4805
- * @uiGroup Step 4 Properties
4806
- */
4807
- this.step4_voCodeLabel = "VO code";
4808
- /**
4809
- * @uiName Agency code field label
4810
- * @uiGroup Step 4 Properties
4811
- */
4812
- this.step4_agencyCodeLabel = "Agency code";
4813
- /**
4814
- * @uiName Branch code field label
4815
- * @uiGroup Step 4 Properties
4816
- */
4817
- this.step4_branchCodeLabel = "Branch code";
4818
- /**
4819
- * Label text for the classification input field
4820
- * @uiName Classification field label
4821
- * @uiGroup Step 4 Properties
4822
- */
4823
- this.step4_classificationLabel = "Classification";
4824
- /**
4825
- * @uiName Taxpayer ID field label
4826
- * @uiGroup Step 4 Properties
4827
- */
4828
- this.step4_taxPayerIdLabel = "Beneficiary INN";
4829
- /**
4830
- * @uiName Bank address field label
4831
- * @uiGroup Step 4 Properties
4832
- */
4833
- this.step4_bankAddressLabel = "Bank address";
4834
- /**
4835
- * @uiName Bank city field label
4836
- * @uiGroup Step 4 Properties
4837
- */
4838
- this.step4_bankCityLabel = "Bank city";
4839
- /**
4840
- * @uiName Bank province/state field label
4841
- * @uiGroup Step 4 Properties
4842
- */
4843
- this.step4_bankStateLabel = "Bank Province / State";
4844
- /**
4845
- * @uiName Bank postal code field label
4846
- * @uiGroup Step 4 Properties
4847
- */
4848
- this.step4_bankPostalCodeLabel = "Bank postal code";
4849
- /**
4850
- * Default payment method to the participants’ bank account.
4851
- * @uiName EFT withdrawal payment method
4852
- * @uiGroup Step 4 Properties
4853
- */
4854
- this.step4_eftWithdrawalLabel = "EFT Withdrawal (free)";
4855
- /**
4856
- * @uiName FX Wire Processing fee text
4857
- * @uiGroup Step 4 Properties
4858
- */
4859
- this.step4_fxWireProcessingFeeLabel = "FX Wire (Processing Fee {currency}{defaultFxFee}.00)";
4860
- /**
4861
- * @uiName Text for verify email dialog
4862
- * @uiGroup Step 4 Properties
4863
- */
4864
- this.step4_verifyEmailHeaderText = "Verify your email";
4865
- /**
4866
- * @uiName Verify code widget header text
4867
- * @uiGroup Step 4 Properties
4868
- */
4869
- this.step4_verifyEmailDescriptionText = "Verify your email to update your payment settings. Enter the code sent to {email} from our referral provider, impact.com.";
4870
- /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4871
- DASHBOARD PROPS:
4872
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
4873
- /**
4874
- * @uiName Active tax form badge label
4875
- * @uiGroup Dashboard Properties
4876
- */
4877
- this.dashboard_statusTextActive = "Active";
4878
- /**
4879
- * @uiName Invalid tax form badge label
4880
- * @uiGroup Dashboard Properties
4881
- */
4882
- this.dashboard_statusTextNotActive = "Invalid Tax Form";
4883
- /**
4884
- * Displayed when the participant submitted their form but it is awaiting review.
4885
- *
4886
- * @uiName Not verified tax form badge label
4887
- * @uiGroup Dashboard Properties
4888
- */
4889
- this.dashboard_statusTextNotVerified = "Not Verified";
4890
- /**
4891
- * Additional text displayed next to the tax form's status badge
4892
- *
4893
- * @uiName Active W-9 description
4894
- * @uiGroup Dashboard Properties
4895
- */
4896
- this.dashboard_badgeTextSubmittedOn = "Submitted on {dateSubmitted}.";
4897
- /**
4898
- * Additional text displayed next to the tax form's status badge.
4899
- *
4900
- * @uiName Active W-8 description
4901
- * @uiGroup Dashboard Properties
4902
- */
4903
- this.dashboard_badgeTextSubmittedOnW8 = "Submitted on {dateSubmitted}. Valid for three years after submission.";
4904
- /**
4905
- * Additional text displayed next to the tax form's status badge.
4906
- *
4907
- * @uiName Tax form in review description
4908
- * @uiGroup Dashboard Properties
4909
- */
4910
- this.dashboard_badgeTextAwaitingReview = "Awaiting review. Submitted on {dateSubmitted}.";
4911
- /**
4912
- * Part of the alert displayed at the top of the page.
4913
- *
4914
- * @uiName Inactive W-9 error message title
4915
- * @uiGroup Dashboard Properties
4916
- * @uiWidget textArea
4917
- */
4918
- this.dashboard_taxAlertHeaderNotActiveW9 = "Your W9 tax form has personal information that doesn’t match your profile";
4919
- /**
4920
- * Part of the alert displayed at the top of the page.
4921
- *
4922
- * @uiName Inactive W-8 error message title
4923
- * @uiGroup Dashboard Properties
4924
- * @uiWidget textArea
4925
- */
4926
- this.dashboard_taxAlertHeaderNotActiveW8 = "{documentType} tax form is invalid";
4927
- /**
4928
- * Part of the alert displayed at the top of the page.
4929
- *
4930
- * @uiName Inactive W-9 error message description
4931
- * @uiGroup Dashboard Properties
4932
- * @uiWidget textArea
4933
- */
4934
- this.dashboard_taxAlertNotActiveMessageW9 = "Please resubmit a new {documentType} form.";
4935
- /**
4936
- * Part of the alert displayed at the top of the page.
4937
- *
4938
- * @uiName Inactive W-8 error message description
4939
- * @uiGroup Dashboard Properties
4940
- */
4941
- 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.";
4942
- /**
4943
- * Additional text displayed next to the tax form's status badge.
4944
- *
4945
- * @uiName Invalid tax form description
4946
- * @uiGroup Dashboard Properties
4947
- * @uiWidget textArea
4948
- */
4949
- this.dashboard_invalidForm = "Make sure your information is correct and submit new form.";
4950
- /**
4951
- * @uiName Payout information section header
4952
- * @uiGroup Dashboard Properties
4953
- */
4954
- this.dashboard_bankingInformationSectionHeader = "Payout Information";
4955
- /**
4956
- * @uiName Tax document section header
4957
- * @uiGroup Dashboard Properties
4958
- */
4959
- this.dashboard_taxDocumentSectionHeader = "Tax documents";
4960
- /**
4961
- * Displayed under the tax document section header.
4962
- *
4963
- * @uiName Tax documents section description
4964
- * @uiGroup Dashboard Properties
4965
- */
4966
- this.dashboard_taxDocumentSectionSubHeader = "{documentType} tax form";
4967
- /**
4968
- * No other statuses or badges will be displayed in the tax form section in this case.
4969
- *
4970
- * @uiName Tax form not required text
4971
- * @uiGroup Dashboard Properties
4972
- * @uiWidget textArea
4973
- */
4974
- 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.";
4975
- /**
4976
- *
4977
- * @uiName Indirect tax section header
4978
- * @uiGroup Dashboard Properties
4979
- */
4980
- this.dashboard_indirectTaxInfoSectionHeader = "Indirect tax";
4981
- /**
4982
- * If the participant is registered for indirect tax in Canada, display the province they’re registered in.
4983
- *
4984
- * @uiName Canadian province of indirect tax
4985
- * @uiGroup Dashboard Properties
4986
- */
4987
- this.dashboard_indirectTaxInfoCanada = "Registered in {province}, {country}";
4988
- /**
4989
- * If the participant is registered for indirect tax, display the country they’re registered in.
4990
- *
4991
- * @uiName Indirect tax country
4992
- * @uiGroup Dashboard Properties
4993
- */
4994
- this.dashboard_indirectTaxInfoOtherCountry = "Registered in {country}";
4995
- /**
4996
- * If the participant is registered for indirect tax in Spain, display the region they’re registered in.
4997
- *
4998
- * @uiName Spanish region of indirect tax
4999
- * @uiGroup Dashboard Properties
5000
- */
5001
- this.dashboard_indirectTaxInfoSpain = "Registered in {country}, {subRegion}";
5002
- /**
5003
- * @uiName Indirect tax tooltip
5004
- * @uiGroup Dashboard Properties
5005
- * @uiWidget textArea
5006
- */
5007
- this.dashboard_indirectTaxTooltipSupport = "To make changes to your indirect tax information, please contact our {supportLink}.";
5008
- /**
5009
- * Displayed to participants who have submitted their indirect tax information.
5010
- *
5011
- * @uiName Indirect tax details
5012
- * @uiGroup Dashboard Properties
5013
- */
5014
- this.dashboard_indirectTaxDetails = "{indirectTaxType} number: {indirectTaxNumber}";
5015
- /**
5016
- * @uiName Submit new tax form button label
5017
- * @uiGroup Dashboard Properties
5018
- */
5019
- this.dashboard_newFormButton = "Submit new form";
5020
- /**
5021
- * @uiName Edit payment info button label
5022
- * @uiGroup Dashboard Properties
5023
- */
5024
- this.dashboard_editPaymentInformationButton = "Edit Payout Information";
5025
- /**
5026
- * @uiName Not registered for indirect tax text
5027
- * @uiGroup Dashboard Properties
5028
- * @uiWidget textArea
5029
- */
5030
- 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.";
5031
- /**
5032
- * Displayed to participants registered in Quebec, Canada.
5033
- * @uiName QST indirect tax details
5034
- * @uiGroup Dashboard Properties
5035
- */
5036
- this.dashboard_qstNumber = "QST number: {qstNumber}";
5037
- /**
5038
- * @uiName Spain sub-region indirect tax number
5039
- * @uiGroup Dashboard Properties
5040
- */
5041
- this.dashboard_subRegionTaxNumber = "Income tax number: {subRegionTaxNumber}";
5042
- /**
5043
- * @uiName Payout status badge
5044
- * @uiGroup Dashboard Properties
5045
- */
5046
- this.dashboard_statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
5047
- /**
5048
- * Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
5049
- * @uiName Payout schedule by threshold text
5050
- * @uiGroup Dashboard Properties
5051
- */
5052
- this.dashboard_thresholdPayoutText = "Next payout occurs when balance is {thresholdBalance}";
5053
- /**
5054
- * Shown before the participant’s bank account information.
5055
- * @uiName Bank account field label
5056
- * @uiGroup Dashboard Properties
5057
- */
5058
- this.dashboard_accountText = "Account";
5059
- /**
5060
- * Part of the Invoice table displayed at the bottom of the page.
5061
- * @uiName Invoice number column title
5062
- * @uiGroup Dashboard Properties
5063
- */
5064
- this.dashboard_invoiceColumnTitle = "Invoice";
5065
- /**
5066
- * Part of the Invoice table displayed at the bottom of the page.
5067
- * @uiName Date column title
5068
- * @uiGroup Dashboard Properties
5069
- */
5070
- this.dashboard_dateColumnTitle = "Date";
5071
- /**
5072
- * Part of the Invoice table displayed at the bottom of the page.
5073
- * @uiName Earnings column title
5074
- * @uiGroup Dashboard Properties
5075
- */
5076
- this.dashboard_earningsColumnTitle = "Earnings";
5077
- /**
5078
- * Part of the Invoice table displayed at the bottom of the page.
5079
- * @uiName Indirect tax column title
5080
- * @uiGroup Dashboard Properties
5081
- */
5082
- this.dashboard_indirectTaxColumnTitle = "Indirect tax";
5083
- /**
5084
- * Displayed under the payout details card.
5085
- * @uiName Payout from impact text
5086
- * @uiGroup Dashboard Properties
5087
- * @uiWidget textArea
5088
- */
5089
- this.dashboard_payoutFromImpact = "Your balance may take up to 24 hours to update. Payouts will be sent from our referral program provider, impact.com.";
5090
- /**
5091
- * Part of the Invoice table displayed at the bottom of the page.
5092
- * @uiName Earnings after tax column title
5093
- * @uiGroup Dashboard Properties
5094
- */
5095
- this.dashboard_earningsAfterTaxColumnTitle = "Earnings after tax";
5096
- /**
5097
- * Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
5098
- * @uiName Payout error message title
5099
- * @uiGroup Dashboard Properties
5100
- * @uiWidget textArea
5101
- */
5102
- this.dashboard_payoutHoldAlertHeader = "Your payout is on hold";
5103
- /**
5104
- * Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
5105
- * @uiName Payout error message description
5106
- * @uiGroup Dashboard Properties
5107
- * @uiWidget textArea
5108
- */
5109
- this.dashboard_payoutHoldAlertDescription = "Please contact our {supportLink} or check your inbox for an email from our referral program provider, impact.com.";
5110
- /**
5111
- * Text displayed for existing publishers that do not have saved banking information.
5112
- * @uiName Payout missing information subtext
5113
- * @uiGroup Dashboard Properties
5114
- */
5115
- this.dashboard_payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
5116
- /**
5117
- * @uiName Invoice table description
5118
- * @uiGroup Dashboard Properties
5119
- */
5120
- this.dashboard_invoiceDescription = "View and download your invoices to report your earnings and stay tax compliant.";
5121
- /**
5122
- * @uiName Invoice table previous page button label
5123
- * @uiGroup Dashboard Properties
5124
- */
5125
- this.dashboard_invoicePrevLabel = "Prev";
5126
- /**
5127
- * @uiName Invoice table next page button label
5128
- * @uiGroup Dashboard Properties
5129
- */
5130
- this.dashboard_invoiceMoreLabel = "Next";
5131
- /**
5132
- * @uiName Invoice table title
5133
- * @uiGroup Dashboard Properties
5134
- */
5135
- this.dashboard_invoiceHeader = "Invoices";
5136
- /**
5137
- * @uiName Empty invoice table header
5138
- * @uiGroup Dashboard Properties
5139
- */
5140
- this.dashboard_invoiceEmptyStateHeader = "View your invoice details";
5141
- /**
5142
- * @uiName Empty invoice table description
5143
- * @uiGroup Dashboard Properties
5144
- */
5145
- this.dashboard_invoiceEmptyStateText = "Refer a friend to view the status of your invoices and rewards earned";
5146
- /**
5147
- * @uiName Replace tax form modal header
5148
- * @uiGroup Dashboard Properties
5149
- */
5150
- this.dashboard_replaceTaxFormModalHeader = "Replace existing tax form";
5151
- /**
5152
- * @uiName Replace tax form modal body text
5153
- * @uiGroup Dashboard Properties
5154
- * @uiWidget textArea
5155
- */
5156
- 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.";
5157
- /**
5158
- * Part of the alert displayed at the top of the page when the user needs to verify their identity.
5159
- * @uiName Verification required alert message title
5160
- * @uiGroup Dashboard Properties
5161
- * @uiWidget textArea
5162
- */
5163
- this.dashboard_verificationRequiredHeader = "Verify your identity";
5164
- /**
5165
- * Part of the alert displayed at the top of the page when the user needs to verify their identity
5166
- * @uiName Verification required alert message description
5167
- * @uiGroup Dashboard Properties
5168
- * @uiWidget textArea
5169
- */
5170
- 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}.";
5171
- /**
5172
- * @uiName Verification required internal alert header
5173
- * @uiGroup Dashboard Properties
5174
- * @uiWidget textArea
5175
- */
5176
- this.dashboard_verificationRequiredInternalHeader = "Identity Verification in Progress";
5177
- /**
5178
- * @uiName Verification required internal alert description
5179
- * @uiGroup Dashboard Properties
5180
- * @uiWidget textArea
5181
- */
5182
- 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}.";
5183
- /**
5184
- * @uiName Verification review internal alert header
5185
- * @uiGroup Dashboard Properties
5186
- * @uiWidget textArea
5187
- */
5188
- this.dashboard_verificationReviewInternalHeader = "Identity Verification Under Review";
5189
- /**
5190
- * @uiName Verification review internal alert description
5191
- * @uiGroup Dashboard Properties
5192
- * @uiWidget textArea
5193
- */
5194
- 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}.";
5195
- /**
5196
- * @uiName Verification failed internal alert header
5197
- * @uiGroup Dashboard Properties
5198
- * @uiWidget textArea
5199
- */
5200
- this.dashboard_verificationFailedInternalHeader = "Identity Verification Unsuccessful";
5201
- /**
5202
- * @uiName Verification failed internal alert description
5203
- * @uiGroup Dashboard Properties
5204
- * @uiWidget textArea
5205
- */
5206
- 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}.";
5207
- /**
5208
- * Part of the alert displayed at the top of the page when the user needs to verify their identity.
5209
- * @uiName Verification required alert button text
5210
- * @uiGroup Dashboard Properties
5211
- * @uiWidget textArea
5212
- */
5213
- this.dashboard_verificationRequiredButtonText = "Start Verification";
5214
- /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5215
- GENERAL PROPS:
5216
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
5217
- /**
5218
- * @uiName Setup progress
5219
- * @uiGroup General Form Properties
5220
- */
5221
- this.formStep = "Step {step} of {count}";
5222
- /**
5223
- * Part of the alert displayed at the top of the page.
5224
- * @uiName Form submission error message title
5225
- * @uiGroup General Form Properties
5226
- * @uiWidget textArea
5227
- */
5228
- this.generalErrorTitle = "There was a problem submitting your information";
5229
- /**
5230
- * Part of the alert displayed at the top of the page.
5231
- * @uiName Form submission error message description
5232
- * @uiGroup General Form Properties
5233
- * @uiWidget textArea
5234
- */
5235
- this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact our {supportLink}.";
5236
- /**
5237
- * Displayed under a field that is missing required information.
5238
- * @uiName Empty form field error message
5239
- * @uiGroup General Form Properties
5240
- */
5241
- this.fieldRequiredError = "{fieldName} is required";
5242
- /**
5243
- * Displayed under a field that includes invalid characters (non-ASCII).
5244
- * @uiName Invalid character error message
5245
- * @uiGroup General Form Properties
5246
- */
5247
- this.invalidCharacterError = "{fieldName} includes characters that aren't supported.";
5248
- /**
5249
- * Displayed under a field when it has an invalid entry.
5250
- * @uiName Form field error message
5251
- * @uiGroup General Form Properties
5252
- */
5253
- this.fieldInvalidError = "{fieldName} is invalid";
5254
- /**
5255
- * @uiName Continue button label
5256
- * @uiGroup General Form Properties
5257
- */
5258
- this.continueButton = "Continue";
5259
- /**
5260
- * @uiName Back button label
5261
- * @uiGroup General Form Properties
5262
- */
5263
- this.backButton = "Back";
5264
- /**
5265
- * @uiName Cancel button label
5266
- * @uiGroup General Form Properties
5267
- */
5268
- this.cancelButton = "Cancel";
5269
- /**
5270
- * Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com.
5271
- * @uiName Participant is a partner alert title
5272
- * @uiGroup General Form Properties
5273
- * @uiWidget textArea
5274
- */
5275
- this.isPartnerAlertHeader = "An account with this email already exists with our referral program provider, impact.com";
5276
- /**
5277
- * Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com.
5278
- * @uiName Participant is a partner alert description
5279
- * @uiGroup General Form Properties
5280
- * @uiWidget textArea
5281
- */
5282
- 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.";
5283
- /**
5284
- * Placeholder text displayed in the country search dropdown
5285
- * @uiName Country field placeholder text
5286
- * @uiGroup General Form Properties
5287
- */
5288
- this.searchForCountryText = "Search for country..";
5289
- /**
5290
- * Part of the alert displayed at the top of the page.
5291
- * @uiName Page load error message title
5292
- * @uiGroup General Form Properties
5293
- * @uiWidget textArea
5294
- */
5295
- this.loadingErrorAlertHeader = "There was a problem loading your form";
5296
- /**
5297
- * Part of the alert displayed at the top of the page.
5298
- * @uiName Page load error message description
5299
- * @uiGroup General Form Properties
5300
- * @uiWidget textArea
5301
- */
5302
- this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact our {supportLink}.";
5303
- /**
5304
- * Displayed at the top of the page on all set up steps.
5305
- * @uiName Page description
5306
- * @uiGroup General Form Properties
5307
- */
5308
- this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
5309
- /**
5310
- * Link text for contacting support team
5311
- * @uiName Suport link text
5312
- * @uiGroup General Form Properties
5313
- */
5314
- this.supportLink = "support team";
5315
- stencilHooks_module.h$1(this);
5316
- }
5317
- disconnectedCallback() { }
5318
- // this field is required prop
5319
- getGeneralStepTextProps(prefix) {
5320
- const props = utils.getProps(this);
5321
- return {
5322
- ...extractProps.extractProps(props, prefix),
5323
- generalErrorTitle: props.generalErrorTitle,
5324
- generalErrorDescription: props.generalErrorDescription,
5325
- fieldRequiredError: props.fieldRequiredError,
5326
- invalidCharacterError: props.invalidCharacterError,
5327
- fieldInvalidError: props.fieldInvalidError,
5328
- continueButton: props.continueButton,
5329
- backButton: props.backButton,
5330
- cancelButton: props.cancelButton,
5331
- isPartnerAlertHeader: props.isPartnerAlertHeader,
5332
- isPartnerAlertDescription: props.isPartnerAlertDescription,
5333
- loadingErrorAlertHeader: props.loadingErrorAlertHeader,
5334
- loadingErrorAlertDescription: props.loadingErrorAlertDescription,
5335
- taxAndPayoutsDescription: props.taxAndPayoutsDescription,
5336
- searchForCountryText: props.searchForCountryText,
5337
- formStep: props.formStep,
5338
- supportLink: props.supportLink,
5339
- };
5340
- }
5341
- render() {
5342
- var _a, _b;
5343
- const props = index_module.isDemo() ? useDemoTaxAndCash(this) : useTaxAndCash();
5344
- // @ts-ignore
5345
- if ((_a = this.demoData) === null || _a === void 0 ? void 0 : _a.showTextProps) {
5346
- const textProps = utils.getProps(this);
5347
- return (index.h("div", null, (_b = Object.keys(textProps)) === null || _b === void 0 ? void 0 : _b.map((prop) => {
5348
- if (prop === "demoData")
5349
- return;
5350
- return (index.h("div", null, index.h("b", null, prop, ":"), " ", this[prop], index.h("hr", null)));
5351
- })));
5352
- }
5353
- switch (props.step) {
5354
- case "/1":
5355
- return (index.h("sqm-user-info-form", Object.assign({}, this.getGeneralStepTextProps("step1_"))));
5356
- case "/2":
5357
- return (index.h("sqm-indirect-tax-form", Object.assign({}, this.getGeneralStepTextProps("step2_"))));
5358
- case "/3":
5359
- return (index.h("sqm-docusign-form", Object.assign({}, this.getGeneralStepTextProps("step3_"))));
5360
- case "/4":
5361
- return (index.h("sqm-banking-info-form", Object.assign({}, this.getGeneralStepTextProps("step4_"))));
5362
- case "/dashboard":
5363
- return (index.h("sqm-tax-and-cash-dashboard", Object.assign({}, this.getGeneralStepTextProps("dashboard_"))));
5364
- case "/error":
5365
- return (index.h(ErrorView.ErrorView, { loadingErrorAlertHeader: this.loadingErrorAlertHeader, loadingErrorAlertDescription: this.loadingErrorAlertDescription }));
5366
- }
5367
- return index.h(sqmInvoiceTableView.LoadingView, null);
5368
- }
5369
- };
5370
- function useDemoTaxAndCash(props) {
5371
- const [step, setStep] = index_module.In({
5372
- namespace: TAX_CONTEXT_NAMESPACE,
5373
- initialValue: "/1",
5374
- });
5375
- return cjs.cjs({
5376
- step,
5377
- setStep,
5378
- }, props.demoData || {}, { arrayMerge: (_, a) => a });
5379
- }
5380
-
5381
- const style$6 = {
3681
+ const style$5 = {
5382
3682
  ErrorAlertContainer: {
5383
3683
  "&::part(base)": {
5384
3684
  backgroundColor: "var(--sqm-danger-color-background)",
@@ -5569,8 +3869,8 @@ const style$6 = {
5569
3869
  },
5570
3870
  DialogButton: { margin: "auto", width: "100%" },
5571
3871
  };
5572
- const sheet$5 = JSS.createStyleSheet(style$6);
5573
- const styleString$5 = sheet$5.toString();
3872
+ const sheet$4 = JSS.createStyleSheet(style$5);
3873
+ const styleString$4 = sheet$4.toString();
5574
3874
  const TaxAndCashDashboardView = (props) => {
5575
3875
  var _a, _b, _c, _d;
5576
3876
  const { states, text, callbacks, slots } = props;
@@ -5588,7 +3888,7 @@ const TaxAndCashDashboardView = (props) => {
5588
3888
  buttonText: text.verificationRequiredButtonText,
5589
3889
  alertType: "warning",
5590
3890
  icon: "exclamation-triangle",
5591
- class: sheet$5.classes.WarningHoldAlertContainer,
3891
+ class: sheet$4.classes.WarningHoldAlertContainer,
5592
3892
  };
5593
3893
  case "VERIFICATION:INTERNAL":
5594
3894
  return {
@@ -5601,7 +3901,7 @@ const TaxAndCashDashboardView = (props) => {
5601
3901
  }),
5602
3902
  alertType: "warning",
5603
3903
  icon: "exclamation-triangle",
5604
- class: sheet$5.classes.WarningHoldAlertContainer,
3904
+ class: sheet$4.classes.WarningHoldAlertContainer,
5605
3905
  };
5606
3906
  case "VERIFICATION:REVIEW":
5607
3907
  return {
@@ -5614,7 +3914,7 @@ const TaxAndCashDashboardView = (props) => {
5614
3914
  }),
5615
3915
  alertType: "warning",
5616
3916
  icon: "exclamation-triangle",
5617
- class: sheet$5.classes.WarningHoldAlertContainer,
3917
+ class: sheet$4.classes.WarningHoldAlertContainer,
5618
3918
  };
5619
3919
  case "VERIFICATION:FAILED":
5620
3920
  return {
@@ -5627,7 +3927,7 @@ const TaxAndCashDashboardView = (props) => {
5627
3927
  }),
5628
3928
  alertType: "critical",
5629
3929
  icon: "exclamation-octagon",
5630
- class: sheet$5.classes.ErrorHoldAlertContainer,
3930
+ class: sheet$4.classes.ErrorHoldAlertContainer,
5631
3931
  };
5632
3932
  case "HOLD":
5633
3933
  return {
@@ -5641,14 +3941,14 @@ const TaxAndCashDashboardView = (props) => {
5641
3941
  buttonText: null,
5642
3942
  alertType: "warning",
5643
3943
  icon: "exclamation-triangle",
5644
- class: sheet$5.classes.WarningHoldAlertContainer,
3944
+ class: sheet$4.classes.WarningHoldAlertContainer,
5645
3945
  };
5646
3946
  default:
5647
3947
  return;
5648
3948
  }
5649
3949
  }
5650
3950
  const statusMap = {
5651
- NOT_VERIFIED: (index.h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
3951
+ NOT_VERIFIED: (index.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
5652
3952
  index.h("sl-badge", { type: "warning", pill: true }, text.statusTextNotVerified),
5653
3953
  index.h("p", null, global.intl.formatMessage({
5654
3954
  id: `badgeTextAwaitingReview`,
@@ -5656,7 +3956,7 @@ const TaxAndCashDashboardView = (props) => {
5656
3956
  }, {
5657
3957
  dateSubmitted: states.dateSubmitted,
5658
3958
  })))),
5659
- ACTIVE: (index.h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
3959
+ ACTIVE: (index.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
5660
3960
  index.h("sl-badge", { type: "success", pill: true }, text.statusTextActive),
5661
3961
  index.h("p", null, global.intl.formatMessage({
5662
3962
  id: `badgeTextSubmittedOn`,
@@ -5666,12 +3966,12 @@ const TaxAndCashDashboardView = (props) => {
5666
3966
  }, {
5667
3967
  dateSubmitted: states.dateSubmitted,
5668
3968
  })))),
5669
- INACTIVE: (index.h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
3969
+ INACTIVE: (index.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
5670
3970
  index.h("sl-badge", { type: "danger", pill: true }, text.statusTextNotActive),
5671
3971
  index.h("p", null, text.invalidForm))),
5672
3972
  };
5673
3973
  const alertMap = {
5674
- INACTIVE: (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.ErrorAlertContainer },
3974
+ INACTIVE: (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.ErrorAlertContainer },
5675
3975
  index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
5676
3976
  index.h("strong", null, global.intl.formatMessage({
5677
3977
  id: `taxAlertHeaderNotActive`,
@@ -5721,9 +4021,9 @@ const TaxAndCashDashboardView = (props) => {
5721
4021
  };
5722
4022
  return (index.h("div", null,
5723
4023
  index.h("div", null,
5724
- index.h("style", { type: "text/css" }, styleString$5),
4024
+ index.h("style", { type: "text/css" }, styleString$4),
5725
4025
  states.loadingError && (index.h("div", null,
5726
- index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.ErrorAlertContainer },
4026
+ index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.ErrorAlertContainer },
5727
4027
  index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
5728
4028
  index.h("strong", null, text.error.loadingErrorAlertHeader),
5729
4029
  index.h("br", null),
@@ -5733,7 +4033,7 @@ const TaxAndCashDashboardView = (props) => {
5733
4033
  }, {
5734
4034
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
5735
4035
  })))),
5736
- ((_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 },
4036
+ ((_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 },
5737
4037
  index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
5738
4038
  index.h("strong", null, text.error.generalTitle),
5739
4039
  index.h("br", null),
@@ -5748,49 +4048,49 @@ const TaxAndCashDashboardView = (props) => {
5748
4048
  index.h("strong", null, getAlert(states.payoutStatus).header),
5749
4049
  index.h("p", { style: { margin: "0" } }, getAlert(states.payoutStatus).description),
5750
4050
  getAlert(states.payoutStatus).buttonText && (index.h("sl-button", { style: { marginTop: "var(--sl-spacing-x-small)" }, type: "default", loading: states.veriffLoading, onClick: () => callbacks.onVerifyClick() }, getAlert(states.payoutStatus).buttonText)))),
5751
- index.h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet$5.classes.Dialog, open: states.showNewFormDialog, "onSl-hide": callbacks.onNewFormCancel },
4051
+ index.h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet$4.classes.Dialog, open: states.showNewFormDialog, "onSl-hide": callbacks.onNewFormCancel },
5752
4052
  index.h("p", null, text.replaceTaxFormModalBodyText),
5753
- index.h("sl-button", { slot: "footer", type: "primary", class: sheet$5.classes.DialogButton, onClick: callbacks.onNewFormClick }, text.newFormButton),
5754
- index.h("sl-button", { slot: "footer", type: "default", class: sheet$5.classes.DialogButton, onClick: callbacks.onNewFormCancel }, text.cancelButton)),
4053
+ index.h("sl-button", { slot: "footer", type: "primary", class: sheet$4.classes.DialogButton, onClick: callbacks.onNewFormClick }, text.newFormButton),
4054
+ index.h("sl-button", { slot: "footer", type: "default", class: sheet$4.classes.DialogButton, onClick: callbacks.onNewFormCancel }, text.cancelButton)),
5755
4055
  states.status === "INACTIVE" && alertMap[states.status],
5756
4056
  index.h("div", null,
5757
4057
  index.h("h3", { style: { marginBottom: "0" } }, text.bankingInformationSectionHeader),
5758
- index.h("p", { class: sheet$5.classes.PageDescriptionText }, text.taxAndPayoutsDescription),
5759
- index.h("div", { class: sheet$5.classes.BankingInformationContainer },
4058
+ index.h("p", { class: sheet$4.classes.PageDescriptionText }, text.taxAndPayoutsDescription),
4059
+ index.h("div", { class: sheet$4.classes.BankingInformationContainer },
5760
4060
  slots.payoutDetailsCardSlot,
5761
- !states.loading && (index.h("p", { class: sheet$5.classes.DescriptionText }, text.payoutFromImpact)),
5762
- states.canEditPayoutInfo && (index.h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$5.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
5763
- index.h("div", { class: sheet$5.classes.TaxDocumentsContainer },
5764
- index.h("div", null, states.loading ? (index.h("div", { class: sheet$5.classes.TaxSectionSkeletonContainer },
5765
- index.h("sl-skeleton", { class: sheet$5.classes.SkeletonOne }),
5766
- index.h("sl-skeleton", { class: sheet$5.classes.SkeletonTwo }))) : (index.h("div", null, states.noFormNeeded ? (index.h("div", null,
5767
- index.h("h3", { class: sheet$5.classes.TaxDocumentsSectionHeaderContainer }, text.taxDocumentSectionHeader),
5768
- index.h("p", { class: sheet$5.classes.TaxDocSubtext }, text.noFormNeededSubtext))) : (index.h("div", null,
5769
- index.h("span", { class: sheet$5.classes.TaxFormDetailsContainer },
5770
- index.h("div", { class: sheet$5.classes.StatusContainer },
4061
+ !states.loading && (index.h("p", { class: sheet$4.classes.DescriptionText }, text.payoutFromImpact)),
4062
+ states.canEditPayoutInfo && (index.h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$4.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
4063
+ index.h("div", { class: sheet$4.classes.TaxDocumentsContainer },
4064
+ index.h("div", null, states.loading ? (index.h("div", { class: sheet$4.classes.TaxSectionSkeletonContainer },
4065
+ index.h("sl-skeleton", { class: sheet$4.classes.SkeletonOne }),
4066
+ index.h("sl-skeleton", { class: sheet$4.classes.SkeletonTwo }))) : (index.h("div", null, states.noFormNeeded ? (index.h("div", null,
4067
+ index.h("h3", { class: sheet$4.classes.TaxDocumentsSectionHeaderContainer }, text.taxDocumentSectionHeader),
4068
+ index.h("p", { class: sheet$4.classes.TaxDocSubtext }, text.noFormNeededSubtext))) : (index.h("div", null,
4069
+ index.h("span", { class: sheet$4.classes.TaxFormDetailsContainer },
4070
+ index.h("div", { class: sheet$4.classes.StatusContainer },
5771
4071
  index.h("h3", null, global.intl.formatMessage({
5772
4072
  id: "section-subheader",
5773
4073
  defaultMessage: text.taxDocumentSectionSubHeader,
5774
4074
  }, {
5775
4075
  documentType: states.documentTypeString,
5776
4076
  })),
5777
- index.h("span", { class: sheet$5.classes.StatusAlert }, statusMap[states.status]))),
5778
- 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)))))))),
5779
- index.h("div", { class: sheet$5.classes.IndirectTaxPreviewContainer }, states.loading ? (index.h("div", { class: sheet$5.classes.TaxSectionSkeletonContainer },
5780
- index.h("sl-skeleton", { class: sheet$5.classes.SkeletonOne }),
5781
- index.h("sl-skeleton", { class: sheet$5.classes.SkeletonTwo }))) : (index.h("div", null,
5782
- index.h("h3", { class: sheet$5.classes.IndirectTaxPreviewHeaderContainer },
4077
+ index.h("span", { class: sheet$4.classes.StatusAlert }, statusMap[states.status]))),
4078
+ 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)))))))),
4079
+ index.h("div", { class: sheet$4.classes.IndirectTaxPreviewContainer }, states.loading ? (index.h("div", { class: sheet$4.classes.TaxSectionSkeletonContainer },
4080
+ index.h("sl-skeleton", { class: sheet$4.classes.SkeletonOne }),
4081
+ index.h("sl-skeleton", { class: sheet$4.classes.SkeletonTwo }))) : (index.h("div", null,
4082
+ index.h("h3", { class: sheet$4.classes.IndirectTaxPreviewHeaderContainer },
5783
4083
  text.indirectTaxInfoSectionHeader,
5784
- index.h("sl-tooltip", { trigger: "hover", placement: "right", content: text.indirectTaxTooltipSupport, class: sheet$5.classes.TooltipContainer },
5785
- index.h("sl-icon", { name: "info-circle", class: sheet$5.classes.ToolTip }))),
5786
- index.h("div", { class: sheet$5.classes.IndirectTaxPreviewDetails },
5787
- index.h("span", null, states.notRegistered ? (index.h("span", { class: sheet$5.classes.NotRegisteredIndirectTaxText }, global.intl.formatMessage({
4084
+ index.h("sl-tooltip", { trigger: "hover", placement: "right", content: text.indirectTaxTooltipSupport, class: sheet$4.classes.TooltipContainer },
4085
+ index.h("sl-icon", { name: "info-circle", class: sheet$4.classes.ToolTip }))),
4086
+ index.h("div", { class: sheet$4.classes.IndirectTaxPreviewDetails },
4087
+ index.h("span", null, states.notRegistered ? (index.h("span", { class: sheet$4.classes.NotRegisteredIndirectTaxText }, global.intl.formatMessage({
5788
4088
  id: "notRegisteredForTax",
5789
4089
  defaultMessage: text.notRegisteredForTax,
5790
4090
  }, {
5791
4091
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
5792
4092
  }))) : (getIndirectTaxRegisteredIn())),
5793
- !states.notRegistered && (index.h("div", { class: sheet$5.classes.TaxNumberContainer },
4093
+ !states.notRegistered && (index.h("div", { class: sheet$4.classes.TaxNumberContainer },
5794
4094
  index.h("span", null, global.intl.formatMessage({
5795
4095
  id: `indirectTaxDetails`,
5796
4096
  defaultMessage: text.indirectTaxDetails,
@@ -5813,7 +4113,7 @@ const TaxAndCashDashboardView = (props) => {
5813
4113
  }, {
5814
4114
  subRegionTaxNumber: states.subRegionTaxNumber,
5815
4115
  })))),
5816
- !states.notRegistered && (index.h("div", { class: sheet$5.classes.InvoiceTableContainer },
4116
+ !states.notRegistered && (index.h("div", { class: sheet$4.classes.InvoiceTableContainer },
5817
4117
  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 },
5818
4118
  index.h("sqm-invoice-table-download-column", null),
5819
4119
  index.h("sqm-invoice-table-date-column", { "column-title": text.dateColumnTitle }),
@@ -5837,12 +4137,12 @@ function getSubRegionName(regionCode) {
5837
4137
  return "";
5838
4138
  // Impact adds an underscore to some regions
5839
4139
  const standardCode = regionCode.replace("_", "");
5840
- const regions = [...sqmInvoiceTableView.INDIRECT_TAX_PROVINCES, ...sqmInvoiceTableView.INDIRECT_TAX_SPAIN_REGIONS];
4140
+ const regions = [...IndirectTaxDetailsView.INDIRECT_TAX_PROVINCES, ...IndirectTaxDetailsView.INDIRECT_TAX_SPAIN_REGIONS];
5841
4141
  return (_a = regions.find((r) => r.regionCode === standardCode)) === null || _a === void 0 ? void 0 : _a.displayName;
5842
4142
  }
5843
4143
  function getIndirectTaxType(taxInformation) {
5844
4144
  var _a;
5845
- const regions = [...sqmInvoiceTableView.INDIRECT_TAX_PROVINCES, ...sqmInvoiceTableView.INDIRECT_TAX_SPAIN_REGIONS];
4145
+ const regions = [...IndirectTaxDetailsView.INDIRECT_TAX_PROVINCES, ...IndirectTaxDetailsView.INDIRECT_TAX_SPAIN_REGIONS];
5846
4146
  if (taxInformation === null || taxInformation === void 0 ? void 0 : taxInformation.indirectTaxRegion) {
5847
4147
  const standardRegion = taxInformation.indirectTaxRegion.replace("_", "");
5848
4148
  const taxType = (_a = regions.find((r) => r.regionCode === standardRegion)) === null || _a === void 0 ? void 0 : _a.taxType;
@@ -5853,14 +4153,14 @@ function getIndirectTaxType(taxInformation) {
5853
4153
  if (taxInformation === null || taxInformation === void 0 ? void 0 : taxInformation.withholdingTaxCountryCode)
5854
4154
  return "VAT";
5855
4155
  if (taxInformation === null || taxInformation === void 0 ? void 0 : taxInformation.indirectTaxCountryCode) {
5856
- return sqmInvoiceTableView.vatLabels[taxInformation.indirectTaxCountryCode] || "Indirect Tax";
4156
+ return IndirectTaxDetailsView.vatLabels[taxInformation.indirectTaxCountryCode] || "Indirect Tax";
5857
4157
  }
5858
4158
  return "Indirect Tax";
5859
4159
  }
5860
4160
  const useTaxAndCashDashboard = (props) => {
5861
4161
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
5862
- const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
5863
- const setContext = index_module.En(TAX_FORM_CONTEXT_NAMESPACE);
4162
+ const setStep = index_module.En(data.TAX_CONTEXT_NAMESPACE);
4163
+ const setContext = index_module.En(data.TAX_FORM_CONTEXT_NAMESPACE);
5864
4164
  const [showDialog, setShowDialog] = stencilHooks_module.useState(false);
5865
4165
  const { render, loading: veriffLoading, errors: veriffErrors, } = usePayoutStatus.useVeriffApp();
5866
4166
  const locale = index_module.L();
@@ -5868,8 +4168,8 @@ const useTaxAndCashDashboard = (props) => {
5868
4168
  // Clear override context once on submitted
5869
4169
  setContext({});
5870
4170
  }, []);
5871
- const { data, loading, errors: userError, refetch, } = index_module.$n(USER_QUERY_NAMESPACE);
5872
- 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;
4171
+ const { data: data$1, loading, errors: userError, refetch, } = index_module.$n(data.USER_QUERY_NAMESPACE);
4172
+ 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;
5873
4173
  const documentType = publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType;
5874
4174
  const submissionDate = (_c = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _c === void 0 ? void 0 : _c.dateCreated;
5875
4175
  const dateSubmitted = submissionDate
@@ -5892,8 +4192,8 @@ const useTaxAndCashDashboard = (props) => {
5892
4192
  });
5893
4193
  setStep("/3");
5894
4194
  };
5895
- 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;
5896
- const payoutStatus = data ? usePayoutStatus.getStatus(data) : null;
4195
+ 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;
4196
+ const payoutStatus = data$1 ? usePayoutStatus.getStatus(data$1) : null;
5897
4197
  stencilHooks_module.useEffect(() => {
5898
4198
  const cb = () => refetch();
5899
4199
  window.addEventListener(usePayoutStatus.VERIFF_COMPLETE_EVENT_KEY, cb);
@@ -5906,7 +4206,7 @@ const useTaxAndCashDashboard = (props) => {
5906
4206
  dateSubmitted,
5907
4207
  documentType,
5908
4208
  canEditPayoutInfo: publisher === null || publisher === void 0 ? void 0 : publisher.brandedSignup,
5909
- documentTypeString: sqmInvoiceTableView.taxTypeToName(documentType),
4209
+ documentTypeString: utils$1.taxTypeToName(documentType),
5910
4210
  status: (_e = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _e === void 0 ? void 0 : _e.status,
5911
4211
  subRegion: getSubRegionName((_f = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _f === void 0 ? void 0 : _f.indirectTaxRegion),
5912
4212
  subRegionTaxNumber: (_g = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _g === void 0 ? void 0 : _g.withholdingTaxId,
@@ -6269,23 +4569,31 @@ const TaxAndCashDashboard = class {
6269
4569
  }
6270
4570
  };
6271
4571
  function useDemoTaxAndCashDashboard(props) {
4572
+ // const states = parseStates(props.stateController);
6272
4573
  return cjs.cjs({
6273
4574
  states: {
6274
4575
  dateSubmitted: "today",
6275
4576
  documentType: "W9",
6276
4577
  documentTypeString: "W9",
6277
- status: "ACTIVE",
6278
4578
  country: "United States",
6279
- indirectTaxNumber: 55555555,
4579
+ indirectTaxNumber: "55555555",
6280
4580
  indirectTaxType: "Indirect Tax",
6281
- noFormNeeded: true,
4581
+ noFormNeeded: false,
6282
4582
  disabled: false,
6283
4583
  loading: false,
6284
4584
  showNewFormDialog: false,
6285
4585
  hasHold: false,
6286
- showVerifyIdentity: false,
4586
+ subRegion: "CA",
4587
+ subRegionTaxNumber: undefined,
4588
+ qstNumber: undefined,
4589
+ isBusinessEntity: false,
4590
+ province: undefined,
4591
+ notRegistered: true,
4592
+ loadingError: false,
6287
4593
  payoutStatus: "DONE",
6288
4594
  veriffLoading: false,
4595
+ canEditPayoutInfo: true,
4596
+ status: "ACTIVE",
6289
4597
  },
6290
4598
  callbacks: {
6291
4599
  onClick: () => console.debug("check step"),
@@ -6295,6 +4603,13 @@ function useDemoTaxAndCashDashboard(props) {
6295
4603
  onVerifyClick: () => console.log("verify"),
6296
4604
  },
6297
4605
  text: props.getTextProps(),
4606
+ slots: {
4607
+ payoutDetailsCardSlot: (index.h("sqm-payout-details-card", { demoData: {
4608
+ states: {
4609
+ badgeStatus: "nextPayout",
4610
+ },
4611
+ } })),
4612
+ },
6298
4613
  }, props.demoData || {}, { arrayMerge: (_, a) => a });
6299
4614
  }
6300
4615
 
@@ -7269,7 +5584,7 @@ const PHONE_EXTENSIONS = {
7269
5584
  },
7270
5585
  };
7271
5586
 
7272
- const style$7 = {
5587
+ const style$6 = {
7273
5588
  FormWrapper: {},
7274
5589
  ErrorInput: {
7275
5590
  "&::part(base)": {
@@ -7369,9 +5684,9 @@ const style$7 = {
7369
5684
  },
7370
5685
  },
7371
5686
  };
7372
- const sheet$6 = JSS.createStyleSheet(style$7);
7373
- const styleString$6 = sheet$6.toString();
7374
- const vanillaStyle$4 = `
5687
+ const sheet$5 = JSS.createStyleSheet(style$6);
5688
+ const styleString$5 = sheet$5.toString();
5689
+ const vanillaStyle$3 = `
7375
5690
  :host{
7376
5691
  display: block;
7377
5692
  }
@@ -7548,8 +5863,8 @@ const vanillaStyle$4 = `
7548
5863
  `;
7549
5864
  const UserInfoFormView = (props) => {
7550
5865
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
7551
- const { states, states: { formState }, callbacks, text, refs, data, } = props;
7552
- const { classes } = sheet$6;
5866
+ const { states, states: { formState }, callbacks, text, refs, data: data$1, } = props;
5867
+ const { classes } = sheet$5;
7553
5868
  const bankingCollectionText = global.intl.formatMessage({
7554
5869
  id: "bankingCollectionText",
7555
5870
  defaultMessage: text.allowBankingCollection,
@@ -7557,7 +5872,7 @@ const UserInfoFormView = (props) => {
7557
5872
  termsAndConditionsLink: (index.h("a", { href: text.termsAndConditionsLink, target: "_blank" }, text.termsAndConditionsLabel)),
7558
5873
  });
7559
5874
  let regionLabel = undefined;
7560
- switch (data.regionLabelEnum) {
5875
+ switch (data$1.regionLabelEnum) {
7561
5876
  case "STATE":
7562
5877
  regionLabel = text.state;
7563
5878
  break;
@@ -7572,10 +5887,10 @@ const UserInfoFormView = (props) => {
7572
5887
  }
7573
5888
  return (index.h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
7574
5889
  index.h("style", { type: "text/css" },
7575
- styleString$6,
7576
- vanillaStyle$4),
5890
+ styleString$5,
5891
+ vanillaStyle$3),
7577
5892
  states.loadingError && (index.h("div", null,
7578
- index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$6.classes.AlertContainer },
5893
+ index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.AlertContainer },
7579
5894
  index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
7580
5895
  index.h("strong", null, text.error.loadingErrorAlertHeader),
7581
5896
  index.h("br", null),
@@ -7586,16 +5901,16 @@ const UserInfoFormView = (props) => {
7586
5901
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
7587
5902
  })),
7588
5903
  index.h("br", null))),
7589
- states.loading ? (index.h(sqmInvoiceTableView.GeneralLoadingView, null)) : (index.h("div", null,
5904
+ states.loading ? (index.h(utils$1.LoadingView, null)) : (index.h("div", null,
7590
5905
  index.h("div", { class: classes.TextContainer },
7591
5906
  index.h("div", null,
7592
5907
  !states.hideSteps && (index.h("p", null, global.intl.formatMessage({
7593
5908
  id: "formStep",
7594
5909
  defaultMessage: text.formStep,
7595
- }, { step: states.step, count: FORM_STEPS }))),
5910
+ }, { step: states.step, count: data.FORM_STEPS }))),
7596
5911
  index.h("h3", null, text.personalInformation),
7597
5912
  index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
7598
- ((_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 },
5913
+ ((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$5.classes.AlertContainer },
7599
5914
  index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
7600
5915
  index.h("strong", null, text.error.generalTitle),
7601
5916
  index.h("br", null),
@@ -7605,7 +5920,7 @@ const UserInfoFormView = (props) => {
7605
5920
  }, {
7606
5921
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
7607
5922
  }))),
7608
- (states.isPartner || states.isUser) && (index.h("sl-alert", { type: "primary", open: true, class: sheet$6.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
5923
+ (states.isPartner || states.isUser) && (index.h("sl-alert", { type: "primary", open: true, class: sheet$5.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
7609
5924
  index.h("sl-icon", { slot: "icon", name: "info-circle" }),
7610
5925
  index.h("strong", null, text.isPartnerAlertHeader),
7611
5926
  index.h("br", null),
@@ -7619,18 +5934,18 @@ const UserInfoFormView = (props) => {
7619
5934
  index.h("div", { class: classes.InputContainer },
7620
5935
  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) ? {
7621
5936
  class: classes.ErrorInput,
7622
- helpText: sqmInvoiceTableView.formatErrorMessage(text.firstName, formState.errors.firstName),
5937
+ helpText: utils$1.formatErrorMessage(text.firstName, formState.errors.firstName),
7623
5938
  }
7624
5939
  : {}), { id: "firstName", name: "/firstName", required: true })),
7625
5940
  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) ? {
7626
5941
  class: classes.ErrorInput,
7627
- helpText: sqmInvoiceTableView.formatErrorMessage(text.lastName, formState.errors.lastName),
5942
+ helpText: utils$1.formatErrorMessage(text.lastName, formState.errors.lastName),
7628
5943
  }
7629
5944
  : {}), { id: "lastName", name: "/lastName", required: true })),
7630
5945
  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 }),
7631
5946
  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) ? {
7632
5947
  class: classes.ErrorInput,
7633
- helpText: sqmInvoiceTableView.formatErrorMessage(text.country, formState.errors.countryCode),
5948
+ helpText: utils$1.formatErrorMessage(text.country, formState.errors.countryCode),
7634
5949
  }
7635
5950
  : {}), { required: true, "onSl-select": (e) => callbacks.onFormChange("countryCode", e) }),
7636
5951
  index.h("sl-input", { class: classes.SearchInput, placeholder: text.searchForCountryText, onKeyDown: (e) => {
@@ -7638,8 +5953,8 @@ const UserInfoFormView = (props) => {
7638
5953
  e.stopPropagation();
7639
5954
  }, "onSl-input": (e) => {
7640
5955
  callbacks.setCountrySearch(e.target.value);
7641
- } }), (_e = data === null || data === void 0 ? void 0 : data.countries) === null || _e === void 0 ? void 0 :
7642
- _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 :
5956
+ } }), (_e = data$1 === null || data$1 === void 0 ? void 0 : data$1.countries) === null || _e === void 0 ? void 0 :
5957
+ _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 :
7643
5958
  _f.map((c) => (index.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } }, c.displayName)))),
7644
5959
  index.h("div", { class: classes.PhoneInputsSection },
7645
5960
  index.h("p", null, text.phoneNumber),
@@ -7653,13 +5968,13 @@ const UserInfoFormView = (props) => {
7653
5968
  e.stopPropagation();
7654
5969
  }, "onSl-input": (e) => {
7655
5970
  callbacks.setPhoneCountrySearch(e.target.value);
7656
- } }), (_h = data === null || data === void 0 ? void 0 : data.phoneCountries) === null || _h === void 0 ? void 0 :
5971
+ } }), (_h = data$1 === null || data$1 === void 0 ? void 0 : data$1.phoneCountries) === null || _h === void 0 ? void 0 :
7657
5972
  _h.map((c) => {
7658
5973
  var _a, _b;
7659
5974
  return (index.h("sl-menu-item", { value: c.countryCode },
7660
5975
  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 :
7661
5976
  _b.dial_code));
7662
- }), (_j = data === null || data === void 0 ? void 0 : data.allCountries) === null || _j === void 0 ? void 0 :
5977
+ }), (_j = data$1 === null || data$1 === void 0 ? void 0 : data$1.allCountries) === null || _j === void 0 ? void 0 :
7663
5978
  _j.map((c) => {
7664
5979
  var _a, _b;
7665
5980
  return (index.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } },
@@ -7668,42 +5983,42 @@ const UserInfoFormView = (props) => {
7668
5983
  })),
7669
5984
  index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", id: "phoneNumber", name: "/phoneNumber", value: formState.phoneNumber, validationError: ({ value }) => {
7670
5985
  // Naive phone number validation
7671
- sqmInvoiceTableView.validateBillingField(/[a-zA-Z]+/, value) &&
7672
- sqmInvoiceTableView.formatErrorMessage(text.phoneNumber, text.error.fieldInvalidError);
5986
+ utils$1.validateBillingField(/[a-zA-Z]+/, value) &&
5987
+ utils$1.formatErrorMessage(text.phoneNumber, text.error.fieldInvalidError);
7673
5988
  }, disabled: states.disabled || states.isPartner }, (((_k = formState.errors) === null || _k === void 0 ? void 0 : _k.phoneNumber) ? {
7674
5989
  class: classes.ErrorInput,
7675
- helpText: sqmInvoiceTableView.formatErrorMessage(text.phoneNumber, formState.errors.phoneNumber),
5990
+ helpText: utils$1.formatErrorMessage(text.phoneNumber, formState.errors.phoneNumber),
7676
5991
  }
7677
5992
  : {}), { required: true })))),
7678
5993
  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 }) =>
7679
5994
  // Checks for non-ASCII characters
7680
- !sqmInvoiceTableView.validateBillingField(/^[\x20-\xFF]+$/, value) &&
7681
- sqmInvoiceTableView.formatErrorMessage(text.address, text.error.invalidCharacterError), disabled: states.disabled || states.isPartner }, (((_l = formState.errors) === null || _l === void 0 ? void 0 : _l.address) ? {
5995
+ !utils$1.validateBillingField(/^[\x20-\xFF]+$/, value) &&
5996
+ utils$1.formatErrorMessage(text.address, text.error.invalidCharacterError), disabled: states.disabled || states.isPartner }, (((_l = formState.errors) === null || _l === void 0 ? void 0 : _l.address) ? {
7682
5997
  class: classes.ErrorInput,
7683
- helpText: sqmInvoiceTableView.formatErrorMessage(text.address, formState.errors.address),
5998
+ helpText: utils$1.formatErrorMessage(text.address, formState.errors.address),
7684
5999
  }
7685
6000
  : {}), { required: true })),
7686
6001
  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 }) =>
7687
6002
  // Checks for non-ASCII characters
7688
- !sqmInvoiceTableView.validateBillingField(/^[\x20-\xFF]+$/, value) &&
7689
- sqmInvoiceTableView.formatErrorMessage(text.city, text.error.invalidCharacterError), disabled: states.disabled || states.isPartner }, (((_m = formState.errors) === null || _m === void 0 ? void 0 : _m.city) ? {
6003
+ !utils$1.validateBillingField(/^[\x20-\xFF]+$/, value) &&
6004
+ utils$1.formatErrorMessage(text.city, text.error.invalidCharacterError), disabled: states.disabled || states.isPartner }, (((_m = formState.errors) === null || _m === void 0 ? void 0 : _m.city) ? {
7690
6005
  class: classes.ErrorInput,
7691
- helpText: sqmInvoiceTableView.formatErrorMessage(text.city, formState.errors.city),
6006
+ helpText: utils$1.formatErrorMessage(text.city, formState.errors.city),
7692
6007
  }
7693
6008
  : {}), { required: true })),
7694
6009
  !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) ? {
7695
6010
  class: classes.ErrorInput,
7696
- helpText: sqmInvoiceTableView.formatErrorMessage(text.state, formState.errors.state),
6011
+ helpText: utils$1.formatErrorMessage(text.state, formState.errors.state),
7697
6012
  }
7698
- : {}), { required: true }), (_p = data.regions) === null || _p === void 0 ? void 0 : _p.map((r) => (index.h("sl-menu-item", { value: r.value }, r.label))))),
6013
+ : {}), { 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))))),
7699
6014
  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) ? {
7700
6015
  class: classes.ErrorInput,
7701
- helpText: sqmInvoiceTableView.formatErrorMessage(text.postalCode, formState.errors.postalCode),
6016
+ helpText: utils$1.formatErrorMessage(text.postalCode, formState.errors.postalCode),
7702
6017
  }
7703
6018
  : {}), { required: true })),
7704
6019
  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) ? {
7705
6020
  class: classes.ErrorInput,
7706
- helpText: sqmInvoiceTableView.formatErrorMessage(text.currency, formState.errors.currency),
6021
+ helpText: utils$1.formatErrorMessage(text.currency, formState.errors.currency),
7707
6022
  }
7708
6023
  : {}), { required: true, ref: (el) => (refs.currencyRef.current = el) }),
7709
6024
  index.h("sl-input", { class: classes.SearchInput, placeholder: text.searchForCurrencyText, onKeyDown: (e) => {
@@ -7711,11 +6026,11 @@ const UserInfoFormView = (props) => {
7711
6026
  e.stopPropagation();
7712
6027
  }, "onSl-input": (e) => {
7713
6028
  callbacks.setCurrencySearch(e.target.value);
7714
- } }), (_s = data === null || data === void 0 ? void 0 : data.currencies) === null || _s === void 0 ? void 0 :
6029
+ } }), (_s = data$1 === null || data$1 === void 0 ? void 0 : data$1.currencies) === null || _s === void 0 ? void 0 :
7715
6030
  _s.map((c) => (index.h("sl-menu-item", { value: c.currencyCode },
7716
6031
  c.currencyCode,
7717
6032
  " - ",
7718
- c.displayName))), (_t = data === null || data === void 0 ? void 0 : data.allCurrencies) === null || _t === void 0 ? void 0 :
6033
+ c.displayName))), (_t = data$1 === null || data$1 === void 0 ? void 0 : data$1.allCurrencies) === null || _t === void 0 ? void 0 :
7719
6034
  _t.map((c) => (index.h("sl-menu-item", { value: c.currencyCode, style: { display: "none" } },
7720
6035
  c.currencyCode,
7721
6036
  " - ",
@@ -7724,7 +6039,7 @@ const UserInfoFormView = (props) => {
7724
6039
  index.h("sl-checkbox", { exportparts: "label: input-label, base: input-base", checked: formState.allowBankingCollection === true, "onSl-change": (e) => {
7725
6040
  e.target.value = e.target.checked;
7726
6041
  }, disabled: states.isPartner ? false : states.disabled, required: true, value: formState.allowBankingCollection, id: "allowBankingCollection", name: "/allowBankingCollection" }, bankingCollectionText),
7727
- ((_u = formState.errors) === null || _u === void 0 ? void 0 : _u.allowBankingCollection) && (index.h("p", { class: classes.ErrorText }, sqmInvoiceTableView.formatErrorMessage(text.termsAndConditionsLabel, formState.errors.allowBankingCollection))))),
6042
+ ((_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))))),
7728
6043
  index.h("sl-button", { type: "primary", disabled: states.isPartner ? false : states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton))))));
7729
6044
  };
7730
6045
 
@@ -7733,12 +6048,12 @@ function useUserInfoForm(props) {
7733
6048
  const currencyRef = stencilHooks_module.useRef(undefined);
7734
6049
  const phoneCountryRef = stencilHooks_module.useRef(undefined);
7735
6050
  const formRef = stencilHooks_module.useRef(null);
7736
- const context = index_module.Fn(TAX_FORM_CONTEXT_NAMESPACE);
7737
- const countries = index_module.Fn(SORTED_COUNTRIES_NAMESPACE);
7738
- const [step, setStep] = index_module.Pn(TAX_CONTEXT_NAMESPACE);
7739
- const [userFormContext, setUserFormContext] = index_module.Pn(USER_FORM_CONTEXT_NAMESPACE);
7740
- const { data, loading, errors: userError, } = index_module.$n(USER_QUERY_NAMESPACE);
7741
- const _currencies = index_module.Fn(CURRENCIES_NAMESPACE);
6051
+ const context = index_module.Fn(data.TAX_FORM_CONTEXT_NAMESPACE);
6052
+ const countries = index_module.Fn(data.SORTED_COUNTRIES_NAMESPACE);
6053
+ const [step, setStep] = index_module.Pn(data.TAX_CONTEXT_NAMESPACE);
6054
+ const [userFormContext, setUserFormContext] = index_module.Pn(data.USER_FORM_CONTEXT_NAMESPACE);
6055
+ const { data: data$1, loading, errors: userError, } = index_module.$n(data.USER_QUERY_NAMESPACE);
6056
+ const _currencies = index_module.Fn(data.CURRENCIES_NAMESPACE);
7742
6057
  const currencies = stencilHooks_module.useMemo(() => [...(_currencies || [])].sort((a, b) => a.displayName.localeCompare(b.displayName)), [_currencies]);
7743
6058
  const [countrySearch, setCountrySearch] = stencilHooks_module.useState("");
7744
6059
  const [phoneCountrySearch, setPhoneCountrySearch] = stencilHooks_module.useState("");
@@ -7749,11 +6064,11 @@ function useUserInfoForm(props) {
7749
6064
  const [formErrors, setErrors] = stencilHooks_module.useState({});
7750
6065
  stencilHooks_module.useEffect(() => {
7751
6066
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
7752
- const user = data === null || data === void 0 ? void 0 : data.user;
6067
+ const user = data$1 === null || data$1 === void 0 ? void 0 : data$1.user;
7753
6068
  if (!user || step !== "/1")
7754
6069
  return;
7755
6070
  // If form already filled out, skip initialising it
7756
- if (sqmInvoiceTableView.objectIsFull(userFormContext))
6071
+ if (utils$1.objectIsFull(userFormContext))
7757
6072
  return;
7758
6073
  // Prefer MI email if it was verified before this
7759
6074
  const email = ((_a = user.managedIdentity) === null || _a === void 0 ? void 0 : _a.emailVerified) ? user.managedIdentity.email
@@ -7790,7 +6105,7 @@ function useUserInfoForm(props) {
7790
6105
  postalCode: (_k = user.customFields) === null || _k === void 0 ? void 0 : _k.postalCode,
7791
6106
  });
7792
6107
  }
7793
- }, [data, step, userFormContext]);
6108
+ }, [data$1, step, userFormContext]);
7794
6109
  const onFormChange = (field, e) => {
7795
6110
  var _a, _b;
7796
6111
  const value = (_b = (_a = e.detail) === null || _a === void 0 ? void 0 : _a.item) === null || _b === void 0 ? void 0 : _b.__value;
@@ -7882,7 +6197,7 @@ function useUserInfoForm(props) {
7882
6197
  }
7883
6198
  const hasStates = ["ES", "AU", "US", "CA"].includes(userFormContext.countryCode);
7884
6199
  const regionObj = hasStates
7885
- ? sqmInvoiceTableView.ADDRESS_REGIONS[userFormContext === null || userFormContext === void 0 ? void 0 : userFormContext.countryCode]
6200
+ ? IndirectTaxDetailsView.ADDRESS_REGIONS[userFormContext === null || userFormContext === void 0 ? void 0 : userFormContext.countryCode]
7886
6201
  : {};
7887
6202
  return {
7888
6203
  setStep: setStep,
@@ -7915,8 +6230,8 @@ function useUserInfoForm(props) {
7915
6230
  disabled: loading,
7916
6231
  loadingError: !!(userError === null || userError === void 0 ? void 0 : userError.message),
7917
6232
  loading: loading,
7918
- 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),
7919
- 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),
6233
+ 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),
6234
+ 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),
7920
6235
  formState: {
7921
6236
  ...userFormContext,
7922
6237
  errors: formErrors,
@@ -8099,19 +6414,20 @@ const TaxForm = class {
8099
6414
  }
8100
6415
  render() {
8101
6416
  const props = index_module.isDemo() ? useDemoUserInfoForm(this) : useUserInfoForm(this);
8102
- return (index.h(index.Host, null, index.h(UserInfoFormView, { data: props.data,
6417
+ return (index.h(UserInfoFormView, { data: props.data,
8103
6418
  // @ts-ignore
8104
6419
  states: props.states, callbacks: {
8105
6420
  ...props.callbacks,
8106
6421
  onSubmit: props.onSubmit,
8107
- }, text: props.text, refs: props.refs })));
6422
+ }, text: props.text, refs: props.refs }));
8108
6423
  }
8109
6424
  };
8110
6425
  function useDemoUserInfoForm(props) {
8111
- const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
6426
+ const setStep = index_module.En(data.TAX_CONTEXT_NAMESPACE);
6427
+ // @ts-ignore
8112
6428
  return cjs.cjs({
8113
6429
  setStep,
8114
- onSubmit: () => {
6430
+ onSubmit: async () => {
8115
6431
  setStep("/2");
8116
6432
  },
8117
6433
  onRadioClick: () => { },
@@ -8155,19 +6471,12 @@ function useDemoUserInfoForm(props) {
8155
6471
  }
8156
6472
 
8157
6473
  exports.sqm_banking_info_form = BankingInfoForm;
8158
- exports.sqm_code_verification = WidgetCodeVerification;
8159
6474
  exports.sqm_docusign_form = DocusignForm;
8160
6475
  exports.sqm_indirect_tax_form = IndirectTaxForm;
8161
6476
  exports.sqm_invoice_table = InvoiceTable;
8162
- exports.sqm_invoice_table_data_cell = InvoiceTableDataCell;
8163
6477
  exports.sqm_invoice_table_data_column = InvoiceTableDataColumn;
8164
- exports.sqm_invoice_table_date_cell = RewardTableDateCell;
8165
6478
  exports.sqm_invoice_table_date_column = InvoiceTableDateColumn;
8166
- exports.sqm_invoice_table_download_cell = InvoiceTableDownloadCell;
8167
6479
  exports.sqm_invoice_table_download_column = InvoiceTableGenericColumn;
8168
6480
  exports.sqm_payout_details_card = PayoutDetailsCard;
8169
- exports.sqm_table_cell = TableCell;
8170
- exports.sqm_table_row = TableRow;
8171
- exports.sqm_tax_and_cash = TaxAndCashMonolith;
8172
6481
  exports.sqm_tax_and_cash_dashboard = TaxAndCashDashboard;
8173
6482
  exports.sqm_user_info_form = TaxForm;