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

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.
@@ -4694,55 +4694,49 @@ const TaxAndCashDashboard = class {
4694
4694
  }
4695
4695
  };
4696
4696
  function useDemoTaxAndCashDashboard(props) {
4697
- var _a, _b, _c, _d;
4698
4697
  const parsed = parseStates.parseStates(props.stateController);
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
- 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;
4704
- // @ts-ignore
4705
- return cjs.cjs({
4706
- states: {
4707
- dateSubmitted: "today",
4708
- documentType: "W9",
4709
- documentTypeString: "W-9",
4710
- status: "ACTIVE",
4711
- country: "United States",
4712
- indirectTaxNumber: "55555555",
4713
- indirectTaxType: "Indirect Tax",
4714
- noFormNeeded: false,
4715
- disabled: false,
4716
- loading: false,
4717
- showNewFormDialog: false,
4718
- hasHold: false,
4719
- subRegion: "CA",
4720
- subRegionTaxNumber: undefined,
4721
- qstNumber: undefined,
4722
- isBusinessEntity: false,
4723
- province: undefined,
4724
- notRegistered: true,
4725
- loadingError: false,
4726
- payoutStatus: parsedPayoutStatus || "DONE",
4727
- veriffLoading: false,
4728
- canEditPayoutInfo: true,
4729
- },
4730
- callbacks: {
4731
- onClick: () => console.debug("check step"),
4732
- onEditPayoutInfo: () => console.debug("payout info"),
4733
- onNewFormCancel: () => console.log("hide"),
4734
- onNewFormClick: () => console.log("show"),
4735
- onVerifyClick: () => console.log("verify"),
4736
- },
4737
- text: props.getTextProps(),
4738
- slots: {
4739
- payoutDetailsCardSlot: (index.h("sqm-payout-details-card", { demoData: {
4740
- states: {
4741
- badgeStatus: "nextPayout",
4742
- },
4743
- } })),
4698
+ const formatted = Object.keys(parsed).reduce((prev, key) => key === "sqm-tax-and-cash-dashboard"
4699
+ ? { ...prev, ...parsed[key] }
4700
+ : { ...prev, [`${key}_stateController`]: parsed[key] }, {});
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: "DONE",
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(),
4744
4735
  },
4745
- }, formatted || props.demoData || {}, { arrayMerge: (_, a) => a });
4736
+ props.demoData || {},
4737
+ formatted,
4738
+ ], { arrayMerge: (_, a) => a });
4739
+ return merged;
4746
4740
  }
4747
4741
 
4748
4742
  const PHONE_EXTENSIONS = {
@@ -1901,53 +1901,47 @@ export class TaxAndCashDashboard {
1901
1901
  }; }
1902
1902
  }
1903
1903
  function useDemoTaxAndCashDashboard(props) {
1904
- var _a, _b, _c, _d;
1905
1904
  const parsed = parseStates(props.stateController);
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] }, {});
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;
1911
- // @ts-ignore
1912
- return deepmerge({
1913
- states: {
1914
- dateSubmitted: "today",
1915
- documentType: "W9",
1916
- documentTypeString: "W-9",
1917
- status: "ACTIVE",
1918
- country: "United States",
1919
- indirectTaxNumber: "55555555",
1920
- indirectTaxType: "Indirect Tax",
1921
- noFormNeeded: false,
1922
- disabled: false,
1923
- loading: false,
1924
- showNewFormDialog: false,
1925
- hasHold: false,
1926
- subRegion: "CA",
1927
- subRegionTaxNumber: undefined,
1928
- qstNumber: undefined,
1929
- isBusinessEntity: false,
1930
- province: undefined,
1931
- notRegistered: true,
1932
- loadingError: false,
1933
- payoutStatus: parsedPayoutStatus || "DONE",
1934
- veriffLoading: false,
1935
- canEditPayoutInfo: true,
1936
- },
1937
- callbacks: {
1938
- onClick: () => console.debug("check step"),
1939
- onEditPayoutInfo: () => console.debug("payout info"),
1940
- onNewFormCancel: () => console.log("hide"),
1941
- onNewFormClick: () => console.log("show"),
1942
- onVerifyClick: () => console.log("verify"),
1943
- },
1944
- text: props.getTextProps(),
1945
- slots: {
1946
- payoutDetailsCardSlot: (h("sqm-payout-details-card", { demoData: {
1947
- states: {
1948
- badgeStatus: "nextPayout",
1949
- },
1950
- } })),
1951
- },
1952
- }, formatted || props.demoData || {}, { arrayMerge: (_, a) => a });
1905
+ const formatted = Object.keys(parsed).reduce((prev, key) => key === "sqm-tax-and-cash-dashboard"
1906
+ ? { ...prev, ...parsed[key] }
1907
+ : { ...prev, [`${key}_stateController`]: parsed[key] }, {});
1908
+ const merged = deepmerge.all([
1909
+ {
1910
+ states: {
1911
+ dateSubmitted: "today",
1912
+ documentType: "W9",
1913
+ documentTypeString: "W-9",
1914
+ status: "ACTIVE",
1915
+ country: "United States",
1916
+ indirectTaxNumber: "55555555",
1917
+ indirectTaxType: "Indirect Tax",
1918
+ noFormNeeded: false,
1919
+ disabled: false,
1920
+ loading: false,
1921
+ showNewFormDialog: false,
1922
+ hasHold: false,
1923
+ subRegion: "CA",
1924
+ subRegionTaxNumber: undefined,
1925
+ qstNumber: undefined,
1926
+ isBusinessEntity: false,
1927
+ province: undefined,
1928
+ notRegistered: true,
1929
+ loadingError: false,
1930
+ payoutStatus: "DONE",
1931
+ veriffLoading: false,
1932
+ canEditPayoutInfo: true,
1933
+ },
1934
+ callbacks: {
1935
+ onClick: () => console.debug("check step"),
1936
+ onEditPayoutInfo: () => console.debug("payout info"),
1937
+ onNewFormCancel: () => console.log("hide"),
1938
+ onNewFormClick: () => console.log("show"),
1939
+ onVerifyClick: () => console.log("verify"),
1940
+ },
1941
+ text: props.getTextProps(),
1942
+ },
1943
+ props.demoData || {},
1944
+ formatted,
1945
+ ], { arrayMerge: (_, a) => a });
1946
+ return merged;
1953
1947
  }
