@saasquatch/mint-components 2.0.0-35 → 2.0.0-37

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.
@@ -18,7 +18,6 @@ const luxon = require('./luxon-949beaf2.js');
18
18
  const useReferralTable = require('./useReferralTable-90d4d6e9.js');
19
19
  const IndirectTaxDetailsView = require('./IndirectTaxDetailsView-e5f70b8b.js');
20
20
  const utils$1 = require('./utils-83d125fa.js');
21
- const parseStates = require('./parseStates-d1effc19.js');
22
21
  const data = require('./data-88adb95b.js');
23
22
  const keys = require('./keys-cff24974.js');
24
23
  const usePayoutStatus = require('./usePayoutStatus-fe32dd1a.js');
@@ -4688,18 +4687,12 @@ const TaxAndCashDashboard = class {
4688
4687
  const props = index_module.isDemo()
4689
4688
  ? useDemoTaxAndCashDashboard(this)
4690
4689
  : useTaxAndCashDashboard(this);
4691
- console.log({ stateController: this.stateController });
4692
4690
  return (index.h(index.Host, null, index.h(TaxAndCashDashboardView, { callbacks: props.callbacks, states: props.states, text: props.text, slots: {
4693
4691
  payoutDetailsCardSlot: (index.h("sqm-payout-details-card", Object.assign({}, this.getTextProps()))),
4694
4692
  } })));
4695
4693
  }
4696
4694
  };
4697
4695
  function useDemoTaxAndCashDashboard(props) {
4698
- const states = parseStates.parseStates(props.stateController);
4699
- const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-tax-and-cash-dashboard"
4700
- ? { ...prev, ...states[key] }
4701
- : { ...prev, [`${key}_stateController`]: states[key] }, {});
4702
- console.log({ formatted });
4703
4696
  // @ts-ignore
4704
4697
  return cjs.cjs({
4705
4698
  states: {
@@ -4741,7 +4734,7 @@ function useDemoTaxAndCashDashboard(props) {
4741
4734
  },
4742
4735
  } })),
4743
4736
  },
4744
- }, formatted || props.demoData || {}, { arrayMerge: (_, a) => a });
4737
+ }, props.demoData || props.stateController || {}, { arrayMerge: (_, a) => a });
4745
4738
  }
4746
4739
 
4747
4740
  const PHONE_EXTENSIONS = {
@@ -122,13 +122,13 @@ export class Hero {
122
122
  "optional": true,
123
123
  "docs": {
124
124
  "tags": [{
125
- "text": "Content background",
125
+ "text": "Splash image",
126
126
  "name": "uiName"
127
127
  }, {
128
128
  "text": "Background",
129
129
  "name": "uiWidget"
130
130
  }],
131
- "text": "Content background color or image (for use in the left column)"
131
+ "text": "Splash image or background color (for use in the left column)"
132
132
  },
133
133
  "attribute": "background",
134
134
  "reflect": false
@@ -172,13 +172,13 @@ export class Hero {
172
172
  "optional": true,
173
173
  "docs": {
174
174
  "tags": [{
175
- "text": "Splash image",
175
+ "text": "Content background",
176
176
  "name": "uiName"
177
177
  }, {
178
178
  "text": "Background",
179
179
  "name": "uiWidget"
180
180
  }],
181
- "text": "Splash image or background color (for use in the right column)"
181
+ "text": "Content background color or image (for use in the right column)"
182
182
  },
183
183
  "attribute": "secondary-background",
184
184
  "reflect": false
@@ -5,7 +5,6 @@ import deepmerge from "deepmerge";
5
5
  import { getProps } from "../../../utils/utils";
6
6
  import { TaxAndCashDashboardView } from "./sqm-tax-and-cash-dashboard-view";
7
7
  import { useTaxAndCashDashboard, } from "./useTaxAndCashDashboard";
8
- import { parseStates } from "../../../utils/parseStates";
9
8
  /**
10
9
  * @uiName Tax and Cash Status Dashboard
11
10
  */
@@ -363,7 +362,6 @@ export class TaxAndCashDashboard {
363
362
  const props = isDemo()
364
363
  ? useDemoTaxAndCashDashboard(this)
365
364
  : useTaxAndCashDashboard(this);
366
- console.log({ stateController: this.stateController });
367
365
  return (h(Host, null,
368
366
  h(TaxAndCashDashboardView, { callbacks: props.callbacks, states: props.states, text: props.text, slots: {
369
367
  payoutDetailsCardSlot: (h("sqm-payout-details-card", Object.assign({}, this.getTextProps()))),
@@ -1902,11 +1900,6 @@ export class TaxAndCashDashboard {
1902
1900
  }; }
1903
1901
  }
1904
1902
  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 });
1910
1903
  // @ts-ignore
1911
1904
  return deepmerge({
1912
1905
  states: {
@@ -1948,5 +1941,5 @@ function useDemoTaxAndCashDashboard(props) {
1948
1941
  },
1949
1942
  } })),
1950
1943
  },
1951
- }, formatted || props.demoData || {}, { arrayMerge: (_, a) => a });
1944
+ }, props.demoData || props.stateController || {}, { arrayMerge: (_, a) => a });
1952
1945
  }
