@saasquatch/mint-components 1.15.0-45 → 1.15.0-46

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 (270) hide show
  1. package/dist/cjs/{ShadowViewAddon-bebbd4d0.js → ShadowViewAddon-85d2eed4.js} +1056 -1056
  2. package/dist/cjs/{extractProps-e9c55ba8.js → extractProps-fd93ba62.js} +0 -14
  3. package/dist/cjs/{global-242743b1.js → global-2298fc8b.js} +58 -73
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/cjs/mint-components.cjs.js +2 -2
  6. package/dist/cjs/{sqm-banking-info-form_10.cjs.entry.js → sqm-banking-info-form_17.cjs.entry.js} +1902 -213
  7. package/dist/cjs/sqm-big-stat_42.cjs.entry.js +3 -3
  8. package/dist/cjs/sqm-email-verification.cjs.entry.js +1 -1
  9. package/dist/cjs/sqm-empty_4.cjs.entry.js +1 -1
  10. package/dist/cjs/sqm-invoice-table-view-90b2433f.js +2038 -0
  11. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +1 -1
  12. package/dist/cjs/sqm-pagination_3.cjs.entry.js +1 -1
  13. package/dist/cjs/{sqm-portal-email-verification-view-38bfdda4.js → sqm-portal-email-verification-view-0a93a148.js} +1 -1
  14. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +2 -2
  15. package/dist/cjs/{sqm-portal-profile-view-036d355e.js → sqm-portal-profile-view-44a83439.js} +1 -1
  16. package/dist/cjs/sqm-portal-profile.cjs.entry.js +2 -2
  17. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +1 -1
  18. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +5 -3
  19. package/dist/cjs/sqm-stencilbook.cjs.entry.js +13992 -15287
  20. package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +3 -11
  21. package/dist/cjs/sqm-widget-verification.cjs.entry.js +7 -17
  22. package/dist/cjs/{usePayoutStatus-3cca69e5.js → usePayoutStatus-f26f0467.js} +5 -8
  23. package/dist/collection/components/sqm-instant-access-registration/sqm-instant-access-registration.js +1 -1
  24. package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-data-column.js +1 -1
  25. package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-date-column.js +2 -3
  26. package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-download-column.js +1 -2
  27. package/dist/collection/components/sqm-invoice-table/sqm-invoice-table.js +1 -1
  28. package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +3 -3
  29. package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +2 -2
  30. package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +4 -6
  31. package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-status-cell.js +2 -2
  32. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-column.js +1 -1
  33. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-date-column.js +2 -2
  34. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.js +2 -2
  35. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-status-column.js +2 -2
  36. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-user-column.js +2 -2
  37. package/dist/collection/components/sqm-referral-table/sqm-referral-table.js +1 -2
  38. package/dist/collection/components/sqm-referred-registration/sqm-referred-registration.js +1 -1
  39. package/dist/collection/components/sqm-rewards-table/RewardsTableCell.stories.js +1 -1
  40. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.js +3 -5
  41. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.js +3 -5
  42. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.js +9 -11
  43. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.js +2 -2
  44. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.js +3 -3
  45. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.js +2 -2
  46. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.js +3 -3
  47. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.js +2 -2
  48. package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +1 -1
  49. package/dist/collection/components/sqm-share-button/sqm-share-button.js +3 -3
  50. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +78 -78
  51. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.js +2 -2
  52. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-controller.js +5 -39
  53. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +7 -42
  54. package/dist/collection/components/tax-and-cash/TaxForm.stories.js +8 -12
  55. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +1 -1
  56. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +2 -2
  57. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +1 -1
  58. package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +1 -1
  59. package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +1 -1
  60. package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +2 -2
  61. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +2 -2
  62. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +2 -2
  63. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +2 -2
  64. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js +1 -26
  65. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/usePayoutDetailsCard.js +2 -2
  66. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +5 -8
  67. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +28 -77
  68. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +1 -1
  69. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +4 -19
  70. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +3 -3
  71. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +5 -6
  72. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +10 -10
  73. package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +3 -3
  74. package/dist/collection/global/styles.js +58 -73
  75. package/dist/collection/global/styles.ts +40 -48
  76. package/dist/esm/{ShadowViewAddon-b439f9c5.js → ShadowViewAddon-d59ef625.js} +1059 -1059
  77. package/dist/esm/{extractProps-54064fb0.js → extractProps-ae1afbb3.js} +1 -14
  78. package/dist/esm/{global-f33bb903.js → global-2da1dcec.js} +58 -73
  79. package/dist/esm/loader.js +2 -2
  80. package/dist/esm/mint-components.js +2 -2
  81. package/dist/esm/{sqm-banking-info-form_10.entry.js → sqm-banking-info-form_17.entry.js} +1819 -137
  82. package/dist/esm/sqm-big-stat_42.entry.js +3 -3
  83. package/dist/esm/sqm-email-verification.entry.js +1 -1
  84. package/dist/esm/sqm-empty_4.entry.js +1 -1
  85. package/dist/esm/sqm-invoice-table-view-df370e4a.js +2022 -0
  86. package/dist/esm/sqm-leaderboard-rank.entry.js +1 -1
  87. package/dist/esm/sqm-pagination_3.entry.js +1 -1
  88. package/dist/esm/{sqm-portal-email-verification-view-e8661ca9.js → sqm-portal-email-verification-view-e38ec8cc.js} +1 -1
  89. package/dist/esm/sqm-portal-email-verification.entry.js +2 -2
  90. package/dist/esm/{sqm-portal-profile-view-70e1a345.js → sqm-portal-profile-view-e594d1ee.js} +1 -1
  91. package/dist/esm/sqm-portal-profile.entry.js +2 -2
  92. package/dist/esm/sqm-referral-table_11.entry.js +1 -1
  93. package/dist/esm/sqm-rewards-table_9.entry.js +5 -3
  94. package/dist/esm/sqm-stencilbook.entry.js +14017 -15312
  95. package/dist/esm/sqm-widget-verification-controller.entry.js +4 -12
  96. package/dist/esm/sqm-widget-verification.entry.js +7 -17
  97. package/dist/esm/{usePayoutStatus-e92a6e43.js → usePayoutStatus-3768c8c3.js} +5 -8
  98. package/dist/esm-es5/ShadowViewAddon-d59ef625.js +1 -0
  99. package/dist/esm-es5/extractProps-ae1afbb3.js +1 -0
  100. package/dist/esm-es5/{global-f33bb903.js → global-2da1dcec.js} +4 -4
  101. package/dist/esm-es5/loader.js +1 -1
  102. package/dist/esm-es5/mint-components.js +1 -1
  103. package/dist/esm-es5/sqm-banking-info-form_17.entry.js +1 -0
  104. package/dist/esm-es5/sqm-big-stat_42.entry.js +1 -1
  105. package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
  106. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  107. package/dist/esm-es5/sqm-invoice-table-view-df370e4a.js +1 -0
  108. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  109. package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
  110. package/dist/esm-es5/{sqm-portal-email-verification-view-e8661ca9.js → sqm-portal-email-verification-view-e38ec8cc.js} +1 -1
  111. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  112. package/dist/esm-es5/{sqm-portal-profile-view-70e1a345.js → sqm-portal-profile-view-e594d1ee.js} +1 -1
  113. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  114. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  115. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  116. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  117. package/dist/esm-es5/sqm-widget-verification-controller.entry.js +1 -1
  118. package/dist/esm-es5/sqm-widget-verification.entry.js +1 -1
  119. package/dist/esm-es5/{usePayoutStatus-e92a6e43.js → usePayoutStatus-3768c8c3.js} +2 -2
  120. package/dist/mint-components/global/styles.ts +40 -48
  121. package/dist/mint-components/mint-components.esm.js +1 -1
  122. package/dist/mint-components/mint-components.js +1 -1
  123. package/dist/mint-components/{p-b55e454d.entry.js → p-0019d57c.entry.js} +1 -1
  124. package/dist/mint-components/p-04cc08e7.system.entry.js +1 -0
  125. package/dist/mint-components/p-097a255f.js +1 -0
  126. package/dist/mint-components/p-15ad1e97.entry.js +16 -0
  127. package/dist/mint-components/p-16c55bb4.entry.js +205 -0
  128. package/dist/mint-components/{p-95ff58b2.system.entry.js → p-232996b5.system.entry.js} +1 -1
  129. package/dist/mint-components/p-26468242.js +1 -0
  130. package/dist/mint-components/{p-283848df.system.entry.js → p-28aed7f7.system.entry.js} +1 -1
  131. package/dist/mint-components/p-31b8f0ca.system.js +1 -0
  132. package/dist/mint-components/{p-a341ce23.js → p-3466bfaa.js} +2 -2
  133. package/dist/mint-components/{p-227aa136.entry.js → p-4ce7e3b1.entry.js} +1 -1
  134. package/dist/mint-components/{p-2d730bef.system.entry.js → p-5125ec72.system.entry.js} +1 -1
  135. package/dist/mint-components/{p-a44b7a52.system.js → p-5efed40f.system.js} +2 -2
  136. package/dist/mint-components/p-62d924e6.system.entry.js +1 -0
  137. package/dist/mint-components/p-6bcac9ed.system.entry.js +1 -0
  138. package/dist/mint-components/{p-44435060.entry.js → p-73069eba.entry.js} +1 -1
  139. package/dist/mint-components/{p-1f8d3b1a.entry.js → p-761ee9ea.entry.js} +2 -2
  140. package/dist/mint-components/{p-7cbbca72.entry.js → p-7953c3da.entry.js} +1 -1
  141. package/dist/mint-components/{p-9d48280a.js → p-7aba33e1.js} +1 -1
  142. package/dist/mint-components/{p-5a48bf9d.system.js → p-7ae3ec51.system.js} +1 -1
  143. package/dist/mint-components/p-7b97c0f4.system.entry.js +1 -0
  144. package/dist/mint-components/{p-c7878ec7.system.js → p-7daa731c.system.js} +1 -1
  145. package/dist/mint-components/{p-28e4b275.system.entry.js → p-7dac5a58.system.entry.js} +1 -1
  146. package/dist/mint-components/{p-e8422f7b.entry.js → p-836d3ec7.entry.js} +2 -2
  147. package/dist/mint-components/{p-5dd09973.system.entry.js → p-9fcc7901.system.entry.js} +1 -1
  148. package/dist/mint-components/{p-059ad130.system.entry.js → p-a121e5a1.system.entry.js} +1 -1
  149. package/dist/mint-components/p-a8645c1b.system.js +1 -0
  150. package/dist/mint-components/{p-a348f9b9.js → p-b090bbd2.js} +1 -1
  151. package/dist/mint-components/p-bfe08ca4.system.js +1 -0
  152. package/dist/mint-components/p-c53bd5bd.entry.js +9 -0
  153. package/dist/mint-components/{p-3bdccbc9.system.entry.js → p-cc5f9775.system.entry.js} +1 -1
  154. package/dist/mint-components/{p-10849094.system.js → p-d49373b7.system.js} +1 -1
  155. package/dist/mint-components/{p-6d23f01a.entry.js → p-d4e49019.entry.js} +2 -2
  156. package/dist/mint-components/{p-7aef9c53.entry.js → p-e1e96de9.entry.js} +1 -1
  157. package/dist/mint-components/p-e53c3c6e.system.js +1 -0
  158. package/dist/mint-components/{p-538fe844.system.entry.js → p-e70d8201.system.entry.js} +1 -1
  159. package/dist/mint-components/{p-c2e3f0f0.entry.js → p-f2c48bc8.entry.js} +1 -1
  160. package/dist/mint-components/p-f3558ef0.js +394 -0
  161. package/dist/mint-components/{p-24d6cfcd.js → p-f3a52eb6.js} +1 -1
  162. package/dist/mint-components/p-f66ccd51.entry.js +1 -0
  163. package/dist/mint-components/{p-4cfd562e.system.entry.js → p-fad1752b.system.entry.js} +1 -1
  164. package/dist/types/components/sqm-instant-access-registration/sqm-instant-access-registration.d.ts +1 -1
  165. package/dist/types/components/sqm-invoice-table/columns/InvoiceTableColumn.d.ts +0 -1
  166. package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-data-column.d.ts +20 -0
  167. package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-date-column.d.ts +1 -2
  168. package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-download-column.d.ts +0 -1
  169. package/dist/types/components/sqm-invoice-table/mockInvoiceData.d.ts +0 -1
  170. package/dist/types/components/sqm-invoice-table/sqm-invoice-table.d.ts +60 -0
  171. package/dist/types/components/sqm-leaderboard/sqm-leaderboard.d.ts +3 -3
  172. package/dist/types/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.d.ts +0 -1
  173. package/dist/types/components/sqm-referral-table/cells/sqm-referral-table-status-cell.d.ts +7 -0
  174. package/dist/types/components/sqm-referral-table/columns/ReferralTableColumn.d.ts +0 -1
  175. package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-column.d.ts +16 -0
  176. package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-date-column.d.ts +43 -0
  177. package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.d.ts +71 -0
  178. package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-status-column.d.ts +43 -0
  179. package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-user-column.d.ts +31 -0
  180. package/dist/types/components/sqm-referral-table/sqm-referral-table.d.ts +0 -1
  181. package/dist/types/components/sqm-referred-registration/sqm-referred-registration.d.ts +1 -1
  182. package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.d.ts +8 -0
  183. package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.d.ts +11 -0
  184. package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.d.ts +24 -0
  185. package/dist/types/components/sqm-rewards-table/columns/RewardTableColumn.d.ts +0 -1
  186. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.d.ts +31 -0
  187. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.d.ts +20 -0
  188. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.d.ts +32 -0
  189. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.d.ts +50 -0
  190. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.d.ts +104 -0
  191. package/dist/types/components/sqm-rewards-table/mockRewardData.d.ts +0 -1
  192. package/dist/types/components/sqm-rewards-table/mockTaxData.d.ts +0 -1
  193. package/dist/types/components/sqm-rewards-table/sqm-rewards-table.d.ts +48 -0
  194. package/dist/types/components/sqm-share-button/sqm-share-button.d.ts +3 -3
  195. package/dist/types/components/sqm-stencilbook/Themes.d.ts +16 -0
  196. package/dist/types/components/sqm-widget-verification/sqm-widget-verification-controller.d.ts +0 -5
  197. package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +1 -6
  198. package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +1 -0
  199. package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.d.ts +1 -1
  200. package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +2 -2
  201. package/dist/types/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.d.ts +0 -4
  202. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +1 -1
  203. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +4 -10
  204. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.d.ts +1 -1
  205. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +1 -1
  206. package/dist/types/components/tax-and-cash/sqm-user-info-form/small-views/IndirectTaxDetailsView.d.ts +1 -1
  207. package/dist/types/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.d.ts +1 -1
  208. package/dist/types/components/tax-and-cash/utils.d.ts +1 -1
  209. package/dist/types/components.d.ts +22 -66
  210. package/dist/types/global/android.d.ts +7 -0
  211. package/dist/types/global/demo.d.ts +2 -0
  212. package/dist/types/global/styles.d.ts +1 -2
  213. package/dist/types/saasquatch.d.ts +50 -106
  214. package/dist/types/stories/features.d.ts +4 -0
  215. package/dist/types/stories/templates.d.ts +4 -0
  216. package/docs/docs.docx +0 -0
  217. package/docs/raisins.json +1 -1
  218. package/grapesjs/grapesjs.js +1 -1
  219. package/package.json +1 -2
  220. package/shoelace/assets/icons/twitter-x.svg +4 -0
  221. package/dist/cjs/IndirectTaxDetailsView-81f1ce92.js +0 -646
  222. package/dist/cjs/data-68a42a7b.js +0 -137
  223. package/dist/cjs/sqm-code-verification.cjs.entry.js +0 -342
  224. package/dist/cjs/sqm-invoice-table-data-cell_5.cjs.entry.js +0 -84
  225. package/dist/cjs/sqm-tax-and-cash.cjs.entry.js +0 -1220
  226. package/dist/cjs/utils-a6957c85.js +0 -105
  227. package/dist/collection/utils/parseStates.js +0 -12
  228. package/dist/esm/IndirectTaxDetailsView-89731480.js +0 -639
  229. package/dist/esm/data-ce8ed0ae.js +0 -121
  230. package/dist/esm/sqm-code-verification.entry.js +0 -338
  231. package/dist/esm/sqm-invoice-table-data-cell_5.entry.js +0 -76
  232. package/dist/esm/sqm-tax-and-cash.entry.js +0 -1216
  233. package/dist/esm/utils-79d81bca.js +0 -97
  234. package/dist/esm-es5/IndirectTaxDetailsView-89731480.js +0 -1
  235. package/dist/esm-es5/ShadowViewAddon-b439f9c5.js +0 -1
  236. package/dist/esm-es5/data-ce8ed0ae.js +0 -1
  237. package/dist/esm-es5/extractProps-54064fb0.js +0 -1
  238. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +0 -1
  239. package/dist/esm-es5/sqm-code-verification.entry.js +0 -1
  240. package/dist/esm-es5/sqm-invoice-table-data-cell_5.entry.js +0 -1
  241. package/dist/esm-es5/sqm-tax-and-cash.entry.js +0 -1
  242. package/dist/esm-es5/utils-79d81bca.js +0 -1
  243. package/dist/mint-components/p-0768fe1d.system.js +0 -1
  244. package/dist/mint-components/p-0797a946.js +0 -1
  245. package/dist/mint-components/p-169c8564.system.js +0 -1
  246. package/dist/mint-components/p-1e79befd.entry.js +0 -1
  247. package/dist/mint-components/p-2378a0dd.entry.js +0 -16
  248. package/dist/mint-components/p-3206d0a4.js +0 -103
  249. package/dist/mint-components/p-6a4582eb.system.entry.js +0 -1
  250. package/dist/mint-components/p-6f323a9f.entry.js +0 -11
  251. package/dist/mint-components/p-7274fe6e.js +0 -1
  252. package/dist/mint-components/p-7813a75a.js +0 -1
  253. package/dist/mint-components/p-7dc10820.system.js +0 -1
  254. package/dist/mint-components/p-8c126ccb.system.entry.js +0 -1
  255. package/dist/mint-components/p-901358ee.system.entry.js +0 -1
  256. package/dist/mint-components/p-9481740a.system.entry.js +0 -1
  257. package/dist/mint-components/p-a39c3535.system.entry.js +0 -1
  258. package/dist/mint-components/p-a86635aa.system.entry.js +0 -1
  259. package/dist/mint-components/p-ae0636bb.system.js +0 -1
  260. package/dist/mint-components/p-c25b0ff4.js +0 -394
  261. package/dist/mint-components/p-e228b351.system.js +0 -1
  262. package/dist/mint-components/p-e524056f.entry.js +0 -1
  263. package/dist/mint-components/p-e55aafe9.system.js +0 -1
  264. package/dist/mint-components/p-ee17ee0b.entry.js +0 -1
  265. package/dist/mint-components/p-f2ebbbe3.system.entry.js +0 -1
  266. package/dist/mint-components/p-fba00613.entry.js +0 -93
  267. package/dist/mint-components/p-fd2ee10c.entry.js +0 -9
  268. package/dist/types/utils/parseStates.d.ts +0 -1
  269. /package/dist/collection/components/tax-and-cash/{data.js → sqm-tax-and-cash/data.js} +0 -0
  270. /package/dist/types/components/tax-and-cash/{data.d.ts → sqm-tax-and-cash/data.d.ts} +0 -0
