@saasquatch/mint-components 1.14.3 → 1.14.4

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 (55) 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 +158 -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 +509 -893
  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 +36 -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 +7 -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 +158 -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 +2494 -2878
  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-37996351.system.js +1 -1
  28. package/dist/mint-components/{p-b06add5c.entry.js → p-4d7108af.entry.js} +2 -2
  29. package/dist/mint-components/p-9a1843cb.system.js +1 -0
  30. package/dist/mint-components/{p-207da855.system.entry.js → p-caca540c.system.entry.js} +1 -1
  31. package/dist/mint-components/p-ccd60c4b.js +1 -0
  32. package/dist/mint-components/p-db7d2444.system.entry.js +1 -0
  33. package/dist/mint-components/p-ebb4922d.entry.js +205 -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
  53. package/dist/mint-components/sqm-stencilbook.entry.js +0 -18989
  54. package/dist/mint-components/sqm-stencilbook.system.entry.js +0 -1
  55. package/shoelace/assets/icons/twitter-x.svg +0 -4
@@ -18,7 +18,7 @@ const luxon = require('./luxon-2926d85f.js');
18
18
  const useReferralTable = require('./useReferralTable-7c3f9600.js');
19
19
  const sqmTextSpanView = require('./sqm-text-span-view-0aa82125.js');
20
20
  const ErrorView = require('./ErrorView-b2fcf954.js');
21
- const sqmInvoiceTableView = require('./sqm-invoice-table-view-16ac73d0.js');
21
+ const sqmInvoiceTableView = require('./sqm-invoice-table-view-0f7fa309.js');
22
22
  const extractProps = require('./extractProps-fd93ba62.js');
23
23
  const keys = require('./keys-cff24974.js');
24
24
  const usePayoutStatus = require('./usePayoutStatus-feeac99b.js');
@@ -147,7 +147,7 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
147
147
  const { errors, ...formState } = props.states.formState;
