@saasquatch/mint-components 1.12.0-2 → 1.12.0-21
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-13173901.js → ShadowViewAddon-040cffad.js} +38 -36
- package/dist/cjs/extractProps-fd93ba62.js +21 -0
- package/dist/cjs/{global-e4ebdbcc.js → global-c3637175.js} +10 -161
- package/dist/cjs/{index.module-236d0403.js → index.module-b8d9d0ba.js} +228 -1392
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{luxon-20eafbd9.js → luxon-05098e19.js} +1 -1
- package/dist/cjs/mint-components.cjs.js +4 -4
- package/dist/cjs/{mockRewardData-3c470512.js → mockRewardData-4258e067.js} +1 -1
- package/dist/cjs/{re-render-5de6631a.js → re-render-5bde3d2e.js} +2 -2
- package/dist/cjs/sqm-asset-card.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-banking-info-form_16.cjs.entry.js → sqm-banking-info-form_17.cjs.entry.js} +1175 -548
- package/dist/cjs/sqm-big-stat_39.cjs.entry.js +247 -127
- package/dist/cjs/sqm-close-button.cjs.entry.js +3 -3
- package/dist/cjs/sqm-context-router.cjs.entry.js +3 -3
- package/dist/cjs/sqm-email-verification.cjs.entry.js +150 -20
- package/dist/cjs/sqm-empty_4.cjs.entry.js +7 -7
- package/dist/cjs/sqm-form-message.cjs.entry.js +2 -2
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +3 -3
- package/dist/cjs/sqm-header-logo.cjs.entry.js +2 -2
- package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +6 -6
- package/dist/cjs/{sqm-invoice-table-view-dbba9bb4.js → sqm-invoice-table-view-4fcf021f.js} +155 -4
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +8 -9
- package/dist/cjs/sqm-logout-current-user.cjs.entry.js +7 -8
- package/dist/cjs/{sqm-navigation-sidebar-item-view-fc865ecf.js → sqm-navigation-sidebar-item-view-a2135064.js} +1 -1
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +4 -4
- 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 +3 -3
- package/dist/cjs/{sqm-portal-email-verification-view-4bc2760b.js → sqm-portal-email-verification-view-050dbe0f.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +5 -5
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +4 -4
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-portal-profile-view-cbab7c80.js → sqm-portal-profile-view-d97086bc.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +11 -12
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +3 -3
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +6 -7
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +4 -4
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +3 -3
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +16 -17
- package/dist/cjs/sqm-referred-registration.cjs.entry.js +6 -6
- package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +2 -2
- package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +4 -4
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +61 -62
- package/dist/cjs/sqm-scroll.cjs.entry.js +2 -2
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +117 -48
- package/dist/cjs/sqm-tab.cjs.entry.js +4 -4
- package/dist/cjs/sqm-tabs.cjs.entry.js +5 -5
- package/dist/cjs/sqm-text-span.cjs.entry.js +2 -2
- package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +113 -0
- package/dist/cjs/sqm-widget-verification.cjs.entry.js +183 -107
- package/dist/cjs/{stencil-hooks.module-a5a04d8a.js → stencil-hooks.module-72742a0b.js} +4 -1
- package/dist/cjs/{useChildElements-23beb180.js → useChildElements-410d2435.js} +2 -2
- package/dist/cjs/{useInstantAccessRegistration-7c125c00.js → useInstantAccessRegistration-ccf81eae.js} +3 -3
- package/dist/cjs/usePayoutStatus-8f924372.js +1045 -0
- package/dist/cjs/{useReferralTable-54d0ba70.js → useReferralTable-824ac152.js} +13 -14
- package/dist/cjs/{useRegistrationFormState-e7e820d0.js → useRegistrationFormState-f9ce55be.js} +2 -2
- package/dist/cjs/useVerificationEmail-2eb28c2a.js +173 -0
- package/dist/cjs/{utilities-ac5b5f2c.js → utilities-f7de6c04.js} +2 -2
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/sqm-big-stat/useBigStat.js +6 -3
- package/dist/collection/components/sqm-payout-button-scroll/PayoutButtonScroll.stories.js +7 -0
- package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll-view.js +2 -1
- package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll.js +5 -1
- package/dist/collection/components/sqm-payout-button-scroll/usePayoutButton.js +3 -10
- package/dist/collection/components/sqm-referral-table/ReferralTable.stories.js +7 -1
- package/dist/collection/components/sqm-referral-table/ReferralTableRewardsCell.stories.js +16 -4
- package/dist/collection/components/sqm-rewards-table/RewardsTableCell.stories.js +7 -12
- package/dist/collection/components/sqm-text/sqm-text.js +1 -1
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/WidgetCodeVerification.stories.js +7 -0
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +2 -2
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.js +30 -7
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/useCodeVerification.js +32 -26
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/WidgetEmailVerification.stories.js +22 -6
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +10 -6
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.js +37 -10
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/useEmailVerification.js +21 -44
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-controller.js +120 -0
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +579 -118
- package/dist/collection/components/sqm-widget-verification/useVerificationEmail.js +169 -0
- package/dist/collection/components/tax-and-cash/BankingForm.stories.js +19 -0
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +149 -3
- package/dist/collection/components/tax-and-cash/eventKeys.js +1 -0
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +12 -2
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +128 -14
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +15 -1
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.js +0 -1
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +12 -2
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +31 -6
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +3 -0
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +26 -8
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +33 -8
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +3 -0
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/PayoutDetailsCard.stories.js +0 -7
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card-view.js +0 -5
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js +0 -56
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.js +7 -1
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +92 -9
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +269 -6
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +44 -18
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/data.js +6 -0
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +55 -22
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +138 -9
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +283 -17
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +17 -2
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +19 -9
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +31 -6
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +16 -11
- package/dist/collection/components/tax-and-cash/useVeriffApp.js +64 -0
- package/dist/esm/{ShadowViewAddon-72e231a5.js → ShadowViewAddon-69b61037.js} +12 -10
- package/dist/esm/extractProps-ae1afbb3.js +19 -0
- package/dist/esm/{global-adae7650.js → global-6306a9b8.js} +10 -161
- package/dist/esm/{index.module-c0eb7dc2.js → index.module-6c840c4e.js} +222 -1389
- package/dist/esm/{keys-a1496e39.js → keys-406491dc.js} +1 -1
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{luxon-63e24900.js → luxon-7600be8d.js} +1 -1
- package/dist/esm/mint-components.js +4 -4
- package/dist/esm/{mockRewardData-e6b763d1.js → mockRewardData-0eb6e778.js} +1 -1
- package/dist/esm/{re-render-5882a144.js → re-render-1bcfd0de.js} +2 -2
- package/dist/esm/sqm-asset-card.entry.js +2 -2
- package/dist/esm/{sqm-banking-info-form_16.entry.js → sqm-banking-info-form_17.entry.js} +835 -209
- package/dist/esm/sqm-big-stat_39.entry.js +192 -72
- package/dist/esm/sqm-close-button.entry.js +2 -2
- package/dist/esm/sqm-context-router.entry.js +2 -2
- package/dist/esm/sqm-email-verification.entry.js +148 -18
- package/dist/esm/sqm-empty_4.entry.js +4 -4
- package/dist/esm/sqm-form-message.entry.js +1 -1
- package/dist/esm/sqm-graphql-client-provider.entry.js +2 -2
- package/dist/esm/sqm-header-logo.entry.js +1 -1
- package/dist/esm/sqm-instant-access-registration.entry.js +5 -5
- package/dist/esm/{sqm-invoice-table-view-663674f2.js → sqm-invoice-table-view-b3127605.js} +155 -4
- package/dist/esm/sqm-leaderboard-rank.entry.js +3 -4
- package/dist/esm/sqm-logout-current-user.entry.js +2 -3
- package/dist/esm/{sqm-navigation-sidebar-item-view-4715e546.js → sqm-navigation-sidebar-item-view-f8e78810.js} +1 -1
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +3 -3
- package/dist/esm/sqm-navigation-sidebar.entry.js +2 -2
- package/dist/esm/sqm-password-field.entry.js +3 -3
- package/dist/esm/sqm-popup-container.entry.js +2 -2
- package/dist/esm/{sqm-portal-email-verification-view-598eb9a7.js → sqm-portal-email-verification-view-c6ac5430.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +4 -4
- package/dist/esm/sqm-portal-forgot-password.entry.js +3 -3
- package/dist/esm/sqm-portal-logout.entry.js +2 -2
- package/dist/esm/{sqm-portal-profile-view-a0f6ad48.js → sqm-portal-profile-view-15ddbec8.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +5 -6
- package/dist/esm/sqm-portal-protected-route.entry.js +2 -2
- package/dist/esm/sqm-portal-registration-form.entry.js +4 -5
- package/dist/esm/sqm-portal-reset-password.entry.js +3 -3
- package/dist/esm/sqm-portal-verify-email.entry.js +2 -2
- package/dist/esm/sqm-referral-table_11.entry.js +8 -9
- package/dist/esm/sqm-referred-registration.entry.js +5 -5
- package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +1 -1
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +3 -3
- package/dist/esm/sqm-rewards-table_9.entry.js +8 -9
- package/dist/esm/sqm-scroll.entry.js +1 -1
- package/dist/esm/sqm-stencilbook.entry.js +115 -46
- package/dist/esm/sqm-tab.entry.js +3 -3
- package/dist/esm/sqm-tabs.entry.js +4 -4
- package/dist/esm/sqm-text-span.entry.js +1 -1
- package/dist/esm/sqm-widget-verification-controller.entry.js +109 -0
- package/dist/esm/sqm-widget-verification.entry.js +184 -108
- package/dist/esm/{stencil-hooks.module-3c7f7c90.js → stencil-hooks.module-ac12ca1c.js} +1 -1
- package/dist/esm/{useChildElements-fe94b660.js → useChildElements-fc84e640.js} +2 -2
- package/dist/esm/{useInstantAccessRegistration-670c1b98.js → useInstantAccessRegistration-8b0a4556.js} +3 -3
- package/dist/esm/usePayoutStatus-0bc0380f.js +1039 -0
- package/dist/esm/{useReferralTable-52008143.js → useReferralTable-f6ffa103.js} +4 -5
- package/dist/esm/{useRegistrationFormState-4cfd1a8d.js → useRegistrationFormState-849e27f7.js} +2 -2
- package/dist/esm/useVerificationEmail-2a21d0e3.js +171 -0
- package/dist/esm/{utilities-98445452.js → utilities-443732be.js} +2 -2
- package/dist/esm-es5/ShadowViewAddon-69b61037.js +1 -0
- package/dist/esm-es5/extractProps-ae1afbb3.js +1 -0
- package/dist/esm-es5/global-6306a9b8.js +285 -0
- package/dist/esm-es5/index.module-6c840c4e.js +1 -0
- package/dist/esm-es5/{keys-a1496e39.js → keys-406491dc.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{luxon-63e24900.js → luxon-7600be8d.js} +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/{mockRewardData-e6b763d1.js → mockRewardData-0eb6e778.js} +1 -1
- package/dist/esm-es5/{re-render-5882a144.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_17.entry.js +1 -0
- package/dist/esm-es5/sqm-big-stat_39.entry.js +1 -1
- package/dist/esm-es5/sqm-close-button.entry.js +1 -1
- package/dist/esm-es5/sqm-context-router.entry.js +1 -1
- package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
- package/dist/esm-es5/sqm-form-message.entry.js +1 -1
- package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm-es5/sqm-header-logo.entry.js +1 -1
- package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
- package/dist/esm-es5/sqm-invoice-table-view-b3127605.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-4715e546.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-598eb9a7.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.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-a0f6ad48.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.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-referred-registration.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm-es5/sqm-scroll.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-tab.entry.js +1 -1
- package/dist/esm-es5/sqm-tabs.entry.js +1 -1
- package/dist/esm-es5/sqm-text-span.entry.js +1 -1
- package/dist/esm-es5/sqm-widget-verification-controller.entry.js +1 -0
- package/dist/esm-es5/sqm-widget-verification.entry.js +1 -1
- package/dist/esm-es5/{stencil-hooks.module-3c7f7c90.js → stencil-hooks.module-ac12ca1c.js} +1 -1
- package/dist/esm-es5/useChildElements-fc84e640.js +1 -0
- package/dist/esm-es5/{useInstantAccessRegistration-670c1b98.js → useInstantAccessRegistration-8b0a4556.js} +1 -1
- package/dist/esm-es5/usePayoutStatus-0bc0380f.js +6 -0
- package/dist/esm-es5/useReferralTable-f6ffa103.js +1 -0
- package/dist/esm-es5/useRegistrationFormState-849e27f7.js +1 -0
- package/dist/esm-es5/useVerificationEmail-2a21d0e3.js +1 -0
- package/dist/esm-es5/{utilities-98445452.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-0ecb3019.js → p-0121e044.js} +1 -1
- package/dist/mint-components/p-012daf3c.entry.js +1 -0
- package/dist/mint-components/p-021ccc29.entry.js +25 -0
- package/dist/mint-components/{p-1e40967f.entry.js → p-03dbe2ce.entry.js} +1 -1
- package/dist/mint-components/{p-65a449de.js → p-04348a9b.js} +1 -1
- package/dist/mint-components/{p-14488d1c.system.entry.js → p-04ced592.system.entry.js} +1 -1
- package/dist/mint-components/{p-78a831e0.system.entry.js → p-0527d90b.system.entry.js} +1 -1
- package/dist/mint-components/p-0893073b.entry.js +1 -0
- package/dist/mint-components/p-0a94fe9f.system.entry.js +1 -0
- package/dist/mint-components/p-0c9ad5f3.system.entry.js +1 -0
- package/dist/mint-components/p-11d1b212.js +1 -0
- package/dist/mint-components/p-156e37c2.system.entry.js +1 -0
- package/dist/mint-components/{p-cdd04337.entry.js → p-178d2d2e.entry.js} +1 -1
- package/dist/mint-components/{p-ee328054.entry.js → p-1b861be5.entry.js} +1 -1
- package/dist/mint-components/{p-4209cd94.js → p-1d27da33.js} +4 -4
- package/dist/mint-components/{p-5a2fd8e0.system.entry.js → p-1f7d7524.system.entry.js} +1 -1
- package/dist/mint-components/{p-f0fba496.system.entry.js → p-22425c71.system.entry.js} +1 -1
- package/dist/mint-components/{p-9223640e.js → p-251e7567.js} +1 -1
- package/dist/mint-components/p-26468242.js +1 -0
- package/dist/mint-components/{p-1602bf01.js → p-2816bf6a.js} +1 -1
- package/dist/mint-components/p-2868f475.entry.js +1 -0
- package/dist/mint-components/{p-0979f82e.system.js → p-2a414b2e.system.js} +2 -2
- package/dist/mint-components/p-2c342de3.system.entry.js +1 -0
- package/dist/mint-components/p-2e209454.entry.js +16 -0
- package/dist/mint-components/p-3007fb7d.system.entry.js +1 -0
- package/dist/mint-components/p-36e9296e.system.entry.js +1 -0
- package/dist/mint-components/{p-cb45d0a8.system.js → p-370a1a73.system.js} +1 -1
- package/dist/mint-components/p-38c7775a.js +1 -0
- package/dist/mint-components/p-3925bcd6.entry.js +13 -0
- package/dist/mint-components/{p-45d0b48a.system.entry.js → p-3e7ec0f3.system.entry.js} +1 -1
- package/dist/mint-components/{p-423821b9.system.js → p-43621f12.system.js} +1 -1
- package/dist/mint-components/p-478a3755.entry.js +9 -0
- package/dist/mint-components/p-47b47e3b.js +31 -0
- package/dist/mint-components/{p-f338ef55.system.js → p-4babe350.system.js} +1 -1
- package/dist/mint-components/{p-34a87e67.system.js → p-4e373c3d.system.js} +1 -1
- package/dist/mint-components/{p-ab89b44a.system.js → p-4eae91a9.system.js} +1 -1
- package/dist/mint-components/{p-ab7322f0.system.entry.js → p-51d53165.system.entry.js} +1 -1
- package/dist/mint-components/{p-4c0b7768.entry.js → p-5291891c.entry.js} +3 -3
- package/dist/mint-components/{p-4c9b6fbe.system.js → p-57dd28bd.system.js} +1 -1
- package/dist/mint-components/{p-34dab223.system.entry.js → p-59818690.system.entry.js} +1 -1
- package/dist/mint-components/{p-00ec17d4.system.js → p-5becb2ff.system.js} +1 -1
- package/dist/mint-components/{p-a1f0d8ba.system.entry.js → p-5fba1a04.system.entry.js} +1 -1
- package/dist/mint-components/p-64491210.system.entry.js +1 -0
- package/dist/mint-components/{p-def70672.js → p-68747d88.js} +1 -1
- package/dist/mint-components/{p-95af445c.system.entry.js → p-6afb4f48.system.entry.js} +1 -1
- package/dist/mint-components/{p-cafebf8a.entry.js → p-6c928c7d.entry.js} +1 -1
- package/dist/mint-components/{p-70886c65.system.entry.js → p-70af9ba2.system.entry.js} +1 -1
- package/dist/mint-components/{p-657b290b.entry.js → p-76392386.entry.js} +1 -1
- package/dist/mint-components/p-7dd1ff31.system.entry.js +1 -0
- package/dist/mint-components/{p-d0c4f3bf.system.entry.js → p-83c9f37b.system.entry.js} +1 -1
- package/dist/mint-components/{p-cdcd825e.entry.js → p-84b25a46.entry.js} +1 -1
- package/dist/mint-components/{p-14beec1b.system.entry.js → p-88aac6a9.system.entry.js} +1 -1
- package/dist/mint-components/{p-45d6cde6.system.entry.js → p-88bf51b7.system.entry.js} +1 -1
- package/dist/mint-components/p-8d554a89.system.js +1 -0
- package/dist/mint-components/p-93576222.system.js +1 -0
- package/dist/mint-components/p-9379ee08.js +48 -0
- package/dist/mint-components/{p-d2a925d5.entry.js → p-94454880.entry.js} +1 -1
- package/dist/mint-components/{p-3ba349a3.entry.js → p-947fe79b.entry.js} +1 -1
- package/dist/mint-components/p-95bff95a.system.entry.js +1 -0
- package/dist/mint-components/p-99c15c5e.entry.js +1 -0
- package/dist/mint-components/p-9bd417fd.entry.js +1 -0
- package/dist/mint-components/{p-c293f586.system.entry.js → p-9cdbd1ac.system.entry.js} +1 -1
- package/dist/mint-components/{p-56b37aeb.entry.js → p-9d34f4f0.entry.js} +3 -3
- package/dist/mint-components/{p-64acc813.entry.js → p-9e0230c3.entry.js} +1 -1
- package/dist/mint-components/{p-8ccb4267.js → p-9eae245f.js} +30 -27
- package/dist/mint-components/p-a4282d02.system.entry.js +1 -0
- package/dist/mint-components/{p-a2e1af83.entry.js → p-a45b03d2.entry.js} +1 -1
- package/dist/mint-components/{p-15e01e7a.entry.js → p-a85f57bb.entry.js} +1 -1
- package/dist/mint-components/p-a8645c1b.system.js +1 -0
- package/dist/mint-components/p-a8c28561.system.js +1 -0
- package/dist/mint-components/p-a954c299.entry.js +205 -0
- package/dist/mint-components/{p-dce3d296.system.js → p-ac51940e.system.js} +1 -1
- package/dist/mint-components/{p-d39da925.entry.js → p-b1e8a802.entry.js} +1 -1
- package/dist/mint-components/p-b3b5b4b7.system.entry.js +1 -0
- package/dist/mint-components/{p-3da2b3cf.system.entry.js → p-bc826117.system.entry.js} +1 -1
- package/dist/mint-components/p-bd1372d2.system.js +6 -0
- package/dist/mint-components/p-bdd6bb13.js +1 -0
- package/dist/mint-components/{p-3c46b3de.system.entry.js → p-be1ae1ed.system.entry.js} +1 -1
- package/dist/mint-components/{p-cadb8dba.entry.js → p-bee1e573.entry.js} +1 -1
- package/dist/mint-components/{p-18cd88c4.system.entry.js → p-c1f4fb6d.system.entry.js} +1 -1
- package/dist/mint-components/p-c1fa5e04.system.js +1 -0
- package/dist/mint-components/{p-7507d72b.js → p-c3b37bbf.js} +1 -1
- package/dist/mint-components/{p-ac69b460.system.entry.js → p-c3babfa4.system.entry.js} +1 -1
- package/dist/mint-components/p-c8878e79.entry.js +1 -0
- 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-cb433855.system.entry.js +1 -0
- package/dist/mint-components/{p-6a70d2d6.entry.js → p-cd200c95.entry.js} +1 -1
- package/dist/mint-components/{p-06c561ea.system.js → p-cd44de66.system.js} +1 -1
- package/dist/mint-components/{p-e5299352.system.js → p-ce9e7c98.system.js} +1 -1
- package/dist/mint-components/p-d35d8c06.entry.js +11 -0
- package/dist/mint-components/p-d468925f.entry.js +1 -0
- package/dist/mint-components/p-d4877a65.system.entry.js +1 -0
- package/dist/mint-components/{p-0db003f7.js → p-d83b0cf3.js} +153 -153
- package/dist/mint-components/{p-5c602e84.entry.js → p-dd0d79bf.entry.js} +1 -1
- package/dist/mint-components/p-def516b8.system.js +1 -0
- package/dist/mint-components/p-e01ac27c.system.js +1 -0
- package/dist/mint-components/{p-611a30f0.js → p-e0e7635a.js} +1 -1
- package/dist/mint-components/p-e12d3414.system.entry.js +1 -0
- package/dist/mint-components/{p-816fb64f.system.entry.js → p-ead27698.system.entry.js} +1 -1
- package/dist/mint-components/{p-7ab14d4b.system.entry.js → p-f0806232.system.entry.js} +1 -1
- package/dist/mint-components/p-f1184442.js +1 -0
- package/dist/mint-components/p-f196d71a.entry.js +241 -0
- package/dist/mint-components/{p-48704504.js → p-f3053c61.js} +1 -1
- package/dist/mint-components/p-f36e33ff.entry.js +13 -0
- package/dist/mint-components/p-f450654b.system.entry.js +1 -0
- package/dist/mint-components/p-f4cbbe47.entry.js +1 -0
- package/dist/mint-components/p-f531a5c9.system.entry.js +1 -0
- package/dist/mint-components/{p-b14a77e8.system.entry.js → p-f56348dc.system.entry.js} +1 -1
- package/dist/mint-components/p-f655a7df.js +1 -0
- package/dist/mint-components/{p-79097c07.entry.js → p-fbdf0738.entry.js} +1 -1
- package/dist/mint-components/{p-fda3d0ca.system.js → p-fc422446.system.js} +22 -22
- package/dist/mint-components/p-fd21ae8f.entry.js +1 -0
- package/dist/mint-components/{p-1b24bb52.js → p-fd2c5407.js} +1 -1
- package/dist/types/components/sqm-payout-button-scroll/PayoutButtonScroll.stories.d.ts +1 -0
- package/dist/types/components/sqm-referral-table/ReferralTableRewardsCell.stories.d.ts +1 -0
- package/dist/types/components/sqm-rewards-table/RewardsTableCell.stories.d.ts +1 -0
- package/dist/types/components/sqm-widget-verification/sqm-code-verification/WidgetCodeVerification.stories.d.ts +1 -0
- package/dist/types/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.d.ts +1 -0
- package/dist/types/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.d.ts +4 -0
- package/dist/types/components/sqm-widget-verification/sqm-code-verification/useCodeVerification.d.ts +2 -1
- package/dist/types/components/sqm-widget-verification/sqm-email-verification/WidgetEmailVerification.stories.d.ts +1 -0
- package/dist/types/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.d.ts +1 -0
- package/dist/types/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.d.ts +4 -0
- package/dist/types/components/sqm-widget-verification/sqm-email-verification/useEmailVerification.d.ts +0 -6
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification-controller.d.ts +12 -0
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +89 -1
- package/dist/types/components/sqm-widget-verification/useVerificationEmail.d.ts +15 -0
- package/dist/types/components/tax-and-cash/BankingForm.stories.d.ts +1 -0
- package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +5 -0
- package/dist/types/components/tax-and-cash/eventKeys.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.d.ts +7 -0
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.d.ts +13 -0
- package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.d.ts +4 -0
- package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.d.ts +4 -0
- package/dist/types/components/tax-and-cash/sqm-payout-details-card/PayoutDetailsCard.stories.d.ts +0 -1
- package/dist/types/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card-view.d.ts +0 -4
- package/dist/types/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.d.ts +1 -16
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.d.ts +4 -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 +46 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +12 -1
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/data.d.ts +6 -0
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/extractProps.d.ts +5 -1
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +15 -3
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +17 -2
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +47 -2
- package/dist/types/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.d.ts +4 -0
- package/dist/types/components/tax-and-cash/useVeriffApp.d.ts +6 -0
- package/dist/types/components.d.ts +481 -83
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +2 -1
- package/dist/cjs/index-56d1fa5b.js +0 -2227
- package/dist/cjs/sqm-code-verification.cjs.entry.js +0 -356
- package/dist/cjs/sqm-widget-verification-internal.cjs.entry.js +0 -33
- package/dist/cjs/useEmailVerification-33465f36.js +0 -155
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-internal.js +0 -27
- package/dist/collection/components/sqm-widget-verification/useWidgetVerification.js +0 -3
- package/dist/esm/index-0c7b14c5.js +0 -2225
- package/dist/esm/sqm-code-verification.entry.js +0 -352
- package/dist/esm/sqm-widget-verification-internal.entry.js +0 -29
- package/dist/esm/useEmailVerification-8f2dc2bd.js +0 -152
- package/dist/esm-es5/ShadowViewAddon-72e231a5.js +0 -1
- package/dist/esm-es5/global-adae7650.js +0 -285
- package/dist/esm-es5/index-0c7b14c5.js +0 -1
- package/dist/esm-es5/index.module-c0eb7dc2.js +0 -53
- package/dist/esm-es5/sqm-banking-info-form_16.entry.js +0 -1
- package/dist/esm-es5/sqm-code-verification.entry.js +0 -1
- package/dist/esm-es5/sqm-invoice-table-view-663674f2.js +0 -1
- package/dist/esm-es5/sqm-widget-verification-internal.entry.js +0 -1
- package/dist/esm-es5/useChildElements-fe94b660.js +0 -1
- package/dist/esm-es5/useEmailVerification-8f2dc2bd.js +0 -1
- package/dist/esm-es5/useReferralTable-52008143.js +0 -1
- package/dist/esm-es5/useRegistrationFormState-4cfd1a8d.js +0 -1
- package/dist/mint-components/p-0078bc76.system.js +0 -53
- package/dist/mint-components/p-18399da0.system.entry.js +0 -1
- package/dist/mint-components/p-1f02e20b.entry.js +0 -1
- package/dist/mint-components/p-253c87e1.system.entry.js +0 -1
- package/dist/mint-components/p-25a70095.system.entry.js +0 -1
- package/dist/mint-components/p-2632464d.entry.js +0 -1
- package/dist/mint-components/p-286190c4.system.entry.js +0 -1
- package/dist/mint-components/p-414b3b6c.system.entry.js +0 -1
- package/dist/mint-components/p-4185f6f5.system.entry.js +0 -1
- package/dist/mint-components/p-4d060f15.js +0 -1
- package/dist/mint-components/p-52241ba9.system.js +0 -1
- package/dist/mint-components/p-556753b2.js +0 -42
- package/dist/mint-components/p-55dcb6ff.system.js +0 -1
- package/dist/mint-components/p-65de8fb2.js +0 -1
- package/dist/mint-components/p-6cae44d7.js +0 -1
- package/dist/mint-components/p-6eede6e5.system.entry.js +0 -1
- package/dist/mint-components/p-6fbfd683.js +0 -1
- package/dist/mint-components/p-78c1bd77.system.js +0 -1
- package/dist/mint-components/p-7c4c727c.system.entry.js +0 -1
- package/dist/mint-components/p-7e5f0292.system.entry.js +0 -1
- package/dist/mint-components/p-832eba3a.entry.js +0 -1
- package/dist/mint-components/p-858a87ce.entry.js +0 -1
- package/dist/mint-components/p-89669879.system.js +0 -1
- package/dist/mint-components/p-8b7d2f44.entry.js +0 -1
- package/dist/mint-components/p-8d696fc9.entry.js +0 -189
- package/dist/mint-components/p-8da20810.entry.js +0 -240
- package/dist/mint-components/p-8defb972.system.entry.js +0 -1
- package/dist/mint-components/p-99a09fab.entry.js +0 -9
- package/dist/mint-components/p-9cdaa099.entry.js +0 -1
- package/dist/mint-components/p-a80c8f5c.system.js +0 -1
- package/dist/mint-components/p-a9487844.system.entry.js +0 -1
- package/dist/mint-components/p-b28df069.js +0 -1
- package/dist/mint-components/p-b4771476.entry.js +0 -1
- package/dist/mint-components/p-c9ca8473.system.entry.js +0 -1
- package/dist/mint-components/p-cac64545.system.entry.js +0 -1
- package/dist/mint-components/p-d3293ac3.entry.js +0 -11
- package/dist/mint-components/p-d4138847.system.entry.js +0 -1
- package/dist/mint-components/p-d70bfe30.entry.js +0 -8
- package/dist/mint-components/p-d7b701a7.entry.js +0 -1
- package/dist/mint-components/p-d90ef1da.system.entry.js +0 -1
- package/dist/mint-components/p-e05ff098.system.js +0 -1
- package/dist/mint-components/p-e4c3817a.system.entry.js +0 -1
- package/dist/mint-components/p-e7797040.entry.js +0 -1
- package/dist/mint-components/p-e810da97.entry.js +0 -1
- package/dist/mint-components/p-e82eec3c.entry.js +0 -13
- package/dist/mint-components/p-e8bfd924.system.entry.js +0 -1
- package/dist/mint-components/p-e8fcaaa2.entry.js +0 -13
- package/dist/mint-components/p-ef49d744.entry.js +0 -1
- package/dist/mint-components/p-f5f0fc0e.entry.js +0 -1
- package/dist/mint-components/p-faf019cf.system.js +0 -1
- package/dist/mint-components/p-fcb224ab.js +0 -25
- package/dist/mint-components/p-fe8e1071.entry.js +0 -1
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification-internal.d.ts +0 -5
- package/dist/types/components/sqm-widget-verification/useWidgetVerification.d.ts +0 -1
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { useQuery } from "@saasquatch/component-boilerplate";
|
|
2
|
-
import {
|
|
1
|
+
import { getEnvironmentSDK, useQuery } from "@saasquatch/component-boilerplate";
|
|
2
|
+
import { useEffect, useState } from "@saasquatch/stencil-hooks";
|
|
3
3
|
import { gql } from "graphql-request";
|
|
4
|
+
import { TAX_FORM_UPDATED_EVENT_KEY } from "../eventKeys";
|
|
5
|
+
import { useVeriffApp, VERIFF_COMPLETE_EVENT_KEY } from "../useVeriffApp";
|
|
4
6
|
const GET_USER_STATUS = gql `
|
|
5
7
|
query getUserStatus {
|
|
6
8
|
user: viewer {
|
|
@@ -12,6 +14,7 @@ const GET_USER_STATUS = gql `
|
|
|
12
14
|
id
|
|
13
15
|
payoutsAccount {
|
|
14
16
|
hold
|
|
17
|
+
holdReasons
|
|
15
18
|
}
|
|
16
19
|
}
|
|
17
20
|
}
|
|
@@ -19,32 +22,55 @@ const GET_USER_STATUS = gql `
|
|
|
19
22
|
}
|
|
20
23
|
}
|
|
21
24
|
`;
|
|
25
|
+
export function getStatus(data) {
|
|
26
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
27
|
+
const account = (_b = (_a = data.user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) === null || _b === void 0 ? void 0 : _b.payoutsAccount;
|
|
28
|
+
if (!((_d = (_c = data.user) === null || _c === void 0 ? void 0 : _c.impactConnection) === null || _d === void 0 ? void 0 : _d.connected) || !account)
|
|
29
|
+
return "INFORMATION_REQUIRED";
|
|
30
|
+
if ((_e = account.holdReasons) === null || _e === void 0 ? void 0 : _e.includes("IDV_CHECK_REQUIRED"))
|
|
31
|
+
return "VERIFICATION:REQUIRED";
|
|
32
|
+
if ((_f = account.holdReasons) === null || _f === void 0 ? void 0 : _f.includes("IDV_CHECK_REQUIRED_INTERNAL"))
|
|
33
|
+
return "VERIFICATION:INTERNAL";
|
|
34
|
+
if ((_g = account.holdReasons) === null || _g === void 0 ? void 0 : _g.includes("IDV_CHECK_REVIEW_INTERNAL"))
|
|
35
|
+
return "VERIFICATION:REVIEW";
|
|
36
|
+
if ((_h = account.holdReasons) === null || _h === void 0 ? void 0 : _h.includes("IDV_CHECK_FAILED_INTERNAL"))
|
|
37
|
+
return "VERIFICATION:FAILED";
|
|
38
|
+
if (account.hold)
|
|
39
|
+
return "HOLD";
|
|
40
|
+
return "DONE";
|
|
41
|
+
}
|
|
22
42
|
export function usePayoutStatus(props) {
|
|
43
|
+
const { type } = getEnvironmentSDK();
|
|
23
44
|
const { loading, data, errors, refetch } = useQuery(GET_USER_STATUS, {});
|
|
45
|
+
const { render, loading: veriffLoading, errors: veriffErrors, } = useVeriffApp();
|
|
24
46
|
const [status, setStatus] = useState(undefined);
|
|
25
47
|
useEffect(() => {
|
|
26
48
|
if (!data)
|
|
27
49
|
return;
|
|
28
|
-
function getStatus(data) {
|
|
29
|
-
var _a, _b;
|
|
30
|
-
const account = (_b = (_a = data.user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) === null || _b === void 0 ? void 0 : _b.payoutsAccount;
|
|
31
|
-
if (!account)
|
|
32
|
-
return "INFORMATION_REQUIRED";
|
|
33
|
-
if (account.hold)
|
|
34
|
-
return "HOLD";
|
|
35
|
-
// @ts-ignore, TODO: add check for account verification
|
|
36
|
-
if (!account.verified)
|
|
37
|
-
return "VERIFICATION_NEEDED";
|
|
38
|
-
return "DONE";
|
|
39
|
-
}
|
|
40
50
|
const s = getStatus(data);
|
|
41
51
|
setStatus(s);
|
|
42
52
|
}, [data]);
|
|
43
53
|
useEffect(() => {
|
|
44
54
|
const cb = () => refetch();
|
|
45
|
-
window.addEventListener(
|
|
46
|
-
|
|
55
|
+
window.addEventListener(TAX_FORM_UPDATED_EVENT_KEY, cb);
|
|
56
|
+
window.addEventListener(VERIFF_COMPLETE_EVENT_KEY, cb);
|
|
57
|
+
return () => {
|
|
58
|
+
window.removeEventListener(TAX_FORM_UPDATED_EVENT_KEY, cb);
|
|
59
|
+
window.removeEventListener(VERIFF_COMPLETE_EVENT_KEY, cb);
|
|
60
|
+
};
|
|
47
61
|
}, []);
|
|
48
|
-
|
|
49
|
-
|
|
62
|
+
return {
|
|
63
|
+
states: {
|
|
64
|
+
loading,
|
|
65
|
+
veriffLoading,
|
|
66
|
+
status,
|
|
67
|
+
error: !!errors,
|
|
68
|
+
},
|
|
69
|
+
data: { type },
|
|
70
|
+
text: props.getTextProps(),
|
|
71
|
+
callbacks: {
|
|
72
|
+
onTermsClick: () => window.open(props.cashPayoutsPageUrl, "_blank").focus(),
|
|
73
|
+
onClick: render,
|
|
74
|
+
},
|
|
75
|
+
};
|
|
50
76
|
}
|
|
@@ -19,6 +19,11 @@ export const GET_USER = gql `
|
|
|
19
19
|
email
|
|
20
20
|
countryCode
|
|
21
21
|
customFields
|
|
22
|
+
managedIdentity {
|
|
23
|
+
uid
|
|
24
|
+
email
|
|
25
|
+
emailVerified
|
|
26
|
+
}
|
|
22
27
|
impactConnection {
|
|
23
28
|
connected
|
|
24
29
|
user {
|
|
@@ -62,6 +67,7 @@ export const GET_USER = gql `
|
|
|
62
67
|
}
|
|
63
68
|
payoutsAccount {
|
|
64
69
|
hold
|
|
70
|
+
holdReasons
|
|
65
71
|
balance
|
|
66
72
|
}
|
|
67
73
|
}
|
|
@@ -116,6 +116,8 @@ export class TaxAndCashMonolith {
|
|
|
116
116
|
* @uiGroup Step 1 Properties
|
|
117
117
|
*/
|
|
118
118
|
this.step1_searchForCurrencyText = "Search for currency..";
|
|
119
|
+
/**
|
|
120
|
+
|
|
119
121
|
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
120
122
|
STEP 2 PROPS:
|
|
121
123
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
@@ -218,7 +220,7 @@ export class TaxAndCashMonolith {
|
|
|
218
220
|
* @uiGroup Step 2 Properties
|
|
219
221
|
* @uiWidget textArea
|
|
220
222
|
*/
|
|
221
|
-
this.step2_cannotChangeInfoAlert = "Changes to your personal and indirect tax information can only be made through our
|
|
223
|
+
this.step2_cannotChangeInfoAlert = "Changes to your personal and indirect tax information can only be made through our {supportLink} after you complete this step. Make sure these are correct before continuing.";
|
|
222
224
|
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
223
225
|
STEP 3 PROPS:
|
|
224
226
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
@@ -291,7 +293,7 @@ export class TaxAndCashMonolith {
|
|
|
291
293
|
* @uiGroup Step 3 Properties
|
|
292
294
|
* @uiWidget textArea
|
|
293
295
|
*/
|
|
294
|
-
this.step3_docusignError = "There was a problem displaying this form. Please refresh the page. If this problem continues, contact
|
|
296
|
+
this.step3_docusignError = "There was a problem displaying this form. Please refresh the page. If this problem continues, contact our {supportLink}.";
|
|
295
297
|
/**
|
|
296
298
|
* @uiName Refresh page button label
|
|
297
299
|
* @uiGroup Step 3 Properties
|
|
@@ -653,7 +655,7 @@ export class TaxAndCashMonolith {
|
|
|
653
655
|
* @uiGroup Dashboard Properties
|
|
654
656
|
* @uiWidget textArea
|
|
655
657
|
*/
|
|
656
|
-
this.dashboard_indirectTaxTooltipSupport = "To make changes to your indirect tax information, please contact
|
|
658
|
+
this.dashboard_indirectTaxTooltipSupport = "To make changes to your indirect tax information, please contact our {supportLink}.";
|
|
657
659
|
/**
|
|
658
660
|
* Displayed to participants who have submitted their indirect tax information.
|
|
659
661
|
*
|
|
@@ -676,7 +678,7 @@ export class TaxAndCashMonolith {
|
|
|
676
678
|
* @uiGroup Dashboard Properties
|
|
677
679
|
* @uiWidget textArea
|
|
678
680
|
*/
|
|
679
|
-
this.dashboard_notRegisteredForTax = "Not registered for indirect tax. If you’ve previously registered with your tax authority, contact
|
|
681
|
+
this.dashboard_notRegisteredForTax = "Not registered for indirect tax. If you’ve previously registered with your tax authority, contact our {supportLink} to add your information to stay tax compliant.";
|
|
680
682
|
/**
|
|
681
683
|
* Displayed to participants registered in Quebec, Canada.
|
|
682
684
|
* @uiName QST indirect tax details
|
|
@@ -748,14 +750,14 @@ export class TaxAndCashMonolith {
|
|
|
748
750
|
* @uiGroup Dashboard Properties
|
|
749
751
|
* @uiWidget textArea
|
|
750
752
|
*/
|
|
751
|
-
this.
|
|
753
|
+
this.payoutHoldAlertHeader = "Your payout is on hold";
|
|
752
754
|
/**
|
|
753
755
|
* Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
|
|
754
756
|
* @uiName Payout error message description
|
|
755
757
|
* @uiGroup Dashboard Properties
|
|
756
758
|
* @uiWidget textArea
|
|
757
759
|
*/
|
|
758
|
-
this.
|
|
760
|
+
this.payoutHoldAlertDescription = "Please contact our {supportLink} or check your inbox for an email from our referral program provider, impact.com.";
|
|
759
761
|
/**
|
|
760
762
|
* Text displayed for existing publishers that do not have saved banking information.
|
|
761
763
|
* @uiName Payout missing information subtext
|
|
@@ -824,7 +826,7 @@ export class TaxAndCashMonolith {
|
|
|
824
826
|
* @uiGroup General Form Properties
|
|
825
827
|
* @uiWidget textArea
|
|
826
828
|
*/
|
|
827
|
-
this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact
|
|
829
|
+
this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact our {supportLink}.";
|
|
828
830
|
/**
|
|
829
831
|
* Displayed under a field that is missing required information.
|
|
830
832
|
* @uiName Empty form field error message
|
|
@@ -871,7 +873,7 @@ export class TaxAndCashMonolith {
|
|
|
871
873
|
* @uiGroup General Form Properties
|
|
872
874
|
* @uiWidget textArea
|
|
873
875
|
*/
|
|
874
|
-
this.isPartnerAlertDescription = "If you don’t recognize this referral program provider or believe this is a mistake, please contact
|
|
876
|
+
this.isPartnerAlertDescription = "If you don’t recognize this referral program provider or believe this is a mistake, please contact our {supportLink} or sign up for this referral program with a different email.";
|
|
875
877
|
/**
|
|
876
878
|
* Placeholder text displayed in the country search dropdown
|
|
877
879
|
* @uiName Country field placeholder text
|
|
@@ -891,13 +893,19 @@ export class TaxAndCashMonolith {
|
|
|
891
893
|
* @uiGroup General Form Properties
|
|
892
894
|
* @uiWidget textArea
|
|
893
895
|
*/
|
|
894
|
-
this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact
|
|
896
|
+
this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact our {supportLink}.";
|
|
895
897
|
/**
|
|
896
898
|
* Displayed at the top of the page on all set up steps.
|
|
897
899
|
* @uiName Page description
|
|
898
900
|
* @uiGroup General Form Properties
|
|
899
901
|
*/
|
|
900
902
|
this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
|
|
903
|
+
/**
|
|
904
|
+
* Link text for contacting support team
|
|
905
|
+
* @uiName Suport link text
|
|
906
|
+
* @uiGroup General Form Properties
|
|
907
|
+
*/
|
|
908
|
+
this.supportLink = "support team";
|
|
901
909
|
withHooks(this);
|
|
902
910
|
}
|
|
903
911
|
disconnectedCallback() { }
|
|
@@ -921,6 +929,7 @@ export class TaxAndCashMonolith {
|
|
|
921
929
|
taxAndPayoutsDescription: props.taxAndPayoutsDescription,
|
|
922
930
|
searchForCountryText: props.searchForCountryText,
|
|
923
931
|
formStep: props.formStep,
|
|
932
|
+
supportLink: props.supportLink,
|
|
924
933
|
};
|
|
925
934
|
}
|
|
926
935
|
render() {
|
|
@@ -1816,7 +1825,7 @@ export class TaxAndCashMonolith {
|
|
|
1816
1825
|
},
|
|
1817
1826
|
"attribute": "step-2_cannot-change-info-alert",
|
|
1818
1827
|
"reflect": false,
|
|
1819
|
-
"defaultValue": "\"Changes to your personal and indirect tax information can only be made through our
|
|
1828
|
+
"defaultValue": "\"Changes to your personal and indirect tax information can only be made through our {supportLink} after you complete this step. Make sure these are correct before continuing.\""
|
|
1820
1829
|
},
|
|
1821
1830
|
"step3_taxForm": {
|
|
1822
1831
|
"type": "string",
|
|
@@ -2098,7 +2107,7 @@ export class TaxAndCashMonolith {
|
|
|
2098
2107
|
},
|
|
2099
2108
|
"attribute": "step-3_docusign-error",
|
|
2100
2109
|
"reflect": false,
|
|
2101
|
-
"defaultValue": "\"There was a problem displaying this form. Please refresh the page. If this problem continues, contact
|
|
2110
|
+
"defaultValue": "\"There was a problem displaying this form. Please refresh the page. If this problem continues, contact our {supportLink}.\""
|
|
2102
2111
|
},
|
|
2103
2112
|
"step3_refreshButton": {
|
|
2104
2113
|
"type": "string",
|
|
@@ -3604,7 +3613,7 @@ export class TaxAndCashMonolith {
|
|
|
3604
3613
|
},
|
|
3605
3614
|
"attribute": "dashboard_indirect-tax-tooltip-support",
|
|
3606
3615
|
"reflect": false,
|
|
3607
|
-
"defaultValue": "\"To make changes to your indirect tax information, please contact
|
|
3616
|
+
"defaultValue": "\"To make changes to your indirect tax information, please contact our {supportLink}.\""
|
|
3608
3617
|
},
|
|
3609
3618
|
"dashboard_indirectTaxDetails": {
|
|
3610
3619
|
"type": "string",
|
|
@@ -3703,7 +3712,7 @@ export class TaxAndCashMonolith {
|
|
|
3703
3712
|
},
|
|
3704
3713
|
"attribute": "dashboard_not-registered-for-tax",
|
|
3705
3714
|
"reflect": false,
|
|
3706
|
-
"defaultValue": "\"Not registered for indirect tax. If you\u2019ve previously registered with your tax authority, contact
|
|
3715
|
+
"defaultValue": "\"Not registered for indirect tax. If you\u2019ve previously registered with your tax authority, contact our {supportLink} to add your information to stay tax compliant.\""
|
|
3707
3716
|
},
|
|
3708
3717
|
"dashboard_qstNumber": {
|
|
3709
3718
|
"type": "string",
|
|
@@ -3972,7 +3981,7 @@ export class TaxAndCashMonolith {
|
|
|
3972
3981
|
"reflect": false,
|
|
3973
3982
|
"defaultValue": "\"Earnings after tax\""
|
|
3974
3983
|
},
|
|
3975
|
-
"
|
|
3984
|
+
"payoutHoldAlertHeader": {
|
|
3976
3985
|
"type": "string",
|
|
3977
3986
|
"mutable": false,
|
|
3978
3987
|
"complexType": {
|
|
@@ -3995,11 +4004,11 @@ export class TaxAndCashMonolith {
|
|
|
3995
4004
|
}],
|
|
3996
4005
|
"text": "Part of the alert displayed at the top of the page when there\u2019s been an issue preventing payouts."
|
|
3997
4006
|
},
|
|
3998
|
-
"attribute": "
|
|
4007
|
+
"attribute": "payout-hold-alert-header",
|
|
3999
4008
|
"reflect": false,
|
|
4000
|
-
"defaultValue": "\"Your payout is on hold
|
|
4009
|
+
"defaultValue": "\"Your payout is on hold\""
|
|
4001
4010
|
},
|
|
4002
|
-
"
|
|
4011
|
+
"payoutHoldAlertDescription": {
|
|
4003
4012
|
"type": "string",
|
|
4004
4013
|
"mutable": false,
|
|
4005
4014
|
"complexType": {
|
|
@@ -4022,9 +4031,9 @@ export class TaxAndCashMonolith {
|
|
|
4022
4031
|
}],
|
|
4023
4032
|
"text": "Part of the alert displayed at the top of the page when there\u2019s been an issue preventing payouts."
|
|
4024
4033
|
},
|
|
4025
|
-
"attribute": "
|
|
4034
|
+
"attribute": "payout-hold-alert-description",
|
|
4026
4035
|
"reflect": false,
|
|
4027
|
-
"defaultValue": "\"
|
|
4036
|
+
"defaultValue": "\"Please contact our {supportLink} or check your inbox for an email from our referral program provider, impact.com.\""
|
|
4028
4037
|
},
|
|
4029
4038
|
"dashboard_payoutMissingInformationText": {
|
|
4030
4039
|
"type": "string",
|
|
@@ -4321,7 +4330,7 @@ export class TaxAndCashMonolith {
|
|
|
4321
4330
|
},
|
|
4322
4331
|
"attribute": "general-error-description",
|
|
4323
4332
|
"reflect": false,
|
|
4324
|
-
"defaultValue": "\"Please review your information and try again. If this problem continues, contact
|
|
4333
|
+
"defaultValue": "\"Please review your information and try again. If this problem continues, contact our {supportLink}.\""
|
|
4325
4334
|
},
|
|
4326
4335
|
"fieldRequiredError": {
|
|
4327
4336
|
"type": "string",
|
|
@@ -4519,7 +4528,7 @@ export class TaxAndCashMonolith {
|
|
|
4519
4528
|
},
|
|
4520
4529
|
"attribute": "is-partner-alert-description",
|
|
4521
4530
|
"reflect": false,
|
|
4522
|
-
"defaultValue": "\"If you don\u2019t recognize this referral program provider or believe this is a mistake, please contact
|
|
4531
|
+
"defaultValue": "\"If you don\u2019t recognize this referral program provider or believe this is a mistake, please contact our {supportLink} or sign up for this referral program with a different email.\""
|
|
4523
4532
|
},
|
|
4524
4533
|
"searchForCountryText": {
|
|
4525
4534
|
"type": "string",
|
|
@@ -4597,7 +4606,7 @@ export class TaxAndCashMonolith {
|
|
|
4597
4606
|
},
|
|
4598
4607
|
"attribute": "loading-error-alert-description",
|
|
4599
4608
|
"reflect": false,
|
|
4600
|
-
"defaultValue": "\"Please refresh the page and try again. If this problem continues, contact
|
|
4609
|
+
"defaultValue": "\"Please refresh the page and try again. If this problem continues, contact our {supportLink}.\""
|
|
4601
4610
|
},
|
|
4602
4611
|
"taxAndPayoutsDescription": {
|
|
4603
4612
|
"type": "string",
|
|
@@ -4623,6 +4632,30 @@ export class TaxAndCashMonolith {
|
|
|
4623
4632
|
"reflect": false,
|
|
4624
4633
|
"defaultValue": "\"Submit your tax documents and add your banking information to receive your rewards.\""
|
|
4625
4634
|
},
|
|
4635
|
+
"supportLink": {
|
|
4636
|
+
"type": "string",
|
|
4637
|
+
"mutable": false,
|
|
4638
|
+
"complexType": {
|
|
4639
|
+
"original": "string",
|
|
4640
|
+
"resolved": "string",
|
|
4641
|
+
"references": {}
|
|
4642
|
+
},
|
|
4643
|
+
"required": false,
|
|
4644
|
+
"optional": false,
|
|
4645
|
+
"docs": {
|
|
4646
|
+
"tags": [{
|
|
4647
|
+
"text": "Suport link text",
|
|
4648
|
+
"name": "uiName"
|
|
4649
|
+
}, {
|
|
4650
|
+
"text": "General Form Properties",
|
|
4651
|
+
"name": "uiGroup"
|
|
4652
|
+
}],
|
|
4653
|
+
"text": "Link text for contacting support team"
|
|
4654
|
+
},
|
|
4655
|
+
"attribute": "support-link",
|
|
4656
|
+
"reflect": false,
|
|
4657
|
+
"defaultValue": "\"support team\""
|
|
4658
|
+
},
|
|
4626
4659
|
"demoData": {
|
|
4627
4660
|
"type": "unknown",
|
|
4628
4661
|
"mutable": false,
|
|
@@ -3,8 +3,8 @@ import { useEffect, useMemo } from "@saasquatch/universal-hooks";
|
|
|
3
3
|
import { getCountryObj } from "../utils";
|
|
4
4
|
import { COUNTRIES_NAMESPACE, COUNTRIES_QUERY_NAMESPACE, CURRENCIES_NAMESPACE, CURRENCIES_QUERY_NAMESPACE, FINANCE_NETWORK_SETTINGS_NAMESPACE, GET_COUNTRIES, GET_CURRENCIES, GET_FINANCE_NETWORK_SETTINGS, GET_USER, SORTED_COUNTRIES_NAMESPACE, TAX_CONTEXT_NAMESPACE, TAX_FORM_CONTEXT_NAMESPACE, USER_FORM_CONTEXT_NAMESPACE, USER_QUERY_NAMESPACE, } from "./data";
|
|
5
5
|
function getCurrentStep(user) {
|
|
6
|
-
var _a;
|
|
7
|
-
if (!((_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.connected)) {
|
|
6
|
+
var _a, _b;
|
|
7
|
+
if (!((_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.connected) || !((_b = user.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher)) {
|
|
8
8
|
return "/1";
|
|
9
9
|
}
|
|
10
10
|
const { requiredTaxDocumentType, currentTaxDocument, withdrawalSettings, brandedSignup, } = user.impactConnection.publisher;
|
|
@@ -2,11 +2,46 @@ import { h } from "@stencil/core";
|
|
|
2
2
|
import { intl } from "../../../global/global";
|
|
3
3
|
import { createStyleSheet } from "../../../styling/JSS";
|
|
4
4
|
const style = {
|
|
5
|
-
|
|
5
|
+
ErrorAlertContainer: {
|
|
6
6
|
"&::part(base)": {
|
|
7
7
|
backgroundColor: "var(--sl-color-red-100)",
|
|
8
8
|
borderTop: "none",
|
|
9
9
|
},
|
|
10
|
+
"& sl-icon::part(base)": {
|
|
11
|
+
color: "var(--sl-color-danger-500)",
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
WarningAlertContainer: {
|
|
15
|
+
"&::part(base)": {
|
|
16
|
+
backgroundColor: "var(--sl-color-yellow-100)",
|
|
17
|
+
borderTop: "none",
|
|
18
|
+
maxWidth: "600px",
|
|
19
|
+
},
|
|
20
|
+
"& sl-icon::part(base)": {
|
|
21
|
+
color: "var(--sl-color-warning-500)",
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
WarningHoldAlertContainer: {
|
|
25
|
+
marginLeft: "-20px",
|
|
26
|
+
"&::part(base)": {
|
|
27
|
+
maxWidth: "850px",
|
|
28
|
+
border: "none",
|
|
29
|
+
backgroundColor: "transparent",
|
|
30
|
+
},
|
|
31
|
+
"& sl-icon::part(base)": {
|
|
32
|
+
color: "var(--sl-color-warning-500)",
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
ErrorHoldAlertContainer: {
|
|
36
|
+
marginLeft: "-20px",
|
|
37
|
+
"&::part(base)": {
|
|
38
|
+
maxWidth: "850px",
|
|
39
|
+
border: "none",
|
|
40
|
+
backgroundColor: "transparent",
|
|
41
|
+
},
|
|
42
|
+
"& sl-icon::part(base)": {
|
|
43
|
+
color: "var(--sl-color-danger-500)",
|
|
44
|
+
},
|
|
10
45
|
},
|
|
11
46
|
ExpiringSoonAlertContainer: {
|
|
12
47
|
"&::part(base)": {
|
|
@@ -127,6 +162,7 @@ const style = {
|
|
|
127
162
|
PageDescriptionText: {
|
|
128
163
|
color: "var(--sl-color-neutral-500)",
|
|
129
164
|
fontSize: "var(--sl-font-size-medium)",
|
|
165
|
+
marginTop: "0",
|
|
130
166
|
},
|
|
131
167
|
Dialog: {
|
|
132
168
|
"&::part(panel)": {
|
|
@@ -159,8 +195,81 @@ const style = {
|
|
|
159
195
|
const sheet = createStyleSheet(style);
|
|
160
196
|
const styleString = sheet.toString();
|
|
161
197
|
export const TaxAndCashDashboardView = (props) => {
|
|
162
|
-
var _a;
|
|
198
|
+
var _a, _b, _c, _d;
|
|
163
199
|
const { states, text, callbacks, slots } = props;
|
|
200
|
+
function getAlert(status) {
|
|
201
|
+
switch (status) {
|
|
202
|
+
case "VERIFICATION:REQUIRED":
|
|
203
|
+
return {
|
|
204
|
+
header: text.verificationRequiredHeader,
|
|
205
|
+
description: intl.formatMessage({
|
|
206
|
+
id: "verificationRequiredDescription",
|
|
207
|
+
defaultMessage: text.verificationRequiredDescription,
|
|
208
|
+
}, {
|
|
209
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
210
|
+
}),
|
|
211
|
+
buttonText: text.verificationRequiredButtonText,
|
|
212
|
+
alertType: "warning",
|
|
213
|
+
icon: "exclamation-triangle",
|
|
214
|
+
class: sheet.classes.WarningHoldAlertContainer,
|
|
215
|
+
};
|
|
216
|
+
case "VERIFICATION:INTERNAL":
|
|
217
|
+
return {
|
|
218
|
+
header: text.verificationRequiredInternalHeader,
|
|
219
|
+
description: intl.formatMessage({
|
|
220
|
+
id: "verificationRequiredInternalDescription",
|
|
221
|
+
defaultMessage: text.verificationRequiredInternalDescription,
|
|
222
|
+
}, {
|
|
223
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
224
|
+
}),
|
|
225
|
+
alertType: "warning",
|
|
226
|
+
icon: "exclamation-triangle",
|
|
227
|
+
class: sheet.classes.WarningHoldAlertContainer,
|
|
228
|
+
};
|
|
229
|
+
case "VERIFICATION:REVIEW":
|
|
230
|
+
return {
|
|
231
|
+
header: text.verificationReviewInternalHeader,
|
|
232
|
+
description: intl.formatMessage({
|
|
233
|
+
id: "verificationReviewInternalDescription",
|
|
234
|
+
defaultMessage: text.verificationReviewInternalDescription,
|
|
235
|
+
}, {
|
|
236
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
237
|
+
}),
|
|
238
|
+
alertType: "warning",
|
|
239
|
+
icon: "exclamation-triangle",
|
|
240
|
+
class: sheet.classes.WarningHoldAlertContainer,
|
|
241
|
+
};
|
|
242
|
+
case "VERIFICATION:FAILED":
|
|
243
|
+
return {
|
|
244
|
+
header: text.verificationFailedInternalHeader,
|
|
245
|
+
description: intl.formatMessage({
|
|
246
|
+
id: "verificationFailedInternalDescription",
|
|
247
|
+
defaultMessage: text.verificationFailedInternalDescription,
|
|
248
|
+
}, {
|
|
249
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
250
|
+
}),
|
|
251
|
+
alertType: "critical",
|
|
252
|
+
icon: "exclamation-octagon",
|
|
253
|
+
class: sheet.classes.ErrorHoldAlertContainer,
|
|
254
|
+
};
|
|
255
|
+
case "HOLD":
|
|
256
|
+
return {
|
|
257
|
+
header: text.payoutHoldAlertHeader,
|
|
258
|
+
description: intl.formatMessage({
|
|
259
|
+
id: "payoutHoldAlertDescription",
|
|
260
|
+
defaultMessage: text.payoutHoldAlertDescription,
|
|
261
|
+
}, {
|
|
262
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
263
|
+
}),
|
|
264
|
+
buttonText: null,
|
|
265
|
+
alertType: "warning",
|
|
266
|
+
icon: "exclamation-triangle",
|
|
267
|
+
class: sheet.classes.WarningHoldAlertContainer,
|
|
268
|
+
};
|
|
269
|
+
default:
|
|
270
|
+
return;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
164
273
|
const statusMap = {
|
|
165
274
|
NOT_VERIFIED: (h("div", { class: sheet.classes.TaxFormDetailsContainer },
|
|
166
275
|
h("sl-badge", { type: "warning", pill: true }, text.statusTextNotVerified),
|
|
@@ -185,7 +294,7 @@ export const TaxAndCashDashboardView = (props) => {
|
|
|
185
294
|
h("p", null, text.invalidForm))),
|
|
186
295
|
};
|
|
187
296
|
const alertMap = {
|
|
188
|
-
INACTIVE: (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet.classes.
|
|
297
|
+
INACTIVE: (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet.classes.ErrorAlertContainer },
|
|
189
298
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
190
299
|
h("strong", null, intl.formatMessage({
|
|
191
300
|
id: `taxAlertHeaderNotActive`,
|
|
@@ -237,23 +346,38 @@ export const TaxAndCashDashboardView = (props) => {
|
|
|
237
346
|
h("div", null,
|
|
238
347
|
h("style", { type: "text/css" }, styleString),
|
|
239
348
|
states.loadingError && (h("div", null,
|
|
240
|
-
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet.classes.
|
|
349
|
+
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet.classes.ErrorAlertContainer },
|
|
241
350
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
242
351
|
h("strong", null, text.error.loadingErrorAlertHeader),
|
|
243
352
|
h("br", null),
|
|
244
|
-
|
|
245
|
-
|
|
353
|
+
intl.formatMessage({
|
|
354
|
+
id: "loadingErrorAlertDescription",
|
|
355
|
+
defaultMessage: text.error.loadingErrorAlertDescription,
|
|
356
|
+
}, {
|
|
357
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
358
|
+
})))),
|
|
359
|
+
((_a = states.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet.classes.ErrorAlertContainer },
|
|
246
360
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
247
361
|
h("strong", null, text.error.generalTitle),
|
|
248
362
|
h("br", null),
|
|
249
|
-
|
|
363
|
+
intl.formatMessage({
|
|
364
|
+
id: "generalDescription",
|
|
365
|
+
defaultMessage: text.error.generalDescription,
|
|
366
|
+
}, {
|
|
367
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
368
|
+
}))),
|
|
369
|
+
getAlert(states.payoutStatus) && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", name: (_b = getAlert(states.payoutStatus)) === null || _b === void 0 ? void 0 : _b.alertType, open: true, class: (_c = getAlert(states.payoutStatus)) === null || _c === void 0 ? void 0 : _c.class },
|
|
370
|
+
h("sl-icon", { slot: "icon", name: (_d = getAlert(states.payoutStatus)) === null || _d === void 0 ? void 0 : _d.icon }),
|
|
371
|
+
h("strong", null, getAlert(states.payoutStatus).header),
|
|
372
|
+
h("p", { style: { margin: "0" } }, getAlert(states.payoutStatus).description),
|
|
373
|
+
getAlert(states.payoutStatus).buttonText && (h("sl-button", { style: { marginTop: "var(--sl-spacing-x-small)" }, type: "default", loading: states.veriffLoading, onClick: () => callbacks.onVerifyClick() }, getAlert(states.payoutStatus).buttonText)))),
|
|
250
374
|
h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet.classes.Dialog, open: states.showNewFormDialog, "onSl-hide": callbacks.onNewFormCancel },
|
|
251
375
|
h("p", null, text.replaceTaxFormModalBodyText),
|
|
252
376
|
h("sl-button", { slot: "footer", type: "primary", class: sheet.classes.DialogButton, onClick: callbacks.onNewFormClick }, text.newFormButton),
|
|
253
377
|
h("sl-button", { slot: "footer", type: "default", class: sheet.classes.DialogButton, onClick: callbacks.onNewFormCancel }, text.cancelButton)),
|
|
254
378
|
states.status === "INACTIVE" && alertMap[states.status],
|
|
255
379
|
h("div", null,
|
|
256
|
-
h("h3",
|
|
380
|
+
h("h3", { style: { marginBottom: "0" } }, text.bankingInformationSectionHeader),
|
|
257
381
|
h("p", { class: sheet.classes.PageDescriptionText }, text.taxAndPayoutsDescription),
|
|
258
382
|
h("div", { class: sheet.classes.BankingInformationContainer },
|
|
259
383
|
slots.payoutDetailsCardSlot,
|
|
@@ -283,7 +407,12 @@ export const TaxAndCashDashboardView = (props) => {
|
|
|
283
407
|
h("sl-tooltip", { trigger: "hover", placement: "top", content: text.indirectTaxTooltipSupport, class: sheet.classes.TooltipContainer },
|
|
284
408
|
h("sl-icon", { name: "info-circle", class: sheet.classes.ToolTip }))),
|
|
285
409
|
h("div", { class: sheet.classes.IndirectTaxPreviewDetails },
|
|
286
|
-
h("span", null, states.notRegistered ? (h("span", { class: sheet.classes.NotRegisteredIndirectTaxText },
|
|
410
|
+
h("span", null, states.notRegistered ? (h("span", { class: sheet.classes.NotRegisteredIndirectTaxText }, intl.formatMessage({
|
|
411
|
+
id: "notRegisteredForTax",
|
|
412
|
+
defaultMessage: text.notRegisteredForTax,
|
|
413
|
+
}, {
|
|
414
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
415
|
+
}))) : (getIndirectTaxRegisteredIn())),
|
|
287
416
|
!states.notRegistered && (h("div", { class: sheet.classes.TaxNumberContainer },
|
|
288
417
|
h("span", null, intl.formatMessage({
|
|
289
418
|
id: `indirectTaxDetails`,
|