@@ -1,22 +1,142 @@
1
1
  import { h, r as registerInstance, c as Host, g as getElement } from './index-b3a06de8.js';
2
- import { m as useRef, k as useState, f as useEffect, n as h$1, u as useMemo, b as browser, j as useReducer } from './stencil-hooks.module-20ad2b5f.js';
3
- import { i as intl } from './global-f33bb903.js';
4
- import { d as dist, _, L, J, t as Pn, F as Fn, x as $n, $ as $e, i as isDemo, q as En, u as useCallback, R as Rn } from './index.module-d49ae5e7.js';
2
+ import { m as useRef, k as useState, f as useEffect, n as h$1, l, u as useMemo, b as browser, j as useReducer } from './stencil-hooks.module-20ad2b5f.js';
3
+ import { i as intl } from './global-2da1dcec.js';
4
+ import { d as dist, _, L, J, t as Pn, F as Fn, x as $n, $ as $e, i as isDemo, q as En, u as useCallback, R as Rn, M as Mn, I as In, S as Sn } from './index.module-d49ae5e7.js';
5
5
  import { j as jsonpointer } from './jsonpointer-388a7082.js';
6
6
  import { c as cjs } from './cjs-bdfb4486.js';
7
- import { g as getProps } from './utils-334c1e34.js';
7
+ import { g as getProps, l as luxonLocale } from './utils-334c1e34.js';
8
8
  import { c as createStyleSheet } from './JSS-67b5cff8.js';
9
- import './mixins-f750863a.js';
9
+ import { E as ErrorStyles } from './mixins-f750863a.js';
10
10
  import { G as GenericTableView } from './GenericTableView-dd9be3ea.js';
11
11
  import { u as useRerenderListener, a as useRequestRerender } from './re-render-789f9123.js';
12
12
  import { u as useChildElements } from './useChildElements-0ca9a015.js';
13
13
  import { l as luxon } from './luxon-793b7f13.js';
14
14
  import { g as generateUserError } from './useReferralTable-c1511d9d.js';
15
- import { a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, O as OtherRegionSlotView, I as InvoiceTableView, v as vatLabels, A as ADDRESS_REGIONS } from './IndirectTaxDetailsView-89731480.js';
16
- import { t as taxTypeToName, v as validTaxDocument, g as getCountryObj, L as LoadingView, f as formatErrorMessage, a as validateBillingField, o as objectIsFull } from './utils-79d81bca.js';
17
- import { i as FORM_STEPS, a as TAX_FORM_CONTEXT_NAMESPACE, S as SORTED_COUNTRIES_NAMESPACE, c as USER_QUERY_NAMESPACE, T as TAX_CONTEXT_NAMESPACE, F as FINANCE_NETWORK_SETTINGS_NAMESPACE, U as USER_FORM_CONTEXT_NAMESPACE, d as COUNTRIES_QUERY_NAMESPACE, C as CURRENCIES_NAMESPACE } from './data-ce8ed0ae.js';
18
- import { b as VERIFICATION_EVENT_KEY } from './keys-406491dc.js';
19
- import { T as TAX_FORM_UPDATED_EVENT_KEY, a as useVeriffApp, g as getStatus, V as VERIFF_COMPLETE_EVENT_KEY } from './usePayoutStatus-e92a6e43.js';
15
+ import { T as TextSpanView } from './sqm-text-span-view-4c17b8c9.js';
16
+ import { E as ErrorView } from './ErrorView-eaafd6f5.js';
17
+ import { t as taxTypeToName, v as validTaxDocument, a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, g as getCountryObj, O as OtherRegionSlotView, I as InvoiceTableView, L as LoadingView, c as vatLabels, G as GeneralLoadingView, f as formatErrorMessage, d as validateBillingField, o as objectIsFull, A as ADDRESS_REGIONS } from './sqm-invoice-table-view-df370e4a.js';
18
+ import { e as extractProps } from './extractProps-ae1afbb3.js';
19
+ import { b as VERIFICATION_EVENT_KEY, V as VERIFICATION_EMAIL_NAMESPACE, S as SHOW_CODE_NAMESPACE, a as VERIFICATION_PARENT_NAMESPACE } from './keys-406491dc.js';
20
+ import { T as TAX_FORM_UPDATED_EVENT_KEY, a as useVeriffApp, g as getStatus, V as VERIFF_COMPLETE_EVENT_KEY } from './usePayoutStatus-3768c8c3.js';
21
+ import { u as useVerificationEmail } from './useVerificationEmail-085eda87.js';
22
+
23
+ const TAX_CONTEXT_NAMESPACE = "sq:tax-and-cash";
24
+ const TAX_FORM_CONTEXT_NAMESPACE = "sq:tax-form-context";
25
+ const USER_QUERY_NAMESPACE = "sq:user-info-query";
26
+ const USER_FORM_CONTEXT_NAMESPACE = "sq:user-form-context";
27
+ const FINANCE_NETWORK_SETTINGS_NAMESPACE = "sq:finance-network-settings";
28
+ const COUNTRIES_NAMESPACE = "sq:countries:list";
29
+ const SORTED_COUNTRIES_NAMESPACE = "sq:countries:sorted";
30
+ const COUNTRIES_QUERY_NAMESPACE = "sq:countries:query";
31
+ const CURRENCIES_NAMESPACE = "sq:currencies:list";
32
+ const CURRENCIES_QUERY_NAMESPACE = "sq:currencies:query";
33
+ const GET_USER = dist.gql `
34
+ query getUserTaxInfo {
35
+ user: viewer {
36
+ ... on User {
37
+ id
38
+ firstName
39
+ lastName
40
+ email
41
+ countryCode
42
+ customFields
43
+ managedIdentity {
44
+ uid
45
+ email
46
+ emailVerified
47
+ }
48
+ impactConnection {
49
+ connected
50
+ user {
51
+ firstName
52
+ lastName
53
+ }
54
+ publisher {
55
+ id
56
+ brandedSignup
57
+ countryCode
58
+ currency
59
+ billingAddress
60
+ billingCity
61
+ billingState
62
+ billingCountryCode
63
+ billingPostalCode
64
+ phoneNumberCountryCode
65
+ phoneNumber
66
+ taxInformation {
67
+ indirectTaxId
68
+ indirectTaxCountryCode
69
+ indirectTaxRegion
70
+ additionalTaxId
71
+ withholdingTaxId
72
+ withholdingTaxCountryCode
73
+ }
74
+ requiredTaxDocumentType
75
+ currentTaxDocument {
76
+ status
77
+ type
78
+ dateCreated
79
+ }
80
+ withdrawalSettings {
81
+ paymentMethod
82
+ paypalEmailAddress
83
+ bankCountry
84
+ bankAccountNumber
85
+ paymentSchedulingType
86
+ paymentThreshold
87
+ paymentDay
88
+ }
89
+ payoutsAccount {
90
+ hold
91
+ holdReasons
92
+ balance
93
+ }
94
+ }
95
+ }
96
+ }
97
+ }
98
+ }
99
+ `;
100
+ const GET_COUNTRIES = dist.gql `
101
+ query getCountries {
102
+ impactPayoutCountries(limit: 1000) {
103
+ data {
104
+ countryCode
105
+ displayName
106
+ }
107
+ }
108
+ }
109
+ `;
110
+ const GET_CURRENCIES = dist.gql `
111
+ query currencies($locale: RSLocale) {
112
+ currencies(limit: 300) {
113
+ data {
114
+ displayName(locale: $locale)
115
+ currencyCode
116
+ }
117
+ }
118
+ }
119
+ `;
120
+ const GET_FINANCE_NETWORK_SETTINGS = dist.gql `
121
+ query impactFinanceNetworkSettings(
122
+ $filter: ImpactFinanceNetworkSettingsFilterInput
123
+ ) {
124
+ impactFinanceNetworkSettings(filter: $filter, limit: 1000) {
125
+ data {
126
+ countryCode
127
+ currency
128
+ defaultFinancePaymentMethodId
129
+ thresholdOptions
130
+ withdrawalSettingId
131
+ internationalEftFee
132
+ foreignFxFee
133
+ defaultFxFee
134
+ }
135
+ totalCount
136
+ }
137
+ }
138
+ `;
139
+ const FORM_STEPS = 4;
20
140
 
21
141
  function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
22
142
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32;
@@ -1623,6 +1743,331 @@ function useDemoBankingInfoForm(props) {
1623
1743
  }, props.demoData || {}, { arrayMerge: (_, a) => a });
1624
1744
  }
1625
1745
 
