@saasquatch/mint-components 1.10.2 → 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 (170) hide show
  1. package/dist/cjs/{ShadowViewAddon-b2621f27.js → ShadowViewAddon-21aa34f8.js} +29 -52
  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 +2 -2
  5. package/dist/cjs/mint-components.cjs.js +2 -2
  6. package/dist/cjs/sqm-banking-info-form_16.cjs.entry.js +108 -124
  7. package/dist/cjs/sqm-big-stat_38.cjs.entry.js +15 -70
  8. package/dist/cjs/sqm-empty_4.cjs.entry.js +2 -9
  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-container-view-990a85a3.js → sqm-portal-container-view-5fb2ad49.js} +1 -1
  14. package/dist/cjs/{sqm-portal-email-verification-view-292b5bf4.js → sqm-portal-email-verification-view-07161940.js} +1 -1
  15. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +2 -2
  16. package/dist/cjs/{sqm-portal-profile-view-fde54e35.js → sqm-portal-profile-view-07b99f80.js} +1 -1
  17. package/dist/cjs/sqm-portal-profile.cjs.entry.js +2 -2
  18. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +1 -1
  19. package/dist/cjs/sqm-referred-registration.cjs.entry.js +1 -1
  20. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +1 -1
  21. package/dist/cjs/sqm-stencilbook.cjs.entry.js +41 -165
  22. package/dist/collection/components/sqm-card-feed/sqm-card-feed.js +1 -1
  23. package/dist/collection/components/sqm-empty/EmptyState.stories.js +1 -1
  24. package/dist/collection/components/sqm-image/sqm-image-view.js +1 -1
  25. package/dist/collection/components/sqm-image/sqm-image.js +0 -20
  26. package/dist/collection/components/sqm-leaderboard/Leaderboard.stories.js +9 -116
  27. package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +26 -51
  28. package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +16 -118
  29. package/dist/collection/components/sqm-leaderboard/useLeaderboard.js +3 -40
  30. package/dist/collection/components/sqm-logout-current-user/useLogoutCurrentUser.js +10 -9
  31. package/dist/collection/components/sqm-portal-container/PortalContainer.stories.js +7 -19
  32. package/dist/collection/components/sqm-portal-container/sqm-portal-container-view.js +1 -1
  33. package/dist/collection/components/sqm-portal-container/sqm-portal-container.js +0 -37
  34. package/dist/collection/components/sqm-referral-card/ReferralCard.stories.js +1 -1
  35. package/dist/collection/components/sqm-share-button/ShareButton.stories.js +1 -1
  36. package/dist/collection/components/sqm-share-button/sqm-share-button-view.js +1 -1
  37. package/dist/collection/components/sqm-share-button/sqm-share-button.js +2 -2
  38. package/dist/collection/components/sqm-task-card/UseTaskCard.stories.js +1 -1
  39. package/dist/collection/components/sqm-task-card/sqm-task-card.js +1 -1
  40. package/dist/collection/components/tax-and-cash/TaxForm.stories.js +1 -0
  41. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +1 -2
  42. package/dist/collection/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.js +18 -11
  43. package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +3 -19
  44. package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +5 -3
  45. package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +49 -33
  46. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +32 -55
  47. package/dist/collection/components/views/email-registration-view.js +1 -1
  48. package/dist/collection/global/global.js +1 -1
  49. package/dist/collection/stories/NewPortal.stories.js +1 -1
  50. package/dist/esm/{ShadowViewAddon-04640297.js → ShadowViewAddon-90897c22.js} +29 -52
  51. package/dist/esm/{email-registration-view-a89a88bf.js → email-registration-view-07d80492.js} +1 -1
  52. package/dist/esm/{global-04c7d3b5.js → global-e7bb0343.js} +1 -1
  53. package/dist/esm/loader.js +2 -2
  54. package/dist/esm/mint-components.js +2 -2
  55. package/dist/esm/sqm-banking-info-form_16.entry.js +108 -124
  56. package/dist/esm/sqm-big-stat_38.entry.js +15 -70
  57. package/dist/esm/sqm-empty_4.entry.js +2 -9
  58. package/dist/esm/sqm-instant-access-registration.entry.js +1 -1
  59. package/dist/esm/{sqm-invoice-table-view-34ac7513.js → sqm-invoice-table-view-6945ea24.js} +2 -1
  60. package/dist/esm/sqm-leaderboard-rank.entry.js +1 -1
  61. package/dist/esm/sqm-logout-current-user.entry.js +10 -9
  62. package/dist/esm/{sqm-portal-container-view-6c582684.js → sqm-portal-container-view-ab89c6cc.js} +1 -1
  63. package/dist/esm/{sqm-portal-email-verification-view-4307c992.js → sqm-portal-email-verification-view-0b32261f.js} +1 -1
  64. package/dist/esm/sqm-portal-email-verification.entry.js +2 -2
  65. package/dist/esm/{sqm-portal-profile-view-ffe955c8.js → sqm-portal-profile-view-03026a5e.js} +1 -1
  66. package/dist/esm/sqm-portal-profile.entry.js +2 -2
  67. package/dist/esm/sqm-referral-table_11.entry.js +1 -1
  68. package/dist/esm/sqm-referred-registration.entry.js +1 -1
  69. package/dist/esm/sqm-rewards-table_9.entry.js +1 -1
  70. package/dist/esm/sqm-stencilbook.entry.js +41 -165
  71. package/dist/esm-es5/ShadowViewAddon-90897c22.js +1 -0
  72. package/dist/esm-es5/email-registration-view-07d80492.js +1 -0
  73. package/dist/esm-es5/{global-04c7d3b5.js → global-e7bb0343.js} +1 -1
  74. package/dist/esm-es5/loader.js +1 -1
  75. package/dist/esm-es5/mint-components.js +1 -1
  76. package/dist/esm-es5/sqm-banking-info-form_16.entry.js +1 -1
  77. package/dist/esm-es5/sqm-big-stat_38.entry.js +1 -1
  78. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  79. package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
  80. package/dist/esm-es5/{sqm-invoice-table-view-34ac7513.js → sqm-invoice-table-view-6945ea24.js} +1 -1
  81. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  82. package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
  83. package/dist/esm-es5/sqm-portal-container-view-ab89c6cc.js +1 -0
  84. package/dist/esm-es5/{sqm-portal-email-verification-view-4307c992.js → sqm-portal-email-verification-view-0b32261f.js} +1 -1
  85. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  86. package/dist/esm-es5/{sqm-portal-profile-view-ffe955c8.js → sqm-portal-profile-view-03026a5e.js} +1 -1
  87. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  88. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  89. package/dist/esm-es5/sqm-referred-registration.entry.js +1 -1
  90. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  91. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  92. package/dist/mint-components/mint-components.esm.js +1 -1
  93. package/dist/mint-components/mint-components.js +1 -1
  94. package/dist/mint-components/p-007383e1.entry.js +9 -0
  95. package/dist/mint-components/p-03deaf76.entry.js +9 -0
  96. package/dist/mint-components/{p-d3348267.js → p-05948592.js} +20 -20
  97. package/dist/mint-components/{p-4d233cd4.js → p-0e556260.js} +1 -1
  98. package/dist/mint-components/p-10036f16.js +1 -0
  99. package/dist/mint-components/p-445ffcfd.system.entry.js +1 -0
  100. package/dist/mint-components/{p-b6fc1227.system.entry.js → p-4864ed8a.system.entry.js} +1 -1
  101. package/dist/mint-components/{p-01cfff8a.system.entry.js → p-55a782cf.system.entry.js} +1 -1
  102. package/dist/mint-components/{p-59fe4ad1.system.js → p-573fab0f.system.js} +1 -1
  103. package/dist/mint-components/{p-56f14840.entry.js → p-57e4ef5f.entry.js} +1 -1
  104. package/dist/mint-components/p-5956a47e.entry.js +1 -0
  105. package/dist/mint-components/{p-7049e9b0.entry.js → p-5d485450.entry.js} +1 -1
  106. package/dist/mint-components/p-64491c96.system.entry.js +1 -0
  107. package/dist/mint-components/{p-ce621bcc.js → p-66172a05.js} +1 -1
  108. package/dist/mint-components/p-6bf41e0d.system.js +1 -0
  109. package/dist/mint-components/{p-b4c52c5a.entry.js → p-7a572b34.entry.js} +1 -1
  110. package/dist/mint-components/p-869c4ee1.system.entry.js +1 -0
  111. package/dist/mint-components/{p-be4b748a.system.entry.js → p-8fe21979.system.entry.js} +1 -1
  112. package/dist/mint-components/p-922578e4.system.js +1 -0
  113. package/dist/mint-components/p-956cd716.system.js +1 -0
  114. package/dist/mint-components/{p-3ec16698.entry.js → p-956ed10a.entry.js} +1 -1
  115. package/dist/mint-components/p-97198e2c.system.js +1 -0
  116. package/dist/mint-components/{p-4ea58025.system.entry.js → p-973f6501.system.entry.js} +1 -1
  117. package/dist/mint-components/{p-8704937c.js → p-9774fbc5.js} +1 -1
  118. package/dist/mint-components/{p-35d84041.system.entry.js → p-a61e6394.system.entry.js} +1 -1
  119. package/dist/mint-components/{p-1dd69917.system.entry.js → p-b8dbb809.system.entry.js} +1 -1
  120. package/dist/mint-components/p-be38de26.system.js +1 -0
  121. package/dist/mint-components/{p-b23d5520.js → p-bfdd2042.js} +1 -1
  122. package/dist/mint-components/{p-31e810e9.entry.js → p-c6c63bc0.entry.js} +7 -6
  123. package/dist/mint-components/{p-ed095674.system.js → p-c7a3fd1b.system.js} +1 -1
  124. package/dist/mint-components/p-cf158064.entry.js +33 -0
  125. package/dist/mint-components/p-d51eb656.entry.js +187 -0
  126. package/dist/mint-components/{p-4df8f1d2.system.js → p-d7df3dfd.system.js} +1 -1
  127. package/dist/mint-components/{p-32d1d162.entry.js → p-dab544d9.entry.js} +1 -1
  128. package/dist/mint-components/p-e566b746.system.entry.js +1 -0
  129. package/dist/mint-components/{p-c7fd9e16.js → p-e704842c.js} +1 -1
  130. package/dist/mint-components/{p-8679ed9f.system.entry.js → p-e84a74fe.system.entry.js} +1 -1
  131. package/dist/mint-components/{p-7f088154.entry.js → p-ebcec043.entry.js} +1 -1
  132. package/dist/mint-components/p-f8f6c99d.system.entry.js +1 -0
  133. package/dist/types/components/sqm-card-feed/sqm-card-feed.d.ts +1 -1
  134. package/dist/types/components/sqm-image/sqm-image-view.d.ts +0 -1
  135. package/dist/types/components/sqm-image/sqm-image.d.ts +0 -5
  136. package/dist/types/components/sqm-leaderboard/Leaderboard.stories.d.ts +0 -4
  137. package/dist/types/components/sqm-leaderboard/sqm-leaderboard-view.d.ts +3 -6
  138. package/dist/types/components/sqm-leaderboard/sqm-leaderboard.d.ts +4 -28
  139. package/dist/types/components/sqm-leaderboard/useLeaderboard.d.ts +1 -4
  140. package/dist/types/components/sqm-portal-container/PortalContainer.stories.d.ts +0 -1
  141. package/dist/types/components/sqm-portal-container/sqm-portal-container-view.d.ts +0 -1
  142. package/dist/types/components/sqm-portal-container/sqm-portal-container.d.ts +0 -7
  143. package/dist/types/components/sqm-share-button/sqm-share-button.d.ts +2 -2
  144. package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +1 -1
  145. package/dist/types/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.d.ts +6 -3
  146. package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +3 -1
  147. package/dist/types/components.d.ts +4 -68
  148. package/docs/docs.docx +0 -0
  149. package/docs/raisins.json +1 -1
  150. package/grapesjs/grapesjs.js +1 -1
  151. package/package.json +2 -2
  152. package/dist/esm-es5/ShadowViewAddon-04640297.js +0 -1
  153. package/dist/esm-es5/email-registration-view-a89a88bf.js +0 -1
  154. package/dist/esm-es5/sqm-portal-container-view-6c582684.js +0 -1
  155. package/dist/mint-components/p-1c0be73e.entry.js +0 -223
  156. package/dist/mint-components/p-1c857edb.entry.js +0 -33
  157. package/dist/mint-components/p-293b71ba.system.entry.js +0 -1
  158. package/dist/mint-components/p-509e29e6.js +0 -1
  159. package/dist/mint-components/p-59d740b3.entry.js +0 -9
  160. package/dist/mint-components/p-5de21018.system.entry.js +0 -1
  161. package/dist/mint-components/p-65d430d4.system.entry.js +0 -1
  162. package/dist/mint-components/p-9f0629ba.system.entry.js +0 -1
  163. package/dist/mint-components/p-a1dba9a1.system.entry.js +0 -1
  164. package/dist/mint-components/p-a51533cb.system.js +0 -1
  165. package/dist/mint-components/p-bc51264d.system.js +0 -1
  166. package/dist/mint-components/p-d8d2de11.entry.js +0 -1
  167. package/dist/mint-components/p-dbc2167e.system.js +0 -1
  168. package/dist/mint-components/p-e3735866.entry.js +0 -11
  169. package/dist/mint-components/p-ed17e637.system.js +0 -1
  170. package/dist/mint-components/p-ed6ebd60.system.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";
