@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
package/dist/cjs/{sqm-banking-info-form_17.cjs.entry.js → sqm-banking-info-form_10.cjs.entry.js}
RENAMED
|
@@ -4,143 +4,24 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-a29c60ef.js');
|
|
6
6
|
const stencilHooks_module = require('./stencil-hooks.module-3a336b0f.js');
|
|
7
|
-
const global = require('./global-
|
|
7
|
+
const global = require('./global-d62c5561.js');
|
|
8
8
|
const index_module = require('./index.module-ee84433d.js');
|
|
9
9
|
const jsonpointer = require('./jsonpointer-11327262.js');
|
|
10
10
|
const cjs = require('./cjs-1066ec21.js');
|
|
11
11
|
const utils = require('./utils-6847bc06.js');
|
|
12
12
|
const JSS = require('./JSS-8503a151.js');
|
|
13
|
-
|
|
13
|
+
require('./mixins-4761d472.js');
|
|
14
14
|
const GenericTableView = require('./GenericTableView-a9d0b798.js');
|
|
15
15
|
const reRender = require('./re-render-b324deab.js');
|
|
16
16
|
const useChildElements = require('./useChildElements-1b35d945.js');
|
|
17
17
|
const luxon = require('./luxon-2926d85f.js');
|
|
18
18
|
const useReferralTable = require('./useReferralTable-7c3f9600.js');
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
const
|
|
19
|
+
const IndirectTaxDetailsView = require('./IndirectTaxDetailsView-d0290a12.js');
|
|
20
|
+
const utils$1 = require('./utils-ce18d1bc.js');
|
|
21
|
+
const parseStates = require('./parseStates-d1effc19.js');
|
|
22
|
+
const data = require('./data-6d96b89c.js');
|
|
23
23
|
const keys = require('./keys-cff24974.js');
|
|
24
|
-
const usePayoutStatus = require('./usePayoutStatus-
|
|
25
|
-
const useVerificationEmail = require('./useVerificationEmail-95a82767.js');
|
|
26
|
-
|
|
27
|
-
const TAX_CONTEXT_NAMESPACE = "sq:tax-and-cash";
|
|
28
|
-
const TAX_FORM_CONTEXT_NAMESPACE = "sq:tax-form-context";
|
|
29
|
-
const USER_QUERY_NAMESPACE = "sq:user-info-query";
|
|
30
|
-
const USER_FORM_CONTEXT_NAMESPACE = "sq:user-form-context";
|
|
31
|
-
const FINANCE_NETWORK_SETTINGS_NAMESPACE = "sq:finance-network-settings";
|
|
32
|
-
const COUNTRIES_NAMESPACE = "sq:countries:list";
|
|
33
|
-
const SORTED_COUNTRIES_NAMESPACE = "sq:countries:sorted";
|
|
34
|
-
const COUNTRIES_QUERY_NAMESPACE = "sq:countries:query";
|
|
35
|
-
const CURRENCIES_NAMESPACE = "sq:currencies:list";
|
|
36
|
-
const CURRENCIES_QUERY_NAMESPACE = "sq:currencies:query";
|
|
37
|
-
const GET_USER = index_module.dist.gql `
|
|
38
|
-
query getUserTaxInfo {
|
|
39
|
-
user: viewer {
|
|
40
|
-
... on User {
|
|
41
|
-
id
|
|
42
|
-
firstName
|
|
43
|
-
lastName
|
|
44
|
-
email
|
|
45
|
-
countryCode
|
|
46
|
-
customFields
|
|
47
|
-
managedIdentity {
|
|
48
|
-
uid
|
|
49
|
-
email
|
|
50
|
-
emailVerified
|
|
51
|
-
}
|
|
52
|
-
impactConnection {
|
|
53
|
-
connected
|
|
54
|
-
user {
|
|
55
|
-
firstName
|
|
56
|
-
lastName
|
|
57
|
-
}
|
|
58
|
-
publisher {
|
|
59
|
-
id
|
|
60
|
-
brandedSignup
|
|
61
|
-
countryCode
|
|
62
|
-
currency
|
|
63
|
-
billingAddress
|
|
64
|
-
billingCity
|
|
65
|
-
billingState
|
|
66
|
-
billingCountryCode
|
|
67
|
-
billingPostalCode
|
|
68
|
-
phoneNumberCountryCode
|
|
69
|
-
phoneNumber
|
|
70
|
-
taxInformation {
|
|
71
|
-
indirectTaxId
|
|
72
|
-
indirectTaxCountryCode
|
|
73
|
-
indirectTaxRegion
|
|
74
|
-
additionalTaxId
|
|
75
|
-
withholdingTaxId
|
|
76
|
-
withholdingTaxCountryCode
|
|
77
|
-
}
|
|
78
|
-
requiredTaxDocumentType
|
|
79
|
-
currentTaxDocument {
|
|
80
|
-
status
|
|
81
|
-
type
|
|
82
|
-
dateCreated
|
|
83
|
-
}
|
|
84
|
-
withdrawalSettings {
|
|
85
|
-
paymentMethod
|
|
86
|
-
paypalEmailAddress
|
|
87
|
-
bankCountry
|
|
88
|
-
bankAccountNumber
|
|
89
|
-
paymentSchedulingType
|
|
90
|
-
paymentThreshold
|
|
91
|
-
paymentDay
|
|
92
|
-
}
|
|
93
|
-
payoutsAccount {
|
|
94
|
-
hold
|
|
95
|
-
holdReasons
|
|
96
|
-
balance
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
`;
|
|
104
|
-
const GET_COUNTRIES = index_module.dist.gql `
|
|
105
|
-
query getCountries {
|
|
106
|
-
impactPayoutCountries(limit: 1000) {
|
|
107
|
-
data {
|
|
108
|
-
countryCode
|
|
109
|
-
displayName
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
`;
|
|
114
|
-
const GET_CURRENCIES = index_module.dist.gql `
|
|
115
|
-
query currencies($locale: RSLocale) {
|
|
116
|
-
currencies(limit: 300) {
|
|
117
|
-
data {
|
|
118
|
-
displayName(locale: $locale)
|
|
119
|
-
currencyCode
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
`;
|
|
124
|
-
const GET_FINANCE_NETWORK_SETTINGS = index_module.dist.gql `
|
|
125
|
-
query impactFinanceNetworkSettings(
|
|
126
|
-
$filter: ImpactFinanceNetworkSettingsFilterInput
|
|
127
|
-
) {
|
|
128
|
-
impactFinanceNetworkSettings(filter: $filter, limit: 1000) {
|
|
129
|
-
data {
|
|
130
|
-
countryCode
|
|
131
|
-
currency
|
|
132
|
-
defaultFinancePaymentMethodId
|
|
133
|
-
thresholdOptions
|
|
134
|
-
withdrawalSettingId
|
|
135
|
-
internationalEftFee
|
|
136
|
-
foreignFxFee
|
|
137
|
-
defaultFxFee
|
|
138
|
-
}
|
|
139
|
-
totalCount
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
`;
|
|
143
|
-
const FORM_STEPS = 4;
|
|
24
|
+
const usePayoutStatus = require('./usePayoutStatus-feeac99b.js');
|
|
144
25
|
|
|
145
26
|
function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
146
27
|
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;
|
|
@@ -839,7 +720,7 @@ const BankingInfoFormView = (props) => {
|
|
|
839
720
|
!states.hideSteps && (index.h("p", null, global.intl.formatMessage({
|
|
840
721
|
id: "formStep",
|
|
841
722
|
defaultMessage: text.formStep,
|
|
842
|
-
}, { step: states.step, count: FORM_STEPS }))),
|
|
723
|
+
}, { step: states.step, count: data.FORM_STEPS }))),
|
|
843
724
|
index.h("h3", { style: { fontSize: "24px" } }, text.taxAndPayouts),
|
|
844
725
|
index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription)),
|
|
845
726
|
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet.classes.AlertContainer },
|
|
@@ -978,12 +859,12 @@ function useBankingInfoForm(props) {
|
|
|
978
859
|
const host = index_module._();
|
|
979
860
|
const locale = index_module.L();
|
|
980
861
|
const user = index_module.J();
|
|
981
|
-
const [step, setStep] = index_module.Pn(TAX_CONTEXT_NAMESPACE);
|
|
982
|
-
const context = index_module.Fn(TAX_FORM_CONTEXT_NAMESPACE);
|
|
983
|
-
const countries = index_module.Fn(SORTED_COUNTRIES_NAMESPACE);
|
|
862
|
+
const [step, setStep] = index_module.Pn(data.TAX_CONTEXT_NAMESPACE);
|
|
863
|
+
const context = index_module.Fn(data.TAX_FORM_CONTEXT_NAMESPACE);
|
|
864
|
+
const countries = index_module.Fn(data.SORTED_COUNTRIES_NAMESPACE);
|
|
984
865
|
const formRef = stencilHooks_module.useRef(null);
|
|
985
|
-
const { data: paymentOptionsData, loading: paymentOptionsLoading, errors: paymentOptionsError, } = index_module.$n(FINANCE_NETWORK_SETTINGS_NAMESPACE);
|
|
986
|
-
const { data: userData, refetch, errors: userError, } = index_module.$n(USER_QUERY_NAMESPACE);
|
|
866
|
+
const { data: paymentOptionsData, loading: paymentOptionsLoading, errors: paymentOptionsError, } = index_module.$n(data.FINANCE_NETWORK_SETTINGS_NAMESPACE);
|
|
867
|
+
const { data: userData, refetch, errors: userError, } = index_module.$n(data.USER_QUERY_NAMESPACE);
|
|
987
868
|
const [saveWithdrawalSettings] = index_module.$e(SAVE_WITHDRAWAL_SETTINGS);
|
|
988
869
|
const [updateWithdrawalSettings] = index_module.$e(UPDATE_WITHDRAWAL_SETTINGS);
|
|
989
870
|
const [showVerification, setShowVerification] = stencilHooks_module.useState(false);
|
|
@@ -1652,7 +1533,7 @@ function useDemoBankingInfoForm(props) {
|
|
|
1652
1533
|
const defaultPaymentScheduleChecked = (_f = (_e = (_d = props.demoData) === null || _d === void 0 ? void 0 : _d.states) === null || _e === void 0 ? void 0 : _e.formState) === null || _f === void 0 ? void 0 : _f.paymentScheduleChecked;
|
|
1653
1534
|
const defaultCurrency = (_h = (_g = props.demoData) === null || _g === void 0 ? void 0 : _g.states) === null || _h === void 0 ? void 0 : _h.currency;
|
|
1654
1535
|
const defaultCountry = (_l = (_k = (_j = props.demoData) === null || _j === void 0 ? void 0 : _j.states) === null || _k === void 0 ? void 0 : _k.formState) === null || _l === void 0 ? void 0 : _l.bankCountry;
|
|
1655
|
-
const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
|
|
1536
|
+
const setStep = index_module.En(data.TAX_CONTEXT_NAMESPACE);
|
|
1656
1537
|
const [paymentMethodChecked, setPaymentMethodChecked] = stencilHooks_module.useState(undefined);
|
|
1657
1538
|
const [paymentScheduleChecked, setPaymentScheduleChecked] = stencilHooks_module.useState(undefined);
|
|
1658
1539
|
const [currency, setCurrency] = stencilHooks_module.useState(defaultCurrency);
|
|
@@ -1745,331 +1626,6 @@ function useDemoBankingInfoForm(props) {
|
|
|
1745
1626
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
1746
1627
|
}
|
|
1747
1628
|
|
|
1748
|
-
const style$1 = {
|
|
1749
|
-
Wrapper: {
|
|
1750
|
-
display: "flex",
|
|
1751
|
-
flexDirection: "column",
|
|
1752
|
-
gap: "var(--sl-spacing-medium)",
|
|
1753
|
-
maxWidth: "550px",
|
|
1754
|
-
},
|
|
1755
|
-
HeaderContainer: {
|
|
1756
|
-
display: "flex",
|
|
1757
|
-
flexDirection: "column",
|
|
1758
|
-
},
|
|
1759
|
-
InputsContainer: {
|
|
1760
|
-
display: "flex",
|
|
1761
|
-
gap: "var(--sl-spacing-medium)",
|
|
1762
|
-
position: "relative",
|
|
1763
|
-
flexDirection: "column",
|
|
1764
|
-
},
|
|
1765
|
-
CodeInputContainer: {
|
|
1766
|
-
display: "flex",
|
|
1767
|
-
gap: "var(--sl-spacing-medium)",
|
|
1768
|
-
},
|
|
1769
|
-
CodeInput: {
|
|
1770
|
-
maxWidth: "40px",
|
|
1771
|
-
"&::part(input)": {
|
|
1772
|
-
margin: "0",
|
|
1773
|
-
padding: "0 var(--sl-input-spacing-small)",
|
|
1774
|
-
fontSize: "var(--sl-font-size-large)",
|
|
1775
|
-
},
|
|
1776
|
-
},
|
|
1777
|
-
CodeInputError: {
|
|
1778
|
-
...mixins.ErrorStyles,
|
|
1779
|
-
maxWidth: "40px",
|
|
1780
|
-
"&::part(input)": {
|
|
1781
|
-
margin: "0",
|
|
1782
|
-
padding: "0 var(--sl-input-spacing-small)",
|
|
1783
|
-
fontSize: "var(--sl-font-size-large)",
|
|
1784
|
-
},
|
|
1785
|
-
},
|
|
1786
|
-
ErrorText: {
|
|
1787
|
-
color: "var(--sl-color-danger-500)",
|
|
1788
|
-
fontSize: "var(--sl-font-size-small)",
|
|
1789
|
-
margin: "0",
|
|
1790
|
-
},
|
|
1791
|
-
ContinueButton: {
|
|
1792
|
-
width: "100%",
|
|
1793
|
-
maxWidth: "100px",
|
|
1794
|
-
},
|
|
1795
|
-
FooterContainer: {
|
|
1796
|
-
display: "flex",
|
|
1797
|
-
flexDirection: "column",
|
|
1798
|
-
},
|
|
1799
|
-
SkeletonOne: {
|
|
1800
|
-
width: "50%",
|
|
1801
|
-
height: "16px",
|
|
1802
|
-
},
|
|
1803
|
-
SkeletonTwo: {
|
|
1804
|
-
width: "30%",
|
|
1805
|
-
height: "34px",
|
|
1806
|
-
},
|
|
1807
|
-
SkeletonThree: {
|
|
1808
|
-
width: "15%",
|
|
1809
|
-
height: "24px",
|
|
1810
|
-
},
|
|
1811
|
-
};
|
|
1812
|
-
const vanillaStyle$1 = `
|
|
1813
|
-
:host {
|
|
1814
|
-
display: block;
|
|
1815
|
-
}
|
|
1816
|
-
:host([hidden]): {
|
|
1817
|
-
display: none;
|
|
1818
|
-
}
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
`;
|
|
1822
|
-
const sheet$1 = JSS.createStyleSheet(style$1);
|
|
1823
|
-
const styleString$1 = sheet$1.toString();
|
|
1824
|
-
function WidgetCodeVerificationView(props) {
|
|
1825
|
-
const { states, refs, callbacks, text } = props;
|
|
1826
|
-
const resendCodeText = global.intl.formatMessage({
|
|
1827
|
-
id: "resendCodeText",
|
|
1828
|
-
defaultMessage: text.resendCodeText,
|
|
1829
|
-
}, {
|
|
1830
|
-
resendCodeLink: (index.h("a", { href: "", style: { textDecoration: "none" }, onClick: (e) => {
|
|
1831
|
-
e.preventDefault();
|
|
1832
|
-
callbacks.resendEmail();
|
|
1833
|
-
} }, text.resendCodeLabel)),
|
|
1834
|
-
});
|
|
1835
|
-
const codeResentSuccessfully = global.intl.formatMessage({
|
|
1836
|
-
id: "codeResentSuccessfully",
|
|
1837
|
-
defaultMessage: text.codeResentSuccessfullyText,
|
|
1838
|
-
}, {
|
|
1839
|
-
email: states.email,
|
|
1840
|
-
});
|
|
1841
|
-
const inputClass = states.verifyFailed
|
|
1842
|
-
? sheet$1.classes.CodeInputError
|
|
1843
|
-
: sheet$1.classes.CodeInput;
|
|
1844
|
-
return (index.h("div", { part: "sqm-base" },
|
|
1845
|
-
index.h("style", { type: "text/css" },
|
|
1846
|
-
vanillaStyle$1,
|
|
1847
|
-
styleString$1),
|
|
1848
|
-
index.h("div", { class: sheet$1.classes.Wrapper },
|
|
1849
|
-
index.h("div", { class: sheet$1.classes.HeaderContainer },
|
|
1850
|
-
index.h(sqmTextSpanView.TextSpanView, { type: "p" }, global.intl.formatMessage({
|
|
1851
|
-
id: `emailHeaderText`,
|
|
1852
|
-
defaultMessage: states.verifyFailed
|
|
1853
|
-
? text.reverifyCodeHeaderText
|
|
1854
|
-
: text.verifyCodeHeaderText,
|
|
1855
|
-
}, { email: states.email }))),
|
|
1856
|
-
states.emailResent && (index.h("sqm-form-message", { type: "success", exportparts: "successalert-icon" },
|
|
1857
|
-
index.h("b", null, codeResentSuccessfully))),
|
|
1858
|
-
index.h("div", { class: sheet$1.classes.InputsContainer },
|
|
1859
|
-
index.h("div", { ref: refs.codeWrapperRef, class: sheet$1.classes.CodeInputContainer },
|
|
1860
|
-
index.h("sl-input", { class: inputClass, name: "code" }),
|
|
1861
|
-
index.h("sl-input", { class: inputClass, name: "code" }),
|
|
1862
|
-
index.h("sl-input", { class: inputClass, name: "code" }),
|
|
1863
|
-
index.h("sl-input", { class: inputClass, name: "code" }),
|
|
1864
|
-
index.h("sl-input", { class: inputClass, name: "code" }),
|
|
1865
|
-
index.h("sl-input", { class: inputClass, name: "code" })),
|
|
1866
|
-
states.verifyFailed && (index.h("p", { class: sheet$1.classes.ErrorText }, text.invalidCodeText)),
|
|
1867
|
-
index.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)),
|
|
1868
|
-
index.h("div", { class: sheet$1.classes.FooterContainer },
|
|
1869
|
-
index.h(sqmTextSpanView.TextSpanView, { type: "p" }, resendCodeText)))));
|
|
1870
|
-
}
|
|
1871
|
-
|
|
1872
|
-
const VerifyEmailWithCodeMutation = index_module.dist.gql `
|
|
1873
|
-
mutation submitImpactPublisherEmail2FACode(
|
|
1874
|
-
$user: UserIdInput!
|
|
1875
|
-
$code: String!
|
|
1876
|
-
) {
|
|
1877
|
-
submitImpactPublisherEmail2FACode(user: $user, code: $code) {
|
|
1878
|
-
verifiedEmail
|
|
1879
|
-
accessKey
|
|
1880
|
-
}
|
|
1881
|
-
}
|
|
1882
|
-
`;
|
|
1883
|
-
function useWidgetCodeVerification(props) {
|
|
1884
|
-
const host = stencilHooks_module.l();
|
|
1885
|
-
const [_, setShowCode] = index_module.Pn(keys.SHOW_CODE_NAMESPACE);
|
|
1886
|
-
const email = index_module.Fn(keys.VERIFICATION_EMAIL_NAMESPACE);
|
|
1887
|
-
const [emailSent, setEmailSent] = stencilHooks_module.useState(false);
|
|
1888
|
-
const [emailResent, setEmailResent] = stencilHooks_module.useState(false);
|
|
1889
|
-
const [codeRef, setCodeRef] = stencilHooks_module.useState(null);
|
|
1890
|
-
const [validationError, setValidationError] = stencilHooks_module.useState(false);
|
|
1891
|
-
const [emailError, setEmailError] = stencilHooks_module.useState(false);
|
|
1892
|
-
const { initialized, verificationEmail, send: [sendEmail, { loading: sendLoading, errors: sendErrors }], verify: [verifyEmail, { loading: verifyLoading, errors: verifyErrors }], } = useVerificationEmail.useVerificationEmail();
|
|
1893
|
-
stencilHooks_module.useEffect(() => {
|
|
1894
|
-
if (!codeRef)
|
|
1895
|
-
return;
|
|
1896
|
-
const slInputs = codeRef.querySelectorAll("sl-input");
|
|
1897
|
-
const codeElements = Array.from(slInputs).map((node) => node.shadowRoot.querySelector(`input[name="code"]`));
|
|
1898
|
-
codeElements.forEach((element, idx) => {
|
|
1899
|
-
element.addEventListener("focus", (e) => {
|
|
1900
|
-
e.target.select();
|
|
1901
|
-
});
|
|
1902
|
-
element.addEventListener("keydown", (e) => {
|
|
1903
|
-
if (e.key === "Backspace" && e.target.value === "") {
|
|
1904
|
-
codeElements[Math.max(0, idx - 1)].focus();
|
|
1905
|
-
}
|
|
1906
|
-
});
|
|
1907
|
-
element.addEventListener("input", (e) => {
|
|
1908
|
-
const input = e.data;
|
|
1909
|
-
if (!input)
|
|
1910
|
-
return;
|
|
1911
|
-
if (idx === codeElements.length - 1) {
|
|
1912
|
-
e.target.value = input.slice(0, 1);
|
|
1913
|
-
return;
|
|
1914
|
-
}
|
|
1915
|
-
if (input.length > 1) {
|
|
1916
|
-
const rest = input.slice(1);
|
|
1917
|
-
e.target.value = input.slice(0, 1);
|
|
1918
|
-
codeElements[idx + 1].dispatchEvent(new InputEvent("input", {
|
|
1919
|
-
inputType: "insertFromPaste",
|
|
1920
|
-
data: rest,
|
|
1921
|
-
}));
|
|
1922
|
-
}
|
|
1923
|
-
codeElements[idx + 1].focus();
|
|
1924
|
-
});
|
|
1925
|
-
});
|
|
1926
|
-
}, [codeRef]);
|
|
1927
|
-
const reset = () => {
|
|
1928
|
-
setShowCode(false);
|
|
1929
|
-
setValidationError(false);
|
|
1930
|
-
};
|
|
1931
|
-
const resendEmail = async () => {
|
|
1932
|
-
// UI should only allow this to be called if initialized, but checking just in case
|
|
1933
|
-
if (!initialized)
|
|
1934
|
-
return;
|
|
1935
|
-
const result = await sendEmail();
|
|
1936
|
-
if (!result) {
|
|
1937
|
-
setEmailError(true);
|
|
1938
|
-
return;
|
|
1939
|
-
}
|
|
1940
|
-
if (emailSent)
|
|
1941
|
-
setEmailResent(true);
|
|
1942
|
-
setEmailSent(true);
|
|
1943
|
-
};
|
|
1944
|
-
const submitCode = async () => {
|
|
1945
|
-
const slInputs = codeRef.querySelectorAll("sl-input");
|
|
1946
|
-
const codeElements = Array.from(slInputs).map((node) => node.shadowRoot.querySelector(`input[name="code"]`));
|
|
1947
|
-
if (codeElements.find((el) => !el.value)) {
|
|
1948
|
-
setValidationError(true);
|
|
1949
|
-
return;
|
|
1950
|
-
}
|
|
1951
|
-
let code = "";
|
|
1952
|
-
codeElements.forEach((element) => {
|
|
1953
|
-
code = `${code}${element.value}`;
|
|
1954
|
-
});
|
|
1955
|
-
// UI should only allow this to be called if initialized, but checking just in case
|
|
1956
|
-
if (!initialized)
|
|
1957
|
-
return;
|
|
1958
|
-
setValidationError(false);
|
|
1959
|
-
const res = await verifyEmail(code);
|
|
1960
|
-
if (res === null || res === void 0 ? void 0 : res.success) {
|
|
1961
|
-
props.onVerification(res.accessKey);
|
|
1962
|
-
reset();
|
|
1963
|
-
}
|
|
1964
|
-
else {
|
|
1965
|
-
setValidationError(true);
|
|
1966
|
-
}
|
|
1967
|
-
};
|
|
1968
|
-
stencilHooks_module.useEffect(() => {
|
|
1969
|
-
// Wait for mutations to be determined from user lookup
|
|
1970
|
-
if (!initialized)
|
|
1971
|
-
return;
|
|
1972
|
-
// email should already exist if user has completed email-verification
|
|
1973
|
-
if (!email)
|
|
1974
|
-
resendEmail();
|
|
1975
|
-
else
|
|
1976
|
-
setEmailSent(true);
|
|
1977
|
-
}, [initialized]);
|
|
1978
|
-
return {
|
|
1979
|
-
refs: {
|
|
1980
|
-
codeWrapperRef: setCodeRef,
|
|
1981
|
-
},
|
|
1982
|
-
states: {
|
|
1983
|
-
email: verificationEmail,
|
|
1984
|
-
emailResent,
|
|
1985
|
-
resendError: sendErrors || verifyErrors,
|
|
1986
|
-
initialiseLoading: !initialized,
|
|
1987
|
-
loading: sendLoading || verifyLoading,
|
|
1988
|
-
verifyFailed: !!validationError,
|
|
1989
|
-
},
|
|
1990
|
-
callbacks: {
|
|
1991
|
-
resendEmail,
|
|
1992
|
-
submitCode,
|
|
1993
|
-
},
|
|
1994
|
-
text: props.getTextProps(),
|
|
1995
|
-
};
|
|
1996
|
-
}
|
|
1997
|
-
|
|
1998
|
-
const WidgetCodeVerification = class {
|
|
1999
|
-
constructor(hostRef) {
|
|
2000
|
-
index.registerInstance(this, hostRef);
|
|
2001
|
-
/**
|
|
2002
|
-
* @uiName Verify code widget header text
|
|
2003
|
-
*/
|
|
2004
|
-
this.verifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
|
|
2005
|
-
/**
|
|
2006
|
-
* @uiName Reverify code widget header text
|
|
2007
|
-
*/
|
|
2008
|
-
this.reverifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
|
|
2009
|
-
/**
|
|
2010
|
-
* Text displayed under verify button
|
|
2011
|
-
* @uiName Resend code text
|
|
2012
|
-
*/
|
|
2013
|
-
this.resendCodeText = "Didn't receive your code? {resendCodeLink}";
|
|
2014
|
-
/**
|
|
2015
|
-
* The link that appears in the resend code link
|
|
2016
|
-
* @uiName Resend code label
|
|
2017
|
-
*/
|
|
2018
|
-
this.resendCodeLabel = "Resend code";
|
|
2019
|
-
/**
|
|
2020
|
-
* Link text displayed under verify button
|
|
2021
|
-
* @uiName Resend code text
|
|
2022
|
-
*/
|
|
2023
|
-
this.codeResentSuccessfullyText = "Another code has been sent to {email}";
|
|
2024
|
-
/**
|
|
2025
|
-
* Error text displayed under verification input
|
|
2026
|
-
* @uiName Invalid code text
|
|
2027
|
-
*/
|
|
2028
|
-
this.invalidCodeText = "Please check your code and try again. If you’re still having trouble, try resending your code.";
|
|
2029
|
-
/**
|
|
2030
|
-
* @uiName Verify code button text
|
|
2031
|
-
*/
|
|
2032
|
-
this.verifyText = "Verify";
|
|
2033
|
-
/**
|
|
2034
|
-
* Displayed when the email verification fails due to a network error. The participant can try refreshing the page.
|
|
2035
|
-
* @uiName Network error message
|
|
2036
|
-
*/
|
|
2037
|
-
this.networkErrorMessage = "An error occurred while verifying your email. Please refresh the page and try again.";
|
|
2038
|
-
stencilHooks_module.h$1(this);
|
|
2039
|
-
}
|
|
2040
|
-
disconnectedCallback() { }
|
|
2041
|
-
getTextProps() {
|
|
2042
|
-
return utils.getProps(this);
|
|
2043
|
-
}
|
|
2044
|
-
render() {
|
|
2045
|
-
const props = index_module.isDemo()
|
|
2046
|
-
? useDemoWidgetCodeVerification(this)
|
|
2047
|
-
: useWidgetCodeVerification(this);
|
|
2048
|
-
return index.h(WidgetCodeVerificationView, Object.assign({}, props));
|
|
2049
|
-
}
|
|
2050
|
-
};
|
|
2051
|
-
function useDemoWidgetCodeVerification(props) {
|
|
2052
|
-
const [emailResent, setEmailResent] = stencilHooks_module.useState(false);
|
|
2053
|
-
const setVerifiedContext = index_module.En(keys.VERIFICATION_PARENT_NAMESPACE);
|
|
2054
|
-
return cjs.cjs({
|
|
2055
|
-
states: {
|
|
2056
|
-
loading: false,
|
|
2057
|
-
email: "test@example.com",
|
|
2058
|
-
emailResent,
|
|
2059
|
-
resendError: false,
|
|
2060
|
-
verifyFailed: false,
|
|
2061
|
-
},
|
|
2062
|
-
refs: {
|
|
2063
|
-
codeWrapperRef: () => { },
|
|
2064
|
-
},
|
|
2065
|
-
callbacks: {
|
|
2066
|
-
resendEmail: async () => setEmailResent(true),
|
|
2067
|
-
submitCode: async () => setVerifiedContext(true),
|
|
2068
|
-
},
|
|
2069
|
-
text: props.getTextProps(),
|
|
2070
|
-
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
2071
|
-
}
|
|
2072
|
-
|
|
2073
1629
|
const GET_TAX_DOCUMENT = index_module.dist.gql `
|
|
2074
1630
|
mutation createImpactPublisherTaxDocument(
|
|
2075
1631
|
$vars: CreateImpactPublisherTaxDocumentInput!
|
|
@@ -2098,10 +1654,10 @@ const DOCUSIGN_EXPIRED_STATES = ["ttl_expired", "session_timeout"];
|
|
|
2098
1654
|
function useDocusignForm(props) {
|
|
2099
1655
|
var _a, _b, _c;
|
|
2100
1656
|
const user = index_module.J();
|
|
2101
|
-
const context = index_module.Fn(TAX_FORM_CONTEXT_NAMESPACE);
|
|
2102
|
-
const [step, setStep] = index_module.Pn(TAX_CONTEXT_NAMESPACE);
|
|
2103
|
-
const { data, loading: userLoading, refetch, } = index_module.$n(USER_QUERY_NAMESPACE);
|
|
2104
|
-
const publisher = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher;
|
|
1657
|
+
const context = index_module.Fn(data.TAX_FORM_CONTEXT_NAMESPACE);
|
|
1658
|
+
const [step, setStep] = index_module.Pn(data.TAX_CONTEXT_NAMESPACE);
|
|
1659
|
+
const { data: data$1, loading: userLoading, refetch, } = index_module.$n(data.USER_QUERY_NAMESPACE);
|
|
1660
|
+
const publisher = (_b = (_a = data$1 === null || data$1 === void 0 ? void 0 : data$1.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher;
|
|
2105
1661
|
const [createTaxDocument, { loading: documentLoading, data: document, errors: documentErrors },] = index_module.$e(GET_TAX_DOCUMENT);
|
|
2106
1662
|
const [completeTaxDocument, { loading: completeDocumentLoading, data: completeData, errors: completeErrors, },] = index_module.$e(COMPLETE_TAX_DOCUMENT);
|
|
2107
1663
|
const [docusignStatus, setDocusignStatus] = stencilHooks_module.useState(undefined);
|
|
@@ -2110,7 +1666,7 @@ function useDocusignForm(props) {
|
|
|
2110
1666
|
const [loading, setLoading] = stencilHooks_module.useState(false);
|
|
2111
1667
|
const [showExitButton, setShowExitButton] = stencilHooks_module.useState(false);
|
|
2112
1668
|
// Only look at current document if it's valid (same as required type)
|
|
2113
|
-
const existingDocumentType =
|
|
1669
|
+
const existingDocumentType = utils$1.validTaxDocument(publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType) && (publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument)
|
|
2114
1670
|
? publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType : undefined;
|
|
2115
1671
|
const actualDocumentType = existingDocumentType ||
|
|
2116
1672
|
getDocumentType(participantType) || (publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType);
|
|
@@ -2202,7 +1758,7 @@ function useDocusignForm(props) {
|
|
|
2202
1758
|
},
|
|
2203
1759
|
docusignStatus,
|
|
2204
1760
|
documentType: actualDocumentType,
|
|
2205
|
-
documentTypeString:
|
|
1761
|
+
documentTypeString: utils$1.taxTypeToName(actualDocumentType),
|
|
2206
1762
|
showExitButton,
|
|
2207
1763
|
},
|
|
2208
1764
|
data: {
|
|
@@ -2227,7 +1783,7 @@ function getDocumentType(p) {
|
|
|
2227
1783
|
return undefined;
|
|
2228
1784
|
}
|
|
2229
1785
|
|
|
2230
|
-
const style$
|
|
1786
|
+
const style$1 = {
|
|
2231
1787
|
DocusignStatusContainer: {
|
|
2232
1788
|
width: "100%",
|
|
2233
1789
|
minHeight: "600px",
|
|
@@ -2254,13 +1810,13 @@ const style$2 = {
|
|
|
2254
1810
|
},
|
|
2255
1811
|
},
|
|
2256
1812
|
};
|
|
2257
|
-
const sheet$
|
|
2258
|
-
const styleString$
|
|
1813
|
+
const sheet$1 = JSS.createStyleSheet(style$1);
|
|
1814
|
+
const styleString$1 = sheet$1.toString();
|
|
2259
1815
|
const DocusignExpiredView = (props) => {
|
|
2260
|
-
const { classes } = sheet$
|
|
1816
|
+
const { classes } = sheet$1;
|
|
2261
1817
|
const { text } = props;
|
|
2262
1818
|
return (index.h("div", null,
|
|
2263
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
1819
|
+
index.h("style", { type: "text/css" }, styleString$1),
|
|
2264
1820
|
index.h("div", { class: classes.DocusignStatusContainer },
|
|
2265
1821
|
index.h("sl-icon", { style: {
|
|
2266
1822
|
width: "50px",
|
|
@@ -2272,10 +1828,10 @@ const DocusignExpiredView = (props) => {
|
|
|
2272
1828
|
index.h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
|
|
2273
1829
|
};
|
|
2274
1830
|
const DocusignErrorView = (props) => {
|
|
2275
|
-
const { classes } = sheet$
|
|
1831
|
+
const { classes } = sheet$1;
|
|
2276
1832
|
const { text } = props;
|
|
2277
1833
|
return (index.h("div", null,
|
|
2278
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
1834
|
+
index.h("style", { type: "text/css" }, styleString$1),
|
|
2279
1835
|
index.h("div", { class: classes.DocusignStatusContainer },
|
|
2280
1836
|
index.h("sl-icon", { style: {
|
|
2281
1837
|
width: "50px",
|
|
@@ -2287,14 +1843,14 @@ const DocusignErrorView = (props) => {
|
|
|
2287
1843
|
index.h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
|
|
2288
1844
|
};
|
|
2289
1845
|
const DocusignLoadingView = () => {
|
|
2290
|
-
const { classes } = sheet$
|
|
1846
|
+
const { classes } = sheet$1;
|
|
2291
1847
|
return (index.h("div", null,
|
|
2292
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
1848
|
+
index.h("style", { type: "text/css" }, styleString$1),
|
|
2293
1849
|
index.h("div", { class: classes.DocusignStatusContainer },
|
|
2294
1850
|
index.h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } }))));
|
|
2295
1851
|
};
|
|
2296
1852
|
const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
2297
|
-
const { classes } = sheet$
|
|
1853
|
+
const { classes } = sheet$1;
|
|
2298
1854
|
const [iFrameHeight, setiFrameHeight] = stencilHooks_module.useState("100%");
|
|
2299
1855
|
const allowedDomains = [
|
|
2300
1856
|
"referralsaasquatch.com",
|
|
@@ -2327,12 +1883,12 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
|
2327
1883
|
return index.h(DocusignExpiredView, { text: text });
|
|
2328
1884
|
// Wrap iFrame with container that shares the same height to push other elements down when absolute positioned
|
|
2329
1885
|
return (index.h("div", { style: { height: iFrameHeight } },
|
|
2330
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
1886
|
+
index.h("style", { type: "text/css" }, styleString$1),
|
|
2331
1887
|
index.h("div", { class: classes.IFrameContainer },
|
|
2332
1888
|
index.h("iframe", { scrolling: "yes", frameBorder: "0", width: "100%", src: data.documentUrl, height: iFrameHeight }))));
|
|
2333
1889
|
};
|
|
2334
1890
|
|
|
2335
|
-
const style$
|
|
1891
|
+
const style$2 = {
|
|
2336
1892
|
FormWrapper: {
|
|
2337
1893
|
display: "flex",
|
|
2338
1894
|
justifyContent: "flex-start",
|
|
@@ -2422,9 +1978,9 @@ const style$3 = {
|
|
|
2422
1978
|
fontSize: "var(--sl-font-size-medium)",
|
|
2423
1979
|
},
|
|
2424
1980
|
};
|
|
2425
|
-
const sheet$
|
|
2426
|
-
const styleString$
|
|
2427
|
-
const vanillaStyle$
|
|
1981
|
+
const sheet$2 = JSS.createStyleSheet(style$2);
|
|
1982
|
+
const styleString$2 = sheet$2.toString();
|
|
1983
|
+
const vanillaStyle$1 = `
|
|
2428
1984
|
:host{
|
|
2429
1985
|
display: block;
|
|
2430
1986
|
}
|
|
@@ -2445,21 +2001,21 @@ const vanillaStyle$2 = `
|
|
|
2445
2001
|
const DocusignFormView = (props) => {
|
|
2446
2002
|
var _a;
|
|
2447
2003
|
const { states, states: { formState, documentTypeString }, callbacks, text, slots, } = props;
|
|
2448
|
-
const { classes } = sheet$
|
|
2004
|
+
const { classes } = sheet$2;
|
|
2449
2005
|
return (index.h("div", { class: classes.Container },
|
|
2450
2006
|
index.h("style", { type: "text/css" },
|
|
2451
|
-
styleString$
|
|
2452
|
-
vanillaStyle$
|
|
2007
|
+
styleString$2,
|
|
2008
|
+
vanillaStyle$1),
|
|
2453
2009
|
index.h("div", { class: classes.TextContainer },
|
|
2454
2010
|
index.h("div", null,
|
|
2455
2011
|
!states.hideSteps && (index.h("p", null, global.intl.formatMessage({
|
|
2456
2012
|
id: "formStep",
|
|
2457
2013
|
defaultMessage: text.formStep,
|
|
2458
|
-
}, { step: states.step, count: FORM_STEPS }))),
|
|
2014
|
+
}, { step: states.step, count: data.FORM_STEPS }))),
|
|
2459
2015
|
index.h("h3", null, text.taxForm),
|
|
2460
2016
|
index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
|
|
2461
2017
|
states.loadingError && (index.h("div", null,
|
|
2462
|
-
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$
|
|
2018
|
+
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$2.classes.ErrorAlertContainer },
|
|
2463
2019
|
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2464
2020
|
index.h("strong", null, text.error.loadingErrorAlertHeader),
|
|
2465
2021
|
index.h("br", null),
|
|
@@ -2469,7 +2025,7 @@ const DocusignFormView = (props) => {
|
|
|
2469
2025
|
}, {
|
|
2470
2026
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2471
2027
|
})))),
|
|
2472
|
-
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$
|
|
2028
|
+
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$2.classes.ErrorAlertContainer },
|
|
2473
2029
|
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2474
2030
|
index.h("strong", null, text.error.generalTitle),
|
|
2475
2031
|
index.h("br", null),
|
|
@@ -2640,7 +2196,7 @@ const DocusignForm = class {
|
|
|
2640
2196
|
get el() { return index.getElement(this); }
|
|
2641
2197
|
};
|
|
2642
2198
|
function useDocusignFormDemo(props) {
|
|
2643
|
-
const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
|
|
2199
|
+
const setStep = index_module.En(data.TAX_CONTEXT_NAMESPACE);
|
|
2644
2200
|
return cjs.cjs({
|
|
2645
2201
|
text: props.getTextProps(),
|
|
2646
2202
|
states: {
|
|
@@ -2689,7 +2245,7 @@ const DemoDocusignIframe = ({ callbacks }) => {
|
|
|
2689
2245
|
} }, index.h("span", null, "Placeholder for docusign iframe"), index.h("div", { style: { display: "flex", gap: "8px" } }, index.h("sl-button", { type: "primary", submit: true, exportparts: "base: primarybutton-base", onClick: callbacks.demo.onBack }, "Back to Step 2"), index.h("sl-button", { type: "primary", submit: true, exportparts: "base: primarybutton-base", onClick: callbacks.demo.onSubmit }, "Continue to Step 4")))));
|
|
2690
2246
|
};
|
|
2691
2247
|
|
|
2692
|
-
const style$
|
|
2248
|
+
const style$3 = {
|
|
2693
2249
|
FormWrapper: {
|
|
2694
2250
|
display: "flex",
|
|
2695
2251
|
justifyContent: "flex-start",
|
|
@@ -2821,9 +2377,9 @@ const style$4 = {
|
|
|
2821
2377
|
},
|
|
2822
2378
|
},
|
|
2823
2379
|
};
|
|
2824
|
-
const sheet$
|
|
2825
|
-
const styleString$
|
|
2826
|
-
const vanillaStyle$
|
|
2380
|
+
const sheet$3 = JSS.createStyleSheet(style$3);
|
|
2381
|
+
const styleString$3 = sheet$3.toString();
|
|
2382
|
+
const vanillaStyle$2 = `
|
|
2827
2383
|
:host{
|
|
2828
2384
|
display: block;
|
|
2829
2385
|
}
|
|
@@ -2850,11 +2406,11 @@ const vanillaStyle$3 = `
|
|
|
2850
2406
|
const IndirectTaxFormView = (props) => {
|
|
2851
2407
|
var _a;
|
|
2852
2408
|
const { states, states: { formState }, callbacks, text, refs, slots, } = props;
|
|
2853
|
-
const { classes } = sheet$
|
|
2409
|
+
const { classes } = sheet$3;
|
|
2854
2410
|
return (index.h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
2855
2411
|
index.h("style", { type: "text/css" },
|
|
2856
|
-
styleString$
|
|
2857
|
-
vanillaStyle$
|
|
2412
|
+
styleString$3,
|
|
2413
|
+
vanillaStyle$2),
|
|
2858
2414
|
index.h("div", { class: classes.TextContainer },
|
|
2859
2415
|
index.h("div", null,
|
|
2860
2416
|
!states.hideSteps && (index.h("p", null,
|
|
@@ -2862,12 +2418,12 @@ const IndirectTaxFormView = (props) => {
|
|
|
2862
2418
|
global.intl.formatMessage({
|
|
2863
2419
|
id: "formStep",
|
|
2864
2420
|
defaultMessage: text.formStep,
|
|
2865
|
-
}, { step: states.step, count: FORM_STEPS }))),
|
|
2421
|
+
}, { step: states.step, count: data.FORM_STEPS }))),
|
|
2866
2422
|
index.h("h3", null, text.indirectTax),
|
|
2867
2423
|
index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription),
|
|
2868
2424
|
index.h("p", { class: classes.DescriptionText }, text.indirectTaxDescription)),
|
|
2869
2425
|
states.loadingError && (index.h("div", null,
|
|
2870
|
-
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$
|
|
2426
|
+
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$3.classes.AlertContainer },
|
|
2871
2427
|
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2872
2428
|
index.h("strong", null, text.error.loadingErrorAlertHeader),
|
|
2873
2429
|
index.h("br", null),
|
|
@@ -2877,7 +2433,7 @@ const IndirectTaxFormView = (props) => {
|
|
|
2877
2433
|
}, {
|
|
2878
2434
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2879
2435
|
})))),
|
|
2880
|
-
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$
|
|
2436
|
+
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$3.classes.AlertContainer },
|
|
2881
2437
|
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2882
2438
|
index.h("strong", null, text.error.generalTitle),
|
|
2883
2439
|
index.h("br", null),
|
|
@@ -2887,7 +2443,7 @@ const IndirectTaxFormView = (props) => {
|
|
|
2887
2443
|
}, {
|
|
2888
2444
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
2889
2445
|
}))),
|
|
2890
|
-
states.isPartner && (index.h("sl-alert", { type: "primary", open: true, class: sheet$
|
|
2446
|
+
states.isPartner && (index.h("sl-alert", { type: "primary", open: true, class: sheet$3.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
|
|
2891
2447
|
index.h("sl-icon", { slot: "icon", name: "info-circle" }),
|
|
2892
2448
|
index.h("strong", null, text.isPartnerAlertHeader),
|
|
2893
2449
|
index.h("br", null),
|
|
@@ -2965,14 +2521,14 @@ function useIndirectTaxForm(props) {
|
|
|
2965
2521
|
const user = index_module.J();
|
|
2966
2522
|
const locale = index_module.L();
|
|
2967
2523
|
const formRef = stencilHooks_module.useRef(null);
|
|
2968
|
-
const context = index_module.Fn(TAX_FORM_CONTEXT_NAMESPACE);
|
|
2969
|
-
const [step, setStep] = index_module.Pn(TAX_CONTEXT_NAMESPACE);
|
|
2524
|
+
const context = index_module.Fn(data.TAX_FORM_CONTEXT_NAMESPACE);
|
|
2525
|
+
const [step, setStep] = index_module.Pn(data.TAX_CONTEXT_NAMESPACE);
|
|
2970
2526
|
const [connectImpactPartner, { loading: connectLoading, errors: connectErrors },] = index_module.$e(CONNECT_PARTNER);
|
|
2971
|
-
const userForm = index_module.Fn(USER_FORM_CONTEXT_NAMESPACE);
|
|
2972
|
-
const { data: userData, refetch, errors: userError, } = index_module.$n(USER_QUERY_NAMESPACE);
|
|
2973
|
-
const { data: _countriesRes, loading: countriesLoading } = index_module.$n(COUNTRIES_QUERY_NAMESPACE);
|
|
2527
|
+
const userForm = index_module.Fn(data.USER_FORM_CONTEXT_NAMESPACE);
|
|
2528
|
+
const { data: userData, refetch, errors: userError, } = index_module.$n(data.USER_QUERY_NAMESPACE);
|
|
2529
|
+
const { data: _countriesRes, loading: countriesLoading } = index_module.$n(data.COUNTRIES_QUERY_NAMESPACE);
|
|
2974
2530
|
const intlLocale = (locale === null || locale === void 0 ? void 0 : locale.replace("_", "-")) || "en";
|
|
2975
|
-
const _countries = stencilHooks_module.useMemo(() => { var _a, _b; return (_b = (_a = _countriesRes === null || _countriesRes === void 0 ? void 0 : _countriesRes.impactPayoutCountries) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.map((country) =>
|
|
2531
|
+
const _countries = stencilHooks_module.useMemo(() => { var _a, _b; return (_b = (_a = _countriesRes === null || _countriesRes === void 0 ? void 0 : _countriesRes.impactPayoutCountries) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.map((country) => utils$1.getCountryObj({ countryCode: country.countryCode, locale: intlLocale })); }, [(_a = _countriesRes === null || _countriesRes === void 0 ? void 0 : _countriesRes.impactPayoutCountries) === null || _a === void 0 ? void 0 : _a.data]);
|
|
2976
2532
|
const [loading, setLoading] = stencilHooks_module.useState(false);
|
|
2977
2533
|
const [formState, setFormState] = stencilHooks_module.useState({});
|
|
2978
2534
|
const [errors, setErrors] = stencilHooks_module.useState({});
|
|
@@ -3087,7 +2643,7 @@ function useIndirectTaxForm(props) {
|
|
|
3087
2643
|
await refetch();
|
|
3088
2644
|
const resultPublisher = (_e = (_d = (_c = result
|
|
3089
2645
|
.createImpactConnection) === null || _c === void 0 ? void 0 : _c.user) === null || _d === void 0 ? void 0 : _d.impactConnection) === null || _e === void 0 ? void 0 : _e.publisher;
|
|
3090
|
-
const hasValidCurrentDocument =
|
|
2646
|
+
const hasValidCurrentDocument = utils$1.validTaxDocument(resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) && (resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.currentTaxDocument);
|
|
3091
2647
|
// Fire form change event
|
|
3092
2648
|
window.dispatchEvent(new Event(usePayoutStatus.TAX_FORM_UPDATED_EVENT_KEY));
|
|
3093
2649
|
if ((resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) &&
|
|
@@ -3142,10 +2698,10 @@ function useIndirectTaxForm(props) {
|
|
|
3142
2698
|
})),
|
|
3143
2699
|
},
|
|
3144
2700
|
data: {
|
|
3145
|
-
esRegions:
|
|
2701
|
+
esRegions: IndirectTaxDetailsView.INDIRECT_TAX_SPAIN_REGIONS,
|
|
3146
2702
|
countries: filteredCountries,
|
|
3147
2703
|
allCountries: _countries,
|
|
3148
|
-
provinces:
|
|
2704
|
+
provinces: IndirectTaxDetailsView.INDIRECT_TAX_PROVINCES,
|
|
3149
2705
|
},
|
|
3150
2706
|
text: props.getTextProps(),
|
|
3151
2707
|
refs: {
|
|
@@ -3347,7 +2903,7 @@ const IndirectTaxForm = class {
|
|
|
3347
2903
|
const props = index_module.isDemo()
|
|
3348
2904
|
? useDemoIndirectTaxForm(this)
|
|
3349
2905
|
: useIndirectTaxForm(this);
|
|
3350
|
-
const registeredInDifferentCountryDetailsSlot = (index.h(
|
|
2906
|
+
const registeredInDifferentCountryDetailsSlot = (index.h(IndirectTaxDetailsView.OtherRegionSlotView, { states: {
|
|
3351
2907
|
hide: props.states.formState.checked !== "otherRegion",
|
|
3352
2908
|
disabled: props.states.disabled || props.states.isPartner,
|
|
3353
2909
|
formState: props.slotProps.formState,
|
|
@@ -3365,7 +2921,7 @@ const IndirectTaxForm = class {
|
|
|
3365
2921
|
}
|
|
3366
2922
|
};
|
|
3367
2923
|
function useDemoIndirectTaxForm(props) {
|
|
3368
|
-
const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
|
|
2924
|
+
const setStep = index_module.En(data.TAX_CONTEXT_NAMESPACE);
|
|
3369
2925
|
const [option, setOption] = stencilHooks_module.useState(null);
|
|
3370
2926
|
const [demoFormState, setDemoFormState] = stencilHooks_module.useState({});
|
|
3371
2927
|
return cjs.cjs({
|
|
@@ -3406,7 +2962,7 @@ function useDemoIndirectTaxForm(props) {
|
|
|
3406
2962
|
setCountrySearch: (c) => console.log(c),
|
|
3407
2963
|
},
|
|
3408
2964
|
data: {
|
|
3409
|
-
esRegions:
|
|
2965
|
+
esRegions: IndirectTaxDetailsView.INDIRECT_TAX_SPAIN_REGIONS,
|
|
3410
2966
|
countries: [
|
|
3411
2967
|
{
|
|
3412
2968
|
countryCode: "CA",
|
|
@@ -3425,7 +2981,7 @@ function useDemoIndirectTaxForm(props) {
|
|
|
3425
2981
|
displayName: "United States",
|
|
3426
2982
|
},
|
|
3427
2983
|
],
|
|
3428
|
-
provinces:
|
|
2984
|
+
provinces: IndirectTaxDetailsView.INDIRECT_TAX_PROVINCES,
|
|
3429
2985
|
},
|
|
3430
2986
|
text: props.getTextProps(),
|
|
3431
2987
|
refs: {
|
|
@@ -3658,7 +3214,7 @@ const InvoiceTable = class {
|
|
|
3658
3214
|
? useInvoiceTableDemo(this, empty, loading)
|
|
3659
3215
|
: useInvoiceTable(this, empty, loading);
|
|
3660
3216
|
reRender.useRequestRerender([this.perPage]);
|
|
3661
|
-
return (index.h(
|
|
3217
|
+
return (index.h(IndirectTaxDetailsView.InvoiceTableView, { header: this.header, description: this.description }, index.h(GenericTableView.GenericTableView, { states: states, data: data, callbacks: callbacks, elements: elements })));
|
|
3662
3218
|
}
|
|
3663
3219
|
};
|
|
3664
3220
|
function EmptySlot(props) {
|
|
@@ -3760,18 +3316,6 @@ function useInvoiceTableDemo(props, emptyElement, loadingElement) {
|
|
|
3760
3316
|
return demoProps;
|
|
3761
3317
|
}
|
|
3762
3318
|
|
|
3763
|
-
const InvoiceTableDataCell = class {
|
|
3764
|
-
constructor(hostRef) {
|
|
3765
|
-
index.registerInstance(this, hostRef);
|
|
3766
|
-
this.ignored = true;
|
|
3767
|
-
stencilHooks_module.h$1(this);
|
|
3768
|
-
}
|
|
3769
|
-
disconnectedCallback() { }
|
|
3770
|
-
render() {
|
|
3771
|
-
return this.data;
|
|
3772
|
-
}
|
|
3773
|
-
};
|
|
3774
|
-
|
|
3775
3319
|
const InvoiceTableDataColumn = class {
|
|
3776
3320
|
constructor(hostRef) {
|
|
3777
3321
|
index.registerInstance(this, hostRef);
|
|
@@ -3790,23 +3334,6 @@ const InvoiceTableDataColumn = class {
|
|
|
3790
3334
|
}
|
|
3791
3335
|
};
|
|
3792
3336
|
|
|
3793
|
-
const RewardTableDateCell = class {
|
|
3794
|
-
constructor(hostRef) {
|
|
3795
|
-
index.registerInstance(this, hostRef);
|
|
3796
|
-
this.ignored = true;
|
|
3797
|
-
this.locale = "en";
|
|
3798
|
-
stencilHooks_module.h$1(this);
|
|
3799
|
-
}
|
|
3800
|
-
disconnectedCallback() { }
|
|
3801
|
-
render() {
|
|
3802
|
-
var _a, _b;
|
|
3803
|
-
const date = !this.date
|
|
3804
|
-
? "-"
|
|
3805
|
-
: (_b = (_a = luxon.luxon.DateTime.fromMillis(this.date)) === null || _a === void 0 ? void 0 : _a.setLocale(utils.luxonLocale(this.locale))) === null || _b === void 0 ? void 0 : _b.toLocaleString(luxon.luxon.DateTime.DATE_MED);
|
|
3806
|
-
return date;
|
|
3807
|
-
}
|
|
3808
|
-
};
|
|
3809
|
-
|
|
3810
3337
|
const InvoiceTableDateColumn = class {
|
|
3811
3338
|
constructor(hostRef) {
|
|
3812
3339
|
index.registerInstance(this, hostRef);
|
|
@@ -3825,21 +3352,6 @@ const InvoiceTableDateColumn = class {
|
|
|
3825
3352
|
}
|
|
3826
3353
|
};
|
|
3827
3354
|
|
|
3828
|
-
const InvoiceTableDownloadCell = class {
|
|
3829
|
-
constructor(hostRef) {
|
|
3830
|
-
index.registerInstance(this, hostRef);
|
|
3831
|
-
this.ignored = true;
|
|
3832
|
-
stencilHooks_module.h$1(this);
|
|
3833
|
-
}
|
|
3834
|
-
disconnectedCallback() { }
|
|
3835
|
-
render() {
|
|
3836
|
-
const vanillaStyle = `svg:hover, svg:hover * {
|
|
3837
|
-
cursor: pointer;
|
|
3838
|
-
}`;
|
|
3839
|
-
return (index.h(index.Host, null, index.h("style", null, vanillaStyle), !!this.downloadUrl && (index.h("a", { href: this.downloadUrl, target: "_blank" }, index.h("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.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)" }), index.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)" }))))));
|
|
3840
|
-
}
|
|
3841
|
-
};
|
|
3842
|
-
|
|
3843
3355
|
const InvoiceTableGenericColumn = class {
|
|
3844
3356
|
constructor(hostRef) {
|
|
3845
3357
|
index.registerInstance(this, hostRef);
|
|
@@ -3862,7 +3374,7 @@ const PayPalIcon = () => (index.h("svg", { xmlns: "http://www.w3.org/2000/svg",
|
|
|
3862
3374
|
index.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" }),
|
|
3863
3375
|
index.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" })));
|
|
3864
3376
|
|
|
3865
|
-
const style$
|
|
3377
|
+
const style$4 = {
|
|
3866
3378
|
CardContainer: {
|
|
3867
3379
|
display: "grid",
|
|
3868
3380
|
gridTemplateColumns: "1fr",
|
|
@@ -3996,7 +3508,7 @@ const style$5 = {
|
|
|
3996
3508
|
},
|
|
3997
3509
|
};
|
|
3998
3510
|
function PayoutDetailsCardView(props) {
|
|
3999
|
-
const sheet = JSS.createStyleSheet(style$
|
|
3511
|
+
const sheet = JSS.createStyleSheet(style$4);
|
|
4000
3512
|
const styleString = sheet.toString();
|
|
4001
3513
|
const { classes } = sheet;
|
|
4002
3514
|
const { states, text } = props;
|
|
@@ -4047,8 +3559,8 @@ function PayoutDetailsCardView(props) {
|
|
|
4047
3559
|
|
|
4048
3560
|
function usePayoutDetailsCard(props) {
|
|
4049
3561
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
4050
|
-
const { data, loading } = index_module.$n(USER_QUERY_NAMESPACE);
|
|
4051
|
-
const publisher = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher;
|
|
3562
|
+
const { data: data$1, loading } = index_module.$n(data.USER_QUERY_NAMESPACE);
|
|
3563
|
+
const publisher = (_b = (_a = data$1 === null || data$1 === void 0 ? void 0 : data$1.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher;
|
|
4052
3564
|
function getPayoutDetailedStatusText(paymentDay) {
|
|
4053
3565
|
var _a;
|
|
4054
3566
|
const currentDay = luxon.luxon.DateTime.now().day;
|
|
@@ -4126,6 +3638,10 @@ const PayoutDetailsCard = class {
|
|
|
4126
3638
|
* @uiName Payout missing information subtext
|
|
4127
3639
|
*/
|
|
4128
3640
|
this.payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
|
|
3641
|
+
/**
|
|
3642
|
+
* @componentState { "title": "Loading", "props": { "states": { "loading": true } } }
|
|
3643
|
+
*/
|
|
3644
|
+
this.stateController = "{}";
|
|
4129
3645
|
stencilHooks_module.h$1(this);
|
|
4130
3646
|
}
|
|
4131
3647
|
disconnectedCallback() { }
|
|
@@ -4163,1220 +3679,7 @@ function useDemoPayoutDetailsCard(props) {
|
|
|
4163
3679
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
4164
3680
|
}
|
|
4165
3681
|
|
|
4166
|
-
const
|
|
4167
|
-
constructor(hostRef) {
|
|
4168
|
-
index.registerInstance(this, hostRef);
|
|
4169
|
-
/** @uiName Column span */
|
|
4170
|
-
this.colspan = 1;
|
|
4171
|
-
/** @uiName Padding */
|
|
4172
|
-
this.padding = "15px 10px";
|
|
4173
|
-
}
|
|
4174
|
-
render() {
|
|
4175
|
-
return (index.h(index.Host, { style: { display: "contents" } }, index.h("td", { colSpan: this.colspan, style: { padding: this.padding } }, index.h("slot", null))));
|
|
4176
|
-
}
|
|
4177
|
-
};
|
|
4178
|
-
|
|
4179
|
-
const TableRow = class {
|
|
4180
|
-
constructor(hostRef) {
|
|
4181
|
-
index.registerInstance(this, hostRef);
|
|
4182
|
-
/**
|
|
4183
|
-
* @uiName Border
|
|
4184
|
-
*/
|
|
4185
|
-
this.border = "1px solid #EAEAEA";
|
|
4186
|
-
}
|
|
4187
|
-
render() {
|
|
4188
|
-
return (index.h(index.Host, { style: { display: "contents" } }, index.h("tr", { style: { border: this.border } }, index.h("slot", null))));
|
|
4189
|
-
}
|
|
4190
|
-
};
|
|
4191
|
-
|
|
4192
|
-
function getCurrentStep(user) {
|
|
4193
|
-
var _a, _b;
|
|
4194
|
-
if (!((_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.connected) || !((_b = user.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher)) {
|
|
4195
|
-
return "/1";
|
|
4196
|
-
}
|
|
4197
|
-
const { requiredTaxDocumentType, currentTaxDocument, withdrawalSettings, brandedSignup, } = user.impactConnection.publisher;
|
|
4198
|
-
// If they do have a required document, look at current document
|
|
4199
|
-
if (requiredTaxDocumentType && !currentTaxDocument)
|
|
4200
|
-
return "/3";
|
|
4201
|
-
if (!withdrawalSettings && brandedSignup)
|
|
4202
|
-
return "/4";
|
|
4203
|
-
return "/dashboard";
|
|
4204
|
-
}
|
|
4205
|
-
function useTaxAndCash() {
|
|
4206
|
-
var _a, _b, _c, _d, _e;
|
|
4207
|
-
const host = index_module._();
|
|
4208
|
-
const user = index_module.J();
|
|
4209
|
-
const locale = index_module.L();
|
|
4210
|
-
// State for current step of form
|
|
4211
|
-
const [step, setStep] = index_module.In({
|
|
4212
|
-
namespace: TAX_CONTEXT_NAMESPACE,
|
|
4213
|
-
initialValue: "/loading",
|
|
4214
|
-
});
|
|
4215
|
-
// State for when to hide steps, or override certain actions
|
|
4216
|
-
const [context, _setContext] = index_module.In({
|
|
4217
|
-
namespace: TAX_FORM_CONTEXT_NAMESPACE,
|
|
4218
|
-
initialValue: {},
|
|
4219
|
-
});
|
|
4220
|
-
// State to carry user form information into step 2
|
|
4221
|
-
const [userFormContext, _setUserFormContext] = index_module.In({
|
|
4222
|
-
namespace: USER_FORM_CONTEXT_NAMESPACE,
|
|
4223
|
-
initialValue: {
|
|
4224
|
-
firstName: undefined,
|
|
4225
|
-
lastName: undefined,
|
|
4226
|
-
email: undefined,
|
|
4227
|
-
countryCode: undefined,
|
|
4228
|
-
currency: undefined,
|
|
4229
|
-
},
|
|
4230
|
-
});
|
|
4231
|
-
const [_currenciesContext, setCurrenciesContext] = index_module.In({
|
|
4232
|
-
namespace: CURRENCIES_NAMESPACE,
|
|
4233
|
-
initialValue: [],
|
|
4234
|
-
});
|
|
4235
|
-
const [_countriesContext, _setCountriesContext] = index_module.In({
|
|
4236
|
-
namespace: COUNTRIES_NAMESPACE,
|
|
4237
|
-
initialValue: [],
|
|
4238
|
-
});
|
|
4239
|
-
const [_sortedCountriesContext, setSortedCountriesContext] = index_module.In({
|
|
4240
|
-
namespace: SORTED_COUNTRIES_NAMESPACE,
|
|
4241
|
-
initialValue: [],
|
|
4242
|
-
});
|
|
4243
|
-
const { data, errors } = index_module.Sn({
|
|
4244
|
-
namespace: USER_QUERY_NAMESPACE,
|
|
4245
|
-
query: GET_USER,
|
|
4246
|
-
skip: !user,
|
|
4247
|
-
options: {
|
|
4248
|
-
batch: false,
|
|
4249
|
-
},
|
|
4250
|
-
});
|
|
4251
|
-
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) ||
|
|
4252
|
-
userFormContext.countryCode;
|
|
4253
|
-
index_module.Sn({
|
|
4254
|
-
namespace: COUNTRIES_QUERY_NAMESPACE,
|
|
4255
|
-
query: GET_COUNTRIES,
|
|
4256
|
-
skip: !user,
|
|
4257
|
-
});
|
|
4258
|
-
const { data: financeNetworkData, refetch } = index_module.Sn({
|
|
4259
|
-
namespace: FINANCE_NETWORK_SETTINGS_NAMESPACE,
|
|
4260
|
-
query: GET_FINANCE_NETWORK_SETTINGS,
|
|
4261
|
-
skip: !user,
|
|
4262
|
-
variables: {
|
|
4263
|
-
filter: getFinanceNetworkFilter(),
|
|
4264
|
-
},
|
|
4265
|
-
});
|
|
4266
|
-
const { data: currenciesData } = index_module.Sn({
|
|
4267
|
-
namespace: CURRENCIES_QUERY_NAMESPACE,
|
|
4268
|
-
query: GET_CURRENCIES,
|
|
4269
|
-
skip: !user,
|
|
4270
|
-
variables: {
|
|
4271
|
-
locale,
|
|
4272
|
-
},
|
|
4273
|
-
});
|
|
4274
|
-
const supportedCurrencies = stencilHooks_module.useMemo(() => {
|
|
4275
|
-
var _a, _b;
|
|
4276
|
-
// Filter out any currencies not supported by finance network settings
|
|
4277
|
-
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) => {
|
|
4278
|
-
var _a, _b;
|
|
4279
|
-
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);
|
|
4280
|
-
// Currency not in supported list
|
|
4281
|
-
if (!currency)
|
|
4282
|
-
return agg;
|
|
4283
|
-
// Currency already added to list
|
|
4284
|
-
if (agg.find((currency) => currency.currencyCode === settings.currency))
|
|
4285
|
-
return agg;
|
|
4286
|
-
// Currency not supported by selected country
|
|
4287
|
-
if (userFormContext.countryCode &&
|
|
4288
|
-
settings.countryCode !== countryCode)
|
|
4289
|
-
return agg;
|
|
4290
|
-
return [...agg, currency];
|
|
4291
|
-
}, []);
|
|
4292
|
-
return allValidCurrencies;
|
|
4293
|
-
}, [financeNetworkData, countryCode]);
|
|
4294
|
-
const intlLocale = (locale === null || locale === void 0 ? void 0 : locale.replace("_", "-")) || "en";
|
|
4295
|
-
const sortByName = (a, b) => a.displayName < b.displayName ? -1 : 1;
|
|
4296
|
-
const paymentOptions = (_d = financeNetworkData === null || financeNetworkData === void 0 ? void 0 : financeNetworkData.impactFinanceNetworkSettings) === null || _d === void 0 ? void 0 : _d.data;
|
|
4297
|
-
// filter out any duplicate countries and null countryCode
|
|
4298
|
-
const availableCountries = stencilHooks_module.useMemo(() => new Set(paymentOptions === null || paymentOptions === void 0 ? void 0 : paymentOptions.map((option) => option.countryCode).filter((value) => value)), [paymentOptions]);
|
|
4299
|
-
const _topCountries = ["CA", "GB", "US"];
|
|
4300
|
-
const sortedCountries = stencilHooks_module.useMemo(() => Array.from(availableCountries)
|
|
4301
|
-
.map((countryCode) => sqmInvoiceTableView.getCountryObj({ countryCode, locale: intlLocale }))
|
|
4302
|
-
.sort(sortByName)
|
|
4303
|
-
.reduce((prev, countryObj) => {
|
|
4304
|
-
if (_topCountries.includes(countryObj.countryCode))
|
|
4305
|
-
return [countryObj, ...prev];
|
|
4306
|
-
return [...prev, countryObj];
|
|
4307
|
-
}, []), [availableCountries]);
|
|
4308
|
-
stencilHooks_module.useEffect(() => {
|
|
4309
|
-
if (sortedCountries)
|
|
4310
|
-
setSortedCountriesContext(sortedCountries);
|
|
4311
|
-
}, [sortedCountries]);
|
|
4312
|
-
stencilHooks_module.useEffect(() => {
|
|
4313
|
-
if (supportedCurrencies)
|
|
4314
|
-
setCurrenciesContext(supportedCurrencies);
|
|
4315
|
-
}, [supportedCurrencies]);
|
|
4316
|
-
stencilHooks_module.useEffect(() => {
|
|
4317
|
-
if (errors) {
|
|
4318
|
-
setStep("/error");
|
|
4319
|
-
return;
|
|
4320
|
-
}
|
|
4321
|
-
if (!host || !user)
|
|
4322
|
-
return;
|
|
4323
|
-
if (data) {
|
|
4324
|
-
const user = data === null || data === void 0 ? void 0 : data.user;
|
|
4325
|
-
if (!user || step !== "/loading")
|
|
4326
|
-
return;
|
|
4327
|
-
const currentStep = getCurrentStep(user);
|
|
4328
|
-
setStep(currentStep);
|
|
4329
|
-
}
|
|
4330
|
-
}, [host, user, (_e = data === null || data === void 0 ? void 0 : data.user) === null || _e === void 0 ? void 0 : _e.email, errors]);
|
|
4331
|
-
function getFinanceNetworkFilter() {
|
|
4332
|
-
var _a, _b, _c;
|
|
4333
|
-
if (step === "/1")
|
|
4334
|
-
return {};
|
|
4335
|
-
if (step === "/4")
|
|
4336
|
-
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 };
|
|
4337
|
-
if (countryCode)
|
|
4338
|
-
return {
|
|
4339
|
-
countryCode_eq: countryCode,
|
|
4340
|
-
};
|
|
4341
|
-
return {};
|
|
4342
|
-
}
|
|
4343
|
-
return {
|
|
4344
|
-
step,
|
|
4345
|
-
setStep,
|
|
4346
|
-
context,
|
|
4347
|
-
namespace: index_module.Mn(TAX_CONTEXT_NAMESPACE),
|
|
4348
|
-
loading: step === "/loading",
|
|
4349
|
-
};
|
|
4350
|
-
}
|
|
4351
|
-
|
|
4352
|
-
const TaxAndCashMonolith = class {
|
|
4353
|
-
constructor(hostRef) {
|
|
4354
|
-
index.registerInstance(this, hostRef);
|
|
4355
|
-
/*---------------------------------------------------------------------------------
|
|
4356
|
-
!IMPORTANT!: Make sure to also change the prop names in the respective component
|
|
4357
|
-
-----------------------------------------------------------------------------------*/
|
|
4358
|
-
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4359
|
-
STEP 1 PROPS:
|
|
4360
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
4361
|
-
/**
|
|
4362
|
-
* @uiName First name field label
|
|
4363
|
-
* @uiGroup Step 1 Properties
|
|
4364
|
-
*/
|
|
4365
|
-
this.step1_firstName = "First name";
|
|
4366
|
-
/**
|
|
4367
|
-
* @uiName Last name field label
|
|
4368
|
-
* @uiGroup Step 1 Properties
|
|
4369
|
-
*/
|
|
4370
|
-
this.step1_lastName = "Last name";
|
|
4371
|
-
/**
|
|
4372
|
-
* @uiName Email field label
|
|
4373
|
-
* @uiGroup Step 1 Properties
|
|
4374
|
-
*/
|
|
4375
|
-
this.step1_email = "Email";
|
|
4376
|
-
/**
|
|
4377
|
-
* @uiName Country field label
|
|
4378
|
-
* @uiGroup Step 1 Properties
|
|
4379
|
-
*/
|
|
4380
|
-
this.step1_country = "Country";
|
|
4381
|
-
/**
|
|
4382
|
-
* @uiName Phone number field label
|
|
4383
|
-
* @uiGroup Step 1 Properties
|
|
4384
|
-
*/
|
|
4385
|
-
this.step1_phoneNumber = "Phone number";
|
|
4386
|
-
/**
|
|
4387
|
-
* @uiName Address field label
|
|
4388
|
-
* @uiGroup Step 1 Properties
|
|
4389
|
-
*/
|
|
4390
|
-
this.step1_address = "Address";
|
|
4391
|
-
/**
|
|
4392
|
-
* @uiName City field label
|
|
4393
|
-
* @uiGroup Step 1 Properties
|
|
4394
|
-
*/
|
|
4395
|
-
this.step1_city = "City";
|
|
4396
|
-
/**
|
|
4397
|
-
* @uiName State field label for states
|
|
4398
|
-
* @uiGroup Step 1 Properties
|
|
4399
|
-
*/
|
|
4400
|
-
this.step1_state = "State";
|
|
4401
|
-
/**
|
|
4402
|
-
* @uiName State field label for provinces
|
|
4403
|
-
* @uiGroup Step 1 Properties
|
|
4404
|
-
*/
|
|
4405
|
-
this.step1_province = "Province";
|
|
4406
|
-
/**
|
|
4407
|
-
* @uiName State field label for regions
|
|
4408
|
-
* @uiGroup Step 1 Properties
|
|
4409
|
-
*/
|
|
4410
|
-
this.step1_region = "Region";
|
|
4411
|
-
/**
|
|
4412
|
-
* @uiName Postal code field label
|
|
4413
|
-
* @uiGroup Step 1 Properties
|
|
4414
|
-
*/
|
|
4415
|
-
this.step1_postalCode = "Postal code";
|
|
4416
|
-
/**
|
|
4417
|
-
* @uiName Currency field label
|
|
4418
|
-
* @uiGroup Step 1 Properties
|
|
4419
|
-
*/
|
|
4420
|
-
this.step1_currency = "Currency";
|
|
4421
|
-
/**
|
|
4422
|
-
* @uiName Currency field help text
|
|
4423
|
-
* @uiGroup Step 1 Properties
|
|
4424
|
-
*/
|
|
4425
|
-
this.step1_currencyHelpText = "Choose your preferred payout currency";
|
|
4426
|
-
/**
|
|
4427
|
-
* Edit the property called terms and conditions text to change what's displayed for {termsAndConditionsLink}.
|
|
4428
|
-
* @uiName Terms and conditions checkbox
|
|
4429
|
-
* @uiGroup Step 1 Properties
|
|
4430
|
-
*/
|
|
4431
|
-
this.step1_allowBankingCollection = "I have read the {termsAndConditionsLink} and allow impact.com to collect my tax and banking information";
|
|
4432
|
-
/**
|
|
4433
|
-
* @uiName Step 1 title
|
|
4434
|
-
* @uiGroup Step 1 Properties
|
|
4435
|
-
*/
|
|
4436
|
-
this.step1_personalInformation = "Personal Information";
|
|
4437
|
-
/**
|
|
4438
|
-
* The link text that appears in the terms and conditions checkbox
|
|
4439
|
-
* @uiName Terms and conditions text
|
|
4440
|
-
* @uiGroup Step 1 Properties
|
|
4441
|
-
* @uiWidget textArea
|
|
4442
|
-
*/
|
|
4443
|
-
this.step1_termsAndConditionsLabel = "terms and conditions";
|
|
4444
|
-
/**
|
|
4445
|
-
* The link that appears in the terms and conditions checkbox
|
|
4446
|
-
* @uiName Terms and conditions link
|
|
4447
|
-
* @uiGroup Step 1 Properties
|
|
4448
|
-
*/
|
|
4449
|
-
this.step1_termsAndConditionsLink = "https://terms.advocate.impact.com/PayoutTermsAndConditions.html";
|
|
4450
|
-
/**
|
|
4451
|
-
* Placeholder text displayed in the currency search dropdown
|
|
4452
|
-
* @uiName Currency field placeholder text
|
|
4453
|
-
* @uiGroup Step 1 Properties
|
|
4454
|
-
*/
|
|
4455
|
-
this.step1_searchForCurrencyText = "Search for currency..";
|
|
4456
|
-
/**
|
|
4457
|
-
|
|
4458
|
-
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4459
|
-
STEP 2 PROPS:
|
|
4460
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
4461
|
-
/**
|
|
4462
|
-
* @uiName Step 2 title
|
|
4463
|
-
* @uiGroup Step 2 Properties
|
|
4464
|
-
*/
|
|
4465
|
-
this.step2_indirectTax = "Indirect Tax";
|
|
4466
|
-
/**
|
|
4467
|
-
* Displayed under the title of this step.
|
|
4468
|
-
* @uiName Step 2 description
|
|
4469
|
-
* @uiGroup Step 2 Properties
|
|
4470
|
-
* @uiWidget textArea
|
|
4471
|
-
*/
|
|
4472
|
-
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.";
|
|
4473
|
-
/**
|
|
4474
|
-
* Displayed with indirect tax registration options.
|
|
4475
|
-
* @uiName Indirect tax details section title
|
|
4476
|
-
* @uiGroup Step 2 Properties
|
|
4477
|
-
*/
|
|
4478
|
-
this.step2_indirectTaxDetails = "Indirect tax details";
|
|
4479
|
-
/**
|
|
4480
|
-
* @uiName Registered for indirect tax option
|
|
4481
|
-
* @uiGroup Step 2 Properties
|
|
4482
|
-
* @uiWidget textArea
|
|
4483
|
-
*
|
|
4484
|
-
*/
|
|
4485
|
-
this.step2_otherRegion = "Registered for indirect tax";
|
|
4486
|
-
/**
|
|
4487
|
-
* Selecting this option will display fields to enter indirect tax details.
|
|
4488
|
-
* @uiName Registered for indirect tax option description
|
|
4489
|
-
* @uiGroup Step 2 Properties
|
|
4490
|
-
*/
|
|
4491
|
-
this.step2_otherRegionSubtext = "If you’ve registered with your tax authority, add your information to stay tax compliant.";
|
|
4492
|
-
/**
|
|
4493
|
-
* @uiName Not registered for indirect tax option
|
|
4494
|
-
* @uiGroup Step 2 Properties
|
|
4495
|
-
* @uiWidget textArea
|
|
4496
|
-
*/
|
|
4497
|
-
this.step2_notRegistered = "Not registered for indirect tax";
|
|
4498
|
-
/**
|
|
4499
|
-
* Participants based in the US are considered not registered.
|
|
4500
|
-
* @uiName Not registered for indirect tax option description
|
|
4501
|
-
* @uiGroup Step 2 Properties
|
|
4502
|
-
*/
|
|
4503
|
-
this.step2_notRegisteredSubtext = "If you’ve never set up indirect tax with your tax authority, then you’re likely not considered registered.";
|
|
4504
|
-
/**
|
|
4505
|
-
* @uiName Region of indirect tax field label
|
|
4506
|
-
* @uiGroup Step 2 Properties
|
|
4507
|
-
*/
|
|
4508
|
-
this.step2_selectedRegion = "Country / region of indirect tax";
|
|
4509
|
-
/**
|
|
4510
|
-
* @uiName Indirect tax number field label
|
|
4511
|
-
* @uiGroup Step 2 Properties
|
|
4512
|
-
*/
|
|
4513
|
-
this.step2_indirectTaxNumber = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}}";
|
|
4514
|
-
/**
|
|
4515
|
-
* @uiName Province field label
|
|
4516
|
-
* @uiGroup Step 2 Properties
|
|
4517
|
-
*/
|
|
4518
|
-
this.step2_province = "Province";
|
|
4519
|
-
/**
|
|
4520
|
-
* @uiName Missing indirect tax number error message
|
|
4521
|
-
* @uiGroup Step 2 Properties
|
|
4522
|
-
*/
|
|
4523
|
-
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";
|
|
4524
|
-
/**
|
|
4525
|
-
* Displayed to participants registered for QST.
|
|
4526
|
-
* @uiName QST number field label
|
|
4527
|
-
* @uiGroup Step 2 Properties
|
|
4528
|
-
*/
|
|
4529
|
-
this.step2_qstNumber = "QST number";
|
|
4530
|
-
/**
|
|
4531
|
-
* Displayed to participants registered for indirect tax in Quebec, Canada.
|
|
4532
|
-
* @uiName QST tax checkbox
|
|
4533
|
-
* @uiGroup Step 2 Properties
|
|
4534
|
-
*/
|
|
4535
|
-
this.step2_isRegisteredQST = "I am registered for QST Tax";
|
|
4536
|
-
/**
|
|
4537
|
-
* Displayed to participants registered for indirect tax in Spain.
|
|
4538
|
-
* @uiName Spain income tax checkbox
|
|
4539
|
-
* @uiGroup Step 2 Properties
|
|
4540
|
-
* @uiWidget textArea
|
|
4541
|
-
*/
|
|
4542
|
-
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.";
|
|
4543
|
-
/**
|
|
4544
|
-
* Displayed to participants registered in Spain.
|
|
4545
|
-
* @uiName Sub-region of indirect tax field label
|
|
4546
|
-
* @uiGroup Step 2 Properties
|
|
4547
|
-
*/
|
|
4548
|
-
this.step2_subRegion = "Sub-region";
|
|
4549
|
-
/**
|
|
4550
|
-
* @uiName Income tax field label
|
|
4551
|
-
* @uiGroup Step 2 Properties
|
|
4552
|
-
*/
|
|
4553
|
-
this.step2_subRegionTaxNumberLabel = "Income Tax Number";
|
|
4554
|
-
/**
|
|
4555
|
-
* Communicate that after this step, only Support can change personal and indirect tax information.
|
|
4556
|
-
* @uiName Submission confirmation alert
|
|
4557
|
-
* @uiGroup Step 2 Properties
|
|
4558
|
-
* @uiWidget textArea
|
|
4559
|
-
*/
|
|
4560
|
-
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.";
|
|
4561
|
-
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4562
|
-
STEP 3 PROPS:
|
|
4563
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
4564
|
-
/**
|
|
4565
|
-
* @uiName Step 3 title
|
|
4566
|
-
* @uiGroup Step 3 Properties
|
|
4567
|
-
*/
|
|
4568
|
-
this.step3_taxForm = "Tax form";
|
|
4569
|
-
/**
|
|
4570
|
-
* Display the type of tax form that the participant must submit.
|
|
4571
|
-
* @uiName Tax form name
|
|
4572
|
-
* @uiGroup Step 3 Properties
|
|
4573
|
-
*/
|
|
4574
|
-
this.step3_taxFormLabel = "{documentType} Tax Form";
|
|
4575
|
-
/**
|
|
4576
|
-
* @uiName Participant type field label
|
|
4577
|
-
* @uiGroup Step 3 Properties
|
|
4578
|
-
*/
|
|
4579
|
-
this.step3_participantType = "Participant type";
|
|
4580
|
-
/**
|
|
4581
|
-
* An option for the participant type field. Used to determine which W-8 form is required.
|
|
4582
|
-
* @uiName Business representative participant type label
|
|
4583
|
-
* @uiGroup Step 3 Properties
|
|
4584
|
-
*/
|
|
4585
|
-
this.step3_businessEntity = "I represent a business";
|
|
4586
|
-
/**
|
|
4587
|
-
* An option for the participant type field. Used to determine which W-8 form is required.
|
|
4588
|
-
* @uiName Individual participant type label
|
|
4589
|
-
* @uiGroup Step 3 Properties
|
|
4590
|
-
*/
|
|
4591
|
-
this.step3_individualParticipant = "I am an individual participant";
|
|
4592
|
-
/**
|
|
4593
|
-
* Displayed at the top of the page to participants based in the US.
|
|
4594
|
-
* @uiName W-9 tax form description
|
|
4595
|
-
* @uiGroup Step 3 Properties
|
|
4596
|
-
* @uiWidget textArea
|
|
4597
|
-
*/
|
|
4598
|
-
this.step3_taxFormDescription = "Participants based in the US need to submit a {documentType} form.";
|
|
4599
|
-
/**
|
|
4600
|
-
* Displayed at the top of the page to individuals joining a US program who reside outside the country.
|
|
4601
|
-
* @uiName W-8 BEN tax form description
|
|
4602
|
-
* @uiGroup Step 3 Properties
|
|
4603
|
-
* @uiWidget textArea
|
|
4604
|
-
*/
|
|
4605
|
-
this.step3_taxFormDescriptionIndividualParticipant = "Participants residing outside of the US, joining the referral program of a US-based company, need to submit a {documentType} form.";
|
|
4606
|
-
/**
|
|
4607
|
-
* Displayed at the top of the page to participants representing a business.
|
|
4608
|
-
* @uiName W-8 BEN-E tax form description
|
|
4609
|
-
* @uiGroup Step 3 Properties
|
|
4610
|
-
* @uiWidget textArea
|
|
4611
|
-
*/
|
|
4612
|
-
this.step3_taxFormDescriptionBusinessEntity = "Participants residing outside of the US who represent a business entity need to submit a {documentType} form.";
|
|
4613
|
-
/**
|
|
4614
|
-
* This appears inside the Docusign frame.
|
|
4615
|
-
* @uiName Docusign session expired message
|
|
4616
|
-
* @uiGroup Step 3 Properties
|
|
4617
|
-
* @uiWidget textArea
|
|
4618
|
-
*/
|
|
4619
|
-
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.";
|
|
4620
|
-
/**
|
|
4621
|
-
* Remind participants their session will time out after 20 minutes of inactivity.
|
|
4622
|
-
* @uiName Docusign timed session message
|
|
4623
|
-
* @uiGroup Step 3 Properties
|
|
4624
|
-
* @uiWidget textArea
|
|
4625
|
-
*/
|
|
4626
|
-
this.step3_docusignSessionWarning = "For your security, we automatically end your session when you have not interacted with the form after 20 minutes.";
|
|
4627
|
-
/**
|
|
4628
|
-
* This appears inside the Docusign frame.
|
|
4629
|
-
* @uiName Docusign form error message
|
|
4630
|
-
* @uiGroup Step 3 Properties
|
|
4631
|
-
* @uiWidget textArea
|
|
4632
|
-
*/
|
|
4633
|
-
this.step3_docusignError = "There was a problem displaying this form. Please refresh the page. If this problem continues, contact our {supportLink}.";
|
|
4634
|
-
/**
|
|
4635
|
-
* @uiName Refresh page button label
|
|
4636
|
-
* @uiGroup Step 3 Properties
|
|
4637
|
-
*/
|
|
4638
|
-
this.step3_refreshButton = "Refresh Page";
|
|
4639
|
-
/**
|
|
4640
|
-
* @uiName Exit button text
|
|
4641
|
-
* @uiGroup Step 3 Properties
|
|
4642
|
-
*/
|
|
4643
|
-
this.step3_exitButton = "Exit";
|
|
4644
|
-
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4645
|
-
STEP 4 PROPS:
|
|
4646
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
4647
|
-
/**
|
|
4648
|
-
* @uiName Step 4 title
|
|
4649
|
-
* @uiGroup Step 4 Properties
|
|
4650
|
-
*/
|
|
4651
|
-
this.step4_taxAndPayouts = "Payouts";
|
|
4652
|
-
/**
|
|
4653
|
-
* @uiName Direct to bank payout option
|
|
4654
|
-
* @uiGroup Step 4 Properties
|
|
4655
|
-
*/
|
|
4656
|
-
this.step4_directlyToBankAccount = "Directly to my bank account";
|
|
4657
|
-
/**
|
|
4658
|
-
* @uiName PayPal payout option
|
|
4659
|
-
* @uiGroup Step 4 Properties
|
|
4660
|
-
*/
|
|
4661
|
-
this.step4_toPayPalAccount = "PayPal (2% processing fee capped to {feeCap})";
|
|
4662
|
-
/**
|
|
4663
|
-
* @uiName Threshold balance payment schedule option
|
|
4664
|
-
* @uiGroup Step 4 Properties
|
|
4665
|
-
*/
|
|
4666
|
-
this.step4_paymentScheduleBalanceThreshold = "Pay me when my balance reaches a threshold";
|
|
4667
|
-
/**
|
|
4668
|
-
* @uiName Fixed day payment schedule option
|
|
4669
|
-
* @uiGroup Step 4 Properties
|
|
4670
|
-
*/
|
|
4671
|
-
this.step4_paymentScheduleFixedDay = "Pay me on a fixed day of the month";
|
|
4672
|
-
/**
|
|
4673
|
-
* Let the participant choose what day of the month they’ll get paid
|
|
4674
|
-
* @uiName Payment day field label
|
|
4675
|
-
* @uiGroup Step 4 Properties
|
|
4676
|
-
*/
|
|
4677
|
-
this.step4_paymentDaySelectLabel = "Payment Day";
|
|
4678
|
-
/**
|
|
4679
|
-
* Participant use this field to select the balance at which they want to be paid
|
|
4680
|
-
* @uiName Payment threshold field label
|
|
4681
|
-
* @uiGroup Step 4 Properties
|
|
4682
|
-
*/
|
|
4683
|
-
this.step4_paymentThresholdSelectLabel = "Payment threshold";
|
|
4684
|
-
/**
|
|
4685
|
-
* One of two payment day options
|
|
4686
|
-
* @uiName First of month payday option
|
|
4687
|
-
* @uiGroup Step 4 Properties
|
|
4688
|
-
*/
|
|
4689
|
-
this.step4_paymentDayFirstOfMonthLabelText = "1st of the month";
|
|
4690
|
-
/**
|
|
4691
|
-
* One of two payment day options
|
|
4692
|
-
* @uiName Fifteenth of month payday option
|
|
4693
|
-
* @uiGroup Step 4 Properties
|
|
4694
|
-
*/
|
|
4695
|
-
this.step4_paymentDayFifteenthOfMonthLabelText = "15th of the month";
|
|
4696
|
-
/**
|
|
4697
|
-
* @uiName Payment method section header
|
|
4698
|
-
* @uiGroup Step 4 Properties
|
|
4699
|
-
*/
|
|
4700
|
-
this.step4_paymentMethod = "Payment method";
|
|
4701
|
-
/**
|
|
4702
|
-
* @uiName Payment schedule section header
|
|
4703
|
-
* @uiGroup Step 4 Properties
|
|
4704
|
-
*/
|
|
4705
|
-
this.step4_paymentSchedule = "Payment schedule";
|
|
4706
|
-
/**
|
|
4707
|
-
* @uiName Payment method section description
|
|
4708
|
-
* @uiGroup Step 4 Properties
|
|
4709
|
-
*/
|
|
4710
|
-
this.step4_paymentMethodSubtext = "Payouts will be sent from our referral program provider, impact.com.";
|
|
4711
|
-
/**
|
|
4712
|
-
* Displayed to participants who choose PayPal as their payout method
|
|
4713
|
-
* @uiName PayPal email field label
|
|
4714
|
-
* @uiGroup Step 4 Properties
|
|
4715
|
-
*/
|
|
4716
|
-
this.step4_payPalInputLabel = "PayPal email";
|
|
4717
|
-
/**
|
|
4718
|
-
* @uiName Bank country field label
|
|
4719
|
-
* @uiGroup Step 4 Properties
|
|
4720
|
-
*/
|
|
4721
|
-
this.step4_bankLocationLabel = "Bank country location";
|
|
4722
|
-
/**
|
|
4723
|
-
* @uiName Beneficiary account field label
|
|
4724
|
-
* @uiGroup Step 4 Properties
|
|
4725
|
-
*/
|
|
4726
|
-
this.step4_beneficiaryAccountNameLabel = "Beneficiary account name";
|
|
4727
|
-
/**
|
|
4728
|
-
* @uiName Bank account type field label
|
|
4729
|
-
* @uiGroup Step 4 Properties
|
|
4730
|
-
*/
|
|
4731
|
-
this.step4_bankAccountTypeLabel = "Bank account type";
|
|
4732
|
-
/**
|
|
4733
|
-
* @uiName Checking account option
|
|
4734
|
-
* @uiGroup Step 4 Properties
|
|
4735
|
-
*/
|
|
4736
|
-
this.step4_checkingSelectItemLabel = "Checking";
|
|
4737
|
-
/**
|
|
4738
|
-
* Label text for the savings account type select item
|
|
4739
|
-
* @uiName Savings account options
|
|
4740
|
-
* @uiGroup Step 4 Properties
|
|
4741
|
-
*/
|
|
4742
|
-
this.step4_savingsSelectItemLabel = "Savings";
|
|
4743
|
-
/**
|
|
4744
|
-
* @uiName Bank account number field label
|
|
4745
|
-
* @uiGroup Step 4 Properties
|
|
4746
|
-
*/
|
|
4747
|
-
this.step4_bankAccountNumberLabel = "Bank account number";
|
|
4748
|
-
/**
|
|
4749
|
-
* @uiName IBAN field label
|
|
4750
|
-
* @uiGroup Step 4 Properties
|
|
4751
|
-
*/
|
|
4752
|
-
this.step4_ibanLabel = "IBAN";
|
|
4753
|
-
/**
|
|
4754
|
-
* @uiName SWIFT code field label
|
|
4755
|
-
* @uiGroup Step 4 Properties
|
|
4756
|
-
*/
|
|
4757
|
-
this.step4_swiftCodeLabel = "SWIFT code";
|
|
4758
|
-
/**
|
|
4759
|
-
* @uiName Routing code field label
|
|
4760
|
-
* @uiGroup Step 4 Properties
|
|
4761
|
-
*/
|
|
4762
|
-
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} }";
|
|
4763
|
-
/**
|
|
4764
|
-
* @uiName Bank name field label
|
|
4765
|
-
* @uiGroup Step 4 Properties
|
|
4766
|
-
*/
|
|
4767
|
-
this.step4_bankNameLabel = "Bank name";
|
|
4768
|
-
/**
|
|
4769
|
-
* @uiName Classification entity field label
|
|
4770
|
-
* @uiGroup Step 4 Properties
|
|
4771
|
-
*/
|
|
4772
|
-
this.step4_classificationEntityLabel = "Classification entity";
|
|
4773
|
-
/**
|
|
4774
|
-
* One of three options listed for the classification field
|
|
4775
|
-
* @uiName Business classification option
|
|
4776
|
-
* @uiGroup Step 4 Properties
|
|
4777
|
-
*/
|
|
4778
|
-
this.step4_businessSelectItemLabel = "Business";
|
|
4779
|
-
/**
|
|
4780
|
-
* One of three options listed for the classification field
|
|
4781
|
-
* @uiName Individual classification option
|
|
4782
|
-
* @uiGroup Step 4 Properties
|
|
4783
|
-
*/
|
|
4784
|
-
this.step4_individualSelectItemLabel = "Individual";
|
|
4785
|
-
/**
|
|
4786
|
-
* One of three options listed for the classification field
|
|
4787
|
-
* @uiName Foreign classification option
|
|
4788
|
-
* @uiGroup Step 4 Properties
|
|
4789
|
-
*/
|
|
4790
|
-
this.step4_foreignSelectItemLabel = "Foreign";
|
|
4791
|
-
/**
|
|
4792
|
-
* @uiName Classification CPF field label
|
|
4793
|
-
* @uiGroup Step 4 Properties
|
|
4794
|
-
*/
|
|
4795
|
-
this.step4_classificationCPFLabel = "Classification CPF";
|
|
4796
|
-
/**
|
|
4797
|
-
* @uiName Patronymic name field label
|
|
4798
|
-
* @uiGroup Step 4 Properties
|
|
4799
|
-
*/
|
|
4800
|
-
this.step4_patronymicNameLabel = "Patronymic name";
|
|
4801
|
-
/**
|
|
4802
|
-
* @uiName VO code field label
|
|
4803
|
-
* @uiGroup Step 4 Properties
|
|
4804
|
-
*/
|
|
4805
|
-
this.step4_voCodeLabel = "VO code";
|
|
4806
|
-
/**
|
|
4807
|
-
* @uiName Agency code field label
|
|
4808
|
-
* @uiGroup Step 4 Properties
|
|
4809
|
-
*/
|
|
4810
|
-
this.step4_agencyCodeLabel = "Agency code";
|
|
4811
|
-
/**
|
|
4812
|
-
* @uiName Branch code field label
|
|
4813
|
-
* @uiGroup Step 4 Properties
|
|
4814
|
-
*/
|
|
4815
|
-
this.step4_branchCodeLabel = "Branch code";
|
|
4816
|
-
/**
|
|
4817
|
-
* Label text for the classification input field
|
|
4818
|
-
* @uiName Classification field label
|
|
4819
|
-
* @uiGroup Step 4 Properties
|
|
4820
|
-
*/
|
|
4821
|
-
this.step4_classificationLabel = "Classification";
|
|
4822
|
-
/**
|
|
4823
|
-
* @uiName Taxpayer ID field label
|
|
4824
|
-
* @uiGroup Step 4 Properties
|
|
4825
|
-
*/
|
|
4826
|
-
this.step4_taxPayerIdLabel = "Beneficiary INN";
|
|
4827
|
-
/**
|
|
4828
|
-
* @uiName Bank address field label
|
|
4829
|
-
* @uiGroup Step 4 Properties
|
|
4830
|
-
*/
|
|
4831
|
-
this.step4_bankAddressLabel = "Bank address";
|
|
4832
|
-
/**
|
|
4833
|
-
* @uiName Bank city field label
|
|
4834
|
-
* @uiGroup Step 4 Properties
|
|
4835
|
-
*/
|
|
4836
|
-
this.step4_bankCityLabel = "Bank city";
|
|
4837
|
-
/**
|
|
4838
|
-
* @uiName Bank province/state field label
|
|
4839
|
-
* @uiGroup Step 4 Properties
|
|
4840
|
-
*/
|
|
4841
|
-
this.step4_bankStateLabel = "Bank Province / State";
|
|
4842
|
-
/**
|
|
4843
|
-
* @uiName Bank postal code field label
|
|
4844
|
-
* @uiGroup Step 4 Properties
|
|
4845
|
-
*/
|
|
4846
|
-
this.step4_bankPostalCodeLabel = "Bank postal code";
|
|
4847
|
-
/**
|
|
4848
|
-
* Default payment method to the participants’ bank account.
|
|
4849
|
-
* @uiName EFT withdrawal payment method
|
|
4850
|
-
* @uiGroup Step 4 Properties
|
|
4851
|
-
*/
|
|
4852
|
-
this.step4_eftWithdrawalLabel = "EFT Withdrawal (free)";
|
|
4853
|
-
/**
|
|
4854
|
-
* @uiName FX Wire Processing fee text
|
|
4855
|
-
* @uiGroup Step 4 Properties
|
|
4856
|
-
*/
|
|
4857
|
-
this.step4_fxWireProcessingFeeLabel = "FX Wire (Processing Fee {currency}{defaultFxFee}.00)";
|
|
4858
|
-
/**
|
|
4859
|
-
* @uiName Text for verify email dialog
|
|
4860
|
-
* @uiGroup Step 4 Properties
|
|
4861
|
-
*/
|
|
4862
|
-
this.step4_verifyEmailHeaderText = "Verify your email";
|
|
4863
|
-
/**
|
|
4864
|
-
* @uiName Verify code widget header text
|
|
4865
|
-
* @uiGroup Step 4 Properties
|
|
4866
|
-
*/
|
|
4867
|
-
this.step4_verifyEmailDescriptionText = "Verify your email to update your payment settings. Enter the code sent to {email} from our referral provider, impact.com.";
|
|
4868
|
-
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4869
|
-
DASHBOARD PROPS:
|
|
4870
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
4871
|
-
/**
|
|
4872
|
-
* @uiName Active tax form badge label
|
|
4873
|
-
* @uiGroup Dashboard Properties
|
|
4874
|
-
*/
|
|
4875
|
-
this.dashboard_statusTextActive = "Active";
|
|
4876
|
-
/**
|
|
4877
|
-
* @uiName Invalid tax form badge label
|
|
4878
|
-
* @uiGroup Dashboard Properties
|
|
4879
|
-
*/
|
|
4880
|
-
this.dashboard_statusTextNotActive = "Invalid Tax Form";
|
|
4881
|
-
/**
|
|
4882
|
-
* Displayed when the participant submitted their form but it is awaiting review.
|
|
4883
|
-
*
|
|
4884
|
-
* @uiName Not verified tax form badge label
|
|
4885
|
-
* @uiGroup Dashboard Properties
|
|
4886
|
-
*/
|
|
4887
|
-
this.dashboard_statusTextNotVerified = "Not Verified";
|
|
4888
|
-
/**
|
|
4889
|
-
* Additional text displayed next to the tax form's status badge
|
|
4890
|
-
*
|
|
4891
|
-
* @uiName Active W-9 description
|
|
4892
|
-
* @uiGroup Dashboard Properties
|
|
4893
|
-
*/
|
|
4894
|
-
this.dashboard_badgeTextSubmittedOn = "Submitted on {dateSubmitted}.";
|
|
4895
|
-
/**
|
|
4896
|
-
* Additional text displayed next to the tax form's status badge.
|
|
4897
|
-
*
|
|
4898
|
-
* @uiName Active W-8 description
|
|
4899
|
-
* @uiGroup Dashboard Properties
|
|
4900
|
-
*/
|
|
4901
|
-
this.dashboard_badgeTextSubmittedOnW8 = "Submitted on {dateSubmitted}. Valid for three years after submission.";
|
|
4902
|
-
/**
|
|
4903
|
-
* Additional text displayed next to the tax form's status badge.
|
|
4904
|
-
*
|
|
4905
|
-
* @uiName Tax form in review description
|
|
4906
|
-
* @uiGroup Dashboard Properties
|
|
4907
|
-
*/
|
|
4908
|
-
this.dashboard_badgeTextAwaitingReview = "Awaiting review. Submitted on {dateSubmitted}.";
|
|
4909
|
-
/**
|
|
4910
|
-
* Part of the alert displayed at the top of the page.
|
|
4911
|
-
*
|
|
4912
|
-
* @uiName Inactive W-9 error message title
|
|
4913
|
-
* @uiGroup Dashboard Properties
|
|
4914
|
-
* @uiWidget textArea
|
|
4915
|
-
*/
|
|
4916
|
-
this.dashboard_taxAlertHeaderNotActiveW9 = "Your W9 tax form has personal information that doesn’t match your profile";
|
|
4917
|
-
/**
|
|
4918
|
-
* Part of the alert displayed at the top of the page.
|
|
4919
|
-
*
|
|
4920
|
-
* @uiName Inactive W-8 error message title
|
|
4921
|
-
* @uiGroup Dashboard Properties
|
|
4922
|
-
* @uiWidget textArea
|
|
4923
|
-
*/
|
|
4924
|
-
this.dashboard_taxAlertHeaderNotActiveW8 = "{documentType} tax form is invalid";
|
|
4925
|
-
/**
|
|
4926
|
-
* Part of the alert displayed at the top of the page.
|
|
4927
|
-
*
|
|
4928
|
-
* @uiName Inactive W-9 error message description
|
|
4929
|
-
* @uiGroup Dashboard Properties
|
|
4930
|
-
* @uiWidget textArea
|
|
4931
|
-
*/
|
|
4932
|
-
this.dashboard_taxAlertNotActiveMessageW9 = "Please resubmit a new {documentType} form.";
|
|
4933
|
-
/**
|
|
4934
|
-
* Part of the alert displayed at the top of the page.
|
|
4935
|
-
*
|
|
4936
|
-
* @uiName Inactive W-8 error message description
|
|
4937
|
-
* @uiGroup Dashboard Properties
|
|
4938
|
-
*/
|
|
4939
|
-
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.";
|
|
4940
|
-
/**
|
|
4941
|
-
* Additional text displayed next to the tax form's status badge.
|
|
4942
|
-
*
|
|
4943
|
-
* @uiName Invalid tax form description
|
|
4944
|
-
* @uiGroup Dashboard Properties
|
|
4945
|
-
* @uiWidget textArea
|
|
4946
|
-
*/
|
|
4947
|
-
this.dashboard_invalidForm = "Make sure your information is correct and submit new form.";
|
|
4948
|
-
/**
|
|
4949
|
-
* @uiName Payout information section header
|
|
4950
|
-
* @uiGroup Dashboard Properties
|
|
4951
|
-
*/
|
|
4952
|
-
this.dashboard_bankingInformationSectionHeader = "Payout Information";
|
|
4953
|
-
/**
|
|
4954
|
-
* @uiName Tax document section header
|
|
4955
|
-
* @uiGroup Dashboard Properties
|
|
4956
|
-
*/
|
|
4957
|
-
this.dashboard_taxDocumentSectionHeader = "Tax documents";
|
|
4958
|
-
/**
|
|
4959
|
-
* Displayed under the tax document section header.
|
|
4960
|
-
*
|
|
4961
|
-
* @uiName Tax documents section description
|
|
4962
|
-
* @uiGroup Dashboard Properties
|
|
4963
|
-
*/
|
|
4964
|
-
this.dashboard_taxDocumentSectionSubHeader = "{documentType} tax form";
|
|
4965
|
-
/**
|
|
4966
|
-
* No other statuses or badges will be displayed in the tax form section in this case.
|
|
4967
|
-
*
|
|
4968
|
-
* @uiName Tax form not required text
|
|
4969
|
-
* @uiGroup Dashboard Properties
|
|
4970
|
-
* @uiWidget textArea
|
|
4971
|
-
*/
|
|
4972
|
-
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.";
|
|
4973
|
-
/**
|
|
4974
|
-
*
|
|
4975
|
-
* @uiName Indirect tax section header
|
|
4976
|
-
* @uiGroup Dashboard Properties
|
|
4977
|
-
*/
|
|
4978
|
-
this.dashboard_indirectTaxInfoSectionHeader = "Indirect tax";
|
|
4979
|
-
/**
|
|
4980
|
-
* If the participant is registered for indirect tax in Canada, display the province they’re registered in.
|
|
4981
|
-
*
|
|
4982
|
-
* @uiName Canadian province of indirect tax
|
|
4983
|
-
* @uiGroup Dashboard Properties
|
|
4984
|
-
*/
|
|
4985
|
-
this.dashboard_indirectTaxInfoCanada = "Registered in {province}, {country}";
|
|
4986
|
-
/**
|
|
4987
|
-
* If the participant is registered for indirect tax, display the country they’re registered in.
|
|
4988
|
-
*
|
|
4989
|
-
* @uiName Indirect tax country
|
|
4990
|
-
* @uiGroup Dashboard Properties
|
|
4991
|
-
*/
|
|
4992
|
-
this.dashboard_indirectTaxInfoOtherCountry = "Registered in {country}";
|
|
4993
|
-
/**
|
|
4994
|
-
* If the participant is registered for indirect tax in Spain, display the region they’re registered in.
|
|
4995
|
-
*
|
|
4996
|
-
* @uiName Spanish region of indirect tax
|
|
4997
|
-
* @uiGroup Dashboard Properties
|
|
4998
|
-
*/
|
|
4999
|
-
this.dashboard_indirectTaxInfoSpain = "Registered in {country}, {subRegion}";
|
|
5000
|
-
/**
|
|
5001
|
-
* @uiName Indirect tax tooltip
|
|
5002
|
-
* @uiGroup Dashboard Properties
|
|
5003
|
-
* @uiWidget textArea
|
|
5004
|
-
*/
|
|
5005
|
-
this.dashboard_indirectTaxTooltipSupport = "To make changes to your indirect tax information, please contact our {supportLink}.";
|
|
5006
|
-
/**
|
|
5007
|
-
* Displayed to participants who have submitted their indirect tax information.
|
|
5008
|
-
*
|
|
5009
|
-
* @uiName Indirect tax details
|
|
5010
|
-
* @uiGroup Dashboard Properties
|
|
5011
|
-
*/
|
|
5012
|
-
this.dashboard_indirectTaxDetails = "{indirectTaxType} number: {indirectTaxNumber}";
|
|
5013
|
-
/**
|
|
5014
|
-
* @uiName Submit new tax form button label
|
|
5015
|
-
* @uiGroup Dashboard Properties
|
|
5016
|
-
*/
|
|
5017
|
-
this.dashboard_newFormButton = "Submit new form";
|
|
5018
|
-
/**
|
|
5019
|
-
* @uiName Edit payment info button label
|
|
5020
|
-
* @uiGroup Dashboard Properties
|
|
5021
|
-
*/
|
|
5022
|
-
this.dashboard_editPaymentInformationButton = "Edit Payout Information";
|
|
5023
|
-
/**
|
|
5024
|
-
* @uiName Not registered for indirect tax text
|
|
5025
|
-
* @uiGroup Dashboard Properties
|
|
5026
|
-
* @uiWidget textArea
|
|
5027
|
-
*/
|
|
5028
|
-
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.";
|
|
5029
|
-
/**
|
|
5030
|
-
* Displayed to participants registered in Quebec, Canada.
|
|
5031
|
-
* @uiName QST indirect tax details
|
|
5032
|
-
* @uiGroup Dashboard Properties
|
|
5033
|
-
*/
|
|
5034
|
-
this.dashboard_qstNumber = "QST number: {qstNumber}";
|
|
5035
|
-
/**
|
|
5036
|
-
* @uiName Spain sub-region indirect tax number
|
|
5037
|
-
* @uiGroup Dashboard Properties
|
|
5038
|
-
*/
|
|
5039
|
-
this.dashboard_subRegionTaxNumber = "Income tax number: {subRegionTaxNumber}";
|
|
5040
|
-
/**
|
|
5041
|
-
* @uiName Payout status badge
|
|
5042
|
-
* @uiGroup Dashboard Properties
|
|
5043
|
-
*/
|
|
5044
|
-
this.dashboard_statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
|
|
5045
|
-
/**
|
|
5046
|
-
* Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
|
|
5047
|
-
* @uiName Payout schedule by threshold text
|
|
5048
|
-
* @uiGroup Dashboard Properties
|
|
5049
|
-
*/
|
|
5050
|
-
this.dashboard_thresholdPayoutText = "Next payout occurs when balance is {thresholdBalance}";
|
|
5051
|
-
/**
|
|
5052
|
-
* Shown before the participant’s bank account information.
|
|
5053
|
-
* @uiName Bank account field label
|
|
5054
|
-
* @uiGroup Dashboard Properties
|
|
5055
|
-
*/
|
|
5056
|
-
this.dashboard_accountText = "Account";
|
|
5057
|
-
/**
|
|
5058
|
-
* Part of the Invoice table displayed at the bottom of the page.
|
|
5059
|
-
* @uiName Invoice number column title
|
|
5060
|
-
* @uiGroup Dashboard Properties
|
|
5061
|
-
*/
|
|
5062
|
-
this.dashboard_invoiceColumnTitle = "Invoice";
|
|
5063
|
-
/**
|
|
5064
|
-
* Part of the Invoice table displayed at the bottom of the page.
|
|
5065
|
-
* @uiName Date column title
|
|
5066
|
-
* @uiGroup Dashboard Properties
|
|
5067
|
-
*/
|
|
5068
|
-
this.dashboard_dateColumnTitle = "Date";
|
|
5069
|
-
/**
|
|
5070
|
-
* Part of the Invoice table displayed at the bottom of the page.
|
|
5071
|
-
* @uiName Earnings column title
|
|
5072
|
-
* @uiGroup Dashboard Properties
|
|
5073
|
-
*/
|
|
5074
|
-
this.dashboard_earningsColumnTitle = "Earnings";
|
|
5075
|
-
/**
|
|
5076
|
-
* Part of the Invoice table displayed at the bottom of the page.
|
|
5077
|
-
* @uiName Indirect tax column title
|
|
5078
|
-
* @uiGroup Dashboard Properties
|
|
5079
|
-
*/
|
|
5080
|
-
this.dashboard_indirectTaxColumnTitle = "Indirect tax";
|
|
5081
|
-
/**
|
|
5082
|
-
* Displayed under the payout details card.
|
|
5083
|
-
* @uiName Payout from impact text
|
|
5084
|
-
* @uiGroup Dashboard Properties
|
|
5085
|
-
* @uiWidget textArea
|
|
5086
|
-
*/
|
|
5087
|
-
this.dashboard_payoutFromImpact = "Your balance may take up to 24 hours to update. Payouts will be sent from our referral program provider, impact.com.";
|
|
5088
|
-
/**
|
|
5089
|
-
* Part of the Invoice table displayed at the bottom of the page.
|
|
5090
|
-
* @uiName Earnings after tax column title
|
|
5091
|
-
* @uiGroup Dashboard Properties
|
|
5092
|
-
*/
|
|
5093
|
-
this.dashboard_earningsAfterTaxColumnTitle = "Earnings after tax";
|
|
5094
|
-
/**
|
|
5095
|
-
* Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
|
|
5096
|
-
* @uiName Payout error message title
|
|
5097
|
-
* @uiGroup Dashboard Properties
|
|
5098
|
-
* @uiWidget textArea
|
|
5099
|
-
*/
|
|
5100
|
-
this.dashboard_payoutHoldAlertHeader = "Your payout is on hold";
|
|
5101
|
-
/**
|
|
5102
|
-
* Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
|
|
5103
|
-
* @uiName Payout error message description
|
|
5104
|
-
* @uiGroup Dashboard Properties
|
|
5105
|
-
* @uiWidget textArea
|
|
5106
|
-
*/
|
|
5107
|
-
this.dashboard_payoutHoldAlertDescription = "Please contact our {supportLink} or check your inbox for an email from our referral program provider, impact.com.";
|
|
5108
|
-
/**
|
|
5109
|
-
* Text displayed for existing publishers that do not have saved banking information.
|
|
5110
|
-
* @uiName Payout missing information subtext
|
|
5111
|
-
* @uiGroup Dashboard Properties
|
|
5112
|
-
*/
|
|
5113
|
-
this.dashboard_payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
|
|
5114
|
-
/**
|
|
5115
|
-
* @uiName Invoice table description
|
|
5116
|
-
* @uiGroup Dashboard Properties
|
|
5117
|
-
*/
|
|
5118
|
-
this.dashboard_invoiceDescription = "View and download your invoices to report your earnings and stay tax compliant.";
|
|
5119
|
-
/**
|
|
5120
|
-
* @uiName Invoice table previous page button label
|
|
5121
|
-
* @uiGroup Dashboard Properties
|
|
5122
|
-
*/
|
|
5123
|
-
this.dashboard_invoicePrevLabel = "Prev";
|
|
5124
|
-
/**
|
|
5125
|
-
* @uiName Invoice table next page button label
|
|
5126
|
-
* @uiGroup Dashboard Properties
|
|
5127
|
-
*/
|
|
5128
|
-
this.dashboard_invoiceMoreLabel = "Next";
|
|
5129
|
-
/**
|
|
5130
|
-
* @uiName Invoice table title
|
|
5131
|
-
* @uiGroup Dashboard Properties
|
|
5132
|
-
*/
|
|
5133
|
-
this.dashboard_invoiceHeader = "Invoices";
|
|
5134
|
-
/**
|
|
5135
|
-
* @uiName Empty invoice table header
|
|
5136
|
-
* @uiGroup Dashboard Properties
|
|
5137
|
-
*/
|
|
5138
|
-
this.dashboard_invoiceEmptyStateHeader = "View your invoice details";
|
|
5139
|
-
/**
|
|
5140
|
-
* @uiName Empty invoice table description
|
|
5141
|
-
* @uiGroup Dashboard Properties
|
|
5142
|
-
*/
|
|
5143
|
-
this.dashboard_invoiceEmptyStateText = "Refer a friend to view the status of your invoices and rewards earned";
|
|
5144
|
-
/**
|
|
5145
|
-
* @uiName Replace tax form modal header
|
|
5146
|
-
* @uiGroup Dashboard Properties
|
|
5147
|
-
*/
|
|
5148
|
-
this.dashboard_replaceTaxFormModalHeader = "Replace existing tax form";
|
|
5149
|
-
/**
|
|
5150
|
-
* @uiName Replace tax form modal body text
|
|
5151
|
-
* @uiGroup Dashboard Properties
|
|
5152
|
-
* @uiWidget textArea
|
|
5153
|
-
*/
|
|
5154
|
-
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.";
|
|
5155
|
-
/**
|
|
5156
|
-
* Part of the alert displayed at the top of the page when the user needs to verify their identity.
|
|
5157
|
-
* @uiName Verification required alert message title
|
|
5158
|
-
* @uiGroup Dashboard Properties
|
|
5159
|
-
* @uiWidget textArea
|
|
5160
|
-
*/
|
|
5161
|
-
this.dashboard_verificationRequiredHeader = "Verify your identity";
|
|
5162
|
-
/**
|
|
5163
|
-
* Part of the alert displayed at the top of the page when the user needs to verify their identity
|
|
5164
|
-
* @uiName Verification required alert message description
|
|
5165
|
-
* @uiGroup Dashboard Properties
|
|
5166
|
-
* @uiWidget textArea
|
|
5167
|
-
*/
|
|
5168
|
-
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}.";
|
|
5169
|
-
/**
|
|
5170
|
-
* @uiName Verification required internal alert header
|
|
5171
|
-
* @uiGroup Dashboard Properties
|
|
5172
|
-
* @uiWidget textArea
|
|
5173
|
-
*/
|
|
5174
|
-
this.dashboard_verificationRequiredInternalHeader = "Identity Verification in Progress";
|
|
5175
|
-
/**
|
|
5176
|
-
* @uiName Verification required internal alert description
|
|
5177
|
-
* @uiGroup Dashboard Properties
|
|
5178
|
-
* @uiWidget textArea
|
|
5179
|
-
*/
|
|
5180
|
-
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}.";
|
|
5181
|
-
/**
|
|
5182
|
-
* @uiName Verification review internal alert header
|
|
5183
|
-
* @uiGroup Dashboard Properties
|
|
5184
|
-
* @uiWidget textArea
|
|
5185
|
-
*/
|
|
5186
|
-
this.dashboard_verificationReviewInternalHeader = "Identity Verification Under Review";
|
|
5187
|
-
/**
|
|
5188
|
-
* @uiName Verification review internal alert description
|
|
5189
|
-
* @uiGroup Dashboard Properties
|
|
5190
|
-
* @uiWidget textArea
|
|
5191
|
-
*/
|
|
5192
|
-
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}.";
|
|
5193
|
-
/**
|
|
5194
|
-
* @uiName Verification failed internal alert header
|
|
5195
|
-
* @uiGroup Dashboard Properties
|
|
5196
|
-
* @uiWidget textArea
|
|
5197
|
-
*/
|
|
5198
|
-
this.dashboard_verificationFailedInternalHeader = "Identity Verification Unsuccessful";
|
|
5199
|
-
/**
|
|
5200
|
-
* @uiName Verification failed internal alert description
|
|
5201
|
-
* @uiGroup Dashboard Properties
|
|
5202
|
-
* @uiWidget textArea
|
|
5203
|
-
*/
|
|
5204
|
-
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}.";
|
|
5205
|
-
/**
|
|
5206
|
-
* Part of the alert displayed at the top of the page when the user needs to verify their identity.
|
|
5207
|
-
* @uiName Verification required alert button text
|
|
5208
|
-
* @uiGroup Dashboard Properties
|
|
5209
|
-
* @uiWidget textArea
|
|
5210
|
-
*/
|
|
5211
|
-
this.dashboard_verificationRequiredButtonText = "Start Verification";
|
|
5212
|
-
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
5213
|
-
GENERAL PROPS:
|
|
5214
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
5215
|
-
/**
|
|
5216
|
-
* @uiName Setup progress
|
|
5217
|
-
* @uiGroup General Form Properties
|
|
5218
|
-
*/
|
|
5219
|
-
this.formStep = "Step {step} of {count}";
|
|
5220
|
-
/**
|
|
5221
|
-
* Part of the alert displayed at the top of the page.
|
|
5222
|
-
* @uiName Form submission error message title
|
|
5223
|
-
* @uiGroup General Form Properties
|
|
5224
|
-
* @uiWidget textArea
|
|
5225
|
-
*/
|
|
5226
|
-
this.generalErrorTitle = "There was a problem submitting your information";
|
|
5227
|
-
/**
|
|
5228
|
-
* Part of the alert displayed at the top of the page.
|
|
5229
|
-
* @uiName Form submission error message description
|
|
5230
|
-
* @uiGroup General Form Properties
|
|
5231
|
-
* @uiWidget textArea
|
|
5232
|
-
*/
|
|
5233
|
-
this.generalErrorDescription = "Please review your information and try again. If this problem continues, contact our {supportLink}.";
|
|
5234
|
-
/**
|
|
5235
|
-
* Displayed under a field that is missing required information.
|
|
5236
|
-
* @uiName Empty form field error message
|
|
5237
|
-
* @uiGroup General Form Properties
|
|
5238
|
-
*/
|
|
5239
|
-
this.fieldRequiredError = "{fieldName} is required";
|
|
5240
|
-
/**
|
|
5241
|
-
* Displayed under a field that includes invalid characters (non-ASCII).
|
|
5242
|
-
* @uiName Invalid character error message
|
|
5243
|
-
* @uiGroup General Form Properties
|
|
5244
|
-
*/
|
|
5245
|
-
this.invalidCharacterError = "{fieldName} includes characters that aren't supported.";
|
|
5246
|
-
/**
|
|
5247
|
-
* Displayed under a field when it has an invalid entry.
|
|
5248
|
-
* @uiName Form field error message
|
|
5249
|
-
* @uiGroup General Form Properties
|
|
5250
|
-
*/
|
|
5251
|
-
this.fieldInvalidError = "{fieldName} is invalid";
|
|
5252
|
-
/**
|
|
5253
|
-
* @uiName Continue button label
|
|
5254
|
-
* @uiGroup General Form Properties
|
|
5255
|
-
*/
|
|
5256
|
-
this.continueButton = "Continue";
|
|
5257
|
-
/**
|
|
5258
|
-
* @uiName Back button label
|
|
5259
|
-
* @uiGroup General Form Properties
|
|
5260
|
-
*/
|
|
5261
|
-
this.backButton = "Back";
|
|
5262
|
-
/**
|
|
5263
|
-
* @uiName Cancel button label
|
|
5264
|
-
* @uiGroup General Form Properties
|
|
5265
|
-
*/
|
|
5266
|
-
this.cancelButton = "Cancel";
|
|
5267
|
-
/**
|
|
5268
|
-
* Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com.
|
|
5269
|
-
* @uiName Participant is a partner alert title
|
|
5270
|
-
* @uiGroup General Form Properties
|
|
5271
|
-
* @uiWidget textArea
|
|
5272
|
-
*/
|
|
5273
|
-
this.isPartnerAlertHeader = "An account with this email already exists with our referral program provider, impact.com";
|
|
5274
|
-
/**
|
|
5275
|
-
* Part of the alert displayed at the top of the page if the participant is already a registered partner on impact.com.
|
|
5276
|
-
* @uiName Participant is a partner alert description
|
|
5277
|
-
* @uiGroup General Form Properties
|
|
5278
|
-
* @uiWidget textArea
|
|
5279
|
-
*/
|
|
5280
|
-
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.";
|
|
5281
|
-
/**
|
|
5282
|
-
* Placeholder text displayed in the country search dropdown
|
|
5283
|
-
* @uiName Country field placeholder text
|
|
5284
|
-
* @uiGroup General Form Properties
|
|
5285
|
-
*/
|
|
5286
|
-
this.searchForCountryText = "Search for country..";
|
|
5287
|
-
/**
|
|
5288
|
-
* Part of the alert displayed at the top of the page.
|
|
5289
|
-
* @uiName Page load error message title
|
|
5290
|
-
* @uiGroup General Form Properties
|
|
5291
|
-
* @uiWidget textArea
|
|
5292
|
-
*/
|
|
5293
|
-
this.loadingErrorAlertHeader = "There was a problem loading your form";
|
|
5294
|
-
/**
|
|
5295
|
-
* Part of the alert displayed at the top of the page.
|
|
5296
|
-
* @uiName Page load error message description
|
|
5297
|
-
* @uiGroup General Form Properties
|
|
5298
|
-
* @uiWidget textArea
|
|
5299
|
-
*/
|
|
5300
|
-
this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact our {supportLink}.";
|
|
5301
|
-
/**
|
|
5302
|
-
* Displayed at the top of the page on all set up steps.
|
|
5303
|
-
* @uiName Page description
|
|
5304
|
-
* @uiGroup General Form Properties
|
|
5305
|
-
*/
|
|
5306
|
-
this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
|
|
5307
|
-
/**
|
|
5308
|
-
* Link text for contacting support team
|
|
5309
|
-
* @uiName Suport link text
|
|
5310
|
-
* @uiGroup General Form Properties
|
|
5311
|
-
*/
|
|
5312
|
-
this.supportLink = "support team";
|
|
5313
|
-
stencilHooks_module.h$1(this);
|
|
5314
|
-
}
|
|
5315
|
-
disconnectedCallback() { }
|
|
5316
|
-
// this field is required prop
|
|
5317
|
-
getGeneralStepTextProps(prefix) {
|
|
5318
|
-
const props = utils.getProps(this);
|
|
5319
|
-
return {
|
|
5320
|
-
...extractProps.extractProps(props, prefix),
|
|
5321
|
-
generalErrorTitle: props.generalErrorTitle,
|
|
5322
|
-
generalErrorDescription: props.generalErrorDescription,
|
|
5323
|
-
fieldRequiredError: props.fieldRequiredError,
|
|
5324
|
-
invalidCharacterError: props.invalidCharacterError,
|
|
5325
|
-
fieldInvalidError: props.fieldInvalidError,
|
|
5326
|
-
continueButton: props.continueButton,
|
|
5327
|
-
backButton: props.backButton,
|
|
5328
|
-
cancelButton: props.cancelButton,
|
|
5329
|
-
isPartnerAlertHeader: props.isPartnerAlertHeader,
|
|
5330
|
-
isPartnerAlertDescription: props.isPartnerAlertDescription,
|
|
5331
|
-
loadingErrorAlertHeader: props.loadingErrorAlertHeader,
|
|
5332
|
-
loadingErrorAlertDescription: props.loadingErrorAlertDescription,
|
|
5333
|
-
taxAndPayoutsDescription: props.taxAndPayoutsDescription,
|
|
5334
|
-
searchForCountryText: props.searchForCountryText,
|
|
5335
|
-
formStep: props.formStep,
|
|
5336
|
-
supportLink: props.supportLink,
|
|
5337
|
-
};
|
|
5338
|
-
}
|
|
5339
|
-
render() {
|
|
5340
|
-
var _a, _b;
|
|
5341
|
-
const props = index_module.isDemo() ? useDemoTaxAndCash(this) : useTaxAndCash();
|
|
5342
|
-
// @ts-ignore
|
|
5343
|
-
if ((_a = this.demoData) === null || _a === void 0 ? void 0 : _a.showTextProps) {
|
|
5344
|
-
const textProps = utils.getProps(this);
|
|
5345
|
-
return (index.h("div", null, (_b = Object.keys(textProps)) === null || _b === void 0 ? void 0 : _b.map((prop) => {
|
|
5346
|
-
if (prop === "demoData")
|
|
5347
|
-
return;
|
|
5348
|
-
return (index.h("div", null, index.h("b", null, prop, ":"), " ", this[prop], index.h("hr", null)));
|
|
5349
|
-
})));
|
|
5350
|
-
}
|
|
5351
|
-
switch (props.step) {
|
|
5352
|
-
case "/1":
|
|
5353
|
-
return (index.h("sqm-user-info-form", Object.assign({}, this.getGeneralStepTextProps("step1_"))));
|
|
5354
|
-
case "/2":
|
|
5355
|
-
return (index.h("sqm-indirect-tax-form", Object.assign({}, this.getGeneralStepTextProps("step2_"))));
|
|
5356
|
-
case "/3":
|
|
5357
|
-
return (index.h("sqm-docusign-form", Object.assign({}, this.getGeneralStepTextProps("step3_"))));
|
|
5358
|
-
case "/4":
|
|
5359
|
-
return (index.h("sqm-banking-info-form", Object.assign({}, this.getGeneralStepTextProps("step4_"))));
|
|
5360
|
-
case "/dashboard":
|
|
5361
|
-
return (index.h("sqm-tax-and-cash-dashboard", Object.assign({}, this.getGeneralStepTextProps("dashboard_"))));
|
|
5362
|
-
case "/error":
|
|
5363
|
-
return (index.h(ErrorView.ErrorView, { loadingErrorAlertHeader: this.loadingErrorAlertHeader, loadingErrorAlertDescription: this.loadingErrorAlertDescription }));
|
|
5364
|
-
}
|
|
5365
|
-
return index.h(sqmInvoiceTableView.LoadingView, null);
|
|
5366
|
-
}
|
|
5367
|
-
};
|
|
5368
|
-
function useDemoTaxAndCash(props) {
|
|
5369
|
-
const [step, setStep] = index_module.In({
|
|
5370
|
-
namespace: TAX_CONTEXT_NAMESPACE,
|
|
5371
|
-
initialValue: "/1",
|
|
5372
|
-
});
|
|
5373
|
-
return cjs.cjs({
|
|
5374
|
-
step,
|
|
5375
|
-
setStep,
|
|
5376
|
-
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
5377
|
-
}
|
|
5378
|
-
|
|
5379
|
-
const style$6 = {
|
|
3682
|
+
const style$5 = {
|
|
5380
3683
|
ErrorAlertContainer: {
|
|
5381
3684
|
"&::part(base)": {
|
|
5382
3685
|
backgroundColor: "var(--sqm-danger-color-background)",
|
|
@@ -5567,8 +3870,8 @@ const style$6 = {
|
|
|
5567
3870
|
},
|
|
5568
3871
|
DialogButton: { margin: "auto", width: "100%" },
|
|
5569
3872
|
};
|
|
5570
|
-
const sheet$
|
|
5571
|
-
const styleString$
|
|
3873
|
+
const sheet$4 = JSS.createStyleSheet(style$5);
|
|
3874
|
+
const styleString$4 = sheet$4.toString();
|
|
5572
3875
|
const TaxAndCashDashboardView = (props) => {
|
|
5573
3876
|
var _a, _b, _c, _d;
|
|
5574
3877
|
const { states, text, callbacks, slots } = props;
|
|
@@ -5586,7 +3889,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5586
3889
|
buttonText: text.verificationRequiredButtonText,
|
|
5587
3890
|
alertType: "warning",
|
|
5588
3891
|
icon: "exclamation-triangle",
|
|
5589
|
-
class: sheet$
|
|
3892
|
+
class: sheet$4.classes.WarningHoldAlertContainer,
|
|
5590
3893
|
};
|
|
5591
3894
|
case "VERIFICATION:INTERNAL":
|
|
5592
3895
|
return {
|
|
@@ -5599,7 +3902,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5599
3902
|
}),
|
|
5600
3903
|
alertType: "warning",
|
|
5601
3904
|
icon: "exclamation-triangle",
|
|
5602
|
-
class: sheet$
|
|
3905
|
+
class: sheet$4.classes.WarningHoldAlertContainer,
|
|
5603
3906
|
};
|
|
5604
3907
|
case "VERIFICATION:REVIEW":
|
|
5605
3908
|
return {
|
|
@@ -5612,7 +3915,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5612
3915
|
}),
|
|
5613
3916
|
alertType: "warning",
|
|
5614
3917
|
icon: "exclamation-triangle",
|
|
5615
|
-
class: sheet$
|
|
3918
|
+
class: sheet$4.classes.WarningHoldAlertContainer,
|
|
5616
3919
|
};
|
|
5617
3920
|
case "VERIFICATION:FAILED":
|
|
5618
3921
|
return {
|
|
@@ -5625,7 +3928,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5625
3928
|
}),
|
|
5626
3929
|
alertType: "critical",
|
|
5627
3930
|
icon: "exclamation-octagon",
|
|
5628
|
-
class: sheet$
|
|
3931
|
+
class: sheet$4.classes.ErrorHoldAlertContainer,
|
|
5629
3932
|
};
|
|
5630
3933
|
case "HOLD":
|
|
5631
3934
|
return {
|
|
@@ -5639,14 +3942,14 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5639
3942
|
buttonText: null,
|
|
5640
3943
|
alertType: "warning",
|
|
5641
3944
|
icon: "exclamation-triangle",
|
|
5642
|
-
class: sheet$
|
|
3945
|
+
class: sheet$4.classes.WarningHoldAlertContainer,
|
|
5643
3946
|
};
|
|
5644
3947
|
default:
|
|
5645
3948
|
return;
|
|
5646
3949
|
}
|
|
5647
3950
|
}
|
|
5648
3951
|
const statusMap = {
|
|
5649
|
-
NOT_VERIFIED: (index.h("div", { class: sheet$
|
|
3952
|
+
NOT_VERIFIED: (index.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
5650
3953
|
index.h("sl-badge", { type: "warning", pill: true }, text.statusTextNotVerified),
|
|
5651
3954
|
index.h("p", null, global.intl.formatMessage({
|
|
5652
3955
|
id: `badgeTextAwaitingReview`,
|
|
@@ -5654,7 +3957,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5654
3957
|
}, {
|
|
5655
3958
|
dateSubmitted: states.dateSubmitted,
|
|
5656
3959
|
})))),
|
|
5657
|
-
ACTIVE: (index.h("div", { class: sheet$
|
|
3960
|
+
ACTIVE: (index.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
5658
3961
|
index.h("sl-badge", { type: "success", pill: true }, text.statusTextActive),
|
|
5659
3962
|
index.h("p", null, global.intl.formatMessage({
|
|
5660
3963
|
id: `badgeTextSubmittedOn`,
|
|
@@ -5664,12 +3967,12 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5664
3967
|
}, {
|
|
5665
3968
|
dateSubmitted: states.dateSubmitted,
|
|
5666
3969
|
})))),
|
|
5667
|
-
INACTIVE: (index.h("div", { class: sheet$
|
|
3970
|
+
INACTIVE: (index.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
5668
3971
|
index.h("sl-badge", { type: "danger", pill: true }, text.statusTextNotActive),
|
|
5669
3972
|
index.h("p", null, text.invalidForm))),
|
|
5670
3973
|
};
|
|
5671
3974
|
const alertMap = {
|
|
5672
|
-
INACTIVE: (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$
|
|
3975
|
+
INACTIVE: (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.ErrorAlertContainer },
|
|
5673
3976
|
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5674
3977
|
index.h("strong", null, global.intl.formatMessage({
|
|
5675
3978
|
id: `taxAlertHeaderNotActive`,
|
|
@@ -5719,9 +4022,9 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5719
4022
|
};
|
|
5720
4023
|
return (index.h("div", null,
|
|
5721
4024
|
index.h("div", null,
|
|
5722
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
4025
|
+
index.h("style", { type: "text/css" }, styleString$4),
|
|
5723
4026
|
states.loadingError && (index.h("div", null,
|
|
5724
|
-
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$
|
|
4027
|
+
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.ErrorAlertContainer },
|
|
5725
4028
|
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5726
4029
|
index.h("strong", null, text.error.loadingErrorAlertHeader),
|
|
5727
4030
|
index.h("br", null),
|
|
@@ -5731,7 +4034,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5731
4034
|
}, {
|
|
5732
4035
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5733
4036
|
})))),
|
|
5734
|
-
((_a = states.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$
|
|
4037
|
+
((_a = states.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.ErrorAlertContainer },
|
|
5735
4038
|
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5736
4039
|
index.h("strong", null, text.error.generalTitle),
|
|
5737
4040
|
index.h("br", null),
|
|
@@ -5746,49 +4049,49 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5746
4049
|
index.h("strong", null, getAlert(states.payoutStatus).header),
|
|
5747
4050
|
index.h("p", { style: { margin: "0" } }, getAlert(states.payoutStatus).description),
|
|
5748
4051
|
getAlert(states.payoutStatus).buttonText && (index.h("sl-button", { style: { marginTop: "var(--sl-spacing-x-small)" }, type: "default", loading: states.veriffLoading, onClick: () => callbacks.onVerifyClick() }, getAlert(states.payoutStatus).buttonText)))),
|
|
5749
|
-
index.h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet$
|
|
4052
|
+
index.h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet$4.classes.Dialog, open: states.showNewFormDialog, "onSl-hide": callbacks.onNewFormCancel },
|
|
5750
4053
|
index.h("p", null, text.replaceTaxFormModalBodyText),
|
|
5751
|
-
index.h("sl-button", { slot: "footer", type: "primary", class: sheet$
|
|
5752
|
-
index.h("sl-button", { slot: "footer", type: "default", class: sheet$
|
|
4054
|
+
index.h("sl-button", { slot: "footer", type: "primary", class: sheet$4.classes.DialogButton, onClick: callbacks.onNewFormClick }, text.newFormButton),
|
|
4055
|
+
index.h("sl-button", { slot: "footer", type: "default", class: sheet$4.classes.DialogButton, onClick: callbacks.onNewFormCancel }, text.cancelButton)),
|
|
5753
4056
|
states.status === "INACTIVE" && alertMap[states.status],
|
|
5754
4057
|
index.h("div", null,
|
|
5755
4058
|
index.h("h3", { style: { marginBottom: "0" } }, text.bankingInformationSectionHeader),
|
|
5756
|
-
index.h("p", { class: sheet$
|
|
5757
|
-
index.h("div", { class: sheet$
|
|
4059
|
+
index.h("p", { class: sheet$4.classes.PageDescriptionText }, text.taxAndPayoutsDescription),
|
|
4060
|
+
index.h("div", { class: sheet$4.classes.BankingInformationContainer },
|
|
5758
4061
|
slots.payoutDetailsCardSlot,
|
|
5759
|
-
!states.loading && (index.h("p", { class: sheet$
|
|
5760
|
-
states.canEditPayoutInfo && (index.h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$
|
|
5761
|
-
index.h("div", { class: sheet$
|
|
5762
|
-
index.h("div", null, states.loading ? (index.h("div", { class: sheet$
|
|
5763
|
-
index.h("sl-skeleton", { class: sheet$
|
|
5764
|
-
index.h("sl-skeleton", { class: sheet$
|
|
5765
|
-
index.h("h3", { class: sheet$
|
|
5766
|
-
index.h("p", { class: sheet$
|
|
5767
|
-
index.h("span", { class: sheet$
|
|
5768
|
-
index.h("div", { class: sheet$
|
|
4062
|
+
!states.loading && (index.h("p", { class: sheet$4.classes.DescriptionText }, text.payoutFromImpact)),
|
|
4063
|
+
states.canEditPayoutInfo && (index.h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$4.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
|
|
4064
|
+
index.h("div", { class: sheet$4.classes.TaxDocumentsContainer },
|
|
4065
|
+
index.h("div", null, states.loading ? (index.h("div", { class: sheet$4.classes.TaxSectionSkeletonContainer },
|
|
4066
|
+
index.h("sl-skeleton", { class: sheet$4.classes.SkeletonOne }),
|
|
4067
|
+
index.h("sl-skeleton", { class: sheet$4.classes.SkeletonTwo }))) : (index.h("div", null, states.noFormNeeded ? (index.h("div", null,
|
|
4068
|
+
index.h("h3", { class: sheet$4.classes.TaxDocumentsSectionHeaderContainer }, text.taxDocumentSectionHeader),
|
|
4069
|
+
index.h("p", { class: sheet$4.classes.TaxDocSubtext }, text.noFormNeededSubtext))) : (index.h("div", null,
|
|
4070
|
+
index.h("span", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
4071
|
+
index.h("div", { class: sheet$4.classes.StatusContainer },
|
|
5769
4072
|
index.h("h3", null, global.intl.formatMessage({
|
|
5770
4073
|
id: "section-subheader",
|
|
5771
4074
|
defaultMessage: text.taxDocumentSectionSubHeader,
|
|
5772
4075
|
}, {
|
|
5773
4076
|
documentType: states.documentTypeString,
|
|
5774
4077
|
})),
|
|
5775
|
-
index.h("span", { class: sheet$
|
|
5776
|
-
states.status !== "NOT_VERIFIED" && (index.h("sl-button", { disabled: states.disabled || states.loading, onClick: callbacks.onClick, type: "default", class: sheet$
|
|
5777
|
-
index.h("div", { class: sheet$
|
|
5778
|
-
index.h("sl-skeleton", { class: sheet$
|
|
5779
|
-
index.h("sl-skeleton", { class: sheet$
|
|
5780
|
-
index.h("h3", { class: sheet$
|
|
4078
|
+
index.h("span", { class: sheet$4.classes.StatusAlert }, statusMap[states.status]))),
|
|
4079
|
+
states.status !== "NOT_VERIFIED" && (index.h("sl-button", { disabled: states.disabled || states.loading, onClick: callbacks.onClick, type: "default", class: sheet$4.classes.NewFormButton, exportparts: "base: primarybutton-base" }, text.newFormButton)))))))),
|
|
4080
|
+
index.h("div", { class: sheet$4.classes.IndirectTaxPreviewContainer }, states.loading ? (index.h("div", { class: sheet$4.classes.TaxSectionSkeletonContainer },
|
|
4081
|
+
index.h("sl-skeleton", { class: sheet$4.classes.SkeletonOne }),
|
|
4082
|
+
index.h("sl-skeleton", { class: sheet$4.classes.SkeletonTwo }))) : (index.h("div", null,
|
|
4083
|
+
index.h("h3", { class: sheet$4.classes.IndirectTaxPreviewHeaderContainer },
|
|
5781
4084
|
text.indirectTaxInfoSectionHeader,
|
|
5782
|
-
index.h("sl-tooltip", { trigger: "hover", placement: "right", content: text.indirectTaxTooltipSupport, class: sheet$
|
|
5783
|
-
index.h("sl-icon", { name: "info-circle", class: sheet$
|
|
5784
|
-
index.h("div", { class: sheet$
|
|
5785
|
-
index.h("span", null, states.notRegistered ? (index.h("span", { class: sheet$
|
|
4085
|
+
index.h("sl-tooltip", { trigger: "hover", placement: "right", content: text.indirectTaxTooltipSupport, class: sheet$4.classes.TooltipContainer },
|
|
4086
|
+
index.h("sl-icon", { name: "info-circle", class: sheet$4.classes.ToolTip }))),
|
|
4087
|
+
index.h("div", { class: sheet$4.classes.IndirectTaxPreviewDetails },
|
|
4088
|
+
index.h("span", null, states.notRegistered ? (index.h("span", { class: sheet$4.classes.NotRegisteredIndirectTaxText }, global.intl.formatMessage({
|
|
5786
4089
|
id: "notRegisteredForTax",
|
|
5787
4090
|
defaultMessage: text.notRegisteredForTax,
|
|
5788
4091
|
}, {
|
|
5789
4092
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
5790
4093
|
}))) : (getIndirectTaxRegisteredIn())),
|
|
5791
|
-
!states.notRegistered && (index.h("div", { class: sheet$
|
|
4094
|
+
!states.notRegistered && (index.h("div", { class: sheet$4.classes.TaxNumberContainer },
|
|
5792
4095
|
index.h("span", null, global.intl.formatMessage({
|
|
5793
4096
|
id: `indirectTaxDetails`,
|
|
5794
4097
|
defaultMessage: text.indirectTaxDetails,
|
|
@@ -5811,7 +4114,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5811
4114
|
}, {
|
|
5812
4115
|
subRegionTaxNumber: states.subRegionTaxNumber,
|
|
5813
4116
|
})))),
|
|
5814
|
-
!states.notRegistered && (index.h("div", { class: sheet$
|
|
4117
|
+
!states.notRegistered && (index.h("div", { class: sheet$4.classes.InvoiceTableContainer },
|
|
5815
4118
|
index.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 },
|
|
5816
4119
|
index.h("sqm-invoice-table-download-column", null),
|
|
5817
4120
|
index.h("sqm-invoice-table-date-column", { "column-title": text.dateColumnTitle }),
|
|
@@ -5835,12 +4138,12 @@ function getSubRegionName(regionCode) {
|
|
|
5835
4138
|
return "";
|
|
5836
4139
|
// Impact adds an underscore to some regions
|
|
5837
4140
|
const standardCode = regionCode.replace("_", "");
|
|
5838
|
-
const regions = [...
|
|
4141
|
+
const regions = [...IndirectTaxDetailsView.INDIRECT_TAX_PROVINCES, ...IndirectTaxDetailsView.INDIRECT_TAX_SPAIN_REGIONS];
|
|
5839
4142
|
return (_a = regions.find((r) => r.regionCode === standardCode)) === null || _a === void 0 ? void 0 : _a.displayName;
|
|
5840
4143
|
}
|
|
5841
4144
|
function getIndirectTaxType(taxInformation) {
|
|
5842
4145
|
var _a;
|
|
5843
|
-
const regions = [...
|
|
4146
|
+
const regions = [...IndirectTaxDetailsView.INDIRECT_TAX_PROVINCES, ...IndirectTaxDetailsView.INDIRECT_TAX_SPAIN_REGIONS];
|
|
5844
4147
|
if (taxInformation === null || taxInformation === void 0 ? void 0 : taxInformation.indirectTaxRegion) {
|
|
5845
4148
|
const standardRegion = taxInformation.indirectTaxRegion.replace("_", "");
|
|
5846
4149
|
const taxType = (_a = regions.find((r) => r.regionCode === standardRegion)) === null || _a === void 0 ? void 0 : _a.taxType;
|
|
@@ -5851,14 +4154,14 @@ function getIndirectTaxType(taxInformation) {
|
|
|
5851
4154
|
if (taxInformation === null || taxInformation === void 0 ? void 0 : taxInformation.withholdingTaxCountryCode)
|
|
5852
4155
|
return "VAT";
|
|
5853
4156
|
if (taxInformation === null || taxInformation === void 0 ? void 0 : taxInformation.indirectTaxCountryCode) {
|
|
5854
|
-
return
|
|
4157
|
+
return IndirectTaxDetailsView.vatLabels[taxInformation.indirectTaxCountryCode] || "Indirect Tax";
|
|
5855
4158
|
}
|
|
5856
4159
|
return "Indirect Tax";
|
|
5857
4160
|
}
|
|
5858
4161
|
const useTaxAndCashDashboard = (props) => {
|
|
5859
4162
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
5860
|
-
const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
|
|
5861
|
-
const setContext = index_module.En(TAX_FORM_CONTEXT_NAMESPACE);
|
|
4163
|
+
const setStep = index_module.En(data.TAX_CONTEXT_NAMESPACE);
|
|
4164
|
+
const setContext = index_module.En(data.TAX_FORM_CONTEXT_NAMESPACE);
|
|
5862
4165
|
const [showDialog, setShowDialog] = stencilHooks_module.useState(false);
|
|
5863
4166
|
const { render, loading: veriffLoading, errors: veriffErrors, } = usePayoutStatus.useVeriffApp();
|
|
5864
4167
|
const locale = index_module.L();
|
|
@@ -5866,8 +4169,8 @@ const useTaxAndCashDashboard = (props) => {
|
|
|
5866
4169
|
// Clear override context once on submitted
|
|
5867
4170
|
setContext({});
|
|
5868
4171
|
}, []);
|
|
5869
|
-
const { data, loading, errors: userError, refetch, } = index_module.$n(USER_QUERY_NAMESPACE);
|
|
5870
|
-
const publisher = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher;
|
|
4172
|
+
const { data: data$1, loading, errors: userError, refetch, } = index_module.$n(data.USER_QUERY_NAMESPACE);
|
|
4173
|
+
const publisher = (_b = (_a = data$1 === null || data$1 === void 0 ? void 0 : data$1.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher;
|
|
5871
4174
|
const documentType = publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType;
|
|
5872
4175
|
const submissionDate = (_c = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _c === void 0 ? void 0 : _c.dateCreated;
|
|
5873
4176
|
const dateSubmitted = submissionDate
|
|
@@ -5890,8 +4193,8 @@ const useTaxAndCashDashboard = (props) => {
|
|
|
5890
4193
|
});
|
|
5891
4194
|
setStep("/3");
|
|
5892
4195
|
};
|
|
5893
|
-
const provinceName = (_d =
|
|
5894
|
-
const payoutStatus = data ? usePayoutStatus.getStatus(data) : null;
|
|
4196
|
+
const provinceName = (_d = IndirectTaxDetailsView.INDIRECT_TAX_PROVINCES.find((p) => { var _a; return p.regionCode === ((_a = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _a === void 0 ? void 0 : _a.indirectTaxRegion); })) === null || _d === void 0 ? void 0 : _d.displayName;
|
|
4197
|
+
const payoutStatus = data$1 ? usePayoutStatus.getStatus(data$1) : null;
|
|
5895
4198
|
stencilHooks_module.useEffect(() => {
|
|
5896
4199
|
const cb = () => refetch();
|
|
5897
4200
|
window.addEventListener(usePayoutStatus.VERIFF_COMPLETE_EVENT_KEY, cb);
|
|
@@ -5904,7 +4207,7 @@ const useTaxAndCashDashboard = (props) => {
|
|
|
5904
4207
|
dateSubmitted,
|
|
5905
4208
|
documentType,
|
|
5906
4209
|
canEditPayoutInfo: publisher === null || publisher === void 0 ? void 0 : publisher.brandedSignup,
|
|
5907
|
-
documentTypeString:
|
|
4210
|
+
documentTypeString: utils$1.taxTypeToName(documentType),
|
|
5908
4211
|
status: (_e = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _e === void 0 ? void 0 : _e.status,
|
|
5909
4212
|
subRegion: getSubRegionName((_f = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _f === void 0 ? void 0 : _f.indirectTaxRegion),
|
|
5910
4213
|
subRegionTaxNumber: (_g = publisher === null || publisher === void 0 ? void 0 : publisher.taxInformation) === null || _g === void 0 ? void 0 : _g.withholdingTaxId,
|
|
@@ -6242,6 +4545,16 @@ const TaxAndCashDashboard = class {
|
|
|
6242
4545
|
* @uiName Cancel button label
|
|
6243
4546
|
*/
|
|
6244
4547
|
this.cancelButton = "Cancel";
|
|
4548
|
+
/**
|
|
4549
|
+
* @parentState { "parent": "sqm-tax-and-cash", "title": "Dashboard" }
|
|
4550
|
+
* @componentState { "title": "Default", "props": { } }
|
|
4551
|
+
* @componentState { "title": "Verification Required", "props": { "states": { "payoutStatus": "VERIFICATION:REQUIRED" } } }
|
|
4552
|
+
* @componentState { "title": "Internal Verification Required", "props": { "states": { "payoutStatus": "VERIFICATION:INTERNAL" } } }
|
|
4553
|
+
* @componentState { "title": "Review in progress", "props": { "states": { "payoutStatus": "VERIFICATION:REVIEW" } } }
|
|
4554
|
+
* @componentState { "title": "Verification failed", "props": { "states": { "payoutStatus": "VERIFICATION:FAILED" } } }
|
|
4555
|
+
* @componentState { "title": "Payout hold", "props": { "states": { "payoutStatus": "HOLD" } } }
|
|
4556
|
+
*/
|
|
4557
|
+
this.stateController = "{}";
|
|
6245
4558
|
stencilHooks_module.h$1(this);
|
|
6246
4559
|
}
|
|
6247
4560
|
disconnectedCallback() { }
|
|
@@ -6267,6 +4580,8 @@ const TaxAndCashDashboard = class {
|
|
|
6267
4580
|
}
|
|
6268
4581
|
};
|
|
6269
4582
|
function useDemoTaxAndCashDashboard(props) {
|
|
4583
|
+
const states = parseStates.parseStates(props.stateController);
|
|
4584
|
+
console.log({ states });
|
|
6270
4585
|
return cjs.cjs({
|
|
6271
4586
|
states: {
|
|
6272
4587
|
dateSubmitted: "today",
|
|
@@ -6274,16 +4589,23 @@ function useDemoTaxAndCashDashboard(props) {
|
|
|
6274
4589
|
documentTypeString: "W9",
|
|
6275
4590
|
status: "ACTIVE",
|
|
6276
4591
|
country: "United States",
|
|
6277
|
-
indirectTaxNumber: 55555555,
|
|
4592
|
+
indirectTaxNumber: "55555555",
|
|
6278
4593
|
indirectTaxType: "Indirect Tax",
|
|
6279
4594
|
noFormNeeded: true,
|
|
6280
4595
|
disabled: false,
|
|
6281
4596
|
loading: false,
|
|
6282
4597
|
showNewFormDialog: false,
|
|
6283
4598
|
hasHold: false,
|
|
6284
|
-
showVerifyIdentity: false,
|
|
6285
4599
|
payoutStatus: "DONE",
|
|
6286
4600
|
veriffLoading: false,
|
|
4601
|
+
canEditPayoutInfo: true,
|
|
4602
|
+
subRegion: "CA",
|
|
4603
|
+
subRegionTaxNumber: undefined,
|
|
4604
|
+
qstNumber: undefined,
|
|
4605
|
+
isBusinessEntity: false,
|
|
4606
|
+
province: undefined,
|
|
4607
|
+
notRegistered: false,
|
|
4608
|
+
loadingError: false,
|
|
6287
4609
|
},
|
|
6288
4610
|
callbacks: {
|
|
6289
4611
|
onClick: () => console.debug("check step"),
|
|
@@ -6293,7 +4615,7 @@ function useDemoTaxAndCashDashboard(props) {
|
|
|
6293
4615
|
onVerifyClick: () => console.log("verify"),
|
|
6294
4616
|
},
|
|
6295
4617
|
text: props.getTextProps(),
|
|
6296
|
-
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
4618
|
+
}, props.demoData || states || {}, { arrayMerge: (_, a) => a });
|
|
6297
4619
|
}
|
|
6298
4620
|
|
|
6299
4621
|
const PHONE_EXTENSIONS = {
|
|
@@ -7267,7 +5589,7 @@ const PHONE_EXTENSIONS = {
|
|
|
7267
5589
|
},
|
|
7268
5590
|
};
|
|
7269
5591
|
|
|
7270
|
-
const style$
|
|
5592
|
+
const style$6 = {
|
|
7271
5593
|
FormWrapper: {},
|
|
7272
5594
|
ErrorInput: {
|
|
7273
5595
|
"&::part(base)": {
|
|
@@ -7367,9 +5689,9 @@ const style$7 = {
|
|
|
7367
5689
|
},
|
|
7368
5690
|
},
|
|
7369
5691
|
};
|
|
7370
|
-
const sheet$
|
|
7371
|
-
const styleString$
|
|
7372
|
-
const vanillaStyle$
|
|
5692
|
+
const sheet$5 = JSS.createStyleSheet(style$6);
|
|
5693
|
+
const styleString$5 = sheet$5.toString();
|
|
5694
|
+
const vanillaStyle$3 = `
|
|
7373
5695
|
:host{
|
|
7374
5696
|
display: block;
|
|
7375
5697
|
}
|
|
@@ -7546,8 +5868,8 @@ const vanillaStyle$4 = `
|
|
|
7546
5868
|
`;
|
|
7547
5869
|
const UserInfoFormView = (props) => {
|
|
7548
5870
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
|
|
7549
|
-
const { states, states: { formState }, callbacks, text, refs, data, } = props;
|
|
7550
|
-
const { classes } = sheet$
|
|
5871
|
+
const { states, states: { formState }, callbacks, text, refs, data: data$1, } = props;
|
|
5872
|
+
const { classes } = sheet$5;
|
|
7551
5873
|
const bankingCollectionText = global.intl.formatMessage({
|
|
7552
5874
|
id: "bankingCollectionText",
|
|
7553
5875
|
defaultMessage: text.allowBankingCollection,
|
|
@@ -7555,7 +5877,7 @@ const UserInfoFormView = (props) => {
|
|
|
7555
5877
|
termsAndConditionsLink: (index.h("a", { href: text.termsAndConditionsLink, target: "_blank" }, text.termsAndConditionsLabel)),
|
|
7556
5878
|
});
|
|
7557
5879
|
let regionLabel = undefined;
|
|
7558
|
-
switch (data.regionLabelEnum) {
|
|
5880
|
+
switch (data$1.regionLabelEnum) {
|
|
7559
5881
|
case "STATE":
|
|
7560
5882
|
regionLabel = text.state;
|
|
7561
5883
|
break;
|
|
@@ -7570,10 +5892,10 @@ const UserInfoFormView = (props) => {
|
|
|
7570
5892
|
}
|
|
7571
5893
|
return (index.h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
7572
5894
|
index.h("style", { type: "text/css" },
|
|
7573
|
-
styleString$
|
|
7574
|
-
vanillaStyle$
|
|
5895
|
+
styleString$5,
|
|
5896
|
+
vanillaStyle$3),
|
|
7575
5897
|
states.loadingError && (index.h("div", null,
|
|
7576
|
-
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$
|
|
5898
|
+
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.AlertContainer },
|
|
7577
5899
|
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
7578
5900
|
index.h("strong", null, text.error.loadingErrorAlertHeader),
|
|
7579
5901
|
index.h("br", null),
|
|
@@ -7584,16 +5906,16 @@ const UserInfoFormView = (props) => {
|
|
|
7584
5906
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
7585
5907
|
})),
|
|
7586
5908
|
index.h("br", null))),
|
|
7587
|
-
states.loading ? (index.h(
|
|
5909
|
+
states.loading ? (index.h(utils$1.LoadingView, null)) : (index.h("div", null,
|
|
7588
5910
|
index.h("div", { class: classes.TextContainer },
|
|
7589
5911
|
index.h("div", null,
|
|
7590
5912
|
!states.hideSteps && (index.h("p", null, global.intl.formatMessage({
|
|
7591
5913
|
id: "formStep",
|
|
7592
5914
|
defaultMessage: text.formStep,
|
|
7593
|
-
}, { step: states.step, count: FORM_STEPS }))),
|
|
5915
|
+
}, { step: states.step, count: data.FORM_STEPS }))),
|
|
7594
5916
|
index.h("h3", null, text.personalInformation),
|
|
7595
5917
|
index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
|
|
7596
|
-
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$
|
|
5918
|
+
((_a = formState.errors) === null || _a === void 0 ? void 0 : _a.general) && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$5.classes.AlertContainer },
|
|
7597
5919
|
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
7598
5920
|
index.h("strong", null, text.error.generalTitle),
|
|
7599
5921
|
index.h("br", null),
|
|
@@ -7603,7 +5925,7 @@ const UserInfoFormView = (props) => {
|
|
|
7603
5925
|
}, {
|
|
7604
5926
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
7605
5927
|
}))),
|
|
7606
|
-
(states.isPartner || states.isUser) && (index.h("sl-alert", { type: "primary", open: true, class: sheet$
|
|
5928
|
+
(states.isPartner || states.isUser) && (index.h("sl-alert", { type: "primary", open: true, class: sheet$5.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
|
|
7607
5929
|
index.h("sl-icon", { slot: "icon", name: "info-circle" }),
|
|
7608
5930
|
index.h("strong", null, text.isPartnerAlertHeader),
|
|
7609
5931
|
index.h("br", null),
|
|
@@ -7617,18 +5939,18 @@ const UserInfoFormView = (props) => {
|
|
|
7617
5939
|
index.h("div", { class: classes.InputContainer },
|
|
7618
5940
|
index.h("sl-input", Object.assign({ class: "ErrorInput", exportparts: "label: input-label, base: input-base", value: formState.firstName, label: text.firstName, disabled: states.disabled || states.isUser || states.isPartner }, (((_b = formState.errors) === null || _b === void 0 ? void 0 : _b.firstName) ? {
|
|
7619
5941
|
class: classes.ErrorInput,
|
|
7620
|
-
helpText:
|
|
5942
|
+
helpText: utils$1.formatErrorMessage(text.firstName, formState.errors.firstName),
|
|
7621
5943
|
}
|
|
7622
5944
|
: {}), { id: "firstName", name: "/firstName", required: true })),
|
|
7623
5945
|
index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", value: formState.lastName, label: text.lastName, disabled: states.disabled || states.isUser || states.isPartner }, (((_c = formState.errors) === null || _c === void 0 ? void 0 : _c.lastName) ? {
|
|
7624
5946
|
class: classes.ErrorInput,
|
|
7625
|
-
helpText:
|
|
5947
|
+
helpText: utils$1.formatErrorMessage(text.lastName, formState.errors.lastName),
|
|
7626
5948
|
}
|
|
7627
5949
|
: {}), { id: "lastName", name: "/lastName", required: true })),
|
|
7628
5950
|
index.h("sl-input", { exportparts: "label: input-label, base: input-base", value: formState.email, label: text.email, disabled: true, id: "email", name: "/email", required: true }),
|
|
7629
5951
|
index.h("sl-select", Object.assign({ id: "countryCode", exportparts: "label: input-label, base: input-base", name: "/countryCode", label: text.country, value: formState.countryCode, disabled: states.disabled || states.isPartner }, (((_d = formState.errors) === null || _d === void 0 ? void 0 : _d.countryCode) ? {
|
|
7630
5952
|
class: classes.ErrorInput,
|
|
7631
|
-
helpText:
|
|
5953
|
+
helpText: utils$1.formatErrorMessage(text.country, formState.errors.countryCode),
|
|
7632
5954
|
}
|
|
7633
5955
|
: {}), { required: true, "onSl-select": (e) => callbacks.onFormChange("countryCode", e) }),
|
|
7634
5956
|
index.h("sl-input", { class: classes.SearchInput, placeholder: text.searchForCountryText, onKeyDown: (e) => {
|
|
@@ -7636,8 +5958,8 @@ const UserInfoFormView = (props) => {
|
|
|
7636
5958
|
e.stopPropagation();
|
|
7637
5959
|
}, "onSl-input": (e) => {
|
|
7638
5960
|
callbacks.setCountrySearch(e.target.value);
|
|
7639
|
-
} }), (_e = data === null || data === void 0 ? void 0 : data.countries) === null || _e === void 0 ? void 0 :
|
|
7640
|
-
_e.map((c) => (index.h("sl-menu-item", { value: c.countryCode }, c.displayName))), (_f = data === null || data === void 0 ? void 0 : data.allCountries) === null || _f === void 0 ? void 0 :
|
|
5961
|
+
} }), (_e = data$1 === null || data$1 === void 0 ? void 0 : data$1.countries) === null || _e === void 0 ? void 0 :
|
|
5962
|
+
_e.map((c) => (index.h("sl-menu-item", { value: c.countryCode }, c.displayName))), (_f = data$1 === null || data$1 === void 0 ? void 0 : data$1.allCountries) === null || _f === void 0 ? void 0 :
|
|
7641
5963
|
_f.map((c) => (index.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } }, c.displayName)))),
|
|
7642
5964
|
index.h("div", { class: classes.PhoneInputsSection },
|
|
7643
5965
|
index.h("p", null, text.phoneNumber),
|
|
@@ -7651,13 +5973,13 @@ const UserInfoFormView = (props) => {
|
|
|
7651
5973
|
e.stopPropagation();
|
|
7652
5974
|
}, "onSl-input": (e) => {
|
|
7653
5975
|
callbacks.setPhoneCountrySearch(e.target.value);
|
|
7654
|
-
} }), (_h = data === null || data === void 0 ? void 0 : data.phoneCountries) === null || _h === void 0 ? void 0 :
|
|
5976
|
+
} }), (_h = data$1 === null || data$1 === void 0 ? void 0 : data$1.phoneCountries) === null || _h === void 0 ? void 0 :
|
|
7655
5977
|
_h.map((c) => {
|
|
7656
5978
|
var _a, _b;
|
|
7657
5979
|
return (index.h("sl-menu-item", { value: c.countryCode },
|
|
7658
5980
|
index.h("div", { slot: "prefix" }, `${(_a = PHONE_EXTENSIONS[c.countryCode]) === null || _a === void 0 ? void 0 : _a.name} `), (_b = PHONE_EXTENSIONS[c.countryCode]) === null || _b === void 0 ? void 0 :
|
|
7659
5981
|
_b.dial_code));
|
|
7660
|
-
}), (_j = data === null || data === void 0 ? void 0 : data.allCountries) === null || _j === void 0 ? void 0 :
|
|
5982
|
+
}), (_j = data$1 === null || data$1 === void 0 ? void 0 : data$1.allCountries) === null || _j === void 0 ? void 0 :
|
|
7661
5983
|
_j.map((c) => {
|
|
7662
5984
|
var _a, _b;
|
|
7663
5985
|
return (index.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } },
|
|
@@ -7666,42 +5988,42 @@ const UserInfoFormView = (props) => {
|
|
|
7666
5988
|
})),
|
|
7667
5989
|
index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", id: "phoneNumber", name: "/phoneNumber", value: formState.phoneNumber, validationError: ({ value }) => {
|
|
7668
5990
|
// Naive phone number validation
|
|
7669
|
-
|
|
7670
|
-
|
|
5991
|
+
utils$1.validateBillingField(/[a-zA-Z]+/, value) &&
|
|
5992
|
+
utils$1.formatErrorMessage(text.phoneNumber, text.error.fieldInvalidError);
|
|
7671
5993
|
}, disabled: states.disabled || states.isPartner }, (((_k = formState.errors) === null || _k === void 0 ? void 0 : _k.phoneNumber) ? {
|
|
7672
5994
|
class: classes.ErrorInput,
|
|
7673
|
-
helpText:
|
|
5995
|
+
helpText: utils$1.formatErrorMessage(text.phoneNumber, formState.errors.phoneNumber),
|
|
7674
5996
|
}
|
|
7675
5997
|
: {}), { required: true })))),
|
|
7676
5998
|
index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", label: text.address, id: "address", name: "/address", value: formState.address, validationError: ({ value }) =>
|
|
7677
5999
|
// Checks for non-ASCII characters
|
|
7678
|
-
!
|
|
7679
|
-
|
|
6000
|
+
!utils$1.validateBillingField(/^[\x20-\xFF]+$/, value) &&
|
|
6001
|
+
utils$1.formatErrorMessage(text.address, text.error.invalidCharacterError), disabled: states.disabled || states.isPartner }, (((_l = formState.errors) === null || _l === void 0 ? void 0 : _l.address) ? {
|
|
7680
6002
|
class: classes.ErrorInput,
|
|
7681
|
-
helpText:
|
|
6003
|
+
helpText: utils$1.formatErrorMessage(text.address, formState.errors.address),
|
|
7682
6004
|
}
|
|
7683
6005
|
: {}), { required: true })),
|
|
7684
6006
|
index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", label: text.city, id: "city", name: "/city", value: formState.city, validationError: ({ value }) =>
|
|
7685
6007
|
// Checks for non-ASCII characters
|
|
7686
|
-
!
|
|
7687
|
-
|
|
6008
|
+
!utils$1.validateBillingField(/^[\x20-\xFF]+$/, value) &&
|
|
6009
|
+
utils$1.formatErrorMessage(text.city, text.error.invalidCharacterError), disabled: states.disabled || states.isPartner }, (((_m = formState.errors) === null || _m === void 0 ? void 0 : _m.city) ? {
|
|
7688
6010
|
class: classes.ErrorInput,
|
|
7689
|
-
helpText:
|
|
6011
|
+
helpText: utils$1.formatErrorMessage(text.city, formState.errors.city),
|
|
7690
6012
|
}
|
|
7691
6013
|
: {}), { required: true })),
|
|
7692
6014
|
!states.hideState && (index.h("sl-select", Object.assign({ label: regionLabel, exportparts: "label: input-label, base: input-base", id: "state", name: "/state", value: formState.state, disabled: states.disabled || states.isPartner }, (((_o = formState.errors) === null || _o === void 0 ? void 0 : _o.state) ? {
|
|
7693
6015
|
class: classes.ErrorInput,
|
|
7694
|
-
helpText:
|
|
6016
|
+
helpText: utils$1.formatErrorMessage(text.state, formState.errors.state),
|
|
7695
6017
|
}
|
|
7696
|
-
: {}), { required: true }), (_p = data.regions) === null || _p === void 0 ? void 0 : _p.map((r) => (index.h("sl-menu-item", { value: r.value }, r.label))))),
|
|
6018
|
+
: {}), { required: true }), (_p = data$1.regions) === null || _p === void 0 ? void 0 : _p.map((r) => (index.h("sl-menu-item", { value: r.value }, r.label))))),
|
|
7697
6019
|
index.h("sl-input", Object.assign({ label: text.postalCode, exportparts: "label: input-label, base: input-base", id: "postalCode", name: "/postalCode", value: formState.postalCode, disabled: states.disabled || states.isPartner }, (((_q = formState.errors) === null || _q === void 0 ? void 0 : _q.postalCode) ? {
|
|
7698
6020
|
class: classes.ErrorInput,
|
|
7699
|
-
helpText:
|
|
6021
|
+
helpText: utils$1.formatErrorMessage(text.postalCode, formState.errors.postalCode),
|
|
7700
6022
|
}
|
|
7701
6023
|
: {}), { required: true })),
|
|
7702
6024
|
index.h("sl-select", Object.assign({ id: "currency", exportparts: "label: input-label, base: input-base", name: "/currency", label: text.currency, menu: true, value: formState.currency, disabled: states.disabled || states.isPartner, helpText: text.currencyHelpText }, (((_r = formState.errors) === null || _r === void 0 ? void 0 : _r.currency) ? {
|
|
7703
6025
|
class: classes.ErrorInput,
|
|
7704
|
-
helpText:
|
|
6026
|
+
helpText: utils$1.formatErrorMessage(text.currency, formState.errors.currency),
|
|
7705
6027
|
}
|
|
7706
6028
|
: {}), { required: true, ref: (el) => (refs.currencyRef.current = el) }),
|
|
7707
6029
|
index.h("sl-input", { class: classes.SearchInput, placeholder: text.searchForCurrencyText, onKeyDown: (e) => {
|
|
@@ -7709,11 +6031,11 @@ const UserInfoFormView = (props) => {
|
|
|
7709
6031
|
e.stopPropagation();
|
|
7710
6032
|
}, "onSl-input": (e) => {
|
|
7711
6033
|
callbacks.setCurrencySearch(e.target.value);
|
|
7712
|
-
} }), (_s = data === null || data === void 0 ? void 0 : data.currencies) === null || _s === void 0 ? void 0 :
|
|
6034
|
+
} }), (_s = data$1 === null || data$1 === void 0 ? void 0 : data$1.currencies) === null || _s === void 0 ? void 0 :
|
|
7713
6035
|
_s.map((c) => (index.h("sl-menu-item", { value: c.currencyCode },
|
|
7714
6036
|
c.currencyCode,
|
|
7715
6037
|
" - ",
|
|
7716
|
-
c.displayName))), (_t = data === null || data === void 0 ? void 0 : data.allCurrencies) === null || _t === void 0 ? void 0 :
|
|
6038
|
+
c.displayName))), (_t = data$1 === null || data$1 === void 0 ? void 0 : data$1.allCurrencies) === null || _t === void 0 ? void 0 :
|
|
7717
6039
|
_t.map((c) => (index.h("sl-menu-item", { value: c.currencyCode, style: { display: "none" } },
|
|
7718
6040
|
c.currencyCode,
|
|
7719
6041
|
" - ",
|
|
@@ -7722,7 +6044,7 @@ const UserInfoFormView = (props) => {
|
|
|
7722
6044
|
index.h("sl-checkbox", { exportparts: "label: input-label, base: input-base", checked: formState.allowBankingCollection === true, "onSl-change": (e) => {
|
|
7723
6045
|
e.target.value = e.target.checked;
|
|
7724
6046
|
}, disabled: states.isPartner ? false : states.disabled, required: true, value: formState.allowBankingCollection, id: "allowBankingCollection", name: "/allowBankingCollection" }, bankingCollectionText),
|
|
7725
|
-
((_u = formState.errors) === null || _u === void 0 ? void 0 : _u.allowBankingCollection) && (index.h("p", { class: classes.ErrorText },
|
|
6047
|
+
((_u = formState.errors) === null || _u === void 0 ? void 0 : _u.allowBankingCollection) && (index.h("p", { class: classes.ErrorText }, utils$1.formatErrorMessage(text.termsAndConditionsLabel, formState.errors.allowBankingCollection))))),
|
|
7726
6048
|
index.h("sl-button", { type: "primary", disabled: states.isPartner ? false : states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton))))));
|
|
7727
6049
|
};
|
|
7728
6050
|
|
|
@@ -7731,12 +6053,12 @@ function useUserInfoForm(props) {
|
|
|
7731
6053
|
const currencyRef = stencilHooks_module.useRef(undefined);
|
|
7732
6054
|
const phoneCountryRef = stencilHooks_module.useRef(undefined);
|
|
7733
6055
|
const formRef = stencilHooks_module.useRef(null);
|
|
7734
|
-
const context = index_module.Fn(TAX_FORM_CONTEXT_NAMESPACE);
|
|
7735
|
-
const countries = index_module.Fn(SORTED_COUNTRIES_NAMESPACE);
|
|
7736
|
-
const [step, setStep] = index_module.Pn(TAX_CONTEXT_NAMESPACE);
|
|
7737
|
-
const [userFormContext, setUserFormContext] = index_module.Pn(USER_FORM_CONTEXT_NAMESPACE);
|
|
7738
|
-
const { data, loading, errors: userError, } = index_module.$n(USER_QUERY_NAMESPACE);
|
|
7739
|
-
const _currencies = index_module.Fn(CURRENCIES_NAMESPACE);
|
|
6056
|
+
const context = index_module.Fn(data.TAX_FORM_CONTEXT_NAMESPACE);
|
|
6057
|
+
const countries = index_module.Fn(data.SORTED_COUNTRIES_NAMESPACE);
|
|
6058
|
+
const [step, setStep] = index_module.Pn(data.TAX_CONTEXT_NAMESPACE);
|
|
6059
|
+
const [userFormContext, setUserFormContext] = index_module.Pn(data.USER_FORM_CONTEXT_NAMESPACE);
|
|
6060
|
+
const { data: data$1, loading, errors: userError, } = index_module.$n(data.USER_QUERY_NAMESPACE);
|
|
6061
|
+
const _currencies = index_module.Fn(data.CURRENCIES_NAMESPACE);
|
|
7740
6062
|
const currencies = stencilHooks_module.useMemo(() => [...(_currencies || [])].sort((a, b) => a.displayName.localeCompare(b.displayName)), [_currencies]);
|
|
7741
6063
|
const [countrySearch, setCountrySearch] = stencilHooks_module.useState("");
|
|
7742
6064
|
const [phoneCountrySearch, setPhoneCountrySearch] = stencilHooks_module.useState("");
|
|
@@ -7747,11 +6069,11 @@ function useUserInfoForm(props) {
|
|
|
7747
6069
|
const [formErrors, setErrors] = stencilHooks_module.useState({});
|
|
7748
6070
|
stencilHooks_module.useEffect(() => {
|
|
7749
6071
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
7750
|
-
const user = data === null || data === void 0 ? void 0 : data.user;
|
|
6072
|
+
const user = data$1 === null || data$1 === void 0 ? void 0 : data$1.user;
|
|
7751
6073
|
if (!user || step !== "/1")
|
|
7752
6074
|
return;
|
|
7753
6075
|
// If form already filled out, skip initialising it
|
|
7754
|
-
if (
|
|
6076
|
+
if (utils$1.objectIsFull(userFormContext))
|
|
7755
6077
|
return;
|
|
7756
6078
|
// Prefer MI email if it was verified before this
|
|
7757
6079
|
const email = ((_a = user.managedIdentity) === null || _a === void 0 ? void 0 : _a.emailVerified) ? user.managedIdentity.email
|
|
@@ -7788,7 +6110,7 @@ function useUserInfoForm(props) {
|
|
|
7788
6110
|
postalCode: (_k = user.customFields) === null || _k === void 0 ? void 0 : _k.postalCode,
|
|
7789
6111
|
});
|
|
7790
6112
|
}
|
|
7791
|
-
}, [data, step, userFormContext]);
|
|
6113
|
+
}, [data$1, step, userFormContext]);
|
|
7792
6114
|
const onFormChange = (field, e) => {
|
|
7793
6115
|
var _a, _b;
|
|
7794
6116
|
const value = (_b = (_a = e.detail) === null || _a === void 0 ? void 0 : _a.item) === null || _b === void 0 ? void 0 : _b.__value;
|
|
@@ -7880,7 +6202,7 @@ function useUserInfoForm(props) {
|
|
|
7880
6202
|
}
|
|
7881
6203
|
const hasStates = ["ES", "AU", "US", "CA"].includes(userFormContext.countryCode);
|
|
7882
6204
|
const regionObj = hasStates
|
|
7883
|
-
?
|
|
6205
|
+
? IndirectTaxDetailsView.ADDRESS_REGIONS[userFormContext === null || userFormContext === void 0 ? void 0 : userFormContext.countryCode]
|
|
7884
6206
|
: {};
|
|
7885
6207
|
return {
|
|
7886
6208
|
setStep: setStep,
|
|
@@ -7913,8 +6235,8 @@ function useUserInfoForm(props) {
|
|
|
7913
6235
|
disabled: loading,
|
|
7914
6236
|
loadingError: !!(userError === null || userError === void 0 ? void 0 : userError.message),
|
|
7915
6237
|
loading: loading,
|
|
7916
|
-
isPartner: !!((_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),
|
|
7917
|
-
isUser: !!((_d = (_c = data === null || data === void 0 ? void 0 : data.user) === null || _c === void 0 ? void 0 : _c.impactConnection) === null || _d === void 0 ? void 0 : _d.user),
|
|
6238
|
+
isPartner: !!((_b = (_a = data$1 === null || data$1 === void 0 ? void 0 : data$1.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher),
|
|
6239
|
+
isUser: !!((_d = (_c = data$1 === null || data$1 === void 0 ? void 0 : data$1.user) === null || _c === void 0 ? void 0 : _c.impactConnection) === null || _d === void 0 ? void 0 : _d.user),
|
|
7918
6240
|
formState: {
|
|
7919
6241
|
...userFormContext,
|
|
7920
6242
|
errors: formErrors,
|
|
@@ -8077,6 +6399,13 @@ const TaxForm = class {
|
|
|
8077
6399
|
* @uiName Support link text
|
|
8078
6400
|
*/
|
|
8079
6401
|
this.supportLink = "support team";
|
|
6402
|
+
/**
|
|
6403
|
+
* @uiName States
|
|
6404
|
+
* @parentState { "parent": "sqm-tax-and-cash", "title": "Step 1" }
|
|
6405
|
+
* @componentState { "title": "Errors", "props": { "states": { "loadingError": true, "formState": { "errors": { "email": true, "firstName": true, "lastName": true, "countryCode": true, "currency": true } } } } }
|
|
6406
|
+
* @componentState { "title": "Loading", "props": { "states": { "loading": true } } }
|
|
6407
|
+
*/
|
|
6408
|
+
this.stateController = "{}";
|
|
8080
6409
|
stencilHooks_module.h$1(this);
|
|
8081
6410
|
}
|
|
8082
6411
|
disconnectedCallback() { }
|
|
@@ -8097,19 +6426,20 @@ const TaxForm = class {
|
|
|
8097
6426
|
}
|
|
8098
6427
|
render() {
|
|
8099
6428
|
const props = index_module.isDemo() ? useDemoUserInfoForm(this) : useUserInfoForm(this);
|
|
8100
|
-
return (index.h(
|
|
6429
|
+
return (index.h(UserInfoFormView, { data: props.data,
|
|
8101
6430
|
// @ts-ignore
|
|
8102
6431
|
states: props.states, callbacks: {
|
|
8103
6432
|
...props.callbacks,
|
|
8104
6433
|
onSubmit: props.onSubmit,
|
|
8105
|
-
}, text: props.text, refs: props.refs }))
|
|
6434
|
+
}, text: props.text, refs: props.refs }));
|
|
8106
6435
|
}
|
|
8107
6436
|
};
|
|
8108
6437
|
function useDemoUserInfoForm(props) {
|
|
8109
|
-
const setStep = index_module.En(TAX_CONTEXT_NAMESPACE);
|
|
6438
|
+
const setStep = index_module.En(data.TAX_CONTEXT_NAMESPACE);
|
|
6439
|
+
// @ts-ignore
|
|
8110
6440
|
return cjs.cjs({
|
|
8111
6441
|
setStep,
|
|
8112
|
-
onSubmit: () => {
|
|
6442
|
+
onSubmit: async () => {
|
|
8113
6443
|
setStep("/2");
|
|
8114
6444
|
},
|
|
8115
6445
|
onRadioClick: () => { },
|
|
@@ -8149,23 +6479,16 @@ function useDemoUserInfoForm(props) {
|
|
|
8149
6479
|
},
|
|
8150
6480
|
},
|
|
8151
6481
|
},
|
|
8152
|
-
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
6482
|
+
}, props.demoData || parseStates.parseStates(props.stateController) || {}, { arrayMerge: (_, a) => a });
|
|
8153
6483
|
}
|
|
8154
6484
|
|
|
8155
6485
|
exports.sqm_banking_info_form = BankingInfoForm;
|
|
8156
|
-
exports.sqm_code_verification = WidgetCodeVerification;
|
|
8157
6486
|
exports.sqm_docusign_form = DocusignForm;
|
|
8158
6487
|
exports.sqm_indirect_tax_form = IndirectTaxForm;
|
|
8159
6488
|
exports.sqm_invoice_table = InvoiceTable;
|
|
8160
|
-
exports.sqm_invoice_table_data_cell = InvoiceTableDataCell;
|
|
8161
6489
|
exports.sqm_invoice_table_data_column = InvoiceTableDataColumn;
|
|
8162
|
-
exports.sqm_invoice_table_date_cell = RewardTableDateCell;
|
|
8163
6490
|
exports.sqm_invoice_table_date_column = InvoiceTableDateColumn;
|
|
8164
|
-
exports.sqm_invoice_table_download_cell = InvoiceTableDownloadCell;
|
|
8165
6491
|
exports.sqm_invoice_table_download_column = InvoiceTableGenericColumn;
|
|
8166
6492
|
exports.sqm_payout_details_card = PayoutDetailsCard;
|
|
8167
|
-
exports.sqm_table_cell = TableCell;
|
|
8168
|
-
exports.sqm_table_row = TableRow;
|
|
8169
|
-
exports.sqm_tax_and_cash = TaxAndCashMonolith;
|
|
8170
6493
|
exports.sqm_tax_and_cash_dashboard = TaxAndCashDashboard;
|
|
8171
6494
|
exports.sqm_user_info_form = TaxForm;
|