@saasquatch/mint-components 2.1.7-2 → 2.1.8-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-72c43888.js → ShadowViewAddon-1d15cdf7.js} +5 -5
- package/dist/cjs/{data-ee577cc1.js → data-8c8a08f6.js} +2 -2
- package/dist/cjs/{global-ab5fc787.js → global-b7b1b8fe.js} +3126 -3177
- package/dist/cjs/{index.module-9d33658c.js → index.module-f8c8495f.js} +146 -153
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/mint-components.cjs.js +3 -3
- package/dist/cjs/{re-render-2ebec4aa.js → re-render-72a0ef45.js} +1 -1
- package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +399 -58
- package/dist/cjs/sqm-big-stat_45.cjs.entry.js +13 -13
- package/dist/cjs/sqm-close-button.cjs.entry.js +1 -1
- package/dist/cjs/sqm-code-verification.cjs.entry.js +3 -3
- package/dist/cjs/sqm-context-router.cjs.entry.js +1 -1
- package/dist/cjs/sqm-email-verification.cjs.entry.js +3 -3
- 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-e5306128.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-a4a9b883.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-5cf03a1f.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-43a20d6f.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-31b1a9d9.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-c8d9a614.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 +14 -14
- 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-96f0351e.js → sqm-user-info-form-view-53306f6e.js} +2 -2
- package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +1 -1
- package/dist/cjs/sqm-widget-verification.cjs.entry.js +1 -1
- package/dist/cjs/{useChildElements-6b1f61c5.js → useChildElements-041127d7.js} +1 -1
- package/dist/cjs/{useInstantAccessRegistration-1ba143b1.js → useInstantAccessRegistration-2398df36.js} +2 -2
- package/dist/cjs/{useLeadFormState-eace28b3.js → useLeadFormState-b4c2ab5b.js} +2 -2
- package/dist/cjs/{usePayoutStatus-c812303d.js → usePayoutStatus-0192fccd.js} +1 -1
- package/dist/cjs/{usePortalRegistrationForm-ae89c992.js → usePortalRegistrationForm-23ee2d62.js} +2 -2
- package/dist/cjs/{useReferralCodes-d78c563e.js → useReferralCodes-0f7948af.js} +1 -1
- package/dist/cjs/{useReferralTable-b8414623.js → useReferralTable-6e9de0d5.js} +3 -3
- package/dist/cjs/{useRegistrationFormState-1a8a6507.js → useRegistrationFormState-4fe5b770.js} +1 -1
- package/dist/cjs/{useVerificationEmail-c6363436.js → useVerificationEmail-5d19aa99.js} +1 -1
- package/dist/cjs/{utilities-15548f3e.js → utilities-fcdb9504.js} +1 -1
- 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 +109 -1
- package/dist/esm/{ShadowViewAddon-cb1ee90e.js → ShadowViewAddon-53b9090b.js} +5 -5
- package/dist/esm/{data-32eff0f9.js → data-12e6aae1.js} +2 -2
- package/dist/esm/{global-52a25cf2.js → global-96c14d63.js} +3126 -3177
- package/dist/esm/{index.module-8ba90d99.js → index.module-b23fdad8.js} +147 -152
- package/dist/esm/loader.js +3 -3
- package/dist/esm/mint-components.js +3 -3
- package/dist/esm/{re-render-6d98f869.js → re-render-f30aeb6b.js} +1 -1
- package/dist/esm/sqm-banking-info-form_10.entry.js +399 -58
- package/dist/esm/sqm-big-stat_45.entry.js +13 -13
- package/dist/esm/sqm-close-button.entry.js +1 -1
- package/dist/esm/sqm-code-verification.entry.js +3 -3
- package/dist/esm/sqm-context-router.entry.js +1 -1
- package/dist/esm/sqm-email-verification.entry.js +3 -3
- 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-a38ea688.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-e94e861c.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-8e354314.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-b2637296.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-0f1eec15.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-42f7bb1e.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 +14 -14
- 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-1703b56b.js → sqm-user-info-form-view-19d81a2b.js} +2 -2
- package/dist/esm/sqm-widget-verification-controller.entry.js +1 -1
- package/dist/esm/sqm-widget-verification.entry.js +1 -1
- package/dist/esm/{useChildElements-6d7c412e.js → useChildElements-9bccfb72.js} +1 -1
- package/dist/esm/{useInstantAccessRegistration-e27f5083.js → useInstantAccessRegistration-69fefed0.js} +2 -2
- package/dist/esm/{useLeadFormState-5a52a0ba.js → useLeadFormState-dd4e8b08.js} +2 -2
- package/dist/esm/{usePayoutStatus-2d5683d8.js → usePayoutStatus-46c0c289.js} +1 -1
- package/dist/esm/{usePortalRegistrationForm-0f11909c.js → usePortalRegistrationForm-62de6fb1.js} +2 -2
- package/dist/esm/{useReferralCodes-2415f732.js → useReferralCodes-52ca720f.js} +1 -1
- package/dist/esm/{useReferralTable-30b590ba.js → useReferralTable-92af4133.js} +3 -3
- package/dist/esm/{useRegistrationFormState-0666533e.js → useRegistrationFormState-2c090c38.js} +1 -1
- package/dist/esm/{useVerificationEmail-11a52af0.js → useVerificationEmail-c13c3b51.js} +1 -1
- package/dist/esm/{utilities-e613f25f.js → utilities-77b1e0cc.js} +1 -1
- package/dist/esm-es5/{ShadowViewAddon-cb1ee90e.js → ShadowViewAddon-53b9090b.js} +1 -1
- package/dist/esm-es5/{data-32eff0f9.js → data-12e6aae1.js} +1 -1
- package/dist/esm-es5/global-96c14d63.js +271 -0
- package/dist/esm-es5/index.module-b23fdad8.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/{re-render-6d98f869.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 -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.entry.js +1 -1
- 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-a38ea688.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-e94e861c.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-8e354314.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-b2637296.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-0f1eec15.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-42f7bb1e.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-1703b56b.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 -1
- package/dist/esm-es5/{useChildElements-6d7c412e.js → useChildElements-9bccfb72.js} +1 -1
- package/dist/esm-es5/{useInstantAccessRegistration-e27f5083.js → useInstantAccessRegistration-69fefed0.js} +1 -1
- package/dist/esm-es5/{useLeadFormState-5a52a0ba.js → useLeadFormState-dd4e8b08.js} +1 -1
- package/dist/esm-es5/{usePayoutStatus-2d5683d8.js → usePayoutStatus-46c0c289.js} +1 -1
- package/dist/esm-es5/{usePortalRegistrationForm-0f11909c.js → usePortalRegistrationForm-62de6fb1.js} +1 -1
- package/dist/esm-es5/{useReferralCodes-2415f732.js → useReferralCodes-52ca720f.js} +1 -1
- package/dist/esm-es5/{useReferralTable-30b590ba.js → useReferralTable-92af4133.js} +1 -1
- package/dist/esm-es5/{useRegistrationFormState-0666533e.js → useRegistrationFormState-2c090c38.js} +1 -1
- package/dist/esm-es5/{useVerificationEmail-11a52af0.js → useVerificationEmail-c13c3b51.js} +1 -1
- package/dist/esm-es5/{utilities-e613f25f.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-fb98cee0.entry.js → p-013564b3.entry.js} +1 -1
- package/dist/mint-components/p-02499e08.entry.js +1 -0
- package/dist/mint-components/{p-31b28c8f.system.entry.js → p-027fc3be.system.entry.js} +1 -1
- package/dist/mint-components/{p-86c73bdf.js → p-035d9b65.js} +1 -1
- package/dist/mint-components/{p-cfe751eb.system.js → p-036a2617.system.js} +1 -1
- package/dist/mint-components/{p-f2226e5b.entry.js → p-058aefe1.entry.js} +1 -1
- package/dist/mint-components/{p-f051702e.system.entry.js → p-0706cf9e.system.entry.js} +1 -1
- package/dist/mint-components/{p-b713513d.entry.js → p-09348341.entry.js} +1 -1
- package/dist/mint-components/{p-86c36896.entry.js → p-09f7aacd.entry.js} +2 -2
- package/dist/mint-components/{p-c9829d6e.js → p-0c0d4065.js} +3 -3
- package/dist/mint-components/p-0d83907e.js +1 -0
- package/dist/mint-components/{p-a0af6347.entry.js → p-0e6c90b1.entry.js} +1 -1
- package/dist/mint-components/{p-234b171f.system.js → p-172675ca.system.js} +1 -1
- package/dist/mint-components/p-17b32de7.system.entry.js +1 -0
- package/dist/mint-components/{p-e02e6d8e.system.js → p-19c441b2.system.js} +1 -1
- package/dist/mint-components/{p-9733d6c5.system.js → p-205cfdcd.system.js} +1 -1
- package/dist/mint-components/{p-90032cd8.entry.js → p-25558a33.entry.js} +2 -2
- package/dist/mint-components/{p-49ccf070.system.entry.js → p-2b4af8e8.system.entry.js} +1 -1
- package/dist/mint-components/{p-473ba636.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-ec94b3a7.js → p-3286ef38.js} +1 -1
- package/dist/mint-components/{p-1a7c8d21.js → p-3366b81e.js} +2 -2
- package/dist/mint-components/{p-aebd34d3.system.js → p-3adbfd0b.system.js} +2 -2
- package/dist/mint-components/p-3bc62ca6.entry.js +1 -0
- package/dist/mint-components/p-4da5a3fe.system.entry.js +1 -0
- package/dist/mint-components/{p-9d03498c.system.entry.js → p-5141769d.system.entry.js} +1 -1
- package/dist/mint-components/{p-7e3ef4dd.entry.js → p-52674798.entry.js} +1 -1
- package/dist/mint-components/{p-d9652c39.system.entry.js → p-54ea8b9b.system.entry.js} +1 -1
- package/dist/mint-components/{p-980136ca.entry.js → p-55676213.entry.js} +1 -1
- package/dist/mint-components/p-5b1d2866.system.js +1 -0
- package/dist/mint-components/{p-0d4888ab.system.entry.js → p-5b871e38.system.entry.js} +1 -1
- package/dist/mint-components/p-5c4ba8a0.entry.js +1 -0
- package/dist/mint-components/{p-4a6584bd.system.entry.js → p-5ce78407.system.entry.js} +1 -1
- package/dist/mint-components/{p-e6d2da4a.entry.js → p-5ff7b000.entry.js} +1 -1
- package/dist/mint-components/{p-b39f5ac8.entry.js → p-61897e72.entry.js} +1 -1
- package/dist/mint-components/{p-2b500e23.system.entry.js → p-626b31cb.system.entry.js} +1 -1
- package/dist/mint-components/{p-356e21e5.js → p-642f2c89.js} +1 -1
- package/dist/mint-components/{p-bd37467f.entry.js → p-653db72e.entry.js} +1 -1
- package/dist/mint-components/{p-4180348b.entry.js → p-6668f9f0.entry.js} +1 -1
- package/dist/mint-components/{p-2b4344cb.system.js → p-692e14c5.system.js} +1 -1
- package/dist/mint-components/{p-fdfef4b0.js → p-6c4ad51a.js} +1 -1
- package/dist/mint-components/{p-d798a676.entry.js → p-6e512063.entry.js} +1 -1
- package/dist/mint-components/{p-07a23d1e.system.entry.js → p-70570e4d.system.entry.js} +1 -1
- package/dist/mint-components/{p-6143cba9.js → p-7161e1a6.js} +1 -1
- package/dist/mint-components/p-7265bbcb.system.js +271 -0
- package/dist/mint-components/{p-974ec817.system.entry.js → p-738dce27.system.entry.js} +1 -1
- package/dist/mint-components/{p-ffb58369.system.js → p-77b9cde8.system.js} +1 -1
- package/dist/mint-components/{p-95f684b0.entry.js → p-77fa2383.entry.js} +1 -1
- package/dist/mint-components/{p-f5491692.system.entry.js → p-782af7ae.system.entry.js} +1 -1
- package/dist/mint-components/{p-73d58f8c.system.js → p-7b59e13c.system.js} +1 -1
- package/dist/mint-components/p-7d16ee0e.entry.js +108 -0
- package/dist/mint-components/p-7efb8782.system.js +1 -0
- package/dist/mint-components/{p-3bb8129c.system.js → p-807ed3bf.system.js} +1 -1
- package/dist/mint-components/{p-4513c967.system.entry.js → p-80e116ec.system.entry.js} +1 -1
- package/dist/mint-components/{p-95d2832e.system.js → p-85721089.system.js} +1 -1
- package/dist/mint-components/{p-1dc2531d.system.js → p-8583ce0c.system.js} +1 -1
- package/dist/mint-components/{p-c0d3046c.entry.js → p-8f2d03c7.entry.js} +2 -2
- package/dist/mint-components/{p-ab5c9c50.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-43d7e25b.entry.js → p-95510f27.entry.js} +1 -1
- package/dist/mint-components/{p-2a1e5cea.entry.js → p-982d1f6f.entry.js} +2 -2
- package/dist/mint-components/{p-0e216006.system.js → p-a0c5631b.system.js} +1 -1
- package/dist/mint-components/{p-57885487.js → p-a4f8abad.js} +1 -1
- package/dist/mint-components/{p-cd0fe00d.system.entry.js → p-a96c9bbb.system.entry.js} +1 -1
- package/dist/mint-components/{p-266ab4eb.system.entry.js → p-ab0ea688.system.entry.js} +1 -1
- package/dist/mint-components/{p-adcc3c9a.system.entry.js → p-aefc6c4f.system.entry.js} +1 -1
- package/dist/mint-components/{p-75f9bd55.entry.js → p-b2b85238.entry.js} +1 -1
- package/dist/mint-components/{p-6607998b.entry.js → p-b395470f.entry.js} +1 -1
- package/dist/mint-components/{p-979aef8a.entry.js → p-b66f45d1.entry.js} +1 -1
- package/dist/mint-components/{p-28d44f6b.js → p-bab4929e.js} +2 -2
- package/dist/mint-components/{p-f08e25e6.js → p-bc386a7b.js} +1 -1
- package/dist/mint-components/{p-94e91de7.system.entry.js → p-c30d0049.system.entry.js} +1 -1
- package/dist/mint-components/{p-c406455b.system.entry.js → p-c45a929a.system.entry.js} +1 -1
- package/dist/mint-components/{p-e7a04b2c.system.entry.js → p-c67f8558.system.entry.js} +1 -1
- package/dist/mint-components/{p-e0ad48c6.entry.js → p-c8a8d231.entry.js} +2 -2
- package/dist/mint-components/{p-8f27f0a3.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-e3240742.entry.js → p-cb0a5990.entry.js} +1 -1
- package/dist/mint-components/{p-94330c2a.system.entry.js → p-d005df28.system.entry.js} +1 -1
- package/dist/mint-components/p-d0993bb9.js +1 -0
- package/dist/mint-components/p-d18dedd4.js +1 -0
- package/dist/mint-components/{p-0c044117.entry.js → p-d4570314.entry.js} +1 -1
- package/dist/mint-components/p-d6193876.system.js +1 -0
- package/dist/mint-components/{p-28001794.js → p-d997001a.js} +1 -1
- package/dist/mint-components/{p-366caa9f.entry.js → p-db0a2afd.entry.js} +1 -1
- package/dist/mint-components/{p-35e8f965.system.entry.js → p-dd368927.system.entry.js} +1 -1
- package/dist/mint-components/{p-a3f545d5.js → p-de0d6fd7.js} +3 -3
- package/dist/mint-components/{p-00319fef.entry.js → p-de7bb373.entry.js} +1 -1
- package/dist/mint-components/{p-53d64ee3.js → p-e00ec007.js} +1 -1
- package/dist/mint-components/{p-4e30fa14.system.entry.js → p-e12754f5.system.entry.js} +1 -1
- package/dist/mint-components/{p-c2862581.system.entry.js → p-e3497e0e.system.entry.js} +1 -1
- package/dist/mint-components/p-e4f17c21.system.js +1 -0
- package/dist/mint-components/{p-7fe4b989.entry.js → p-e5ea43b1.entry.js} +2 -2
- package/dist/mint-components/{p-44f5d470.js → p-e6240c72.js} +1 -1
- package/dist/mint-components/{p-6c903a59.js → p-e6ace3ab.js} +1 -1
- package/dist/mint-components/{p-c82c7a24.js → p-e84b874c.js} +1 -1
- package/dist/mint-components/{p-8007fadd.system.entry.js → p-e9258d20.system.entry.js} +1 -1
- package/dist/mint-components/{p-f583e90c.js → p-e980472a.js} +1 -1
- package/dist/mint-components/{p-b63ed655.system.js → p-ea03e50e.system.js} +1 -1
- package/dist/mint-components/{p-566b2e16.entry.js → p-ec0b649a.entry.js} +1 -1
- package/dist/mint-components/{p-56cc925f.entry.js → p-f0baeed0.entry.js} +1 -1
- package/dist/mint-components/{p-6e1fb6c5.system.entry.js → p-f1374258.system.entry.js} +1 -1
- package/dist/mint-components/{p-da549c7e.system.js → p-f35d856a.system.js} +1 -1
- package/dist/mint-components/{p-452b38fd.system.entry.js → p-f39cf252.system.entry.js} +1 -1
- package/dist/mint-components/{p-fc0de1ba.system.entry.js → p-f4e36adf.system.entry.js} +1 -1
- package/dist/mint-components/{p-150b29bd.system.js → p-f55ecf35.system.js} +1 -1
- package/dist/mint-components/p-f581aac7.js +1 -0
- package/dist/mint-components/{p-16fdec57.js → p-f8a09b0f.js} +152 -152
- package/dist/mint-components/{p-05671529.system.entry.js → p-fbe00c97.system.entry.js} +1 -1
- package/dist/mint-components/{p-251061ac.system.entry.js → p-fc284f91.system.entry.js} +1 -1
- package/dist/mint-components/{p-be3aba12.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-cdf37d29.system.js → p-ff118a19.system.js} +1 -1
- 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.d.ts +240 -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/dist/esm-es5/global-52a25cf2.js +0 -285
- package/dist/esm-es5/index.module-8ba90d99.js +0 -1
- package/dist/mint-components/p-0815a612.entry.js +0 -1
- package/dist/mint-components/p-09cb5c1c.js +0 -1
- package/dist/mint-components/p-1289b9f2.system.js +0 -1
- package/dist/mint-components/p-30b7d2ee.entry.js +0 -1
- package/dist/mint-components/p-399a9cff.entry.js +0 -1
- package/dist/mint-components/p-3d6f55c5.system.js +0 -1
- package/dist/mint-components/p-48421440.js +0 -1
- package/dist/mint-components/p-4fdb677d.system.entry.js +0 -1
- package/dist/mint-components/p-53f78339.system.entry.js +0 -1
- package/dist/mint-components/p-645074fb.entry.js +0 -1
- package/dist/mint-components/p-8c490639.js +0 -1
- package/dist/mint-components/p-99c505b3.system.js +0 -1
- package/dist/mint-components/p-ab2f1ee7.entry.js +0 -1
- package/dist/mint-components/p-c49108fb.system.js +0 -1
- package/dist/mint-components/p-d1faf170.system.js +0 -1
- package/dist/mint-components/p-d7751b2c.js +0 -1
- package/dist/mint-components/p-dde4a162.entry.js +0 -106
- package/dist/mint-components/p-ebceb45c.system.js +0 -285
- package/dist/mint-components/p-f395bf09.system.js +0 -1
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { h, r as registerInstance, c as Host, g as getElement } from './index-38ad4957.js';
|
|
2
|
-
import { i as intl } from './global-
|
|
2
|
+
import { i as intl } from './global-96c14d63.js';
|
|
3
3
|
import { m as useRef, k as useState, f as useEffect, n as h$1, u as useMemo, b as browser, j as useReducer } from './dom-context-hooks.module-50442785.js';
|
|
4
|
-
import { d as dist, _, L, J,
|
|
4
|
+
import { d as dist, _, L, J, q as Pn, F as Fn, r as $n, $ as $e, i as isDemo, o as En, b as useCallback, R as Rn, w as wn } from './index.module-b23fdad8.js';
|
|
5
5
|
import { j as jsonpointer } from './jsonpointer-388a7082.js';
|
|
6
6
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
7
7
|
import { g as getProps } from './utils-334c1e34.js';
|
|
8
8
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
9
9
|
import './mixins-f750863a.js';
|
|
10
10
|
import { G as GenericTableView } from './GenericTableView-8c72ac30.js';
|
|
11
|
-
import { u as useRerenderListener, a as useRequestRerender } from './re-render-
|
|
12
|
-
import { u as useChildElements } from './useChildElements-
|
|
11
|
+
import { u as useRerenderListener, a as useRequestRerender } from './re-render-f30aeb6b.js';
|
|
12
|
+
import { u as useChildElements } from './useChildElements-9bccfb72.js';
|
|
13
13
|
import { l as luxon } from './luxon-1be92a8e.js';
|
|
14
|
-
import { g as generateUserError } from './useReferralTable-
|
|
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 { F as FORM_STEPS, a as TAX_FORM_CONTEXT_NAMESPACE, S as SORTED_COUNTRIES_NAMESPACE, c as USER_QUERY_NAMESPACE, T as TAX_CONTEXT_NAMESPACE, h as FINANCE_NETWORK_SETTINGS_NAMESPACE, t as taxTypeToName, l as validTaxDocument, U as USER_FORM_CONTEXT_NAMESPACE, d as COUNTRIES_QUERY_NAMESPACE, g as getCountryObj, C as CURRENCIES_NAMESPACE, o as objectIsFull } from './data-
|
|
14
|
+
import { g as generateUserError } from './useReferralTable-92af4133.js';
|
|
15
|
+
import { a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, O as OtherRegionSlotView, I as InvoiceTableView, v as vatLabels, A as ADDRESS_REGIONS, U as UserInfoFormView } from './sqm-user-info-form-view-19d81a2b.js';
|
|
16
|
+
import { F as FORM_STEPS, a as TAX_FORM_CONTEXT_NAMESPACE, S as SORTED_COUNTRIES_NAMESPACE, c as USER_QUERY_NAMESPACE, T as TAX_CONTEXT_NAMESPACE, h as FINANCE_NETWORK_SETTINGS_NAMESPACE, t as taxTypeToName, l as validTaxDocument, U as USER_FORM_CONTEXT_NAMESPACE, d as COUNTRIES_QUERY_NAMESPACE, g as getCountryObj, C as CURRENCIES_NAMESPACE, o as objectIsFull } from './data-12e6aae1.js';
|
|
17
17
|
import { b as VERIFICATION_EVENT_KEY } from './keys-406491dc.js';
|
|
18
|
-
import { T as TAX_FORM_UPDATED_EVENT_KEY, a as useVeriffApp, g as getStatus, V as VERIFF_COMPLETE_EVENT_KEY } from './usePayoutStatus-
|
|
18
|
+
import { T as TAX_FORM_UPDATED_EVENT_KEY, a as useVeriffApp, g as getStatus, V as VERIFF_COMPLETE_EVENT_KEY } from './usePayoutStatus-46c0c289.js';
|
|
19
19
|
|
|
20
20
|
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;
|
|
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, _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
22
|
const { errors, ...formState } = props.states.formState;
|
|
23
23
|
return {
|
|
24
24
|
0: {
|
|
@@ -27,44 +27,54 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
27
27
|
helpText: getValidationErrorMessage({
|
|
28
28
|
type: (_c = (_b = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _b === void 0 ? void 0 : _b.beneficiaryAccountName) === null || _c === void 0 ? void 0 : _c.type,
|
|
29
29
|
label: props.text.beneficiaryAccountNameLabel,
|
|
30
|
+
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,
|
|
31
|
+
fieldName: "beneficiaryAccountName",
|
|
30
32
|
}),
|
|
31
33
|
})))),
|
|
32
34
|
},
|
|
33
35
|
1: {
|
|
34
|
-
input: (h("sl-select", Object.assign({ required: true, label: props.text.bankAccountTypeLabel, name: "/bankAccountType", id: "bankAccountType", key: "bankAccountType" }, (((
|
|
36
|
+
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
37
|
class: "error-input",
|
|
36
38
|
helpText: getValidationErrorMessage({
|
|
37
|
-
type: (
|
|
39
|
+
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
40
|
label: props.text.bankAccountTypeLabel,
|
|
41
|
+
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,
|
|
42
|
+
fieldName: "bankAccountType",
|
|
39
43
|
}),
|
|
40
44
|
})),
|
|
41
45
|
h("sl-menu-item", { value: "CHECKING" }, props.text.checkingSelectItemLabel),
|
|
42
46
|
h("sl-menu-item", { value: "SAVINGS" }, props.text.savingsSelectItemLabel))),
|
|
43
47
|
},
|
|
44
48
|
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" }, (((
|
|
49
|
+
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
50
|
class: "error-input",
|
|
47
51
|
helpText: getValidationErrorMessage({
|
|
48
|
-
type: (
|
|
52
|
+
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
53
|
label: props.text.bankAccountNumberLabel,
|
|
54
|
+
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,
|
|
55
|
+
fieldName: "bankAccountNumber",
|
|
50
56
|
}),
|
|
51
57
|
})))),
|
|
52
58
|
},
|
|
53
59
|
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 }, (((
|
|
60
|
+
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
61
|
class: "error-input",
|
|
56
62
|
helpText: getValidationErrorMessage({
|
|
57
|
-
type: (
|
|
63
|
+
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
64
|
label: props.text.ibanLabel,
|
|
65
|
+
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,
|
|
66
|
+
fieldName: "bankAccountNumber",
|
|
59
67
|
}),
|
|
60
68
|
})))),
|
|
61
69
|
},
|
|
62
70
|
4: {
|
|
63
|
-
input: (h("sl-input", Object.assign({ required: true, label: props.text.swiftCodeLabel, name: "/swiftCode", id: "swiftCode", key: "swiftCode", type: "text" }, (((
|
|
71
|
+
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
72
|
class: "error-input",
|
|
65
73
|
helpText: getValidationErrorMessage({
|
|
66
|
-
type: (
|
|
74
|
+
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
75
|
label: props.text.swiftCodeLabel,
|
|
76
|
+
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,
|
|
77
|
+
fieldName: "swiftCode",
|
|
68
78
|
}),
|
|
69
79
|
})))),
|
|
70
80
|
},
|
|
@@ -74,35 +84,41 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
74
84
|
defaultMessage: props.text.routingCodeLabel,
|
|
75
85
|
}, {
|
|
76
86
|
bankCountry,
|
|
77
|
-
}), name: "/routingCode", id: "routingCode", key: "routingCode", type: "text" }, (((
|
|
87
|
+
}), 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
88
|
class: "error-input",
|
|
79
89
|
helpText: getValidationErrorMessage({
|
|
80
|
-
type: (
|
|
90
|
+
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
91
|
label: intl.formatMessage({
|
|
82
92
|
id: "routingCodeErrorText",
|
|
83
93
|
defaultMessage: props.text.routingCodeLabel,
|
|
84
94
|
}, {
|
|
85
95
|
bankCountry,
|
|
86
96
|
}),
|
|
97
|
+
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,
|
|
98
|
+
fieldName: "routingCode",
|
|
87
99
|
}),
|
|
88
100
|
})))),
|
|
89
101
|
},
|
|
90
102
|
6: {
|
|
91
|
-
input: (h("sl-input", Object.assign({ required: true, label: props.text.bankNameLabel, name: "/bankName", id: "bankName", key: "bankName", type: "text" }, (((
|
|
103
|
+
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
104
|
class: "error-input",
|
|
93
105
|
helpText: getValidationErrorMessage({
|
|
94
|
-
type: (
|
|
106
|
+
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
107
|
label: props.text.bankNameLabel,
|
|
108
|
+
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,
|
|
109
|
+
fieldName: "bankName",
|
|
96
110
|
}),
|
|
97
111
|
})))),
|
|
98
112
|
},
|
|
99
113
|
7: {
|
|
100
114
|
input: [
|
|
101
|
-
h("sl-select", Object.assign({ required: true, label: props.text.classificationLabel, name: "/beneficiaryClassification", id: "beneficiaryClassification", key: "beneficiaryClassification" }, (((
|
|
115
|
+
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
116
|
class: "error-input",
|
|
103
117
|
helpText: getValidationErrorMessage({
|
|
104
|
-
type: (
|
|
118
|
+
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
119
|
label: props.text.classificationLabel,
|
|
120
|
+
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,
|
|
121
|
+
fieldName: "beneficiaryClassification",
|
|
106
122
|
}),
|
|
107
123
|
})),
|
|
108
124
|
h("sl-menu-item", { value: "BUSINESS" }, props.text.businessSelectItemLabel),
|
|
@@ -113,100 +129,122 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
113
129
|
defaultMessage: props.text.taxPayerIdLabel,
|
|
114
130
|
}, {
|
|
115
131
|
bankCountry,
|
|
116
|
-
}), type: "text", name: "/beneficiaryTaxPayerId", id: "beneficiaryTaxPayerId", key: "beneficiaryTaxPayerId" }, (((
|
|
132
|
+
}), 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
133
|
class: "error-input",
|
|
118
134
|
helpText: getValidationErrorMessage({
|
|
119
|
-
type: (
|
|
135
|
+
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
136
|
label: props.text.taxPayerIdLabel,
|
|
137
|
+
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,
|
|
138
|
+
fieldName: "taxPayerId",
|
|
121
139
|
}),
|
|
122
140
|
}))),
|
|
123
141
|
],
|
|
124
142
|
},
|
|
125
143
|
8: {
|
|
126
|
-
input: (h("sl-select", Object.assign({ required: true, label: props.text.classificationCPFLabel, name: "/beneficiaryClassification", id: "beneficiaryClassification", key: "beneficiaryClassification" }, (((
|
|
144
|
+
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
145
|
class: "error-input",
|
|
128
146
|
helpText: getValidationErrorMessage({
|
|
129
|
-
type: (
|
|
147
|
+
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
148
|
label: props.text.classificationCPFLabel,
|
|
149
|
+
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,
|
|
150
|
+
fieldName: "beneficiaryClassification",
|
|
131
151
|
}),
|
|
132
152
|
})),
|
|
133
153
|
h("sl-menu-item", { value: "CPF" }, "CPF"),
|
|
134
154
|
h("sl-menu-item", { value: "CNPJ" }, "CNPJ"))),
|
|
135
155
|
},
|
|
136
156
|
9: {
|
|
137
|
-
input: (h("sl-input", Object.assign({ key: "patronymicName", required: true, label: props.text.patronymicNameLabel, name: "/patronymicName", id: "patronymicName", type: "text" }, (((
|
|
157
|
+
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
158
|
class: "error-input",
|
|
139
159
|
helpText: getValidationErrorMessage({
|
|
140
|
-
type: (
|
|
160
|
+
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
161
|
label: props.text.patronymicNameLabel,
|
|
162
|
+
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,
|
|
163
|
+
fieldName: "patronymicName",
|
|
142
164
|
}),
|
|
143
165
|
})))),
|
|
144
166
|
},
|
|
145
167
|
10: {
|
|
146
|
-
input: (h("sl-input", Object.assign({ key: "voCode", label: props.text.voCodeLabel, name: "/voCode", id: "voCode", type: "text" }, (((
|
|
168
|
+
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
169
|
class: "error-input",
|
|
148
170
|
helpText: getValidationErrorMessage({
|
|
149
|
-
type: (
|
|
171
|
+
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
172
|
label: props.text.voCodeLabel,
|
|
173
|
+
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,
|
|
174
|
+
fieldName: "voCode",
|
|
151
175
|
}),
|
|
152
176
|
})))),
|
|
153
177
|
},
|
|
154
178
|
11: {
|
|
155
|
-
input: (h("sl-input", Object.assign({ required: true, label: props.text.agencyCodeLabel, name: "/agencyCode", id: "agencyCode", key: "agencyCode", type: "text" }, (((
|
|
179
|
+
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
180
|
class: "error-input",
|
|
157
181
|
helpText: getValidationErrorMessage({
|
|
158
|
-
type: (
|
|
182
|
+
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
183
|
label: props.text.agencyCodeLabel,
|
|
184
|
+
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,
|
|
185
|
+
fieldName: "agencyCode",
|
|
160
186
|
}),
|
|
161
187
|
})))),
|
|
162
188
|
},
|
|
163
189
|
12: {
|
|
164
190
|
input: [
|
|
165
|
-
h("sl-input", Object.assign({ required: true, label: props.text.bankAddressLabel, name: "/bankAddress", id: "bankAddress", key: "bankAddress", type: "text" }, (((
|
|
191
|
+
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
192
|
class: "error-input",
|
|
167
193
|
helpText: getValidationErrorMessage({
|
|
168
|
-
type: (
|
|
194
|
+
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
195
|
label: props.text.bankAddressLabel,
|
|
196
|
+
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,
|
|
197
|
+
fieldName: "bankAddress",
|
|
170
198
|
}),
|
|
171
199
|
}))),
|
|
172
|
-
h("sl-input", Object.assign({ required: true, label: props.text.bankCityLabel, name: "/bankCity", id: "bankCity", key: "bankCity", type: "text" }, (((
|
|
200
|
+
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
201
|
class: "error-input",
|
|
174
202
|
helpText: getValidationErrorMessage({
|
|
175
|
-
type: (
|
|
203
|
+
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
204
|
label: props.text.bankCityLabel,
|
|
205
|
+
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,
|
|
206
|
+
fieldName: "bankCity",
|
|
177
207
|
}),
|
|
178
208
|
}))),
|
|
179
|
-
h("sl-input", Object.assign({ required: true, label: props.text.bankStateLabel, name: "/bankState", id: "bankState", key: "bankState", type: "text" }, (((
|
|
209
|
+
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
210
|
class: "error-input",
|
|
181
211
|
helpText: getValidationErrorMessage({
|
|
182
|
-
type: (
|
|
212
|
+
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
213
|
label: props.text.bankStateLabel,
|
|
214
|
+
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,
|
|
215
|
+
fieldName: "bankState",
|
|
184
216
|
}),
|
|
185
217
|
}))),
|
|
186
|
-
h("sl-input", Object.assign({ required: true, label: props.text.bankPostalCodeLabel, name: "/bankPostalCode", id: "bankPostalCode", key: "bankPostalCode", type: "text" }, (((
|
|
218
|
+
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
219
|
class: "error-input",
|
|
188
220
|
helpText: getValidationErrorMessage({
|
|
189
|
-
type: (
|
|
221
|
+
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
222
|
label: props.text.bankPostalCodeLabel,
|
|
223
|
+
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,
|
|
224
|
+
fieldName: "bankPostalCode",
|
|
191
225
|
}),
|
|
192
226
|
}))),
|
|
193
227
|
],
|
|
194
228
|
},
|
|
195
229
|
13: {
|
|
196
|
-
input: (h("sl-input", Object.assign({ required: true, label: props.text.branchCodeLabel, name: "/branchCode", id: "branchCode", key: "branchCode", type: "text" }, (((
|
|
230
|
+
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
231
|
class: "error-input",
|
|
198
232
|
helpText: getValidationErrorMessage({
|
|
199
|
-
type: (
|
|
233
|
+
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
234
|
label: props.text.branchCodeLabel,
|
|
235
|
+
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,
|
|
236
|
+
fieldName: "branchCode",
|
|
201
237
|
}),
|
|
202
238
|
})))),
|
|
203
239
|
},
|
|
204
240
|
14: {
|
|
205
|
-
input: (h("sl-select", Object.assign({ required: true, label: props.text.classificationLabel, name: "/beneficiaryClassification", id: "beneficiaryClassification", key: "beneficiaryClassification" }, (((
|
|
241
|
+
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
242
|
class: "error-input",
|
|
207
243
|
helpText: getValidationErrorMessage({
|
|
208
|
-
type: (
|
|
244
|
+
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
245
|
label: props.text.classificationLabel,
|
|
246
|
+
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,
|
|
247
|
+
fieldName: "beneficiaryClassification",
|
|
210
248
|
}),
|
|
211
249
|
})),
|
|
212
250
|
h("sl-menu-item", { value: "BUSINESS" }, props.text.businessSelectItemLabel),
|
|
@@ -799,6 +837,109 @@ const paypalFeeMap = {
|
|
|
799
837
|
const ACH_PAYMENT_METHOD = 3;
|
|
800
838
|
const WIRE_PAYMENT_METHOD = 5;
|
|
801
839
|
const PAYPAL_PAYMENT_METHOD = 7;
|
|
840
|
+
/**
|
|
841
|
+
* Maps GraphQL validation error field names to form field names.
|
|
842
|
+
*
|
|
843
|
+
* The Impact API returns UpperCamelCase field names (e.g. `BankAccountNumber`).
|
|
844
|
+
* The GraphQL layer in `UserServiceImpl.java` converts these to lowerCamelCase
|
|
845
|
+
* via `CaseFormat.UPPER_CAMEL.to(CaseFormat.LOWER_CAMEL, errorDto.field)`.
|
|
846
|
+
*
|
|
847
|
+
* Most converted field names already match the form field names exactly
|
|
848
|
+
* (e.g. `bankAccountNumber`, `swiftCode`, `routingCode`). Only entries
|
|
849
|
+
* where the GraphQL field name differs from the form field name need
|
|
850
|
+
* to be listed here.
|
|
851
|
+
*/
|
|
852
|
+
const API_FIELD_TO_FORM_FIELD = {
|
|
853
|
+
// bankProvinceState → form uses bankState
|
|
854
|
+
bankProvinceState: "bankState",
|
|
855
|
+
};
|
|
856
|
+
/**
|
|
857
|
+
* Maps Impact API error code paths (from validationErrors[].errorPath) to short,
|
|
858
|
+
* readable frontend error codes used in the ICU select props.
|
|
859
|
+
*
|
|
860
|
+
* The Impact API returns a stable dot-delimited error path (e.g.
|
|
861
|
+
* "withdrawal.settings.error.routingcode") alongside the human-readable message.
|
|
862
|
+
* The GraphQL layer exposes this as `errorPath`. The keys below match those paths
|
|
863
|
+
* to short frontend codes used in the ICU `{errorCode, select, ...}` props.
|
|
864
|
+
*/
|
|
865
|
+
const API_ERROR_PATH_TO_FRONTEND = {
|
|
866
|
+
// Beneficiary account name
|
|
867
|
+
"withdrawal.settings.error.empty_beneficiaryname": "empty",
|
|
868
|
+
"withdrawal.settings.error.invalid_character_beneficiaryname": "invalidCharacters",
|
|
869
|
+
"withdrawal.settings.error.numeric_beneficiaryname": "numeric",
|
|
870
|
+
"withdrawal_settings.error.beneficiaryname.size": "tooLong",
|
|
871
|
+
"withdrawal.settings.error.non_english_beneficiaryname": "nonEnglish",
|
|
872
|
+
"withdrawal_settings.error.business_beneficiaryname_match": "businessNameMismatch",
|
|
873
|
+
"withdrawal_settings.error.beneficiaryname_match": "nameMismatch",
|
|
874
|
+
"withdrawal_settings.error.business_checkpayeename_match": "businessPayeeMismatch",
|
|
875
|
+
"withdrawal_settings.error.checkpayeename_match": "payeeMismatch",
|
|
876
|
+
// Bank account number
|
|
877
|
+
"withdrawal.settings.error.accountnumber.empty": "empty",
|
|
878
|
+
"withdrawal.settings.error.accountnumber.uk": "invalidUk",
|
|
879
|
+
"withdrawal.settings.error.bankaccount.invalid": "invalid",
|
|
880
|
+
// IBAN
|
|
881
|
+
"withdrawal.settings.error.iban": "ibanEmpty",
|
|
882
|
+
"withdrawal.settings.error.iban.alphanumeric": "ibanAlphanumeric",
|
|
883
|
+
"withdrawal.settings.error.iban.invalid": "ibanInvalid",
|
|
884
|
+
"withdrawal.settings.error.iban.uk.country.mismatch": "ibanCountryMismatch",
|
|
885
|
+
// Routing code
|
|
886
|
+
"withdrawal.settings.error.bsbNumber": "invalidBsb",
|
|
887
|
+
"withdrawal.settings.error.sortcode": "invalidSortCode",
|
|
888
|
+
"withdrawal.settings.error.routingNumber": "empty",
|
|
889
|
+
"withdrawal.settings.error.routingcode": "invalid",
|
|
890
|
+
// SWIFT / BIC
|
|
891
|
+
"withdrawal.settings.error.bic": "empty",
|
|
892
|
+
"withdrawal.settings.error.bic.alphanumeric": "alphanumeric",
|
|
893
|
+
"withdrawal.settings.error.bic.invalid": "invalid",
|
|
894
|
+
// Bank account type
|
|
895
|
+
"global.error.invalid.accounttype": "empty",
|
|
896
|
+
// Bank name
|
|
897
|
+
"withdrawal.settings.error.bankName": "empty",
|
|
898
|
+
// Tax payer ID
|
|
899
|
+
"withdrawal.settings.error.taxPayerId": "empty",
|
|
900
|
+
"withdrawal.settings.error.taxPayerId.ar": "emptyAr",
|
|
901
|
+
"withdrawal.settings.error.taxPayerId.kr": "emptyKr",
|
|
902
|
+
"withdrawal.settings.error.taxPayerId.alphanumeric": "alphanumeric",
|
|
903
|
+
"withdrawal.settings.error.taxPayerId.alphanumeric.ar": "alphanumericAr",
|
|
904
|
+
"withdrawal.settings.error.taxPayerId.alphanumeric.kr": "alphanumericKr",
|
|
905
|
+
"withdrawal.settings.error.taxPayerId.invalid": "invalid",
|
|
906
|
+
"withdrawal.settings.error.taxPayerId.invalid.ar": "invalidAr",
|
|
907
|
+
"withdrawal.settings.error.taxPayerId.invalid.kr": "invalidKr",
|
|
908
|
+
"withdrawal.settings.error.taxPayerId.invalid.kzt": "invalidKzt",
|
|
909
|
+
"withdrawal.settings.error.taxPayerId.cnpj": "cnpjTooShort",
|
|
910
|
+
"withdrawal.settings.error.taxPayerId.cpf": "cpfTooShort",
|
|
911
|
+
// Patronymic name
|
|
912
|
+
"withdrawal.settings.error.patronymicName": "empty",
|
|
913
|
+
"withdrawal.settings.error.patronymicName.alphanumeric": "alphanumeric",
|
|
914
|
+
// VO code
|
|
915
|
+
"withdrawal.settings.error.voCode": "empty",
|
|
916
|
+
"withdrawal.settings.error.voCode.alphanumeric": "alphanumeric",
|
|
917
|
+
// Agency code
|
|
918
|
+
"withdrawal.settings.error.agencyCode": "empty",
|
|
919
|
+
"withdrawal.settings.error.agencyCode.alphanumeric": "alphanumeric",
|
|
920
|
+
"withdrawal.settings.error.agencyCode.length": "tooShort",
|
|
921
|
+
// Bank address fields
|
|
922
|
+
"withdrawal.settings.error.bankAddress": "empty",
|
|
923
|
+
"withdrawal.settings.error.bankCity": "empty",
|
|
924
|
+
"withdrawal.settings.error.bankProvinceState": "empty",
|
|
925
|
+
"withdrawal.settings.error.bankPostalCode": "empty",
|
|
926
|
+
// Branch code / name
|
|
927
|
+
"withdrawal.settings.error.branchCode": "invalid",
|
|
928
|
+
"withdrawal.settings.error.branchName": "empty",
|
|
929
|
+
// Classification code
|
|
930
|
+
"withdrawal.settings.error.classificationCode.invalid": "empty",
|
|
931
|
+
"withdrawal.settings.error.classificationCode.invalid.kzt": "invalidKzt",
|
|
932
|
+
// PayPal
|
|
933
|
+
"payment.error.email": "empty",
|
|
934
|
+
"payment.error.paypal_not_supported": "unsupportedCurrency",
|
|
935
|
+
"payment.error.email.invalid": "invalidEmail",
|
|
936
|
+
"payment.error.paypal_verification_incomplete": "verificationIncomplete",
|
|
937
|
+
// Payment schedule
|
|
938
|
+
"payment.error.no_threshold": "empty",
|
|
939
|
+
"payment.error.invalid_threshold": "invalid",
|
|
940
|
+
"payment.error.no_dayOfMonth": "empty",
|
|
941
|
+
"payment.error.invalid_dayOfMonth": "invalid",
|
|
942
|
+
};
|
|
802
943
|
function getFormInputs({ bitset, formMap }) {
|
|
803
944
|
// Convert bitset to binary representation
|
|
804
945
|
const binary = bitset.toString(2).padStart(Object.keys(formMap).length, "0");
|
|
@@ -822,6 +963,7 @@ const SAVE_WITHDRAWAL_SETTINGS = dist.gql `
|
|
|
822
963
|
validationErrors {
|
|
823
964
|
field
|
|
824
965
|
message
|
|
966
|
+
errorPath
|
|
825
967
|
}
|
|
826
968
|
}
|
|
827
969
|
}
|
|
@@ -837,6 +979,7 @@ const UPDATE_WITHDRAWAL_SETTINGS = dist.gql `
|
|
|
837
979
|
validationErrors {
|
|
838
980
|
field
|
|
839
981
|
message
|
|
982
|
+
errorPath
|
|
840
983
|
}
|
|
841
984
|
}
|
|
842
985
|
}
|
|
@@ -1009,10 +1152,13 @@ function useBankingInfoForm(props) {
|
|
|
1009
1152
|
else if (!success) {
|
|
1010
1153
|
console.error("Validation failed: ", validationErrors);
|
|
1011
1154
|
const mappedValidationErrors = validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.reduce((agg, error) => {
|
|
1155
|
+
const formField = API_FIELD_TO_FORM_FIELD[error.field] || error.field;
|
|
1156
|
+
const errorCode = API_ERROR_PATH_TO_FRONTEND[error.errorPath] || error.errorPath;
|
|
1012
1157
|
return {
|
|
1013
1158
|
...agg,
|
|
1014
|
-
[
|
|
1159
|
+
[formField]: {
|
|
1015
1160
|
type: "invalid",
|
|
1161
|
+
errorCode,
|
|
1016
1162
|
},
|
|
1017
1163
|
};
|
|
1018
1164
|
}, {});
|
|
@@ -1427,6 +1573,156 @@ const BankingInfoForm = class {
|
|
|
1427
1573
|
* @uiName Information modal button text
|
|
1428
1574
|
*/
|
|
1429
1575
|
this.modalButtonText = "I understand, update my information";
|
|
1576
|
+
// ──────────────────────────────────────────────────────────────────
|
|
1577
|
+
// Per-field validation error messages
|
|
1578
|
+
// Each prop uses ICU select on {errorCode} to pick the right message.
|
|
1579
|
+
// Error codes are short frontend keys mapped from the API error codes.
|
|
1580
|
+
// The `other` branch displays the raw API message directly via {errorCode},
|
|
1581
|
+
// which is already human-readable English (e.g. "Invalid Routing Code").
|
|
1582
|
+
// ──────────────────────────────────────────────────────────────────
|
|
1583
|
+
/**
|
|
1584
|
+
* Error messages for the beneficiary / account holder name field.
|
|
1585
|
+
* Supports error codes: empty, invalidCharacters, numeric, tooLong,
|
|
1586
|
+
* nonEnglish, businessNameMismatch, nameMismatch, businessPayeeMismatch, payeeMismatch
|
|
1587
|
+
* @uiName Beneficiary account name error
|
|
1588
|
+
* @uiWidget textArea
|
|
1589
|
+
*/
|
|
1590
|
+
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}}}";
|
|
1591
|
+
/**
|
|
1592
|
+
* Error messages for the bank account number / IBAN field.
|
|
1593
|
+
* Supports error codes: empty, invalidUk, invalid, ibanEmpty,
|
|
1594
|
+
* ibanAlphanumeric, ibanInvalid, ibanCountryMismatch
|
|
1595
|
+
* @uiName Bank account number / IBAN error
|
|
1596
|
+
* @uiWidget textArea
|
|
1597
|
+
*/
|
|
1598
|
+
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}}}";
|
|
1599
|
+
/**
|
|
1600
|
+
* Error messages for the routing code / sort code / BSB field.
|
|
1601
|
+
* Supports error codes: invalidBsb, invalidSortCode, empty, invalid
|
|
1602
|
+
* @uiName Routing code error
|
|
1603
|
+
* @uiWidget textArea
|
|
1604
|
+
*/
|
|
1605
|
+
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}}}";
|
|
1606
|
+
/**
|
|
1607
|
+
* Error messages for the SWIFT / BIC code field.
|
|
1608
|
+
* Supports error codes: empty, alphanumeric, invalid
|
|
1609
|
+
* @uiName SWIFT code error
|
|
1610
|
+
* @uiWidget textArea
|
|
1611
|
+
*/
|
|
1612
|
+
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}}}";
|
|
1613
|
+
/**
|
|
1614
|
+
* Error messages for the bank account type field.
|
|
1615
|
+
* Supports error codes: empty
|
|
1616
|
+
* @uiName Bank account type error
|
|
1617
|
+
* @uiWidget textArea
|
|
1618
|
+
*/
|
|
1619
|
+
this.bankAccountTypeError = "{errorCode, select, empty {Bank account type is required} other {{errorCode}}}";
|
|
1620
|
+
/**
|
|
1621
|
+
* Error messages for the bank name field.
|
|
1622
|
+
* Supports error codes: empty
|
|
1623
|
+
* @uiName Bank name error
|
|
1624
|
+
* @uiWidget textArea
|
|
1625
|
+
*/
|
|
1626
|
+
this.bankNameError = "{errorCode, select, empty {Bank name is required} other {{errorCode}}}";
|
|
1627
|
+
/**
|
|
1628
|
+
* Error messages for the tax payer ID / classification entity field.
|
|
1629
|
+
* Supports error codes: empty, emptyAr, emptyKr, alphanumeric, alphanumericAr,
|
|
1630
|
+
* alphanumericKr, invalid, invalidAr, invalidKr, invalidKzt, cnpjTooShort, cpfTooShort
|
|
1631
|
+
* @uiName Tax payer ID error
|
|
1632
|
+
* @uiWidget textArea
|
|
1633
|
+
*/
|
|
1634
|
+
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}}}";
|
|
1635
|
+
/**
|
|
1636
|
+
* Error messages for the patronymic name field.
|
|
1637
|
+
* Supports error codes: empty, alphanumeric
|
|
1638
|
+
* @uiName Patronymic name error
|
|
1639
|
+
* @uiWidget textArea
|
|
1640
|
+
*/
|
|
1641
|
+
this.patronymicNameError = "{errorCode, select, empty {Patronymic name is required} alphanumeric {Patronymic name must contain only letters and numbers} other {{errorCode}}}";
|
|
1642
|
+
/**
|
|
1643
|
+
* Error messages for the VO code field.
|
|
1644
|
+
* Supports error codes: empty, alphanumeric
|
|
1645
|
+
* @uiName VO code error
|
|
1646
|
+
* @uiWidget textArea
|
|
1647
|
+
*/
|
|
1648
|
+
this.voCodeError = "{errorCode, select, empty {VO code is required} alphanumeric {VO code must contain only letters and numbers} other {{errorCode}}}";
|
|
1649
|
+
/**
|
|
1650
|
+
* Error messages for the agency code field.
|
|
1651
|
+
* Supports error codes: empty, alphanumeric, tooShort
|
|
1652
|
+
* @uiName Agency code error
|
|
1653
|
+
* @uiWidget textArea
|
|
1654
|
+
*/
|
|
1655
|
+
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}}}";
|
|
1656
|
+
/**
|
|
1657
|
+
* Error messages for the bank address field.
|
|
1658
|
+
* Supports error codes: empty
|
|
1659
|
+
* @uiName Bank address error
|
|
1660
|
+
* @uiWidget textArea
|
|
1661
|
+
*/
|
|
1662
|
+
this.bankAddressError = "{errorCode, select, empty {Bank address is required} other {{errorCode}}}";
|
|
1663
|
+
/**
|
|
1664
|
+
* Error messages for the bank city field.
|
|
1665
|
+
* Supports error codes: empty
|
|
1666
|
+
* @uiName Bank city error
|
|
1667
|
+
* @uiWidget textArea
|
|
1668
|
+
*/
|
|
1669
|
+
this.bankCityError = "{errorCode, select, empty {Bank city is required} other {{errorCode}}}";
|
|
1670
|
+
/**
|
|
1671
|
+
* Error messages for the bank province/state field.
|
|
1672
|
+
* Supports error codes: empty
|
|
1673
|
+
* @uiName Bank province/state error
|
|
1674
|
+
* @uiWidget textArea
|
|
1675
|
+
*/
|
|
1676
|
+
this.bankStateError = "{errorCode, select, empty {Bank province/state is required} other {{errorCode}}}";
|
|
1677
|
+
/**
|
|
1678
|
+
* Error messages for the bank postal code field.
|
|
1679
|
+
* Supports error codes: empty
|
|
1680
|
+
* @uiName Bank postal code error
|
|
1681
|
+
* @uiWidget textArea
|
|
1682
|
+
*/
|
|
1683
|
+
this.bankPostalCodeError = "{errorCode, select, empty {Bank postal code is required} other {{errorCode}}}";
|
|
1684
|
+
/**
|
|
1685
|
+
* Error messages for the branch code field.
|
|
1686
|
+
* Supports error codes: invalid
|
|
1687
|
+
* @uiName Branch code error
|
|
1688
|
+
* @uiWidget textArea
|
|
1689
|
+
*/
|
|
1690
|
+
this.branchCodeError = "{errorCode, select, invalid {Branch code is invalid} other {{errorCode}}}";
|
|
1691
|
+
/**
|
|
1692
|
+
* Error messages for the branch name field.
|
|
1693
|
+
* Supports error codes: empty
|
|
1694
|
+
* @uiName Branch name error
|
|
1695
|
+
* @uiWidget textArea
|
|
1696
|
+
*/
|
|
1697
|
+
this.branchNameError = "{errorCode, select, empty {Branch name is required} other {{errorCode}}}";
|
|
1698
|
+
/**
|
|
1699
|
+
* Error messages for the classification code field.
|
|
1700
|
+
* Supports error codes: empty, invalidKzt
|
|
1701
|
+
* @uiName Classification code error
|
|
1702
|
+
* @uiWidget textArea
|
|
1703
|
+
*/
|
|
1704
|
+
this.classificationCodeError = "{errorCode, select, empty {Classification code is required} invalidKzt {Classification code must be exactly 2 characters} other {{errorCode}}}";
|
|
1705
|
+
/**
|
|
1706
|
+
* Error messages for the PayPal email field.
|
|
1707
|
+
* Supports error codes: empty, unsupportedCurrency, invalidEmail, verificationIncomplete
|
|
1708
|
+
* @uiName PayPal email error
|
|
1709
|
+
* @uiWidget textArea
|
|
1710
|
+
*/
|
|
1711
|
+
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}}}";
|
|
1712
|
+
/**
|
|
1713
|
+
* Error messages for the payment threshold field.
|
|
1714
|
+
* Supports error codes: empty, invalid
|
|
1715
|
+
* @uiName Payment threshold error
|
|
1716
|
+
* @uiWidget textArea
|
|
1717
|
+
*/
|
|
1718
|
+
this.paymentThresholdError = "{errorCode, select, empty {Payment threshold is required} invalid {Payment threshold is invalid} other {{errorCode}}}";
|
|
1719
|
+
/**
|
|
1720
|
+
* Error messages for the payment day field.
|
|
1721
|
+
* Supports error codes: empty, invalid
|
|
1722
|
+
* @uiName Payment day error
|
|
1723
|
+
* @uiWidget textArea
|
|
1724
|
+
*/
|
|
1725
|
+
this.paymentDayError = "{errorCode, select, empty {Payment day is required} invalid {Payment day must be the 1st or the 15th} other {{errorCode}}}";
|
|
1430
1726
|
h$1(this);
|
|
1431
1727
|
}
|
|
1432
1728
|
disconnectedCallback() { }
|
|
@@ -1440,17 +1736,54 @@ const BankingInfoForm = class {
|
|
|
1440
1736
|
loadingErrorAlertDescription: props.loadingErrorAlertDescription,
|
|
1441
1737
|
loadingErrorAlertHeader: props.loadingErrorAlertHeader,
|
|
1442
1738
|
},
|
|
1739
|
+
errorMessages: {
|
|
1740
|
+
beneficiaryAccountName: props.beneficiaryAccountNameError,
|
|
1741
|
+
bankAccountNumber: props.bankAccountNumberError,
|
|
1742
|
+
routingCode: props.routingCodeError,
|
|
1743
|
+
swiftCode: props.swiftCodeError,
|
|
1744
|
+
bankAccountType: props.bankAccountTypeError,
|
|
1745
|
+
bankName: props.bankNameError,
|
|
1746
|
+
taxPayerId: props.taxPayerIdError,
|
|
1747
|
+
patronymicName: props.patronymicNameError,
|
|
1748
|
+
voCode: props.voCodeError,
|
|
1749
|
+
agencyCode: props.agencyCodeError,
|
|
1750
|
+
bankAddress: props.bankAddressError,
|
|
1751
|
+
bankCity: props.bankCityError,
|
|
1752
|
+
bankState: props.bankStateError,
|
|
1753
|
+
bankPostalCode: props.bankPostalCodeError,
|
|
1754
|
+
branchCode: props.branchCodeError,
|
|
1755
|
+
branchName: props.branchNameError,
|
|
1756
|
+
beneficiaryClassification: props.classificationCodeError,
|
|
1757
|
+
paypalEmailAddress: props.paypalEmailError,
|
|
1758
|
+
paymentThreshold: props.paymentThresholdError,
|
|
1759
|
+
paymentDay: props.paymentDayError,
|
|
1760
|
+
},
|
|
1443
1761
|
};
|
|
1444
1762
|
}
|
|
1445
1763
|
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;
|
|
1764
|
+
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
1765
|
const props = isDemo()
|
|
1448
1766
|
? useDemoBankingInfoForm(this)
|
|
1449
1767
|
: useBankingInfoForm(this);
|
|
1450
1768
|
const { errors } = props.states.formState;
|
|
1451
1769
|
const fieldRequiredError = this.fieldRequiredError;
|
|
1452
1770
|
const fieldInvalidError = this.fieldInvalidError;
|
|
1453
|
-
function getValidationErrorMessage({ type, label, }) {
|
|
1771
|
+
function getValidationErrorMessage({ type, label, errorCode, fieldName, }) {
|
|
1772
|
+
var _a;
|
|
1773
|
+
// If we have a specific error code from the API, try to use
|
|
1774
|
+
// the per-field ICU error message template for a rich message
|
|
1775
|
+
if (type === "invalid" && errorCode && fieldName) {
|
|
1776
|
+
const errorTemplate = (_a = props.text.errorMessages) === null || _a === void 0 ? void 0 : _a[fieldName];
|
|
1777
|
+
if (errorTemplate) {
|
|
1778
|
+
return intl.formatMessage({
|
|
1779
|
+
id: `fieldError-${fieldName}-${errorCode}`,
|
|
1780
|
+
defaultMessage: errorTemplate,
|
|
1781
|
+
}, {
|
|
1782
|
+
errorCode,
|
|
1783
|
+
fieldName: label,
|
|
1784
|
+
});
|
|
1785
|
+
}
|
|
1786
|
+
}
|
|
1454
1787
|
if (type === "required") {
|
|
1455
1788
|
return intl.formatMessage({
|
|
1456
1789
|
id: `requiredText-${label}`,
|
|
@@ -1533,37 +1866,45 @@ const BankingInfoForm = class {
|
|
|
1533
1866
|
helpText: getValidationErrorMessage({
|
|
1534
1867
|
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
1868
|
label: props.text.bankLocationLabel,
|
|
1869
|
+
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,
|
|
1870
|
+
fieldName: "bankCountry",
|
|
1536
1871
|
}),
|
|
1537
1872
|
})), h("sl-input", { disabled: props.states.saveLoading, class: sheet.classes.SearchInput, placeholder: this.searchForCountryText, onKeyDown: (e) => {
|
|
1538
1873
|
// Stop shoelace intercepting key presses
|
|
1539
1874
|
e.stopPropagation();
|
|
1540
1875
|
}, "onSl-input": (e) => {
|
|
1541
1876
|
props.callbacks.setCountrySearch(e.target.value);
|
|
1542
|
-
} }), (
|
|
1543
|
-
|
|
1877
|
+
} }), (_f = props.states.countries) === null || _f === void 0 ? void 0 :
|
|
1878
|
+
_f.map((country) => {
|
|
1544
1879
|
return (h("sl-menu-item", { value: country.countryCode }, country.displayName));
|
|
1545
|
-
}), (
|
|
1546
|
-
|
|
1880
|
+
}), (_h = (_g = props.states) === null || _g === void 0 ? void 0 : _g.allCountries) === null || _h === void 0 ? void 0 :
|
|
1881
|
+
_h.map((c) => (h("sl-menu-item", { value: c.countryCode, style: { display: "none" } }, c.displayName))))),
|
|
1547
1882
|
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: ((
|
|
1883
|
+
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
1884
|
class: "error-input",
|
|
1550
1885
|
helpText: getValidationErrorMessage({
|
|
1551
|
-
type: (
|
|
1886
|
+
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
1887
|
label: props.text.paymentThresholdSelectLabel,
|
|
1888
|
+
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,
|
|
1889
|
+
fieldName: "paymentThreshold",
|
|
1553
1890
|
}),
|
|
1554
1891
|
})), 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: ((
|
|
1892
|
+
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
1893
|
class: "error-input",
|
|
1557
1894
|
helpText: getValidationErrorMessage({
|
|
1558
|
-
type: (
|
|
1895
|
+
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
1896
|
label: props.text.paymentDaySelectLabel,
|
|
1897
|
+
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,
|
|
1898
|
+
fieldName: "paymentDay",
|
|
1560
1899
|
}),
|
|
1561
1900
|
})), 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: ((
|
|
1901
|
+
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
1902
|
class: "error-input",
|
|
1564
1903
|
helpText: getValidationErrorMessage({
|
|
1565
|
-
type: (
|
|
1904
|
+
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
1905
|
label: props.text.payPalInputLabel,
|
|
1906
|
+
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,
|
|
1907
|
+
fieldName: "paypalEmailAddress",
|
|
1567
1908
|
}),
|
|
1568
1909
|
})))),
|
|
1569
1910
|
} })));
|