@saasquatch/mint-components 2.2.0 → 2.3.0-10

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 (387) hide show
  1. package/dist/cjs/{data-8c8a08f6.js → data-89ac73dd.js} +2 -90
  2. package/dist/cjs/eventKeys-7af4df4d.js +5 -0
  3. package/dist/cjs/{keys-cff24974.js → keys-5a2c9ed2.js} +4 -0
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/cjs/mint-components.cjs.js +1 -1
  6. package/dist/cjs/parseStates-d1effc19.js +16 -0
  7. package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +480 -1059
  8. package/dist/cjs/{sqm-big-stat_46.cjs.entry.js → sqm-big-stat_47.cjs.entry.js} +450 -16
  9. package/dist/cjs/sqm-code-verification.cjs.entry.js +4 -5
  10. package/dist/cjs/sqm-email-verification_2.cjs.entry.js +879 -0
  11. package/dist/cjs/sqm-partner-info-modal-view-2b6fee0f.js +155 -0
  12. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +27 -9
  13. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +30 -9
  14. package/dist/cjs/sqm-stencilbook.cjs.entry.js +940 -357
  15. package/dist/cjs/sqm-user-info-form-view-374a3f01.js +1427 -0
  16. package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +1 -1
  17. package/dist/cjs/subregions-984e30d7.js +1505 -0
  18. package/dist/cjs/{usePayoutStatus-0192fccd.js → useIndirectTaxForm-112914a0.js} +294 -5
  19. package/dist/collection/collection-manifest.json +1 -0
  20. package/dist/collection/components/sqm-partner-info-modal/PartnerInfoModal.stories.js +171 -0
  21. package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal-view.js +149 -0
  22. package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal.js +671 -0
  23. package/dist/collection/components/sqm-partner-info-modal/usePartnerInfoModal.js +261 -0
  24. package/dist/collection/components/sqm-referral-table/ReferralTable.stories.js +1 -0
  25. package/dist/collection/components/sqm-referral-table/ReferralTableRewardsCell.stories.js +1 -0
  26. package/dist/collection/components/sqm-referral-table/TaxAndCashReferralTable.stories.js +2 -2
  27. package/dist/collection/components/sqm-referral-table/TaxAndCashReferralTableRewardsCell.stories.js +209 -145
  28. package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +30 -10
  29. package/dist/collection/components/sqm-rewards-table/RewardsTableCell.stories.js +1 -0
  30. package/dist/collection/components/sqm-rewards-table/TaxAndCashRewardsTable.stories.js +2 -2
  31. package/dist/collection/components/sqm-rewards-table/TaxAndCashRewardsTableCell.stories.js +223 -137
  32. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.js +30 -10
  33. package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +1 -0
  34. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +6 -0
  35. package/dist/collection/components/sqm-widget-verification/WidgetVerification.stories.js +16 -0
  36. package/dist/collection/components/sqm-widget-verification/keys.js +2 -0
  37. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +3 -4
  38. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +0 -2
  39. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/useEmailVerification.js +19 -9
  40. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +486 -46
  41. package/dist/collection/components/sqm-widget-verification/useWidgetVerification.js +43 -11
  42. package/dist/collection/components/tax-and-cash/data.js +2 -0
  43. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/formDefinitions.js +93 -37
  44. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +738 -13
  45. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +95 -1
  46. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +2 -10
  47. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +1 -1
  48. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +51 -12
  49. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/PayoutDetailsCard.stories.js +6 -0
  50. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card-view.js +13 -2
  51. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +59 -30
  52. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +51 -2
  53. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/TaxAndCashDashboardView.stories.js +151 -0
  54. package/dist/collection/components/tax-and-cash/sqm-user-info-form/UserInfoFormView.stories.js +0 -1
  55. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +26 -23
  56. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +0 -25
  57. package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +39 -19
  58. package/dist/collection/components/tax-and-cash/utils.js +55 -0
  59. package/dist/esm/{ShadowViewAddon-0b980200.js → ShadowViewAddon-e115fa1c.js} +5 -5
  60. package/dist/{mint-components/p-0c0d4065.js → esm/data-8698cbc6.js} +25 -5
  61. package/dist/esm/eventKeys-f76b6a03.js +3 -0
  62. package/dist/esm/{global-96c14d63.js → global-75e96214.js} +1 -1
  63. package/dist/esm/{index.module-b23fdad8.js → index.module-02cb914c.js} +1 -1
  64. package/dist/esm/keys-1054056a.js +8 -0
  65. package/dist/esm/loader.js +3 -3
  66. package/dist/esm/mint-components.js +3 -3
  67. package/dist/esm/parseStates-ed75e224.js +14 -0
  68. package/dist/esm/{re-render-f30aeb6b.js → re-render-bf46ba54.js} +1 -1
  69. package/dist/esm/sqm-banking-info-form_10.entry.js +466 -1045
  70. package/dist/esm/{sqm-big-stat_46.entry.js → sqm-big-stat_47.entry.js} +454 -21
  71. package/dist/esm/sqm-close-button.entry.js +1 -1
  72. package/dist/esm/sqm-code-verification.entry.js +7 -8
  73. package/dist/esm/sqm-context-router.entry.js +1 -1
  74. package/dist/esm/sqm-email-verification_2.entry.js +874 -0
  75. package/dist/esm/sqm-empty_4.entry.js +2 -2
  76. package/dist/esm/sqm-google-sign-in.entry.js +1 -1
  77. package/dist/esm/sqm-graphql-client-provider.entry.js +1 -1
  78. package/dist/esm/sqm-instant-access-registration.entry.js +3 -3
  79. package/dist/esm/{sqm-lead-checkbox-field-view-7928db07.js → sqm-lead-checkbox-field-view-bfafee56.js} +1 -1
  80. package/dist/esm/sqm-lead-checkbox-field.entry.js +4 -4
  81. package/dist/esm/{sqm-lead-input-field-view-d1b91650.js → sqm-lead-input-field-view-b945edf4.js} +1 -1
  82. package/dist/esm/sqm-lead-input-field.entry.js +4 -4
  83. package/dist/esm/sqm-leaderboard-rank.entry.js +2 -2
  84. package/dist/esm/sqm-logout-current-user.entry.js +1 -1
  85. package/dist/esm/{sqm-navigation-sidebar-item-view-b3beac5a.js → sqm-navigation-sidebar-item-view-8d98fcf3.js} +1 -1
  86. package/dist/esm/sqm-navigation-sidebar-item.entry.js +2 -2
  87. package/dist/esm/sqm-navigation-sidebar.entry.js +1 -1
  88. package/dist/esm/sqm-pagination_3.entry.js +3 -3
  89. package/dist/esm/sqm-partner-info-modal-view-bc843d7d.js +152 -0
  90. package/dist/esm/sqm-password-field.entry.js +2 -2
  91. package/dist/esm/sqm-popup-container.entry.js +1 -1
  92. package/dist/esm/{sqm-portal-email-verification-view-04528277.js → sqm-portal-email-verification-view-fde1eb35.js} +1 -1
  93. package/dist/esm/sqm-portal-email-verification.entry.js +3 -3
  94. package/dist/esm/sqm-portal-forgot-password_6.entry.js +4 -4
  95. package/dist/esm/sqm-portal-logout.entry.js +1 -1
  96. package/dist/esm/{sqm-portal-profile-view-b5ea620f.js → sqm-portal-profile-view-2018590a.js} +1 -1
  97. package/dist/esm/sqm-portal-profile.entry.js +4 -4
  98. package/dist/esm/sqm-portal-protected-route.entry.js +1 -1
  99. package/dist/esm/sqm-portal-reset-password.entry.js +1 -1
  100. package/dist/esm/{sqm-portal-verify-email-view-c61536b7.js → sqm-portal-verify-email-view-590f964b.js} +1 -1
  101. package/dist/esm/sqm-qr-code.entry.js +2 -2
  102. package/dist/esm/sqm-referral-table_11.entry.js +32 -14
  103. package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +2 -2
  104. package/dist/esm/sqm-rewards-table_9.entry.js +35 -14
  105. package/dist/esm/sqm-stencilbook.entry.js +916 -333
  106. package/dist/esm/sqm-tab.entry.js +2 -2
  107. package/dist/esm/sqm-tabs.entry.js +3 -3
  108. package/dist/esm/sqm-user-info-form-view-5322525c.js +1421 -0
  109. package/dist/esm/sqm-widget-verification-controller.entry.js +2 -2
  110. package/dist/esm/subregions-7c9778d0.js +1492 -0
  111. package/dist/esm/{useChildElements-9bccfb72.js → useChildElements-06937df7.js} +1 -1
  112. package/dist/esm/{usePayoutStatus-46c0c289.js → useIndirectTaxForm-a6ac7e7e.js} +292 -5
  113. package/dist/esm/{useInstantAccessRegistration-69fefed0.js → useInstantAccessRegistration-69c9ffe0.js} +2 -2
  114. package/dist/esm/{useLeadFormState-dd4e8b08.js → useLeadFormState-332b2796.js} +2 -2
  115. package/dist/esm/{usePortalRegistrationForm-62de6fb1.js → usePortalRegistrationForm-3a1f36a2.js} +2 -2
  116. package/dist/esm/{useReferralCodes-52ca720f.js → useReferralCodes-25f8b792.js} +1 -1
  117. package/dist/esm/{useReferralTable-92af4133.js → useReferralTable-03d32c6f.js} +3 -3
  118. package/dist/esm/{useRegistrationFormState-2c090c38.js → useRegistrationFormState-aa44cfff.js} +1 -1
  119. package/dist/esm/{useVerificationEmail-c13c3b51.js → useVerificationEmail-9f2c0bab.js} +1 -1
  120. package/dist/esm/{utilities-77b1e0cc.js → utilities-cbd8f2eb.js} +1 -1
  121. package/dist/esm-es5/{ShadowViewAddon-0b980200.js → ShadowViewAddon-e115fa1c.js} +1 -1
  122. package/dist/esm-es5/data-8698cbc6.js +1 -0
  123. package/dist/esm-es5/eventKeys-f76b6a03.js +1 -0
  124. package/dist/esm-es5/{global-96c14d63.js → global-75e96214.js} +1 -1
  125. package/dist/esm-es5/{index.module-b23fdad8.js → index.module-02cb914c.js} +1 -1
  126. package/dist/esm-es5/keys-1054056a.js +1 -0
  127. package/dist/esm-es5/loader.js +1 -1
  128. package/dist/esm-es5/mint-components.js +1 -1
  129. package/dist/esm-es5/parseStates-ed75e224.js +1 -0
  130. package/dist/esm-es5/{re-render-f30aeb6b.js → re-render-bf46ba54.js} +1 -1
  131. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
  132. package/dist/esm-es5/sqm-big-stat_47.entry.js +1 -0
  133. package/dist/esm-es5/sqm-close-button.entry.js +1 -1
  134. package/dist/esm-es5/sqm-code-verification.entry.js +1 -1
  135. package/dist/esm-es5/sqm-context-router.entry.js +1 -1
  136. package/dist/esm-es5/sqm-email-verification_2.entry.js +1 -0
  137. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  138. package/dist/esm-es5/sqm-google-sign-in.entry.js +1 -1
  139. package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
  140. package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
  141. package/dist/esm-es5/{sqm-lead-checkbox-field-view-7928db07.js → sqm-lead-checkbox-field-view-bfafee56.js} +1 -1
  142. package/dist/esm-es5/sqm-lead-checkbox-field.entry.js +1 -1
  143. package/dist/esm-es5/{sqm-lead-input-field-view-d1b91650.js → sqm-lead-input-field-view-b945edf4.js} +1 -1
  144. package/dist/esm-es5/sqm-lead-input-field.entry.js +1 -1
  145. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  146. package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
  147. package/dist/esm-es5/{sqm-navigation-sidebar-item-view-b3beac5a.js → sqm-navigation-sidebar-item-view-8d98fcf3.js} +1 -1
  148. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  149. package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
  150. package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
  151. package/dist/esm-es5/sqm-partner-info-modal-view-bc843d7d.js +1 -0
  152. package/dist/esm-es5/sqm-password-field.entry.js +1 -1
  153. package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
  154. package/dist/esm-es5/{sqm-portal-email-verification-view-04528277.js → sqm-portal-email-verification-view-fde1eb35.js} +1 -1
  155. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  156. package/dist/esm-es5/sqm-portal-forgot-password_6.entry.js +1 -1
  157. package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
  158. package/dist/esm-es5/{sqm-portal-profile-view-b5ea620f.js → sqm-portal-profile-view-2018590a.js} +1 -1
  159. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  160. package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
  161. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  162. package/dist/esm-es5/{sqm-portal-verify-email-view-c61536b7.js → sqm-portal-verify-email-view-590f964b.js} +1 -1
  163. package/dist/esm-es5/sqm-qr-code.entry.js +1 -1
  164. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  165. package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
  166. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  167. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  168. package/dist/esm-es5/sqm-tab.entry.js +1 -1
  169. package/dist/esm-es5/sqm-tabs.entry.js +1 -1
  170. package/dist/esm-es5/sqm-user-info-form-view-5322525c.js +1 -0
  171. package/dist/esm-es5/sqm-widget-verification-controller.entry.js +1 -1
  172. package/dist/esm-es5/subregions-7c9778d0.js +1 -0
  173. package/dist/esm-es5/{useChildElements-9bccfb72.js → useChildElements-06937df7.js} +1 -1
  174. package/dist/esm-es5/useIndirectTaxForm-a6ac7e7e.js +6 -0
  175. package/dist/esm-es5/{useInstantAccessRegistration-69fefed0.js → useInstantAccessRegistration-69c9ffe0.js} +1 -1
  176. package/dist/esm-es5/{useLeadFormState-dd4e8b08.js → useLeadFormState-332b2796.js} +1 -1
  177. package/dist/esm-es5/{usePortalRegistrationForm-62de6fb1.js → usePortalRegistrationForm-3a1f36a2.js} +1 -1
  178. package/dist/esm-es5/{useReferralCodes-52ca720f.js → useReferralCodes-25f8b792.js} +1 -1
  179. package/dist/esm-es5/{useReferralTable-92af4133.js → useReferralTable-03d32c6f.js} +1 -1
  180. package/dist/esm-es5/{useRegistrationFormState-2c090c38.js → useRegistrationFormState-aa44cfff.js} +1 -1
  181. package/dist/esm-es5/{useVerificationEmail-c13c3b51.js → useVerificationEmail-9f2c0bab.js} +1 -1
  182. package/dist/esm-es5/{utilities-77b1e0cc.js → utilities-cbd8f2eb.js} +1 -1
  183. package/dist/mint-components/mint-components.esm.js +1 -1
  184. package/dist/mint-components/mint-components.js +1 -1
  185. package/dist/mint-components/{p-626b31cb.system.entry.js → p-025ddad2.system.entry.js} +1 -1
  186. package/dist/mint-components/{p-5b871e38.system.entry.js → p-02c0f88e.system.entry.js} +1 -1
  187. package/dist/mint-components/{p-f55ecf35.system.js → p-02e2b13b.system.js} +1 -1
  188. package/dist/mint-components/{p-a4f8abad.js → p-0766438e.js} +1 -1
  189. package/dist/mint-components/{p-205cfdcd.system.js → p-0815b973.system.js} +1 -1
  190. package/dist/mint-components/{p-db0a2afd.entry.js → p-092c2606.entry.js} +1 -1
  191. package/dist/mint-components/{p-fe1d3cf8.system.entry.js → p-099ce3d5.system.entry.js} +1 -1
  192. package/dist/mint-components/p-0a6489fa.entry.js +1 -0
  193. package/dist/mint-components/{p-fc284f91.system.entry.js → p-0b32e1d4.system.entry.js} +1 -1
  194. package/dist/mint-components/p-115dfc03.system.js +1 -0
  195. package/dist/mint-components/{p-7b59e13c.system.js → p-1317cc92.system.js} +1 -1
  196. package/dist/mint-components/{p-2b4af8e8.system.entry.js → p-13bb56a8.system.entry.js} +1 -1
  197. package/dist/mint-components/{p-f8a09b0f.js → p-13d8ecad.js} +1 -1
  198. package/dist/mint-components/p-13e439bc.js +1 -0
  199. package/dist/mint-components/p-13f3a647.js +1 -0
  200. package/dist/mint-components/{p-61897e72.entry.js → p-14183edc.entry.js} +1 -1
  201. package/dist/mint-components/{p-8f2d03c7.entry.js → p-1599a178.entry.js} +1 -1
  202. package/dist/mint-components/{p-02499e08.entry.js → p-1b0326d1.entry.js} +1 -1
  203. package/dist/mint-components/p-1d398dbc.entry.js +11 -0
  204. package/dist/mint-components/p-1d86895f.system.js +1 -0
  205. package/dist/mint-components/{p-c8a3f3b0.js → p-1efb42e2.js} +1 -1
  206. package/dist/mint-components/p-1f387c7b.system.js +1 -0
  207. package/dist/mint-components/{p-a96c9bbb.system.entry.js → p-209157a9.system.entry.js} +1 -1
  208. package/dist/mint-components/{p-30c1ef36.system.js → p-2190dc73.system.js} +1 -1
  209. package/dist/mint-components/p-24a867ab.system.js +1 -0
  210. package/dist/mint-components/{p-80e116ec.system.entry.js → p-24f1d342.system.entry.js} +1 -1
  211. package/dist/mint-components/{p-6668f9f0.entry.js → p-27daf264.entry.js} +1 -1
  212. package/dist/mint-components/p-28ed2ae9.js +1 -0
  213. package/dist/mint-components/{p-09f7aacd.entry.js → p-29bc5f50.entry.js} +2 -2
  214. package/dist/mint-components/p-2bc6ac74.system.entry.js +1 -0
  215. package/dist/mint-components/{p-738dce27.system.entry.js → p-2d3f7b76.system.entry.js} +1 -1
  216. package/dist/mint-components/p-2d4132fb.js +99 -0
  217. package/dist/mint-components/p-2ed13619.entry.js +1 -0
  218. package/dist/mint-components/{p-c45a929a.system.entry.js → p-30cfe3e3.system.entry.js} +1 -1
  219. package/dist/mint-components/{p-d55c50af.system.js → p-31815fb6.system.js} +1 -1
  220. package/dist/mint-components/{p-c8bcbf8b.system.entry.js → p-3354cc75.system.entry.js} +1 -1
  221. package/dist/mint-components/{p-5bc5c61e.entry.js → p-335a5736.entry.js} +1 -1
  222. package/dist/mint-components/{p-e9485160.system.entry.js → p-33ca28ba.system.entry.js} +1 -1
  223. package/dist/mint-components/{p-8583ce0c.system.js → p-376c7608.system.js} +1 -1
  224. package/dist/mint-components/p-37e24621.system.entry.js +1 -0
  225. package/dist/mint-components/{p-95510f27.entry.js → p-38d04e4b.entry.js} +1 -1
  226. package/dist/mint-components/{p-e84b874c.js → p-3a41b39c.js} +1 -1
  227. package/dist/mint-components/{p-e5ea43b1.entry.js → p-3bbc0db2.entry.js} +2 -2
  228. package/dist/mint-components/{p-982d1f6f.entry.js → p-432a44de.entry.js} +3 -2
  229. package/dist/mint-components/{p-bab4929e.js → p-45230a44.js} +1 -1
  230. package/dist/mint-components/p-4691e9d5.system.js +1 -0
  231. package/dist/mint-components/{p-1d92c169.entry.js → p-4d73a616.entry.js} +1 -1
  232. package/dist/mint-components/{p-3bc62ca6.entry.js → p-4e3db52b.entry.js} +1 -1
  233. package/dist/mint-components/{p-3286ef38.js → p-4eaa3eb7.js} +1 -1
  234. package/dist/mint-components/{p-013564b3.entry.js → p-4eadbd5b.entry.js} +1 -1
  235. package/dist/mint-components/p-4f9dc974.js +1 -0
  236. package/dist/mint-components/{p-f7ca4cc4.system.entry.js → p-51ae6716.system.entry.js} +1 -1
  237. package/dist/mint-components/p-5623f1e0.js +1 -0
  238. package/dist/mint-components/p-5bc707cf.entry.js +299 -0
  239. package/dist/mint-components/p-5c52100b.js +117 -0
  240. package/dist/mint-components/{p-77b9cde8.system.js → p-5fdf0286.system.js} +1 -1
  241. package/dist/mint-components/{p-09348341.entry.js → p-60b1f3d9.entry.js} +1 -1
  242. package/dist/mint-components/{p-d005df28.system.entry.js → p-623a0a0b.system.entry.js} +1 -1
  243. package/dist/mint-components/{p-c30d0049.system.entry.js → p-6b4e5d94.system.entry.js} +1 -1
  244. package/dist/mint-components/p-6ef373ed.system.js +6 -0
  245. package/dist/mint-components/{p-f4e36adf.system.entry.js → p-6f6c3ac6.system.entry.js} +1 -1
  246. package/dist/mint-components/p-6f8dde97.system.js +1 -0
  247. package/dist/mint-components/{p-43c31fd5.system.js → p-7628e56f.system.js} +1 -1
  248. package/dist/mint-components/{p-653db72e.entry.js → p-78e6dc8d.entry.js} +1 -1
  249. package/dist/mint-components/{p-f581aac7.js → p-7a091fa7.js} +1 -1
  250. package/dist/mint-components/{p-40bad95a.entry.js → p-7cbdf341.entry.js} +2 -2
  251. package/dist/mint-components/{p-044f930a.system.js → p-7d2d9ef9.system.js} +1 -1
  252. package/dist/mint-components/{p-5c4ba8a0.entry.js → p-7ea3f49c.entry.js} +1 -1
  253. package/dist/mint-components/p-7f29622d.js +1 -0
  254. package/dist/mint-components/{p-5ce78407.system.entry.js → p-81bc6dca.system.entry.js} +1 -1
  255. package/dist/mint-components/{p-f6528f8a.entry.js → p-84495fb8.entry.js} +1 -1
  256. package/dist/mint-components/p-85ecc0aa.entry.js +83 -0
  257. package/dist/mint-components/{p-b96e90a2.system.entry.js → p-86d20b47.system.entry.js} +1 -1
  258. package/dist/mint-components/p-87f86492.js +1 -0
  259. package/dist/mint-components/p-8a08cec6.system.entry.js +1 -0
  260. package/dist/mint-components/{p-d0993bb9.js → p-8a6531d2.js} +1 -1
  261. package/dist/mint-components/p-8ae8968c.js +1 -0
  262. package/dist/mint-components/{p-7265bbcb.system.js → p-8e148cb0.system.js} +1 -1
  263. package/dist/mint-components/p-8f15bf17.entry.js +1 -0
  264. package/dist/mint-components/{p-b66f45d1.entry.js → p-921eb024.entry.js} +1 -1
  265. package/dist/mint-components/{p-f1374258.system.entry.js → p-925aa740.system.entry.js} +1 -1
  266. package/dist/mint-components/p-99eecdcb.system.entry.js +1 -0
  267. package/dist/mint-components/{p-e12754f5.system.entry.js → p-9a15cd5a.system.entry.js} +1 -1
  268. package/dist/mint-components/p-9c1f5317.system.js +1 -0
  269. package/dist/mint-components/{p-832aea99.js → p-9f48640d.js} +1 -1
  270. package/dist/mint-components/p-a49d9288.entry.js +1 -0
  271. package/dist/mint-components/p-a8cfa8fd.entry.js +9 -0
  272. package/dist/mint-components/{p-90833864.system.entry.js → p-ab59c5eb.system.entry.js} +1 -1
  273. package/dist/mint-components/{p-e6240c72.js → p-abd717d4.js} +1 -1
  274. package/dist/mint-components/p-ae2f610e.system.js +1 -0
  275. package/dist/mint-components/{p-19c441b2.system.js → p-b2ad3fca.system.js} +1 -1
  276. package/dist/mint-components/{p-c8a8d231.entry.js → p-b3309d9b.entry.js} +2 -2
  277. package/dist/mint-components/p-b3e1f2fa.entry.js +91 -0
  278. package/dist/mint-components/p-b7188d47.system.entry.js +1 -0
  279. package/dist/mint-components/{p-8962e023.js → p-b871d158.js} +1 -1
  280. package/dist/mint-components/p-b9509a55.system.entry.js +1 -0
  281. package/dist/mint-components/p-badf28bb.system.js +1 -0
  282. package/dist/mint-components/{p-035d9b65.js → p-bb0b5e4b.js} +1 -1
  283. package/dist/mint-components/{p-52674798.entry.js → p-bcfdb510.entry.js} +1 -1
  284. package/dist/mint-components/p-bd03efe0.system.js +1 -0
  285. package/dist/mint-components/{p-642f2c89.js → p-bf9ab2d3.js} +1 -1
  286. package/dist/mint-components/{p-bc386a7b.js → p-c0a85e22.js} +1 -1
  287. package/dist/mint-components/p-c0f8f977.system.entry.js +1 -0
  288. package/dist/mint-components/p-c13c20b2.system.js +1 -0
  289. package/dist/mint-components/p-c41d536d.entry.js +1 -0
  290. package/dist/mint-components/{p-a0c5631b.system.js → p-c66e5217.system.js} +1 -1
  291. package/dist/mint-components/{p-0d83907e.js → p-cfea215d.js} +1 -1
  292. package/dist/mint-components/p-d08408b3.entry.js +1 -0
  293. package/dist/mint-components/{p-172675ca.system.js → p-d284ae70.system.js} +1 -1
  294. package/dist/mint-components/{p-027fc3be.system.entry.js → p-d34564f8.system.entry.js} +1 -1
  295. package/dist/mint-components/{p-1021a49f.system.entry.js → p-db6bf7cf.system.entry.js} +1 -1
  296. package/dist/mint-components/{p-4da5a3fe.system.entry.js → p-df897432.system.entry.js} +1 -1
  297. package/dist/mint-components/{p-036a2617.system.js → p-e651593c.system.js} +1 -1
  298. package/dist/mint-components/{p-f39cf252.system.entry.js → p-e6de31a7.system.entry.js} +1 -1
  299. package/dist/mint-components/{p-2668335b.js → p-e8e7af06.js} +1 -1
  300. package/dist/mint-components/{p-85721089.system.js → p-e920c95c.system.js} +1 -1
  301. package/dist/mint-components/{p-3366b81e.js → p-eae44b42.js} +2 -2
  302. package/dist/mint-components/{p-af407cce.entry.js → p-ef32fa8f.entry.js} +1 -1
  303. package/dist/mint-components/{p-7efb8782.system.js → p-f32050f6.system.js} +1 -1
  304. package/dist/mint-components/{p-782af7ae.system.entry.js → p-f6de2e5c.system.entry.js} +1 -1
  305. package/dist/mint-components/{p-9390586b.system.entry.js → p-fa85ea51.system.entry.js} +1 -1
  306. package/dist/types/components/sqm-partner-info-modal/PartnerInfoModal.stories.d.ts +15 -0
  307. package/dist/types/components/sqm-partner-info-modal/sqm-partner-info-modal-view.d.ts +51 -0
  308. package/dist/types/components/sqm-partner-info-modal/sqm-partner-info-modal.d.ts +123 -0
  309. package/dist/types/components/sqm-partner-info-modal/usePartnerInfoModal.d.ts +16 -0
  310. package/dist/types/components/sqm-referral-table/TaxAndCashReferralTableRewardsCell.stories.d.ts +18 -1
  311. package/dist/types/components/sqm-rewards-table/TaxAndCashRewardsTableCell.stories.d.ts +19 -7
  312. package/dist/types/components/sqm-widget-verification/WidgetVerification.stories.d.ts +8 -0
  313. package/dist/types/components/sqm-widget-verification/keys.d.ts +2 -0
  314. package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +75 -7
  315. package/dist/types/components/sqm-widget-verification/useWidgetVerification.d.ts +2 -0
  316. package/dist/types/components/tax-and-cash/data.d.ts +3 -0
  317. package/dist/types/components/tax-and-cash/sqm-banking-info-form/formDefinitions.d.ts +8 -0
  318. package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.d.ts +4 -0
  319. package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.d.ts +173 -0
  320. package/dist/types/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.d.ts +2 -0
  321. package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.d.ts +7 -0
  322. package/dist/types/components/tax-and-cash/sqm-payout-details-card/PayoutDetailsCard.stories.d.ts +1 -0
  323. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +10 -5
  324. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/TaxAndCashDashboardView.stories.d.ts +19 -0
  325. package/dist/types/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.d.ts +0 -1
  326. package/dist/types/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.d.ts +0 -4
  327. package/dist/types/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.d.ts +1 -0
  328. package/dist/types/components/tax-and-cash/utils.d.ts +5 -0
  329. package/dist/types/components.d.ts +644 -32
  330. package/dist/types/saasquatch.d.ts +2 -0
  331. package/docs/docs.docx +0 -0
  332. package/docs/raisins.json +1 -1
  333. package/grapesjs/grapesjs.js +1 -1
  334. package/package.json +2 -4
  335. package/dist/cjs/extractProps-e9c55ba8.js +0 -35
  336. package/dist/cjs/sqm-email-verification.cjs.entry.js +0 -418
  337. package/dist/cjs/sqm-user-info-form-view-53306f6e.js +0 -2074
  338. package/dist/cjs/sqm-widget-verification.cjs.entry.js +0 -214
  339. package/dist/esm/data-12e6aae1.js +0 -216
  340. package/dist/esm/extractProps-54064fb0.js +0 -32
  341. package/dist/esm/keys-406491dc.js +0 -6
  342. package/dist/esm/sqm-email-verification.entry.js +0 -414
  343. package/dist/esm/sqm-user-info-form-view-19d81a2b.js +0 -2066
  344. package/dist/esm/sqm-widget-verification.entry.js +0 -210
  345. package/dist/esm-es5/data-12e6aae1.js +0 -1
  346. package/dist/esm-es5/extractProps-54064fb0.js +0 -1
  347. package/dist/esm-es5/keys-406491dc.js +0 -1
  348. package/dist/esm-es5/sqm-big-stat_46.entry.js +0 -1
  349. package/dist/esm-es5/sqm-email-verification.entry.js +0 -1
  350. package/dist/esm-es5/sqm-user-info-form-view-19d81a2b.js +0 -1
  351. package/dist/esm-es5/sqm-widget-verification.entry.js +0 -1
  352. package/dist/esm-es5/usePayoutStatus-46c0c289.js +0 -6
  353. package/dist/mint-components/p-00b235c5.system.entry.js +0 -1
  354. package/dist/mint-components/p-0706cf9e.system.entry.js +0 -1
  355. package/dist/mint-components/p-0797a946.js +0 -1
  356. package/dist/mint-components/p-13292317.entry.js +0 -11
  357. package/dist/mint-components/p-2d5c2bd4.system.entry.js +0 -1
  358. package/dist/mint-components/p-38c7775a.js +0 -1
  359. package/dist/mint-components/p-3adbfd0b.system.js +0 -6
  360. package/dist/mint-components/p-3af3e2c1.entry.js +0 -25
  361. package/dist/mint-components/p-5492dd51.system.entry.js +0 -1
  362. package/dist/mint-components/p-57dd28bd.system.js +0 -1
  363. package/dist/mint-components/p-5b1d2866.system.js +0 -1
  364. package/dist/mint-components/p-6c4ad51a.js +0 -1
  365. package/dist/mint-components/p-77fa2383.entry.js +0 -1
  366. package/dist/mint-components/p-7939e4af.entry.js +0 -1
  367. package/dist/mint-components/p-8285869e.entry.js +0 -9
  368. package/dist/mint-components/p-892797eb.system.entry.js +0 -1
  369. package/dist/mint-components/p-91a96e98.entry.js +0 -1
  370. package/dist/mint-components/p-b2b85238.entry.js +0 -1
  371. package/dist/mint-components/p-b395470f.entry.js +0 -16
  372. package/dist/mint-components/p-bba16a46.system.entry.js +0 -1
  373. package/dist/mint-components/p-be12607e.entry.js +0 -281
  374. package/dist/mint-components/p-bf188b72.system.entry.js +0 -1
  375. package/dist/mint-components/p-ca098be1.system.js +0 -1
  376. package/dist/mint-components/p-d18dedd4.js +0 -1
  377. package/dist/mint-components/p-d4f332a7.entry.js +0 -106
  378. package/dist/mint-components/p-d6193876.system.js +0 -1
  379. package/dist/mint-components/p-de0d6fd7.js +0 -49
  380. package/dist/mint-components/p-e00ec007.js +0 -1
  381. package/dist/mint-components/p-e55aafe9.system.js +0 -1
  382. package/dist/mint-components/p-ea03e50e.system.js +0 -1
  383. package/dist/mint-components/p-ec0b649a.entry.js +0 -1
  384. package/dist/mint-components/p-f8026ed6.system.js +0 -1
  385. package/dist/mint-components/p-fb804001.system.entry.js +0 -1
  386. package/dist/mint-components/p-fe70e20c.entry.js +0 -1
  387. package/dist/mint-components/p-ff118a19.system.js +0 -1
