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