@saasquatch/mint-components 1.12.0-2 → 1.12.0-20
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 +168 -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 +513 -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 +169 -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-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-97c92e75.entry.js +16 -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-cb55d3c4.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 +79 -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 +461 -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,20 +1,23 @@
|
|
|
1
1
|
import { h, r as registerInstance, c as Host, g as getElement } from './index-17b4da69.js';
|
|
2
|
-
import {
|
|
3
|
-
import { i as intl } from './global-
|
|
4
|
-
import { T, Q, K, M as Mn, D as Dn,
|
|
2
|
+
import { m as useRef, k as useState, f as useEffect, n as h$1, l, u as useMemo, b as browser, j as useReducer } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
+
import { i as intl } from './global-6306a9b8.js';
|
|
4
|
+
import { d as dist, T, Q, K, M as Mn, D as Dn, t as qn, c as xe, i as isDemo, S as Sn, b as useCallback, O as On, y as $n, F as Fn, A as An } from './index.module-6c840c4e.js';
|
|
5
|
+
import { j as jsonpointer } from './jsonpointer-388a7082.js';
|
|
5
6
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
|
-
import './mixins-f60a614c.js';
|
|
7
|
+
import { E as ErrorStyles } from './mixins-f60a614c.js';
|
|
7
8
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
8
9
|
import { G as GenericTableView } from './GenericTableView-d59d8ab4.js';
|
|
9
|
-
import { u as useRerenderListener, a as useRequestRerender } from './re-render-
|
|
10
|
-
import { u as useChildElements } from './useChildElements-
|
|
11
|
-
import { l as luxon } from './luxon-
|
|
12
|
-
import {
|
|
13
|
-
import { g as generateUserError } from './useReferralTable-52008143.js';
|
|
10
|
+
import { u as useRerenderListener, a as useRequestRerender } from './re-render-1bcfd0de.js';
|
|
11
|
+
import { u as useChildElements } from './useChildElements-fc84e640.js';
|
|
12
|
+
import { l as luxon } from './luxon-7600be8d.js';
|
|
13
|
+
import { g as generateUserError } from './useReferralTable-f6ffa103.js';
|
|
14
14
|
import { g as getProps, l as luxonLocale } from './utils-334c1e34.js';
|
|
15
|
-
import {
|
|
16
|
-
import { t as taxTypeToName, v as validTaxDocument, a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, g as getCountryObj, O as OtherRegionSlotView, I as InvoiceTableView, E as ErrorView, L as LoadingView, c as vatLabels, G as GeneralLoadingView, f as formatErrorMessage, d as validateBillingField, o as objectIsFull, A as ADDRESS_REGIONS } from './sqm-invoice-table-view-
|
|
17
|
-
import {
|
|
15
|
+
import { T as TextSpanView } from './sqm-text-span-view-8d140661.js';
|
|
16
|
+
import { t as taxTypeToName, v as validTaxDocument, a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, g as getCountryObj, O as OtherRegionSlotView, I as InvoiceTableView, E as ErrorView, L as LoadingView, c as vatLabels, G as GeneralLoadingView, f as formatErrorMessage, d as validateBillingField, o as objectIsFull, A as ADDRESS_REGIONS } from './sqm-invoice-table-view-b3127605.js';
|
|
17
|
+
import { b as VERIFICATION_EVENT_KEY, V as VERIFICATION_EMAIL_NAMESPACE, S as SHOW_CODE_NAMESPACE, a as VERIFICATION_PARENT_NAMESPACE } from './keys-406491dc.js';
|
|
18
|
+
import { e as extractProps } from './extractProps-ae1afbb3.js';
|
|
19
|
+
import { T as TAX_FORM_UPDATED_EVENT_KEY, a as useVeriffApp, g as getStatus, V as VERIFF_COMPLETE_EVENT_KEY } from './usePayoutStatus-0bc0380f.js';
|
|
20
|
+
import { u as useVerificationEmail } from './useVerificationEmail-2a21d0e3.js';
|
|
18
21
|
|
|
19
22
|
const TAX_CONTEXT_NAMESPACE = "sq:tax-and-cash";
|
|
20
23
|
const TAX_FORM_CONTEXT_NAMESPACE = "sq:tax-form-context";
|
|
@@ -36,6 +39,11 @@ const GET_USER = dist.gql `
|
|
|
36
39
|
email
|
|
37
40
|
countryCode
|
|
38
41
|
customFields
|
|
42
|
+
managedIdentity {
|
|
43
|
+
uid
|
|
44
|
+
email
|
|
45
|
+
emailVerified
|
|
46
|
+
}
|
|
39
47
|
impactConnection {
|
|
40
48
|
connected
|
|
41
49
|
user {
|
|
@@ -79,6 +87,7 @@ const GET_USER = dist.gql `
|
|
|
79
87
|
}
|
|
80
88
|
payoutsAccount {
|
|
81
89
|
hold
|
|
90
|
+
holdReasons
|
|
82
91
|
balance
|
|
83
92
|
}
|
|
84
93
|
}
|
|
@@ -855,12 +864,22 @@ const BankingInfoFormView = (props) => {
|
|
|
855
864
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
856
865
|
h("strong", null, text.error.generalTitle),
|
|
857
866
|
h("br", null),
|
|
858
|
-
|
|
867
|
+
intl.formatMessage({
|
|
868
|
+
id: "generalDescription",
|
|
869
|
+
defaultMessage: text.error.generalDescription,
|
|
870
|
+
}, {
|
|
871
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
872
|
+
}))),
|
|
859
873
|
states.isPartner && !states.hideSteps && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "primary", open: true, class: sheet.classes.PartnerAlertContainer },
|
|
860
874
|
h("sl-icon", { slot: "icon", name: "info-circle" }),
|
|
861
875
|
h("strong", null, text.isPartnerAlertHeader),
|
|
862
876
|
h("br", null),
|
|
863
|
-
|
|
877
|
+
intl.formatMessage({
|
|
878
|
+
id: "isPartnerAlertDescription",
|
|
879
|
+
defaultMessage: text.isPartnerAlertDescription,
|
|
880
|
+
}, {
|
|
881
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
882
|
+
}))),
|
|
864
883
|
h("div", null,
|
|
865
884
|
h("h4", null, text.paymentMethod),
|
|
866
885
|
h("p", { class: classes.DescriptionText }, text.paymentMethodSubtext))),
|
|
@@ -973,7 +992,7 @@ function parseImpactThreshold(threshold) {
|
|
|
973
992
|
return parsed.toString();
|
|
974
993
|
}
|
|
975
994
|
function useBankingInfoForm(props) {
|
|
976
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
995
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
977
996
|
const host = T();
|
|
978
997
|
const locale = Q();
|
|
979
998
|
const user = K();
|
|
@@ -1098,6 +1117,8 @@ function useBankingInfoForm(props) {
|
|
|
1098
1117
|
// Call difference mutations based on whether the user is updating
|
|
1099
1118
|
// the info for setting it for the first time
|
|
1100
1119
|
if (isPartner) {
|
|
1120
|
+
if (!token)
|
|
1121
|
+
return; // Require token for this mutation
|
|
1101
1122
|
response = await updateWithdrawalSettings({
|
|
1102
1123
|
updateImpactPublisherWithdrawalSettingsInput: {
|
|
1103
1124
|
...body,
|
|
@@ -1135,6 +1156,8 @@ function useBankingInfoForm(props) {
|
|
|
1135
1156
|
});
|
|
1136
1157
|
return;
|
|
1137
1158
|
}
|
|
1159
|
+
// Fire form change event
|
|
1160
|
+
window.dispatchEvent(new Event(TAX_FORM_UPDATED_EVENT_KEY));
|
|
1138
1161
|
await refetch();
|
|
1139
1162
|
setStep("/dashboard");
|
|
1140
1163
|
}
|
|
@@ -1179,6 +1202,12 @@ function useBankingInfoForm(props) {
|
|
|
1179
1202
|
}
|
|
1180
1203
|
await runMutation(formData, token);
|
|
1181
1204
|
};
|
|
1205
|
+
const onVerification = async (token) => {
|
|
1206
|
+
host.dispatchEvent(new CustomEvent(VERIFICATION_EVENT_KEY, {
|
|
1207
|
+
detail: { token },
|
|
1208
|
+
bubbles: false,
|
|
1209
|
+
}));
|
|
1210
|
+
};
|
|
1182
1211
|
function setPaymentMethodChecked(paymentMethod) {
|
|
1183
1212
|
_setPaymentMethodChecked(paymentMethod);
|
|
1184
1213
|
if (paymentMethod === "toPayPalAccount") {
|
|
@@ -1203,6 +1232,8 @@ function useBankingInfoForm(props) {
|
|
|
1203
1232
|
setPaymentScheduleChecked,
|
|
1204
1233
|
onBack: () => setStep("/dashboard"),
|
|
1205
1234
|
setCountrySearch,
|
|
1235
|
+
onVerification,
|
|
1236
|
+
onVerificationHide: () => onVerification(null),
|
|
1206
1237
|
},
|
|
1207
1238
|
states: {
|
|
1208
1239
|
showVerification,
|
|
@@ -1235,6 +1266,7 @@ function useBankingInfoForm(props) {
|
|
|
1235
1266
|
hasPayPal,
|
|
1236
1267
|
bankCountry: formState.bankCountry,
|
|
1237
1268
|
countrySearch,
|
|
1269
|
+
email: (_j = userData === null || userData === void 0 ? void 0 : userData.user) === null || _j === void 0 ? void 0 : _j.email,
|
|
1238
1270
|
},
|
|
1239
1271
|
refs: {
|
|
1240
1272
|
formRef,
|
|
@@ -1441,7 +1473,16 @@ const BankingInfoForm = class {
|
|
|
1441
1473
|
* @uiName Participant is a partner alert description
|
|
1442
1474
|
* @uiWidget textArea
|
|
1443
1475
|
*/
|
|
1444
|
-
this.isPartnerAlertDescription = "If you don’t recognize this referral program provider or believe this is a mistake, please contact our
|
|
1476
|
+
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.";
|
|
1477
|
+
/**
|
|
1478
|
+
* Text for verify email dialog
|
|
1479
|
+
* @uiName Verify email header
|
|
1480
|
+
*/
|
|
1481
|
+
this.verifyEmailHeaderText = "Verify your email";
|
|
1482
|
+
/**
|
|
1483
|
+
* @uiName Verify code widget header text
|
|
1484
|
+
*/
|
|
1485
|
+
this.verifyEmailDescriptionText = "Verify your email to update your payment settings. Enter the code sent to {email} from our referral provider, impact.com.";
|
|
1445
1486
|
/**
|
|
1446
1487
|
* Part of the alert displayed at the top of the page.
|
|
1447
1488
|
* @uiName Form submission error message title
|
|
@@ -1453,7 +1494,7 @@ const BankingInfoForm = class {
|
|
|
1453
1494
|
* @uiName Form submission error message description
|
|
1454
1495
|
* @uiWidget textArea
|
|
1455
1496
|
*/
|
|
1456
|
-
this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact
|
|
1497
|
+
this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact our {supportLink}.";
|
|
1457
1498
|
/**
|
|
1458
1499
|
* Displayed under a field that is missing required information.
|
|
1459
1500
|
* @uiName Empty form field error message
|
|
@@ -1464,6 +1505,10 @@ const BankingInfoForm = class {
|
|
|
1464
1505
|
* @uiName Form field error message
|
|
1465
1506
|
*/
|
|
1466
1507
|
this.fieldInvalidError = "{fieldName} is invalid";
|
|
1508
|
+
/**
|
|
1509
|
+
* @uiName Support link text
|
|
1510
|
+
*/
|
|
1511
|
+
this.supportLink = "support team";
|
|
1467
1512
|
/**
|
|
1468
1513
|
* @uiName Continue button label
|
|
1469
1514
|
*/
|
|
@@ -1536,23 +1581,55 @@ const BankingInfoForm = class {
|
|
|
1536
1581
|
bitset: props.states.bitset,
|
|
1537
1582
|
formMap,
|
|
1538
1583
|
});
|
|
1539
|
-
const
|
|
1584
|
+
const style = {
|
|
1585
|
+
Dialog: {
|
|
1586
|
+
position: "relative",
|
|
1587
|
+
"&::part(panel)": {
|
|
1588
|
+
maxWidth: "420px",
|
|
1589
|
+
},
|
|
1590
|
+
"&::part(title)": {
|
|
1591
|
+
padding: "var(--sl-spacing-large) var(--sl-spacing-large) 0 var(--sl-spacing-large)",
|
|
1592
|
+
},
|
|
1593
|
+
"&::part(base)": {
|
|
1594
|
+
position: "absolute",
|
|
1595
|
+
},
|
|
1596
|
+
"&::part(close-button)": {
|
|
1597
|
+
marginBottom: "var(--sl-spacing-large)",
|
|
1598
|
+
},
|
|
1599
|
+
"&::part(body)": {
|
|
1600
|
+
padding: "0 var(--sl-spacing-large) 0 var(--sl-spacing-large)",
|
|
1601
|
+
fontSize: "var(--sl-font-size-small)",
|
|
1602
|
+
},
|
|
1603
|
+
"&::part(footer)": {
|
|
1604
|
+
display: "flex",
|
|
1605
|
+
flexDirection: "column",
|
|
1606
|
+
gap: "var(--sl-spacing-small)",
|
|
1607
|
+
marginBottom: "var(--sl-spacing-xx-small)",
|
|
1608
|
+
alignItems: "center",
|
|
1609
|
+
flex: "1",
|
|
1610
|
+
},
|
|
1611
|
+
},
|
|
1540
1612
|
SearchInput: {
|
|
1541
1613
|
padding: "var(--sl-spacing-x-small)",
|
|
1542
1614
|
},
|
|
1543
1615
|
};
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1616
|
+
const sheet = createStyleSheet(style);
|
|
1617
|
+
const styleString = sheet.toString();
|
|
1618
|
+
const verifyDescription = intl.formatMessage({
|
|
1619
|
+
id: "codeResentSuccessfully",
|
|
1620
|
+
defaultMessage: props.text.verifyEmailDescriptionText,
|
|
1621
|
+
}, {
|
|
1622
|
+
email: props.states.email,
|
|
1623
|
+
});
|
|
1624
|
+
return (h(Host, null, h("style", { type: "text/css" }, styleString), props.states.isPartner && props.states.showVerification ? (h("sl-dialog", { class: sheet.classes.Dialog, open: true, "onSl-hide": props.callbacks.onVerificationHide, label: props.text.verifyEmailHeaderText }, h("sqm-code-verification", { verifyCodeHeaderText: verifyDescription, reverifyCodeHeaderText: verifyDescription, onVerification: props.callbacks.onVerification }))) : null, h(BankingInfoFormView, { callbacks: props.callbacks, text: props.text, states: props.states, refs: props.refs, slots: {
|
|
1548
1625
|
formInputsSlot: inputFields === null || inputFields === void 0 ? void 0 : inputFields.map(({ input }) => input),
|
|
1549
|
-
countryInputSlot: (h("sl-select", Object.assign({ label: props.text.bankLocationLabel, required: true, name: "/bankCountry", id: "bankCountry", value: props.states.formState.bankCountry || "", "onSl-select": (e) => { var _a, _b; return props.callbacks.setBankCountry((_b = (_a = e.detail) === null || _a === void 0 ? void 0 : _a.item) === null || _b === void 0 ? void 0 : _b.value); } }, (((_a = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _a === void 0 ? void 0 : _a.bankCountry) && {
|
|
1626
|
+
countryInputSlot: (h("sl-select", Object.assign({ label: props.text.bankLocationLabel, disabled: props.states.saveLoading, 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) && {
|
|
1550
1627
|
class: "error-input",
|
|
1551
1628
|
helpText: getValidationErrorMessage({
|
|
1552
1629
|
type: (_c = (_b = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _b === void 0 ? void 0 : _b.bankCountry) === null || _c === void 0 ? void 0 : _c.type,
|
|
1553
1630
|
label: props.text.bankLocationLabel,
|
|
1554
1631
|
}),
|
|
1555
|
-
})), h("sl-input", { class:
|
|
1632
|
+
})), h("sl-input", { disabled: props.states.saveLoading, class: sheet.classes.SearchInput, placeholder: this.searchForCountryText, onKeyDown: (e) => {
|
|
1556
1633
|
// Stop shoelace intercepting key presses
|
|
1557
1634
|
e.stopPropagation();
|
|
1558
1635
|
}, "onSl-input": (e) => {
|
|
@@ -1563,21 +1640,21 @@ const BankingInfoForm = class {
|
|
|
1563
1640
|
}), (_f = (_e = props.states) === null || _e === void 0 ? void 0 : _e.allCountries) === null || _f === void 0 ? void 0 :
|
|
1564
1641
|
_f.map((c) => (h("sl-menu-item", { value: c.countryCode, style: { display: "none" } }, c.displayName))))),
|
|
1565
1642
|
paymentMethodSlot: (h("sl-input", { key: "paymentMethod", label: props.text.paymentMethod, placeholder: props.states.paymentMethodFeeLabel, disabled: true })),
|
|
1566
|
-
paymentThresholdSelectSlot: (h("sl-select", Object.assign({ required: true, label: props.text.paymentThresholdSelectLabel, name: "/paymentThreshold", id: "paymentThreshold", value: ((_h = (_g = props.states) === null || _g === void 0 ? void 0 : _g.formState) === null || _h === void 0 ? void 0 : _h.paymentThreshold) || "" }, (((_j = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _j === void 0 ? void 0 : _j.paymentThreshold) && {
|
|
1643
|
+
paymentThresholdSelectSlot: (h("sl-select", Object.assign({ required: true, disabled: props.states.saveLoading, label: props.text.paymentThresholdSelectLabel, name: "/paymentThreshold", id: "paymentThreshold", value: ((_h = (_g = props.states) === null || _g === void 0 ? void 0 : _g.formState) === null || _h === void 0 ? void 0 : _h.paymentThreshold) || "" }, (((_j = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _j === void 0 ? void 0 : _j.paymentThreshold) && {
|
|
1567
1644
|
class: "error-input",
|
|
1568
1645
|
helpText: getValidationErrorMessage({
|
|
1569
1646
|
type: (_l = (_k = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _k === void 0 ? void 0 : _k.paymentThreshold) === null || _l === void 0 ? void 0 : _l.type,
|
|
1570
1647
|
label: props.text.paymentThresholdSelectLabel,
|
|
1571
1648
|
}),
|
|
1572
1649
|
})), props.states.thresholds.map((t) => (h("sl-menu-item", { value: t }, `${props.states.currency}${t}`))))),
|
|
1573
|
-
paymentFixedDaySelectSlot: (h("sl-select", Object.assign({ required: true, label: props.text.paymentDaySelectLabel, value: ((_o = (_m = props.states) === null || _m === void 0 ? void 0 : _m.formState) === null || _o === void 0 ? void 0 : _o.paymentDay) || "", name: "/paymentDay", id: "paymentDay" }, (((_p = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _p === void 0 ? void 0 : _p.paymentDay) && {
|
|
1650
|
+
paymentFixedDaySelectSlot: (h("sl-select", Object.assign({ required: true, disabled: props.states.saveLoading, label: props.text.paymentDaySelectLabel, value: ((_o = (_m = props.states) === null || _m === void 0 ? void 0 : _m.formState) === null || _o === void 0 ? void 0 : _o.paymentDay) || "", name: "/paymentDay", id: "paymentDay" }, (((_p = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _p === void 0 ? void 0 : _p.paymentDay) && {
|
|
1574
1651
|
class: "error-input",
|
|
1575
1652
|
helpText: getValidationErrorMessage({
|
|
1576
1653
|
type: (_r = (_q = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _q === void 0 ? void 0 : _q.paymentDay) === null || _r === void 0 ? void 0 : _r.type,
|
|
1577
1654
|
label: props.text.paymentDaySelectLabel,
|
|
1578
1655
|
}),
|
|
1579
1656
|
})), h("sl-menu-item", { value: "1" }, props.text.paymentDayFirstOfMonthLabelText), h("sl-menu-item", { value: "15" }, props.text.paymentDayFifteenthOfMonthLabelText))),
|
|
1580
|
-
paypalInputSlot: (h("sl-input", Object.assign({ required: true, value: ((_t = (_s = props.states) === null || _s === void 0 ? void 0 : _s.formState) === null || _t === void 0 ? void 0 : _t.paypalEmailAddress) || "", label: props.text.payPalInputLabel, key: "paypalEmailAddress", name: "/paypalEmailAddress", id: "paypalEmailAddress", type: "text" }, (((_w = (_v = (_u = props.states.formState) === null || _u === void 0 ? void 0 : _u.errors) === null || _v === void 0 ? void 0 : _v.inputErrors) === null || _w === void 0 ? void 0 : _w.paypalEmailAddress) && {
|
|
1657
|
+
paypalInputSlot: (h("sl-input", Object.assign({ required: true, disabled: props.states.saveLoading, value: ((_t = (_s = props.states) === null || _s === void 0 ? void 0 : _s.formState) === null || _t === void 0 ? void 0 : _t.paypalEmailAddress) || "", label: props.text.payPalInputLabel, key: "paypalEmailAddress", name: "/paypalEmailAddress", id: "paypalEmailAddress", type: "text" }, (((_w = (_v = (_u = props.states.formState) === null || _u === void 0 ? void 0 : _u.errors) === null || _v === void 0 ? void 0 : _v.inputErrors) === null || _w === void 0 ? void 0 : _w.paypalEmailAddress) && {
|
|
1581
1658
|
class: "error-input",
|
|
1582
1659
|
helpText: getValidationErrorMessage({
|
|
1583
1660
|
type: (_0 = (_z = (_y = (_x = props.states.formState) === null || _x === void 0 ? void 0 : _x.errors) === null || _y === void 0 ? void 0 : _y.inputErrors) === null || _z === void 0 ? void 0 : _z.paypalEmailAddress) === null || _0 === void 0 ? void 0 : _0.type,
|
|
@@ -1668,6 +1745,7 @@ function useDemoBankingInfoForm(props) {
|
|
|
1668
1745
|
hasPayPal: true,
|
|
1669
1746
|
},
|
|
1670
1747
|
callbacks: {
|
|
1748
|
+
onVerificationHide: () => { },
|
|
1671
1749
|
onSubmit: async () => {
|
|
1672
1750
|
setStep("/dashboard");
|
|
1673
1751
|
},
|
|
@@ -1676,6 +1754,7 @@ function useDemoBankingInfoForm(props) {
|
|
|
1676
1754
|
setPaymentScheduleChecked,
|
|
1677
1755
|
setCountrySearch: () => { },
|
|
1678
1756
|
onBack: async () => setStep("/dashboard"),
|
|
1757
|
+
onVerification: () => { },
|
|
1679
1758
|
},
|
|
1680
1759
|
text: props.getTextProps(),
|
|
1681
1760
|
refs: {
|
|
@@ -1684,6 +1763,331 @@ function useDemoBankingInfoForm(props) {
|
|
|
1684
1763
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
1685
1764
|
}
|
|
1686
1765
|
|
|
1766
|
+
const style$1 = {
|
|
1767
|
+
Wrapper: {
|
|
1768
|
+
display: "flex",
|
|
1769
|
+
flexDirection: "column",
|
|
1770
|
+
gap: "var(--sl-spacing-medium)",
|
|
1771
|
+
maxWidth: "550px",
|
|
1772
|
+
},
|
|
1773
|
+
HeaderContainer: {
|
|
1774
|
+
display: "flex",
|
|
1775
|
+
flexDirection: "column",
|
|
1776
|
+
},
|
|
1777
|
+
InputsContainer: {
|
|
1778
|
+
display: "flex",
|
|
1779
|
+
gap: "var(--sl-spacing-medium)",
|
|
1780
|
+
position: "relative",
|
|
1781
|
+
flexDirection: "column",
|
|
1782
|
+
},
|
|
1783
|
+
CodeInputContainer: {
|
|
1784
|
+
display: "flex",
|
|
1785
|
+
gap: "var(--sl-spacing-medium)",
|
|
1786
|
+
},
|
|
1787
|
+
CodeInput: {
|
|
1788
|
+
maxWidth: "40px",
|
|
1789
|
+
"&::part(input)": {
|
|
1790
|
+
margin: "0",
|
|
1791
|
+
padding: "0 var(--sl-input-spacing-small)",
|
|
1792
|
+
fontSize: "var(--sl-font-size-large)",
|
|
1793
|
+
},
|
|
1794
|
+
},
|
|
1795
|
+
CodeInputError: {
|
|
1796
|
+
...ErrorStyles,
|
|
1797
|
+
maxWidth: "40px",
|
|
1798
|
+
"&::part(input)": {
|
|
1799
|
+
margin: "0",
|
|
1800
|
+
padding: "0 var(--sl-input-spacing-small)",
|
|
1801
|
+
fontSize: "var(--sl-font-size-large)",
|
|
1802
|
+
},
|
|
1803
|
+
},
|
|
1804
|
+
ErrorText: {
|
|
1805
|
+
color: "var(--sl-color-danger-500)",
|
|
1806
|
+
fontSize: "var(--sl-font-size-small)",
|
|
1807
|
+
margin: "0",
|
|
1808
|
+
},
|
|
1809
|
+
ContinueButton: {
|
|
1810
|
+
width: "100%",
|
|
1811
|
+
maxWidth: "100px",
|
|
1812
|
+
},
|
|
1813
|
+
FooterContainer: {
|
|
1814
|
+
display: "flex",
|
|
1815
|
+
flexDirection: "column",
|
|
1816
|
+
},
|
|
1817
|
+
SkeletonOne: {
|
|
1818
|
+
width: "50%",
|
|
1819
|
+
height: "16px",
|
|
1820
|
+
},
|
|
1821
|
+
SkeletonTwo: {
|
|
1822
|
+
width: "30%",
|
|
1823
|
+
height: "34px",
|
|
1824
|
+
},
|
|
1825
|
+
SkeletonThree: {
|
|
1826
|
+
width: "15%",
|
|
1827
|
+
height: "24px",
|
|
1828
|
+
},
|
|
1829
|
+
};
|
|
1830
|
+
const vanillaStyle$1 = `
|
|
1831
|
+
:host {
|
|
1832
|
+
display: block;
|
|
1833
|
+
}
|
|
1834
|
+
:host([hidden]): {
|
|
1835
|
+
display: none;
|
|
1836
|
+
}
|
|
1837
|
+
|
|
1838
|
+
|
|
1839
|
+
`;
|
|
1840
|
+
const sheet$1 = createStyleSheet(style$1);
|
|
1841
|
+
const styleString$1 = sheet$1.toString();
|
|
1842
|
+
function WidgetCodeVerificationView(props) {
|
|
1843
|
+
const { states, refs, callbacks, text } = props;
|
|
1844
|
+
const resendCodeText = intl.formatMessage({
|
|
1845
|
+
id: "resendCodeText",
|
|
1846
|
+
defaultMessage: text.resendCodeText,
|
|
1847
|
+
}, {
|
|
1848
|
+
resendCodeLink: (h("a", { href: "", style: { textDecoration: "none" }, onClick: (e) => {
|
|
1849
|
+
e.preventDefault();
|
|
1850
|
+
callbacks.resendEmail();
|
|
1851
|
+
} }, text.resendCodeLabel)),
|
|
1852
|
+
});
|
|
1853
|
+
const codeResentSuccessfully = intl.formatMessage({
|
|
1854
|
+
id: "codeResentSuccessfully",
|
|
1855
|
+
defaultMessage: text.codeResentSuccessfullyText,
|
|
1856
|
+
}, {
|
|
1857
|
+
email: states.email,
|
|
1858
|
+
});
|
|
1859
|
+
const inputClass = states.verifyFailed
|
|
1860
|
+
? sheet$1.classes.CodeInputError
|
|
1861
|
+
: sheet$1.classes.CodeInput;
|
|
1862
|
+
return (h("div", { part: "sqm-base" },
|
|
1863
|
+
h("style", { type: "text/css" },
|
|
1864
|
+
vanillaStyle$1,
|
|
1865
|
+
styleString$1),
|
|
1866
|
+
h("div", { class: sheet$1.classes.Wrapper },
|
|
1867
|
+
h("div", { class: sheet$1.classes.HeaderContainer },
|
|
1868
|
+
h(TextSpanView, { type: "p" }, intl.formatMessage({
|
|
1869
|
+
id: `emailHeaderText`,
|
|
1870
|
+
defaultMessage: states.verifyFailed
|
|
1871
|
+
? text.reverifyCodeHeaderText
|
|
1872
|
+
: text.verifyCodeHeaderText,
|
|
1873
|
+
}, { email: states.email }))),
|
|
1874
|
+
states.emailResent && (h("sqm-form-message", { type: "success", exportparts: "successalert-icon" },
|
|
1875
|
+
h("b", null, codeResentSuccessfully))),
|
|
1876
|
+
h("div", { class: sheet$1.classes.InputsContainer },
|
|
1877
|
+
h("div", { ref: refs.codeWrapperRef, class: sheet$1.classes.CodeInputContainer },
|
|
1878
|
+
h("sl-input", { class: inputClass, name: "code" }),
|
|
1879
|
+
h("sl-input", { class: inputClass, name: "code" }),
|
|
1880
|
+
h("sl-input", { class: inputClass, name: "code" }),
|
|
1881
|
+
h("sl-input", { class: inputClass, name: "code" }),
|
|
1882
|
+
h("sl-input", { class: inputClass, name: "code" }),
|
|
1883
|
+
h("sl-input", { class: inputClass, name: "code" })),
|
|
1884
|
+
states.verifyFailed && (h("p", { class: sheet$1.classes.ErrorText }, text.invalidCodeText)),
|
|
1885
|
+
h("sl-button", { class: sheet$1.classes.ContinueButton, onClick: callbacks.submitCode, disabled: states.loading || states.initialiseLoading, loading: states.loading || states.initialiseLoading, exportparts: "base: primarybutton-base", type: "primary" }, text.verifyText)),
|
|
1886
|
+
h("div", { class: sheet$1.classes.FooterContainer },
|
|
1887
|
+
h(TextSpanView, { type: "p" }, resendCodeText)))));
|
|
1888
|
+
}
|
|
1889
|
+
|
|
1890
|
+
const VerifyEmailWithCodeMutation = dist.gql `
|
|
1891
|
+
mutation submitImpactPublisherEmail2FACode(
|
|
1892
|
+
$user: UserIdInput!
|
|
1893
|
+
$code: String!
|
|
1894
|
+
) {
|
|
1895
|
+
submitImpactPublisherEmail2FACode(user: $user, code: $code) {
|
|
1896
|
+
verifiedEmail
|
|
1897
|
+
accessKey
|
|
1898
|
+
}
|
|
1899
|
+
}
|
|
1900
|
+
`;
|
|
1901
|
+
function useWidgetCodeVerification(props) {
|
|
1902
|
+
const host = l();
|
|
1903
|
+
const [_, setShowCode] = Mn(SHOW_CODE_NAMESPACE);
|
|
1904
|
+
const email = Dn(VERIFICATION_EMAIL_NAMESPACE);
|
|
1905
|
+
const [emailSent, setEmailSent] = useState(false);
|
|
1906
|
+
const [emailResent, setEmailResent] = useState(false);
|
|
1907
|
+
const [codeRef, setCodeRef] = useState(null);
|
|
1908
|
+
const [validationError, setValidationError] = useState(false);
|
|
1909
|
+
const [emailError, setEmailError] = useState(false);
|
|
1910
|
+
const { initialized, verificationEmail, send: [sendEmail, { loading: sendLoading, errors: sendErrors }], verify: [verifyEmail, { loading: verifyLoading, errors: verifyErrors }], } = useVerificationEmail();
|
|
1911
|
+
useEffect(() => {
|
|
1912
|
+
if (!codeRef)
|
|
1913
|
+
return;
|
|
1914
|
+
const slInputs = codeRef.querySelectorAll("sl-input");
|
|
1915
|
+
const codeElements = Array.from(slInputs).map((node) => node.shadowRoot.querySelector(`input[name="code"]`));
|
|
1916
|
+
codeElements.forEach((element, idx) => {
|
|
1917
|
+
element.addEventListener("focus", (e) => {
|
|
1918
|
+
e.target.select();
|
|
1919
|
+
});
|
|
1920
|
+
element.addEventListener("keydown", (e) => {
|
|
1921
|
+
if (e.key === "Backspace" && e.target.value === "") {
|
|
1922
|
+
codeElements[Math.max(0, idx - 1)].focus();
|
|
1923
|
+
}
|
|
1924
|
+
});
|
|
1925
|
+
element.addEventListener("input", (e) => {
|
|
1926
|
+
const input = e.data;
|
|
1927
|
+
if (!input)
|
|
1928
|
+
return;
|
|
1929
|
+
if (idx === codeElements.length - 1) {
|
|
1930
|
+
e.target.value = input.slice(0, 1);
|
|
1931
|
+
return;
|
|
1932
|
+
}
|
|
1933
|
+
if (input.length > 1) {
|
|
1934
|
+
const rest = input.slice(1);
|
|
1935
|
+
e.target.value = input.slice(0, 1);
|
|
1936
|
+
codeElements[idx + 1].dispatchEvent(new InputEvent("input", {
|
|
1937
|
+
inputType: "insertFromPaste",
|
|
1938
|
+
data: rest,
|
|
1939
|
+
}));
|
|
1940
|
+
}
|
|
1941
|
+
codeElements[idx + 1].focus();
|
|
1942
|
+
});
|
|
1943
|
+
});
|
|
1944
|
+
}, [codeRef]);
|
|
1945
|
+
const reset = () => {
|
|
1946
|
+
setShowCode(false);
|
|
1947
|
+
setValidationError(false);
|
|
1948
|
+
};
|
|
1949
|
+
const resendEmail = async () => {
|
|
1950
|
+
// UI should only allow this to be called if initialized, but checking just in case
|
|
1951
|
+
if (!initialized)
|
|
1952
|
+
return;
|
|
1953
|
+
const result = await sendEmail();
|
|
1954
|
+
if (!result) {
|
|
1955
|
+
setEmailError(true);
|
|
1956
|
+
return;
|
|
1957
|
+
}
|
|
1958
|
+
if (emailSent)
|
|
1959
|
+
setEmailResent(true);
|
|
1960
|
+
setEmailSent(true);
|
|
1961
|
+
};
|
|
1962
|
+
const submitCode = async () => {
|
|
1963
|
+
const slInputs = codeRef.querySelectorAll("sl-input");
|
|
1964
|
+
const codeElements = Array.from(slInputs).map((node) => node.shadowRoot.querySelector(`input[name="code"]`));
|
|
1965
|
+
if (codeElements.find((el) => !el.value)) {
|
|
1966
|
+
setValidationError(true);
|
|
1967
|
+
return;
|
|
1968
|
+
}
|
|
1969
|
+
let code = "";
|
|
1970
|
+
codeElements.forEach((element) => {
|
|
1971
|
+
code = `${code}${element.value}`;
|
|
1972
|
+
});
|
|
1973
|
+
// UI should only allow this to be called if initialized, but checking just in case
|
|
1974
|
+
if (!initialized)
|
|
1975
|
+
return;
|
|
1976
|
+
setValidationError(false);
|
|
1977
|
+
const res = await verifyEmail(code);
|
|
1978
|
+
if (res === null || res === void 0 ? void 0 : res.success) {
|
|
1979
|
+
props.onVerification(res.accessKey);
|
|
1980
|
+
reset();
|
|
1981
|
+
}
|
|
1982
|
+
else {
|
|
1983
|
+
setValidationError(true);
|
|
1984
|
+
}
|
|
1985
|
+
};
|
|
1986
|
+
useEffect(() => {
|
|
1987
|
+
// Wait for mutations to be determined from user lookup
|
|
1988
|
+
if (!initialized)
|
|
1989
|
+
return;
|
|
1990
|
+
// email should already exist if user has completed email-verification
|
|
1991
|
+
if (!email)
|
|
1992
|
+
resendEmail();
|
|
1993
|
+
else
|
|
1994
|
+
setEmailSent(true);
|
|
1995
|
+
}, [initialized]);
|
|
1996
|
+
return {
|
|
1997
|
+
refs: {
|
|
1998
|
+
codeWrapperRef: setCodeRef,
|
|
1999
|
+
},
|
|
2000
|
+
states: {
|
|
2001
|
+
email: verificationEmail,
|
|
2002
|
+
emailResent,
|
|
2003
|
+
resendError: sendErrors || verifyErrors,
|
|
2004
|
+
initialiseLoading: !initialized,
|
|
2005
|
+
loading: sendLoading || verifyLoading,
|
|
2006
|
+
verifyFailed: !!validationError,
|
|
2007
|
+
},
|
|
2008
|
+
callbacks: {
|
|
2009
|
+
resendEmail,
|
|
2010
|
+
submitCode,
|
|
2011
|
+
},
|
|
2012
|
+
text: props.getTextProps(),
|
|
2013
|
+
};
|
|
2014
|
+
}
|
|
2015
|
+
|
|
2016
|
+
const WidgetCodeVerification = class {
|
|
2017
|
+
constructor(hostRef) {
|
|
2018
|
+
registerInstance(this, hostRef);
|
|
2019
|
+
/**
|
|
2020
|
+
* @uiName Verify code widget header text
|
|
2021
|
+
*/
|
|
2022
|
+
this.verifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
|
|
2023
|
+
/**
|
|
2024
|
+
* @uiName Reverify code widget header text
|
|
2025
|
+
*/
|
|
2026
|
+
this.reverifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
|
|
2027
|
+
/**
|
|
2028
|
+
* Text displayed under verify button
|
|
2029
|
+
* @uiName Resend code text
|
|
2030
|
+
*/
|
|
2031
|
+
this.resendCodeText = "Didn't receive your code? {resendCodeLink}";
|
|
2032
|
+
/**
|
|
2033
|
+
* The link that appears in the resend code link
|
|
2034
|
+
* @uiName Resend code label
|
|
2035
|
+
*/
|
|
2036
|
+
this.resendCodeLabel = "Resend code";
|
|
2037
|
+
/**
|
|
2038
|
+
* Link text displayed under verify button
|
|
2039
|
+
* @uiName Resend code text
|
|
2040
|
+
*/
|
|
2041
|
+
this.codeResentSuccessfullyText = "Another code has been sent to {email}";
|
|
2042
|
+
/**
|
|
2043
|
+
* Error text displayed under verification input
|
|
2044
|
+
* @uiName Invalid code text
|
|
2045
|
+
*/
|
|
2046
|
+
this.invalidCodeText = "Please check your code and try again. If you’re still having trouble, try resending your code.";
|
|
2047
|
+
/**
|
|
2048
|
+
* @uiName Verify code button text
|
|
2049
|
+
*/
|
|
2050
|
+
this.verifyText = "Verify";
|
|
2051
|
+
/**
|
|
2052
|
+
* Displayed when the email verification fails due to a network error. The participant can try refreshing the page.
|
|
2053
|
+
* @uiName Network error message
|
|
2054
|
+
*/
|
|
2055
|
+
this.networkErrorMessage = "An error occurred while verifying your email. Please refresh the page and try again.";
|
|
2056
|
+
h$1(this);
|
|
2057
|
+
}
|
|
2058
|
+
disconnectedCallback() { }
|
|
2059
|
+
getTextProps() {
|
|
2060
|
+
return getProps(this);
|
|
2061
|
+
}
|
|
2062
|
+
render() {
|
|
2063
|
+
const props = isDemo()
|
|
2064
|
+
? useDemoWidgetCodeVerification(this)
|
|
2065
|
+
: useWidgetCodeVerification(this);
|
|
2066
|
+
return h(WidgetCodeVerificationView, Object.assign({}, props));
|
|
2067
|
+
}
|
|
2068
|
+
};
|
|
2069
|
+
function useDemoWidgetCodeVerification(props) {
|
|
2070
|
+
const [emailResent, setEmailResent] = useState(false);
|
|
2071
|
+
const setVerifiedContext = Sn(VERIFICATION_PARENT_NAMESPACE);
|
|
2072
|
+
return cjs({
|
|
2073
|
+
states: {
|
|
2074
|
+
loading: false,
|
|
2075
|
+
email: "test@example.com",
|
|
2076
|
+
emailResent,
|
|
2077
|
+
resendError: true,
|
|
2078
|
+
verifyFailed: true,
|
|
2079
|
+
},
|
|
2080
|
+
refs: {
|
|
2081
|
+
codeWrapperRef: () => { },
|
|
2082
|
+
},
|
|
2083
|
+
callbacks: {
|
|
2084
|
+
resendEmail: async () => setEmailResent(true),
|
|
2085
|
+
submitCode: async () => setVerifiedContext(true),
|
|
2086
|
+
},
|
|
2087
|
+
text: props.getTextProps(),
|
|
2088
|
+
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
2089
|
+
}
|
|
2090
|
+
|
|
1687
2091
|
const GET_TAX_DOCUMENT = dist.gql `
|
|
1688
2092
|
mutation createImpactPublisherTaxDocument(
|
|
1689
2093
|
$vars: CreateImpactPublisherTaxDocumentInput!
|
|
@@ -1781,6 +2185,8 @@ function useDocusignForm(props) {
|
|
|
1781
2185
|
// @ts-expect-error: no data type for result
|
|
1782
2186
|
if (!result.completeImpactPublisherTaxDocument.success)
|
|
1783
2187
|
throw new Error();
|
|
2188
|
+
// Fire form change event
|
|
2189
|
+
window.dispatchEvent(new Event(TAX_FORM_UPDATED_EVENT_KEY));
|
|
1784
2190
|
setShowExitButton(true);
|
|
1785
2191
|
}
|
|
1786
2192
|
catch (e) {
|
|
@@ -1839,7 +2245,7 @@ function getDocumentType(p) {
|
|
|
1839
2245
|
return undefined;
|
|
1840
2246
|
}
|
|
1841
2247
|
|
|
1842
|
-
const style$
|
|
2248
|
+
const style$2 = {
|
|
1843
2249
|
DocusignStatusContainer: {
|
|
1844
2250
|
width: "100%",
|
|
1845
2251
|
minHeight: "600px",
|
|
@@ -1866,13 +2272,13 @@ const style$1 = {
|
|
|
1866
2272
|
},
|
|
1867
2273
|
},
|
|
1868
2274
|
};
|
|
1869
|
-
const sheet$
|
|
1870
|
-
const styleString$
|
|
2275
|
+
const sheet$2 = createStyleSheet(style$2);
|
|
2276
|
+
const styleString$2 = sheet$2.toString();
|
|
1871
2277
|
const DocusignExpiredView = (props) => {
|
|
1872
|
-
const { classes } = sheet$
|
|
2278
|
+
const { classes } = sheet$2;
|
|
1873
2279
|
const { text } = props;
|
|
1874
2280
|
return (h("div", null,
|
|
1875
|
-
h("style", { type: "text/css" }, styleString$
|
|
2281
|
+
h("style", { type: "text/css" }, styleString$2),
|
|
1876
2282
|
h("div", { class: classes.DocusignStatusContainer },
|
|
1877
2283
|
h("sl-icon", { style: {
|
|
1878
2284
|
width: "50px",
|
|
@@ -1884,10 +2290,10 @@ const DocusignExpiredView = (props) => {
|
|
|
1884
2290
|
h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
|
|
1885
2291
|
};
|
|
1886
2292
|
const DocusignErrorView = (props) => {
|
|
1887
|
-
const { classes } = sheet$
|
|
2293
|
+
const { classes } = sheet$2;
|
|
1888
2294
|
const { text } = props;
|
|
1889
2295
|
return (h("div", null,
|
|
1890
|
-
h("style", { type: "text/css" }, styleString$
|
|
2296
|
+
h("style", { type: "text/css" }, styleString$2),
|
|
1891
2297
|
h("div", { class: classes.DocusignStatusContainer },
|
|
1892
2298
|
h("sl-icon", { style: {
|
|
1893
2299
|
width: "50px",
|
|
@@ -1899,14 +2305,14 @@ const DocusignErrorView = (props) => {
|
|
|
1899
2305
|
h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
|
|
1900
2306
|
};
|
|
1901
2307
|
const DocusignLoadingView = () => {
|
|
1902
|
-
const { classes } = sheet$
|
|
2308
|
+
const { classes } = sheet$2;
|
|
1903
2309
|
return (h("div", null,
|
|
1904
|
-
h("style", { type: "text/css" }, styleString$
|
|
2310
|
+
h("style", { type: "text/css" }, styleString$2),
|
|
1905
2311
|
h("div", { class: classes.DocusignStatusContainer },
|
|
1906
2312
|
h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } }))));
|
|
1907
2313
|
};
|
|
1908
2314
|
const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
1909
|
-
const { classes } = sheet$
|
|
2315
|
+
const { classes } = sheet$2;
|
|
1910
2316
|
const [iFrameHeight, setiFrameHeight] = useState("100%");
|
|
1911
2317
|
const allowedDomains = [
|
|
1912
2318
|
"referralsaasquatch.com",
|
|
@@ -1917,7 +2323,6 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
|
1917
2323
|
const allowed = allowedDomains.some((d) => { var _a; return (_a = e.origin) === null || _a === void 0 ? void 0 : _a.includes(d); });
|
|
1918
2324
|
if (!allowed)
|
|
1919
2325
|
return;
|
|
1920
|
-
console.log(e);
|
|
1921
2326
|
if (typeof e.data === "number") {
|
|
1922
2327
|
setiFrameHeight(e.data + "px");
|
|
1923
2328
|
}
|
|
@@ -1940,12 +2345,12 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
|
1940
2345
|
return h(DocusignExpiredView, { text: text });
|
|
1941
2346
|
// Wrap iFrame with container that shares the same height to push other elements down when absolute positioned
|
|
1942
2347
|
return (h("div", { style: { height: iFrameHeight } },
|
|
1943
|
-
h("style", { type: "text/css" }, styleString$
|
|
2348
|
+
h("style", { type: "text/css" }, styleString$2),
|
|
1944
2349
|
h("div", { class: classes.IFrameContainer },
|
|
1945
2350
|
h("iframe", { scrolling: "yes", frameBorder: "0", width: "100%", src: data.documentUrl, height: iFrameHeight }))));
|
|
1946
2351
|
};
|
|
1947
2352
|
|
|
1948
|
-
const style$
|
|
2353
|
+
const style$3 = {
|
|
1949
2354
|
FormWrapper: {
|
|
1950
2355
|
display: "flex",
|
|
1951
2356
|
justifyContent: "flex-start",
|
|
@@ -2058,9 +2463,9 @@ const style$2 = {
|
|
|
2058
2463
|
fontSize: "var(--sl-font-size-medium)",
|
|
2059
2464
|
},
|
|
2060
2465
|
};
|
|
2061
|
-
const sheet$
|
|
2062
|
-
const styleString$
|
|
2063
|
-
const vanillaStyle$
|
|
2466
|
+
const sheet$3 = createStyleSheet(style$3);
|
|
2467
|
+
const styleString$3 = sheet$3.toString();
|
|
2468
|
+
const vanillaStyle$2 = `
|
|
2064
2469
|
:host{
|
|
2065
2470
|
display: block;
|
|
2066
2471
|
}
|
|
@@ -2085,11 +2490,11 @@ const vanillaStyle$1 = `
|
|
|
2085
2490
|
const DocusignFormView = (props) => {
|
|
2086
2491
|
var _a;
|
|
2087
2492
|
const { states, states: { formState, documentTypeString }, callbacks, text, slots, } = props;
|
|
2088
|
-
const { classes } = sheet$
|
|
2493
|
+
const { classes } = sheet$3;
|
|
2089
2494
|
return (h("div", { class: classes.Container },
|
|
2090
2495
|
h("style", { type: "text/css" },
|
|
2091
|
-
styleString$
|
|
2092
|
-
vanillaStyle$
|
|
2496
|
+
styleString$3,
|
|
2497
|
+
vanillaStyle$2),
|
|
2093
2498
|
h("div", { class: classes.TextContainer },
|
|
2094
2499
|
h("div", null,
|
|
2095
2500
|
!states.hideSteps && (h("p", null, intl.formatMessage({
|
|
@@ -2099,16 +2504,26 @@ const DocusignFormView = (props) => {
|
|
|
2099
2504
|
h("h3", null, text.taxForm),
|
|
2100
2505
|
h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
|
|
2101
2506
|
states.loadingError && (h("div", null,
|
|
2102
|
-
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$
|
|
2507
|
+
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$3.classes.ErrorAlertContainer },
|
|
2103
2508
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2104
2509
|
h("strong", null, text.error.loadingErrorAlertHeader),
|
|
2105
2510
|
h("br", null),
|
|
2106
|
-
|
|
2107
|
-
|
|
2511
|
+
intl.formatMessage({
|
|
2512
|
+
id: "loadingErrorAlertDescription",
|
|
2513
|
+
defaultMessage: text.error.loadingErrorAlertDescription,
|
|
2514
|
+
}, {
|
|
2515
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2516
|
+
})))),
|
|
2517
|
+
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$3.classes.ErrorAlertContainer },
|
|
2108
2518
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2109
2519
|
h("strong", null, text.error.generalTitle),
|
|
2110
2520
|
h("br", null),
|
|
2111
|
-
|
|
2521
|
+
intl.formatMessage({
|
|
2522
|
+
id: "generalDescription",
|
|
2523
|
+
defaultMessage: text.error.generalDescription,
|
|
2524
|
+
}, {
|
|
2525
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2526
|
+
}))),
|
|
2112
2527
|
h("div", null,
|
|
2113
2528
|
h("div", null,
|
|
2114
2529
|
h("h5", { class: classes.BoldText }, intl.formatMessage({ id: "tax-form-label", defaultMessage: text.taxFormLabel }, { documentType: documentTypeString })),
|
|
@@ -2147,6 +2562,10 @@ const DocusignForm = class {
|
|
|
2147
2562
|
* @uiWidget textArea
|
|
2148
2563
|
*/
|
|
2149
2564
|
this.taxFormDescription = "Participants based in the US need to submit a {documentType} form.";
|
|
2565
|
+
/**
|
|
2566
|
+
* @uiName Support link text
|
|
2567
|
+
*/
|
|
2568
|
+
this.supportLink = "support team";
|
|
2150
2569
|
/**
|
|
2151
2570
|
* Displayed at the top of the page to individuals joining a US program who reside outside the country.
|
|
2152
2571
|
* @uiName W-8 BEN tax form description
|
|
@@ -2190,7 +2609,7 @@ const DocusignForm = class {
|
|
|
2190
2609
|
* @uiName Docusign form error message
|
|
2191
2610
|
* @uiWidget textArea
|
|
2192
2611
|
*/
|
|
2193
|
-
this.docusignError = "There was a problem displaying this form. Please refresh the page. If this problem continues, contact
|
|
2612
|
+
this.docusignError = "There was a problem displaying this form. Please refresh the page. If this problem continues, contact our {supportLink}.";
|
|
2194
2613
|
/**
|
|
2195
2614
|
* @uiName Refresh page button label
|
|
2196
2615
|
*/
|
|
@@ -2206,7 +2625,7 @@ const DocusignForm = class {
|
|
|
2206
2625
|
* @uiName Form submission error message description
|
|
2207
2626
|
* @uiWidget textArea
|
|
2208
2627
|
*/
|
|
2209
|
-
this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact
|
|
2628
|
+
this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact our {supportLink}.";
|
|
2210
2629
|
/**
|
|
2211
2630
|
* Part of the alert displayed at the top of the page.
|
|
2212
2631
|
* @uiName Page load error message title
|
|
@@ -2218,7 +2637,7 @@ const DocusignForm = class {
|
|
|
2218
2637
|
* @uiName Page load error message description
|
|
2219
2638
|
* @uiWidget textArea
|
|
2220
2639
|
*/
|
|
2221
|
-
this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact
|
|
2640
|
+
this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact our {supportLink}.";
|
|
2222
2641
|
/**
|
|
2223
2642
|
* Displayed at the top of the page on all set up steps.
|
|
2224
2643
|
* @uiName Page description
|
|
@@ -2315,7 +2734,7 @@ const DemoDocusignIframe = ({ callbacks }) => {
|
|
|
2315
2734
|
} }, h("span", null, "Placeholder for docusign iframe"), h("div", { style: { display: "flex", gap: "8px" } }, h("sl-button", { type: "primary", submit: true, exportparts: "base: primarybutton-base", onClick: callbacks.demo.onBack }, "Back to Step 2"), h("sl-button", { type: "primary", submit: true, exportparts: "base: primarybutton-base", onClick: callbacks.demo.onSubmit }, "Continue to Step 4")))));
|
|
2316
2735
|
};
|
|
2317
2736
|
|
|
2318
|
-
const style$
|
|
2737
|
+
const style$4 = {
|
|
2319
2738
|
FormWrapper: {
|
|
2320
2739
|
display: "flex",
|
|
2321
2740
|
justifyContent: "flex-start",
|
|
@@ -2403,11 +2822,9 @@ const style$3 = {
|
|
|
2403
2822
|
border: "none",
|
|
2404
2823
|
},
|
|
2405
2824
|
"&::part(message)": {
|
|
2406
|
-
display: "flex",
|
|
2407
2825
|
alignItems: "center",
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
height: "max-content",
|
|
2826
|
+
padding: "var(--sl-spacing-small)",
|
|
2827
|
+
whiteSpace: "nowrap",
|
|
2411
2828
|
},
|
|
2412
2829
|
"& sl-icon::part(base)": {
|
|
2413
2830
|
color: "var(--sl-color-yellow-500)",
|
|
@@ -2423,9 +2840,9 @@ const style$3 = {
|
|
|
2423
2840
|
marginBottom: "var(--sl-spacing-small)",
|
|
2424
2841
|
},
|
|
2425
2842
|
};
|
|
2426
|
-
const sheet$
|
|
2427
|
-
const styleString$
|
|
2428
|
-
const vanillaStyle$
|
|
2843
|
+
const sheet$4 = createStyleSheet(style$4);
|
|
2844
|
+
const styleString$4 = sheet$4.toString();
|
|
2845
|
+
const vanillaStyle$3 = `
|
|
2429
2846
|
:host{
|
|
2430
2847
|
display: block;
|
|
2431
2848
|
}
|
|
@@ -2444,11 +2861,11 @@ const vanillaStyle$2 = `
|
|
|
2444
2861
|
const IndirectTaxFormView = (props) => {
|
|
2445
2862
|
var _a;
|
|
2446
2863
|
const { states, states: { formState }, callbacks, text, refs, slots, } = props;
|
|
2447
|
-
const { classes } = sheet$
|
|
2864
|
+
const { classes } = sheet$4;
|
|
2448
2865
|
return (h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
2449
2866
|
h("style", { type: "text/css" },
|
|
2450
|
-
styleString$
|
|
2451
|
-
vanillaStyle$
|
|
2867
|
+
styleString$4,
|
|
2868
|
+
vanillaStyle$3),
|
|
2452
2869
|
h("div", { class: classes.TextContainer },
|
|
2453
2870
|
h("div", null,
|
|
2454
2871
|
!states.hideSteps && (h("p", null,
|
|
@@ -2461,21 +2878,36 @@ const IndirectTaxFormView = (props) => {
|
|
|
2461
2878
|
h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription),
|
|
2462
2879
|
h("p", { class: classes.DescriptionText }, text.indirectTaxDescription)),
|
|
2463
2880
|
states.loadingError && (h("div", null,
|
|
2464
|
-
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$
|
|
2881
|
+
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.AlertContainer },
|
|
2465
2882
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2466
2883
|
h("strong", null, text.error.loadingErrorAlertHeader),
|
|
2467
2884
|
h("br", null),
|
|
2468
|
-
|
|
2469
|
-
|
|
2885
|
+
intl.formatMessage({
|
|
2886
|
+
id: "loadingErrorAlertDescription",
|
|
2887
|
+
defaultMessage: text.error.loadingErrorAlertDescription,
|
|
2888
|
+
}, {
|
|
2889
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2890
|
+
})))),
|
|
2891
|
+
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$4.classes.AlertContainer },
|
|
2470
2892
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2471
2893
|
h("strong", null, text.error.generalTitle),
|
|
2472
2894
|
h("br", null),
|
|
2473
|
-
|
|
2474
|
-
|
|
2895
|
+
intl.formatMessage({
|
|
2896
|
+
id: "generalDescription",
|
|
2897
|
+
defaultMessage: text.error.generalDescription,
|
|
2898
|
+
}, {
|
|
2899
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2900
|
+
}))),
|
|
2901
|
+
states.isPartner && (h("sl-alert", { type: "primary", open: true, class: sheet$4.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
|
|
2475
2902
|
h("sl-icon", { slot: "icon", name: "info-circle" }),
|
|
2476
2903
|
h("strong", null, text.isPartnerAlertHeader),
|
|
2477
2904
|
h("br", null),
|
|
2478
|
-
|
|
2905
|
+
intl.formatMessage({
|
|
2906
|
+
id: "isPartnerAlertDescription",
|
|
2907
|
+
defaultMessage: text.isPartnerAlertDescription,
|
|
2908
|
+
}, {
|
|
2909
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2910
|
+
}))),
|
|
2479
2911
|
h("div", null,
|
|
2480
2912
|
h("h4", null, text.indirectTaxDetails))),
|
|
2481
2913
|
states.loading ? (h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } })) : (h("div", null,
|
|
@@ -2492,7 +2924,12 @@ const IndirectTaxFormView = (props) => {
|
|
|
2492
2924
|
slots.registeredInDifferentCountryDetailsSlot)),
|
|
2493
2925
|
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "primary", open: true, class: classes.InfoAlert },
|
|
2494
2926
|
h("sl-icon", { class: classes.InfoWarningIcon, slot: "icon", name: "exclamation-triangle" }),
|
|
2495
|
-
|
|
2927
|
+
intl.formatMessage({
|
|
2928
|
+
id: "cannotChangeInfoAlert",
|
|
2929
|
+
defaultMessage: text.cannotChangeInfoAlert,
|
|
2930
|
+
}, {
|
|
2931
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2932
|
+
})),
|
|
2496
2933
|
h("div", { class: classes.BtnContainer },
|
|
2497
2934
|
h("sl-button", { type: "primary", disabled: states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton),
|
|
2498
2935
|
h("sl-button", { class: classes.SecondaryBtn, type: "text", disabled: states.disabled, onClick: callbacks.onBack, exportparts: "base: secondarybutton-base" }, text.backButton))))));
|
|
@@ -2662,6 +3099,8 @@ function useIndirectTaxForm(props) {
|
|
|
2662
3099
|
const resultPublisher = (_e = (_d = (_c = result
|
|
2663
3100
|
.createImpactConnection) === null || _c === void 0 ? void 0 : _c.user) === null || _d === void 0 ? void 0 : _d.impactConnection) === null || _e === void 0 ? void 0 : _e.publisher;
|
|
2664
3101
|
const hasValidCurrentDocument = validTaxDocument(resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) && (resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.currentTaxDocument);
|
|
3102
|
+
// Fire form change event
|
|
3103
|
+
window.dispatchEvent(new Event(TAX_FORM_UPDATED_EVENT_KEY));
|
|
2665
3104
|
if ((resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) &&
|
|
2666
3105
|
!hasValidCurrentDocument) {
|
|
2667
3106
|
// Go to docusign form
|
|
@@ -2820,7 +3259,7 @@ const IndirectTaxForm = class {
|
|
|
2820
3259
|
* @uiName Submission confirmation alert
|
|
2821
3260
|
* @uiWidget textArea
|
|
2822
3261
|
*/
|
|
2823
|
-
this.cannotChangeInfoAlert = "Changes to your personal and indirect tax information can only be made through our
|
|
3262
|
+
this.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.";
|
|
2824
3263
|
/**
|
|
2825
3264
|
* @uiName Missing indirect tax number error message
|
|
2826
3265
|
*/
|
|
@@ -2846,11 +3285,15 @@ const IndirectTaxForm = class {
|
|
|
2846
3285
|
* @uiName Participant is a partner alert description
|
|
2847
3286
|
* @uiWidget textArea
|
|
2848
3287
|
*/
|
|
2849
|
-
this.isPartnerAlertDescription = "If you don’t recognize this referral program provider or believe this is a mistake, please contact
|
|
3288
|
+
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.";
|
|
2850
3289
|
/**
|
|
2851
3290
|
* @uiName Continue button label
|
|
2852
3291
|
*/
|
|
2853
3292
|
this.continueButton = "Continue";
|
|
3293
|
+
/**
|
|
3294
|
+
* @uiName Support link text
|
|
3295
|
+
*/
|
|
3296
|
+
this.supportLink = "support team";
|
|
2854
3297
|
/**
|
|
2855
3298
|
* Part of the alert displayed at the top of the page.
|
|
2856
3299
|
* @uiName Form submission error message title
|
|
@@ -2862,7 +3305,7 @@ const IndirectTaxForm = class {
|
|
|
2862
3305
|
* @uiName Form submission error message description
|
|
2863
3306
|
* @uiWidget textArea
|
|
2864
3307
|
*/
|
|
2865
|
-
this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact
|
|
3308
|
+
this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact our {supportLink}.";
|
|
2866
3309
|
/**
|
|
2867
3310
|
* Part of the alert displayed at the top of the page.
|
|
2868
3311
|
* @uiName Page load error message title
|
|
@@ -2874,7 +3317,7 @@ const IndirectTaxForm = class {
|
|
|
2874
3317
|
* @uiName Page load error message description
|
|
2875
3318
|
* @uiWidget textArea
|
|
2876
3319
|
*/
|
|
2877
|
-
this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact
|
|
3320
|
+
this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact our {supportLink}.";
|
|
2878
3321
|
/**
|
|
2879
3322
|
* Displayed at the top of the page on all set up steps.
|
|
2880
3323
|
* @uiName Page description
|
|
@@ -3430,7 +3873,7 @@ const PayPalIcon = () => (h("svg", { xmlns: "http://www.w3.org/2000/svg", width:
|
|
|
3430
3873
|
h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M3.71826 -0.15332H9.30607C10.8808 -0.15332 12.7478 -0.099593 13.9903 1.00853C14.8208 1.754 15.2593 2.936 15.1597 4.21203C14.8142 8.52364 12.2694 10.9347 8.84762 10.9347H6.09026C5.61852 10.9347 5.31288 11.2503 5.18 12.0965L4.40926 17.0461C4.35611 17.3685 4.22323 17.5566 3.97739 17.5767H0.53567C0.156948 17.5767 0.0174187 17.2879 0.117082 16.6432L2.59539 0.786908C2.69505 0.148896 3.04055 -0.15332 3.71826 -0.15332Z", fill: "#113984" }),
|
|
3431
3874
|
h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M5.25973 11.5995L6.23643 5.36045C6.32281 4.81646 6.61515 4.54782 7.20649 4.54782H12.7877C13.7112 4.54782 14.4554 4.69557 15.0401 4.96421C14.4819 8.799 12.0236 10.9347 8.80775 10.9347H6.06368C5.6916 10.9347 5.42583 11.1227 5.25973 11.5995Z", fill: "#172C70" })));
|
|
3432
3875
|
|
|
3433
|
-
const style$
|
|
3876
|
+
const style$5 = {
|
|
3434
3877
|
CardContainer: {
|
|
3435
3878
|
display: "grid",
|
|
3436
3879
|
gridTemplateColumns: "1fr",
|
|
@@ -3564,7 +4007,7 @@ const style$4 = {
|
|
|
3564
4007
|
},
|
|
3565
4008
|
};
|
|
3566
4009
|
function PayoutDetailsCardView(props) {
|
|
3567
|
-
const sheet = createStyleSheet(style$
|
|
4010
|
+
const sheet = createStyleSheet(style$5);
|
|
3568
4011
|
const styleString = sheet.toString();
|
|
3569
4012
|
const { classes } = sheet;
|
|
3570
4013
|
const { states, text } = props;
|
|
@@ -3594,11 +4037,6 @@ function PayoutDetailsCardView(props) {
|
|
|
3594
4037
|
});
|
|
3595
4038
|
return (h("div", { class: classes.Container },
|
|
3596
4039
|
h("style", { type: "text/css" }, styleString),
|
|
3597
|
-
states.error && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", class: classes.Alert, type: "warning", open: true },
|
|
3598
|
-
h("sl-icon", { slot: "icon", name: "exclamation-triangle" }),
|
|
3599
|
-
h("div", { class: classes.AlertContent },
|
|
3600
|
-
h("b", null, text.error.errorTitleText),
|
|
3601
|
-
text.error.errorDescriptionText))),
|
|
3602
4040
|
states.loading ? (renderLoadingSkeleton()) : (h("div", { class: classes.CardContainer },
|
|
3603
4041
|
h("div", { class: classes.StatusContainer },
|
|
3604
4042
|
h("p", { class: classes.SubduedRegularText }, states.badgeStatus === "thresholdPayout"
|
|
@@ -3694,16 +4132,6 @@ const PayoutDetailsCard = class {
|
|
|
3694
4132
|
* @uiName Bank account field label
|
|
3695
4133
|
*/
|
|
3696
4134
|
this.accountText = "Account";
|
|
3697
|
-
/**
|
|
3698
|
-
* Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
|
|
3699
|
-
* @uiName Payout error message title
|
|
3700
|
-
*/
|
|
3701
|
-
this.errorTitleText = "Your payout is on hold ";
|
|
3702
|
-
/**
|
|
3703
|
-
* Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
|
|
3704
|
-
* @uiName Payout error message description
|
|
3705
|
-
*/
|
|
3706
|
-
this.errorDescriptionText = "If you’ve recently added your payout information, please wait while we verify your information. If it’s still on hold after a few days, please contact Support or check your inbox for an email from our referral program provider, impact.com.";
|
|
3707
4135
|
/**
|
|
3708
4136
|
* Text displayed for existing publishers that do not have saved banking information.
|
|
3709
4137
|
* @uiName Payout missing information subtext
|
|
@@ -3716,10 +4144,6 @@ const PayoutDetailsCard = class {
|
|
|
3716
4144
|
const props = getProps(this);
|
|
3717
4145
|
return {
|
|
3718
4146
|
...props,
|
|
3719
|
-
error: {
|
|
3720
|
-
errorTitleText: this.errorTitleText,
|
|
3721
|
-
errorDescriptionText: this.errorDescriptionText,
|
|
3722
|
-
},
|
|
3723
4147
|
};
|
|
3724
4148
|
}
|
|
3725
4149
|
render() {
|
|
@@ -3776,27 +4200,9 @@ const TableRow = class {
|
|
|
3776
4200
|
}
|
|
3777
4201
|
};
|
|
3778
4202
|
|
|
3779
|
-
/**
|
|
3780
|
-
* Util function for getting just the props with a certain prefix.
|
|
3781
|
-
* @param props Text props on stencil component
|
|
3782
|
-
* @param prefix Prefix denoting which group the text prop belongs to
|
|
3783
|
-
* @returns A new object with all keys with the prefix provided. The prefix is removed from each key.
|
|
3784
|
-
*/
|
|
3785
|
-
function extractProps(props, prefix) {
|
|
3786
|
-
const keys = Object.keys(props).filter((k) => k.startsWith(prefix));
|
|
3787
|
-
const formattedProps = keys.reduce((prev, k) => {
|
|
3788
|
-
const key = k.replace(prefix, "");
|
|
3789
|
-
return {
|
|
3790
|
-
...prev,
|
|
3791
|
-
[key]: props[k],
|
|
3792
|
-
};
|
|
3793
|
-
}, {});
|
|
3794
|
-
return formattedProps;
|
|
3795
|
-
}
|
|
3796
|
-
|
|
3797
4203
|
function getCurrentStep(user) {
|
|
3798
|
-
var _a;
|
|
3799
|
-
if (!((_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.connected)) {
|
|
4204
|
+
var _a, _b;
|
|
4205
|
+
if (!((_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.connected) || !((_b = user.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher)) {
|
|
3800
4206
|
return "/1";
|
|
3801
4207
|
}
|
|
3802
4208
|
const { requiredTaxDocumentType, currentTaxDocument, withdrawalSettings, brandedSignup, } = user.impactConnection.publisher;
|
|
@@ -4058,6 +4464,8 @@ const TaxAndCashMonolith = class {
|
|
|
4058
4464
|
* @uiGroup Step 1 Properties
|
|
4059
4465
|
*/
|
|
4060
4466
|
this.step1_searchForCurrencyText = "Search for currency..";
|
|
4467
|
+
/**
|
|
4468
|
+
|
|
4061
4469
|
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4062
4470
|
STEP 2 PROPS:
|
|
4063
4471
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
@@ -4160,7 +4568,7 @@ const TaxAndCashMonolith = class {
|
|
|
4160
4568
|
* @uiGroup Step 2 Properties
|
|
4161
4569
|
* @uiWidget textArea
|
|
4162
4570
|
*/
|
|
4163
|
-
this.step2_cannotChangeInfoAlert = "Changes to your personal and indirect tax information can only be made through our
|
|
4571
|
+
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.";
|
|
4164
4572
|
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4165
4573
|
STEP 3 PROPS:
|
|
4166
4574
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
@@ -4233,7 +4641,7 @@ const TaxAndCashMonolith = class {
|
|
|
4233
4641
|
* @uiGroup Step 3 Properties
|
|
4234
4642
|
* @uiWidget textArea
|
|
4235
4643
|
*/
|
|
4236
|
-
this.step3_docusignError = "There was a problem displaying this form. Please refresh the page. If this problem continues, contact
|
|
4644
|
+
this.step3_docusignError = "There was a problem displaying this form. Please refresh the page. If this problem continues, contact our {supportLink}.";
|
|
4237
4645
|
/**
|
|
4238
4646
|
* @uiName Refresh page button label
|
|
4239
4647
|
* @uiGroup Step 3 Properties
|
|
@@ -4595,7 +5003,7 @@ const TaxAndCashMonolith = class {
|
|
|
4595
5003
|
* @uiGroup Dashboard Properties
|
|
4596
5004
|
* @uiWidget textArea
|
|
4597
5005
|
*/
|
|
4598
|
-
this.dashboard_indirectTaxTooltipSupport = "To make changes to your indirect tax information, please contact
|
|
5006
|
+
this.dashboard_indirectTaxTooltipSupport = "To make changes to your indirect tax information, please contact our {supportLink}.";
|
|
4599
5007
|
/**
|
|
4600
5008
|
* Displayed to participants who have submitted their indirect tax information.
|
|
4601
5009
|
*
|
|
@@ -4618,7 +5026,7 @@ const TaxAndCashMonolith = class {
|
|
|
4618
5026
|
* @uiGroup Dashboard Properties
|
|
4619
5027
|
* @uiWidget textArea
|
|
4620
5028
|
*/
|
|
4621
|
-
this.dashboard_notRegisteredForTax = "Not registered for indirect tax. If you’ve previously registered with your tax authority, contact
|
|
5029
|
+
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.";
|
|
4622
5030
|
/**
|
|
4623
5031
|
* Displayed to participants registered in Quebec, Canada.
|
|
4624
5032
|
* @uiName QST indirect tax details
|
|
@@ -4690,14 +5098,14 @@ const TaxAndCashMonolith = class {
|
|
|
4690
5098
|
* @uiGroup Dashboard Properties
|
|
4691
5099
|
* @uiWidget textArea
|
|
4692
5100
|
*/
|
|
4693
|
-
this.
|
|
5101
|
+
this.payoutHoldAlertHeader = "Your payout is on hold";
|
|
4694
5102
|
/**
|
|
4695
5103
|
* Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
|
|
4696
5104
|
* @uiName Payout error message description
|
|
4697
5105
|
* @uiGroup Dashboard Properties
|
|
4698
5106
|
* @uiWidget textArea
|
|
4699
5107
|
*/
|
|
4700
|
-
this.
|
|
5108
|
+
this.payoutHoldAlertDescription = "Please contact our {supportLink} or check your inbox for an email from our referral program provider, impact.com.";
|
|
4701
5109
|
/**
|
|
4702
5110
|
* Text displayed for existing publishers that do not have saved banking information.
|
|
4703
5111
|
* @uiName Payout missing information subtext
|
|
@@ -4766,7 +5174,7 @@ const TaxAndCashMonolith = class {
|
|
|
4766
5174
|
* @uiGroup General Form Properties
|
|
4767
5175
|
* @uiWidget textArea
|
|
4768
5176
|
*/
|
|
4769
|
-
this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact
|
|
5177
|
+
this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact our {supportLink}.";
|
|
4770
5178
|
/**
|
|
4771
5179
|
* Displayed under a field that is missing required information.
|
|
4772
5180
|
* @uiName Empty form field error message
|
|
@@ -4813,7 +5221,7 @@ const TaxAndCashMonolith = class {
|
|
|
4813
5221
|
* @uiGroup General Form Properties
|
|
4814
5222
|
* @uiWidget textArea
|
|
4815
5223
|
*/
|
|
4816
|
-
this.isPartnerAlertDescription = "If you don’t recognize this referral program provider or believe this is a mistake, please contact
|
|
5224
|
+
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.";
|
|
4817
5225
|
/**
|
|
4818
5226
|
* Placeholder text displayed in the country search dropdown
|
|
4819
5227
|
* @uiName Country field placeholder text
|
|
@@ -4833,13 +5241,19 @@ const TaxAndCashMonolith = class {
|
|
|
4833
5241
|
* @uiGroup General Form Properties
|
|
4834
5242
|
* @uiWidget textArea
|
|
4835
5243
|
*/
|
|
4836
|
-
this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact
|
|
5244
|
+
this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact our {supportLink}.";
|
|
4837
5245
|
/**
|
|
4838
5246
|
* Displayed at the top of the page on all set up steps.
|
|
4839
5247
|
* @uiName Page description
|
|
4840
5248
|
* @uiGroup General Form Properties
|
|
4841
5249
|
*/
|
|
4842
5250
|
this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
|
|
5251
|
+
/**
|
|
5252
|
+
* Link text for contacting support team
|
|
5253
|
+
* @uiName Suport link text
|
|
5254
|
+
* @uiGroup General Form Properties
|
|
5255
|
+
*/
|
|
5256
|
+
this.supportLink = "support team";
|
|
4843
5257
|
h$1(this);
|
|
4844
5258
|
}
|
|
4845
5259
|
disconnectedCallback() { }
|
|
@@ -4863,6 +5277,7 @@ const TaxAndCashMonolith = class {
|
|
|
4863
5277
|
taxAndPayoutsDescription: props.taxAndPayoutsDescription,
|
|
4864
5278
|
searchForCountryText: props.searchForCountryText,
|
|
4865
5279
|
formStep: props.formStep,
|
|
5280
|
+
supportLink: props.supportLink,
|
|
4866
5281
|
};
|
|
4867
5282
|
}
|
|
4868
5283
|
render() {
|
|
@@ -4905,12 +5320,47 @@ function useDemoTaxAndCash(props) {
|
|
|
4905
5320
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
4906
5321
|
}
|
|
4907
5322
|
|
|
4908
|
-
const style$
|
|
4909
|
-
|
|
5323
|
+
const style$6 = {
|
|
5324
|
+
ErrorAlertContainer: {
|
|
4910
5325
|
"&::part(base)": {
|
|
4911
5326
|
backgroundColor: "var(--sl-color-red-100)",
|
|
4912
5327
|
borderTop: "none",
|
|
4913
5328
|
},
|
|
5329
|
+
"& sl-icon::part(base)": {
|
|
5330
|
+
color: "var(--sl-color-danger-500)",
|
|
5331
|
+
},
|
|
5332
|
+
},
|
|
5333
|
+
WarningAlertContainer: {
|
|
5334
|
+
"&::part(base)": {
|
|
5335
|
+
backgroundColor: "var(--sl-color-yellow-100)",
|
|
5336
|
+
borderTop: "none",
|
|
5337
|
+
maxWidth: "600px",
|
|
5338
|
+
},
|
|
5339
|
+
"& sl-icon::part(base)": {
|
|
5340
|
+
color: "var(--sl-color-warning-500)",
|
|
5341
|
+
},
|
|
5342
|
+
},
|
|
5343
|
+
WarningHoldAlertContainer: {
|
|
5344
|
+
marginLeft: "-20px",
|
|
5345
|
+
"&::part(base)": {
|
|
5346
|
+
maxWidth: "850px",
|
|
5347
|
+
border: "none",
|
|
5348
|
+
backgroundColor: "transparent",
|
|
5349
|
+
},
|
|
5350
|
+
"& sl-icon::part(base)": {
|
|
5351
|
+
color: "var(--sl-color-warning-500)",
|
|
5352
|
+
},
|
|
5353
|
+
},
|
|
5354
|
+
ErrorHoldAlertContainer: {
|
|
5355
|
+
marginLeft: "-20px",
|
|
5356
|
+
"&::part(base)": {
|
|
5357
|
+
maxWidth: "850px",
|
|
5358
|
+
border: "none",
|
|
5359
|
+
backgroundColor: "transparent",
|
|
5360
|
+
},
|
|
5361
|
+
"& sl-icon::part(base)": {
|
|
5362
|
+
color: "var(--sl-color-danger-500)",
|
|
5363
|
+
},
|
|
4914
5364
|
},
|
|
4915
5365
|
ExpiringSoonAlertContainer: {
|
|
4916
5366
|
"&::part(base)": {
|
|
@@ -5031,6 +5481,7 @@ const style$5 = {
|
|
|
5031
5481
|
PageDescriptionText: {
|
|
5032
5482
|
color: "var(--sl-color-neutral-500)",
|
|
5033
5483
|
fontSize: "var(--sl-font-size-medium)",
|
|
5484
|
+
marginTop: "0",
|
|
5034
5485
|
},
|
|
5035
5486
|
Dialog: {
|
|
5036
5487
|
"&::part(panel)": {
|
|
@@ -5060,13 +5511,86 @@ const style$5 = {
|
|
|
5060
5511
|
},
|
|
5061
5512
|
DialogButton: { margin: "auto", width: "100%" },
|
|
5062
5513
|
};
|
|
5063
|
-
const sheet$
|
|
5064
|
-
const styleString$
|
|
5514
|
+
const sheet$5 = createStyleSheet(style$6);
|
|
5515
|
+
const styleString$5 = sheet$5.toString();
|
|
5065
5516
|
const TaxAndCashDashboardView = (props) => {
|
|
5066
|
-
var _a;
|
|
5517
|
+
var _a, _b, _c, _d;
|
|
5067
5518
|
const { states, text, callbacks, slots } = props;
|
|
5519
|
+
function getAlert(status) {
|
|
5520
|
+
switch (status) {
|
|
5521
|
+
case "VERIFICATION:REQUIRED":
|
|
5522
|
+
return {
|
|
5523
|
+
header: text.verificationRequiredHeader,
|
|
5524
|
+
description: intl.formatMessage({
|
|
5525
|
+
id: "verificationRequiredDescription",
|
|
5526
|
+
defaultMessage: text.verificationRequiredDescription,
|
|
5527
|
+
}, {
|
|
5528
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5529
|
+
}),
|
|
5530
|
+
buttonText: text.verificationRequiredButtonText,
|
|
5531
|
+
alertType: "warning",
|
|
5532
|
+
icon: "exclamation-triangle",
|
|
5533
|
+
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
5534
|
+
};
|
|
5535
|
+
case "VERIFICATION:INTERNAL":
|
|
5536
|
+
return {
|
|
5537
|
+
header: text.verificationRequiredInternalHeader,
|
|
5538
|
+
description: intl.formatMessage({
|
|
5539
|
+
id: "verificationRequiredInternalDescription",
|
|
5540
|
+
defaultMessage: text.verificationRequiredInternalDescription,
|
|
5541
|
+
}, {
|
|
5542
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5543
|
+
}),
|
|
5544
|
+
alertType: "warning",
|
|
5545
|
+
icon: "exclamation-triangle",
|
|
5546
|
+
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
5547
|
+
};
|
|
5548
|
+
case "VERIFICATION:REVIEW":
|
|
5549
|
+
return {
|
|
5550
|
+
header: text.verificationReviewInternalHeader,
|
|
5551
|
+
description: intl.formatMessage({
|
|
5552
|
+
id: "verificationReviewInternalDescription",
|
|
5553
|
+
defaultMessage: text.verificationReviewInternalDescription,
|
|
5554
|
+
}, {
|
|
5555
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5556
|
+
}),
|
|
5557
|
+
alertType: "warning",
|
|
5558
|
+
icon: "exclamation-triangle",
|
|
5559
|
+
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
5560
|
+
};
|
|
5561
|
+
case "VERIFICATION:FAILED":
|
|
5562
|
+
return {
|
|
5563
|
+
header: text.verificationFailedInternalHeader,
|
|
5564
|
+
description: intl.formatMessage({
|
|
5565
|
+
id: "verificationFailedInternalDescription",
|
|
5566
|
+
defaultMessage: text.verificationFailedInternalDescription,
|
|
5567
|
+
}, {
|
|
5568
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5569
|
+
}),
|
|
5570
|
+
alertType: "critical",
|
|
5571
|
+
icon: "exclamation-octagon",
|
|
5572
|
+
class: sheet$5.classes.ErrorHoldAlertContainer,
|
|
5573
|
+
};
|
|
5574
|
+
case "HOLD":
|
|
5575
|
+
return {
|
|
5576
|
+
header: text.payoutHoldAlertHeader,
|
|
5577
|
+
description: intl.formatMessage({
|
|
5578
|
+
id: "payoutHoldAlertDescription",
|
|
5579
|
+
defaultMessage: text.payoutHoldAlertDescription,
|
|
5580
|
+
}, {
|
|
5581
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5582
|
+
}),
|
|
5583
|
+
buttonText: null,
|
|
5584
|
+
alertType: "warning",
|
|
5585
|
+
icon: "exclamation-triangle",
|
|
5586
|
+
class: sheet$5.classes.WarningHoldAlertContainer,
|
|
5587
|
+
};
|
|
5588
|
+
default:
|
|
5589
|
+
return;
|
|
5590
|
+
}
|
|
5591
|
+
}
|
|
5068
5592
|
const statusMap = {
|
|
5069
|
-
NOT_VERIFIED: (h("div", { class: sheet$
|
|
5593
|
+
NOT_VERIFIED: (h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
|
|
5070
5594
|
h("sl-badge", { type: "warning", pill: true }, text.statusTextNotVerified),
|
|
5071
5595
|
h("p", null, intl.formatMessage({
|
|
5072
5596
|
id: `badgeTextAwaitingReview`,
|
|
@@ -5074,7 +5598,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5074
5598
|
}, {
|
|
5075
5599
|
dateSubmitted: states.dateSubmitted,
|
|
5076
5600
|
})))),
|
|
5077
|
-
ACTIVE: (h("div", { class: sheet$
|
|
5601
|
+
ACTIVE: (h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
|
|
5078
5602
|
h("sl-badge", { type: "success", pill: true }, text.statusTextActive),
|
|
5079
5603
|
h("p", null, intl.formatMessage({
|
|
5080
5604
|
id: `badgeTextSubmittedOn`,
|
|
@@ -5084,12 +5608,12 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5084
5608
|
}, {
|
|
5085
5609
|
dateSubmitted: states.dateSubmitted,
|
|
5086
5610
|
})))),
|
|
5087
|
-
INACTIVE: (h("div", { class: sheet$
|
|
5611
|
+
INACTIVE: (h("div", { class: sheet$5.classes.TaxFormDetailsContainer },
|
|
5088
5612
|
h("sl-badge", { type: "danger", pill: true }, text.statusTextNotActive),
|
|
5089
5613
|
h("p", null, text.invalidForm))),
|
|
5090
5614
|
};
|
|
5091
5615
|
const alertMap = {
|
|
5092
|
-
INACTIVE: (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$
|
|
5616
|
+
INACTIVE: (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.ErrorAlertContainer },
|
|
5093
5617
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5094
5618
|
h("strong", null, intl.formatMessage({
|
|
5095
5619
|
id: `taxAlertHeaderNotActive`,
|
|
@@ -5139,56 +5663,76 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5139
5663
|
};
|
|
5140
5664
|
return (h("div", null,
|
|
5141
5665
|
h("div", null,
|
|
5142
|
-
h("style", { type: "text/css" }, styleString$
|
|
5666
|
+
h("style", { type: "text/css" }, styleString$5),
|
|
5143
5667
|
states.loadingError && (h("div", null,
|
|
5144
|
-
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$
|
|
5668
|
+
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.ErrorAlertContainer },
|
|
5145
5669
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5146
5670
|
h("strong", null, text.error.loadingErrorAlertHeader),
|
|
5147
5671
|
h("br", null),
|
|
5148
|
-
|
|
5149
|
-
|
|
5672
|
+
intl.formatMessage({
|
|
5673
|
+
id: "loadingErrorAlertDescription",
|
|
5674
|
+
defaultMessage: text.error.loadingErrorAlertDescription,
|
|
5675
|
+
}, {
|
|
5676
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5677
|
+
})))),
|
|
5678
|
+
((_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$5.classes.ErrorAlertContainer },
|
|
5150
5679
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5151
5680
|
h("strong", null, text.error.generalTitle),
|
|
5152
5681
|
h("br", null),
|
|
5153
|
-
|
|
5154
|
-
|
|
5682
|
+
intl.formatMessage({
|
|
5683
|
+
id: "generalDescription",
|
|
5684
|
+
defaultMessage: text.error.generalDescription,
|
|
5685
|
+
}, {
|
|
5686
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5687
|
+
}))),
|
|
5688
|
+
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 },
|
|
5689
|
+
h("sl-icon", { slot: "icon", name: (_d = getAlert(states.payoutStatus)) === null || _d === void 0 ? void 0 : _d.icon }),
|
|
5690
|
+
h("strong", null, getAlert(states.payoutStatus).header),
|
|
5691
|
+
h("p", { style: { margin: "0" } }, getAlert(states.payoutStatus).description),
|
|
5692
|
+
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)))),
|
|
5693
|
+
h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet$5.classes.Dialog, open: states.showNewFormDialog, "onSl-hide": callbacks.onNewFormCancel },
|
|
5155
5694
|
h("p", null, text.replaceTaxFormModalBodyText),
|
|
5156
|
-
h("sl-button", { slot: "footer", type: "primary", class: sheet$
|
|
5157
|
-
h("sl-button", { slot: "footer", type: "default", class: sheet$
|
|
5695
|
+
h("sl-button", { slot: "footer", type: "primary", class: sheet$5.classes.DialogButton, onClick: callbacks.onNewFormClick }, text.newFormButton),
|
|
5696
|
+
h("sl-button", { slot: "footer", type: "default", class: sheet$5.classes.DialogButton, onClick: callbacks.onNewFormCancel }, text.cancelButton)),
|
|
5158
5697
|
states.status === "INACTIVE" && alertMap[states.status],
|
|
5159
5698
|
h("div", null,
|
|
5160
|
-
h("h3",
|
|
5161
|
-
h("p", { class: sheet$
|
|
5162
|
-
h("div", { class: sheet$
|
|
5699
|
+
h("h3", { style: { marginBottom: "0" } }, text.bankingInformationSectionHeader),
|
|
5700
|
+
h("p", { class: sheet$5.classes.PageDescriptionText }, text.taxAndPayoutsDescription),
|
|
5701
|
+
h("div", { class: sheet$5.classes.BankingInformationContainer },
|
|
5163
5702
|
slots.payoutDetailsCardSlot,
|
|
5164
|
-
!states.loading && (h("p", { class: sheet$
|
|
5165
|
-
states.canEditPayoutInfo && (h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$
|
|
5166
|
-
h("div", { class: sheet$
|
|
5167
|
-
h("div", null, states.loading ? (h("div", { class: sheet$
|
|
5168
|
-
h("sl-skeleton", { class: sheet$
|
|
5169
|
-
h("sl-skeleton", { class: sheet$
|
|
5170
|
-
h("h3", { class: sheet$
|
|
5171
|
-
h("p", { class: sheet$
|
|
5172
|
-
h("span", { class: sheet$
|
|
5173
|
-
h("div", { class: sheet$
|
|
5703
|
+
!states.loading && (h("p", { class: sheet$5.classes.DescriptionText }, text.payoutFromImpact)),
|
|
5704
|
+
states.canEditPayoutInfo && (h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$5.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
|
|
5705
|
+
h("div", { class: sheet$5.classes.TaxDocumentsContainer },
|
|
5706
|
+
h("div", null, states.loading ? (h("div", { class: sheet$5.classes.TaxSectionSkeletonContainer },
|
|
5707
|
+
h("sl-skeleton", { class: sheet$5.classes.SkeletonOne }),
|
|
5708
|
+
h("sl-skeleton", { class: sheet$5.classes.SkeletonTwo }))) : (h("div", null, states.noFormNeeded ? (h("div", null,
|
|
5709
|
+
h("h3", { class: sheet$5.classes.TaxDocumentsSectionHeaderContainer }, text.taxDocumentSectionHeader),
|
|
5710
|
+
h("p", { class: sheet$5.classes.TaxDocSubtext }, text.noFormNeededSubtext))) : (h("div", null,
|
|
5711
|
+
h("span", { class: sheet$5.classes.TaxFormDetailsContainer },
|
|
5712
|
+
h("div", { class: sheet$5.classes.StatusContainer },
|
|
5174
5713
|
h("h3", null, intl.formatMessage({
|
|
5175
5714
|
id: "section-subheader",
|
|
5176
5715
|
defaultMessage: text.taxDocumentSectionSubHeader,
|
|
5177
5716
|
}, {
|
|
5178
5717
|
documentType: states.documentTypeString,
|
|
5179
5718
|
})),
|
|
5180
|
-
h("span", { class: sheet$
|
|
5181
|
-
states.status !== "NOT_VERIFIED" && (h("sl-button", { disabled: states.disabled || states.loading, onClick: callbacks.onClick, type: "default", class: sheet$
|
|
5182
|
-
h("div", { class: sheet$
|
|
5183
|
-
h("sl-skeleton", { class: sheet$
|
|
5184
|
-
h("sl-skeleton", { class: sheet$
|
|
5185
|
-
h("h3", { class: sheet$
|
|
5719
|
+
h("span", { class: sheet$5.classes.StatusAlert }, statusMap[states.status]))),
|
|
5720
|
+
states.status !== "NOT_VERIFIED" && (h("sl-button", { disabled: states.disabled || states.loading, onClick: callbacks.onClick, type: "default", class: sheet$5.classes.NewFormButton, exportparts: "base: primarybutton-base" }, text.newFormButton)))))))),
|
|
5721
|
+
h("div", { class: sheet$5.classes.IndirectTaxPreviewContainer }, states.loading ? (h("div", { class: sheet$5.classes.TaxSectionSkeletonContainer },
|
|
5722
|
+
h("sl-skeleton", { class: sheet$5.classes.SkeletonOne }),
|
|
5723
|
+
h("sl-skeleton", { class: sheet$5.classes.SkeletonTwo }))) : (h("div", null,
|
|
5724
|
+
h("h3", { class: sheet$5.classes.IndirectTaxPreviewHeaderContainer },
|
|
5186
5725
|
text.indirectTaxInfoSectionHeader,
|
|
5187
|
-
h("sl-tooltip", { trigger: "hover", placement: "top", content: text.indirectTaxTooltipSupport, class: sheet$
|
|
5188
|
-
h("sl-icon", { name: "info-circle", class: sheet$
|
|
5189
|
-
h("div", { class: sheet$
|
|
5190
|
-
h("span", null, states.notRegistered ? (h("span", { class: sheet$
|
|
5191
|
-
|
|
5726
|
+
h("sl-tooltip", { trigger: "hover", placement: "top", content: text.indirectTaxTooltipSupport, class: sheet$5.classes.TooltipContainer },
|
|
5727
|
+
h("sl-icon", { name: "info-circle", class: sheet$5.classes.ToolTip }))),
|
|
5728
|
+
h("div", { class: sheet$5.classes.IndirectTaxPreviewDetails },
|
|
5729
|
+
h("span", null, states.notRegistered ? (h("span", { class: sheet$5.classes.NotRegisteredIndirectTaxText }, intl.formatMessage({
|
|
5730
|
+
id: "notRegisteredForTax",
|
|
5731
|
+
defaultMessage: text.notRegisteredForTax,
|
|
5732
|
+
}, {
|
|
5733
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5734
|
+
}))) : (getIndirectTaxRegisteredIn())),
|
|
5735
|
+
!states.notRegistered && (h("div", { class: sheet$5.classes.TaxNumberContainer },
|
|
5192
5736
|
h("span", null, intl.formatMessage({
|
|
5193
5737
|
id: `indirectTaxDetails`,
|
|
5194
5738
|
defaultMessage: text.indirectTaxDetails,
|
|
@@ -5211,7 +5755,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5211
5755
|
}, {
|
|
5212
5756
|
subRegionTaxNumber: states.subRegionTaxNumber,
|
|
5213
5757
|
})))),
|
|
5214
|
-
!states.notRegistered && (h("div", { class: sheet$
|
|
5758
|
+
!states.notRegistered && (h("div", { class: sheet$5.classes.InvoiceTableContainer },
|
|
5215
5759
|
h("sqm-invoice-table", { description: text.invoiceDescription, "prev-label": text.invoicePrevLabel, "more-label": text.invoiceMoreLabel, header: text.invoiceHeader, "empty-state-header": text.invoiceEmptyStateHeader, "empty-state-text": text.invoiceEmptyStateText },
|
|
5216
5760
|
h("sqm-invoice-table-download-column", null),
|
|
5217
5761
|
h("sqm-invoice-table-date-column", { "column-title": text.dateColumnTitle }),
|
|
@@ -5256,16 +5800,17 @@ function getIndirectTaxType(taxInformation) {
|
|
|
5256
5800
|
return "Indirect Tax";
|
|
5257
5801
|
}
|
|
5258
5802
|
const useTaxAndCashDashboard = (props) => {
|
|
5259
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
5803
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
5260
5804
|
const setStep = Sn(TAX_CONTEXT_NAMESPACE);
|
|
5261
5805
|
const setContext = Sn(TAX_FORM_CONTEXT_NAMESPACE);
|
|
5262
5806
|
const [showDialog, setShowDialog] = useState(false);
|
|
5807
|
+
const { render, loading: veriffLoading, errors: veriffErrors, } = useVeriffApp();
|
|
5263
5808
|
const locale = Q();
|
|
5264
5809
|
useEffect(() => {
|
|
5265
5810
|
// Clear override context once on submitted
|
|
5266
5811
|
setContext({});
|
|
5267
5812
|
}, []);
|
|
5268
|
-
const { data, loading, errors: userError, } = qn(USER_QUERY_NAMESPACE);
|
|
5813
|
+
const { data, loading, errors: userError, refetch, } = qn(USER_QUERY_NAMESPACE);
|
|
5269
5814
|
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;
|
|
5270
5815
|
const documentType = publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType;
|
|
5271
5816
|
const submissionDate = (_c = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _c === void 0 ? void 0 : _c.dateCreated;
|
|
@@ -5290,6 +5835,14 @@ const useTaxAndCashDashboard = (props) => {
|
|
|
5290
5835
|
setStep("/3");
|
|
5291
5836
|
};
|
|
5292
5837
|
const provinceName = (_d = INDIRECT_TAX_PROVINCES.find((p) => { var _a; return p.regionCode === ((_a = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _a === void 0 ? void 0 : _a.indirectTaxRegion); })) === null || _d === void 0 ? void 0 : _d.displayName;
|
|
5838
|
+
const payoutStatus = data ? getStatus(data) : null;
|
|
5839
|
+
useEffect(() => {
|
|
5840
|
+
const cb = () => refetch();
|
|
5841
|
+
window.addEventListener(VERIFF_COMPLETE_EVENT_KEY, cb);
|
|
5842
|
+
return () => {
|
|
5843
|
+
window.removeEventListener(VERIFF_COMPLETE_EVENT_KEY, cb);
|
|
5844
|
+
};
|
|
5845
|
+
}, []);
|
|
5293
5846
|
return {
|
|
5294
5847
|
states: {
|
|
5295
5848
|
dateSubmitted,
|
|
@@ -5311,9 +5864,13 @@ const useTaxAndCashDashboard = (props) => {
|
|
|
5311
5864
|
loading,
|
|
5312
5865
|
loadingError: !!(userError === null || userError === void 0 ? void 0 : userError.message),
|
|
5313
5866
|
showNewFormDialog: showDialog,
|
|
5867
|
+
hasHold: !!((_m = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _m === void 0 ? void 0 : _m.hold),
|
|
5868
|
+
payoutStatus,
|
|
5869
|
+
veriffLoading,
|
|
5314
5870
|
},
|
|
5315
5871
|
callbacks: {
|
|
5316
5872
|
onClick: () => setShowDialog(true),
|
|
5873
|
+
onVerifyClick: () => render(),
|
|
5317
5874
|
onEditPayoutInfo,
|
|
5318
5875
|
onNewFormCancel: () => setShowDialog(false),
|
|
5319
5876
|
onNewFormClick,
|
|
@@ -5439,7 +5996,7 @@ const TaxAndCashDashboard = class {
|
|
|
5439
5996
|
* @uiName Indirect tax tooltip
|
|
5440
5997
|
* @uiWidget textArea
|
|
5441
5998
|
*/
|
|
5442
|
-
this.indirectTaxTooltipSupport = "To make changes to your indirect tax information, please contact Support.";
|
|
5999
|
+
this.indirectTaxTooltipSupport = "To make changes to your indirect tax information, please contact our Support team.";
|
|
5443
6000
|
/**
|
|
5444
6001
|
* Displayed to participants who have submitted their indirect tax information.
|
|
5445
6002
|
*
|
|
@@ -5459,7 +6016,7 @@ const TaxAndCashDashboard = class {
|
|
|
5459
6016
|
* @uiName Not registered for indirect tax text
|
|
5460
6017
|
* @uiWidget textArea
|
|
5461
6018
|
*/
|
|
5462
|
-
this.notRegisteredForTax = "Not registered for indirect tax. If you’ve previously registered with your tax authority, contact
|
|
6019
|
+
this.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.";
|
|
5463
6020
|
/**
|
|
5464
6021
|
* Displayed to participants registered in Quebec, Canada.
|
|
5465
6022
|
* @uiName QST indirect tax details
|
|
@@ -5488,18 +6045,59 @@ const TaxAndCashDashboard = class {
|
|
|
5488
6045
|
* @uiName Payout error message title
|
|
5489
6046
|
* @uiWidget textArea
|
|
5490
6047
|
*/
|
|
5491
|
-
this.
|
|
6048
|
+
this.payoutHoldAlertHeader = "Your payout is on hold";
|
|
5492
6049
|
/**
|
|
5493
6050
|
* Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
|
|
5494
6051
|
* @uiName Payout error message description
|
|
5495
6052
|
* @uiWidget textArea
|
|
5496
6053
|
*/
|
|
5497
|
-
this.
|
|
6054
|
+
this.payoutHoldAlertDescription = "Please contact our {supportLink} or check your inbox for an email from our referral program provider, impact.com.";
|
|
5498
6055
|
/**
|
|
5499
6056
|
* Text displayed for existing publishers that do not have saved banking information.
|
|
5500
6057
|
* @uiName Payout missing information subtext
|
|
5501
6058
|
*/
|
|
5502
6059
|
this.payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
|
|
6060
|
+
/**
|
|
6061
|
+
* Part of the alert displayed at the top of the page when the user needs to verify their identity.
|
|
6062
|
+
* @uiName Verification required alert message title
|
|
6063
|
+
* @uiWidget textArea
|
|
6064
|
+
*/
|
|
6065
|
+
this.verificationRequiredHeader = "Verify your identity";
|
|
6066
|
+
/**
|
|
6067
|
+
* Part of the alert displayed at the top of the page when the user needs to verify their identity
|
|
6068
|
+
* @uiName Verification required alert message description
|
|
6069
|
+
* @uiWidget textArea
|
|
6070
|
+
*/
|
|
6071
|
+
this.verificationRequiredDescription = "Complete your verification to start receiving your cash rewards. It should only take a few minutes verify. If you run in to an issue verifying your identity contact our {supportLink}.";
|
|
6072
|
+
/**
|
|
6073
|
+
* @uiName Verification required internal alert header
|
|
6074
|
+
*/
|
|
6075
|
+
this.verificationRequiredInternalHeader = "Identity Verification in Progress";
|
|
6076
|
+
/**
|
|
6077
|
+
* @uiName Verification required internal alert description
|
|
6078
|
+
*/
|
|
6079
|
+
this.verificationRequiredInternalDescription = "Identity verification submission has been received. Our system is currently performing additional checks and analyzing the results. You will be updated shortly. If you don't hear from us contact our {supportLink}.";
|
|
6080
|
+
/**
|
|
6081
|
+
* @uiName Verification review internal alert header
|
|
6082
|
+
*/
|
|
6083
|
+
this.verificationReviewInternalHeader = "Identity Verification Under Review";
|
|
6084
|
+
/**
|
|
6085
|
+
* @uiName Verification review internal alert description
|
|
6086
|
+
*/
|
|
6087
|
+
this.verificationReviewInternalDescription = "Identity verification requires further review due to a potential error. Our team is reviewing the information and will update you shortly. If you don't hear from us contact our {supportLink}.";
|
|
6088
|
+
/**
|
|
6089
|
+
* @uiName Verification failed internal alert header
|
|
6090
|
+
*/
|
|
6091
|
+
this.verificationFailedInternalHeader = "Identity Verification Unsuccessful";
|
|
6092
|
+
/**
|
|
6093
|
+
* @uiName Verification failed internal alert description
|
|
6094
|
+
*/
|
|
6095
|
+
this.verificationFailedInternalDescription = "Identity verification has failed. Our team is reviewing the report and will contact you with further information. If you don't hear from us contact our {supportLink}.";
|
|
6096
|
+
/**
|
|
6097
|
+
* Part of the alert displayed at the top of the page when the user needs to verify their identity.
|
|
6098
|
+
* @uiName Verification required alert button text
|
|
6099
|
+
*/
|
|
6100
|
+
this.verificationRequiredButtonText = "Start Verification";
|
|
5503
6101
|
/**
|
|
5504
6102
|
* Part of the alert displayed at the top of the page.
|
|
5505
6103
|
* @uiName Form submission error message title
|
|
@@ -5511,7 +6109,7 @@ const TaxAndCashDashboard = class {
|
|
|
5511
6109
|
* @uiName Form submission error message description
|
|
5512
6110
|
* @uiWidget textArea
|
|
5513
6111
|
*/
|
|
5514
|
-
this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact
|
|
6112
|
+
this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact our {supportLink}.";
|
|
5515
6113
|
/**
|
|
5516
6114
|
* Displayed under the payout details card.
|
|
5517
6115
|
* @uiName Payout from impact text
|
|
@@ -5529,7 +6127,7 @@ const TaxAndCashDashboard = class {
|
|
|
5529
6127
|
* @uiName Page load error message description
|
|
5530
6128
|
* @uiWidget textArea
|
|
5531
6129
|
*/
|
|
5532
|
-
this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact
|
|
6130
|
+
this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact our {supportLink}.";
|
|
5533
6131
|
/**
|
|
5534
6132
|
* Part of the Invoice table displayed at the bottom of the page.
|
|
5535
6133
|
* @uiName Invoice number column title
|
|
@@ -5580,6 +6178,10 @@ const TaxAndCashDashboard = class {
|
|
|
5580
6178
|
* @uiName Replace tax form modal body text
|
|
5581
6179
|
*/
|
|
5582
6180
|
this.replaceTaxFormModalBodyText = "Submitting a new tax form will remove your existing form. Make sure to sign and complete your new tax form to prevent any issues with your next payout.";
|
|
6181
|
+
/**
|
|
6182
|
+
* @uiName Support link text
|
|
6183
|
+
*/
|
|
6184
|
+
this.supportLink = "support team";
|
|
5583
6185
|
/**
|
|
5584
6186
|
* @uiName Cancel button label
|
|
5585
6187
|
*/
|
|
@@ -5622,12 +6224,17 @@ function useDemoTaxAndCashDashboard(props) {
|
|
|
5622
6224
|
disabled: false,
|
|
5623
6225
|
loading: false,
|
|
5624
6226
|
showNewFormDialog: false,
|
|
6227
|
+
hasHold: false,
|
|
6228
|
+
showVerifyIdentity: false,
|
|
6229
|
+
payoutStatus: "DONE",
|
|
6230
|
+
veriffLoading: false,
|
|
5625
6231
|
},
|
|
5626
6232
|
callbacks: {
|
|
5627
6233
|
onClick: () => console.debug("check step"),
|
|
5628
6234
|
onEditPayoutInfo: () => console.debug("payout info"),
|
|
5629
6235
|
onNewFormCancel: () => console.log("hide"),
|
|
5630
6236
|
onNewFormClick: () => console.log("show"),
|
|
6237
|
+
onVerifyClick: () => console.log("verify"),
|
|
5631
6238
|
},
|
|
5632
6239
|
text: props.getTextProps(),
|
|
5633
6240
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
@@ -6604,7 +7211,7 @@ const PHONE_EXTENSIONS = {
|
|
|
6604
7211
|
},
|
|
6605
7212
|
};
|
|
6606
7213
|
|
|
6607
|
-
const style$
|
|
7214
|
+
const style$7 = {
|
|
6608
7215
|
FormWrapper: {},
|
|
6609
7216
|
ErrorInput: {
|
|
6610
7217
|
"&::part(base)": {
|
|
@@ -6684,7 +7291,6 @@ const style$6 = {
|
|
|
6684
7291
|
},
|
|
6685
7292
|
PhoneInputsSection: {
|
|
6686
7293
|
display: "flex",
|
|
6687
|
-
alignItems: "flex-end",
|
|
6688
7294
|
flexDirection: "column",
|
|
6689
7295
|
gap: "4px",
|
|
6690
7296
|
"& p": {
|
|
@@ -6695,7 +7301,6 @@ const style$6 = {
|
|
|
6695
7301
|
},
|
|
6696
7302
|
PhoneInputsContainer: {
|
|
6697
7303
|
display: "flex",
|
|
6698
|
-
alignItems: "flex-end",
|
|
6699
7304
|
gap: "4px",
|
|
6700
7305
|
width: "100%",
|
|
6701
7306
|
"& #phoneNumber": {
|
|
@@ -6704,9 +7309,9 @@ const style$6 = {
|
|
|
6704
7309
|
},
|
|
6705
7310
|
},
|
|
6706
7311
|
};
|
|
6707
|
-
const sheet$
|
|
6708
|
-
const styleString$
|
|
6709
|
-
const vanillaStyle$
|
|
7312
|
+
const sheet$6 = createStyleSheet(style$7);
|
|
7313
|
+
const styleString$6 = sheet$6.toString();
|
|
7314
|
+
const vanillaStyle$4 = `
|
|
6710
7315
|
:host{
|
|
6711
7316
|
display: block;
|
|
6712
7317
|
}
|
|
@@ -6734,7 +7339,7 @@ const vanillaStyle$3 = `
|
|
|
6734
7339
|
const UserInfoFormView = (props) => {
|
|
6735
7340
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
|
|
6736
7341
|
const { states, states: { formState }, callbacks, text, refs, data, } = props;
|
|
6737
|
-
const { classes } = sheet$
|
|
7342
|
+
const { classes } = sheet$6;
|
|
6738
7343
|
const bankingCollectionText = intl.formatMessage({
|
|
6739
7344
|
id: "bankingCollectionText",
|
|
6740
7345
|
defaultMessage: text.allowBankingCollection,
|
|
@@ -6757,14 +7362,19 @@ const UserInfoFormView = (props) => {
|
|
|
6757
7362
|
}
|
|
6758
7363
|
return (h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
6759
7364
|
h("style", { type: "text/css" },
|
|
6760
|
-
styleString$
|
|
6761
|
-
vanillaStyle$
|
|
7365
|
+
styleString$6,
|
|
7366
|
+
vanillaStyle$4),
|
|
6762
7367
|
states.loadingError && (h("div", null,
|
|
6763
|
-
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$
|
|
7368
|
+
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$6.classes.AlertContainer },
|
|
6764
7369
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
6765
7370
|
h("strong", null, text.error.loadingErrorAlertHeader),
|
|
6766
7371
|
h("br", null),
|
|
6767
|
-
|
|
7372
|
+
intl.formatMessage({
|
|
7373
|
+
id: "loadingErrorAlertDescription",
|
|
7374
|
+
defaultMessage: text.error.loadingErrorAlertDescription,
|
|
7375
|
+
}, {
|
|
7376
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
7377
|
+
})),
|
|
6768
7378
|
h("br", null))),
|
|
6769
7379
|
states.loading ? (h(GeneralLoadingView, null)) : (h("div", null,
|
|
6770
7380
|
h("div", { class: classes.TextContainer },
|
|
@@ -6775,16 +7385,26 @@ const UserInfoFormView = (props) => {
|
|
|
6775
7385
|
}, { step: states.step, count: FORM_STEPS }))),
|
|
6776
7386
|
h("h3", null, text.personalInformation),
|
|
6777
7387
|
h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
|
|
6778
|
-
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$
|
|
7388
|
+
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$6.classes.AlertContainer },
|
|
6779
7389
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
6780
7390
|
h("strong", null, text.error.generalTitle),
|
|
6781
7391
|
h("br", null),
|
|
6782
|
-
|
|
6783
|
-
|
|
7392
|
+
intl.formatMessage({
|
|
7393
|
+
id: "generalDescription",
|
|
7394
|
+
defaultMessage: text.error.generalDescription,
|
|
7395
|
+
}, {
|
|
7396
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
7397
|
+
}))),
|
|
7398
|
+
(states.isPartner || states.isUser) && (h("sl-alert", { type: "primary", open: true, class: sheet$6.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
|
|
6784
7399
|
h("sl-icon", { slot: "icon", name: "info-circle" }),
|
|
6785
7400
|
h("strong", null, text.isPartnerAlertHeader),
|
|
6786
7401
|
h("br", null),
|
|
6787
|
-
|
|
7402
|
+
intl.formatMessage({
|
|
7403
|
+
id: "isPartnerAlertDescription",
|
|
7404
|
+
defaultMessage: text.isPartnerAlertDescription,
|
|
7405
|
+
}, {
|
|
7406
|
+
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
7407
|
+
}))),
|
|
6788
7408
|
h("div", null,
|
|
6789
7409
|
h("div", { class: classes.InputContainer },
|
|
6790
7410
|
h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", value: formState.firstName, label: text.firstName, disabled: states.disabled || states.isUser || states.isPartner }, (((_b = formState.errors) === null || _b === void 0 ? void 0 : _b.firstName) ? {
|
|
@@ -6836,10 +7456,7 @@ const UserInfoFormView = (props) => {
|
|
|
6836
7456
|
h("div", { slot: "prefix" }, `${(_a = PHONE_EXTENSIONS[c.countryCode]) === null || _a === void 0 ? void 0 : _a.name} `), (_b = PHONE_EXTENSIONS[c.countryCode]) === null || _b === void 0 ? void 0 :
|
|
6837
7457
|
_b.dial_code));
|
|
6838
7458
|
})),
|
|
6839
|
-
h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", id: "phoneNumber", name: "/phoneNumber", value: formState.phoneNumber, validationError: (
|
|
6840
|
-
// Naive phone number validation
|
|
6841
|
-
validateBillingField(/[a-zA-Z]+/, value) &&
|
|
6842
|
-
formatErrorMessage(text.phoneNumber, text.error.fieldInvalidError), disabled: states.disabled || states.isPartner }, (((_k = formState.errors) === null || _k === void 0 ? void 0 : _k.phoneNumber) ? {
|
|
7459
|
+
h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", id: "phoneNumber", name: "/phoneNumber", value: formState.phoneNumber, validationError: true, disabled: states.disabled || states.isPartner }, (((_k = formState.errors) === null || _k === void 0 ? void 0 : _k.phoneNumber) ? {
|
|
6843
7460
|
class: classes.ErrorInput,
|
|
6844
7461
|
helpText: formatErrorMessage(text.phoneNumber, formState.errors.phoneNumber),
|
|
6845
7462
|
}
|
|
@@ -6917,17 +7534,20 @@ function useUserInfoForm(props) {
|
|
|
6917
7534
|
const [filteredCurrencies, setFilteredCurrencies] = useState(currencies || []);
|
|
6918
7535
|
const [formErrors, setErrors] = useState({});
|
|
6919
7536
|
useEffect(() => {
|
|
6920
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
7537
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
6921
7538
|
const user = data === null || data === void 0 ? void 0 : data.user;
|
|
6922
7539
|
if (!user || step !== "/1")
|
|
6923
7540
|
return;
|
|
6924
7541
|
// If form already filled out, skip initialising it
|
|
6925
7542
|
if (objectIsFull(userFormContext))
|
|
6926
7543
|
return;
|
|
6927
|
-
|
|
7544
|
+
// Prefer MI email if it was verified before this
|
|
7545
|
+
const email = ((_a = user.managedIdentity) === null || _a === void 0 ? void 0 : _a.emailVerified) ? user.managedIdentity.email
|
|
7546
|
+
: user.email;
|
|
7547
|
+
if (((_b = user.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher) && ((_c = user.impactConnection) === null || _c === void 0 ? void 0 : _c.user)) {
|
|
6928
7548
|
// Initialise with partner information
|
|
6929
7549
|
setUserFormContext({
|
|
6930
|
-
email
|
|
7550
|
+
email,
|
|
6931
7551
|
firstName: user.impactConnection.user.firstName,
|
|
6932
7552
|
lastName: user.impactConnection.user.lastName,
|
|
6933
7553
|
countryCode: user.impactConnection.publisher.countryCode,
|
|
@@ -6943,17 +7563,17 @@ function useUserInfoForm(props) {
|
|
|
6943
7563
|
else if (!(userFormContext === null || userFormContext === void 0 ? void 0 : userFormContext.email)) {
|
|
6944
7564
|
// Initialise with user information
|
|
6945
7565
|
setUserFormContext({
|
|
6946
|
-
email
|
|
7566
|
+
email,
|
|
6947
7567
|
firstName: user.firstName,
|
|
6948
7568
|
lastName: user.lastName,
|
|
6949
7569
|
countryCode: user.countryCode || "US",
|
|
6950
|
-
currency: (
|
|
6951
|
-
phoneNumberCountryCode: ((
|
|
6952
|
-
phoneNumber: (
|
|
6953
|
-
address: (
|
|
6954
|
-
city: (
|
|
6955
|
-
state: (
|
|
6956
|
-
postalCode: (
|
|
7570
|
+
currency: (_d = user.customFields) === null || _d === void 0 ? void 0 : _d.currency,
|
|
7571
|
+
phoneNumberCountryCode: ((_e = user.customFields) === null || _e === void 0 ? void 0 : _e.phoneNumberCountryCode) || "US",
|
|
7572
|
+
phoneNumber: (_f = user.customFields) === null || _f === void 0 ? void 0 : _f.phoneNumber,
|
|
7573
|
+
address: (_g = user.customFields) === null || _g === void 0 ? void 0 : _g.address,
|
|
7574
|
+
city: (_h = user.customFields) === null || _h === void 0 ? void 0 : _h.city,
|
|
7575
|
+
state: (_j = user.customFields) === null || _j === void 0 ? void 0 : _j.state,
|
|
7576
|
+
postalCode: (_k = user.customFields) === null || _k === void 0 ? void 0 : _k.postalCode,
|
|
6957
7577
|
});
|
|
6958
7578
|
}
|
|
6959
7579
|
}, [data, step, userFormContext]);
|
|
@@ -7032,6 +7652,8 @@ function useUserInfoForm(props) {
|
|
|
7032
7652
|
const { allowBankingCollection, ...userData } = formData;
|
|
7033
7653
|
setUserFormContext({
|
|
7034
7654
|
...userFormContext,
|
|
7655
|
+
firstName: userData.firstName,
|
|
7656
|
+
lastName: userData.lastName,
|
|
7035
7657
|
phoneNumberCountryCode: userData.phoneNumberCountryCode,
|
|
7036
7658
|
phoneNumber: userData.phoneNumber,
|
|
7037
7659
|
countryCode: userData.countryCode,
|
|
@@ -7168,7 +7790,7 @@ const TaxForm = class {
|
|
|
7168
7790
|
* @uiName Participant is a partner alert description
|
|
7169
7791
|
* @uiWidget textArea
|
|
7170
7792
|
*/
|
|
7171
|
-
this.isPartnerAlertDescription = "If you don’t recognize this referral program provider or believe this is a mistake, please contact
|
|
7793
|
+
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.";
|
|
7172
7794
|
/**
|
|
7173
7795
|
* Part of the alert displayed at the top of the page.
|
|
7174
7796
|
* @uiName Form submission error message title
|
|
@@ -7180,7 +7802,7 @@ const TaxForm = class {
|
|
|
7180
7802
|
* @uiName Form submission error message description
|
|
7181
7803
|
* @uiWidget textArea
|
|
7182
7804
|
*/
|
|
7183
|
-
this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact
|
|
7805
|
+
this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact our {supportLink}.";
|
|
7184
7806
|
/**
|
|
7185
7807
|
* Edit the property called terms and conditions text to change what's displayed for {termsAndConditionsLink}.
|
|
7186
7808
|
* @uiName Terms and conditions checkbox
|
|
@@ -7233,12 +7855,16 @@ const TaxForm = class {
|
|
|
7233
7855
|
* @uiName Page load error message description
|
|
7234
7856
|
* @uiWidget textArea
|
|
7235
7857
|
*/
|
|
7236
|
-
this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact
|
|
7858
|
+
this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact our {supportLink}.";
|
|
7237
7859
|
/**
|
|
7238
7860
|
* Displayed at the top of the page on all set up steps.
|
|
7239
7861
|
* @uiName Page description
|
|
7240
7862
|
*/
|
|
7241
7863
|
this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
|
|
7864
|
+
/**
|
|
7865
|
+
* @uiName Support link text
|
|
7866
|
+
*/
|
|
7867
|
+
this.supportLink = "support team";
|
|
7242
7868
|
h$1(this);
|
|
7243
7869
|
}
|
|
7244
7870
|
disconnectedCallback() { }
|
|
@@ -7314,4 +7940,4 @@ function useDemoUserInfoForm(props) {
|
|
|
7314
7940
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
7315
7941
|
}
|
|
7316
7942
|
|
|
7317
|
-
export { BankingInfoForm as sqm_banking_info_form, DocusignForm as sqm_docusign_form, IndirectTaxForm as sqm_indirect_tax_form, InvoiceTable as sqm_invoice_table, InvoiceTableDataCell as sqm_invoice_table_data_cell, InvoiceTableDataColumn as sqm_invoice_table_data_column, RewardTableDateCell as sqm_invoice_table_date_cell, InvoiceTableDateColumn as sqm_invoice_table_date_column, InvoiceTableDownloadCell as sqm_invoice_table_download_cell, InvoiceTableGenericColumn as sqm_invoice_table_download_column, PayoutDetailsCard as sqm_payout_details_card, TableCell as sqm_table_cell, TableRow as sqm_table_row, TaxAndCashMonolith as sqm_tax_and_cash, TaxAndCashDashboard as sqm_tax_and_cash_dashboard, TaxForm as sqm_user_info_form };
|
|
7943
|
+
export { BankingInfoForm as sqm_banking_info_form, WidgetCodeVerification as sqm_code_verification, DocusignForm as sqm_docusign_form, IndirectTaxForm as sqm_indirect_tax_form, InvoiceTable as sqm_invoice_table, InvoiceTableDataCell as sqm_invoice_table_data_cell, InvoiceTableDataColumn as sqm_invoice_table_data_column, RewardTableDateCell as sqm_invoice_table_date_cell, InvoiceTableDateColumn as sqm_invoice_table_date_column, InvoiceTableDownloadCell as sqm_invoice_table_download_cell, InvoiceTableGenericColumn as sqm_invoice_table_download_column, PayoutDetailsCard as sqm_payout_details_card, TableCell as sqm_table_cell, TableRow as sqm_table_row, TaxAndCashMonolith as sqm_tax_and_cash, TaxAndCashDashboard as sqm_tax_and_cash_dashboard, TaxForm as sqm_user_info_form };
|