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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (238) hide show
  1. package/dist/cjs/IndirectTaxDetailsView-d0290a12.js +646 -0
  2. package/dist/cjs/{ShadowViewAddon-fcd0c52f.js → ShadowViewAddon-9cb7a310.js} +1010 -1062
  3. package/dist/cjs/data-6d96b89c.js +137 -0
  4. package/dist/cjs/{email-registration-view-37b44222.js → email-registration-view-dca94dc9.js} +1 -1
  5. package/dist/cjs/{global-a38a094f.js → global-d62c5561.js} +13 -12
  6. package/dist/cjs/loader.cjs.js +2 -2
  7. package/dist/cjs/mint-components.cjs.js +2 -2
  8. package/dist/cjs/parseStates-d1effc19.js +16 -0
  9. package/dist/cjs/{sqm-banking-info-form_17.cjs.entry.js → sqm-banking-info-form_10.cjs.entry.js} +211 -1888
  10. package/dist/cjs/{sqm-big-stat_41.cjs.entry.js → sqm-big-stat_42.cjs.entry.js} +290 -10
  11. package/dist/cjs/sqm-code-verification.cjs.entry.js +348 -0
  12. package/dist/cjs/sqm-email-verification.cjs.entry.js +1 -1
  13. package/dist/cjs/sqm-empty_4.cjs.entry.js +1 -1
  14. package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +2 -2
  15. package/dist/cjs/sqm-invoice-table-data-cell_5.cjs.entry.js +84 -0
  16. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +1 -1
  17. package/dist/cjs/sqm-pagination_3.cjs.entry.js +1 -1
  18. package/dist/cjs/{sqm-portal-email-verification-view-26c893d3.js → sqm-portal-email-verification-view-156accab.js} +1 -1
  19. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +2 -2
  20. package/dist/cjs/{sqm-portal-profile-view-674a7543.js → sqm-portal-profile-view-f226725e.js} +1 -1
  21. package/dist/cjs/sqm-portal-profile.cjs.entry.js +2 -2
  22. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +1 -1
  23. package/dist/cjs/sqm-referred-registration.cjs.entry.js +1 -1
  24. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +1 -1
  25. package/dist/cjs/sqm-stencilbook.cjs.entry.js +11185 -9987
  26. package/dist/cjs/sqm-tax-and-cash.cjs.entry.js +1221 -0
  27. package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +11 -3
  28. package/dist/cjs/sqm-widget-verification.cjs.entry.js +17 -6
  29. package/dist/cjs/{usePayoutStatus-4b5894ef.js → usePayoutStatus-feeac99b.js} +8 -5
  30. package/dist/cjs/utils-ce18d1bc.js +105 -0
  31. package/dist/collection/collection-manifest.json +1 -0
  32. package/dist/collection/components/sqm-instant-access-registration/sqm-instant-access-registration.js +2 -2
  33. package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step-view.js +3 -3
  34. package/dist/collection/components/sqm-referral-card/sqm-referral-card-view.js +3 -3
  35. package/dist/collection/components/sqm-stencilbook/BrandSelector.js +179 -0
  36. package/dist/collection/components/sqm-stencilbook/Themes.js +21 -17
  37. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +82 -98
  38. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.js +33 -3
  39. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-controller.js +39 -5
  40. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +41 -6
  41. package/dist/collection/components/tax-and-cash/TaxForm.stories.js +12 -8
  42. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +1 -1
  43. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +2 -2
  44. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +1 -1
  45. package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +1 -1
  46. package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +1 -1
  47. package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +2 -2
  48. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +2 -2
  49. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +1 -1
  50. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +2 -2
  51. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js +26 -1
  52. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/usePayoutDetailsCard.js +2 -2
  53. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +8 -5
  54. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +77 -28
  55. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +1 -1
  56. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +62 -3
  57. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +3 -3
  58. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +5 -4
  59. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +49 -11
  60. package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +3 -3
  61. package/dist/collection/components/views/email-registration-view.js +1 -1
  62. package/dist/collection/global/styles.js +13 -12
  63. package/dist/collection/global/styles.ts +26 -12
  64. package/dist/collection/utils/parseStates.js +12 -0
  65. package/dist/esm/IndirectTaxDetailsView-3be86bcf.js +639 -0
  66. package/dist/esm/{ShadowViewAddon-5f9b6d07.js → ShadowViewAddon-d8cfd6c7.js} +1013 -1064
  67. package/dist/esm/data-a05c78ae.js +121 -0
  68. package/dist/esm/{email-registration-view-b1c858ee.js → email-registration-view-8782c01b.js} +1 -1
  69. package/dist/esm/{global-66746c30.js → global-632fb2fa.js} +13 -12
  70. package/dist/esm/loader.js +2 -2
  71. package/dist/esm/mint-components.js +2 -2
  72. package/dist/esm/parseStates-ed75e224.js +14 -0
  73. package/dist/esm/{sqm-banking-info-form_17.entry.js → sqm-banking-info-form_10.entry.js} +135 -1805
  74. package/dist/esm/{sqm-big-stat_41.entry.js → sqm-big-stat_42.entry.js} +294 -15
  75. package/dist/esm/sqm-code-verification.entry.js +344 -0
  76. package/dist/esm/sqm-email-verification.entry.js +1 -1
  77. package/dist/esm/sqm-empty_4.entry.js +1 -1
  78. package/dist/esm/sqm-instant-access-registration.entry.js +2 -2
  79. package/dist/esm/sqm-invoice-table-data-cell_5.entry.js +76 -0
  80. package/dist/esm/sqm-leaderboard-rank.entry.js +1 -1
  81. package/dist/esm/sqm-pagination_3.entry.js +1 -1
  82. package/dist/esm/{sqm-portal-email-verification-view-00f03873.js → sqm-portal-email-verification-view-24ea7b3c.js} +1 -1
  83. package/dist/esm/sqm-portal-email-verification.entry.js +2 -2
  84. package/dist/esm/{sqm-portal-profile-view-0d45de87.js → sqm-portal-profile-view-9b4d7ec1.js} +1 -1
  85. package/dist/esm/sqm-portal-profile.entry.js +2 -2
  86. package/dist/esm/sqm-referral-table_11.entry.js +1 -1
  87. package/dist/esm/sqm-referred-registration.entry.js +1 -1
  88. package/dist/esm/sqm-rewards-table_9.entry.js +1 -1
  89. package/dist/esm/sqm-stencilbook.entry.js +12093 -10895
  90. package/dist/esm/sqm-tax-and-cash.entry.js +1217 -0
  91. package/dist/esm/sqm-widget-verification-controller.entry.js +12 -4
  92. package/dist/esm/sqm-widget-verification.entry.js +17 -6
  93. package/dist/esm/{usePayoutStatus-58aa56b4.js → usePayoutStatus-fed17fc9.js} +8 -5
  94. package/dist/esm/utils-1654e233.js +97 -0
  95. package/dist/esm-es5/IndirectTaxDetailsView-3be86bcf.js +1 -0
  96. package/dist/esm-es5/ShadowViewAddon-d8cfd6c7.js +1 -0
  97. package/dist/esm-es5/data-a05c78ae.js +1 -0
  98. package/dist/esm-es5/email-registration-view-8782c01b.js +1 -0
  99. package/dist/esm-es5/{global-66746c30.js → global-632fb2fa.js} +5 -5
  100. package/dist/esm-es5/loader.js +1 -1
  101. package/dist/esm-es5/mint-components.js +1 -1
  102. package/dist/esm-es5/parseStates-ed75e224.js +1 -0
  103. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -0
  104. package/dist/esm-es5/sqm-big-stat_42.entry.js +1 -0
  105. package/dist/esm-es5/sqm-code-verification.entry.js +1 -0
  106. package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
  107. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  108. package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
  109. package/dist/esm-es5/sqm-invoice-table-data-cell_5.entry.js +1 -0
  110. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  111. package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
  112. package/dist/esm-es5/{sqm-portal-email-verification-view-00f03873.js → sqm-portal-email-verification-view-24ea7b3c.js} +1 -1
  113. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  114. package/dist/esm-es5/{sqm-portal-profile-view-0d45de87.js → sqm-portal-profile-view-9b4d7ec1.js} +1 -1
  115. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  116. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  117. package/dist/esm-es5/sqm-referred-registration.entry.js +1 -1
  118. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  119. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  120. package/dist/esm-es5/sqm-tax-and-cash.entry.js +1 -0
  121. package/dist/esm-es5/sqm-widget-verification-controller.entry.js +1 -1
  122. package/dist/esm-es5/sqm-widget-verification.entry.js +1 -1
  123. package/dist/esm-es5/{usePayoutStatus-58aa56b4.js → usePayoutStatus-fed17fc9.js} +2 -2
  124. package/dist/esm-es5/utils-1654e233.js +1 -0
  125. package/dist/mint-components/global/styles.ts +26 -12
  126. package/dist/mint-components/mint-components.esm.js +1 -1
  127. package/dist/mint-components/mint-components.js +1 -1
  128. package/dist/mint-components/p-06ce54e2.entry.js +258 -0
  129. package/dist/mint-components/p-0984523b.js +1 -0
  130. package/dist/mint-components/p-0a37a288.system.entry.js +1 -0
  131. package/dist/mint-components/{p-77b8a529.system.entry.js → p-0a8a6d45.system.entry.js} +1 -1
  132. package/dist/mint-components/p-115dfc03.system.js +1 -0
  133. package/dist/mint-components/{p-480e08e9.js → p-11dff275.js} +2 -2
  134. package/dist/mint-components/{p-770bba1b.system.entry.js → p-12e61414.system.entry.js} +1 -1
  135. package/dist/mint-components/p-13f3a647.js +1 -0
  136. package/dist/mint-components/p-155cf177.system.js +1 -0
  137. package/dist/mint-components/{p-dded7d43.entry.js → p-1878da9b.entry.js} +2 -2
  138. package/dist/mint-components/p-2cfe9826.system.entry.js +1 -0
  139. package/dist/mint-components/{p-210e8f49.entry.js → p-2df6ce8f.entry.js} +1 -1
  140. package/dist/mint-components/{p-cfa34cf2.system.js → p-33f640f6.system.js} +1 -1
  141. package/dist/mint-components/{p-241d68d4.system.entry.js → p-450a7705.system.entry.js} +1 -1
  142. package/dist/mint-components/p-4841c5e9.system.entry.js +1 -0
  143. package/dist/mint-components/p-4bb1c4b2.system.js +1 -0
  144. package/dist/mint-components/p-4cbd7eec.js +394 -0
  145. package/dist/mint-components/{p-9fe574ca.system.entry.js → p-51aa8c38.system.entry.js} +1 -1
  146. package/dist/mint-components/p-52d15f87.system.js +1 -0
  147. package/dist/mint-components/p-5510be1e.system.entry.js +1 -0
  148. package/dist/mint-components/{p-71f23364.entry.js → p-66d22d46.entry.js} +1 -1
  149. package/dist/mint-components/p-674b82ac.js +1 -0
  150. package/dist/mint-components/p-6ef506ba.entry.js +16 -0
  151. package/dist/mint-components/{p-c024fc32.system.entry.js → p-6fa624ff.system.entry.js} +1 -1
  152. package/dist/mint-components/{p-d932f43d.entry.js → p-704f162e.entry.js} +1 -1
  153. package/dist/mint-components/p-70fddbdd.entry.js +11 -0
  154. package/dist/mint-components/p-780b981b.entry.js +1 -0
  155. package/dist/mint-components/{p-4caaf25a.js → p-7adb141e.js} +1 -1
  156. package/dist/mint-components/p-7b731acd.entry.js +93 -0
  157. package/dist/mint-components/{p-884ac29e.system.entry.js → p-846aff6a.system.entry.js} +1 -1
  158. package/dist/mint-components/p-84a78d09.entry.js +1 -0
  159. package/dist/mint-components/{p-3f290d24.system.js → p-96e339f6.system.js} +11 -11
  160. package/dist/mint-components/p-9711efb7.entry.js +1 -0
  161. package/dist/mint-components/{p-cc7af682.system.js → p-9721a29a.system.js} +2 -2
  162. package/dist/mint-components/{p-b0d4938a.system.entry.js → p-9d41d676.system.entry.js} +1 -1
  163. package/dist/mint-components/{p-d9335f16.js → p-a1e17fd2.js} +1 -1
  164. package/dist/mint-components/p-a27a15c5.system.entry.js +1 -0
  165. package/dist/mint-components/{p-0bdeab70.system.js → p-a3383f54.system.js} +1 -1
  166. package/dist/mint-components/{p-0eb3d919.system.entry.js → p-a91e7c05.system.entry.js} +1 -1
  167. package/dist/mint-components/p-b73a4df4.entry.js +33 -0
  168. package/dist/mint-components/p-be89074c.entry.js +1 -0
  169. package/dist/mint-components/p-c0b07067.system.js +1 -0
  170. package/dist/mint-components/p-c1b1f8ae.system.entry.js +1 -0
  171. package/dist/mint-components/p-c75a3b4a.js +103 -0
  172. package/dist/mint-components/p-c9745c8f.system.js +1 -0
  173. package/dist/mint-components/{p-1abe7884.system.entry.js → p-cf157c6e.system.entry.js} +1 -1
  174. package/dist/mint-components/{p-5366850e.entry.js → p-da71337b.entry.js} +1 -1
  175. package/dist/mint-components/{p-015da96d.entry.js → p-dbb83730.entry.js} +1 -1
  176. package/dist/mint-components/{p-4f22fda2.js → p-dc293b10.js} +1 -1
  177. package/dist/mint-components/{p-8e93e590.entry.js → p-df223bff.entry.js} +1 -1
  178. package/dist/mint-components/{p-e80f9e26.system.entry.js → p-e217afd9.system.entry.js} +1 -1
  179. package/dist/mint-components/{p-fe6fe9cf.entry.js → p-e5d9e709.entry.js} +2 -2
  180. package/dist/mint-components/p-eb998f7b.entry.js +9 -0
  181. package/dist/mint-components/p-f53f5304.system.entry.js +1 -0
  182. package/dist/mint-components/p-f8175201.system.js +1 -0
  183. package/dist/mint-components/p-fb13065a.js +1 -0
  184. package/dist/mint-components/p-fda43e22.system.entry.js +1 -0
  185. package/dist/types/components/sqm-stencilbook/BrandSelector.d.ts +6 -0
  186. package/dist/types/components/sqm-stencilbook/Themes.d.ts +4 -5
  187. package/dist/types/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.d.ts +5 -0
  188. package/dist/types/components/sqm-widget-verification/sqm-widget-verification-controller.d.ts +5 -0
  189. package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +5 -0
  190. package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +0 -1
  191. package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.d.ts +1 -1
  192. package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +2 -2
  193. package/dist/types/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.d.ts +4 -0
  194. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +1 -1
  195. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +10 -4
  196. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.d.ts +1 -1
  197. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +1 -1
  198. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +10 -0
  199. package/dist/types/components/tax-and-cash/sqm-user-info-form/small-views/IndirectTaxDetailsView.d.ts +1 -1
  200. package/dist/types/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.d.ts +7 -0
  201. package/dist/types/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.d.ts +1 -1
  202. package/dist/types/components/tax-and-cash/utils.d.ts +1 -1
  203. package/dist/types/components.d.ts +107 -7
  204. package/dist/types/global/styles.d.ts +6 -1
  205. package/dist/types/saasquatch.d.ts +61 -0
  206. package/dist/types/utils/parseStates.d.ts +1 -0
  207. package/docs/docs.docx +0 -0
  208. package/docs/raisins.json +1 -1
  209. package/grapesjs/grapesjs.js +1 -1
  210. package/package.json +2 -1
  211. package/dist/cjs/sqm-invoice-table-view-19ca10fa.js +0 -2038
  212. package/dist/esm/sqm-invoice-table-view-b7e91eef.js +0 -2022
  213. package/dist/esm-es5/ShadowViewAddon-5f9b6d07.js +0 -1
  214. package/dist/esm-es5/email-registration-view-b1c858ee.js +0 -1
  215. package/dist/esm-es5/sqm-banking-info-form_17.entry.js +0 -1
  216. package/dist/esm-es5/sqm-big-stat_41.entry.js +0 -1
  217. package/dist/esm-es5/sqm-invoice-table-view-b7e91eef.js +0 -1
  218. package/dist/mint-components/p-0480b155.system.entry.js +0 -1
  219. package/dist/mint-components/p-33c96e14.entry.js +0 -16
  220. package/dist/mint-components/p-3e604cad.js +0 -1
  221. package/dist/mint-components/p-5cd684b2.entry.js +0 -9
  222. package/dist/mint-components/p-6427e963.entry.js +0 -1
  223. package/dist/mint-components/p-6798d563.system.js +0 -1
  224. package/dist/mint-components/p-693fc880.system.js +0 -1
  225. package/dist/mint-components/p-6c1d0367.entry.js +0 -33
  226. package/dist/mint-components/p-72ff8268.js +0 -1
  227. package/dist/mint-components/p-8530290b.entry.js +0 -258
  228. package/dist/mint-components/p-9cf80e85.system.entry.js +0 -1
  229. package/dist/mint-components/p-a1091368.system.js +0 -1
  230. package/dist/mint-components/p-a68932b0.system.entry.js +0 -1
  231. package/dist/mint-components/p-af96b482.entry.js +0 -205
  232. package/dist/mint-components/p-bf25f63a.js +0 -394
  233. package/dist/mint-components/p-c36506f6.system.entry.js +0 -1
  234. package/dist/mint-components/p-d0064d54.system.entry.js +0 -1
  235. package/dist/mint-components/p-d5e9906e.system.js +0 -1
  236. package/dist/mint-components/p-f0fdbd82.entry.js +0 -1
  237. /package/dist/collection/components/tax-and-cash/{sqm-tax-and-cash/data.js → data.js} +0 -0
  238. /package/dist/types/components/tax-and-cash/{sqm-tax-and-cash/data.d.ts → data.d.ts} +0 -0
