@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/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js
CHANGED
|
@@ -2,9 +2,9 @@ import { isDemo } from "@saasquatch/component-boilerplate";
|
|
|
2
2
|
import { withHooks } from "@saasquatch/stencil-hooks";
|
|
3
3
|
import { Component, Host, Prop, h } from "@stencil/core";
|
|
4
4
|
import deepmerge from "deepmerge";
|
|
5
|
+
import { getProps } from "../../../utils/utils";
|
|
5
6
|
import { PayoutDetailsCardView } from "./sqm-payout-details-card-view";
|
|
6
7
|
import { usePayoutDetailsCard } from "./usePayoutDetailsCard";
|
|
7
|
-
import { getProps } from "../../../utils/utils";
|
|
8
8
|
/**
|
|
9
9
|
* @uiName Payout Details Card
|
|
10
10
|
* @exampleGroup Tax and Cash Components
|
|
@@ -31,6 +31,10 @@ export class PayoutDetailsCard {
|
|
|
31
31
|
* @uiName Payout missing information subtext
|
|
32
32
|
*/
|
|
33
33
|
this.payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
|
|
34
|
+
/**
|
|
35
|
+
* @componentState { "title": "Loading", "props": { "states": { "loading": true } } }
|
|
36
|
+
*/
|
|
37
|
+
this.stateController = "{}";
|
|
34
38
|
withHooks(this);
|
|
35
39
|
}
|
|
36
40
|
disconnectedCallback() { }
|
|
@@ -134,6 +138,27 @@ export class PayoutDetailsCard {
|
|
|
134
138
|
"reflect": false,
|
|
135
139
|
"defaultValue": "\"Missing banking information, go to Impact.com to resolve.\""
|
|
136
140
|
},
|
|
141
|
+
"stateController": {
|
|
142
|
+
"type": "string",
|
|
143
|
+
"mutable": false,
|
|
144
|
+
"complexType": {
|
|
145
|
+
"original": "string",
|
|
146
|
+
"resolved": "string",
|
|
147
|
+
"references": {}
|
|
148
|
+
},
|
|
149
|
+
"required": false,
|
|
150
|
+
"optional": true,
|
|
151
|
+
"docs": {
|
|
152
|
+
"tags": [{
|
|
153
|
+
"text": "{ \"title\": \"Loading\", \"props\": { \"states\": { \"loading\": true } } }",
|
|
154
|
+
"name": "componentState"
|
|
155
|
+
}],
|
|
156
|
+
"text": ""
|
|
157
|
+
},
|
|
158
|
+
"attribute": "state-controller",
|
|
159
|
+
"reflect": false,
|
|
160
|
+
"defaultValue": "\"{}\""
|
|
161
|
+
},
|
|
137
162
|
"demoData": {
|
|
138
163
|
"type": "unknown",
|
|
139
164
|
"mutable": false,
|
package/dist/collection/components/tax-and-cash/sqm-payout-details-card/usePayoutDetailsCard.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { useParentQueryValue } from "@saasquatch/component-boilerplate";
|
|
1
2
|
import { DateTime } from "luxon";
|
|
2
3
|
import { intl } from "../../../global/global";
|
|
3
|
-
import { USER_QUERY_NAMESPACE } from "../
|
|
4
|
-
import { useParentQueryValue } from "@saasquatch/component-boilerplate";
|
|
4
|
+
import { USER_QUERY_NAMESPACE } from "../data";
|
|
5
5
|
export function usePayoutDetailsCard(props) {
|
|
6
6
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
7
7
|
const { data, loading } = useParentQueryValue(USER_QUERY_NAMESPACE);
|
|
@@ -23,17 +23,20 @@ const GET_USER_STATUS = gql `
|
|
|
23
23
|
}
|
|
24
24
|
`;
|
|
25
25
|
export function getStatus(data) {
|
|
26
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
26
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
27
27
|
const account = (_b = (_a = data.user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) === null || _b === void 0 ? void 0 : _b.payoutsAccount;
|
|
28
28
|
if (!((_d = (_c = data.user) === null || _c === void 0 ? void 0 : _c.impactConnection) === null || _d === void 0 ? void 0 : _d.connected) || !account)
|
|
29
29
|
return "INFORMATION_REQUIRED";
|
|
30
|
-
if ((_e = account.holdReasons) === null || _e === void 0 ? void 0 : _e.includes("
|
|
30
|
+
if (((_e = account.holdReasons) === null || _e === void 0 ? void 0 : _e.length) === 1 && ((_f = account.holdReasons) === null || _f === void 0 ? void 0 : _f.includes("NEW_PAYEE_REVIEW"))) {
|
|
31
|
+
return "DONE";
|
|
32
|
+
}
|
|
33
|
+
if ((_g = account.holdReasons) === null || _g === void 0 ? void 0 : _g.includes("IDV_CHECK_REQUIRED"))
|
|
31
34
|
return "VERIFICATION:REQUIRED";
|
|
32
|
-
if ((
|
|
35
|
+
if ((_h = account.holdReasons) === null || _h === void 0 ? void 0 : _h.includes("IDV_CHECK_REQUIRED_INTERNAL"))
|
|
33
36
|
return "VERIFICATION:INTERNAL";
|
|
34
|
-
if ((
|
|
37
|
+
if ((_j = account.holdReasons) === null || _j === void 0 ? void 0 : _j.includes("IDV_CHECK_REVIEW_INTERNAL"))
|
|
35
38
|
return "VERIFICATION:REVIEW";
|
|
36
|
-
if ((
|
|
39
|
+
if ((_k = account.holdReasons) === null || _k === void 0 ? void 0 : _k.includes("IDV_CHECK_FAILED_INTERNAL"))
|
|
37
40
|
return "VERIFICATION:FAILED";
|
|
38
41
|
if (account.hold)
|
|
39
42
|
return "HOLD";
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
+
import { isDemo, useParentState } from "@saasquatch/component-boilerplate";
|
|
1
2
|
import { withHooks } from "@saasquatch/stencil-hooks";
|
|
2
3
|
import { Component, Prop, h } from "@stencil/core";
|
|
3
4
|
import deepmerge from "deepmerge";
|
|
5
|
+
import { parseStates } from "../../../utils/parseStates";
|
|
4
6
|
import { getProps } from "../../../utils/utils";
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
+
import { TAX_CONTEXT_NAMESPACE } from "../data";
|
|
8
|
+
import { ErrorView } from "./ErrorView";
|
|
7
9
|
import { extractProps } from "./extractProps";
|
|
10
|
+
import LoadingView from "./LoadingView";
|
|
8
11
|
import { useTaxAndCash } from "./useTaxAndCash";
|
|
9
|
-
import { isDemo, useParentState } from "@saasquatch/component-boilerplate";
|
|
10
|
-
import { ErrorView } from "./ErrorView";
|
|
11
12
|
/**
|
|
12
13
|
* @uiName Tax and Cash
|
|
13
14
|
* @exampleGroup Tax and Cash
|
|
@@ -973,6 +974,15 @@ export class TaxAndCashMonolith {
|
|
|
973
974
|
* @uiGroup General Form Properties
|
|
974
975
|
*/
|
|
975
976
|
this.supportLink = "support team";
|
|
977
|
+
/**
|
|
978
|
+
* @uiName Monolith States
|
|
979
|
+
* @componentState { "title": "Step 1", "props": { "step": "/1" }, "dependencies": ["sqm-user-info-form"] }
|
|
980
|
+
* @componentState { "title": "Step 2", "props": { "step": "/2" }, "dependencies": ["sqm-indirect-tax-form"] }
|
|
981
|
+
* @componentState { "title": "Step 3", "props": { "step": "/3" }, "dependencies": ["sqm-docusign-form"] }
|
|
982
|
+
* @componentState { "title": "Step 4", "props": { "step": "/4" }, "dependencies": ["sqm-banking-info-form"] }
|
|
983
|
+
* @componentState { "title": "Dashboard", "props": { "step": "/dashboard" }, "dependencies": ["sqm-tax-and-cash-dashboard"] }
|
|
984
|
+
*/
|
|
985
|
+
this.stateController = "{}";
|
|
976
986
|
withHooks(this);
|
|
977
987
|
}
|
|
978
988
|
disconnectedCallback() { }
|
|
@@ -1017,21 +1027,23 @@ export class TaxAndCashMonolith {
|
|
|
1017
1027
|
h("hr", null)));
|
|
1018
1028
|
})));
|
|
1019
1029
|
}
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1030
|
+
const getStep = () => {
|
|
1031
|
+
switch (props.step) {
|
|
1032
|
+
case "/1":
|
|
1033
|
+
return (h("sqm-user-info-form", Object.assign({}, this.getGeneralStepTextProps("step1_"), extractProps(props, "sqm-user-info-form_"))));
|
|
1034
|
+
case "/2":
|
|
1035
|
+
return (h("sqm-indirect-tax-form", Object.assign({}, this.getGeneralStepTextProps("step2_"))));
|
|
1036
|
+
case "/3":
|
|
1037
|
+
return (h("sqm-docusign-form", Object.assign({}, this.getGeneralStepTextProps("step3_"))));
|
|
1038
|
+
case "/4":
|
|
1039
|
+
return (h("sqm-banking-info-form", Object.assign({}, this.getGeneralStepTextProps("step4_"))));
|
|
1040
|
+
case "/dashboard":
|
|
1041
|
+
return (h("sqm-tax-and-cash-dashboard", Object.assign({}, this.getGeneralStepTextProps("dashboard_"), extractProps(props, "sqm-tax-and-cash-dashboard_"))));
|
|
1042
|
+
case "/error":
|
|
1043
|
+
return (h(ErrorView, { loadingErrorAlertHeader: this.loadingErrorAlertHeader, loadingErrorAlertDescription: this.loadingErrorAlertDescription }));
|
|
1044
|
+
}
|
|
1045
|
+
};
|
|
1046
|
+
return getStep() || h(LoadingView, null);
|
|
1035
1047
|
}
|
|
1036
1048
|
static get is() { return "sqm-tax-and-cash"; }
|
|
1037
1049
|
static get encapsulation() { return "shadow"; }
|
|
@@ -5014,20 +5026,55 @@ export class TaxAndCashMonolith {
|
|
|
5014
5026
|
"reflect": false,
|
|
5015
5027
|
"defaultValue": "\"support team\""
|
|
5016
5028
|
},
|
|
5029
|
+
"stateController": {
|
|
5030
|
+
"type": "string",
|
|
5031
|
+
"mutable": false,
|
|
5032
|
+
"complexType": {
|
|
5033
|
+
"original": "string",
|
|
5034
|
+
"resolved": "string",
|
|
5035
|
+
"references": {}
|
|
5036
|
+
},
|
|
5037
|
+
"required": false,
|
|
5038
|
+
"optional": false,
|
|
5039
|
+
"docs": {
|
|
5040
|
+
"tags": [{
|
|
5041
|
+
"text": "Monolith States",
|
|
5042
|
+
"name": "uiName"
|
|
5043
|
+
}, {
|
|
5044
|
+
"text": "{ \"title\": \"Step 1\", \"props\": { \"step\": \"/1\" }, \"dependencies\": [\"sqm-user-info-form\"] }",
|
|
5045
|
+
"name": "componentState"
|
|
5046
|
+
}, {
|
|
5047
|
+
"text": "{ \"title\": \"Step 2\", \"props\": { \"step\": \"/2\" }, \"dependencies\": [\"sqm-indirect-tax-form\"] }",
|
|
5048
|
+
"name": "componentState"
|
|
5049
|
+
}, {
|
|
5050
|
+
"text": "{ \"title\": \"Step 3\", \"props\": { \"step\": \"/3\" }, \"dependencies\": [\"sqm-docusign-form\"] }",
|
|
5051
|
+
"name": "componentState"
|
|
5052
|
+
}, {
|
|
5053
|
+
"text": "{ \"title\": \"Step 4\", \"props\": { \"step\": \"/4\" }, \"dependencies\": [\"sqm-banking-info-form\"] }",
|
|
5054
|
+
"name": "componentState"
|
|
5055
|
+
}, {
|
|
5056
|
+
"text": "{ \"title\": \"Dashboard\", \"props\": { \"step\": \"/dashboard\" }, \"dependencies\": [\"sqm-tax-and-cash-dashboard\"] }",
|
|
5057
|
+
"name": "componentState"
|
|
5058
|
+
}],
|
|
5059
|
+
"text": ""
|
|
5060
|
+
},
|
|
5061
|
+
"attribute": "state-controller",
|
|
5062
|
+
"reflect": false,
|
|
5063
|
+
"defaultValue": "\"{}\""
|
|
5064
|
+
},
|
|
5017
5065
|
"demoData": {
|
|
5018
5066
|
"type": "unknown",
|
|
5019
5067
|
"mutable": false,
|
|
5020
5068
|
"complexType": {
|
|
5021
|
-
"original": "DemoData<
|
|
5022
|
-
"resolved": "{ loading?: boolean; setStep?: (value: string) => void; step?: string; context?: TaxContext; namespace?: string; }",
|
|
5069
|
+
"original": "DemoData<TaxAndCashMonolith>",
|
|
5070
|
+
"resolved": "{ step1_firstName?: string; step1_lastName?: string; step1_email?: string; step1_country?: string; step1_phoneNumber?: string; step1_address?: string; step1_city?: string; step1_state?: string; step1_province?: string; step1_region?: string; step1_postalCode?: string; step1_currency?: string; step1_currencyHelpText?: string; step1_allowBankingCollection?: string; step1_personalInformation?: string; step1_termsAndConditionsLabel?: string; step1_termsAndConditionsLink?: string; step1_searchForCurrencyText?: string; step2_indirectTax?: string; step2_indirectTaxDescription?: string; step2_indirectTaxDetails?: string; step2_otherRegion?: string; step2_otherRegionSubtext?: string; step2_notRegistered?: string; step2_notRegisteredSubtext?: string; step2_selectedRegion?: string; step2_indirectTaxNumber?: string; step2_province?: string; step2_indirectTaxNumberError?: string; step2_qstNumber?: string; step2_isRegisteredQST?: string; step2_isRegisteredSubRegionIncomeTax?: string; step2_subRegion?: string; step2_subRegionTaxNumberLabel?: string; step2_cannotChangeInfoAlert?: string; step3_taxForm?: string; step3_taxFormLabel?: string; step3_participantType?: string; step3_businessEntity?: string; step3_individualParticipant?: string; step3_taxFormDescription?: string; step3_taxFormDescriptionIndividualParticipant?: string; step3_taxFormDescriptionBusinessEntity?: string; step3_docusignExpired?: string; step3_docusignSessionWarning?: string; step3_docusignError?: string; step3_refreshButton?: string; step3_exitButton?: string; step4_taxAndPayouts?: string; step4_directlyToBankAccount?: string; step4_toPayPalAccount?: string; step4_paymentScheduleBalanceThreshold?: string; step4_paymentScheduleFixedDay?: string; step4_paymentDaySelectLabel?: string; step4_paymentThresholdSelectLabel?: string; step4_paymentDayFirstOfMonthLabelText?: string; step4_paymentDayFifteenthOfMonthLabelText?: string; step4_paymentMethod?: string; step4_paymentSchedule?: string; step4_paymentMethodSubtext?: string; step4_payPalInputLabel?: string; step4_bankLocationLabel?: string; step4_beneficiaryAccountNameLabel?: string; step4_bankAccountTypeLabel?: string; step4_checkingSelectItemLabel?: string; step4_savingsSelectItemLabel?: string; step4_bankAccountNumberLabel?: string; step4_ibanLabel?: string; step4_swiftCodeLabel?: string; step4_routingCodeLabel?: string; step4_bankNameLabel?: string; step4_classificationEntityLabel?: string; step4_businessSelectItemLabel?: string; step4_individualSelectItemLabel?: string; step4_foreignSelectItemLabel?: string; step4_classificationCPFLabel?: string; step4_patronymicNameLabel?: string; step4_voCodeLabel?: string; step4_agencyCodeLabel?: string; step4_branchCodeLabel?: string; step4_classificationLabel?: string; step4_taxPayerIdLabel?: string; step4_bankAddressLabel?: string; step4_bankCityLabel?: string; step4_bankStateLabel?: string; step4_bankPostalCodeLabel?: string; step4_eftWithdrawalLabel?: string; step4_fxWireProcessingFeeLabel?: string; step4_verifyEmailHeaderText?: string; step4_verifyEmailDescriptionText?: string; dashboard_statusTextActive?: string; dashboard_statusTextNotActive?: string; dashboard_statusTextNotVerified?: string; dashboard_badgeTextSubmittedOn?: string; dashboard_badgeTextSubmittedOnW8?: string; dashboard_badgeTextAwaitingReview?: string; dashboard_taxAlertHeaderNotActiveW9?: string; dashboard_taxAlertHeaderNotActiveW8?: string; dashboard_taxAlertNotActiveMessageW9?: string; dashboard_taxAlertNotActiveMessageW8?: string; dashboard_invalidForm?: string; dashboard_bankingInformationSectionHeader?: string; dashboard_taxDocumentSectionHeader?: string; dashboard_taxDocumentSectionSubHeader?: string; dashboard_noFormNeededSubtext?: string; dashboard_indirectTaxInfoSectionHeader?: string; dashboard_indirectTaxInfoCanada?: string; dashboard_indirectTaxInfoOtherCountry?: string; dashboard_indirectTaxInfoSpain?: string; dashboard_indirectTaxTooltipSupport?: string; dashboard_indirectTaxDetails?: string; dashboard_newFormButton?: string; dashboard_editPaymentInformationButton?: string; dashboard_notRegisteredForTax?: string; dashboard_qstNumber?: string; dashboard_subRegionTaxNumber?: string; dashboard_statusBadgeText?: string; dashboard_thresholdPayoutText?: string; dashboard_accountText?: string; dashboard_invoiceColumnTitle?: string; dashboard_dateColumnTitle?: string; dashboard_earningsColumnTitle?: string; dashboard_indirectTaxColumnTitle?: string; dashboard_payoutFromImpact?: string; dashboard_earningsAfterTaxColumnTitle?: string; dashboard_payoutHoldAlertHeader?: string; dashboard_payoutHoldAlertDescription?: string; dashboard_payoutMissingInformationText?: string; dashboard_invoiceDescription?: string; dashboard_invoicePrevLabel?: string; dashboard_invoiceMoreLabel?: string; dashboard_invoiceHeader?: string; dashboard_invoiceEmptyStateHeader?: string; dashboard_invoiceEmptyStateText?: string; dashboard_replaceTaxFormModalHeader?: string; dashboard_replaceTaxFormModalBodyText?: string; dashboard_verificationRequiredHeader?: string; dashboard_verificationRequiredDescription?: string; dashboard_verificationRequiredInternalHeader?: string; dashboard_verificationRequiredInternalDescription?: string; dashboard_verificationReviewInternalHeader?: string; dashboard_verificationReviewInternalDescription?: string; dashboard_verificationFailedInternalHeader?: string; dashboard_verificationFailedInternalDescription?: string; dashboard_verificationRequiredButtonText?: string; formStep?: string; generalErrorTitle?: string; generalErrorDescription?: string; fieldRequiredError?: string; invalidCharacterError?: string; fieldInvalidError?: string; continueButton?: string; backButton?: string; cancelButton?: string; isPartnerAlertHeader?: string; isPartnerAlertDescription?: string; searchForCountryText?: string; loadingErrorAlertHeader?: string; loadingErrorAlertDescription?: string; taxAndPayoutsDescription?: string; supportLink?: string; stateController?: string; demoData?: Partial<Pick<TaxAndCashMonolith, \"step1_firstName\" | \"step1_lastName\" | \"step1_email\" | \"step1_country\" | \"step1_phoneNumber\" | \"step1_address\" | \"step1_city\" | \"step1_state\" | \"step1_province\" | \"step1_region\" | \"step1_postalCode\" | \"step1_currency\" | \"step1_currencyHelpText\" | \"step1_allowBankingCollection\" | \"step1_personalInformation\" | \"step1_termsAndConditionsLabel\" | \"step1_termsAndConditionsLink\" | \"step1_searchForCurrencyText\" | \"step2_indirectTax\" | \"step2_indirectTaxDescription\" | \"step2_indirectTaxDetails\" | \"step2_otherRegion\" | \"step2_otherRegionSubtext\" | \"step2_notRegistered\" | \"step2_notRegisteredSubtext\" | \"step2_selectedRegion\" | \"step2_indirectTaxNumber\" | \"step2_province\" | \"step2_indirectTaxNumberError\" | \"step2_qstNumber\" | \"step2_isRegisteredQST\" | \"step2_isRegisteredSubRegionIncomeTax\" | \"step2_subRegion\" | \"step2_subRegionTaxNumberLabel\" | \"step2_cannotChangeInfoAlert\" | \"step3_taxForm\" | \"step3_taxFormLabel\" | \"step3_participantType\" | \"step3_businessEntity\" | \"step3_individualParticipant\" | \"step3_taxFormDescription\" | \"step3_taxFormDescriptionIndividualParticipant\" | \"step3_taxFormDescriptionBusinessEntity\" | \"step3_docusignExpired\" | \"step3_docusignSessionWarning\" | \"step3_docusignError\" | \"step3_refreshButton\" | \"step3_exitButton\" | \"step4_taxAndPayouts\" | \"step4_directlyToBankAccount\" | \"step4_toPayPalAccount\" | \"step4_paymentScheduleBalanceThreshold\" | \"step4_paymentScheduleFixedDay\" | \"step4_paymentDaySelectLabel\" | \"step4_paymentThresholdSelectLabel\" | \"step4_paymentDayFirstOfMonthLabelText\" | \"step4_paymentDayFifteenthOfMonthLabelText\" | \"step4_paymentMethod\" | \"step4_paymentSchedule\" | \"step4_paymentMethodSubtext\" | \"step4_payPalInputLabel\" | \"step4_bankLocationLabel\" | \"step4_beneficiaryAccountNameLabel\" | \"step4_bankAccountTypeLabel\" | \"step4_checkingSelectItemLabel\" | \"step4_savingsSelectItemLabel\" | \"step4_bankAccountNumberLabel\" | \"step4_ibanLabel\" | \"step4_swiftCodeLabel\" | \"step4_routingCodeLabel\" | \"step4_bankNameLabel\" | \"step4_classificationEntityLabel\" | \"step4_businessSelectItemLabel\" | \"step4_individualSelectItemLabel\" | \"step4_foreignSelectItemLabel\" | \"step4_classificationCPFLabel\" | \"step4_patronymicNameLabel\" | \"step4_voCodeLabel\" | \"step4_agencyCodeLabel\" | \"step4_branchCodeLabel\" | \"step4_classificationLabel\" | \"step4_taxPayerIdLabel\" | \"step4_bankAddressLabel\" | \"step4_bankCityLabel\" | \"step4_bankStateLabel\" | \"step4_bankPostalCodeLabel\" | \"step4_eftWithdrawalLabel\" | \"step4_fxWireProcessingFeeLabel\" | \"step4_verifyEmailHeaderText\" | \"step4_verifyEmailDescriptionText\" | \"dashboard_statusTextActive\" | \"dashboard_statusTextNotActive\" | \"dashboard_statusTextNotVerified\" | \"dashboard_badgeTextSubmittedOn\" | \"dashboard_badgeTextSubmittedOnW8\" | \"dashboard_badgeTextAwaitingReview\" | \"dashboard_taxAlertHeaderNotActiveW9\" | \"dashboard_taxAlertHeaderNotActiveW8\" | \"dashboard_taxAlertNotActiveMessageW9\" | \"dashboard_taxAlertNotActiveMessageW8\" | \"dashboard_invalidForm\" | \"dashboard_bankingInformationSectionHeader\" | \"dashboard_taxDocumentSectionHeader\" | \"dashboard_taxDocumentSectionSubHeader\" | \"dashboard_noFormNeededSubtext\" | \"dashboard_indirectTaxInfoSectionHeader\" | \"dashboard_indirectTaxInfoCanada\" | \"dashboard_indirectTaxInfoOtherCountry\" | \"dashboard_indirectTaxInfoSpain\" | \"dashboard_indirectTaxTooltipSupport\" | \"dashboard_indirectTaxDetails\" | \"dashboard_newFormButton\" | \"dashboard_editPaymentInformationButton\" | \"dashboard_notRegisteredForTax\" | \"dashboard_qstNumber\" | \"dashboard_subRegionTaxNumber\" | \"dashboard_statusBadgeText\" | \"dashboard_thresholdPayoutText\" | \"dashboard_accountText\" | \"dashboard_invoiceColumnTitle\" | \"dashboard_dateColumnTitle\" | \"dashboard_earningsColumnTitle\" | \"dashboard_indirectTaxColumnTitle\" | \"dashboard_payoutFromImpact\" | \"dashboard_earningsAfterTaxColumnTitle\" | \"dashboard_payoutHoldAlertHeader\" | \"dashboard_payoutHoldAlertDescription\" | \"dashboard_payoutMissingInformationText\" | \"dashboard_invoiceDescription\" | \"dashboard_invoicePrevLabel\" | \"dashboard_invoiceMoreLabel\" | \"dashboard_invoiceHeader\" | \"dashboard_invoiceEmptyStateHeader\" | \"dashboard_invoiceEmptyStateText\" | \"dashboard_replaceTaxFormModalHeader\" | \"dashboard_replaceTaxFormModalBodyText\" | \"dashboard_verificationRequiredHeader\" | \"dashboard_verificationRequiredDescription\" | \"dashboard_verificationRequiredInternalHeader\" | \"dashboard_verificationRequiredInternalDescription\" | \"dashboard_verificationReviewInternalHeader\" | \"dashboard_verificationReviewInternalDescription\" | \"dashboard_verificationFailedInternalHeader\" | \"dashboard_verificationFailedInternalDescription\" | \"dashboard_verificationRequiredButtonText\" | \"formStep\" | \"generalErrorTitle\" | \"generalErrorDescription\" | \"fieldRequiredError\" | \"invalidCharacterError\" | \"fieldInvalidError\" | \"continueButton\" | \"backButton\" | \"cancelButton\" | \"isPartnerAlertHeader\" | \"isPartnerAlertDescription\" | \"searchForCountryText\" | \"loadingErrorAlertHeader\" | \"loadingErrorAlertDescription\" | \"taxAndPayoutsDescription\" | \"supportLink\" | \"stateController\" | \"demoData\" | \"disconnectedCallback\" | \"getGeneralStepTextProps\" | \"render\">>; disconnectedCallback?: () => void; getGeneralStepTextProps?: (prefix: string) => PickPrefix<TaxAndCashMonolith, string> & { generalErrorTitle: string; generalErrorDescription: string; fieldRequiredError: string; invalidCharacterError: string; fieldInvalidError: string; continueButton: string; backButton: string; cancelButton: string; isPartnerAlertHeader: string; isPartnerAlertDescription: string; loadingErrorAlertHeader: string; loadingErrorAlertDescription: string; taxAndPayoutsDescription: string; searchForCountryText: string; formStep: string; supportLink: string; }; render?: () => any; }",
|
|
5023
5071
|
"references": {
|
|
5024
5072
|
"DemoData": {
|
|
5025
5073
|
"location": "import",
|
|
5026
5074
|
"path": "../../../global/demo"
|
|
5027
5075
|
},
|
|
5028
|
-
"
|
|
5029
|
-
"location": "
|
|
5030
|
-
"path": "./useTaxAndCash"
|
|
5076
|
+
"TaxAndCashMonolith": {
|
|
5077
|
+
"location": "global"
|
|
5031
5078
|
}
|
|
5032
5079
|
}
|
|
5033
5080
|
},
|
|
@@ -5037,9 +5084,6 @@ export class TaxAndCashMonolith {
|
|
|
5037
5084
|
"tags": [{
|
|
5038
5085
|
"text": undefined,
|
|
5039
5086
|
"name": "undocumented"
|
|
5040
|
-
}, {
|
|
5041
|
-
"text": "object",
|
|
5042
|
-
"name": "uiType"
|
|
5043
5087
|
}],
|
|
5044
5088
|
"text": ""
|
|
5045
5089
|
}
|
|
@@ -5051,8 +5095,13 @@ function useDemoTaxAndCash(props) {
|
|
|
5051
5095
|
namespace: TAX_CONTEXT_NAMESPACE,
|
|
5052
5096
|
initialValue: "/1",
|
|
5053
5097
|
});
|
|
5098
|
+
console.log("PROPS", props);
|
|
5099
|
+
const states = parseStates(props.stateController);
|
|
5100
|
+
const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-tax-and-cash"
|
|
5101
|
+
? { ...prev, ...states[key] }
|
|
5102
|
+
: { ...prev, [`${key}_stateController`]: states[key] }, {});
|
|
5054
5103
|
return deepmerge({
|
|
5055
5104
|
step,
|
|
5056
5105
|
setStep,
|
|
5057
|
-
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
5106
|
+
}, props.demoData || formatted || {}, { arrayMerge: (_, a) => a });
|
|
5058
5107
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getContextValueName, useHost, useLocale, useParentQuery, useParentState, useUserIdentity, } from "@saasquatch/component-boilerplate";
|
|
2
2
|
import { useEffect, useMemo } from "@saasquatch/universal-hooks";
|
|
3
|
+
import { COUNTRIES_NAMESPACE, COUNTRIES_QUERY_NAMESPACE, CURRENCIES_NAMESPACE, CURRENCIES_QUERY_NAMESPACE, FINANCE_NETWORK_SETTINGS_NAMESPACE, GET_COUNTRIES, GET_CURRENCIES, GET_FINANCE_NETWORK_SETTINGS, GET_USER, SORTED_COUNTRIES_NAMESPACE, TAX_CONTEXT_NAMESPACE, TAX_FORM_CONTEXT_NAMESPACE, USER_FORM_CONTEXT_NAMESPACE, USER_QUERY_NAMESPACE, } from "../data";
|
|
3
4
|
import { getCountryObj } from "../utils";
|
|
4
|
-
import { COUNTRIES_NAMESPACE, COUNTRIES_QUERY_NAMESPACE, CURRENCIES_NAMESPACE, CURRENCIES_QUERY_NAMESPACE, FINANCE_NETWORK_SETTINGS_NAMESPACE, GET_COUNTRIES, GET_CURRENCIES, GET_FINANCE_NETWORK_SETTINGS, GET_USER, SORTED_COUNTRIES_NAMESPACE, TAX_CONTEXT_NAMESPACE, TAX_FORM_CONTEXT_NAMESPACE, USER_FORM_CONTEXT_NAMESPACE, USER_QUERY_NAMESPACE, } from "./data";
|
|
5
5
|
function getCurrentStep(user) {
|
|
6
6
|
var _a, _b;
|
|
7
7
|
if (!((_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.connected) || !((_b = user.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher)) {
|
|
@@ -2,6 +2,7 @@ import { isDemo } from "@saasquatch/component-boilerplate";
|
|
|
2
2
|
import { withHooks } from "@saasquatch/stencil-hooks";
|
|
3
3
|
import { Component, h, Host, Prop } from "@stencil/core";
|
|
4
4
|
import deepmerge from "deepmerge";
|
|
5
|
+
import { parseStates } from "../../../utils/parseStates";
|
|
5
6
|
import { getProps } from "../../../utils/utils";
|
|
6
7
|
import { TaxAndCashDashboardView } from "./sqm-tax-and-cash-dashboard-view";
|
|
7
8
|
import { useTaxAndCashDashboard, } from "./useTaxAndCashDashboard";
|
|
@@ -314,6 +315,16 @@ export class TaxAndCashDashboard {
|
|
|
314
315
|
* @uiName Cancel button label
|
|
315
316
|
*/
|
|
316
317
|
this.cancelButton = "Cancel";
|
|
318
|
+
/**
|
|
319
|
+
* @parentState { "parent": "sqm-tax-and-cash", "title": "Dashboard" }
|
|
320
|
+
* @componentState { "title": "Default", "props": { } }
|
|
321
|
+
* @componentState { "title": "Verification Required", "props": { "states": { "payoutStatus": "VERIFICATION:REQUIRED" } } }
|
|
322
|
+
* @componentState { "title": "Internal Verification Required", "props": { "states": { "payoutStatus": "VERIFICATION:INTERNAL" } } }
|
|
323
|
+
* @componentState { "title": "Review in progress", "props": { "states": { "payoutStatus": "VERIFICATION:REVIEW" } } }
|
|
324
|
+
* @componentState { "title": "Verification failed", "props": { "states": { "payoutStatus": "VERIFICATION:FAILED" } } }
|
|
325
|
+
* @componentState { "title": "Payout hold", "props": { "states": { "payoutStatus": "HOLD" } } }
|
|
326
|
+
*/
|
|
327
|
+
this.stateController = "{}";
|
|
317
328
|
withHooks(this);
|
|
318
329
|
}
|
|
319
330
|
disconnectedCallback() { }
|
|
@@ -1691,6 +1702,45 @@ export class TaxAndCashDashboard {
|
|
|
1691
1702
|
"reflect": false,
|
|
1692
1703
|
"defaultValue": "\"Cancel\""
|
|
1693
1704
|
},
|
|
1705
|
+
"stateController": {
|
|
1706
|
+
"type": "string",
|
|
1707
|
+
"mutable": false,
|
|
1708
|
+
"complexType": {
|
|
1709
|
+
"original": "string",
|
|
1710
|
+
"resolved": "string",
|
|
1711
|
+
"references": {}
|
|
1712
|
+
},
|
|
1713
|
+
"required": false,
|
|
1714
|
+
"optional": true,
|
|
1715
|
+
"docs": {
|
|
1716
|
+
"tags": [{
|
|
1717
|
+
"text": "{ \"parent\": \"sqm-tax-and-cash\", \"title\": \"Dashboard\" }",
|
|
1718
|
+
"name": "parentState"
|
|
1719
|
+
}, {
|
|
1720
|
+
"text": "{ \"title\": \"Default\", \"props\": { } }",
|
|
1721
|
+
"name": "componentState"
|
|
1722
|
+
}, {
|
|
1723
|
+
"text": "{ \"title\": \"Verification Required\", \"props\": { \"states\": { \"payoutStatus\": \"VERIFICATION:REQUIRED\" } } }",
|
|
1724
|
+
"name": "componentState"
|
|
1725
|
+
}, {
|
|
1726
|
+
"text": "{ \"title\": \"Internal Verification Required\", \"props\": { \"states\": { \"payoutStatus\": \"VERIFICATION:INTERNAL\" } } }",
|
|
1727
|
+
"name": "componentState"
|
|
1728
|
+
}, {
|
|
1729
|
+
"text": "{ \"title\": \"Review in progress\", \"props\": { \"states\": { \"payoutStatus\": \"VERIFICATION:REVIEW\" } } }",
|
|
1730
|
+
"name": "componentState"
|
|
1731
|
+
}, {
|
|
1732
|
+
"text": "{ \"title\": \"Verification failed\", \"props\": { \"states\": { \"payoutStatus\": \"VERIFICATION:FAILED\" } } }",
|
|
1733
|
+
"name": "componentState"
|
|
1734
|
+
}, {
|
|
1735
|
+
"text": "{ \"title\": \"Payout hold\", \"props\": { \"states\": { \"payoutStatus\": \"HOLD\" } } }",
|
|
1736
|
+
"name": "componentState"
|
|
1737
|
+
}],
|
|
1738
|
+
"text": ""
|
|
1739
|
+
},
|
|
1740
|
+
"attribute": "state-controller",
|
|
1741
|
+
"reflect": false,
|
|
1742
|
+
"defaultValue": "\"{}\""
|
|
1743
|
+
},
|
|
1694
1744
|
"demoData": {
|
|
1695
1745
|
"type": "unknown",
|
|
1696
1746
|
"mutable": false,
|
|
@@ -1724,6 +1774,8 @@ export class TaxAndCashDashboard {
|
|
|
1724
1774
|
}; }
|
|
1725
1775
|
}
|
|
1726
1776
|
function useDemoTaxAndCashDashboard(props) {
|
|
1777
|
+
const states = parseStates(props.stateController);
|
|
1778
|
+
console.log({ states });
|
|
1727
1779
|
return deepmerge({
|
|
1728
1780
|
states: {
|
|
1729
1781
|
dateSubmitted: "today",
|
|
@@ -1731,16 +1783,23 @@ function useDemoTaxAndCashDashboard(props) {
|
|
|
1731
1783
|
documentTypeString: "W9",
|
|
1732
1784
|
status: "ACTIVE",
|
|
1733
1785
|
country: "United States",
|
|
1734
|
-
indirectTaxNumber: 55555555,
|
|
1786
|
+
indirectTaxNumber: "55555555",
|
|
1735
1787
|
indirectTaxType: "Indirect Tax",
|
|
1736
1788
|
noFormNeeded: true,
|
|
1737
1789
|
disabled: false,
|
|
1738
1790
|
loading: false,
|
|
1739
1791
|
showNewFormDialog: false,
|
|
1740
1792
|
hasHold: false,
|
|
1741
|
-
showVerifyIdentity: false,
|
|
1742
1793
|
payoutStatus: "DONE",
|
|
1743
1794
|
veriffLoading: false,
|
|
1795
|
+
canEditPayoutInfo: true,
|
|
1796
|
+
subRegion: "CA",
|
|
1797
|
+
subRegionTaxNumber: undefined,
|
|
1798
|
+
qstNumber: undefined,
|
|
1799
|
+
isBusinessEntity: false,
|
|
1800
|
+
province: undefined,
|
|
1801
|
+
notRegistered: false,
|
|
1802
|
+
loadingError: false,
|
|
1744
1803
|
},
|
|
1745
1804
|
callbacks: {
|
|
1746
1805
|
onClick: () => console.debug("check step"),
|
|
@@ -1750,5 +1809,5 @@ function useDemoTaxAndCashDashboard(props) {
|
|
|
1750
1809
|
onVerifyClick: () => console.log("verify"),
|
|
1751
1810
|
},
|
|
1752
1811
|
text: props.getTextProps(),
|
|
1753
|
-
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
1812
|
+
}, props.demoData || states || {}, { arrayMerge: (_, a) => a });
|
|
1754
1813
|
}
|
package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js
CHANGED
|
@@ -2,11 +2,11 @@ import { useLocale, useParentQueryValue, useSetParent, } from "@saasquatch/compo
|
|
|
2
2
|
import { useEffect, useState } from "@saasquatch/universal-hooks";
|
|
3
3
|
import { DateTime } from "luxon";
|
|
4
4
|
import { vatLabels } from "../countries";
|
|
5
|
-
import { TAX_CONTEXT_NAMESPACE, TAX_FORM_CONTEXT_NAMESPACE, USER_QUERY_NAMESPACE, } from "../
|
|
6
|
-
import { INDIRECT_TAX_PROVINCES, INDIRECT_TAX_SPAIN_REGIONS, } from "../subregions";
|
|
7
|
-
import { taxTypeToName } from "../utils";
|
|
5
|
+
import { TAX_CONTEXT_NAMESPACE, TAX_FORM_CONTEXT_NAMESPACE, USER_QUERY_NAMESPACE, } from "../data";
|
|
8
6
|
import { getStatus } from "../sqm-payout-status-alert/usePayoutStatus";
|
|
7
|
+
import { INDIRECT_TAX_PROVINCES, INDIRECT_TAX_SPAIN_REGIONS, } from "../subregions";
|
|
9
8
|
import { useVeriffApp, VERIFF_COMPLETE_EVENT_KEY } from "../useVeriffApp";
|
|
9
|
+
import { taxTypeToName } from "../utils";
|
|
10
10
|
function getCountryName(countryCode, locale) {
|
|
11
11
|
if (!countryCode)
|
|
12
12
|
return undefined;
|
package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { intl } from "../../../global/global";
|
|
3
3
|
import { createStyleSheet } from "../../../styling/JSS";
|
|
4
|
-
import { GeneralLoadingView } from "../TaxForm.stories";
|
|
5
|
-
import { FORM_STEPS } from "../
|
|
6
|
-
import { formatErrorMessage, validateBillingField } from "../utils";
|
|
4
|
+
// import { GeneralLoadingView } from "../TaxForm.stories";
|
|
5
|
+
import { FORM_STEPS } from "../data";
|
|
7
6
|
import { PHONE_EXTENSIONS } from "../phoneExtensions";
|
|
7
|
+
import LoadingView from "../sqm-tax-and-cash/LoadingView";
|
|
8
|
+
import { formatErrorMessage, validateBillingField } from "../utils";
|
|
8
9
|
const style = {
|
|
9
10
|
FormWrapper: {},
|
|
10
11
|
ErrorInput: {
|
|
@@ -322,7 +323,7 @@ export const UserInfoFormView = (props) => {
|
|
|
322
323
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, text.supportLink)),
|
|
323
324
|
})),
|
|
324
325
|
h("br", null))),
|
|
325
|
-
states.loading ? (h(
|
|
326
|
+
states.loading ? (h(LoadingView, null)) : (h("div", null,
|
|
326
327
|
h("div", { class: classes.TextContainer },
|
|
327
328
|
h("div", null,
|
|
328
329
|
!states.hideSteps && (h("p", null, intl.formatMessage({
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { isDemo, useSetParent } from "@saasquatch/component-boilerplate";
|
|
2
2
|
import { withHooks } from "@saasquatch/stencil-hooks";
|
|
3
|
-
import { Component,
|
|
3
|
+
import { Component, h, Prop, State } from "@stencil/core";
|
|
4
4
|
import deepmerge from "deepmerge";
|
|
5
|
+
import { parseStates } from "../../../utils/parseStates";
|
|
5
6
|
import { getProps } from "../../../utils/utils";
|
|
6
|
-
import { TAX_CONTEXT_NAMESPACE } from "../
|
|
7
|
+
import { TAX_CONTEXT_NAMESPACE } from "../data";
|
|
7
8
|
import { UserInfoFormView } from "./sqm-user-info-form-view";
|
|
8
9
|
import { useUserInfoForm } from "./useUserInfoForm";
|
|
9
10
|
/**
|
|
@@ -163,6 +164,13 @@ export class TaxForm {
|
|
|
163
164
|
* @uiName Support link text
|
|
164
165
|
*/
|
|
165
166
|
this.supportLink = "support team";
|
|
167
|
+
/**
|
|
168
|
+
* @uiName States
|
|
169
|
+
* @parentState { "parent": "sqm-tax-and-cash", "title": "Step 1" }
|
|
170
|
+
* @componentState { "title": "Errors", "props": { "states": { "loadingError": true, "formState": { "errors": { "email": true, "firstName": true, "lastName": true, "countryCode": true, "currency": true } } } } }
|
|
171
|
+
* @componentState { "title": "Loading", "props": { "states": { "loading": true } } }
|
|
172
|
+
*/
|
|
173
|
+
this.stateController = "{}";
|
|
166
174
|
withHooks(this);
|
|
167
175
|
}
|
|
168
176
|
disconnectedCallback() { }
|
|
@@ -183,13 +191,12 @@ export class TaxForm {
|
|
|
183
191
|
}
|
|
184
192
|
render() {
|
|
185
193
|
const props = isDemo() ? useDemoUserInfoForm(this) : useUserInfoForm(this);
|
|
186
|
-
return (h(
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
}, text: props.text, refs: props.refs })));
|
|
194
|
+
return (h(UserInfoFormView, { data: props.data,
|
|
195
|
+
// @ts-ignore
|
|
196
|
+
states: props.states, callbacks: {
|
|
197
|
+
...props.callbacks,
|
|
198
|
+
onSubmit: props.onSubmit,
|
|
199
|
+
}, text: props.text, refs: props.refs }));
|
|
193
200
|
}
|
|
194
201
|
static get is() { return "sqm-user-info-form"; }
|
|
195
202
|
static get encapsulation() { return "shadow"; }
|
|
@@ -887,6 +894,36 @@ export class TaxForm {
|
|
|
887
894
|
"reflect": false,
|
|
888
895
|
"defaultValue": "\"support team\""
|
|
889
896
|
},
|
|
897
|
+
"stateController": {
|
|
898
|
+
"type": "string",
|
|
899
|
+
"mutable": false,
|
|
900
|
+
"complexType": {
|
|
901
|
+
"original": "string",
|
|
902
|
+
"resolved": "string",
|
|
903
|
+
"references": {}
|
|
904
|
+
},
|
|
905
|
+
"required": false,
|
|
906
|
+
"optional": false,
|
|
907
|
+
"docs": {
|
|
908
|
+
"tags": [{
|
|
909
|
+
"text": "States",
|
|
910
|
+
"name": "uiName"
|
|
911
|
+
}, {
|
|
912
|
+
"text": "{ \"parent\": \"sqm-tax-and-cash\", \"title\": \"Step 1\" }",
|
|
913
|
+
"name": "parentState"
|
|
914
|
+
}, {
|
|
915
|
+
"text": "{ \"title\": \"Errors\", \"props\": { \"states\": { \"loadingError\": true, \"formState\": { \"errors\": { \"email\": true, \"firstName\": true, \"lastName\": true, \"countryCode\": true, \"currency\": true } } } } }",
|
|
916
|
+
"name": "componentState"
|
|
917
|
+
}, {
|
|
918
|
+
"text": "{ \"title\": \"Loading\", \"props\": { \"states\": { \"loading\": true } } }",
|
|
919
|
+
"name": "componentState"
|
|
920
|
+
}],
|
|
921
|
+
"text": ""
|
|
922
|
+
},
|
|
923
|
+
"attribute": "state-controller",
|
|
924
|
+
"reflect": false,
|
|
925
|
+
"defaultValue": "\"{}\""
|
|
926
|
+
},
|
|
890
927
|
"demoData": {
|
|
891
928
|
"type": "unknown",
|
|
892
929
|
"mutable": false,
|
|
@@ -924,9 +961,10 @@ export class TaxForm {
|
|
|
924
961
|
}
|
|
925
962
|
function useDemoUserInfoForm(props) {
|
|
926
963
|
const setStep = useSetParent(TAX_CONTEXT_NAMESPACE);
|
|
964
|
+
// @ts-ignore
|
|
927
965
|
return deepmerge({
|
|
928
966
|
setStep,
|
|
929
|
-
onSubmit: () => {
|
|
967
|
+
onSubmit: async () => {
|
|
930
968
|
setStep("/2");
|
|
931
969
|
},
|
|
932
970
|
onRadioClick: () => { },
|
|
@@ -966,5 +1004,5 @@ function useDemoUserInfoForm(props) {
|
|
|
966
1004
|
},
|
|
967
1005
|
},
|
|
968
1006
|
},
|
|
969
|
-
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
1007
|
+
}, props.demoData || parseStates(props.stateController) || {}, { arrayMerge: (_, a) => a });
|
|
970
1008
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { useParent, useParentQueryValue, useParentValue, } from "@saasquatch/component-boilerplate";
|
|
1
2
|
import { useEffect, useMemo, useRef, useState, } from "@saasquatch/universal-hooks";
|
|
2
3
|
import jsonpointer from "jsonpointer";
|
|
3
|
-
import { CURRENCIES_NAMESPACE, SORTED_COUNTRIES_NAMESPACE, TAX_CONTEXT_NAMESPACE, TAX_FORM_CONTEXT_NAMESPACE, USER_FORM_CONTEXT_NAMESPACE, USER_QUERY_NAMESPACE, } from "../
|
|
4
|
-
import { objectIsFull } from "../utils";
|
|
5
|
-
import { useParent, useParentQueryValue, useParentValue, } from "@saasquatch/component-boilerplate";
|
|
4
|
+
import { CURRENCIES_NAMESPACE, SORTED_COUNTRIES_NAMESPACE, TAX_CONTEXT_NAMESPACE, TAX_FORM_CONTEXT_NAMESPACE, USER_FORM_CONTEXT_NAMESPACE, USER_QUERY_NAMESPACE, } from "../data";
|
|
6
5
|
import { ADDRESS_REGIONS } from "../subregions";
|
|
6
|
+
import { objectIsFull } from "../utils";
|
|
7
7
|
export function useUserInfoForm(props) {
|
|
8
8
|
var _a, _b, _c, _d;
|
|
9
9
|
const currencyRef = useRef(undefined);
|
|
@@ -43,7 +43,7 @@ export function EmailRegistrationView(props) {
|
|
|
43
43
|
};
|
|
44
44
|
const emailValidationRegex = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
|
|
45
45
|
return (h("div", { part: "sqm-base", class: sheet.classes.Wrapper, style: {
|
|
46
|
-
border: `${content.hideBorder ? "none" : "1px solid
|
|
46
|
+
border: `${content.hideBorder ? "none" : "1px solid var(--sqm-border-color)"}`,
|
|
47
47
|
backgroundColor: content.backgroundColor,
|
|
48
48
|
"padding-top": `var(--sl-spacing-${content.paddingTop})`,
|
|
49
49
|
"padding-right": `var(--sl-spacing-${content.paddingRight})`,
|
|
@@ -70,6 +70,7 @@
|
|
|
70
70
|
--teal-6: #0b6270;
|
|
71
71
|
--teal-7: #004551;
|
|
72
72
|
} */
|
|
73
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
73
74
|
const style = `
|
|
74
75
|
/* vietnamese */
|
|
75
76
|
@font-face {
|
|
@@ -567,18 +568,13 @@ html {
|
|
|
567
568
|
--sqm-color-text-error: #e63717;
|
|
568
569
|
--sqm-content-max-width: 700px;
|
|
569
570
|
--sqm-content-background: var(--sl-color-white);
|
|
570
|
-
--sqm-portal-background: #121212;
|
|
571
|
+
--sqm-portal-background: ${((_b = (_a = window.SquatchBrandingConfig) === null || _a === void 0 ? void 0 : _a.color) === null || _b === void 0 ? void 0 : _b.background) || "#121212"};
|
|
571
572
|
--widget-background-color: var(--sl-color-white);
|
|
572
573
|
--sqm-portal-main-width: 900px;
|
|
573
574
|
--sqm-max-width: 100%;
|
|
574
575
|
|
|
575
|
-
|
|
576
|
-
--sqm-text:
|
|
577
|
-
--sqm-text-subdued: var(--sl-color-neutral-500);
|
|
578
|
-
*/
|
|
579
|
-
|
|
580
|
-
--sqm-text: white;
|
|
581
|
-
--sqm-text-subdued: #b3b3b3;
|
|
576
|
+
--sqm-text: ${((_d = (_c = window.SquatchBrandingConfig) === null || _c === void 0 ? void 0 : _c.font) === null || _d === void 0 ? void 0 : _d.textColor) || "white"};
|
|
577
|
+
--sqm-text-subdued: ${((_f = (_e = window.SquatchBrandingConfig) === null || _e === void 0 ? void 0 : _e.font) === null || _f === void 0 ? void 0 : _f.secondaryTextColor) || "#b3b3b3"};
|
|
582
578
|
--sqm-primary-color: #1ed760;
|
|
583
579
|
|
|
584
580
|
--sqm-primary-button-background: #1ed760;
|
|
@@ -600,11 +596,11 @@ html {
|
|
|
600
596
|
--sqm-tertiary-button-color-border: transparent;
|
|
601
597
|
--sqm-tertiary-button-radius: 30px;
|
|
602
598
|
|
|
603
|
-
--sqm-border-radius-normal:
|
|
604
|
-
--sqm-border-color: white;
|
|
599
|
+
--sqm-border-radius-normal: ${((_h = (_g = window.SquatchBrandingConfig) === null || _g === void 0 ? void 0 : _g.border) === null || _h === void 0 ? void 0 : _h.radius) || "18"}px;
|
|
600
|
+
--sqm-border-color: ${((_k = (_j = window.SquatchBrandingConfig) === null || _j === void 0 ? void 0 : _j.border) === null || _k === void 0 ? void 0 : _k.color) || "white"};
|
|
605
601
|
--sqm-border-thickness: 1px;
|
|
606
602
|
|
|
607
|
-
--sqm-accent-color-icon: #1ed760;
|
|
603
|
+
--sqm-accent-color-icon: ${((_o = (_m = (_l = window.SquatchBrandingConfig) === null || _l === void 0 ? void 0 : _l.color) === null || _m === void 0 ? void 0 : _m.accentColorShades) === null || _o === void 0 ? void 0 : _o.icon) || "#1ed760"};
|
|
608
604
|
--sqm-accent-color-text: #ffffff;
|
|
609
605
|
--sqm-accent-color-border: #1db954;
|
|
610
606
|
--sqm-accent-color-background: #0d4a27;
|
|
@@ -691,7 +687,12 @@ body {
|
|
|
691
687
|
color: var(--sqm-text);
|
|
692
688
|
line-height: var(--sl-line-height-normal);
|
|
693
689
|
margin: 0;
|
|
694
|
-
background-color: var(--sqm-portal-background);
|
|
690
|
+
background-color: var(--sqm-portal-background) !important;
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
.story-div {
|
|
694
|
+
background: var(--sqm-portal-background) !important;
|
|
695
|
+
color: var(--sqm-text) !important;
|
|
695
696
|
}
|
|
696
697
|
|
|
697
698
|
sqm-tabs::part(active-tab-indicator) {
|