@saasquatch/mint-components 2.1.11-0 → 2.1.11-1

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 (459) hide show
  1. package/dist/cjs/{ShadowViewAddon-2b3f51be.js → ShadowViewAddon-c97e80de.js} +428 -25
  2. package/dist/cjs/{data-6b5095f8.js → data-8c8a08f6.js} +91 -2
  3. package/dist/cjs/extractProps-e9c55ba8.js +35 -0
  4. package/dist/cjs/{global-0f8b1267.js → global-b7b1b8fe.js} +3126 -3177
  5. package/dist/cjs/{index.module-42d413d9.js → index.module-f8c8495f.js} +149 -154
  6. package/dist/cjs/loader.cjs.js +3 -3
  7. package/dist/cjs/mint-components.cjs.js +3 -3
  8. package/dist/cjs/{re-render-69bde9ee.js → re-render-72a0ef45.js} +1 -1
  9. package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +99 -484
  10. package/dist/cjs/{sqm-big-stat_46.cjs.entry.js → sqm-big-stat_45.cjs.entry.js} +291 -427
  11. package/dist/cjs/sqm-close-button.cjs.entry.js +1 -1
  12. package/dist/cjs/sqm-code-verification.cjs.entry.js +8 -7
  13. package/dist/cjs/sqm-context-router.cjs.entry.js +1 -1
  14. package/dist/cjs/sqm-email-verification.cjs.entry.js +418 -0
  15. package/dist/cjs/sqm-empty_4.cjs.entry.js +3 -3
  16. package/dist/cjs/sqm-google-sign-in.cjs.entry.js +1 -1
  17. package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +1 -1
  18. package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +3 -3
  19. package/dist/cjs/{sqm-lead-checkbox-field-view-d90f8941.js → sqm-lead-checkbox-field-view-0af2a157.js} +1 -1
  20. package/dist/cjs/sqm-lead-checkbox-field.cjs.entry.js +4 -4
  21. package/dist/cjs/{sqm-lead-input-field-view-818d9e9a.js → sqm-lead-input-field-view-0cd7ebdb.js} +1 -1
  22. package/dist/cjs/sqm-lead-input-field.cjs.entry.js +4 -4
  23. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +2 -2
  24. package/dist/cjs/sqm-logout-current-user.cjs.entry.js +1 -1
  25. package/dist/cjs/{sqm-navigation-sidebar-item-view-20693e59.js → sqm-navigation-sidebar-item-view-49b152dd.js} +1 -1
  26. package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +2 -2
  27. package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +1 -1
  28. package/dist/cjs/sqm-pagination_3.cjs.entry.js +3 -3
  29. package/dist/cjs/sqm-password-field.cjs.entry.js +2 -2
  30. package/dist/cjs/sqm-popup-container.cjs.entry.js +1 -1
  31. package/dist/cjs/{sqm-portal-container-view-70a47420.js → sqm-portal-container-view-757f921b.js} +5 -6
  32. package/dist/cjs/{sqm-portal-email-verification-view-60f8e0a7.js → sqm-portal-email-verification-view-abb773a7.js} +2 -2
  33. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +4 -4
  34. package/dist/cjs/sqm-portal-forgot-password_6.cjs.entry.js +8 -8
  35. package/dist/cjs/sqm-portal-logout.cjs.entry.js +1 -1
  36. package/dist/cjs/{sqm-portal-profile-view-2bfd7afd.js → sqm-portal-profile-view-3515e1e5.js} +2 -2
  37. package/dist/cjs/sqm-portal-profile.cjs.entry.js +5 -5
  38. package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +1 -1
  39. package/dist/cjs/{sqm-portal-registration-form-view-fd48f1d3.js → sqm-portal-registration-form-view-a45f7a52.js} +1 -1
  40. package/dist/cjs/{sqm-portal-reset-password-view-d90d77f9.js → sqm-portal-reset-password-view-a767b044.js} +1 -1
  41. package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +3 -3
  42. package/dist/cjs/{sqm-portal-verify-email-view-b31638f8.js → sqm-portal-verify-email-view-717d0633.js} +2 -2
  43. package/dist/cjs/sqm-qr-code.cjs.entry.js +2 -2
  44. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +6 -6
  45. package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +1 -1
  46. package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +2 -2
  47. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +5 -5
  48. package/dist/cjs/sqm-stencilbook.cjs.entry.js +219 -291
  49. package/dist/cjs/sqm-tab.cjs.entry.js +2 -2
  50. package/dist/cjs/sqm-tabs.cjs.entry.js +3 -3
  51. package/dist/cjs/{sqm-text-span-view-8a32dd8c.js → sqm-text-span-view-b9e10f5d.js} +1 -1
  52. package/dist/cjs/sqm-text-span.cjs.entry.js +1 -1
  53. package/dist/cjs/{sqm-user-info-form-view-01bf2f41.js → sqm-user-info-form-view-53306f6e.js} +40 -33
  54. package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +1 -1
  55. package/dist/cjs/sqm-widget-verification.cjs.entry.js +214 -0
  56. package/dist/cjs/{useChildElements-89bc50a9.js → useChildElements-041127d7.js} +1 -1
  57. package/dist/cjs/{useInstantAccessRegistration-651aa95b.js → useInstantAccessRegistration-2398df36.js} +2 -2
  58. package/dist/cjs/{useLeadFormState-76d3b511.js → useLeadFormState-b4c2ab5b.js} +2 -2
  59. package/dist/cjs/{usePayoutStatus-cf050a03.js → usePayoutStatus-0192fccd.js} +6 -4
  60. package/dist/cjs/{usePortalRegistrationForm-31822dc4.js → usePortalRegistrationForm-23ee2d62.js} +2 -2
  61. package/dist/cjs/{useReferralCodes-89c2b972.js → useReferralCodes-0f7948af.js} +1 -1
  62. package/dist/cjs/{useReferralTable-d3ddfd05.js → useReferralTable-6e9de0d5.js} +3 -3
  63. package/dist/cjs/{useRegistrationFormState-a223f597.js → useRegistrationFormState-4fe5b770.js} +1 -1
  64. package/dist/cjs/{useVerificationEmail-994bc32f.js → useVerificationEmail-5d19aa99.js} +1 -1
  65. package/dist/cjs/{utilities-096934ea.js → utilities-fcdb9504.js} +1 -1
  66. package/dist/collection/collection-manifest.json +0 -1
  67. package/dist/collection/components/sqm-portal-container/sqm-portal-container-view.js +6 -7
  68. package/dist/collection/components/sqm-portal-google-login/sqm-portal-google-login.js +1 -1
  69. package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +1 -1
  70. package/dist/collection/components/sqm-referral-iframe/ReferralIframe.stories.js +1 -0
  71. package/dist/collection/components/sqm-referral-iframe/sqm-referral-iframe-view.js +1 -1
  72. package/dist/collection/components/sqm-referral-iframe/sqm-referral-iframe.js +27 -1
  73. package/dist/collection/components/sqm-referral-table/TaxAndCashReferralTable.stories.js +2 -2
  74. package/dist/collection/components/sqm-referral-table/TaxAndCashReferralTableRewardsCell.stories.js +1 -13
  75. package/dist/collection/components/sqm-rewards-table/TaxAndCashRewardsTable.stories.js +2 -2
  76. package/dist/collection/components/sqm-rewards-table/TaxAndCashRewardsTableCell.stories.js +1 -12
  77. package/dist/collection/components/sqm-share-code/sqm-share-code.js +0 -1
  78. package/dist/collection/components/sqm-share-link/ShareLink.stories.js +136 -11
  79. package/dist/collection/components/sqm-share-link/UseShareLink.stories.js +14 -5
  80. package/dist/collection/components/sqm-share-link/sqm-share-link-view.js +192 -0
  81. package/dist/collection/components/sqm-share-link/sqm-share-link.js +935 -48
  82. package/dist/collection/components/sqm-share-link/useShareLink.js +227 -14
  83. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +0 -4
  84. package/dist/collection/components/sqm-text-span/sqm-text-span-view.js +1 -1
  85. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +4 -3
  86. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +2 -0
  87. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +11 -510
  88. package/dist/collection/components/sqm-widget-verification/useWidgetVerification.js +5 -20
  89. package/dist/collection/components/tax-and-cash/data.js +0 -1
  90. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/formDefinitions.js +37 -75
  91. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +13 -688
  92. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +1 -95
  93. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +4 -4
  94. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +11 -49
  95. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js +2 -2
  96. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +6 -6
  97. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +0 -4
  98. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +2 -2
  99. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +17 -9
  100. package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +16 -34
  101. package/dist/esm/{ShadowViewAddon-78b791d2.js → ShadowViewAddon-33f1a8f7.js} +429 -27
  102. package/dist/esm/{data-33c16dff.js → data-12e6aae1.js} +85 -3
  103. package/dist/esm/extractProps-54064fb0.js +32 -0
  104. package/dist/esm/{global-39f55ec2.js → global-96c14d63.js} +3126 -3177
  105. package/dist/esm/{index.module-cede12c6.js → index.module-b23fdad8.js} +150 -153
  106. package/dist/esm/{keys-db1897ae.js → keys-406491dc.js} +1 -1
  107. package/dist/esm/loader.js +3 -3
  108. package/dist/esm/mint-components.js +3 -3
  109. package/dist/esm/{re-render-7a0c7976.js → re-render-f30aeb6b.js} +1 -1
  110. package/dist/esm/sqm-banking-info-form_10.entry.js +89 -474
  111. package/dist/esm/{sqm-big-stat_46.entry.js → sqm-big-stat_45.entry.js} +286 -421
  112. package/dist/esm/sqm-close-button.entry.js +1 -1
  113. package/dist/esm/sqm-code-verification.entry.js +9 -8
  114. package/dist/esm/sqm-context-router.entry.js +1 -1
  115. package/dist/esm/sqm-email-verification.entry.js +414 -0
  116. package/dist/esm/sqm-empty_4.entry.js +3 -3
  117. package/dist/esm/sqm-google-sign-in.entry.js +1 -1
  118. package/dist/esm/sqm-graphql-client-provider.entry.js +1 -1
  119. package/dist/esm/sqm-instant-access-registration.entry.js +3 -3
  120. package/dist/esm/{sqm-lead-checkbox-field-view-7cee2b4e.js → sqm-lead-checkbox-field-view-7928db07.js} +1 -1
  121. package/dist/esm/sqm-lead-checkbox-field.entry.js +4 -4
  122. package/dist/esm/{sqm-lead-input-field-view-11a4f9a9.js → sqm-lead-input-field-view-d1b91650.js} +1 -1
  123. package/dist/esm/sqm-lead-input-field.entry.js +4 -4
  124. package/dist/esm/sqm-leaderboard-rank.entry.js +2 -2
  125. package/dist/esm/sqm-logout-current-user.entry.js +1 -1
  126. package/dist/esm/{sqm-navigation-sidebar-item-view-48e7e0d3.js → sqm-navigation-sidebar-item-view-b3beac5a.js} +1 -1
  127. package/dist/esm/sqm-navigation-sidebar-item.entry.js +2 -2
  128. package/dist/esm/sqm-navigation-sidebar.entry.js +1 -1
  129. package/dist/esm/sqm-pagination_3.entry.js +3 -3
  130. package/dist/esm/sqm-password-field.entry.js +2 -2
  131. package/dist/esm/sqm-popup-container.entry.js +1 -1
  132. package/dist/esm/{sqm-portal-container-view-a8c708cd.js → sqm-portal-container-view-200c9df8.js} +6 -7
  133. package/dist/esm/{sqm-portal-email-verification-view-33f5c108.js → sqm-portal-email-verification-view-04528277.js} +2 -2
  134. package/dist/esm/sqm-portal-email-verification.entry.js +4 -4
  135. package/dist/esm/sqm-portal-forgot-password_6.entry.js +8 -8
  136. package/dist/esm/sqm-portal-logout.entry.js +1 -1
  137. package/dist/esm/{sqm-portal-profile-view-88fd6a93.js → sqm-portal-profile-view-b5ea620f.js} +2 -2
  138. package/dist/esm/sqm-portal-profile.entry.js +5 -5
  139. package/dist/esm/sqm-portal-protected-route.entry.js +1 -1
  140. package/dist/esm/{sqm-portal-registration-form-view-9bf30b56.js → sqm-portal-registration-form-view-79265df5.js} +1 -1
  141. package/dist/esm/{sqm-portal-reset-password-view-f8d1689c.js → sqm-portal-reset-password-view-f84c04cf.js} +1 -1
  142. package/dist/esm/sqm-portal-reset-password.entry.js +3 -3
  143. package/dist/esm/{sqm-portal-verify-email-view-0b70c1b1.js → sqm-portal-verify-email-view-c61536b7.js} +2 -2
  144. package/dist/esm/sqm-qr-code.entry.js +2 -2
  145. package/dist/esm/sqm-referral-table_11.entry.js +6 -6
  146. package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +1 -1
  147. package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +2 -2
  148. package/dist/esm/sqm-rewards-table_9.entry.js +5 -5
  149. package/dist/esm/sqm-stencilbook.entry.js +185 -257
  150. package/dist/esm/sqm-tab.entry.js +2 -2
  151. package/dist/esm/sqm-tabs.entry.js +3 -3
  152. package/dist/esm/{sqm-text-span-view-4db9e33f.js → sqm-text-span-view-72f43dff.js} +1 -1
  153. package/dist/esm/sqm-text-span.entry.js +1 -1
  154. package/dist/esm/{sqm-user-info-form-view-365cef98.js → sqm-user-info-form-view-19d81a2b.js} +19 -12
  155. package/dist/esm/sqm-widget-verification-controller.entry.js +2 -2
  156. package/dist/esm/sqm-widget-verification.entry.js +210 -0
  157. package/dist/esm/{useChildElements-c26d7347.js → useChildElements-9bccfb72.js} +1 -1
  158. package/dist/esm/{useInstantAccessRegistration-e2392f42.js → useInstantAccessRegistration-69fefed0.js} +2 -2
  159. package/dist/esm/{useLeadFormState-9099c8d4.js → useLeadFormState-dd4e8b08.js} +2 -2
  160. package/dist/esm/{usePayoutStatus-fa504d49.js → usePayoutStatus-46c0c289.js} +4 -3
  161. package/dist/esm/{usePortalRegistrationForm-5844032a.js → usePortalRegistrationForm-62de6fb1.js} +2 -2
  162. package/dist/esm/{useReferralCodes-3cde72d4.js → useReferralCodes-52ca720f.js} +1 -1
  163. package/dist/esm/{useReferralTable-35e6d4c1.js → useReferralTable-92af4133.js} +3 -3
  164. package/dist/esm/{useRegistrationFormState-1813bdef.js → useRegistrationFormState-2c090c38.js} +1 -1
  165. package/dist/esm/{useVerificationEmail-cb3d51e3.js → useVerificationEmail-c13c3b51.js} +1 -1
  166. package/dist/esm/{utilities-c9e730ed.js → utilities-77b1e0cc.js} +1 -1
  167. package/dist/esm-es5/ShadowViewAddon-33f1a8f7.js +1 -0
  168. package/dist/esm-es5/data-12e6aae1.js +1 -0
  169. package/dist/esm-es5/extractProps-54064fb0.js +1 -0
  170. package/dist/esm-es5/global-96c14d63.js +271 -0
  171. package/dist/esm-es5/index.module-b23fdad8.js +1 -0
  172. package/dist/esm-es5/{keys-db1897ae.js → keys-406491dc.js} +1 -1
  173. package/dist/esm-es5/loader.js +1 -1
  174. package/dist/esm-es5/mint-components.js +1 -1
  175. package/dist/esm-es5/{re-render-7a0c7976.js → re-render-f30aeb6b.js} +1 -1
  176. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
  177. package/dist/esm-es5/sqm-big-stat_45.entry.js +1 -0
  178. package/dist/esm-es5/sqm-close-button.entry.js +1 -1
  179. package/dist/esm-es5/sqm-code-verification.entry.js +1 -1
  180. package/dist/esm-es5/sqm-context-router.entry.js +1 -1
  181. package/dist/esm-es5/sqm-email-verification.entry.js +1 -0
  182. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  183. package/dist/esm-es5/sqm-google-sign-in.entry.js +1 -1
  184. package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
  185. package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
  186. package/dist/esm-es5/{sqm-lead-checkbox-field-view-7cee2b4e.js → sqm-lead-checkbox-field-view-7928db07.js} +1 -1
  187. package/dist/esm-es5/sqm-lead-checkbox-field.entry.js +1 -1
  188. package/dist/esm-es5/{sqm-lead-input-field-view-11a4f9a9.js → sqm-lead-input-field-view-d1b91650.js} +1 -1
  189. package/dist/esm-es5/sqm-lead-input-field.entry.js +1 -1
  190. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  191. package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
  192. package/dist/esm-es5/{sqm-navigation-sidebar-item-view-48e7e0d3.js → sqm-navigation-sidebar-item-view-b3beac5a.js} +1 -1
  193. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  194. package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
  195. package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
  196. package/dist/esm-es5/sqm-password-field.entry.js +1 -1
  197. package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
  198. package/dist/esm-es5/sqm-portal-container-view-200c9df8.js +1 -0
  199. package/dist/esm-es5/{sqm-portal-email-verification-view-33f5c108.js → sqm-portal-email-verification-view-04528277.js} +1 -1
  200. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  201. package/dist/esm-es5/sqm-portal-forgot-password_6.entry.js +1 -1
  202. package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
  203. package/dist/esm-es5/{sqm-portal-profile-view-88fd6a93.js → sqm-portal-profile-view-b5ea620f.js} +1 -1
  204. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  205. package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
  206. package/dist/esm-es5/{sqm-portal-registration-form-view-9bf30b56.js → sqm-portal-registration-form-view-79265df5.js} +1 -1
  207. package/dist/esm-es5/{sqm-portal-reset-password-view-f8d1689c.js → sqm-portal-reset-password-view-f84c04cf.js} +1 -1
  208. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  209. package/dist/esm-es5/{sqm-portal-verify-email-view-0b70c1b1.js → sqm-portal-verify-email-view-c61536b7.js} +1 -1
  210. package/dist/esm-es5/sqm-qr-code.entry.js +1 -1
  211. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  212. package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -1
  213. package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
  214. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  215. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  216. package/dist/esm-es5/sqm-tab.entry.js +1 -1
  217. package/dist/esm-es5/sqm-tabs.entry.js +1 -1
  218. package/dist/esm-es5/{sqm-text-span-view-4db9e33f.js → sqm-text-span-view-72f43dff.js} +1 -1
  219. package/dist/esm-es5/sqm-text-span.entry.js +1 -1
  220. package/dist/esm-es5/sqm-user-info-form-view-19d81a2b.js +1 -0
  221. package/dist/esm-es5/sqm-widget-verification-controller.entry.js +1 -1
  222. package/dist/esm-es5/sqm-widget-verification.entry.js +1 -0
  223. package/dist/esm-es5/{useChildElements-c26d7347.js → useChildElements-9bccfb72.js} +1 -1
  224. package/dist/esm-es5/{useInstantAccessRegistration-e2392f42.js → useInstantAccessRegistration-69fefed0.js} +1 -1
  225. package/dist/esm-es5/{useLeadFormState-9099c8d4.js → useLeadFormState-dd4e8b08.js} +1 -1
  226. package/dist/esm-es5/{usePayoutStatus-fa504d49.js → usePayoutStatus-46c0c289.js} +2 -2
  227. package/dist/esm-es5/{usePortalRegistrationForm-5844032a.js → usePortalRegistrationForm-62de6fb1.js} +1 -1
  228. package/dist/esm-es5/{useReferralCodes-3cde72d4.js → useReferralCodes-52ca720f.js} +1 -1
  229. package/dist/esm-es5/{useReferralTable-35e6d4c1.js → useReferralTable-92af4133.js} +1 -1
  230. package/dist/esm-es5/{useRegistrationFormState-1813bdef.js → useRegistrationFormState-2c090c38.js} +1 -1
  231. package/dist/esm-es5/{useVerificationEmail-cb3d51e3.js → useVerificationEmail-c13c3b51.js} +1 -1
  232. package/dist/esm-es5/{utilities-c9e730ed.js → utilities-77b1e0cc.js} +1 -1
  233. package/dist/mint-components/mint-components.esm.js +1 -1
  234. package/dist/mint-components/mint-components.js +1 -1
  235. package/dist/mint-components/{p-d01949f7.system.entry.js → p-00b235c5.system.entry.js} +1 -1
  236. package/dist/mint-components/{p-62212b9a.entry.js → p-013564b3.entry.js} +1 -1
  237. package/dist/mint-components/p-02499e08.entry.js +1 -0
  238. package/dist/mint-components/{p-998c989a.system.entry.js → p-027fc3be.system.entry.js} +1 -1
  239. package/dist/mint-components/{p-32d078a3.js → p-035d9b65.js} +1 -1
  240. package/dist/mint-components/{p-e4dbca9a.system.js → p-036a2617.system.js} +1 -1
  241. package/dist/mint-components/p-0706cf9e.system.entry.js +1 -0
  242. package/dist/mint-components/p-0797a946.js +1 -0
  243. package/dist/mint-components/p-08930b83.js +499 -0
  244. package/dist/mint-components/{p-f11d29fd.entry.js → p-09348341.entry.js} +1 -1
  245. package/dist/mint-components/{p-991f60fc.entry.js → p-09f7aacd.entry.js} +2 -2
  246. package/dist/mint-components/p-0b1e90fe.system.js +1 -0
  247. package/dist/mint-components/{p-8ecc8875.js → p-0c0d4065.js} +5 -6
  248. package/dist/mint-components/{p-8f9c1387.js → p-0d83907e.js} +1 -1
  249. package/dist/mint-components/p-1021a49f.system.entry.js +1 -0
  250. package/dist/mint-components/{p-2d3a12f2.entry.js → p-13292317.entry.js} +2 -2
  251. package/dist/mint-components/{p-731c4d33.entry.js → p-13d1b10d.entry.js} +1 -1
  252. package/dist/mint-components/{p-a86ce218.system.js → p-172675ca.system.js} +1 -1
  253. package/dist/mint-components/{p-d355336b.system.js → p-19c441b2.system.js} +1 -1
  254. package/dist/mint-components/{p-1d49dddc.entry.js → p-1d92c169.entry.js} +1 -1
  255. package/dist/mint-components/{p-86381dc7.system.js → p-205cfdcd.system.js} +1 -1
  256. package/dist/mint-components/{p-4723526d.js → p-2668335b.js} +1 -1
  257. package/dist/mint-components/{p-45475cf9.system.entry.js → p-2b4af8e8.system.entry.js} +1 -1
  258. package/dist/mint-components/{p-e9e05970.system.entry.js → p-2d5c2bd4.system.entry.js} +1 -1
  259. package/dist/mint-components/p-30c1ef36.system.js +1 -0
  260. package/dist/mint-components/{p-bcadd021.js → p-3286ef38.js} +1 -1
  261. package/dist/mint-components/{p-0d75a207.js → p-3366b81e.js} +2 -2
  262. package/dist/mint-components/p-38c7775a.js +1 -0
  263. package/dist/mint-components/p-3adbfd0b.system.js +6 -0
  264. package/dist/mint-components/p-3af3e2c1.entry.js +25 -0
  265. package/dist/mint-components/{p-160828b4.entry.js → p-3bc62ca6.entry.js} +1 -1
  266. package/dist/mint-components/{p-9d6984e7.entry.js → p-40bad95a.entry.js} +2 -2
  267. package/dist/mint-components/{p-00463c83.system.js → p-43c31fd5.system.js} +1 -1
  268. package/dist/mint-components/p-4da5a3fe.system.entry.js +1 -0
  269. package/dist/mint-components/{p-608da224.entry.js → p-52674798.entry.js} +1 -1
  270. package/dist/mint-components/p-5492dd51.system.entry.js +1 -0
  271. package/dist/mint-components/p-57dd28bd.system.js +1 -0
  272. package/dist/mint-components/{p-c84a2512.system.js → p-5b1d2866.system.js} +1 -1
  273. package/dist/mint-components/{p-5c9d030a.system.entry.js → p-5b871e38.system.entry.js} +1 -1
  274. package/dist/mint-components/p-5bc5c61e.entry.js +1 -0
  275. package/dist/mint-components/{p-b5fed7c6.entry.js → p-5c4ba8a0.entry.js} +1 -1
  276. package/dist/mint-components/{p-fb4ab5ba.system.entry.js → p-5ce78407.system.entry.js} +1 -1
  277. package/dist/mint-components/{p-9c1b0c8b.entry.js → p-61897e72.entry.js} +1 -1
  278. package/dist/mint-components/{p-52748a87.system.entry.js → p-626b31cb.system.entry.js} +1 -1
  279. package/dist/mint-components/{p-092db51a.js → p-642f2c89.js} +1 -1
  280. package/dist/mint-components/{p-f4a57aed.entry.js → p-653db72e.entry.js} +1 -1
  281. package/dist/mint-components/{p-88c9cc1b.entry.js → p-6668f9f0.entry.js} +1 -1
  282. package/dist/mint-components/{p-f368f04a.system.js → p-686dd5eb.system.js} +1 -1
  283. package/dist/mint-components/p-6c4ad51a.js +1 -0
  284. package/dist/mint-components/p-7265bbcb.system.js +271 -0
  285. package/dist/mint-components/p-738dce27.system.entry.js +1 -0
  286. package/dist/mint-components/{p-379cb9f1.system.js → p-7562cd98.system.js} +1 -1
  287. package/dist/mint-components/p-76271ec4.entry.js +9 -0
  288. package/dist/mint-components/{p-7547180f.system.js → p-77b9cde8.system.js} +1 -1
  289. package/dist/mint-components/{p-96e4e6a4.entry.js → p-77fa2383.entry.js} +1 -1
  290. package/dist/mint-components/{p-d5a1c979.system.entry.js → p-782af7ae.system.entry.js} +1 -1
  291. package/dist/mint-components/p-78b40f71.system.js +1 -0
  292. package/dist/mint-components/{p-55627a5c.entry.js → p-7939e4af.entry.js} +1 -1
  293. package/dist/mint-components/{p-9b33e2a7.system.js → p-7b59e13c.system.js} +1 -1
  294. package/dist/mint-components/p-7efb8782.system.js +1 -0
  295. package/dist/mint-components/{p-60085f20.system.entry.js → p-80e116ec.system.entry.js} +1 -1
  296. package/dist/mint-components/{p-370e0d75.js → p-832aea99.js} +1 -1
  297. package/dist/mint-components/{p-36395228.system.js → p-85721089.system.js} +1 -1
  298. package/dist/mint-components/{p-28e0062c.system.js → p-8583ce0c.system.js} +1 -1
  299. package/dist/mint-components/p-8784539d.entry.js +273 -0
  300. package/dist/mint-components/{p-71561bb2.system.entry.js → p-8899ff38.system.entry.js} +1 -1
  301. package/dist/mint-components/p-892797eb.system.entry.js +1 -0
  302. package/dist/mint-components/{p-567a5ded.js → p-8962e023.js} +1 -1
  303. package/dist/mint-components/{p-3461a8cb.entry.js → p-8f2d03c7.entry.js} +1 -1
  304. package/dist/mint-components/{p-357040e6.system.entry.js → p-90833864.system.entry.js} +1 -1
  305. package/dist/mint-components/p-91a96e98.entry.js +1 -0
  306. package/dist/mint-components/{p-7a08d288.system.entry.js → p-9390586b.system.entry.js} +1 -1
  307. package/dist/mint-components/{p-0c43b6ff.entry.js → p-95510f27.entry.js} +1 -1
  308. package/dist/mint-components/{p-9e43f1eb.entry.js → p-982d1f6f.entry.js} +2 -2
  309. package/dist/mint-components/{p-77117f6c.system.js → p-a0c5631b.system.js} +1 -1
  310. package/dist/mint-components/{p-df88dcaa.system.js → p-a4825ec2.system.js} +1 -1
  311. package/dist/mint-components/{p-095b7128.js → p-a4f8abad.js} +1 -1
  312. package/dist/mint-components/{p-21e7079a.system.entry.js → p-a96c9bbb.system.entry.js} +1 -1
  313. package/dist/mint-components/{p-886fb141.entry.js → p-af407cce.entry.js} +1 -1
  314. package/dist/mint-components/{p-86a70151.entry.js → p-b2b85238.entry.js} +1 -1
  315. package/dist/mint-components/p-b395470f.entry.js +16 -0
  316. package/dist/mint-components/{p-45e2a83a.js → p-b3ad957c.js} +1 -1
  317. package/dist/mint-components/{p-1b0cbbae.entry.js → p-b66f45d1.entry.js} +1 -1
  318. package/dist/mint-components/{p-691d34f1.system.entry.js → p-b96e90a2.system.entry.js} +1 -1
  319. package/dist/mint-components/{p-3c88d2ed.js → p-bab4929e.js} +2 -2
  320. package/dist/mint-components/p-bba16a46.system.entry.js +1 -0
  321. package/dist/mint-components/{p-3c555674.js → p-bc386a7b.js} +1 -1
  322. package/dist/mint-components/{p-a7f72a66.js → p-bee4af5d.js} +1 -1
  323. package/dist/mint-components/{p-16deb1a9.system.entry.js → p-c30d0049.system.entry.js} +1 -1
  324. package/dist/mint-components/p-c3c8d4ee.system.entry.js +1 -0
  325. package/dist/mint-components/{p-62e1c8b2.system.entry.js → p-c45a929a.system.entry.js} +1 -1
  326. package/dist/mint-components/{p-50d959bd.js → p-c813ec64.js} +1 -1
  327. package/dist/mint-components/{p-5dc9e95b.entry.js → p-c8a8d231.entry.js} +2 -2
  328. package/dist/mint-components/{p-9bd53e4d.system.entry.js → p-c8bcbf8b.system.entry.js} +1 -1
  329. package/dist/mint-components/p-ca098be1.system.js +1 -0
  330. package/dist/mint-components/{p-95aaf35a.system.entry.js → p-d005df28.system.entry.js} +1 -1
  331. package/dist/mint-components/p-d0993bb9.js +1 -0
  332. package/dist/mint-components/{p-7e36a1ff.js → p-d18dedd4.js} +1 -1
  333. package/dist/mint-components/{p-e1292288.system.entry.js → p-d3b1ab20.system.entry.js} +1 -1
  334. package/dist/mint-components/p-d4f332a7.entry.js +106 -0
  335. package/dist/mint-components/{p-6b1a6b0c.system.js → p-d55c50af.system.js} +1 -1
  336. package/dist/mint-components/{p-b1b8e629.system.js → p-d6193876.system.js} +1 -1
  337. package/dist/mint-components/{p-37658fec.entry.js → p-db0a2afd.entry.js} +1 -1
  338. package/dist/mint-components/p-dd12c32a.system.entry.js +1 -0
  339. package/dist/mint-components/p-de0d6fd7.js +49 -0
  340. package/dist/mint-components/{p-ce11858c.js → p-e00ec007.js} +1 -1
  341. package/dist/mint-components/{p-b5c0bad5.system.entry.js → p-e12754f5.system.entry.js} +1 -1
  342. package/dist/mint-components/p-e30abc44.js +1 -0
  343. package/dist/mint-components/{p-3218bb1d.entry.js → p-e506bf7f.entry.js} +1 -1
  344. package/dist/mint-components/p-e55aafe9.system.js +1 -0
  345. package/dist/mint-components/{p-f972e5c9.entry.js → p-e5ea43b1.entry.js} +2 -2
  346. package/dist/mint-components/{p-8474aa63.js → p-e6240c72.js} +1 -1
  347. package/dist/mint-components/{p-857a2d77.js → p-e84b874c.js} +1 -1
  348. package/dist/mint-components/{p-dbdb2a46.system.entry.js → p-e9485160.system.entry.js} +1 -1
  349. package/dist/mint-components/p-ea03e50e.system.js +1 -0
  350. package/dist/mint-components/{p-3181e54a.entry.js → p-ec0b649a.entry.js} +1 -1
  351. package/dist/mint-components/{p-2f4d8ab8.system.entry.js → p-f1374258.system.entry.js} +1 -1
  352. package/dist/mint-components/{p-6194855b.system.entry.js → p-f39cf252.system.entry.js} +1 -1
  353. package/dist/mint-components/{p-c8e45671.system.entry.js → p-f4e36adf.system.entry.js} +1 -1
  354. package/dist/mint-components/{p-140e6a15.system.js → p-f55ecf35.system.js} +1 -1
  355. package/dist/mint-components/{p-3c333076.js → p-f581aac7.js} +1 -1
  356. package/dist/mint-components/{p-19293c16.entry.js → p-f6528f8a.entry.js} +1 -1
  357. package/dist/mint-components/{p-247cfbdc.system.entry.js → p-f7ca4cc4.system.entry.js} +1 -1
  358. package/dist/mint-components/{p-0fec43e8.system.js → p-f8026ed6.system.js} +1 -1
  359. package/dist/mint-components/{p-438f6702.js → p-f8a09b0f.js} +152 -152
  360. package/dist/mint-components/{p-3756d0d1.system.entry.js → p-fc284f91.system.entry.js} +1 -1
  361. package/dist/mint-components/{p-6a4496b3.system.entry.js → p-fe1d3cf8.system.entry.js} +1 -1
  362. package/dist/mint-components/p-fe70e20c.entry.js +1 -0
  363. package/dist/mint-components/p-ff118a19.system.js +1 -0
  364. package/dist/types/components/sqm-referral-iframe/sqm-referral-iframe-view.d.ts +1 -0
  365. package/dist/types/components/sqm-referral-iframe/sqm-referral-iframe.d.ts +5 -0
  366. package/dist/types/components/sqm-referral-table/TaxAndCashReferralTableRewardsCell.stories.d.ts +1 -2
  367. package/dist/types/components/sqm-rewards-table/TaxAndCashRewardsTableCell.stories.d.ts +1 -2
  368. package/dist/types/components/sqm-share-link/ShareLink.stories.d.ts +9 -0
  369. package/dist/types/components/sqm-share-link/UseShareLink.stories.d.ts +6 -0
  370. package/dist/types/components/sqm-share-link/sqm-share-link-view.d.ts +41 -0
  371. package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +195 -2
  372. package/dist/types/components/sqm-share-link/useShareLink.d.ts +33 -4
  373. package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +0 -78
  374. package/dist/types/components/sqm-widget-verification/useWidgetVerification.d.ts +0 -2
  375. package/dist/types/components/tax-and-cash/data.d.ts +0 -1
  376. package/dist/types/components/tax-and-cash/sqm-banking-info-form/formDefinitions.d.ts +0 -2
  377. package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.d.ts +0 -4
  378. package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.d.ts +0 -165
  379. package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.d.ts +0 -7
  380. package/dist/types/components.d.ts +359 -616
  381. package/dist/types/saasquatch.d.ts +0 -1
  382. package/docs/docs.docx +0 -0
  383. package/docs/raisins.json +1 -1
  384. package/docs/stats.json +122783 -0
  385. package/grapesjs/grapesjs.js +1 -1
  386. package/package.json +2 -2
  387. package/dist/cjs/eventKeys-7af4df4d.js +0 -5
  388. package/dist/cjs/parseStates-d1effc19.js +0 -16
  389. package/dist/cjs/sqm-email-verification_2.cjs.entry.js +0 -892
  390. package/dist/cjs/sqm-partner-info-modal-view-464c52c9.js +0 -135
  391. package/dist/cjs/utils-a8e0bd9b.js +0 -93
  392. package/dist/collection/components/sqm-partner-info-modal/PartnerInfoModal.stories.js +0 -150
  393. package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal-view.js +0 -129
  394. package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal.js +0 -670
  395. package/dist/collection/components/sqm-partner-info-modal/usePartnerInfoModal.js +0 -284
  396. package/dist/collection/components/sqm-widget-verification/WidgetVerification.stories.js +0 -16
  397. package/dist/esm/eventKeys-f76b6a03.js +0 -3
  398. package/dist/esm/parseStates-ed75e224.js +0 -14
  399. package/dist/esm/sqm-email-verification_2.entry.js +0 -887
  400. package/dist/esm/sqm-partner-info-modal-view-a6324934.js +0 -132
  401. package/dist/esm/utils-8267d3d8.js +0 -85
  402. package/dist/esm-es5/ShadowViewAddon-78b791d2.js +0 -1
  403. package/dist/esm-es5/data-33c16dff.js +0 -1
  404. package/dist/esm-es5/eventKeys-f76b6a03.js +0 -1
  405. package/dist/esm-es5/global-39f55ec2.js +0 -285
  406. package/dist/esm-es5/index.module-cede12c6.js +0 -1
  407. package/dist/esm-es5/parseStates-ed75e224.js +0 -1
  408. package/dist/esm-es5/sqm-big-stat_46.entry.js +0 -1
  409. package/dist/esm-es5/sqm-email-verification_2.entry.js +0 -1
  410. package/dist/esm-es5/sqm-partner-info-modal-view-a6324934.js +0 -1
  411. package/dist/esm-es5/sqm-portal-container-view-a8c708cd.js +0 -1
  412. package/dist/esm-es5/sqm-user-info-form-view-365cef98.js +0 -1
  413. package/dist/esm-es5/utils-8267d3d8.js +0 -1
  414. package/dist/mint-components/p-037c1a4f.system.entry.js +0 -1
  415. package/dist/mint-components/p-038d0b8f.entry.js +0 -133
  416. package/dist/mint-components/p-0553e659.js +0 -463
  417. package/dist/mint-components/p-115dfc03.system.js +0 -1
  418. package/dist/mint-components/p-13f3a647.js +0 -1
  419. package/dist/mint-components/p-1c413a06.system.js +0 -1
  420. package/dist/mint-components/p-1e35f151.system.js +0 -1
  421. package/dist/mint-components/p-28ed2ae9.js +0 -1
  422. package/dist/mint-components/p-28fe7357.system.entry.js +0 -1
  423. package/dist/mint-components/p-38dc2f60.entry.js +0 -1
  424. package/dist/mint-components/p-39840341.js +0 -1
  425. package/dist/mint-components/p-52eca331.js +0 -1
  426. package/dist/mint-components/p-5e26014d.system.js +0 -1
  427. package/dist/mint-components/p-63c299f1.system.js +0 -1
  428. package/dist/mint-components/p-64041ee1.entry.js +0 -291
  429. package/dist/mint-components/p-647933ac.entry.js +0 -122
  430. package/dist/mint-components/p-64f56cc9.system.js +0 -285
  431. package/dist/mint-components/p-6562cbec.system.entry.js +0 -1
  432. package/dist/mint-components/p-6f8dde97.system.js +0 -1
  433. package/dist/mint-components/p-70e34ae1.system.js +0 -6
  434. package/dist/mint-components/p-7d5956ec.system.entry.js +0 -1
  435. package/dist/mint-components/p-8b258a3e.system.js +0 -1
  436. package/dist/mint-components/p-996eb820.entry.js +0 -1
  437. package/dist/mint-components/p-a0986077.system.entry.js +0 -1
  438. package/dist/mint-components/p-a1e1c42a.js +0 -1
  439. package/dist/mint-components/p-a2db4345.system.js +0 -1
  440. package/dist/mint-components/p-a8891ebd.js +0 -1
  441. package/dist/mint-components/p-a8ecdc44.system.js +0 -1
  442. package/dist/mint-components/p-aa319fbe.entry.js +0 -9
  443. package/dist/mint-components/p-b2a99637.system.js +0 -1
  444. package/dist/mint-components/p-b2bde2f5.entry.js +0 -1
  445. package/dist/mint-components/p-b451970a.system.entry.js +0 -1
  446. package/dist/mint-components/p-b699f76e.system.js +0 -1
  447. package/dist/mint-components/p-b6a1e2ac.js +0 -1
  448. package/dist/mint-components/p-c7535e70.system.entry.js +0 -1
  449. package/dist/mint-components/p-d20188db.js +0 -1
  450. package/dist/mint-components/p-d6714617.entry.js +0 -1
  451. package/dist/mint-components/p-e95402dc.js +0 -49
  452. package/dist/mint-components/p-ee0f1cf1.system.js +0 -1
  453. package/dist/mint-components/p-f9671d6a.system.entry.js +0 -1
  454. package/dist/types/components/sqm-partner-info-modal/PartnerInfoModal.stories.d.ts +0 -12
  455. package/dist/types/components/sqm-partner-info-modal/sqm-partner-info-modal-view.d.ts +0 -51
  456. package/dist/types/components/sqm-partner-info-modal/sqm-partner-info-modal.d.ts +0 -122
  457. package/dist/types/components/sqm-partner-info-modal/usePartnerInfoModal.d.ts +0 -17
  458. package/dist/types/components/sqm-widget-verification/WidgetVerification.stories.d.ts +0 -8
  459. package/shoelace/assets/icons/twitter-x.svg +0 -4