@@ -4690,55 +4690,49 @@ const TaxAndCashDashboard = class {
4690
4690
  }
4691
4691
  };
4692
4692
  function useDemoTaxAndCashDashboard(props) {
4693
- var _a, _b, _c, _d;
4694
4693
  const parsed = parseStates(props.stateController);
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
- 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;
4700
- // @ts-ignore
4701
- return cjs({
4702
- states: {
4703
- dateSubmitted: "today",
4704
- documentType: "W9",
4705
- documentTypeString: "W-9",
4706
- status: "ACTIVE",
4707
- country: "United States",
4708
- indirectTaxNumber: "55555555",
4709
- indirectTaxType: "Indirect Tax",
4710
- noFormNeeded: false,
4711
- disabled: false,
4712
- loading: false,
4713
- showNewFormDialog: false,
4714
- hasHold: false,
4715
- subRegion: "CA",
4716
- subRegionTaxNumber: undefined,
4717
- qstNumber: undefined,
4718
- isBusinessEntity: false,
4719
- province: undefined,
4720
- notRegistered: true,
4721
- loadingError: false,
4722
- payoutStatus: parsedPayoutStatus || "DONE",
4723
- veriffLoading: false,
4724
- canEditPayoutInfo: true,
4725
- },
4726
- callbacks: {
4727
- onClick: () => console.debug("check step"),
4728
- onEditPayoutInfo: () => console.debug("payout info"),
4729
- onNewFormCancel: () => console.log("hide"),
4730
- onNewFormClick: () => console.log("show"),
4731
- onVerifyClick: () => console.log("verify"),
4732
- },
4733
- text: props.getTextProps(),
4734
- slots: {
4735
- payoutDetailsCardSlot: (h("sqm-payout-details-card", { demoData: {
4736
- states: {
4737
- badgeStatus: "nextPayout",
4738
- },
4739
- } })),
4694
+ const formatted = Object.keys(parsed).reduce((prev, key) => key === "sqm-tax-and-cash-dashboard"
4695
+ ? { ...prev, ...parsed[key] }
4696
+ : { ...prev, [`${key}_stateController`]: parsed[key] }, {});
4697
+ const merged = cjs.all([
4698
+ {
4699
+ states: {
4700
+ dateSubmitted: "today",
4701
+ documentType: "W9",
4702
+ documentTypeString: "W-9",
4703
+ status: "ACTIVE",
4704
+ country: "United States",
4705
+ indirectTaxNumber: "55555555",
4706
+ indirectTaxType: "Indirect Tax",
4707
+ noFormNeeded: false,
4708
+ disabled: false,
4709
+ loading: false,
4710
+ showNewFormDialog: false,
4711
+ hasHold: false,
4712
+ subRegion: "CA",
4713
+ subRegionTaxNumber: undefined,
4714
+ qstNumber: undefined,
4715
+ isBusinessEntity: false,
4716
+ province: undefined,
4717
+ notRegistered: true,
4718
+ loadingError: false,
4719
+ payoutStatus: "DONE",
4720
+ veriffLoading: false,
4721
+ canEditPayoutInfo: true,
4722
+ },
4723
+ callbacks: {
4724
+ onClick: () => console.debug("check step"),
4725
+ onEditPayoutInfo: () => console.debug("payout info"),
4726
+ onNewFormCancel: () => console.log("hide"),
4727
+ onNewFormClick: () => console.log("show"),
4728
+ onVerifyClick: () => console.log("verify"),
4729
+ },
4730
+ text: props.getTextProps(),
4740
4731
  },
4741
- }, formatted || props.demoData || {}, { arrayMerge: (_, a) => a });
4732
+ props.demoData || {},
4733
+ formatted,
4734
+ ], { arrayMerge: (_, a) => a });
4735
+ return merged;
4742
4736
  }
4743
4737
 
4744
4738
  const PHONE_EXTENSIONS = {