@saasquatch/mint-components 1.11.0-6 → 1.11.0-8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{ShadowViewAddon-ba87315e.js → ShadowViewAddon-c3e91cee.js} +103 -79
- package/dist/cjs/{email-registration-view-5170d9f1.js → email-registration-view-248652bb.js} +1 -1
- package/dist/cjs/{global-0e1b8019.js → global-02e50f09.js} +12 -163
- package/dist/cjs/{index.module-2d82a984.js → index.module-df530553.js} +244 -1444
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{luxon-20eafbd9.js → luxon-05098e19.js} +1 -1
- package/dist/cjs/mint-components.cjs.js +4 -4
- package/dist/cjs/{mockRewardData-3c470512.js → mockRewardData-4258e067.js} +1 -1
- package/dist/cjs/{re-render-7744b75a.js → re-render-1976e05e.js} +5 -5
- package/dist/cjs/sqm-asset-card.cjs.entry.js +3 -3
- package/dist/cjs/sqm-banking-info-form_16.cjs.entry.js +535 -507
- package/dist/cjs/sqm-big-stat_38.cjs.entry.js +174 -134
- package/dist/cjs/sqm-close-button.cjs.entry.js +3 -3
- package/dist/cjs/sqm-context-router.cjs.entry.js +4 -4
- package/dist/cjs/sqm-empty_4.cjs.entry.js +14 -7
- package/dist/cjs/sqm-form-message.cjs.entry.js +2 -2
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +7 -7
- package/dist/cjs/sqm-header-logo.cjs.entry.js +2 -2
- package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +7 -7
- package/dist/cjs/{sqm-invoice-table-view-e75291d8.js → sqm-invoice-table-view-e3b03a00.js} +3 -2
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +11 -12
- package/dist/cjs/sqm-logout-current-user.cjs.entry.js +17 -19
- package/dist/cjs/{sqm-navigation-sidebar-item-view-34d8941e.js → sqm-navigation-sidebar-item-view-a125ec5f.js} +2 -2
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +5 -5
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +5 -5
- package/dist/cjs/sqm-password-field.cjs.entry.js +4 -4
- package/dist/cjs/sqm-popup-container.cjs.entry.js +6 -6
- package/dist/cjs/{sqm-portal-container-view-5fb2ad49.js → sqm-portal-container-view-990a85a3.js} +1 -1
- package/dist/cjs/{sqm-portal-email-verification-view-a056e53e.js → sqm-portal-email-verification-view-292b5bf4.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +10 -10
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +7 -7
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +4 -4
- package/dist/cjs/{sqm-portal-profile-view-c1753d1a.js → sqm-portal-profile-view-fde54e35.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +14 -15
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +7 -7
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +11 -12
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +9 -9
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +9 -10
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +16 -17
- package/dist/cjs/sqm-referred-registration.cjs.entry.js +7 -7
- package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +2 -2
- package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +4 -4
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +66 -67
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +226 -106
- package/dist/cjs/sqm-tab.cjs.entry.js +4 -4
- package/dist/cjs/sqm-tabs.cjs.entry.js +6 -6
- package/dist/cjs/sqm-text-span.cjs.entry.js +2 -2
- package/dist/cjs/{stencil-hooks.module-a5a04d8a.js → stencil-hooks.module-72742a0b.js} +4 -1
- package/dist/cjs/{useChildElements-079a23aa.js → useChildElements-e0d44916.js} +3 -3
- package/dist/cjs/{useInstantAccessRegistration-615a4dec.js → useInstantAccessRegistration-bbe746d1.js} +4 -4
- package/dist/cjs/{useReferralTable-034e8eb1.js → useReferralTable-a76adb0d.js} +19 -20
- package/dist/cjs/{useRegistrationFormState-cabaa291.js → useRegistrationFormState-876ed65d.js} +3 -3
- package/dist/cjs/{utilities-a4072d5b.js → utilities-cec9dd36.js} +2 -2
- package/dist/collection/components/sqm-card-feed/sqm-card-feed.js +1 -1
- package/dist/collection/components/sqm-empty/EmptyState.stories.js +1 -1
- package/dist/collection/components/sqm-image/sqm-image-view.js +1 -1
- package/dist/collection/components/sqm-image/sqm-image.js +20 -0
- package/dist/collection/components/sqm-leaderboard/Leaderboard.stories.js +130 -24
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +55 -29
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +93 -29
- package/dist/collection/components/sqm-leaderboard/useLeaderboard.js +40 -4
- package/dist/collection/components/sqm-logout-current-user/useLogoutCurrentUser.js +9 -10
- package/dist/collection/components/sqm-portal-container/PortalContainer.stories.js +19 -7
- package/dist/collection/components/sqm-portal-container/sqm-portal-container-view.js +1 -1
- package/dist/collection/components/sqm-portal-container/sqm-portal-container.js +37 -0
- package/dist/collection/components/sqm-portal-verify-email/PortalVerifyEmail.stories.js +0 -2
- package/dist/collection/components/sqm-portal-verify-email/sqm-portal-verify-email.js +2 -2
- package/dist/collection/components/sqm-portal-verify-email/usePortalVerifyEmail.js +0 -1
- package/dist/collection/components/sqm-referral-card/ReferralCard.stories.js +1 -1
- package/dist/collection/components/sqm-share-button/ShareButton.stories.js +1 -1
- package/dist/collection/components/sqm-share-button/sqm-share-button-view.js +1 -1
- package/dist/collection/components/sqm-share-button/sqm-share-button.js +2 -2
- package/dist/collection/components/sqm-task-card/UseTaskCard.stories.js +1 -1
- package/dist/collection/components/sqm-task-card/sqm-task-card.js +1 -1
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +2 -1
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.js +1 -4
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +2 -1
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +27 -2
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +4 -1
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +4 -7
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/data.js +13 -14
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +29 -0
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +55 -32
- package/dist/collection/components/views/email-registration-view.js +1 -1
- package/dist/collection/global/global.js +1 -1
- package/dist/collection/stories/NewPortal.stories.js +1 -1
- package/dist/esm/{ShadowViewAddon-cebdd86a.js → ShadowViewAddon-e012b2aa.js} +77 -53
- package/dist/esm/{email-registration-view-07d80492.js → email-registration-view-a89a88bf.js} +1 -1
- package/dist/esm/{global-ce667547.js → global-04c7d3b5.js} +12 -163
- package/dist/esm/{index.module-cfe48b0e.js → index.module-def4aec5.js} +223 -1426
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{luxon-63e24900.js → luxon-7600be8d.js} +1 -1
- package/dist/esm/mint-components.js +4 -4
- package/dist/esm/{mockRewardData-e6b763d1.js → mockRewardData-0eb6e778.js} +1 -1
- package/dist/esm/{re-render-9f58806b.js → re-render-12fd274a.js} +5 -5
- package/dist/esm/sqm-asset-card.entry.js +2 -2
- package/dist/esm/sqm-banking-info-form_16.entry.js +156 -128
- package/dist/esm/sqm-big-stat_38.entry.js +123 -83
- package/dist/esm/sqm-close-button.entry.js +2 -2
- package/dist/esm/sqm-context-router.entry.js +3 -3
- package/dist/esm/sqm-empty_4.entry.js +11 -4
- package/dist/esm/sqm-form-message.entry.js +1 -1
- package/dist/esm/sqm-graphql-client-provider.entry.js +6 -6
- package/dist/esm/sqm-header-logo.entry.js +1 -1
- package/dist/esm/sqm-instant-access-registration.entry.js +6 -6
- package/dist/esm/{sqm-invoice-table-view-bccf5bbc.js → sqm-invoice-table-view-6e13a323.js} +3 -2
- package/dist/esm/sqm-leaderboard-rank.entry.js +6 -7
- package/dist/esm/sqm-logout-current-user.entry.js +12 -14
- package/dist/esm/{sqm-navigation-sidebar-item-view-407d8d6a.js → sqm-navigation-sidebar-item-view-60ef06cc.js} +2 -2
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +4 -4
- package/dist/esm/sqm-navigation-sidebar.entry.js +4 -4
- package/dist/esm/sqm-password-field.entry.js +3 -3
- package/dist/esm/sqm-popup-container.entry.js +5 -5
- package/dist/esm/{sqm-portal-container-view-ab89c6cc.js → sqm-portal-container-view-6c582684.js} +1 -1
- package/dist/esm/{sqm-portal-email-verification-view-b8ba7573.js → sqm-portal-email-verification-view-4307c992.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +9 -9
- package/dist/esm/sqm-portal-forgot-password.entry.js +6 -6
- package/dist/esm/sqm-portal-logout.entry.js +3 -3
- package/dist/esm/{sqm-portal-profile-view-9cbfeaf9.js → sqm-portal-profile-view-ffe955c8.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +8 -9
- package/dist/esm/sqm-portal-protected-route.entry.js +6 -6
- package/dist/esm/sqm-portal-registration-form.entry.js +9 -10
- package/dist/esm/sqm-portal-reset-password.entry.js +8 -8
- package/dist/esm/sqm-portal-verify-email.entry.js +8 -9
- package/dist/esm/sqm-referral-table_11.entry.js +8 -9
- package/dist/esm/sqm-referred-registration.entry.js +6 -6
- package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +1 -1
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +3 -3
- package/dist/esm/sqm-rewards-table_9.entry.js +13 -14
- package/dist/esm/sqm-stencilbook.entry.js +224 -104
- package/dist/esm/sqm-tab.entry.js +3 -3
- package/dist/esm/sqm-tabs.entry.js +5 -5
- package/dist/esm/sqm-text-span.entry.js +1 -1
- package/dist/esm/{stencil-hooks.module-3c7f7c90.js → stencil-hooks.module-ac12ca1c.js} +1 -1
- package/dist/esm/{useChildElements-55ba77b1.js → useChildElements-32e1bda1.js} +3 -3
- package/dist/esm/{useInstantAccessRegistration-c8486b92.js → useInstantAccessRegistration-46b89952.js} +4 -4
- package/dist/esm/{useReferralTable-1671695f.js → useReferralTable-f4de0650.js} +10 -11
- package/dist/esm/{useRegistrationFormState-554eed2c.js → useRegistrationFormState-9fc1ac80.js} +3 -3
- package/dist/esm/{utilities-aa00400c.js → utilities-3f5bba22.js} +2 -2
- package/dist/esm-es5/ShadowViewAddon-e012b2aa.js +1 -0
- package/dist/esm-es5/email-registration-view-a89a88bf.js +1 -0
- package/dist/esm-es5/global-04c7d3b5.js +285 -0
- package/dist/esm-es5/index.module-def4aec5.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{luxon-63e24900.js → luxon-7600be8d.js} +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/{mockRewardData-e6b763d1.js → mockRewardData-0eb6e778.js} +1 -1
- package/dist/esm-es5/{re-render-9f58806b.js → re-render-12fd274a.js} +1 -1
- package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
- package/dist/esm-es5/sqm-banking-info-form_16.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_38.entry.js +1 -1
- package/dist/esm-es5/sqm-close-button.entry.js +1 -1
- package/dist/esm-es5/sqm-context-router.entry.js +1 -1
- package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
- package/dist/esm-es5/sqm-form-message.entry.js +1 -1
- package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm-es5/sqm-header-logo.entry.js +1 -1
- package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
- package/dist/esm-es5/sqm-invoice-table-view-6e13a323.js +1 -0
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
- package/dist/esm-es5/{sqm-navigation-sidebar-item-view-407d8d6a.js → sqm-navigation-sidebar-item-view-60ef06cc.js} +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
- package/dist/esm-es5/sqm-password-field.entry.js +1 -1
- package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-container-view-6c582684.js +1 -0
- package/dist/esm-es5/{sqm-portal-email-verification-view-b8ba7573.js → sqm-portal-email-verification-view-4307c992.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-9cbfeaf9.js → sqm-portal-profile-view-ffe955c8.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-referred-registration.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-tab.entry.js +1 -1
- package/dist/esm-es5/sqm-tabs.entry.js +1 -1
- package/dist/esm-es5/sqm-text-span.entry.js +1 -1
- package/dist/esm-es5/{stencil-hooks.module-3c7f7c90.js → stencil-hooks.module-ac12ca1c.js} +1 -1
- package/dist/esm-es5/useChildElements-32e1bda1.js +1 -0
- package/dist/esm-es5/useInstantAccessRegistration-46b89952.js +1 -0
- package/dist/esm-es5/useReferralTable-f4de0650.js +1 -0
- package/dist/esm-es5/useRegistrationFormState-9fc1ac80.js +1 -0
- package/dist/esm-es5/{utilities-aa00400c.js → utilities-3f5bba22.js} +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/p-01cfff8a.system.entry.js +1 -0
- package/dist/mint-components/p-021a735d.entry.js +1 -0
- package/dist/mint-components/p-02424350.system.js +1 -0
- package/dist/mint-components/p-03494732.entry.js +1 -0
- package/dist/mint-components/{p-a2189daf.system.entry.js → p-07f675ab.system.entry.js} +1 -1
- package/dist/mint-components/p-0b9fa97f.js +1 -0
- package/dist/mint-components/{p-94b397d0.system.js → p-0d8c53ac.system.js} +1 -1
- package/dist/mint-components/{p-d491eac5.js → p-10685090.js} +24 -24
- package/dist/mint-components/p-10e89d0a.entry.js +1 -0
- package/dist/mint-components/{p-a05a21b8.entry.js → p-137ea86e.entry.js} +1 -1
- package/dist/mint-components/{p-cdd04337.entry.js → p-178d2d2e.entry.js} +1 -1
- package/dist/mint-components/p-1c857edb.entry.js +33 -0
- package/dist/mint-components/p-1dd69917.system.entry.js +1 -0
- package/dist/mint-components/{p-9223640e.js → p-251e7567.js} +1 -1
- package/dist/mint-components/{p-0979f82e.system.js → p-2a414b2e.system.js} +2 -2
- package/dist/mint-components/p-2dd67762.entry.js +1 -0
- package/dist/mint-components/{p-a2fc8ec6.js → p-2ee2ebba.js} +4 -4
- package/dist/mint-components/{p-3912f9af.entry.js → p-3223ba7b.entry.js} +1 -1
- package/dist/mint-components/p-32d1d162.entry.js +1 -0
- package/dist/mint-components/p-35d84041.system.entry.js +1 -0
- package/dist/mint-components/{p-cb45d0a8.system.js → p-370a1a73.system.js} +1 -1
- package/dist/mint-components/{p-69ae3f41.system.js → p-3d4656bb.system.js} +1 -1
- package/dist/mint-components/p-3ec16698.entry.js +13 -0
- package/dist/mint-components/p-3f385f47.entry.js +223 -0
- package/dist/mint-components/{p-83a759a6.js → p-41a11a7f.js} +1 -1
- package/dist/mint-components/p-44787d6e.system.js +1 -0
- package/dist/mint-components/{p-2669e88d.system.entry.js → p-4502ed11.system.entry.js} +1 -1
- package/dist/mint-components/{p-2a82e591.js → p-4d233cd4.js} +1 -1
- package/dist/mint-components/{p-8c616b35.system.js → p-4df8f1d2.system.js} +1 -1
- package/dist/mint-components/p-4ea58025.system.entry.js +1 -0
- package/dist/mint-components/{p-9a02b093.entry.js → p-4edde470.entry.js} +1 -1
- package/dist/mint-components/p-509e29e6.js +1 -0
- package/dist/mint-components/p-51f517a2.js +1 -0
- package/dist/mint-components/{p-709c0d6d.entry.js → p-56f14840.entry.js} +1 -1
- package/dist/mint-components/{p-2f75d0c6.system.entry.js → p-58ef25d3.system.entry.js} +1 -1
- package/dist/mint-components/{p-2c8c2ae9.system.js → p-59fe4ad1.system.js} +22 -22
- package/dist/mint-components/p-5b333fa8.system.entry.js +1 -0
- package/dist/mint-components/p-5be235f9.entry.js +1 -0
- package/dist/mint-components/{p-349315e6.system.entry.js → p-5cac90e8.system.entry.js} +1 -1
- package/dist/mint-components/{p-a56fbe1f.system.entry.js → p-5f1c4160.system.entry.js} +1 -1
- package/dist/mint-components/p-61eab172.js +1 -0
- package/dist/mint-components/{p-0034b33b.system.js → p-674a64fe.system.js} +1 -1
- package/dist/mint-components/{p-95af445c.system.entry.js → p-6afb4f48.system.entry.js} +1 -1
- package/dist/mint-components/{p-db7b9e12.entry.js → p-6cef104b.entry.js} +1 -1
- package/dist/mint-components/p-7049e9b0.entry.js +1 -0
- package/dist/mint-components/p-711ba77e.system.entry.js +1 -0
- package/dist/mint-components/p-733825fa.system.entry.js +1 -0
- package/dist/mint-components/p-76b2506e.system.entry.js +1 -0
- package/dist/mint-components/p-770368bc.system.js +1 -0
- package/dist/mint-components/{p-fd8496a0.system.entry.js → p-7731f793.system.entry.js} +1 -1
- package/dist/mint-components/p-79191f88.entry.js +1 -0
- package/dist/mint-components/{p-7a1e23b0.entry.js → p-7f088154.entry.js} +1 -1
- package/dist/mint-components/{p-5464dd3c.system.entry.js → p-8679ed9f.system.entry.js} +1 -1
- package/dist/mint-components/{p-747e6ce6.entry.js → p-86990110.entry.js} +1 -1
- package/dist/mint-components/p-8704937c.js +1248 -0
- package/dist/mint-components/{p-14beec1b.system.entry.js → p-88aac6a9.system.entry.js} +1 -1
- package/dist/mint-components/p-8b5b78ca.entry.js +1 -0
- package/dist/mint-components/{p-de9b0bcf.system.entry.js → p-8e907ac7.system.entry.js} +1 -1
- package/dist/mint-components/p-91669312.entry.js +1 -0
- package/dist/mint-components/p-95771f79.system.js +1 -0
- package/dist/mint-components/p-9c310991.system.entry.js +1 -0
- package/dist/mint-components/p-9df2fe24.entry.js +9 -0
- package/dist/mint-components/p-9f0629ba.system.entry.js +1 -0
- package/dist/mint-components/p-a1dba9a1.system.entry.js +1 -0
- package/dist/mint-components/p-a51533cb.system.js +1 -0
- package/dist/mint-components/p-a6a7dcaa.js +1 -0
- package/dist/mint-components/{p-ce23dbff.system.entry.js → p-a7c2ced2.system.entry.js} +1 -1
- package/dist/mint-components/p-a8f7cb95.js +1 -0
- package/dist/mint-components/{p-5f4a0d5a.entry.js → p-a9050eb0.entry.js} +1 -1
- package/dist/mint-components/p-aad11a68.entry.js +1 -0
- package/dist/mint-components/p-af062c8f.system.entry.js +1 -0
- package/dist/mint-components/{p-f0553edd.system.entry.js → p-afd366ae.system.entry.js} +1 -1
- package/dist/mint-components/p-b370fca8.system.js +1 -0
- package/dist/mint-components/p-b3b5b4b7.system.entry.js +1 -0
- package/dist/mint-components/{p-8b37f9fa.entry.js → p-b4c52c5a.entry.js} +3 -3
- package/dist/mint-components/p-b5861974.system.entry.js +1 -0
- package/dist/mint-components/{p-bf161aff.system.entry.js → p-b6fc1227.system.entry.js} +1 -1
- package/dist/mint-components/p-bb00db59.js +1 -0
- package/dist/mint-components/{p-74ba2bdd.system.entry.js → p-be4b748a.system.entry.js} +1 -1
- package/dist/mint-components/{p-e704842c.js → p-c7fd9e16.js} +1 -1
- package/dist/mint-components/p-c84659a3.system.js +1 -0
- package/dist/mint-components/p-c8878e79.entry.js +1 -0
- package/dist/mint-components/{p-4baf9ec9.entry.js → p-ce5afa40.entry.js} +1 -1
- package/dist/mint-components/{p-8d2d99b5.js → p-ce621bcc.js} +1 -1
- package/dist/mint-components/{p-e5299352.system.js → p-ce9e7c98.system.js} +1 -1
- package/dist/mint-components/{p-ad218d0b.system.entry.js → p-cf690d55.system.entry.js} +1 -1
- package/dist/mint-components/p-d495896f.system.entry.js +1 -0
- package/dist/mint-components/p-d8d2de11.entry.js +1 -0
- package/dist/mint-components/{p-5c602e84.entry.js → p-dd0d79bf.entry.js} +1 -1
- package/dist/mint-components/{p-553a92e2.system.js → p-dd7ee007.system.js} +1 -1
- package/dist/mint-components/p-e3735866.entry.js +11 -0
- package/dist/mint-components/p-e5a0c50e.entry.js +13 -0
- package/dist/mint-components/{p-92990ceb.js → p-eaada4da.js} +1 -1
- package/dist/mint-components/p-eba44835.system.entry.js +1 -0
- package/dist/mint-components/p-ec41d6a4.entry.js +174 -0
- package/dist/mint-components/{p-cc24f7e0.system.js → p-ed095674.system.js} +1 -1
- package/dist/mint-components/p-ed17e637.system.js +1 -0
- package/dist/mint-components/p-ed6ebd60.system.js +1 -0
- package/dist/mint-components/{p-7ab14d4b.system.entry.js → p-f0806232.system.entry.js} +1 -1
- package/dist/mint-components/{p-48704504.js → p-f3053c61.js} +1 -1
- package/dist/mint-components/{p-cfc4a126.system.entry.js → p-fb20eb5e.system.entry.js} +1 -1
- package/dist/mint-components/{p-79097c07.entry.js → p-fbdf0738.entry.js} +1 -1
- package/dist/mint-components/{p-1b24bb52.js → p-fd2c5407.js} +1 -1
- package/dist/types/components/sqm-card-feed/sqm-card-feed.d.ts +1 -1
- package/dist/types/components/sqm-image/sqm-image-view.d.ts +1 -0
- package/dist/types/components/sqm-image/sqm-image.d.ts +5 -0
- package/dist/types/components/sqm-leaderboard/Leaderboard.stories.d.ts +5 -1
- package/dist/types/components/sqm-leaderboard/sqm-leaderboard-view.d.ts +6 -4
- package/dist/types/components/sqm-leaderboard/sqm-leaderboard.d.ts +23 -6
- package/dist/types/components/sqm-leaderboard/useLeaderboard.d.ts +4 -2
- package/dist/types/components/sqm-portal-container/PortalContainer.stories.d.ts +1 -0
- package/dist/types/components/sqm-portal-container/sqm-portal-container-view.d.ts +1 -0
- package/dist/types/components/sqm-portal-container/sqm-portal-container.d.ts +7 -0
- package/dist/types/components/sqm-portal-verify-email/sqm-portal-verify-email-view.d.ts +0 -1
- package/dist/types/components/sqm-portal-verify-email/usePortalVerifyEmail.d.ts +0 -1
- package/dist/types/components/sqm-share-button/sqm-share-button.d.ts +2 -2
- package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.d.ts +0 -1
- package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.d.ts +3 -0
- package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.d.ts +5 -0
- package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +3 -2
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +5 -0
- package/dist/types/components.d.ts +86 -14
- package/dist/types/saasquatch.d.ts +1 -1
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +2 -2
- package/dist/cjs/index-56d1fa5b.js +0 -2227
- package/dist/esm/index-0c7b14c5.js +0 -2225
- package/dist/esm-es5/ShadowViewAddon-cebdd86a.js +0 -1
- package/dist/esm-es5/email-registration-view-07d80492.js +0 -1
- package/dist/esm-es5/global-ce667547.js +0 -285
- package/dist/esm-es5/index-0c7b14c5.js +0 -1
- package/dist/esm-es5/index.module-cfe48b0e.js +0 -53
- package/dist/esm-es5/sqm-invoice-table-view-bccf5bbc.js +0 -1
- package/dist/esm-es5/sqm-portal-container-view-ab89c6cc.js +0 -1
- package/dist/esm-es5/useChildElements-55ba77b1.js +0 -1
- package/dist/esm-es5/useInstantAccessRegistration-c8486b92.js +0 -1
- package/dist/esm-es5/useReferralTable-1671695f.js +0 -1
- package/dist/esm-es5/useRegistrationFormState-554eed2c.js +0 -1
- package/dist/mint-components/p-10036f16.js +0 -1
- package/dist/mint-components/p-1128f16d.entry.js +0 -187
- package/dist/mint-components/p-155e5795.entry.js +0 -1
- package/dist/mint-components/p-175cf117.system.entry.js +0 -1
- package/dist/mint-components/p-1bb39bf3.js +0 -1
- package/dist/mint-components/p-1c021084.system.js +0 -1
- package/dist/mint-components/p-1cb0c56c.js +0 -1
- package/dist/mint-components/p-22082cf5.entry.js +0 -1
- package/dist/mint-components/p-2c1ec58d.system.entry.js +0 -1
- package/dist/mint-components/p-2d713a4a.entry.js +0 -1
- package/dist/mint-components/p-37518555.system.entry.js +0 -1
- package/dist/mint-components/p-4e5ff6d5.system.entry.js +0 -1
- package/dist/mint-components/p-4fd5cde2.entry.js +0 -1
- package/dist/mint-components/p-55ba5de4.js +0 -42
- package/dist/mint-components/p-569acf5d.entry.js +0 -1
- package/dist/mint-components/p-58151230.system.entry.js +0 -1
- package/dist/mint-components/p-5a9e6c23.system.js +0 -1
- package/dist/mint-components/p-5e346208.system.entry.js +0 -1
- package/dist/mint-components/p-5f4cf5f4.system.js +0 -53
- package/dist/mint-components/p-6361cd09.system.entry.js +0 -1
- package/dist/mint-components/p-65976f70.system.entry.js +0 -1
- package/dist/mint-components/p-6bf41e0d.system.js +0 -1
- package/dist/mint-components/p-6fbfd683.js +0 -1
- package/dist/mint-components/p-77150ca3.entry.js +0 -1
- package/dist/mint-components/p-81ef4d8d.system.entry.js +0 -1
- package/dist/mint-components/p-84a5feb6.js +0 -1
- package/dist/mint-components/p-858a87ce.entry.js +0 -1
- package/dist/mint-components/p-89669879.system.js +0 -1
- package/dist/mint-components/p-8a82d287.entry.js +0 -1
- package/dist/mint-components/p-8d0312ad.entry.js +0 -13
- package/dist/mint-components/p-922578e4.system.js +0 -1
- package/dist/mint-components/p-93c4b92a.system.js +0 -1
- package/dist/mint-components/p-93feb565.system.entry.js +0 -1
- package/dist/mint-components/p-97f9ea19.system.js +0 -1
- package/dist/mint-components/p-9c1011db.entry.js +0 -9
- package/dist/mint-components/p-a1dddd9c.entry.js +0 -1
- package/dist/mint-components/p-a230e0f7.entry.js +0 -1
- package/dist/mint-components/p-a63607fe.js +0 -1
- package/dist/mint-components/p-a6ad8082.system.js +0 -1
- package/dist/mint-components/p-a7e84030.js +0 -1248
- package/dist/mint-components/p-aa1750ad.js +0 -1
- package/dist/mint-components/p-b9e629c4.entry.js +0 -1
- package/dist/mint-components/p-ba9642a9.entry.js +0 -33
- package/dist/mint-components/p-cac64545.system.entry.js +0 -1
- package/dist/mint-components/p-cc2a5934.entry.js +0 -13
- package/dist/mint-components/p-cca80c2e.system.entry.js +0 -1
- package/dist/mint-components/p-cf8ccbf5.entry.js +0 -1
- package/dist/mint-components/p-d5e0b017.entry.js +0 -9
- package/dist/mint-components/p-dbb74fc2.system.entry.js +0 -1
- package/dist/mint-components/p-e3ddb67b.system.entry.js +0 -1
- package/dist/mint-components/p-eb8cb617.system.js +0 -1
- package/dist/mint-components/p-ec2390ee.entry.js +0 -175
- package/dist/mint-components/p-ef4336c4.system.entry.js +0 -1
- package/dist/mint-components/p-fec47694.entry.js +0 -1
- package/dist/mint-components/p-ff87ca9c.system.entry.js +0 -1
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import { h, r as registerInstance, c as Host, g as getElement } from './index-17b4da69.js';
|
|
2
|
-
import {
|
|
3
|
-
import { i as intl } from './global-
|
|
4
|
-
import {
|
|
2
|
+
import { m as useRef, k as useState, f as useEffect, n as h$1, u as useMemo, b as browser, j as useReducer } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
+
import { i as intl } from './global-04c7d3b5.js';
|
|
4
|
+
import { d as dist, L, Q, t as bn, I as In, M as Mn, f as $e, i as isDemo, w as wn, u as useCallback, k as kn, v as Pn, _, C as Cn, F as Fn } from './index.module-def4aec5.js';
|
|
5
|
+
import { j as jsonpointer } from './jsonpointer-388a7082.js';
|
|
5
6
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
7
|
import './mixins-f60a614c.js';
|
|
7
8
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
8
9
|
import { G as GenericTableView } from './GenericTableView-d59d8ab4.js';
|
|
9
|
-
import { u as useRerenderListener, a as useRequestRerender } from './re-render-
|
|
10
|
-
import { u as useChildElements } from './useChildElements-
|
|
11
|
-
import { l as luxon } from './luxon-
|
|
12
|
-
import {
|
|
13
|
-
import { g as generateUserError } from './useReferralTable-1671695f.js';
|
|
10
|
+
import { u as useRerenderListener, a as useRequestRerender } from './re-render-12fd274a.js';
|
|
11
|
+
import { u as useChildElements } from './useChildElements-32e1bda1.js';
|
|
12
|
+
import { l as luxon } from './luxon-7600be8d.js';
|
|
13
|
+
import { g as generateUserError } from './useReferralTable-f4de0650.js';
|
|
14
14
|
import { g as getProps, l as luxonLocale } from './utils-334c1e34.js';
|
|
15
|
-
import {
|
|
16
|
-
import { t as taxTypeToName, v as validTaxDocument, a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, g as getCountryObj, O as OtherRegionSlotView, I as InvoiceTableView, E as ErrorView, L as LoadingView, c as vatLabels, G as GeneralLoadingView, f as formatErrorMessage, d as validateBillingField, o as objectIsFull, A as ADDRESS_REGIONS } from './sqm-invoice-table-view-bccf5bbc.js';
|
|
15
|
+
import { t as taxTypeToName, v as validTaxDocument, a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, g as getCountryObj, O as OtherRegionSlotView, I as InvoiceTableView, E as ErrorView, L as LoadingView, c as vatLabels, G as GeneralLoadingView, f as formatErrorMessage, d as validateBillingField, o as objectIsFull, A as ADDRESS_REGIONS } from './sqm-invoice-table-view-6e13a323.js';
|
|
17
16
|
|
|
18
17
|
const TAX_CONTEXT_NAMESPACE = "sq:tax-and-cash";
|
|
19
18
|
const TAX_FORM_CONTEXT_NAMESPACE = "sq:tax-form-context";
|
|
@@ -66,20 +65,19 @@ const GET_USER = dist.gql `
|
|
|
66
65
|
type
|
|
67
66
|
dateCreated
|
|
68
67
|
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
# }
|
|
68
|
+
withdrawalSettings {
|
|
69
|
+
paymentMethod
|
|
70
|
+
paypalEmailAddress
|
|
71
|
+
bankCountry
|
|
72
|
+
bankAccountNumber
|
|
73
|
+
paymentSchedulingType
|
|
74
|
+
paymentThreshold
|
|
75
|
+
paymentDay
|
|
76
|
+
}
|
|
77
|
+
payoutsAccount {
|
|
78
|
+
hold
|
|
79
|
+
balance
|
|
80
|
+
}
|
|
83
81
|
}
|
|
84
82
|
}
|
|
85
83
|
}
|
|
@@ -643,7 +641,6 @@ const style = {
|
|
|
643
641
|
alignItems: "flex-start",
|
|
644
642
|
justifyContent: "flex-start",
|
|
645
643
|
gap: "var(--sl-spacing-xx-small)",
|
|
646
|
-
maxWidth: "797px",
|
|
647
644
|
},
|
|
648
645
|
TitleContainer: {
|
|
649
646
|
display: "flex",
|
|
@@ -747,7 +744,8 @@ const style = {
|
|
|
747
744
|
background: "var(--sl-color-gray-200)",
|
|
748
745
|
},
|
|
749
746
|
LargeSkeleton: {
|
|
750
|
-
width: "
|
|
747
|
+
width: "100%",
|
|
748
|
+
maxWidth: "320px",
|
|
751
749
|
height: "40px",
|
|
752
750
|
borderRadius: "50px",
|
|
753
751
|
background: "var(--sl-color-gray-200)",
|
|
@@ -958,15 +956,15 @@ function parseImpactThreshold(threshold) {
|
|
|
958
956
|
}
|
|
959
957
|
function useBankingInfoForm(props) {
|
|
960
958
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
961
|
-
const locale =
|
|
962
|
-
const user =
|
|
963
|
-
const [step, setStep] =
|
|
964
|
-
const context =
|
|
965
|
-
const countries =
|
|
959
|
+
const locale = L();
|
|
960
|
+
const user = Q();
|
|
961
|
+
const [step, setStep] = bn(TAX_CONTEXT_NAMESPACE);
|
|
962
|
+
const context = In(TAX_FORM_CONTEXT_NAMESPACE);
|
|
963
|
+
const countries = In(SORTED_COUNTRIES_NAMESPACE);
|
|
966
964
|
const formRef = useRef(null);
|
|
967
|
-
const { data: paymentOptionsData, loading: paymentOptionsLoading, errors: paymentOptionsError, } =
|
|
968
|
-
const { data: userData, refetch, errors: userError, } =
|
|
969
|
-
const [saveWithdrawalSettings] =
|
|
965
|
+
const { data: paymentOptionsData, loading: paymentOptionsLoading, errors: paymentOptionsError, } = Mn(FINANCE_NETWORK_SETTINGS_NAMESPACE);
|
|
966
|
+
const { data: userData, refetch, errors: userError, } = Mn(USER_QUERY_NAMESPACE);
|
|
967
|
+
const [saveWithdrawalSettings] = $e(SAVE_WITHDRAWAL_SETTINGS);
|
|
970
968
|
const [formState, setFormState] = useState({});
|
|
971
969
|
const [currentPaymentOption, setCurrentPaymentOption] = useState(null);
|
|
972
970
|
const [loading, setLoading] = useState(false);
|
|
@@ -1534,7 +1532,7 @@ function useDemoBankingInfoForm(props) {
|
|
|
1534
1532
|
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;
|
|
1535
1533
|
const defaultCurrency = (_h = (_g = props.demoData) === null || _g === void 0 ? void 0 : _g.states) === null || _h === void 0 ? void 0 : _h.currency;
|
|
1536
1534
|
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;
|
|
1537
|
-
const setStep =
|
|
1535
|
+
const setStep = wn(TAX_CONTEXT_NAMESPACE);
|
|
1538
1536
|
const [paymentMethodChecked, setPaymentMethodChecked] = useState(undefined);
|
|
1539
1537
|
const [paymentScheduleChecked, setPaymentScheduleChecked] = useState(undefined);
|
|
1540
1538
|
const [currency, setCurrency] = useState(defaultCurrency);
|
|
@@ -1652,17 +1650,18 @@ const DOCUSIGN_ERROR_STATES = [
|
|
|
1652
1650
|
const DOCUSIGN_EXPIRED_STATES = ["ttl_expired", "session_timeout"];
|
|
1653
1651
|
function useDocusignForm(props) {
|
|
1654
1652
|
var _a, _b, _c;
|
|
1655
|
-
const user =
|
|
1656
|
-
const context =
|
|
1657
|
-
const [step, setStep] =
|
|
1658
|
-
const { data, loading: userLoading, refetch, } =
|
|
1653
|
+
const user = Q();
|
|
1654
|
+
const context = In(TAX_FORM_CONTEXT_NAMESPACE);
|
|
1655
|
+
const [step, setStep] = bn(TAX_CONTEXT_NAMESPACE);
|
|
1656
|
+
const { data, loading: userLoading, refetch, } = Mn(USER_QUERY_NAMESPACE);
|
|
1659
1657
|
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;
|
|
1660
|
-
const [createTaxDocument, { loading: documentLoading, data: document, errors: documentErrors },] =
|
|
1661
|
-
const [completeTaxDocument, { loading: completeDocumentLoading, data: completeData, errors: completeErrors, },] =
|
|
1658
|
+
const [createTaxDocument, { loading: documentLoading, data: document, errors: documentErrors },] = $e(GET_TAX_DOCUMENT);
|
|
1659
|
+
const [completeTaxDocument, { loading: completeDocumentLoading, data: completeData, errors: completeErrors, },] = $e(COMPLETE_TAX_DOCUMENT);
|
|
1662
1660
|
const [docusignStatus, setDocusignStatus] = useState(undefined);
|
|
1663
1661
|
const [participantType, setParticipantType] = useState(undefined);
|
|
1664
1662
|
const [errors, setErrors] = useState({});
|
|
1665
1663
|
const [loading, setLoading] = useState(false);
|
|
1664
|
+
const [showExitButton, setShowExitButton] = useState(false);
|
|
1666
1665
|
// Only look at current document if it's valid (same as required type)
|
|
1667
1666
|
const existingDocumentType = validTaxDocument(publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType) && (publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument)
|
|
1668
1667
|
? publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType : undefined;
|
|
@@ -1721,6 +1720,7 @@ function useDocusignForm(props) {
|
|
|
1721
1720
|
// @ts-expect-error: no data type for result
|
|
1722
1721
|
if (!result.completeImpactPublisherTaxDocument.success)
|
|
1723
1722
|
throw new Error();
|
|
1723
|
+
setShowExitButton(true);
|
|
1724
1724
|
}
|
|
1725
1725
|
catch (e) {
|
|
1726
1726
|
setErrors({ general: true });
|
|
@@ -1754,6 +1754,7 @@ function useDocusignForm(props) {
|
|
|
1754
1754
|
docusignStatus,
|
|
1755
1755
|
documentType: actualDocumentType,
|
|
1756
1756
|
documentTypeString: taxTypeToName(actualDocumentType),
|
|
1757
|
+
showExitButton,
|
|
1757
1758
|
},
|
|
1758
1759
|
data: {
|
|
1759
1760
|
taxForm: actualDocumentType,
|
|
@@ -1762,7 +1763,7 @@ function useDocusignForm(props) {
|
|
|
1762
1763
|
callbacks: {
|
|
1763
1764
|
setDocusignStatus,
|
|
1764
1765
|
completeDocument,
|
|
1765
|
-
progressStep,
|
|
1766
|
+
onExit: progressStep,
|
|
1766
1767
|
setParticipantType,
|
|
1767
1768
|
},
|
|
1768
1769
|
text: props.getTextProps(),
|
|
@@ -1837,10 +1838,10 @@ const DocusignLoadingView = () => {
|
|
|
1837
1838
|
};
|
|
1838
1839
|
const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
1839
1840
|
const [iFrameHeight, setiFrameHeight] = useState("100%");
|
|
1840
|
-
// TODO: Confirm impact domain before launch
|
|
1841
1841
|
const allowedDomains = [
|
|
1842
1842
|
"referralsaasquatch.com",
|
|
1843
1843
|
"impacttech.complysandbox.com",
|
|
1844
|
+
"impacttech.complytaxforms.com",
|
|
1844
1845
|
];
|
|
1845
1846
|
const callback = useCallback((e) => {
|
|
1846
1847
|
const allowed = allowedDomains.some((d) => { var _a; return (_a = e.origin) === null || _a === void 0 ? void 0 : _a.includes(d); });
|
|
@@ -1852,9 +1853,6 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
|
1852
1853
|
if (e.data === "Complyexchange Thank you page Load") {
|
|
1853
1854
|
callbacks.completeDocument();
|
|
1854
1855
|
}
|
|
1855
|
-
if (e.data == "Complyexchange Thank you page Exit") {
|
|
1856
|
-
callbacks.progressStep();
|
|
1857
|
-
}
|
|
1858
1856
|
}, []);
|
|
1859
1857
|
useEffect(() => {
|
|
1860
1858
|
window.addEventListener("message", callback, false);
|
|
@@ -2047,7 +2045,8 @@ const DocusignFormView = (props) => {
|
|
|
2047
2045
|
? text.taxFormDescriptionIndividualParticipant
|
|
2048
2046
|
: text.taxFormDescriptionBusinessEntity,
|
|
2049
2047
|
}, { documentType: documentTypeString }))),
|
|
2050
|
-
h("div", null, slots.docusignIframeSlot)
|
|
2048
|
+
h("div", null, slots.docusignIframeSlot),
|
|
2049
|
+
h("div", { class: classes.BtnContainer }, states.showExitButton && (h("sl-button", { type: "primary", exportparts: "base: primarybutton-base", onClick: callbacks.onExit }, text.exitButton))))));
|
|
2051
2050
|
};
|
|
2052
2051
|
|
|
2053
2052
|
const DocusignForm = class {
|
|
@@ -2150,6 +2149,11 @@ const DocusignForm = class {
|
|
|
2150
2149
|
* @uiName Page description
|
|
2151
2150
|
*/
|
|
2152
2151
|
this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
|
|
2152
|
+
/**
|
|
2153
|
+
* Exit button text displayed at the end of the Comply Exchange form flow
|
|
2154
|
+
* @uiName Exit button text
|
|
2155
|
+
*/
|
|
2156
|
+
this.exitButton = "Exit";
|
|
2153
2157
|
h$1(this);
|
|
2154
2158
|
}
|
|
2155
2159
|
disconnectedCallback() { }
|
|
@@ -2176,7 +2180,6 @@ const DocusignForm = class {
|
|
|
2176
2180
|
}, data: {
|
|
2177
2181
|
documentUrl: props.data.documentUrl,
|
|
2178
2182
|
}, callbacks: {
|
|
2179
|
-
progressStep: props.callbacks.progressStep,
|
|
2180
2183
|
completeDocument: props.callbacks.completeDocument,
|
|
2181
2184
|
}, text: props.text }));
|
|
2182
2185
|
return (h(Host, null, h(DocusignFormView, { callbacks: props.callbacks, states: props.states, text: props.text, slots: {
|
|
@@ -2188,7 +2191,7 @@ const DocusignForm = class {
|
|
|
2188
2191
|
get el() { return getElement(this); }
|
|
2189
2192
|
};
|
|
2190
2193
|
function useDocusignFormDemo(props) {
|
|
2191
|
-
const setStep =
|
|
2194
|
+
const setStep = wn(TAX_CONTEXT_NAMESPACE);
|
|
2192
2195
|
return cjs({
|
|
2193
2196
|
text: props.getTextProps(),
|
|
2194
2197
|
states: {
|
|
@@ -2257,6 +2260,7 @@ const style$3 = {
|
|
|
2257
2260
|
display: "flex",
|
|
2258
2261
|
flexDirection: "column",
|
|
2259
2262
|
gap: "var(--sl-spacing-medium)",
|
|
2263
|
+
width: "100%",
|
|
2260
2264
|
},
|
|
2261
2265
|
RadioContent: {
|
|
2262
2266
|
display: "flex",
|
|
@@ -2305,9 +2309,6 @@ const style$3 = {
|
|
|
2305
2309
|
color: "var(--sl-color-danger-500)",
|
|
2306
2310
|
},
|
|
2307
2311
|
},
|
|
2308
|
-
CannotChangeAlertContainer: {
|
|
2309
|
-
maxWidth: "797px",
|
|
2310
|
-
},
|
|
2311
2312
|
PartnerAlertContainer: {
|
|
2312
2313
|
"&::part(base)": {
|
|
2313
2314
|
backgroundColor: "var(--sl-color-sky-100)",
|
|
@@ -2414,10 +2415,9 @@ const IndirectTaxFormView = (props) => {
|
|
|
2414
2415
|
text.otherRegion,
|
|
2415
2416
|
h("p", { class: classes.DescriptionText }, text.otherRegionSubtext))),
|
|
2416
2417
|
slots.registeredInDifferentCountryDetailsSlot)),
|
|
2417
|
-
h("
|
|
2418
|
-
h("sl-
|
|
2419
|
-
|
|
2420
|
-
text.cannotChangeInfoAlert)),
|
|
2418
|
+
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "primary", open: true, class: classes.InfoAlert },
|
|
2419
|
+
h("sl-icon", { class: classes.InfoWarningIcon, slot: "icon", name: "exclamation-triangle" }),
|
|
2420
|
+
text.cannotChangeInfoAlert),
|
|
2421
2421
|
h("div", { class: classes.BtnContainer },
|
|
2422
2422
|
h("sl-button", { type: "primary", disabled: states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton),
|
|
2423
2423
|
h("sl-button", { class: classes.SecondaryBtn, type: "text", disabled: states.disabled, onClick: callbacks.onBack, exportparts: "base: secondarybutton-base" }, text.backButton))))));
|
|
@@ -2461,15 +2461,15 @@ function getOption(countries, countryCode) {
|
|
|
2461
2461
|
}
|
|
2462
2462
|
function useIndirectTaxForm(props) {
|
|
2463
2463
|
var _a, _b, _c, _d, _e;
|
|
2464
|
-
const user =
|
|
2465
|
-
const locale =
|
|
2464
|
+
const user = Q();
|
|
2465
|
+
const locale = L();
|
|
2466
2466
|
const formRef = useRef(null);
|
|
2467
|
-
const context =
|
|
2468
|
-
const [step, setStep] =
|
|
2469
|
-
const [connectImpactPartner, { loading: connectLoading, errors: connectErrors },] =
|
|
2470
|
-
const userForm =
|
|
2471
|
-
const { data: userData, refetch, errors: userError, } =
|
|
2472
|
-
const { data: _countriesRes, loading: countriesLoading } =
|
|
2467
|
+
const context = In(TAX_FORM_CONTEXT_NAMESPACE);
|
|
2468
|
+
const [step, setStep] = bn(TAX_CONTEXT_NAMESPACE);
|
|
2469
|
+
const [connectImpactPartner, { loading: connectLoading, errors: connectErrors },] = $e(CONNECT_PARTNER);
|
|
2470
|
+
const userForm = In(USER_FORM_CONTEXT_NAMESPACE);
|
|
2471
|
+
const { data: userData, refetch, errors: userError, } = Mn(USER_QUERY_NAMESPACE);
|
|
2472
|
+
const { data: _countriesRes, loading: countriesLoading } = Mn(COUNTRIES_QUERY_NAMESPACE);
|
|
2473
2473
|
const intlLocale = (locale === null || locale === void 0 ? void 0 : locale.replace("_", "-")) || "en";
|
|
2474
2474
|
const _countries = 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) => getCountryObj({ countryCode: country.countryCode, locale: intlLocale })); }, [(_a = _countriesRes === null || _countriesRes === void 0 ? void 0 : _countriesRes.impactPayoutCountries) === null || _a === void 0 ? void 0 : _a.data]);
|
|
2475
2475
|
const [loading, setLoading] = useState(false);
|
|
@@ -2858,7 +2858,7 @@ const IndirectTaxForm = class {
|
|
|
2858
2858
|
}
|
|
2859
2859
|
};
|
|
2860
2860
|
function useDemoIndirectTaxForm(props) {
|
|
2861
|
-
const setStep =
|
|
2861
|
+
const setStep = wn(TAX_CONTEXT_NAMESPACE);
|
|
2862
2862
|
const [option, setOption] = useState(null);
|
|
2863
2863
|
const [demoFormState, setDemoFormState] = useState({});
|
|
2864
2864
|
return cjs({
|
|
@@ -2968,8 +2968,8 @@ const GET_INVOICES = dist.gql `
|
|
|
2968
2968
|
`;
|
|
2969
2969
|
function useInvoiceTable(props, emptyElement, loadingElement) {
|
|
2970
2970
|
var _a;
|
|
2971
|
-
const user =
|
|
2972
|
-
const locale =
|
|
2971
|
+
const user = Q();
|
|
2972
|
+
const locale = L();
|
|
2973
2973
|
const [content, setContent] = useReducer((state, next) => ({
|
|
2974
2974
|
...state,
|
|
2975
2975
|
...next,
|
|
@@ -2979,7 +2979,7 @@ function useInvoiceTable(props, emptyElement, loadingElement) {
|
|
|
2979
2979
|
loading: false,
|
|
2980
2980
|
page: 0,
|
|
2981
2981
|
});
|
|
2982
|
-
const { envelope: invoicesData, states, callbacks, } =
|
|
2982
|
+
const { envelope: invoicesData, states, callbacks, } = 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; }, {
|
|
2983
2983
|
limit: props.perPage,
|
|
2984
2984
|
offset: 0,
|
|
2985
2985
|
}, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
@@ -3545,7 +3545,7 @@ function PayoutDetailsCardView(props) {
|
|
|
3545
3545
|
|
|
3546
3546
|
function usePayoutDetailsCard(props) {
|
|
3547
3547
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
3548
|
-
const { data, loading } =
|
|
3548
|
+
const { data, loading } = Mn(USER_QUERY_NAMESPACE);
|
|
3549
3549
|
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;
|
|
3550
3550
|
function getPayoutDetailedStatusText(paymentDay) {
|
|
3551
3551
|
var _a;
|
|
@@ -3734,21 +3734,21 @@ function getCurrentStep(user) {
|
|
|
3734
3734
|
}
|
|
3735
3735
|
function useTaxAndCash() {
|
|
3736
3736
|
var _a, _b, _c, _d, _e;
|
|
3737
|
-
const host =
|
|
3738
|
-
const user =
|
|
3739
|
-
const locale =
|
|
3737
|
+
const host = _();
|
|
3738
|
+
const user = Q();
|
|
3739
|
+
const locale = L();
|
|
3740
3740
|
// State for current step of form
|
|
3741
|
-
const [step, setStep] =
|
|
3741
|
+
const [step, setStep] = Cn({
|
|
3742
3742
|
namespace: TAX_CONTEXT_NAMESPACE,
|
|
3743
3743
|
initialValue: "/loading",
|
|
3744
3744
|
});
|
|
3745
3745
|
// State for when to hide steps, or override certain actions
|
|
3746
|
-
const [context, _setContext] =
|
|
3746
|
+
const [context, _setContext] = Cn({
|
|
3747
3747
|
namespace: TAX_FORM_CONTEXT_NAMESPACE,
|
|
3748
3748
|
initialValue: {},
|
|
3749
3749
|
});
|
|
3750
3750
|
// State to carry user form information into step 2
|
|
3751
|
-
const [userFormContext, _setUserFormContext] =
|
|
3751
|
+
const [userFormContext, _setUserFormContext] = Cn({
|
|
3752
3752
|
namespace: USER_FORM_CONTEXT_NAMESPACE,
|
|
3753
3753
|
initialValue: {
|
|
3754
3754
|
firstName: undefined,
|
|
@@ -3758,19 +3758,19 @@ function useTaxAndCash() {
|
|
|
3758
3758
|
currency: undefined,
|
|
3759
3759
|
},
|
|
3760
3760
|
});
|
|
3761
|
-
const [_currenciesContext, setCurrenciesContext] =
|
|
3761
|
+
const [_currenciesContext, setCurrenciesContext] = Cn({
|
|
3762
3762
|
namespace: CURRENCIES_NAMESPACE,
|
|
3763
3763
|
initialValue: [],
|
|
3764
3764
|
});
|
|
3765
|
-
const [_countriesContext, _setCountriesContext] =
|
|
3765
|
+
const [_countriesContext, _setCountriesContext] = Cn({
|
|
3766
3766
|
namespace: COUNTRIES_NAMESPACE,
|
|
3767
3767
|
initialValue: [],
|
|
3768
3768
|
});
|
|
3769
|
-
const [_sortedCountriesContext, setSortedCountriesContext] =
|
|
3769
|
+
const [_sortedCountriesContext, setSortedCountriesContext] = Cn({
|
|
3770
3770
|
namespace: SORTED_COUNTRIES_NAMESPACE,
|
|
3771
3771
|
initialValue: [],
|
|
3772
3772
|
});
|
|
3773
|
-
const { data, errors } =
|
|
3773
|
+
const { data, errors } = Fn({
|
|
3774
3774
|
namespace: USER_QUERY_NAMESPACE,
|
|
3775
3775
|
query: GET_USER,
|
|
3776
3776
|
skip: !user,
|
|
@@ -3780,12 +3780,12 @@ function useTaxAndCash() {
|
|
|
3780
3780
|
});
|
|
3781
3781
|
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) ||
|
|
3782
3782
|
userFormContext.countryCode;
|
|
3783
|
-
|
|
3783
|
+
Fn({
|
|
3784
3784
|
namespace: COUNTRIES_QUERY_NAMESPACE,
|
|
3785
3785
|
query: GET_COUNTRIES,
|
|
3786
3786
|
skip: !user,
|
|
3787
3787
|
});
|
|
3788
|
-
const { data: financeNetworkData, refetch } =
|
|
3788
|
+
const { data: financeNetworkData, refetch } = Fn({
|
|
3789
3789
|
namespace: FINANCE_NETWORK_SETTINGS_NAMESPACE,
|
|
3790
3790
|
query: GET_FINANCE_NETWORK_SETTINGS,
|
|
3791
3791
|
skip: !user,
|
|
@@ -3793,7 +3793,7 @@ function useTaxAndCash() {
|
|
|
3793
3793
|
filter: getFinanceNetworkFilter(),
|
|
3794
3794
|
},
|
|
3795
3795
|
});
|
|
3796
|
-
const { data: currenciesData } =
|
|
3796
|
+
const { data: currenciesData } = Fn({
|
|
3797
3797
|
namespace: CURRENCIES_QUERY_NAMESPACE,
|
|
3798
3798
|
query: GET_CURRENCIES,
|
|
3799
3799
|
skip: !user,
|
|
@@ -3874,7 +3874,7 @@ function useTaxAndCash() {
|
|
|
3874
3874
|
step,
|
|
3875
3875
|
setStep,
|
|
3876
3876
|
context,
|
|
3877
|
-
namespace:
|
|
3877
|
+
namespace: Pn(TAX_CONTEXT_NAMESPACE),
|
|
3878
3878
|
loading: step === "/loading",
|
|
3879
3879
|
};
|
|
3880
3880
|
}
|
|
@@ -4164,6 +4164,11 @@ const TaxAndCashMonolith = class {
|
|
|
4164
4164
|
* @uiGroup Step 3 Properties
|
|
4165
4165
|
*/
|
|
4166
4166
|
this.step3_refreshButton = "Refresh Page";
|
|
4167
|
+
/**
|
|
4168
|
+
* @uiName Exit button text
|
|
4169
|
+
* @uiGroup Step 3 Properties
|
|
4170
|
+
*/
|
|
4171
|
+
this.step3_exitButton = "Exit";
|
|
4167
4172
|
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4168
4173
|
STEP 4 PROPS:
|
|
4169
4174
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
@@ -4815,7 +4820,7 @@ const TaxAndCashMonolith = class {
|
|
|
4815
4820
|
}
|
|
4816
4821
|
};
|
|
4817
4822
|
function useDemoTaxAndCash(props) {
|
|
4818
|
-
const [step, setStep] =
|
|
4823
|
+
const [step, setStep] = Cn({
|
|
4819
4824
|
namespace: TAX_CONTEXT_NAMESPACE,
|
|
4820
4825
|
initialValue: "/1",
|
|
4821
4826
|
});
|
|
@@ -5098,7 +5103,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5098
5103
|
documentType: states.documentTypeString,
|
|
5099
5104
|
})),
|
|
5100
5105
|
h("span", { class: sheet$4.classes.StatusAlert }, statusMap[states.status]))),
|
|
5101
|
-
h("sl-button", { disabled: states.disabled || states.loading, onClick: callbacks.onClick, type: "default", class: sheet$4.classes.NewFormButton, exportparts: "base: primarybutton-base" }, text.newFormButton))))))),
|
|
5106
|
+
states.status !== "NOT_VERIFIED" && (h("sl-button", { disabled: states.disabled || states.loading, onClick: callbacks.onClick, type: "default", class: sheet$4.classes.NewFormButton, exportparts: "base: primarybutton-base" }, text.newFormButton)))))))),
|
|
5102
5107
|
h("div", { class: sheet$4.classes.IndirectTaxPreviewContainer }, states.loading ? (h("div", { class: sheet$4.classes.TaxSectionSkeletonContainer },
|
|
5103
5108
|
h("sl-skeleton", { class: sheet$4.classes.SkeletonOne }),
|
|
5104
5109
|
h("sl-skeleton", { class: sheet$4.classes.SkeletonTwo }))) : (h("div", null,
|
|
@@ -5177,15 +5182,15 @@ function getIndirectTaxType(taxInformation) {
|
|
|
5177
5182
|
}
|
|
5178
5183
|
const useTaxAndCashDashboard = (props) => {
|
|
5179
5184
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
5180
|
-
const setStep =
|
|
5181
|
-
const setContext =
|
|
5185
|
+
const setStep = wn(TAX_CONTEXT_NAMESPACE);
|
|
5186
|
+
const setContext = wn(TAX_FORM_CONTEXT_NAMESPACE);
|
|
5182
5187
|
const [showDialog, setShowDialog] = useState(false);
|
|
5183
|
-
const locale =
|
|
5188
|
+
const locale = L();
|
|
5184
5189
|
useEffect(() => {
|
|
5185
5190
|
// Clear override context once on submitted
|
|
5186
5191
|
setContext({});
|
|
5187
5192
|
}, []);
|
|
5188
|
-
const { data, loading, errors: userError, } =
|
|
5193
|
+
const { data, loading, errors: userError, } = Mn(USER_QUERY_NAMESPACE);
|
|
5189
5194
|
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;
|
|
5190
5195
|
const documentType = publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType;
|
|
5191
5196
|
const submissionDate = (_c = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _c === void 0 ? void 0 : _c.dateCreated;
|
|
@@ -6602,6 +6607,27 @@ const style$6 = {
|
|
|
6602
6607
|
color: "var(--sl-color-neutral-500)",
|
|
6603
6608
|
fontSize: "var(--sl-font-size-medium)",
|
|
6604
6609
|
},
|
|
6610
|
+
PhoneInputsSection: {
|
|
6611
|
+
display: "flex",
|
|
6612
|
+
alignItems: "flex-start",
|
|
6613
|
+
flexDirection: "column",
|
|
6614
|
+
gap: "4px",
|
|
6615
|
+
"& p": {
|
|
6616
|
+
fontSize: "var(--sl-font-size-small)",
|
|
6617
|
+
color: "var(--sl-input-label-color)",
|
|
6618
|
+
fontWeight: "var(--sl-font-weight-semibold)",
|
|
6619
|
+
},
|
|
6620
|
+
},
|
|
6621
|
+
PhoneInputsContainer: {
|
|
6622
|
+
display: "flex",
|
|
6623
|
+
alignItems: "flex-start",
|
|
6624
|
+
gap: "4px",
|
|
6625
|
+
width: "100%",
|
|
6626
|
+
"& #phoneNumber": {
|
|
6627
|
+
width: "100%",
|
|
6628
|
+
minWidth: "0px",
|
|
6629
|
+
},
|
|
6630
|
+
},
|
|
6605
6631
|
};
|
|
6606
6632
|
const sheet$5 = createStyleSheet(style$6);
|
|
6607
6633
|
const styleString$5 = sheet$5.toString();
|
|
@@ -6627,7 +6653,7 @@ const vanillaStyle$3 = `
|
|
|
6627
6653
|
}
|
|
6628
6654
|
|
|
6629
6655
|
sl-select#phoneNumberCountryCode::part(menu) {
|
|
6630
|
-
width:
|
|
6656
|
+
min-width: 250px;
|
|
6631
6657
|
}
|
|
6632
6658
|
`;
|
|
6633
6659
|
const UserInfoFormView = (props) => {
|
|
@@ -6710,37 +6736,39 @@ const UserInfoFormView = (props) => {
|
|
|
6710
6736
|
} }), (_e = data === null || data === void 0 ? void 0 : data.countries) === null || _e === void 0 ? void 0 :
|
|
6711
6737
|
_e.map((c) => (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 :
|
|
6712
6738
|
_f.map((c) => (h("sl-menu-item", { value: c.countryCode, style: { display: "none" } }, c.displayName)))),
|
|
6713
|
-
h("div", {
|
|
6714
|
-
h("
|
|
6715
|
-
|
|
6716
|
-
|
|
6717
|
-
|
|
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
|
-
|
|
6739
|
+
h("div", { class: classes.PhoneInputsSection },
|
|
6740
|
+
h("p", null, text.phoneNumber),
|
|
6741
|
+
h("div", { class: classes.PhoneInputsContainer },
|
|
6742
|
+
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) ? {
|
|
6743
|
+
class: classes.ErrorInput,
|
|
6744
|
+
}
|
|
6745
|
+
: {}), { required: true, "onSl-select": (e) => callbacks.onFormChange("phoneCountry", e) }),
|
|
6746
|
+
h("sl-input", { class: classes.SearchInput, placeholder: text.searchForCountryText, onKeyDown: (e) => {
|
|
6747
|
+
// Stop shoelace intercepting key presses
|
|
6748
|
+
e.stopPropagation();
|
|
6749
|
+
}, "onSl-input": (e) => {
|
|
6750
|
+
callbacks.setPhoneCountrySearch(e.target.value);
|
|
6751
|
+
} }), (_h = data === null || data === void 0 ? void 0 : data.phoneCountries) === null || _h === void 0 ? void 0 :
|
|
6752
|
+
_h.map((c) => {
|
|
6753
|
+
var _a, _b;
|
|
6754
|
+
return (h("sl-menu-item", { value: c.countryCode },
|
|
6755
|
+
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 :
|
|
6756
|
+
_b.dial_code));
|
|
6757
|
+
}), (_j = data === null || data === void 0 ? void 0 : data.allCountries) === null || _j === void 0 ? void 0 :
|
|
6758
|
+
_j.map((c) => {
|
|
6759
|
+
var _a, _b;
|
|
6760
|
+
return (h("sl-menu-item", { value: c.countryCode, style: { display: "none" } },
|
|
6761
|
+
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 :
|
|
6762
|
+
_b.dial_code));
|
|
6763
|
+
})),
|
|
6764
|
+
h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", id: "phoneNumber", name: "/phoneNumber", value: formState.phoneNumber, validationError: ({ value }) =>
|
|
6765
|
+
// Naive phone number validation
|
|
6766
|
+
validateBillingField(/[a-zA-Z]+/, value) &&
|
|
6767
|
+
formatErrorMessage(text.phoneNumber, text.error.fieldInvalidError), disabled: states.disabled || states.isPartner }, (((_k = formState.errors) === null || _k === void 0 ? void 0 : _k.phoneNumber) ? {
|
|
6768
|
+
class: classes.ErrorInput,
|
|
6769
|
+
helpText: formatErrorMessage(text.phoneNumber, formState.errors.phoneNumber),
|
|
6770
|
+
}
|
|
6771
|
+
: {}), { required: true })))),
|
|
6744
6772
|
h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", label: text.address, id: "address", name: "/address", value: formState.address, validationError: ({ value }) =>
|
|
6745
6773
|
// Checks for non-ASCII characters
|
|
6746
6774
|
!validateBillingField(/^[\x20-\xFF]+$/, value) &&
|
|
@@ -6799,12 +6827,12 @@ function useUserInfoForm(props) {
|
|
|
6799
6827
|
const currencyRef = useRef(undefined);
|
|
6800
6828
|
const phoneCountryRef = useRef(undefined);
|
|
6801
6829
|
const formRef = useRef(null);
|
|
6802
|
-
const context =
|
|
6803
|
-
const countries =
|
|
6804
|
-
const [step, setStep] =
|
|
6805
|
-
const [userFormContext, setUserFormContext] =
|
|
6806
|
-
const { data, loading, errors: userError, } =
|
|
6807
|
-
const _currencies =
|
|
6830
|
+
const context = In(TAX_FORM_CONTEXT_NAMESPACE);
|
|
6831
|
+
const countries = In(SORTED_COUNTRIES_NAMESPACE);
|
|
6832
|
+
const [step, setStep] = bn(TAX_CONTEXT_NAMESPACE);
|
|
6833
|
+
const [userFormContext, setUserFormContext] = bn(USER_FORM_CONTEXT_NAMESPACE);
|
|
6834
|
+
const { data, loading, errors: userError, } = Mn(USER_QUERY_NAMESPACE);
|
|
6835
|
+
const _currencies = In(CURRENCIES_NAMESPACE);
|
|
6808
6836
|
const currencies = useMemo(() => [...(_currencies || [])].sort((a, b) => a.displayName.localeCompare(b.displayName)), [_currencies]);
|
|
6809
6837
|
const [countrySearch, setCountrySearch] = useState("");
|
|
6810
6838
|
const [phoneCountrySearch, setPhoneCountrySearch] = useState("");
|
|
@@ -7165,7 +7193,7 @@ const TaxForm = class {
|
|
|
7165
7193
|
}
|
|
7166
7194
|
};
|
|
7167
7195
|
function useDemoUserInfoForm(props) {
|
|
7168
|
-
const setStep =
|
|
7196
|
+
const setStep = wn(TAX_CONTEXT_NAMESPACE);
|
|
7169
7197
|
return cjs({
|
|
7170
7198
|
setStep,
|
|
7171
7199
|
onSubmit: () => {
|