@@ -14,7 +14,6 @@ import { l as luxon } from './luxon-bbf75a9d.js';
14
14
  import { g as generateUserError } from './useReferralTable-909ccb28.js';
15
15
  import { a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, O as OtherRegionSlotView, I as InvoiceTableView, v as vatLabels, A as ADDRESS_REGIONS } from './IndirectTaxDetailsView-0a57b622.js';
16
16
  import { t as taxTypeToName, v as validTaxDocument, g as getCountryObj, L as LoadingView, f as formatErrorMessage, a as validateBillingField, o as objectIsFull } from './utils-6122971b.js';
17
- import { p as parseStates } from './parseStates-ed75e224.js';
18
17
  import { i as FORM_STEPS, a as TAX_FORM_CONTEXT_NAMESPACE, S as SORTED_COUNTRIES_NAMESPACE, c as USER_QUERY_NAMESPACE, T as TAX_CONTEXT_NAMESPACE, F as FINANCE_NETWORK_SETTINGS_NAMESPACE, U as USER_FORM_CONTEXT_NAMESPACE, d as COUNTRIES_QUERY_NAMESPACE, C as CURRENCIES_NAMESPACE } from './data-807686c2.js';
19
18
  import { b as VERIFICATION_EVENT_KEY } from './keys-406491dc.js';
20
19
  import { T as TAX_FORM_UPDATED_EVENT_KEY, a as useVeriffApp, g as getStatus, V as VERIFF_COMPLETE_EVENT_KEY } from './usePayoutStatus-42cc6a2c.js';
@@ -4684,18 +4683,12 @@ const TaxAndCashDashboard = class {
4684
4683
  const props = isDemo()
4685
4684
  ? useDemoTaxAndCashDashboard(this)
4686
4685
  : useTaxAndCashDashboard(this);
4687
- console.log({ stateController: this.stateController });
4688
4686
  return (h(Host, null, h(TaxAndCashDashboardView, { callbacks: props.callbacks, states: props.states, text: props.text, slots: {
4689
4687
  payoutDetailsCardSlot: (h("sqm-payout-details-card", Object.assign({}, this.getTextProps()))),
4690
4688
  } })));
4691
4689
  }
4692
4690
  };
4693
4691
  function useDemoTaxAndCashDashboard(props) {
4694
- const states = parseStates(props.stateController);
4695
- const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-tax-and-cash-dashboard"
4696
- ? { ...prev, ...states[key] }
4697
- : { ...prev, [`${key}_stateController`]: states[key] }, {});
4698
- console.log({ formatted });
4699
4692
  // @ts-ignore
4700
4693
  return cjs({
4701
4694
  states: {
@@ -4737,7 +4730,7 @@ function useDemoTaxAndCashDashboard(props) {
4737
4730
  },
4738
4731
  } })),
4739
4732
  },
4740
- }, formatted || props.demoData || {}, { arrayMerge: (_, a) => a });
4733
+ }, props.demoData || props.stateController || {}, { arrayMerge: (_, a) => a });
4741
4734
  }
4742
4735
 
4743
4736
  const PHONE_EXTENSIONS = {