@saasquatch/mint-components 2.1.9-20 → 2.1.9-22

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 (444) hide show
  1. package/dist/cjs/{ShadowViewAddon-2b3f51be.js → ShadowViewAddon-cd349587.js} +410 -24
  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} +230 -426
  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 +2 -2
  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-email-verification-view-60f8e0a7.js → sqm-portal-email-verification-view-abb773a7.js} +2 -2
  32. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +4 -4
  33. package/dist/cjs/sqm-portal-forgot-password_6.cjs.entry.js +8 -8
  34. package/dist/cjs/sqm-portal-logout.cjs.entry.js +1 -1
  35. package/dist/cjs/{sqm-portal-profile-view-2bfd7afd.js → sqm-portal-profile-view-3515e1e5.js} +2 -2
  36. package/dist/cjs/sqm-portal-profile.cjs.entry.js +5 -5
  37. package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +1 -1
  38. package/dist/cjs/{sqm-portal-registration-form-view-fd48f1d3.js → sqm-portal-registration-form-view-a45f7a52.js} +1 -1
  39. package/dist/cjs/{sqm-portal-reset-password-view-d90d77f9.js → sqm-portal-reset-password-view-a767b044.js} +1 -1
  40. package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +3 -3
  41. package/dist/cjs/{sqm-portal-verify-email-view-b31638f8.js → sqm-portal-verify-email-view-717d0633.js} +2 -2
  42. package/dist/cjs/sqm-qr-code.cjs.entry.js +2 -2
  43. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +6 -6
  44. package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +1 -1
  45. package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +2 -2
  46. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +5 -5
  47. package/dist/cjs/sqm-stencilbook.cjs.entry.js +208 -251
  48. package/dist/cjs/sqm-tab.cjs.entry.js +2 -2
  49. package/dist/cjs/sqm-tabs.cjs.entry.js +3 -3
  50. package/dist/cjs/{sqm-text-span-view-8a32dd8c.js → sqm-text-span-view-b9e10f5d.js} +1 -1
  51. package/dist/cjs/sqm-text-span.cjs.entry.js +1 -1
  52. package/dist/cjs/{sqm-user-info-form-view-db47a968.js → sqm-user-info-form-view-53306f6e.js} +34 -32
  53. package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +1 -1
  54. package/dist/cjs/sqm-widget-verification.cjs.entry.js +214 -0
  55. package/dist/cjs/{useChildElements-89bc50a9.js → useChildElements-041127d7.js} +1 -1
  56. package/dist/cjs/{useInstantAccessRegistration-651aa95b.js → useInstantAccessRegistration-2398df36.js} +2 -2
  57. package/dist/cjs/{useLeadFormState-76d3b511.js → useLeadFormState-b4c2ab5b.js} +2 -2
  58. package/dist/cjs/{usePayoutStatus-cf050a03.js → usePayoutStatus-0192fccd.js} +6 -4
  59. package/dist/cjs/{usePortalRegistrationForm-31822dc4.js → usePortalRegistrationForm-23ee2d62.js} +2 -2
  60. package/dist/cjs/{useReferralCodes-89c2b972.js → useReferralCodes-0f7948af.js} +1 -1
  61. package/dist/cjs/{useReferralTable-d3ddfd05.js → useReferralTable-6e9de0d5.js} +3 -3
  62. package/dist/cjs/{useRegistrationFormState-a223f597.js → useRegistrationFormState-4fe5b770.js} +1 -1
  63. package/dist/cjs/{useVerificationEmail-994bc32f.js → useVerificationEmail-5d19aa99.js} +1 -1
  64. package/dist/cjs/{utilities-096934ea.js → utilities-fcdb9504.js} +1 -1
  65. package/dist/collection/collection-manifest.json +0 -1
  66. package/dist/collection/components/sqm-password-field/sqm-password-field.js +1 -0
  67. package/dist/collection/components/sqm-portal-google-login/sqm-portal-google-login.js +1 -1
  68. package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +1 -1
  69. package/dist/collection/components/sqm-referral-iframe/ReferralIframe.stories.js +1 -0
  70. package/dist/collection/components/sqm-referral-iframe/sqm-referral-iframe-view.js +1 -1
  71. package/dist/collection/components/sqm-referral-iframe/sqm-referral-iframe.js +27 -1
  72. package/dist/collection/components/sqm-share-code/sqm-share-code.js +0 -1
  73. package/dist/collection/components/sqm-share-link/ShareLink.stories.js +132 -11
  74. package/dist/collection/components/sqm-share-link/UseShareLink.stories.js +14 -5
  75. package/dist/collection/components/sqm-share-link/sqm-share-link-view.js +192 -0
  76. package/dist/collection/components/sqm-share-link/sqm-share-link.js +685 -27
  77. package/dist/collection/components/sqm-share-link/useShareLink.js +210 -14
  78. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +0 -4
  79. package/dist/collection/components/sqm-text-span/sqm-text-span-view.js +1 -1
  80. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +4 -3
  81. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +2 -0
  82. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +11 -510
  83. package/dist/collection/components/sqm-widget-verification/useWidgetVerification.js +5 -20
  84. package/dist/collection/components/tax-and-cash/data.js +0 -1
  85. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/formDefinitions.js +37 -75
  86. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +13 -688
  87. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +1 -95
  88. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +4 -4
  89. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +11 -49
  90. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js +2 -2
  91. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +6 -6
  92. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +0 -4
  93. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +2 -2
  94. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +10 -7
  95. package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +16 -34
  96. package/dist/esm/{ShadowViewAddon-78b791d2.js → ShadowViewAddon-ec5f917e.js} +411 -26
  97. package/dist/esm/{data-33c16dff.js → data-12e6aae1.js} +85 -3
  98. package/dist/esm/extractProps-54064fb0.js +32 -0
  99. package/dist/esm/{global-39f55ec2.js → global-96c14d63.js} +3126 -3177
  100. package/dist/esm/{index.module-cede12c6.js → index.module-b23fdad8.js} +150 -153
  101. package/dist/esm/{keys-db1897ae.js → keys-406491dc.js} +1 -1
  102. package/dist/esm/loader.js +3 -3
  103. package/dist/esm/mint-components.js +3 -3
  104. package/dist/esm/{re-render-7a0c7976.js → re-render-f30aeb6b.js} +1 -1
  105. package/dist/esm/sqm-banking-info-form_10.entry.js +89 -474
  106. package/dist/esm/{sqm-big-stat_46.entry.js → sqm-big-stat_45.entry.js} +225 -420
  107. package/dist/esm/sqm-close-button.entry.js +1 -1
  108. package/dist/esm/sqm-code-verification.entry.js +9 -8
  109. package/dist/esm/sqm-context-router.entry.js +1 -1
  110. package/dist/esm/sqm-email-verification.entry.js +414 -0
  111. package/dist/esm/sqm-empty_4.entry.js +2 -2
  112. package/dist/esm/sqm-google-sign-in.entry.js +1 -1
  113. package/dist/esm/sqm-graphql-client-provider.entry.js +1 -1
  114. package/dist/esm/sqm-instant-access-registration.entry.js +3 -3
  115. package/dist/esm/{sqm-lead-checkbox-field-view-7cee2b4e.js → sqm-lead-checkbox-field-view-7928db07.js} +1 -1
  116. package/dist/esm/sqm-lead-checkbox-field.entry.js +4 -4
  117. package/dist/esm/{sqm-lead-input-field-view-11a4f9a9.js → sqm-lead-input-field-view-d1b91650.js} +1 -1
  118. package/dist/esm/sqm-lead-input-field.entry.js +4 -4
  119. package/dist/esm/sqm-leaderboard-rank.entry.js +2 -2
  120. package/dist/esm/sqm-logout-current-user.entry.js +1 -1
  121. package/dist/esm/{sqm-navigation-sidebar-item-view-48e7e0d3.js → sqm-navigation-sidebar-item-view-b3beac5a.js} +1 -1
  122. package/dist/esm/sqm-navigation-sidebar-item.entry.js +2 -2
  123. package/dist/esm/sqm-navigation-sidebar.entry.js +1 -1
  124. package/dist/esm/sqm-pagination_3.entry.js +3 -3
  125. package/dist/esm/sqm-password-field.entry.js +2 -2
  126. package/dist/esm/sqm-popup-container.entry.js +1 -1
  127. package/dist/esm/{sqm-portal-email-verification-view-33f5c108.js → sqm-portal-email-verification-view-04528277.js} +2 -2
  128. package/dist/esm/sqm-portal-email-verification.entry.js +4 -4
  129. package/dist/esm/sqm-portal-forgot-password_6.entry.js +8 -8
  130. package/dist/esm/sqm-portal-logout.entry.js +1 -1
  131. package/dist/esm/{sqm-portal-profile-view-88fd6a93.js → sqm-portal-profile-view-b5ea620f.js} +2 -2
  132. package/dist/esm/sqm-portal-profile.entry.js +5 -5
  133. package/dist/esm/sqm-portal-protected-route.entry.js +1 -1
  134. package/dist/esm/{sqm-portal-registration-form-view-9bf30b56.js → sqm-portal-registration-form-view-79265df5.js} +1 -1
  135. package/dist/esm/{sqm-portal-reset-password-view-f8d1689c.js → sqm-portal-reset-password-view-f84c04cf.js} +1 -1
  136. package/dist/esm/sqm-portal-reset-password.entry.js +3 -3
  137. package/dist/esm/{sqm-portal-verify-email-view-0b70c1b1.js → sqm-portal-verify-email-view-c61536b7.js} +2 -2
  138. package/dist/esm/sqm-qr-code.entry.js +2 -2
  139. package/dist/esm/sqm-referral-table_11.entry.js +6 -6
  140. package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +1 -1
  141. package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +2 -2
  142. package/dist/esm/sqm-rewards-table_9.entry.js +5 -5
  143. package/dist/esm/sqm-stencilbook.entry.js +174 -217
  144. package/dist/esm/sqm-tab.entry.js +2 -2
  145. package/dist/esm/sqm-tabs.entry.js +3 -3
  146. package/dist/esm/{sqm-text-span-view-4db9e33f.js → sqm-text-span-view-72f43dff.js} +1 -1
  147. package/dist/esm/sqm-text-span.entry.js +1 -1
  148. package/dist/esm/{sqm-user-info-form-view-712cd51b.js → sqm-user-info-form-view-19d81a2b.js} +12 -10
  149. package/dist/esm/sqm-widget-verification-controller.entry.js +2 -2
  150. package/dist/esm/sqm-widget-verification.entry.js +210 -0
  151. package/dist/esm/{useChildElements-c26d7347.js → useChildElements-9bccfb72.js} +1 -1
  152. package/dist/esm/{useInstantAccessRegistration-e2392f42.js → useInstantAccessRegistration-69fefed0.js} +2 -2
  153. package/dist/esm/{useLeadFormState-9099c8d4.js → useLeadFormState-dd4e8b08.js} +2 -2
  154. package/dist/esm/{usePayoutStatus-fa504d49.js → usePayoutStatus-46c0c289.js} +4 -3
  155. package/dist/esm/{usePortalRegistrationForm-5844032a.js → usePortalRegistrationForm-62de6fb1.js} +2 -2
  156. package/dist/esm/{useReferralCodes-3cde72d4.js → useReferralCodes-52ca720f.js} +1 -1
  157. package/dist/esm/{useReferralTable-35e6d4c1.js → useReferralTable-92af4133.js} +3 -3
  158. package/dist/esm/{useRegistrationFormState-1813bdef.js → useRegistrationFormState-2c090c38.js} +1 -1
  159. package/dist/esm/{useVerificationEmail-cb3d51e3.js → useVerificationEmail-c13c3b51.js} +1 -1
  160. package/dist/esm/{utilities-c9e730ed.js → utilities-77b1e0cc.js} +1 -1
  161. package/dist/esm-es5/ShadowViewAddon-ec5f917e.js +1 -0
  162. package/dist/esm-es5/data-12e6aae1.js +1 -0
  163. package/dist/esm-es5/extractProps-54064fb0.js +1 -0
  164. package/dist/esm-es5/global-96c14d63.js +271 -0
  165. package/dist/esm-es5/index.module-b23fdad8.js +1 -0
  166. package/dist/esm-es5/{keys-db1897ae.js → keys-406491dc.js} +1 -1
  167. package/dist/esm-es5/loader.js +1 -1
  168. package/dist/esm-es5/mint-components.js +1 -1
  169. package/dist/esm-es5/{re-render-7a0c7976.js → re-render-f30aeb6b.js} +1 -1
  170. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
  171. package/dist/esm-es5/sqm-big-stat_45.entry.js +1 -0
  172. package/dist/esm-es5/sqm-close-button.entry.js +1 -1
  173. package/dist/esm-es5/sqm-code-verification.entry.js +1 -1
  174. package/dist/esm-es5/sqm-context-router.entry.js +1 -1
  175. package/dist/esm-es5/sqm-email-verification.entry.js +1 -0
  176. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  177. package/dist/esm-es5/sqm-google-sign-in.entry.js +1 -1
  178. package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
  179. package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
  180. package/dist/esm-es5/{sqm-lead-checkbox-field-view-7cee2b4e.js → sqm-lead-checkbox-field-view-7928db07.js} +1 -1
  181. package/dist/esm-es5/sqm-lead-checkbox-field.entry.js +1 -1
  182. package/dist/esm-es5/{sqm-lead-input-field-view-11a4f9a9.js → sqm-lead-input-field-view-d1b91650.js} +1 -1
  183. package/dist/esm-es5/sqm-lead-input-field.entry.js +1 -1
  184. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  185. package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
  186. package/dist/esm-es5/{sqm-navigation-sidebar-item-view-48e7e0d3.js → sqm-navigation-sidebar-item-view-b3beac5a.js} +1 -1
  187. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  188. package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
  189. package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
  190. package/dist/esm-es5/sqm-password-field.entry.js +1 -1
  191. package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
  192. package/dist/esm-es5/{sqm-portal-email-verification-view-33f5c108.js → sqm-portal-email-verification-view-04528277.js} +1 -1
  193. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  194. package/dist/esm-es5/sqm-portal-forgot-password_6.entry.js +1 -1
  195. package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
  196. package/dist/esm-es5/{sqm-portal-profile-view-88fd6a93.js → sqm-portal-profile-view-b5ea620f.js} +1 -1
  197. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  198. package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
  199. package/dist/esm-es5/{sqm-portal-registration-form-view-9bf30b56.js → sqm-portal-registration-form-view-79265df5.js} +1 -1
  200. package/dist/esm-es5/{sqm-portal-reset-password-view-f8d1689c.js → sqm-portal-reset-password-view-f84c04cf.js} +1 -1
  201. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  202. package/dist/esm-es5/{sqm-portal-verify-email-view-0b70c1b1.js → sqm-portal-verify-email-view-c61536b7.js} +1 -1
  203. package/dist/esm-es5/sqm-qr-code.entry.js +1 -1
  204. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  205. package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -1
  206. package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
  207. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  208. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  209. package/dist/esm-es5/sqm-tab.entry.js +1 -1
  210. package/dist/esm-es5/sqm-tabs.entry.js +1 -1
  211. package/dist/esm-es5/{sqm-text-span-view-4db9e33f.js → sqm-text-span-view-72f43dff.js} +1 -1
  212. package/dist/esm-es5/sqm-text-span.entry.js +1 -1
  213. package/dist/esm-es5/sqm-user-info-form-view-19d81a2b.js +1 -0
  214. package/dist/esm-es5/sqm-widget-verification-controller.entry.js +1 -1
  215. package/dist/esm-es5/sqm-widget-verification.entry.js +1 -0
  216. package/dist/esm-es5/{useChildElements-c26d7347.js → useChildElements-9bccfb72.js} +1 -1
  217. package/dist/esm-es5/{useInstantAccessRegistration-e2392f42.js → useInstantAccessRegistration-69fefed0.js} +1 -1
  218. package/dist/esm-es5/{useLeadFormState-9099c8d4.js → useLeadFormState-dd4e8b08.js} +1 -1
  219. package/dist/esm-es5/{usePayoutStatus-fa504d49.js → usePayoutStatus-46c0c289.js} +2 -2
  220. package/dist/esm-es5/{usePortalRegistrationForm-5844032a.js → usePortalRegistrationForm-62de6fb1.js} +1 -1
  221. package/dist/esm-es5/{useReferralCodes-3cde72d4.js → useReferralCodes-52ca720f.js} +1 -1
  222. package/dist/esm-es5/{useReferralTable-35e6d4c1.js → useReferralTable-92af4133.js} +1 -1
  223. package/dist/esm-es5/{useRegistrationFormState-1813bdef.js → useRegistrationFormState-2c090c38.js} +1 -1
  224. package/dist/esm-es5/{useVerificationEmail-cb3d51e3.js → useVerificationEmail-c13c3b51.js} +1 -1
  225. package/dist/esm-es5/{utilities-c9e730ed.js → utilities-77b1e0cc.js} +1 -1
  226. package/dist/mint-components/mint-components.esm.js +1 -1
  227. package/dist/mint-components/mint-components.js +1 -1
  228. package/dist/mint-components/{p-d01949f7.system.entry.js → p-00b235c5.system.entry.js} +1 -1
  229. package/dist/mint-components/{p-62212b9a.entry.js → p-013564b3.entry.js} +1 -1
  230. package/dist/mint-components/p-02499e08.entry.js +1 -0
  231. package/dist/mint-components/{p-998c989a.system.entry.js → p-027fc3be.system.entry.js} +1 -1
  232. package/dist/mint-components/{p-32d078a3.js → p-035d9b65.js} +1 -1
  233. package/dist/mint-components/{p-e4dbca9a.system.js → p-036a2617.system.js} +1 -1
  234. package/dist/mint-components/p-0382993f.system.entry.js +1 -0
  235. package/dist/mint-components/{p-886fb141.entry.js → p-058aefe1.entry.js} +1 -1
  236. package/dist/mint-components/p-0706cf9e.system.entry.js +1 -0
  237. package/dist/mint-components/p-0797a946.js +1 -0
  238. package/dist/mint-components/{p-f11d29fd.entry.js → p-09348341.entry.js} +1 -1
  239. package/dist/mint-components/{p-991f60fc.entry.js → p-09f7aacd.entry.js} +2 -2
  240. package/dist/mint-components/{p-8ecc8875.js → p-0c0d4065.js} +5 -6
  241. package/dist/mint-components/{p-8f9c1387.js → p-0d83907e.js} +1 -1
  242. package/dist/mint-components/p-1021a49f.system.entry.js +1 -0
  243. package/dist/mint-components/{p-2d3a12f2.entry.js → p-13292317.entry.js} +2 -2
  244. package/dist/mint-components/{p-731c4d33.entry.js → p-13d1b10d.entry.js} +1 -1
  245. package/dist/mint-components/{p-a86ce218.system.js → p-172675ca.system.js} +1 -1
  246. package/dist/mint-components/{p-d355336b.system.js → p-19c441b2.system.js} +1 -1
  247. package/dist/mint-components/{p-1d49dddc.entry.js → p-1d92c169.entry.js} +1 -1
  248. package/dist/mint-components/{p-86381dc7.system.js → p-205cfdcd.system.js} +1 -1
  249. package/dist/mint-components/{p-4723526d.js → p-2668335b.js} +1 -1
  250. package/dist/mint-components/{p-45475cf9.system.entry.js → p-2b4af8e8.system.entry.js} +1 -1
  251. package/dist/mint-components/{p-e9e05970.system.entry.js → p-2d5c2bd4.system.entry.js} +1 -1
  252. package/dist/mint-components/p-30c1ef36.system.js +1 -0
  253. package/dist/mint-components/{p-bcadd021.js → p-3286ef38.js} +1 -1
  254. package/dist/mint-components/{p-0d75a207.js → p-3366b81e.js} +2 -2
  255. package/dist/mint-components/p-38c7775a.js +1 -0
  256. package/dist/mint-components/p-39126430.system.entry.js +1 -0
  257. package/dist/mint-components/p-3adbfd0b.system.js +6 -0
  258. package/dist/mint-components/p-3af3e2c1.entry.js +25 -0
  259. package/dist/mint-components/{p-160828b4.entry.js → p-3bc62ca6.entry.js} +1 -1
  260. package/dist/mint-components/{p-9d6984e7.entry.js → p-40bad95a.entry.js} +2 -2
  261. package/dist/mint-components/{p-00463c83.system.js → p-43c31fd5.system.js} +1 -1
  262. package/dist/mint-components/p-468dd5dd.entry.js +273 -0
  263. package/dist/mint-components/p-4da5a3fe.system.entry.js +1 -0
  264. package/dist/mint-components/{p-608da224.entry.js → p-52674798.entry.js} +1 -1
  265. package/dist/mint-components/p-5492dd51.system.entry.js +1 -0
  266. package/dist/mint-components/p-57dd28bd.system.js +1 -0
  267. package/dist/mint-components/{p-c84a2512.system.js → p-5b1d2866.system.js} +1 -1
  268. package/dist/mint-components/p-5b66d206.system.js +1 -0
  269. package/dist/mint-components/{p-5c9d030a.system.entry.js → p-5b871e38.system.entry.js} +1 -1
  270. package/dist/mint-components/p-5bc5c61e.entry.js +1 -0
  271. package/dist/mint-components/{p-b5fed7c6.entry.js → p-5c4ba8a0.entry.js} +1 -1
  272. package/dist/mint-components/{p-fb4ab5ba.system.entry.js → p-5ce78407.system.entry.js} +1 -1
  273. package/dist/mint-components/{p-9c1b0c8b.entry.js → p-61897e72.entry.js} +1 -1
  274. package/dist/mint-components/{p-52748a87.system.entry.js → p-626b31cb.system.entry.js} +1 -1
  275. package/dist/mint-components/{p-092db51a.js → p-642f2c89.js} +1 -1
  276. package/dist/mint-components/{p-f4a57aed.entry.js → p-653db72e.entry.js} +1 -1
  277. package/dist/mint-components/{p-88c9cc1b.entry.js → p-6668f9f0.entry.js} +1 -1
  278. package/dist/mint-components/{p-f368f04a.system.js → p-686dd5eb.system.js} +1 -1
  279. package/dist/mint-components/p-6c4ad51a.js +1 -0
  280. package/dist/mint-components/p-7265bbcb.system.js +271 -0
  281. package/dist/mint-components/p-738dce27.system.entry.js +1 -0
  282. package/dist/mint-components/{p-379cb9f1.system.js → p-7562cd98.system.js} +1 -1
  283. package/dist/mint-components/{p-7547180f.system.js → p-77b9cde8.system.js} +1 -1
  284. package/dist/mint-components/{p-96e4e6a4.entry.js → p-77fa2383.entry.js} +1 -1
  285. package/dist/mint-components/{p-d5a1c979.system.entry.js → p-782af7ae.system.entry.js} +1 -1
  286. package/dist/mint-components/{p-55627a5c.entry.js → p-7939e4af.entry.js} +1 -1
  287. package/dist/mint-components/{p-9b33e2a7.system.js → p-7b59e13c.system.js} +1 -1
  288. package/dist/mint-components/p-7efb8782.system.js +1 -0
  289. package/dist/mint-components/{p-60085f20.system.entry.js → p-80e116ec.system.entry.js} +1 -1
  290. package/dist/mint-components/{p-370e0d75.js → p-832aea99.js} +1 -1
  291. package/dist/mint-components/{p-36395228.system.js → p-85721089.system.js} +1 -1
  292. package/dist/mint-components/{p-28e0062c.system.js → p-8583ce0c.system.js} +1 -1
  293. package/dist/mint-components/{p-71561bb2.system.entry.js → p-8899ff38.system.entry.js} +1 -1
  294. package/dist/mint-components/p-892797eb.system.entry.js +1 -0
  295. package/dist/mint-components/{p-567a5ded.js → p-8962e023.js} +1 -1
  296. package/dist/mint-components/{p-3461a8cb.entry.js → p-8f2d03c7.entry.js} +1 -1
  297. package/dist/mint-components/{p-357040e6.system.entry.js → p-90833864.system.entry.js} +1 -1
  298. package/dist/mint-components/p-91a96e98.entry.js +1 -0
  299. package/dist/mint-components/{p-7a08d288.system.entry.js → p-9390586b.system.entry.js} +1 -1
  300. package/dist/mint-components/{p-0c43b6ff.entry.js → p-95510f27.entry.js} +1 -1
  301. package/dist/mint-components/{p-9e43f1eb.entry.js → p-982d1f6f.entry.js} +2 -2
  302. package/dist/mint-components/{p-77117f6c.system.js → p-a0c5631b.system.js} +1 -1
  303. package/dist/mint-components/{p-df88dcaa.system.js → p-a4825ec2.system.js} +1 -1
  304. package/dist/mint-components/{p-095b7128.js → p-a4f8abad.js} +1 -1
  305. package/dist/mint-components/{p-21e7079a.system.entry.js → p-a96c9bbb.system.entry.js} +1 -1
  306. package/dist/mint-components/{p-dbdb2a46.system.entry.js → p-aefc6c4f.system.entry.js} +1 -1
  307. package/dist/mint-components/{p-86a70151.entry.js → p-b2b85238.entry.js} +1 -1
  308. package/dist/mint-components/p-b395470f.entry.js +16 -0
  309. package/dist/mint-components/{p-45e2a83a.js → p-b3ad957c.js} +1 -1
  310. package/dist/mint-components/{p-1b0cbbae.entry.js → p-b66f45d1.entry.js} +1 -1
  311. package/dist/mint-components/{p-691d34f1.system.entry.js → p-b96e90a2.system.entry.js} +1 -1
  312. package/dist/mint-components/{p-3c88d2ed.js → p-bab4929e.js} +2 -2
  313. package/dist/mint-components/p-bba16a46.system.entry.js +1 -0
  314. package/dist/mint-components/{p-3c555674.js → p-bc386a7b.js} +1 -1
  315. package/dist/mint-components/{p-a7f72a66.js → p-bee4af5d.js} +1 -1
  316. package/dist/mint-components/{p-16deb1a9.system.entry.js → p-c30d0049.system.entry.js} +1 -1
  317. package/dist/mint-components/p-c459bea0.js +499 -0
  318. package/dist/mint-components/{p-62e1c8b2.system.entry.js → p-c45a929a.system.entry.js} +1 -1
  319. package/dist/mint-components/{p-50d959bd.js → p-c813ec64.js} +1 -1
  320. package/dist/mint-components/{p-5dc9e95b.entry.js → p-c8a8d231.entry.js} +2 -2
  321. package/dist/mint-components/{p-9bd53e4d.system.entry.js → p-c8bcbf8b.system.entry.js} +1 -1
  322. package/dist/mint-components/p-ca098be1.system.js +1 -0
  323. package/dist/mint-components/p-ce394b99.entry.js +9 -0
  324. package/dist/mint-components/{p-95aaf35a.system.entry.js → p-d005df28.system.entry.js} +1 -1
  325. package/dist/mint-components/p-d0993bb9.js +1 -0
  326. package/dist/mint-components/{p-7e36a1ff.js → p-d18dedd4.js} +1 -1
  327. package/dist/mint-components/{p-e1292288.system.entry.js → p-d3b1ab20.system.entry.js} +1 -1
  328. package/dist/mint-components/p-d4f332a7.entry.js +106 -0
  329. package/dist/mint-components/{p-6b1a6b0c.system.js → p-d55c50af.system.js} +1 -1
  330. package/dist/mint-components/{p-b1b8e629.system.js → p-d6193876.system.js} +1 -1
  331. package/dist/mint-components/{p-37658fec.entry.js → p-db0a2afd.entry.js} +1 -1
  332. package/dist/mint-components/p-de0d6fd7.js +49 -0
  333. package/dist/mint-components/{p-ce11858c.js → p-e00ec007.js} +1 -1
  334. package/dist/mint-components/{p-b5c0bad5.system.entry.js → p-e12754f5.system.entry.js} +1 -1
  335. package/dist/mint-components/{p-3218bb1d.entry.js → p-e506bf7f.entry.js} +1 -1
  336. package/dist/mint-components/p-e55aafe9.system.js +1 -0
  337. package/dist/mint-components/{p-f972e5c9.entry.js → p-e5ea43b1.entry.js} +2 -2
  338. package/dist/mint-components/{p-8474aa63.js → p-e6240c72.js} +1 -1
  339. package/dist/mint-components/{p-857a2d77.js → p-e84b874c.js} +1 -1
  340. package/dist/mint-components/p-ea03e50e.system.js +1 -0
  341. package/dist/mint-components/{p-3181e54a.entry.js → p-ec0b649a.entry.js} +1 -1
  342. package/dist/mint-components/{p-2f4d8ab8.system.entry.js → p-f1374258.system.entry.js} +1 -1
  343. package/dist/mint-components/{p-6194855b.system.entry.js → p-f39cf252.system.entry.js} +1 -1
  344. package/dist/mint-components/{p-c8e45671.system.entry.js → p-f4e36adf.system.entry.js} +1 -1
  345. package/dist/mint-components/{p-140e6a15.system.js → p-f55ecf35.system.js} +1 -1
  346. package/dist/mint-components/{p-3c333076.js → p-f581aac7.js} +1 -1
  347. package/dist/mint-components/{p-19293c16.entry.js → p-f6528f8a.entry.js} +1 -1
  348. package/dist/mint-components/{p-247cfbdc.system.entry.js → p-f7ca4cc4.system.entry.js} +1 -1
  349. package/dist/mint-components/{p-0fec43e8.system.js → p-f8026ed6.system.js} +1 -1
  350. package/dist/mint-components/{p-438f6702.js → p-f8a09b0f.js} +152 -152
  351. package/dist/mint-components/{p-3756d0d1.system.entry.js → p-fc284f91.system.entry.js} +1 -1
  352. package/dist/mint-components/{p-6a4496b3.system.entry.js → p-fe1d3cf8.system.entry.js} +1 -1
  353. package/dist/mint-components/p-fe70e20c.entry.js +1 -0
  354. package/dist/mint-components/p-ff118a19.system.js +1 -0
  355. package/dist/types/components/sqm-referral-iframe/sqm-referral-iframe-view.d.ts +1 -0
  356. package/dist/types/components/sqm-referral-iframe/sqm-referral-iframe.d.ts +5 -0
  357. package/dist/types/components/sqm-share-link/ShareLink.stories.d.ts +9 -0
  358. package/dist/types/components/sqm-share-link/UseShareLink.stories.d.ts +6 -0
  359. package/dist/types/components/sqm-share-link/sqm-share-link-view.d.ts +37 -0
  360. package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +140 -2
  361. package/dist/types/components/sqm-share-link/useShareLink.d.ts +27 -4
  362. package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +0 -78
  363. package/dist/types/components/sqm-widget-verification/useWidgetVerification.d.ts +0 -2
  364. package/dist/types/components/tax-and-cash/data.d.ts +0 -1
  365. package/dist/types/components/tax-and-cash/sqm-banking-info-form/formDefinitions.d.ts +0 -2
  366. package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.d.ts +0 -4
  367. package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.d.ts +0 -165
  368. package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.d.ts +0 -7
  369. package/dist/types/components.d.ts +261 -584
  370. package/docs/docs.docx +0 -0
  371. package/docs/raisins.json +1 -1
  372. package/docs/stats.json +122783 -0
  373. package/grapesjs/grapesjs.js +1 -1
  374. package/package.json +2 -2
  375. package/dist/cjs/eventKeys-7af4df4d.js +0 -5
  376. package/dist/cjs/parseStates-d1effc19.js +0 -16
  377. package/dist/cjs/sqm-email-verification_2.cjs.entry.js +0 -854
  378. package/dist/cjs/sqm-partner-info-modal-view-d5c997e6.js +0 -117
  379. package/dist/cjs/utils-a8e0bd9b.js +0 -93
  380. package/dist/collection/components/sqm-partner-info-modal/PartnerInfoModal.stories.js +0 -142
  381. package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal-view.js +0 -111
  382. package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal.js +0 -581
  383. package/dist/collection/components/sqm-partner-info-modal/usePartnerInfoModal.js +0 -269
  384. package/dist/collection/components/sqm-widget-verification/WidgetVerification.stories.js +0 -16
  385. package/dist/esm/eventKeys-f76b6a03.js +0 -3
  386. package/dist/esm/parseStates-ed75e224.js +0 -14
  387. package/dist/esm/sqm-email-verification_2.entry.js +0 -849
  388. package/dist/esm/sqm-partner-info-modal-view-08b7c5f6.js +0 -114
  389. package/dist/esm/utils-8267d3d8.js +0 -85
  390. package/dist/esm-es5/ShadowViewAddon-78b791d2.js +0 -1
  391. package/dist/esm-es5/data-33c16dff.js +0 -1
  392. package/dist/esm-es5/eventKeys-f76b6a03.js +0 -1
  393. package/dist/esm-es5/global-39f55ec2.js +0 -285
  394. package/dist/esm-es5/index.module-cede12c6.js +0 -1
  395. package/dist/esm-es5/parseStates-ed75e224.js +0 -1
  396. package/dist/esm-es5/sqm-big-stat_46.entry.js +0 -1
  397. package/dist/esm-es5/sqm-email-verification_2.entry.js +0 -1
  398. package/dist/esm-es5/sqm-partner-info-modal-view-08b7c5f6.js +0 -1
  399. package/dist/esm-es5/sqm-user-info-form-view-712cd51b.js +0 -1
  400. package/dist/esm-es5/utils-8267d3d8.js +0 -1
  401. package/dist/mint-components/p-037c1a4f.system.entry.js +0 -1
  402. package/dist/mint-components/p-0553e659.js +0 -463
  403. package/dist/mint-components/p-0a126d1b.system.entry.js +0 -1
  404. package/dist/mint-components/p-0dc17c6a.entry.js +0 -9
  405. package/dist/mint-components/p-115dfc03.system.js +0 -1
  406. package/dist/mint-components/p-13f3a647.js +0 -1
  407. package/dist/mint-components/p-1b7dfd6f.system.entry.js +0 -1
  408. package/dist/mint-components/p-1c413a06.system.js +0 -1
  409. package/dist/mint-components/p-28ed2ae9.js +0 -1
  410. package/dist/mint-components/p-28fe7357.system.entry.js +0 -1
  411. package/dist/mint-components/p-38dc2f60.entry.js +0 -1
  412. package/dist/mint-components/p-39840341.js +0 -1
  413. package/dist/mint-components/p-45e72bed.system.entry.js +0 -1
  414. package/dist/mint-components/p-5e26014d.system.js +0 -1
  415. package/dist/mint-components/p-63c299f1.system.js +0 -1
  416. package/dist/mint-components/p-64041ee1.entry.js +0 -291
  417. package/dist/mint-components/p-64f56cc9.system.js +0 -285
  418. package/dist/mint-components/p-6f8dde97.system.js +0 -1
  419. package/dist/mint-components/p-70e34ae1.system.js +0 -6
  420. package/dist/mint-components/p-7d5956ec.system.entry.js +0 -1
  421. package/dist/mint-components/p-842f45b9.js +0 -1
  422. package/dist/mint-components/p-8b258a3e.system.js +0 -1
  423. package/dist/mint-components/p-8e1acd9a.system.js +0 -1
  424. package/dist/mint-components/p-91a00693.entry.js +0 -122
  425. package/dist/mint-components/p-996eb820.entry.js +0 -1
  426. package/dist/mint-components/p-a8891ebd.js +0 -1
  427. package/dist/mint-components/p-a8ecdc44.system.js +0 -1
  428. package/dist/mint-components/p-b077d478.js +0 -1
  429. package/dist/mint-components/p-b2a99637.system.js +0 -1
  430. package/dist/mint-components/p-b2bde2f5.entry.js +0 -1
  431. package/dist/mint-components/p-b451970a.system.entry.js +0 -1
  432. package/dist/mint-components/p-c7535e70.system.entry.js +0 -1
  433. package/dist/mint-components/p-d20188db.js +0 -1
  434. package/dist/mint-components/p-d6714617.entry.js +0 -1
  435. package/dist/mint-components/p-da6c5d98.system.js +0 -1
  436. package/dist/mint-components/p-e95402dc.js +0 -49
  437. package/dist/mint-components/p-ee0f1cf1.system.js +0 -1
  438. package/dist/mint-components/p-fc783749.entry.js +0 -133
  439. package/dist/types/components/sqm-partner-info-modal/PartnerInfoModal.stories.d.ts +0 -12
  440. package/dist/types/components/sqm-partner-info-modal/sqm-partner-info-modal-view.d.ts +0 -44
  441. package/dist/types/components/sqm-partner-info-modal/sqm-partner-info-modal.d.ts +0 -106
  442. package/dist/types/components/sqm-partner-info-modal/usePartnerInfoModal.d.ts +0 -17
  443. package/dist/types/components/sqm-widget-verification/WidgetVerification.stories.d.ts +0 -8
  444. package/shoelace/assets/icons/twitter-x.svg +0 -4
