@saasquatch/mint-components 1.15.0-49 → 1.15.0-50

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 (167) hide show
  1. package/dist/cjs/{IndirectTaxDetailsView-e379406f.js → IndirectTaxDetailsView-6e117dd3.js} +2 -2
  2. package/dist/cjs/{ShadowViewAddon-3558387a.js → ShadowViewAddon-e1bcffe2.js} +81 -58
  3. package/dist/cjs/{global-4a3008b4.js → global-6d0d196d.js} +1 -1
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/cjs/mint-components.cjs.js +2 -2
  6. package/dist/cjs/{mockRewardData-6e4a90f9.js → mockRewardData-baa02051.js} +1 -1
  7. package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +124 -6
  8. package/dist/cjs/sqm-big-stat_42.cjs.entry.js +9 -6
  9. package/dist/cjs/sqm-code-verification.cjs.entry.js +1 -1
  10. package/dist/cjs/sqm-email-verification.cjs.entry.js +1 -1
  11. package/dist/cjs/sqm-empty_4.cjs.entry.js +2 -8
  12. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +1 -1
  13. package/dist/cjs/sqm-pagination_3.cjs.entry.js +1 -1
  14. package/dist/cjs/{sqm-portal-container-view-70eaf785.js → sqm-portal-container-view-07e4343f.js} +1 -1
  15. package/dist/cjs/{sqm-portal-email-verification-view-9ba1a75d.js → sqm-portal-email-verification-view-14ea3a91.js} +1 -1
  16. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +2 -2
  17. package/dist/cjs/{sqm-portal-profile-view-c4c80164.js → sqm-portal-profile-view-570d2ae3.js} +1 -1
  18. package/dist/cjs/sqm-portal-profile.cjs.entry.js +2 -2
  19. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +4 -4
  20. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +3 -3
  21. package/dist/cjs/sqm-stencilbook.cjs.entry.js +62 -32
  22. package/dist/cjs/sqm-tax-and-cash.cjs.entry.js +38 -3
  23. package/dist/cjs/{utils-1b04e1c8.js → utils-0b09e2cb.js} +1 -1
  24. package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll-view.js +1 -1
  25. package/dist/collection/components/sqm-portal-container/sqm-portal-container-view.js +1 -1
  26. package/dist/collection/components/sqm-portal-container/sqm-portal-container.js +1 -8
  27. package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +1 -1
  28. package/dist/collection/components/sqm-referral-table/mockReferralData.js +1 -1
  29. package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeList.stories.js +19 -19
  30. package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeListData.js +31 -5
  31. package/dist/collection/components/sqm-reward-exchange-list/progressBar.js +10 -10
  32. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +38 -41
  33. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +1 -2
  34. package/dist/collection/components/sqm-rewards-table/RewardsTableCell.stories.js +2 -2
  35. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.js +1 -1
  36. package/dist/collection/components/sqm-rewards-table/mockRewardData.js +1 -1
  37. package/dist/collection/components/sqm-stencilbook/Themes.js +4 -0
  38. package/dist/collection/components/tax-and-cash/BankingForm.stories.js +12 -0
  39. package/dist/collection/components/tax-and-cash/TaxForm.stories.js +16 -0
  40. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/formDefinitions.js +1 -1
  41. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +36 -1
  42. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +106 -3
  43. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +7 -0
  44. package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +38 -0
  45. package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +79 -1
  46. package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +4 -0
  47. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +206 -3
  48. package/dist/collection/components/tax-and-cash/sqm-user-info-form/small-views/DocusignExpiredView.js +1 -1
  49. package/dist/collection/global/styles.js +1 -1
  50. package/dist/collection/global/styles.ts +1 -1
  51. package/dist/esm/{IndirectTaxDetailsView-1600022e.js → IndirectTaxDetailsView-2eff2cc8.js} +2 -2
  52. package/dist/esm/{ShadowViewAddon-8af65b53.js → ShadowViewAddon-dc890af9.js} +81 -58
  53. package/dist/esm/{global-9c1112d1.js → global-64286824.js} +1 -1
  54. package/dist/esm/loader.js +2 -2
  55. package/dist/esm/mint-components.js +2 -2
  56. package/dist/esm/{mockRewardData-bdc54f2e.js → mockRewardData-3d8fe7b0.js} +1 -1
  57. package/dist/esm/sqm-banking-info-form_10.entry.js +124 -6
  58. package/dist/esm/sqm-big-stat_42.entry.js +9 -6
  59. package/dist/esm/sqm-code-verification.entry.js +1 -1
  60. package/dist/esm/sqm-email-verification.entry.js +1 -1
  61. package/dist/esm/sqm-empty_4.entry.js +2 -8
  62. package/dist/esm/sqm-leaderboard-rank.entry.js +1 -1
  63. package/dist/esm/sqm-pagination_3.entry.js +1 -1
  64. package/dist/esm/{sqm-portal-container-view-f0b1ccfc.js → sqm-portal-container-view-176e92e3.js} +1 -1
  65. package/dist/esm/{sqm-portal-email-verification-view-10d41c81.js → sqm-portal-email-verification-view-86d50913.js} +1 -1
  66. package/dist/esm/sqm-portal-email-verification.entry.js +2 -2
  67. package/dist/esm/{sqm-portal-profile-view-7709257a.js → sqm-portal-profile-view-c2b82f77.js} +1 -1
  68. package/dist/esm/sqm-portal-profile.entry.js +2 -2
  69. package/dist/esm/sqm-referral-table_11.entry.js +4 -4
  70. package/dist/esm/sqm-rewards-table_9.entry.js +3 -3
  71. package/dist/esm/sqm-stencilbook.entry.js +62 -32
  72. package/dist/esm/sqm-tax-and-cash.entry.js +38 -3
  73. package/dist/esm/{utils-1d251439.js → utils-517e9b20.js} +1 -1
  74. package/dist/esm-es5/{IndirectTaxDetailsView-1600022e.js → IndirectTaxDetailsView-2eff2cc8.js} +1 -1
  75. package/dist/esm-es5/{ShadowViewAddon-8af65b53.js → ShadowViewAddon-dc890af9.js} +1 -1
  76. package/dist/esm-es5/{global-9c1112d1.js → global-64286824.js} +1 -1
  77. package/dist/esm-es5/loader.js +1 -1
  78. package/dist/esm-es5/mint-components.js +1 -1
  79. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
  80. package/dist/esm-es5/sqm-big-stat_42.entry.js +1 -1
  81. package/dist/esm-es5/sqm-code-verification.entry.js +1 -1
  82. package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
  83. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  84. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  85. package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
  86. package/dist/esm-es5/{sqm-portal-container-view-f0b1ccfc.js → sqm-portal-container-view-176e92e3.js} +1 -1
  87. package/dist/esm-es5/{sqm-portal-email-verification-view-10d41c81.js → sqm-portal-email-verification-view-86d50913.js} +1 -1
  88. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  89. package/dist/esm-es5/{sqm-portal-profile-view-7709257a.js → sqm-portal-profile-view-c2b82f77.js} +1 -1
  90. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  91. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  92. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  93. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  94. package/dist/esm-es5/sqm-tax-and-cash.entry.js +1 -1
  95. package/dist/esm-es5/{utils-1d251439.js → utils-517e9b20.js} +1 -1
  96. package/dist/mint-components/global/styles.ts +1 -1
  97. package/dist/mint-components/mint-components.esm.js +1 -1
  98. package/dist/mint-components/mint-components.js +1 -1
  99. package/dist/mint-components/{p-01082bad.js → p-01c508cc.js} +1 -1
  100. package/dist/mint-components/{p-a5177c16.system.entry.js → p-08cf4237.system.entry.js} +1 -1
  101. package/dist/mint-components/{p-1c8e7298.entry.js → p-106e808d.entry.js} +1 -1
  102. package/dist/mint-components/{p-76bfc42f.entry.js → p-191c1dbf.entry.js} +1 -1
  103. package/dist/mint-components/{p-ec6ec018.entry.js → p-1fb297f9.entry.js} +5 -5
  104. package/dist/mint-components/{p-9c954c08.entry.js → p-305cbc9b.entry.js} +1 -1
  105. package/dist/mint-components/{p-2f46db5e.system.entry.js → p-3ca0adb2.system.entry.js} +1 -1
  106. package/dist/mint-components/{p-314ad8e8.entry.js → p-3f35ded4.entry.js} +1 -1
  107. package/dist/mint-components/p-4904d54f.system.js +1 -0
  108. package/dist/mint-components/{p-68e6e362.js → p-50ee4d5e.js} +1 -1
  109. package/dist/mint-components/p-51810653.system.entry.js +1 -0
  110. package/dist/mint-components/{p-53c69c51.system.js → p-5856f946.system.js} +1 -1
  111. package/dist/mint-components/{p-e94a37bc.system.entry.js → p-59270c5f.system.entry.js} +1 -1
  112. package/dist/mint-components/{p-cf616a3d.system.entry.js → p-5a44e1d2.system.entry.js} +1 -1
  113. package/dist/mint-components/{p-aea6d974.system.js → p-5c362093.system.js} +1 -1
  114. package/dist/mint-components/p-620e625b.system.entry.js +1 -0
  115. package/dist/mint-components/{p-26fe5b91.entry.js → p-6491939b.entry.js} +11 -11
  116. package/dist/mint-components/{p-b34966f6.system.js → p-71bc7f52.system.js} +1 -1
  117. package/dist/mint-components/{p-5737a72e.system.entry.js → p-73a761b4.system.entry.js} +1 -1
  118. package/dist/mint-components/p-79a50a65.entry.js +1 -0
  119. package/dist/mint-components/p-7e0c12e3.entry.js +1 -0
  120. package/dist/mint-components/p-9199ab6d.system.entry.js +1 -0
  121. package/dist/mint-components/{p-572ec8d4.js → p-9580aac3.js} +1 -1
  122. package/dist/mint-components/{p-afe1ea2d.system.entry.js → p-9697bb3f.system.entry.js} +1 -1
  123. package/dist/mint-components/p-9b52645f.entry.js +9 -0
  124. package/dist/mint-components/{p-07bcefdc.js → p-9b7745db.js} +4 -4
  125. package/dist/mint-components/{p-f063930a.entry.js → p-9c73e84d.entry.js} +2 -2
  126. package/dist/mint-components/{p-07ad62e8.system.entry.js → p-a2e377aa.system.entry.js} +1 -1
  127. package/dist/mint-components/p-a6f4fb03.system.js +1 -0
  128. package/dist/mint-components/{p-880bbd84.system.js → p-aadb1a8a.system.js} +1 -1
  129. package/dist/mint-components/{p-11d52524.js → p-b12bd1e1.js} +1 -1
  130. package/dist/mint-components/{p-6964a69b.system.js → p-b3f6377c.system.js} +1 -1
  131. package/dist/mint-components/{p-9c298d88.entry.js → p-bcee8002.entry.js} +1 -1
  132. package/dist/mint-components/{p-16034601.entry.js → p-c2b880ef.entry.js} +1 -1
  133. package/dist/mint-components/p-cbc93735.system.entry.js +1 -0
  134. package/dist/mint-components/p-d5b01068.system.entry.js +1 -0
  135. package/dist/mint-components/{p-208b3b3d.js → p-dbf52a1f.js} +1 -1
  136. package/dist/mint-components/{p-8314626a.js → p-e078e746.js} +1 -1
  137. package/dist/mint-components/{p-9aa2c2fe.entry.js → p-e59eba75.entry.js} +1 -1
  138. package/dist/mint-components/{p-4e2e901f.system.entry.js → p-edfa670f.system.entry.js} +1 -1
  139. package/dist/mint-components/{p-972b9791.system.js → p-f03bd6ad.system.js} +1 -1
  140. package/dist/types/components/sqm-reward-exchange-list/RewardExchangeListData.d.ts +457 -437
  141. package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.d.ts +1 -1
  142. package/dist/types/components/tax-and-cash/BankingForm.stories.d.ts +1 -0
  143. package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +1 -0
  144. package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.d.ts +6 -0
  145. package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.d.ts +16 -0
  146. package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.d.ts +6 -0
  147. package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.d.ts +12 -0
  148. package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +3 -0
  149. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +35 -0
  150. package/dist/types/components.d.ts +126 -0
  151. package/docs/docs.docx +0 -0
  152. package/docs/raisins.json +1 -1
  153. package/grapesjs/grapesjs.js +1 -1
  154. package/package.json +1 -1
  155. package/dist/mint-components/p-0592dc0b.system.js +0 -1
  156. package/dist/mint-components/p-114fcd0e.entry.js +0 -1
  157. package/dist/mint-components/p-1f7a26e2.entry.js +0 -9
  158. package/dist/mint-components/p-5b1ae2f4.system.entry.js +0 -1
  159. package/dist/mint-components/p-67d1a31e.entry.js +0 -1
  160. package/dist/mint-components/p-802762ab.system.js +0 -1
  161. package/dist/mint-components/p-8f33e814.system.entry.js +0 -1
  162. package/dist/mint-components/p-ba2c9746.system.entry.js +0 -1
  163. package/dist/mint-components/p-d2df58a5.system.entry.js +0 -1
  164. package/dist/mint-components/p-e3a9496d.system.entry.js +0 -1
  165. /package/dist/esm-es5/{mockRewardData-bdc54f2e.js → mockRewardData-3d8fe7b0.js} +0 -0
  166. /package/dist/mint-components/{p-6cff599f.system.js → p-9841c478.system.js} +0 -0
  167. /package/dist/mint-components/{p-4254a9b6.js → p-a11426b2.js} +0 -0