@@ -745,8 +745,7 @@ const style = {
745
745
  background: "var(--sl-color-gray-200)",
746
746
  },
747
747
  LargeSkeleton: {
748
- width: "100%",
749
- maxWidth: "320px",
748
+ width: "320px",
750
749
  height: "40px",
751
750
  borderRadius: "50px",
752
751
  background: "var(--sl-color-gray-200)",
@@ -1632,6 +1631,7 @@ const GET_TAX_DOCUMENT = dist.gql `
1632
1631
  createImpactPublisherTaxDocumentInput: $vars
1633
1632
  ) {
1634
1633
  documentUrl
1634
+ returnUrl
1635
1635
  }
1636
1636
  }
1637
1637
  `;
@@ -1642,9 +1642,8 @@ const DOCUSIGN_ERROR_STATES = [
1642
1642
  "fax_pending",
1643
1643
  ];
1644
1644
  const DOCUSIGN_EXPIRED_STATES = ["ttl_expired", "session_timeout"];
1645
- const DOCUSIGN_SUCCESS_STATES = ["signing_complete", "viewing_complete"];
1646
1645
  function useDocusignForm(props) {
1647
- var _a, _b, _c, _d, _e;
1646
+ var _a, _b, _c, _d, _e, _f;
1648
1647
  const user = Q();
1649
1648
  const context = In(TAX_FORM_CONTEXT_NAMESPACE);
1650
1649
  const [step, setStep] = bn(TAX_CONTEXT_NAMESPACE);
@@ -1671,15 +1670,9 @@ function useDocusignForm(props) {
1671
1670
  }
1672
1671
  }, [existingDocumentType]);
