@saasquatch/mint-components 2.0.0-25 → 2.0.0-27
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 +44 -42
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +46 -44
- package/dist/esm/sqm-banking-info-form_10.entry.js +44 -42
- 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-3136ce81.entry.js +99 -0
- package/dist/mint-components/p-967a9040.system.js +1 -1
- package/dist/mint-components/p-b7ea1479.system.entry.js +1 -0
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +1 -1
- package/dist/types/components.d.ts +2 -2
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/package.json +1 -1
- package/dist/mint-components/p-3d713973.system.entry.js +0 -1
- package/dist/mint-components/p-ab79297a.entry.js +0 -99
|
@@ -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');
|
|
@@ -4665,7 +4666,7 @@ const TaxAndCashDashboard = class {
|
|
|
4665
4666
|
this.cancelButton = "Cancel";
|
|
4666
4667
|
/**
|
|
4667
4668
|
* @undocumented
|
|
4668
|
-
* @componentState { "title": "Payouts on hold", "props": { "states": { "payoutStatus": "HOLD" } }, "dependencies": ["sqm-tax-and-cash
|
|
4669
|
+
* @componentState { "title": "Payouts on hold", "props": { "states": { "payoutStatus": "HOLD" } }, "dependencies": ["sqm-tax-and-cash"], "uiGroup": "Dashboard Properties" }
|
|
4669
4670
|
*/
|
|
4670
4671
|
this.stateController = "{}";
|
|
4671
4672
|
domContextHooks_module.h$1(this);
|
|
@@ -4693,48 +4694,49 @@ const TaxAndCashDashboard = class {
|
|
|
4693
4694
|
}
|
|
4694
4695
|
};
|
|
4695
4696
|
function useDemoTaxAndCashDashboard(props) {
|
|
4696
|
-
|
|
4697
|
-
|
|
4698
|
-
|
|
4699
|
-
|
|
4700
|
-
|
|
4701
|
-
|
|
4702
|
-
|
|
4703
|
-
|
|
4704
|
-
|
|
4705
|
-
|
|
4706
|
-
|
|
4707
|
-
|
|
4708
|
-
|
|
4709
|
-
|
|
4710
|
-
|
|
4711
|
-
|
|
4712
|
-
|
|
4713
|
-
|
|
4714
|
-
|
|
4715
|
-
|
|
4716
|
-
|
|
4717
|
-
|
|
4718
|
-
|
|
4719
|
-
|
|
4720
|
-
|
|
4721
|
-
|
|
4722
|
-
|
|
4723
|
-
|
|
4724
|
-
|
|
4725
|
-
|
|
4726
|
-
|
|
4727
|
-
|
|
4728
|
-
|
|
4729
|
-
|
|
4730
|
-
|
|
4731
|
-
|
|
4732
|
-
|
|
4733
|
-
|
|
4734
|
-
},
|
|
4735
|
-
} })),
|
|
4697
|
+
const parsed = parseStates.parseStates(props.stateController);
|
|
4698
|
+
const formatted = parsed["sqm-tax-and-cash-dashboard"] !== undefined
|
|
4699
|
+
? parsed["sqm-tax-and-cash-dashboard"]
|
|
4700
|
+
: {};
|
|
4701
|
+
const merged = cjs.cjs.all([
|
|
4702
|
+
{
|
|
4703
|
+
states: {
|
|
4704
|
+
dateSubmitted: "today",
|
|
4705
|
+
documentType: "W9",
|
|
4706
|
+
documentTypeString: "W-9",
|
|
4707
|
+
status: "ACTIVE",
|
|
4708
|
+
country: "United States",
|
|
4709
|
+
indirectTaxNumber: "55555555",
|
|
4710
|
+
indirectTaxType: "Indirect Tax",
|
|
4711
|
+
noFormNeeded: false,
|
|
4712
|
+
disabled: false,
|
|
4713
|
+
loading: false,
|
|
4714
|
+
showNewFormDialog: false,
|
|
4715
|
+
hasHold: false,
|
|
4716
|
+
subRegion: "CA",
|
|
4717
|
+
subRegionTaxNumber: undefined,
|
|
4718
|
+
qstNumber: undefined,
|
|
4719
|
+
isBusinessEntity: false,
|
|
4720
|
+
province: undefined,
|
|
4721
|
+
notRegistered: true,
|
|
4722
|
+
loadingError: false,
|
|
4723
|
+
payoutStatus: "DONE",
|
|
4724
|
+
veriffLoading: false,
|
|
4725
|
+
canEditPayoutInfo: true,
|
|
4726
|
+
},
|
|
4727
|
+
callbacks: {
|
|
4728
|
+
onClick: () => console.debug("check step"),
|
|
4729
|
+
onEditPayoutInfo: () => console.debug("payout info"),
|
|
4730
|
+
onNewFormCancel: () => console.log("hide"),
|
|
4731
|
+
onNewFormClick: () => console.log("show"),
|
|
4732
|
+
onVerifyClick: () => console.log("verify"),
|
|
4733
|
+
},
|
|
4734
|
+
text: props.getTextProps(),
|
|
4736
4735
|
},
|
|
4737
|
-
|
|
4736
|
+
props.demoData || {},
|
|
4737
|
+
formatted,
|
|
4738
|
+
], { arrayMerge: (_, a) => a });
|
|
4739
|
+
return merged;
|
|
4738
4740
|
}
|
|
4739
4741
|
|
|
4740
4742
|
const PHONE_EXTENSIONS = {
|
|
@@ -5,6 +5,7 @@ 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
|
*/
|
|
@@ -340,7 +341,7 @@ export class TaxAndCashDashboard {
|
|
|
340
341
|
this.cancelButton = "Cancel";
|
|
341
342
|
/**
|
|
342
343
|
* @undocumented
|
|
343
|
-
* @componentState { "title": "Payouts on hold", "props": { "states": { "payoutStatus": "HOLD" } }, "dependencies": ["sqm-tax-and-cash
|
|
344
|
+
* @componentState { "title": "Payouts on hold", "props": { "states": { "payoutStatus": "HOLD" } }, "dependencies": ["sqm-tax-and-cash"], "uiGroup": "Dashboard Properties" }
|
|
344
345
|
*/
|
|
345
346
|
this.stateController = "{}";
|
|
346
347
|
withHooks(this);
|
|
@@ -1888,7 +1889,7 @@ export class TaxAndCashDashboard {
|
|
|
1888
1889
|
"text": undefined,
|
|
1889
1890
|
"name": "undocumented"
|
|
1890
1891
|
}, {
|
|
1891
|
-
"text": "{ \"title\": \"Payouts on hold\", \"props\": { \"states\": { \"payoutStatus\": \"HOLD\" } }, \"dependencies\": [\"sqm-tax-and-cash
|
|
1892
|
+
"text": "{ \"title\": \"Payouts on hold\", \"props\": { \"states\": { \"payoutStatus\": \"HOLD\" } }, \"dependencies\": [\"sqm-tax-and-cash\"], \"uiGroup\": \"Dashboard Properties\" }",
|
|
1892
1893
|
"name": "componentState"
|
|
1893
1894
|
}],
|
|
1894
1895
|
"text": ""
|
|
@@ -1900,46 +1901,47 @@ export class TaxAndCashDashboard {
|
|
|
1900
1901
|
}; }
|
|
1901
1902
|
}
|
|
1902
1903
|
function useDemoTaxAndCashDashboard(props) {
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1904
|
+
const parsed = parseStates(props.stateController);
|
|
1905
|
+
const formatted = parsed["sqm-tax-and-cash-dashboard"] !== undefined
|
|
1906
|
+
? parsed["sqm-tax-and-cash-dashboard"]
|
|
1907
|
+
: {};
|
|
1908
|
+
const merged = deepmerge.all([
|
|
1909
|
+
{
|
|
1910
|
+
states: {
|
|
1911
|
+
dateSubmitted: "today",
|
|
1912
|
+
documentType: "W9",
|
|
1913
|
+
documentTypeString: "W-9",
|
|
1914
|
+
status: "ACTIVE",
|
|
1915
|
+
country: "United States",
|
|
1916
|
+
indirectTaxNumber: "55555555",
|
|
1917
|
+
indirectTaxType: "Indirect Tax",
|
|
1918
|
+
noFormNeeded: false,
|
|
1919
|
+
disabled: false,
|
|
1920
|
+
loading: false,
|
|
1921
|
+
showNewFormDialog: false,
|
|
1922
|
+
hasHold: false,
|
|
1923
|
+
subRegion: "CA",
|
|
1924
|
+
subRegionTaxNumber: undefined,
|
|
1925
|
+
qstNumber: undefined,
|
|
1926
|
+
isBusinessEntity: false,
|
|
1927
|
+
province: undefined,
|
|
1928
|
+
notRegistered: true,
|
|
1929
|
+
loadingError: false,
|
|
1930
|
+
payoutStatus: "DONE",
|
|
1931
|
+
veriffLoading: false,
|
|
1932
|
+
canEditPayoutInfo: true,
|
|
1933
|
+
},
|
|
1934
|
+
callbacks: {
|
|
1935
|
+
onClick: () => console.debug("check step"),
|
|
1936
|
+
onEditPayoutInfo: () => console.debug("payout info"),
|
|
1937
|
+
onNewFormCancel: () => console.log("hide"),
|
|
1938
|
+
onNewFormClick: () => console.log("show"),
|
|
1939
|
+
onVerifyClick: () => console.log("verify"),
|
|
1940
|
+
},
|
|
1941
|
+
text: props.getTextProps(),
|
|
1942
|
+
},
|
|
1943
|
+
props.demoData || {},
|
|
1944
|
+
formatted,
|
|
1945
|
+
], { arrayMerge: (_, a) => a });
|
|
1946
|
+
return merged;
|
|
1945
1947
|
}
|
|
@@ -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';
|
|
@@ -4661,7 +4662,7 @@ const TaxAndCashDashboard = class {
|
|
|
4661
4662
|
this.cancelButton = "Cancel";
|
|
4662
4663
|
/**
|
|
4663
4664
|
* @undocumented
|
|
4664
|
-
* @componentState { "title": "Payouts on hold", "props": { "states": { "payoutStatus": "HOLD" } }, "dependencies": ["sqm-tax-and-cash
|
|
4665
|
+
* @componentState { "title": "Payouts on hold", "props": { "states": { "payoutStatus": "HOLD" } }, "dependencies": ["sqm-tax-and-cash"], "uiGroup": "Dashboard Properties" }
|
|
4665
4666
|
*/
|
|
4666
4667
|
this.stateController = "{}";
|
|
4667
4668
|
h$1(this);
|
|
@@ -4689,48 +4690,49 @@ const TaxAndCashDashboard = class {
|
|
|
4689
4690
|
}
|
|
4690
4691
|
};
|
|
4691
4692
|
function useDemoTaxAndCashDashboard(props) {
|
|
4692
|
-
|
|
4693
|
-
|
|
4694
|
-
|
|
4695
|
-
|
|
4696
|
-
|
|
4697
|
-
|
|
4698
|
-
|
|
4699
|
-
|
|
4700
|
-
|
|
4701
|
-
|
|
4702
|
-
|
|
4703
|
-
|
|
4704
|
-
|
|
4705
|
-
|
|
4706
|
-
|
|
4707
|
-
|
|
4708
|
-
|
|
4709
|
-
|
|
4710
|
-
|
|
4711
|
-
|
|
4712
|
-
|
|
4713
|
-
|
|
4714
|
-
|
|
4715
|
-
|
|
4716
|
-
|
|
4717
|
-
|
|
4718
|
-
|
|
4719
|
-
|
|
4720
|
-
|
|
4721
|
-
|
|
4722
|
-
|
|
4723
|
-
|
|
4724
|
-
|
|
4725
|
-
|
|
4726
|
-
|
|
4727
|
-
|
|
4728
|
-
|
|
4729
|
-
|
|
4730
|
-
},
|
|
4731
|
-
} })),
|
|
4693
|
+
const parsed = parseStates(props.stateController);
|
|
4694
|
+
const formatted = parsed["sqm-tax-and-cash-dashboard"] !== undefined
|
|
4695
|
+
? parsed["sqm-tax-and-cash-dashboard"]
|
|
4696
|
+
: {};
|
|
4697
|
+
const merged = cjs.all([
|
|
4698
|
+
{
|
|
4699
|
+
states: {
|
|
4700
|
+
dateSubmitted: "today",
|
|
4701
|
+
documentType: "W9",
|
|
4702
|
+
documentTypeString: "W-9",
|
|
4703
|
+
status: "ACTIVE",
|
|
4704
|
+
country: "United States",
|
|
4705
|
+
indirectTaxNumber: "55555555",
|
|
4706
|
+
indirectTaxType: "Indirect Tax",
|
|
4707
|
+
noFormNeeded: false,
|
|
4708
|
+
disabled: false,
|
|
4709
|
+
loading: false,
|
|
4710
|
+
showNewFormDialog: false,
|
|
4711
|
+
hasHold: false,
|
|
4712
|
+
subRegion: "CA",
|
|
4713
|
+
subRegionTaxNumber: undefined,
|
|
4714
|
+
qstNumber: undefined,
|
|
4715
|
+
isBusinessEntity: false,
|
|
4716
|
+
province: undefined,
|
|
4717
|
+
notRegistered: true,
|
|
4718
|
+
loadingError: false,
|
|
4719
|
+
payoutStatus: "DONE",
|
|
4720
|
+
veriffLoading: false,
|
|
4721
|
+
canEditPayoutInfo: true,
|
|
4722
|
+
},
|
|
4723
|
+
callbacks: {
|
|
4724
|
+
onClick: () => console.debug("check step"),
|
|
4725
|
+
onEditPayoutInfo: () => console.debug("payout info"),
|
|
4726
|
+
onNewFormCancel: () => console.log("hide"),
|
|
4727
|
+
onNewFormClick: () => console.log("show"),
|
|
4728
|
+
onVerifyClick: () => console.log("verify"),
|
|
4729
|
+
},
|
|
4730
|
+
text: props.getTextProps(),
|
|
4732
4731
|
},
|
|
4733
|
-
|
|
4732
|
+
props.demoData || {},
|
|
4733
|
+
formatted,
|
|
4734
|
+
], { arrayMerge: (_, a) => a });
|
|
4735
|
+
return merged;
|
|
4734
4736
|
}
|
|
4735
4737
|
|
|
4736
4738
|
const PHONE_EXTENSIONS = {
|