@@ -3,28 +3,26 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-8277cbb3.js');
6
- const global = require('./global-0f8b1267.js');
6
+ const global = require('./global-b7b1b8fe.js');
7
7
  const domContextHooks_module = require('./dom-context-hooks.module-e7b6727c.js');
8
- const index_module = require('./index.module-42d413d9.js');
8
+ const index_module = require('./index.module-f8c8495f.js');
9
9
  const jsonpointer = require('./jsonpointer-11327262.js');
10
10
  const cjs = require('./cjs-1066ec21.js');
11
11
  const utils = require('./utils-6847bc06.js');
12
12
  const JSS = require('./JSS-8503a151.js');
13
13
  require('./mixins-4761d472.js');
14
14
  const GenericTableView = require('./GenericTableView-be5648e4.js');
15
- const reRender = require('./re-render-69bde9ee.js');
16
- const useChildElements = require('./useChildElements-89bc50a9.js');
15
+ const reRender = require('./re-render-72a0ef45.js');
16
+ const useChildElements = require('./useChildElements-041127d7.js');
17
17
  const luxon = require('./luxon-c1ad356a.js');
18
- const useReferralTable = require('./useReferralTable-d3ddfd05.js');
19
- const sqmUserInfoFormView = require('./sqm-user-info-form-view-db47a968.js');
20
- const utils$1 = require('./utils-a8e0bd9b.js');
21
- const data = require('./data-6b5095f8.js');
18
+ const useReferralTable = require('./useReferralTable-6e9de0d5.js');
19
+ const sqmUserInfoFormView = require('./sqm-user-info-form-view-53306f6e.js');
20
+ const data = require('./data-8c8a08f6.js');
22
21
  const keys = require('./keys-cff24974.js');