1673
1672
  useEffect(() => {
1674
- var _a;
1675
1673
  // Skip if no publisher info
1676
1674
  if (!user || !publisher)
1677
1675
  return;
1678
- // Skip on initial load of W8 case
1679
- if (((_a = publisher.requiredTaxDocumentType) === null || _a === void 0 ? void 0 : _a.startsWith("W8")) &&
1680
- !publisher.currentTaxDocument &&
1681
- !participantType)
1682
- return;
1683
1676
  const fetchDocument = async () => {
1684
1677
  try {
1685
1678
  const result = await createTaxDocument({
@@ -1702,33 +1695,52 @@ function useDocusignForm(props) {
1702
1695
  };
1703
1696
  fetchDocument();
1704
1697
  }, [user, publisher, participantType]);
1705
- useEffect(() => {
1706
- const onSubmit = async () => {
1707
- try {
1708
- setLoading(true);
1709
- await refetch();
1710
- // Skip banking info form if it already is saved
1711
- // or if brandedSignup is false
1712
- setStep(context.overrideNextStep ||
1713
- !!(publisher === null || publisher === void 0 ? void 0 : publisher.withdrawalSettings) ||
1714
- !(publisher === null || publisher === void 0 ? void 0 : publisher.brandedSignup)
1715
- ? "/dashboard"
1716
- : "/4");
1717
- }
1718
- catch (e) {
1719
- setErrors({ general: true });
1720
- }
1721
- finally {
1722
- setLoading(false);
1723
- }
1724
- };
1725
- // Handled in view
1726
- if (DOCUSIGN_ERROR_STATES.includes(docusignStatus))
1727
- return;
1728
- if (DOCUSIGN_SUCCESS_STATES.includes(docusignStatus)) {
1729
- 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");
1710
+ }
1711
+ catch (e) {
1712
+ setErrors({ general: true });
1730
1713
  }
1731
- }, [docusignStatus, refetch]);
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]);
1732
1744
  const allLoading = userLoading || documentLoading || loading;
1733
1745
  return {
1734
1746
  states: {
@@ -1751,9 +1763,11 @@ function useDocusignForm(props) {
1751
1763
  data: {
1752
1764
  taxForm: actualDocumentType,
1753
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,
1754
1767
  },
1755
1768
  callbacks: {
1756
1769
  setDocusignStatus,
1770
+ progressStep,
1757
1771
  setParticipantType,
1758
1772
  },
1759
1773
  text: props.getTextProps(),
@@ -1771,7 +1785,8 @@ function getDocumentType(p) {
1771
1785
  const style$1 = {
1772
1786
  DocusignStatusContainer: {
1773
1787
  width: "100%",
1774
- height: "600px",
1788
+ minHeight: "600px",
1789
+ height: "900px",
1775
1790
  display: "flex",
1776
1791
  flexDirection: "column",
1777
1792
  alignItems: "center",
@@ -1825,21 +1840,26 @@ const DocusignLoadingView = () => {
1825
1840
  h("div", { class: classes.DocusignStatusContainer },
1826
1841
  h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } }))));
1827
1842
  };
1828
- const DocusignIframe = ({ states, callbacks, text, }) => {
1843
+ const DocusignIframe = ({ states, data, callbacks, text, }) => {
1829
1844
  if (states.urlLoading)
1830
1845
  return h(DocusignLoadingView, null);
1846
+ // TODO: Confirm impact domain before launch
1847
+ const allowedDomains = [
1848
+ "referralsaasquatch.com",
1849
+ "impacttech.complysandbox.com",
1850
+ ];
1831
1851
  const callback = useCallback((e) => {
1832
- var _a;
1833
- if (!((_a = e.origin) === null || _a === void 0 ? void 0 : _a.includes("referralsaasquatch.com")))
1852
+ const allowed = allowedDomains.some((d) => { var _a; return (_a = e.origin) === null || _a === void 0 ? void 0 : _a.includes(d); });
1853
+ if (!allowed)
1834
1854
  return;
1835
- if (!e.data)
1836
- return;
1837
- callbacks.onStatusChange(e.data.eventStatus);
1855
+ if (e.data === "Complyexchange Thank you page Exit") {
1856
+ callbacks.progressStep();
1857
+ }
1838
1858
  }, []);
1839
1859
  useEffect(() => {
1840
- window.addEventListener("message", callback);
1860
+ window.addEventListener("message", callback, false);
1841
1861
  return () => {
1842
- window.removeEventListener("message", callback);
1862
+ window.removeEventListener("message", callback, false);
1843
1863
  };
1844
1864
  }, []);
1845
1865
  if (DOCUSIGN_ERROR_STATES.includes(states.status)) {
@@ -1847,8 +1867,9 @@ const DocusignIframe = ({ states, callbacks, text, }) => {
1847
1867
  }
1848
1868
  if (DOCUSIGN_EXPIRED_STATES.includes(states.status))
1849
1869
  return h(DocusignExpiredView, { text: text });
1850
- 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" }));
1851
1871
  };
1872
+ // NWH4QF
1852
1873
 
1853
1874
  const style$2 = {
1854
1875
  FormWrapper: {
@@ -1988,7 +2009,7 @@ const vanillaStyle$1 = `
1988
2009
 
1989
2010
  `;
1990
2011
  const DocusignFormView = (props) => {
1991
- var _a, _b;
2012
+ var _a;
1992
2013
  const { states, states: { formState, documentTypeString }, callbacks, text, slots, } = props;
1993
2014
  const { classes } = sheet$2;
1994
2015
  return (h("div", { class: classes.Container },
@@ -2014,23 +2035,7 @@ const DocusignFormView = (props) => {
2014
2035
  h("strong", null, text.error.generalTitle),
2015
2036
  h("br", null),
2016
2037
  text.error.generalDescription)),
2017
- states.documentType !== "W9" && (h("div", { class: classes.CheckboxWrapper },
2018
- h("p", { class: classes.BoldText }, text.participantType),
2019
- states.loading ? (h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } })) : (h("div", { style: { display: "flex", flexDirection: "column" } },
2020
- h("sl-radio", { exportparts: "base: radio-base", value: "individualParticipant", name: "/participantType", checked: formState.participantType === "individualParticipant", disabled: states.disabled || states.participantTypeDisabled, onClick: () => {
2021
- if (states.disabled || states.participantTypeDisabled)
2022
- return;
2023
- callbacks.setParticipantType("individualParticipant");
2024
- } },
2025
- h("span", { class: classes.RadioText }, text.individualParticipant)),
2026
- h("sl-radio", { exportparts: "base: radio-base", value: "businessEntity", name: "/participantType", checked: formState.participantType === "businessEntity", disabled: states.disabled || states.participantTypeDisabled, onClick: () => {
2027
- if (states.disabled || states.participantTypeDisabled)
2028
- return;
2029
- callbacks.setParticipantType("businessEntity");
2030
- } },
2031
- h("span", { class: classes.RadioText }, text.businessEntity)))),
2032
- ((_b = formState.errors) === null || _b === void 0 ? void 0 : _b.participantType) && (h("p", { class: classes.ErrorText }, text.error.participantType)))),
2033
- (states.documentType === "W9" || formState.participantType) && (h("div", null,
2038
+ h("div", null,
2034
2039
  h("div", null,
2035
2040
  h("h5", { class: classes.BoldText }, intl.formatMessage({ id: "tax-form-label", defaultMessage: text.taxFormLabel }, { documentType: documentTypeString })),
2036
2041
  h("p", null, intl.formatMessage({
@@ -2045,7 +2050,7 @@ const DocusignFormView = (props) => {
2045
2050
  h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "primary", open: true, class: classes.InfoAlert },
2046
2051
  h("sl-icon", { class: classes.InfoIcon, slot: "icon", name: "info-circle" }),
2047
2052
  text.docusignSessionWarning),
2048
- slots.docusignIframeSlot)))));
2053
+ slots.docusignIframeSlot))));
2049
2054
  };
2050
2055
 
2051
2056
  const DocusignForm = class {
@@ -2168,12 +2173,14 @@ const DocusignForm = class {
2168
2173
  const _isDemo = isDemo();
2169
2174
  const props = _isDemo ? useDocusignFormDemo(this) : useDocusignForm(this);
2170
2175
  const docusignIframeSlot = (h(DocusignIframe, { states: {
2171
- url: props.data.documentUrl,
2172
2176
  status: props.states.docusignStatus,
2173
2177
  loading: props.states.loading,
2174
2178
  urlLoading: props.states.urlLoading,
2179
+ }, data: {
2180
+ documentUrl: props.data.documentUrl,
2181
+ returnUrl: props.data.returnUrl,
2175
2182
  }, callbacks: {
2176
- onStatusChange: props.callbacks.setDocusignStatus,
2183
+ progressStep: props.callbacks.progressStep,
2177
2184
  }, text: props.text }));
2178
2185
  return (h(Host, null, h(DocusignFormView, { callbacks: props.callbacks, states: props.states, text: props.text, slots: {
2179
2186
  docusignIframeSlot: _isDemo
@@ -6596,27 +6603,6 @@ const style$6 = {
6596
6603
  color: "var(--sl-color-neutral-500)",
6597
6604
  fontSize: "var(--sl-font-size-medium)",
6598
6605
  },
6599
- PhoneInputsSection: {
6600
- display: "flex",
6601
- alignItems: "flex-start",
6602
- flexDirection: "column",
6603
- gap: "4px",
6604
- "& p": {
6605
- fontSize: "var(--sl-font-size-small)",
6606
- color: "var(--sl-input-label-color)",
6607
- fontWeight: "var(--sl-font-weight-semibold)",
6608
- },
6609
- },
6610
- PhoneInputsContainer: {
6611
- display: "flex",
6612
- alignItems: "flex-start",
6613
- gap: "4px",
6614
- width: "100%",
6615
- "& #phoneNumber": {
6616
- width: "100%",
6617
- minWidth: "0px",
6618
- },
6619
- },
6620
6606
  };
6621
6607
  const sheet$5 = createStyleSheet(style$6);
6622
6608
  const styleString$5 = sheet$5.toString();
@@ -6642,7 +6628,7 @@ const vanillaStyle$3 = `
6642
6628
  }
6643
6629
 
6644
6630
  sl-select#phoneNumberCountryCode::part(menu) {
6645
- min-width: 250px;
6631
+ width: 450px;
6646
6632
  }
6647
6633
  `;
6648
6634
  const UserInfoFormView = (props) => {
@@ -6725,39 +6711,37 @@ const UserInfoFormView = (props) => {
6725
6711
  } }), (_e = data === null || data === void 0 ? void 0 : data.countries) === null || _e === void 0 ? void 0 :
6726
6712
  _e.map((c) => (h("sl-menu-item", { value: c.countryCode }, c.displayName))), (_f = data === null || data === void 0 ? void 0 : data.allCountries) === null || _f === void 0 ? void 0 :
6727
6713
  _f.map((c) => (h("sl-menu-item", { value: c.countryCode, style: { display: "none" } }, c.displayName)))),
6728
- h("div", { class: classes.PhoneInputsSection },
6729
- h("p", null, text.phoneNumber),
6730
- h("div", { class: classes.PhoneInputsContainer },
6731
- h("sl-select", Object.assign({ id: "phoneNumberCountryCode", exportparts: "label: input-label, base: input-base", name: "/phoneNumberCountryCode", value: formState.phoneNumberCountryCode, disabled: states.disabled || states.isPartner, ref: (el) => (refs.phoneCountryRef.current = el) }, (((_g = formState.errors) === null || _g === void 0 ? void 0 : _g.phoneNumberCountryCode) ? {
6732
- class: classes.ErrorInput,
6733
- }
6734
- : {}), { required: true, "onSl-select": (e) => callbacks.onFormChange("phoneCountry", e) }),
6735
- h("sl-input", { class: classes.SearchInput, placeholder: text.searchForCountryText, onKeyDown: (e) => {
6736
- // Stop shoelace intercepting key presses
6737
- e.stopPropagation();
6738
- }, "onSl-input": (e) => {
6739
- callbacks.setPhoneCountrySearch(e.target.value);
6740
- } }), (_h = data === null || data === void 0 ? void 0 : data.phoneCountries) === null || _h === void 0 ? void 0 :
6741
- _h.map((c) => {
6742
- var _a, _b;
6743
- return (h("sl-menu-item", { value: c.countryCode },
6744
- h("div", { slot: "prefix" }, `${(_a = PHONE_EXTENSIONS[c.countryCode]) === null || _a === void 0 ? void 0 : _a.name} `), (_b = PHONE_EXTENSIONS[c.countryCode]) === null || _b === void 0 ? void 0 :
6745
- _b.dial_code));
6746
- }), (_j = data === null || data === void 0 ? void 0 : data.allCountries) === null || _j === void 0 ? void 0 :
6747
- _j.map((c) => {
6748
- var _a, _b;
6749
- return (h("sl-menu-item", { value: c.countryCode, style: { display: "none" } },
6750
- h("div", { slot: "prefix" }, `${(_a = PHONE_EXTENSIONS[c.countryCode]) === null || _a === void 0 ? void 0 : _a.name} `), (_b = PHONE_EXTENSIONS[c.countryCode]) === null || _b === void 0 ? void 0 :
6751
- _b.dial_code));
6752
- })),
6753
- h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", id: "phoneNumber", name: "/phoneNumber", value: formState.phoneNumber, validationError: ({ value }) =>
6754
- // Naive phone number validation
6755
- validateBillingField(/[a-zA-Z]+/, value) &&
6756
- formatErrorMessage(text.phoneNumber, text.error.fieldInvalidError), disabled: states.disabled || states.isPartner }, (((_k = formState.errors) === null || _k === void 0 ? void 0 : _k.phoneNumber) ? {
6757
- class: classes.ErrorInput,
6758
- helpText: formatErrorMessage(text.phoneNumber, formState.errors.phoneNumber),
6759
- }
6760
- : {}), { required: true })))),
6714
+ h("div", { style: { display: "flex", gap: "4px" } },
6715
+ h("sl-select", Object.assign({ id: "phoneNumberCountryCode", exportparts: "label: input-label, base: input-base", name: "/phoneNumberCountryCode", label: text.phoneNumber, style: { minWidth: "140px" }, value: formState.phoneNumberCountryCode, disabled: states.disabled || states.isPartner, ref: (el) => (refs.phoneCountryRef.current = el) }, (((_g = formState.errors) === null || _g === void 0 ? void 0 : _g.phoneNumberCountryCode) ? {
6716
+ class: classes.ErrorInput,
6717
+ }
6718
+ : {}), { required: true, "onSl-select": (e) => callbacks.onFormChange("phoneCountry", e) }),
6719
+ h("sl-input", { class: classes.SearchInput, placeholder: text.searchForCountryText, onKeyDown: (e) => {
6720
+ // Stop shoelace intercepting key presses
6721
+ e.stopPropagation();
6722
+ }, "onSl-input": (e) => {
6723
+ callbacks.setPhoneCountrySearch(e.target.value);
6724
+ } }), (_h = data === null || data === void 0 ? void 0 : data.phoneCountries) === null || _h === void 0 ? void 0 :
6725
+ _h.map((c) => {
6726
+ var _a, _b;
6727
+ return (h("sl-menu-item", { style: { width: "500px" }, value: c.countryCode },
6728
+ h("div", { slot: "prefix", style: { marginRight: "8px" } }, `${(_a = PHONE_EXTENSIONS[c.countryCode]) === null || _a === void 0 ? void 0 : _a.name} `), (_b = PHONE_EXTENSIONS[c.countryCode]) === null || _b === void 0 ? void 0 :
6729
+ _b.dial_code));
6730
+ }), (_j = data === null || data === void 0 ? void 0 : data.allCountries) === null || _j === void 0 ? void 0 :
6731
+ _j.map((c) => {
6732
+ var _a, _b;
6733
+ return (h("sl-menu-item", { value: c.countryCode, style: { display: "none" } },
6734
+ h("div", { slot: "prefix", style: { marginRight: "8px" } }, `${(_a = PHONE_EXTENSIONS[c.countryCode]) === null || _a === void 0 ? void 0 : _a.name} `), (_b = PHONE_EXTENSIONS[c.countryCode]) === null || _b === void 0 ? void 0 :
6735
+ _b.dial_code));
6736
+ })),
6737
+ h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", label: " ", id: "phoneNumber", name: "/phoneNumber", value: formState.phoneNumber, style: { marginTop: "2px", width: "362px" }, validationError: ({ value }) =>
6738
+ // Naive phone number validation
6739
+ validateBillingField(/[a-zA-Z]+/, value) &&
6740
+ formatErrorMessage(text.phoneNumber, text.error.fieldInvalidError), disabled: states.disabled || states.isPartner }, (((_k = formState.errors) === null || _k === void 0 ? void 0 : _k.phoneNumber) ? {
6741
+ class: classes.ErrorInput,
6742
+ helpText: formatErrorMessage(text.phoneNumber, formState.errors.phoneNumber),
6743
+ }
6744
+ : {}), { required: true }))),
6761
6745
  h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", label: text.address, id: "address", name: "/address", value: formState.address, validationError: ({ value }) =>
