@saasquatch/mint-components 2.1.9-8 → 2.1.10-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-d679ec76.js → ShadowViewAddon-a26deae6.js} +6 -6
- package/dist/cjs/{data-e83f8a41.js → data-8c8a08f6.js} +2 -2
- package/dist/cjs/extractProps-e9c55ba8.js +35 -0
- package/dist/cjs/{global-0f8b1267.js → global-b7b1b8fe.js} +3126 -3177
- package/dist/cjs/{index.module-42d413d9.js → index.module-f8c8495f.js} +149 -154
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/mint-components.cjs.js +3 -3
- package/dist/cjs/{re-render-69bde9ee.js → re-render-72a0ef45.js} +1 -1
- package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +94 -401
- package/dist/cjs/{sqm-big-stat_46.cjs.entry.js → sqm-big-stat_45.cjs.entry.js} +37 -397
- package/dist/cjs/sqm-close-button.cjs.entry.js +1 -1
- package/dist/cjs/sqm-code-verification.cjs.entry.js +7 -6
- package/dist/cjs/sqm-context-router.cjs.entry.js +1 -1
- package/dist/cjs/sqm-email-verification.cjs.entry.js +418 -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-d90f8941.js → sqm-lead-checkbox-field-view-0af2a157.js} +1 -1
- package/dist/cjs/sqm-lead-checkbox-field.cjs.entry.js +4 -4
- package/dist/cjs/{sqm-lead-input-field-view-818d9e9a.js → sqm-lead-input-field-view-0cd7ebdb.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-20693e59.js → sqm-navigation-sidebar-item-view-49b152dd.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-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-2b4b92da.js → sqm-portal-email-verification-view-c81fe7f1.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +3 -3
- package/dist/cjs/sqm-portal-forgot-password_6.cjs.entry.js +4 -4
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-portal-profile-view-bfdbb98d.js → sqm-portal-profile-view-639337e3.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +4 -4
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +1 -1
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-portal-verify-email-view-90cd89e3.js → sqm-portal-verify-email-view-424e406a.js} +1 -1
- package/dist/cjs/sqm-qr-code.cjs.entry.js +2 -2
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +5 -5
- 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 +15 -200
- package/dist/cjs/sqm-tab.cjs.entry.js +2 -2
- package/dist/cjs/sqm-tabs.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-user-info-form-view-923ff8d9.js → sqm-user-info-form-view-53306f6e.js} +12 -9
- package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +1 -1
- package/dist/cjs/sqm-widget-verification.cjs.entry.js +214 -0
- package/dist/cjs/{useChildElements-89bc50a9.js → useChildElements-041127d7.js} +1 -1
- package/dist/cjs/{useInstantAccessRegistration-651aa95b.js → useInstantAccessRegistration-2398df36.js} +2 -2
- package/dist/cjs/{useLeadFormState-76d3b511.js → useLeadFormState-b4c2ab5b.js} +2 -2
- package/dist/cjs/{usePayoutStatus-cf050a03.js → usePayoutStatus-0192fccd.js} +6 -4
- package/dist/cjs/{usePortalRegistrationForm-31822dc4.js → usePortalRegistrationForm-23ee2d62.js} +2 -2
- package/dist/cjs/{useReferralCodes-89c2b972.js → useReferralCodes-0f7948af.js} +1 -1
- package/dist/cjs/{useReferralTable-d3ddfd05.js → useReferralTable-6e9de0d5.js} +3 -3
- package/dist/cjs/{useRegistrationFormState-a223f597.js → useRegistrationFormState-4fe5b770.js} +1 -1
- package/dist/cjs/{useVerificationEmail-994bc32f.js → useVerificationEmail-5d19aa99.js} +1 -1
- package/dist/cjs/{utilities-096934ea.js → utilities-fcdb9504.js} +1 -1
- package/dist/collection/collection-manifest.json +0 -1
- package/dist/collection/components/sqm-referral-iframe/ReferralIframe.stories.js +1 -0
- 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 +27 -1
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +0 -4
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +4 -3
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +2 -0
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +4 -473
- package/dist/collection/components/sqm-widget-verification/useWidgetVerification.js +5 -20
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/formDefinitions.js +55 -75
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +63 -688
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +1 -95
- 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-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 +65 -7
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +1 -10
- 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 +10 -7
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +2 -7
- package/dist/esm/{ShadowViewAddon-657d18f0.js → ShadowViewAddon-47f1e579.js} +6 -6
- package/dist/esm/{data-2b0feb3f.js → data-12e6aae1.js} +2 -2
- package/dist/esm/extractProps-54064fb0.js +32 -0
- package/dist/esm/{global-39f55ec2.js → global-96c14d63.js} +3126 -3177
- package/dist/esm/{index.module-cede12c6.js → index.module-b23fdad8.js} +150 -153
- package/dist/esm/{keys-db1897ae.js → keys-406491dc.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/mint-components.js +3 -3
- package/dist/esm/{re-render-7a0c7976.js → re-render-f30aeb6b.js} +1 -1
- package/dist/esm/sqm-banking-info-form_10.entry.js +91 -398
- package/dist/esm/{sqm-big-stat_46.entry.js → sqm-big-stat_45.entry.js} +34 -393
- package/dist/esm/sqm-close-button.entry.js +1 -1
- package/dist/esm/sqm-code-verification.entry.js +8 -7
- package/dist/esm/sqm-context-router.entry.js +1 -1
- package/dist/esm/sqm-email-verification.entry.js +414 -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-7cee2b4e.js → sqm-lead-checkbox-field-view-7928db07.js} +1 -1
- package/dist/esm/sqm-lead-checkbox-field.entry.js +4 -4
- package/dist/esm/{sqm-lead-input-field-view-11a4f9a9.js → sqm-lead-input-field-view-d1b91650.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-48e7e0d3.js → sqm-navigation-sidebar-item-view-b3beac5a.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-password-field.entry.js +2 -2
- package/dist/esm/sqm-popup-container.entry.js +1 -1
- package/dist/esm/{sqm-portal-email-verification-view-80736644.js → sqm-portal-email-verification-view-426370f1.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +3 -3
- package/dist/esm/sqm-portal-forgot-password_6.entry.js +4 -4
- package/dist/esm/sqm-portal-logout.entry.js +1 -1
- package/dist/esm/{sqm-portal-profile-view-a6be8558.js → sqm-portal-profile-view-f015fd6a.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +4 -4
- package/dist/esm/sqm-portal-protected-route.entry.js +1 -1
- package/dist/esm/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm/{sqm-portal-verify-email-view-92297506.js → sqm-portal-verify-email-view-1a638fae.js} +1 -1
- package/dist/esm/sqm-qr-code.entry.js +2 -2
- package/dist/esm/sqm-referral-table_11.entry.js +5 -5
- 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 +15 -200
- package/dist/esm/sqm-tab.entry.js +2 -2
- package/dist/esm/sqm-tabs.entry.js +3 -3
- package/dist/esm/{sqm-user-info-form-view-f9026468.js → sqm-user-info-form-view-19d81a2b.js} +12 -9
- package/dist/esm/sqm-widget-verification-controller.entry.js +2 -2
- package/dist/esm/sqm-widget-verification.entry.js +210 -0
- package/dist/esm/{useChildElements-c26d7347.js → useChildElements-9bccfb72.js} +1 -1
- package/dist/esm/{useInstantAccessRegistration-e2392f42.js → useInstantAccessRegistration-69fefed0.js} +2 -2
- package/dist/esm/{useLeadFormState-9099c8d4.js → useLeadFormState-dd4e8b08.js} +2 -2
- package/dist/esm/{usePayoutStatus-fa504d49.js → usePayoutStatus-46c0c289.js} +4 -3
- package/dist/esm/{usePortalRegistrationForm-5844032a.js → usePortalRegistrationForm-62de6fb1.js} +2 -2
- package/dist/esm/{useReferralCodes-3cde72d4.js → useReferralCodes-52ca720f.js} +1 -1
- package/dist/esm/{useReferralTable-35e6d4c1.js → useReferralTable-92af4133.js} +3 -3
- package/dist/esm/{useRegistrationFormState-1813bdef.js → useRegistrationFormState-2c090c38.js} +1 -1
- package/dist/esm/{useVerificationEmail-cb3d51e3.js → useVerificationEmail-c13c3b51.js} +1 -1
- package/dist/esm/{utilities-c9e730ed.js → utilities-77b1e0cc.js} +1 -1
- package/dist/esm-es5/{ShadowViewAddon-657d18f0.js → ShadowViewAddon-47f1e579.js} +1 -1
- package/dist/esm-es5/{data-2b0feb3f.js → data-12e6aae1.js} +1 -1
- package/dist/esm-es5/extractProps-54064fb0.js +1 -0
- package/dist/esm-es5/global-96c14d63.js +271 -0
- package/dist/esm-es5/index.module-b23fdad8.js +1 -0
- package/dist/esm-es5/{keys-db1897ae.js → keys-406491dc.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/{re-render-7a0c7976.js → re-render-f30aeb6b.js} +1 -1
- package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_45.entry.js +1 -0
- 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.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-7cee2b4e.js → sqm-lead-checkbox-field-view-7928db07.js} +1 -1
- package/dist/esm-es5/sqm-lead-checkbox-field.entry.js +1 -1
- package/dist/esm-es5/{sqm-lead-input-field-view-11a4f9a9.js → sqm-lead-input-field-view-d1b91650.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-48e7e0d3.js → sqm-navigation-sidebar-item-view-b3beac5a.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-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-80736644.js → sqm-portal-email-verification-view-426370f1.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-a6be8558.js → sqm-portal-profile-view-f015fd6a.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-reset-password.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-verify-email-view-92297506.js → sqm-portal-verify-email-view-1a638fae.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-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-user-info-form-view-f9026468.js → sqm-user-info-form-view-19d81a2b.js} +1 -1
- package/dist/esm-es5/sqm-widget-verification-controller.entry.js +1 -1
- package/dist/esm-es5/sqm-widget-verification.entry.js +1 -0
- package/dist/esm-es5/{useChildElements-c26d7347.js → useChildElements-9bccfb72.js} +1 -1
- package/dist/esm-es5/{useInstantAccessRegistration-e2392f42.js → useInstantAccessRegistration-69fefed0.js} +1 -1
- package/dist/esm-es5/{useLeadFormState-9099c8d4.js → useLeadFormState-dd4e8b08.js} +1 -1
- package/dist/esm-es5/{usePayoutStatus-fa504d49.js → usePayoutStatus-46c0c289.js} +2 -2
- package/dist/esm-es5/{usePortalRegistrationForm-5844032a.js → usePortalRegistrationForm-62de6fb1.js} +1 -1
- package/dist/esm-es5/{useReferralCodes-3cde72d4.js → useReferralCodes-52ca720f.js} +1 -1
- package/dist/esm-es5/{useReferralTable-35e6d4c1.js → useReferralTable-92af4133.js} +1 -1
- package/dist/esm-es5/{useRegistrationFormState-1813bdef.js → useRegistrationFormState-2c090c38.js} +1 -1
- package/dist/esm-es5/{useVerificationEmail-cb3d51e3.js → useVerificationEmail-c13c3b51.js} +1 -1
- package/dist/esm-es5/{utilities-c9e730ed.js → utilities-77b1e0cc.js} +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/{p-62212b9a.entry.js → p-013564b3.entry.js} +1 -1
- package/dist/mint-components/p-02499e08.entry.js +1 -0
- package/dist/mint-components/{p-998c989a.system.entry.js → p-027fc3be.system.entry.js} +1 -1
- package/dist/mint-components/{p-32d078a3.js → p-035d9b65.js} +1 -1
- package/dist/mint-components/{p-e4dbca9a.system.js → p-036a2617.system.js} +1 -1
- package/dist/mint-components/{p-886fb141.entry.js → p-058aefe1.entry.js} +1 -1
- package/dist/mint-components/p-0614dcbc.entry.js +9 -0
- package/dist/mint-components/p-0706cf9e.system.entry.js +1 -0
- package/dist/mint-components/p-0797a946.js +1 -0
- package/dist/mint-components/{p-f11d29fd.entry.js → p-09348341.entry.js} +1 -1
- package/dist/mint-components/{p-991f60fc.entry.js → p-09f7aacd.entry.js} +2 -2
- package/dist/mint-components/{p-a5912b2f.js → p-0c0d4065.js} +3 -3
- package/dist/mint-components/{p-8f9c1387.js → p-0d83907e.js} +1 -1
- package/dist/mint-components/{p-a86ce218.system.js → p-172675ca.system.js} +1 -1
- package/dist/mint-components/{p-d355336b.system.js → p-19c441b2.system.js} +1 -1
- package/dist/mint-components/{p-86381dc7.system.js → p-205cfdcd.system.js} +1 -1
- package/dist/mint-components/{p-896390f9.js → p-217dedde.js} +2 -2
- package/dist/mint-components/{p-e5ee6cf5.entry.js → p-25558a33.entry.js} +2 -2
- package/dist/mint-components/{p-45475cf9.system.entry.js → p-2b4af8e8.system.entry.js} +1 -1
- package/dist/mint-components/{p-e9e05970.system.entry.js → p-2d5c2bd4.system.entry.js} +1 -1
- package/dist/mint-components/p-30c1ef36.system.js +1 -0
- package/dist/mint-components/{p-bcadd021.js → p-3286ef38.js} +1 -1
- package/dist/mint-components/{p-0d75a207.js → p-3366b81e.js} +2 -2
- package/dist/mint-components/p-3687d433.entry.js +106 -0
- package/dist/mint-components/p-38c7775a.js +1 -0
- package/dist/mint-components/p-3adbfd0b.system.js +6 -0
- package/dist/mint-components/{p-160828b4.entry.js → p-3bc62ca6.entry.js} +1 -1
- package/dist/mint-components/p-4da5a3fe.system.entry.js +1 -0
- package/dist/mint-components/{p-15a703c7.system.entry.js → p-5141769d.system.entry.js} +1 -1
- package/dist/mint-components/{p-608da224.entry.js → p-52674798.entry.js} +1 -1
- package/dist/mint-components/{p-bba694e4.entry.js → p-55676213.entry.js} +1 -1
- package/dist/mint-components/p-57ac2160.system.entry.js +1 -0
- package/dist/mint-components/p-57dd28bd.system.js +1 -0
- package/dist/mint-components/{p-c84a2512.system.js → p-5b1d2866.system.js} +1 -1
- package/dist/mint-components/{p-5c9d030a.system.entry.js → p-5b871e38.system.entry.js} +1 -1
- package/dist/mint-components/{p-b5fed7c6.entry.js → p-5c4ba8a0.entry.js} +1 -1
- package/dist/mint-components/{p-fb4ab5ba.system.entry.js → p-5ce78407.system.entry.js} +1 -1
- package/dist/mint-components/p-5ff7b000.entry.js +33 -0
- package/dist/mint-components/{p-9c1b0c8b.entry.js → p-61897e72.entry.js} +1 -1
- package/dist/mint-components/{p-52748a87.system.entry.js → p-626b31cb.system.entry.js} +1 -1
- package/dist/mint-components/{p-092db51a.js → p-642f2c89.js} +1 -1
- package/dist/mint-components/{p-f4a57aed.entry.js → p-653db72e.entry.js} +1 -1
- package/dist/mint-components/p-6640bbd6.entry.js +273 -0
- package/dist/mint-components/{p-88c9cc1b.entry.js → p-6668f9f0.entry.js} +1 -1
- package/dist/mint-components/{p-be63f29b.system.js → p-692e14c5.system.js} +1 -1
- package/dist/mint-components/{p-014977d7.js → p-6c4ad51a.js} +1 -1
- package/dist/mint-components/p-6e512063.entry.js +25 -0
- package/dist/mint-components/{p-71545bfd.system.entry.js → p-70570e4d.system.entry.js} +1 -1
- package/dist/mint-components/{p-a7ee6531.js → p-7161e1a6.js} +1 -1
- package/dist/mint-components/p-7265bbcb.system.js +271 -0
- package/dist/mint-components/p-738dce27.system.entry.js +1 -0
- package/dist/mint-components/{p-7547180f.system.js → p-77b9cde8.system.js} +1 -1
- package/dist/mint-components/{p-96e4e6a4.entry.js → p-77fa2383.entry.js} +1 -1
- package/dist/mint-components/{p-d5a1c979.system.entry.js → p-782af7ae.system.entry.js} +1 -1
- package/dist/mint-components/{p-9b33e2a7.system.js → p-7b59e13c.system.js} +1 -1
- package/dist/mint-components/p-7efb8782.system.js +1 -0
- package/dist/mint-components/{p-60085f20.system.entry.js → p-80e116ec.system.entry.js} +1 -1
- package/dist/mint-components/{p-36395228.system.js → p-85721089.system.js} +1 -1
- package/dist/mint-components/{p-28e0062c.system.js → p-8583ce0c.system.js} +1 -1
- package/dist/mint-components/{p-3461a8cb.entry.js → p-8f2d03c7.entry.js} +1 -1
- package/dist/mint-components/{p-357040e6.system.entry.js → p-90833864.system.entry.js} +1 -1
- package/dist/mint-components/p-91a96e98.entry.js +1 -0
- package/dist/mint-components/{p-0c43b6ff.entry.js → p-95510f27.entry.js} +1 -1
- package/dist/mint-components/{p-9e43f1eb.entry.js → p-982d1f6f.entry.js} +2 -2
- package/dist/mint-components/{p-77117f6c.system.js → p-a0c5631b.system.js} +1 -1
- package/dist/mint-components/{p-095b7128.js → p-a4f8abad.js} +1 -1
- package/dist/mint-components/{p-21e7079a.system.entry.js → p-a96c9bbb.system.entry.js} +1 -1
- package/dist/mint-components/{p-66c0100c.system.entry.js → p-ab0ea688.system.entry.js} +1 -1
- package/dist/mint-components/p-abc28aeb.system.entry.js +1 -0
- package/dist/mint-components/{p-dbdb2a46.system.entry.js → p-aefc6c4f.system.entry.js} +1 -1
- package/dist/mint-components/{p-86a70151.entry.js → p-b2b85238.entry.js} +1 -1
- package/dist/mint-components/p-b395470f.entry.js +16 -0
- package/dist/mint-components/{p-1b0cbbae.entry.js → p-b66f45d1.entry.js} +1 -1
- package/dist/mint-components/{p-3c88d2ed.js → p-bab4929e.js} +2 -2
- package/dist/mint-components/{p-3c555674.js → p-bc386a7b.js} +1 -1
- package/dist/mint-components/p-bf545082.system.entry.js +1 -0
- package/dist/mint-components/{p-16deb1a9.system.entry.js → p-c30d0049.system.entry.js} +1 -1
- package/dist/mint-components/{p-62e1c8b2.system.entry.js → p-c45a929a.system.entry.js} +1 -1
- package/dist/mint-components/p-c67f8558.system.entry.js +1 -0
- package/dist/mint-components/{p-5dc9e95b.entry.js → p-c8a8d231.entry.js} +2 -2
- package/dist/mint-components/{p-9bd53e4d.system.entry.js → p-c8bcbf8b.system.entry.js} +1 -1
- package/dist/mint-components/p-ca098be1.system.js +1 -0
- package/dist/mint-components/{p-93c5c8ec.entry.js → p-cb0a5990.entry.js} +1 -1
- package/dist/mint-components/{p-74aac245.system.js → p-ce050888.system.js} +1 -1
- package/dist/mint-components/{p-95aaf35a.system.entry.js → p-d005df28.system.entry.js} +1 -1
- package/dist/mint-components/p-d0993bb9.js +1 -0
- package/dist/mint-components/{p-7e36a1ff.js → p-d18dedd4.js} +1 -1
- package/dist/mint-components/{p-ba953c21.entry.js → p-d4570314.entry.js} +1 -1
- package/dist/mint-components/{p-b1b8e629.system.js → p-d6193876.system.js} +1 -1
- package/dist/mint-components/{p-b5f57914.js → p-d997001a.js} +1 -1
- package/dist/mint-components/{p-37658fec.entry.js → p-db0a2afd.entry.js} +1 -1
- package/dist/mint-components/{p-b297016f.system.entry.js → p-dd368927.system.entry.js} +1 -1
- package/dist/mint-components/p-de0d6fd7.js +49 -0
- package/dist/mint-components/{p-ce11858c.js → p-e00ec007.js} +1 -1
- package/dist/mint-components/{p-b5c0bad5.system.entry.js → p-e12754f5.system.entry.js} +1 -1
- package/dist/mint-components/{p-098d134a.system.entry.js → p-e3497e0e.system.entry.js} +1 -1
- package/dist/mint-components/{p-d798004f.system.js → p-e4f17c21.system.js} +1 -1
- package/dist/mint-components/p-e55aafe9.system.js +1 -0
- package/dist/mint-components/{p-f972e5c9.entry.js → p-e5ea43b1.entry.js} +2 -2
- package/dist/mint-components/{p-8474aa63.js → p-e6240c72.js} +1 -1
- package/dist/mint-components/{p-f18a6658.js → p-e6ace3ab.js} +1 -1
- package/dist/mint-components/{p-857a2d77.js → p-e84b874c.js} +1 -1
- package/dist/mint-components/{p-eaf5d0af.system.js → p-ea03e50e.system.js} +1 -1
- package/dist/mint-components/{p-3181e54a.entry.js → p-ec0b649a.entry.js} +1 -1
- package/dist/mint-components/{p-8139fdec.entry.js → p-f0baeed0.entry.js} +1 -1
- package/dist/mint-components/{p-2f4d8ab8.system.entry.js → p-f1374258.system.entry.js} +1 -1
- package/dist/mint-components/{p-31dde9fc.system.js → p-f35d856a.system.js} +1 -1
- package/dist/mint-components/{p-6194855b.system.entry.js → p-f39cf252.system.entry.js} +1 -1
- package/dist/mint-components/{p-c8e45671.system.entry.js → p-f4e36adf.system.entry.js} +1 -1
- package/dist/mint-components/{p-140e6a15.system.js → p-f55ecf35.system.js} +1 -1
- package/dist/mint-components/{p-3c333076.js → p-f581aac7.js} +1 -1
- package/dist/mint-components/{p-438f6702.js → p-f8a09b0f.js} +152 -152
- package/dist/mint-components/p-fbe00c97.system.entry.js +1 -0
- package/dist/mint-components/{p-3756d0d1.system.entry.js → p-fc284f91.system.entry.js} +1 -1
- package/dist/mint-components/{p-6a4496b3.system.entry.js → p-fe1d3cf8.system.entry.js} +1 -1
- package/dist/mint-components/p-fe70e20c.entry.js +1 -0
- package/dist/mint-components/{p-54bf015a.system.js → p-ff118a19.system.js} +1 -1
- package/dist/types/components/sqm-referral-iframe/sqm-referral-iframe-view.d.ts +1 -0
- package/dist/types/components/sqm-referral-iframe/sqm-referral-iframe.d.ts +5 -0
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +0 -73
- package/dist/types/components/sqm-widget-verification/useWidgetVerification.d.ts +0 -2
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/formDefinitions.d.ts +6 -2
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.d.ts +0 -4
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.d.ts +8 -165
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.d.ts +2 -0
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +10 -0
- package/dist/types/components.d.ts +38 -554
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/docs/stats.json +122783 -0
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/eventKeys-7af4df4d.js +0 -5
- package/dist/cjs/parseStates-d1effc19.js +0 -16
- package/dist/cjs/sqm-email-verification_2.cjs.entry.js +0 -810
- package/dist/cjs/sqm-partner-info-modal-view-cd758f12.js +0 -107
- package/dist/collection/components/sqm-partner-info-modal/PartnerInfoModal.stories.js +0 -145
- package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal-view.js +0 -102
- package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal.js +0 -553
- package/dist/collection/components/sqm-partner-info-modal/usePartnerInfoModal.js +0 -232
- package/dist/collection/components/sqm-widget-verification/WidgetVerification.stories.js +0 -16
- package/dist/esm/eventKeys-f76b6a03.js +0 -3
- package/dist/esm/parseStates-ed75e224.js +0 -14
- package/dist/esm/sqm-email-verification_2.entry.js +0 -805
- package/dist/esm/sqm-partner-info-modal-view-dbedda28.js +0 -105
- package/dist/esm-es5/eventKeys-f76b6a03.js +0 -1
- package/dist/esm-es5/global-39f55ec2.js +0 -285
- package/dist/esm-es5/index.module-cede12c6.js +0 -1
- package/dist/esm-es5/parseStates-ed75e224.js +0 -1
- package/dist/esm-es5/sqm-big-stat_46.entry.js +0 -1
- package/dist/esm-es5/sqm-email-verification_2.entry.js +0 -1
- package/dist/esm-es5/sqm-partner-info-modal-view-dbedda28.js +0 -1
- package/dist/mint-components/p-115dfc03.system.js +0 -1
- package/dist/mint-components/p-13f3a647.js +0 -1
- package/dist/mint-components/p-160764bc.system.entry.js +0 -1
- package/dist/mint-components/p-1b2fcd7f.entry.js +0 -108
- package/dist/mint-components/p-1c413a06.system.js +0 -1
- package/dist/mint-components/p-28ed2ae9.js +0 -1
- package/dist/mint-components/p-39840341.js +0 -1
- package/dist/mint-components/p-59f69bdc.system.entry.js +0 -1
- package/dist/mint-components/p-63c299f1.system.js +0 -1
- package/dist/mint-components/p-64b56141.system.entry.js +0 -1
- package/dist/mint-components/p-64f56cc9.system.js +0 -285
- package/dist/mint-components/p-6638c7c6.system.js +0 -1
- package/dist/mint-components/p-6f8dde97.system.js +0 -1
- package/dist/mint-components/p-70e34ae1.system.js +0 -6
- package/dist/mint-components/p-7144ac40.js +0 -1
- package/dist/mint-components/p-7a5814ef.system.entry.js +0 -1
- package/dist/mint-components/p-996eb820.entry.js +0 -1
- package/dist/mint-components/p-a8ecdc44.system.js +0 -1
- package/dist/mint-components/p-a9bf9d3c.entry.js +0 -291
- package/dist/mint-components/p-adcc37f3.entry.js +0 -105
- package/dist/mint-components/p-b2a99637.system.js +0 -1
- package/dist/mint-components/p-b2bde2f5.entry.js +0 -1
- package/dist/mint-components/p-b451970a.system.entry.js +0 -1
- package/dist/mint-components/p-bfbfde38.entry.js +0 -33
- package/dist/mint-components/p-c7535e70.system.entry.js +0 -1
- package/dist/mint-components/p-d20188db.js +0 -1
- package/dist/mint-components/p-d2927531.entry.js +0 -9
- package/dist/mint-components/p-d6714617.entry.js +0 -1
- package/dist/mint-components/p-dac1f2cb.system.entry.js +0 -1
- package/dist/mint-components/p-e95402dc.js +0 -49
- package/dist/types/components/sqm-partner-info-modal/PartnerInfoModal.stories.d.ts +0 -13
- package/dist/types/components/sqm-partner-info-modal/sqm-partner-info-modal-view.d.ts +0 -43
- package/dist/types/components/sqm-partner-info-modal/sqm-partner-info-modal.d.ts +0 -101
- package/dist/types/components/sqm-partner-info-modal/usePartnerInfoModal.d.ts +0 -17
- package/dist/types/components/sqm-widget-verification/WidgetVerification.stories.d.ts +0 -8
- package/shoelace/assets/icons/twitter-x.svg +0 -4
|
@@ -3,27 +3,26 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-8277cbb3.js');
|
|
6
|
-
const global = require('./global-
|
|
6
|
+
const global = require('./global-b7b1b8fe.js');
|
|
7
7
|
const domContextHooks_module = require('./dom-context-hooks.module-e7b6727c.js');
|
|
8
|
-
const index_module = require('./index.module-
|
|
8
|
+
const index_module = require('./index.module-f8c8495f.js');
|
|
9
9
|
const jsonpointer = require('./jsonpointer-11327262.js');
|
|
10
10
|
const cjs = require('./cjs-1066ec21.js');
|
|
11
11
|
const utils = require('./utils-6847bc06.js');
|
|
12
12
|
const JSS = require('./JSS-8503a151.js');
|
|
13
13
|
require('./mixins-4761d472.js');
|
|
14
14
|
const GenericTableView = require('./GenericTableView-be5648e4.js');
|
|
15
|
-
const reRender = require('./re-render-
|
|
16
|
-
const useChildElements = require('./useChildElements-
|
|
15
|
+
const reRender = require('./re-render-72a0ef45.js');
|
|
16
|
+
const useChildElements = require('./useChildElements-041127d7.js');
|
|
17
17
|
const luxon = require('./luxon-c1ad356a.js');
|
|
18
|
-
const useReferralTable = require('./useReferralTable-
|
|
19
|
-
const sqmUserInfoFormView = require('./sqm-user-info-form-view-
|
|
20
|
-
const data = require('./data-
|
|
18
|
+
const useReferralTable = require('./useReferralTable-6e9de0d5.js');
|
|
19
|
+
const sqmUserInfoFormView = require('./sqm-user-info-form-view-53306f6e.js');
|
|
20
|
+
const data = require('./data-8c8a08f6.js');
|
|
21
21
|
const keys = require('./keys-cff24974.js');
|
|
22
|
-
const
|
|
23
|
-
const usePayoutStatus = require('./usePayoutStatus-cf050a03.js');
|
|
22
|
+
const usePayoutStatus = require('./usePayoutStatus-0192fccd.js');
|
|
24
23
|
|
|
25
24
|
function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
26
|
-
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
|
|
25
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38;
|
|
27
26
|
const { errors, ...formState } = props.states.formState;
|
|
28
27
|
return {
|
|
29
28
|
0: {
|
|
@@ -32,54 +31,44 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
32
31
|
helpText: getValidationErrorMessage({
|
|
33
32
|
type: (_c = (_b = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _b === void 0 ? void 0 : _b.beneficiaryAccountName) === null || _c === void 0 ? void 0 : _c.type,
|
|
34
33
|
label: props.text.beneficiaryAccountNameLabel,
|
|
35
|
-
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,
|
|
36
|
-
fieldName: "beneficiaryAccountName",
|
|
37
34
|
}),
|
|
38
35
|
})))),
|
|
39
36
|
},
|
|
40
37
|
1: {
|
|
41
|
-
input: (index.h("sl-select", Object.assign({ required: true, label: props.text.bankAccountTypeLabel, name: "/bankAccountType", id: "bankAccountType", key: "bankAccountType" }, (((
|
|
38
|
+
input: (index.h("sl-select", Object.assign({ required: true, label: props.text.bankAccountTypeLabel, name: "/bankAccountType", id: "bankAccountType", key: "bankAccountType" }, (((_d = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _d === void 0 ? void 0 : _d.bankAccountType) && {
|
|
42
39
|
class: "error-input",
|
|
43
40
|
helpText: getValidationErrorMessage({
|
|
44
|
-
type: (
|
|
41
|
+
type: (_f = (_e = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _e === void 0 ? void 0 : _e.bankAccountType) === null || _f === void 0 ? void 0 : _f.type,
|
|
45
42
|
label: props.text.bankAccountTypeLabel,
|
|
46
|
-
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,
|
|
47
|
-
fieldName: "bankAccountType",
|
|
48
43
|
}),
|
|
49
44
|
})),
|
|
50
45
|
index.h("sl-menu-item", { value: "CHECKING" }, props.text.checkingSelectItemLabel),
|
|
51
46
|
index.h("sl-menu-item", { value: "SAVINGS" }, props.text.savingsSelectItemLabel))),
|
|
52
47
|
},
|
|
53
48
|
2: {
|
|
54
|
-
input: (index.h("sl-input", Object.assign({ required: true, label: props.text.bankAccountNumberLabel, name: "/bankAccountNumber", id: "bankAccountNumber", key: "bankAccountNumber", value: formState.bankAccountNumber, type: "text" }, (((
|
|
49
|
+
input: (index.h("sl-input", Object.assign({ required: true, label: props.text.bankAccountNumberLabel, name: "/bankAccountNumber", id: "bankAccountNumber", key: "bankAccountNumber", value: formState.bankAccountNumber, type: "text" }, (((_g = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _g === void 0 ? void 0 : _g.bankAccountNumber) && {
|
|
55
50
|
class: "error-input",
|
|
56
51
|
helpText: getValidationErrorMessage({
|
|
57
|
-
type: (
|
|
52
|
+
type: (_j = (_h = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _h === void 0 ? void 0 : _h.bankAccountNumber) === null || _j === void 0 ? void 0 : _j.type,
|
|
58
53
|
label: props.text.bankAccountNumberLabel,
|
|
59
|
-
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,
|
|
60
|
-
fieldName: "bankAccountNumber",
|
|
61
54
|
}),
|
|
62
55
|
})))),
|
|
63
56
|
},
|
|
64
57
|
3: {
|
|
65
|
-
input: (index.h("sl-input", Object.assign({ required: true, label: props.text.ibanLabel, name: "/bankAccountNumber", id: "iban", key: "iban", type: "text", value: formState.bankAccountNumber }, (((
|
|
58
|
+
input: (index.h("sl-input", Object.assign({ required: true, label: props.text.ibanLabel, name: "/bankAccountNumber", id: "iban", key: "iban", type: "text", value: formState.bankAccountNumber }, (((_k = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _k === void 0 ? void 0 : _k.bankAccountNumber) && {
|
|
66
59
|
class: "error-input",
|
|
67
60
|
helpText: getValidationErrorMessage({
|
|
68
|
-
type: (
|
|
61
|
+
type: (_m = (_l = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _l === void 0 ? void 0 : _l.bankAccountNumber) === null || _m === void 0 ? void 0 : _m.type,
|
|
69
62
|
label: props.text.ibanLabel,
|
|
70
|
-
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,
|
|
71
|
-
fieldName: "bankAccountNumber",
|
|
72
63
|
}),
|
|
73
64
|
})))),
|
|
74
65
|
},
|
|
75
66
|
4: {
|
|
76
|
-
input: (index.h("sl-input", Object.assign({ required: true, label: props.text.swiftCodeLabel, name: "/swiftCode", id: "swiftCode", key: "swiftCode", type: "text" }, (((
|
|
67
|
+
input: (index.h("sl-input", Object.assign({ required: true, label: props.text.swiftCodeLabel, name: "/swiftCode", id: "swiftCode", key: "swiftCode", type: "text" }, (((_o = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _o === void 0 ? void 0 : _o.swiftCode) && {
|
|
77
68
|
class: "error-input",
|
|
78
69
|
helpText: getValidationErrorMessage({
|
|
79
|
-
type: (
|
|
70
|
+
type: (_q = (_p = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _p === void 0 ? void 0 : _p.swiftCode) === null || _q === void 0 ? void 0 : _q.type,
|
|
80
71
|
label: props.text.swiftCodeLabel,
|
|
81
|
-
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,
|
|
82
|
-
fieldName: "swiftCode",
|
|
83
72
|
}),
|
|
84
73
|
})))),
|
|
85
74
|
},
|
|
@@ -89,41 +78,35 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
89
78
|
defaultMessage: props.text.routingCodeLabel,
|
|
90
79
|
}, {
|
|
91
80
|
bankCountry,
|
|
92
|
-
}), name: "/routingCode", id: "routingCode", key: "routingCode", type: "text" }, (((
|
|
81
|
+
}), name: "/routingCode", id: "routingCode", key: "routingCode", type: "text" }, (((_r = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _r === void 0 ? void 0 : _r.routingCode) && {
|
|
93
82
|
class: "error-input",
|
|
94
83
|
helpText: getValidationErrorMessage({
|
|
95
|
-
type: (
|
|
84
|
+
type: (_t = (_s = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _s === void 0 ? void 0 : _s.routingCode) === null || _t === void 0 ? void 0 : _t.type,
|
|
96
85
|
label: global.intl.formatMessage({
|
|
97
86
|
id: "routingCodeErrorText",
|
|
98
87
|
defaultMessage: props.text.routingCodeLabel,
|
|
99
88
|
}, {
|
|
100
89
|
bankCountry,
|
|
101
90
|
}),
|
|
102
|
-
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,
|
|
103
|
-
fieldName: "routingCode",
|
|
104
91
|
}),
|
|
105
92
|
})))),
|
|
106
93
|
},
|
|
107
94
|
6: {
|
|
108
|
-
input: (index.h("sl-input", Object.assign({ required: true, label: props.text.bankNameLabel, name: "/bankName", id: "bankName", key: "bankName", type: "text" }, (((
|
|
95
|
+
input: (index.h("sl-input", Object.assign({ required: true, label: props.text.bankNameLabel, name: "/bankName", id: "bankName", key: "bankName", type: "text" }, (((_u = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _u === void 0 ? void 0 : _u.bankName) && {
|
|
109
96
|
class: "error-input",
|
|
110
97
|
helpText: getValidationErrorMessage({
|
|
111
|
-
type: (
|
|
98
|
+
type: (_w = (_v = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _v === void 0 ? void 0 : _v.bankName) === null || _w === void 0 ? void 0 : _w.type,
|
|
112
99
|
label: props.text.bankNameLabel,
|
|
113
|
-
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,
|
|
114
|
-
fieldName: "bankName",
|
|
115
100
|
}),
|
|
116
101
|
})))),
|
|
117
102
|
},
|
|
118
103
|
7: {
|
|
119
104
|
input: [
|
|
120
|
-
index.h("sl-select", Object.assign({ required: true, label: props.text.classificationLabel, name: "/beneficiaryClassification", id: "beneficiaryClassification", key: "beneficiaryClassification" }, (((
|
|
105
|
+
index.h("sl-select", Object.assign({ required: true, label: props.text.classificationLabel, name: "/beneficiaryClassification", id: "beneficiaryClassification", key: "beneficiaryClassification" }, (((_x = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _x === void 0 ? void 0 : _x.beneficiaryClassification) && {
|
|
121
106
|
class: "error-input",
|
|
122
107
|
helpText: getValidationErrorMessage({
|
|
123
|
-
type: (
|
|
108
|
+
type: (_z = (_y = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _y === void 0 ? void 0 : _y.beneficiaryClassification) === null || _z === void 0 ? void 0 : _z.type,
|
|
124
109
|
label: props.text.classificationLabel,
|
|
125
|
-
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,
|
|
126
|
-
fieldName: "beneficiaryClassification",
|
|
127
110
|
}),
|
|
128
111
|
})),
|
|
129
112
|
index.h("sl-menu-item", { value: "BUSINESS" }, props.text.businessSelectItemLabel),
|
|
@@ -134,128 +117,124 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
134
117
|
defaultMessage: props.text.taxPayerIdLabel,
|
|
135
118
|
}, {
|
|
136
119
|
bankCountry,
|
|
137
|
-
}), type: "text", name: "/beneficiaryTaxPayerId", id: "beneficiaryTaxPayerId", key: "beneficiaryTaxPayerId" }, (((
|
|
120
|
+
}), type: "text", name: "/beneficiaryTaxPayerId", id: "beneficiaryTaxPayerId", key: "beneficiaryTaxPayerId" }, (((_0 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _0 === void 0 ? void 0 : _0.beneficiaryTaxPayerId) && {
|
|
138
121
|
class: "error-input",
|
|
139
122
|
helpText: getValidationErrorMessage({
|
|
140
|
-
type: (
|
|
123
|
+
type: (_2 = (_1 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _1 === void 0 ? void 0 : _1.beneficiaryTaxPayerId) === null || _2 === void 0 ? void 0 : _2.type,
|
|
141
124
|
label: props.text.taxPayerIdLabel,
|
|
142
|
-
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,
|
|
143
|
-
fieldName: "taxPayerId",
|
|
144
125
|
}),
|
|
145
126
|
}))),
|
|
146
127
|
],
|
|
147
128
|
},
|
|
148
129
|
8: {
|
|
149
|
-
input: (index.h("sl-select", Object.assign({ required: true, label: props.text.classificationCPFLabel, name: "/beneficiaryClassification", id: "beneficiaryClassification", key: "beneficiaryClassification" }, (((
|
|
130
|
+
input: (index.h("sl-select", Object.assign({ required: true, label: props.text.classificationCPFLabel, name: "/beneficiaryClassification", id: "beneficiaryClassification", key: "beneficiaryClassification" }, (((_3 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _3 === void 0 ? void 0 : _3.beneficiaryClassification) && {
|
|
150
131
|
class: "error-input",
|
|
151
132
|
helpText: getValidationErrorMessage({
|
|
152
|
-
type: (
|
|
133
|
+
type: (_5 = (_4 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _4 === void 0 ? void 0 : _4.beneficiaryClassification) === null || _5 === void 0 ? void 0 : _5.type,
|
|
153
134
|
label: props.text.classificationCPFLabel,
|
|
154
|
-
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,
|
|
155
|
-
fieldName: "beneficiaryClassification",
|
|
156
135
|
}),
|
|
157
136
|
})),
|
|
158
137
|
index.h("sl-menu-item", { value: "CPF" }, "CPF"),
|
|
159
138
|
index.h("sl-menu-item", { value: "CNPJ" }, "CNPJ"))),
|
|
160
139
|
},
|
|
161
140
|
9: {
|
|
162
|
-
input: (index.h("sl-input", Object.assign({ key: "patronymicName", required: true, label: props.text.patronymicNameLabel, name: "/patronymicName", id: "patronymicName", type: "text" }, (((
|
|
141
|
+
input: (index.h("sl-input", Object.assign({ key: "patronymicName", required: true, label: props.text.patronymicNameLabel, name: "/patronymicName", id: "patronymicName", type: "text" }, (((_6 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _6 === void 0 ? void 0 : _6.patronymicName) && {
|
|
163
142
|
class: "error-input",
|
|
164
143
|
helpText: getValidationErrorMessage({
|
|
165
|
-
type: (
|
|
144
|
+
type: (_8 = (_7 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _7 === void 0 ? void 0 : _7.patronymicName) === null || _8 === void 0 ? void 0 : _8.type,
|
|
166
145
|
label: props.text.patronymicNameLabel,
|
|
167
|
-
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,
|
|
168
|
-
fieldName: "patronymicName",
|
|
169
146
|
}),
|
|
170
147
|
})))),
|
|
171
148
|
},
|
|
172
149
|
10: {
|
|
173
|
-
input: (index.h("sl-input", Object.assign({ key: "voCode", label: props.text.voCodeLabel, name: "/voCode", id: "voCode", type: "text" }, (((
|
|
150
|
+
input: (index.h("sl-input", Object.assign({ key: "voCode", label: props.text.voCodeLabel, name: "/voCode", id: "voCode", type: "text" }, (((_9 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _9 === void 0 ? void 0 : _9.voCode) && {
|
|
174
151
|
class: "error-input",
|
|
175
152
|
helpText: getValidationErrorMessage({
|
|
176
|
-
type: (
|
|
153
|
+
type: (_11 = (_10 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _10 === void 0 ? void 0 : _10.voCode) === null || _11 === void 0 ? void 0 : _11.type,
|
|
177
154
|
label: props.text.voCodeLabel,
|
|
178
|
-
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,
|
|
179
|
-
fieldName: "voCode",
|
|
180
155
|
}),
|
|
181
156
|
})))),
|
|
182
157
|
},
|
|
183
158
|
11: {
|
|
184
|
-
input: (index.h("sl-input", Object.assign({ required: true, label: props.text.agencyCodeLabel, name: "/agencyCode", id: "agencyCode", key: "agencyCode", type: "text" }, (((
|
|
159
|
+
input: (index.h("sl-input", Object.assign({ required: true, label: props.text.agencyCodeLabel, name: "/agencyCode", id: "agencyCode", key: "agencyCode", type: "text" }, (((_12 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _12 === void 0 ? void 0 : _12.agencyCode) && {
|
|
185
160
|
class: "error-input",
|
|
186
161
|
helpText: getValidationErrorMessage({
|
|
187
|
-
type: (
|
|
162
|
+
type: (_14 = (_13 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _13 === void 0 ? void 0 : _13.agencyCode) === null || _14 === void 0 ? void 0 : _14.type,
|
|
188
163
|
label: props.text.agencyCodeLabel,
|
|
189
|
-
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,
|
|
190
|
-
fieldName: "agencyCode",
|
|
191
164
|
}),
|
|
192
165
|
})))),
|
|
193
166
|
},
|
|
194
167
|
12: {
|
|
195
168
|
input: [
|
|
196
|
-
index.h("sl-input", Object.assign({ required: true, label: props.text.bankAddressLabel, name: "/bankAddress", id: "bankAddress", key: "bankAddress", type: "text" }, (((
|
|
169
|
+
index.h("sl-input", Object.assign({ required: true, label: props.text.bankAddressLabel, name: "/bankAddress", id: "bankAddress", key: "bankAddress", type: "text" }, (((_15 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _15 === void 0 ? void 0 : _15.bankAddress) && {
|
|
197
170
|
class: "error-input",
|
|
198
171
|
helpText: getValidationErrorMessage({
|
|
199
|
-
type: (
|
|
172
|
+
type: (_17 = (_16 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _16 === void 0 ? void 0 : _16.bankAddress) === null || _17 === void 0 ? void 0 : _17.type,
|
|
200
173
|
label: props.text.bankAddressLabel,
|
|
201
|
-
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,
|
|
202
|
-
fieldName: "bankAddress",
|
|
203
174
|
}),
|
|
204
175
|
}))),
|
|
205
|
-
index.h("sl-input", Object.assign({ required: true, label: props.text.bankCityLabel, name: "/bankCity", id: "bankCity", key: "bankCity", type: "text" }, (((
|
|
176
|
+
index.h("sl-input", Object.assign({ required: true, label: props.text.bankCityLabel, name: "/bankCity", id: "bankCity", key: "bankCity", type: "text" }, (((_18 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _18 === void 0 ? void 0 : _18.bankCity) && {
|
|
206
177
|
class: "error-input",
|
|
207
178
|
helpText: getValidationErrorMessage({
|
|
208
|
-
type: (
|
|
179
|
+
type: (_20 = (_19 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _19 === void 0 ? void 0 : _19.bankCity) === null || _20 === void 0 ? void 0 : _20.type,
|
|
209
180
|
label: props.text.bankCityLabel,
|
|
210
|
-
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,
|
|
211
|
-
fieldName: "bankCity",
|
|
212
181
|
}),
|
|
213
182
|
}))),
|
|
214
|
-
index.h("sl-input", Object.assign({ required: true, label: props.text.bankStateLabel, name: "/bankState", id: "bankState", key: "bankState", type: "text" }, (((
|
|
183
|
+
index.h("sl-input", Object.assign({ required: true, label: props.text.bankStateLabel, name: "/bankState", id: "bankState", key: "bankState", type: "text" }, (((_21 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _21 === void 0 ? void 0 : _21.bankState) && {
|
|
215
184
|
class: "error-input",
|
|
216
185
|
helpText: getValidationErrorMessage({
|
|
217
|
-
type: (
|
|
186
|
+
type: (_23 = (_22 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _22 === void 0 ? void 0 : _22.bankState) === null || _23 === void 0 ? void 0 : _23.type,
|
|
218
187
|
label: props.text.bankStateLabel,
|
|
219
|
-
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,
|
|
220
|
-
fieldName: "bankState",
|
|
221
188
|
}),
|
|
222
189
|
}))),
|
|
223
|
-
index.h("sl-input", Object.assign({ required: true, label: props.text.bankPostalCodeLabel, name: "/bankPostalCode", id: "bankPostalCode", key: "bankPostalCode", type: "text" }, (((
|
|
190
|
+
index.h("sl-input", Object.assign({ required: true, label: props.text.bankPostalCodeLabel, name: "/bankPostalCode", id: "bankPostalCode", key: "bankPostalCode", type: "text" }, (((_24 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _24 === void 0 ? void 0 : _24.bankPostalCode) && {
|
|
224
191
|
class: "error-input",
|
|
225
192
|
helpText: getValidationErrorMessage({
|
|
226
|
-
type: (
|
|
193
|
+
type: (_26 = (_25 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _25 === void 0 ? void 0 : _25.bankPostalCode) === null || _26 === void 0 ? void 0 : _26.type,
|
|
227
194
|
label: props.text.bankPostalCodeLabel,
|
|
228
|
-
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,
|
|
229
|
-
fieldName: "bankPostalCode",
|
|
230
195
|
}),
|
|
231
196
|
}))),
|
|
232
197
|
],
|
|
233
198
|
},
|
|
234
199
|
13: {
|
|
235
|
-
input: (index.h("sl-input", Object.assign({ required: true, label: props.text.branchCodeLabel, name: "/branchCode", id: "branchCode", key: "branchCode", type: "text" }, (((
|
|
200
|
+
input: (index.h("sl-input", Object.assign({ required: true, label: props.text.branchCodeLabel, name: "/branchCode", id: "branchCode", key: "branchCode", type: "text" }, (((_27 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _27 === void 0 ? void 0 : _27.branchCode) && {
|
|
236
201
|
class: "error-input",
|
|
237
202
|
helpText: getValidationErrorMessage({
|
|
238
|
-
type: (
|
|
203
|
+
type: (_29 = (_28 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _28 === void 0 ? void 0 : _28.branchCode) === null || _29 === void 0 ? void 0 : _29.type,
|
|
239
204
|
label: props.text.branchCodeLabel,
|
|
240
|
-
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,
|
|
241
|
-
fieldName: "branchCode",
|
|
242
205
|
}),
|
|
243
206
|
})))),
|
|
244
207
|
},
|
|
245
208
|
14: {
|
|
246
|
-
input: (index.h("sl-select", Object.assign({ required: true, label: props.text.classificationLabel, name: "/beneficiaryClassification", id: "beneficiaryClassification", key: "beneficiaryClassification" }, (((
|
|
209
|
+
input: (index.h("sl-select", Object.assign({ required: true, label: props.text.classificationLabel, name: "/beneficiaryClassification", id: "beneficiaryClassification", key: "beneficiaryClassification" }, (((_30 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _30 === void 0 ? void 0 : _30.beneficiaryClassification) && {
|
|
247
210
|
class: "error-input",
|
|
248
211
|
helpText: getValidationErrorMessage({
|
|
249
|
-
type: (
|
|
212
|
+
type: (_32 = (_31 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _31 === void 0 ? void 0 : _31.beneficiaryClassification) === null || _32 === void 0 ? void 0 : _32.type,
|
|
250
213
|
label: props.text.classificationLabel,
|
|
251
|
-
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,
|
|
252
|
-
fieldName: "beneficiaryClassification",
|
|
253
214
|
}),
|
|
254
215
|
})),
|
|
255
216
|
index.h("sl-menu-item", { value: "BUSINESS" }, props.text.businessSelectItemLabel),
|
|
256
217
|
index.h("sl-menu-item", { value: "INDIVIDUAL" }, props.text.individualSelectItemLabel),
|
|
257
218
|
index.h("sl-menu-item", { value: "FOREIGN" }, props.text.foreignSelectItemLabel))),
|
|
258
219
|
},
|
|
220
|
+
15: {
|
|
221
|
+
input: (index.h("sl-input", Object.assign({ required: true, label: props.text.branchNameLabel, name: "/branchName", id: "branchName", key: "branchName", type: "text" }, (((_33 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _33 === void 0 ? void 0 : _33.branchName) && {
|
|
222
|
+
class: "error-input",
|
|
223
|
+
helpText: getValidationErrorMessage({
|
|
224
|
+
type: (_35 = (_34 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _34 === void 0 ? void 0 : _34.branchName) === null || _35 === void 0 ? void 0 : _35.type,
|
|
225
|
+
label: props.text.branchNameLabel,
|
|
226
|
+
}),
|
|
227
|
+
})))),
|
|
228
|
+
},
|
|
229
|
+
16: {
|
|
230
|
+
input: (index.h("sl-input", Object.assign({ required: true, label: props.text.classificationCodeLabel, name: "/classificationCode", id: "classificationCode", key: "classificationCode", type: "text" }, (((_36 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _36 === void 0 ? void 0 : _36.classificationCode) && {
|
|
231
|
+
class: "error-input",
|
|
232
|
+
helpText: getValidationErrorMessage({
|
|
233
|
+
type: (_38 = (_37 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _37 === void 0 ? void 0 : _37.classificationCode) === null || _38 === void 0 ? void 0 : _38.type,
|
|
234
|
+
label: props.text.classificationCodeLabel,
|
|
235
|
+
}),
|
|
236
|
+
})))),
|
|
237
|
+
},
|
|
259
238
|
};
|
|
260
239
|
}
|
|
261
240
|
|
|
@@ -842,95 +821,6 @@ const paypalFeeMap = {
|
|
|
842
821
|
const ACH_PAYMENT_METHOD = 3;
|
|
843
822
|
const WIRE_PAYMENT_METHOD = 5;
|
|
844
823
|
const PAYPAL_PAYMENT_METHOD = 7;
|
|
845
|
-
/**
|
|
846
|
-
* Maps GraphQL validation error field names to form field names.
|
|
847
|
-
*/
|
|
848
|
-
const API_FIELD_TO_FORM_FIELD = {
|
|
849
|
-
// bankProvinceState → form uses bankState
|
|
850
|
-
bankProvinceState: "bankState",
|
|
851
|
-
};
|
|
852
|
-
/**
|
|
853
|
-
* Maps Impact API error code paths (from validationErrors[].errorPath) to short,
|
|
854
|
-
* readable frontend error codes used in the ICU select props.
|
|
855
|
-
*/
|
|
856
|
-
const API_ERROR_PATH_TO_FRONTEND = {
|
|
857
|
-
// Beneficiary account name
|
|
858
|
-
"withdrawal.settings.error.empty_beneficiaryname": "empty",
|
|
859
|
-
"withdrawal.settings.error.invalid_character_beneficiaryname": "invalidCharacters",
|
|
860
|
-
"withdrawal.settings.error.numeric_beneficiaryname": "numeric",
|
|
861
|
-
"withdrawal_settings.error.beneficiaryname.size": "tooLong",
|
|
862
|
-
"withdrawal.settings.error.non_english_beneficiaryname": "nonEnglish",
|
|
863
|
-
"withdrawal_settings.error.business_beneficiaryname_match": "businessNameMismatch",
|
|
864
|
-
"withdrawal_settings.error.beneficiaryname_match": "nameMismatch",
|
|
865
|
-
"withdrawal_settings.error.business_checkpayeename_match": "businessPayeeMismatch",
|
|
866
|
-
"withdrawal_settings.error.checkpayeename_match": "payeeMismatch",
|
|
867
|
-
// Bank account number
|
|
868
|
-
"withdrawal.settings.error.accountnumber.empty": "empty",
|
|
869
|
-
"withdrawal.settings.error.accountnumber.uk": "invalidUk",
|
|
870
|
-
"withdrawal.settings.error.bankaccount.invalid": "invalid",
|
|
871
|
-
// IBAN
|
|
872
|
-
"withdrawal.settings.error.iban": "ibanEmpty",
|
|
873
|
-
"withdrawal.settings.error.iban.alphanumeric": "ibanAlphanumeric",
|
|
874
|
-
"withdrawal.settings.error.iban.invalid": "ibanInvalid",
|
|
875
|
-
"withdrawal.settings.error.iban.uk.country.mismatch": "ibanCountryMismatch",
|
|
876
|
-
// Routing code
|
|
877
|
-
"withdrawal.settings.error.bsbNumber": "invalidBsb",
|
|
878
|
-
"withdrawal.settings.error.sortcode": "invalidSortCode",
|
|
879
|
-
"withdrawal.settings.error.routingNumber": "empty",
|
|
880
|
-
"withdrawal.settings.error.routingcode": "invalid",
|
|
881
|
-
// SWIFT / BIC
|
|
882
|
-
"withdrawal.settings.error.bic": "empty",
|
|
883
|
-
"withdrawal.settings.error.bic.alphanumeric": "alphanumeric",
|
|
884
|
-
"withdrawal.settings.error.bic.invalid": "invalid",
|
|
885
|
-
// Bank account type
|
|
886
|
-
"global.error.invalid.accounttype": "empty",
|
|
887
|
-
// Bank name
|
|
888
|
-
"withdrawal.settings.error.bankName": "empty",
|
|
889
|
-
// Tax payer ID
|
|
890
|
-
"withdrawal.settings.error.taxPayerId": "empty",
|
|
891
|
-
"withdrawal.settings.error.taxPayerId.ar": "emptyAr",
|
|
892
|
-
"withdrawal.settings.error.taxPayerId.kr": "emptyKr",
|
|
893
|
-
"withdrawal.settings.error.taxPayerId.alphanumeric": "alphanumeric",
|
|
894
|
-
"withdrawal.settings.error.taxPayerId.alphanumeric.ar": "alphanumericAr",
|
|
895
|
-
"withdrawal.settings.error.taxPayerId.alphanumeric.kr": "alphanumericKr",
|
|
896
|
-
"withdrawal.settings.error.taxPayerId.invalid": "invalid",
|
|
897
|
-
"withdrawal.settings.error.taxPayerId.invalid.ar": "invalidAr",
|
|
898
|
-
"withdrawal.settings.error.taxPayerId.invalid.kr": "invalidKr",
|
|
899
|
-
"withdrawal.settings.error.taxPayerId.invalid.kzt": "invalidKzt",
|
|
900
|
-
"withdrawal.settings.error.taxPayerId.cnpj": "cnpjTooShort",
|
|
901
|
-
"withdrawal.settings.error.taxPayerId.cpf": "cpfTooShort",
|
|
902
|
-
// Patronymic name
|
|
903
|
-
"withdrawal.settings.error.patronymicName": "empty",
|
|
904
|
-
"withdrawal.settings.error.patronymicName.alphanumeric": "alphanumeric",
|
|
905
|
-
// VO code
|
|
906
|
-
"withdrawal.settings.error.voCode": "empty",
|
|
907
|
-
"withdrawal.settings.error.voCode.alphanumeric": "alphanumeric",
|
|
908
|
-
// Agency code
|
|
909
|
-
"withdrawal.settings.error.agencyCode": "empty",
|
|
910
|
-
"withdrawal.settings.error.agencyCode.alphanumeric": "alphanumeric",
|
|
911
|
-
"withdrawal.settings.error.agencyCode.length": "tooShort",
|
|
912
|
-
// Bank address fields
|
|
913
|
-
"withdrawal.settings.error.bankAddress": "empty",
|
|
914
|
-
"withdrawal.settings.error.bankCity": "empty",
|
|
915
|
-
"withdrawal.settings.error.bankProvinceState": "empty",
|
|
916
|
-
"withdrawal.settings.error.bankPostalCode": "empty",
|
|
917
|
-
// Branch code / name
|
|
918
|
-
"withdrawal.settings.error.branchCode": "invalid",
|
|
919
|
-
"withdrawal.settings.error.branchName": "empty",
|
|
920
|
-
// Classification code
|
|
921
|
-
"withdrawal.settings.error.classificationCode.invalid": "empty",
|
|
922
|
-
"withdrawal.settings.error.classificationCode.invalid.kzt": "invalidKzt",
|
|
923
|
-
// PayPal
|
|
924
|
-
"payment.error.email": "empty",
|
|
925
|
-
"payment.error.paypal_not_supported": "unsupportedCurrency",
|
|
926
|
-
"payment.error.email.invalid": "invalidEmail",
|
|
927
|
-
"payment.error.paypal_verification_incomplete": "verificationIncomplete",
|
|
928
|
-
// Payment schedule
|
|
929
|
-
"payment.error.no_threshold": "empty",
|
|
930
|
-
"payment.error.invalid_threshold": "invalid",
|
|
931
|
-
"payment.error.no_dayOfMonth": "empty",
|
|
932
|
-
"payment.error.invalid_dayOfMonth": "invalid",
|
|
933
|
-
};
|
|
934
824
|
function getFormInputs({ bitset, formMap }) {
|
|
935
825
|
// Convert bitset to binary representation
|
|
936
826
|
const binary = bitset.toString(2).padStart(Object.keys(formMap).length, "0");
|
|
@@ -954,7 +844,6 @@ const SAVE_WITHDRAWAL_SETTINGS = index_module.dist.gql `
|
|
|
954
844
|
validationErrors {
|
|
955
845
|
field
|
|
956
846
|
message
|
|
957
|
-
code
|
|
958
847
|
}
|
|
959
848
|
}
|
|
960
849
|
}
|
|
@@ -970,7 +859,6 @@ const UPDATE_WITHDRAWAL_SETTINGS = index_module.dist.gql `
|
|
|
970
859
|
validationErrors {
|
|
971
860
|
field
|
|
972
861
|
message
|
|
973
|
-
code
|
|
974
862
|
}
|
|
975
863
|
}
|
|
976
864
|
}
|
|
@@ -1143,13 +1031,10 @@ function useBankingInfoForm(props) {
|
|
|
1143
1031
|
else if (!success) {
|
|
1144
1032
|
console.error("Validation failed: ", validationErrors);
|
|
1145
1033
|
const mappedValidationErrors = validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.reduce((agg, error) => {
|
|
1146
|
-
const formField = API_FIELD_TO_FORM_FIELD[error.field] || error.field;
|
|
1147
|
-
const errorCode = API_ERROR_PATH_TO_FRONTEND[error.errorPath] || error.errorPath;
|
|
1148
1034
|
return {
|
|
1149
1035
|
...agg,
|
|
1150
|
-
[
|
|
1036
|
+
[error.field]: {
|
|
1151
1037
|
type: "invalid",
|
|
1152
|
-
errorCode,
|
|
1153
1038
|
},
|
|
1154
1039
|
};
|
|
1155
1040
|
}, {});
|
|
@@ -1160,7 +1045,7 @@ function useBankingInfoForm(props) {
|
|
|
1160
1045
|
return;
|
|
1161
1046
|
}
|
|
1162
1047
|
// Fire form change event
|
|
1163
|
-
window.dispatchEvent(new Event(
|
|
1048
|
+
window.dispatchEvent(new Event(usePayoutStatus.TAX_FORM_UPDATED_EVENT_KEY));
|
|
1164
1049
|
await refetch();
|
|
1165
1050
|
setStep("/dashboard");
|
|
1166
1051
|
}
|
|
@@ -1445,11 +1330,19 @@ const BankingInfoForm = class {
|
|
|
1445
1330
|
* @uiName Branch code field label
|
|
1446
1331
|
*/
|
|
1447
1332
|
this.branchCodeLabel = "Branch code";
|
|
1333
|
+
/**
|
|
1334
|
+
* @uiName Branch name field label
|
|
1335
|
+
*/
|
|
1336
|
+
this.branchNameLabel = "Branch name";
|
|
1448
1337
|
/**
|
|
1449
1338
|
* Label text for the classification input field
|
|
1450
1339
|
* @uiName Classification field label
|
|
1451
1340
|
*/
|
|
1452
1341
|
this.classificationLabel = "Classification";
|
|
1342
|
+
/**
|
|
1343
|
+
* @uiName Classification code field label
|
|
1344
|
+
*/
|
|
1345
|
+
this.classificationCodeLabel = "KBE Code";
|
|
1453
1346
|
/**
|
|
1454
1347
|
* @uiName Taxpayer ID field label
|
|
1455
1348
|
*/
|
|
@@ -1564,156 +1457,6 @@ const BankingInfoForm = class {
|
|
|
1564
1457
|
* @uiName Information modal button text
|
|
1565
1458
|
*/
|
|
1566
1459
|
this.modalButtonText = "I understand, update my information";
|
|
1567
|
-
// ──────────────────────────────────────────────────────────────────
|
|
1568
|
-
// Per-field validation error messages
|
|
1569
|
-
// Each prop uses ICU select on {errorCode} to pick the right message.
|
|
1570
|
-
// Error codes are short frontend keys mapped from the API error codes.
|
|
1571
|
-
// The `other` branch displays the raw API message directly via {errorCode},
|
|
1572
|
-
// which is already human-readable English (e.g. "Invalid Routing Code").
|
|
1573
|
-
// ──────────────────────────────────────────────────────────────────
|
|
1574
|
-
/**
|
|
1575
|
-
* Error messages for the beneficiary / account holder name field.
|
|
1576
|
-
* Supports error codes: empty, invalidCharacters, numeric, tooLong,
|
|
1577
|
-
* nonEnglish, businessNameMismatch, nameMismatch, businessPayeeMismatch, payeeMismatch
|
|
1578
|
-
* @uiName Beneficiary account name error
|
|
1579
|
-
* @uiWidget textArea
|
|
1580
|
-
*/
|
|
1581
|
-
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}}}";
|
|
1582
|
-
/**
|
|
1583
|
-
* Error messages for the bank account number / IBAN field.
|
|
1584
|
-
* Supports error codes: empty, invalidUk, invalid, ibanEmpty,
|
|
1585
|
-
* ibanAlphanumeric, ibanInvalid, ibanCountryMismatch
|
|
1586
|
-
* @uiName Bank account number / IBAN error
|
|
1587
|
-
* @uiWidget textArea
|
|
1588
|
-
*/
|
|
1589
|
-
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}}}";
|
|
1590
|
-
/**
|
|
1591
|
-
* Error messages for the routing code / sort code / BSB field.
|
|
1592
|
-
* Supports error codes: invalidBsb, invalidSortCode, empty, invalid
|
|
1593
|
-
* @uiName Routing code error
|
|
1594
|
-
* @uiWidget textArea
|
|
1595
|
-
*/
|
|
1596
|
-
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}}}";
|
|
1597
|
-
/**
|
|
1598
|
-
* Error messages for the SWIFT / BIC code field.
|
|
1599
|
-
* Supports error codes: empty, alphanumeric, invalid
|
|
1600
|
-
* @uiName SWIFT code error
|
|
1601
|
-
* @uiWidget textArea
|
|
1602
|
-
*/
|
|
1603
|
-
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}}}";
|
|
1604
|
-
/**
|
|
1605
|
-
* Error messages for the bank account type field.
|
|
1606
|
-
* Supports error codes: empty
|
|
1607
|
-
* @uiName Bank account type error
|
|
1608
|
-
* @uiWidget textArea
|
|
1609
|
-
*/
|
|
1610
|
-
this.bankAccountTypeError = "{errorCode, select, empty {Bank account type is required} other {{errorCode}}}";
|
|
1611
|
-
/**
|
|
1612
|
-
* Error messages for the bank name field.
|
|
1613
|
-
* Supports error codes: empty
|
|
1614
|
-
* @uiName Bank name error
|
|
1615
|
-
* @uiWidget textArea
|
|
1616
|
-
*/
|
|
1617
|
-
this.bankNameError = "{errorCode, select, empty {Bank name is required} other {{errorCode}}}";
|
|
1618
|
-
/**
|
|
1619
|
-
* Error messages for the tax payer ID / classification entity field.
|
|
1620
|
-
* Supports error codes: empty, emptyAr, emptyKr, alphanumeric, alphanumericAr,
|
|
1621
|
-
* alphanumericKr, invalid, invalidAr, invalidKr, invalidKzt, cnpjTooShort, cpfTooShort
|
|
1622
|
-
* @uiName Tax payer ID error
|
|
1623
|
-
* @uiWidget textArea
|
|
1624
|
-
*/
|
|
1625
|
-
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}}}";
|
|
1626
|
-
/**
|
|
1627
|
-
* Error messages for the patronymic name field.
|
|
1628
|
-
* Supports error codes: empty, alphanumeric
|
|
1629
|
-
* @uiName Patronymic name error
|
|
1630
|
-
* @uiWidget textArea
|
|
1631
|
-
*/
|
|
1632
|
-
this.patronymicNameError = "{errorCode, select, empty {Patronymic name is required} alphanumeric {Patronymic name must contain only letters and numbers} other {{errorCode}}}";
|
|
1633
|
-
/**
|
|
1634
|
-
* Error messages for the VO code field.
|
|
1635
|
-
* Supports error codes: empty, alphanumeric
|
|
1636
|
-
* @uiName VO code error
|
|
1637
|
-
* @uiWidget textArea
|
|
1638
|
-
*/
|
|
1639
|
-
this.voCodeError = "{errorCode, select, empty {VO code is required} alphanumeric {VO code must contain only letters and numbers} other {{errorCode}}}";
|
|
1640
|
-
/**
|
|
1641
|
-
* Error messages for the agency code field.
|
|
1642
|
-
* Supports error codes: empty, alphanumeric, tooShort
|
|
1643
|
-
* @uiName Agency code error
|
|
1644
|
-
* @uiWidget textArea
|
|
1645
|
-
*/
|
|
1646
|
-
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}}}";
|
|
1647
|
-
/**
|
|
1648
|
-
* Error messages for the bank address field.
|
|
1649
|
-
* Supports error codes: empty
|
|
1650
|
-
* @uiName Bank address error
|
|
1651
|
-
* @uiWidget textArea
|
|
1652
|
-
*/
|
|
1653
|
-
this.bankAddressError = "{errorCode, select, empty {Bank address is required} other {{errorCode}}}";
|
|
1654
|
-
/**
|
|
1655
|
-
* Error messages for the bank city field.
|
|
1656
|
-
* Supports error codes: empty
|
|
1657
|
-
* @uiName Bank city error
|
|
1658
|
-
* @uiWidget textArea
|
|
1659
|
-
*/
|
|
1660
|
-
this.bankCityError = "{errorCode, select, empty {Bank city is required} other {{errorCode}}}";
|
|
1661
|
-
/**
|
|
1662
|
-
* Error messages for the bank province/state field.
|
|
1663
|
-
* Supports error codes: empty
|
|
1664
|
-
* @uiName Bank province/state error
|
|
1665
|
-
* @uiWidget textArea
|
|
1666
|
-
*/
|
|
1667
|
-
this.bankStateError = "{errorCode, select, empty {Bank province/state is required} other {{errorCode}}}";
|
|
1668
|
-
/**
|
|
1669
|
-
* Error messages for the bank postal code field.
|
|
1670
|
-
* Supports error codes: empty
|
|
1671
|
-
* @uiName Bank postal code error
|
|
1672
|
-
* @uiWidget textArea
|
|
1673
|
-
*/
|
|
1674
|
-
this.bankPostalCodeError = "{errorCode, select, empty {Bank postal code is required} other {{errorCode}}}";
|
|
1675
|
-
/**
|
|
1676
|
-
* Error messages for the branch code field.
|
|
1677
|
-
* Supports error codes: invalid
|
|
1678
|
-
* @uiName Branch code error
|
|
1679
|
-
* @uiWidget textArea
|
|
1680
|
-
*/
|
|
1681
|
-
this.branchCodeError = "{errorCode, select, invalid {Branch code is invalid} other {{errorCode}}}";
|
|
1682
|
-
/**
|
|
1683
|
-
* Error messages for the branch name field.
|
|
1684
|
-
* Supports error codes: empty
|
|
1685
|
-
* @uiName Branch name error
|
|
1686
|
-
* @uiWidget textArea
|
|
1687
|
-
*/
|
|
1688
|
-
this.branchNameError = "{errorCode, select, empty {Branch name is required} other {{errorCode}}}";
|
|
1689
|
-
/**
|
|
1690
|
-
* Error messages for the classification code field.
|
|
1691
|
-
* Supports error codes: empty, invalidKzt
|
|
1692
|
-
* @uiName Classification code error
|
|
1693
|
-
* @uiWidget textArea
|
|
1694
|
-
*/
|
|
1695
|
-
this.classificationCodeError = "{errorCode, select, empty {Classification code is required} invalidKzt {Classification code must be exactly 2 characters} other {{errorCode}}}";
|
|
1696
|
-
/**
|
|
1697
|
-
* Error messages for the PayPal email field.
|
|
1698
|
-
* Supports error codes: empty, unsupportedCurrency, invalidEmail, verificationIncomplete
|
|
1699
|
-
* @uiName PayPal email error
|
|
1700
|
-
* @uiWidget textArea
|
|
1701
|
-
*/
|
|
1702
|
-
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}}}";
|
|
1703
|
-
/**
|
|
1704
|
-
* Error messages for the payment threshold field.
|
|
1705
|
-
* Supports error codes: empty, invalid
|
|
1706
|
-
* @uiName Payment threshold error
|
|
1707
|
-
* @uiWidget textArea
|
|
1708
|
-
*/
|
|
1709
|
-
this.paymentThresholdError = "{errorCode, select, empty {Payment threshold is required} invalid {Payment threshold is invalid} other {{errorCode}}}";
|
|
1710
|
-
/**
|
|
1711
|
-
* Error messages for the payment day field.
|
|
1712
|
-
* Supports error codes: empty, invalid
|
|
1713
|
-
* @uiName Payment day error
|
|
1714
|
-
* @uiWidget textArea
|
|
1715
|
-
*/
|
|
1716
|
-
this.paymentDayError = "{errorCode, select, empty {Payment day is required} invalid {Payment day must be the 1st or the 15th} other {{errorCode}}}";
|
|
1717
1460
|
domContextHooks_module.h$1(this);
|
|
1718
1461
|
}
|
|
1719
1462
|
disconnectedCallback() { }
|
|
@@ -1727,54 +1470,17 @@ const BankingInfoForm = class {
|
|
|
1727
1470
|
loadingErrorAlertDescription: props.loadingErrorAlertDescription,
|
|
1728
1471
|
loadingErrorAlertHeader: props.loadingErrorAlertHeader,
|
|
1729
1472
|
},
|
|
1730
|
-
errorMessages: {
|
|
1731
|
-
beneficiaryAccountName: props.beneficiaryAccountNameError,
|
|
1732
|
-
bankAccountNumber: props.bankAccountNumberError,
|
|
1733
|
-
routingCode: props.routingCodeError,
|
|
1734
|
-
swiftCode: props.swiftCodeError,
|
|
1735
|
-
bankAccountType: props.bankAccountTypeError,
|
|
1736
|
-
bankName: props.bankNameError,
|
|
1737
|
-
taxPayerId: props.taxPayerIdError,
|
|
1738
|
-
patronymicName: props.patronymicNameError,
|
|
1739
|
-
voCode: props.voCodeError,
|
|
1740
|
-
agencyCode: props.agencyCodeError,
|
|
1741
|
-
bankAddress: props.bankAddressError,
|
|
1742
|
-
bankCity: props.bankCityError,
|
|
1743
|
-
bankState: props.bankStateError,
|
|
1744
|
-
bankPostalCode: props.bankPostalCodeError,
|
|
1745
|
-
branchCode: props.branchCodeError,
|
|
1746
|
-
branchName: props.branchNameError,
|
|
1747
|
-
beneficiaryClassification: props.classificationCodeError,
|
|
1748
|
-
paypalEmailAddress: props.paypalEmailError,
|
|
1749
|
-
paymentThreshold: props.paymentThresholdError,
|
|
1750
|
-
paymentDay: props.paymentDayError,
|
|
1751
|
-
},
|
|
1752
1473
|
};
|
|
1753
1474
|
}
|
|
1754
1475
|
render() {
|
|
1755
|
-
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
|
|
1476
|
+
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;
|
|
1756
1477
|
const props = index_module.isDemo()
|
|
1757
1478
|
? useDemoBankingInfoForm(this)
|
|
1758
1479
|
: useBankingInfoForm(this);
|
|
1759
1480
|
const { errors } = props.states.formState;
|
|
1760
1481
|
const fieldRequiredError = this.fieldRequiredError;
|
|
1761
1482
|
const fieldInvalidError = this.fieldInvalidError;
|
|
1762
|
-
function getValidationErrorMessage({ type, label,
|
|
1763
|
-
var _a;
|
|
1764
|
-
// If we have a specific error code from the API, try to use
|
|
1765
|
-
// the per-field ICU error message template for a rich message
|
|
1766
|
-
if (type === "invalid" && errorCode && fieldName) {
|
|
1767
|
-
const errorTemplate = (_a = props.text.errorMessages) === null || _a === void 0 ? void 0 : _a[fieldName];
|
|
1768
|
-
if (errorTemplate) {
|
|
1769
|
-
return global.intl.formatMessage({
|
|
1770
|
-
id: `fieldError-${fieldName}-${errorCode}`,
|
|
1771
|
-
defaultMessage: errorTemplate,
|
|
1772
|
-
}, {
|
|
1773
|
-
errorCode,
|
|
1774
|
-
fieldName: label,
|
|
1775
|
-
});
|
|
1776
|
-
}
|
|
1777
|
-
}
|
|
1483
|
+
function getValidationErrorMessage({ type, label, }) {
|
|
1778
1484
|
if (type === "required") {
|
|
1779
1485
|
return global.intl.formatMessage({
|
|
1780
1486
|
id: `requiredText-${label}`,
|
|
@@ -1857,45 +1563,37 @@ const BankingInfoForm = class {
|
|
|
1857
1563
|
helpText: getValidationErrorMessage({
|
|
1858
1564
|
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,
|
|
1859
1565
|
label: props.text.bankLocationLabel,
|
|
1860
|
-
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,
|
|
1861
|
-
fieldName: "bankCountry",
|
|
1862
1566
|
}),
|
|
1863
1567
|
})), index.h("sl-input", { disabled: props.states.saveLoading, class: sheet.classes.SearchInput, placeholder: this.searchForCountryText, onKeyDown: (e) => {
|
|
1864
1568
|
// Stop shoelace intercepting key presses
|
|
1865
1569
|
e.stopPropagation();
|
|
1866
1570
|
}, "onSl-input": (e) => {
|
|
1867
1571
|
props.callbacks.setCountrySearch(e.target.value);
|
|
1868
|
-
} }), (
|
|
1869
|
-
|
|
1572
|
+
} }), (_d = props.states.countries) === null || _d === void 0 ? void 0 :
|
|
1573
|
+
_d.map((country) => {
|
|
1870
1574
|
return (index.h("sl-menu-item", { value: country.countryCode }, country.displayName));
|
|
1871
|
-
}), (
|
|
1872
|
-
|
|
1575
|
+
}), (_f = (_e = props.states) === null || _e === void 0 ? void 0 : _e.allCountries) === null || _f === void 0 ? void 0 :
|
|
1576
|
+
_f.map((c) => (index.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } }, c.displayName))))),
|
|
1873
1577
|
paymentMethodSlot: (index.h("sl-input", { key: "paymentMethod", label: props.text.paymentMethod, placeholder: props.states.paymentMethodFeeLabel, disabled: true })),
|
|
1874
|
-
paymentThresholdSelectSlot: (index.h("sl-select", Object.assign({ required: true, disabled: props.states.saveLoading, label: props.text.paymentThresholdSelectLabel, name: "/paymentThreshold", id: "paymentThreshold", value: ((
|
|
1578
|
+
paymentThresholdSelectSlot: (index.h("sl-select", Object.assign({ required: true, disabled: props.states.saveLoading, label: props.text.paymentThresholdSelectLabel, name: "/paymentThreshold", id: "paymentThreshold", value: ((_h = (_g = props.states) === null || _g === void 0 ? void 0 : _g.formState) === null || _h === void 0 ? void 0 : _h.paymentThreshold) || "" }, (((_j = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _j === void 0 ? void 0 : _j.paymentThreshold) && {
|
|
1875
1579
|
class: "error-input",
|
|
1876
1580
|
helpText: getValidationErrorMessage({
|
|
1877
|
-
type: (
|
|
1581
|
+
type: (_l = (_k = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _k === void 0 ? void 0 : _k.paymentThreshold) === null || _l === void 0 ? void 0 : _l.type,
|
|
1878
1582
|
label: props.text.paymentThresholdSelectLabel,
|
|
1879
|
-
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,
|
|
1880
|
-
fieldName: "paymentThreshold",
|
|
1881
1583
|
}),
|
|
1882
1584
|
})), props.states.thresholds.map((t) => (index.h("sl-menu-item", { value: t }, `${props.states.currency}${t}`))))),
|
|
1883
|
-
paymentFixedDaySelectSlot: (index.h("sl-select", Object.assign({ required: true, disabled: props.states.saveLoading, label: props.text.paymentDaySelectLabel, value: ((
|
|
1585
|
+
paymentFixedDaySelectSlot: (index.h("sl-select", Object.assign({ required: true, disabled: props.states.saveLoading, label: props.text.paymentDaySelectLabel, value: ((_o = (_m = props.states) === null || _m === void 0 ? void 0 : _m.formState) === null || _o === void 0 ? void 0 : _o.paymentDay) || "", name: "/paymentDay", id: "paymentDay" }, (((_p = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _p === void 0 ? void 0 : _p.paymentDay) && {
|
|
1884
1586
|
class: "error-input",
|
|
1885
1587
|
helpText: getValidationErrorMessage({
|
|
1886
|
-
type: (
|
|
1588
|
+
type: (_r = (_q = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _q === void 0 ? void 0 : _q.paymentDay) === null || _r === void 0 ? void 0 : _r.type,
|
|
1887
1589
|
label: props.text.paymentDaySelectLabel,
|
|
1888
|
-
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,
|
|
1889
|
-
fieldName: "paymentDay",
|
|
1890
1590
|
}),
|
|
1891
1591
|
})), index.h("sl-menu-item", { value: "1" }, props.text.paymentDayFirstOfMonthLabelText), index.h("sl-menu-item", { value: "15" }, props.text.paymentDayFifteenthOfMonthLabelText))),
|
|
1892
|
-
paypalInputSlot: (index.h("sl-input", Object.assign({ required: true, disabled: props.states.saveLoading, value: ((
|
|
1592
|
+
paypalInputSlot: (index.h("sl-input", Object.assign({ required: true, disabled: props.states.saveLoading, value: ((_t = (_s = props.states) === null || _s === void 0 ? void 0 : _s.formState) === null || _t === void 0 ? void 0 : _t.paypalEmailAddress) || "", label: props.text.payPalInputLabel, key: "paypalEmailAddress", name: "/paypalEmailAddress", id: "paypalEmailAddress", type: "text" }, (((_w = (_v = (_u = props.states.formState) === null || _u === void 0 ? void 0 : _u.errors) === null || _v === void 0 ? void 0 : _v.inputErrors) === null || _w === void 0 ? void 0 : _w.paypalEmailAddress) && {
|
|
1893
1593
|
class: "error-input",
|
|
1894
1594
|
helpText: getValidationErrorMessage({
|
|
1895
|
-
type: (
|
|
1595
|
+
type: (_0 = (_z = (_y = (_x = props.states.formState) === null || _x === void 0 ? void 0 : _x.errors) === null || _y === void 0 ? void 0 : _y.inputErrors) === null || _z === void 0 ? void 0 : _z.paypalEmailAddress) === null || _0 === void 0 ? void 0 : _0.type,
|
|
1896
1596
|
label: props.text.payPalInputLabel,
|
|
1897
|
-
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,
|
|
1898
|
-
fieldName: "paypalEmailAddress",
|
|
1899
1597
|
}),
|
|
1900
1598
|
})))),
|
|
1901
1599
|
} })));
|
|
@@ -2102,7 +1800,7 @@ function useDocusignForm(props) {
|
|
|
2102
1800
|
if (!result.completeImpactPublisherTaxDocument.success)
|
|
2103
1801
|
throw new Error();
|
|
2104
1802
|
// Fire form change event
|
|
2105
|
-
window.dispatchEvent(new Event(
|
|
1803
|
+
window.dispatchEvent(new Event(usePayoutStatus.TAX_FORM_UPDATED_EVENT_KEY));
|
|
2106
1804
|
setShowExitButton(true);
|
|
2107
1805
|
}
|
|
2108
1806
|
catch (e) {
|
|
@@ -2988,7 +2686,7 @@ function useIndirectTaxForm(props) {
|
|
|
2988
2686
|
.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;
|
|
2989
2687
|
const hasValidCurrentDocument = data.validTaxDocument(resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) && (resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.currentTaxDocument);
|
|
2990
2688
|
// Fire form change event
|
|
2991
|
-
window.dispatchEvent(new Event(
|
|
2689
|
+
window.dispatchEvent(new Event(usePayoutStatus.TAX_FORM_UPDATED_EVENT_KEY));
|
|
2992
2690
|
return {
|
|
2993
2691
|
resultPublisher,
|
|
2994
2692
|
hasValidCurrentDocument,
|
|
@@ -3144,7 +2842,7 @@ const IndirectTaxForm = class {
|
|
|
3144
2842
|
/**
|
|
3145
2843
|
* @uiName Indirect tax number field label
|
|
3146
2844
|
*/
|
|
3147
|
-
this.indirectTaxNumber = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}}";
|
|
2845
|
+
this.indirectTaxNumber = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number} other {Tax number}}";
|
|
3148
2846
|
/**
|
|
3149
2847
|
* Displayed to participants registered for QST.
|
|
3150
2848
|
* @uiName QST number field label
|
|
@@ -3183,7 +2881,7 @@ const IndirectTaxForm = class {
|
|
|
3183
2881
|
/**
|
|
3184
2882
|
* @uiName Missing indirect tax number error message
|
|
3185
2883
|
*/
|
|
3186
|
-
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";
|
|
2884
|
+
this.indirectTaxNumberError = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number} other {Tax number}} is required";
|
|
3187
2885
|
/**
|
|
3188
2886
|
* Placeholder text displayed in the country search dropdown
|
|
3189
2887
|
* @uiName Country field placeholder text
|
|
@@ -3994,7 +3692,7 @@ const PayoutDetailsCard = class {
|
|
|
3994
3692
|
* Badge text indicating payout status
|
|
3995
3693
|
* @uiName Payout badge status text
|
|
3996
3694
|
*/
|
|
3997
|
-
this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
|
|
3695
|
+
this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} other {Failed}}";
|
|
3998
3696
|
/**
|
|
3999
3697
|
* Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
|
|
4000
3698
|
* @uiName Payout schedule by threshold text
|
|
@@ -5048,7 +4746,7 @@ const TaxAndCashDashboard = class {
|
|
|
5048
4746
|
/**
|
|
5049
4747
|
* @uiName Payout status badge
|
|
5050
4748
|
*/
|
|
5051
|
-
this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
|
|
4749
|
+
this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} other {Failed} }";
|
|
5052
4750
|
/**
|
|
5053
4751
|
* Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
|
|
5054
4752
|
* @uiName Payout schedule by threshold text
|
|
@@ -5399,13 +5097,8 @@ function useUserInfoForm(props) {
|
|
|
5399
5097
|
lastName: user.impactConnection.user.lastName,
|
|
5400
5098
|
countryCode: user.impactConnection.publisher.countryCode,
|
|
5401
5099
|
currency: user.impactConnection.publisher.currency,
|
|
5402
|
-
|
|
5403
|
-
|
|
5404
|
-
? null
|
|
5405
|
-
: user.impactConnection.publisher.phoneNumberCountryCode,
|
|
5406
|
-
phoneNumber: user.impactConnection.publisher.phoneNumber === "0000000"
|
|
5407
|
-
? null
|
|
5408
|
-
: user.impactConnection.publisher.phoneNumber,
|
|
5100
|
+
phoneNumberCountryCode: user.impactConnection.publisher.phoneNumberCountryCode,
|
|
5101
|
+
phoneNumber: user.impactConnection.publisher.phoneNumber,
|
|
5409
5102
|
address: user.impactConnection.publisher.billingAddress,
|
|
5410
5103
|
city: user.impactConnection.publisher.billingCity,
|
|
5411
5104
|
state: user.impactConnection.publisher.billingState,
|
|
@@ -5509,7 +5202,7 @@ function useUserInfoForm(props) {
|
|
|
5509
5202
|
.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;
|
|
5510
5203
|
const hasValidCurrentDocument = data.validTaxDocument(resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) && (resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.currentTaxDocument);
|
|
5511
5204
|
// Fire form change event
|
|
5512
|
-
window.dispatchEvent(new Event(
|
|
5205
|
+
window.dispatchEvent(new Event(usePayoutStatus.TAX_FORM_UPDATED_EVENT_KEY));
|
|
5513
5206
|
return {
|
|
5514
5207
|
resultPublisher,
|
|
5515
5208
|
hasValidCurrentDocument,
|