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

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.
@@ -4666,7 +4666,7 @@ const TaxAndCashDashboard = class {
4666
4666
  this.cancelButton = "Cancel";
4667
4667
  /**
4668
4668
  * @undocumented
4669
- * @componentState { "title": "Payouts on hold", "props": { "states": { "payoutStatus": "HOLD" } }, "dependencies": ["sqm-payout-status-alert"], "uiGroup": "Dashboard Properties" }
4669
+ * @componentState { "title": "Payouts on hold", "props": { "states": { "payoutStatus": "HOLD" } }, "dependencies": ["sqm-payout-status-alert"] "uiGroup": "Dashboard Properties" }
4670
4670
  */
4671
4671
  this.stateController = "{}";
4672
4672
  domContextHooks_module.h$1(this);
@@ -4694,49 +4694,54 @@ const TaxAndCashDashboard = class {
4694
4694
  }
4695
4695
  };
4696
4696
  function useDemoTaxAndCashDashboard(props) {
4697
+ var _a, _b, _c, _d;
4697
4698
  const parsed = parseStates.parseStates(props.stateController);
4698
4699
  const formatted = parsed["sqm-tax-and-cash-dashboard"] !== undefined
4699
4700
  ? parsed["sqm-tax-and-cash-dashboard"]
4700
4701
  : {};
4701
- const merged = cjs.cjs.all([
4702
- {
4703
- states: {
4704
- dateSubmitted: "today",
4705
- documentType: "W9",
4706
- documentTypeString: "W-9",
4707
- status: "ACTIVE",
4708
- country: "United States",
4709
- indirectTaxNumber: "55555555",
4710
- indirectTaxType: "Indirect Tax",
4711
- noFormNeeded: false,
4712
- disabled: false,
4713
- loading: false,
4714
- showNewFormDialog: false,
4715
- hasHold: false,
4716
- subRegion: "CA",
4717
- subRegionTaxNumber: undefined,
4718
- qstNumber: undefined,
4719
- isBusinessEntity: false,
4720
- province: undefined,
4721
- notRegistered: true,
4722
- loadingError: false,
4723
- payoutStatus: "HOLD",
4724
- veriffLoading: false,
4725
- canEditPayoutInfo: true,
4726
- },
4727
- callbacks: {
4728
- onClick: () => console.debug("check step"),
4729
- onEditPayoutInfo: () => console.debug("payout info"),
4730
- onNewFormCancel: () => console.log("hide"),
4731
- onNewFormClick: () => console.log("show"),
4732
- onVerifyClick: () => console.log("verify"),
4733
- },
4734
- text: props.getTextProps(),
4702
+ 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
+ // @ts-ignore
4704
+ return cjs.cjs({
4705
+ states: {
4706
+ dateSubmitted: "today",
4707
+ documentType: "W9",
4708
+ documentTypeString: "W-9",
4709
+ status: "ACTIVE",
4710
+ country: "United States",
4711
+ indirectTaxNumber: "55555555",
4712
+ indirectTaxType: "Indirect Tax",
4713
+ noFormNeeded: false,
4714
+ disabled: false,
4715
+ loading: false,
4716
+ showNewFormDialog: false,
4717
+ hasHold: false,
4718
+ subRegion: "CA",
4719
+ subRegionTaxNumber: undefined,
4720
+ qstNumber: undefined,
4721
+ isBusinessEntity: false,
4722
+ province: undefined,
4723
+ notRegistered: true,
4724
+ loadingError: false,
4725
+ payoutStatus: parsedPayoutStatus || "DONE",
4726
+ veriffLoading: false,
4727
+ canEditPayoutInfo: true,
4728
+ },
4729
+ callbacks: {
4730
+ onClick: () => console.debug("check step"),
4731
+ onEditPayoutInfo: () => console.debug("payout info"),
4732
+ onNewFormCancel: () => console.log("hide"),
4733
+ onNewFormClick: () => console.log("show"),
4734
+ onVerifyClick: () => console.log("verify"),
4735
+ },
4736
+ text: props.getTextProps(),
4737
+ slots: {
4738
+ payoutDetailsCardSlot: (index.h("sqm-payout-details-card", { demoData: {
4739
+ states: {
4740
+ badgeStatus: "nextPayout",
4741
+ },
4742
+ } })),
4735
4743
  },
4736
- props.demoData || {},
4737
- formatted,
4738
- ], { arrayMerge: (_, a) => a });
4739
- return merged;
4744
+ }, props.demoData || formatted || {}, { arrayMerge: (_, a) => a });
4740
4745
  }
4741
4746
 
4742
4747
  const PHONE_EXTENSIONS = {