@saasquatch/mint-components 2.1.8 → 2.1.9-1
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 +799 -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-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 +11 -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 +229 -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 +6 -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 +794 -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-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 +11 -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-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/{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-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-470f7c0f.system.entry.js +1 -0
- 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-b395470f.entry.js → p-4afbeea5.entry.js} +2 -2
- 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-66c070e2.entry.js +105 -0
- 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-6e6f19ea.system.entry.js +1 -0
- 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-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-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-2b4af8e8.system.entry.js → p-fe0eceba.system.entry.js} +1 -1
- 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-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
|
@@ -3,26 +3,27 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-8277cbb3.js');
|
|
6
|
-
const global = require('./global-
|
|
6
|
+
const global = require('./global-0f8b1267.js');
|
|
7
7
|
const domContextHooks_module = require('./dom-context-hooks.module-e7b6727c.js');
|
|
8
|
-
const index_module = require('./index.module-
|
|
8
|
+
const index_module = require('./index.module-42d413d9.js');
|
|
9
9
|
const jsonpointer = require('./jsonpointer-11327262.js');
|
|
10
10
|
const cjs = require('./cjs-1066ec21.js');
|
|
11
11
|
const utils = require('./utils-6847bc06.js');
|
|
12
12
|
const JSS = require('./JSS-8503a151.js');
|
|
13
13
|
require('./mixins-4761d472.js');
|
|
14
14
|
const GenericTableView = require('./GenericTableView-be5648e4.js');
|
|
15
|
-
const reRender = require('./re-render-
|
|
16
|
-
const useChildElements = require('./useChildElements-
|
|
15
|
+
const reRender = require('./re-render-69bde9ee.js');
|
|
16
|
+
const useChildElements = require('./useChildElements-89bc50a9.js');
|
|
17
17
|
const luxon = require('./luxon-c1ad356a.js');
|
|
18
|
-
const useReferralTable = require('./useReferralTable-
|
|
19
|
-
const sqmUserInfoFormView = require('./sqm-user-info-form-view-
|
|
20
|
-
const data = require('./data-
|
|
18
|
+
const useReferralTable = require('./useReferralTable-d3ddfd05.js');
|
|
19
|
+
const sqmUserInfoFormView = require('./sqm-user-info-form-view-efa08934.js');
|
|
20
|
+
const data = require('./data-e83f8a41.js');
|
|
21
21
|
const keys = require('./keys-cff24974.js');
|
|
22
|
-
const
|
|
22
|
+
const eventKeys = require('./eventKeys-7af4df4d.js');
|
|
23
|
+
const usePayoutStatus = require('./usePayoutStatus-cf050a03.js');
|
|
23
24
|
|
|
24
25
|
function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
25
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32;
|
|
26
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _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;
|
|
26
27
|
const { errors, ...formState } = props.states.formState;
|
|
27
28
|
return {
|
|
28
29
|
0: {
|
|
@@ -31,44 +32,54 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
31
32
|
helpText: getValidationErrorMessage({
|
|
32
33
|
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,
|
|
33
34
|
label: props.text.beneficiaryAccountNameLabel,
|
|
35
|
+
errorCode: (_e = (_d = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _d === void 0 ? void 0 : _d.beneficiaryAccountName) === null || _e === void 0 ? void 0 : _e.errorCode,
|
|
36
|
+
fieldName: "beneficiaryAccountName",
|
|
34
37
|
}),
|
|
35
38
|
})))),
|
|
36
39
|
},
|
|
37
40
|
1: {
|
|
38
|
-
input: (index.h("sl-select", Object.assign({ required: true, label: props.text.bankAccountTypeLabel, name: "/bankAccountType", id: "bankAccountType", key: "bankAccountType" }, (((
|
|
41
|
+
input: (index.h("sl-select", Object.assign({ required: true, label: props.text.bankAccountTypeLabel, name: "/bankAccountType", id: "bankAccountType", key: "bankAccountType" }, (((_f = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _f === void 0 ? void 0 : _f.bankAccountType) && {
|
|
39
42
|
class: "error-input",
|
|
40
43
|
helpText: getValidationErrorMessage({
|
|
41
|
-
type: (
|
|
44
|
+
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,
|
|
42
45
|
label: props.text.bankAccountTypeLabel,
|
|
46
|
+
errorCode: (_k = (_j = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _j === void 0 ? void 0 : _j.bankAccountType) === null || _k === void 0 ? void 0 : _k.errorCode,
|
|
47
|
+
fieldName: "bankAccountType",
|
|
43
48
|
}),
|
|
44
49
|
})),
|
|
45
50
|
index.h("sl-menu-item", { value: "CHECKING" }, props.text.checkingSelectItemLabel),
|
|
46
51
|
index.h("sl-menu-item", { value: "SAVINGS" }, props.text.savingsSelectItemLabel))),
|
|
47
52
|
},
|
|
48
53
|
2: {
|
|
49
|
-
input: (index.h("sl-input", Object.assign({ required: true, label: props.text.bankAccountNumberLabel, name: "/bankAccountNumber", id: "bankAccountNumber", key: "bankAccountNumber", value: formState.bankAccountNumber, type: "text" }, (((
|
|
54
|
+
input: (index.h("sl-input", Object.assign({ required: true, label: props.text.bankAccountNumberLabel, name: "/bankAccountNumber", id: "bankAccountNumber", key: "bankAccountNumber", value: formState.bankAccountNumber, type: "text" }, (((_l = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _l === void 0 ? void 0 : _l.bankAccountNumber) && {
|
|
50
55
|
class: "error-input",
|
|
51
56
|
helpText: getValidationErrorMessage({
|
|
52
|
-
type: (
|
|
57
|
+
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,
|
|
53
58
|
label: props.text.bankAccountNumberLabel,
|
|
59
|
+
errorCode: (_q = (_p = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _p === void 0 ? void 0 : _p.bankAccountNumber) === null || _q === void 0 ? void 0 : _q.errorCode,
|
|
60
|
+
fieldName: "bankAccountNumber",
|
|
54
61
|
}),
|
|
55
62
|
})))),
|
|
56
63
|
},
|
|
57
64
|
3: {
|
|
58
|
-
input: (index.h("sl-input", Object.assign({ required: true, label: props.text.ibanLabel, name: "/bankAccountNumber", id: "iban", key: "iban", type: "text", value: formState.bankAccountNumber }, (((
|
|
65
|
+
input: (index.h("sl-input", Object.assign({ required: true, label: props.text.ibanLabel, name: "/bankAccountNumber", id: "iban", key: "iban", type: "text", value: formState.bankAccountNumber }, (((_r = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _r === void 0 ? void 0 : _r.bankAccountNumber) && {
|
|
59
66
|
class: "error-input",
|
|
60
67
|
helpText: getValidationErrorMessage({
|
|
61
|
-
type: (
|
|
68
|
+
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,
|
|
62
69
|
label: props.text.ibanLabel,
|
|
70
|
+
errorCode: (_v = (_u = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _u === void 0 ? void 0 : _u.bankAccountNumber) === null || _v === void 0 ? void 0 : _v.errorCode,
|
|
71
|
+
fieldName: "bankAccountNumber",
|
|
63
72
|
}),
|
|
64
73
|
})))),
|
|
65
74
|
},
|
|
66
75
|
4: {
|
|
67
|
-
input: (index.h("sl-input", Object.assign({ required: true, label: props.text.swiftCodeLabel, name: "/swiftCode", id: "swiftCode", key: "swiftCode", type: "text" }, (((
|
|
76
|
+
input: (index.h("sl-input", Object.assign({ required: true, label: props.text.swiftCodeLabel, name: "/swiftCode", id: "swiftCode", key: "swiftCode", type: "text" }, (((_w = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _w === void 0 ? void 0 : _w.swiftCode) && {
|
|
68
77
|
class: "error-input",
|
|
69
78
|
helpText: getValidationErrorMessage({
|
|
70
|
-
type: (
|
|
79
|
+
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,
|
|
71
80
|
label: props.text.swiftCodeLabel,
|
|
81
|
+
errorCode: (_0 = (_z = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _z === void 0 ? void 0 : _z.swiftCode) === null || _0 === void 0 ? void 0 : _0.errorCode,
|
|
82
|
+
fieldName: "swiftCode",
|
|
72
83
|
}),
|
|
73
84
|
})))),
|
|
74
85
|
},
|
|
@@ -78,35 +89,41 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
78
89
|
defaultMessage: props.text.routingCodeLabel,
|
|
79
90
|
}, {
|
|
80
91
|
bankCountry,
|
|
81
|
-
}), name: "/routingCode", id: "routingCode", key: "routingCode", type: "text" }, (((
|
|
92
|
+
}), 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) && {
|
|
82
93
|
class: "error-input",
|
|
83
94
|
helpText: getValidationErrorMessage({
|
|
84
|
-
type: (
|
|
95
|
+
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,
|
|
85
96
|
label: global.intl.formatMessage({
|
|
86
97
|
id: "routingCodeErrorText",
|
|
87
98
|
defaultMessage: props.text.routingCodeLabel,
|
|
88
99
|
}, {
|
|
89
100
|
bankCountry,
|
|
90
101
|
}),
|
|
102
|
+
errorCode: (_5 = (_4 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _4 === void 0 ? void 0 : _4.routingCode) === null || _5 === void 0 ? void 0 : _5.errorCode,
|
|
103
|
+
fieldName: "routingCode",
|
|
91
104
|
}),
|
|
92
105
|
})))),
|
|
93
106
|
},
|
|
94
107
|
6: {
|
|
95
|
-
input: (index.h("sl-input", Object.assign({ required: true, label: props.text.bankNameLabel, name: "/bankName", id: "bankName", key: "bankName", type: "text" }, (((
|
|
108
|
+
input: (index.h("sl-input", Object.assign({ required: true, label: props.text.bankNameLabel, name: "/bankName", id: "bankName", key: "bankName", type: "text" }, (((_6 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _6 === void 0 ? void 0 : _6.bankName) && {
|
|
96
109
|
class: "error-input",
|
|
97
110
|
helpText: getValidationErrorMessage({
|
|
98
|
-
type: (
|
|
111
|
+
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,
|
|
99
112
|
label: props.text.bankNameLabel,
|
|
113
|
+
errorCode: (_10 = (_9 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _9 === void 0 ? void 0 : _9.bankName) === null || _10 === void 0 ? void 0 : _10.errorCode,
|
|
114
|
+
fieldName: "bankName",
|
|
100
115
|
}),
|
|
101
116
|
})))),
|
|
102
117
|
},
|
|
103
118
|
7: {
|
|
104
119
|
input: [
|
|
105
|
-
index.h("sl-select", Object.assign({ required: true, label: props.text.classificationLabel, name: "/beneficiaryClassification", id: "beneficiaryClassification", key: "beneficiaryClassification" }, (((
|
|
120
|
+
index.h("sl-select", Object.assign({ required: true, label: props.text.classificationLabel, name: "/beneficiaryClassification", id: "beneficiaryClassification", key: "beneficiaryClassification" }, (((_11 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _11 === void 0 ? void 0 : _11.beneficiaryClassification) && {
|
|
106
121
|
class: "error-input",
|
|
107
122
|
helpText: getValidationErrorMessage({
|
|
108
|
-
type: (
|
|
123
|
+
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,
|
|
109
124
|
label: props.text.classificationLabel,
|
|
125
|
+
errorCode: (_15 = (_14 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _14 === void 0 ? void 0 : _14.beneficiaryClassification) === null || _15 === void 0 ? void 0 : _15.errorCode,
|
|
126
|
+
fieldName: "beneficiaryClassification",
|
|
110
127
|
}),
|
|
111
128
|
})),
|
|
112
129
|
index.h("sl-menu-item", { value: "BUSINESS" }, props.text.businessSelectItemLabel),
|
|
@@ -117,100 +134,122 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
117
134
|
defaultMessage: props.text.taxPayerIdLabel,
|
|
118
135
|
}, {
|
|
119
136
|
bankCountry,
|
|
120
|
-
}), type: "text", name: "/beneficiaryTaxPayerId", id: "beneficiaryTaxPayerId", key: "beneficiaryTaxPayerId" }, (((
|
|
137
|
+
}), 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) && {
|
|
121
138
|
class: "error-input",
|
|
122
139
|
helpText: getValidationErrorMessage({
|
|
123
|
-
type: (
|
|
140
|
+
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,
|
|
124
141
|
label: props.text.taxPayerIdLabel,
|
|
142
|
+
errorCode: (_20 = (_19 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _19 === void 0 ? void 0 : _19.taxPayerId) === null || _20 === void 0 ? void 0 : _20.errorCode,
|
|
143
|
+
fieldName: "taxPayerId",
|
|
125
144
|
}),
|
|
126
145
|
}))),
|
|
127
146
|
],
|
|
128
147
|
},
|
|
129
148
|
8: {
|
|
130
|
-
input: (index.h("sl-select", Object.assign({ required: true, label: props.text.classificationCPFLabel, name: "/beneficiaryClassification", id: "beneficiaryClassification", key: "beneficiaryClassification" }, (((
|
|
149
|
+
input: (index.h("sl-select", Object.assign({ required: true, label: props.text.classificationCPFLabel, name: "/beneficiaryClassification", id: "beneficiaryClassification", key: "beneficiaryClassification" }, (((_21 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _21 === void 0 ? void 0 : _21.beneficiaryClassification) && {
|
|
131
150
|
class: "error-input",
|
|
132
151
|
helpText: getValidationErrorMessage({
|
|
133
|
-
type: (
|
|
152
|
+
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,
|
|
134
153
|
label: props.text.classificationCPFLabel,
|
|
154
|
+
errorCode: (_25 = (_24 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _24 === void 0 ? void 0 : _24.beneficiaryClassification) === null || _25 === void 0 ? void 0 : _25.errorCode,
|
|
155
|
+
fieldName: "beneficiaryClassification",
|
|
135
156
|
}),
|
|
136
157
|
})),
|
|
137
158
|
index.h("sl-menu-item", { value: "CPF" }, "CPF"),
|
|
138
159
|
index.h("sl-menu-item", { value: "CNPJ" }, "CNPJ"))),
|
|
139
160
|
},
|
|
140
161
|
9: {
|
|
141
|
-
input: (index.h("sl-input", Object.assign({ key: "patronymicName", required: true, label: props.text.patronymicNameLabel, name: "/patronymicName", id: "patronymicName", type: "text" }, (((
|
|
162
|
+
input: (index.h("sl-input", Object.assign({ key: "patronymicName", required: true, label: props.text.patronymicNameLabel, name: "/patronymicName", id: "patronymicName", type: "text" }, (((_26 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _26 === void 0 ? void 0 : _26.patronymicName) && {
|
|
142
163
|
class: "error-input",
|
|
143
164
|
helpText: getValidationErrorMessage({
|
|
144
|
-
type: (
|
|
165
|
+
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,
|
|
145
166
|
label: props.text.patronymicNameLabel,
|
|
167
|
+
errorCode: (_30 = (_29 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _29 === void 0 ? void 0 : _29.patronymicName) === null || _30 === void 0 ? void 0 : _30.errorCode,
|
|
168
|
+
fieldName: "patronymicName",
|
|
146
169
|
}),
|
|
147
170
|
})))),
|
|
148
171
|
},
|
|
149
172
|
10: {
|
|
150
|
-
input: (index.h("sl-input", Object.assign({ key: "voCode", label: props.text.voCodeLabel, name: "/voCode", id: "voCode", type: "text" }, (((
|
|
173
|
+
input: (index.h("sl-input", Object.assign({ key: "voCode", label: props.text.voCodeLabel, name: "/voCode", id: "voCode", type: "text" }, (((_31 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _31 === void 0 ? void 0 : _31.voCode) && {
|
|
151
174
|
class: "error-input",
|
|
152
175
|
helpText: getValidationErrorMessage({
|
|
153
|
-
type: (
|
|
176
|
+
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,
|
|
154
177
|
label: props.text.voCodeLabel,
|
|
178
|
+
errorCode: (_35 = (_34 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _34 === void 0 ? void 0 : _34.voCode) === null || _35 === void 0 ? void 0 : _35.errorCode,
|
|
179
|
+
fieldName: "voCode",
|
|
155
180
|
}),
|
|
156
181
|
})))),
|
|
157
182
|
},
|
|
158
183
|
11: {
|
|
159
|
-
input: (index.h("sl-input", Object.assign({ required: true, label: props.text.agencyCodeLabel, name: "/agencyCode", id: "agencyCode", key: "agencyCode", type: "text" }, (((
|
|
184
|
+
input: (index.h("sl-input", Object.assign({ required: true, label: props.text.agencyCodeLabel, name: "/agencyCode", id: "agencyCode", key: "agencyCode", type: "text" }, (((_36 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _36 === void 0 ? void 0 : _36.agencyCode) && {
|
|
160
185
|
class: "error-input",
|
|
161
186
|
helpText: getValidationErrorMessage({
|
|
162
|
-
type: (
|
|
187
|
+
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,
|
|
163
188
|
label: props.text.agencyCodeLabel,
|
|
189
|
+
errorCode: (_40 = (_39 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _39 === void 0 ? void 0 : _39.agencyCode) === null || _40 === void 0 ? void 0 : _40.errorCode,
|
|
190
|
+
fieldName: "agencyCode",
|
|
164
191
|
}),
|
|
165
192
|
})))),
|
|
166
193
|
},
|
|
167
194
|
12: {
|
|
168
195
|
input: [
|
|
169
|
-
index.h("sl-input", Object.assign({ required: true, label: props.text.bankAddressLabel, name: "/bankAddress", id: "bankAddress", key: "bankAddress", type: "text" }, (((
|
|
196
|
+
index.h("sl-input", Object.assign({ required: true, label: props.text.bankAddressLabel, name: "/bankAddress", id: "bankAddress", key: "bankAddress", type: "text" }, (((_41 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _41 === void 0 ? void 0 : _41.bankAddress) && {
|
|
170
197
|
class: "error-input",
|
|
171
198
|
helpText: getValidationErrorMessage({
|
|
172
|
-
type: (
|
|
199
|
+
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,
|
|
173
200
|
label: props.text.bankAddressLabel,
|
|
201
|
+
errorCode: (_45 = (_44 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _44 === void 0 ? void 0 : _44.bankAddress) === null || _45 === void 0 ? void 0 : _45.errorCode,
|
|
202
|
+
fieldName: "bankAddress",
|
|
174
203
|
}),
|
|
175
204
|
}))),
|
|
176
|
-
index.h("sl-input", Object.assign({ required: true, label: props.text.bankCityLabel, name: "/bankCity", id: "bankCity", key: "bankCity", type: "text" }, (((
|
|
205
|
+
index.h("sl-input", Object.assign({ required: true, label: props.text.bankCityLabel, name: "/bankCity", id: "bankCity", key: "bankCity", type: "text" }, (((_46 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _46 === void 0 ? void 0 : _46.bankCity) && {
|
|
177
206
|
class: "error-input",
|
|
178
207
|
helpText: getValidationErrorMessage({
|
|
179
|
-
type: (
|
|
208
|
+
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,
|
|
180
209
|
label: props.text.bankCityLabel,
|
|
210
|
+
errorCode: (_50 = (_49 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _49 === void 0 ? void 0 : _49.bankCity) === null || _50 === void 0 ? void 0 : _50.errorCode,
|
|
211
|
+
fieldName: "bankCity",
|
|
181
212
|
}),
|
|
182
213
|
}))),
|
|
183
|
-
index.h("sl-input", Object.assign({ required: true, label: props.text.bankStateLabel, name: "/bankState", id: "bankState", key: "bankState", type: "text" }, (((
|
|
214
|
+
index.h("sl-input", Object.assign({ required: true, label: props.text.bankStateLabel, name: "/bankState", id: "bankState", key: "bankState", type: "text" }, (((_51 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _51 === void 0 ? void 0 : _51.bankState) && {
|
|
184
215
|
class: "error-input",
|
|
185
216
|
helpText: getValidationErrorMessage({
|
|
186
|
-
type: (
|
|
217
|
+
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,
|
|
187
218
|
label: props.text.bankStateLabel,
|
|
219
|
+
errorCode: (_55 = (_54 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _54 === void 0 ? void 0 : _54.bankState) === null || _55 === void 0 ? void 0 : _55.errorCode,
|
|
220
|
+
fieldName: "bankState",
|
|
188
221
|
}),
|
|
189
222
|
}))),
|
|
190
|
-
index.h("sl-input", Object.assign({ required: true, label: props.text.bankPostalCodeLabel, name: "/bankPostalCode", id: "bankPostalCode", key: "bankPostalCode", type: "text" }, (((
|
|
223
|
+
index.h("sl-input", Object.assign({ required: true, label: props.text.bankPostalCodeLabel, name: "/bankPostalCode", id: "bankPostalCode", key: "bankPostalCode", type: "text" }, (((_56 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _56 === void 0 ? void 0 : _56.bankPostalCode) && {
|
|
191
224
|
class: "error-input",
|
|
192
225
|
helpText: getValidationErrorMessage({
|
|
193
|
-
type: (
|
|
226
|
+
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,
|
|
194
227
|
label: props.text.bankPostalCodeLabel,
|
|
228
|
+
errorCode: (_60 = (_59 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _59 === void 0 ? void 0 : _59.bankPostalCode) === null || _60 === void 0 ? void 0 : _60.errorCode,
|
|
229
|
+
fieldName: "bankPostalCode",
|
|
195
230
|
}),
|
|
196
231
|
}))),
|
|
197
232
|
],
|
|
198
233
|
},
|
|
199
234
|
13: {
|
|
200
|
-
input: (index.h("sl-input", Object.assign({ required: true, label: props.text.branchCodeLabel, name: "/branchCode", id: "branchCode", key: "branchCode", type: "text" }, (((
|
|
235
|
+
input: (index.h("sl-input", Object.assign({ required: true, label: props.text.branchCodeLabel, name: "/branchCode", id: "branchCode", key: "branchCode", type: "text" }, (((_61 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _61 === void 0 ? void 0 : _61.branchCode) && {
|
|
201
236
|
class: "error-input",
|
|
202
237
|
helpText: getValidationErrorMessage({
|
|
203
|
-
type: (
|
|
238
|
+
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,
|
|
204
239
|
label: props.text.branchCodeLabel,
|
|
240
|
+
errorCode: (_65 = (_64 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _64 === void 0 ? void 0 : _64.branchCode) === null || _65 === void 0 ? void 0 : _65.errorCode,
|
|
241
|
+
fieldName: "branchCode",
|
|
205
242
|
}),
|
|
206
243
|
})))),
|
|
207
244
|
},
|
|
208
245
|
14: {
|
|
209
|
-
input: (index.h("sl-select", Object.assign({ required: true, label: props.text.classificationLabel, name: "/beneficiaryClassification", id: "beneficiaryClassification", key: "beneficiaryClassification" }, (((
|
|
246
|
+
input: (index.h("sl-select", Object.assign({ required: true, label: props.text.classificationLabel, name: "/beneficiaryClassification", id: "beneficiaryClassification", key: "beneficiaryClassification" }, (((_66 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _66 === void 0 ? void 0 : _66.beneficiaryClassification) && {
|
|
210
247
|
class: "error-input",
|
|
211
248
|
helpText: getValidationErrorMessage({
|
|
212
|
-
type: (
|
|
249
|
+
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,
|
|
213
250
|
label: props.text.classificationLabel,
|
|
251
|
+
errorCode: (_70 = (_69 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _69 === void 0 ? void 0 : _69.beneficiaryClassification) === null || _70 === void 0 ? void 0 : _70.errorCode,
|
|
252
|
+
fieldName: "beneficiaryClassification",
|
|
214
253
|
}),
|
|
215
254
|
})),
|
|
216
255
|
index.h("sl-menu-item", { value: "BUSINESS" }, props.text.businessSelectItemLabel),
|
|
@@ -803,6 +842,95 @@ const paypalFeeMap = {
|
|
|
803
842
|
const ACH_PAYMENT_METHOD = 3;
|
|
804
843
|
const WIRE_PAYMENT_METHOD = 5;
|
|
805
844
|
const PAYPAL_PAYMENT_METHOD = 7;
|
|
845
|
+
/**
|
|
846
|
+
* Maps GraphQL validation error field names to form field names.
|
|
847
|
+
*/
|
|
848
|
+
const API_FIELD_TO_FORM_FIELD = {
|
|
849
|
+
// bankProvinceState → form uses bankState
|
|
850
|
+
bankProvinceState: "bankState",
|
|
851
|
+
};
|
|
852
|
+
/**
|
|
853
|
+
* Maps Impact API error code paths (from validationErrors[].errorPath) to short,
|
|
854
|
+
* readable frontend error codes used in the ICU select props.
|
|
855
|
+
*/
|
|
856
|
+
const API_ERROR_PATH_TO_FRONTEND = {
|
|
857
|
+
// Beneficiary account name
|
|
858
|
+
"withdrawal.settings.error.empty_beneficiaryname": "empty",
|
|
859
|
+
"withdrawal.settings.error.invalid_character_beneficiaryname": "invalidCharacters",
|
|
860
|
+
"withdrawal.settings.error.numeric_beneficiaryname": "numeric",
|
|
861
|
+
"withdrawal_settings.error.beneficiaryname.size": "tooLong",
|
|
862
|
+
"withdrawal.settings.error.non_english_beneficiaryname": "nonEnglish",
|
|
863
|
+
"withdrawal_settings.error.business_beneficiaryname_match": "businessNameMismatch",
|
|
864
|
+
"withdrawal_settings.error.beneficiaryname_match": "nameMismatch",
|
|
865
|
+
"withdrawal_settings.error.business_checkpayeename_match": "businessPayeeMismatch",
|
|
866
|
+
"withdrawal_settings.error.checkpayeename_match": "payeeMismatch",
|
|
867
|
+
// Bank account number
|
|
868
|
+
"withdrawal.settings.error.accountnumber.empty": "empty",
|
|
869
|
+
"withdrawal.settings.error.accountnumber.uk": "invalidUk",
|
|
870
|
+
"withdrawal.settings.error.bankaccount.invalid": "invalid",
|
|
871
|
+
// IBAN
|
|
872
|
+
"withdrawal.settings.error.iban": "ibanEmpty",
|
|
873
|
+
"withdrawal.settings.error.iban.alphanumeric": "ibanAlphanumeric",
|
|
874
|
+
"withdrawal.settings.error.iban.invalid": "ibanInvalid",
|
|
875
|
+
"withdrawal.settings.error.iban.uk.country.mismatch": "ibanCountryMismatch",
|
|
876
|
+
// Routing code
|
|
877
|
+
"withdrawal.settings.error.bsbNumber": "invalidBsb",
|
|
878
|
+
"withdrawal.settings.error.sortcode": "invalidSortCode",
|
|
879
|
+
"withdrawal.settings.error.routingNumber": "empty",
|
|
880
|
+
"withdrawal.settings.error.routingcode": "invalid",
|
|
881
|
+
// SWIFT / BIC
|
|
882
|
+
"withdrawal.settings.error.bic": "empty",
|
|
883
|
+
"withdrawal.settings.error.bic.alphanumeric": "alphanumeric",
|
|
884
|
+
"withdrawal.settings.error.bic.invalid": "invalid",
|
|
885
|
+
// Bank account type
|
|
886
|
+
"global.error.invalid.accounttype": "empty",
|
|
887
|
+
// Bank name
|
|
888
|
+
"withdrawal.settings.error.bankName": "empty",
|
|
889
|
+
// Tax payer ID
|
|
890
|
+
"withdrawal.settings.error.taxPayerId": "empty",
|
|
891
|
+
"withdrawal.settings.error.taxPayerId.ar": "emptyAr",
|
|
892
|
+
"withdrawal.settings.error.taxPayerId.kr": "emptyKr",
|
|
893
|
+
"withdrawal.settings.error.taxPayerId.alphanumeric": "alphanumeric",
|
|
894
|
+
"withdrawal.settings.error.taxPayerId.alphanumeric.ar": "alphanumericAr",
|
|
895
|
+
"withdrawal.settings.error.taxPayerId.alphanumeric.kr": "alphanumericKr",
|
|
896
|
+
"withdrawal.settings.error.taxPayerId.invalid": "invalid",
|
|
897
|
+
"withdrawal.settings.error.taxPayerId.invalid.ar": "invalidAr",
|
|
898
|
+
"withdrawal.settings.error.taxPayerId.invalid.kr": "invalidKr",
|
|
899
|
+
"withdrawal.settings.error.taxPayerId.invalid.kzt": "invalidKzt",
|
|
900
|
+
"withdrawal.settings.error.taxPayerId.cnpj": "cnpjTooShort",
|
|
901
|
+
"withdrawal.settings.error.taxPayerId.cpf": "cpfTooShort",
|
|
902
|
+
// Patronymic name
|
|
903
|
+
"withdrawal.settings.error.patronymicName": "empty",
|
|
904
|
+
"withdrawal.settings.error.patronymicName.alphanumeric": "alphanumeric",
|
|
905
|
+
// VO code
|
|
906
|
+
"withdrawal.settings.error.voCode": "empty",
|
|
907
|
+
"withdrawal.settings.error.voCode.alphanumeric": "alphanumeric",
|
|
908
|
+
// Agency code
|
|
909
|
+
"withdrawal.settings.error.agencyCode": "empty",
|
|
910
|
+
"withdrawal.settings.error.agencyCode.alphanumeric": "alphanumeric",
|
|
911
|
+
"withdrawal.settings.error.agencyCode.length": "tooShort",
|
|
912
|
+
// Bank address fields
|
|
913
|
+
"withdrawal.settings.error.bankAddress": "empty",
|
|
914
|
+
"withdrawal.settings.error.bankCity": "empty",
|
|
915
|
+
"withdrawal.settings.error.bankProvinceState": "empty",
|
|
916
|
+
"withdrawal.settings.error.bankPostalCode": "empty",
|
|
917
|
+
// Branch code / name
|
|
918
|
+
"withdrawal.settings.error.branchCode": "invalid",
|
|
919
|
+
"withdrawal.settings.error.branchName": "empty",
|
|
920
|
+
// Classification code
|
|
921
|
+
"withdrawal.settings.error.classificationCode.invalid": "empty",
|
|
922
|
+
"withdrawal.settings.error.classificationCode.invalid.kzt": "invalidKzt",
|
|
923
|
+
// PayPal
|
|
924
|
+
"payment.error.email": "empty",
|
|
925
|
+
"payment.error.paypal_not_supported": "unsupportedCurrency",
|
|
926
|
+
"payment.error.email.invalid": "invalidEmail",
|
|
927
|
+
"payment.error.paypal_verification_incomplete": "verificationIncomplete",
|
|
928
|
+
// Payment schedule
|
|
929
|
+
"payment.error.no_threshold": "empty",
|
|
930
|
+
"payment.error.invalid_threshold": "invalid",
|
|
931
|
+
"payment.error.no_dayOfMonth": "empty",
|
|
932
|
+
"payment.error.invalid_dayOfMonth": "invalid",
|
|
933
|
+
};
|
|
806
934
|
function getFormInputs({ bitset, formMap }) {
|
|
807
935
|
// Convert bitset to binary representation
|
|
808
936
|
const binary = bitset.toString(2).padStart(Object.keys(formMap).length, "0");
|
|
@@ -826,6 +954,7 @@ const SAVE_WITHDRAWAL_SETTINGS = index_module.dist.gql `
|
|
|
826
954
|
validationErrors {
|
|
827
955
|
field
|
|
828
956
|
message
|
|
957
|
+
code
|
|
829
958
|
}
|
|
830
959
|
}
|
|
831
960
|
}
|
|
@@ -841,6 +970,7 @@ const UPDATE_WITHDRAWAL_SETTINGS = index_module.dist.gql `
|
|
|
841
970
|
validationErrors {
|
|
842
971
|
field
|
|
843
972
|
message
|
|
973
|
+
code
|
|
844
974
|
}
|
|
845
975
|
}
|
|
846
976
|
}
|
|
@@ -1013,10 +1143,13 @@ function useBankingInfoForm(props) {
|
|
|
1013
1143
|
else if (!success) {
|
|
1014
1144
|
console.error("Validation failed: ", validationErrors);
|
|
1015
1145
|
const mappedValidationErrors = validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.reduce((agg, error) => {
|
|
1146
|
+
const formField = API_FIELD_TO_FORM_FIELD[error.field] || error.field;
|
|
1147
|
+
const errorCode = API_ERROR_PATH_TO_FRONTEND[error.errorPath] || error.errorPath;
|
|
1016
1148
|
return {
|
|
1017
1149
|
...agg,
|
|
1018
|
-
[
|
|
1150
|
+
[formField]: {
|
|
1019
1151
|
type: "invalid",
|
|
1152
|
+
errorCode,
|
|
1020
1153
|
},
|
|
1021
1154
|
};
|
|
1022
1155
|
}, {});
|
|
@@ -1027,7 +1160,7 @@ function useBankingInfoForm(props) {
|
|
|
1027
1160
|
return;
|
|
1028
1161
|
}
|
|
1029
1162
|
// Fire form change event
|
|
1030
|
-
window.dispatchEvent(new Event(
|
|
1163
|
+
window.dispatchEvent(new Event(eventKeys.TAX_FORM_UPDATED_EVENT_KEY));
|
|
1031
1164
|
await refetch();
|
|
1032
1165
|
setStep("/dashboard");
|
|
1033
1166
|
}
|
|
@@ -1431,6 +1564,156 @@ const BankingInfoForm = class {
|
|
|
1431
1564
|
* @uiName Information modal button text
|
|
1432
1565
|
*/
|
|
1433
1566
|
this.modalButtonText = "I understand, update my information";
|
|
1567
|
+
// ──────────────────────────────────────────────────────────────────
|
|
1568
|
+
// Per-field validation error messages
|
|
1569
|
+
// Each prop uses ICU select on {errorCode} to pick the right message.
|
|
1570
|
+
// Error codes are short frontend keys mapped from the API error codes.
|
|
1571
|
+
// The `other` branch displays the raw API message directly via {errorCode},
|
|
1572
|
+
// which is already human-readable English (e.g. "Invalid Routing Code").
|
|
1573
|
+
// ──────────────────────────────────────────────────────────────────
|
|
1574
|
+
/**
|
|
1575
|
+
* Error messages for the beneficiary / account holder name field.
|
|
1576
|
+
* Supports error codes: empty, invalidCharacters, numeric, tooLong,
|
|
1577
|
+
* nonEnglish, businessNameMismatch, nameMismatch, businessPayeeMismatch, payeeMismatch
|
|
1578
|
+
* @uiName Beneficiary account name error
|
|
1579
|
+
* @uiWidget textArea
|
|
1580
|
+
*/
|
|
1581
|
+
this.beneficiaryAccountNameError = "{errorCode, select, empty {Account holder name is required} invalidCharacters {Account holder name contains invalid characters} numeric {Account holder name cannot be purely numeric} tooLong {Account holder name must be 70 characters or fewer} nonEnglish {Account holder name must contain only English characters for this currency} businessNameMismatch {Beneficiary name must match the name on your tax document} nameMismatch {Beneficiary name must match the name on your tax document} businessPayeeMismatch {Payee name must match the name on your tax document} payeeMismatch {Payee name must match the name on your tax document} other {{errorCode}}}";
|
|
1582
|
+
/**
|
|
1583
|
+
* Error messages for the bank account number / IBAN field.
|
|
1584
|
+
* Supports error codes: empty, invalidUk, invalid, ibanEmpty,
|
|
1585
|
+
* ibanAlphanumeric, ibanInvalid, ibanCountryMismatch
|
|
1586
|
+
* @uiName Bank account number / IBAN error
|
|
1587
|
+
* @uiWidget textArea
|
|
1588
|
+
*/
|
|
1589
|
+
this.bankAccountNumberError = "{errorCode, select, empty {Account number is required} invalidUk {Please enter a valid UK account number} invalid {Account number is invalid} ibanEmpty {IBAN is required} ibanAlphanumeric {IBAN must contain only letters and numbers} ibanInvalid {IBAN is invalid} ibanCountryMismatch {UK accounts must use an IBAN starting with GB} other {{errorCode}}}";
|
|
1590
|
+
/**
|
|
1591
|
+
* Error messages for the routing code / sort code / BSB field.
|
|
1592
|
+
* Supports error codes: invalidBsb, invalidSortCode, empty, invalid
|
|
1593
|
+
* @uiName Routing code error
|
|
1594
|
+
* @uiWidget textArea
|
|
1595
|
+
*/
|
|
1596
|
+
this.routingCodeError = "{errorCode, select, invalidBsb {Please enter a valid BSB number} invalidSortCode {Please enter a valid sort code} empty {Routing number is required} invalid {Routing number is invalid} other {{errorCode}}}";
|
|
1597
|
+
/**
|
|
1598
|
+
* Error messages for the SWIFT / BIC code field.
|
|
1599
|
+
* Supports error codes: empty, alphanumeric, invalid
|
|
1600
|
+
* @uiName SWIFT code error
|
|
1601
|
+
* @uiWidget textArea
|
|
1602
|
+
*/
|
|
1603
|
+
this.swiftCodeError = "{errorCode, select, empty {SWIFT/BIC code is required} alphanumeric {SWIFT/BIC code must contain only letters and numbers} invalid {SWIFT/BIC code is invalid} other {{errorCode}}}";
|
|
1604
|
+
/**
|
|
1605
|
+
* Error messages for the bank account type field.
|
|
1606
|
+
* Supports error codes: empty
|
|
1607
|
+
* @uiName Bank account type error
|
|
1608
|
+
* @uiWidget textArea
|
|
1609
|
+
*/
|
|
1610
|
+
this.bankAccountTypeError = "{errorCode, select, empty {Bank account type is required} other {{errorCode}}}";
|
|
1611
|
+
/**
|
|
1612
|
+
* Error messages for the bank name field.
|
|
1613
|
+
* Supports error codes: empty
|
|
1614
|
+
* @uiName Bank name error
|
|
1615
|
+
* @uiWidget textArea
|
|
1616
|
+
*/
|
|
1617
|
+
this.bankNameError = "{errorCode, select, empty {Bank name is required} other {{errorCode}}}";
|
|
1618
|
+
/**
|
|
1619
|
+
* Error messages for the tax payer ID / classification entity field.
|
|
1620
|
+
* Supports error codes: empty, emptyAr, emptyKr, alphanumeric, alphanumericAr,
|
|
1621
|
+
* alphanumericKr, invalid, invalidAr, invalidKr, invalidKzt, cnpjTooShort, cpfTooShort
|
|
1622
|
+
* @uiName Tax payer ID error
|
|
1623
|
+
* @uiWidget textArea
|
|
1624
|
+
*/
|
|
1625
|
+
this.taxPayerIdError = "{errorCode, select, empty {Tax payer ID is required} emptyAr {CUIT/CUIL is required} emptyKr {Classification ID is required} alphanumeric {Tax payer ID must contain only letters and numbers} alphanumericAr {CUIT/CUIL must contain only letters and numbers} alphanumericKr {Classification ID must contain only letters and numbers} invalid {Tax payer ID is invalid} invalidAr {CUIT/CUIL must be 11 characters} invalidKr {Classification ID length is invalid} invalidKzt {Tax payer ID must be 12 characters for KZT} cnpjTooShort {CNPJ must be at least 14 characters} cpfTooShort {CPF must be at least 11 characters} other {{errorCode}}}";
|
|
1626
|
+
/**
|
|
1627
|
+
* Error messages for the patronymic name field.
|
|
1628
|
+
* Supports error codes: empty, alphanumeric
|
|
1629
|
+
* @uiName Patronymic name error
|
|
1630
|
+
* @uiWidget textArea
|
|
1631
|
+
*/
|
|
1632
|
+
this.patronymicNameError = "{errorCode, select, empty {Patronymic name is required} alphanumeric {Patronymic name must contain only letters and numbers} other {{errorCode}}}";
|
|
1633
|
+
/**
|
|
1634
|
+
* Error messages for the VO code field.
|
|
1635
|
+
* Supports error codes: empty, alphanumeric
|
|
1636
|
+
* @uiName VO code error
|
|
1637
|
+
* @uiWidget textArea
|
|
1638
|
+
*/
|
|
1639
|
+
this.voCodeError = "{errorCode, select, empty {VO code is required} alphanumeric {VO code must contain only letters and numbers} other {{errorCode}}}";
|
|
1640
|
+
/**
|
|
1641
|
+
* Error messages for the agency code field.
|
|
1642
|
+
* Supports error codes: empty, alphanumeric, tooShort
|
|
1643
|
+
* @uiName Agency code error
|
|
1644
|
+
* @uiWidget textArea
|
|
1645
|
+
*/
|
|
1646
|
+
this.agencyCodeError = "{errorCode, select, empty {Agency code is required} alphanumeric {Agency code must contain only letters and numbers} tooShort {Agency code must be at least 5 characters} other {{errorCode}}}";
|
|
1647
|
+
/**
|
|
1648
|
+
* Error messages for the bank address field.
|
|
1649
|
+
* Supports error codes: empty
|
|
1650
|
+
* @uiName Bank address error
|
|
1651
|
+
* @uiWidget textArea
|
|
1652
|
+
*/
|
|
1653
|
+
this.bankAddressError = "{errorCode, select, empty {Bank address is required} other {{errorCode}}}";
|
|
1654
|
+
/**
|
|
1655
|
+
* Error messages for the bank city field.
|
|
1656
|
+
* Supports error codes: empty
|
|
1657
|
+
* @uiName Bank city error
|
|
1658
|
+
* @uiWidget textArea
|
|
1659
|
+
*/
|
|
1660
|
+
this.bankCityError = "{errorCode, select, empty {Bank city is required} other {{errorCode}}}";
|
|
1661
|
+
/**
|
|
1662
|
+
* Error messages for the bank province/state field.
|
|
1663
|
+
* Supports error codes: empty
|
|
1664
|
+
* @uiName Bank province/state error
|
|
1665
|
+
* @uiWidget textArea
|
|
1666
|
+
*/
|
|
1667
|
+
this.bankStateError = "{errorCode, select, empty {Bank province/state is required} other {{errorCode}}}";
|
|
1668
|
+
/**
|
|
1669
|
+
* Error messages for the bank postal code field.
|
|
1670
|
+
* Supports error codes: empty
|
|
1671
|
+
* @uiName Bank postal code error
|
|
1672
|
+
* @uiWidget textArea
|
|
1673
|
+
*/
|
|
1674
|
+
this.bankPostalCodeError = "{errorCode, select, empty {Bank postal code is required} other {{errorCode}}}";
|
|
1675
|
+
/**
|
|
1676
|
+
* Error messages for the branch code field.
|
|
1677
|
+
* Supports error codes: invalid
|
|
1678
|
+
* @uiName Branch code error
|
|
1679
|
+
* @uiWidget textArea
|
|
1680
|
+
*/
|
|
1681
|
+
this.branchCodeError = "{errorCode, select, invalid {Branch code is invalid} other {{errorCode}}}";
|
|
1682
|
+
/**
|
|
1683
|
+
* Error messages for the branch name field.
|
|
1684
|
+
* Supports error codes: empty
|
|
1685
|
+
* @uiName Branch name error
|
|
1686
|
+
* @uiWidget textArea
|
|
1687
|
+
*/
|
|
1688
|
+
this.branchNameError = "{errorCode, select, empty {Branch name is required} other {{errorCode}}}";
|
|
1689
|
+
/**
|
|
1690
|
+
* Error messages for the classification code field.
|
|
1691
|
+
* Supports error codes: empty, invalidKzt
|
|
1692
|
+
* @uiName Classification code error
|
|
1693
|
+
* @uiWidget textArea
|
|
1694
|
+
*/
|
|
1695
|
+
this.classificationCodeError = "{errorCode, select, empty {Classification code is required} invalidKzt {Classification code must be exactly 2 characters} other {{errorCode}}}";
|
|
1696
|
+
/**
|
|
1697
|
+
* Error messages for the PayPal email field.
|
|
1698
|
+
* Supports error codes: empty, unsupportedCurrency, invalidEmail, verificationIncomplete
|
|
1699
|
+
* @uiName PayPal email error
|
|
1700
|
+
* @uiWidget textArea
|
|
1701
|
+
*/
|
|
1702
|
+
this.paypalEmailError = "{errorCode, select, empty {PayPal email is required} unsupportedCurrency {PayPal is not supported for this currency} invalidEmail {Please enter a valid email address} verificationIncomplete {PayPal verification is not complete} other {{errorCode}}}";
|
|
1703
|
+
/**
|
|
1704
|
+
* Error messages for the payment threshold field.
|
|
1705
|
+
* Supports error codes: empty, invalid
|
|
1706
|
+
* @uiName Payment threshold error
|
|
1707
|
+
* @uiWidget textArea
|
|
1708
|
+
*/
|
|
1709
|
+
this.paymentThresholdError = "{errorCode, select, empty {Payment threshold is required} invalid {Payment threshold is invalid} other {{errorCode}}}";
|
|
1710
|
+
/**
|
|
1711
|
+
* Error messages for the payment day field.
|
|
1712
|
+
* Supports error codes: empty, invalid
|
|
1713
|
+
* @uiName Payment day error
|
|
1714
|
+
* @uiWidget textArea
|
|
1715
|
+
*/
|
|
1716
|
+
this.paymentDayError = "{errorCode, select, empty {Payment day is required} invalid {Payment day must be the 1st or the 15th} other {{errorCode}}}";
|
|
1434
1717
|
domContextHooks_module.h$1(this);
|
|
1435
1718
|
}
|
|
1436
1719
|
disconnectedCallback() { }
|
|
@@ -1444,17 +1727,54 @@ const BankingInfoForm = class {
|
|
|
1444
1727
|
loadingErrorAlertDescription: props.loadingErrorAlertDescription,
|
|
1445
1728
|
loadingErrorAlertHeader: props.loadingErrorAlertHeader,
|
|
1446
1729
|
},
|
|
1730
|
+
errorMessages: {
|
|
1731
|
+
beneficiaryAccountName: props.beneficiaryAccountNameError,
|
|
1732
|
+
bankAccountNumber: props.bankAccountNumberError,
|
|
1733
|
+
routingCode: props.routingCodeError,
|
|
1734
|
+
swiftCode: props.swiftCodeError,
|
|
1735
|
+
bankAccountType: props.bankAccountTypeError,
|
|
1736
|
+
bankName: props.bankNameError,
|
|
1737
|
+
taxPayerId: props.taxPayerIdError,
|
|
1738
|
+
patronymicName: props.patronymicNameError,
|
|
1739
|
+
voCode: props.voCodeError,
|
|
1740
|
+
agencyCode: props.agencyCodeError,
|
|
1741
|
+
bankAddress: props.bankAddressError,
|
|
1742
|
+
bankCity: props.bankCityError,
|
|
1743
|
+
bankState: props.bankStateError,
|
|
1744
|
+
bankPostalCode: props.bankPostalCodeError,
|
|
1745
|
+
branchCode: props.branchCodeError,
|
|
1746
|
+
branchName: props.branchNameError,
|
|
1747
|
+
beneficiaryClassification: props.classificationCodeError,
|
|
1748
|
+
paypalEmailAddress: props.paypalEmailError,
|
|
1749
|
+
paymentThreshold: props.paymentThresholdError,
|
|
1750
|
+
paymentDay: props.paymentDayError,
|
|
1751
|
+
},
|
|
1447
1752
|
};
|
|
1448
1753
|
}
|
|
1449
1754
|
render() {
|
|
1450
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0;
|
|
1755
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10;
|
|
1451
1756
|
const props = index_module.isDemo()
|
|
1452
1757
|
? useDemoBankingInfoForm(this)
|
|
1453
1758
|
: useBankingInfoForm(this);
|
|
1454
1759
|
const { errors } = props.states.formState;
|
|
1455
1760
|
const fieldRequiredError = this.fieldRequiredError;
|
|
1456
1761
|
const fieldInvalidError = this.fieldInvalidError;
|
|
1457
|
-
function getValidationErrorMessage({ type, label, }) {
|
|
1762
|
+
function getValidationErrorMessage({ type, label, errorCode, fieldName, }) {
|
|
1763
|
+
var _a;
|
|
1764
|
+
// If we have a specific error code from the API, try to use
|
|
1765
|
+
// the per-field ICU error message template for a rich message
|
|
1766
|
+
if (type === "invalid" && errorCode && fieldName) {
|
|
1767
|
+
const errorTemplate = (_a = props.text.errorMessages) === null || _a === void 0 ? void 0 : _a[fieldName];
|
|
1768
|
+
if (errorTemplate) {
|
|
1769
|
+
return global.intl.formatMessage({
|
|
1770
|
+
id: `fieldError-${fieldName}-${errorCode}`,
|
|
1771
|
+
defaultMessage: errorTemplate,
|
|
1772
|
+
}, {
|
|
1773
|
+
errorCode,
|
|
1774
|
+
fieldName: label,
|
|
1775
|
+
});
|
|
1776
|
+
}
|
|
1777
|
+
}
|
|
1458
1778
|
if (type === "required") {
|
|
1459
1779
|
return global.intl.formatMessage({
|
|
1460
1780
|
id: `requiredText-${label}`,
|
|
@@ -1537,37 +1857,45 @@ const BankingInfoForm = class {
|
|
|
1537
1857
|
helpText: getValidationErrorMessage({
|
|
1538
1858
|
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,
|
|
1539
1859
|
label: props.text.bankLocationLabel,
|
|
1860
|
+
errorCode: (_e = (_d = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _d === void 0 ? void 0 : _d.bankCountry) === null || _e === void 0 ? void 0 : _e.errorCode,
|
|
1861
|
+
fieldName: "bankCountry",
|
|
1540
1862
|
}),
|
|
1541
1863
|
})), index.h("sl-input", { disabled: props.states.saveLoading, class: sheet.classes.SearchInput, placeholder: this.searchForCountryText, onKeyDown: (e) => {
|
|
1542
1864
|
// Stop shoelace intercepting key presses
|
|
1543
1865
|
e.stopPropagation();
|
|
1544
1866
|
}, "onSl-input": (e) => {
|
|
1545
1867
|
props.callbacks.setCountrySearch(e.target.value);
|
|
1546
|
-
} }), (
|
|
1547
|
-
|
|
1868
|
+
} }), (_f = props.states.countries) === null || _f === void 0 ? void 0 :
|
|
1869
|
+
_f.map((country) => {
|
|
1548
1870
|
return (index.h("sl-menu-item", { value: country.countryCode }, country.displayName));
|
|
1549
|
-
}), (
|
|
1550
|
-
|
|
1871
|
+
}), (_h = (_g = props.states) === null || _g === void 0 ? void 0 : _g.allCountries) === null || _h === void 0 ? void 0 :
|
|
1872
|
+
_h.map((c) => (index.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } }, c.displayName))))),
|
|
1551
1873
|
paymentMethodSlot: (index.h("sl-input", { key: "paymentMethod", label: props.text.paymentMethod, placeholder: props.states.paymentMethodFeeLabel, disabled: true })),
|
|
1552
|
-
paymentThresholdSelectSlot: (index.h("sl-select", Object.assign({ required: true, disabled: props.states.saveLoading, label: props.text.paymentThresholdSelectLabel, name: "/paymentThreshold", id: "paymentThreshold", value: ((
|
|
1874
|
+
paymentThresholdSelectSlot: (index.h("sl-select", Object.assign({ required: true, disabled: props.states.saveLoading, label: props.text.paymentThresholdSelectLabel, name: "/paymentThreshold", id: "paymentThreshold", value: ((_k = (_j = props.states) === null || _j === void 0 ? void 0 : _j.formState) === null || _k === void 0 ? void 0 : _k.paymentThreshold) || "" }, (((_l = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _l === void 0 ? void 0 : _l.paymentThreshold) && {
|
|
1553
1875
|
class: "error-input",
|
|
1554
1876
|
helpText: getValidationErrorMessage({
|
|
1555
|
-
type: (
|
|
1877
|
+
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,
|
|
1556
1878
|
label: props.text.paymentThresholdSelectLabel,
|
|
1879
|
+
errorCode: (_q = (_p = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _p === void 0 ? void 0 : _p.paymentThreshold) === null || _q === void 0 ? void 0 : _q.errorCode,
|
|
1880
|
+
fieldName: "paymentThreshold",
|
|
1557
1881
|
}),
|
|
1558
1882
|
})), props.states.thresholds.map((t) => (index.h("sl-menu-item", { value: t }, `${props.states.currency}${t}`))))),
|
|
1559
|
-
paymentFixedDaySelectSlot: (index.h("sl-select", Object.assign({ required: true, disabled: props.states.saveLoading, label: props.text.paymentDaySelectLabel, value: ((
|
|
1883
|
+
paymentFixedDaySelectSlot: (index.h("sl-select", Object.assign({ required: true, disabled: props.states.saveLoading, label: props.text.paymentDaySelectLabel, value: ((_s = (_r = props.states) === null || _r === void 0 ? void 0 : _r.formState) === null || _s === void 0 ? void 0 : _s.paymentDay) || "", name: "/paymentDay", id: "paymentDay" }, (((_t = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _t === void 0 ? void 0 : _t.paymentDay) && {
|
|
1560
1884
|
class: "error-input",
|
|
1561
1885
|
helpText: getValidationErrorMessage({
|
|
1562
|
-
type: (
|
|
1886
|
+
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,
|
|
1563
1887
|
label: props.text.paymentDaySelectLabel,
|
|
1888
|
+
errorCode: (_x = (_w = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _w === void 0 ? void 0 : _w.paymentDay) === null || _x === void 0 ? void 0 : _x.errorCode,
|
|
1889
|
+
fieldName: "paymentDay",
|
|
1564
1890
|
}),
|
|
1565
1891
|
})), index.h("sl-menu-item", { value: "1" }, props.text.paymentDayFirstOfMonthLabelText), index.h("sl-menu-item", { value: "15" }, props.text.paymentDayFifteenthOfMonthLabelText))),
|
|
1566
|
-
paypalInputSlot: (index.h("sl-input", Object.assign({ required: true, disabled: props.states.saveLoading, value: ((
|
|
1892
|
+
paypalInputSlot: (index.h("sl-input", Object.assign({ required: true, disabled: props.states.saveLoading, value: ((_z = (_y = props.states) === null || _y === void 0 ? void 0 : _y.formState) === null || _z === void 0 ? void 0 : _z.paypalEmailAddress) || "", label: props.text.payPalInputLabel, key: "paypalEmailAddress", name: "/paypalEmailAddress", id: "paypalEmailAddress", type: "text" }, (((_2 = (_1 = (_0 = props.states.formState) === null || _0 === void 0 ? void 0 : _0.errors) === null || _1 === void 0 ? void 0 : _1.inputErrors) === null || _2 === void 0 ? void 0 : _2.paypalEmailAddress) && {
|
|
1567
1893
|
class: "error-input",
|
|
1568
1894
|
helpText: getValidationErrorMessage({
|
|
1569
|
-
type: (
|
|
1895
|
+
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,
|
|
1570
1896
|
label: props.text.payPalInputLabel,
|
|
1897
|
+
errorCode: (_10 = (_9 = (_8 = (_7 = props.states.formState) === null || _7 === void 0 ? void 0 : _7.errors) === null || _8 === void 0 ? void 0 : _8.inputErrors) === null || _9 === void 0 ? void 0 : _9.paypalEmailAddress) === null || _10 === void 0 ? void 0 : _10.errorCode,
|
|
1898
|
+
fieldName: "paypalEmailAddress",
|
|
1571
1899
|
}),
|
|
1572
1900
|
})))),
|
|
1573
1901
|
} })));
|
|
@@ -1774,7 +2102,7 @@ function useDocusignForm(props) {
|
|
|
1774
2102
|
if (!result.completeImpactPublisherTaxDocument.success)
|
|
1775
2103
|
throw new Error();
|
|
1776
2104
|
// Fire form change event
|
|
1777
|
-
window.dispatchEvent(new Event(
|
|
2105
|
+
window.dispatchEvent(new Event(eventKeys.TAX_FORM_UPDATED_EVENT_KEY));
|
|
1778
2106
|
setShowExitButton(true);
|
|
1779
2107
|
}
|
|
1780
2108
|
catch (e) {
|
|
@@ -2660,7 +2988,7 @@ function useIndirectTaxForm(props) {
|
|
|
2660
2988
|
.createImpactConnection) === null || _c === void 0 ? void 0 : _c.user) === null || _d === void 0 ? void 0 : _d.impactConnection) === null || _e === void 0 ? void 0 : _e.publisher;
|
|
2661
2989
|
const hasValidCurrentDocument = data.validTaxDocument(resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) && (resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.currentTaxDocument);
|
|
2662
2990
|
// Fire form change event
|
|
2663
|
-
window.dispatchEvent(new Event(
|
|
2991
|
+
window.dispatchEvent(new Event(eventKeys.TAX_FORM_UPDATED_EVENT_KEY));
|
|
2664
2992
|
return {
|
|
2665
2993
|
resultPublisher,
|
|
2666
2994
|
hasValidCurrentDocument,
|
|
@@ -2816,7 +3144,7 @@ const IndirectTaxForm = class {
|
|
|
2816
3144
|
/**
|
|
2817
3145
|
* @uiName Indirect tax number field label
|
|
2818
3146
|
*/
|
|
2819
|
-
this.indirectTaxNumber = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}
|
|
3147
|
+
this.indirectTaxNumber = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}}";
|
|
2820
3148
|
/**
|
|
2821
3149
|
* Displayed to participants registered for QST.
|
|
2822
3150
|
* @uiName QST number field label
|
|
@@ -2855,7 +3183,7 @@ const IndirectTaxForm = class {
|
|
|
2855
3183
|
/**
|
|
2856
3184
|
* @uiName Missing indirect tax number error message
|
|
2857
3185
|
*/
|
|
2858
|
-
this.indirectTaxNumberError = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}
|
|
3186
|
+
this.indirectTaxNumberError = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}} is required";
|
|
2859
3187
|
/**
|
|
2860
3188
|
* Placeholder text displayed in the country search dropdown
|
|
2861
3189
|
* @uiName Country field placeholder text
|
|
@@ -3666,7 +3994,7 @@ const PayoutDetailsCard = class {
|
|
|
3666
3994
|
* Badge text indicating payout status
|
|
3667
3995
|
* @uiName Payout badge status text
|
|
3668
3996
|
*/
|
|
3669
|
-
this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout}
|
|
3997
|
+
this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
|
|
3670
3998
|
/**
|
|
3671
3999
|
* Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
|
|
3672
4000
|
* @uiName Payout schedule by threshold text
|
|
@@ -4720,7 +5048,7 @@ const TaxAndCashDashboard = class {
|
|
|
4720
5048
|
/**
|
|
4721
5049
|
* @uiName Payout status badge
|
|
4722
5050
|
*/
|
|
4723
|
-
this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout}
|
|
5051
|
+
this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
|
|
4724
5052
|
/**
|
|
4725
5053
|
* Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
|
|
4726
5054
|
* @uiName Payout schedule by threshold text
|
|
@@ -5071,8 +5399,13 @@ function useUserInfoForm(props) {
|
|
|
5071
5399
|
lastName: user.impactConnection.user.lastName,
|
|
5072
5400
|
countryCode: user.impactConnection.publisher.countryCode,
|
|
5073
5401
|
currency: user.impactConnection.publisher.currency,
|
|
5074
|
-
phoneNumberCountryCode
|
|
5075
|
-
|
|
5402
|
+
// when creating an impact connection without sending phoneNumber data, the impactAPI defaults the value to "000000" and the phoneNumberCountryCode to "DZ"
|
|
5403
|
+
phoneNumberCountryCode: user.impactConnection.publisher.phoneNumber === "0000000"
|
|
5404
|
+
? null
|
|
5405
|
+
: user.impactConnection.publisher.phoneNumberCountryCode,
|
|
5406
|
+
phoneNumber: user.impactConnection.publisher.phoneNumber === "0000000"
|
|
5407
|
+
? null
|
|
5408
|
+
: user.impactConnection.publisher.phoneNumber,
|
|
5076
5409
|
address: user.impactConnection.publisher.billingAddress,
|
|
5077
5410
|
city: user.impactConnection.publisher.billingCity,
|
|
5078
5411
|
state: user.impactConnection.publisher.billingState,
|
|
@@ -5176,7 +5509,7 @@ function useUserInfoForm(props) {
|
|
|
5176
5509
|
.createImpactConnection) === null || _c === void 0 ? void 0 : _c.user) === null || _d === void 0 ? void 0 : _d.impactConnection) === null || _e === void 0 ? void 0 : _e.publisher;
|
|
5177
5510
|
const hasValidCurrentDocument = data.validTaxDocument(resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) && (resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.currentTaxDocument);
|
|
5178
5511
|
// Fire form change event
|
|
5179
|
-
window.dispatchEvent(new Event(
|
|
5512
|
+
window.dispatchEvent(new Event(eventKeys.TAX_FORM_UPDATED_EVENT_KEY));
|
|
5180
5513
|
return {
|
|
5181
5514
|
resultPublisher,
|
|
5182
5515
|
hasValidCurrentDocument,
|