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

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 (273) hide show
  1. package/dist/cjs/IndirectTaxDetailsView-4c0acb81.js +646 -0
  2. package/dist/cjs/{ShadowViewAddon-85d2eed4.js → ShadowViewAddon-299060ce.js} +1014 -1014
  3. package/dist/cjs/data-68a42a7b.js +137 -0
  4. package/dist/cjs/{extractProps-fd93ba62.js → extractProps-e9c55ba8.js} +14 -0
  5. package/dist/cjs/{global-2298fc8b.js → global-efecb6c8.js} +73 -58
  6. package/dist/cjs/loader.cjs.js +2 -2
  7. package/dist/cjs/mint-components.cjs.js +2 -2
  8. package/dist/cjs/{sqm-banking-info-form_17.cjs.entry.js → sqm-banking-info-form_10.cjs.entry.js} +287 -1976
  9. package/dist/cjs/sqm-big-stat_42.cjs.entry.js +143 -165
  10. package/dist/cjs/sqm-code-verification.cjs.entry.js +342 -0
  11. package/dist/cjs/sqm-email-verification.cjs.entry.js +1 -1
  12. package/dist/cjs/sqm-empty_4.cjs.entry.js +1 -1
  13. package/dist/cjs/sqm-invoice-table-data-cell_5.cjs.entry.js +84 -0
  14. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +1 -1
  15. package/dist/cjs/sqm-pagination_3.cjs.entry.js +1 -1
  16. package/dist/cjs/{sqm-portal-email-verification-view-0a93a148.js → sqm-portal-email-verification-view-313a3d62.js} +1 -1
  17. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +2 -2
  18. package/dist/cjs/{sqm-portal-profile-view-44a83439.js → sqm-portal-profile-view-e7faaf7b.js} +1 -1
  19. package/dist/cjs/sqm-portal-profile.cjs.entry.js +2 -2
  20. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +1 -1
  21. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +4 -5
  22. package/dist/cjs/sqm-stencilbook.cjs.entry.js +12599 -11320
  23. package/dist/cjs/sqm-tax-and-cash.cjs.entry.js +1220 -0
  24. package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +11 -3
  25. package/dist/cjs/sqm-widget-verification.cjs.entry.js +17 -7
  26. package/dist/cjs/{usePayoutStatus-f26f0467.js → usePayoutStatus-3cca69e5.js} +8 -5
  27. package/dist/cjs/utils-116d7ec5.js +105 -0
  28. package/dist/collection/components/sqm-instant-access-registration/sqm-instant-access-registration.js +1 -1
  29. package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-data-column.js +2 -1
  30. package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-date-column.js +3 -2
  31. package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-download-column.js +2 -1
  32. package/dist/collection/components/sqm-invoice-table/sqm-invoice-table.js +4 -3
  33. package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +3 -3
  34. package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +2 -2
  35. package/dist/collection/components/sqm-referral-table/ReferralTable.stories.js +2 -2
  36. package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +6 -4
  37. package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-status-cell.js +2 -1
  38. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-column.js +2 -1
  39. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-date-column.js +4 -2
  40. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.js +6 -3
  41. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-status-column.js +6 -3
  42. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-user-column.js +4 -2
  43. package/dist/collection/components/sqm-referral-table/sqm-referral-table.js +2 -1
  44. package/dist/collection/components/sqm-referred-registration/sqm-referred-registration.js +1 -1
  45. package/dist/collection/components/sqm-rewards-table/RewardsTableCell.stories.js +1 -1
  46. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.js +2 -1
  47. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.js +2 -1
  48. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.js +6 -5
  49. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.js +3 -2
  50. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.js +4 -3
  51. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.js +3 -2
  52. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.js +4 -3
  53. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.js +5 -3
  54. package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +3 -2
  55. package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +1 -1
  56. package/dist/collection/components/sqm-share-button/sqm-share-button.js +3 -3
  57. package/dist/collection/components/sqm-stencilbook/BrandSelector.js +1 -1
  58. package/dist/collection/components/sqm-stencilbook/Themes.js +140 -162
  59. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +78 -78
  60. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.js +2 -2
  61. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-controller.js +39 -5
  62. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +42 -7
  63. package/dist/collection/components/tax-and-cash/TaxForm.stories.js +12 -8
  64. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +1 -1
  65. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +2 -2
  66. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +1 -1
  67. package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +1 -1
  68. package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +1 -1
  69. package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +2 -2
  70. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +2 -2
  71. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +2 -2
  72. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +2 -2
  73. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js +26 -1
  74. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/usePayoutDetailsCard.js +2 -2
  75. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +8 -5
  76. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +77 -28
  77. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +1 -1
  78. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +19 -4
  79. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +3 -3
  80. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +6 -5
  81. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +10 -10
  82. package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +3 -3
  83. package/dist/collection/global/styles.js +73 -58
  84. package/dist/collection/global/styles.ts +48 -40
  85. package/dist/collection/stories/PortalTemplates.stories.js +22 -30
  86. package/dist/collection/utils/parseStates.js +12 -0
  87. package/dist/esm/IndirectTaxDetailsView-7c8fb28e.js +639 -0
  88. package/dist/esm/{ShadowViewAddon-d59ef625.js → ShadowViewAddon-fe5ada08.js} +1017 -1017
  89. package/dist/esm/data-ce8ed0ae.js +121 -0
  90. package/dist/esm/{extractProps-ae1afbb3.js → extractProps-54064fb0.js} +14 -1
  91. package/dist/esm/{global-2da1dcec.js → global-28b9c531.js} +73 -58
  92. package/dist/esm/loader.js +2 -2
  93. package/dist/esm/mint-components.js +2 -2
  94. package/dist/esm/{sqm-banking-info-form_17.entry.js → sqm-banking-info-form_10.entry.js} +211 -1893
  95. package/dist/esm/sqm-big-stat_42.entry.js +143 -165
  96. package/dist/esm/sqm-code-verification.entry.js +338 -0
  97. package/dist/esm/sqm-email-verification.entry.js +1 -1
  98. package/dist/esm/sqm-empty_4.entry.js +1 -1
  99. package/dist/esm/sqm-invoice-table-data-cell_5.entry.js +76 -0
  100. package/dist/esm/sqm-leaderboard-rank.entry.js +1 -1
  101. package/dist/esm/sqm-pagination_3.entry.js +1 -1
  102. package/dist/esm/{sqm-portal-email-verification-view-e38ec8cc.js → sqm-portal-email-verification-view-db573324.js} +1 -1
  103. package/dist/esm/sqm-portal-email-verification.entry.js +2 -2
  104. package/dist/esm/{sqm-portal-profile-view-e594d1ee.js → sqm-portal-profile-view-bd3dcf0e.js} +1 -1
  105. package/dist/esm/sqm-portal-profile.entry.js +2 -2
  106. package/dist/esm/sqm-referral-table_11.entry.js +1 -1
  107. package/dist/esm/sqm-rewards-table_9.entry.js +4 -5
  108. package/dist/esm/sqm-stencilbook.entry.js +12595 -11316
  109. package/dist/esm/sqm-tax-and-cash.entry.js +1216 -0
  110. package/dist/esm/sqm-widget-verification-controller.entry.js +12 -4
  111. package/dist/esm/sqm-widget-verification.entry.js +17 -7
  112. package/dist/esm/{usePayoutStatus-3768c8c3.js → usePayoutStatus-e92a6e43.js} +8 -5
  113. package/dist/esm/utils-0dc9e217.js +97 -0
  114. package/dist/esm-es5/IndirectTaxDetailsView-7c8fb28e.js +1 -0
  115. package/dist/esm-es5/ShadowViewAddon-fe5ada08.js +1 -0
  116. package/dist/esm-es5/data-ce8ed0ae.js +1 -0
  117. package/dist/esm-es5/extractProps-54064fb0.js +1 -0
  118. package/dist/esm-es5/{global-2da1dcec.js → global-28b9c531.js} +4 -4
  119. package/dist/esm-es5/loader.js +1 -1
  120. package/dist/esm-es5/mint-components.js +1 -1
  121. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -0
  122. package/dist/esm-es5/sqm-big-stat_42.entry.js +1 -1
  123. package/dist/esm-es5/sqm-code-verification.entry.js +1 -0
  124. package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
  125. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  126. package/dist/esm-es5/sqm-invoice-table-data-cell_5.entry.js +1 -0
  127. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  128. package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
  129. package/dist/esm-es5/{sqm-portal-email-verification-view-e38ec8cc.js → sqm-portal-email-verification-view-db573324.js} +1 -1
  130. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  131. package/dist/esm-es5/{sqm-portal-profile-view-e594d1ee.js → sqm-portal-profile-view-bd3dcf0e.js} +1 -1
  132. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  133. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  134. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  135. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  136. package/dist/esm-es5/sqm-tax-and-cash.entry.js +1 -0
  137. package/dist/esm-es5/sqm-widget-verification-controller.entry.js +1 -1
  138. package/dist/esm-es5/sqm-widget-verification.entry.js +1 -1
  139. package/dist/esm-es5/{usePayoutStatus-3768c8c3.js → usePayoutStatus-e92a6e43.js} +2 -2
  140. package/dist/esm-es5/utils-0dc9e217.js +1 -0
  141. package/dist/mint-components/global/styles.ts +48 -40
  142. package/dist/mint-components/mint-components.esm.js +1 -1
  143. package/dist/mint-components/mint-components.js +1 -1
  144. package/dist/mint-components/p-0304f99e.system.js +1 -0
  145. package/dist/mint-components/{p-7daa731c.system.js → p-06061ea4.system.js} +1 -1
  146. package/dist/mint-components/p-0797a946.js +1 -0
  147. package/dist/mint-components/p-13485ce6.entry.js +1 -0
  148. package/dist/mint-components/p-192c1de0.system.js +1 -0
  149. package/dist/mint-components/p-1e79befd.entry.js +1 -0
  150. package/dist/mint-components/p-1eaf3ce4.system.entry.js +1 -0
  151. package/dist/mint-components/{p-9fcc7901.system.entry.js → p-1ed6da99.system.entry.js} +1 -1
  152. package/dist/mint-components/p-2378a0dd.entry.js +16 -0
  153. package/dist/mint-components/{p-0019d57c.entry.js → p-2a056c5e.entry.js} +1 -1
  154. package/dist/mint-components/p-3206d0a4.js +103 -0
  155. package/dist/mint-components/p-3fbb70c4.system.entry.js +1 -0
  156. package/dist/mint-components/{p-e1e96de9.entry.js → p-454b0d9a.entry.js} +19 -19
  157. package/dist/mint-components/{p-7dac5a58.system.entry.js → p-489acd82.system.entry.js} +1 -1
  158. package/dist/mint-components/{p-b090bbd2.js → p-4abb01c8.js} +1 -1
  159. package/dist/mint-components/{p-5125ec72.system.entry.js → p-4c2252a4.system.entry.js} +1 -1
  160. package/dist/mint-components/p-505977d4.js +1 -0
  161. package/dist/mint-components/p-5088a459.system.entry.js +1 -0
  162. package/dist/mint-components/p-661b264a.system.js +1 -0
  163. package/dist/mint-components/{p-7953c3da.entry.js → p-687b5dcb.entry.js} +1 -1
  164. package/dist/mint-components/p-6b528b15.entry.js +11 -0
  165. package/dist/mint-components/{p-73069eba.entry.js → p-7c07d7cd.entry.js} +1 -1
  166. package/dist/mint-components/p-7dc10820.system.js +1 -0
  167. package/dist/mint-components/{p-d4e49019.entry.js → p-80ee389c.entry.js} +1 -1
  168. package/dist/mint-components/p-8c126ccb.system.entry.js +1 -0
  169. package/dist/mint-components/{p-f2c48bc8.entry.js → p-8f55e46e.entry.js} +1 -1
  170. package/dist/mint-components/{p-232996b5.system.entry.js → p-907f6cd2.system.entry.js} +1 -1
  171. package/dist/mint-components/{p-7aba33e1.js → p-9b4c25cb.js} +1 -1
  172. package/dist/mint-components/p-9df8a483.entry.js +9 -0
  173. package/dist/mint-components/{p-3466bfaa.js → p-a341ce23.js} +2 -2
  174. package/dist/mint-components/p-a39c3535.system.entry.js +1 -0
  175. package/dist/mint-components/{p-5efed40f.system.js → p-a44b7a52.system.js} +2 -2
  176. package/dist/mint-components/{p-7ae3ec51.system.js → p-aba19648.system.js} +1 -1
  177. package/dist/mint-components/p-b5ad3804.js +394 -0
  178. package/dist/mint-components/p-b6d4f014.system.entry.js +1 -0
  179. package/dist/mint-components/p-b7e6d975.system.entry.js +1 -0
  180. package/dist/mint-components/{p-fad1752b.system.entry.js → p-c6c10a57.system.entry.js} +1 -1
  181. package/dist/mint-components/p-cf9ff8bd.system.js +1 -0
  182. package/dist/mint-components/p-d4c1480f.entry.js +93 -0
  183. package/dist/mint-components/{p-761ee9ea.entry.js → p-dc9639c9.entry.js} +2 -2
  184. package/dist/mint-components/{p-4ce7e3b1.entry.js → p-de5f6446.entry.js} +1 -1
  185. package/dist/mint-components/{p-d49373b7.system.js → p-e05bd4f8.system.js} +1 -1
  186. package/dist/mint-components/p-e524056f.entry.js +1 -0
  187. package/dist/mint-components/p-e55aafe9.system.js +1 -0
  188. package/dist/mint-components/p-e76767f4.js +1 -0
  189. package/dist/mint-components/{p-28aed7f7.system.entry.js → p-e93bbfed.system.entry.js} +1 -1
  190. package/dist/mint-components/p-f2ebbbe3.system.entry.js +1 -0
  191. package/dist/mint-components/{p-cc5f9775.system.entry.js → p-f4f0151b.system.entry.js} +1 -1
  192. package/dist/mint-components/{p-f3a52eb6.js → p-f67e3d90.js} +1 -1
  193. package/dist/mint-components/{p-836d3ec7.entry.js → p-fae6223c.entry.js} +2 -2
  194. package/dist/mint-components/{p-e70d8201.system.entry.js → p-fecc18f3.system.entry.js} +1 -1
  195. package/dist/types/components/sqm-instant-access-registration/sqm-instant-access-registration.d.ts +1 -1
  196. package/dist/types/components/sqm-invoice-table/columns/InvoiceTableColumn.d.ts +1 -0
  197. package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-data-column.d.ts +1 -0
  198. package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-date-column.d.ts +2 -1
  199. package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-download-column.d.ts +1 -0
  200. package/dist/types/components/sqm-invoice-table/mockInvoiceData.d.ts +1 -0
  201. package/dist/types/components/sqm-invoice-table/sqm-invoice-table.d.ts +1 -0
  202. package/dist/types/components/sqm-leaderboard/sqm-leaderboard.d.ts +3 -3
  203. package/dist/types/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.d.ts +1 -0
  204. package/dist/types/components/sqm-referral-table/cells/sqm-referral-table-status-cell.d.ts +1 -0
  205. package/dist/types/components/sqm-referral-table/columns/ReferralTableColumn.d.ts +1 -0
  206. package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-column.d.ts +1 -0
  207. package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-date-column.d.ts +1 -0
  208. package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.d.ts +1 -0
  209. package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-status-column.d.ts +1 -0
  210. package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-user-column.d.ts +1 -0
  211. package/dist/types/components/sqm-referral-table/sqm-referral-table.d.ts +1 -0
  212. package/dist/types/components/sqm-referred-registration/sqm-referred-registration.d.ts +1 -1
  213. package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.d.ts +1 -0
  214. package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.d.ts +1 -0
  215. package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.d.ts +1 -0
  216. package/dist/types/components/sqm-rewards-table/columns/RewardTableColumn.d.ts +1 -0
  217. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.d.ts +2 -1
  218. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.d.ts +3 -2
  219. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.d.ts +2 -1
  220. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.d.ts +3 -2
  221. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.d.ts +2 -1
  222. package/dist/types/components/sqm-rewards-table/mockRewardData.d.ts +1 -0
  223. package/dist/types/components/sqm-rewards-table/mockTaxData.d.ts +1 -0
  224. package/dist/types/components/sqm-rewards-table/sqm-rewards-table.d.ts +1 -0
  225. package/dist/types/components/sqm-rewards-table/useRewardsTable.d.ts +1 -1
  226. package/dist/types/components/sqm-share-button/sqm-share-button.d.ts +3 -3
  227. package/dist/types/components/sqm-stencilbook/Themes.d.ts +5 -4
  228. package/dist/types/components/sqm-widget-verification/sqm-widget-verification-controller.d.ts +5 -0
  229. package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +6 -1
  230. package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +0 -1
  231. package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.d.ts +1 -1
  232. package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +2 -2
  233. package/dist/types/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.d.ts +4 -0
  234. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +1 -1
  235. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +10 -4
  236. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.d.ts +1 -1
  237. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +1 -1
  238. package/dist/types/components/tax-and-cash/sqm-user-info-form/small-views/IndirectTaxDetailsView.d.ts +1 -1
  239. package/dist/types/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.d.ts +1 -1
  240. package/dist/types/components/tax-and-cash/utils.d.ts +1 -1
  241. package/dist/types/components.d.ts +51 -7
  242. package/dist/types/global/styles.d.ts +2 -1
  243. package/dist/types/saasquatch.d.ts +106 -50
  244. package/dist/types/utils/parseStates.d.ts +1 -0
  245. package/docs/docs.docx +0 -0
  246. package/docs/raisins.json +1 -1
  247. package/grapesjs/grapesjs.js +1 -1
  248. package/package.json +2 -1
  249. package/dist/cjs/sqm-invoice-table-view-90b2433f.js +0 -2038
  250. package/dist/esm/sqm-invoice-table-view-df370e4a.js +0 -2022
  251. package/dist/esm-es5/ShadowViewAddon-d59ef625.js +0 -1
  252. package/dist/esm-es5/extractProps-ae1afbb3.js +0 -1
  253. package/dist/esm-es5/sqm-banking-info-form_17.entry.js +0 -1
  254. package/dist/esm-es5/sqm-invoice-table-view-df370e4a.js +0 -1
  255. package/dist/mint-components/p-04cc08e7.system.entry.js +0 -1
  256. package/dist/mint-components/p-097a255f.js +0 -1
  257. package/dist/mint-components/p-15ad1e97.entry.js +0 -16
  258. package/dist/mint-components/p-16c55bb4.entry.js +0 -205
  259. package/dist/mint-components/p-26468242.js +0 -1
  260. package/dist/mint-components/p-31b8f0ca.system.js +0 -1
  261. package/dist/mint-components/p-62d924e6.system.entry.js +0 -1
  262. package/dist/mint-components/p-6bcac9ed.system.entry.js +0 -1
  263. package/dist/mint-components/p-7b97c0f4.system.entry.js +0 -1
  264. package/dist/mint-components/p-a121e5a1.system.entry.js +0 -1
  265. package/dist/mint-components/p-a8645c1b.system.js +0 -1
  266. package/dist/mint-components/p-bfe08ca4.system.js +0 -1
  267. package/dist/mint-components/p-c53bd5bd.entry.js +0 -9
  268. package/dist/mint-components/p-e53c3c6e.system.js +0 -1
  269. package/dist/mint-components/p-f3558ef0.js +0 -394
  270. package/dist/mint-components/p-f66ccd51.entry.js +0 -1
  271. package/shoelace/assets/icons/twitter-x.svg +0 -4
  272. /package/dist/collection/components/tax-and-cash/{sqm-tax-and-cash/data.js → data.js} +0 -0
  273. /package/dist/types/components/tax-and-cash/{sqm-tax-and-cash/data.d.ts → data.d.ts} +0 -0
