@saasquatch/mint-components 1.7.4-2 → 1.7.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{ShadowViewAddon-43f35e24.js → ShadowViewAddon-54e29788.js} +36 -49
- package/dist/cjs/{global-6785de71.js → global-a8fd1f10.js} +3 -3
- package/dist/cjs/{index.module-02576958.js → index.module-7c0deb52.js} +22 -24
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{luxon-53e983a6.js → luxon-a4661470.js} +1 -1
- package/dist/cjs/mint-components.cjs.js +4 -4
- package/dist/cjs/{re-render-c484d9ab.js → re-render-e77c897d.js} +5 -5
- package/dist/cjs/sqm-asset-card.cjs.entry.js +2 -2
- package/dist/cjs/sqm-big-stat_39.cjs.entry.js +162 -58
- package/dist/cjs/sqm-close-button.cjs.entry.js +2 -2
- package/dist/cjs/sqm-empty_5.cjs.entry.js +1 -1
- package/dist/cjs/sqm-form-message.cjs.entry.js +1 -1
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +6 -6
- package/dist/cjs/sqm-header-logo.cjs.entry.js +1 -1
- package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +4 -4
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +5 -5
- package/dist/cjs/sqm-logout-current-user.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-navigation-sidebar-item-view-21dcca39.js → sqm-navigation-sidebar-item-view-84128b9f.js} +2 -2
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +4 -4
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +4 -4
- package/dist/cjs/sqm-password-field.cjs.entry.js +44 -19
- package/dist/cjs/sqm-popup-container.cjs.entry.js +13 -6
- package/dist/cjs/{sqm-portal-email-verification-view-d6e14e8d.js → sqm-portal-email-verification-view-b7cafe0c.js} +3 -3
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +19 -8
- package/dist/cjs/{sqm-portal-forgot-password-view-0142350f.js → sqm-portal-forgot-password-view-ca5f6db9.js} +1 -1
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +19 -9
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-portal-profile-view-13a1229f.js → sqm-portal-profile-view-f092a4ef.js} +4 -4
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +31 -11
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +5 -5
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +40 -8
- package/dist/cjs/{sqm-portal-reset-password-view-d5bc7afc.js → sqm-portal-reset-password-view-07a13210.js} +3 -3
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +70 -10
- package/dist/cjs/{sqm-portal-verify-email-view-f6c7287e.js → sqm-portal-verify-email-view-ce552bbc.js} +7 -7
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +48 -13
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +7 -7
- package/dist/cjs/sqm-referred-registration.cjs.entry.js +4 -4
- package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +1 -1
- package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +3 -3
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +10 -10
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +62 -55
- package/dist/cjs/sqm-tab.cjs.entry.js +3 -3
- package/dist/cjs/sqm-tabs.cjs.entry.js +5 -5
- package/dist/cjs/sqm-text-span.cjs.entry.js +1 -1
- package/dist/cjs/{stencil-hooks.module-e4bf7f2d.js → stencil-hooks.module-faabb426.js} +1 -1
- package/dist/cjs/{useChildElements-74eb05b6.js → useChildElements-410453fc.js} +3 -3
- package/dist/cjs/{useInstantAccessRegistration-11ff69f8.js → useInstantAccessRegistration-42b320b3.js} +4 -4
- package/dist/cjs/{useReferralTable-6ca43436.js → useReferralTable-28fff5b8.js} +9 -9
- package/dist/cjs/{useRegistrationFormState-01d63bda.js → useRegistrationFormState-58ce55f2.js} +3 -3
- package/dist/cjs/utilities-d2d257c7.js +25 -0
- package/dist/collection/components/sqm-edit-profile/sqm-edit-profile-view.js +2 -2
- package/dist/collection/components/sqm-edit-profile/sqm-edit-profile.js +77 -1
- package/dist/collection/components/sqm-edit-profile/useEditProfile.js +7 -5
- package/dist/collection/components/sqm-password-field/passwordValidation.js +11 -11
- package/dist/collection/components/sqm-password-field/sqm-password-field.js +155 -4
- package/dist/collection/components/sqm-password-field/usePasswordField.js +1 -1
- package/dist/collection/components/sqm-popup-container/PopupContainer.stories.js +18 -0
- package/dist/collection/components/sqm-popup-container/sqm-popup-container-view.js +1 -1
- package/dist/collection/components/sqm-popup-container/sqm-popup-container.js +27 -0
- package/dist/collection/components/sqm-popup-container/usePopupContainer.js +1 -0
- package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password-view.js +1 -1
- package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password.js +207 -1
- package/dist/collection/components/sqm-portal-change-password/usePortalChangePassword.js +8 -2
- package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification-view.js +2 -2
- package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification.js +57 -1
- package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.js +1 -1
- package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password.js +61 -6
- package/dist/collection/components/sqm-portal-forgot-password/usePortalForgotPassword.js +1 -1
- package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +26 -0
- package/dist/collection/components/sqm-portal-login/usePortalLogin.js +1 -1
- package/dist/collection/components/sqm-portal-profile/sqm-portal-profile-view.js +3 -3
- package/dist/collection/components/sqm-portal-profile/sqm-portal-profile.js +104 -1
- package/dist/collection/components/sqm-portal-profile/usePortalProfile.js +6 -5
- package/dist/collection/components/sqm-portal-register/sqm-portal-register-view.js +1 -1
- package/dist/collection/components/sqm-portal-register/sqm-portal-register.js +157 -1
- package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form-view.js +1 -1
- package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form.js +157 -1
- package/dist/collection/components/sqm-portal-registration-form/usePortalRegistrationForm.js +3 -1
- package/dist/collection/components/sqm-portal-reset-password/sqm-portal-reset-password-view.js +4 -4
- package/dist/collection/components/sqm-portal-reset-password/sqm-portal-reset-password.js +262 -1
- package/dist/collection/components/sqm-portal-reset-password/usePortalResetPassword.js +12 -3
- package/dist/collection/components/sqm-portal-verify-email/PortalVerifyEmail.stories.js +6 -0
- package/dist/collection/components/sqm-portal-verify-email/sqm-portal-verify-email-view.js +7 -7
- package/dist/collection/components/sqm-portal-verify-email/sqm-portal-verify-email.js +150 -5
- package/dist/collection/components/sqm-portal-verify-email/usePortalVerifyEmail.js +7 -2
- package/dist/collection/components/sqm-share-button/sqm-share-button.js +52 -0
- package/dist/collection/components/sqm-share-button/useShareButton.js +11 -11
- package/dist/collection/utilities.js +3 -0
- package/dist/esm/{ShadowViewAddon-a5b397ce.js → ShadowViewAddon-be3c7698.js} +33 -46
- package/dist/esm/{global-91edfca0.js → global-0268f7bb.js} +3 -3
- package/dist/esm/{index.module-99d8522e.js → index.module-cbe33f2d.js} +5 -7
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{luxon-f01e85fe.js → luxon-5ca0a018.js} +1 -1
- package/dist/esm/mint-components.js +4 -4
- package/dist/esm/{re-render-096db0eb.js → re-render-4e10b5ac.js} +5 -5
- package/dist/esm/sqm-asset-card.entry.js +2 -2
- package/dist/esm/sqm-big-stat_39.entry.js +162 -58
- package/dist/esm/sqm-close-button.entry.js +2 -2
- package/dist/esm/sqm-empty_5.entry.js +1 -1
- package/dist/esm/sqm-form-message.entry.js +1 -1
- package/dist/esm/sqm-graphql-client-provider.entry.js +6 -6
- package/dist/esm/sqm-header-logo.entry.js +1 -1
- package/dist/esm/sqm-instant-access-registration.entry.js +4 -4
- package/dist/esm/sqm-leaderboard-rank.entry.js +5 -5
- package/dist/esm/sqm-logout-current-user.entry.js +3 -3
- package/dist/esm/{sqm-navigation-sidebar-item-view-eb765b9c.js → sqm-navigation-sidebar-item-view-67fc08d3.js} +2 -2
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +4 -4
- package/dist/esm/sqm-navigation-sidebar.entry.js +4 -4
- package/dist/esm/sqm-password-field.entry.js +44 -19
- package/dist/esm/sqm-popup-container.entry.js +13 -6
- package/dist/esm/{sqm-portal-email-verification-view-408af676.js → sqm-portal-email-verification-view-12fc1bd4.js} +3 -3
- package/dist/esm/sqm-portal-email-verification.entry.js +19 -8
- package/dist/esm/{sqm-portal-forgot-password-view-41afcace.js → sqm-portal-forgot-password-view-a764ad67.js} +1 -1
- package/dist/esm/sqm-portal-forgot-password.entry.js +19 -9
- package/dist/esm/sqm-portal-logout.entry.js +3 -3
- package/dist/esm/{sqm-portal-profile-view-efa44888.js → sqm-portal-profile-view-87730d84.js} +4 -4
- package/dist/esm/sqm-portal-profile.entry.js +31 -11
- package/dist/esm/sqm-portal-protected-route.entry.js +5 -5
- package/dist/esm/sqm-portal-registration-form.entry.js +40 -8
- package/dist/esm/{sqm-portal-reset-password-view-0df781f6.js → sqm-portal-reset-password-view-d3e726a9.js} +3 -3
- package/dist/esm/sqm-portal-reset-password.entry.js +70 -10
- package/dist/esm/{sqm-portal-verify-email-view-1db4fae6.js → sqm-portal-verify-email-view-283bf637.js} +7 -7
- package/dist/esm/sqm-portal-verify-email.entry.js +49 -14
- package/dist/esm/sqm-referral-table_11.entry.js +7 -7
- package/dist/esm/sqm-referred-registration.entry.js +4 -4
- package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +1 -1
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +3 -3
- package/dist/esm/sqm-rewards-table_9.entry.js +10 -10
- package/dist/esm/sqm-stencilbook.entry.js +62 -55
- package/dist/esm/sqm-tab.entry.js +3 -3
- package/dist/esm/sqm-tabs.entry.js +5 -5
- package/dist/esm/sqm-text-span.entry.js +1 -1
- package/dist/esm/{stencil-hooks.module-14b87f98.js → stencil-hooks.module-9ad75b88.js} +1 -1
- package/dist/esm/{useChildElements-b945a965.js → useChildElements-f6672214.js} +3 -3
- package/dist/esm/{useInstantAccessRegistration-7f9f4360.js → useInstantAccessRegistration-c9d75808.js} +4 -4
- package/dist/esm/{useReferralTable-e425f29d.js → useReferralTable-16e5c27f.js} +9 -9
- package/dist/esm/{useRegistrationFormState-c9d54ef3.js → useRegistrationFormState-424e2af2.js} +3 -3
- package/dist/esm/utilities-a6f1de33.js +21 -0
- package/dist/esm-es5/ShadowViewAddon-be3c7698.js +1 -0
- package/dist/esm-es5/{global-91edfca0.js → global-0268f7bb.js} +2 -2
- package/dist/esm-es5/index.module-cbe33f2d.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{luxon-f01e85fe.js → luxon-5ca0a018.js} +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/{re-render-096db0eb.js → re-render-4e10b5ac.js} +1 -1
- package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_39.entry.js +1 -1
- package/dist/esm-es5/sqm-close-button.entry.js +1 -1
- package/dist/esm-es5/sqm-empty_5.entry.js +1 -1
- package/dist/esm-es5/sqm-form-message.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-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
- package/dist/esm-es5/{sqm-navigation-sidebar-item-view-eb765b9c.js → sqm-navigation-sidebar-item-view-67fc08d3.js} +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
- package/dist/esm-es5/sqm-password-field.entry.js +1 -1
- package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-408af676.js → sqm-portal-email-verification-view-12fc1bd4.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-forgot-password-view-41afcace.js → sqm-portal-forgot-password-view-a764ad67.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-87730d84.js +1 -0
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-reset-password-view-d3e726a9.js +1 -0
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-verify-email-view-283bf637.js +1 -0
- 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-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.entry.js +1 -1
- package/dist/esm-es5/{stencil-hooks.module-14b87f98.js → stencil-hooks.module-9ad75b88.js} +1 -1
- package/dist/esm-es5/{useChildElements-b945a965.js → useChildElements-f6672214.js} +1 -1
- package/dist/esm-es5/{useInstantAccessRegistration-7f9f4360.js → useInstantAccessRegistration-c9d75808.js} +1 -1
- package/dist/esm-es5/{useReferralTable-e425f29d.js → useReferralTable-16e5c27f.js} +1 -1
- package/dist/esm-es5/useRegistrationFormState-424e2af2.js +1 -0
- package/dist/esm-es5/utilities-a6f1de33.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-c24d34d8.entry.js → p-048cb5a0.entry.js} +1 -1
- package/dist/mint-components/p-059b2db4.system.js +1 -0
- package/dist/mint-components/p-05d9a1c3.system.entry.js +1 -0
- package/dist/mint-components/p-0be7a34f.entry.js +187 -0
- package/dist/mint-components/p-0c3c573c.entry.js +1 -0
- package/dist/mint-components/{p-2b6c19e0.system.js → p-0e0bcf17.system.js} +1 -1
- package/dist/mint-components/p-0f48f5c4.entry.js +1 -0
- package/dist/mint-components/p-11c2ddd5.entry.js +1 -0
- package/dist/mint-components/p-126ef540.entry.js +1 -0
- package/dist/mint-components/p-158302b4.system.entry.js +1 -0
- package/dist/mint-components/p-16c4c0e6.system.entry.js +1 -0
- package/dist/mint-components/p-19078b96.system.entry.js +1 -0
- package/dist/mint-components/p-1be14c58.system.entry.js +1 -0
- package/dist/mint-components/{p-a79208b8.system.js → p-21a152c9.system.js} +1 -1
- package/dist/mint-components/{p-b5b9aaba.system.entry.js → p-25014681.system.entry.js} +1 -1
- package/dist/mint-components/p-2639d623.entry.js +33 -0
- package/dist/mint-components/p-29f83317.system.entry.js +1 -0
- package/dist/mint-components/p-2b03b921.entry.js +1 -0
- package/dist/mint-components/{p-d65bf9dc.js → p-2b3e1737.js} +1 -1
- package/dist/mint-components/{p-9f3a0252.system.js → p-2bd322a2.system.js} +1 -1
- package/dist/mint-components/p-2be08bc1.system.entry.js +1 -0
- package/dist/mint-components/{p-0a892e0f.system.entry.js → p-2eacd22e.system.entry.js} +1 -1
- package/dist/mint-components/p-3056e5df.js +1 -0
- package/dist/mint-components/p-349b9603.system.js +1 -0
- package/dist/mint-components/{p-8b2b5d37.system.js → p-34b61e2c.system.js} +1 -1
- package/dist/mint-components/{p-e3de804b.entry.js → p-3884e029.entry.js} +1 -1
- package/dist/mint-components/p-3a306a99.system.entry.js +1 -0
- package/dist/mint-components/{p-d576140e.js → p-4086ea93.js} +1 -1
- package/dist/mint-components/p-40dde690.js +1 -0
- package/dist/mint-components/p-4251a664.entry.js +13 -0
- package/dist/mint-components/{p-901f5b80.js → p-42c43cc2.js} +1 -1
- package/dist/mint-components/p-43b92142.system.entry.js +1 -0
- package/dist/mint-components/p-46ef82ed.js +1 -0
- package/dist/mint-components/p-4d9744bf.js +1 -0
- package/dist/mint-components/{p-3cc28285.system.js → p-4eb96878.system.js} +1 -1
- package/dist/mint-components/p-5097066c.entry.js +1 -0
- package/dist/mint-components/p-5cba80eb.entry.js +1 -0
- package/dist/mint-components/p-5f084d62.system.js +1 -0
- package/dist/mint-components/p-6dc5988e.entry.js +1 -0
- package/dist/mint-components/p-702db9d3.entry.js +1 -0
- package/dist/mint-components/{p-b668aa0b.system.entry.js → p-71f1256c.system.entry.js} +1 -1
- package/dist/mint-components/p-7487f23c.system.js +1 -0
- package/dist/mint-components/{p-ef6a3ff3.entry.js → p-78348fd6.entry.js} +2 -2
- package/dist/mint-components/p-7cdc3d59.system.entry.js +1 -0
- package/dist/mint-components/{p-dd0b4da7.system.entry.js → p-7dcd091c.system.entry.js} +1 -1
- package/dist/mint-components/{p-05f069ce.entry.js → p-7f950006.entry.js} +2 -2
- package/dist/mint-components/{p-e49392c3.system.entry.js → p-7f9953fc.system.entry.js} +1 -1
- package/dist/mint-components/p-8756e3ae.system.entry.js +1 -0
- package/dist/mint-components/p-8930ca8e.system.entry.js +1 -0
- package/dist/mint-components/p-8be37b05.system.entry.js +1 -0
- package/dist/mint-components/p-8f4bf5e3.system.js +1 -0
- package/dist/mint-components/{p-d65de81a.entry.js → p-9522cf59.entry.js} +1 -1
- package/dist/mint-components/{p-9fc8505c.entry.js → p-995117b1.entry.js} +1 -1
- package/dist/mint-components/{p-b0ef4f17.entry.js → p-9a67f0b2.entry.js} +1 -1
- package/dist/mint-components/{p-9b2e0735.system.entry.js → p-9bb762f8.system.entry.js} +1 -1
- package/dist/mint-components/p-9f0aca0e.system.js +1 -0
- package/dist/mint-components/p-9f472ce9.entry.js +9 -0
- package/dist/mint-components/p-aac1d82a.system.js +1 -0
- package/dist/mint-components/p-adb1f996.js +1 -0
- package/dist/mint-components/p-b2d41729.js +1 -0
- package/dist/mint-components/{p-a65e2e14.system.entry.js → p-b4779d76.system.entry.js} +1 -1
- package/dist/mint-components/p-b6713eac.entry.js +1 -0
- package/dist/mint-components/{p-42844992.js → p-bc64b988.js} +3 -3
- package/dist/mint-components/p-bcc9f143.js +379 -0
- package/dist/mint-components/p-bcd04c27.js +1 -0
- package/dist/mint-components/{p-be8f19ba.system.entry.js → p-c51de4f4.system.entry.js} +1 -1
- package/dist/mint-components/p-c58a09e4.js +1 -0
- package/dist/mint-components/{p-2e9a5714.js → p-c9818f06.js} +1 -1
- package/dist/mint-components/p-ca6e1a47.system.js +1 -0
- package/dist/mint-components/{p-ee469a91.entry.js → p-cfcb517b.entry.js} +1 -1
- package/dist/mint-components/p-d0f2d5e3.system.entry.js +1 -0
- package/dist/mint-components/p-d2bd3b4b.system.entry.js +1 -0
- package/dist/mint-components/{p-c2bd46e2.entry.js → p-d3c26e65.entry.js} +1 -1
- package/dist/mint-components/p-d4b174e1.system.js +1 -0
- package/dist/mint-components/p-d4f8aa26.entry.js +1 -0
- package/dist/mint-components/{p-8f1974f8.system.entry.js → p-d86c3c45.system.entry.js} +1 -1
- package/dist/mint-components/p-d88ed63d.entry.js +1 -0
- package/dist/mint-components/{p-c8d74710.entry.js → p-da31e785.entry.js} +1 -1
- package/dist/mint-components/{p-16394ed3.system.entry.js → p-da8bdb5e.system.entry.js} +1 -1
- package/dist/mint-components/p-dc59a463.entry.js +1 -0
- package/dist/mint-components/{p-0bf5a9b8.system.entry.js → p-dce5e97a.system.entry.js} +1 -1
- package/dist/mint-components/{p-ed9374ef.system.entry.js → p-debd47d0.system.entry.js} +1 -1
- package/dist/mint-components/{p-b6dafb9b.system.js → p-df15da1e.system.js} +1 -1
- package/dist/mint-components/{p-ee7bc1c7.system.js → p-df1af170.system.js} +1 -1
- package/dist/mint-components/p-e231860a.entry.js +1 -0
- package/dist/mint-components/p-e4b12586.system.entry.js +1 -0
- package/dist/mint-components/p-ea6a7135.js +1 -0
- package/dist/mint-components/p-ebccb162.js +1 -0
- package/dist/mint-components/{p-a23a2a86.entry.js → p-eccd2792.entry.js} +1 -1
- package/dist/mint-components/p-eea49084.entry.js +1 -0
- package/dist/mint-components/p-f11c9bb1.system.js +1 -0
- package/dist/mint-components/{p-831d1332.js → p-f6743fbe.js} +1 -1
- package/dist/mint-components/{p-66e3cb0c.system.entry.js → p-fa376627.system.entry.js} +1 -1
- package/dist/mint-components/{p-f064bf28.entry.js → p-fabf03c8.entry.js} +1 -1
- package/dist/mint-components/{p-ba295930.system.entry.js → p-fc468ef7.system.entry.js} +1 -1
- package/dist/mint-components/p-fca0dc98.system.js +1 -0
- package/dist/mint-components/{p-e341e670.system.entry.js → p-fe276517.system.entry.js} +1 -1
- package/dist/types/components/sqm-edit-profile/sqm-edit-profile-view.d.ts +1 -0
- package/dist/types/components/sqm-edit-profile/sqm-edit-profile.d.ts +12 -0
- package/dist/types/components/sqm-edit-profile/useEditProfile.d.ts +2 -11
- package/dist/types/components/sqm-password-field/passwordValidation.d.ts +1 -1
- package/dist/types/components/sqm-password-field/sqm-password-field.d.ts +24 -0
- package/dist/types/components/sqm-popup-container/PopupContainer.stories.d.ts +5 -0
- package/dist/types/components/sqm-popup-container/sqm-popup-container-view.d.ts +1 -1
- package/dist/types/components/sqm-popup-container/sqm-popup-container.d.ts +6 -0
- package/dist/types/components/sqm-popup-container/usePopupContainer.d.ts +2 -0
- package/dist/types/components/sqm-portal-change-password/sqm-portal-change-password-view.d.ts +6 -0
- package/dist/types/components/sqm-portal-change-password/sqm-portal-change-password.d.ts +32 -0
- package/dist/types/components/sqm-portal-change-password/usePortalChangePassword.d.ts +6 -0
- package/dist/types/components/sqm-portal-email-verification/sqm-portal-email-verification-view.d.ts +1 -0
- package/dist/types/components/sqm-portal-email-verification/sqm-portal-email-verification.d.ts +10 -0
- package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.d.ts +1 -0
- package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password.d.ts +10 -1
- package/dist/types/components/sqm-portal-login/sqm-portal-login.d.ts +5 -0
- package/dist/types/components/sqm-portal-login/usePortalLogin.d.ts +4 -3
- package/dist/types/components/sqm-portal-profile/sqm-portal-profile-view.d.ts +2 -0
- package/dist/types/components/sqm-portal-profile/sqm-portal-profile.d.ts +17 -0
- package/dist/types/components/sqm-portal-profile/usePortalProfile.d.ts +2 -1
- package/dist/types/components/sqm-portal-register/sqm-portal-register-view.d.ts +6 -0
- package/dist/types/components/sqm-portal-register/sqm-portal-register.d.ts +24 -0
- package/dist/types/components/sqm-portal-registration-form/sqm-portal-registration-form-view.d.ts +6 -0
- package/dist/types/components/sqm-portal-registration-form/sqm-portal-registration-form.d.ts +24 -0
- package/dist/types/components/sqm-portal-reset-password/sqm-portal-reset-password-view.d.ts +9 -0
- package/dist/types/components/sqm-portal-reset-password/sqm-portal-reset-password.d.ts +42 -0
- package/dist/types/components/sqm-portal-verify-email/sqm-portal-verify-email-view.d.ts +6 -0
- package/dist/types/components/sqm-portal-verify-email/sqm-portal-verify-email.d.ts +24 -0
- package/dist/types/components/sqm-portal-verify-email/usePortalVerifyEmail.d.ts +11 -2
- package/dist/types/components/sqm-share-button/sqm-share-button.d.ts +10 -0
- package/dist/types/components/sqm-share-button/useShareButton.d.ts +2 -0
- package/dist/types/components.d.ts +464 -2
- package/dist/types/utilities.d.ts +3 -0
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +3 -3
- package/dist/esm-es5/ShadowViewAddon-a5b397ce.js +0 -1
- package/dist/esm-es5/index.module-99d8522e.js +0 -1
- package/dist/esm-es5/sqm-portal-profile-view-efa44888.js +0 -1
- package/dist/esm-es5/sqm-portal-reset-password-view-0df781f6.js +0 -1
- package/dist/esm-es5/sqm-portal-verify-email-view-1db4fae6.js +0 -1
- package/dist/esm-es5/useRegistrationFormState-c9d54ef3.js +0 -1
- package/dist/mint-components/p-0943b547.system.js +0 -1
- package/dist/mint-components/p-0ad6459e.entry.js +0 -1
- package/dist/mint-components/p-0b8f38a8.entry.js +0 -1
- package/dist/mint-components/p-0de80de6.js +0 -1
- package/dist/mint-components/p-10bf0b3a.entry.js +0 -9
- package/dist/mint-components/p-13570402.system.entry.js +0 -1
- package/dist/mint-components/p-1437b793.system.js +0 -1
- package/dist/mint-components/p-1c9d83b4.entry.js +0 -1
- package/dist/mint-components/p-1ce682cf.js +0 -379
- package/dist/mint-components/p-1e884e97.system.entry.js +0 -1
- package/dist/mint-components/p-1fa097d3.entry.js +0 -1
- package/dist/mint-components/p-20b4e20b.system.entry.js +0 -1
- package/dist/mint-components/p-22d1e92e.system.js +0 -1
- package/dist/mint-components/p-25ad41bd.system.entry.js +0 -1
- package/dist/mint-components/p-2bba85ac.system.entry.js +0 -1
- package/dist/mint-components/p-3e0bb7f9.entry.js +0 -1
- package/dist/mint-components/p-41c62fef.system.js +0 -1
- package/dist/mint-components/p-46be1518.system.js +0 -1
- package/dist/mint-components/p-56525896.system.js +0 -1
- package/dist/mint-components/p-57a89487.entry.js +0 -1
- package/dist/mint-components/p-59318941.system.js +0 -1
- package/dist/mint-components/p-6d1a2821.system.entry.js +0 -1
- package/dist/mint-components/p-6e793d76.system.entry.js +0 -1
- package/dist/mint-components/p-6fed24de.entry.js +0 -1
- package/dist/mint-components/p-74e8a90c.entry.js +0 -187
- package/dist/mint-components/p-75ddf3ca.js +0 -1
- package/dist/mint-components/p-7b490a03.system.js +0 -1
- package/dist/mint-components/p-7d5ee633.system.entry.js +0 -1
- package/dist/mint-components/p-821004e9.system.entry.js +0 -1
- package/dist/mint-components/p-84ee5462.system.entry.js +0 -1
- package/dist/mint-components/p-878daf52.js +0 -1
- package/dist/mint-components/p-89e86134.entry.js +0 -1
- package/dist/mint-components/p-8b28c511.js +0 -1
- package/dist/mint-components/p-9a74f167.entry.js +0 -13
- package/dist/mint-components/p-a217deee.js +0 -1
- package/dist/mint-components/p-a372d9cf.system.js +0 -1
- package/dist/mint-components/p-abfb3897.system.entry.js +0 -1
- package/dist/mint-components/p-b0f3c6c5.entry.js +0 -33
- package/dist/mint-components/p-b4fddf49.entry.js +0 -1
- package/dist/mint-components/p-b9c7b7ef.entry.js +0 -1
- package/dist/mint-components/p-ce748fab.js +0 -1
- package/dist/mint-components/p-d5e83056.entry.js +0 -1
- package/dist/mint-components/p-db9652e7.system.entry.js +0 -1
- package/dist/mint-components/p-e058ba88.entry.js +0 -1
- package/dist/mint-components/p-e9197aac.entry.js +0 -1
- package/dist/mint-components/p-eab33344.js +0 -1
- package/dist/mint-components/p-efd129de.js +0 -1
- package/dist/mint-components/p-f04ce58d.system.entry.js +0 -1
- package/dist/mint-components/p-f21aa0bd.entry.js +0 -1
- package/dist/mint-components/p-f60d9f3e.system.entry.js +0 -1
- package/dist/mint-components/p-f63961b4.system.js +0 -1
- package/dist/mint-components/p-f71cfd64.js +0 -1
- package/dist/mint-components/p-f7b5c0ac.system.entry.js +0 -1
- package/dist/mint-components/p-f82bb604.entry.js +0 -1
- package/dist/mint-components/p-ff3b0ece.system.entry.js +0 -1
- package/dist/types/global/android.d.ts +0 -7
- package/dist/types/global/demo.d.ts +0 -1
- package/dist/types/stories/features.d.ts +0 -4
- package/dist/types/stories/templates.d.ts +0 -4
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1, c as Host } from './index-17b4da69.js';
|
|
2
|
-
import { m as h, f as useEffect, j as useState, o as d, k as useRef, b as browser, i as useReducer } from './stencil-hooks.module-
|
|
3
|
-
import { i as intl } from './global-
|
|
4
|
-
import { i as isDemo,
|
|
2
|
+
import { m as h, f as useEffect, j as useState, o as d, k as useRef, b as browser, i as useReducer } from './stencil-hooks.module-9ad75b88.js';
|
|
3
|
+
import { i as intl } from './global-0268f7bb.js';
|
|
4
|
+
import { i as isDemo, O, d as dist, H, _, M as Me, g as gn, Q, N, f as fn, y as yn, q as We, $ as $e, r as je, j as useCallback, t as Te, p as pn } from './index.module-cbe33f2d.js';
|
|
5
5
|
import { j as jsonpointer } from './jsonpointer-388a7082.js';
|
|
6
6
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
7
7
|
import './mixins-f60a614c.js';
|
|
8
8
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
9
|
-
import { a as useRequestRerender } from './re-render-
|
|
10
|
-
import { u as useChildElements } from './useChildElements-
|
|
11
|
-
import './luxon-
|
|
9
|
+
import { a as useRequestRerender } from './re-render-4e10b5ac.js';
|
|
10
|
+
import { u as useChildElements } from './useChildElements-f6672214.js';
|
|
11
|
+
import './luxon-5ca0a018.js';
|
|
12
12
|
import { g as getProps, a as getMissingProps, s as sanitizeUrlPath } from './utils-334c1e34.js';
|
|
13
13
|
import './sqm-text-span-view-8d140661.js';
|
|
14
|
-
import { R as REGISTRATION_FORM_STATE_CONTEXT, u as useRegistrationFormState } from './useRegistrationFormState-
|
|
14
|
+
import { R as REGISTRATION_FORM_STATE_CONTEXT, u as useRegistrationFormState } from './useRegistrationFormState-424e2af2.js';
|
|
15
|
+
import { i as isEmpty } from './utilities-a6f1de33.js';
|
|
15
16
|
import { A as AsYouType } from './AsYouType-46f67d0d.js';
|
|
16
|
-
import { b as useDemoBigStat, U as useBigStat, B as BigStatView, O as autoColorScaleCss, K as CardFeedView, j as CheckboxFieldView, M as CouponCodeView, D as DropdownFieldView, E as EditProfileView, H as HeroView, I as InputFieldView, V as withShadowView, L as LeaderboardView, N as NameFieldsView, d as PortalChangePasswordView, i as PortalFooterView, P as PortalFrameView, e as PortalLoginView, f as PortalRegisterView, R as ReferralIframeView, W as demoRewardExchange, k as RewardExchangeView, X as pathToRegexp, a as useShareButton, S as ShareButtonView, C as CopyTextView, u as useShareLink, c as StatContainerView, T as TaskCardView } from './ShadowViewAddon-
|
|
17
|
+
import { b as useDemoBigStat, U as useBigStat, B as BigStatView, O as autoColorScaleCss, K as CardFeedView, j as CheckboxFieldView, M as CouponCodeView, D as DropdownFieldView, E as EditProfileView, H as HeroView, I as InputFieldView, V as withShadowView, L as LeaderboardView, N as NameFieldsView, d as PortalChangePasswordView, i as PortalFooterView, P as PortalFrameView, e as PortalLoginView, f as PortalRegisterView, R as ReferralIframeView, W as demoRewardExchange, k as RewardExchangeView, X as pathToRegexp, a as useShareButton, S as ShareButtonView, C as CopyTextView, u as useShareLink, c as StatContainerView, T as TaskCardView } from './ShadowViewAddon-be3c7698.js';
|
|
17
18
|
import './sqm-portal-container-view-ab89c6cc.js';
|
|
18
19
|
|
|
19
20
|
const BigStat = class {
|
|
@@ -33,7 +34,7 @@ const BigStat = class {
|
|
|
33
34
|
render() {
|
|
34
35
|
var _a;
|
|
35
36
|
const { props, label } = isDemo() ? useDemoBigStat(this) : useBigStat(this);
|
|
36
|
-
const host =
|
|
37
|
+
const host = O();
|
|
37
38
|
const hasLabel = !!((_a = host.innerHTML) === null || _a === void 0 ? void 0 : _a.trim());
|
|
38
39
|
const labelSlot = h$1("slot", { name: "label" }, hasLabel ? h$1("slot", null) : label);
|
|
39
40
|
return h$1(BigStatView, Object.assign({}, props, { labelSlot: labelSlot }));
|
|
@@ -154,7 +155,7 @@ const styleString = sheet.toString();
|
|
|
154
155
|
function RequiredPropsError({ missingProps, heading = "There was a problem loading this section", subheading = "There was a technical problem that prevented this section from loading. Please contact us with the link to this page.", description = "Error occured while loading <{tagName}>. Values for the following attributes are missing:", }, children) {
|
|
155
156
|
if (!missingProps)
|
|
156
157
|
return false;
|
|
157
|
-
const host =
|
|
158
|
+
const host = O();
|
|
158
159
|
const [detailsOpen, setDetailsOpen] = useState(false);
|
|
159
160
|
return (h$1("sl-alert", { type: "danger", open: true },
|
|
160
161
|
h$1("style", { type: "text/css" }, styleString),
|
|
@@ -297,10 +298,10 @@ const WIDGET_ENGAGEMENT_EVENT = dist.gql `
|
|
|
297
298
|
function useCouponCode(props) {
|
|
298
299
|
var _a, _b, _c;
|
|
299
300
|
const user = H();
|
|
300
|
-
const programId =
|
|
301
|
-
const engagementMedium =
|
|
302
|
-
const [sendLoadEvent] =
|
|
303
|
-
const { data, loading, refetch, errors } =
|
|
301
|
+
const programId = _();
|
|
302
|
+
const engagementMedium = Q();
|
|
303
|
+
const [sendLoadEvent] = Me(WIDGET_ENGAGEMENT_EVENT);
|
|
304
|
+
const { data, loading, refetch, errors } = gn(FuelTankRewardsQuery, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
304
305
|
const getStatus = (reward) => {
|
|
305
306
|
if (!reward || !reward.statuses)
|
|
306
307
|
return "ERROR";
|
|
@@ -686,8 +687,8 @@ function useEditProfile(props) {
|
|
|
686
687
|
const [error, setError] = useState("");
|
|
687
688
|
const [userData, setUserData] = useState(undefined);
|
|
688
689
|
const [formState, setFormState] = useState(defaultFormState);
|
|
689
|
-
const userDataResponse =
|
|
690
|
-
const [upsertUser, upsertUserResponse] =
|
|
690
|
+
const userDataResponse = gn(GET_USER, {}, !(userIdent === null || userIdent === void 0 ? void 0 : userIdent.jwt));
|
|
691
|
+
const [upsertUser, upsertUserResponse] = Me(UPSERT_USER);
|
|
691
692
|
useEffect(() => {
|
|
692
693
|
if ((upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.loading) || !showEdit)
|
|
693
694
|
return;
|
|
@@ -717,7 +718,7 @@ function useEditProfile(props) {
|
|
|
717
718
|
useEffect(() => {
|
|
718
719
|
var _a;
|
|
719
720
|
if ((_a = upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.errors) === null || _a === void 0 ? void 0 : _a.message) {
|
|
720
|
-
setFormState((state) => ({ ...state, error:
|
|
721
|
+
setFormState((state) => ({ ...state, error: props.networkErrorMessage }));
|
|
721
722
|
}
|
|
722
723
|
}, [upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.errors]);
|
|
723
724
|
return {
|
|
@@ -736,6 +737,7 @@ function useEditProfile(props) {
|
|
|
736
737
|
updatetext: props.updatetext,
|
|
737
738
|
currentregiontext: props.currentregiontext,
|
|
738
739
|
showregion: props.showregion,
|
|
740
|
+
fieldEmptyText: props.fieldEmptyText,
|
|
739
741
|
},
|
|
740
742
|
},
|
|
741
743
|
callbacks: {
|
|
@@ -752,15 +754,15 @@ function useEditProfile(props) {
|
|
|
752
754
|
}
|
|
753
755
|
const errors = {};
|
|
754
756
|
if (!formState.firstName) {
|
|
755
|
-
errors["firstName"] = { message:
|
|
757
|
+
errors["firstName"] = { message: props.fieldEmptyText };
|
|
756
758
|
}
|
|
757
759
|
if (!formState.lastName) {
|
|
758
|
-
errors["lastName"] = { message:
|
|
760
|
+
errors["lastName"] = { message: props.fieldEmptyText };
|
|
759
761
|
}
|
|
760
|
-
if (errors
|
|
762
|
+
if (!isEmpty(errors)) {
|
|
761
763
|
setFormState((e) => ({
|
|
762
764
|
...e,
|
|
763
|
-
error:
|
|
765
|
+
error: props.formErrorText,
|
|
764
766
|
}));
|
|
765
767
|
}
|
|
766
768
|
setFormState((e) => ({ ...e, errors }));
|
|
@@ -797,6 +799,18 @@ const EditProfile = class {
|
|
|
797
799
|
constructor(hostRef) {
|
|
798
800
|
registerInstance(this, hostRef);
|
|
799
801
|
this.ignored = true;
|
|
802
|
+
/**
|
|
803
|
+
* @uiName Network error message
|
|
804
|
+
*/
|
|
805
|
+
this.networkErrorMessage = "Network request failed.";
|
|
806
|
+
/**
|
|
807
|
+
* @uiName Empty field error message
|
|
808
|
+
*/
|
|
809
|
+
this.fieldEmptyText = "Cannot be empty";
|
|
810
|
+
/**
|
|
811
|
+
* @uiName Form error message
|
|
812
|
+
*/
|
|
813
|
+
this.formErrorText = "Please correct the errors below to update your profile.";
|
|
800
814
|
h(this);
|
|
801
815
|
}
|
|
802
816
|
disconnectedCallback() { }
|
|
@@ -842,6 +856,7 @@ function useEditProfileDemo(props) {
|
|
|
842
856
|
? props.currentregiontext
|
|
843
857
|
: "Region",
|
|
844
858
|
showregion: true,
|
|
859
|
+
fieldEmptyText: props.fieldEmptyText,
|
|
845
860
|
},
|
|
846
861
|
},
|
|
847
862
|
callbacks: {
|
|
@@ -1227,11 +1242,11 @@ const GET_RANK = dist.gql `
|
|
|
1227
1242
|
`;
|
|
1228
1243
|
function useLeaderboard(props) {
|
|
1229
1244
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1230
|
-
const programIdContext =
|
|
1245
|
+
const programIdContext = _();
|
|
1231
1246
|
// Default to context, overriden by props
|
|
1232
1247
|
const programId = (_a = props.programId) !== null && _a !== void 0 ? _a : programIdContext;
|
|
1233
1248
|
const user = H();
|
|
1234
|
-
const locale =
|
|
1249
|
+
const locale = N();
|
|
1235
1250
|
const variables = programId
|
|
1236
1251
|
? {
|
|
1237
1252
|
type: props.leaderboardType,
|
|
@@ -1250,8 +1265,8 @@ function useLeaderboard(props) {
|
|
|
1250
1265
|
if (props.maxRows > 0) {
|
|
1251
1266
|
variables["limit"] = props.maxRows;
|
|
1252
1267
|
}
|
|
1253
|
-
const { data: leaderboardData, loading: loadingLeaderboard } =
|
|
1254
|
-
const { data: rankData } =
|
|
1268
|
+
const { data: leaderboardData, loading: loadingLeaderboard } = gn(GET_LEADERBOARD, variables, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
1269
|
+
const { data: rankData } = gn(GET_RANK, variables, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
1255
1270
|
const leaderboardRows = (_b = leaderboardData === null || leaderboardData === void 0 ? void 0 : leaderboardData.userLeaderboard) === null || _b === void 0 ? void 0 : _b.rows;
|
|
1256
1271
|
const flattenedLeaderboard = getFlattenedLeaderboard(leaderboardRows);
|
|
1257
1272
|
const sortedLeaderboard = flattenedLeaderboard === null || flattenedLeaderboard === void 0 ? void 0 : flattenedLeaderboard.sort(function (a, b) {
|
|
@@ -1525,11 +1540,11 @@ function NavigationMenuView(props) {
|
|
|
1525
1540
|
}
|
|
1526
1541
|
|
|
1527
1542
|
function handleMenu(e) {
|
|
1528
|
-
|
|
1543
|
+
yn.push(e.detail.item.value);
|
|
1529
1544
|
}
|
|
1530
1545
|
function useNavigationMenu(props) {
|
|
1531
1546
|
const ref = useRef();
|
|
1532
|
-
const [, rerender] =
|
|
1547
|
+
const [, rerender] = fn();
|
|
1533
1548
|
const user = H();
|
|
1534
1549
|
useEffect(() => {
|
|
1535
1550
|
var _a;
|
|
@@ -1584,7 +1599,7 @@ NavigationMenu.style = sqmNavigationMenuCss;
|
|
|
1584
1599
|
|
|
1585
1600
|
function usePortalChangePassword(props) {
|
|
1586
1601
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
1587
|
-
const [request, { loading, errors, data }] =
|
|
1602
|
+
const [request, { loading, errors, data }] = We();
|
|
1588
1603
|
const [open, setOpen] = useState(false);
|
|
1589
1604
|
const [error, setError] = useState("");
|
|
1590
1605
|
const [success, setSuccess] = useState(false);
|
|
@@ -1597,11 +1612,11 @@ function usePortalChangePassword(props) {
|
|
|
1597
1612
|
jsonpointer.set(formData, key, value);
|
|
1598
1613
|
});
|
|
1599
1614
|
if (!(user === null || user === void 0 ? void 0 : user.jwt)) {
|
|
1600
|
-
setError(
|
|
1615
|
+
setError(props.invalidSessionErrorText);
|
|
1601
1616
|
return;
|
|
1602
1617
|
}
|
|
1603
1618
|
if (formData.password !== formData.confirmPassword) {
|
|
1604
|
-
setError(
|
|
1619
|
+
setError(props.nonMatchingPasswordErrorText);
|
|
1605
1620
|
return;
|
|
1606
1621
|
}
|
|
1607
1622
|
setError("");
|
|
@@ -1628,6 +1643,12 @@ function usePortalChangePassword(props) {
|
|
|
1628
1643
|
successMessage: props.successMessage,
|
|
1629
1644
|
portalChangePasswordHeader: props.portalChangePasswordHeader,
|
|
1630
1645
|
portalChangePasswordButtonText: props.portalChangePasswordButtonText,
|
|
1646
|
+
meetsRequirementsText: props.meetsRequirementsText,
|
|
1647
|
+
doesNotMeetRequirementsText: props.doesNotMeetRequirementsText,
|
|
1648
|
+
minErrorText: props.minErrorText,
|
|
1649
|
+
uppercaseErrorText: props.uppercaseErrorText,
|
|
1650
|
+
lowercaseErrorText: props.lowercaseErrorText,
|
|
1651
|
+
hasErrorText: props.hasErrorText,
|
|
1631
1652
|
},
|
|
1632
1653
|
},
|
|
1633
1654
|
data: {},
|
|
@@ -1687,6 +1708,38 @@ const PortalChangePassword = class {
|
|
|
1687
1708
|
* @uiName Change password button text
|
|
1688
1709
|
*/
|
|
1689
1710
|
this.portalChangePasswordButtonText = "Change your password...";
|
|
1711
|
+
/**
|
|
1712
|
+
* @uiName Password requirement met
|
|
1713
|
+
*/
|
|
1714
|
+
this.meetsRequirementsText = "Password has met all requirements";
|
|
1715
|
+
/**
|
|
1716
|
+
* @uiName Password requirement failed
|
|
1717
|
+
*/
|
|
1718
|
+
this.doesNotMeetRequirementsText = "Password must meet the following requirements:";
|
|
1719
|
+
/**
|
|
1720
|
+
* @uiName Minimum length text
|
|
1721
|
+
*/
|
|
1722
|
+
this.minErrorText = "be a minimum of 8 characters";
|
|
1723
|
+
/**
|
|
1724
|
+
* @uiName Missing uppercase text
|
|
1725
|
+
*/
|
|
1726
|
+
this.uppercaseErrorText = "contain at least 1 uppercase character";
|
|
1727
|
+
/**
|
|
1728
|
+
* @uiName Missing lowercase text
|
|
1729
|
+
*/
|
|
1730
|
+
this.lowercaseErrorText = "contain at least 1 lowercase character";
|
|
1731
|
+
/**
|
|
1732
|
+
* @uiName Passwords don’t match error message
|
|
1733
|
+
*/
|
|
1734
|
+
this.nonMatchingPasswordErrorText = "contain at least 1 lowercase character";
|
|
1735
|
+
/**
|
|
1736
|
+
* @uiName Invalid user session error message
|
|
1737
|
+
*/
|
|
1738
|
+
this.invalidSessionErrorText = "Please log in again to change your password.";
|
|
1739
|
+
/**
|
|
1740
|
+
* @uiName Missing number or symbol text
|
|
1741
|
+
*/
|
|
1742
|
+
this.hasErrorText = "contain at least 1 number or symbol";
|
|
1690
1743
|
h(this);
|
|
1691
1744
|
}
|
|
1692
1745
|
disconnectedCallback() { }
|
|
@@ -1712,6 +1765,12 @@ function usePortalChangePasswordDemo(props) {
|
|
|
1712
1765
|
successMessage: props.successMessage,
|
|
1713
1766
|
portalChangePasswordHeader: props.portalChangePasswordHeader,
|
|
1714
1767
|
portalChangePasswordButtonText: props.portalChangePasswordButtonText,
|
|
1768
|
+
meetsRequirementsText: props.meetsRequirementsText,
|
|
1769
|
+
doesNotMeetRequirementsText: props.doesNotMeetRequirementsText,
|
|
1770
|
+
minErrorText: props.minErrorText,
|
|
1771
|
+
uppercaseErrorText: props.uppercaseErrorText,
|
|
1772
|
+
lowercaseErrorText: props.lowercaseErrorText,
|
|
1773
|
+
hasErrorText: props.hasErrorText,
|
|
1715
1774
|
},
|
|
1716
1775
|
},
|
|
1717
1776
|
callbacks: {
|
|
@@ -1784,7 +1843,7 @@ const PortalFooter = class {
|
|
|
1784
1843
|
};
|
|
1785
1844
|
|
|
1786
1845
|
function usePortalFrame(footerContent, headerContent) {
|
|
1787
|
-
const [, rerender] =
|
|
1846
|
+
const [, rerender] = fn();
|
|
1788
1847
|
return {
|
|
1789
1848
|
data: {
|
|
1790
1849
|
footer: footerContent,
|
|
@@ -1834,9 +1893,9 @@ function usePortalFrameDemo(footerContent, headerContent, props) {
|
|
|
1834
1893
|
|
|
1835
1894
|
function usePortalLogin(props) {
|
|
1836
1895
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
1837
|
-
const [request, { loading, errors, data }] =
|
|
1896
|
+
const [request, { loading, errors, data }] = $e();
|
|
1838
1897
|
const [error, setError] = useState("");
|
|
1839
|
-
const urlParams = new URLSearchParams(
|
|
1898
|
+
const urlParams = new URLSearchParams(yn.location.search);
|
|
1840
1899
|
const nextPageOverride = urlParams.get("nextPage");
|
|
1841
1900
|
const submit = async (event) => {
|
|
1842
1901
|
var _a, _b;
|
|
@@ -1849,13 +1908,13 @@ function usePortalLogin(props) {
|
|
|
1849
1908
|
const result = await request(variables);
|
|
1850
1909
|
if (result instanceof Error) {
|
|
1851
1910
|
if ((result === null || result === void 0 ? void 0 : result.message) || ((_a = result === null || result === void 0 ? void 0 : result["response"]) === null || _a === void 0 ? void 0 : _a["error"]))
|
|
1852
|
-
setError(
|
|
1911
|
+
setError(props.networkErrorMessage);
|
|
1853
1912
|
return;
|
|
1854
1913
|
}
|
|
1855
1914
|
if ((_b = result.authenticateManagedIdentityWithEmailAndPassword) === null || _b === void 0 ? void 0 : _b.token) {
|
|
1856
1915
|
urlParams.delete("nextPage");
|
|
1857
1916
|
const url = sanitizeUrlPath(nextPageOverride || props.nextPage);
|
|
1858
|
-
|
|
1917
|
+
yn.push(url.href);
|
|
1859
1918
|
}
|
|
1860
1919
|
};
|
|
1861
1920
|
const errorMessage = ((_d = (_c = (_b = (_a = errors === null || errors === void 0 ? void 0 : errors.response) === null || _a === void 0 ? void 0 : _a.errors) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.extensions) === null || _d === void 0 ? void 0 : _d.message) || ((_g = (_f = (_e = errors === null || errors === void 0 ? void 0 : errors.response) === null || _e === void 0 ? void 0 : _e.errors) === null || _f === void 0 ? void 0 : _f[0]) === null || _g === void 0 ? void 0 : _g.message) ||
|
|
@@ -1921,6 +1980,11 @@ const PortalLogin = class {
|
|
|
1921
1980
|
* @uiWidget textArea
|
|
1922
1981
|
*/
|
|
1923
1982
|
this.pageLabel = "Sign in to your account";
|
|
1983
|
+
/**
|
|
1984
|
+
* @uiName Network error message
|
|
1985
|
+
* Displayed when the login fails due to a network error. The participant can try refreshing the page.
|
|
1986
|
+
*/
|
|
1987
|
+
this.networkErrorMessage = "An error occurred while logging you in. Please refresh the page and try again.";
|
|
1924
1988
|
h(this);
|
|
1925
1989
|
}
|
|
1926
1990
|
disconnectedCallback() { }
|
|
@@ -1929,8 +1993,8 @@ const PortalLogin = class {
|
|
|
1929
1993
|
? useLoginDemo(this)
|
|
1930
1994
|
: usePortalLogin(this);
|
|
1931
1995
|
const content = {
|
|
1932
|
-
forgotPasswordButton: (h$1("slot", { name: "forgotPassword" }, h$1("a", { onClick: () =>
|
|
1933
|
-
secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("sl-button", { type: "text", disabled: states.loading, onClick: () =>
|
|
1996
|
+
forgotPasswordButton: (h$1("slot", { name: "forgotPassword" }, h$1("a", { onClick: () => yn.push(states.forgotPasswordPath) }, this.forgotPasswordLabel))),
|
|
1997
|
+
secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("sl-button", { type: "text", disabled: states.loading, onClick: () => yn.push(states.registerPath) }, this.registerLabel))),
|
|
1934
1998
|
emailLabel: this.emailLabel,
|
|
1935
1999
|
passwordLabel: this.passwordLabel,
|
|
1936
2000
|
submitLabel: this.submitLabel,
|
|
@@ -1959,7 +2023,7 @@ function usePortalRegister(props) {
|
|
|
1959
2023
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1960
2024
|
const formRef = useRef(null);
|
|
1961
2025
|
const { registrationFormState, setRegistrationFormState } = useRegistrationFormState({});
|
|
1962
|
-
const [request, { loading, errors, data }] =
|
|
2026
|
+
const [request, { loading, errors, data }] = je();
|
|
1963
2027
|
useEffect(() => {
|
|
1964
2028
|
if (!formRef.current)
|
|
1965
2029
|
return;
|
|
@@ -2032,7 +2096,7 @@ function usePortalRegister(props) {
|
|
|
2032
2096
|
validationErrors: {},
|
|
2033
2097
|
});
|
|
2034
2098
|
if ((_a = result.registerManagedIdentityWithEmailAndPassword) === null || _a === void 0 ? void 0 : _a.token) {
|
|
2035
|
-
|
|
2099
|
+
yn.push(props.nextPage);
|
|
2036
2100
|
}
|
|
2037
2101
|
}
|
|
2038
2102
|
catch (error) {
|
|
@@ -2173,6 +2237,30 @@ const PortalRegister = class {
|
|
|
2173
2237
|
* @uiWidget textArea
|
|
2174
2238
|
*/
|
|
2175
2239
|
this.invalidEmailErrorMessage = "Must be a valid email address";
|
|
2240
|
+
/**
|
|
2241
|
+
* @uiName Password requirement met
|
|
2242
|
+
*/
|
|
2243
|
+
this.meetsRequirementsText = "Password has met all requirements";
|
|
2244
|
+
/**
|
|
2245
|
+
* @uiName Password requirement failed
|
|
2246
|
+
*/
|
|
2247
|
+
this.doesNotMeetRequirementsText = "Password must meet the following requirements:";
|
|
2248
|
+
/**
|
|
2249
|
+
* @uiName Minimum length text
|
|
2250
|
+
*/
|
|
2251
|
+
this.minErrorText = "be a minimum of 8 characters";
|
|
2252
|
+
/**
|
|
2253
|
+
* @uiName Missing uppercase text
|
|
2254
|
+
*/
|
|
2255
|
+
this.uppercaseErrorText = "contain at least 1 uppercase character";
|
|
2256
|
+
/**
|
|
2257
|
+
* @uiName Missing lowercase text
|
|
2258
|
+
*/
|
|
2259
|
+
this.lowercaseErrorText = "contain at least 1 lowercase character";
|
|
2260
|
+
/**
|
|
2261
|
+
* @uiName Missing number or symbol text
|
|
2262
|
+
*/
|
|
2263
|
+
this.hasErrorText = "contain at least 1 number or symbol";
|
|
2176
2264
|
h(this);
|
|
2177
2265
|
}
|
|
2178
2266
|
disconnectedCallback() { }
|
|
@@ -2182,7 +2270,7 @@ const PortalRegister = class {
|
|
|
2182
2270
|
: usePortalRegister(this);
|
|
2183
2271
|
const content = {
|
|
2184
2272
|
formData: h$1("slot", { name: "formData" }),
|
|
2185
|
-
secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("sl-button", { type: "text", disabled: states.loading, onClick: () =>
|
|
2273
|
+
secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("sl-button", { type: "text", disabled: states.loading, onClick: () => yn.push(states.loginPath) }, this.loginLabel))),
|
|
2186
2274
|
terms: h$1("slot", { name: "terms" }),
|
|
2187
2275
|
emailLabel: this.emailLabel,
|
|
2188
2276
|
passwordLabel: this.passwordLabel,
|
|
@@ -2191,6 +2279,12 @@ const PortalRegister = class {
|
|
|
2191
2279
|
confirmPasswordLabel: this.confirmPasswordLabel,
|
|
2192
2280
|
invalidEmailErrorMessage: this.invalidEmailErrorMessage,
|
|
2193
2281
|
requiredFieldErrorMessage: this.requiredFieldErrorMessage,
|
|
2282
|
+
meetsRequirementsText: this.meetsRequirementsText,
|
|
2283
|
+
doesNotMeetRequirementsText: this.doesNotMeetRequirementsText,
|
|
2284
|
+
minErrorText: this.minErrorText,
|
|
2285
|
+
uppercaseErrorText: this.uppercaseErrorText,
|
|
2286
|
+
lowercaseErrorText: this.lowercaseErrorText,
|
|
2287
|
+
hasErrorText: this.hasErrorText,
|
|
2194
2288
|
};
|
|
2195
2289
|
return (h$1(PortalRegisterView, { states: states, callbacks: callbacks, content: content, refs: refs }));
|
|
2196
2290
|
}
|
|
@@ -2347,11 +2441,11 @@ const ProgramExplainerStep = class {
|
|
|
2347
2441
|
const debug = browser("sq:useProgramMenu");
|
|
2348
2442
|
const UPDATE_PROGRAM_EVENT = "sq:update-program-id";
|
|
2349
2443
|
function useProgramMenu(props) {
|
|
2350
|
-
const programId =
|
|
2351
|
-
const host =
|
|
2444
|
+
const programId = _();
|
|
2445
|
+
const host = O();
|
|
2352
2446
|
debug({ programId, props });
|
|
2353
2447
|
const ref = useRef();
|
|
2354
|
-
const [, rerender] =
|
|
2448
|
+
const [, rerender] = fn();
|
|
2355
2449
|
useEffect(() => {
|
|
2356
2450
|
var _a;
|
|
2357
2451
|
(_a = ref.current) === null || _a === void 0 ? void 0 : _a.addEventListener("sl-select", (e) => {
|
|
@@ -2529,9 +2623,9 @@ const GET_USER_DETAILS = dist.gql `
|
|
|
2529
2623
|
`;
|
|
2530
2624
|
function useReferralIframe(props) {
|
|
2531
2625
|
var _a;
|
|
2532
|
-
const programId =
|
|
2626
|
+
const programId = _();
|
|
2533
2627
|
const user = H();
|
|
2534
|
-
const { data } =
|
|
2628
|
+
const { data } = gn(GET_USER_DETAILS, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt) || !programId);
|
|
2535
2629
|
return {
|
|
2536
2630
|
states: {
|
|
2537
2631
|
content: props,
|
|
@@ -3257,8 +3351,8 @@ function useRewardExchangeList(props) {
|
|
|
3257
3351
|
const [open, setOpen] = useState(false);
|
|
3258
3352
|
const { selectedItem, selectedStep, redeemStage, amount, exchangeError } = exchangeState;
|
|
3259
3353
|
const user = H();
|
|
3260
|
-
const [exchange, { data: exchangeResponse, loading: exchangeLoading, errors },] =
|
|
3261
|
-
const { data, loading, refetch, errors: queryError, } =
|
|
3354
|
+
const [exchange, { data: exchangeResponse, loading: exchangeLoading, errors },] = Me(EXCHANGE);
|
|
3355
|
+
const { data, loading, refetch, errors: queryError, } = gn(GET_EXCHANGE_LIST, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
3262
3356
|
useEffect(() => {
|
|
3263
3357
|
var _a, _b;
|
|
3264
3358
|
if ((_b = (_a = exchangeResponse === null || exchangeResponse === void 0 ? void 0 : exchangeResponse.exchangeReward) === null || _a === void 0 ? void 0 : _a.reward) === null || _b === void 0 ? void 0 : _b.id) {
|
|
@@ -3277,7 +3371,7 @@ function useRewardExchangeList(props) {
|
|
|
3277
3371
|
canvas.confetti || confetti.create(canvas, { resize: true });
|
|
3278
3372
|
canvas.confetti();
|
|
3279
3373
|
}, [canvasRef.current]);
|
|
3280
|
-
const { refresh } =
|
|
3374
|
+
const { refresh } = Te();
|
|
3281
3375
|
async function exchangeReward() {
|
|
3282
3376
|
if (!selectedItem)
|
|
3283
3377
|
return;
|
|
@@ -3585,8 +3679,8 @@ function matchPath(pattern, page) {
|
|
|
3585
3679
|
return regexp.exec(page);
|
|
3586
3680
|
}
|
|
3587
3681
|
function useRouter() {
|
|
3588
|
-
const location =
|
|
3589
|
-
const host =
|
|
3682
|
+
const location = pn();
|
|
3683
|
+
const host = O();
|
|
3590
3684
|
const [slot, setSlot] = useState(undefined);
|
|
3591
3685
|
const [container, setContainer] = useState(undefined);
|
|
3592
3686
|
const page = location.pathname;
|
|
@@ -3798,6 +3892,16 @@ const ShareButton = class {
|
|
|
3798
3892
|
* @default
|
|
3799
3893
|
*/
|
|
3800
3894
|
this.hidetext = false;
|
|
3895
|
+
/**
|
|
3896
|
+
* Alert text shown if the share link is undefined
|
|
3897
|
+
* @uiName Undefined link text
|
|
3898
|
+
*/
|
|
3899
|
+
this.undefinedLinkText = "Error: message link undefined!";
|
|
3900
|
+
/**
|
|
3901
|
+
* Alert text shown if the user's device does not support native sharing
|
|
3902
|
+
* @uiName Unsupported platform text
|
|
3903
|
+
*/
|
|
3904
|
+
this.unsupportedPlatformText = "Error: not on a supported device";
|
|
3801
3905
|
h(this);
|
|
3802
3906
|
}
|
|
3803
3907
|
disconnectedCallback() { }
|
|
@@ -3837,11 +3941,11 @@ const WIDGET_ENGAGEMENT_EVENT$1 = dist.gql `
|
|
|
3837
3941
|
`;
|
|
3838
3942
|
function useShareCode(props) {
|
|
3839
3943
|
var _a, _b;
|
|
3840
|
-
const { programId =
|
|
3944
|
+
const { programId = _() } = props;
|
|
3841
3945
|
const user = H();
|
|
3842
|
-
const engagementMedium =
|
|
3843
|
-
const { data } =
|
|
3844
|
-
const [sendLoadEvent] =
|
|
3946
|
+
const engagementMedium = Q();
|
|
3947
|
+
const { data } = gn(MessageLinkQuery, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
3948
|
+
const [sendLoadEvent] = Me(WIDGET_ENGAGEMENT_EVENT$1);
|
|
3845
3949
|
const copyString = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.referralCode) !== null && _b !== void 0 ? _b :
|
|
3846
3950
|
// Shown during loading
|
|
3847
3951
|
"...";
|
|
@@ -4067,9 +4171,9 @@ const SEND_EVENT = dist.gql `
|
|
|
4067
4171
|
`;
|
|
4068
4172
|
function useTaskCard(props) {
|
|
4069
4173
|
const user = H();
|
|
4070
|
-
const locale =
|
|
4071
|
-
const [sendUserEvent, { data, loading: loadingEvent }] =
|
|
4072
|
-
const { refresh } =
|
|
4174
|
+
const locale = N();
|
|
4175
|
+
const [sendUserEvent, { data, loading: loadingEvent }] = Me(SEND_EVENT);
|
|
4176
|
+
const { refresh } = Te();
|
|
4073
4177
|
useEffect(() => {
|
|
4074
4178
|
if (data) {
|
|
4075
4179
|
refresh();
|
|
@@ -4391,7 +4495,7 @@ const GET_USER_NAME = dist.gql `
|
|
|
4391
4495
|
function useUserName(props) {
|
|
4392
4496
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
4393
4497
|
const user = H();
|
|
4394
|
-
const res =
|
|
4498
|
+
const res = gn(GET_USER_NAME, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
4395
4499
|
const loading = res.loading;
|
|
4396
4500
|
const username = ((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.firstName) || ((_d = (_c = res.data) === null || _c === void 0 ? void 0 : _c.viewer) === null || _d === void 0 ? void 0 : _d.lastName)
|
|
4397
4501
|
? `${(_f = (_e = res.data) === null || _e === void 0 ? void 0 : _e.viewer) === null || _f === void 0 ? void 0 : _f.firstName} ${(_h = (_g = res.data) === null || _g === void 0 ? void 0 : _g.viewer) === null || _h === void 0 ? void 0 : _h.lastName}`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
|
-
import { m as h } from './stencil-hooks.module-
|
|
3
|
-
import {
|
|
2
|
+
import { m as h } from './stencil-hooks.module-9ad75b88.js';
|
|
3
|
+
import { a as getEnvironmentSDK } from './index.module-cbe33f2d.js';
|
|
4
4
|
import './mixins-f60a614c.js';
|
|
5
5
|
import './JSS-67b5cff8.js';
|
|
6
6
|
import { C as CloseButtonView } from './sqm-close-button-view-dc65b4e3.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h, r as registerInstance, c as Host } from './index-17b4da69.js';
|
|
2
|
-
import { m as h$1 } from './stencil-hooks.module-
|
|
2
|
+
import { m as h$1 } from './stencil-hooks.module-9ad75b88.js';
|
|
3
3
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
4
4
|
import { g as getProps } from './utils-334c1e34.js';
|
|
5
5
|
import { P as PortalContainerView, a as PortalSectionView } from './sqm-portal-container-view-ab89c6cc.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
|
-
import { m as h } from './stencil-hooks.module-
|
|
2
|
+
import { m as h } from './stencil-hooks.module-9ad75b88.js';
|
|
3
3
|
|
|
4
4
|
const sqmFormMessageCss = "sl-alert::part(base){border:1px solid;border-radius:3px;-webkit-box-shadow:0 1px 2px rgba(20, 20, 20, 0.1);box-shadow:0 1px 2px rgba(20, 20, 20, 0.1)}.Error::part(base){background-color:var(--sl-color-danger-100);border-color:var(--sl-color-danger-200)}.Warning::part(base){background-color:var(--sl-color-warning-100);border-color:var(--sl-color-warning-200)}.Success::part(base){background-color:var(--sl-color-success-100);border-color:var(--sl-color-success-200)}.Info::part(base){background-color:var(--sl-color-primary-100);border-color:var(--sl-color-primary-200)}";
|
|
5
5
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1, c as Host } from './index-17b4da69.js';
|
|
2
|
-
import { n as m, f as useEffect, m as h } from './stencil-hooks.module-
|
|
3
|
-
import {
|
|
2
|
+
import { n as m, f as useEffect, m as h } from './stencil-hooks.module-9ad75b88.js';
|
|
3
|
+
import { L, w as we, T, c as be } from './index.module-cbe33f2d.js';
|
|
4
4
|
|
|
5
5
|
async function useGraphQLClientProvider({ domain }) {
|
|
6
|
-
const token =
|
|
6
|
+
const token = L();
|
|
7
7
|
const appDomain = domain;
|
|
8
|
-
const tenantAlias =
|
|
8
|
+
const tenantAlias = T();
|
|
9
9
|
// Memoization is shared. One client per domain, tenant and token (or null)
|
|
10
|
-
const managedIdentityClient =
|
|
11
|
-
const [, setGraphQLClient] = m(
|
|
10
|
+
const managedIdentityClient = we(appDomain, tenantAlias, token);
|
|
11
|
+
const [, setGraphQLClient] = m(be, managedIdentityClient);
|
|
12
12
|
useEffect(() => {
|
|
13
13
|
setGraphQLClient(managedIdentityClient);
|
|
14
14
|
}, [managedIdentityClient]);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
|
-
import { m as h } from './stencil-hooks.module-
|
|
3
|
-
import { i as isDemo, e as setUserIdentity } from './index.module-
|
|
2
|
+
import { m as h } from './stencil-hooks.module-9ad75b88.js';
|
|
3
|
+
import { i as isDemo, e as setUserIdentity } from './index.module-cbe33f2d.js';
|
|
4
4
|
import './jsonpointer-388a7082.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
6
|
import './mixins-f60a614c.js';
|
|
7
7
|
import './JSS-67b5cff8.js';
|
|
8
8
|
import { E as EmailRegistrationView } from './email-registration-view-4a4202e7.js';
|
|
9
|
-
import './useRegistrationFormState-
|
|
10
|
-
import { u as useInstantAccessRegistration } from './useInstantAccessRegistration-
|
|
9
|
+
import './useRegistrationFormState-424e2af2.js';
|
|
10
|
+
import { u as useInstantAccessRegistration } from './useInstantAccessRegistration-c9d75808.js';
|
|
11
11
|
|
|
12
12
|
const InstantAccessRegistration = class {
|
|
13
13
|
constructor(hostRef) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
|
-
import { m as h } from './stencil-hooks.module-
|
|
3
|
-
import { i as intl } from './global-
|
|
4
|
-
import { d as dist,
|
|
2
|
+
import { m as h } from './stencil-hooks.module-9ad75b88.js';
|
|
3
|
+
import { i as intl } from './global-0268f7bb.js';
|
|
4
|
+
import { d as dist, _, H, g as gn, i as isDemo } from './index.module-cbe33f2d.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
6
|
import { L as LeaderboardRankView } from './sqm-leaderboard-rank-view-10657658.js';
|
|
7
7
|
|
|
@@ -20,7 +20,7 @@ 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 = _();
|
|
24
24
|
// Default to context, overriden by props
|
|
25
25
|
const programId = (_a = props.programId) !== null && _a !== void 0 ? _a : programIdContext;
|
|
26
26
|
const user = H();
|
|
@@ -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 } = gn(GET_RANK, rankVariables, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
40
40
|
const fullRankText = ((_b = rankData === null || rankData === void 0 ? void 0 : rankData.viewer) === null || _b === void 0 ? void 0 : _b.leaderboardRank) ? intl.formatMessage({ id: "rankText", defaultMessage: props.rankText }, {
|
|
41
41
|
rank: (_d = (_c = rankData === null || rankData === void 0 ? void 0 : rankData.viewer) === null || _c === void 0 ? void 0 : _c.leaderboardRank) === null || _d === void 0 ? void 0 : _d[props.rankType],
|
|
42
42
|
})
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
|
-
import { m as h } from './stencil-hooks.module-
|
|
3
|
-
import { d as dist, H,
|
|
2
|
+
import { m as h } from './stencil-hooks.module-9ad75b88.js';
|
|
3
|
+
import { d as dist, H, g as gn, e as setUserIdentity, i as isDemo } from './index.module-cbe33f2d.js';
|
|
4
4
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
5
5
|
import './JSS-67b5cff8.js';
|
|
6
6
|
import { g as getProps } from './utils-334c1e34.js';
|
|
@@ -18,7 +18,7 @@ const GET_USER_DETAILS = dist.gql `
|
|
|
18
18
|
function useLogoutCurrentUser(props) {
|
|
19
19
|
var _a, _b;
|
|
20
20
|
const user = H();
|
|
21
|
-
const { loading, data } =
|
|
21
|
+
const { loading, data } = gn(GET_USER_DETAILS, {
|
|
22
22
|
id: user === null || user === void 0 ? void 0 : user.id,
|
|
23
23
|
accountId: user === null || user === void 0 ? void 0 : user.accountId,
|
|
24
24
|
}, !user);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h } from './index-17b4da69.js';
|
|
2
|
-
import {
|
|
2
|
+
import { y as yn } from './index.module-cbe33f2d.js';
|
|
3
3
|
import { g as gap } from './mixins-f60a614c.js';
|
|
4
4
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
5
5
|
|
|
@@ -33,7 +33,7 @@ function NavigationSidebarItemView(props) {
|
|
|
33
33
|
const styleString = sheet.toString();
|
|
34
34
|
return (h("a", { part: "sqm-link", href: data.path, onClick: (e) => {
|
|
35
35
|
e.preventDefault();
|
|
36
|
-
|
|
36
|
+
yn.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 }),
|