@saasquatch/mint-components 1.7.4 → 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-25025125.js → ShadowViewAddon-54e29788.js} +39 -52
- package/dist/cjs/{global-be9af765.js → global-a8fd1f10.js} +3 -3
- package/dist/cjs/{index.module-8562f350.js → index.module-7c0deb52.js} +24 -26
- 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-9a91bde6.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 +172 -68
- 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 +6 -6
- package/dist/cjs/sqm-logout-current-user.cjs.entry.js +4 -4
- package/dist/cjs/{sqm-navigation-sidebar-item-view-28578dce.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-077c12f7.js → sqm-portal-email-verification-view-b7cafe0c.js} +3 -3
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +20 -9
- 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-b3d1e0f7.js → sqm-portal-profile-view-f092a4ef.js} +4 -4
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +32 -12
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +6 -6
- 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 +71 -11
- 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 +49 -14
- 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 +11 -11
- 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-be4e0841.js → useChildElements-410453fc.js} +3 -3
- package/dist/cjs/{useInstantAccessRegistration-27a20410.js → useInstantAccessRegistration-42b320b3.js} +4 -4
- package/dist/cjs/{useReferralTable-ca564dcb.js → useReferralTable-28fff5b8.js} +10 -10
- package/dist/cjs/{useRegistrationFormState-7b557a04.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-53810b62.js → ShadowViewAddon-be3c7698.js} +36 -49
- package/dist/esm/{global-179b13db.js → global-0268f7bb.js} +3 -3
- package/dist/esm/{index.module-9469b28f.js → index.module-cbe33f2d.js} +6 -8
- 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-1048d024.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 +172 -68
- 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 +6 -6
- package/dist/esm/sqm-logout-current-user.entry.js +4 -4
- package/dist/esm/{sqm-navigation-sidebar-item-view-d2e0fdb1.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-79ef6c2f.js → sqm-portal-email-verification-view-12fc1bd4.js} +3 -3
- package/dist/esm/sqm-portal-email-verification.entry.js +20 -9
- 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-6068a0f8.js → sqm-portal-profile-view-87730d84.js} +4 -4
- package/dist/esm/sqm-portal-profile.entry.js +32 -12
- package/dist/esm/sqm-portal-protected-route.entry.js +6 -6
- 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 +73 -13
- 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 +50 -15
- 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 +11 -11
- 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-1338b131.js → useChildElements-f6672214.js} +3 -3
- package/dist/esm/{useInstantAccessRegistration-53c43a63.js → useInstantAccessRegistration-c9d75808.js} +4 -4
- package/dist/esm/{useReferralTable-ada01642.js → useReferralTable-16e5c27f.js} +10 -10
- package/dist/esm/{useRegistrationFormState-49dfc8e0.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-179b13db.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-1048d024.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-d2e0fdb1.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-79ef6c2f.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-1338b131.js → useChildElements-f6672214.js} +1 -1
- package/dist/esm-es5/{useInstantAccessRegistration-53c43a63.js → useInstantAccessRegistration-c9d75808.js} +1 -1
- package/dist/esm-es5/{useReferralTable-ada01642.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-583b1a0e.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-330314f9.entry.js → p-11c2ddd5.entry.js} +1 -1
- 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-ee457000.system.js → p-21a152c9.system.js} +1 -1
- package/dist/mint-components/{p-fe721800.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-c24079c2.js → p-2b3e1737.js} +1 -1
- package/dist/mint-components/{p-9ecfc085.system.js → p-2bd322a2.system.js} +1 -1
- package/dist/mint-components/p-2be08bc1.system.entry.js +1 -0
- package/dist/mint-components/{p-8ff83f3b.system.entry.js → p-2eacd22e.system.entry.js} +1 -1
- package/dist/mint-components/{p-8d767d9d.js → p-3056e5df.js} +1 -1
- package/dist/mint-components/p-349b9603.system.js +1 -0
- package/dist/mint-components/{p-6dac42fc.system.js → p-34b61e2c.system.js} +1 -1
- package/dist/mint-components/{p-d3f6b6b4.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-55eb6616.system.js → p-5f084d62.system.js} +1 -1
- 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-5ae4911c.entry.js → p-78348fd6.entry.js} +2 -2
- package/dist/mint-components/p-7cdc3d59.system.entry.js +1 -0
- package/dist/mint-components/{p-ef3bcec4.system.entry.js → p-7dcd091c.system.entry.js} +1 -1
- package/dist/mint-components/p-7f950006.entry.js +13 -0
- package/dist/mint-components/{p-747912c5.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-7e1af11d.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-5ddfa30d.entry.js → p-9a67f0b2.entry.js} +1 -1
- package/dist/mint-components/{p-68e5a4a6.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-540a24e6.system.entry.js → p-b4779d76.system.entry.js} +1 -1
- package/dist/mint-components/{p-71a4e272.entry.js → p-b6713eac.entry.js} +1 -1
- package/dist/mint-components/{p-f6456854.js → p-bc64b988.js} +1 -1
- package/dist/mint-components/p-bcc9f143.js +379 -0
- package/dist/mint-components/p-bcd04c27.js +1 -0
- package/dist/mint-components/{p-97e758fd.system.entry.js → p-c51de4f4.system.entry.js} +1 -1
- package/dist/mint-components/p-c58a09e4.js +1 -0
- package/dist/mint-components/{p-21a1d705.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-9e9dcd9c.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-a8f6d72c.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-2d592364.system.entry.js → p-debd47d0.system.entry.js} +1 -1
- package/dist/mint-components/{p-f2260971.system.js → p-df15da1e.system.js} +1 -1
- package/dist/mint-components/{p-76cfebb1.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-7fc020f4.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-6034522a.js → p-f6743fbe.js} +1 -1
- package/dist/mint-components/{p-a38baa99.system.entry.js → p-fa376627.system.entry.js} +1 -1
- package/dist/mint-components/{p-a223a8dc.entry.js → p-fabf03c8.entry.js} +1 -1
- package/dist/mint-components/{p-a87d66ac.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-53810b62.js +0 -1
- package/dist/esm-es5/index.module-9469b28f.js +0 -1
- package/dist/esm-es5/sqm-portal-profile-view-6068a0f8.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-49dfc8e0.js +0 -1
- package/dist/mint-components/p-0714bae2.entry.js +0 -33
- package/dist/mint-components/p-1437b793.system.js +0 -1
- package/dist/mint-components/p-1912f988.entry.js +0 -1
- package/dist/mint-components/p-19e46b11.entry.js +0 -1
- package/dist/mint-components/p-1c9d83b4.entry.js +0 -1
- package/dist/mint-components/p-228163a1.system.js +0 -1
- package/dist/mint-components/p-29e67994.entry.js +0 -9
- package/dist/mint-components/p-2aca0eae.js +0 -1
- package/dist/mint-components/p-2d39cf50.system.entry.js +0 -1
- package/dist/mint-components/p-3409e9a0.system.entry.js +0 -1
- package/dist/mint-components/p-39341b0c.entry.js +0 -187
- package/dist/mint-components/p-3b7c1be8.entry.js +0 -1
- package/dist/mint-components/p-42f1a044.system.entry.js +0 -1
- package/dist/mint-components/p-46be1518.system.js +0 -1
- package/dist/mint-components/p-509af914.system.entry.js +0 -1
- package/dist/mint-components/p-519bb212.js +0 -1
- package/dist/mint-components/p-56525896.system.js +0 -1
- package/dist/mint-components/p-571f6923.entry.js +0 -1
- package/dist/mint-components/p-58196113.system.entry.js +0 -1
- package/dist/mint-components/p-5b9195d7.system.entry.js +0 -1
- package/dist/mint-components/p-657659e8.entry.js +0 -13
- package/dist/mint-components/p-68db543e.system.entry.js +0 -1
- package/dist/mint-components/p-718cf151.js +0 -1
- package/dist/mint-components/p-75ddf3ca.js +0 -1
- package/dist/mint-components/p-76d4eb55.system.js +0 -1
- package/dist/mint-components/p-78066f92.entry.js +0 -13
- package/dist/mint-components/p-7862ab7d.entry.js +0 -1
- package/dist/mint-components/p-7ced669d.entry.js +0 -1
- package/dist/mint-components/p-82180848.js +0 -379
- package/dist/mint-components/p-8827fabe.system.entry.js +0 -1
- package/dist/mint-components/p-8d593b5e.system.entry.js +0 -1
- package/dist/mint-components/p-9551f888.system.entry.js +0 -1
- package/dist/mint-components/p-961998b6.system.entry.js +0 -1
- package/dist/mint-components/p-97b03f80.entry.js +0 -1
- package/dist/mint-components/p-9aa1bd46.system.js +0 -1
- package/dist/mint-components/p-a217deee.js +0 -1
- package/dist/mint-components/p-ae191f8c.js +0 -1
- package/dist/mint-components/p-af24b899.entry.js +0 -1
- package/dist/mint-components/p-ba42b92c.system.entry.js +0 -1
- package/dist/mint-components/p-bf0719b7.system.js +0 -1
- package/dist/mint-components/p-c3be93c7.system.entry.js +0 -1
- package/dist/mint-components/p-c5b61ade.system.js +0 -1
- package/dist/mint-components/p-cc391fac.js +0 -1
- package/dist/mint-components/p-d3de337c.system.entry.js +0 -1
- package/dist/mint-components/p-d9787e31.system.entry.js +0 -1
- package/dist/mint-components/p-e8f720b9.entry.js +0 -1
- package/dist/mint-components/p-efd129de.js +0 -1
- package/dist/mint-components/p-f7b7d395.system.js +0 -1
- package/dist/mint-components/p-f82bb604.entry.js +0 -1
- package/dist/mint-components/p-f9bfbfa2.entry.js +0 -1
- package/dist/mint-components/p-fe13762b.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
|
@@ -3,21 +3,22 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
|
-
const stencilHooks_module = require('./stencil-hooks.module-
|
|
7
|
-
const global = require('./global-
|
|
8
|
-
const index_module = require('./index.module-
|
|
6
|
+
const stencilHooks_module = require('./stencil-hooks.module-faabb426.js');
|
|
7
|
+
const global = require('./global-a8fd1f10.js');
|
|
8
|
+
const index_module = require('./index.module-7c0deb52.js');
|
|
9
9
|
const jsonpointer = require('./jsonpointer-11327262.js');
|
|
10
10
|
const cjs = require('./cjs-1066ec21.js');
|
|
11
11
|
require('./mixins-fe9d4112.js');
|
|
12
12
|
const JSS = require('./JSS-8503a151.js');
|
|
13
|
-
const reRender = require('./re-render-
|
|
14
|
-
const useChildElements = require('./useChildElements-
|
|
15
|
-
require('./luxon-
|
|
13
|
+
const reRender = require('./re-render-e77c897d.js');
|
|
14
|
+
const useChildElements = require('./useChildElements-410453fc.js');
|
|
15
|
+
require('./luxon-a4661470.js');
|
|
16
16
|
const utils = require('./utils-6847bc06.js');
|
|
17
17
|
require('./sqm-text-span-view-e1cd9bd3.js');
|
|
18
|
-
const useRegistrationFormState = require('./useRegistrationFormState-
|
|
18
|
+
const useRegistrationFormState = require('./useRegistrationFormState-58ce55f2.js');
|
|
19
|
+
const utilities = require('./utilities-d2d257c7.js');
|
|
19
20
|
const AsYouType = require('./AsYouType-6788393a.js');
|
|
20
|
-
const ShadowViewAddon = require('./ShadowViewAddon-
|
|
21
|
+
const ShadowViewAddon = require('./ShadowViewAddon-54e29788.js');
|
|
21
22
|
require('./sqm-portal-container-view-5fb2ad49.js');
|
|
22
23
|
|
|
23
24
|
const BigStat = class {
|
|
@@ -37,7 +38,7 @@ const BigStat = class {
|
|
|
37
38
|
render() {
|
|
38
39
|
var _a;
|
|
39
40
|
const { props, label } = index_module.isDemo() ? ShadowViewAddon.useDemoBigStat(this) : ShadowViewAddon.useBigStat(this);
|
|
40
|
-
const host = index_module.
|
|
41
|
+
const host = index_module.O();
|
|
41
42
|
const hasLabel = !!((_a = host.innerHTML) === null || _a === void 0 ? void 0 : _a.trim());
|
|
42
43
|
const labelSlot = index.h("slot", { name: "label" }, hasLabel ? index.h("slot", null) : label);
|
|
43
44
|
return index.h(ShadowViewAddon.BigStatView, Object.assign({}, props, { labelSlot: labelSlot }));
|
|
@@ -158,7 +159,7 @@ const styleString = sheet.toString();
|
|
|
158
159
|
function RequiredPropsError({ missingProps, heading = "There was a problem loading this section", subheading = "There was a technical problem that prevented this section from loading. Please contact us with the link to this page.", description = "Error occured while loading <{tagName}>. Values for the following attributes are missing:", }, children) {
|
|
159
160
|
if (!missingProps)
|
|
160
161
|
return false;
|
|
161
|
-
const host = index_module.
|
|
162
|
+
const host = index_module.O();
|
|
162
163
|
const [detailsOpen, setDetailsOpen] = stencilHooks_module.useState(false);
|
|
163
164
|
return (index.h("sl-alert", { type: "danger", open: true },
|
|
164
165
|
index.h("style", { type: "text/css" }, styleString),
|
|
@@ -300,11 +301,11 @@ const WIDGET_ENGAGEMENT_EVENT = index_module.dist.gql `
|
|
|
300
301
|
`;
|
|
301
302
|
function useCouponCode(props) {
|
|
302
303
|
var _a, _b, _c;
|
|
303
|
-
const user = index_module.
|
|
304
|
-
const programId = index_module.
|
|
305
|
-
const engagementMedium = index_module.
|
|
306
|
-
const [sendLoadEvent] = index_module.
|
|
307
|
-
const { data, loading, refetch, errors } = index_module.
|
|
304
|
+
const user = index_module.H();
|
|
305
|
+
const programId = index_module._();
|
|
306
|
+
const engagementMedium = index_module.Q();
|
|
307
|
+
const [sendLoadEvent] = index_module.Me(WIDGET_ENGAGEMENT_EVENT);
|
|
308
|
+
const { data, loading, refetch, errors } = index_module.gn(FuelTankRewardsQuery, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
308
309
|
const getStatus = (reward) => {
|
|
309
310
|
if (!reward || !reward.statuses)
|
|
310
311
|
return "ERROR";
|
|
@@ -685,13 +686,13 @@ const defaultFormState = {
|
|
|
685
686
|
error: "",
|
|
686
687
|
};
|
|
687
688
|
function useEditProfile(props) {
|
|
688
|
-
const userIdent = index_module.
|
|
689
|
+
const userIdent = index_module.H();
|
|
689
690
|
const [showEdit, setShowEdit] = stencilHooks_module.useState(false);
|
|
690
691
|
const [error, setError] = stencilHooks_module.useState("");
|
|
691
692
|
const [userData, setUserData] = stencilHooks_module.useState(undefined);
|
|
692
693
|
const [formState, setFormState] = stencilHooks_module.useState(defaultFormState);
|
|
693
|
-
const userDataResponse = index_module.
|
|
694
|
-
const [upsertUser, upsertUserResponse] = index_module.
|
|
694
|
+
const userDataResponse = index_module.gn(GET_USER, {}, !(userIdent === null || userIdent === void 0 ? void 0 : userIdent.jwt));
|
|
695
|
+
const [upsertUser, upsertUserResponse] = index_module.Me(UPSERT_USER);
|
|
695
696
|
stencilHooks_module.useEffect(() => {
|
|
696
697
|
if ((upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.loading) || !showEdit)
|
|
697
698
|
return;
|
|
@@ -721,7 +722,7 @@ function useEditProfile(props) {
|
|
|
721
722
|
stencilHooks_module.useEffect(() => {
|
|
722
723
|
var _a;
|
|
723
724
|
if ((_a = upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.errors) === null || _a === void 0 ? void 0 : _a.message) {
|
|
724
|
-
setFormState((state) => ({ ...state, error:
|
|
725
|
+
setFormState((state) => ({ ...state, error: props.networkErrorMessage }));
|
|
725
726
|
}
|
|
726
727
|
}, [upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.errors]);
|
|
727
728
|
return {
|
|
@@ -740,6 +741,7 @@ function useEditProfile(props) {
|
|
|
740
741
|
updatetext: props.updatetext,
|
|
741
742
|
currentregiontext: props.currentregiontext,
|
|
742
743
|
showregion: props.showregion,
|
|
744
|
+
fieldEmptyText: props.fieldEmptyText,
|
|
743
745
|
},
|
|
744
746
|
},
|
|
745
747
|
callbacks: {
|
|
@@ -756,15 +758,15 @@ function useEditProfile(props) {
|
|
|
756
758
|
}
|
|
757
759
|
const errors = {};
|
|
758
760
|
if (!formState.firstName) {
|
|
759
|
-
errors["firstName"] = { message:
|
|
761
|
+
errors["firstName"] = { message: props.fieldEmptyText };
|
|
760
762
|
}
|
|
761
763
|
if (!formState.lastName) {
|
|
762
|
-
errors["lastName"] = { message:
|
|
764
|
+
errors["lastName"] = { message: props.fieldEmptyText };
|
|
763
765
|
}
|
|
764
|
-
if (errors
|
|
766
|
+
if (!utilities.isEmpty(errors)) {
|
|
765
767
|
setFormState((e) => ({
|
|
766
768
|
...e,
|
|
767
|
-
error:
|
|
769
|
+
error: props.formErrorText,
|
|
768
770
|
}));
|
|
769
771
|
}
|
|
770
772
|
setFormState((e) => ({ ...e, errors }));
|
|
@@ -801,6 +803,18 @@ const EditProfile = class {
|
|
|
801
803
|
constructor(hostRef) {
|
|
802
804
|
index.registerInstance(this, hostRef);
|
|
803
805
|
this.ignored = true;
|
|
806
|
+
/**
|
|
807
|
+
* @uiName Network error message
|
|
808
|
+
*/
|
|
809
|
+
this.networkErrorMessage = "Network request failed.";
|
|
810
|
+
/**
|
|
811
|
+
* @uiName Empty field error message
|
|
812
|
+
*/
|
|
813
|
+
this.fieldEmptyText = "Cannot be empty";
|
|
814
|
+
/**
|
|
815
|
+
* @uiName Form error message
|
|
816
|
+
*/
|
|
817
|
+
this.formErrorText = "Please correct the errors below to update your profile.";
|
|
804
818
|
stencilHooks_module.h$1(this);
|
|
805
819
|
}
|
|
806
820
|
disconnectedCallback() { }
|
|
@@ -846,6 +860,7 @@ function useEditProfileDemo(props) {
|
|
|
846
860
|
? props.currentregiontext
|
|
847
861
|
: "Region",
|
|
848
862
|
showregion: true,
|
|
863
|
+
fieldEmptyText: props.fieldEmptyText,
|
|
849
864
|
},
|
|
850
865
|
},
|
|
851
866
|
callbacks: {
|
|
@@ -1231,11 +1246,11 @@ const GET_RANK = index_module.dist.gql `
|
|
|
1231
1246
|
`;
|
|
1232
1247
|
function useLeaderboard(props) {
|
|
1233
1248
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1234
|
-
const programIdContext = index_module.
|
|
1249
|
+
const programIdContext = index_module._();
|
|
1235
1250
|
// Default to context, overriden by props
|
|
1236
1251
|
const programId = (_a = props.programId) !== null && _a !== void 0 ? _a : programIdContext;
|
|
1237
|
-
const user = index_module.
|
|
1238
|
-
const locale = index_module.
|
|
1252
|
+
const user = index_module.H();
|
|
1253
|
+
const locale = index_module.N();
|
|
1239
1254
|
const variables = programId
|
|
1240
1255
|
? {
|
|
1241
1256
|
type: props.leaderboardType,
|
|
@@ -1254,8 +1269,8 @@ function useLeaderboard(props) {
|
|
|
1254
1269
|
if (props.maxRows > 0) {
|
|
1255
1270
|
variables["limit"] = props.maxRows;
|
|
1256
1271
|
}
|
|
1257
|
-
const { data: leaderboardData, loading: loadingLeaderboard } = index_module.
|
|
1258
|
-
const { data: rankData } = index_module.
|
|
1272
|
+
const { data: leaderboardData, loading: loadingLeaderboard } = index_module.gn(GET_LEADERBOARD, variables, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
1273
|
+
const { data: rankData } = index_module.gn(GET_RANK, variables, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
1259
1274
|
const leaderboardRows = (_b = leaderboardData === null || leaderboardData === void 0 ? void 0 : leaderboardData.userLeaderboard) === null || _b === void 0 ? void 0 : _b.rows;
|
|
1260
1275
|
const flattenedLeaderboard = getFlattenedLeaderboard(leaderboardRows);
|
|
1261
1276
|
const sortedLeaderboard = flattenedLeaderboard === null || flattenedLeaderboard === void 0 ? void 0 : flattenedLeaderboard.sort(function (a, b) {
|
|
@@ -1529,12 +1544,12 @@ function NavigationMenuView(props) {
|
|
|
1529
1544
|
}
|
|
1530
1545
|
|
|
1531
1546
|
function handleMenu(e) {
|
|
1532
|
-
index_module.
|
|
1547
|
+
index_module.yn.push(e.detail.item.value);
|
|
1533
1548
|
}
|
|
1534
1549
|
function useNavigationMenu(props) {
|
|
1535
1550
|
const ref = stencilHooks_module.useRef();
|
|
1536
|
-
const [, rerender] = index_module.
|
|
1537
|
-
const user = index_module.
|
|
1551
|
+
const [, rerender] = index_module.fn();
|
|
1552
|
+
const user = index_module.H();
|
|
1538
1553
|
stencilHooks_module.useEffect(() => {
|
|
1539
1554
|
var _a;
|
|
1540
1555
|
(_a = ref.current) === null || _a === void 0 ? void 0 : _a.addEventListener("sl-select", (e) => handleMenu(e));
|
|
@@ -1588,11 +1603,11 @@ NavigationMenu.style = sqmNavigationMenuCss;
|
|
|
1588
1603
|
|
|
1589
1604
|
function usePortalChangePassword(props) {
|
|
1590
1605
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
1591
|
-
const [request, { loading, errors, data }] = index_module.
|
|
1606
|
+
const [request, { loading, errors, data }] = index_module.We();
|
|
1592
1607
|
const [open, setOpen] = stencilHooks_module.useState(false);
|
|
1593
1608
|
const [error, setError] = stencilHooks_module.useState("");
|
|
1594
1609
|
const [success, setSuccess] = stencilHooks_module.useState(false);
|
|
1595
|
-
const user = index_module.
|
|
1610
|
+
const user = index_module.H();
|
|
1596
1611
|
const submit = async (event) => {
|
|
1597
1612
|
var _a, _b;
|
|
1598
1613
|
setSuccess(false);
|
|
@@ -1601,11 +1616,11 @@ function usePortalChangePassword(props) {
|
|
|
1601
1616
|
jsonpointer.jsonpointer.set(formData, key, value);
|
|
1602
1617
|
});
|
|
1603
1618
|
if (!(user === null || user === void 0 ? void 0 : user.jwt)) {
|
|
1604
|
-
setError(
|
|
1619
|
+
setError(props.invalidSessionErrorText);
|
|
1605
1620
|
return;
|
|
1606
1621
|
}
|
|
1607
1622
|
if (formData.password !== formData.confirmPassword) {
|
|
1608
|
-
setError(
|
|
1623
|
+
setError(props.nonMatchingPasswordErrorText);
|
|
1609
1624
|
return;
|
|
1610
1625
|
}
|
|
1611
1626
|
setError("");
|
|
@@ -1632,6 +1647,12 @@ function usePortalChangePassword(props) {
|
|
|
1632
1647
|
successMessage: props.successMessage,
|
|
1633
1648
|
portalChangePasswordHeader: props.portalChangePasswordHeader,
|
|
1634
1649
|
portalChangePasswordButtonText: props.portalChangePasswordButtonText,
|
|
1650
|
+
meetsRequirementsText: props.meetsRequirementsText,
|
|
1651
|
+
doesNotMeetRequirementsText: props.doesNotMeetRequirementsText,
|
|
1652
|
+
minErrorText: props.minErrorText,
|
|
1653
|
+
uppercaseErrorText: props.uppercaseErrorText,
|
|
1654
|
+
lowercaseErrorText: props.lowercaseErrorText,
|
|
1655
|
+
hasErrorText: props.hasErrorText,
|
|
1635
1656
|
},
|
|
1636
1657
|
},
|
|
1637
1658
|
data: {},
|
|
@@ -1691,6 +1712,38 @@ const PortalChangePassword = class {
|
|
|
1691
1712
|
* @uiName Change password button text
|
|
1692
1713
|
*/
|
|
1693
1714
|
this.portalChangePasswordButtonText = "Change your password...";
|
|
1715
|
+
/**
|
|
1716
|
+
* @uiName Password requirement met
|
|
1717
|
+
*/
|
|
1718
|
+
this.meetsRequirementsText = "Password has met all requirements";
|
|
1719
|
+
/**
|
|
1720
|
+
* @uiName Password requirement failed
|
|
1721
|
+
*/
|
|
1722
|
+
this.doesNotMeetRequirementsText = "Password must meet the following requirements:";
|
|
1723
|
+
/**
|
|
1724
|
+
* @uiName Minimum length text
|
|
1725
|
+
*/
|
|
1726
|
+
this.minErrorText = "be a minimum of 8 characters";
|
|
1727
|
+
/**
|
|
1728
|
+
* @uiName Missing uppercase text
|
|
1729
|
+
*/
|
|
1730
|
+
this.uppercaseErrorText = "contain at least 1 uppercase character";
|
|
1731
|
+
/**
|
|
1732
|
+
* @uiName Missing lowercase text
|
|
1733
|
+
*/
|
|
1734
|
+
this.lowercaseErrorText = "contain at least 1 lowercase character";
|
|
1735
|
+
/**
|
|
1736
|
+
* @uiName Passwords don’t match error message
|
|
1737
|
+
*/
|
|
1738
|
+
this.nonMatchingPasswordErrorText = "contain at least 1 lowercase character";
|
|
1739
|
+
/**
|
|
1740
|
+
* @uiName Invalid user session error message
|
|
1741
|
+
*/
|
|
1742
|
+
this.invalidSessionErrorText = "Please log in again to change your password.";
|
|
1743
|
+
/**
|
|
1744
|
+
* @uiName Missing number or symbol text
|
|
1745
|
+
*/
|
|
1746
|
+
this.hasErrorText = "contain at least 1 number or symbol";
|
|
1694
1747
|
stencilHooks_module.h$1(this);
|
|
1695
1748
|
}
|
|
1696
1749
|
disconnectedCallback() { }
|
|
@@ -1716,6 +1769,12 @@ function usePortalChangePasswordDemo(props) {
|
|
|
1716
1769
|
successMessage: props.successMessage,
|
|
1717
1770
|
portalChangePasswordHeader: props.portalChangePasswordHeader,
|
|
1718
1771
|
portalChangePasswordButtonText: props.portalChangePasswordButtonText,
|
|
1772
|
+
meetsRequirementsText: props.meetsRequirementsText,
|
|
1773
|
+
doesNotMeetRequirementsText: props.doesNotMeetRequirementsText,
|
|
1774
|
+
minErrorText: props.minErrorText,
|
|
1775
|
+
uppercaseErrorText: props.uppercaseErrorText,
|
|
1776
|
+
lowercaseErrorText: props.lowercaseErrorText,
|
|
1777
|
+
hasErrorText: props.hasErrorText,
|
|
1719
1778
|
},
|
|
1720
1779
|
},
|
|
1721
1780
|
callbacks: {
|
|
@@ -1788,7 +1847,7 @@ const PortalFooter = class {
|
|
|
1788
1847
|
};
|
|
1789
1848
|
|
|
1790
1849
|
function usePortalFrame(footerContent, headerContent) {
|
|
1791
|
-
const [, rerender] = index_module.
|
|
1850
|
+
const [, rerender] = index_module.fn();
|
|
1792
1851
|
return {
|
|
1793
1852
|
data: {
|
|
1794
1853
|
footer: footerContent,
|
|
@@ -1838,9 +1897,9 @@ function usePortalFrameDemo(footerContent, headerContent, props) {
|
|
|
1838
1897
|
|
|
1839
1898
|
function usePortalLogin(props) {
|
|
1840
1899
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
1841
|
-
const [request, { loading, errors, data }] = index_module
|
|
1900
|
+
const [request, { loading, errors, data }] = index_module.$e();
|
|
1842
1901
|
const [error, setError] = stencilHooks_module.useState("");
|
|
1843
|
-
const urlParams = new URLSearchParams(index_module.
|
|
1902
|
+
const urlParams = new URLSearchParams(index_module.yn.location.search);
|
|
1844
1903
|
const nextPageOverride = urlParams.get("nextPage");
|
|
1845
1904
|
const submit = async (event) => {
|
|
1846
1905
|
var _a, _b;
|
|
@@ -1853,13 +1912,13 @@ function usePortalLogin(props) {
|
|
|
1853
1912
|
const result = await request(variables);
|
|
1854
1913
|
if (result instanceof Error) {
|
|
1855
1914
|
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"]))
|
|
1856
|
-
setError(
|
|
1915
|
+
setError(props.networkErrorMessage);
|
|
1857
1916
|
return;
|
|
1858
1917
|
}
|
|
1859
1918
|
if ((_b = result.authenticateManagedIdentityWithEmailAndPassword) === null || _b === void 0 ? void 0 : _b.token) {
|
|
1860
1919
|
urlParams.delete("nextPage");
|
|
1861
1920
|
const url = utils.sanitizeUrlPath(nextPageOverride || props.nextPage);
|
|
1862
|
-
index_module.
|
|
1921
|
+
index_module.yn.push(url.href);
|
|
1863
1922
|
}
|
|
1864
1923
|
};
|
|
1865
1924
|
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) ||
|
|
@@ -1925,6 +1984,11 @@ const PortalLogin = class {
|
|
|
1925
1984
|
* @uiWidget textArea
|
|
1926
1985
|
*/
|
|
1927
1986
|
this.pageLabel = "Sign in to your account";
|
|
1987
|
+
/**
|
|
1988
|
+
* @uiName Network error message
|
|
1989
|
+
* Displayed when the login fails due to a network error. The participant can try refreshing the page.
|
|
1990
|
+
*/
|
|
1991
|
+
this.networkErrorMessage = "An error occurred while logging you in. Please refresh the page and try again.";
|
|
1928
1992
|
stencilHooks_module.h$1(this);
|
|
1929
1993
|
}
|
|
1930
1994
|
disconnectedCallback() { }
|
|
@@ -1933,8 +1997,8 @@ const PortalLogin = class {
|
|
|
1933
1997
|
? useLoginDemo(this)
|
|
1934
1998
|
: usePortalLogin(this);
|
|
1935
1999
|
const content = {
|
|
1936
|
-
forgotPasswordButton: (index.h("slot", { name: "forgotPassword" }, index.h("a", { onClick: () => index_module.
|
|
1937
|
-
secondaryButton: (index.h("slot", { name: "secondaryButton" }, index.h("sl-button", { type: "text", disabled: states.loading, onClick: () => index_module.
|
|
2000
|
+
forgotPasswordButton: (index.h("slot", { name: "forgotPassword" }, index.h("a", { onClick: () => index_module.yn.push(states.forgotPasswordPath) }, this.forgotPasswordLabel))),
|
|
2001
|
+
secondaryButton: (index.h("slot", { name: "secondaryButton" }, index.h("sl-button", { type: "text", disabled: states.loading, onClick: () => index_module.yn.push(states.registerPath) }, this.registerLabel))),
|
|
1938
2002
|
emailLabel: this.emailLabel,
|
|
1939
2003
|
passwordLabel: this.passwordLabel,
|
|
1940
2004
|
submitLabel: this.submitLabel,
|
|
@@ -1963,7 +2027,7 @@ function usePortalRegister(props) {
|
|
|
1963
2027
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1964
2028
|
const formRef = stencilHooks_module.useRef(null);
|
|
1965
2029
|
const { registrationFormState, setRegistrationFormState } = useRegistrationFormState.useRegistrationFormState({});
|
|
1966
|
-
const [request, { loading, errors, data }] = index_module.
|
|
2030
|
+
const [request, { loading, errors, data }] = index_module.je();
|
|
1967
2031
|
stencilHooks_module.useEffect(() => {
|
|
1968
2032
|
if (!formRef.current)
|
|
1969
2033
|
return;
|
|
@@ -2036,7 +2100,7 @@ function usePortalRegister(props) {
|
|
|
2036
2100
|
validationErrors: {},
|
|
2037
2101
|
});
|
|
2038
2102
|
if ((_a = result.registerManagedIdentityWithEmailAndPassword) === null || _a === void 0 ? void 0 : _a.token) {
|
|
2039
|
-
index_module.
|
|
2103
|
+
index_module.yn.push(props.nextPage);
|
|
2040
2104
|
}
|
|
2041
2105
|
}
|
|
2042
2106
|
catch (error) {
|
|
@@ -2177,6 +2241,30 @@ const PortalRegister = class {
|
|
|
2177
2241
|
* @uiWidget textArea
|
|
2178
2242
|
*/
|
|
2179
2243
|
this.invalidEmailErrorMessage = "Must be a valid email address";
|
|
2244
|
+
/**
|
|
2245
|
+
* @uiName Password requirement met
|
|
2246
|
+
*/
|
|
2247
|
+
this.meetsRequirementsText = "Password has met all requirements";
|
|
2248
|
+
/**
|
|
2249
|
+
* @uiName Password requirement failed
|
|
2250
|
+
*/
|
|
2251
|
+
this.doesNotMeetRequirementsText = "Password must meet the following requirements:";
|
|
2252
|
+
/**
|
|
2253
|
+
* @uiName Minimum length text
|
|
2254
|
+
*/
|
|
2255
|
+
this.minErrorText = "be a minimum of 8 characters";
|
|
2256
|
+
/**
|
|
2257
|
+
* @uiName Missing uppercase text
|
|
2258
|
+
*/
|
|
2259
|
+
this.uppercaseErrorText = "contain at least 1 uppercase character";
|
|
2260
|
+
/**
|
|
2261
|
+
* @uiName Missing lowercase text
|
|
2262
|
+
*/
|
|
2263
|
+
this.lowercaseErrorText = "contain at least 1 lowercase character";
|
|
2264
|
+
/**
|
|
2265
|
+
* @uiName Missing number or symbol text
|
|
2266
|
+
*/
|
|
2267
|
+
this.hasErrorText = "contain at least 1 number or symbol";
|
|
2180
2268
|
stencilHooks_module.h$1(this);
|
|
2181
2269
|
}
|
|
2182
2270
|
disconnectedCallback() { }
|
|
@@ -2186,7 +2274,7 @@ const PortalRegister = class {
|
|
|
2186
2274
|
: usePortalRegister(this);
|
|
2187
2275
|
const content = {
|
|
2188
2276
|
formData: index.h("slot", { name: "formData" }),
|
|
2189
|
-
secondaryButton: (index.h("slot", { name: "secondaryButton" }, index.h("sl-button", { type: "text", disabled: states.loading, onClick: () => index_module.
|
|
2277
|
+
secondaryButton: (index.h("slot", { name: "secondaryButton" }, index.h("sl-button", { type: "text", disabled: states.loading, onClick: () => index_module.yn.push(states.loginPath) }, this.loginLabel))),
|
|
2190
2278
|
terms: index.h("slot", { name: "terms" }),
|
|
2191
2279
|
emailLabel: this.emailLabel,
|
|
2192
2280
|
passwordLabel: this.passwordLabel,
|
|
@@ -2195,6 +2283,12 @@ const PortalRegister = class {
|
|
|
2195
2283
|
confirmPasswordLabel: this.confirmPasswordLabel,
|
|
2196
2284
|
invalidEmailErrorMessage: this.invalidEmailErrorMessage,
|
|
2197
2285
|
requiredFieldErrorMessage: this.requiredFieldErrorMessage,
|
|
2286
|
+
meetsRequirementsText: this.meetsRequirementsText,
|
|
2287
|
+
doesNotMeetRequirementsText: this.doesNotMeetRequirementsText,
|
|
2288
|
+
minErrorText: this.minErrorText,
|
|
2289
|
+
uppercaseErrorText: this.uppercaseErrorText,
|
|
2290
|
+
lowercaseErrorText: this.lowercaseErrorText,
|
|
2291
|
+
hasErrorText: this.hasErrorText,
|
|
2198
2292
|
};
|
|
2199
2293
|
return (index.h(ShadowViewAddon.PortalRegisterView, { states: states, callbacks: callbacks, content: content, refs: refs }));
|
|
2200
2294
|
}
|
|
@@ -2351,11 +2445,11 @@ const ProgramExplainerStep = class {
|
|
|
2351
2445
|
const debug = stencilHooks_module.browser("sq:useProgramMenu");
|
|
2352
2446
|
const UPDATE_PROGRAM_EVENT = "sq:update-program-id";
|
|
2353
2447
|
function useProgramMenu(props) {
|
|
2354
|
-
const programId = index_module.
|
|
2355
|
-
const host = index_module.
|
|
2448
|
+
const programId = index_module._();
|
|
2449
|
+
const host = index_module.O();
|
|
2356
2450
|
debug({ programId, props });
|
|
2357
2451
|
const ref = stencilHooks_module.useRef();
|
|
2358
|
-
const [, rerender] = index_module.
|
|
2452
|
+
const [, rerender] = index_module.fn();
|
|
2359
2453
|
stencilHooks_module.useEffect(() => {
|
|
2360
2454
|
var _a;
|
|
2361
2455
|
(_a = ref.current) === null || _a === void 0 ? void 0 : _a.addEventListener("sl-select", (e) => {
|
|
@@ -2533,9 +2627,9 @@ const GET_USER_DETAILS = index_module.dist.gql `
|
|
|
2533
2627
|
`;
|
|
2534
2628
|
function useReferralIframe(props) {
|
|
2535
2629
|
var _a;
|
|
2536
|
-
const programId = index_module.
|
|
2537
|
-
const user = index_module.
|
|
2538
|
-
const { data } = index_module.
|
|
2630
|
+
const programId = index_module._();
|
|
2631
|
+
const user = index_module.H();
|
|
2632
|
+
const { data } = index_module.gn(GET_USER_DETAILS, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt) || !programId);
|
|
2539
2633
|
return {
|
|
2540
2634
|
states: {
|
|
2541
2635
|
content: props,
|
|
@@ -3260,9 +3354,9 @@ function useRewardExchangeList(props) {
|
|
|
3260
3354
|
});
|
|
3261
3355
|
const [open, setOpen] = stencilHooks_module.useState(false);
|
|
3262
3356
|
const { selectedItem, selectedStep, redeemStage, amount, exchangeError } = exchangeState;
|
|
3263
|
-
const user = index_module.
|
|
3264
|
-
const [exchange, { data: exchangeResponse, loading: exchangeLoading, errors },] = index_module.
|
|
3265
|
-
const { data, loading, refetch, errors: queryError, } = index_module.
|
|
3357
|
+
const user = index_module.H();
|
|
3358
|
+
const [exchange, { data: exchangeResponse, loading: exchangeLoading, errors },] = index_module.Me(EXCHANGE);
|
|
3359
|
+
const { data, loading, refetch, errors: queryError, } = index_module.gn(GET_EXCHANGE_LIST, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
3266
3360
|
stencilHooks_module.useEffect(() => {
|
|
3267
3361
|
var _a, _b;
|
|
3268
3362
|
if ((_b = (_a = exchangeResponse === null || exchangeResponse === void 0 ? void 0 : exchangeResponse.exchangeReward) === null || _a === void 0 ? void 0 : _a.reward) === null || _b === void 0 ? void 0 : _b.id) {
|
|
@@ -3281,7 +3375,7 @@ function useRewardExchangeList(props) {
|
|
|
3281
3375
|
canvas.confetti || confetti.create(canvas, { resize: true });
|
|
3282
3376
|
canvas.confetti();
|
|
3283
3377
|
}, [canvasRef.current]);
|
|
3284
|
-
const { refresh } = index_module.
|
|
3378
|
+
const { refresh } = index_module.Te();
|
|
3285
3379
|
async function exchangeReward() {
|
|
3286
3380
|
if (!selectedItem)
|
|
3287
3381
|
return;
|
|
@@ -3589,8 +3683,8 @@ function matchPath(pattern, page) {
|
|
|
3589
3683
|
return regexp.exec(page);
|
|
3590
3684
|
}
|
|
3591
3685
|
function useRouter() {
|
|
3592
|
-
const location = index_module.
|
|
3593
|
-
const host = index_module.
|
|
3686
|
+
const location = index_module.pn();
|
|
3687
|
+
const host = index_module.O();
|
|
3594
3688
|
const [slot, setSlot] = stencilHooks_module.useState(undefined);
|
|
3595
3689
|
const [container, setContainer] = stencilHooks_module.useState(undefined);
|
|
3596
3690
|
const page = location.pathname;
|
|
@@ -3802,6 +3896,16 @@ const ShareButton = class {
|
|
|
3802
3896
|
* @default
|
|
3803
3897
|
*/
|
|
3804
3898
|
this.hidetext = false;
|
|
3899
|
+
/**
|
|
3900
|
+
* Alert text shown if the share link is undefined
|
|
3901
|
+
* @uiName Undefined link text
|
|
3902
|
+
*/
|
|
3903
|
+
this.undefinedLinkText = "Error: message link undefined!";
|
|
3904
|
+
/**
|
|
3905
|
+
* Alert text shown if the user's device does not support native sharing
|
|
3906
|
+
* @uiName Unsupported platform text
|
|
3907
|
+
*/
|
|
3908
|
+
this.unsupportedPlatformText = "Error: not on a supported device";
|
|
3805
3909
|
stencilHooks_module.h$1(this);
|
|
3806
3910
|
}
|
|
3807
3911
|
disconnectedCallback() { }
|
|
@@ -3841,11 +3945,11 @@ const WIDGET_ENGAGEMENT_EVENT$1 = index_module.dist.gql `
|
|
|
3841
3945
|
`;
|
|
3842
3946
|
function useShareCode(props) {
|
|
3843
3947
|
var _a, _b;
|
|
3844
|
-
const { programId = index_module.
|
|
3845
|
-
const user = index_module.
|
|
3846
|
-
const engagementMedium = index_module.
|
|
3847
|
-
const { data } = index_module.
|
|
3848
|
-
const [sendLoadEvent] = index_module.
|
|
3948
|
+
const { programId = index_module._() } = props;
|
|
3949
|
+
const user = index_module.H();
|
|
3950
|
+
const engagementMedium = index_module.Q();
|
|
3951
|
+
const { data } = index_module.gn(MessageLinkQuery, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
3952
|
+
const [sendLoadEvent] = index_module.Me(WIDGET_ENGAGEMENT_EVENT$1);
|
|
3849
3953
|
const copyString = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.referralCode) !== null && _b !== void 0 ? _b :
|
|
3850
3954
|
// Shown during loading
|
|
3851
3955
|
"...";
|
|
@@ -4070,10 +4174,10 @@ const SEND_EVENT = index_module.dist.gql `
|
|
|
4070
4174
|
}
|
|
4071
4175
|
`;
|
|
4072
4176
|
function useTaskCard(props) {
|
|
4073
|
-
const user = index_module.
|
|
4074
|
-
const locale = index_module.
|
|
4075
|
-
const [sendUserEvent, { data, loading: loadingEvent }] = index_module.
|
|
4076
|
-
const { refresh } = index_module.
|
|
4177
|
+
const user = index_module.H();
|
|
4178
|
+
const locale = index_module.N();
|
|
4179
|
+
const [sendUserEvent, { data, loading: loadingEvent }] = index_module.Me(SEND_EVENT);
|
|
4180
|
+
const { refresh } = index_module.Te();
|
|
4077
4181
|
stencilHooks_module.useEffect(() => {
|
|
4078
4182
|
if (data) {
|
|
4079
4183
|
refresh();
|
|
@@ -4394,8 +4498,8 @@ const GET_USER_NAME = index_module.dist.gql `
|
|
|
4394
4498
|
`;
|
|
4395
4499
|
function useUserName(props) {
|
|
4396
4500
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
4397
|
-
const user = index_module.
|
|
4398
|
-
const res = index_module.
|
|
4501
|
+
const user = index_module.H();
|
|
4502
|
+
const res = index_module.gn(GET_USER_NAME, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
4399
4503
|
const loading = res.loading;
|
|
4400
4504
|
const username = ((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.firstName) || ((_d = (_c = res.data) === null || _c === void 0 ? void 0 : _c.viewer) === null || _d === void 0 ? void 0 : _d.lastName)
|
|
4401
4505
|
? `${(_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}`
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
|
-
const stencilHooks_module = require('./stencil-hooks.module-
|
|
7
|
-
const index_module = require('./index.module-
|
|
6
|
+
const stencilHooks_module = require('./stencil-hooks.module-faabb426.js');
|
|
7
|
+
const index_module = require('./index.module-7c0deb52.js');
|
|
8
8
|
require('./mixins-fe9d4112.js');
|
|
9
9
|
require('./JSS-8503a151.js');
|
|
10
10
|
const sqmCloseButtonView = require('./sqm-close-button-view-fd6e8f60.js');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
|
-
const stencilHooks_module = require('./stencil-hooks.module-
|
|
6
|
+
const stencilHooks_module = require('./stencil-hooks.module-faabb426.js');
|
|
7
7
|
const JSS = require('./JSS-8503a151.js');
|
|
8
8
|
const utils = require('./utils-6847bc06.js');
|
|
9
9
|
const sqmPortalContainerView = require('./sqm-portal-container-view-5fb2ad49.js');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
|
-
const stencilHooks_module = require('./stencil-hooks.module-
|
|
6
|
+
const stencilHooks_module = require('./stencil-hooks.module-faabb426.js');
|
|
7
7
|
|
|
8
8
|
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)}";
|
|
9
9
|
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
|
-
const stencilHooks_module = require('./stencil-hooks.module-
|
|
7
|
-
const index_module = require('./index.module-
|
|
6
|
+
const stencilHooks_module = require('./stencil-hooks.module-faabb426.js');
|
|
7
|
+
const index_module = require('./index.module-7c0deb52.js');
|
|
8
8
|
|
|
9
9
|
async function useGraphQLClientProvider({ domain }) {
|
|
10
|
-
const token = index_module.
|
|
10
|
+
const token = index_module.L();
|
|
11
11
|
const appDomain = domain;
|
|
12
|
-
const tenantAlias = index_module.
|
|
12
|
+
const tenantAlias = index_module.T();
|
|
13
13
|
// Memoization is shared. One client per domain, tenant and token (or null)
|
|
14
|
-
const managedIdentityClient = index_module.
|
|
15
|
-
const [, setGraphQLClient] = stencilHooks_module.m(index_module.
|
|
14
|
+
const managedIdentityClient = index_module.we(appDomain, tenantAlias, token);
|
|
15
|
+
const [, setGraphQLClient] = stencilHooks_module.m(index_module.be, managedIdentityClient);
|
|
16
16
|
stencilHooks_module.useEffect(() => {
|
|
17
17
|
setGraphQLClient(managedIdentityClient);
|
|
18
18
|
}, [managedIdentityClient]);
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
|
-
const stencilHooks_module = require('./stencil-hooks.module-
|
|
6
|
+
const stencilHooks_module = require('./stencil-hooks.module-faabb426.js');
|
|
7
7
|
|
|
8
8
|
const HeroImage = class {
|
|
9
9
|
constructor(hostRef) {
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
|
-
const stencilHooks_module = require('./stencil-hooks.module-
|
|
7
|
-
const index_module = require('./index.module-
|
|
6
|
+
const stencilHooks_module = require('./stencil-hooks.module-faabb426.js');
|
|
7
|
+
const index_module = require('./index.module-7c0deb52.js');
|
|
8
8
|
require('./jsonpointer-11327262.js');
|
|
9
9
|
const cjs = require('./cjs-1066ec21.js');
|
|
10
10
|
require('./mixins-fe9d4112.js');
|
|
11
11
|
require('./JSS-8503a151.js');
|
|
12
12
|
const emailRegistrationView = require('./email-registration-view-a6b6430e.js');
|
|
13
|
-
require('./useRegistrationFormState-
|
|
14
|
-
const useInstantAccessRegistration = require('./useInstantAccessRegistration-
|
|
13
|
+
require('./useRegistrationFormState-58ce55f2.js');
|
|
14
|
+
const useInstantAccessRegistration = require('./useInstantAccessRegistration-42b320b3.js');
|
|
15
15
|
|
|
16
16
|
const InstantAccessRegistration = class {
|
|
17
17
|
constructor(hostRef) {
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
|
-
const stencilHooks_module = require('./stencil-hooks.module-
|
|
7
|
-
const global = require('./global-
|
|
8
|
-
const index_module = require('./index.module-
|
|
6
|
+
const stencilHooks_module = require('./stencil-hooks.module-faabb426.js');
|
|
7
|
+
const global = require('./global-a8fd1f10.js');
|
|
8
|
+
const index_module = require('./index.module-7c0deb52.js');
|
|
9
9
|
const cjs = require('./cjs-1066ec21.js');
|
|
10
10
|
const sqmLeaderboardRankView = require('./sqm-leaderboard-rank-view-5a3d4a88.js');
|
|
11
11
|
|
|
@@ -24,10 +24,10 @@ const GET_RANK = index_module.dist.gql `
|
|
|
24
24
|
`;
|
|
25
25
|
function useLeaderboardRank(props) {
|
|
26
26
|
var _a, _b, _c, _d;
|
|
27
|
-
const programIdContext = index_module.
|
|
27
|
+
const programIdContext = index_module._();
|
|
28
28
|
// Default to context, overriden by props
|
|
29
29
|
const programId = (_a = props.programId) !== null && _a !== void 0 ? _a : programIdContext;
|
|
30
|
-
const user = index_module.
|
|
30
|
+
const user = index_module.H();
|
|
31
31
|
const rankVariables = programId
|
|
32
32
|
? {
|
|
33
33
|
type: props.leaderboardType,
|
|
@@ -40,7 +40,7 @@ function useLeaderboardRank(props) {
|
|
|
40
40
|
if (props.interval) {
|
|
41
41
|
rankVariables.filter["interval"] = props.interval;
|
|
42
42
|
}
|
|
43
|
-
const { data: rankData } = index_module.
|
|
43
|
+
const { data: rankData } = index_module.gn(GET_RANK, rankVariables, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
44
44
|
const fullRankText = ((_b = rankData === null || rankData === void 0 ? void 0 : rankData.viewer) === null || _b === void 0 ? void 0 : _b.leaderboardRank) ? global.intl.formatMessage({ id: "rankText", defaultMessage: props.rankText }, {
|
|
45
45
|
rank: (_d = (_c = rankData === null || rankData === void 0 ? void 0 : rankData.viewer) === null || _c === void 0 ? void 0 : _c.leaderboardRank) === null || _d === void 0 ? void 0 : _d[props.rankType],
|
|
46
46
|
})
|