@saasquatch/mint-components 1.10.3 → 1.11.0-1

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 (178) hide show
  1. package/dist/cjs/{ShadowViewAddon-c3e91cee.js → ShadowViewAddon-21aa34f8.js} +32 -57
  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 +115 -142
  7. package/dist/cjs/sqm-big-stat_38.cjs.entry.js +24 -65
  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-c26fb670.js} +6 -8
  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 +57 -180
  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 +24 -130
  27. package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +29 -55
  28. package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +29 -93
  29. package/dist/collection/components/sqm-leaderboard/useLeaderboard.js +4 -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 +3 -2
  45. package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +43 -36
  46. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +2 -2
  47. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +2 -3
  48. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +12 -12
  49. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +32 -55
  50. package/dist/collection/components/tax-and-cash/utils.js +4 -7
  51. package/dist/collection/components/views/email-registration-view.js +1 -1
  52. package/dist/collection/global/global.js +1 -1
  53. package/dist/collection/stories/NewPortal.stories.js +1 -1
  54. package/dist/esm/{ShadowViewAddon-e012b2aa.js → ShadowViewAddon-90897c22.js} +32 -57
  55. package/dist/esm/{email-registration-view-a89a88bf.js → email-registration-view-07d80492.js} +1 -1
  56. package/dist/esm/{global-04c7d3b5.js → global-e7bb0343.js} +1 -1
  57. package/dist/esm/loader.js +2 -2
  58. package/dist/esm/mint-components.js +2 -2
  59. package/dist/esm/sqm-banking-info-form_16.entry.js +115 -142
  60. package/dist/esm/sqm-big-stat_38.entry.js +24 -65
  61. package/dist/esm/sqm-empty_4.entry.js +2 -9
  62. package/dist/esm/sqm-instant-access-registration.entry.js +1 -1
  63. package/dist/esm/{sqm-invoice-table-view-34ac7513.js → sqm-invoice-table-view-2175569f.js} +6 -8
  64. package/dist/esm/sqm-leaderboard-rank.entry.js +1 -1
  65. package/dist/esm/sqm-logout-current-user.entry.js +10 -9
  66. package/dist/esm/{sqm-portal-container-view-6c582684.js → sqm-portal-container-view-ab89c6cc.js} +1 -1
  67. package/dist/esm/{sqm-portal-email-verification-view-4307c992.js → sqm-portal-email-verification-view-0b32261f.js} +1 -1
  68. package/dist/esm/sqm-portal-email-verification.entry.js +2 -2
  69. package/dist/esm/{sqm-portal-profile-view-ffe955c8.js → sqm-portal-profile-view-03026a5e.js} +1 -1
  70. package/dist/esm/sqm-portal-profile.entry.js +2 -2
  71. package/dist/esm/sqm-referral-table_11.entry.js +1 -1
  72. package/dist/esm/sqm-referred-registration.entry.js +1 -1
  73. package/dist/esm/sqm-rewards-table_9.entry.js +1 -1
  74. package/dist/esm/sqm-stencilbook.entry.js +57 -180
  75. package/dist/esm-es5/ShadowViewAddon-90897c22.js +1 -0
  76. package/dist/esm-es5/email-registration-view-07d80492.js +1 -0
  77. package/dist/esm-es5/{global-04c7d3b5.js → global-e7bb0343.js} +1 -1
  78. package/dist/esm-es5/loader.js +1 -1
  79. package/dist/esm-es5/mint-components.js +1 -1
  80. package/dist/esm-es5/sqm-banking-info-form_16.entry.js +1 -1
  81. package/dist/esm-es5/sqm-big-stat_38.entry.js +1 -1
  82. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  83. package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
  84. package/dist/esm-es5/sqm-invoice-table-view-2175569f.js +1 -0
  85. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  86. package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
  87. package/dist/esm-es5/sqm-portal-container-view-ab89c6cc.js +1 -0
  88. package/dist/esm-es5/{sqm-portal-email-verification-view-4307c992.js → sqm-portal-email-verification-view-0b32261f.js} +1 -1
  89. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  90. package/dist/esm-es5/{sqm-portal-profile-view-ffe955c8.js → sqm-portal-profile-view-03026a5e.js} +1 -1
  91. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  92. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  93. package/dist/esm-es5/sqm-referred-registration.entry.js +1 -1
  94. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  95. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  96. package/dist/mint-components/mint-components.esm.js +1 -1
  97. package/dist/mint-components/mint-components.js +1 -1
  98. package/dist/mint-components/p-007383e1.entry.js +9 -0
  99. package/dist/mint-components/{p-10685090.js → p-05948592.js} +23 -23
  100. package/dist/mint-components/p-05a9bc83.entry.js +9 -0
  101. package/dist/mint-components/{p-4d233cd4.js → p-0e556260.js} +1 -1
  102. package/dist/mint-components/p-10036f16.js +1 -0
  103. package/dist/mint-components/p-227dec48.js +1 -0
  104. package/dist/mint-components/p-3dbf752a.system.entry.js +1 -0
  105. package/dist/mint-components/p-445ffcfd.system.entry.js +1 -0
  106. package/dist/mint-components/p-482bf487.system.js +1 -0
  107. package/dist/mint-components/{p-b6fc1227.system.entry.js → p-4864ed8a.system.entry.js} +1 -1
  108. package/dist/mint-components/p-5301a2da.system.entry.js +1 -0
  109. package/dist/mint-components/{p-01cfff8a.system.entry.js → p-55a782cf.system.entry.js} +1 -1
  110. package/dist/mint-components/{p-59fe4ad1.system.js → p-573fab0f.system.js} +1 -1
  111. package/dist/mint-components/{p-56f14840.entry.js → p-57e4ef5f.entry.js} +1 -1
  112. package/dist/mint-components/p-5956a47e.entry.js +1 -0
  113. package/dist/mint-components/{p-7049e9b0.entry.js → p-5d485450.entry.js} +1 -1
  114. package/dist/mint-components/p-64491c96.system.entry.js +1 -0
  115. package/dist/mint-components/{p-ce621bcc.js → p-66172a05.js} +1 -1
  116. package/dist/mint-components/p-6bf41e0d.system.js +1 -0
  117. package/dist/mint-components/p-76b69493.entry.js +174 -0
  118. package/dist/mint-components/{p-b4c52c5a.entry.js → p-7a572b34.entry.js} +1 -1
  119. package/dist/mint-components/{p-be4b748a.system.entry.js → p-8fe21979.system.entry.js} +1 -1
  120. package/dist/mint-components/p-922578e4.system.js +1 -0
  121. package/dist/mint-components/{p-3ec16698.entry.js → p-956ed10a.entry.js} +1 -1
  122. package/dist/mint-components/p-97198e2c.system.js +1 -0
  123. package/dist/mint-components/{p-4ea58025.system.entry.js → p-973f6501.system.entry.js} +1 -1
  124. package/dist/mint-components/{p-8704937c.js → p-9774fbc5.js} +1 -1
  125. package/dist/mint-components/{p-35d84041.system.entry.js → p-a61e6394.system.entry.js} +1 -1
  126. package/dist/mint-components/{p-1dd69917.system.entry.js → p-b8dbb809.system.entry.js} +1 -1
  127. package/dist/mint-components/p-be38de26.system.js +1 -0
  128. package/dist/mint-components/{p-ed095674.system.js → p-c7a3fd1b.system.js} +1 -1
  129. package/dist/mint-components/p-cf158064.entry.js +33 -0
  130. package/dist/mint-components/p-d51eb656.entry.js +187 -0
  131. package/dist/mint-components/{p-4df8f1d2.system.js → p-d7df3dfd.system.js} +1 -1
  132. package/dist/mint-components/{p-32d1d162.entry.js → p-dab544d9.entry.js} +1 -1
  133. package/dist/mint-components/{p-c7fd9e16.js → p-e704842c.js} +1 -1
  134. package/dist/mint-components/{p-8679ed9f.system.entry.js → p-e84a74fe.system.entry.js} +1 -1
  135. package/dist/mint-components/{p-7f088154.entry.js → p-ebcec043.entry.js} +1 -1
  136. package/dist/mint-components/p-f8f6c99d.system.entry.js +1 -0
  137. package/dist/types/components/sqm-card-feed/sqm-card-feed.d.ts +1 -1
  138. package/dist/types/components/sqm-image/sqm-image-view.d.ts +0 -1
  139. package/dist/types/components/sqm-image/sqm-image.d.ts +0 -5
  140. package/dist/types/components/sqm-leaderboard/Leaderboard.stories.d.ts +1 -5
  141. package/dist/types/components/sqm-leaderboard/sqm-leaderboard-view.d.ts +4 -6
  142. package/dist/types/components/sqm-leaderboard/sqm-leaderboard.d.ts +6 -23
  143. package/dist/types/components/sqm-leaderboard/useLeaderboard.d.ts +2 -4
  144. package/dist/types/components/sqm-portal-container/PortalContainer.stories.d.ts +0 -1
  145. package/dist/types/components/sqm-portal-container/sqm-portal-container-view.d.ts +0 -1
  146. package/dist/types/components/sqm-portal-container/sqm-portal-container.d.ts +0 -7
  147. package/dist/types/components/sqm-share-button/sqm-share-button.d.ts +2 -2
  148. package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +1 -1
  149. package/dist/types/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.d.ts +5 -3
  150. package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +2 -1
  151. package/dist/types/components/tax-and-cash/utils.d.ts +2 -2
  152. package/dist/types/components.d.ts +14 -66
  153. package/docs/docs.docx +0 -0
  154. package/docs/raisins.json +1 -1
  155. package/grapesjs/grapesjs.js +1 -1
  156. package/package.json +2 -2
  157. package/dist/esm-es5/ShadowViewAddon-e012b2aa.js +0 -1
  158. package/dist/esm-es5/email-registration-view-a89a88bf.js +0 -1
  159. package/dist/esm-es5/sqm-invoice-table-view-34ac7513.js +0 -1
  160. package/dist/esm-es5/sqm-portal-container-view-6c582684.js +0 -1
  161. package/dist/mint-components/p-1c857edb.entry.js +0 -33
  162. package/dist/mint-components/p-2ffefa3b.entry.js +0 -223
  163. package/dist/mint-components/p-31e810e9.entry.js +0 -168
  164. package/dist/mint-components/p-509e29e6.js +0 -1
  165. package/dist/mint-components/p-5de21018.system.entry.js +0 -1
  166. package/dist/mint-components/p-7497a4f6.system.entry.js +0 -1
  167. package/dist/mint-components/p-81689347.entry.js +0 -9
  168. package/dist/mint-components/p-84361da0.system.entry.js +0 -1
  169. package/dist/mint-components/p-95771f79.system.js +0 -1
  170. package/dist/mint-components/p-9f0629ba.system.entry.js +0 -1
  171. package/dist/mint-components/p-a1dba9a1.system.entry.js +0 -1
  172. package/dist/mint-components/p-a51533cb.system.js +0 -1
  173. package/dist/mint-components/p-b23d5520.js +0 -1
  174. package/dist/mint-components/p-bc51264d.system.js +0 -1
  175. package/dist/mint-components/p-d8d2de11.entry.js +0 -1
  176. package/dist/mint-components/p-e3735866.entry.js +0 -11
  177. package/dist/mint-components/p-ed17e637.system.js +0 -1
  178. package/dist/mint-components/p-ed6ebd60.system.js +0 -1