23
- const eventKeys = require('./eventKeys-7af4df4d.js');
24
- const usePayoutStatus = require('./usePayoutStatus-cf050a03.js');
22
+ const usePayoutStatus = require('./usePayoutStatus-0192fccd.js');
25
23
 
26
24
  function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
27
- 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;
25
+ 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;
28
26
  const { errors, ...formState } = props.states.formState;
29
27
  return {
30
28
  0: {
@@ -33,54 +31,44 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
33
31
  helpText: getValidationErrorMessage({
34
32
  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,
35
33
  label: props.text.beneficiaryAccountNameLabel,
36
- 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,
37
- fieldName: "beneficiaryAccountName",
38
34
  }),
39
35
  })))),
40
36
  },
41
37
  1: {
42
- input: (index.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) && {
38
+ input: (index.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) && {
43
39
  class: "error-input",
44
40
  helpText: getValidationErrorMessage({
45
- 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,
41
+ 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,
46
42
  label: props.text.bankAccountTypeLabel,
47
- 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,
48
- fieldName: "bankAccountType",
49
43
  }),
50
44
  })),
51
45
  index.h("sl-menu-item", { value: "CHECKING" }, props.text.checkingSelectItemLabel),
52
46
  index.h("sl-menu-item", { value: "SAVINGS" }, props.text.savingsSelectItemLabel))),
