@saasquatch/mint-components 2.0.0-29 → 2.0.0-30
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/sqm-banking-info-form_10.cjs.entry.js +7 -15
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +8 -16
- package/dist/esm/sqm-banking-info-form_10.entry.js +7 -15
- package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/p-1ac5cbd6.system.entry.js +1 -0
- package/dist/mint-components/p-967a9040.system.js +1 -1
- package/dist/mint-components/p-d460e0bd.entry.js +99 -0
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +0 -2
- package/docs/docs.docx +0 -0
- package/package.json +1 -1
- package/dist/mint-components/p-1a2015b2.entry.js +0 -99
- package/dist/mint-components/p-e3050708.system.entry.js +0 -1
|
@@ -18,6 +18,7 @@ const luxon = require('./luxon-949beaf2.js');
|
|
|
18
18
|
const useReferralTable = require('./useReferralTable-90d4d6e9.js');
|
|
19
19
|
const IndirectTaxDetailsView = require('./IndirectTaxDetailsView-e5f70b8b.js');
|
|
20
20
|
const utils$1 = require('./utils-83d125fa.js');
|
|
21
|
+
const parseStates = require('./parseStates-d1effc19.js');
|
|
21
22
|
const data = require('./data-88adb95b.js');
|
|
22
23
|
const keys = require('./keys-cff24974.js');
|
|
23
24
|
const usePayoutStatus = require('./usePayoutStatus-fe32dd1a.js');
|
|
@@ -4684,27 +4685,18 @@ const TaxAndCashDashboard = class {
|
|
|
4684
4685
|
};
|
|
4685
4686
|
}
|
|
4686
4687
|
render() {
|
|
4687
|
-
const effectiveStateController = this.getEffectiveStateController();
|
|
4688
4688
|
const props = index_module.isDemo()
|
|
4689
|
-
? useDemoTaxAndCashDashboard(this
|
|
4689
|
+
? useDemoTaxAndCashDashboard(this)
|
|
4690
4690
|
: useTaxAndCashDashboard(this);
|
|
4691
4691
|
return (index.h(index.Host, null, index.h(TaxAndCashDashboardView, { callbacks: props.callbacks, states: props.states, text: props.text, slots: {
|
|
4692
4692
|
payoutDetailsCardSlot: (index.h("sqm-payout-details-card", Object.assign({}, this.getTextProps()))),
|
|
4693
4693
|
} })));
|
|
4694
4694
|
}
|
|
4695
|
-
getEffectiveStateController() {
|
|
4696
|
-
var _a, _b;
|
|
4697
|
-
if (this.stateController && this.stateController !== "{}") {
|
|
4698
|
-
return this.stateController;
|
|
4699
|
-
}
|
|
4700
|
-
const parent = (_a = this.hostEl) === null || _a === void 0 ? void 0 : _a.closest("sqm-widget-verification-controller");
|
|
4701
|
-
return (_b = parent === null || parent === void 0 ? void 0 : parent.getAttribute("state-controller")) !== null && _b !== void 0 ? _b : "{}";
|
|
4702
|
-
}
|
|
4703
|
-
get hostEl() { return index.getElement(this); }
|
|
4704
4695
|
};
|
|
4705
|
-
function useDemoTaxAndCashDashboard(props
|
|
4706
|
-
const
|
|
4707
|
-
|
|
4696
|
+
function useDemoTaxAndCashDashboard(props) {
|
|
4697
|
+
const parsed = parseStates.parseStates(props.stateController);
|
|
4698
|
+
const formatted = parsed["sqm-tax-and-cash-dashboard"] !== undefined
|
|
4699
|
+
? parsed["sqm-tax-and-cash-dashboard"]
|
|
4708
4700
|
: {};
|
|
4709
4701
|
const merged = cjs.cjs.all([
|
|
4710
4702
|
{
|
|
@@ -4728,7 +4720,7 @@ function useDemoTaxAndCashDashboard(props, stateController) {
|
|
|
4728
4720
|
province: undefined,
|
|
4729
4721
|
notRegistered: true,
|
|
4730
4722
|
loadingError: false,
|
|
4731
|
-
payoutStatus: "
|
|
4723
|
+
payoutStatus: "HOLD",
|
|
4732
4724
|
veriffLoading: false,
|
|
4733
4725
|
canEditPayoutInfo: true,
|
|
4734
4726
|
},
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { isDemo } from "@saasquatch/component-boilerplate";
|
|
2
2
|
import { withHooks } from "@saasquatch/stencil-hooks";
|
|
3
|
-
import { Component, h, Host, Prop
|
|
3
|
+
import { Component, h, Host, Prop } from "@stencil/core";
|
|
4
4
|
import deepmerge from "deepmerge";
|
|
5
5
|
import { getProps } from "../../../utils/utils";
|
|
6
6
|
import { TaxAndCashDashboardView } from "./sqm-tax-and-cash-dashboard-view";
|
|
7
7
|
import { useTaxAndCashDashboard, } from "./useTaxAndCashDashboard";
|
|
8
|
+
import { parseStates } from "../../../utils/parseStates";
|
|
8
9
|
/**
|
|
9
10
|
* @uiName Tax and Cash Status Dashboard
|
|
10
11
|
*/
|
|
@@ -359,23 +360,14 @@ export class TaxAndCashDashboard {
|
|
|
359
360
|
};
|
|
360
361
|
}
|
|
361
362
|
render() {
|
|
362
|
-
const effectiveStateController = this.getEffectiveStateController();
|
|
363
363
|
const props = isDemo()
|
|
364
|
-
? useDemoTaxAndCashDashboard(this
|
|
364
|
+
? useDemoTaxAndCashDashboard(this)
|
|
365
365
|
: useTaxAndCashDashboard(this);
|
|
366
366
|
return (h(Host, null,
|
|
367
367
|
h(TaxAndCashDashboardView, { callbacks: props.callbacks, states: props.states, text: props.text, slots: {
|
|
368
368
|
payoutDetailsCardSlot: (h("sqm-payout-details-card", Object.assign({}, this.getTextProps()))),
|
|
369
369
|
} })));
|
|
370
370
|
}
|
|
371
|
-
getEffectiveStateController() {
|
|
372
|
-
var _a, _b;
|
|
373
|
-
if (this.stateController && this.stateController !== "{}") {
|
|
374
|
-
return this.stateController;
|
|
375
|
-
}
|
|
376
|
-
const parent = (_a = this.hostEl) === null || _a === void 0 ? void 0 : _a.closest("sqm-widget-verification-controller");
|
|
377
|
-
return (_b = parent === null || parent === void 0 ? void 0 : parent.getAttribute("state-controller")) !== null && _b !== void 0 ? _b : "{}";
|
|
378
|
-
}
|
|
379
371
|
static get is() { return "sqm-tax-and-cash-dashboard"; }
|
|
380
372
|
static get encapsulation() { return "shadow"; }
|
|
381
373
|
static get properties() { return {
|
|
@@ -1907,11 +1899,11 @@ export class TaxAndCashDashboard {
|
|
|
1907
1899
|
"defaultValue": "\"{}\""
|
|
1908
1900
|
}
|
|
1909
1901
|
}; }
|
|
1910
|
-
static get elementRef() { return "hostEl"; }
|
|
1911
1902
|
}
|
|
1912
|
-
function useDemoTaxAndCashDashboard(props
|
|
1913
|
-
const
|
|
1914
|
-
|
|
1903
|
+
function useDemoTaxAndCashDashboard(props) {
|
|
1904
|
+
const parsed = parseStates(props.stateController);
|
|
1905
|
+
const formatted = parsed["sqm-tax-and-cash-dashboard"] !== undefined
|
|
1906
|
+
? parsed["sqm-tax-and-cash-dashboard"]
|
|
1915
1907
|
: {};
|
|
1916
1908
|
const merged = deepmerge.all([
|
|
1917
1909
|
{
|
|
@@ -1935,7 +1927,7 @@ function useDemoTaxAndCashDashboard(props, stateController) {
|
|
|
1935
1927
|
province: undefined,
|
|
1936
1928
|
notRegistered: true,
|
|
1937
1929
|
loadingError: false,
|
|
1938
|
-
payoutStatus: "
|
|
1930
|
+
payoutStatus: "HOLD",
|
|
1939
1931
|
veriffLoading: false,
|
|
1940
1932
|
canEditPayoutInfo: true,
|
|
1941
1933
|
},
|
|
@@ -14,6 +14,7 @@ import { l as luxon } from './luxon-bbf75a9d.js';
|
|
|
14
14
|
import { g as generateUserError } from './useReferralTable-909ccb28.js';
|
|
15
15
|
import { a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, O as OtherRegionSlotView, I as InvoiceTableView, v as vatLabels, A as ADDRESS_REGIONS } from './IndirectTaxDetailsView-0a57b622.js';
|
|
16
16
|
import { t as taxTypeToName, v as validTaxDocument, g as getCountryObj, L as LoadingView, f as formatErrorMessage, a as validateBillingField, o as objectIsFull } from './utils-6122971b.js';
|
|
17
|
+
import { p as parseStates } from './parseStates-ed75e224.js';
|
|
17
18
|
import { i as FORM_STEPS, a as TAX_FORM_CONTEXT_NAMESPACE, S as SORTED_COUNTRIES_NAMESPACE, c as USER_QUERY_NAMESPACE, T as TAX_CONTEXT_NAMESPACE, F as FINANCE_NETWORK_SETTINGS_NAMESPACE, U as USER_FORM_CONTEXT_NAMESPACE, d as COUNTRIES_QUERY_NAMESPACE, C as CURRENCIES_NAMESPACE } from './data-807686c2.js';
|
|
18
19
|
import { b as VERIFICATION_EVENT_KEY } from './keys-406491dc.js';
|
|
19
20
|
import { T as TAX_FORM_UPDATED_EVENT_KEY, a as useVeriffApp, g as getStatus, V as VERIFF_COMPLETE_EVENT_KEY } from './usePayoutStatus-42cc6a2c.js';
|
|
@@ -4680,27 +4681,18 @@ const TaxAndCashDashboard = class {
|
|
|
4680
4681
|
};
|
|
4681
4682
|
}
|
|
4682
4683
|
render() {
|
|
4683
|
-
const effectiveStateController = this.getEffectiveStateController();
|
|
4684
4684
|
const props = isDemo()
|
|
4685
|
-
? useDemoTaxAndCashDashboard(this
|
|
4685
|
+
? useDemoTaxAndCashDashboard(this)
|
|
4686
4686
|
: useTaxAndCashDashboard(this);
|
|
4687
4687
|
return (h(Host, null, h(TaxAndCashDashboardView, { callbacks: props.callbacks, states: props.states, text: props.text, slots: {
|
|
4688
4688
|
payoutDetailsCardSlot: (h("sqm-payout-details-card", Object.assign({}, this.getTextProps()))),
|
|
4689
4689
|
} })));
|
|
4690
4690
|
}
|
|
4691
|
-
getEffectiveStateController() {
|
|
4692
|
-
var _a, _b;
|
|
4693
|
-
if (this.stateController && this.stateController !== "{}") {
|
|
4694
|
-
return this.stateController;
|
|
4695
|
-
}
|
|
4696
|
-
const parent = (_a = this.hostEl) === null || _a === void 0 ? void 0 : _a.closest("sqm-widget-verification-controller");
|
|
4697
|
-
return (_b = parent === null || parent === void 0 ? void 0 : parent.getAttribute("state-controller")) !== null && _b !== void 0 ? _b : "{}";
|
|
4698
|
-
}
|
|
4699
|
-
get hostEl() { return getElement(this); }
|
|
4700
4691
|
};
|
|
4701
|
-
function useDemoTaxAndCashDashboard(props
|
|
4702
|
-
const
|
|
4703
|
-
|
|
4692
|
+
function useDemoTaxAndCashDashboard(props) {
|
|
4693
|
+
const parsed = parseStates(props.stateController);
|
|
4694
|
+
const formatted = parsed["sqm-tax-and-cash-dashboard"] !== undefined
|
|
4695
|
+
? parsed["sqm-tax-and-cash-dashboard"]
|
|
4704
4696
|
: {};
|
|
4705
4697
|
const merged = cjs.all([
|
|
4706
4698
|
{
|
|
@@ -4724,7 +4716,7 @@ function useDemoTaxAndCashDashboard(props, stateController) {
|
|
|
4724
4716
|
province: undefined,
|
|
4725
4717
|
notRegistered: true,
|
|
4726
4718
|
loadingError: false,
|
|
4727
|
-
payoutStatus: "
|
|
4719
|
+
payoutStatus: "HOLD",
|
|
4728
4720
|
veriffLoading: false,
|
|
4729
4721
|
canEditPayoutInfo: true,
|
|
4730
4722
|
},
|