@saasquatch/mint-components 1.14.2 → 1.14.3-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.
Files changed (52) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/mint-components.cjs.js +1 -1
  3. package/dist/cjs/sqm-banking-info-form_17.cjs.entry.js +156 -5
  4. package/dist/cjs/{sqm-invoice-table-view-16ac73d0.js → sqm-invoice-table-view-0f7fa309.js} +17 -0
  5. package/dist/cjs/sqm-stencilbook.cjs.entry.js +15 -2
  6. package/dist/collection/components/tax-and-cash/BankingForm.stories.js +12 -0
  7. package/dist/collection/components/tax-and-cash/TaxForm.stories.js +16 -0
  8. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/formDefinitions.js +1 -1
  9. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +35 -1
  10. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +106 -3
  11. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +6 -0
  12. package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +38 -0
  13. package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +79 -1
  14. package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +4 -0
  15. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +205 -2
  16. package/dist/esm/loader.js +1 -1
  17. package/dist/esm/mint-components.js +1 -1
  18. package/dist/esm/sqm-banking-info-form_17.entry.js +156 -5
  19. package/dist/esm/{sqm-invoice-table-view-2c726568.js → sqm-invoice-table-view-7f376a75.js} +17 -0
  20. package/dist/esm/sqm-stencilbook.entry.js +15 -2
  21. package/dist/esm-es5/loader.js +1 -1
  22. package/dist/esm-es5/mint-components.js +1 -1
  23. package/dist/esm-es5/sqm-banking-info-form_17.entry.js +1 -1
  24. package/dist/esm-es5/sqm-invoice-table-view-7f376a75.js +1 -0
  25. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  26. package/dist/mint-components/mint-components.esm.js +1 -1
  27. package/dist/mint-components/p-1d30361f.entry.js +205 -0
  28. package/dist/mint-components/p-37996351.system.js +1 -1
  29. package/dist/mint-components/p-5acddbf2.system.entry.js +1 -0
  30. package/dist/mint-components/{p-ef6381d4.entry.js → p-805446b1.entry.js} +2 -2
  31. package/dist/mint-components/p-9a1843cb.system.js +1 -0
  32. package/dist/mint-components/{p-1f089c3f.system.entry.js → p-c82859b2.system.entry.js} +1 -1
  33. package/dist/mint-components/p-ccd60c4b.js +1 -0
  34. package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.d.ts +1 -1
  35. package/dist/types/components/tax-and-cash/BankingForm.stories.d.ts +1 -0
  36. package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +1 -0
  37. package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.d.ts +6 -0
  38. package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.d.ts +16 -0
  39. package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.d.ts +6 -0
  40. package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.d.ts +12 -0
  41. package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +3 -0
  42. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +35 -0
  43. package/dist/types/components.d.ts +126 -0
  44. package/docs/docs.docx +0 -0
  45. package/docs/raisins.json +1 -1
  46. package/grapesjs/grapesjs.js +1 -1
  47. package/package.json +1 -1
  48. package/dist/esm-es5/sqm-invoice-table-view-2c726568.js +0 -1
  49. package/dist/mint-components/p-0d68b3b1.entry.js +0 -205
  50. package/dist/mint-components/p-3f067fd5.js +0 -1
  51. package/dist/mint-components/p-a6178052.system.entry.js +0 -1
  52. package/dist/mint-components/p-a7746488.system.js +0 -1
@@ -14,7 +14,7 @@ import { l as luxon } from './luxon-8d51c92b.js';
14
14
  import { g as generateUserError } from './useReferralTable-b3876ed6.js';
15
15
  import { T as TextSpanView } from './sqm-text-span-view-ca32495e.js';
16
16
  import { E as ErrorView } from './ErrorView-48e2b969.js';
17
- import { t as taxTypeToName, v as validTaxDocument, a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, g as getCountryObj, O as OtherRegionSlotView, I as InvoiceTableView, L as LoadingView, c as vatLabels, G as GeneralLoadingView, f as formatErrorMessage, d as validateBillingField, o as objectIsFull, A as ADDRESS_REGIONS } from './sqm-invoice-table-view-2c726568.js';
17
+ import { t as taxTypeToName, v as validTaxDocument, a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, g as getCountryObj, O as OtherRegionSlotView, I as InvoiceTableView, L as LoadingView, c as vatLabels, G as GeneralLoadingView, f as formatErrorMessage, d as validateBillingField, o as objectIsFull, A as ADDRESS_REGIONS } from './sqm-invoice-table-view-7f376a75.js';
18
18
  import { e as extractProps } from './extractProps-ae1afbb3.js';