@@ -1,26 +1,24 @@
1
1
  import { h, r as registerInstance, c as Host, g as getElement } from './index-38ad4957.js';
2
- import { i as intl } from './global-39f55ec2.js';
2
+ import { i as intl } from './global-96c14d63.js';
3
3
  import { m as useRef, k as useState, f as useEffect, n as h$1, u as useMemo, b as browser, j as useReducer } from './dom-context-hooks.module-50442785.js';
4
- import { d as dist, _, L, J, t as Pn, F as Fn, x as $n, $ as $e, i as isDemo, r as En, b as useCallback, R as Rn, w as wn } from './index.module-cede12c6.js';
4
+ import { d as dist, _, L, J, q as Pn, F as Fn, r as $n, $ as $e, i as isDemo, o as En, b as useCallback, R as Rn, w as wn } from './index.module-b23fdad8.js';
5
5
  import { j as jsonpointer } from './jsonpointer-388a7082.js';
6
6
  import { c as cjs } from './cjs-bdfb4486.js';
7
7
  import { g as getProps } from './utils-334c1e34.js';
8
8
  import { c as createStyleSheet } from './JSS-67b5cff8.js';
9
9
  import './mixins-f750863a.js';
10
10
  import { G as GenericTableView } from './GenericTableView-8c72ac30.js';