1746
+ const style$1 = {
1747
+ Wrapper: {
1748
+ display: "flex",
1749
+ flexDirection: "column",
1750
+ gap: "var(--sl-spacing-medium)",
1751
+ maxWidth: "550px",
1752
+ },
1753
+ HeaderContainer: {
1754
+ display: "flex",
1755
+ flexDirection: "column",
1756
+ },
1757
+ InputsContainer: {
1758
+ display: "flex",
1759
+ gap: "var(--sl-spacing-medium)",
1760
+ position: "relative",
1761
+ flexDirection: "column",
1762
+ },
1763
+ CodeInputContainer: {
1764
+ display: "flex",
1765
+ gap: "var(--sl-spacing-medium)",
1766
+ },
1767
+ CodeInput: {
1768
+ maxWidth: "40px",
1769
+ "&::part(input)": {
1770
+ margin: "0",
1771
+ padding: "0 var(--sl-input-spacing-small)",
1772
+ fontSize: "var(--sl-font-size-large)",
1773
+ },
1774
+ },
1775
+ CodeInputError: {
1776
+ ...ErrorStyles,
1777
+ maxWidth: "40px",
1778
+ "&::part(input)": {
1779
+ margin: "0",
1780
+ padding: "0 var(--sl-input-spacing-small)",
1781
+ fontSize: "var(--sl-font-size-large)",
1782
+ },
1783
+ },
1784
+ ErrorText: {
1785
+ color: "var(--sl-color-danger-500)",
1786
+ fontSize: "var(--sl-font-size-small)",
1787
+ margin: "0",
1788
+ },
1789
+ ContinueButton: {
1790
+ width: "100%",
1791
+ maxWidth: "100px",
1792
+ },
1793
+ FooterContainer: {
1794
+ display: "flex",
1795
+ flexDirection: "column",
1796
+ },
1797
+ SkeletonOne: {
1798
+ width: "50%",
1799
+ height: "16px",
1800
+ },
1801
+ SkeletonTwo: {
1802
+ width: "30%",
1803
+ height: "34px",
1804
+ },
1805
+ SkeletonThree: {
1806
+ width: "15%",
1807
+ height: "24px",
1808
+ },
1809
+ };
1810
+ const vanillaStyle$1 = `
1811
+ :host {
1812
+ display: block;
1813
+ }
1814
+ :host([hidden]): {
1815
+ display: none;
1816
+ }
1817
+
1818
+
1819
+ `;
1820
+ const sheet$1 = createStyleSheet(style$1);
1821
+ const styleString$1 = sheet$1.toString();
1822
+ function WidgetCodeVerificationView(props) {
1823
+ const { states, refs, callbacks, text } = props;
1824
+ const resendCodeText = intl.formatMessage({
1825
+ id: "resendCodeText",
1826
+ defaultMessage: text.resendCodeText,
1827
+ }, {
1828
+ resendCodeLink: (h("a", { href: "", style: { textDecoration: "none" }, onClick: (e) => {
1829
+ e.preventDefault();
1830
+ callbacks.resendEmail();
1831
+ } }, text.resendCodeLabel)),
1832
+ });
1833
+ const codeResentSuccessfully = intl.formatMessage({
1834
+ id: "codeResentSuccessfully",
1835
+ defaultMessage: text.codeResentSuccessfullyText,
1836
+ }, {
1837
+ email: states.email,
1838
+ });
1839
+ const inputClass = states.verifyFailed
1840
+ ? sheet$1.classes.CodeInputError
1841
+ : sheet$1.classes.CodeInput;
1842
+ return (h("div", { part: "sqm-base" },
1843
+ h("style", { type: "text/css" },
1844
+ vanillaStyle$1,
1845
+ styleString$1),
1846
+ h("div", { class: sheet$1.classes.Wrapper },
1847
+ h("div", { class: sheet$1.classes.HeaderContainer },
1848
+ h(TextSpanView, { type: "p" }, intl.formatMessage({
1849
+ id: `emailHeaderText`,
1850
+ defaultMessage: states.verifyFailed
1851
+ ? text.reverifyCodeHeaderText
1852
+ : text.verifyCodeHeaderText,
1853
+ }, { email: states.email }))),
1854
+ states.emailResent && (h("sqm-form-message", { type: "success", exportparts: "successalert-icon" },
1855
+ h("b", null, codeResentSuccessfully))),
1856
+ h("div", { class: sheet$1.classes.InputsContainer },
1857
+ h("div", { ref: refs.codeWrapperRef, class: sheet$1.classes.CodeInputContainer },
1858
+ h("sl-input", { class: inputClass, name: "code" }),
1859
+ h("sl-input", { class: inputClass, name: "code" }),
1860
+ h("sl-input", { class: inputClass, name: "code" }),
1861
+ h("sl-input", { class: inputClass, name: "code" }),
1862
+ h("sl-input", { class: inputClass, name: "code" }),
1863
+ h("sl-input", { class: inputClass, name: "code" })),
1864
+ states.verifyFailed && (h("p", { class: sheet$1.classes.ErrorText }, text.invalidCodeText)),
1865
+ h("sl-button", { class: sheet$1.classes.ContinueButton, onClick: callbacks.submitCode, disabled: states.loading || states.initialiseLoading, loading: states.loading || states.initialiseLoading, exportparts: "base: primarybutton-base", type: "primary" }, text.verifyText)),
1866
+ h("div", { class: sheet$1.classes.FooterContainer },
1867
+ h(TextSpanView, { type: "p" }, resendCodeText)))));
1868
+ }
1869
+
1870
+ const VerifyEmailWithCodeMutation = dist.gql `
1871
+ mutation submitImpactPublisherEmail2FACode(
1872
+ $user: UserIdInput!
1873
+ $code: String!
1874
+ ) {
1875
+ submitImpactPublisherEmail2FACode(user: $user, code: $code) {
1876
+ verifiedEmail
1877
+ accessKey
1878
+ }
1879
+ }
1880
+ `;
1881
+ function useWidgetCodeVerification(props) {
1882
+ const host = l();
1883
+ const [_, setShowCode] = Pn(SHOW_CODE_NAMESPACE);
1884
+ const email = Fn(VERIFICATION_EMAIL_NAMESPACE);
1885
+ const [emailSent, setEmailSent] = useState(false);
1886
+ const [emailResent, setEmailResent] = useState(false);
1887
+ const [codeRef, setCodeRef] = useState(null);
1888
+ const [validationError, setValidationError] = useState(false);
1889
+ const [emailError, setEmailError] = useState(false);
1890
+ const { initialized, verificationEmail, send: [sendEmail, { loading: sendLoading, errors: sendErrors }], verify: [verifyEmail, { loading: verifyLoading, errors: verifyErrors }], } = useVerificationEmail();
1891
+ useEffect(() => {
1892
+ if (!codeRef)
1893
+ return;
1894
+ const slInputs = codeRef.querySelectorAll("sl-input");
1895
+ const codeElements = Array.from(slInputs).map((node) => node.shadowRoot.querySelector(`input[name="code"]`));
1896
+ codeElements.forEach((element, idx) => {
1897
+ element.addEventListener("focus", (e) => {
1898
+ e.target.select();
1899
+ });
1900
+ element.addEventListener("keydown", (e) => {
1901
+ if (e.key === "Backspace" && e.target.value === "") {
1902
+ codeElements[Math.max(0, idx - 1)].focus();
1903
+ }
1904
+ });
1905
+ element.addEventListener("input", (e) => {
1906
+ const input = e.data;
1907
+ if (!input)
1908
+ return;
1909
+ if (idx === codeElements.length - 1) {
1910
+ e.target.value = input.slice(0, 1);
1911
+ return;
1912
+ }
1913
+ if (input.length > 1) {
1914
+ const rest = input.slice(1);
1915
+ e.target.value = input.slice(0, 1);
1916
+ codeElements[idx + 1].dispatchEvent(new InputEvent("input", {
1917
+ inputType: "insertFromPaste",
1918
+ data: rest,
1919
+ }));
1920
+ }
1921
+ codeElements[idx + 1].focus();
1922
+ });
1923
+ });
1924
+ }, [codeRef]);
1925
+ const reset = () => {
1926
+ setShowCode(false);
1927
+ setValidationError(false);
1928
+ };
1929
+ const resendEmail = async () => {
1930
+ // UI should only allow this to be called if initialized, but checking just in case
1931
+ if (!initialized)
1932
+ return;
1933
+ const result = await sendEmail();
1934
+ if (!result) {
1935
+ setEmailError(true);
1936
+ return;
1937
+ }
1938
+ if (emailSent)
1939
+ setEmailResent(true);
1940
+ setEmailSent(true);
1941
+ };
1942
+ const submitCode = async () => {
1943
+ const slInputs = codeRef.querySelectorAll("sl-input");
1944
+ const codeElements = Array.from(slInputs).map((node) => node.shadowRoot.querySelector(`input[name="code"]`));
1945
+ if (codeElements.find((el) => !el.value)) {
1946
+ setValidationError(true);
1947
+ return;
1948
+ }
1949
+ let code = "";
1950
+ codeElements.forEach((element) => {
1951
+ code = `${code}${element.value}`;
1952
+ });
1953
+ // UI should only allow this to be called if initialized, but checking just in case
1954
+ if (!initialized)
1955
+ return;
1956
+ setValidationError(false);
1957
+ const res = await verifyEmail(code);
1958
+ if (res === null || res === void 0 ? void 0 : res.success) {
1959
+ props.onVerification(res.accessKey);
1960
+ reset();
1961
+ }
1962
+ else {
1963
+ setValidationError(true);
1964
+ }
1965
+ };
1966
+ useEffect(() => {
1967
+ // Wait for mutations to be determined from user lookup
1968
+ if (!initialized)
1969
+ return;
1970
+ // email should already exist if user has completed email-verification
1971
+ if (!email)
1972
+ resendEmail();
1973
+ else
1974
+ setEmailSent(true);
1975
+ }, [initialized]);
1976
+ return {
1977
+ refs: {
1978
+ codeWrapperRef: setCodeRef,
1979
+ },
1980
+ states: {
1981
+ email: verificationEmail,
1982
+ emailResent,
1983
+ resendError: sendErrors || verifyErrors,
1984
+ initialiseLoading: !initialized,
1985
+ loading: sendLoading || verifyLoading,
1986
+ verifyFailed: !!validationError,
1987
+ },
1988
+ callbacks: {
1989
+ resendEmail,
1990
+ submitCode,
1991
+ },
1992
+ text: props.getTextProps(),
1993
+ };
1994
+ }
1995
+
1996
+ const WidgetCodeVerification = class {
1997
+ constructor(hostRef) {
1998
+ registerInstance(this, hostRef);
1999
+ /**
2000
+ * @uiName Verify code widget header text
2001
+ */
2002
+ this.verifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
2003
+ /**
2004
+ * @uiName Reverify code widget header text
2005
+ */
2006
+ this.reverifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
2007
+ /**
2008
+ * Text displayed under verify button
2009
+ * @uiName Resend code text
2010
+ */
2011
+ this.resendCodeText = "Didn't receive your code? {resendCodeLink}";
2012
+ /**
2013
+ * The link that appears in the resend code link
2014
+ * @uiName Resend code label
2015
+ */
2016
+ this.resendCodeLabel = "Resend code";
2017
+ /**
2018
+ * Link text displayed under verify button
2019
+ * @uiName Resend code text
2020
+ */
2021
+ this.codeResentSuccessfullyText = "Another code has been sent to {email}";
2022
+ /**
2023
+ * Error text displayed under verification input
2024
+ * @uiName Invalid code text
2025
+ */
2026
+ this.invalidCodeText = "Please check your code and try again. If you’re still having trouble, try resending your code.";
2027
+ /**
2028
+ * @uiName Verify code button text
2029
+ */
2030
+ this.verifyText = "Verify";
2031
+ /**
2032
+ * Displayed when the email verification fails due to a network error. The participant can try refreshing the page.
2033
+ * @uiName Network error message
2034
+ */
2035
+ this.networkErrorMessage = "An error occurred while verifying your email. Please refresh the page and try again.";
2036
+ h$1(this);
2037
+ }
2038
+ disconnectedCallback() { }
2039
+ getTextProps() {
2040
+ return getProps(this);
2041
+ }
2042
+ render() {
2043
+ const props = isDemo()
2044
+ ? useDemoWidgetCodeVerification(this)
2045
+ : useWidgetCodeVerification(this);
2046
+ return h(WidgetCodeVerificationView, Object.assign({}, props));
2047
+ }
2048
+ };
2049
+ function useDemoWidgetCodeVerification(props) {
2050
+ const [emailResent, setEmailResent] = useState(false);
2051
+ const setVerifiedContext = En(VERIFICATION_PARENT_NAMESPACE);
2052
+ return cjs({
2053
+ states: {
2054
+ loading: false,
2055
+ email: "test@example.com",
2056
+ emailResent,
2057
+ resendError: false,
2058
+ verifyFailed: false,
2059
+ },
2060
+ refs: {
2061
+ codeWrapperRef: () => { },
2062
+ },
2063
+ callbacks: {
2064
+ resendEmail: async () => setEmailResent(true),
2065
+ submitCode: async () => setVerifiedContext(true),
2066
+ },
2067
+ text: props.getTextProps(),
2068
+ }, props.demoData || {}, { arrayMerge: (_, a) => a });
2069
+ }
2070
+
1626
2071
  const GET_TAX_DOCUMENT = dist.gql `
1627
2072
  mutation createImpactPublisherTaxDocument(
1628
2073
  $vars: CreateImpactPublisherTaxDocumentInput!
@@ -1780,7 +2225,7 @@ function getDocumentType(p) {
1780
2225
  return undefined;
1781
2226
  }
1782
2227
 
1783
- const style$1 = {
2228
+ const style$2 = {
1784
2229
  DocusignStatusContainer: {
1785
2230
  width: "100%",
1786
2231
  minHeight: "600px",
@@ -1807,13 +2252,13 @@ const style$1 = {
1807
2252
  },
1808
2253
  },
1809
2254
  };
1810
- const sheet$1 = createStyleSheet(style$1);
1811
- const styleString$1 = sheet$1.toString();
2255
+ const sheet$2 = createStyleSheet(style$2);
2256
+ const styleString$2 = sheet$2.toString();
1812
2257
  const DocusignExpiredView = (props) => {
1813
- const { classes } = sheet$1;
2258
+ const { classes } = sheet$2;
1814
2259
  const { text } = props;
1815
2260
  return (h("div", null,
1816
- h("style", { type: "text/css" }, styleString$1),
2261
+ h("style", { type: "text/css" }, styleString$2),
1817
2262
  h("div", { class: classes.DocusignStatusContainer },
1818
2263
  h("sl-icon", { style: {
1819
2264
  width: "50px",
@@ -1825,10 +2270,10 @@ const DocusignExpiredView = (props) => {
1825
2270
  h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
1826
2271
  };
1827
2272
  const DocusignErrorView = (props) => {
1828
- const { classes } = sheet$1;
2273
+ const { classes } = sheet$2;
1829
2274
  const { text } = props;
1830
2275
  return (h("div", null,
1831
- h("style", { type: "text/css" }, styleString$1),
2276
+ h("style", { type: "text/css" }, styleString$2),
1832
2277
  h("div", { class: classes.DocusignStatusContainer },
1833
2278
  h("sl-icon", { style: {
1834
2279
  width: "50px",
@@ -1840,14 +2285,14 @@ const DocusignErrorView = (props) => {
1840
2285
  h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
1841
2286
  };
1842
2287
  const DocusignLoadingView = () => {
1843
- const { classes } = sheet$1;
2288
+ const { classes } = sheet$2;
1844
2289
  return (h("div", null,
1845
- h("style", { type: "text/css" }, styleString$1),
2290
+ h("style", { type: "text/css" }, styleString$2),
1846
2291
  h("div", { class: classes.DocusignStatusContainer },
1847
2292
  h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } }))));
1848
2293
  };
1849
2294
  const DocusignIframe = ({ states, data, callbacks, text, }) => {
1850
- const { classes } = sheet$1;
2295
+ const { classes } = sheet$2;
1851
2296
  const [iFrameHeight, setiFrameHeight] = useState("100%");
1852
2297
  const allowedDomains = [
1853
2298
  "referralsaasquatch.com",
@@ -1880,12 +2325,12 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
1880
2325
  return h(DocusignExpiredView, { text: text });
1881
2326
  // Wrap iFrame with container that shares the same height to push other elements down when absolute positioned
1882
2327
  return (h("div", { style: { height: iFrameHeight } },
1883
- h("style", { type: "text/css" }, styleString$1),
2328
+ h("style", { type: "text/css" }, styleString$2),
1884
2329
  h("div", { class: classes.IFrameContainer },
1885
2330
  h("iframe", { scrolling: "yes", frameBorder: "0", width: "100%", src: data.documentUrl, height: iFrameHeight }))));
1886
2331
  };
1887
2332
 
1888
- const style$2 = {
2333
+ const style$3 = {
1889
2334
  FormWrapper: {
1890
2335
  display: "flex",
1891
2336
  justifyContent: "flex-start",
@@ -1975,9 +2420,9 @@ const style$2 = {
1975
2420
  fontSize: "var(--sl-font-size-medium)",
1976
2421
  },
1977
2422
  };
1978
- const sheet$2 = createStyleSheet(style$2);
1979
- const styleString$2 = sheet$2.toString();
1980
- const vanillaStyle$1 = `
2423
+ const sheet$3 = createStyleSheet(style$3);
2424
+ const styleString$3 = sheet$3.toString();
2425
+ const vanillaStyle$2 = `
1981
2426
  :host{
1982
2427
  display: block;
1983
2428
  }
@@ -1998,11 +2443,11 @@ const vanillaStyle$1 = `
1998
2443
  const DocusignFormView = (props) => {
1999
2444
  var _a;
2000
2445
  const { states, states: { formState, documentTypeString }, callbacks, text, slots, } = props;
2001
- const { classes } = sheet$2;
2446
+ const { classes } = sheet$3;
2002
2447
  return (h("div", { class: classes.Container },
2003
2448
  h("style", { type: "text/css" },
2004
- styleString$2,
2005
- vanillaStyle$1),
2449
+ styleString$3,
2450
+ vanillaStyle$2),
2006
2451
  h("div", { class: classes.TextContainer },
2007
2452
  h("div", null,
2008
2453
  !states.hideSteps && (h("p", null, intl.formatMessage({
@@ -2012,7 +2457,7 @@ const DocusignFormView = (props) => {
2012
2457
  h("h3", null, text.taxForm),
2013
2458
  h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
2014
2459
  states.loadingError && (h("div", null,
2015
- h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$2.classes.ErrorAlertContainer },
2460
+ h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$3.classes.ErrorAlertContainer },
2016
2461
  h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
2017
2462
  h("strong", null, text.error.loadingErrorAlertHeader),
2018
2463
  h("br", null),
@@ -2022,7 +2467,7 @@ const DocusignFormView = (props) => {
2022
2467
  }, {
2023
2468
  supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
2024
2469
  })))),
2025
- ((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$2.classes.ErrorAlertContainer },
2470
+ ((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$3.classes.ErrorAlertContainer },
2026
2471
  h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
2027
2472
  h("strong", null, text.error.generalTitle),
2028
2473
  h("br", null),
@@ -2242,7 +2687,7 @@ const DemoDocusignIframe = ({ callbacks }) => {
2242
2687
  } }, h("span", null, "Placeholder for docusign iframe"), h("div", { style: { display: "flex", gap: "8px" } }, h("sl-button", { type: "primary", submit: true, exportparts: "base: primarybutton-base", onClick: callbacks.demo.onBack }, "Back to Step 2"), h("sl-button", { type: "primary", submit: true, exportparts: "base: primarybutton-base", onClick: callbacks.demo.onSubmit }, "Continue to Step 4")))));
2243
2688
  };
2244
2689
 
2245
- const style$3 = {
2690
+ const style$4 = {
2246
2691
  FormWrapper: {
2247
2692
  display: "flex",
2248
2693
  justifyContent: "flex-start",
@@ -2374,9 +2819,9 @@ const style$3 = {
2374
2819
  },
2375
2820
  },
2376
2821
  };
2377
- const sheet$3 = createStyleSheet(style$3);
2378
- const styleString$3 = sheet$3.toString();
2379
- const vanillaStyle$2 = `
2822
+ const sheet$4 = createStyleSheet(style$4);
2823
+ const styleString$4 = sheet$4.toString();
2824
+ const vanillaStyle$3 = `
2380
2825
  :host{
2381
2826
  display: block;
2382
2827
  }
@@ -2403,11 +2848,11 @@ const vanillaStyle$2 = `
2403
2848
  const IndirectTaxFormView = (props) => {
2404
2849
  var _a;
2405
2850
  const { states, states: { formState }, callbacks, text, refs, slots, } = props;
2406
- const { classes } = sheet$3;
2851
+ const { classes } = sheet$4;
2407
2852
  return (h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
2408
2853
  h("style", { type: "text/css" },
2409
- styleString$3,
2410
- vanillaStyle$2),
2854
+ styleString$4,
2855
+ vanillaStyle$3),
2411
2856
  h("div", { class: classes.TextContainer },
2412
2857
  h("div", null,
2413
2858
  !states.hideSteps && (h("p", null,
@@ -2420,7 +2865,7 @@ const IndirectTaxFormView = (props) => {
2420
2865
  h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription),
2421
2866
  h("p", { class: classes.DescriptionText }, text.indirectTaxDescription)),
2422
2867
  states.loadingError && (h("div", null,
2423
- h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$3.classes.AlertContainer },
2868
+ h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.AlertContainer },
2424
2869
  h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
2425
2870
  h("strong", null, text.error.loadingErrorAlertHeader),
2426
2871
  h("br", null),
@@ -2430,7 +2875,7 @@ const IndirectTaxFormView = (props) => {
2430
2875
  }, {
2431
2876
  supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
2432
2877
  })))),
2433
- ((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$3.classes.AlertContainer },
2878
+ ((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$4.classes.AlertContainer },
2434
2879
  h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
2435
2880
  h("strong", null, text.error.generalTitle),
2436
2881
  h("br", null),
@@ -2440,7 +2885,7 @@ const IndirectTaxFormView = (props) => {
2440
2885
  }, {
2441
2886
  supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
2442
2887
  }))),
2443
- states.isPartner && (h("sl-alert", { type: "primary", open: true, class: sheet$3.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
2888
+ states.isPartner && (h("sl-alert", { type: "primary", open: true, class: sheet$4.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
2444
2889
  h("sl-icon", { slot: "icon", name: "info-circle" }),
2445
2890
  h("strong", null, text.isPartnerAlertHeader),
2446
2891
  h("br", null),
@@ -2919,7 +3364,7 @@ const IndirectTaxForm = class {
2919
3364
  };
2920
3365
  function useDemoIndirectTaxForm(props) {
2921
3366
  const setStep = En(TAX_CONTEXT_NAMESPACE);
2922
- const [option, setOption] = useState("otherRegion");
3367
+ const [option, setOption] = useState(null);
2923
3368
  const [demoFormState, setDemoFormState] = useState({});
2924
3369
  return cjs({
2925
3370
  states: {
@@ -3313,6 +3758,18 @@ function useInvoiceTableDemo(props, emptyElement, loadingElement) {
3313
3758
  return demoProps;
3314
3759
  }
3315
3760
 
3761
+ const InvoiceTableDataCell = class {
3762
+ constructor(hostRef) {
3763
+ registerInstance(this, hostRef);
3764
+ this.ignored = true;
3765
+ h$1(this);
3766
+ }
3767
+ disconnectedCallback() { }
3768
+ render() {
3769
+ return this.data;
3770
+ }
3771
+ };
3772
+
3316
3773
  const InvoiceTableDataColumn = class {
3317
3774
  constructor(hostRef) {
3318
3775
  registerInstance(this, hostRef);
@@ -3331,6 +3788,23 @@ const InvoiceTableDataColumn = class {
3331
3788
  }
3332
3789
  };
3333
3790
 
3791
+ const RewardTableDateCell = class {
3792
+ constructor(hostRef) {
3793
+ registerInstance(this, hostRef);
3794
+ this.ignored = true;
3795
+ this.locale = "en";
3796
+ h$1(this);
3797
+ }
3798
+ disconnectedCallback() { }
3799
+ render() {
3800
+ var _a, _b;
3801
+ const date = !this.date
3802
+ ? "-"
3803
+ : (_b = (_a = luxon.DateTime.fromMillis(this.date)) === null || _a === void 0 ? void 0 : _a.setLocale(luxonLocale(this.locale))) === null || _b === void 0 ? void 0 : _b.toLocaleString(luxon.DateTime.DATE_MED);
3804
+ return date;
3805
+ }
3806
+ };
3807
+
3334
3808
  const InvoiceTableDateColumn = class {
3335
3809
  constructor(hostRef) {
3336
3810
  registerInstance(this, hostRef);
@@ -3349,6 +3823,21 @@ const InvoiceTableDateColumn = class {
3349
3823
  }
3350
3824
  };
3351
3825
 
3826
+ const InvoiceTableDownloadCell = class {
3827
+ constructor(hostRef) {
3828
+ registerInstance(this, hostRef);
3829
+ this.ignored = true;
3830
+ h$1(this);
3831
+ }
3832
+ disconnectedCallback() { }
3833
+ render() {
3834
+ const vanillaStyle = `svg:hover, svg:hover * {
3835
+ cursor: pointer;
3836
+ }`;
3837
+ return (h(Host, null, h("style", null, vanillaStyle), !!this.downloadUrl && (h("a", { href: this.downloadUrl, target: "_blank" }, h("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M0.625 12.4375C0.79076 12.4375 0.949732 12.5033 1.06694 12.6206C1.18415 12.7378 1.25 12.8967 1.25 13.0625V16.1875C1.25 16.519 1.3817 16.837 1.61612 17.0714C1.85054 17.3058 2.16848 17.4375 2.5 17.4375H17.5C17.8315 17.4375 18.1495 17.3058 18.3839 17.0714C18.6183 16.837 18.75 16.519 18.75 16.1875V13.0625C18.75 12.8967 18.8158 12.7378 18.9331 12.6206C19.0503 12.5033 19.2092 12.4375 19.375 12.4375C19.5408 12.4375 19.6997 12.5033 19.8169 12.6206C19.9342 12.7378 20 12.8967 20 13.0625V16.1875C20 16.8505 19.7366 17.4864 19.2678 17.9553C18.7989 18.4241 18.163 18.6875 17.5 18.6875H2.5C1.83696 18.6875 1.20107 18.4241 0.732233 17.9553C0.263392 17.4864 0 16.8505 0 16.1875V13.0625C0 12.8967 0.065848 12.7378 0.183058 12.6206C0.300269 12.5033 0.45924 12.4375 0.625 12.4375Z", fill: "var(--sqm-text-subdued)" }), h("path", { d: "M9.5575 14.88C9.61556 14.9382 9.68453 14.9844 9.76046 15.0159C9.83639 15.0474 9.91779 15.0636 10 15.0636C10.0822 15.0636 10.1636 15.0474 10.2395 15.0159C10.3155 14.9844 10.3844 14.9382 10.4425 14.88L14.1925 11.13C14.3099 11.0126 14.3758 10.8535 14.3758 10.6875C14.3758 10.5215 14.3099 10.3624 14.1925 10.245C14.0751 10.1276 13.916 10.0617 13.75 10.0617C13.584 10.0617 13.4249 10.1276 13.3075 10.245L10.625 12.9288V1.9375C10.625 1.77174 10.5592 1.61277 10.4419 1.49556C10.3247 1.37835 10.1658 1.3125 10 1.3125C9.83424 1.3125 9.67527 1.37835 9.55806 1.49556C9.44085 1.61277 9.375 1.77174 9.375 1.9375V12.9288L6.6925 10.245C6.57514 10.1276 6.41597 10.0617 6.25 10.0617C6.08403 10.0617 5.92486 10.1276 5.8075 10.245C5.69014 10.3624 5.62421 10.5215 5.62421 10.6875C5.62421 10.8535 5.69014 11.0126 5.8075 11.13L9.5575 14.88Z", fill: "var(--sqm-text-subdued)" }))))));
3838
+ }
3839
+ };
3840
+
3352
3841
  const InvoiceTableGenericColumn = class {
3353
3842
  constructor(hostRef) {
3354
3843
  registerInstance(this, hostRef);
@@ -3371,7 +3860,7 @@ const PayPalIcon = () => (h("svg", { xmlns: "http://www.w3.org/2000/svg", width:
3371
3860
  h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M3.71826 -0.15332H9.30607C10.8808 -0.15332 12.7478 -0.099593 13.9903 1.00853C14.8208 1.754 15.2593 2.936 15.1597 4.21203C14.8142 8.52364 12.2694 10.9347 8.84762 10.9347H6.09026C5.61852 10.9347 5.31288 11.2503 5.18 12.0965L4.40926 17.0461C4.35611 17.3685 4.22323 17.5566 3.97739 17.5767H0.53567C0.156948 17.5767 0.0174187 17.2879 0.117082 16.6432L2.59539 0.786908C2.69505 0.148896 3.04055 -0.15332 3.71826 -0.15332Z", fill: "#113984" }),
3372
3861
  h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M5.25973 11.5995L6.23643 5.36045C6.32281 4.81646 6.61515 4.54782 7.20649 4.54782H12.7877C13.7112 4.54782 14.4554 4.69557 15.0401 4.96421C14.4819 8.799 12.0236 10.9347 8.80775 10.9347H6.06368C5.6916 10.9347 5.42583 11.1227 5.25973 11.5995Z", fill: "#172C70" })));
3373
3862
 
3374
- const style$4 = {
3863
+ const style$5 = {
3375
3864
  CardContainer: {
3376
3865
  display: "grid",
3377
3866
  gridTemplateColumns: "1fr",
@@ -3521,7 +4010,7 @@ const style$4 = {
3521
4010
  },
3522
4011
  };
3523
4012
  function PayoutDetailsCardView(props) {
3524
- const sheet = createStyleSheet(style$4);
4013
+ const sheet = createStyleSheet(style$5);
3525
4014
  const styleString = sheet.toString();
3526
4015
  const { classes } = sheet;
3527
4016
  const { states, text } = props;
@@ -3652,10 +4141,6 @@ const PayoutDetailsCard = class {
3652
4141
  * @uiName Payout missing information subtext
3653
4142
  */
3654
4143
  this.payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
3655
- /**
3656
- * @componentState { "title": "Loading", "props": { "states": { "loading": true } } }
3657
- */
3658
- this.stateController = "{}";
3659
4144
  h$1(this);
3660
4145
  }
3661
4146
  disconnectedCallback() { }
@@ -3693,19 +4178,1232 @@ function useDemoPayoutDetailsCard(props) {
3693
4178
  }, props.demoData || {}, { arrayMerge: (_, a) => a });
3694
4179
  }
3695
4180
 
3696
- const style$5 = {
3697
- ErrorAlertContainer: {
3698
- "&::part(base)": {
3699
- backgroundColor: "var(--sqm-danger-color-background)",
3700
- border: "none",
3701
- },
3702
- "& sl-icon::part(base)": {
3703
- color: "var(--sqm-danger-color-text)",
3704
- },
3705
- },
3706
- WarningAlertContainer: {
3707
- "&::part(base)": {
3708
- backgroundColor: "var(--sqm-warning-color-background)",
4181
+ const TableCell = class {
4182
+ constructor(hostRef) {
4183
+ registerInstance(this, hostRef);
4184
+ /** @uiName Column span */
4185
+ this.colspan = 1;
4186
+ /** @uiName Padding */
4187
+ this.padding = "15px 10px";
4188
+ }
4189
+ render() {
4190
+ return (h(Host, { style: { display: "contents" } }, h("td", { colSpan: this.colspan, style: { padding: this.padding } }, h("slot", null))));
4191
+ }
4192
+ };
4193
+
4194
+ const TableRow = class {
4195
+ constructor(hostRef) {
4196
+ registerInstance(this, hostRef);
4197
+ /**
4198
+ * @uiName Border
4199
+ */
4200
+ this.border = "1px solid #EAEAEA";
4201
+ }
4202
+ render() {
4203
+ return (h(Host, { style: { display: "contents" } }, h("tr", { style: { border: this.border } }, h("slot", null))));
4204
+ }
4205
+ };
4206
+
4207
+ function getCurrentStep(user) {
4208
+ var _a, _b;
4209
+ if (!((_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.connected) || !((_b = user.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher)) {
4210
+ return "/1";
4211
+ }
4212
+ const { requiredTaxDocumentType, currentTaxDocument, withdrawalSettings, brandedSignup, } = user.impactConnection.publisher;
4213
+ // If they do have a required document, look at current document
4214
+ if (requiredTaxDocumentType && !currentTaxDocument)
4215
+ return "/3";
4216
+ if (!withdrawalSettings && brandedSignup)
4217
+ return "/4";
4218
+ return "/dashboard";
4219
+ }
4220
+ function useTaxAndCash() {
4221
+ var _a, _b, _c, _d, _e;
4222
+ const host = _();
4223
+ const user = J();
4224
+ const locale = L();
4225
+ // State for current step of form
4226
+ const [step, setStep] = In({
4227
+ namespace: TAX_CONTEXT_NAMESPACE,
4228
+ initialValue: "/loading",
4229
+ });
4230
+ // State for when to hide steps, or override certain actions
4231
+ const [context, _setContext] = In({
4232
+ namespace: TAX_FORM_CONTEXT_NAMESPACE,
4233
+ initialValue: {},
4234
+ });
4235
+ // State to carry user form information into step 2
4236
+ const [userFormContext, _setUserFormContext] = In({
4237
+ namespace: USER_FORM_CONTEXT_NAMESPACE,
4238
+ initialValue: {
4239
+ firstName: undefined,
4240
+ lastName: undefined,
4241
+ email: undefined,
4242
+ countryCode: undefined,
4243
+ currency: undefined,
4244
+ },
4245
+ });
4246
+ const [_currenciesContext, setCurrenciesContext] = In({
4247
+ namespace: CURRENCIES_NAMESPACE,
4248
+ initialValue: [],
4249
+ });
4250
+ const [_countriesContext, _setCountriesContext] = In({
4251
+ namespace: COUNTRIES_NAMESPACE,
4252
+ initialValue: [],
4253
+ });
4254
+ const [_sortedCountriesContext, setSortedCountriesContext] = In({
4255
+ namespace: SORTED_COUNTRIES_NAMESPACE,
4256
+ initialValue: [],
4257
+ });
4258
+ const { data, errors } = Sn({
4259
+ namespace: USER_QUERY_NAMESPACE,
4260
+ query: GET_USER,
4261
+ skip: !user,
4262
+ options: {
4263
+ batch: false,
4264
+ },
4265
+ });
4266
+ 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) ||
4267
+ userFormContext.countryCode;
4268
+ Sn({
4269
+ namespace: COUNTRIES_QUERY_NAMESPACE,
4270
+ query: GET_COUNTRIES,
4271
+ skip: !user,
4272
+ });
4273
+ const { data: financeNetworkData, refetch } = Sn({
4274
+ namespace: FINANCE_NETWORK_SETTINGS_NAMESPACE,
4275
+ query: GET_FINANCE_NETWORK_SETTINGS,
4276
+ skip: !user,
4277
+ variables: {
4278
+ filter: getFinanceNetworkFilter(),
4279
+ },
4280
+ });
4281
+ const { data: currenciesData } = Sn({
4282
+ namespace: CURRENCIES_QUERY_NAMESPACE,
4283
+ query: GET_CURRENCIES,
4284
+ skip: !user,
4285
+ variables: {
4286
+ locale,
4287
+ },
4288
+ });
4289
+ const supportedCurrencies = useMemo(() => {
4290
+ var _a, _b;
4291
+ // Filter out any currencies not supported by finance network settings
4292
+ 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) => {
4293
+ var _a, _b;
4294
+ 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);
4295
+ // Currency not in supported list
4296
+ if (!currency)
4297
+ return agg;
4298
+ // Currency already added to list
4299
+ if (agg.find((currency) => currency.currencyCode === settings.currency))
4300
+ return agg;
4301
+ // Currency not supported by selected country
4302
+ if (userFormContext.countryCode &&
4303
+ settings.countryCode !== countryCode)
4304
+ return agg;
4305
+ return [...agg, currency];
4306
+ }, []);
4307
+ return allValidCurrencies;
4308
+ }, [financeNetworkData, countryCode]);
4309
+ const intlLocale = (locale === null || locale === void 0 ? void 0 : locale.replace("_", "-")) || "en";
4310
+ const sortByName = (a, b) => a.displayName < b.displayName ? -1 : 1;
4311
+ const paymentOptions = (_d = financeNetworkData === null || financeNetworkData === void 0 ? void 0 : financeNetworkData.impactFinanceNetworkSettings) === null || _d === void 0 ? void 0 : _d.data;
4312
+ // filter out any duplicate countries and null countryCode
4313
+ const availableCountries = useMemo(() => new Set(paymentOptions === null || paymentOptions === void 0 ? void 0 : paymentOptions.map((option) => option.countryCode).filter((value) => value)), [paymentOptions]);
4314
+ const _topCountries = ["CA", "GB", "US"];
4315
+ const sortedCountries = useMemo(() => Array.from(availableCountries)
4316
+ .map((countryCode) => getCountryObj({ countryCode, locale: intlLocale }))
4317
+ .sort(sortByName)
4318
+ .reduce((prev, countryObj) => {
4319
+ if (_topCountries.includes(countryObj.countryCode))
4320
+ return [countryObj, ...prev];
4321
+ return [...prev, countryObj];
4322
+ }, []), [availableCountries]);
4323
+ useEffect(() => {
4324
+ if (sortedCountries)
4325
+ setSortedCountriesContext(sortedCountries);
4326
+ }, [sortedCountries]);
4327
+ useEffect(() => {
4328
+ if (supportedCurrencies)
4329
+ setCurrenciesContext(supportedCurrencies);
4330
+ }, [supportedCurrencies]);
4331
+ useEffect(() => {
4332
+ if (errors) {
4333
+ setStep("/error");
4334
+ return;
4335
+ }
4336
+ if (!host || !user)
4337
+ return;
4338
+ if (data) {
4339
+ const user = data === null || data === void 0 ? void 0 : data.user;
4340
+ if (!user || step !== "/loading")
4341
+ return;
4342
+ const currentStep = getCurrentStep(user);
4343
+ setStep(currentStep);
4344
+ }
4345
+ }, [host, user, (_e = data === null || data === void 0 ? void 0 : data.user) === null || _e === void 0 ? void 0 : _e.email, errors]);
4346
+ function getFinanceNetworkFilter() {
4347
+ var _a, _b, _c;
4348
+ if (step === "/1")
4349
+ return {};
4350
+ if (step === "/4")
4351
+ 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 };
4352
+ if (countryCode)
4353
+ return {
4354
+ countryCode_eq: countryCode,
4355
+ };
4356
+ return {};
4357
+ }
4358
+ return {
4359
+ step,
4360
+ setStep,
4361
+ context,
4362
+ namespace: Mn(TAX_CONTEXT_NAMESPACE),
4363
+ loading: step === "/loading",
4364
+ };
4365
+ }
4366
+
4367
+ const TaxAndCashMonolith = class {
4368
+ constructor(hostRef) {
4369
+ registerInstance(this, hostRef);
4370
+ /*---------------------------------------------------------------------------------
4371
+ !IMPORTANT!: Make sure to also change the prop names in the respective component
4372
+ -----------------------------------------------------------------------------------*/
4373
+ /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4374
+ STEP 1 PROPS:
4375
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
4376
+ /**
4377
+ * @uiName First name field label
4378
+ * @uiGroup Step 1 Properties
4379
+ */
4380
+ this.step1_firstName = "First name";
4381
+ /**
4382
+ * @uiName Last name field label
4383
+ * @uiGroup Step 1 Properties
4384
+ */
4385
+ this.step1_lastName = "Last name";
4386
+ /**
4387
+ * @uiName Email field label
4388
+ * @uiGroup Step 1 Properties
4389
+ */
4390
+ this.step1_email = "Email";
4391
+ /**
4392
+ * @uiName Country field label
4393
+ * @uiGroup Step 1 Properties
4394
+ */
4395
+ this.step1_country = "Country";
4396
+ /**
4397
+ * @uiName Phone number field label
4398
+ * @uiGroup Step 1 Properties
4399
+ */
4400
+ this.step1_phoneNumber = "Phone number";
4401
+ /**
4402
+ * @uiName Address field label
4403
+ * @uiGroup Step 1 Properties
4404
+ */
4405
+ this.step1_address = "Address";
4406
+ /**
4407
+ * @uiName City field label
4408
+ * @uiGroup Step 1 Properties
4409
+ */
4410
+ this.step1_city = "City";
4411
+ /**
4412
+ * @uiName State field label for states
4413
+ * @uiGroup Step 1 Properties
4414
+ */
4415
+ this.step1_state = "State";
4416
+ /**
4417
+ * @uiName State field label for provinces
4418
+ * @uiGroup Step 1 Properties
4419
+ */
4420
+ this.step1_province = "Province";
4421
+ /**
4422
+ * @uiName State field label for regions
4423
+ * @uiGroup Step 1 Properties
4424
+ */
4425
+ this.step1_region = "Region";
4426
+ /**
4427
+ * @uiName Postal code field label
4428
+ * @uiGroup Step 1 Properties
4429
+ */
4430
+ this.step1_postalCode = "Postal code";
4431
+ /**
4432
+ * @uiName Currency field label
4433
+ * @uiGroup Step 1 Properties
4434
+ */
4435
+ this.step1_currency = "Currency";
4436
+ /**
4437
+ * @uiName Currency field help text
4438
+ * @uiGroup Step 1 Properties
4439
+ */
4440
+ this.step1_currencyHelpText = "Choose your preferred payout currency";
4441
+ /**
4442
+ * Edit the property called terms and conditions text to change what's displayed for {termsAndConditionsLink}.
4443
+ * @uiName Terms and conditions checkbox
4444
+ * @uiGroup Step 1 Properties
4445
+ */
4446
+ this.step1_allowBankingCollection = "I have read the {termsAndConditionsLink} and allow impact.com to collect my tax and banking information";
4447
+ /**
4448
+ * @uiName Step 1 title
4449
+ * @uiGroup Step 1 Properties
4450
+ */
4451
+ this.step1_personalInformation = "Personal Information";
4452
+ /**
4453
+ * The link text that appears in the terms and conditions checkbox
4454
+ * @uiName Terms and conditions text
4455
+ * @uiGroup Step 1 Properties
4456
+ * @uiWidget textArea
4457
+ */
4458
+ this.step1_termsAndConditionsLabel = "terms and conditions";
4459
+ /**
4460
+ * The link that appears in the terms and conditions checkbox
4461
+ * @uiName Terms and conditions link
4462
+ * @uiGroup Step 1 Properties
4463
+ */
4464
+ this.step1_termsAndConditionsLink = "https://terms.advocate.impact.com/PayoutTermsAndConditions.html";
4465
+ /**
4466
+ * Placeholder text displayed in the currency search dropdown
4467
+ * @uiName Currency field placeholder text
4468
+ * @uiGroup Step 1 Properties
4469
+ */
4470
+ this.step1_searchForCurrencyText = "Search for currency..";
4471
+ /**
4472
+
4473
+ /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4474
+ STEP 2 PROPS:
4475
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
4476
+ /**
4477
+ * @uiName Step 2 title
4478
+ * @uiGroup Step 2 Properties
4479
+ */
4480
+ this.step2_indirectTax = "Indirect Tax";
4481
+ /**
4482
+ * Displayed under the title of this step.
4483
+ * @uiName Step 2 description
4484
+ * @uiGroup Step 2 Properties
4485
+ * @uiWidget textArea
4486
+ */
4487
+ 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.";
4488
+ /**
4489
+ * Displayed with indirect tax registration options.
4490
+ * @uiName Indirect tax details section title
4491
+ * @uiGroup Step 2 Properties
4492
+ */
4493
+ this.step2_indirectTaxDetails = "Indirect tax details";
4494
+ /**
4495
+ * @uiName Registered for indirect tax option
4496
+ * @uiGroup Step 2 Properties
4497
+ * @uiWidget textArea
4498
+ *
4499
+ */
4500
+ this.step2_otherRegion = "Registered for indirect tax";
4501
+ /**
4502
+ * Selecting this option will display fields to enter indirect tax details.
4503
+ * @uiName Registered for indirect tax option description
4504
+ * @uiGroup Step 2 Properties
4505
+ */
4506
+ this.step2_otherRegionSubtext = "If you’ve registered with your tax authority, add your information to stay tax compliant.";
4507
+ /**
4508
+ * @uiName Not registered for indirect tax option
4509
+ * @uiGroup Step 2 Properties
4510
+ * @uiWidget textArea
4511
+ */
4512
+ this.step2_notRegistered = "Not registered for indirect tax";
4513
+ /**
4514
+ * Participants based in the US are considered not registered.
4515
+ * @uiName Not registered for indirect tax option description
4516
+ * @uiGroup Step 2 Properties
4517
+ */
4518
+ this.step2_notRegisteredSubtext = "If you’ve never set up indirect tax with your tax authority, then you’re likely not considered registered.";
4519
+ /**
4520
+ * @uiName Region of indirect tax field label
4521
+ * @uiGroup Step 2 Properties
4522
+ */
4523
+ this.step2_selectedRegion = "Country / region of indirect tax";
4524
+ /**
4525
+ * @uiName Indirect tax number field label
4526
+ * @uiGroup Step 2 Properties
4527
+ */
4528
+ this.step2_indirectTaxNumber = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}}";
4529
+ /**
4530
+ * @uiName Province field label
4531
+ * @uiGroup Step 2 Properties
4532
+ */
4533
+ this.step2_province = "Province";
4534
+ /**
4535
+ * @uiName Missing indirect tax number error message
4536
+ * @uiGroup Step 2 Properties
4537
+ */
4538
+ 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";
4539
+ /**
4540
+ * Displayed to participants registered for QST.
4541
+ * @uiName QST number field label
4542
+ * @uiGroup Step 2 Properties
4543
+ */
4544
+ this.step2_qstNumber = "QST number";
4545
+ /**
4546
+ * Displayed to participants registered for indirect tax in Quebec, Canada.
4547
+ * @uiName QST tax checkbox
4548
+ * @uiGroup Step 2 Properties
4549
+ */
4550
+ this.step2_isRegisteredQST = "I am registered for QST Tax";
4551
+ /**
4552
+ * Displayed to participants registered for indirect tax in Spain.
4553
+ * @uiName Spain income tax checkbox
4554
+ * @uiGroup Step 2 Properties
4555
+ * @uiWidget textArea
4556
+ */
4557
+ 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.";
4558
+ /**
4559
+ * Displayed to participants registered in Spain.
4560
+ * @uiName Sub-region of indirect tax field label
4561
+ * @uiGroup Step 2 Properties
4562
+ */
4563
+ this.step2_subRegion = "Sub-region";
4564
+ /**
4565
+ * @uiName Income tax field label
4566
+ * @uiGroup Step 2 Properties
4567
+ */
4568
+ this.step2_subRegionTaxNumberLabel = "Income Tax Number";
4569
+ /**
4570
+ * Communicate that after this step, only Support can change personal and indirect tax information.
4571
+ * @uiName Submission confirmation alert
4572
+ * @uiGroup Step 2 Properties
4573
+ * @uiWidget textArea
4574
+ */
4575
+ 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.";
4576
+ /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4577
+ STEP 3 PROPS:
4578
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
4579
+ /**
4580
+ * @uiName Step 3 title
4581
+ * @uiGroup Step 3 Properties
4582
+ */
4583
+ this.step3_taxForm = "Tax form";
4584
+ /**
4585
+ * Display the type of tax form that the participant must submit.
4586
+ * @uiName Tax form name
4587
+ * @uiGroup Step 3 Properties
4588
+ */
4589
+ this.step3_taxFormLabel = "{documentType} Tax Form";
4590
+ /**
4591
+ * @uiName Participant type field label
4592
+ * @uiGroup Step 3 Properties
4593
+ */
4594
+ this.step3_participantType = "Participant type";
4595
+ /**
4596
+ * An option for the participant type field. Used to determine which W-8 form is required.
4597
+ * @uiName Business representative participant type label
4598
+ * @uiGroup Step 3 Properties
4599
+ */
4600
+ this.step3_businessEntity = "I represent a business";
4601
+ /**
4602
+ * An option for the participant type field. Used to determine which W-8 form is required.
4603
+ * @uiName Individual participant type label
4604
+ * @uiGroup Step 3 Properties
4605
+ */
4606
+ this.step3_individualParticipant = "I am an individual participant";
4607
+ /**
4608
+ * Displayed at the top of the page to participants based in the US.
4609
+ * @uiName W-9 tax form description
4610
+ * @uiGroup Step 3 Properties
4611
+ * @uiWidget textArea
4612
+ */
4613
+ this.step3_taxFormDescription = "Participants based in the US need to submit a {documentType} form.";
4614
+ /**
4615
+ * Displayed at the top of the page to individuals joining a US program who reside outside the country.
4616
+ * @uiName W-8 BEN tax form description
4617
+ * @uiGroup Step 3 Properties
4618
+ * @uiWidget textArea
4619
+ */
4620
+ this.step3_taxFormDescriptionIndividualParticipant = "Participants residing outside of the US, joining the referral program of a US-based company, need to submit a {documentType} form.";
4621
+ /**
4622
+ * Displayed at the top of the page to participants representing a business.
4623
+ * @uiName W-8 BEN-E tax form description
4624
+ * @uiGroup Step 3 Properties
4625
+ * @uiWidget textArea
4626
+ */
4627
+ this.step3_taxFormDescriptionBusinessEntity = "Participants residing outside of the US who represent a business entity need to submit a {documentType} form.";
4628
+ /**
4629
+ * This appears inside the Docusign frame.
4630
+ * @uiName Docusign session expired message
4631
+ * @uiGroup Step 3 Properties
4632
+ * @uiWidget textArea
4633
+ */
4634
+ 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.";
4635
+ /**
4636
+ * Remind participants their session will time out after 20 minutes of inactivity.
4637
+ * @uiName Docusign timed session message
4638
+ * @uiGroup Step 3 Properties
4639
+ * @uiWidget textArea
4640
+ */
4641
+ this.step3_docusignSessionWarning = "For your security, we automatically end your session when you have not interacted with the form after 20 minutes.";
4642
+ /**
4643
+ * This appears inside the Docusign frame.
4644
+ * @uiName Docusign form error message
4645
+ * @uiGroup Step 3 Properties
4646
+ * @uiWidget textArea
4647
+ */
4648
+ this.step3_docusignError = "There was a problem displaying this form. Please refresh the page. If this problem continues, contact our {supportLink}.";
4649
+ /**
4650
+ * @uiName Refresh page button label
4651
+ * @uiGroup Step 3 Properties
4652
+ */
4653
+ this.step3_refreshButton = "Refresh Page";
4654
+ /**
4655
+ * @uiName Exit button text
4656
+ * @uiGroup Step 3 Properties
4657
+ */
4658
+ this.step3_exitButton = "Exit";
4659
+ /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4660
+ STEP 4 PROPS:
4661
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
4662
+ /**
4663
+ * @uiName Step 4 title
4664
+ * @uiGroup Step 4 Properties
4665
+ */
4666
+ this.step4_taxAndPayouts = "Payouts";
4667
+ /**
4668
+ * @uiName Direct to bank payout option
4669
+ * @uiGroup Step 4 Properties
4670
+ */
4671
+ this.step4_directlyToBankAccount = "Directly to my bank account";
4672
+ /**
4673
+ * @uiName PayPal payout option
4674
+ * @uiGroup Step 4 Properties
4675
+ */
4676
+ this.step4_toPayPalAccount = "PayPal (2% processing fee capped to {feeCap})";
4677
+ /**
4678
+ * @uiName Threshold balance payment schedule option
4679
+ * @uiGroup Step 4 Properties
4680
+ */
4681
+ this.step4_paymentScheduleBalanceThreshold = "Pay me when my balance reaches a threshold";
4682
+ /**
4683
+ * @uiName Fixed day payment schedule option
4684
+ * @uiGroup Step 4 Properties
4685
+ */
4686
+ this.step4_paymentScheduleFixedDay = "Pay me on a fixed day of the month";
4687
+ /**
4688
+ * Let the participant choose what day of the month they’ll get paid
4689
+ * @uiName Payment day field label
4690
+ * @uiGroup Step 4 Properties
4691
+ */
4692
+ this.step4_paymentDaySelectLabel = "Payment Day";
4693
+ /**
4694
+ * Participant use this field to select the balance at which they want to be paid
4695
+ * @uiName Payment threshold field label
4696
+ * @uiGroup Step 4 Properties
4697
+ */
4698
+ this.step4_paymentThresholdSelectLabel = "Payment threshold";
4699
+ /**
4700
+ * One of two payment day options
4701
+ * @uiName First of month payday option
4702
+ * @uiGroup Step 4 Properties
4703
+ */
4704
+ this.step4_paymentDayFirstOfMonthLabelText = "1st of the month";
4705
+ /**
4706
+ * One of two payment day options
4707
+ * @uiName Fifteenth of month payday option
4708
+ * @uiGroup Step 4 Properties
4709
+ */
4710
+ this.step4_paymentDayFifteenthOfMonthLabelText = "15th of the month";
4711
+ /**
4712
+ * @uiName Payment method section header
4713
+ * @uiGroup Step 4 Properties
4714
+ */
4715
+ this.step4_paymentMethod = "Payment method";
4716
+ /**
4717
+ * @uiName Payment schedule section header
4718
+ * @uiGroup Step 4 Properties
4719
+ */
4720
+ this.step4_paymentSchedule = "Payment schedule";
4721
+ /**
4722
+ * @uiName Payment method section description
4723
+ * @uiGroup Step 4 Properties
4724
+ */
4725
+ this.step4_paymentMethodSubtext = "Payouts will be sent from our referral program provider, impact.com.";
4726
+ /**
4727
+ * Displayed to participants who choose PayPal as their payout method
4728
+ * @uiName PayPal email field label
4729
+ * @uiGroup Step 4 Properties
4730
+ */
4731
+ this.step4_payPalInputLabel = "PayPal email";
4732
+ /**
4733
+ * @uiName Bank country field label
4734
+ * @uiGroup Step 4 Properties
4735
+ */
4736
+ this.step4_bankLocationLabel = "Bank country location";
4737
+ /**
4738
+ * @uiName Beneficiary account field label
4739
+ * @uiGroup Step 4 Properties
4740
+ */
4741
+ this.step4_beneficiaryAccountNameLabel = "Beneficiary account name";
4742
+ /**
4743
+ * @uiName Bank account type field label
4744
+ * @uiGroup Step 4 Properties
4745
+ */
4746
+ this.step4_bankAccountTypeLabel = "Bank account type";
4747
+ /**
4748
+ * @uiName Checking account option
4749
+ * @uiGroup Step 4 Properties
4750
+ */
4751
+ this.step4_checkingSelectItemLabel = "Checking";
4752
+ /**
4753
+ * Label text for the savings account type select item
4754
+ * @uiName Savings account options
4755
+ * @uiGroup Step 4 Properties
4756
+ */
4757
+ this.step4_savingsSelectItemLabel = "Savings";
4758
+ /**
4759
+ * @uiName Bank account number field label
4760
+ * @uiGroup Step 4 Properties
4761
+ */
4762
+ this.step4_bankAccountNumberLabel = "Bank account number";
4763
+ /**
4764
+ * @uiName IBAN field label
4765
+ * @uiGroup Step 4 Properties
4766
+ */
4767
+ this.step4_ibanLabel = "IBAN";
4768
+ /**
4769
+ * @uiName SWIFT code field label
4770
+ * @uiGroup Step 4 Properties
4771
+ */
4772
+ this.step4_swiftCodeLabel = "SWIFT code";
4773
+ /**
4774
+ * @uiName Routing code field label
4775
+ * @uiGroup Step 4 Properties
4776
+ */
4777
+ 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} }";
4778
+ /**
4779
+ * @uiName Bank name field label
4780
+ * @uiGroup Step 4 Properties
4781
+ */
4782
+ this.step4_bankNameLabel = "Bank name";
4783
+ /**
4784
+ * @uiName Classification entity field label
4785
+ * @uiGroup Step 4 Properties
4786
+ */
4787
+ this.step4_classificationEntityLabel = "Classification entity";
4788
+ /**
4789
+ * One of three options listed for the classification field
4790
+ * @uiName Business classification option
4791
+ * @uiGroup Step 4 Properties
4792
+ */
4793
+ this.step4_businessSelectItemLabel = "Business";
4794
+ /**
4795
+ * One of three options listed for the classification field
4796
+ * @uiName Individual classification option
4797
+ * @uiGroup Step 4 Properties
4798
+ */
4799
+ this.step4_individualSelectItemLabel = "Individual";
4800
+ /**
4801
+ * One of three options listed for the classification field
4802
+ * @uiName Foreign classification option
4803
+ * @uiGroup Step 4 Properties
4804
+ */
4805
+ this.step4_foreignSelectItemLabel = "Foreign";
4806
+ /**
4807
+ * @uiName Classification CPF field label
4808
+ * @uiGroup Step 4 Properties
4809
+ */
4810
+ this.step4_classificationCPFLabel = "Classification CPF";
4811
+ /**
4812
+ * @uiName Patronymic name field label
4813
+ * @uiGroup Step 4 Properties
4814
+ */
4815
+ this.step4_patronymicNameLabel = "Patronymic name";
4816
+ /**
4817
+ * @uiName VO code field label
4818
+ * @uiGroup Step 4 Properties
4819
+ */
4820
+ this.step4_voCodeLabel = "VO code";
4821
+ /**
4822
+ * @uiName Agency code field label
4823
+ * @uiGroup Step 4 Properties
4824
+ */
4825
+ this.step4_agencyCodeLabel = "Agency code";
4826
+ /**
4827
+ * @uiName Branch code field label
4828
+ * @uiGroup Step 4 Properties
4829
+ */
4830
+ this.step4_branchCodeLabel = "Branch code";
4831
+ /**
4832
+ * Label text for the classification input field
4833
+ * @uiName Classification field label
4834
+ * @uiGroup Step 4 Properties
4835
+ */
4836
+ this.step4_classificationLabel = "Classification";
4837
+ /**
4838
+ * @uiName Taxpayer ID field label
4839
+ * @uiGroup Step 4 Properties
4840
+ */
4841
+ this.step4_taxPayerIdLabel = "Beneficiary INN";
4842
+ /**
4843
+ * @uiName Bank address field label
4844
+ * @uiGroup Step 4 Properties
4845
+ */
4846
+ this.step4_bankAddressLabel = "Bank address";
4847
+ /**
4848
+ * @uiName Bank city field label
4849
+ * @uiGroup Step 4 Properties
4850
+ */
4851
+ this.step4_bankCityLabel = "Bank city";
4852
+ /**
4853
+ * @uiName Bank province/state field label
4854
+ * @uiGroup Step 4 Properties
4855
+ */
4856
+ this.step4_bankStateLabel = "Bank Province / State";
4857
+ /**
4858
+ * @uiName Bank postal code field label
4859
+ * @uiGroup Step 4 Properties
4860
+ */
4861
+ this.step4_bankPostalCodeLabel = "Bank postal code";
4862
+ /**
4863
+ * Default payment method to the participants’ bank account.
4864
+ * @uiName EFT withdrawal payment method
4865
+ * @uiGroup Step 4 Properties
4866
+ */
4867
+ this.step4_eftWithdrawalLabel = "EFT Withdrawal (free)";
4868
+ /**
4869
+ * @uiName FX Wire Processing fee text
4870
+ * @uiGroup Step 4 Properties
4871
+ */
4872
+ this.step4_fxWireProcessingFeeLabel = "FX Wire (Processing Fee {currency}{defaultFxFee}.00)";
4873
+ /**
4874
+ * @uiName Text for verify email dialog
4875
+ * @uiGroup Step 4 Properties
4876
+ */
4877
+ this.step4_verifyEmailHeaderText = "Verify your email";
4878
+ /**
4879
+ * @uiName Verify code widget header text
4880
+ * @uiGroup Step 4 Properties
4881
+ */
4882
+ this.step4_verifyEmailDescriptionText = "Verify your email to update your payment settings. Enter the code sent to {email} from our referral provider, impact.com.";
4883
+ /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4884
+ DASHBOARD PROPS:
4885
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
4886
+ /**
4887
+ * @uiName Active tax form badge label
4888
+ * @uiGroup Dashboard Properties
4889
+ */
4890
+ this.dashboard_statusTextActive = "Active";
4891
+ /**
4892
+ * @uiName Invalid tax form badge label
4893
+ * @uiGroup Dashboard Properties
4894
+ */
4895
+ this.dashboard_statusTextNotActive = "Invalid Tax Form";
4896
+ /**
4897
+ * Displayed when the participant submitted their form but it is awaiting review.
4898
+ *
4899
+ * @uiName Not verified tax form badge label
4900
+ * @uiGroup Dashboard Properties
4901
+ */
4902
+ this.dashboard_statusTextNotVerified = "Not Verified";
4903
+ /**
4904
+ * Additional text displayed next to the tax form's status badge
4905
+ *
4906
+ * @uiName Active W-9 description
4907
+ * @uiGroup Dashboard Properties
4908
+ */
4909
+ this.dashboard_badgeTextSubmittedOn = "Submitted on {dateSubmitted}.";
4910
+ /**
4911
+ * Additional text displayed next to the tax form's status badge.
4912
+ *
4913
+ * @uiName Active W-8 description
4914
+ * @uiGroup Dashboard Properties
4915
+ */
4916
+ this.dashboard_badgeTextSubmittedOnW8 = "Submitted on {dateSubmitted}. Valid for three years after submission.";
4917
+ /**
4918
+ * Additional text displayed next to the tax form's status badge.
4919
+ *
4920
+ * @uiName Tax form in review description
4921
+ * @uiGroup Dashboard Properties
4922
+ */
4923
+ this.dashboard_badgeTextAwaitingReview = "Awaiting review. Submitted on {dateSubmitted}.";
4924
+ /**
4925
+ * Part of the alert displayed at the top of the page.
4926
+ *
4927
+ * @uiName Inactive W-9 error message title
4928
+ * @uiGroup Dashboard Properties
4929
+ * @uiWidget textArea
4930
+ */
4931
+ this.dashboard_taxAlertHeaderNotActiveW9 = "Your W9 tax form has personal information that doesn’t match your profile";
4932
+ /**
4933
+ * Part of the alert displayed at the top of the page.
4934
+ *
4935
+ * @uiName Inactive W-8 error message title
4936
+ * @uiGroup Dashboard Properties
4937
+ * @uiWidget textArea
4938
+ */
4939
+ this.dashboard_taxAlertHeaderNotActiveW8 = "{documentType} tax form is invalid";
4940
+ /**
4941
+ * Part of the alert displayed at the top of the page.
4942
+ *
4943
+ * @uiName Inactive W-9 error message description
4944
+ * @uiGroup Dashboard Properties
4945
+ * @uiWidget textArea
4946
+ */
4947
+ this.dashboard_taxAlertNotActiveMessageW9 = "Please resubmit a new {documentType} form.";
4948
+ /**
4949
+ * Part of the alert displayed at the top of the page.
4950
+ *
4951
+ * @uiName Inactive W-8 error message description
4952
+ * @uiGroup Dashboard Properties
4953
+ */
4954
+ 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.";
4955
+ /**
4956
+ * Additional text displayed next to the tax form's status badge.
4957
+ *
4958
+ * @uiName Invalid tax form description
4959
+ * @uiGroup Dashboard Properties
4960
+ * @uiWidget textArea
4961
+ */
4962
+ this.dashboard_invalidForm = "Make sure your information is correct and submit new form.";
4963
+ /**
4964
+ * @uiName Payout information section header
4965
+ * @uiGroup Dashboard Properties
4966
+ */
4967
+ this.dashboard_bankingInformationSectionHeader = "Payout Information";
4968
+ /**
4969
+ * @uiName Tax document section header
4970
+ * @uiGroup Dashboard Properties
4971
+ */
4972
+ this.dashboard_taxDocumentSectionHeader = "Tax documents";
4973
+ /**
4974
+ * Displayed under the tax document section header.
4975
+ *
4976
+ * @uiName Tax documents section description
4977
+ * @uiGroup Dashboard Properties
4978
+ */
4979
+ this.dashboard_taxDocumentSectionSubHeader = "{documentType} tax form";
4980
+ /**
4981
+ * No other statuses or badges will be displayed in the tax form section in this case.
4982
+ *
4983
+ * @uiName Tax form not required text
4984
+ * @uiGroup Dashboard Properties
4985
+ * @uiWidget textArea
4986
+ */
4987
+ 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.";
4988
+ /**
4989
+ *
4990
+ * @uiName Indirect tax section header
4991
+ * @uiGroup Dashboard Properties
4992
+ */
4993
+ this.dashboard_indirectTaxInfoSectionHeader = "Indirect tax";
4994
+ /**
4995
+ * If the participant is registered for indirect tax in Canada, display the province they’re registered in.
4996
+ *
4997
+ * @uiName Canadian province of indirect tax
4998
+ * @uiGroup Dashboard Properties
4999
+ */
5000
+ this.dashboard_indirectTaxInfoCanada = "Registered in {province}, {country}";
5001
+ /**
5002
+ * If the participant is registered for indirect tax, display the country they’re registered in.
5003
+ *
5004
+ * @uiName Indirect tax country
5005
+ * @uiGroup Dashboard Properties
5006
+ */
5007
+ this.dashboard_indirectTaxInfoOtherCountry = "Registered in {country}";
5008
+ /**
5009
+ * If the participant is registered for indirect tax in Spain, display the region they’re registered in.
5010
+ *
5011
+ * @uiName Spanish region of indirect tax
5012
+ * @uiGroup Dashboard Properties
5013
+ */
5014
+ this.dashboard_indirectTaxInfoSpain = "Registered in {country}, {subRegion}";
5015
+ /**
5016
+ * @uiName Indirect tax tooltip
5017
+ * @uiGroup Dashboard Properties
5018
+ * @uiWidget textArea
5019
+ */
5020
+ this.dashboard_indirectTaxTooltipSupport = "To make changes to your indirect tax information, please contact our {supportLink}.";
5021
+ /**
5022
+ * Displayed to participants who have submitted their indirect tax information.
5023
+ *
5024
+ * @uiName Indirect tax details
5025
+ * @uiGroup Dashboard Properties
5026
+ */
5027
+ this.dashboard_indirectTaxDetails = "{indirectTaxType} number: {indirectTaxNumber}";
5028
+ /**
5029
+ * @uiName Submit new tax form button label
5030
+ * @uiGroup Dashboard Properties
5031
+ */
5032
+ this.dashboard_newFormButton = "Submit new form";
5033
+ /**
5034
+ * @uiName Edit payment info button label
5035
+ * @uiGroup Dashboard Properties
5036
+ */
5037
+ this.dashboard_editPaymentInformationButton = "Edit Payout Information";
5038
+ /**
5039
+ * @uiName Not registered for indirect tax text
5040
+ * @uiGroup Dashboard Properties
5041
+ * @uiWidget textArea
5042
+ */
5043
+ 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.";
5044
+ /**
5045
+ * Displayed to participants registered in Quebec, Canada.
5046
+ * @uiName QST indirect tax details
5047
+ * @uiGroup Dashboard Properties
5048
+ */
5049
+ this.dashboard_qstNumber = "QST number: {qstNumber}";
5050
+ /**
5051
+ * @uiName Spain sub-region indirect tax number
5052
+ * @uiGroup Dashboard Properties
5053
+ */
5054
+ this.dashboard_subRegionTaxNumber = "Income tax number: {subRegionTaxNumber}";
5055
+ /**
5056
+ * @uiName Payout status badge
5057
+ * @uiGroup Dashboard Properties
5058
+ */
5059
+ this.dashboard_statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
5060
+ /**
5061
+ * Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
5062
+ * @uiName Payout schedule by threshold text
5063
+ * @uiGroup Dashboard Properties
5064
+ */
5065
+ this.dashboard_thresholdPayoutText = "Next payout occurs when balance is {thresholdBalance}";
5066
+ /**
5067
+ * Shown before the participant’s bank account information.
5068
+ * @uiName Bank account field label
5069
+ * @uiGroup Dashboard Properties
5070
+ */
5071
+ this.dashboard_accountText = "Account";
5072
+ /**
5073
+ * Part of the Invoice table displayed at the bottom of the page.
5074
+ * @uiName Invoice number column title
5075
+ * @uiGroup Dashboard Properties
5076
+ */
5077
+ this.dashboard_invoiceColumnTitle = "Invoice";
5078
+ /**
5079
+ * Part of the Invoice table displayed at the bottom of the page.
5080
+ * @uiName Date column title
5081
+ * @uiGroup Dashboard Properties
5082
+ */
5083
+ this.dashboard_dateColumnTitle = "Date";
5084
+ /**
5085
+ * Part of the Invoice table displayed at the bottom of the page.
5086
+ * @uiName Earnings column title
5087
+ * @uiGroup Dashboard Properties
5088
+ */
5089
+ this.dashboard_earningsColumnTitle = "Earnings";
5090
+ /**
5091
+ * Part of the Invoice table displayed at the bottom of the page.
5092
+ * @uiName Indirect tax column title
5093
+ * @uiGroup Dashboard Properties
5094
+ */
5095
+ this.dashboard_indirectTaxColumnTitle = "Indirect tax";
5096
+ /**
5097
+ * Displayed under the payout details card.
5098
+ * @uiName Payout from impact text
5099
+ * @uiGroup Dashboard Properties
5100
+ * @uiWidget textArea
5101
+ */
5102
+ this.dashboard_payoutFromImpact = "Your balance may take up to 24 hours to update. Payouts will be sent from our referral program provider, impact.com.";
5103
+ /**
5104
+ * Part of the Invoice table displayed at the bottom of the page.
5105
+ * @uiName Earnings after tax column title
5106
+ * @uiGroup Dashboard Properties
5107
+ */
5108
+ this.dashboard_earningsAfterTaxColumnTitle = "Earnings after tax";
5109
+ /**
5110
+ * Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
5111
+ * @uiName Payout error message title
5112
+ * @uiGroup Dashboard Properties
5113
+ * @uiWidget textArea
5114
+ */
5115
+ this.dashboard_payoutHoldAlertHeader = "Your payout is on hold";
5116
+ /**
5117
+ * Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
5118
+ * @uiName Payout error message description
5119
+ * @uiGroup Dashboard Properties
5120
+ * @uiWidget textArea
5121
+ */
5122
+ this.dashboard_payoutHoldAlertDescription = "Please contact our {supportLink} or check your inbox for an email from our referral program provider, impact.com.";
5123
+ /**
5124
+ * Text displayed for existing publishers that do not have saved banking information.
5125
+ * @uiName Payout missing information subtext
5126
+ * @uiGroup Dashboard Properties
5127
+ */
5128
+ this.dashboard_payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
5129
+ /**
5130
+ * @uiName Invoice table description
5131
+ * @uiGroup Dashboard Properties
5132
+ */
5133
+ this.dashboard_invoiceDescription = "View and download your invoices to report your earnings and stay tax compliant.";
5134
+ /**
5135
+ * @uiName Invoice table previous page button label
5136
+ * @uiGroup Dashboard Properties
5137
+ */
5138
+ this.dashboard_invoicePrevLabel = "Prev";
5139
+ /**
5140
+ * @uiName Invoice table next page button label
5141
+ * @uiGroup Dashboard Properties
5142
+ */
5143
+ this.dashboard_invoiceMoreLabel = "Next";
5144
+ /**
5145
+ * @uiName Invoice table title
5146
+ * @uiGroup Dashboard Properties
5147
+ */
5148
+ this.dashboard_invoiceHeader = "Invoices";
5149
+ /**
5150
+ * @uiName Empty invoice table header
5151
+ * @uiGroup Dashboard Properties
5152
+ */
5153
+ this.dashboard_invoiceEmptyStateHeader = "View your invoice details";
5154
+ /**
5155
+ * @uiName Empty invoice table description
5156
+ * @uiGroup Dashboard Properties
5157
+ */
5158
+ this.dashboard_invoiceEmptyStateText = "Refer a friend to view the status of your invoices and rewards earned";
5159
+ /**
5160
+ * @uiName Replace tax form modal header
5161
+ * @uiGroup Dashboard Properties
5162
+ */
5163
+ this.dashboard_replaceTaxFormModalHeader = "Replace existing tax form";
5164
+ /**
5165
+ * @uiName Replace tax form modal body text
5166
+ * @uiGroup Dashboard Properties
5167
+ * @uiWidget textArea
5168
+ */
5169
+ 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.";
5170
+ /**
5171
+ * Part of the alert displayed at the top of the page when the user needs to verify their identity.
5172
+ * @uiName Verification required alert message title
5173
+ * @uiGroup Dashboard Properties
5174
+ * @uiWidget textArea
5175
+ */
5176
+ this.dashboard_verificationRequiredHeader = "Verify your identity";
5177
+ /**
5178
+ * Part of the alert displayed at the top of the page when the user needs to verify their identity
5179
+ * @uiName Verification required alert message description
5180
+ * @uiGroup Dashboard Properties
5181
+ * @uiWidget textArea
5182
+ */
5183
+ 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}.";
5184
+ /**
5185
+ * @uiName Verification required internal alert header
5186
+ * @uiGroup Dashboard Properties
5187
+ * @uiWidget textArea
5188
+ */
5189
+ this.dashboard_verificationRequiredInternalHeader = "Identity Verification in Progress";
5190
+ /**
5191
+ * @uiName Verification required internal alert description
5192
+ * @uiGroup Dashboard Properties
5193
+ * @uiWidget textArea
5194
+ */
5195
+ 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}.";
5196
+ /**
5197
+ * @uiName Verification review internal alert header
5198
+ * @uiGroup Dashboard Properties
5199
+ * @uiWidget textArea
5200
+ */
5201
+ this.dashboard_verificationReviewInternalHeader = "Identity Verification Under Review";
5202
+ /**
5203
+ * @uiName Verification review internal alert description
5204
+ * @uiGroup Dashboard Properties
5205
+ * @uiWidget textArea
5206
+ */
5207
+ 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}.";
5208
+ /**
5209
+ * @uiName Verification failed internal alert header
5210
+ * @uiGroup Dashboard Properties
5211
+ * @uiWidget textArea
5212
+ */
5213
+ this.dashboard_verificationFailedInternalHeader = "Identity Verification Unsuccessful";
5214
+ /**
5215
+ * @uiName Verification failed internal alert description
5216
+ * @uiGroup Dashboard Properties
5217
+ * @uiWidget textArea
5218
+ */
5219
+ 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}.";
5220
+ /**
5221
+ * Part of the alert displayed at the top of the page when the user needs to verify their identity.
5222
+ * @uiName Verification required alert button text
5223
+ * @uiGroup Dashboard Properties
5224
+ * @uiWidget textArea
5225
+ */
5226
+ this.dashboard_verificationRequiredButtonText = "Start Verification";
5227
+ /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5228
+ GENERAL PROPS:
5229
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
5230
+ /**
5231
+ * @uiName Setup progress
5232
+ * @uiGroup General Form Properties
5233
+ */
5234
+ this.formStep = "Step {step} of {count}";
5235
+ /**
5236
+ * Part of the alert displayed at the top of the page.
5237
+ * @uiName Form submission error message title
5238
+ * @uiGroup General Form Properties
5239
+ * @uiWidget textArea
5240
+ */
5241
+ this.generalErrorTitle = "There was a problem submitting your information";
5242
+ /**
5243
+ * Part of the alert displayed at the top of the page.
5244
+ * @uiName Form submission error message description
5245
+ * @uiGroup General Form Properties
5246
+ * @uiWidget textArea
5247
+ */
5248
+ this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact our {supportLink}.";
5249
+ /**
5250
+ * Displayed under a field that is missing required information.
5251
+ * @uiName Empty form field error message
5252
+ * @uiGroup General Form Properties
5253
+ */
5254
+ this.fieldRequiredError = "{fieldName} is required";
5255
+ /**
5256
+ * Displayed under a field that includes invalid characters (non-ASCII).
5257
+ * @uiName Invalid character error message
5258
+ * @uiGroup General Form Properties
5259
+ */
5260
+ this.invalidCharacterError = "{fieldName} includes characters that aren't supported.";
5261
+ /**
5262
+ * Displayed under a field when it has an invalid entry.
5263
+ * @uiName Form field error message
5264
+ * @uiGroup General Form Properties
5265
+ */
5266
+ this.fieldInvalidError = "{fieldName} is invalid";
5267
+ /**
5268
+ * @uiName Continue button label
5269
+ * @uiGroup General Form Properties
5270
+ */
5271
+ this.continueButton = "Continue";
5272
+ /**
5273
+ * @uiName Back button label
5274
+ * @uiGroup General Form Properties
5275
+ */
5276
+ this.backButton = "Back";
5277
+ /**
5278
+ * @uiName Cancel button label
5279
+ * @uiGroup General Form Properties
5280
+ */
5281
+ this.cancelButton = "Cancel";
5282
+ /**
5283
+ * Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com.
5284
+ * @uiName Participant is a partner alert title
5285
+ * @uiGroup General Form Properties
5286
+ * @uiWidget textArea
5287
+ */
5288
+ this.isPartnerAlertHeader = "An account with this email already exists with our referral program provider, impact.com";
5289
+ /**
5290
+ * Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com.
5291
+ * @uiName Participant is a partner alert description
5292
+ * @uiGroup General Form Properties
5293
+ * @uiWidget textArea
5294
+ */
5295
+ 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.";
5296
+ /**
5297
+ * Placeholder text displayed in the country search dropdown
5298
+ * @uiName Country field placeholder text
5299
+ * @uiGroup General Form Properties
5300
+ */
5301
+ this.searchForCountryText = "Search for country..";
5302
+ /**
5303
+ * Part of the alert displayed at the top of the page.
5304
+ * @uiName Page load error message title
5305
+ * @uiGroup General Form Properties
5306
+ * @uiWidget textArea
5307
+ */
5308
+ this.loadingErrorAlertHeader = "There was a problem loading your form";
5309
+ /**
5310
+ * Part of the alert displayed at the top of the page.
5311
+ * @uiName Page load error message description
5312
+ * @uiGroup General Form Properties
5313
+ * @uiWidget textArea
5314
+ */
5315
+ this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact our {supportLink}.";
5316
+ /**
5317
+ * Displayed at the top of the page on all set up steps.
5318
+ * @uiName Page description
5319
+ * @uiGroup General Form Properties
5320
+ */
5321
+ this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
5322
+ /**
5323
+ * Link text for contacting support team
5324
+ * @uiName Suport link text
5325
+ * @uiGroup General Form Properties
5326
+ */
5327
+ this.supportLink = "support team";
5328
+ h$1(this);
5329
+ }
5330
+ disconnectedCallback() { }
5331
+ // this field is required prop
5332
+ getGeneralStepTextProps(prefix) {
5333
+ const props = getProps(this);
5334
+ return {
5335
+ ...extractProps(props, prefix),
5336
+ generalErrorTitle: props.generalErrorTitle,
5337
+ generalErrorDescription: props.generalErrorDescription,
5338
+ fieldRequiredError: props.fieldRequiredError,
5339
+ invalidCharacterError: props.invalidCharacterError,
5340
+ fieldInvalidError: props.fieldInvalidError,
5341
+ continueButton: props.continueButton,
5342
+ backButton: props.backButton,
5343
+ cancelButton: props.cancelButton,
5344
+ isPartnerAlertHeader: props.isPartnerAlertHeader,
5345
+ isPartnerAlertDescription: props.isPartnerAlertDescription,
5346
+ loadingErrorAlertHeader: props.loadingErrorAlertHeader,
5347
+ loadingErrorAlertDescription: props.loadingErrorAlertDescription,
5348
+ taxAndPayoutsDescription: props.taxAndPayoutsDescription,
5349
+ searchForCountryText: props.searchForCountryText,
5350
+ formStep: props.formStep,
5351
+ supportLink: props.supportLink,
5352
+ };
5353
+ }
5354
+ render() {
5355
+ var _a, _b;
5356
+ const props = isDemo() ? useDemoTaxAndCash(this) : useTaxAndCash();
5357
+ // @ts-ignore
5358
+ if ((_a = this.demoData) === null || _a === void 0 ? void 0 : _a.showTextProps) {
5359
+ const textProps = getProps(this);
5360
+ return (h("div", null, (_b = Object.keys(textProps)) === null || _b === void 0 ? void 0 : _b.map((prop) => {
5361
+ if (prop === "demoData")
5362
+ return;
5363
+ return (h("div", null, h("b", null, prop, ":"), " ", this[prop], h("hr", null)));
5364
+ })));
5365
+ }
5366
+ switch (props.step) {
5367
+ case "/1":
5368
+ return (h("sqm-user-info-form", Object.assign({}, this.getGeneralStepTextProps("step1_"))));
5369
+ case "/2":
5370
+ return (h("sqm-indirect-tax-form", Object.assign({}, this.getGeneralStepTextProps("step2_"))));
5371
+ case "/3":
5372
+ return (h("sqm-docusign-form", Object.assign({}, this.getGeneralStepTextProps("step3_"))));
5373
+ case "/4":
5374
+ return (h("sqm-banking-info-form", Object.assign({}, this.getGeneralStepTextProps("step4_"))));
5375
+ case "/dashboard":
5376
+ return (h("sqm-tax-and-cash-dashboard", Object.assign({}, this.getGeneralStepTextProps("dashboard_"))));
5377
+ case "/error":
5378
+ return (h(ErrorView, { loadingErrorAlertHeader: this.loadingErrorAlertHeader, loadingErrorAlertDescription: this.loadingErrorAlertDescription }));
5379
+ }
5380
+ return h(LoadingView, null);
5381
+ }
5382
+ };
5383
+ function useDemoTaxAndCash(props) {
5384
+ const [step, setStep] = In({
5385
+ namespace: TAX_CONTEXT_NAMESPACE,
5386
+ initialValue: "/1",
5387
+ });
5388
+ return cjs({
5389
+ step,
5390
+ setStep,
5391
+ }, props.demoData || {}, { arrayMerge: (_, a) => a });
5392
+ }
5393
+
5394
+ const style$6 = {
5395
+ ErrorAlertContainer: {
5396
+ "&::part(base)": {
5397
+ backgroundColor: "var(--sqm-danger-color-background)",
5398
+ border: "none",
5399
+ },
5400
+ "& sl-icon::part(base)": {
5401
+ color: "var(--sqm-danger-color-text)",
5402
+ },
5403
+ },
5404
+ WarningAlertContainer: {
5405
+ "&::part(base)": {
5406
+ backgroundColor: "var(--sqm-warning-color-background)",
3709
5407
  border: "none",
3710
5408
  maxWidth: "600px",
3711
5409
  },
@@ -3884,8 +5582,8 @@ const style$5 = {
3884
5582
  },
3885
5583
  DialogButton: { margin: "auto", width: "100%" },
3886
5584
  };
3887
- const sheet$4 = createStyleSheet(style$5);
3888
- const styleString$4 = sheet$4.toString();
5585
+ const sheet$5 = createStyleSheet(style$6);
5586
+ const styleString$5 = sheet$5.toString();
3889
5587
  const TaxAndCashDashboardView = (props) => {
3890
5588
  var _a, _b, _c, _d;
3891
5589
  const { states, text, callbacks, slots } = props;
@@ -3903,7 +5601,7 @@ const TaxAndCashDashboardView = (props) => {
3903
5601
  buttonText: text.verificationRequiredButtonText,
3904
5602
  alertType: "warning",
3905
5603
  icon: "exclamation-triangle",
3906
- class: sheet$4.classes.WarningHoldAlertContainer,
5604
+ class: sheet$5.classes.WarningHoldAlertContainer,
3907
5605
  };
3908
5606
  case "VERIFICATION:INTERNAL":
3909
5607
  return {
@@ -3916,7 +5614,7 @@ const TaxAndCashDashboardView = (props) => {
3916
5614
  }),
3917
5615
  alertType: "warning",
3918
5616
  icon: "exclamation-triangle",
3919
- class: sheet$4.classes.WarningHoldAlertContainer,
5617
+ class: sheet$5.classes.WarningHoldAlertContainer,
3920
5618
  };
3921
5619
  case "VERIFICATION:REVIEW":
3922
5620
  return {
@@ -3929,7 +5627,7 @@ const TaxAndCashDashboardView = (props) => {
3929
5627
  }),
3930
5628
  alertType: "warning",
3931
5629
  icon: "exclamation-triangle",
3932
- class: sheet$4.classes.WarningHoldAlertContainer,
5630
+ class: sheet$5.classes.WarningHoldAlertContainer,
3933
5631
  };
3934
5632
  case "VERIFICATION:FAILED":
3935
5633
  return {
@@ -3942,7 +5640,7 @@ const TaxAndCashDashboardView = (props) => {
3942
5640
  }),
3943
5641
  alertType: "critical",
3944
5642
  icon: "exclamation-octagon",
3945
- class: sheet$4.classes.ErrorHoldAlertContainer,
5643
+ class: sheet$5.classes.ErrorHoldAlertContainer,
3946
5644
  };
3947
5645
  case "HOLD":
3948
5646
  return {
@@ -3956,14 +5654,14 @@ const TaxAndCashDashboardView = (props) => {
3956
5654
  buttonText: null,
3957
5655
  alertType: "warning",
3958
5656
  icon: "exclamation-triangle",
3959
- class: sheet$4.classes.WarningHoldAlertContainer,
5657
+ class: sheet$5.classes.WarningHoldAlertContainer,
3960
5658
  };
3961
5659
  default:
3962
5660
  return;
3963
5661
  }
3964
5662
  }
3965
5663
  const statusMap = {
3966
- NOT_VERIFIED: (h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
5664
+ NOT_VERIFIED: (h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
3967
5665
  h("sl-badge", { type: "warning", pill: true }, text.statusTextNotVerified),
3968
5666
  h("p", null, intl.formatMessage({
3969
5667
  id: `badgeTextAwaitingReview`,
@@ -3971,7 +5669,7 @@ const TaxAndCashDashboardView = (props) => {
3971
5669
  }, {
3972
5670
  dateSubmitted: states.dateSubmitted,
3973
5671
  })))),
3974
- ACTIVE: (h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
5672
+ ACTIVE: (h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
3975
5673
  h("sl-badge", { type: "success", pill: true }, text.statusTextActive),
3976
5674
  h("p", null, intl.formatMessage({
3977
5675
  id: `badgeTextSubmittedOn`,
@@ -3981,12 +5679,12 @@ const TaxAndCashDashboardView = (props) => {
3981
5679
  }, {
3982
5680
  dateSubmitted: states.dateSubmitted,
3983
5681
  })))),
3984
- INACTIVE: (h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
5682
+ INACTIVE: (h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
3985
5683
  h("sl-badge", { type: "danger", pill: true }, text.statusTextNotActive),
3986
5684
  h("p", null, text.invalidForm))),
3987
5685
  };
3988
5686
  const alertMap = {
3989
- INACTIVE: (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.ErrorAlertContainer },
5687
+ INACTIVE: (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.ErrorAlertContainer },
3990
5688
  h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
3991
5689
  h("strong", null, intl.formatMessage({
3992
5690
  id: `taxAlertHeaderNotActive`,
@@ -4036,9 +5734,9 @@ const TaxAndCashDashboardView = (props) => {
4036
5734
  };
4037
5735
  return (h("div", null,
4038
5736
  h("div", null,
4039
- h("style", { type: "text/css" }, styleString$4),
5737
+ h("style", { type: "text/css" }, styleString$5),
4040
5738
  states.loadingError && (h("div", null,
4041
- h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.ErrorAlertContainer },
5739
+ h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.ErrorAlertContainer },
4042
5740
  h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
4043
5741
  h("strong", null, text.error.loadingErrorAlertHeader),
4044
5742
  h("br", null),
@@ -4048,7 +5746,7 @@ const TaxAndCashDashboardView = (props) => {
4048
5746
  }, {
4049
5747
  supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
4050
5748
  })))),
4051
- ((_a = states.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.ErrorAlertContainer },
5749
+ ((_a = states.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.ErrorAlertContainer },
4052
5750
  h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
4053
5751
  h("strong", null, text.error.generalTitle),
4054
5752
  h("br", null),
@@ -4063,49 +5761,49 @@ const TaxAndCashDashboardView = (props) => {
4063
5761
  h("strong", null, getAlert(states.payoutStatus).header),
4064
5762
  h("p", { style: { margin: "0" } }, getAlert(states.payoutStatus).description),
4065
5763
  getAlert(states.payoutStatus).buttonText && (h("sl-button", { style: { marginTop: "var(--sl-spacing-x-small)" }, type: "default", loading: states.veriffLoading, onClick: () => callbacks.onVerifyClick() }, getAlert(states.payoutStatus).buttonText)))),
4066
- h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet$4.classes.Dialog, open: states.showNewFormDialog, "onSl-hide": callbacks.onNewFormCancel },
5764
+ h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet$5.classes.Dialog, open: states.showNewFormDialog, "onSl-hide": callbacks.onNewFormCancel },
4067
5765
  h("p", null, text.replaceTaxFormModalBodyText),
4068
- h("sl-button", { slot: "footer", type: "primary", class: sheet$4.classes.DialogButton, onClick: callbacks.onNewFormClick }, text.newFormButton),
4069
- h("sl-button", { slot: "footer", type: "default", class: sheet$4.classes.DialogButton, onClick: callbacks.onNewFormCancel }, text.cancelButton)),
5766
+ h("sl-button", { slot: "footer", type: "primary", class: sheet$5.classes.DialogButton, onClick: callbacks.onNewFormClick }, text.newFormButton),
5767
+ h("sl-button", { slot: "footer", type: "default", class: sheet$5.classes.DialogButton, onClick: callbacks.onNewFormCancel }, text.cancelButton)),
4070
5768
  states.status === "INACTIVE" && alertMap[states.status],
4071
5769
  h("div", null,
4072
5770
  h("h3", { style: { marginBottom: "0" } }, text.bankingInformationSectionHeader),
4073
- h("p", { class: sheet$4.classes.PageDescriptionText }, text.taxAndPayoutsDescription),
4074
- h("div", { class: sheet$4.classes.BankingInformationContainer },
5771
+ h("p", { class: sheet$5.classes.PageDescriptionText }, text.taxAndPayoutsDescription),
5772
+ h("div", { class: sheet$5.classes.BankingInformationContainer },
4075
5773
  slots.payoutDetailsCardSlot,
4076
- !states.loading && (h("p", { class: sheet$4.classes.DescriptionText }, text.payoutFromImpact)),
4077
- states.canEditPayoutInfo && (h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$4.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
4078
- h("div", { class: sheet$4.classes.TaxDocumentsContainer },
4079
- h("div", null, states.loading ? (h("div", { class: sheet$4.classes.TaxSectionSkeletonContainer },
4080
- h("sl-skeleton", { class: sheet$4.classes.SkeletonOne }),
4081
- h("sl-skeleton", { class: sheet$4.classes.SkeletonTwo }))) : (h("div", null, states.noFormNeeded ? (h("div", null,
4082
- h("h3", { class: sheet$4.classes.TaxDocumentsSectionHeaderContainer }, text.taxDocumentSectionHeader),
4083
- h("p", { class: sheet$4.classes.TaxDocSubtext }, text.noFormNeededSubtext))) : (h("div", null,
4084
- h("span", { class: sheet$4.classes.TaxFormDetailsContainer },
4085
- h("div", { class: sheet$4.classes.StatusContainer },
5774
+ !states.loading && (h("p", { class: sheet$5.classes.DescriptionText }, text.payoutFromImpact)),
5775
+ states.canEditPayoutInfo && (h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$5.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
5776
+ h("div", { class: sheet$5.classes.TaxDocumentsContainer },
5777
+ h("div", null, states.loading ? (h("div", { class: sheet$5.classes.TaxSectionSkeletonContainer },
5778
+ h("sl-skeleton", { class: sheet$5.classes.SkeletonOne }),
5779
+ h("sl-skeleton", { class: sheet$5.classes.SkeletonTwo }))) : (h("div", null, states.noFormNeeded ? (h("div", null,
5780
+ h("h3", { class: sheet$5.classes.TaxDocumentsSectionHeaderContainer }, text.taxDocumentSectionHeader),
5781
+ h("p", { class: sheet$5.classes.TaxDocSubtext }, text.noFormNeededSubtext))) : (h("div", null,
5782
+ h("span", { class: sheet$5.classes.TaxFormDetailsContainer },
5783
+ h("div", { class: sheet$5.classes.StatusContainer },
4086
5784
  h("h3", null, intl.formatMessage({
4087
5785
  id: "section-subheader",
4088
5786
  defaultMessage: text.taxDocumentSectionSubHeader,
4089
5787
  }, {
4090
5788
  documentType: states.documentTypeString,
4091
5789
  })),
4092
- h("span", { class: sheet$4.classes.StatusAlert }, statusMap[states.status]))),
4093
- states.status !== "NOT_VERIFIED" && (h("sl-button", { disabled: states.disabled || states.loading, onClick: callbacks.onClick, type: "default", class: sheet$4.classes.NewFormButton, exportparts: "base: primarybutton-base" }, text.newFormButton)))))))),
4094
- h("div", { class: sheet$4.classes.IndirectTaxPreviewContainer }, states.loading ? (h("div", { class: sheet$4.classes.TaxSectionSkeletonContainer },
4095
- h("sl-skeleton", { class: sheet$4.classes.SkeletonOne }),
4096
- h("sl-skeleton", { class: sheet$4.classes.SkeletonTwo }))) : (h("div", null,
4097
- h("h3", { class: sheet$4.classes.IndirectTaxPreviewHeaderContainer },
5790
+ h("span", { class: sheet$5.classes.StatusAlert }, statusMap[states.status]))),
5791
+ states.status !== "NOT_VERIFIED" && (h("sl-button", { disabled: states.disabled || states.loading, onClick: callbacks.onClick, type: "default", class: sheet$5.classes.NewFormButton, exportparts: "base: primarybutton-base" }, text.newFormButton)))))))),
5792
+ h("div", { class: sheet$5.classes.IndirectTaxPreviewContainer }, states.loading ? (h("div", { class: sheet$5.classes.TaxSectionSkeletonContainer },
5793
+ h("sl-skeleton", { class: sheet$5.classes.SkeletonOne }),
5794
+ h("sl-skeleton", { class: sheet$5.classes.SkeletonTwo }))) : (h("div", null,
5795
+ h("h3", { class: sheet$5.classes.IndirectTaxPreviewHeaderContainer },
4098
5796
  text.indirectTaxInfoSectionHeader,
4099
- h("sl-tooltip", { trigger: "hover", placement: "right", content: text.indirectTaxTooltipSupport, class: sheet$4.classes.TooltipContainer },
4100
- h("sl-icon", { name: "info-circle", class: sheet$4.classes.ToolTip }))),
4101
- h("div", { class: sheet$4.classes.IndirectTaxPreviewDetails },
4102
- h("span", null, states.notRegistered ? (h("span", { class: sheet$4.classes.NotRegisteredIndirectTaxText }, intl.formatMessage({
5797
+ h("sl-tooltip", { trigger: "hover", placement: "right", content: text.indirectTaxTooltipSupport, class: sheet$5.classes.TooltipContainer },
5798
+ h("sl-icon", { name: "info-circle", class: sheet$5.classes.ToolTip }))),
5799
+ h("div", { class: sheet$5.classes.IndirectTaxPreviewDetails },
5800
+ h("span", null, states.notRegistered ? (h("span", { class: sheet$5.classes.NotRegisteredIndirectTaxText }, intl.formatMessage({
4103
5801
  id: "notRegisteredForTax",
4104
5802
  defaultMessage: text.notRegisteredForTax,
4105
5803
  }, {
4106
5804
  supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
4107
5805
  }))) : (getIndirectTaxRegisteredIn())),
4108
- !states.notRegistered && (h("div", { class: sheet$4.classes.TaxNumberContainer },
5806
+ !states.notRegistered && (h("div", { class: sheet$5.classes.TaxNumberContainer },
4109
5807
  h("span", null, intl.formatMessage({
4110
5808
  id: `indirectTaxDetails`,
4111
5809
  defaultMessage: text.indirectTaxDetails,
@@ -4128,7 +5826,7 @@ const TaxAndCashDashboardView = (props) => {
4128
5826
  }, {
4129
5827
  subRegionTaxNumber: states.subRegionTaxNumber,
4130
5828
  })))),
4131
- !states.notRegistered && (h("div", { class: sheet$4.classes.InvoiceTableContainer },
5829
+ !states.notRegistered && (h("div", { class: sheet$5.classes.InvoiceTableContainer },
4132
5830
  h("sqm-invoice-table", { description: text.invoiceDescription, "prev-label": text.invoicePrevLabel, "more-label": text.invoiceMoreLabel, header: text.invoiceHeader, "empty-state-header": text.invoiceEmptyStateHeader, "empty-state-text": text.invoiceEmptyStateText },
4133
5831
  h("sqm-invoice-table-download-column", null),
4134
5832
  h("sqm-invoice-table-date-column", { "column-title": text.dateColumnTitle }),
@@ -4584,31 +6282,23 @@ const TaxAndCashDashboard = class {
4584
6282
  }
4585
6283
  };
4586
6284
  function useDemoTaxAndCashDashboard(props) {
4587
- // const states = parseStates(props.stateController);
4588
6285
  return cjs({
4589
6286
  states: {
4590
6287
  dateSubmitted: "today",
4591
6288
  documentType: "W9",
4592
6289
  documentTypeString: "W9",
6290
+ status: "ACTIVE",
4593
6291
  country: "United States",
4594
- indirectTaxNumber: "55555555",
6292
+ indirectTaxNumber: 55555555,
4595
6293
  indirectTaxType: "Indirect Tax",
4596
- noFormNeeded: false,
6294
+ noFormNeeded: true,
4597
6295
  disabled: false,
4598
6296
  loading: false,
4599
6297
  showNewFormDialog: false,
4600
6298
  hasHold: false,
4601
- subRegion: "CA",
4602
- subRegionTaxNumber: undefined,
4603
- qstNumber: undefined,
4604
- isBusinessEntity: false,
4605
- province: undefined,
4606
- notRegistered: true,
4607
- loadingError: false,
6299
+ showVerifyIdentity: false,
4608
6300
  payoutStatus: "DONE",
4609
6301
  veriffLoading: false,
4610
- canEditPayoutInfo: true,
4611
- status: "ACTIVE",
4612
6302
  },
4613
6303
  callbacks: {
4614
6304
  onClick: () => console.debug("check step"),
@@ -4618,13 +6308,6 @@ function useDemoTaxAndCashDashboard(props) {
4618
6308
  onVerifyClick: () => console.log("verify"),
4619
6309
  },
4620
6310
  text: props.getTextProps(),
4621
- slots: {
4622
- payoutDetailsCardSlot: (h("sqm-payout-details-card", { demoData: {
4623
- states: {
4624
- badgeStatus: "nextPayout",
4625
- },
4626
- } })),
4627
- },
4628
6311
  }, props.demoData || {}, { arrayMerge: (_, a) => a });
4629
6312
  }
4630
6313
 
@@ -5599,7 +7282,7 @@ const PHONE_EXTENSIONS = {
5599
7282
  },
5600
7283
  };
5601
7284
 
5602
- const style$6 = {
7285
+ const style$7 = {
5603
7286
  FormWrapper: {},
5604
7287
  ErrorInput: {
5605
7288
  "&::part(base)": {
@@ -5699,9 +7382,9 @@ const style$6 = {
5699
7382
  },
5700
7383
  },
5701
7384
  };
5702
- const sheet$5 = createStyleSheet(style$6);
5703
- const styleString$5 = sheet$5.toString();
5704
- const vanillaStyle$3 = `
7385
+ const sheet$6 = createStyleSheet(style$7);
7386
+ const styleString$6 = sheet$6.toString();
7387
+ const vanillaStyle$4 = `
5705
7388
  :host{
5706
7389
  display: block;
5707
7390
  }
@@ -5821,7 +7504,7 @@ const vanillaStyle$3 = `
5821
7504
  background-color: var(--sqm-input-background, #fff);
5822
7505
  border-radius: var(--sqm-input-border-radius, var(--sl-input-border-radius-large), 0.25rem);
5823
7506
  color: var(--sqm-input-color, white);
5824
- border-width: var(--sqm-border-thickness, 1px);
7507
+ border-width: var(--sqm-border-width, 1px);
5825
7508
  border-style: solid;
5826
7509
  border-color: var(--sqm-input-border-color, #ccc);
5827
7510
  }
@@ -5879,7 +7562,7 @@ const vanillaStyle$3 = `
5879
7562
  const UserInfoFormView = (props) => {
5880
7563
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
5881
7564
  const { states, states: { formState }, callbacks, text, refs, data, } = props;
5882
- const { classes } = sheet$5;
7565
+ const { classes } = sheet$6;
5883
7566
  const bankingCollectionText = intl.formatMessage({
5884
7567
  id: "bankingCollectionText",
5885
7568
  defaultMessage: text.allowBankingCollection,
@@ -5902,10 +7585,10 @@ const UserInfoFormView = (props) => {
5902
7585
  }
5903
7586
  return (h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
5904
7587
  h("style", { type: "text/css" },
5905
- styleString$5,
5906
- vanillaStyle$3),
7588
+ styleString$6,
7589
+ vanillaStyle$4),
5907
7590
  states.loadingError && (h("div", null,
5908
- h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.AlertContainer },
7591
+ h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$6.classes.AlertContainer },
5909
7592
  h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
5910
7593
  h("strong", null, text.error.loadingErrorAlertHeader),
5911
7594
  h("br", null),
@@ -5916,7 +7599,7 @@ const UserInfoFormView = (props) => {
5916
7599
  supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
5917
7600
  })),
5918
7601
  h("br", null))),
5919
- states.loading ? (h(LoadingView, null)) : (h("div", null,
7602
+ states.loading ? (h(GeneralLoadingView, null)) : (h("div", null,
5920
7603
  h("div", { class: classes.TextContainer },
5921
7604
  h("div", null,
5922
7605
  !states.hideSteps && (h("p", null, intl.formatMessage({
@@ -5925,7 +7608,7 @@ const UserInfoFormView = (props) => {
5925
7608
  }, { step: states.step, count: FORM_STEPS }))),
5926
7609
  h("h3", null, text.personalInformation),
5927
7610
  h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
5928
- ((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$5.classes.AlertContainer },
7611
+ ((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$6.classes.AlertContainer },
5929
7612
  h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
5930
7613
  h("strong", null, text.error.generalTitle),
5931
7614
  h("br", null),
@@ -5935,7 +7618,7 @@ const UserInfoFormView = (props) => {
5935
7618
  }, {
5936
7619
  supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
5937
7620
  }))),
5938
- (states.isPartner || states.isUser) && (h("sl-alert", { type: "primary", open: true, class: sheet$5.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
7621
+ (states.isPartner || states.isUser) && (h("sl-alert", { type: "primary", open: true, class: sheet$6.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
5939
7622
  h("sl-icon", { slot: "icon", name: "info-circle" }),
5940
7623
  h("strong", null, text.isPartnerAlertHeader),
5941
7624
  h("br", null),
@@ -6429,20 +8112,19 @@ const TaxForm = class {
6429
8112
  }
6430
8113
  render() {
6431
8114
  const props = isDemo() ? useDemoUserInfoForm(this) : useUserInfoForm(this);
6432
- return (h(UserInfoFormView, { data: props.data,
8115
+ return (h(Host, null, h(UserInfoFormView, { data: props.data,
6433
8116
  // @ts-ignore
6434
8117
  states: props.states, callbacks: {
6435
8118
  ...props.callbacks,
6436
8119
  onSubmit: props.onSubmit,
6437
- }, text: props.text, refs: props.refs }));
8120
+ }, text: props.text, refs: props.refs })));
6438
8121
  }
6439
8122
  };
6440
8123
  function useDemoUserInfoForm(props) {
6441
8124
  const setStep = En(TAX_CONTEXT_NAMESPACE);
6442
- // @ts-ignore
6443
8125
  return cjs({
6444
8126
  setStep,
6445
- onSubmit: async () => {
8127
+ onSubmit: () => {
6446
8128
  setStep("/2");
6447
8129
  },
6448
8130
  onRadioClick: () => { },
@@ -6485,4 +8167,4 @@ function useDemoUserInfoForm(props) {
6485
8167
  }, props.demoData || {}, { arrayMerge: (_, a) => a });
6486
8168
  }
6487
8169
 
6488
- export { BankingInfoForm as sqm_banking_info_form, DocusignForm as sqm_docusign_form, IndirectTaxForm as sqm_indirect_tax_form, InvoiceTable as sqm_invoice_table, InvoiceTableDataColumn as sqm_invoice_table_data_column, InvoiceTableDateColumn as sqm_invoice_table_date_column, InvoiceTableGenericColumn as sqm_invoice_table_download_column, PayoutDetailsCard as sqm_payout_details_card, TaxAndCashDashboard as sqm_tax_and_cash_dashboard, TaxForm as sqm_user_info_form };
8170
+ export { BankingInfoForm as sqm_banking_info_form, WidgetCodeVerification as sqm_code_verification, DocusignForm as sqm_docusign_form, IndirectTaxForm as sqm_indirect_tax_form, InvoiceTable as sqm_invoice_table, InvoiceTableDataCell as sqm_invoice_table_data_cell, InvoiceTableDataColumn as sqm_invoice_table_data_column, RewardTableDateCell as sqm_invoice_table_date_cell, InvoiceTableDateColumn as sqm_invoice_table_date_column, InvoiceTableDownloadCell as sqm_invoice_table_download_cell, InvoiceTableGenericColumn as sqm_invoice_table_download_column, PayoutDetailsCard as sqm_payout_details_card, TableCell as sqm_table_cell, TableRow as sqm_table_row, TaxAndCashMonolith as sqm_tax_and_cash, TaxAndCashDashboard as sqm_tax_and_cash_dashboard, TaxForm as sqm_user_info_form };