@saasquatch/mint-components 2.0.8-1 → 2.0.8-2

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.
@@ -3368,7 +3368,7 @@ const PayoutStatusAlert = class {
3368
3368
  }
3369
3369
  };
3370
3370
  function useDemoPayoutStatusAlert(props) {
3371
- var _a;
3371
+ var _a, _b;
3372
3372
  const states = extractProps.parseStates(props.stateController);
3373
3373
  const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-payout-status-alert"
3374
3374
  ? { ...prev, ...states[key] }
@@ -3376,7 +3376,7 @@ function useDemoPayoutStatusAlert(props) {
3376
3376
  return cjs.cjs({
3377
3377
  states: {
3378
3378
  error: props.demoData.states.error || false,
3379
- status: states.status ? states.status : (_a = props.demoData.states) === null || _a === void 0 ? void 0 : _a.status,
3379
+ status: (_a = states.status) !== null && _a !== void 0 ? _a : (_b = props.demoData.states) === null || _b === void 0 ? void 0 : _b.status,
3380
3380
  loading: props.demoData.states.loading || false,
3381
3381
  veriffLoading: props.demoData.states.veriffLoading || false,
3382
3382
  },
@@ -1054,7 +1054,7 @@ export class PayoutStatusAlert {
1054
1054
  }; }
1055
1055
  }
1056
1056
  function useDemoPayoutStatusAlert(props) {
1057
- var _a;
1057
+ var _a, _b;
1058
1058
  const states = parseStates(props.stateController);
1059
1059
  const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-payout-status-alert"
1060
1060
  ? { ...prev, ...states[key] }
@@ -1062,7 +1062,7 @@ function useDemoPayoutStatusAlert(props) {
1062
1062
  return deepmerge({
1063
1063
  states: {
1064
1064
  error: props.demoData.states.error || false,
1065
- status: states.status ? states.status : (_a = props.demoData.states) === null || _a === void 0 ? void 0 : _a.status,
1065
+ status: (_a = states.status) !== null && _a !== void 0 ? _a : (_b = props.demoData.states) === null || _b === void 0 ? void 0 : _b.status,
1066
1066
  loading: props.demoData.states.loading || false,
1067
1067
  veriffLoading: props.demoData.states.veriffLoading || false,
1068
1068
  },
@@ -3364,7 +3364,7 @@ const PayoutStatusAlert = class {
3364
3364
  }
3365
3365
  };
3366
3366
  function useDemoPayoutStatusAlert(props) {
3367
- var _a;
3367
+ var _a, _b;
3368
3368
  const states = parseStates(props.stateController);
3369
3369
  const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-payout-status-alert"
3370
3370
  ? { ...prev, ...states[key] }
@@ -3372,7 +3372,7 @@ function useDemoPayoutStatusAlert(props) {
3372
3372
  return cjs({
3373
3373
  states: {
3374
3374
  error: props.demoData.states.error || false,
3375
- status: states.status ? states.status : (_a = props.demoData.states) === null || _a === void 0 ? void 0 : _a.status,
3375
+ status: (_a = states.status) !== null && _a !== void 0 ? _a : (_b = props.demoData.states) === null || _b === void 0 ? void 0 : _b.status,
3376
3376
  loading: props.demoData.states.loading || false,
3377
3377
  veriffLoading: props.demoData.states.veriffLoading || false,
3378
3378
  },