@saasquatch/mint-components 1.13.0-0 → 1.13.0-2
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/{GenericTableView-7ef786c3.js → GenericTableView-a9f4ba75.js} +1 -1
- package/dist/cjs/{ShadowViewAddon-2aa1bd99.js → ShadowViewAddon-44cb1a98.js} +29 -29
- package/dist/cjs/{copy-text-view-43e8349f.js → copy-text-view-9b950efe.js} +10 -10
- package/dist/cjs/{email-registration-view-4eeee3e4.js → email-registration-view-55b378dc.js} +1 -1
- package/dist/cjs/{global-d9abaf4d.js → global-19fc8a7a.js} +3 -3
- package/dist/cjs/{index-3cf5ef3d.js → index-a29c60ef.js} +10 -0
- package/dist/cjs/{index.module-ccf9bd9c.js → index.module-57703088.js} +23 -58
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{luxon-14ae1f8a.js → luxon-2926d85f.js} +1 -1
- package/dist/cjs/mint-components.cjs.js +4 -4
- package/dist/cjs/{mockRewardData-a384d9f5.js → mockRewardData-272e22d6.js} +1 -1
- package/dist/cjs/raisins-plop-target.cjs.entry.js +1 -1
- package/dist/cjs/{re-render-1e63c82b.js → re-render-35b016ed.js} +5 -5
- package/dist/cjs/{sqm-asset-card-view-a3abee0b.js → sqm-asset-card-view-21ddf04f.js} +1 -1
- package/dist/cjs/sqm-asset-card.cjs.entry.js +4 -4
- package/dist/cjs/sqm-banking-info-form_16.cjs.entry.js +65 -65
- package/dist/cjs/{sqm-base-registration-form-view-e4a74dee.js → sqm-base-registration-form-view-d5685747.js} +2 -2
- package/dist/cjs/sqm-big-stat_38.cjs.entry.js +93 -71
- package/dist/cjs/{sqm-close-button-view-0cdada3a.js → sqm-close-button-view-ea3fa23b.js} +1 -1
- package/dist/cjs/sqm-close-button.cjs.entry.js +4 -4
- package/dist/cjs/sqm-context-router.cjs.entry.js +4 -4
- package/dist/cjs/sqm-empty_4.cjs.entry.js +5 -5
- package/dist/cjs/sqm-form-message.cjs.entry.js +2 -2
- package/dist/cjs/sqm-google-sign-in.cjs.entry.js +53 -28
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +7 -7
- package/dist/cjs/sqm-header-logo.cjs.entry.js +2 -2
- package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +6 -6
- package/dist/cjs/{sqm-invoice-table-view-a13d1c7f.js → sqm-invoice-table-view-9dfa2a16.js} +2 -2
- package/dist/cjs/{sqm-leaderboard-rank-view-133f8d95.js → sqm-leaderboard-rank-view-d39a55d8.js} +1 -1
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +8 -8
- package/dist/cjs/{sqm-logout-current-user-view-64ca6abe.js → sqm-logout-current-user-view-11d57c12.js} +1 -1
- package/dist/cjs/sqm-logout-current-user.cjs.entry.js +6 -6
- package/dist/cjs/{sqm-navigation-sidebar-item-view-38519acf.js → sqm-navigation-sidebar-item-view-9bba5f7e.js} +3 -3
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +5 -5
- package/dist/cjs/{sqm-navigation-sidebar-view-37209a17.js → sqm-navigation-sidebar-view-17111896.js} +1 -1
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +6 -6
- package/dist/cjs/sqm-pagination_3.cjs.entry.js +13 -13
- package/dist/cjs/sqm-password-field.cjs.entry.js +4 -4
- package/dist/cjs/sqm-popup-container.cjs.entry.js +6 -6
- package/dist/cjs/{sqm-portal-container-view-9a36f5ed.js → sqm-portal-container-view-4f15143a.js} +1 -1
- package/dist/cjs/{sqm-portal-email-verification-view-6e1e80e7.js → sqm-portal-email-verification-view-98d84549.js} +3 -3
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +11 -11
- package/dist/cjs/{sqm-portal-forgot-password-view-97903679.js → sqm-portal-forgot-password-view-78f19ef9.js} +2 -2
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +8 -8
- package/dist/cjs/sqm-portal-google-registration-form.cjs.entry.js +78 -17
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +4 -4
- package/dist/cjs/{sqm-portal-profile-view-f4489585.js → sqm-portal-profile-view-bae28ea0.js} +3 -3
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +10 -10
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +7 -7
- package/dist/cjs/{sqm-portal-registration-form-view-add61eb6.js → sqm-portal-registration-form-view-e947a5b3.js} +2 -2
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +8 -8
- package/dist/cjs/{sqm-portal-reset-password-view-0ed5419e.js → sqm-portal-reset-password-view-fe602822.js} +2 -2
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +10 -10
- package/dist/cjs/{sqm-portal-verify-email-view-cd2c3086.js → sqm-portal-verify-email-view-7b678f34.js} +2 -2
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +10 -10
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +11 -11
- package/dist/cjs/sqm-referred-registration.cjs.entry.js +6 -6
- package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +3 -3
- package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +4 -4
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +15 -15
- package/dist/cjs/sqm-route.cjs.entry.js +1 -1
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +153 -151
- package/dist/cjs/sqm-tab.cjs.entry.js +4 -4
- package/dist/cjs/sqm-tabs.cjs.entry.js +6 -6
- package/dist/cjs/{sqm-text-span-view-a22f50aa.js → sqm-text-span-view-0aa82125.js} +1 -1
- package/dist/cjs/sqm-text-span.cjs.entry.js +3 -3
- package/dist/cjs/{stencil-hooks.module-ece1ee46.js → stencil-hooks.module-3a336b0f.js} +1 -1
- package/dist/cjs/{useChildElements-438cf387.js → useChildElements-854cd1e5.js} +3 -3
- package/dist/cjs/{useInstantAccessRegistration-7d91867a.js → useInstantAccessRegistration-daff8290.js} +4 -4
- package/dist/cjs/{usePortalRegistrationForm-0d4fbcde.js → usePortalRegistrationForm-a89d736e.js} +9 -7
- package/dist/cjs/{useReferralTable-6b4920f9.js → useReferralTable-283d2316.js} +11 -11
- package/dist/cjs/useRegistrationFormState-986b5ea1.js +27 -0
- package/dist/cjs/{utilities-27e9535b.js → utilities-c135f16f.js} +2 -2
- package/dist/collection/components/sqm-base-registration/BaseRegistrationForm.stories.js +14 -3
- package/dist/collection/components/sqm-google-sign-in/sqm-google-sign-in.js +60 -30
- package/dist/collection/components/sqm-google-sign-in/useGoogleSignIn.js +43 -0
- package/dist/collection/components/sqm-portal-google-registration-form/PortalGoogleRegistrationForm.stories.js +43 -63
- package/dist/collection/components/sqm-portal-google-registration-form/sqm-portal-google-registration-form.js +3 -2
- package/dist/collection/components/sqm-portal-google-registration-form/usePortalGoogleRegistrationForm.js +11 -9
- package/dist/collection/components/sqm-portal-login/PortalLogin.stories.js +24 -8
- package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +8 -14
- package/dist/collection/components/sqm-portal-login/usePortalLogin.js +24 -4
- package/dist/collection/components/sqm-portal-registration-form/usePortalRegistrationForm.js +2 -0
- package/dist/collection/components/sqm-portal-registration-form/useRegistrationFormState.js +13 -0
- package/dist/collection/components/sqm-referral-table/ReferralTableRewardsCell.stories.js +0 -1
- package/dist/collection/components/sqm-rewards-table/RewardsTableCell.stories.js +1 -3
- package/dist/esm/{GenericTableView-6aa9fac9.js → GenericTableView-7b9087af.js} +1 -1
- package/dist/esm/{ShadowViewAddon-af23bc54.js → ShadowViewAddon-eba44767.js} +29 -29
- package/dist/esm/{copy-text-view-61eebf5d.js → copy-text-view-b060162f.js} +10 -10
- package/dist/esm/{email-registration-view-6870d230.js → email-registration-view-a7818cf2.js} +1 -1
- package/dist/esm/{global-3611a2b7.js → global-bedc4329.js} +3 -3
- package/dist/esm/{index-60f16d0a.js → index-91e7729f.js} +10 -0
- package/dist/esm/{index.module-f3d96fbb.js → index.module-a2989d3c.js} +6 -41
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{luxon-9b1f9912.js → luxon-8d51c92b.js} +1 -1
- package/dist/esm/mint-components.js +4 -4
- package/dist/esm/{mockRewardData-8b3afd15.js → mockRewardData-8bd1b356.js} +1 -1
- package/dist/esm/raisins-plop-target.entry.js +1 -1
- package/dist/esm/{re-render-3b630de2.js → re-render-268bb9c8.js} +5 -5
- package/dist/esm/{sqm-asset-card-view-2157b61f.js → sqm-asset-card-view-fe5db3c0.js} +1 -1
- package/dist/esm/sqm-asset-card.entry.js +4 -4
- package/dist/esm/sqm-banking-info-form_16.entry.js +65 -65
- package/dist/esm/{sqm-base-registration-form-view-dd481f19.js → sqm-base-registration-form-view-98c4db70.js} +2 -2
- package/dist/esm/sqm-big-stat_38.entry.js +93 -71
- package/dist/esm/{sqm-close-button-view-0c0bfff8.js → sqm-close-button-view-f9819751.js} +1 -1
- package/dist/esm/sqm-close-button.entry.js +4 -4
- package/dist/esm/sqm-context-router.entry.js +4 -4
- package/dist/esm/sqm-empty_4.entry.js +5 -5
- package/dist/esm/sqm-form-message.entry.js +2 -2
- package/dist/esm/sqm-google-sign-in.entry.js +53 -28
- package/dist/esm/sqm-graphql-client-provider.entry.js +7 -7
- package/dist/esm/sqm-header-logo.entry.js +2 -2
- package/dist/esm/sqm-instant-access-registration.entry.js +6 -6
- package/dist/esm/{sqm-invoice-table-view-b8240dc6.js → sqm-invoice-table-view-8e2bb54a.js} +2 -2
- package/dist/esm/{sqm-leaderboard-rank-view-7cd0de83.js → sqm-leaderboard-rank-view-753c8d4a.js} +1 -1
- package/dist/esm/sqm-leaderboard-rank.entry.js +8 -8
- package/dist/esm/{sqm-logout-current-user-view-02e9f508.js → sqm-logout-current-user-view-8ef8180f.js} +1 -1
- package/dist/esm/sqm-logout-current-user.entry.js +6 -6
- package/dist/esm/{sqm-navigation-sidebar-item-view-a4e4edb6.js → sqm-navigation-sidebar-item-view-56da6bca.js} +3 -3
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +5 -5
- package/dist/esm/{sqm-navigation-sidebar-view-ce55d74d.js → sqm-navigation-sidebar-view-9d802b78.js} +1 -1
- package/dist/esm/sqm-navigation-sidebar.entry.js +6 -6
- package/dist/esm/sqm-pagination_3.entry.js +13 -13
- package/dist/esm/sqm-password-field.entry.js +4 -4
- package/dist/esm/sqm-popup-container.entry.js +6 -6
- package/dist/esm/{sqm-portal-container-view-c3be4b88.js → sqm-portal-container-view-1683ae32.js} +1 -1
- package/dist/esm/{sqm-portal-email-verification-view-d500dd01.js → sqm-portal-email-verification-view-44c8970f.js} +3 -3
- package/dist/esm/sqm-portal-email-verification.entry.js +11 -11
- package/dist/esm/{sqm-portal-forgot-password-view-4f6c89a7.js → sqm-portal-forgot-password-view-3d3182f1.js} +2 -2
- package/dist/esm/sqm-portal-forgot-password.entry.js +8 -8
- package/dist/esm/sqm-portal-google-registration-form.entry.js +78 -17
- package/dist/esm/sqm-portal-logout.entry.js +4 -4
- package/dist/esm/{sqm-portal-profile-view-2997f902.js → sqm-portal-profile-view-39039274.js} +3 -3
- package/dist/esm/sqm-portal-profile.entry.js +10 -10
- package/dist/esm/sqm-portal-protected-route.entry.js +7 -7
- package/dist/esm/{sqm-portal-registration-form-view-20b9c9bc.js → sqm-portal-registration-form-view-90e2bfd5.js} +2 -2
- package/dist/esm/sqm-portal-registration-form.entry.js +8 -8
- package/dist/esm/{sqm-portal-reset-password-view-e29f1842.js → sqm-portal-reset-password-view-54a8651f.js} +2 -2
- package/dist/esm/sqm-portal-reset-password.entry.js +10 -10
- package/dist/esm/{sqm-portal-verify-email-view-d5dcf5c5.js → sqm-portal-verify-email-view-b12cb894.js} +2 -2
- package/dist/esm/sqm-portal-verify-email.entry.js +10 -10
- package/dist/esm/sqm-referral-table_11.entry.js +11 -11
- package/dist/esm/sqm-referred-registration.entry.js +6 -6
- package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +3 -3
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +4 -4
- package/dist/esm/sqm-rewards-table_9.entry.js +15 -15
- package/dist/esm/sqm-route.entry.js +1 -1
- package/dist/esm/sqm-stencilbook.entry.js +153 -151
- package/dist/esm/sqm-tab.entry.js +4 -4
- package/dist/esm/sqm-tabs.entry.js +6 -6
- package/dist/esm/{sqm-text-span-view-d1b54710.js → sqm-text-span-view-ca32495e.js} +1 -1
- package/dist/esm/sqm-text-span.entry.js +3 -3
- package/dist/esm/{stencil-hooks.module-e20edc0b.js → stencil-hooks.module-4bc38af4.js} +1 -1
- package/dist/esm/{useChildElements-d1d3fedd.js → useChildElements-38c11321.js} +3 -3
- package/dist/esm/{useInstantAccessRegistration-c5d80a2e.js → useInstantAccessRegistration-7255b0ca.js} +4 -4
- package/dist/esm/{usePortalRegistrationForm-e8ec6d4e.js → usePortalRegistrationForm-5715c7a5.js} +9 -7
- package/dist/esm/{useReferralTable-fbcfc2a7.js → useReferralTable-d77b11f5.js} +11 -11
- package/dist/esm/useRegistrationFormState-01cdd8c7.js +23 -0
- package/dist/esm/{utilities-33996ce7.js → utilities-863d06d1.js} +2 -2
- package/dist/esm-es5/{GenericTableView-6aa9fac9.js → GenericTableView-7b9087af.js} +1 -1
- package/dist/esm-es5/ShadowViewAddon-eba44767.js +1 -0
- package/dist/esm-es5/copy-text-view-b060162f.js +1 -0
- package/dist/esm-es5/{email-registration-view-6870d230.js → email-registration-view-a7818cf2.js} +1 -1
- package/dist/esm-es5/{global-3611a2b7.js → global-bedc4329.js} +2 -2
- package/dist/esm-es5/{index-60f16d0a.js → index-91e7729f.js} +1 -1
- package/dist/esm-es5/index.module-a2989d3c.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{luxon-9b1f9912.js → luxon-8d51c92b.js} +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/{mockRewardData-8b3afd15.js → mockRewardData-8bd1b356.js} +1 -1
- package/dist/esm-es5/raisins-plop-target.entry.js +1 -1
- package/dist/esm-es5/{re-render-3b630de2.js → re-render-268bb9c8.js} +1 -1
- package/dist/esm-es5/{sqm-asset-card-view-2157b61f.js → sqm-asset-card-view-fe5db3c0.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-base-registration-form-view-dd481f19.js → sqm-base-registration-form-view-98c4db70.js} +1 -1
- package/dist/esm-es5/sqm-big-stat_38.entry.js +1 -1
- package/dist/esm-es5/{sqm-close-button-view-0c0bfff8.js → sqm-close-button-view-f9819751.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-form-message.entry.js +1 -1
- package/dist/esm-es5/sqm-google-sign-in.entry.js +1 -1
- package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm-es5/sqm-header-logo.entry.js +1 -1
- package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
- package/dist/esm-es5/{sqm-invoice-table-view-b8240dc6.js → sqm-invoice-table-view-8e2bb54a.js} +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank-view-753c8d4a.js +1 -0
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/{sqm-logout-current-user-view-02e9f508.js → sqm-logout-current-user-view-8ef8180f.js} +1 -1
- package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
- package/dist/esm-es5/{sqm-navigation-sidebar-item-view-a4e4edb6.js → sqm-navigation-sidebar-item-view-56da6bca.js} +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/{sqm-navigation-sidebar-view-ce55d74d.js → sqm-navigation-sidebar-view-9d802b78.js} +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
- package/dist/esm-es5/sqm-pagination_3.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-container-view-c3be4b88.js → sqm-portal-container-view-1683ae32.js} +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-d500dd01.js → sqm-portal-email-verification-view-44c8970f.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-forgot-password-view-4f6c89a7.js → sqm-portal-forgot-password-view-3d3182f1.js} +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-google-registration-form.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-2997f902.js → sqm-portal-profile-view-39039274.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-view-20b9c9bc.js → sqm-portal-registration-form-view-90e2bfd5.js} +1 -1
- package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-reset-password-view-e29f1842.js → sqm-portal-reset-password-view-54a8651f.js} +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-verify-email-view-d5dcf5c5.js → sqm-portal-verify-email-view-b12cb894.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-cell.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-route.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/{sqm-text-span-view-d1b54710.js → sqm-text-span-view-ca32495e.js} +1 -1
- package/dist/esm-es5/sqm-text-span.entry.js +1 -1
- package/dist/esm-es5/{stencil-hooks.module-e20edc0b.js → stencil-hooks.module-4bc38af4.js} +1 -1
- package/dist/esm-es5/useChildElements-38c11321.js +1 -0
- package/dist/esm-es5/{useInstantAccessRegistration-c5d80a2e.js → useInstantAccessRegistration-7255b0ca.js} +1 -1
- package/dist/esm-es5/usePortalRegistrationForm-5715c7a5.js +1 -0
- package/dist/esm-es5/{useReferralTable-fbcfc2a7.js → useReferralTable-d77b11f5.js} +1 -1
- package/dist/esm-es5/useRegistrationFormState-01cdd8c7.js +1 -0
- package/dist/esm-es5/{utilities-33996ce7.js → utilities-863d06d1.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-76769baa.entry.js → p-0323586f.entry.js} +15 -15
- package/dist/mint-components/{p-5b6cf6cd.system.js → p-046f4631.system.js} +1 -1
- package/dist/mint-components/{p-863340dc.entry.js → p-0873eaa8.entry.js} +1 -1
- package/dist/mint-components/p-09c5e3ee.system.js +1 -0
- package/dist/mint-components/{p-dacefee2.entry.js → p-0aa62b64.entry.js} +1 -1
- package/dist/mint-components/p-0e53c59e.system.js +1 -0
- package/dist/mint-components/p-127e66c2.system.js +1 -0
- package/dist/mint-components/{p-1ab3f305.system.js → p-14a65f29.system.js} +1 -1
- package/dist/mint-components/{p-aed99250.js → p-16c7bfda.js} +3 -3
- package/dist/mint-components/{p-22110634.js → p-1833c4f5.js} +1 -1
- package/dist/mint-components/{p-3b923175.system.entry.js → p-19bc3406.system.entry.js} +1 -1
- package/dist/mint-components/{p-38b8050c.system.entry.js → p-1b0c58bc.system.entry.js} +1 -1
- package/dist/mint-components/{p-0aa76ad0.system.entry.js → p-1b3ab15a.system.entry.js} +1 -1
- package/dist/mint-components/p-1c5cffae.js +1 -0
- package/dist/mint-components/{p-682450a8.js → p-1ef299d7.js} +2 -2
- package/dist/mint-components/{p-1d58a8ff.entry.js → p-2126e1e6.entry.js} +1 -1
- package/dist/mint-components/{p-88197cfd.js → p-229f797b.js} +1 -1
- package/dist/mint-components/{p-c4c922fc.system.entry.js → p-24c4e0b8.system.entry.js} +1 -1
- package/dist/mint-components/{p-e56447fd.js → p-24db5c70.js} +1 -1
- package/dist/mint-components/{p-5309ebf3.js → p-266a8b4d.js} +1 -1
- package/dist/mint-components/p-26ec2894.entry.js +1 -0
- package/dist/mint-components/{p-5fb1bcb5.entry.js → p-28042d23.entry.js} +1 -1
- package/dist/mint-components/{p-6a95e6b7.js → p-2ab3b8d6.js} +2 -2
- package/dist/mint-components/{p-75956e50.entry.js → p-2bbff88f.entry.js} +1 -1
- package/dist/mint-components/{p-bd5706ba.entry.js → p-2dc5e60a.entry.js} +1 -1
- package/dist/mint-components/{p-c1ede4f5.system.js → p-2dca9e1a.system.js} +1 -1
- package/dist/mint-components/p-30108c0e.js +1 -0
- package/dist/mint-components/p-31a691af.js +1 -0
- package/dist/mint-components/p-35698aaa.system.js +1 -0
- package/dist/mint-components/{p-aa5446c1.js → p-35b475bf.js} +1 -1
- package/dist/mint-components/p-380bfde1.entry.js +1 -0
- package/dist/mint-components/{p-222fa722.system.js → p-38e5c429.system.js} +1 -1
- package/dist/mint-components/p-3972037c.system.entry.js +1 -0
- package/dist/mint-components/p-39b1a7fe.js +1 -0
- package/dist/mint-components/p-3bdd338c.system.js +1 -0
- package/dist/mint-components/{p-f8047aab.entry.js → p-3e1b7fb4.entry.js} +1 -1
- package/dist/mint-components/{p-6465b781.js → p-3ec660e9.js} +1 -1
- package/dist/mint-components/p-3f6e0197.system.entry.js +1 -0
- package/dist/mint-components/p-40e99b24.js +1 -0
- package/dist/mint-components/{p-93124bdb.entry.js → p-4448febd.entry.js} +1 -1
- package/dist/mint-components/{p-aeea67a3.entry.js → p-45436d5a.entry.js} +1 -1
- package/dist/mint-components/{p-64af8fa4.system.js → p-46ab5f80.system.js} +1 -1
- package/dist/mint-components/{p-58bcece7.system.js → p-48135f99.system.js} +1 -1
- package/dist/mint-components/{p-697d6e54.system.js → p-492b70db.system.js} +1 -1
- package/dist/mint-components/{p-683cfd07.js → p-492fdaf9.js} +1 -1
- package/dist/mint-components/{p-6ac9d2cf.entry.js → p-4ae54b04.entry.js} +1 -1
- package/dist/mint-components/{p-c33ccfb7.entry.js → p-4b6dc0e5.entry.js} +1 -1
- package/dist/mint-components/{p-9259fd35.system.entry.js → p-4bcb04aa.system.entry.js} +1 -1
- package/dist/mint-components/p-4daa3f8a.system.entry.js +1 -0
- package/dist/mint-components/p-4e5af50c.js +1 -0
- package/dist/mint-components/{p-a631db44.system.js → p-4f45be94.system.js} +1 -1
- package/dist/mint-components/{p-d47569d0.js → p-506679e9.js} +1 -1
- package/dist/mint-components/p-53aaa0a4.entry.js +1 -0
- package/dist/mint-components/p-550ef977.js +13 -0
- package/dist/mint-components/p-571c451e.entry.js +1 -0
- package/dist/mint-components/{p-12d27b9b.js → p-5bedb58c.js} +1 -1
- package/dist/mint-components/{p-e64c49dd.system.js → p-6055eb4c.system.js} +1 -1
- package/dist/mint-components/{p-3dc9a448.entry.js → p-618e1342.entry.js} +1 -1
- package/dist/mint-components/{p-b33381a7.js → p-626e9e84.js} +1 -1
- package/dist/mint-components/{p-ffe78243.js → p-62f6627d.js} +1 -1
- package/dist/mint-components/{p-0fd20804.system.entry.js → p-635aaf11.system.entry.js} +1 -1
- package/dist/mint-components/{p-b3499953.entry.js → p-65ba9e94.entry.js} +1 -1
- package/dist/mint-components/{p-ec379cf4.system.entry.js → p-6a8d9def.system.entry.js} +1 -1
- package/dist/mint-components/{p-d477a07b.system.js → p-6d9e52c7.system.js} +1 -1
- package/dist/mint-components/{p-71d6b762.js → p-6de85677.js} +1 -1
- package/dist/mint-components/{p-f8b41805.system.js → p-7166caa6.system.js} +1 -1
- package/dist/mint-components/{p-9d078f60.js → p-726a9924.js} +1 -1
- package/dist/mint-components/{p-7d2d59ec.system.entry.js → p-731aa5c6.system.entry.js} +1 -1
- package/dist/mint-components/p-749c7c9c.system.js +1 -0
- package/dist/mint-components/{p-e864a155.entry.js → p-75f50e5a.entry.js} +1 -1
- package/dist/mint-components/{p-c2bc302f.system.entry.js → p-7989a098.system.entry.js} +1 -1
- package/dist/mint-components/p-79ea1597.system.entry.js +1 -0
- package/dist/mint-components/{p-9716a83b.js → p-7a9290ba.js} +1 -1
- package/dist/mint-components/{p-b7edef12.system.entry.js → p-7bcf4467.system.entry.js} +1 -1
- package/dist/mint-components/{p-3dbcd42a.system.entry.js → p-7cb919d4.system.entry.js} +1 -1
- package/dist/mint-components/{p-7bc9308c.system.entry.js → p-7dabdca6.system.entry.js} +1 -1
- package/dist/mint-components/{p-f7175fc2.system.entry.js → p-8056fd5b.system.entry.js} +1 -1
- package/dist/mint-components/{p-a2a3d9dc.entry.js → p-80fc549b.entry.js} +1 -1
- package/dist/mint-components/{p-0e89ac7f.system.entry.js → p-81665df6.system.entry.js} +1 -1
- package/dist/mint-components/{p-0b6200b3.js → p-837a0fdd.js} +1 -1
- package/dist/mint-components/{p-3ae32130.system.js → p-8413ade9.system.js} +1 -1
- package/dist/mint-components/{p-0725d1a7.system.entry.js → p-857947fa.system.entry.js} +1 -1
- package/dist/mint-components/p-868f176e.entry.js +1 -0
- package/dist/mint-components/{p-500a2bff.entry.js → p-8975c2be.entry.js} +1 -1
- package/dist/mint-components/p-8987607b.system.entry.js +1 -0
- package/dist/mint-components/{p-5c714029.js → p-8d77feee.js} +1 -1
- package/dist/mint-components/{p-2dff4fb2.js → p-92816d1f.js} +1 -1
- package/dist/mint-components/{p-7141d536.system.entry.js → p-92a25556.system.entry.js} +1 -1
- package/dist/mint-components/p-95c64cfd.system.js +1 -0
- package/dist/mint-components/{p-8f705bea.system.entry.js → p-96431b4f.system.entry.js} +1 -1
- package/dist/mint-components/p-96b48c2b.system.js +1 -0
- package/dist/mint-components/{p-9e4e3d5f.system.js → p-97d4d651.system.js} +1 -1
- package/dist/mint-components/{p-b043693d.system.entry.js → p-988ea164.system.entry.js} +1 -1
- package/dist/mint-components/{p-ff19bf56.system.js → p-99ad7d56.system.js} +1 -1
- package/dist/mint-components/{p-9d954277.system.entry.js → p-9a0c3ed9.system.entry.js} +1 -1
- package/dist/mint-components/{p-bc305236.system.entry.js → p-9a16a3d8.system.entry.js} +1 -1
- package/dist/mint-components/p-9b779add.entry.js +1 -0
- package/dist/mint-components/p-9e49479a.entry.js +13 -0
- package/dist/mint-components/p-9f231a48.system.entry.js +1 -0
- package/dist/mint-components/p-a1f40614.system.entry.js +1 -0
- package/dist/mint-components/{p-44c4a54f.system.entry.js → p-a21d1a30.system.entry.js} +1 -1
- package/dist/mint-components/{p-70eafbbd.system.entry.js → p-a4a5beb5.system.entry.js} +1 -1
- package/dist/mint-components/{p-15b2063c.system.js → p-a8524459.system.js} +1 -1
- package/dist/mint-components/{p-9fff2218.js → p-a9f4ddb1.js} +1 -1
- package/dist/mint-components/{p-273ad080.system.entry.js → p-aaeaff1a.system.entry.js} +1 -1
- package/dist/mint-components/p-ac2b7eb8.system.js +1 -0
- package/dist/mint-components/{p-eac81420.entry.js → p-b114e746.entry.js} +1 -1
- package/dist/mint-components/p-b207beeb.entry.js +1 -0
- package/dist/mint-components/{p-f81cc2cd.entry.js → p-b611eefd.entry.js} +1 -1
- package/dist/mint-components/{p-5057380a.system.js → p-b75bb6e3.system.js} +1 -1
- package/dist/mint-components/{p-d59c19ba.entry.js → p-b9d17fa1.entry.js} +2 -2
- package/dist/mint-components/{p-14dc52dc.system.entry.js → p-bd4810c7.system.entry.js} +1 -1
- package/dist/mint-components/p-be0c205a.system.entry.js +1 -0
- package/dist/mint-components/{p-8fb2af73.system.js → p-bfc7cfc0.system.js} +1 -1
- package/dist/mint-components/{p-e605fe66.entry.js → p-c470caf6.entry.js} +2 -2
- package/dist/mint-components/p-c4b21562.system.entry.js +1 -0
- package/dist/mint-components/{p-003fb0ae.system.js → p-c6a8c075.system.js} +1 -1
- package/dist/mint-components/{p-b11f43ee.js → p-c9f1dde7.js} +1 -1
- package/dist/mint-components/p-ca04737a.entry.js +1 -0
- package/dist/mint-components/{p-adc14a77.system.entry.js → p-ca740238.system.entry.js} +1 -1
- package/dist/mint-components/{p-0954e95d.entry.js → p-cd480e3f.entry.js} +2 -2
- package/dist/mint-components/{p-b619a5e0.js → p-cd651f81.js} +1 -1
- package/dist/mint-components/p-cf505e92.system.js +1 -0
- package/dist/mint-components/{p-a1cb66c0.system.js → p-d671e44e.system.js} +1 -1
- package/dist/mint-components/{p-9c7a031a.js → p-d87ce3d2.js} +1 -1
- package/dist/mint-components/p-de6d3392.entry.js +1 -0
- package/dist/mint-components/p-de9afac2.system.entry.js +1 -0
- package/dist/mint-components/{p-e0c608e4.system.js → p-e07bc6c4.system.js} +1 -1
- package/dist/mint-components/{p-823f61da.entry.js → p-e0b344fb.entry.js} +1 -1
- package/dist/mint-components/{p-3c00282b.entry.js → p-e544bb9a.entry.js} +1 -1
- package/dist/mint-components/p-ea9fd654.entry.js +9 -0
- package/dist/mint-components/{p-cd39acd0.system.entry.js → p-ebdcea27.system.entry.js} +1 -1
- package/dist/mint-components/p-f0c23e81.system.entry.js +1 -0
- package/dist/mint-components/p-f26aedcd.system.js +1 -0
- package/dist/mint-components/{p-a67e8ef4.system.js → p-f2fd1910.system.js} +1 -1
- package/dist/mint-components/{p-070fa30d.entry.js → p-f32c8cb5.entry.js} +1 -1
- package/dist/mint-components/{p-1739dfb8.entry.js → p-f4a1dc19.entry.js} +1 -1
- package/dist/mint-components/{p-a8bf33fc.js → p-f708da7b.js} +1 -1
- package/dist/mint-components/{p-7e3ada1b.system.js → p-f7c99803.system.js} +1 -1
- package/dist/mint-components/p-f940190a.js +1 -0
- package/dist/mint-components/{p-ef7b966e.system.js → p-f9de8a59.system.js} +1 -1
- package/dist/mint-components/{p-8799b28f.entry.js → p-faba3198.entry.js} +1 -1
- package/dist/mint-components/{p-f8450975.system.entry.js → p-fe4a9dfe.system.entry.js} +1 -1
- package/dist/types/components/sqm-base-registration/BaseRegistrationForm.stories.d.ts +1 -0
- package/dist/types/components/sqm-google-sign-in/sqm-google-sign-in.d.ts +5 -0
- package/dist/types/components/sqm-google-sign-in/useGoogleSignIn.d.ts +4 -0
- package/dist/types/components/sqm-portal-google-registration-form/PortalGoogleRegistrationForm.stories.d.ts +0 -2
- package/dist/types/components/sqm-portal-login/sqm-portal-login-view.d.ts +1 -0
- package/dist/types/components/sqm-portal-login/usePortalLogin.d.ts +1 -0
- package/dist/types/components/sqm-portal-registration-form/useRegistrationFormState.d.ts +2 -0
- package/dist/types/components.d.ts +6 -0
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +5 -2
- package/dist/cjs/useRegistrationFormState-5911d016.js +0 -14
- package/dist/esm/useRegistrationFormState-33f9cb24.js +0 -11
- package/dist/esm-es5/ShadowViewAddon-af23bc54.js +0 -1
- package/dist/esm-es5/copy-text-view-61eebf5d.js +0 -1
- package/dist/esm-es5/index.module-f3d96fbb.js +0 -1
- package/dist/esm-es5/sqm-leaderboard-rank-view-7cd0de83.js +0 -1
- package/dist/esm-es5/useChildElements-d1d3fedd.js +0 -1
- package/dist/esm-es5/usePortalRegistrationForm-e8ec6d4e.js +0 -1
- package/dist/esm-es5/useRegistrationFormState-33f9cb24.js +0 -1
- package/dist/mint-components/p-0c4c5874.js +0 -1
- package/dist/mint-components/p-0fe8fbe1.system.entry.js +0 -1
- package/dist/mint-components/p-13fe7290.js +0 -1
- package/dist/mint-components/p-192689fc.entry.js +0 -1
- package/dist/mint-components/p-27f281f4.system.js +0 -1
- package/dist/mint-components/p-38bd81d1.system.js +0 -1
- package/dist/mint-components/p-3c04f8d1.system.js +0 -1
- package/dist/mint-components/p-3d4978ca.system.entry.js +0 -1
- package/dist/mint-components/p-3e8e2f37.system.js +0 -1
- package/dist/mint-components/p-3f3cd0b9.system.entry.js +0 -1
- package/dist/mint-components/p-455a3f54.system.entry.js +0 -1
- package/dist/mint-components/p-4692d45d.system.entry.js +0 -1
- package/dist/mint-components/p-478e8baa.system.js +0 -1
- package/dist/mint-components/p-53238aee.js +0 -1
- package/dist/mint-components/p-5dd51c6f.entry.js +0 -9
- package/dist/mint-components/p-5e61bdfd.entry.js +0 -1
- package/dist/mint-components/p-6673a331.system.js +0 -1
- package/dist/mint-components/p-7027b14d.js +0 -1
- package/dist/mint-components/p-705de128.js +0 -13
- package/dist/mint-components/p-74d5d3d1.entry.js +0 -1
- package/dist/mint-components/p-7ef0cb0a.system.js +0 -1
- package/dist/mint-components/p-7facf5cd.system.entry.js +0 -1
- package/dist/mint-components/p-8329e1fa.system.js +0 -1
- package/dist/mint-components/p-8525931d.system.entry.js +0 -1
- package/dist/mint-components/p-8a0a87e7.system.entry.js +0 -1
- package/dist/mint-components/p-920b48ad.system.entry.js +0 -1
- package/dist/mint-components/p-944918d9.entry.js +0 -1
- package/dist/mint-components/p-989fdd2e.system.js +0 -1
- package/dist/mint-components/p-a9166b6a.entry.js +0 -1
- package/dist/mint-components/p-ad00a797.system.entry.js +0 -1
- package/dist/mint-components/p-b402df18.js +0 -1
- package/dist/mint-components/p-b667d890.system.entry.js +0 -1
- package/dist/mint-components/p-b6a4ce83.entry.js +0 -1
- package/dist/mint-components/p-b6f41077.entry.js +0 -1
- package/dist/mint-components/p-c56b47e5.system.js +0 -1
- package/dist/mint-components/p-d23d5113.js +0 -1
- package/dist/mint-components/p-d4c0d53f.js +0 -1
- package/dist/mint-components/p-d9dd65fd.entry.js +0 -1
- package/dist/mint-components/p-e10be944.entry.js +0 -1
- package/dist/mint-components/p-ec9c8ced.system.js +0 -1
- package/dist/mint-components/p-fde23de1.entry.js +0 -13
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { r as registerInstance, h as h$1 } from './index-
|
|
2
|
-
import { n as h } from './stencil-hooks.module-
|
|
3
|
-
import { i as intl } from './global-
|
|
4
|
-
import { d as dist,
|
|
1
|
+
import { r as registerInstance, h as h$1 } from './index-91e7729f.js';
|
|
2
|
+
import { n as h } from './stencil-hooks.module-4bc38af4.js';
|
|
3
|
+
import { i as intl } from './global-bedc4329.js';
|
|
4
|
+
import { d as dist, H, J, w as wn, i as isDemo } from './index.module-a2989d3c.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
|
-
import { L as LeaderboardRankView } from './sqm-leaderboard-rank-view-
|
|
6
|
+
import { L as LeaderboardRankView } from './sqm-leaderboard-rank-view-753c8d4a.js';
|
|
7
7
|
|
|
8
8
|
const GET_RANK = dist.gql `
|
|
9
9
|
query ($type: String!, $filter: UserLeaderboardFilterInput) {
|
|
@@ -20,10 +20,10 @@ const GET_RANK = dist.gql `
|
|
|
20
20
|
`;
|
|
21
21
|
function useLeaderboardRank(props) {
|
|
22
22
|
var _a, _b, _c, _d;
|
|
23
|
-
const programIdContext =
|
|
23
|
+
const programIdContext = 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 = J();
|
|
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 } = wn(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,10 +1,10 @@
|
|
|
1
|
-
import { r as registerInstance, h as h$1 } from './index-
|
|
2
|
-
import { n as h } from './stencil-hooks.module-
|
|
3
|
-
import { d as dist,
|
|
1
|
+
import { r as registerInstance, h as h$1 } from './index-91e7729f.js';
|
|
2
|
+
import { n as h } from './stencil-hooks.module-4bc38af4.js';
|
|
3
|
+
import { d as dist, J, w as wn, b as setUserIdentity, i as isDemo } from './index.module-a2989d3c.js';
|
|
4
4
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
5
5
|
import { g as getProps } from './utils-334c1e34.js';
|
|
6
6
|
import './JSS-67b5cff8.js';
|
|
7
|
-
import { L as LogoutCurrentUserView } from './sqm-logout-current-user-view-
|
|
7
|
+
import { L as LogoutCurrentUserView } from './sqm-logout-current-user-view-8ef8180f.js';
|
|
8
8
|
|
|
9
9
|
const GET_USER_DETAILS = dist.gql `
|
|
10
10
|
query getUserDetails {
|
|
@@ -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 = J();
|
|
23
|
+
const { loading, data } = wn(GET_USER_DETAILS, {}, !user);
|
|
24
24
|
const onSwitchClick = () => {
|
|
25
25
|
setUserIdentity(undefined);
|
|
26
26
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { h } from './index-
|
|
2
|
-
import {
|
|
1
|
+
import { h } from './index-91e7729f.js';
|
|
2
|
+
import { j as jn } from './index.module-a2989d3c.js';
|
|
3
3
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
4
4
|
import { g as gap } from './mixins-83f90fa1.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
|
+
jn.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
|
-
import { r as registerInstance, h as h$1 } from './index-
|
|
2
|
-
import { n as h } from './stencil-hooks.module-
|
|
3
|
-
import {
|
|
1
|
+
import { r as registerInstance, h as h$1 } from './index-91e7729f.js';
|
|
2
|
+
import { n as h } from './stencil-hooks.module-4bc38af4.js';
|
|
3
|
+
import { k as kn, i as isDemo } from './index.module-a2989d3c.js';
|
|
4
4
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
5
5
|
import { g as getProps } from './utils-334c1e34.js';
|
|
6
6
|
import './JSS-67b5cff8.js';
|
|
7
7
|
import './mixins-83f90fa1.js';
|
|
8
|
-
import { N as NavigationSidebarItemView } from './sqm-navigation-sidebar-item-view-
|
|
8
|
+
import { N as NavigationSidebarItemView } from './sqm-navigation-sidebar-item-view-56da6bca.js';
|
|
9
9
|
|
|
10
10
|
function useNavigationSidebarItem(props) {
|
|
11
|
-
const currentPage =
|
|
11
|
+
const currentPage = kn();
|
|
12
12
|
return {
|
|
13
13
|
states: {
|
|
14
14
|
active: currentPage.pathname === props.path,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as registerInstance, h as h$1 } from './index-
|
|
2
|
-
import { n as h, k as useState, f as useEffect } from './stencil-hooks.module-
|
|
3
|
-
import {
|
|
4
|
-
import { N as NavigationSidebarView } from './sqm-navigation-sidebar-view-
|
|
1
|
+
import { r as registerInstance, h as h$1 } from './index-91e7729f.js';
|
|
2
|
+
import { n as h, k as useState, f as useEffect } from './stencil-hooks.module-4bc38af4.js';
|
|
3
|
+
import { k as kn, H } from './index.module-a2989d3c.js';
|
|
4
|
+
import { N as NavigationSidebarView } from './sqm-navigation-sidebar-view-9d802b78.js';
|
|
5
5
|
|
|
6
6
|
const NavigationSidebar = class {
|
|
7
7
|
constructor(hostRef) {
|
|
@@ -16,8 +16,8 @@ const NavigationSidebar = class {
|
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
18
|
function useNavigationSidebar() {
|
|
19
|
-
const location =
|
|
20
|
-
const programId =
|
|
19
|
+
const location = kn();
|
|
20
|
+
const programId = H();
|
|
21
21
|
const [checked, setChecked] = useState(false);
|
|
22
22
|
// Close hamburger menu after navigation
|
|
23
23
|
useEffect(() => {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { h, F as Fragment, r as registerInstance } from './index-
|
|
2
|
-
import { n as h$1, k as useState } from './stencil-hooks.module-
|
|
3
|
-
import { i as intl } from './global-
|
|
4
|
-
import {
|
|
1
|
+
import { h, F as Fragment, r as registerInstance } from './index-91e7729f.js';
|
|
2
|
+
import { n as h$1, k as useState } from './stencil-hooks.module-4bc38af4.js';
|
|
3
|
+
import { i as intl } from './global-bedc4329.js';
|
|
4
|
+
import { F as Fn, i as isDemo, d as dist, H, J, w as wn, $ as $e, B } from './index.module-a2989d3c.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
6
|
import { g as getProps } from './utils-334c1e34.js';
|
|
7
7
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
8
|
-
import { R as REFERRAL_CODES_PAGINATION_CONTEXT, a as REFERRAL_CODES_NAMESPACE, S as SET_CODE_COPIED, C as CopyTextView, u as useReferralCodes } from './copy-text-view-
|
|
8
|
+
import { R as REFERRAL_CODES_PAGINATION_CONTEXT, a as REFERRAL_CODES_NAMESPACE, S as SET_CODE_COPIED, C as CopyTextView, u as useReferralCodes } from './copy-text-view-b060162f.js';
|
|
9
9
|
import './mixins-83f90fa1.js';
|
|
10
10
|
|
|
11
11
|
const style = {
|
|
@@ -41,7 +41,7 @@ function PaginationView(props) {
|
|
|
41
41
|
|
|
42
42
|
function usePagination(props) {
|
|
43
43
|
var _a;
|
|
44
|
-
const context =
|
|
44
|
+
const context = Fn(REFERRAL_CODES_PAGINATION_CONTEXT);
|
|
45
45
|
const currentPage = context.states.currentPage + 1;
|
|
46
46
|
const totalPages = (_a = context.states) === null || _a === void 0 ? void 0 : _a.pageCount;
|
|
47
47
|
return {
|
|
@@ -124,13 +124,13 @@ const WIDGET_ENGAGEMENT_EVENT = dist.gql `
|
|
|
124
124
|
`;
|
|
125
125
|
function useReferralCode(props) {
|
|
126
126
|
var _a, _b;
|
|
127
|
-
const { programId =
|
|
128
|
-
const user =
|
|
129
|
-
const engagementMedium =
|
|
130
|
-
const contextData =
|
|
131
|
-
const { data } =
|
|
132
|
-
const [sendLoadEvent] =
|
|
133
|
-
const [setCopied] =
|
|
127
|
+
const { programId = H() } = props;
|
|
128
|
+
const user = J();
|
|
129
|
+
const engagementMedium = B();
|
|
130
|
+
const contextData = Fn(REFERRAL_CODES_NAMESPACE);
|
|
131
|
+
const { data } = wn(MessageLinkQuery, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt) || (contextData === null || contextData === void 0 ? void 0 : contextData.referralCode) !== undefined);
|
|
132
|
+
const [sendLoadEvent] = $e(WIDGET_ENGAGEMENT_EVENT);
|
|
133
|
+
const [setCopied] = $e(SET_CODE_COPIED);
|
|
134
134
|
const copyString = (_b = ((contextData === null || contextData === void 0 ? void 0 : contextData.referralCode) || ((_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.referralCode))) !== null && _b !== void 0 ? _b :
|
|
135
135
|
// Shown during loading
|
|
136
136
|
"...";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { h, r as registerInstance } from './index-
|
|
2
|
-
import { i as d, k as useState, n as h$1 } from './stencil-hooks.module-
|
|
3
|
-
import { i as isDemo } from './index.module-
|
|
1
|
+
import { h, r as registerInstance } from './index-91e7729f.js';
|
|
2
|
+
import { i as d, k as useState, n as h$1 } from './stencil-hooks.module-4bc38af4.js';
|
|
3
|
+
import { i as isDemo } from './index.module-a2989d3c.js';
|
|
4
4
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
5
5
|
import { g as getProps } from './utils-334c1e34.js';
|
|
6
6
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
7
7
|
import { E as ErrorStyles } from './mixins-83f90fa1.js';
|
|
8
|
-
import { R as REGISTRATION_FORM_STATE_CONTEXT } from './useRegistrationFormState-
|
|
8
|
+
import { R as REGISTRATION_FORM_STATE_CONTEXT } from './useRegistrationFormState-01cdd8c7.js';
|
|
9
9
|
|
|
10
10
|
var constants = {
|
|
11
11
|
error: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { h, c as Host, r as registerInstance } from './index-
|
|
2
|
-
import { n as h$1 } from './stencil-hooks.module-
|
|
3
|
-
import {
|
|
1
|
+
import { h, c as Host, r as registerInstance } from './index-91e7729f.js';
|
|
2
|
+
import { n as h$1 } from './stencil-hooks.module-4bc38af4.js';
|
|
3
|
+
import { B } from './index.module-a2989d3c.js';
|
|
4
4
|
import { g as getProps } from './utils-334c1e34.js';
|
|
5
5
|
|
|
6
6
|
const PopupContainerView = (props) => {
|
|
@@ -14,10 +14,10 @@ const PopupContainerView = (props) => {
|
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
function usePopupContainer(props) {
|
|
17
|
-
const engagementMedium =
|
|
17
|
+
const engagementMedium = B();
|
|
18
18
|
function closePopup() {
|
|
19
19
|
var _a;
|
|
20
|
-
if (
|
|
20
|
+
if (B() === "POPUP") {
|
|
21
21
|
(_a = window.frameElement["squatchJsApi"]) === null || _a === void 0 ? void 0 : _a.close();
|
|
22
22
|
}
|
|
23
23
|
}
|
|
@@ -31,7 +31,7 @@ function usePopupContainer(props) {
|
|
|
31
31
|
? "0"
|
|
32
32
|
: `var(--sl-spacing-${props.embedPadding})`
|
|
33
33
|
: "0";
|
|
34
|
-
const padding =
|
|
34
|
+
const padding = B() === "POPUP" ? popupPadding : embedPadding;
|
|
35
35
|
return {
|
|
36
36
|
states: {
|
|
37
37
|
showCloseButton: props.closeButton && engagementMedium === "POPUP",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { h } from './index-
|
|
2
|
-
import { i as intl } from './global-
|
|
1
|
+
import { h } from './index-91e7729f.js';
|
|
2
|
+
import { i as intl } from './global-bedc4329.js';
|
|
3
3
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
4
4
|
import { A as AuthWrapper, a as AuthColumn } from './mixins-83f90fa1.js';
|
|
5
|
-
import { T as TextSpanView } from './sqm-text-span-view-
|
|
5
|
+
import { T as TextSpanView } from './sqm-text-span-view-ca32495e.js';
|
|
6
6
|
|
|
7
7
|
const style = {
|
|
8
8
|
Wrapper: AuthWrapper,
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { r as registerInstance, h as h$1 } from './index-
|
|
2
|
-
import { k as useState, m as useRef, f as useEffect, n as h } from './stencil-hooks.module-
|
|
3
|
-
import './global-
|
|
4
|
-
import {
|
|
1
|
+
import { r as registerInstance, h as h$1 } from './index-91e7729f.js';
|
|
2
|
+
import { k as useState, m as useRef, f as useEffect, n as h } from './stencil-hooks.module-4bc38af4.js';
|
|
3
|
+
import './global-bedc4329.js';
|
|
4
|
+
import { l as ln, n as nn, J, j as jn, u as useCallback, i as isDemo } from './index.module-a2989d3c.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
6
|
import './JSS-67b5cff8.js';
|
|
7
7
|
import './mixins-83f90fa1.js';
|
|
8
|
-
import './sqm-text-span-view-
|
|
9
|
-
import { P as PortalEmailVerificationView } from './sqm-portal-email-verification-view-
|
|
8
|
+
import './sqm-text-span-view-ca32495e.js';
|
|
9
|
+
import { P as PortalEmailVerificationView } from './sqm-portal-email-verification-view-44c8970f.js';
|
|
10
10
|
|
|
11
11
|
function usePortalEmailVerification(props) {
|
|
12
12
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
13
|
-
const [request, { loading, data, errors }] =
|
|
14
|
-
const [getVerificationStatus, { data: user, loading: loadingVerification }] =
|
|
15
|
-
const userIdent =
|
|
13
|
+
const [request, { loading, data, errors }] = ln();
|
|
14
|
+
const [getVerificationStatus, { data: user, loading: loadingVerification }] = nn();
|
|
15
|
+
const userIdent = J();
|
|
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(jn.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 jn.push({
|
|
48
48
|
pathname: props.redirectPath,
|
|
49
49
|
search: urlParams.toString() && "?" + urlParams.toString(),
|
|
50
50
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { h } from './index-
|
|
1
|
+
import { h } from './index-91e7729f.js';
|
|
2
2
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
3
3
|
import { A as AuthWrapper, a as AuthColumn, b as AuthButtonsContainer } from './mixins-83f90fa1.js';
|
|
4
|
-
import { T as TextSpanView } from './sqm-text-span-view-
|
|
4
|
+
import { T as TextSpanView } from './sqm-text-span-view-ca32495e.js';
|
|
5
5
|
|
|
6
6
|
const style = {
|
|
7
7
|
Wrapper: AuthWrapper,
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { r as registerInstance, h as h$1 } from './index-
|
|
2
|
-
import { k as useState, n as h } from './stencil-hooks.module-
|
|
3
|
-
import {
|
|
1
|
+
import { r as registerInstance, h as h$1 } from './index-91e7729f.js';
|
|
2
|
+
import { k as useState, n as h } from './stencil-hooks.module-4bc38af4.js';
|
|
3
|
+
import { c as un, j as jn, i as isDemo } from './index.module-a2989d3c.js';
|
|
4
4
|
import { j as jsonpointer } from './jsonpointer-388a7082.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
6
|
import './JSS-67b5cff8.js';
|
|
7
7
|
import './mixins-83f90fa1.js';
|
|
8
|
-
import './sqm-text-span-view-
|
|
9
|
-
import { P as PortalForgotPasswordView } from './sqm-portal-forgot-password-view-
|
|
8
|
+
import './sqm-text-span-view-ca32495e.js';
|
|
9
|
+
import { P as PortalForgotPasswordView } from './sqm-portal-forgot-password-view-3d3182f1.js';
|
|
10
10
|
|
|
11
11
|
function usePortalForgotPassword(props) {
|
|
12
12
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
13
13
|
const [success, setSuccess] = useState(false);
|
|
14
14
|
const [error, setError] = useState("");
|
|
15
|
-
const [request, { loading, data, errors }] =
|
|
16
|
-
const urlParams = new URLSearchParams(
|
|
15
|
+
const [request, { loading, data, errors }] = un();
|
|
16
|
+
const urlParams = new URLSearchParams(jn.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: () => jn.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,20 +1,78 @@
|
|
|
1
|
-
import { r as registerInstance, h as h$1 } from './index-
|
|
2
|
-
import { k as useState, n as h } from './stencil-hooks.module-
|
|
3
|
-
import {
|
|
1
|
+
import { r as registerInstance, h as h$1 } from './index-91e7729f.js';
|
|
2
|
+
import { k as useState, n as h } from './stencil-hooks.module-4bc38af4.js';
|
|
3
|
+
import { i as isDemo, j as jn } from './index.module-a2989d3c.js';
|
|
4
4
|
import { j as jsonpointer } from './jsonpointer-388a7082.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
6
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
7
7
|
import './mixins-83f90fa1.js';
|
|
8
|
-
import './sqm-text-span-view-
|
|
9
|
-
import {
|
|
10
|
-
import { B as BaseRegistrationFormView } from './sqm-base-registration-form-view-
|
|
11
|
-
import { P as PortalRegistrationFormView } from './sqm-portal-registration-form-view-
|
|
8
|
+
import './sqm-text-span-view-ca32495e.js';
|
|
9
|
+
import { a as useRegistrationForm } from './useRegistrationFormState-01cdd8c7.js';
|
|
10
|
+
import { B as BaseRegistrationFormView } from './sqm-base-registration-form-view-98c4db70.js';
|
|
11
|
+
import { P as PortalRegistrationFormView } from './sqm-portal-registration-form-view-90e2bfd5.js';
|
|
12
12
|
import './AsYouType-46f67d0d.js';
|
|
13
|
-
import { u as usePortalRegistrationForm } from './usePortalRegistrationForm-
|
|
13
|
+
import { u as usePortalRegistrationForm } from './usePortalRegistrationForm-5715c7a5.js';
|
|
14
|
+
|
|
15
|
+
class InvalidTokenError extends Error {
|
|
16
|
+
}
|
|
17
|
+
InvalidTokenError.prototype.name = "InvalidTokenError";
|
|
18
|
+
function b64DecodeUnicode(str) {
|
|
19
|
+
return decodeURIComponent(atob(str).replace(/(.)/g, (m, p) => {
|
|
20
|
+
let code = p.charCodeAt(0).toString(16).toUpperCase();
|
|
21
|
+
if (code.length < 2) {
|
|
22
|
+
code = "0" + code;
|
|
23
|
+
}
|
|
24
|
+
return "%" + code;
|
|
25
|
+
}));
|
|
26
|
+
}
|
|
27
|
+
function base64UrlDecode(str) {
|
|
28
|
+
let output = str.replace(/-/g, "+").replace(/_/g, "/");
|
|
29
|
+
switch (output.length % 4) {
|
|
30
|
+
case 0:
|
|
31
|
+
break;
|
|
32
|
+
case 2:
|
|
33
|
+
output += "==";
|
|
34
|
+
break;
|
|
35
|
+
case 3:
|
|
36
|
+
output += "=";
|
|
37
|
+
break;
|
|
38
|
+
default:
|
|
39
|
+
throw new Error("base64 string is not of the correct length");
|
|
40
|
+
}
|
|
41
|
+
try {
|
|
42
|
+
return b64DecodeUnicode(output);
|
|
43
|
+
}
|
|
44
|
+
catch (err) {
|
|
45
|
+
return atob(output);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
function jwtDecode(token, options) {
|
|
49
|
+
if (typeof token !== "string") {
|
|
50
|
+
throw new InvalidTokenError("Invalid token specified: must be a string");
|
|
51
|
+
}
|
|
52
|
+
options || (options = {});
|
|
53
|
+
const pos = options.header === true ? 0 : 1;
|
|
54
|
+
const part = token.split(".")[pos];
|
|
55
|
+
if (typeof part !== "string") {
|
|
56
|
+
throw new InvalidTokenError(`Invalid token specified: missing part #${pos + 1}`);
|
|
57
|
+
}
|
|
58
|
+
let decoded;
|
|
59
|
+
try {
|
|
60
|
+
decoded = base64UrlDecode(part);
|
|
61
|
+
}
|
|
62
|
+
catch (e) {
|
|
63
|
+
throw new InvalidTokenError(`Invalid token specified: invalid base64 for part #${pos + 1} (${e.message})`);
|
|
64
|
+
}
|
|
65
|
+
try {
|
|
66
|
+
return JSON.parse(decoded);
|
|
67
|
+
}
|
|
68
|
+
catch (e) {
|
|
69
|
+
throw new InvalidTokenError(`Invalid token specified: invalid json for part #${pos + 1} (${e.message})`);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
14
72
|
|
|
15
73
|
function usePortalGoogleRegistrationForm(props) {
|
|
16
74
|
const [emailValidationError, setEmailValidationError] = useState(null);
|
|
17
|
-
const
|
|
75
|
+
const [registrationFormState, setRegistrationFormState] = useRegistrationForm();
|
|
18
76
|
const [showRegistrationForm, setShowRegistrationForm] = useState({
|
|
19
77
|
mode: "base",
|
|
20
78
|
});
|
|
@@ -53,16 +111,18 @@ function usePortalGoogleRegistrationForm(props) {
|
|
|
53
111
|
setShowRegistrationForm({ mode: "manual" });
|
|
54
112
|
};
|
|
55
113
|
const handleGoogleInit = (event) => {
|
|
114
|
+
var _a;
|
|
115
|
+
if (!((_a = event.detail) === null || _a === void 0 ? void 0 : _a.credential))
|
|
116
|
+
return;
|
|
56
117
|
try {
|
|
57
|
-
const res =
|
|
58
|
-
// TODO: Double check
|
|
118
|
+
const res = jwtDecode(event.detail.credential);
|
|
59
119
|
setRegistrationFormState({
|
|
60
120
|
...registrationFormState,
|
|
121
|
+
_googleOAuthIdToken: event.detail.credential,
|
|
61
122
|
initialData: {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
lastName: res.payload.family_name,
|
|
123
|
+
email: res.email,
|
|
124
|
+
firstName: res.given_name,
|
|
125
|
+
lastName: res.family_name,
|
|
66
126
|
},
|
|
67
127
|
});
|
|
68
128
|
setShowRegistrationForm({ mode: "google" });
|
|
@@ -226,8 +286,8 @@ const PortalGoogleRegistrationForm = class {
|
|
|
226
286
|
const { handleGoogleInit, handleEmailSubmit, showRegistrationForm, emailValidationError, } = isDemo() ? useGoogleDemo(this) : usePortalGoogleRegistrationForm(this);
|
|
227
287
|
const content = {
|
|
228
288
|
formData: h$1("slot", { name: "formData" }),
|
|
229
|
-
googleButton: (h$1("sqm-google-sign-in", { onInitComplete: handleGoogleInit })),
|
|
230
|
-
secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("style", null, styleString), h$1("span", null, this.loginCTA, " ", h$1("sl-button", { type: "text", disabled: states.loading, onClick: () =>
|
|
289
|
+
googleButton: (h$1("sqm-google-sign-in", { text: "Register with Google", onInitComplete: handleGoogleInit })),
|
|
290
|
+
secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("style", null, styleString), h$1("span", null, this.loginCTA, " ", h$1("sl-button", { size: "large", type: "text", disabled: states.loading, onClick: () => jn.push(states.loginPath), className: sheet.classes.LoginButton }, this.loginLabel), " "))),
|
|
231
291
|
terms: h$1("slot", { name: "terms" }),
|
|
232
292
|
emailLabel: this.emailLabel,
|
|
233
293
|
passwordLabel: this.passwordLabel,
|
|
@@ -281,6 +341,7 @@ function useRegisterDemo(props) {
|
|
|
281
341
|
content: {
|
|
282
342
|
pageLabel: "Register",
|
|
283
343
|
formData: null,
|
|
344
|
+
passwordField: null,
|
|
284
345
|
},
|
|
285
346
|
refs: {
|
|
286
347
|
formRef: {},
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { r as registerInstance } from './index-
|
|
2
|
-
import { n as h } from './stencil-hooks.module-
|
|
3
|
-
import { b as setUserIdentity,
|
|
1
|
+
import { r as registerInstance } from './index-91e7729f.js';
|
|
2
|
+
import { n as h } from './stencil-hooks.module-4bc38af4.js';
|
|
3
|
+
import { b as setUserIdentity, j as jn, i as isDemo } from './index.module-a2989d3c.js';
|
|
4
4
|
|
|
5
5
|
function usePortalLogout({ nextPage }) {
|
|
6
6
|
setUserIdentity(undefined);
|
|
7
|
-
|
|
7
|
+
jn.push({ pathname: nextPage, search: "" });
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
const PortalLogout = class {
|
package/dist/esm/{sqm-portal-profile-view-2997f902.js → sqm-portal-profile-view-39039274.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { h } from './index-
|
|
2
|
-
import { i as intl } from './global-
|
|
1
|
+
import { h } from './index-91e7729f.js';
|
|
2
|
+
import { i as intl } from './global-bedc4329.js';
|
|
3
3
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
4
|
-
import { T as TextSpanView } from './sqm-text-span-view-
|
|
4
|
+
import { T as TextSpanView } from './sqm-text-span-view-ca32495e.js';
|
|
5
5
|
|
|
6
6
|
function PortalProfileView(props) {
|
|
7
7
|
var _a, _b, _c, _d, _e;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { r as registerInstance, h as h$1 } from './index-
|
|
2
|
-
import { k as useState, f as useEffect, n as h } from './stencil-hooks.module-
|
|
3
|
-
import './global-
|
|
4
|
-
import { d as dist,
|
|
1
|
+
import { r as registerInstance, h as h$1 } from './index-91e7729f.js';
|
|
2
|
+
import { k as useState, f as useEffect, n as h } from './stencil-hooks.module-4bc38af4.js';
|
|
3
|
+
import './global-bedc4329.js';
|
|
4
|
+
import { d as dist, J, w as wn, $ as $e, i as isDemo } from './index.module-a2989d3c.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
6
|
import { g as getProps } from './utils-334c1e34.js';
|
|
7
7
|
import './JSS-67b5cff8.js';
|
|
8
|
-
import './sqm-text-span-view-
|
|
9
|
-
import { P as PortalProfileView } from './sqm-portal-profile-view-
|
|
10
|
-
import { i as isEmpty } from './utilities-
|
|
8
|
+
import './sqm-text-span-view-ca32495e.js';
|
|
9
|
+
import { P as PortalProfileView } from './sqm-portal-profile-view-39039274.js';
|
|
10
|
+
import { i as isEmpty } from './utilities-863d06d1.js';
|
|
11
11
|
|
|
12
12
|
const GET_USER = dist.gql `
|
|
13
13
|
query {
|
|
@@ -53,12 +53,12 @@ const defaultFormState = {
|
|
|
53
53
|
error: "",
|
|
54
54
|
};
|
|
55
55
|
function usePortalProfile(props) {
|
|
56
|
-
const userIdent =
|
|
56
|
+
const userIdent = J();
|
|
57
57
|
const [success, setSuccess] = useState(false);
|
|
58
58
|
const [userData, setUserData] = useState(undefined);
|
|
59
59
|
const [formState, setFormState] = useState(defaultFormState);
|
|
60
|
-
const userDataResponse =
|
|
61
|
-
const [upsertUser, upsertUserResponse] =
|
|
60
|
+
const userDataResponse = wn(GET_USER, {}, !(userIdent === null || userIdent === void 0 ? void 0 : userIdent.jwt));
|
|
61
|
+
const [upsertUser, upsertUserResponse] = $e(UPSERT_USER);
|
|
62
62
|
useEffect(() => {
|
|
63
63
|
if (upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.loading)
|
|
64
64
|
return;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { r as registerInstance, h as h$1, c as Host } from './index-
|
|
2
|
-
import { f as useEffect, n as h } from './stencil-hooks.module-
|
|
3
|
-
import {
|
|
1
|
+
import { r as registerInstance, h as h$1, c as Host } from './index-91e7729f.js';
|
|
2
|
+
import { f as useEffect, n as h } from './stencil-hooks.module-4bc38af4.js';
|
|
3
|
+
import { J, k as kn, j as jn, i as isDemo } from './index.module-a2989d3c.js';
|
|
4
4
|
|
|
5
5
|
function usePortalProtectedRoute({ requireEmailVerification, redirectTo, redirectToUnverified, }) {
|
|
6
6
|
var _a;
|
|
7
|
-
const userIdent =
|
|
7
|
+
const userIdent = J();
|
|
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 } = kn();
|
|
11
11
|
const nextPageParam = new URLSearchParams();
|
|
12
12
|
nextPageParam.append("nextPage", `${pathname}${search}`);
|
|
13
13
|
useEffect(() => {
|
|
14
14
|
if (!authenticated) {
|
|
15
|
-
return
|
|
15
|
+
return jn.push({
|
|
16
16
|
pathname: redirectTo,
|
|
17
17
|
search: "?" + nextPageParam.toString(),
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
20
|
if (requireEmailVerification && !emailVerified) {
|
|
21
|
-
return
|
|
21
|
+
return jn.push({
|
|
22
22
|
pathname: redirectToUnverified || redirectTo,
|
|
23
23
|
search: "?" + nextPageParam.toString(),
|
|
24
24
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { h } from './index-
|
|
1
|
+
import { h } from './index-91e7729f.js';
|
|
2
2
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
3
3
|
import { A as AuthWrapper, a as AuthColumn, H as HostBlock, b as AuthButtonsContainer, E as ErrorStyles } from './mixins-83f90fa1.js';
|
|
4
|
-
import { T as TextSpanView } from './sqm-text-span-view-
|
|
4
|
+
import { T as TextSpanView } from './sqm-text-span-view-ca32495e.js';
|
|
5
5
|
|
|
6
6
|
const style = {
|
|
7
7
|
Wrapper: { ...AuthWrapper, "max-width": "600px" },
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { r as registerInstance, h as h$1 } from './index-
|
|
2
|
-
import { n as h } from './stencil-hooks.module-
|
|
3
|
-
import { i as isDemo,
|
|
1
|
+
import { r as registerInstance, h as h$1 } from './index-91e7729f.js';
|
|
2
|
+
import { n as h } from './stencil-hooks.module-4bc38af4.js';
|
|
3
|
+
import { i as isDemo, j as jn } from './index.module-a2989d3c.js';
|
|
4
4
|
import './jsonpointer-388a7082.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
6
|
import './JSS-67b5cff8.js';
|
|
7
7
|
import './mixins-83f90fa1.js';
|
|
8
|
-
import './sqm-text-span-view-
|
|
9
|
-
import './useRegistrationFormState-
|
|
10
|
-
import { P as PortalRegistrationFormView } from './sqm-portal-registration-form-view-
|
|
8
|
+
import './sqm-text-span-view-ca32495e.js';
|
|
9
|
+
import './useRegistrationFormState-01cdd8c7.js';
|
|
10
|
+
import { P as PortalRegistrationFormView } from './sqm-portal-registration-form-view-90e2bfd5.js';
|
|
11
11
|
import './AsYouType-46f67d0d.js';
|
|
12
|
-
import { u as usePortalRegistrationForm } from './usePortalRegistrationForm-
|
|
12
|
+
import { u as usePortalRegistrationForm } from './usePortalRegistrationForm-5715c7a5.js';
|
|
13
13
|
|
|
14
14
|
const PortalRegistrationForm = class {
|
|
15
15
|
constructor(hostRef) {
|
|
@@ -142,7 +142,7 @@ const PortalRegistrationForm = class {
|
|
|
142
142
|
: usePortalRegistrationForm(this);
|
|
143
143
|
const content = {
|
|
144
144
|
formData: h$1("slot", { name: "formData" }),
|
|
145
|
-
secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("sl-button", { type: "text", disabled: states.loading, onClick: () =>
|
|
145
|
+
secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("sl-button", { type: "text", disabled: states.loading, onClick: () => jn.push(states.loginPath) }, this.loginLabel))),
|
|
146
146
|
terms: h$1("slot", { name: "terms" }),
|
|
147
147
|
emailLabel: this.emailLabel,
|
|
148
148
|
passwordLabel: this.passwordLabel,
|