@saasquatch/mint-components 1.5.0-2 → 1.5.0-6
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-a85b8c8d.js → ShadowViewAddon-475e00d3.js} +3 -3
- package/dist/cjs/{global-6223fe8f.js → global-89f66e76.js} +2 -2
- package/dist/cjs/{index.module-7dd4b981.js → index.module-c0bf9df0.js} +16 -16
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/mint-components.cjs.js +3 -3
- package/dist/cjs/{re-render-6111d4bd.js → re-render-124b56ee.js} +4 -4
- package/dist/cjs/sqm-asset-card.cjs.entry.js +1 -1
- package/dist/cjs/sqm-big-stat.cjs.entry.js +2 -2
- package/dist/cjs/sqm-brand_31.cjs.entry.js +810 -586
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +4 -4
- package/dist/cjs/{sqm-leaderboard-rank-view-7dd44d62.js → sqm-leaderboard-rank-view-510f16d3.js} +2 -2
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +5 -5
- package/dist/cjs/sqm-leaderboard.cjs.entry.js +2 -2
- package/dist/cjs/sqm-name-fields.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-navigation-sidebar-item-view-6c7f78e6.js → sqm-navigation-sidebar-item-view-a2bdcf05.js} +2 -2
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +3 -3
- package/dist/cjs/sqm-popup-container.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-portal-email-verification-view-08d1848c.js → sqm-portal-email-verification-view-5093ac20.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +5 -5
- package/dist/cjs/{sqm-portal-footer-view-69c73802.js → sqm-portal-footer-view-03408484.js} +1 -1
- package/dist/cjs/sqm-portal-footer.cjs.entry.js +3 -3
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +3 -3
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-portal-profile-view-14b41436.js → sqm-portal-profile-view-fa2db439.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-reset-password.cjs.entry.js +5 -5
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +5 -5
- package/dist/cjs/sqm-program-explainer-step-view-6a01cda0.js +70 -0
- package/dist/cjs/sqm-program-explainer-step.cjs.entry.js +3 -16
- package/dist/cjs/sqm-program-explainer-view-8a4af972.js +45 -0
- package/dist/cjs/sqm-program-explainer.cjs.entry.js +4 -33
- package/dist/cjs/sqm-referral-table-column.cjs.entry.js +2 -2
- package/dist/cjs/sqm-referral-table-date-column.cjs.entry.js +2 -2
- package/dist/cjs/sqm-referral-table-rewards-column.cjs.entry.js +2 -2
- package/dist/cjs/sqm-referral-table-status-column.cjs.entry.js +2 -2
- package/dist/cjs/sqm-referral-table-user-column.cjs.entry.js +2 -2
- package/dist/cjs/sqm-share-code.cjs.entry.js +4 -4
- package/dist/cjs/{useDemoBigStat-2786227e.js → useDemoBigStat-5d71bbdf.js} +3 -3
- package/dist/collection/components/sqm-brand/SqmBrand.stories.js +31 -13
- package/dist/collection/components/sqm-brand/sqm-brand.js +51 -13
- package/dist/collection/components/sqm-program-explainer/ProgramExplainer.stories.js +45 -29
- package/dist/collection/components/sqm-program-explainer/sqm-program-explainer-view.js +36 -28
- package/dist/collection/components/sqm-program-explainer/sqm-program-explainer.js +112 -5
- package/dist/collection/components/sqm-program-explainer-step/ProgramExplainerStep.stories.js +3 -2
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step-view.js +42 -21
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step.js +46 -46
- package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeList.stories.js +5 -3
- package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeListData.js +38 -19
- package/dist/collection/components/sqm-reward-exchange-list/SVGs.js +3 -0
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +135 -87
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +349 -3
- package/dist/collection/components/sqm-reward-exchange-list/useRewardExchangeList.js +20 -12
- package/dist/collection/fonts/GoogleFonts.js +12 -0
- package/dist/esm/{ShadowViewAddon-a3f510db.js → ShadowViewAddon-558fabb7.js} +3 -3
- package/dist/esm/{global-90da933f.js → global-e0e25c22.js} +2 -2
- package/dist/esm/{index.module-90d2c3ad.js → index.module-eb50a8d2.js} +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/mint-components.js +3 -3
- package/dist/esm/{re-render-e06f2f7f.js → re-render-6d5b856e.js} +4 -4
- package/dist/esm/sqm-asset-card.entry.js +1 -1
- package/dist/esm/sqm-big-stat.entry.js +2 -2
- package/dist/esm/sqm-brand_31.entry.js +811 -587
- package/dist/esm/sqm-graphql-client-provider.entry.js +4 -4
- package/dist/esm/{sqm-leaderboard-rank-view-47844836.js → sqm-leaderboard-rank-view-cd1e8962.js} +2 -2
- package/dist/esm/sqm-leaderboard-rank.entry.js +5 -5
- package/dist/esm/sqm-leaderboard.entry.js +2 -2
- package/dist/esm/sqm-name-fields.entry.js +1 -1
- package/dist/esm/{sqm-navigation-sidebar-item-view-f2304ad9.js → sqm-navigation-sidebar-item-view-2d8c368c.js} +2 -2
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +3 -3
- package/dist/esm/sqm-popup-container.entry.js +1 -1
- package/dist/esm/{sqm-portal-email-verification-view-8cefe480.js → sqm-portal-email-verification-view-2af31979.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +5 -5
- package/dist/esm/{sqm-portal-footer-view-d9fe0bf8.js → sqm-portal-footer-view-60cd9ae5.js} +1 -1
- package/dist/esm/sqm-portal-footer.entry.js +3 -3
- package/dist/esm/sqm-portal-forgot-password.entry.js +3 -3
- package/dist/esm/sqm-portal-logout.entry.js +3 -3
- package/dist/esm/{sqm-portal-profile-view-b67467b4.js → sqm-portal-profile-view-f1deea0f.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-reset-password.entry.js +7 -7
- package/dist/esm/sqm-portal-verify-email.entry.js +5 -5
- package/dist/esm/sqm-program-explainer-step-view-41c1eecd.js +68 -0
- package/dist/esm/sqm-program-explainer-step.entry.js +3 -16
- package/dist/esm/sqm-program-explainer-view-098a64a9.js +43 -0
- package/dist/esm/sqm-program-explainer.entry.js +7 -36
- package/dist/esm/sqm-referral-table-column.entry.js +2 -2
- package/dist/esm/sqm-referral-table-date-column.entry.js +2 -2
- package/dist/esm/sqm-referral-table-rewards-column.entry.js +2 -2
- package/dist/esm/sqm-referral-table-status-column.entry.js +2 -2
- package/dist/esm/sqm-referral-table-user-column.entry.js +2 -2
- package/dist/esm/sqm-share-code.entry.js +4 -4
- package/dist/esm/{useDemoBigStat-c3b955b7.js → useDemoBigStat-d227b2f9.js} +3 -3
- package/dist/esm-es5/ShadowViewAddon-558fabb7.js +1 -0
- package/dist/esm-es5/{global-90da933f.js → global-e0e25c22.js} +2 -2
- package/dist/esm-es5/{index.module-90d2c3ad.js → index.module-eb50a8d2.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-e06f2f7f.js → re-render-6d5b856e.js} +1 -1
- package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat.entry.js +1 -1
- package/dist/esm-es5/sqm-brand_31.entry.js +2 -2
- package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm-es5/{sqm-leaderboard-rank-view-47844836.js → sqm-leaderboard-rank-view-cd1e8962.js} +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-leaderboard.entry.js +1 -1
- package/dist/esm-es5/sqm-name-fields.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-2d8c368c.js +1 -0
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-8cefe480.js → sqm-portal-email-verification-view-2af31979.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-footer-view-d9fe0bf8.js → sqm-portal-footer-view-60cd9ae5.js} +1 -1
- package/dist/esm-es5/sqm-portal-footer.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-b67467b4.js → sqm-portal-profile-view-f1deea0f.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-reset-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm-es5/sqm-program-explainer-step-view-41c1eecd.js +1 -0
- package/dist/esm-es5/sqm-program-explainer-step.entry.js +1 -1
- package/dist/esm-es5/sqm-program-explainer-view-098a64a9.js +1 -0
- package/dist/esm-es5/sqm-program-explainer.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table-column.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table-date-column.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table-rewards-column.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table-status-column.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table-user-column.entry.js +1 -1
- package/dist/esm-es5/sqm-share-code.entry.js +1 -1
- package/dist/esm-es5/useDemoBigStat-d227b2f9.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-a6094ff9.system.js → p-02dc36a4.system.js} +1 -1
- package/dist/mint-components/{p-3ce2fb83.system.js → p-03e93c82.system.js} +1 -1
- package/dist/mint-components/p-0d8b2757.system.entry.js +1 -0
- package/dist/mint-components/{p-b608f7a4.system.js → p-0e8ae7e3.system.js} +1 -1
- package/dist/mint-components/p-10103ce2.system.js +1 -0
- package/dist/mint-components/{p-221a4097.entry.js → p-1705e549.entry.js} +1 -1
- package/dist/mint-components/p-1b5b5928.system.js +1 -0
- package/dist/mint-components/{p-0eb3e89c.js → p-1f95b411.js} +1 -1
- package/dist/mint-components/{p-44d0fc80.system.entry.js → p-2027edc0.system.entry.js} +1 -1
- package/dist/mint-components/{p-a4c2c7ed.entry.js → p-20c95798.entry.js} +1 -1
- package/dist/mint-components/{p-b1bb07db.entry.js → p-21b4044a.entry.js} +1 -1
- package/dist/mint-components/p-21df3f85.system.entry.js +1 -0
- package/dist/mint-components/{p-db2e4c42.js → p-221bd06e.js} +1 -1
- package/dist/mint-components/p-2338162a.entry.js +1 -0
- package/dist/mint-components/{p-73148868.system.entry.js → p-24fa8920.system.entry.js} +1 -1
- package/dist/mint-components/{p-e6d77d20.system.entry.js → p-29ee7d11.system.entry.js} +1 -1
- package/dist/mint-components/{p-e7f633b9.system.js → p-2e63dcfd.system.js} +1 -1
- package/dist/mint-components/{p-9d6dbb2d.entry.js → p-3143cce4.entry.js} +1 -1
- package/dist/mint-components/p-34112d74.entry.js +1 -0
- package/dist/mint-components/{p-3b97aed8.system.js → p-40e83a85.system.js} +1 -1
- package/dist/mint-components/{p-be2738b0.system.entry.js → p-46493de5.system.entry.js} +1 -1
- package/dist/mint-components/{p-1dcdca58.system.entry.js → p-4658d225.system.entry.js} +1 -1
- package/dist/mint-components/{p-6882070c.js → p-4b719313.js} +1 -1
- package/dist/mint-components/{p-29fab29b.entry.js → p-53e51b3f.entry.js} +1 -1
- package/dist/mint-components/p-5939212e.system.entry.js +1 -0
- package/dist/mint-components/{p-d35b0366.js → p-5d925bb6.js} +1 -1
- package/dist/mint-components/{p-c6114bfe.system.js → p-5e4e7f01.system.js} +1 -1
- package/dist/mint-components/{p-224504ad.js → p-61acba7a.js} +1 -1
- package/dist/mint-components/{p-f17050de.entry.js → p-65c79eec.entry.js} +1 -1
- package/dist/mint-components/p-748ad4f5.entry.js +1 -0
- package/dist/mint-components/{p-52802c88.entry.js → p-759d3800.entry.js} +2 -2
- package/dist/mint-components/{p-49cbd0a2.entry.js → p-760762d3.entry.js} +2 -2
- package/dist/mint-components/{p-33c5ffb7.entry.js → p-7cdbe82a.entry.js} +1 -1
- package/dist/mint-components/{p-223b42bd.system.entry.js → p-7ff22998.system.entry.js} +1 -1
- package/dist/mint-components/p-81786aa0.js +1 -0
- package/dist/mint-components/p-85efd952.entry.js +1 -0
- package/dist/mint-components/p-86255b95.entry.js +1 -0
- package/dist/mint-components/{p-24c9a599.system.entry.js → p-88fdfd94.system.entry.js} +1 -1
- package/dist/mint-components/p-8d6bb835.system.entry.js +58 -0
- package/dist/mint-components/p-8ec5127e.system.entry.js +1 -0
- package/dist/mint-components/{p-46a4269a.js → p-8fd8682c.js} +1 -1
- package/dist/mint-components/{p-7300b0ae.entry.js → p-90a4bcd0.entry.js} +16 -15
- package/dist/mint-components/{p-412a9226.system.entry.js → p-97b946c2.system.entry.js} +1 -1
- package/dist/mint-components/p-9be0cb19.entry.js +1 -0
- package/dist/mint-components/{p-1a09e4e1.system.entry.js → p-a0a26fc5.system.entry.js} +1 -1
- package/dist/mint-components/{p-304e6c82.system.entry.js → p-a355eeaf.system.entry.js} +1 -1
- package/dist/mint-components/{p-67ae18d1.system.entry.js → p-a8246a50.system.entry.js} +1 -1
- package/dist/mint-components/p-a831de18.entry.js +1 -0
- package/dist/mint-components/p-a833dbb3.js +1 -0
- package/dist/mint-components/p-a88a08bb.system.js +1 -0
- package/dist/mint-components/{p-b8bd2607.entry.js → p-a9a6f205.entry.js} +1 -1
- package/dist/mint-components/{p-6e245fa3.system.entry.js → p-aee83885.system.entry.js} +1 -1
- package/dist/mint-components/{p-cca9026f.system.entry.js → p-b86cbac3.system.entry.js} +1 -1
- package/dist/mint-components/{p-07c924fa.system.js → p-be3a0cc4.system.js} +1 -1
- package/dist/mint-components/{p-3397167c.entry.js → p-c0f9d0b1.entry.js} +1 -1
- package/dist/mint-components/{p-60855d33.system.js → p-c65cfc9d.system.js} +1 -1
- package/dist/mint-components/{p-dc603d08.system.entry.js → p-ca40dbaa.system.entry.js} +1 -1
- package/dist/mint-components/{p-9c554ca0.system.js → p-cc189fc4.system.js} +1 -1
- package/dist/mint-components/{p-fce1dbf6.entry.js → p-cc652a53.entry.js} +1 -1
- package/dist/mint-components/{p-f90486ca.js → p-d19d6012.js} +15 -15
- package/dist/mint-components/p-d3c7dbfc.entry.js +1 -0
- package/dist/mint-components/{p-24b3c6f0.system.entry.js → p-d4a1bce9.system.entry.js} +1 -1
- package/dist/mint-components/p-d68f6b64.system.entry.js +1 -0
- package/dist/mint-components/p-e36ff7fa.entry.js +1 -0
- package/dist/mint-components/{p-723ebe45.entry.js → p-e608f340.entry.js} +2 -2
- package/dist/mint-components/{p-c79c608d.system.entry.js → p-e7cb4274.system.entry.js} +1 -1
- package/dist/mint-components/p-ee684b5f.js +1 -0
- package/dist/mint-components/{p-6bf0a4d9.system.entry.js → p-ef7f70f2.system.entry.js} +1 -1
- package/dist/mint-components/{p-396bf448.system.entry.js → p-f20d9204.system.entry.js} +1 -1
- package/dist/mint-components/p-f5cfc52a.entry.js +1 -0
- package/dist/mint-components/{p-d21e0dbd.js → p-f7f87338.js} +1 -1
- package/dist/mint-components/{p-cdeae699.system.js → p-f9ada3d7.system.js} +1 -1
- package/dist/mint-components/{p-563253e8.js → p-faf66fdb.js} +1 -1
- package/dist/mint-components/p-fcd03042.entry.js +1 -0
- package/dist/mint-components/{p-69bcf4fa.system.entry.js → p-fd281e6b.system.entry.js} +1 -1
- package/dist/types/components/sqm-brand/SqmBrand.stories.d.ts +1 -0
- package/dist/types/components/sqm-brand/sqm-brand.d.ts +6 -0
- package/dist/types/components/sqm-program-explainer/ProgramExplainer.stories.d.ts +3 -1
- package/dist/types/components/sqm-program-explainer/sqm-program-explainer-view.d.ts +9 -0
- package/dist/types/components/sqm-program-explainer/sqm-program-explainer.d.ts +23 -3
- package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step-view.d.ts +2 -1
- package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step.d.ts +14 -12
- package/dist/types/components/sqm-reward-exchange-list/RewardExchangeList.stories.d.ts +2 -0
- package/dist/types/components/sqm-reward-exchange-list/RewardExchangeListData.d.ts +85 -0
- package/dist/types/components/sqm-reward-exchange-list/SVGs.d.ts +1 -0
- package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.d.ts +3 -0
- package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list.d.ts +53 -0
- package/dist/types/components/sqm-reward-exchange-list/useRewardExchangeList.d.ts +16 -0
- package/dist/types/components.d.ts +186 -19
- package/dist/types/fonts/GoogleFonts.d.ts +9 -0
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/sqm-program-explainer-step-view-0e66bea1.js +0 -49
- package/dist/esm/sqm-program-explainer-step-view-26920cf9.js +0 -47
- package/dist/esm-es5/ShadowViewAddon-a3f510db.js +0 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-f2304ad9.js +0 -1
- package/dist/esm-es5/sqm-program-explainer-step-view-26920cf9.js +0 -1
- package/dist/esm-es5/useDemoBigStat-c3b955b7.js +0 -1
- package/dist/mint-components/p-160bd62f.entry.js +0 -1
- package/dist/mint-components/p-16f5a7cb.system.js +0 -1
- package/dist/mint-components/p-1c8b0290.entry.js +0 -1
- package/dist/mint-components/p-1ea0804d.js +0 -1
- package/dist/mint-components/p-20d41ab1.entry.js +0 -1
- package/dist/mint-components/p-244f3d9b.system.entry.js +0 -1
- package/dist/mint-components/p-3d856985.entry.js +0 -1
- package/dist/mint-components/p-4052b948.system.entry.js +0 -1
- package/dist/mint-components/p-45c752a0.entry.js +0 -1
- package/dist/mint-components/p-4fd17832.entry.js +0 -1
- package/dist/mint-components/p-5480e4ee.entry.js +0 -1
- package/dist/mint-components/p-8435a22d.entry.js +0 -1
- package/dist/mint-components/p-883a32e7.entry.js +0 -1
- package/dist/mint-components/p-9bda1dc4.system.entry.js +0 -1
- package/dist/mint-components/p-9e4fee30.system.entry.js +0 -1
- package/dist/mint-components/p-a2c3cff3.js +0 -1
- package/dist/mint-components/p-ade44a4e.entry.js +0 -1
- package/dist/mint-components/p-d12c666e.system.js +0 -1
- package/dist/mint-components/p-d174d0bc.system.entry.js +0 -1
- package/dist/mint-components/p-ded1509b.entry.js +0 -1
- package/dist/mint-components/p-f8c5f710.system.entry.js +0 -58
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1, c as Host } from './index-17b4da69.js';
|
|
2
2
|
import { o as m, e as useEffect, m as h } from './extends-3a3f9fe2.js';
|
|
3
3
|
import './use-callback-b38a1523.js';
|
|
4
|
-
import {
|
|
4
|
+
import { g as ee, k, h as Se, P as Pe } from './index.module-eb50a8d2.js';
|
|
5
5
|
|
|
6
6
|
async function useGraphQLClientProvider({ domain }) {
|
|
7
|
-
const token =
|
|
7
|
+
const token = ee();
|
|
8
8
|
const appDomain = domain;
|
|
9
9
|
const tenantAlias = k();
|
|
10
10
|
// Memoization is shared. One client per domain, tenant and token (or null)
|
|
11
|
-
const managedIdentityClient =
|
|
12
|
-
const [, setGraphQLClient] = m(
|
|
11
|
+
const managedIdentityClient = Se(appDomain, tenantAlias, token);
|
|
12
|
+
const [, setGraphQLClient] = m(Pe, managedIdentityClient);
|
|
13
13
|
useEffect(() => {
|
|
14
14
|
setGraphQLClient(managedIdentityClient);
|
|
15
15
|
}, [managedIdentityClient]);
|
package/dist/esm/{sqm-leaderboard-rank-view-47844836.js → sqm-leaderboard-rank-view-cd1e8962.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h } from './index-17b4da69.js';
|
|
2
|
-
import { _ as __assign } from './global-
|
|
3
|
-
import {
|
|
2
|
+
import { _ as __assign } from './global-e0e25c22.js';
|
|
3
|
+
import { f as parse } from './index.module-eb50a8d2.js';
|
|
4
4
|
|
|
5
5
|
var docCache = new Map();
|
|
6
6
|
var fragmentSourceMap = new Map();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
2
|
import { m as h } from './extends-3a3f9fe2.js';
|
|
3
|
-
import { i as intl, c as createIntl } from './global-
|
|
3
|
+
import { i as intl, c as createIntl } from './global-e0e25c22.js';
|
|
4
4
|
import './use-callback-b38a1523.js';
|
|
5
|
-
import { M,
|
|
5
|
+
import { M, n as ne, c as cn, j } from './index.module-eb50a8d2.js';
|
|
6
6
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
7
|
-
import { g as gql, L as LeaderboardRankView } from './sqm-leaderboard-rank-view-
|
|
7
|
+
import { g as gql, L as LeaderboardRankView } from './sqm-leaderboard-rank-view-cd1e8962.js';
|
|
8
8
|
|
|
9
9
|
const GET_RANK = gql `
|
|
10
10
|
query ($type: String!, $filter: UserLeaderboardFilterInput) {
|
|
@@ -22,7 +22,7 @@ const GET_RANK = gql `
|
|
|
22
22
|
function useLeaderboardRank(props) {
|
|
23
23
|
var _a, _b, _c;
|
|
24
24
|
const programId = M();
|
|
25
|
-
const user =
|
|
25
|
+
const user = ne();
|
|
26
26
|
const rankVariables = {
|
|
27
27
|
type: props.leaderboardType,
|
|
28
28
|
filter: { programId_eq: programId },
|
|
@@ -30,7 +30,7 @@ function useLeaderboardRank(props) {
|
|
|
30
30
|
if (props.interval) {
|
|
31
31
|
rankVariables.filter["interval"] = props.interval;
|
|
32
32
|
}
|
|
33
|
-
const { data: rankData } =
|
|
33
|
+
const { data: rankData } = cn(GET_RANK, rankVariables, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
34
34
|
const fullRankText = ((_a = rankData === null || rankData === void 0 ? void 0 : rankData.viewer) === null || _a === void 0 ? void 0 : _a.leaderboardRank) ? intl.formatMessage({ id: "rankText", defaultMessage: props.rankText }, {
|
|
35
35
|
rank: (_c = (_b = rankData === null || rankData === void 0 ? void 0 : rankData.viewer) === null || _b === void 0 ? void 0 : _b.leaderboardRank) === null || _c === void 0 ? void 0 : _c[props.rankType],
|
|
36
36
|
})
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
2
|
import { m as h } from './extends-3a3f9fe2.js';
|
|
3
3
|
import './use-callback-b38a1523.js';
|
|
4
|
-
import { j } from './index.module-
|
|
4
|
+
import { j } from './index.module-eb50a8d2.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
|
-
import { w as withShadowView, u as useLeaderboard, L as LeaderboardView } from './ShadowViewAddon-
|
|
6
|
+
import { w as withShadowView, u as useLeaderboard, L as LeaderboardView } from './ShadowViewAddon-558fabb7.js';
|
|
7
7
|
|
|
8
8
|
const sqmLeaderboardCss = ":host{display:block}:host([hidden]){display:none}table{width:100%}th{font-size:var(--sl-font-size-small);font-weight:var(--sl-font-weight-semibold);text-align:left}td{font-size:var(--sl-font-size-medium);font-weight:var(--sl-font-weight-normal)}td,th{color:var(--sl-color-gray-800);padding:var(--sl-spacing-x-small) var(--sl-spacing-small)}.User{width:100%}.Score{width:auto;white-space:nowrap}";
|
|
9
9
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
2
|
import { n as d, m as h } from './extends-3a3f9fe2.js';
|
|
3
3
|
import './use-callback-b38a1523.js';
|
|
4
|
-
import { j } from './index.module-
|
|
4
|
+
import { j } from './index.module-eb50a8d2.js';
|
|
5
5
|
import './jss-preset-default.esm-71fae192.js';
|
|
6
6
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
7
7
|
import './mixins-10353a39.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h } from './index-17b4da69.js';
|
|
2
|
-
import {
|
|
2
|
+
import { b as mn } from './index.module-eb50a8d2.js';
|
|
3
3
|
import { j as jss, c as create } from './jss-preset-default.esm-71fae192.js';
|
|
4
4
|
import { g as gap } from './mixins-10353a39.js';
|
|
5
5
|
|
|
@@ -32,7 +32,7 @@ function NavigationSidebarItemView(props) {
|
|
|
32
32
|
const styleString = sheet.toString();
|
|
33
33
|
return (h("a", { href: data.path, onClick: (e) => {
|
|
34
34
|
e.preventDefault();
|
|
35
|
-
|
|
35
|
+
mn.push(data.path);
|
|
36
36
|
}, class: sheet.classes.ItemContainer },
|
|
37
37
|
h("style", { type: "text/css" }, styleString),
|
|
38
38
|
h("sl-icon", { class: sheet.classes.Icon, name: data.icon }),
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
2
|
import { m as h } from './extends-3a3f9fe2.js';
|
|
3
3
|
import './use-callback-b38a1523.js';
|
|
4
|
-
import {
|
|
4
|
+
import { v as vn, j } from './index.module-eb50a8d2.js';
|
|
5
5
|
import './jss-preset-default.esm-71fae192.js';
|
|
6
6
|
import { g as getProps } from './utils-454405f5.js';
|
|
7
7
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
8
8
|
import './mixins-10353a39.js';
|
|
9
|
-
import { N as NavigationSidebarItemView } from './sqm-navigation-sidebar-item-view-
|
|
9
|
+
import { N as NavigationSidebarItemView } from './sqm-navigation-sidebar-item-view-2d8c368c.js';
|
|
10
10
|
|
|
11
11
|
function useNavigationSidebarItem(props) {
|
|
12
|
-
const currentPage =
|
|
12
|
+
const currentPage = vn();
|
|
13
13
|
return {
|
|
14
14
|
states: {
|
|
15
15
|
active: currentPage.pathname === props.path,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h, c as Host, r as registerInstance } from './index-17b4da69.js';
|
|
2
2
|
import { m as h$1 } from './extends-3a3f9fe2.js';
|
|
3
3
|
import './use-callback-b38a1523.js';
|
|
4
|
-
import { x } from './index.module-
|
|
4
|
+
import { x } from './index.module-eb50a8d2.js';
|
|
5
5
|
import { g as getProps } from './utils-454405f5.js';
|
|
6
6
|
|
|
7
7
|
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-e0e25c22.js';
|
|
3
3
|
import { j as jss, c as create } from './jss-preset-default.esm-71fae192.js';
|
|
4
4
|
import { A as AuthWrapper, a as AuthColumn } from './mixins-10353a39.js';
|
|
5
5
|
import { T as TextSpanView } from './sqm-text-span-view-1781df94.js';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
2
|
import { j as useState, e as useEffect, m as h } from './extends-3a3f9fe2.js';
|
|
3
|
-
import './global-
|
|
3
|
+
import './global-e0e25c22.js';
|
|
4
4
|
import './use-callback-b38a1523.js';
|
|
5
|
-
import {
|
|
5
|
+
import { i as an, n as ne, j } from './index.module-eb50a8d2.js';
|
|
6
6
|
import './jss-preset-default.esm-71fae192.js';
|
|
7
7
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
8
8
|
import './mixins-10353a39.js';
|
|
9
9
|
import './sqm-text-span-view-1781df94.js';
|
|
10
|
-
import { P as PortalEmailVerificationView } from './sqm-portal-email-verification-view-
|
|
10
|
+
import { P as PortalEmailVerificationView } from './sqm-portal-email-verification-view-2af31979.js';
|
|
11
11
|
|
|
12
12
|
function usePortalEmailVerification(props) {
|
|
13
13
|
var _a, _b, _c, _d, _e;
|
|
14
|
-
const [request, { loading, data, errors }] =
|
|
15
|
-
const userIdent =
|
|
14
|
+
const [request, { loading, data, errors }] = an();
|
|
15
|
+
const userIdent = ne();
|
|
16
16
|
const email = (_a = userIdent === null || userIdent === void 0 ? void 0 : userIdent.managedIdentity) === null || _a === void 0 ? void 0 : _a.email;
|
|
17
17
|
const [success, setSuccess] = useState(false);
|
|
18
18
|
const [error, setError] = useState("");
|
|
@@ -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-e0e25c22.js';
|
|
3
3
|
import { j as jss, c as create } from './jss-preset-default.esm-71fae192.js';
|
|
4
4
|
|
|
5
5
|
function PoweredByImg({ color = "#A6A6A6", width = 190, height = 29, }) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
2
|
import { m as h } from './extends-3a3f9fe2.js';
|
|
3
|
-
import './global-
|
|
3
|
+
import './global-e0e25c22.js';
|
|
4
4
|
import './use-callback-b38a1523.js';
|
|
5
|
-
import './index.module-
|
|
5
|
+
import './index.module-eb50a8d2.js';
|
|
6
6
|
import './jss-preset-default.esm-71fae192.js';
|
|
7
7
|
import { g as getProps } from './utils-454405f5.js';
|
|
8
|
-
import { a as PortalFooterView } from './sqm-portal-footer-view-
|
|
8
|
+
import { a as PortalFooterView } from './sqm-portal-footer-view-60cd9ae5.js';
|
|
9
9
|
|
|
10
10
|
const PortalFooter = class {
|
|
11
11
|
constructor(hostRef) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
2
|
import { j as useState, e as useEffect, m as h } from './extends-3a3f9fe2.js';
|
|
3
3
|
import './use-callback-b38a1523.js';
|
|
4
|
-
import {
|
|
4
|
+
import { t as tn, j, b as mn } from './index.module-eb50a8d2.js';
|
|
5
5
|
import { j as jsonpointer } from './jsonpointer-388a7082.js';
|
|
6
6
|
import './jss-preset-default.esm-71fae192.js';
|
|
7
7
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
@@ -13,7 +13,7 @@ function usePortalForgotPassword() {
|
|
|
13
13
|
var _a, _b, _c, _d;
|
|
14
14
|
const [success, setSuccess] = useState(false);
|
|
15
15
|
const [error, setError] = useState("");
|
|
16
|
-
const [request, { loading, data, errors }] =
|
|
16
|
+
const [request, { loading, data, errors }] = tn();
|
|
17
17
|
const urlParams = new URLSearchParams(window.location.search);
|
|
18
18
|
const nextPage = urlParams.get("nextPage");
|
|
19
19
|
const submit = async (event) => {
|
|
@@ -69,7 +69,7 @@ const PortalForgotPassword = class {
|
|
|
69
69
|
? usePortalForgotPasswordDemo(this)
|
|
70
70
|
: usePortalForgotPassword();
|
|
71
71
|
const content = {
|
|
72
|
-
secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("sl-button", { type: "text", disabled: states.loading, onClick: () =>
|
|
72
|
+
secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("sl-button", { type: "text", disabled: states.loading, onClick: () => mn.push("/login") }, "Sign In"))),
|
|
73
73
|
messageSlot: (h$1("slot", { name: "messageSlot" }, "Enter your email below to receive a password reset link.")),
|
|
74
74
|
emailLabel: this.emailLabel,
|
|
75
75
|
submitLabel: this.submitLabel,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { r as registerInstance } from './index-17b4da69.js';
|
|
2
2
|
import { m as h } from './extends-3a3f9fe2.js';
|
|
3
3
|
import './use-callback-b38a1523.js';
|
|
4
|
-
import {
|
|
4
|
+
import { Y, b as mn, j } from './index.module-eb50a8d2.js';
|
|
5
5
|
|
|
6
6
|
function usePortalLogout({ nextPage }) {
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
Y(undefined);
|
|
8
|
+
mn.push({ pathname: nextPage, search: "" });
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
const PortalLogout = class {
|
package/dist/esm/{sqm-portal-profile-view-b67467b4.js → sqm-portal-profile-view-f1deea0f.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-e0e25c22.js';
|
|
3
3
|
import { j as jss, c as create } from './jss-preset-default.esm-71fae192.js';
|
|
4
4
|
import { P as PortalContainerView } from './sqm-portal-container-view-73757ca5.js';
|
|
5
5
|
import { T as TextSpanView } from './sqm-text-span-view-1781df94.js';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
2
|
import { j as useState, e as useEffect, m as h } from './extends-3a3f9fe2.js';
|
|
3
|
-
import './global-
|
|
3
|
+
import './global-e0e25c22.js';
|
|
4
4
|
import './use-callback-b38a1523.js';
|
|
5
|
-
import { d as dist,
|
|
5
|
+
import { d as dist, n as ne, c as cn, D as De, j } from './index.module-eb50a8d2.js';
|
|
6
6
|
import './jss-preset-default.esm-71fae192.js';
|
|
7
7
|
import { g as getProps } from './utils-454405f5.js';
|
|
8
8
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
9
9
|
import './sqm-portal-container-view-73757ca5.js';
|
|
10
10
|
import './sqm-text-span-view-1781df94.js';
|
|
11
|
-
import { P as PortalProfileView } from './sqm-portal-profile-view-
|
|
11
|
+
import { P as PortalProfileView } from './sqm-portal-profile-view-f1deea0f.js';
|
|
12
12
|
|
|
13
13
|
const GET_USER = dist.gql `
|
|
14
14
|
query {
|
|
@@ -54,12 +54,12 @@ const defaultFormState = {
|
|
|
54
54
|
error: "",
|
|
55
55
|
};
|
|
56
56
|
function usePortalProfile(props) {
|
|
57
|
-
const userIdent =
|
|
57
|
+
const userIdent = ne();
|
|
58
58
|
const [success, setSuccess] = useState(false);
|
|
59
59
|
const [userData, setUserData] = useState(undefined);
|
|
60
60
|
const [formState, setFormState] = useState(defaultFormState);
|
|
61
|
-
const userDataResponse =
|
|
62
|
-
const [upsertUser, upsertUserResponse] =
|
|
61
|
+
const userDataResponse = cn(GET_USER, {}, !(userIdent === null || userIdent === void 0 ? void 0 : userIdent.jwt));
|
|
62
|
+
const [upsertUser, upsertUserResponse] = De(UPSERT_USER);
|
|
63
63
|
useEffect(() => {
|
|
64
64
|
if (upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.loading)
|
|
65
65
|
return;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1, c as Host } from './index-17b4da69.js';
|
|
2
2
|
import { e as useEffect, m as h } from './extends-3a3f9fe2.js';
|
|
3
3
|
import './use-callback-b38a1523.js';
|
|
4
|
-
import {
|
|
4
|
+
import { n as ne, v as vn, b as mn, j } from './index.module-eb50a8d2.js';
|
|
5
5
|
|
|
6
6
|
function usePortalProtectedRoute({ requireEmailVerification, redirectTo, redirectToUnverified, }) {
|
|
7
7
|
var _a;
|
|
8
|
-
const userIdent =
|
|
8
|
+
const userIdent = ne();
|
|
9
9
|
const authenticated = !!(userIdent === null || userIdent === void 0 ? void 0 : userIdent.jwt);
|
|
10
10
|
const emailVerified = (_a = userIdent === null || userIdent === void 0 ? void 0 : userIdent.managedIdentity) === null || _a === void 0 ? void 0 : _a.emailVerified;
|
|
11
|
-
const { pathname, search } =
|
|
11
|
+
const { pathname, search } = vn();
|
|
12
12
|
const nextPageParam = new URLSearchParams();
|
|
13
13
|
nextPageParam.append("nextPage", `${pathname}${search}`);
|
|
14
14
|
useEffect(() => {
|
|
15
15
|
if (!authenticated) {
|
|
16
|
-
return
|
|
16
|
+
return mn.push({
|
|
17
17
|
pathname: redirectTo,
|
|
18
18
|
search: "?" + nextPageParam.toString(),
|
|
19
19
|
});
|
|
20
20
|
}
|
|
21
21
|
if (requireEmailVerification && !emailVerified) {
|
|
22
|
-
return
|
|
22
|
+
return mn.push({
|
|
23
23
|
pathname: redirectToUnverified || redirectTo,
|
|
24
24
|
search: "?" + nextPageParam.toString(),
|
|
25
25
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
2
|
import { j as useState, e as useEffect, m as h } from './extends-3a3f9fe2.js';
|
|
3
3
|
import './use-callback-b38a1523.js';
|
|
4
|
-
import {
|
|
4
|
+
import { L as Le, _ as _e, b as mn, j } from './index.module-eb50a8d2.js';
|
|
5
5
|
import { j as jsonpointer } from './jsonpointer-388a7082.js';
|
|
6
6
|
import './jss-preset-default.esm-71fae192.js';
|
|
7
7
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
@@ -10,11 +10,11 @@ import './sqm-text-span-view-1781df94.js';
|
|
|
10
10
|
import { P as PortalResetPasswordView } from './sqm-portal-reset-password-view-a4e50da2.js';
|
|
11
11
|
|
|
12
12
|
function usePortalResetPassword(props) {
|
|
13
|
-
var _a, _b, _c, _d, _e, _f;
|
|
13
|
+
var _a, _b, _c, _d, _e$1, _f;
|
|
14
14
|
const [reset, setReset] = useState(false);
|
|
15
15
|
const [error, setError] = useState("");
|
|
16
|
-
const [verifyPasswordResetCode, verifyPasswordResetCodeState] =
|
|
17
|
-
const [resetPassword, resetPasswordState] =
|
|
16
|
+
const [verifyPasswordResetCode, verifyPasswordResetCodeState] = Le();
|
|
17
|
+
const [resetPassword, resetPasswordState] = _e();
|
|
18
18
|
const urlParams = new URLSearchParams(window.location.search);
|
|
19
19
|
const oobCode = urlParams.get("oobCode");
|
|
20
20
|
urlParams.delete("oobCode");
|
|
@@ -34,13 +34,13 @@ function usePortalResetPassword(props) {
|
|
|
34
34
|
};
|
|
35
35
|
const gotoNextPage = () => {
|
|
36
36
|
urlParams.delete("nextPage");
|
|
37
|
-
|
|
37
|
+
mn.push({
|
|
38
38
|
pathname: nextPageOverride || props.nextPage,
|
|
39
39
|
search: urlParams.toString() && "?" + urlParams.toString(),
|
|
40
40
|
});
|
|
41
41
|
};
|
|
42
42
|
const failed = () => {
|
|
43
|
-
|
|
43
|
+
mn.push({
|
|
44
44
|
pathname: "/",
|
|
45
45
|
search: urlParams.toString() && "?" + urlParams.toString(),
|
|
46
46
|
});
|
|
@@ -68,7 +68,7 @@ function usePortalResetPassword(props) {
|
|
|
68
68
|
loading: resetPasswordState.loading,
|
|
69
69
|
reset,
|
|
70
70
|
confirmPassword: props.confirmPassword,
|
|
71
|
-
error: ((_e = (_d = (_c = (_b = resetPasswordState.errors) === null || _b === void 0 ? void 0 : _b.response) === null || _c === void 0 ? void 0 : _c.errors) === null || _d === void 0 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.message) || error,
|
|
71
|
+
error: ((_e$1 = (_d = (_c = (_b = resetPasswordState.errors) === null || _b === void 0 ? void 0 : _b.response) === null || _c === void 0 ? void 0 : _c.errors) === null || _d === void 0 ? void 0 : _d[0]) === null || _e$1 === void 0 ? void 0 : _e$1.message) || error,
|
|
72
72
|
oobCodeValidating: verifyPasswordResetCodeState.loading,
|
|
73
73
|
oobCodeValid: (_f = verifyPasswordResetCodeState.data) === null || _f === void 0 ? void 0 : _f.verifyManagedIdentityPasswordResetCode.success,
|
|
74
74
|
content: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
2
|
import { j as useState, e as useEffect, m as h } from './extends-3a3f9fe2.js';
|
|
3
3
|
import './use-callback-b38a1523.js';
|
|
4
|
-
import {
|
|
4
|
+
import { n as ne, l as Ye, b as mn, j } from './index.module-eb50a8d2.js';
|
|
5
5
|
import './jss-preset-default.esm-71fae192.js';
|
|
6
6
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
7
7
|
import './mixins-10353a39.js';
|
|
@@ -12,22 +12,22 @@ function usePortalVerifyEmail({ nextPage }) {
|
|
|
12
12
|
var _a, _b, _c, _d, _e;
|
|
13
13
|
const [verified, setVerified] = useState(false);
|
|
14
14
|
const [disableContinue, setDisableContinue] = useState(true);
|
|
15
|
-
const userIdent =
|
|
16
|
-
const [request, { loading, data, errors }] =
|
|
15
|
+
const userIdent = ne();
|
|
16
|
+
const [request, { loading, data, errors }] = Ye();
|
|
17
17
|
const [error, setError] = useState("");
|
|
18
18
|
const urlParams = new URLSearchParams(window.location.search);
|
|
19
19
|
const oobCode = urlParams.get("oobCode");
|
|
20
20
|
const nextPageOverride = urlParams.get("nextPage");
|
|
21
21
|
urlParams.delete("oobCode");
|
|
22
22
|
const failed = () => {
|
|
23
|
-
return
|
|
23
|
+
return mn.push({
|
|
24
24
|
pathname: "/",
|
|
25
25
|
search: urlParams.toString() && "?" + urlParams.toString(),
|
|
26
26
|
});
|
|
27
27
|
};
|
|
28
28
|
const gotoNextPage = () => {
|
|
29
29
|
urlParams.delete("nextPage");
|
|
30
|
-
return
|
|
30
|
+
return mn.push({
|
|
31
31
|
pathname: nextPageOverride || nextPage,
|
|
32
32
|
search: urlParams.toString() && "?" + urlParams.toString(),
|
|
33
33
|
});
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { h } from './index-17b4da69.js';
|
|
2
|
+
import { j as jss, c as create } from './jss-preset-default.esm-71fae192.js';
|
|
3
|
+
|
|
4
|
+
function ProgramExplainerStepView(props) {
|
|
5
|
+
const style = {
|
|
6
|
+
Container: {
|
|
7
|
+
display: "flex",
|
|
8
|
+
flexDirection: "column",
|
|
9
|
+
width: "100%",
|
|
10
|
+
height: "444px",
|
|
11
|
+
color: props.color,
|
|
12
|
+
background: props.background,
|
|
13
|
+
padding: "24px",
|
|
14
|
+
"@media (max-width: 1024px)": {
|
|
15
|
+
flexDirection: "row",
|
|
16
|
+
width: "auto",
|
|
17
|
+
height: "auto",
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
Logo: {},
|
|
21
|
+
Text: {
|
|
22
|
+
"@media (max-width: 1024px)": {
|
|
23
|
+
marginLeft: "24px",
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
Title: {
|
|
27
|
+
fontSize: "16px",
|
|
28
|
+
fontWeight: "var(--sl-font-weight-bold)",
|
|
29
|
+
textTransform: "uppercase",
|
|
30
|
+
lineHeight: "24px",
|
|
31
|
+
marginTop: "24px",
|
|
32
|
+
"@media (max-width: 1024px)": {
|
|
33
|
+
margin: "0",
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
Description: {
|
|
37
|
+
fontSize: "16px",
|
|
38
|
+
lineHeight: "28px",
|
|
39
|
+
marginTop: "12px",
|
|
40
|
+
"@media (max-width: 1024px)": {
|
|
41
|
+
marginTop: "8px",
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
jss.setup(create());
|
|
46
|
+
const sheet = jss.createStyleSheet(style);
|
|
47
|
+
const styleString = sheet.toString();
|
|
48
|
+
console.log(props);
|
|
49
|
+
return (h("div", { class: sheet.classes.Container },
|
|
50
|
+
h("style", { type: "text/css" }, styleString),
|
|
51
|
+
h("div", { class: sheet.classes.Logo },
|
|
52
|
+
h("div", { style: {
|
|
53
|
+
width: "64px",
|
|
54
|
+
height: "64px",
|
|
55
|
+
borderRadius: "100%",
|
|
56
|
+
background: "#F4F5F7",
|
|
57
|
+
color: "var(--sl-color-primary-400)",
|
|
58
|
+
textAlign: "center",
|
|
59
|
+
lineHeight: "72px",
|
|
60
|
+
} },
|
|
61
|
+
h("div", { style: { fontSize: "26px" } },
|
|
62
|
+
h("sl-icon", { name: props.icon })))),
|
|
63
|
+
h("div", { class: sheet.classes.Text },
|
|
64
|
+
h("div", { class: sheet.classes.Title }, props.cardTitle),
|
|
65
|
+
h("div", { class: sheet.classes.Description }, props.description))));
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export { ProgramExplainerStepView as P };
|
|
@@ -2,8 +2,7 @@ import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
|
2
2
|
import { m as h } from './extends-3a3f9fe2.js';
|
|
3
3
|
import './jss-preset-default.esm-71fae192.js';
|
|
4
4
|
import { g as getProps } from './utils-454405f5.js';
|
|
5
|
-
import {
|
|
6
|
-
import { P as ProgramExplainerStepView } from './sqm-program-explainer-step-view-26920cf9.js';
|
|
5
|
+
import { P as ProgramExplainerStepView } from './sqm-program-explainer-step-view-41c1eecd.js';
|
|
7
6
|
|
|
8
7
|
const ProgramExplainerStep = class {
|
|
9
8
|
constructor(hostRef) {
|
|
@@ -12,20 +11,8 @@ const ProgramExplainerStep = class {
|
|
|
12
11
|
}
|
|
13
12
|
disconnectedCallback() { }
|
|
14
13
|
render() {
|
|
15
|
-
|
|
16
|
-
return h$1(ProgramExplainerStepView, Object.assign({}, props));
|
|
14
|
+
return h$1(ProgramExplainerStepView, Object.assign({}, getProps(this)));
|
|
17
15
|
}
|
|
18
|
-
};
|
|
19
|
-
function useSidebarDemo(props) {
|
|
20
|
-
return cjs({
|
|
21
|
-
states: {
|
|
22
|
-
active: false,
|
|
23
|
-
},
|
|
24
|
-
data: {
|
|
25
|
-
label: props.label || "Dashboard",
|
|
26
|
-
icon: props.icon || "house",
|
|
27
|
-
},
|
|
28
|
-
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
29
|
-
}
|
|
16
|
+
};
|
|
30
17
|
|
|
31
18
|
export { ProgramExplainerStep as sqm_program_explainer_step };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { h } from './index-17b4da69.js';
|
|
2
|
+
import { j as jss, c as create } from './jss-preset-default.esm-71fae192.js';
|
|
3
|
+
|
|
4
|
+
function ProgramExplainerView(props, children) {
|
|
5
|
+
const style = {
|
|
6
|
+
Container: {
|
|
7
|
+
display: "flex",
|
|
8
|
+
"@media (max-width: 1024px)": {
|
|
9
|
+
flexDirection: "column",
|
|
10
|
+
},
|
|
11
|
+
},
|
|
12
|
+
Card: {
|
|
13
|
+
padding: "24px",
|
|
14
|
+
color: props.color,
|
|
15
|
+
background: props.background,
|
|
16
|
+
},
|
|
17
|
+
Title: {
|
|
18
|
+
fontSize: "28px",
|
|
19
|
+
lineHeight: "36px",
|
|
20
|
+
fontWeight: "700",
|
|
21
|
+
},
|
|
22
|
+
Description: {
|
|
23
|
+
fontSize: "16px",
|
|
24
|
+
lineHeight: "28px",
|
|
25
|
+
fontWeight: "400",
|
|
26
|
+
marginTop: "8px",
|
|
27
|
+
},
|
|
28
|
+
};
|
|
29
|
+
jss.setup(create());
|
|
30
|
+
const sheet = jss.createStyleSheet(style);
|
|
31
|
+
const styleString = sheet.toString();
|
|
32
|
+
console.log(props);
|
|
33
|
+
return (h("div", null,
|
|
34
|
+
h("style", { type: "text/css" }, styleString),
|
|
35
|
+
h("div", { class: sheet.classes.Card },
|
|
36
|
+
h("div", { class: sheet.classes.Title }, props.header)),
|
|
37
|
+
h("div", { class: sheet.classes.Container }, children),
|
|
38
|
+
h("div", { class: sheet.classes.Card },
|
|
39
|
+
h("div", { class: sheet.classes.Title }, props.cardTitle),
|
|
40
|
+
h("div", { class: sheet.classes.Description }, props.description))));
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export { ProgramExplainerView as P };
|
|
@@ -1,47 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { m as h
|
|
3
|
-
import
|
|
4
|
-
import { g as
|
|
5
|
-
|
|
6
|
-
const style = {
|
|
7
|
-
ItemsContainer: {
|
|
8
|
-
"min-width": "290px",
|
|
9
|
-
"max-width": "320px",
|
|
10
|
-
"box-sizing": "border-box",
|
|
11
|
-
padding: "20px 15px",
|
|
12
|
-
...gap({ direction: "column", size: "4px" }),
|
|
13
|
-
},
|
|
14
|
-
};
|
|
15
|
-
const vanillaStyle = `
|
|
16
|
-
:host{
|
|
17
|
-
width: 30vw;
|
|
18
|
-
min-width: min-content;
|
|
19
|
-
max-width: 320px;
|
|
20
|
-
}
|
|
21
|
-
`;
|
|
22
|
-
jss.setup(create());
|
|
23
|
-
const sheet = jss.createStyleSheet(style);
|
|
24
|
-
const styleString = sheet.toString();
|
|
25
|
-
function ProgramExplainerView(
|
|
26
|
-
// @ts-ignore - Stencil requires props (even if empty)
|
|
27
|
-
props, children) {
|
|
28
|
-
return (h("div", null,
|
|
29
|
-
h("div", { class: sheet.classes.ItemsContainer },
|
|
30
|
-
h("style", { type: "text/css" },
|
|
31
|
-
vanillaStyle,
|
|
32
|
-
styleString),
|
|
33
|
-
children)));
|
|
34
|
-
}
|
|
1
|
+
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
|
+
import { m as h } from './extends-3a3f9fe2.js';
|
|
3
|
+
import './jss-preset-default.esm-71fae192.js';
|
|
4
|
+
import { g as getProps } from './utils-454405f5.js';
|
|
5
|
+
import { P as ProgramExplainerView } from './sqm-program-explainer-view-098a64a9.js';
|
|
35
6
|
|
|
36
7
|
const ProgramExplainer = class {
|
|
37
8
|
constructor(hostRef) {
|
|
38
9
|
registerInstance(this, hostRef);
|
|
39
10
|
this.ignored = true;
|
|
40
|
-
h
|
|
11
|
+
h(this);
|
|
41
12
|
}
|
|
42
13
|
disconnectedCallback() { }
|
|
43
14
|
render() {
|
|
44
|
-
return (h(ProgramExplainerView,
|
|
15
|
+
return (h$1(ProgramExplainerView, Object.assign({}, getProps(this)), h$1("slot", null)));
|
|
45
16
|
}
|
|
46
17
|
};
|
|
47
18
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1, g as getElement, c as Host } from './index-17b4da69.js';
|
|
2
2
|
import { m as h } from './extends-3a3f9fe2.js';
|
|
3
3
|
import './use-callback-b38a1523.js';
|
|
4
|
-
import './index.module-
|
|
5
|
-
import { a as useRequestRerender } from './re-render-
|
|
4
|
+
import './index.module-eb50a8d2.js';
|
|
5
|
+
import { a as useRequestRerender } from './re-render-6d5b856e.js';
|
|
6
6
|
|
|
7
7
|
const ReferralTableGenericColumn = class {
|
|
8
8
|
constructor(hostRef) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1, c as Host } from './index-17b4da69.js';
|
|
2
2
|
import { m as h } from './extends-3a3f9fe2.js';
|
|
3
3
|
import './use-callback-b38a1523.js';
|
|
4
|
-
import './index.module-
|
|
5
|
-
import { a as useRequestRerender } from './re-render-
|
|
4
|
+
import './index.module-eb50a8d2.js';
|
|
5
|
+
import { a as useRequestRerender } from './re-render-6d5b856e.js';
|
|
6
6
|
|
|
7
7
|
const ReferralTableDateColumn = class {
|
|
8
8
|
constructor(hostRef) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1, c as Host } from './index-17b4da69.js';
|
|
2
2
|
import { m as h } from './extends-3a3f9fe2.js';
|
|
3
3
|
import './use-callback-b38a1523.js';
|
|
4
|
-
import './index.module-
|
|
5
|
-
import { a as useRequestRerender } from './re-render-
|
|
4
|
+
import './index.module-eb50a8d2.js';
|
|
5
|
+
import { a as useRequestRerender } from './re-render-6d5b856e.js';
|
|
6
6
|
|
|
7
7
|
const ReferralTableRewardsColumn = class {
|
|
8
8
|
constructor(hostRef) {
|