@saasquatch/mint-components 2.0.0-24 → 2.0.0-25

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.
@@ -18,7 +18,6 @@ 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');
22
21
  const data = require('./data-88adb95b.js');
23
22
  const keys = require('./keys-cff24974.js');
24
23
  const usePayoutStatus = require('./usePayoutStatus-fe32dd1a.js');
@@ -4694,10 +4693,7 @@ const TaxAndCashDashboard = class {
4694
4693
  }
4695
4694
  };
4696
4695
  function useDemoTaxAndCashDashboard(props) {
4697
- const states = parseStates.parseStates(props.stateController);
4698
- const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-tax-and-cash-dashboard"
4699
- ? { ...prev, ...states[key] }
4700
- : { ...prev, [`${key}_stateController`]: states[key] }, {});
4696
+ // @ts-ignore
4701
4697
  return cjs.cjs({
4702
4698
  states: {
4703
4699
  dateSubmitted: "today",
@@ -4738,7 +4734,7 @@ function useDemoTaxAndCashDashboard(props) {
4738
4734
  },
4739
4735
  } })),
4740
4736
  },
4741
- }, props.demoData || formatted || {}, { arrayMerge: (_, a) => a });
4737
+ }, props.demoData || props.stateController || {}, { arrayMerge: (_, a) => a });
4742
4738
  }
4743
4739
 
4744
4740
  const PHONE_EXTENSIONS = {
@@ -5,7 +5,6 @@ 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";
9
8
  /**
10
9
  * @uiName Tax and Cash Status Dashboard
11
10
  */
@@ -1901,10 +1900,7 @@ export class TaxAndCashDashboard {
1901
1900
  }; }
1902
1901
  }
1903
1902
  function useDemoTaxAndCashDashboard(props) {
1904
- const states = parseStates(props.stateController);
1905
- const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-tax-and-cash-dashboard"
1906
- ? { ...prev, ...states[key] }
1907
- : { ...prev, [`${key}_stateController`]: states[key] }, {});
1903
+ // @ts-ignore
1908
1904
  return deepmerge({
1909
1905
  states: {
1910
1906
  dateSubmitted: "today",
@@ -1945,5 +1941,5 @@ function useDemoTaxAndCashDashboard(props) {
1945
1941
  },
1946
1942
  } })),
1947
1943
  },
1948
- }, props.demoData || formatted || {}, { arrayMerge: (_, a) => a });
1944
+ }, props.demoData || props.stateController || {}, { arrayMerge: (_, a) => a });
1949
1945
  }
@@ -14,7 +14,6 @@ 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';
18
17
  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';
19
18
  import { b as VERIFICATION_EVENT_KEY } from './keys-406491dc.js';
20
19
  import { T as TAX_FORM_UPDATED_EVENT_KEY, a as useVeriffApp, g as getStatus, V as VERIFF_COMPLETE_EVENT_KEY } from './usePayoutStatus-42cc6a2c.js';
@@ -4690,10 +4689,7 @@ const TaxAndCashDashboard = class {
4690
4689
  }
4691
4690
  };
4692
4691
  function useDemoTaxAndCashDashboard(props) {
4693
- const states = parseStates(props.stateController);
4694
- const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-tax-and-cash-dashboard"
4695
- ? { ...prev, ...states[key] }
4696
- : { ...prev, [`${key}_stateController`]: states[key] }, {});
4692
+ // @ts-ignore
4697
4693
  return cjs({
4698
4694
  states: {
4699
4695
  dateSubmitted: "today",
@@ -4734,7 +4730,7 @@ function useDemoTaxAndCashDashboard(props) {
4734
4730
  },
4735
4731
  } })),
4736
4732
  },
4737
- }, props.demoData || formatted || {}, { arrayMerge: (_, a) => a });
4733
+ }, props.demoData || props.stateController || {}, { arrayMerge: (_, a) => a });
4738
4734
  }
4739
4735
 
4740
4736
  const PHONE_EXTENSIONS = {