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

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.
Files changed (59) hide show
  1. package/dist/cjs/{ShadowViewAddon-23b04c91.js → ShadowViewAddon-016bebfd.js} +1 -1
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/mint-components.cjs.js +1 -1
  4. package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +44 -43
  5. package/dist/cjs/sqm-big-stat_46.cjs.entry.js +17 -45
  6. package/dist/cjs/sqm-empty_4.cjs.entry.js +1 -1
  7. package/dist/cjs/{sqm-portal-container-view-07e4343f.js → sqm-portal-container-view-ca86b9e5.js} +1 -1
  8. package/dist/cjs/sqm-stencilbook.cjs.entry.js +6 -5
  9. package/dist/collection/components/sqm-hero/sqm-hero.js +1 -9
  10. package/dist/collection/components/sqm-portal-container/sqm-portal-container-view.js +1 -1
  11. package/dist/collection/components/sqm-portal-footer/sqm-portal-footer.js +1 -1
  12. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +1 -34
  13. package/dist/collection/components/sqm-titled-section/sqm-titled-section.js +1 -1
  14. package/dist/collection/components/tax-and-cash/TaxForm.stories.js +4 -3
  15. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +48 -2
  16. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +46 -45
  17. package/dist/esm/{ShadowViewAddon-c0bd62f7.js → ShadowViewAddon-4cde160a.js} +1 -1
  18. package/dist/esm/loader.js +1 -1
  19. package/dist/esm/mint-components.js +1 -1
  20. package/dist/esm/sqm-banking-info-form_10.entry.js +44 -43
  21. package/dist/esm/sqm-big-stat_46.entry.js +17 -45
  22. package/dist/esm/sqm-empty_4.entry.js +1 -1
  23. package/dist/esm/{sqm-portal-container-view-176e92e3.js → sqm-portal-container-view-16309b22.js} +1 -1
  24. package/dist/esm/sqm-stencilbook.entry.js +6 -5
  25. package/dist/esm-es5/{ShadowViewAddon-c0bd62f7.js → ShadowViewAddon-4cde160a.js} +1 -1
  26. package/dist/esm-es5/loader.js +1 -1
  27. package/dist/esm-es5/mint-components.js +1 -1
  28. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
  29. package/dist/esm-es5/sqm-big-stat_46.entry.js +1 -1
  30. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  31. package/dist/esm-es5/{sqm-portal-container-view-176e92e3.js → sqm-portal-container-view-16309b22.js} +1 -1
  32. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  33. package/dist/mint-components/mint-components.esm.js +1 -1
  34. package/dist/mint-components/p-1ac5cbd6.system.entry.js +1 -0
  35. package/dist/mint-components/{p-9580aac3.js → p-1fa9ef02.js} +1 -1
  36. package/dist/mint-components/{p-b8d3fb57.entry.js → p-38263521.entry.js} +12 -12
  37. package/dist/mint-components/{p-76d4ef41.entry.js → p-3bf5cd51.entry.js} +1 -1
  38. package/dist/mint-components/{p-a38dd63f.system.entry.js → p-3ea29bac.system.entry.js} +1 -1
  39. package/dist/mint-components/{p-7d735c9c.js → p-4ffc5bce.js} +1 -1
  40. package/dist/mint-components/p-69d8b4f2.system.entry.js +1 -0
  41. package/dist/mint-components/p-92bed2ad.system.js +1 -0
  42. package/dist/mint-components/p-967a9040.system.js +1 -1
  43. package/dist/mint-components/{p-35081b0c.system.entry.js → p-9fed62f8.system.entry.js} +1 -1
  44. package/dist/mint-components/{p-bb452830.system.js → p-c62b277d.system.js} +1 -1
  45. package/dist/mint-components/p-d460e0bd.entry.js +99 -0
  46. package/dist/mint-components/{p-f860e7f1.entry.js → p-e110688b.entry.js} +2 -2
  47. package/dist/types/components/sqm-portal-footer/sqm-portal-footer.d.ts +1 -1
  48. package/dist/types/components/sqm-titled-section/sqm-titled-section.d.ts +1 -1
  49. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +8 -0
  50. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +1 -1
  51. package/dist/types/components.d.ts +18 -2
  52. package/docs/docs.docx +0 -0
  53. package/docs/raisins.json +1 -1
  54. package/grapesjs/grapesjs.js +1 -1
  55. package/package.json +1 -1
  56. package/dist/mint-components/p-13e66b37.system.entry.js +0 -1
  57. package/dist/mint-components/p-a0730259.entry.js +0 -99
  58. package/dist/mint-components/p-a6f4fb03.system.js +0 -1
  59. package/dist/mint-components/p-c5fea579.system.entry.js +0 -1
