@saasquatch/mint-components 2.1.8 → 2.1.9-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{ShadowViewAddon-a26deae6.js → ShadowViewAddon-d679ec76.js} +6 -6
- package/dist/cjs/{data-8c8a08f6.js → data-e83f8a41.js} +2 -2
- package/dist/cjs/eventKeys-7af4df4d.js +5 -0
- package/dist/cjs/{global-b7b1b8fe.js → global-0f8b1267.js} +3177 -3126
- package/dist/cjs/{index.module-f8c8495f.js → index.module-42d413d9.js} +154 -149
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/mint-components.cjs.js +3 -3
- package/dist/cjs/{re-render-72a0ef45.js → re-render-69bde9ee.js} +1 -1
- package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +401 -68
- package/dist/cjs/sqm-big-stat_45.cjs.entry.js +27 -22
- 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_2.cjs.entry.js +802 -0
- package/dist/cjs/sqm-empty_4.cjs.entry.js +2 -2
- package/dist/cjs/sqm-google-sign-in.cjs.entry.js +1 -1
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +1 -1
- package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-lead-checkbox-field-view-0af2a157.js → sqm-lead-checkbox-field-view-d90f8941.js} +1 -1
- package/dist/cjs/sqm-lead-checkbox-field.cjs.entry.js +4 -4
- package/dist/cjs/{sqm-lead-input-field-view-0cd7ebdb.js → sqm-lead-input-field-view-818d9e9a.js} +1 -1
- package/dist/cjs/sqm-lead-input-field.cjs.entry.js +4 -4
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +2 -2
- package/dist/cjs/sqm-logout-current-user.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-navigation-sidebar-item-view-49b152dd.js → sqm-navigation-sidebar-item-view-20693e59.js} +1 -1
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +2 -2
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +1 -1
- package/dist/cjs/sqm-pagination_3.cjs.entry.js +3 -3
- package/dist/cjs/sqm-partner-info-modal-view-e3faede9.js +108 -0
- package/dist/cjs/sqm-partner-info-modal.cjs.entry.js +396 -0
- package/dist/cjs/sqm-password-field.cjs.entry.js +2 -2
- package/dist/cjs/sqm-popup-container.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-portal-email-verification-view-c81fe7f1.js → sqm-portal-email-verification-view-2b4b92da.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-639337e3.js → sqm-portal-profile-view-bfdbb98d.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-424e406a.js → sqm-portal-verify-email-view-90cd89e3.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 +174 -15
- 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-53306f6e.js → sqm-user-info-form-view-efa08934.js} +7 -2
- package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +1 -1
- package/dist/cjs/sqm-widget-verification.cjs.entry.js +20 -3
- package/dist/cjs/{useChildElements-041127d7.js → useChildElements-89bc50a9.js} +1 -1
- package/dist/cjs/{useInstantAccessRegistration-2398df36.js → useInstantAccessRegistration-651aa95b.js} +2 -2
- package/dist/cjs/{useLeadFormState-b4c2ab5b.js → useLeadFormState-76d3b511.js} +2 -2
- package/dist/cjs/{usePayoutStatus-0192fccd.js → usePayoutStatus-cf050a03.js} +4 -6
- package/dist/cjs/{usePortalRegistrationForm-23ee2d62.js → usePortalRegistrationForm-31822dc4.js} +2 -2
- package/dist/cjs/{useReferralCodes-0f7948af.js → useReferralCodes-89c2b972.js} +1 -1
- package/dist/cjs/{useReferralTable-6e9de0d5.js → useReferralTable-d3ddfd05.js} +3 -3
- package/dist/cjs/{useRegistrationFormState-4fe5b770.js → useRegistrationFormState-a223f597.js} +1 -1
- package/dist/cjs/{useVerificationEmail-5d19aa99.js → useVerificationEmail-994bc32f.js} +1 -1
- package/dist/cjs/{utilities-fcdb9504.js → utilities-096934ea.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/sqm-partner-info-modal/PartnerInfoModal.stories.js +145 -0
- package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal-view.js +103 -0
- package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal.js +512 -0
- package/dist/collection/components/sqm-partner-info-modal/usePartnerInfoModal.js +232 -0
- package/dist/collection/components/sqm-referral-iframe/ReferralIframe.stories.js +0 -1
- package/dist/collection/components/sqm-referral-iframe/sqm-referral-iframe-view.js +1 -1
- package/dist/collection/components/sqm-referral-iframe/sqm-referral-iframe.js +1 -27
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +2 -0
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +4 -1
- package/dist/collection/components/sqm-widget-verification/useWidgetVerification.js +15 -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 +95 -1
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +4 -4
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +6 -6
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +10 -1
- 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 +5 -0
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +7 -2
- package/dist/esm/{ShadowViewAddon-47f1e579.js → ShadowViewAddon-d382a63e.js} +6 -6
- package/dist/esm/{data-12e6aae1.js → data-a6752028.js} +2 -2
- package/dist/esm/eventKeys-f76b6a03.js +3 -0
- package/dist/esm/{global-96c14d63.js → global-b2ee3a12.js} +3177 -3126
- package/dist/esm/{index.module-b23fdad8.js → index.module-e266b4d7.js} +153 -150
- package/dist/esm/loader.js +3 -3
- package/dist/esm/mint-components.js +3 -3
- package/dist/esm/{re-render-f30aeb6b.js → re-render-4f4bd4da.js} +1 -1
- package/dist/esm/sqm-banking-info-form_10.entry.js +397 -64
- package/dist/esm/sqm-big-stat_45.entry.js +27 -22
- 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_2.entry.js +797 -0
- package/dist/esm/sqm-empty_4.entry.js +2 -2
- package/dist/esm/sqm-google-sign-in.entry.js +1 -1
- package/dist/esm/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm/sqm-instant-access-registration.entry.js +3 -3
- package/dist/esm/{sqm-lead-checkbox-field-view-7928db07.js → sqm-lead-checkbox-field-view-00d76ba1.js} +1 -1
- package/dist/esm/sqm-lead-checkbox-field.entry.js +4 -4
- package/dist/esm/{sqm-lead-input-field-view-d1b91650.js → sqm-lead-input-field-view-d8f76a9d.js} +1 -1
- package/dist/esm/sqm-lead-input-field.entry.js +4 -4
- package/dist/esm/sqm-leaderboard-rank.entry.js +2 -2
- package/dist/esm/sqm-logout-current-user.entry.js +1 -1
- package/dist/esm/{sqm-navigation-sidebar-item-view-b3beac5a.js → sqm-navigation-sidebar-item-view-7f966119.js} +1 -1
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +2 -2
- package/dist/esm/sqm-navigation-sidebar.entry.js +1 -1
- package/dist/esm/sqm-pagination_3.entry.js +3 -3
- package/dist/esm/sqm-partner-info-modal-view-77c231af.js +106 -0
- package/dist/esm/sqm-partner-info-modal.entry.js +392 -0
- package/dist/esm/sqm-password-field.entry.js +2 -2
- package/dist/esm/sqm-popup-container.entry.js +1 -1
- package/dist/esm/{sqm-portal-email-verification-view-426370f1.js → sqm-portal-email-verification-view-13e25037.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-f015fd6a.js → sqm-portal-profile-view-a172bdcc.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-1a638fae.js → sqm-portal-verify-email-view-c1a72c4f.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 +174 -15
- 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-19d81a2b.js → sqm-user-info-form-view-b2dd8aa1.js} +7 -2
- package/dist/esm/sqm-widget-verification-controller.entry.js +1 -1
- package/dist/esm/sqm-widget-verification.entry.js +20 -3
- package/dist/esm/{useChildElements-9bccfb72.js → useChildElements-31ba3daf.js} +1 -1
- package/dist/esm/{useInstantAccessRegistration-69fefed0.js → useInstantAccessRegistration-1388dace.js} +2 -2
- package/dist/esm/{useLeadFormState-dd4e8b08.js → useLeadFormState-cec544ea.js} +2 -2
- package/dist/esm/{usePayoutStatus-46c0c289.js → usePayoutStatus-24145412.js} +3 -4
- package/dist/esm/{usePortalRegistrationForm-62de6fb1.js → usePortalRegistrationForm-6d562bf8.js} +2 -2
- package/dist/esm/{useReferralCodes-52ca720f.js → useReferralCodes-1ca1fda0.js} +1 -1
- package/dist/esm/{useReferralTable-92af4133.js → useReferralTable-456931fd.js} +3 -3
- package/dist/esm/{useRegistrationFormState-2c090c38.js → useRegistrationFormState-0cee2d21.js} +1 -1
- package/dist/esm/{useVerificationEmail-c13c3b51.js → useVerificationEmail-5c6cd733.js} +1 -1
- package/dist/esm/{utilities-77b1e0cc.js → utilities-f05633da.js} +1 -1
- package/dist/esm-es5/{ShadowViewAddon-47f1e579.js → ShadowViewAddon-d382a63e.js} +1 -1
- package/dist/esm-es5/{data-12e6aae1.js → data-a6752028.js} +1 -1
- package/dist/esm-es5/eventKeys-f76b6a03.js +1 -0
- package/dist/esm-es5/global-b2ee3a12.js +285 -0
- package/dist/esm-es5/index.module-e266b4d7.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-f30aeb6b.js → re-render-4f4bd4da.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_2.entry.js +1 -0
- package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
- package/dist/esm-es5/sqm-google-sign-in.entry.js +1 -1
- package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
- package/dist/esm-es5/{sqm-lead-checkbox-field-view-7928db07.js → sqm-lead-checkbox-field-view-00d76ba1.js} +1 -1
- package/dist/esm-es5/sqm-lead-checkbox-field.entry.js +1 -1
- package/dist/esm-es5/{sqm-lead-input-field-view-d1b91650.js → sqm-lead-input-field-view-d8f76a9d.js} +1 -1
- package/dist/esm-es5/sqm-lead-input-field.entry.js +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
- package/dist/esm-es5/{sqm-navigation-sidebar-item-view-b3beac5a.js → sqm-navigation-sidebar-item-view-7f966119.js} +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
- package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
- package/dist/esm-es5/sqm-partner-info-modal-view-77c231af.js +1 -0
- package/dist/esm-es5/sqm-partner-info-modal.entry.js +1 -0
- package/dist/esm-es5/sqm-password-field.entry.js +1 -1
- package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-426370f1.js → sqm-portal-email-verification-view-13e25037.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password_6.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-f015fd6a.js → sqm-portal-profile-view-a172bdcc.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-1a638fae.js → sqm-portal-verify-email-view-c1a72c4f.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-19d81a2b.js → sqm-user-info-form-view-b2dd8aa1.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-9bccfb72.js → useChildElements-31ba3daf.js} +1 -1
- package/dist/esm-es5/{useInstantAccessRegistration-69fefed0.js → useInstantAccessRegistration-1388dace.js} +1 -1
- package/dist/esm-es5/{useLeadFormState-dd4e8b08.js → useLeadFormState-cec544ea.js} +1 -1
- package/dist/esm-es5/{usePayoutStatus-46c0c289.js → usePayoutStatus-24145412.js} +2 -2
- package/dist/esm-es5/{usePortalRegistrationForm-62de6fb1.js → usePortalRegistrationForm-6d562bf8.js} +1 -1
- package/dist/esm-es5/{useReferralCodes-52ca720f.js → useReferralCodes-1ca1fda0.js} +1 -1
- package/dist/esm-es5/{useReferralTable-92af4133.js → useReferralTable-456931fd.js} +1 -1
- package/dist/esm-es5/{useRegistrationFormState-2c090c38.js → useRegistrationFormState-0cee2d21.js} +1 -1
- package/dist/esm-es5/{useVerificationEmail-c13c3b51.js → useVerificationEmail-5c6cd733.js} +1 -1
- package/dist/esm-es5/{utilities-77b1e0cc.js → utilities-f05633da.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/mint-components.system.js +1 -0
- package/dist/mint-components/{p-653db72e.entry.js → p-06ca4346.entry.js} +1 -1
- package/dist/mint-components/{p-738dce27.system.entry.js → p-07da0ddd.system.entry.js} +1 -1
- package/dist/mint-components/{p-982d1f6f.entry.js → p-07f3b868.entry.js} +2 -2
- package/dist/mint-components/{p-2d5c2bd4.system.entry.js → p-0a900fb1.system.entry.js} +1 -1
- package/dist/mint-components/{p-b66f45d1.entry.js → p-1435edd4.entry.js} +1 -1
- package/dist/mint-components/p-1775cb0c.system.js +6 -0
- package/dist/mint-components/p-1b0d7020.js +1 -0
- package/dist/mint-components/{p-c8a8d231.entry.js → p-1b7b65ef.entry.js} +2 -2
- package/dist/mint-components/p-1b9705fd.system.js +285 -0
- package/dist/mint-components/p-1d450b85.js +1 -0
- package/dist/mint-components/{p-70570e4d.system.entry.js → p-20280398.system.entry.js} +1 -1
- package/dist/mint-components/p-2085bb01.system.entry.js +1 -0
- package/dist/mint-components/{p-bab4929e.js → p-21851092.js} +1 -1
- package/dist/mint-components/{p-a96c9bbb.system.entry.js → p-2774c704.system.entry.js} +1 -1
- package/dist/mint-components/p-28ed2ae9.js +1 -0
- package/dist/mint-components/{p-fe1d3cf8.system.entry.js → p-2ad9470d.system.entry.js} +1 -1
- package/dist/mint-components/{p-5ff7b000.entry.js → p-2c0bb139.entry.js} +1 -1
- package/dist/mint-components/{p-e5ea43b1.entry.js → p-2e2c5ec4.entry.js} +2 -2
- package/dist/mint-components/{p-642f2c89.js → p-30967f75.js} +1 -1
- package/dist/mint-components/{p-e6240c72.js → p-320b306b.js} +1 -1
- package/dist/mint-components/{p-e84b874c.js → p-33a6ab09.js} +1 -1
- package/dist/mint-components/{p-91a96e98.entry.js → p-353ab6db.entry.js} +1 -1
- package/dist/mint-components/p-35724e1c.entry.js +1 -0
- package/dist/mint-components/p-3b2ae7b9.entry.js +105 -0
- package/dist/mint-components/{p-ea03e50e.system.js → p-3dc1e209.system.js} +1 -1
- package/dist/mint-components/{p-cb0a5990.entry.js → p-44afc747.entry.js} +1 -1
- package/dist/mint-components/{p-85721089.system.js → p-452f644f.system.js} +1 -1
- package/dist/mint-components/{p-f55ecf35.system.js → p-473562fc.system.js} +1 -1
- package/dist/mint-components/{p-55676213.entry.js → p-47f594c3.entry.js} +1 -1
- package/dist/mint-components/p-4b365f1f.system.js +1 -0
- package/dist/mint-components/{p-e12754f5.system.entry.js → p-4da8028d.system.entry.js} +1 -1
- package/dist/mint-components/{p-95510f27.entry.js → p-504ed1f2.entry.js} +1 -1
- package/dist/mint-components/{p-f581aac7.js → p-5126508b.js} +1 -1
- package/dist/mint-components/{p-fc284f91.system.entry.js → p-5245e4ce.system.entry.js} +1 -1
- package/dist/mint-components/{p-f0baeed0.entry.js → p-5450693e.entry.js} +1 -1
- package/dist/mint-components/{p-f4e36adf.system.entry.js → p-55b1be64.system.entry.js} +1 -1
- package/dist/mint-components/{p-782af7ae.system.entry.js → p-5822a43f.system.entry.js} +1 -1
- package/dist/mint-components/{p-f39cf252.system.entry.js → p-5825aee6.system.entry.js} +1 -1
- package/dist/mint-components/{p-77b9cde8.system.js → p-59644ef8.system.js} +1 -1
- package/dist/mint-components/{p-f35d856a.system.js → p-5d79c8a0.system.js} +1 -1
- package/dist/mint-components/{p-e4f17c21.system.js → p-5e106c95.system.js} +1 -1
- package/dist/mint-components/{p-db0a2afd.entry.js → p-5f6d617a.entry.js} +1 -1
- package/dist/mint-components/{p-ff118a19.system.js → p-614630a8.system.js} +1 -1
- package/dist/mint-components/p-6596f0de.entry.js +9 -0
- package/dist/mint-components/{p-bc386a7b.js → p-6684e9ad.js} +1 -1
- package/dist/mint-components/{p-8583ce0c.system.js → p-695ec086.system.js} +1 -1
- package/dist/mint-components/{p-ce050888.system.js → p-6d444f3f.system.js} +1 -1
- package/dist/mint-components/{p-90833864.system.entry.js → p-6e816a17.system.entry.js} +1 -1
- package/dist/mint-components/p-6f8dde97.system.js +1 -0
- package/dist/mint-components/p-71c585b7.entry.js +1 -0
- package/dist/mint-components/{p-aefc6c4f.system.entry.js → p-7333d103.system.entry.js} +1 -1
- package/dist/mint-components/{p-8f2d03c7.entry.js → p-7528770e.entry.js} +1 -1
- package/dist/mint-components/{p-c8bcbf8b.system.entry.js → p-7767314d.system.entry.js} +1 -1
- package/dist/mint-components/p-78909fc0.system.js +1 -0
- package/dist/mint-components/{p-692e14c5.system.js → p-79854479.system.js} +1 -1
- package/dist/mint-components/{p-7161e1a6.js → p-7a7ebf08.js} +1 -1
- package/dist/mint-components/{p-25558a33.entry.js → p-7c0255ad.entry.js} +1 -1
- package/dist/mint-components/{p-5c4ba8a0.entry.js → p-80174c14.entry.js} +1 -1
- package/dist/mint-components/{p-7b59e13c.system.js → p-82905fda.system.js} +1 -1
- package/dist/mint-components/{p-80e116ec.system.entry.js → p-82be3d10.system.entry.js} +1 -1
- package/dist/mint-components/{p-172675ca.system.js → p-83277c69.system.js} +1 -1
- package/dist/mint-components/{p-09348341.entry.js → p-84866680.entry.js} +1 -1
- package/dist/mint-components/{p-c30d0049.system.entry.js → p-878bb2cf.system.entry.js} +1 -1
- package/dist/mint-components/{p-61897e72.entry.js → p-89f8ab67.entry.js} +1 -1
- package/dist/mint-components/p-8f5b316e.js +49 -0
- package/dist/mint-components/{p-5ce78407.system.entry.js → p-91c4b8d5.system.entry.js} +1 -1
- package/dist/mint-components/{p-dd368927.system.entry.js → p-93cb9438.system.entry.js} +1 -1
- package/dist/mint-components/{p-5b871e38.system.entry.js → p-96cbca52.system.entry.js} +1 -1
- package/dist/mint-components/{p-217dedde.js → p-97b8c481.js} +2 -2
- package/dist/mint-components/p-9be145c6.system.entry.js +1 -0
- package/dist/mint-components/{p-d005df28.system.entry.js → p-9c381424.system.entry.js} +1 -1
- package/dist/mint-components/{p-6c4ad51a.js → p-9f21ea69.js} +1 -1
- package/dist/mint-components/{p-0c0d4065.js → p-9fa6606e.js} +3 -3
- package/dist/mint-components/{p-d18dedd4.js → p-a03189bd.js} +1 -1
- package/dist/mint-components/p-a0667674.system.entry.js +1 -0
- package/dist/mint-components/{p-058aefe1.entry.js → p-a30f0ffd.entry.js} +1 -1
- package/dist/mint-components/p-a9855b29.system.entry.js +1 -0
- package/dist/mint-components/p-aa0b0cd6.entry.js +108 -0
- package/dist/mint-components/{p-3366b81e.js → p-ab678644.js} +2 -2
- package/dist/mint-components/{p-d997001a.js → p-ad017a39.js} +1 -1
- package/dist/mint-components/{p-205cfdcd.system.js → p-b179621d.system.js} +1 -1
- package/dist/mint-components/{p-6668f9f0.entry.js → p-b6fc53c9.entry.js} +1 -1
- package/dist/mint-components/{p-027fc3be.system.entry.js → p-b8288385.system.entry.js} +1 -1
- package/dist/mint-components/{p-013564b3.entry.js → p-b8766db9.entry.js} +1 -1
- package/dist/mint-components/{p-3bc62ca6.entry.js → p-b9652150.entry.js} +1 -1
- package/dist/mint-components/{p-e3497e0e.system.entry.js → p-bae7d6b5.system.entry.js} +1 -1
- package/dist/mint-components/{p-a4f8abad.js → p-bd804f4c.js} +1 -1
- package/dist/mint-components/{p-d4570314.entry.js → p-c2c01ab5.entry.js} +1 -1
- package/dist/mint-components/{p-036a2617.system.js → p-c756bc32.system.js} +1 -1
- package/dist/mint-components/{p-f1374258.system.entry.js → p-c8060ef5.system.entry.js} +1 -1
- package/dist/mint-components/{p-52674798.entry.js → p-cc0fe4a3.entry.js} +1 -1
- package/dist/mint-components/{p-4da5a3fe.system.entry.js → p-d2448c85.system.entry.js} +1 -1
- package/dist/mint-components/{p-5b1d2866.system.js → p-d42aba0e.system.js} +1 -1
- package/dist/mint-components/{p-3286ef38.js → p-d5375baf.js} +1 -1
- package/dist/mint-components/p-d6c1e876.system.js +1 -0
- package/dist/mint-components/{p-035d9b65.js → p-d863acaa.js} +1 -1
- package/dist/mint-components/{p-e6ace3ab.js → p-dece706f.js} +1 -1
- package/dist/mint-components/{p-ec0b649a.entry.js → p-dfb50245.entry.js} +1 -1
- package/dist/mint-components/{p-7efb8782.system.js → p-e44c816e.system.js} +1 -1
- package/dist/mint-components/{p-19c441b2.system.js → p-e4d3b7a9.system.js} +1 -1
- package/dist/mint-components/{p-b2b85238.entry.js → p-e502fd80.entry.js} +1 -1
- package/dist/mint-components/{p-e00ec007.js → p-e5e8e13e.js} +1 -1
- package/dist/mint-components/{p-7ee8f2ed.entry.js → p-e6924adb.entry.js} +3 -3
- package/dist/mint-components/{p-f8a09b0f.js → p-e7a9ce16.js} +152 -152
- package/dist/mint-components/{p-c67f8558.system.entry.js → p-e9a596d6.system.entry.js} +1 -1
- package/dist/mint-components/{p-09f7aacd.entry.js → p-ed17e1b8.entry.js} +2 -2
- package/dist/mint-components/p-ef64e6f0.entry.js +16 -0
- package/dist/mint-components/{p-d6193876.system.js → p-f3b21df2.system.js} +1 -1
- package/dist/mint-components/{p-c45a929a.system.entry.js → p-f3ddbe2f.system.entry.js} +1 -1
- package/dist/mint-components/{p-77fa2383.entry.js → p-f6fc7569.entry.js} +1 -1
- package/dist/mint-components/{p-626b31cb.system.entry.js → p-f7948b16.system.entry.js} +1 -1
- package/dist/mint-components/{p-a0c5631b.system.js → p-f84605ec.system.js} +1 -1
- package/dist/mint-components/{p-ab0ea688.system.entry.js → p-f95952a0.system.entry.js} +1 -1
- package/dist/mint-components/{p-5141769d.system.entry.js → p-fa32d8eb.system.entry.js} +1 -1
- package/dist/mint-components/{p-0d83907e.js → p-fca34d77.js} +1 -1
- package/dist/mint-components/p-fd214860.system.entry.js +1 -0
- package/dist/mint-components/{p-2b4af8e8.system.entry.js → p-fe0eceba.system.entry.js} +1 -1
- package/dist/mint-components/sqm-partner-info-modal.entry.js +392 -0
- package/dist/mint-components/sqm-partner-info-modal.system.entry.js +1 -0
- package/dist/mint-components/sqm-widget-verification.entry.js +228 -0
- package/dist/mint-components/sqm-widget-verification.system.entry.js +1 -0
- package/dist/types/components/sqm-partner-info-modal/PartnerInfoModal.stories.d.ts +13 -0
- package/dist/types/components/sqm-partner-info-modal/sqm-partner-info-modal-view.d.ts +43 -0
- package/dist/types/components/sqm-partner-info-modal/sqm-partner-info-modal.d.ts +94 -0
- package/dist/types/components/sqm-partner-info-modal/usePartnerInfoModal.d.ts +16 -0
- package/dist/types/components/sqm-referral-iframe/sqm-referral-iframe-view.d.ts +0 -1
- package/dist/types/components/sqm-referral-iframe/sqm-referral-iframe.d.ts +0 -5
- package/dist/types/components/sqm-widget-verification/useWidgetVerification.d.ts +2 -0
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/formDefinitions.d.ts +2 -0
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.d.ts +4 -0
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.d.ts +165 -0
- package/dist/types/components.d.ts +402 -10
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/shoelace/assets/icons/twitter-x.svg +4 -0
- package/dist/cjs/sqm-email-verification.cjs.entry.js +0 -418
- package/dist/esm/sqm-email-verification.entry.js +0 -414
- package/dist/esm-es5/global-96c14d63.js +0 -271
- package/dist/esm-es5/index.module-b23fdad8.js +0 -1
- package/dist/esm-es5/sqm-email-verification.entry.js +0 -1
- package/dist/mint-components/p-02499e08.entry.js +0 -1
- package/dist/mint-components/p-0614dcbc.entry.js +0 -9
- package/dist/mint-components/p-0706cf9e.system.entry.js +0 -1
- package/dist/mint-components/p-30c1ef36.system.js +0 -1
- package/dist/mint-components/p-3adbfd0b.system.js +0 -6
- package/dist/mint-components/p-5492dd51.system.entry.js +0 -1
- package/dist/mint-components/p-6e512063.entry.js +0 -25
- package/dist/mint-components/p-7265bbcb.system.js +0 -271
- package/dist/mint-components/p-b395470f.entry.js +0 -16
- package/dist/mint-components/p-bf545082.system.entry.js +0 -1
- package/dist/mint-components/p-ca098be1.system.js +0 -1
- package/dist/mint-components/p-d0993bb9.js +0 -1
- package/dist/mint-components/p-d4f332a7.entry.js +0 -106
- package/dist/mint-components/p-de0d6fd7.js +0 -49
- package/dist/mint-components/p-de343dd0.system.entry.js +0 -1
- package/dist/mint-components/p-fbe00c97.system.entry.js +0 -1
- package/dist/mint-components/p-fe70e20c.entry.js +0 -1
- package/docs/stats.json +0 -122783
|
@@ -1,24 +1,25 @@
|
|
|
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-b2ee3a12.js';
|
|
3
3
|
import { m as useRef, k as useState, f as useEffect, n as h$1, u as useMemo, b as browser, j as useReducer } from './dom-context-hooks.module-50442785.js';
|
|
4
|
-
import { d as dist, _, L, J,
|
|
4
|
+
import { d as dist, _, L, J, t as Pn, F as Fn, x as $n, $ as $e, i as isDemo, q as En, b as useCallback, R as Rn, w as wn } from './index.module-e266b4d7.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-4f4bd4da.js';
|
|
12
|
+
import { u as useChildElements } from './useChildElements-31ba3daf.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-456931fd.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-b2dd8aa1.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-a6752028.js';
|
|
17
17
|
import { b as VERIFICATION_EVENT_KEY } from './keys-406491dc.js';
|
|
18
|
-
import { T as TAX_FORM_UPDATED_EVENT_KEY
|
|
18
|
+
import { T as TAX_FORM_UPDATED_EVENT_KEY } from './eventKeys-f76b6a03.js';
|
|
19
|
+
import { a as useVeriffApp, g as getStatus, V as VERIFF_COMPLETE_EVENT_KEY } from './usePayoutStatus-24145412.js';
|
|
19
20
|
|
|
20
21
|
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;
|
|
22
|
+
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
23
|
const { errors, ...formState } = props.states.formState;
|
|
23
24
|
return {
|
|
24
25
|
0: {
|
|
@@ -27,44 +28,54 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
27
28
|
helpText: getValidationErrorMessage({
|
|
28
29
|
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
30
|
label: props.text.beneficiaryAccountNameLabel,
|
|
31
|
+
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,
|
|
32
|
+
fieldName: "beneficiaryAccountName",
|
|
30
33
|
}),
|
|
31
34
|
})))),
|
|
32
35
|
},
|
|
33
36
|
1: {
|
|
34
|
-
input: (h("sl-select", Object.assign({ required: true, label: props.text.bankAccountTypeLabel, name: "/bankAccountType", id: "bankAccountType", key: "bankAccountType" }, (((
|
|
37
|
+
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
38
|
class: "error-input",
|
|
36
39
|
helpText: getValidationErrorMessage({
|
|
37
|
-
type: (
|
|
40
|
+
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
41
|
label: props.text.bankAccountTypeLabel,
|
|
42
|
+
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,
|
|
43
|
+
fieldName: "bankAccountType",
|
|
39
44
|
}),
|
|
40
45
|
})),
|
|
41
46
|
h("sl-menu-item", { value: "CHECKING" }, props.text.checkingSelectItemLabel),
|
|
42
47
|
h("sl-menu-item", { value: "SAVINGS" }, props.text.savingsSelectItemLabel))),
|
|
43
48
|
},
|
|
44
49
|
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" }, (((
|
|
50
|
+
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
51
|
class: "error-input",
|
|
47
52
|
helpText: getValidationErrorMessage({
|
|
48
|
-
type: (
|
|
53
|
+
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
54
|
label: props.text.bankAccountNumberLabel,
|
|
55
|
+
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,
|
|
56
|
+
fieldName: "bankAccountNumber",
|
|
50
57
|
}),
|
|
51
58
|
})))),
|
|
52
59
|
},
|
|
53
60
|
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 }, (((
|
|
61
|
+
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
62
|
class: "error-input",
|
|
56
63
|
helpText: getValidationErrorMessage({
|
|
57
|
-
type: (
|
|
64
|
+
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
65
|
label: props.text.ibanLabel,
|
|
66
|
+
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,
|
|
67
|
+
fieldName: "bankAccountNumber",
|
|
59
68
|
}),
|
|
60
69
|
})))),
|
|
61
70
|
},
|
|
62
71
|
4: {
|
|
63
|
-
input: (h("sl-input", Object.assign({ required: true, label: props.text.swiftCodeLabel, name: "/swiftCode", id: "swiftCode", key: "swiftCode", type: "text" }, (((
|
|
72
|
+
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
73
|
class: "error-input",
|
|
65
74
|
helpText: getValidationErrorMessage({
|
|
66
|
-
type: (
|
|
75
|
+
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
76
|
label: props.text.swiftCodeLabel,
|
|
77
|
+
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,
|
|
78
|
+
fieldName: "swiftCode",
|
|
68
79
|
}),
|
|
69
80
|
})))),
|
|
70
81
|
},
|
|
@@ -74,35 +85,41 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
74
85
|
defaultMessage: props.text.routingCodeLabel,
|
|
75
86
|
}, {
|
|
76
87
|
bankCountry,
|
|
77
|
-
}), name: "/routingCode", id: "routingCode", key: "routingCode", type: "text" }, (((
|
|
88
|
+
}), 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
89
|
class: "error-input",
|
|
79
90
|
helpText: getValidationErrorMessage({
|
|
80
|
-
type: (
|
|
91
|
+
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
92
|
label: intl.formatMessage({
|
|
82
93
|
id: "routingCodeErrorText",
|
|
83
94
|
defaultMessage: props.text.routingCodeLabel,
|
|
84
95
|
}, {
|
|
85
96
|
bankCountry,
|
|
86
97
|
}),
|
|
98
|
+
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,
|
|
99
|
+
fieldName: "routingCode",
|
|
87
100
|
}),
|
|
88
101
|
})))),
|
|
89
102
|
},
|
|
90
103
|
6: {
|
|
91
|
-
input: (h("sl-input", Object.assign({ required: true, label: props.text.bankNameLabel, name: "/bankName", id: "bankName", key: "bankName", type: "text" }, (((
|
|
104
|
+
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
105
|
class: "error-input",
|
|
93
106
|
helpText: getValidationErrorMessage({
|
|
94
|
-
type: (
|
|
107
|
+
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
108
|
label: props.text.bankNameLabel,
|
|
109
|
+
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,
|
|
110
|
+
fieldName: "bankName",
|
|
96
111
|
}),
|
|
97
112
|
})))),
|
|
98
113
|
},
|
|
99
114
|
7: {
|
|
100
115
|
input: [
|
|
101
|
-
h("sl-select", Object.assign({ required: true, label: props.text.classificationLabel, name: "/beneficiaryClassification", id: "beneficiaryClassification", key: "beneficiaryClassification" }, (((
|
|
116
|
+
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
117
|
class: "error-input",
|
|
103
118
|
helpText: getValidationErrorMessage({
|
|
104
|
-
type: (
|
|
119
|
+
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
120
|
label: props.text.classificationLabel,
|
|
121
|
+
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,
|
|
122
|
+
fieldName: "beneficiaryClassification",
|
|
106
123
|
}),
|
|
107
124
|
})),
|
|
108
125
|
h("sl-menu-item", { value: "BUSINESS" }, props.text.businessSelectItemLabel),
|
|
@@ -113,100 +130,122 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
113
130
|
defaultMessage: props.text.taxPayerIdLabel,
|
|
114
131
|
}, {
|
|
115
132
|
bankCountry,
|
|
116
|
-
}), type: "text", name: "/beneficiaryTaxPayerId", id: "beneficiaryTaxPayerId", key: "beneficiaryTaxPayerId" }, (((
|
|
133
|
+
}), 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
134
|
class: "error-input",
|
|
118
135
|
helpText: getValidationErrorMessage({
|
|
119
|
-
type: (
|
|
136
|
+
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
137
|
label: props.text.taxPayerIdLabel,
|
|
138
|
+
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,
|
|
139
|
+
fieldName: "taxPayerId",
|
|
121
140
|
}),
|
|
122
141
|
}))),
|
|
123
142
|
],
|
|
124
143
|
},
|
|
125
144
|
8: {
|
|
126
|
-
input: (h("sl-select", Object.assign({ required: true, label: props.text.classificationCPFLabel, name: "/beneficiaryClassification", id: "beneficiaryClassification", key: "beneficiaryClassification" }, (((
|
|
145
|
+
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
146
|
class: "error-input",
|
|
128
147
|
helpText: getValidationErrorMessage({
|
|
129
|
-
type: (
|
|
148
|
+
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
149
|
label: props.text.classificationCPFLabel,
|
|
150
|
+
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,
|
|
151
|
+
fieldName: "beneficiaryClassification",
|
|
131
152
|
}),
|
|
132
153
|
})),
|
|
133
154
|
h("sl-menu-item", { value: "CPF" }, "CPF"),
|
|
134
155
|
h("sl-menu-item", { value: "CNPJ" }, "CNPJ"))),
|
|
135
156
|
},
|
|
136
157
|
9: {
|
|
137
|
-
input: (h("sl-input", Object.assign({ key: "patronymicName", required: true, label: props.text.patronymicNameLabel, name: "/patronymicName", id: "patronymicName", type: "text" }, (((
|
|
158
|
+
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
159
|
class: "error-input",
|
|
139
160
|
helpText: getValidationErrorMessage({
|
|
140
|
-
type: (
|
|
161
|
+
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
162
|
label: props.text.patronymicNameLabel,
|
|
163
|
+
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,
|
|
164
|
+
fieldName: "patronymicName",
|
|
142
165
|
}),
|
|
143
166
|
})))),
|
|
144
167
|
},
|
|
145
168
|
10: {
|
|
146
|
-
input: (h("sl-input", Object.assign({ key: "voCode", label: props.text.voCodeLabel, name: "/voCode", id: "voCode", type: "text" }, (((
|
|
169
|
+
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
170
|
class: "error-input",
|
|
148
171
|
helpText: getValidationErrorMessage({
|
|
149
|
-
type: (
|
|
172
|
+
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
173
|
label: props.text.voCodeLabel,
|
|
174
|
+
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,
|
|
175
|
+
fieldName: "voCode",
|
|
151
176
|
}),
|
|
152
177
|
})))),
|
|
153
178
|
},
|
|
154
179
|
11: {
|
|
155
|
-
input: (h("sl-input", Object.assign({ required: true, label: props.text.agencyCodeLabel, name: "/agencyCode", id: "agencyCode", key: "agencyCode", type: "text" }, (((
|
|
180
|
+
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
181
|
class: "error-input",
|
|
157
182
|
helpText: getValidationErrorMessage({
|
|
158
|
-
type: (
|
|
183
|
+
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
184
|
label: props.text.agencyCodeLabel,
|
|
185
|
+
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,
|
|
186
|
+
fieldName: "agencyCode",
|
|
160
187
|
}),
|
|
161
188
|
})))),
|
|
162
189
|
},
|
|
163
190
|
12: {
|
|
164
191
|
input: [
|
|
165
|
-
h("sl-input", Object.assign({ required: true, label: props.text.bankAddressLabel, name: "/bankAddress", id: "bankAddress", key: "bankAddress", type: "text" }, (((
|
|
192
|
+
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
193
|
class: "error-input",
|
|
167
194
|
helpText: getValidationErrorMessage({
|
|
168
|
-
type: (
|
|
195
|
+
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
196
|
label: props.text.bankAddressLabel,
|
|
197
|
+
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,
|
|
198
|
+
fieldName: "bankAddress",
|
|
170
199
|
}),
|
|
171
200
|
}))),
|
|
172
|
-
h("sl-input", Object.assign({ required: true, label: props.text.bankCityLabel, name: "/bankCity", id: "bankCity", key: "bankCity", type: "text" }, (((
|
|
201
|
+
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
202
|
class: "error-input",
|
|
174
203
|
helpText: getValidationErrorMessage({
|
|
175
|
-
type: (
|
|
204
|
+
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
205
|
label: props.text.bankCityLabel,
|
|
206
|
+
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,
|
|
207
|
+
fieldName: "bankCity",
|
|
177
208
|
}),
|
|
178
209
|
}))),
|
|
179
|
-
h("sl-input", Object.assign({ required: true, label: props.text.bankStateLabel, name: "/bankState", id: "bankState", key: "bankState", type: "text" }, (((
|
|
210
|
+
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
211
|
class: "error-input",
|
|
181
212
|
helpText: getValidationErrorMessage({
|
|
182
|
-
type: (
|
|
213
|
+
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
214
|
label: props.text.bankStateLabel,
|
|
215
|
+
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,
|
|
216
|
+
fieldName: "bankState",
|
|
184
217
|
}),
|
|
185
218
|
}))),
|
|
186
|
-
h("sl-input", Object.assign({ required: true, label: props.text.bankPostalCodeLabel, name: "/bankPostalCode", id: "bankPostalCode", key: "bankPostalCode", type: "text" }, (((
|
|
219
|
+
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
220
|
class: "error-input",
|
|
188
221
|
helpText: getValidationErrorMessage({
|
|
189
|
-
type: (
|
|
222
|
+
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
223
|
label: props.text.bankPostalCodeLabel,
|
|
224
|
+
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,
|
|
225
|
+
fieldName: "bankPostalCode",
|
|
191
226
|
}),
|
|
192
227
|
}))),
|
|
193
228
|
],
|
|
194
229
|
},
|
|
195
230
|
13: {
|
|
196
|
-
input: (h("sl-input", Object.assign({ required: true, label: props.text.branchCodeLabel, name: "/branchCode", id: "branchCode", key: "branchCode", type: "text" }, (((
|
|
231
|
+
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
232
|
class: "error-input",
|
|
198
233
|
helpText: getValidationErrorMessage({
|
|
199
|
-
type: (
|
|
234
|
+
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
235
|
label: props.text.branchCodeLabel,
|
|
236
|
+
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,
|
|
237
|
+
fieldName: "branchCode",
|
|
201
238
|
}),
|
|
202
239
|
})))),
|
|
203
240
|
},
|
|
204
241
|
14: {
|
|
205
|
-
input: (h("sl-select", Object.assign({ required: true, label: props.text.classificationLabel, name: "/beneficiaryClassification", id: "beneficiaryClassification", key: "beneficiaryClassification" }, (((
|
|
242
|
+
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
243
|
class: "error-input",
|
|
207
244
|
helpText: getValidationErrorMessage({
|
|
208
|
-
type: (
|
|
245
|
+
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
246
|
label: props.text.classificationLabel,
|
|
247
|
+
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,
|
|
248
|
+
fieldName: "beneficiaryClassification",
|
|
210
249
|
}),
|
|
211
250
|
})),
|
|
212
251
|
h("sl-menu-item", { value: "BUSINESS" }, props.text.businessSelectItemLabel),
|
|
@@ -799,6 +838,95 @@ const paypalFeeMap = {
|
|
|
799
838
|
const ACH_PAYMENT_METHOD = 3;
|
|
800
839
|
const WIRE_PAYMENT_METHOD = 5;
|
|
801
840
|
const PAYPAL_PAYMENT_METHOD = 7;
|
|
841
|
+
/**
|
|
842
|
+
* Maps GraphQL validation error field names to form field names.
|
|
843
|
+
*/
|
|
844
|
+
const API_FIELD_TO_FORM_FIELD = {
|
|
845
|
+
// bankProvinceState → form uses bankState
|
|
846
|
+
bankProvinceState: "bankState",
|
|
847
|
+
};
|
|
848
|
+
/**
|
|
849
|
+
* Maps Impact API error code paths (from validationErrors[].errorPath) to short,
|
|
850
|
+
* readable frontend error codes used in the ICU select props.
|
|
851
|
+
*/
|
|
852
|
+
const API_ERROR_PATH_TO_FRONTEND = {
|
|
853
|
+
// Beneficiary account name
|
|
854
|
+
"withdrawal.settings.error.empty_beneficiaryname": "empty",
|
|
855
|
+
"withdrawal.settings.error.invalid_character_beneficiaryname": "invalidCharacters",
|
|
856
|
+
"withdrawal.settings.error.numeric_beneficiaryname": "numeric",
|
|
857
|
+
"withdrawal_settings.error.beneficiaryname.size": "tooLong",
|
|
858
|
+
"withdrawal.settings.error.non_english_beneficiaryname": "nonEnglish",
|
|
859
|
+
"withdrawal_settings.error.business_beneficiaryname_match": "businessNameMismatch",
|
|
860
|
+
"withdrawal_settings.error.beneficiaryname_match": "nameMismatch",
|
|
861
|
+
"withdrawal_settings.error.business_checkpayeename_match": "businessPayeeMismatch",
|
|
862
|
+
"withdrawal_settings.error.checkpayeename_match": "payeeMismatch",
|
|
863
|
+
// Bank account number
|
|
864
|
+
"withdrawal.settings.error.accountnumber.empty": "empty",
|
|
865
|
+
"withdrawal.settings.error.accountnumber.uk": "invalidUk",
|
|
866
|
+
"withdrawal.settings.error.bankaccount.invalid": "invalid",
|
|
867
|
+
// IBAN
|
|
868
|
+
"withdrawal.settings.error.iban": "ibanEmpty",
|
|
869
|
+
"withdrawal.settings.error.iban.alphanumeric": "ibanAlphanumeric",
|
|
870
|
+
"withdrawal.settings.error.iban.invalid": "ibanInvalid",
|
|
871
|
+
"withdrawal.settings.error.iban.uk.country.mismatch": "ibanCountryMismatch",
|
|
872
|
+
// Routing code
|
|
873
|
+
"withdrawal.settings.error.bsbNumber": "invalidBsb",
|
|
874
|
+
"withdrawal.settings.error.sortcode": "invalidSortCode",
|
|
875
|
+
"withdrawal.settings.error.routingNumber": "empty",
|
|
876
|
+
"withdrawal.settings.error.routingcode": "invalid",
|
|
877
|
+
// SWIFT / BIC
|
|
878
|
+
"withdrawal.settings.error.bic": "empty",
|
|
879
|
+
"withdrawal.settings.error.bic.alphanumeric": "alphanumeric",
|
|
880
|
+
"withdrawal.settings.error.bic.invalid": "invalid",
|
|
881
|
+
// Bank account type
|
|
882
|
+
"global.error.invalid.accounttype": "empty",
|
|
883
|
+
// Bank name
|
|
884
|
+
"withdrawal.settings.error.bankName": "empty",
|
|
885
|
+
// Tax payer ID
|
|
886
|
+
"withdrawal.settings.error.taxPayerId": "empty",
|
|
887
|
+
"withdrawal.settings.error.taxPayerId.ar": "emptyAr",
|
|
888
|
+
"withdrawal.settings.error.taxPayerId.kr": "emptyKr",
|
|
889
|
+
"withdrawal.settings.error.taxPayerId.alphanumeric": "alphanumeric",
|
|
890
|
+
"withdrawal.settings.error.taxPayerId.alphanumeric.ar": "alphanumericAr",
|
|
891
|
+
"withdrawal.settings.error.taxPayerId.alphanumeric.kr": "alphanumericKr",
|
|
892
|
+
"withdrawal.settings.error.taxPayerId.invalid": "invalid",
|
|
893
|
+
"withdrawal.settings.error.taxPayerId.invalid.ar": "invalidAr",
|
|
894
|
+
"withdrawal.settings.error.taxPayerId.invalid.kr": "invalidKr",
|
|
895
|
+
"withdrawal.settings.error.taxPayerId.invalid.kzt": "invalidKzt",
|
|
896
|
+
"withdrawal.settings.error.taxPayerId.cnpj": "cnpjTooShort",
|
|
897
|
+
"withdrawal.settings.error.taxPayerId.cpf": "cpfTooShort",
|
|
898
|
+
// Patronymic name
|
|
899
|
+
"withdrawal.settings.error.patronymicName": "empty",
|
|
900
|
+
"withdrawal.settings.error.patronymicName.alphanumeric": "alphanumeric",
|
|
901
|
+
// VO code
|
|
902
|
+
"withdrawal.settings.error.voCode": "empty",
|
|
903
|
+
"withdrawal.settings.error.voCode.alphanumeric": "alphanumeric",
|
|
904
|
+
// Agency code
|
|
905
|
+
"withdrawal.settings.error.agencyCode": "empty",
|
|
906
|
+
"withdrawal.settings.error.agencyCode.alphanumeric": "alphanumeric",
|
|
907
|
+
"withdrawal.settings.error.agencyCode.length": "tooShort",
|
|
908
|
+
// Bank address fields
|
|
909
|
+
"withdrawal.settings.error.bankAddress": "empty",
|
|
910
|
+
"withdrawal.settings.error.bankCity": "empty",
|
|
911
|
+
"withdrawal.settings.error.bankProvinceState": "empty",
|
|
912
|
+
"withdrawal.settings.error.bankPostalCode": "empty",
|
|
913
|
+
// Branch code / name
|
|
914
|
+
"withdrawal.settings.error.branchCode": "invalid",
|
|
915
|
+
"withdrawal.settings.error.branchName": "empty",
|
|
916
|
+
// Classification code
|
|
917
|
+
"withdrawal.settings.error.classificationCode.invalid": "empty",
|
|
918
|
+
"withdrawal.settings.error.classificationCode.invalid.kzt": "invalidKzt",
|
|
919
|
+
// PayPal
|
|
920
|
+
"payment.error.email": "empty",
|
|
921
|
+
"payment.error.paypal_not_supported": "unsupportedCurrency",
|
|
922
|
+
"payment.error.email.invalid": "invalidEmail",
|
|
923
|
+
"payment.error.paypal_verification_incomplete": "verificationIncomplete",
|
|
924
|
+
// Payment schedule
|
|
925
|
+
"payment.error.no_threshold": "empty",
|
|
926
|
+
"payment.error.invalid_threshold": "invalid",
|
|
927
|
+
"payment.error.no_dayOfMonth": "empty",
|
|
928
|
+
"payment.error.invalid_dayOfMonth": "invalid",
|
|
929
|
+
};
|
|
802
930
|
function getFormInputs({ bitset, formMap }) {
|
|
803
931
|
// Convert bitset to binary representation
|
|
804
932
|
const binary = bitset.toString(2).padStart(Object.keys(formMap).length, "0");
|
|
@@ -822,6 +950,7 @@ const SAVE_WITHDRAWAL_SETTINGS = dist.gql `
|
|
|
822
950
|
validationErrors {
|
|
823
951
|
field
|
|
824
952
|
message
|
|
953
|
+
code
|
|
825
954
|
}
|
|
826
955
|
}
|
|
827
956
|
}
|
|
@@ -837,6 +966,7 @@ const UPDATE_WITHDRAWAL_SETTINGS = dist.gql `
|
|
|
837
966
|
validationErrors {
|
|
838
967
|
field
|
|
839
968
|
message
|
|
969
|
+
code
|
|
840
970
|
}
|
|
841
971
|
}
|
|
842
972
|
}
|
|
@@ -1009,10 +1139,13 @@ function useBankingInfoForm(props) {
|
|
|
1009
1139
|
else if (!success) {
|
|
1010
1140
|
console.error("Validation failed: ", validationErrors);
|
|
1011
1141
|
const mappedValidationErrors = validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.reduce((agg, error) => {
|
|
1142
|
+
const formField = API_FIELD_TO_FORM_FIELD[error.field] || error.field;
|
|
1143
|
+
const errorCode = API_ERROR_PATH_TO_FRONTEND[error.errorPath] || error.errorPath;
|
|
1012
1144
|
return {
|
|
1013
1145
|
...agg,
|
|
1014
|
-
[
|
|
1146
|
+
[formField]: {
|
|
1015
1147
|
type: "invalid",
|
|
1148
|
+
errorCode,
|
|
1016
1149
|
},
|
|
1017
1150
|
};
|
|
1018
1151
|
}, {});
|
|
@@ -1427,6 +1560,156 @@ const BankingInfoForm = class {
|
|
|
1427
1560
|
* @uiName Information modal button text
|
|
1428
1561
|
*/
|
|
1429
1562
|
this.modalButtonText = "I understand, update my information";
|
|
1563
|
+
// ──────────────────────────────────────────────────────────────────
|
|
1564
|
+
// Per-field validation error messages
|
|
1565
|
+
// Each prop uses ICU select on {errorCode} to pick the right message.
|
|
1566
|
+
// Error codes are short frontend keys mapped from the API error codes.
|
|
1567
|
+
// The `other` branch displays the raw API message directly via {errorCode},
|
|
1568
|
+
// which is already human-readable English (e.g. "Invalid Routing Code").
|
|
1569
|
+
// ──────────────────────────────────────────────────────────────────
|
|
1570
|
+
/**
|
|
1571
|
+
* Error messages for the beneficiary / account holder name field.
|
|
1572
|
+
* Supports error codes: empty, invalidCharacters, numeric, tooLong,
|
|
1573
|
+
* nonEnglish, businessNameMismatch, nameMismatch, businessPayeeMismatch, payeeMismatch
|
|
1574
|
+
* @uiName Beneficiary account name error
|
|
1575
|
+
* @uiWidget textArea
|
|
1576
|
+
*/
|
|
1577
|
+
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}}}";
|
|
1578
|
+
/**
|
|
1579
|
+
* Error messages for the bank account number / IBAN field.
|
|
1580
|
+
* Supports error codes: empty, invalidUk, invalid, ibanEmpty,
|
|
1581
|
+
* ibanAlphanumeric, ibanInvalid, ibanCountryMismatch
|
|
1582
|
+
* @uiName Bank account number / IBAN error
|
|
1583
|
+
* @uiWidget textArea
|
|
1584
|
+
*/
|
|
1585
|
+
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}}}";
|
|
1586
|
+
/**
|
|
1587
|
+
* Error messages for the routing code / sort code / BSB field.
|
|
1588
|
+
* Supports error codes: invalidBsb, invalidSortCode, empty, invalid
|
|
1589
|
+
* @uiName Routing code error
|
|
1590
|
+
* @uiWidget textArea
|
|
1591
|
+
*/
|
|
1592
|
+
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}}}";
|
|
1593
|
+
/**
|
|
1594
|
+
* Error messages for the SWIFT / BIC code field.
|
|
1595
|
+
* Supports error codes: empty, alphanumeric, invalid
|
|
1596
|
+
* @uiName SWIFT code error
|
|
1597
|
+
* @uiWidget textArea
|
|
1598
|
+
*/
|
|
1599
|
+
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}}}";
|
|
1600
|
+
/**
|
|
1601
|
+
* Error messages for the bank account type field.
|
|
1602
|
+
* Supports error codes: empty
|
|
1603
|
+
* @uiName Bank account type error
|
|
1604
|
+
* @uiWidget textArea
|
|
1605
|
+
*/
|
|
1606
|
+
this.bankAccountTypeError = "{errorCode, select, empty {Bank account type is required} other {{errorCode}}}";
|
|
1607
|
+
/**
|
|
1608
|
+
* Error messages for the bank name field.
|
|
1609
|
+
* Supports error codes: empty
|
|
1610
|
+
* @uiName Bank name error
|
|
1611
|
+
* @uiWidget textArea
|
|
1612
|
+
*/
|
|
1613
|
+
this.bankNameError = "{errorCode, select, empty {Bank name is required} other {{errorCode}}}";
|
|
1614
|
+
/**
|
|
1615
|
+
* Error messages for the tax payer ID / classification entity field.
|
|
1616
|
+
* Supports error codes: empty, emptyAr, emptyKr, alphanumeric, alphanumericAr,
|
|
1617
|
+
* alphanumericKr, invalid, invalidAr, invalidKr, invalidKzt, cnpjTooShort, cpfTooShort
|
|
1618
|
+
* @uiName Tax payer ID error
|
|
1619
|
+
* @uiWidget textArea
|
|
1620
|
+
*/
|
|
1621
|
+
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}}}";
|
|
1622
|
+
/**
|
|
1623
|
+
* Error messages for the patronymic name field.
|
|
1624
|
+
* Supports error codes: empty, alphanumeric
|
|
1625
|
+
* @uiName Patronymic name error
|
|
1626
|
+
* @uiWidget textArea
|
|
1627
|
+
*/
|
|
1628
|
+
this.patronymicNameError = "{errorCode, select, empty {Patronymic name is required} alphanumeric {Patronymic name must contain only letters and numbers} other {{errorCode}}}";
|
|
1629
|
+
/**
|
|
1630
|
+
* Error messages for the VO code field.
|
|
1631
|
+
* Supports error codes: empty, alphanumeric
|
|
1632
|
+
* @uiName VO code error
|
|
1633
|
+
* @uiWidget textArea
|
|
1634
|
+
*/
|
|
1635
|
+
this.voCodeError = "{errorCode, select, empty {VO code is required} alphanumeric {VO code must contain only letters and numbers} other {{errorCode}}}";
|
|
1636
|
+
/**
|
|
1637
|
+
* Error messages for the agency code field.
|
|
1638
|
+
* Supports error codes: empty, alphanumeric, tooShort
|
|
1639
|
+
* @uiName Agency code error
|
|
1640
|
+
* @uiWidget textArea
|
|
1641
|
+
*/
|
|
1642
|
+
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}}}";
|
|
1643
|
+
/**
|
|
1644
|
+
* Error messages for the bank address field.
|
|
1645
|
+
* Supports error codes: empty
|
|
1646
|
+
* @uiName Bank address error
|
|
1647
|
+
* @uiWidget textArea
|
|
1648
|
+
*/
|
|
1649
|
+
this.bankAddressError = "{errorCode, select, empty {Bank address is required} other {{errorCode}}}";
|
|
1650
|
+
/**
|
|
1651
|
+
* Error messages for the bank city field.
|
|
1652
|
+
* Supports error codes: empty
|
|
1653
|
+
* @uiName Bank city error
|
|
1654
|
+
* @uiWidget textArea
|
|
1655
|
+
*/
|
|
1656
|
+
this.bankCityError = "{errorCode, select, empty {Bank city is required} other {{errorCode}}}";
|
|
1657
|
+
/**
|
|
1658
|
+
* Error messages for the bank province/state field.
|
|
1659
|
+
* Supports error codes: empty
|
|
1660
|
+
* @uiName Bank province/state error
|
|
1661
|
+
* @uiWidget textArea
|
|
1662
|
+
*/
|
|
1663
|
+
this.bankStateError = "{errorCode, select, empty {Bank province/state is required} other {{errorCode}}}";
|
|
1664
|
+
/**
|
|
1665
|
+
* Error messages for the bank postal code field.
|
|
1666
|
+
* Supports error codes: empty
|
|
1667
|
+
* @uiName Bank postal code error
|
|
1668
|
+
* @uiWidget textArea
|
|
1669
|
+
*/
|
|
1670
|
+
this.bankPostalCodeError = "{errorCode, select, empty {Bank postal code is required} other {{errorCode}}}";
|
|
1671
|
+
/**
|
|
1672
|
+
* Error messages for the branch code field.
|
|
1673
|
+
* Supports error codes: invalid
|
|
1674
|
+
* @uiName Branch code error
|
|
1675
|
+
* @uiWidget textArea
|
|
1676
|
+
*/
|
|
1677
|
+
this.branchCodeError = "{errorCode, select, invalid {Branch code is invalid} other {{errorCode}}}";
|
|
1678
|
+
/**
|
|
1679
|
+
* Error messages for the branch name field.
|
|
1680
|
+
* Supports error codes: empty
|
|
1681
|
+
* @uiName Branch name error
|
|
1682
|
+
* @uiWidget textArea
|
|
1683
|
+
*/
|
|
1684
|
+
this.branchNameError = "{errorCode, select, empty {Branch name is required} other {{errorCode}}}";
|
|
1685
|
+
/**
|
|
1686
|
+
* Error messages for the classification code field.
|
|
1687
|
+
* Supports error codes: empty, invalidKzt
|
|
1688
|
+
* @uiName Classification code error
|
|
1689
|
+
* @uiWidget textArea
|
|
1690
|
+
*/
|
|
1691
|
+
this.classificationCodeError = "{errorCode, select, empty {Classification code is required} invalidKzt {Classification code must be exactly 2 characters} other {{errorCode}}}";
|
|
1692
|
+
/**
|
|
1693
|
+
* Error messages for the PayPal email field.
|
|
1694
|
+
* Supports error codes: empty, unsupportedCurrency, invalidEmail, verificationIncomplete
|
|
1695
|
+
* @uiName PayPal email error
|
|
1696
|
+
* @uiWidget textArea
|
|
1697
|
+
*/
|
|
1698
|
+
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}}}";
|
|
1699
|
+
/**
|
|
1700
|
+
* Error messages for the payment threshold field.
|
|
1701
|
+
* Supports error codes: empty, invalid
|
|
1702
|
+
* @uiName Payment threshold error
|
|
1703
|
+
* @uiWidget textArea
|
|
1704
|
+
*/
|
|
1705
|
+
this.paymentThresholdError = "{errorCode, select, empty {Payment threshold is required} invalid {Payment threshold is invalid} other {{errorCode}}}";
|
|
1706
|
+
/**
|
|
1707
|
+
* Error messages for the payment day field.
|
|
1708
|
+
* Supports error codes: empty, invalid
|
|
1709
|
+
* @uiName Payment day error
|
|
1710
|
+
* @uiWidget textArea
|
|
1711
|
+
*/
|
|
1712
|
+
this.paymentDayError = "{errorCode, select, empty {Payment day is required} invalid {Payment day must be the 1st or the 15th} other {{errorCode}}}";
|
|
1430
1713
|
h$1(this);
|
|
1431
1714
|
}
|
|
1432
1715
|
disconnectedCallback() { }
|
|
@@ -1440,17 +1723,54 @@ const BankingInfoForm = class {
|
|
|
1440
1723
|
loadingErrorAlertDescription: props.loadingErrorAlertDescription,
|
|
1441
1724
|
loadingErrorAlertHeader: props.loadingErrorAlertHeader,
|
|
1442
1725
|
},
|
|
1726
|
+
errorMessages: {
|
|
1727
|
+
beneficiaryAccountName: props.beneficiaryAccountNameError,
|
|
1728
|
+
bankAccountNumber: props.bankAccountNumberError,
|
|
1729
|
+
routingCode: props.routingCodeError,
|
|
1730
|
+
swiftCode: props.swiftCodeError,
|
|
1731
|
+
bankAccountType: props.bankAccountTypeError,
|
|
1732
|
+
bankName: props.bankNameError,
|
|
1733
|
+
taxPayerId: props.taxPayerIdError,
|
|
1734
|
+
patronymicName: props.patronymicNameError,
|
|
1735
|
+
voCode: props.voCodeError,
|
|
1736
|
+
agencyCode: props.agencyCodeError,
|
|
1737
|
+
bankAddress: props.bankAddressError,
|
|
1738
|
+
bankCity: props.bankCityError,
|
|
1739
|
+
bankState: props.bankStateError,
|
|
1740
|
+
bankPostalCode: props.bankPostalCodeError,
|
|
1741
|
+
branchCode: props.branchCodeError,
|
|
1742
|
+
branchName: props.branchNameError,
|
|
1743
|
+
beneficiaryClassification: props.classificationCodeError,
|
|
1744
|
+
paypalEmailAddress: props.paypalEmailError,
|
|
1745
|
+
paymentThreshold: props.paymentThresholdError,
|
|
1746
|
+
paymentDay: props.paymentDayError,
|
|
1747
|
+
},
|
|
1443
1748
|
};
|
|
1444
1749
|
}
|
|
1445
1750
|
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;
|
|
1751
|
+
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
1752
|
const props = isDemo()
|
|
1448
1753
|
? useDemoBankingInfoForm(this)
|
|
1449
1754
|
: useBankingInfoForm(this);
|
|
1450
1755
|
const { errors } = props.states.formState;
|
|
1451
1756
|
const fieldRequiredError = this.fieldRequiredError;
|
|
1452
1757
|
const fieldInvalidError = this.fieldInvalidError;
|
|
1453
|
-
function getValidationErrorMessage({ type, label, }) {
|
|
1758
|
+
function getValidationErrorMessage({ type, label, errorCode, fieldName, }) {
|
|
1759
|
+
var _a;
|
|
1760
|
+
// If we have a specific error code from the API, try to use
|
|
1761
|
+
// the per-field ICU error message template for a rich message
|
|
1762
|
+
if (type === "invalid" && errorCode && fieldName) {
|
|
1763
|
+
const errorTemplate = (_a = props.text.errorMessages) === null || _a === void 0 ? void 0 : _a[fieldName];
|
|
1764
|
+
if (errorTemplate) {
|
|
1765
|
+
return intl.formatMessage({
|
|
1766
|
+
id: `fieldError-${fieldName}-${errorCode}`,
|
|
1767
|
+
defaultMessage: errorTemplate,
|
|
1768
|
+
}, {
|
|
1769
|
+
errorCode,
|
|
1770
|
+
fieldName: label,
|
|
1771
|
+
});
|
|
1772
|
+
}
|
|
1773
|
+
}
|
|
1454
1774
|
if (type === "required") {
|
|
1455
1775
|
return intl.formatMessage({
|
|
1456
1776
|
id: `requiredText-${label}`,
|
|
@@ -1533,37 +1853,45 @@ const BankingInfoForm = class {
|
|
|
1533
1853
|
helpText: getValidationErrorMessage({
|
|
1534
1854
|
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
1855
|
label: props.text.bankLocationLabel,
|
|
1856
|
+
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,
|
|
1857
|
+
fieldName: "bankCountry",
|
|
1536
1858
|
}),
|
|
1537
1859
|
})), h("sl-input", { disabled: props.states.saveLoading, class: sheet.classes.SearchInput, placeholder: this.searchForCountryText, onKeyDown: (e) => {
|
|
1538
1860
|
// Stop shoelace intercepting key presses
|
|
1539
1861
|
e.stopPropagation();
|
|
1540
1862
|
}, "onSl-input": (e) => {
|
|
1541
1863
|
props.callbacks.setCountrySearch(e.target.value);
|
|
1542
|
-
} }), (
|
|
1543
|
-
|
|
1864
|
+
} }), (_f = props.states.countries) === null || _f === void 0 ? void 0 :
|
|
1865
|
+
_f.map((country) => {
|
|
1544
1866
|
return (h("sl-menu-item", { value: country.countryCode }, country.displayName));
|
|
1545
|
-
}), (
|
|
1546
|
-
|
|
1867
|
+
}), (_h = (_g = props.states) === null || _g === void 0 ? void 0 : _g.allCountries) === null || _h === void 0 ? void 0 :
|
|
1868
|
+
_h.map((c) => (h("sl-menu-item", { value: c.countryCode, style: { display: "none" } }, c.displayName))))),
|
|
1547
1869
|
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: ((
|
|
1870
|
+
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
1871
|
class: "error-input",
|
|
1550
1872
|
helpText: getValidationErrorMessage({
|
|
1551
|
-
type: (
|
|
1873
|
+
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
1874
|
label: props.text.paymentThresholdSelectLabel,
|
|
1875
|
+
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,
|
|
1876
|
+
fieldName: "paymentThreshold",
|
|
1553
1877
|
}),
|
|
1554
1878
|
})), 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: ((
|
|
1879
|
+
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
1880
|
class: "error-input",
|
|
1557
1881
|
helpText: getValidationErrorMessage({
|
|
1558
|
-
type: (
|
|
1882
|
+
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
1883
|
label: props.text.paymentDaySelectLabel,
|
|
1884
|
+
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,
|
|
1885
|
+
fieldName: "paymentDay",
|
|
1560
1886
|
}),
|
|
1561
1887
|
})), 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: ((
|
|
1888
|
+
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
1889
|
class: "error-input",
|
|
1564
1890
|
helpText: getValidationErrorMessage({
|
|
1565
|
-
type: (
|
|
1891
|
+
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
1892
|
label: props.text.payPalInputLabel,
|
|
1893
|
+
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,
|
|
1894
|
+
fieldName: "paypalEmailAddress",
|
|
1567
1895
|
}),
|
|
1568
1896
|
})))),
|
|
1569
1897
|
} })));
|
|
@@ -2812,7 +3140,7 @@ const IndirectTaxForm = class {
|
|
|
2812
3140
|
/**
|
|
2813
3141
|
* @uiName Indirect tax number field label
|
|
2814
3142
|
*/
|
|
2815
|
-
this.indirectTaxNumber = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}
|
|
3143
|
+
this.indirectTaxNumber = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}}";
|
|
2816
3144
|
/**
|
|
2817
3145
|
* Displayed to participants registered for QST.
|
|
2818
3146
|
* @uiName QST number field label
|
|
@@ -2851,7 +3179,7 @@ const IndirectTaxForm = class {
|
|
|
2851
3179
|
/**
|
|
2852
3180
|
* @uiName Missing indirect tax number error message
|
|
2853
3181
|
*/
|
|
2854
|
-
this.indirectTaxNumberError = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}
|
|
3182
|
+
this.indirectTaxNumberError = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}} is required";
|
|
2855
3183
|
/**
|
|
2856
3184
|
* Placeholder text displayed in the country search dropdown
|
|
2857
3185
|
* @uiName Country field placeholder text
|
|
@@ -3662,7 +3990,7 @@ const PayoutDetailsCard = class {
|
|
|
3662
3990
|
* Badge text indicating payout status
|
|
3663
3991
|
* @uiName Payout badge status text
|
|
3664
3992
|
*/
|
|
3665
|
-
this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout}
|
|
3993
|
+
this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
|
|
3666
3994
|
/**
|
|
3667
3995
|
* Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
|
|
3668
3996
|
* @uiName Payout schedule by threshold text
|
|
@@ -4716,7 +5044,7 @@ const TaxAndCashDashboard = class {
|
|
|
4716
5044
|
/**
|
|
4717
5045
|
* @uiName Payout status badge
|
|
4718
5046
|
*/
|
|
4719
|
-
this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout}
|
|
5047
|
+
this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
|
|
4720
5048
|
/**
|
|
4721
5049
|
* Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
|
|
4722
5050
|
* @uiName Payout schedule by threshold text
|
|
@@ -5067,8 +5395,13 @@ function useUserInfoForm(props) {
|
|
|
5067
5395
|
lastName: user.impactConnection.user.lastName,
|
|
5068
5396
|
countryCode: user.impactConnection.publisher.countryCode,
|
|
5069
5397
|
currency: user.impactConnection.publisher.currency,
|
|
5070
|
-
phoneNumberCountryCode
|
|
5071
|
-
|
|
5398
|
+
// when creating an impact connection without sending phoneNumber data, the impactAPI defaults the value to "000000" and the phoneNumberCountryCode to "DZ"
|
|
5399
|
+
phoneNumberCountryCode: user.impactConnection.publisher.phoneNumber === "0000000"
|
|
5400
|
+
? null
|
|
5401
|
+
: user.impactConnection.publisher.phoneNumberCountryCode,
|
|
5402
|
+
phoneNumber: user.impactConnection.publisher.phoneNumber === "0000000"
|
|
5403
|
+
? null
|
|
5404
|
+
: user.impactConnection.publisher.phoneNumber,
|
|
5072
5405
|
address: user.impactConnection.publisher.billingAddress,
|
|
5073
5406
|
city: user.impactConnection.publisher.billingCity,
|
|
5074
5407
|
state: user.impactConnection.publisher.billingState,
|