@saasquatch/mint-components 2.0.0-18 → 2.0.0-19

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,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');
@@ -4693,6 +4694,10 @@ const TaxAndCashDashboard = class {
4693
4694
  }
4694
4695
  };
4695
4696
  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
4701
  // @ts-ignore
4697
4702
  return cjs.cjs({
4698
4703
  states: {
@@ -4734,7 +4739,7 @@ function useDemoTaxAndCashDashboard(props) {
4734
4739
  },
4735
4740
  } })),
4736
4741
  },
4737
- }, props.demoData || props.stateController || {}, { arrayMerge: (_, a) => a });
4742
+ }, formatted || props.demoData || {}, { arrayMerge: (_, a) => a });
4738
4743
  }
4739
4744
 
4740
4745
  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
  */
@@ -1900,6 +1901,10 @@ export class TaxAndCashDashboard {
1900
1901
  }; }
1901
1902
  }
1902
1903
  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
1908
  // @ts-ignore
1904
1909
  return deepmerge({
1905
1910
  states: {
@@ -1941,5 +1946,5 @@ function useDemoTaxAndCashDashboard(props) {
1941
1946
  },
1942
1947
  } })),
1943
1948
  },
1944
- }, props.demoData || props.stateController || {}, { arrayMerge: (_, a) => a });
1949
+ }, formatted || props.demoData || {}, { arrayMerge: (_, a) => a });
1945
1950
  }
@@ -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';
@@ -4689,6 +4690,10 @@ const TaxAndCashDashboard = class {
4689
4690
  }
4690
4691
  };
4691
4692
  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
4697
  // @ts-ignore
4693
4698
  return cjs({
4694
4699
  states: {
@@ -4730,7 +4735,7 @@ function useDemoTaxAndCashDashboard(props) {
4730
4735
  },
4731
4736
  } })),
4732
4737
  },
4733
- }, props.demoData || props.stateController || {}, { arrayMerge: (_, a) => a });
4738
+ }, formatted || props.demoData || {}, { arrayMerge: (_, a) => a });
4734
4739
  }
4735
4740
 
4736
4741
  const PHONE_EXTENSIONS = {