@saasquatch/mint-components 1.7.4-2 → 1.7.4
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.
- package/dist/cjs/{ShadowViewAddon-43f35e24.js → ShadowViewAddon-25025125.js} +18 -18
- package/dist/cjs/{global-6785de71.js → global-be9af765.js} +2 -2
- package/dist/cjs/{index.module-02576958.js → index.module-8562f350.js} +23 -23
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/mint-components.cjs.js +2 -2
- package/dist/cjs/{re-render-c484d9ab.js → re-render-9a91bde6.js} +4 -4
- package/dist/cjs/sqm-asset-card.cjs.entry.js +1 -1
- package/dist/cjs/sqm-big-stat_39.cjs.entry.js +58 -58
- package/dist/cjs/sqm-close-button.cjs.entry.js +1 -1
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +5 -5
- package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +3 -3
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +5 -5
- package/dist/cjs/sqm-logout-current-user.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-navigation-sidebar-item-view-21dcca39.js → sqm-navigation-sidebar-item-view-28578dce.js} +2 -2
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +3 -3
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +3 -3
- package/dist/cjs/sqm-password-field.cjs.entry.js +2 -2
- package/dist/cjs/sqm-popup-container.cjs.entry.js +4 -4
- package/dist/cjs/{sqm-portal-email-verification-view-d6e14e8d.js → sqm-portal-email-verification-view-077c12f7.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +8 -8
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +4 -4
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-profile-view-13a1229f.js → sqm-portal-profile-view-b3d1e0f7.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +6 -6
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +5 -5
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +6 -6
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +6 -6
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +6 -6
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +5 -5
- package/dist/cjs/sqm-referred-registration.cjs.entry.js +3 -3
- package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +2 -2
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +9 -9
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +43 -43
- package/dist/cjs/sqm-tab.cjs.entry.js +2 -2
- package/dist/cjs/sqm-tabs.cjs.entry.js +4 -4
- package/dist/cjs/{useChildElements-74eb05b6.js → useChildElements-be4e0841.js} +2 -2
- package/dist/cjs/{useInstantAccessRegistration-11ff69f8.js → useInstantAccessRegistration-27a20410.js} +3 -3
- package/dist/cjs/{useReferralTable-6ca43436.js → useReferralTable-ca564dcb.js} +8 -8
- package/dist/cjs/{useRegistrationFormState-01d63bda.js → useRegistrationFormState-7b557a04.js} +2 -2
- package/dist/esm/{ShadowViewAddon-a5b397ce.js → ShadowViewAddon-53810b62.js} +18 -18
- package/dist/esm/{global-91edfca0.js → global-179b13db.js} +2 -2
- package/dist/esm/{index.module-99d8522e.js → index.module-9469b28f.js} +3 -3
- package/dist/esm/loader.js +2 -2
- package/dist/esm/mint-components.js +2 -2
- package/dist/esm/{re-render-096db0eb.js → re-render-1048d024.js} +4 -4
- package/dist/esm/sqm-asset-card.entry.js +1 -1
- package/dist/esm/sqm-big-stat_39.entry.js +58 -58
- package/dist/esm/sqm-close-button.entry.js +1 -1
- package/dist/esm/sqm-graphql-client-provider.entry.js +5 -5
- package/dist/esm/sqm-instant-access-registration.entry.js +3 -3
- package/dist/esm/sqm-leaderboard-rank.entry.js +5 -5
- package/dist/esm/sqm-logout-current-user.entry.js +3 -3
- package/dist/esm/{sqm-navigation-sidebar-item-view-eb765b9c.js → sqm-navigation-sidebar-item-view-d2e0fdb1.js} +2 -2
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +3 -3
- package/dist/esm/sqm-navigation-sidebar.entry.js +3 -3
- package/dist/esm/sqm-password-field.entry.js +2 -2
- package/dist/esm/sqm-popup-container.entry.js +4 -4
- package/dist/esm/{sqm-portal-email-verification-view-408af676.js → sqm-portal-email-verification-view-79ef6c2f.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +8 -8
- package/dist/esm/sqm-portal-forgot-password.entry.js +4 -4
- package/dist/esm/sqm-portal-logout.entry.js +2 -2
- package/dist/esm/{sqm-portal-profile-view-efa44888.js → sqm-portal-profile-view-6068a0f8.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +6 -6
- package/dist/esm/sqm-portal-protected-route.entry.js +5 -5
- package/dist/esm/sqm-portal-registration-form.entry.js +6 -6
- package/dist/esm/sqm-portal-reset-password.entry.js +8 -8
- package/dist/esm/sqm-portal-verify-email.entry.js +6 -6
- package/dist/esm/sqm-referral-table_11.entry.js +5 -5
- package/dist/esm/sqm-referred-registration.entry.js +3 -3
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +2 -2
- package/dist/esm/sqm-rewards-table_9.entry.js +9 -9
- package/dist/esm/sqm-stencilbook.entry.js +43 -43
- package/dist/esm/sqm-tab.entry.js +2 -2
- package/dist/esm/sqm-tabs.entry.js +4 -4
- package/dist/esm/{useChildElements-b945a965.js → useChildElements-1338b131.js} +2 -2
- package/dist/esm/{useInstantAccessRegistration-7f9f4360.js → useInstantAccessRegistration-53c43a63.js} +3 -3
- package/dist/esm/{useReferralTable-e425f29d.js → useReferralTable-ada01642.js} +8 -8
- package/dist/esm/{useRegistrationFormState-c9d54ef3.js → useRegistrationFormState-49dfc8e0.js} +2 -2
- package/dist/esm-es5/{ShadowViewAddon-a5b397ce.js → ShadowViewAddon-53810b62.js} +1 -1
- package/dist/esm-es5/{global-91edfca0.js → global-179b13db.js} +2 -2
- package/dist/esm-es5/{index.module-99d8522e.js → index.module-9469b28f.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/{re-render-096db0eb.js → re-render-1048d024.js} +1 -1
- package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_39.entry.js +1 -1
- package/dist/esm-es5/sqm-close-button.entry.js +1 -1
- package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
- package/dist/esm-es5/{sqm-navigation-sidebar-item-view-eb765b9c.js → sqm-navigation-sidebar-item-view-d2e0fdb1.js} +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
- package/dist/esm-es5/sqm-password-field.entry.js +1 -1
- package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-408af676.js → sqm-portal-email-verification-view-79ef6c2f.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-efa44888.js → sqm-portal-profile-view-6068a0f8.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-referred-registration.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-tab.entry.js +1 -1
- package/dist/esm-es5/sqm-tabs.entry.js +1 -1
- package/dist/esm-es5/{useChildElements-b945a965.js → useChildElements-1338b131.js} +1 -1
- package/dist/esm-es5/{useInstantAccessRegistration-7f9f4360.js → useInstantAccessRegistration-53c43a63.js} +1 -1
- package/dist/esm-es5/{useReferralTable-e425f29d.js → useReferralTable-ada01642.js} +1 -1
- package/dist/esm-es5/useRegistrationFormState-49dfc8e0.js +1 -0
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/{p-b0f3c6c5.entry.js → p-0714bae2.entry.js} +2 -2
- package/dist/mint-components/p-1912f988.entry.js +1 -0
- package/dist/mint-components/{p-e058ba88.entry.js → p-19e46b11.entry.js} +1 -1
- package/dist/mint-components/{p-2e9a5714.js → p-21a1d705.js} +1 -1
- package/dist/mint-components/{p-0943b547.system.js → p-228163a1.system.js} +1 -1
- package/dist/mint-components/{p-10bf0b3a.entry.js → p-29e67994.entry.js} +1 -1
- package/dist/mint-components/{p-f71cfd64.js → p-2aca0eae.js} +1 -1
- package/dist/mint-components/{p-25ad41bd.system.entry.js → p-2d39cf50.system.entry.js} +1 -1
- package/dist/mint-components/{p-ed9374ef.system.entry.js → p-2d592364.system.entry.js} +1 -1
- package/dist/mint-components/p-330314f9.entry.js +1 -0
- package/dist/mint-components/{p-f7b5c0ac.system.entry.js → p-3409e9a0.system.entry.js} +1 -1
- package/dist/mint-components/{p-74e8a90c.entry.js → p-39341b0c.entry.js} +5 -5
- package/dist/mint-components/p-3b7c1be8.entry.js +1 -0
- package/dist/mint-components/{p-20b4e20b.system.entry.js → p-42f1a044.system.entry.js} +1 -1
- package/dist/mint-components/{p-1e884e97.system.entry.js → p-509af914.system.entry.js} +1 -1
- package/dist/mint-components/p-519bb212.js +1 -0
- package/dist/mint-components/{p-a65e2e14.system.entry.js → p-540a24e6.system.entry.js} +1 -1
- package/dist/mint-components/p-55eb6616.system.js +1 -0
- package/dist/mint-components/{p-b9c7b7ef.entry.js → p-571f6923.entry.js} +1 -1
- package/dist/mint-components/{p-7d5ee633.system.entry.js → p-58196113.system.entry.js} +1 -1
- package/dist/mint-components/{p-c24d34d8.entry.js → p-583b1a0e.entry.js} +1 -1
- package/dist/mint-components/{p-ef6a3ff3.entry.js → p-5ae4911c.entry.js} +2 -2
- package/dist/mint-components/p-5b9195d7.system.entry.js +1 -0
- package/dist/mint-components/{p-b0ef4f17.entry.js → p-5ddfa30d.entry.js} +1 -1
- package/dist/mint-components/{p-831d1332.js → p-6034522a.js} +1 -1
- package/dist/mint-components/{p-9a74f167.entry.js → p-657659e8.entry.js} +2 -2
- package/dist/mint-components/p-68db543e.system.entry.js +1 -0
- package/dist/mint-components/{p-9b2e0735.system.entry.js → p-68e5a4a6.system.entry.js} +1 -1
- package/dist/mint-components/{p-8b2b5d37.system.js → p-6dac42fc.system.js} +1 -1
- package/dist/mint-components/p-718cf151.js +1 -0
- package/dist/mint-components/{p-b4fddf49.entry.js → p-71a4e272.entry.js} +1 -1
- package/dist/mint-components/{p-e49392c3.system.entry.js → p-747912c5.system.entry.js} +1 -1
- package/dist/mint-components/{p-ee7bc1c7.system.js → p-76cfebb1.system.js} +1 -1
- package/dist/mint-components/{p-f63961b4.system.js → p-76d4eb55.system.js} +1 -1
- package/dist/mint-components/p-78066f92.entry.js +13 -0
- package/dist/mint-components/p-7862ab7d.entry.js +1 -0
- package/dist/mint-components/p-7ced669d.entry.js +1 -0
- package/dist/mint-components/{p-d65de81a.entry.js → p-7e1af11d.entry.js} +1 -1
- package/dist/mint-components/{p-a23a2a86.entry.js → p-7fc020f4.entry.js} +1 -1
- package/dist/mint-components/{p-1ce682cf.js → p-82180848.js} +1 -1
- package/dist/mint-components/{p-2bba85ac.system.entry.js → p-8827fabe.system.entry.js} +1 -1
- package/dist/mint-components/{p-84ee5462.system.entry.js → p-8d593b5e.system.entry.js} +1 -1
- package/dist/mint-components/p-8d767d9d.js +1 -0
- package/dist/mint-components/{p-0a892e0f.system.entry.js → p-8ff83f3b.system.entry.js} +1 -1
- package/dist/mint-components/{p-6e793d76.system.entry.js → p-9551f888.system.entry.js} +1 -1
- package/dist/mint-components/{p-f04ce58d.system.entry.js → p-961998b6.system.entry.js} +1 -1
- package/dist/mint-components/p-97b03f80.entry.js +1 -0
- package/dist/mint-components/{p-be8f19ba.system.entry.js → p-97e758fd.system.entry.js} +1 -1
- package/dist/mint-components/{p-a372d9cf.system.js → p-9aa1bd46.system.js} +1 -1
- package/dist/mint-components/{p-c2bd46e2.entry.js → p-9e9dcd9c.entry.js} +1 -1
- package/dist/mint-components/{p-9f3a0252.system.js → p-9ecfc085.system.js} +1 -1
- package/dist/mint-components/{p-f064bf28.entry.js → p-a223a8dc.entry.js} +1 -1
- package/dist/mint-components/{p-66e3cb0c.system.entry.js → p-a38baa99.system.entry.js} +1 -1
- package/dist/mint-components/{p-ba295930.system.entry.js → p-a87d66ac.system.entry.js} +1 -1
- package/dist/mint-components/{p-8f1974f8.system.entry.js → p-a8f6d72c.system.entry.js} +1 -1
- package/dist/mint-components/{p-eab33344.js → p-ae191f8c.js} +1 -1
- package/dist/mint-components/p-af24b899.entry.js +1 -0
- package/dist/mint-components/{p-13570402.system.entry.js → p-ba42b92c.system.entry.js} +1 -1
- package/dist/mint-components/{p-41c62fef.system.js → p-bf0719b7.system.js} +1 -1
- package/dist/mint-components/{p-d65bf9dc.js → p-c24079c2.js} +1 -1
- package/dist/mint-components/{p-f60d9f3e.system.entry.js → p-c3be93c7.system.entry.js} +1 -1
- package/dist/mint-components/p-c5b61ade.system.js +1 -0
- package/dist/mint-components/p-cc391fac.js +1 -0
- package/dist/mint-components/{p-abfb3897.system.entry.js → p-d3de337c.system.entry.js} +1 -1
- package/dist/mint-components/{p-e3de804b.entry.js → p-d3f6b6b4.entry.js} +1 -1
- package/dist/mint-components/{p-821004e9.system.entry.js → p-d9787e31.system.entry.js} +1 -1
- package/dist/mint-components/{p-d5e83056.entry.js → p-e8f720b9.entry.js} +1 -1
- package/dist/mint-components/{p-a79208b8.system.js → p-ee457000.system.js} +1 -1
- package/dist/mint-components/{p-dd0b4da7.system.entry.js → p-ef3bcec4.system.entry.js} +1 -1
- package/dist/mint-components/{p-b6dafb9b.system.js → p-f2260971.system.js} +1 -1
- package/dist/mint-components/{p-42844992.js → p-f6456854.js} +3 -3
- package/dist/mint-components/{p-7b490a03.system.js → p-f7b7d395.system.js} +1 -1
- package/dist/mint-components/{p-3e0bb7f9.entry.js → p-f9bfbfa2.entry.js} +1 -1
- package/dist/mint-components/p-fe13762b.entry.js +1 -0
- package/dist/mint-components/{p-b5b9aaba.system.entry.js → p-fe721800.system.entry.js} +1 -1
- package/docs/docs.docx +0 -0
- package/package.json +1 -1
- package/dist/esm-es5/useRegistrationFormState-c9d54ef3.js +0 -1
- package/dist/mint-components/p-05f069ce.entry.js +0 -13
- package/dist/mint-components/p-0ad6459e.entry.js +0 -1
- package/dist/mint-components/p-0b8f38a8.entry.js +0 -1
- package/dist/mint-components/p-0de80de6.js +0 -1
- package/dist/mint-components/p-1fa097d3.entry.js +0 -1
- package/dist/mint-components/p-22d1e92e.system.js +0 -1
- package/dist/mint-components/p-57a89487.entry.js +0 -1
- package/dist/mint-components/p-59318941.system.js +0 -1
- package/dist/mint-components/p-6d1a2821.system.entry.js +0 -1
- package/dist/mint-components/p-6fed24de.entry.js +0 -1
- package/dist/mint-components/p-878daf52.js +0 -1
- package/dist/mint-components/p-89e86134.entry.js +0 -1
- package/dist/mint-components/p-8b28c511.js +0 -1
- package/dist/mint-components/p-ce748fab.js +0 -1
- package/dist/mint-components/p-db9652e7.system.entry.js +0 -1
- package/dist/mint-components/p-e9197aac.entry.js +0 -1
- package/dist/mint-components/p-f21aa0bd.entry.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
2
|
import { m as h } from './stencil-hooks.module-14b87f98.js';
|
|
3
|
-
import { g as getEnvironmentSDK } from './index.module-
|
|
3
|
+
import { g as getEnvironmentSDK } from './index.module-9469b28f.js';
|
|
4
4
|
import './mixins-f60a614c.js';
|
|
5
5
|
import './JSS-67b5cff8.js';
|
|
6
6
|
import { C as CloseButtonView } from './sqm-close-button-view-dc65b4e3.js';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1, c as Host } from './index-17b4da69.js';
|
|
2
2
|
import { n as m, f as useEffect, m as h } from './stencil-hooks.module-14b87f98.js';
|
|
3
|
-
import {
|
|
3
|
+
import { H, b as be, L, a as Ce } from './index.module-9469b28f.js';
|
|
4
4
|
|
|
5
5
|
async function useGraphQLClientProvider({ domain }) {
|
|
6
|
-
const token =
|
|
6
|
+
const token = H();
|
|
7
7
|
const appDomain = domain;
|
|
8
|
-
const tenantAlias =
|
|
8
|
+
const tenantAlias = L();
|
|
9
9
|
// Memoization is shared. One client per domain, tenant and token (or null)
|
|
10
|
-
const managedIdentityClient =
|
|
11
|
-
const [, setGraphQLClient] = m(
|
|
10
|
+
const managedIdentityClient = be(appDomain, tenantAlias, token);
|
|
11
|
+
const [, setGraphQLClient] = m(Ce, managedIdentityClient);
|
|
12
12
|
useEffect(() => {
|
|
13
13
|
setGraphQLClient(managedIdentityClient);
|
|
14
14
|
}, [managedIdentityClient]);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
2
|
import { m as h } from './stencil-hooks.module-14b87f98.js';
|
|
3
|
-
import { i as isDemo,
|
|
3
|
+
import { i as isDemo, c as setUserIdentity } from './index.module-9469b28f.js';
|
|
4
4
|
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
8
|
import { E as EmailRegistrationView } from './email-registration-view-4a4202e7.js';
|
|
9
|
-
import './useRegistrationFormState-
|
|
10
|
-
import { u as useInstantAccessRegistration } from './useInstantAccessRegistration-
|
|
9
|
+
import './useRegistrationFormState-49dfc8e0.js';
|
|
10
|
+
import { u as useInstantAccessRegistration } from './useInstantAccessRegistration-53c43a63.js';
|
|
11
11
|
|
|
12
12
|
const InstantAccessRegistration = class {
|
|
13
13
|
constructor(hostRef) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
2
|
import { m as h } from './stencil-hooks.module-14b87f98.js';
|
|
3
|
-
import { i as intl } from './global-
|
|
4
|
-
import { d as dist,
|
|
3
|
+
import { i as intl } from './global-179b13db.js';
|
|
4
|
+
import { d as dist, N, U, v as vn, i as isDemo } from './index.module-9469b28f.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
7
|
|
|
@@ -20,10 +20,10 @@ const GET_RANK = dist.gql `
|
|
|
20
20
|
`;
|
|
21
21
|
function useLeaderboardRank(props) {
|
|
22
22
|
var _a, _b, _c, _d;
|
|
23
|
-
const programIdContext =
|
|
23
|
+
const programIdContext = N();
|
|
24
24
|
// Default to context, overriden by props
|
|
25
25
|
const programId = (_a = props.programId) !== null && _a !== void 0 ? _a : programIdContext;
|
|
26
|
-
const user =
|
|
26
|
+
const user = U();
|
|
27
27
|
const rankVariables = programId
|
|
28
28
|
? {
|
|
29
29
|
type: props.leaderboardType,
|
|
@@ -36,7 +36,7 @@ function useLeaderboardRank(props) {
|
|
|
36
36
|
if (props.interval) {
|
|
37
37
|
rankVariables.filter["interval"] = props.interval;
|
|
38
38
|
}
|
|
39
|
-
const { data: rankData } =
|
|
39
|
+
const { data: rankData } = vn(GET_RANK, rankVariables, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
40
40
|
const fullRankText = ((_b = rankData === null || rankData === void 0 ? void 0 : rankData.viewer) === null || _b === void 0 ? void 0 : _b.leaderboardRank) ? intl.formatMessage({ id: "rankText", defaultMessage: props.rankText }, {
|
|
41
41
|
rank: (_d = (_c = rankData === null || rankData === void 0 ? void 0 : rankData.viewer) === null || _c === void 0 ? void 0 : _c.leaderboardRank) === null || _d === void 0 ? void 0 : _d[props.rankType],
|
|
42
42
|
})
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
2
|
import { m as h } from './stencil-hooks.module-14b87f98.js';
|
|
3
|
-
import { d as dist,
|
|
3
|
+
import { d as dist, U, v as vn, c as setUserIdentity, i as isDemo } from './index.module-9469b28f.js';
|
|
4
4
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
5
5
|
import './JSS-67b5cff8.js';
|
|
6
6
|
import { g as getProps } from './utils-334c1e34.js';
|
|
@@ -17,8 +17,8 @@ const GET_USER_DETAILS = dist.gql `
|
|
|
17
17
|
`;
|
|
18
18
|
function useLogoutCurrentUser(props) {
|
|
19
19
|
var _a, _b;
|
|
20
|
-
const user =
|
|
21
|
-
const { loading, data } =
|
|
20
|
+
const user = U();
|
|
21
|
+
const { loading, data } = vn(GET_USER_DETAILS, {
|
|
22
22
|
id: user === null || user === void 0 ? void 0 : user.id,
|
|
23
23
|
accountId: user === null || user === void 0 ? void 0 : user.accountId,
|
|
24
24
|
}, !user);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h } from './index-17b4da69.js';
|
|
2
|
-
import {
|
|
2
|
+
import { p as pn } from './index.module-9469b28f.js';
|
|
3
3
|
import { g as gap } from './mixins-f60a614c.js';
|
|
4
4
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
5
5
|
|
|
@@ -33,7 +33,7 @@ function NavigationSidebarItemView(props) {
|
|
|
33
33
|
const styleString = sheet.toString();
|
|
34
34
|
return (h("a", { part: "sqm-link", href: data.path, onClick: (e) => {
|
|
35
35
|
e.preventDefault();
|
|
36
|
-
|
|
36
|
+
pn.push(data.path);
|
|
37
37
|
}, class: sheet.classes.ItemContainer },
|
|
38
38
|
h("style", { type: "text/css" }, styleString),
|
|
39
39
|
h("sl-icon", { class: sheet.classes.Icon, name: data.icon }),
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
2
|
import { m as h } from './stencil-hooks.module-14b87f98.js';
|
|
3
|
-
import {
|
|
3
|
+
import { f as gn, i as isDemo } from './index.module-9469b28f.js';
|
|
4
4
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
5
5
|
import './mixins-f60a614c.js';
|
|
6
6
|
import './JSS-67b5cff8.js';
|
|
7
7
|
import { g as getProps } from './utils-334c1e34.js';
|
|
8
|
-
import { N as NavigationSidebarItemView } from './sqm-navigation-sidebar-item-view-
|
|
8
|
+
import { N as NavigationSidebarItemView } from './sqm-navigation-sidebar-item-view-d2e0fdb1.js';
|
|
9
9
|
|
|
10
10
|
function useNavigationSidebarItem(props) {
|
|
11
|
-
const currentPage =
|
|
11
|
+
const currentPage = gn();
|
|
12
12
|
return {
|
|
13
13
|
states: {
|
|
14
14
|
active: currentPage.pathname === props.path,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
2
|
import { m as h, j as useState, f as useEffect } from './stencil-hooks.module-14b87f98.js';
|
|
3
|
-
import {
|
|
3
|
+
import { f as gn, N } from './index.module-9469b28f.js';
|
|
4
4
|
import { N as NavigationSidebarView } from './sqm-navigation-sidebar-view-414bcb19.js';
|
|
5
5
|
|
|
6
6
|
const NavigationSidebar = class {
|
|
@@ -16,8 +16,8 @@ const NavigationSidebar = class {
|
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
18
|
function useNavigationSidebar() {
|
|
19
|
-
const location =
|
|
20
|
-
const programId =
|
|
19
|
+
const location = gn();
|
|
20
|
+
const programId = N();
|
|
21
21
|
const [checked, setChecked] = useState(false);
|
|
22
22
|
// Close hamburger menu after navigation
|
|
23
23
|
useEffect(() => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { h, r as registerInstance } from './index-17b4da69.js';
|
|
2
2
|
import { o as d, j as useState, m as h$1 } from './stencil-hooks.module-14b87f98.js';
|
|
3
|
-
import { i as isDemo } from './index.module-
|
|
3
|
+
import { i as isDemo } from './index.module-9469b28f.js';
|
|
4
4
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
5
5
|
import { E as ErrorStyles } from './mixins-f60a614c.js';
|
|
6
6
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
7
|
-
import { R as REGISTRATION_FORM_STATE_CONTEXT } from './useRegistrationFormState-
|
|
7
|
+
import { R as REGISTRATION_FORM_STATE_CONTEXT } from './useRegistrationFormState-49dfc8e0.js';
|
|
8
8
|
|
|
9
9
|
var constants = {
|
|
10
10
|
error: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h, c as Host, r as registerInstance } from './index-17b4da69.js';
|
|
2
2
|
import { m as h$1 } from './stencil-hooks.module-14b87f98.js';
|
|
3
|
-
import {
|
|
3
|
+
import { J } from './index.module-9469b28f.js';
|
|
4
4
|
import { g as getProps } from './utils-334c1e34.js';
|
|
5
5
|
|
|
6
6
|
const PopupContainerView = (props) => {
|
|
@@ -14,10 +14,10 @@ const PopupContainerView = (props) => {
|
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
function usePopupContainer(props) {
|
|
17
|
-
const engagementMedium =
|
|
17
|
+
const engagementMedium = J();
|
|
18
18
|
function closePopup() {
|
|
19
19
|
var _a;
|
|
20
|
-
if (
|
|
20
|
+
if (J() === "POPUP") {
|
|
21
21
|
(_a = window.frameElement["squatchJsApi"]) === null || _a === void 0 ? void 0 : _a.close();
|
|
22
22
|
}
|
|
23
23
|
}
|
|
@@ -31,7 +31,7 @@ function usePopupContainer(props) {
|
|
|
31
31
|
? "0"
|
|
32
32
|
: `var(--sl-spacing-${props.embedPadding})`
|
|
33
33
|
: "0";
|
|
34
|
-
const padding =
|
|
34
|
+
const padding = J() === "POPUP" ? popupPadding : embedPadding;
|
|
35
35
|
return {
|
|
36
36
|
states: {
|
|
37
37
|
showCloseButton: props.closeButton && engagementMedium === "POPUP",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h } from './index-17b4da69.js';
|
|
2
|
-
import { i as intl } from './global-
|
|
2
|
+
import { i as intl } from './global-179b13db.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,20 +1,20 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
2
|
import { j as useState, k as useRef, f as useEffect, m as h } from './stencil-hooks.module-14b87f98.js';
|
|
3
|
-
import './global-
|
|
4
|
-
import {
|
|
3
|
+
import './global-179b13db.js';
|
|
4
|
+
import { h as sn, Z as Ze, U, p as pn, u as useCallback, i as isDemo } from './index.module-9469b28f.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-
|
|
9
|
+
import { P as PortalEmailVerificationView } from './sqm-portal-email-verification-view-79ef6c2f.js';
|
|
10
10
|
|
|
11
11
|
function usePortalEmailVerification(props) {
|
|
12
12
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
13
|
-
const [request, { loading, data, errors }] =
|
|
14
|
-
const [getVerificationStatus, { data: user, loading: loadingVerification }] =
|
|
15
|
-
const userIdent =
|
|
13
|
+
const [request, { loading, data, errors }] = sn();
|
|
14
|
+
const [getVerificationStatus, { data: user, loading: loadingVerification }] = Ze();
|
|
15
|
+
const userIdent = U();
|
|
16
16
|
const email = (_a = userIdent === null || userIdent === void 0 ? void 0 : userIdent.managedIdentity) === null || _a === void 0 ? void 0 : _a.email;
|
|
17
|
-
const urlParams = new URLSearchParams(
|
|
17
|
+
const urlParams = new URLSearchParams(pn.location.search);
|
|
18
18
|
const nextPage = urlParams.get("nextPage");
|
|
19
19
|
const [success, setSuccess] = useState(false);
|
|
20
20
|
const [error, setError] = useState("");
|
|
@@ -44,7 +44,7 @@ function usePortalEmailVerification(props) {
|
|
|
44
44
|
const data = (await getVerificationStatus());
|
|
45
45
|
if ((_a = data === null || data === void 0 ? void 0 : data.managedIdentitySession) === null || _a === void 0 ? void 0 : _a.emailVerified) {
|
|
46
46
|
clearInterval(timerRef.current);
|
|
47
|
-
return
|
|
47
|
+
return pn.push({
|
|
48
48
|
pathname: props.redirectPath,
|
|
49
49
|
search: urlParams.toString() && "?" + urlParams.toString(),
|
|
50
50
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
2
|
import { j as useState, m as h } from './stencil-hooks.module-14b87f98.js';
|
|
3
|
-
import {
|
|
3
|
+
import { t as tn, p as pn, i as isDemo } from './index.module-9469b28f.js';
|
|
4
4
|
import { j as jsonpointer } from './jsonpointer-388a7082.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
6
|
import './mixins-f60a614c.js';
|
|
@@ -12,8 +12,8 @@ function usePortalForgotPassword(props) {
|
|
|
12
12
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
13
13
|
const [success, setSuccess] = useState(false);
|
|
14
14
|
const [error, setError] = useState("");
|
|
15
|
-
const [request, { loading, data, errors }] =
|
|
16
|
-
const urlParams = new URLSearchParams(
|
|
15
|
+
const [request, { loading, data, errors }] = tn();
|
|
16
|
+
const urlParams = new URLSearchParams(pn.location.search);
|
|
17
17
|
const nextPage = urlParams.get("nextPage");
|
|
18
18
|
const submit = async (event) => {
|
|
19
19
|
var _a;
|
|
@@ -93,7 +93,7 @@ const PortalForgotPassword = class {
|
|
|
93
93
|
? usePortalForgotPasswordDemo(this)
|
|
94
94
|
: usePortalForgotPassword(this);
|
|
95
95
|
const content = {
|
|
96
|
-
secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("sl-button", { type: "text", disabled: states.loading, onClick: () =>
|
|
96
|
+
secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("sl-button", { type: "text", disabled: states.loading, onClick: () => pn.push(states.loginPath) }, "Sign In"))),
|
|
97
97
|
messageSlot: (h$1("slot", { name: "messageSlot" }, "Enter your email below to receive a password reset link.")),
|
|
98
98
|
emailLabel: this.emailLabel,
|
|
99
99
|
submitLabel: this.submitLabel,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { r as registerInstance } from './index-17b4da69.js';
|
|
2
2
|
import { m as h } from './stencil-hooks.module-14b87f98.js';
|
|
3
|
-
import {
|
|
3
|
+
import { c as setUserIdentity, p as pn, i as isDemo } from './index.module-9469b28f.js';
|
|
4
4
|
|
|
5
5
|
function usePortalLogout({ nextPage }) {
|
|
6
6
|
setUserIdentity(undefined);
|
|
7
|
-
|
|
7
|
+
pn.push({ pathname: nextPage, search: "" });
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
const PortalLogout = class {
|
package/dist/esm/{sqm-portal-profile-view-efa44888.js → sqm-portal-profile-view-6068a0f8.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h } from './index-17b4da69.js';
|
|
2
|
-
import { i as intl } from './global-
|
|
2
|
+
import { i as intl } from './global-179b13db.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 { j as useState, f as useEffect, m as h } from './stencil-hooks.module-14b87f98.js';
|
|
3
|
-
import './global-
|
|
4
|
-
import { d as dist,
|
|
3
|
+
import './global-179b13db.js';
|
|
4
|
+
import { d as dist, U, v as vn, E as Ee, i as isDemo } from './index.module-9469b28f.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-
|
|
9
|
+
import { P as PortalProfileView } from './sqm-portal-profile-view-6068a0f8.js';
|
|
10
10
|
|
|
11
11
|
const GET_USER = dist.gql `
|
|
12
12
|
query {
|
|
@@ -52,12 +52,12 @@ const defaultFormState = {
|
|
|
52
52
|
error: "",
|
|
53
53
|
};
|
|
54
54
|
function usePortalProfile(props) {
|
|
55
|
-
const userIdent =
|
|
55
|
+
const userIdent = U();
|
|
56
56
|
const [success, setSuccess] = useState(false);
|
|
57
57
|
const [userData, setUserData] = useState(undefined);
|
|
58
58
|
const [formState, setFormState] = useState(defaultFormState);
|
|
59
|
-
const userDataResponse =
|
|
60
|
-
const [upsertUser, upsertUserResponse] =
|
|
59
|
+
const userDataResponse = vn(GET_USER, {}, !(userIdent === null || userIdent === void 0 ? void 0 : userIdent.jwt));
|
|
60
|
+
const [upsertUser, upsertUserResponse] = Ee(UPSERT_USER);
|
|
61
61
|
useEffect(() => {
|
|
62
62
|
if (upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.loading)
|
|
63
63
|
return;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1, c as Host } from './index-17b4da69.js';
|
|
2
2
|
import { f as useEffect, m as h } from './stencil-hooks.module-14b87f98.js';
|
|
3
|
-
import {
|
|
3
|
+
import { U, f as gn, p as pn, i as isDemo } from './index.module-9469b28f.js';
|
|
4
4
|
|
|
5
5
|
function usePortalProtectedRoute({ requireEmailVerification, redirectTo, redirectToUnverified, }) {
|
|
6
6
|
var _a;
|
|
7
|
-
const userIdent =
|
|
7
|
+
const userIdent = U();
|
|
8
8
|
const authenticated = !!(userIdent === null || userIdent === void 0 ? void 0 : userIdent.jwt);
|
|
9
9
|
const emailVerified = (_a = userIdent === null || userIdent === void 0 ? void 0 : userIdent.managedIdentity) === null || _a === void 0 ? void 0 : _a.emailVerified;
|
|
10
|
-
const { pathname, search } =
|
|
10
|
+
const { pathname, search } = gn();
|
|
11
11
|
const nextPageParam = new URLSearchParams();
|
|
12
12
|
nextPageParam.append("nextPage", `${pathname}${search}`);
|
|
13
13
|
useEffect(() => {
|
|
14
14
|
if (!authenticated) {
|
|
15
|
-
return
|
|
15
|
+
return pn.push({
|
|
16
16
|
pathname: redirectTo,
|
|
17
17
|
search: "?" + nextPageParam.toString(),
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
20
|
if (requireEmailVerification && !emailVerified) {
|
|
21
|
-
return
|
|
21
|
+
return pn.push({
|
|
22
22
|
pathname: redirectToUnverified || redirectTo,
|
|
23
23
|
search: "?" + nextPageParam.toString(),
|
|
24
24
|
});
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { h, r as registerInstance } from './index-17b4da69.js';
|
|
2
2
|
import { k as useRef, f as useEffect, m as h$1 } from './stencil-hooks.module-14b87f98.js';
|
|
3
|
-
import { d as dist,
|
|
3
|
+
import { d as dist, R as Re, v as vn, p as pn, u as useCallback, i as isDemo } from './index.module-9469b28f.js';
|
|
4
4
|
import { j as jsonpointer } from './jsonpointer-388a7082.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
6
|
import { A as AuthWrapper, a as AuthColumn, H as HostBlock, b as AuthButtonsContainer, E as ErrorStyles } from './mixins-f60a614c.js';
|
|
7
7
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
8
8
|
import { T as TextSpanView } from './sqm-text-span-view-8d140661.js';
|
|
9
|
-
import { u as useRegistrationFormState } from './useRegistrationFormState-
|
|
9
|
+
import { u as useRegistrationFormState } from './useRegistrationFormState-49dfc8e0.js';
|
|
10
10
|
import { A as AsYouType } from './AsYouType-46f67d0d.js';
|
|
11
11
|
|
|
12
12
|
const style = {
|
|
@@ -103,8 +103,8 @@ function usePortalRegistrationForm(props) {
|
|
|
103
103
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
104
104
|
const formRef = useRef(null);
|
|
105
105
|
const { registrationFormState, setRegistrationFormState } = useRegistrationFormState({});
|
|
106
|
-
const [request, { loading, errors, data, formError }] =
|
|
107
|
-
const queryResponse =
|
|
106
|
+
const [request, { loading, errors, data, formError }] = Re();
|
|
107
|
+
const queryResponse = vn(RegistrationFormQuery, { key: props.formKey });
|
|
108
108
|
const formLoading = loading || queryResponse.loading;
|
|
109
109
|
useEffect(() => {
|
|
110
110
|
var _a, _b, _c;
|
|
@@ -206,7 +206,7 @@ function usePortalRegistrationForm(props) {
|
|
|
206
206
|
managedIdentityResponse.result.results.length &&
|
|
207
207
|
managedIdentityResponse.result.results[0].success &&
|
|
208
208
|
managedIdentityResponse.result.results[0].data.token) {
|
|
209
|
-
|
|
209
|
+
pn.push(props.nextPage);
|
|
210
210
|
}
|
|
211
211
|
else if (
|
|
212
212
|
// check for blocked email error response
|
|
@@ -395,7 +395,7 @@ const PortalRegistrationForm = class {
|
|
|
395
395
|
: usePortalRegistrationForm(this);
|
|
396
396
|
const content = {
|
|
397
397
|
formData: h("slot", { name: "formData" }),
|
|
398
|
-
secondaryButton: (h("slot", { name: "secondaryButton" }, h("sl-button", { type: "text", disabled: states.loading, onClick: () =>
|
|
398
|
+
secondaryButton: (h("slot", { name: "secondaryButton" }, h("sl-button", { type: "text", disabled: states.loading, onClick: () => pn.push(states.loginPath) }, this.loginLabel))),
|
|
399
399
|
terms: h("slot", { name: "terms" }),
|
|
400
400
|
emailLabel: this.emailLabel,
|
|
401
401
|
passwordLabel: this.passwordLabel,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
2
|
import { j as useState, f as useEffect, m as h } from './stencil-hooks.module-14b87f98.js';
|
|
3
|
-
import { j as
|
|
3
|
+
import { j as Ue, _ as _e, p as pn, i as isDemo } from './index.module-9469b28f.js';
|
|
4
4
|
import { j as jsonpointer } from './jsonpointer-388a7082.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
6
|
import './mixins-f60a614c.js';
|
|
@@ -10,12 +10,12 @@ import './sqm-text-span-view-8d140661.js';
|
|
|
10
10
|
import { P as PortalResetPasswordView } from './sqm-portal-reset-password-view-0df781f6.js';
|
|
11
11
|
|
|
12
12
|
function usePortalResetPassword(props) {
|
|
13
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
13
|
+
var _a, _b, _c, _d, _e$1, _f, _g, _h, _j, _k;
|
|
14
14
|
const [reset, setReset] = useState(false);
|
|
15
15
|
const [error, setError] = useState("");
|
|
16
|
-
const [verifyPasswordResetCode, verifyPasswordResetCodeState] =
|
|
17
|
-
const [resetPassword, resetPasswordState] =
|
|
18
|
-
const urlParams = new URLSearchParams(
|
|
16
|
+
const [verifyPasswordResetCode, verifyPasswordResetCodeState] = Ue();
|
|
17
|
+
const [resetPassword, resetPasswordState] = _e();
|
|
18
|
+
const urlParams = new URLSearchParams(pn.location.search);
|
|
19
19
|
const oobCode = urlParams.get("oobCode");
|
|
20
20
|
urlParams.delete("oobCode");
|
|
21
21
|
const nextPageOverride = urlParams.get("nextPage");
|
|
@@ -53,10 +53,10 @@ function usePortalResetPassword(props) {
|
|
|
53
53
|
const gotoNextPage = () => {
|
|
54
54
|
urlParams.delete("nextPage");
|
|
55
55
|
const url = sanitizeUrlPath(nextPageOverride || props.nextPage);
|
|
56
|
-
|
|
56
|
+
pn.push(url.href);
|
|
57
57
|
};
|
|
58
58
|
const failed = () => {
|
|
59
|
-
|
|
59
|
+
pn.push({
|
|
60
60
|
pathname: props.failedPage,
|
|
61
61
|
search: urlParams.toString() && "?" + urlParams.toString(),
|
|
62
62
|
});
|
|
@@ -66,7 +66,7 @@ function usePortalResetPassword(props) {
|
|
|
66
66
|
loading: resetPasswordState.loading,
|
|
67
67
|
reset,
|
|
68
68
|
confirmPassword: props.confirmPassword,
|
|
69
|
-
error: ((_e = (_d = (_c = (_b = (_a = resetPasswordState.errors) === null || _a === void 0 ? void 0 : _a.response) === null || _b === void 0 ? void 0 : _b.errors) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.extensions) === null || _e === void 0 ? void 0 : _e.message) || ((_j = (_h = (_g = (_f = resetPasswordState.errors) === null || _f === void 0 ? void 0 : _f.response) === null || _g === void 0 ? void 0 : _g.errors) === null || _h === void 0 ? void 0 : _h[0]) === null || _j === void 0 ? void 0 : _j.message) ||
|
|
69
|
+
error: ((_e$1 = (_d = (_c = (_b = (_a = resetPasswordState.errors) === null || _a === void 0 ? void 0 : _a.response) === null || _b === void 0 ? void 0 : _b.errors) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.extensions) === null || _e$1 === void 0 ? void 0 : _e$1.message) || ((_j = (_h = (_g = (_f = resetPasswordState.errors) === null || _f === void 0 ? void 0 : _f.response) === null || _g === void 0 ? void 0 : _g.errors) === null || _h === void 0 ? void 0 : _h[0]) === null || _j === void 0 ? void 0 : _j.message) ||
|
|
70
70
|
error,
|
|
71
71
|
oobCodeValidating: verifyPasswordResetCodeState.loading,
|
|
72
72
|
oobCodeValid: (_k = verifyPasswordResetCodeState.data) === null || _k === void 0 ? void 0 : _k.verifyManagedIdentityPasswordResetCode.success,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
2
|
import { f as useEffect, m as h } from './stencil-hooks.module-14b87f98.js';
|
|
3
|
-
import {
|
|
3
|
+
import { U, k as en, p as pn, i as isDemo } from './index.module-9469b28f.js';
|
|
4
4
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
5
5
|
import './mixins-f60a614c.js';
|
|
6
6
|
import './JSS-67b5cff8.js';
|
|
@@ -10,9 +10,9 @@ import { P as PortalVerifyEmailView } from './sqm-portal-verify-email-view-1db4f
|
|
|
10
10
|
|
|
11
11
|
function usePortalVerifyEmail({ nextPage, failedPage }) {
|
|
12
12
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
13
|
-
const userIdent =
|
|
14
|
-
const [request, { loading, data, errors }] =
|
|
15
|
-
const urlParams = new URLSearchParams(
|
|
13
|
+
const userIdent = U();
|
|
14
|
+
const [request, { loading, data, errors }] = en();
|
|
15
|
+
const urlParams = new URLSearchParams(pn.location.search);
|
|
16
16
|
const oobCode = urlParams.get("oobCode");
|
|
17
17
|
const nextPageOverride = urlParams.get("nextPage");
|
|
18
18
|
// derived from useMutation in component boilerplate initialState
|
|
@@ -20,7 +20,7 @@ function usePortalVerifyEmail({ nextPage, failedPage }) {
|
|
|
20
20
|
// if logged out, userIdent?.managedIdentity?.emailVerified will be falsey, even if verification was successful
|
|
21
21
|
const verified = !!(((_a = userIdent === null || userIdent === void 0 ? void 0 : userIdent.managedIdentity) === null || _a === void 0 ? void 0 : _a.emailVerified) || (data === null || data === void 0 ? void 0 : data.verifyManagedIdentityEmail.success));
|
|
22
22
|
const failed = () => {
|
|
23
|
-
return
|
|
23
|
+
return pn.push({
|
|
24
24
|
pathname: failedPage,
|
|
25
25
|
search: urlParams.toString() && "?" + urlParams.toString(),
|
|
26
26
|
});
|
|
@@ -28,7 +28,7 @@ function usePortalVerifyEmail({ nextPage, failedPage }) {
|
|
|
28
28
|
const gotoNextPage = () => {
|
|
29
29
|
urlParams.delete("nextPage");
|
|
30
30
|
const url = sanitizeUrlPath(nextPageOverride || nextPage);
|
|
31
|
-
|
|
31
|
+
pn.push(url.href);
|
|
32
32
|
};
|
|
33
33
|
const submit = async () => {
|
|
34
34
|
var _a;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1, g as getElement, c as Host } from './index-17b4da69.js';
|
|
2
2
|
import { m as h, i as useReducer, u as useMemo, f as useEffect } from './stencil-hooks.module-14b87f98.js';
|
|
3
|
-
import { i as intl } from './global-
|
|
4
|
-
import { i as isDemo } from './index.module-
|
|
3
|
+
import { i as intl } from './global-179b13db.js';
|
|
4
|
+
import { i as isDemo } from './index.module-9469b28f.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
6
|
import './mixins-f60a614c.js';
|
|
7
7
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
8
8
|
import { G as GenericTableView } from './GenericTableView-266126f9.js';
|
|
9
|
-
import { a as useRequestRerender, u as useRerenderListener } from './re-render-
|
|
10
|
-
import { u as useChildElements } from './useChildElements-
|
|
9
|
+
import { a as useRequestRerender, u as useRerenderListener } from './re-render-1048d024.js';
|
|
10
|
+
import { u as useChildElements } from './useChildElements-1338b131.js';
|
|
11
11
|
import { l as luxon } from './luxon-f01e85fe.js';
|
|
12
|
-
import { a as getPaypalMeta, u as useReferralTable, t as tryMethod } from './useReferralTable-
|
|
12
|
+
import { a as getPaypalMeta, u as useReferralTable, t as tryMethod } from './useReferralTable-ada01642.js';
|
|
13
13
|
import { l as luxonLocale } from './utils-334c1e34.js';
|
|
14
14
|
import { T as TextSpanView } from './sqm-text-span-view-8d140661.js';
|
|
15
15
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
2
|
import { m as h } from './stencil-hooks.module-14b87f98.js';
|
|
3
|
-
import { i as isDemo,
|
|
3
|
+
import { i as isDemo, c as setUserIdentity } from './index.module-9469b28f.js';
|
|
4
4
|
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
8
|
import { E as EmailRegistrationView } from './email-registration-view-4a4202e7.js';
|
|
9
|
-
import './useRegistrationFormState-
|
|
10
|
-
import { u as useInstantAccessRegistration } from './useInstantAccessRegistration-
|
|
9
|
+
import './useRegistrationFormState-49dfc8e0.js';
|
|
10
|
+
import { u as useInstantAccessRegistration } from './useInstantAccessRegistration-53c43a63.js';
|
|
11
11
|
|
|
12
12
|
const ReferredRegistration = class {
|
|
13
13
|
constructor(hostRef) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1, c as Host } from './index-17b4da69.js';
|
|
2
2
|
import { m as h } from './stencil-hooks.module-14b87f98.js';
|
|
3
|
-
import './index.module-
|
|
4
|
-
import { a as useRequestRerender } from './re-render-
|
|
3
|
+
import './index.module-9469b28f.js';
|
|
4
|
+
import { a as useRequestRerender } from './re-render-1048d024.js';
|
|
5
5
|
|
|
6
6
|
const RewardTableCustomerNoteColumn = class {
|
|
7
7
|
constructor(hostRef) {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { h, r as registerInstance, c as Host } from './index-17b4da69.js';
|
|
2
2
|
import { b as browser, i as useReducer, f as useEffect, m as h$1, u as useMemo } from './stencil-hooks.module-14b87f98.js';
|
|
3
|
-
import { i as intl } from './global-
|
|
4
|
-
import { d as dist,
|
|
3
|
+
import { i as intl } from './global-179b13db.js';
|
|
4
|
+
import { d as dist, U, N, W, C as Cn, i as isDemo } from './index.module-9469b28f.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
6
|
import './mixins-f60a614c.js';
|
|
7
7
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
8
8
|
import { G as GenericTableView } from './GenericTableView-266126f9.js';
|
|
9
|
-
import { u as useRerenderListener, a as useRequestRerender } from './re-render-
|
|
10
|
-
import { u as useChildElements } from './useChildElements-
|
|
9
|
+
import { u as useRerenderListener, a as useRequestRerender } from './re-render-1048d024.js';
|
|
10
|
+
import { u as useChildElements } from './useChildElements-1338b131.js';
|
|
11
11
|
import { l as luxon } from './luxon-f01e85fe.js';
|
|
12
|
-
import { g as generateUserError, m as mockRewardData } from './useReferralTable-
|
|
12
|
+
import { g as generateUserError, m as mockRewardData } from './useReferralTable-ada01642.js';
|
|
13
13
|
import { l as luxonLocale } from './utils-334c1e34.js';
|
|
14
14
|
|
|
15
15
|
const debug = browser("sq:useRewardsTable");
|
|
@@ -127,9 +127,9 @@ const GET_REWARDS = dist.gql `
|
|
|
127
127
|
`;
|
|
128
128
|
function useRewardsTable(props, emptyElement, loadingElement) {
|
|
129
129
|
var _a, _b;
|
|
130
|
-
const user =
|
|
131
|
-
const programIdContext =
|
|
132
|
-
const locale =
|
|
130
|
+
const user = U();
|
|
131
|
+
const programIdContext = N();
|
|
132
|
+
const locale = W();
|
|
133
133
|
// Default to context, overriden by props
|
|
134
134
|
const programId = (_a = props.programId) !== null && _a !== void 0 ? _a : programIdContext;
|
|
135
135
|
const rewardFilter = {
|
|
@@ -151,7 +151,7 @@ function useRewardsTable(props, emptyElement, loadingElement) {
|
|
|
151
151
|
loading: false,
|
|
152
152
|
page: 0,
|
|
153
153
|
});
|
|
154
|
-
const { envelope: rewardsData, states, callbacks, } =
|
|
154
|
+
const { envelope: rewardsData, states, callbacks, } = Cn(GET_REWARDS, (data) => { var _a; return (_a = data === null || data === void 0 ? void 0 : data.viewer) === null || _a === void 0 ? void 0 : _a.rewards; }, {
|
|
155
155
|
limit: props.perPage,
|
|
156
156
|
offset: 0,
|
|
157
157
|
}, {
|