19
19
  import { b as VERIFICATION_EVENT_KEY, V as VERIFICATION_EMAIL_NAMESPACE, S as SHOW_CODE_NAMESPACE, a as VERIFICATION_PARENT_NAMESPACE } from './keys-406491dc.js';
20
20
  import { T as TAX_FORM_UPDATED_EVENT_KEY, a as useVeriffApp, g as getStatus, V as VERIFF_COMPLETE_EVENT_KEY } from './usePayoutStatus-fed17fc9.js';
@@ -143,7 +143,7 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
143
143
  const { errors, ...formState } = props.states.formState;
144
144
  return {
145
145
  0: {
146
- input: (h("sl-input", Object.assign({ required: true, label: props.text.beneficiaryAccountNameLabel, name: "/beneficiaryAccountName", id: "beneficiaryAccountName", key: "beneficiaryAccountName", type: "text" }, (((_a = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _a === void 0 ? void 0 : _a.beneficiaryAccountName) && {
146
+ input: (h("sl-input", Object.assign({ required: true, label: props.text.beneficiaryAccountNameLabel, name: "/beneficiaryAccountName", id: "beneficiaryAccountName", key: "beneficiaryAccountName", type: "text", "help-text": props.text.beneficiaryAccountNameDescription }, (((_a = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _a === void 0 ? void 0 : _a.beneficiaryAccountName) && {
147
147
  class: "error-input",
148
148
  helpText: getValidationErrorMessage({
149
149
  type: (_c = (_b = errors === null || errors === void 0 ? void 0 : errors.inputErrors) === null || _b === void 0 ? void 0 : _b.beneficiaryAccountName) === null || _c === void 0 ? void 0 : _c.type,
@@ -784,6 +784,31 @@ const style = {
784
784
  height: "26px",
785
785
  width: "26px",
786
786
  },
787
+ Dialog: {
788
+ "&::part(panel)": {
789
+ maxWidth: "420px",
790
+ },
791
+ "&::part(close-button)": {
792
+ marginBottom: "var(--sl-spacing-xx-large)",
793
+ },
794
+ "&::part(title)": {
795
+ fontSize: "var(--sl-font-size-x-large)",
796
+ fontWeight: "600",
797
+ },
798
+ "&::part(body)": {
799
+ padding: "0 var(--sl-spacing-x-large) 0 var(--sl-spacing-x-large)",
800
+ fontSize: "var(--sl-font-size-small)",
801
+ },
802
+ "&::part(footer)": {
803
+ display: "flex",
804
+ flexDirection: "column",
805
+ gap: "var(--sl-spacing-small)",
806
+ marginBottom: "var(--sl-spacing-xx-small)",
807
+ alignItems: "center",
808
+ flex: "1",
809
+ },
810
+ },
811
+ DialogButton: { margin: "auto", width: "100%" },
787
812
  };
788
813
  const sheet = createStyleSheet(style);
789
814
  const styleString = sheet.toString();
@@ -853,6 +878,13 @@ const BankingInfoFormView = (props) => {
853
878
  h("style", { type: "text/css" },
854
879
  styleString,
855
880
  vanillaStyle),
881
+ h("sl-dialog", { class: sheet.classes.Dialog, open: states.showModal, "onSl-hide": callbacks.onModalClose },
882
+ h("div", { slot: "label" },
883
+ h("div", { color: "red" },
884
+ h("sl-icon", { name: "info-circle" })),
885
+ text.modalTitle),
886
+ h("p", null, text.modalDescription),
887
+ h("sl-button", { slot: "footer", type: "primary", class: sheet.classes.DialogButton, onClick: callbacks.onSubmit }, text.modalButtonText)),
856
888
  h("div", { class: classes.TextContainer },
857
889
  h("div", null,
858
890
  !states.hideSteps && (h("p", null, intl.formatMessage({
@@ -912,7 +944,9 @@ const BankingInfoFormView = (props) => {
912
944
  ? getLoadingSkeleton("toPayPalAccount")
913
945
  : slots.paymentFixedDaySelectSlot))))),
914
946
  h("div", { class: classes.BtnContainer },
915
- h("sl-button", { type: "primary", disabled: states.disabled || states.saveDisabled, loading: states.saveLoading, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton),
947
+ h("sl-button", Object.assign({ type: "primary", disabled: states.disabled || states.saveDisabled, loading: states.saveLoading }, (states.hideSteps
948
+ ? { onClick: callbacks.onModalOpen }
949
+ : { submit: "submit" }), { exportparts: "base: primarybutton-base" }), text.continueButton),
916
950
  !states.hideBackButton && (h("sl-button", { exportparts: "base: secondarybutton-base", class: classes.SecondaryBtn, type: "text", onClick: callbacks.onBack }, text.backButton))))));
917
951
  };
918
952
 
@@ -1015,6 +1049,7 @@ function useBankingInfoForm(props) {
1015
1049
  const [paymentScheduleChecked, setPaymentScheduleChecked] = useState(undefined);
1016
1050
  const [countrySearch, setCountrySearch] = useState("");
1017
1051
  const [filteredCountries, setFilteredCountries] = useState(countries || []);
1052
+ const [showModal, setShowModal] = useState(false);
1018
1053
  const currency = ((_c = (_b = (_a = userData === null || userData === void 0 ? void 0 : userData.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher) === null || _c === void 0 ? void 0 : _c.currency) || "";
1019
1054
  const isPartner = !!((_f = (_e = (_d = userData === null || userData === void 0 ? void 0 : userData.user) === null || _d === void 0 ? void 0 : _d.impactConnection) === null || _e === void 0 ? void 0 : _e.publisher) === null || _f === void 0 ? void 0 : _f.withdrawalSettings);
1020
1055
  const feeCap = paypalFeeMap[currency] || "";
@@ -1186,6 +1221,7 @@ function useBankingInfoForm(props) {
1186
1221
  });
1187
1222
  setErrors({ inputErrors: validationErrors });
1188
1223
  if (Object.keys(validationErrors).length) {
1224
+ setShowModal(false);
1189
1225
  return;
1190
1226
  }
1191
1227
  let token = undefined;
@@ -1202,6 +1238,7 @@ function useBankingInfoForm(props) {
1202
1238
  setShowVerification(false);
1203
1239
  }
1204
1240
  await runMutation(formData, token);
1241
+ setShowModal(false);
1205
1242
  };
1206
1243
  const onVerification = async (token) => {
1207
1244
  host.dispatchEvent(new CustomEvent(VERIFICATION_EVENT_KEY, {
@@ -1235,6 +1272,8 @@ function useBankingInfoForm(props) {
1235
1272
  setCountrySearch,
1236
1273
  onVerification,
1237
1274
  onVerificationHide: () => onVerification(null),
1275
+ onModalClose: () => setShowModal(false),
1276
+ onModalOpen: () => setShowModal(true),
1238
1277
  },
1239
1278
  states: {
1240
1279
  showVerification,
@@ -1268,6 +1307,7 @@ function useBankingInfoForm(props) {
1268
1307
  bankCountry: formState.bankCountry,
1269
1308
  countrySearch,
1270
1309
  email: (_j = userData === null || userData === void 0 ? void 0 : userData.user) === null || _j === void 0 ? void 0 : _j.email,
1310
+ showModal,
1271
1311
  },
1272
1312
  refs: {
1273
1313
  formRef,
@@ -1352,7 +1392,11 @@ const BankingInfoForm = class {
1352
1392
  /**
1353
1393
  * @uiName Beneficiary account field label
1354
1394
  */
1355
- this.beneficiaryAccountNameLabel = "Beneficiary account name";
1395
+ this.beneficiaryAccountNameLabel = "Account holder name";
1396
+ /**
1397
+ * @uiName Beneficiary account field description
1398
+ */
1399
+ this.beneficiaryAccountNameDescription = "The beneficiary name of your bank account. Ensure this matches the name on your tax form.";
1356
1400
  /**
1357
1401
  * @uiName Bank account type field label
1358
1402
  */
@@ -1531,6 +1575,18 @@ const BankingInfoForm = class {
1531
1575
  * @uiWidget textArea
1532
1576
  */
1533
1577
  this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact Support.";
1578
+ /**
1579
+ * @uiName Information modal title
1580
+ */
1581
+ this.modalTitle = "Important Note";
1582
+ /**
1583
+ * @uiName Information modal description text
1584
+ */
1585
+ this.modalDescription = "By changing your bank account information, your account and payouts will be placed on hold for up to 48 hours until your change is verified.";
1586
+ /**
1587
+ * @uiName Information modal button text
1588
+ */
1589
+ this.modalButtonText = "I understand, update my information";
1534
1590
  h$1(this);
1535
1591
  }
1536
1592
  disconnectedCallback() { }
@@ -1744,6 +1800,7 @@ function useDemoBankingInfoForm(props) {
1744
1800
  currency,
1745
1801
  setCurrency,
1746
1802
  hasPayPal: true,
1803
+ showModal: false,
1747
1804
  },
1748
1805
  callbacks: {
1749
1806
  onVerificationHide: () => { },
@@ -1756,6 +1813,8 @@ function useDemoBankingInfoForm(props) {
1756
1813
  setCountrySearch: () => { },
1757
1814
  onBack: async () => setStep("/dashboard"),
1758
1815
  onVerification: () => { },
1816
+ onModalOpen: () => { },
1817
+ onModalClose: () => { },
1759
1818
  },
1760
1819
  text: props.getTextProps(),
1761
1820
  refs: {
@@ -2128,6 +2187,7 @@ function useDocusignForm(props) {
2128
2187
  const [errors, setErrors] = useState({});
2129
2188
  const [loading, setLoading] = useState(false);
2130
2189
  const [showExitButton, setShowExitButton] = useState(false);
2190
+ const [showModal, setShowModal] = useState(true);
2131
2191
  // Only look at current document if it's valid (same as required type)
2132
2192
  const existingDocumentType = validTaxDocument(publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType) && (publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument)
2133
2193
  ? publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType : undefined;
@@ -2223,6 +2283,7 @@ function useDocusignForm(props) {
2223
2283
  documentType: actualDocumentType,
2224
2284
  documentTypeString: taxTypeToName(actualDocumentType),
2225
2285
  showExitButton,
2286
+ showModal,
2226
2287
  },
2227
2288
  data: {
2228
2289
  taxForm: actualDocumentType,
@@ -2233,6 +2294,8 @@ function useDocusignForm(props) {
2233
2294
  completeDocument,
2234
2295
  onExit: progressStep,
2235
2296
  setParticipantType,
2297
+ onModalClose: () => setShowModal(false),
2298
+ onModalOpen: () => setShowModal(true),
2236
2299
  },
2237
2300
  text: props.getTextProps(),
2238
2301
  };
@@ -2463,6 +2526,31 @@ const style$3 = {
2463
2526
  color: "var(--sl-color-neutral-500)",
2464
2527
  fontSize: "var(--sl-font-size-medium)",
2465
2528
  },
2529
+ Dialog: {
2530
+ "&::part(panel)": {
2531
+ maxWidth: "420px",
2532
+ },
2533
+ "&::part(close-button)": {
2534
+ marginBottom: "var(--sl-spacing-xx-large)",
2535
+ },
2536
+ "&::part(title)": {
2537
+ fontSize: "var(--sl-font-size-x-large)",
2538
+ fontWeight: "600",
2539
+ },
2540
+ "&::part(body)": {
2541
+ padding: "0 var(--sl-spacing-x-large) 0 var(--sl-spacing-x-large)",
2542
+ fontSize: "var(--sl-font-size-small)",
2543
+ },
2544
+ "&::part(footer)": {
2545
+ display: "flex",
2546
+ flexDirection: "column",
2547
+ gap: "var(--sl-spacing-small)",
2548
+ marginBottom: "var(--sl-spacing-xx-small)",
2549
+ alignItems: "center",
2550
+ flex: "1",
2551
+ },
2552
+ },
2553
+ DialogButton: { margin: "auto", width: "100%" },
2466
2554
  };
2467
2555
  const sheet$3 = createStyleSheet(style$3);
2468
2556
  const styleString$3 = sheet$3.toString();
@@ -2492,10 +2580,23 @@ const DocusignFormView = (props) => {
2492
2580
  var _a;
2493
2581
  const { states, states: { formState, documentTypeString }, callbacks, text, slots, } = props;
2494
2582
  const { classes } = sheet$3;
2583
+ console.log({ states });
2495
2584
  return (h("div", { class: classes.Container },
2496
2585
  h("style", { type: "text/css" },
2497
2586
  styleString$3,
2498
2587
  vanillaStyle$2),
2588
+ h("sl-dialog", { class: sheet$3.classes.Dialog, open: states.showModal, "onSl-hide": callbacks.onModalClose },
2589
+ h("div", { slot: "label" },
2590
+ h("div", { color: "red" },
2591
+ h("sl-icon", { name: "info-circle" })),
2592
+ text.modalTitle),
2593
+ h("p", null, intl.formatMessage({
2594
+ id: "modalText",
2595
+ defaultMessage: text.modalDescription,
2596
+ }, {
2597
+ br: h("br", null),
2598
+ })),
2599
+ h("sl-button", { slot: "footer", type: "primary", class: sheet$3.classes.DialogButton, onClick: callbacks.onModalClose }, text.modalButtonText)),
2499
2600
  h("div", { class: classes.TextContainer },
2500
2601
  h("div", null,
2501
2602
  !states.hideSteps && (h("p", null, intl.formatMessage({
@@ -2649,6 +2750,18 @@ const DocusignForm = class {
2649
2750
  * @uiName Exit button text
2650
2751
  */
2651
2752
  this.exitButton = "Exit";
2753
+ /**
2754
+ * @uiName Information modal title
2755
+ */
2756
+ this.modalTitle = "Important Note";
2757
+ /**
2758
+ * @uiName Information modal description text
2759
+ */
2760
+ this.modalDescription = "Ensure the name you enter in your tax form matches the name on your bank account, also known as the beneficiary name.{br}{br}Otherwise you will have to resubmit your form again and there will be delays receiving your payout.";
2761
+ /**
2762
+ * @uiName Information modal button text
2763
+ */
2764
+ this.modalButtonText = "I understand";
2652
2765
  h$1(this);
2653
2766
  }
2654
2767
  disconnectedCallback() { }
@@ -2703,6 +2816,7 @@ function useDocusignFormDemo(props) {
2703
2816
  errors: {},
2704
2817
  },
2705
2818
  documentType: "W9",
2819
+ showModal: false,
2706
2820
  },
2707
2821
  data: {
2708
2822
  taxForm: "W9",
@@ -2713,6 +2827,8 @@ function useDocusignFormDemo(props) {
2713
2827
  demo: {
2714
2828
  onSubmit: () => setStep("/4"),
2715
2829
  onBack: () => setStep("/3"),
2830
+ onModalOpen: () => { },
2831
+ onModalClose: () => { },
2716
2832
  },
2717
2833
  setParticipantType: (p) => console.log({ p }),
2718
2834
  setDocusignStatus: (status) => console.log(status),
@@ -4653,6 +4769,21 @@ const TaxAndCashMonolith = class {
4653
4769
  * @uiGroup Step 3 Properties
4654
4770
  */
4655
4771
  this.step3_exitButton = "Exit";
4772
+ /**
4773
+ * @uiName Information modal title
4774
+ * @uiGroup Step 3 Properties
4775
+ */
4776
+ this.step3_modalTitle = "Important Note";
4777
+ /**
4778
+ * @uiName Information modal description text
4779
+ * @uiGroup Step 3 Properties
4780
+ */
4781
+ this.step3_modalDescription = "Ensure the name you enter in your tax form matches the name on your bank account, also known as the beneficiary name.{br}{br}Otherwise you will have to resubmit your form again and there will be delays receiving your payout.";
4782
+ /**
4783
+ * @uiName Information modal button text
4784
+ * @uiGroup Step 3 Properties
4785
+ */
4786
+ this.step3_modalButtonText = "I understand";
4656
4787
  /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4657
4788
  STEP 4 PROPS:
4658
4789
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
@@ -4735,7 +4866,12 @@ const TaxAndCashMonolith = class {
4735
4866
  * @uiName Beneficiary account field label
4736
4867
  * @uiGroup Step 4 Properties
4737
4868
  */
4738
- this.step4_beneficiaryAccountNameLabel = "Beneficiary account name";
4869
+ this.step4_beneficiaryAccountNameLabel = "Account holder name";
4870
+ /**
4871
+ * @uiName Beneficiary account field description
4872
+ * @uiGroup Step 4 Properties
4873
+ */
4874
+ this.step4_beneficiaryAccountNameDescription = "The beneficiary name of your bank account. Ensure this matches the name on your tax form.";
4739
4875
  /**
4740
4876
  * @uiName Bank account type field label
4741
4877
  * @uiGroup Step 4 Properties
@@ -4877,6 +5013,21 @@ const TaxAndCashMonolith = class {
4877
5013
  * @uiGroup Step 4 Properties
4878
5014
  */
4879
5015
  this.step4_verifyEmailDescriptionText = "Verify your email to update your payment settings. Enter the code sent to {email} from our referral provider, impact.com.";
5016
+ /**
5017
+ * @uiName Information modal title
5018
+ * @uiGroup Step 4 Properties
5019
+ */
5020
+ this.step4_modalTitle = "Important Note";
5021
+ /**
5022
+ * @uiName Information modal description text
5023
+ * @uiGroup Step 4 Properties
5024
+ */
5025
+ this.step4_modalDescription = "By changing your bank account information, your account and payouts will be placed on hold for up to 48 hours until your change is verified.";
5026
+ /**
5027
+ * @uiName Information modal button text
5028
+ * @uiGroup Step 4 Properties
5029
+ */
5030
+ this.step4_modalButtonText = "I understand, update my information";
4880
5031
  /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4881
5032
  DASHBOARD PROPS:
4882
5033
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
@@ -683,6 +683,7 @@ const stepFourProps = {
683
683
  formState: {
684
684
  paymentMethodChecked: "toBankAccount",
685
685
  },
686
+ showModal: false,
686
687
  },
687
688
  callbacks: {
688
689
  onVerificationHide: () => { },
@@ -692,6 +693,8 @@ const stepFourProps = {
692
693
  setPaymentScheduleChecked: () => { },
693
694
  onBack: async () => console.log("back"),
694
695
  setCountrySearch: () => { },
696
+ onModalOpen: () => { },
697
+ onModalClose: () => { },
695
698
  },
696
699
  refs: { formRef: { current: null } },
697
700
  };
@@ -713,12 +716,15 @@ const docusignFormProps = {
713
716
  errors: {},
714
717
  taxFormExpired: false,
715
718
  },
719
+ showModal: false,
716
720
  },
717
721
  callbacks: {
718
722
  onExit: () => { },
719
723
  completeDocument: async () => { },
720
724
  setParticipantType: (p) => console.log({ p }),
721
725
  setDocusignStatus: (status) => console.log(status),
726
+ onModalOpen: () => { },
727
+ onModalClose: () => { },
722
728
  },
723
729
  };
724
730
  const dashboardProps = {
@@ -1195,6 +1201,16 @@ const StepThreeDocusignDisabled = () => {
1195
1201
  },
1196
1202
  } }));
1197
1203
  };
1204
+ const StepThreeWithDocusignModalOpen = () => {
1205
+ return (h("sqm-docusign-form", { demoData: {
1206
+ states: {
1207
+ documentType: "W9",
1208
+ documentTypeString: taxTypeToName("W9"),
1209
+ ...docusignFormProps.states,
1210
+ showModal: true,
1211
+ },
1212
+ } }));
1213
+ };
1198
1214
  // STEP 4
1199
1215
  const StepFourDefault = () => {
1200
1216
  return h("sqm-banking-info-form", null);
@@ -1737,6 +1753,7 @@ const TaxForm = /*#__PURE__*/Object.freeze({
1737
1753
  StepThreeDocusignWithLoadingError: StepThreeDocusignWithLoadingError,
1738
1754
  StepThreeDocusignLoading: StepThreeDocusignLoading,
1739
1755
  StepThreeDocusignDisabled: StepThreeDocusignDisabled,
1756
+ StepThreeWithDocusignModalOpen: StepThreeWithDocusignModalOpen,
1740
1757
  StepFourDefault: StepFourDefault,
1741
1758
  StepFourIsPartner: StepFourIsPartner,
1742
1759
  StepFourDirectToBankChecked: StepFourDirectToBankChecked,
@@ -33,7 +33,7 @@ import './ErrorView-48e2b969.js';
33
33
  import { Q as QrCodeView } from './sqm-qr-code-view-f1d0763b.js';
34
34
  import { S as ShareButtonView, L as LeaderboardView, B as BigStatView, P as PortalFrameView, E as EditProfileView, u as useShareLink, a as useShareButton, b as useDemoBigStat, c as StatContainerView, d as PortalChangePasswordView, e as PortalRegisterView, C as ChangeMarktingView, T as TaskCardView, f as ProgressBarView, g as PoweredByImg$1, h as PortalFooterView, H as HeroView, R as ReferralIframeView, N as NameFieldsView, i as CheckboxFieldView, D as DropdownFieldView, I as InputFieldView, j as RewardExchangeView, r as rewardExchangeCustomErrorMsg, k as rewardExchangeLongText, l as rewardExchangeSelected, m as chooseAmountFixed, n as chooseAmountFixedNoDescription, o as chooseAmountVariable, p as chooseAmountVariableNoDescription, q as chooseAmountVariableDisabled, s as chooseAmountVariableUnavailable, t as confirmFixed, v as confirmVariable, w as redemptionError, x as queryError, y as success, z as successVariable, A as loading, F as empty$1, G as rewardExchange, J as CardFeedView, K as CouponCodeView, M as ProgressBar$2, O as autoColorScaleCss, Q as ShadowViewAddon } from './ShadowViewAddon-cf230f50.js';
35
35
  import { P as PortalContainerView, a as PortalSectionView } from './sqm-portal-container-view-1683ae32.js';
36
- import { O as OtherRegionSlotView, I as InvoiceTableView, T as TaxForm } from './sqm-invoice-table-view-2c726568.js';
36
+ import { O as OtherRegionSlotView, I as InvoiceTableView, T as TaxForm } from './sqm-invoice-table-view-7f376a75.js';
37
37
 
38
38
  /**
39
39
  * lodash (Custom Build) <https://lodash.com/>
@@ -14766,6 +14766,7 @@ const bankingFormProps = {
14766
14766
  currency: "USD",
14767
14767
  loadingError: false,
14768
14768
  email: "test@example.com",
14769
+ showModal: false,
14769
14770
  },
14770
14771
  callbacks: {
14771
14772
  onVerificationHide: () => { },
@@ -14775,6 +14776,8 @@ const bankingFormProps = {
14775
14776
  setPaymentScheduleChecked: () => { },
14776
14777
  setCountrySearch: () => { },
14777
14778
  onBack: async () => console.log("back"),
14779
+ onModalOpen: () => { },
14780
+ onModalClose: () => { },
14778
14781
  },
14779
14782
  refs: { formRef: { current: null } },
14780
14783
  };
@@ -15095,6 +15098,15 @@ const BankingInfoFormVerififyIdentityModal = () => {
15095
15098
  },
15096
15099
  } }));
15097
15100
  };
15101
+ const BankingInfoFormModalOpen = () => {
15102
+ return (h("sqm-banking-info-form", { demoData: {
15103
+ ...bankingFormProps,
15104
+ states: {
15105
+ ...bankingFormProps.states,
15106
+ showModal: true,
15107
+ },
15108
+ } }));
15109
+ };
15098
15110
 
15099
15111
  const BankingInfoForm = /*#__PURE__*/Object.freeze({
15100
15112
  __proto__: null,
@@ -15121,7 +15133,8 @@ const BankingInfoForm = /*#__PURE__*/Object.freeze({
15121
15133
  BankingInfoFormWithFixedDayPaymentSchedule: BankingInfoFormWithFixedDayPaymentSchedule,
15122
15134
  BankingInfoFormWithFixedDayPaymentScheduleWithError: BankingInfoFormWithFixedDayPaymentScheduleWithError,
15123
15135
  BankingInfoFormWithFixedDayPaymentScheduleLoading: BankingInfoFormWithFixedDayPaymentScheduleLoading,
15124
- BankingInfoFormVerififyIdentityModal: BankingInfoFormVerififyIdentityModal
15136
+ BankingInfoFormVerififyIdentityModal: BankingInfoFormVerififyIdentityModal,
15137
+ BankingInfoFormModalOpen: BankingInfoFormModalOpen
15125
15138
  });
15126
15139
 
15127
15140
  const InvoiceTableCell_stories = {