@saasquatch/mint-components 1.10.2-9 → 1.11.0-0

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 (138) hide show
  1. package/dist/cjs/{ShadowViewAddon-721bb748.js → ShadowViewAddon-21aa34f8.js} +2 -2
  2. package/dist/cjs/{email-registration-view-248652bb.js → email-registration-view-5170d9f1.js} +1 -1
  3. package/dist/cjs/{global-02e50f09.js → global-4a59a374.js} +1 -1
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/cjs/mint-components.cjs.js +1 -1
  6. package/dist/cjs/sqm-banking-info-form_16.cjs.entry.js +75 -67
  7. package/dist/cjs/sqm-big-stat_38.cjs.entry.js +2 -2
  8. package/dist/cjs/sqm-empty_4.cjs.entry.js +1 -1
  9. package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +1 -1
  10. package/dist/cjs/{sqm-invoice-table-view-28b14d28.js → sqm-invoice-table-view-1ea0d1fe.js} +2 -1
  11. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +1 -1
  12. package/dist/cjs/sqm-logout-current-user.cjs.entry.js +10 -9
  13. package/dist/cjs/{sqm-portal-email-verification-view-292b5bf4.js → sqm-portal-email-verification-view-07161940.js} +1 -1
  14. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +2 -2
  15. package/dist/cjs/{sqm-portal-profile-view-fde54e35.js → sqm-portal-profile-view-07b99f80.js} +1 -1
  16. package/dist/cjs/sqm-portal-profile.cjs.entry.js +2 -2
  17. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +1 -1
  18. package/dist/cjs/sqm-referred-registration.cjs.entry.js +1 -1
  19. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +1 -1
  20. package/dist/cjs/sqm-stencilbook.cjs.entry.js +28 -28
  21. package/dist/collection/components/sqm-card-feed/sqm-card-feed.js +1 -1
  22. package/dist/collection/components/sqm-logout-current-user/useLogoutCurrentUser.js +10 -9
  23. package/dist/collection/components/sqm-portal-container/PortalContainer.stories.js +7 -7
  24. package/dist/collection/components/sqm-referral-card/ReferralCard.stories.js +1 -1
  25. package/dist/collection/components/sqm-share-button/ShareButton.stories.js +1 -1
  26. package/dist/collection/components/sqm-share-button/sqm-share-button-view.js +1 -1
  27. package/dist/collection/components/sqm-share-button/sqm-share-button.js +2 -2
  28. package/dist/collection/components/sqm-task-card/UseTaskCard.stories.js +1 -1
  29. package/dist/collection/components/sqm-task-card/sqm-task-card.js +1 -1
  30. package/dist/collection/components/tax-and-cash/TaxForm.stories.js +1 -0
  31. package/dist/collection/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.js +18 -11
  32. package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +3 -19
  33. package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +5 -3
  34. package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +49 -33
  35. package/dist/collection/components/views/email-registration-view.js +1 -1
  36. package/dist/collection/global/global.js +1 -1
  37. package/dist/collection/stories/NewPortal.stories.js +1 -1
  38. package/dist/esm/{ShadowViewAddon-31eb5b16.js → ShadowViewAddon-90897c22.js} +2 -2
  39. package/dist/esm/{email-registration-view-a89a88bf.js → email-registration-view-07d80492.js} +1 -1
  40. package/dist/esm/{global-04c7d3b5.js → global-e7bb0343.js} +1 -1
  41. package/dist/esm/loader.js +1 -1
  42. package/dist/esm/mint-components.js +1 -1
  43. package/dist/esm/sqm-banking-info-form_16.entry.js +75 -67
  44. package/dist/esm/sqm-big-stat_38.entry.js +2 -2
  45. package/dist/esm/sqm-empty_4.entry.js +1 -1
  46. package/dist/esm/sqm-instant-access-registration.entry.js +1 -1
  47. package/dist/esm/{sqm-invoice-table-view-34ac7513.js → sqm-invoice-table-view-6945ea24.js} +2 -1
  48. package/dist/esm/sqm-leaderboard-rank.entry.js +1 -1
  49. package/dist/esm/sqm-logout-current-user.entry.js +10 -9
  50. package/dist/esm/{sqm-portal-email-verification-view-4307c992.js → sqm-portal-email-verification-view-0b32261f.js} +1 -1
  51. package/dist/esm/sqm-portal-email-verification.entry.js +2 -2
  52. package/dist/esm/{sqm-portal-profile-view-ffe955c8.js → sqm-portal-profile-view-03026a5e.js} +1 -1
  53. package/dist/esm/sqm-portal-profile.entry.js +2 -2
  54. package/dist/esm/sqm-referral-table_11.entry.js +1 -1
  55. package/dist/esm/sqm-referred-registration.entry.js +1 -1
  56. package/dist/esm/sqm-rewards-table_9.entry.js +1 -1
  57. package/dist/esm/sqm-stencilbook.entry.js +28 -28
  58. package/dist/esm-es5/ShadowViewAddon-90897c22.js +1 -0
  59. package/dist/esm-es5/email-registration-view-07d80492.js +1 -0
  60. package/dist/esm-es5/{global-04c7d3b5.js → global-e7bb0343.js} +1 -1
  61. package/dist/esm-es5/loader.js +1 -1
  62. package/dist/esm-es5/mint-components.js +1 -1
  63. package/dist/esm-es5/sqm-banking-info-form_16.entry.js +1 -1
  64. package/dist/esm-es5/sqm-big-stat_38.entry.js +1 -1
  65. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  66. package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
  67. package/dist/esm-es5/{sqm-invoice-table-view-34ac7513.js → sqm-invoice-table-view-6945ea24.js} +1 -1
  68. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  69. package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
  70. package/dist/esm-es5/{sqm-portal-email-verification-view-4307c992.js → sqm-portal-email-verification-view-0b32261f.js} +1 -1
  71. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  72. package/dist/esm-es5/{sqm-portal-profile-view-ffe955c8.js → sqm-portal-profile-view-03026a5e.js} +1 -1
  73. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  74. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  75. package/dist/esm-es5/sqm-referred-registration.entry.js +1 -1
  76. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  77. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  78. package/dist/mint-components/mint-components.esm.js +1 -1
  79. package/dist/mint-components/mint-components.js +1 -1
  80. package/dist/mint-components/p-007383e1.entry.js +9 -0
  81. package/dist/mint-components/p-03deaf76.entry.js +9 -0
  82. package/dist/mint-components/{p-d6474614.js → p-05948592.js} +1 -1
  83. package/dist/mint-components/{p-4d233cd4.js → p-0e556260.js} +1 -1
  84. package/dist/mint-components/p-10036f16.js +1 -0
  85. package/dist/mint-components/{p-0d39c815.system.entry.js → p-445ffcfd.system.entry.js} +1 -1
  86. package/dist/mint-components/{p-b6fc1227.system.entry.js → p-4864ed8a.system.entry.js} +1 -1
  87. package/dist/mint-components/{p-01cfff8a.system.entry.js → p-55a782cf.system.entry.js} +1 -1
  88. package/dist/mint-components/{p-59fe4ad1.system.js → p-573fab0f.system.js} +1 -1
  89. package/dist/mint-components/{p-56f14840.entry.js → p-57e4ef5f.entry.js} +1 -1
  90. package/dist/mint-components/{p-1fe65a36.entry.js → p-5956a47e.entry.js} +1 -1
  91. package/dist/mint-components/{p-7049e9b0.entry.js → p-5d485450.entry.js} +1 -1
  92. package/dist/mint-components/{p-34fd1229.system.entry.js → p-64491c96.system.entry.js} +1 -1
  93. package/dist/mint-components/{p-ce621bcc.js → p-66172a05.js} +1 -1
  94. package/dist/mint-components/p-6bf41e0d.system.js +1 -0
  95. package/dist/mint-components/{p-b4c52c5a.entry.js → p-7a572b34.entry.js} +1 -1
  96. package/dist/mint-components/p-869c4ee1.system.entry.js +1 -0
  97. package/dist/mint-components/{p-be4b748a.system.entry.js → p-8fe21979.system.entry.js} +1 -1
  98. package/dist/mint-components/p-956cd716.system.js +1 -0
  99. package/dist/mint-components/{p-3ec16698.entry.js → p-956ed10a.entry.js} +1 -1
  100. package/dist/mint-components/{p-ed17e637.system.js → p-97198e2c.system.js} +1 -1
  101. package/dist/mint-components/{p-4ea58025.system.entry.js → p-973f6501.system.entry.js} +1 -1
  102. package/dist/mint-components/{p-8704937c.js → p-9774fbc5.js} +1 -1
  103. package/dist/mint-components/{p-35d84041.system.entry.js → p-a61e6394.system.entry.js} +1 -1
  104. package/dist/mint-components/{p-1dd69917.system.entry.js → p-b8dbb809.system.entry.js} +1 -1
  105. package/dist/mint-components/p-be38de26.system.js +1 -0
  106. package/dist/mint-components/{p-b23d5520.js → p-bfdd2042.js} +1 -1
  107. package/dist/mint-components/{p-b45ba369.entry.js → p-c6c63bc0.entry.js} +6 -5
  108. package/dist/mint-components/{p-ed095674.system.js → p-c7a3fd1b.system.js} +1 -1
  109. package/dist/mint-components/p-cf158064.entry.js +33 -0
  110. package/dist/mint-components/{p-27bd5535.entry.js → p-d51eb656.entry.js} +1 -1
  111. package/dist/mint-components/{p-4df8f1d2.system.js → p-d7df3dfd.system.js} +1 -1
  112. package/dist/mint-components/{p-32d1d162.entry.js → p-dab544d9.entry.js} +1 -1
  113. package/dist/mint-components/p-e566b746.system.entry.js +1 -0
  114. package/dist/mint-components/{p-8679ed9f.system.entry.js → p-e84a74fe.system.entry.js} +1 -1
  115. package/dist/mint-components/{p-7f088154.entry.js → p-ebcec043.entry.js} +1 -1
  116. package/dist/mint-components/p-f8f6c99d.system.entry.js +1 -0
  117. package/dist/types/components/sqm-card-feed/sqm-card-feed.d.ts +1 -1
  118. package/dist/types/components/sqm-share-button/sqm-share-button.d.ts +2 -2
  119. package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +1 -1
  120. package/dist/types/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.d.ts +6 -3
  121. package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +3 -1
  122. package/dist/types/components.d.ts +2 -2
  123. package/docs/docs.docx +0 -0
  124. package/docs/raisins.json +1 -1
  125. package/grapesjs/grapesjs.js +1 -1
  126. package/package.json +2 -2
  127. package/dist/esm-es5/ShadowViewAddon-31eb5b16.js +0 -1
  128. package/dist/esm-es5/email-registration-view-a89a88bf.js +0 -1
  129. package/dist/mint-components/p-1c857edb.entry.js +0 -33
  130. package/dist/mint-components/p-509e29e6.js +0 -1
  131. package/dist/mint-components/p-a1dba9a1.system.entry.js +0 -1
  132. package/dist/mint-components/p-a51533cb.system.js +0 -1
  133. package/dist/mint-components/p-b567780d.system.js +0 -1
  134. package/dist/mint-components/p-bc51264d.system.js +0 -1
  135. package/dist/mint-components/p-bf723ae9.entry.js +0 -9
  136. package/dist/mint-components/p-c34a507e.system.entry.js +0 -1
  137. package/dist/mint-components/p-e3735866.entry.js +0 -11
  138. package/dist/mint-components/p-f1a1e7f3.system.entry.js +0 -1