@@ -26,8 +26,8 @@ const sqmPortalLoginView = require('./sqm-portal-login-view-bb50304c.js');
26
26
  const usePortalLogin = require('./usePortalLogin-353f776a.js');
27
27
  const AsYouType = require('./AsYouType-6788393a.js');
28
28
  const utilities = require('./utilities-9a0c5e91.js');
29
- const ShadowViewAddon = require('./ShadowViewAddon-23b04c91.js');
30
- require('./sqm-portal-container-view-07e4343f.js');
29
+ const ShadowViewAddon = require('./ShadowViewAddon-016bebfd.js');
30
+ require('./sqm-portal-container-view-ca86b9e5.js');
31
31
  const parseStates = require('./parseStates-d1effc19.js');
32
32
  const usePayoutStatus = require('./usePayoutStatus-fe32dd1a.js');
33
33
 
@@ -1568,13 +1568,6 @@ const Hero = class {
1568
1568
  * @uiName Minimum height (in px)
1569
1569
  */
1570
1570
  this.minHeight = 200;
1571
- /**
1572
- * Content background color or image (for use in the left column)
1573
- *
1574
- * @uiName Content background
1575
- * @uiWidget Background
1576
- */
1577
- this.background = "#f9fafb";
1578
1571
  /**
1579
1572
  * @uiName Padding size
1580
1573
  * @uiEnum ["none", "small", "medium","large"]
@@ -3191,6 +3184,14 @@ const PayoutStatusAlert = class {
3191
3184
  * @uiName Error description
3192
3185
  */
3193
3186
  this.errorDescription = "There was an error with determining your payout status.";
3187
+ /**
3188
+ * @undocumented
3189
+ * @componentState { "title": "Payout Info Required", "props": { "states": { "status": "INFORMATION_REQUIRED" } }, "dependencies": ["sqm-payout-status-alert"] }
3190
+ * @componentState { "title": "Verification Required", "props": { "states": { "status": "VERIFICATION:REQUIRED" } }, "dependencies": ["sqm-payout-status-alert"] }
3191
+ * @componentState { "title": "Identity Verification", "props": { "states": { "status": "VERIFICATION:REVIEW" } }, "dependencies": ["sqm-payout-status-alert"] }
3192
+ * @componentState { "title": "Account Hold", "props": { "states": { "status": "HOLD" } }, "dependencies": ["sqm-payout-status-alert"] }
3193
+ */
3194
+ this.stateController = "{}";
3194
3195
  domContextHooks_module.h$1(this);
3195
3196
  }
3196
3197
  disconnectedCallback() { }
@@ -3205,12 +3206,16 @@ const PayoutStatusAlert = class {
3205
3206
  }
3206
3207
  };
3207
3208
  function useDemoPayoutStatusAlert(props) {
3209
+ const states = parseStates.parseStates(props.stateController);
3210
+ const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-payout-status-alert"
3211
+ ? { ...prev, ...states[key] }
3212
+ : { ...prev, [`${key}_stateController`]: states[key] }, {});
3208
3213
  return cjs.cjs({
3209
3214
  states: {
3210
3215
  error: false,
3211
3216
  status: "INFORMATION_REQUIRED",
3212
3217
  loading: false,
3213
- showVerifyIdentity: false,
3218
+ veriffLoading: false,
3214
3219
  },
3215
3220
  data: { type: "SquatchAdmin" },
3216
3221
  text: props.getTextProps(),
@@ -3218,7 +3223,7 @@ function useDemoPayoutStatusAlert(props) {
3218
3223
  onTermsClick: () => { },
3219
3224
  onClick: () => console.log("show"),
3220
3225
  },
3221
- }, props.demoData || {}, { arrayMerge: (_, a) => a });
3226
+ }, formatted || props.demoData || {}, { arrayMerge: (_, a) => a });
3222
3227
  }
3223
3228
 