53
47
  },
54
48
  2: {
55
- input: (index.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) && {
49
+ input: (index.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) && {
56
50
  class: "error-input",
57
51
  helpText: getValidationErrorMessage({
58
- 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,
52
+ 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,
59
53
  label: props.text.bankAccountNumberLabel,
60
- 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,
61
- fieldName: "bankAccountNumber",
62
54
  }),
63
55
  })))),
64
56
  },
65
57
  3: {
66
- input: (index.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) && {
58
+ input: (index.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) && {
67
59
  class: "error-input",
68
60
  helpText: getValidationErrorMessage({
69
- 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,
61
+ 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,
70
62
  label: props.text.ibanLabel,
71
- 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,
72
- fieldName: "bankAccountNumber",
73
63
  }),
74
64
  })))),
75
65
  },
76
66
  4: {
77
- input: (index.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) && {
67
+ input: (index.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) && {
78
68
  class: "error-input",
79
69
  helpText: getValidationErrorMessage({
80
- 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,
70
+ 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,
81
71
  label: props.text.swiftCodeLabel,
82
- 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,
83
- fieldName: "swiftCode",
84
72
  }),
85
73
  })))),
86
74
  },
@@ -90,41 +78,35 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
90
78
  defaultMessage: props.text.routingCodeLabel,
91
79
  }, {
92
80
  bankCountry,
93
- }), 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) && {
81
+ }), 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) && {
94
82
  class: "error-input",
95
83
  helpText: getValidationErrorMessage({
96
- 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,
84
+ 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,
97
85
  label: global.intl.formatMessage({
98
86
  id: "routingCodeErrorText",
99
87
  defaultMessage: props.text.routingCodeLabel,
100
88
  }, {
101
89
  bankCountry,
102
90
  }),
103
- 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,
104
- fieldName: "routingCode",
105
91
  }),
106
92
  })))),
107
93
  },
108
94
  6: {
109
- input: (index.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) && {
95
+ input: (index.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) && {
110
96
  class: "error-input",
111
97
  helpText: getValidationErrorMessage({
112
- 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,
98
+ 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,
113
99
  label: props.text.bankNameLabel,
114
- 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,
115
- fieldName: "bankName",
116
100
  }),
117
101
  })))),
118
102
  },
119
103
  7: {
120
104
  input: [
121
- index.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) && {
105
+ index.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) && {
122
106
  class: "error-input",
123
107
  helpText: getValidationErrorMessage({
124
- 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,
108
+ 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,
125
109
  label: props.text.classificationLabel,
126
- 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,
127
- fieldName: "beneficiaryClassification",
128
110
  }),
129
111
  })),
130
112
  index.h("sl-menu-item", { value: "BUSINESS" }, props.text.businessSelectItemLabel),
@@ -135,122 +117,100 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
135
117
  defaultMessage: props.text.taxPayerIdLabel,
