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