@saasquatch/mint-components 2.0.0-31 → 2.0.0-32

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,9 +4696,10 @@ const TaxAndCashDashboard = class {
4696
4696
  function useDemoTaxAndCashDashboard(props) {
4697
4697
  var _a, _b, _c, _d;
4698
4698
  const parsed = parseStates.parseStates(props.stateController);
4699
- const formatted = parsed["sqm-tax-and-cash-dashboard"] !== undefined
4700
- ? parsed["sqm-tax-and-cash-dashboard"]
4701
- : {};
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] }, {});
4702
4703
  const parsedPayoutStatus = (_b = (_a = formatted === null || formatted === void 0 ? void 0 : formatted.states) === null || _a === void 0 ? void 0 : _a.payoutStatus) !== null && _b !== void 0 ? _b : (_d = (_c = props.demoData) === null || _c === void 0 ? void 0 : _c.states) === null || _d === void 0 ? void 0 : _d.payoutStatus;
4703
4704
  // @ts-ignore
4704
4705
  return cjs.cjs({
@@ -4741,7 +4742,7 @@ function useDemoTaxAndCashDashboard(props) {
4741
4742
  },
4742
4743
  } })),
4743
4744
  },
4744
- }, props.demoData || formatted || {}, { arrayMerge: (_, a) => a });
4745
+ }, formatted || props.demoData || {}, { arrayMerge: (_, a) => a });
4745
4746
  }
4746
4747
 
4747
4748
  const PHONE_EXTENSIONS = {
@@ -1903,9 +1903,10 @@ export class TaxAndCashDashboard {
1903
1903
  function useDemoTaxAndCashDashboard(props) {
1904
1904
  var _a, _b, _c, _d;
1905
1905
  const parsed = parseStates(props.stateController);
1906
- const formatted = parsed["sqm-tax-and-cash-dashboard"] !== undefined
1907
- ? parsed["sqm-tax-and-cash-dashboard"]
1908
- : {};
1906
+ const states = parseStates(props.stateController);
1907
+ const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-tax-and-cash-dashboard"
1908
+ ? { ...prev, ...states[key] }
1909
+ : { ...prev, [`${key}_stateController`]: states[key] }, {});
1909
1910
  const parsedPayoutStatus = (_b = (_a = formatted === null || formatted === void 0 ? void 0 : formatted.states) === null || _a === void 0 ? void 0 : _a.payoutStatus) !== null && _b !== void 0 ? _b : (_d = (_c = props.demoData) === null || _c === void 0 ? void 0 : _c.states) === null || _d === void 0 ? void 0 : _d.payoutStatus;
1910
1911
  // @ts-ignore
1911
1912
  return deepmerge({
@@ -1948,5 +1949,5 @@ function useDemoTaxAndCashDashboard(props) {
1948
1949
  },
1949
1950
  } })),
1950
1951
  },
1951
- }, props.demoData || formatted || {}, { arrayMerge: (_, a) => a });
1952
+ }, formatted || props.demoData || {}, { arrayMerge: (_, a) => a });
1952
1953
  }
@@ -4692,9 +4692,10 @@ const TaxAndCashDashboard = class {
4692
4692
  function useDemoTaxAndCashDashboard(props) {
4693
4693
  var _a, _b, _c, _d;
4694
4694
  const parsed = parseStates(props.stateController);
4695
- const formatted = parsed["sqm-tax-and-cash-dashboard"] !== undefined
4696
- ? parsed["sqm-tax-and-cash-dashboard"]
4697
- : {};
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] }, {});
4698
4699
  const parsedPayoutStatus = (_b = (_a = formatted === null || formatted === void 0 ? void 0 : formatted.states) === null || _a === void 0 ? void 0 : _a.payoutStatus) !== null && _b !== void 0 ? _b : (_d = (_c = props.demoData) === null || _c === void 0 ? void 0 : _c.states) === null || _d === void 0 ? void 0 : _d.payoutStatus;
4699
4700
  // @ts-ignore
4700
4701
  return cjs({
@@ -4737,7 +4738,7 @@ function useDemoTaxAndCashDashboard(props) {
4737
4738
  },
4738
4739
  } })),
4739
4740
  },
4740
- }, props.demoData || formatted || {}, { arrayMerge: (_, a) => a });
4741
+ }, formatted || props.demoData || {}, { arrayMerge: (_, a) => a });
4741
4742
  }
4742
4743
 
4743
4744
  const PHONE_EXTENSIONS = {