136
118
  }, {
137
119
  bankCountry,
138
- }), 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) && {
120
+ }), 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) && {
139
121
  class: "error-input",
140
122
  helpText: getValidationErrorMessage({
141
- 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,
123
+ 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,
142
124
  label: props.text.taxPayerIdLabel,
143
- 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,
144
- fieldName: "taxPayerId",
145
125
  }),
146
126
  }))),
147
127
  ],
148
128
  },
149
129
  8: {
150
- input: (index.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) && {
130
+ input: (index.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) && {
151
131
  class: "error-input",
152
132
  helpText: getValidationErrorMessage({
153
- 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,
133
+ 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,
154
134
  label: props.text.classificationCPFLabel,
155
- 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,
156
- fieldName: "beneficiaryClassification",
157
135
  }),
158
136
  })),
159
137
  index.h("sl-menu-item", { value: "CPF" }, "CPF"),
160
138
  index.h("sl-menu-item", { value: "CNPJ" }, "CNPJ"))),
161
139
  },
162
140
  9: {
163
- input: (index.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) && {
141
+ input: (index.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) && {
164
142
  class: "error-input",
165
143
  helpText: getValidationErrorMessage({
166
- 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,
144
+ 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,
167
145
  label: props.text.patronymicNameLabel,
168
- 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,
169
- fieldName: "patronymicName",
170
146
  }),
171
147
  })))),
172
148
  },
173
149
  10: {
174
- input: (index.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) && {
150
+ input: (index.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) && {
175
151
  class: "error-input",
176
152
  helpText: getValidationErrorMessage({
177
- 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,
153
+ 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,
178
154
  label: props.text.voCodeLabel,
179
- 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,
180
- fieldName: "voCode",
181
155
  }),
182
156
  })))),
183
157
  },
184
158
  11: {
185
- input: (index.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) && {
159
+ input: (index.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) && {
186
160
  class: "error-input",
187
161
  helpText: getValidationErrorMessage({
188
- 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,
162
+ 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,
189
163
  label: props.text.agencyCodeLabel,
190
- 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,
191
- fieldName: "agencyCode",
192
164
  }),
193
165
  })))),
194
166
  },
195
167
  12: {
196
168
  input: [
197
- index.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) && {
169
+ index.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) && {
198
170
  class: "error-input",
199
171
  helpText: getValidationErrorMessage({
200
- 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,
172
+ 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,
201
173
  label: props.text.bankAddressLabel,
202
- 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,
203
- fieldName: "bankAddress",
204
174
  }),
205
175
  }))),
206
- index.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) && {
176
+ index.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) && {
207
177
  class: "error-input",
208
178
  helpText: getValidationErrorMessage({
209
- 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,
179
+ 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,
210
180
  label: props.text.bankCityLabel,
211
- 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,
212
- fieldName: "bankCity",
213
181
  }),
214
182
  }))),
215
- index.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) && {
183
+ index.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) && {
216
184
  class: "error-input",
217
185
  helpText: getValidationErrorMessage({
218
- 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,
186
+ 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,
219
187
  label: props.text.bankStateLabel,
220
- 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,
221
- fieldName: "bankState",
222
188
  }),
223
189
  }))),
224
- index.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) && {
190
+ index.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) && {
225
191
  class: "error-input",
226
192
  helpText: getValidationErrorMessage({
227
- 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,
193
+ 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,
228
194
  label: props.text.bankPostalCodeLabel,
229
- 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,
230
- fieldName: "bankPostalCode",
231
195
  }),
232
196
  }))),
233
197
  ],
234
198
  },
235
199
  13: {
236
- input: (index.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) && {
200
+ input: (index.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) && {
237
201
  class: "error-input",
238
202
  helpText: getValidationErrorMessage({
239
- 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,
203
+ 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,
240
204
  label: props.text.branchCodeLabel,
241
- 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,
242
- fieldName: "branchCode",
243
205
  }),
244
206
  })))),
245
207
  },
246
208
  14: {
247
- input: (index.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) && {
209
+ input: (index.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) && {
248
210
  class: "error-input",
249
211
  helpText: getValidationErrorMessage({
250
- 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,
212
+ 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,
251
213
  label: props.text.classificationLabel,
252
- 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,
253
- fieldName: "beneficiaryClassification",
254
214
  }),
255
215
  })),
256
216
  index.h("sl-menu-item", { value: "BUSINESS" }, props.text.businessSelectItemLabel),
@@ -843,95 +803,6 @@ const paypalFeeMap = {
843
803
  const ACH_PAYMENT_METHOD = 3;
844
804
  const WIRE_PAYMENT_METHOD = 5;
845
805
  const PAYPAL_PAYMENT_METHOD = 7;
846
- /**
847
- * Maps GraphQL validation error field names to form field names.
848
- */
849
- const API_FIELD_TO_FORM_FIELD = {
850
- // bankProvinceState → form uses bankState
851
- bankProvinceState: "bankState",
852
- };
853
- /**
854
- * Maps Impact API error code paths (from validationErrors[].errorPath) to short,
855
- * readable frontend error codes used in the ICU select props.
856
- */
857
- const API_ERROR_PATH_TO_FRONTEND = {
858
- // Beneficiary account name
859
- "withdrawal.settings.error.empty_beneficiaryname": "empty",
860
- "withdrawal.settings.error.invalid_character_beneficiaryname": "invalidCharacters",
861
- "withdrawal.settings.error.numeric_beneficiaryname": "numeric",
862
- "withdrawal_settings.error.beneficiaryname.size": "tooLong",
863
- "withdrawal.settings.error.non_english_beneficiaryname": "nonEnglish",
864
- "withdrawal_settings.error.business_beneficiaryname_match": "businessNameMismatch",
865
- "withdrawal_settings.error.beneficiaryname_match": "nameMismatch",
866
- "withdrawal_settings.error.business_checkpayeename_match": "businessPayeeMismatch",
867
- "withdrawal_settings.error.checkpayeename_match": "payeeMismatch",
868
- // Bank account number
869
- "withdrawal.settings.error.accountnumber.empty": "empty",
870
- "withdrawal.settings.error.accountnumber.uk": "invalidUk",
871
- "withdrawal.settings.error.bankaccount.invalid": "invalid",
872
- // IBAN
873
- "withdrawal.settings.error.iban": "ibanEmpty",
874
- "withdrawal.settings.error.iban.alphanumeric": "ibanAlphanumeric",
875
- "withdrawal.settings.error.iban.invalid": "ibanInvalid",
876
- "withdrawal.settings.error.iban.uk.country.mismatch": "ibanCountryMismatch",
877
- // Routing code
878
- "withdrawal.settings.error.bsbNumber": "invalidBsb",
879
- "withdrawal.settings.error.sortcode": "invalidSortCode",
880
- "withdrawal.settings.error.routingNumber": "empty",
881
- "withdrawal.settings.error.routingcode": "invalid",
882
- // SWIFT / BIC
883
- "withdrawal.settings.error.bic": "empty",
884
- "withdrawal.settings.error.bic.alphanumeric": "alphanumeric",
885
- "withdrawal.settings.error.bic.invalid": "invalid",
886
- // Bank account type
887
- "global.error.invalid.accounttype": "empty",
888
- // Bank name
889
- "withdrawal.settings.error.bankName": "empty",
890
- // Tax payer ID
891
- "withdrawal.settings.error.taxPayerId": "empty",
892
- "withdrawal.settings.error.taxPayerId.ar": "emptyAr",
893
- "withdrawal.settings.error.taxPayerId.kr": "emptyKr",
894
- "withdrawal.settings.error.taxPayerId.alphanumeric": "alphanumeric",
895
- "withdrawal.settings.error.taxPayerId.alphanumeric.ar": "alphanumericAr",
896
- "withdrawal.settings.error.taxPayerId.alphanumeric.kr": "alphanumericKr",
897
- "withdrawal.settings.error.taxPayerId.invalid": "invalid",
898
- "withdrawal.settings.error.taxPayerId.invalid.ar": "invalidAr",
899
- "withdrawal.settings.error.taxPayerId.invalid.kr": "invalidKr",
900
- "withdrawal.settings.error.taxPayerId.invalid.kzt": "invalidKzt",
901
- "withdrawal.settings.error.taxPayerId.cnpj": "cnpjTooShort",
902
- "withdrawal.settings.error.taxPayerId.cpf": "cpfTooShort",
903
- // Patronymic name
904
- "withdrawal.settings.error.patronymicName": "empty",
905
- "withdrawal.settings.error.patronymicName.alphanumeric": "alphanumeric",
906
- // VO code
907
- "withdrawal.settings.error.voCode": "empty",
908
- "withdrawal.settings.error.voCode.alphanumeric": "alphanumeric",
909
- // Agency code
910
- "withdrawal.settings.error.agencyCode": "empty",
911
- "withdrawal.settings.error.agencyCode.alphanumeric": "alphanumeric",
912
- "withdrawal.settings.error.agencyCode.length": "tooShort",
913
- // Bank address fields
914
- "withdrawal.settings.error.bankAddress": "empty",
915
- "withdrawal.settings.error.bankCity": "empty",
916
- "withdrawal.settings.error.bankProvinceState": "empty",
917
- "withdrawal.settings.error.bankPostalCode": "empty",
918
- // Branch code / name
919
- "withdrawal.settings.error.branchCode": "invalid",
920
- "withdrawal.settings.error.branchName": "empty",
921
- // Classification code
922
- "withdrawal.settings.error.classificationCode.invalid": "empty",
923
- "withdrawal.settings.error.classificationCode.invalid.kzt": "invalidKzt",
924
- // PayPal
925
- "payment.error.email": "empty",
926
- "payment.error.paypal_not_supported": "unsupportedCurrency",
927
- "payment.error.email.invalid": "invalidEmail",
928
- "payment.error.paypal_verification_incomplete": "verificationIncomplete",
929
- // Payment schedule
930
- "payment.error.no_threshold": "empty",
931
- "payment.error.invalid_threshold": "invalid",
932
- "payment.error.no_dayOfMonth": "empty",
933
- "payment.error.invalid_dayOfMonth": "invalid",
934
- };
935
806
  function getFormInputs({ bitset, formMap }) {
936
807
  // Convert bitset to binary representation
937
808
  const binary = bitset.toString(2).padStart(Object.keys(formMap).length, "0");
@@ -955,7 +826,6 @@ const SAVE_WITHDRAWAL_SETTINGS = index_module.dist.gql `
955
826
  validationErrors {
956
827
  field
957
828
  message
958
- code
959
829
  }
960
830
  }
961
831
  }
@@ -971,7 +841,6 @@ const UPDATE_WITHDRAWAL_SETTINGS = index_module.dist.gql `
971
841
  validationErrors {
972
842
  field
973
843
  message
974
- code
975
844
  }
976
845
  }
977
846
  }