@@ -2,7 +2,7 @@
2
2
 
3
3
  const index = require('./index-b0129cd6.js');
4
4
  const stencilHooks_module = require('./stencil-hooks.module-72742a0b.js');
5
- const global = require('./global-02e50f09.js');
5
+ const global = require('./global-4a59a374.js');
6
6
  const index_module = require('./index.module-df530553.js');
7
7
  const cjs = require('./cjs-1066ec21.js');
8
8
  const mixins = require('./mixins-fe9d4112.js');
@@ -17,7 +17,7 @@ const sqmPortalContainerView = require('./sqm-portal-container-view-5fb2ad49.js'
17
17
 
18
18
  const medium = {
19
19
  facebook: { color: "#1877f2", text: "#fff", icon: "facebook" },
20
- twitter: { color: "#000000", text: "#fff", icon: "twitter-x" },
20
+ twitter: { color: "#1da1f2", text: "#fff", icon: "twitter" },
21
21
  email: { color: "#666666", text: "#fff", icon: "envelope" },
22
22
  direct: { color: "var(--sl-color-primary-500)", text: "#fff", icon: "send" },
23
23
  linkedin: { color: "#0077b5", text: "#fff", icon: "linkedin" },
@@ -45,7 +45,7 @@ function EmailRegistrationView(props) {
45
45
  index.h("div", { part: "erroralert-text" }, error)));
46
46
  };
