@saasquatch/mint-components 2.2.0-6 → 2.2.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-1c054d52.js → ShadowViewAddon-3b477e58.js} +429 -27
- package/dist/cjs/{data-c03e282a.js → data-8c8a08f6.js} +90 -1
- package/dist/cjs/extractProps-e9c55ba8.js +35 -0
- package/dist/cjs/{keys-5a2c9ed2.js → keys-cff24974.js} +0 -4
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +101 -482
- package/dist/cjs/sqm-big-stat_46.cjs.entry.js +360 -424
- package/dist/cjs/sqm-code-verification.cjs.entry.js +6 -5
- package/dist/cjs/sqm-email-verification.cjs.entry.js +418 -0
- package/dist/cjs/sqm-empty_4.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-portal-container-view-70a47420.js → sqm-portal-container-view-757f921b.js} +5 -6
- package/dist/cjs/{sqm-portal-email-verification-view-d51c2a06.js → sqm-portal-email-verification-view-abb773a7.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +2 -2
- package/dist/cjs/sqm-portal-forgot-password_6.cjs.entry.js +5 -5
- package/dist/cjs/{sqm-portal-profile-view-e6927959.js → sqm-portal-profile-view-3515e1e5.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-registration-form-view-fd48f1d3.js → sqm-portal-registration-form-view-a45f7a52.js} +1 -1
- package/dist/cjs/{sqm-portal-reset-password-view-d90d77f9.js → sqm-portal-reset-password-view-a767b044.js} +1 -1
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-verify-email-view-6258dcae.js → sqm-portal-verify-email-view-717d0633.js} +1 -1
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +10 -28
- package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +1 -1
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +9 -30
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +532 -740
- package/dist/cjs/{sqm-text-span-view-8a32dd8c.js → sqm-text-span-view-b9e10f5d.js} +1 -1
- package/dist/cjs/sqm-text-span.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-user-info-form-view-4d56b339.js → sqm-user-info-form-view-53306f6e.js} +40 -33
- package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +1 -1
- package/dist/cjs/sqm-widget-verification.cjs.entry.js +214 -0
- package/dist/cjs/{usePayoutStatus-0a98ee05.js → usePayoutStatus-0192fccd.js} +5 -3
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/sqm-big-stat/useBigStat.js +5 -6
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field-view.js +1 -1
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +2 -3
- package/dist/collection/components/sqm-portal-container/sqm-portal-container-view.js +6 -7
- package/dist/collection/components/sqm-portal-google-login/sqm-portal-google-login.js +1 -1
- package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +1 -1
- package/dist/collection/components/sqm-referral-iframe/ReferralIframe.stories.js +1 -0
- package/dist/collection/components/sqm-referral-iframe/sqm-referral-iframe-view.js +1 -1
- package/dist/collection/components/sqm-referral-iframe/sqm-referral-iframe.js +27 -1
- package/dist/collection/components/sqm-referral-table/ReferralTable.stories.js +0 -1
- package/dist/collection/components/sqm-referral-table/ReferralTableRewardsCell.stories.js +0 -1
- package/dist/collection/components/sqm-referral-table/TaxAndCashReferralTable.stories.js +2 -2
- package/dist/collection/components/sqm-referral-table/TaxAndCashReferralTableRewardsCell.stories.js +145 -209
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +10 -30
- package/dist/collection/components/sqm-rewards-table/RewardsTableCell.stories.js +0 -1
- package/dist/collection/components/sqm-rewards-table/TaxAndCashRewardsTable.stories.js +2 -2
- package/dist/collection/components/sqm-rewards-table/TaxAndCashRewardsTableCell.stories.js +137 -223
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.js +10 -30
- package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +0 -1
- package/dist/collection/components/sqm-share-code/sqm-share-code.js +0 -1
- package/dist/collection/components/sqm-share-link/ShareLink.stories.js +136 -11
- package/dist/collection/components/sqm-share-link/UseShareLink.stories.js +14 -5
- package/dist/collection/components/sqm-share-link/sqm-share-link-view.js +192 -0
- package/dist/collection/components/sqm-share-link/sqm-share-link.js +935 -48
- package/dist/collection/components/sqm-share-link/useShareLink.js +227 -14
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +2 -4
- package/dist/collection/components/sqm-text-span/sqm-text-span-view.js +1 -1
- package/dist/collection/components/sqm-user-attribute/UserAttribute.stories.js +43 -0
- package/dist/collection/components/sqm-user-attribute/sqm-user-attribute-view.js +19 -0
- package/dist/collection/components/sqm-user-attribute/sqm-user-attribute.js +175 -0
- package/dist/collection/components/sqm-user-attribute/useUserAttribute.js +30 -0
- package/dist/collection/components/sqm-widget-verification/keys.js +0 -2
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +4 -3
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +2 -0
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/useEmailVerification.js +9 -19
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +46 -486
- package/dist/collection/components/sqm-widget-verification/useWidgetVerification.js +11 -43
- package/dist/collection/components/tax-and-cash/data.js +0 -1
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/formDefinitions.js +37 -75
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +13 -688
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +1 -95
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +4 -4
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +12 -51
- 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 +36 -7
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +0 -3
- 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/UserInfoFormView.stories.js +1 -0
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +18 -10
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +25 -0
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +17 -34
- package/dist/esm/{ShadowViewAddon-4d554869.js → ShadowViewAddon-0b980200.js} +435 -34
- package/dist/esm/data-12e6aae1.js +216 -0
- package/dist/esm/extractProps-54064fb0.js +32 -0
- package/dist/esm/{global-75e96214.js → global-96c14d63.js} +1 -1
- package/dist/esm/{index.module-02cb914c.js → index.module-b23fdad8.js} +1 -1
- package/dist/esm/keys-406491dc.js +6 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/mint-components.js +3 -3
- package/dist/esm/{re-render-bf46ba54.js → re-render-f30aeb6b.js} +1 -1
- package/dist/esm/sqm-banking-info-form_10.entry.js +95 -476
- package/dist/esm/sqm-big-stat_46.entry.js +364 -428
- package/dist/esm/sqm-close-button.entry.js +1 -1
- package/dist/esm/sqm-code-verification.entry.js +9 -8
- package/dist/esm/sqm-context-router.entry.js +1 -1
- package/dist/esm/sqm-email-verification.entry.js +414 -0
- package/dist/esm/sqm-empty_4.entry.js +3 -3
- 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-bfafee56.js → sqm-lead-checkbox-field-view-7928db07.js} +1 -1
- package/dist/esm/sqm-lead-checkbox-field.entry.js +4 -4
- package/dist/esm/{sqm-lead-input-field-view-b945edf4.js → sqm-lead-input-field-view-d1b91650.js} +1 -1
- package/dist/esm/sqm-lead-input-field.entry.js +4 -4
- package/dist/esm/sqm-leaderboard-rank.entry.js +2 -2
- package/dist/esm/sqm-logout-current-user.entry.js +1 -1
- package/dist/esm/{sqm-navigation-sidebar-item-view-8d98fcf3.js → sqm-navigation-sidebar-item-view-b3beac5a.js} +1 -1
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +2 -2
- package/dist/esm/sqm-navigation-sidebar.entry.js +1 -1
- package/dist/esm/sqm-pagination_3.entry.js +3 -3
- package/dist/esm/sqm-password-field.entry.js +2 -2
- package/dist/esm/sqm-popup-container.entry.js +1 -1
- package/dist/esm/{sqm-portal-container-view-a8c708cd.js → sqm-portal-container-view-200c9df8.js} +6 -7
- package/dist/esm/{sqm-portal-email-verification-view-58bad294.js → sqm-portal-email-verification-view-04528277.js} +2 -2
- package/dist/esm/sqm-portal-email-verification.entry.js +4 -4
- package/dist/esm/sqm-portal-forgot-password_6.entry.js +8 -8
- package/dist/esm/sqm-portal-logout.entry.js +1 -1
- package/dist/esm/{sqm-portal-profile-view-115bad4a.js → sqm-portal-profile-view-b5ea620f.js} +2 -2
- package/dist/esm/sqm-portal-profile.entry.js +5 -5
- package/dist/esm/sqm-portal-protected-route.entry.js +1 -1
- package/dist/esm/{sqm-portal-registration-form-view-9bf30b56.js → sqm-portal-registration-form-view-79265df5.js} +1 -1
- package/dist/esm/{sqm-portal-reset-password-view-f8d1689c.js → sqm-portal-reset-password-view-f84c04cf.js} +1 -1
- package/dist/esm/sqm-portal-reset-password.entry.js +3 -3
- package/dist/esm/{sqm-portal-verify-email-view-c053ead1.js → sqm-portal-verify-email-view-c61536b7.js} +2 -2
- package/dist/esm/sqm-qr-code.entry.js +2 -2
- package/dist/esm/sqm-referral-table_11.entry.js +15 -33
- package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +1 -1
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +2 -2
- package/dist/esm/sqm-rewards-table_9.entry.js +14 -35
- package/dist/esm/sqm-stencilbook.entry.js +506 -714
- package/dist/esm/sqm-tab.entry.js +2 -2
- package/dist/esm/sqm-tabs.entry.js +3 -3
- package/dist/esm/{sqm-text-span-view-4db9e33f.js → sqm-text-span-view-72f43dff.js} +1 -1
- package/dist/esm/sqm-text-span.entry.js +1 -1
- package/dist/esm/{sqm-user-info-form-view-d13f9d3e.js → sqm-user-info-form-view-19d81a2b.js} +20 -13
- package/dist/esm/sqm-widget-verification-controller.entry.js +2 -2
- package/dist/esm/sqm-widget-verification.entry.js +210 -0
- package/dist/esm/{useChildElements-06937df7.js → useChildElements-9bccfb72.js} +1 -1
- package/dist/esm/{useInstantAccessRegistration-69c9ffe0.js → useInstantAccessRegistration-69fefed0.js} +2 -2
- package/dist/esm/{useLeadFormState-332b2796.js → useLeadFormState-dd4e8b08.js} +2 -2
- package/dist/esm/{usePayoutStatus-227ae365.js → usePayoutStatus-46c0c289.js} +4 -3
- package/dist/esm/{usePortalRegistrationForm-3a1f36a2.js → usePortalRegistrationForm-62de6fb1.js} +2 -2
- package/dist/esm/{useReferralCodes-25f8b792.js → useReferralCodes-52ca720f.js} +1 -1
- package/dist/esm/{useReferralTable-03d32c6f.js → useReferralTable-92af4133.js} +3 -3
- package/dist/esm/{useRegistrationFormState-aa44cfff.js → useRegistrationFormState-2c090c38.js} +1 -1
- package/dist/esm/{useVerificationEmail-9f2c0bab.js → useVerificationEmail-c13c3b51.js} +1 -1
- package/dist/esm/{utilities-cbd8f2eb.js → utilities-77b1e0cc.js} +1 -1
- package/dist/esm-es5/ShadowViewAddon-0b980200.js +1 -0
- package/dist/esm-es5/data-12e6aae1.js +1 -0
- package/dist/esm-es5/extractProps-54064fb0.js +1 -0
- package/dist/esm-es5/{global-75e96214.js → global-96c14d63.js} +1 -1
- package/dist/esm-es5/{index.module-02cb914c.js → index.module-b23fdad8.js} +1 -1
- package/dist/esm-es5/keys-406491dc.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-bf46ba54.js → re-render-f30aeb6b.js} +1 -1
- package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_46.entry.js +1 -1
- package/dist/esm-es5/sqm-close-button.entry.js +1 -1
- package/dist/esm-es5/sqm-code-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-context-router.entry.js +1 -1
- package/dist/esm-es5/sqm-email-verification.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-bfafee56.js → sqm-lead-checkbox-field-view-7928db07.js} +1 -1
- package/dist/esm-es5/sqm-lead-checkbox-field.entry.js +1 -1
- package/dist/esm-es5/{sqm-lead-input-field-view-b945edf4.js → sqm-lead-input-field-view-d1b91650.js} +1 -1
- package/dist/esm-es5/sqm-lead-input-field.entry.js +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
- package/dist/esm-es5/{sqm-navigation-sidebar-item-view-8d98fcf3.js → sqm-navigation-sidebar-item-view-b3beac5a.js} +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
- package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
- package/dist/esm-es5/sqm-password-field.entry.js +1 -1
- package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-container-view-200c9df8.js +1 -0
- package/dist/esm-es5/{sqm-portal-email-verification-view-58bad294.js → sqm-portal-email-verification-view-04528277.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-115bad4a.js → sqm-portal-profile-view-b5ea620f.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-registration-form-view-9bf30b56.js → sqm-portal-registration-form-view-79265df5.js} +1 -1
- package/dist/esm-es5/{sqm-portal-reset-password-view-f8d1689c.js → sqm-portal-reset-password-view-f84c04cf.js} +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-verify-email-view-c053ead1.js → sqm-portal-verify-email-view-c61536b7.js} +1 -1
- package/dist/esm-es5/sqm-qr-code.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-tab.entry.js +1 -1
- package/dist/esm-es5/sqm-tabs.entry.js +1 -1
- package/dist/esm-es5/{sqm-text-span-view-4db9e33f.js → sqm-text-span-view-72f43dff.js} +1 -1
- package/dist/esm-es5/sqm-text-span.entry.js +1 -1
- package/dist/esm-es5/sqm-user-info-form-view-19d81a2b.js +1 -0
- package/dist/esm-es5/sqm-widget-verification-controller.entry.js +1 -1
- package/dist/esm-es5/sqm-widget-verification.entry.js +1 -0
- package/dist/esm-es5/{useChildElements-06937df7.js → useChildElements-9bccfb72.js} +1 -1
- package/dist/esm-es5/{useInstantAccessRegistration-69c9ffe0.js → useInstantAccessRegistration-69fefed0.js} +1 -1
- package/dist/esm-es5/{useLeadFormState-332b2796.js → useLeadFormState-dd4e8b08.js} +1 -1
- package/dist/esm-es5/{usePayoutStatus-227ae365.js → usePayoutStatus-46c0c289.js} +2 -2
- package/dist/esm-es5/{usePortalRegistrationForm-3a1f36a2.js → usePortalRegistrationForm-62de6fb1.js} +1 -1
- package/dist/esm-es5/{useReferralCodes-25f8b792.js → useReferralCodes-52ca720f.js} +1 -1
- package/dist/esm-es5/{useReferralTable-03d32c6f.js → useReferralTable-92af4133.js} +1 -1
- package/dist/esm-es5/{useRegistrationFormState-aa44cfff.js → useRegistrationFormState-2c090c38.js} +1 -1
- package/dist/esm-es5/{useVerificationEmail-9f2c0bab.js → useVerificationEmail-c13c3b51.js} +1 -1
- package/dist/esm-es5/{utilities-cbd8f2eb.js → utilities-77b1e0cc.js} +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/p-00b235c5.system.entry.js +1 -0
- package/dist/mint-components/{p-4eadbd5b.entry.js → p-013564b3.entry.js} +1 -1
- package/dist/mint-components/{p-1b0326d1.entry.js → p-02499e08.entry.js} +1 -1
- package/dist/mint-components/{p-d34564f8.system.entry.js → p-027fc3be.system.entry.js} +1 -1
- package/dist/mint-components/{p-bb0b5e4b.js → p-035d9b65.js} +1 -1
- package/dist/mint-components/{p-e651593c.system.js → p-036a2617.system.js} +1 -1
- package/dist/mint-components/p-044f930a.system.js +1 -0
- package/dist/mint-components/p-0706cf9e.system.entry.js +1 -0
- package/dist/mint-components/p-0797a946.js +1 -0
- package/dist/mint-components/{p-60b1f3d9.entry.js → p-09348341.entry.js} +1 -1
- package/dist/mint-components/{p-29bc5f50.entry.js → p-09f7aacd.entry.js} +2 -2
- package/dist/mint-components/p-0b1e90fe.system.js +1 -0
- package/dist/{esm/data-017e5ef2.js → mint-components/p-0c0d4065.js} +5 -24
- package/dist/mint-components/{p-cfea215d.js → p-0d83907e.js} +1 -1
- package/dist/mint-components/p-1021a49f.system.entry.js +1 -0
- package/dist/mint-components/p-13292317.entry.js +11 -0
- package/dist/mint-components/{p-731c4d33.entry.js → p-13d1b10d.entry.js} +1 -1
- package/dist/mint-components/{p-d284ae70.system.js → p-172675ca.system.js} +1 -1
- package/dist/mint-components/{p-b2ad3fca.system.js → p-19c441b2.system.js} +1 -1
- package/dist/mint-components/{p-dafe30c3.entry.js → p-1d92c169.entry.js} +1 -1
- package/dist/mint-components/{p-0815b973.system.js → p-205cfdcd.system.js} +1 -1
- package/dist/mint-components/{p-ae4994e1.js → p-2668335b.js} +1 -1
- package/dist/mint-components/{p-13bb56a8.system.entry.js → p-2b4af8e8.system.entry.js} +1 -1
- package/dist/mint-components/p-2d5c2bd4.system.entry.js +1 -0
- package/dist/mint-components/{p-2190dc73.system.js → p-30c1ef36.system.js} +1 -1
- package/dist/mint-components/{p-4eaa3eb7.js → p-3286ef38.js} +1 -1
- package/dist/mint-components/{p-eae44b42.js → p-3366b81e.js} +2 -2
- package/dist/mint-components/p-38c7775a.js +1 -0
- package/dist/mint-components/p-3adbfd0b.system.js +6 -0
- package/dist/mint-components/p-3af3e2c1.entry.js +25 -0
- package/dist/mint-components/{p-4e3db52b.entry.js → p-3bc62ca6.entry.js} +1 -1
- package/dist/mint-components/{p-d71a8b38.entry.js → p-40bad95a.entry.js} +2 -2
- package/dist/mint-components/{p-bd972473.system.js → p-43c31fd5.system.js} +1 -1
- package/dist/mint-components/{p-df897432.system.entry.js → p-4da5a3fe.system.entry.js} +1 -1
- package/dist/mint-components/{p-bcfdb510.entry.js → p-52674798.entry.js} +1 -1
- package/dist/mint-components/p-5492dd51.system.entry.js +1 -0
- package/dist/mint-components/p-57dd28bd.system.js +1 -0
- package/dist/mint-components/p-5b1d2866.system.js +1 -0
- package/dist/mint-components/{p-02c0f88e.system.entry.js → p-5b871e38.system.entry.js} +1 -1
- package/dist/mint-components/p-5bc5c61e.entry.js +1 -0
- package/dist/mint-components/{p-7ea3f49c.entry.js → p-5c4ba8a0.entry.js} +1 -1
- package/dist/mint-components/{p-81bc6dca.system.entry.js → p-5ce78407.system.entry.js} +1 -1
- package/dist/mint-components/{p-14183edc.entry.js → p-61897e72.entry.js} +1 -1
- package/dist/mint-components/{p-025ddad2.system.entry.js → p-626b31cb.system.entry.js} +1 -1
- package/dist/mint-components/{p-bf9ab2d3.js → p-642f2c89.js} +1 -1
- package/dist/mint-components/{p-78e6dc8d.entry.js → p-653db72e.entry.js} +1 -1
- package/dist/mint-components/{p-27daf264.entry.js → p-6668f9f0.entry.js} +1 -1
- package/dist/mint-components/{p-f368f04a.system.js → p-686dd5eb.system.js} +1 -1
- package/dist/mint-components/p-6c4ad51a.js +1 -0
- package/dist/mint-components/{p-8e148cb0.system.js → p-7265bbcb.system.js} +1 -1
- package/dist/mint-components/{p-2d3f7b76.system.entry.js → p-738dce27.system.entry.js} +1 -1
- package/dist/mint-components/{p-379cb9f1.system.js → p-7562cd98.system.js} +1 -1
- package/dist/mint-components/{p-5fdf0286.system.js → p-77b9cde8.system.js} +1 -1
- package/dist/mint-components/p-77fa2383.entry.js +1 -0
- package/dist/mint-components/{p-f6de2e5c.system.entry.js → p-782af7ae.system.entry.js} +1 -1
- package/dist/mint-components/p-7939e4af.entry.js +1 -0
- package/dist/mint-components/{p-1317cc92.system.js → p-7b59e13c.system.js} +1 -1
- package/dist/mint-components/{p-f32050f6.system.js → p-7efb8782.system.js} +1 -1
- package/dist/mint-components/{p-24f1d342.system.entry.js → p-80e116ec.system.entry.js} +1 -1
- package/dist/mint-components/p-8285869e.entry.js +9 -0
- package/dist/mint-components/{p-614723aa.js → p-832aea99.js} +1 -1
- package/dist/mint-components/{p-e920c95c.system.js → p-85721089.system.js} +1 -1
- package/dist/mint-components/{p-376c7608.system.js → p-8583ce0c.system.js} +1 -1
- package/dist/mint-components/{p-71561bb2.system.entry.js → p-8899ff38.system.entry.js} +1 -1
- package/dist/mint-components/p-892797eb.system.entry.js +1 -0
- package/dist/mint-components/{p-2ab31786.js → p-8962e023.js} +1 -1
- package/dist/mint-components/{p-1599a178.entry.js → p-8f2d03c7.entry.js} +1 -1
- package/dist/mint-components/{p-ab59c5eb.system.entry.js → p-90833864.system.entry.js} +1 -1
- package/dist/mint-components/p-91a96e98.entry.js +1 -0
- package/dist/mint-components/{p-ca5b9f4d.system.entry.js → p-9390586b.system.entry.js} +1 -1
- package/dist/mint-components/{p-38d04e4b.entry.js → p-95510f27.entry.js} +1 -1
- package/dist/mint-components/{p-432a44de.entry.js → p-982d1f6f.entry.js} +2 -3
- package/dist/mint-components/{p-c66e5217.system.js → p-a0c5631b.system.js} +1 -1
- package/dist/mint-components/{p-df88dcaa.system.js → p-a4825ec2.system.js} +1 -1
- package/dist/mint-components/{p-0766438e.js → p-a4f8abad.js} +1 -1
- package/dist/mint-components/{p-209157a9.system.entry.js → p-a96c9bbb.system.entry.js} +1 -1
- package/dist/mint-components/{p-eee0bcf4.entry.js → p-af407cce.entry.js} +1 -1
- package/dist/mint-components/p-b2b85238.entry.js +1 -0
- package/dist/mint-components/p-b395470f.entry.js +16 -0
- package/dist/mint-components/{p-45e2a83a.js → p-b3ad957c.js} +1 -1
- package/dist/mint-components/{p-921eb024.entry.js → p-b66f45d1.entry.js} +1 -1
- package/dist/mint-components/{p-cfba6b4e.system.entry.js → p-b96e90a2.system.entry.js} +1 -1
- package/dist/mint-components/{p-45230a44.js → p-bab4929e.js} +1 -1
- package/dist/mint-components/p-bba16a46.system.entry.js +1 -0
- package/dist/mint-components/{p-c0a85e22.js → p-bc386a7b.js} +1 -1
- package/dist/mint-components/p-be12607e.entry.js +281 -0
- package/dist/mint-components/{p-a7f72a66.js → p-bee4af5d.js} +1 -1
- package/dist/mint-components/p-bf188b72.system.entry.js +1 -0
- package/dist/mint-components/{p-6b4e5d94.system.entry.js → p-c30d0049.system.entry.js} +1 -1
- package/dist/mint-components/{p-30cfe3e3.system.entry.js → p-c45a929a.system.entry.js} +1 -1
- package/dist/mint-components/{p-50d959bd.js → p-c813ec64.js} +1 -1
- package/dist/mint-components/p-c8a3f3b0.js +499 -0
- package/dist/mint-components/{p-b3309d9b.entry.js → p-c8a8d231.entry.js} +2 -2
- package/dist/mint-components/{p-3354cc75.system.entry.js → p-c8bcbf8b.system.entry.js} +1 -1
- package/dist/mint-components/p-ca098be1.system.js +1 -0
- package/dist/mint-components/{p-623a0a0b.system.entry.js → p-d005df28.system.entry.js} +1 -1
- package/dist/mint-components/{p-8a6531d2.js → p-d0993bb9.js} +1 -1
- package/dist/mint-components/p-d18dedd4.js +1 -0
- package/dist/mint-components/{p-e1292288.system.entry.js → p-d3b1ab20.system.entry.js} +1 -1
- package/dist/mint-components/p-d4f332a7.entry.js +106 -0
- package/dist/mint-components/{p-b1765c78.system.js → p-d55c50af.system.js} +1 -1
- package/dist/mint-components/p-d6193876.system.js +1 -0
- package/dist/mint-components/{p-092c2606.entry.js → p-db0a2afd.entry.js} +1 -1
- package/dist/mint-components/p-de0d6fd7.js +49 -0
- package/dist/mint-components/p-e00ec007.js +1 -0
- package/dist/mint-components/{p-9a15cd5a.system.entry.js → p-e12754f5.system.entry.js} +1 -1
- package/dist/mint-components/p-e30abc44.js +1 -0
- package/dist/mint-components/{p-3218bb1d.entry.js → p-e506bf7f.entry.js} +1 -1
- package/dist/mint-components/p-e55aafe9.system.js +1 -0
- package/dist/mint-components/{p-3bbc0db2.entry.js → p-e5ea43b1.entry.js} +2 -2
- package/dist/mint-components/{p-abd717d4.js → p-e6240c72.js} +1 -1
- package/dist/mint-components/{p-3a41b39c.js → p-e84b874c.js} +1 -1
- package/dist/mint-components/{p-dbc8afaa.system.entry.js → p-e9485160.system.entry.js} +1 -1
- package/dist/mint-components/p-ea03e50e.system.js +1 -0
- package/dist/mint-components/p-ec0b649a.entry.js +1 -0
- package/dist/mint-components/{p-925aa740.system.entry.js → p-f1374258.system.entry.js} +1 -1
- package/dist/mint-components/{p-e6de31a7.system.entry.js → p-f39cf252.system.entry.js} +1 -1
- package/dist/mint-components/{p-6f6c3ac6.system.entry.js → p-f4e36adf.system.entry.js} +1 -1
- package/dist/mint-components/{p-02e2b13b.system.js → p-f55ecf35.system.js} +1 -1
- package/dist/mint-components/{p-7a091fa7.js → p-f581aac7.js} +1 -1
- package/dist/mint-components/{p-8d073bdf.entry.js → p-f6528f8a.entry.js} +1 -1
- package/dist/mint-components/{p-9ba8b28b.system.entry.js → p-f7ca4cc4.system.entry.js} +1 -1
- package/dist/mint-components/p-f8026ed6.system.js +1 -0
- package/dist/mint-components/{p-13d8ecad.js → p-f8a09b0f.js} +1 -1
- package/dist/mint-components/p-fb804001.system.entry.js +1 -0
- package/dist/mint-components/{p-0b32e1d4.system.entry.js → p-fc284f91.system.entry.js} +1 -1
- package/dist/mint-components/{p-099ce3d5.system.entry.js → p-fe1d3cf8.system.entry.js} +1 -1
- package/dist/mint-components/p-fe70e20c.entry.js +1 -0
- package/dist/mint-components/p-ff118a19.system.js +1 -0
- package/dist/types/components/sqm-checkbox-field/sqm-checkbox-field.d.ts +1 -1
- package/dist/types/components/sqm-referral-iframe/sqm-referral-iframe-view.d.ts +1 -0
- package/dist/types/components/sqm-referral-iframe/sqm-referral-iframe.d.ts +5 -0
- package/dist/types/components/sqm-referral-table/TaxAndCashReferralTableRewardsCell.stories.d.ts +1 -18
- package/dist/types/components/sqm-rewards-table/TaxAndCashRewardsTableCell.stories.d.ts +7 -19
- package/dist/types/components/sqm-share-link/ShareLink.stories.d.ts +9 -0
- package/dist/types/components/sqm-share-link/UseShareLink.stories.d.ts +6 -0
- package/dist/types/components/sqm-share-link/sqm-share-link-view.d.ts +41 -0
- package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +195 -2
- package/dist/types/components/sqm-share-link/useShareLink.d.ts +33 -4
- package/dist/types/components/sqm-user-attribute/UserAttribute.stories.d.ts +11 -0
- package/dist/types/components/sqm-user-attribute/sqm-user-attribute-view.d.ts +8 -0
- package/dist/types/components/sqm-user-attribute/sqm-user-attribute.d.ts +45 -0
- package/dist/types/components/sqm-user-attribute/useUserAttribute.d.ts +3 -0
- package/dist/types/components/sqm-widget-verification/keys.d.ts +0 -2
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +7 -75
- package/dist/types/components/sqm-widget-verification/useWidgetVerification.d.ts +0 -2
- package/dist/types/components/tax-and-cash/data.d.ts +0 -1
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/formDefinitions.d.ts +0 -2
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.d.ts +0 -4
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.d.ts +0 -165
- package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.d.ts +0 -7
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +5 -0
- package/dist/types/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.d.ts +4 -0
- package/dist/types/components.d.ts +472 -613
- package/dist/types/saasquatch.d.ts +0 -2
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +15 -3
- package/readme.md +60 -1
- package/dist/cjs/eventKeys-7af4df4d.js +0 -5
- package/dist/cjs/parseStates-d1effc19.js +0 -16
- package/dist/cjs/sqm-email-verification_2.cjs.entry.js +0 -886
- package/dist/cjs/sqm-partner-info-modal-view-97770d03.js +0 -149
- package/dist/cjs/utils-15ce04e3.js +0 -93
- package/dist/collection/components/sqm-partner-info-modal/PartnerInfoModal.stories.js +0 -171
- package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal-view.js +0 -143
- package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal.js +0 -669
- package/dist/collection/components/sqm-partner-info-modal/usePartnerInfoModal.js +0 -269
- package/dist/collection/components/sqm-widget-verification/WidgetVerification.stories.js +0 -16
- package/dist/esm/eventKeys-f76b6a03.js +0 -3
- package/dist/esm/keys-1054056a.js +0 -8
- package/dist/esm/parseStates-ed75e224.js +0 -14
- package/dist/esm/sqm-email-verification_2.entry.js +0 -881
- package/dist/esm/sqm-partner-info-modal-view-5709904e.js +0 -146
- package/dist/esm/utils-17daa419.js +0 -85
- package/dist/esm-es5/ShadowViewAddon-4d554869.js +0 -1
- package/dist/esm-es5/data-017e5ef2.js +0 -1
- package/dist/esm-es5/eventKeys-f76b6a03.js +0 -1
- package/dist/esm-es5/keys-1054056a.js +0 -1
- package/dist/esm-es5/parseStates-ed75e224.js +0 -1
- package/dist/esm-es5/sqm-email-verification_2.entry.js +0 -1
- package/dist/esm-es5/sqm-partner-info-modal-view-5709904e.js +0 -1
- package/dist/esm-es5/sqm-portal-container-view-a8c708cd.js +0 -1
- package/dist/esm-es5/sqm-user-info-form-view-d13f9d3e.js +0 -1
- package/dist/esm-es5/utils-17daa419.js +0 -1
- package/dist/mint-components/p-00046ec1.js +0 -116
- package/dist/mint-components/p-00dd7f08.js +0 -1
- package/dist/mint-components/p-0102ad17.system.entry.js +0 -1
- package/dist/mint-components/p-0a6489fa.entry.js +0 -1
- package/dist/mint-components/p-0f042aa6.entry.js +0 -116
- package/dist/mint-components/p-115dfc03.system.js +0 -1
- package/dist/mint-components/p-13f3a647.js +0 -1
- package/dist/mint-components/p-1d86895f.system.js +0 -1
- package/dist/mint-components/p-1f387c7b.system.js +0 -1
- package/dist/mint-components/p-1faa6ddf.system.entry.js +0 -1
- package/dist/mint-components/p-28ed2ae9.js +0 -1
- package/dist/mint-components/p-31edeff4.system.js +0 -1
- package/dist/mint-components/p-3254fbb4.entry.js +0 -291
- package/dist/mint-components/p-4034f157.js +0 -1
- package/dist/mint-components/p-4691e9d5.system.js +0 -1
- package/dist/mint-components/p-4a8ffa03.system.js +0 -1
- package/dist/mint-components/p-4e34bcb1.system.js +0 -1
- package/dist/mint-components/p-4f9dc974.js +0 -1
- package/dist/mint-components/p-53d90eb5.js +0 -463
- package/dist/mint-components/p-5e300ec1.system.js +0 -6
- package/dist/mint-components/p-6af71f23.entry.js +0 -9
- package/dist/mint-components/p-6c23abd8.entry.js +0 -1
- package/dist/mint-components/p-6f8dde97.system.js +0 -1
- package/dist/mint-components/p-753d06ef.entry.js +0 -133
- package/dist/mint-components/p-7aace2b3.system.js +0 -1
- package/dist/mint-components/p-87f86492.js +0 -1
- package/dist/mint-components/p-8ae8968c.js +0 -1
- package/dist/mint-components/p-8f15bf17.entry.js +0 -1
- package/dist/mint-components/p-99eecdcb.system.entry.js +0 -1
- package/dist/mint-components/p-9b15ee47.system.js +0 -1
- package/dist/mint-components/p-a49d9288.entry.js +0 -1
- package/dist/mint-components/p-b0ab1065.system.entry.js +0 -1
- package/dist/mint-components/p-b1b20d42.entry.js +0 -11
- package/dist/mint-components/p-b52a7da9.system.entry.js +0 -1
- package/dist/mint-components/p-b699f76e.system.js +0 -1
- package/dist/mint-components/p-b6a1e2ac.js +0 -1
- package/dist/mint-components/p-b7370480.js +0 -1
- package/dist/mint-components/p-badf28bb.system.js +0 -1
- package/dist/mint-components/p-c41d536d.entry.js +0 -1
- package/dist/mint-components/p-ce7d824b.js +0 -49
- package/dist/mint-components/p-d08408b3.entry.js +0 -1
- package/dist/mint-components/p-d6ccb6fc.entry.js +0 -1
- package/dist/mint-components/p-e516e8ca.system.entry.js +0 -1
- package/dist/mint-components/p-e93cdcbd.system.js +0 -1
- package/dist/mint-components/p-eb285d38.system.entry.js +0 -1
- package/dist/mint-components/p-f782ff10.system.entry.js +0 -1
- package/dist/types/components/sqm-partner-info-modal/PartnerInfoModal.stories.d.ts +0 -15
- package/dist/types/components/sqm-partner-info-modal/sqm-partner-info-modal-view.d.ts +0 -50
- package/dist/types/components/sqm-partner-info-modal/sqm-partner-info-modal.d.ts +0 -122
- package/dist/types/components/sqm-partner-info-modal/usePartnerInfoModal.d.ts +0 -17
- package/dist/types/components/sqm-widget-verification/WidgetVerification.stories.d.ts +0 -8
- package/docs/stats.json +0 -122783
|
@@ -1,26 +1,24 @@
|
|
|
1
1
|
import { h, r as registerInstance, c as Host, g as getElement } from './index-38ad4957.js';
|
|
2
|
-
import { i as intl } from './global-
|
|
2
|
+
import { i as intl } from './global-96c14d63.js';
|
|
3
3
|
import { m as useRef, k as useState, f as useEffect, n as h$1, u as useMemo, b as browser, j as useReducer } from './dom-context-hooks.module-50442785.js';
|
|
4
|
-
import { d as dist, _, L, J, q as Pn, F as Fn, r as $n, $ as $e, i as isDemo,
|
|
4
|
+
import { d as dist, _, L, J, q as Pn, F as Fn, r as $n, $ as $e, i as isDemo, o as En, b as useCallback, R as Rn, w as wn } from './index.module-b23fdad8.js';
|
|
5
5
|
import { j as jsonpointer } from './jsonpointer-388a7082.js';
|
|
6
6
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
7
7
|
import { g as getProps } from './utils-334c1e34.js';
|
|
8
8
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
9
9
|
import './mixins-f750863a.js';
|
|
10
10
|
import { G as GenericTableView } from './GenericTableView-8c72ac30.js';
|
|
11
|
-
import { u as useRerenderListener, a as useRequestRerender } from './re-render-
|
|
12
|
-
import { u as useChildElements } from './useChildElements-
|
|
11
|
+
import { u as useRerenderListener, a as useRequestRerender } from './re-render-f30aeb6b.js';
|
|
12
|
+
import { u as useChildElements } from './useChildElements-9bccfb72.js';
|
|
13
13
|
import { l as luxon } from './luxon-1be92a8e.js';
|
|
14
|
-
import { g as generateUserError } from './useReferralTable-
|
|
15
|
-
import { a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, O as OtherRegionSlotView, I as InvoiceTableView, v as vatLabels, A as ADDRESS_REGIONS, U as UserInfoFormView } from './sqm-user-info-form-view-
|
|
16
|
-
import { t as taxTypeToName,
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import { T as TAX_FORM_UPDATED_EVENT_KEY } from './eventKeys-f76b6a03.js';
|
|
20
|
-
import { a as useVeriffApp, g as getStatus, V as VERIFF_COMPLETE_EVENT_KEY } from './usePayoutStatus-227ae365.js';
|
|
14
|
+
import { g as generateUserError } from './useReferralTable-92af4133.js';
|
|
15
|
+
import { a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, O as OtherRegionSlotView, I as InvoiceTableView, v as vatLabels, A as ADDRESS_REGIONS, U as UserInfoFormView } from './sqm-user-info-form-view-19d81a2b.js';
|
|
16
|
+
import { F as FORM_STEPS, a as TAX_FORM_CONTEXT_NAMESPACE, S as SORTED_COUNTRIES_NAMESPACE, c as USER_QUERY_NAMESPACE, T as TAX_CONTEXT_NAMESPACE, h as FINANCE_NETWORK_SETTINGS_NAMESPACE, t as taxTypeToName, l as validTaxDocument, U as USER_FORM_CONTEXT_NAMESPACE, d as COUNTRIES_QUERY_NAMESPACE, g as getCountryObj, C as CURRENCIES_NAMESPACE, o as objectIsFull } from './data-12e6aae1.js';
|
|
17
|
+
import { b as VERIFICATION_EVENT_KEY } from './keys-406491dc.js';
|
|
18
|
+
import { T as TAX_FORM_UPDATED_EVENT_KEY, a as useVeriffApp, g as getStatus, V as VERIFF_COMPLETE_EVENT_KEY } from './usePayoutStatus-46c0c289.js';
|
|
21
19
|
|
|
22
20
|
function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
23
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32
|
|
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;
|
|
24
22
|
const { errors, ...formState } = props.states.formState;
|
|
25
23
|
return {
|
|
26
24
|
0: {
|
|
@@ -29,54 +27,44 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
29
27
|
helpText: getValidationErrorMessage({
|
|
30
28
|
type: (_c = (_b = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _b === void 0 ? void 0 : _b.beneficiaryAccountName) === null || _c === void 0 ? void 0 : _c.type,
|
|
31
29
|
label: props.text.beneficiaryAccountNameLabel,
|
|
32
|
-
errorCode: (_e = (_d = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _d === void 0 ? void 0 : _d.beneficiaryAccountName) === null || _e === void 0 ? void 0 : _e.errorCode,
|
|
33
|
-
fieldName: "beneficiaryAccountName",
|
|
34
30
|
}),
|
|
35
31
|
})))),
|
|
36
32
|
},
|
|
37
33
|
1: {
|
|
38
|
-
input: (h("sl-select", Object.assign({ required: true, label: props.text.bankAccountTypeLabel, name: "/bankAccountType", id: "bankAccountType", key: "bankAccountType" }, (((
|
|
34
|
+
input: (h("sl-select", Object.assign({ required: true, label: props.text.bankAccountTypeLabel, name: "/bankAccountType", id: "bankAccountType", key: "bankAccountType" }, (((_d = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _d === void 0 ? void 0 : _d.bankAccountType) && {
|
|
39
35
|
class: "error-input",
|
|
40
36
|
helpText: getValidationErrorMessage({
|
|
41
|
-
type: (
|
|
37
|
+
type: (_f = (_e = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _e === void 0 ? void 0 : _e.bankAccountType) === null || _f === void 0 ? void 0 : _f.type,
|
|
42
38
|
label: props.text.bankAccountTypeLabel,
|
|
43
|
-
errorCode: (_k = (_j = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _j === void 0 ? void 0 : _j.bankAccountType) === null || _k === void 0 ? void 0 : _k.errorCode,
|
|
44
|
-
fieldName: "bankAccountType",
|
|
45
39
|
}),
|
|
46
40
|
})),
|
|
47
41
|
h("sl-menu-item", { value: "CHECKING" }, props.text.checkingSelectItemLabel),
|
|
48
42
|
h("sl-menu-item", { value: "SAVINGS" }, props.text.savingsSelectItemLabel))),
|
|
49
43
|
},
|
|
50
44
|
2: {
|
|
51
|
-
input: (h("sl-input", Object.assign({ required: true, label: props.text.bankAccountNumberLabel, name: "/bankAccountNumber", id: "bankAccountNumber", key: "bankAccountNumber", value: formState.bankAccountNumber, type: "text" }, (((
|
|
45
|
+
input: (h("sl-input", Object.assign({ required: true, label: props.text.bankAccountNumberLabel, name: "/bankAccountNumber", id: "bankAccountNumber", key: "bankAccountNumber", value: formState.bankAccountNumber, type: "text" }, (((_g = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _g === void 0 ? void 0 : _g.bankAccountNumber) && {
|
|
52
46
|
class: "error-input",
|
|
53
47
|
helpText: getValidationErrorMessage({
|
|
54
|
-
type: (
|
|
48
|
+
type: (_j = (_h = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _h === void 0 ? void 0 : _h.bankAccountNumber) === null || _j === void 0 ? void 0 : _j.type,
|
|
55
49
|
label: props.text.bankAccountNumberLabel,
|
|
56
|
-
errorCode: (_q = (_p = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _p === void 0 ? void 0 : _p.bankAccountNumber) === null || _q === void 0 ? void 0 : _q.errorCode,
|
|
57
|
-
fieldName: "bankAccountNumber",
|
|
58
50
|
}),
|
|
59
51
|
})))),
|
|
60
52
|
},
|
|
61
53
|
3: {
|
|
62
|
-
input: (h("sl-input", Object.assign({ required: true, label: props.text.ibanLabel, name: "/bankAccountNumber", id: "iban", key: "iban", type: "text", value: formState.bankAccountNumber }, (((
|
|
54
|
+
input: (h("sl-input", Object.assign({ required: true, label: props.text.ibanLabel, name: "/bankAccountNumber", id: "iban", key: "iban", type: "text", value: formState.bankAccountNumber }, (((_k = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _k === void 0 ? void 0 : _k.bankAccountNumber) && {
|
|
63
55
|
class: "error-input",
|
|
64
56
|
helpText: getValidationErrorMessage({
|
|
65
|
-
type: (
|
|
57
|
+
type: (_m = (_l = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _l === void 0 ? void 0 : _l.bankAccountNumber) === null || _m === void 0 ? void 0 : _m.type,
|
|
66
58
|
label: props.text.ibanLabel,
|
|
67
|
-
errorCode: (_v = (_u = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _u === void 0 ? void 0 : _u.bankAccountNumber) === null || _v === void 0 ? void 0 : _v.errorCode,
|
|
68
|
-
fieldName: "bankAccountNumber",
|
|
69
59
|
}),
|
|
70
60
|
})))),
|
|
71
61
|
},
|
|
72
62
|
4: {
|
|
73
|
-
input: (h("sl-input", Object.assign({ required: true, label: props.text.swiftCodeLabel, name: "/swiftCode", id: "swiftCode", key: "swiftCode", type: "text" }, (((
|
|
63
|
+
input: (h("sl-input", Object.assign({ required: true, label: props.text.swiftCodeLabel, name: "/swiftCode", id: "swiftCode", key: "swiftCode", type: "text" }, (((_o = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _o === void 0 ? void 0 : _o.swiftCode) && {
|
|
74
64
|
class: "error-input",
|
|
75
65
|
helpText: getValidationErrorMessage({
|
|
76
|
-
type: (
|
|
66
|
+
type: (_q = (_p = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _p === void 0 ? void 0 : _p.swiftCode) === null || _q === void 0 ? void 0 : _q.type,
|
|
77
67
|
label: props.text.swiftCodeLabel,
|
|
78
|
-
errorCode: (_0 = (_z = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _z === void 0 ? void 0 : _z.swiftCode) === null || _0 === void 0 ? void 0 : _0.errorCode,
|
|
79
|
-
fieldName: "swiftCode",
|
|
80
68
|
}),
|
|
81
69
|
})))),
|
|
82
70
|
},
|
|
@@ -86,41 +74,35 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
86
74
|
defaultMessage: props.text.routingCodeLabel,
|
|
87
75
|
}, {
|
|
88
76
|
bankCountry,
|
|
89
|
-
}), name: "/routingCode", id: "routingCode", key: "routingCode", type: "text" }, (((
|
|
77
|
+
}), name: "/routingCode", id: "routingCode", key: "routingCode", type: "text" }, (((_r = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _r === void 0 ? void 0 : _r.routingCode) && {
|
|
90
78
|
class: "error-input",
|
|
91
79
|
helpText: getValidationErrorMessage({
|
|
92
|
-
type: (
|
|
80
|
+
type: (_t = (_s = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _s === void 0 ? void 0 : _s.routingCode) === null || _t === void 0 ? void 0 : _t.type,
|
|
93
81
|
label: intl.formatMessage({
|
|
94
82
|
id: "routingCodeErrorText",
|
|
95
83
|
defaultMessage: props.text.routingCodeLabel,
|
|
96
84
|
}, {
|
|
97
85
|
bankCountry,
|
|
98
86
|
}),
|
|
99
|
-
errorCode: (_5 = (_4 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _4 === void 0 ? void 0 : _4.routingCode) === null || _5 === void 0 ? void 0 : _5.errorCode,
|
|
100
|
-
fieldName: "routingCode",
|
|
101
87
|
}),
|
|
102
88
|
})))),
|
|
103
89
|
},
|
|
104
90
|
6: {
|
|
105
|
-
input: (h("sl-input", Object.assign({ required: true, label: props.text.bankNameLabel, name: "/bankName", id: "bankName", key: "bankName", type: "text" }, (((
|
|
91
|
+
input: (h("sl-input", Object.assign({ required: true, label: props.text.bankNameLabel, name: "/bankName", id: "bankName", key: "bankName", type: "text" }, (((_u = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _u === void 0 ? void 0 : _u.bankName) && {
|
|
106
92
|
class: "error-input",
|
|
107
93
|
helpText: getValidationErrorMessage({
|
|
108
|
-
type: (
|
|
94
|
+
type: (_w = (_v = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _v === void 0 ? void 0 : _v.bankName) === null || _w === void 0 ? void 0 : _w.type,
|
|
109
95
|
label: props.text.bankNameLabel,
|
|
110
|
-
errorCode: (_10 = (_9 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _9 === void 0 ? void 0 : _9.bankName) === null || _10 === void 0 ? void 0 : _10.errorCode,
|
|
111
|
-
fieldName: "bankName",
|
|
112
96
|
}),
|
|
113
97
|
})))),
|
|
114
98
|
},
|
|
115
99
|
7: {
|
|
116
100
|
input: [
|
|
117
|
-
h("sl-select", Object.assign({ required: true, label: props.text.classificationLabel, name: "/beneficiaryClassification", id: "beneficiaryClassification", key: "beneficiaryClassification" }, (((
|
|
101
|
+
h("sl-select", Object.assign({ required: true, label: props.text.classificationLabel, name: "/beneficiaryClassification", id: "beneficiaryClassification", key: "beneficiaryClassification" }, (((_x = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _x === void 0 ? void 0 : _x.beneficiaryClassification) && {
|
|
118
102
|
class: "error-input",
|
|
119
103
|
helpText: getValidationErrorMessage({
|
|
120
|
-
type: (
|
|
104
|
+
type: (_z = (_y = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _y === void 0 ? void 0 : _y.beneficiaryClassification) === null || _z === void 0 ? void 0 : _z.type,
|
|
121
105
|
label: props.text.classificationLabel,
|
|
122
|
-
errorCode: (_15 = (_14 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _14 === void 0 ? void 0 : _14.beneficiaryClassification) === null || _15 === void 0 ? void 0 : _15.errorCode,
|
|
123
|
-
fieldName: "beneficiaryClassification",
|
|
124
106
|
}),
|
|
125
107
|
})),
|
|
126
108
|
h("sl-menu-item", { value: "BUSINESS" }, props.text.businessSelectItemLabel),
|
|
@@ -131,122 +113,100 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
131
113
|
defaultMessage: props.text.taxPayerIdLabel,
|
|
132
114
|
}, {
|
|
133
115
|
bankCountry,
|
|
134
|
-
}), type: "text", name: "/beneficiaryTaxPayerId", id: "beneficiaryTaxPayerId", key: "beneficiaryTaxPayerId" }, (((
|
|
116
|
+
}), type: "text", name: "/beneficiaryTaxPayerId", id: "beneficiaryTaxPayerId", key: "beneficiaryTaxPayerId" }, (((_0 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _0 === void 0 ? void 0 : _0.beneficiaryTaxPayerId) && {
|
|
135
117
|
class: "error-input",
|
|
136
118
|
helpText: getValidationErrorMessage({
|
|
137
|
-
type: (
|
|
119
|
+
type: (_2 = (_1 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _1 === void 0 ? void 0 : _1.beneficiaryTaxPayerId) === null || _2 === void 0 ? void 0 : _2.type,
|
|
138
120
|
label: props.text.taxPayerIdLabel,
|
|
139
|
-
errorCode: (_20 = (_19 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _19 === void 0 ? void 0 : _19.taxPayerId) === null || _20 === void 0 ? void 0 : _20.errorCode,
|
|
140
|
-
fieldName: "taxPayerId",
|
|
141
121
|
}),
|
|
142
122
|
}))),
|
|
143
123
|
],
|
|
144
124
|
},
|
|
145
125
|
8: {
|
|
146
|
-
input: (h("sl-select", Object.assign({ required: true, label: props.text.classificationCPFLabel, name: "/beneficiaryClassification", id: "beneficiaryClassification", key: "beneficiaryClassification" }, (((
|
|
126
|
+
input: (h("sl-select", Object.assign({ required: true, label: props.text.classificationCPFLabel, name: "/beneficiaryClassification", id: "beneficiaryClassification", key: "beneficiaryClassification" }, (((_3 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _3 === void 0 ? void 0 : _3.beneficiaryClassification) && {
|
|
147
127
|
class: "error-input",
|
|
148
128
|
helpText: getValidationErrorMessage({
|
|
149
|
-
type: (
|
|
129
|
+
type: (_5 = (_4 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _4 === void 0 ? void 0 : _4.beneficiaryClassification) === null || _5 === void 0 ? void 0 : _5.type,
|
|
150
130
|
label: props.text.classificationCPFLabel,
|
|
151
|
-
errorCode: (_25 = (_24 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _24 === void 0 ? void 0 : _24.beneficiaryClassification) === null || _25 === void 0 ? void 0 : _25.errorCode,
|
|
152
|
-
fieldName: "beneficiaryClassification",
|
|
153
131
|
}),
|
|
154
132
|
})),
|
|
155
133
|
h("sl-menu-item", { value: "CPF" }, "CPF"),
|
|
156
134
|
h("sl-menu-item", { value: "CNPJ" }, "CNPJ"))),
|
|
157
135
|
},
|
|
158
136
|
9: {
|
|
159
|
-
input: (h("sl-input", Object.assign({ key: "patronymicName", required: true, label: props.text.patronymicNameLabel, name: "/patronymicName", id: "patronymicName", type: "text" }, (((
|
|
137
|
+
input: (h("sl-input", Object.assign({ key: "patronymicName", required: true, label: props.text.patronymicNameLabel, name: "/patronymicName", id: "patronymicName", type: "text" }, (((_6 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _6 === void 0 ? void 0 : _6.patronymicName) && {
|
|
160
138
|
class: "error-input",
|
|
161
139
|
helpText: getValidationErrorMessage({
|
|
162
|
-
type: (
|
|
140
|
+
type: (_8 = (_7 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _7 === void 0 ? void 0 : _7.patronymicName) === null || _8 === void 0 ? void 0 : _8.type,
|
|
163
141
|
label: props.text.patronymicNameLabel,
|
|
164
|
-
errorCode: (_30 = (_29 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _29 === void 0 ? void 0 : _29.patronymicName) === null || _30 === void 0 ? void 0 : _30.errorCode,
|
|
165
|
-
fieldName: "patronymicName",
|
|
166
142
|
}),
|
|
167
143
|
})))),
|
|
168
144
|
},
|
|
169
145
|
10: {
|
|
170
|
-
input: (h("sl-input", Object.assign({ key: "voCode", label: props.text.voCodeLabel, name: "/voCode", id: "voCode", type: "text" }, (((
|
|
146
|
+
input: (h("sl-input", Object.assign({ key: "voCode", label: props.text.voCodeLabel, name: "/voCode", id: "voCode", type: "text" }, (((_9 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _9 === void 0 ? void 0 : _9.voCode) && {
|
|
171
147
|
class: "error-input",
|
|
172
148
|
helpText: getValidationErrorMessage({
|
|
173
|
-
type: (
|
|
149
|
+
type: (_11 = (_10 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _10 === void 0 ? void 0 : _10.voCode) === null || _11 === void 0 ? void 0 : _11.type,
|
|
174
150
|
label: props.text.voCodeLabel,
|
|
175
|
-
errorCode: (_35 = (_34 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _34 === void 0 ? void 0 : _34.voCode) === null || _35 === void 0 ? void 0 : _35.errorCode,
|
|
176
|
-
fieldName: "voCode",
|
|
177
151
|
}),
|
|
178
152
|
})))),
|
|
179
153
|
},
|
|
180
154
|
11: {
|
|
181
|
-
input: (h("sl-input", Object.assign({ required: true, label: props.text.agencyCodeLabel, name: "/agencyCode", id: "agencyCode", key: "agencyCode", type: "text" }, (((
|
|
155
|
+
input: (h("sl-input", Object.assign({ required: true, label: props.text.agencyCodeLabel, name: "/agencyCode", id: "agencyCode", key: "agencyCode", type: "text" }, (((_12 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _12 === void 0 ? void 0 : _12.agencyCode) && {
|
|
182
156
|
class: "error-input",
|
|
183
157
|
helpText: getValidationErrorMessage({
|
|
184
|
-
type: (
|
|
158
|
+
type: (_14 = (_13 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _13 === void 0 ? void 0 : _13.agencyCode) === null || _14 === void 0 ? void 0 : _14.type,
|
|
185
159
|
label: props.text.agencyCodeLabel,
|
|
186
|
-
errorCode: (_40 = (_39 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _39 === void 0 ? void 0 : _39.agencyCode) === null || _40 === void 0 ? void 0 : _40.errorCode,
|
|
187
|
-
fieldName: "agencyCode",
|
|
188
160
|
}),
|
|
189
161
|
})))),
|
|
190
162
|
},
|
|
191
163
|
12: {
|
|
192
164
|
input: [
|
|
193
|
-
h("sl-input", Object.assign({ required: true, label: props.text.bankAddressLabel, name: "/bankAddress", id: "bankAddress", key: "bankAddress", type: "text" }, (((
|
|
165
|
+
h("sl-input", Object.assign({ required: true, label: props.text.bankAddressLabel, name: "/bankAddress", id: "bankAddress", key: "bankAddress", type: "text" }, (((_15 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _15 === void 0 ? void 0 : _15.bankAddress) && {
|
|
194
166
|
class: "error-input",
|
|
195
167
|
helpText: getValidationErrorMessage({
|
|
196
|
-
type: (
|
|
168
|
+
type: (_17 = (_16 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _16 === void 0 ? void 0 : _16.bankAddress) === null || _17 === void 0 ? void 0 : _17.type,
|
|
197
169
|
label: props.text.bankAddressLabel,
|
|
198
|
-
errorCode: (_45 = (_44 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _44 === void 0 ? void 0 : _44.bankAddress) === null || _45 === void 0 ? void 0 : _45.errorCode,
|
|
199
|
-
fieldName: "bankAddress",
|
|
200
170
|
}),
|
|
201
171
|
}))),
|
|
202
|
-
h("sl-input", Object.assign({ required: true, label: props.text.bankCityLabel, name: "/bankCity", id: "bankCity", key: "bankCity", type: "text" }, (((
|
|
172
|
+
h("sl-input", Object.assign({ required: true, label: props.text.bankCityLabel, name: "/bankCity", id: "bankCity", key: "bankCity", type: "text" }, (((_18 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _18 === void 0 ? void 0 : _18.bankCity) && {
|
|
203
173
|
class: "error-input",
|
|
204
174
|
helpText: getValidationErrorMessage({
|
|
205
|
-
type: (
|
|
175
|
+
type: (_20 = (_19 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _19 === void 0 ? void 0 : _19.bankCity) === null || _20 === void 0 ? void 0 : _20.type,
|
|
206
176
|
label: props.text.bankCityLabel,
|
|
207
|
-
errorCode: (_50 = (_49 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _49 === void 0 ? void 0 : _49.bankCity) === null || _50 === void 0 ? void 0 : _50.errorCode,
|
|
208
|
-
fieldName: "bankCity",
|
|
209
177
|
}),
|
|
210
178
|
}))),
|
|
211
|
-
h("sl-input", Object.assign({ required: true, label: props.text.bankStateLabel, name: "/bankState", id: "bankState", key: "bankState", type: "text" }, (((
|
|
179
|
+
h("sl-input", Object.assign({ required: true, label: props.text.bankStateLabel, name: "/bankState", id: "bankState", key: "bankState", type: "text" }, (((_21 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _21 === void 0 ? void 0 : _21.bankState) && {
|
|
212
180
|
class: "error-input",
|
|
213
181
|
helpText: getValidationErrorMessage({
|
|
214
|
-
type: (
|
|
182
|
+
type: (_23 = (_22 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _22 === void 0 ? void 0 : _22.bankState) === null || _23 === void 0 ? void 0 : _23.type,
|
|
215
183
|
label: props.text.bankStateLabel,
|
|
216
|
-
errorCode: (_55 = (_54 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _54 === void 0 ? void 0 : _54.bankState) === null || _55 === void 0 ? void 0 : _55.errorCode,
|
|
217
|
-
fieldName: "bankState",
|
|
218
184
|
}),
|
|
219
185
|
}))),
|
|
220
|
-
h("sl-input", Object.assign({ required: true, label: props.text.bankPostalCodeLabel, name: "/bankPostalCode", id: "bankPostalCode", key: "bankPostalCode", type: "text" }, (((
|
|
186
|
+
h("sl-input", Object.assign({ required: true, label: props.text.bankPostalCodeLabel, name: "/bankPostalCode", id: "bankPostalCode", key: "bankPostalCode", type: "text" }, (((_24 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _24 === void 0 ? void 0 : _24.bankPostalCode) && {
|
|
221
187
|
class: "error-input",
|
|
222
188
|
helpText: getValidationErrorMessage({
|
|
223
|
-
type: (
|
|
189
|
+
type: (_26 = (_25 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _25 === void 0 ? void 0 : _25.bankPostalCode) === null || _26 === void 0 ? void 0 : _26.type,
|
|
224
190
|
label: props.text.bankPostalCodeLabel,
|
|
225
|
-
errorCode: (_60 = (_59 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _59 === void 0 ? void 0 : _59.bankPostalCode) === null || _60 === void 0 ? void 0 : _60.errorCode,
|
|
226
|
-
fieldName: "bankPostalCode",
|
|
227
191
|
}),
|
|
228
192
|
}))),
|
|
229
193
|
],
|
|
230
194
|
},
|
|
231
195
|
13: {
|
|
232
|
-
input: (h("sl-input", Object.assign({ required: true, label: props.text.branchCodeLabel, name: "/branchCode", id: "branchCode", key: "branchCode", type: "text" }, (((
|
|
196
|
+
input: (h("sl-input", Object.assign({ required: true, label: props.text.branchCodeLabel, name: "/branchCode", id: "branchCode", key: "branchCode", type: "text" }, (((_27 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _27 === void 0 ? void 0 : _27.branchCode) && {
|
|
233
197
|
class: "error-input",
|
|
234
198
|
helpText: getValidationErrorMessage({
|
|
235
|
-
type: (
|
|
199
|
+
type: (_29 = (_28 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _28 === void 0 ? void 0 : _28.branchCode) === null || _29 === void 0 ? void 0 : _29.type,
|
|
236
200
|
label: props.text.branchCodeLabel,
|
|
237
|
-
errorCode: (_65 = (_64 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _64 === void 0 ? void 0 : _64.branchCode) === null || _65 === void 0 ? void 0 : _65.errorCode,
|
|
238
|
-
fieldName: "branchCode",
|
|
239
201
|
}),
|
|
240
202
|
})))),
|
|
241
203
|
},
|
|
242
204
|
14: {
|
|
243
|
-
input: (h("sl-select", Object.assign({ required: true, label: props.text.classificationLabel, name: "/beneficiaryClassification", id: "beneficiaryClassification", key: "beneficiaryClassification" }, (((
|
|
205
|
+
input: (h("sl-select", Object.assign({ required: true, label: props.text.classificationLabel, name: "/beneficiaryClassification", id: "beneficiaryClassification", key: "beneficiaryClassification" }, (((_30 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _30 === void 0 ? void 0 : _30.beneficiaryClassification) && {
|
|
244
206
|
class: "error-input",
|
|
245
207
|
helpText: getValidationErrorMessage({
|
|
246
|
-
type: (
|
|
208
|
+
type: (_32 = (_31 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _31 === void 0 ? void 0 : _31.beneficiaryClassification) === null || _32 === void 0 ? void 0 : _32.type,
|
|
247
209
|
label: props.text.classificationLabel,
|
|
248
|
-
errorCode: (_70 = (_69 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _69 === void 0 ? void 0 : _69.beneficiaryClassification) === null || _70 === void 0 ? void 0 : _70.errorCode,
|
|
249
|
-
fieldName: "beneficiaryClassification",
|
|
250
210
|
}),
|
|
251
211
|
})),
|
|
252
212
|
h("sl-menu-item", { value: "BUSINESS" }, props.text.businessSelectItemLabel),
|
|
@@ -839,95 +799,6 @@ const paypalFeeMap = {
|
|
|
839
799
|
const ACH_PAYMENT_METHOD = 3;
|
|
840
800
|
const WIRE_PAYMENT_METHOD = 5;
|
|
841
801
|
const PAYPAL_PAYMENT_METHOD = 7;
|
|
842
|
-
/**
|
|
843
|
-
* Maps GraphQL validation error field names to form field names.
|
|
844
|
-
*/
|
|
845
|
-
const API_FIELD_TO_FORM_FIELD = {
|
|
846
|
-
// bankProvinceState → form uses bankState
|
|
847
|
-
bankProvinceState: "bankState",
|
|
848
|
-
};
|
|
849
|
-
/**
|
|
850
|
-
* Maps Impact API error code paths (from validationErrors[].errorPath) to short,
|
|
851
|
-
* readable frontend error codes used in the ICU select props.
|
|
852
|
-
*/
|
|
853
|
-
const API_ERROR_PATH_TO_FRONTEND = {
|
|
854
|
-
// Beneficiary account name
|
|
855
|
-
"withdrawal.settings.error.empty_beneficiaryname": "empty",
|
|
856
|
-
"withdrawal.settings.error.invalid_character_beneficiaryname": "invalidCharacters",
|
|
857
|
-
"withdrawal.settings.error.numeric_beneficiaryname": "numeric",
|
|
858
|
-
"withdrawal_settings.error.beneficiaryname.size": "tooLong",
|
|
859
|
-
"withdrawal.settings.error.non_english_beneficiaryname": "nonEnglish",
|
|
860
|
-
"withdrawal_settings.error.business_beneficiaryname_match": "businessNameMismatch",
|
|
861
|
-
"withdrawal_settings.error.beneficiaryname_match": "nameMismatch",
|
|
862
|
-
"withdrawal_settings.error.business_checkpayeename_match": "businessPayeeMismatch",
|
|
863
|
-
"withdrawal_settings.error.checkpayeename_match": "payeeMismatch",
|
|
864
|
-
// Bank account number
|
|
865
|
-
"withdrawal.settings.error.accountnumber.empty": "empty",
|
|
866
|
-
"withdrawal.settings.error.accountnumber.uk": "invalidUk",
|
|
867
|
-
"withdrawal.settings.error.bankaccount.invalid": "invalid",
|
|
868
|
-
// IBAN
|
|
869
|
-
"withdrawal.settings.error.iban": "ibanEmpty",
|
|
870
|
-
"withdrawal.settings.error.iban.alphanumeric": "ibanAlphanumeric",
|
|
871
|
-
"withdrawal.settings.error.iban.invalid": "ibanInvalid",
|
|
872
|
-
"withdrawal.settings.error.iban.uk.country.mismatch": "ibanCountryMismatch",
|
|
873
|
-
// Routing code
|
|
874
|
-
"withdrawal.settings.error.bsbNumber": "invalidBsb",
|
|
875
|
-
"withdrawal.settings.error.sortcode": "invalidSortCode",
|
|
876
|
-
"withdrawal.settings.error.routingNumber": "empty",
|
|
877
|
-
"withdrawal.settings.error.routingcode": "invalid",
|
|
878
|
-
// SWIFT / BIC
|
|
879
|
-
"withdrawal.settings.error.bic": "empty",
|
|
880
|
-
"withdrawal.settings.error.bic.alphanumeric": "alphanumeric",
|
|
881
|
-
"withdrawal.settings.error.bic.invalid": "invalid",
|
|
882
|
-
// Bank account type
|
|
883
|
-
"global.error.invalid.accounttype": "empty",
|
|
884
|
-
// Bank name
|
|
885
|
-
"withdrawal.settings.error.bankName": "empty",
|
|
886
|
-
// Tax payer ID
|
|
887
|
-
"withdrawal.settings.error.taxPayerId": "empty",
|
|
888
|
-
"withdrawal.settings.error.taxPayerId.ar": "emptyAr",
|
|
889
|
-
"withdrawal.settings.error.taxPayerId.kr": "emptyKr",
|
|
890
|
-
"withdrawal.settings.error.taxPayerId.alphanumeric": "alphanumeric",
|
|
891
|
-
"withdrawal.settings.error.taxPayerId.alphanumeric.ar": "alphanumericAr",
|
|
892
|
-
"withdrawal.settings.error.taxPayerId.alphanumeric.kr": "alphanumericKr",
|
|
893
|
-
"withdrawal.settings.error.taxPayerId.invalid": "invalid",
|
|
894
|
-
"withdrawal.settings.error.taxPayerId.invalid.ar": "invalidAr",
|
|
895
|
-
"withdrawal.settings.error.taxPayerId.invalid.kr": "invalidKr",
|
|
896
|
-
"withdrawal.settings.error.taxPayerId.invalid.kzt": "invalidKzt",
|
|
897
|
-
"withdrawal.settings.error.taxPayerId.cnpj": "cnpjTooShort",
|
|
898
|
-
"withdrawal.settings.error.taxPayerId.cpf": "cpfTooShort",
|
|
899
|
-
// Patronymic name
|
|
900
|
-
"withdrawal.settings.error.patronymicName": "empty",
|
|
901
|
-
"withdrawal.settings.error.patronymicName.alphanumeric": "alphanumeric",
|
|
902
|
-
// VO code
|
|
903
|
-
"withdrawal.settings.error.voCode": "empty",
|
|
904
|
-
"withdrawal.settings.error.voCode.alphanumeric": "alphanumeric",
|
|
905
|
-
// Agency code
|
|
906
|
-
"withdrawal.settings.error.agencyCode": "empty",
|
|
907
|
-
"withdrawal.settings.error.agencyCode.alphanumeric": "alphanumeric",
|
|
908
|
-
"withdrawal.settings.error.agencyCode.length": "tooShort",
|
|
909
|
-
// Bank address fields
|
|
910
|
-
"withdrawal.settings.error.bankAddress": "empty",
|
|
911
|
-
"withdrawal.settings.error.bankCity": "empty",
|
|
912
|
-
"withdrawal.settings.error.bankProvinceState": "empty",
|
|
913
|
-
"withdrawal.settings.error.bankPostalCode": "empty",
|
|
914
|
-
// Branch code / name
|
|
915
|
-
"withdrawal.settings.error.branchCode": "invalid",
|
|
916
|
-
"withdrawal.settings.error.branchName": "empty",
|
|
917
|
-
// Classification code
|
|
918
|
-
"withdrawal.settings.error.classificationCode.invalid": "empty",
|
|
919
|
-
"withdrawal.settings.error.classificationCode.invalid.kzt": "invalidKzt",
|
|
920
|
-
// PayPal
|
|
921
|
-
"payment.error.email": "empty",
|
|
922
|
-
"payment.error.paypal_not_supported": "unsupportedCurrency",
|
|
923
|
-
"payment.error.email.invalid": "invalidEmail",
|
|
924
|
-
"payment.error.paypal_verification_incomplete": "verificationIncomplete",
|
|
925
|
-
// Payment schedule
|
|
926
|
-
"payment.error.no_threshold": "empty",
|
|
927
|
-
"payment.error.invalid_threshold": "invalid",
|
|
928
|
-
"payment.error.no_dayOfMonth": "empty",
|
|
929
|
-
"payment.error.invalid_dayOfMonth": "invalid",
|
|
930
|
-
};
|
|
931
802
|
function getFormInputs({ bitset, formMap }) {
|
|
932
803
|
// Convert bitset to binary representation
|
|
933
804
|
const binary = bitset.toString(2).padStart(Object.keys(formMap).length, "0");
|
|
@@ -951,7 +822,6 @@ const SAVE_WITHDRAWAL_SETTINGS = dist.gql `
|
|
|
951
822
|
validationErrors {
|
|
952
823
|
field
|
|
953
824
|
message
|
|
954
|
-
code
|
|
955
825
|
}
|
|
956
826
|
}
|
|
957
827
|
}
|
|
@@ -967,7 +837,6 @@ const UPDATE_WITHDRAWAL_SETTINGS = dist.gql `
|
|
|
967
837
|
validationErrors {
|
|
968
838
|
field
|
|
969
839
|
message
|
|
970
|
-
code
|
|
971
840
|
}
|
|
972
841
|
}
|
|
973
842
|
}
|
|
@@ -1140,13 +1009,10 @@ function useBankingInfoForm(props) {
|
|
|
1140
1009
|
else if (!success) {
|
|
1141
1010
|
console.error("Validation failed: ", validationErrors);
|
|
1142
1011
|
const mappedValidationErrors = validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.reduce((agg, error) => {
|
|
1143
|
-
const formField = API_FIELD_TO_FORM_FIELD[error.field] || error.field;
|
|
1144
|
-
const errorCode = API_ERROR_PATH_TO_FRONTEND[error.errorPath] || error.errorPath;
|
|
1145
1012
|
return {
|
|
1146
1013
|
...agg,
|
|
1147
|
-
[
|
|
1014
|
+
[error.field]: {
|
|
1148
1015
|
type: "invalid",
|
|
1149
|
-
errorCode,
|
|
1150
1016
|
},
|
|
1151
1017
|
};
|
|
1152
1018
|
}, {});
|
|
@@ -1561,156 +1427,6 @@ const BankingInfoForm = class {
|
|
|
1561
1427
|
* @uiName Information modal button text
|
|
1562
1428
|
*/
|
|
1563
1429
|
this.modalButtonText = "I understand, update my information";
|
|
1564
|
-
// ──────────────────────────────────────────────────────────────────
|
|
1565
|
-
// Per-field validation error messages
|
|
1566
|
-
// Each prop uses ICU select on {errorCode} to pick the right message.
|
|
1567
|
-
// Error codes are short frontend keys mapped from the API error codes.
|
|
1568
|
-
// The `other` branch displays the raw API message directly via {errorCode},
|
|
1569
|
-
// which is already human-readable English (e.g. "Invalid Routing Code").
|
|
1570
|
-
// ──────────────────────────────────────────────────────────────────
|
|
1571
|
-
/**
|
|
1572
|
-
* Error messages for the beneficiary / account holder name field.
|
|
1573
|
-
* Supports error codes: empty, invalidCharacters, numeric, tooLong,
|
|
1574
|
-
* nonEnglish, businessNameMismatch, nameMismatch, businessPayeeMismatch, payeeMismatch
|
|
1575
|
-
* @uiName Beneficiary account name error
|
|
1576
|
-
* @uiWidget textArea
|
|
1577
|
-
*/
|
|
1578
|
-
this.beneficiaryAccountNameError = "{errorCode, select, empty {Account holder name is required} invalidCharacters {Account holder name contains invalid characters} numeric {Account holder name cannot be purely numeric} tooLong {Account holder name must be 70 characters or fewer} nonEnglish {Account holder name must contain only English characters for this currency} businessNameMismatch {Beneficiary name must match the name on your tax document} nameMismatch {Beneficiary name must match the name on your tax document} businessPayeeMismatch {Payee name must match the name on your tax document} payeeMismatch {Payee name must match the name on your tax document} other {{errorCode}}}";
|
|
1579
|
-
/**
|
|
1580
|
-
* Error messages for the bank account number / IBAN field.
|
|
1581
|
-
* Supports error codes: empty, invalidUk, invalid, ibanEmpty,
|
|
1582
|
-
* ibanAlphanumeric, ibanInvalid, ibanCountryMismatch
|
|
1583
|
-
* @uiName Bank account number / IBAN error
|
|
1584
|
-
* @uiWidget textArea
|
|
1585
|
-
*/
|
|
1586
|
-
this.bankAccountNumberError = "{errorCode, select, empty {Account number is required} invalidUk {Please enter a valid UK account number} invalid {Account number is invalid} ibanEmpty {IBAN is required} ibanAlphanumeric {IBAN must contain only letters and numbers} ibanInvalid {IBAN is invalid} ibanCountryMismatch {UK accounts must use an IBAN starting with GB} other {{errorCode}}}";
|
|
1587
|
-
/**
|
|
1588
|
-
* Error messages for the routing code / sort code / BSB field.
|
|
1589
|
-
* Supports error codes: invalidBsb, invalidSortCode, empty, invalid
|
|
1590
|
-
* @uiName Routing code error
|
|
1591
|
-
* @uiWidget textArea
|
|
1592
|
-
*/
|
|
1593
|
-
this.routingCodeError = "{errorCode, select, invalidBsb {Please enter a valid BSB number} invalidSortCode {Please enter a valid sort code} empty {Routing number is required} invalid {Routing number is invalid} other {{errorCode}}}";
|
|
1594
|
-
/**
|
|
1595
|
-
* Error messages for the SWIFT / BIC code field.
|
|
1596
|
-
* Supports error codes: empty, alphanumeric, invalid
|
|
1597
|
-
* @uiName SWIFT code error
|
|
1598
|
-
* @uiWidget textArea
|
|
1599
|
-
*/
|
|
1600
|
-
this.swiftCodeError = "{errorCode, select, empty {SWIFT/BIC code is required} alphanumeric {SWIFT/BIC code must contain only letters and numbers} invalid {SWIFT/BIC code is invalid} other {{errorCode}}}";
|
|
1601
|
-
/**
|
|
1602
|
-
* Error messages for the bank account type field.
|
|
1603
|
-
* Supports error codes: empty
|
|
1604
|
-
* @uiName Bank account type error
|
|
1605
|
-
* @uiWidget textArea
|
|
1606
|
-
*/
|
|
1607
|
-
this.bankAccountTypeError = "{errorCode, select, empty {Bank account type is required} other {{errorCode}}}";
|
|
1608
|
-
/**
|
|
1609
|
-
* Error messages for the bank name field.
|
|
1610
|
-
* Supports error codes: empty
|
|
1611
|
-
* @uiName Bank name error
|
|
1612
|
-
* @uiWidget textArea
|
|
1613
|
-
*/
|
|
1614
|
-
this.bankNameError = "{errorCode, select, empty {Bank name is required} other {{errorCode}}}";
|
|
1615
|
-
/**
|
|
1616
|
-
* Error messages for the tax payer ID / classification entity field.
|
|
1617
|
-
* Supports error codes: empty, emptyAr, emptyKr, alphanumeric, alphanumericAr,
|
|
1618
|
-
* alphanumericKr, invalid, invalidAr, invalidKr, invalidKzt, cnpjTooShort, cpfTooShort
|
|
1619
|
-
* @uiName Tax payer ID error
|
|
1620
|
-
* @uiWidget textArea
|
|
1621
|
-
*/
|
|
1622
|
-
this.taxPayerIdError = "{errorCode, select, empty {Tax payer ID is required} emptyAr {CUIT/CUIL is required} emptyKr {Classification ID is required} alphanumeric {Tax payer ID must contain only letters and numbers} alphanumericAr {CUIT/CUIL must contain only letters and numbers} alphanumericKr {Classification ID must contain only letters and numbers} invalid {Tax payer ID is invalid} invalidAr {CUIT/CUIL must be 11 characters} invalidKr {Classification ID length is invalid} invalidKzt {Tax payer ID must be 12 characters for KZT} cnpjTooShort {CNPJ must be at least 14 characters} cpfTooShort {CPF must be at least 11 characters} other {{errorCode}}}";
|
|
1623
|
-
/**
|
|
1624
|
-
* Error messages for the patronymic name field.
|
|
1625
|
-
* Supports error codes: empty, alphanumeric
|
|
1626
|
-
* @uiName Patronymic name error
|
|
1627
|
-
* @uiWidget textArea
|
|
1628
|
-
*/
|
|
1629
|
-
this.patronymicNameError = "{errorCode, select, empty {Patronymic name is required} alphanumeric {Patronymic name must contain only letters and numbers} other {{errorCode}}}";
|
|
1630
|
-
/**
|
|
1631
|
-
* Error messages for the VO code field.
|
|
1632
|
-
* Supports error codes: empty, alphanumeric
|
|
1633
|
-
* @uiName VO code error
|
|
1634
|
-
* @uiWidget textArea
|
|
1635
|
-
*/
|
|
1636
|
-
this.voCodeError = "{errorCode, select, empty {VO code is required} alphanumeric {VO code must contain only letters and numbers} other {{errorCode}}}";
|
|
1637
|
-
/**
|
|
1638
|
-
* Error messages for the agency code field.
|
|
1639
|
-
* Supports error codes: empty, alphanumeric, tooShort
|
|
1640
|
-
* @uiName Agency code error
|
|
1641
|
-
* @uiWidget textArea
|
|
1642
|
-
*/
|
|
1643
|
-
this.agencyCodeError = "{errorCode, select, empty {Agency code is required} alphanumeric {Agency code must contain only letters and numbers} tooShort {Agency code must be at least 5 characters} other {{errorCode}}}";
|
|
1644
|
-
/**
|
|
1645
|
-
* Error messages for the bank address field.
|
|
1646
|
-
* Supports error codes: empty
|
|
1647
|
-
* @uiName Bank address error
|
|
1648
|
-
* @uiWidget textArea
|
|
1649
|
-
*/
|
|
1650
|
-
this.bankAddressError = "{errorCode, select, empty {Bank address is required} other {{errorCode}}}";
|
|
1651
|
-
/**
|
|
1652
|
-
* Error messages for the bank city field.
|
|
1653
|
-
* Supports error codes: empty
|
|
1654
|
-
* @uiName Bank city error
|
|
1655
|
-
* @uiWidget textArea
|
|
1656
|
-
*/
|
|
1657
|
-
this.bankCityError = "{errorCode, select, empty {Bank city is required} other {{errorCode}}}";
|
|
1658
|
-
/**
|
|
1659
|
-
* Error messages for the bank province/state field.
|
|
1660
|
-
* Supports error codes: empty
|
|
1661
|
-
* @uiName Bank province/state error
|
|
1662
|
-
* @uiWidget textArea
|
|
1663
|
-
*/
|
|
1664
|
-
this.bankStateError = "{errorCode, select, empty {Bank province/state is required} other {{errorCode}}}";
|
|
1665
|
-
/**
|
|
1666
|
-
* Error messages for the bank postal code field.
|
|
1667
|
-
* Supports error codes: empty
|
|
1668
|
-
* @uiName Bank postal code error
|
|
1669
|
-
* @uiWidget textArea
|
|
1670
|
-
*/
|
|
1671
|
-
this.bankPostalCodeError = "{errorCode, select, empty {Bank postal code is required} other {{errorCode}}}";
|
|
1672
|
-
/**
|
|
1673
|
-
* Error messages for the branch code field.
|
|
1674
|
-
* Supports error codes: invalid
|
|
1675
|
-
* @uiName Branch code error
|
|
1676
|
-
* @uiWidget textArea
|
|
1677
|
-
*/
|
|
1678
|
-
this.branchCodeError = "{errorCode, select, invalid {Branch code is invalid} other {{errorCode}}}";
|
|
1679
|
-
/**
|
|
1680
|
-
* Error messages for the branch name field.
|
|
1681
|
-
* Supports error codes: empty
|
|
1682
|
-
* @uiName Branch name error
|
|
1683
|
-
* @uiWidget textArea
|
|
1684
|
-
*/
|
|
1685
|
-
this.branchNameError = "{errorCode, select, empty {Branch name is required} other {{errorCode}}}";
|
|
1686
|
-
/**
|
|
1687
|
-
* Error messages for the classification code field.
|
|
1688
|
-
* Supports error codes: empty, invalidKzt
|
|
1689
|
-
* @uiName Classification code error
|
|
1690
|
-
* @uiWidget textArea
|
|
1691
|
-
*/
|
|
1692
|
-
this.classificationCodeError = "{errorCode, select, empty {Classification code is required} invalidKzt {Classification code must be exactly 2 characters} other {{errorCode}}}";
|
|
1693
|
-
/**
|
|
1694
|
-
* Error messages for the PayPal email field.
|
|
1695
|
-
* Supports error codes: empty, unsupportedCurrency, invalidEmail, verificationIncomplete
|
|
1696
|
-
* @uiName PayPal email error
|
|
1697
|
-
* @uiWidget textArea
|
|
1698
|
-
*/
|
|
1699
|
-
this.paypalEmailError = "{errorCode, select, empty {PayPal email is required} unsupportedCurrency {PayPal is not supported for this currency} invalidEmail {Please enter a valid email address} verificationIncomplete {PayPal verification is not complete} other {{errorCode}}}";
|
|
1700
|
-
/**
|
|
1701
|
-
* Error messages for the payment threshold field.
|
|
1702
|
-
* Supports error codes: empty, invalid
|
|
1703
|
-
* @uiName Payment threshold error
|
|
1704
|
-
* @uiWidget textArea
|
|
1705
|
-
*/
|
|
1706
|
-
this.paymentThresholdError = "{errorCode, select, empty {Payment threshold is required} invalid {Payment threshold is invalid} other {{errorCode}}}";
|
|
1707
|
-
/**
|
|
1708
|
-
* Error messages for the payment day field.
|
|
1709
|
-
* Supports error codes: empty, invalid
|
|
1710
|
-
* @uiName Payment day error
|
|
1711
|
-
* @uiWidget textArea
|
|
1712
|
-
*/
|
|
1713
|
-
this.paymentDayError = "{errorCode, select, empty {Payment day is required} invalid {Payment day must be the 1st or the 15th} other {{errorCode}}}";
|
|
1714
1430
|
h$1(this);
|
|
1715
1431
|
}
|
|
1716
1432
|
disconnectedCallback() { }
|
|
@@ -1724,54 +1440,17 @@ const BankingInfoForm = class {
|
|
|
1724
1440
|
loadingErrorAlertDescription: props.loadingErrorAlertDescription,
|
|
1725
1441
|
loadingErrorAlertHeader: props.loadingErrorAlertHeader,
|
|
1726
1442
|
},
|
|
1727
|
-
errorMessages: {
|
|
1728
|
-
beneficiaryAccountName: props.beneficiaryAccountNameError,
|
|
1729
|
-
bankAccountNumber: props.bankAccountNumberError,
|
|
1730
|
-
routingCode: props.routingCodeError,
|
|
1731
|
-
swiftCode: props.swiftCodeError,
|
|
1732
|
-
bankAccountType: props.bankAccountTypeError,
|
|
1733
|
-
bankName: props.bankNameError,
|
|
1734
|
-
taxPayerId: props.taxPayerIdError,
|
|
1735
|
-
patronymicName: props.patronymicNameError,
|
|
1736
|
-
voCode: props.voCodeError,
|
|
1737
|
-
agencyCode: props.agencyCodeError,
|
|
1738
|
-
bankAddress: props.bankAddressError,
|
|
1739
|
-
bankCity: props.bankCityError,
|
|
1740
|
-
bankState: props.bankStateError,
|
|
1741
|
-
bankPostalCode: props.bankPostalCodeError,
|
|
1742
|
-
branchCode: props.branchCodeError,
|
|
1743
|
-
branchName: props.branchNameError,
|
|
1744
|
-
beneficiaryClassification: props.classificationCodeError,
|
|
1745
|
-
paypalEmailAddress: props.paypalEmailError,
|
|
1746
|
-
paymentThreshold: props.paymentThresholdError,
|
|
1747
|
-
paymentDay: props.paymentDayError,
|
|
1748
|
-
},
|
|
1749
1443
|
};
|
|
1750
1444
|
}
|
|
1751
1445
|
render() {
|
|
1752
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0
|
|
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;
|
|
1753
1447
|
const props = isDemo()
|
|
1754
1448
|
? useDemoBankingInfoForm(this)
|
|
1755
1449
|
: useBankingInfoForm(this);
|
|
1756
1450
|
const { errors } = props.states.formState;
|
|
1757
1451
|
const fieldRequiredError = this.fieldRequiredError;
|
|
1758
1452
|
const fieldInvalidError = this.fieldInvalidError;
|
|
1759
|
-
function getValidationErrorMessage({ type, label,
|
|
1760
|
-
var _a;
|
|
1761
|
-
// If we have a specific error code from the API, try to use
|
|
1762
|
-
// the per-field ICU error message template for a rich message
|
|
1763
|
-
if (type === "invalid" && errorCode && fieldName) {
|
|
1764
|
-
const errorTemplate = (_a = props.text.errorMessages) === null || _a === void 0 ? void 0 : _a[fieldName];
|
|
1765
|
-
if (errorTemplate) {
|
|
1766
|
-
return intl.formatMessage({
|
|
1767
|
-
id: `fieldError-${fieldName}-${errorCode}`,
|
|
1768
|
-
defaultMessage: errorTemplate,
|
|
1769
|
-
}, {
|
|
1770
|
-
errorCode,
|
|
1771
|
-
fieldName: label,
|
|
1772
|
-
});
|
|
1773
|
-
}
|
|
1774
|
-
}
|
|
1453
|
+
function getValidationErrorMessage({ type, label, }) {
|
|
1775
1454
|
if (type === "required") {
|
|
1776
1455
|
return intl.formatMessage({
|
|
1777
1456
|
id: `requiredText-${label}`,
|
|
@@ -1854,45 +1533,37 @@ const BankingInfoForm = class {
|
|
|
1854
1533
|
helpText: getValidationErrorMessage({
|
|
1855
1534
|
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,
|
|
1856
1535
|
label: props.text.bankLocationLabel,
|
|
1857
|
-
errorCode: (_e = (_d = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _d === void 0 ? void 0 : _d.bankCountry) === null || _e === void 0 ? void 0 : _e.errorCode,
|
|
1858
|
-
fieldName: "bankCountry",
|
|
1859
1536
|
}),
|
|
1860
1537
|
})), h("sl-input", { disabled: props.states.saveLoading, class: sheet.classes.SearchInput, placeholder: this.searchForCountryText, onKeyDown: (e) => {
|
|
1861
1538
|
// Stop shoelace intercepting key presses
|
|
1862
1539
|
e.stopPropagation();
|
|
1863
1540
|
}, "onSl-input": (e) => {
|
|
1864
1541
|
props.callbacks.setCountrySearch(e.target.value);
|
|
1865
|
-
} }), (
|
|
1866
|
-
|
|
1542
|
+
} }), (_d = props.states.countries) === null || _d === void 0 ? void 0 :
|
|
1543
|
+
_d.map((country) => {
|
|
1867
1544
|
return (h("sl-menu-item", { value: country.countryCode }, country.displayName));
|
|
1868
|
-
}), (
|
|
1869
|
-
|
|
1545
|
+
}), (_f = (_e = props.states) === null || _e === void 0 ? void 0 : _e.allCountries) === null || _f === void 0 ? void 0 :
|
|
1546
|
+
_f.map((c) => (h("sl-menu-item", { value: c.countryCode, style: { display: "none" } }, c.displayName))))),
|
|
1870
1547
|
paymentMethodSlot: (h("sl-input", { key: "paymentMethod", label: props.text.paymentMethod, placeholder: props.states.paymentMethodFeeLabel, disabled: true })),
|
|
1871
|
-
paymentThresholdSelectSlot: (h("sl-select", Object.assign({ required: true, disabled: props.states.saveLoading, label: props.text.paymentThresholdSelectLabel, name: "/paymentThreshold", id: "paymentThreshold", value: ((
|
|
1548
|
+
paymentThresholdSelectSlot: (h("sl-select", Object.assign({ required: true, disabled: props.states.saveLoading, label: props.text.paymentThresholdSelectLabel, name: "/paymentThreshold", id: "paymentThreshold", value: ((_h = (_g = props.states) === null || _g === void 0 ? void 0 : _g.formState) === null || _h === void 0 ? void 0 : _h.paymentThreshold) || "" }, (((_j = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _j === void 0 ? void 0 : _j.paymentThreshold) && {
|
|
1872
1549
|
class: "error-input",
|
|
1873
1550
|
helpText: getValidationErrorMessage({
|
|
1874
|
-
type: (
|
|
1551
|
+
type: (_l = (_k = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _k === void 0 ? void 0 : _k.paymentThreshold) === null || _l === void 0 ? void 0 : _l.type,
|
|
1875
1552
|
label: props.text.paymentThresholdSelectLabel,
|
|
1876
|
-
errorCode: (_q = (_p = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _p === void 0 ? void 0 : _p.paymentThreshold) === null || _q === void 0 ? void 0 : _q.errorCode,
|
|
1877
|
-
fieldName: "paymentThreshold",
|
|
1878
1553
|
}),
|
|
1879
1554
|
})), props.states.thresholds.map((t) => (h("sl-menu-item", { value: t }, `${props.states.currency}${t}`))))),
|
|
1880
|
-
paymentFixedDaySelectSlot: (h("sl-select", Object.assign({ required: true, disabled: props.states.saveLoading, label: props.text.paymentDaySelectLabel, value: ((
|
|
1555
|
+
paymentFixedDaySelectSlot: (h("sl-select", Object.assign({ required: true, disabled: props.states.saveLoading, label: props.text.paymentDaySelectLabel, value: ((_o = (_m = props.states) === null || _m === void 0 ? void 0 : _m.formState) === null || _o === void 0 ? void 0 : _o.paymentDay) || "", name: "/paymentDay", id: "paymentDay" }, (((_p = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _p === void 0 ? void 0 : _p.paymentDay) && {
|
|
1881
1556
|
class: "error-input",
|
|
1882
1557
|
helpText: getValidationErrorMessage({
|
|
1883
|
-
type: (
|
|
1558
|
+
type: (_r = (_q = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _q === void 0 ? void 0 : _q.paymentDay) === null || _r === void 0 ? void 0 : _r.type,
|
|
1884
1559
|
label: props.text.paymentDaySelectLabel,
|
|
1885
|
-
errorCode: (_x = (_w = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _w === void 0 ? void 0 : _w.paymentDay) === null || _x === void 0 ? void 0 : _x.errorCode,
|
|
1886
|
-
fieldName: "paymentDay",
|
|
1887
1560
|
}),
|
|
1888
1561
|
})), h("sl-menu-item", { value: "1" }, props.text.paymentDayFirstOfMonthLabelText), h("sl-menu-item", { value: "15" }, props.text.paymentDayFifteenthOfMonthLabelText))),
|
|
1889
|
-
paypalInputSlot: (h("sl-input", Object.assign({ required: true, disabled: props.states.saveLoading, value: ((
|
|
1562
|
+
paypalInputSlot: (h("sl-input", Object.assign({ required: true, disabled: props.states.saveLoading, value: ((_t = (_s = props.states) === null || _s === void 0 ? void 0 : _s.formState) === null || _t === void 0 ? void 0 : _t.paypalEmailAddress) || "", label: props.text.payPalInputLabel, key: "paypalEmailAddress", name: "/paypalEmailAddress", id: "paypalEmailAddress", type: "text" }, (((_w = (_v = (_u = props.states.formState) === null || _u === void 0 ? void 0 : _u.errors) === null || _v === void 0 ? void 0 : _v.inputErrors) === null || _w === void 0 ? void 0 : _w.paypalEmailAddress) && {
|
|
1890
1563
|
class: "error-input",
|
|
1891
1564
|
helpText: getValidationErrorMessage({
|
|
1892
|
-
type: (
|
|
1565
|
+
type: (_0 = (_z = (_y = (_x = props.states.formState) === null || _x === void 0 ? void 0 : _x.errors) === null || _y === void 0 ? void 0 : _y.inputErrors) === null || _z === void 0 ? void 0 : _z.paypalEmailAddress) === null || _0 === void 0 ? void 0 : _0.type,
|
|
1893
1566
|
label: props.text.payPalInputLabel,
|
|
1894
|
-
errorCode: (_10 = (_9 = (_8 = (_7 = props.states.formState) === null || _7 === void 0 ? void 0 : _7.errors) === null || _8 === void 0 ? void 0 : _8.inputErrors) === null || _9 === void 0 ? void 0 : _9.paypalEmailAddress) === null || _10 === void 0 ? void 0 : _10.errorCode,
|
|
1895
|
-
fieldName: "paypalEmailAddress",
|
|
1896
1567
|
}),
|
|
1897
1568
|
})))),
|
|
1898
1569
|
} })));
|
|
@@ -2868,32 +2539,6 @@ const CONNECT_PARTNER = dist.gql `
|
|
|
2868
2539
|
}
|
|
2869
2540
|
}
|
|
2870
2541
|
`;
|
|
2871
|
-
const COMPLETE_PARTNER = dist.gql `
|
|
2872
|
-
mutation completeImpactConnection($vars: ImpactConnectionInput!) {
|
|
2873
|
-
completeImpactConnection(impactConnectionInput: $vars) {
|
|
2874
|
-
success
|
|
2875
|
-
validationErrors {
|
|
2876
|
-
field
|
|
2877
|
-
message
|
|
2878
|
-
}
|
|
2879
|
-
user {
|
|
2880
|
-
id
|
|
2881
|
-
accountId
|
|
2882
|
-
impactConnection {
|
|
2883
|
-
connected
|
|
2884
|
-
publisher {
|
|
2885
|
-
brandedSignup
|
|
2886
|
-
requiredTaxDocumentType
|
|
2887
|
-
currentTaxDocument {
|
|
2888
|
-
type
|
|
2889
|
-
status
|
|
2890
|
-
}
|
|
2891
|
-
}
|
|
2892
|
-
}
|
|
2893
|
-
}
|
|
2894
|
-
}
|
|
2895
|
-
}
|
|
2896
|
-
`;
|
|
2897
2542
|
function getOption(countries, countryCode) {
|
|
2898
2543
|
if (!countries)
|
|
2899
2544
|
return;
|
|
@@ -2911,8 +2556,7 @@ function useIndirectTaxForm(props) {
|
|
|
2911
2556
|
const formRef = useRef(null);
|
|
2912
2557
|
const context = Fn(TAX_FORM_CONTEXT_NAMESPACE);
|
|
2913
2558
|
const [step, setStep] = Pn(TAX_CONTEXT_NAMESPACE);
|
|
2914
|
-
const [connectImpactPartner, { loading: connectLoading }] = $e(CONNECT_PARTNER);
|
|
2915
|
-
const [completeImpactPartner, { loading: completeLoading }] = $e(COMPLETE_PARTNER);
|
|
2559
|
+
const [connectImpactPartner, { loading: connectLoading, errors: connectErrors },] = $e(CONNECT_PARTNER);
|
|
2916
2560
|
const userForm = Fn(USER_FORM_CONTEXT_NAMESPACE);
|
|
2917
2561
|
const { data: userData, refetch, errors: userError, } = $n(USER_QUERY_NAMESPACE);
|
|
2918
2562
|
const { data: _countriesRes, loading: countriesLoading } = $n(COUNTRIES_QUERY_NAMESPACE);
|
|
@@ -2975,7 +2619,7 @@ function useIndirectTaxForm(props) {
|
|
|
2975
2619
|
setFormState((p) => ({ ...p, [field]: value }));
|
|
2976
2620
|
};
|
|
2977
2621
|
async function connectPartner(formData) {
|
|
2978
|
-
var _a, _b, _c, _d, _e
|
|
2622
|
+
var _a, _b, _c, _d, _e;
|
|
2979
2623
|
const vars = {
|
|
2980
2624
|
user: {
|
|
2981
2625
|
id: user.id,
|
|
@@ -2997,31 +2641,19 @@ function useIndirectTaxForm(props) {
|
|
|
2997
2641
|
additionalTaxId: formData.qstNumber,
|
|
2998
2642
|
withholdingTaxId: formData.subRegionTaxNumber,
|
|
2999
2643
|
};
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
if (((_b = (_a = userData === null || userData === void 0 ? void 0 : userData.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.connectionStatus) === "STARTED") {
|
|
3005
|
-
result = await completeImpactPartner({
|
|
3006
|
-
vars,
|
|
3007
|
-
});
|
|
3008
|
-
connectionResult = (_c = result) === null || _c === void 0 ? void 0 : _c.completeImpactConnection;
|
|
3009
|
-
}
|
|
3010
|
-
else {
|
|
3011
|
-
result = await connectImpactPartner({
|
|
3012
|
-
vars,
|
|
3013
|
-
});
|
|
3014
|
-
connectionResult = (_d = result) === null || _d === void 0 ? void 0 : _d.createImpactConnection;
|
|
3015
|
-
}
|
|
3016
|
-
if (!result || ((_e = result) === null || _e === void 0 ? void 0 : _e.message))
|
|
2644
|
+
const result = await connectImpactPartner({
|
|
2645
|
+
vars,
|
|
2646
|
+
});
|
|
2647
|
+
if (!result || ((_a = result) === null || _a === void 0 ? void 0 : _a.message))
|
|
3017
2648
|
throw new Error();
|
|
3018
|
-
if (!(
|
|
2649
|
+
if (!((_b = result.createImpactConnection) === null || _b === void 0 ? void 0 : _b.success)) {
|
|
3019
2650
|
// Output backend errors to console for now
|
|
3020
|
-
console.error("Failed to create Impact connection: ",
|
|
2651
|
+
console.error("Failed to create Impact connection: ", result.createImpactConnection.validationErrors);
|
|
3021
2652
|
throw new Error();
|
|
3022
2653
|
}
|
|
3023
2654
|
await refetch();
|
|
3024
|
-
const resultPublisher = (
|
|
2655
|
+
const resultPublisher = (_e = (_d = (_c = result
|
|
2656
|
+
.createImpactConnection) === null || _c === void 0 ? void 0 : _c.user) === null || _d === void 0 ? void 0 : _d.impactConnection) === null || _e === void 0 ? void 0 : _e.publisher;
|
|
3025
2657
|
const hasValidCurrentDocument = validTaxDocument(resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) && (resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.currentTaxDocument);
|
|
3026
2658
|
// Fire form change event
|
|
3027
2659
|
window.dispatchEvent(new Event(TAX_FORM_UPDATED_EVENT_KEY));
|
|
@@ -3087,8 +2719,8 @@ function useIndirectTaxForm(props) {
|
|
|
3087
2719
|
states: {
|
|
3088
2720
|
step: step === null || step === void 0 ? void 0 : step.replace("/", ""),
|
|
3089
2721
|
hideSteps: context.hideSteps,
|
|
3090
|
-
disabled: loading || countriesLoading || connectLoading
|
|
3091
|
-
loading: loading || connectLoading || countriesLoading
|
|
2722
|
+
disabled: loading || countriesLoading || connectLoading,
|
|
2723
|
+
loading: loading || connectLoading || countriesLoading,
|
|
3092
2724
|
isPartner: !!((_e = (_d = userData === null || userData === void 0 ? void 0 : userData.user) === null || _d === void 0 ? void 0 : _d.impactConnection) === null || _e === void 0 ? void 0 : _e.publisher),
|
|
3093
2725
|
loadingError: !!(userError === null || userError === void 0 ? void 0 : userError.message),
|
|
3094
2726
|
formState: {
|
|
@@ -3180,7 +2812,7 @@ const IndirectTaxForm = class {
|
|
|
3180
2812
|
/**
|
|
3181
2813
|
* @uiName Indirect tax number field label
|
|
3182
2814
|
*/
|
|
3183
|
-
this.indirectTaxNumber = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}}";
|
|
2815
|
+
this.indirectTaxNumber = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number} other {Tax number}}";
|
|
3184
2816
|
/**
|
|
3185
2817
|
* Displayed to participants registered for QST.
|
|
3186
2818
|
* @uiName QST number field label
|
|
@@ -3219,7 +2851,7 @@ const IndirectTaxForm = class {
|
|
|
3219
2851
|
/**
|
|
3220
2852
|
* @uiName Missing indirect tax number error message
|
|
3221
2853
|
*/
|
|
3222
|
-
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";
|
|
2854
|
+
this.indirectTaxNumberError = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number} other {Tax number}} is required";
|
|
3223
2855
|
/**
|
|
3224
2856
|
* Placeholder text displayed in the country search dropdown
|
|
3225
2857
|
* @uiName Country field placeholder text
|
|
@@ -4030,7 +3662,7 @@ const PayoutDetailsCard = class {
|
|
|
4030
3662
|
* Badge text indicating payout status
|
|
4031
3663
|
* @uiName Payout badge status text
|
|
4032
3664
|
*/
|
|
4033
|
-
this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
|
|
3665
|
+
this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} other {Failed}}";
|
|
4034
3666
|
/**
|
|
4035
3667
|
* Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
|
|
4036
3668
|
* @uiName Payout schedule by threshold text
|
|
@@ -5084,7 +4716,7 @@ const TaxAndCashDashboard = class {
|
|
|
5084
4716
|
/**
|
|
5085
4717
|
* @uiName Payout status badge
|
|
5086
4718
|
*/
|
|
5087
|
-
this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
|
|
4719
|
+
this.statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} other {Failed} }";
|
|
5088
4720
|
/**
|
|
5089
4721
|
* Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
|
|
5090
4722
|
* @uiName Payout schedule by threshold text
|
|
@@ -5400,8 +5032,7 @@ function useUserInfoForm(props) {
|
|
|
5400
5032
|
const [step, setStep] = Pn(TAX_CONTEXT_NAMESPACE);
|
|
5401
5033
|
const [userFormContext, setUserFormContext] = Pn(USER_FORM_CONTEXT_NAMESPACE);
|
|
5402
5034
|
const user = J();
|
|
5403
|
-
const [connectImpactPartner, { loading: connectLoading }] = $e(CONNECT_PARTNER);
|
|
5404
|
-
const [completeImpactPartner, { loading: completeLoading }] = $e(COMPLETE_PARTNER);
|
|
5035
|
+
const [connectImpactPartner, { loading: connectLoading, errors: connectErrors },] = $e(CONNECT_PARTNER);
|
|
5405
5036
|
const { data: tenantData } = wn(GET_INDIRECT_TAX_COUNTRY_CODE, {});
|
|
5406
5037
|
const { data, loading, refetch, errors: userError, } = $n(USER_QUERY_NAMESPACE);
|
|
5407
5038
|
const _currencies = Fn(CURRENCIES_NAMESPACE);
|
|
@@ -5436,13 +5067,8 @@ function useUserInfoForm(props) {
|
|
|
5436
5067
|
lastName: user.impactConnection.user.lastName,
|
|
5437
5068
|
countryCode: user.impactConnection.publisher.countryCode,
|
|
5438
5069
|
currency: user.impactConnection.publisher.currency,
|
|
5439
|
-
|
|
5440
|
-
|
|
5441
|
-
? null
|
|
5442
|
-
: user.impactConnection.publisher.phoneNumberCountryCode,
|
|
5443
|
-
phoneNumber: user.impactConnection.publisher.phoneNumber === "0000000"
|
|
5444
|
-
? null
|
|
5445
|
-
: user.impactConnection.publisher.phoneNumber,
|
|
5070
|
+
phoneNumberCountryCode: user.impactConnection.publisher.phoneNumberCountryCode,
|
|
5071
|
+
phoneNumber: user.impactConnection.publisher.phoneNumber,
|
|
5446
5072
|
address: user.impactConnection.publisher.billingAddress,
|
|
5447
5073
|
city: user.impactConnection.publisher.billingCity,
|
|
5448
5074
|
state: user.impactConnection.publisher.billingState,
|
|
@@ -5513,7 +5139,7 @@ function useUserInfoForm(props) {
|
|
|
5513
5139
|
}
|
|
5514
5140
|
}, [currencySearch, currencies]);
|
|
5515
5141
|
async function connectPartner(formData) {
|
|
5516
|
-
var _a, _b, _c, _d, _e
|
|
5142
|
+
var _a, _b, _c, _d, _e;
|
|
5517
5143
|
const vars = {
|
|
5518
5144
|
user: {
|
|
5519
5145
|
id: user.id,
|
|
@@ -5530,31 +5156,20 @@ function useUserInfoForm(props) {
|
|
|
5530
5156
|
phoneNumber: formData.phoneNumber,
|
|
5531
5157
|
phoneNumberCountryCode: formData.phoneNumberCountryCode,
|
|
5532
5158
|
};
|
|
5533
|
-
|
|
5534
|
-
|
|
5535
|
-
|
|
5536
|
-
|
|
5537
|
-
let connectionResult;
|
|
5538
|
-
if (((_a = userData === null || userData === void 0 ? void 0 : userData.impactConnection) === null || _a === void 0 ? void 0 : _a.connectionStatus) === "STARTED") {
|
|
5539
|
-
result = await completeImpactPartner({
|
|
5540
|
-
vars,
|
|
5541
|
-
});
|
|
5542
|
-
connectionResult = (_b = result) === null || _b === void 0 ? void 0 : _b.completeImpactConnection;
|
|
5543
|
-
}
|
|
5544
|
-
else {
|
|
5545
|
-
result = await connectImpactPartner({
|
|
5546
|
-
vars,
|
|
5547
|
-
});
|
|
5548
|
-
connectionResult = (_c = result) === null || _c === void 0 ? void 0 : _c.createImpactConnection;
|
|
5549
|
-
}
|
|
5550
|
-
if (!result || ((_d = result) === null || _d === void 0 ? void 0 : _d.message))
|
|
5159
|
+
const result = await connectImpactPartner({
|
|
5160
|
+
vars,
|
|
5161
|
+
});
|
|
5162
|
+
if (!result || ((_a = result) === null || _a === void 0 ? void 0 : _a.message))
|
|
5551
5163
|
throw new Error();
|
|
5552
|
-
if (!(
|
|
5553
|
-
|
|
5164
|
+
if (!((_b = result.createImpactConnection) === null || _b === void 0 ? void 0 : _b.success)) {
|
|
5165
|
+
// Output backend errors to console for now
|
|
5166
|
+
console.error("Failed to create Impact connection: ", result.createImpactConnection
|
|
5167
|
+
.validationErrors);
|
|
5554
5168
|
throw new Error();
|
|
5555
5169
|
}
|
|
5556
5170
|
await refetch();
|
|
5557
|
-
const resultPublisher = (
|
|
5171
|
+
const resultPublisher = (_e = (_d = (_c = result
|
|
5172
|
+
.createImpactConnection) === null || _c === void 0 ? void 0 : _c.user) === null || _d === void 0 ? void 0 : _d.impactConnection) === null || _e === void 0 ? void 0 : _e.publisher;
|
|
5558
5173
|
const hasValidCurrentDocument = validTaxDocument(resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) && (resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.currentTaxDocument);
|
|
5559
5174
|
// Fire form change event
|
|
5560
5175
|
window.dispatchEvent(new Event(TAX_FORM_UPDATED_EVENT_KEY));
|
|
@@ -5679,9 +5294,9 @@ function useUserInfoForm(props) {
|
|
|
5679
5294
|
step: step === null || step === void 0 ? void 0 : step.replace("/", ""),
|
|
5680
5295
|
hideState: !hasStates,
|
|
5681
5296
|
hideSteps: !!context.hideSteps,
|
|
5682
|
-
disabled: loading || connectLoading
|
|
5297
|
+
disabled: loading || connectLoading,
|
|
5683
5298
|
loadingError: !!(userError === null || userError === void 0 ? void 0 : userError.message),
|
|
5684
|
-
loading: loading || connectLoading
|
|
5299
|
+
loading: loading || connectLoading,
|
|
5685
5300
|
isPartner: !!((_g = (_f = data === null || data === void 0 ? void 0 : data.user) === null || _f === void 0 ? void 0 : _f.impactConnection) === null || _g === void 0 ? void 0 : _g.publisher),
|
|
5686
5301
|
isUser: !!((_j = (_h = data === null || data === void 0 ? void 0 : data.user) === null || _h === void 0 ? void 0 : _h.impactConnection) === null || _j === void 0 ? void 0 : _j.user),
|
|
5687
5302
|
formState: {
|
|
@@ -5744,6 +5359,10 @@ const TaxForm = class {
|
|
|
5744
5359
|
* @uiName Currency field label
|
|
5745
5360
|
*/
|
|
5746
5361
|
this.currency = "Currency";
|
|
5362
|
+
/**
|
|
5363
|
+
* @uiName Currency field help text
|
|
5364
|
+
*/
|
|
5365
|
+
this.currencyHelpText = "Choose your preferred payout currency";
|
|
5747
5366
|
/**
|
|
5748
5367
|
* @uiName Setup progress
|
|
5749
5368
|
*/
|