@@ -0,0 +1,1217 @@
1
+ import { r as registerInstance, h as h$1 } from './index-91e7729f.js';
2
+ import { u as useMemo, f as useEffect, n as h } from './stencil-hooks.module-4bc38af4.js';
3
+ import './global-632fb2fa.js';
4
+ import { M as Mn, _, J, L, I as In, S as Sn, i as isDemo } from './index.module-89a79f66.js';
5
+ import { c as cjs } from './cjs-bdfb4486.js';
6
+ import { g as getProps } from './utils-334c1e34.js';
7
+ import './JSS-67b5cff8.js';
8
+ import { E as ErrorView } from './ErrorView-48e2b969.js';
9
+ import { g as getCountryObj, L as LoadingView } from './utils-1654e233.js';
10
+ import { p as parseStates } from './parseStates-ed75e224.js';
11
+ import { T as TAX_CONTEXT_NAMESPACE, a as TAX_FORM_CONTEXT_NAMESPACE, U as USER_FORM_CONTEXT_NAMESPACE, C as CURRENCIES_NAMESPACE, b as COUNTRIES_NAMESPACE, S as SORTED_COUNTRIES_NAMESPACE, c as USER_QUERY_NAMESPACE, G as GET_USER, d as COUNTRIES_QUERY_NAMESPACE, e as GET_COUNTRIES, F as FINANCE_NETWORK_SETTINGS_NAMESPACE, f as GET_FINANCE_NETWORK_SETTINGS, g as CURRENCIES_QUERY_NAMESPACE, h as GET_CURRENCIES } from './data-a05c78ae.js';
12
+ import { e as extractProps } from './extractProps-ae1afbb3.js';
13
+
14
+ function getCurrentStep(user) {
15
+ var _a, _b;
16
+ if (!((_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.connected) || !((_b = user.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher)) {
17
+ return "/1";
18
+ }
19
+ const { requiredTaxDocumentType, currentTaxDocument, withdrawalSettings, brandedSignup, } = user.impactConnection.publisher;
20
+ // If they do have a required document, look at current document
21
+ if (requiredTaxDocumentType && !currentTaxDocument)
22
+ return "/3";
23
+ if (!withdrawalSettings && brandedSignup)
24
+ return "/4";
25
+ return "/dashboard";
26
+ }
27
+ function useTaxAndCash() {
28
+ var _a, _b, _c, _d, _e;
29
+ const host = _();
30
+ const user = J();
31
+ const locale = L();
32
+ // State for current step of form
33
+ const [step, setStep] = In({
34
+ namespace: TAX_CONTEXT_NAMESPACE,
35
+ initialValue: "/loading",
36
+ });
37
+ // State for when to hide steps, or override certain actions
38
+ const [context, _setContext] = In({
39
+ namespace: TAX_FORM_CONTEXT_NAMESPACE,
40
+ initialValue: {},
41
+ });
42
+ // State to carry user form information into step 2
43
+ const [userFormContext, _setUserFormContext] = In({
44
+ namespace: USER_FORM_CONTEXT_NAMESPACE,
45
+ initialValue: {
46
+ firstName: undefined,
47
+ lastName: undefined,
48
+ email: undefined,
49
+ countryCode: undefined,
50
+ currency: undefined,
51
+ },
52
+ });
53
+ const [_currenciesContext, setCurrenciesContext] = In({
54
+ namespace: CURRENCIES_NAMESPACE,
55
+ initialValue: [],
56
+ });
57
+ const [_countriesContext, _setCountriesContext] = In({
58
+ namespace: COUNTRIES_NAMESPACE,
59
+ initialValue: [],
60
+ });
61
+ const [_sortedCountriesContext, setSortedCountriesContext] = In({
62
+ namespace: SORTED_COUNTRIES_NAMESPACE,
63
+ initialValue: [],
64
+ });
65
+ const { data, errors } = Sn({
66
+ namespace: USER_QUERY_NAMESPACE,
67
+ query: GET_USER,
68
+ skip: !user,
69
+ options: {
70
+ batch: false,
71
+ },
72
+ });
73
+ 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) ||
74
+ userFormContext.countryCode;
75
+ Sn({
76
+ namespace: COUNTRIES_QUERY_NAMESPACE,
77
+ query: GET_COUNTRIES,
78
+ skip: !user,
79
+ });
80
+ const { data: financeNetworkData, refetch } = Sn({
81
+ namespace: FINANCE_NETWORK_SETTINGS_NAMESPACE,
82
+ query: GET_FINANCE_NETWORK_SETTINGS,
83
+ skip: !user,
84
+ variables: {
85
+ filter: getFinanceNetworkFilter(),
86
+ },
87
+ });
88
+ const { data: currenciesData } = Sn({
89
+ namespace: CURRENCIES_QUERY_NAMESPACE,
90
+ query: GET_CURRENCIES,
91
+ skip: !user,
92
+ variables: {
93
+ locale,
94
+ },
95
+ });
96
+ const supportedCurrencies = useMemo(() => {
97
+ var _a, _b;
98
+ // Filter out any currencies not supported by finance network settings
99
+ 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) => {
100
+ var _a, _b;
101
+ 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);
102
+ // Currency not in supported list
103
+ if (!currency)
104
+ return agg;
105
+ // Currency already added to list
106
+ if (agg.find((currency) => currency.currencyCode === settings.currency))
107
+ return agg;
108
+ // Currency not supported by selected country
109
+ if (userFormContext.countryCode &&
110
+ settings.countryCode !== countryCode)
111
+ return agg;
112
+ return [...agg, currency];
113
+ }, []);
114
+ return allValidCurrencies;
115
+ }, [financeNetworkData, countryCode]);
116
+ const intlLocale = (locale === null || locale === void 0 ? void 0 : locale.replace("_", "-")) || "en";
117
+ const sortByName = (a, b) => a.displayName < b.displayName ? -1 : 1;
118
+ const paymentOptions = (_d = financeNetworkData === null || financeNetworkData === void 0 ? void 0 : financeNetworkData.impactFinanceNetworkSettings) === null || _d === void 0 ? void 0 : _d.data;
119
+ // filter out any duplicate countries and null countryCode
120
+ const availableCountries = useMemo(() => new Set(paymentOptions === null || paymentOptions === void 0 ? void 0 : paymentOptions.map((option) => option.countryCode).filter((value) => value)), [paymentOptions]);
121
+ const _topCountries = ["CA", "GB", "US"];
122
+ const sortedCountries = useMemo(() => Array.from(availableCountries)
123
+ .map((countryCode) => getCountryObj({ countryCode, locale: intlLocale }))
124
+ .sort(sortByName)
125
+ .reduce((prev, countryObj) => {
126
+ if (_topCountries.includes(countryObj.countryCode))
127
+ return [countryObj, ...prev];
128
+ return [...prev, countryObj];
129
+ }, []), [availableCountries]);
130
+ useEffect(() => {
131
+ if (sortedCountries)
132
+ setSortedCountriesContext(sortedCountries);
133
+ }, [sortedCountries]);
134
+ useEffect(() => {
135
+ if (supportedCurrencies)
136
+ setCurrenciesContext(supportedCurrencies);
137
+ }, [supportedCurrencies]);
138
+ useEffect(() => {
139
+ if (errors) {
140
+ setStep("/error");
141
+ return;
142
+ }
143
+ if (!host || !user)
144
+ return;
145
+ if (data) {
146
+ const user = data === null || data === void 0 ? void 0 : data.user;
147
+ if (!user || step !== "/loading")
148
+ return;
149
+ const currentStep = getCurrentStep(user);
150
+ setStep(currentStep);
151
+ }
152
+ }, [host, user, (_e = data === null || data === void 0 ? void 0 : data.user) === null || _e === void 0 ? void 0 : _e.email, errors]);
153
+ function getFinanceNetworkFilter() {
154
+ var _a, _b, _c;
155
+ if (step === "/1")
156
+ return {};
157
+ if (step === "/4")
158
+ 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 };
159
+ if (countryCode)
160
+ return {
161
+ countryCode_eq: countryCode,
162
+ };
163
+ return {};
164
+ }
165
+ return {
166
+ step,
167
+ setStep,
168
+ context,
169
+ namespace: Mn(TAX_CONTEXT_NAMESPACE),
170
+ loading: step === "/loading",
171
+ };
172
+ }
173
+
174
+ const TaxAndCashMonolith = class {
175
+ constructor(hostRef) {
176
+ registerInstance(this, hostRef);
177
+ /*---------------------------------------------------------------------------------
178
+ !IMPORTANT!: Make sure to also change the prop names in the respective component
179
+ -----------------------------------------------------------------------------------*/
180
+ /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
181
+ STEP 1 PROPS:
182
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
183
+ /**
184
+ * @uiName First name field label
185
+ * @uiGroup Step 1 Properties
186
+ */
187
+ this.step1_firstName = "First name";
188
+ /**
189
+ * @uiName Last name field label
190
+ * @uiGroup Step 1 Properties
191
+ */
192
+ this.step1_lastName = "Last name";
193
+ /**
194
+ * @uiName Email field label
195
+ * @uiGroup Step 1 Properties
196
+ */
197
+ this.step1_email = "Email";
198
+ /**
199
+ * @uiName Country field label
200
+ * @uiGroup Step 1 Properties
201
+ */
202
+ this.step1_country = "Country";
203
+ /**
204
+ * @uiName Phone number field label
205
+ * @uiGroup Step 1 Properties
206
+ */
207
+ this.step1_phoneNumber = "Phone number";
208
+ /**
209
+ * @uiName Address field label
210
+ * @uiGroup Step 1 Properties
211
+ */
212
+ this.step1_address = "Address";
213
+ /**
214
+ * @uiName City field label
215
+ * @uiGroup Step 1 Properties
216
+ */
217
+ this.step1_city = "City";
218
+ /**
219
+ * @uiName State field label for states
220
+ * @uiGroup Step 1 Properties
221
+ */
222
+ this.step1_state = "State";
223
+ /**
224
+ * @uiName State field label for provinces
225
+ * @uiGroup Step 1 Properties
226
+ */
227
+ this.step1_province = "Province";
228
+ /**
229
+ * @uiName State field label for regions
230
+ * @uiGroup Step 1 Properties
231
+ */
232
+ this.step1_region = "Region";
233
+ /**
234
+ * @uiName Postal code field label
235
+ * @uiGroup Step 1 Properties
236
+ */
237
+ this.step1_postalCode = "Postal code";
238
+ /**
239
+ * @uiName Currency field label
240
+ * @uiGroup Step 1 Properties
241
+ */
242
+ this.step1_currency = "Currency";
243
+ /**
244
+ * @uiName Currency field help text
245
+ * @uiGroup Step 1 Properties
246
+ */
247
+ this.step1_currencyHelpText = "Choose your preferred payout currency";
248
+ /**
249
+ * Edit the property called terms and conditions text to change what's displayed for {termsAndConditionsLink}.
250
+ * @uiName Terms and conditions checkbox
251
+ * @uiGroup Step 1 Properties
252
+ */
253
+ this.step1_allowBankingCollection = "I have read the {termsAndConditionsLink} and allow impact.com to collect my tax and banking information";
254
+ /**
255
+ * @uiName Step 1 title
256
+ * @uiGroup Step 1 Properties
257
+ */
258
+ this.step1_personalInformation = "Personal Information";
259
+ /**
260
+ * The link text that appears in the terms and conditions checkbox
261
+ * @uiName Terms and conditions text
262
+ * @uiGroup Step 1 Properties
263
+ * @uiWidget textArea
264
+ */
265
+ this.step1_termsAndConditionsLabel = "terms and conditions";
266
+ /**
267
+ * The link that appears in the terms and conditions checkbox
268
+ * @uiName Terms and conditions link
269
+ * @uiGroup Step 1 Properties
270
+ */
271
+ this.step1_termsAndConditionsLink = "https://terms.advocate.impact.com/PayoutTermsAndConditions.html";
272
+ /**
273
+ * Placeholder text displayed in the currency search dropdown
274
+ * @uiName Currency field placeholder text
275
+ * @uiGroup Step 1 Properties
276
+ */
277
+ this.step1_searchForCurrencyText = "Search for currency..";
278
+ /**
279
+
280
+ /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
281
+ STEP 2 PROPS:
282
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
283
+ /**
284
+ * @uiName Step 2 title
285
+ * @uiGroup Step 2 Properties
286
+ */
287
+ this.step2_indirectTax = "Indirect Tax";
288
+ /**
289
+ * Displayed under the title of this step.
290
+ * @uiName Step 2 description
291
+ * @uiGroup Step 2 Properties
292
+ * @uiWidget textArea
293
+ */
294
+ 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.";
295
+ /**
296
+ * Displayed with indirect tax registration options.
297
+ * @uiName Indirect tax details section title
298
+ * @uiGroup Step 2 Properties
299
+ */
300
+ this.step2_indirectTaxDetails = "Indirect tax details";
301
+ /**
302
+ * @uiName Registered for indirect tax option
303
+ * @uiGroup Step 2 Properties
304
+ * @uiWidget textArea
305
+ *
306
+ */
307
+ this.step2_otherRegion = "Registered for indirect tax";
308
+ /**
309
+ * Selecting this option will display fields to enter indirect tax details.
310
+ * @uiName Registered for indirect tax option description
311
+ * @uiGroup Step 2 Properties
312
+ */
313
+ this.step2_otherRegionSubtext = "If you’ve registered with your tax authority, add your information to stay tax compliant.";
314
+ /**
315
+ * @uiName Not registered for indirect tax option
316
+ * @uiGroup Step 2 Properties
317
+ * @uiWidget textArea
318
+ */
319
+ this.step2_notRegistered = "Not registered for indirect tax";
320
+ /**
321
+ * Participants based in the US are considered not registered.
322
+ * @uiName Not registered for indirect tax option description
323
+ * @uiGroup Step 2 Properties
324
+ */
325
+ this.step2_notRegisteredSubtext = "If you’ve never set up indirect tax with your tax authority, then you’re likely not considered registered.";
326
+ /**
327
+ * @uiName Region of indirect tax field label
328
+ * @uiGroup Step 2 Properties
329
+ */
330
+ this.step2_selectedRegion = "Country / region of indirect tax";
331
+ /**
332
+ * @uiName Indirect tax number field label
333
+ * @uiGroup Step 2 Properties
334
+ */
335
+ this.step2_indirectTaxNumber = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}}";
336
+ /**
337
+ * @uiName Province field label
338
+ * @uiGroup Step 2 Properties
339
+ */
340
+ this.step2_province = "Province";
341
+ /**
342
+ * @uiName Missing indirect tax number error message
343
+ * @uiGroup Step 2 Properties
344
+ */
345
+ 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";
346
+ /**
347
+ * Displayed to participants registered for QST.
348
+ * @uiName QST number field label
349
+ * @uiGroup Step 2 Properties
350
+ */
351
+ this.step2_qstNumber = "QST number";
352
+ /**
353
+ * Displayed to participants registered for indirect tax in Quebec, Canada.
354
+ * @uiName QST tax checkbox
355
+ * @uiGroup Step 2 Properties
356
+ */
357
+ this.step2_isRegisteredQST = "I am registered for QST Tax";
358
+ /**
359
+ * Displayed to participants registered for indirect tax in Spain.
360
+ * @uiName Spain income tax checkbox
361
+ * @uiGroup Step 2 Properties
362
+ * @uiWidget textArea
363
+ */
364
+ 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.";
365
+ /**
366
+ * Displayed to participants registered in Spain.
367
+ * @uiName Sub-region of indirect tax field label
368
+ * @uiGroup Step 2 Properties
369
+ */
370
+ this.step2_subRegion = "Sub-region";
371
+ /**
372
+ * @uiName Income tax field label
373
+ * @uiGroup Step 2 Properties
374
+ */
375
+ this.step2_subRegionTaxNumberLabel = "Income Tax Number";
376
+ /**
377
+ * Communicate that after this step, only Support can change personal and indirect tax information.
378
+ * @uiName Submission confirmation alert
379
+ * @uiGroup Step 2 Properties
380
+ * @uiWidget textArea
381
+ */
382
+ 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.";
383
+ /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
384
+ STEP 3 PROPS:
385
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
386
+ /**
387
+ * @uiName Step 3 title
388
+ * @uiGroup Step 3 Properties
389
+ */
390
+ this.step3_taxForm = "Tax form";
391
+ /**
392
+ * Display the type of tax form that the participant must submit.
393
+ * @uiName Tax form name
394
+ * @uiGroup Step 3 Properties
395
+ */
396
+ this.step3_taxFormLabel = "{documentType} Tax Form";
397
+ /**
398
+ * @uiName Participant type field label
399
+ * @uiGroup Step 3 Properties
400
+ */
401
+ this.step3_participantType = "Participant type";
402
+ /**
403
+ * An option for the participant type field. Used to determine which W-8 form is required.
404
+ * @uiName Business representative participant type label
405
+ * @uiGroup Step 3 Properties
406
+ */
407
+ this.step3_businessEntity = "I represent a business";
408
+ /**
409
+ * An option for the participant type field. Used to determine which W-8 form is required.
410
+ * @uiName Individual participant type label
411
+ * @uiGroup Step 3 Properties
412
+ */
413
+ this.step3_individualParticipant = "I am an individual participant";
414
+ /**
415
+ * Displayed at the top of the page to participants based in the US.
416
+ * @uiName W-9 tax form description
417
+ * @uiGroup Step 3 Properties
418
+ * @uiWidget textArea
419
+ */
420
+ this.step3_taxFormDescription = "Participants based in the US need to submit a {documentType} form.";
421
+ /**
422
+ * Displayed at the top of the page to individuals joining a US program who reside outside the country.
423
+ * @uiName W-8 BEN tax form description
424
+ * @uiGroup Step 3 Properties
425
+ * @uiWidget textArea
426
+ */
427
+ this.step3_taxFormDescriptionIndividualParticipant = "Participants residing outside of the US, joining the referral program of a US-based company, need to submit a {documentType} form.";
428
+ /**
429
+ * Displayed at the top of the page to participants representing a business.
430
+ * @uiName W-8 BEN-E tax form description
431
+ * @uiGroup Step 3 Properties
432
+ * @uiWidget textArea
433
+ */
434
+ this.step3_taxFormDescriptionBusinessEntity = "Participants residing outside of the US who represent a business entity need to submit a {documentType} form.";
435
+ /**
436
+ * This appears inside the Docusign frame.
437
+ * @uiName Docusign session expired message
438
+ * @uiGroup Step 3 Properties
439
+ * @uiWidget textArea
440
+ */
441
+ 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.";
442
+ /**
443
+ * Remind participants their session will time out after 20 minutes of inactivity.
444
+ * @uiName Docusign timed session message
445
+ * @uiGroup Step 3 Properties
446
+ * @uiWidget textArea
447
+ */
448
+ this.step3_docusignSessionWarning = "For your security, we automatically end your session when you have not interacted with the form after 20 minutes.";
449
+ /**
450
+ * This appears inside the Docusign frame.
451
+ * @uiName Docusign form error message
452
+ * @uiGroup Step 3 Properties
453
+ * @uiWidget textArea
454
+ */
455
+ this.step3_docusignError = "There was a problem displaying this form. Please refresh the page. If this problem continues, contact our {supportLink}.";
456
+ /**
457
+ * @uiName Refresh page button label
458
+ * @uiGroup Step 3 Properties
459
+ */
460
+ this.step3_refreshButton = "Refresh Page";
461
+ /**
462
+ * @uiName Exit button text
463
+ * @uiGroup Step 3 Properties
464
+ */
465
+ this.step3_exitButton = "Exit";
466
+ /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
467
+ STEP 4 PROPS:
468
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
469
+ /**
470
+ * @uiName Step 4 title
471
+ * @uiGroup Step 4 Properties
472
+ */
473
+ this.step4_taxAndPayouts = "Payouts";
474
+ /**
475
+ * @uiName Direct to bank payout option
476
+ * @uiGroup Step 4 Properties
477
+ */
478
+ this.step4_directlyToBankAccount = "Directly to my bank account";
479
+ /**
480
+ * @uiName PayPal payout option
481
+ * @uiGroup Step 4 Properties
482
+ */
483
+ this.step4_toPayPalAccount = "PayPal (2% processing fee capped to {feeCap})";
484
+ /**
485
+ * @uiName Threshold balance payment schedule option
486
+ * @uiGroup Step 4 Properties
487
+ */
488
+ this.step4_paymentScheduleBalanceThreshold = "Pay me when my balance reaches a threshold";
489
+ /**
490
+ * @uiName Fixed day payment schedule option
491
+ * @uiGroup Step 4 Properties
492
+ */
493
+ this.step4_paymentScheduleFixedDay = "Pay me on a fixed day of the month";
494
+ /**
495
+ * Let the participant choose what day of the month they’ll get paid
496
+ * @uiName Payment day field label
497
+ * @uiGroup Step 4 Properties
498
+ */
499
+ this.step4_paymentDaySelectLabel = "Payment Day";
500
+ /**
501
+ * Participant use this field to select the balance at which they want to be paid
502
+ * @uiName Payment threshold field label
503
+ * @uiGroup Step 4 Properties
504
+ */
505
+ this.step4_paymentThresholdSelectLabel = "Payment threshold";
506
+ /**
507
+ * One of two payment day options
508
+ * @uiName First of month payday option
509
+ * @uiGroup Step 4 Properties
510
+ */
511
+ this.step4_paymentDayFirstOfMonthLabelText = "1st of the month";
512
+ /**
513
+ * One of two payment day options
514
+ * @uiName Fifteenth of month payday option
515
+ * @uiGroup Step 4 Properties
516
+ */
517
+ this.step4_paymentDayFifteenthOfMonthLabelText = "15th of the month";
518
+ /**
519
+ * @uiName Payment method section header
520
+ * @uiGroup Step 4 Properties
521
+ */
522
+ this.step4_paymentMethod = "Payment method";
523
+ /**
524
+ * @uiName Payment schedule section header
525
+ * @uiGroup Step 4 Properties
526
+ */
527
+ this.step4_paymentSchedule = "Payment schedule";
528
+ /**
529
+ * @uiName Payment method section description
530
+ * @uiGroup Step 4 Properties
531
+ */
532
+ this.step4_paymentMethodSubtext = "Payouts will be sent from our referral program provider, impact.com.";
533
+ /**
534
+ * Displayed to participants who choose PayPal as their payout method
535
+ * @uiName PayPal email field label
536
+ * @uiGroup Step 4 Properties
537
+ */
538
+ this.step4_payPalInputLabel = "PayPal email";
539
+ /**
540
+ * @uiName Bank country field label
541
+ * @uiGroup Step 4 Properties
542
+ */
543
+ this.step4_bankLocationLabel = "Bank country location";
544
+ /**
545
+ * @uiName Beneficiary account field label
546
+ * @uiGroup Step 4 Properties
547
+ */
548
+ this.step4_beneficiaryAccountNameLabel = "Beneficiary account name";
549
+ /**
550
+ * @uiName Bank account type field label
551
+ * @uiGroup Step 4 Properties
552
+ */
553
+ this.step4_bankAccountTypeLabel = "Bank account type";
554
+ /**
555
+ * @uiName Checking account option
556
+ * @uiGroup Step 4 Properties
557
+ */
558
+ this.step4_checkingSelectItemLabel = "Checking";
559
+ /**
560
+ * Label text for the savings account type select item
561
+ * @uiName Savings account options
562
+ * @uiGroup Step 4 Properties
563
+ */
564
+ this.step4_savingsSelectItemLabel = "Savings";
565
+ /**
566
+ * @uiName Bank account number field label
567
+ * @uiGroup Step 4 Properties
568
+ */
569
+ this.step4_bankAccountNumberLabel = "Bank account number";
570
+ /**
571
+ * @uiName IBAN field label
572
+ * @uiGroup Step 4 Properties
573
+ */
574
+ this.step4_ibanLabel = "IBAN";
575
+ /**
576
+ * @uiName SWIFT code field label
577
+ * @uiGroup Step 4 Properties
578
+ */
579
+ this.step4_swiftCodeLabel = "SWIFT code";
580
+ /**
581
+ * @uiName Routing code field label
582
+ * @uiGroup Step 4 Properties
583
+ */
584
+ 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} }";
585
+ /**
586
+ * @uiName Bank name field label
587
+ * @uiGroup Step 4 Properties
588
+ */
589
+ this.step4_bankNameLabel = "Bank name";
590
+ /**
591
+ * @uiName Classification entity field label
592
+ * @uiGroup Step 4 Properties
593
+ */
594
+ this.step4_classificationEntityLabel = "Classification entity";
595
+ /**
596
+ * One of three options listed for the classification field
597
+ * @uiName Business classification option
598
+ * @uiGroup Step 4 Properties
599
+ */
600
+ this.step4_businessSelectItemLabel = "Business";
601
+ /**
602
+ * One of three options listed for the classification field
603
+ * @uiName Individual classification option
604
+ * @uiGroup Step 4 Properties
605
+ */
606
+ this.step4_individualSelectItemLabel = "Individual";
607
+ /**
608
+ * One of three options listed for the classification field
609
+ * @uiName Foreign classification option
610
+ * @uiGroup Step 4 Properties
611
+ */
612
+ this.step4_foreignSelectItemLabel = "Foreign";
613
+ /**
614
+ * @uiName Classification CPF field label
615
+ * @uiGroup Step 4 Properties
616
+ */
617
+ this.step4_classificationCPFLabel = "Classification CPF";
618
+ /**
619
+ * @uiName Patronymic name field label
620
+ * @uiGroup Step 4 Properties
621
+ */
622
+ this.step4_patronymicNameLabel = "Patronymic name";
623
+ /**
624
+ * @uiName VO code field label
625
+ * @uiGroup Step 4 Properties
626
+ */
627
+ this.step4_voCodeLabel = "VO code";
628
+ /**
629
+ * @uiName Agency code field label
630
+ * @uiGroup Step 4 Properties
631
+ */
632
+ this.step4_agencyCodeLabel = "Agency code";
633
+ /**
634
+ * @uiName Branch code field label
635
+ * @uiGroup Step 4 Properties
636
+ */
637
+ this.step4_branchCodeLabel = "Branch code";
638
+ /**
639
+ * Label text for the classification input field
640
+ * @uiName Classification field label
641
+ * @uiGroup Step 4 Properties
642
+ */
643
+ this.step4_classificationLabel = "Classification";
644
+ /**
645
+ * @uiName Taxpayer ID field label
646
+ * @uiGroup Step 4 Properties
647
+ */
648
+ this.step4_taxPayerIdLabel = "Beneficiary INN";
649
+ /**
650
+ * @uiName Bank address field label
651
+ * @uiGroup Step 4 Properties
652
+ */
653
+ this.step4_bankAddressLabel = "Bank address";
654
+ /**
655
+ * @uiName Bank city field label
656
+ * @uiGroup Step 4 Properties
657
+ */
658
+ this.step4_bankCityLabel = "Bank city";
659
+ /**
660
+ * @uiName Bank province/state field label
661
+ * @uiGroup Step 4 Properties
662
+ */
663
+ this.step4_bankStateLabel = "Bank Province / State";
664
+ /**
665
+ * @uiName Bank postal code field label
666
+ * @uiGroup Step 4 Properties
667
+ */
668
+ this.step4_bankPostalCodeLabel = "Bank postal code";
669
+ /**
670
+ * Default payment method to the participants’ bank account.
671
+ * @uiName EFT withdrawal payment method
672
+ * @uiGroup Step 4 Properties
673
+ */
674
+ this.step4_eftWithdrawalLabel = "EFT Withdrawal (free)";
675
+ /**
676
+ * @uiName FX Wire Processing fee text
677
+ * @uiGroup Step 4 Properties
678
+ */
679
+ this.step4_fxWireProcessingFeeLabel = "FX Wire (Processing Fee {currency}{defaultFxFee}.00)";
680
+ /**
681
+ * @uiName Text for verify email dialog
682
+ * @uiGroup Step 4 Properties
683
+ */
684
+ this.step4_verifyEmailHeaderText = "Verify your email";
685
+ /**
686
+ * @uiName Verify code widget header text
687
+ * @uiGroup Step 4 Properties
688
+ */
689
+ this.step4_verifyEmailDescriptionText = "Verify your email to update your payment settings. Enter the code sent to {email} from our referral provider, impact.com.";
690
+ /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
691
+ DASHBOARD PROPS:
692
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
693
+ /**
694
+ * @uiName Active tax form badge label
695
+ * @uiGroup Dashboard Properties
696
+ */
697
+ this.dashboard_statusTextActive = "Active";
698
+ /**
699
+ * @uiName Invalid tax form badge label
700
+ * @uiGroup Dashboard Properties
701
+ */
702
+ this.dashboard_statusTextNotActive = "Invalid Tax Form";
703
+ /**
704
+ * Displayed when the participant submitted their form but it is awaiting review.
705
+ *
706
+ * @uiName Not verified tax form badge label
707
+ * @uiGroup Dashboard Properties
708
+ */
709
+ this.dashboard_statusTextNotVerified = "Not Verified";
710
+ /**
711
+ * Additional text displayed next to the tax form's status badge
712
+ *
713
+ * @uiName Active W-9 description
714
+ * @uiGroup Dashboard Properties
715
+ */
716
+ this.dashboard_badgeTextSubmittedOn = "Submitted on {dateSubmitted}.";
717
+ /**
718
+ * Additional text displayed next to the tax form's status badge.
719
+ *
720
+ * @uiName Active W-8 description
721
+ * @uiGroup Dashboard Properties
722
+ */
723
+ this.dashboard_badgeTextSubmittedOnW8 = "Submitted on {dateSubmitted}. Valid for three years after submission.";
724
+ /**
725
+ * Additional text displayed next to the tax form's status badge.
726
+ *
727
+ * @uiName Tax form in review description
728
+ * @uiGroup Dashboard Properties
729
+ */
730
+ this.dashboard_badgeTextAwaitingReview = "Awaiting review. Submitted on {dateSubmitted}.";
731
+ /**
732
+ * Part of the alert displayed at the top of the page.
733
+ *
734
+ * @uiName Inactive W-9 error message title
735
+ * @uiGroup Dashboard Properties
736
+ * @uiWidget textArea
737
+ */
738
+ this.dashboard_taxAlertHeaderNotActiveW9 = "Your W9 tax form has personal information that doesn’t match your profile";
739
+ /**
740
+ * Part of the alert displayed at the top of the page.
741
+ *
742
+ * @uiName Inactive W-8 error message title
743
+ * @uiGroup Dashboard Properties
744
+ * @uiWidget textArea
745
+ */
746
+ this.dashboard_taxAlertHeaderNotActiveW8 = "{documentType} tax form is invalid";
747
+ /**
748
+ * Part of the alert displayed at the top of the page.
749
+ *
750
+ * @uiName Inactive W-9 error message description
751
+ * @uiGroup Dashboard Properties
752
+ * @uiWidget textArea
753
+ */
754
+ this.dashboard_taxAlertNotActiveMessageW9 = "Please resubmit a new {documentType} form.";
755
+ /**
756
+ * Part of the alert displayed at the top of the page.
757
+ *
758
+ * @uiName Inactive W-8 error message description
759
+ * @uiGroup Dashboard Properties
760
+ */
761
+ 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.";
762
+ /**
763
+ * Additional text displayed next to the tax form's status badge.
764
+ *
765
+ * @uiName Invalid tax form description
766
+ * @uiGroup Dashboard Properties
767
+ * @uiWidget textArea
768
+ */
769
+ this.dashboard_invalidForm = "Make sure your information is correct and submit new form.";
770
+ /**
771
+ * @uiName Payout information section header
772
+ * @uiGroup Dashboard Properties
773
+ */
774
+ this.dashboard_bankingInformationSectionHeader = "Payout Information";
775
+ /**
776
+ * @uiName Tax document section header
777
+ * @uiGroup Dashboard Properties
778
+ */
779
+ this.dashboard_taxDocumentSectionHeader = "Tax documents";
780
+ /**
781
+ * Displayed under the tax document section header.
782
+ *
783
+ * @uiName Tax documents section description
784
+ * @uiGroup Dashboard Properties
785
+ */
786
+ this.dashboard_taxDocumentSectionSubHeader = "{documentType} tax form";
787
+ /**
788
+ * No other statuses or badges will be displayed in the tax form section in this case.
789
+ *
790
+ * @uiName Tax form not required text
791
+ * @uiGroup Dashboard Properties
792
+ * @uiWidget textArea
793
+ */
794
+ 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.";
795
+ /**
796
+ *
797
+ * @uiName Indirect tax section header
798
+ * @uiGroup Dashboard Properties
799
+ */
800
+ this.dashboard_indirectTaxInfoSectionHeader = "Indirect tax";
801
+ /**
802
+ * If the participant is registered for indirect tax in Canada, display the province they’re registered in.
803
+ *
804
+ * @uiName Canadian province of indirect tax
805
+ * @uiGroup Dashboard Properties
806
+ */
807
+ this.dashboard_indirectTaxInfoCanada = "Registered in {province}, {country}";
808
+ /**
809
+ * If the participant is registered for indirect tax, display the country they’re registered in.
810
+ *
811
+ * @uiName Indirect tax country
812
+ * @uiGroup Dashboard Properties
813
+ */
814
+ this.dashboard_indirectTaxInfoOtherCountry = "Registered in {country}";
815
+ /**
816
+ * If the participant is registered for indirect tax in Spain, display the region they’re registered in.
817
+ *
818
+ * @uiName Spanish region of indirect tax
819
+ * @uiGroup Dashboard Properties
820
+ */
821
+ this.dashboard_indirectTaxInfoSpain = "Registered in {country}, {subRegion}";
822
+ /**
823
+ * @uiName Indirect tax tooltip
824
+ * @uiGroup Dashboard Properties
825
+ * @uiWidget textArea
826
+ */
827
+ this.dashboard_indirectTaxTooltipSupport = "To make changes to your indirect tax information, please contact our {supportLink}.";
828
+ /**
829
+ * Displayed to participants who have submitted their indirect tax information.
830
+ *
831
+ * @uiName Indirect tax details
832
+ * @uiGroup Dashboard Properties
833
+ */
834
+ this.dashboard_indirectTaxDetails = "{indirectTaxType} number: {indirectTaxNumber}";
835
+ /**
836
+ * @uiName Submit new tax form button label
837
+ * @uiGroup Dashboard Properties
838
+ */
839
+ this.dashboard_newFormButton = "Submit new form";
840
+ /**
841
+ * @uiName Edit payment info button label
842
+ * @uiGroup Dashboard Properties
843
+ */
844
+ this.dashboard_editPaymentInformationButton = "Edit Payout Information";
845
+ /**
846
+ * @uiName Not registered for indirect tax text
847
+ * @uiGroup Dashboard Properties
848
+ * @uiWidget textArea
849
+ */
850
+ 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.";
851
+ /**
852
+ * Displayed to participants registered in Quebec, Canada.
853
+ * @uiName QST indirect tax details
854
+ * @uiGroup Dashboard Properties
855
+ */
856
+ this.dashboard_qstNumber = "QST number: {qstNumber}";
857
+ /**
858
+ * @uiName Spain sub-region indirect tax number
859
+ * @uiGroup Dashboard Properties
860
+ */
861
+ this.dashboard_subRegionTaxNumber = "Income tax number: {subRegionTaxNumber}";
862
+ /**
863
+ * @uiName Payout status badge
864
+ * @uiGroup Dashboard Properties
865
+ */
866
+ this.dashboard_statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
867
+ /**
868
+ * Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
869
+ * @uiName Payout schedule by threshold text
870
+ * @uiGroup Dashboard Properties
871
+ */
872
+ this.dashboard_thresholdPayoutText = "Next payout occurs when balance is {thresholdBalance}";
873
+ /**
874
+ * Shown before the participant’s bank account information.
875
+ * @uiName Bank account field label
876
+ * @uiGroup Dashboard Properties
877
+ */
878
+ this.dashboard_accountText = "Account";
879
+ /**
880
+ * Part of the Invoice table displayed at the bottom of the page.
881
+ * @uiName Invoice number column title
882
+ * @uiGroup Dashboard Properties
883
+ */
884
+ this.dashboard_invoiceColumnTitle = "Invoice";
885
+ /**
886
+ * Part of the Invoice table displayed at the bottom of the page.
887
+ * @uiName Date column title
888
+ * @uiGroup Dashboard Properties
889
+ */
890
+ this.dashboard_dateColumnTitle = "Date";
891
+ /**
892
+ * Part of the Invoice table displayed at the bottom of the page.
893
+ * @uiName Earnings column title
894
+ * @uiGroup Dashboard Properties
895
+ */
896
+ this.dashboard_earningsColumnTitle = "Earnings";
897
+ /**
898
+ * Part of the Invoice table displayed at the bottom of the page.
899
+ * @uiName Indirect tax column title
900
+ * @uiGroup Dashboard Properties
901
+ */
902
+ this.dashboard_indirectTaxColumnTitle = "Indirect tax";
903
+ /**
904
+ * Displayed under the payout details card.
905
+ * @uiName Payout from impact text
906
+ * @uiGroup Dashboard Properties
907
+ * @uiWidget textArea
908
+ */
909
+ this.dashboard_payoutFromImpact = "Your balance may take up to 24 hours to update. Payouts will be sent from our referral program provider, impact.com.";
910
+ /**
911
+ * Part of the Invoice table displayed at the bottom of the page.
912
+ * @uiName Earnings after tax column title
913
+ * @uiGroup Dashboard Properties
914
+ */
915
+ this.dashboard_earningsAfterTaxColumnTitle = "Earnings after tax";
916
+ /**
917
+ * Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
918
+ * @uiName Payout error message title
919
+ * @uiGroup Dashboard Properties
920
+ * @uiWidget textArea
921
+ */
922
+ this.dashboard_payoutHoldAlertHeader = "Your payout is on hold";
923
+ /**
924
+ * Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
925
+ * @uiName Payout error message description
926
+ * @uiGroup Dashboard Properties
927
+ * @uiWidget textArea
928
+ */
929
+ this.dashboard_payoutHoldAlertDescription = "Please contact our {supportLink} or check your inbox for an email from our referral program provider, impact.com.";
930
+ /**
931
+ * Text displayed for existing publishers that do not have saved banking information.
932
+ * @uiName Payout missing information subtext
933
+ * @uiGroup Dashboard Properties
934
+ */
935
+ this.dashboard_payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
936
+ /**
937
+ * @uiName Invoice table description
938
+ * @uiGroup Dashboard Properties
939
+ */
940
+ this.dashboard_invoiceDescription = "View and download your invoices to report your earnings and stay tax compliant.";
941
+ /**
942
+ * @uiName Invoice table previous page button label
943
+ * @uiGroup Dashboard Properties
944
+ */
945
+ this.dashboard_invoicePrevLabel = "Prev";
946
+ /**
947
+ * @uiName Invoice table next page button label
948
+ * @uiGroup Dashboard Properties
949
+ */
950
+ this.dashboard_invoiceMoreLabel = "Next";
951
+ /**
952
+ * @uiName Invoice table title
953
+ * @uiGroup Dashboard Properties
954
+ */
955
+ this.dashboard_invoiceHeader = "Invoices";
956
+ /**
957
+ * @uiName Empty invoice table header
958
+ * @uiGroup Dashboard Properties
959
+ */
960
+ this.dashboard_invoiceEmptyStateHeader = "View your invoice details";
961
+ /**
962
+ * @uiName Empty invoice table description
963
+ * @uiGroup Dashboard Properties
964
+ */
965
+ this.dashboard_invoiceEmptyStateText = "Refer a friend to view the status of your invoices and rewards earned";
966
+ /**
967
+ * @uiName Replace tax form modal header
968
+ * @uiGroup Dashboard Properties
969
+ */
970
+ this.dashboard_replaceTaxFormModalHeader = "Replace existing tax form";
971
+ /**
972
+ * @uiName Replace tax form modal body text
973
+ * @uiGroup Dashboard Properties
974
+ * @uiWidget textArea
975
+ */
976
+ 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.";
977
+ /**
978
+ * Part of the alert displayed at the top of the page when the user needs to verify their identity.
979
+ * @uiName Verification required alert message title
980
+ * @uiGroup Dashboard Properties
981
+ * @uiWidget textArea
982
+ */
983
+ this.dashboard_verificationRequiredHeader = "Verify your identity";
984
+ /**
985
+ * Part of the alert displayed at the top of the page when the user needs to verify their identity
986
+ * @uiName Verification required alert message description
987
+ * @uiGroup Dashboard Properties
988
+ * @uiWidget textArea
989
+ */
990
+ 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}.";
991
+ /**
992
+ * @uiName Verification required internal alert header
993
+ * @uiGroup Dashboard Properties
994
+ * @uiWidget textArea
995
+ */
996
+ this.dashboard_verificationRequiredInternalHeader = "Identity Verification in Progress";
997
+ /**
998
+ * @uiName Verification required internal alert description
999
+ * @uiGroup Dashboard Properties
1000
+ * @uiWidget textArea
1001
+ */
1002
+ 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}.";
1003
+ /**
1004
+ * @uiName Verification review internal alert header
1005
+ * @uiGroup Dashboard Properties
1006
+ * @uiWidget textArea
1007
+ */
1008
+ this.dashboard_verificationReviewInternalHeader = "Identity Verification Under Review";
1009
+ /**
1010
+ * @uiName Verification review internal alert description
1011
+ * @uiGroup Dashboard Properties
1012
+ * @uiWidget textArea
1013
+ */
1014
+ 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}.";
1015
+ /**
1016
+ * @uiName Verification failed internal alert header
1017
+ * @uiGroup Dashboard Properties
1018
+ * @uiWidget textArea
1019
+ */
1020
+ this.dashboard_verificationFailedInternalHeader = "Identity Verification Unsuccessful";
1021
+ /**
1022
+ * @uiName Verification failed internal alert description
1023
+ * @uiGroup Dashboard Properties
1024
+ * @uiWidget textArea
1025
+ */
1026
+ 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}.";
1027
+ /**
1028
+ * Part of the alert displayed at the top of the page when the user needs to verify their identity.
1029
+ * @uiName Verification required alert button text
1030
+ * @uiGroup Dashboard Properties
1031
+ * @uiWidget textArea
1032
+ */
1033
+ this.dashboard_verificationRequiredButtonText = "Start Verification";
1034
+ /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1035
+ GENERAL PROPS:
1036
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
1037
+ /**
1038
+ * @uiName Setup progress
1039
+ * @uiGroup General Form Properties
1040
+ */
1041
+ this.formStep = "Step {step} of {count}";
1042
+ /**
1043
+ * Part of the alert displayed at the top of the page.
1044
+ * @uiName Form submission error message title
1045
+ * @uiGroup General Form Properties
1046
+ * @uiWidget textArea
1047
+ */
1048
+ this.generalErrorTitle = "There was a problem submitting your information";
1049
+ /**
1050
+ * Part of the alert displayed at the top of the page.
1051
+ * @uiName Form submission error message description
1052
+ * @uiGroup General Form Properties
1053
+ * @uiWidget textArea
1054
+ */
1055
+ this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact our {supportLink}.";
1056
+ /**
1057
+ * Displayed under a field that is missing required information.
1058
+ * @uiName Empty form field error message
1059
+ * @uiGroup General Form Properties
1060
+ */
1061
+ this.fieldRequiredError = "{fieldName} is required";
1062
+ /**
1063
+ * Displayed under a field that includes invalid characters (non-ASCII).
1064
+ * @uiName Invalid character error message
1065
+ * @uiGroup General Form Properties
1066
+ */
1067
+ this.invalidCharacterError = "{fieldName} includes characters that aren't supported.";
1068
+ /**
1069
+ * Displayed under a field when it has an invalid entry.
1070
+ * @uiName Form field error message
1071
+ * @uiGroup General Form Properties
1072
+ */
1073
+ this.fieldInvalidError = "{fieldName} is invalid";
1074
+ /**
1075
+ * @uiName Continue button label
1076
+ * @uiGroup General Form Properties
1077
+ */
1078
+ this.continueButton = "Continue";
1079
+ /**
1080
+ * @uiName Back button label
1081
+ * @uiGroup General Form Properties
1082
+ */
1083
+ this.backButton = "Back";
1084
+ /**
1085
+ * @uiName Cancel button label
1086
+ * @uiGroup General Form Properties
1087
+ */
1088
+ this.cancelButton = "Cancel";
1089
+ /**
1090
+ * Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com.
1091
+ * @uiName Participant is a partner alert title
1092
+ * @uiGroup General Form Properties
1093
+ * @uiWidget textArea
1094
+ */
1095
+ this.isPartnerAlertHeader = "An account with this email already exists with our referral program provider, impact.com";
1096
+ /**
1097
+ * Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com.
1098
+ * @uiName Participant is a partner alert description
1099
+ * @uiGroup General Form Properties
1100
+ * @uiWidget textArea
1101
+ */
1102
+ 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.";
1103
+ /**
1104
+ * Placeholder text displayed in the country search dropdown
1105
+ * @uiName Country field placeholder text
1106
+ * @uiGroup General Form Properties
1107
+ */
1108
+ this.searchForCountryText = "Search for country..";
1109
+ /**
1110
+ * Part of the alert displayed at the top of the page.
1111
+ * @uiName Page load error message title
1112
+ * @uiGroup General Form Properties
1113
+ * @uiWidget textArea
1114
+ */
1115
+ this.loadingErrorAlertHeader = "There was a problem loading your form";
1116
+ /**
1117
+ * Part of the alert displayed at the top of the page.
1118
+ * @uiName Page load error message description
1119
+ * @uiGroup General Form Properties
1120
+ * @uiWidget textArea
1121
+ */
1122
+ this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact our {supportLink}.";
1123
+ /**
1124
+ * Displayed at the top of the page on all set up steps.
1125
+ * @uiName Page description
1126
+ * @uiGroup General Form Properties
1127
+ */
1128
+ this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
1129
+ /**
1130
+ * Link text for contacting support team
1131
+ * @uiName Suport link text
1132
+ * @uiGroup General Form Properties
1133
+ */
1134
+ this.supportLink = "support team";
1135
+ /**
1136
+ * @uiName Monolith States
1137
+ * @componentState { "title": "Step 1", "props": { "step": "/1" }, "dependencies": ["sqm-user-info-form"] }
1138
+ * @componentState { "title": "Step 2", "props": { "step": "/2" }, "dependencies": ["sqm-indirect-tax-form"] }
1139
+ * @componentState { "title": "Step 3", "props": { "step": "/3" }, "dependencies": ["sqm-docusign-form"] }
1140
+ * @componentState { "title": "Step 4", "props": { "step": "/4" }, "dependencies": ["sqm-banking-info-form"] }
1141
+ * @componentState { "title": "Dashboard", "props": { "step": "/dashboard" }, "dependencies": ["sqm-tax-and-cash-dashboard"] }
1142
+ */
1143
+ this.stateController = "{}";
1144
+ h(this);
1145
+ }
1146
+ disconnectedCallback() { }
1147
+ // this field is required prop
1148
+ getGeneralStepTextProps(prefix) {
1149
+ const props = getProps(this);
1150
+ return {
1151
+ ...extractProps(props, prefix),
1152
+ generalErrorTitle: props.generalErrorTitle,
1153
+ generalErrorDescription: props.generalErrorDescription,
1154
+ fieldRequiredError: props.fieldRequiredError,
1155
+ invalidCharacterError: props.invalidCharacterError,
1156
+ fieldInvalidError: props.fieldInvalidError,
1157
+ continueButton: props.continueButton,
1158
+ backButton: props.backButton,
1159
+ cancelButton: props.cancelButton,
1160
+ isPartnerAlertHeader: props.isPartnerAlertHeader,
1161
+ isPartnerAlertDescription: props.isPartnerAlertDescription,
1162
+ loadingErrorAlertHeader: props.loadingErrorAlertHeader,
1163
+ loadingErrorAlertDescription: props.loadingErrorAlertDescription,
1164
+ taxAndPayoutsDescription: props.taxAndPayoutsDescription,
1165
+ searchForCountryText: props.searchForCountryText,
1166
+ formStep: props.formStep,
1167
+ supportLink: props.supportLink,
1168
+ };
1169
+ }
1170
+ render() {
1171
+ var _a, _b;
1172
+ const props = isDemo() ? useDemoTaxAndCash(this) : useTaxAndCash();
1173
+ // @ts-ignore
1174
+ if ((_a = this.demoData) === null || _a === void 0 ? void 0 : _a.showTextProps) {
1175
+ const textProps = getProps(this);
1176
+ return (h$1("div", null, (_b = Object.keys(textProps)) === null || _b === void 0 ? void 0 : _b.map((prop) => {
1177
+ if (prop === "demoData")
1178
+ return;
1179
+ return (h$1("div", null, h$1("b", null, prop, ":"), " ", this[prop], h$1("hr", null)));
1180
+ })));
1181
+ }
1182
+ const getStep = () => {
1183
+ switch (props.step) {
1184
+ case "/1":
1185
+ return (h$1("sqm-user-info-form", Object.assign({}, this.getGeneralStepTextProps("step1_"), extractProps(props, "sqm-user-info-form_"))));
1186
+ case "/2":
1187
+ return (h$1("sqm-indirect-tax-form", Object.assign({}, this.getGeneralStepTextProps("step2_"))));
1188
+ case "/3":
1189
+ return (h$1("sqm-docusign-form", Object.assign({}, this.getGeneralStepTextProps("step3_"))));
1190
+ case "/4":
1191
+ return (h$1("sqm-banking-info-form", Object.assign({}, this.getGeneralStepTextProps("step4_"))));
1192
+ case "/dashboard":
1193
+ return (h$1("sqm-tax-and-cash-dashboard", Object.assign({}, this.getGeneralStepTextProps("dashboard_"), extractProps(props, "sqm-tax-and-cash-dashboard_"))));
1194
+ case "/error":
1195
+ return (h$1(ErrorView, { loadingErrorAlertHeader: this.loadingErrorAlertHeader, loadingErrorAlertDescription: this.loadingErrorAlertDescription }));
1196
+ }
1197
+ };
1198
+ return getStep() || h$1(LoadingView, null);
1199
+ }
1200
+ };
1201
+ function useDemoTaxAndCash(props) {
1202
+ const [step, setStep] = In({
1203
+ namespace: TAX_CONTEXT_NAMESPACE,
1204
+ initialValue: "/1",
1205
+ });
1206
+ console.log("PROPS", props);
1207
+ const states = parseStates(props.stateController);
1208
+ const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-tax-and-cash"
1209
+ ? { ...prev, ...states[key] }
1210
+ : { ...prev, [`${key}_stateController`]: states[key] }, {});
1211
+ return cjs({
1212
+ step,
1213
+ setStep,
1214
+ }, props.demoData || formatted || {}, { arrayMerge: (_, a) => a });
1215
+ }
1216
+
1217
+ export { TaxAndCashMonolith as sqm_tax_and_cash };