@saasquatch/mint-components 1.11.0-7 → 1.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{ShadowViewAddon-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 +522 -493
- 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/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 +143 -114
- 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-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-7b0c819b.entry.js +0 -174
- 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-d29db28c.system.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-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 {
|
|
@@ -89,7 +88,7 @@ const GET_USER = index.dist.gql `
|
|
|
89
88
|
}
|
|
90
89
|
}
|
|
91
90
|
`;
|
|
92
|
-
const GET_COUNTRIES =
|
|
91
|
+
const GET_COUNTRIES = index_module.dist.gql `
|
|
93
92
|
query getCountries {
|
|
94
93
|
impactPayoutCountries(limit: 1000) {
|
|
95
94
|
data {
|
|
@@ -99,7 +98,7 @@ const GET_COUNTRIES = index.dist.gql `
|
|
|
99
98
|
}
|
|
100
99
|
}
|
|
101
100
|
`;
|
|
102
|
-
const GET_CURRENCIES =
|
|
101
|
+
const GET_CURRENCIES = index_module.dist.gql `
|
|
103
102
|
query currencies($locale: RSLocale) {
|
|
104
103
|
currencies(limit: 300) {
|
|
105
104
|
data {
|
|
@@ -109,7 +108,7 @@ const GET_CURRENCIES = index.dist.gql `
|
|
|
109
108
|
}
|
|
110
109
|
}
|
|
111
110
|
`;
|
|
112
|
-
const GET_FINANCE_NETWORK_SETTINGS =
|
|
111
|
+
const GET_FINANCE_NETWORK_SETTINGS = index_module.dist.gql `
|
|
113
112
|
query impactFinanceNetworkSettings(
|
|
114
113
|
$filter: ImpactFinanceNetworkSettingsFilterInput
|
|
115
114
|
) {
|
|
@@ -135,7 +134,7 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
135
134
|
const { errors, ...formState } = props.states.formState;
|
|
136
135
|
return {
|
|
137
136
|
0: {
|
|
138
|
-
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) && {
|
|
139
138
|
class: "error-input",
|
|
140
139
|
helpText: getValidationErrorMessage({
|
|
141
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,
|
|
@@ -144,18 +143,18 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
144
143
|
})))),
|
|
145
144
|
},
|
|
146
145
|
1: {
|
|
147
|
-
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) && {
|
|
148
147
|
class: "error-input",
|
|
149
148
|
helpText: getValidationErrorMessage({
|
|
150
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,
|
|
151
150
|
label: props.text.bankAccountTypeLabel,
|
|
152
151
|
}),
|
|
153
152
|
})),
|
|
154
|
-
index
|
|
155
|
-
index
|
|
153
|
+
index.h("sl-menu-item", { value: "CHECKING" }, props.text.checkingSelectItemLabel),
|
|
154
|
+
index.h("sl-menu-item", { value: "SAVINGS" }, props.text.savingsSelectItemLabel))),
|
|
156
155
|
},
|
|
157
156
|
2: {
|
|
158
|
-
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) && {
|
|
159
158
|
class: "error-input",
|
|
160
159
|
helpText: getValidationErrorMessage({
|
|
161
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,
|
|
@@ -164,7 +163,7 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
164
163
|
})))),
|
|
165
164
|
},
|
|
166
165
|
3: {
|
|
167
|
-
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) && {
|
|
168
167
|
class: "error-input",
|
|
169
168
|
helpText: getValidationErrorMessage({
|
|
170
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,
|
|
@@ -173,7 +172,7 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
173
172
|
})))),
|
|
174
173
|
},
|
|
175
174
|
4: {
|
|
176
|
-
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) && {
|
|
177
176
|
class: "error-input",
|
|
178
177
|
helpText: getValidationErrorMessage({
|
|
179
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,
|
|
@@ -182,7 +181,7 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
182
181
|
})))),
|
|
183
182
|
},
|
|
184
183
|
5: {
|
|
185
|
-
input: (index
|
|
184
|
+
input: (index.h("sl-input", Object.assign({ required: true, label: global.intl.formatMessage({
|
|
186
185
|
id: "routingCodeText",
|
|
187
186
|
defaultMessage: props.text.routingCodeLabel,
|
|
188
187
|
}, {
|
|
@@ -201,7 +200,7 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
201
200
|
})))),
|
|
202
201
|
},
|
|
203
202
|
6: {
|
|
204
|
-
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) && {
|
|
205
204
|
class: "error-input",
|
|
206
205
|
helpText: getValidationErrorMessage({
|
|
207
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,
|
|
@@ -211,17 +210,17 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
211
210
|
},
|
|
212
211
|
7: {
|
|
213
212
|
input: [
|
|
214
|
-
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) && {
|
|
215
214
|
class: "error-input",
|
|
216
215
|
helpText: getValidationErrorMessage({
|
|
217
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,
|
|
218
217
|
label: props.text.classificationLabel,
|
|
219
218
|
}),
|
|
220
219
|
})),
|
|
221
|
-
index
|
|
222
|
-
index
|
|
223
|
-
index
|
|
224
|
-
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({
|
|
225
224
|
id: "fxWireText",
|
|
226
225
|
defaultMessage: props.text.taxPayerIdLabel,
|
|
227
226
|
}, {
|
|
@@ -236,18 +235,18 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
236
235
|
],
|
|
237
236
|
},
|
|
238
237
|
8: {
|
|
239
|
-
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) && {
|
|
240
239
|
class: "error-input",
|
|
241
240
|
helpText: getValidationErrorMessage({
|
|
242
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,
|
|
243
242
|
label: props.text.classificationCPFLabel,
|
|
244
243
|
}),
|
|
245
244
|
})),
|
|
246
|
-
index
|
|
247
|
-
index
|
|
245
|
+
index.h("sl-menu-item", { value: "CPF" }, "CPF"),
|
|
246
|
+
index.h("sl-menu-item", { value: "CNPJ" }, "CNPJ"))),
|
|
248
247
|
},
|
|
249
248
|
9: {
|
|
250
|
-
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) && {
|
|
251
250
|
class: "error-input",
|
|
252
251
|
helpText: getValidationErrorMessage({
|
|
253
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,
|
|
@@ -256,7 +255,7 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
256
255
|
})))),
|
|
257
256
|
},
|
|
258
257
|
10: {
|
|
259
|
-
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) && {
|
|
260
259
|
class: "error-input",
|
|
261
260
|
helpText: getValidationErrorMessage({
|
|
262
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,
|
|
@@ -265,7 +264,7 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
265
264
|
})))),
|
|
266
265
|
},
|
|
267
266
|
11: {
|
|
268
|
-
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) && {
|
|
269
268
|
class: "error-input",
|
|
270
269
|
helpText: getValidationErrorMessage({
|
|
271
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,
|
|
@@ -275,28 +274,28 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
275
274
|
},
|
|
276
275
|
12: {
|
|
277
276
|
input: [
|
|
278
|
-
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) && {
|
|
279
278
|
class: "error-input",
|
|
280
279
|
helpText: getValidationErrorMessage({
|
|
281
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,
|
|
282
281
|
label: props.text.bankAddressLabel,
|
|
283
282
|
}),
|
|
284
283
|
}))),
|
|
285
|
-
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) && {
|
|
286
285
|
class: "error-input",
|
|
287
286
|
helpText: getValidationErrorMessage({
|
|
288
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,
|
|
289
288
|
label: props.text.bankCityLabel,
|
|
290
289
|
}),
|
|
291
290
|
}))),
|
|
292
|
-
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) && {
|
|
293
292
|
class: "error-input",
|
|
294
293
|
helpText: getValidationErrorMessage({
|
|
295
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,
|
|
296
295
|
label: props.text.bankStateLabel,
|
|
297
296
|
}),
|
|
298
297
|
}))),
|
|
299
|
-
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) && {
|
|
300
299
|
class: "error-input",
|
|
301
300
|
helpText: getValidationErrorMessage({
|
|
302
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,
|
|
@@ -306,7 +305,7 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
306
305
|
],
|
|
307
306
|
},
|
|
308
307
|
13: {
|
|
309
|
-
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) && {
|
|
310
309
|
class: "error-input",
|
|
311
310
|
helpText: getValidationErrorMessage({
|
|
312
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,
|
|
@@ -315,16 +314,16 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
315
314
|
})))),
|
|
316
315
|
},
|
|
317
316
|
14: {
|
|
318
|
-
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) && {
|
|
319
318
|
class: "error-input",
|
|
320
319
|
helpText: getValidationErrorMessage({
|
|
321
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,
|
|
322
321
|
label: props.text.classificationLabel,
|
|
323
322
|
}),
|
|
324
323
|
})),
|
|
325
|
-
index
|
|
326
|
-
index
|
|
327
|
-
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))),
|
|
328
327
|
},
|
|
329
328
|
};
|
|
330
329
|
}
|
|
@@ -646,7 +645,6 @@ const style = {
|
|
|
646
645
|
alignItems: "flex-start",
|
|
647
646
|
justifyContent: "flex-start",
|
|
648
647
|
gap: "var(--sl-spacing-xx-small)",
|
|
649
|
-
maxWidth: "797px",
|
|
650
648
|
},
|
|
651
649
|
TitleContainer: {
|
|
652
650
|
display: "flex",
|
|
@@ -750,7 +748,8 @@ const style = {
|
|
|
750
748
|
background: "var(--sl-color-gray-200)",
|
|
751
749
|
},
|
|
752
750
|
LargeSkeleton: {
|
|
753
|
-
width: "
|
|
751
|
+
width: "100%",
|
|
752
|
+
maxWidth: "320px",
|
|
754
753
|
height: "40px",
|
|
755
754
|
borderRadius: "50px",
|
|
756
755
|
background: "var(--sl-color-gray-200)",
|
|
@@ -822,80 +821,80 @@ const BankingInfoFormView = (props) => {
|
|
|
822
821
|
gap: "8px",
|
|
823
822
|
};
|
|
824
823
|
if (checkedValue === undefined) {
|
|
825
|
-
return (index
|
|
826
|
-
index
|
|
827
|
-
index
|
|
828
|
-
index
|
|
829
|
-
index
|
|
830
|
-
index
|
|
831
|
-
index
|
|
832
|
-
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 }))));
|
|
833
832
|
}
|
|
834
833
|
if (checkedValue === "toPayPalAccount") {
|
|
835
|
-
return (index
|
|
836
|
-
index
|
|
837
|
-
index
|
|
834
|
+
return (index.h("div", { style: { ...flexBoxStyle, flexDirection: "column" } },
|
|
835
|
+
index.h("div", { class: classes.SmallSkeleton }),
|
|
836
|
+
index.h("div", { class: classes.LargeSkeleton })));
|
|
838
837
|
}
|
|
839
|
-
const skeletons = inputNumArray.map((_, idx) => (index
|
|
840
|
-
index
|
|
841
|
-
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 }))));
|
|
842
841
|
return skeletons;
|
|
843
842
|
};
|
|
844
|
-
return (index
|
|
845
|
-
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" },
|
|
846
845
|
styleString,
|
|
847
846
|
vanillaStyle),
|
|
848
|
-
index
|
|
849
|
-
index
|
|
850
|
-
!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({
|
|
851
850
|
id: "formStep",
|
|
852
851
|
defaultMessage: text.formStep,
|
|
853
852
|
}, { step: states.step, count: FORM_STEPS }))),
|
|
854
|
-
index
|
|
855
|
-
index
|
|
856
|
-
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index
|
|
857
|
-
index
|
|
858
|
-
index
|
|
859
|
-
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),
|
|
860
859
|
text.error.generalDescription)),
|
|
861
|
-
states.isPartner && !states.hideSteps && (index
|
|
862
|
-
index
|
|
863
|
-
index
|
|
864
|
-
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),
|
|
865
864
|
text.isPartnerAlertDescription)),
|
|
866
|
-
index
|
|
867
|
-
index
|
|
868
|
-
index
|
|
869
|
-
index
|
|
870
|
-
index
|
|
871
|
-
states.hasPayPal && (index
|
|
872
|
-
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
|
|
873
872
|
? getLoadingSkeleton("toBankAccount", slots.formInputsSlot.length + 3)
|
|
874
873
|
: [
|
|
875
874
|
slots.countryInputSlot,
|
|
876
875
|
slots.paymentMethodSlot,
|
|
877
876
|
slots.formInputsSlot,
|
|
878
877
|
])),
|
|
879
|
-
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({
|
|
880
879
|
id: "paypal-input-label",
|
|
881
880
|
defaultMessage: text.toPayPalAccount,
|
|
882
881
|
}, { feeCap: states.feeCap }))),
|
|
883
|
-
formState.paymentMethodChecked === "toPayPalAccount" && (index
|
|
882
|
+
formState.paymentMethodChecked === "toPayPalAccount" && (index.h("div", { class: classes.InputContainer, style: states.hidePayPal ? { display: "none" } : {} }, states.loading
|
|
884
883
|
? getLoadingSkeleton("toPayPalAccount")
|
|
885
884
|
: slots.paypalInputSlot)),
|
|
886
|
-
index
|
|
887
|
-
index
|
|
888
|
-
index
|
|
889
|
-
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
|
|
890
889
|
? getLoadingSkeleton("toPayPalAccount")
|
|
891
890
|
: slots.paymentThresholdSelectSlot)),
|
|
892
|
-
index
|
|
893
|
-
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
|
|
894
893
|
? getLoadingSkeleton("toPayPalAccount")
|
|
895
894
|
: slots.paymentFixedDaySelectSlot))))),
|
|
896
|
-
index
|
|
897
|
-
index
|
|
898
|
-
!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))))));
|
|
899
898
|
};
|
|
900
899
|
|
|
901
900
|
// Hardcoded in Impact backend
|
|
@@ -929,7 +928,7 @@ function getFormInputs({ bitset, formMap }) {
|
|
|
929
928
|
}, []);
|
|
930
929
|
return inputFields;
|
|
931
930
|
}
|
|
932
|
-
const SAVE_WITHDRAWAL_SETTINGS =
|
|
931
|
+
const SAVE_WITHDRAWAL_SETTINGS = index_module.dist.gql `
|
|
933
932
|
mutation setImpactPublisherWithdrawalSettings(
|
|
934
933
|
$setImpactPublisherWithdrawalSettingsInput: SetImpactPublisherWithdrawalSettingsInput!
|
|
935
934
|
) {
|
|
@@ -961,15 +960,15 @@ function parseImpactThreshold(threshold) {
|
|
|
961
960
|
}
|
|
962
961
|
function useBankingInfoForm(props) {
|
|
963
962
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
964
|
-
const locale = index_module.
|
|
965
|
-
const user = index_module.
|
|
966
|
-
const [step, setStep] = index_module.
|
|
967
|
-
const context = index_module.
|
|
968
|
-
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);
|
|
969
968
|
const formRef = stencilHooks_module.useRef(null);
|
|
970
|
-
const { data: paymentOptionsData, loading: paymentOptionsLoading, errors: paymentOptionsError, } = index_module.
|
|
971
|
-
const { data: userData, refetch, errors: userError, } = index_module.
|
|
972
|
-
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);
|
|
973
972
|
const [formState, setFormState] = stencilHooks_module.useState({});
|
|
974
973
|
const [currentPaymentOption, setCurrentPaymentOption] = stencilHooks_module.useState(null);
|
|
975
974
|
const [loading, setLoading] = stencilHooks_module.useState(false);
|
|
@@ -1191,7 +1190,7 @@ function useBankingInfoForm(props) {
|
|
|
1191
1190
|
|
|
1192
1191
|
const BankingInfoForm = class {
|
|
1193
1192
|
constructor(hostRef) {
|
|
1194
|
-
index
|
|
1193
|
+
index.registerInstance(this, hostRef);
|
|
1195
1194
|
this.ignored = true;
|
|
1196
1195
|
/**
|
|
1197
1196
|
* @uiName Setup progress
|
|
@@ -1432,7 +1431,7 @@ const BankingInfoForm = class {
|
|
|
1432
1431
|
* @uiWidget textArea
|
|
1433
1432
|
*/
|
|
1434
1433
|
this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact Support.";
|
|
1435
|
-
stencilHooks_module.h(this);
|
|
1434
|
+
stencilHooks_module.h$1(this);
|
|
1436
1435
|
}
|
|
1437
1436
|
disconnectedCallback() { }
|
|
1438
1437
|
getTextProps() {
|
|
@@ -1488,40 +1487,40 @@ const BankingInfoForm = class {
|
|
|
1488
1487
|
padding: "var(--sl-spacing-x-small)",
|
|
1489
1488
|
},
|
|
1490
1489
|
};
|
|
1491
|
-
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: {
|
|
1492
1491
|
formInputsSlot: inputFields === null || inputFields === void 0 ? void 0 : inputFields.map(({ input }) => input),
|
|
1493
|
-
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) && {
|
|
1494
1493
|
class: "error-input",
|
|
1495
1494
|
helpText: getValidationErrorMessage({
|
|
1496
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,
|
|
1497
1496
|
label: props.text.bankLocationLabel,
|
|
1498
1497
|
}),
|
|
1499
|
-
})), index
|
|
1498
|
+
})), index.h("sl-input", { class: searchStyle.SearchInput, placeholder: this.searchForCountryText, onKeyDown: (e) => {
|
|
1500
1499
|
// Stop shoelace intercepting key presses
|
|
1501
1500
|
e.stopPropagation();
|
|
1502
1501
|
}, "onSl-input": (e) => {
|
|
1503
1502
|
props.callbacks.setCountrySearch(e.target.value);
|
|
1504
1503
|
} }), (_d = props.states.countries) === null || _d === void 0 ? void 0 :
|
|
1505
1504
|
_d.map((country) => {
|
|
1506
|
-
return (index
|
|
1505
|
+
return (index.h("sl-menu-item", { value: country.countryCode }, country.displayName));
|
|
1507
1506
|
}), (_f = (_e = props.states) === null || _e === void 0 ? void 0 : _e.allCountries) === null || _f === void 0 ? void 0 :
|
|
1508
|
-
_f.map((c) => (index
|
|
1509
|
-
paymentMethodSlot: (index
|
|
1510
|
-
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) && {
|
|
1511
1510
|
class: "error-input",
|
|
1512
1511
|
helpText: getValidationErrorMessage({
|
|
1513
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,
|
|
1514
1513
|
label: props.text.paymentThresholdSelectLabel,
|
|
1515
1514
|
}),
|
|
1516
|
-
})), props.states.thresholds.map((t) => (index
|
|
1517
|
-
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) && {
|
|
1518
1517
|
class: "error-input",
|
|
1519
1518
|
helpText: getValidationErrorMessage({
|
|
1520
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,
|
|
1521
1520
|
label: props.text.paymentDaySelectLabel,
|
|
1522
1521
|
}),
|
|
1523
|
-
})), index
|
|
1524
|
-
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) && {
|
|
1525
1524
|
class: "error-input",
|
|
1526
1525
|
helpText: getValidationErrorMessage({
|
|
1527
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,
|
|
@@ -1537,7 +1536,7 @@ function useDemoBankingInfoForm(props) {
|
|
|
1537
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;
|
|
1538
1537
|
const defaultCurrency = (_h = (_g = props.demoData) === null || _g === void 0 ? void 0 : _g.states) === null || _h === void 0 ? void 0 : _h.currency;
|
|
1539
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;
|
|
1540
|
-
const setStep = index_module.
|
|
1539
|
+
const setStep = index_module.wn(TAX_CONTEXT_NAMESPACE);
|
|
1541
1540
|
const [paymentMethodChecked, setPaymentMethodChecked] = stencilHooks_module.useState(undefined);
|
|
1542
1541
|
const [paymentScheduleChecked, setPaymentScheduleChecked] = stencilHooks_module.useState(undefined);
|
|
1543
1542
|
const [currency, setCurrency] = stencilHooks_module.useState(defaultCurrency);
|
|
@@ -1628,7 +1627,7 @@ function useDemoBankingInfoForm(props) {
|
|
|
1628
1627
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
1629
1628
|
}
|
|
1630
1629
|
|
|
1631
|
-
const GET_TAX_DOCUMENT =
|
|
1630
|
+
const GET_TAX_DOCUMENT = index_module.dist.gql `
|
|
1632
1631
|
mutation createImpactPublisherTaxDocument(
|
|
1633
1632
|
$vars: CreateImpactPublisherTaxDocumentInput!
|
|
1634
1633
|
) {
|
|
@@ -1639,7 +1638,7 @@ const GET_TAX_DOCUMENT = index.dist.gql `
|
|
|
1639
1638
|
}
|
|
1640
1639
|
}
|
|
1641
1640
|
`;
|
|
1642
|
-
const COMPLETE_TAX_DOCUMENT =
|
|
1641
|
+
const COMPLETE_TAX_DOCUMENT = index_module.dist.gql `
|
|
1643
1642
|
mutation completeImpactPublisherTaxDocument($vars: UserIdInput!) {
|
|
1644
1643
|
completeImpactPublisherTaxDocument(user: $vars) {
|
|
1645
1644
|
success
|
|
@@ -1655,17 +1654,18 @@ const DOCUSIGN_ERROR_STATES = [
|
|
|
1655
1654
|
const DOCUSIGN_EXPIRED_STATES = ["ttl_expired", "session_timeout"];
|
|
1656
1655
|
function useDocusignForm(props) {
|
|
1657
1656
|
var _a, _b, _c;
|
|
1658
|
-
const user = index_module.
|
|
1659
|
-
const context = index_module.
|
|
1660
|
-
const [step, setStep] = index_module.
|
|
1661
|
-
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);
|
|
1662
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;
|
|
1663
|
-
const [createTaxDocument, { loading: documentLoading, data: document, errors: documentErrors },] = index_module
|
|
1664
|
-
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);
|
|
1665
1664
|
const [docusignStatus, setDocusignStatus] = stencilHooks_module.useState(undefined);
|
|
1666
1665
|
const [participantType, setParticipantType] = stencilHooks_module.useState(undefined);
|
|
1667
1666
|
const [errors, setErrors] = stencilHooks_module.useState({});
|
|
1668
1667
|
const [loading, setLoading] = stencilHooks_module.useState(false);
|
|
1668
|
+
const [showExitButton, setShowExitButton] = stencilHooks_module.useState(false);
|
|
1669
1669
|
// Only look at current document if it's valid (same as required type)
|
|
1670
1670
|
const existingDocumentType = sqmInvoiceTableView.validTaxDocument(publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType) && (publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument)
|
|
1671
1671
|
? publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType : undefined;
|
|
@@ -1724,6 +1724,7 @@ function useDocusignForm(props) {
|
|
|
1724
1724
|
// @ts-expect-error: no data type for result
|
|
1725
1725
|
if (!result.completeImpactPublisherTaxDocument.success)
|
|
1726
1726
|
throw new Error();
|
|
1727
|
+
setShowExitButton(true);
|
|
1727
1728
|
}
|
|
1728
1729
|
catch (e) {
|
|
1729
1730
|
setErrors({ general: true });
|
|
@@ -1757,6 +1758,7 @@ function useDocusignForm(props) {
|
|
|
1757
1758
|
docusignStatus,
|
|
1758
1759
|
documentType: actualDocumentType,
|
|
1759
1760
|
documentTypeString: sqmInvoiceTableView.taxTypeToName(actualDocumentType),
|
|
1761
|
+
showExitButton,
|
|
1760
1762
|
},
|
|
1761
1763
|
data: {
|
|
1762
1764
|
taxForm: actualDocumentType,
|
|
@@ -1765,7 +1767,7 @@ function useDocusignForm(props) {
|
|
|
1765
1767
|
callbacks: {
|
|
1766
1768
|
setDocusignStatus,
|
|
1767
1769
|
completeDocument,
|
|
1768
|
-
progressStep,
|
|
1770
|
+
onExit: progressStep,
|
|
1769
1771
|
setParticipantType,
|
|
1770
1772
|
},
|
|
1771
1773
|
text: props.getTextProps(),
|
|
@@ -1804,46 +1806,46 @@ const styleString$1 = sheet$1.toString();
|
|
|
1804
1806
|
const DocusignExpiredView = (props) => {
|
|
1805
1807
|
const { classes } = sheet$1;
|
|
1806
1808
|
const { text } = props;
|
|
1807
|
-
return (index
|
|
1808
|
-
index
|
|
1809
|
-
index
|
|
1810
|
-
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: {
|
|
1811
1813
|
width: "50px",
|
|
1812
1814
|
height: "50px",
|
|
1813
1815
|
color: "var(--sl-color-neutral-500)",
|
|
1814
1816
|
}, name: "clock" }),
|
|
1815
|
-
index
|
|
1816
|
-
index
|
|
1817
|
-
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))));
|
|
1818
1820
|
};
|
|
1819
1821
|
const DocusignErrorView = (props) => {
|
|
1820
1822
|
const { classes } = sheet$1;
|
|
1821
1823
|
const { text } = props;
|
|
1822
|
-
return (index
|
|
1823
|
-
index
|
|
1824
|
-
index
|
|
1825
|
-
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: {
|
|
1826
1828
|
width: "50px",
|
|
1827
1829
|
height: "50px",
|
|
1828
1830
|
color: "var(--sl-color-gray-500)",
|
|
1829
1831
|
}, name: "exclamation-octagon" }),
|
|
1830
|
-
index
|
|
1831
|
-
index
|
|
1832
|
-
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))));
|
|
1833
1835
|
};
|
|
1834
1836
|
const DocusignLoadingView = () => {
|
|
1835
1837
|
const { classes } = sheet$1;
|
|
1836
|
-
return (index
|
|
1837
|
-
index
|
|
1838
|
-
index
|
|
1839
|
-
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" } }))));
|
|
1840
1842
|
};
|
|
1841
1843
|
const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
1842
1844
|
const [iFrameHeight, setiFrameHeight] = stencilHooks_module.useState("100%");
|
|
1843
|
-
// TODO: Confirm impact domain before launch
|
|
1844
1845
|
const allowedDomains = [
|
|
1845
1846
|
"referralsaasquatch.com",
|
|
1846
1847
|
"impacttech.complysandbox.com",
|
|
1848
|
+
"impacttech.complytaxforms.com",
|
|
1847
1849
|
];
|
|
1848
1850
|
const callback = index_module.useCallback((e) => {
|
|
1849
1851
|
const allowed = allowedDomains.some((d) => { var _a; return (_a = e.origin) === null || _a === void 0 ? void 0 : _a.includes(d); });
|
|
@@ -1855,9 +1857,6 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
|
1855
1857
|
if (e.data === "Complyexchange Thank you page Load") {
|
|
1856
1858
|
callbacks.completeDocument();
|
|
1857
1859
|
}
|
|
1858
|
-
if (e.data == "Complyexchange Thank you page Exit") {
|
|
1859
|
-
callbacks.progressStep();
|
|
1860
|
-
}
|
|
1861
1860
|
}, []);
|
|
1862
1861
|
stencilHooks_module.useEffect(() => {
|
|
1863
1862
|
window.addEventListener("message", callback, false);
|
|
@@ -1866,13 +1865,13 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
|
1866
1865
|
};
|
|
1867
1866
|
}, []);
|
|
1868
1867
|
if (states.urlLoading)
|
|
1869
|
-
return index
|
|
1868
|
+
return index.h(DocusignLoadingView, null);
|
|
1870
1869
|
if (DOCUSIGN_ERROR_STATES.includes(states.status)) {
|
|
1871
|
-
return index
|
|
1870
|
+
return index.h(DocusignErrorView, { text: text });
|
|
1872
1871
|
}
|
|
1873
1872
|
if (DOCUSIGN_EXPIRED_STATES.includes(states.status))
|
|
1874
|
-
return index
|
|
1875
|
-
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 }));
|
|
1876
1875
|
};
|
|
1877
1876
|
|
|
1878
1877
|
const style$2 = {
|
|
@@ -2016,33 +2015,33 @@ const DocusignFormView = (props) => {
|
|
|
2016
2015
|
var _a;
|
|
2017
2016
|
const { states, states: { formState, documentTypeString }, callbacks, text, slots, } = props;
|
|
2018
2017
|
const { classes } = sheet$2;
|
|
2019
|
-
return (index
|
|
2020
|
-
index
|
|
2018
|
+
return (index.h("div", { class: classes.Container },
|
|
2019
|
+
index.h("style", { type: "text/css" },
|
|
2021
2020
|
styleString$2,
|
|
2022
2021
|
vanillaStyle$1),
|
|
2023
|
-
index
|
|
2024
|
-
index
|
|
2025
|
-
!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({
|
|
2026
2025
|
id: "formStep",
|
|
2027
2026
|
defaultMessage: text.formStep,
|
|
2028
2027
|
}, { step: states.step, count: FORM_STEPS }))),
|
|
2029
|
-
index
|
|
2030
|
-
index
|
|
2031
|
-
states.loadingError && (index
|
|
2032
|
-
index
|
|
2033
|
-
index
|
|
2034
|
-
index
|
|
2035
|
-
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),
|
|
2036
2035
|
text.error.loadingErrorAlertDescription))),
|
|
2037
|
-
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index
|
|
2038
|
-
index
|
|
2039
|
-
index
|
|
2040
|
-
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),
|
|
2041
2040
|
text.error.generalDescription)),
|
|
2042
|
-
index
|
|
2043
|
-
index
|
|
2044
|
-
index
|
|
2045
|
-
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({
|
|
2046
2045
|
id: "tax-form-description",
|
|
2047
2046
|
defaultMessage: states.documentType === "W9"
|
|
2048
2047
|
? text.taxFormDescription
|
|
@@ -2050,12 +2049,13 @@ const DocusignFormView = (props) => {
|
|
|
2050
2049
|
? text.taxFormDescriptionIndividualParticipant
|
|
2051
2050
|
: text.taxFormDescriptionBusinessEntity,
|
|
2052
2051
|
}, { documentType: documentTypeString }))),
|
|
2053
|
-
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))))));
|
|
2054
2054
|
};
|
|
2055
2055
|
|
|
2056
2056
|
const DocusignForm = class {
|
|
2057
2057
|
constructor(hostRef) {
|
|
2058
|
-
index
|
|
2058
|
+
index.registerInstance(this, hostRef);
|
|
2059
2059
|
this.ignored = true;
|
|
2060
2060
|
/**
|
|
2061
2061
|
* @uiName Setup progress
|
|
@@ -2153,7 +2153,12 @@ const DocusignForm = class {
|
|
|
2153
2153
|
* @uiName Page description
|
|
2154
2154
|
*/
|
|
2155
2155
|
this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
|
|
2156
|
-
|
|
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);
|
|
2157
2162
|
}
|
|
2158
2163
|
disconnectedCallback() { }
|
|
2159
2164
|
getTextProps() {
|
|
@@ -2172,26 +2177,25 @@ const DocusignForm = class {
|
|
|
2172
2177
|
render() {
|
|
2173
2178
|
const _isDemo = index_module.isDemo();
|
|
2174
2179
|
const props = _isDemo ? useDocusignFormDemo(this) : useDocusignForm(this);
|
|
2175
|
-
const docusignIframeSlot = (index
|
|
2180
|
+
const docusignIframeSlot = (index.h(DocusignIframe, { states: {
|
|
2176
2181
|
status: props.states.docusignStatus,
|
|
2177
2182
|
loading: props.states.loading,
|
|
2178
2183
|
urlLoading: props.states.urlLoading,
|
|
2179
2184
|
}, data: {
|
|
2180
2185
|
documentUrl: props.data.documentUrl,
|
|
2181
2186
|
}, callbacks: {
|
|
2182
|
-
progressStep: props.callbacks.progressStep,
|
|
2183
2187
|
completeDocument: props.callbacks.completeDocument,
|
|
2184
2188
|
}, text: props.text }));
|
|
2185
|
-
return (index
|
|
2189
|
+
return (index.h(index.Host, null, index.h(DocusignFormView, { callbacks: props.callbacks, states: props.states, text: props.text, slots: {
|
|
2186
2190
|
docusignIframeSlot: _isDemo
|
|
2187
2191
|
? DemoDocusignIframe({ callbacks: props.callbacks })
|
|
2188
2192
|
: docusignIframeSlot,
|
|
2189
2193
|
} })));
|
|
2190
2194
|
}
|
|
2191
|
-
get el() { return index
|
|
2195
|
+
get el() { return index.getElement(this); }
|
|
2192
2196
|
};
|
|
2193
2197
|
function useDocusignFormDemo(props) {
|
|
2194
|
-
const setStep = index_module.
|
|
2198
|
+
const setStep = index_module.wn(TAX_CONTEXT_NAMESPACE);
|
|
2195
2199
|
return cjs.cjs({
|
|
2196
2200
|
text: props.getTextProps(),
|
|
2197
2201
|
states: {
|
|
@@ -2225,19 +2229,19 @@ function useDocusignFormDemo(props) {
|
|
|
2225
2229
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
2226
2230
|
}
|
|
2227
2231
|
const DemoDocusignIframe = ({ callbacks }) => {
|
|
2228
|
-
return (index
|
|
2232
|
+
return (index.h("div", { style: {
|
|
2229
2233
|
width: "100%",
|
|
2230
2234
|
height: "600px",
|
|
2231
2235
|
background: "#fafafa",
|
|
2232
2236
|
display: "flex",
|
|
2233
2237
|
justifyContent: "center",
|
|
2234
2238
|
alignItems: "center",
|
|
2235
|
-
} }, index
|
|
2239
|
+
} }, index.h("div", { style: {
|
|
2236
2240
|
display: "flex",
|
|
2237
2241
|
flexDirection: "column",
|
|
2238
2242
|
gap: "12px",
|
|
2239
2243
|
alignItems: "center",
|
|
2240
|
-
} }, 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")))));
|
|
2241
2245
|
};
|
|
2242
2246
|
|
|
2243
2247
|
const style$3 = {
|
|
@@ -2260,6 +2264,7 @@ const style$3 = {
|
|
|
2260
2264
|
display: "flex",
|
|
2261
2265
|
flexDirection: "column",
|
|
2262
2266
|
gap: "var(--sl-spacing-medium)",
|
|
2267
|
+
width: "100%",
|
|
2263
2268
|
},
|
|
2264
2269
|
RadioContent: {
|
|
2265
2270
|
display: "flex",
|
|
@@ -2308,9 +2313,6 @@ const style$3 = {
|
|
|
2308
2313
|
color: "var(--sl-color-danger-500)",
|
|
2309
2314
|
},
|
|
2310
2315
|
},
|
|
2311
|
-
CannotChangeAlertContainer: {
|
|
2312
|
-
maxWidth: "797px",
|
|
2313
|
-
},
|
|
2314
2316
|
PartnerAlertContainer: {
|
|
2315
2317
|
"&::part(base)": {
|
|
2316
2318
|
backgroundColor: "var(--sl-color-sky-100)",
|
|
@@ -2372,61 +2374,60 @@ const IndirectTaxFormView = (props) => {
|
|
|
2372
2374
|
var _a;
|
|
2373
2375
|
const { states, states: { formState }, callbacks, text, refs, slots, } = props;
|
|
2374
2376
|
const { classes } = sheet$3;
|
|
2375
|
-
return (index
|
|
2376
|
-
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" },
|
|
2377
2379
|
styleString$3,
|
|
2378
2380
|
vanillaStyle$2),
|
|
2379
|
-
index
|
|
2380
|
-
index
|
|
2381
|
-
!states.hideSteps && (index
|
|
2381
|
+
index.h("div", { class: classes.TextContainer },
|
|
2382
|
+
index.h("div", null,
|
|
2383
|
+
!states.hideSteps && (index.h("p", null,
|
|
2382
2384
|
" ",
|
|
2383
2385
|
global.intl.formatMessage({
|
|
2384
2386
|
id: "formStep",
|
|
2385
2387
|
defaultMessage: text.formStep,
|
|
2386
2388
|
}, { step: states.step, count: FORM_STEPS }))),
|
|
2387
|
-
index
|
|
2388
|
-
index
|
|
2389
|
-
index
|
|
2390
|
-
states.loadingError && (index
|
|
2391
|
-
index
|
|
2392
|
-
index
|
|
2393
|
-
index
|
|
2394
|
-
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),
|
|
2395
2397
|
text.error.loadingErrorAlertDescription))),
|
|
2396
|
-
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index
|
|
2397
|
-
index
|
|
2398
|
-
index
|
|
2399
|
-
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),
|
|
2400
2402
|
text.error.generalDescription)),
|
|
2401
|
-
states.isPartner && (index
|
|
2402
|
-
index
|
|
2403
|
-
index
|
|
2404
|
-
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),
|
|
2405
2407
|
text.isPartnerAlertDescription)),
|
|
2406
|
-
index
|
|
2407
|
-
index
|
|
2408
|
-
states.loading ? (index
|
|
2409
|
-
index
|
|
2410
|
-
index
|
|
2411
|
-
index
|
|
2412
|
-
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 },
|
|
2413
2415
|
text.notRegistered,
|
|
2414
|
-
index
|
|
2415
|
-
index
|
|
2416
|
-
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 },
|
|
2417
2419
|
text.otherRegion,
|
|
2418
|
-
index
|
|
2420
|
+
index.h("p", { class: classes.DescriptionText }, text.otherRegionSubtext))),
|
|
2419
2421
|
slots.registeredInDifferentCountryDetailsSlot)),
|
|
2420
|
-
index
|
|
2421
|
-
index
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
index
|
|
2426
|
-
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))))));
|
|
2427
2428
|
};
|
|
2428
2429
|
|
|
2429
|
-
const CONNECT_PARTNER =
|
|
2430
|
+
const CONNECT_PARTNER = index_module.dist.gql `
|
|
2430
2431
|
mutation createImpactConnection($vars: ImpactConnectionInput!) {
|
|
2431
2432
|
createImpactConnection(impactConnectionInput: $vars) {
|
|
2432
2433
|
success
|
|
@@ -2464,15 +2465,15 @@ function getOption(countries, countryCode) {
|
|
|
2464
2465
|
}
|
|
2465
2466
|
function useIndirectTaxForm(props) {
|
|
2466
2467
|
var _a, _b, _c, _d, _e;
|
|
2467
|
-
const user = index_module.
|
|
2468
|
-
const locale = index_module.
|
|
2468
|
+
const user = index_module.Q();
|
|
2469
|
+
const locale = index_module.L();
|
|
2469
2470
|
const formRef = stencilHooks_module.useRef(null);
|
|
2470
|
-
const context = index_module.
|
|
2471
|
-
const [step, setStep] = index_module.
|
|
2472
|
-
const [connectImpactPartner, { loading: connectLoading, errors: connectErrors },] = index_module
|
|
2473
|
-
const userForm = index_module.
|
|
2474
|
-
const { data: userData, refetch, errors: userError, } = index_module.
|
|
2475
|
-
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);
|
|
2476
2477
|
const intlLocale = (locale === null || locale === void 0 ? void 0 : locale.replace("_", "-")) || "en";
|
|
2477
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]);
|
|
2478
2479
|
const [loading, setLoading] = stencilHooks_module.useState(false);
|
|
@@ -2662,7 +2663,7 @@ function useIndirectTaxForm(props) {
|
|
|
2662
2663
|
|
|
2663
2664
|
const IndirectTaxForm = class {
|
|
2664
2665
|
constructor(hostRef) {
|
|
2665
|
-
index
|
|
2666
|
+
index.registerInstance(this, hostRef);
|
|
2666
2667
|
/**
|
|
2667
2668
|
* @uiName Setup progress
|
|
2668
2669
|
*/
|
|
@@ -2808,7 +2809,7 @@ const IndirectTaxForm = class {
|
|
|
2808
2809
|
* @uiName Page description
|
|
2809
2810
|
*/
|
|
2810
2811
|
this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
|
|
2811
|
-
stencilHooks_module.h(this);
|
|
2812
|
+
stencilHooks_module.h$1(this);
|
|
2812
2813
|
}
|
|
2813
2814
|
disconnectedCallback() { }
|
|
2814
2815
|
getTextProps() {
|
|
@@ -2843,7 +2844,7 @@ const IndirectTaxForm = class {
|
|
|
2843
2844
|
const props = index_module.isDemo()
|
|
2844
2845
|
? useDemoIndirectTaxForm(this)
|
|
2845
2846
|
: useIndirectTaxForm(this);
|
|
2846
|
-
const registeredInDifferentCountryDetailsSlot = (index
|
|
2847
|
+
const registeredInDifferentCountryDetailsSlot = (index.h(sqmInvoiceTableView.OtherRegionSlotView, { states: {
|
|
2847
2848
|
hide: props.states.formState.checked !== "otherRegion",
|
|
2848
2849
|
disabled: props.states.disabled || props.states.isPartner,
|
|
2849
2850
|
formState: props.slotProps.formState,
|
|
@@ -2855,13 +2856,13 @@ const IndirectTaxForm = class {
|
|
|
2855
2856
|
provinces: props.data.provinces,
|
|
2856
2857
|
allCountries: props.data.allCountries,
|
|
2857
2858
|
}, text: props.text.slotText }));
|
|
2858
|
-
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: {
|
|
2859
2860
|
registeredInDifferentCountryDetailsSlot,
|
|
2860
2861
|
} })));
|
|
2861
2862
|
}
|
|
2862
2863
|
};
|
|
2863
2864
|
function useDemoIndirectTaxForm(props) {
|
|
2864
|
-
const setStep = index_module.
|
|
2865
|
+
const setStep = index_module.wn(TAX_CONTEXT_NAMESPACE);
|
|
2865
2866
|
const [option, setOption] = stencilHooks_module.useState(null);
|
|
2866
2867
|
const [demoFormState, setDemoFormState] = stencilHooks_module.useState({});
|
|
2867
2868
|
return cjs.cjs({
|
|
@@ -2945,7 +2946,7 @@ function useDemoIndirectTaxForm(props) {
|
|
|
2945
2946
|
|
|
2946
2947
|
const debug = stencilHooks_module.browser("sq:useInvoiceTable");
|
|
2947
2948
|
const CSS_NAMESPACE = "sqm-invoice-table";
|
|
2948
|
-
const GET_INVOICES =
|
|
2949
|
+
const GET_INVOICES = index_module.dist.gql `
|
|
2949
2950
|
query getUserTaxInfo($limit: Int!, $offset: Int!) {
|
|
2950
2951
|
user: viewer {
|
|
2951
2952
|
... on User {
|
|
@@ -2971,8 +2972,8 @@ const GET_INVOICES = index.dist.gql `
|
|
|
2971
2972
|
`;
|
|
2972
2973
|
function useInvoiceTable(props, emptyElement, loadingElement) {
|
|
2973
2974
|
var _a;
|
|
2974
|
-
const user = index_module.
|
|
2975
|
-
const locale = index_module.
|
|
2975
|
+
const user = index_module.Q();
|
|
2976
|
+
const locale = index_module.L();
|
|
2976
2977
|
const [content, setContent] = stencilHooks_module.useReducer((state, next) => ({
|
|
2977
2978
|
...state,
|
|
2978
2979
|
...next,
|
|
@@ -2982,7 +2983,7 @@ function useInvoiceTable(props, emptyElement, loadingElement) {
|
|
|
2982
2983
|
loading: false,
|
|
2983
2984
|
page: 0,
|
|
2984
2985
|
});
|
|
2985
|
-
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; }, {
|
|
2986
2987
|
limit: props.perPage,
|
|
2987
2988
|
offset: 0,
|
|
2988
2989
|
}, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
@@ -3006,7 +3007,7 @@ function useInvoiceTable(props, emptyElement, loadingElement) {
|
|
|
3006
3007
|
netEarnings: `${invoice.currency}${((_c = (invoice.totalAmount - invoice.totalVatAmount)) === null || _c === void 0 ? void 0 : _c.toFixed(2)) || "0.00"}`,
|
|
3007
3008
|
downloadUrl: invoice.downloadUrl,
|
|
3008
3009
|
};
|
|
3009
|
-
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)));
|
|
3010
3011
|
const cells = (await Promise.all(cellPromise));
|
|
3011
3012
|
return cells;
|
|
3012
3013
|
});
|
|
@@ -3075,7 +3076,7 @@ async function tryMethod(c, callback) {
|
|
|
3075
3076
|
// renderLabel did not return a promise, so this method probably doesn't exist
|
|
3076
3077
|
// therefore, we IGNORE the label
|
|
3077
3078
|
debug("label promise failed", e);
|
|
3078
|
-
return index
|
|
3079
|
+
return index.h("span", null);
|
|
3079
3080
|
}
|
|
3080
3081
|
try {
|
|
3081
3082
|
return await labelPromise;
|
|
@@ -3085,8 +3086,8 @@ async function tryMethod(c, callback) {
|
|
|
3085
3086
|
// This should not happen so we fail fast
|
|
3086
3087
|
debug("Error rendering label", e);
|
|
3087
3088
|
const userError = useReferralTable.generateUserError(e);
|
|
3088
|
-
return (index
|
|
3089
|
-
index
|
|
3089
|
+
return (index.h("details", null,
|
|
3090
|
+
index.h("summary", null, "Error"),
|
|
3090
3091
|
userError));
|
|
3091
3092
|
}
|
|
3092
3093
|
}
|
|
@@ -3113,7 +3114,7 @@ const getMockData = () => {
|
|
|
3113
3114
|
|
|
3114
3115
|
const InvoiceTable = class {
|
|
3115
3116
|
constructor(hostRef) {
|
|
3116
|
-
index
|
|
3117
|
+
index.registerInstance(this, hostRef);
|
|
3117
3118
|
/**
|
|
3118
3119
|
* Number of invoices displayed per page
|
|
3119
3120
|
*
|
|
@@ -3144,27 +3145,27 @@ const InvoiceTable = class {
|
|
|
3144
3145
|
this.emptyStateHeader = "View your invoice details";
|
|
3145
3146
|
/** @uiName Empty invoice table description */
|
|
3146
3147
|
this.emptyStateText = "Refer a friend to view the status of your invoices and rewards earned";
|
|
3147
|
-
stencilHooks_module.h(this);
|
|
3148
|
+
stencilHooks_module.h$1(this);
|
|
3148
3149
|
}
|
|
3149
3150
|
disconnectedCallback() { }
|
|
3150
3151
|
render() {
|
|
3151
|
-
const empty = (index
|
|
3152
|
-
const loading = index
|
|
3152
|
+
const empty = (index.h(EmptySlot, { emptyStateHeader: this.emptyStateHeader, emptyStateText: this.emptyStateText }));
|
|
3153
|
+
const loading = index.h(LoadingSlot, null);
|
|
3153
3154
|
const { states, data, callbacks, elements } = index_module.isDemo()
|
|
3154
3155
|
? useInvoiceTableDemo(this, empty, loading)
|
|
3155
3156
|
: useInvoiceTable(this, empty, loading);
|
|
3156
3157
|
reRender.useRequestRerender([this.perPage]);
|
|
3157
|
-
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 })));
|
|
3158
3159
|
}
|
|
3159
3160
|
};
|
|
3160
3161
|
function EmptySlot(props) {
|
|
3161
|
-
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 })));
|
|
3162
3163
|
}
|
|
3163
3164
|
function LoadingSlot() {
|
|
3164
|
-
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)));
|
|
3165
3166
|
}
|
|
3166
3167
|
function LoadingRow() {
|
|
3167
|
-
return (index
|
|
3168
|
+
return (index.h("sqm-table-row", null, index.h("sqm-table-cell", { colspan: 6 }, index.h("sl-skeleton", null))));
|
|
3168
3169
|
}
|
|
3169
3170
|
function useInvoiceTableDemo(props, emptyElement, loadingElement) {
|
|
3170
3171
|
const [content, setContent] = stencilHooks_module.useReducer((state, next) => ({
|
|
@@ -3258,9 +3259,9 @@ function useInvoiceTableDemo(props, emptyElement, loadingElement) {
|
|
|
3258
3259
|
|
|
3259
3260
|
const InvoiceTableDataCell = class {
|
|
3260
3261
|
constructor(hostRef) {
|
|
3261
|
-
index
|
|
3262
|
+
index.registerInstance(this, hostRef);
|
|
3262
3263
|
this.ignored = true;
|
|
3263
|
-
stencilHooks_module.h(this);
|
|
3264
|
+
stencilHooks_module.h$1(this);
|
|
3264
3265
|
}
|
|
3265
3266
|
disconnectedCallback() { }
|
|
3266
3267
|
render() {
|
|
@@ -3270,28 +3271,28 @@ const InvoiceTableDataCell = class {
|
|
|
3270
3271
|
|
|
3271
3272
|
const InvoiceTableDataColumn = class {
|
|
3272
3273
|
constructor(hostRef) {
|
|
3273
|
-
index
|
|
3274
|
-
stencilHooks_module.h(this);
|
|
3274
|
+
index.registerInstance(this, hostRef);
|
|
3275
|
+
stencilHooks_module.h$1(this);
|
|
3275
3276
|
}
|
|
3276
3277
|
disconnectedCallback() { }
|
|
3277
3278
|
async renderCell(data) {
|
|
3278
|
-
return (index
|
|
3279
|
+
return (index.h("sqm-invoice-table-data-cell", { data: data[this.property] }));
|
|
3279
3280
|
}
|
|
3280
3281
|
async renderLabel() {
|
|
3281
3282
|
return Promise.resolve(this.columnTitle);
|
|
3282
3283
|
}
|
|
3283
3284
|
render() {
|
|
3284
3285
|
reRender.useRequestRerender([this.columnTitle, this.property]);
|
|
3285
|
-
return (index
|
|
3286
|
+
return (index.h(index.Host, { style: { display: "none" } }, index.h("slot", null)));
|
|
3286
3287
|
}
|
|
3287
3288
|
};
|
|
3288
3289
|
|
|
3289
3290
|
const RewardTableDateCell = class {
|
|
3290
3291
|
constructor(hostRef) {
|
|
3291
|
-
index
|
|
3292
|
+
index.registerInstance(this, hostRef);
|
|
3292
3293
|
this.ignored = true;
|
|
3293
3294
|
this.locale = "en";
|
|
3294
|
-
stencilHooks_module.h(this);
|
|
3295
|
+
stencilHooks_module.h$1(this);
|
|
3295
3296
|
}
|
|
3296
3297
|
disconnectedCallback() { }
|
|
3297
3298
|
render() {
|
|
@@ -3305,58 +3306,58 @@ const RewardTableDateCell = class {
|
|
|
3305
3306
|
|
|
3306
3307
|
const InvoiceTableDateColumn = class {
|
|
3307
3308
|
constructor(hostRef) {
|
|
3308
|
-
index
|
|
3309
|
-
stencilHooks_module.h(this);
|
|
3309
|
+
index.registerInstance(this, hostRef);
|
|
3310
|
+
stencilHooks_module.h$1(this);
|
|
3310
3311
|
}
|
|
3311
3312
|
disconnectedCallback() { }
|
|
3312
3313
|
async renderCell(data, options) {
|
|
3313
|
-
return (index
|
|
3314
|
+
return (index.h("sqm-invoice-table-date-cell", { date: data.dateCreated, locale: options === null || options === void 0 ? void 0 : options.locale }));
|
|
3314
3315
|
}
|
|
3315
3316
|
async renderLabel() {
|
|
3316
3317
|
return this.columnTitle;
|
|
3317
3318
|
}
|
|
3318
3319
|
render() {
|
|
3319
3320
|
reRender.useRequestRerender([this.columnTitle]);
|
|
3320
|
-
return (index
|
|
3321
|
+
return (index.h(index.Host, { style: { display: "none" } }, index.h("slot", null)));
|
|
3321
3322
|
}
|
|
3322
3323
|
};
|
|
3323
3324
|
|
|
3324
3325
|
const InvoiceTableDownloadCell = class {
|
|
3325
3326
|
constructor(hostRef) {
|
|
3326
|
-
index
|
|
3327
|
+
index.registerInstance(this, hostRef);
|
|
3327
3328
|
this.ignored = true;
|
|
3328
|
-
stencilHooks_module.h(this);
|
|
3329
|
+
stencilHooks_module.h$1(this);
|
|
3329
3330
|
}
|
|
3330
3331
|
disconnectedCallback() { }
|
|
3331
3332
|
render() {
|
|
3332
3333
|
const vanillaStyle = `svg:hover, svg:hover * {
|
|
3333
3334
|
cursor: pointer;
|
|
3334
3335
|
}`;
|
|
3335
|
-
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" }))))));
|
|
3336
3337
|
}
|
|
3337
3338
|
};
|
|
3338
3339
|
|
|
3339
3340
|
const InvoiceTableGenericColumn = class {
|
|
3340
3341
|
constructor(hostRef) {
|
|
3341
|
-
index
|
|
3342
|
-
stencilHooks_module.h(this);
|
|
3342
|
+
index.registerInstance(this, hostRef);
|
|
3343
|
+
stencilHooks_module.h$1(this);
|
|
3343
3344
|
}
|
|
3344
3345
|
disconnectedCallback() { }
|
|
3345
3346
|
async renderCell(data) {
|
|
3346
|
-
return (index
|
|
3347
|
+
return (index.h("sqm-invoice-table-download-cell", { downloadUrl: data.downloadUrl }));
|
|
3347
3348
|
}
|
|
3348
3349
|
async renderLabel() {
|
|
3349
|
-
return index
|
|
3350
|
+
return index.h("span", null);
|
|
3350
3351
|
}
|
|
3351
3352
|
render() {
|
|
3352
|
-
return (index
|
|
3353
|
+
return (index.h(index.Host, { style: { display: "none" } }, index.h("slot", null)));
|
|
3353
3354
|
}
|
|
3354
3355
|
};
|
|
3355
3356
|
|
|
3356
|
-
const PayPalIcon = () => (index
|
|
3357
|
-
index
|
|
3358
|
-
index
|
|
3359
|
-
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" })));
|
|
3360
3361
|
|
|
3361
3362
|
const style$4 = {
|
|
3362
3363
|
CardContainer: {
|
|
@@ -3497,12 +3498,12 @@ function PayoutDetailsCardView(props) {
|
|
|
3497
3498
|
const { classes } = sheet;
|
|
3498
3499
|
const { states, text } = props;
|
|
3499
3500
|
const renderLoadingSkeleton = () => {
|
|
3500
|
-
return (index
|
|
3501
|
-
index
|
|
3502
|
-
index
|
|
3503
|
-
index
|
|
3504
|
-
index
|
|
3505
|
-
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 })));
|
|
3506
3507
|
};
|
|
3507
3508
|
const renderStatusBadge = (status, statusBadgeText) => {
|
|
3508
3509
|
const badgeType = status === "nextPayout" ? "success" : "primary";
|
|
@@ -3512,7 +3513,7 @@ function PayoutDetailsCardView(props) {
|
|
|
3512
3513
|
}, {
|
|
3513
3514
|
badgeText: status,
|
|
3514
3515
|
});
|
|
3515
|
-
return (index
|
|
3516
|
+
return (index.h("sl-badge", { pill: true, type: badgeType }, statusText));
|
|
3516
3517
|
};
|
|
3517
3518
|
const thresholdText = global.intl.formatMessage({
|
|
3518
3519
|
id: "thresholdText",
|
|
@@ -3520,16 +3521,16 @@ function PayoutDetailsCardView(props) {
|
|
|
3520
3521
|
}, {
|
|
3521
3522
|
thresholdBalance: states.thresholdBalance,
|
|
3522
3523
|
});
|
|
3523
|
-
return (index
|
|
3524
|
-
index
|
|
3525
|
-
states.error && (index
|
|
3526
|
-
index
|
|
3527
|
-
index
|
|
3528
|
-
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),
|
|
3529
3530
|
text.error.errorDescriptionText))),
|
|
3530
|
-
states.loading ? (renderLoadingSkeleton()) : (index
|
|
3531
|
-
index
|
|
3532
|
-
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"
|
|
3533
3534
|
? states.thresholdBalance
|
|
3534
3535
|
? thresholdText
|
|
3535
3536
|
: ""
|
|
@@ -3537,18 +3538,18 @@ function PayoutDetailsCardView(props) {
|
|
|
3537
3538
|
states.badgeStatus === "thresholdPayout"
|
|
3538
3539
|
? null
|
|
3539
3540
|
: renderStatusBadge(states.badgeStatus, text.statusBadgeText)),
|
|
3540
|
-
index
|
|
3541
|
-
states.payoutType === "PAYPAL" ? (index
|
|
3542
|
-
index
|
|
3543
|
-
index
|
|
3544
|
-
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
|
|
3545
3546
|
? `${text.accountText} ${states.cardNumberPreview}`
|
|
3546
3547
|
: text.payoutMissingInformationText)))))));
|
|
3547
3548
|
}
|
|
3548
3549
|
|
|
3549
3550
|
function usePayoutDetailsCard(props) {
|
|
3550
3551
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
3551
|
-
const { data, loading } = index_module.
|
|
3552
|
+
const { data, loading } = index_module.Mn(USER_QUERY_NAMESPACE);
|
|
3552
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;
|
|
3553
3554
|
function getPayoutDetailedStatusText(paymentDay) {
|
|
3554
3555
|
var _a;
|
|
@@ -3606,7 +3607,7 @@ function usePayoutDetailsCard(props) {
|
|
|
3606
3607
|
|
|
3607
3608
|
const PayoutDetailsCard = class {
|
|
3608
3609
|
constructor(hostRef) {
|
|
3609
|
-
index
|
|
3610
|
+
index.registerInstance(this, hostRef);
|
|
3610
3611
|
/**
|
|
3611
3612
|
* Badge text indicating payout status
|
|
3612
3613
|
* @uiName Payout badge status text
|
|
@@ -3637,7 +3638,7 @@ const PayoutDetailsCard = class {
|
|
|
3637
3638
|
* @uiName Payout missing information subtext
|
|
3638
3639
|
*/
|
|
3639
3640
|
this.payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
|
|
3640
|
-
stencilHooks_module.h(this);
|
|
3641
|
+
stencilHooks_module.h$1(this);
|
|
3641
3642
|
}
|
|
3642
3643
|
disconnectedCallback() { }
|
|
3643
3644
|
getTextProps() {
|
|
@@ -3654,7 +3655,7 @@ const PayoutDetailsCard = class {
|
|
|
3654
3655
|
const props = index_module.isDemo()
|
|
3655
3656
|
? useDemoPayoutDetailsCard(this)
|
|
3656
3657
|
: usePayoutDetailsCard(this);
|
|
3657
|
-
return (index
|
|
3658
|
+
return (index.h(index.Host, null, index.h(PayoutDetailsCardView, { text: props.text, states: props.states })));
|
|
3658
3659
|
}
|
|
3659
3660
|
};
|
|
3660
3661
|
function useDemoPayoutDetailsCard(props) {
|
|
@@ -3680,27 +3681,27 @@ function useDemoPayoutDetailsCard(props) {
|
|
|
3680
3681
|
|
|
3681
3682
|
const TableCell = class {
|
|
3682
3683
|
constructor(hostRef) {
|
|
3683
|
-
index
|
|
3684
|
+
index.registerInstance(this, hostRef);
|
|
3684
3685
|
/** @uiName Column span */
|
|
3685
3686
|
this.colspan = 1;
|
|
3686
3687
|
/** @uiName Padding */
|
|
3687
3688
|
this.padding = "15px 10px";
|
|
3688
3689
|
}
|
|
3689
3690
|
render() {
|
|
3690
|
-
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))));
|
|
3691
3692
|
}
|
|
3692
3693
|
};
|
|
3693
3694
|
|
|
3694
3695
|
const TableRow = class {
|
|
3695
3696
|
constructor(hostRef) {
|
|
3696
|
-
index
|
|
3697
|
+
index.registerInstance(this, hostRef);
|
|
3697
3698
|
/**
|
|
3698
3699
|
* @uiName Border
|
|
3699
3700
|
*/
|
|
3700
3701
|
this.border = "1px solid #EAEAEA";
|
|
3701
3702
|
}
|
|
3702
3703
|
render() {
|
|
3703
|
-
return (index
|
|
3704
|
+
return (index.h(index.Host, { style: { display: "contents" } }, index.h("tr", { style: { border: this.border } }, index.h("slot", null))));
|
|
3704
3705
|
}
|
|
3705
3706
|
};
|
|
3706
3707
|
|
|
@@ -3737,21 +3738,21 @@ function getCurrentStep(user) {
|
|
|
3737
3738
|
}
|
|
3738
3739
|
function useTaxAndCash() {
|
|
3739
3740
|
var _a, _b, _c, _d, _e;
|
|
3740
|
-
const host = index_module.
|
|
3741
|
-
const user = index_module.
|
|
3742
|
-
const locale = index_module.
|
|
3741
|
+
const host = index_module._();
|
|
3742
|
+
const user = index_module.Q();
|
|
3743
|
+
const locale = index_module.L();
|
|
3743
3744
|
// State for current step of form
|
|
3744
|
-
const [step, setStep] = index_module.
|
|
3745
|
+
const [step, setStep] = index_module.Cn({
|
|
3745
3746
|
namespace: TAX_CONTEXT_NAMESPACE,
|
|
3746
3747
|
initialValue: "/loading",
|
|
3747
3748
|
});
|
|
3748
3749
|
// State for when to hide steps, or override certain actions
|
|
3749
|
-
const [context, _setContext] = index_module.
|
|
3750
|
+
const [context, _setContext] = index_module.Cn({
|
|
3750
3751
|
namespace: TAX_FORM_CONTEXT_NAMESPACE,
|
|
3751
3752
|
initialValue: {},
|
|
3752
3753
|
});
|
|
3753
3754
|
// State to carry user form information into step 2
|
|
3754
|
-
const [userFormContext, _setUserFormContext] = index_module.
|
|
3755
|
+
const [userFormContext, _setUserFormContext] = index_module.Cn({
|
|
3755
3756
|
namespace: USER_FORM_CONTEXT_NAMESPACE,
|
|
3756
3757
|
initialValue: {
|
|
3757
3758
|
firstName: undefined,
|
|
@@ -3761,19 +3762,19 @@ function useTaxAndCash() {
|
|
|
3761
3762
|
currency: undefined,
|
|
3762
3763
|
},
|
|
3763
3764
|
});
|
|
3764
|
-
const [_currenciesContext, setCurrenciesContext] = index_module.
|
|
3765
|
+
const [_currenciesContext, setCurrenciesContext] = index_module.Cn({
|
|
3765
3766
|
namespace: CURRENCIES_NAMESPACE,
|
|
3766
3767
|
initialValue: [],
|
|
3767
3768
|
});
|
|
3768
|
-
const [_countriesContext, _setCountriesContext] = index_module.
|
|
3769
|
+
const [_countriesContext, _setCountriesContext] = index_module.Cn({
|
|
3769
3770
|
namespace: COUNTRIES_NAMESPACE,
|
|
3770
3771
|
initialValue: [],
|
|
3771
3772
|
});
|
|
3772
|
-
const [_sortedCountriesContext, setSortedCountriesContext] = index_module.
|
|
3773
|
+
const [_sortedCountriesContext, setSortedCountriesContext] = index_module.Cn({
|
|
3773
3774
|
namespace: SORTED_COUNTRIES_NAMESPACE,
|
|
3774
3775
|
initialValue: [],
|
|
3775
3776
|
});
|
|
3776
|
-
const { data, errors } = index_module.
|
|
3777
|
+
const { data, errors } = index_module.Fn({
|
|
3777
3778
|
namespace: USER_QUERY_NAMESPACE,
|
|
3778
3779
|
query: GET_USER,
|
|
3779
3780
|
skip: !user,
|
|
@@ -3783,12 +3784,12 @@ function useTaxAndCash() {
|
|
|
3783
3784
|
});
|
|
3784
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) ||
|
|
3785
3786
|
userFormContext.countryCode;
|
|
3786
|
-
index_module.
|
|
3787
|
+
index_module.Fn({
|
|
3787
3788
|
namespace: COUNTRIES_QUERY_NAMESPACE,
|
|
3788
3789
|
query: GET_COUNTRIES,
|
|
3789
3790
|
skip: !user,
|
|
3790
3791
|
});
|
|
3791
|
-
const { data: financeNetworkData, refetch } = index_module.
|
|
3792
|
+
const { data: financeNetworkData, refetch } = index_module.Fn({
|
|
3792
3793
|
namespace: FINANCE_NETWORK_SETTINGS_NAMESPACE,
|
|
3793
3794
|
query: GET_FINANCE_NETWORK_SETTINGS,
|
|
3794
3795
|
skip: !user,
|
|
@@ -3796,7 +3797,7 @@ function useTaxAndCash() {
|
|
|
3796
3797
|
filter: getFinanceNetworkFilter(),
|
|
3797
3798
|
},
|
|
3798
3799
|
});
|
|
3799
|
-
const { data: currenciesData } = index_module.
|
|
3800
|
+
const { data: currenciesData } = index_module.Fn({
|
|
3800
3801
|
namespace: CURRENCIES_QUERY_NAMESPACE,
|
|
3801
3802
|
query: GET_CURRENCIES,
|
|
3802
3803
|
skip: !user,
|
|
@@ -3877,14 +3878,14 @@ function useTaxAndCash() {
|
|
|
3877
3878
|
step,
|
|
3878
3879
|
setStep,
|
|
3879
3880
|
context,
|
|
3880
|
-
namespace: index_module
|
|
3881
|
+
namespace: index_module.Pn(TAX_CONTEXT_NAMESPACE),
|
|
3881
3882
|
loading: step === "/loading",
|
|
3882
3883
|
};
|
|
3883
3884
|
}
|
|
3884
3885
|
|
|
3885
3886
|
const TaxAndCashMonolith = class {
|
|
3886
3887
|
constructor(hostRef) {
|
|
3887
|
-
index
|
|
3888
|
+
index.registerInstance(this, hostRef);
|
|
3888
3889
|
/*---------------------------------------------------------------------------------
|
|
3889
3890
|
!IMPORTANT!: Make sure to also change the prop names in the respective component
|
|
3890
3891
|
-----------------------------------------------------------------------------------*/
|
|
@@ -4167,6 +4168,11 @@ const TaxAndCashMonolith = class {
|
|
|
4167
4168
|
* @uiGroup Step 3 Properties
|
|
4168
4169
|
*/
|
|
4169
4170
|
this.step3_refreshButton = "Refresh Page";
|
|
4171
|
+
/**
|
|
4172
|
+
* @uiName Exit button text
|
|
4173
|
+
* @uiGroup Step 3 Properties
|
|
4174
|
+
*/
|
|
4175
|
+
this.step3_exitButton = "Exit";
|
|
4170
4176
|
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4171
4177
|
STEP 4 PROPS:
|
|
4172
4178
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
@@ -4763,7 +4769,7 @@ const TaxAndCashMonolith = class {
|
|
|
4763
4769
|
* @uiGroup General Form Properties
|
|
4764
4770
|
*/
|
|
4765
4771
|
this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
|
|
4766
|
-
stencilHooks_module.h(this);
|
|
4772
|
+
stencilHooks_module.h$1(this);
|
|
4767
4773
|
}
|
|
4768
4774
|
disconnectedCallback() { }
|
|
4769
4775
|
// this field is required prop
|
|
@@ -4794,31 +4800,31 @@ const TaxAndCashMonolith = class {
|
|
|
4794
4800
|
// @ts-ignore
|
|
4795
4801
|
if ((_a = this.demoData) === null || _a === void 0 ? void 0 : _a.showTextProps) {
|
|
4796
4802
|
const textProps = utils.getProps(this);
|
|
4797
|
-
return (index
|
|
4803
|
+
return (index.h("div", null, (_b = Object.keys(textProps)) === null || _b === void 0 ? void 0 : _b.map((prop) => {
|
|
4798
4804
|
if (prop === "demoData")
|
|
4799
4805
|
return;
|
|
4800
|
-
return (index
|
|
4806
|
+
return (index.h("div", null, index.h("b", null, prop, ":"), " ", this[prop], index.h("hr", null)));
|
|
4801
4807
|
})));
|
|
4802
4808
|
}
|
|
4803
4809
|
switch (props.step) {
|
|
4804
4810
|
case "/1":
|
|
4805
|
-
return (index
|
|
4811
|
+
return (index.h("sqm-user-info-form", Object.assign({}, this.getGeneralStepTextProps("step1_"))));
|
|
4806
4812
|
case "/2":
|
|
4807
|
-
return (index
|
|
4813
|
+
return (index.h("sqm-indirect-tax-form", Object.assign({}, this.getGeneralStepTextProps("step2_"))));
|
|
4808
4814
|
case "/3":
|
|
4809
|
-
return (index
|
|
4815
|
+
return (index.h("sqm-docusign-form", Object.assign({}, this.getGeneralStepTextProps("step3_"))));
|
|
4810
4816
|
case "/4":
|
|
4811
|
-
return (index
|
|
4817
|
+
return (index.h("sqm-banking-info-form", Object.assign({}, this.getGeneralStepTextProps("step4_"))));
|
|
4812
4818
|
case "/dashboard":
|
|
4813
|
-
return (index
|
|
4819
|
+
return (index.h("sqm-tax-and-cash-dashboard", Object.assign({}, this.getGeneralStepTextProps("dashboard_"))));
|
|
4814
4820
|
case "/error":
|
|
4815
|
-
return (index
|
|
4821
|
+
return (index.h(sqmInvoiceTableView.ErrorView, { loadingErrorAlertHeader: this.loadingErrorAlertHeader, loadingErrorAlertDescription: this.loadingErrorAlertDescription }));
|
|
4816
4822
|
}
|
|
4817
|
-
return index
|
|
4823
|
+
return index.h(sqmInvoiceTableView.LoadingView, null);
|
|
4818
4824
|
}
|
|
4819
4825
|
};
|
|
4820
4826
|
function useDemoTaxAndCash(props) {
|
|
4821
|
-
const [step, setStep] = index_module.
|
|
4827
|
+
const [step, setStep] = index_module.Cn({
|
|
4822
4828
|
namespace: TAX_CONTEXT_NAMESPACE,
|
|
4823
4829
|
initialValue: "/1",
|
|
4824
4830
|
});
|
|
@@ -4989,17 +4995,17 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
4989
4995
|
var _a;
|
|
4990
4996
|
const { states, text, callbacks, slots } = props;
|
|
4991
4997
|
const statusMap = {
|
|
4992
|
-
NOT_VERIFIED: (index
|
|
4993
|
-
index
|
|
4994
|
-
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({
|
|
4995
5001
|
id: `badgeTextAwaitingReview`,
|
|
4996
5002
|
defaultMessage: text.badgeTextAwaitingReview,
|
|
4997
5003
|
}, {
|
|
4998
5004
|
dateSubmitted: states.dateSubmitted,
|
|
4999
5005
|
})))),
|
|
5000
|
-
ACTIVE: (index
|
|
5001
|
-
index
|
|
5002
|
-
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({
|
|
5003
5009
|
id: `badgeTextSubmittedOn`,
|
|
5004
5010
|
defaultMessage: states.documentType === "W9"
|
|
5005
5011
|
? text.badgeTextSubmittedOn
|
|
@@ -5007,14 +5013,14 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5007
5013
|
}, {
|
|
5008
5014
|
dateSubmitted: states.dateSubmitted,
|
|
5009
5015
|
})))),
|
|
5010
|
-
INACTIVE: (index
|
|
5011
|
-
index
|
|
5012
|
-
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))),
|
|
5013
5019
|
};
|
|
5014
5020
|
const alertMap = {
|
|
5015
|
-
INACTIVE: (index
|
|
5016
|
-
index
|
|
5017
|
-
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({
|
|
5018
5024
|
id: `taxAlertHeaderNotActive`,
|
|
5019
5025
|
defaultMessage: states.documentType === "W9"
|
|
5020
5026
|
? text.taxAlertHeaderNotActiveW9
|
|
@@ -5022,7 +5028,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5022
5028
|
}, {
|
|
5023
5029
|
documentType: states.documentTypeString,
|
|
5024
5030
|
})),
|
|
5025
|
-
index
|
|
5031
|
+
index.h("br", null),
|
|
5026
5032
|
global.intl.formatMessage({
|
|
5027
5033
|
id: `taxAlertMessage`,
|
|
5028
5034
|
defaultMessage: states.documentType === "W9"
|
|
@@ -5060,66 +5066,66 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5060
5066
|
});
|
|
5061
5067
|
}
|
|
5062
5068
|
};
|
|
5063
|
-
return (index
|
|
5064
|
-
index
|
|
5065
|
-
index
|
|
5066
|
-
states.loadingError && (index
|
|
5067
|
-
index
|
|
5068
|
-
index
|
|
5069
|
-
index
|
|
5070
|
-
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),
|
|
5071
5077
|
text.error.loadingErrorAlertDescription))),
|
|
5072
|
-
((_a = states.errors) === null || _a === void 0 ? void 0 : _a.general) && (index
|
|
5073
|
-
index
|
|
5074
|
-
index
|
|
5075
|
-
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),
|
|
5076
5082
|
text.error.generalDescription)),
|
|
5077
|
-
index
|
|
5078
|
-
index
|
|
5079
|
-
index
|
|
5080
|
-
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)),
|
|
5081
5087
|
states.status === "INACTIVE" && alertMap[states.status],
|
|
5082
|
-
index
|
|
5083
|
-
index
|
|
5084
|
-
index
|
|
5085
|
-
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 },
|
|
5086
5092
|
slots.payoutDetailsCardSlot,
|
|
5087
|
-
!states.loading && (index
|
|
5088
|
-
states.canEditPayoutInfo && (index
|
|
5089
|
-
index
|
|
5090
|
-
index
|
|
5091
|
-
index
|
|
5092
|
-
index
|
|
5093
|
-
index
|
|
5094
|
-
index
|
|
5095
|
-
index
|
|
5096
|
-
index
|
|
5097
|
-
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({
|
|
5098
5104
|
id: "section-subheader",
|
|
5099
5105
|
defaultMessage: text.taxDocumentSectionSubHeader,
|
|
5100
5106
|
}, {
|
|
5101
5107
|
documentType: states.documentTypeString,
|
|
5102
5108
|
})),
|
|
5103
|
-
index
|
|
5104
|
-
index
|
|
5105
|
-
index
|
|
5106
|
-
index
|
|
5107
|
-
index
|
|
5108
|
-
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 },
|
|
5109
5115
|
text.indirectTaxInfoSectionHeader,
|
|
5110
|
-
index
|
|
5111
|
-
index
|
|
5112
|
-
index
|
|
5113
|
-
index
|
|
5114
|
-
!states.notRegistered && (index
|
|
5115
|
-
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({
|
|
5116
5122
|
id: `indirectTaxDetails`,
|
|
5117
5123
|
defaultMessage: text.indirectTaxDetails,
|
|
5118
5124
|
}, {
|
|
5119
5125
|
indirectTaxType: states.indirectTaxType,
|
|
5120
5126
|
indirectTaxNumber: states.indirectTaxNumber,
|
|
5121
5127
|
})),
|
|
5122
|
-
index
|
|
5128
|
+
index.h("span", null,
|
|
5123
5129
|
states.qstNumber &&
|
|
5124
5130
|
global.intl.formatMessage({
|
|
5125
5131
|
id: `qstNumber`,
|
|
@@ -5134,14 +5140,14 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5134
5140
|
}, {
|
|
5135
5141
|
subRegionTaxNumber: states.subRegionTaxNumber,
|
|
5136
5142
|
})))),
|
|
5137
|
-
!states.notRegistered && (index
|
|
5138
|
-
index
|
|
5139
|
-
index
|
|
5140
|
-
index
|
|
5141
|
-
index
|
|
5142
|
-
index
|
|
5143
|
-
index
|
|
5144
|
-
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" })))))))))));
|
|
5145
5151
|
};
|
|
5146
5152
|
|
|
5147
5153
|
function getCountryName(countryCode, locale) {
|
|
@@ -5180,15 +5186,15 @@ function getIndirectTaxType(taxInformation) {
|
|
|
5180
5186
|
}
|
|
5181
5187
|
const useTaxAndCashDashboard = (props) => {
|
|
5182
5188
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
5183
|
-
const setStep = index_module.
|
|
5184
|
-
const setContext = index_module.
|
|
5189
|
+
const setStep = index_module.wn(TAX_CONTEXT_NAMESPACE);
|
|
5190
|
+
const setContext = index_module.wn(TAX_FORM_CONTEXT_NAMESPACE);
|
|
5185
5191
|
const [showDialog, setShowDialog] = stencilHooks_module.useState(false);
|
|
5186
|
-
const locale = index_module.
|
|
5192
|
+
const locale = index_module.L();
|
|
5187
5193
|
stencilHooks_module.useEffect(() => {
|
|
5188
5194
|
// Clear override context once on submitted
|
|
5189
5195
|
setContext({});
|
|
5190
5196
|
}, []);
|
|
5191
|
-
const { data, loading, errors: userError, } = index_module.
|
|
5197
|
+
const { data, loading, errors: userError, } = index_module.Mn(USER_QUERY_NAMESPACE);
|
|
5192
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;
|
|
5193
5199
|
const documentType = publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType;
|
|
5194
5200
|
const submissionDate = (_c = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _c === void 0 ? void 0 : _c.dateCreated;
|
|
@@ -5247,7 +5253,7 @@ const useTaxAndCashDashboard = (props) => {
|
|
|
5247
5253
|
|
|
5248
5254
|
const TaxAndCashDashboard = class {
|
|
5249
5255
|
constructor(hostRef) {
|
|
5250
|
-
index
|
|
5256
|
+
index.registerInstance(this, hostRef);
|
|
5251
5257
|
/**
|
|
5252
5258
|
* @uiName Active tax form badge label
|
|
5253
5259
|
*/
|
|
@@ -5507,7 +5513,7 @@ const TaxAndCashDashboard = class {
|
|
|
5507
5513
|
* @uiName Cancel button label
|
|
5508
5514
|
*/
|
|
5509
5515
|
this.cancelButton = "Cancel";
|
|
5510
|
-
stencilHooks_module.h(this);
|
|
5516
|
+
stencilHooks_module.h$1(this);
|
|
5511
5517
|
}
|
|
5512
5518
|
disconnectedCallback() { }
|
|
5513
5519
|
getTextProps() {
|
|
@@ -5526,8 +5532,8 @@ const TaxAndCashDashboard = class {
|
|
|
5526
5532
|
const props = index_module.isDemo()
|
|
5527
5533
|
? useDemoTaxAndCashDashboard(this)
|
|
5528
5534
|
: useTaxAndCashDashboard(this);
|
|
5529
|
-
return (index
|
|
5530
|
-
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()))),
|
|
5531
5537
|
} })));
|
|
5532
5538
|
}
|
|
5533
5539
|
};
|
|
@@ -6605,6 +6611,27 @@ const style$6 = {
|
|
|
6605
6611
|
color: "var(--sl-color-neutral-500)",
|
|
6606
6612
|
fontSize: "var(--sl-font-size-medium)",
|
|
6607
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
|
+
},
|
|
6608
6635
|
};
|
|
6609
6636
|
const sheet$5 = JSS.createStyleSheet(style$6);
|
|
6610
6637
|
const styleString$5 = sheet$5.toString();
|
|
@@ -6630,7 +6657,7 @@ const vanillaStyle$3 = `
|
|
|
6630
6657
|
}
|
|
6631
6658
|
|
|
6632
6659
|
sl-select#phoneNumberCountryCode::part(menu) {
|
|
6633
|
-
width:
|
|
6660
|
+
min-width: 250px;
|
|
6634
6661
|
}
|
|
6635
6662
|
`;
|
|
6636
6663
|
const UserInfoFormView = (props) => {
|
|
@@ -6641,7 +6668,7 @@ const UserInfoFormView = (props) => {
|
|
|
6641
6668
|
id: "bankingCollectionText",
|
|
6642
6669
|
defaultMessage: text.allowBankingCollection,
|
|
6643
6670
|
}, {
|
|
6644
|
-
termsAndConditionsLink: (index
|
|
6671
|
+
termsAndConditionsLink: (index.h("a", { href: text.termsAndConditionsLink, target: "_blank" }, text.termsAndConditionsLabel)),
|
|
6645
6672
|
});
|
|
6646
6673
|
let regionLabel = undefined;
|
|
6647
6674
|
switch (data.regionLabelEnum) {
|
|
@@ -6657,94 +6684,96 @@ const UserInfoFormView = (props) => {
|
|
|
6657
6684
|
default:
|
|
6658
6685
|
regionLabel = text.state;
|
|
6659
6686
|
}
|
|
6660
|
-
return (index
|
|
6661
|
-
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" },
|
|
6662
6689
|
styleString$5,
|
|
6663
6690
|
vanillaStyle$3),
|
|
6664
|
-
states.loadingError && (index
|
|
6665
|
-
index
|
|
6666
|
-
index
|
|
6667
|
-
index
|
|
6668
|
-
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),
|
|
6669
6696
|
text.error.loadingErrorAlertDescription),
|
|
6670
|
-
index
|
|
6671
|
-
states.loading ? (index
|
|
6672
|
-
index
|
|
6673
|
-
index
|
|
6674
|
-
!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({
|
|
6675
6702
|
id: "formStep",
|
|
6676
6703
|
defaultMessage: text.formStep,
|
|
6677
6704
|
}, { step: states.step, count: FORM_STEPS }))),
|
|
6678
|
-
index
|
|
6679
|
-
index
|
|
6680
|
-
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index
|
|
6681
|
-
index
|
|
6682
|
-
index
|
|
6683
|
-
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),
|
|
6684
6711
|
text.error.generalDescription)),
|
|
6685
|
-
(states.isPartner || states.isUser) && (index
|
|
6686
|
-
index
|
|
6687
|
-
index
|
|
6688
|
-
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),
|
|
6689
6716
|
text.isPartnerAlertDescription)),
|
|
6690
|
-
index
|
|
6691
|
-
index
|
|
6692
|
-
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) ? {
|
|
6693
6720
|
class: classes.ErrorInput,
|
|
6694
6721
|
helpText: sqmInvoiceTableView.formatErrorMessage(text.firstName, formState.errors.firstName),
|
|
6695
6722
|
}
|
|
6696
6723
|
: {}), { id: "firstName", name: "/firstName", required: true })),
|
|
6697
|
-
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) ? {
|
|
6698
6725
|
class: classes.ErrorInput,
|
|
6699
6726
|
helpText: sqmInvoiceTableView.formatErrorMessage(text.lastName, formState.errors.lastName),
|
|
6700
6727
|
}
|
|
6701
6728
|
: {}), { id: "lastName", name: "/lastName", required: true })),
|
|
6702
|
-
index
|
|
6703
|
-
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) ? {
|
|
6704
6731
|
class: classes.ErrorInput,
|
|
6705
6732
|
helpText: sqmInvoiceTableView.formatErrorMessage(text.country, formState.errors.countryCode),
|
|
6706
6733
|
}
|
|
6707
6734
|
: {}), { required: true, "onSl-select": (e) => callbacks.onFormChange("countryCode", e) }),
|
|
6708
|
-
index
|
|
6735
|
+
index.h("sl-input", { class: classes.SearchInput, placeholder: text.searchForCountryText, onKeyDown: (e) => {
|
|
6709
6736
|
// Stop shoelace intercepting key presses
|
|
6710
6737
|
e.stopPropagation();
|
|
6711
6738
|
}, "onSl-input": (e) => {
|
|
6712
6739
|
callbacks.setCountrySearch(e.target.value);
|
|
6713
6740
|
} }), (_e = data === null || data === void 0 ? void 0 : data.countries) === null || _e === void 0 ? void 0 :
|
|
6714
|
-
_e.map((c) => (index
|
|
6715
|
-
_f.map((c) => (index
|
|
6716
|
-
index
|
|
6717
|
-
index
|
|
6718
|
-
|
|
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
|
-
|
|
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 }) =>
|
|
6748
6777
|
// Checks for non-ASCII characters
|
|
6749
6778
|
!sqmInvoiceTableView.validateBillingField(/^[\x20-\xFF]+$/, value) &&
|
|
6750
6779
|
sqmInvoiceTableView.formatErrorMessage(text.address, text.error.invalidCharacterError), disabled: states.disabled || states.isPartner }, (((_l = formState.errors) === null || _l === void 0 ? void 0 : _l.address) ? {
|
|
@@ -6752,7 +6781,7 @@ const UserInfoFormView = (props) => {
|
|
|
6752
6781
|
helpText: sqmInvoiceTableView.formatErrorMessage(text.address, formState.errors.address),
|
|
6753
6782
|
}
|
|
6754
6783
|
: {}), { required: true })),
|
|
6755
|
-
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 }) =>
|
|
6756
6785
|
// Checks for non-ASCII characters
|
|
6757
6786
|
!sqmInvoiceTableView.validateBillingField(/^[\x20-\xFF]+$/, value) &&
|
|
6758
6787
|
sqmInvoiceTableView.formatErrorMessage(text.city, text.error.invalidCharacterError), disabled: states.disabled || states.isPartner }, (((_m = formState.errors) === null || _m === void 0 ? void 0 : _m.city) ? {
|
|
@@ -6760,41 +6789,41 @@ const UserInfoFormView = (props) => {
|
|
|
6760
6789
|
helpText: sqmInvoiceTableView.formatErrorMessage(text.city, formState.errors.city),
|
|
6761
6790
|
}
|
|
6762
6791
|
: {}), { required: true })),
|
|
6763
|
-
!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) ? {
|
|
6764
6793
|
class: classes.ErrorInput,
|
|
6765
6794
|
helpText: sqmInvoiceTableView.formatErrorMessage(text.state, formState.errors.state),
|
|
6766
6795
|
}
|
|
6767
|
-
: {}), { required: true }), (_p = data.regions) === null || _p === void 0 ? void 0 : _p.map((r) => (index
|
|
6768
|
-
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) ? {
|
|
6769
6798
|
class: classes.ErrorInput,
|
|
6770
6799
|
helpText: sqmInvoiceTableView.formatErrorMessage(text.postalCode, formState.errors.postalCode),
|
|
6771
6800
|
}
|
|
6772
6801
|
: {}), { required: true })),
|
|
6773
|
-
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) ? {
|
|
6774
6803
|
class: classes.ErrorInput,
|
|
6775
6804
|
helpText: sqmInvoiceTableView.formatErrorMessage(text.currency, formState.errors.currency),
|
|
6776
6805
|
}
|
|
6777
6806
|
: {}), { required: true, ref: (el) => (refs.currencyRef.current = el) }),
|
|
6778
|
-
index
|
|
6807
|
+
index.h("sl-input", { class: classes.SearchInput, placeholder: text.searchForCurrencyText, onKeyDown: (e) => {
|
|
6779
6808
|
// Stop shoelace intercepting key presses
|
|
6780
6809
|
e.stopPropagation();
|
|
6781
6810
|
}, "onSl-input": (e) => {
|
|
6782
6811
|
callbacks.setCurrencySearch(e.target.value);
|
|
6783
6812
|
} }), (_s = data === null || data === void 0 ? void 0 : data.currencies) === null || _s === void 0 ? void 0 :
|
|
6784
|
-
_s.map((c) => (index
|
|
6813
|
+
_s.map((c) => (index.h("sl-menu-item", { value: c.currencyCode },
|
|
6785
6814
|
c.currencyCode,
|
|
6786
6815
|
" - ",
|
|
6787
6816
|
c.displayName))), (_t = data === null || data === void 0 ? void 0 : data.allCurrencies) === null || _t === void 0 ? void 0 :
|
|
6788
|
-
_t.map((c) => (index
|
|
6817
|
+
_t.map((c) => (index.h("sl-menu-item", { value: c.currencyCode, style: { display: "none" } },
|
|
6789
6818
|
c.currencyCode,
|
|
6790
6819
|
" - ",
|
|
6791
6820
|
c.displayName)))),
|
|
6792
|
-
index
|
|
6793
|
-
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) => {
|
|
6794
6823
|
e.target.value = e.target.checked;
|
|
6795
6824
|
}, disabled: states.isPartner ? false : states.disabled, required: true, value: formState.allowBankingCollection, id: "allowBankingCollection", name: "/allowBankingCollection" }, bankingCollectionText),
|
|
6796
|
-
((_u = formState.errors) === null || _u === void 0 ? void 0 : _u.allowBankingCollection) && (index
|
|
6797
|
-
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))))));
|
|
6798
6827
|
};
|
|
6799
6828
|
|
|
6800
6829
|
function useUserInfoForm(props) {
|
|
@@ -6802,12 +6831,12 @@ function useUserInfoForm(props) {
|
|
|
6802
6831
|
const currencyRef = stencilHooks_module.useRef(undefined);
|
|
6803
6832
|
const phoneCountryRef = stencilHooks_module.useRef(undefined);
|
|
6804
6833
|
const formRef = stencilHooks_module.useRef(null);
|
|
6805
|
-
const context = index_module.
|
|
6806
|
-
const countries = index_module.
|
|
6807
|
-
const [step, setStep] = index_module.
|
|
6808
|
-
const [userFormContext, setUserFormContext] = index_module.
|
|
6809
|
-
const { data, loading, errors: userError, } = index_module.
|
|
6810
|
-
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);
|
|
6811
6840
|
const currencies = stencilHooks_module.useMemo(() => [...(_currencies || [])].sort((a, b) => a.displayName.localeCompare(b.displayName)), [_currencies]);
|
|
6812
6841
|
const [countrySearch, setCountrySearch] = stencilHooks_module.useState("");
|
|
6813
6842
|
const [phoneCountrySearch, setPhoneCountrySearch] = stencilHooks_module.useState("");
|
|
@@ -6991,7 +7020,7 @@ function useUserInfoForm(props) {
|
|
|
6991
7020
|
|
|
6992
7021
|
const TaxForm = class {
|
|
6993
7022
|
constructor(hostRef) {
|
|
6994
|
-
index
|
|
7023
|
+
index.registerInstance(this, hostRef);
|
|
6995
7024
|
this.ignored = true;
|
|
6996
7025
|
/**
|
|
6997
7026
|
* @uiName First name field label
|
|
@@ -7139,7 +7168,7 @@ const TaxForm = class {
|
|
|
7139
7168
|
* @uiName Page description
|
|
7140
7169
|
*/
|
|
7141
7170
|
this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
|
|
7142
|
-
stencilHooks_module.h(this);
|
|
7171
|
+
stencilHooks_module.h$1(this);
|
|
7143
7172
|
}
|
|
7144
7173
|
disconnectedCallback() { }
|
|
7145
7174
|
getTextProps() {
|
|
@@ -7159,7 +7188,7 @@ const TaxForm = class {
|
|
|
7159
7188
|
}
|
|
7160
7189
|
render() {
|
|
7161
7190
|
const props = index_module.isDemo() ? useDemoUserInfoForm(this) : useUserInfoForm(this);
|
|
7162
|
-
return (index
|
|
7191
|
+
return (index.h(index.Host, null, index.h(UserInfoFormView, { data: props.data,
|
|
7163
7192
|
// @ts-ignore
|
|
7164
7193
|
states: props.states, callbacks: {
|
|
7165
7194
|
...props.callbacks,
|
|
@@ -7168,7 +7197,7 @@ const TaxForm = class {
|
|
|
7168
7197
|
}
|
|
7169
7198
|
};
|
|
7170
7199
|
function useDemoUserInfoForm(props) {
|
|
7171
|
-
const setStep = index_module.
|
|
7200
|
+
const setStep = index_module.wn(TAX_CONTEXT_NAMESPACE);
|
|
7172
7201
|
return cjs.cjs({
|
|
7173
7202
|
setStep,
|
|
7174
7203
|
onSubmit: () => {
|