@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
|
@@ -4,20 +4,20 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
6
|
const stencilHooks_module = require('./stencil-hooks.module-e4bf7f2d.js');
|
|
7
|
-
const global = require('./global-
|
|
8
|
-
const index_module = require('./index.module-
|
|
7
|
+
const global = require('./global-be9af765.js');
|
|
8
|
+
const index_module = require('./index.module-8562f350.js');
|
|
9
9
|
const jsonpointer = require('./jsonpointer-11327262.js');
|
|
10
10
|
const cjs = require('./cjs-1066ec21.js');
|
|
11
11
|
require('./mixins-fe9d4112.js');
|
|
12
12
|
const JSS = require('./JSS-8503a151.js');
|
|
13
|
-
const reRender = require('./re-render-
|
|
14
|
-
const useChildElements = require('./useChildElements-
|
|
13
|
+
const reRender = require('./re-render-9a91bde6.js');
|
|
14
|
+
const useChildElements = require('./useChildElements-be4e0841.js');
|
|
15
15
|
require('./luxon-53e983a6.js');
|
|
16
16
|
const utils = require('./utils-6847bc06.js');
|
|
17
17
|
require('./sqm-text-span-view-e1cd9bd3.js');
|
|
18
|
-
const useRegistrationFormState = require('./useRegistrationFormState-
|
|
18
|
+
const useRegistrationFormState = require('./useRegistrationFormState-7b557a04.js');
|
|
19
19
|
const AsYouType = require('./AsYouType-6788393a.js');
|
|
20
|
-
const ShadowViewAddon = require('./ShadowViewAddon-
|
|
20
|
+
const ShadowViewAddon = require('./ShadowViewAddon-25025125.js');
|
|
21
21
|
require('./sqm-portal-container-view-5fb2ad49.js');
|
|
22
22
|
|
|
23
23
|
const BigStat = class {
|
|
@@ -37,7 +37,7 @@ const BigStat = class {
|
|
|
37
37
|
render() {
|
|
38
38
|
var _a;
|
|
39
39
|
const { props, label } = index_module.isDemo() ? ShadowViewAddon.useDemoBigStat(this) : ShadowViewAddon.useBigStat(this);
|
|
40
|
-
const host = index_module.
|
|
40
|
+
const host = index_module.x();
|
|
41
41
|
const hasLabel = !!((_a = host.innerHTML) === null || _a === void 0 ? void 0 : _a.trim());
|
|
42
42
|
const labelSlot = index.h("slot", { name: "label" }, hasLabel ? index.h("slot", null) : label);
|
|
43
43
|
return index.h(ShadowViewAddon.BigStatView, Object.assign({}, props, { labelSlot: labelSlot }));
|
|
@@ -158,7 +158,7 @@ const styleString = sheet.toString();
|
|
|
158
158
|
function RequiredPropsError({ missingProps, heading = "There was a problem loading this section", subheading = "There was a technical problem that prevented this section from loading. Please contact us with the link to this page.", description = "Error occured while loading <{tagName}>. Values for the following attributes are missing:", }, children) {
|
|
159
159
|
if (!missingProps)
|
|
160
160
|
return false;
|
|
161
|
-
const host = index_module.
|
|
161
|
+
const host = index_module.x();
|
|
162
162
|
const [detailsOpen, setDetailsOpen] = stencilHooks_module.useState(false);
|
|
163
163
|
return (index.h("sl-alert", { type: "danger", open: true },
|
|
164
164
|
index.h("style", { type: "text/css" }, styleString),
|
|
@@ -300,11 +300,11 @@ const WIDGET_ENGAGEMENT_EVENT = index_module.dist.gql `
|
|
|
300
300
|
`;
|
|
301
301
|
function useCouponCode(props) {
|
|
302
302
|
var _a, _b, _c;
|
|
303
|
-
const user = index_module.
|
|
304
|
-
const programId = index_module.
|
|
305
|
-
const engagementMedium = index_module.
|
|
306
|
-
const [sendLoadEvent] = index_module.
|
|
307
|
-
const { data, loading, refetch, errors } = index_module.
|
|
303
|
+
const user = index_module.U();
|
|
304
|
+
const programId = index_module.N();
|
|
305
|
+
const engagementMedium = index_module.J();
|
|
306
|
+
const [sendLoadEvent] = index_module.Ee(WIDGET_ENGAGEMENT_EVENT);
|
|
307
|
+
const { data, loading, refetch, errors } = index_module.vn(FuelTankRewardsQuery, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
308
308
|
const getStatus = (reward) => {
|
|
309
309
|
if (!reward || !reward.statuses)
|
|
310
310
|
return "ERROR";
|
|
@@ -685,13 +685,13 @@ const defaultFormState = {
|
|
|
685
685
|
error: "",
|
|
686
686
|
};
|
|
687
687
|
function useEditProfile(props) {
|
|
688
|
-
const userIdent = index_module.
|
|
688
|
+
const userIdent = index_module.U();
|
|
689
689
|
const [showEdit, setShowEdit] = stencilHooks_module.useState(false);
|
|
690
690
|
const [error, setError] = stencilHooks_module.useState("");
|
|
691
691
|
const [userData, setUserData] = stencilHooks_module.useState(undefined);
|
|
692
692
|
const [formState, setFormState] = stencilHooks_module.useState(defaultFormState);
|
|
693
|
-
const userDataResponse = index_module.
|
|
694
|
-
const [upsertUser, upsertUserResponse] = index_module.
|
|
693
|
+
const userDataResponse = index_module.vn(GET_USER, {}, !(userIdent === null || userIdent === void 0 ? void 0 : userIdent.jwt));
|
|
694
|
+
const [upsertUser, upsertUserResponse] = index_module.Ee(UPSERT_USER);
|
|
695
695
|
stencilHooks_module.useEffect(() => {
|
|
696
696
|
if ((upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.loading) || !showEdit)
|
|
697
697
|
return;
|
|
@@ -1231,11 +1231,11 @@ const GET_RANK = index_module.dist.gql `
|
|
|
1231
1231
|
`;
|
|
1232
1232
|
function useLeaderboard(props) {
|
|
1233
1233
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1234
|
-
const programIdContext = index_module.
|
|
1234
|
+
const programIdContext = index_module.N();
|
|
1235
1235
|
// Default to context, overriden by props
|
|
1236
1236
|
const programId = (_a = props.programId) !== null && _a !== void 0 ? _a : programIdContext;
|
|
1237
|
-
const user = index_module.
|
|
1238
|
-
const locale = index_module.
|
|
1237
|
+
const user = index_module.U();
|
|
1238
|
+
const locale = index_module.W();
|
|
1239
1239
|
const variables = programId
|
|
1240
1240
|
? {
|
|
1241
1241
|
type: props.leaderboardType,
|
|
@@ -1254,8 +1254,8 @@ function useLeaderboard(props) {
|
|
|
1254
1254
|
if (props.maxRows > 0) {
|
|
1255
1255
|
variables["limit"] = props.maxRows;
|
|
1256
1256
|
}
|
|
1257
|
-
const { data: leaderboardData, loading: loadingLeaderboard } = index_module.
|
|
1258
|
-
const { data: rankData } = index_module.
|
|
1257
|
+
const { data: leaderboardData, loading: loadingLeaderboard } = index_module.vn(GET_LEADERBOARD, variables, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
1258
|
+
const { data: rankData } = index_module.vn(GET_RANK, variables, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
1259
1259
|
const leaderboardRows = (_b = leaderboardData === null || leaderboardData === void 0 ? void 0 : leaderboardData.userLeaderboard) === null || _b === void 0 ? void 0 : _b.rows;
|
|
1260
1260
|
const flattenedLeaderboard = getFlattenedLeaderboard(leaderboardRows);
|
|
1261
1261
|
const sortedLeaderboard = flattenedLeaderboard === null || flattenedLeaderboard === void 0 ? void 0 : flattenedLeaderboard.sort(function (a, b) {
|
|
@@ -1529,12 +1529,12 @@ function NavigationMenuView(props) {
|
|
|
1529
1529
|
}
|
|
1530
1530
|
|
|
1531
1531
|
function handleMenu(e) {
|
|
1532
|
-
index_module.
|
|
1532
|
+
index_module.pn.push(e.detail.item.value);
|
|
1533
1533
|
}
|
|
1534
1534
|
function useNavigationMenu(props) {
|
|
1535
1535
|
const ref = stencilHooks_module.useRef();
|
|
1536
|
-
const [, rerender] = index_module.
|
|
1537
|
-
const user = index_module.
|
|
1536
|
+
const [, rerender] = index_module.ln();
|
|
1537
|
+
const user = index_module.U();
|
|
1538
1538
|
stencilHooks_module.useEffect(() => {
|
|
1539
1539
|
var _a;
|
|
1540
1540
|
(_a = ref.current) === null || _a === void 0 ? void 0 : _a.addEventListener("sl-select", (e) => handleMenu(e));
|
|
@@ -1588,11 +1588,11 @@ NavigationMenu.style = sqmNavigationMenuCss;
|
|
|
1588
1588
|
|
|
1589
1589
|
function usePortalChangePassword(props) {
|
|
1590
1590
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
1591
|
-
const [request, { loading, errors, data }] = index_module.
|
|
1591
|
+
const [request, { loading, errors, data }] = index_module.Oe();
|
|
1592
1592
|
const [open, setOpen] = stencilHooks_module.useState(false);
|
|
1593
1593
|
const [error, setError] = stencilHooks_module.useState("");
|
|
1594
1594
|
const [success, setSuccess] = stencilHooks_module.useState(false);
|
|
1595
|
-
const user = index_module.
|
|
1595
|
+
const user = index_module.U();
|
|
1596
1596
|
const submit = async (event) => {
|
|
1597
1597
|
var _a, _b;
|
|
1598
1598
|
setSuccess(false);
|
|
@@ -1788,7 +1788,7 @@ const PortalFooter = class {
|
|
|
1788
1788
|
};
|
|
1789
1789
|
|
|
1790
1790
|
function usePortalFrame(footerContent, headerContent) {
|
|
1791
|
-
const [, rerender] = index_module.
|
|
1791
|
+
const [, rerender] = index_module.ln();
|
|
1792
1792
|
return {
|
|
1793
1793
|
data: {
|
|
1794
1794
|
footer: footerContent,
|
|
@@ -1838,9 +1838,9 @@ function usePortalFrameDemo(footerContent, headerContent, props) {
|
|
|
1838
1838
|
|
|
1839
1839
|
function usePortalLogin(props) {
|
|
1840
1840
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
1841
|
-
const [request, { loading, errors, data }] = index_module.
|
|
1841
|
+
const [request, { loading, errors, data }] = index_module.Me();
|
|
1842
1842
|
const [error, setError] = stencilHooks_module.useState("");
|
|
1843
|
-
const urlParams = new URLSearchParams(index_module.
|
|
1843
|
+
const urlParams = new URLSearchParams(index_module.pn.location.search);
|
|
1844
1844
|
const nextPageOverride = urlParams.get("nextPage");
|
|
1845
1845
|
const submit = async (event) => {
|
|
1846
1846
|
var _a, _b;
|
|
@@ -1859,7 +1859,7 @@ function usePortalLogin(props) {
|
|
|
1859
1859
|
if ((_b = result.authenticateManagedIdentityWithEmailAndPassword) === null || _b === void 0 ? void 0 : _b.token) {
|
|
1860
1860
|
urlParams.delete("nextPage");
|
|
1861
1861
|
const url = utils.sanitizeUrlPath(nextPageOverride || props.nextPage);
|
|
1862
|
-
index_module.
|
|
1862
|
+
index_module.pn.push(url.href);
|
|
1863
1863
|
}
|
|
1864
1864
|
};
|
|
1865
1865
|
const errorMessage = ((_d = (_c = (_b = (_a = errors === null || errors === void 0 ? void 0 : errors.response) === null || _a === void 0 ? void 0 : _a.errors) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.extensions) === null || _d === void 0 ? void 0 : _d.message) || ((_g = (_f = (_e = errors === null || errors === void 0 ? void 0 : errors.response) === null || _e === void 0 ? void 0 : _e.errors) === null || _f === void 0 ? void 0 : _f[0]) === null || _g === void 0 ? void 0 : _g.message) ||
|
|
@@ -1933,8 +1933,8 @@ const PortalLogin = class {
|
|
|
1933
1933
|
? useLoginDemo(this)
|
|
1934
1934
|
: usePortalLogin(this);
|
|
1935
1935
|
const content = {
|
|
1936
|
-
forgotPasswordButton: (index.h("slot", { name: "forgotPassword" }, index.h("a", { onClick: () => index_module.
|
|
1937
|
-
secondaryButton: (index.h("slot", { name: "secondaryButton" }, index.h("sl-button", { type: "text", disabled: states.loading, onClick: () => index_module.
|
|
1936
|
+
forgotPasswordButton: (index.h("slot", { name: "forgotPassword" }, index.h("a", { onClick: () => index_module.pn.push(states.forgotPasswordPath) }, this.forgotPasswordLabel))),
|
|
1937
|
+
secondaryButton: (index.h("slot", { name: "secondaryButton" }, index.h("sl-button", { type: "text", disabled: states.loading, onClick: () => index_module.pn.push(states.registerPath) }, this.registerLabel))),
|
|
1938
1938
|
emailLabel: this.emailLabel,
|
|
1939
1939
|
passwordLabel: this.passwordLabel,
|
|
1940
1940
|
submitLabel: this.submitLabel,
|
|
@@ -1963,7 +1963,7 @@ function usePortalRegister(props) {
|
|
|
1963
1963
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1964
1964
|
const formRef = stencilHooks_module.useRef(null);
|
|
1965
1965
|
const { registrationFormState, setRegistrationFormState } = useRegistrationFormState.useRegistrationFormState({});
|
|
1966
|
-
const [request, { loading, errors, data }] = index_module.
|
|
1966
|
+
const [request, { loading, errors, data }] = index_module.Ae();
|
|
1967
1967
|
stencilHooks_module.useEffect(() => {
|
|
1968
1968
|
if (!formRef.current)
|
|
1969
1969
|
return;
|
|
@@ -2036,7 +2036,7 @@ function usePortalRegister(props) {
|
|
|
2036
2036
|
validationErrors: {},
|
|
2037
2037
|
});
|
|
2038
2038
|
if ((_a = result.registerManagedIdentityWithEmailAndPassword) === null || _a === void 0 ? void 0 : _a.token) {
|
|
2039
|
-
index_module.
|
|
2039
|
+
index_module.pn.push(props.nextPage);
|
|
2040
2040
|
}
|
|
2041
2041
|
}
|
|
2042
2042
|
catch (error) {
|
|
@@ -2186,7 +2186,7 @@ const PortalRegister = class {
|
|
|
2186
2186
|
: usePortalRegister(this);
|
|
2187
2187
|
const content = {
|
|
2188
2188
|
formData: index.h("slot", { name: "formData" }),
|
|
2189
|
-
secondaryButton: (index.h("slot", { name: "secondaryButton" }, index.h("sl-button", { type: "text", disabled: states.loading, onClick: () => index_module.
|
|
2189
|
+
secondaryButton: (index.h("slot", { name: "secondaryButton" }, index.h("sl-button", { type: "text", disabled: states.loading, onClick: () => index_module.pn.push(states.loginPath) }, this.loginLabel))),
|
|
2190
2190
|
terms: index.h("slot", { name: "terms" }),
|
|
2191
2191
|
emailLabel: this.emailLabel,
|
|
2192
2192
|
passwordLabel: this.passwordLabel,
|
|
@@ -2351,11 +2351,11 @@ const ProgramExplainerStep = class {
|
|
|
2351
2351
|
const debug = stencilHooks_module.browser("sq:useProgramMenu");
|
|
2352
2352
|
const UPDATE_PROGRAM_EVENT = "sq:update-program-id";
|
|
2353
2353
|
function useProgramMenu(props) {
|
|
2354
|
-
const programId = index_module.
|
|
2355
|
-
const host = index_module.
|
|
2354
|
+
const programId = index_module.N();
|
|
2355
|
+
const host = index_module.x();
|
|
2356
2356
|
debug({ programId, props });
|
|
2357
2357
|
const ref = stencilHooks_module.useRef();
|
|
2358
|
-
const [, rerender] = index_module.
|
|
2358
|
+
const [, rerender] = index_module.ln();
|
|
2359
2359
|
stencilHooks_module.useEffect(() => {
|
|
2360
2360
|
var _a;
|
|
2361
2361
|
(_a = ref.current) === null || _a === void 0 ? void 0 : _a.addEventListener("sl-select", (e) => {
|
|
@@ -2533,9 +2533,9 @@ const GET_USER_DETAILS = index_module.dist.gql `
|
|
|
2533
2533
|
`;
|
|
2534
2534
|
function useReferralIframe(props) {
|
|
2535
2535
|
var _a;
|
|
2536
|
-
const programId = index_module.
|
|
2537
|
-
const user = index_module.
|
|
2538
|
-
const { data } = index_module.
|
|
2536
|
+
const programId = index_module.N();
|
|
2537
|
+
const user = index_module.U();
|
|
2538
|
+
const { data } = index_module.vn(GET_USER_DETAILS, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt) || !programId);
|
|
2539
2539
|
return {
|
|
2540
2540
|
states: {
|
|
2541
2541
|
content: props,
|
|
@@ -3260,9 +3260,9 @@ function useRewardExchangeList(props) {
|
|
|
3260
3260
|
});
|
|
3261
3261
|
const [open, setOpen] = stencilHooks_module.useState(false);
|
|
3262
3262
|
const { selectedItem, selectedStep, redeemStage, amount, exchangeError } = exchangeState;
|
|
3263
|
-
const user = index_module.
|
|
3264
|
-
const [exchange, { data: exchangeResponse, loading: exchangeLoading, errors },] = index_module.
|
|
3265
|
-
const { data, loading, refetch, errors: queryError, } = index_module.
|
|
3263
|
+
const user = index_module.U();
|
|
3264
|
+
const [exchange, { data: exchangeResponse, loading: exchangeLoading, errors },] = index_module.Ee(EXCHANGE);
|
|
3265
|
+
const { data, loading, refetch, errors: queryError, } = index_module.vn(GET_EXCHANGE_LIST, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
3266
3266
|
stencilHooks_module.useEffect(() => {
|
|
3267
3267
|
var _a, _b;
|
|
3268
3268
|
if ((_b = (_a = exchangeResponse === null || exchangeResponse === void 0 ? void 0 : exchangeResponse.exchangeReward) === null || _a === void 0 ? void 0 : _a.reward) === null || _b === void 0 ? void 0 : _b.id) {
|
|
@@ -3281,7 +3281,7 @@ function useRewardExchangeList(props) {
|
|
|
3281
3281
|
canvas.confetti || confetti.create(canvas, { resize: true });
|
|
3282
3282
|
canvas.confetti();
|
|
3283
3283
|
}, [canvasRef.current]);
|
|
3284
|
-
const { refresh } = index_module.
|
|
3284
|
+
const { refresh } = index_module.Le();
|
|
3285
3285
|
async function exchangeReward() {
|
|
3286
3286
|
if (!selectedItem)
|
|
3287
3287
|
return;
|
|
@@ -3589,8 +3589,8 @@ function matchPath(pattern, page) {
|
|
|
3589
3589
|
return regexp.exec(page);
|
|
3590
3590
|
}
|
|
3591
3591
|
function useRouter() {
|
|
3592
|
-
const location = index_module.
|
|
3593
|
-
const host = index_module.
|
|
3592
|
+
const location = index_module.gn();
|
|
3593
|
+
const host = index_module.x();
|
|
3594
3594
|
const [slot, setSlot] = stencilHooks_module.useState(undefined);
|
|
3595
3595
|
const [container, setContainer] = stencilHooks_module.useState(undefined);
|
|
3596
3596
|
const page = location.pathname;
|
|
@@ -3841,11 +3841,11 @@ const WIDGET_ENGAGEMENT_EVENT$1 = index_module.dist.gql `
|
|
|
3841
3841
|
`;
|
|
3842
3842
|
function useShareCode(props) {
|
|
3843
3843
|
var _a, _b;
|
|
3844
|
-
const { programId = index_module.
|
|
3845
|
-
const user = index_module.
|
|
3846
|
-
const engagementMedium = index_module.
|
|
3847
|
-
const { data } = index_module.
|
|
3848
|
-
const [sendLoadEvent] = index_module.
|
|
3844
|
+
const { programId = index_module.N() } = props;
|
|
3845
|
+
const user = index_module.U();
|
|
3846
|
+
const engagementMedium = index_module.J();
|
|
3847
|
+
const { data } = index_module.vn(MessageLinkQuery, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
3848
|
+
const [sendLoadEvent] = index_module.Ee(WIDGET_ENGAGEMENT_EVENT$1);
|
|
3849
3849
|
const copyString = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.referralCode) !== null && _b !== void 0 ? _b :
|
|
3850
3850
|
// Shown during loading
|
|
3851
3851
|
"...";
|
|
@@ -4070,10 +4070,10 @@ const SEND_EVENT = index_module.dist.gql `
|
|
|
4070
4070
|
}
|
|
4071
4071
|
`;
|
|
4072
4072
|
function useTaskCard(props) {
|
|
4073
|
-
const user = index_module.
|
|
4074
|
-
const locale = index_module.
|
|
4075
|
-
const [sendUserEvent, { data, loading: loadingEvent }] = index_module.
|
|
4076
|
-
const { refresh } = index_module.
|
|
4073
|
+
const user = index_module.U();
|
|
4074
|
+
const locale = index_module.W();
|
|
4075
|
+
const [sendUserEvent, { data, loading: loadingEvent }] = index_module.Ee(SEND_EVENT);
|
|
4076
|
+
const { refresh } = index_module.Le();
|
|
4077
4077
|
stencilHooks_module.useEffect(() => {
|
|
4078
4078
|
if (data) {
|
|
4079
4079
|
refresh();
|
|
@@ -4394,8 +4394,8 @@ const GET_USER_NAME = index_module.dist.gql `
|
|
|
4394
4394
|
`;
|
|
4395
4395
|
function useUserName(props) {
|
|
4396
4396
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
4397
|
-
const user = index_module.
|
|
4398
|
-
const res = index_module.
|
|
4397
|
+
const user = index_module.U();
|
|
4398
|
+
const res = index_module.vn(GET_USER_NAME, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
4399
4399
|
const loading = res.loading;
|
|
4400
4400
|
const username = ((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.firstName) || ((_d = (_c = res.data) === null || _c === void 0 ? void 0 : _c.viewer) === null || _d === void 0 ? void 0 : _d.lastName)
|
|
4401
4401
|
? `${(_f = (_e = res.data) === null || _e === void 0 ? void 0 : _e.viewer) === null || _f === void 0 ? void 0 : _f.firstName} ${(_h = (_g = res.data) === null || _g === void 0 ? void 0 : _g.viewer) === null || _h === void 0 ? void 0 : _h.lastName}`
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
6
|
const stencilHooks_module = require('./stencil-hooks.module-e4bf7f2d.js');
|
|
7
|
-
const index_module = require('./index.module-
|
|
7
|
+
const index_module = require('./index.module-8562f350.js');
|
|
8
8
|
require('./mixins-fe9d4112.js');
|
|
9
9
|
require('./JSS-8503a151.js');
|
|
10
10
|
const sqmCloseButtonView = require('./sqm-close-button-view-fd6e8f60.js');
|
|
@@ -4,15 +4,15 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
6
|
const stencilHooks_module = require('./stencil-hooks.module-e4bf7f2d.js');
|
|
7
|
-
const index_module = require('./index.module-
|
|
7
|
+
const index_module = require('./index.module-8562f350.js');
|
|
8
8
|
|
|
9
9
|
async function useGraphQLClientProvider({ domain }) {
|
|
10
|
-
const token = index_module.
|
|
10
|
+
const token = index_module.H();
|
|
11
11
|
const appDomain = domain;
|
|
12
|
-
const tenantAlias = index_module.
|
|
12
|
+
const tenantAlias = index_module.L();
|
|
13
13
|
// Memoization is shared. One client per domain, tenant and token (or null)
|
|
14
|
-
const managedIdentityClient = index_module.
|
|
15
|
-
const [, setGraphQLClient] = stencilHooks_module.m(index_module.
|
|
14
|
+
const managedIdentityClient = index_module.be(appDomain, tenantAlias, token);
|
|
15
|
+
const [, setGraphQLClient] = stencilHooks_module.m(index_module.Ce, managedIdentityClient);
|
|
16
16
|
stencilHooks_module.useEffect(() => {
|
|
17
17
|
setGraphQLClient(managedIdentityClient);
|
|
18
18
|
}, [managedIdentityClient]);
|
|
@@ -4,14 +4,14 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
6
|
const stencilHooks_module = require('./stencil-hooks.module-e4bf7f2d.js');
|
|
7
|
-
const index_module = require('./index.module-
|
|
7
|
+
const index_module = require('./index.module-8562f350.js');
|
|
8
8
|
require('./jsonpointer-11327262.js');
|
|
9
9
|
const cjs = require('./cjs-1066ec21.js');
|
|
10
10
|
require('./mixins-fe9d4112.js');
|
|
11
11
|
require('./JSS-8503a151.js');
|
|
12
12
|
const emailRegistrationView = require('./email-registration-view-a6b6430e.js');
|
|
13
|
-
require('./useRegistrationFormState-
|
|
14
|
-
const useInstantAccessRegistration = require('./useInstantAccessRegistration-
|
|
13
|
+
require('./useRegistrationFormState-7b557a04.js');
|
|
14
|
+
const useInstantAccessRegistration = require('./useInstantAccessRegistration-27a20410.js');
|
|
15
15
|
|
|
16
16
|
const InstantAccessRegistration = class {
|
|
17
17
|
constructor(hostRef) {
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
6
|
const stencilHooks_module = require('./stencil-hooks.module-e4bf7f2d.js');
|
|
7
|
-
const global = require('./global-
|
|
8
|
-
const index_module = require('./index.module-
|
|
7
|
+
const global = require('./global-be9af765.js');
|
|
8
|
+
const index_module = require('./index.module-8562f350.js');
|
|
9
9
|
const cjs = require('./cjs-1066ec21.js');
|
|
10
10
|
const sqmLeaderboardRankView = require('./sqm-leaderboard-rank-view-5a3d4a88.js');
|
|
11
11
|
|
|
@@ -24,10 +24,10 @@ const GET_RANK = index_module.dist.gql `
|
|
|
24
24
|
`;
|
|
25
25
|
function useLeaderboardRank(props) {
|
|
26
26
|
var _a, _b, _c, _d;
|
|
27
|
-
const programIdContext = index_module.
|
|
27
|
+
const programIdContext = index_module.N();
|
|
28
28
|
// Default to context, overriden by props
|
|
29
29
|
const programId = (_a = props.programId) !== null && _a !== void 0 ? _a : programIdContext;
|
|
30
|
-
const user = index_module.
|
|
30
|
+
const user = index_module.U();
|
|
31
31
|
const rankVariables = programId
|
|
32
32
|
? {
|
|
33
33
|
type: props.leaderboardType,
|
|
@@ -40,7 +40,7 @@ function useLeaderboardRank(props) {
|
|
|
40
40
|
if (props.interval) {
|
|
41
41
|
rankVariables.filter["interval"] = props.interval;
|
|
42
42
|
}
|
|
43
|
-
const { data: rankData } = index_module.
|
|
43
|
+
const { data: rankData } = index_module.vn(GET_RANK, rankVariables, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
44
44
|
const fullRankText = ((_b = rankData === null || rankData === void 0 ? void 0 : rankData.viewer) === null || _b === void 0 ? void 0 : _b.leaderboardRank) ? global.intl.formatMessage({ id: "rankText", defaultMessage: props.rankText }, {
|
|
45
45
|
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],
|
|
46
46
|
})
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
6
|
const stencilHooks_module = require('./stencil-hooks.module-e4bf7f2d.js');
|
|
7
|
-
const index_module = require('./index.module-
|
|
7
|
+
const index_module = require('./index.module-8562f350.js');
|
|
8
8
|
const cjs = require('./cjs-1066ec21.js');
|
|
9
9
|
require('./JSS-8503a151.js');
|
|
10
10
|
const utils = require('./utils-6847bc06.js');
|
|
@@ -21,8 +21,8 @@ const GET_USER_DETAILS = index_module.dist.gql `
|
|
|
21
21
|
`;
|
|
22
22
|
function useLogoutCurrentUser(props) {
|
|
23
23
|
var _a, _b;
|
|
24
|
-
const user = index_module.
|
|
25
|
-
const { loading, data } = index_module.
|
|
24
|
+
const user = index_module.U();
|
|
25
|
+
const { loading, data } = index_module.vn(GET_USER_DETAILS, {
|
|
26
26
|
id: user === null || user === void 0 ? void 0 : user.id,
|
|
27
27
|
accountId: user === null || user === void 0 ? void 0 : user.accountId,
|
|
28
28
|
}, !user);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const index = require('./index-b0129cd6.js');
|
|
4
|
-
const index_module = require('./index.module-
|
|
4
|
+
const index_module = require('./index.module-8562f350.js');
|
|
5
5
|
const mixins = require('./mixins-fe9d4112.js');
|
|
6
6
|
const JSS = require('./JSS-8503a151.js');
|
|
7
7
|
|
|
@@ -35,7 +35,7 @@ function NavigationSidebarItemView(props) {
|
|
|
35
35
|
const styleString = sheet.toString();
|
|
36
36
|
return (index.h("a", { part: "sqm-link", href: data.path, onClick: (e) => {
|
|
37
37
|
e.preventDefault();
|
|
38
|
-
index_module.
|
|
38
|
+
index_module.pn.push(data.path);
|
|
39
39
|
}, class: sheet.classes.ItemContainer },
|
|
40
40
|
index.h("style", { type: "text/css" }, styleString),
|
|
41
41
|
index.h("sl-icon", { class: sheet.classes.Icon, name: data.icon }),
|
|
@@ -4,15 +4,15 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
6
|
const stencilHooks_module = require('./stencil-hooks.module-e4bf7f2d.js');
|
|
7
|
-
const index_module = require('./index.module-
|
|
7
|
+
const index_module = require('./index.module-8562f350.js');
|
|
8
8
|
const cjs = require('./cjs-1066ec21.js');
|
|
9
9
|
require('./mixins-fe9d4112.js');
|
|
10
10
|
require('./JSS-8503a151.js');
|
|
11
11
|
const utils = require('./utils-6847bc06.js');
|
|
12
|
-
const sqmNavigationSidebarItemView = require('./sqm-navigation-sidebar-item-view-
|
|
12
|
+
const sqmNavigationSidebarItemView = require('./sqm-navigation-sidebar-item-view-28578dce.js');
|
|
13
13
|
|
|
14
14
|
function useNavigationSidebarItem(props) {
|
|
15
|
-
const currentPage = index_module.
|
|
15
|
+
const currentPage = index_module.gn();
|
|
16
16
|
return {
|
|
17
17
|
states: {
|
|
18
18
|
active: currentPage.pathname === props.path,
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
6
|
const stencilHooks_module = require('./stencil-hooks.module-e4bf7f2d.js');
|
|
7
|
-
const index_module = require('./index.module-
|
|
7
|
+
const index_module = require('./index.module-8562f350.js');
|
|
8
8
|
const sqmNavigationSidebarView = require('./sqm-navigation-sidebar-view-dd53f947.js');
|
|
9
9
|
|
|
10
10
|
const NavigationSidebar = class {
|
|
@@ -20,8 +20,8 @@ const NavigationSidebar = class {
|
|
|
20
20
|
}
|
|
21
21
|
};
|
|
22
22
|
function useNavigationSidebar() {
|
|
23
|
-
const location = index_module.
|
|
24
|
-
const programId = index_module.
|
|
23
|
+
const location = index_module.gn();
|
|
24
|
+
const programId = index_module.N();
|
|
25
25
|
const [checked, setChecked] = stencilHooks_module.useState(false);
|
|
26
26
|
// Close hamburger menu after navigation
|
|
27
27
|
stencilHooks_module.useEffect(() => {
|
|
@@ -4,11 +4,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
6
|
const stencilHooks_module = require('./stencil-hooks.module-e4bf7f2d.js');
|
|
7
|
-
const index_module = require('./index.module-
|
|
7
|
+
const index_module = require('./index.module-8562f350.js');
|
|
8
8
|
const cjs = require('./cjs-1066ec21.js');
|
|
9
9
|
const mixins = require('./mixins-fe9d4112.js');
|
|
10
10
|
const JSS = require('./JSS-8503a151.js');
|
|
11
|
-
const useRegistrationFormState = require('./useRegistrationFormState-
|
|
11
|
+
const useRegistrationFormState = require('./useRegistrationFormState-7b557a04.js');
|
|
12
12
|
|
|
13
13
|
var constants = {
|
|
14
14
|
error: {
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
6
|
const stencilHooks_module = require('./stencil-hooks.module-e4bf7f2d.js');
|
|
7
|
-
const index_module = require('./index.module-
|
|
7
|
+
const index_module = require('./index.module-8562f350.js');
|
|
8
8
|
const utils = require('./utils-6847bc06.js');
|
|
9
9
|
|
|
10
10
|
const PopupContainerView = (props) => {
|
|
@@ -18,10 +18,10 @@ const PopupContainerView = (props) => {
|
|
|
18
18
|
};
|
|
19
19
|
|
|
20
20
|
function usePopupContainer(props) {
|
|
21
|
-
const engagementMedium = index_module.
|
|
21
|
+
const engagementMedium = index_module.J();
|
|
22
22
|
function closePopup() {
|
|
23
23
|
var _a;
|
|
24
|
-
if (index_module.
|
|
24
|
+
if (index_module.J() === "POPUP") {
|
|
25
25
|
(_a = window.frameElement["squatchJsApi"]) === null || _a === void 0 ? void 0 : _a.close();
|
|
26
26
|
}
|
|
27
27
|
}
|
|
@@ -35,7 +35,7 @@ function usePopupContainer(props) {
|
|
|
35
35
|
? "0"
|
|
36
36
|
: `var(--sl-spacing-${props.embedPadding})`
|
|
37
37
|
: "0";
|
|
38
|
-
const padding = index_module.
|
|
38
|
+
const padding = index_module.J() === "POPUP" ? popupPadding : embedPadding;
|
|
39
39
|
return {
|
|
40
40
|
states: {
|
|
41
41
|
showCloseButton: props.closeButton && engagementMedium === "POPUP",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const index = require('./index-b0129cd6.js');
|
|
4
|
-
const global = require('./global-
|
|
4
|
+
const global = require('./global-be9af765.js');
|
|
5
5
|
const mixins = require('./mixins-fe9d4112.js');
|
|
6
6
|
const JSS = require('./JSS-8503a151.js');
|
|
7
7
|
const sqmTextSpanView = require('./sqm-text-span-view-e1cd9bd3.js');
|
|
@@ -4,21 +4,21 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
6
|
const stencilHooks_module = require('./stencil-hooks.module-e4bf7f2d.js');
|
|
7
|
-
require('./global-
|
|
8
|
-
const index_module = require('./index.module-
|
|
7
|
+
require('./global-be9af765.js');
|
|
8
|
+
const index_module = require('./index.module-8562f350.js');
|
|
9
9
|
const cjs = require('./cjs-1066ec21.js');
|
|
10
10
|
require('./mixins-fe9d4112.js');
|
|
11
11
|
require('./JSS-8503a151.js');
|
|
12
12
|
require('./sqm-text-span-view-e1cd9bd3.js');
|
|
13
|
-
const sqmPortalEmailVerificationView = require('./sqm-portal-email-verification-view-
|
|
13
|
+
const sqmPortalEmailVerificationView = require('./sqm-portal-email-verification-view-077c12f7.js');
|
|
14
14
|
|
|
15
15
|
function usePortalEmailVerification(props) {
|
|
16
16
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
17
|
-
const [request, { loading, data, errors }] = index_module.
|
|
18
|
-
const [getVerificationStatus, { data: user, loading: loadingVerification }] = index_module.
|
|
19
|
-
const userIdent = index_module.
|
|
17
|
+
const [request, { loading, data, errors }] = index_module.sn();
|
|
18
|
+
const [getVerificationStatus, { data: user, loading: loadingVerification }] = index_module.Ze();
|
|
19
|
+
const userIdent = index_module.U();
|
|
20
20
|
const email = (_a = userIdent === null || userIdent === void 0 ? void 0 : userIdent.managedIdentity) === null || _a === void 0 ? void 0 : _a.email;
|
|
21
|
-
const urlParams = new URLSearchParams(index_module.
|
|
21
|
+
const urlParams = new URLSearchParams(index_module.pn.location.search);
|
|
22
22
|
const nextPage = urlParams.get("nextPage");
|
|
23
23
|
const [success, setSuccess] = stencilHooks_module.useState(false);
|
|
24
24
|
const [error, setError] = stencilHooks_module.useState("");
|
|
@@ -48,7 +48,7 @@ function usePortalEmailVerification(props) {
|
|
|
48
48
|
const data = (await getVerificationStatus());
|
|
49
49
|
if ((_a = data === null || data === void 0 ? void 0 : data.managedIdentitySession) === null || _a === void 0 ? void 0 : _a.emailVerified) {
|
|
50
50
|
clearInterval(timerRef.current);
|
|
51
|
-
return index_module.
|
|
51
|
+
return index_module.pn.push({
|
|
52
52
|
pathname: props.redirectPath,
|
|
53
53
|
search: urlParams.toString() && "?" + urlParams.toString(),
|
|
54
54
|
});
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
6
|
const stencilHooks_module = require('./stencil-hooks.module-e4bf7f2d.js');
|
|
7
|
-
const index_module = require('./index.module-
|
|
7
|
+
const index_module = require('./index.module-8562f350.js');
|
|
8
8
|
const jsonpointer = require('./jsonpointer-11327262.js');
|
|
9
9
|
const cjs = require('./cjs-1066ec21.js');
|
|
10
10
|
require('./mixins-fe9d4112.js');
|
|
@@ -16,8 +16,8 @@ function usePortalForgotPassword(props) {
|
|
|
16
16
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
17
17
|
const [success, setSuccess] = stencilHooks_module.useState(false);
|
|
18
18
|
const [error, setError] = stencilHooks_module.useState("");
|
|
19
|
-
const [request, { loading, data, errors }] = index_module.
|
|
20
|
-
const urlParams = new URLSearchParams(index_module.
|
|
19
|
+
const [request, { loading, data, errors }] = index_module.tn();
|
|
20
|
+
const urlParams = new URLSearchParams(index_module.pn.location.search);
|
|
21
21
|
const nextPage = urlParams.get("nextPage");
|
|
22
22
|
const submit = async (event) => {
|
|
23
23
|
var _a;
|
|
@@ -97,7 +97,7 @@ const PortalForgotPassword = class {
|
|
|
97
97
|
? usePortalForgotPasswordDemo(this)
|
|
98
98
|
: usePortalForgotPassword(this);
|
|
99
99
|
const content = {
|
|
100
|
-
secondaryButton: (index.h("slot", { name: "secondaryButton" }, index.h("sl-button", { type: "text", disabled: states.loading, onClick: () => index_module.
|
|
100
|
+
secondaryButton: (index.h("slot", { name: "secondaryButton" }, index.h("sl-button", { type: "text", disabled: states.loading, onClick: () => index_module.pn.push(states.loginPath) }, "Sign In"))),
|
|
101
101
|
messageSlot: (index.h("slot", { name: "messageSlot" }, "Enter your email below to receive a password reset link.")),
|
|
102
102
|
emailLabel: this.emailLabel,
|
|
103
103
|
submitLabel: this.submitLabel,
|
|
@@ -4,11 +4,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
6
|
const stencilHooks_module = require('./stencil-hooks.module-e4bf7f2d.js');
|
|
7
|
-
const index_module = require('./index.module-
|
|
7
|
+
const index_module = require('./index.module-8562f350.js');
|
|
8
8
|
|
|
9
9
|
function usePortalLogout({ nextPage }) {
|
|
10
10
|
index_module.setUserIdentity(undefined);
|
|
11
|
-
index_module.
|
|
11
|
+
index_module.pn.push({ pathname: nextPage, search: "" });
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
const PortalLogout = class {
|
package/dist/cjs/{sqm-portal-profile-view-13a1229f.js → sqm-portal-profile-view-b3d1e0f7.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const index = require('./index-b0129cd6.js');
|
|
4
|
-
const global = require('./global-
|
|
4
|
+
const global = require('./global-be9af765.js');
|
|
5
5
|
const JSS = require('./JSS-8503a151.js');
|
|
6
6
|
const sqmTextSpanView = require('./sqm-text-span-view-e1cd9bd3.js');
|
|
7
7
|
|