@@ -0,0 +1,151 @@
1
+ import { h } from "@stencil/core";
2
+ import { TaxAndCashDashboardView, } from "./sqm-tax-and-cash-dashboard-view";
3
+ import { taxTypeToName } from "../utils";
4
+ export default {
5
+ title: "Components/Tax And Cash Dashboard View",
6
+ };
7
+ const defaultText = {
8
+ statusTextActive: "Active",
9
+ statusTextNotActive: "Invalid Tax Form",
10
+ statusTextNotVerified: "Not Verified",
11
+ statusTextRequired: "Required",
12
+ requiredTaxForm: "Your payouts are on hold until you submit a {taxFormType} tax form.",
13
+ badgeTextSubmittedOn: "Submitted on {dateSubmitted}.",
14
+ badgeTextSubmittedOnW8: "Submitted on {dateSubmitted}. Valid for three years after submission.",
15
+ badgeTextAwaitingReview: "Awaiting review. Submitted on {dateSubmitted}.",
16
+ taxAlertHeaderNotActiveW9: "Your W-9 tax form has personal information that doesn't match your profile",
17
+ taxAlertHeaderNotActiveW8: "{documentType} tax form is invalid",
18
+ taxAlertNotActiveMessageW9: "Please resubmit a new {documentType} form.",
19
+ taxAlertNotActiveMessageW8: "Your tax form may have expired or has personal information that doesn't match your profile. Please submit a new {documentType} form.",
20
+ invalidForm: "Make sure your information is correct and submit new form.",
21
+ bankingInformationSectionHeader: "Payout information",
22
+ taxDocumentSectionHeader: "Tax documents",
23
+ taxDocumentSectionSubHeader: "{documentType} tax form",
24
+ taxDocumentSectionSubHeaderNoDocument: "Tax form",
25
+ indirectTaxInfoSectionHeader: "Indirect tax",
26
+ indirectTaxInfoCanada: "Registered in {province}, {country}",
27
+ indirectTaxInfoOtherCountry: "Registered in {country}",
28
+ indirectTaxInfoSpain: "Registered in {country}, {subRegion}",
29
+ indirectTaxTooltipSupport: "To make changes to your indirect tax information, please contact our {supportLink}.",
30
+ indirectTaxDetails: "{indirectTaxType} number: {indirectTaxNumber}",
31
+ newFormButton: "Submit new tax form",
32
+ editPaymentInformationButton: "Edit payout information",
33
+ 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.",
34
+ qstNumber: "QST number: {qstNumber}",
35
+ subRegionTaxNumber: "Income tax number: {subRegionTaxNumber}",
36
+ invoiceColumnTitle: "Invoice",
37
+ dateColumnTitle: "Date",
38
+ earningsColumnTitle: "Earnings",
39
+ indirectTaxColumnTitle: "Indirect tax",
40
+ earningsAfterTaxColumnTitle: "Earnings after tax",
41
+ invoiceDescription: "View and download your invoices to report your earnings and stay tax compliant.",
42
+ invoicePrevLabel: "Prev",
43
+ invoiceMoreLabel: "Next",
44
+ invoiceHeader: "Invoices",
45
+ invoiceEmptyStateHeader: "View your invoice details",
46
+ invoiceEmptyStateText: "Refer a friend to view the status of your invoices and rewards earned",
47
+ payoutFromImpact: "Your balance may take up to 24 hours to update. Payouts will be sent from our referral program provider, impact.com.",
48
+ replaceTaxFormModalHeader: "Replace existing tax form",
49
+ 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.",
50
+ supportLink: "support team",
51
+ cancelButton: "Cancel",
52
+ payoutHoldAlertHeader: "Your payout is on hold",
53
+ payoutHoldAlertDescription: "Please contact our {supportLink} or check your inbox for an email from our referral program provider, impact.com.",
54
+ verificationRequiredHeader: "Verify your identity",
55
+ 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}.",
56
+ verificationRequiredButtonText: "Start Verification",
57
+ verificationRequiredInternalHeader: "Identity verification in progress",
58
+ 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}.",
59
+ verificationReviewInternalHeader: "Identity verification under review",
60
+ 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}.",
61
+ verificationFailedInternalHeader: "Identity verification unsuccessful",
62
+ 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}.",
63
+ w9RequiredHeader: "Your next payout is on hold",
64
+ w9RequiredDescription: "You have surpassed the $2000 threshold requiring a W-9 form or have multiple accounts with impact.com. To remove the hold, please submit your W-9 form.",
65
+ w9RequiredButtonText: "Submit W-9",
66
+ accountReviewHeader: "Your account is under review",
67
+ accountReviewDescription: "This process takes 48 hours, payouts are on hold until it's completed. You will receive an email from our referral provider, Impact.com, if any issues arise. It contains details on how to resolve this issue. If you need further assistance, please reach out to our {supportLink}.",
68
+ paymentHoldOnChangeHeader: "We are reviewing your new payout settings",
69
+ paymentHoldOnChangeDescription: "Your payout is temporarily on hold while we review your new payment information, this process is usually resolved within 48 hours.",
70
+ beneficiaryNameInvalidHeader: "Your payment information does not match your tax form",
71
+ beneficiaryNameInvalidDescription: "The account holder (beneficiary) name in your payment information does not match what was submitted in your tax form. Please review and update your payment information or tax form so that they match exactly and do not include any invalid characters. Your payouts are on hold until this is resolved.",
72
+ beneficiaryNameMismatchHeader: "Your payment information does not match your tax form",
73
+ beneficiaryNameMismatchDescription: "The account holder (beneficiary) name in your payment information does not match what was submitted in your tax form. Please review and update your payment information or tax form so that they match exactly and do not include any invalid characters. Your payouts are on hold until this is resolved.",
74
+ bankTaxNameMismatchHeader: "Your payment information does not match your tax form",
75
+ bankTaxNameMismatchDescription: "The bank account (beneficiary) name in your payment information does not match what was submitted in your tax form. Please review and update your payment information or tax form so that they match exactly and do not include any invalid characters. Your payouts are on hold until this is resolved.",
76
+ withdrawalSettingsInvalidHeader: "Your payment information is incomplete or includes invalid characters",
77
+ withdrawalSettingsInvalidDescription: "There are missing fields or invalid characters in your payment information. Please review your information and make sure it is correct. Your payouts are on hold until this is resolved.",
78
+ paymentReturnedHeader: "Payout unsuccessful",
79
+ paymentReturnedDescription: "Our recent payment attempt for your earnings was unsuccessful. Please review your payment information and make sure it is correct.",
80
+ termsAndConditions: "Terms and Conditions",
81
+ error: {
82
+ generalTitle: "There was a problem submitting your information",
83
+ generalDescription: "Please review your information and try again. If this problem continues, contact our {supportLink}.",
84
+ loadingErrorAlertHeader: "There was a problem loading your form",
85
+ loadingErrorAlertDescription: "Please refresh the page and try again. If this problem continues, contact our {supportLink}.",
86
+ },
87
+ };
88
+ const defaultCallbacks = {
89
+ onClick: () => { },
90
+ onVerifyClick: () => { },
91
+ onEditPayoutInfo: () => { },
92
+ onNewFormCancel: () => { },
93
+ onNewFormClick: () => { },
94
+ };
95
+ const defaultSlots = {
96
+ payoutDetailsCardSlot: (h("sqm-payout-details-card", { demoData: { states: { badgeStatus: "nextPayout" } } })),
97
+ };
98
+ const baseStates = {
99
+ payoutStatus: "DONE",
100
+ veriffLoading: false,
101
+ canEditPayoutInfo: true,
102
+ disabled: false,
103
+ status: "ACTIVE",
104
+ documentType: "W9",
105
+ documentTypeString: taxTypeToName("W9"),
106
+ dateSubmitted: "Jan 18th, 2025",
107
+ noFormNeeded: false,
108
+ country: "United States",
109
+ indirectTaxType: "VAT",
110
+ indirectTaxNumber: "123456",
111
+ showNewFormDialog: false,
112
+ hasHold: false,
113
+ loading: false,
114
+ loadingError: false,
115
+ };
116
+ // Stories not covered by TaxForm.stories.tsx (which uses sqm-tax-and-cash-dashboard WC)
117
+ // ─── Base ─────────────────────────────────────────────────────────────────────
118
+ export const ActiveW9Form = () => (h(TaxAndCashDashboardView, { states: baseStates, text: defaultText, callbacks: defaultCallbacks, slots: defaultSlots }));
119
+ export const TaxFormRequired = () => (h(TaxAndCashDashboardView, { states: {
120
+ ...baseStates,
121
+ status: undefined,
122
+ documentType: "W9",
123
+ documentTypeString: taxTypeToName("W9"),
124
+ noFormNeeded: false,
125
+ }, text: defaultText, callbacks: defaultCallbacks, slots: defaultSlots }));
126
+ // ─── Payout hold statuses not in TaxForm.stories.tsx ─────────────────────────
127
+ export const AccountUnderReview = () => (h(TaxAndCashDashboardView, { states: { ...baseStates, payoutStatus: "NEW_PAYEE_REVIEW" }, text: defaultText, callbacks: defaultCallbacks, slots: defaultSlots }));
128
+ export const PaymentHoldOnChange = () => (h(TaxAndCashDashboardView, { states: { ...baseStates, payoutStatus: "PAYMENT_HOLD_ON_CHANGE" }, text: defaultText, callbacks: defaultCallbacks, slots: defaultSlots }));
129
+ export const BeneficiaryNameInvalid = () => (h(TaxAndCashDashboardView, { states: { ...baseStates, payoutStatus: "BENEFICIARY_NAME_INVALID" }, text: defaultText, callbacks: defaultCallbacks, slots: defaultSlots }));
130
+ export const BeneficiaryNameMismatch = () => (h(TaxAndCashDashboardView, { states: { ...baseStates, payoutStatus: "BENEFICIARY_NAME_MISMATCH" }, text: defaultText, callbacks: defaultCallbacks, slots: defaultSlots }));
131
+ export const BankTaxNameMismatch = () => (h(TaxAndCashDashboardView, { states: { ...baseStates, payoutStatus: "BANK_TAX_NAME_MISMATCH" }, text: defaultText, callbacks: defaultCallbacks, slots: defaultSlots }));
132
+ export const WithdrawalSettingsInvalid = () => (h(TaxAndCashDashboardView, { states: { ...baseStates, payoutStatus: "WITHDRAWAL_SETTINGS_INVALID" }, text: defaultText, callbacks: defaultCallbacks, slots: defaultSlots }));
133
+ export const PaymentReturned = () => (h(TaxAndCashDashboardView, { states: { ...baseStates, payoutStatus: "PAYMENT_RETURNED" }, text: defaultText, callbacks: defaultCallbacks, slots: defaultSlots }));
134
+ export const W9ThresholdReachedHardBlock = () => (h(TaxAndCashDashboardView, { states: {
135
+ ...baseStates,
136
+ payoutStatus: "OVER_W9_THRESHOLD",
137
+ enforceUsTaxComplianceOption: "HARD_BLOCK",
138
+ status: undefined,
139
+ }, text: defaultText, callbacks: defaultCallbacks, slots: defaultSlots }));
140
+ // ─── Verification loading state ───────────────────────────────────────────────
141
+ export const VerificationRequiredLoading = () => (h(TaxAndCashDashboardView, { states: {
142
+ ...baseStates,
143
+ payoutStatus: "VERIFICATION:REQUIRED",
144
+ veriffLoading: true,
145
+ notRegistered: true,
146
+ }, text: defaultText, callbacks: defaultCallbacks, slots: defaultSlots }));
147
+ // ─── Loading and error states ─────────────────────────────────────────────────
148
+ export const Loading = () => (h(TaxAndCashDashboardView, { states: { ...baseStates, loading: true }, text: defaultText, callbacks: defaultCallbacks, slots: defaultSlots }));
149
+ export const LoadingError = () => (h(TaxAndCashDashboardView, { states: { ...baseStates, loadingError: true }, text: defaultText, callbacks: defaultCallbacks, slots: defaultSlots }));
150
+ export const GeneralError = () => (h(TaxAndCashDashboardView, { states: { ...baseStates, errors: { general: true } }, text: defaultText, callbacks: defaultCallbacks, slots: defaultSlots }));
151
+ export const Disabled = () => (h(TaxAndCashDashboardView, { states: { ...baseStates, disabled: true }, text: defaultText, callbacks: defaultCallbacks, slots: defaultSlots }));
@@ -70,7 +70,6 @@ const defaultText = {
70
70
  region: "Region",
71
71
  postalCode: "Postal Code",
72
72
  currency: "Currency",
73
- currencyHelpText: "Select your preferred currency for payouts",
74
73
  allowBankingCollection: "I agree to the {termsAndConditionsLink}",
75
74
  personalInformation: "Personal Information",
76
75
  continueButton: "Continue",
@@ -4,7 +4,7 @@ import { createStyleSheet } from "../../../styling/JSS";
4
4
  import { FORM_STEPS } from "../data";
5
5
  import { PHONE_EXTENSIONS } from "../phoneExtensions";
6
6
  import LoadingView from "../sqm-tax-and-cash/LoadingView";
7
- import { formatErrorMessage, validateBillingField } from "../utils";
7
+ import { formatErrorMessage, isValidI18nPhoneNumber, validateBillingField, } from "../utils";
8
8
  const style = {
9
9
  FormWrapper: {},
10
10
  ErrorInput: {
@@ -264,7 +264,7 @@ const vanillaStyle = `
264
264
  }
265
265
  `;
266
266
  export const UserInfoFormView = (props) => {
267
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
267
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
268
268
  const { states, states: { formState }, callbacks, text, refs, data, } = props;
269
269
  const { classes } = sheet;
270
270
  const bankingCollectionText = intl.formatMessage({
@@ -287,9 +287,20 @@ export const UserInfoFormView = (props) => {
287
287
  default:
288
288
  regionLabel = text.state;
289
289
  }
290
+ // when creating an impact connection without sending phoneNumber data, the impactAPI defaults the value to "0000000" and the phoneNumberCountryCode to "DZ"
290
291
  function isDisabledPartnerInput(field) {
291
- var _a;
292
- return states.isPartner && !!((_a = data.partnerData) === null || _a === void 0 ? void 0 : _a[field]);
292
+ var _a, _b, _c, _d;
293
+ if (((_a = data.partnerData) === null || _a === void 0 ? void 0 : _a.phoneNumber) === "0000000" &&
294
+ (field === "phoneNumber" || field === "phoneNumberCountryCode")) {
295
+ return false;
296
+ }
297
+ // if bad phone number was previously saved, unlock the field so user can correct it
298
+ if ((field === "phoneNumber" || field === "phoneNumberCountryCode") &&
299
+ states.isPartner &&
300
+ !isValidI18nPhoneNumber((_b = data.partnerData) === null || _b === void 0 ? void 0 : _b.phoneNumberCountryCode, (_c = data.partnerData) === null || _c === void 0 ? void 0 : _c.phoneNumber)) {
301
+ return false;
302
+ }
303
+ return states.isPartner && !!((_d = data.partnerData) === null || _d === void 0 ? void 0 : _d[field]);
293
304
  }
294
305
  function isDisabledUserInput(field) {
295
306
  var _a;
@@ -325,14 +336,6 @@ export const UserInfoFormView = (props) => {
325
336
  }, {
326
337
  supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
327
338
  })))),
328
- (states.isPartner || states.isUser) && (h("sqm-form-message", { loading: states.loading, type: "info" },
329
- h("p", { part: "alert-title" }, text.isPartnerAlertHeader),
330
- h("p", { part: "alert-description" }, intl.formatMessage({
331
- id: "isPartnerAlertDescription",
332
- defaultMessage: text.isPartnerAlertDescription,
333
- }, {
334
- supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
335
- })))),
336
339
  h("div", null,
337
340
  h("div", { class: classes.InputContainer },
338
341
  h("sl-input", Object.assign({ class: "ErrorInput", exportparts: "label: input-label, base: input-base", value: formState.firstName, label: text.firstName, disabled: states.disabled || isDisabledUserInput("firstName") }, (((_b = formState.errors) === null || _b === void 0 ? void 0 : _b.firstName) ? {
@@ -385,10 +388,15 @@ export const UserInfoFormView = (props) => {
385
388
  h("div", { slot: "prefix" }, `${(_a = PHONE_EXTENSIONS[c.countryCode]) === null || _a === void 0 ? void 0 : _a.name} `), (_b = PHONE_EXTENSIONS[c.countryCode]) === null || _b === void 0 ? void 0 :
386
389
  _b.dial_code));
387
390
  })),
388
- h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", id: "phoneNumber", name: "/phoneNumber", value: formState.phoneNumber, validationError: ({ value }) => {
389
- // Naive phone number validation
390
- validateBillingField(/[a-zA-Z]+/, value) &&
391
- formatErrorMessage(text.phoneNumber, text.error.fieldInvalidError);
391
+ h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", id: "phoneNumber", name: "/phoneNumber", value: formState.phoneNumber, validationError: ({ control, value, formData }) => {
392
+ // skip validation for values the user can't edit
393
+ if (control === null || control === void 0 ? void 0 : control.disabled)
394
+ return undefined;
395
+ if (!(value === null || value === void 0 ? void 0 : value.trim()))
396
+ return undefined;
397
+ return isValidI18nPhoneNumber(formData.phoneNumberCountryCode, value)
398
+ ? undefined
399
+ : formatErrorMessage(text.phoneNumber, text.error.fieldInvalidError);
392
400
  }, disabled: states.disabled || isDisabledPartnerInput("phoneNumber") }, (((_k = formState.errors) === null || _k === void 0 ? void 0 : _k.phoneNumber) ? {
393
401
  class: classes.ErrorInput,
394
402
  helpText: formatErrorMessage(text.phoneNumber, formState.errors.phoneNumber),
@@ -420,7 +428,7 @@ export const UserInfoFormView = (props) => {
420
428
  helpText: formatErrorMessage(text.postalCode, formState.errors.postalCode),
421
429
  }
422
430
  : {}), { required: true })),
423
- h("sl-select", Object.assign({ id: "currency", exportparts: "label: input-label, base: input-base", name: "/currency", label: text.currency, menu: true, value: formState.currency, disabled: states.disabled || isDisabledPartnerInput("currency"), helpText: text.currencyHelpText }, (((_r = formState.errors) === null || _r === void 0 ? void 0 : _r.currency) ? {
431
+ h("sl-select", Object.assign({ id: "currency", exportparts: "label: input-label, base: input-base", name: "/currency", label: text.currency, menu: true, value: formState.currency, disabled: states.disabled || isDisabledPartnerInput("currency") }, (((_r = formState.errors) === null || _r === void 0 ? void 0 : _r.currency) ? {
424
432
  class: classes.ErrorInput,
425
433
  helpText: formatErrorMessage(text.currency, formState.errors.currency),
426
434
  }
@@ -438,11 +446,6 @@ export const UserInfoFormView = (props) => {
438
446
  _t.map((c) => (h("sl-menu-item", { value: c.currencyCode, style: { display: "none" } },
439
447
  c.currencyCode,
440
448
  " - ",
441
- c.displayName)))),
442
- h("div", { class: classes.CheckboxWrapper },
443
- h("sl-checkbox", { checked: formState.allowBankingCollection === true, "onSl-change": (e) => {
444
- e.target.value = e.target.checked;
445
- }, disabled: states.disabled, required: true, value: formState.allowBankingCollection, id: "allowBankingCollection", name: "/allowBankingCollection" }, bankingCollectionText),
446
- ((_u = formState.errors) === null || _u === void 0 ? void 0 : _u.allowBankingCollection) && (h("p", { class: classes.ErrorText }, formatErrorMessage(text.termsAndConditionsLabel, formState.errors.allowBankingCollection))))),
449
+ c.displayName))))),
447
450
  h("sl-button", { type: "primary", disabled: states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton))))));