@@ -92,7 +92,11 @@ export class BankingInfoForm {
92
92
  /**
93
93
  * @uiName Beneficiary account field label
94
94
  */
95
- this.beneficiaryAccountNameLabel = "Beneficiary account name";
95
+ this.beneficiaryAccountNameLabel = "Account holder name";
96
+ /**
97
+ * @uiName Beneficiary account field description
98
+ */
99
+ this.beneficiaryAccountNameDescription = "The beneficiary name of your bank account. Ensure this matches the name on your tax form.";
96
100
  /**
97
101
  * @uiName Bank account type field label
98
102
  */
@@ -271,6 +275,18 @@ export class BankingInfoForm {
271
275
  * @uiWidget textArea
272
276
  */
273
277
  this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact Support.";
278
+ /**
279
+ * @uiName Information modal title
280
+ */
281
+ this.modalTitle = "Important Note";
282
+ /**
283
+ * @uiName Information modal description text
284
+ */
285
+ 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.";
286
+ /**
287
+ * @uiName Information modal button text
288
+ */
289
+ this.modalButtonText = "I understand, update my information";
274
290
  withHooks(this);
275
291
  }
276
292
  disconnectedCallback() { }
@@ -768,7 +784,28 @@ export class BankingInfoForm {
768
784
  },
769
785
  "attribute": "beneficiary-account-name-label",
770
786
  "reflect": false,
771
- "defaultValue": "\"Beneficiary account name\""
787
+ "defaultValue": "\"Account holder name\""
788
+ },
789
+ "beneficiaryAccountNameDescription": {
790
+ "type": "string",
791
+ "mutable": false,
792
+ "complexType": {
793
+ "original": "string",
794
+ "resolved": "string",
795
+ "references": {}
796
+ },
797
+ "required": false,
798
+ "optional": false,
799
+ "docs": {
800
+ "tags": [{
801
+ "text": "Beneficiary account field description",
802
+ "name": "uiName"
803
+ }],
804
+ "text": ""
805
+ },
806
+ "attribute": "beneficiary-account-name-description",
807
+ "reflect": false,
808
+ "defaultValue": "\"The beneficiary name of your bank account. Ensure this matches the name on your tax form.\""
772
809
  },