@@ -1,142 +1,22 @@
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, 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';
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-28b9c531.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';
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, l as luxonLocale } from './utils-334c1e34.js';
7
+ import { g as getProps } from './utils-334c1e34.js';
8
8
  import { c as createStyleSheet } from './JSS-67b5cff8.js';
9
- import { E as ErrorStyles } from './mixins-f750863a.js';
9
+ import './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 { 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;
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-7c8fb28e.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-0dc9e217.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';
140
20
 
141
21
  function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
142
22
  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;
@@ -1743,331 +1623,6 @@ function useDemoBankingInfoForm(props) {
1743
1623
  }, props.demoData || {}, { arrayMerge: (_, a) => a });
1744
1624
  }
1745
1625
 
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
-
2071
1626
  const GET_TAX_DOCUMENT = dist.gql `
2072
1627
  mutation createImpactPublisherTaxDocument(
2073
1628
  $vars: CreateImpactPublisherTaxDocumentInput!
@@ -2225,7 +1780,7 @@ function getDocumentType(p) {
2225
1780
  return undefined;
2226
1781
  }
2227
1782
 
2228
- const style$2 = {
1783
+ const style$1 = {
2229
1784
  DocusignStatusContainer: {
2230
1785
  width: "100%",
2231
1786
  minHeight: "600px",
@@ -2252,13 +1807,13 @@ const style$2 = {
2252
1807
  },
2253
1808
  },
2254
1809
  };
2255
- const sheet$2 = createStyleSheet(style$2);
2256
- const styleString$2 = sheet$2.toString();
1810
+ const sheet$1 = createStyleSheet(style$1);
1811
+ const styleString$1 = sheet$1.toString();
2257
1812
  const DocusignExpiredView = (props) => {
2258
- const { classes } = sheet$2;
1813
+ const { classes } = sheet$1;
2259
1814
  const { text } = props;
2260
1815
  return (h("div", null,
2261
- h("style", { type: "text/css" }, styleString$2),
1816
+ h("style", { type: "text/css" }, styleString$1),
2262
1817
  h("div", { class: classes.DocusignStatusContainer },
2263
1818
  h("sl-icon", { style: {
2264
1819
  width: "50px",
@@ -2270,10 +1825,10 @@ const DocusignExpiredView = (props) => {
2270
1825
  h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
2271
1826
  };
2272
1827
  const DocusignErrorView = (props) => {
2273
- const { classes } = sheet$2;
1828
+ const { classes } = sheet$1;
2274
1829
  const { text } = props;
2275
1830
  return (h("div", null,
2276
- h("style", { type: "text/css" }, styleString$2),
1831
+ h("style", { type: "text/css" }, styleString$1),
2277
1832
  h("div", { class: classes.DocusignStatusContainer },
2278
1833
  h("sl-icon", { style: {
2279
1834
  width: "50px",
@@ -2285,14 +1840,14 @@ const DocusignErrorView = (props) => {
2285
1840
  h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
2286
1841
  };
2287
1842
  const DocusignLoadingView = () => {
2288
- const { classes } = sheet$2;
1843
+ const { classes } = sheet$1;
2289
1844
  return (h("div", null,
2290
- h("style", { type: "text/css" }, styleString$2),
1845
+ h("style", { type: "text/css" }, styleString$1),
2291
1846
  h("div", { class: classes.DocusignStatusContainer },
2292
1847
  h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } }))));
2293
1848
  };
2294
1849
  const DocusignIframe = ({ states, data, callbacks, text, }) => {
2295
- const { classes } = sheet$2;
1850
+ const { classes } = sheet$1;
2296
1851
  const [iFrameHeight, setiFrameHeight] = useState("100%");
2297
1852
  const allowedDomains = [
2298
1853
  "referralsaasquatch.com",
@@ -2325,12 +1880,12 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
2325
1880
  return h(DocusignExpiredView, { text: text });
2326
1881
  // Wrap iFrame with container that shares the same height to push other elements down when absolute positioned
2327
1882
  return (h("div", { style: { height: iFrameHeight } },
2328
- h("style", { type: "text/css" }, styleString$2),
1883
+ h("style", { type: "text/css" }, styleString$1),
2329
1884
  h("div", { class: classes.IFrameContainer },
2330
1885
  h("iframe", { scrolling: "yes", frameBorder: "0", width: "100%", src: data.documentUrl, height: iFrameHeight }))));
2331
1886
  };
2332
1887
 
2333
- const style$3 = {
1888
+ const style$2 = {
2334
1889
  FormWrapper: {
2335
1890
  display: "flex",
2336
1891
  justifyContent: "flex-start",
@@ -2420,9 +1975,9 @@ const style$3 = {
2420
1975
  fontSize: "var(--sl-font-size-medium)",
2421
1976
  },
2422
1977
  };
2423
- const sheet$3 = createStyleSheet(style$3);
2424
- const styleString$3 = sheet$3.toString();
2425
- const vanillaStyle$2 = `
1978
+ const sheet$2 = createStyleSheet(style$2);
1979
+ const styleString$2 = sheet$2.toString();
1980
+ const vanillaStyle$1 = `
2426
1981
  :host{
2427
1982
  display: block;
2428
1983
  }
@@ -2443,11 +1998,11 @@ const vanillaStyle$2 = `
2443
1998
  const DocusignFormView = (props) => {
2444
1999
  var _a;
2445
2000
  const { states, states: { formState, documentTypeString }, callbacks, text, slots, } = props;
2446
- const { classes } = sheet$3;
2001
+ const { classes } = sheet$2;
2447
2002
  return (h("div", { class: classes.Container },
2448
2003
  h("style", { type: "text/css" },
2449
- styleString$3,
2450
- vanillaStyle$2),
2004
+ styleString$2,
2005
+ vanillaStyle$1),
2451
2006
  h("div", { class: classes.TextContainer },
2452
2007
  h("div", null,
2453
2008
  !states.hideSteps && (h("p", null, intl.formatMessage({
@@ -2457,7 +2012,7 @@ const DocusignFormView = (props) => {
2457
2012
  h("h3", null, text.taxForm),
2458
2013
  h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
2459
2014
  states.loadingError && (h("div", null,
2460
- h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$3.classes.ErrorAlertContainer },
2015
+ h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$2.classes.ErrorAlertContainer },
2461
2016
  h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
2462
2017
  h("strong", null, text.error.loadingErrorAlertHeader),
2463
2018
  h("br", null),
@@ -2467,7 +2022,7 @@ const DocusignFormView = (props) => {
2467
2022
  }, {
2468
2023
  supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
2469
2024
  })))),
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 },
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 },
2471
2026
  h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
2472
2027
  h("strong", null, text.error.generalTitle),
2473
2028
  h("br", null),
@@ -2687,7 +2242,7 @@ const DemoDocusignIframe = ({ callbacks }) => {
2687
2242
  } }, 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")))));
2688
2243
  };
2689
2244
 
2690
- const style$4 = {
2245
+ const style$3 = {
2691
2246
  FormWrapper: {
2692
2247
  display: "flex",
2693
2248
  justifyContent: "flex-start",
@@ -2819,9 +2374,9 @@ const style$4 = {
2819
2374
  },
2820
2375
  },
2821
2376
  };
2822
- const sheet$4 = createStyleSheet(style$4);
2823
- const styleString$4 = sheet$4.toString();
2824
- const vanillaStyle$3 = `
2377
+ const sheet$3 = createStyleSheet(style$3);
2378
+ const styleString$3 = sheet$3.toString();
2379
+ const vanillaStyle$2 = `
2825
2380
  :host{
2826
2381
  display: block;
2827
2382
  }
@@ -2848,11 +2403,11 @@ const vanillaStyle$3 = `
2848
2403
  const IndirectTaxFormView = (props) => {
2849
2404
  var _a;
2850
2405
  const { states, states: { formState }, callbacks, text, refs, slots, } = props;
2851
- const { classes } = sheet$4;
2406
+ const { classes } = sheet$3;
2852
2407
  return (h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
2853
2408
  h("style", { type: "text/css" },
2854
- styleString$4,
2855
- vanillaStyle$3),
2409
+ styleString$3,
2410
+ vanillaStyle$2),
2856
2411
  h("div", { class: classes.TextContainer },
2857
2412
  h("div", null,
2858
2413
  !states.hideSteps && (h("p", null,
@@ -2865,7 +2420,7 @@ const IndirectTaxFormView = (props) => {
2865
2420
  h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription),
2866
2421
  h("p", { class: classes.DescriptionText }, text.indirectTaxDescription)),
2867
2422
  states.loadingError && (h("div", null,
2868
- h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.AlertContainer },
2423
+ h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$3.classes.AlertContainer },
2869
2424
  h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
2870
2425
  h("strong", null, text.error.loadingErrorAlertHeader),
2871
2426
  h("br", null),
@@ -2875,7 +2430,7 @@ const IndirectTaxFormView = (props) => {
2875
2430
  }, {
2876
2431
  supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
2877
2432
  })))),
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 },
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 },
2879
2434
  h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
2880
2435
  h("strong", null, text.error.generalTitle),
2881
2436
  h("br", null),
@@ -2885,7 +2440,7 @@ const IndirectTaxFormView = (props) => {
2885
2440
  }, {
2886
2441
  supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
2887
2442
  }))),
2888
- states.isPartner && (h("sl-alert", { type: "primary", open: true, class: sheet$4.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
2443
+ states.isPartner && (h("sl-alert", { type: "primary", open: true, class: sheet$3.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
2889
2444
  h("sl-icon", { slot: "icon", name: "info-circle" }),
2890
2445
  h("strong", null, text.isPartnerAlertHeader),
2891
2446
  h("br", null),
@@ -3364,7 +2919,7 @@ const IndirectTaxForm = class {
3364
2919
  };
3365
2920
  function useDemoIndirectTaxForm(props) {
3366
2921
  const setStep = En(TAX_CONTEXT_NAMESPACE);
3367
- const [option, setOption] = useState(null);
2922
+ const [option, setOption] = useState("otherRegion");
3368
2923
  const [demoFormState, setDemoFormState] = useState({});
3369
2924
  return cjs({
3370
2925
  states: {
@@ -3445,6 +3000,26 @@ function useDemoIndirectTaxForm(props) {
3445
3000
  }, props.demoData || {}, { arrayMerge: (_, a) => a });
3446
3001
  }
3447
3002
 
3003
+ const mockInvoiceData = (count = 4) => {
3004
+ const data = [...Array(count)].map(() => getMockData());
3005
+ return { data };
3006
+ };
3007
+ const getMockData = () => {
3008
+ const today = luxon.DateTime.now();
3009
+ const invoiceId = Math.random().toString(36).slice(2, 12);
3010
+ const earnings = Math.floor(Math.random() * 100) + 1;
3011
+ const indirectTax = Math.round(earnings * 0.2);
3012
+ return {
3013
+ downloadUrl: "https://example.com",
3014
+ dateCreated: today.toMillis(),
3015
+ invoiceId,
3016
+ program: "my-program",
3017
+ earnings: `$${earnings}.00`,
3018
+ indirectTax: `$${indirectTax}.00`,
3019
+ netEarnings: `$${earnings - indirectTax}.00`,
3020
+ };
3021
+ };
3022
+
3448
3023
  const debug = browser("sq:useInvoiceTable");
3449
3024
  const CSS_NAMESPACE = "sqm-invoice-table";
3450
3025
  const GET_INVOICES = dist.gql `
@@ -3593,26 +3168,6 @@ async function tryMethod(c, callback) {
3593
3168
  }
3594
3169
  }
3595
3170
 
3596
- const mockInvoiceData = (count = 4) => {
3597
- const data = [...Array(count)].map(() => getMockData());
3598
- return { data };
3599
- };
3600
- const getMockData = () => {
3601
- const today = luxon.DateTime.now();
3602
- const invoiceId = Math.random().toString(36).slice(2, 12);
3603
- const earnings = Math.floor(Math.random() * 100) + 1;
3604
- const indirectTax = Math.round(earnings * 0.2);
3605
- return {
3606
- downloadUrl: "https://example.com",
3607
- dateCreated: today.toMillis(),
3608
- invoiceId,
3609
- program: "my-program",
3610
- earnings: `$${earnings}.00`,
3611
- indirectTax: `$${indirectTax}.00`,
3612
- netEarnings: `$${earnings - indirectTax}.00`,
3613
- };
3614
- };
3615
-
3616
3171
  const InvoiceTable = class {
3617
3172
  constructor(hostRef) {
3618
3173
  registerInstance(this, hostRef);
@@ -3758,26 +3313,14 @@ function useInvoiceTableDemo(props, emptyElement, loadingElement) {
3758
3313
  return demoProps;
3759
3314
  }
3760
3315
 
3761
- const InvoiceTableDataCell = class {
3316
+ const InvoiceTableDataColumn = class {
3762
3317
  constructor(hostRef) {
3763
3318
  registerInstance(this, hostRef);
3764
- this.ignored = true;
3765
3319
  h$1(this);
3766
3320
  }
3767
3321
  disconnectedCallback() { }
3768
- render() {
3769
- return this.data;
3770
- }
3771
- };
3772
-
3773
- const InvoiceTableDataColumn = class {
3774
- constructor(hostRef) {
3775
- registerInstance(this, hostRef);
3776
- h$1(this);
3777
- }
3778
- disconnectedCallback() { }
3779
- async renderCell(data) {
3780
- return (h("sqm-invoice-table-data-cell", { data: data[this.property] }));
3322
+ async renderCell(data) {
3323
+ return (h("sqm-invoice-table-data-cell", { data: data[this.property] }));
3781
3324
  }
3782
3325
  async renderLabel() {
3783
3326
  return Promise.resolve(this.columnTitle);
@@ -3788,23 +3331,6 @@ const InvoiceTableDataColumn = class {
3788
3331
  }
3789
3332
  };
3790
3333
 
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
-
3808
3334
  const InvoiceTableDateColumn = class {
3809
3335
  constructor(hostRef) {
3810
3336
  registerInstance(this, hostRef);
@@ -3823,21 +3349,6 @@ const InvoiceTableDateColumn = class {
3823
3349
  }
3824
3350
  };
3825
3351
 
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
-
3841
3352
  const InvoiceTableGenericColumn = class {
3842
3353
  constructor(hostRef) {
3843
3354
  registerInstance(this, hostRef);
@@ -3860,7 +3371,7 @@ const PayPalIcon = () => (h("svg", { xmlns: "http://www.w3.org/2000/svg", width:
3860
3371
  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" }),
3861
3372
  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" })));
3862
3373
 
3863
- const style$5 = {
3374
+ const style$4 = {
3864
3375
  CardContainer: {
3865
3376
  display: "grid",
3866
3377
  gridTemplateColumns: "1fr",
@@ -4010,7 +3521,7 @@ const style$5 = {
4010
3521
  },
4011
3522
  };
4012
3523
  function PayoutDetailsCardView(props) {
4013
- const sheet = createStyleSheet(style$5);
3524
+ const sheet = createStyleSheet(style$4);
4014
3525
  const styleString = sheet.toString();
4015
3526
  const { classes } = sheet;
4016
3527
  const { states, text } = props;
@@ -4085,1313 +3596,104 @@ function usePayoutDetailsCard(props) {
4085
3596
  .startOf("month")
4086
3597
  .plus({ day: 14 })
4087
3598
  .toFormat("LLL dd, yyyy");
4088
- }
4089
- else {
4090
- intl.formatMessage({
4091
- id: `nextPayoutBalance`,
4092
- defaultMessage: props.thresholdPayoutText,
4093
- }, {
4094
- thresholdBalance: (_a = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _a === void 0 ? void 0 : _a.paymentThreshold,
4095
- });
4096
- }
4097
- }
4098
- const paymentDay = getPayoutDetailedStatusText((_c = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _c === void 0 ? void 0 : _c.paymentDay);
4099
- const isPayoutToday = luxon.DateTime.now().toFormat("LLL dd, yyyy") === paymentDay;
4100
- return {
4101
- states: {
4102
- loading,
4103
- thresholdBalance: ((_d = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _d === void 0 ? void 0 : _d.paymentThreshold) ? `${publisher === null || publisher === void 0 ? void 0 : publisher.currency}${(_e = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _e === void 0 ? void 0 : _e.paymentThreshold}`
4104
- : undefined,
4105
- balance: (_f = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _f === void 0 ? void 0 : _f.balance,
4106
- badgeStatus: ((_g = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _g === void 0 ? void 0 : _g.paymentSchedulingType) !== "FIXED_DAY"
4107
- ? "thresholdPayout"
4108
- : isPayoutToday
4109
- ? "payoutToday"
4110
- : "nextPayout",
4111
- payoutType: (_h = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _h === void 0 ? void 0 : _h.paymentMethod,
4112
- error: (_j = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _j === void 0 ? void 0 : _j.hold,
4113
- paypalEmailAddress: (_k = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _k === void 0 ? void 0 : _k.paypalEmailAddress,
4114
- cardNumberPreview: (_l = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _l === void 0 ? void 0 : _l.bankAccountNumber,
4115
- nextPayoutDate: paymentDay,
4116
- },
4117
- text: props.getTextProps(),
4118
- };
4119
- }
4120
-
4121
- const PayoutDetailsCard = class {
4122
- constructor(hostRef) {
4123
- registerInstance(this, hostRef);
4124
- /**
4125
- * Badge text indicating payout status
4126
- * @uiName Payout badge status text
4127
- */
4128
- this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
4129
- /**
4130
- * Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
4131
- * @uiName Payout schedule by threshold text
4132
- */
4133
- this.thresholdPayoutText = "Next payout occurs when balance is {thresholdBalance}";
4134
- /**
4135
- * Shown before the participant’s bank account information.
4136
- * @uiName Bank account field label
4137
- */
4138
- this.accountText = "Account";
4139
- /**
4140
- * Text displayed for existing publishers that do not have saved banking information.
4141
- * @uiName Payout missing information subtext
4142
- */
4143
- this.payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
4144
- h$1(this);
4145
- }
4146
- disconnectedCallback() { }
4147
- getTextProps() {
4148
- const props = getProps(this);
4149
- return {
4150
- ...props,
4151
- };
4152
- }
4153
- render() {
4154
- const props = isDemo()
4155
- ? useDemoPayoutDetailsCard(this)
4156
- : usePayoutDetailsCard(this);
4157
- return (h(Host, null, h(PayoutDetailsCardView, { text: props.text, states: props.states })));
4158
- }
4159
- };
4160
- function useDemoPayoutDetailsCard(props) {
4161
- return cjs({
4162
- states: {
4163
- loading: false,
4164
- error: false,
4165
- thresholdBalance: "$50",
4166
- mainCurrency: { currencyText: "USD", amountText: "100.00" },
4167
- badgeStatus: "nextPayout",
4168
- payoutType: "BANK_TRANSFER",
4169
- nextPayoutDate: "March 14, 2024",
4170
- paypalEmailAddress: "joesmith@example.com",
4171
- otherCurrencies: false,
4172
- hasW9Pending: false,
4173
- hasDatePending: true,
4174
- cardNumberPreview: "XX2381",
4175
- balance: "20.00 USD",
4176
- },
4177
- text: props.getTextProps(),
4178
- }, props.demoData || {}, { arrayMerge: (_, a) => a });
4179
- }
4180
-
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}";
3599
+ }
3600
+ else {
3601
+ intl.formatMessage({
3602
+ id: `nextPayoutBalance`,
3603
+ defaultMessage: props.thresholdPayoutText,
3604
+ }, {
3605
+ thresholdBalance: (_a = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _a === void 0 ? void 0 : _a.paymentThreshold,
3606
+ });
3607
+ }
3608
+ }
3609
+ const paymentDay = getPayoutDetailedStatusText((_c = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _c === void 0 ? void 0 : _c.paymentDay);
3610
+ const isPayoutToday = luxon.DateTime.now().toFormat("LLL dd, yyyy") === paymentDay;
3611
+ return {
3612
+ states: {
3613
+ loading,
3614
+ thresholdBalance: ((_d = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _d === void 0 ? void 0 : _d.paymentThreshold) ? `${publisher === null || publisher === void 0 ? void 0 : publisher.currency}${(_e = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _e === void 0 ? void 0 : _e.paymentThreshold}`
3615
+ : undefined,
3616
+ balance: (_f = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _f === void 0 ? void 0 : _f.balance,
3617
+ badgeStatus: ((_g = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _g === void 0 ? void 0 : _g.paymentSchedulingType) !== "FIXED_DAY"
3618
+ ? "thresholdPayout"
3619
+ : isPayoutToday
3620
+ ? "payoutToday"
3621
+ : "nextPayout",
3622
+ payoutType: (_h = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _h === void 0 ? void 0 : _h.paymentMethod,
3623
+ error: (_j = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _j === void 0 ? void 0 : _j.hold,
3624
+ paypalEmailAddress: (_k = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _k === void 0 ? void 0 : _k.paypalEmailAddress,
3625
+ cardNumberPreview: (_l = publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) === null || _l === void 0 ? void 0 : _l.bankAccountNumber,
3626
+ nextPayoutDate: paymentDay,
3627
+ },
3628
+ text: props.getTextProps(),
3629
+ };
3630
+ }
3631
+
3632
+ const PayoutDetailsCard = class {
3633
+ constructor(hostRef) {
3634
+ registerInstance(this, hostRef);
5055
3635
  /**
5056
- * @uiName Payout status badge
5057
- * @uiGroup Dashboard Properties
3636
+ * Badge text indicating payout status
3637
+ * @uiName Payout badge status text
5058
3638
  */
5059
- this.dashboard_statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
3639
+ this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
5060
3640
  /**
5061
3641
  * Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
5062
3642
  * @uiName Payout schedule by threshold text
5063
- * @uiGroup Dashboard Properties
5064
3643
  */
5065
- this.dashboard_thresholdPayoutText = "Next payout occurs when balance is {thresholdBalance}";
3644
+ this.thresholdPayoutText = "Next payout occurs when balance is {thresholdBalance}";
5066
3645
  /**
5067
3646
  * Shown before the participant’s bank account information.
5068
3647
  * @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
3648
  */
5122
- this.dashboard_payoutHoldAlertDescription = "Please contact our {supportLink} or check your inbox for an email from our referral program provider, impact.com.";
3649
+ this.accountText = "Account";
5123
3650
  /**
5124
3651
  * Text displayed for existing publishers that do not have saved banking information.
5125
3652
  * @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
3653
  */
5321
- this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
3654
+ this.payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
5322
3655
  /**
5323
- * Link text for contacting support team
5324
- * @uiName Suport link text
5325
- * @uiGroup General Form Properties
3656
+ * @componentState { "title": "Loading", "props": { "states": { "loading": true } } }
5326
3657
  */
5327
- this.supportLink = "support team";
3658
+ this.stateController = "{}";
5328
3659
  h$1(this);
5329
3660
  }
5330
3661
  disconnectedCallback() { }
5331
- // this field is required prop
5332
- getGeneralStepTextProps(prefix) {
3662
+ getTextProps() {
5333
3663
  const props = getProps(this);
5334
3664
  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,
3665
+ ...props,
5352
3666
  };
5353
3667
  }
5354
3668
  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);
3669
+ const props = isDemo()
3670
+ ? useDemoPayoutDetailsCard(this)
3671
+ : usePayoutDetailsCard(this);
3672
+ return (h(Host, null, h(PayoutDetailsCardView, { text: props.text, states: props.states })));
5381
3673
  }
5382
3674
  };
5383
- function useDemoTaxAndCash(props) {
5384
- const [step, setStep] = In({
5385
- namespace: TAX_CONTEXT_NAMESPACE,
5386
- initialValue: "/1",
5387
- });
3675
+ function useDemoPayoutDetailsCard(props) {
5388
3676
  return cjs({
5389
- step,
5390
- setStep,
3677
+ states: {
3678
+ loading: false,
3679
+ error: false,
3680
+ thresholdBalance: "$50",
3681
+ mainCurrency: { currencyText: "USD", amountText: "100.00" },
3682
+ badgeStatus: "nextPayout",
3683
+ payoutType: "BANK_TRANSFER",
3684
+ nextPayoutDate: "March 14, 2024",
3685
+ paypalEmailAddress: "joesmith@example.com",
3686
+ otherCurrencies: false,
3687
+ hasW9Pending: false,
3688
+ hasDatePending: true,
3689
+ cardNumberPreview: "XX2381",
3690
+ balance: "20.00 USD",
3691
+ },
3692
+ text: props.getTextProps(),
5391
3693
  }, props.demoData || {}, { arrayMerge: (_, a) => a });
5392
3694
  }
5393
3695
 
5394
- const style$6 = {
3696
+ const style$5 = {
5395
3697
  ErrorAlertContainer: {
5396
3698
  "&::part(base)": {
5397
3699
  backgroundColor: "var(--sqm-danger-color-background)",
@@ -5582,8 +3884,8 @@ const style$6 = {
5582
3884
  },
5583
3885
  DialogButton: { margin: "auto", width: "100%" },
5584
3886
  };
5585
- const sheet$5 = createStyleSheet(style$6);
5586
- const styleString$5 = sheet$5.toString();
3887
+ const sheet$4 = createStyleSheet(style$5);
3888
+ const styleString$4 = sheet$4.toString();
5587
3889
  const TaxAndCashDashboardView = (props) => {
5588
3890
  var _a, _b, _c, _d;
5589
3891
  const { states, text, callbacks, slots } = props;
@@ -5601,7 +3903,7 @@ const TaxAndCashDashboardView = (props) => {
5601
3903
  buttonText: text.verificationRequiredButtonText,
5602
3904
  alertType: "warning",
5603
3905
  icon: "exclamation-triangle",
5604
- class: sheet$5.classes.WarningHoldAlertContainer,
3906
+ class: sheet$4.classes.WarningHoldAlertContainer,
5605
3907
  };
5606
3908
  case "VERIFICATION:INTERNAL":
5607
3909
  return {
@@ -5614,7 +3916,7 @@ const TaxAndCashDashboardView = (props) => {
5614
3916
  }),
5615
3917
  alertType: "warning",
5616
3918
  icon: "exclamation-triangle",
5617
- class: sheet$5.classes.WarningHoldAlertContainer,
3919
+ class: sheet$4.classes.WarningHoldAlertContainer,
5618
3920
  };
5619
3921
  case "VERIFICATION:REVIEW":
5620
3922
  return {
@@ -5627,7 +3929,7 @@ const TaxAndCashDashboardView = (props) => {
5627
3929
  }),
5628
3930
  alertType: "warning",
5629
3931
  icon: "exclamation-triangle",
5630
- class: sheet$5.classes.WarningHoldAlertContainer,
3932
+ class: sheet$4.classes.WarningHoldAlertContainer,
5631
3933
  };
5632
3934
  case "VERIFICATION:FAILED":
5633
3935
  return {
@@ -5640,7 +3942,7 @@ const TaxAndCashDashboardView = (props) => {
5640
3942
  }),
5641
3943
  alertType: "critical",
5642
3944
  icon: "exclamation-octagon",
5643
- class: sheet$5.classes.ErrorHoldAlertContainer,
3945
+ class: sheet$4.classes.ErrorHoldAlertContainer,
5644
3946
  };
5645
3947
  case "HOLD":
5646
3948
  return {
@@ -5654,14 +3956,14 @@ const TaxAndCashDashboardView = (props) => {
5654
3956
  buttonText: null,
5655
3957
  alertType: "warning",
5656
3958
  icon: "exclamation-triangle",
5657
- class: sheet$5.classes.WarningHoldAlertContainer,
3959
+ class: sheet$4.classes.WarningHoldAlertContainer,
5658
3960
  };
5659
3961
  default:
5660
3962
  return;
5661
3963
  }
5662
3964
  }
5663
3965
  const statusMap = {
5664
- NOT_VERIFIED: (h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
3966
+ NOT_VERIFIED: (h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
5665
3967
  h("sl-badge", { type: "warning", pill: true }, text.statusTextNotVerified),
5666
3968
  h("p", null, intl.formatMessage({
5667
3969
  id: `badgeTextAwaitingReview`,
@@ -5669,7 +3971,7 @@ const TaxAndCashDashboardView = (props) => {
5669
3971
  }, {
5670
3972
  dateSubmitted: states.dateSubmitted,
5671
3973
  })))),
5672
- ACTIVE: (h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
3974
+ ACTIVE: (h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
5673
3975
  h("sl-badge", { type: "success", pill: true }, text.statusTextActive),
5674
3976
  h("p", null, intl.formatMessage({
5675
3977
  id: `badgeTextSubmittedOn`,
@@ -5679,12 +3981,12 @@ const TaxAndCashDashboardView = (props) => {
5679
3981
  }, {
5680
3982
  dateSubmitted: states.dateSubmitted,
5681
3983
  })))),
5682
- INACTIVE: (h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
3984
+ INACTIVE: (h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
5683
3985
  h("sl-badge", { type: "danger", pill: true }, text.statusTextNotActive),
5684
3986
  h("p", null, text.invalidForm))),
5685
3987
  };
5686
3988
  const alertMap = {
5687
- INACTIVE: (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.ErrorAlertContainer },
3989
+ INACTIVE: (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.ErrorAlertContainer },
5688
3990
  h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
5689
3991
  h("strong", null, intl.formatMessage({
5690
3992
  id: `taxAlertHeaderNotActive`,
@@ -5734,9 +4036,9 @@ const TaxAndCashDashboardView = (props) => {
5734
4036
  };
5735
4037
  return (h("div", null,
5736
4038
  h("div", null,
5737
- h("style", { type: "text/css" }, styleString$5),
4039
+ h("style", { type: "text/css" }, styleString$4),
5738
4040
  states.loadingError && (h("div", null,
5739
- h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.ErrorAlertContainer },
4041
+ h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.ErrorAlertContainer },
5740
4042
  h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
5741
4043
  h("strong", null, text.error.loadingErrorAlertHeader),
5742
4044
  h("br", null),
@@ -5746,7 +4048,7 @@ const TaxAndCashDashboardView = (props) => {
5746
4048
  }, {
5747
4049
  supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
5748
4050
  })))),
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 },
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 },
5750
4052
  h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
5751
4053
  h("strong", null, text.error.generalTitle),
5752
4054
  h("br", null),
@@ -5761,49 +4063,49 @@ const TaxAndCashDashboardView = (props) => {
5761
4063
  h("strong", null, getAlert(states.payoutStatus).header),
5762
4064
  h("p", { style: { margin: "0" } }, getAlert(states.payoutStatus).description),
5763
4065
  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)))),
5764
- h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet$5.classes.Dialog, open: states.showNewFormDialog, "onSl-hide": callbacks.onNewFormCancel },
4066
+ h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet$4.classes.Dialog, open: states.showNewFormDialog, "onSl-hide": callbacks.onNewFormCancel },
5765
4067
  h("p", null, text.replaceTaxFormModalBodyText),
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)),
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)),
5768
4070
  states.status === "INACTIVE" && alertMap[states.status],
5769
4071
  h("div", null,
5770
4072
  h("h3", { style: { marginBottom: "0" } }, text.bankingInformationSectionHeader),
5771
- h("p", { class: sheet$5.classes.PageDescriptionText }, text.taxAndPayoutsDescription),
5772
- h("div", { class: sheet$5.classes.BankingInformationContainer },
4073
+ h("p", { class: sheet$4.classes.PageDescriptionText }, text.taxAndPayoutsDescription),
4074
+ h("div", { class: sheet$4.classes.BankingInformationContainer },
5773
4075
  slots.payoutDetailsCardSlot,
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 },
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 },
5784
4086
  h("h3", null, intl.formatMessage({
5785
4087
  id: "section-subheader",
5786
4088
  defaultMessage: text.taxDocumentSectionSubHeader,
5787
4089
  }, {
5788
4090
  documentType: states.documentTypeString,
5789
4091
  })),
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 },
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 },
5796
4098
  text.indirectTaxInfoSectionHeader,
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({
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({
5801
4103
  id: "notRegisteredForTax",
5802
4104
  defaultMessage: text.notRegisteredForTax,
5803
4105
  }, {
5804
4106
  supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
5805
4107
  }))) : (getIndirectTaxRegisteredIn())),
5806
- !states.notRegistered && (h("div", { class: sheet$5.classes.TaxNumberContainer },
4108
+ !states.notRegistered && (h("div", { class: sheet$4.classes.TaxNumberContainer },
5807
4109
  h("span", null, intl.formatMessage({
5808
4110
  id: `indirectTaxDetails`,
5809
4111
  defaultMessage: text.indirectTaxDetails,
@@ -5826,7 +4128,7 @@ const TaxAndCashDashboardView = (props) => {
5826
4128
  }, {
5827
4129
  subRegionTaxNumber: states.subRegionTaxNumber,
5828
4130
  })))),
5829
- !states.notRegistered && (h("div", { class: sheet$5.classes.InvoiceTableContainer },
4131
+ !states.notRegistered && (h("div", { class: sheet$4.classes.InvoiceTableContainer },
5830
4132
  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 },
5831
4133
  h("sqm-invoice-table-download-column", null),
5832
4134
  h("sqm-invoice-table-date-column", { "column-title": text.dateColumnTitle }),
@@ -6282,23 +4584,31 @@ const TaxAndCashDashboard = class {
6282
4584
  }
6283
4585
  };
6284
4586
  function useDemoTaxAndCashDashboard(props) {
4587
+ // const states = parseStates(props.stateController);
6285
4588
  return cjs({
6286
4589
  states: {
6287
4590
  dateSubmitted: "today",
6288
4591
  documentType: "W9",
6289
4592
  documentTypeString: "W9",
6290
- status: "ACTIVE",
6291
4593
  country: "United States",
6292
- indirectTaxNumber: 55555555,
4594
+ indirectTaxNumber: "55555555",
6293
4595
  indirectTaxType: "Indirect Tax",
6294
- noFormNeeded: true,
4596
+ noFormNeeded: false,
6295
4597
  disabled: false,
6296
4598
  loading: false,
6297
4599
  showNewFormDialog: false,
6298
4600
  hasHold: false,
6299
- showVerifyIdentity: false,
4601
+ subRegion: "CA",
4602
+ subRegionTaxNumber: undefined,
4603
+ qstNumber: undefined,
4604
+ isBusinessEntity: false,
4605
+ province: undefined,
4606
+ notRegistered: true,
4607
+ loadingError: false,
6300
4608
  payoutStatus: "DONE",
6301
4609
  veriffLoading: false,
4610
+ canEditPayoutInfo: true,
4611
+ status: "ACTIVE",
6302
4612
  },
6303
4613
  callbacks: {
6304
4614
  onClick: () => console.debug("check step"),
@@ -6308,6 +4618,13 @@ function useDemoTaxAndCashDashboard(props) {
6308
4618
  onVerifyClick: () => console.log("verify"),
6309
4619
  },
6310
4620
  text: props.getTextProps(),
4621
+ slots: {
4622
+ payoutDetailsCardSlot: (h("sqm-payout-details-card", { demoData: {
4623
+ states: {
4624
+ badgeStatus: "nextPayout",
4625
+ },
4626
+ } })),
4627
+ },
6311
4628
  }, props.demoData || {}, { arrayMerge: (_, a) => a });
6312
4629
  }
6313
4630
 
@@ -7282,7 +5599,7 @@ const PHONE_EXTENSIONS = {
7282
5599
  },
7283
5600
  };
7284
5601
 
7285
- const style$7 = {
5602
+ const style$6 = {
7286
5603
  FormWrapper: {},
7287
5604
  ErrorInput: {
7288
5605
  "&::part(base)": {
@@ -7382,9 +5699,9 @@ const style$7 = {
7382
5699
  },
7383
5700
  },
7384
5701
  };
7385
- const sheet$6 = createStyleSheet(style$7);
7386
- const styleString$6 = sheet$6.toString();
7387
- const vanillaStyle$4 = `
5702
+ const sheet$5 = createStyleSheet(style$6);
5703
+ const styleString$5 = sheet$5.toString();
5704
+ const vanillaStyle$3 = `
7388
5705
  :host{
7389
5706
  display: block;
7390
5707
  }
@@ -7504,7 +5821,7 @@ const vanillaStyle$4 = `
7504
5821
  background-color: var(--sqm-input-background, #fff);
7505
5822
  border-radius: var(--sqm-input-border-radius, var(--sl-input-border-radius-large), 0.25rem);
7506
5823
  color: var(--sqm-input-color, white);
7507
- border-width: var(--sqm-border-width, 1px);
5824
+ border-width: var(--sqm-border-thickness, 1px);
7508
5825
  border-style: solid;
7509
5826
  border-color: var(--sqm-input-border-color, #ccc);
7510
5827
  }
@@ -7562,7 +5879,7 @@ const vanillaStyle$4 = `
7562
5879
  const UserInfoFormView = (props) => {
7563
5880
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
7564
5881
  const { states, states: { formState }, callbacks, text, refs, data, } = props;
7565
- const { classes } = sheet$6;
5882
+ const { classes } = sheet$5;
7566
5883
  const bankingCollectionText = intl.formatMessage({
7567
5884
  id: "bankingCollectionText",
7568
5885
  defaultMessage: text.allowBankingCollection,
@@ -7585,10 +5902,10 @@ const UserInfoFormView = (props) => {
7585
5902
  }
7586
5903
  return (h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
7587
5904
  h("style", { type: "text/css" },
7588
- styleString$6,
7589
- vanillaStyle$4),
5905
+ styleString$5,
5906
+ vanillaStyle$3),
7590
5907
  states.loadingError && (h("div", null,
7591
- h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$6.classes.AlertContainer },
5908
+ h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.AlertContainer },
7592
5909
  h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
7593
5910
  h("strong", null, text.error.loadingErrorAlertHeader),
7594
5911
  h("br", null),
@@ -7599,7 +5916,7 @@ const UserInfoFormView = (props) => {
7599
5916
  supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
7600
5917
  })),
7601
5918
  h("br", null))),
7602
- states.loading ? (h(GeneralLoadingView, null)) : (h("div", null,
5919
+ states.loading ? (h(LoadingView, null)) : (h("div", null,
7603
5920
  h("div", { class: classes.TextContainer },
7604
5921
  h("div", null,
7605
5922
  !states.hideSteps && (h("p", null, intl.formatMessage({
@@ -7608,7 +5925,7 @@ const UserInfoFormView = (props) => {
7608
5925
  }, { step: states.step, count: FORM_STEPS }))),
7609
5926
  h("h3", null, text.personalInformation),
7610
5927
  h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
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 },
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 },
7612
5929
  h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
7613
5930
  h("strong", null, text.error.generalTitle),
7614
5931
  h("br", null),
@@ -7618,7 +5935,7 @@ const UserInfoFormView = (props) => {
7618
5935
  }, {
7619
5936
  supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
7620
5937
  }))),
7621
- (states.isPartner || states.isUser) && (h("sl-alert", { type: "primary", open: true, class: sheet$6.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
5938
+ (states.isPartner || states.isUser) && (h("sl-alert", { type: "primary", open: true, class: sheet$5.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
7622
5939
  h("sl-icon", { slot: "icon", name: "info-circle" }),
7623
5940
  h("strong", null, text.isPartnerAlertHeader),
7624
5941
  h("br", null),
@@ -8112,19 +6429,20 @@ const TaxForm = class {
8112
6429
  }
8113
6430
  render() {
8114
6431
  const props = isDemo() ? useDemoUserInfoForm(this) : useUserInfoForm(this);
8115
- return (h(Host, null, h(UserInfoFormView, { data: props.data,
6432
+ return (h(UserInfoFormView, { data: props.data,
8116
6433
  // @ts-ignore
8117
6434
  states: props.states, callbacks: {
8118
6435
  ...props.callbacks,
8119
6436
  onSubmit: props.onSubmit,
8120
- }, text: props.text, refs: props.refs })));
6437
+ }, text: props.text, refs: props.refs }));
8121
6438
  }
8122
6439
  };
8123
6440
  function useDemoUserInfoForm(props) {
8124
6441
  const setStep = En(TAX_CONTEXT_NAMESPACE);
6442
+ // @ts-ignore
8125
6443
  return cjs({
8126
6444
  setStep,
8127
- onSubmit: () => {
6445
+ onSubmit: async () => {
8128
6446
  setStep("/2");
8129
6447
  },
8130
6448
  onRadioClick: () => { },
@@ -8167,4 +6485,4 @@ function useDemoUserInfoForm(props) {
8167
6485
  }, props.demoData || {}, { arrayMerge: (_, a) => a });
8168
6486
  }
8169
6487
 
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 };
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 };