@saasquatch/mint-components 1.13.0-0 → 1.13.0-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{GenericTableView-7ef786c3.js → GenericTableView-a9f4ba75.js} +1 -1
- package/dist/cjs/{ShadowViewAddon-2aa1bd99.js → ShadowViewAddon-44cb1a98.js} +29 -29
- package/dist/cjs/{copy-text-view-43e8349f.js → copy-text-view-9b950efe.js} +10 -10
- package/dist/cjs/{email-registration-view-4eeee3e4.js → email-registration-view-55b378dc.js} +1 -1
- package/dist/cjs/{global-d9abaf4d.js → global-19fc8a7a.js} +3 -3
- package/dist/cjs/{index-3cf5ef3d.js → index-a29c60ef.js} +10 -0
- package/dist/cjs/{index.module-ccf9bd9c.js → index.module-57703088.js} +23 -58
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{luxon-14ae1f8a.js → luxon-2926d85f.js} +1 -1
- package/dist/cjs/mint-components.cjs.js +4 -4
- package/dist/cjs/{mockRewardData-a384d9f5.js → mockRewardData-272e22d6.js} +1 -1
- package/dist/cjs/raisins-plop-target.cjs.entry.js +1 -1
- package/dist/cjs/{re-render-1e63c82b.js → re-render-35b016ed.js} +5 -5
- package/dist/cjs/{sqm-asset-card-view-a3abee0b.js → sqm-asset-card-view-21ddf04f.js} +1 -1
- package/dist/cjs/sqm-asset-card.cjs.entry.js +4 -4
- package/dist/cjs/sqm-banking-info-form_16.cjs.entry.js +65 -65
- package/dist/cjs/{sqm-base-registration-form-view-e4a74dee.js → sqm-base-registration-form-view-d5685747.js} +2 -2
- package/dist/cjs/sqm-big-stat_38.cjs.entry.js +93 -71
- package/dist/cjs/{sqm-close-button-view-0cdada3a.js → sqm-close-button-view-ea3fa23b.js} +1 -1
- package/dist/cjs/sqm-close-button.cjs.entry.js +4 -4
- package/dist/cjs/sqm-context-router.cjs.entry.js +4 -4
- package/dist/cjs/sqm-empty_4.cjs.entry.js +5 -5
- package/dist/cjs/sqm-form-message.cjs.entry.js +2 -2
- package/dist/cjs/sqm-google-sign-in.cjs.entry.js +53 -28
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +7 -7
- package/dist/cjs/sqm-header-logo.cjs.entry.js +2 -2
- package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +6 -6
- package/dist/cjs/{sqm-invoice-table-view-a13d1c7f.js → sqm-invoice-table-view-9dfa2a16.js} +2 -2
- package/dist/cjs/{sqm-leaderboard-rank-view-133f8d95.js → sqm-leaderboard-rank-view-d39a55d8.js} +1 -1
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +8 -8
- package/dist/cjs/{sqm-logout-current-user-view-64ca6abe.js → sqm-logout-current-user-view-11d57c12.js} +1 -1
- package/dist/cjs/sqm-logout-current-user.cjs.entry.js +6 -6
- package/dist/cjs/{sqm-navigation-sidebar-item-view-38519acf.js → sqm-navigation-sidebar-item-view-9bba5f7e.js} +3 -3
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +5 -5
- package/dist/cjs/{sqm-navigation-sidebar-view-37209a17.js → sqm-navigation-sidebar-view-17111896.js} +1 -1
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +6 -6
- package/dist/cjs/sqm-pagination_3.cjs.entry.js +13 -13
- package/dist/cjs/sqm-password-field.cjs.entry.js +4 -4
- package/dist/cjs/sqm-popup-container.cjs.entry.js +6 -6
- package/dist/cjs/{sqm-portal-container-view-9a36f5ed.js → sqm-portal-container-view-4f15143a.js} +1 -1
- package/dist/cjs/{sqm-portal-email-verification-view-6e1e80e7.js → sqm-portal-email-verification-view-98d84549.js} +3 -3
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +11 -11
- package/dist/cjs/{sqm-portal-forgot-password-view-97903679.js → sqm-portal-forgot-password-view-78f19ef9.js} +2 -2
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +8 -8
- package/dist/cjs/sqm-portal-google-registration-form.cjs.entry.js +78 -17
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +4 -4
- package/dist/cjs/{sqm-portal-profile-view-f4489585.js → sqm-portal-profile-view-bae28ea0.js} +3 -3
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +10 -10
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +7 -7
- package/dist/cjs/{sqm-portal-registration-form-view-add61eb6.js → sqm-portal-registration-form-view-e947a5b3.js} +2 -2
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +8 -8
- package/dist/cjs/{sqm-portal-reset-password-view-0ed5419e.js → sqm-portal-reset-password-view-fe602822.js} +2 -2
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +10 -10
- package/dist/cjs/{sqm-portal-verify-email-view-cd2c3086.js → sqm-portal-verify-email-view-7b678f34.js} +2 -2
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +10 -10
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +11 -11
- package/dist/cjs/sqm-referred-registration.cjs.entry.js +6 -6
- package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +3 -3
- package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +4 -4
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +15 -15
- package/dist/cjs/sqm-route.cjs.entry.js +1 -1
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +153 -151
- package/dist/cjs/sqm-tab.cjs.entry.js +4 -4
- package/dist/cjs/sqm-tabs.cjs.entry.js +6 -6
- package/dist/cjs/{sqm-text-span-view-a22f50aa.js → sqm-text-span-view-0aa82125.js} +1 -1
- package/dist/cjs/sqm-text-span.cjs.entry.js +3 -3
- package/dist/cjs/{stencil-hooks.module-ece1ee46.js → stencil-hooks.module-3a336b0f.js} +1 -1
- package/dist/cjs/{useChildElements-438cf387.js → useChildElements-854cd1e5.js} +3 -3
- package/dist/cjs/{useInstantAccessRegistration-7d91867a.js → useInstantAccessRegistration-daff8290.js} +4 -4
- package/dist/cjs/{usePortalRegistrationForm-0d4fbcde.js → usePortalRegistrationForm-a89d736e.js} +9 -7
- package/dist/cjs/{useReferralTable-6b4920f9.js → useReferralTable-283d2316.js} +11 -11
- package/dist/cjs/useRegistrationFormState-986b5ea1.js +27 -0
- package/dist/cjs/{utilities-27e9535b.js → utilities-c135f16f.js} +2 -2
- package/dist/collection/components/sqm-base-registration/BaseRegistrationForm.stories.js +14 -3
- package/dist/collection/components/sqm-google-sign-in/sqm-google-sign-in.js +60 -30
- package/dist/collection/components/sqm-google-sign-in/useGoogleSignIn.js +43 -0
- package/dist/collection/components/sqm-portal-google-registration-form/PortalGoogleRegistrationForm.stories.js +43 -63
- package/dist/collection/components/sqm-portal-google-registration-form/sqm-portal-google-registration-form.js +3 -2
- package/dist/collection/components/sqm-portal-google-registration-form/usePortalGoogleRegistrationForm.js +11 -9
- package/dist/collection/components/sqm-portal-login/PortalLogin.stories.js +24 -8
- package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +8 -14
- package/dist/collection/components/sqm-portal-login/usePortalLogin.js +24 -4
- package/dist/collection/components/sqm-portal-registration-form/usePortalRegistrationForm.js +2 -0
- package/dist/collection/components/sqm-portal-registration-form/useRegistrationFormState.js +13 -0
- package/dist/collection/components/sqm-referral-table/ReferralTableRewardsCell.stories.js +0 -1
- package/dist/collection/components/sqm-rewards-table/RewardsTableCell.stories.js +1 -3
- package/dist/esm/{GenericTableView-6aa9fac9.js → GenericTableView-7b9087af.js} +1 -1
- package/dist/esm/{ShadowViewAddon-af23bc54.js → ShadowViewAddon-eba44767.js} +29 -29
- package/dist/esm/{copy-text-view-61eebf5d.js → copy-text-view-b060162f.js} +10 -10
- package/dist/esm/{email-registration-view-6870d230.js → email-registration-view-a7818cf2.js} +1 -1
- package/dist/esm/{global-3611a2b7.js → global-bedc4329.js} +3 -3
- package/dist/esm/{index-60f16d0a.js → index-91e7729f.js} +10 -0
- package/dist/esm/{index.module-f3d96fbb.js → index.module-a2989d3c.js} +6 -41
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{luxon-9b1f9912.js → luxon-8d51c92b.js} +1 -1
- package/dist/esm/mint-components.js +4 -4
- package/dist/esm/{mockRewardData-8b3afd15.js → mockRewardData-8bd1b356.js} +1 -1
- package/dist/esm/raisins-plop-target.entry.js +1 -1
- package/dist/esm/{re-render-3b630de2.js → re-render-268bb9c8.js} +5 -5
- package/dist/esm/{sqm-asset-card-view-2157b61f.js → sqm-asset-card-view-fe5db3c0.js} +1 -1
- package/dist/esm/sqm-asset-card.entry.js +4 -4
- package/dist/esm/sqm-banking-info-form_16.entry.js +65 -65
- package/dist/esm/{sqm-base-registration-form-view-dd481f19.js → sqm-base-registration-form-view-98c4db70.js} +2 -2
- package/dist/esm/sqm-big-stat_38.entry.js +93 -71
- package/dist/esm/{sqm-close-button-view-0c0bfff8.js → sqm-close-button-view-f9819751.js} +1 -1
- package/dist/esm/sqm-close-button.entry.js +4 -4
- package/dist/esm/sqm-context-router.entry.js +4 -4
- package/dist/esm/sqm-empty_4.entry.js +5 -5
- package/dist/esm/sqm-form-message.entry.js +2 -2
- package/dist/esm/sqm-google-sign-in.entry.js +53 -28
- package/dist/esm/sqm-graphql-client-provider.entry.js +7 -7
- package/dist/esm/sqm-header-logo.entry.js +2 -2
- package/dist/esm/sqm-instant-access-registration.entry.js +6 -6
- package/dist/esm/{sqm-invoice-table-view-b8240dc6.js → sqm-invoice-table-view-8e2bb54a.js} +2 -2
- package/dist/esm/{sqm-leaderboard-rank-view-7cd0de83.js → sqm-leaderboard-rank-view-753c8d4a.js} +1 -1
- package/dist/esm/sqm-leaderboard-rank.entry.js +8 -8
- package/dist/esm/{sqm-logout-current-user-view-02e9f508.js → sqm-logout-current-user-view-8ef8180f.js} +1 -1
- package/dist/esm/sqm-logout-current-user.entry.js +6 -6
- package/dist/esm/{sqm-navigation-sidebar-item-view-a4e4edb6.js → sqm-navigation-sidebar-item-view-56da6bca.js} +3 -3
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +5 -5
- package/dist/esm/{sqm-navigation-sidebar-view-ce55d74d.js → sqm-navigation-sidebar-view-9d802b78.js} +1 -1
- package/dist/esm/sqm-navigation-sidebar.entry.js +6 -6
- package/dist/esm/sqm-pagination_3.entry.js +13 -13
- package/dist/esm/sqm-password-field.entry.js +4 -4
- package/dist/esm/sqm-popup-container.entry.js +6 -6
- package/dist/esm/{sqm-portal-container-view-c3be4b88.js → sqm-portal-container-view-1683ae32.js} +1 -1
- package/dist/esm/{sqm-portal-email-verification-view-d500dd01.js → sqm-portal-email-verification-view-44c8970f.js} +3 -3
- package/dist/esm/sqm-portal-email-verification.entry.js +11 -11
- package/dist/esm/{sqm-portal-forgot-password-view-4f6c89a7.js → sqm-portal-forgot-password-view-3d3182f1.js} +2 -2
- package/dist/esm/sqm-portal-forgot-password.entry.js +8 -8
- package/dist/esm/sqm-portal-google-registration-form.entry.js +78 -17
- package/dist/esm/sqm-portal-logout.entry.js +4 -4
- package/dist/esm/{sqm-portal-profile-view-2997f902.js → sqm-portal-profile-view-39039274.js} +3 -3
- package/dist/esm/sqm-portal-profile.entry.js +10 -10
- package/dist/esm/sqm-portal-protected-route.entry.js +7 -7
- package/dist/esm/{sqm-portal-registration-form-view-20b9c9bc.js → sqm-portal-registration-form-view-90e2bfd5.js} +2 -2
- package/dist/esm/sqm-portal-registration-form.entry.js +8 -8
- package/dist/esm/{sqm-portal-reset-password-view-e29f1842.js → sqm-portal-reset-password-view-54a8651f.js} +2 -2
- package/dist/esm/sqm-portal-reset-password.entry.js +10 -10
- package/dist/esm/{sqm-portal-verify-email-view-d5dcf5c5.js → sqm-portal-verify-email-view-b12cb894.js} +2 -2
- package/dist/esm/sqm-portal-verify-email.entry.js +10 -10
- package/dist/esm/sqm-referral-table_11.entry.js +11 -11
- package/dist/esm/sqm-referred-registration.entry.js +6 -6
- package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +3 -3
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +4 -4
- package/dist/esm/sqm-rewards-table_9.entry.js +15 -15
- package/dist/esm/sqm-route.entry.js +1 -1
- package/dist/esm/sqm-stencilbook.entry.js +153 -151
- package/dist/esm/sqm-tab.entry.js +4 -4
- package/dist/esm/sqm-tabs.entry.js +6 -6
- package/dist/esm/{sqm-text-span-view-d1b54710.js → sqm-text-span-view-ca32495e.js} +1 -1
- package/dist/esm/sqm-text-span.entry.js +3 -3
- package/dist/esm/{stencil-hooks.module-e20edc0b.js → stencil-hooks.module-4bc38af4.js} +1 -1
- package/dist/esm/{useChildElements-d1d3fedd.js → useChildElements-38c11321.js} +3 -3
- package/dist/esm/{useInstantAccessRegistration-c5d80a2e.js → useInstantAccessRegistration-7255b0ca.js} +4 -4
- package/dist/esm/{usePortalRegistrationForm-e8ec6d4e.js → usePortalRegistrationForm-5715c7a5.js} +9 -7
- package/dist/esm/{useReferralTable-fbcfc2a7.js → useReferralTable-d77b11f5.js} +11 -11
- package/dist/esm/useRegistrationFormState-01cdd8c7.js +23 -0
- package/dist/esm/{utilities-33996ce7.js → utilities-863d06d1.js} +2 -2
- package/dist/esm-es5/{GenericTableView-6aa9fac9.js → GenericTableView-7b9087af.js} +1 -1
- package/dist/esm-es5/ShadowViewAddon-eba44767.js +1 -0
- package/dist/esm-es5/copy-text-view-b060162f.js +1 -0
- package/dist/esm-es5/{email-registration-view-6870d230.js → email-registration-view-a7818cf2.js} +1 -1
- package/dist/esm-es5/{global-3611a2b7.js → global-bedc4329.js} +2 -2
- package/dist/esm-es5/{index-60f16d0a.js → index-91e7729f.js} +1 -1
- package/dist/esm-es5/index.module-a2989d3c.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{luxon-9b1f9912.js → luxon-8d51c92b.js} +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/{mockRewardData-8b3afd15.js → mockRewardData-8bd1b356.js} +1 -1
- package/dist/esm-es5/raisins-plop-target.entry.js +1 -1
- package/dist/esm-es5/{re-render-3b630de2.js → re-render-268bb9c8.js} +1 -1
- package/dist/esm-es5/{sqm-asset-card-view-2157b61f.js → sqm-asset-card-view-fe5db3c0.js} +1 -1
- package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
- package/dist/esm-es5/sqm-banking-info-form_16.entry.js +1 -1
- package/dist/esm-es5/{sqm-base-registration-form-view-dd481f19.js → sqm-base-registration-form-view-98c4db70.js} +1 -1
- package/dist/esm-es5/sqm-big-stat_38.entry.js +1 -1
- package/dist/esm-es5/{sqm-close-button-view-0c0bfff8.js → sqm-close-button-view-f9819751.js} +1 -1
- package/dist/esm-es5/sqm-close-button.entry.js +1 -1
- package/dist/esm-es5/sqm-context-router.entry.js +1 -1
- package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
- package/dist/esm-es5/sqm-form-message.entry.js +1 -1
- package/dist/esm-es5/sqm-google-sign-in.entry.js +1 -1
- package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm-es5/sqm-header-logo.entry.js +1 -1
- package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
- package/dist/esm-es5/{sqm-invoice-table-view-b8240dc6.js → sqm-invoice-table-view-8e2bb54a.js} +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank-view-753c8d4a.js +1 -0
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/{sqm-logout-current-user-view-02e9f508.js → sqm-logout-current-user-view-8ef8180f.js} +1 -1
- package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
- package/dist/esm-es5/{sqm-navigation-sidebar-item-view-a4e4edb6.js → sqm-navigation-sidebar-item-view-56da6bca.js} +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/{sqm-navigation-sidebar-view-ce55d74d.js → sqm-navigation-sidebar-view-9d802b78.js} +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
- package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
- package/dist/esm-es5/sqm-password-field.entry.js +1 -1
- package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-container-view-c3be4b88.js → sqm-portal-container-view-1683ae32.js} +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-d500dd01.js → sqm-portal-email-verification-view-44c8970f.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-forgot-password-view-4f6c89a7.js → sqm-portal-forgot-password-view-3d3182f1.js} +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-google-registration-form.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-2997f902.js → sqm-portal-profile-view-39039274.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-registration-form-view-20b9c9bc.js → sqm-portal-registration-form-view-90e2bfd5.js} +1 -1
- package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-reset-password-view-e29f1842.js → sqm-portal-reset-password-view-54a8651f.js} +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-verify-email-view-d5dcf5c5.js → sqm-portal-verify-email-view-b12cb894.js} +1 -1
- package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-referred-registration.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm-es5/sqm-route.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-tab.entry.js +1 -1
- package/dist/esm-es5/sqm-tabs.entry.js +1 -1
- package/dist/esm-es5/{sqm-text-span-view-d1b54710.js → sqm-text-span-view-ca32495e.js} +1 -1
- package/dist/esm-es5/sqm-text-span.entry.js +1 -1
- package/dist/esm-es5/{stencil-hooks.module-e20edc0b.js → stencil-hooks.module-4bc38af4.js} +1 -1
- package/dist/esm-es5/useChildElements-38c11321.js +1 -0
- package/dist/esm-es5/{useInstantAccessRegistration-c5d80a2e.js → useInstantAccessRegistration-7255b0ca.js} +1 -1
- package/dist/esm-es5/usePortalRegistrationForm-5715c7a5.js +1 -0
- package/dist/esm-es5/{useReferralTable-fbcfc2a7.js → useReferralTable-d77b11f5.js} +1 -1
- package/dist/esm-es5/useRegistrationFormState-01cdd8c7.js +1 -0
- package/dist/esm-es5/{utilities-33996ce7.js → utilities-863d06d1.js} +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/{p-76769baa.entry.js → p-0323586f.entry.js} +15 -15
- package/dist/mint-components/{p-5b6cf6cd.system.js → p-046f4631.system.js} +1 -1
- package/dist/mint-components/{p-863340dc.entry.js → p-0873eaa8.entry.js} +1 -1
- package/dist/mint-components/p-09c5e3ee.system.js +1 -0
- package/dist/mint-components/{p-dacefee2.entry.js → p-0aa62b64.entry.js} +1 -1
- package/dist/mint-components/p-0e53c59e.system.js +1 -0
- package/dist/mint-components/p-127e66c2.system.js +1 -0
- package/dist/mint-components/{p-1ab3f305.system.js → p-14a65f29.system.js} +1 -1
- package/dist/mint-components/{p-aed99250.js → p-16c7bfda.js} +3 -3
- package/dist/mint-components/{p-22110634.js → p-1833c4f5.js} +1 -1
- package/dist/mint-components/{p-3b923175.system.entry.js → p-19bc3406.system.entry.js} +1 -1
- package/dist/mint-components/{p-38b8050c.system.entry.js → p-1b0c58bc.system.entry.js} +1 -1
- package/dist/mint-components/{p-0aa76ad0.system.entry.js → p-1b3ab15a.system.entry.js} +1 -1
- package/dist/mint-components/p-1c5cffae.js +1 -0
- package/dist/mint-components/{p-682450a8.js → p-1ef299d7.js} +2 -2
- package/dist/mint-components/{p-1d58a8ff.entry.js → p-2126e1e6.entry.js} +1 -1
- package/dist/mint-components/{p-88197cfd.js → p-229f797b.js} +1 -1
- package/dist/mint-components/{p-c4c922fc.system.entry.js → p-24c4e0b8.system.entry.js} +1 -1
- package/dist/mint-components/{p-e56447fd.js → p-24db5c70.js} +1 -1
- package/dist/mint-components/{p-5309ebf3.js → p-266a8b4d.js} +1 -1
- package/dist/mint-components/p-26ec2894.entry.js +1 -0
- package/dist/mint-components/{p-5fb1bcb5.entry.js → p-28042d23.entry.js} +1 -1
- package/dist/mint-components/{p-6a95e6b7.js → p-2ab3b8d6.js} +2 -2
- package/dist/mint-components/{p-75956e50.entry.js → p-2bbff88f.entry.js} +1 -1
- package/dist/mint-components/{p-bd5706ba.entry.js → p-2dc5e60a.entry.js} +1 -1
- package/dist/mint-components/{p-c1ede4f5.system.js → p-2dca9e1a.system.js} +1 -1
- package/dist/mint-components/p-30108c0e.js +1 -0
- package/dist/mint-components/p-31a691af.js +1 -0
- package/dist/mint-components/p-35698aaa.system.js +1 -0
- package/dist/mint-components/{p-aa5446c1.js → p-35b475bf.js} +1 -1
- package/dist/mint-components/p-380bfde1.entry.js +1 -0
- package/dist/mint-components/{p-222fa722.system.js → p-38e5c429.system.js} +1 -1
- package/dist/mint-components/p-3972037c.system.entry.js +1 -0
- package/dist/mint-components/p-39b1a7fe.js +1 -0
- package/dist/mint-components/p-3bdd338c.system.js +1 -0
- package/dist/mint-components/{p-f8047aab.entry.js → p-3e1b7fb4.entry.js} +1 -1
- package/dist/mint-components/{p-6465b781.js → p-3ec660e9.js} +1 -1
- package/dist/mint-components/p-3f6e0197.system.entry.js +1 -0
- package/dist/mint-components/p-40e99b24.js +1 -0
- package/dist/mint-components/{p-93124bdb.entry.js → p-4448febd.entry.js} +1 -1
- package/dist/mint-components/{p-aeea67a3.entry.js → p-45436d5a.entry.js} +1 -1
- package/dist/mint-components/{p-64af8fa4.system.js → p-46ab5f80.system.js} +1 -1
- package/dist/mint-components/{p-58bcece7.system.js → p-48135f99.system.js} +1 -1
- package/dist/mint-components/{p-697d6e54.system.js → p-492b70db.system.js} +1 -1
- package/dist/mint-components/{p-683cfd07.js → p-492fdaf9.js} +1 -1
- package/dist/mint-components/{p-6ac9d2cf.entry.js → p-4ae54b04.entry.js} +1 -1
- package/dist/mint-components/{p-c33ccfb7.entry.js → p-4b6dc0e5.entry.js} +1 -1
- package/dist/mint-components/{p-9259fd35.system.entry.js → p-4bcb04aa.system.entry.js} +1 -1
- package/dist/mint-components/p-4daa3f8a.system.entry.js +1 -0
- package/dist/mint-components/p-4e5af50c.js +1 -0
- package/dist/mint-components/{p-a631db44.system.js → p-4f45be94.system.js} +1 -1
- package/dist/mint-components/{p-d47569d0.js → p-506679e9.js} +1 -1
- package/dist/mint-components/p-53aaa0a4.entry.js +1 -0
- package/dist/mint-components/p-550ef977.js +13 -0
- package/dist/mint-components/p-571c451e.entry.js +1 -0
- package/dist/mint-components/{p-12d27b9b.js → p-5bedb58c.js} +1 -1
- package/dist/mint-components/{p-e64c49dd.system.js → p-6055eb4c.system.js} +1 -1
- package/dist/mint-components/{p-3dc9a448.entry.js → p-618e1342.entry.js} +1 -1
- package/dist/mint-components/{p-b33381a7.js → p-626e9e84.js} +1 -1
- package/dist/mint-components/{p-ffe78243.js → p-62f6627d.js} +1 -1
- package/dist/mint-components/{p-0fd20804.system.entry.js → p-635aaf11.system.entry.js} +1 -1
- package/dist/mint-components/{p-b3499953.entry.js → p-65ba9e94.entry.js} +1 -1
- package/dist/mint-components/{p-ec379cf4.system.entry.js → p-6a8d9def.system.entry.js} +1 -1
- package/dist/mint-components/{p-d477a07b.system.js → p-6d9e52c7.system.js} +1 -1
- package/dist/mint-components/{p-71d6b762.js → p-6de85677.js} +1 -1
- package/dist/mint-components/{p-f8b41805.system.js → p-7166caa6.system.js} +1 -1
- package/dist/mint-components/{p-9d078f60.js → p-726a9924.js} +1 -1
- package/dist/mint-components/{p-7d2d59ec.system.entry.js → p-731aa5c6.system.entry.js} +1 -1
- package/dist/mint-components/p-749c7c9c.system.js +1 -0
- package/dist/mint-components/{p-e864a155.entry.js → p-75f50e5a.entry.js} +1 -1
- package/dist/mint-components/{p-c2bc302f.system.entry.js → p-7989a098.system.entry.js} +1 -1
- package/dist/mint-components/p-79ea1597.system.entry.js +1 -0
- package/dist/mint-components/{p-9716a83b.js → p-7a9290ba.js} +1 -1
- package/dist/mint-components/{p-b7edef12.system.entry.js → p-7bcf4467.system.entry.js} +1 -1
- package/dist/mint-components/{p-3dbcd42a.system.entry.js → p-7cb919d4.system.entry.js} +1 -1
- package/dist/mint-components/{p-7bc9308c.system.entry.js → p-7dabdca6.system.entry.js} +1 -1
- package/dist/mint-components/{p-f7175fc2.system.entry.js → p-8056fd5b.system.entry.js} +1 -1
- package/dist/mint-components/{p-a2a3d9dc.entry.js → p-80fc549b.entry.js} +1 -1
- package/dist/mint-components/{p-0e89ac7f.system.entry.js → p-81665df6.system.entry.js} +1 -1
- package/dist/mint-components/{p-0b6200b3.js → p-837a0fdd.js} +1 -1
- package/dist/mint-components/{p-3ae32130.system.js → p-8413ade9.system.js} +1 -1
- package/dist/mint-components/{p-0725d1a7.system.entry.js → p-857947fa.system.entry.js} +1 -1
- package/dist/mint-components/p-868f176e.entry.js +1 -0
- package/dist/mint-components/{p-500a2bff.entry.js → p-8975c2be.entry.js} +1 -1
- package/dist/mint-components/p-8987607b.system.entry.js +1 -0
- package/dist/mint-components/{p-5c714029.js → p-8d77feee.js} +1 -1
- package/dist/mint-components/{p-2dff4fb2.js → p-92816d1f.js} +1 -1
- package/dist/mint-components/{p-7141d536.system.entry.js → p-92a25556.system.entry.js} +1 -1
- package/dist/mint-components/p-95c64cfd.system.js +1 -0
- package/dist/mint-components/{p-8f705bea.system.entry.js → p-96431b4f.system.entry.js} +1 -1
- package/dist/mint-components/p-96b48c2b.system.js +1 -0
- package/dist/mint-components/{p-9e4e3d5f.system.js → p-97d4d651.system.js} +1 -1
- package/dist/mint-components/{p-b043693d.system.entry.js → p-988ea164.system.entry.js} +1 -1
- package/dist/mint-components/{p-ff19bf56.system.js → p-99ad7d56.system.js} +1 -1
- package/dist/mint-components/{p-9d954277.system.entry.js → p-9a0c3ed9.system.entry.js} +1 -1
- package/dist/mint-components/{p-bc305236.system.entry.js → p-9a16a3d8.system.entry.js} +1 -1
- package/dist/mint-components/p-9b779add.entry.js +1 -0
- package/dist/mint-components/p-9e49479a.entry.js +13 -0
- package/dist/mint-components/p-9f231a48.system.entry.js +1 -0
- package/dist/mint-components/p-a1f40614.system.entry.js +1 -0
- package/dist/mint-components/{p-44c4a54f.system.entry.js → p-a21d1a30.system.entry.js} +1 -1
- package/dist/mint-components/{p-70eafbbd.system.entry.js → p-a4a5beb5.system.entry.js} +1 -1
- package/dist/mint-components/{p-15b2063c.system.js → p-a8524459.system.js} +1 -1
- package/dist/mint-components/{p-9fff2218.js → p-a9f4ddb1.js} +1 -1
- package/dist/mint-components/{p-273ad080.system.entry.js → p-aaeaff1a.system.entry.js} +1 -1
- package/dist/mint-components/p-ac2b7eb8.system.js +1 -0
- package/dist/mint-components/{p-eac81420.entry.js → p-b114e746.entry.js} +1 -1
- package/dist/mint-components/p-b207beeb.entry.js +1 -0
- package/dist/mint-components/{p-f81cc2cd.entry.js → p-b611eefd.entry.js} +1 -1
- package/dist/mint-components/{p-5057380a.system.js → p-b75bb6e3.system.js} +1 -1
- package/dist/mint-components/{p-d59c19ba.entry.js → p-b9d17fa1.entry.js} +2 -2
- package/dist/mint-components/{p-14dc52dc.system.entry.js → p-bd4810c7.system.entry.js} +1 -1
- package/dist/mint-components/p-be0c205a.system.entry.js +1 -0
- package/dist/mint-components/{p-8fb2af73.system.js → p-bfc7cfc0.system.js} +1 -1
- package/dist/mint-components/{p-e605fe66.entry.js → p-c470caf6.entry.js} +2 -2
- package/dist/mint-components/p-c4b21562.system.entry.js +1 -0
- package/dist/mint-components/{p-003fb0ae.system.js → p-c6a8c075.system.js} +1 -1
- package/dist/mint-components/{p-b11f43ee.js → p-c9f1dde7.js} +1 -1
- package/dist/mint-components/p-ca04737a.entry.js +1 -0
- package/dist/mint-components/{p-adc14a77.system.entry.js → p-ca740238.system.entry.js} +1 -1
- package/dist/mint-components/{p-0954e95d.entry.js → p-cd480e3f.entry.js} +2 -2
- package/dist/mint-components/{p-b619a5e0.js → p-cd651f81.js} +1 -1
- package/dist/mint-components/p-cf505e92.system.js +1 -0
- package/dist/mint-components/{p-a1cb66c0.system.js → p-d671e44e.system.js} +1 -1
- package/dist/mint-components/{p-9c7a031a.js → p-d87ce3d2.js} +1 -1
- package/dist/mint-components/p-de6d3392.entry.js +1 -0
- package/dist/mint-components/p-de9afac2.system.entry.js +1 -0
- package/dist/mint-components/{p-e0c608e4.system.js → p-e07bc6c4.system.js} +1 -1
- package/dist/mint-components/{p-823f61da.entry.js → p-e0b344fb.entry.js} +1 -1
- package/dist/mint-components/{p-3c00282b.entry.js → p-e544bb9a.entry.js} +1 -1
- package/dist/mint-components/p-ea9fd654.entry.js +9 -0
- package/dist/mint-components/{p-cd39acd0.system.entry.js → p-ebdcea27.system.entry.js} +1 -1
- package/dist/mint-components/p-f0c23e81.system.entry.js +1 -0
- package/dist/mint-components/p-f26aedcd.system.js +1 -0
- package/dist/mint-components/{p-a67e8ef4.system.js → p-f2fd1910.system.js} +1 -1
- package/dist/mint-components/{p-070fa30d.entry.js → p-f32c8cb5.entry.js} +1 -1
- package/dist/mint-components/{p-1739dfb8.entry.js → p-f4a1dc19.entry.js} +1 -1
- package/dist/mint-components/{p-a8bf33fc.js → p-f708da7b.js} +1 -1
- package/dist/mint-components/{p-7e3ada1b.system.js → p-f7c99803.system.js} +1 -1
- package/dist/mint-components/p-f940190a.js +1 -0
- package/dist/mint-components/{p-ef7b966e.system.js → p-f9de8a59.system.js} +1 -1
- package/dist/mint-components/{p-8799b28f.entry.js → p-faba3198.entry.js} +1 -1
- package/dist/mint-components/{p-f8450975.system.entry.js → p-fe4a9dfe.system.entry.js} +1 -1
- package/dist/types/components/sqm-base-registration/BaseRegistrationForm.stories.d.ts +1 -0
- package/dist/types/components/sqm-google-sign-in/sqm-google-sign-in.d.ts +5 -0
- package/dist/types/components/sqm-google-sign-in/useGoogleSignIn.d.ts +4 -0
- package/dist/types/components/sqm-portal-google-registration-form/PortalGoogleRegistrationForm.stories.d.ts +0 -2
- package/dist/types/components/sqm-portal-login/sqm-portal-login-view.d.ts +1 -0
- package/dist/types/components/sqm-portal-login/usePortalLogin.d.ts +1 -0
- package/dist/types/components/sqm-portal-registration-form/useRegistrationFormState.d.ts +2 -0
- package/dist/types/components.d.ts +6 -0
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +5 -2
- package/dist/cjs/useRegistrationFormState-5911d016.js +0 -14
- package/dist/esm/useRegistrationFormState-33f9cb24.js +0 -11
- package/dist/esm-es5/ShadowViewAddon-af23bc54.js +0 -1
- package/dist/esm-es5/copy-text-view-61eebf5d.js +0 -1
- package/dist/esm-es5/index.module-f3d96fbb.js +0 -1
- package/dist/esm-es5/sqm-leaderboard-rank-view-7cd0de83.js +0 -1
- package/dist/esm-es5/useChildElements-d1d3fedd.js +0 -1
- package/dist/esm-es5/usePortalRegistrationForm-e8ec6d4e.js +0 -1
- package/dist/esm-es5/useRegistrationFormState-33f9cb24.js +0 -1
- package/dist/mint-components/p-0c4c5874.js +0 -1
- package/dist/mint-components/p-0fe8fbe1.system.entry.js +0 -1
- package/dist/mint-components/p-13fe7290.js +0 -1
- package/dist/mint-components/p-192689fc.entry.js +0 -1
- package/dist/mint-components/p-27f281f4.system.js +0 -1
- package/dist/mint-components/p-38bd81d1.system.js +0 -1
- package/dist/mint-components/p-3c04f8d1.system.js +0 -1
- package/dist/mint-components/p-3d4978ca.system.entry.js +0 -1
- package/dist/mint-components/p-3e8e2f37.system.js +0 -1
- package/dist/mint-components/p-3f3cd0b9.system.entry.js +0 -1
- package/dist/mint-components/p-455a3f54.system.entry.js +0 -1
- package/dist/mint-components/p-4692d45d.system.entry.js +0 -1
- package/dist/mint-components/p-478e8baa.system.js +0 -1
- package/dist/mint-components/p-53238aee.js +0 -1
- package/dist/mint-components/p-5dd51c6f.entry.js +0 -9
- package/dist/mint-components/p-5e61bdfd.entry.js +0 -1
- package/dist/mint-components/p-6673a331.system.js +0 -1
- package/dist/mint-components/p-7027b14d.js +0 -1
- package/dist/mint-components/p-705de128.js +0 -13
- package/dist/mint-components/p-74d5d3d1.entry.js +0 -1
- package/dist/mint-components/p-7ef0cb0a.system.js +0 -1
- package/dist/mint-components/p-7facf5cd.system.entry.js +0 -1
- package/dist/mint-components/p-8329e1fa.system.js +0 -1
- package/dist/mint-components/p-8525931d.system.entry.js +0 -1
- package/dist/mint-components/p-8a0a87e7.system.entry.js +0 -1
- package/dist/mint-components/p-920b48ad.system.entry.js +0 -1
- package/dist/mint-components/p-944918d9.entry.js +0 -1
- package/dist/mint-components/p-989fdd2e.system.js +0 -1
- package/dist/mint-components/p-a9166b6a.entry.js +0 -1
- package/dist/mint-components/p-ad00a797.system.entry.js +0 -1
- package/dist/mint-components/p-b402df18.js +0 -1
- package/dist/mint-components/p-b667d890.system.entry.js +0 -1
- package/dist/mint-components/p-b6a4ce83.entry.js +0 -1
- package/dist/mint-components/p-b6f41077.entry.js +0 -1
- package/dist/mint-components/p-c56b47e5.system.js +0 -1
- package/dist/mint-components/p-d23d5113.js +0 -1
- package/dist/mint-components/p-d4c0d53f.js +0 -1
- package/dist/mint-components/p-d9dd65fd.entry.js +0 -1
- package/dist/mint-components/p-e10be944.entry.js +0 -1
- package/dist/mint-components/p-ec9c8ced.system.js +0 -1
- package/dist/mint-components/p-fde23de1.entry.js +0 -13
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { r as registerInstance, h as h$1, c as Host } from './index-
|
|
2
|
-
import { n as h, f as useEffect, k as useState, i as d, u as useMemo, m as useRef, b as browser, j as useReducer } from './stencil-hooks.module-
|
|
3
|
-
import { i as intl } from './global-
|
|
4
|
-
import { i as isDemo,
|
|
1
|
+
import { r as registerInstance, h as h$1, c as Host } from './index-91e7729f.js';
|
|
2
|
+
import { n as h, f as useEffect, k as useState, i as d, u as useMemo, m as useRef, b as browser, j as useReducer } from './stencil-hooks.module-4bc38af4.js';
|
|
3
|
+
import { i as intl } from './global-bedc4329.js';
|
|
4
|
+
import { i as isDemo, _, d as dist, J, H, $ as $e, w as wn, B, L, y as yn, j as jn, o as Ue, p as je, q as hn, V as Ve, u as useCallback, Q as Qe, k as kn } from './index.module-a2989d3c.js';
|
|
5
5
|
import { j as jsonpointer } from './jsonpointer-388a7082.js';
|
|
6
6
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
7
7
|
import { g as getProps, a as getMissingProps, s as sanitizeUrlPath } from './utils-334c1e34.js';
|
|
8
8
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
9
|
-
import { C as CopyTextView } from './copy-text-view-
|
|
9
|
+
import { C as CopyTextView } from './copy-text-view-b060162f.js';
|
|
10
10
|
import './mixins-83f90fa1.js';
|
|
11
|
-
import { a as useRequestRerender } from './re-render-
|
|
12
|
-
import { u as useChildElements } from './useChildElements-
|
|
13
|
-
import './luxon-
|
|
14
|
-
import './sqm-text-span-view-
|
|
11
|
+
import { a as useRequestRerender } from './re-render-268bb9c8.js';
|
|
12
|
+
import { u as useChildElements } from './useChildElements-38c11321.js';
|
|
13
|
+
import './luxon-8d51c92b.js';
|
|
14
|
+
import './sqm-text-span-view-ca32495e.js';
|
|
15
15
|
import { p as pathToRegexp } from './index-ffa26b43.js';
|
|
16
|
-
import { R as REGISTRATION_FORM_STATE_CONTEXT, u as useRegistrationFormState } from './useRegistrationFormState-
|
|
16
|
+
import { R as REGISTRATION_FORM_STATE_CONTEXT, u as useRegistrationFormState } from './useRegistrationFormState-01cdd8c7.js';
|
|
17
17
|
import { A as AsYouType } from './AsYouType-46f67d0d.js';
|
|
18
|
-
import { i as isEmpty } from './utilities-
|
|
19
|
-
import { b as useDemoBigStat, U as useBigStat, B as BigStatView, O as autoColorScaleCss, J as CardFeedView, C as CheckboxFieldView, K 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, j as RewardExchangeView, a as useShareButton, S as ShareButtonView, u as useShareLink, c as StatContainerView, T as TaskCardView } from './ShadowViewAddon-
|
|
20
|
-
import './sqm-portal-container-view-
|
|
18
|
+
import { i as isEmpty } from './utilities-863d06d1.js';
|
|
19
|
+
import { b as useDemoBigStat, U as useBigStat, B as BigStatView, O as autoColorScaleCss, J as CardFeedView, C as CheckboxFieldView, K 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, j as RewardExchangeView, a as useShareButton, S as ShareButtonView, u as useShareLink, c as StatContainerView, T as TaskCardView } from './ShadowViewAddon-eba44767.js';
|
|
20
|
+
import './sqm-portal-container-view-1683ae32.js';
|
|
21
21
|
|
|
22
22
|
const BigStat = class {
|
|
23
23
|
constructor(hostRef) {
|
|
@@ -36,7 +36,7 @@ const BigStat = class {
|
|
|
36
36
|
render() {
|
|
37
37
|
var _a;
|
|
38
38
|
const { props, label } = isDemo() ? useDemoBigStat(this) : useBigStat(this);
|
|
39
|
-
const host =
|
|
39
|
+
const host = _();
|
|
40
40
|
const hasLabel = !!((_a = host.innerHTML) === null || _a === void 0 ? void 0 : _a.trim());
|
|
41
41
|
const labelSlot = h$1("slot", { name: "label" }, hasLabel ? h$1("slot", null) : label);
|
|
42
42
|
return h$1(BigStatView, Object.assign({}, props, { labelSlot: labelSlot }));
|
|
@@ -157,7 +157,7 @@ const styleString = sheet.toString();
|
|
|
157
157
|
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) {
|
|
158
158
|
if (!missingProps)
|
|
159
159
|
return false;
|
|
160
|
-
const host =
|
|
160
|
+
const host = _();
|
|
161
161
|
const [detailsOpen, setDetailsOpen] = useState(false);
|
|
162
162
|
return (h$1("sl-alert", { type: "danger", open: true },
|
|
163
163
|
h$1("style", { type: "text/css" }, styleString),
|
|
@@ -299,11 +299,11 @@ const WIDGET_ENGAGEMENT_EVENT = dist.gql `
|
|
|
299
299
|
`;
|
|
300
300
|
function useCouponCode(props) {
|
|
301
301
|
var _a, _b, _c;
|
|
302
|
-
const user =
|
|
303
|
-
const programId =
|
|
304
|
-
const engagementMedium =
|
|
305
|
-
const [sendLoadEvent] =
|
|
306
|
-
const { data, loading, refetch, errors } =
|
|
302
|
+
const user = J();
|
|
303
|
+
const programId = H();
|
|
304
|
+
const engagementMedium = B();
|
|
305
|
+
const [sendLoadEvent] = $e(WIDGET_ENGAGEMENT_EVENT);
|
|
306
|
+
const { data, loading, refetch, errors } = wn(FuelTankRewardsQuery, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
307
307
|
const getStatus = (reward) => {
|
|
308
308
|
if (!reward || !reward.statuses)
|
|
309
309
|
return "ERROR";
|
|
@@ -693,13 +693,13 @@ const defaultFormState = {
|
|
|
693
693
|
error: "",
|
|
694
694
|
};
|
|
695
695
|
function useEditProfile(props) {
|
|
696
|
-
const userIdent =
|
|
696
|
+
const userIdent = J();
|
|
697
697
|
const [showEdit, setShowEdit] = useState(false);
|
|
698
698
|
const [error, setError] = useState("");
|
|
699
699
|
const [userData, setUserData] = useState(undefined);
|
|
700
700
|
const [formState, setFormState] = useState(defaultFormState);
|
|
701
|
-
const userDataResponse =
|
|
702
|
-
const [upsertUser, upsertUserResponse] =
|
|
701
|
+
const userDataResponse = wn(GET_USER, {}, !(userIdent === null || userIdent === void 0 ? void 0 : userIdent.jwt));
|
|
702
|
+
const [upsertUser, upsertUserResponse] = $e(UPSERT_USER);
|
|
703
703
|
useEffect(() => {
|
|
704
704
|
if ((upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.loading) || !showEdit)
|
|
705
705
|
return;
|
|
@@ -1338,11 +1338,11 @@ const GET_RANK_WITHOUT_NAMES = dist.gql `
|
|
|
1338
1338
|
`;
|
|
1339
1339
|
function useLeaderboard(props) {
|
|
1340
1340
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1341
|
-
const programIdContext =
|
|
1341
|
+
const programIdContext = H();
|
|
1342
1342
|
// Default to context, overriden by props
|
|
1343
1343
|
const programId = (_a = props.programId) !== null && _a !== void 0 ? _a : programIdContext;
|
|
1344
|
-
const user =
|
|
1345
|
-
const locale =
|
|
1344
|
+
const user = J();
|
|
1345
|
+
const locale = L();
|
|
1346
1346
|
const variables = programId
|
|
1347
1347
|
? {
|
|
1348
1348
|
type: props.leaderboardType,
|
|
@@ -1361,8 +1361,8 @@ function useLeaderboard(props) {
|
|
|
1361
1361
|
if (props.maxRows > 0) {
|
|
1362
1362
|
variables["limit"] = props.maxRows;
|
|
1363
1363
|
}
|
|
1364
|
-
const { data: leaderboardData, loading: loadingLeaderboard, errors: leaderboardErrors, } =
|
|
1365
|
-
const { data: rankData } =
|
|
1364
|
+
const { data: leaderboardData, loading: loadingLeaderboard, errors: leaderboardErrors, } = wn(props.hideNames ? GET_LEADERBOARD_WITHOUT_NAMES : GET_LEADERBOARD, variables, !(user === null || user === void 0 ? void 0 : user.jwt), { batch: false });
|
|
1365
|
+
const { data: rankData } = wn(props.hideNames ? GET_RANK_WITHOUT_NAMES : GET_RANK, variables, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
1366
1366
|
const leaderboardRows = (_b = leaderboardData === null || leaderboardData === void 0 ? void 0 : leaderboardData.userLeaderboard) === null || _b === void 0 ? void 0 : _b.rows;
|
|
1367
1367
|
const flattenedLeaderboard = getFlattenedLeaderboard(leaderboardRows);
|
|
1368
1368
|
const sortedLeaderboard = flattenedLeaderboard === null || flattenedLeaderboard === void 0 ? void 0 : flattenedLeaderboard.sort(function (a, b) {
|
|
@@ -1660,12 +1660,12 @@ function NavigationMenuView(props) {
|
|
|
1660
1660
|
}
|
|
1661
1661
|
|
|
1662
1662
|
function handleMenu(e) {
|
|
1663
|
-
|
|
1663
|
+
jn.push(e.detail.item.value);
|
|
1664
1664
|
}
|
|
1665
1665
|
function useNavigationMenu(props) {
|
|
1666
1666
|
const ref = useRef();
|
|
1667
|
-
const [, rerender] =
|
|
1668
|
-
const user =
|
|
1667
|
+
const [, rerender] = yn();
|
|
1668
|
+
const user = J();
|
|
1669
1669
|
useEffect(() => {
|
|
1670
1670
|
var _a;
|
|
1671
1671
|
(_a = ref.current) === null || _a === void 0 ? void 0 : _a.addEventListener("sl-select", (e) => handleMenu(e));
|
|
@@ -1719,11 +1719,11 @@ NavigationMenu.style = sqmNavigationMenuCss;
|
|
|
1719
1719
|
|
|
1720
1720
|
function usePortalChangePassword(props) {
|
|
1721
1721
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
1722
|
-
const [request, { loading, errors, data }] =
|
|
1722
|
+
const [request, { loading, errors, data }] = Ue();
|
|
1723
1723
|
const [open, setOpen] = useState(false);
|
|
1724
1724
|
const [error, setError] = useState("");
|
|
1725
1725
|
const [success, setSuccess] = useState(false);
|
|
1726
|
-
const user =
|
|
1726
|
+
const user = J();
|
|
1727
1727
|
const submit = async (event) => {
|
|
1728
1728
|
var _a, _b;
|
|
1729
1729
|
setSuccess(false);
|
|
@@ -1965,7 +1965,7 @@ const PortalFooter = class {
|
|
|
1965
1965
|
};
|
|
1966
1966
|
|
|
1967
1967
|
function usePortalFrame(footerContent, headerContent) {
|
|
1968
|
-
const [, rerender] =
|
|
1968
|
+
const [, rerender] = yn();
|
|
1969
1969
|
return {
|
|
1970
1970
|
data: {
|
|
1971
1971
|
footer: footerContent,
|
|
@@ -2014,11 +2014,28 @@ function usePortalFrameDemo(footerContent, headerContent, props) {
|
|
|
2014
2014
|
}
|
|
2015
2015
|
|
|
2016
2016
|
function usePortalLogin(props) {
|
|
2017
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
2018
|
-
const [request, { loading, errors, data }] =
|
|
2017
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
2018
|
+
const [request, { loading, errors, data }] = je();
|
|
2019
|
+
const [loginWithGoogle, { loading: gLoading, errors: gErrors }] = hn();
|
|
2019
2020
|
const [error, setError] = useState("");
|
|
2020
|
-
const urlParams = new URLSearchParams(
|
|
2021
|
+
const urlParams = new URLSearchParams(jn.location.search);
|
|
2021
2022
|
const nextPageOverride = urlParams.get("nextPage");
|
|
2023
|
+
const googleSubmit = async (e) => {
|
|
2024
|
+
var _a, _b, _c;
|
|
2025
|
+
if (!((_a = e.detail) === null || _a === void 0 ? void 0 : _a.credential))
|
|
2026
|
+
return;
|
|
2027
|
+
const result = await loginWithGoogle({ idToken: e.detail.credential });
|
|
2028
|
+
if (result instanceof Error) {
|
|
2029
|
+
if ((result === null || result === void 0 ? void 0 : result.message) || ((_b = result === null || result === void 0 ? void 0 : result["response"]) === null || _b === void 0 ? void 0 : _b["error"]))
|
|
2030
|
+
setError(props.networkErrorMessage);
|
|
2031
|
+
return;
|
|
2032
|
+
}
|
|
2033
|
+
if ((_c = result.authenticateManagedIdentityWithGoogle) === null || _c === void 0 ? void 0 : _c.token) {
|
|
2034
|
+
urlParams.delete("nextPage");
|
|
2035
|
+
const url = sanitizeUrlPath(nextPageOverride || props.nextPage);
|
|
2036
|
+
jn.push(url.href);
|
|
2037
|
+
}
|
|
2038
|
+
};
|
|
2022
2039
|
const submit = async (event) => {
|
|
2023
2040
|
var _a, _b;
|
|
2024
2041
|
setError("");
|
|
@@ -2036,19 +2053,22 @@ function usePortalLogin(props) {
|
|
|
2036
2053
|
if ((_b = result.authenticateManagedIdentityWithEmailAndPassword) === null || _b === void 0 ? void 0 : _b.token) {
|
|
2037
2054
|
urlParams.delete("nextPage");
|
|
2038
2055
|
const url = sanitizeUrlPath(nextPageOverride || props.nextPage);
|
|
2039
|
-
|
|
2056
|
+
jn.push(url.href);
|
|
2040
2057
|
}
|
|
2041
2058
|
};
|
|
2042
2059
|
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) ||
|
|
2043
2060
|
error;
|
|
2061
|
+
const googleErrorMessage = ((_l = (_k = (_j = (_h = gErrors === null || gErrors === void 0 ? void 0 : gErrors.response) === null || _h === void 0 ? void 0 : _h.errors) === null || _j === void 0 ? void 0 : _j[0]) === null || _k === void 0 ? void 0 : _k.extensions) === null || _l === void 0 ? void 0 : _l.message) || ((_p = (_o = (_m = gErrors === null || gErrors === void 0 ? void 0 : gErrors.response) === null || _m === void 0 ? void 0 : _m.errors) === null || _o === void 0 ? void 0 : _o[0]) === null || _p === void 0 ? void 0 : _p.message) ||
|
|
2062
|
+
error;
|
|
2044
2063
|
return {
|
|
2045
2064
|
states: {
|
|
2046
|
-
loading,
|
|
2047
|
-
error: errorMessage,
|
|
2065
|
+
loading: loading || gLoading,
|
|
2066
|
+
error: errorMessage || googleErrorMessage,
|
|
2048
2067
|
registerPath: props.registerPath,
|
|
2049
2068
|
forgotPasswordPath: props.forgotPasswordPath,
|
|
2050
2069
|
},
|
|
2051
2070
|
callbacks: {
|
|
2071
|
+
googleSubmit,
|
|
2052
2072
|
submit,
|
|
2053
2073
|
},
|
|
2054
2074
|
};
|
|
@@ -2114,7 +2134,7 @@ const PortalLogin = class {
|
|
|
2114
2134
|
/**
|
|
2115
2135
|
* @undocumented
|
|
2116
2136
|
*/
|
|
2117
|
-
this.showGoogleLogin =
|
|
2137
|
+
this.showGoogleLogin = false;
|
|
2118
2138
|
h(this);
|
|
2119
2139
|
}
|
|
2120
2140
|
disconnectedCallback() { }
|
|
@@ -2122,7 +2142,6 @@ const PortalLogin = class {
|
|
|
2122
2142
|
const { states, callbacks } = isDemo()
|
|
2123
2143
|
? useLoginDemo(this)
|
|
2124
2144
|
: usePortalLogin(this);
|
|
2125
|
-
// AL: TODO styling cleanup
|
|
2126
2145
|
const styles = {
|
|
2127
2146
|
RegisterButton: {
|
|
2128
2147
|
"&::part(label)": {
|
|
@@ -2133,9 +2152,9 @@ const PortalLogin = class {
|
|
|
2133
2152
|
const sheet = createStyleSheet(styles);
|
|
2134
2153
|
const styleString = sheet.toString();
|
|
2135
2154
|
const content = {
|
|
2136
|
-
forgotPasswordButton: (h$1("slot", { name: "forgotPassword" }, h$1("a", { onClick: () =>
|
|
2137
|
-
googleButton: this.showGoogleLogin ? (h$1("sqm-google-sign-in", { onInitComplete:
|
|
2138
|
-
secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("style", null, styleString), this.showGoogleLogin ? (h$1("span", null, this.registerCTA, " ", h$1("sl-button", { type: "text", disabled: states.loading, onClick: () =>
|
|
2155
|
+
forgotPasswordButton: (h$1("slot", { name: "forgotPassword" }, h$1("a", { onClick: () => jn.push(states.forgotPasswordPath) }, this.forgotPasswordLabel))),
|
|
2156
|
+
googleButton: this.showGoogleLogin ? (h$1("sqm-google-sign-in", { onInitComplete: callbacks.googleSubmit })) : null,
|
|
2157
|
+
secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("style", null, styleString), this.showGoogleLogin ? (h$1("span", null, this.registerCTA, " ", h$1("sl-button", { size: "large", type: "text", disabled: states.loading, onClick: () => jn.push(states.registerPath), className: sheet.classes.RegisterButton }, this.registerLabel))) : (h$1("sl-button", { type: "text", disabled: states.loading, onClick: () => jn.push(states.registerPath) }, this.registerLabel)))),
|
|
2139
2158
|
emailLabel: this.emailLabel,
|
|
2140
2159
|
passwordLabel: this.passwordLabel,
|
|
2141
2160
|
submitLabel: this.submitLabel,
|
|
@@ -2154,6 +2173,9 @@ function useLoginDemo(props) {
|
|
|
2154
2173
|
showLoginForm: "manual",
|
|
2155
2174
|
},
|
|
2156
2175
|
callbacks: {
|
|
2176
|
+
googleSubmit: async () => {
|
|
2177
|
+
console.log("google submit");
|
|
2178
|
+
},
|
|
2157
2179
|
submit: async (_event) => {
|
|
2158
2180
|
console.log("submit");
|
|
2159
2181
|
},
|
|
@@ -2168,7 +2190,7 @@ function usePortalRegister(props) {
|
|
|
2168
2190
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
2169
2191
|
const formRef = useRef(null);
|
|
2170
2192
|
const { registrationFormState, setRegistrationFormState } = useRegistrationFormState({});
|
|
2171
|
-
const [request, { loading, errors, data }] =
|
|
2193
|
+
const [request, { loading, errors, data }] = Ve();
|
|
2172
2194
|
useEffect(() => {
|
|
2173
2195
|
if (!formRef.current)
|
|
2174
2196
|
return;
|
|
@@ -2241,7 +2263,7 @@ function usePortalRegister(props) {
|
|
|
2241
2263
|
validationErrors: {},
|
|
2242
2264
|
});
|
|
2243
2265
|
if ((_a = result.registerManagedIdentityWithEmailAndPassword) === null || _a === void 0 ? void 0 : _a.token) {
|
|
2244
|
-
|
|
2266
|
+
jn.push(props.nextPage);
|
|
2245
2267
|
}
|
|
2246
2268
|
}
|
|
2247
2269
|
catch (error) {
|
|
@@ -2415,7 +2437,7 @@ const PortalRegister = class {
|
|
|
2415
2437
|
: usePortalRegister(this);
|
|
2416
2438
|
const content = {
|
|
2417
2439
|
formData: h$1("slot", { name: "formData" }),
|
|
2418
|
-
secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("sl-button", { type: "text", disabled: states.loading, onClick: () =>
|
|
2440
|
+
secondaryButton: (h$1("slot", { name: "secondaryButton" }, h$1("sl-button", { type: "text", disabled: states.loading, onClick: () => jn.push(states.loginPath) }, this.loginLabel))),
|
|
2419
2441
|
terms: h$1("slot", { name: "terms" }),
|
|
2420
2442
|
emailLabel: this.emailLabel,
|
|
2421
2443
|
passwordLabel: this.passwordLabel,
|
|
@@ -2586,11 +2608,11 @@ const ProgramExplainerStep = class {
|
|
|
2586
2608
|
const debug = browser("sq:useProgramMenu");
|
|
2587
2609
|
const UPDATE_PROGRAM_EVENT = "sq:update-program-id";
|
|
2588
2610
|
function useProgramMenu(props) {
|
|
2589
|
-
const programId =
|
|
2590
|
-
const host =
|
|
2611
|
+
const programId = H();
|
|
2612
|
+
const host = _();
|
|
2591
2613
|
debug({ programId, props });
|
|
2592
2614
|
const ref = useRef();
|
|
2593
|
-
const [, rerender] =
|
|
2615
|
+
const [, rerender] = yn();
|
|
2594
2616
|
useEffect(() => {
|
|
2595
2617
|
var _a;
|
|
2596
2618
|
(_a = ref.current) === null || _a === void 0 ? void 0 : _a.addEventListener("sl-select", (e) => {
|
|
@@ -2768,9 +2790,9 @@ const GET_USER_DETAILS = dist.gql `
|
|
|
2768
2790
|
`;
|
|
2769
2791
|
function useReferralIframe(props) {
|
|
2770
2792
|
var _a;
|
|
2771
|
-
const programId =
|
|
2772
|
-
const user =
|
|
2773
|
-
const { data } =
|
|
2793
|
+
const programId = H();
|
|
2794
|
+
const user = J();
|
|
2795
|
+
const { data } = wn(GET_USER_DETAILS, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt) || !programId);
|
|
2774
2796
|
return {
|
|
2775
2797
|
states: {
|
|
2776
2798
|
content: props,
|
|
@@ -3495,9 +3517,9 @@ function useRewardExchangeList(props) {
|
|
|
3495
3517
|
});
|
|
3496
3518
|
const [open, setOpen] = useState(false);
|
|
3497
3519
|
const { selectedItem, selectedStep, redeemStage, amount, exchangeError } = exchangeState;
|
|
3498
|
-
const user =
|
|
3499
|
-
const [exchange, { data: exchangeResponse, loading: exchangeLoading, errors },] =
|
|
3500
|
-
const { data, loading, refetch, errors: queryError, } =
|
|
3520
|
+
const user = J();
|
|
3521
|
+
const [exchange, { data: exchangeResponse, loading: exchangeLoading, errors },] = $e(EXCHANGE);
|
|
3522
|
+
const { data, loading, refetch, errors: queryError, } = wn(GET_EXCHANGE_LIST, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
3501
3523
|
useEffect(() => {
|
|
3502
3524
|
var _a, _b;
|
|
3503
3525
|
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) {
|
|
@@ -3516,7 +3538,7 @@ function useRewardExchangeList(props) {
|
|
|
3516
3538
|
canvas.confetti || confetti.create(canvas, { resize: true });
|
|
3517
3539
|
canvas.confetti();
|
|
3518
3540
|
}, [canvasRef.current]);
|
|
3519
|
-
const { refresh } =
|
|
3541
|
+
const { refresh } = Qe();
|
|
3520
3542
|
async function exchangeReward() {
|
|
3521
3543
|
if (!selectedItem)
|
|
3522
3544
|
return;
|
|
@@ -3824,8 +3846,8 @@ function matchPath(pattern, page) {
|
|
|
3824
3846
|
return regexp.exec(page);
|
|
3825
3847
|
}
|
|
3826
3848
|
function useRouter() {
|
|
3827
|
-
const location =
|
|
3828
|
-
const host =
|
|
3849
|
+
const location = kn();
|
|
3850
|
+
const host = _();
|
|
3829
3851
|
const [slot, setSlot] = useState(undefined);
|
|
3830
3852
|
const [container, setContainer] = useState(undefined);
|
|
3831
3853
|
const page = location.pathname;
|
|
@@ -4086,11 +4108,11 @@ const WIDGET_ENGAGEMENT_EVENT$1 = dist.gql `
|
|
|
4086
4108
|
`;
|
|
4087
4109
|
function useShareCode(props) {
|
|
4088
4110
|
var _a, _b;
|
|
4089
|
-
const { programId =
|
|
4090
|
-
const user =
|
|
4091
|
-
const engagementMedium =
|
|
4092
|
-
const { data } =
|
|
4093
|
-
const [sendLoadEvent] =
|
|
4111
|
+
const { programId = H() } = props;
|
|
4112
|
+
const user = J();
|
|
4113
|
+
const engagementMedium = B();
|
|
4114
|
+
const { data } = wn(MessageLinkQuery, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
4115
|
+
const [sendLoadEvent] = $e(WIDGET_ENGAGEMENT_EVENT$1);
|
|
4094
4116
|
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 :
|
|
4095
4117
|
// Shown during loading
|
|
4096
4118
|
"...";
|
|
@@ -4289,10 +4311,10 @@ const SEND_EVENT = dist.gql `
|
|
|
4289
4311
|
}
|
|
4290
4312
|
`;
|
|
4291
4313
|
function useTaskCard(props) {
|
|
4292
|
-
const user =
|
|
4293
|
-
const locale =
|
|
4294
|
-
const [sendUserEvent, { data, loading: loadingEvent }] =
|
|
4295
|
-
const { refresh } =
|
|
4314
|
+
const user = J();
|
|
4315
|
+
const locale = L();
|
|
4316
|
+
const [sendUserEvent, { data, loading: loadingEvent }] = $e(SEND_EVENT);
|
|
4317
|
+
const { refresh } = Qe();
|
|
4296
4318
|
useEffect(() => {
|
|
4297
4319
|
if (data) {
|
|
4298
4320
|
refresh();
|
|
@@ -4613,8 +4635,8 @@ const GET_USER_NAME = dist.gql `
|
|
|
4613
4635
|
`;
|
|
4614
4636
|
function useUserName(props) {
|
|
4615
4637
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
4616
|
-
const user =
|
|
4617
|
-
const res =
|
|
4638
|
+
const user = J();
|
|
4639
|
+
const res = wn(GET_USER_NAME, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
4618
4640
|
const loading = res.loading;
|
|
4619
4641
|
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)
|
|
4620
4642
|
? `${(_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,9 +1,9 @@
|
|
|
1
|
-
import { r as registerInstance, h as h$1 } from './index-
|
|
2
|
-
import { n as h } from './stencil-hooks.module-
|
|
3
|
-
import { g as getEnvironmentSDK } from './index.module-
|
|
1
|
+
import { r as registerInstance, h as h$1 } from './index-91e7729f.js';
|
|
2
|
+
import { n as h } from './stencil-hooks.module-4bc38af4.js';
|
|
3
|
+
import { g as getEnvironmentSDK } from './index.module-a2989d3c.js';
|
|
4
4
|
import './JSS-67b5cff8.js';
|
|
5
5
|
import './mixins-83f90fa1.js';
|
|
6
|
-
import { C as CloseButtonView } from './sqm-close-button-view-
|
|
6
|
+
import { C as CloseButtonView } from './sqm-close-button-view-f9819751.js';
|
|
7
7
|
|
|
8
8
|
const CloseButton = class {
|
|
9
9
|
constructor(hostRef) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as registerInstance, h as h$1, c as Host } from './index-
|
|
2
|
-
import { b as browser, k as useState, i as d, f as useEffect, n as h } from './stencil-hooks.module-
|
|
3
|
-
import {
|
|
1
|
+
import { r as registerInstance, h as h$1, c as Host } from './index-91e7729f.js';
|
|
2
|
+
import { b as browser, k as useState, i as d, f as useEffect, n as h } from './stencil-hooks.module-4bc38af4.js';
|
|
3
|
+
import { _ } from './index.module-a2989d3c.js';
|
|
4
4
|
import { g as getProps } from './utils-334c1e34.js';
|
|
5
5
|
import { p as pathToRegexp } from './index-ffa26b43.js';
|
|
6
6
|
|
|
@@ -12,7 +12,7 @@ function matchPath(pattern, page) {
|
|
|
12
12
|
return regexp.exec(page);
|
|
13
13
|
}
|
|
14
14
|
function useContextRouter(props) {
|
|
15
|
-
const host =
|
|
15
|
+
const host = _();
|
|
16
16
|
const [slot, setSlot] = useState(undefined);
|
|
17
17
|
const [container, setContainer] = useState(undefined);
|
|
18
18
|
const context = props.contextName;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { h, r as registerInstance, c as Host } from './index-
|
|
2
|
-
import { n as h$1 } from './stencil-hooks.module-
|
|
3
|
-
import { i as intl } from './global-
|
|
4
|
-
import './index.module-
|
|
1
|
+
import { h, r as registerInstance, c as Host } from './index-91e7729f.js';
|
|
2
|
+
import { n as h$1 } from './stencil-hooks.module-4bc38af4.js';
|
|
3
|
+
import { i as intl } from './global-bedc4329.js';
|
|
4
|
+
import './index.module-a2989d3c.js';
|
|
5
5
|
import { g as getProps } from './utils-334c1e34.js';
|
|
6
6
|
import './JSS-67b5cff8.js';
|
|
7
|
-
import { P as PortalContainerView, a as PortalSectionView } from './sqm-portal-container-view-
|
|
7
|
+
import { P as PortalContainerView, a as PortalSectionView } from './sqm-portal-container-view-1683ae32.js';
|
|
8
8
|
|
|
9
9
|
function EmptyStateView(props) {
|
|
10
10
|
const { emptyStateHeader, emptyStateImage, emptyStateText, supportText, missingFeature = "", } = props;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, h as h$1 } from './index-
|
|
2
|
-
import { n as h } from './stencil-hooks.module-
|
|
1
|
+
import { r as registerInstance, h as h$1 } from './index-91e7729f.js';
|
|
2
|
+
import { n as h } from './stencil-hooks.module-4bc38af4.js';
|
|
3
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,6 +1,6 @@
|
|
|
1
|
-
import { r as registerInstance, e as createEvent, h as h$1 } from './index-
|
|
2
|
-
import { n as h, k as useState, f as useEffect } from './stencil-hooks.module-
|
|
3
|
-
import
|
|
1
|
+
import { r as registerInstance, e as createEvent, h as h$1 } from './index-91e7729f.js';
|
|
2
|
+
import { n as h, k as useState, f as useEffect } from './stencil-hooks.module-4bc38af4.js';
|
|
3
|
+
import './index.module-a2989d3c.js';
|
|
4
4
|
|
|
5
5
|
const GoogleSignIn = class {
|
|
6
6
|
constructor(hostRef) {
|
|
@@ -9,33 +9,58 @@ const GoogleSignIn = class {
|
|
|
9
9
|
h(this);
|
|
10
10
|
}
|
|
11
11
|
disconnectedCallback() { }
|
|
12
|
+
connectedCallback() {
|
|
13
|
+
const src = "https://accounts.google.com/gsi/client";
|
|
14
|
+
if (!document.head.querySelector(`script[src="${src}"]`)) {
|
|
15
|
+
const script = document.createElement("script");
|
|
16
|
+
script.src = "https://accounts.google.com/gsi/client";
|
|
17
|
+
script.async = true;
|
|
18
|
+
document.head.appendChild(script);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
12
21
|
render() {
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
if (sdk.type !== "SquatchPortal")
|
|
17
|
-
return;
|
|
18
|
-
if (!googleButtonDiv)
|
|
19
|
-
return;
|
|
20
|
-
const cb = (res) => {
|
|
21
|
-
this.initComplete.emit(res);
|
|
22
|
-
};
|
|
23
|
-
//@ts-expect-error
|
|
24
|
-
google.accounts.id.initialize({
|
|
25
|
-
//@ts-expect-error: link component-env/boilerplate for new types
|
|
26
|
-
client_id: sdk.env.googleClientId,
|
|
27
|
-
callback: cb,
|
|
28
|
-
});
|
|
29
|
-
//@ts-expect-error
|
|
30
|
-
google.accounts.id.renderButton(googleButtonDiv, {
|
|
31
|
-
theme: "outline",
|
|
32
|
-
size: "large",
|
|
33
|
-
text: this.text,
|
|
34
|
-
});
|
|
35
|
-
}, [googleButtonDiv]);
|
|
36
|
-
// TODO: Maybe a loading placeholder while initialising
|
|
37
|
-
return h$1("div", { ref: setGoogleButtonDiv });
|
|
22
|
+
const { setGoogleButtonDiv } = useDemoGoogleSignIn(this)
|
|
23
|
+
;
|
|
24
|
+
return (h$1("div", null, h$1("div", { ref: setGoogleButtonDiv })));
|
|
38
25
|
}
|
|
39
26
|
};
|
|
27
|
+
function useDemoGoogleSignIn(props) {
|
|
28
|
+
const [loaded, setLoaded] = useState(false);
|
|
29
|
+
const [googleButtonDiv, setGoogleButtonDiv] = useState(null);
|
|
30
|
+
useEffect(() => {
|
|
31
|
+
const cb = () => {
|
|
32
|
+
// @ts-expect-error
|
|
33
|
+
window.onGoogleLibraryLoad = null;
|
|
34
|
+
setLoaded(true);
|
|
35
|
+
};
|
|
36
|
+
// @ts-expect-error
|
|
37
|
+
if (window.google)
|
|
38
|
+
cb();
|
|
39
|
+
// @ts-expect-error
|
|
40
|
+
window.onGoogleLibraryLoad = cb;
|
|
41
|
+
}, []);
|
|
42
|
+
useEffect(() => {
|
|
43
|
+
if (!googleButtonDiv || !loaded)
|
|
44
|
+
return;
|
|
45
|
+
const cb = () => {
|
|
46
|
+
props.initComplete.emit({ credential: null });
|
|
47
|
+
};
|
|
48
|
+
// @ts-expect-error
|
|
49
|
+
google.accounts.id.initialize({
|
|
50
|
+
client_id: "PLACEHOLDER",
|
|
51
|
+
cb: () => { },
|
|
52
|
+
});
|
|
53
|
+
//@ts-expect-error
|
|
54
|
+
google.accounts.id.renderButton(googleButtonDiv, {
|
|
55
|
+
theme: "outline",
|
|
56
|
+
size: "large",
|
|
57
|
+
text: props.text,
|
|
58
|
+
click_listener: cb,
|
|
59
|
+
});
|
|
60
|
+
}, [googleButtonDiv, loaded]);
|
|
61
|
+
return {
|
|
62
|
+
setGoogleButtonDiv,
|
|
63
|
+
};
|
|
64
|
+
}
|
|
40
65
|
|
|
41
66
|
export { GoogleSignIn as sqm_google_sign_in };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { r as registerInstance, h as h$1, c as Host } from './index-
|
|
2
|
-
import { o as m, f as useEffect, n as h } from './stencil-hooks.module-
|
|
3
|
-
import {
|
|
1
|
+
import { r as registerInstance, h as h$1, c as Host } from './index-91e7729f.js';
|
|
2
|
+
import { o as m, f as useEffect, n as h } from './stencil-hooks.module-4bc38af4.js';
|
|
3
|
+
import { G, E as Ee, a as Q, P as Pe } from './index.module-a2989d3c.js';
|
|
4
4
|
|
|
5
5
|
async function useGraphQLClientProvider({ domain }) {
|
|
6
|
-
const token =
|
|
6
|
+
const token = G();
|
|
7
7
|
const appDomain = domain;
|
|
8
|
-
const tenantAlias =
|
|
8
|
+
const tenantAlias = Q();
|
|
9
9
|
// Memoization is shared. One client per domain, tenant and token (or null)
|
|
10
|
-
const managedIdentityClient =
|
|
11
|
-
const [, setGraphQLClient] = m(
|
|
10
|
+
const managedIdentityClient = Ee(appDomain, tenantAlias, token);
|
|
11
|
+
const [, setGraphQLClient] = m(Pe, managedIdentityClient);
|
|
12
12
|
useEffect(() => {
|
|
13
13
|
setGraphQLClient(managedIdentityClient);
|
|
14
14
|
}, [managedIdentityClient]);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, h as h$1, c as Host } from './index-
|
|
2
|
-
import { n as h } from './stencil-hooks.module-
|
|
1
|
+
import { r as registerInstance, h as h$1, c as Host } from './index-91e7729f.js';
|
|
2
|
+
import { n as h } from './stencil-hooks.module-4bc38af4.js';
|
|
3
3
|
|
|
4
4
|
const HeroImage = class {
|
|
5
5
|
constructor(hostRef) {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { r as registerInstance, h as h$1 } from './index-
|
|
2
|
-
import { n as h } from './stencil-hooks.module-
|
|
3
|
-
import { i as isDemo, b as setUserIdentity } from './index.module-
|
|
1
|
+
import { r as registerInstance, h as h$1 } from './index-91e7729f.js';
|
|
2
|
+
import { n as h } from './stencil-hooks.module-4bc38af4.js';
|
|
3
|
+
import { i as isDemo, b as setUserIdentity } from './index.module-a2989d3c.js';
|
|
4
4
|
import './jsonpointer-388a7082.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
6
|
import './JSS-67b5cff8.js';
|
|
7
7
|
import './mixins-83f90fa1.js';
|
|
8
|
-
import { E as EmailRegistrationView } from './email-registration-view-
|
|
9
|
-
import './useRegistrationFormState-
|
|
10
|
-
import { u as useInstantAccessRegistration } from './useInstantAccessRegistration-
|
|
8
|
+
import { E as EmailRegistrationView } from './email-registration-view-a7818cf2.js';
|
|
9
|
+
import './useRegistrationFormState-01cdd8c7.js';
|
|
10
|
+
import { u as useInstantAccessRegistration } from './useInstantAccessRegistration-7255b0ca.js';
|
|
11
11
|
|
|
12
12
|
const InstantAccessRegistration = class {
|
|
13
13
|
constructor(hostRef) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { h } from './index-
|
|
2
|
-
import { i as intl } from './global-
|
|
1
|
+
import { h } from './index-91e7729f.js';
|
|
2
|
+
import { i as intl } from './global-bedc4329.js';
|
|
3
3
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
4
4
|
|
|
5
5
|
const INDIRECT_TAX_PROVINCES = [
|