3224
3229
  const GET_USER$1 = index_module.dist.gql `
@@ -5759,40 +5764,7 @@ function useRewardExchangeListDemo(props) {
5759
5764
  const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-reward-exchange-list"
5760
5765
  ? { ...prev, ...states[key] }
5761
5766
  : { ...prev, [`${key}_stateController`]: states[key] }, {});
5762
- const finalProps = cjs.cjs({ ...ShadowViewAddon.demoRewardExchange, content: { text: props } },
5763
- // {
5764
- // states: {
5765
- // content: {
5766
- // text: props,
5767
- // },
5768
- // redeemStage: "chooseReward",
5769
- // amount: 0,
5770
- // selectedStep: undefined,
5771
- // selectedItem: undefined,
5772
- // open: false,
5773
- // exchangeError: false,
5774
- // queryError: false,
5775
- // loading: false,
5776
- // noExchangeOptions: false,
5777
- // // empty: EmptySlot(),
5778
- // },
5779
- // data: {
5780
- // // shareCode: "SHARECODE123",
5781
- // exchangeList: demoRewardExchange.data.exchangeList,
5782
- // },
5783
- // callbacks: {
5784
- // exchangeReward: () => {},
5785
- // setExchangeState: (_: ExchangeState) => {},
5786
- // setStage: (_: Stages) => {},
5787
- // resetState: () => {},
5788
- // copyFuelTankCode: () => {},
5789
- // },
5790
- // refs: {
5791
- // canvasRef: {},
5792
- // },
5793
- // },
5794
- props.demoData || formatted || {}, { arrayMerge: (_, a) => a });
5795
- console.log({ finalProps });
5767
+ const finalProps = cjs.cjs({ ...ShadowViewAddon.demoRewardExchange, content: { text: props } }, props.demoData || formatted || {}, { arrayMerge: (_, a) => a });
5796
5768
  return finalProps;
5797
5769
  }
5798
5770
 
@@ -8,7 +8,7 @@ const domContextHooks_module = require('./dom-context-hooks.module-7fa676ae.js')
8
8
  require('./index.module-4f54e412.js');
9
9
  const utils = require('./utils-0d3ac0fb.js');
10
10
  require('./JSS-8503a151.js');
11
- const sqmPortalContainerView = require('./sqm-portal-container-view-07e4343f.js');
11
+ const sqmPortalContainerView = require('./sqm-portal-container-view-ca86b9e5.js');
12
12
 
13
13
  function EmptyStateView(props) {
14
14
  const { emptyStateHeader, emptyStateImage, emptyStateText, supportText, missingFeature = "", } = props;
@@ -38,7 +38,7 @@ function PortalContainerView(props, children) {
38
38
  maxWidth: props.maxWidth,
39
39
  margin: props.center && "auto",
40
40
  justifyContent: props.justifyContent,
41
- backgroundColor: props.backgroundColor || "var(--sqm-portal-background)",
41
+ backgroundColor: props.backgroundColor || "inherit",
42
42
  },
43
43
  };
44
44
  const vanillaStyle = `
@@ -34,8 +34,8 @@ const sqmPortalResetPasswordView = require('./sqm-portal-reset-password-view-25e
34
34
  const sqmPortalVerifyEmailView = require('./sqm-portal-verify-email-view-1c4e781f.js');
35
35
  require('./ErrorView-3f91e5ab.js');
36
36
  const sqmQrCodeView = require('./sqm-qr-code-view-4ccf89da.js');
37
- const ShadowViewAddon = require('./ShadowViewAddon-23b04c91.js');
38
- const sqmPortalContainerView = require('./sqm-portal-container-view-07e4343f.js');
37
+ const ShadowViewAddon = require('./ShadowViewAddon-016bebfd.js');
38
+ const sqmPortalContainerView = require('./sqm-portal-container-view-ca86b9e5.js');
39
39
  const IndirectTaxDetailsView = require('./IndirectTaxDetailsView-e5f70b8b.js');
40
40
  const utils = require('./utils-83d125fa.js');
41
41
  const sqmLeadInputFieldView = require('./sqm-lead-input-field-view-06ed3632.js');
@@ -16722,9 +16722,10 @@ const TaxAndCashDashboardW9ThresholdReached = () => {
16722
16722
  documentTypeString: utils.taxTypeToName("W9"),
16723
16723
  dateSubmitted: "Jan 18th, 2025",
16724
16724
  noFormNeeded: false,
16725
- notRegistered: true,
16725
+ notRegistered: false,
16726
16726
  showNewFormDialog: false,
16727
16727
  hasHold: false,
16728
+ enforceUsTaxComplianceOption: "CASH_ONLY_DEFER_W9",
16728
16729
  },
16729
16730
  } }));
