@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
@@ -1,6 +1,6 @@
1
1
  import { h, r as registerInstance, c as Host, g as getElement } from './index-17b4da69.js';
2
2
  import { m as useRef, k as useState, f as useEffect, n as h$1, u as useMemo, b as browser, j as useReducer } from './stencil-hooks.module-ac12ca1c.js';
3
- import { i as intl } from './global-04c7d3b5.js';
3
+ import { i as intl } from './global-e7bb0343.js';
4
4
  import { d as dist, L, Q, t as bn, I as In, M as Mn, f as $e, i as isDemo, w as wn, u as useCallback, k as kn, v as Pn, _, C as Cn, F as Fn } from './index.module-def4aec5.js';
5
5
  import { j as jsonpointer } from './jsonpointer-388a7082.js';
6
6
  import { c as cjs } from './cjs-bdfb4486.js';
@@ -12,7 +12,7 @@ import { u as useChildElements } from './useChildElements-32e1bda1.js';
12
12
  import { l as luxon } from './luxon-7600be8d.js';
13
13
  import { g as generateUserError } from './useReferralTable-f4de0650.js';
14
14
  import { g as getProps, l as luxonLocale } from './utils-334c1e34.js';
15
- 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, E as ErrorView, 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-34ac7513.js';
15
+ 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, E as ErrorView, 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-6945ea24.js';
16
16
 
17
17
  const TAX_CONTEXT_NAMESPACE = "sq:tax-and-cash";
18
18
  const TAX_FORM_CONTEXT_NAMESPACE = "sq:tax-form-context";
@@ -1631,6 +1631,7 @@ const GET_TAX_DOCUMENT = dist.gql `
1631
1631
  createImpactPublisherTaxDocumentInput: $vars
1632
1632
  ) {
1633
1633
  documentUrl
1634
+ returnUrl
1634
1635
  }
1635
1636
  }
1636
1637
  `;
@@ -1641,9 +1642,8 @@ const DOCUSIGN_ERROR_STATES = [
1641
1642
  "fax_pending",
1642
1643
  ];
1643
1644
  const DOCUSIGN_EXPIRED_STATES = ["ttl_expired", "session_timeout"];
1644
- const DOCUSIGN_SUCCESS_STATES = ["signing_complete", "viewing_complete"];
1645
1645
  function useDocusignForm(props) {
1646
- var _a, _b, _c, _d, _e;
1646
+ var _a, _b, _c, _d, _e, _f;
1647
1647
  const user = Q();
1648
1648
  const context = In(TAX_FORM_CONTEXT_NAMESPACE);
1649
1649
  const [step, setStep] = bn(TAX_CONTEXT_NAMESPACE);
@@ -1670,15 +1670,9 @@ function useDocusignForm(props) {
1670
1670
  }
1671
1671
  }, [existingDocumentType]);