148
148
  return {
149
149
  0: {
150
- input: (index.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) && {
150
+ input: (index.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) && {
151
151
  class: "error-input",
152
152
  helpText: getValidationErrorMessage({
153
153
  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,
@@ -649,6 +649,11 @@ const mockPaymentOptions = {
649
649
  };
650
650
 
651
651
  const style = {
652
+ ModalTitleContainer: {
653
+ display: "flex",
654
+ gap: "var(--sl-spacing-small)",
655
+ alignItems: "center",
656
+ },
652
657
  FormWrapper: {
653
658
  display: "flex",
654
659
  justifyContent: "flex-start",
@@ -788,6 +793,28 @@ const style = {
788
793
  height: "26px",
789
794
  width: "26px",
790
795
  },
796
+ Dialog: {
797
+ "&::part(panel)": {
798
+ maxWidth: "420px",
799
+ },
800
+ "&::part(title)": {
801
+ fontSize: "var(--sl-font-size-large)",
802
+ fontWeight: "600",
803
+ },
804
+ "&::part(body)": {
805
+ padding: "0 var(--sl-spacing-x-large) 0 var(--sl-spacing-x-large)",
806
+ fontSize: "var(--sl-font-size-small)",
807
+ },
808
+ "&::part(footer)": {
809
+ display: "flex",
810
+ flexDirection: "column",
811
+ gap: "var(--sl-spacing-small)",
812
+ marginBottom: "var(--sl-spacing-xx-small)",
813
+ alignItems: "center",
814
+ flex: "1",
815
+ },
816
+ },
817
+ DialogButton: { margin: "auto", width: "100%" },
791
818
  };
792
819
  const sheet = JSS.createStyleSheet(style);
793
820
  const styleString = sheet.toString();
@@ -857,6 +884,12 @@ const BankingInfoFormView = (props) => {
857
884
  index.h("style", { type: "text/css" },
858
885
  styleString,
859
886
  vanillaStyle),
887
+ index.h("sl-dialog", { class: sheet.classes.Dialog, open: states.showModal, "onSl-hide": callbacks.onModalClose },
888
+ index.h("div", { class: classes.ModalTitleContainer, slot: "label" },
889
+ index.h("sl-icon", { name: "info-circle", style: { color: "var(--sl-color-info-500)" } }),
890
+ index.h("h2", { style: { fontSize: "var(--sl-font-size-large)" } }, text.modalTitle)),
891
+ index.h("p", null, text.modalDescription),
892
+ index.h("sl-button", { slot: "footer", type: "primary", class: sheet.classes.DialogButton, submit: true, exportparts: "base: primarybutton-base" }, text.modalButtonText)),
860
893
  index.h("div", { class: classes.TextContainer },
861
894
  index.h("div", null,
862
895
  !states.hideSteps && (index.h("p", null, global.intl.formatMessage({
@@ -916,7 +949,9 @@ const BankingInfoFormView = (props) => {
916
949
  ? getLoadingSkeleton("toPayPalAccount")
917
950
  : slots.paymentFixedDaySelectSlot))))),
918
951
  index.h("div", { class: classes.BtnContainer },
919
- index.h("sl-button", { type: "primary", disabled: states.disabled || states.saveDisabled, loading: states.saveLoading, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton),
952
+ index.h("sl-button", Object.assign({ type: "primary", disabled: states.disabled || states.saveDisabled, loading: states.saveLoading }, (states.hideSteps
953
+ ? { onClick: callbacks.onModalOpen }
954
+ : { submit: "submit" }), { exportparts: "base: primarybutton-base" }), text.continueButton),
920
955
  !states.hideBackButton && (index.h("sl-button", { exportparts: "base: secondarybutton-base", class: classes.SecondaryBtn, type: "text", onClick: callbacks.onBack }, text.backButton))))));
921
956
  };
922
957
 
@@ -1019,6 +1054,7 @@ function useBankingInfoForm(props) {
1019
1054
  const [paymentScheduleChecked, setPaymentScheduleChecked] = stencilHooks_module.useState(undefined);
1020
1055
  const [countrySearch, setCountrySearch] = stencilHooks_module.useState("");
1021
1056
  const [filteredCountries, setFilteredCountries] = stencilHooks_module.useState(countries || []);
1057
+ const [showModal, setShowModal] = stencilHooks_module.useState(false);
1022
1058
  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) || "";
1023
1059
  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);
1024
1060
  const feeCap = paypalFeeMap[currency] || "";
@@ -1190,10 +1226,12 @@ function useBankingInfoForm(props) {
1190
1226
  });
1191
1227
  setErrors({ inputErrors: validationErrors });
1192
1228
  if (Object.keys(validationErrors).length) {
1229
+ setShowModal(false);
1193
1230
  return;
1194
1231
  }
1195
1232
  let token = undefined;
1196
1233
  if (isPartner) {
1234
+ setShowModal(false);
1197
1235
  setShowVerification(true);
1198
1236
  token = await new Promise((res) => {
1199
1237
  const cb = (e) => {
@@ -1206,6 +1244,7 @@ function useBankingInfoForm(props) {
1206
1244
  setShowVerification(false);
1207
1245
  }
1208
1246
  await runMutation(formData, token);
1247
+ setShowModal(false);
1209
1248
  };
1210
1249
  const onVerification = async (token) => {
1211
1250
  host.dispatchEvent(new CustomEvent(keys.VERIFICATION_EVENT_KEY, {
@@ -1239,6 +1278,8 @@ function useBankingInfoForm(props) {
1239
1278
  setCountrySearch,
1240
1279
  onVerification,
1241
1280
  onVerificationHide: () => onVerification(null),
1281
+ onModalClose: () => setShowModal(false),
1282
+ onModalOpen: () => setShowModal(true),
1242
1283
  },
1243
1284
  states: {
1244
1285
  showVerification,
@@ -1272,6 +1313,7 @@ function useBankingInfoForm(props) {
1272
1313
  bankCountry: formState.bankCountry,
1273
1314
  countrySearch,
1274
1315
  email: (_j = userData === null || userData === void 0 ? void 0 : userData.user) === null || _j === void 0 ? void 0 : _j.email,
1316
+ showModal,
1275
1317
  },
1276
1318
  refs: {
1277
1319
  formRef,
@@ -1356,7 +1398,11 @@ const BankingInfoForm = class {
1356
1398
  /**
1357
1399
  * @uiName Beneficiary account field label
1358
1400
  */
1359
- this.beneficiaryAccountNameLabel = "Beneficiary account name";
1401
+ this.beneficiaryAccountNameLabel = "Account holder name";
1402
+ /**
1403
+ * @uiName Beneficiary account field description
1404
+ */
1405
+ this.beneficiaryAccountNameDescription = "The beneficiary name of your bank account. Ensure this matches the name on your tax form.";
1360
1406
  /**
1361
1407
  * @uiName Bank account type field label
1362
1408
  */
@@ -1535,6 +1581,18 @@ const BankingInfoForm = class {
1535
1581
  * @uiWidget textArea
1536
1582
  */
1537
1583
  this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact Support.";
1584
+ /**
1585
+ * @uiName Information modal title
1586
+ */
1587
+ this.modalTitle = "Important Note";
1588
+ /**
1589
+ * @uiName Information modal description text
1590
+ */
1591
+ this.modalDescription = "Updating payment information places your account and payouts on hold for up to 48 hours while we verify your change. Payments scheduled during the hold period are skipped.";
1592
+ /**
1593
+ * @uiName Information modal button text
1594
+ */
1595
+ this.modalButtonText = "I understand, update my information";
1538
1596
  stencilHooks_module.h$1(this);
1539
1597
  }
1540
1598
  disconnectedCallback() { }
@@ -1748,6 +1806,7 @@ function useDemoBankingInfoForm(props) {
1748
1806
  currency,
1749
1807
  setCurrency,
1750
1808
  hasPayPal: true,
1809
+ showModal: false,
1751
1810
  },
1752
1811
  callbacks: {
1753
1812
  onVerificationHide: () => { },
@@ -1760,6 +1819,8 @@ function useDemoBankingInfoForm(props) {
1760
1819
  setCountrySearch: () => { },
1761
1820
  onBack: async () => setStep("/dashboard"),
1762
1821
  onVerification: () => { },
1822
+ onModalOpen: () => { },
1823
+ onModalClose: () => { },
1763
1824
  },
1764
1825
  text: props.getTextProps(),
1765
1826
  refs: {
@@ -2132,6 +2193,7 @@ function useDocusignForm(props) {
2132
2193
  const [errors, setErrors] = stencilHooks_module.useState({});
2133
2194
  const [loading, setLoading] = stencilHooks_module.useState(false);
2134
2195
  const [showExitButton, setShowExitButton] = stencilHooks_module.useState(false);
2196
+ const [showModal, setShowModal] = stencilHooks_module.useState(true);
2135
2197
  // Only look at current document if it's valid (same as required type)
2136
2198
  const existingDocumentType = sqmInvoiceTableView.validTaxDocument(publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType) && (publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument)
2137
2199
  ? publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType : undefined;
@@ -2227,6 +2289,7 @@ function useDocusignForm(props) {
2227
2289
  documentType: actualDocumentType,
2228
2290
  documentTypeString: sqmInvoiceTableView.taxTypeToName(actualDocumentType),
2229
2291
  showExitButton,
2292
+ showModal,
2230
2293
  },
2231
2294
  data: {
2232
2295
  taxForm: actualDocumentType,
@@ -2237,6 +2300,8 @@ function useDocusignForm(props) {
2237
2300
  completeDocument,
2238
2301
  onExit: progressStep,
2239
2302
  setParticipantType,
2303
+ onModalClose: () => setShowModal(false),
2304
+ onModalOpen: () => setShowModal(true),
2240
2305
  },
2241
2306
  text: props.getTextProps(),
2242
2307
  };
@@ -2356,6 +2421,11 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
2356
2421
  };
2357
2422
 
2358
2423
  const style$3 = {
2424
+ ModalTitleContainer: {
2425
+ display: "flex",
2426
+ gap: "var(--sl-spacing-small)",
2427
+ alignItems: "center",
2428
+ },
2359
2429
  FormWrapper: {
2360
2430
  display: "flex",
2361
2431
  justifyContent: "flex-start",
@@ -2467,6 +2537,28 @@ const style$3 = {
2467
2537
  color: "var(--sl-color-neutral-500)",
2468
2538
  fontSize: "var(--sl-font-size-medium)",
2469
2539
  },
2540
+ Dialog: {
2541
+ "&::part(panel)": {
2542
+ maxWidth: "420px",
2543
+ },
2544
+ "&::part(title)": {
2545
+ fontSize: "var(--sl-font-size-large)",
2546
+ fontWeight: "600",
2547
+ },
2548
+ "&::part(body)": {
2549
+ padding: "0 var(--sl-spacing-x-large) 0 var(--sl-spacing-x-large)",
2550
+ fontSize: "var(--sl-font-size-small)",
2551
+ },
2552
+ "&::part(footer)": {
2553
+ display: "flex",
2554
+ flexDirection: "column",
2555
+ gap: "var(--sl-spacing-small)",
2556
+ marginBottom: "var(--sl-spacing-xx-small)",
2557
+ alignItems: "center",
2558
+ flex: "1",
2559
+ },
2560
+ },
2561
+ DialogButton: { margin: "auto", width: "100%" },
2470
2562
  };
2471
2563
  const sheet$3 = JSS.createStyleSheet(style$3);
2472
2564
  const styleString$3 = sheet$3.toString();
@@ -2500,6 +2592,17 @@ const DocusignFormView = (props) => {
2500
2592
  index.h("style", { type: "text/css" },
2501
2593
  styleString$3,
2502
2594
  vanillaStyle$2),
2595
+ index.h("sl-dialog", { class: sheet$3.classes.Dialog, open: states.showModal, "onSl-hide": callbacks.onModalClose },
2596
+ index.h("div", { class: classes.ModalTitleContainer, slot: "label" },
2597
+ index.h("sl-icon", { name: "info-circle", style: { color: "var(--sl-color-info-500)" } }),
2598
+ index.h("h2", { style: { fontSize: "var(--sl-font-size-large)" } }, text.modalTitle)),
2599
+ index.h("p", null, global.intl.formatMessage({
2600
+ id: "modalText",
2601
+ defaultMessage: text.modalDescription,
2602
+ }, {
2603
+ br: index.h("br", null),
2604
+ })),
2605
+ index.h("sl-button", { slot: "footer", type: "primary", class: sheet$3.classes.DialogButton, onClick: callbacks.onModalClose, exportparts: "base: primarybutton-base" }, text.modalButtonText)),
2503
2606
  index.h("div", { class: classes.TextContainer },
2504
2607
  index.h("div", null,
2505
2608
  !states.hideSteps && (index.h("p", null, global.intl.formatMessage({
@@ -2653,6 +2756,18 @@ const DocusignForm = class {
2653
2756
  * @uiName Exit button text
2654
2757
  */
2655
2758
  this.exitButton = "Exit";
2759
+ /**
2760
+ * @uiName Information modal title
2761
+ */
2762
+ this.modalTitle = "Important Note";
2763
+ /**
2764
+ * @uiName Information modal description text
2765
+ */
2766
+ this.modalDescription = "Remember the name you enter in your tax form. It must exactly match the bank account holder name configured in the next step. {br}{br}Otherwise you will have to resubmit your form again and there will be delays receiving your payout.";
2767
+ /**
2768
+ * @uiName Information modal button text
2769
+ */
2770
+ this.modalButtonText = "I understand";
2656
2771
  stencilHooks_module.h$1(this);
2657
2772
  }
2658
2773
  disconnectedCallback() { }
@@ -2707,6 +2822,7 @@ function useDocusignFormDemo(props) {
2707
2822
  errors: {},
2708
2823
  },
2709
2824
  documentType: "W9",
2825
+ showModal: false,
2710
2826
  },
2711
2827
  data: {
2712
2828
  taxForm: "W9",
@@ -2717,6 +2833,8 @@ function useDocusignFormDemo(props) {
2717
2833
  demo: {
2718
2834
  onSubmit: () => setStep("/4"),
2719
2835
  onBack: () => setStep("/3"),
2836
+ onModalOpen: () => { },
2837
+ onModalClose: () => { },
2720
2838
  },
2721
2839
  setParticipantType: (p) => console.log({ p }),
2722
2840
  setDocusignStatus: (status) => console.log(status),
@@ -4657,6 +4775,21 @@ const TaxAndCashMonolith = class {
4657
4775
  * @uiGroup Step 3 Properties
4658
4776
  */
4659
4777
  this.step3_exitButton = "Exit";
4778
+ /**
4779
+ * @uiName Information modal title
4780
+ * @uiGroup Step 3 Properties
4781
+ */
4782
+ this.step3_modalTitle = "Important Note";
4783
+ /**
4784
+ * @uiName Information modal description text
4785
+ * @uiGroup Step 3 Properties
4786
+ */
4787
+ this.step3_modalDescription = "Remember the name you enter in your tax form. It must exactly match the bank account holder name configured in the next step. {br}{br}Otherwise you will have to resubmit your form again and there will be delays receiving your payout.";
4788
+ /**
4789
+ * @uiName Information modal button text
4790
+ * @uiGroup Step 3 Properties
4791
+ */
4792
+ this.step3_modalButtonText = "I understand";
4660
4793
  /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4661
4794
  STEP 4 PROPS:
4662
4795
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
@@ -4739,7 +4872,12 @@ const TaxAndCashMonolith = class {
4739
4872
  * @uiName Beneficiary account field label
4740
4873
  * @uiGroup Step 4 Properties
4741
4874
  */
4742
- this.step4_beneficiaryAccountNameLabel = "Beneficiary account name";
4875
+ this.step4_beneficiaryAccountNameLabel = "Account holder name";
4876
+ /**
4877
+ * @uiName Beneficiary account field description
4878
+ * @uiGroup Step 4 Properties
4879
+ */
4880
+ this.step4_beneficiaryAccountNameDescription = "The beneficiary name of your bank account. Ensure this matches the name on your tax form.";
4743
4881
  /**
4744
4882
  * @uiName Bank account type field label
4745
4883
  * @uiGroup Step 4 Properties
@@ -4881,6 +5019,21 @@ const TaxAndCashMonolith = class {
4881
5019
  * @uiGroup Step 4 Properties
4882
5020
  */
4883
5021
  this.step4_verifyEmailDescriptionText = "Verify your email to update your payment settings. Enter the code sent to {email} from our referral provider, impact.com.";
5022
+ /**
5023
+ * @uiName Information modal title
5024
+ * @uiGroup Step 4 Properties
5025
+ */
5026
+ this.step4_modalTitle = "Important Note";
5027
+ /**
5028
+ * @uiName Information modal description text
5029
+ * @uiGroup Step 4 Properties
5030
+ */
5031
+ this.step4_modalDescription = "Updating payment information places your account and payouts on hold for up to 48 hours while we verify your change. Payments scheduled during the hold period are skipped.";
5032
+ /**
5033
+ * @uiName Information modal button text
5034
+ * @uiGroup Step 4 Properties
5035
+ */
5036
+ this.step4_modalButtonText = "I understand, update my information";
4884
5037
  /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4885
5038
  DASHBOARD PROPS:
4886
5039
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
@@ -685,6 +685,7 @@ const stepFourProps = {
685
685
  formState: {
686
686
  paymentMethodChecked: "toBankAccount",
687
687
  },
688
+ showModal: false,
688
689
  },
689
690
  callbacks: {
690
691
  onVerificationHide: () => { },
@@ -694,6 +695,8 @@ const stepFourProps = {
694
695
  setPaymentScheduleChecked: () => { },
695
696
  onBack: async () => console.log("back"),
696
697
  setCountrySearch: () => { },
698
+ onModalOpen: () => { },
699
+ onModalClose: () => { },
697
700
  },
698
701
  refs: { formRef: { current: null } },
699
702
  };
@@ -715,12 +718,15 @@ const docusignFormProps = {
715
718
  errors: {},
716
719
  taxFormExpired: false,
717
720
  },
721
+ showModal: false,
718
722
  },
719
723
  callbacks: {
720
724
  onExit: () => { },
721
725
  completeDocument: async () => { },
722
726
  setParticipantType: (p) => console.log({ p }),
723
727
  setDocusignStatus: (status) => console.log(status),
728
+ onModalOpen: () => { },
729
+ onModalClose: () => { },
724
730
  },
725
731
  };
726
732
  const dashboardProps = {
@@ -1197,6 +1203,16 @@ const StepThreeDocusignDisabled = () => {
1197
1203
  },
1198
1204
  } }));
1199
1205
  };
1206
+ const StepThreeWithDocusignModalOpen = () => {
1207
+ return (index.h("sqm-docusign-form", { demoData: {
1208
+ states: {
1209
+ documentType: "W9",
1210
+ documentTypeString: taxTypeToName("W9"),
1211
+ ...docusignFormProps.states,
1212
+ showModal: true,
1213
+ },
1214
+ } }));
1215
+ };
1200
1216
  // STEP 4
1201
1217
  const StepFourDefault = () => {
1202
1218
  return index.h("sqm-banking-info-form", null);
@@ -1739,6 +1755,7 @@ const TaxForm = /*#__PURE__*/Object.freeze({
1739
1755
  StepThreeDocusignWithLoadingError: StepThreeDocusignWithLoadingError,
1740
1756
  StepThreeDocusignLoading: StepThreeDocusignLoading,
1741
1757
  StepThreeDocusignDisabled: StepThreeDocusignDisabled,
1758
+ StepThreeWithDocusignModalOpen: StepThreeWithDocusignModalOpen,
1742
1759
  StepFourDefault: StepFourDefault,
1743
1760
  StepFourIsPartner: StepFourIsPartner,
1744
1761
  StepFourDirectToBankChecked: StepFourDirectToBankChecked,