448
451
  };
@@ -61,10 +61,6 @@ export class TaxForm {
61
61
  * @uiName Currency field label
62
62
  */
63
63
  this.currency = "Currency";
64
- /**
65
- * @uiName Currency field help text
66
- */
67
- this.currencyHelpText = "Choose your preferred payout currency";
68
64
  /**
69
65
  * @uiName Setup progress
70
66
  */
@@ -443,27 +439,6 @@ export class TaxForm {
443
439
  "reflect": false,
444
440
  "defaultValue": "\"Currency\""
445
441
  },
446
- "currencyHelpText": {
447
- "type": "string",
448
- "mutable": false,
449
- "complexType": {
450
- "original": "string",
451
- "resolved": "string",
452
- "references": {}
453
- },
454
- "required": false,
455
- "optional": false,
456
- "docs": {
457
- "tags": [{
458
- "text": "Currency field help text",
459
- "name": "uiName"
460
- }],
461
- "text": ""
462
- },
463
- "attribute": "currency-help-text",
464
- "reflect": false,
465
- "defaultValue": "\"Choose your preferred payout currency\""
466
- },
467
442
  "formStep": {
468
443
  "type": "string",
469
444
  "mutable": false,
@@ -5,7 +5,7 @@ import { CURRENCIES_NAMESPACE, SORTED_COUNTRIES_NAMESPACE, TAX_CONTEXT_NAMESPACE
5
5
  import { ADDRESS_REGIONS } from "../subregions";
6
6
  import { objectIsFull, validTaxDocument } from "../utils";
7
7
  import { TAX_FORM_UPDATED_EVENT_KEY } from "../eventKeys";
8
- import { CONNECT_PARTNER, } from "../sqm-indirect-tax-form/useIndirectTaxForm";
8
+ import { CONNECT_PARTNER, COMPLETE_PARTNER, } from "../sqm-indirect-tax-form/useIndirectTaxForm";
9
9
  import { gql } from "graphql-request";
10
10
  const GET_INDIRECT_TAX_COUNTRY_CODE = gql `
11
11
  query getIndirectTaxCountryCode {
@@ -25,7 +25,8 @@ export function useUserInfoForm(props) {
25
25
  const [step, setStep] = useParent(TAX_CONTEXT_NAMESPACE);
26
26
  const [userFormContext, setUserFormContext] = useParent(USER_FORM_CONTEXT_NAMESPACE);
27
27
  const user = useUserIdentity();
28
- const [connectImpactPartner, { loading: connectLoading, errors: connectErrors },] = useMutation(CONNECT_PARTNER);
28
+ const [connectImpactPartner, { loading: connectLoading }] = useMutation(CONNECT_PARTNER);
29
+ const [completeImpactPartner, { loading: completeLoading }] = useMutation(COMPLETE_PARTNER);
29
30
  const { data: tenantData } = useQuery(GET_INDIRECT_TAX_COUNTRY_CODE, {});
30
31
  const { data, loading, refetch, errors: userError, } = useParentQueryValue(USER_QUERY_NAMESPACE);
31
32
  const _currencies = useParentValue(CURRENCIES_NAMESPACE);
@@ -60,8 +61,13 @@ export function useUserInfoForm(props) {
60
61
  lastName: user.impactConnection.user.lastName,
61
62
  countryCode: user.impactConnection.publisher.countryCode,
62
63
  currency: user.impactConnection.publisher.currency,
63
- phoneNumberCountryCode: user.impactConnection.publisher.phoneNumberCountryCode,
64
- phoneNumber: user.impactConnection.publisher.phoneNumber,
64
+ // when creating an impact connection without sending phoneNumber data, the impactAPI defaults the value to "0000000" and the phoneNumberCountryCode to "DZ"
65
+ phoneNumberCountryCode: user.impactConnection.publisher.phoneNumber === "0000000"
66
+ ? null
67
+ : user.impactConnection.publisher.phoneNumberCountryCode,
68
+ phoneNumber: user.impactConnection.publisher.phoneNumber === "0000000"
69
+ ? null
70
+ : user.impactConnection.publisher.phoneNumber,
65
71
  address: user.impactConnection.publisher.billingAddress,
66
72
  city: user.impactConnection.publisher.billingCity,
67
73
  state: user.impactConnection.publisher.billingState,
@@ -116,9 +122,7 @@ export function useUserInfoForm(props) {
116
122
  setFilteredPhoneCountries(countries || []);
117
123
  }
118
124
  else {
119
- setFilteredPhoneCountries(countries.filter((c) => c.displayName
120
- .toLowerCase()
121
- .includes(phoneCountrySearch.toLowerCase())) || []);
125
+ setFilteredPhoneCountries(countries.filter((c) => c.displayName.toLowerCase().includes(phoneCountrySearch.toLowerCase())) || []);
122
126
  }
123
127
  }, [phoneCountrySearch, countries]);
124
128
  useEffect(() => {
@@ -132,7 +136,7 @@ export function useUserInfoForm(props) {
132
136
  }
133
137
  }, [currencySearch, currencies]);
134
138
  async function connectPartner(formData) {
135
- var _a, _b, _c, _d, _e;
139
+ var _a, _b, _c, _d;
136
140
  const vars = {
137
141
  user: {
138
142
  id: user.id,
@@ -149,20 +153,36 @@ export function useUserInfoForm(props) {
149
153
  phoneNumber: formData.phoneNumber,
150
154
  phoneNumberCountryCode: formData.phoneNumberCountryCode,
151
155
  };
152
- const result = await connectImpactPartner({
156
+ // If the partner has already been started call completeImpactPartner to
157
+ // update the remaining details. Otherwise create a new connection.
158
+ const userData = data === null || data === void 0 ? void 0 : data.user;
159
+ let result = null;
160
+ let connectionResult;
161
+ result = await completeImpactPartner({
153
162
  vars,
154
163
  });
155
- if (!result || ((_a = result) === null || _a === void 0 ? void 0 : _a.message))
164
+ connectionResult = (_a = result) === null || _a === void 0 ? void 0 : _a.completeImpactConnection;
165
+ // if (userData?.impactConnection?.connectionStatus === "STARTED") {
166
+ // result = await completeImpactPartner({
167
+ // vars,
168
+ // });
169
+ // connectionResult = (result as CompletePartnerResult)
170
+ // ?.completeImpactConnection;
171
+ // } else {
172
+ // result = await connectImpactPartner({
173
+ // vars,
174
+ // });
175
+ // connectionResult = (result as ConnectPartnerResult)
176
+ // ?.createImpactConnection;
177
+ // }
178
+ if (!result || ((_b = result) === null || _b === void 0 ? void 0 : _b.message))
156
179
  throw new Error();
157
- if (!((_b = result.createImpactConnection) === null || _b === void 0 ? void 0 : _b.success)) {
158
- // Output backend errors to console for now
159
- console.error("Failed to create Impact connection: ", result.createImpactConnection
160
- .validationErrors);
180
+ if (!(connectionResult === null || connectionResult === void 0 ? void 0 : connectionResult.success)) {
181
+ console.error("Failed to create Impact connection: ", connectionResult === null || connectionResult === void 0 ? void 0 : connectionResult.validationErrors);
161
182
  throw new Error();
162
183
  }
163
184
  await refetch();
164
- const resultPublisher = (_e = (_d = (_c = result
165
- .createImpactConnection) === null || _c === void 0 ? void 0 : _c.user) === null || _d === void 0 ? void 0 : _d.impactConnection) === null || _e === void 0 ? void 0 : _e.publisher;
185
+ const resultPublisher = (_d = (_c = connectionResult === null || connectionResult === void 0 ? void 0 : connectionResult.user) === null || _c === void 0 ? void 0 : _c.impactConnection) === null || _d === void 0 ? void 0 : _d.publisher;
166
186
  const hasValidCurrentDocument = validTaxDocument(resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) && (resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.currentTaxDocument);
167
187
  // Fire form change event
168
188
  window.dispatchEvent(new Event(TAX_FORM_UPDATED_EVENT_KEY));
@@ -183,7 +203,7 @@ export function useUserInfoForm(props) {
183
203
  // custom validation
184
204
  if (typeof control.validationError === "function") {
185
205
  const validate = control.validationError;
186
- const validationError = validate({ control, key, value });
206
+ const validationError = validate({ control, key, value, formData });
187
207
  if (validationError)
188
208
  jsonpointer.set(errors, key, validationError);
189
209
  }
@@ -287,9 +307,9 @@ export function useUserInfoForm(props) {
287
307
  step: step === null || step === void 0 ? void 0 : step.replace("/", ""),
288
308
  hideState: !hasStates,
289
309
  hideSteps: !!context.hideSteps,
290
- disabled: loading || connectLoading,
310
+ disabled: loading || connectLoading || completeLoading,
291
311
  loadingError: !!(userError === null || userError === void 0 ? void 0 : userError.message),
292
- loading: loading || connectLoading,
312
+ loading: loading || connectLoading || completeLoading,
293
313
  isPartner: !!((_g = (_f = data === null || data === void 0 ? void 0 : data.user) === null || _f === void 0 ? void 0 : _f.impactConnection) === null || _g === void 0 ? void 0 : _g.publisher),
294
314
  isUser: !!((_j = (_h = data === null || data === void 0 ? void 0 : data.user) === null || _h === void 0 ? void 0 : _h.impactConnection) === null || _j === void 0 ? void 0 : _j.user),
295
315
  formState: {
@@ -1,4 +1,59 @@
1
1
  import { intl } from "../../global/global";
2
+ import { PHONE_EXTENSIONS } from "./phoneExtensions";
3
+ function stripLeadingZero(d) {
4
+ return d.startsWith("0") ? d.slice(1) : d;
5
+ }
6
+ /**
7
+ * Mirrors Impact's I18nPhoneNumberParams validation rules per country.
8
+ * Returns true when the phone number is valid for the given the phoneNumberCountryCode country.
9
+ */
10
+ export function isValidI18nPhoneNumber(phoneCountryCode, phoneNumber) {
11
+ var _a, _b;
12
+ if (!phoneCountryCode || !(phoneNumber === null || phoneNumber === void 0 ? void 0 : phoneNumber.trim()))
13
+ return false;
14
+ const country = phoneCountryCode.toUpperCase();
15
+ const digits = phoneNumber.replace(/\D/g, "");
16
+ switch (country) {
17
+ case "US":
18
+ case "CA": {
19
+ // strip a single leading "1", then exactly 10 digits
20
+ const n = digits.startsWith("1") ? digits.slice(1) : digits;
21
+ return n.length === 10;
22
+ }
23
+ case "AU":
24
+ // 9 or 10 digits
25
+ return digits.length === 9 || digits.length === 10;
26
+ case "NZ": {
27
+ // trim "640" country prefix or leading "0" (only when >9 digits),
28
+ // then 8–10 digits
29
+ let n = digits;
30
+ if (n.length > 9) {
31
+ if (n.startsWith("640"))
32
+ n = n.slice(3);
33
+ else if (n.startsWith("0"))
34
+ n = n.slice(1);
35
+ }
36
+ return n.length >= 8 && n.length <= 10;
37
+ }
38
+ case "GB":
39
+ // >= 6 digits after stripping a single leading "0", no dialing-code check
40
+ return stripLeadingZero(digits).length >= 6;
41
+ default: {
42
+ // All other countries: strip a single leading "0", then >= 6 digits
43
+ if (stripLeadingZero(digits).length < 6)
44
+ return false;
45
+ // If input starts with "+", the dialing code (first whitespace-split
46
+ // token) must match the selected country exactly. Splits on first
47
+ // whitespace, so "+4420 7946 0958" supplies "4420" (not "44") and fails.
48
+ if (phoneNumber.trim().startsWith("+")) {
49
+ const supplied = phoneNumber.trim().split(/\s/)[0].slice(1);
50
+ const expected = (_b = (_a = PHONE_EXTENSIONS[country]) === null || _a === void 0 ? void 0 : _a.dial_code) === null || _b === void 0 ? void 0 : _b.replace(/^\+/, "");
51
+ return expected === supplied;
52
+ }
53
+ return true;
54
+ }
55
+ }
56
+ }
2
57
  export function validTaxDocument(requiredType) {
3
58
  const validTypes = ["W9", "W8BENE", "W8BEN"];
4
59
  if (validTypes.includes(requiredType))
@@ -1,19 +1,19 @@
1
1
  import { h, c as Host, d as getAssetPath, F as Fragment, g as getElement } from './index-38ad4957.js';
2
- import { i as intl } from './global-96c14d63.js';
2
+ import { i as intl } from './global-75e96214.js';
3
3
  import { b as browser, u as useMemo, k as useState, m as useRef } from './dom-context-hooks.module-50442785.js';
4
- import { H, L, J, d as dist, w as wn, B, F as Fn, $ as $e, g as getEnvironmentSDK, X as Xe, Q as Qe } from './index.module-b23fdad8.js';
4
+ import { H, L, J, d as dist, w as wn, B, F as Fn, $ as $e, g as getEnvironmentSDK, X as Xe, Q as Qe } from './index.module-02cb914c.js';
5
5
  import { c as cjs } from './cjs-bdfb4486.js';
6
6
  import { l as luxonLocale } from './utils-334c1e34.js';
7
7
  import { c as createStyleSheet, j as jss, a as create } from './JSS-67b5cff8.js';
8
- import { a as REFERRAL_CODES_NAMESPACE, S as SET_CODE_COPIED } from './useReferralCodes-52ca720f.js';
8
+ import { a as REFERRAL_CODES_NAMESPACE, S as SET_CODE_COPIED } from './useReferralCodes-25f8b792.js';
9
9
  import { H as HostBlock, A as AuthWrapper, a as AuthColumn, b as AuthButtonsContainer, E as ErrorStyles } from './mixins-f750863a.js';
10
10
  import { C as CopyTextView } from './copy-text-view-87259b11.js';
11
11
  import { T as TextSpanView } from './sqm-text-span-view-72f43dff.js';
12
- import { u as useChildElements } from './useChildElements-9bccfb72.js';
12
+ import { u as useChildElements } from './useChildElements-06937df7.js';
13
13
  import { l as luxon } from './luxon-1be92a8e.js';
14
14
  import { p as pathToRegexp } from './index-ffa26b43.js';
15
15
  import { o as optimizeCloudinaryUrl } from './imageUrl-4775f17b.js';
16
- import { a as isValidColor, b as isMobile } from './utilities-77b1e0cc.js';
16
+ import { a as isValidColor, b as isMobile } from './utilities-cbd8f2eb.js';
17
17
  import { a as PortalSectionView, P as PortalContainerView } from './sqm-portal-container-view-200c9df8.js';
18
18
 
19
19
  function BigStatView(props) {
@@ -1,8 +1,21 @@
1
- import{h as e}from"./p-083180bf.js";import{i as t}from"./p-f8a09b0f.js";import{d as i}from"./p-d0993bb9.js";import{c as s}from"./p-cef45012.js";const a=s({Container:{display:"flex",flexDirection:"column",gap:"35px"},HeaderContainer:{display:"flex",flexDirection:"column",gap:"10px"}}),n=a.toString(),r=()=>e("div",{class:a.classes.Container},e("style",{type:"text/css"},n),e("sqm-skeleton",{width:"45%",height:"40px !important"}),e("div",{class:a.classes.HeaderContainer},e("sqm-skeleton",{width:"15%"}),e("sqm-skeleton",{width:"25%",height:"30px !important"})),e("sqm-skeleton",{width:"75%",height:"35px"}),e("sqm-skeleton",{width:"75%",height:"35px"}),e("sqm-skeleton",{width:"75%",height:"35px"}),e("sqm-skeleton",{width:"75%",height:"35px"}),e("sqm-skeleton",{width:"75%",height:"35px"}),e("sqm-skeleton",{width:"75%",height:"35px"}),e("sqm-skeleton",{width:"75%",height:"35px"}),e("sqm-skeleton",{width:"75%",height:"35px"}),e("sqm-skeleton",{width:"75%",height:"35px"}),e("sqm-skeleton",{width:"75%",height:"35px"}),e("sqm-skeleton",{width:"75%",height:"35px"}),e("sqm-skeleton",{width:"15%"}),e("sqm-skeleton",{width:"80px",height:"30px !important"}));function o(e){return!!["W9","W8BENE","W8BEN"].includes(e)}const d=e=>!Object.keys(e).find((t=>null==e[t])),l=e=>{switch(e){case"W9":return"W-9";case"W8BEN":case"W8BENE":return"W-8";default:return""}};function c(e,t){return t.trim().search(e)>-1}const u=(e,i)=>t.formatMessage({id:e,defaultMessage:i},{fieldName:e});function h({countryCode:e,locale:t}){return{countryCode:e,displayName:new Intl.DisplayNames([t],{type:"region"}).of(e)}}const m="sq:tax-and-cash",p="sq:tax-form-context",y="sq:user-info-query",g="sq:user-form-context",x="sq:finance-network-settings",f="sq:countries:list",q="sq:countries:sorted",w="sq:countries:query",C="sq:currencies:list",k="sq:currencies:query",b=i.gql`
1
+ import { d as dist } from './index.module-02cb914c.js';
2
+
3
+ const TAX_CONTEXT_NAMESPACE = "sq:tax-and-cash";
4
+ const TAX_FORM_CONTEXT_NAMESPACE = "sq:tax-form-context";
5
+ const USER_QUERY_NAMESPACE = "sq:user-info-query";
6
+ const USER_FORM_CONTEXT_NAMESPACE = "sq:user-form-context";
7
+ const FINANCE_NETWORK_SETTINGS_NAMESPACE = "sq:finance-network-settings";
8
+ const COUNTRIES_NAMESPACE = "sq:countries:list";
9
+ const SORTED_COUNTRIES_NAMESPACE = "sq:countries:sorted";
10
+ const COUNTRIES_QUERY_NAMESPACE = "sq:countries:query";
11
+ const CURRENCIES_NAMESPACE = "sq:currencies:list";
12
+ const CURRENCIES_QUERY_NAMESPACE = "sq:currencies:query";
13
+ const GET_USER = dist.gql `
2
14
  query getUserTaxInfo {
3
15
  user: viewer {
4
16
  ... on User {
5
17
  id
18
+ accountId
6
19
  firstName
7
20
  lastName
8
21
  email
@@ -27,6 +40,7 @@ import{h as e}from"./p-083180bf.js";import{i as t}from"./p-f8a09b0f.js";import{d
27
40
  }
28
41
  impactConnection {
29
42
  connected
43
+ connectionStatus
30
44
  user {
31
45
  firstName
32
46
  lastName
@@ -76,7 +90,8 @@ import{h as e}from"./p-083180bf.js";import{i as t}from"./p-f8a09b0f.js";import{d
76
90
  }
77
91
  }
78
92
  }
79
- `,N=i.gql`
93
+ `;
94
+ const GET_COUNTRIES = dist.gql `
80
95
  query getCountries {
81
96
  impactPayoutCountries(limit: 1000) {
82
97
  data {
@@ -85,7 +100,8 @@ import{h as e}from"./p-083180bf.js";import{i as t}from"./p-f8a09b0f.js";import{d
85
100
  }
86
101
  }
87
102
  }
88
- `,T=i.gql`
103
+ `;
104
+ const GET_CURRENCIES = dist.gql `
89
105
  query currencies($locale: RSLocale) {
90
106
  currencies(limit: 300) {
91
107
  data {
@@ -94,7 +110,8 @@ import{h as e}from"./p-083180bf.js";import{i as t}from"./p-f8a09b0f.js";import{d
94
110
  }
95
111
  }
96
112
  }
97
- `,F=i.gql`
113
+ `;
114
+ const GET_FINANCE_NETWORK_SETTINGS = dist.gql `
98
115
  query impactFinanceNetworkSettings(
99
116
  $filter: ImpactFinanceNetworkSettingsFilterInput
100
117
  ) {
@@ -112,4 +129,7 @@ import{h as e}from"./p-083180bf.js";import{i as t}from"./p-f8a09b0f.js";import{d
112
129
  totalCount
113
130
  }
114
131
  }
115
- `,I=4;export{C,I as F,b as G,r as L,q as S,m as T,g as U,p as a,f as b,y as c,w as d,N as e,u as f,h as g,x as h,F as i,k as j,T as k,o as l,d as o,l as t,c as v}
132
+ `;
133
+ const FORM_STEPS = 4;
134
+
135
+ export { CURRENCIES_NAMESPACE as C, FORM_STEPS as F, GET_USER as G, SORTED_COUNTRIES_NAMESPACE as S, TAX_CONTEXT_NAMESPACE as T, USER_FORM_CONTEXT_NAMESPACE as U, TAX_FORM_CONTEXT_NAMESPACE as a, COUNTRIES_NAMESPACE as b, USER_QUERY_NAMESPACE as c, COUNTRIES_QUERY_NAMESPACE as d, GET_COUNTRIES as e, FINANCE_NETWORK_SETTINGS_NAMESPACE as f, GET_FINANCE_NETWORK_SETTINGS as g, CURRENCIES_QUERY_NAMESPACE as h, GET_CURRENCIES as i };
@@ -0,0 +1,3 @@
1
+ const TAX_FORM_UPDATED_EVENT_KEY = "sqm:tax-form-updated";
2
+
3
+ export { TAX_FORM_UPDATED_EVENT_KEY as T };
@@ -1,5 +1,5 @@
1
1
  import { g as getAugmentedNamespace, c as createCommonjsModule, a as commonjsGlobal, b as browser, l as l$1 } from './dom-context-hooks.module-50442785.js';
2
- import { U, g as getEnvironmentSDK } from './index.module-b23fdad8.js';
2
+ import { U, g as getEnvironmentSDK } from './index.module-02cb914c.js';
3
3
 
4
4
  /* @generated */
5
5
  // prettier-ignore