16730
16731
  };
@@ -16750,7 +16751,7 @@ const TaxAndCashDashboardPayoutsOnHold = () => {
16750
16751
  return (index.h("sqm-tax-and-cash-dashboard", { demoData: {
16751
16752
  ...dashboardProps,
16752
16753
  states: {
16753
- payoutStatus: "DONE",
16754
+ payoutStatus: "HOLD",
16754
16755
  veriffLoading: false,
16755
16756
  canEditPayoutInfo: true,
16756
16757
  disabled: true,
@@ -16762,7 +16763,7 @@ const TaxAndCashDashboardPayoutsOnHold = () => {
16762
16763
  indirectTaxNumber: "123456",
16763
16764
  country: "Slovania",
16764
16765
  showNewFormDialog: false,
16765
- hasHold: true,
16766
+ hasHold: false,
16766
16767
  },
16767
16768
  } }));
16768
16769
  };
@@ -24,13 +24,6 @@ export class Hero {
24
24
  * @uiName Minimum height (in px)
25
25
  */
26
26
  this.minHeight = 200;
27
- /**
28
- * Content background color or image (for use in the left column)
29
- *
30
- * @uiName Content background
31
- * @uiWidget Background
32
- */
33
- this.background = "#f9fafb";
34
27
  /**
35
28
  * @uiName Padding size
36
29
  * @uiEnum ["none", "small", "medium","large"]
@@ -138,8 +131,7 @@ export class Hero {
138
131
  "text": "Content background color or image (for use in the left column)"
139
132
  },
140
133
  "attribute": "background",
141
- "reflect": false,
142
- "defaultValue": "\"#f9fafb\""
134
+ "reflect": false
143
135
  },
144
136
  "paddingSize": {
145
137
  "type": "string",
@@ -14,7 +14,7 @@ export function PortalContainerView(props, children) {
14
14
  maxWidth: props.maxWidth,
15
15
  margin: props.center && "auto",
16
16
  justifyContent: props.justifyContent,
17
- backgroundColor: props.backgroundColor || "var(--sqm-portal-background)",
17
+ backgroundColor: props.backgroundColor || "inherit",
18
18
  },
19
19
  };
20
20
  const vanillaStyle = `
@@ -4,7 +4,7 @@ import { getProps } from "../../utils/utils";
4
4
  import { PortalFooterView } from "./sqm-portal-footer-view";
5
5
  /**
6
6
  * @uiName Footer
7
- * @validParents ["div","sqm-brand","sqm-portal-container", "sqm-divided-layout", "sqm-referral-card", "sqm-instant-access-registration", "sqm-portal-frame"]
7
+ * @validParents ["div","sqm-brand","sqm-portal-container", "sqm-divided-layout", "sqm-referral-card", "sqm-instant-access-registration", "sqm-portal-frame", "sqm-referred-registration"]
8
8
  */
9
9
  export class PortalFooter {
10
10
  constructor() {
@@ -793,39 +793,6 @@ function useRewardExchangeListDemo(props) {
793
793
  const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-reward-exchange-list"
794
794
  ? { ...prev, ...states[key] }
795
795
  : { ...prev, [`${key}_stateController`]: states[key] }, {});
796
- const finalProps = deepmerge({ ...demoRewardExchange, content: { text: props } },
797
- // {
798
- // states: {
799
- // content: {
800
- // text: props,
801
- // },
802
- // redeemStage: "chooseReward",
803
- // amount: 0,
804
- // selectedStep: undefined,
805
- // selectedItem: undefined,
806
- // open: false,
807
- // exchangeError: false,
808
- // queryError: false,
809
- // loading: false,
810
- // noExchangeOptions: false,
811
- // // empty: EmptySlot(),
812
- // },
813
- // data: {
814
- // // shareCode: "SHARECODE123",
815
- // exchangeList: demoRewardExchange.data.exchangeList,
816
- // },
817
- // callbacks: {
818
- // exchangeReward: () => {},
819
- // setExchangeState: (_: ExchangeState) => {},
820
- // setStage: (_: Stages) => {},
821
- // resetState: () => {},
822
- // copyFuelTankCode: () => {},
823
- // },
824
- // refs: {
825
- // canvasRef: {},
826
- // },
827
- // },
828
- props.demoData || formatted || {}, { arrayMerge: (_, a) => a });
829
- console.log({ finalProps });
796
+ const finalProps = deepmerge({ ...demoRewardExchange, content: { text: props } }, props.demoData || formatted || {}, { arrayMerge: (_, a) => a });
830
797
  return finalProps;
831
798
  }
@@ -4,7 +4,7 @@ import { getProps } from "../../utils/utils";
4
4
  import { PortalSectionView } from "./sqm-portal-section-view";
5
5
  /**
6
6
  * @uiName Titled Section
7
- * @validParents ["sqm-portal-container","div","sqm-divided-layout","template","sqm-hero","sqm-tab", "sqm-referred-registration", "sqb-program-section","sqb-conditional-section", "sqm-instant-access-registration", "sqm-referral-card"]
7
+ * @validParents ["sqm-portal-container","div","sqm-divided-layout","template","sqm-hero","sqm-tab", "sqm-referred-registration", "sqb-program-section","sqb-conditional-section", "sqm-instant-access-registration", "sqm-referral-card", "sqm-referred-registration"]
8
8
  * @validChildren ["div","sqm-portal-container","p","sqm-timeline","h1","h2","h3","h5","h4","sqm-qr-code","sqm-referral-code","sqm-referral-codes","sqm-share-code","sqm-share-link","sqm-text","span", "sqm-user-name"]
9
9
  * @slots [{"name":"label", "title":"Label"},{"name":"content", "title":"Content"}]
10
10
  * @exampleGroup Layout
@@ -1125,9 +1125,10 @@ export const TaxAndCashDashboardW9ThresholdReached = () => {
1125
1125
  documentTypeString: taxTypeToName("W9"),
1126
1126
  dateSubmitted: "Jan 18th, 2025",
1127
1127
  noFormNeeded: false,
1128
- notRegistered: true,
1128
+ notRegistered: false,
1129
1129
  showNewFormDialog: false,
1130
1130
  hasHold: false,
1131
+ enforceUsTaxComplianceOption: "CASH_ONLY_DEFER_W9",
1131
1132
  },
1132
1133
  } }));
1133
1134
  };
@@ -1153,7 +1154,7 @@ export const TaxAndCashDashboardPayoutsOnHold = () => {
1153
1154
  return (h("sqm-tax-and-cash-dashboard", { demoData: {
1154
1155
  ...dashboardProps,
1155
1156
  states: {
1156
- payoutStatus: "DONE",
1157
+ payoutStatus: "HOLD",
1157
1158
  veriffLoading: false,
1158
1159
  canEditPayoutInfo: true,
1159
1160
  disabled: true,
@@ -1165,7 +1166,7 @@ export const TaxAndCashDashboardPayoutsOnHold = () => {
1165
1166
  indirectTaxNumber: "123456",
1166
1167
  country: "Slovania",
1167
1168
  showNewFormDialog: false,
1168
- hasHold: true,
1169
+ hasHold: false,
1169
1170
  },
1170
1171
  } }));
1171
1172
  };
@@ -5,6 +5,7 @@ import deepmerge from "deepmerge";
5
5
  import { getProps } from "../../../utils/utils";
6
6
  import { PayoutStatusAlertView, } from "./sqm-payout-status-alert-view";
7
7
  import { usePayoutStatus } from "./usePayoutStatus";
8
+ import { parseStates } from "../../../utils/parseStates";
8
9
  /**
9
10
  * @uiName Payout Status Alert
10
11
  * @validParents ["sqm-portal-container","div","sqm-hero","sqm-instant-access-registration","sqm-brand","sqb-program-section","sqb-conditional-section"]
@@ -109,6 +110,14 @@ export class PayoutStatusAlert {
109
110
  * @uiName Error description
110
111
  */
111
112
  this.errorDescription = "There was an error with determining your payout status.";
113
+ /**
114
+ * @undocumented
115
+ * @componentState { "title": "Payout Info Required", "props": { "states": { "status": "INFORMATION_REQUIRED" } }, "dependencies": ["sqm-payout-status-alert"] }
116
+ * @componentState { "title": "Verification Required", "props": { "states": { "status": "VERIFICATION:REQUIRED" } }, "dependencies": ["sqm-payout-status-alert"] }
117
+ * @componentState { "title": "Identity Verification", "props": { "states": { "status": "VERIFICATION:REVIEW" } }, "dependencies": ["sqm-payout-status-alert"] }
118
+ * @componentState { "title": "Account Hold", "props": { "states": { "status": "HOLD" } }, "dependencies": ["sqm-payout-status-alert"] }
119
+ */
120
+ this.stateController = "{}";
112
121
  withHooks(this);
113
122
  }
114
123
  disconnectedCallback() { }
@@ -628,6 +637,39 @@ export class PayoutStatusAlert {
628
637
  "reflect": false,
629
638
  "defaultValue": "\"There was an error with determining your payout status.\""
630
639
  },
640
+ "stateController": {
641
+ "type": "string",
642
+ "mutable": false,
643
+ "complexType": {
644
+ "original": "string",
645
+ "resolved": "string",
646
+ "references": {}
647
+ },
648
+ "required": false,
649
+ "optional": true,
650
+ "docs": {
651
+ "tags": [{
652
+ "text": undefined,
653
+ "name": "undocumented"
654
+ }, {
655
+ "text": "{ \"title\": \"Payout Info Required\", \"props\": { \"states\": { \"status\": \"INFORMATION_REQUIRED\" } }, \"dependencies\": [\"sqm-payout-status-alert\"] }",
656
+ "name": "componentState"
657
+ }, {
658
+ "text": "{ \"title\": \"Verification Required\", \"props\": { \"states\": { \"status\": \"VERIFICATION:REQUIRED\" } }, \"dependencies\": [\"sqm-payout-status-alert\"] }",
659
+ "name": "componentState"
660
+ }, {
661
+ "text": "{ \"title\": \"Identity Verification\", \"props\": { \"states\": { \"status\": \"VERIFICATION:REVIEW\" } }, \"dependencies\": [\"sqm-payout-status-alert\"] }",
662
+ "name": "componentState"
663
+ }, {
664
+ "text": "{ \"title\": \"Account Hold\", \"props\": { \"states\": { \"status\": \"HOLD\" } }, \"dependencies\": [\"sqm-payout-status-alert\"] }",
665
+ "name": "componentState"
666
+ }],
667
+ "text": ""
668
+ },
669
+ "attribute": "state-controller",
670
+ "reflect": false,
671
+ "defaultValue": "\"{}\""
672
+ },
631
673
  "demoData": {
632
674
  "type": "unknown",
633
675
  "mutable": false,
@@ -661,12 +703,16 @@ export class PayoutStatusAlert {
661
703
  }; }
662
704
  }
663
705
  function useDemoPayoutStatusAlert(props) {
706
+ const states = parseStates(props.stateController);
707
+ const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-payout-status-alert"
708
+ ? { ...prev, ...states[key] }
709
+ : { ...prev, [`${key}_stateController`]: states[key] }, {});
664
710
  return deepmerge({
665
711
  states: {
666
712
  error: false,
667
713
  status: "INFORMATION_REQUIRED",
668
714
  loading: false,
669
- showVerifyIdentity: false,
715
+ veriffLoading: false,
670
716
  },
671
717
  data: { type: "SquatchAdmin" },
672
718
  text: props.getTextProps(),
@@ -674,5 +720,5 @@ function useDemoPayoutStatusAlert(props) {
674
720
  onTermsClick: () => { },
675
721
  onClick: () => console.log("show"),
676
722
  },
677
- }, props.demoData || {}, { arrayMerge: (_, a) => a });
723
+ }, formatted || props.demoData || {}, { arrayMerge: (_, a) => a });
678
724
  }
