@saasquatch/mint-components 1.11.1-0 → 1.12.0-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{ShadowViewAddon-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 -164
- 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 -313
- 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 -93
- 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 -307
- 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-1099290c.system.js +0 -1
- package/dist/mint-components/p-1537b6ef.system.entry.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-66aac0fb.entry.js +0 -13
- 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-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 -18
- 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
|
@@ -4,19 +4,20 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
6
|
const stencilHooks_module = require('./stencil-hooks.module-72742a0b.js');
|
|
7
|
-
const global = require('./global-
|
|
8
|
-
const index_module = require('./index.module-
|
|
7
|
+
const global = require('./global-c3637175.js');
|
|
8
|
+
const index_module = require('./index.module-b8d9d0ba.js');
|
|
9
9
|
const jsonpointer = require('./jsonpointer-11327262.js');
|
|
10
|
-
const utils = require('./utils-6847bc06.js');
|
|
11
|
-
const JSS = require('./JSS-8503a151.js');
|
|
12
10
|
const cjs = require('./cjs-1066ec21.js');
|
|
13
11
|
require('./mixins-fe9d4112.js');
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
12
|
+
const JSS = require('./JSS-8503a151.js');
|
|
13
|
+
const GenericTableView = require('./GenericTableView-80d7642e.js');
|
|
14
|
+
const reRender = require('./re-render-5bde3d2e.js');
|
|
15
|
+
const useChildElements = require('./useChildElements-410d2435.js');
|
|
17
16
|
const luxon = require('./luxon-05098e19.js');
|
|
18
|
-
const useReferralTable = require('./useReferralTable-
|
|
19
|
-
const
|
|
17
|
+
const useReferralTable = require('./useReferralTable-824ac152.js');
|
|
18
|
+
const utils = require('./utils-6847bc06.js');
|
|
19
|
+
const sqmInvoiceTableView = require('./sqm-invoice-table-view-ce9a34ac.js');
|
|
20
|
+
const keys = require('./keys-cff24974.js');
|
|
20
21
|
|
|
21
22
|
const TAX_CONTEXT_NAMESPACE = "sq:tax-and-cash";
|
|
22
23
|
const TAX_FORM_CONTEXT_NAMESPACE = "sq:tax-form-context";
|
|
@@ -32,6 +33,7 @@ const GET_USER = index_module.dist.gql `
|
|
|
32
33
|
query getUserTaxInfo {
|
|
33
34
|
user: viewer {
|
|
34
35
|
... on User {
|
|
36
|
+
id
|
|
35
37
|
firstName
|
|
36
38
|
lastName
|
|
37
39
|
email
|
|
@@ -943,6 +945,21 @@ const SAVE_WITHDRAWAL_SETTINGS = index_module.dist.gql `
|
|
|
943
945
|
}
|
|
944
946
|
}
|
|
945
947
|
`;
|
|
948
|
+
const UPDATE_WITHDRAWAL_SETTINGS = index_module.dist.gql `
|
|
949
|
+
mutation updateImpactPublisherWithdrawalSettings(
|
|
950
|
+
$updateImpactPublisherWithdrawalSettingsInput: UpdateImpactPublisherWithdrawalSettingsInput!
|
|
951
|
+
) {
|
|
952
|
+
updateImpactPublisherWithdrawalSettings(
|
|
953
|
+
updateImpactPublisherWithdrawalSettingsInput: $updateImpactPublisherWithdrawalSettingsInput
|
|
954
|
+
) {
|
|
955
|
+
success
|
|
956
|
+
validationErrors {
|
|
957
|
+
field
|
|
958
|
+
message
|
|
959
|
+
}
|
|
960
|
+
}
|
|
961
|
+
}
|
|
962
|
+
`;
|
|
946
963
|
function getPaymentMethod(paymentOption) {
|
|
947
964
|
if (paymentOption.defaultFinancePaymentMethodId === 3 ||
|
|
948
965
|
paymentOption.defaultFinancePaymentMethodId === 5)
|
|
@@ -960,15 +977,19 @@ function parseImpactThreshold(threshold) {
|
|
|
960
977
|
}
|
|
961
978
|
function useBankingInfoForm(props) {
|
|
962
979
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
963
|
-
const
|
|
964
|
-
const
|
|
965
|
-
const
|
|
966
|
-
const
|
|
967
|
-
const
|
|
980
|
+
const host = index_module.T();
|
|
981
|
+
const locale = index_module.Q();
|
|
982
|
+
const user = index_module.K();
|
|
983
|
+
const [step, setStep] = index_module.Mn(TAX_CONTEXT_NAMESPACE);
|
|
984
|
+
const context = index_module.Dn(TAX_FORM_CONTEXT_NAMESPACE);
|
|
985
|
+
const countries = index_module.Dn(SORTED_COUNTRIES_NAMESPACE);
|
|
968
986
|
const formRef = stencilHooks_module.useRef(null);
|
|
969
|
-
const { data: paymentOptionsData, loading: paymentOptionsLoading, errors: paymentOptionsError, } = index_module.
|
|
970
|
-
const { data: userData, refetch, errors: userError, } = index_module.
|
|
971
|
-
const [saveWithdrawalSettings] = index_module
|
|
987
|
+
const { data: paymentOptionsData, loading: paymentOptionsLoading, errors: paymentOptionsError, } = index_module.qn(FINANCE_NETWORK_SETTINGS_NAMESPACE);
|
|
988
|
+
const { data: userData, refetch, errors: userError, } = index_module.qn(USER_QUERY_NAMESPACE);
|
|
989
|
+
const [saveWithdrawalSettings] = index_module.xe(SAVE_WITHDRAWAL_SETTINGS);
|
|
990
|
+
const [updateWithdrawalSettings] = index_module.xe(UPDATE_WITHDRAWAL_SETTINGS);
|
|
991
|
+
const [showVerification, setShowVerification] = stencilHooks_module.useState(false);
|
|
992
|
+
const [currentFormData, setCurrentFormData] = stencilHooks_module.useState(null);
|
|
972
993
|
const [formState, setFormState] = stencilHooks_module.useState({});
|
|
973
994
|
const [currentPaymentOption, setCurrentPaymentOption] = stencilHooks_module.useState(null);
|
|
974
995
|
const [loading, setLoading] = stencilHooks_module.useState(false);
|
|
@@ -978,8 +999,9 @@ function useBankingInfoForm(props) {
|
|
|
978
999
|
const [countrySearch, setCountrySearch] = stencilHooks_module.useState("");
|
|
979
1000
|
const [filteredCountries, setFilteredCountries] = stencilHooks_module.useState(countries || []);
|
|
980
1001
|
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) || "";
|
|
1002
|
+
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);
|
|
981
1003
|
const feeCap = paypalFeeMap[currency] || "";
|
|
982
|
-
const paymentOptions = (
|
|
1004
|
+
const paymentOptions = (_g = paymentOptionsData === null || paymentOptionsData === void 0 ? void 0 : paymentOptionsData.impactFinanceNetworkSettings) === null || _g === void 0 ? void 0 : _g.data;
|
|
983
1005
|
const paymentMethodFeeMap = {
|
|
984
1006
|
[ACH_PAYMENT_METHOD]: props.eftWithdrawalLabel,
|
|
985
1007
|
[WIRE_PAYMENT_METHOD]: global.intl.formatMessage({
|
|
@@ -1058,49 +1080,50 @@ function useBankingInfoForm(props) {
|
|
|
1058
1080
|
setFormState((p) => ({ ...p, bankCountry }));
|
|
1059
1081
|
setCurrentPaymentOption(currentPaymentOption);
|
|
1060
1082
|
};
|
|
1061
|
-
const
|
|
1062
|
-
var _a, _b, _c, _d;
|
|
1063
|
-
let formData = {};
|
|
1064
|
-
let validationErrors = {};
|
|
1065
|
-
const controls = event.target.getFormControls();
|
|
1066
|
-
controls.forEach((control) => {
|
|
1067
|
-
if (!control.name || !control.id)
|
|
1068
|
-
return;
|
|
1069
|
-
const key = control.name;
|
|
1070
|
-
const value = control.value;
|
|
1071
|
-
jsonpointer.jsonpointer.set(formData, key, value);
|
|
1072
|
-
if (control.required && !value) {
|
|
1073
|
-
jsonpointer.jsonpointer.set(validationErrors, key, { type: "required" });
|
|
1074
|
-
}
|
|
1075
|
-
});
|
|
1076
|
-
setErrors({ inputErrors: validationErrors });
|
|
1077
|
-
if (Object.keys(validationErrors).length) {
|
|
1078
|
-
return;
|
|
1079
|
-
}
|
|
1083
|
+
const runMutation = async (formData, token) => {
|
|
1084
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1080
1085
|
setLoading(true);
|
|
1081
1086
|
try {
|
|
1082
1087
|
if (!currentPaymentOption)
|
|
1083
1088
|
throw new Error("No currentPaymentOption");
|
|
1084
|
-
const
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
accountId: user.accountId,
|
|
1089
|
-
},
|
|
1090
|
-
...formData,
|
|
1091
|
-
paymentMethod: getPaymentMethod(currentPaymentOption),
|
|
1092
|
-
paymentSchedulingType: paymentScheduleChecked,
|
|
1089
|
+
const body = {
|
|
1090
|
+
user: {
|
|
1091
|
+
id: user.id,
|
|
1092
|
+
accountId: user.accountId,
|
|
1093
1093
|
},
|
|
1094
|
+
...formData,
|
|
1095
|
+
paymentMethod: getPaymentMethod(currentPaymentOption),
|
|
1096
|
+
paymentSchedulingType: paymentScheduleChecked,
|
|
1094
1097
|
};
|
|
1095
|
-
|
|
1096
|
-
|
|
1098
|
+
let response = null;
|
|
1099
|
+
let success = null;
|
|
1100
|
+
let validationErrors = null;
|
|
1101
|
+
// Call difference mutations based on whether the user is updating
|
|
1102
|
+
// the info for setting it for the first time
|
|
1103
|
+
if (isPartner) {
|
|
1104
|
+
response = await updateWithdrawalSettings({
|
|
1105
|
+
updateImpactPublisherWithdrawalSettingsInput: {
|
|
1106
|
+
...body,
|
|
1107
|
+
accessKey: token,
|
|
1108
|
+
},
|
|
1109
|
+
});
|
|
1110
|
+
success = (_b = (_a = response) === null || _a === void 0 ? void 0 : _a.updateImpactPublisherWithdrawalSettings) === null || _b === void 0 ? void 0 : _b.success;
|
|
1111
|
+
validationErrors = (_d = (_c = response) === null || _c === void 0 ? void 0 : _c.updateImpactPublisherWithdrawalSettings) === null || _d === void 0 ? void 0 : _d.validationErrors;
|
|
1112
|
+
}
|
|
1113
|
+
else {
|
|
1114
|
+
response = await saveWithdrawalSettings({
|
|
1115
|
+
setImpactPublisherWithdrawalSettingsInput: {
|
|
1116
|
+
...body,
|
|
1117
|
+
},
|
|
1118
|
+
});
|
|
1119
|
+
success = (_f = (_e = response) === null || _e === void 0 ? void 0 : _e.setImpactPublisherWithdrawalSettings) === null || _f === void 0 ? void 0 : _f.success;
|
|
1120
|
+
validationErrors = (_h = (_g = response) === null || _g === void 0 ? void 0 : _g.setImpactPublisherWithdrawalSettings) === null || _h === void 0 ? void 0 : _h.validationErrors;
|
|
1121
|
+
}
|
|
1122
|
+
if (!response || ((_j = response) === null || _j === void 0 ? void 0 : _j.message)) {
|
|
1097
1123
|
throw new Error();
|
|
1098
1124
|
}
|
|
1099
|
-
else if (!
|
|
1100
|
-
.
|
|
1101
|
-
console.error("Validation failed: ", (_c = response
|
|
1102
|
-
.setImpactPublisherWithdrawalSettings) === null || _c === void 0 ? void 0 : _c.validationErrors);
|
|
1103
|
-
const validationErrors = (_d = response.setImpactPublisherWithdrawalSettings) === null || _d === void 0 ? void 0 : _d.validationErrors;
|
|
1125
|
+
else if (!success) {
|
|
1126
|
+
console.error("Validation failed: ", validationErrors);
|
|
1104
1127
|
const mappedValidationErrors = validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.reduce((agg, error) => {
|
|
1105
1128
|
return {
|
|
1106
1129
|
...agg,
|
|
@@ -1126,6 +1149,39 @@ function useBankingInfoForm(props) {
|
|
|
1126
1149
|
setLoading(false);
|
|
1127
1150
|
}
|
|
1128
1151
|
};
|
|
1152
|
+
const onSubmit = async (event) => {
|
|
1153
|
+
let formData = {};
|
|
1154
|
+
let validationErrors = {};
|
|
1155
|
+
const controls = event.target.getFormControls();
|
|
1156
|
+
controls.forEach((control) => {
|
|
1157
|
+
if (!control.name || !control.id)
|
|
1158
|
+
return;
|
|
1159
|
+
const key = control.name;
|
|
1160
|
+
const value = control.value;
|
|
1161
|
+
jsonpointer.jsonpointer.set(formData, key, value);
|
|
1162
|
+
if (control.required && !value) {
|
|
1163
|
+
jsonpointer.jsonpointer.set(validationErrors, key, { type: "required" });
|
|
1164
|
+
}
|
|
1165
|
+
});
|
|
1166
|
+
setErrors({ inputErrors: validationErrors });
|
|
1167
|
+
if (Object.keys(validationErrors).length) {
|
|
1168
|
+
return;
|
|
1169
|
+
}
|
|
1170
|
+
let token = undefined;
|
|
1171
|
+
if (isPartner) {
|
|
1172
|
+
setShowVerification(true);
|
|
1173
|
+
token = await new Promise((res) => {
|
|
1174
|
+
const cb = (e) => {
|
|
1175
|
+
e.stopPropagation();
|
|
1176
|
+
host.removeEventListener(keys.VERIFICATION_EVENT_KEY, cb);
|
|
1177
|
+
res(e.detail.token);
|
|
1178
|
+
};
|
|
1179
|
+
host.addEventListener(keys.VERIFICATION_EVENT_KEY, cb);
|
|
1180
|
+
});
|
|
1181
|
+
setShowVerification(false);
|
|
1182
|
+
}
|
|
1183
|
+
await runMutation(formData, token);
|
|
1184
|
+
};
|
|
1129
1185
|
function setPaymentMethodChecked(paymentMethod) {
|
|
1130
1186
|
_setPaymentMethodChecked(paymentMethod);
|
|
1131
1187
|
if (paymentMethod === "toPayPalAccount") {
|
|
@@ -1152,11 +1208,12 @@ function useBankingInfoForm(props) {
|
|
|
1152
1208
|
setCountrySearch,
|
|
1153
1209
|
},
|
|
1154
1210
|
states: {
|
|
1211
|
+
showVerification,
|
|
1155
1212
|
step: step === null || step === void 0 ? void 0 : step.replace("/", ""),
|
|
1156
1213
|
hideSteps: !!context.hideSteps,
|
|
1157
1214
|
saveDisabled: !paymentMethodChecked || !paymentScheduleChecked,
|
|
1158
1215
|
locale,
|
|
1159
|
-
isPartner
|
|
1216
|
+
isPartner,
|
|
1160
1217
|
feeCap,
|
|
1161
1218
|
paymentMethodFeeLabel,
|
|
1162
1219
|
disabled: loading,
|
|
@@ -1487,6 +1544,9 @@ const BankingInfoForm = class {
|
|
|
1487
1544
|
padding: "var(--sl-spacing-x-small)",
|
|
1488
1545
|
},
|
|
1489
1546
|
};
|
|
1547
|
+
if (props.states.isPartner && props.states.showVerification) {
|
|
1548
|
+
return index.h("sqm-code-verification", null);
|
|
1549
|
+
}
|
|
1490
1550
|
return (index.h(index.Host, null, index.h(BankingInfoFormView, { callbacks: props.callbacks, text: props.text, states: props.states, refs: props.refs, slots: {
|
|
1491
1551
|
formInputsSlot: inputFields === null || inputFields === void 0 ? void 0 : inputFields.map(({ input }) => input),
|
|
1492
1552
|
countryInputSlot: (index.h("sl-select", Object.assign({ label: props.text.bankLocationLabel, required: true, name: "/bankCountry", id: "bankCountry", value: props.states.formState.bankCountry || "", "onSl-select": (e) => { var _a, _b; return props.callbacks.setBankCountry((_b = (_a = e.detail) === null || _a === void 0 ? void 0 : _a.item) === null || _b === void 0 ? void 0 : _b.value); } }, (((_a = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _a === void 0 ? void 0 : _a.bankCountry) && {
|
|
@@ -1536,7 +1596,7 @@ function useDemoBankingInfoForm(props) {
|
|
|
1536
1596
|
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;
|
|
1537
1597
|
const defaultCurrency = (_h = (_g = props.demoData) === null || _g === void 0 ? void 0 : _g.states) === null || _h === void 0 ? void 0 : _h.currency;
|
|
1538
1598
|
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;
|
|
1539
|
-
const setStep = index_module.
|
|
1599
|
+
const setStep = index_module.Sn(TAX_CONTEXT_NAMESPACE);
|
|
1540
1600
|
const [paymentMethodChecked, setPaymentMethodChecked] = stencilHooks_module.useState(undefined);
|
|
1541
1601
|
const [paymentScheduleChecked, setPaymentScheduleChecked] = stencilHooks_module.useState(undefined);
|
|
1542
1602
|
const [currency, setCurrency] = stencilHooks_module.useState(defaultCurrency);
|
|
@@ -1654,13 +1714,13 @@ const DOCUSIGN_ERROR_STATES = [
|
|
|
1654
1714
|
const DOCUSIGN_EXPIRED_STATES = ["ttl_expired", "session_timeout"];
|
|
1655
1715
|
function useDocusignForm(props) {
|
|
1656
1716
|
var _a, _b, _c;
|
|
1657
|
-
const user = index_module.
|
|
1658
|
-
const context = index_module.
|
|
1659
|
-
const [step, setStep] = index_module.
|
|
1660
|
-
const { data, loading: userLoading, refetch, } = index_module.
|
|
1717
|
+
const user = index_module.K();
|
|
1718
|
+
const context = index_module.Dn(TAX_FORM_CONTEXT_NAMESPACE);
|
|
1719
|
+
const [step, setStep] = index_module.Mn(TAX_CONTEXT_NAMESPACE);
|
|
1720
|
+
const { data, loading: userLoading, refetch, } = index_module.qn(USER_QUERY_NAMESPACE);
|
|
1661
1721
|
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;
|
|
1662
|
-
const [createTaxDocument, { loading: documentLoading, data: document, errors: documentErrors },] = index_module
|
|
1663
|
-
const [completeTaxDocument, { loading: completeDocumentLoading, data: completeData, errors: completeErrors, },] = index_module
|
|
1722
|
+
const [createTaxDocument, { loading: documentLoading, data: document, errors: documentErrors },] = index_module.xe(GET_TAX_DOCUMENT);
|
|
1723
|
+
const [completeTaxDocument, { loading: completeDocumentLoading, data: completeData, errors: completeErrors, },] = index_module.xe(COMPLETE_TAX_DOCUMENT);
|
|
1664
1724
|
const [docusignStatus, setDocusignStatus] = stencilHooks_module.useState(undefined);
|
|
1665
1725
|
const [participantType, setParticipantType] = stencilHooks_module.useState(undefined);
|
|
1666
1726
|
const [errors, setErrors] = stencilHooks_module.useState({});
|
|
@@ -1800,6 +1860,14 @@ const style$1 = {
|
|
|
1800
1860
|
MessageContainer: {
|
|
1801
1861
|
maxWidth: "400px",
|
|
1802
1862
|
},
|
|
1863
|
+
IFrameContainer: {
|
|
1864
|
+
"@media screen and (max-width: 440px)": {
|
|
1865
|
+
position: "absolute",
|
|
1866
|
+
width: "100vw",
|
|
1867
|
+
left: "-30px",
|
|
1868
|
+
zIndex: "9999",
|
|
1869
|
+
},
|
|
1870
|
+
},
|
|
1803
1871
|
};
|
|
1804
1872
|
const sheet$1 = JSS.createStyleSheet(style$1);
|
|
1805
1873
|
const styleString$1 = sheet$1.toString();
|
|
@@ -1841,6 +1909,7 @@ const DocusignLoadingView = () => {
|
|
|
1841
1909
|
index.h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } }))));
|
|
1842
1910
|
};
|
|
1843
1911
|
const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
1912
|
+
const { classes } = sheet$1;
|
|
1844
1913
|
const [iFrameHeight, setiFrameHeight] = stencilHooks_module.useState("100%");
|
|
1845
1914
|
const allowedDomains = [
|
|
1846
1915
|
"referralsaasquatch.com",
|
|
@@ -1851,6 +1920,7 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
|
1851
1920
|
const allowed = allowedDomains.some((d) => { var _a; return (_a = e.origin) === null || _a === void 0 ? void 0 : _a.includes(d); });
|
|
1852
1921
|
if (!allowed)
|
|
1853
1922
|
return;
|
|
1923
|
+
console.log(e);
|
|
1854
1924
|
if (typeof e.data === "number") {
|
|
1855
1925
|
setiFrameHeight(e.data + "px");
|
|
1856
1926
|
}
|
|
@@ -1863,7 +1933,7 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
|
1863
1933
|
return () => {
|
|
1864
1934
|
window.removeEventListener("message", callback, false);
|
|
1865
1935
|
};
|
|
1866
|
-
}, []);
|
|
1936
|
+
}, [iFrameHeight]);
|
|
1867
1937
|
if (states.urlLoading)
|
|
1868
1938
|
return index.h(DocusignLoadingView, null);
|
|
1869
1939
|
if (DOCUSIGN_ERROR_STATES.includes(states.status)) {
|
|
@@ -1871,7 +1941,11 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
|
1871
1941
|
}
|
|
1872
1942
|
if (DOCUSIGN_EXPIRED_STATES.includes(states.status))
|
|
1873
1943
|
return index.h(DocusignExpiredView, { text: text });
|
|
1874
|
-
|
|
1944
|
+
// Wrap iFrame with container that shares the same height to push other elements down when absolute positioned
|
|
1945
|
+
return (index.h("div", { style: { height: iFrameHeight } },
|
|
1946
|
+
index.h("style", { type: "text/css" }, styleString$1),
|
|
1947
|
+
index.h("div", { class: classes.IFrameContainer },
|
|
1948
|
+
index.h("iframe", { scrolling: "yes", frameBorder: "0", width: "100%", src: data.documentUrl, height: iFrameHeight }))));
|
|
1875
1949
|
};
|
|
1876
1950
|
|
|
1877
1951
|
const style$2 = {
|
|
@@ -2195,7 +2269,7 @@ const DocusignForm = class {
|
|
|
2195
2269
|
get el() { return index.getElement(this); }
|
|
2196
2270
|
};
|
|
2197
2271
|
function useDocusignFormDemo(props) {
|
|
2198
|
-
const setStep = index_module.
|
|
2272
|
+
const setStep = index_module.Sn(TAX_CONTEXT_NAMESPACE);
|
|
2199
2273
|
return cjs.cjs({
|
|
2200
2274
|
text: props.getTextProps(),
|
|
2201
2275
|
states: {
|
|
@@ -2465,15 +2539,15 @@ function getOption(countries, countryCode) {
|
|
|
2465
2539
|
}
|
|
2466
2540
|
function useIndirectTaxForm(props) {
|
|
2467
2541
|
var _a, _b, _c, _d, _e;
|
|
2468
|
-
const user = index_module.
|
|
2469
|
-
const locale = index_module.
|
|
2542
|
+
const user = index_module.K();
|
|
2543
|
+
const locale = index_module.Q();
|
|
2470
2544
|
const formRef = stencilHooks_module.useRef(null);
|
|
2471
|
-
const context = index_module.
|
|
2472
|
-
const [step, setStep] = index_module.
|
|
2473
|
-
const [connectImpactPartner, { loading: connectLoading, errors: connectErrors },] = index_module
|
|
2474
|
-
const userForm = index_module.
|
|
2475
|
-
const { data: userData, refetch, errors: userError, } = index_module.
|
|
2476
|
-
const { data: _countriesRes, loading: countriesLoading } = index_module.
|
|
2545
|
+
const context = index_module.Dn(TAX_FORM_CONTEXT_NAMESPACE);
|
|
2546
|
+
const [step, setStep] = index_module.Mn(TAX_CONTEXT_NAMESPACE);
|
|
2547
|
+
const [connectImpactPartner, { loading: connectLoading, errors: connectErrors },] = index_module.xe(CONNECT_PARTNER);
|
|
2548
|
+
const userForm = index_module.Dn(USER_FORM_CONTEXT_NAMESPACE);
|
|
2549
|
+
const { data: userData, refetch, errors: userError, } = index_module.qn(USER_QUERY_NAMESPACE);
|
|
2550
|
+
const { data: _countriesRes, loading: countriesLoading } = index_module.qn(COUNTRIES_QUERY_NAMESPACE);
|
|
2477
2551
|
const intlLocale = (locale === null || locale === void 0 ? void 0 : locale.replace("_", "-")) || "en";
|
|
2478
2552
|
const _countries = stencilHooks_module.useMemo(() => { var _a, _b; return (_b = (_a = _countriesRes === null || _countriesRes === void 0 ? void 0 : _countriesRes.impactPayoutCountries) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.map((country) => sqmInvoiceTableView.getCountryObj({ countryCode: country.countryCode, locale: intlLocale })); }, [(_a = _countriesRes === null || _countriesRes === void 0 ? void 0 : _countriesRes.impactPayoutCountries) === null || _a === void 0 ? void 0 : _a.data]);
|
|
2479
2553
|
const [loading, setLoading] = stencilHooks_module.useState(false);
|
|
@@ -2862,7 +2936,7 @@ const IndirectTaxForm = class {
|
|
|
2862
2936
|
}
|
|
2863
2937
|
};
|
|
2864
2938
|
function useDemoIndirectTaxForm(props) {
|
|
2865
|
-
const setStep = index_module.
|
|
2939
|
+
const setStep = index_module.Sn(TAX_CONTEXT_NAMESPACE);
|
|
2866
2940
|
const [option, setOption] = stencilHooks_module.useState(null);
|
|
2867
2941
|
const [demoFormState, setDemoFormState] = stencilHooks_module.useState({});
|
|
2868
2942
|
return cjs.cjs({
|
|
@@ -2972,8 +3046,8 @@ const GET_INVOICES = index_module.dist.gql `
|
|
|
2972
3046
|
`;
|
|
2973
3047
|
function useInvoiceTable(props, emptyElement, loadingElement) {
|
|
2974
3048
|
var _a;
|
|
2975
|
-
const user = index_module.
|
|
2976
|
-
const locale = index_module.
|
|
3049
|
+
const user = index_module.K();
|
|
3050
|
+
const locale = index_module.Q();
|
|
2977
3051
|
const [content, setContent] = stencilHooks_module.useReducer((state, next) => ({
|
|
2978
3052
|
...state,
|
|
2979
3053
|
...next,
|
|
@@ -2983,7 +3057,7 @@ function useInvoiceTable(props, emptyElement, loadingElement) {
|
|
|
2983
3057
|
loading: false,
|
|
2984
3058
|
page: 0,
|
|
2985
3059
|
});
|
|
2986
|
-
const { envelope: invoicesData, states, callbacks, } = index_module.
|
|
3060
|
+
const { envelope: invoicesData, states, callbacks, } = index_module.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; }, {
|
|
2987
3061
|
limit: props.perPage,
|
|
2988
3062
|
offset: 0,
|
|
2989
3063
|
}, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
@@ -3549,7 +3623,7 @@ function PayoutDetailsCardView(props) {
|
|
|
3549
3623
|
|
|
3550
3624
|
function usePayoutDetailsCard(props) {
|
|
3551
3625
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
3552
|
-
const { data, loading } = index_module.
|
|
3626
|
+
const { data, loading } = index_module.qn(USER_QUERY_NAMESPACE);
|
|
3553
3627
|
const publisher = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher;
|
|
3554
3628
|
function getPayoutDetailedStatusText(paymentDay) {
|
|
3555
3629
|
var _a;
|
|
@@ -3738,21 +3812,21 @@ function getCurrentStep(user) {
|
|
|
3738
3812
|
}
|
|
3739
3813
|
function useTaxAndCash() {
|
|
3740
3814
|
var _a, _b, _c, _d, _e;
|
|
3741
|
-
const host = index_module.
|
|
3742
|
-
const user = index_module.
|
|
3743
|
-
const locale = index_module.
|
|
3815
|
+
const host = index_module.T();
|
|
3816
|
+
const user = index_module.K();
|
|
3817
|
+
const locale = index_module.Q();
|
|
3744
3818
|
// State for current step of form
|
|
3745
|
-
const [step, setStep] = index_module.
|
|
3819
|
+
const [step, setStep] = index_module.Fn({
|
|
3746
3820
|
namespace: TAX_CONTEXT_NAMESPACE,
|
|
3747
3821
|
initialValue: "/loading",
|
|
3748
3822
|
});
|
|
3749
3823
|
// State for when to hide steps, or override certain actions
|
|
3750
|
-
const [context, _setContext] = index_module.
|
|
3824
|
+
const [context, _setContext] = index_module.Fn({
|
|
3751
3825
|
namespace: TAX_FORM_CONTEXT_NAMESPACE,
|
|
3752
3826
|
initialValue: {},
|
|
3753
3827
|
});
|
|
3754
3828
|
// State to carry user form information into step 2
|
|
3755
|
-
const [userFormContext, _setUserFormContext] = index_module.
|
|
3829
|
+
const [userFormContext, _setUserFormContext] = index_module.Fn({
|
|
3756
3830
|
namespace: USER_FORM_CONTEXT_NAMESPACE,
|
|
3757
3831
|
initialValue: {
|
|
3758
3832
|
firstName: undefined,
|
|
@@ -3762,19 +3836,19 @@ function useTaxAndCash() {
|
|
|
3762
3836
|
currency: undefined,
|
|
3763
3837
|
},
|
|
3764
3838
|
});
|
|
3765
|
-
const [_currenciesContext, setCurrenciesContext] = index_module.
|
|
3839
|
+
const [_currenciesContext, setCurrenciesContext] = index_module.Fn({
|
|
3766
3840
|
namespace: CURRENCIES_NAMESPACE,
|
|
3767
3841
|
initialValue: [],
|
|
3768
3842
|
});
|
|
3769
|
-
const [_countriesContext, _setCountriesContext] = index_module.
|
|
3843
|
+
const [_countriesContext, _setCountriesContext] = index_module.Fn({
|
|
3770
3844
|
namespace: COUNTRIES_NAMESPACE,
|
|
3771
3845
|
initialValue: [],
|
|
3772
3846
|
});
|
|
3773
|
-
const [_sortedCountriesContext, setSortedCountriesContext] = index_module.
|
|
3847
|
+
const [_sortedCountriesContext, setSortedCountriesContext] = index_module.Fn({
|
|
3774
3848
|
namespace: SORTED_COUNTRIES_NAMESPACE,
|
|
3775
3849
|
initialValue: [],
|
|
3776
3850
|
});
|
|
3777
|
-
const { data, errors } = index_module.
|
|
3851
|
+
const { data, errors } = index_module.An({
|
|
3778
3852
|
namespace: USER_QUERY_NAMESPACE,
|
|
3779
3853
|
query: GET_USER,
|
|
3780
3854
|
skip: !user,
|
|
@@ -3784,12 +3858,12 @@ function useTaxAndCash() {
|
|
|
3784
3858
|
});
|
|
3785
3859
|
const countryCode = ((_c = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher) === null || _c === void 0 ? void 0 : _c.countryCode) ||
|
|
3786
3860
|
userFormContext.countryCode;
|
|
3787
|
-
index_module.
|
|
3861
|
+
index_module.An({
|
|
3788
3862
|
namespace: COUNTRIES_QUERY_NAMESPACE,
|
|
3789
3863
|
query: GET_COUNTRIES,
|
|
3790
3864
|
skip: !user,
|
|
3791
3865
|
});
|
|
3792
|
-
const { data: financeNetworkData, refetch } = index_module.
|
|
3866
|
+
const { data: financeNetworkData, refetch } = index_module.An({
|
|
3793
3867
|
namespace: FINANCE_NETWORK_SETTINGS_NAMESPACE,
|
|
3794
3868
|
query: GET_FINANCE_NETWORK_SETTINGS,
|
|
3795
3869
|
skip: !user,
|
|
@@ -3797,7 +3871,7 @@ function useTaxAndCash() {
|
|
|
3797
3871
|
filter: getFinanceNetworkFilter(),
|
|
3798
3872
|
},
|
|
3799
3873
|
});
|
|
3800
|
-
const { data: currenciesData } = index_module.
|
|
3874
|
+
const { data: currenciesData } = index_module.An({
|
|
3801
3875
|
namespace: CURRENCIES_QUERY_NAMESPACE,
|
|
3802
3876
|
query: GET_CURRENCIES,
|
|
3803
3877
|
skip: !user,
|
|
@@ -3878,7 +3952,7 @@ function useTaxAndCash() {
|
|
|
3878
3952
|
step,
|
|
3879
3953
|
setStep,
|
|
3880
3954
|
context,
|
|
3881
|
-
namespace: index_module
|
|
3955
|
+
namespace: index_module.$n(TAX_CONTEXT_NAMESPACE),
|
|
3882
3956
|
loading: step === "/loading",
|
|
3883
3957
|
};
|
|
3884
3958
|
}
|
|
@@ -4824,7 +4898,7 @@ const TaxAndCashMonolith = class {
|
|
|
4824
4898
|
}
|
|
4825
4899
|
};
|
|
4826
4900
|
function useDemoTaxAndCash(props) {
|
|
4827
|
-
const [step, setStep] = index_module.
|
|
4901
|
+
const [step, setStep] = index_module.Fn({
|
|
4828
4902
|
namespace: TAX_CONTEXT_NAMESPACE,
|
|
4829
4903
|
initialValue: "/1",
|
|
4830
4904
|
});
|
|
@@ -5080,6 +5154,22 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5080
5154
|
index.h("strong", null, text.error.generalTitle),
|
|
5081
5155
|
index.h("br", null),
|
|
5082
5156
|
text.error.generalDescription)),
|
|
5157
|
+
states.identiyRequired && (index.h("div", null,
|
|
5158
|
+
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$4.classes.ExpiringSoonAlertContainer },
|
|
5159
|
+
index.h("sl-icon", { slot: "icon", name: "exclamation-triangle" }),
|
|
5160
|
+
index.h("strong", null, text.verifyIdentityAlertHeader),
|
|
5161
|
+
index.h("br", null),
|
|
5162
|
+
text.verifyIdentityAlertMessage,
|
|
5163
|
+
index.h("br", null),
|
|
5164
|
+
index.h("sl-button", null, text.verifyIdentityButton)))),
|
|
5165
|
+
index.h("sl-dialog", {
|
|
5166
|
+
// AL: todo plugin open dialog
|
|
5167
|
+
label: " verify Identity iframe", class: sheet$4.classes.Dialog, open: states.showIdentityVerificationDialog },
|
|
5168
|
+
index.h("div", { style: {
|
|
5169
|
+
width: "420px",
|
|
5170
|
+
height: "420px",
|
|
5171
|
+
border: "1px dotted black",
|
|
5172
|
+
} })),
|
|
5083
5173
|
index.h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet$4.classes.Dialog, open: states.showNewFormDialog, "onSl-hide": callbacks.onNewFormCancel },
|
|
5084
5174
|
index.h("p", null, text.replaceTaxFormModalBodyText),
|
|
5085
5175
|
index.h("sl-button", { slot: "footer", type: "primary", class: sheet$4.classes.DialogButton, onClick: callbacks.onNewFormClick }, text.newFormButton),
|
|
@@ -5186,15 +5276,15 @@ function getIndirectTaxType(taxInformation) {
|
|
|
5186
5276
|
}
|
|
5187
5277
|
const useTaxAndCashDashboard = (props) => {
|
|
5188
5278
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
5189
|
-
const setStep = index_module.
|
|
5190
|
-
const setContext = index_module.
|
|
5279
|
+
const setStep = index_module.Sn(TAX_CONTEXT_NAMESPACE);
|
|
5280
|
+
const setContext = index_module.Sn(TAX_FORM_CONTEXT_NAMESPACE);
|
|
5191
5281
|
const [showDialog, setShowDialog] = stencilHooks_module.useState(false);
|
|
5192
|
-
const locale = index_module.
|
|
5282
|
+
const locale = index_module.Q();
|
|
5193
5283
|
stencilHooks_module.useEffect(() => {
|
|
5194
5284
|
// Clear override context once on submitted
|
|
5195
5285
|
setContext({});
|
|
5196
5286
|
}, []);
|
|
5197
|
-
const { data, loading, errors: userError, } = index_module.
|
|
5287
|
+
const { data, loading, errors: userError, } = index_module.qn(USER_QUERY_NAMESPACE);
|
|
5198
5288
|
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;
|
|
5199
5289
|
const documentType = publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType;
|
|
5200
5290
|
const submissionDate = (_c = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _c === void 0 ? void 0 : _c.dateCreated;
|
|
@@ -5313,6 +5403,18 @@ const TaxAndCashDashboard = class {
|
|
|
5313
5403
|
* @uiName Inactive W-8 error message description
|
|
5314
5404
|
*/
|
|
5315
5405
|
this.taxAlertNotActiveMessageW8 = "Your tax form may have expired or has personal information that doesn’t match your profile. Please submit a new {documentType} form.";
|
|
5406
|
+
/**
|
|
5407
|
+
* Part of the alert displayed at the top of the page.
|
|
5408
|
+
*
|
|
5409
|
+
* @uiName Verify identity warning message header
|
|
5410
|
+
*/
|
|
5411
|
+
this.verifyIdentityAlertHeader = "Verify your identity";
|
|
5412
|
+
/**
|
|
5413
|
+
* Part of the alert displayed at the top of the page.
|
|
5414
|
+
*
|
|
5415
|
+
* @uiName Verify identity warning message description
|
|
5416
|
+
*/
|
|
5417
|
+
this.verifyIdentityAlertMessage = "Complete your verification to start receiving your cash rewards. It should only take a few minutes verify.";
|
|
5316
5418
|
/**
|
|
5317
5419
|
* Additional text displayed next to the tax form's status badge.
|
|
5318
5420
|
*
|
|
@@ -5513,6 +5615,10 @@ const TaxAndCashDashboard = class {
|
|
|
5513
5615
|
* @uiName Cancel button label
|
|
5514
5616
|
*/
|
|
5515
5617
|
this.cancelButton = "Cancel";
|
|
5618
|
+
/**
|
|
5619
|
+
* @uiName Verify button label
|
|
5620
|
+
*/
|
|
5621
|
+
this.verifyIdentityButton = "Start Verification";
|
|
5516
5622
|
stencilHooks_module.h$1(this);
|
|
5517
5623
|
}
|
|
5518
5624
|
disconnectedCallback() { }
|
|
@@ -6613,7 +6719,7 @@ const style$6 = {
|
|
|
6613
6719
|
},
|
|
6614
6720
|
PhoneInputsSection: {
|
|
6615
6721
|
display: "flex",
|
|
6616
|
-
alignItems: "flex-
|
|
6722
|
+
alignItems: "flex-end",
|
|
6617
6723
|
flexDirection: "column",
|
|
6618
6724
|
gap: "4px",
|
|
6619
6725
|
"& p": {
|
|
@@ -6624,7 +6730,7 @@ const style$6 = {
|
|
|
6624
6730
|
},
|
|
6625
6731
|
PhoneInputsContainer: {
|
|
6626
6732
|
display: "flex",
|
|
6627
|
-
alignItems: "flex-
|
|
6733
|
+
alignItems: "flex-end",
|
|
6628
6734
|
gap: "4px",
|
|
6629
6735
|
width: "100%",
|
|
6630
6736
|
"& #phoneNumber": {
|
|
@@ -6831,12 +6937,12 @@ function useUserInfoForm(props) {
|
|
|
6831
6937
|
const currencyRef = stencilHooks_module.useRef(undefined);
|
|
6832
6938
|
const phoneCountryRef = stencilHooks_module.useRef(undefined);
|
|
6833
6939
|
const formRef = stencilHooks_module.useRef(null);
|
|
6834
|
-
const context = index_module.
|
|
6835
|
-
const countries = index_module.
|
|
6836
|
-
const [step, setStep] = index_module.
|
|
6837
|
-
const [userFormContext, setUserFormContext] = index_module.
|
|
6838
|
-
const { data, loading, errors: userError, } = index_module.
|
|
6839
|
-
const _currencies = index_module.
|
|
6940
|
+
const context = index_module.Dn(TAX_FORM_CONTEXT_NAMESPACE);
|
|
6941
|
+
const countries = index_module.Dn(SORTED_COUNTRIES_NAMESPACE);
|
|
6942
|
+
const [step, setStep] = index_module.Mn(TAX_CONTEXT_NAMESPACE);
|
|
6943
|
+
const [userFormContext, setUserFormContext] = index_module.Mn(USER_FORM_CONTEXT_NAMESPACE);
|
|
6944
|
+
const { data, loading, errors: userError, } = index_module.qn(USER_QUERY_NAMESPACE);
|
|
6945
|
+
const _currencies = index_module.Dn(CURRENCIES_NAMESPACE);
|
|
6840
6946
|
const currencies = stencilHooks_module.useMemo(() => [...(_currencies || [])].sort((a, b) => a.displayName.localeCompare(b.displayName)), [_currencies]);
|
|
6841
6947
|
const [countrySearch, setCountrySearch] = stencilHooks_module.useState("");
|
|
6842
6948
|
const [phoneCountrySearch, setPhoneCountrySearch] = stencilHooks_module.useState("");
|
|
@@ -7197,7 +7303,7 @@ const TaxForm = class {
|
|
|
7197
7303
|
}
|
|
7198
7304
|
};
|
|
7199
7305
|
function useDemoUserInfoForm(props) {
|
|
7200
|
-
const setStep = index_module.
|
|
7306
|
+
const setStep = index_module.Sn(TAX_CONTEXT_NAMESPACE);
|
|
7201
7307
|
return cjs.cjs({
|
|
7202
7308
|
setStep,
|
|
7203
7309
|
onSubmit: () => {
|