@saasquatch/mint-components 1.15.0-40 → 1.15.0-41
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/IndirectTaxDetailsView-d0290a12.js +646 -0
- package/dist/cjs/{ShadowViewAddon-fcd0c52f.js → ShadowViewAddon-9cb7a310.js} +1010 -1062
- package/dist/cjs/data-6d96b89c.js +137 -0
- package/dist/cjs/{email-registration-view-37b44222.js → email-registration-view-dca94dc9.js} +1 -1
- package/dist/cjs/{global-a38a094f.js → global-d62c5561.js} +13 -12
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/mint-components.cjs.js +2 -2
- package/dist/cjs/parseStates-d1effc19.js +16 -0
- package/dist/cjs/{sqm-banking-info-form_17.cjs.entry.js → sqm-banking-info-form_10.cjs.entry.js} +211 -1888
- package/dist/cjs/{sqm-big-stat_41.cjs.entry.js → sqm-big-stat_42.cjs.entry.js} +290 -10
- package/dist/cjs/sqm-code-verification.cjs.entry.js +348 -0
- package/dist/cjs/sqm-email-verification.cjs.entry.js +1 -1
- package/dist/cjs/sqm-empty_4.cjs.entry.js +1 -1
- package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +2 -2
- package/dist/cjs/sqm-invoice-table-data-cell_5.cjs.entry.js +84 -0
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +1 -1
- package/dist/cjs/sqm-pagination_3.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-portal-email-verification-view-26c893d3.js → sqm-portal-email-verification-view-156accab.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-profile-view-674a7543.js → sqm-portal-profile-view-f226725e.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +2 -2
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +1 -1
- package/dist/cjs/sqm-referred-registration.cjs.entry.js +1 -1
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +1 -1
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +11185 -9987
- package/dist/cjs/sqm-tax-and-cash.cjs.entry.js +1221 -0
- package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +11 -3
- package/dist/cjs/sqm-widget-verification.cjs.entry.js +17 -6
- package/dist/cjs/{usePayoutStatus-4b5894ef.js → usePayoutStatus-feeac99b.js} +8 -5
- package/dist/cjs/utils-ce18d1bc.js +105 -0
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/sqm-instant-access-registration/sqm-instant-access-registration.js +2 -2
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step-view.js +3 -3
- package/dist/collection/components/sqm-referral-card/sqm-referral-card-view.js +3 -3
- package/dist/collection/components/sqm-stencilbook/BrandSelector.js +179 -0
- package/dist/collection/components/sqm-stencilbook/Themes.js +21 -17
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +82 -98
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.js +33 -3
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-controller.js +39 -5
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +41 -6
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +12 -8
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js +26 -1
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/usePayoutDetailsCard.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +8 -5
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +77 -28
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +62 -3
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +3 -3
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +5 -4
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +49 -11
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +3 -3
- package/dist/collection/components/views/email-registration-view.js +1 -1
- package/dist/collection/global/styles.js +13 -12
- package/dist/collection/global/styles.ts +26 -12
- package/dist/collection/utils/parseStates.js +12 -0
- package/dist/esm/IndirectTaxDetailsView-3be86bcf.js +639 -0
- package/dist/esm/{ShadowViewAddon-5f9b6d07.js → ShadowViewAddon-d8cfd6c7.js} +1013 -1064
- package/dist/esm/data-a05c78ae.js +121 -0
- package/dist/esm/{email-registration-view-b1c858ee.js → email-registration-view-8782c01b.js} +1 -1
- package/dist/esm/{global-66746c30.js → global-632fb2fa.js} +13 -12
- package/dist/esm/loader.js +2 -2
- package/dist/esm/mint-components.js +2 -2
- package/dist/esm/parseStates-ed75e224.js +14 -0
- package/dist/esm/{sqm-banking-info-form_17.entry.js → sqm-banking-info-form_10.entry.js} +135 -1805
- package/dist/esm/{sqm-big-stat_41.entry.js → sqm-big-stat_42.entry.js} +294 -15
- package/dist/esm/sqm-code-verification.entry.js +344 -0
- package/dist/esm/sqm-email-verification.entry.js +1 -1
- package/dist/esm/sqm-empty_4.entry.js +1 -1
- package/dist/esm/sqm-instant-access-registration.entry.js +2 -2
- package/dist/esm/sqm-invoice-table-data-cell_5.entry.js +76 -0
- package/dist/esm/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm/sqm-pagination_3.entry.js +1 -1
- package/dist/esm/{sqm-portal-email-verification-view-00f03873.js → sqm-portal-email-verification-view-24ea7b3c.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +2 -2
- package/dist/esm/{sqm-portal-profile-view-0d45de87.js → sqm-portal-profile-view-9b4d7ec1.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +2 -2
- package/dist/esm/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm/sqm-referred-registration.entry.js +1 -1
- package/dist/esm/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm/sqm-stencilbook.entry.js +12093 -10895
- package/dist/esm/sqm-tax-and-cash.entry.js +1217 -0
- package/dist/esm/sqm-widget-verification-controller.entry.js +12 -4
- package/dist/esm/sqm-widget-verification.entry.js +17 -6
- package/dist/esm/{usePayoutStatus-58aa56b4.js → usePayoutStatus-fed17fc9.js} +8 -5
- package/dist/esm/utils-1654e233.js +97 -0
- package/dist/esm-es5/IndirectTaxDetailsView-3be86bcf.js +1 -0
- package/dist/esm-es5/ShadowViewAddon-d8cfd6c7.js +1 -0
- package/dist/esm-es5/data-a05c78ae.js +1 -0
- package/dist/esm-es5/email-registration-view-8782c01b.js +1 -0
- package/dist/esm-es5/{global-66746c30.js → global-632fb2fa.js} +5 -5
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/parseStates-ed75e224.js +1 -0
- package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -0
- package/dist/esm-es5/sqm-big-stat_42.entry.js +1 -0
- package/dist/esm-es5/sqm-code-verification.entry.js +1 -0
- 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-instant-access-registration.entry.js +1 -1
- package/dist/esm-es5/sqm-invoice-table-data-cell_5.entry.js +1 -0
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-00f03873.js → sqm-portal-email-verification-view-24ea7b3c.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-0d45de87.js → sqm-portal-profile-view-9b4d7ec1.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.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_9.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-tax-and-cash.entry.js +1 -0
- package/dist/esm-es5/sqm-widget-verification-controller.entry.js +1 -1
- package/dist/esm-es5/sqm-widget-verification.entry.js +1 -1
- package/dist/esm-es5/{usePayoutStatus-58aa56b4.js → usePayoutStatus-fed17fc9.js} +2 -2
- package/dist/esm-es5/utils-1654e233.js +1 -0
- package/dist/mint-components/global/styles.ts +26 -12
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/p-06ce54e2.entry.js +258 -0
- package/dist/mint-components/p-0984523b.js +1 -0
- package/dist/mint-components/p-0a37a288.system.entry.js +1 -0
- package/dist/mint-components/{p-77b8a529.system.entry.js → p-0a8a6d45.system.entry.js} +1 -1
- package/dist/mint-components/p-115dfc03.system.js +1 -0
- package/dist/mint-components/{p-480e08e9.js → p-11dff275.js} +2 -2
- package/dist/mint-components/{p-770bba1b.system.entry.js → p-12e61414.system.entry.js} +1 -1
- package/dist/mint-components/p-13f3a647.js +1 -0
- package/dist/mint-components/p-155cf177.system.js +1 -0
- package/dist/mint-components/{p-dded7d43.entry.js → p-1878da9b.entry.js} +2 -2
- package/dist/mint-components/p-2cfe9826.system.entry.js +1 -0
- package/dist/mint-components/{p-210e8f49.entry.js → p-2df6ce8f.entry.js} +1 -1
- package/dist/mint-components/{p-cfa34cf2.system.js → p-33f640f6.system.js} +1 -1
- package/dist/mint-components/{p-241d68d4.system.entry.js → p-450a7705.system.entry.js} +1 -1
- package/dist/mint-components/p-4841c5e9.system.entry.js +1 -0
- package/dist/mint-components/p-4bb1c4b2.system.js +1 -0
- package/dist/mint-components/p-4cbd7eec.js +394 -0
- package/dist/mint-components/{p-9fe574ca.system.entry.js → p-51aa8c38.system.entry.js} +1 -1
- package/dist/mint-components/p-52d15f87.system.js +1 -0
- package/dist/mint-components/p-5510be1e.system.entry.js +1 -0
- package/dist/mint-components/{p-71f23364.entry.js → p-66d22d46.entry.js} +1 -1
- package/dist/mint-components/p-674b82ac.js +1 -0
- package/dist/mint-components/p-6ef506ba.entry.js +16 -0
- package/dist/mint-components/{p-c024fc32.system.entry.js → p-6fa624ff.system.entry.js} +1 -1
- package/dist/mint-components/{p-d932f43d.entry.js → p-704f162e.entry.js} +1 -1
- package/dist/mint-components/p-70fddbdd.entry.js +11 -0
- package/dist/mint-components/p-780b981b.entry.js +1 -0
- package/dist/mint-components/{p-4caaf25a.js → p-7adb141e.js} +1 -1
- package/dist/mint-components/p-7b731acd.entry.js +93 -0
- package/dist/mint-components/{p-884ac29e.system.entry.js → p-846aff6a.system.entry.js} +1 -1
- package/dist/mint-components/p-84a78d09.entry.js +1 -0
- package/dist/mint-components/{p-3f290d24.system.js → p-96e339f6.system.js} +11 -11
- package/dist/mint-components/p-9711efb7.entry.js +1 -0
- package/dist/mint-components/{p-cc7af682.system.js → p-9721a29a.system.js} +2 -2
- package/dist/mint-components/{p-b0d4938a.system.entry.js → p-9d41d676.system.entry.js} +1 -1
- package/dist/mint-components/{p-d9335f16.js → p-a1e17fd2.js} +1 -1
- package/dist/mint-components/p-a27a15c5.system.entry.js +1 -0
- package/dist/mint-components/{p-0bdeab70.system.js → p-a3383f54.system.js} +1 -1
- package/dist/mint-components/{p-0eb3d919.system.entry.js → p-a91e7c05.system.entry.js} +1 -1
- package/dist/mint-components/p-b73a4df4.entry.js +33 -0
- package/dist/mint-components/p-be89074c.entry.js +1 -0
- package/dist/mint-components/p-c0b07067.system.js +1 -0
- package/dist/mint-components/p-c1b1f8ae.system.entry.js +1 -0
- package/dist/mint-components/p-c75a3b4a.js +103 -0
- package/dist/mint-components/p-c9745c8f.system.js +1 -0
- package/dist/mint-components/{p-1abe7884.system.entry.js → p-cf157c6e.system.entry.js} +1 -1
- package/dist/mint-components/{p-5366850e.entry.js → p-da71337b.entry.js} +1 -1
- package/dist/mint-components/{p-015da96d.entry.js → p-dbb83730.entry.js} +1 -1
- package/dist/mint-components/{p-4f22fda2.js → p-dc293b10.js} +1 -1
- package/dist/mint-components/{p-8e93e590.entry.js → p-df223bff.entry.js} +1 -1
- package/dist/mint-components/{p-e80f9e26.system.entry.js → p-e217afd9.system.entry.js} +1 -1
- package/dist/mint-components/{p-fe6fe9cf.entry.js → p-e5d9e709.entry.js} +2 -2
- package/dist/mint-components/p-eb998f7b.entry.js +9 -0
- package/dist/mint-components/p-f53f5304.system.entry.js +1 -0
- package/dist/mint-components/p-f8175201.system.js +1 -0
- package/dist/mint-components/p-fb13065a.js +1 -0
- package/dist/mint-components/p-fda43e22.system.entry.js +1 -0
- package/dist/types/components/sqm-stencilbook/BrandSelector.d.ts +6 -0
- package/dist/types/components/sqm-stencilbook/Themes.d.ts +4 -5
- package/dist/types/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.d.ts +5 -0
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification-controller.d.ts +5 -0
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +5 -0
- package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +0 -1
- package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +2 -2
- package/dist/types/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.d.ts +4 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +10 -4
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +10 -0
- package/dist/types/components/tax-and-cash/sqm-user-info-form/small-views/IndirectTaxDetailsView.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.d.ts +7 -0
- package/dist/types/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.d.ts +1 -1
- package/dist/types/components/tax-and-cash/utils.d.ts +1 -1
- package/dist/types/components.d.ts +107 -7
- package/dist/types/global/styles.d.ts +6 -1
- package/dist/types/saasquatch.d.ts +61 -0
- package/dist/types/utils/parseStates.d.ts +1 -0
- 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/sqm-invoice-table-view-19ca10fa.js +0 -2038
- package/dist/esm/sqm-invoice-table-view-b7e91eef.js +0 -2022
- package/dist/esm-es5/ShadowViewAddon-5f9b6d07.js +0 -1
- package/dist/esm-es5/email-registration-view-b1c858ee.js +0 -1
- package/dist/esm-es5/sqm-banking-info-form_17.entry.js +0 -1
- package/dist/esm-es5/sqm-big-stat_41.entry.js +0 -1
- package/dist/esm-es5/sqm-invoice-table-view-b7e91eef.js +0 -1
- package/dist/mint-components/p-0480b155.system.entry.js +0 -1
- package/dist/mint-components/p-33c96e14.entry.js +0 -16
- package/dist/mint-components/p-3e604cad.js +0 -1
- package/dist/mint-components/p-5cd684b2.entry.js +0 -9
- package/dist/mint-components/p-6427e963.entry.js +0 -1
- package/dist/mint-components/p-6798d563.system.js +0 -1
- package/dist/mint-components/p-693fc880.system.js +0 -1
- package/dist/mint-components/p-6c1d0367.entry.js +0 -33
- package/dist/mint-components/p-72ff8268.js +0 -1
- package/dist/mint-components/p-8530290b.entry.js +0 -258
- package/dist/mint-components/p-9cf80e85.system.entry.js +0 -1
- package/dist/mint-components/p-a1091368.system.js +0 -1
- package/dist/mint-components/p-a68932b0.system.entry.js +0 -1
- package/dist/mint-components/p-af96b482.entry.js +0 -205
- package/dist/mint-components/p-bf25f63a.js +0 -394
- package/dist/mint-components/p-c36506f6.system.entry.js +0 -1
- package/dist/mint-components/p-d0064d54.system.entry.js +0 -1
- package/dist/mint-components/p-d5e9906e.system.js +0 -1
- package/dist/mint-components/p-f0fdbd82.entry.js +0 -1
- /package/dist/collection/components/tax-and-cash/{sqm-tax-and-cash/data.js → data.js} +0 -0
- /package/dist/types/components/tax-and-cash/{sqm-tax-and-cash/data.d.ts → data.d.ts} +0 -0
|
@@ -1,142 +1,23 @@
|
|
|
1
1
|
import { h, r as registerInstance, c as Host, g as getElement } from './index-91e7729f.js';
|
|
2
|
-
import { m as useRef, k as useState, f as useEffect, n as h$1,
|
|
3
|
-
import { i as intl } from './global-
|
|
4
|
-
import { d as dist, _, L, J, t as Pn, F as Fn, x as $n, $ as $e, i as isDemo, q as En, u as useCallback, R as Rn
|
|
2
|
+
import { m as useRef, k as useState, f as useEffect, n as h$1, u as useMemo, b as browser, j as useReducer } from './stencil-hooks.module-4bc38af4.js';
|
|
3
|
+
import { i as intl } from './global-632fb2fa.js';
|
|
4
|
+
import { d as dist, _, L, J, t as Pn, F as Fn, x as $n, $ as $e, i as isDemo, q as En, u as useCallback, R as Rn } from './index.module-89a79f66.js';
|
|
5
5
|
import { j as jsonpointer } from './jsonpointer-388a7082.js';
|
|
6
6
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
7
|
-
import { g as getProps
|
|
7
|
+
import { g as getProps } from './utils-334c1e34.js';
|
|
8
8
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
9
|
-
import
|
|
9
|
+
import './mixins-f750863a.js';
|
|
10
10
|
import { G as GenericTableView } from './GenericTableView-3b6f9ccc.js';
|
|
11
11
|
import { u as useRerenderListener, a as useRequestRerender } from './re-render-cc945f38.js';
|
|
12
12
|
import { u as useChildElements } from './useChildElements-7945ae56.js';
|
|
13
13
|
import { l as luxon } from './luxon-8d51c92b.js';
|
|
14
14
|
import { g as generateUserError } from './useReferralTable-b3876ed6.js';
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import { b as VERIFICATION_EVENT_KEY
|
|
20
|
-
import { T as TAX_FORM_UPDATED_EVENT_KEY, a as useVeriffApp, g as getStatus, V as VERIFF_COMPLETE_EVENT_KEY } from './usePayoutStatus-
|
|
21
|
-
import { u as useVerificationEmail } from './useVerificationEmail-edc318cb.js';
|
|
22
|
-
|
|
23
|
-
const TAX_CONTEXT_NAMESPACE = "sq:tax-and-cash";
|
|
24
|
-
const TAX_FORM_CONTEXT_NAMESPACE = "sq:tax-form-context";
|
|
25
|
-
const USER_QUERY_NAMESPACE = "sq:user-info-query";
|
|
26
|
-
const USER_FORM_CONTEXT_NAMESPACE = "sq:user-form-context";
|
|
27
|
-
const FINANCE_NETWORK_SETTINGS_NAMESPACE = "sq:finance-network-settings";
|
|
28
|
-
const COUNTRIES_NAMESPACE = "sq:countries:list";
|
|
29
|
-
const SORTED_COUNTRIES_NAMESPACE = "sq:countries:sorted";
|
|
30
|
-
const COUNTRIES_QUERY_NAMESPACE = "sq:countries:query";
|
|
31
|
-
const CURRENCIES_NAMESPACE = "sq:currencies:list";
|
|
32
|
-
const CURRENCIES_QUERY_NAMESPACE = "sq:currencies:query";
|
|
33
|
-
const GET_USER = dist.gql `
|
|
34
|
-
query getUserTaxInfo {
|
|
35
|
-
user: viewer {
|
|
36
|
-
... on User {
|
|
37
|
-
id
|
|
38
|
-
firstName
|
|
39
|
-
lastName
|
|
40
|
-
email
|
|
41
|
-
countryCode
|
|
42
|
-
customFields
|
|
43
|
-
managedIdentity {
|
|
44
|
-
uid
|
|
45
|
-
email
|
|
46
|
-
emailVerified
|
|
47
|
-
}
|
|
48
|
-
impactConnection {
|
|
49
|
-
connected
|
|
50
|
-
user {
|
|
51
|
-
firstName
|
|
52
|
-
lastName
|
|
53
|
-
}
|
|
54
|
-
publisher {
|
|
55
|
-
id
|
|
56
|
-
brandedSignup
|
|
57
|
-
countryCode
|
|
58
|
-
currency
|
|
59
|
-
billingAddress
|
|
60
|
-
billingCity
|
|
61
|
-
billingState
|
|
62
|
-
billingCountryCode
|
|
63
|
-
billingPostalCode
|
|
64
|
-
phoneNumberCountryCode
|
|
65
|
-
phoneNumber
|
|
66
|
-
taxInformation {
|
|
67
|
-
indirectTaxId
|
|
68
|
-
indirectTaxCountryCode
|
|
69
|
-
indirectTaxRegion
|
|
70
|
-
additionalTaxId
|
|
71
|
-
withholdingTaxId
|
|
72
|
-
withholdingTaxCountryCode
|
|
73
|
-
}
|
|
74
|
-
requiredTaxDocumentType
|
|
75
|
-
currentTaxDocument {
|
|
76
|
-
status
|
|
77
|
-
type
|
|
78
|
-
dateCreated
|
|
79
|
-
}
|
|
80
|
-
withdrawalSettings {
|
|
81
|
-
paymentMethod
|
|
82
|
-
paypalEmailAddress
|
|
83
|
-
bankCountry
|
|
84
|
-
bankAccountNumber
|
|
85
|
-
paymentSchedulingType
|
|
86
|
-
paymentThreshold
|
|
87
|
-
paymentDay
|
|
88
|
-
}
|
|
89
|
-
payoutsAccount {
|
|
90
|
-
hold
|
|
91
|
-
holdReasons
|
|
92
|
-
balance
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
`;
|
|
100
|
-
const GET_COUNTRIES = dist.gql `
|
|
101
|
-
query getCountries {
|
|
102
|
-
impactPayoutCountries(limit: 1000) {
|
|
103
|
-
data {
|
|
104
|
-
countryCode
|
|
105
|
-
displayName
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
`;
|
|
110
|
-
const GET_CURRENCIES = dist.gql `
|
|
111
|
-
query currencies($locale: RSLocale) {
|
|
112
|
-
currencies(limit: 300) {
|
|
113
|
-
data {
|
|
114
|
-
displayName(locale: $locale)
|
|
115
|
-
currencyCode
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
`;
|
|
120
|
-
const GET_FINANCE_NETWORK_SETTINGS = dist.gql `
|
|
121
|
-
query impactFinanceNetworkSettings(
|
|
122
|
-
$filter: ImpactFinanceNetworkSettingsFilterInput
|
|
123
|
-
) {
|
|
124
|
-
impactFinanceNetworkSettings(filter: $filter, limit: 1000) {
|
|
125
|
-
data {
|
|
126
|
-
countryCode
|
|
127
|
-
currency
|
|
128
|
-
defaultFinancePaymentMethodId
|
|
129
|
-
thresholdOptions
|
|
130
|
-
withdrawalSettingId
|
|
131
|
-
internationalEftFee
|
|
132
|
-
foreignFxFee
|
|
133
|
-
defaultFxFee
|
|
134
|
-
}
|
|
135
|
-
totalCount
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
`;
|
|
139
|
-
const FORM_STEPS = 4;
|
|
15
|
+
import { a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, O as OtherRegionSlotView, I as InvoiceTableView, v as vatLabels, A as ADDRESS_REGIONS } from './IndirectTaxDetailsView-3be86bcf.js';
|
|
16
|
+
import { t as taxTypeToName, v as validTaxDocument, g as getCountryObj, L as LoadingView, f as formatErrorMessage, a as validateBillingField, o as objectIsFull } from './utils-1654e233.js';
|
|
17
|
+
import { p as parseStates } from './parseStates-ed75e224.js';
|
|
18
|
+
import { i as FORM_STEPS, a as TAX_FORM_CONTEXT_NAMESPACE, S as SORTED_COUNTRIES_NAMESPACE, c as USER_QUERY_NAMESPACE, T as TAX_CONTEXT_NAMESPACE, F as FINANCE_NETWORK_SETTINGS_NAMESPACE, U as USER_FORM_CONTEXT_NAMESPACE, d as COUNTRIES_QUERY_NAMESPACE, C as CURRENCIES_NAMESPACE } from './data-a05c78ae.js';
|
|
19
|
+
import { b as VERIFICATION_EVENT_KEY } from './keys-406491dc.js';
|
|
20
|
+
import { T as TAX_FORM_UPDATED_EVENT_KEY, a as useVeriffApp, g as getStatus, V as VERIFF_COMPLETE_EVENT_KEY } from './usePayoutStatus-fed17fc9.js';
|
|
140
21
|
|
|
141
22
|
function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
142
23
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32;
|
|
@@ -1741,331 +1622,6 @@ function useDemoBankingInfoForm(props) {
|
|
|
1741
1622
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
1742
1623
|
}
|
|
1743
1624
|
|
|
1744
|
-
const style$1 = {
|
|
1745
|
-
Wrapper: {
|
|
1746
|
-
display: "flex",
|
|
1747
|
-
flexDirection: "column",
|
|
1748
|
-
gap: "var(--sl-spacing-medium)",
|
|
1749
|
-
maxWidth: "550px",
|
|
1750
|
-
},
|
|
1751
|
-
HeaderContainer: {
|
|
1752
|
-
display: "flex",
|
|
1753
|
-
flexDirection: "column",
|
|
1754
|
-
},
|
|
1755
|
-
InputsContainer: {
|
|
1756
|
-
display: "flex",
|
|
1757
|
-
gap: "var(--sl-spacing-medium)",
|
|
1758
|
-
position: "relative",
|
|
1759
|
-
flexDirection: "column",
|
|
1760
|
-
},
|
|
1761
|
-
CodeInputContainer: {
|
|
1762
|
-
display: "flex",
|
|
1763
|
-
gap: "var(--sl-spacing-medium)",
|
|
1764
|
-
},
|
|
1765
|
-
CodeInput: {
|
|
1766
|
-
maxWidth: "40px",
|
|
1767
|
-
"&::part(input)": {
|
|
1768
|
-
margin: "0",
|
|
1769
|
-
padding: "0 var(--sl-input-spacing-small)",
|
|
1770
|
-
fontSize: "var(--sl-font-size-large)",
|
|
1771
|
-
},
|
|
1772
|
-
},
|
|
1773
|
-
CodeInputError: {
|
|
1774
|
-
...ErrorStyles,
|
|
1775
|
-
maxWidth: "40px",
|
|
1776
|
-
"&::part(input)": {
|
|
1777
|
-
margin: "0",
|
|
1778
|
-
padding: "0 var(--sl-input-spacing-small)",
|
|
1779
|
-
fontSize: "var(--sl-font-size-large)",
|
|
1780
|
-
},
|
|
1781
|
-
},
|
|
1782
|
-
ErrorText: {
|
|
1783
|
-
color: "var(--sl-color-danger-500)",
|
|
1784
|
-
fontSize: "var(--sl-font-size-small)",
|
|
1785
|
-
margin: "0",
|
|
1786
|
-
},
|
|
1787
|
-
ContinueButton: {
|
|
1788
|
-
width: "100%",
|
|
1789
|
-
maxWidth: "100px",
|
|
1790
|
-
},
|
|
1791
|
-
FooterContainer: {
|
|
1792
|
-
display: "flex",
|
|
1793
|
-
flexDirection: "column",
|
|
1794
|
-
},
|
|
1795
|
-
SkeletonOne: {
|
|
1796
|
-
width: "50%",
|
|
1797
|
-
height: "16px",
|
|
1798
|
-
},
|
|
1799
|
-
SkeletonTwo: {
|
|
1800
|
-
width: "30%",
|
|
1801
|
-
height: "34px",
|
|
1802
|
-
},
|
|
1803
|
-
SkeletonThree: {
|
|
1804
|
-
width: "15%",
|
|
1805
|
-
height: "24px",
|
|
1806
|
-
},
|
|
1807
|
-
};
|
|
1808
|
-
const vanillaStyle$1 = `
|
|
1809
|
-
:host {
|
|
1810
|
-
display: block;
|
|
1811
|
-
}
|
|
1812
|
-
:host([hidden]): {
|
|
1813
|
-
display: none;
|
|
1814
|
-
}
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
`;
|
|
1818
|
-
const sheet$1 = createStyleSheet(style$1);
|
|
1819
|
-
const styleString$1 = sheet$1.toString();
|
|
1820
|
-
function WidgetCodeVerificationView(props) {
|
|
1821
|
-
const { states, refs, callbacks, text } = props;
|
|
1822
|
-
const resendCodeText = intl.formatMessage({
|
|
1823
|
-
id: "resendCodeText",
|
|
1824
|
-
defaultMessage: text.resendCodeText,
|
|
1825
|
-
}, {
|
|
1826
|
-
resendCodeLink: (h("a", { href: "", style: { textDecoration: "none" }, onClick: (e) => {
|
|
1827
|
-
e.preventDefault();
|
|
1828
|
-
callbacks.resendEmail();
|
|
1829
|
-
} }, text.resendCodeLabel)),
|
|
1830
|
-
});
|
|
1831
|
-
const codeResentSuccessfully = intl.formatMessage({
|
|
1832
|
-
id: "codeResentSuccessfully",
|
|
1833
|
-
defaultMessage: text.codeResentSuccessfullyText,
|
|
1834
|
-
}, {
|
|
1835
|
-
email: states.email,
|
|
1836
|
-
});
|
|
1837
|
-
const inputClass = states.verifyFailed
|
|
1838
|
-
? sheet$1.classes.CodeInputError
|
|
1839
|
-
: sheet$1.classes.CodeInput;
|
|
1840
|
-
return (h("div", { part: "sqm-base" },
|
|
1841
|
-
h("style", { type: "text/css" },
|
|
1842
|
-
vanillaStyle$1,
|
|
1843
|
-
styleString$1),
|
|
1844
|
-
h("div", { class: sheet$1.classes.Wrapper },
|
|
1845
|
-
h("div", { class: sheet$1.classes.HeaderContainer },
|
|
1846
|
-
h(TextSpanView, { type: "p" }, intl.formatMessage({
|
|
1847
|
-
id: `emailHeaderText`,
|
|
1848
|
-
defaultMessage: states.verifyFailed
|
|
1849
|
-
? text.reverifyCodeHeaderText
|
|
1850
|
-
: text.verifyCodeHeaderText,
|
|
1851
|
-
}, { email: states.email }))),
|
|
1852
|
-
states.emailResent && (h("sqm-form-message", { type: "success", exportparts: "successalert-icon" },
|
|
1853
|
-
h("b", null, codeResentSuccessfully))),
|
|
1854
|
-
h("div", { class: sheet$1.classes.InputsContainer },
|
|
1855
|
-
h("div", { ref: refs.codeWrapperRef, class: sheet$1.classes.CodeInputContainer },
|
|
1856
|
-
h("sl-input", { class: inputClass, name: "code" }),
|
|
1857
|
-
h("sl-input", { class: inputClass, name: "code" }),
|
|
1858
|
-
h("sl-input", { class: inputClass, name: "code" }),
|
|
1859
|
-
h("sl-input", { class: inputClass, name: "code" }),
|
|
1860
|
-
h("sl-input", { class: inputClass, name: "code" }),
|
|
1861
|
-
h("sl-input", { class: inputClass, name: "code" })),
|
|
1862
|
-
states.verifyFailed && (h("p", { class: sheet$1.classes.ErrorText }, text.invalidCodeText)),
|
|
1863
|
-
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)),
|
|
1864
|
-
h("div", { class: sheet$1.classes.FooterContainer },
|
|
1865
|
-
h(TextSpanView, { type: "p" }, resendCodeText)))));
|
|
1866
|
-
}
|
|
1867
|
-
|
|
1868
|
-
const VerifyEmailWithCodeMutation = dist.gql `
|
|
1869
|
-
mutation submitImpactPublisherEmail2FACode(
|
|
1870
|
-
$user: UserIdInput!
|
|
1871
|
-
$code: String!
|
|
1872
|
-
) {
|
|
1873
|
-
submitImpactPublisherEmail2FACode(user: $user, code: $code) {
|
|
1874
|
-
verifiedEmail
|
|
1875
|
-
accessKey
|
|
1876
|
-
}
|
|
1877
|
-
}
|
|
1878
|
-
`;
|
|
1879
|
-
function useWidgetCodeVerification(props) {
|
|
1880
|
-
const host = l();
|
|
1881
|
-
const [_, setShowCode] = Pn(SHOW_CODE_NAMESPACE);
|
|
1882
|
-
const email = Fn(VERIFICATION_EMAIL_NAMESPACE);
|
|
1883
|
-
const [emailSent, setEmailSent] = useState(false);
|
|
1884
|
-
const [emailResent, setEmailResent] = useState(false);
|
|
1885
|
-
const [codeRef, setCodeRef] = useState(null);
|
|
1886
|
-
const [validationError, setValidationError] = useState(false);
|
|
1887
|
-
const [emailError, setEmailError] = useState(false);
|
|
1888
|
-
const { initialized, verificationEmail, send: [sendEmail, { loading: sendLoading, errors: sendErrors }], verify: [verifyEmail, { loading: verifyLoading, errors: verifyErrors }], } = useVerificationEmail();
|
|
1889
|
-
useEffect(() => {
|
|
1890
|
-
if (!codeRef)
|
|
1891
|
-
return;
|
|
1892
|
-
const slInputs = codeRef.querySelectorAll("sl-input");
|
|
1893
|
-
const codeElements = Array.from(slInputs).map((node) => node.shadowRoot.querySelector(`input[name="code"]`));
|
|
1894
|
-
codeElements.forEach((element, idx) => {
|
|
1895
|
-
element.addEventListener("focus", (e) => {
|
|
1896
|
-
e.target.select();
|
|
1897
|
-
});
|
|
1898
|
-
element.addEventListener("keydown", (e) => {
|
|
1899
|
-
if (e.key === "Backspace" && e.target.value === "") {
|
|
1900
|
-
codeElements[Math.max(0, idx - 1)].focus();
|
|
1901
|
-
}
|
|
1902
|
-
});
|
|
1903
|
-
element.addEventListener("input", (e) => {
|
|
1904
|
-
const input = e.data;
|
|
1905
|
-
if (!input)
|
|
1906
|
-
return;
|
|
1907
|
-
if (idx === codeElements.length - 1) {
|
|
1908
|
-
e.target.value = input.slice(0, 1);
|
|
1909
|
-
return;
|
|
1910
|
-
}
|
|
1911
|
-
if (input.length > 1) {
|
|
1912
|
-
const rest = input.slice(1);
|
|
1913
|
-
e.target.value = input.slice(0, 1);
|
|
1914
|
-
codeElements[idx + 1].dispatchEvent(new InputEvent("input", {
|
|
1915
|
-
inputType: "insertFromPaste",
|
|
1916
|
-
data: rest,
|
|
1917
|
-
}));
|
|
1918
|
-
}
|
|
1919
|
-
codeElements[idx + 1].focus();
|
|
1920
|
-
});
|
|
1921
|
-
});
|
|
1922
|
-
}, [codeRef]);
|
|
1923
|
-
const reset = () => {
|
|
1924
|
-
setShowCode(false);
|
|
1925
|
-
setValidationError(false);
|
|
1926
|
-
};
|
|
1927
|
-
const resendEmail = async () => {
|
|
1928
|
-
// UI should only allow this to be called if initialized, but checking just in case
|
|
1929
|
-
if (!initialized)
|
|
1930
|
-
return;
|
|
1931
|
-
const result = await sendEmail();
|
|
1932
|
-
if (!result) {
|
|
1933
|
-
setEmailError(true);
|
|
1934
|
-
return;
|
|
1935
|
-
}
|
|
1936
|
-
if (emailSent)
|
|
1937
|
-
setEmailResent(true);
|
|
1938
|
-
setEmailSent(true);
|
|
1939
|
-
};
|
|
1940
|
-
const submitCode = async () => {
|
|
1941
|
-
const slInputs = codeRef.querySelectorAll("sl-input");
|
|
1942
|
-
const codeElements = Array.from(slInputs).map((node) => node.shadowRoot.querySelector(`input[name="code"]`));
|
|
1943
|
-
if (codeElements.find((el) => !el.value)) {
|
|
1944
|
-
setValidationError(true);
|
|
1945
|
-
return;
|
|
1946
|
-
}
|
|
1947
|
-
let code = "";
|
|
1948
|
-
codeElements.forEach((element) => {
|
|
1949
|
-
code = `${code}${element.value}`;
|
|
1950
|
-
});
|
|
1951
|
-
// UI should only allow this to be called if initialized, but checking just in case
|
|
1952
|
-
if (!initialized)
|
|
1953
|
-
return;
|
|
1954
|
-
setValidationError(false);
|
|
1955
|
-
const res = await verifyEmail(code);
|
|
1956
|
-
if (res === null || res === void 0 ? void 0 : res.success) {
|
|
1957
|
-
props.onVerification(res.accessKey);
|
|
1958
|
-
reset();
|
|
1959
|
-
}
|
|
1960
|
-
else {
|
|
1961
|
-
setValidationError(true);
|
|
1962
|
-
}
|
|
1963
|
-
};
|
|
1964
|
-
useEffect(() => {
|
|
1965
|
-
// Wait for mutations to be determined from user lookup
|
|
1966
|
-
if (!initialized)
|
|
1967
|
-
return;
|
|
1968
|
-
// email should already exist if user has completed email-verification
|
|
1969
|
-
if (!email)
|
|
1970
|
-
resendEmail();
|
|
1971
|
-
else
|
|
1972
|
-
setEmailSent(true);
|
|
1973
|
-
}, [initialized]);
|
|
1974
|
-
return {
|
|
1975
|
-
refs: {
|
|
1976
|
-
codeWrapperRef: setCodeRef,
|
|
1977
|
-
},
|
|
1978
|
-
states: {
|
|
1979
|
-
email: verificationEmail,
|
|
1980
|
-
emailResent,
|
|
1981
|
-
resendError: sendErrors || verifyErrors,
|
|
1982
|
-
initialiseLoading: !initialized,
|
|
1983
|
-
loading: sendLoading || verifyLoading,
|
|
1984
|
-
verifyFailed: !!validationError,
|
|
1985
|
-
},
|
|
1986
|
-
callbacks: {
|
|
1987
|
-
resendEmail,
|
|
1988
|
-
submitCode,
|
|
1989
|
-
},
|
|
1990
|
-
text: props.getTextProps(),
|
|
1991
|
-
};
|
|
1992
|
-
}
|
|
1993
|
-
|
|
1994
|
-
const WidgetCodeVerification = class {
|
|
1995
|
-
constructor(hostRef) {
|
|
1996
|
-
registerInstance(this, hostRef);
|
|
1997
|
-
/**
|
|
1998
|
-
* @uiName Verify code widget header text
|
|
1999
|
-
*/
|
|
2000
|
-
this.verifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
|
|
2001
|
-
/**
|
|
2002
|
-
* @uiName Reverify code widget header text
|
|
2003
|
-
*/
|
|
2004
|
-
this.reverifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
|
|
2005
|
-
/**
|
|
2006
|
-
* Text displayed under verify button
|
|
2007
|
-
* @uiName Resend code text
|
|
2008
|
-
*/
|
|
2009
|
-
this.resendCodeText = "Didn't receive your code? {resendCodeLink}";
|
|
2010
|
-
/**
|
|
2011
|
-
* The link that appears in the resend code link
|
|
2012
|
-
* @uiName Resend code label
|
|
2013
|
-
*/
|
|
2014
|
-
this.resendCodeLabel = "Resend code";
|
|
2015
|
-
/**
|
|
2016
|
-
* Link text displayed under verify button
|
|
2017
|
-
* @uiName Resend code text
|
|
2018
|
-
*/
|
|
2019
|
-
this.codeResentSuccessfullyText = "Another code has been sent to {email}";
|
|
2020
|
-
/**
|
|
2021
|
-
* Error text displayed under verification input
|
|
2022
|
-
* @uiName Invalid code text
|
|
2023
|
-
*/
|
|
2024
|
-
this.invalidCodeText = "Please check your code and try again. If you’re still having trouble, try resending your code.";
|
|
2025
|
-
/**
|
|
2026
|
-
* @uiName Verify code button text
|
|
2027
|
-
*/
|
|
2028
|
-
this.verifyText = "Verify";
|
|
2029
|
-
/**
|
|
2030
|
-
* Displayed when the email verification fails due to a network error. The participant can try refreshing the page.
|
|
2031
|
-
* @uiName Network error message
|
|
2032
|
-
*/
|
|
2033
|
-
this.networkErrorMessage = "An error occurred while verifying your email. Please refresh the page and try again.";
|
|
2034
|
-
h$1(this);
|
|
2035
|
-
}
|
|
2036
|
-
disconnectedCallback() { }
|
|
2037
|
-
getTextProps() {
|
|
2038
|
-
return getProps(this);
|
|
2039
|
-
}
|
|
2040
|
-
render() {
|
|
2041
|
-
const props = isDemo()
|
|
2042
|
-
? useDemoWidgetCodeVerification(this)
|
|
2043
|
-
: useWidgetCodeVerification(this);
|
|
2044
|
-
return h(WidgetCodeVerificationView, Object.assign({}, props));
|
|
2045
|
-
}
|
|
2046
|
-
};
|
|
2047
|
-
function useDemoWidgetCodeVerification(props) {
|
|
2048
|
-
const [emailResent, setEmailResent] = useState(false);
|
|
2049
|
-
const setVerifiedContext = En(VERIFICATION_PARENT_NAMESPACE);
|
|
2050
|
-
return cjs({
|
|
2051
|
-
states: {
|
|
2052
|
-
loading: false,
|
|
2053
|
-
email: "test@example.com",
|
|
2054
|
-
emailResent,
|
|
2055
|
-
resendError: false,
|
|
2056
|
-
verifyFailed: false,
|
|
2057
|
-
},
|
|
2058
|
-
refs: {
|
|
2059
|
-
codeWrapperRef: () => { },
|
|
2060
|
-
},
|
|
2061
|
-
callbacks: {
|
|
2062
|
-
resendEmail: async () => setEmailResent(true),
|
|
2063
|
-
submitCode: async () => setVerifiedContext(true),
|
|
2064
|
-
},
|
|
2065
|
-
text: props.getTextProps(),
|
|
2066
|
-
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
2067
|
-
}
|
|
2068
|
-
|
|
2069
1625
|
const GET_TAX_DOCUMENT = dist.gql `
|
|
2070
1626
|
mutation createImpactPublisherTaxDocument(
|
|
2071
1627
|
$vars: CreateImpactPublisherTaxDocumentInput!
|
|
@@ -2223,7 +1779,7 @@ function getDocumentType(p) {
|
|
|
2223
1779
|
return undefined;
|
|
2224
1780
|
}
|
|
2225
1781
|
|
|
2226
|
-
const style$
|
|
1782
|
+
const style$1 = {
|
|
2227
1783
|
DocusignStatusContainer: {
|
|
2228
1784
|
width: "100%",
|
|
2229
1785
|
minHeight: "600px",
|
|
@@ -2250,13 +1806,13 @@ const style$2 = {
|
|
|
2250
1806
|
},
|
|
2251
1807
|
},
|
|
2252
1808
|
};
|
|
2253
|
-
const sheet$
|
|
2254
|
-
const styleString$
|
|
1809
|
+
const sheet$1 = createStyleSheet(style$1);
|
|
1810
|
+
const styleString$1 = sheet$1.toString();
|
|
2255
1811
|
const DocusignExpiredView = (props) => {
|
|
2256
|
-
const { classes } = sheet$
|
|
1812
|
+
const { classes } = sheet$1;
|
|
2257
1813
|
const { text } = props;
|
|
2258
1814
|
return (h("div", null,
|
|
2259
|
-
h("style", { type: "text/css" }, styleString$
|
|
1815
|
+
h("style", { type: "text/css" }, styleString$1),
|
|
2260
1816
|
h("div", { class: classes.DocusignStatusContainer },
|
|
2261
1817
|
h("sl-icon", { style: {
|
|
2262
1818
|
width: "50px",
|
|
@@ -2268,10 +1824,10 @@ const DocusignExpiredView = (props) => {
|
|
|
2268
1824
|
h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
|
|
2269
1825
|
};
|
|
2270
1826
|
const DocusignErrorView = (props) => {
|
|
2271
|
-
const { classes } = sheet$
|
|
1827
|
+
const { classes } = sheet$1;
|
|
2272
1828
|
const { text } = props;
|
|
2273
1829
|
return (h("div", null,
|
|
2274
|
-
h("style", { type: "text/css" }, styleString$
|
|
1830
|
+
h("style", { type: "text/css" }, styleString$1),
|
|
2275
1831
|
h("div", { class: classes.DocusignStatusContainer },
|
|
2276
1832
|
h("sl-icon", { style: {
|
|
2277
1833
|
width: "50px",
|
|
@@ -2283,14 +1839,14 @@ const DocusignErrorView = (props) => {
|
|
|
2283
1839
|
h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
|
|
2284
1840
|
};
|
|
2285
1841
|
const DocusignLoadingView = () => {
|
|
2286
|
-
const { classes } = sheet$
|
|
1842
|
+
const { classes } = sheet$1;
|
|
2287
1843
|
return (h("div", null,
|
|
2288
|
-
h("style", { type: "text/css" }, styleString$
|
|
1844
|
+
h("style", { type: "text/css" }, styleString$1),
|
|
2289
1845
|
h("div", { class: classes.DocusignStatusContainer },
|
|
2290
1846
|
h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } }))));
|
|
2291
1847
|
};
|
|
2292
1848
|
const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
2293
|
-
const { classes } = sheet$
|
|
1849
|
+
const { classes } = sheet$1;
|
|
2294
1850
|
const [iFrameHeight, setiFrameHeight] = useState("100%");
|
|
2295
1851
|
const allowedDomains = [
|
|
2296
1852
|
"referralsaasquatch.com",
|
|
@@ -2323,12 +1879,12 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
|
2323
1879
|
return h(DocusignExpiredView, { text: text });
|
|
2324
1880
|
// Wrap iFrame with container that shares the same height to push other elements down when absolute positioned
|
|
2325
1881
|
return (h("div", { style: { height: iFrameHeight } },
|
|
2326
|
-
h("style", { type: "text/css" }, styleString$
|
|
1882
|
+
h("style", { type: "text/css" }, styleString$1),
|
|
2327
1883
|
h("div", { class: classes.IFrameContainer },
|
|
2328
1884
|
h("iframe", { scrolling: "yes", frameBorder: "0", width: "100%", src: data.documentUrl, height: iFrameHeight }))));
|
|
2329
1885
|
};
|
|
2330
1886
|
|
|
2331
|
-
const style$
|
|
1887
|
+
const style$2 = {
|
|
2332
1888
|
FormWrapper: {
|
|
2333
1889
|
display: "flex",
|
|
2334
1890
|
justifyContent: "flex-start",
|
|
@@ -2418,9 +1974,9 @@ const style$3 = {
|
|
|
2418
1974
|
fontSize: "var(--sl-font-size-medium)",
|
|
2419
1975
|
},
|
|
2420
1976
|
};
|
|
2421
|
-
const sheet$
|
|
2422
|
-
const styleString$
|
|
2423
|
-
const vanillaStyle$
|
|
1977
|
+
const sheet$2 = createStyleSheet(style$2);
|
|
1978
|
+
const styleString$2 = sheet$2.toString();
|
|
1979
|
+
const vanillaStyle$1 = `
|
|
2424
1980
|
:host{
|
|
2425
1981
|
display: block;
|
|
2426
1982
|
}
|
|
@@ -2441,11 +1997,11 @@ const vanillaStyle$2 = `
|
|
|
2441
1997
|
const DocusignFormView = (props) => {
|
|
2442
1998
|
var _a;
|
|
2443
1999
|
const { states, states: { formState, documentTypeString }, callbacks, text, slots, } = props;
|
|
2444
|
-
const { classes } = sheet$
|
|
2000
|
+
const { classes } = sheet$2;
|
|
2445
2001
|
return (h("div", { class: classes.Container },
|
|
2446
2002
|
h("style", { type: "text/css" },
|
|
2447
|
-
styleString$
|
|
2448
|
-
vanillaStyle$
|
|
2003
|
+
styleString$2,
|
|
2004
|
+
vanillaStyle$1),
|
|
2449
2005
|
h("div", { class: classes.TextContainer },
|
|
2450
2006
|
h("div", null,
|
|
2451
2007
|
!states.hideSteps && (h("p", null, intl.formatMessage({
|
|
@@ -2455,7 +2011,7 @@ const DocusignFormView = (props) => {
|
|
|
2455
2011
|
h("h3", null, text.taxForm),
|
|
2456
2012
|
h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
|
|
2457
2013
|
states.loadingError && (h("div", null,
|
|
2458
|
-
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$
|
|
2014
|
+
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$2.classes.ErrorAlertContainer },
|
|
2459
2015
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2460
2016
|
h("strong", null, text.error.loadingErrorAlertHeader),
|
|
2461
2017
|
h("br", null),
|
|
@@ -2465,7 +2021,7 @@ const DocusignFormView = (props) => {
|
|
|
2465
2021
|
}, {
|
|
2466
2022
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2467
2023
|
})))),
|
|
2468
|
-
((_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$
|
|
2024
|
+
((_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$2.classes.ErrorAlertContainer },
|
|
2469
2025
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2470
2026
|
h("strong", null, text.error.generalTitle),
|
|
2471
2027
|
h("br", null),
|
|
@@ -2685,7 +2241,7 @@ const DemoDocusignIframe = ({ callbacks }) => {
|
|
|
2685
2241
|
} }, 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")))));
|
|
2686
2242
|
};
|
|
2687
2243
|
|
|
2688
|
-
const style$
|
|
2244
|
+
const style$3 = {
|
|
2689
2245
|
FormWrapper: {
|
|
2690
2246
|
display: "flex",
|
|
2691
2247
|
justifyContent: "flex-start",
|
|
@@ -2817,9 +2373,9 @@ const style$4 = {
|
|
|
2817
2373
|
},
|
|
2818
2374
|
},
|
|
2819
2375
|
};
|
|
2820
|
-
const sheet$
|
|
2821
|
-
const styleString$
|
|
2822
|
-
const vanillaStyle$
|
|
2376
|
+
const sheet$3 = createStyleSheet(style$3);
|
|
2377
|
+
const styleString$3 = sheet$3.toString();
|
|
2378
|
+
const vanillaStyle$2 = `
|
|
2823
2379
|
:host{
|
|
2824
2380
|
display: block;
|
|
2825
2381
|
}
|
|
@@ -2846,11 +2402,11 @@ const vanillaStyle$3 = `
|
|
|
2846
2402
|
const IndirectTaxFormView = (props) => {
|
|
2847
2403
|
var _a;
|
|
2848
2404
|
const { states, states: { formState }, callbacks, text, refs, slots, } = props;
|
|
2849
|
-
const { classes } = sheet$
|
|
2405
|
+
const { classes } = sheet$3;
|
|
2850
2406
|
return (h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
2851
2407
|
h("style", { type: "text/css" },
|
|
2852
|
-
styleString$
|
|
2853
|
-
vanillaStyle$
|
|
2408
|
+
styleString$3,
|
|
2409
|
+
vanillaStyle$2),
|
|
2854
2410
|
h("div", { class: classes.TextContainer },
|
|
2855
2411
|
h("div", null,
|
|
2856
2412
|
!states.hideSteps && (h("p", null,
|
|
@@ -2863,7 +2419,7 @@ const IndirectTaxFormView = (props) => {
|
|
|
2863
2419
|
h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription),
|
|
2864
2420
|
h("p", { class: classes.DescriptionText }, text.indirectTaxDescription)),
|
|
2865
2421
|
states.loadingError && (h("div", null,
|
|
2866
|
-
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$
|
|
2422
|
+
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$3.classes.AlertContainer },
|
|
2867
2423
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2868
2424
|
h("strong", null, text.error.loadingErrorAlertHeader),
|
|
2869
2425
|
h("br", null),
|
|
@@ -2873,7 +2429,7 @@ const IndirectTaxFormView = (props) => {
|
|
|
2873
2429
|
}, {
|
|
2874
2430
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2875
2431
|
})))),
|
|
2876
|
-
((_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$
|
|
2432
|
+
((_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.AlertContainer },
|
|
2877
2433
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2878
2434
|
h("strong", null, text.error.generalTitle),
|
|
2879
2435
|
h("br", null),
|
|
@@ -2883,7 +2439,7 @@ const IndirectTaxFormView = (props) => {
|
|
|
2883
2439
|
}, {
|
|
2884
2440
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2885
2441
|
}))),
|
|
2886
|
-
states.isPartner && (h("sl-alert", { type: "primary", open: true, class: sheet$
|
|
2442
|
+
states.isPartner && (h("sl-alert", { type: "primary", open: true, class: sheet$3.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
|
|
2887
2443
|
h("sl-icon", { slot: "icon", name: "info-circle" }),
|
|
2888
2444
|
h("strong", null, text.isPartnerAlertHeader),
|
|
2889
2445
|
h("br", null),
|
|
@@ -3756,18 +3312,6 @@ function useInvoiceTableDemo(props, emptyElement, loadingElement) {
|
|
|
3756
3312
|
return demoProps;
|
|
3757
3313
|
}
|
|
3758
3314
|
|
|
3759
|
-
const InvoiceTableDataCell = class {
|
|
3760
|
-
constructor(hostRef) {
|
|
3761
|
-
registerInstance(this, hostRef);
|
|
3762
|
-
this.ignored = true;
|
|
3763
|
-
h$1(this);
|
|
3764
|
-
}
|
|
3765
|
-
disconnectedCallback() { }
|
|
3766
|
-
render() {
|
|
3767
|
-
return this.data;
|
|
3768
|
-
}
|
|
3769
|
-
};
|
|
3770
|
-
|
|
3771
3315
|
const InvoiceTableDataColumn = class {
|
|
3772
3316
|
constructor(hostRef) {
|
|
3773
3317
|
registerInstance(this, hostRef);
|
|
@@ -3786,23 +3330,6 @@ const InvoiceTableDataColumn = class {
|
|
|
3786
3330
|
}
|
|
3787
3331
|
};
|
|
3788
3332
|
|
|
3789
|
-
const RewardTableDateCell = class {
|
|
3790
|
-
constructor(hostRef) {
|
|
3791
|
-
registerInstance(this, hostRef);
|
|
3792
|
-
this.ignored = true;
|
|
3793
|
-
this.locale = "en";
|
|
3794
|
-
h$1(this);
|
|
3795
|
-
}
|
|
3796
|
-
disconnectedCallback() { }
|
|
3797
|
-
render() {
|
|
3798
|
-
var _a, _b;
|
|
3799
|
-
const date = !this.date
|
|
3800
|
-
? "-"
|
|
3801
|
-
: (_b = (_a = luxon.DateTime.fromMillis(this.date)) === null || _a === void 0 ? void 0 : _a.setLocale(luxonLocale(this.locale))) === null || _b === void 0 ? void 0 : _b.toLocaleString(luxon.DateTime.DATE_MED);
|
|
3802
|
-
return date;
|
|
3803
|
-
}
|
|
3804
|
-
};
|
|
3805
|
-
|
|
3806
3333
|
const InvoiceTableDateColumn = class {
|
|
3807
3334
|
constructor(hostRef) {
|
|
3808
3335
|
registerInstance(this, hostRef);
|
|
@@ -3821,21 +3348,6 @@ const InvoiceTableDateColumn = class {
|
|
|
3821
3348
|
}
|
|
3822
3349
|
};
|
|
3823
3350
|
|
|
3824
|
-
const InvoiceTableDownloadCell = class {
|
|
3825
|
-
constructor(hostRef) {
|
|
3826
|
-
registerInstance(this, hostRef);
|
|
3827
|
-
this.ignored = true;
|
|
3828
|
-
h$1(this);
|
|
3829
|
-
}
|
|
3830
|
-
disconnectedCallback() { }
|
|
3831
|
-
render() {
|
|
3832
|
-
const vanillaStyle = `svg:hover, svg:hover * {
|
|
3833
|
-
cursor: pointer;
|
|
3834
|
-
}`;
|
|
3835
|
-
return (h(Host, null, h("style", null, vanillaStyle), !!this.downloadUrl && (h("a", { href: this.downloadUrl, target: "_blank" }, h("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M0.625 12.4375C0.79076 12.4375 0.949732 12.5033 1.06694 12.6206C1.18415 12.7378 1.25 12.8967 1.25 13.0625V16.1875C1.25 16.519 1.3817 16.837 1.61612 17.0714C1.85054 17.3058 2.16848 17.4375 2.5 17.4375H17.5C17.8315 17.4375 18.1495 17.3058 18.3839 17.0714C18.6183 16.837 18.75 16.519 18.75 16.1875V13.0625C18.75 12.8967 18.8158 12.7378 18.9331 12.6206C19.0503 12.5033 19.2092 12.4375 19.375 12.4375C19.5408 12.4375 19.6997 12.5033 19.8169 12.6206C19.9342 12.7378 20 12.8967 20 13.0625V16.1875C20 16.8505 19.7366 17.4864 19.2678 17.9553C18.7989 18.4241 18.163 18.6875 17.5 18.6875H2.5C1.83696 18.6875 1.20107 18.4241 0.732233 17.9553C0.263392 17.4864 0 16.8505 0 16.1875V13.0625C0 12.8967 0.065848 12.7378 0.183058 12.6206C0.300269 12.5033 0.45924 12.4375 0.625 12.4375Z", fill: "var(--sqm-text-subdued)" }), h("path", { d: "M9.5575 14.88C9.61556 14.9382 9.68453 14.9844 9.76046 15.0159C9.83639 15.0474 9.91779 15.0636 10 15.0636C10.0822 15.0636 10.1636 15.0474 10.2395 15.0159C10.3155 14.9844 10.3844 14.9382 10.4425 14.88L14.1925 11.13C14.3099 11.0126 14.3758 10.8535 14.3758 10.6875C14.3758 10.5215 14.3099 10.3624 14.1925 10.245C14.0751 10.1276 13.916 10.0617 13.75 10.0617C13.584 10.0617 13.4249 10.1276 13.3075 10.245L10.625 12.9288V1.9375C10.625 1.77174 10.5592 1.61277 10.4419 1.49556C10.3247 1.37835 10.1658 1.3125 10 1.3125C9.83424 1.3125 9.67527 1.37835 9.55806 1.49556C9.44085 1.61277 9.375 1.77174 9.375 1.9375V12.9288L6.6925 10.245C6.57514 10.1276 6.41597 10.0617 6.25 10.0617C6.08403 10.0617 5.92486 10.1276 5.8075 10.245C5.69014 10.3624 5.62421 10.5215 5.62421 10.6875C5.62421 10.8535 5.69014 11.0126 5.8075 11.13L9.5575 14.88Z", fill: "var(--sqm-text-subdued)" }))))));
|
|
3836
|
-
}
|
|
3837
|
-
};
|
|
3838
|
-
|
|
3839
3351
|
const InvoiceTableGenericColumn = class {
|
|
3840
3352
|
constructor(hostRef) {
|
|
3841
3353
|
registerInstance(this, hostRef);
|
|
@@ -3858,7 +3370,7 @@ const PayPalIcon = () => (h("svg", { xmlns: "http://www.w3.org/2000/svg", width:
|
|
|
3858
3370
|
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" }),
|
|
3859
3371
|
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" })));
|
|
3860
3372
|
|
|
3861
|
-
const style$
|
|
3373
|
+
const style$4 = {
|
|
3862
3374
|
CardContainer: {
|
|
3863
3375
|
display: "grid",
|
|
3864
3376
|
gridTemplateColumns: "1fr",
|
|
@@ -3992,7 +3504,7 @@ const style$5 = {
|
|
|
3992
3504
|
},
|
|
3993
3505
|
};
|
|
3994
3506
|
function PayoutDetailsCardView(props) {
|
|
3995
|
-
const sheet = createStyleSheet(style$
|
|
3507
|
+
const sheet = createStyleSheet(style$4);
|
|
3996
3508
|
const styleString = sheet.toString();
|
|
3997
3509
|
const { classes } = sheet;
|
|
3998
3510
|
const { states, text } = props;
|
|
@@ -4122,6 +3634,10 @@ const PayoutDetailsCard = class {
|
|
|
4122
3634
|
* @uiName Payout missing information subtext
|
|
4123
3635
|
*/
|
|
4124
3636
|
this.payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
|
|
3637
|
+
/**
|
|
3638
|
+
* @componentState { "title": "Loading", "props": { "states": { "loading": true } } }
|
|
3639
|
+
*/
|
|
3640
|
+
this.stateController = "{}";
|
|
4125
3641
|
h$1(this);
|
|
4126
3642
|
}
|
|
4127
3643
|
disconnectedCallback() { }
|
|
@@ -4159,1220 +3675,7 @@ function useDemoPayoutDetailsCard(props) {
|
|
|
4159
3675
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
4160
3676
|
}
|
|
4161
3677
|
|
|
4162
|
-
const
|
|
4163
|
-
constructor(hostRef) {
|
|
4164
|
-
registerInstance(this, hostRef);
|
|
4165
|
-
/** @uiName Column span */
|
|
4166
|
-
this.colspan = 1;
|
|
4167
|
-
/** @uiName Padding */
|
|
4168
|
-
this.padding = "15px 10px";
|
|
4169
|
-
}
|
|
4170
|
-
render() {
|
|
4171
|
-
return (h(Host, { style: { display: "contents" } }, h("td", { colSpan: this.colspan, style: { padding: this.padding } }, h("slot", null))));
|
|
4172
|
-
}
|
|
4173
|
-
};
|
|
4174
|
-
|
|
4175
|
-
const TableRow = class {
|
|
4176
|
-
constructor(hostRef) {
|
|
4177
|
-
registerInstance(this, hostRef);
|
|
4178
|
-
/**
|
|
4179
|
-
* @uiName Border
|
|
4180
|
-
*/
|
|
4181
|
-
this.border = "1px solid #EAEAEA";
|
|
4182
|
-
}
|
|
4183
|
-
render() {
|
|
4184
|
-
return (h(Host, { style: { display: "contents" } }, h("tr", { style: { border: this.border } }, h("slot", null))));
|
|
4185
|
-
}
|
|
4186
|
-
};
|
|
4187
|
-
|
|
4188
|
-
function getCurrentStep(user) {
|
|
4189
|
-
var _a, _b;
|
|
4190
|
-
if (!((_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.connected) || !((_b = user.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher)) {
|
|
4191
|
-
return "/1";
|
|
4192
|
-
}
|
|
4193
|
-
const { requiredTaxDocumentType, currentTaxDocument, withdrawalSettings, brandedSignup, } = user.impactConnection.publisher;
|
|
4194
|
-
// If they do have a required document, look at current document
|
|
4195
|
-
if (requiredTaxDocumentType && !currentTaxDocument)
|
|
4196
|
-
return "/3";
|
|
4197
|
-
if (!withdrawalSettings && brandedSignup)
|
|
4198
|
-
return "/4";
|
|
4199
|
-
return "/dashboard";
|
|
4200
|
-
}
|
|
4201
|
-
function useTaxAndCash() {
|
|
4202
|
-
var _a, _b, _c, _d, _e;
|
|
4203
|
-
const host = _();
|
|
4204
|
-
const user = J();
|
|
4205
|
-
const locale = L();
|
|
4206
|
-
// State for current step of form
|
|
4207
|
-
const [step, setStep] = In({
|
|
4208
|
-
namespace: TAX_CONTEXT_NAMESPACE,
|
|
4209
|
-
initialValue: "/loading",
|
|
4210
|
-
});
|
|
4211
|
-
// State for when to hide steps, or override certain actions
|
|
4212
|
-
const [context, _setContext] = In({
|
|
4213
|
-
namespace: TAX_FORM_CONTEXT_NAMESPACE,
|
|
4214
|
-
initialValue: {},
|
|
4215
|
-
});
|
|
4216
|
-
// State to carry user form information into step 2
|
|
4217
|
-
const [userFormContext, _setUserFormContext] = In({
|
|
4218
|
-
namespace: USER_FORM_CONTEXT_NAMESPACE,
|
|
4219
|
-
initialValue: {
|
|
4220
|
-
firstName: undefined,
|
|
4221
|
-
lastName: undefined,
|
|
4222
|
-
email: undefined,
|
|
4223
|
-
countryCode: undefined,
|
|
4224
|
-
currency: undefined,
|
|
4225
|
-
},
|
|
4226
|
-
});
|
|
4227
|
-
const [_currenciesContext, setCurrenciesContext] = In({
|
|
4228
|
-
namespace: CURRENCIES_NAMESPACE,
|
|
4229
|
-
initialValue: [],
|
|
4230
|
-
});
|
|
4231
|
-
const [_countriesContext, _setCountriesContext] = In({
|
|
4232
|
-
namespace: COUNTRIES_NAMESPACE,
|
|
4233
|
-
initialValue: [],
|
|
4234
|
-
});
|
|
4235
|
-
const [_sortedCountriesContext, setSortedCountriesContext] = In({
|
|
4236
|
-
namespace: SORTED_COUNTRIES_NAMESPACE,
|
|
4237
|
-
initialValue: [],
|
|
4238
|
-
});
|
|
4239
|
-
const { data, errors } = Sn({
|
|
4240
|
-
namespace: USER_QUERY_NAMESPACE,
|
|
4241
|
-
query: GET_USER,
|
|
4242
|
-
skip: !user,
|
|
4243
|
-
options: {
|
|
4244
|
-
batch: false,
|
|
4245
|
-
},
|
|
4246
|
-
});
|
|
4247
|
-
const countryCode = ((_c = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher) === null || _c === void 0 ? void 0 : _c.countryCode) ||
|
|
4248
|
-
userFormContext.countryCode;
|
|
4249
|
-
Sn({
|
|
4250
|
-
namespace: COUNTRIES_QUERY_NAMESPACE,
|
|
4251
|
-
query: GET_COUNTRIES,
|
|
4252
|
-
skip: !user,
|
|
4253
|
-
});
|
|
4254
|
-
const { data: financeNetworkData, refetch } = Sn({
|
|
4255
|
-
namespace: FINANCE_NETWORK_SETTINGS_NAMESPACE,
|
|
4256
|
-
query: GET_FINANCE_NETWORK_SETTINGS,
|
|
4257
|
-
skip: !user,
|
|
4258
|
-
variables: {
|
|
4259
|
-
filter: getFinanceNetworkFilter(),
|
|
4260
|
-
},
|
|
4261
|
-
});
|
|
4262
|
-
const { data: currenciesData } = Sn({
|
|
4263
|
-
namespace: CURRENCIES_QUERY_NAMESPACE,
|
|
4264
|
-
query: GET_CURRENCIES,
|
|
4265
|
-
skip: !user,
|
|
4266
|
-
variables: {
|
|
4267
|
-
locale,
|
|
4268
|
-
},
|
|
4269
|
-
});
|
|
4270
|
-
const supportedCurrencies = useMemo(() => {
|
|
4271
|
-
var _a, _b;
|
|
4272
|
-
// Filter out any currencies not supported by finance network settings
|
|
4273
|
-
const allValidCurrencies = (_b = (_a = financeNetworkData === null || financeNetworkData === void 0 ? void 0 : financeNetworkData.impactFinanceNetworkSettings) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.reduce((agg, settings) => {
|
|
4274
|
-
var _a, _b;
|
|
4275
|
-
const currency = (_b = (_a = currenciesData === null || currenciesData === void 0 ? void 0 : currenciesData.currencies) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.find((currency) => currency.currencyCode === settings.currency);
|
|
4276
|
-
// Currency not in supported list
|
|
4277
|
-
if (!currency)
|
|
4278
|
-
return agg;
|
|
4279
|
-
// Currency already added to list
|
|
4280
|
-
if (agg.find((currency) => currency.currencyCode === settings.currency))
|
|
4281
|
-
return agg;
|
|
4282
|
-
// Currency not supported by selected country
|
|
4283
|
-
if (userFormContext.countryCode &&
|
|
4284
|
-
settings.countryCode !== countryCode)
|
|
4285
|
-
return agg;
|
|
4286
|
-
return [...agg, currency];
|
|
4287
|
-
}, []);
|
|
4288
|
-
return allValidCurrencies;
|
|
4289
|
-
}, [financeNetworkData, countryCode]);
|
|
4290
|
-
const intlLocale = (locale === null || locale === void 0 ? void 0 : locale.replace("_", "-")) || "en";
|
|
4291
|
-
const sortByName = (a, b) => a.displayName < b.displayName ? -1 : 1;
|
|
4292
|
-
const paymentOptions = (_d = financeNetworkData === null || financeNetworkData === void 0 ? void 0 : financeNetworkData.impactFinanceNetworkSettings) === null || _d === void 0 ? void 0 : _d.data;
|
|
4293
|
-
// filter out any duplicate countries and null countryCode
|
|
4294
|
-
const availableCountries = useMemo(() => new Set(paymentOptions === null || paymentOptions === void 0 ? void 0 : paymentOptions.map((option) => option.countryCode).filter((value) => value)), [paymentOptions]);
|
|
4295
|
-
const _topCountries = ["CA", "GB", "US"];
|
|
4296
|
-
const sortedCountries = useMemo(() => Array.from(availableCountries)
|
|
4297
|
-
.map((countryCode) => getCountryObj({ countryCode, locale: intlLocale }))
|
|
4298
|
-
.sort(sortByName)
|
|
4299
|
-
.reduce((prev, countryObj) => {
|
|
4300
|
-
if (_topCountries.includes(countryObj.countryCode))
|
|
4301
|
-
return [countryObj, ...prev];
|
|
4302
|
-
return [...prev, countryObj];
|
|
4303
|
-
}, []), [availableCountries]);
|
|
4304
|
-
useEffect(() => {
|
|
4305
|
-
if (sortedCountries)
|
|
4306
|
-
setSortedCountriesContext(sortedCountries);
|
|
4307
|
-
}, [sortedCountries]);
|
|
4308
|
-
useEffect(() => {
|
|
4309
|
-
if (supportedCurrencies)
|
|
4310
|
-
setCurrenciesContext(supportedCurrencies);
|
|
4311
|
-
}, [supportedCurrencies]);
|
|
4312
|
-
useEffect(() => {
|
|
4313
|
-
if (errors) {
|
|
4314
|
-
setStep("/error");
|
|
4315
|
-
return;
|
|
4316
|
-
}
|
|
4317
|
-
if (!host || !user)
|
|
4318
|
-
return;
|
|
4319
|
-
if (data) {
|
|
4320
|
-
const user = data === null || data === void 0 ? void 0 : data.user;
|
|
4321
|
-
if (!user || step !== "/loading")
|
|
4322
|
-
return;
|
|
4323
|
-
const currentStep = getCurrentStep(user);
|
|
4324
|
-
setStep(currentStep);
|
|
4325
|
-
}
|
|
4326
|
-
}, [host, user, (_e = data === null || data === void 0 ? void 0 : data.user) === null || _e === void 0 ? void 0 : _e.email, errors]);
|
|
4327
|
-
function getFinanceNetworkFilter() {
|
|
4328
|
-
var _a, _b, _c;
|
|
4329
|
-
if (step === "/1")
|
|
4330
|
-
return {};
|
|
4331
|
-
if (step === "/4")
|
|
4332
|
-
return { currency_eq: (_c = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher) === null || _c === void 0 ? void 0 : _c.currency };
|
|
4333
|
-
if (countryCode)
|
|
4334
|
-
return {
|
|
4335
|
-
countryCode_eq: countryCode,
|
|
4336
|
-
};
|
|
4337
|
-
return {};
|
|
4338
|
-
}
|
|
4339
|
-
return {
|
|
4340
|
-
step,
|
|
4341
|
-
setStep,
|
|
4342
|
-
context,
|
|
4343
|
-
namespace: Mn(TAX_CONTEXT_NAMESPACE),
|
|
4344
|
-
loading: step === "/loading",
|
|
4345
|
-
};
|
|
4346
|
-
}
|
|
4347
|
-
|
|
4348
|
-
const TaxAndCashMonolith = class {
|
|
4349
|
-
constructor(hostRef) {
|
|
4350
|
-
registerInstance(this, hostRef);
|
|
4351
|
-
/*---------------------------------------------------------------------------------
|
|
4352
|
-
!IMPORTANT!: Make sure to also change the prop names in the respective component
|
|
4353
|
-
-----------------------------------------------------------------------------------*/
|
|
4354
|
-
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4355
|
-
STEP 1 PROPS:
|
|
4356
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
4357
|
-
/**
|
|
4358
|
-
* @uiName First name field label
|
|
4359
|
-
* @uiGroup Step 1 Properties
|
|
4360
|
-
*/
|
|
4361
|
-
this.step1_firstName = "First name";
|
|
4362
|
-
/**
|
|
4363
|
-
* @uiName Last name field label
|
|
4364
|
-
* @uiGroup Step 1 Properties
|
|
4365
|
-
*/
|
|
4366
|
-
this.step1_lastName = "Last name";
|
|
4367
|
-
/**
|
|
4368
|
-
* @uiName Email field label
|
|
4369
|
-
* @uiGroup Step 1 Properties
|
|
4370
|
-
*/
|
|
4371
|
-
this.step1_email = "Email";
|
|
4372
|
-
/**
|
|
4373
|
-
* @uiName Country field label
|
|
4374
|
-
* @uiGroup Step 1 Properties
|
|
4375
|
-
*/
|
|
4376
|
-
this.step1_country = "Country";
|
|
4377
|
-
/**
|
|
4378
|
-
* @uiName Phone number field label
|
|
4379
|
-
* @uiGroup Step 1 Properties
|
|
4380
|
-
*/
|
|
4381
|
-
this.step1_phoneNumber = "Phone number";
|
|
4382
|
-
/**
|
|
4383
|
-
* @uiName Address field label
|
|
4384
|
-
* @uiGroup Step 1 Properties
|
|
4385
|
-
*/
|
|
4386
|
-
this.step1_address = "Address";
|
|
4387
|
-
/**
|
|
4388
|
-
* @uiName City field label
|
|
4389
|
-
* @uiGroup Step 1 Properties
|
|
4390
|
-
*/
|
|
4391
|
-
this.step1_city = "City";
|
|
4392
|
-
/**
|
|
4393
|
-
* @uiName State field label for states
|
|
4394
|
-
* @uiGroup Step 1 Properties
|
|
4395
|
-
*/
|
|
4396
|
-
this.step1_state = "State";
|
|
4397
|
-
/**
|
|
4398
|
-
* @uiName State field label for provinces
|
|
4399
|
-
* @uiGroup Step 1 Properties
|
|
4400
|
-
*/
|
|
4401
|
-
this.step1_province = "Province";
|
|
4402
|
-
/**
|
|
4403
|
-
* @uiName State field label for regions
|
|
4404
|
-
* @uiGroup Step 1 Properties
|
|
4405
|
-
*/
|
|
4406
|
-
this.step1_region = "Region";
|
|
4407
|
-
/**
|
|
4408
|
-
* @uiName Postal code field label
|
|
4409
|
-
* @uiGroup Step 1 Properties
|
|
4410
|
-
*/
|
|
4411
|
-
this.step1_postalCode = "Postal code";
|
|
4412
|
-
/**
|
|
4413
|
-
* @uiName Currency field label
|
|
4414
|
-
* @uiGroup Step 1 Properties
|
|
4415
|
-
*/
|
|
4416
|
-
this.step1_currency = "Currency";
|
|
4417
|
-
/**
|
|
4418
|
-
* @uiName Currency field help text
|
|
4419
|
-
* @uiGroup Step 1 Properties
|
|
4420
|
-
*/
|
|
4421
|
-
this.step1_currencyHelpText = "Choose your preferred payout currency";
|
|
4422
|
-
/**
|
|
4423
|
-
* Edit the property called terms and conditions text to change what's displayed for {termsAndConditionsLink}.
|
|
4424
|
-
* @uiName Terms and conditions checkbox
|
|
4425
|
-
* @uiGroup Step 1 Properties
|
|
4426
|
-
*/
|
|
4427
|
-
this.step1_allowBankingCollection = "I have read the {termsAndConditionsLink} and allow impact.com to collect my tax and banking information";
|
|
4428
|
-
/**
|
|
4429
|
-
* @uiName Step 1 title
|
|
4430
|
-
* @uiGroup Step 1 Properties
|
|
4431
|
-
*/
|
|
4432
|
-
this.step1_personalInformation = "Personal Information";
|
|
4433
|
-
/**
|
|
4434
|
-
* The link text that appears in the terms and conditions checkbox
|
|
4435
|
-
* @uiName Terms and conditions text
|
|
4436
|
-
* @uiGroup Step 1 Properties
|
|
4437
|
-
* @uiWidget textArea
|
|
4438
|
-
*/
|
|
4439
|
-
this.step1_termsAndConditionsLabel = "terms and conditions";
|
|
4440
|
-
/**
|
|
4441
|
-
* The link that appears in the terms and conditions checkbox
|
|
4442
|
-
* @uiName Terms and conditions link
|
|
4443
|
-
* @uiGroup Step 1 Properties
|
|
4444
|
-
*/
|
|
4445
|
-
this.step1_termsAndConditionsLink = "https://terms.advocate.impact.com/PayoutTermsAndConditions.html";
|
|
4446
|
-
/**
|
|
4447
|
-
* Placeholder text displayed in the currency search dropdown
|
|
4448
|
-
* @uiName Currency field placeholder text
|
|
4449
|
-
* @uiGroup Step 1 Properties
|
|
4450
|
-
*/
|
|
4451
|
-
this.step1_searchForCurrencyText = "Search for currency..";
|
|
4452
|
-
/**
|
|
4453
|
-
|
|
4454
|
-
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4455
|
-
STEP 2 PROPS:
|
|
4456
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
4457
|
-
/**
|
|
4458
|
-
* @uiName Step 2 title
|
|
4459
|
-
* @uiGroup Step 2 Properties
|
|
4460
|
-
*/
|
|
4461
|
-
this.step2_indirectTax = "Indirect Tax";
|
|
4462
|
-
/**
|
|
4463
|
-
* Displayed under the title of this step.
|
|
4464
|
-
* @uiName Step 2 description
|
|
4465
|
-
* @uiGroup Step 2 Properties
|
|
4466
|
-
* @uiWidget textArea
|
|
4467
|
-
*/
|
|
4468
|
-
this.step2_indirectTaxDescription = "Indirect taxes (e.g. VAT, HST, GST) are transaction based taxes often applied to goods and services. Service providers are typically required to register with their tax authority and collect these taxes on behalf governments.";
|
|
4469
|
-
/**
|
|
4470
|
-
* Displayed with indirect tax registration options.
|
|
4471
|
-
* @uiName Indirect tax details section title
|
|
4472
|
-
* @uiGroup Step 2 Properties
|
|
4473
|
-
*/
|
|
4474
|
-
this.step2_indirectTaxDetails = "Indirect tax details";
|
|
4475
|
-
/**
|
|
4476
|
-
* @uiName Registered for indirect tax option
|
|
4477
|
-
* @uiGroup Step 2 Properties
|
|
4478
|
-
* @uiWidget textArea
|
|
4479
|
-
*
|
|
4480
|
-
*/
|
|
4481
|
-
this.step2_otherRegion = "Registered for indirect tax";
|
|
4482
|
-
/**
|
|
4483
|
-
* Selecting this option will display fields to enter indirect tax details.
|
|
4484
|
-
* @uiName Registered for indirect tax option description
|
|
4485
|
-
* @uiGroup Step 2 Properties
|
|
4486
|
-
*/
|
|
4487
|
-
this.step2_otherRegionSubtext = "If you’ve registered with your tax authority, add your information to stay tax compliant.";
|
|
4488
|
-
/**
|
|
4489
|
-
* @uiName Not registered for indirect tax option
|
|
4490
|
-
* @uiGroup Step 2 Properties
|
|
4491
|
-
* @uiWidget textArea
|
|
4492
|
-
*/
|
|
4493
|
-
this.step2_notRegistered = "Not registered for indirect tax";
|
|
4494
|
-
/**
|
|
4495
|
-
* Participants based in the US are considered not registered.
|
|
4496
|
-
* @uiName Not registered for indirect tax option description
|
|
4497
|
-
* @uiGroup Step 2 Properties
|
|
4498
|
-
*/
|
|
4499
|
-
this.step2_notRegisteredSubtext = "If you’ve never set up indirect tax with your tax authority, then you’re likely not considered registered.";
|
|
4500
|
-
/**
|
|
4501
|
-
* @uiName Region of indirect tax field label
|
|
4502
|
-
* @uiGroup Step 2 Properties
|
|
4503
|
-
*/
|
|
4504
|
-
this.step2_selectedRegion = "Country / region of indirect tax";
|
|
4505
|
-
/**
|
|
4506
|
-
* @uiName Indirect tax number field label
|
|
4507
|
-
* @uiGroup Step 2 Properties
|
|
4508
|
-
*/
|
|
4509
|
-
this.step2_indirectTaxNumber = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}}";
|
|
4510
|
-
/**
|
|
4511
|
-
* @uiName Province field label
|
|
4512
|
-
* @uiGroup Step 2 Properties
|
|
4513
|
-
*/
|
|
4514
|
-
this.step2_province = "Province";
|
|
4515
|
-
/**
|
|
4516
|
-
* @uiName Missing indirect tax number error message
|
|
4517
|
-
* @uiGroup Step 2 Properties
|
|
4518
|
-
*/
|
|
4519
|
-
this.step2_indirectTaxNumberError = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}} is required";
|
|
4520
|
-
/**
|
|
4521
|
-
* Displayed to participants registered for QST.
|
|
4522
|
-
* @uiName QST number field label
|
|
4523
|
-
* @uiGroup Step 2 Properties
|
|
4524
|
-
*/
|
|
4525
|
-
this.step2_qstNumber = "QST number";
|
|
4526
|
-
/**
|
|
4527
|
-
* Displayed to participants registered for indirect tax in Quebec, Canada.
|
|
4528
|
-
* @uiName QST tax checkbox
|
|
4529
|
-
* @uiGroup Step 2 Properties
|
|
4530
|
-
*/
|
|
4531
|
-
this.step2_isRegisteredQST = "I am registered for QST Tax";
|
|
4532
|
-
/**
|
|
4533
|
-
* Displayed to participants registered for indirect tax in Spain.
|
|
4534
|
-
* @uiName Spain income tax checkbox
|
|
4535
|
-
* @uiGroup Step 2 Properties
|
|
4536
|
-
* @uiWidget textArea
|
|
4537
|
-
*/
|
|
4538
|
-
this.step2_isRegisteredSubRegionIncomeTax = "I am an individual registered for Income Tax purposes in Spain, and withholding tax will apply to any payments made to me.";
|
|
4539
|
-
/**
|
|
4540
|
-
* Displayed to participants registered in Spain.
|
|
4541
|
-
* @uiName Sub-region of indirect tax field label
|
|
4542
|
-
* @uiGroup Step 2 Properties
|
|
4543
|
-
*/
|
|
4544
|
-
this.step2_subRegion = "Sub-region";
|
|
4545
|
-
/**
|
|
4546
|
-
* @uiName Income tax field label
|
|
4547
|
-
* @uiGroup Step 2 Properties
|
|
4548
|
-
*/
|
|
4549
|
-
this.step2_subRegionTaxNumberLabel = "Income Tax Number";
|
|
4550
|
-
/**
|
|
4551
|
-
* Communicate that after this step, only Support can change personal and indirect tax information.
|
|
4552
|
-
* @uiName Submission confirmation alert
|
|
4553
|
-
* @uiGroup Step 2 Properties
|
|
4554
|
-
* @uiWidget textArea
|
|
4555
|
-
*/
|
|
4556
|
-
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.";
|
|
4557
|
-
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4558
|
-
STEP 3 PROPS:
|
|
4559
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
4560
|
-
/**
|
|
4561
|
-
* @uiName Step 3 title
|
|
4562
|
-
* @uiGroup Step 3 Properties
|
|
4563
|
-
*/
|
|
4564
|
-
this.step3_taxForm = "Tax form";
|
|
4565
|
-
/**
|
|
4566
|
-
* Display the type of tax form that the participant must submit.
|
|
4567
|
-
* @uiName Tax form name
|
|
4568
|
-
* @uiGroup Step 3 Properties
|
|
4569
|
-
*/
|
|
4570
|
-
this.step3_taxFormLabel = "{documentType} Tax Form";
|
|
4571
|
-
/**
|
|
4572
|
-
* @uiName Participant type field label
|
|
4573
|
-
* @uiGroup Step 3 Properties
|
|
4574
|
-
*/
|
|
4575
|
-
this.step3_participantType = "Participant type";
|
|
4576
|
-
/**
|
|
4577
|
-
* An option for the participant type field. Used to determine which W-8 form is required.
|
|
4578
|
-
* @uiName Business representative participant type label
|
|
4579
|
-
* @uiGroup Step 3 Properties
|
|
4580
|
-
*/
|
|
4581
|
-
this.step3_businessEntity = "I represent a business";
|
|
4582
|
-
/**
|
|
4583
|
-
* An option for the participant type field. Used to determine which W-8 form is required.
|
|
4584
|
-
* @uiName Individual participant type label
|
|
4585
|
-
* @uiGroup Step 3 Properties
|
|
4586
|
-
*/
|
|
4587
|
-
this.step3_individualParticipant = "I am an individual participant";
|
|
4588
|
-
/**
|
|
4589
|
-
* Displayed at the top of the page to participants based in the US.
|
|
4590
|
-
* @uiName W-9 tax form description
|
|
4591
|
-
* @uiGroup Step 3 Properties
|
|
4592
|
-
* @uiWidget textArea
|
|
4593
|
-
*/
|
|
4594
|
-
this.step3_taxFormDescription = "Participants based in the US need to submit a {documentType} form.";
|
|
4595
|
-
/**
|
|
4596
|
-
* Displayed at the top of the page to individuals joining a US program who reside outside the country.
|
|
4597
|
-
* @uiName W-8 BEN tax form description
|
|
4598
|
-
* @uiGroup Step 3 Properties
|
|
4599
|
-
* @uiWidget textArea
|
|
4600
|
-
*/
|
|
4601
|
-
this.step3_taxFormDescriptionIndividualParticipant = "Participants residing outside of the US, joining the referral program of a US-based company, need to submit a {documentType} form.";
|
|
4602
|
-
/**
|
|
4603
|
-
* Displayed at the top of the page to participants representing a business.
|
|
4604
|
-
* @uiName W-8 BEN-E tax form description
|
|
4605
|
-
* @uiGroup Step 3 Properties
|
|
4606
|
-
* @uiWidget textArea
|
|
4607
|
-
*/
|
|
4608
|
-
this.step3_taxFormDescriptionBusinessEntity = "Participants residing outside of the US who represent a business entity need to submit a {documentType} form.";
|
|
4609
|
-
/**
|
|
4610
|
-
* This appears inside the Docusign frame.
|
|
4611
|
-
* @uiName Docusign session expired message
|
|
4612
|
-
* @uiGroup Step 3 Properties
|
|
4613
|
-
* @uiWidget textArea
|
|
4614
|
-
*/
|
|
4615
|
-
this.step3_docusignExpired = "For your security and privacy, we automatically end your session after 20 minutes of inactivity. Please refresh and re-enter your tax information to continue.";
|
|
4616
|
-
/**
|
|
4617
|
-
* Remind participants their session will time out after 20 minutes of inactivity.
|
|
4618
|
-
* @uiName Docusign timed session message
|
|
4619
|
-
* @uiGroup Step 3 Properties
|
|
4620
|
-
* @uiWidget textArea
|
|
4621
|
-
*/
|
|
4622
|
-
this.step3_docusignSessionWarning = "For your security, we automatically end your session when you have not interacted with the form after 20 minutes.";
|
|
4623
|
-
/**
|
|
4624
|
-
* This appears inside the Docusign frame.
|
|
4625
|
-
* @uiName Docusign form error message
|
|
4626
|
-
* @uiGroup Step 3 Properties
|
|
4627
|
-
* @uiWidget textArea
|
|
4628
|
-
*/
|
|
4629
|
-
this.step3_docusignError = "There was a problem displaying this form. Please refresh the page. If this problem continues, contact our {supportLink}.";
|
|
4630
|
-
/**
|
|
4631
|
-
* @uiName Refresh page button label
|
|
4632
|
-
* @uiGroup Step 3 Properties
|
|
4633
|
-
*/
|
|
4634
|
-
this.step3_refreshButton = "Refresh Page";
|
|
4635
|
-
/**
|
|
4636
|
-
* @uiName Exit button text
|
|
4637
|
-
* @uiGroup Step 3 Properties
|
|
4638
|
-
*/
|
|
4639
|
-
this.step3_exitButton = "Exit";
|
|
4640
|
-
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4641
|
-
STEP 4 PROPS:
|
|
4642
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
4643
|
-
/**
|
|
4644
|
-
* @uiName Step 4 title
|
|
4645
|
-
* @uiGroup Step 4 Properties
|
|
4646
|
-
*/
|
|
4647
|
-
this.step4_taxAndPayouts = "Payouts";
|
|
4648
|
-
/**
|
|
4649
|
-
* @uiName Direct to bank payout option
|
|
4650
|
-
* @uiGroup Step 4 Properties
|
|
4651
|
-
*/
|
|
4652
|
-
this.step4_directlyToBankAccount = "Directly to my bank account";
|
|
4653
|
-
/**
|
|
4654
|
-
* @uiName PayPal payout option
|
|
4655
|
-
* @uiGroup Step 4 Properties
|
|
4656
|
-
*/
|
|
4657
|
-
this.step4_toPayPalAccount = "PayPal (2% processing fee capped to {feeCap})";
|
|
4658
|
-
/**
|
|
4659
|
-
* @uiName Threshold balance payment schedule option
|
|
4660
|
-
* @uiGroup Step 4 Properties
|
|
4661
|
-
*/
|
|
4662
|
-
this.step4_paymentScheduleBalanceThreshold = "Pay me when my balance reaches a threshold";
|
|
4663
|
-
/**
|
|
4664
|
-
* @uiName Fixed day payment schedule option
|
|
4665
|
-
* @uiGroup Step 4 Properties
|
|
4666
|
-
*/
|
|
4667
|
-
this.step4_paymentScheduleFixedDay = "Pay me on a fixed day of the month";
|
|
4668
|
-
/**
|
|
4669
|
-
* Let the participant choose what day of the month they’ll get paid
|
|
4670
|
-
* @uiName Payment day field label
|
|
4671
|
-
* @uiGroup Step 4 Properties
|
|
4672
|
-
*/
|
|
4673
|
-
this.step4_paymentDaySelectLabel = "Payment Day";
|
|
4674
|
-
/**
|
|
4675
|
-
* Participant use this field to select the balance at which they want to be paid
|
|
4676
|
-
* @uiName Payment threshold field label
|
|
4677
|
-
* @uiGroup Step 4 Properties
|
|
4678
|
-
*/
|
|
4679
|
-
this.step4_paymentThresholdSelectLabel = "Payment threshold";
|
|
4680
|
-
/**
|
|
4681
|
-
* One of two payment day options
|
|
4682
|
-
* @uiName First of month payday option
|
|
4683
|
-
* @uiGroup Step 4 Properties
|
|
4684
|
-
*/
|
|
4685
|
-
this.step4_paymentDayFirstOfMonthLabelText = "1st of the month";
|
|
4686
|
-
/**
|
|
4687
|
-
* One of two payment day options
|
|
4688
|
-
* @uiName Fifteenth of month payday option
|
|
4689
|
-
* @uiGroup Step 4 Properties
|
|
4690
|
-
*/
|
|
4691
|
-
this.step4_paymentDayFifteenthOfMonthLabelText = "15th of the month";
|
|
4692
|
-
/**
|
|
4693
|
-
* @uiName Payment method section header
|
|
4694
|
-
* @uiGroup Step 4 Properties
|
|
4695
|
-
*/
|
|
4696
|
-
this.step4_paymentMethod = "Payment method";
|
|
4697
|
-
/**
|
|
4698
|
-
* @uiName Payment schedule section header
|
|
4699
|
-
* @uiGroup Step 4 Properties
|
|
4700
|
-
*/
|
|
4701
|
-
this.step4_paymentSchedule = "Payment schedule";
|
|
4702
|
-
/**
|
|
4703
|
-
* @uiName Payment method section description
|
|
4704
|
-
* @uiGroup Step 4 Properties
|
|
4705
|
-
*/
|
|
4706
|
-
this.step4_paymentMethodSubtext = "Payouts will be sent from our referral program provider, impact.com.";
|
|
4707
|
-
/**
|
|
4708
|
-
* Displayed to participants who choose PayPal as their payout method
|
|
4709
|
-
* @uiName PayPal email field label
|
|
4710
|
-
* @uiGroup Step 4 Properties
|
|
4711
|
-
*/
|
|
4712
|
-
this.step4_payPalInputLabel = "PayPal email";
|
|
4713
|
-
/**
|
|
4714
|
-
* @uiName Bank country field label
|
|
4715
|
-
* @uiGroup Step 4 Properties
|
|
4716
|
-
*/
|
|
4717
|
-
this.step4_bankLocationLabel = "Bank country location";
|
|
4718
|
-
/**
|
|
4719
|
-
* @uiName Beneficiary account field label
|
|
4720
|
-
* @uiGroup Step 4 Properties
|
|
4721
|
-
*/
|
|
4722
|
-
this.step4_beneficiaryAccountNameLabel = "Beneficiary account name";
|
|
4723
|
-
/**
|
|
4724
|
-
* @uiName Bank account type field label
|
|
4725
|
-
* @uiGroup Step 4 Properties
|
|
4726
|
-
*/
|
|
4727
|
-
this.step4_bankAccountTypeLabel = "Bank account type";
|
|
4728
|
-
/**
|
|
4729
|
-
* @uiName Checking account option
|
|
4730
|
-
* @uiGroup Step 4 Properties
|
|
4731
|
-
*/
|
|
4732
|
-
this.step4_checkingSelectItemLabel = "Checking";
|
|
4733
|
-
/**
|
|
4734
|
-
* Label text for the savings account type select item
|
|
4735
|
-
* @uiName Savings account options
|
|
4736
|
-
* @uiGroup Step 4 Properties
|
|
4737
|
-
*/
|
|
4738
|
-
this.step4_savingsSelectItemLabel = "Savings";
|
|
4739
|
-
/**
|
|
4740
|
-
* @uiName Bank account number field label
|
|
4741
|
-
* @uiGroup Step 4 Properties
|
|
4742
|
-
*/
|
|
4743
|
-
this.step4_bankAccountNumberLabel = "Bank account number";
|
|
4744
|
-
/**
|
|
4745
|
-
* @uiName IBAN field label
|
|
4746
|
-
* @uiGroup Step 4 Properties
|
|
4747
|
-
*/
|
|
4748
|
-
this.step4_ibanLabel = "IBAN";
|
|
4749
|
-
/**
|
|
4750
|
-
* @uiName SWIFT code field label
|
|
4751
|
-
* @uiGroup Step 4 Properties
|
|
4752
|
-
*/
|
|
4753
|
-
this.step4_swiftCodeLabel = "SWIFT code";
|
|
4754
|
-
/**
|
|
4755
|
-
* @uiName Routing code field label
|
|
4756
|
-
* @uiGroup Step 4 Properties
|
|
4757
|
-
*/
|
|
4758
|
-
this.step4_routingCodeLabel = "{bankCountry, select, AU {BSB number} CA {Routing number} CZ {Bank code} HK {Clearing code} SG {Clearing code} US {ABA routing number} NZ {BSB number} ZA {Bank/Branch number} IN {IFSC} CNY {CNAPS} other {Routing code} }";
|
|
4759
|
-
/**
|
|
4760
|
-
* @uiName Bank name field label
|
|
4761
|
-
* @uiGroup Step 4 Properties
|
|
4762
|
-
*/
|
|
4763
|
-
this.step4_bankNameLabel = "Bank name";
|
|
4764
|
-
/**
|
|
4765
|
-
* @uiName Classification entity field label
|
|
4766
|
-
* @uiGroup Step 4 Properties
|
|
4767
|
-
*/
|
|
4768
|
-
this.step4_classificationEntityLabel = "Classification entity";
|
|
4769
|
-
/**
|
|
4770
|
-
* One of three options listed for the classification field
|
|
4771
|
-
* @uiName Business classification option
|
|
4772
|
-
* @uiGroup Step 4 Properties
|
|
4773
|
-
*/
|
|
4774
|
-
this.step4_businessSelectItemLabel = "Business";
|
|
4775
|
-
/**
|
|
4776
|
-
* One of three options listed for the classification field
|
|
4777
|
-
* @uiName Individual classification option
|
|
4778
|
-
* @uiGroup Step 4 Properties
|
|
4779
|
-
*/
|
|
4780
|
-
this.step4_individualSelectItemLabel = "Individual";
|
|
4781
|
-
/**
|
|
4782
|
-
* One of three options listed for the classification field
|
|
4783
|
-
* @uiName Foreign classification option
|
|
4784
|
-
* @uiGroup Step 4 Properties
|
|
4785
|
-
*/
|
|
4786
|
-
this.step4_foreignSelectItemLabel = "Foreign";
|
|
4787
|
-
/**
|
|
4788
|
-
* @uiName Classification CPF field label
|
|
4789
|
-
* @uiGroup Step 4 Properties
|
|
4790
|
-
*/
|
|
4791
|
-
this.step4_classificationCPFLabel = "Classification CPF";
|
|
4792
|
-
/**
|
|
4793
|
-
* @uiName Patronymic name field label
|
|
4794
|
-
* @uiGroup Step 4 Properties
|
|
4795
|
-
*/
|
|
4796
|
-
this.step4_patronymicNameLabel = "Patronymic name";
|
|
4797
|
-
/**
|
|
4798
|
-
* @uiName VO code field label
|
|
4799
|
-
* @uiGroup Step 4 Properties
|
|
4800
|
-
*/
|
|
4801
|
-
this.step4_voCodeLabel = "VO code";
|
|
4802
|
-
/**
|
|
4803
|
-
* @uiName Agency code field label
|
|
4804
|
-
* @uiGroup Step 4 Properties
|
|
4805
|
-
*/
|
|
4806
|
-
this.step4_agencyCodeLabel = "Agency code";
|
|
4807
|
-
/**
|
|
4808
|
-
* @uiName Branch code field label
|
|
4809
|
-
* @uiGroup Step 4 Properties
|
|
4810
|
-
*/
|
|
4811
|
-
this.step4_branchCodeLabel = "Branch code";
|
|
4812
|
-
/**
|
|
4813
|
-
* Label text for the classification input field
|
|
4814
|
-
* @uiName Classification field label
|
|
4815
|
-
* @uiGroup Step 4 Properties
|
|
4816
|
-
*/
|
|
4817
|
-
this.step4_classificationLabel = "Classification";
|
|
4818
|
-
/**
|
|
4819
|
-
* @uiName Taxpayer ID field label
|
|
4820
|
-
* @uiGroup Step 4 Properties
|
|
4821
|
-
*/
|
|
4822
|
-
this.step4_taxPayerIdLabel = "Beneficiary INN";
|
|
4823
|
-
/**
|
|
4824
|
-
* @uiName Bank address field label
|
|
4825
|
-
* @uiGroup Step 4 Properties
|
|
4826
|
-
*/
|
|
4827
|
-
this.step4_bankAddressLabel = "Bank address";
|
|
4828
|
-
/**
|
|
4829
|
-
* @uiName Bank city field label
|
|
4830
|
-
* @uiGroup Step 4 Properties
|
|
4831
|
-
*/
|
|
4832
|
-
this.step4_bankCityLabel = "Bank city";
|
|
4833
|
-
/**
|
|
4834
|
-
* @uiName Bank province/state field label
|
|
4835
|
-
* @uiGroup Step 4 Properties
|
|
4836
|
-
*/
|
|
4837
|
-
this.step4_bankStateLabel = "Bank Province / State";
|
|
4838
|
-
/**
|
|
4839
|
-
* @uiName Bank postal code field label
|
|
4840
|
-
* @uiGroup Step 4 Properties
|
|
4841
|
-
*/
|
|
4842
|
-
this.step4_bankPostalCodeLabel = "Bank postal code";
|
|
4843
|
-
/**
|
|
4844
|
-
* Default payment method to the participants’ bank account.
|
|
4845
|
-
* @uiName EFT withdrawal payment method
|
|
4846
|
-
* @uiGroup Step 4 Properties
|
|
4847
|
-
*/
|
|
4848
|
-
this.step4_eftWithdrawalLabel = "EFT Withdrawal (free)";
|
|
4849
|
-
/**
|
|
4850
|
-
* @uiName FX Wire Processing fee text
|
|
4851
|
-
* @uiGroup Step 4 Properties
|
|
4852
|
-
*/
|
|
4853
|
-
this.step4_fxWireProcessingFeeLabel = "FX Wire (Processing Fee {currency}{defaultFxFee}.00)";
|
|
4854
|
-
/**
|
|
4855
|
-
* @uiName Text for verify email dialog
|
|
4856
|
-
* @uiGroup Step 4 Properties
|
|
4857
|
-
*/
|
|
4858
|
-
this.step4_verifyEmailHeaderText = "Verify your email";
|
|
4859
|
-
/**
|
|
4860
|
-
* @uiName Verify code widget header text
|
|
4861
|
-
* @uiGroup Step 4 Properties
|
|
4862
|
-
*/
|
|
4863
|
-
this.step4_verifyEmailDescriptionText = "Verify your email to update your payment settings. Enter the code sent to {email} from our referral provider, impact.com.";
|
|
4864
|
-
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4865
|
-
DASHBOARD PROPS:
|
|
4866
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
4867
|
-
/**
|
|
4868
|
-
* @uiName Active tax form badge label
|
|
4869
|
-
* @uiGroup Dashboard Properties
|
|
4870
|
-
*/
|
|
4871
|
-
this.dashboard_statusTextActive = "Active";
|
|
4872
|
-
/**
|
|
4873
|
-
* @uiName Invalid tax form badge label
|
|
4874
|
-
* @uiGroup Dashboard Properties
|
|
4875
|
-
*/
|
|
4876
|
-
this.dashboard_statusTextNotActive = "Invalid Tax Form";
|
|
4877
|
-
/**
|
|
4878
|
-
* Displayed when the participant submitted their form but it is awaiting review.
|
|
4879
|
-
*
|
|
4880
|
-
* @uiName Not verified tax form badge label
|
|
4881
|
-
* @uiGroup Dashboard Properties
|
|
4882
|
-
*/
|
|
4883
|
-
this.dashboard_statusTextNotVerified = "Not Verified";
|
|
4884
|
-
/**
|
|
4885
|
-
* Additional text displayed next to the tax form's status badge
|
|
4886
|
-
*
|
|
4887
|
-
* @uiName Active W-9 description
|
|
4888
|
-
* @uiGroup Dashboard Properties
|
|
4889
|
-
*/
|
|
4890
|
-
this.dashboard_badgeTextSubmittedOn = "Submitted on {dateSubmitted}.";
|
|
4891
|
-
/**
|
|
4892
|
-
* Additional text displayed next to the tax form's status badge.
|
|
4893
|
-
*
|
|
4894
|
-
* @uiName Active W-8 description
|
|
4895
|
-
* @uiGroup Dashboard Properties
|
|
4896
|
-
*/
|
|
4897
|
-
this.dashboard_badgeTextSubmittedOnW8 = "Submitted on {dateSubmitted}. Valid for three years after submission.";
|
|
4898
|
-
/**
|
|
4899
|
-
* Additional text displayed next to the tax form's status badge.
|
|
4900
|
-
*
|
|
4901
|
-
* @uiName Tax form in review description
|
|
4902
|
-
* @uiGroup Dashboard Properties
|
|
4903
|
-
*/
|
|
4904
|
-
this.dashboard_badgeTextAwaitingReview = "Awaiting review. Submitted on {dateSubmitted}.";
|
|
4905
|
-
/**
|
|
4906
|
-
* Part of the alert displayed at the top of the page.
|
|
4907
|
-
*
|
|
4908
|
-
* @uiName Inactive W-9 error message title
|
|
4909
|
-
* @uiGroup Dashboard Properties
|
|
4910
|
-
* @uiWidget textArea
|
|
4911
|
-
*/
|
|
4912
|
-
this.dashboard_taxAlertHeaderNotActiveW9 = "Your W9 tax form has personal information that doesn’t match your profile";
|
|
4913
|
-
/**
|
|
4914
|
-
* Part of the alert displayed at the top of the page.
|
|
4915
|
-
*
|
|
4916
|
-
* @uiName Inactive W-8 error message title
|
|
4917
|
-
* @uiGroup Dashboard Properties
|
|
4918
|
-
* @uiWidget textArea
|
|
4919
|
-
*/
|
|
4920
|
-
this.dashboard_taxAlertHeaderNotActiveW8 = "{documentType} tax form is invalid";
|
|
4921
|
-
/**
|
|
4922
|
-
* Part of the alert displayed at the top of the page.
|
|
4923
|
-
*
|
|
4924
|
-
* @uiName Inactive W-9 error message description
|
|
4925
|
-
* @uiGroup Dashboard Properties
|
|
4926
|
-
* @uiWidget textArea
|
|
4927
|
-
*/
|
|
4928
|
-
this.dashboard_taxAlertNotActiveMessageW9 = "Please resubmit a new {documentType} form.";
|
|
4929
|
-
/**
|
|
4930
|
-
* Part of the alert displayed at the top of the page.
|
|
4931
|
-
*
|
|
4932
|
-
* @uiName Inactive W-8 error message description
|
|
4933
|
-
* @uiGroup Dashboard Properties
|
|
4934
|
-
*/
|
|
4935
|
-
this.dashboard_taxAlertNotActiveMessageW8 = "Your tax form may have expired or has personal information that doesn’t match your profile. Please submit a new {documentType} form.";
|
|
4936
|
-
/**
|
|
4937
|
-
* Additional text displayed next to the tax form's status badge.
|
|
4938
|
-
*
|
|
4939
|
-
* @uiName Invalid tax form description
|
|
4940
|
-
* @uiGroup Dashboard Properties
|
|
4941
|
-
* @uiWidget textArea
|
|
4942
|
-
*/
|
|
4943
|
-
this.dashboard_invalidForm = "Make sure your information is correct and submit new form.";
|
|
4944
|
-
/**
|
|
4945
|
-
* @uiName Payout information section header
|
|
4946
|
-
* @uiGroup Dashboard Properties
|
|
4947
|
-
*/
|
|
4948
|
-
this.dashboard_bankingInformationSectionHeader = "Payout Information";
|
|
4949
|
-
/**
|
|
4950
|
-
* @uiName Tax document section header
|
|
4951
|
-
* @uiGroup Dashboard Properties
|
|
4952
|
-
*/
|
|
4953
|
-
this.dashboard_taxDocumentSectionHeader = "Tax documents";
|
|
4954
|
-
/**
|
|
4955
|
-
* Displayed under the tax document section header.
|
|
4956
|
-
*
|
|
4957
|
-
* @uiName Tax documents section description
|
|
4958
|
-
* @uiGroup Dashboard Properties
|
|
4959
|
-
*/
|
|
4960
|
-
this.dashboard_taxDocumentSectionSubHeader = "{documentType} tax form";
|
|
4961
|
-
/**
|
|
4962
|
-
* No other statuses or badges will be displayed in the tax form section in this case.
|
|
4963
|
-
*
|
|
4964
|
-
* @uiName Tax form not required text
|
|
4965
|
-
* @uiGroup Dashboard Properties
|
|
4966
|
-
* @uiWidget textArea
|
|
4967
|
-
*/
|
|
4968
|
-
this.dashboard_noFormNeededSubtext = "Tax documents are only required if you are based in the US or joining the referral program of a US based brand.";
|
|
4969
|
-
/**
|
|
4970
|
-
*
|
|
4971
|
-
* @uiName Indirect tax section header
|
|
4972
|
-
* @uiGroup Dashboard Properties
|
|
4973
|
-
*/
|
|
4974
|
-
this.dashboard_indirectTaxInfoSectionHeader = "Indirect tax";
|
|
4975
|
-
/**
|
|
4976
|
-
* If the participant is registered for indirect tax in Canada, display the province they’re registered in.
|
|
4977
|
-
*
|
|
4978
|
-
* @uiName Canadian province of indirect tax
|
|
4979
|
-
* @uiGroup Dashboard Properties
|
|
4980
|
-
*/
|
|
4981
|
-
this.dashboard_indirectTaxInfoCanada = "Registered in {province}, {country}";
|
|
4982
|
-
/**
|
|
4983
|
-
* If the participant is registered for indirect tax, display the country they’re registered in.
|
|
4984
|
-
*
|
|
4985
|
-
* @uiName Indirect tax country
|
|
4986
|
-
* @uiGroup Dashboard Properties
|
|
4987
|
-
*/
|
|
4988
|
-
this.dashboard_indirectTaxInfoOtherCountry = "Registered in {country}";
|
|
4989
|
-
/**
|
|
4990
|
-
* If the participant is registered for indirect tax in Spain, display the region they’re registered in.
|
|
4991
|
-
*
|
|
4992
|
-
* @uiName Spanish region of indirect tax
|
|
4993
|
-
* @uiGroup Dashboard Properties
|
|
4994
|
-
*/
|
|
4995
|
-
this.dashboard_indirectTaxInfoSpain = "Registered in {country}, {subRegion}";
|
|
4996
|
-
/**
|
|
4997
|
-
* @uiName Indirect tax tooltip
|
|
4998
|
-
* @uiGroup Dashboard Properties
|
|
4999
|
-
* @uiWidget textArea
|
|
5000
|
-
*/
|
|
5001
|
-
this.dashboard_indirectTaxTooltipSupport = "To make changes to your indirect tax information, please contact our {supportLink}.";
|
|
5002
|
-
/**
|
|
5003
|
-
* Displayed to participants who have submitted their indirect tax information.
|
|
5004
|
-
*
|
|
5005
|
-
* @uiName Indirect tax details
|
|
5006
|
-
* @uiGroup Dashboard Properties
|
|
5007
|
-
*/
|
|
5008
|
-
this.dashboard_indirectTaxDetails = "{indirectTaxType} number: {indirectTaxNumber}";
|
|
5009
|
-
/**
|
|
5010
|
-
* @uiName Submit new tax form button label
|
|
5011
|
-
* @uiGroup Dashboard Properties
|
|
5012
|
-
*/
|
|
5013
|
-
this.dashboard_newFormButton = "Submit new form";
|
|
5014
|
-
/**
|
|
5015
|
-
* @uiName Edit payment info button label
|
|
5016
|
-
* @uiGroup Dashboard Properties
|
|
5017
|
-
*/
|
|
5018
|
-
this.dashboard_editPaymentInformationButton = "Edit Payout Information";
|
|
5019
|
-
/**
|
|
5020
|
-
* @uiName Not registered for indirect tax text
|
|
5021
|
-
* @uiGroup Dashboard Properties
|
|
5022
|
-
* @uiWidget textArea
|
|
5023
|
-
*/
|
|
5024
|
-
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.";
|
|
5025
|
-
/**
|
|
5026
|
-
* Displayed to participants registered in Quebec, Canada.
|
|
5027
|
-
* @uiName QST indirect tax details
|
|
5028
|
-
* @uiGroup Dashboard Properties
|
|
5029
|
-
*/
|
|
5030
|
-
this.dashboard_qstNumber = "QST number: {qstNumber}";
|
|
5031
|
-
/**
|
|
5032
|
-
* @uiName Spain sub-region indirect tax number
|
|
5033
|
-
* @uiGroup Dashboard Properties
|
|
5034
|
-
*/
|
|
5035
|
-
this.dashboard_subRegionTaxNumber = "Income tax number: {subRegionTaxNumber}";
|
|
5036
|
-
/**
|
|
5037
|
-
* @uiName Payout status badge
|
|
5038
|
-
* @uiGroup Dashboard Properties
|
|
5039
|
-
*/
|
|
5040
|
-
this.dashboard_statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
|
|
5041
|
-
/**
|
|
5042
|
-
* Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
|
|
5043
|
-
* @uiName Payout schedule by threshold text
|
|
5044
|
-
* @uiGroup Dashboard Properties
|
|
5045
|
-
*/
|
|
5046
|
-
this.dashboard_thresholdPayoutText = "Next payout occurs when balance is {thresholdBalance}";
|
|
5047
|
-
/**
|
|
5048
|
-
* Shown before the participant’s bank account information.
|
|
5049
|
-
* @uiName Bank account field label
|
|
5050
|
-
* @uiGroup Dashboard Properties
|
|
5051
|
-
*/
|
|
5052
|
-
this.dashboard_accountText = "Account";
|
|
5053
|
-
/**
|
|
5054
|
-
* Part of the Invoice table displayed at the bottom of the page.
|
|
5055
|
-
* @uiName Invoice number column title
|
|
5056
|
-
* @uiGroup Dashboard Properties
|
|
5057
|
-
*/
|
|
5058
|
-
this.dashboard_invoiceColumnTitle = "Invoice";
|
|
5059
|
-
/**
|
|
5060
|
-
* Part of the Invoice table displayed at the bottom of the page.
|
|
5061
|
-
* @uiName Date column title
|
|
5062
|
-
* @uiGroup Dashboard Properties
|
|
5063
|
-
*/
|
|
5064
|
-
this.dashboard_dateColumnTitle = "Date";
|
|
5065
|
-
/**
|
|
5066
|
-
* Part of the Invoice table displayed at the bottom of the page.
|
|
5067
|
-
* @uiName Earnings column title
|
|
5068
|
-
* @uiGroup Dashboard Properties
|
|
5069
|
-
*/
|
|
5070
|
-
this.dashboard_earningsColumnTitle = "Earnings";
|
|
5071
|
-
/**
|
|
5072
|
-
* Part of the Invoice table displayed at the bottom of the page.
|
|
5073
|
-
* @uiName Indirect tax column title
|
|
5074
|
-
* @uiGroup Dashboard Properties
|
|
5075
|
-
*/
|
|
5076
|
-
this.dashboard_indirectTaxColumnTitle = "Indirect tax";
|
|
5077
|
-
/**
|
|
5078
|
-
* Displayed under the payout details card.
|
|
5079
|
-
* @uiName Payout from impact text
|
|
5080
|
-
* @uiGroup Dashboard Properties
|
|
5081
|
-
* @uiWidget textArea
|
|
5082
|
-
*/
|
|
5083
|
-
this.dashboard_payoutFromImpact = "Your balance may take up to 24 hours to update. Payouts will be sent from our referral program provider, impact.com.";
|
|
5084
|
-
/**
|
|
5085
|
-
* Part of the Invoice table displayed at the bottom of the page.
|
|
5086
|
-
* @uiName Earnings after tax column title
|
|
5087
|
-
* @uiGroup Dashboard Properties
|
|
5088
|
-
*/
|
|
5089
|
-
this.dashboard_earningsAfterTaxColumnTitle = "Earnings after tax";
|
|
5090
|
-
/**
|
|
5091
|
-
* Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
|
|
5092
|
-
* @uiName Payout error message title
|
|
5093
|
-
* @uiGroup Dashboard Properties
|
|
5094
|
-
* @uiWidget textArea
|
|
5095
|
-
*/
|
|
5096
|
-
this.dashboard_payoutHoldAlertHeader = "Your payout is on hold";
|
|
5097
|
-
/**
|
|
5098
|
-
* Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
|
|
5099
|
-
* @uiName Payout error message description
|
|
5100
|
-
* @uiGroup Dashboard Properties
|
|
5101
|
-
* @uiWidget textArea
|
|
5102
|
-
*/
|
|
5103
|
-
this.dashboard_payoutHoldAlertDescription = "Please contact our {supportLink} or check your inbox for an email from our referral program provider, impact.com.";
|
|
5104
|
-
/**
|
|
5105
|
-
* Text displayed for existing publishers that do not have saved banking information.
|
|
5106
|
-
* @uiName Payout missing information subtext
|
|
5107
|
-
* @uiGroup Dashboard Properties
|
|
5108
|
-
*/
|
|
5109
|
-
this.dashboard_payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
|
|
5110
|
-
/**
|
|
5111
|
-
* @uiName Invoice table description
|
|
5112
|
-
* @uiGroup Dashboard Properties
|
|
5113
|
-
*/
|
|
5114
|
-
this.dashboard_invoiceDescription = "View and download your invoices to report your earnings and stay tax compliant.";
|
|
5115
|
-
/**
|
|
5116
|
-
* @uiName Invoice table previous page button label
|
|
5117
|
-
* @uiGroup Dashboard Properties
|
|
5118
|
-
*/
|
|
5119
|
-
this.dashboard_invoicePrevLabel = "Prev";
|
|
5120
|
-
/**
|
|
5121
|
-
* @uiName Invoice table next page button label
|
|
5122
|
-
* @uiGroup Dashboard Properties
|
|
5123
|
-
*/
|
|
5124
|
-
this.dashboard_invoiceMoreLabel = "Next";
|
|
5125
|
-
/**
|
|
5126
|
-
* @uiName Invoice table title
|
|
5127
|
-
* @uiGroup Dashboard Properties
|
|
5128
|
-
*/
|
|
5129
|
-
this.dashboard_invoiceHeader = "Invoices";
|
|
5130
|
-
/**
|
|
5131
|
-
* @uiName Empty invoice table header
|
|
5132
|
-
* @uiGroup Dashboard Properties
|
|
5133
|
-
*/
|
|
5134
|
-
this.dashboard_invoiceEmptyStateHeader = "View your invoice details";
|
|
5135
|
-
/**
|
|
5136
|
-
* @uiName Empty invoice table description
|
|
5137
|
-
* @uiGroup Dashboard Properties
|
|
5138
|
-
*/
|
|
5139
|
-
this.dashboard_invoiceEmptyStateText = "Refer a friend to view the status of your invoices and rewards earned";
|
|
5140
|
-
/**
|
|
5141
|
-
* @uiName Replace tax form modal header
|
|
5142
|
-
* @uiGroup Dashboard Properties
|
|
5143
|
-
*/
|
|
5144
|
-
this.dashboard_replaceTaxFormModalHeader = "Replace existing tax form";
|
|
5145
|
-
/**
|
|
5146
|
-
* @uiName Replace tax form modal body text
|
|
5147
|
-
* @uiGroup Dashboard Properties
|
|
5148
|
-
* @uiWidget textArea
|
|
5149
|
-
*/
|
|
5150
|
-
this.dashboard_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.";
|
|
5151
|
-
/**
|
|
5152
|
-
* Part of the alert displayed at the top of the page when the user needs to verify their identity.
|
|
5153
|
-
* @uiName Verification required alert message title
|
|
5154
|
-
* @uiGroup Dashboard Properties
|
|
5155
|
-
* @uiWidget textArea
|
|
5156
|
-
*/
|
|
5157
|
-
this.dashboard_verificationRequiredHeader = "Verify your identity";
|
|
5158
|
-
/**
|
|
5159
|
-
* Part of the alert displayed at the top of the page when the user needs to verify their identity
|
|
5160
|
-
* @uiName Verification required alert message description
|
|
5161
|
-
* @uiGroup Dashboard Properties
|
|
5162
|
-
* @uiWidget textArea
|
|
5163
|
-
*/
|
|
5164
|
-
this.dashboard_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}.";
|
|
5165
|
-
/**
|
|
5166
|
-
* @uiName Verification required internal alert header
|
|
5167
|
-
* @uiGroup Dashboard Properties
|
|
5168
|
-
* @uiWidget textArea
|
|
5169
|
-
*/
|
|
5170
|
-
this.dashboard_verificationRequiredInternalHeader = "Identity Verification in Progress";
|
|
5171
|
-
/**
|
|
5172
|
-
* @uiName Verification required internal alert description
|
|
5173
|
-
* @uiGroup Dashboard Properties
|
|
5174
|
-
* @uiWidget textArea
|
|
5175
|
-
*/
|
|
5176
|
-
this.dashboard_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}.";
|
|
5177
|
-
/**
|
|
5178
|
-
* @uiName Verification review internal alert header
|
|
5179
|
-
* @uiGroup Dashboard Properties
|
|
5180
|
-
* @uiWidget textArea
|
|
5181
|
-
*/
|
|
5182
|
-
this.dashboard_verificationReviewInternalHeader = "Identity Verification Under Review";
|
|
5183
|
-
/**
|
|
5184
|
-
* @uiName Verification review internal alert description
|
|
5185
|
-
* @uiGroup Dashboard Properties
|
|
5186
|
-
* @uiWidget textArea
|
|
5187
|
-
*/
|
|
5188
|
-
this.dashboard_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}.";
|
|
5189
|
-
/**
|
|
5190
|
-
* @uiName Verification failed internal alert header
|
|
5191
|
-
* @uiGroup Dashboard Properties
|
|
5192
|
-
* @uiWidget textArea
|
|
5193
|
-
*/
|
|
5194
|
-
this.dashboard_verificationFailedInternalHeader = "Identity Verification Unsuccessful";
|
|
5195
|
-
/**
|
|
5196
|
-
* @uiName Verification failed internal alert description
|
|
5197
|
-
* @uiGroup Dashboard Properties
|
|
5198
|
-
* @uiWidget textArea
|
|
5199
|
-
*/
|
|
5200
|
-
this.dashboard_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}.";
|
|
5201
|
-
/**
|
|
5202
|
-
* Part of the alert displayed at the top of the page when the user needs to verify their identity.
|
|
5203
|
-
* @uiName Verification required alert button text
|
|
5204
|
-
* @uiGroup Dashboard Properties
|
|
5205
|
-
* @uiWidget textArea
|
|
5206
|
-
*/
|
|
5207
|
-
this.dashboard_verificationRequiredButtonText = "Start Verification";
|
|
5208
|
-
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
5209
|
-
GENERAL PROPS:
|
|
5210
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
5211
|
-
/**
|
|
5212
|
-
* @uiName Setup progress
|
|
5213
|
-
* @uiGroup General Form Properties
|
|
5214
|
-
*/
|
|
5215
|
-
this.formStep = "Step {step} of {count}";
|
|
5216
|
-
/**
|
|
5217
|
-
* Part of the alert displayed at the top of the page.
|
|
5218
|
-
* @uiName Form submission error message title
|
|
5219
|
-
* @uiGroup General Form Properties
|
|
5220
|
-
* @uiWidget textArea
|
|
5221
|
-
*/
|
|
5222
|
-
this.generalErrorTitle = "There was a problem submitting your information";
|
|
5223
|
-
/**
|
|
5224
|
-
* Part of the alert displayed at the top of the page.
|
|
5225
|
-
* @uiName Form submission error message description
|
|
5226
|
-
* @uiGroup General Form Properties
|
|
5227
|
-
* @uiWidget textArea
|
|
5228
|
-
*/
|
|
5229
|
-
this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact our {supportLink}.";
|
|
5230
|
-
/**
|
|
5231
|
-
* Displayed under a field that is missing required information.
|
|
5232
|
-
* @uiName Empty form field error message
|
|
5233
|
-
* @uiGroup General Form Properties
|
|
5234
|
-
*/
|
|
5235
|
-
this.fieldRequiredError = "{fieldName} is required";
|
|
5236
|
-
/**
|
|
5237
|
-
* Displayed under a field that includes invalid characters (non-ASCII).
|
|
5238
|
-
* @uiName Invalid character error message
|
|
5239
|
-
* @uiGroup General Form Properties
|
|
5240
|
-
*/
|
|
5241
|
-
this.invalidCharacterError = "{fieldName} includes characters that aren't supported.";
|
|
5242
|
-
/**
|
|
5243
|
-
* Displayed under a field when it has an invalid entry.
|
|
5244
|
-
* @uiName Form field error message
|
|
5245
|
-
* @uiGroup General Form Properties
|
|
5246
|
-
*/
|
|
5247
|
-
this.fieldInvalidError = "{fieldName} is invalid";
|
|
5248
|
-
/**
|
|
5249
|
-
* @uiName Continue button label
|
|
5250
|
-
* @uiGroup General Form Properties
|
|
5251
|
-
*/
|
|
5252
|
-
this.continueButton = "Continue";
|
|
5253
|
-
/**
|
|
5254
|
-
* @uiName Back button label
|
|
5255
|
-
* @uiGroup General Form Properties
|
|
5256
|
-
*/
|
|
5257
|
-
this.backButton = "Back";
|
|
5258
|
-
/**
|
|
5259
|
-
* @uiName Cancel button label
|
|
5260
|
-
* @uiGroup General Form Properties
|
|
5261
|
-
*/
|
|
5262
|
-
this.cancelButton = "Cancel";
|
|
5263
|
-
/**
|
|
5264
|
-
* Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com.
|
|
5265
|
-
* @uiName Participant is a partner alert title
|
|
5266
|
-
* @uiGroup General Form Properties
|
|
5267
|
-
* @uiWidget textArea
|
|
5268
|
-
*/
|
|
5269
|
-
this.isPartnerAlertHeader = "An account with this email already exists with our referral program provider, impact.com";
|
|
5270
|
-
/**
|
|
5271
|
-
* Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com.
|
|
5272
|
-
* @uiName Participant is a partner alert description
|
|
5273
|
-
* @uiGroup General Form Properties
|
|
5274
|
-
* @uiWidget textArea
|
|
5275
|
-
*/
|
|
5276
|
-
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.";
|
|
5277
|
-
/**
|
|
5278
|
-
* Placeholder text displayed in the country search dropdown
|
|
5279
|
-
* @uiName Country field placeholder text
|
|
5280
|
-
* @uiGroup General Form Properties
|
|
5281
|
-
*/
|
|
5282
|
-
this.searchForCountryText = "Search for country..";
|
|
5283
|
-
/**
|
|
5284
|
-
* Part of the alert displayed at the top of the page.
|
|
5285
|
-
* @uiName Page load error message title
|
|
5286
|
-
* @uiGroup General Form Properties
|
|
5287
|
-
* @uiWidget textArea
|
|
5288
|
-
*/
|
|
5289
|
-
this.loadingErrorAlertHeader = "There was a problem loading your form";
|
|
5290
|
-
/**
|
|
5291
|
-
* Part of the alert displayed at the top of the page.
|
|
5292
|
-
* @uiName Page load error message description
|
|
5293
|
-
* @uiGroup General Form Properties
|
|
5294
|
-
* @uiWidget textArea
|
|
5295
|
-
*/
|
|
5296
|
-
this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact our {supportLink}.";
|
|
5297
|
-
/**
|
|
5298
|
-
* Displayed at the top of the page on all set up steps.
|
|
5299
|
-
* @uiName Page description
|
|
5300
|
-
* @uiGroup General Form Properties
|
|
5301
|
-
*/
|
|
5302
|
-
this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
|
|
5303
|
-
/**
|
|
5304
|
-
* Link text for contacting support team
|
|
5305
|
-
* @uiName Suport link text
|
|
5306
|
-
* @uiGroup General Form Properties
|
|
5307
|
-
*/
|
|
5308
|
-
this.supportLink = "support team";
|
|
5309
|
-
h$1(this);
|
|
5310
|
-
}
|
|
5311
|
-
disconnectedCallback() { }
|
|
5312
|
-
// this field is required prop
|
|
5313
|
-
getGeneralStepTextProps(prefix) {
|
|
5314
|
-
const props = getProps(this);
|
|
5315
|
-
return {
|
|
5316
|
-
...extractProps(props, prefix),
|
|
5317
|
-
generalErrorTitle: props.generalErrorTitle,
|
|
5318
|
-
generalErrorDescription: props.generalErrorDescription,
|
|
5319
|
-
fieldRequiredError: props.fieldRequiredError,
|
|
5320
|
-
invalidCharacterError: props.invalidCharacterError,
|
|
5321
|
-
fieldInvalidError: props.fieldInvalidError,
|
|
5322
|
-
continueButton: props.continueButton,
|
|
5323
|
-
backButton: props.backButton,
|
|
5324
|
-
cancelButton: props.cancelButton,
|
|
5325
|
-
isPartnerAlertHeader: props.isPartnerAlertHeader,
|
|
5326
|
-
isPartnerAlertDescription: props.isPartnerAlertDescription,
|
|
5327
|
-
loadingErrorAlertHeader: props.loadingErrorAlertHeader,
|
|
5328
|
-
loadingErrorAlertDescription: props.loadingErrorAlertDescription,
|
|
5329
|
-
taxAndPayoutsDescription: props.taxAndPayoutsDescription,
|
|
5330
|
-
searchForCountryText: props.searchForCountryText,
|
|
5331
|
-
formStep: props.formStep,
|
|
5332
|
-
supportLink: props.supportLink,
|
|
5333
|
-
};
|
|
5334
|
-
}
|
|
5335
|
-
render() {
|
|
5336
|
-
var _a, _b;
|
|
5337
|
-
const props = isDemo() ? useDemoTaxAndCash(this) : useTaxAndCash();
|
|
5338
|
-
// @ts-ignore
|
|
5339
|
-
if ((_a = this.demoData) === null || _a === void 0 ? void 0 : _a.showTextProps) {
|
|
5340
|
-
const textProps = getProps(this);
|
|
5341
|
-
return (h("div", null, (_b = Object.keys(textProps)) === null || _b === void 0 ? void 0 : _b.map((prop) => {
|
|
5342
|
-
if (prop === "demoData")
|
|
5343
|
-
return;
|
|
5344
|
-
return (h("div", null, h("b", null, prop, ":"), " ", this[prop], h("hr", null)));
|
|
5345
|
-
})));
|
|
5346
|
-
}
|
|
5347
|
-
switch (props.step) {
|
|
5348
|
-
case "/1":
|
|
5349
|
-
return (h("sqm-user-info-form", Object.assign({}, this.getGeneralStepTextProps("step1_"))));
|
|
5350
|
-
case "/2":
|
|
5351
|
-
return (h("sqm-indirect-tax-form", Object.assign({}, this.getGeneralStepTextProps("step2_"))));
|
|
5352
|
-
case "/3":
|
|
5353
|
-
return (h("sqm-docusign-form", Object.assign({}, this.getGeneralStepTextProps("step3_"))));
|
|
5354
|
-
case "/4":
|
|
5355
|
-
return (h("sqm-banking-info-form", Object.assign({}, this.getGeneralStepTextProps("step4_"))));
|
|
5356
|
-
case "/dashboard":
|
|
5357
|
-
return (h("sqm-tax-and-cash-dashboard", Object.assign({}, this.getGeneralStepTextProps("dashboard_"))));
|
|
5358
|
-
case "/error":
|
|
5359
|
-
return (h(ErrorView, { loadingErrorAlertHeader: this.loadingErrorAlertHeader, loadingErrorAlertDescription: this.loadingErrorAlertDescription }));
|
|
5360
|
-
}
|
|
5361
|
-
return h(LoadingView, null);
|
|
5362
|
-
}
|
|
5363
|
-
};
|
|
5364
|
-
function useDemoTaxAndCash(props) {
|
|
5365
|
-
const [step, setStep] = In({
|
|
5366
|
-
namespace: TAX_CONTEXT_NAMESPACE,
|
|
5367
|
-
initialValue: "/1",
|
|
5368
|
-
});
|
|
5369
|
-
return cjs({
|
|
5370
|
-
step,
|
|
5371
|
-
setStep,
|
|
5372
|
-
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
5373
|
-
}
|
|
5374
|
-
|
|
5375
|
-
const style$6 = {
|
|
3678
|
+
const style$5 = {
|
|
5376
3679
|
ErrorAlertContainer: {
|
|
5377
3680
|
"&::part(base)": {
|
|
5378
3681
|
backgroundColor: "var(--sqm-danger-color-background)",
|
|
@@ -5563,8 +3866,8 @@ const style$6 = {
|
|
|
5563
3866
|
},
|
|
5564
3867
|
DialogButton: { margin: "auto", width: "100%" },
|
|
5565
3868
|
};
|
|
5566
|
-
const sheet$
|
|
5567
|
-
const styleString$
|
|
3869
|
+
const sheet$4 = createStyleSheet(style$5);
|
|
3870
|
+
const styleString$4 = sheet$4.toString();
|
|
5568
3871
|
const TaxAndCashDashboardView = (props) => {
|
|
5569
3872
|
var _a, _b, _c, _d;
|
|
5570
3873
|
const { states, text, callbacks, slots } = props;
|
|
@@ -5582,7 +3885,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5582
3885
|
buttonText: text.verificationRequiredButtonText,
|
|
5583
3886
|
alertType: "warning",
|
|
5584
3887
|
icon: "exclamation-triangle",
|
|
5585
|
-
class: sheet$
|
|
3888
|
+
class: sheet$4.classes.WarningHoldAlertContainer,
|
|
5586
3889
|
};
|
|
5587
3890
|
case "VERIFICATION:INTERNAL":
|
|
5588
3891
|
return {
|
|
@@ -5595,7 +3898,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5595
3898
|
}),
|
|
5596
3899
|
alertType: "warning",
|
|
5597
3900
|
icon: "exclamation-triangle",
|
|
5598
|
-
class: sheet$
|
|
3901
|
+
class: sheet$4.classes.WarningHoldAlertContainer,
|
|
5599
3902
|
};
|
|
5600
3903
|
case "VERIFICATION:REVIEW":
|
|
5601
3904
|
return {
|
|
@@ -5608,7 +3911,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5608
3911
|
}),
|
|
5609
3912
|
alertType: "warning",
|
|
5610
3913
|
icon: "exclamation-triangle",
|
|
5611
|
-
class: sheet$
|
|
3914
|
+
class: sheet$4.classes.WarningHoldAlertContainer,
|
|
5612
3915
|
};
|
|
5613
3916
|
case "VERIFICATION:FAILED":
|
|
5614
3917
|
return {
|
|
@@ -5621,7 +3924,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5621
3924
|
}),
|
|
5622
3925
|
alertType: "critical",
|
|
5623
3926
|
icon: "exclamation-octagon",
|
|
5624
|
-
class: sheet$
|
|
3927
|
+
class: sheet$4.classes.ErrorHoldAlertContainer,
|
|
5625
3928
|
};
|
|
5626
3929
|
case "HOLD":
|
|
5627
3930
|
return {
|
|
@@ -5635,14 +3938,14 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5635
3938
|
buttonText: null,
|
|
5636
3939
|
alertType: "warning",
|
|
5637
3940
|
icon: "exclamation-triangle",
|
|
5638
|
-
class: sheet$
|
|
3941
|
+
class: sheet$4.classes.WarningHoldAlertContainer,
|
|
5639
3942
|
};
|
|
5640
3943
|
default:
|
|
5641
3944
|
return;
|
|
5642
3945
|
}
|
|
5643
3946
|
}
|
|
5644
3947
|
const statusMap = {
|
|
5645
|
-
NOT_VERIFIED: (h("div", { class: sheet$
|
|
3948
|
+
NOT_VERIFIED: (h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
5646
3949
|
h("sl-badge", { type: "warning", pill: true }, text.statusTextNotVerified),
|
|
5647
3950
|
h("p", null, intl.formatMessage({
|
|
5648
3951
|
id: `badgeTextAwaitingReview`,
|
|
@@ -5650,7 +3953,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5650
3953
|
}, {
|
|
5651
3954
|
dateSubmitted: states.dateSubmitted,
|
|
5652
3955
|
})))),
|
|
5653
|
-
ACTIVE: (h("div", { class: sheet$
|
|
3956
|
+
ACTIVE: (h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
5654
3957
|
h("sl-badge", { type: "success", pill: true }, text.statusTextActive),
|
|
5655
3958
|
h("p", null, intl.formatMessage({
|
|
5656
3959
|
id: `badgeTextSubmittedOn`,
|
|
@@ -5660,12 +3963,12 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5660
3963
|
}, {
|
|
5661
3964
|
dateSubmitted: states.dateSubmitted,
|
|
5662
3965
|
})))),
|
|
5663
|
-
INACTIVE: (h("div", { class: sheet$
|
|
3966
|
+
INACTIVE: (h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
5664
3967
|
h("sl-badge", { type: "danger", pill: true }, text.statusTextNotActive),
|
|
5665
3968
|
h("p", null, text.invalidForm))),
|
|
5666
3969
|
};
|
|
5667
3970
|
const alertMap = {
|
|
5668
|
-
INACTIVE: (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$
|
|
3971
|
+
INACTIVE: (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.ErrorAlertContainer },
|
|
5669
3972
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5670
3973
|
h("strong", null, intl.formatMessage({
|
|
5671
3974
|
id: `taxAlertHeaderNotActive`,
|
|
@@ -5715,9 +4018,9 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5715
4018
|
};
|
|
5716
4019
|
return (h("div", null,
|
|
5717
4020
|
h("div", null,
|
|
5718
|
-
h("style", { type: "text/css" }, styleString$
|
|
4021
|
+
h("style", { type: "text/css" }, styleString$4),
|
|
5719
4022
|
states.loadingError && (h("div", null,
|
|
5720
|
-
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$
|
|
4023
|
+
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.ErrorAlertContainer },
|
|
5721
4024
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5722
4025
|
h("strong", null, text.error.loadingErrorAlertHeader),
|
|
5723
4026
|
h("br", null),
|
|
@@ -5727,7 +4030,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5727
4030
|
}, {
|
|
5728
4031
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5729
4032
|
})))),
|
|
5730
|
-
((_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$
|
|
4033
|
+
((_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$4.classes.ErrorAlertContainer },
|
|
5731
4034
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5732
4035
|
h("strong", null, text.error.generalTitle),
|
|
5733
4036
|
h("br", null),
|
|
@@ -5742,49 +4045,49 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5742
4045
|
h("strong", null, getAlert(states.payoutStatus).header),
|
|
5743
4046
|
h("p", { style: { margin: "0" } }, getAlert(states.payoutStatus).description),
|
|
5744
4047
|
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)))),
|
|
5745
|
-
h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet$
|
|
4048
|
+
h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet$4.classes.Dialog, open: states.showNewFormDialog, "onSl-hide": callbacks.onNewFormCancel },
|
|
5746
4049
|
h("p", null, text.replaceTaxFormModalBodyText),
|
|
5747
|
-
h("sl-button", { slot: "footer", type: "primary", class: sheet$
|
|
5748
|
-
h("sl-button", { slot: "footer", type: "default", class: sheet$
|
|
4050
|
+
h("sl-button", { slot: "footer", type: "primary", class: sheet$4.classes.DialogButton, onClick: callbacks.onNewFormClick }, text.newFormButton),
|
|
4051
|
+
h("sl-button", { slot: "footer", type: "default", class: sheet$4.classes.DialogButton, onClick: callbacks.onNewFormCancel }, text.cancelButton)),
|
|
5749
4052
|
states.status === "INACTIVE" && alertMap[states.status],
|
|
5750
4053
|
h("div", null,
|
|
5751
4054
|
h("h3", { style: { marginBottom: "0" } }, text.bankingInformationSectionHeader),
|
|
5752
|
-
h("p", { class: sheet$
|
|
5753
|
-
h("div", { class: sheet$
|
|
4055
|
+
h("p", { class: sheet$4.classes.PageDescriptionText }, text.taxAndPayoutsDescription),
|
|
4056
|
+
h("div", { class: sheet$4.classes.BankingInformationContainer },
|
|
5754
4057
|
slots.payoutDetailsCardSlot,
|
|
5755
|
-
!states.loading && (h("p", { class: sheet$
|
|
5756
|
-
states.canEditPayoutInfo && (h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$
|
|
5757
|
-
h("div", { class: sheet$
|
|
5758
|
-
h("div", null, states.loading ? (h("div", { class: sheet$
|
|
5759
|
-
h("sl-skeleton", { class: sheet$
|
|
5760
|
-
h("sl-skeleton", { class: sheet$
|
|
5761
|
-
h("h3", { class: sheet$
|
|
5762
|
-
h("p", { class: sheet$
|
|
5763
|
-
h("span", { class: sheet$
|
|
5764
|
-
h("div", { class: sheet$
|
|
4058
|
+
!states.loading && (h("p", { class: sheet$4.classes.DescriptionText }, text.payoutFromImpact)),
|
|
4059
|
+
states.canEditPayoutInfo && (h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$4.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
|
|
4060
|
+
h("div", { class: sheet$4.classes.TaxDocumentsContainer },
|
|
4061
|
+
h("div", null, states.loading ? (h("div", { class: sheet$4.classes.TaxSectionSkeletonContainer },
|
|
4062
|
+
h("sl-skeleton", { class: sheet$4.classes.SkeletonOne }),
|
|
4063
|
+
h("sl-skeleton", { class: sheet$4.classes.SkeletonTwo }))) : (h("div", null, states.noFormNeeded ? (h("div", null,
|
|
4064
|
+
h("h3", { class: sheet$4.classes.TaxDocumentsSectionHeaderContainer }, text.taxDocumentSectionHeader),
|
|
4065
|
+
h("p", { class: sheet$4.classes.TaxDocSubtext }, text.noFormNeededSubtext))) : (h("div", null,
|
|
4066
|
+
h("span", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
4067
|
+
h("div", { class: sheet$4.classes.StatusContainer },
|
|
5765
4068
|
h("h3", null, intl.formatMessage({
|
|
5766
4069
|
id: "section-subheader",
|
|
5767
4070
|
defaultMessage: text.taxDocumentSectionSubHeader,
|
|
5768
4071
|
}, {
|
|
5769
4072
|
documentType: states.documentTypeString,
|
|
5770
4073
|
})),
|
|
5771
|
-
h("span", { class: sheet$
|
|
5772
|
-
states.status !== "NOT_VERIFIED" && (h("sl-button", { disabled: states.disabled || states.loading, onClick: callbacks.onClick, type: "default", class: sheet$
|
|
5773
|
-
h("div", { class: sheet$
|
|
5774
|
-
h("sl-skeleton", { class: sheet$
|
|
5775
|
-
h("sl-skeleton", { class: sheet$
|
|
5776
|
-
h("h3", { class: sheet$
|
|
4074
|
+
h("span", { class: sheet$4.classes.StatusAlert }, statusMap[states.status]))),
|
|
4075
|
+
states.status !== "NOT_VERIFIED" && (h("sl-button", { disabled: states.disabled || states.loading, onClick: callbacks.onClick, type: "default", class: sheet$4.classes.NewFormButton, exportparts: "base: primarybutton-base" }, text.newFormButton)))))))),
|
|
4076
|
+
h("div", { class: sheet$4.classes.IndirectTaxPreviewContainer }, states.loading ? (h("div", { class: sheet$4.classes.TaxSectionSkeletonContainer },
|
|
4077
|
+
h("sl-skeleton", { class: sheet$4.classes.SkeletonOne }),
|
|
4078
|
+
h("sl-skeleton", { class: sheet$4.classes.SkeletonTwo }))) : (h("div", null,
|
|
4079
|
+
h("h3", { class: sheet$4.classes.IndirectTaxPreviewHeaderContainer },
|
|
5777
4080
|
text.indirectTaxInfoSectionHeader,
|
|
5778
|
-
h("sl-tooltip", { trigger: "hover", placement: "right", content: text.indirectTaxTooltipSupport, class: sheet$
|
|
5779
|
-
h("sl-icon", { name: "info-circle", class: sheet$
|
|
5780
|
-
h("div", { class: sheet$
|
|
5781
|
-
h("span", null, states.notRegistered ? (h("span", { class: sheet$
|
|
4081
|
+
h("sl-tooltip", { trigger: "hover", placement: "right", content: text.indirectTaxTooltipSupport, class: sheet$4.classes.TooltipContainer },
|
|
4082
|
+
h("sl-icon", { name: "info-circle", class: sheet$4.classes.ToolTip }))),
|
|
4083
|
+
h("div", { class: sheet$4.classes.IndirectTaxPreviewDetails },
|
|
4084
|
+
h("span", null, states.notRegistered ? (h("span", { class: sheet$4.classes.NotRegisteredIndirectTaxText }, intl.formatMessage({
|
|
5782
4085
|
id: "notRegisteredForTax",
|
|
5783
4086
|
defaultMessage: text.notRegisteredForTax,
|
|
5784
4087
|
}, {
|
|
5785
4088
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5786
4089
|
}))) : (getIndirectTaxRegisteredIn())),
|
|
5787
|
-
!states.notRegistered && (h("div", { class: sheet$
|
|
4090
|
+
!states.notRegistered && (h("div", { class: sheet$4.classes.TaxNumberContainer },
|
|
5788
4091
|
h("span", null, intl.formatMessage({
|
|
5789
4092
|
id: `indirectTaxDetails`,
|
|
5790
4093
|
defaultMessage: text.indirectTaxDetails,
|
|
@@ -5807,7 +4110,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5807
4110
|
}, {
|
|
5808
4111
|
subRegionTaxNumber: states.subRegionTaxNumber,
|
|
5809
4112
|
})))),
|
|
5810
|
-
!states.notRegistered && (h("div", { class: sheet$
|
|
4113
|
+
!states.notRegistered && (h("div", { class: sheet$4.classes.InvoiceTableContainer },
|
|
5811
4114
|
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 },
|
|
5812
4115
|
h("sqm-invoice-table-download-column", null),
|
|
5813
4116
|
h("sqm-invoice-table-date-column", { "column-title": text.dateColumnTitle }),
|
|
@@ -6238,6 +4541,16 @@ const TaxAndCashDashboard = class {
|
|
|
6238
4541
|
* @uiName Cancel button label
|
|
6239
4542
|
*/
|
|
6240
4543
|
this.cancelButton = "Cancel";
|
|
4544
|
+
/**
|
|
4545
|
+
* @parentState { "parent": "sqm-tax-and-cash", "title": "Dashboard" }
|
|
4546
|
+
* @componentState { "title": "Default", "props": { } }
|
|
4547
|
+
* @componentState { "title": "Verification Required", "props": { "states": { "payoutStatus": "VERIFICATION:REQUIRED" } } }
|
|
4548
|
+
* @componentState { "title": "Internal Verification Required", "props": { "states": { "payoutStatus": "VERIFICATION:INTERNAL" } } }
|
|
4549
|
+
* @componentState { "title": "Review in progress", "props": { "states": { "payoutStatus": "VERIFICATION:REVIEW" } } }
|
|
4550
|
+
* @componentState { "title": "Verification failed", "props": { "states": { "payoutStatus": "VERIFICATION:FAILED" } } }
|
|
4551
|
+
* @componentState { "title": "Payout hold", "props": { "states": { "payoutStatus": "HOLD" } } }
|
|
4552
|
+
*/
|
|
4553
|
+
this.stateController = "{}";
|
|
6241
4554
|
h$1(this);
|
|
6242
4555
|
}
|
|
6243
4556
|
disconnectedCallback() { }
|
|
@@ -6263,6 +4576,8 @@ const TaxAndCashDashboard = class {
|
|
|
6263
4576
|
}
|
|
6264
4577
|
};
|
|
6265
4578
|
function useDemoTaxAndCashDashboard(props) {
|
|
4579
|
+
const states = parseStates(props.stateController);
|
|
4580
|
+
console.log({ states });
|
|
6266
4581
|
return cjs({
|
|
6267
4582
|
states: {
|
|
6268
4583
|
dateSubmitted: "today",
|
|
@@ -6270,16 +4585,23 @@ function useDemoTaxAndCashDashboard(props) {
|
|
|
6270
4585
|
documentTypeString: "W9",
|
|
6271
4586
|
status: "ACTIVE",
|
|
6272
4587
|
country: "United States",
|
|
6273
|
-
indirectTaxNumber: 55555555,
|
|
4588
|
+
indirectTaxNumber: "55555555",
|
|
6274
4589
|
indirectTaxType: "Indirect Tax",
|
|
6275
4590
|
noFormNeeded: true,
|
|
6276
4591
|
disabled: false,
|
|
6277
4592
|
loading: false,
|
|
6278
4593
|
showNewFormDialog: false,
|
|
6279
4594
|
hasHold: false,
|
|
6280
|
-
showVerifyIdentity: false,
|
|
6281
4595
|
payoutStatus: "DONE",
|
|
6282
4596
|
veriffLoading: false,
|
|
4597
|
+
canEditPayoutInfo: true,
|
|
4598
|
+
subRegion: "CA",
|
|
4599
|
+
subRegionTaxNumber: undefined,
|
|
4600
|
+
qstNumber: undefined,
|
|
4601
|
+
isBusinessEntity: false,
|
|
4602
|
+
province: undefined,
|
|
4603
|
+
notRegistered: false,
|
|
4604
|
+
loadingError: false,
|
|
6283
4605
|
},
|
|
6284
4606
|
callbacks: {
|
|
6285
4607
|
onClick: () => console.debug("check step"),
|
|
@@ -6289,7 +4611,7 @@ function useDemoTaxAndCashDashboard(props) {
|
|
|
6289
4611
|
onVerifyClick: () => console.log("verify"),
|
|
6290
4612
|
},
|
|
6291
4613
|
text: props.getTextProps(),
|
|
6292
|
-
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
4614
|
+
}, props.demoData || states || {}, { arrayMerge: (_, a) => a });
|
|
6293
4615
|
}
|
|
6294
4616
|
|
|
6295
4617
|
const PHONE_EXTENSIONS = {
|
|
@@ -7263,7 +5585,7 @@ const PHONE_EXTENSIONS = {
|
|
|
7263
5585
|
},
|
|
7264
5586
|
};
|
|
7265
5587
|
|
|
7266
|
-
const style$
|
|
5588
|
+
const style$6 = {
|
|
7267
5589
|
FormWrapper: {},
|
|
7268
5590
|
ErrorInput: {
|
|
7269
5591
|
"&::part(base)": {
|
|
@@ -7363,9 +5685,9 @@ const style$7 = {
|
|
|
7363
5685
|
},
|
|
7364
5686
|
},
|
|
7365
5687
|
};
|
|
7366
|
-
const sheet$
|
|
7367
|
-
const styleString$
|
|
7368
|
-
const vanillaStyle$
|
|
5688
|
+
const sheet$5 = createStyleSheet(style$6);
|
|
5689
|
+
const styleString$5 = sheet$5.toString();
|
|
5690
|
+
const vanillaStyle$3 = `
|
|
7369
5691
|
:host{
|
|
7370
5692
|
display: block;
|
|
7371
5693
|
}
|
|
@@ -7543,7 +5865,7 @@ const vanillaStyle$4 = `
|
|
|
7543
5865
|
const UserInfoFormView = (props) => {
|
|
7544
5866
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
|
|
7545
5867
|
const { states, states: { formState }, callbacks, text, refs, data, } = props;
|
|
7546
|
-
const { classes } = sheet$
|
|
5868
|
+
const { classes } = sheet$5;
|
|
7547
5869
|
const bankingCollectionText = intl.formatMessage({
|
|
7548
5870
|
id: "bankingCollectionText",
|
|
7549
5871
|
defaultMessage: text.allowBankingCollection,
|
|
@@ -7566,10 +5888,10 @@ const UserInfoFormView = (props) => {
|
|
|
7566
5888
|
}
|
|
7567
5889
|
return (h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
7568
5890
|
h("style", { type: "text/css" },
|
|
7569
|
-
styleString$
|
|
7570
|
-
vanillaStyle$
|
|
5891
|
+
styleString$5,
|
|
5892
|
+
vanillaStyle$3),
|
|
7571
5893
|
states.loadingError && (h("div", null,
|
|
7572
|
-
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$
|
|
5894
|
+
h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.AlertContainer },
|
|
7573
5895
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
7574
5896
|
h("strong", null, text.error.loadingErrorAlertHeader),
|
|
7575
5897
|
h("br", null),
|
|
@@ -7580,7 +5902,7 @@ const UserInfoFormView = (props) => {
|
|
|
7580
5902
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
7581
5903
|
})),
|
|
7582
5904
|
h("br", null))),
|
|
7583
|
-
states.loading ? (h(
|
|
5905
|
+
states.loading ? (h(LoadingView, null)) : (h("div", null,
|
|
7584
5906
|
h("div", { class: classes.TextContainer },
|
|
7585
5907
|
h("div", null,
|
|
7586
5908
|
!states.hideSteps && (h("p", null, intl.formatMessage({
|
|
@@ -7589,7 +5911,7 @@ const UserInfoFormView = (props) => {
|
|
|
7589
5911
|
}, { step: states.step, count: FORM_STEPS }))),
|
|
7590
5912
|
h("h3", null, text.personalInformation),
|
|
7591
5913
|
h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
|
|
7592
|
-
((_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$
|
|
5914
|
+
((_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$5.classes.AlertContainer },
|
|
7593
5915
|
h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
7594
5916
|
h("strong", null, text.error.generalTitle),
|
|
7595
5917
|
h("br", null),
|
|
@@ -7599,7 +5921,7 @@ const UserInfoFormView = (props) => {
|
|
|
7599
5921
|
}, {
|
|
7600
5922
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
7601
5923
|
}))),
|
|
7602
|
-
(states.isPartner || states.isUser) && (h("sl-alert", { type: "primary", open: true, class: sheet$
|
|
5924
|
+
(states.isPartner || states.isUser) && (h("sl-alert", { type: "primary", open: true, class: sheet$5.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
|
|
7603
5925
|
h("sl-icon", { slot: "icon", name: "info-circle" }),
|
|
7604
5926
|
h("strong", null, text.isPartnerAlertHeader),
|
|
7605
5927
|
h("br", null),
|
|
@@ -8073,6 +6395,13 @@ const TaxForm = class {
|
|
|
8073
6395
|
* @uiName Support link text
|
|
8074
6396
|
*/
|
|
8075
6397
|
this.supportLink = "support team";
|
|
6398
|
+
/**
|
|
6399
|
+
* @uiName States
|
|
6400
|
+
* @parentState { "parent": "sqm-tax-and-cash", "title": "Step 1" }
|
|
6401
|
+
* @componentState { "title": "Errors", "props": { "states": { "loadingError": true, "formState": { "errors": { "email": true, "firstName": true, "lastName": true, "countryCode": true, "currency": true } } } } }
|
|
6402
|
+
* @componentState { "title": "Loading", "props": { "states": { "loading": true } } }
|
|
6403
|
+
*/
|
|
6404
|
+
this.stateController = "{}";
|
|
8076
6405
|
h$1(this);
|
|
8077
6406
|
}
|
|
8078
6407
|
disconnectedCallback() { }
|
|
@@ -8093,19 +6422,20 @@ const TaxForm = class {
|
|
|
8093
6422
|
}
|
|
8094
6423
|
render() {
|
|
8095
6424
|
const props = isDemo() ? useDemoUserInfoForm(this) : useUserInfoForm(this);
|
|
8096
|
-
return (h(
|
|
6425
|
+
return (h(UserInfoFormView, { data: props.data,
|
|
8097
6426
|
// @ts-ignore
|
|
8098
6427
|
states: props.states, callbacks: {
|
|
8099
6428
|
...props.callbacks,
|
|
8100
6429
|
onSubmit: props.onSubmit,
|
|
8101
|
-
}, text: props.text, refs: props.refs }))
|
|
6430
|
+
}, text: props.text, refs: props.refs }));
|
|
8102
6431
|
}
|
|
8103
6432
|
};
|
|
8104
6433
|
function useDemoUserInfoForm(props) {
|
|
8105
6434
|
const setStep = En(TAX_CONTEXT_NAMESPACE);
|
|
6435
|
+
// @ts-ignore
|
|
8106
6436
|
return cjs({
|
|
8107
6437
|
setStep,
|
|
8108
|
-
onSubmit: () => {
|
|
6438
|
+
onSubmit: async () => {
|
|
8109
6439
|
setStep("/2");
|
|
8110
6440
|
},
|
|
8111
6441
|
onRadioClick: () => { },
|
|
@@ -8145,7 +6475,7 @@ function useDemoUserInfoForm(props) {
|
|
|
8145
6475
|
},
|
|
8146
6476
|
},
|
|
8147
6477
|
},
|
|
8148
|
-
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
6478
|
+
}, props.demoData || parseStates(props.stateController) || {}, { arrayMerge: (_, a) => a });
|
|
8149
6479
|
}
|
|
8150
6480
|
|
|
8151
|
-
export { BankingInfoForm as sqm_banking_info_form,
|
|
6481
|
+
export { BankingInfoForm as sqm_banking_info_form, DocusignForm as sqm_docusign_form, IndirectTaxForm as sqm_indirect_tax_form, InvoiceTable as sqm_invoice_table, InvoiceTableDataColumn as sqm_invoice_table_data_column, InvoiceTableDateColumn as sqm_invoice_table_date_column, InvoiceTableGenericColumn as sqm_invoice_table_download_column, PayoutDetailsCard as sqm_payout_details_card, TaxAndCashDashboard as sqm_tax_and_cash_dashboard, TaxForm as sqm_user_info_form };
|