@@ -5,6 +5,7 @@ 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";
8
9
  /**
9
10
  * @uiName Tax and Cash Status Dashboard
10
11
  */
@@ -340,7 +341,7 @@ export class TaxAndCashDashboard {
340
341
  this.cancelButton = "Cancel";
341
342
  /**
342
343
  * @undocumented
343
- * @componentState { "title": "Payouts on hold", "props": { "states": { "payoutStatus": "HOLD" } }, "uiGroup": "Dashboard Properties" }
344
+ * @componentState { "title": "Payouts on hold", "props": { "states": { "payoutStatus": "HOLD" } }, "dependencies": ["sqm-payout-status-alert"], "uiGroup": "Dashboard Properties" }
344
345
  */
345
346
  this.stateController = "{}";
346
347
  withHooks(this);
@@ -1888,7 +1889,7 @@ export class TaxAndCashDashboard {
1888
1889
  "text": undefined,
1889
1890
  "name": "undocumented"
1890
1891
  }, {
1891
- "text": "{ \"title\": \"Payouts on hold\", \"props\": { \"states\": { \"payoutStatus\": \"HOLD\" } }, \"uiGroup\": \"Dashboard Properties\" }",
1892
+ "text": "{ \"title\": \"Payouts on hold\", \"props\": { \"states\": { \"payoutStatus\": \"HOLD\" } }, \"dependencies\": [\"sqm-payout-status-alert\"], \"uiGroup\": \"Dashboard Properties\" }",
1892
1893
  "name": "componentState"
1893
1894
  }],