@@ -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-e012b2aa.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) {
@@ -1399,6 +1361,8 @@ function useLeaderboard(props) {
1399
1361
  },
1400
1362
  elements: {
1401
1363
  empty: props.empty,
1364
+ essentials: props.essentials,
1365
+ loadingstate: props.loadingstate,
1402
1366
  },
1403
1367
  };
1404
1368
  }
@@ -1406,12 +1370,6 @@ function useLeaderboard(props) {
1406
1370
  const Leaderboard = class {
1407
1371
  constructor(hostRef) {
1408
1372
  registerInstance(this, hostRef);
1409
- /**
1410
- * Restrict the width of the leaderboard (Can be a pixel value or a percentage i.e. "500px", "33%", etc.)
1411
- *
1412
- * @uiName Width
1413
- */
1414
- this.width = "100%";
1415
1373
  /**
1416
1374
  * Hide the viewer's leaderboard row if not in the top results.
1417
1375
  *
@@ -1420,16 +1378,12 @@ const Leaderboard = class {
1420
1378
  */
1421
1379
  this.hideViewer = false;
1422
1380
  /**
1423
- * @uiName Viewing user text
1424
- */
1425
- this.viewingUserText = "You";
1426
- /**
1427
- * Hide the Names of users to protect personal identifiable information
1381
+ * Hides the leaderboard if user is on Essentials plan
1428
1382
  *
1429
- * @uiName Hide users names
1383
+ * @uiName Hide viewing user
1430
1384
  * @default
1431
1385
  */
1432
- this.hideNames = false;
1386
+ this.isEssentials = false;
1433
1387
  /**
1434
1388
  * Title displayed for users without names
1435
1389
  * @uiName Unknown user text
@@ -1449,6 +1403,8 @@ const Leaderboard = class {
1449
1403
  render() {
1450
1404
  const props = {
1451
1405
  empty: h$1(EmptySlot, null),
1406
+ essentials: h$1(EssentialsSlot, null),
1407
+ loadingstate: h$1(LoadingSlot, null),
1452
1408
  usersheading: this.usersheading,
1453
1409
  statsheading: this.statsheading,
1454
1410
  rankheading: this.rankheading,
@@ -1459,11 +1415,8 @@ const Leaderboard = class {
1459
1415
  anonymousUser: this.anonymousUser,
1460
1416
  interval: this.interval,
1461
1417
  hideViewer: this.hideViewer,
1462
- viewingUserText: this.viewingUserText,
1463
- hideNames: this.hideNames,
1464
1418
  showRank: this.showRank,
1465
- rankSuffix: this.rankSuffix,
1466
- width: this.width,
1419
+ isEssentials: this.isEssentials,
1467
1420
  };
1468
1421
  const demoProps = { ...props, demoData: this.demoData };
1469
1422
  const viewprops = isDemo()
@@ -1475,6 +1428,14 @@ const Leaderboard = class {
1475
1428
  function EmptySlot() {
1476
1429
  return (h$1("slot", { name: "empty" }, h$1("sqm-empty", { "empty-state-image": "https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_leaderboard2.png", "empty-state-header": "View your rank in the leaderboard", "empty-state-text": "Be the first to refer a friend and reach the top of the leaderboard" })));
1477
1430
  }
1431
+ function EssentialsSlot() {
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" })));
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
+ }
1478
1439
  function useLeaderboardDemo(props) {
1479
1440
  var _a, _b;
1480
1441
  const data = ((_b = (_a = props.demoData) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.leaderboard) || [
@@ -1530,10 +1491,6 @@ function useLeaderboardDemo(props) {
1530
1491
  : "Anonymous User",
1531
1492
  showRank: props.showRank,
1532
1493
  hideViewer: props.hideViewer,
1533
- viewingUserText: props.viewingUserText,
1534
- hideNames: props.hideNames,
1535
- rankSuffix: props.rankSuffix,
1536
- width: props.width,
1537
1494
  },
1538
1495
  },
1539
1496
  data: {
@@ -1542,6 +1499,8 @@ function useLeaderboardDemo(props) {
1542
1499
  },
1543
1500
  elements: {
1544
1501
  empty: h$1(EmptySlot, null),
1502
+ essentials: h$1(EssentialsSlot, null),
1503
+ loadingstate: h$1(LoadingSlot, null),
1545
1504
  },
1546
1505
  }, props.demoData || {}, { arrayMerge: (_, a) => a });
1547
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 = [
@@ -432,11 +432,9 @@ const LoadingView = () => {
432
432
  h("sl-skeleton", { class: sheet.classes.ButtonSkeleton })));
433
433
  };
434
434
 
435
- function validTaxDocument(requiredType, currentType) {
436
- if (requiredType === "W9" && currentType === "W9")
437
- return true;
438
- if ((requiredType === "W8BEN" || requiredType === "W8BENE") &&
439
- (currentType === "W8BEN" || currentType === "W8BENE"))
435
+ function validTaxDocument(requiredType) {
436
+ const validTypes = ["W9", "W8BENE", "W8BEN"];
437
+ if (validTypes.includes(requiredType))
440
438
  return true;
441
439
  return false;
442
440
  }
@@ -448,9 +446,8 @@ const taxTypeToName = (taxType) => {
448
446
  case "W9":
449
447
  return "W-9";
450
448
  case "W8BEN":
451
- return "W-8 BEN";
452
449
  case "W8BENE":
453
- return "W-8 BEN-E";
450
+ return "W-8";
454
451
  default:
455
452
  return "";
456
453
  }
@@ -741,6 +738,7 @@ const docusignFormProps = {
741
738
  },
742
739
  },
743
740
  callbacks: {
741
+ completeDocument: async () => { },
744
742
  setParticipantType: (p) => console.log({ p }),
745
743
  setDocusignStatus: (status) => console.log(status),
746
744
  },
@@ -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,
@@ -27,7 +27,7 @@ function PortalContainerView(props, children) {
27
27
  Container: {
28
28
  boxSizing: "border-box",
29
29
  display: props.display || "grid",
30
- flexWrap: props.flexWrap || "wrap",
30
+ flexWrap: "wrap",
31
31
  "grid-template-columns": props.direction === "row"
32
32
  ? `repeat(auto-fill, minmax(${props.minWidth}, auto))`
33
33
  : "100%",
@@ -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';