@saasquatch/mint-components 2.0.0-43 → 2.0.0-45

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.
@@ -4696,11 +4696,8 @@ const TaxAndCashDashboard = class {
4696
4696
  }
4697
4697
  };
4698
4698
  function useDemoTaxAndCashDashboard(props) {
4699
- const states = parseStates.parseStates(props.stateController);
4700
- const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-tax-and-cash-dashboard"
4701
- ? { ...prev, ...states[key] }
4702
- : { ...prev, [`${key}_stateController`]: states[key] }, {});
4703
- console.log({ formatted });
4699
+ const stateController = parseStates.parseStates(props.stateController);
4700
+ console.log({ stateController });
4704
4701
  // @ts-ignore
4705
4702
  return cjs.cjs({
4706
4703
  states: {
@@ -4723,7 +4720,7 @@ function useDemoTaxAndCashDashboard(props) {
4723
4720
  province: undefined,
4724
4721
  notRegistered: true,
4725
4722
  loadingError: false,
4726
- payoutStatus: formatted.payoutStatus || "DONE",
4723
+ payoutStatus: "DONE",
4727
4724
  veriffLoading: false,
4728
4725
  canEditPayoutInfo: true,
4729
4726
  },
@@ -4742,7 +4739,7 @@ function useDemoTaxAndCashDashboard(props) {
4742
4739
  },
4743
4740
  } })),
4744
4741
  },
4745
- }, formatted || props.demoData || {}, { arrayMerge: (_, a) => a });
4742
+ }, stateController || props.demoData || {}, { arrayMerge: (_, a) => a });
4746
4743
  }
4747
4744
 
4748
4745
  const PHONE_EXTENSIONS = {
@@ -1902,11 +1902,8 @@ export class TaxAndCashDashboard {
1902
1902
  }; }
1903
1903
  }
1904
1904
  function useDemoTaxAndCashDashboard(props) {
1905
- const states = parseStates(props.stateController);
1906
- const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-tax-and-cash-dashboard"
1907
- ? { ...prev, ...states[key] }
1908
- : { ...prev, [`${key}_stateController`]: states[key] }, {});
1909
- console.log({ formatted });
1905
+ const stateController = parseStates(props.stateController);
1906
+ console.log({ stateController });
1910
1907
  // @ts-ignore
1911
1908
  return deepmerge({
1912
1909
  states: {
@@ -1929,7 +1926,7 @@ function useDemoTaxAndCashDashboard(props) {
1929
1926
  province: undefined,
1930
1927
  notRegistered: true,
1931
1928
  loadingError: false,
1932
- payoutStatus: formatted.payoutStatus || "DONE",
1929
+ payoutStatus: "DONE",
1933
1930
  veriffLoading: false,
1934
1931
  canEditPayoutInfo: true,
1935
1932
  },
@@ -1948,5 +1945,5 @@ function useDemoTaxAndCashDashboard(props) {
1948
1945
  },
1949
1946
  } })),
1950
1947
  },
1951
- }, formatted || props.demoData || {}, { arrayMerge: (_, a) => a });
1948
+ }, stateController || props.demoData || {}, { arrayMerge: (_, a) => a });
1952
1949
  }
@@ -4692,11 +4692,8 @@ const TaxAndCashDashboard = class {
4692
4692
  }
4693
4693
  };
4694
4694
  function useDemoTaxAndCashDashboard(props) {
4695
- const states = parseStates(props.stateController);
4696
- const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-tax-and-cash-dashboard"
4697
- ? { ...prev, ...states[key] }
4698
- : { ...prev, [`${key}_stateController`]: states[key] }, {});
4699
- console.log({ formatted });
4695
+ const stateController = parseStates(props.stateController);
4696
+ console.log({ stateController });
4700
4697
  // @ts-ignore
4701
4698
  return cjs({
4702
4699
  states: {
@@ -4719,7 +4716,7 @@ function useDemoTaxAndCashDashboard(props) {
4719
4716
  province: undefined,
4720
4717
  notRegistered: true,
4721
4718
  loadingError: false,
4722
- payoutStatus: formatted.payoutStatus || "DONE",
4719
+ payoutStatus: "DONE",
4723
4720
  veriffLoading: false,
4724
4721
  canEditPayoutInfo: true,
4725
4722
  },
@@ -4738,7 +4735,7 @@ function useDemoTaxAndCashDashboard(props) {
4738
4735
  },
4739
4736
  } })),
4740
4737
  },
4741
- }, formatted || props.demoData || {}, { arrayMerge: (_, a) => a });
4738
+ }, stateController || props.demoData || {}, { arrayMerge: (_, a) => a });
4742
4739
  }
4743
4740
 
4744
4741
  const PHONE_EXTENSIONS = {