47
47
  const emailValidationRegex = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
48
- return (index.h("div", { part: "sqm-base", class: sheet.classes.Wrapper, style: {
48
+ return (index.h("div", { class: sheet.classes.Wrapper, style: {
49
49
  border: `${content.hideBorder ? "none" : "1px solid #eaeaea"}`,
50
50
  backgroundColor: content.backgroundColor,
51
51
  "padding-top": `var(--sl-spacing-${content.paddingTop})`,
@@ -26648,7 +26648,7 @@ try {
26648
26648
  // SlAlert.register();
26649
26649
  registerIconLibrary("default", {
26650
26650
  // same link that shoelace uses internally
26651
- resolver: (name) => `https://fast.ssqt.io/npm/bootstrap-icons@1.11.3/icons/${name}.svg`,
26651
+ resolver: (name) => `https://fast.ssqt.io/npm/bootstrap-icons@1.7.2/icons/${name}.svg`,
26652
26652
  });
26653
26653
  // SlAlert.register();
26654
26654
  customElements.define("sl-alert", alert_default2);
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-b0129cd6.js');
6
6
  require('./stencil-hooks.module-72742a0b.js');
7
- require('./global-02e50f09.js');
7
+ require('./global-4a59a374.js');
8
8
  require('./index.module-df530553.js');
9
9
 
10
10
  /*
@@ -2,7 +2,7 @@
2
2
 
3
3
  const index = require('./index-b0129cd6.js');
4
4
  require('./stencil-hooks.module-72742a0b.js');
5
- require('./global-02e50f09.js');
5
+ require('./global-4a59a374.js');
6
6
  require('./index.module-df530553.js');
7
7
 
8
8
  /*
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-b0129cd6.js');
6
6
  const stencilHooks_module = require('./stencil-hooks.module-72742a0b.js');
7
- const global = require('./global-02e50f09.js');
7
+ const global = require('./global-4a59a374.js');
8
8
  const index_module = require('./index.module-df530553.js');
9
9
  const jsonpointer = require('./jsonpointer-11327262.js');
10
10
  const cjs = require('./cjs-1066ec21.js');
@@ -16,7 +16,7 @@ const useChildElements = require('./useChildElements-e0d44916.js');
16
16
  const luxon = require('./luxon-05098e19.js');
17
17
  const useReferralTable = require('./useReferralTable-a76adb0d.js');
18
18
  const utils = require('./utils-6847bc06.js');
19
- const sqmInvoiceTableView = require('./sqm-invoice-table-view-28b14d28.js');
19
+ const sqmInvoiceTableView = require('./sqm-invoice-table-view-1ea0d1fe.js');
20
20
 
21
21
  const TAX_CONTEXT_NAMESPACE = "sq:tax-and-cash";
22
22
  const TAX_FORM_CONTEXT_NAMESPACE = "sq:tax-form-context";
@@ -1635,6 +1635,7 @@ const GET_TAX_DOCUMENT = index_module.dist.gql `
1635
1635
  createImpactPublisherTaxDocumentInput: $vars
1636
1636
  ) {
1637
1637
  documentUrl
1638
+ returnUrl
1638
1639
  }
1639
1640
  }
1640
1641
  `;
@@ -1645,9 +1646,8 @@ const DOCUSIGN_ERROR_STATES = [
1645
1646
  "fax_pending",
1646
1647
  ];
1647
1648
  const DOCUSIGN_EXPIRED_STATES = ["ttl_expired", "session_timeout"];
1648
- const DOCUSIGN_SUCCESS_STATES = ["signing_complete", "viewing_complete"];
1649
1649
  function useDocusignForm(props) {
1650
- var _a, _b, _c, _d, _e;
1650
+ var _a, _b, _c, _d, _e, _f;
1651
1651
  const user = index_module.Q();
1652
1652
  const context = index_module.In(TAX_FORM_CONTEXT_NAMESPACE);
1653
1653
  const [step, setStep] = index_module.bn(TAX_CONTEXT_NAMESPACE);
@@ -1674,15 +1674,9 @@ function useDocusignForm(props) {
1674
1674
  }
1675
1675
  }, [existingDocumentType]);
1676
1676
  stencilHooks_module.useEffect(() => {
1677
- var _a;
1678
1677
  // Skip if no publisher info
1679
1678
  if (!user || !publisher)
1680
1679
  return;
1681
- // Skip on initial load of W8 case
1682
- if (((_a = publisher.requiredTaxDocumentType) === null || _a === void 0 ? void 0 : _a.startsWith("W8")) &&
1683
- !publisher.currentTaxDocument &&
1684
- !participantType)
1685
- return;
1686
1680
  const fetchDocument = async () => {
1687
1681
  try {
1688
1682
  const result = await createTaxDocument({
@@ -1705,33 +1699,52 @@ function useDocusignForm(props) {
1705
1699
  };
1706
1700
  fetchDocument();
1707
1701
  }, [user, publisher, participantType]);
1708
- stencilHooks_module.useEffect(() => {
1709
- const onSubmit = async () => {
1710
- try {
1711
- setLoading(true);
1712
- await refetch();
1713
- // Skip banking info form if it already is saved
1714
- // or if brandedSignup is false
1715
- setStep(context.overrideNextStep ||
1716
- !!(publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) ||
1717
- !(publisher === null || publisher === void 0 ? void 0 : publisher.brandedSignup)
1718
- ? "/dashboard"
1719
- : "/4");
1720
- }
1721
- catch (e) {
1722
- setErrors({ general: true });
1723
- }
1724
- finally {
1725
- setLoading(false);
1726
- }
1727
- };
1728
- // Handled in view
1729
- if (DOCUSIGN_ERROR_STATES.includes(docusignStatus))
1730
- return;
1731
- if (DOCUSIGN_SUCCESS_STATES.includes(docusignStatus)) {
1732
- onSubmit();
1702
+ const progressStep = async () => {
1703
+ // TODO: Needs graphql call to determine status of document
1704
+ try {
1705
+ setLoading(true);
1706
+ await refetch();
1707
+ // Skip banking info form if it already is saved
1708
+ // or if brandedSignup is false
1709
+ setStep(context.overrideNextStep ||
1710
+ !!(publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) ||
1711
+ !(publisher === null || publisher === void 0 ? void 0 : publisher.brandedSignup)
1712
+ ? "/dashboard"
1713
+ : "/4");
1733
1714
  }
1734
- }, [docusignStatus, refetch]);
1715
+ catch (e) {
1716
+ setErrors({ general: true });
1717
+ }
1718
+ finally {
1719
+ setLoading(false);
1720
+ }
1721
+ };
1722
+ // useEffect(() => {
1723
+ // const onSubmit = async () => {
1724
+ // try {
1725
+ // setLoading(true);
1726
+ // await refetch();
1727
+ // // Skip banking info form if it already is saved
1728
+ // // or if brandedSignup is false
1729
+ // setStep(
1730
+ // context.overrideNextStep ||
1731
+ // !!publisher?.withdrawalSettings ||
1732
+ // !publisher?.brandedSignup
1733
+ // ? "/dashboard"
1734
+ // : "/4"
1735
+ // );
1736
+ // } catch (e) {
1737
+ // setErrors({ general: true });
1738
+ // } finally {
1739
+ // setLoading(false);
1740
+ // }
1741
+ // };
1742
+ // // Handled in view
1743
+ // if (DOCUSIGN_ERROR_STATES.includes(docusignStatus)) return;
1744
+ // if (DOCUSIGN_SUCCESS_STATES.includes(docusignStatus)) {
1745
+ // onSubmit();
1746
+ // }
1747
+ // }, [docusignStatus, refetch]);
1735
1748
  const allLoading = userLoading || documentLoading || loading;
1736
1749
  return {
1737
1750
  states: {
@@ -1754,9 +1767,11 @@ function useDocusignForm(props) {
1754
1767
  data: {
1755
1768
  taxForm: actualDocumentType,
1756
1769
  documentUrl: (_e = document === null || document === void 0 ? void 0 : document.createImpactPublisherTaxDocument) === null || _e === void 0 ? void 0 : _e.documentUrl,
1770
+ returnUrl: (_f = document === null || document === void 0 ? void 0 : document.createImpactPublisherTaxDocument) === null || _f === void 0 ? void 0 : _f.returnUrl,
1757
1771
  },
1758
1772
  callbacks: {
1759
1773
  setDocusignStatus,
1774
+ progressStep,
1760
1775
  setParticipantType,
1761
1776
  },
1762
1777
  text: props.getTextProps(),
@@ -1774,7 +1789,8 @@ function getDocumentType(p) {
1774
1789
  const style$1 = {
1775
1790
  DocusignStatusContainer: {
1776
1791
  width: "100%",
1777
- height: "600px",
1792
+ minHeight: "600px",
1793
+ height: "900px",
1778
1794
  display: "flex",
1779
1795
  flexDirection: "column",
1780
1796
  alignItems: "center",
@@ -1828,21 +1844,26 @@ const DocusignLoadingView = () => {
1828
1844
  index.h("div", { class: classes.DocusignStatusContainer },
1829
1845
  index.h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } }))));
1830
1846
  };
1831
- const DocusignIframe = ({ states, callbacks, text, }) => {
1847
+ const DocusignIframe = ({ states, data, callbacks, text, }) => {
1832
1848
  if (states.urlLoading)
1833
1849
  return index.h(DocusignLoadingView, null);
1850
+ // TODO: Confirm impact domain before launch
1851
+ const allowedDomains = [
1852
+ "referralsaasquatch.com",
1853
+ "impacttech.complysandbox.com",
1854
+ ];
1834
1855
  const callback = index_module.useCallback((e) => {
1835
- var _a;
1836
- if (!((_a = e.origin) === null || _a === void 0 ? void 0 : _a.includes("referralsaasquatch.com")))
1837
- return;
1838
- if (!e.data)
1856
+ const allowed = allowedDomains.some((d) => { var _a; return (_a = e.origin) === null || _a === void 0 ? void 0 : _a.includes(d); });
1857
+ if (!allowed)
1839
1858
  return;
1840
- callbacks.onStatusChange(e.data.eventStatus);
1859
+ if (e.data === "Complyexchange Thank you page Exit") {
1860
+ callbacks.progressStep();
1861
+ }
1841
1862
  }, []);
1842
1863
  stencilHooks_module.useEffect(() => {
1843
- window.addEventListener("message", callback);
1864
+ window.addEventListener("message", callback, false);
1844
1865
  return () => {
1845
- window.removeEventListener("message", callback);
1866
+ window.removeEventListener("message", callback, false);
1846
1867
  };
1847
1868
  }, []);
1848
1869
  if (DOCUSIGN_ERROR_STATES.includes(states.status)) {
@@ -1850,8 +1871,9 @@ const DocusignIframe = ({ states, callbacks, text, }) => {
1850
1871
  }
1851
1872
  if (DOCUSIGN_EXPIRED_STATES.includes(states.status))
1852
1873
  return index.h(DocusignExpiredView, { text: text });
1853
- return (index.h("iframe", { frameBorder: "0", src: states.url, width: "100%", height: "600px" }));
1874
+ return (index.h("iframe", { frameBorder: "0", src: data.documentUrl, width: "100%", height: "1000px" }));
1854
1875
  };
1876
+ // NWH4QF
1855
1877
 
1856
1878
  const style$2 = {
1857
1879
  FormWrapper: {
@@ -1991,7 +2013,7 @@ const vanillaStyle$1 = `
1991
2013
 
1992
2014
  `;
1993
2015
  const DocusignFormView = (props) => {
1994
- var _a, _b;
2016
+ var _a;
1995
2017
  const { states, states: { formState, documentTypeString }, callbacks, text, slots, } = props;
1996
2018
  const { classes } = sheet$2;
1997
2019
  return (index.h("div", { class: classes.Container },
@@ -2017,23 +2039,7 @@ const DocusignFormView = (props) => {
2017
2039
  index.h("strong", null, text.error.generalTitle),
2018
2040
  index.h("br", null),
2019
2041
  text.error.generalDescription)),
2020
- states.documentType !== "W9" && (index.h("div", { class: classes.CheckboxWrapper },
2021
- index.h("p", { class: classes.BoldText }, text.participantType),
2022
- states.loading ? (index.h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } })) : (index.h("div", { style: { display: "flex", flexDirection: "column" } },
2023
- index.h("sl-radio", { exportparts: "base: radio-base", value: "individualParticipant", name: "/participantType", checked: formState.participantType === "individualParticipant", disabled: states.disabled || states.participantTypeDisabled, onClick: () => {
2024
- if (states.disabled || states.participantTypeDisabled)
2025
- return;
2026
- callbacks.setParticipantType("individualParticipant");
2027
- } },
2028
- index.h("span", { class: classes.RadioText }, text.individualParticipant)),
2029
- index.h("sl-radio", { exportparts: "base: radio-base", value: "businessEntity", name: "/participantType", checked: formState.participantType === "businessEntity", disabled: states.disabled || states.participantTypeDisabled, onClick: () => {
2030
- if (states.disabled || states.participantTypeDisabled)
2031
- return;
2032
- callbacks.setParticipantType("businessEntity");
2033
- } },
2034
- index.h("span", { class: classes.RadioText }, text.businessEntity)))),
2035
- ((_b = formState.errors) === null || _b === void 0 ? void 0 : _b.participantType) && (index.h("p", { class: classes.ErrorText }, text.error.participantType)))),
2036
- (states.documentType === "W9" || formState.participantType) && (index.h("div", null,
2042
+ index.h("div", null,
2037
2043
  index.h("div", null,
2038
2044
  index.h("h5", { class: classes.BoldText }, global.intl.formatMessage({ id: "tax-form-label", defaultMessage: text.taxFormLabel }, { documentType: documentTypeString })),
2039
2045
  index.h("p", null, global.intl.formatMessage({
@@ -2048,7 +2054,7 @@ const DocusignFormView = (props) => {
2048
2054
  index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "primary", open: true, class: classes.InfoAlert },
2049
2055
  index.h("sl-icon", { class: classes.InfoIcon, slot: "icon", name: "info-circle" }),
2050
2056
  text.docusignSessionWarning),
2051
- slots.docusignIframeSlot)))));
2057
+ slots.docusignIframeSlot))));
2052
2058
  };
2053
2059
 
2054
2060
  const DocusignForm = class {
@@ -2171,12 +2177,14 @@ const DocusignForm = class {
2171
2177
  const _isDemo = index_module.isDemo();
2172
2178
  const props = _isDemo ? useDocusignFormDemo(this) : useDocusignForm(this);
2173
2179
  const docusignIframeSlot = (index.h(DocusignIframe, { states: {
2174
- url: props.data.documentUrl,
2175
2180
  status: props.states.docusignStatus,
2176
2181
  loading: props.states.loading,
2177
2182
  urlLoading: props.states.urlLoading,
2183
+ }, data: {
2184
+ documentUrl: props.data.documentUrl,
2185
+ returnUrl: props.data.returnUrl,
2178
2186
  }, callbacks: {
2179
- onStatusChange: props.callbacks.setDocusignStatus,
2187
+ progressStep: props.callbacks.progressStep,
2180
2188
  }, text: props.text }));
2181
2189
  return (index.h(index.Host, null, index.h(DocusignFormView, { callbacks: props.callbacks, states: props.states, text: props.text, slots: {
2182
2190
  docusignIframeSlot: _isDemo
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-b0129cd6.js');
6
6
  const stencilHooks_module = require('./stencil-hooks.module-72742a0b.js');
7
- const global = require('./global-02e50f09.js');
7
+ const global = require('./global-4a59a374.js');
8
8
  const index_module = require('./index.module-df530553.js');
9
9
  const jsonpointer = require('./jsonpointer-11327262.js');
10
10
  const cjs = require('./cjs-1066ec21.js');
@@ -19,7 +19,7 @@ const index$1 = require('./index-8c6255f5.js');
19
19
  const useRegistrationFormState = require('./useRegistrationFormState-876ed65d.js');
20
20
  const utilities = require('./utilities-cec9dd36.js');
21
21
  const AsYouType = require('./AsYouType-6788393a.js');
22
- const ShadowViewAddon = require('./ShadowViewAddon-721bb748.js');
22
+ const ShadowViewAddon = require('./ShadowViewAddon-21aa34f8.js');
23
23
  require('./sqm-portal-container-view-5fb2ad49.js');
24
24
 
25
25
  const BigStat = class {
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-b0129cd6.js');
6
6
  const stencilHooks_module = require('./stencil-hooks.module-72742a0b.js');
7
- const global = require('./global-02e50f09.js');
7
+ const global = require('./global-4a59a374.js');
8
8
  require('./index.module-df530553.js');
9
9
  require('./JSS-8503a151.js');
10
10
  const utils = require('./utils-6847bc06.js');
@@ -9,7 +9,7 @@ require('./jsonpointer-11327262.js');
9
9
  const cjs = require('./cjs-1066ec21.js');
10
10
  require('./mixins-fe9d4112.js');
11
11
  require('./JSS-8503a151.js');
12
- const emailRegistrationView = require('./email-registration-view-248652bb.js');
12
+ const emailRegistrationView = require('./email-registration-view-5170d9f1.js');
13
13
  require('./useRegistrationFormState-876ed65d.js');
14
14
  const useInstantAccessRegistration = require('./useInstantAccessRegistration-bbe746d1.js');
15
15
 
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const index = require('./index-b0129cd6.js');
4
- const global = require('./global-02e50f09.js');
4
+ const global = require('./global-4a59a374.js');
5
5
  const JSS = require('./JSS-8503a151.js');
6
6
 
7
7
  const INDIRECT_TAX_PROVINCES = [
@@ -743,6 +743,7 @@ const docusignFormProps = {
743
743
  },
744
744
  },
745
745
  callbacks: {
746
+ progressStep: async () => { },
746
747
  setParticipantType: (p) => console.log({ p }),
747
748
  setDocusignStatus: (status) => console.log(status),
748
749
  },
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-b0129cd6.js');
6
6
  const stencilHooks_module = require('./stencil-hooks.module-72742a0b.js');
7
- const global = require('./global-02e50f09.js');
7
+ const global = require('./global-4a59a374.js');
8
8
  const index_module = require('./index.module-df530553.js');
9
9
  const cjs = require('./cjs-1066ec21.js');
10
10
  const sqmLeaderboardRankView = require('./sqm-leaderboard-rank-view-5a3d4a88.js');
@@ -11,24 +11,25 @@ const utils = require('./utils-6847bc06.js');
11
11
  const sqmLogoutCurrentUserView = require('./sqm-logout-current-user-view-c9f18d96.js');
12
12
 
13
13
  const GET_USER_DETAILS = index_module.dist.gql `
14
- query getUserDetails {
15
- viewer {
16
- ... on User {
17
- id
18
- accountId
19
- email
20
- }
14
+ query getUserDetails($id: String!, $accountId: String!) {
15
+ user(id: $id, accountId: $accountId) {
16
+ id
17
+ accountId
18
+ email
21
19
  }
22
20
  }
23
21
  `;
24
22
  function useLogoutCurrentUser(props) {
25
23
  var _a, _b;
26
24
  const user = index_module.Q();
27
- const { loading, data } = index_module.yn(GET_USER_DETAILS, {}, !user);
25
+ const { loading, data } = index_module.yn(GET_USER_DETAILS, {
26
+ id: user === null || user === void 0 ? void 0 : user.id,
27
+ accountId: user === null || user === void 0 ? void 0 : user.accountId,
28
+ }, !user);
28
29
  const onSwitchClick = () => {
29
30
  index_module.setUserIdentity(undefined);
30
31
  };
31
- const filledInEmailText = (_a = props.userIdentificationText) === null || _a === void 0 ? void 0 : _a.replace("{email}", (_b = data === null || data === void 0 ? void 0 : data.viewer) === null || _b === void 0 ? void 0 : _b.email);
32
+ const filledInEmailText = (_a = props.userIdentificationText) === null || _a === void 0 ? void 0 : _a.replace("{email}", (_b = data === null || data === void 0 ? void 0 : data.user) === null || _b === void 0 ? void 0 : _b.email);
32
33
  return {
33
34
  loading,
34
35
  onSwitchClick,
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const index = require('./index-b0129cd6.js');
4
- const global = require('./global-02e50f09.js');
4
+ const global = require('./global-4a59a374.js');
5
5
  const mixins = require('./mixins-fe9d4112.js');
6
6
  const JSS = require('./JSS-8503a151.js');
7
7
  const sqmTextSpanView = require('./sqm-text-span-view-e1cd9bd3.js');
@@ -4,13 +4,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-b0129cd6.js');
6
6
  const stencilHooks_module = require('./stencil-hooks.module-72742a0b.js');
7
- require('./global-02e50f09.js');
7
+ require('./global-4a59a374.js');
8
8
  const index_module = require('./index.module-df530553.js');
9
9
  const cjs = require('./cjs-1066ec21.js');
10
10
  require('./mixins-fe9d4112.js');
11
11
  require('./JSS-8503a151.js');
12
12
  require('./sqm-text-span-view-e1cd9bd3.js');
13
- const sqmPortalEmailVerificationView = require('./sqm-portal-email-verification-view-292b5bf4.js');
13
+ const sqmPortalEmailVerificationView = require('./sqm-portal-email-verification-view-07161940.js');
14
14
 
15
15
  function usePortalEmailVerification(props) {
16
16
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const index = require('./index-b0129cd6.js');
4
- const global = require('./global-02e50f09.js');
4
+ const global = require('./global-4a59a374.js');
5
5
  const JSS = require('./JSS-8503a151.js');
6
6
  const sqmTextSpanView = require('./sqm-text-span-view-e1cd9bd3.js');
7
7
 
@@ -4,13 +4,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-b0129cd6.js');
6
6
  const stencilHooks_module = require('./stencil-hooks.module-72742a0b.js');
7
- require('./global-02e50f09.js');
7
+ require('./global-4a59a374.js');
8
8
  const index_module = require('./index.module-df530553.js');
9
9
  const cjs = require('./cjs-1066ec21.js');
10
10
  require('./JSS-8503a151.js');
11
11
  const utils = require('./utils-6847bc06.js');
12
12
  require('./sqm-text-span-view-e1cd9bd3.js');
13
- const sqmPortalProfileView = require('./sqm-portal-profile-view-fde54e35.js');
13
+ const sqmPortalProfileView = require('./sqm-portal-profile-view-07b99f80.js');
14
14
  const utilities = require('./utilities-cec9dd36.js');
15
15
 
16
16
  const GET_USER = index_module.dist.gql `
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-b0129cd6.js');
6
6
  const stencilHooks_module = require('./stencil-hooks.module-72742a0b.js');
7
- const global = require('./global-02e50f09.js');
7
+ const global = require('./global-4a59a374.js');
8
8
  const index_module = require('./index.module-df530553.js');
9
9
  const cjs = require('./cjs-1066ec21.js');
10
10
  require('./mixins-fe9d4112.js');
@@ -9,7 +9,7 @@ require('./jsonpointer-11327262.js');
9
9
  const cjs = require('./cjs-1066ec21.js');
10
10
  require('./mixins-fe9d4112.js');
11
11
  require('./JSS-8503a151.js');
12
- const emailRegistrationView = require('./email-registration-view-248652bb.js');
12
+ const emailRegistrationView = require('./email-registration-view-5170d9f1.js');
13
13
  require('./useRegistrationFormState-876ed65d.js');
14
14
  const useInstantAccessRegistration = require('./useInstantAccessRegistration-bbe746d1.js');
15
15
 
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-b0129cd6.js');
6
6
  const stencilHooks_module = require('./stencil-hooks.module-72742a0b.js');
7
- const global = require('./global-02e50f09.js');
7
+ const global = require('./global-4a59a374.js');
8
8
  const index_module = require('./index.module-df530553.js');
9
9
  const cjs = require('./cjs-1066ec21.js');
10
10
  require('./mixins-fe9d4112.js');