@saasquatch/mint-components 1.11.1-1 → 1.12.0-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{ShadowViewAddon-2c6026c3.js → ShadowViewAddon-88821c64.js} +229 -154
- package/dist/cjs/{global-02e50f09.js → global-c3637175.js} +2 -2
- package/dist/cjs/{index.module-df530553.js → index.module-b8d9d0ba.js} +55 -18
- package/dist/cjs/keys-cff24974.js +11 -0
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/mint-components.cjs.js +3 -3
- package/dist/cjs/{re-render-1976e05e.js → re-render-5bde3d2e.js} +4 -4
- package/dist/cjs/sqm-asset-card.cjs.entry.js +2 -2
- package/dist/cjs/sqm-banking-info-form_16.cjs.entry.js +211 -105
- package/dist/cjs/{sqm-big-stat_38.cjs.entry.js → sqm-big-stat_39.cjs.entry.js} +278 -178
- package/dist/cjs/sqm-close-button.cjs.entry.js +3 -3
- package/dist/cjs/sqm-code-verification.cjs.entry.js +352 -0
- package/dist/cjs/sqm-context-router.cjs.entry.js +2 -2
- package/dist/cjs/sqm-email-verification.cjs.entry.js +137 -0
- package/dist/cjs/sqm-empty_4.cjs.entry.js +3 -3
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +5 -5
- package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +5 -5
- package/dist/cjs/{sqm-invoice-table-view-e3b03a00.js → sqm-invoice-table-view-ce9a34ac.js} +20 -1
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +5 -5
- package/dist/cjs/sqm-logout-current-user.cjs.entry.js +5 -5
- package/dist/cjs/{sqm-navigation-sidebar-item-view-4e90b6f5.js → sqm-navigation-sidebar-item-view-a2135064.js} +3 -3
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +5 -5
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +3 -3
- package/dist/cjs/sqm-password-field.cjs.entry.js +4 -4
- package/dist/cjs/sqm-popup-container.cjs.entry.js +4 -4
- package/dist/cjs/{sqm-portal-email-verification-view-bff9783d.js → sqm-portal-email-verification-view-050dbe0f.js} +2 -2
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +9 -9
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +6 -6
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-profile-view-fde54e35.js → sqm-portal-profile-view-d97086bc.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +9 -9
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +5 -5
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +8 -8
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +9 -9
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +9 -9
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +8 -8
- package/dist/cjs/sqm-referred-registration.cjs.entry.js +5 -5
- package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +2 -2
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +13 -13
- package/dist/cjs/sqm-scroll.cjs.entry.js +109 -0
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +225 -272
- package/dist/cjs/sqm-tab.cjs.entry.js +2 -2
- package/dist/cjs/sqm-tabs.cjs.entry.js +4 -4
- package/dist/cjs/sqm-widget-verification-internal.cjs.entry.js +33 -0
- package/dist/cjs/sqm-widget-verification.cjs.entry.js +127 -0
- package/dist/cjs/{useChildElements-e0d44916.js → useChildElements-410d2435.js} +2 -2
- package/dist/cjs/useEmailVerification-30a1c7f6.js +75 -0
- package/dist/cjs/{useInstantAccessRegistration-bbe746d1.js → useInstantAccessRegistration-ccf81eae.js} +3 -3
- package/dist/cjs/{useReferralTable-a76adb0d.js → useReferralTable-824ac152.js} +9 -9
- package/dist/cjs/{useRegistrationFormState-876ed65d.js → useRegistrationFormState-f9ce55be.js} +2 -2
- package/dist/cjs/{utilities-cec9dd36.js → utilities-f7de6c04.js} +1 -1
- package/dist/collection/collection-manifest.json +6 -10
- package/dist/collection/components/sqm-coupon-code/sqm-coupon-code.js +1 -1
- package/dist/collection/components/sqm-logout-current-user/sqm-logout-current-user.js +1 -1
- package/dist/collection/components/sqm-payout-button-scroll/PayoutButtonScroll.stories.js +9 -0
- package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll-view.js +22 -0
- package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll.js +105 -0
- package/dist/collection/components/sqm-payout-button-scroll/usePayoutButton.js +44 -0
- package/dist/collection/components/sqm-referral-card/ReferralCard.stories.js +0 -20
- package/dist/collection/components/sqm-share-button/useShareButton.js +16 -15
- package/dist/collection/components/sqm-share-code/sqm-share-code.js +1 -1
- package/dist/collection/components/sqm-share-link/sqm-share-link.js +1 -1
- package/dist/collection/components/sqm-share-link/useShareLink.js +3 -5
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +8 -6
- package/dist/collection/components/sqm-widget-verification/keys.js +4 -0
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/WidgetCodeVerification.stories.js +29 -0
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +118 -0
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.js +330 -0
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/useCodeVerification.js +144 -0
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/WidgetEmailVerification.stories.js +22 -0
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +78 -0
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.js +172 -0
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/useEmailVerification.js +70 -0
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-internal.js +27 -0
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +132 -0
- package/dist/collection/components/sqm-widget-verification/useWidgetVerification.js +3 -0
- package/dist/collection/components/tax-and-cash/BankingForm.stories.js +1 -0
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +18 -0
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +4 -1
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +94 -38
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.js +16 -2
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.js +12 -0
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +72 -0
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +217 -0
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +50 -0
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/data.js +1 -0
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +16 -0
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +80 -1
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +2 -2
- package/dist/collection/components/views/copy-text-view.js +2 -16
- package/dist/esm/{ShadowViewAddon-5bb2b69a.js → ShadowViewAddon-65c8679e.js} +227 -153
- package/dist/esm/{global-b89b6edc.js → global-6306a9b8.js} +2 -2
- package/dist/esm/{index.module-f122af7b.js → index.module-6c840c4e.js} +40 -3
- package/dist/esm/keys-a1496e39.js +6 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/mint-components.js +3 -3
- package/dist/esm/{re-render-c64289f3.js → re-render-1bcfd0de.js} +4 -4
- package/dist/esm/sqm-asset-card.entry.js +2 -2
- package/dist/esm/sqm-banking-info-form_16.entry.js +211 -105
- package/dist/esm/{sqm-big-stat_38.entry.js → sqm-big-stat_39.entry.js} +275 -176
- package/dist/esm/sqm-close-button.entry.js +3 -3
- package/dist/esm/sqm-code-verification.entry.js +348 -0
- package/dist/esm/sqm-context-router.entry.js +2 -2
- package/dist/esm/sqm-email-verification.entry.js +133 -0
- package/dist/esm/sqm-empty_4.entry.js +3 -3
- package/dist/esm/sqm-graphql-client-provider.entry.js +5 -5
- package/dist/esm/sqm-instant-access-registration.entry.js +5 -5
- package/dist/esm/{sqm-invoice-table-view-09cc28d6.js → sqm-invoice-table-view-08c03ba7.js} +20 -1
- package/dist/esm/sqm-leaderboard-rank.entry.js +5 -5
- package/dist/esm/sqm-logout-current-user.entry.js +5 -5
- package/dist/esm/{sqm-navigation-sidebar-item-view-14114804.js → sqm-navigation-sidebar-item-view-f8e78810.js} +3 -3
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +5 -5
- package/dist/esm/sqm-navigation-sidebar.entry.js +3 -3
- package/dist/esm/sqm-password-field.entry.js +4 -4
- package/dist/esm/sqm-popup-container.entry.js +4 -4
- package/dist/esm/{sqm-portal-email-verification-view-ced567c9.js → sqm-portal-email-verification-view-c6ac5430.js} +2 -2
- 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 +2 -2
- package/dist/esm/{sqm-portal-profile-view-d72dd5ac.js → sqm-portal-profile-view-15ddbec8.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +9 -9
- package/dist/esm/sqm-portal-protected-route.entry.js +5 -5
- package/dist/esm/sqm-portal-registration-form.entry.js +8 -8
- package/dist/esm/sqm-portal-reset-password.entry.js +9 -9
- package/dist/esm/sqm-portal-verify-email.entry.js +9 -9
- package/dist/esm/sqm-referral-table_11.entry.js +8 -8
- package/dist/esm/sqm-referred-registration.entry.js +5 -5
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +2 -2
- package/dist/esm/sqm-rewards-table_9.entry.js +13 -13
- package/dist/esm/sqm-scroll.entry.js +105 -0
- package/dist/esm/sqm-stencilbook.entry.js +212 -259
- package/dist/esm/sqm-tab.entry.js +2 -2
- package/dist/esm/sqm-tabs.entry.js +4 -4
- package/dist/esm/sqm-widget-verification-internal.entry.js +29 -0
- package/dist/esm/sqm-widget-verification.entry.js +123 -0
- package/dist/esm/stencil-hooks.module-ac12ca1c.js +1 -1
- package/dist/esm/{useChildElements-37daf533.js → useChildElements-fc84e640.js} +2 -2
- package/dist/esm/useEmailVerification-7135732c.js +72 -0
- package/dist/esm/{useInstantAccessRegistration-9d4cb797.js → useInstantAccessRegistration-8b0a4556.js} +3 -3
- package/dist/esm/{useReferralTable-42f99ea2.js → useReferralTable-f6ffa103.js} +9 -9
- package/dist/esm/{useRegistrationFormState-53c71782.js → useRegistrationFormState-849e27f7.js} +2 -2
- package/dist/esm/{utilities-18d10876.js → utilities-443732be.js} +1 -1
- package/dist/esm-es5/{GenericTableView-bf154727.js → GenericTableView-d59d8ab4.js} +1 -1
- package/dist/esm-es5/ShadowViewAddon-65c8679e.js +1 -0
- package/dist/esm-es5/{email-registration-view-12793040.js → email-registration-view-a89a88bf.js} +1 -1
- package/dist/esm-es5/{global-b89b6edc.js → global-6306a9b8.js} +2 -2
- package/dist/esm-es5/index.module-6c840c4e.js +1 -0
- package/dist/esm-es5/keys-a1496e39.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/{re-render-c64289f3.js → re-render-1bcfd0de.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_39.entry.js +1 -0
- package/dist/esm-es5/{sqm-close-button-view-b24c708b.js → sqm-close-button-view-dc65b4e3.js} +1 -1
- package/dist/esm-es5/sqm-close-button.entry.js +1 -1
- package/dist/esm-es5/sqm-code-verification.entry.js +1 -0
- package/dist/esm-es5/sqm-context-router.entry.js +1 -1
- package/dist/esm-es5/sqm-email-verification.entry.js +1 -0
- package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
- package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
- package/dist/esm-es5/sqm-invoice-table-view-08c03ba7.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-14114804.js → sqm-navigation-sidebar-item-view-f8e78810.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-email-verification-view-ced567c9.js → sqm-portal-email-verification-view-c6ac5430.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-forgot-password-view-95cd454f.js → sqm-portal-forgot-password-view-c2ed8fed.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-d72dd5ac.js → sqm-portal-profile-view-15ddbec8.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-view-f1454d43.js → sqm-portal-reset-password-view-79a85e02.js} +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-verify-email-view-3739f523.js → sqm-portal-verify-email-view-d7ea2c56.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-column.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm-es5/sqm-scroll.entry.js +1 -0
- 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-widget-verification-internal.entry.js +1 -0
- package/dist/esm-es5/sqm-widget-verification.entry.js +1 -0
- package/dist/esm-es5/stencil-hooks.module-ac12ca1c.js +1 -1
- package/dist/esm-es5/{useChildElements-37daf533.js → useChildElements-fc84e640.js} +1 -1
- package/dist/esm-es5/useEmailVerification-7135732c.js +1 -0
- package/dist/esm-es5/useInstantAccessRegistration-8b0a4556.js +1 -0
- package/dist/esm-es5/{useReferralTable-42f99ea2.js → useReferralTable-f6ffa103.js} +1 -1
- package/dist/esm-es5/useRegistrationFormState-849e27f7.js +1 -0
- package/dist/esm-es5/{utilities-18d10876.js → utilities-443732be.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-0121e044.js +1 -0
- package/dist/mint-components/{p-12c56ba6.entry.js → p-012daf3c.entry.js} +1 -1
- package/dist/mint-components/{p-1b1d10e5.entry.js → p-03dbe2ce.entry.js} +1 -1
- package/dist/mint-components/{p-8077e9c6.js → p-04348a9b.js} +1 -1
- package/dist/mint-components/{p-8c97bfb1.system.entry.js → p-04ced592.system.entry.js} +1 -1
- package/dist/mint-components/{p-7962ab58.system.entry.js → p-0527d90b.system.entry.js} +1 -1
- package/dist/mint-components/{p-01434e4a.entry.js → p-0893073b.entry.js} +1 -1
- package/dist/mint-components/p-0c9ad5f3.system.entry.js +1 -0
- package/dist/mint-components/p-117b4705.system.js +1 -0
- package/dist/mint-components/p-11d1b212.js +1 -0
- package/dist/mint-components/{p-dc41ff27.entry.js → p-1b861be5.entry.js} +1 -1
- package/dist/mint-components/{p-32cf8417.js → p-1b9e6fc6.js} +1 -1
- package/dist/mint-components/p-1bd0cda8.system.entry.js +1 -0
- package/dist/mint-components/{p-991c9787.js → p-1d27da33.js} +2 -2
- package/dist/mint-components/p-1ee62d9f.system.entry.js +1 -0
- package/dist/mint-components/{p-de2a8fae.system.entry.js → p-1f7d7524.system.entry.js} +1 -1
- package/dist/mint-components/p-1f9a9b70.system.entry.js +1 -0
- package/dist/mint-components/{p-5c845bc2.system.entry.js → p-22425c71.system.entry.js} +1 -1
- package/dist/mint-components/p-23fdd44e.entry.js +1 -0
- package/dist/mint-components/{p-3373d84e.js → p-2816bf6a.js} +1 -1
- package/dist/mint-components/p-2868f475.entry.js +1 -0
- package/dist/mint-components/p-2a414b2e.system.js +2 -2
- package/dist/mint-components/{p-a474b0ec.system.entry.js → p-36e9296e.system.entry.js} +1 -1
- package/dist/mint-components/p-36f7caec.system.entry.js +1 -0
- package/dist/mint-components/{p-b334bde8.entry.js → p-3925bcd6.entry.js} +2 -2
- package/dist/mint-components/p-39397731.entry.js +1 -0
- package/dist/mint-components/p-39af4acd.entry.js +240 -0
- package/dist/mint-components/{p-e2bb72eb.system.entry.js → p-3e7ec0f3.system.entry.js} +1 -1
- package/dist/mint-components/{p-59c141a2.system.js → p-3ed71bef.system.js} +1 -1
- package/dist/mint-components/{p-bf834367.system.js → p-43621f12.system.js} +1 -1
- package/dist/mint-components/{p-110dddfe.entry.js → p-4671e644.entry.js} +1 -1
- package/dist/mint-components/{p-0f028514.system.js → p-4babe350.system.js} +1 -1
- package/dist/mint-components/p-4c9b6fbe.system.js +1 -0
- package/dist/mint-components/p-4e373c3d.system.js +1 -0
- package/dist/mint-components/{p-03a647c2.system.js → p-4e48267b.system.js} +1 -1
- package/dist/mint-components/{p-9deac406.system.js → p-4eae91a9.system.js} +1 -1
- package/dist/mint-components/{p-0806343b.js → p-509e29e6.js} +1 -1
- package/dist/mint-components/{p-53ff8bd0.system.entry.js → p-51d53165.system.entry.js} +1 -1
- package/dist/mint-components/{p-246a2827.entry.js → p-5291891c.entry.js} +2 -2
- package/dist/mint-components/{p-c1ba2ad0.system.entry.js → p-59818690.system.entry.js} +1 -1
- package/dist/mint-components/{p-55588b46.system.js → p-5becb2ff.system.js} +1 -1
- package/dist/mint-components/{p-c39f9dc1.system.entry.js → p-5fba1a04.system.entry.js} +1 -1
- package/dist/mint-components/{p-22de9f73.system.entry.js → p-64491210.system.entry.js} +1 -1
- package/dist/mint-components/p-65e2c043.system.js +1 -0
- package/dist/mint-components/p-663303b7.entry.js +8 -0
- package/dist/mint-components/p-66a04cca.system.entry.js +1 -0
- package/dist/mint-components/{p-1df19ea2.js → p-68747d88.js} +1 -1
- package/dist/mint-components/{p-96cb9c17.entry.js → p-6c928c7d.entry.js} +1 -1
- package/dist/mint-components/p-6cae44d7.js +1 -0
- package/dist/mint-components/{p-b0ce005d.entry.js → p-721a89c6.entry.js} +2 -2
- package/dist/mint-components/{p-6e62f207.entry.js → p-76392386.entry.js} +1 -1
- package/dist/mint-components/{p-bb6f6681.system.js → p-7d5e0645.system.js} +1 -1
- package/dist/mint-components/{p-daba8cd2.system.entry.js → p-7dd1ff31.system.entry.js} +1 -1
- package/dist/mint-components/p-7f5c7bf7.system.entry.js +1 -0
- package/dist/mint-components/{p-ec8a9e91.system.entry.js → p-83c9f37b.system.entry.js} +1 -1
- package/dist/mint-components/{p-d3d281ff.entry.js → p-84b25a46.entry.js} +1 -1
- package/dist/mint-components/{p-82e09b8d.system.entry.js → p-88bf51b7.system.entry.js} +1 -1
- package/dist/mint-components/p-8a337864.js +7 -0
- package/dist/mint-components/{p-73decce7.system.js → p-8d554a89.system.js} +1 -1
- package/dist/mint-components/p-93576222.system.js +1 -0
- package/dist/mint-components/p-94454880.entry.js +1 -0
- package/dist/mint-components/p-947fe79b.entry.js +1 -0
- package/dist/mint-components/p-99c15c5e.entry.js +1 -0
- package/dist/mint-components/{p-9288cca6.system.entry.js → p-9cdbd1ac.system.entry.js} +1 -1
- package/dist/mint-components/p-9d34f4f0.entry.js +33 -0
- package/dist/mint-components/p-9e0230c3.entry.js +1 -0
- package/dist/mint-components/{p-476182e7.system.entry.js → p-9ec008cb.system.entry.js} +1 -1
- package/dist/mint-components/p-a02afa72.system.js +1 -0
- package/dist/mint-components/p-a4282d02.system.entry.js +1 -0
- package/dist/mint-components/{p-798ed3a2.entry.js → p-a45b03d2.entry.js} +1 -1
- package/dist/mint-components/{p-523ed056.system.js → p-a51533cb.system.js} +1 -1
- package/dist/mint-components/p-a5a9aa07.entry.js +189 -0
- package/dist/mint-components/p-a85f57bb.entry.js +1 -0
- package/dist/mint-components/{p-21d4f6ce.system.js → p-ac51940e.system.js} +1 -1
- package/dist/mint-components/p-b1e8a802.entry.js +1 -0
- package/dist/mint-components/{p-fec0ac31.js → p-b651706a.js} +24 -24
- package/dist/mint-components/{p-14dac608.system.entry.js → p-bc826117.system.entry.js} +1 -1
- package/dist/mint-components/p-bdd6bb13.js +1 -0
- package/dist/mint-components/{p-67846dce.system.entry.js → p-be1ae1ed.system.entry.js} +1 -1
- package/dist/mint-components/{p-3cc5474d.entry.js → p-bee1e573.entry.js} +1 -1
- package/dist/mint-components/{p-fb2c0ce4.system.entry.js → p-c1f4fb6d.system.entry.js} +1 -1
- package/dist/mint-components/p-c3b37bbf.js +1 -0
- package/dist/mint-components/{p-ff41c804.system.entry.js → p-c3babfa4.system.entry.js} +1 -1
- package/dist/mint-components/{p-18a19cb5.system.js → p-c5577dd7.system.js} +1 -1
- package/dist/mint-components/{p-02f6cda4.js → p-c5d2e4ba.js} +1 -1
- package/dist/mint-components/p-c763c0b2.js +1 -0
- package/dist/mint-components/{p-ed161025.js → p-c8610d0c.js} +1 -1
- package/dist/mint-components/p-c92a743e.entry.js +1 -0
- package/dist/mint-components/p-c9fb6102.entry.js +1 -0
- package/dist/mint-components/p-ca809fdd.system.js +1 -0
- package/dist/mint-components/{p-f52c3aec.system.entry.js → p-cb433855.system.entry.js} +1 -1
- package/dist/mint-components/{p-f44d88fa.system.js → p-cd44de66.system.js} +1 -1
- package/dist/mint-components/p-d35d8c06.entry.js +11 -0
- package/dist/mint-components/{p-cfbe2f86.entry.js → p-d468925f.entry.js} +1 -1
- package/dist/mint-components/{p-15dee492.js → p-d49e2f7a.js} +1 -1
- package/dist/mint-components/{p-9c3d78e9.js → p-d83b0cf3.js} +1 -1
- package/dist/mint-components/{p-6e7e8af6.system.js → p-def516b8.system.js} +1 -1
- package/dist/mint-components/{p-e41cb11f.js → p-e0e7635a.js} +1 -1
- package/dist/mint-components/{p-a1150633.system.entry.js → p-e12d3414.system.entry.js} +1 -1
- package/dist/mint-components/{p-ce746af8.system.js → p-e8dde8f4.system.js} +1 -1
- package/dist/mint-components/p-e93e5740.entry.js +1 -0
- package/dist/mint-components/p-e9ca48fc.system.entry.js +1 -0
- package/dist/mint-components/p-ead27698.system.entry.js +1 -0
- package/dist/mint-components/{p-1c6e4a5f.entry.js → p-f36e33ff.entry.js} +2 -2
- package/dist/mint-components/{p-1ce4fa30.system.entry.js → p-f450654b.system.entry.js} +1 -1
- package/dist/mint-components/{p-1c710e16.entry.js → p-f4cbbe47.entry.js} +1 -1
- package/dist/mint-components/{p-d68ed4a6.system.entry.js → p-f531a5c9.system.entry.js} +1 -1
- package/dist/mint-components/{p-acc93caa.system.entry.js → p-f56348dc.system.entry.js} +1 -1
- package/dist/mint-components/p-f655a7df.js +1 -0
- package/dist/mint-components/{p-855ae1b5.js → p-fb93c962.js} +1 -1
- package/dist/mint-components/{p-46ca288c.system.js → p-fc422446.system.js} +1 -1
- package/dist/mint-components/{p-fae82751.entry.js → p-fd21ae8f.entry.js} +1 -1
- package/dist/mint-components/p-fd2c5407.js +2 -2
- package/dist/types/components/{sqm-pagination/Pagination.stories.d.ts → sqm-payout-button-scroll/PayoutButtonScroll.stories.d.ts} +1 -0
- package/dist/types/components/sqm-payout-button-scroll/sqm-payout-button-scroll-view.d.ts +10 -0
- package/dist/types/components/sqm-payout-button-scroll/sqm-payout-button-scroll.d.ts +19 -0
- package/dist/types/components/sqm-payout-button-scroll/usePayoutButton.d.ts +7 -0
- package/dist/types/components/sqm-referral-card/ReferralCard.stories.d.ts +0 -1
- package/dist/types/components/sqm-share-link/useShareLink.d.ts +0 -1
- package/dist/types/components/sqm-widget-verification/keys.d.ts +4 -0
- package/dist/types/components/sqm-widget-verification/sqm-code-verification/WidgetCodeVerification.stories.d.ts +8 -0
- package/dist/types/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.d.ts +26 -0
- package/dist/types/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.d.ts +60 -0
- package/dist/types/components/sqm-widget-verification/sqm-code-verification/useCodeVerification.d.ts +23 -0
- package/dist/types/components/sqm-widget-verification/sqm-email-verification/WidgetEmailVerification.stories.d.ts +7 -0
- package/dist/types/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.d.ts +16 -0
- package/dist/types/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.d.ts +32 -0
- package/dist/types/components/sqm-widget-verification/sqm-email-verification/useEmailVerification.d.ts +9 -0
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification-internal.d.ts +5 -0
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +8 -0
- package/dist/types/components/sqm-widget-verification/useWidgetVerification.d.ts +1 -0
- package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.d.ts +8 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.d.ts +18 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +21 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +9 -0
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +5 -0
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +16 -0
- package/dist/types/components/views/copy-text-view.d.ts +0 -2
- package/dist/types/components.d.ts +296 -170
- package/dist/types/global/android.d.ts +7 -0
- package/dist/types/global/demo.d.ts +2 -0
- package/dist/types/stories/features.d.ts +4 -0
- package/dist/types/stories/templates.d.ts +4 -0
- 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/copy-text-view-a22ad7e7.js +0 -173
- package/dist/cjs/sqm-pagination_3.cjs.entry.js +0 -316
- package/dist/collection/components/sqm-pagination/Pagination.stories.js +0 -12
- package/dist/collection/components/sqm-pagination/sqm-pagination-view.js +0 -30
- package/dist/collection/components/sqm-pagination/sqm-pagination.js +0 -85
- package/dist/collection/components/sqm-pagination/usePagination.js +0 -8
- package/dist/collection/components/sqm-referral-code/ReferralCode.stories.js +0 -60
- package/dist/collection/components/sqm-referral-code/sqm-referral-code.js +0 -315
- package/dist/collection/components/sqm-referral-code/useReferralCode.js +0 -51
- package/dist/collection/components/sqm-referral-codes/ReferralCodes.stories.js +0 -35
- package/dist/collection/components/sqm-referral-codes/sqm-referral-codes-view.js +0 -59
- package/dist/collection/components/sqm-referral-codes/sqm-referral-codes.js +0 -99
- package/dist/collection/components/sqm-referral-codes/useReferralCodes.js +0 -75
- package/dist/esm/copy-text-view-bf55abeb.js +0 -168
- package/dist/esm/sqm-pagination_3.entry.js +0 -310
- package/dist/esm-es5/ShadowViewAddon-5bb2b69a.js +0 -1
- package/dist/esm-es5/copy-text-view-bf55abeb.js +0 -1
- package/dist/esm-es5/index.module-f122af7b.js +0 -1
- package/dist/esm-es5/sqm-big-stat_38.entry.js +0 -1
- package/dist/esm-es5/sqm-invoice-table-view-09cc28d6.js +0 -1
- package/dist/esm-es5/sqm-pagination_3.entry.js +0 -1
- package/dist/esm-es5/useInstantAccessRegistration-9d4cb797.js +0 -1
- package/dist/esm-es5/useRegistrationFormState-53c71782.js +0 -1
- package/dist/mint-components/p-00be5090.js +0 -1
- package/dist/mint-components/p-0161f5da.entry.js +0 -13
- package/dist/mint-components/p-1099290c.system.js +0 -1
- package/dist/mint-components/p-18a7f543.system.entry.js +0 -1
- package/dist/mint-components/p-26306ac4.system.entry.js +0 -1
- package/dist/mint-components/p-2e16db11.entry.js +0 -1
- package/dist/mint-components/p-41499327.entry.js +0 -1
- package/dist/mint-components/p-43a990b6.system.js +0 -1
- package/dist/mint-components/p-4856b234.system.entry.js +0 -1
- package/dist/mint-components/p-48b7d703.entry.js +0 -174
- package/dist/mint-components/p-494e407e.entry.js +0 -1
- package/dist/mint-components/p-5b7e2d53.entry.js +0 -1
- package/dist/mint-components/p-5d37482d.entry.js +0 -1
- package/dist/mint-components/p-5fc8d87c.system.js +0 -1
- package/dist/mint-components/p-646d302a.system.js +0 -1
- package/dist/mint-components/p-6628bc0e.system.js +0 -1
- package/dist/mint-components/p-6b0e6a6c.js +0 -1
- package/dist/mint-components/p-73c6b26d.entry.js +0 -223
- package/dist/mint-components/p-89a760ea.js +0 -1
- package/dist/mint-components/p-942d1c22.entry.js +0 -33
- package/dist/mint-components/p-b4eb9c46.entry.js +0 -11
- package/dist/mint-components/p-b5176703.entry.js +0 -1
- package/dist/mint-components/p-b71c0e2d.system.entry.js +0 -1
- package/dist/mint-components/p-bd4e9c2b.js +0 -1
- package/dist/mint-components/p-c37137cd.js +0 -2
- package/dist/mint-components/p-c7ce2c1e.system.js +0 -1
- package/dist/mint-components/p-ca17d998.entry.js +0 -1
- package/dist/mint-components/p-d666b326.js +0 -1
- package/dist/mint-components/p-ea88142c.js +0 -1
- package/dist/mint-components/p-eb4e9efb.system.entry.js +0 -1
- package/dist/mint-components/p-ecefeaa9.system.entry.js +0 -1
- package/dist/mint-components/p-f1ec1180.entry.js +0 -1
- package/dist/types/components/sqm-pagination/sqm-pagination-view.d.ts +0 -7
- package/dist/types/components/sqm-pagination/sqm-pagination.d.ts +0 -17
- package/dist/types/components/sqm-pagination/usePagination.d.ts +0 -15
- package/dist/types/components/sqm-referral-code/ReferralCode.stories.d.ts +0 -18
- package/dist/types/components/sqm-referral-code/sqm-referral-code.d.ts +0 -70
- package/dist/types/components/sqm-referral-code/useReferralCode.d.ts +0 -9
- package/dist/types/components/sqm-referral-codes/ReferralCodes.stories.d.ts +0 -9
- package/dist/types/components/sqm-referral-codes/sqm-referral-codes-view.d.ts +0 -10
- package/dist/types/components/sqm-referral-codes/sqm-referral-codes.d.ts +0 -21
- package/dist/types/components/sqm-referral-codes/useReferralCodes.d.ts +0 -59
- package/dist/cjs/{GenericTableView-a3f48e15.js → GenericTableView-80d7642e.js} +1 -1
- package/dist/cjs/{email-registration-view-4c5d9379.js → email-registration-view-248652bb.js} +1 -1
- package/dist/cjs/{sqm-close-button-view-217239b7.js → sqm-close-button-view-fd6e8f60.js} +1 -1
- package/dist/cjs/{sqm-portal-forgot-password-view-3cd69fe7.js → sqm-portal-forgot-password-view-969c49ed.js} +1 -1
- package/dist/cjs/{sqm-portal-reset-password-view-34771d2c.js → sqm-portal-reset-password-view-96f329ed.js} +1 -1
- package/dist/cjs/{sqm-portal-verify-email-view-c8f91506.js → sqm-portal-verify-email-view-7ffcc0d4.js} +1 -1
- package/dist/esm/{GenericTableView-bf154727.js → GenericTableView-d59d8ab4.js} +1 -1
- package/dist/esm/{email-registration-view-12793040.js → email-registration-view-a89a88bf.js} +1 -1
- package/dist/esm/{sqm-close-button-view-b24c708b.js → sqm-close-button-view-dc65b4e3.js} +1 -1
- package/dist/esm/{sqm-portal-forgot-password-view-95cd454f.js → sqm-portal-forgot-password-view-c2ed8fed.js} +1 -1
- package/dist/esm/{sqm-portal-reset-password-view-f1454d43.js → sqm-portal-reset-password-view-79a85e02.js} +1 -1
- package/dist/esm/{sqm-portal-verify-email-view-3739f523.js → sqm-portal-verify-email-view-d7ea2c56.js} +1 -1
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import { h, r as registerInstance, c as Host, g as getElement } from './index-17b4da69.js';
|
|
2
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-
|
|
4
|
-
import { d as dist,
|
|
3
|
+
import { i as intl } from './global-6306a9b8.js';
|
|
4
|
+
import { d as dist, T, Q, K, M as Mn, D as Dn, t as qn, c as xe, i as isDemo, S as Sn, b as useCallback, O as On, y as $n, F as Fn, A as An } from './index.module-6c840c4e.js';
|
|
5
5
|
import { j as jsonpointer } from './jsonpointer-388a7082.js';
|
|
6
|
-
import { g as getProps, l as luxonLocale } from './utils-334c1e34.js';
|
|
7
|
-
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
8
6
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
9
7
|
import './mixins-f60a614c.js';
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { u as
|
|
8
|
+
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
9
|
+
import { G as GenericTableView } from './GenericTableView-d59d8ab4.js';
|
|
10
|
+
import { u as useRerenderListener, a as useRequestRerender } from './re-render-1bcfd0de.js';
|
|
11
|
+
import { u as useChildElements } from './useChildElements-fc84e640.js';
|
|
13
12
|
import { l as luxon } from './luxon-7600be8d.js';
|
|
14
|
-
import { g as generateUserError } from './useReferralTable-
|
|
15
|
-
import {
|
|
13
|
+
import { g as generateUserError } from './useReferralTable-f6ffa103.js';
|
|
14
|
+
import { g as getProps, l as luxonLocale } from './utils-334c1e34.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-08c03ba7.js';
|
|
16
|
+
import { V as VERIFICATION_EVENT_KEY } from './keys-a1496e39.js';
|
|
16
17
|
|
|
17
18
|
const TAX_CONTEXT_NAMESPACE = "sq:tax-and-cash";
|
|
18
19
|
const TAX_FORM_CONTEXT_NAMESPACE = "sq:tax-form-context";
|
|
@@ -28,6 +29,7 @@ const GET_USER = dist.gql `
|
|
|
28
29
|
query getUserTaxInfo {
|
|
29
30
|
user: viewer {
|
|
30
31
|
... on User {
|
|
32
|
+
id
|
|
31
33
|
firstName
|
|
32
34
|
lastName
|
|
33
35
|
email
|
|
@@ -939,6 +941,21 @@ const SAVE_WITHDRAWAL_SETTINGS = dist.gql `
|
|
|
939
941
|
}
|
|
940
942
|
}
|
|
941
943
|
`;
|
|
944
|
+
const UPDATE_WITHDRAWAL_SETTINGS = dist.gql `
|
|
945
|
+
mutation updateImpactPublisherWithdrawalSettings(
|
|
946
|
+
$updateImpactPublisherWithdrawalSettingsInput: UpdateImpactPublisherWithdrawalSettingsInput!
|
|
947
|
+
) {
|
|
948
|
+
updateImpactPublisherWithdrawalSettings(
|
|
949
|
+
updateImpactPublisherWithdrawalSettingsInput: $updateImpactPublisherWithdrawalSettingsInput
|
|
950
|
+
) {
|
|
951
|
+
success
|
|
952
|
+
validationErrors {
|
|
953
|
+
field
|
|
954
|
+
message
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
}
|
|
958
|
+
`;
|
|
942
959
|
function getPaymentMethod(paymentOption) {
|
|
943
960
|
if (paymentOption.defaultFinancePaymentMethodId === 3 ||
|
|
944
961
|
paymentOption.defaultFinancePaymentMethodId === 5)
|
|
@@ -956,15 +973,19 @@ function parseImpactThreshold(threshold) {
|
|
|
956
973
|
}
|
|
957
974
|
function useBankingInfoForm(props) {
|
|
958
975
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
959
|
-
const
|
|
960
|
-
const
|
|
961
|
-
const
|
|
962
|
-
const
|
|
963
|
-
const
|
|
976
|
+
const host = T();
|
|
977
|
+
const locale = Q();
|
|
978
|
+
const user = K();
|
|
979
|
+
const [step, setStep] = Mn(TAX_CONTEXT_NAMESPACE);
|
|
980
|
+
const context = Dn(TAX_FORM_CONTEXT_NAMESPACE);
|
|
981
|
+
const countries = Dn(SORTED_COUNTRIES_NAMESPACE);
|
|
964
982
|
const formRef = useRef(null);
|
|
965
|
-
const { data: paymentOptionsData, loading: paymentOptionsLoading, errors: paymentOptionsError, } =
|
|
966
|
-
const { data: userData, refetch, errors: userError, } =
|
|
967
|
-
const [saveWithdrawalSettings] =
|
|
983
|
+
const { data: paymentOptionsData, loading: paymentOptionsLoading, errors: paymentOptionsError, } = qn(FINANCE_NETWORK_SETTINGS_NAMESPACE);
|
|
984
|
+
const { data: userData, refetch, errors: userError, } = qn(USER_QUERY_NAMESPACE);
|
|
985
|
+
const [saveWithdrawalSettings] = xe(SAVE_WITHDRAWAL_SETTINGS);
|
|
986
|
+
const [updateWithdrawalSettings] = xe(UPDATE_WITHDRAWAL_SETTINGS);
|
|
987
|
+
const [showVerification, setShowVerification] = useState(false);
|
|
988
|
+
const [currentFormData, setCurrentFormData] = useState(null);
|
|
968
989
|
const [formState, setFormState] = useState({});
|
|
969
990
|
const [currentPaymentOption, setCurrentPaymentOption] = useState(null);
|
|
970
991
|
const [loading, setLoading] = useState(false);
|
|
@@ -974,8 +995,9 @@ function useBankingInfoForm(props) {
|
|
|
974
995
|
const [countrySearch, setCountrySearch] = useState("");
|
|
975
996
|
const [filteredCountries, setFilteredCountries] = useState(countries || []);
|
|
976
997
|
const currency = ((_c = (_b = (_a = userData === null || userData === void 0 ? void 0 : userData.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher) === null || _c === void 0 ? void 0 : _c.currency) || "";
|
|
998
|
+
const isPartner = !!((_f = (_e = (_d = userData === null || userData === void 0 ? void 0 : userData.user) === null || _d === void 0 ? void 0 : _d.impactConnection) === null || _e === void 0 ? void 0 : _e.publisher) === null || _f === void 0 ? void 0 : _f.withdrawalSettings);
|
|
977
999
|
const feeCap = paypalFeeMap[currency] || "";
|
|
978
|
-
const paymentOptions = (
|
|
1000
|
+
const paymentOptions = (_g = paymentOptionsData === null || paymentOptionsData === void 0 ? void 0 : paymentOptionsData.impactFinanceNetworkSettings) === null || _g === void 0 ? void 0 : _g.data;
|
|
979
1001
|
const paymentMethodFeeMap = {
|
|
980
1002
|
[ACH_PAYMENT_METHOD]: props.eftWithdrawalLabel,
|
|
981
1003
|
[WIRE_PAYMENT_METHOD]: intl.formatMessage({
|
|
@@ -1054,49 +1076,50 @@ function useBankingInfoForm(props) {
|
|
|
1054
1076
|
setFormState((p) => ({ ...p, bankCountry }));
|
|
1055
1077
|
setCurrentPaymentOption(currentPaymentOption);
|
|
1056
1078
|
};
|
|
1057
|
-
const
|
|
1058
|
-
var _a, _b, _c, _d;
|
|
1059
|
-
let formData = {};
|
|
1060
|
-
let validationErrors = {};
|
|
1061
|
-
const controls = event.target.getFormControls();
|
|
1062
|
-
controls.forEach((control) => {
|
|
1063
|
-
if (!control.name || !control.id)
|
|
1064
|
-
return;
|
|
1065
|
-
const key = control.name;
|
|
1066
|
-
const value = control.value;
|
|
1067
|
-
jsonpointer.set(formData, key, value);
|
|
1068
|
-
if (control.required && !value) {
|
|
1069
|
-
jsonpointer.set(validationErrors, key, { type: "required" });
|
|
1070
|
-
}
|
|
1071
|
-
});
|
|
1072
|
-
setErrors({ inputErrors: validationErrors });
|
|
1073
|
-
if (Object.keys(validationErrors).length) {
|
|
1074
|
-
return;
|
|
1075
|
-
}
|
|
1079
|
+
const runMutation = async (formData, token) => {
|
|
1080
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1076
1081
|
setLoading(true);
|
|
1077
1082
|
try {
|
|
1078
1083
|
if (!currentPaymentOption)
|
|
1079
1084
|
throw new Error("No currentPaymentOption");
|
|
1080
|
-
const
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
accountId: user.accountId,
|
|
1085
|
-
},
|
|
1086
|
-
...formData,
|
|
1087
|
-
paymentMethod: getPaymentMethod(currentPaymentOption),
|
|
1088
|
-
paymentSchedulingType: paymentScheduleChecked,
|
|
1085
|
+
const body = {
|
|
1086
|
+
user: {
|
|
1087
|
+
id: user.id,
|
|
1088
|
+
accountId: user.accountId,
|
|
1089
1089
|
},
|
|
1090
|
+
...formData,
|
|
1091
|
+
paymentMethod: getPaymentMethod(currentPaymentOption),
|
|
1092
|
+
paymentSchedulingType: paymentScheduleChecked,
|
|
1090
1093
|
};
|
|
1091
|
-
|
|
1092
|
-
|
|
1094
|
+
let response = null;
|
|
1095
|
+
let success = null;
|
|
1096
|
+
let validationErrors = null;
|
|
1097
|
+
// Call difference mutations based on whether the user is updating
|
|
1098
|
+
// the info for setting it for the first time
|
|
1099
|
+
if (isPartner) {
|
|
1100
|
+
response = await updateWithdrawalSettings({
|
|
1101
|
+
updateImpactPublisherWithdrawalSettingsInput: {
|
|
1102
|
+
...body,
|
|
1103
|
+
accessKey: token,
|
|
1104
|
+
},
|
|
1105
|
+
});
|
|
1106
|
+
success = (_b = (_a = response) === null || _a === void 0 ? void 0 : _a.updateImpactPublisherWithdrawalSettings) === null || _b === void 0 ? void 0 : _b.success;
|
|
1107
|
+
validationErrors = (_d = (_c = response) === null || _c === void 0 ? void 0 : _c.updateImpactPublisherWithdrawalSettings) === null || _d === void 0 ? void 0 : _d.validationErrors;
|
|
1108
|
+
}
|
|
1109
|
+
else {
|
|
1110
|
+
response = await saveWithdrawalSettings({
|
|
1111
|
+
setImpactPublisherWithdrawalSettingsInput: {
|
|
1112
|
+
...body,
|
|
1113
|
+
},
|
|
1114
|
+
});
|
|
1115
|
+
success = (_f = (_e = response) === null || _e === void 0 ? void 0 : _e.setImpactPublisherWithdrawalSettings) === null || _f === void 0 ? void 0 : _f.success;
|
|
1116
|
+
validationErrors = (_h = (_g = response) === null || _g === void 0 ? void 0 : _g.setImpactPublisherWithdrawalSettings) === null || _h === void 0 ? void 0 : _h.validationErrors;
|
|
1117
|
+
}
|
|
1118
|
+
if (!response || ((_j = response) === null || _j === void 0 ? void 0 : _j.message)) {
|
|
1093
1119
|
throw new Error();
|
|
1094
1120
|
}
|
|
1095
|
-
else if (!
|
|
1096
|
-
.
|
|
1097
|
-
console.error("Validation failed: ", (_c = response
|
|
1098
|
-
.setImpactPublisherWithdrawalSettings) === null || _c === void 0 ? void 0 : _c.validationErrors);
|
|
1099
|
-
const validationErrors = (_d = response.setImpactPublisherWithdrawalSettings) === null || _d === void 0 ? void 0 : _d.validationErrors;
|
|
1121
|
+
else if (!success) {
|
|
1122
|
+
console.error("Validation failed: ", validationErrors);
|
|
1100
1123
|
const mappedValidationErrors = validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.reduce((agg, error) => {
|
|
1101
1124
|
return {
|
|
1102
1125
|
...agg,
|
|
@@ -1122,6 +1145,39 @@ function useBankingInfoForm(props) {
|
|
|
1122
1145
|
setLoading(false);
|
|
1123
1146
|
}
|
|
1124
1147
|
};
|
|
1148
|
+
const onSubmit = async (event) => {
|
|
1149
|
+
let formData = {};
|
|
1150
|
+
let validationErrors = {};
|
|
1151
|
+
const controls = event.target.getFormControls();
|
|
1152
|
+
controls.forEach((control) => {
|
|
1153
|
+
if (!control.name || !control.id)
|
|
1154
|
+
return;
|
|
1155
|
+
const key = control.name;
|
|
1156
|
+
const value = control.value;
|
|
1157
|
+
jsonpointer.set(formData, key, value);
|
|
1158
|
+
if (control.required && !value) {
|
|
1159
|
+
jsonpointer.set(validationErrors, key, { type: "required" });
|
|
1160
|
+
}
|
|
1161
|
+
});
|
|
1162
|
+
setErrors({ inputErrors: validationErrors });
|
|
1163
|
+
if (Object.keys(validationErrors).length) {
|
|
1164
|
+
return;
|
|
1165
|
+
}
|
|
1166
|
+
let token = undefined;
|
|
1167
|
+
if (isPartner) {
|
|
1168
|
+
setShowVerification(true);
|
|
1169
|
+
token = await new Promise((res) => {
|
|
1170
|
+
const cb = (e) => {
|
|
1171
|
+
e.stopPropagation();
|
|
1172
|
+
host.removeEventListener(VERIFICATION_EVENT_KEY, cb);
|
|
1173
|
+
res(e.detail.token);
|
|
1174
|
+
};
|
|
1175
|
+
host.addEventListener(VERIFICATION_EVENT_KEY, cb);
|
|
1176
|
+
});
|
|
1177
|
+
setShowVerification(false);
|
|
1178
|
+
}
|
|
1179
|
+
await runMutation(formData, token);
|
|
1180
|
+
};
|
|
1125
1181
|
function setPaymentMethodChecked(paymentMethod) {
|
|
1126
1182
|
_setPaymentMethodChecked(paymentMethod);
|
|
1127
1183
|
if (paymentMethod === "toPayPalAccount") {
|
|
@@ -1148,11 +1204,12 @@ function useBankingInfoForm(props) {
|
|
|
1148
1204
|
setCountrySearch,
|
|
1149
1205
|
},
|
|
1150
1206
|
states: {
|
|
1207
|
+
showVerification,
|
|
1151
1208
|
step: step === null || step === void 0 ? void 0 : step.replace("/", ""),
|
|
1152
1209
|
hideSteps: !!context.hideSteps,
|
|
1153
1210
|
saveDisabled: !paymentMethodChecked || !paymentScheduleChecked,
|
|
1154
1211
|
locale,
|
|
1155
|
-
isPartner
|
|
1212
|
+
isPartner,
|
|
1156
1213
|
feeCap,
|
|
1157
1214
|
paymentMethodFeeLabel,
|
|
1158
1215
|
disabled: loading,
|
|
@@ -1483,6 +1540,9 @@ const BankingInfoForm = class {
|
|
|
1483
1540
|
padding: "var(--sl-spacing-x-small)",
|
|
1484
1541
|
},
|
|
1485
1542
|
};
|
|
1543
|
+
if (props.states.isPartner && props.states.showVerification) {
|
|
1544
|
+
return h("sqm-code-verification", null);
|
|
1545
|
+
}
|
|
1486
1546
|
return (h(Host, null, h(BankingInfoFormView, { callbacks: props.callbacks, text: props.text, states: props.states, refs: props.refs, slots: {
|
|
1487
1547
|
formInputsSlot: inputFields === null || inputFields === void 0 ? void 0 : inputFields.map(({ input }) => input),
|
|
1488
1548
|
countryInputSlot: (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) && {
|
|
@@ -1532,7 +1592,7 @@ function useDemoBankingInfoForm(props) {
|
|
|
1532
1592
|
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;
|
|
1533
1593
|
const defaultCurrency = (_h = (_g = props.demoData) === null || _g === void 0 ? void 0 : _g.states) === null || _h === void 0 ? void 0 : _h.currency;
|
|
1534
1594
|
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;
|
|
1535
|
-
const setStep =
|
|
1595
|
+
const setStep = Sn(TAX_CONTEXT_NAMESPACE);
|
|
1536
1596
|
const [paymentMethodChecked, setPaymentMethodChecked] = useState(undefined);
|
|
1537
1597
|
const [paymentScheduleChecked, setPaymentScheduleChecked] = useState(undefined);
|
|
1538
1598
|
const [currency, setCurrency] = useState(defaultCurrency);
|
|
@@ -1650,13 +1710,13 @@ const DOCUSIGN_ERROR_STATES = [
|
|
|
1650
1710
|
const DOCUSIGN_EXPIRED_STATES = ["ttl_expired", "session_timeout"];
|
|
1651
1711
|
function useDocusignForm(props) {
|
|
1652
1712
|
var _a, _b, _c;
|
|
1653
|
-
const user =
|
|
1654
|
-
const context =
|
|
1655
|
-
const [step, setStep] =
|
|
1656
|
-
const { data, loading: userLoading, refetch, } =
|
|
1713
|
+
const user = K();
|
|
1714
|
+
const context = Dn(TAX_FORM_CONTEXT_NAMESPACE);
|
|
1715
|
+
const [step, setStep] = Mn(TAX_CONTEXT_NAMESPACE);
|
|
1716
|
+
const { data, loading: userLoading, refetch, } = qn(USER_QUERY_NAMESPACE);
|
|
1657
1717
|
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;
|
|
1658
|
-
const [createTaxDocument, { loading: documentLoading, data: document, errors: documentErrors },] =
|
|
1659
|
-
const [completeTaxDocument, { loading: completeDocumentLoading, data: completeData, errors: completeErrors, },] =
|
|
1718
|
+
const [createTaxDocument, { loading: documentLoading, data: document, errors: documentErrors },] = xe(GET_TAX_DOCUMENT);
|
|
1719
|
+
const [completeTaxDocument, { loading: completeDocumentLoading, data: completeData, errors: completeErrors, },] = xe(COMPLETE_TAX_DOCUMENT);
|
|
1660
1720
|
const [docusignStatus, setDocusignStatus] = useState(undefined);
|
|
1661
1721
|
const [participantType, setParticipantType] = useState(undefined);
|
|
1662
1722
|
const [errors, setErrors] = useState({});
|
|
@@ -1796,6 +1856,14 @@ const style$1 = {
|
|
|
1796
1856
|
MessageContainer: {
|
|
1797
1857
|
maxWidth: "400px",
|
|
1798
1858
|
},
|
|
1859
|
+
IFrameContainer: {
|
|
1860
|
+
"@media screen and (max-width: 440px)": {
|
|
1861
|
+
position: "absolute",
|
|
1862
|
+
width: "100vw",
|
|
1863
|
+
left: "-30px",
|
|
1864
|
+
zIndex: "9999",
|
|
1865
|
+
},
|
|
1866
|
+
},
|
|
1799
1867
|
};
|
|
1800
1868
|
const sheet$1 = createStyleSheet(style$1);
|
|
1801
1869
|
const styleString$1 = sheet$1.toString();
|
|
@@ -1837,6 +1905,7 @@ const DocusignLoadingView = () => {
|
|
|
1837
1905
|
h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } }))));
|
|
1838
1906
|
};
|
|
1839
1907
|
const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
1908
|
+
const { classes } = sheet$1;
|
|
1840
1909
|
const [iFrameHeight, setiFrameHeight] = useState("100%");
|
|
1841
1910
|
const allowedDomains = [
|
|
1842
1911
|
"referralsaasquatch.com",
|
|
@@ -1847,6 +1916,7 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
|
1847
1916
|
const allowed = allowedDomains.some((d) => { var _a; return (_a = e.origin) === null || _a === void 0 ? void 0 : _a.includes(d); });
|
|
1848
1917
|
if (!allowed)
|
|
1849
1918
|
return;
|
|
1919
|
+
console.log(e);
|
|
1850
1920
|
if (typeof e.data === "number") {
|
|
1851
1921
|
setiFrameHeight(e.data + "px");
|
|
1852
1922
|
}
|
|
@@ -1859,7 +1929,7 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
|
1859
1929
|
return () => {
|
|
1860
1930
|
window.removeEventListener("message", callback, false);
|
|
1861
1931
|
};
|
|
1862
|
-
}, []);
|
|
1932
|
+
}, [iFrameHeight]);
|
|
1863
1933
|
if (states.urlLoading)
|
|
1864
1934
|
return h(DocusignLoadingView, null);
|
|
1865
1935
|
if (DOCUSIGN_ERROR_STATES.includes(states.status)) {
|
|
@@ -1867,7 +1937,11 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
|
1867
1937
|
}
|
|
1868
1938
|
if (DOCUSIGN_EXPIRED_STATES.includes(states.status))
|
|
1869
1939
|
return h(DocusignExpiredView, { text: text });
|
|
1870
|
-
|
|
1940
|
+
// Wrap iFrame with container that shares the same height to push other elements down when absolute positioned
|
|
1941
|
+
return (h("div", { style: { height: iFrameHeight } },
|
|
1942
|
+
h("style", { type: "text/css" }, styleString$1),
|
|
1943
|
+
h("div", { class: classes.IFrameContainer },
|
|
1944
|
+
h("iframe", { scrolling: "yes", frameBorder: "0", width: "100%", src: data.documentUrl, height: iFrameHeight }))));
|
|
1871
1945
|
};
|
|
1872
1946
|
|
|
1873
1947
|
const style$2 = {
|
|
@@ -2191,7 +2265,7 @@ const DocusignForm = class {
|
|
|
2191
2265
|
get el() { return getElement(this); }
|
|
2192
2266
|
};
|
|
2193
2267
|
function useDocusignFormDemo(props) {
|
|
2194
|
-
const setStep =
|
|
2268
|
+
const setStep = Sn(TAX_CONTEXT_NAMESPACE);
|
|
2195
2269
|
return cjs({
|
|
2196
2270
|
text: props.getTextProps(),
|
|
2197
2271
|
states: {
|
|
@@ -2461,15 +2535,15 @@ function getOption(countries, countryCode) {
|
|
|
2461
2535
|
}
|
|
2462
2536
|
function useIndirectTaxForm(props) {
|
|
2463
2537
|
var _a, _b, _c, _d, _e;
|
|
2464
|
-
const user =
|
|
2465
|
-
const locale =
|
|
2538
|
+
const user = K();
|
|
2539
|
+
const locale = Q();
|
|
2466
2540
|
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 } =
|
|
2541
|
+
const context = Dn(TAX_FORM_CONTEXT_NAMESPACE);
|
|
2542
|
+
const [step, setStep] = Mn(TAX_CONTEXT_NAMESPACE);
|
|
2543
|
+
const [connectImpactPartner, { loading: connectLoading, errors: connectErrors },] = xe(CONNECT_PARTNER);
|
|
2544
|
+
const userForm = Dn(USER_FORM_CONTEXT_NAMESPACE);
|
|
2545
|
+
const { data: userData, refetch, errors: userError, } = qn(USER_QUERY_NAMESPACE);
|
|
2546
|
+
const { data: _countriesRes, loading: countriesLoading } = qn(COUNTRIES_QUERY_NAMESPACE);
|
|
2473
2547
|
const intlLocale = (locale === null || locale === void 0 ? void 0 : locale.replace("_", "-")) || "en";
|
|
2474
2548
|
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
2549
|
const [loading, setLoading] = useState(false);
|
|
@@ -2858,7 +2932,7 @@ const IndirectTaxForm = class {
|
|
|
2858
2932
|
}
|
|
2859
2933
|
};
|
|
2860
2934
|
function useDemoIndirectTaxForm(props) {
|
|
2861
|
-
const setStep =
|
|
2935
|
+
const setStep = Sn(TAX_CONTEXT_NAMESPACE);
|
|
2862
2936
|
const [option, setOption] = useState(null);
|
|
2863
2937
|
const [demoFormState, setDemoFormState] = useState({});
|
|
2864
2938
|
return cjs({
|
|
@@ -2968,8 +3042,8 @@ const GET_INVOICES = dist.gql `
|
|
|
2968
3042
|
`;
|
|
2969
3043
|
function useInvoiceTable(props, emptyElement, loadingElement) {
|
|
2970
3044
|
var _a;
|
|
2971
|
-
const user =
|
|
2972
|
-
const locale =
|
|
3045
|
+
const user = K();
|
|
3046
|
+
const locale = Q();
|
|
2973
3047
|
const [content, setContent] = useReducer((state, next) => ({
|
|
2974
3048
|
...state,
|
|
2975
3049
|
...next,
|
|
@@ -2979,7 +3053,7 @@ function useInvoiceTable(props, emptyElement, loadingElement) {
|
|
|
2979
3053
|
loading: false,
|
|
2980
3054
|
page: 0,
|
|
2981
3055
|
});
|
|
2982
|
-
const { envelope: invoicesData, states, callbacks, } =
|
|
3056
|
+
const { envelope: invoicesData, states, callbacks, } = On(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
3057
|
limit: props.perPage,
|
|
2984
3058
|
offset: 0,
|
|
2985
3059
|
}, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
@@ -3545,7 +3619,7 @@ function PayoutDetailsCardView(props) {
|
|
|
3545
3619
|
|
|
3546
3620
|
function usePayoutDetailsCard(props) {
|
|
3547
3621
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
3548
|
-
const { data, loading } =
|
|
3622
|
+
const { data, loading } = qn(USER_QUERY_NAMESPACE);
|
|
3549
3623
|
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
3624
|
function getPayoutDetailedStatusText(paymentDay) {
|
|
3551
3625
|
var _a;
|
|
@@ -3734,21 +3808,21 @@ function getCurrentStep(user) {
|
|
|
3734
3808
|
}
|
|
3735
3809
|
function useTaxAndCash() {
|
|
3736
3810
|
var _a, _b, _c, _d, _e;
|
|
3737
|
-
const host =
|
|
3738
|
-
const user =
|
|
3739
|
-
const locale =
|
|
3811
|
+
const host = T();
|
|
3812
|
+
const user = K();
|
|
3813
|
+
const locale = Q();
|
|
3740
3814
|
// State for current step of form
|
|
3741
|
-
const [step, setStep] =
|
|
3815
|
+
const [step, setStep] = Fn({
|
|
3742
3816
|
namespace: TAX_CONTEXT_NAMESPACE,
|
|
3743
3817
|
initialValue: "/loading",
|
|
3744
3818
|
});
|
|
3745
3819
|
// State for when to hide steps, or override certain actions
|
|
3746
|
-
const [context, _setContext] =
|
|
3820
|
+
const [context, _setContext] = Fn({
|
|
3747
3821
|
namespace: TAX_FORM_CONTEXT_NAMESPACE,
|
|
3748
3822
|
initialValue: {},
|
|
3749
3823
|
});
|
|
3750
3824
|
// State to carry user form information into step 2
|
|
3751
|
-
const [userFormContext, _setUserFormContext] =
|
|
3825
|
+
const [userFormContext, _setUserFormContext] = Fn({
|
|
3752
3826
|
namespace: USER_FORM_CONTEXT_NAMESPACE,
|
|
3753
3827
|
initialValue: {
|
|
3754
3828
|
firstName: undefined,
|
|
@@ -3758,19 +3832,19 @@ function useTaxAndCash() {
|
|
|
3758
3832
|
currency: undefined,
|
|
3759
3833
|
},
|
|
3760
3834
|
});
|
|
3761
|
-
const [_currenciesContext, setCurrenciesContext] =
|
|
3835
|
+
const [_currenciesContext, setCurrenciesContext] = Fn({
|
|
3762
3836
|
namespace: CURRENCIES_NAMESPACE,
|
|
3763
3837
|
initialValue: [],
|
|
3764
3838
|
});
|
|
3765
|
-
const [_countriesContext, _setCountriesContext] =
|
|
3839
|
+
const [_countriesContext, _setCountriesContext] = Fn({
|
|
3766
3840
|
namespace: COUNTRIES_NAMESPACE,
|
|
3767
3841
|
initialValue: [],
|
|
3768
3842
|
});
|
|
3769
|
-
const [_sortedCountriesContext, setSortedCountriesContext] =
|
|
3843
|
+
const [_sortedCountriesContext, setSortedCountriesContext] = Fn({
|
|
3770
3844
|
namespace: SORTED_COUNTRIES_NAMESPACE,
|
|
3771
3845
|
initialValue: [],
|
|
3772
3846
|
});
|
|
3773
|
-
const { data, errors } =
|
|
3847
|
+
const { data, errors } = An({
|
|
3774
3848
|
namespace: USER_QUERY_NAMESPACE,
|
|
3775
3849
|
query: GET_USER,
|
|
3776
3850
|
skip: !user,
|
|
@@ -3780,12 +3854,12 @@ function useTaxAndCash() {
|
|
|
3780
3854
|
});
|
|
3781
3855
|
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
3856
|
userFormContext.countryCode;
|
|
3783
|
-
|
|
3857
|
+
An({
|
|
3784
3858
|
namespace: COUNTRIES_QUERY_NAMESPACE,
|
|
3785
3859
|
query: GET_COUNTRIES,
|
|
3786
3860
|
skip: !user,
|
|
3787
3861
|
});
|
|
3788
|
-
const { data: financeNetworkData, refetch } =
|
|
3862
|
+
const { data: financeNetworkData, refetch } = An({
|
|
3789
3863
|
namespace: FINANCE_NETWORK_SETTINGS_NAMESPACE,
|
|
3790
3864
|
query: GET_FINANCE_NETWORK_SETTINGS,
|
|
3791
3865
|
skip: !user,
|
|
@@ -3793,7 +3867,7 @@ function useTaxAndCash() {
|
|
|
3793
3867
|
filter: getFinanceNetworkFilter(),
|
|
3794
3868
|
},
|
|
3795
3869
|
});
|
|
3796
|
-
const { data: currenciesData } =
|
|
3870
|
+
const { data: currenciesData } = An({
|
|
3797
3871
|
namespace: CURRENCIES_QUERY_NAMESPACE,
|
|
3798
3872
|
query: GET_CURRENCIES,
|
|
3799
3873
|
skip: !user,
|
|
@@ -3874,7 +3948,7 @@ function useTaxAndCash() {
|
|
|
3874
3948
|
step,
|
|
3875
3949
|
setStep,
|
|
3876
3950
|
context,
|
|
3877
|
-
namespace:
|
|
3951
|
+
namespace: $n(TAX_CONTEXT_NAMESPACE),
|
|
3878
3952
|
loading: step === "/loading",
|
|
3879
3953
|
};
|
|
3880
3954
|
}
|
|
@@ -4820,7 +4894,7 @@ const TaxAndCashMonolith = class {
|
|
|
4820
4894
|
}
|
|
4821
4895
|
};
|
|
4822
4896
|
function useDemoTaxAndCash(props) {
|
|
4823
|
-
const [step, setStep] =
|
|
4897
|
+
const [step, setStep] = Fn({
|
|
4824
4898
|
namespace: TAX_CONTEXT_NAMESPACE,
|
|
4825
4899
|
initialValue: "/1",
|
|
4826
4900
|
});
|
|
@@ -5076,6 +5150,22 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5076
5150
|
h("strong", null, text.error.generalTitle),
|
|
5077
5151
|
h("br", null),
|
|
5078
5152
|
text.error.generalDescription)),
|
|
5153
|
+
states.identiyRequired && (h("div", null,
|
|
5154
|
+
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$4.classes.ExpiringSoonAlertContainer },
|
|
5155
|
+
h("sl-icon", { slot: "icon", name: "exclamation-triangle" }),
|
|
5156
|
+
h("strong", null, text.verifyIdentityAlertHeader),
|
|
5157
|
+
h("br", null),
|
|
5158
|
+
text.verifyIdentityAlertMessage,
|
|
5159
|
+
h("br", null),
|
|
5160
|
+
h("sl-button", null, text.verifyIdentityButton)))),
|
|
5161
|
+
h("sl-dialog", {
|
|
5162
|
+
// AL: todo plugin open dialog
|
|
5163
|
+
label: " verify Identity iframe", class: sheet$4.classes.Dialog, open: states.showIdentityVerificationDialog },
|
|
5164
|
+
h("div", { style: {
|
|
5165
|
+
width: "420px",
|
|
5166
|
+
height: "420px",
|
|
5167
|
+
border: "1px dotted black",
|
|
5168
|
+
} })),
|
|
5079
5169
|
h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet$4.classes.Dialog, open: states.showNewFormDialog, "onSl-hide": callbacks.onNewFormCancel },
|
|
5080
5170
|
h("p", null, text.replaceTaxFormModalBodyText),
|
|
5081
5171
|
h("sl-button", { slot: "footer", type: "primary", class: sheet$4.classes.DialogButton, onClick: callbacks.onNewFormClick }, text.newFormButton),
|
|
@@ -5182,15 +5272,15 @@ function getIndirectTaxType(taxInformation) {
|
|
|
5182
5272
|
}
|
|
5183
5273
|
const useTaxAndCashDashboard = (props) => {
|
|
5184
5274
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
5185
|
-
const setStep =
|
|
5186
|
-
const setContext =
|
|
5275
|
+
const setStep = Sn(TAX_CONTEXT_NAMESPACE);
|
|
5276
|
+
const setContext = Sn(TAX_FORM_CONTEXT_NAMESPACE);
|
|
5187
5277
|
const [showDialog, setShowDialog] = useState(false);
|
|
5188
|
-
const locale =
|
|
5278
|
+
const locale = Q();
|
|
5189
5279
|
useEffect(() => {
|
|
5190
5280
|
// Clear override context once on submitted
|
|
5191
5281
|
setContext({});
|
|
5192
5282
|
}, []);
|
|
5193
|
-
const { data, loading, errors: userError, } =
|
|
5283
|
+
const { data, loading, errors: userError, } = qn(USER_QUERY_NAMESPACE);
|
|
5194
5284
|
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;
|
|
5195
5285
|
const documentType = publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType;
|
|
5196
5286
|
const submissionDate = (_c = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _c === void 0 ? void 0 : _c.dateCreated;
|
|
@@ -5309,6 +5399,18 @@ const TaxAndCashDashboard = class {
|
|
|
5309
5399
|
* @uiName Inactive W-8 error message description
|
|
5310
5400
|
*/
|
|
5311
5401
|
this.taxAlertNotActiveMessageW8 = "Your tax form may have expired or has personal information that doesn’t match your profile. Please submit a new {documentType} form.";
|
|
5402
|
+
/**
|
|
5403
|
+
* Part of the alert displayed at the top of the page.
|
|
5404
|
+
*
|
|
5405
|
+
* @uiName Verify identity warning message header
|
|
5406
|
+
*/
|
|
5407
|
+
this.verifyIdentityAlertHeader = "Verify your identity";
|
|
5408
|
+
/**
|
|
5409
|
+
* Part of the alert displayed at the top of the page.
|
|
5410
|
+
*
|
|
5411
|
+
* @uiName Verify identity warning message description
|
|
5412
|
+
*/
|
|
5413
|
+
this.verifyIdentityAlertMessage = "Complete your verification to start receiving your cash rewards. It should only take a few minutes verify.";
|
|
5312
5414
|
/**
|
|
5313
5415
|
* Additional text displayed next to the tax form's status badge.
|
|
5314
5416
|
*
|
|
@@ -5509,6 +5611,10 @@ const TaxAndCashDashboard = class {
|
|
|
5509
5611
|
* @uiName Cancel button label
|
|
5510
5612
|
*/
|
|
5511
5613
|
this.cancelButton = "Cancel";
|
|
5614
|
+
/**
|
|
5615
|
+
* @uiName Verify button label
|
|
5616
|
+
*/
|
|
5617
|
+
this.verifyIdentityButton = "Start Verification";
|
|
5512
5618
|
h$1(this);
|
|
5513
5619
|
}
|
|
5514
5620
|
disconnectedCallback() { }
|
|
@@ -6609,7 +6715,7 @@ const style$6 = {
|
|
|
6609
6715
|
},
|
|
6610
6716
|
PhoneInputsSection: {
|
|
6611
6717
|
display: "flex",
|
|
6612
|
-
alignItems: "flex-
|
|
6718
|
+
alignItems: "flex-end",
|
|
6613
6719
|
flexDirection: "column",
|
|
6614
6720
|
gap: "4px",
|
|
6615
6721
|
"& p": {
|
|
@@ -6620,7 +6726,7 @@ const style$6 = {
|
|
|
6620
6726
|
},
|
|
6621
6727
|
PhoneInputsContainer: {
|
|
6622
6728
|
display: "flex",
|
|
6623
|
-
alignItems: "flex-
|
|
6729
|
+
alignItems: "flex-end",
|
|
6624
6730
|
gap: "4px",
|
|
6625
6731
|
width: "100%",
|
|
6626
6732
|
"& #phoneNumber": {
|
|
@@ -6827,12 +6933,12 @@ function useUserInfoForm(props) {
|
|
|
6827
6933
|
const currencyRef = useRef(undefined);
|
|
6828
6934
|
const phoneCountryRef = useRef(undefined);
|
|
6829
6935
|
const formRef = useRef(null);
|
|
6830
|
-
const context =
|
|
6831
|
-
const countries =
|
|
6832
|
-
const [step, setStep] =
|
|
6833
|
-
const [userFormContext, setUserFormContext] =
|
|
6834
|
-
const { data, loading, errors: userError, } =
|
|
6835
|
-
const _currencies =
|
|
6936
|
+
const context = Dn(TAX_FORM_CONTEXT_NAMESPACE);
|
|
6937
|
+
const countries = Dn(SORTED_COUNTRIES_NAMESPACE);
|
|
6938
|
+
const [step, setStep] = Mn(TAX_CONTEXT_NAMESPACE);
|
|
6939
|
+
const [userFormContext, setUserFormContext] = Mn(USER_FORM_CONTEXT_NAMESPACE);
|
|
6940
|
+
const { data, loading, errors: userError, } = qn(USER_QUERY_NAMESPACE);
|
|
6941
|
+
const _currencies = Dn(CURRENCIES_NAMESPACE);
|
|
6836
6942
|
const currencies = useMemo(() => [...(_currencies || [])].sort((a, b) => a.displayName.localeCompare(b.displayName)), [_currencies]);
|
|
6837
6943
|
const [countrySearch, setCountrySearch] = useState("");
|
|
6838
6944
|
const [phoneCountrySearch, setPhoneCountrySearch] = useState("");
|
|
@@ -7193,7 +7299,7 @@ const TaxForm = class {
|
|
|
7193
7299
|
}
|
|
7194
7300
|
};
|
|
7195
7301
|
function useDemoUserInfoForm(props) {
|
|
7196
|
-
const setStep =
|
|
7302
|
+
const setStep = Sn(TAX_CONTEXT_NAMESPACE);
|
|
7197
7303
|
return cjs({
|
|
7198
7304
|
setStep,
|
|
7199
7305
|
onSubmit: () => {
|