6762
6746
  // Checks for non-ASCII characters
6763
6747
  !validateBillingField(/^[\x20-\xFF]+$/, value) &&
@@ -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,8 +15,8 @@ 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-04640297.js';
19
- import './sqm-portal-container-view-6c582684.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
+ import './sqm-portal-container-view-ab89c6cc.js';
20
20
 
21
21
  const BigStat = class {
22
22
  constructor(hostRef) {
@@ -1156,7 +1156,7 @@ function ImageView(props) {
1156
1156
  },
1157
1157
  Image: {
1158
1158
  minHeight: props.minHeight || "100%",
1159
- width: props.width || "100%",
1159
+ width: "100%",
1160
1160
  maxWidth: "max-content",
1161
1161
  objectFit: "cover",
1162
1162
  },
@@ -1271,26 +1271,6 @@ const GET_LEADERBOARD = dist.gql `
1271
1271
  }
1272
1272
  }
1273
1273
  `;
1274
- const GET_LEADERBOARD_WITHOUT_NAMES = dist.gql `
1275
- query (
1276
- $type: String!
1277
- $filter: UserLeaderboardFilterInput
1278
- $locale: RSLocale
1279
- $limit: Int!
1280
- ) {
1281
- userLeaderboard(type: $type, filter: $filter) {
1282
- dateModified
1283
- rows(limit: $limit) {
1284
- textValue(locale: $locale)
1285
- rank {
1286
- rank
1287
- denseRank
1288
- rowNumber
1289
- }
1290
- }
1291
- }
1292
- }
1293
- `;
1294
1274
  const GET_RANK = dist.gql `
1295
1275
  query (
1296
1276
  $type: String!
@@ -1311,24 +1291,6 @@ const GET_RANK = dist.gql `
1311
1291
  }
1312
1292
  }