11
- import { u as useRerenderListener, a as useRequestRerender } from './re-render-7a0c7976.js';
12
- import { u as useChildElements } from './useChildElements-c26d7347.js';
11
+ import { u as useRerenderListener, a as useRequestRerender } from './re-render-f30aeb6b.js';
12
+ import { u as useChildElements } from './useChildElements-9bccfb72.js';
13
13
  import { l as luxon } from './luxon-1be92a8e.js';
14
- import { g as generateUserError } from './useReferralTable-35e6d4c1.js';
15
- import { a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, O as OtherRegionSlotView, I as InvoiceTableView, v as vatLabels, A as ADDRESS_REGIONS, U as UserInfoFormView } from './sqm-user-info-form-view-365cef98.js';
16
- import { t as taxTypeToName, a as validTaxDocument, g as getCountryObj, o as objectIsFull } from './utils-8267d3d8.js';
17
- import { F 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-33c16dff.js';
18
- import { b as VERIFICATION_EVENT_KEY } from './keys-db1897ae.js';
19
- import { T as TAX_FORM_UPDATED_EVENT_KEY } from './eventKeys-f76b6a03.js';
20
- import { a as useVeriffApp, g as getStatus, V as VERIFF_COMPLETE_EVENT_KEY } from './usePayoutStatus-fa504d49.js';
14
+ import { g as generateUserError } from './useReferralTable-92af4133.js';
15
+ import { a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, O as OtherRegionSlotView, I as InvoiceTableView, v as vatLabels, A as ADDRESS_REGIONS, U as UserInfoFormView } from './sqm-user-info-form-view-19d81a2b.js';
16
+ import { F as FORM_STEPS, a as TAX_FORM_CONTEXT_NAMESPACE, S as SORTED_COUNTRIES_NAMESPACE, c as USER_QUERY_NAMESPACE, T as TAX_CONTEXT_NAMESPACE, h as FINANCE_NETWORK_SETTINGS_NAMESPACE, t as taxTypeToName, l as validTaxDocument, U as USER_FORM_CONTEXT_NAMESPACE, d as COUNTRIES_QUERY_NAMESPACE, g as getCountryObj, C as CURRENCIES_NAMESPACE, o as objectIsFull } from './data-12e6aae1.js';
17
+ import { b as VERIFICATION_EVENT_KEY } from './keys-406491dc.js';
18
+ import { T as TAX_FORM_UPDATED_EVENT_KEY, a as useVeriffApp, g as getStatus, V as VERIFF_COMPLETE_EVENT_KEY } from './usePayoutStatus-46c0c289.js';
21
19
 
22
20
  function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
23
- 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, _33, _34, _35, _36, _37, _38, _39, _40, _41, _42, _43, _44, _45, _46, _47, _48, _49, _50, _51, _52, _53, _54, _55, _56, _57, _58, _59, _60, _61, _62, _63, _64, _65, _66, _67, _68, _69, _70;
21
+ 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;
24
22
  const { errors, ...formState } = props.states.formState;
25
23
  return {
26
24
  0: {
@@ -29,54 +27,44 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
29
27
  helpText: getValidationErrorMessage({
30
28
  type: (_c = (_b = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _b === void 0 ? void 0 : _b.beneficiaryAccountName) === null || _c === void 0 ? void 0 : _c.type,
31
29
  label: props.text.beneficiaryAccountNameLabel,
32
- errorCode: (_e = (_d = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _d === void 0 ? void 0 : _d.beneficiaryAccountName) === null || _e === void 0 ? void 0 : _e.errorCode,
33
- fieldName: "beneficiaryAccountName",
34
30
  }),
35
31
  })))),