@@ -1144,13 +1013,10 @@ function useBankingInfoForm(props) {
1144
1013
  else if (!success) {
1145
1014
  console.error("Validation failed: ", validationErrors);
1146
1015
  const mappedValidationErrors = validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.reduce((agg, error) => {
1147
- const formField = API_FIELD_TO_FORM_FIELD[error.field] || error.field;
1148
- const errorCode = API_ERROR_PATH_TO_FRONTEND[error.errorPath] || error.errorPath;
1149
1016
  return {
1150
1017
  ...agg,
1151
- [formField]: {
1018
+ [error.field]: {
1152
1019
  type: "invalid",
1153
- errorCode,
1154
1020
  },
1155
1021
  };
1156
1022
  }, {});
@@ -1161,7 +1027,7 @@ function useBankingInfoForm(props) {
1161
1027
  return;
1162
1028
  }
1163
1029
  // Fire form change event
1164
- window.dispatchEvent(new Event(eventKeys.TAX_FORM_UPDATED_EVENT_KEY));
1030
+ window.dispatchEvent(new Event(usePayoutStatus.TAX_FORM_UPDATED_EVENT_KEY));
1165
1031
  await refetch();
1166
1032
  setStep("/dashboard");
1167
1033
  }
@@ -1565,156 +1431,6 @@ const BankingInfoForm = class {
1565
1431
  * @uiName Information modal button text
1566
1432
  */
1567
1433
  this.modalButtonText = "I understand, update my information";
1568
- // ──────────────────────────────────────────────────────────────────
1569
- // Per-field validation error messages
1570
- // Each prop uses ICU select on {errorCode} to pick the right message.
1571
- // Error codes are short frontend keys mapped from the API error codes.
1572
- // The `other` branch displays the raw API message directly via {errorCode},
1573
- // which is already human-readable English (e.g. "Invalid Routing Code").
1574
- // ──────────────────────────────────────────────────────────────────
1575
- /**
1576
- * Error messages for the beneficiary / account holder name field.
1577
- * Supports error codes: empty, invalidCharacters, numeric, tooLong,
1578
- * nonEnglish, businessNameMismatch, nameMismatch, businessPayeeMismatch, payeeMismatch
1579
- * @uiName Beneficiary account name error
1580
- * @uiWidget textArea
1581
- */
1582
- 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}}}";
1583
- /**
1584
- * Error messages for the bank account number / IBAN field.
1585
- * Supports error codes: empty, invalidUk, invalid, ibanEmpty,
1586
- * ibanAlphanumeric, ibanInvalid, ibanCountryMismatch
1587
- * @uiName Bank account number / IBAN error
1588
- * @uiWidget textArea
1589
- */
1590
- 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}}}";
1591
- /**
1592
- * Error messages for the routing code / sort code / BSB field.
1593
- * Supports error codes: invalidBsb, invalidSortCode, empty, invalid
1594
- * @uiName Routing code error
1595
- * @uiWidget textArea
1596
- */
1597
- 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}}}";
1598
- /**
1599
- * Error messages for the SWIFT / BIC code field.
1600
- * Supports error codes: empty, alphanumeric, invalid
1601
- * @uiName SWIFT code error
1602
- * @uiWidget textArea
1603
- */
1604
- 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}}}";
1605
- /**
1606
- * Error messages for the bank account type field.
1607
- * Supports error codes: empty
1608
- * @uiName Bank account type error
1609
- * @uiWidget textArea
1610
- */
1611
- this.bankAccountTypeError = "{errorCode, select, empty {Bank account type is required} other {{errorCode}}}";
1612
- /**
1613
- * Error messages for the bank name field.
1614
- * Supports error codes: empty
1615
- * @uiName Bank name error
1616
- * @uiWidget textArea
1617
- */
1618
- this.bankNameError = "{errorCode, select, empty {Bank name is required} other {{errorCode}}}";
1619
- /**
1620
- * Error messages for the tax payer ID / classification entity field.
1621
- * Supports error codes: empty, emptyAr, emptyKr, alphanumeric, alphanumericAr,
1622
- * alphanumericKr, invalid, invalidAr, invalidKr, invalidKzt, cnpjTooShort, cpfTooShort
1623
- * @uiName Tax payer ID error
1624
- * @uiWidget textArea
1625
- */
1626
- 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}}}";
1627
- /**
1628
- * Error messages for the patronymic name field.
1629
- * Supports error codes: empty, alphanumeric
1630
- * @uiName Patronymic name error
1631
- * @uiWidget textArea
1632
- */
1633
- this.patronymicNameError = "{errorCode, select, empty {Patronymic name is required} alphanumeric {Patronymic name must contain only letters and numbers} other {{errorCode}}}";
1634
- /**
1635
- * Error messages for the VO code field.
1636
- * Supports error codes: empty, alphanumeric
1637
- * @uiName VO code error
1638
- * @uiWidget textArea
1639
- */
1640
- this.voCodeError = "{errorCode, select, empty {VO code is required} alphanumeric {VO code must contain only letters and numbers} other {{errorCode}}}";
1641
- /**
1642
- * Error messages for the agency code field.
1643
- * Supports error codes: empty, alphanumeric, tooShort
1644
- * @uiName Agency code error
1645
- * @uiWidget textArea
1646
- */
1647
- 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}}}";
1648
- /**
1649
- * Error messages for the bank address field.
1650
- * Supports error codes: empty
1651
- * @uiName Bank address error
1652
- * @uiWidget textArea
1653
- */
1654
- this.bankAddressError = "{errorCode, select, empty {Bank address is required} other {{errorCode}}}";
1655
- /**
1656
- * Error messages for the bank city field.
1657
- * Supports error codes: empty
1658
- * @uiName Bank city error
1659
- * @uiWidget textArea
1660
- */
1661
- this.bankCityError = "{errorCode, select, empty {Bank city is required} other {{errorCode}}}";
1662
- /**
1663
- * Error messages for the bank province/state field.
1664
- * Supports error codes: empty
1665
- * @uiName Bank province/state error
1666
- * @uiWidget textArea
1667
- */
1668
- this.bankStateError = "{errorCode, select, empty {Bank province/state is required} other {{errorCode}}}";
1669
- /**
1670
- * Error messages for the bank postal code field.
1671
- * Supports error codes: empty
1672
- * @uiName Bank postal code error
1673
- * @uiWidget textArea
1674
- */
1675
- this.bankPostalCodeError = "{errorCode, select, empty {Bank postal code is required} other {{errorCode}}}";
1676
- /**
1677
- * Error messages for the branch code field.
1678
- * Supports error codes: invalid
1679
- * @uiName Branch code error
1680
- * @uiWidget textArea
1681
- */
1682
- this.branchCodeError = "{errorCode, select, invalid {Branch code is invalid} other {{errorCode}}}";
1683
- /**
1684
- * Error messages for the branch name field.
1685
- * Supports error codes: empty
1686
- * @uiName Branch name error
1687
- * @uiWidget textArea
1688
- */
1689
- this.branchNameError = "{errorCode, select, empty {Branch name is required} other {{errorCode}}}";
1690
- /**
1691
- * Error messages for the classification code field.
1692
- * Supports error codes: empty, invalidKzt
1693
- * @uiName Classification code error
1694
- * @uiWidget textArea
1695
- */
1696
- this.classificationCodeError = "{errorCode, select, empty {Classification code is required} invalidKzt {Classification code must be exactly 2 characters} other {{errorCode}}}";
1697
- /**
1698
- * Error messages for the PayPal email field.
1699
- * Supports error codes: empty, unsupportedCurrency, invalidEmail, verificationIncomplete
1700
- * @uiName PayPal email error
1701
- * @uiWidget textArea
1702
- */
1703
- 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}}}";
1704
- /**
1705
- * Error messages for the payment threshold field.
1706
- * Supports error codes: empty, invalid
1707
- * @uiName Payment threshold error
1708
- * @uiWidget textArea
1709
- */
1710
- this.paymentThresholdError = "{errorCode, select, empty {Payment threshold is required} invalid {Payment threshold is invalid} other {{errorCode}}}";
1711
- /**
1712
- * Error messages for the payment day field.
1713
- * Supports error codes: empty, invalid
1714
- * @uiName Payment day error
1715
- * @uiWidget textArea
1716
- */
1717
- this.paymentDayError = "{errorCode, select, empty {Payment day is required} invalid {Payment day must be the 1st or the 15th} other {{errorCode}}}";
1718
1434
  domContextHooks_module.h$1(this);
1719
1435
  }
1720
1436
  disconnectedCallback() { }
@@ -1728,54 +1444,17 @@ const BankingInfoForm = class {
1728
1444
  loadingErrorAlertDescription: props.loadingErrorAlertDescription,
1729
1445
  loadingErrorAlertHeader: props.loadingErrorAlertHeader,
1730
1446
  },
1731
- errorMessages: {
1732
- beneficiaryAccountName: props.beneficiaryAccountNameError,
1733
- bankAccountNumber: props.bankAccountNumberError,
1734
- routingCode: props.routingCodeError,
1735
- swiftCode: props.swiftCodeError,
1736
- bankAccountType: props.bankAccountTypeError,
1737
- bankName: props.bankNameError,
1738
- taxPayerId: props.taxPayerIdError,
1739
- patronymicName: props.patronymicNameError,
1740
- voCode: props.voCodeError,
1741
- agencyCode: props.agencyCodeError,
1742
- bankAddress: props.bankAddressError,
1743
- bankCity: props.bankCityError,
1744
- bankState: props.bankStateError,
1745
- bankPostalCode: props.bankPostalCodeError,
1746
- branchCode: props.branchCodeError,
1747
- branchName: props.branchNameError,
1748
- beneficiaryClassification: props.classificationCodeError,
1749
- paypalEmailAddress: props.paypalEmailError,
1750
- paymentThreshold: props.paymentThresholdError,
1751
- paymentDay: props.paymentDayError,
1752
- },
1753
1447
  };
1754
1448
  }