1313
1293
  `;
1314
- const GET_RANK_WITHOUT_NAMES = dist.gql `
1315
- query (
1316
- $type: String!
1317
- $filter: UserLeaderboardFilterInput
1318
- $locale: RSLocale
1319
- ) {
1320
- viewer {
1321
- ... on User {
1322
- leaderboardRank(type: $type, filter: $filter) {
1323
- textValue(locale: $locale)
1324
- rank
1325
- denseRank
1326
- rowNumber
1327
- }
1328
- }
1329
- }
1330
- }
1331
- `;
1332
1294
  function useLeaderboard(props) {
1333
1295
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
1334
1296
  const programIdContext = H();
@@ -1354,8 +1316,8 @@ function useLeaderboard(props) {
1354
1316
  if (props.maxRows > 0) {
1355
1317
  variables["limit"] = props.maxRows;
1356
1318
  }
1357
- const { data: leaderboardData, loading: loadingLeaderboard, errors: leaderboardErrors, } = yn(props.hideNames ? GET_LEADERBOARD_WITHOUT_NAMES : GET_LEADERBOARD, variables, !(user === null || user === void 0 ? void 0 : user.jwt), { batch: false });
1358
- const { data: rankData } = yn(props.hideNames ? GET_RANK_WITHOUT_NAMES : GET_RANK, variables, !(user === null || user === void 0 ? void 0 : user.jwt));
1319
+ const { data: leaderboardData, loading: loadingLeaderboard, errors: leaderboardErrors, } = yn(GET_LEADERBOARD, variables, !(user === null || user === void 0 ? void 0 : user.jwt), { batch: false });
1320
+ const { data: rankData } = yn(GET_RANK, variables, !(user === null || user === void 0 ? void 0 : user.jwt));
1359
1321
  const leaderboardRows = (_b = leaderboardData === null || leaderboardData === void 0 ? void 0 : leaderboardData.userLeaderboard) === null || _b === void 0 ? void 0 : _b.rows;
1360
1322
  const flattenedLeaderboard = getFlattenedLeaderboard(leaderboardRows);
1361
1323
  const sortedLeaderboard = flattenedLeaderboard === null || flattenedLeaderboard === void 0 ? void 0 : flattenedLeaderboard.sort(function (a, b) {
@@ -1400,6 +1362,7 @@ function useLeaderboard(props) {
1400
1362
  elements: {
1401
1363
  empty: props.empty,
1402
1364
  essentials: props.essentials,
1365
+ loadingstate: props.loadingstate,
1403
1366
  },
1404
1367
  };
1405
1368
  }
@@ -1407,12 +1370,6 @@ function useLeaderboard(props) {
1407
1370
  const Leaderboard = class {
1408
1371
  constructor(hostRef) {
1409
1372
  registerInstance(this, hostRef);
1410
- /**
1411
- * Restrict the width of the leaderboard (Can be a pixel value or a percentage i.e. "500px", "33%", etc.)
1412
- *
1413
- * @uiName Width
1414
- */
1415
- this.width = "100%";
1416
1373
  /**
1417
1374
  * Hide the viewer's leaderboard row if not in the top results.
1418
1375
  *
@@ -1420,21 +1377,10 @@ const Leaderboard = class {
1420
1377
  * @default
1421
1378
  */
1422
1379
  this.hideViewer = false;
1423
- /**
1424
- * @uiName Viewing user text
1425
- */
1426
- this.viewingUserText = "You";
1427
- /**
1428
- * Hide the Names of users to protect personal identifiable information
1429
- *
1430
- * @uiName Hide users names
1431
- * @default
1432
- */
1433
- this.hideNames = false;
1434
1380
  /**
1435
1381
  * Hides the leaderboard if user is on Essentials plan
1436
1382
  *
1437
- * @uiName Hide leaderboard for essentials user
1383
+ * @uiName Hide viewing user
1438
1384
  * @default
1439
1385
  */
1440
1386
  this.isEssentials = false;
@@ -1458,6 +1404,7 @@ const Leaderboard = class {
1458
1404
  const props = {
1459
1405
  empty: h$1(EmptySlot, null),
1460
1406
  essentials: h$1(EssentialsSlot, null),
1407
+ loadingstate: h$1(LoadingSlot, null),
1461
1408
  usersheading: this.usersheading,
1462
1409
  statsheading: this.statsheading,
1463
1410
  rankheading: this.rankheading,
@@ -1468,12 +1415,8 @@ const Leaderboard = class {
1468
1415
  anonymousUser: this.anonymousUser,
1469
1416
  interval: this.interval,
1470
1417
  hideViewer: this.hideViewer,
1471
- viewingUserText: this.viewingUserText,
1472
- hideNames: this.hideNames,
1473
1418
  showRank: this.showRank,
1474
1419
  isEssentials: this.isEssentials,
1475
- rankSuffix: this.rankSuffix,
1476
- width: this.width,
1477
1420
  };
1478
1421
  const demoProps = { ...props, demoData: this.demoData };
1479
1422
  const viewprops = isDemo()
@@ -1488,6 +1431,11 @@ function EmptySlot() {
1488
1431
  function EssentialsSlot() {
1489
1432
  return (h$1("slot", { name: "essentials" }, h$1("sqm-empty", { "empty-state-image": "https://res.cloudinary.com/saasquatch/image/upload/v1715360191/squatch-assets/Leaderboard_Not_Available.svg", "empty-state-header": "Leaderboards aren\u2019t available on your plan", "empty-state-text": "Contact {supportText} to upgrade your plan and start leveraging gamification in your program.", "support-text": "Support", "missing-feature": "Leaderboards" })));
1490
1433
  }
1434
+ function LoadingSlot() {
1435
+ return (h$1("slot", { name: "loading" }, h$1("table", null, [...Array(10)].map(() => {
1436
+ return (h$1("tr", null, h$1("td", null, h$1("sl-skeleton", null))));
1437
+ }))));
1438
+ }
1491
1439
  function useLeaderboardDemo(props) {
1492
1440
  var _a, _b;
1493
1441
  const data = ((_b = (_a = props.demoData) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.leaderboard) || [
@@ -1543,10 +1491,6 @@ function useLeaderboardDemo(props) {
1543
1491
  : "Anonymous User",
1544
1492
  showRank: props.showRank,
1545
1493
  hideViewer: props.hideViewer,
1546
- viewingUserText: props.viewingUserText,
1547
- hideNames: props.hideNames,
1548
- rankSuffix: props.rankSuffix,
1549
- width: props.width,
1550
1494
  },
1551
1495
  },
1552
1496
  data: {
@@ -1556,6 +1500,7 @@ function useLeaderboardDemo(props) {
1556
1500
  elements: {
1557
1501
  empty: h$1(EmptySlot, null),
1558
1502
  essentials: h$1(EssentialsSlot, null),
1503
+ loadingstate: h$1(LoadingSlot, null),
1559
1504
  },
1560
1505
  }, props.demoData || {}, { arrayMerge: (_, a) => a });
1561
1506
  }
@@ -1,10 +1,10 @@
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';
7
- import { P as PortalContainerView, a as PortalSectionView } from './sqm-portal-container-view-6c582684.js';
7
+ import { P as PortalContainerView, a as PortalSectionView } from './sqm-portal-container-view-ab89c6cc.js';
8
8
 
9
9
  function EmptyStateView(props) {
10
10
  const { emptyStateHeader, emptyStateImage, emptyStateText, supportText, missingFeature = "", } = props;
@@ -67,13 +67,6 @@ const PortalContainer = class {
67
67
  * @uiName Maximum width
68
68
  */
69
69
  this.maxWidth = "100%";
70
- /**
71
- * @uiName Flex wrap behavior
72
- * @uiType string
73
- * @uiEnum ["wrap", "nowrap"]
74
- * @uiEnumNames ["Wrap", "No Wrap"]
75
- */
76
- this.flexWrap = "wrap";
77
70
  /**
78
71
  * @uiName Background color
79
72
  * @uiWidget color
@@ -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,