1672
1672
  useEffect(() => {
1673
- var _a;
1674
1673
  // Skip if no publisher info
1675
1674
  if (!user || !publisher)
1676
1675
  return;
1677
- // Skip on initial load of W8 case
1678
- if (((_a = publisher.requiredTaxDocumentType) === null || _a === void 0 ? void 0 : _a.startsWith("W8")) &&
1679
- !publisher.currentTaxDocument &&
1680
- !participantType)
1681
- return;
1682
1676
  const fetchDocument = async () => {
1683
1677
  try {
1684
1678
  const result = await createTaxDocument({
@@ -1701,33 +1695,52 @@ function useDocusignForm(props) {
1701
1695
  };
1702
1696
  fetchDocument();
1703
1697
  }, [user, publisher, participantType]);
1704
- useEffect(() => {
1705
- const onSubmit = async () => {
1706
- try {
1707
- setLoading(true);
1708
- await refetch();
1709
- // Skip banking info form if it already is saved
1710
- // or if brandedSignup is false
1711
- setStep(context.overrideNextStep ||
1712
- !!(publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) ||
1713
- !(publisher === null || publisher === void 0 ? void 0 : publisher.brandedSignup)
1714
- ? "/dashboard"
1715
- : "/4");
1716
- }
1717
- catch (e) {
1718
- setErrors({ general: true });
1719
- }
1720
- finally {
1721
- setLoading(false);
1722
- }
1723
- };
1724
- // Handled in view
1725
- if (DOCUSIGN_ERROR_STATES.includes(docusignStatus))
1726
- return;
1727
- if (DOCUSIGN_SUCCESS_STATES.includes(docusignStatus)) {
1728
- onSubmit();
1698
+ const progressStep = async () => {
1699
+ // TODO: Needs graphql call to determine status of document
1700
+ try {
1701
+ setLoading(true);
1702
+ await refetch();
1703
+ // Skip banking info form if it already is saved
1704
+ // or if brandedSignup is false
1705
+ setStep(context.overrideNextStep ||
1706
+ !!(publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) ||
1707
+ !(publisher === null || publisher === void 0 ? void 0 : publisher.brandedSignup)
1708
+ ? "/dashboard"
1709
+ : "/4");
1729
1710
  }
1730
- }, [docusignStatus, refetch]);
1711
+ catch (e) {
1712
+ setErrors({ general: true });
1713
+ }
1714
+ finally {
1715
+ setLoading(false);
1716
+ }
1717
+ };
1718
+ // useEffect(() => {
1719
+ // const onSubmit = async () => {
1720
+ // try {
1721
+ // setLoading(true);
1722
+ // await refetch();
1723
+ // // Skip banking info form if it already is saved
1724
+ // // or if brandedSignup is false
1725
+ // setStep(
1726
+ // context.overrideNextStep ||
1727
+ // !!publisher?.withdrawalSettings ||
1728
+ // !publisher?.brandedSignup
1729
+ // ? "/dashboard"
1730
+ // : "/4"
1731
+ // );
1732
+ // } catch (e) {
1733
+ // setErrors({ general: true });
1734
+ // } finally {
1735
+ // setLoading(false);
1736
+ // }
1737
+ // };
1738
+ // // Handled in view
1739
+ // if (DOCUSIGN_ERROR_STATES.includes(docusignStatus)) return;
1740
+ // if (DOCUSIGN_SUCCESS_STATES.includes(docusignStatus)) {
1741
+ // onSubmit();
1742
+ // }
1743
+ // }, [docusignStatus, refetch]);
1731
1744
  const allLoading = userLoading || documentLoading || loading;
1732
1745
  return {
1733
1746
  states: {
@@ -1750,9 +1763,11 @@ function useDocusignForm(props) {
1750
1763
  data: {
1751
1764
  taxForm: actualDocumentType,
1752
1765
  documentUrl: (_e = document === null || document === void 0 ? void 0 : document.createImpactPublisherTaxDocument) === null || _e === void 0 ? void 0 : _e.documentUrl,
1766
+ returnUrl: (_f = document === null || document === void 0 ? void 0 : document.createImpactPublisherTaxDocument) === null || _f === void 0 ? void 0 : _f.returnUrl,
1753
1767
  },
1754
1768
  callbacks: {
1755
1769
  setDocusignStatus,
1770
+ progressStep,
1756
1771
  setParticipantType,
1757
1772
  },
1758
1773
  text: props.getTextProps(),
@@ -1770,7 +1785,8 @@ function getDocumentType(p) {
1770
1785
  const style$1 = {
1771
1786
  DocusignStatusContainer: {
1772
1787
  width: "100%",
1773
- height: "600px",
1788
+ minHeight: "600px",
1789
+ height: "900px",
1774
1790
  display: "flex",
1775
1791
  flexDirection: "column",
1776
1792
  alignItems: "center",
@@ -1824,21 +1840,26 @@ const DocusignLoadingView = () => {
1824
1840
  h("div", { class: classes.DocusignStatusContainer },
1825
1841
  h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } }))));
1826
1842
  };
1827
- const DocusignIframe = ({ states, callbacks, text, }) => {
1843
+ const DocusignIframe = ({ states, data, callbacks, text, }) => {
1828
1844
  if (states.urlLoading)
1829
1845
  return h(DocusignLoadingView, null);
1846
+ // TODO: Confirm impact domain before launch
1847
+ const allowedDomains = [
1848
+ "referralsaasquatch.com",
1849
+ "impacttech.complysandbox.com",
1850
+ ];
1830
1851
  const callback = useCallback((e) => {
1831
- var _a;
1832
- if (!((_a = e.origin) === null || _a === void 0 ? void 0 : _a.includes("referralsaasquatch.com")))
1833
- return;
1834
- if (!e.data)
1852
+ const allowed = allowedDomains.some((d) => { var _a; return (_a = e.origin) === null || _a === void 0 ? void 0 : _a.includes(d); });
1853
+ if (!allowed)
1835
1854
  return;
1836
- callbacks.onStatusChange(e.data.eventStatus);
1855
+ if (e.data === "Complyexchange Thank you page Exit") {
1856
+ callbacks.progressStep();
1857
+ }
1837
1858
  }, []);
1838
1859
  useEffect(() => {
1839
- window.addEventListener("message", callback);
1860
+ window.addEventListener("message", callback, false);
1840
1861
  return () => {
1841
- window.removeEventListener("message", callback);
1862
+ window.removeEventListener("message", callback, false);
1842
1863
  };
1843
1864
  }, []);
1844
1865
  if (DOCUSIGN_ERROR_STATES.includes(states.status)) {
@@ -1846,8 +1867,9 @@ const DocusignIframe = ({ states, callbacks, text, }) => {
1846
1867
  }
1847
1868
  if (DOCUSIGN_EXPIRED_STATES.includes(states.status))
1848
1869
  return h(DocusignExpiredView, { text: text });
1849
- return (h("iframe", { frameBorder: "0", src: states.url, width: "100%", height: "600px" }));
1870
+ return (h("iframe", { frameBorder: "0", src: data.documentUrl, width: "100%", height: "1000px" }));
1850
1871
  };
1872
+ // NWH4QF
1851
1873
 
1852
1874
  const style$2 = {
1853
1875
  FormWrapper: {
@@ -1987,7 +2009,7 @@ const vanillaStyle$1 = `
1987
2009
 
1988
2010
  `;
1989
2011
  const DocusignFormView = (props) => {
1990
- var _a, _b;
2012
+ var _a;
1991
2013
  const { states, states: { formState, documentTypeString }, callbacks, text, slots, } = props;
1992
2014
  const { classes } = sheet$2;
1993
2015
  return (h("div", { class: classes.Container },
@@ -2013,23 +2035,7 @@ const DocusignFormView = (props) => {
2013
2035
  h("strong", null, text.error.generalTitle),
2014
2036
  h("br", null),
2015
2037
  text.error.generalDescription)),
2016
- states.documentType !== "W9" && (h("div", { class: classes.CheckboxWrapper },
2017
- h("p", { class: classes.BoldText }, text.participantType),
2018
- states.loading ? (h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } })) : (h("div", { style: { display: "flex", flexDirection: "column" } },
2019
- h("sl-radio", { exportparts: "base: radio-base", value: "individualParticipant", name: "/participantType", checked: formState.participantType === "individualParticipant", disabled: states.disabled || states.participantTypeDisabled, onClick: () => {
2020
- if (states.disabled || states.participantTypeDisabled)
2021
- return;
2022
- callbacks.setParticipantType("individualParticipant");
2023
- } },
2024
- h("span", { class: classes.RadioText }, text.individualParticipant)),
2025
- h("sl-radio", { exportparts: "base: radio-base", value: "businessEntity", name: "/participantType", checked: formState.participantType === "businessEntity", disabled: states.disabled || states.participantTypeDisabled, onClick: () => {
2026
- if (states.disabled || states.participantTypeDisabled)
2027
- return;
2028
- callbacks.setParticipantType("businessEntity");
2029
- } },
2030
- h("span", { class: classes.RadioText }, text.businessEntity)))),
2031
- ((_b = formState.errors) === null || _b === void 0 ? void 0 : _b.participantType) && (h("p", { class: classes.ErrorText }, text.error.participantType)))),
2032
- (states.documentType === "W9" || formState.participantType) && (h("div", null,
2038
+ h("div", null,
2033
2039
  h("div", null,
2034
2040
  h("h5", { class: classes.BoldText }, intl.formatMessage({ id: "tax-form-label", defaultMessage: text.taxFormLabel }, { documentType: documentTypeString })),
2035
2041
  h("p", null, intl.formatMessage({
@@ -2044,7 +2050,7 @@ const DocusignFormView = (props) => {
2044
2050
  h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "primary", open: true, class: classes.InfoAlert },
2045
2051
  h("sl-icon", { class: classes.InfoIcon, slot: "icon", name: "info-circle" }),
2046
2052
  text.docusignSessionWarning),
2047
- slots.docusignIframeSlot)))));
2053
+ slots.docusignIframeSlot))));
2048
2054
  };
2049
2055
 
2050
2056
  const DocusignForm = class {
@@ -2167,12 +2173,14 @@ const DocusignForm = class {
2167
2173
  const _isDemo = isDemo();
2168
2174
  const props = _isDemo ? useDocusignFormDemo(this) : useDocusignForm(this);
2169
2175
  const docusignIframeSlot = (h(DocusignIframe, { states: {
2170
- url: props.data.documentUrl,
2171
2176
  status: props.states.docusignStatus,
2172
2177
  loading: props.states.loading,
2173
2178
  urlLoading: props.states.urlLoading,
2179
+ }, data: {
2180
+ documentUrl: props.data.documentUrl,
2181
+ returnUrl: props.data.returnUrl,
2174
2182
  }, callbacks: {
2175
- onStatusChange: props.callbacks.setDocusignStatus,
2183
+ progressStep: props.callbacks.progressStep,
2176
2184
  }, text: props.text }));
2177
2185
  return (h(Host, null, h(DocusignFormView, { callbacks: props.callbacks, states: props.states, text: props.text, slots: {
2178
2186
  docusignIframeSlot: _isDemo
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, h as h$1, c as Host } from './index-17b4da69.js';
2
2
  import { n as h, f as useEffect, k as useState, i as d, u as useMemo, m as useRef, b as browser, j as useReducer } from './stencil-hooks.module-ac12ca1c.js';
3
- import { i as intl } from './global-04c7d3b5.js';
3
+ import { i as intl } from './global-e7bb0343.js';
4
4
  import { i as isDemo, _, d as dist, Q, H, f as $e, y as yn, B, L, g as gn, $ as $n, p as Ue, q as qe, x as xe, u as useCallback, r as ze, S as Sn } from './index.module-def4aec5.js';
5
5
  import { j as jsonpointer } from './jsonpointer-388a7082.js';
6
6
  import { c as cjs } from './cjs-bdfb4486.js';
@@ -15,7 +15,7 @@ import { p as pathToRegexp } from './index-ffa26b43.js';
15
15
  import { R as REGISTRATION_FORM_STATE_CONTEXT, u as useRegistrationFormState } from './useRegistrationFormState-9fc1ac80.js';
16
16
  import { i as isEmpty } from './utilities-3f5bba22.js';
17
17
  import { A as AsYouType } from './AsYouType-46f67d0d.js';
18
- import { b as useDemoBigStat, V as useBigStat, B as BigStatView, Q as autoColorScaleCss, K as CardFeedView, j as CheckboxFieldView, M as CouponCodeView, D as DropdownFieldView, E as EditProfileView, H as HeroView, I as InputFieldView, W as withShadowView, L as LeaderboardView, N as NameFieldsView, d as PortalChangePasswordView, i as PortalFooterView, P as PortalFrameView, e as PortalLoginView, f as PortalRegisterView, R as ReferralIframeView, X as demoRewardExchange, k as RewardExchangeView, a as useShareButton, S as ShareButtonView, C as CopyTextView, u as useShareLink, c as StatContainerView, T as TaskCardView } from './ShadowViewAddon-31eb5b16.js';
18
+ import { b as useDemoBigStat, V as useBigStat, B as BigStatView, Q as autoColorScaleCss, K as CardFeedView, j as CheckboxFieldView, M as CouponCodeView, D as DropdownFieldView, E as EditProfileView, H as HeroView, I as InputFieldView, W as withShadowView, L as LeaderboardView, N as NameFieldsView, d as PortalChangePasswordView, i as PortalFooterView, P as PortalFrameView, e as PortalLoginView, f as PortalRegisterView, R as ReferralIframeView, X as demoRewardExchange, k as RewardExchangeView, a as useShareButton, S as ShareButtonView, C as CopyTextView, u as useShareLink, c as StatContainerView, T as TaskCardView } from './ShadowViewAddon-90897c22.js';
19
19
  import './sqm-portal-container-view-ab89c6cc.js';
20
20
 
21
21
  const BigStat = class {
@@ -1,6 +1,6 @@
1
1
  import { h, r as registerInstance, c as Host } from './index-17b4da69.js';
2
2
  import { n as h$1 } from './stencil-hooks.module-ac12ca1c.js';
3
- import { i as intl } from './global-04c7d3b5.js';
3
+ import { i as intl } from './global-e7bb0343.js';
4
4
  import './index.module-def4aec5.js';
5
5
  import './JSS-67b5cff8.js';
6
6
  import { g as getProps } from './utils-334c1e34.js';
@@ -5,7 +5,7 @@ import './jsonpointer-388a7082.js';
5
5
  import { c as cjs } from './cjs-bdfb4486.js';
6
6
  import './mixins-f60a614c.js';
7
7
  import './JSS-67b5cff8.js';
8
- import { E as EmailRegistrationView } from './email-registration-view-a89a88bf.js';
8
+ import { E as EmailRegistrationView } from './email-registration-view-07d80492.js';
9
9
  import './useRegistrationFormState-9fc1ac80.js';
10
10
  import { u as useInstantAccessRegistration } from './useInstantAccessRegistration-46b89952.js';
11
11
 
@@ -1,5 +1,5 @@
1
1
  import { h } from './index-17b4da69.js';
2
- import { i as intl } from './global-04c7d3b5.js';
2
+ import { i as intl } from './global-e7bb0343.js';
3
3
  import { c as createStyleSheet } from './JSS-67b5cff8.js';
4
4
 
5
5
  const INDIRECT_TAX_PROVINCES = [
@@ -741,6 +741,7 @@ const docusignFormProps = {
741
741
  },
742
742
  },
743
743
  callbacks: {
744
+ progressStep: async () => { },
744
745
  setParticipantType: (p) => console.log({ p }),
745
746
  setDocusignStatus: (status) => console.log(status),
746
747
  },
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
2
2
  import { n as h } from './stencil-hooks.module-ac12ca1c.js';
3
- import { i as intl } from './global-04c7d3b5.js';
3
+ import { i as intl } from './global-e7bb0343.js';
4
4
  import { d as dist, H, Q, y as yn, i as isDemo } from './index.module-def4aec5.js';
5
5
  import { c as cjs } from './cjs-bdfb4486.js';
6
6
  import { L as LeaderboardRankView } from './sqm-leaderboard-rank-view-10657658.js';
@@ -7,24 +7,25 @@ import { g as getProps } from './utils-334c1e34.js';
7
7
  import { L as LogoutCurrentUserView } from './sqm-logout-current-user-view-2c6122cd.js';
8
8
 
9
9
  const GET_USER_DETAILS = dist.gql `
10
- query getUserDetails {
11
- viewer {
12
- ... on User {
13
- id
14
- accountId
15
- email
16
- }
10
+ query getUserDetails($id: String!, $accountId: String!) {
11
+ user(id: $id, accountId: $accountId) {
12
+ id
13
+ accountId
14
+ email
17
15
  }
18
16
  }
19
17
  `;
20
18
  function useLogoutCurrentUser(props) {
21
19
  var _a, _b;
22
20
  const user = Q();
23
- const { loading, data } = yn(GET_USER_DETAILS, {}, !user);
21
+ const { loading, data } = yn(GET_USER_DETAILS, {
22
+ id: user === null || user === void 0 ? void 0 : user.id,
23
+ accountId: user === null || user === void 0 ? void 0 : user.accountId,
24
+ }, !user);
24
25
  const onSwitchClick = () => {
25
26
  setUserIdentity(undefined);
26
27
  };
27
- 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);
28
+ 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);
28
29
  return {
29
30
  loading,
30
31
  onSwitchClick,
@@ -1,5 +1,5 @@
1
1
  import { h } from './index-17b4da69.js';
2
- import { i as intl } from './global-04c7d3b5.js';
2
+ import { i as intl } from './global-e7bb0343.js';
3
3
  import { A as AuthWrapper, a as AuthColumn } from './mixins-f60a614c.js';
4
4
  import { c as createStyleSheet } from './JSS-67b5cff8.js';
5
5
  import { T as TextSpanView } from './sqm-text-span-view-8d140661.js';
@@ -1,12 +1,12 @@
1
1
  import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
2
2
  import { k as useState, m as useRef, f as useEffect, n as h } from './stencil-hooks.module-ac12ca1c.js';
3
- import './global-04c7d3b5.js';
3
+ import './global-e7bb0343.js';
4
4
  import { l as ln, n as nn, Q, $ as $n, u as useCallback, i as isDemo } from './index.module-def4aec5.js';
5
5
  import { c as cjs } from './cjs-bdfb4486.js';
6
6
  import './mixins-f60a614c.js';
7
7
  import './JSS-67b5cff8.js';
8
8
  import './sqm-text-span-view-8d140661.js';
9
- import { P as PortalEmailVerificationView } from './sqm-portal-email-verification-view-4307c992.js';
9
+ import { P as PortalEmailVerificationView } from './sqm-portal-email-verification-view-0b32261f.js';
10
10
 
11
11
  function usePortalEmailVerification(props) {
12
12
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
@@ -1,5 +1,5 @@
1
1
  import { h } from './index-17b4da69.js';
2
- import { i as intl } from './global-04c7d3b5.js';
2
+ import { i as intl } from './global-e7bb0343.js';
3
3
  import { c as createStyleSheet } from './JSS-67b5cff8.js';
4
4
  import { T as TextSpanView } from './sqm-text-span-view-8d140661.js';
5
5
 
@@ -1,12 +1,12 @@
1
1
  import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
2
2
  import { k as useState, f as useEffect, n as h } from './stencil-hooks.module-ac12ca1c.js';
3
- import './global-04c7d3b5.js';
3
+ import './global-e7bb0343.js';
4
4
  import { d as dist, Q, y as yn, f as $e, i as isDemo } from './index.module-def4aec5.js';
5
5
  import { c as cjs } from './cjs-bdfb4486.js';
6
6
  import './JSS-67b5cff8.js';
7
7
  import { g as getProps } from './utils-334c1e34.js';
8
8
  import './sqm-text-span-view-8d140661.js';
9
- import { P as PortalProfileView } from './sqm-portal-profile-view-ffe955c8.js';
9
+ import { P as PortalProfileView } from './sqm-portal-profile-view-03026a5e.js';
10
10
  import { i as isEmpty } from './utilities-3f5bba22.js';
11
11
 
12
12
  const GET_USER = dist.gql `
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, h as h$1, g as getElement, c as Host } from './index-17b4da69.js';
2
2
  import { n as h, j as useReducer, u as useMemo, f as useEffect } from './stencil-hooks.module-ac12ca1c.js';
3
- import { i as intl } from './global-04c7d3b5.js';
3
+ import { i as intl } from './global-e7bb0343.js';
4
4
  import { i as isDemo } from './index.module-def4aec5.js';
5
5
  import { c as cjs } from './cjs-bdfb4486.js';
6
6
  import './mixins-f60a614c.js';
@@ -5,7 +5,7 @@ import './jsonpointer-388a7082.js';
5
5
  import { c as cjs } from './cjs-bdfb4486.js';
6
6
  import './mixins-f60a614c.js';
7
7
  import './JSS-67b5cff8.js';
8
- import { E as EmailRegistrationView } from './email-registration-view-a89a88bf.js';
8
+ import { E as EmailRegistrationView } from './email-registration-view-07d80492.js';
9
9
  import './useRegistrationFormState-9fc1ac80.js';
10
10
  import { u as useInstantAccessRegistration } from './useInstantAccessRegistration-46b89952.js';
11
11
 
@@ -1,6 +1,6 @@
1
1
  import { h, r as registerInstance, c as Host } from './index-17b4da69.js';
2
2
  import { b as browser, j as useReducer, f as useEffect, n as h$1, u as useMemo } from './stencil-hooks.module-ac12ca1c.js';
3
- import { i as intl } from './global-04c7d3b5.js';
3
+ import { i as intl } from './global-e7bb0343.js';
4
4
  import { d as dist, Q, H, L, y as yn, k as kn, i as isDemo } from './index.module-def4aec5.js';
5
5
  import { c as cjs } from './cjs-bdfb4486.js';
6
6
  import './mixins-f60a614c.js';