@saasquatch/mint-components 1.12.1-19 → 1.12.1-20
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-9aee7df5.js → ShadowViewAddon-e7d97410.js} +12 -12
- package/dist/cjs/{global-41c0a650.js → global-02e50f09.js} +1 -1
- package/dist/cjs/{index.module-d8342710.js → index.module-df530553.js} +10 -12
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/mint-components.cjs.js +2 -2
- package/dist/cjs/{re-render-dd8d65bf.js → re-render-1976e05e.js} +2 -2
- package/dist/cjs/sqm-asset-card.cjs.entry.js +1 -1
- package/dist/cjs/sqm-banking-info-form_16.cjs.entry.js +51 -51
- package/dist/cjs/sqm-big-stat_40.cjs.entry.js +42 -42
- package/dist/cjs/sqm-close-button.cjs.entry.js +1 -1
- package/dist/cjs/sqm-context-router.cjs.entry.js +1 -1
- package/dist/cjs/sqm-empty_4.cjs.entry.js +2 -2
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +3 -3
- package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-invoice-table-view-41a0b707.js → sqm-invoice-table-view-e3b03a00.js} +1 -1
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +4 -4
- package/dist/cjs/sqm-logout-current-user.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-navigation-sidebar-item-view-5f7886d6.js → sqm-navigation-sidebar-item-view-a125ec5f.js} +2 -2
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +3 -3
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +2 -2
- package/dist/cjs/sqm-password-field.cjs.entry.js +2 -2
- package/dist/cjs/sqm-popup-container.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-portal-email-verification-view-56fabc90.js → sqm-portal-email-verification-view-292b5bf4.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +6 -6
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +3 -3
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-profile-view-7c9c60a6.js → sqm-portal-profile-view-fde54e35.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 +5 -5
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +5 -5
- 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 +8 -8
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +49 -49
- package/dist/cjs/sqm-tab.cjs.entry.js +2 -2
- package/dist/cjs/sqm-tabs.cjs.entry.js +3 -3
- package/dist/cjs/{useChildElements-57e11069.js → useChildElements-e0d44916.js} +1 -1
- package/dist/cjs/{useInstantAccessRegistration-14ccf9d4.js → useInstantAccessRegistration-bbe746d1.js} +3 -3
- package/dist/cjs/{useReferralTable-ef36b29e.js → useReferralTable-a76adb0d.js} +7 -7
- package/dist/cjs/{useRegistrationFormState-7d608337.js → useRegistrationFormState-876ed65d.js} +1 -1
- package/dist/cjs/{utilities-7df0fdad.js → utilities-cec9dd36.js} +1 -1
- package/dist/esm/{ShadowViewAddon-cadd38e4.js → ShadowViewAddon-149b4015.js} +12 -12
- package/dist/esm/{global-c1e70cb2.js → global-04c7d3b5.js} +1 -1
- package/dist/esm/{index.module-3344e7dc.js → index.module-def4aec5.js} +2 -4
- package/dist/esm/loader.js +2 -2
- package/dist/esm/mint-components.js +2 -2
- package/dist/esm/{re-render-29151677.js → re-render-12fd274a.js} +2 -2
- package/dist/esm/sqm-asset-card.entry.js +1 -1
- package/dist/esm/sqm-banking-info-form_16.entry.js +51 -51
- package/dist/esm/sqm-big-stat_40.entry.js +42 -42
- package/dist/esm/sqm-close-button.entry.js +1 -1
- package/dist/esm/sqm-context-router.entry.js +1 -1
- package/dist/esm/sqm-empty_4.entry.js +2 -2
- package/dist/esm/sqm-graphql-client-provider.entry.js +3 -3
- package/dist/esm/sqm-instant-access-registration.entry.js +3 -3
- package/dist/esm/{sqm-invoice-table-view-eb4b3f63.js → sqm-invoice-table-view-6e13a323.js} +1 -1
- package/dist/esm/sqm-leaderboard-rank.entry.js +4 -4
- package/dist/esm/sqm-logout-current-user.entry.js +3 -3
- package/dist/esm/{sqm-navigation-sidebar-item-view-08e47843.js → sqm-navigation-sidebar-item-view-60ef06cc.js} +2 -2
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +3 -3
- package/dist/esm/sqm-navigation-sidebar.entry.js +2 -2
- package/dist/esm/sqm-password-field.entry.js +2 -2
- package/dist/esm/sqm-popup-container.entry.js +1 -1
- package/dist/esm/{sqm-portal-email-verification-view-52a45f66.js → sqm-portal-email-verification-view-4307c992.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +6 -6
- package/dist/esm/sqm-portal-forgot-password.entry.js +3 -3
- package/dist/esm/sqm-portal-logout.entry.js +2 -2
- package/dist/esm/{sqm-portal-profile-view-4810da8a.js → sqm-portal-profile-view-ffe955c8.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 +5 -5
- package/dist/esm/sqm-portal-verify-email.entry.js +5 -5
- 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 +8 -8
- package/dist/esm/sqm-stencilbook.entry.js +49 -49
- package/dist/esm/sqm-tab.entry.js +2 -2
- package/dist/esm/sqm-tabs.entry.js +3 -3
- package/dist/esm/{useChildElements-cc98d6c4.js → useChildElements-32e1bda1.js} +1 -1
- package/dist/esm/{useInstantAccessRegistration-e95685e5.js → useInstantAccessRegistration-46b89952.js} +3 -3
- package/dist/esm/{useReferralTable-f1ffc72e.js → useReferralTable-f4de0650.js} +7 -7
- package/dist/esm/{useRegistrationFormState-4151cec4.js → useRegistrationFormState-9fc1ac80.js} +1 -1
- package/dist/esm/{utilities-4d60af2c.js → utilities-3f5bba22.js} +1 -1
- package/dist/esm-es5/{ShadowViewAddon-cadd38e4.js → ShadowViewAddon-149b4015.js} +1 -1
- package/dist/esm-es5/{global-c1e70cb2.js → global-04c7d3b5.js} +1 -1
- package/dist/esm-es5/index.module-def4aec5.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/{re-render-29151677.js → re-render-12fd274a.js} +1 -1
- package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
- package/dist/esm-es5/sqm-banking-info-form_16.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_40.entry.js +1 -1
- package/dist/esm-es5/sqm-close-button.entry.js +1 -1
- package/dist/esm-es5/sqm-context-router.entry.js +1 -1
- package/dist/esm-es5/sqm-empty_4.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-invoice-table-view-eb4b3f63.js → sqm-invoice-table-view-6e13a323.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-60ef06cc.js +1 -0
- 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-52a45f66.js → sqm-portal-email-verification-view-4307c992.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-4810da8a.js → sqm-portal-profile-view-ffe955c8.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-cc98d6c4.js → useChildElements-32e1bda1.js} +1 -1
- package/dist/esm-es5/useInstantAccessRegistration-46b89952.js +1 -0
- package/dist/esm-es5/{useReferralTable-f1ffc72e.js → useReferralTable-f4de0650.js} +1 -1
- package/dist/esm-es5/{useRegistrationFormState-4151cec4.js → useRegistrationFormState-9fc1ac80.js} +1 -1
- package/dist/esm-es5/{utilities-4d60af2c.js → utilities-3f5bba22.js} +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/{p-63b5126d.system.entry.js → p-01cfff8a.system.entry.js} +1 -1
- package/dist/mint-components/{p-36332fc7.entry.js → p-021a735d.entry.js} +1 -1
- package/dist/mint-components/{p-0f65c86c.system.js → p-02424350.system.js} +1 -1
- package/dist/mint-components/p-03494732.entry.js +1 -0
- package/dist/mint-components/{p-f58c7201.system.entry.js → p-07f675ab.system.entry.js} +1 -1
- package/dist/mint-components/p-0b9fa97f.js +1 -0
- package/dist/mint-components/{p-45b1b2be.system.js → p-0d8c53ac.system.js} +1 -1
- package/dist/mint-components/p-10e89d0a.entry.js +1 -0
- package/dist/mint-components/{p-bb873ddd.entry.js → p-137ea86e.entry.js} +1 -1
- package/dist/mint-components/{p-9e62ac1f.system.entry.js → p-1bfc8eb0.system.entry.js} +1 -1
- package/dist/mint-components/p-1c857edb.entry.js +33 -0
- package/dist/mint-components/{p-fe163a23.system.entry.js → p-1dd69917.system.entry.js} +1 -1
- package/dist/mint-components/{p-1064099e.entry.js → p-2dd67762.entry.js} +1 -1
- package/dist/mint-components/{p-051dd2a0.js → p-2ee2ebba.js} +2 -2
- package/dist/mint-components/{p-29a80f6e.entry.js → p-3223ba7b.entry.js} +1 -1
- package/dist/mint-components/{p-7a33cd80.entry.js → p-32d1d162.entry.js} +1 -1
- package/dist/mint-components/{p-6a4b1ec0.system.entry.js → p-35d84041.system.entry.js} +1 -1
- package/dist/mint-components/{p-8833552d.system.js → p-3d4656bb.system.js} +1 -1
- package/dist/mint-components/{p-fa160846.entry.js → p-3ec16698.entry.js} +2 -2
- package/dist/mint-components/{p-920641bf.js → p-41a11a7f.js} +1 -1
- package/dist/mint-components/{p-b8fff589.system.js → p-44787d6e.system.js} +1 -1
- package/dist/mint-components/{p-5bdf586c.system.entry.js → p-4502ed11.system.entry.js} +1 -1
- package/dist/mint-components/{p-e10b0628.js → p-4d233cd4.js} +1 -1
- package/dist/mint-components/{p-a8ebb87a.system.js → p-4df8f1d2.system.js} +1 -1
- package/dist/mint-components/{p-f093ed85.system.entry.js → p-4ea58025.system.entry.js} +1 -1
- package/dist/mint-components/{p-6c9eb87a.entry.js → p-4edde470.entry.js} +1 -1
- package/dist/mint-components/p-51f517a2.js +1 -0
- package/dist/mint-components/{p-4c6c314b.entry.js → p-56f14840.entry.js} +1 -1
- package/dist/mint-components/{p-b9cab58d.system.entry.js → p-58ef25d3.system.entry.js} +1 -1
- package/dist/mint-components/{p-c588e9c1.system.js → p-59fe4ad1.system.js} +1 -1
- package/dist/mint-components/{p-3edd4ea8.system.entry.js → p-5b333fa8.system.entry.js} +1 -1
- package/dist/mint-components/p-5be235f9.entry.js +1 -0
- package/dist/mint-components/{p-1ca1ca86.system.entry.js → p-5cac90e8.system.entry.js} +1 -1
- package/dist/mint-components/{p-40ad6540.system.entry.js → p-5f1c4160.system.entry.js} +1 -1
- package/dist/mint-components/{p-c810bcfc.js → p-61eab172.js} +1 -1
- package/dist/mint-components/{p-99b2ff9c.system.js → p-674a64fe.system.js} +1 -1
- package/dist/mint-components/{p-4893f186.entry.js → p-6cef104b.entry.js} +1 -1
- package/dist/mint-components/{p-063f4458.entry.js → p-6f6a6518.entry.js} +8 -8
- package/dist/mint-components/{p-cb029418.entry.js → p-7049e9b0.entry.js} +1 -1
- package/dist/mint-components/{p-00aa314d.system.entry.js → p-711ba77e.system.entry.js} +1 -1
- package/dist/mint-components/{p-67a8b7ae.system.js → p-770368bc.system.js} +1 -1
- package/dist/mint-components/{p-ebab1714.system.entry.js → p-7731f793.system.entry.js} +1 -1
- package/dist/mint-components/{p-ae72631b.entry.js → p-79186b05.entry.js} +2 -2
- package/dist/mint-components/p-79191f88.entry.js +1 -0
- package/dist/mint-components/{p-b758d962.system.entry.js → p-7c6c96e2.system.entry.js} +1 -1
- package/dist/mint-components/p-7f088154.entry.js +1 -0
- package/dist/mint-components/{p-0c06a6f5.system.entry.js → p-8679ed9f.system.entry.js} +1 -1
- package/dist/mint-components/{p-fcf7f4c1.entry.js → p-86990110.entry.js} +1 -1
- package/dist/mint-components/{p-eb64a65f.js → p-8704937c.js} +1 -1
- package/dist/mint-components/p-8b5b78ca.entry.js +1 -0
- package/dist/mint-components/p-8e907ac7.system.entry.js +1 -0
- package/dist/mint-components/p-91669312.entry.js +1 -0
- package/dist/mint-components/{p-cd326a35.system.entry.js → p-9c310991.system.entry.js} +1 -1
- package/dist/mint-components/{p-17c59360.system.entry.js → p-9f0629ba.system.entry.js} +1 -1
- package/dist/mint-components/{p-19c94256.system.entry.js → p-a1dba9a1.system.entry.js} +1 -1
- package/dist/mint-components/p-a6a7dcaa.js +1 -0
- package/dist/mint-components/{p-ad8dbab8.system.entry.js → p-a7c2ced2.system.entry.js} +1 -1
- package/dist/mint-components/p-a8f7cb95.js +1 -0
- package/dist/mint-components/{p-ac1fb0c4.entry.js → p-a9050eb0.entry.js} +1 -1
- package/dist/mint-components/{p-d2389ef4.entry.js → p-aad11a68.entry.js} +1 -1
- package/dist/mint-components/{p-0afb7d5d.system.js → p-ace06b9b.system.js} +1 -1
- package/dist/mint-components/{p-db0d4d3a.system.entry.js → p-af062c8f.system.entry.js} +1 -1
- package/dist/mint-components/{p-6e50122b.system.entry.js → p-afd366ae.system.entry.js} +1 -1
- package/dist/mint-components/p-b370fca8.system.js +1 -0
- package/dist/mint-components/{p-69a0a791.entry.js → p-b4c52c5a.entry.js} +2 -2
- package/dist/mint-components/{p-98072a24.system.entry.js → p-b5861974.system.entry.js} +1 -1
- package/dist/mint-components/{p-b6557eff.system.entry.js → p-b6fc1227.system.entry.js} +1 -1
- package/dist/mint-components/{p-ea46d642.js → p-ba0dfda9.js} +1 -1
- package/dist/mint-components/{p-a7161d9f.js → p-bb00db59.js} +1 -1
- package/dist/mint-components/{p-a8ec5664.system.entry.js → p-be4b748a.system.entry.js} +1 -1
- package/dist/mint-components/{p-f8d2c679.system.js → p-c84659a3.system.js} +1 -1
- package/dist/mint-components/{p-4e582dd8.entry.js → p-ce5afa40.entry.js} +1 -1
- package/dist/mint-components/{p-9276151f.js → p-ce621bcc.js} +1 -1
- package/dist/mint-components/{p-e4d14213.system.entry.js → p-cf690d55.system.entry.js} +1 -1
- package/dist/mint-components/{p-658d5964.system.entry.js → p-d0ea10c3.system.entry.js} +1 -1
- package/dist/mint-components/{p-91c1a54d.entry.js → p-d8d2de11.entry.js} +1 -1
- package/dist/mint-components/{p-a1b5a82c.system.js → p-dd7ee007.system.js} +1 -1
- package/dist/mint-components/{p-85f3c5d5.entry.js → p-e3735866.entry.js} +2 -2
- package/dist/mint-components/{p-cbfc4b47.js → p-eaada4da.js} +1 -1
- package/dist/mint-components/{p-d5b327ec.system.entry.js → p-eba44835.system.entry.js} +1 -1
- package/dist/mint-components/{p-42baa318.entry.js → p-ec41d6a4.entry.js} +1 -1
- package/dist/mint-components/{p-a2bce8d7.system.js → p-ed095674.system.js} +1 -1
- package/dist/mint-components/{p-186542b8.system.js → p-ed17e637.system.js} +1 -1
- package/dist/mint-components/{p-924384b2.entry.js → p-f3dd15c5.entry.js} +2 -2
- package/dist/mint-components/{p-284cc389.system.entry.js → p-fb20eb5e.system.entry.js} +1 -1
- package/docs/docs.docx +0 -0
- package/package.json +1 -1
- package/dist/esm-es5/index.module-3344e7dc.js +0 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-08e47843.js +0 -1
- package/dist/esm-es5/useInstantAccessRegistration-e95685e5.js +0 -1
- package/dist/mint-components/p-06ab1968.js +0 -1
- package/dist/mint-components/p-1ba5157e.js +0 -1
- package/dist/mint-components/p-2037fbd3.js +0 -1
- package/dist/mint-components/p-2b85b9d2.entry.js +0 -1
- package/dist/mint-components/p-30909368.entry.js +0 -1
- package/dist/mint-components/p-3d6eac77.js +0 -1
- package/dist/mint-components/p-3e87d803.entry.js +0 -1
- package/dist/mint-components/p-46af0bf6.system.js +0 -1
- package/dist/mint-components/p-50135af6.entry.js +0 -1
- package/dist/mint-components/p-5d86d0b4.entry.js +0 -1
- package/dist/mint-components/p-6fdf020e.entry.js +0 -1
- package/dist/mint-components/p-7c49ebfa.entry.js +0 -1
- package/dist/mint-components/p-d1ebd4c9.system.entry.js +0 -1
- package/dist/mint-components/p-ea2075fd.entry.js +0 -33
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1, c as Host } from './index-17b4da69.js';
|
|
2
2
|
import { n as h, f as useEffect, k as useState, i as d, u as useMemo, m as useRef, b as browser, j as useReducer } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import { i as intl } from './global-
|
|
4
|
-
import { i as isDemo, _, d as dist,
|
|
3
|
+
import { i as intl } from './global-04c7d3b5.js';
|
|
4
|
+
import { i as isDemo, _, d as dist, Q, H, f as $e, y as yn, B, L, g as gn, $ as $n, p as Ue, q as qe, x as xe, u as useCallback, r as ze, S as Sn } from './index.module-def4aec5.js';
|
|
5
5
|
import { j as jsonpointer } from './jsonpointer-388a7082.js';
|
|
6
6
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
7
7
|
import './mixins-f60a614c.js';
|
|
8
8
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
9
|
-
import { a as useRequestRerender } from './re-render-
|
|
10
|
-
import { u as useChildElements } from './useChildElements-
|
|
9
|
+
import { a as useRequestRerender } from './re-render-12fd274a.js';
|
|
10
|
+
import { u as useChildElements } from './useChildElements-32e1bda1.js';
|
|
11
11
|
import './luxon-7600be8d.js';
|
|
12
12
|
import { g as getProps, a as getMissingProps, s as sanitizeUrlPath } from './utils-334c1e34.js';
|
|
13
13
|
import './sqm-text-span-view-8d140661.js';
|
|
14
14
|
import { p as pathToRegexp } from './index-ffa26b43.js';
|
|
15
|
-
import { R as REGISTRATION_FORM_STATE_CONTEXT, u as useRegistrationFormState } from './useRegistrationFormState-
|
|
16
|
-
import { i as isEmpty } from './utilities-
|
|
15
|
+
import { R as REGISTRATION_FORM_STATE_CONTEXT, u as useRegistrationFormState } from './useRegistrationFormState-9fc1ac80.js';
|
|
16
|
+
import { i as isEmpty } from './utilities-3f5bba22.js';
|
|
17
17
|
import { A as AsYouType } from './AsYouType-46f67d0d.js';
|
|
18
|
-
import { b as useDemoBigStat, W as useBigStat, B as BigStatView, U as autoColorScaleCss, M as CardFeedView, k as CheckboxFieldView, O as CouponCodeView, D as DropdownFieldView, E as EditProfileView, H as HeroView, I as InputFieldView, X as withShadowView, L as LeaderboardView, N as NameFieldsView, g as ChangeMarktingView, d as PortalChangePasswordView, j as PortalFooterView, P as PortalFrameView, e as PortalLoginView, f as PortalRegisterView, R as ReferralIframeView, Y as demoRewardExchange, l as RewardExchangeView, a as useShareButton, S as ShareButtonView, C as CopyTextView, u as useShareLink, c as StatContainerView, T as TaskCardView } from './ShadowViewAddon-
|
|
18
|
+
import { b as useDemoBigStat, W as useBigStat, B as BigStatView, U as autoColorScaleCss, M as CardFeedView, k as CheckboxFieldView, O as CouponCodeView, D as DropdownFieldView, E as EditProfileView, H as HeroView, I as InputFieldView, X as withShadowView, L as LeaderboardView, N as NameFieldsView, g as ChangeMarktingView, d as PortalChangePasswordView, j as PortalFooterView, P as PortalFrameView, e as PortalLoginView, f as PortalRegisterView, R as ReferralIframeView, Y as demoRewardExchange, l as RewardExchangeView, a as useShareButton, S as ShareButtonView, C as CopyTextView, u as useShareLink, c as StatContainerView, T as TaskCardView } from './ShadowViewAddon-149b4015.js';
|
|
19
19
|
import './sqm-portal-container-view-6c582684.js';
|
|
20
20
|
|
|
21
21
|
const BigStat = class {
|
|
@@ -298,11 +298,11 @@ const WIDGET_ENGAGEMENT_EVENT = dist.gql `
|
|
|
298
298
|
`;
|
|
299
299
|
function useCouponCode(props) {
|
|
300
300
|
var _a, _b, _c;
|
|
301
|
-
const user =
|
|
301
|
+
const user = Q();
|
|
302
302
|
const programId = H();
|
|
303
303
|
const engagementMedium = B();
|
|
304
304
|
const [sendLoadEvent] = $e(WIDGET_ENGAGEMENT_EVENT);
|
|
305
|
-
const { data, loading, refetch, errors } =
|
|
305
|
+
const { data, loading, refetch, errors } = yn(FuelTankRewardsQuery, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
306
306
|
const getStatus = (reward) => {
|
|
307
307
|
if (!reward || !reward.statuses)
|
|
308
308
|
return "ERROR";
|
|
@@ -692,12 +692,12 @@ const defaultFormState = {
|
|
|
692
692
|
error: "",
|
|
693
693
|
};
|
|
694
694
|
function useEditProfile(props) {
|
|
695
|
-
const userIdent =
|
|
695
|
+
const userIdent = Q();
|
|
696
696
|
const [showEdit, setShowEdit] = useState(false);
|
|
697
697
|
const [error, setError] = useState("");
|
|
698
698
|
const [userData, setUserData] = useState(undefined);
|
|
699
699
|
const [formState, setFormState] = useState(defaultFormState);
|
|
700
|
-
const userDataResponse =
|
|
700
|
+
const userDataResponse = yn(GET_USER, {}, !(userIdent === null || userIdent === void 0 ? void 0 : userIdent.jwt));
|
|
701
701
|
const [upsertUser, upsertUserResponse] = $e(UPSERT_USER);
|
|
702
702
|
useEffect(() => {
|
|
703
703
|
if ((upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.loading) || !showEdit)
|
|
@@ -1340,7 +1340,7 @@ function useLeaderboard(props) {
|
|
|
1340
1340
|
const programIdContext = H();
|
|
1341
1341
|
// Default to context, overriden by props
|
|
1342
1342
|
const programId = (_a = props.programId) !== null && _a !== void 0 ? _a : programIdContext;
|
|
1343
|
-
const user =
|
|
1343
|
+
const user = Q();
|
|
1344
1344
|
const locale = L();
|
|
1345
1345
|
const variables = programId
|
|
1346
1346
|
? {
|
|
@@ -1360,8 +1360,8 @@ function useLeaderboard(props) {
|
|
|
1360
1360
|
if (props.maxRows > 0) {
|
|
1361
1361
|
variables["limit"] = props.maxRows;
|
|
1362
1362
|
}
|
|
1363
|
-
const { data: leaderboardData, loading: loadingLeaderboard, errors: leaderboardErrors, } =
|
|
1364
|
-
const { data: rankData } =
|
|
1363
|
+
const { data: leaderboardData, loading: loadingLeaderboard, errors: leaderboardErrors, } = yn(props.hideNames ? GET_LEADERBOARD_WITHOUT_NAMES : GET_LEADERBOARD, variables, !(user === null || user === void 0 ? void 0 : user.jwt), { batch: false });
|
|
1364
|
+
const { data: rankData } = yn(props.hideNames ? GET_RANK_WITHOUT_NAMES : GET_RANK, variables, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
1365
1365
|
const leaderboardRows = (_b = leaderboardData === null || leaderboardData === void 0 ? void 0 : leaderboardData.userLeaderboard) === null || _b === void 0 ? void 0 : _b.rows;
|
|
1366
1366
|
const flattenedLeaderboard = getFlattenedLeaderboard(leaderboardRows);
|
|
1367
1367
|
const sortedLeaderboard = flattenedLeaderboard === null || flattenedLeaderboard === void 0 ? void 0 : flattenedLeaderboard.sort(function (a, b) {
|
|
@@ -1697,12 +1697,12 @@ function NavigationMenuView(props) {
|
|
|
1697
1697
|
}
|
|
1698
1698
|
|
|
1699
1699
|
function handleMenu(e) {
|
|
1700
|
-
|
|
1700
|
+
$n.push(e.detail.item.value);
|
|
1701
1701
|
}
|
|
1702
1702
|
function useNavigationMenu(props) {
|
|
1703
1703
|
const ref = useRef();
|
|
1704
|
-
const [, rerender] =
|
|
1705
|
-
const user =
|
|
1704
|
+
const [, rerender] = gn();
|
|
1705
|
+
const user = Q();
|
|
1706
1706
|
useEffect(() => {
|
|
1707
1707
|
var _a;
|
|
1708
1708
|
(_a = ref.current) === null || _a === void 0 ? void 0 : _a.addEventListener("sl-select", (e) => handleMenu(e));
|
|
@@ -1780,11 +1780,11 @@ const defaultFormState$1 = {
|
|
|
1780
1780
|
error: "",
|
|
1781
1781
|
};
|
|
1782
1782
|
function usePortalProfile(props) {
|
|
1783
|
-
const userIdent =
|
|
1783
|
+
const userIdent = Q();
|
|
1784
1784
|
const [success, setSuccess] = useState(false);
|
|
1785
1785
|
const [userData, setUserData] = useState(undefined);
|
|
1786
1786
|
const [formState, setFormState] = useState(defaultFormState$1);
|
|
1787
|
-
const userDataResponse =
|
|
1787
|
+
const userDataResponse = yn(GET_USER$1, {}, !(userIdent === null || userIdent === void 0 ? void 0 : userIdent.jwt));
|
|
1788
1788
|
const [upsertUser, upsertUserResponse] = $e(UPSERT_USER$1);
|
|
1789
1789
|
useEffect(() => {
|
|
1790
1790
|
if (upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.loading)
|
|
@@ -1938,7 +1938,7 @@ function usePortalChangePassword(props) {
|
|
|
1938
1938
|
const [open, setOpen] = useState(false);
|
|
1939
1939
|
const [error, setError] = useState("");
|
|
1940
1940
|
const [success, setSuccess] = useState(false);
|
|
1941
|
-
const user =
|
|
1941
|
+
const user = Q();
|
|
1942
1942
|
const submit = async (event) => {
|
|
1943
1943
|
var _a, _b;
|
|
1944
1944
|
setSuccess(false);
|
|
@@ -2180,7 +2180,7 @@ const PortalFooter = class {
|
|
|
2180
2180
|
};
|
|
2181
2181
|
|
|
2182
2182
|
function usePortalFrame(footerContent, headerContent) {
|
|
2183
|
-
const [, rerender] =
|
|
2183
|
+
const [, rerender] = gn();
|
|
2184
2184
|
return {
|
|
2185
2185
|
data: {
|
|
2186
2186
|
footer: footerContent,
|
|
@@ -2230,9 +2230,9 @@ function usePortalFrameDemo(footerContent, headerContent, props) {
|
|
|
2230
2230
|
|
|
2231
2231
|
function usePortalLogin(props) {
|
|
2232
2232
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
2233
|
-
const [request, { loading, errors, data }] =
|
|
2233
|
+
const [request, { loading, errors, data }] = qe();
|
|
2234
2234
|
const [error, setError] = useState("");
|
|
2235
|
-
const urlParams = new URLSearchParams(
|
|
2235
|
+
const urlParams = new URLSearchParams($n.location.search);
|
|
2236
2236
|
const nextPageOverride = urlParams.get("nextPage");
|
|
2237
2237
|
const submit = async (event) => {
|
|
2238
2238
|
var _a, _b;
|
|
@@ -2251,7 +2251,7 @@ function usePortalLogin(props) {
|
|
|
2251
2251
|
if ((_b = result.authenticateManagedIdentityWithEmailAndPassword) === null || _b === void 0 ? void 0 : _b.token) {
|
|
2252
2252
|
urlParams.delete("nextPage");
|
|
2253
2253
|
const url = sanitizeUrlPath(nextPageOverride || props.nextPage);
|
|
2254
|
-
|
|
2254
|
+
$n.push(url.href);
|
|
2255
2255
|
}
|
|
2256
2256
|
};
|
|
2257
2257
|
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) ||
|
|
@@ -2330,8 +2330,8 @@ const PortalLogin = class {
|
|
|
2330
2330
|
? useLoginDemo(this)
|
|
2331
2331
|
: usePortalLogin(this);
|
|
2332
2332
|
const content = {
|
|
2333
|
-
forgotPasswordButton: (h$1("slot", { name: "forgotPassword" }, h$1("a", { onClick: () =>
|
|
2334
|
-
secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("sl-button", { type: "text", disabled: states.loading, onClick: () =>
|
|
2333
|
+
forgotPasswordButton: (h$1("slot", { name: "forgotPassword" }, h$1("a", { onClick: () => $n.push(states.forgotPasswordPath) }, this.forgotPasswordLabel))),
|
|
2334
|
+
secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("sl-button", { type: "text", disabled: states.loading, onClick: () => $n.push(states.registerPath) }, this.registerLabel))),
|
|
2335
2335
|
emailLabel: this.emailLabel,
|
|
2336
2336
|
passwordLabel: this.passwordLabel,
|
|
2337
2337
|
submitLabel: this.submitLabel,
|
|
@@ -2360,7 +2360,7 @@ function usePortalRegister(props) {
|
|
|
2360
2360
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
2361
2361
|
const formRef = useRef(null);
|
|
2362
2362
|
const { registrationFormState, setRegistrationFormState } = useRegistrationFormState({});
|
|
2363
|
-
const [request, { loading, errors, data }] =
|
|
2363
|
+
const [request, { loading, errors, data }] = xe();
|
|
2364
2364
|
useEffect(() => {
|
|
2365
2365
|
if (!formRef.current)
|
|
2366
2366
|
return;
|
|
@@ -2433,7 +2433,7 @@ function usePortalRegister(props) {
|
|
|
2433
2433
|
validationErrors: {},
|
|
2434
2434
|
});
|
|
2435
2435
|
if ((_a = result.registerManagedIdentityWithEmailAndPassword) === null || _a === void 0 ? void 0 : _a.token) {
|
|
2436
|
-
|
|
2436
|
+
$n.push(props.nextPage);
|
|
2437
2437
|
}
|
|
2438
2438
|
}
|
|
2439
2439
|
catch (error) {
|
|
@@ -2607,7 +2607,7 @@ const PortalRegister = class {
|
|
|
2607
2607
|
: usePortalRegister(this);
|
|
2608
2608
|
const content = {
|
|
2609
2609
|
formData: h$1("slot", { name: "formData" }),
|
|
2610
|
-
secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("sl-button", { type: "text", disabled: states.loading, onClick: () =>
|
|
2610
|
+
secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("sl-button", { type: "text", disabled: states.loading, onClick: () => $n.push(states.loginPath) }, this.loginLabel))),
|
|
2611
2611
|
terms: h$1("slot", { name: "terms" }),
|
|
2612
2612
|
emailLabel: this.emailLabel,
|
|
2613
2613
|
passwordLabel: this.passwordLabel,
|
|
@@ -2782,7 +2782,7 @@ function useProgramMenu(props) {
|
|
|
2782
2782
|
const host = _();
|
|
2783
2783
|
debug({ programId, props });
|
|
2784
2784
|
const ref = useRef();
|
|
2785
|
-
const [, rerender] =
|
|
2785
|
+
const [, rerender] = gn();
|
|
2786
2786
|
useEffect(() => {
|
|
2787
2787
|
var _a;
|
|
2788
2788
|
(_a = ref.current) === null || _a === void 0 ? void 0 : _a.addEventListener("sl-select", (e) => {
|
|
@@ -2961,8 +2961,8 @@ const GET_USER_DETAILS = dist.gql `
|
|
|
2961
2961
|
function useReferralIframe(props) {
|
|
2962
2962
|
var _a;
|
|
2963
2963
|
const programId = H();
|
|
2964
|
-
const user =
|
|
2965
|
-
const { data } =
|
|
2964
|
+
const user = Q();
|
|
2965
|
+
const { data } = yn(GET_USER_DETAILS, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt) || !programId);
|
|
2966
2966
|
return {
|
|
2967
2967
|
states: {
|
|
2968
2968
|
content: props,
|
|
@@ -3687,9 +3687,9 @@ function useRewardExchangeList(props) {
|
|
|
3687
3687
|
});
|
|
3688
3688
|
const [open, setOpen] = useState(false);
|
|
3689
3689
|
const { selectedItem, selectedStep, redeemStage, amount, exchangeError } = exchangeState;
|
|
3690
|
-
const user =
|
|
3690
|
+
const user = Q();
|
|
3691
3691
|
const [exchange, { data: exchangeResponse, loading: exchangeLoading, errors },] = $e(EXCHANGE);
|
|
3692
|
-
const { data, loading, refetch, errors: queryError, } =
|
|
3692
|
+
const { data, loading, refetch, errors: queryError, } = yn(GET_EXCHANGE_LIST, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
3693
3693
|
useEffect(() => {
|
|
3694
3694
|
var _a, _b;
|
|
3695
3695
|
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) {
|
|
@@ -3708,7 +3708,7 @@ function useRewardExchangeList(props) {
|
|
|
3708
3708
|
canvas.confetti || confetti.create(canvas, { resize: true });
|
|
3709
3709
|
canvas.confetti();
|
|
3710
3710
|
}, [canvasRef.current]);
|
|
3711
|
-
const { refresh } =
|
|
3711
|
+
const { refresh } = ze();
|
|
3712
3712
|
async function exchangeReward() {
|
|
3713
3713
|
if (!selectedItem)
|
|
3714
3714
|
return;
|
|
@@ -4016,7 +4016,7 @@ function matchPath(pattern, page) {
|
|
|
4016
4016
|
return regexp.exec(page);
|
|
4017
4017
|
}
|
|
4018
4018
|
function useRouter() {
|
|
4019
|
-
const location =
|
|
4019
|
+
const location = Sn();
|
|
4020
4020
|
const host = _();
|
|
4021
4021
|
const [slot, setSlot] = useState(undefined);
|
|
4022
4022
|
const [container, setContainer] = useState(undefined);
|
|
@@ -4279,9 +4279,9 @@ const WIDGET_ENGAGEMENT_EVENT$1 = dist.gql `
|
|
|
4279
4279
|
function useShareCode(props) {
|
|
4280
4280
|
var _a, _b;
|
|
4281
4281
|
const { programId = H() } = props;
|
|
4282
|
-
const user =
|
|
4282
|
+
const user = Q();
|
|
4283
4283
|
const engagementMedium = B();
|
|
4284
|
-
const { data } =
|
|
4284
|
+
const { data } = yn(MessageLinkQuery, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
4285
4285
|
const [sendLoadEvent] = $e(WIDGET_ENGAGEMENT_EVENT$1);
|
|
4286
4286
|
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 :
|
|
4287
4287
|
// Shown during loading
|
|
@@ -4481,10 +4481,10 @@ const SEND_EVENT = dist.gql `
|
|
|
4481
4481
|
}
|
|
4482
4482
|
`;
|
|
4483
4483
|
function useTaskCard(props) {
|
|
4484
|
-
const user =
|
|
4484
|
+
const user = Q();
|
|
4485
4485
|
const locale = L();
|
|
4486
4486
|
const [sendUserEvent, { data, loading: loadingEvent }] = $e(SEND_EVENT);
|
|
4487
|
-
const { refresh } =
|
|
4487
|
+
const { refresh } = ze();
|
|
4488
4488
|
useEffect(() => {
|
|
4489
4489
|
if (data) {
|
|
4490
4490
|
refresh();
|
|
@@ -4805,8 +4805,8 @@ const GET_USER_NAME = dist.gql `
|
|
|
4805
4805
|
`;
|
|
4806
4806
|
function useUserName(props) {
|
|
4807
4807
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
4808
|
-
const user =
|
|
4809
|
-
const res =
|
|
4808
|
+
const user = Q();
|
|
4809
|
+
const res = yn(GET_USER_NAME, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
4810
4810
|
const loading = res.loading;
|
|
4811
4811
|
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)
|
|
4812
4812
|
? `${(_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}`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
2
|
import { n as h } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import {
|
|
3
|
+
import { a as getEnvironmentSDK } from './index.module-def4aec5.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,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1, c as Host } from './index-17b4da69.js';
|
|
2
2
|
import { b as browser, k as useState, i as d, f as useEffect, n as h } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import { _ } from './index.module-
|
|
3
|
+
import { _ } from './index.module-def4aec5.js';
|
|
4
4
|
import { g as getProps } from './utils-334c1e34.js';
|
|
5
5
|
import { p as pathToRegexp } from './index-ffa26b43.js';
|
|
6
6
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h, r as registerInstance, c as Host } from './index-17b4da69.js';
|
|
2
2
|
import { n as h$1 } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import { i as intl } from './global-
|
|
4
|
-
import './index.module-
|
|
3
|
+
import { i as intl } from './global-04c7d3b5.js';
|
|
4
|
+
import './index.module-def4aec5.js';
|
|
5
5
|
import './JSS-67b5cff8.js';
|
|
6
6
|
import { g as getProps } from './utils-334c1e34.js';
|
|
7
7
|
import { P as PortalContainerView, a as PortalSectionView } from './sqm-portal-container-view-6c582684.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1, c as Host } from './index-17b4da69.js';
|
|
2
2
|
import { o as m, f as useEffect, n as h } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import {
|
|
3
|
+
import { J, E as Ee, z, P as Pe } from './index.module-def4aec5.js';
|
|
4
4
|
|
|
5
5
|
async function useGraphQLClientProvider({ domain }) {
|
|
6
|
-
const token =
|
|
6
|
+
const token = J();
|
|
7
7
|
const appDomain = domain;
|
|
8
|
-
const tenantAlias =
|
|
8
|
+
const tenantAlias = z();
|
|
9
9
|
// Memoization is shared. One client per domain, tenant and token (or null)
|
|
10
10
|
const managedIdentityClient = Ee(appDomain, tenantAlias, token);
|
|
11
11
|
const [, setGraphQLClient] = m(Pe, managedIdentityClient);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
2
|
import { n as h } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import { i as isDemo,
|
|
3
|
+
import { i as isDemo, b as setUserIdentity } from './index.module-def4aec5.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-a89a88bf.js';
|
|
9
|
-
import './useRegistrationFormState-
|
|
10
|
-
import { u as useInstantAccessRegistration } from './useInstantAccessRegistration-
|
|
9
|
+
import './useRegistrationFormState-9fc1ac80.js';
|
|
10
|
+
import { u as useInstantAccessRegistration } from './useInstantAccessRegistration-46b89952.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 { n as h } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import { i as intl } from './global-
|
|
4
|
-
import { d as dist, H,
|
|
3
|
+
import { i as intl } from './global-04c7d3b5.js';
|
|
4
|
+
import { d as dist, H, Q, y as yn, i as isDemo } from './index.module-def4aec5.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
6
|
import { L as LeaderboardRankView } from './sqm-leaderboard-rank-view-10657658.js';
|
|
7
7
|
|
|
@@ -23,7 +23,7 @@ function useLeaderboardRank(props) {
|
|
|
23
23
|
const programIdContext = H();
|
|
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 = Q();
|
|
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 } = yn(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 { n as h } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import { d as dist,
|
|
3
|
+
import { d as dist, Q, y as yn, b as setUserIdentity, i as isDemo } from './index.module-def4aec5.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';
|
|
@@ -19,8 +19,8 @@ const GET_USER_DETAILS = dist.gql `
|
|
|
19
19
|
`;
|
|
20
20
|
function useLogoutCurrentUser(props) {
|
|
21
21
|
var _a, _b;
|
|
22
|
-
const user =
|
|
23
|
-
const { loading, data } =
|
|
22
|
+
const user = Q();
|
|
23
|
+
const { loading, data } = yn(GET_USER_DETAILS, {}, !user);
|
|
24
24
|
const onSwitchClick = () => {
|
|
25
25
|
setUserIdentity(undefined);
|
|
26
26
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h } from './index-17b4da69.js';
|
|
2
|
-
import {
|
|
2
|
+
import { $ as $n } from './index.module-def4aec5.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
|
+
$n.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 { n as h } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import {
|
|
3
|
+
import { S as Sn, i as isDemo } from './index.module-def4aec5.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-60ef06cc.js';
|
|
9
9
|
|
|
10
10
|
function useNavigationSidebarItem(props) {
|
|
11
|
-
const currentPage =
|
|
11
|
+
const currentPage = Sn();
|
|
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 { n as h, k as useState, f as useEffect } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import {
|
|
3
|
+
import { S as Sn, H } from './index.module-def4aec5.js';
|
|
4
4
|
import { N as NavigationSidebarView } from './sqm-navigation-sidebar-view-0312e073.js';
|
|
5
5
|
|
|
6
6
|
const NavigationSidebar = class {
|
|
@@ -16,7 +16,7 @@ const NavigationSidebar = class {
|
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
18
|
function useNavigationSidebar() {
|
|
19
|
-
const location =
|
|
19
|
+
const location = Sn();
|
|
20
20
|
const programId = H();
|
|
21
21
|
const [checked, setChecked] = useState(false);
|
|
22
22
|
// Close hamburger menu after navigation
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { h, r as registerInstance } from './index-17b4da69.js';
|
|
2
2
|
import { i as d, k as useState, n as h$1 } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import { i as isDemo } from './index.module-
|
|
3
|
+
import { i as isDemo } from './index.module-def4aec5.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
7
|
import { g as getProps } from './utils-334c1e34.js';
|
|
8
|
-
import { R as REGISTRATION_FORM_STATE_CONTEXT } from './useRegistrationFormState-
|
|
8
|
+
import { R as REGISTRATION_FORM_STATE_CONTEXT } from './useRegistrationFormState-9fc1ac80.js';
|
|
9
9
|
|
|
10
10
|
var constants = {
|
|
11
11
|
error: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h, c as Host, r as registerInstance } from './index-17b4da69.js';
|
|
2
2
|
import { n as h$1 } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import { B } from './index.module-
|
|
3
|
+
import { B } from './index.module-def4aec5.js';
|
|
4
4
|
import { g as getProps } from './utils-334c1e34.js';
|
|
5
5
|
|
|
6
6
|
const PopupContainerView = (props) => {
|
|
@@ -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-04c7d3b5.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 { k as useState, m as useRef, f as useEffect, n as h } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import './global-
|
|
4
|
-
import { l as ln, n as nn,
|
|
3
|
+
import './global-04c7d3b5.js';
|
|
4
|
+
import { l as ln, n as nn, Q, $ as $n, u as useCallback, i as isDemo } from './index.module-def4aec5.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
6
|
import './mixins-f60a614c.js';
|
|
7
7
|
import './JSS-67b5cff8.js';
|
|
8
8
|
import './sqm-text-span-view-8d140661.js';
|
|
9
|
-
import { P as PortalEmailVerificationView } from './sqm-portal-email-verification-view-
|
|
9
|
+
import { P as PortalEmailVerificationView } from './sqm-portal-email-verification-view-4307c992.js';
|
|
10
10
|
|
|
11
11
|
function usePortalEmailVerification(props) {
|
|
12
12
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
13
13
|
const [request, { loading, data, errors }] = ln();
|
|
14
14
|
const [getVerificationStatus, { data: user, loading: loadingVerification }] = nn();
|
|
15
|
-
const userIdent =
|
|
15
|
+
const userIdent = Q();
|
|
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($n.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 $n.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 { k as useState, n as h } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import {
|
|
3
|
+
import { e as un, $ as $n, i as isDemo } from './index.module-def4aec5.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';
|
|
@@ -13,7 +13,7 @@ function usePortalForgotPassword(props) {
|
|
|
13
13
|
const [success, setSuccess] = useState(false);
|
|
14
14
|
const [error, setError] = useState("");
|
|
15
15
|
const [request, { loading, data, errors }] = un();
|
|
16
|
-
const urlParams = new URLSearchParams(
|
|
16
|
+
const urlParams = new URLSearchParams($n.location.search);
|
|
17
17
|
const nextPage = urlParams.get("nextPage");
|
|
18
18
|
const submit = async (event) => {
|
|
19
19
|
var _a;
|
|
@@ -102,7 +102,7 @@ const PortalForgotPassword = class {
|
|
|
102
102
|
? usePortalForgotPasswordDemo(this)
|
|
103
103
|
: usePortalForgotPassword(this);
|
|
104
104
|
const content = {
|
|
105
|
-
secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("sl-button", { type: "text", disabled: states.loading, onClick: () =>
|
|
105
|
+
secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("sl-button", { type: "text", disabled: states.loading, onClick: () => $n.push(states.loginPath) }, this.loginText))),
|
|
106
106
|
messageSlot: h$1("slot", { name: "messageSlot" }, this.headerText),
|
|
107
107
|
emailLabel: this.emailLabel,
|
|
108
108
|
submitLabel: this.submitLabel,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { r as registerInstance } from './index-17b4da69.js';
|
|
2
2
|
import { n as h } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import {
|
|
3
|
+
import { b as setUserIdentity, $ as $n, i as isDemo } from './index.module-def4aec5.js';
|
|
4
4
|
|
|
5
5
|
function usePortalLogout({ nextPage }) {
|
|
6
6
|
setUserIdentity(undefined);
|
|
7
|
-
|
|
7
|
+
$n.push({ pathname: nextPage, search: "" });
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
const PortalLogout = class {
|
package/dist/esm/{sqm-portal-profile-view-4810da8a.js → sqm-portal-profile-view-ffe955c8.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-04c7d3b5.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,13 +1,13 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
2
|
import { k as useState, f as useEffect, n as h } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import './global-
|
|
4
|
-
import { d as dist,
|
|
3
|
+
import './global-04c7d3b5.js';
|
|
4
|
+
import { d as dist, Q, y as yn, f as $e, i as isDemo } from './index.module-def4aec5.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
6
|
import './JSS-67b5cff8.js';
|
|
7
7
|
import { g as getProps } from './utils-334c1e34.js';
|
|
8
8
|
import './sqm-text-span-view-8d140661.js';
|
|
9
|
-
import { P as PortalProfileView } from './sqm-portal-profile-view-
|
|
10
|
-
import { i as isEmpty } from './utilities-
|
|
9
|
+
import { P as PortalProfileView } from './sqm-portal-profile-view-ffe955c8.js';
|
|
10
|
+
import { i as isEmpty } from './utilities-3f5bba22.js';
|
|
11
11
|
|
|
12
12
|
const GET_USER = dist.gql `
|
|
13
13
|
query {
|
|
@@ -53,11 +53,11 @@ const defaultFormState = {
|
|
|
53
53
|
error: "",
|
|
54
54
|
};
|
|
55
55
|
function usePortalProfile(props) {
|
|
56
|
-
const userIdent =
|
|
56
|
+
const userIdent = Q();
|
|
57
57
|
const [success, setSuccess] = useState(false);
|
|
58
58
|
const [userData, setUserData] = useState(undefined);
|
|
59
59
|
const [formState, setFormState] = useState(defaultFormState);
|
|
60
|
-
const userDataResponse =
|
|
60
|
+
const userDataResponse = yn(GET_USER, {}, !(userIdent === null || userIdent === void 0 ? void 0 : userIdent.jwt));
|
|
61
61
|
const [upsertUser, upsertUserResponse] = $e(UPSERT_USER);
|
|
62
62
|
useEffect(() => {
|
|
63
63
|
if (upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.loading)
|
|
@@ -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, n as h } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import {
|
|
3
|
+
import { Q, S as Sn, $ as $n, i as isDemo } from './index.module-def4aec5.js';
|
|
4
4
|
|
|
5
5
|
function usePortalProtectedRoute({ requireEmailVerification, redirectTo, redirectToUnverified, }) {
|
|
6
6
|
var _a;
|
|
7
|
-
const userIdent =
|
|
7
|
+
const userIdent = Q();
|
|
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 } = Sn();
|
|
11
11
|
const nextPageParam = new URLSearchParams();
|
|
12
12
|
nextPageParam.append("nextPage", `${pathname}${search}`);
|
|
13
13
|
useEffect(() => {
|
|
14
14
|
if (!authenticated) {
|
|
15
|
-
return
|
|
15
|
+
return $n.push({
|
|
16
16
|
pathname: redirectTo,
|
|
17
17
|
search: "?" + nextPageParam.toString(),
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
20
|
if (requireEmailVerification && !emailVerified) {
|
|
21
|
-
return
|
|
21
|
+
return $n.push({
|
|
22
22
|
pathname: redirectToUnverified || redirectTo,
|
|
23
23
|
search: "?" + nextPageParam.toString(),
|
|
24
24
|
});
|