773
810
  "bankAccountTypeLabel": {
774
811
  "type": "string",
@@ -1607,12 +1644,75 @@ export class BankingInfoForm {
1607
1644
  "reflect": false,
1608
1645
  "defaultValue": "\"Please refresh the page and try again. If this problem continues, contact Support.\""
1609
1646
  },
1647
+ "modalTitle": {
1648
+ "type": "string",
1649
+ "mutable": false,
1650
+ "complexType": {
1651
+ "original": "string",
1652
+ "resolved": "string",
1653
+ "references": {}
1654
+ },
1655
+ "required": false,
1656
+ "optional": false,
1657
+ "docs": {
1658
+ "tags": [{
1659
+ "text": "Information modal title",
1660
+ "name": "uiName"
1661
+ }],
1662
+ "text": ""
1663
+ },
1664
+ "attribute": "modal-title",
1665
+ "reflect": false,
1666
+ "defaultValue": "\"Important Note\""
1667
+ },
1668
+ "modalDescription": {
1669
+ "type": "string",
1670
+ "mutable": false,
1671
+ "complexType": {
1672
+ "original": "string",
1673
+ "resolved": "string",
1674
+ "references": {}
1675
+ },
1676
+ "required": false,
1677
+ "optional": false,
1678
+ "docs": {
1679
+ "tags": [{
1680
+ "text": "Information modal description text",
1681
+ "name": "uiName"
1682
+ }],
1683
+ "text": ""
1684
+ },
1685
+ "attribute": "modal-description",
1686
+ "reflect": false,
1687
+ "defaultValue": "\"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.\""
1688
+ },
1689
+ "modalButtonText": {
1690
+ "type": "string",
1691
+ "mutable": false,
1692
+ "complexType": {
1693
+ "original": "string",
1694
+ "resolved": "string",
1695
+ "references": {}
1696
+ },
1697
+ "required": false,
1698
+ "optional": false,
1699
+ "docs": {
1700
+ "tags": [{
1701
+ "text": "Information modal button text",
1702
+ "name": "uiName"
1703
+ }],
1704
+ "text": ""
1705
+ },
1706
+ "attribute": "modal-button-text",
1707
+ "reflect": false,
1708
+ "defaultValue": "\"I understand, update my information\""
1709
+ },
1610
1710
  "demoData": {
1611
1711
  "type": "unknown",
1612
1712
  "mutable": false,
1613
1713
  "complexType": {
1614
1714
  "original": "DemoData<BankingInfoFormViewProps>",
1615
- "resolved": "{ states?: { showVerification: boolean; step?: string; locale?: string; loading: boolean; saveLoading?: boolean; disabled: boolean; saveDisabled: boolean; hideSteps?: boolean; hasPayPal: boolean; hideBanking?: boolean; hidePayPal?: boolean; hideBalanceThreshold?: boolean; hideFixedDay?: boolean; hideBackButton: boolean; feeCap?: string; isPartner: boolean; paymentMethodFeeLabel?: string; loadingError: boolean; formState: BankingInfoFormData & { paymentMethodChecked?: \"toBankAccount\" | \"toPayPalAccount\"; paymentScheduleChecked?: \"BALANCE_THRESHOLD\" | \"FIXED_DAY\"; errors?: { general?: boolean; inputErrors?: { [field: string]: { type: \"required\" | \"invalid\"; }; }; }; }; bitset?: number; currency?: string; thresholds: string[]; countries?: { countryCode: string; displayName: string; }[]; allCountries?: { countryCode: string; displayName: string; }[]; currentPaymentOption?: any; showInputs?: boolean; bankCountry?: string; countrySearch?: string; email?: string; }; slots?: { verificationDialogSlot?: VNode; formInputsSlot?: VNode[]; countryInputSlot?: VNode; paymentMethodSlot?: VNode; paymentThresholdSelectSlot?: VNode; paymentFixedDaySelectSlot?: VNode; paypalInputSlot?: VNode; }; refs?: { formRef: any; }; }",
1715
+ "resolved": "{ states?: { showVerification: boolean; step?: string; locale?: string; loading: boolean; saveLoading?: boolean; disabled: boolean; saveDisabled: boolean; hideSteps?: boolean; hasPayPal: boolean; hideBanking?: boolean; hidePayPal?: boolean; hideBalanceThreshold?: boolean; hideFixedDay?: boolean; hideBackButton: boolean; feeCap?: string; isPartner: boolean; paymentMethodFeeLabel?: string; loadingError: boolean; formState: BankingInfoFormData & { paymentMethodChecked?: \"toBankAccount\" | \"toPayPalAccount\"; paymentScheduleChecked?: \"BALANCE_THRESHOLD\" | \"FIXED_DAY\"; errors?: { general?: boolean; inputErrors?: { [field: string]: { type: \"required\" | \"invalid\"; }; }; }; }; bitset?: number; currency?: string; thresholds: string[]; countries?: { countryCode: string; displayName: string; }[]; allCountries?: { countryCode: string; displayName: string; }[]; currentPaymentOption?: any; showInputs?: boolean; bankCountry?: string; countrySearch?: string; email?: string; showModal: boolean; }; slots?: { verificationDialogSlot?: VNode; formInputsSlot?: VNode[]; countryInputSlot?: VNode; paymentMethodSlot?: VNode; paymentThresholdSelectSlot?: VNode; paymentFixedDaySelectSlot?: VNode; paypalInputSlot?: VNode; }; refs?: { formRef: any; }; }",
1616
1716
  "references": {
1617
1717
  "DemoData": {
1618
1718
  "location": "import",
@@ -1721,6 +1821,7 @@ function useDemoBankingInfoForm(props) {
1721
1821
  currency,
1722
1822
  setCurrency,
1723
1823
  hasPayPal: true,
1824
+ showModal: false,
1724
1825
  },
1725
1826
  callbacks: {
1726
1827
  onVerificationHide: () => { },
@@ -1733,6 +1834,8 @@ function useDemoBankingInfoForm(props) {
1733
1834
  setCountrySearch: () => { },
1734
1835
  onBack: async () => setStep("/dashboard"),
1735
1836
  onVerification: () => { },
1837
+ onModalOpen: () => { },
1838
+ onModalClose: () => { },
1736
1839
  },
1737
1840
  text: props.getTextProps(),
1738
1841
  refs: {
@@ -105,6 +105,7 @@ export function useBankingInfoForm(props) {
105
105
  const [paymentScheduleChecked, setPaymentScheduleChecked] = useState(undefined);
106
106
  const [countrySearch, setCountrySearch] = useState("");
107
107
  const [filteredCountries, setFilteredCountries] = useState(countries || []);
108
+ const [showModal, setShowModal] = useState(false);
108
109
  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) || "";
109
110
  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);
110
111
  const feeCap = paypalFeeMap[currency] || "";
@@ -276,10 +277,12 @@ export function useBankingInfoForm(props) {
276
277
  });
277
278
  setErrors({ inputErrors: validationErrors });
278
279
  if (Object.keys(validationErrors).length) {
280
+ setShowModal(false);
279
281
  return;
280
282
  }
281
283
  let token = undefined;
282
284
  if (isPartner) {
285
+ setShowModal(false);
283
286
  setShowVerification(true);
284
287
  token = await new Promise((res) => {
285
288
  const cb = (e) => {
@@ -292,6 +295,7 @@ export function useBankingInfoForm(props) {
292
295
  setShowVerification(false);
293
296
  }
294
297
  await runMutation(formData, token);
298
+ setShowModal(false);
295
299
  };
296
300
  const onVerification = async (token) => {
297
301
  host.dispatchEvent(new CustomEvent(VERIFICATION_EVENT_KEY, {
@@ -325,6 +329,8 @@ export function useBankingInfoForm(props) {
325
329
  setCountrySearch,
326
330
  onVerification,
327
331
  onVerificationHide: () => onVerification(null),
332
+ onModalClose: () => setShowModal(false),
333
+ onModalOpen: () => setShowModal(true),
328
334
  },
329
335
  states: {
330
336
  showVerification,
@@ -358,6 +364,7 @@ export function useBankingInfoForm(props) {
358
364
  bankCountry: formState.bankCountry,
359
365
  countrySearch,
360
366
  email: (_j = userData === null || userData === void 0 ? void 0 : userData.user) === null || _j === void 0 ? void 0 : _j.email,
367
+ showModal,
361
368
  },
362
369
  refs: {
363
370
  formRef,
@@ -3,6 +3,11 @@ import { intl } from "../../../global/global";
3
3
  import { createStyleSheet } from "../../../styling/JSS";
4
4
  import { FORM_STEPS } from "../data";
5
5
  const style = {
6
+ ModalTitleContainer: {
7
+ display: "flex",
8
+ gap: "var(--sl-spacing-small)",
9
+ alignItems: "center",
10
+ },
6
11
  FormWrapper: {
7
12
  display: "flex",
8
13
  justifyContent: "flex-start",
@@ -91,6 +96,28 @@ const style = {
91
96
  color: "var(--sqm-text-subdued)",
92
97
  fontSize: "var(--sl-font-size-medium)",
93
98
  },
99
+ Dialog: {
100
+ "&::part(panel)": {
101
+ maxWidth: "420px",
102
+ },
103
+ "&::part(title)": {
104
+ fontSize: "var(--sl-font-size-large)",
105
+ fontWeight: "600",
106
+ },
107
+ "&::part(body)": {
108
+ padding: "0 var(--sl-spacing-x-large) 0 var(--sl-spacing-x-large)",
109
+ fontSize: "var(--sl-font-size-small)",
110
+ },
111
+ "&::part(footer)": {
112
+ display: "flex",
113
+ flexDirection: "column",
114
+ gap: "var(--sl-spacing-small)",
115
+ marginBottom: "var(--sl-spacing-xx-small)",
116
+ alignItems: "center",
117
+ flex: "1",
118
+ },
119
+ },
120
+ DialogButton: { margin: "auto", width: "100%" },
94
121
  };
95
122
  const sheet = createStyleSheet(style);
96
123
  const styleString = sheet.toString();
@@ -120,6 +147,17 @@ export const DocusignFormView = (props) => {
120
147
  h("style", { type: "text/css" },
121
148
  styleString,
122
149
  vanillaStyle),
150
+ h("sl-dialog", { class: sheet.classes.Dialog, open: states.showModal, "onSl-hide": callbacks.onModalClose },
151
+ h("div", { class: classes.ModalTitleContainer, slot: "label" },
152
+ h("sl-icon", { name: "info-circle", style: { color: "var(--sl-color-info-500)" } }),
153
+ h("h2", { style: { fontSize: "var(--sl-font-size-large)" } }, text.modalTitle)),
154
+ h("p", null, intl.formatMessage({
155
+ id: "modalText",
156
+ defaultMessage: text.modalDescription,
157
+ }, {
158
+ br: h("br", null),
159
+ })),
160
+ h("sl-button", { slot: "footer", type: "primary", class: sheet.classes.DialogButton, onClick: callbacks.onModalClose, exportparts: "base: primarybutton-base" }, text.modalButtonText)),
123
161
  h("div", { class: classes.TextContainer },
124
162
  h("div", null,
125
163
  !states.hideSteps && (h("p", null, intl.formatMessage({
@@ -120,6 +120,18 @@ export class DocusignForm {
120
120
  * @uiName Exit button text
121
121
  */
122
122
  this.exitButton = "Exit";
123
+ /**
124
+ * @uiName Information modal title
125
+ */
126
+ this.modalTitle = "Important Note";
127
+ /**
128
+ * @uiName Information modal description text
129
+ */
130
+ 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.";
131
+ /**
132
+ * @uiName Information modal button text
133
+ */
134
+ this.modalButtonText = "I understand";
123
135
  withHooks(this);
124
136
  }
125
137
  disconnectedCallback() { }
@@ -607,12 +619,75 @@ export class DocusignForm {
607
619
  "reflect": false,
608
620
  "defaultValue": "\"Exit\""
609
621
  },
622
+ "modalTitle": {
623
+ "type": "string",
624
+ "mutable": false,
625
+ "complexType": {
626
+ "original": "string",
627
+ "resolved": "string",
628
+ "references": {}
629
+ },
630
+ "required": false,
631
+ "optional": false,
632
+ "docs": {
633
+ "tags": [{
634
+ "text": "Information modal title",
635
+ "name": "uiName"
636
+ }],
637
+ "text": ""
638
+ },
639
+ "attribute": "modal-title",
640
+ "reflect": false,
641
+ "defaultValue": "\"Important Note\""
642
+ },
643
+ "modalDescription": {
644
+ "type": "string",
645
+ "mutable": false,
646
+ "complexType": {
647
+ "original": "string",
648
+ "resolved": "string",
649
+ "references": {}
650
+ },
651
+ "required": false,
652
+ "optional": false,
653
+ "docs": {
654
+ "tags": [{
655
+ "text": "Information modal description text",
656
+ "name": "uiName"
657
+ }],
658
+ "text": ""
659
+ },
660
+ "attribute": "modal-description",
661
+ "reflect": false,
662
+ "defaultValue": "\"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.\""
663
+ },
664
+ "modalButtonText": {
665
+ "type": "string",
666
+ "mutable": false,
667
+ "complexType": {
668
+ "original": "string",
669
+ "resolved": "string",
670
+ "references": {}
671
+ },
672
+ "required": false,
673
+ "optional": false,
674
+ "docs": {
675
+ "tags": [{
676
+ "text": "Information modal button text",
677
+ "name": "uiName"
678
+ }],
679
+ "text": ""
680
+ },
681
+ "attribute": "modal-button-text",
682
+ "reflect": false,
683
+ "defaultValue": "\"I understand\""
684
+ },
610
685
  "demoData": {
611
686
  "type": "unknown",
612
687
  "mutable": false,
613
688
  "complexType": {
614
689
  "original": "DemoData<UseDocusignFormResult>",
615
- "resolved": "{ states?: { step: string; hideSteps: boolean; disabled: boolean; participantTypeDisabled: boolean; loading: boolean; urlLoading: boolean; loadingError: boolean; formState: { participantType: ParticipantType; taxFormExpired: boolean; errors: {}; }; docusignStatus: DocusignStatus; documentType: TaxDocumentType; documentTypeString: string; showExitButton: boolean; }; data?: { taxForm: TaxDocumentType; documentUrl: string; }; }",
690
+ "resolved": "{ states?: { step: string; hideSteps: boolean; disabled: boolean; participantTypeDisabled: boolean; loading: boolean; urlLoading: boolean; loadingError: boolean; formState: { participantType: ParticipantType; taxFormExpired: boolean; errors: {}; }; docusignStatus: DocusignStatus; documentType: TaxDocumentType; documentTypeString: string; showExitButton: boolean; showModal: boolean; }; data?: { taxForm: TaxDocumentType; documentUrl: string; }; }",
616
691
  "references": {
617
692
  "DemoData": {
618
693
  "location": "import",
@@ -661,6 +736,7 @@ function useDocusignFormDemo(props) {
661
736
  errors: {},
662
737
  },
663
738
  documentType: "W9",
739
+ showModal: false,
664
740
  },
665
741
  data: {
666
742
  taxForm: "W9",
@@ -671,6 +747,8 @@ function useDocusignFormDemo(props) {
671
747
  demo: {
672
748
  onSubmit: () => setStep("/4"),
673
749
  onBack: () => setStep("/3"),
750
+ onModalOpen: () => { },
751
+ onModalClose: () => { },
674
752
  },
675
753
  setParticipantType: (p) => console.log({ p }),
676
754
  setDocusignStatus: (status) => console.log(status),
@@ -44,6 +44,7 @@ export function useDocusignForm(props) {
44
44
  const [errors, setErrors] = useState({});
45
45
  const [loading, setLoading] = useState(false);
46
46
  const [showExitButton, setShowExitButton] = useState(false);
47
+ const [showModal, setShowModal] = useState(true);
47
48
  // Only look at current document if it's valid (same as required type)
48
49
  const existingDocumentType = validTaxDocument(publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType) && (publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument)
49
50
  ? publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType : undefined;
@@ -139,6 +140,7 @@ export function useDocusignForm(props) {
139
140
  documentType: actualDocumentType,
140
141
  documentTypeString: taxTypeToName(actualDocumentType),
141
142
  showExitButton,
143
+ showModal,
142
144
  },
143
145
  data: {
144
146
  taxForm: actualDocumentType,
@@ -149,6 +151,8 @@ export function useDocusignForm(props) {
149
151
  completeDocument,
150
152
  onExit: progressStep,
151
153
  setParticipantType,
154
+ onModalClose: () => setShowModal(false),
155
+ onModalOpen: () => setShowModal(true),
152
156
  },
153
157
  text: props.getTextProps(),
154
158
  };