1894
1895
  "text": ""
@@ -1900,47 +1901,47 @@ export class TaxAndCashDashboard {
1900
1901
  }; }
1901
1902
  }
1902
1903
  function useDemoTaxAndCashDashboard(props) {
1903
- console.log("dashboard", { props });
1904
- // @ts-ignore
1905
- return deepmerge({
1906
- states: {
1907
- dateSubmitted: "today",
1908
- documentType: "W9",
1909
- documentTypeString: "W-9",
1910
- status: "ACTIVE",
1911
- country: "United States",
1912
- indirectTaxNumber: "55555555",
1913
- indirectTaxType: "Indirect Tax",
1914
- noFormNeeded: false,
1915
- disabled: false,
1916
- loading: false,
1917
- showNewFormDialog: false,
1918
- hasHold: false,
1919
- subRegion: "CA",
1920
- subRegionTaxNumber: undefined,
1921
- qstNumber: undefined,
1922
- isBusinessEntity: false,
1923
- province: undefined,
1924
- notRegistered: true,
1925
- loadingError: false,
1926
- payoutStatus: "DONE",
1927
- veriffLoading: false,
1928
- canEditPayoutInfo: true,
1929
- },
1930
- callbacks: {
1931
- onClick: () => console.debug("check step"),
1932
- onEditPayoutInfo: () => console.debug("payout info"),
1933
- onNewFormCancel: () => console.log("hide"),
1934
- onNewFormClick: () => console.log("show"),
1935
- onVerifyClick: () => console.log("verify"),
1936
- },
1937
- text: props.getTextProps(),
1938
- slots: {
1939
- payoutDetailsCardSlot: (h("sqm-payout-details-card", { demoData: {
1940
- states: {
1941
- badgeStatus: "nextPayout",
1942
- },
1943
- } })),
1944
- },
1945
- }, props.demoData || props.stateController || {}, { arrayMerge: (_, a) => a });
1904
+ const parsed = parseStates(props.stateController);
1905
+ const formatted = parsed["sqm-tax-and-cash-dashboard"] !== undefined
1906
+ ? parsed["sqm-tax-and-cash-dashboard"]
1907
+ : {};
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: "HOLD",
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;
1946
1947
  }
@@ -13,7 +13,7 @@ import { l as luxon } from './luxon-bbf75a9d.js';
13
13
  import { T as TextSpanView } from './sqm-text-span-view-4c17b8c9.js';
14
14
  import { p as pathToRegexp } from './index-ffa26b43.js';
15
15
  import { a as isValidColor, b as isMobile } from './utilities-72c07b09.js';
16
- import { a as PortalSectionView, P as PortalContainerView } from './sqm-portal-container-view-176e92e3.js';
16
+ import { a as PortalSectionView, P as PortalContainerView } from './sqm-portal-container-view-16309b22.js';
17
17
 
18
18
  function BigStatView(props) {
19
19
  const { statvalue, flexReverse, alignment, statTextColor, statFontSize, descriptionTextColor, descriptionFontSize, statFontWeight, } = props;