36
32
  },
37
33
  1: {
38
- input: (h("sl-select", Object.assign({ required: true, label: props.text.bankAccountTypeLabel, name: "/bankAccountType", id: "bankAccountType", key: "bankAccountType" }, (((_f = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _f === void 0 ? void 0 : _f.bankAccountType) && {
34
+ input: (h("sl-select", Object.assign({ required: true, label: props.text.bankAccountTypeLabel, name: "/bankAccountType", id: "bankAccountType", key: "bankAccountType" }, (((_d = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _d === void 0 ? void 0 : _d.bankAccountType) && {
39
35
  class: "error-input",
40
36
  helpText: getValidationErrorMessage({
41
- type: (_h = (_g = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _g === void 0 ? void 0 : _g.bankAccountType) === null || _h === void 0 ? void 0 : _h.type,
37
+ type: (_f = (_e = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _e === void 0 ? void 0 : _e.bankAccountType) === null || _f === void 0 ? void 0 : _f.type,
42
38
  label: props.text.bankAccountTypeLabel,
43
- errorCode: (_k = (_j = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _j === void 0 ? void 0 : _j.bankAccountType) === null || _k === void 0 ? void 0 : _k.errorCode,
44
- fieldName: "bankAccountType",
45
39
  }),
46
40
  })),
47
41
  h("sl-menu-item", { value: "CHECKING" }, props.text.checkingSelectItemLabel),
48
42
  h("sl-menu-item", { value: "SAVINGS" }, props.text.savingsSelectItemLabel))),
49
43
  },
50
44
  2: {
51
- input: (h("sl-input", Object.assign({ required: true, label: props.text.bankAccountNumberLabel, name: "/bankAccountNumber", id: "bankAccountNumber", key: "bankAccountNumber", value: formState.bankAccountNumber, type: "text" }, (((_l = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _l === void 0 ? void 0 : _l.bankAccountNumber) && {
45
+ input: (h("sl-input", Object.assign({ required: true, label: props.text.bankAccountNumberLabel, name: "/bankAccountNumber", id: "bankAccountNumber", key: "bankAccountNumber", value: formState.bankAccountNumber, type: "text" }, (((_g = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _g === void 0 ? void 0 : _g.bankAccountNumber) && {
52
46
  class: "error-input",
53
47
  helpText: getValidationErrorMessage({
54
- type: (_o = (_m = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _m === void 0 ? void 0 : _m.bankAccountNumber) === null || _o === void 0 ? void 0 : _o.type,
48
+ type: (_j = (_h = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _h === void 0 ? void 0 : _h.bankAccountNumber) === null || _j === void 0 ? void 0 : _j.type,
55
49
  label: props.text.bankAccountNumberLabel,
56
- errorCode: (_q = (_p = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _p === void 0 ? void 0 : _p.bankAccountNumber) === null || _q === void 0 ? void 0 : _q.errorCode,
57
- fieldName: "bankAccountNumber",
58
50
  }),
59
51
  })))),
60
52
  },
61
53
  3: {
62
- input: (h("sl-input", Object.assign({ required: true, label: props.text.ibanLabel, name: "/bankAccountNumber", id: "iban", key: "iban", type: "text", value: formState.bankAccountNumber }, (((_r = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _r === void 0 ? void 0 : _r.bankAccountNumber) && {
54
+ input: (h("sl-input", Object.assign({ required: true, label: props.text.ibanLabel, name: "/bankAccountNumber", id: "iban", key: "iban", type: "text", value: formState.bankAccountNumber }, (((_k = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _k === void 0 ? void 0 : _k.bankAccountNumber) && {
63
55
  class: "error-input",
64
56
  helpText: getValidationErrorMessage({
65
- type: (_t = (_s = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _s === void 0 ? void 0 : _s.bankAccountNumber) === null || _t === void 0 ? void 0 : _t.type,
57
+ type: (_m = (_l = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _l === void 0 ? void 0 : _l.bankAccountNumber) === null || _m === void 0 ? void 0 : _m.type,
66
58
  label: props.text.ibanLabel,
67
- errorCode: (_v = (_u = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _u === void 0 ? void 0 : _u.bankAccountNumber) === null || _v === void 0 ? void 0 : _v.errorCode,
68
- fieldName: "bankAccountNumber",
69
59
  }),
70
60
  })))),
71
61
  },
72
62
  4: {
73
- input: (h("sl-input", Object.assign({ required: true, label: props.text.swiftCodeLabel, name: "/swiftCode", id: "swiftCode", key: "swiftCode", type: "text" }, (((_w = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _w === void 0 ? void 0 : _w.swiftCode) && {
63
+ input: (h("sl-input", Object.assign({ required: true, label: props.text.swiftCodeLabel, name: "/swiftCode", id: "swiftCode", key: "swiftCode", type: "text" }, (((_o = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _o === void 0 ? void 0 : _o.swiftCode) && {
74
64
  class: "error-input",
75
65
  helpText: getValidationErrorMessage({
76
- type: (_y = (_x = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _x === void 0 ? void 0 : _x.swiftCode) === null || _y === void 0 ? void 0 : _y.type,
66
+ type: (_q = (_p = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _p === void 0 ? void 0 : _p.swiftCode) === null || _q === void 0 ? void 0 : _q.type,
77
67
  label: props.text.swiftCodeLabel,
78
- errorCode: (_0 = (_z = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _z === void 0 ? void 0 : _z.swiftCode) === null || _0 === void 0 ? void 0 : _0.errorCode,
79
- fieldName: "swiftCode",
80
68
  }),
81
69
  })))),
82
70
  },
@@ -86,41 +74,35 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
86
74
  defaultMessage: props.text.routingCodeLabel,
87
75
  }, {
88
76
  bankCountry,
89
- }), name: "/routingCode", id: "routingCode", key: "routingCode", type: "text" }, (((_1 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _1 === void 0 ? void 0 : _1.routingCode) && {
77
+ }), name: "/routingCode", id: "routingCode", key: "routingCode", type: "text" }, (((_r = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _r === void 0 ? void 0 : _r.routingCode) && {
90
78
  class: "error-input",
91
79
  helpText: getValidationErrorMessage({
92
- type: (_3 = (_2 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _2 === void 0 ? void 0 : _2.routingCode) === null || _3 === void 0 ? void 0 : _3.type,
80
+ type: (_t = (_s = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _s === void 0 ? void 0 : _s.routingCode) === null || _t === void 0 ? void 0 : _t.type,
93
81
  label: intl.formatMessage({
94
82
  id: "routingCodeErrorText",
95
83
  defaultMessage: props.text.routingCodeLabel,
96
84
  }, {
97
85
  bankCountry,
98
86
  }),
99
- errorCode: (_5 = (_4 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _4 === void 0 ? void 0 : _4.routingCode) === null || _5 === void 0 ? void 0 : _5.errorCode,
100
- fieldName: "routingCode",
101
87
  }),
102
88
  })))),
103
89
  },
104
90
  6: {
105
- input: (h("sl-input", Object.assign({ required: true, label: props.text.bankNameLabel, name: "/bankName", id: "bankName", key: "bankName", type: "text" }, (((_6 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _6 === void 0 ? void 0 : _6.bankName) && {
91
+ input: (h("sl-input", Object.assign({ required: true, label: props.text.bankNameLabel, name: "/bankName", id: "bankName", key: "bankName", type: "text" }, (((_u = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _u === void 0 ? void 0 : _u.bankName) && {
106
92
  class: "error-input",
107
93
  helpText: getValidationErrorMessage({
108
- type: (_8 = (_7 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _7 === void 0 ? void 0 : _7.bankName) === null || _8 === void 0 ? void 0 : _8.type,
94
+ type: (_w = (_v = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _v === void 0 ? void 0 : _v.bankName) === null || _w === void 0 ? void 0 : _w.type,
109
95
  label: props.text.bankNameLabel,
110
- errorCode: (_10 = (_9 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _9 === void 0 ? void 0 : _9.bankName) === null || _10 === void 0 ? void 0 : _10.errorCode,
111
- fieldName: "bankName",
112
96
  }),
113
97
  })))),
114
98
  },
115
99
  7: {
116
100
  input: [
117
- h("sl-select", Object.assign({ required: true, label: props.text.classificationLabel, name: "/beneficiaryClassification", id: "beneficiaryClassification", key: "beneficiaryClassification" }, (((_11 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _11 === void 0 ? void 0 : _11.beneficiaryClassification) && {
101
+ h("sl-select", Object.assign({ required: true, label: props.text.classificationLabel, name: "/beneficiaryClassification", id: "beneficiaryClassification", key: "beneficiaryClassification" }, (((_x = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _x === void 0 ? void 0 : _x.beneficiaryClassification) && {
118
102
  class: "error-input",
119
103
  helpText: getValidationErrorMessage({
120
- type: (_13 = (_12 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _12 === void 0 ? void 0 : _12.beneficiaryClassification) === null || _13 === void 0 ? void 0 : _13.type,
104
+ type: (_z = (_y = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _y === void 0 ? void 0 : _y.beneficiaryClassification) === null || _z === void 0 ? void 0 : _z.type,
121
105
  label: props.text.classificationLabel,
122
- errorCode: (_15 = (_14 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _14 === void 0 ? void 0 : _14.beneficiaryClassification) === null || _15 === void 0 ? void 0 : _15.errorCode,
123
- fieldName: "beneficiaryClassification",
124
106
  }),
125
107
  })),
126
108
  h("sl-menu-item", { value: "BUSINESS" }, props.text.businessSelectItemLabel),
@@ -131,122 +113,100 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
131
113
  defaultMessage: props.text.taxPayerIdLabel,
132
114
  }, {
133
115
  bankCountry,
134
- }), type: "text", name: "/beneficiaryTaxPayerId", id: "beneficiaryTaxPayerId", key: "beneficiaryTaxPayerId" }, (((_16 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _16 === void 0 ? void 0 : _16.beneficiaryTaxPayerId) && {
116
+ }), type: "text", name: "/beneficiaryTaxPayerId", id: "beneficiaryTaxPayerId", key: "beneficiaryTaxPayerId" }, (((_0 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _0 === void 0 ? void 0 : _0.beneficiaryTaxPayerId) && {
135
117
  class: "error-input",
136
118
  helpText: getValidationErrorMessage({
137
- type: (_18 = (_17 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _17 === void 0 ? void 0 : _17.beneficiaryTaxPayerId) === null || _18 === void 0 ? void 0 : _18.type,
119
+ type: (_2 = (_1 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _1 === void 0 ? void 0 : _1.beneficiaryTaxPayerId) === null || _2 === void 0 ? void 0 : _2.type,
138
120
  label: props.text.taxPayerIdLabel,
139
- errorCode: (_20 = (_19 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _19 === void 0 ? void 0 : _19.taxPayerId) === null || _20 === void 0 ? void 0 : _20.errorCode,
140
- fieldName: "taxPayerId",
141
121
  }),
142
122
  }))),
143
123
  ],
144
124
  },
145
125
  8: {
146
- input: (h("sl-select", Object.assign({ required: true, label: props.text.classificationCPFLabel, name: "/beneficiaryClassification", id: "beneficiaryClassification", key: "beneficiaryClassification" }, (((_21 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _21 === void 0 ? void 0 : _21.beneficiaryClassification) && {
126
+ input: (h("sl-select", Object.assign({ required: true, label: props.text.classificationCPFLabel, name: "/beneficiaryClassification", id: "beneficiaryClassification", key: "beneficiaryClassification" }, (((_3 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _3 === void 0 ? void 0 : _3.beneficiaryClassification) && {
147
127
  class: "error-input",
148
128
  helpText: getValidationErrorMessage({
149
- type: (_23 = (_22 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _22 === void 0 ? void 0 : _22.beneficiaryClassification) === null || _23 === void 0 ? void 0 : _23.type,
129
+ type: (_5 = (_4 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _4 === void 0 ? void 0 : _4.beneficiaryClassification) === null || _5 === void 0 ? void 0 : _5.type,
150
130
  label: props.text.classificationCPFLabel,
151
- errorCode: (_25 = (_24 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _24 === void 0 ? void 0 : _24.beneficiaryClassification) === null || _25 === void 0 ? void 0 : _25.errorCode,
152
- fieldName: "beneficiaryClassification",
153
131
  }),
154
132
  })),
155
133
  h("sl-menu-item", { value: "CPF" }, "CPF"),
156
134
  h("sl-menu-item", { value: "CNPJ" }, "CNPJ"))),
157
135
  },
158
136
  9: {
159
- input: (h("sl-input", Object.assign({ key: "patronymicName", required: true, label: props.text.patronymicNameLabel, name: "/patronymicName", id: "patronymicName", type: "text" }, (((_26 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _26 === void 0 ? void 0 : _26.patronymicName) && {
137
+ input: (h("sl-input", Object.assign({ key: "patronymicName", required: true, label: props.text.patronymicNameLabel, name: "/patronymicName", id: "patronymicName", type: "text" }, (((_6 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _6 === void 0 ? void 0 : _6.patronymicName) && {
160
138
  class: "error-input",
161
139
  helpText: getValidationErrorMessage({
162
- type: (_28 = (_27 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _27 === void 0 ? void 0 : _27.patronymicName) === null || _28 === void 0 ? void 0 : _28.type,
140
+ type: (_8 = (_7 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _7 === void 0 ? void 0 : _7.patronymicName) === null || _8 === void 0 ? void 0 : _8.type,
163
141
  label: props.text.patronymicNameLabel,
164
- errorCode: (_30 = (_29 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _29 === void 0 ? void 0 : _29.patronymicName) === null || _30 === void 0 ? void 0 : _30.errorCode,
165
- fieldName: "patronymicName",
166
142
  }),
167
143
  })))),
168
144
  },
169
145
  10: {
170
- input: (h("sl-input", Object.assign({ key: "voCode", label: props.text.voCodeLabel, name: "/voCode", id: "voCode", type: "text" }, (((_31 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _31 === void 0 ? void 0 : _31.voCode) && {
146
+ input: (h("sl-input", Object.assign({ key: "voCode", label: props.text.voCodeLabel, name: "/voCode", id: "voCode", type: "text" }, (((_9 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _9 === void 0 ? void 0 : _9.voCode) && {
171
147
  class: "error-input",
172
148
  helpText: getValidationErrorMessage({
173
- type: (_33 = (_32 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _32 === void 0 ? void 0 : _32.voCode) === null || _33 === void 0 ? void 0 : _33.type,
149
+ type: (_11 = (_10 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _10 === void 0 ? void 0 : _10.voCode) === null || _11 === void 0 ? void 0 : _11.type,
174
150
  label: props.text.voCodeLabel,
175
- errorCode: (_35 = (_34 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _34 === void 0 ? void 0 : _34.voCode) === null || _35 === void 0 ? void 0 : _35.errorCode,
176
- fieldName: "voCode",
177
151
  }),
178
152
  })))),
179
153
  },
180
154
  11: {
181
- input: (h("sl-input", Object.assign({ required: true, label: props.text.agencyCodeLabel, name: "/agencyCode", id: "agencyCode", key: "agencyCode", type: "text" }, (((_36 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _36 === void 0 ? void 0 : _36.agencyCode) && {
155
+ input: (h("sl-input", Object.assign({ required: true, label: props.text.agencyCodeLabel, name: "/agencyCode", id: "agencyCode", key: "agencyCode", type: "text" }, (((_12 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _12 === void 0 ? void 0 : _12.agencyCode) && {
182
156
  class: "error-input",
183
157
  helpText: getValidationErrorMessage({
184
- type: (_38 = (_37 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _37 === void 0 ? void 0 : _37.agencyCode) === null || _38 === void 0 ? void 0 : _38.type,
158
+ type: (_14 = (_13 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _13 === void 0 ? void 0 : _13.agencyCode) === null || _14 === void 0 ? void 0 : _14.type,
185
159
  label: props.text.agencyCodeLabel,
186
- errorCode: (_40 = (_39 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _39 === void 0 ? void 0 : _39.agencyCode) === null || _40 === void 0 ? void 0 : _40.errorCode,
187
- fieldName: "agencyCode",
188
160
  }),
189
161
  })))),
190
162
  },
191
163
  12: {
192
164
  input: [
193
- h("sl-input", Object.assign({ required: true, label: props.text.bankAddressLabel, name: "/bankAddress", id: "bankAddress", key: "bankAddress", type: "text" }, (((_41 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _41 === void 0 ? void 0 : _41.bankAddress) && {
165
+ h("sl-input", Object.assign({ required: true, label: props.text.bankAddressLabel, name: "/bankAddress", id: "bankAddress", key: "bankAddress", type: "text" }, (((_15 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _15 === void 0 ? void 0 : _15.bankAddress) && {
194
166
  class: "error-input",
195
167
  helpText: getValidationErrorMessage({
196
- type: (_43 = (_42 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _42 === void 0 ? void 0 : _42.bankAddress) === null || _43 === void 0 ? void 0 : _43.type,
168
+ type: (_17 = (_16 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _16 === void 0 ? void 0 : _16.bankAddress) === null || _17 === void 0 ? void 0 : _17.type,
197
169
  label: props.text.bankAddressLabel,
198
- errorCode: (_45 = (_44 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _44 === void 0 ? void 0 : _44.bankAddress) === null || _45 === void 0 ? void 0 : _45.errorCode,
199
- fieldName: "bankAddress",
200
170
  }),
201
171
  }))),
202
- h("sl-input", Object.assign({ required: true, label: props.text.bankCityLabel, name: "/bankCity", id: "bankCity", key: "bankCity", type: "text" }, (((_46 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _46 === void 0 ? void 0 : _46.bankCity) && {
172
+ h("sl-input", Object.assign({ required: true, label: props.text.bankCityLabel, name: "/bankCity", id: "bankCity", key: "bankCity", type: "text" }, (((_18 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _18 === void 0 ? void 0 : _18.bankCity) && {
203
173
  class: "error-input",
204
174
  helpText: getValidationErrorMessage({
205
- type: (_48 = (_47 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _47 === void 0 ? void 0 : _47.bankCity) === null || _48 === void 0 ? void 0 : _48.type,
175
+ type: (_20 = (_19 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _19 === void 0 ? void 0 : _19.bankCity) === null || _20 === void 0 ? void 0 : _20.type,
206
176
  label: props.text.bankCityLabel,
207
- errorCode: (_50 = (_49 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _49 === void 0 ? void 0 : _49.bankCity) === null || _50 === void 0 ? void 0 : _50.errorCode,
208
- fieldName: "bankCity",
209
177
  }),
210
178
  }))),
211
- h("sl-input", Object.assign({ required: true, label: props.text.bankStateLabel, name: "/bankState", id: "bankState", key: "bankState", type: "text" }, (((_51 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _51 === void 0 ? void 0 : _51.bankState) && {
179
+ h("sl-input", Object.assign({ required: true, label: props.text.bankStateLabel, name: "/bankState", id: "bankState", key: "bankState", type: "text" }, (((_21 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _21 === void 0 ? void 0 : _21.bankState) && {
212
180
  class: "error-input",
213
181
  helpText: getValidationErrorMessage({
214
- type: (_53 = (_52 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _52 === void 0 ? void 0 : _52.bankState) === null || _53 === void 0 ? void 0 : _53.type,
182
+ type: (_23 = (_22 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _22 === void 0 ? void 0 : _22.bankState) === null || _23 === void 0 ? void 0 : _23.type,
215
183
  label: props.text.bankStateLabel,
216
- errorCode: (_55 = (_54 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _54 === void 0 ? void 0 : _54.bankState) === null || _55 === void 0 ? void 0 : _55.errorCode,
217
- fieldName: "bankState",
218
184
  }),
219
185
  }))),
220
- h("sl-input", Object.assign({ required: true, label: props.text.bankPostalCodeLabel, name: "/bankPostalCode", id: "bankPostalCode", key: "bankPostalCode", type: "text" }, (((_56 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _56 === void 0 ? void 0 : _56.bankPostalCode) && {
186
+ h("sl-input", Object.assign({ required: true, label: props.text.bankPostalCodeLabel, name: "/bankPostalCode", id: "bankPostalCode", key: "bankPostalCode", type: "text" }, (((_24 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _24 === void 0 ? void 0 : _24.bankPostalCode) && {
221
187
  class: "error-input",
222
188
  helpText: getValidationErrorMessage({
223
- type: (_58 = (_57 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _57 === void 0 ? void 0 : _57.bankPostalCode) === null || _58 === void 0 ? void 0 : _58.type,
189
+ type: (_26 = (_25 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _25 === void 0 ? void 0 : _25.bankPostalCode) === null || _26 === void 0 ? void 0 : _26.type,
224
190
  label: props.text.bankPostalCodeLabel,
225
- errorCode: (_60 = (_59 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _59 === void 0 ? void 0 : _59.bankPostalCode) === null || _60 === void 0 ? void 0 : _60.errorCode,
226
- fieldName: "bankPostalCode",
227
191
  }),
228
192
  }))),
229
193
  ],
230
194
  },
231
195
  13: {
232
- input: (h("sl-input", Object.assign({ required: true, label: props.text.branchCodeLabel, name: "/branchCode", id: "branchCode", key: "branchCode", type: "text" }, (((_61 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _61 === void 0 ? void 0 : _61.branchCode) && {
196
+ input: (h("sl-input", Object.assign({ required: true, label: props.text.branchCodeLabel, name: "/branchCode", id: "branchCode", key: "branchCode", type: "text" }, (((_27 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _27 === void 0 ? void 0 : _27.branchCode) && {
233
197
  class: "error-input",
234
198
  helpText: getValidationErrorMessage({
235
- type: (_63 = (_62 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _62 === void 0 ? void 0 : _62.branchCode) === null || _63 === void 0 ? void 0 : _63.type,
199
+ type: (_29 = (_28 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _28 === void 0 ? void 0 : _28.branchCode) === null || _29 === void 0 ? void 0 : _29.type,
236
200
  label: props.text.branchCodeLabel,
237
- errorCode: (_65 = (_64 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _64 === void 0 ? void 0 : _64.branchCode) === null || _65 === void 0 ? void 0 : _65.errorCode,
238
- fieldName: "branchCode",
239
201
  }),
240
202
  })))),
241
203
  },
242
204
  14: {
243
- input: (h("sl-select", Object.assign({ required: true, label: props.text.classificationLabel, name: "/beneficiaryClassification", id: "beneficiaryClassification", key: "beneficiaryClassification" }, (((_66 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _66 === void 0 ? void 0 : _66.beneficiaryClassification) && {
205
+ input: (h("sl-select", Object.assign({ required: true, label: props.text.classificationLabel, name: "/beneficiaryClassification", id: "beneficiaryClassification", key: "beneficiaryClassification" }, (((_30 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _30 === void 0 ? void 0 : _30.beneficiaryClassification) && {
244
206
  class: "error-input",
245
207
  helpText: getValidationErrorMessage({
246
- type: (_68 = (_67 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _67 === void 0 ? void 0 : _67.beneficiaryClassification) === null || _68 === void 0 ? void 0 : _68.type,
208
+ type: (_32 = (_31 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _31 === void 0 ? void 0 : _31.beneficiaryClassification) === null || _32 === void 0 ? void 0 : _32.type,
247
209
  label: props.text.classificationLabel,
248
- errorCode: (_70 = (_69 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _69 === void 0 ? void 0 : _69.beneficiaryClassification) === null || _70 === void 0 ? void 0 : _70.errorCode,
249
- fieldName: "beneficiaryClassification",
250
210
  }),
251
211
  })),
252
212
  h("sl-menu-item", { value: "BUSINESS" }, props.text.businessSelectItemLabel),
@@ -839,95 +799,6 @@ const paypalFeeMap = {
839
799
  const ACH_PAYMENT_METHOD = 3;
840
800
  const WIRE_PAYMENT_METHOD = 5;
841
801
  const PAYPAL_PAYMENT_METHOD = 7;
842
- /**
843
- * Maps GraphQL validation error field names to form field names.
844
- */
845
- const API_FIELD_TO_FORM_FIELD = {
846
- // bankProvinceState → form uses bankState
847
- bankProvinceState: "bankState",
848
- };
849
- /**
850
- * Maps Impact API error code paths (from validationErrors[].errorPath) to short,
851
- * readable frontend error codes used in the ICU select props.
852
- */
853
- const API_ERROR_PATH_TO_FRONTEND = {
854
- // Beneficiary account name
855
- "withdrawal.settings.error.empty_beneficiaryname": "empty",
856
- "withdrawal.settings.error.invalid_character_beneficiaryname": "invalidCharacters",
857
- "withdrawal.settings.error.numeric_beneficiaryname": "numeric",
858
- "withdrawal_settings.error.beneficiaryname.size": "tooLong",
859
- "withdrawal.settings.error.non_english_beneficiaryname": "nonEnglish",
860
- "withdrawal_settings.error.business_beneficiaryname_match": "businessNameMismatch",
861
- "withdrawal_settings.error.beneficiaryname_match": "nameMismatch",
862
- "withdrawal_settings.error.business_checkpayeename_match": "businessPayeeMismatch",
863
- "withdrawal_settings.error.checkpayeename_match": "payeeMismatch",
864
- // Bank account number
865
- "withdrawal.settings.error.accountnumber.empty": "empty",
866
- "withdrawal.settings.error.accountnumber.uk": "invalidUk",
867
- "withdrawal.settings.error.bankaccount.invalid": "invalid",
868
- // IBAN
869
- "withdrawal.settings.error.iban": "ibanEmpty",
870
- "withdrawal.settings.error.iban.alphanumeric": "ibanAlphanumeric",
871
- "withdrawal.settings.error.iban.invalid": "ibanInvalid",
872
- "withdrawal.settings.error.iban.uk.country.mismatch": "ibanCountryMismatch",
873
- // Routing code
874
- "withdrawal.settings.error.bsbNumber": "invalidBsb",
875
- "withdrawal.settings.error.sortcode": "invalidSortCode",
876
- "withdrawal.settings.error.routingNumber": "empty",
877
- "withdrawal.settings.error.routingcode": "invalid",
878
- // SWIFT / BIC
879
- "withdrawal.settings.error.bic": "empty",
880
- "withdrawal.settings.error.bic.alphanumeric": "alphanumeric",
881
- "withdrawal.settings.error.bic.invalid": "invalid",
882
- // Bank account type
883
- "global.error.invalid.accounttype": "empty",
884
- // Bank name
885
- "withdrawal.settings.error.bankName": "empty",
886
- // Tax payer ID
887
- "withdrawal.settings.error.taxPayerId": "empty",
888
- "withdrawal.settings.error.taxPayerId.ar": "emptyAr",
889
- "withdrawal.settings.error.taxPayerId.kr": "emptyKr",
890
- "withdrawal.settings.error.taxPayerId.alphanumeric": "alphanumeric",
891
- "withdrawal.settings.error.taxPayerId.alphanumeric.ar": "alphanumericAr",
892
- "withdrawal.settings.error.taxPayerId.alphanumeric.kr": "alphanumericKr",
893
- "withdrawal.settings.error.taxPayerId.invalid": "invalid",
894
- "withdrawal.settings.error.taxPayerId.invalid.ar": "invalidAr",
895
- "withdrawal.settings.error.taxPayerId.invalid.kr": "invalidKr",
896
- "withdrawal.settings.error.taxPayerId.invalid.kzt": "invalidKzt",
897
- "withdrawal.settings.error.taxPayerId.cnpj": "cnpjTooShort",
898
- "withdrawal.settings.error.taxPayerId.cpf": "cpfTooShort",
899
- // Patronymic name
900
- "withdrawal.settings.error.patronymicName": "empty",
901
- "withdrawal.settings.error.patronymicName.alphanumeric": "alphanumeric",
902
- // VO code
903
- "withdrawal.settings.error.voCode": "empty",
904
- "withdrawal.settings.error.voCode.alphanumeric": "alphanumeric",
905
- // Agency code
906
- "withdrawal.settings.error.agencyCode": "empty",
907
- "withdrawal.settings.error.agencyCode.alphanumeric": "alphanumeric",
908
- "withdrawal.settings.error.agencyCode.length": "tooShort",
909
- // Bank address fields
910
- "withdrawal.settings.error.bankAddress": "empty",
911
- "withdrawal.settings.error.bankCity": "empty",
912
- "withdrawal.settings.error.bankProvinceState": "empty",
913
- "withdrawal.settings.error.bankPostalCode": "empty",
914
- // Branch code / name
915
- "withdrawal.settings.error.branchCode": "invalid",
916
- "withdrawal.settings.error.branchName": "empty",
917
- // Classification code
918
- "withdrawal.settings.error.classificationCode.invalid": "empty",
919
- "withdrawal.settings.error.classificationCode.invalid.kzt": "invalidKzt",
920
- // PayPal
921
- "payment.error.email": "empty",
922
- "payment.error.paypal_not_supported": "unsupportedCurrency",
923
- "payment.error.email.invalid": "invalidEmail",
924
- "payment.error.paypal_verification_incomplete": "verificationIncomplete",
925
- // Payment schedule
926
- "payment.error.no_threshold": "empty",
927
- "payment.error.invalid_threshold": "invalid",
928
- "payment.error.no_dayOfMonth": "empty",
929
- "payment.error.invalid_dayOfMonth": "invalid",
930
- };
931
802
  function getFormInputs({ bitset, formMap }) {
932
803
  // Convert bitset to binary representation
933
804
  const binary = bitset.toString(2).padStart(Object.keys(formMap).length, "0");
@@ -951,7 +822,6 @@ const SAVE_WITHDRAWAL_SETTINGS = dist.gql `
951
822
  validationErrors {
952
823
  field
953
824
  message
954
- code
955
825
  }
956
826
  }
957
827
  }
@@ -967,7 +837,6 @@ const UPDATE_WITHDRAWAL_SETTINGS = dist.gql `
967
837
  validationErrors {
968
838
  field
969
839
  message
970
- code
971
840
  }
972
841
  }
973
842
  }
@@ -1140,13 +1009,10 @@ function useBankingInfoForm(props) {
1140
1009
  else if (!success) {
1141
1010
  console.error("Validation failed: ", validationErrors);
1142
1011
  const mappedValidationErrors = validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.reduce((agg, error) => {
1143
- const formField = API_FIELD_TO_FORM_FIELD[error.field] || error.field;
1144
- const errorCode = API_ERROR_PATH_TO_FRONTEND[error.errorPath] || error.errorPath;
1145
1012
  return {
1146
1013
  ...agg,
1147
- [formField]: {
1014
+ [error.field]: {
1148
1015
  type: "invalid",
1149
- errorCode,
1150
1016
  },
1151
1017
  };
1152
1018
  }, {});
@@ -1561,156 +1427,6 @@ const BankingInfoForm = class {
1561
1427
  * @uiName Information modal button text
1562
1428
  */
1563
1429
  this.modalButtonText = "I understand, update my information";
1564
- // ──────────────────────────────────────────────────────────────────
1565
- // Per-field validation error messages
1566
- // Each prop uses ICU select on {errorCode} to pick the right message.
1567
- // Error codes are short frontend keys mapped from the API error codes.
1568
- // The `other` branch displays the raw API message directly via {errorCode},
1569
- // which is already human-readable English (e.g. "Invalid Routing Code").
1570
- // ──────────────────────────────────────────────────────────────────
1571
- /**
1572
- * Error messages for the beneficiary / account holder name field.
1573
- * Supports error codes: empty, invalidCharacters, numeric, tooLong,
1574
- * nonEnglish, businessNameMismatch, nameMismatch, businessPayeeMismatch, payeeMismatch
1575
- * @uiName Beneficiary account name error
1576
- * @uiWidget textArea
1577
- */
1578
- this.beneficiaryAccountNameError = "{errorCode, select, empty {Account holder name is required} invalidCharacters {Account holder name contains invalid characters} numeric {Account holder name cannot be purely numeric} tooLong {Account holder name must be 70 characters or fewer} nonEnglish {Account holder name must contain only English characters for this currency} businessNameMismatch {Beneficiary name must match the name on your tax document} nameMismatch {Beneficiary name must match the name on your tax document} businessPayeeMismatch {Payee name must match the name on your tax document} payeeMismatch {Payee name must match the name on your tax document} other {{errorCode}}}";
1579
- /**
1580
- * Error messages for the bank account number / IBAN field.
1581
- * Supports error codes: empty, invalidUk, invalid, ibanEmpty,
1582
- * ibanAlphanumeric, ibanInvalid, ibanCountryMismatch
1583
- * @uiName Bank account number / IBAN error
1584
- * @uiWidget textArea
1585
- */
1586
- this.bankAccountNumberError = "{errorCode, select, empty {Account number is required} invalidUk {Please enter a valid UK account number} invalid {Account number is invalid} ibanEmpty {IBAN is required} ibanAlphanumeric {IBAN must contain only letters and numbers} ibanInvalid {IBAN is invalid} ibanCountryMismatch {UK accounts must use an IBAN starting with GB} other {{errorCode}}}";
1587
- /**
1588
- * Error messages for the routing code / sort code / BSB field.
1589
- * Supports error codes: invalidBsb, invalidSortCode, empty, invalid
1590
- * @uiName Routing code error
1591
- * @uiWidget textArea
1592
- */
1593
- this.routingCodeError = "{errorCode, select, invalidBsb {Please enter a valid BSB number} invalidSortCode {Please enter a valid sort code} empty {Routing number is required} invalid {Routing number is invalid} other {{errorCode}}}";
1594
- /**
1595
- * Error messages for the SWIFT / BIC code field.
1596
- * Supports error codes: empty, alphanumeric, invalid
1597
- * @uiName SWIFT code error
1598
- * @uiWidget textArea
1599
- */
1600
- this.swiftCodeError = "{errorCode, select, empty {SWIFT/BIC code is required} alphanumeric {SWIFT/BIC code must contain only letters and numbers} invalid {SWIFT/BIC code is invalid} other {{errorCode}}}";
1601
- /**
1602
- * Error messages for the bank account type field.
1603
- * Supports error codes: empty
1604
- * @uiName Bank account type error
1605
- * @uiWidget textArea
1606
- */
1607
- this.bankAccountTypeError = "{errorCode, select, empty {Bank account type is required} other {{errorCode}}}";
1608
- /**
1609
- * Error messages for the bank name field.
1610
- * Supports error codes: empty
1611
- * @uiName Bank name error
1612
- * @uiWidget textArea
1613
- */
1614
- this.bankNameError = "{errorCode, select, empty {Bank name is required} other {{errorCode}}}";
1615
- /**
1616
- * Error messages for the tax payer ID / classification entity field.
1617
- * Supports error codes: empty, emptyAr, emptyKr, alphanumeric, alphanumericAr,
1618
- * alphanumericKr, invalid, invalidAr, invalidKr, invalidKzt, cnpjTooShort, cpfTooShort
1619
- * @uiName Tax payer ID error
1620
- * @uiWidget textArea
1621
- */
1622
- this.taxPayerIdError = "{errorCode, select, empty {Tax payer ID is required} emptyAr {CUIT/CUIL is required} emptyKr {Classification ID is required} alphanumeric {Tax payer ID must contain only letters and numbers} alphanumericAr {CUIT/CUIL must contain only letters and numbers} alphanumericKr {Classification ID must contain only letters and numbers} invalid {Tax payer ID is invalid} invalidAr {CUIT/CUIL must be 11 characters} invalidKr {Classification ID length is invalid} invalidKzt {Tax payer ID must be 12 characters for KZT} cnpjTooShort {CNPJ must be at least 14 characters} cpfTooShort {CPF must be at least 11 characters} other {{errorCode}}}";
1623
- /**
1624
- * Error messages for the patronymic name field.
1625
- * Supports error codes: empty, alphanumeric
1626
- * @uiName Patronymic name error
1627
- * @uiWidget textArea
1628
- */
1629
- this.patronymicNameError = "{errorCode, select, empty {Patronymic name is required} alphanumeric {Patronymic name must contain only letters and numbers} other {{errorCode}}}";
1630
- /**
1631
- * Error messages for the VO code field.
1632
- * Supports error codes: empty, alphanumeric
1633
- * @uiName VO code error
1634
- * @uiWidget textArea
1635
- */
1636
- this.voCodeError = "{errorCode, select, empty {VO code is required} alphanumeric {VO code must contain only letters and numbers} other {{errorCode}}}";
1637
- /**
1638
- * Error messages for the agency code field.
1639
- * Supports error codes: empty, alphanumeric, tooShort
1640
- * @uiName Agency code error
1641
- * @uiWidget textArea
1642
- */
1643
- this.agencyCodeError = "{errorCode, select, empty {Agency code is required} alphanumeric {Agency code must contain only letters and numbers} tooShort {Agency code must be at least 5 characters} other {{errorCode}}}";
1644
- /**
1645
- * Error messages for the bank address field.
1646
- * Supports error codes: empty
1647
- * @uiName Bank address error
1648
- * @uiWidget textArea
1649
- */
1650
- this.bankAddressError = "{errorCode, select, empty {Bank address is required} other {{errorCode}}}";
1651
- /**
1652
- * Error messages for the bank city field.
1653
- * Supports error codes: empty
1654
- * @uiName Bank city error
1655
- * @uiWidget textArea
1656
- */
1657
- this.bankCityError = "{errorCode, select, empty {Bank city is required} other {{errorCode}}}";
1658
- /**
1659
- * Error messages for the bank province/state field.
1660
- * Supports error codes: empty
1661
- * @uiName Bank province/state error
1662
- * @uiWidget textArea
1663
- */
1664
- this.bankStateError = "{errorCode, select, empty {Bank province/state is required} other {{errorCode}}}";
1665
- /**
1666
- * Error messages for the bank postal code field.
1667
- * Supports error codes: empty
1668
- * @uiName Bank postal code error
1669
- * @uiWidget textArea
1670
- */
1671
- this.bankPostalCodeError = "{errorCode, select, empty {Bank postal code is required} other {{errorCode}}}";
1672
- /**
1673
- * Error messages for the branch code field.
1674
- * Supports error codes: invalid
1675
- * @uiName Branch code error
1676
- * @uiWidget textArea
1677
- */
1678
- this.branchCodeError = "{errorCode, select, invalid {Branch code is invalid} other {{errorCode}}}";
1679
- /**
1680
- * Error messages for the branch name field.
1681
- * Supports error codes: empty
1682
- * @uiName Branch name error
1683
- * @uiWidget textArea
1684
- */
1685
- this.branchNameError = "{errorCode, select, empty {Branch name is required} other {{errorCode}}}";
1686
- /**
1687
- * Error messages for the classification code field.
1688
- * Supports error codes: empty, invalidKzt
1689
- * @uiName Classification code error
1690
- * @uiWidget textArea
1691
- */
1692
- this.classificationCodeError = "{errorCode, select, empty {Classification code is required} invalidKzt {Classification code must be exactly 2 characters} other {{errorCode}}}";
1693
- /**
1694
- * Error messages for the PayPal email field.
1695
- * Supports error codes: empty, unsupportedCurrency, invalidEmail, verificationIncomplete
1696
- * @uiName PayPal email error
1697
- * @uiWidget textArea
1698
- */
1699
- this.paypalEmailError = "{errorCode, select, empty {PayPal email is required} unsupportedCurrency {PayPal is not supported for this currency} invalidEmail {Please enter a valid email address} verificationIncomplete {PayPal verification is not complete} other {{errorCode}}}";
1700
- /**
1701
- * Error messages for the payment threshold field.
1702
- * Supports error codes: empty, invalid
1703
- * @uiName Payment threshold error
1704
- * @uiWidget textArea
1705
- */
1706
- this.paymentThresholdError = "{errorCode, select, empty {Payment threshold is required} invalid {Payment threshold is invalid} other {{errorCode}}}";
1707
- /**
1708
- * Error messages for the payment day field.
1709
- * Supports error codes: empty, invalid
1710
- * @uiName Payment day error
1711
- * @uiWidget textArea
1712
- */
1713
- this.paymentDayError = "{errorCode, select, empty {Payment day is required} invalid {Payment day must be the 1st or the 15th} other {{errorCode}}}";
1714
1430
  h$1(this);
1715
1431
  }
1716
1432
  disconnectedCallback() { }
@@ -1724,54 +1440,17 @@ const BankingInfoForm = class {
1724
1440
  loadingErrorAlertDescription: props.loadingErrorAlertDescription,
1725
1441
  loadingErrorAlertHeader: props.loadingErrorAlertHeader,
1726
1442
  },
1727
- errorMessages: {
1728
- beneficiaryAccountName: props.beneficiaryAccountNameError,
1729
- bankAccountNumber: props.bankAccountNumberError,
1730
- routingCode: props.routingCodeError,
1731
- swiftCode: props.swiftCodeError,
1732
- bankAccountType: props.bankAccountTypeError,
1733
- bankName: props.bankNameError,
1734
- taxPayerId: props.taxPayerIdError,
1735
- patronymicName: props.patronymicNameError,
1736
- voCode: props.voCodeError,
1737
- agencyCode: props.agencyCodeError,
1738
- bankAddress: props.bankAddressError,
1739
- bankCity: props.bankCityError,
1740
- bankState: props.bankStateError,
1741
- bankPostalCode: props.bankPostalCodeError,
1742
- branchCode: props.branchCodeError,
1743
- branchName: props.branchNameError,
1744
- beneficiaryClassification: props.classificationCodeError,
1745
- paypalEmailAddress: props.paypalEmailError,
1746
- paymentThreshold: props.paymentThresholdError,
1747
- paymentDay: props.paymentDayError,
1748
- },
1749
1443
  };
1750
1444
  }
1751
1445
  render() {
1752
- 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;
1446
+ 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;
1753
1447
  const props = isDemo()
1754
1448
  ? useDemoBankingInfoForm(this)
1755
1449
  : useBankingInfoForm(this);
1756
1450
  const { errors } = props.states.formState;
1757
1451
  const fieldRequiredError = this.fieldRequiredError;
1758
1452
  const fieldInvalidError = this.fieldInvalidError;
1759
- function getValidationErrorMessage({ type, label, errorCode, fieldName, }) {
1760
- var _a;
1761
- // If we have a specific error code from the API, try to use
1762
- // the per-field ICU error message template for a rich message
1763
- if (type === "invalid" && errorCode && fieldName) {
1764
- const errorTemplate = (_a = props.text.errorMessages) === null || _a === void 0 ? void 0 : _a[fieldName];
1765
- if (errorTemplate) {
1766
- return intl.formatMessage({
1767
- id: `fieldError-${fieldName}-${errorCode}`,
1768
- defaultMessage: errorTemplate,
1769
- }, {
1770
- errorCode,
1771
- fieldName: label,
1772
- });
1773
- }
1774
- }
1453
+ function getValidationErrorMessage({ type, label, }) {
1775
1454
  if (type === "required") {
1776
1455
  return intl.formatMessage({
1777
1456
  id: `requiredText-${label}`,
@@ -1854,45 +1533,37 @@ const BankingInfoForm = class {
1854
1533
  helpText: getValidationErrorMessage({
1855
1534
  type: (_c = (_b = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _b === void 0 ? void 0 : _b.bankCountry) === null || _c === void 0 ? void 0 : _c.type,
1856
1535
  label: props.text.bankLocationLabel,
1857
- errorCode: (_e = (_d = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _d === void 0 ? void 0 : _d.bankCountry) === null || _e === void 0 ? void 0 : _e.errorCode,
1858
- fieldName: "bankCountry",
1859
1536
  }),
1860
1537
  })), h("sl-input", { disabled: props.states.saveLoading, class: sheet.classes.SearchInput, placeholder: this.searchForCountryText, onKeyDown: (e) => {
1861
1538
  // Stop shoelace intercepting key presses
1862
1539
  e.stopPropagation();
1863
1540
  }, "onSl-input": (e) => {
1864
1541
  props.callbacks.setCountrySearch(e.target.value);
1865
- } }), (_f = props.states.countries) === null || _f === void 0 ? void 0 :
1866
- _f.map((country) => {
1542
+ } }), (_d = props.states.countries) === null || _d === void 0 ? void 0 :
1543
+ _d.map((country) => {
1867
1544
  return (h("sl-menu-item", { value: country.countryCode }, country.displayName));
1868
- }), (_h = (_g = props.states) === null || _g === void 0 ? void 0 : _g.allCountries) === null || _h === void 0 ? void 0 :
1869
- _h.map((c) => (h("sl-menu-item", { value: c.countryCode, style: { display: "none" } }, c.displayName))))),
1545
+ }), (_f = (_e = props.states) === null || _e === void 0 ? void 0 : _e.allCountries) === null || _f === void 0 ? void 0 :
1546
+ _f.map((c) => (h("sl-menu-item", { value: c.countryCode, style: { display: "none" } }, c.displayName))))),
1870
1547
  paymentMethodSlot: (h("sl-input", { key: "paymentMethod", label: props.text.paymentMethod, placeholder: props.states.paymentMethodFeeLabel, disabled: true })),
1871
- paymentThresholdSelectSlot: (h("sl-select", Object.assign({ required: true, disabled: props.states.saveLoading, label: props.text.paymentThresholdSelectLabel, name: "/paymentThreshold", id: "paymentThreshold", value: ((_k = (_j = props.states) === null || _j === void 0 ? void 0 : _j.formState) === null || _k === void 0 ? void 0 : _k.paymentThreshold) || "" }, (((_l = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _l === void 0 ? void 0 : _l.paymentThreshold) && {
1548
+ paymentThresholdSelectSlot: (h("sl-select", Object.assign({ required: true, disabled: props.states.saveLoading, label: props.text.paymentThresholdSelectLabel, name: "/paymentThreshold", id: "paymentThreshold", value: ((_h = (_g = props.states) === null || _g === void 0 ? void 0 : _g.formState) === null || _h === void 0 ? void 0 : _h.paymentThreshold) || "" }, (((_j = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _j === void 0 ? void 0 : _j.paymentThreshold) && {
1872
1549
  class: "error-input",
1873
1550
  helpText: getValidationErrorMessage({
1874
- type: (_o = (_m = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _m === void 0 ? void 0 : _m.paymentThreshold) === null || _o === void 0 ? void 0 : _o.type,
1551
+ type: (_l = (_k = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _k === void 0 ? void 0 : _k.paymentThreshold) === null || _l === void 0 ? void 0 : _l.type,
1875
1552
  label: props.text.paymentThresholdSelectLabel,
1876
- errorCode: (_q = (_p = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _p === void 0 ? void 0 : _p.paymentThreshold) === null || _q === void 0 ? void 0 : _q.errorCode,
1877
- fieldName: "paymentThreshold",
1878
1553
  }),
1879
1554
  })), props.states.thresholds.map((t) => (h("sl-menu-item", { value: t }, `${props.states.currency}${t}`))))),
1880
- paymentFixedDaySelectSlot: (h("sl-select", Object.assign({ required: true, disabled: props.states.saveLoading, label: props.text.paymentDaySelectLabel, value: ((_s = (_r = props.states) === null || _r === void 0 ? void 0 : _r.formState) === null || _s === void 0 ? void 0 : _s.paymentDay) || "", name: "/paymentDay", id: "paymentDay" }, (((_t = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _t === void 0 ? void 0 : _t.paymentDay) && {
1555
+ paymentFixedDaySelectSlot: (h("sl-select", Object.assign({ required: true, disabled: props.states.saveLoading, label: props.text.paymentDaySelectLabel, value: ((_o = (_m = props.states) === null || _m === void 0 ? void 0 : _m.formState) === null || _o === void 0 ? void 0 : _o.paymentDay) || "", name: "/paymentDay", id: "paymentDay" }, (((_p = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _p === void 0 ? void 0 : _p.paymentDay) && {
1881
1556
  class: "error-input",
1882
1557
  helpText: getValidationErrorMessage({
1883
- type: (_v = (_u = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _u === void 0 ? void 0 : _u.paymentDay) === null || _v === void 0 ? void 0 : _v.type,
1558
+ type: (_r = (_q = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _q === void 0 ? void 0 : _q.paymentDay) === null || _r === void 0 ? void 0 : _r.type,
1884
1559
  label: props.text.paymentDaySelectLabel,
1885
- errorCode: (_x = (_w = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _w === void 0 ? void 0 : _w.paymentDay) === null || _x === void 0 ? void 0 : _x.errorCode,
1886
- fieldName: "paymentDay",
1887
1560
  }),
1888
1561
  })), h("sl-menu-item", { value: "1" }, props.text.paymentDayFirstOfMonthLabelText), h("sl-menu-item", { value: "15" }, props.text.paymentDayFifteenthOfMonthLabelText))),
1889
- paypalInputSlot: (h("sl-input", Object.assign({ required: true, disabled: props.states.saveLoading, value: ((_z = (_y = props.states) === null || _y === void 0 ? void 0 : _y.formState) === null || _z === void 0 ? void 0 : _z.paypalEmailAddress) || "", label: props.text.payPalInputLabel, key: "paypalEmailAddress", name: "/paypalEmailAddress", id: "paypalEmailAddress", type: "text" }, (((_2 = (_1 = (_0 = props.states.formState) === null || _0 === void 0 ? void 0 : _0.errors) === null || _1 === void 0 ? void 0 : _1.inputErrors) === null || _2 === void 0 ? void 0 : _2.paypalEmailAddress) && {
1562
+ paypalInputSlot: (h("sl-input", Object.assign({ required: true, disabled: props.states.saveLoading, value: ((_t = (_s = props.states) === null || _s === void 0 ? void 0 : _s.formState) === null || _t === void 0 ? void 0 : _t.paypalEmailAddress) || "", label: props.text.payPalInputLabel, key: "paypalEmailAddress", name: "/paypalEmailAddress", id: "paypalEmailAddress", type: "text" }, (((_w = (_v = (_u = props.states.formState) === null || _u === void 0 ? void 0 : _u.errors) === null || _v === void 0 ? void 0 : _v.inputErrors) === null || _w === void 0 ? void 0 : _w.paypalEmailAddress) && {
1890
1563
  class: "error-input",
1891
1564
  helpText: getValidationErrorMessage({
1892
- type: (_6 = (_5 = (_4 = (_3 = props.states.formState) === null || _3 === void 0 ? void 0 : _3.errors) === null || _4 === void 0 ? void 0 : _4.inputErrors) === null || _5 === void 0 ? void 0 : _5.paypalEmailAddress) === null || _6 === void 0 ? void 0 : _6.type,
1565
+ type: (_0 = (_z = (_y = (_x = props.states.formState) === null || _x === void 0 ? void 0 : _x.errors) === null || _y === void 0 ? void 0 : _y.inputErrors) === null || _z === void 0 ? void 0 : _z.paypalEmailAddress) === null || _0 === void 0 ? void 0 : _0.type,
1893
1566
  label: props.text.payPalInputLabel,
1894
- errorCode: (_10 = (_9 = (_8 = (_7 = props.states.formState) === null || _7 === void 0 ? void 0 : _7.errors) === null || _8 === void 0 ? void 0 : _8.inputErrors) === null || _9 === void 0 ? void 0 : _9.paypalEmailAddress) === null || _10 === void 0 ? void 0 : _10.errorCode,
1895
- fieldName: "paypalEmailAddress",
1896
1567
  }),
1897
1568
  })))),
1898
1569
  } })));
@@ -2868,32 +2539,6 @@ const CONNECT_PARTNER = dist.gql `
2868
2539
  }
2869
2540
  }
2870
2541
  `;
2871
- const COMPLETE_PARTNER = dist.gql `
2872
- mutation completeImpactConnection($vars: ImpactConnectionInput!) {
2873
- completeImpactConnection(impactConnectionInput: $vars) {
2874
- success
2875
- validationErrors {
2876
- field
2877
- message
2878
- }
2879
- user {
2880
- id
2881
- accountId
2882
- impactConnection {
2883
- connected
2884
- publisher {
2885
- brandedSignup
2886
- requiredTaxDocumentType
2887
- currentTaxDocument {
2888
- type
2889
- status
2890
- }
2891
- }
2892
- }
2893
- }
2894
- }
2895
- }
2896
- `;
2897
2542
  function getOption(countries, countryCode) {
2898
2543
  if (!countries)
2899
2544
  return;
@@ -2912,7 +2557,6 @@ function useIndirectTaxForm(props) {
2912
2557
  const context = Fn(TAX_FORM_CONTEXT_NAMESPACE);
2913
2558
  const [step, setStep] = Pn(TAX_CONTEXT_NAMESPACE);
2914
2559
  const [connectImpactPartner, { loading: connectLoading, errors: connectErrors },] = $e(CONNECT_PARTNER);
2915
- const [completeImpactPartner, { loading: completeLoading, errors: completeErrors },] = $e(COMPLETE_PARTNER);
2916
2560
  const userForm = Fn(USER_FORM_CONTEXT_NAMESPACE);
2917
2561
  const { data: userData, refetch, errors: userError, } = $n(USER_QUERY_NAMESPACE);
2918
2562
  const { data: _countriesRes, loading: countriesLoading } = $n(COUNTRIES_QUERY_NAMESPACE);
@@ -2975,7 +2619,7 @@ function useIndirectTaxForm(props) {
2975
2619
  setFormState((p) => ({ ...p, [field]: value }));
2976
2620
  };
2977
2621
  async function connectPartner(formData) {
2978
- var _a, _b, _c, _d, _e, _f, _g;
2622
+ var _a, _b, _c, _d, _e;
2979
2623
  const vars = {
2980
2624
  user: {
2981
2625
  id: user.id,
@@ -2997,30 +2641,19 @@ function useIndirectTaxForm(props) {
2997
2641
  additionalTaxId: formData.qstNumber,
2998
2642
  withholdingTaxId: formData.subRegionTaxNumber,
2999
2643
  };
3000
- //AL: TODO completePartnerMutation might change
3001
- let result = null;
3002
- let connectionResult;
3003
- if ((_b = (_a = userData === null || userData === void 0 ? void 0 : userData.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.connected) {
3004
- result = await completeImpactPartner({
3005
- vars,
3006
- });
3007
- connectionResult = (_c = result) === null || _c === void 0 ? void 0 : _c.completeImpactConnection;
3008
- }
3009
- else {
3010
- result = await connectImpactPartner({
3011
- vars,
3012
- });
3013
- connectionResult = (_d = result) === null || _d === void 0 ? void 0 : _d.createImpactConnection;
3014
- }
3015
- if (!result || ((_e = result) === null || _e === void 0 ? void 0 : _e.message))
2644
+ const result = await connectImpactPartner({
2645
+ vars,
2646
+ });
2647
+ if (!result || ((_a = result) === null || _a === void 0 ? void 0 : _a.message))
3016
2648
  throw new Error();
3017
- if (!(connectionResult === null || connectionResult === void 0 ? void 0 : connectionResult.success)) {
2649
+ if (!((_b = result.createImpactConnection) === null || _b === void 0 ? void 0 : _b.success)) {
3018
2650
  // Output backend errors to console for now
3019
- console.error("Failed to create Impact connection: ", connectionResult === null || connectionResult === void 0 ? void 0 : connectionResult.validationErrors);
2651
+ console.error("Failed to create Impact connection: ", result.createImpactConnection.validationErrors);
3020
2652
  throw new Error();
3021
2653
  }
3022
2654
  await refetch();
3023
- const resultPublisher = (_g = (_f = connectionResult === null || connectionResult === void 0 ? void 0 : connectionResult.user) === null || _f === void 0 ? void 0 : _f.impactConnection) === null || _g === void 0 ? void 0 : _g.publisher;
2655
+ const resultPublisher = (_e = (_d = (_c = result
2656
+ .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;
3024
2657
  const hasValidCurrentDocument = validTaxDocument(resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) && (resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.currentTaxDocument);
3025
2658
  // Fire form change event
3026
2659
  window.dispatchEvent(new Event(TAX_FORM_UPDATED_EVENT_KEY));
@@ -3086,8 +2719,8 @@ function useIndirectTaxForm(props) {
3086
2719
  states: {
3087
2720
  step: step === null || step === void 0 ? void 0 : step.replace("/", ""),
3088
2721
  hideSteps: context.hideSteps,
3089
- disabled: loading || countriesLoading || connectLoading || completeLoading,
3090
- loading: loading || connectLoading || countriesLoading || completeLoading,
2722
+ disabled: loading || countriesLoading || connectLoading,
2723
+ loading: loading || connectLoading || countriesLoading,
3091
2724
  isPartner: !!((_e = (_d = userData === null || userData === void 0 ? void 0 : userData.user) === null || _d === void 0 ? void 0 : _d.impactConnection) === null || _e === void 0 ? void 0 : _e.publisher),
3092
2725
  loadingError: !!(userError === null || userError === void 0 ? void 0 : userError.message),
3093
2726
  formState: {
@@ -3179,7 +2812,7 @@ const IndirectTaxForm = class {
3179
2812
  /**
3180
2813
  * @uiName Indirect tax number field label
3181
2814
  */
3182
- this.indirectTaxNumber = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}}";
2815
+ this.indirectTaxNumber = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number} other {Tax number}}";
3183
2816
  /**
3184
2817
  * Displayed to participants registered for QST.
3185
2818
  * @uiName QST number field label
@@ -3218,7 +2851,7 @@ const IndirectTaxForm = class {
3218
2851
  /**
3219
2852
  * @uiName Missing indirect tax number error message
3220
2853
  */
3221
- this.indirectTaxNumberError = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}} is required";
2854
+ this.indirectTaxNumberError = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number} other {Tax number}} is required";
3222
2855
  /**
3223
2856
  * Placeholder text displayed in the country search dropdown
3224
2857
  * @uiName Country field placeholder text
@@ -4029,7 +3662,7 @@ const PayoutDetailsCard = class {
4029
3662
  * Badge text indicating payout status
4030
3663
  * @uiName Payout badge status text
4031
3664
  */
4032
- this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
3665
+ this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} other {Failed}}";
4033
3666
  /**
4034
3667
  * Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
4035
3668
  * @uiName Payout schedule by threshold text
@@ -5083,7 +4716,7 @@ const TaxAndCashDashboard = class {
5083
4716
  /**
5084
4717
  * @uiName Payout status badge
5085
4718
  */
5086
- this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
4719
+ this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} other {Failed} }";
5087
4720
  /**
5088
4721
  * Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
5089
4722
  * @uiName Payout schedule by threshold text
@@ -5400,7 +5033,6 @@ function useUserInfoForm(props) {
5400
5033
  const [userFormContext, setUserFormContext] = Pn(USER_FORM_CONTEXT_NAMESPACE);
5401
5034
  const user = J();
5402
5035
  const [connectImpactPartner, { loading: connectLoading, errors: connectErrors },] = $e(CONNECT_PARTNER);
5403
- const [completeImpactPartner, { loading: completeLoading, errors: completeErrors },] = $e(COMPLETE_PARTNER);
5404
5036
  const { data: tenantData } = wn(GET_INDIRECT_TAX_COUNTRY_CODE, {});
5405
5037
  const { data, loading, refetch, errors: userError, } = $n(USER_QUERY_NAMESPACE);
5406
5038
  const _currencies = Fn(CURRENCIES_NAMESPACE);
@@ -5435,13 +5067,8 @@ function useUserInfoForm(props) {
5435
5067
  lastName: user.impactConnection.user.lastName,
5436
5068
  countryCode: user.impactConnection.publisher.countryCode,
5437
5069
  currency: user.impactConnection.publisher.currency,
5438
- // when creating an impact connection without sending phoneNumber data, the impactAPI defaults the value to "000000" and the phoneNumberCountryCode to "DZ"
5439
- phoneNumberCountryCode: user.impactConnection.publisher.phoneNumber === "0000000"
5440
- ? null
5441
- : user.impactConnection.publisher.phoneNumberCountryCode,
5442
- phoneNumber: user.impactConnection.publisher.phoneNumber === "0000000"
5443
- ? null
5444
- : user.impactConnection.publisher.phoneNumber,
5070
+ phoneNumberCountryCode: user.impactConnection.publisher.phoneNumberCountryCode,
5071
+ phoneNumber: user.impactConnection.publisher.phoneNumber,
5445
5072
  address: user.impactConnection.publisher.billingAddress,
5446
5073
  city: user.impactConnection.publisher.billingCity,
5447
5074
  state: user.impactConnection.publisher.billingState,
@@ -5512,7 +5139,7 @@ function useUserInfoForm(props) {
5512
5139
  }
5513
5140
  }, [currencySearch, currencies]);
5514
5141
  async function connectPartner(formData) {
5515
- var _a, _b, _c, _d, _e, _f;
5142
+ var _a, _b, _c, _d, _e;
5516
5143
  const vars = {
5517
5144
  user: {
5518
5145
  id: user.id,
@@ -5529,32 +5156,20 @@ function useUserInfoForm(props) {
5529
5156
  phoneNumber: formData.phoneNumber,
5530
5157
  phoneNumberCountryCode: formData.phoneNumberCountryCode,
5531
5158
  };
5532
- //AL: TODO completePartnerMutation might change
5533
- // if user already has an impact connection, call completeImpactPartner to update their information instead of connectPartner
5534
- const userData = data === null || data === void 0 ? void 0 : data.user;
5535
- let result = null;
5536
- let connectionResult;
5537
- if (((_a = userData === null || userData === void 0 ? void 0 : userData.impactConnection) === null || _a === void 0 ? void 0 : _a.connectionStatus) === "STARTED") {
5538
- console.log(vars, "values for completeImpactPartner");
5539
- result = await completeImpactPartner({
5540
- vars,
5541
- });
5542
- connectionResult = (_b = result) === null || _b === void 0 ? void 0 : _b.completeImpactConnection;
5543
- }
5544
- else {
5545
- result = await connectImpactPartner({
5546
- vars,
5547
- });
5548
- connectionResult = (_c = result) === null || _c === void 0 ? void 0 : _c.createImpactConnection;
5549
- }
5550
- if (!result || ((_d = result) === null || _d === void 0 ? void 0 : _d.message))
5159
+ const result = await connectImpactPartner({
5160
+ vars,
5161
+ });
5162
+ if (!result || ((_a = result) === null || _a === void 0 ? void 0 : _a.message))
5551
5163
  throw new Error();
5552
- if (!(connectionResult === null || connectionResult === void 0 ? void 0 : connectionResult.success)) {
5553
- console.error("Failed to create Impact connection: ", connectionResult === null || connectionResult === void 0 ? void 0 : connectionResult.validationErrors);
5164
+ if (!((_b = result.createImpactConnection) === null || _b === void 0 ? void 0 : _b.success)) {
5165
+ // Output backend errors to console for now
5166
+ console.error("Failed to create Impact connection: ", result.createImpactConnection
5167
+ .validationErrors);
5554
5168
  throw new Error();
5555
5169
  }
5556
5170
  await refetch();
5557
- const resultPublisher = (_f = (_e = connectionResult === null || connectionResult === void 0 ? void 0 : connectionResult.user) === null || _e === void 0 ? void 0 : _e.impactConnection) === null || _f === void 0 ? void 0 : _f.publisher;
5171
+ const resultPublisher = (_e = (_d = (_c = result
5172
+ .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;
5558
5173
  const hasValidCurrentDocument = validTaxDocument(resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) && (resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.currentTaxDocument);
5559
5174
  // Fire form change event
5560
5175
  window.dispatchEvent(new Event(TAX_FORM_UPDATED_EVENT_KEY));
@@ -5679,9 +5294,9 @@ function useUserInfoForm(props) {
5679
5294
  step: step === null || step === void 0 ? void 0 : step.replace("/", ""),
5680
5295
  hideState: !hasStates,
5681
5296
  hideSteps: !!context.hideSteps,
5682
- disabled: loading || connectLoading || completeLoading,
5297
+ disabled: loading || connectLoading,
5683
5298
  loadingError: !!(userError === null || userError === void 0 ? void 0 : userError.message),
5684
- loading: loading || connectLoading || completeLoading,
5299
+ loading: loading || connectLoading,
5685
5300
  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),
5686
5301
  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),
5687
5302
  formState: {