1755
1449
  render() {
1756
- 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;
1450
+ 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;
1757
1451
  const props = index_module.isDemo()
1758
1452
  ? useDemoBankingInfoForm(this)
1759
1453
  : useBankingInfoForm(this);
1760
1454
  const { errors } = props.states.formState;
1761
1455
  const fieldRequiredError = this.fieldRequiredError;
1762
1456
  const fieldInvalidError = this.fieldInvalidError;
1763
- function getValidationErrorMessage({ type, label, errorCode, fieldName, }) {
1764
- var _a;
1765
- // If we have a specific error code from the API, try to use
1766
- // the per-field ICU error message template for a rich message
1767
- if (type === "invalid" && errorCode && fieldName) {
1768
- const errorTemplate = (_a = props.text.errorMessages) === null || _a === void 0 ? void 0 : _a[fieldName];
1769
- if (errorTemplate) {
1770
- return global.intl.formatMessage({
1771
- id: `fieldError-${fieldName}-${errorCode}`,
1772
- defaultMessage: errorTemplate,
1773
- }, {
1774
- errorCode,
1775
- fieldName: label,
1776
- });
1777
- }
1778
- }
1457
+ function getValidationErrorMessage({ type, label, }) {
1779
1458
  if (type === "required") {
1780
1459
  return global.intl.formatMessage({
1781
1460
  id: `requiredText-${label}`,
@@ -1858,45 +1537,37 @@ const BankingInfoForm = class {
1858
1537
  helpText: getValidationErrorMessage({
1859
1538
  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,
1860
1539
  label: props.text.bankLocationLabel,
1861
- 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,
1862
- fieldName: "bankCountry",
1863
1540
  }),
1864
1541
  })), index.h("sl-input", { disabled: props.states.saveLoading, class: sheet.classes.SearchInput, placeholder: this.searchForCountryText, onKeyDown: (e) => {
1865
1542
  // Stop shoelace intercepting key presses
1866
1543
  e.stopPropagation();
1867
1544
  }, "onSl-input": (e) => {
1868
1545
  props.callbacks.setCountrySearch(e.target.value);
1869
- } }), (_f = props.states.countries) === null || _f === void 0 ? void 0 :
1870
- _f.map((country) => {
1546
+ } }), (_d = props.states.countries) === null || _d === void 0 ? void 0 :
1547
+ _d.map((country) => {
1871
1548
  return (index.h("sl-menu-item", { value: country.countryCode }, country.displayName));
1872
- }), (_h = (_g = props.states) === null || _g === void 0 ? void 0 : _g.allCountries) === null || _h === void 0 ? void 0 :
1873
- _h.map((c) => (index.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } }, c.displayName))))),
1549
+ }), (_f = (_e = props.states) === null || _e === void 0 ? void 0 : _e.allCountries) === null || _f === void 0 ? void 0 :
1550
+ _f.map((c) => (index.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } }, c.displayName))))),
1874
1551
  paymentMethodSlot: (index.h("sl-input", { key: "paymentMethod", label: props.text.paymentMethod, placeholder: props.states.paymentMethodFeeLabel, disabled: true })),
1875
- paymentThresholdSelectSlot: (index.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) && {
1552
+ paymentThresholdSelectSlot: (index.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) && {
1876
1553
  class: "error-input",
1877
1554
  helpText: getValidationErrorMessage({
1878
- 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,
1555
+ 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,
1879
1556
  label: props.text.paymentThresholdSelectLabel,
1880
- 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,
1881
- fieldName: "paymentThreshold",
1882
1557
  }),
1883
1558
  })), props.states.thresholds.map((t) => (index.h("sl-menu-item", { value: t }, `${props.states.currency}${t}`))))),
1884
- paymentFixedDaySelectSlot: (index.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) && {
1559
+ paymentFixedDaySelectSlot: (index.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) && {
1885
1560
  class: "error-input",
1886
1561
  helpText: getValidationErrorMessage({
1887
- 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,
1562
+ 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,
1888
1563
  label: props.text.paymentDaySelectLabel,
1889
- 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,
1890
- fieldName: "paymentDay",
1891
1564
  }),
1892
1565
  })), index.h("sl-menu-item", { value: "1" }, props.text.paymentDayFirstOfMonthLabelText), index.h("sl-menu-item", { value: "15" }, props.text.paymentDayFifteenthOfMonthLabelText))),
1893
- paypalInputSlot: (index.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) && {
1566
+ paypalInputSlot: (index.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) && {
1894
1567
  class: "error-input",
1895
1568
  helpText: getValidationErrorMessage({
1896
- 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,
1569
+ 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,
1897
1570
  label: props.text.payPalInputLabel,
1898
- 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,
1899
- fieldName: "paypalEmailAddress",
1900
1571
  }),
1901
1572
  })))),
1902
1573
  } })));
