@saasquatch/mint-components 1.11.0-6 → 1.11.0-8
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-ba87315e.js → ShadowViewAddon-c3e91cee.js} +103 -79
- package/dist/cjs/{email-registration-view-5170d9f1.js → email-registration-view-248652bb.js} +1 -1
- package/dist/cjs/{global-0e1b8019.js → global-02e50f09.js} +12 -163
- package/dist/cjs/{index.module-2d82a984.js → index.module-df530553.js} +244 -1444
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{luxon-20eafbd9.js → luxon-05098e19.js} +1 -1
- package/dist/cjs/mint-components.cjs.js +4 -4
- package/dist/cjs/{mockRewardData-3c470512.js → mockRewardData-4258e067.js} +1 -1
- package/dist/cjs/{re-render-7744b75a.js → re-render-1976e05e.js} +5 -5
- package/dist/cjs/sqm-asset-card.cjs.entry.js +3 -3
- package/dist/cjs/sqm-banking-info-form_16.cjs.entry.js +535 -507
- package/dist/cjs/sqm-big-stat_38.cjs.entry.js +174 -134
- package/dist/cjs/sqm-close-button.cjs.entry.js +3 -3
- package/dist/cjs/sqm-context-router.cjs.entry.js +4 -4
- package/dist/cjs/sqm-empty_4.cjs.entry.js +14 -7
- package/dist/cjs/sqm-form-message.cjs.entry.js +2 -2
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +7 -7
- package/dist/cjs/sqm-header-logo.cjs.entry.js +2 -2
- package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +7 -7
- package/dist/cjs/{sqm-invoice-table-view-e75291d8.js → sqm-invoice-table-view-e3b03a00.js} +3 -2
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +11 -12
- package/dist/cjs/sqm-logout-current-user.cjs.entry.js +17 -19
- package/dist/cjs/{sqm-navigation-sidebar-item-view-34d8941e.js → sqm-navigation-sidebar-item-view-a125ec5f.js} +2 -2
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +5 -5
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +5 -5
- package/dist/cjs/sqm-password-field.cjs.entry.js +4 -4
- package/dist/cjs/sqm-popup-container.cjs.entry.js +6 -6
- package/dist/cjs/{sqm-portal-container-view-5fb2ad49.js → sqm-portal-container-view-990a85a3.js} +1 -1
- package/dist/cjs/{sqm-portal-email-verification-view-a056e53e.js → sqm-portal-email-verification-view-292b5bf4.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +10 -10
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +7 -7
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +4 -4
- package/dist/cjs/{sqm-portal-profile-view-c1753d1a.js → sqm-portal-profile-view-fde54e35.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +14 -15
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +7 -7
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +11 -12
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +9 -9
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +9 -10
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +16 -17
- package/dist/cjs/sqm-referred-registration.cjs.entry.js +7 -7
- package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +2 -2
- package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +4 -4
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +66 -67
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +226 -106
- package/dist/cjs/sqm-tab.cjs.entry.js +4 -4
- package/dist/cjs/sqm-tabs.cjs.entry.js +6 -6
- package/dist/cjs/sqm-text-span.cjs.entry.js +2 -2
- package/dist/cjs/{stencil-hooks.module-a5a04d8a.js → stencil-hooks.module-72742a0b.js} +4 -1
- package/dist/cjs/{useChildElements-079a23aa.js → useChildElements-e0d44916.js} +3 -3
- package/dist/cjs/{useInstantAccessRegistration-615a4dec.js → useInstantAccessRegistration-bbe746d1.js} +4 -4
- package/dist/cjs/{useReferralTable-034e8eb1.js → useReferralTable-a76adb0d.js} +19 -20
- package/dist/cjs/{useRegistrationFormState-cabaa291.js → useRegistrationFormState-876ed65d.js} +3 -3
- package/dist/cjs/{utilities-a4072d5b.js → utilities-cec9dd36.js} +2 -2
- package/dist/collection/components/sqm-card-feed/sqm-card-feed.js +1 -1
- package/dist/collection/components/sqm-empty/EmptyState.stories.js +1 -1
- package/dist/collection/components/sqm-image/sqm-image-view.js +1 -1
- package/dist/collection/components/sqm-image/sqm-image.js +20 -0
- package/dist/collection/components/sqm-leaderboard/Leaderboard.stories.js +130 -24
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +55 -29
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +93 -29
- package/dist/collection/components/sqm-leaderboard/useLeaderboard.js +40 -4
- package/dist/collection/components/sqm-logout-current-user/useLogoutCurrentUser.js +9 -10
- package/dist/collection/components/sqm-portal-container/PortalContainer.stories.js +19 -7
- package/dist/collection/components/sqm-portal-container/sqm-portal-container-view.js +1 -1
- package/dist/collection/components/sqm-portal-container/sqm-portal-container.js +37 -0
- package/dist/collection/components/sqm-portal-verify-email/PortalVerifyEmail.stories.js +0 -2
- package/dist/collection/components/sqm-portal-verify-email/sqm-portal-verify-email.js +2 -2
- package/dist/collection/components/sqm-portal-verify-email/usePortalVerifyEmail.js +0 -1
- package/dist/collection/components/sqm-referral-card/ReferralCard.stories.js +1 -1
- package/dist/collection/components/sqm-share-button/ShareButton.stories.js +1 -1
- package/dist/collection/components/sqm-share-button/sqm-share-button-view.js +1 -1
- package/dist/collection/components/sqm-share-button/sqm-share-button.js +2 -2
- package/dist/collection/components/sqm-task-card/UseTaskCard.stories.js +1 -1
- package/dist/collection/components/sqm-task-card/sqm-task-card.js +1 -1
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +2 -1
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.js +1 -4
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +2 -1
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +27 -2
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +4 -1
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +4 -7
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/data.js +13 -14
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +29 -0
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +55 -32
- package/dist/collection/components/views/email-registration-view.js +1 -1
- package/dist/collection/global/global.js +1 -1
- package/dist/collection/stories/NewPortal.stories.js +1 -1
- package/dist/esm/{ShadowViewAddon-cebdd86a.js → ShadowViewAddon-e012b2aa.js} +77 -53
- package/dist/esm/{email-registration-view-07d80492.js → email-registration-view-a89a88bf.js} +1 -1
- package/dist/esm/{global-ce667547.js → global-04c7d3b5.js} +12 -163
- package/dist/esm/{index.module-cfe48b0e.js → index.module-def4aec5.js} +223 -1426
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{luxon-63e24900.js → luxon-7600be8d.js} +1 -1
- package/dist/esm/mint-components.js +4 -4
- package/dist/esm/{mockRewardData-e6b763d1.js → mockRewardData-0eb6e778.js} +1 -1
- package/dist/esm/{re-render-9f58806b.js → re-render-12fd274a.js} +5 -5
- package/dist/esm/sqm-asset-card.entry.js +2 -2
- package/dist/esm/sqm-banking-info-form_16.entry.js +156 -128
- package/dist/esm/sqm-big-stat_38.entry.js +123 -83
- package/dist/esm/sqm-close-button.entry.js +2 -2
- package/dist/esm/sqm-context-router.entry.js +3 -3
- package/dist/esm/sqm-empty_4.entry.js +11 -4
- package/dist/esm/sqm-form-message.entry.js +1 -1
- package/dist/esm/sqm-graphql-client-provider.entry.js +6 -6
- package/dist/esm/sqm-header-logo.entry.js +1 -1
- package/dist/esm/sqm-instant-access-registration.entry.js +6 -6
- package/dist/esm/{sqm-invoice-table-view-bccf5bbc.js → sqm-invoice-table-view-6e13a323.js} +3 -2
- package/dist/esm/sqm-leaderboard-rank.entry.js +6 -7
- package/dist/esm/sqm-logout-current-user.entry.js +12 -14
- package/dist/esm/{sqm-navigation-sidebar-item-view-407d8d6a.js → sqm-navigation-sidebar-item-view-60ef06cc.js} +2 -2
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +4 -4
- package/dist/esm/sqm-navigation-sidebar.entry.js +4 -4
- package/dist/esm/sqm-password-field.entry.js +3 -3
- package/dist/esm/sqm-popup-container.entry.js +5 -5
- package/dist/esm/{sqm-portal-container-view-ab89c6cc.js → sqm-portal-container-view-6c582684.js} +1 -1
- package/dist/esm/{sqm-portal-email-verification-view-b8ba7573.js → sqm-portal-email-verification-view-4307c992.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +9 -9
- package/dist/esm/sqm-portal-forgot-password.entry.js +6 -6
- package/dist/esm/sqm-portal-logout.entry.js +3 -3
- package/dist/esm/{sqm-portal-profile-view-9cbfeaf9.js → sqm-portal-profile-view-ffe955c8.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +8 -9
- package/dist/esm/sqm-portal-protected-route.entry.js +6 -6
- package/dist/esm/sqm-portal-registration-form.entry.js +9 -10
- package/dist/esm/sqm-portal-reset-password.entry.js +8 -8
- package/dist/esm/sqm-portal-verify-email.entry.js +8 -9
- package/dist/esm/sqm-referral-table_11.entry.js +8 -9
- package/dist/esm/sqm-referred-registration.entry.js +6 -6
- package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +1 -1
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +3 -3
- package/dist/esm/sqm-rewards-table_9.entry.js +13 -14
- package/dist/esm/sqm-stencilbook.entry.js +224 -104
- package/dist/esm/sqm-tab.entry.js +3 -3
- package/dist/esm/sqm-tabs.entry.js +5 -5
- package/dist/esm/sqm-text-span.entry.js +1 -1
- package/dist/esm/{stencil-hooks.module-3c7f7c90.js → stencil-hooks.module-ac12ca1c.js} +1 -1
- package/dist/esm/{useChildElements-55ba77b1.js → useChildElements-32e1bda1.js} +3 -3
- package/dist/esm/{useInstantAccessRegistration-c8486b92.js → useInstantAccessRegistration-46b89952.js} +4 -4
- package/dist/esm/{useReferralTable-1671695f.js → useReferralTable-f4de0650.js} +10 -11
- package/dist/esm/{useRegistrationFormState-554eed2c.js → useRegistrationFormState-9fc1ac80.js} +3 -3
- package/dist/esm/{utilities-aa00400c.js → utilities-3f5bba22.js} +2 -2
- package/dist/esm-es5/ShadowViewAddon-e012b2aa.js +1 -0
- package/dist/esm-es5/email-registration-view-a89a88bf.js +1 -0
- package/dist/esm-es5/global-04c7d3b5.js +285 -0
- package/dist/esm-es5/index.module-def4aec5.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{luxon-63e24900.js → luxon-7600be8d.js} +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/{mockRewardData-e6b763d1.js → mockRewardData-0eb6e778.js} +1 -1
- package/dist/esm-es5/{re-render-9f58806b.js → re-render-12fd274a.js} +1 -1
- package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
- package/dist/esm-es5/sqm-banking-info-form_16.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_38.entry.js +1 -1
- package/dist/esm-es5/sqm-close-button.entry.js +1 -1
- package/dist/esm-es5/sqm-context-router.entry.js +1 -1
- package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
- package/dist/esm-es5/sqm-form-message.entry.js +1 -1
- package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm-es5/sqm-header-logo.entry.js +1 -1
- package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
- package/dist/esm-es5/sqm-invoice-table-view-6e13a323.js +1 -0
- 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-407d8d6a.js → sqm-navigation-sidebar-item-view-60ef06cc.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-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-6c582684.js +1 -0
- package/dist/esm-es5/{sqm-portal-email-verification-view-b8ba7573.js → sqm-portal-email-verification-view-4307c992.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-9cbfeaf9.js → sqm-portal-profile-view-ffe955c8.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.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-referred-registration.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.entry.js +1 -1
- package/dist/esm-es5/{stencil-hooks.module-3c7f7c90.js → stencil-hooks.module-ac12ca1c.js} +1 -1
- package/dist/esm-es5/useChildElements-32e1bda1.js +1 -0
- package/dist/esm-es5/useInstantAccessRegistration-46b89952.js +1 -0
- package/dist/esm-es5/useReferralTable-f4de0650.js +1 -0
- package/dist/esm-es5/useRegistrationFormState-9fc1ac80.js +1 -0
- package/dist/esm-es5/{utilities-aa00400c.js → utilities-3f5bba22.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-01cfff8a.system.entry.js +1 -0
- package/dist/mint-components/p-021a735d.entry.js +1 -0
- package/dist/mint-components/p-02424350.system.js +1 -0
- package/dist/mint-components/p-03494732.entry.js +1 -0
- package/dist/mint-components/{p-a2189daf.system.entry.js → p-07f675ab.system.entry.js} +1 -1
- package/dist/mint-components/p-0b9fa97f.js +1 -0
- package/dist/mint-components/{p-94b397d0.system.js → p-0d8c53ac.system.js} +1 -1
- package/dist/mint-components/{p-d491eac5.js → p-10685090.js} +24 -24
- package/dist/mint-components/p-10e89d0a.entry.js +1 -0
- package/dist/mint-components/{p-a05a21b8.entry.js → p-137ea86e.entry.js} +1 -1
- package/dist/mint-components/{p-cdd04337.entry.js → p-178d2d2e.entry.js} +1 -1
- package/dist/mint-components/p-1c857edb.entry.js +33 -0
- package/dist/mint-components/p-1dd69917.system.entry.js +1 -0
- package/dist/mint-components/{p-9223640e.js → p-251e7567.js} +1 -1
- package/dist/mint-components/{p-0979f82e.system.js → p-2a414b2e.system.js} +2 -2
- package/dist/mint-components/p-2dd67762.entry.js +1 -0
- package/dist/mint-components/{p-a2fc8ec6.js → p-2ee2ebba.js} +4 -4
- package/dist/mint-components/{p-3912f9af.entry.js → p-3223ba7b.entry.js} +1 -1
- package/dist/mint-components/p-32d1d162.entry.js +1 -0
- package/dist/mint-components/p-35d84041.system.entry.js +1 -0
- package/dist/mint-components/{p-cb45d0a8.system.js → p-370a1a73.system.js} +1 -1
- package/dist/mint-components/{p-69ae3f41.system.js → p-3d4656bb.system.js} +1 -1
- package/dist/mint-components/p-3ec16698.entry.js +13 -0
- package/dist/mint-components/p-3f385f47.entry.js +223 -0
- package/dist/mint-components/{p-83a759a6.js → p-41a11a7f.js} +1 -1
- package/dist/mint-components/p-44787d6e.system.js +1 -0
- package/dist/mint-components/{p-2669e88d.system.entry.js → p-4502ed11.system.entry.js} +1 -1
- package/dist/mint-components/{p-2a82e591.js → p-4d233cd4.js} +1 -1
- package/dist/mint-components/{p-8c616b35.system.js → p-4df8f1d2.system.js} +1 -1
- package/dist/mint-components/p-4ea58025.system.entry.js +1 -0
- package/dist/mint-components/{p-9a02b093.entry.js → p-4edde470.entry.js} +1 -1
- package/dist/mint-components/p-509e29e6.js +1 -0
- package/dist/mint-components/p-51f517a2.js +1 -0
- package/dist/mint-components/{p-709c0d6d.entry.js → p-56f14840.entry.js} +1 -1
- package/dist/mint-components/{p-2f75d0c6.system.entry.js → p-58ef25d3.system.entry.js} +1 -1
- package/dist/mint-components/{p-2c8c2ae9.system.js → p-59fe4ad1.system.js} +22 -22
- package/dist/mint-components/p-5b333fa8.system.entry.js +1 -0
- package/dist/mint-components/p-5be235f9.entry.js +1 -0
- package/dist/mint-components/{p-349315e6.system.entry.js → p-5cac90e8.system.entry.js} +1 -1
- package/dist/mint-components/{p-a56fbe1f.system.entry.js → p-5f1c4160.system.entry.js} +1 -1
- package/dist/mint-components/p-61eab172.js +1 -0
- package/dist/mint-components/{p-0034b33b.system.js → p-674a64fe.system.js} +1 -1
- package/dist/mint-components/{p-95af445c.system.entry.js → p-6afb4f48.system.entry.js} +1 -1
- package/dist/mint-components/{p-db7b9e12.entry.js → p-6cef104b.entry.js} +1 -1
- package/dist/mint-components/p-7049e9b0.entry.js +1 -0
- package/dist/mint-components/p-711ba77e.system.entry.js +1 -0
- package/dist/mint-components/p-733825fa.system.entry.js +1 -0
- package/dist/mint-components/p-76b2506e.system.entry.js +1 -0
- package/dist/mint-components/p-770368bc.system.js +1 -0
- package/dist/mint-components/{p-fd8496a0.system.entry.js → p-7731f793.system.entry.js} +1 -1
- package/dist/mint-components/p-79191f88.entry.js +1 -0
- package/dist/mint-components/{p-7a1e23b0.entry.js → p-7f088154.entry.js} +1 -1
- package/dist/mint-components/{p-5464dd3c.system.entry.js → p-8679ed9f.system.entry.js} +1 -1
- package/dist/mint-components/{p-747e6ce6.entry.js → p-86990110.entry.js} +1 -1
- package/dist/mint-components/p-8704937c.js +1248 -0
- package/dist/mint-components/{p-14beec1b.system.entry.js → p-88aac6a9.system.entry.js} +1 -1
- package/dist/mint-components/p-8b5b78ca.entry.js +1 -0
- package/dist/mint-components/{p-de9b0bcf.system.entry.js → p-8e907ac7.system.entry.js} +1 -1
- package/dist/mint-components/p-91669312.entry.js +1 -0
- package/dist/mint-components/p-95771f79.system.js +1 -0
- package/dist/mint-components/p-9c310991.system.entry.js +1 -0
- package/dist/mint-components/p-9df2fe24.entry.js +9 -0
- package/dist/mint-components/p-9f0629ba.system.entry.js +1 -0
- package/dist/mint-components/p-a1dba9a1.system.entry.js +1 -0
- package/dist/mint-components/p-a51533cb.system.js +1 -0
- package/dist/mint-components/p-a6a7dcaa.js +1 -0
- package/dist/mint-components/{p-ce23dbff.system.entry.js → p-a7c2ced2.system.entry.js} +1 -1
- package/dist/mint-components/p-a8f7cb95.js +1 -0
- package/dist/mint-components/{p-5f4a0d5a.entry.js → p-a9050eb0.entry.js} +1 -1
- package/dist/mint-components/p-aad11a68.entry.js +1 -0
- package/dist/mint-components/p-af062c8f.system.entry.js +1 -0
- package/dist/mint-components/{p-f0553edd.system.entry.js → p-afd366ae.system.entry.js} +1 -1
- package/dist/mint-components/p-b370fca8.system.js +1 -0
- package/dist/mint-components/p-b3b5b4b7.system.entry.js +1 -0
- package/dist/mint-components/{p-8b37f9fa.entry.js → p-b4c52c5a.entry.js} +3 -3
- package/dist/mint-components/p-b5861974.system.entry.js +1 -0
- package/dist/mint-components/{p-bf161aff.system.entry.js → p-b6fc1227.system.entry.js} +1 -1
- package/dist/mint-components/p-bb00db59.js +1 -0
- package/dist/mint-components/{p-74ba2bdd.system.entry.js → p-be4b748a.system.entry.js} +1 -1
- package/dist/mint-components/{p-e704842c.js → p-c7fd9e16.js} +1 -1
- package/dist/mint-components/p-c84659a3.system.js +1 -0
- package/dist/mint-components/p-c8878e79.entry.js +1 -0
- package/dist/mint-components/{p-4baf9ec9.entry.js → p-ce5afa40.entry.js} +1 -1
- package/dist/mint-components/{p-8d2d99b5.js → p-ce621bcc.js} +1 -1
- package/dist/mint-components/{p-e5299352.system.js → p-ce9e7c98.system.js} +1 -1
- package/dist/mint-components/{p-ad218d0b.system.entry.js → p-cf690d55.system.entry.js} +1 -1
- package/dist/mint-components/p-d495896f.system.entry.js +1 -0
- package/dist/mint-components/p-d8d2de11.entry.js +1 -0
- package/dist/mint-components/{p-5c602e84.entry.js → p-dd0d79bf.entry.js} +1 -1
- package/dist/mint-components/{p-553a92e2.system.js → p-dd7ee007.system.js} +1 -1
- package/dist/mint-components/p-e3735866.entry.js +11 -0
- package/dist/mint-components/p-e5a0c50e.entry.js +13 -0
- package/dist/mint-components/{p-92990ceb.js → p-eaada4da.js} +1 -1
- package/dist/mint-components/p-eba44835.system.entry.js +1 -0
- package/dist/mint-components/p-ec41d6a4.entry.js +174 -0
- package/dist/mint-components/{p-cc24f7e0.system.js → p-ed095674.system.js} +1 -1
- package/dist/mint-components/p-ed17e637.system.js +1 -0
- package/dist/mint-components/p-ed6ebd60.system.js +1 -0
- package/dist/mint-components/{p-7ab14d4b.system.entry.js → p-f0806232.system.entry.js} +1 -1
- package/dist/mint-components/{p-48704504.js → p-f3053c61.js} +1 -1
- package/dist/mint-components/{p-cfc4a126.system.entry.js → p-fb20eb5e.system.entry.js} +1 -1
- package/dist/mint-components/{p-79097c07.entry.js → p-fbdf0738.entry.js} +1 -1
- package/dist/mint-components/{p-1b24bb52.js → p-fd2c5407.js} +1 -1
- package/dist/types/components/sqm-card-feed/sqm-card-feed.d.ts +1 -1
- package/dist/types/components/sqm-image/sqm-image-view.d.ts +1 -0
- package/dist/types/components/sqm-image/sqm-image.d.ts +5 -0
- package/dist/types/components/sqm-leaderboard/Leaderboard.stories.d.ts +5 -1
- package/dist/types/components/sqm-leaderboard/sqm-leaderboard-view.d.ts +6 -4
- package/dist/types/components/sqm-leaderboard/sqm-leaderboard.d.ts +23 -6
- package/dist/types/components/sqm-leaderboard/useLeaderboard.d.ts +4 -2
- package/dist/types/components/sqm-portal-container/PortalContainer.stories.d.ts +1 -0
- package/dist/types/components/sqm-portal-container/sqm-portal-container-view.d.ts +1 -0
- package/dist/types/components/sqm-portal-container/sqm-portal-container.d.ts +7 -0
- package/dist/types/components/sqm-portal-verify-email/sqm-portal-verify-email-view.d.ts +0 -1
- package/dist/types/components/sqm-portal-verify-email/usePortalVerifyEmail.d.ts +0 -1
- package/dist/types/components/sqm-share-button/sqm-share-button.d.ts +2 -2
- package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.d.ts +0 -1
- package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.d.ts +3 -0
- package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.d.ts +5 -0
- package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +3 -2
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +5 -0
- package/dist/types/components.d.ts +86 -14
- package/dist/types/saasquatch.d.ts +1 -1
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +2 -2
- package/dist/cjs/index-56d1fa5b.js +0 -2227
- package/dist/esm/index-0c7b14c5.js +0 -2225
- package/dist/esm-es5/ShadowViewAddon-cebdd86a.js +0 -1
- package/dist/esm-es5/email-registration-view-07d80492.js +0 -1
- package/dist/esm-es5/global-ce667547.js +0 -285
- package/dist/esm-es5/index-0c7b14c5.js +0 -1
- package/dist/esm-es5/index.module-cfe48b0e.js +0 -53
- package/dist/esm-es5/sqm-invoice-table-view-bccf5bbc.js +0 -1
- package/dist/esm-es5/sqm-portal-container-view-ab89c6cc.js +0 -1
- package/dist/esm-es5/useChildElements-55ba77b1.js +0 -1
- package/dist/esm-es5/useInstantAccessRegistration-c8486b92.js +0 -1
- package/dist/esm-es5/useReferralTable-1671695f.js +0 -1
- package/dist/esm-es5/useRegistrationFormState-554eed2c.js +0 -1
- package/dist/mint-components/p-10036f16.js +0 -1
- package/dist/mint-components/p-1128f16d.entry.js +0 -187
- package/dist/mint-components/p-155e5795.entry.js +0 -1
- package/dist/mint-components/p-175cf117.system.entry.js +0 -1
- package/dist/mint-components/p-1bb39bf3.js +0 -1
- package/dist/mint-components/p-1c021084.system.js +0 -1
- package/dist/mint-components/p-1cb0c56c.js +0 -1
- package/dist/mint-components/p-22082cf5.entry.js +0 -1
- package/dist/mint-components/p-2c1ec58d.system.entry.js +0 -1
- package/dist/mint-components/p-2d713a4a.entry.js +0 -1
- package/dist/mint-components/p-37518555.system.entry.js +0 -1
- package/dist/mint-components/p-4e5ff6d5.system.entry.js +0 -1
- package/dist/mint-components/p-4fd5cde2.entry.js +0 -1
- package/dist/mint-components/p-55ba5de4.js +0 -42
- package/dist/mint-components/p-569acf5d.entry.js +0 -1
- package/dist/mint-components/p-58151230.system.entry.js +0 -1
- package/dist/mint-components/p-5a9e6c23.system.js +0 -1
- package/dist/mint-components/p-5e346208.system.entry.js +0 -1
- package/dist/mint-components/p-5f4cf5f4.system.js +0 -53
- package/dist/mint-components/p-6361cd09.system.entry.js +0 -1
- package/dist/mint-components/p-65976f70.system.entry.js +0 -1
- package/dist/mint-components/p-6bf41e0d.system.js +0 -1
- package/dist/mint-components/p-6fbfd683.js +0 -1
- package/dist/mint-components/p-77150ca3.entry.js +0 -1
- package/dist/mint-components/p-81ef4d8d.system.entry.js +0 -1
- package/dist/mint-components/p-84a5feb6.js +0 -1
- package/dist/mint-components/p-858a87ce.entry.js +0 -1
- package/dist/mint-components/p-89669879.system.js +0 -1
- package/dist/mint-components/p-8a82d287.entry.js +0 -1
- package/dist/mint-components/p-8d0312ad.entry.js +0 -13
- package/dist/mint-components/p-922578e4.system.js +0 -1
- package/dist/mint-components/p-93c4b92a.system.js +0 -1
- package/dist/mint-components/p-93feb565.system.entry.js +0 -1
- package/dist/mint-components/p-97f9ea19.system.js +0 -1
- package/dist/mint-components/p-9c1011db.entry.js +0 -9
- package/dist/mint-components/p-a1dddd9c.entry.js +0 -1
- package/dist/mint-components/p-a230e0f7.entry.js +0 -1
- package/dist/mint-components/p-a63607fe.js +0 -1
- package/dist/mint-components/p-a6ad8082.system.js +0 -1
- package/dist/mint-components/p-a7e84030.js +0 -1248
- package/dist/mint-components/p-aa1750ad.js +0 -1
- package/dist/mint-components/p-b9e629c4.entry.js +0 -1
- package/dist/mint-components/p-ba9642a9.entry.js +0 -33
- package/dist/mint-components/p-cac64545.system.entry.js +0 -1
- package/dist/mint-components/p-cc2a5934.entry.js +0 -13
- package/dist/mint-components/p-cca80c2e.system.entry.js +0 -1
- package/dist/mint-components/p-cf8ccbf5.entry.js +0 -1
- package/dist/mint-components/p-d5e0b017.entry.js +0 -9
- package/dist/mint-components/p-dbb74fc2.system.entry.js +0 -1
- package/dist/mint-components/p-e3ddb67b.system.entry.js +0 -1
- package/dist/mint-components/p-eb8cb617.system.js +0 -1
- package/dist/mint-components/p-ec2390ee.entry.js +0 -175
- package/dist/mint-components/p-ef4336c4.system.entry.js +0 -1
- package/dist/mint-components/p-fec47694.entry.js +0 -1
- package/dist/mint-components/p-ff87ca9c.system.entry.js +0 -1
|
@@ -2,22 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index
|
|
6
|
-
const stencilHooks_module = require('./stencil-hooks.module-
|
|
7
|
-
const global = require('./global-
|
|
8
|
-
const index_module = require('./index.module-
|
|
5
|
+
const index = require('./index-b0129cd6.js');
|
|
6
|
+
const stencilHooks_module = require('./stencil-hooks.module-72742a0b.js');
|
|
7
|
+
const global = require('./global-02e50f09.js');
|
|
8
|
+
const index_module = require('./index.module-df530553.js');
|
|
9
|
+
const jsonpointer = require('./jsonpointer-11327262.js');
|
|
9
10
|
const cjs = require('./cjs-1066ec21.js');
|
|
10
11
|
require('./mixins-fe9d4112.js');
|
|
11
12
|
const JSS = require('./JSS-8503a151.js');
|
|
12
13
|
const GenericTableView = require('./GenericTableView-80d7642e.js');
|
|
13
|
-
const reRender = require('./re-render-
|
|
14
|
-
const useChildElements = require('./useChildElements-
|
|
15
|
-
const luxon = require('./luxon-
|
|
16
|
-
const
|
|
17
|
-
const useReferralTable = require('./useReferralTable-034e8eb1.js');
|
|
14
|
+
const reRender = require('./re-render-1976e05e.js');
|
|
15
|
+
const useChildElements = require('./useChildElements-e0d44916.js');
|
|
16
|
+
const luxon = require('./luxon-05098e19.js');
|
|
17
|
+
const useReferralTable = require('./useReferralTable-a76adb0d.js');
|
|
18
18
|
const utils = require('./utils-6847bc06.js');
|
|
19
|
-
const
|
|
20
|
-
const sqmInvoiceTableView = require('./sqm-invoice-table-view-e75291d8.js');
|
|
19
|
+
const sqmInvoiceTableView = require('./sqm-invoice-table-view-e3b03a00.js');
|
|
21
20
|
|
|
22
21
|
const TAX_CONTEXT_NAMESPACE = "sq:tax-and-cash";
|
|
23
22
|
const TAX_FORM_CONTEXT_NAMESPACE = "sq:tax-form-context";
|
|
@@ -29,7 +28,7 @@ const SORTED_COUNTRIES_NAMESPACE = "sq:countries:sorted";
|
|
|
29
28
|
const COUNTRIES_QUERY_NAMESPACE = "sq:countries:query";
|
|
30
29
|
const CURRENCIES_NAMESPACE = "sq:currencies:list";
|
|
31
30
|
const CURRENCIES_QUERY_NAMESPACE = "sq:currencies:query";
|
|
32
|
-
const GET_USER =
|
|
31
|
+
const GET_USER = index_module.dist.gql `
|
|
33
32
|
query getUserTaxInfo {
|
|
34
33
|
user: viewer {
|
|
35
34
|
... on User {
|
|
@@ -70,27 +69,26 @@ const GET_USER = index.dist.gql `
|
|
|
70
69
|
type
|
|
71
70
|
dateCreated
|
|
72
71
|
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
# }
|
|
72
|
+
withdrawalSettings {
|
|
73
|
+
paymentMethod
|
|
74
|
+
paypalEmailAddress
|
|
75
|
+
bankCountry
|
|
76
|
+
bankAccountNumber
|
|
77
|
+
paymentSchedulingType
|
|
78
|
+
paymentThreshold
|
|
79
|
+
paymentDay
|
|
80
|
+
}
|
|
81
|
+
payoutsAccount {
|
|
82
|
+
hold
|
|
83
|
+
balance
|
|
84
|
+
}
|
|
87
85
|
}
|
|
88
86
|
}
|
|
89
87
|
}
|
|
90
88
|
}
|
|
91
89
|
}
|
|
92
90
|
`;
|
|
93
|
-
const GET_COUNTRIES =
|
|
91
|
+
const GET_COUNTRIES = index_module.dist.gql `
|
|
94
92
|
query getCountries {
|
|
95
93
|
impactPayoutCountries(limit: 1000) {
|
|
96
94
|
data {
|
|
@@ -100,7 +98,7 @@ const GET_COUNTRIES = index.dist.gql `
|
|
|
100
98
|
}
|
|
101
99
|
}
|
|
102
100
|
`;
|
|
103
|
-
const GET_CURRENCIES =
|
|
101
|
+
const GET_CURRENCIES = index_module.dist.gql `
|
|
104
102
|
query currencies($locale: RSLocale) {
|
|
105
103
|
currencies(limit: 300) {
|
|
106
104
|
data {
|
|
@@ -110,7 +108,7 @@ const GET_CURRENCIES = index.dist.gql `
|
|
|
110
108
|
}
|
|
111
109
|
}
|
|
112
110
|
`;
|
|
113
|
-
const GET_FINANCE_NETWORK_SETTINGS =
|
|
111
|
+
const GET_FINANCE_NETWORK_SETTINGS = index_module.dist.gql `
|
|
114
112
|
query impactFinanceNetworkSettings(
|
|
115
113
|
$filter: ImpactFinanceNetworkSettingsFilterInput
|
|
116
114
|
) {
|
|
@@ -136,7 +134,7 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
136
134
|
const { errors, ...formState } = props.states.formState;
|
|
137
135
|
return {
|
|
138
136
|
0: {
|
|
139
|
-
input: (index
|
|
137
|
+
input: (index.h("sl-input", Object.assign({ required: true, label: props.text.beneficiaryAccountNameLabel, name: "/beneficiaryAccountName", id: "beneficiaryAccountName", key: "beneficiaryAccountName", type: "text" }, (((_a = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _a === void 0 ? void 0 : _a.beneficiaryAccountName) && {
|
|
140
138
|
class: "error-input",
|
|
141
139
|
helpText: getValidationErrorMessage({
|
|
142
140
|
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,
|
|
@@ -145,18 +143,18 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
145
143
|
})))),
|
|
146
144
|
},
|
|
147
145
|
1: {
|
|
148
|
-
input: (index
|
|
146
|
+
input: (index.h("sl-select", Object.assign({ required: true, label: props.text.bankAccountTypeLabel, name: "/bankAccountType", id: "bankAccountType", key: "bankAccountType" }, (((_d = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _d === void 0 ? void 0 : _d.bankAccountType) && {
|
|
149
147
|
class: "error-input",
|
|
150
148
|
helpText: getValidationErrorMessage({
|
|
151
149
|
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,
|
|
152
150
|
label: props.text.bankAccountTypeLabel,
|
|
153
151
|
}),
|
|
154
152
|
})),
|
|
155
|
-
index
|
|
156
|
-
index
|
|
153
|
+
index.h("sl-menu-item", { value: "CHECKING" }, props.text.checkingSelectItemLabel),
|
|
154
|
+
index.h("sl-menu-item", { value: "SAVINGS" }, props.text.savingsSelectItemLabel))),
|
|
157
155
|
},
|
|
158
156
|
2: {
|
|
159
|
-
input: (index
|
|
157
|
+
input: (index.h("sl-input", Object.assign({ required: true, label: props.text.bankAccountNumberLabel, name: "/bankAccountNumber", id: "bankAccountNumber", key: "bankAccountNumber", value: formState.bankAccountNumber, type: "text" }, (((_g = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _g === void 0 ? void 0 : _g.bankAccountNumber) && {
|
|
160
158
|
class: "error-input",
|
|
161
159
|
helpText: getValidationErrorMessage({
|
|
162
160
|
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,
|
|
@@ -165,7 +163,7 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
165
163
|
})))),
|
|
166
164
|
},
|
|
167
165
|
3: {
|
|
168
|
-
input: (index
|
|
166
|
+
input: (index.h("sl-input", Object.assign({ required: true, label: props.text.ibanLabel, name: "/bankAccountNumber", id: "iban", key: "iban", type: "text", value: formState.bankAccountNumber }, (((_k = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _k === void 0 ? void 0 : _k.bankAccountNumber) && {
|
|
169
167
|
class: "error-input",
|
|
170
168
|
helpText: getValidationErrorMessage({
|
|
171
169
|
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,
|
|
@@ -174,7 +172,7 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
174
172
|
})))),
|
|
175
173
|
},
|
|
176
174
|
4: {
|
|
177
|
-
input: (index
|
|
175
|
+
input: (index.h("sl-input", Object.assign({ required: true, label: props.text.swiftCodeLabel, name: "/swiftCode", id: "swiftCode", key: "swiftCode", type: "text" }, (((_o = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _o === void 0 ? void 0 : _o.swiftCode) && {
|
|
178
176
|
class: "error-input",
|
|
179
177
|
helpText: getValidationErrorMessage({
|
|
180
178
|
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,
|
|
@@ -183,7 +181,7 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
183
181
|
})))),
|
|
184
182
|
},
|
|
185
183
|
5: {
|
|
186
|
-
input: (index
|
|
184
|
+
input: (index.h("sl-input", Object.assign({ required: true, label: global.intl.formatMessage({
|
|
187
185
|
id: "routingCodeText",
|
|
188
186
|
defaultMessage: props.text.routingCodeLabel,
|
|
189
187
|
}, {
|
|
@@ -202,7 +200,7 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
202
200
|
})))),
|
|
203
201
|
},
|
|
204
202
|
6: {
|
|
205
|
-
input: (index
|
|
203
|
+
input: (index.h("sl-input", Object.assign({ required: true, label: props.text.bankNameLabel, name: "/bankName", id: "bankName", key: "bankName", type: "text" }, (((_u = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _u === void 0 ? void 0 : _u.bankName) && {
|
|
206
204
|
class: "error-input",
|
|
207
205
|
helpText: getValidationErrorMessage({
|
|
208
206
|
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,
|
|
@@ -212,17 +210,17 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
212
210
|
},
|
|
213
211
|
7: {
|
|
214
212
|
input: [
|
|
215
|
-
index
|
|
213
|
+
index.h("sl-select", Object.assign({ required: true, label: props.text.classificationLabel, name: "/beneficiaryClassification", id: "beneficiaryClassification", key: "beneficiaryClassification" }, (((_x = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _x === void 0 ? void 0 : _x.beneficiaryClassification) && {
|
|
216
214
|
class: "error-input",
|
|
217
215
|
helpText: getValidationErrorMessage({
|
|
218
216
|
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,
|
|
219
217
|
label: props.text.classificationLabel,
|
|
220
218
|
}),
|
|
221
219
|
})),
|
|
222
|
-
index
|
|
223
|
-
index
|
|
224
|
-
index
|
|
225
|
-
index
|
|
220
|
+
index.h("sl-menu-item", { value: "BUSINESS" }, props.text.businessSelectItemLabel),
|
|
221
|
+
index.h("sl-menu-item", { value: "INDIVIDUAL" }, props.text.individualSelectItemLabel),
|
|
222
|
+
index.h("sl-menu-item", { value: "FOREIGN" }, props.text.foreignSelectItemLabel)),
|
|
223
|
+
index.h("sl-input", Object.assign({ required: true, label: global.intl.formatMessage({
|
|
226
224
|
id: "fxWireText",
|
|
227
225
|
defaultMessage: props.text.taxPayerIdLabel,
|
|
228
226
|
}, {
|
|
@@ -237,18 +235,18 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
237
235
|
],
|
|
238
236
|
},
|
|
239
237
|
8: {
|
|
240
|
-
input: (index
|
|
238
|
+
input: (index.h("sl-select", Object.assign({ required: true, label: props.text.classificationCPFLabel, name: "/beneficiaryClassification", id: "beneficiaryClassification", key: "beneficiaryClassification" }, (((_3 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _3 === void 0 ? void 0 : _3.beneficiaryClassification) && {
|
|
241
239
|
class: "error-input",
|
|
242
240
|
helpText: getValidationErrorMessage({
|
|
243
241
|
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,
|
|
244
242
|
label: props.text.classificationCPFLabel,
|
|
245
243
|
}),
|
|
246
244
|
})),
|
|
247
|
-
index
|
|
248
|
-
index
|
|
245
|
+
index.h("sl-menu-item", { value: "CPF" }, "CPF"),
|
|
246
|
+
index.h("sl-menu-item", { value: "CNPJ" }, "CNPJ"))),
|
|
249
247
|
},
|
|
250
248
|
9: {
|
|
251
|
-
input: (index
|
|
249
|
+
input: (index.h("sl-input", Object.assign({ key: "patronymicName", required: true, label: props.text.patronymicNameLabel, name: "/patronymicName", id: "patronymicName", type: "text" }, (((_6 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _6 === void 0 ? void 0 : _6.patronymicName) && {
|
|
252
250
|
class: "error-input",
|
|
253
251
|
helpText: getValidationErrorMessage({
|
|
254
252
|
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,
|
|
@@ -257,7 +255,7 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
257
255
|
})))),
|
|
258
256
|
},
|
|
259
257
|
10: {
|
|
260
|
-
input: (index
|
|
258
|
+
input: (index.h("sl-input", Object.assign({ key: "voCode", label: props.text.voCodeLabel, name: "/voCode", id: "voCode", type: "text" }, (((_9 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _9 === void 0 ? void 0 : _9.voCode) && {
|
|
261
259
|
class: "error-input",
|
|
262
260
|
helpText: getValidationErrorMessage({
|
|
263
261
|
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,
|
|
@@ -266,7 +264,7 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
266
264
|
})))),
|
|
267
265
|
},
|
|
268
266
|
11: {
|
|
269
|
-
input: (index
|
|
267
|
+
input: (index.h("sl-input", Object.assign({ required: true, label: props.text.agencyCodeLabel, name: "/agencyCode", id: "agencyCode", key: "agencyCode", type: "text" }, (((_12 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _12 === void 0 ? void 0 : _12.agencyCode) && {
|
|
270
268
|
class: "error-input",
|
|
271
269
|
helpText: getValidationErrorMessage({
|
|
272
270
|
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,
|
|
@@ -276,28 +274,28 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
276
274
|
},
|
|
277
275
|
12: {
|
|
278
276
|
input: [
|
|
279
|
-
index
|
|
277
|
+
index.h("sl-input", Object.assign({ required: true, label: props.text.bankAddressLabel, name: "/bankAddress", id: "bankAddress", key: "bankAddress", type: "text" }, (((_15 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _15 === void 0 ? void 0 : _15.bankAddress) && {
|
|
280
278
|
class: "error-input",
|
|
281
279
|
helpText: getValidationErrorMessage({
|
|
282
280
|
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,
|
|
283
281
|
label: props.text.bankAddressLabel,
|
|
284
282
|
}),
|
|
285
283
|
}))),
|
|
286
|
-
index
|
|
284
|
+
index.h("sl-input", Object.assign({ required: true, label: props.text.bankCityLabel, name: "/bankCity", id: "bankCity", key: "bankCity", type: "text" }, (((_18 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _18 === void 0 ? void 0 : _18.bankCity) && {
|
|
287
285
|
class: "error-input",
|
|
288
286
|
helpText: getValidationErrorMessage({
|
|
289
287
|
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,
|
|
290
288
|
label: props.text.bankCityLabel,
|
|
291
289
|
}),
|
|
292
290
|
}))),
|
|
293
|
-
index
|
|
291
|
+
index.h("sl-input", Object.assign({ required: true, label: props.text.bankStateLabel, name: "/bankState", id: "bankState", key: "bankState", type: "text" }, (((_21 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _21 === void 0 ? void 0 : _21.bankState) && {
|
|
294
292
|
class: "error-input",
|
|
295
293
|
helpText: getValidationErrorMessage({
|
|
296
294
|
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,
|
|
297
295
|
label: props.text.bankStateLabel,
|
|
298
296
|
}),
|
|
299
297
|
}))),
|
|
300
|
-
index
|
|
298
|
+
index.h("sl-input", Object.assign({ required: true, label: props.text.bankPostalCodeLabel, name: "/bankPostalCode", id: "bankPostalCode", key: "bankPostalCode", type: "text" }, (((_24 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _24 === void 0 ? void 0 : _24.bankPostalCode) && {
|
|
301
299
|
class: "error-input",
|
|
302
300
|
helpText: getValidationErrorMessage({
|
|
303
301
|
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,
|
|
@@ -307,7 +305,7 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
307
305
|
],
|
|
308
306
|
},
|
|
309
307
|
13: {
|
|
310
|
-
input: (index
|
|
308
|
+
input: (index.h("sl-input", Object.assign({ required: true, label: props.text.branchCodeLabel, name: "/branchCode", id: "branchCode", key: "branchCode", type: "text" }, (((_27 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _27 === void 0 ? void 0 : _27.branchCode) && {
|
|
311
309
|
class: "error-input",
|
|
312
310
|
helpText: getValidationErrorMessage({
|
|
313
311
|
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,
|
|
@@ -316,16 +314,16 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
316
314
|
})))),
|
|
317
315
|
},
|
|
318
316
|
14: {
|
|
319
|
-
input: (index
|
|
317
|
+
input: (index.h("sl-select", Object.assign({ required: true, label: props.text.classificationLabel, name: "/beneficiaryClassification", id: "beneficiaryClassification", key: "beneficiaryClassification" }, (((_30 = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _30 === void 0 ? void 0 : _30.beneficiaryClassification) && {
|
|
320
318
|
class: "error-input",
|
|
321
319
|
helpText: getValidationErrorMessage({
|
|
322
320
|
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,
|
|
323
321
|
label: props.text.classificationLabel,
|
|
324
322
|
}),
|
|
325
323
|
})),
|
|
326
|
-
index
|
|
327
|
-
index
|
|
328
|
-
index
|
|
324
|
+
index.h("sl-menu-item", { value: "BUSINESS" }, props.text.businessSelectItemLabel),
|
|
325
|
+
index.h("sl-menu-item", { value: "INDIVIDUAL" }, props.text.individualSelectItemLabel),
|
|
326
|
+
index.h("sl-menu-item", { value: "FOREIGN" }, props.text.foreignSelectItemLabel))),
|
|
329
327
|
},
|
|
330
328
|
};
|
|
331
329
|
}
|
|
@@ -647,7 +645,6 @@ const style = {
|
|
|
647
645
|
alignItems: "flex-start",
|
|
648
646
|
justifyContent: "flex-start",
|
|
649
647
|
gap: "var(--sl-spacing-xx-small)",
|
|
650
|
-
maxWidth: "797px",
|
|
651
648
|
},
|
|
652
649
|
TitleContainer: {
|
|
653
650
|
display: "flex",
|
|
@@ -751,7 +748,8 @@ const style = {
|
|
|
751
748
|
background: "var(--sl-color-gray-200)",
|
|
752
749
|
},
|
|
753
750
|
LargeSkeleton: {
|
|
754
|
-
width: "
|
|
751
|
+
width: "100%",
|
|
752
|
+
maxWidth: "320px",
|
|
755
753
|
height: "40px",
|
|
756
754
|
borderRadius: "50px",
|
|
757
755
|
background: "var(--sl-color-gray-200)",
|
|
@@ -823,80 +821,80 @@ const BankingInfoFormView = (props) => {
|
|
|
823
821
|
gap: "8px",
|
|
824
822
|
};
|
|
825
823
|
if (checkedValue === undefined) {
|
|
826
|
-
return (index
|
|
827
|
-
index
|
|
828
|
-
index
|
|
829
|
-
index
|
|
830
|
-
index
|
|
831
|
-
index
|
|
832
|
-
index
|
|
833
|
-
index
|
|
824
|
+
return (index.h("div", { style: { ...flexBoxStyle, flexDirection: "column", gap: "16px" } },
|
|
825
|
+
index.h("div", { class: classes.SmallSkeleton }),
|
|
826
|
+
index.h("div", { style: { ...flexBoxStyle, flexDirection: "row" } },
|
|
827
|
+
index.h("div", { class: classes.CheckboxSkeleton }),
|
|
828
|
+
index.h("div", { class: classes.SmallSkeleton })),
|
|
829
|
+
index.h("div", { style: { ...flexBoxStyle, flexDirection: "row" } },
|
|
830
|
+
index.h("div", { class: classes.CheckboxSkeleton }),
|
|
831
|
+
index.h("div", { class: classes.SmallSkeleton }))));
|
|
834
832
|
}
|
|
835
833
|
if (checkedValue === "toPayPalAccount") {
|
|
836
|
-
return (index
|
|
837
|
-
index
|
|
838
|
-
index
|
|
834
|
+
return (index.h("div", { style: { ...flexBoxStyle, flexDirection: "column" } },
|
|
835
|
+
index.h("div", { class: classes.SmallSkeleton }),
|
|
836
|
+
index.h("div", { class: classes.LargeSkeleton })));
|
|
839
837
|
}
|
|
840
|
-
const skeletons = inputNumArray.map((_, idx) => (index
|
|
841
|
-
index
|
|
842
|
-
index
|
|
838
|
+
const skeletons = inputNumArray.map((_, idx) => (index.h("div", { style: { ...flexBoxStyle, flexDirection: "column" }, key: idx },
|
|
839
|
+
index.h("div", { class: classes.SmallSkeleton }),
|
|
840
|
+
index.h("div", { class: classes.LargeSkeleton }))));
|
|
843
841
|
return skeletons;
|
|
844
842
|
};
|
|
845
|
-
return (index
|
|
846
|
-
index
|
|
843
|
+
return (index.h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
844
|
+
index.h("style", { type: "text/css" },
|
|
847
845
|
styleString,
|
|
848
846
|
vanillaStyle),
|
|
849
|
-
index
|
|
850
|
-
index
|
|
851
|
-
!states.hideSteps && (index
|
|
847
|
+
index.h("div", { class: classes.TextContainer },
|
|
848
|
+
index.h("div", null,
|
|
849
|
+
!states.hideSteps && (index.h("p", null, global.intl.formatMessage({
|
|
852
850
|
id: "formStep",
|
|
853
851
|
defaultMessage: text.formStep,
|
|
854
852
|
}, { step: states.step, count: FORM_STEPS }))),
|
|
855
|
-
index
|
|
856
|
-
index
|
|
857
|
-
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index
|
|
858
|
-
index
|
|
859
|
-
index
|
|
860
|
-
index
|
|
853
|
+
index.h("h3", { style: { fontSize: "24px" } }, text.taxAndPayouts),
|
|
854
|
+
index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription)),
|
|
855
|
+
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet.classes.AlertContainer },
|
|
856
|
+
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
857
|
+
index.h("strong", null, text.error.generalTitle),
|
|
858
|
+
index.h("br", null),
|
|
861
859
|
text.error.generalDescription)),
|
|
862
|
-
states.isPartner && !states.hideSteps && (index
|
|
863
|
-
index
|
|
864
|
-
index
|
|
865
|
-
index
|
|
860
|
+
states.isPartner && !states.hideSteps && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "primary", open: true, class: sheet.classes.PartnerAlertContainer },
|
|
861
|
+
index.h("sl-icon", { slot: "icon", name: "info-circle" }),
|
|
862
|
+
index.h("strong", null, text.isPartnerAlertHeader),
|
|
863
|
+
index.h("br", null),
|
|
866
864
|
text.isPartnerAlertDescription)),
|
|
867
|
-
index
|
|
868
|
-
index
|
|
869
|
-
index
|
|
870
|
-
index
|
|
871
|
-
index
|
|
872
|
-
states.hasPayPal && (index
|
|
873
|
-
formState.paymentMethodChecked === "toBankAccount" && (index
|
|
865
|
+
index.h("div", null,
|
|
866
|
+
index.h("h4", null, text.paymentMethod),
|
|
867
|
+
index.h("p", { class: classes.DescriptionText }, text.paymentMethodSubtext))),
|
|
868
|
+
index.h("div", null,
|
|
869
|
+
index.h("div", { class: classes.CheckboxContainer }, states.loading && formState.paymentMethodChecked === undefined ? (getLoadingSkeleton(undefined)) : (index.h("div", { class: classes.RadioContainer },
|
|
870
|
+
states.hasPayPal && (index.h("sl-radio", { class: classes.Checkbox, exportparts: "label: input-label, base: input-base", checked: formState.paymentMethodChecked === "toBankAccount", onInput: () => callbacks.setPaymentMethodChecked("toBankAccount"), disabled: states.disabled, id: "toBankAccount", name: "/toBankAccount" }, text.directlyToBankAccount)),
|
|
871
|
+
formState.paymentMethodChecked === "toBankAccount" && (index.h("div", { class: classes.InputContainer, style: states.hideBanking ? { display: "none" } : {} }, states.loading
|
|
874
872
|
? getLoadingSkeleton("toBankAccount", slots.formInputsSlot.length + 3)
|
|
875
873
|
: [
|
|
876
874
|
slots.countryInputSlot,
|
|
877
875
|
slots.paymentMethodSlot,
|
|
878
876
|
slots.formInputsSlot,
|
|
879
877
|
])),
|
|
880
|
-
states.hasPayPal && (index
|
|
878
|
+
states.hasPayPal && (index.h("sl-radio", { class: classes.Checkbox, exportparts: "label: input-label, base: input-base", checked: formState.paymentMethodChecked === "toPayPalAccount", onInput: () => callbacks.setPaymentMethodChecked("toPayPalAccount"), disabled: states.disabled, id: "toPayPalAccount", name: "/toPayPalAccount" }, global.intl.formatMessage({
|
|
881
879
|
id: "paypal-input-label",
|
|
882
880
|
defaultMessage: text.toPayPalAccount,
|
|
883
881
|
}, { feeCap: states.feeCap }))),
|
|
884
|
-
formState.paymentMethodChecked === "toPayPalAccount" && (index
|
|
882
|
+
formState.paymentMethodChecked === "toPayPalAccount" && (index.h("div", { class: classes.InputContainer, style: states.hidePayPal ? { display: "none" } : {} }, states.loading
|
|
885
883
|
? getLoadingSkeleton("toPayPalAccount")
|
|
886
884
|
: slots.paypalInputSlot)),
|
|
887
|
-
index
|
|
888
|
-
index
|
|
889
|
-
index
|
|
890
|
-
formState.paymentScheduleChecked === "BALANCE_THRESHOLD" && (index
|
|
885
|
+
index.h("div", { style: { paddingTop: "24px", paddingBottom: "12px" } },
|
|
886
|
+
index.h("h4", null, text.paymentSchedule)),
|
|
887
|
+
index.h("sl-radio", { class: classes.Checkbox, exportparts: "label: input-label, base: input-base", checked: formState.paymentScheduleChecked === "BALANCE_THRESHOLD", onInput: () => callbacks.setPaymentScheduleChecked("BALANCE_THRESHOLD"), disabled: states.disabled, id: "paymentSchedulingType", name: "/paymentSchedulingType", value: "BALANCE_THRESHOLD" }, text.paymentScheduleBalanceThreshold),
|
|
888
|
+
formState.paymentScheduleChecked === "BALANCE_THRESHOLD" && (index.h("div", { class: classes.InputContainer, style: states.hideBalanceThreshold ? { display: "none" } : {} }, states.loading
|
|
891
889
|
? getLoadingSkeleton("toPayPalAccount")
|
|
892
890
|
: slots.paymentThresholdSelectSlot)),
|
|
893
|
-
index
|
|
894
|
-
formState.paymentScheduleChecked === "FIXED_DAY" && (index
|
|
891
|
+
index.h("sl-radio", { class: classes.Checkbox, exportparts: "label: input-label, base: input-base", checked: formState.paymentScheduleChecked === "FIXED_DAY", onInput: () => callbacks.setPaymentScheduleChecked("FIXED_DAY"), disabled: states.disabled, id: "paymentSchedulingType", name: "/paymentSchedulingType", value: "FIXED_DAY" }, text.paymentScheduleFixedDay),
|
|
892
|
+
formState.paymentScheduleChecked === "FIXED_DAY" && (index.h("div", { class: classes.InputContainer, style: states.hideFixedDay ? { display: "none" } : {} }, states.loading
|
|
895
893
|
? getLoadingSkeleton("toPayPalAccount")
|
|
896
894
|
: slots.paymentFixedDaySelectSlot))))),
|
|
897
|
-
index
|
|
898
|
-
index
|
|
899
|
-
!states.hideBackButton && (index
|
|
895
|
+
index.h("div", { class: classes.BtnContainer },
|
|
896
|
+
index.h("sl-button", { type: "primary", disabled: states.disabled || states.saveDisabled, loading: states.saveLoading, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton),
|
|
897
|
+
!states.hideBackButton && (index.h("sl-button", { exportparts: "base: secondarybutton-base", class: classes.SecondaryBtn, type: "text", onClick: callbacks.onBack }, text.backButton))))));
|
|
900
898
|
};
|
|
901
899
|
|
|
902
900
|
// Hardcoded in Impact backend
|
|
@@ -930,7 +928,7 @@ function getFormInputs({ bitset, formMap }) {
|
|
|
930
928
|
}, []);
|
|
931
929
|
return inputFields;
|
|
932
930
|
}
|
|
933
|
-
const SAVE_WITHDRAWAL_SETTINGS =
|
|
931
|
+
const SAVE_WITHDRAWAL_SETTINGS = index_module.dist.gql `
|
|
934
932
|
mutation setImpactPublisherWithdrawalSettings(
|
|
935
933
|
$setImpactPublisherWithdrawalSettingsInput: SetImpactPublisherWithdrawalSettingsInput!
|
|
936
934
|
) {
|
|
@@ -962,15 +960,15 @@ function parseImpactThreshold(threshold) {
|
|
|
962
960
|
}
|
|
963
961
|
function useBankingInfoForm(props) {
|
|
964
962
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
965
|
-
const locale = index_module.
|
|
966
|
-
const user = index_module.
|
|
967
|
-
const [step, setStep] = index_module.
|
|
968
|
-
const context = index_module.
|
|
969
|
-
const countries = index_module.
|
|
963
|
+
const locale = index_module.L();
|
|
964
|
+
const user = index_module.Q();
|
|
965
|
+
const [step, setStep] = index_module.bn(TAX_CONTEXT_NAMESPACE);
|
|
966
|
+
const context = index_module.In(TAX_FORM_CONTEXT_NAMESPACE);
|
|
967
|
+
const countries = index_module.In(SORTED_COUNTRIES_NAMESPACE);
|
|
970
968
|
const formRef = stencilHooks_module.useRef(null);
|
|
971
|
-
const { data: paymentOptionsData, loading: paymentOptionsLoading, errors: paymentOptionsError, } = index_module.
|
|
972
|
-
const { data: userData, refetch, errors: userError, } = index_module.
|
|
973
|
-
const [saveWithdrawalSettings] = index_module
|
|
969
|
+
const { data: paymentOptionsData, loading: paymentOptionsLoading, errors: paymentOptionsError, } = index_module.Mn(FINANCE_NETWORK_SETTINGS_NAMESPACE);
|
|
970
|
+
const { data: userData, refetch, errors: userError, } = index_module.Mn(USER_QUERY_NAMESPACE);
|
|
971
|
+
const [saveWithdrawalSettings] = index_module.$e(SAVE_WITHDRAWAL_SETTINGS);
|
|
974
972
|
const [formState, setFormState] = stencilHooks_module.useState({});
|
|
975
973
|
const [currentPaymentOption, setCurrentPaymentOption] = stencilHooks_module.useState(null);
|
|
976
974
|
const [loading, setLoading] = stencilHooks_module.useState(false);
|
|
@@ -1192,7 +1190,7 @@ function useBankingInfoForm(props) {
|
|
|
1192
1190
|
|
|
1193
1191
|
const BankingInfoForm = class {
|
|
1194
1192
|
constructor(hostRef) {
|
|
1195
|
-
index
|
|
1193
|
+
index.registerInstance(this, hostRef);
|
|
1196
1194
|
this.ignored = true;
|
|
1197
1195
|
/**
|
|
1198
1196
|
* @uiName Setup progress
|
|
@@ -1433,7 +1431,7 @@ const BankingInfoForm = class {
|
|
|
1433
1431
|
* @uiWidget textArea
|
|
1434
1432
|
*/
|
|
1435
1433
|
this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact Support.";
|
|
1436
|
-
stencilHooks_module.h(this);
|
|
1434
|
+
stencilHooks_module.h$1(this);
|
|
1437
1435
|
}
|
|
1438
1436
|
disconnectedCallback() { }
|
|
1439
1437
|
getTextProps() {
|
|
@@ -1489,40 +1487,40 @@ const BankingInfoForm = class {
|
|
|
1489
1487
|
padding: "var(--sl-spacing-x-small)",
|
|
1490
1488
|
},
|
|
1491
1489
|
};
|
|
1492
|
-
return (index
|
|
1490
|
+
return (index.h(index.Host, null, index.h(BankingInfoFormView, { callbacks: props.callbacks, text: props.text, states: props.states, refs: props.refs, slots: {
|
|
1493
1491
|
formInputsSlot: inputFields === null || inputFields === void 0 ? void 0 : inputFields.map(({ input }) => input),
|
|
1494
|
-
countryInputSlot: (index
|
|
1492
|
+
countryInputSlot: (index.h("sl-select", Object.assign({ label: props.text.bankLocationLabel, required: true, name: "/bankCountry", id: "bankCountry", value: props.states.formState.bankCountry || "", "onSl-select": (e) => { var _a, _b; return props.callbacks.setBankCountry((_b = (_a = e.detail) === null || _a === void 0 ? void 0 : _a.item) === null || _b === void 0 ? void 0 : _b.value); } }, (((_a = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _a === void 0 ? void 0 : _a.bankCountry) && {
|
|
1495
1493
|
class: "error-input",
|
|
1496
1494
|
helpText: getValidationErrorMessage({
|
|
1497
1495
|
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,
|
|
1498
1496
|
label: props.text.bankLocationLabel,
|
|
1499
1497
|
}),
|
|
1500
|
-
})), index
|
|
1498
|
+
})), index.h("sl-input", { class: searchStyle.SearchInput, placeholder: this.searchForCountryText, onKeyDown: (e) => {
|
|
1501
1499
|
// Stop shoelace intercepting key presses
|
|
1502
1500
|
e.stopPropagation();
|
|
1503
1501
|
}, "onSl-input": (e) => {
|
|
1504
1502
|
props.callbacks.setCountrySearch(e.target.value);
|
|
1505
1503
|
} }), (_d = props.states.countries) === null || _d === void 0 ? void 0 :
|
|
1506
1504
|
_d.map((country) => {
|
|
1507
|
-
return (index
|
|
1505
|
+
return (index.h("sl-menu-item", { value: country.countryCode }, country.displayName));
|
|
1508
1506
|
}), (_f = (_e = props.states) === null || _e === void 0 ? void 0 : _e.allCountries) === null || _f === void 0 ? void 0 :
|
|
1509
|
-
_f.map((c) => (index
|
|
1510
|
-
paymentMethodSlot: (index
|
|
1511
|
-
paymentThresholdSelectSlot: (index
|
|
1507
|
+
_f.map((c) => (index.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } }, c.displayName))))),
|
|
1508
|
+
paymentMethodSlot: (index.h("sl-input", { key: "paymentMethod", label: props.text.paymentMethod, placeholder: props.states.paymentMethodFeeLabel, disabled: true })),
|
|
1509
|
+
paymentThresholdSelectSlot: (index.h("sl-select", Object.assign({ required: true, 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) && {
|
|
1512
1510
|
class: "error-input",
|
|
1513
1511
|
helpText: getValidationErrorMessage({
|
|
1514
1512
|
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,
|
|
1515
1513
|
label: props.text.paymentThresholdSelectLabel,
|
|
1516
1514
|
}),
|
|
1517
|
-
})), props.states.thresholds.map((t) => (index
|
|
1518
|
-
paymentFixedDaySelectSlot: (index
|
|
1515
|
+
})), props.states.thresholds.map((t) => (index.h("sl-menu-item", { value: t }, `${props.states.currency}${t}`))))),
|
|
1516
|
+
paymentFixedDaySelectSlot: (index.h("sl-select", Object.assign({ required: true, 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) && {
|
|
1519
1517
|
class: "error-input",
|
|
1520
1518
|
helpText: getValidationErrorMessage({
|
|
1521
1519
|
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,
|
|
1522
1520
|
label: props.text.paymentDaySelectLabel,
|
|
1523
1521
|
}),
|
|
1524
|
-
})), index
|
|
1525
|
-
paypalInputSlot: (index
|
|
1522
|
+
})), index.h("sl-menu-item", { value: "1" }, props.text.paymentDayFirstOfMonthLabelText), index.h("sl-menu-item", { value: "15" }, props.text.paymentDayFifteenthOfMonthLabelText))),
|
|
1523
|
+
paypalInputSlot: (index.h("sl-input", Object.assign({ required: true, 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) && {
|
|
1526
1524
|
class: "error-input",
|
|
1527
1525
|
helpText: getValidationErrorMessage({
|
|
1528
1526
|
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,
|
|
@@ -1538,7 +1536,7 @@ function useDemoBankingInfoForm(props) {
|
|
|
1538
1536
|
const defaultPaymentScheduleChecked = (_f = (_e = (_d = props.demoData) === null || _d === void 0 ? void 0 : _d.states) === null || _e === void 0 ? void 0 : _e.formState) === null || _f === void 0 ? void 0 : _f.paymentScheduleChecked;
|
|
1539
1537
|
const defaultCurrency = (_h = (_g = props.demoData) === null || _g === void 0 ? void 0 : _g.states) === null || _h === void 0 ? void 0 : _h.currency;
|
|
1540
1538
|
const defaultCountry = (_l = (_k = (_j = props.demoData) === null || _j === void 0 ? void 0 : _j.states) === null || _k === void 0 ? void 0 : _k.formState) === null || _l === void 0 ? void 0 : _l.bankCountry;
|
|
1541
|
-
const setStep = index_module.
|
|
1539
|
+
const setStep = index_module.wn(TAX_CONTEXT_NAMESPACE);
|
|
1542
1540
|
const [paymentMethodChecked, setPaymentMethodChecked] = stencilHooks_module.useState(undefined);
|
|
1543
1541
|
const [paymentScheduleChecked, setPaymentScheduleChecked] = stencilHooks_module.useState(undefined);
|
|
1544
1542
|
const [currency, setCurrency] = stencilHooks_module.useState(defaultCurrency);
|
|
@@ -1629,7 +1627,7 @@ function useDemoBankingInfoForm(props) {
|
|
|
1629
1627
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
1630
1628
|
}
|
|
1631
1629
|
|
|
1632
|
-
const GET_TAX_DOCUMENT =
|
|
1630
|
+
const GET_TAX_DOCUMENT = index_module.dist.gql `
|
|
1633
1631
|
mutation createImpactPublisherTaxDocument(
|
|
1634
1632
|
$vars: CreateImpactPublisherTaxDocumentInput!
|
|
1635
1633
|
) {
|
|
@@ -1640,7 +1638,7 @@ const GET_TAX_DOCUMENT = index.dist.gql `
|
|
|
1640
1638
|
}
|
|
1641
1639
|
}
|
|
1642
1640
|
`;
|
|
1643
|
-
const COMPLETE_TAX_DOCUMENT =
|
|
1641
|
+
const COMPLETE_TAX_DOCUMENT = index_module.dist.gql `
|
|
1644
1642
|
mutation completeImpactPublisherTaxDocument($vars: UserIdInput!) {
|
|
1645
1643
|
completeImpactPublisherTaxDocument(user: $vars) {
|
|
1646
1644
|
success
|
|
@@ -1656,17 +1654,18 @@ const DOCUSIGN_ERROR_STATES = [
|
|
|
1656
1654
|
const DOCUSIGN_EXPIRED_STATES = ["ttl_expired", "session_timeout"];
|
|
1657
1655
|
function useDocusignForm(props) {
|
|
1658
1656
|
var _a, _b, _c;
|
|
1659
|
-
const user = index_module.
|
|
1660
|
-
const context = index_module.
|
|
1661
|
-
const [step, setStep] = index_module.
|
|
1662
|
-
const { data, loading: userLoading, refetch, } = index_module.
|
|
1657
|
+
const user = index_module.Q();
|
|
1658
|
+
const context = index_module.In(TAX_FORM_CONTEXT_NAMESPACE);
|
|
1659
|
+
const [step, setStep] = index_module.bn(TAX_CONTEXT_NAMESPACE);
|
|
1660
|
+
const { data, loading: userLoading, refetch, } = index_module.Mn(USER_QUERY_NAMESPACE);
|
|
1663
1661
|
const publisher = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher;
|
|
1664
|
-
const [createTaxDocument, { loading: documentLoading, data: document, errors: documentErrors },] = index_module
|
|
1665
|
-
const [completeTaxDocument, { loading: completeDocumentLoading, data: completeData, errors: completeErrors, },] = index_module
|
|
1662
|
+
const [createTaxDocument, { loading: documentLoading, data: document, errors: documentErrors },] = index_module.$e(GET_TAX_DOCUMENT);
|
|
1663
|
+
const [completeTaxDocument, { loading: completeDocumentLoading, data: completeData, errors: completeErrors, },] = index_module.$e(COMPLETE_TAX_DOCUMENT);
|
|
1666
1664
|
const [docusignStatus, setDocusignStatus] = stencilHooks_module.useState(undefined);
|
|
1667
1665
|
const [participantType, setParticipantType] = stencilHooks_module.useState(undefined);
|
|
1668
1666
|
const [errors, setErrors] = stencilHooks_module.useState({});
|
|
1669
1667
|
const [loading, setLoading] = stencilHooks_module.useState(false);
|
|
1668
|
+
const [showExitButton, setShowExitButton] = stencilHooks_module.useState(false);
|
|
1670
1669
|
// Only look at current document if it's valid (same as required type)
|
|
1671
1670
|
const existingDocumentType = sqmInvoiceTableView.validTaxDocument(publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType) && (publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument)
|
|
1672
1671
|
? publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType : undefined;
|
|
@@ -1725,6 +1724,7 @@ function useDocusignForm(props) {
|
|
|
1725
1724
|
// @ts-expect-error: no data type for result
|
|
1726
1725
|
if (!result.completeImpactPublisherTaxDocument.success)
|
|
1727
1726
|
throw new Error();
|
|
1727
|
+
setShowExitButton(true);
|
|
1728
1728
|
}
|
|
1729
1729
|
catch (e) {
|
|
1730
1730
|
setErrors({ general: true });
|
|
@@ -1758,6 +1758,7 @@ function useDocusignForm(props) {
|
|
|
1758
1758
|
docusignStatus,
|
|
1759
1759
|
documentType: actualDocumentType,
|
|
1760
1760
|
documentTypeString: sqmInvoiceTableView.taxTypeToName(actualDocumentType),
|
|
1761
|
+
showExitButton,
|
|
1761
1762
|
},
|
|
1762
1763
|
data: {
|
|
1763
1764
|
taxForm: actualDocumentType,
|
|
@@ -1766,7 +1767,7 @@ function useDocusignForm(props) {
|
|
|
1766
1767
|
callbacks: {
|
|
1767
1768
|
setDocusignStatus,
|
|
1768
1769
|
completeDocument,
|
|
1769
|
-
progressStep,
|
|
1770
|
+
onExit: progressStep,
|
|
1770
1771
|
setParticipantType,
|
|
1771
1772
|
},
|
|
1772
1773
|
text: props.getTextProps(),
|
|
@@ -1805,46 +1806,46 @@ const styleString$1 = sheet$1.toString();
|
|
|
1805
1806
|
const DocusignExpiredView = (props) => {
|
|
1806
1807
|
const { classes } = sheet$1;
|
|
1807
1808
|
const { text } = props;
|
|
1808
|
-
return (index
|
|
1809
|
-
index
|
|
1810
|
-
index
|
|
1811
|
-
index
|
|
1809
|
+
return (index.h("div", null,
|
|
1810
|
+
index.h("style", { type: "text/css" }, styleString$1),
|
|
1811
|
+
index.h("div", { class: classes.DocusignStatusContainer },
|
|
1812
|
+
index.h("sl-icon", { style: {
|
|
1812
1813
|
width: "50px",
|
|
1813
1814
|
height: "50px",
|
|
1814
1815
|
color: "var(--sl-color-neutral-500)",
|
|
1815
1816
|
}, name: "clock" }),
|
|
1816
|
-
index
|
|
1817
|
-
index
|
|
1818
|
-
index
|
|
1817
|
+
index.h("div", { class: classes.MessageContainer },
|
|
1818
|
+
index.h("p", { style: { margin: "0" } }, text.docusignExpired)),
|
|
1819
|
+
index.h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
|
|
1819
1820
|
};
|
|
1820
1821
|
const DocusignErrorView = (props) => {
|
|
1821
1822
|
const { classes } = sheet$1;
|
|
1822
1823
|
const { text } = props;
|
|
1823
|
-
return (index
|
|
1824
|
-
index
|
|
1825
|
-
index
|
|
1826
|
-
index
|
|
1824
|
+
return (index.h("div", null,
|
|
1825
|
+
index.h("style", { type: "text/css" }, styleString$1),
|
|
1826
|
+
index.h("div", { class: classes.DocusignStatusContainer },
|
|
1827
|
+
index.h("sl-icon", { style: {
|
|
1827
1828
|
width: "50px",
|
|
1828
1829
|
height: "50px",
|
|
1829
1830
|
color: "var(--sl-color-gray-500)",
|
|
1830
1831
|
}, name: "exclamation-octagon" }),
|
|
1831
|
-
index
|
|
1832
|
-
index
|
|
1833
|
-
index
|
|
1832
|
+
index.h("div", { class: classes.MessageContainer },
|
|
1833
|
+
index.h("p", { style: { margin: "0" } }, text.docusignError)),
|
|
1834
|
+
index.h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
|
|
1834
1835
|
};
|
|
1835
1836
|
const DocusignLoadingView = () => {
|
|
1836
1837
|
const { classes } = sheet$1;
|
|
1837
|
-
return (index
|
|
1838
|
-
index
|
|
1839
|
-
index
|
|
1840
|
-
index
|
|
1838
|
+
return (index.h("div", null,
|
|
1839
|
+
index.h("style", { type: "text/css" }, styleString$1),
|
|
1840
|
+
index.h("div", { class: classes.DocusignStatusContainer },
|
|
1841
|
+
index.h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } }))));
|
|
1841
1842
|
};
|
|
1842
1843
|
const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
1843
1844
|
const [iFrameHeight, setiFrameHeight] = stencilHooks_module.useState("100%");
|
|
1844
|
-
// TODO: Confirm impact domain before launch
|
|
1845
1845
|
const allowedDomains = [
|
|
1846
1846
|
"referralsaasquatch.com",
|
|
1847
1847
|
"impacttech.complysandbox.com",
|
|
1848
|
+
"impacttech.complytaxforms.com",
|
|
1848
1849
|
];
|
|
1849
1850
|
const callback = index_module.useCallback((e) => {
|
|
1850
1851
|
const allowed = allowedDomains.some((d) => { var _a; return (_a = e.origin) === null || _a === void 0 ? void 0 : _a.includes(d); });
|
|
@@ -1856,9 +1857,6 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
|
1856
1857
|
if (e.data === "Complyexchange Thank you page Load") {
|
|
1857
1858
|
callbacks.completeDocument();
|
|
1858
1859
|
}
|
|
1859
|
-
if (e.data == "Complyexchange Thank you page Exit") {
|
|
1860
|
-
callbacks.progressStep();
|
|
1861
|
-
}
|
|
1862
1860
|
}, []);
|
|
1863
1861
|
stencilHooks_module.useEffect(() => {
|
|
1864
1862
|
window.addEventListener("message", callback, false);
|
|
@@ -1867,13 +1865,13 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
|
1867
1865
|
};
|
|
1868
1866
|
}, []);
|
|
1869
1867
|
if (states.urlLoading)
|
|
1870
|
-
return index
|
|
1868
|
+
return index.h(DocusignLoadingView, null);
|
|
1871
1869
|
if (DOCUSIGN_ERROR_STATES.includes(states.status)) {
|
|
1872
|
-
return index
|
|
1870
|
+
return index.h(DocusignErrorView, { text: text });
|
|
1873
1871
|
}
|
|
1874
1872
|
if (DOCUSIGN_EXPIRED_STATES.includes(states.status))
|
|
1875
|
-
return index
|
|
1876
|
-
return (index
|
|
1873
|
+
return index.h(DocusignExpiredView, { text: text });
|
|
1874
|
+
return (index.h("iframe", { scrolling: "yes", frameBorder: "0", src: data.documentUrl, width: "100%", height: iFrameHeight }));
|
|
1877
1875
|
};
|
|
1878
1876
|
|
|
1879
1877
|
const style$2 = {
|
|
@@ -2017,33 +2015,33 @@ const DocusignFormView = (props) => {
|
|
|
2017
2015
|
var _a;
|
|
2018
2016
|
const { states, states: { formState, documentTypeString }, callbacks, text, slots, } = props;
|
|
2019
2017
|
const { classes } = sheet$2;
|
|
2020
|
-
return (index
|
|
2021
|
-
index
|
|
2018
|
+
return (index.h("div", { class: classes.Container },
|
|
2019
|
+
index.h("style", { type: "text/css" },
|
|
2022
2020
|
styleString$2,
|
|
2023
2021
|
vanillaStyle$1),
|
|
2024
|
-
index
|
|
2025
|
-
index
|
|
2026
|
-
!states.hideSteps && (index
|
|
2022
|
+
index.h("div", { class: classes.TextContainer },
|
|
2023
|
+
index.h("div", null,
|
|
2024
|
+
!states.hideSteps && (index.h("p", null, global.intl.formatMessage({
|
|
2027
2025
|
id: "formStep",
|
|
2028
2026
|
defaultMessage: text.formStep,
|
|
2029
2027
|
}, { step: states.step, count: FORM_STEPS }))),
|
|
2030
|
-
index
|
|
2031
|
-
index
|
|
2032
|
-
states.loadingError && (index
|
|
2033
|
-
index
|
|
2034
|
-
index
|
|
2035
|
-
index
|
|
2036
|
-
index
|
|
2028
|
+
index.h("h3", null, text.taxForm),
|
|
2029
|
+
index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
|
|
2030
|
+
states.loadingError && (index.h("div", null,
|
|
2031
|
+
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$2.classes.ErrorAlertContainer },
|
|
2032
|
+
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2033
|
+
index.h("strong", null, text.error.loadingErrorAlertHeader),
|
|
2034
|
+
index.h("br", null),
|
|
2037
2035
|
text.error.loadingErrorAlertDescription))),
|
|
2038
|
-
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index
|
|
2039
|
-
index
|
|
2040
|
-
index
|
|
2041
|
-
index
|
|
2036
|
+
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$2.classes.ErrorAlertContainer },
|
|
2037
|
+
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2038
|
+
index.h("strong", null, text.error.generalTitle),
|
|
2039
|
+
index.h("br", null),
|
|
2042
2040
|
text.error.generalDescription)),
|
|
2043
|
-
index
|
|
2044
|
-
index
|
|
2045
|
-
index
|
|
2046
|
-
index
|
|
2041
|
+
index.h("div", null,
|
|
2042
|
+
index.h("div", null,
|
|
2043
|
+
index.h("h5", { class: classes.BoldText }, global.intl.formatMessage({ id: "tax-form-label", defaultMessage: text.taxFormLabel }, { documentType: documentTypeString })),
|
|
2044
|
+
index.h("p", null, global.intl.formatMessage({
|
|
2047
2045
|
id: "tax-form-description",
|
|
2048
2046
|
defaultMessage: states.documentType === "W9"
|
|
2049
2047
|
? text.taxFormDescription
|
|
@@ -2051,12 +2049,13 @@ const DocusignFormView = (props) => {
|
|
|
2051
2049
|
? text.taxFormDescriptionIndividualParticipant
|
|
2052
2050
|
: text.taxFormDescriptionBusinessEntity,
|
|
2053
2051
|
}, { documentType: documentTypeString }))),
|
|
2054
|
-
index
|
|
2052
|
+
index.h("div", null, slots.docusignIframeSlot),
|
|
2053
|
+
index.h("div", { class: classes.BtnContainer }, states.showExitButton && (index.h("sl-button", { type: "primary", exportparts: "base: primarybutton-base", onClick: callbacks.onExit }, text.exitButton))))));
|
|
2055
2054
|
};
|
|
2056
2055
|
|
|
2057
2056
|
const DocusignForm = class {
|
|
2058
2057
|
constructor(hostRef) {
|
|
2059
|
-
index
|
|
2058
|
+
index.registerInstance(this, hostRef);
|
|
2060
2059
|
this.ignored = true;
|
|
2061
2060
|
/**
|
|
2062
2061
|
* @uiName Setup progress
|
|
@@ -2154,7 +2153,12 @@ const DocusignForm = class {
|
|
|
2154
2153
|
* @uiName Page description
|
|
2155
2154
|
*/
|
|
2156
2155
|
this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
|
|
2157
|
-
|
|
2156
|
+
/**
|
|
2157
|
+
* Exit button text displayed at the end of the Comply Exchange form flow
|
|
2158
|
+
* @uiName Exit button text
|
|
2159
|
+
*/
|
|
2160
|
+
this.exitButton = "Exit";
|
|
2161
|
+
stencilHooks_module.h$1(this);
|
|
2158
2162
|
}
|
|
2159
2163
|
disconnectedCallback() { }
|
|
2160
2164
|
getTextProps() {
|
|
@@ -2173,26 +2177,25 @@ const DocusignForm = class {
|
|
|
2173
2177
|
render() {
|
|
2174
2178
|
const _isDemo = index_module.isDemo();
|
|
2175
2179
|
const props = _isDemo ? useDocusignFormDemo(this) : useDocusignForm(this);
|
|
2176
|
-
const docusignIframeSlot = (index
|
|
2180
|
+
const docusignIframeSlot = (index.h(DocusignIframe, { states: {
|
|
2177
2181
|
status: props.states.docusignStatus,
|
|
2178
2182
|
loading: props.states.loading,
|
|
2179
2183
|
urlLoading: props.states.urlLoading,
|
|
2180
2184
|
}, data: {
|
|
2181
2185
|
documentUrl: props.data.documentUrl,
|
|
2182
2186
|
}, callbacks: {
|
|
2183
|
-
progressStep: props.callbacks.progressStep,
|
|
2184
2187
|
completeDocument: props.callbacks.completeDocument,
|
|
2185
2188
|
}, text: props.text }));
|
|
2186
|
-
return (index
|
|
2189
|
+
return (index.h(index.Host, null, index.h(DocusignFormView, { callbacks: props.callbacks, states: props.states, text: props.text, slots: {
|
|
2187
2190
|
docusignIframeSlot: _isDemo
|
|
2188
2191
|
? DemoDocusignIframe({ callbacks: props.callbacks })
|
|
2189
2192
|
: docusignIframeSlot,
|
|
2190
2193
|
} })));
|
|
2191
2194
|
}
|
|
2192
|
-
get el() { return index
|
|
2195
|
+
get el() { return index.getElement(this); }
|
|
2193
2196
|
};
|
|
2194
2197
|
function useDocusignFormDemo(props) {
|
|
2195
|
-
const setStep = index_module.
|
|
2198
|
+
const setStep = index_module.wn(TAX_CONTEXT_NAMESPACE);
|
|
2196
2199
|
return cjs.cjs({
|
|
2197
2200
|
text: props.getTextProps(),
|
|
2198
2201
|
states: {
|
|
@@ -2226,19 +2229,19 @@ function useDocusignFormDemo(props) {
|
|
|
2226
2229
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
2227
2230
|
}
|
|
2228
2231
|
const DemoDocusignIframe = ({ callbacks }) => {
|
|
2229
|
-
return (index
|
|
2232
|
+
return (index.h("div", { style: {
|
|
2230
2233
|
width: "100%",
|
|
2231
2234
|
height: "600px",
|
|
2232
2235
|
background: "#fafafa",
|
|
2233
2236
|
display: "flex",
|
|
2234
2237
|
justifyContent: "center",
|
|
2235
2238
|
alignItems: "center",
|
|
2236
|
-
} }, index
|
|
2239
|
+
} }, index.h("div", { style: {
|
|
2237
2240
|
display: "flex",
|
|
2238
2241
|
flexDirection: "column",
|
|
2239
2242
|
gap: "12px",
|
|
2240
2243
|
alignItems: "center",
|
|
2241
|
-
} }, index
|
|
2244
|
+
} }, index.h("span", null, "Placeholder for docusign iframe"), index.h("div", { style: { display: "flex", gap: "8px" } }, index.h("sl-button", { type: "primary", submit: true, exportparts: "base: primarybutton-base", onClick: callbacks.demo.onBack }, "Back to Step 2"), index.h("sl-button", { type: "primary", submit: true, exportparts: "base: primarybutton-base", onClick: callbacks.demo.onSubmit }, "Continue to Step 4")))));
|
|
2242
2245
|
};
|
|
2243
2246
|
|
|
2244
2247
|
const style$3 = {
|
|
@@ -2261,6 +2264,7 @@ const style$3 = {
|
|
|
2261
2264
|
display: "flex",
|
|
2262
2265
|
flexDirection: "column",
|
|
2263
2266
|
gap: "var(--sl-spacing-medium)",
|
|
2267
|
+
width: "100%",
|
|
2264
2268
|
},
|
|
2265
2269
|
RadioContent: {
|
|
2266
2270
|
display: "flex",
|
|
@@ -2309,9 +2313,6 @@ const style$3 = {
|
|
|
2309
2313
|
color: "var(--sl-color-danger-500)",
|
|
2310
2314
|
},
|
|
2311
2315
|
},
|
|
2312
|
-
CannotChangeAlertContainer: {
|
|
2313
|
-
maxWidth: "797px",
|
|
2314
|
-
},
|
|
2315
2316
|
PartnerAlertContainer: {
|
|
2316
2317
|
"&::part(base)": {
|
|
2317
2318
|
backgroundColor: "var(--sl-color-sky-100)",
|
|
@@ -2373,61 +2374,60 @@ const IndirectTaxFormView = (props) => {
|
|
|
2373
2374
|
var _a;
|
|
2374
2375
|
const { states, states: { formState }, callbacks, text, refs, slots, } = props;
|
|
2375
2376
|
const { classes } = sheet$3;
|
|
2376
|
-
return (index
|
|
2377
|
-
index
|
|
2377
|
+
return (index.h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
2378
|
+
index.h("style", { type: "text/css" },
|
|
2378
2379
|
styleString$3,
|
|
2379
2380
|
vanillaStyle$2),
|
|
2380
|
-
index
|
|
2381
|
-
index
|
|
2382
|
-
!states.hideSteps && (index
|
|
2381
|
+
index.h("div", { class: classes.TextContainer },
|
|
2382
|
+
index.h("div", null,
|
|
2383
|
+
!states.hideSteps && (index.h("p", null,
|
|
2383
2384
|
" ",
|
|
2384
2385
|
global.intl.formatMessage({
|
|
2385
2386
|
id: "formStep",
|
|
2386
2387
|
defaultMessage: text.formStep,
|
|
2387
2388
|
}, { step: states.step, count: FORM_STEPS }))),
|
|
2388
|
-
index
|
|
2389
|
-
index
|
|
2390
|
-
index
|
|
2391
|
-
states.loadingError && (index
|
|
2392
|
-
index
|
|
2393
|
-
index
|
|
2394
|
-
index
|
|
2395
|
-
index
|
|
2389
|
+
index.h("h3", null, text.indirectTax),
|
|
2390
|
+
index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription),
|
|
2391
|
+
index.h("p", { class: classes.DescriptionText }, text.indirectTaxDescription)),
|
|
2392
|
+
states.loadingError && (index.h("div", null,
|
|
2393
|
+
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$3.classes.AlertContainer },
|
|
2394
|
+
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2395
|
+
index.h("strong", null, text.error.loadingErrorAlertHeader),
|
|
2396
|
+
index.h("br", null),
|
|
2396
2397
|
text.error.loadingErrorAlertDescription))),
|
|
2397
|
-
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index
|
|
2398
|
-
index
|
|
2399
|
-
index
|
|
2400
|
-
index
|
|
2398
|
+
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$3.classes.AlertContainer },
|
|
2399
|
+
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2400
|
+
index.h("strong", null, text.error.generalTitle),
|
|
2401
|
+
index.h("br", null),
|
|
2401
2402
|
text.error.generalDescription)),
|
|
2402
|
-
states.isPartner && (index
|
|
2403
|
-
index
|
|
2404
|
-
index
|
|
2405
|
-
index
|
|
2403
|
+
states.isPartner && (index.h("sl-alert", { type: "primary", open: true, class: sheet$3.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
|
|
2404
|
+
index.h("sl-icon", { slot: "icon", name: "info-circle" }),
|
|
2405
|
+
index.h("strong", null, text.isPartnerAlertHeader),
|
|
2406
|
+
index.h("br", null),
|
|
2406
2407
|
text.isPartnerAlertDescription)),
|
|
2407
|
-
index
|
|
2408
|
-
index
|
|
2409
|
-
states.loading ? (index
|
|
2410
|
-
index
|
|
2411
|
-
index
|
|
2412
|
-
index
|
|
2413
|
-
index
|
|
2408
|
+
index.h("div", null,
|
|
2409
|
+
index.h("h4", null, text.indirectTaxDetails))),
|
|
2410
|
+
states.loading ? (index.h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } })) : (index.h("div", null,
|
|
2411
|
+
index.h("div", { class: classes.RadioContainer },
|
|
2412
|
+
index.h("div", { class: classes.InnerRadioContainer },
|
|
2413
|
+
index.h("sl-radio", { exportparts: "base: radio-base", name: "/checked", value: "notRegistered", id: "notRegistered", checked: formState.checked === "notRegistered", onInput: () => callbacks.onChange("notRegistered"), disabled: states.disabled || states.isPartner },
|
|
2414
|
+
index.h("div", { class: classes.RadioContent },
|
|
2414
2415
|
text.notRegistered,
|
|
2415
|
-
index
|
|
2416
|
-
index
|
|
2417
|
-
index
|
|
2416
|
+
index.h("p", { class: classes.DescriptionText }, text.notRegisteredSubtext))),
|
|
2417
|
+
index.h("sl-radio", { exportparts: "base: radio-base", name: "/checked", value: "otherRegion", id: "otherRegion", checked: formState.checked === "otherRegion", onInput: () => callbacks.onChange("otherRegion"), disabled: states.disabled || states.isPartner },
|
|
2418
|
+
index.h("div", { class: classes.RadioContent },
|
|
2418
2419
|
text.otherRegion,
|
|
2419
|
-
index
|
|
2420
|
+
index.h("p", { class: classes.DescriptionText }, text.otherRegionSubtext))),
|
|
2420
2421
|
slots.registeredInDifferentCountryDetailsSlot)),
|
|
2421
|
-
index
|
|
2422
|
-
index
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
index
|
|
2427
|
-
index$1.h("sl-button", { class: classes.SecondaryBtn, type: "text", disabled: states.disabled, onClick: callbacks.onBack, exportparts: "base: secondarybutton-base" }, text.backButton))))));
|
|
2422
|
+
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "primary", open: true, class: classes.InfoAlert },
|
|
2423
|
+
index.h("sl-icon", { class: classes.InfoWarningIcon, slot: "icon", name: "exclamation-triangle" }),
|
|
2424
|
+
text.cannotChangeInfoAlert),
|
|
2425
|
+
index.h("div", { class: classes.BtnContainer },
|
|
2426
|
+
index.h("sl-button", { type: "primary", disabled: states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton),
|
|
2427
|
+
index.h("sl-button", { class: classes.SecondaryBtn, type: "text", disabled: states.disabled, onClick: callbacks.onBack, exportparts: "base: secondarybutton-base" }, text.backButton))))));
|
|
2428
2428
|
};
|
|
2429
2429
|
|
|
2430
|
-
const CONNECT_PARTNER =
|
|
2430
|
+
const CONNECT_PARTNER = index_module.dist.gql `
|
|
2431
2431
|
mutation createImpactConnection($vars: ImpactConnectionInput!) {
|
|
2432
2432
|
createImpactConnection(impactConnectionInput: $vars) {
|
|
2433
2433
|
success
|
|
@@ -2465,15 +2465,15 @@ function getOption(countries, countryCode) {
|
|
|
2465
2465
|
}
|
|
2466
2466
|
function useIndirectTaxForm(props) {
|
|
2467
2467
|
var _a, _b, _c, _d, _e;
|
|
2468
|
-
const user = index_module.
|
|
2469
|
-
const locale = index_module.
|
|
2468
|
+
const user = index_module.Q();
|
|
2469
|
+
const locale = index_module.L();
|
|
2470
2470
|
const formRef = stencilHooks_module.useRef(null);
|
|
2471
|
-
const context = index_module.
|
|
2472
|
-
const [step, setStep] = index_module.
|
|
2473
|
-
const [connectImpactPartner, { loading: connectLoading, errors: connectErrors },] = index_module
|
|
2474
|
-
const userForm = index_module.
|
|
2475
|
-
const { data: userData, refetch, errors: userError, } = index_module.
|
|
2476
|
-
const { data: _countriesRes, loading: countriesLoading } = index_module.
|
|
2471
|
+
const context = index_module.In(TAX_FORM_CONTEXT_NAMESPACE);
|
|
2472
|
+
const [step, setStep] = index_module.bn(TAX_CONTEXT_NAMESPACE);
|
|
2473
|
+
const [connectImpactPartner, { loading: connectLoading, errors: connectErrors },] = index_module.$e(CONNECT_PARTNER);
|
|
2474
|
+
const userForm = index_module.In(USER_FORM_CONTEXT_NAMESPACE);
|
|
2475
|
+
const { data: userData, refetch, errors: userError, } = index_module.Mn(USER_QUERY_NAMESPACE);
|
|
2476
|
+
const { data: _countriesRes, loading: countriesLoading } = index_module.Mn(COUNTRIES_QUERY_NAMESPACE);
|
|
2477
2477
|
const intlLocale = (locale === null || locale === void 0 ? void 0 : locale.replace("_", "-")) || "en";
|
|
2478
2478
|
const _countries = stencilHooks_module.useMemo(() => { var _a, _b; return (_b = (_a = _countriesRes === null || _countriesRes === void 0 ? void 0 : _countriesRes.impactPayoutCountries) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.map((country) => sqmInvoiceTableView.getCountryObj({ countryCode: country.countryCode, locale: intlLocale })); }, [(_a = _countriesRes === null || _countriesRes === void 0 ? void 0 : _countriesRes.impactPayoutCountries) === null || _a === void 0 ? void 0 : _a.data]);
|
|
2479
2479
|
const [loading, setLoading] = stencilHooks_module.useState(false);
|
|
@@ -2663,7 +2663,7 @@ function useIndirectTaxForm(props) {
|
|
|
2663
2663
|
|
|
2664
2664
|
const IndirectTaxForm = class {
|
|
2665
2665
|
constructor(hostRef) {
|
|
2666
|
-
index
|
|
2666
|
+
index.registerInstance(this, hostRef);
|
|
2667
2667
|
/**
|
|
2668
2668
|
* @uiName Setup progress
|
|
2669
2669
|
*/
|
|
@@ -2809,7 +2809,7 @@ const IndirectTaxForm = class {
|
|
|
2809
2809
|
* @uiName Page description
|
|
2810
2810
|
*/
|
|
2811
2811
|
this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
|
|
2812
|
-
stencilHooks_module.h(this);
|
|
2812
|
+
stencilHooks_module.h$1(this);
|
|
2813
2813
|
}
|
|
2814
2814
|
disconnectedCallback() { }
|
|
2815
2815
|
getTextProps() {
|
|
@@ -2844,7 +2844,7 @@ const IndirectTaxForm = class {
|
|
|
2844
2844
|
const props = index_module.isDemo()
|
|
2845
2845
|
? useDemoIndirectTaxForm(this)
|
|
2846
2846
|
: useIndirectTaxForm(this);
|
|
2847
|
-
const registeredInDifferentCountryDetailsSlot = (index
|
|
2847
|
+
const registeredInDifferentCountryDetailsSlot = (index.h(sqmInvoiceTableView.OtherRegionSlotView, { states: {
|
|
2848
2848
|
hide: props.states.formState.checked !== "otherRegion",
|
|
2849
2849
|
disabled: props.states.disabled || props.states.isPartner,
|
|
2850
2850
|
formState: props.slotProps.formState,
|
|
@@ -2856,13 +2856,13 @@ const IndirectTaxForm = class {
|
|
|
2856
2856
|
provinces: props.data.provinces,
|
|
2857
2857
|
allCountries: props.data.allCountries,
|
|
2858
2858
|
}, text: props.text.slotText }));
|
|
2859
|
-
return (index
|
|
2859
|
+
return (index.h(index.Host, null, index.h(IndirectTaxFormView, { callbacks: props.callbacks, states: props.states, refs: props.refs, text: props.text, slots: {
|
|
2860
2860
|
registeredInDifferentCountryDetailsSlot,
|
|
2861
2861
|
} })));
|
|
2862
2862
|
}
|
|
2863
2863
|
};
|
|
2864
2864
|
function useDemoIndirectTaxForm(props) {
|
|
2865
|
-
const setStep = index_module.
|
|
2865
|
+
const setStep = index_module.wn(TAX_CONTEXT_NAMESPACE);
|
|
2866
2866
|
const [option, setOption] = stencilHooks_module.useState(null);
|
|
2867
2867
|
const [demoFormState, setDemoFormState] = stencilHooks_module.useState({});
|
|
2868
2868
|
return cjs.cjs({
|
|
@@ -2946,7 +2946,7 @@ function useDemoIndirectTaxForm(props) {
|
|
|
2946
2946
|
|
|
2947
2947
|
const debug = stencilHooks_module.browser("sq:useInvoiceTable");
|
|
2948
2948
|
const CSS_NAMESPACE = "sqm-invoice-table";
|
|
2949
|
-
const GET_INVOICES =
|
|
2949
|
+
const GET_INVOICES = index_module.dist.gql `
|
|
2950
2950
|
query getUserTaxInfo($limit: Int!, $offset: Int!) {
|
|
2951
2951
|
user: viewer {
|
|
2952
2952
|
... on User {
|
|
@@ -2972,8 +2972,8 @@ const GET_INVOICES = index.dist.gql `
|
|
|
2972
2972
|
`;
|
|
2973
2973
|
function useInvoiceTable(props, emptyElement, loadingElement) {
|
|
2974
2974
|
var _a;
|
|
2975
|
-
const user = index_module.
|
|
2976
|
-
const locale = index_module.
|
|
2975
|
+
const user = index_module.Q();
|
|
2976
|
+
const locale = index_module.L();
|
|
2977
2977
|
const [content, setContent] = stencilHooks_module.useReducer((state, next) => ({
|
|
2978
2978
|
...state,
|
|
2979
2979
|
...next,
|
|
@@ -2983,7 +2983,7 @@ function useInvoiceTable(props, emptyElement, loadingElement) {
|
|
|
2983
2983
|
loading: false,
|
|
2984
2984
|
page: 0,
|
|
2985
2985
|
});
|
|
2986
|
-
const { envelope: invoicesData, states, callbacks, } = index_module.
|
|
2986
|
+
const { envelope: invoicesData, states, callbacks, } = index_module.kn(GET_INVOICES, (data) => { var _a, _b, _c; return (_c = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher) === null || _c === void 0 ? void 0 : _c.invoices; }, {
|
|
2987
2987
|
limit: props.perPage,
|
|
2988
2988
|
offset: 0,
|
|
2989
2989
|
}, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
@@ -3007,7 +3007,7 @@ function useInvoiceTable(props, emptyElement, loadingElement) {
|
|
|
3007
3007
|
netEarnings: `${invoice.currency}${((_c = (invoice.totalAmount - invoice.totalVatAmount)) === null || _c === void 0 ? void 0 : _c.toFixed(2)) || "0.00"}`,
|
|
3008
3008
|
downloadUrl: invoice.downloadUrl,
|
|
3009
3009
|
};
|
|
3010
|
-
const cellPromise = columnComponents === null || columnComponents === void 0 ? void 0 : columnComponents.map(async (c) => tryMethod(c, () => c.renderCell(invoiceData, { locale }, index
|
|
3010
|
+
const cellPromise = columnComponents === null || columnComponents === void 0 ? void 0 : columnComponents.map(async (c) => tryMethod(c, () => c.renderCell(invoiceData, { locale }, index.h)));
|
|
3011
3011
|
const cells = (await Promise.all(cellPromise));
|
|
3012
3012
|
return cells;
|
|
3013
3013
|
});
|
|
@@ -3076,7 +3076,7 @@ async function tryMethod(c, callback) {
|
|
|
3076
3076
|
// renderLabel did not return a promise, so this method probably doesn't exist
|
|
3077
3077
|
// therefore, we IGNORE the label
|
|
3078
3078
|
debug("label promise failed", e);
|
|
3079
|
-
return index
|
|
3079
|
+
return index.h("span", null);
|
|
3080
3080
|
}
|
|
3081
3081
|
try {
|
|
3082
3082
|
return await labelPromise;
|
|
@@ -3086,8 +3086,8 @@ async function tryMethod(c, callback) {
|
|
|
3086
3086
|
// This should not happen so we fail fast
|
|
3087
3087
|
debug("Error rendering label", e);
|
|
3088
3088
|
const userError = useReferralTable.generateUserError(e);
|
|
3089
|
-
return (index
|
|
3090
|
-
index
|
|
3089
|
+
return (index.h("details", null,
|
|
3090
|
+
index.h("summary", null, "Error"),
|
|
3091
3091
|
userError));
|
|
3092
3092
|
}
|
|
3093
3093
|
}
|
|
@@ -3114,7 +3114,7 @@ const getMockData = () => {
|
|
|
3114
3114
|
|
|
3115
3115
|
const InvoiceTable = class {
|
|
3116
3116
|
constructor(hostRef) {
|
|
3117
|
-
index
|
|
3117
|
+
index.registerInstance(this, hostRef);
|
|
3118
3118
|
/**
|
|
3119
3119
|
* Number of invoices displayed per page
|
|
3120
3120
|
*
|
|
@@ -3145,27 +3145,27 @@ const InvoiceTable = class {
|
|
|
3145
3145
|
this.emptyStateHeader = "View your invoice details";
|
|
3146
3146
|
/** @uiName Empty invoice table description */
|
|
3147
3147
|
this.emptyStateText = "Refer a friend to view the status of your invoices and rewards earned";
|
|
3148
|
-
stencilHooks_module.h(this);
|
|
3148
|
+
stencilHooks_module.h$1(this);
|
|
3149
3149
|
}
|
|
3150
3150
|
disconnectedCallback() { }
|
|
3151
3151
|
render() {
|
|
3152
|
-
const empty = (index
|
|
3153
|
-
const loading = index
|
|
3152
|
+
const empty = (index.h(EmptySlot, { emptyStateHeader: this.emptyStateHeader, emptyStateText: this.emptyStateText }));
|
|
3153
|
+
const loading = index.h(LoadingSlot, null);
|
|
3154
3154
|
const { states, data, callbacks, elements } = index_module.isDemo()
|
|
3155
3155
|
? useInvoiceTableDemo(this, empty, loading)
|
|
3156
3156
|
: useInvoiceTable(this, empty, loading);
|
|
3157
3157
|
reRender.useRequestRerender([this.perPage]);
|
|
3158
|
-
return (index
|
|
3158
|
+
return (index.h(sqmInvoiceTableView.InvoiceTableView, { header: this.header, description: this.description }, index.h(GenericTableView.GenericTableView, { states: states, data: data, callbacks: callbacks, elements: elements })));
|
|
3159
3159
|
}
|
|
3160
3160
|
};
|
|
3161
3161
|
function EmptySlot(props) {
|
|
3162
|
-
return (index
|
|
3162
|
+
return (index.h("slot", { name: "empty" }, index.h("sqm-empty", { "empty-state-image": "https://res.cloudinary.com/saasquatch/image/upload/v1710363322/squatch-assets/invoice-table-empty.png", "empty-state-header": props.emptyStateHeader, "empty-state-text": props.emptyStateText })));
|
|
3163
3163
|
}
|
|
3164
3164
|
function LoadingSlot() {
|
|
3165
|
-
return (index
|
|
3165
|
+
return (index.h("slot", { name: "loading" }, index.h(LoadingRow, null), index.h(LoadingRow, null), index.h(LoadingRow, null), index.h(LoadingRow, null)));
|
|
3166
3166
|
}
|
|
3167
3167
|
function LoadingRow() {
|
|
3168
|
-
return (index
|
|
3168
|
+
return (index.h("sqm-table-row", null, index.h("sqm-table-cell", { colspan: 6 }, index.h("sl-skeleton", null))));
|
|
3169
3169
|
}
|
|
3170
3170
|
function useInvoiceTableDemo(props, emptyElement, loadingElement) {
|
|
3171
3171
|
const [content, setContent] = stencilHooks_module.useReducer((state, next) => ({
|
|
@@ -3259,9 +3259,9 @@ function useInvoiceTableDemo(props, emptyElement, loadingElement) {
|
|
|
3259
3259
|
|
|
3260
3260
|
const InvoiceTableDataCell = class {
|
|
3261
3261
|
constructor(hostRef) {
|
|
3262
|
-
index
|
|
3262
|
+
index.registerInstance(this, hostRef);
|
|
3263
3263
|
this.ignored = true;
|
|
3264
|
-
stencilHooks_module.h(this);
|
|
3264
|
+
stencilHooks_module.h$1(this);
|
|
3265
3265
|
}
|
|
3266
3266
|
disconnectedCallback() { }
|
|
3267
3267
|
render() {
|
|
@@ -3271,28 +3271,28 @@ const InvoiceTableDataCell = class {
|
|
|
3271
3271
|
|
|
3272
3272
|
const InvoiceTableDataColumn = class {
|
|
3273
3273
|
constructor(hostRef) {
|
|
3274
|
-
index
|
|
3275
|
-
stencilHooks_module.h(this);
|
|
3274
|
+
index.registerInstance(this, hostRef);
|
|
3275
|
+
stencilHooks_module.h$1(this);
|
|
3276
3276
|
}
|
|
3277
3277
|
disconnectedCallback() { }
|
|
3278
3278
|
async renderCell(data) {
|
|
3279
|
-
return (index
|
|
3279
|
+
return (index.h("sqm-invoice-table-data-cell", { data: data[this.property] }));
|
|
3280
3280
|
}
|
|
3281
3281
|
async renderLabel() {
|
|
3282
3282
|
return Promise.resolve(this.columnTitle);
|
|
3283
3283
|
}
|
|
3284
3284
|
render() {
|
|
3285
3285
|
reRender.useRequestRerender([this.columnTitle, this.property]);
|
|
3286
|
-
return (index
|
|
3286
|
+
return (index.h(index.Host, { style: { display: "none" } }, index.h("slot", null)));
|
|
3287
3287
|
}
|
|
3288
3288
|
};
|
|
3289
3289
|
|
|
3290
3290
|
const RewardTableDateCell = class {
|
|
3291
3291
|
constructor(hostRef) {
|
|
3292
|
-
index
|
|
3292
|
+
index.registerInstance(this, hostRef);
|
|
3293
3293
|
this.ignored = true;
|
|
3294
3294
|
this.locale = "en";
|
|
3295
|
-
stencilHooks_module.h(this);
|
|
3295
|
+
stencilHooks_module.h$1(this);
|
|
3296
3296
|
}
|
|
3297
3297
|
disconnectedCallback() { }
|
|
3298
3298
|
render() {
|
|
@@ -3306,58 +3306,58 @@ const RewardTableDateCell = class {
|
|
|
3306
3306
|
|
|
3307
3307
|
const InvoiceTableDateColumn = class {
|
|
3308
3308
|
constructor(hostRef) {
|
|
3309
|
-
index
|
|
3310
|
-
stencilHooks_module.h(this);
|
|
3309
|
+
index.registerInstance(this, hostRef);
|
|
3310
|
+
stencilHooks_module.h$1(this);
|
|
3311
3311
|
}
|
|
3312
3312
|
disconnectedCallback() { }
|
|
3313
3313
|
async renderCell(data, options) {
|
|
3314
|
-
return (index
|
|
3314
|
+
return (index.h("sqm-invoice-table-date-cell", { date: data.dateCreated, locale: options === null || options === void 0 ? void 0 : options.locale }));
|
|
3315
3315
|
}
|
|
3316
3316
|
async renderLabel() {
|
|
3317
3317
|
return this.columnTitle;
|
|
3318
3318
|
}
|
|
3319
3319
|
render() {
|
|
3320
3320
|
reRender.useRequestRerender([this.columnTitle]);
|
|
3321
|
-
return (index
|
|
3321
|
+
return (index.h(index.Host, { style: { display: "none" } }, index.h("slot", null)));
|
|
3322
3322
|
}
|
|
3323
3323
|
};
|
|
3324
3324
|
|
|
3325
3325
|
const InvoiceTableDownloadCell = class {
|
|
3326
3326
|
constructor(hostRef) {
|
|
3327
|
-
index
|
|
3327
|
+
index.registerInstance(this, hostRef);
|
|
3328
3328
|
this.ignored = true;
|
|
3329
|
-
stencilHooks_module.h(this);
|
|
3329
|
+
stencilHooks_module.h$1(this);
|
|
3330
3330
|
}
|
|
3331
3331
|
disconnectedCallback() { }
|
|
3332
3332
|
render() {
|
|
3333
3333
|
const vanillaStyle = `svg:hover, svg:hover * {
|
|
3334
3334
|
cursor: pointer;
|
|
3335
3335
|
}`;
|
|
3336
|
-
return (index
|
|
3336
|
+
return (index.h(index.Host, null, index.h("style", null, vanillaStyle), !!this.downloadUrl && (index.h("a", { href: this.downloadUrl, target: "_blank" }, index.h("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { d: "M0.625 12.4375C0.79076 12.4375 0.949732 12.5033 1.06694 12.6206C1.18415 12.7378 1.25 12.8967 1.25 13.0625V16.1875C1.25 16.519 1.3817 16.837 1.61612 17.0714C1.85054 17.3058 2.16848 17.4375 2.5 17.4375H17.5C17.8315 17.4375 18.1495 17.3058 18.3839 17.0714C18.6183 16.837 18.75 16.519 18.75 16.1875V13.0625C18.75 12.8967 18.8158 12.7378 18.9331 12.6206C19.0503 12.5033 19.2092 12.4375 19.375 12.4375C19.5408 12.4375 19.6997 12.5033 19.8169 12.6206C19.9342 12.7378 20 12.8967 20 13.0625V16.1875C20 16.8505 19.7366 17.4864 19.2678 17.9553C18.7989 18.4241 18.163 18.6875 17.5 18.6875H2.5C1.83696 18.6875 1.20107 18.4241 0.732233 17.9553C0.263392 17.4864 0 16.8505 0 16.1875V13.0625C0 12.8967 0.065848 12.7378 0.183058 12.6206C0.300269 12.5033 0.45924 12.4375 0.625 12.4375Z", fill: "#717179" }), index.h("path", { d: "M9.5575 14.88C9.61556 14.9382 9.68453 14.9844 9.76046 15.0159C9.83639 15.0474 9.91779 15.0636 10 15.0636C10.0822 15.0636 10.1636 15.0474 10.2395 15.0159C10.3155 14.9844 10.3844 14.9382 10.4425 14.88L14.1925 11.13C14.3099 11.0126 14.3758 10.8535 14.3758 10.6875C14.3758 10.5215 14.3099 10.3624 14.1925 10.245C14.0751 10.1276 13.916 10.0617 13.75 10.0617C13.584 10.0617 13.4249 10.1276 13.3075 10.245L10.625 12.9288V1.9375C10.625 1.77174 10.5592 1.61277 10.4419 1.49556C10.3247 1.37835 10.1658 1.3125 10 1.3125C9.83424 1.3125 9.67527 1.37835 9.55806 1.49556C9.44085 1.61277 9.375 1.77174 9.375 1.9375V12.9288L6.6925 10.245C6.57514 10.1276 6.41597 10.0617 6.25 10.0617C6.08403 10.0617 5.92486 10.1276 5.8075 10.245C5.69014 10.3624 5.62421 10.5215 5.62421 10.6875C5.62421 10.8535 5.69014 11.0126 5.8075 11.13L9.5575 14.88Z", fill: "#717179" }))))));
|
|
3337
3337
|
}
|
|
3338
3338
|
};
|
|
3339
3339
|
|
|
3340
3340
|
const InvoiceTableGenericColumn = class {
|
|
3341
3341
|
constructor(hostRef) {
|
|
3342
|
-
index
|
|
3343
|
-
stencilHooks_module.h(this);
|
|
3342
|
+
index.registerInstance(this, hostRef);
|
|
3343
|
+
stencilHooks_module.h$1(this);
|
|
3344
3344
|
}
|
|
3345
3345
|
disconnectedCallback() { }
|
|
3346
3346
|
async renderCell(data) {
|
|
3347
|
-
return (index
|
|
3347
|
+
return (index.h("sqm-invoice-table-download-cell", { downloadUrl: data.downloadUrl }));
|
|
3348
3348
|
}
|
|
3349
3349
|
async renderLabel() {
|
|
3350
|
-
return index
|
|
3350
|
+
return index.h("span", null);
|
|
3351
3351
|
}
|
|
3352
3352
|
render() {
|
|
3353
|
-
return (index
|
|
3353
|
+
return (index.h(index.Host, { style: { display: "none" } }, index.h("slot", null)));
|
|
3354
3354
|
}
|
|
3355
3355
|
};
|
|
3356
3356
|
|
|
3357
|
-
const PayPalIcon = () => (index
|
|
3358
|
-
index
|
|
3359
|
-
index
|
|
3360
|
-
index
|
|
3357
|
+
const PayPalIcon = () => (index.h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "17", height: "20", viewBox: "0 0 17 20", fill: "none" },
|
|
3358
|
+
index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M7.20649 4.55454H12.7877C15.7842 4.55454 16.9137 6.08577 16.7343 8.34231C16.4486 12.0629 14.2228 14.118 11.2728 14.118H9.78446C9.37916 14.118 9.10675 14.3866 9.00044 15.1254L8.36923 19.39C8.32937 19.6653 8.1832 19.8265 7.97058 19.8467H4.46242C4.13021 19.8467 4.01725 19.5915 4.10363 19.0408L6.23643 5.36045C6.32281 4.81646 6.61515 4.55454 7.20649 4.55454Z", fill: "#009EE3" }),
|
|
3359
|
+
index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M3.71826 -0.15332H9.30607C10.8808 -0.15332 12.7478 -0.099593 13.9903 1.00853C14.8208 1.754 15.2593 2.936 15.1597 4.21203C14.8142 8.52364 12.2694 10.9347 8.84762 10.9347H6.09026C5.61852 10.9347 5.31288 11.2503 5.18 12.0965L4.40926 17.0461C4.35611 17.3685 4.22323 17.5566 3.97739 17.5767H0.53567C0.156948 17.5767 0.0174187 17.2879 0.117082 16.6432L2.59539 0.786908C2.69505 0.148896 3.04055 -0.15332 3.71826 -0.15332Z", fill: "#113984" }),
|
|
3360
|
+
index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M5.25973 11.5995L6.23643 5.36045C6.32281 4.81646 6.61515 4.54782 7.20649 4.54782H12.7877C13.7112 4.54782 14.4554 4.69557 15.0401 4.96421C14.4819 8.799 12.0236 10.9347 8.80775 10.9347H6.06368C5.6916 10.9347 5.42583 11.1227 5.25973 11.5995Z", fill: "#172C70" })));
|
|
3361
3361
|
|
|
3362
3362
|
const style$4 = {
|
|
3363
3363
|
CardContainer: {
|
|
@@ -3498,12 +3498,12 @@ function PayoutDetailsCardView(props) {
|
|
|
3498
3498
|
const { classes } = sheet;
|
|
3499
3499
|
const { states, text } = props;
|
|
3500
3500
|
const renderLoadingSkeleton = () => {
|
|
3501
|
-
return (index
|
|
3502
|
-
index
|
|
3503
|
-
index
|
|
3504
|
-
index
|
|
3505
|
-
index
|
|
3506
|
-
index
|
|
3501
|
+
return (index.h("div", { class: classes.CardContainer },
|
|
3502
|
+
index.h("div", { class: classes.StatusContainer },
|
|
3503
|
+
index.h("sl-skeleton", { class: classes.SkeletonOne }),
|
|
3504
|
+
index.h("sl-skeleton", { class: classes.SkeletonTwo })),
|
|
3505
|
+
index.h("sl-skeleton", { class: classes.SkeletonThree }),
|
|
3506
|
+
index.h("sl-skeleton", { class: classes.SkeletonOne })));
|
|
3507
3507
|
};
|
|
3508
3508
|
const renderStatusBadge = (status, statusBadgeText) => {
|
|
3509
3509
|
const badgeType = status === "nextPayout" ? "success" : "primary";
|
|
@@ -3513,7 +3513,7 @@ function PayoutDetailsCardView(props) {
|
|
|
3513
3513
|
}, {
|
|
3514
3514
|
badgeText: status,
|
|
3515
3515
|
});
|
|
3516
|
-
return (index
|
|
3516
|
+
return (index.h("sl-badge", { pill: true, type: badgeType }, statusText));
|
|
3517
3517
|
};
|
|
3518
3518
|
const thresholdText = global.intl.formatMessage({
|
|
3519
3519
|
id: "thresholdText",
|
|
@@ -3521,16 +3521,16 @@ function PayoutDetailsCardView(props) {
|
|
|
3521
3521
|
}, {
|
|
3522
3522
|
thresholdBalance: states.thresholdBalance,
|
|
3523
3523
|
});
|
|
3524
|
-
return (index
|
|
3525
|
-
index
|
|
3526
|
-
states.error && (index
|
|
3527
|
-
index
|
|
3528
|
-
index
|
|
3529
|
-
index
|
|
3524
|
+
return (index.h("div", { class: classes.Container },
|
|
3525
|
+
index.h("style", { type: "text/css" }, styleString),
|
|
3526
|
+
states.error && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", class: classes.Alert, type: "warning", open: true },
|
|
3527
|
+
index.h("sl-icon", { slot: "icon", name: "exclamation-triangle" }),
|
|
3528
|
+
index.h("div", { class: classes.AlertContent },
|
|
3529
|
+
index.h("b", null, text.error.errorTitleText),
|
|
3530
3530
|
text.error.errorDescriptionText))),
|
|
3531
|
-
states.loading ? (renderLoadingSkeleton()) : (index
|
|
3532
|
-
index
|
|
3533
|
-
index
|
|
3531
|
+
states.loading ? (renderLoadingSkeleton()) : (index.h("div", { class: classes.CardContainer },
|
|
3532
|
+
index.h("div", { class: classes.StatusContainer },
|
|
3533
|
+
index.h("p", { class: classes.SubduedRegularText }, states.badgeStatus === "thresholdPayout"
|
|
3534
3534
|
? states.thresholdBalance
|
|
3535
3535
|
? thresholdText
|
|
3536
3536
|
: ""
|
|
@@ -3538,18 +3538,18 @@ function PayoutDetailsCardView(props) {
|
|
|
3538
3538
|
states.badgeStatus === "thresholdPayout"
|
|
3539
3539
|
? null
|
|
3540
3540
|
: renderStatusBadge(states.badgeStatus, text.statusBadgeText)),
|
|
3541
|
-
index
|
|
3542
|
-
states.payoutType === "PAYPAL" ? (index
|
|
3543
|
-
index
|
|
3544
|
-
index
|
|
3545
|
-
index
|
|
3541
|
+
index.h("h1", { class: classes.MainCurrency }, states.balance),
|
|
3542
|
+
states.payoutType === "PAYPAL" ? (index.h("div", { class: classes.PaypalDetailsContainer },
|
|
3543
|
+
index.h("span", { class: classes.PaypalEmail }, states.paypalEmailAddress),
|
|
3544
|
+
index.h(PayPalIcon, null))) : (index.h("div", { class: classes.AccountDetailsContainer },
|
|
3545
|
+
index.h("span", null, states.cardNumberPreview
|
|
3546
3546
|
? `${text.accountText} ${states.cardNumberPreview}`
|
|
3547
3547
|
: text.payoutMissingInformationText)))))));
|
|
3548
3548
|
}
|
|
3549
3549
|
|
|
3550
3550
|
function usePayoutDetailsCard(props) {
|
|
3551
3551
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
3552
|
-
const { data, loading } = index_module.
|
|
3552
|
+
const { data, loading } = index_module.Mn(USER_QUERY_NAMESPACE);
|
|
3553
3553
|
const publisher = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher;
|
|
3554
3554
|
function getPayoutDetailedStatusText(paymentDay) {
|
|
3555
3555
|
var _a;
|
|
@@ -3607,7 +3607,7 @@ function usePayoutDetailsCard(props) {
|
|
|
3607
3607
|
|
|
3608
3608
|
const PayoutDetailsCard = class {
|
|
3609
3609
|
constructor(hostRef) {
|
|
3610
|
-
index
|
|
3610
|
+
index.registerInstance(this, hostRef);
|
|
3611
3611
|
/**
|
|
3612
3612
|
* Badge text indicating payout status
|
|
3613
3613
|
* @uiName Payout badge status text
|
|
@@ -3638,7 +3638,7 @@ const PayoutDetailsCard = class {
|
|
|
3638
3638
|
* @uiName Payout missing information subtext
|
|
3639
3639
|
*/
|
|
3640
3640
|
this.payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
|
|
3641
|
-
stencilHooks_module.h(this);
|
|
3641
|
+
stencilHooks_module.h$1(this);
|
|
3642
3642
|
}
|
|
3643
3643
|
disconnectedCallback() { }
|
|
3644
3644
|
getTextProps() {
|
|
@@ -3655,7 +3655,7 @@ const PayoutDetailsCard = class {
|
|
|
3655
3655
|
const props = index_module.isDemo()
|
|
3656
3656
|
? useDemoPayoutDetailsCard(this)
|
|
3657
3657
|
: usePayoutDetailsCard(this);
|
|
3658
|
-
return (index
|
|
3658
|
+
return (index.h(index.Host, null, index.h(PayoutDetailsCardView, { text: props.text, states: props.states })));
|
|
3659
3659
|
}
|
|
3660
3660
|
};
|
|
3661
3661
|
function useDemoPayoutDetailsCard(props) {
|
|
@@ -3681,27 +3681,27 @@ function useDemoPayoutDetailsCard(props) {
|
|
|
3681
3681
|
|
|
3682
3682
|
const TableCell = class {
|
|
3683
3683
|
constructor(hostRef) {
|
|
3684
|
-
index
|
|
3684
|
+
index.registerInstance(this, hostRef);
|
|
3685
3685
|
/** @uiName Column span */
|
|
3686
3686
|
this.colspan = 1;
|
|
3687
3687
|
/** @uiName Padding */
|
|
3688
3688
|
this.padding = "15px 10px";
|
|
3689
3689
|
}
|
|
3690
3690
|
render() {
|
|
3691
|
-
return (index
|
|
3691
|
+
return (index.h(index.Host, { style: { display: "contents" } }, index.h("td", { colSpan: this.colspan, style: { padding: this.padding } }, index.h("slot", null))));
|
|
3692
3692
|
}
|
|
3693
3693
|
};
|
|
3694
3694
|
|
|
3695
3695
|
const TableRow = class {
|
|
3696
3696
|
constructor(hostRef) {
|
|
3697
|
-
index
|
|
3697
|
+
index.registerInstance(this, hostRef);
|
|
3698
3698
|
/**
|
|
3699
3699
|
* @uiName Border
|
|
3700
3700
|
*/
|
|
3701
3701
|
this.border = "1px solid #EAEAEA";
|
|
3702
3702
|
}
|
|
3703
3703
|
render() {
|
|
3704
|
-
return (index
|
|
3704
|
+
return (index.h(index.Host, { style: { display: "contents" } }, index.h("tr", { style: { border: this.border } }, index.h("slot", null))));
|
|
3705
3705
|
}
|
|
3706
3706
|
};
|
|
3707
3707
|
|
|
@@ -3738,21 +3738,21 @@ function getCurrentStep(user) {
|
|
|
3738
3738
|
}
|
|
3739
3739
|
function useTaxAndCash() {
|
|
3740
3740
|
var _a, _b, _c, _d, _e;
|
|
3741
|
-
const host = index_module.
|
|
3742
|
-
const user = index_module.
|
|
3743
|
-
const locale = index_module.
|
|
3741
|
+
const host = index_module._();
|
|
3742
|
+
const user = index_module.Q();
|
|
3743
|
+
const locale = index_module.L();
|
|
3744
3744
|
// State for current step of form
|
|
3745
|
-
const [step, setStep] = index_module.
|
|
3745
|
+
const [step, setStep] = index_module.Cn({
|
|
3746
3746
|
namespace: TAX_CONTEXT_NAMESPACE,
|
|
3747
3747
|
initialValue: "/loading",
|
|
3748
3748
|
});
|
|
3749
3749
|
// State for when to hide steps, or override certain actions
|
|
3750
|
-
const [context, _setContext] = index_module.
|
|
3750
|
+
const [context, _setContext] = index_module.Cn({
|
|
3751
3751
|
namespace: TAX_FORM_CONTEXT_NAMESPACE,
|
|
3752
3752
|
initialValue: {},
|
|
3753
3753
|
});
|
|
3754
3754
|
// State to carry user form information into step 2
|
|
3755
|
-
const [userFormContext, _setUserFormContext] = index_module.
|
|
3755
|
+
const [userFormContext, _setUserFormContext] = index_module.Cn({
|
|
3756
3756
|
namespace: USER_FORM_CONTEXT_NAMESPACE,
|
|
3757
3757
|
initialValue: {
|
|
3758
3758
|
firstName: undefined,
|
|
@@ -3762,19 +3762,19 @@ function useTaxAndCash() {
|
|
|
3762
3762
|
currency: undefined,
|
|
3763
3763
|
},
|
|
3764
3764
|
});
|
|
3765
|
-
const [_currenciesContext, setCurrenciesContext] = index_module.
|
|
3765
|
+
const [_currenciesContext, setCurrenciesContext] = index_module.Cn({
|
|
3766
3766
|
namespace: CURRENCIES_NAMESPACE,
|
|
3767
3767
|
initialValue: [],
|
|
3768
3768
|
});
|
|
3769
|
-
const [_countriesContext, _setCountriesContext] = index_module.
|
|
3769
|
+
const [_countriesContext, _setCountriesContext] = index_module.Cn({
|
|
3770
3770
|
namespace: COUNTRIES_NAMESPACE,
|
|
3771
3771
|
initialValue: [],
|
|
3772
3772
|
});
|
|
3773
|
-
const [_sortedCountriesContext, setSortedCountriesContext] = index_module.
|
|
3773
|
+
const [_sortedCountriesContext, setSortedCountriesContext] = index_module.Cn({
|
|
3774
3774
|
namespace: SORTED_COUNTRIES_NAMESPACE,
|
|
3775
3775
|
initialValue: [],
|
|
3776
3776
|
});
|
|
3777
|
-
const { data, errors } = index_module.
|
|
3777
|
+
const { data, errors } = index_module.Fn({
|
|
3778
3778
|
namespace: USER_QUERY_NAMESPACE,
|
|
3779
3779
|
query: GET_USER,
|
|
3780
3780
|
skip: !user,
|
|
@@ -3784,12 +3784,12 @@ function useTaxAndCash() {
|
|
|
3784
3784
|
});
|
|
3785
3785
|
const countryCode = ((_c = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher) === null || _c === void 0 ? void 0 : _c.countryCode) ||
|
|
3786
3786
|
userFormContext.countryCode;
|
|
3787
|
-
index_module.
|
|
3787
|
+
index_module.Fn({
|
|
3788
3788
|
namespace: COUNTRIES_QUERY_NAMESPACE,
|
|
3789
3789
|
query: GET_COUNTRIES,
|
|
3790
3790
|
skip: !user,
|
|
3791
3791
|
});
|
|
3792
|
-
const { data: financeNetworkData, refetch } = index_module.
|
|
3792
|
+
const { data: financeNetworkData, refetch } = index_module.Fn({
|
|
3793
3793
|
namespace: FINANCE_NETWORK_SETTINGS_NAMESPACE,
|
|
3794
3794
|
query: GET_FINANCE_NETWORK_SETTINGS,
|
|
3795
3795
|
skip: !user,
|
|
@@ -3797,7 +3797,7 @@ function useTaxAndCash() {
|
|
|
3797
3797
|
filter: getFinanceNetworkFilter(),
|
|
3798
3798
|
},
|
|
3799
3799
|
});
|
|
3800
|
-
const { data: currenciesData } = index_module.
|
|
3800
|
+
const { data: currenciesData } = index_module.Fn({
|
|
3801
3801
|
namespace: CURRENCIES_QUERY_NAMESPACE,
|
|
3802
3802
|
query: GET_CURRENCIES,
|
|
3803
3803
|
skip: !user,
|
|
@@ -3878,14 +3878,14 @@ function useTaxAndCash() {
|
|
|
3878
3878
|
step,
|
|
3879
3879
|
setStep,
|
|
3880
3880
|
context,
|
|
3881
|
-
namespace: index_module
|
|
3881
|
+
namespace: index_module.Pn(TAX_CONTEXT_NAMESPACE),
|
|
3882
3882
|
loading: step === "/loading",
|
|
3883
3883
|
};
|
|
3884
3884
|
}
|
|
3885
3885
|
|
|
3886
3886
|
const TaxAndCashMonolith = class {
|
|
3887
3887
|
constructor(hostRef) {
|
|
3888
|
-
index
|
|
3888
|
+
index.registerInstance(this, hostRef);
|
|
3889
3889
|
/*---------------------------------------------------------------------------------
|
|
3890
3890
|
!IMPORTANT!: Make sure to also change the prop names in the respective component
|
|
3891
3891
|
-----------------------------------------------------------------------------------*/
|
|
@@ -4168,6 +4168,11 @@ const TaxAndCashMonolith = class {
|
|
|
4168
4168
|
* @uiGroup Step 3 Properties
|
|
4169
4169
|
*/
|
|
4170
4170
|
this.step3_refreshButton = "Refresh Page";
|
|
4171
|
+
/**
|
|
4172
|
+
* @uiName Exit button text
|
|
4173
|
+
* @uiGroup Step 3 Properties
|
|
4174
|
+
*/
|
|
4175
|
+
this.step3_exitButton = "Exit";
|
|
4171
4176
|
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4172
4177
|
STEP 4 PROPS:
|
|
4173
4178
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
@@ -4764,7 +4769,7 @@ const TaxAndCashMonolith = class {
|
|
|
4764
4769
|
* @uiGroup General Form Properties
|
|
4765
4770
|
*/
|
|
4766
4771
|
this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
|
|
4767
|
-
stencilHooks_module.h(this);
|
|
4772
|
+
stencilHooks_module.h$1(this);
|
|
4768
4773
|
}
|
|
4769
4774
|
disconnectedCallback() { }
|
|
4770
4775
|
// this field is required prop
|
|
@@ -4795,31 +4800,31 @@ const TaxAndCashMonolith = class {
|
|
|
4795
4800
|
// @ts-ignore
|
|
4796
4801
|
if ((_a = this.demoData) === null || _a === void 0 ? void 0 : _a.showTextProps) {
|
|
4797
4802
|
const textProps = utils.getProps(this);
|
|
4798
|
-
return (index
|
|
4803
|
+
return (index.h("div", null, (_b = Object.keys(textProps)) === null || _b === void 0 ? void 0 : _b.map((prop) => {
|
|
4799
4804
|
if (prop === "demoData")
|
|
4800
4805
|
return;
|
|
4801
|
-
return (index
|
|
4806
|
+
return (index.h("div", null, index.h("b", null, prop, ":"), " ", this[prop], index.h("hr", null)));
|
|
4802
4807
|
})));
|
|
4803
4808
|
}
|
|
4804
4809
|
switch (props.step) {
|
|
4805
4810
|
case "/1":
|
|
4806
|
-
return (index
|
|
4811
|
+
return (index.h("sqm-user-info-form", Object.assign({}, this.getGeneralStepTextProps("step1_"))));
|
|
4807
4812
|
case "/2":
|
|
4808
|
-
return (index
|
|
4813
|
+
return (index.h("sqm-indirect-tax-form", Object.assign({}, this.getGeneralStepTextProps("step2_"))));
|
|
4809
4814
|
case "/3":
|
|
4810
|
-
return (index
|
|
4815
|
+
return (index.h("sqm-docusign-form", Object.assign({}, this.getGeneralStepTextProps("step3_"))));
|
|
4811
4816
|
case "/4":
|
|
4812
|
-
return (index
|
|
4817
|
+
return (index.h("sqm-banking-info-form", Object.assign({}, this.getGeneralStepTextProps("step4_"))));
|
|
4813
4818
|
case "/dashboard":
|
|
4814
|
-
return (index
|
|
4819
|
+
return (index.h("sqm-tax-and-cash-dashboard", Object.assign({}, this.getGeneralStepTextProps("dashboard_"))));
|
|
4815
4820
|
case "/error":
|
|
4816
|
-
return (index
|
|
4821
|
+
return (index.h(sqmInvoiceTableView.ErrorView, { loadingErrorAlertHeader: this.loadingErrorAlertHeader, loadingErrorAlertDescription: this.loadingErrorAlertDescription }));
|
|
4817
4822
|
}
|
|
4818
|
-
return index
|
|
4823
|
+
return index.h(sqmInvoiceTableView.LoadingView, null);
|
|
4819
4824
|
}
|
|
4820
4825
|
};
|
|
4821
4826
|
function useDemoTaxAndCash(props) {
|
|
4822
|
-
const [step, setStep] = index_module.
|
|
4827
|
+
const [step, setStep] = index_module.Cn({
|
|
4823
4828
|
namespace: TAX_CONTEXT_NAMESPACE,
|
|
4824
4829
|
initialValue: "/1",
|
|
4825
4830
|
});
|
|
@@ -4990,17 +4995,17 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
4990
4995
|
var _a;
|
|
4991
4996
|
const { states, text, callbacks, slots } = props;
|
|
4992
4997
|
const statusMap = {
|
|
4993
|
-
NOT_VERIFIED: (index
|
|
4994
|
-
index
|
|
4995
|
-
index
|
|
4998
|
+
NOT_VERIFIED: (index.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
4999
|
+
index.h("sl-badge", { type: "warning", pill: true }, text.statusTextNotVerified),
|
|
5000
|
+
index.h("p", null, global.intl.formatMessage({
|
|
4996
5001
|
id: `badgeTextAwaitingReview`,
|
|
4997
5002
|
defaultMessage: text.badgeTextAwaitingReview,
|
|
4998
5003
|
}, {
|
|
4999
5004
|
dateSubmitted: states.dateSubmitted,
|
|
5000
5005
|
})))),
|
|
5001
|
-
ACTIVE: (index
|
|
5002
|
-
index
|
|
5003
|
-
index
|
|
5006
|
+
ACTIVE: (index.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
5007
|
+
index.h("sl-badge", { type: "success", pill: true }, text.statusTextActive),
|
|
5008
|
+
index.h("p", null, global.intl.formatMessage({
|
|
5004
5009
|
id: `badgeTextSubmittedOn`,
|
|
5005
5010
|
defaultMessage: states.documentType === "W9"
|
|
5006
5011
|
? text.badgeTextSubmittedOn
|
|
@@ -5008,14 +5013,14 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5008
5013
|
}, {
|
|
5009
5014
|
dateSubmitted: states.dateSubmitted,
|
|
5010
5015
|
})))),
|
|
5011
|
-
INACTIVE: (index
|
|
5012
|
-
index
|
|
5013
|
-
index
|
|
5016
|
+
INACTIVE: (index.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
5017
|
+
index.h("sl-badge", { type: "danger", pill: true }, text.statusTextNotActive),
|
|
5018
|
+
index.h("p", null, text.invalidForm))),
|
|
5014
5019
|
};
|
|
5015
5020
|
const alertMap = {
|
|
5016
|
-
INACTIVE: (index
|
|
5017
|
-
index
|
|
5018
|
-
index
|
|
5021
|
+
INACTIVE: (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.WarningAlertContainer },
|
|
5022
|
+
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5023
|
+
index.h("strong", null, global.intl.formatMessage({
|
|
5019
5024
|
id: `taxAlertHeaderNotActive`,
|
|
5020
5025
|
defaultMessage: states.documentType === "W9"
|
|
5021
5026
|
? text.taxAlertHeaderNotActiveW9
|
|
@@ -5023,7 +5028,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5023
5028
|
}, {
|
|
5024
5029
|
documentType: states.documentTypeString,
|
|
5025
5030
|
})),
|
|
5026
|
-
index
|
|
5031
|
+
index.h("br", null),
|
|
5027
5032
|
global.intl.formatMessage({
|
|
5028
5033
|
id: `taxAlertMessage`,
|
|
5029
5034
|
defaultMessage: states.documentType === "W9"
|
|
@@ -5061,66 +5066,66 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5061
5066
|
});
|
|
5062
5067
|
}
|
|
5063
5068
|
};
|
|
5064
|
-
return (index
|
|
5065
|
-
index
|
|
5066
|
-
index
|
|
5067
|
-
states.loadingError && (index
|
|
5068
|
-
index
|
|
5069
|
-
index
|
|
5070
|
-
index
|
|
5071
|
-
index
|
|
5069
|
+
return (index.h("div", null,
|
|
5070
|
+
index.h("div", null,
|
|
5071
|
+
index.h("style", { type: "text/css" }, styleString$4),
|
|
5072
|
+
states.loadingError && (index.h("div", null,
|
|
5073
|
+
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.WarningAlertContainer },
|
|
5074
|
+
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5075
|
+
index.h("strong", null, text.error.loadingErrorAlertHeader),
|
|
5076
|
+
index.h("br", null),
|
|
5072
5077
|
text.error.loadingErrorAlertDescription))),
|
|
5073
|
-
((_a = states.errors) === null || _a === void 0 ? void 0 : _a.general) && (index
|
|
5074
|
-
index
|
|
5075
|
-
index
|
|
5076
|
-
index
|
|
5078
|
+
((_a = states.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.WarningAlertContainer },
|
|
5079
|
+
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5080
|
+
index.h("strong", null, text.error.generalTitle),
|
|
5081
|
+
index.h("br", null),
|
|
5077
5082
|
text.error.generalDescription)),
|
|
5078
|
-
index
|
|
5079
|
-
index
|
|
5080
|
-
index
|
|
5081
|
-
index
|
|
5083
|
+
index.h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet$4.classes.Dialog, open: states.showNewFormDialog, "onSl-hide": callbacks.onNewFormCancel },
|
|
5084
|
+
index.h("p", null, text.replaceTaxFormModalBodyText),
|
|
5085
|
+
index.h("sl-button", { slot: "footer", type: "primary", class: sheet$4.classes.DialogButton, onClick: callbacks.onNewFormClick }, text.newFormButton),
|
|
5086
|
+
index.h("sl-button", { slot: "footer", type: "default", class: sheet$4.classes.DialogButton, onClick: callbacks.onNewFormCancel }, text.cancelButton)),
|
|
5082
5087
|
states.status === "INACTIVE" && alertMap[states.status],
|
|
5083
|
-
index
|
|
5084
|
-
index
|
|
5085
|
-
index
|
|
5086
|
-
index
|
|
5088
|
+
index.h("div", null,
|
|
5089
|
+
index.h("h3", null, text.bankingInformationSectionHeader),
|
|
5090
|
+
index.h("p", { class: sheet$4.classes.PageDescriptionText }, text.taxAndPayoutsDescription),
|
|
5091
|
+
index.h("div", { class: sheet$4.classes.BankingInformationContainer },
|
|
5087
5092
|
slots.payoutDetailsCardSlot,
|
|
5088
|
-
!states.loading && (index
|
|
5089
|
-
states.canEditPayoutInfo && (index
|
|
5090
|
-
index
|
|
5091
|
-
index
|
|
5092
|
-
index
|
|
5093
|
-
index
|
|
5094
|
-
index
|
|
5095
|
-
index
|
|
5096
|
-
index
|
|
5097
|
-
index
|
|
5098
|
-
index
|
|
5093
|
+
!states.loading && (index.h("p", { class: sheet$4.classes.DescriptionText }, text.payoutFromImpact)),
|
|
5094
|
+
states.canEditPayoutInfo && (index.h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$4.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
|
|
5095
|
+
index.h("div", { class: sheet$4.classes.TaxDocumentsContainer },
|
|
5096
|
+
index.h("div", null, states.loading ? (index.h("div", { class: sheet$4.classes.TaxSectionSkeletonContainer },
|
|
5097
|
+
index.h("sl-skeleton", { class: sheet$4.classes.SkeletonOne }),
|
|
5098
|
+
index.h("sl-skeleton", { class: sheet$4.classes.SkeletonTwo }))) : (index.h("div", null, states.noFormNeeded ? (index.h("div", null,
|
|
5099
|
+
index.h("h3", { class: sheet$4.classes.TaxDocumentsSectionHeaderContainer }, text.taxDocumentSectionHeader),
|
|
5100
|
+
index.h("p", { class: sheet$4.classes.TaxDocSubtext }, text.noFormNeededSubtext))) : (index.h("div", null,
|
|
5101
|
+
index.h("span", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
5102
|
+
index.h("div", { class: sheet$4.classes.StatusContainer },
|
|
5103
|
+
index.h("h3", null, global.intl.formatMessage({
|
|
5099
5104
|
id: "section-subheader",
|
|
5100
5105
|
defaultMessage: text.taxDocumentSectionSubHeader,
|
|
5101
5106
|
}, {
|
|
5102
5107
|
documentType: states.documentTypeString,
|
|
5103
5108
|
})),
|
|
5104
|
-
index
|
|
5105
|
-
index
|
|
5106
|
-
index
|
|
5107
|
-
index
|
|
5108
|
-
index
|
|
5109
|
-
index
|
|
5109
|
+
index.h("span", { class: sheet$4.classes.StatusAlert }, statusMap[states.status]))),
|
|
5110
|
+
states.status !== "NOT_VERIFIED" && (index.h("sl-button", { disabled: states.disabled || states.loading, onClick: callbacks.onClick, type: "default", class: sheet$4.classes.NewFormButton, exportparts: "base: primarybutton-base" }, text.newFormButton)))))))),
|
|
5111
|
+
index.h("div", { class: sheet$4.classes.IndirectTaxPreviewContainer }, states.loading ? (index.h("div", { class: sheet$4.classes.TaxSectionSkeletonContainer },
|
|
5112
|
+
index.h("sl-skeleton", { class: sheet$4.classes.SkeletonOne }),
|
|
5113
|
+
index.h("sl-skeleton", { class: sheet$4.classes.SkeletonTwo }))) : (index.h("div", null,
|
|
5114
|
+
index.h("h3", { class: sheet$4.classes.IndirectTaxPreviewHeaderContainer },
|
|
5110
5115
|
text.indirectTaxInfoSectionHeader,
|
|
5111
|
-
index
|
|
5112
|
-
index
|
|
5113
|
-
index
|
|
5114
|
-
index
|
|
5115
|
-
!states.notRegistered && (index
|
|
5116
|
-
index
|
|
5116
|
+
index.h("sl-tooltip", { trigger: "hover", placement: "top", content: text.indirectTaxTooltipSupport, class: sheet$4.classes.TooltipContainer },
|
|
5117
|
+
index.h("sl-icon", { name: "info-circle", class: sheet$4.classes.ToolTip }))),
|
|
5118
|
+
index.h("div", { class: sheet$4.classes.IndirectTaxPreviewDetails },
|
|
5119
|
+
index.h("span", null, states.notRegistered ? (index.h("span", { class: sheet$4.classes.NotRegisteredIndirectTaxText }, text.notRegisteredForTax)) : (getIndirectTaxRegisteredIn())),
|
|
5120
|
+
!states.notRegistered && (index.h("div", { class: sheet$4.classes.TaxNumberContainer },
|
|
5121
|
+
index.h("span", null, global.intl.formatMessage({
|
|
5117
5122
|
id: `indirectTaxDetails`,
|
|
5118
5123
|
defaultMessage: text.indirectTaxDetails,
|
|
5119
5124
|
}, {
|
|
5120
5125
|
indirectTaxType: states.indirectTaxType,
|
|
5121
5126
|
indirectTaxNumber: states.indirectTaxNumber,
|
|
5122
5127
|
})),
|
|
5123
|
-
index
|
|
5128
|
+
index.h("span", null,
|
|
5124
5129
|
states.qstNumber &&
|
|
5125
5130
|
global.intl.formatMessage({
|
|
5126
5131
|
id: `qstNumber`,
|
|
@@ -5135,14 +5140,14 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5135
5140
|
}, {
|
|
5136
5141
|
subRegionTaxNumber: states.subRegionTaxNumber,
|
|
5137
5142
|
})))),
|
|
5138
|
-
!states.notRegistered && (index
|
|
5139
|
-
index
|
|
5140
|
-
index
|
|
5141
|
-
index
|
|
5142
|
-
index
|
|
5143
|
-
index
|
|
5144
|
-
index
|
|
5145
|
-
index
|
|
5143
|
+
!states.notRegistered && (index.h("div", { class: sheet$4.classes.InvoiceTableContainer },
|
|
5144
|
+
index.h("sqm-invoice-table", { description: text.invoiceDescription, "prev-label": text.invoicePrevLabel, "more-label": text.invoiceMoreLabel, header: text.invoiceHeader, "empty-state-header": text.invoiceEmptyStateHeader, "empty-state-text": text.invoiceEmptyStateText },
|
|
5145
|
+
index.h("sqm-invoice-table-download-column", null),
|
|
5146
|
+
index.h("sqm-invoice-table-date-column", { "column-title": text.dateColumnTitle }),
|
|
5147
|
+
index.h("sqm-invoice-table-data-column", { "column-title": text.invoiceColumnTitle, property: "invoiceId" }),
|
|
5148
|
+
index.h("sqm-invoice-table-data-column", { "column-title": text.earningsColumnTitle, property: "earnings" }),
|
|
5149
|
+
index.h("sqm-invoice-table-data-column", { "column-title": text.indirectTaxColumnTitle, property: "indirectTax" }),
|
|
5150
|
+
index.h("sqm-invoice-table-data-column", { "column-title": text.earningsAfterTaxColumnTitle, property: "netEarnings" })))))))))));
|
|
5146
5151
|
};
|
|
5147
5152
|
|
|
5148
5153
|
function getCountryName(countryCode, locale) {
|
|
@@ -5181,15 +5186,15 @@ function getIndirectTaxType(taxInformation) {
|
|
|
5181
5186
|
}
|
|
5182
5187
|
const useTaxAndCashDashboard = (props) => {
|
|
5183
5188
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
5184
|
-
const setStep = index_module.
|
|
5185
|
-
const setContext = index_module.
|
|
5189
|
+
const setStep = index_module.wn(TAX_CONTEXT_NAMESPACE);
|
|
5190
|
+
const setContext = index_module.wn(TAX_FORM_CONTEXT_NAMESPACE);
|
|
5186
5191
|
const [showDialog, setShowDialog] = stencilHooks_module.useState(false);
|
|
5187
|
-
const locale = index_module.
|
|
5192
|
+
const locale = index_module.L();
|
|
5188
5193
|
stencilHooks_module.useEffect(() => {
|
|
5189
5194
|
// Clear override context once on submitted
|
|
5190
5195
|
setContext({});
|
|
5191
5196
|
}, []);
|
|
5192
|
-
const { data, loading, errors: userError, } = index_module.
|
|
5197
|
+
const { data, loading, errors: userError, } = index_module.Mn(USER_QUERY_NAMESPACE);
|
|
5193
5198
|
const publisher = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher;
|
|
5194
5199
|
const documentType = publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType;
|
|
5195
5200
|
const submissionDate = (_c = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _c === void 0 ? void 0 : _c.dateCreated;
|
|
@@ -5248,7 +5253,7 @@ const useTaxAndCashDashboard = (props) => {
|
|
|
5248
5253
|
|
|
5249
5254
|
const TaxAndCashDashboard = class {
|
|
5250
5255
|
constructor(hostRef) {
|
|
5251
|
-
index
|
|
5256
|
+
index.registerInstance(this, hostRef);
|
|
5252
5257
|
/**
|
|
5253
5258
|
* @uiName Active tax form badge label
|
|
5254
5259
|
*/
|
|
@@ -5508,7 +5513,7 @@ const TaxAndCashDashboard = class {
|
|
|
5508
5513
|
* @uiName Cancel button label
|
|
5509
5514
|
*/
|
|
5510
5515
|
this.cancelButton = "Cancel";
|
|
5511
|
-
stencilHooks_module.h(this);
|
|
5516
|
+
stencilHooks_module.h$1(this);
|
|
5512
5517
|
}
|
|
5513
5518
|
disconnectedCallback() { }
|
|
5514
5519
|
getTextProps() {
|
|
@@ -5527,8 +5532,8 @@ const TaxAndCashDashboard = class {
|
|
|
5527
5532
|
const props = index_module.isDemo()
|
|
5528
5533
|
? useDemoTaxAndCashDashboard(this)
|
|
5529
5534
|
: useTaxAndCashDashboard(this);
|
|
5530
|
-
return (index
|
|
5531
|
-
payoutDetailsCardSlot: (index
|
|
5535
|
+
return (index.h(index.Host, null, index.h(TaxAndCashDashboardView, { callbacks: props.callbacks, states: props.states, text: props.text, slots: {
|
|
5536
|
+
payoutDetailsCardSlot: (index.h("sqm-payout-details-card", Object.assign({}, this.getTextProps()))),
|
|
5532
5537
|
} })));
|
|
5533
5538
|
}
|
|
5534
5539
|
};
|
|
@@ -6606,6 +6611,27 @@ const style$6 = {
|
|
|
6606
6611
|
color: "var(--sl-color-neutral-500)",
|
|
6607
6612
|
fontSize: "var(--sl-font-size-medium)",
|
|
6608
6613
|
},
|
|
6614
|
+
PhoneInputsSection: {
|
|
6615
|
+
display: "flex",
|
|
6616
|
+
alignItems: "flex-start",
|
|
6617
|
+
flexDirection: "column",
|
|
6618
|
+
gap: "4px",
|
|
6619
|
+
"& p": {
|
|
6620
|
+
fontSize: "var(--sl-font-size-small)",
|
|
6621
|
+
color: "var(--sl-input-label-color)",
|
|
6622
|
+
fontWeight: "var(--sl-font-weight-semibold)",
|
|
6623
|
+
},
|
|
6624
|
+
},
|
|
6625
|
+
PhoneInputsContainer: {
|
|
6626
|
+
display: "flex",
|
|
6627
|
+
alignItems: "flex-start",
|
|
6628
|
+
gap: "4px",
|
|
6629
|
+
width: "100%",
|
|
6630
|
+
"& #phoneNumber": {
|
|
6631
|
+
width: "100%",
|
|
6632
|
+
minWidth: "0px",
|
|
6633
|
+
},
|
|
6634
|
+
},
|
|
6609
6635
|
};
|
|
6610
6636
|
const sheet$5 = JSS.createStyleSheet(style$6);
|
|
6611
6637
|
const styleString$5 = sheet$5.toString();
|
|
@@ -6631,7 +6657,7 @@ const vanillaStyle$3 = `
|
|
|
6631
6657
|
}
|
|
6632
6658
|
|
|
6633
6659
|
sl-select#phoneNumberCountryCode::part(menu) {
|
|
6634
|
-
width:
|
|
6660
|
+
min-width: 250px;
|
|
6635
6661
|
}
|
|
6636
6662
|
`;
|
|
6637
6663
|
const UserInfoFormView = (props) => {
|
|
@@ -6642,7 +6668,7 @@ const UserInfoFormView = (props) => {
|
|
|
6642
6668
|
id: "bankingCollectionText",
|
|
6643
6669
|
defaultMessage: text.allowBankingCollection,
|
|
6644
6670
|
}, {
|
|
6645
|
-
termsAndConditionsLink: (index
|
|
6671
|
+
termsAndConditionsLink: (index.h("a", { href: text.termsAndConditionsLink, target: "_blank" }, text.termsAndConditionsLabel)),
|
|
6646
6672
|
});
|
|
6647
6673
|
let regionLabel = undefined;
|
|
6648
6674
|
switch (data.regionLabelEnum) {
|
|
@@ -6658,94 +6684,96 @@ const UserInfoFormView = (props) => {
|
|
|
6658
6684
|
default:
|
|
6659
6685
|
regionLabel = text.state;
|
|
6660
6686
|
}
|
|
6661
|
-
return (index
|
|
6662
|
-
index
|
|
6687
|
+
return (index.h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
6688
|
+
index.h("style", { type: "text/css" },
|
|
6663
6689
|
styleString$5,
|
|
6664
6690
|
vanillaStyle$3),
|
|
6665
|
-
states.loadingError && (index
|
|
6666
|
-
index
|
|
6667
|
-
index
|
|
6668
|
-
index
|
|
6669
|
-
index
|
|
6691
|
+
states.loadingError && (index.h("div", null,
|
|
6692
|
+
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.AlertContainer },
|
|
6693
|
+
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
6694
|
+
index.h("strong", null, text.error.loadingErrorAlertHeader),
|
|
6695
|
+
index.h("br", null),
|
|
6670
6696
|
text.error.loadingErrorAlertDescription),
|
|
6671
|
-
index
|
|
6672
|
-
states.loading ? (index
|
|
6673
|
-
index
|
|
6674
|
-
index
|
|
6675
|
-
!states.hideSteps && (index
|
|
6697
|
+
index.h("br", null))),
|
|
6698
|
+
states.loading ? (index.h(sqmInvoiceTableView.GeneralLoadingView, null)) : (index.h("div", null,
|
|
6699
|
+
index.h("div", { class: classes.TextContainer },
|
|
6700
|
+
index.h("div", null,
|
|
6701
|
+
!states.hideSteps && (index.h("p", null, global.intl.formatMessage({
|
|
6676
6702
|
id: "formStep",
|
|
6677
6703
|
defaultMessage: text.formStep,
|
|
6678
6704
|
}, { step: states.step, count: FORM_STEPS }))),
|
|
6679
|
-
index
|
|
6680
|
-
index
|
|
6681
|
-
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index
|
|
6682
|
-
index
|
|
6683
|
-
index
|
|
6684
|
-
index
|
|
6705
|
+
index.h("h3", null, text.personalInformation),
|
|
6706
|
+
index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
|
|
6707
|
+
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$5.classes.AlertContainer },
|
|
6708
|
+
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
6709
|
+
index.h("strong", null, text.error.generalTitle),
|
|
6710
|
+
index.h("br", null),
|
|
6685
6711
|
text.error.generalDescription)),
|
|
6686
|
-
(states.isPartner || states.isUser) && (index
|
|
6687
|
-
index
|
|
6688
|
-
index
|
|
6689
|
-
index
|
|
6712
|
+
(states.isPartner || states.isUser) && (index.h("sl-alert", { type: "primary", open: true, class: sheet$5.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
|
|
6713
|
+
index.h("sl-icon", { slot: "icon", name: "info-circle" }),
|
|
6714
|
+
index.h("strong", null, text.isPartnerAlertHeader),
|
|
6715
|
+
index.h("br", null),
|
|
6690
6716
|
text.isPartnerAlertDescription)),
|
|
6691
|
-
index
|
|
6692
|
-
index
|
|
6693
|
-
index
|
|
6717
|
+
index.h("div", null,
|
|
6718
|
+
index.h("div", { class: classes.InputContainer },
|
|
6719
|
+
index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", value: formState.firstName, label: text.firstName, disabled: states.disabled || states.isUser || states.isPartner }, (((_b = formState.errors) === null || _b === void 0 ? void 0 : _b.firstName) ? {
|
|
6694
6720
|
class: classes.ErrorInput,
|
|
6695
6721
|
helpText: sqmInvoiceTableView.formatErrorMessage(text.firstName, formState.errors.firstName),
|
|
6696
6722
|
}
|
|
6697
6723
|
: {}), { id: "firstName", name: "/firstName", required: true })),
|
|
6698
|
-
index
|
|
6724
|
+
index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", value: formState.lastName, label: text.lastName, disabled: states.disabled || states.isUser || states.isPartner }, (((_c = formState.errors) === null || _c === void 0 ? void 0 : _c.lastName) ? {
|
|
6699
6725
|
class: classes.ErrorInput,
|
|
6700
6726
|
helpText: sqmInvoiceTableView.formatErrorMessage(text.lastName, formState.errors.lastName),
|
|
6701
6727
|
}
|
|
6702
6728
|
: {}), { id: "lastName", name: "/lastName", required: true })),
|
|
6703
|
-
index
|
|
6704
|
-
index
|
|
6729
|
+
index.h("sl-input", { exportparts: "label: input-label, base: input-base", value: formState.email, label: text.email, disabled: true, id: "email", name: "/email", required: true }),
|
|
6730
|
+
index.h("sl-select", Object.assign({ id: "countryCode", exportparts: "label: input-label, base: input-base", name: "/countryCode", label: text.country, value: formState.countryCode, disabled: states.disabled || states.isPartner }, (((_d = formState.errors) === null || _d === void 0 ? void 0 : _d.countryCode) ? {
|
|
6705
6731
|
class: classes.ErrorInput,
|
|
6706
6732
|
helpText: sqmInvoiceTableView.formatErrorMessage(text.country, formState.errors.countryCode),
|
|
6707
6733
|
}
|
|
6708
6734
|
: {}), { required: true, "onSl-select": (e) => callbacks.onFormChange("countryCode", e) }),
|
|
6709
|
-
index
|
|
6735
|
+
index.h("sl-input", { class: classes.SearchInput, placeholder: text.searchForCountryText, onKeyDown: (e) => {
|
|
6710
6736
|
// Stop shoelace intercepting key presses
|
|
6711
6737
|
e.stopPropagation();
|
|
6712
6738
|
}, "onSl-input": (e) => {
|
|
6713
6739
|
callbacks.setCountrySearch(e.target.value);
|
|
6714
6740
|
} }), (_e = data === null || data === void 0 ? void 0 : data.countries) === null || _e === void 0 ? void 0 :
|
|
6715
|
-
_e.map((c) => (index
|
|
6716
|
-
_f.map((c) => (index
|
|
6717
|
-
index
|
|
6718
|
-
index
|
|
6719
|
-
|
|
6720
|
-
|
|
6721
|
-
|
|
6722
|
-
|
|
6723
|
-
|
|
6724
|
-
|
|
6725
|
-
|
|
6726
|
-
|
|
6727
|
-
|
|
6728
|
-
|
|
6729
|
-
|
|
6730
|
-
|
|
6731
|
-
|
|
6732
|
-
|
|
6733
|
-
|
|
6734
|
-
|
|
6735
|
-
|
|
6736
|
-
|
|
6737
|
-
|
|
6738
|
-
|
|
6739
|
-
|
|
6740
|
-
|
|
6741
|
-
|
|
6742
|
-
|
|
6743
|
-
|
|
6744
|
-
|
|
6745
|
-
|
|
6746
|
-
|
|
6747
|
-
|
|
6748
|
-
|
|
6741
|
+
_e.map((c) => (index.h("sl-menu-item", { value: c.countryCode }, c.displayName))), (_f = data === null || data === void 0 ? void 0 : data.allCountries) === null || _f === void 0 ? void 0 :
|
|
6742
|
+
_f.map((c) => (index.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } }, c.displayName)))),
|
|
6743
|
+
index.h("div", { class: classes.PhoneInputsSection },
|
|
6744
|
+
index.h("p", null, text.phoneNumber),
|
|
6745
|
+
index.h("div", { class: classes.PhoneInputsContainer },
|
|
6746
|
+
index.h("sl-select", Object.assign({ id: "phoneNumberCountryCode", exportparts: "label: input-label, base: input-base", name: "/phoneNumberCountryCode", value: formState.phoneNumberCountryCode, disabled: states.disabled || states.isPartner, ref: (el) => (refs.phoneCountryRef.current = el) }, (((_g = formState.errors) === null || _g === void 0 ? void 0 : _g.phoneNumberCountryCode) ? {
|
|
6747
|
+
class: classes.ErrorInput,
|
|
6748
|
+
}
|
|
6749
|
+
: {}), { required: true, "onSl-select": (e) => callbacks.onFormChange("phoneCountry", e) }),
|
|
6750
|
+
index.h("sl-input", { class: classes.SearchInput, placeholder: text.searchForCountryText, onKeyDown: (e) => {
|
|
6751
|
+
// Stop shoelace intercepting key presses
|
|
6752
|
+
e.stopPropagation();
|
|
6753
|
+
}, "onSl-input": (e) => {
|
|
6754
|
+
callbacks.setPhoneCountrySearch(e.target.value);
|
|
6755
|
+
} }), (_h = data === null || data === void 0 ? void 0 : data.phoneCountries) === null || _h === void 0 ? void 0 :
|
|
6756
|
+
_h.map((c) => {
|
|
6757
|
+
var _a, _b;
|
|
6758
|
+
return (index.h("sl-menu-item", { value: c.countryCode },
|
|
6759
|
+
index.h("div", { slot: "prefix" }, `${(_a = PHONE_EXTENSIONS[c.countryCode]) === null || _a === void 0 ? void 0 : _a.name} `), (_b = PHONE_EXTENSIONS[c.countryCode]) === null || _b === void 0 ? void 0 :
|
|
6760
|
+
_b.dial_code));
|
|
6761
|
+
}), (_j = data === null || data === void 0 ? void 0 : data.allCountries) === null || _j === void 0 ? void 0 :
|
|
6762
|
+
_j.map((c) => {
|
|
6763
|
+
var _a, _b;
|
|
6764
|
+
return (index.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } },
|
|
6765
|
+
index.h("div", { slot: "prefix" }, `${(_a = PHONE_EXTENSIONS[c.countryCode]) === null || _a === void 0 ? void 0 : _a.name} `), (_b = PHONE_EXTENSIONS[c.countryCode]) === null || _b === void 0 ? void 0 :
|
|
6766
|
+
_b.dial_code));
|
|
6767
|
+
})),
|
|
6768
|
+
index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", id: "phoneNumber", name: "/phoneNumber", value: formState.phoneNumber, validationError: ({ value }) =>
|
|
6769
|
+
// Naive phone number validation
|
|
6770
|
+
sqmInvoiceTableView.validateBillingField(/[a-zA-Z]+/, value) &&
|
|
6771
|
+
sqmInvoiceTableView.formatErrorMessage(text.phoneNumber, text.error.fieldInvalidError), disabled: states.disabled || states.isPartner }, (((_k = formState.errors) === null || _k === void 0 ? void 0 : _k.phoneNumber) ? {
|
|
6772
|
+
class: classes.ErrorInput,
|
|
6773
|
+
helpText: sqmInvoiceTableView.formatErrorMessage(text.phoneNumber, formState.errors.phoneNumber),
|
|
6774
|
+
}
|
|
6775
|
+
: {}), { required: true })))),
|
|
6776
|
+
index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", label: text.address, id: "address", name: "/address", value: formState.address, validationError: ({ value }) =>
|
|
6749
6777
|
// Checks for non-ASCII characters
|
|
6750
6778
|
!sqmInvoiceTableView.validateBillingField(/^[\x20-\xFF]+$/, value) &&
|
|
6751
6779
|
sqmInvoiceTableView.formatErrorMessage(text.address, text.error.invalidCharacterError), disabled: states.disabled || states.isPartner }, (((_l = formState.errors) === null || _l === void 0 ? void 0 : _l.address) ? {
|
|
@@ -6753,7 +6781,7 @@ const UserInfoFormView = (props) => {
|
|
|
6753
6781
|
helpText: sqmInvoiceTableView.formatErrorMessage(text.address, formState.errors.address),
|
|
6754
6782
|
}
|
|
6755
6783
|
: {}), { required: true })),
|
|
6756
|
-
index
|
|
6784
|
+
index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", label: text.city, id: "city", name: "/city", value: formState.city, validationError: ({ value }) =>
|
|
6757
6785
|
// Checks for non-ASCII characters
|
|
6758
6786
|
!sqmInvoiceTableView.validateBillingField(/^[\x20-\xFF]+$/, value) &&
|
|
6759
6787
|
sqmInvoiceTableView.formatErrorMessage(text.city, text.error.invalidCharacterError), disabled: states.disabled || states.isPartner }, (((_m = formState.errors) === null || _m === void 0 ? void 0 : _m.city) ? {
|
|
@@ -6761,41 +6789,41 @@ const UserInfoFormView = (props) => {
|
|
|
6761
6789
|
helpText: sqmInvoiceTableView.formatErrorMessage(text.city, formState.errors.city),
|
|
6762
6790
|
}
|
|
6763
6791
|
: {}), { required: true })),
|
|
6764
|
-
!states.hideState && (index
|
|
6792
|
+
!states.hideState && (index.h("sl-select", Object.assign({ label: regionLabel, exportparts: "label: input-label, base: input-base", id: "state", name: "/state", value: formState.state, disabled: states.disabled || states.isPartner }, (((_o = formState.errors) === null || _o === void 0 ? void 0 : _o.state) ? {
|
|
6765
6793
|
class: classes.ErrorInput,
|
|
6766
6794
|
helpText: sqmInvoiceTableView.formatErrorMessage(text.state, formState.errors.state),
|
|
6767
6795
|
}
|
|
6768
|
-
: {}), { required: true }), (_p = data.regions) === null || _p === void 0 ? void 0 : _p.map((r) => (index
|
|
6769
|
-
index
|
|
6796
|
+
: {}), { required: true }), (_p = data.regions) === null || _p === void 0 ? void 0 : _p.map((r) => (index.h("sl-menu-item", { value: r.value }, r.label))))),
|
|
6797
|
+
index.h("sl-input", Object.assign({ label: text.postalCode, exportparts: "label: input-label, base: input-base", id: "postalCode", name: "/postalCode", value: formState.postalCode, disabled: states.disabled || states.isPartner }, (((_q = formState.errors) === null || _q === void 0 ? void 0 : _q.postalCode) ? {
|
|
6770
6798
|
class: classes.ErrorInput,
|
|
6771
6799
|
helpText: sqmInvoiceTableView.formatErrorMessage(text.postalCode, formState.errors.postalCode),
|
|
6772
6800
|
}
|
|
6773
6801
|
: {}), { required: true })),
|
|
6774
|
-
index
|
|
6802
|
+
index.h("sl-select", Object.assign({ id: "currency", exportparts: "label: input-label, base: input-base", name: "/currency", label: text.currency, menu: true, value: formState.currency, disabled: states.disabled || states.isPartner, helpText: text.currencyHelpText }, (((_r = formState.errors) === null || _r === void 0 ? void 0 : _r.currency) ? {
|
|
6775
6803
|
class: classes.ErrorInput,
|
|
6776
6804
|
helpText: sqmInvoiceTableView.formatErrorMessage(text.currency, formState.errors.currency),
|
|
6777
6805
|
}
|
|
6778
6806
|
: {}), { required: true, ref: (el) => (refs.currencyRef.current = el) }),
|
|
6779
|
-
index
|
|
6807
|
+
index.h("sl-input", { class: classes.SearchInput, placeholder: text.searchForCurrencyText, onKeyDown: (e) => {
|
|
6780
6808
|
// Stop shoelace intercepting key presses
|
|
6781
6809
|
e.stopPropagation();
|
|
6782
6810
|
}, "onSl-input": (e) => {
|
|
6783
6811
|
callbacks.setCurrencySearch(e.target.value);
|
|
6784
6812
|
} }), (_s = data === null || data === void 0 ? void 0 : data.currencies) === null || _s === void 0 ? void 0 :
|
|
6785
|
-
_s.map((c) => (index
|
|
6813
|
+
_s.map((c) => (index.h("sl-menu-item", { value: c.currencyCode },
|
|
6786
6814
|
c.currencyCode,
|
|
6787
6815
|
" - ",
|
|
6788
6816
|
c.displayName))), (_t = data === null || data === void 0 ? void 0 : data.allCurrencies) === null || _t === void 0 ? void 0 :
|
|
6789
|
-
_t.map((c) => (index
|
|
6817
|
+
_t.map((c) => (index.h("sl-menu-item", { value: c.currencyCode, style: { display: "none" } },
|
|
6790
6818
|
c.currencyCode,
|
|
6791
6819
|
" - ",
|
|
6792
6820
|
c.displayName)))),
|
|
6793
|
-
index
|
|
6794
|
-
index
|
|
6821
|
+
index.h("div", { class: classes.CheckboxWrapper },
|
|
6822
|
+
index.h("sl-checkbox", { exportparts: "label: input-label, base: input-base", checked: formState.allowBankingCollection === true, "onSl-change": (e) => {
|
|
6795
6823
|
e.target.value = e.target.checked;
|
|
6796
6824
|
}, disabled: states.isPartner ? false : states.disabled, required: true, value: formState.allowBankingCollection, id: "allowBankingCollection", name: "/allowBankingCollection" }, bankingCollectionText),
|
|
6797
|
-
((_u = formState.errors) === null || _u === void 0 ? void 0 : _u.allowBankingCollection) && (index
|
|
6798
|
-
index
|
|
6825
|
+
((_u = formState.errors) === null || _u === void 0 ? void 0 : _u.allowBankingCollection) && (index.h("p", { class: classes.ErrorText }, sqmInvoiceTableView.formatErrorMessage(text.termsAndConditionsLabel, formState.errors.allowBankingCollection))))),
|
|
6826
|
+
index.h("sl-button", { type: "primary", disabled: states.isPartner ? false : states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton))))));
|
|
6799
6827
|
};
|
|
6800
6828
|
|
|
6801
6829
|
function useUserInfoForm(props) {
|
|
@@ -6803,12 +6831,12 @@ function useUserInfoForm(props) {
|
|
|
6803
6831
|
const currencyRef = stencilHooks_module.useRef(undefined);
|
|
6804
6832
|
const phoneCountryRef = stencilHooks_module.useRef(undefined);
|
|
6805
6833
|
const formRef = stencilHooks_module.useRef(null);
|
|
6806
|
-
const context = index_module.
|
|
6807
|
-
const countries = index_module.
|
|
6808
|
-
const [step, setStep] = index_module.
|
|
6809
|
-
const [userFormContext, setUserFormContext] = index_module.
|
|
6810
|
-
const { data, loading, errors: userError, } = index_module.
|
|
6811
|
-
const _currencies = index_module.
|
|
6834
|
+
const context = index_module.In(TAX_FORM_CONTEXT_NAMESPACE);
|
|
6835
|
+
const countries = index_module.In(SORTED_COUNTRIES_NAMESPACE);
|
|
6836
|
+
const [step, setStep] = index_module.bn(TAX_CONTEXT_NAMESPACE);
|
|
6837
|
+
const [userFormContext, setUserFormContext] = index_module.bn(USER_FORM_CONTEXT_NAMESPACE);
|
|
6838
|
+
const { data, loading, errors: userError, } = index_module.Mn(USER_QUERY_NAMESPACE);
|
|
6839
|
+
const _currencies = index_module.In(CURRENCIES_NAMESPACE);
|
|
6812
6840
|
const currencies = stencilHooks_module.useMemo(() => [...(_currencies || [])].sort((a, b) => a.displayName.localeCompare(b.displayName)), [_currencies]);
|
|
6813
6841
|
const [countrySearch, setCountrySearch] = stencilHooks_module.useState("");
|
|
6814
6842
|
const [phoneCountrySearch, setPhoneCountrySearch] = stencilHooks_module.useState("");
|
|
@@ -6992,7 +7020,7 @@ function useUserInfoForm(props) {
|
|
|
6992
7020
|
|
|
6993
7021
|
const TaxForm = class {
|
|
6994
7022
|
constructor(hostRef) {
|
|
6995
|
-
index
|
|
7023
|
+
index.registerInstance(this, hostRef);
|
|
6996
7024
|
this.ignored = true;
|
|
6997
7025
|
/**
|
|
6998
7026
|
* @uiName First name field label
|
|
@@ -7140,7 +7168,7 @@ const TaxForm = class {
|
|
|
7140
7168
|
* @uiName Page description
|
|
7141
7169
|
*/
|
|
7142
7170
|
this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
|
|
7143
|
-
stencilHooks_module.h(this);
|
|
7171
|
+
stencilHooks_module.h$1(this);
|
|
7144
7172
|
}
|
|
7145
7173
|
disconnectedCallback() { }
|
|
7146
7174
|
getTextProps() {
|
|
@@ -7160,7 +7188,7 @@ const TaxForm = class {
|
|
|
7160
7188
|
}
|
|
7161
7189
|
render() {
|
|
7162
7190
|
const props = index_module.isDemo() ? useDemoUserInfoForm(this) : useUserInfoForm(this);
|
|
7163
|
-
return (index
|
|
7191
|
+
return (index.h(index.Host, null, index.h(UserInfoFormView, { data: props.data,
|
|
7164
7192
|
// @ts-ignore
|
|
7165
7193
|
states: props.states, callbacks: {
|
|
7166
7194
|
...props.callbacks,
|
|
@@ -7169,7 +7197,7 @@ const TaxForm = class {
|
|
|
7169
7197
|
}
|
|
7170
7198
|
};
|
|
7171
7199
|
function useDemoUserInfoForm(props) {
|
|
7172
|
-
const setStep = index_module.
|
|
7200
|
+
const setStep = index_module.wn(TAX_CONTEXT_NAMESPACE);
|
|
7173
7201
|
return cjs.cjs({
|
|
7174
7202
|
setStep,
|
|
7175
7203
|
onSubmit: () => {
|