@@ -2045,7 +1716,7 @@ function useDocusignForm(props) {
2045
1716
  const [showExitButton, setShowExitButton] = domContextHooks_module.useState(false);
2046
1717
  const [showModal, setShowModal] = domContextHooks_module.useState(true);
2047
1718
  // Only look at current document if it's valid (same as required type)
2048
- const existingDocumentType = utils$1.validTaxDocument(publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType) && (publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument)
1719
+ const existingDocumentType = data.validTaxDocument(publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType) && (publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument)
2049
1720
  ? publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType : undefined;
2050
1721
  const actualDocumentType = existingDocumentType ||
2051
1722
  getDocumentType(participantType) || (publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType);
@@ -2103,7 +1774,7 @@ function useDocusignForm(props) {
2103
1774
  if (!result.completeImpactPublisherTaxDocument.success)
2104
1775
  throw new Error();
2105
1776
  // Fire form change event
2106
- window.dispatchEvent(new Event(eventKeys.TAX_FORM_UPDATED_EVENT_KEY));
1777
+ window.dispatchEvent(new Event(usePayoutStatus.TAX_FORM_UPDATED_EVENT_KEY));
2107
1778
  setShowExitButton(true);
2108
1779
  }
2109
1780
  catch (e) {
@@ -2143,7 +1814,7 @@ function useDocusignForm(props) {
2143
1814
  },
2144
1815
  docusignStatus,
2145
1816
  documentType: actualDocumentType,
2146
- documentTypeString: utils$1.taxTypeToName(actualDocumentType),
1817
+ documentTypeString: data.taxTypeToName(actualDocumentType),
2147
1818
  showExitButton,
2148
1819
  showModal,
2149
1820
  },
@@ -2872,32 +2543,6 @@ const CONNECT_PARTNER = index_module.dist.gql `
2872
2543
  }
2873
2544
  }
2874
2545
  `;
2875
- const COMPLETE_PARTNER = index_module.dist.gql `
2876
- mutation completeImpactConnection($vars: ImpactConnectionInput!) {
2877
- completeImpactConnection(impactConnectionInput: $vars) {
2878
- success
2879
- validationErrors {
2880
- field
2881
- message
2882
- }
2883
- user {
2884
- id
2885
- accountId
2886
- impactConnection {
2887
- connected
2888
- publisher {
2889
- brandedSignup
2890
- requiredTaxDocumentType
2891
- currentTaxDocument {
2892
- type
2893
- status
2894
- }
2895
- }
2896
- }
2897
- }
2898
- }
2899
- }
2900
- `;
2901
2546
  function getOption(countries, countryCode) {
2902
2547
  if (!countries)
2903
2548
  return;
@@ -2916,12 +2561,11 @@ function useIndirectTaxForm(props) {
2916
2561
  const context = index_module.Fn(data.TAX_FORM_CONTEXT_NAMESPACE);
2917
2562
  const [step, setStep] = index_module.Pn(data.TAX_CONTEXT_NAMESPACE);
2918
2563
  const [connectImpactPartner, { loading: connectLoading, errors: connectErrors },] = index_module.$e(CONNECT_PARTNER);
2919
- const [completeImpactPartner, { loading: completeLoading, errors: completeErrors },] = index_module.$e(COMPLETE_PARTNER);
2920
2564
  const userForm = index_module.Fn(data.USER_FORM_CONTEXT_NAMESPACE);
2921
2565
  const { data: userData, refetch, errors: userError, } = index_module.$n(data.USER_QUERY_NAMESPACE);
2922
2566
  const { data: _countriesRes, loading: countriesLoading } = index_module.$n(data.COUNTRIES_QUERY_NAMESPACE);
2923
2567
  const intlLocale = (locale === null || locale === void 0 ? void 0 : locale.replace("_", "-")) || "en";
2924
- const _countries = domContextHooks_module.useMemo(() => { var _a, _b; return (_b = (_a = _countriesRes === null || _countriesRes === void 0 ? void 0 : _countriesRes.impactPayoutCountries) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.map((country) => utils$1.getCountryObj({ countryCode: country.countryCode, locale: intlLocale })); }, [(_a = _countriesRes === null || _countriesRes === void 0 ? void 0 : _countriesRes.impactPayoutCountries) === null || _a === void 0 ? void 0 : _a.data]);
2568
+ const _countries = domContextHooks_module.useMemo(() => { var _a, _b; return (_b = (_a = _countriesRes === null || _countriesRes === void 0 ? void 0 : _countriesRes.impactPayoutCountries) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.map((country) => data.getCountryObj({ countryCode: country.countryCode, locale: intlLocale })); }, [(_a = _countriesRes === null || _countriesRes === void 0 ? void 0 : _countriesRes.impactPayoutCountries) === null || _a === void 0 ? void 0 : _a.data]);
2925
2569
  const [loading, setLoading] = domContextHooks_module.useState(false);
2926
2570
  const [formState, setFormState] = domContextHooks_module.useState({});
2927
2571
  const [errors, setErrors] = domContextHooks_module.useState({});
@@ -2979,7 +2623,7 @@ function useIndirectTaxForm(props) {
2979
2623
  setFormState((p) => ({ ...p, [field]: value }));
2980
2624
  };
2981
2625
  async function connectPartner(formData) {
2982
- var _a, _b, _c, _d, _e, _f, _g;
2626
+ var _a, _b, _c, _d, _e;
2983
2627
  const vars = {
2984
2628
  user: {
2985
2629
  id: user.id,
@@ -3001,33 +2645,22 @@ function useIndirectTaxForm(props) {
3001
2645
  additionalTaxId: formData.qstNumber,
3002
2646
  withholdingTaxId: formData.subRegionTaxNumber,
3003
2647
  };
3004
- //AL: TODO completePartnerMutation might change
3005
- let result = null;
3006
- let connectionResult;
3007
- 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) {
3008
- result = await completeImpactPartner({
3009
- vars,
3010
- });
3011
- connectionResult = (_c = result) === null || _c === void 0 ? void 0 : _c.completeImpactConnection;
3012
- }
3013
- else {
3014
- result = await connectImpactPartner({
3015
- vars,
3016
- });
3017
- connectionResult = (_d = result) === null || _d === void 0 ? void 0 : _d.createImpactConnection;
3018
- }
3019
- if (!result || ((_e = result) === null || _e === void 0 ? void 0 : _e.message))
2648
+ const result = await connectImpactPartner({
2649
+ vars,
2650
+ });
2651
+ if (!result || ((_a = result) === null || _a === void 0 ? void 0 : _a.message))
3020
2652
  throw new Error();
3021
- if (!(connectionResult === null || connectionResult === void 0 ? void 0 : connectionResult.success)) {
2653
+ if (!((_b = result.createImpactConnection) === null || _b === void 0 ? void 0 : _b.success)) {
3022
2654
  // Output backend errors to console for now
3023
- console.error("Failed to create Impact connection: ", connectionResult === null || connectionResult === void 0 ? void 0 : connectionResult.validationErrors);
2655
+ console.error("Failed to create Impact connection: ", result.createImpactConnection.validationErrors);
3024
2656
  throw new Error();
3025
2657
  }
3026
2658
  await refetch();
3027
- 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;
3028
- const hasValidCurrentDocument = utils$1.validTaxDocument(resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) && (resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.currentTaxDocument);
2659
+ const resultPublisher = (_e = (_d = (_c = result
2660
+ .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;
2661
+ const hasValidCurrentDocument = data.validTaxDocument(resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) && (resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.currentTaxDocument);
3029
2662
  // Fire form change event
3030
- window.dispatchEvent(new Event(eventKeys.TAX_FORM_UPDATED_EVENT_KEY));
2663
+ window.dispatchEvent(new Event(usePayoutStatus.TAX_FORM_UPDATED_EVENT_KEY));
3031
2664
  return {
3032
2665
  resultPublisher,
3033
2666
  hasValidCurrentDocument,
@@ -3090,8 +2723,8 @@ function useIndirectTaxForm(props) {
3090
2723
  states: {
3091
2724
  step: step === null || step === void 0 ? void 0 : step.replace("/", ""),
3092
2725
  hideSteps: context.hideSteps,
3093
- disabled: loading || countriesLoading || connectLoading || completeLoading,
3094
- loading: loading || connectLoading || countriesLoading || completeLoading,
2726
+ disabled: loading || countriesLoading || connectLoading,
2727
+ loading: loading || connectLoading || countriesLoading,
3095
2728
  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),
3096
2729
  loadingError: !!(userError === null || userError === void 0 ? void 0 : userError.message),
3097
2730
  formState: {
@@ -3183,7 +2816,7 @@ const IndirectTaxForm = class {
3183
2816
  /**
3184
2817
  * @uiName Indirect tax number field label
3185
2818
  */
3186
- this.indirectTaxNumber = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}}";
2819
+ 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}}";
3187
2820
  /**
3188
2821
  * Displayed to participants registered for QST.
3189
2822
  * @uiName QST number field label
@@ -3222,7 +2855,7 @@ const IndirectTaxForm = class {
3222
2855
  /**
3223
2856
  * @uiName Missing indirect tax number error message
3224
2857
  */
3225
- 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";
2858
+ 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";
3226
2859
  /**
3227
2860
  * Placeholder text displayed in the country search dropdown
3228
2861
  * @uiName Country field placeholder text
@@ -4033,7 +3666,7 @@ const PayoutDetailsCard = class {
4033
3666
  * Badge text indicating payout status
4034
3667
  * @uiName Payout badge status text
4035
3668
  */
4036
- this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
3669
+ this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} other {Failed}}";
4037
3670
  /**
4038
3671
  * Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
4039
3672
  * @uiName Payout schedule by threshold text
@@ -4894,7 +4527,7 @@ const useTaxAndCashDashboard = (props) => {
4894
4527
  dateSubmitted,
4895
4528
  documentType,
4896
4529
  canEditPayoutInfo: publisher === null || publisher === void 0 ? void 0 : publisher.brandedSignup,
4897
- documentTypeString: utils$1.taxTypeToName(documentType),
4530
+ documentTypeString: data.taxTypeToName(documentType),
4898
4531
  status: (_f = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _f === void 0 ? void 0 : _f.status,
4899
4532
  subRegion: getSubRegionName((_g = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _g === void 0 ? void 0 : _g.indirectTaxRegion),
4900
4533
  subRegionTaxNumber: (_h = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _h === void 0 ? void 0 : _h.withholdingTaxId,
@@ -5087,7 +4720,7 @@ const TaxAndCashDashboard = class {
5087
4720
  /**
5088
4721
  * @uiName Payout status badge
5089
4722
  */
5090
- this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
4723
+ this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} other {Failed} }";
5091
4724
  /**
5092
4725
  * Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
5093
4726
  * @uiName Payout schedule by threshold text
@@ -5404,7 +5037,6 @@ function useUserInfoForm(props) {
5404
5037
  const [userFormContext, setUserFormContext] = index_module.Pn(data.USER_FORM_CONTEXT_NAMESPACE);
5405
5038
  const user = index_module.J();
5406
5039
  const [connectImpactPartner, { loading: connectLoading, errors: connectErrors },] = index_module.$e(CONNECT_PARTNER);
5407
- const [completeImpactPartner, { loading: completeLoading, errors: completeErrors },] = index_module.$e(COMPLETE_PARTNER);
5408
5040
  const { data: tenantData } = index_module.wn(GET_INDIRECT_TAX_COUNTRY_CODE, {});
5409
5041
  const { data: data$1, loading, refetch, errors: userError, } = index_module.$n(data.USER_QUERY_NAMESPACE);
5410
5042
  const _currencies = index_module.Fn(data.CURRENCIES_NAMESPACE);
@@ -5426,7 +5058,7 @@ function useUserInfoForm(props) {
5426
5058
  if (!user || step !== "/1")
5427
5059
  return;
5428
5060
  // If form already filled out, skip initialising it
5429
- if (utils$1.objectIsFull(userFormContext))
5061
+ if (data.objectIsFull(userFormContext))
5430
5062
  return;
5431
5063
  // Prefer MI email if it was verified before this
5432
5064
  const email = ((_a = user.managedIdentity) === null || _a === void 0 ? void 0 : _a.emailVerified) ? user.managedIdentity.email
@@ -5439,13 +5071,8 @@ function useUserInfoForm(props) {
5439
5071
  lastName: user.impactConnection.user.lastName,
5440
5072
  countryCode: user.impactConnection.publisher.countryCode,
5441
5073
  currency: user.impactConnection.publisher.currency,
5442
- // when creating an impact connection without sending phoneNumber data, the impactAPI defaults the value to "000000" and the phoneNumberCountryCode to "DZ"
5443
- phoneNumberCountryCode: user.impactConnection.publisher.phoneNumber === "0000000"
5444
- ? null
5445
- : user.impactConnection.publisher.phoneNumberCountryCode,
5446
- phoneNumber: user.impactConnection.publisher.phoneNumber === "0000000"
5447
- ? null
5448
- : user.impactConnection.publisher.phoneNumber,
5074
+ phoneNumberCountryCode: user.impactConnection.publisher.phoneNumberCountryCode,
5075
+ phoneNumber: user.impactConnection.publisher.phoneNumber,
5449
5076
  address: user.impactConnection.publisher.billingAddress,
5450
5077
  city: user.impactConnection.publisher.billingCity,
5451
5078
  state: user.impactConnection.publisher.billingState,
@@ -5516,7 +5143,7 @@ function useUserInfoForm(props) {
5516
5143
  }
5517
5144
  }, [currencySearch, currencies]);
5518
5145
  async function connectPartner(formData) {
5519
- var _a, _b, _c, _d, _e, _f;
5146
+ var _a, _b, _c, _d, _e;
5520
5147
  const vars = {
5521
5148
  user: {
5522
5149
  id: user.id,
@@ -5533,35 +5160,23 @@ function useUserInfoForm(props) {
5533
5160
  phoneNumber: formData.phoneNumber,
5534
5161
  phoneNumberCountryCode: formData.phoneNumberCountryCode,
5535
5162
  };
5536
- //AL: TODO completePartnerMutation might change
5537
- // if user already has an impact connection, call completeImpactPartner to update their information instead of connectPartner
5538
- const userData = data$1 === null || data$1 === void 0 ? void 0 : data$1.user;
5539
- let result = null;
5540
- let connectionResult;
5541
- if (((_a = userData === null || userData === void 0 ? void 0 : userData.impactConnection) === null || _a === void 0 ? void 0 : _a.connectionStatus) === "STARTED") {
5542
- console.log(vars, "values for completeImpactPartner");
5543
- result = await completeImpactPartner({
5544
- vars,
5545
- });
5546
- connectionResult = (_b = result) === null || _b === void 0 ? void 0 : _b.completeImpactConnection;
5547
- }
5548
- else {
5549
- result = await connectImpactPartner({
5550
- vars,
5551
- });
5552
- connectionResult = (_c = result) === null || _c === void 0 ? void 0 : _c.createImpactConnection;
5553
- }
5554
- if (!result || ((_d = result) === null || _d === void 0 ? void 0 : _d.message))
5163
+ const result = await connectImpactPartner({
5164
+ vars,
5165
+ });
5166
+ if (!result || ((_a = result) === null || _a === void 0 ? void 0 : _a.message))
5555
5167
  throw new Error();
5556
- if (!(connectionResult === null || connectionResult === void 0 ? void 0 : connectionResult.success)) {
5557
- console.error("Failed to create Impact connection: ", connectionResult === null || connectionResult === void 0 ? void 0 : connectionResult.validationErrors);
5168
+ if (!((_b = result.createImpactConnection) === null || _b === void 0 ? void 0 : _b.success)) {
5169
+ // Output backend errors to console for now
5170
+ console.error("Failed to create Impact connection: ", result.createImpactConnection
5171
+ .validationErrors);
5558
5172
  throw new Error();
5559
5173
  }
5560
5174
  await refetch();
5561
- 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;
5562
- const hasValidCurrentDocument = utils$1.validTaxDocument(resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) && (resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.currentTaxDocument);
5175
+ const resultPublisher = (_e = (_d = (_c = result
5176
+ .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;
5177
+ const hasValidCurrentDocument = data.validTaxDocument(resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) && (resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.currentTaxDocument);
5563
5178
  // Fire form change event
5564
- window.dispatchEvent(new Event(eventKeys.TAX_FORM_UPDATED_EVENT_KEY));
5179
+ window.dispatchEvent(new Event(usePayoutStatus.TAX_FORM_UPDATED_EVENT_KEY));
5565
5180
  return {
5566
5181
  resultPublisher,
5567
5182
  hasValidCurrentDocument,
@@ -5683,9 +5298,9 @@ function useUserInfoForm(props) {
5683
5298
  step: step === null || step === void 0 ? void 0 : step.replace("/", ""),
5684
5299
  hideState: !hasStates,
5685
5300
  hideSteps: !!context.hideSteps,
5686
- disabled: loading || connectLoading || completeLoading,
5301
+ disabled: loading || connectLoading,
5687
5302
  loadingError: !!(userError === null || userError === void 0 ? void 0 : userError.message),
5688
- loading: loading || connectLoading || completeLoading,
5303
+ loading: loading || connectLoading,
5689
5304
  isPartner: !!((_g = (_f = data$1 === null || data$1 === void 0 ? void 0 : data$1.user) === null || _f === void 0 ? void 0 : _f.impactConnection) === null || _g === void 0 ? void 0 : _g.publisher),
5690
5305
  isUser: !!((_j = (_h = data$1 === null || data$1 === void 0 ? void 0 : data$1.user) === null || _h === void 0 ? void 0 : _h.impactConnection) === null || _j === void 0 ? void 0 : _j.user),
5691
5306
  formState: {