@saasquatch/mint-components 1.12.1-7 → 1.13.0-1
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-fae7ab2c.js → ShadowViewAddon-c195102f.js} +135 -86
- package/dist/cjs/{copy-text-view-43e8349f.js → copy-text-view-f7a88b15.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-0cb2907a.js} +3 -3
- package/dist/cjs/{index-3cf5ef3d.js → index-a29c60ef.js} +10 -0
- package/dist/cjs/{index.module-ccf9bd9c.js → index.module-3ae0c462.js} +19 -56
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/{luxon-14ae1f8a.js → luxon-2926d85f.js} +1 -1
- package/dist/cjs/mint-components.cjs.js +5 -5
- 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-5bfdb0d3.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_37.cjs.entry.js → sqm-big-stat_38.cjs.entry.js} +115 -66
- 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 +90 -27
- 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-1c270db0.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-9691839f.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-758f11cb.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 +16 -24
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +4 -4
- package/dist/cjs/{sqm-portal-profile-view-f4489585.js → sqm-portal-profile-view-b944ddba.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-0502824e.js → sqm-portal-registration-form-view-e947a5b3.js} +3 -4
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +8 -15
- 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 +80 -68
- 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-4e04d4a0.js} +3 -3
- package/dist/cjs/{useInstantAccessRegistration-7d91867a.js → useInstantAccessRegistration-b732990f.js} +4 -4
- package/dist/cjs/{usePortalRegistrationForm-16151c0c.js → usePortalRegistrationForm-99ec3cc2.js} +9 -8
- package/dist/cjs/{useReferralTable-6b4920f9.js → useReferralTable-56d6576f.js} +11 -11
- package/dist/cjs/useRegistrationFormState-2a738647.js +27 -0
- package/dist/cjs/{utilities-27e9535b.js → utilities-7da4d59a.js} +2 -2
- package/dist/collection/components/sqm-google-sign-in/sqm-google-sign-in.js +55 -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 +15 -1
- package/dist/collection/components/sqm-portal-google-registration-form/sqm-portal-google-registration-form.js +3 -31
- package/dist/collection/components/sqm-portal-google-registration-form/usePortalGoogleRegistrationForm.js +7 -8
- package/dist/collection/components/sqm-portal-login/PortalLogin.stories.js +1 -1
- package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +3 -1
- package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form-view.js +1 -2
- package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form.js +1 -29
- package/dist/collection/components/sqm-portal-registration-form/usePortalRegistrationForm.js +2 -1
- package/dist/collection/components/sqm-portal-registration-form/useRegistrationFormState.js +13 -0
- package/dist/esm/{GenericTableView-6aa9fac9.js → GenericTableView-7b9087af.js} +1 -1
- package/dist/esm/{ShadowViewAddon-f91cd444.js → ShadowViewAddon-fb9d29e1.js} +135 -87
- package/dist/esm/{copy-text-view-61eebf5d.js → copy-text-view-d79ce112.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-29e5c68b.js} +3 -3
- package/dist/esm/{index-60f16d0a.js → index-91e7729f.js} +10 -0
- package/dist/esm/{index.module-f3d96fbb.js → index.module-bc8dd3be.js} +4 -41
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{luxon-9b1f9912.js → luxon-8d51c92b.js} +1 -1
- package/dist/esm/mint-components.js +5 -5
- 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-2a185c6d.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_37.entry.js → sqm-big-stat_38.entry.js} +115 -67
- 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 +90 -27
- 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-79fd00be.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-700e2c99.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-e2f6cd82.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 +16 -24
- package/dist/esm/sqm-portal-logout.entry.js +4 -4
- package/dist/esm/{sqm-portal-profile-view-2997f902.js → sqm-portal-profile-view-a52abf17.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-22ea3db3.js → sqm-portal-registration-form-view-90e2bfd5.js} +3 -4
- package/dist/esm/sqm-portal-registration-form.entry.js +8 -15
- 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 +78 -66
- 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-9d6edd4a.js} +3 -3
- package/dist/esm/{useInstantAccessRegistration-c5d80a2e.js → useInstantAccessRegistration-031d4454.js} +4 -4
- package/dist/esm/{usePortalRegistrationForm-8b093aa2.js → usePortalRegistrationForm-475d3959.js} +9 -8
- package/dist/esm/{useReferralTable-fbcfc2a7.js → useReferralTable-ccbc4934.js} +11 -11
- package/dist/esm/useRegistrationFormState-34651ee4.js +23 -0
- package/dist/esm/{utilities-33996ce7.js → utilities-fe487ceb.js} +2 -2
- package/dist/esm-es5/{GenericTableView-6aa9fac9.js → GenericTableView-7b9087af.js} +1 -1
- package/dist/esm-es5/ShadowViewAddon-fb9d29e1.js +1 -0
- package/dist/esm-es5/copy-text-view-d79ce112.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-29e5c68b.js} +2 -2
- package/dist/esm-es5/{index-60f16d0a.js → index-91e7729f.js} +1 -1
- package/dist/esm-es5/index.module-bc8dd3be.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-2a185c6d.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 -0
- 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-79fd00be.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-700e2c99.js +1 -0
- 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-e2f6cd82.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-a52abf17.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-90e2bfd5.js +1 -0
- 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-d1d3fedd.js → useChildElements-9d6edd4a.js} +1 -1
- package/dist/esm-es5/{useInstantAccessRegistration-c5d80a2e.js → useInstantAccessRegistration-031d4454.js} +1 -1
- package/dist/esm-es5/usePortalRegistrationForm-475d3959.js +1 -0
- package/dist/esm-es5/{useReferralTable-fbcfc2a7.js → useReferralTable-ccbc4934.js} +1 -1
- package/dist/esm-es5/useRegistrationFormState-34651ee4.js +1 -0
- package/dist/esm-es5/{utilities-33996ce7.js → utilities-fe487ceb.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-053746b0.entry.js +1 -0
- package/dist/mint-components/p-05f952b4.js +1 -0
- package/dist/mint-components/{p-a67e8ef4.system.js → p-076ef8f4.system.js} +1 -1
- package/dist/mint-components/p-08bd17ec.system.js +1 -0
- package/dist/mint-components/{p-5b6cf6cd.system.js → p-0ae73dd2.system.js} +1 -1
- package/dist/mint-components/{p-0954e95d.entry.js → p-0feca7a7.entry.js} +2 -2
- package/dist/mint-components/{p-e605fe66.entry.js → p-102ecd33.entry.js} +2 -2
- package/dist/mint-components/{p-b7edef12.system.entry.js → p-120495ed.system.entry.js} +1 -1
- package/dist/mint-components/p-127e66c2.system.js +1 -0
- package/dist/mint-components/p-13c1fe04.js +1 -0
- package/dist/mint-components/{p-1ab3f305.system.js → p-14a65f29.system.js} +1 -1
- package/dist/mint-components/p-1544a0f1.system.entry.js +1 -0
- package/dist/mint-components/{p-f8450975.system.entry.js → p-1713fcc2.system.entry.js} +1 -1
- package/dist/mint-components/{p-71d6b762.js → p-18fdfaff.js} +1 -1
- package/dist/mint-components/{p-3b923175.system.entry.js → p-19bc3406.system.entry.js} +1 -1
- package/dist/mint-components/p-1a99fc5a.entry.js +1 -0
- package/dist/mint-components/{p-0aa76ad0.system.entry.js → p-1b3ab15a.system.entry.js} +1 -1
- package/dist/mint-components/{p-7141d536.system.entry.js → p-1d3d2a7b.system.entry.js} +1 -1
- package/dist/mint-components/p-1f0c1adb.entry.js +1 -0
- package/dist/mint-components/{p-88197cfd.js → p-229f797b.js} +1 -1
- package/dist/mint-components/{p-e56447fd.js → p-24db5c70.js} +1 -1
- package/dist/mint-components/{p-b402df18.js → p-2564c732.js} +1 -1
- package/dist/mint-components/{p-5309ebf3.js → p-266a8b4d.js} +1 -1
- package/dist/mint-components/{p-eac81420.entry.js → p-269c7fcf.entry.js} +1 -1
- package/dist/mint-components/{p-863340dc.entry.js → p-28353152.entry.js} +1 -1
- package/dist/mint-components/{p-75956e50.entry.js → p-2bbff88f.entry.js} +1 -1
- package/dist/mint-components/{p-3dc9a448.entry.js → p-2c01a479.entry.js} +1 -1
- package/dist/mint-components/{p-c1ede4f5.system.js → p-2dca9e1a.system.js} +1 -1
- package/dist/mint-components/{p-d47569d0.js → p-2e4a0990.js} +1 -1
- package/dist/mint-components/{p-aa5446c1.js → p-35b475bf.js} +1 -1
- package/dist/mint-components/p-376eeb6c.system.entry.js +1 -0
- package/dist/mint-components/{p-c4c922fc.system.entry.js → p-37bb8a23.system.entry.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-682450a8.js → p-3aa09019.js} +2 -2
- package/dist/mint-components/{p-0725d1a7.system.entry.js → p-3d5530b7.system.entry.js} +1 -1
- package/dist/mint-components/p-3dc91b3e.system.js +1 -0
- package/dist/mint-components/{p-823f61da.entry.js → p-3f1d9ec1.entry.js} +1 -1
- package/dist/mint-components/p-3f35e499.entry.js +13 -0
- package/dist/mint-components/p-3f633736.entry.js +1 -0
- package/dist/mint-components/p-3f6e0197.system.entry.js +1 -0
- package/dist/mint-components/{p-58bcece7.system.js → p-48135f99.system.js} +1 -1
- package/dist/mint-components/{p-1d58a8ff.entry.js → p-482729cf.entry.js} +1 -1
- package/dist/mint-components/{p-697d6e54.system.js → p-492b70db.system.js} +1 -1
- package/dist/mint-components/{p-c33ccfb7.entry.js → p-4b6dc0e5.entry.js} +1 -1
- package/dist/mint-components/{p-ef7b966e.system.js → p-4e138f8c.system.js} +1 -1
- package/dist/mint-components/p-4e5af50c.js +1 -0
- package/dist/mint-components/{p-f7175fc2.system.entry.js → p-502f1135.system.entry.js} +1 -1
- package/dist/mint-components/{p-3c00282b.entry.js → p-51f712d3.entry.js} +1 -1
- package/dist/mint-components/p-533ccb5b.entry.js +1 -0
- package/dist/mint-components/p-548df223.system.js +1 -0
- package/dist/mint-components/{p-38b8050c.system.entry.js → p-55885404.system.entry.js} +1 -1
- package/dist/mint-components/{p-e864a155.entry.js → p-57bb1a14.entry.js} +1 -1
- package/dist/mint-components/p-5b2b106c.system.entry.js +1 -0
- package/dist/mint-components/{p-12d27b9b.js → p-5bedb58c.js} +1 -1
- package/dist/mint-components/p-5cdd1ac8.system.js +1 -0
- package/dist/mint-components/{p-e64c49dd.system.js → p-6055eb4c.system.js} +1 -1
- package/dist/mint-components/p-625141de.system.entry.js +1 -0
- package/dist/mint-components/{p-b33381a7.js → p-626e9e84.js} +1 -1
- package/dist/mint-components/p-62f6627d.js +1 -0
- package/dist/mint-components/{p-4b55e96b.entry.js → p-6487e6bf.entry.js} +16 -16
- package/dist/mint-components/{p-b3499953.entry.js → p-65ba9e94.entry.js} +1 -1
- package/dist/mint-components/p-660ac5ad.js +13 -0
- package/dist/mint-components/{p-5c714029.js → p-67269167.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-7d2d59ec.system.entry.js → p-6e209200.system.entry.js} +1 -1
- package/dist/mint-components/{p-a631db44.system.js → p-6f78f2f4.system.js} +1 -1
- package/dist/mint-components/{p-9d078f60.js → p-726a9924.js} +1 -1
- package/dist/mint-components/p-74d2611a.entry.js +1 -0
- package/dist/mint-components/{p-adc14a77.system.entry.js → p-7503adda.system.entry.js} +1 -1
- package/dist/mint-components/{p-500a2bff.entry.js → p-78f3e403.entry.js} +2 -2
- package/dist/mint-components/{p-9716a83b.js → p-7a9290ba.js} +1 -1
- package/dist/mint-components/p-7bdac1cb.system.entry.js +1 -0
- package/dist/mint-components/p-7c83f973.system.entry.js +1 -0
- package/dist/mint-components/{p-7bc9308c.system.entry.js → p-7dabdca6.system.entry.js} +1 -1
- package/dist/mint-components/{p-273ad080.system.entry.js → p-7dec07a0.system.entry.js} +1 -1
- package/dist/mint-components/{p-b043693d.system.entry.js → p-8280da48.system.entry.js} +1 -1
- package/dist/mint-components/{p-10b4282b.entry.js → p-82b4d2c5.entry.js} +2 -2
- 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-84add09b.system.js +1 -0
- package/dist/mint-components/p-84d54a69.entry.js +1 -0
- package/dist/mint-components/{p-6a95e6b7.js → p-859954f7.js} +2 -2
- package/dist/mint-components/{p-2dff4fb2.js → p-92816d1f.js} +1 -1
- 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-ff19bf56.system.js → p-99ad7d56.system.js} +1 -1
- package/dist/mint-components/{p-bc305236.system.entry.js → p-9b90dae2.system.entry.js} +1 -1
- package/dist/mint-components/{p-22110634.js → p-a12351b8.js} +1 -1
- package/dist/mint-components/{p-7027b14d.js → p-a1b09b0d.js} +1 -1
- package/dist/mint-components/p-a37bc542.system.entry.js +1 -0
- package/dist/mint-components/{p-dacefee2.entry.js → p-a3b972e6.entry.js} +1 -1
- package/dist/mint-components/p-a496f781.system.js +1 -0
- package/dist/mint-components/p-a8d088cd.system.js +1 -0
- package/dist/mint-components/{p-9fff2218.js → p-a9f4ddb1.js} +1 -1
- package/dist/mint-components/p-af6cc283.system.entry.js +1 -0
- package/dist/mint-components/p-b0b220a2.js +1 -0
- package/dist/mint-components/p-b207beeb.entry.js +1 -0
- package/dist/mint-components/p-b2b447dc.system.js +1 -0
- package/dist/mint-components/p-b2fe992e.system.entry.js +1 -0
- package/dist/mint-components/p-b39f7ba2.system.entry.js +1 -0
- package/dist/mint-components/{p-aeea67a3.entry.js → p-b54f56c0.entry.js} +1 -1
- package/dist/mint-components/{p-5057380a.system.js → p-b75bb6e3.system.js} +1 -1
- package/dist/mint-components/{p-f81cc2cd.entry.js → p-bcbaf408.entry.js} +1 -1
- package/dist/mint-components/{p-8fb2af73.system.js → p-bfc7cfc0.system.js} +1 -1
- package/dist/mint-components/p-c2f1fb15.system.entry.js +1 -0
- package/dist/mint-components/{p-14dc52dc.system.entry.js → p-c43b22fc.system.entry.js} +1 -1
- package/dist/mint-components/p-c60f1c6d.entry.js +1 -0
- package/dist/mint-components/p-c6a8c075.system.js +1 -0
- package/dist/mint-components/{p-b11f43ee.js → p-c9f1dde7.js} +1 -1
- package/dist/mint-components/{p-0e89ac7f.system.entry.js → p-cabcb677.system.entry.js} +1 -1
- package/dist/mint-components/p-cb008ff3.js +1 -0
- package/dist/mint-components/{p-b619a5e0.js → p-cd651f81.js} +1 -1
- package/dist/mint-components/{p-9d954277.system.entry.js → p-ce72ea82.system.entry.js} +1 -1
- package/dist/mint-components/p-d1a32dab.entry.js +1 -0
- package/dist/mint-components/{p-3dbcd42a.system.entry.js → p-d3aa845e.system.entry.js} +1 -1
- package/dist/mint-components/{p-bd5706ba.entry.js → p-d419afab.entry.js} +1 -1
- package/dist/mint-components/{p-9c7a031a.js → p-d87ce3d2.js} +1 -1
- package/dist/mint-components/{p-44c4a54f.system.entry.js → p-dc383779.system.entry.js} +1 -1
- package/dist/mint-components/{p-e0c608e4.system.js → p-e07bc6c4.system.js} +1 -1
- package/dist/mint-components/{p-bebe70b4.js → p-e2639e1f.js} +3 -3
- package/dist/mint-components/p-e44a0794.system.js +1 -0
- package/dist/mint-components/p-e5996773.entry.js +1 -0
- package/dist/mint-components/{p-070fa30d.entry.js → p-e7460ad7.entry.js} +1 -1
- package/dist/mint-components/{p-15b2063c.system.js → p-ea58b97c.system.js} +1 -1
- package/dist/mint-components/p-eaa75e41.system.entry.js +1 -0
- package/dist/mint-components/{p-d59c19ba.entry.js → p-ebf8b913.entry.js} +2 -2
- package/dist/mint-components/{p-5fb1bcb5.entry.js → p-ec4dff25.entry.js} +1 -1
- package/dist/mint-components/{p-f8b41805.system.js → p-edafa368.system.js} +1 -1
- package/dist/mint-components/{p-c2bc302f.system.entry.js → p-f07ce541.system.entry.js} +1 -1
- package/dist/mint-components/{p-1739dfb8.entry.js → p-f110c14d.entry.js} +1 -1
- package/dist/mint-components/p-f26aedcd.system.js +1 -0
- package/dist/mint-components/{p-70eafbbd.system.entry.js → p-f2d931b4.system.entry.js} +1 -1
- package/dist/mint-components/{p-6ac9d2cf.entry.js → p-f34449e7.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-683cfd07.js → p-f8d3bb77.js} +1 -1
- package/dist/mint-components/p-f940190a.js +1 -0
- package/dist/mint-components/{p-0fd20804.system.entry.js → p-f9881658.system.entry.js} +1 -1
- package/dist/mint-components/{p-8799b28f.entry.js → p-faba3198.entry.js} +1 -1
- package/dist/mint-components/p-fee4859d.system.js +1 -0
- package/dist/types/components/sqm-google-sign-in/sqm-google-sign-in.d.ts +4 -0
- package/dist/types/components/sqm-google-sign-in/useGoogleSignIn.d.ts +4 -0
- package/dist/types/components/sqm-portal-google-registration-form/sqm-portal-google-registration-form.d.ts +0 -6
- package/dist/types/components/sqm-portal-registration-form/sqm-portal-registration-form-view.d.ts +0 -1
- package/dist/types/components/sqm-portal-registration-form/sqm-portal-registration-form.d.ts +0 -6
- package/dist/types/components/sqm-portal-registration-form/usePortalRegistrationForm.d.ts +0 -1
- package/dist/types/components/sqm-portal-registration-form/useRegistrationFormState.d.ts +2 -0
- package/dist/types/components.d.ts +6 -20
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +3 -1
- package/dist/cjs/sqm-name-fields-view-57c734bf.js +0 -55
- package/dist/cjs/sqm-name-fields.cjs.entry.js +0 -59
- package/dist/cjs/useRegistrationFormState-5911d016.js +0 -14
- package/dist/esm/sqm-name-fields-view-ec19e9e8.js +0 -53
- package/dist/esm/sqm-name-fields.entry.js +0 -55
- package/dist/esm/useRegistrationFormState-33f9cb24.js +0 -11
- package/dist/esm-es5/ShadowViewAddon-f91cd444.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-big-stat_37.entry.js +0 -1
- package/dist/esm-es5/sqm-leaderboard-rank-view-7cd0de83.js +0 -1
- package/dist/esm-es5/sqm-name-fields-view-ec19e9e8.js +0 -1
- package/dist/esm-es5/sqm-name-fields.entry.js +0 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-a4e4edb6.js +0 -1
- package/dist/esm-es5/sqm-portal-registration-form-view-22ea3db3.js +0 -1
- package/dist/esm-es5/usePortalRegistrationForm-8b093aa2.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-18ecdc82.js +0 -13
- package/dist/mint-components/p-2295cf05.system.js +0 -1
- package/dist/mint-components/p-27407a2c.js +0 -1
- package/dist/mint-components/p-27ba7f25.system.entry.js +0 -1
- package/dist/mint-components/p-27f281f4.system.js +0 -1
- package/dist/mint-components/p-36e7a6f9.entry.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-455a3f54.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-5d09a6a3.entry.js +0 -1
- package/dist/mint-components/p-5e61bdfd.entry.js +0 -1
- package/dist/mint-components/p-6465b781.js +0 -1
- package/dist/mint-components/p-6673a331.system.js +0 -1
- 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-93124bdb.entry.js +0 -1
- package/dist/mint-components/p-944918d9.entry.js +0 -1
- package/dist/mint-components/p-966eed0f.system.js +0 -1
- package/dist/mint-components/p-989fdd2e.system.js +0 -1
- package/dist/mint-components/p-9dd86f9c.system.js +0 -1
- package/dist/mint-components/p-a1cb66c0.system.js +0 -1
- package/dist/mint-components/p-a2a3d9dc.entry.js +0 -1
- package/dist/mint-components/p-a7ac4fff.system.entry.js +0 -1
- package/dist/mint-components/p-a9166b6a.entry.js +0 -1
- package/dist/mint-components/p-b5a2df3f.system.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-b7bd7ff0.js +0 -1
- package/dist/mint-components/p-c56b47e5.system.js +0 -1
- package/dist/mint-components/p-c5dd12cf.entry.js +0 -1
- package/dist/mint-components/p-cd39acd0.system.entry.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-df387a02.system.entry.js +0 -1
- package/dist/mint-components/p-e10be944.entry.js +0 -1
- package/dist/mint-components/p-ec867cad.system.entry.js +0 -1
- package/dist/mint-components/p-ec9c8ced.system.js +0 -1
- package/dist/mint-components/p-f4b8a8d5.system.entry.js +0 -1
- package/dist/mint-components/p-fde23de1.entry.js +0 -13
package/dist/collection/components/sqm-portal-registration-form/usePortalRegistrationForm.js
CHANGED
|
@@ -100,9 +100,11 @@ export function usePortalRegistrationForm(props) {
|
|
|
100
100
|
delete formData.password;
|
|
101
101
|
delete formData.confirmPassword;
|
|
102
102
|
const redirectPath = props.redirectPath;
|
|
103
|
+
const _googleOAuthIdToken = registrationFormState._googleOAuthIdToken;
|
|
103
104
|
const variables = {
|
|
104
105
|
key: props.formKey,
|
|
105
106
|
formData: {
|
|
107
|
+
...(_googleOAuthIdToken ? { _googleOAuthIdToken } : {}),
|
|
106
108
|
locale,
|
|
107
109
|
email,
|
|
108
110
|
password,
|
|
@@ -195,7 +197,6 @@ export function usePortalRegistrationForm(props) {
|
|
|
195
197
|
registrationFormState,
|
|
196
198
|
confirmPassword: props.confirmPassword,
|
|
197
199
|
hideInputs: props.hideInputs,
|
|
198
|
-
showNameFields: props.showNameFields,
|
|
199
200
|
loginPath: props.loginPath,
|
|
200
201
|
enablePasswordValidation: !props.disablePasswordValidation,
|
|
201
202
|
},
|
|
@@ -1,8 +1,21 @@
|
|
|
1
1
|
import { useHost } from "@saasquatch/component-boilerplate";
|
|
2
2
|
import { useDomContextState } from "@saasquatch/dom-context-hooks";
|
|
3
|
+
import { useDomContext } from "@saasquatch/stencil-hooks";
|
|
3
4
|
export const REGISTRATION_FORM_STATE_CONTEXT = "sq:registration-form-state";
|
|
5
|
+
const REGISTRATION_FORM_STATE_CONTEXT_INTERNAL = "sq:registration-form-state-internal";
|
|
6
|
+
export function useRegistrationForm() {
|
|
7
|
+
const parent = useDomContext(REGISTRATION_FORM_STATE_CONTEXT_INTERNAL);
|
|
8
|
+
const parentValue = useDomContext(REGISTRATION_FORM_STATE_CONTEXT);
|
|
9
|
+
if (!parent)
|
|
10
|
+
return [undefined, undefined];
|
|
11
|
+
return [parentValue, parent[1]];
|
|
12
|
+
}
|
|
4
13
|
export function useRegistrationFormState(formState) {
|
|
5
14
|
const host = useHost();
|
|
6
15
|
const [registrationFormState, setRegistrationFormState] = useDomContextState(host, REGISTRATION_FORM_STATE_CONTEXT, formState);
|
|
16
|
+
useDomContextState(host, REGISTRATION_FORM_STATE_CONTEXT_INTERNAL, [
|
|
17
|
+
registrationFormState,
|
|
18
|
+
setRegistrationFormState,
|
|
19
|
+
]);
|
|
7
20
|
return { registrationFormState, setRegistrationFormState };
|
|
8
21
|
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { h, c as Host, d as getAssetPath, g as getElement } from './index-
|
|
2
|
-
import { k as useState, b as browser, u as useMemo } from './stencil-hooks.module-
|
|
3
|
-
import { i as intl } from './global-
|
|
4
|
-
import { d as dist,
|
|
1
|
+
import { h, c as Host, d as getAssetPath, g as getElement } from './index-91e7729f.js';
|
|
2
|
+
import { k as useState, b as browser, u as useMemo } from './stencil-hooks.module-4bc38af4.js';
|
|
3
|
+
import { i as intl } from './global-29e5c68b.js';
|
|
4
|
+
import { d as dist, H, Q, I as In, y as yn, $ as $e, B, a as getEnvironmentSDK, L } from './index.module-bc8dd3be.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
6
|
import { l as luxonLocale } from './utils-334c1e34.js';
|
|
7
7
|
import { c as createStyleSheet, j as jss, a as create } from './JSS-67b5cff8.js';
|
|
8
|
-
import { a as REFERRAL_CODES_NAMESPACE, S as SET_CODE_COPIED, C as CopyTextView } from './copy-text-view-
|
|
8
|
+
import { a as REFERRAL_CODES_NAMESPACE, S as SET_CODE_COPIED, C as CopyTextView } from './copy-text-view-d79ce112.js';
|
|
9
9
|
import { H as HostBlock, A as AuthWrapper, a as AuthColumn, b as AuthButtonsContainer, E as ErrorStyles } from './mixins-83f90fa1.js';
|
|
10
|
-
import { u as useChildElements } from './useChildElements-
|
|
11
|
-
import { l as luxon } from './luxon-
|
|
12
|
-
import { T as TextSpanView } from './sqm-text-span-view-
|
|
10
|
+
import { u as useChildElements } from './useChildElements-9d6edd4a.js';
|
|
11
|
+
import { l as luxon } from './luxon-8d51c92b.js';
|
|
12
|
+
import { T as TextSpanView } from './sqm-text-span-view-ca32495e.js';
|
|
13
13
|
import { p as pathToRegexp } from './index-ffa26b43.js';
|
|
14
|
-
import { a as isValidColor, b as isMobile } from './utilities-
|
|
15
|
-
import { a as PortalSectionView, P as PortalContainerView } from './sqm-portal-container-view-
|
|
14
|
+
import { a as isValidColor, b as isMobile } from './utilities-fe487ceb.js';
|
|
15
|
+
import { a as PortalSectionView, P as PortalContainerView } from './sqm-portal-container-view-1683ae32.js';
|
|
16
16
|
|
|
17
17
|
const medium = {
|
|
18
18
|
facebook: { color: "#1877f2", text: "#fff", icon: "facebook" },
|
|
@@ -373,13 +373,13 @@ const WIDGET_ENGAGEMENT_EVENT = dist.gql `
|
|
|
373
373
|
`;
|
|
374
374
|
function useShareLink(props) {
|
|
375
375
|
var _a, _b;
|
|
376
|
-
const { programId =
|
|
377
|
-
const user =
|
|
378
|
-
const engagementMedium =
|
|
379
|
-
const contextData =
|
|
380
|
-
const { data } =
|
|
381
|
-
const [sendLoadEvent] =
|
|
382
|
-
const [setCopied, copiedRes] =
|
|
376
|
+
const { programId = H() } = props;
|
|
377
|
+
const user = Q();
|
|
378
|
+
const engagementMedium = B();
|
|
379
|
+
const contextData = In(REFERRAL_CODES_NAMESPACE);
|
|
380
|
+
const { data } = yn(MessageLinkQuery, { programId, engagementMedium }, !(user === null || user === void 0 ? void 0 : user.jwt) || !!props.linkOverride || (contextData === null || contextData === void 0 ? void 0 : contextData.shareLink) !== undefined);
|
|
381
|
+
const [sendLoadEvent] = $e(WIDGET_ENGAGEMENT_EVENT);
|
|
382
|
+
const [setCopied, copiedRes] = $e(SET_CODE_COPIED);
|
|
383
383
|
const copyString = (_b = ((contextData === null || contextData === void 0 ? void 0 : contextData.shareLink) || ((_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.shareLink))) !== null && _b !== void 0 ? _b :
|
|
384
384
|
// Shown during loading
|
|
385
385
|
"...";
|
|
@@ -464,19 +464,19 @@ function GenericShare(messageLink, errorText) {
|
|
|
464
464
|
function useShareButton(props) {
|
|
465
465
|
var _a, _b;
|
|
466
466
|
const { sharetitle, sharetext, medium } = props;
|
|
467
|
-
const programId = props.programId ? props.programId :
|
|
468
|
-
const user =
|
|
469
|
-
const engagementMedium =
|
|
467
|
+
const programId = props.programId ? props.programId : H();
|
|
468
|
+
const user = Q();
|
|
469
|
+
const engagementMedium = B();
|
|
470
470
|
const variables = {
|
|
471
471
|
engagementMedium,
|
|
472
472
|
programId: programId,
|
|
473
473
|
shareMedium: medium.toUpperCase(),
|
|
474
474
|
};
|
|
475
|
-
const contextData =
|
|
475
|
+
const contextData = In(REFERRAL_CODES_NAMESPACE);
|
|
476
476
|
const overrideData = contextData === null || contextData === void 0 ? void 0 : contextData[medium];
|
|
477
477
|
// only queries if a programId is available
|
|
478
|
-
const res =
|
|
479
|
-
const [setCopied, copiedRes] =
|
|
478
|
+
const res = yn(MessageLinkQuery$1, variables, !(user === null || user === void 0 ? void 0 : user.jwt) || !programId || overrideData !== undefined);
|
|
479
|
+
const [setCopied, copiedRes] = $e(SET_CODE_COPIED);
|
|
480
480
|
const directLink = (overrideData === null || overrideData === void 0 ? void 0 : overrideData.shareLink) || ((_b = (_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.shareLink);
|
|
481
481
|
const environment = getEnvironmentSDK();
|
|
482
482
|
const hide = (medium.toLocaleUpperCase() === "SMS" &&
|
|
@@ -510,7 +510,7 @@ function useShareButton(props) {
|
|
|
510
510
|
const debug = browser("sq:useBigStat");
|
|
511
511
|
const LOADING = "...";
|
|
512
512
|
const debugQuery = (query, variables, getStat) => {
|
|
513
|
-
const res =
|
|
513
|
+
const res = yn(query, variables);
|
|
514
514
|
if (!(res === null || res === void 0 ? void 0 : res.data) && !res.loading) {
|
|
515
515
|
console.error("issue getting stat:", res);
|
|
516
516
|
}
|
|
@@ -921,7 +921,7 @@ const rewardsRedeemedWeekQuery = (programId, locale, type, unit, global = "") =>
|
|
|
921
921
|
locale: $locale
|
|
922
922
|
formatType: UNIT_FORMATTED
|
|
923
923
|
)}`;
|
|
924
|
-
const result =
|
|
924
|
+
const result = yn(query, {
|
|
925
925
|
value: redeemedTotal,
|
|
926
926
|
unit,
|
|
927
927
|
locale,
|
|
@@ -980,7 +980,7 @@ const rewardsRedeemedMonthQuery = (programId, locale, type, unit, global = "") =
|
|
|
980
980
|
locale: $locale
|
|
981
981
|
formatType: UNIT_FORMATTED
|
|
982
982
|
)}`;
|
|
983
|
-
const result =
|
|
983
|
+
const result = yn(query, {
|
|
984
984
|
value: redeemedTotal,
|
|
985
985
|
unit,
|
|
986
986
|
locale,
|
|
@@ -1376,11 +1376,11 @@ const StatPaths = [
|
|
|
1376
1376
|
const StatPatterns = StatPaths.map((pattern) => pathToRegexp(pattern.route));
|
|
1377
1377
|
function useBigStat(props) {
|
|
1378
1378
|
var _a;
|
|
1379
|
-
const { statType, flexReverse, alignment, programId =
|
|
1379
|
+
const { statType, flexReverse, alignment, programId = H(), } = props;
|
|
1380
1380
|
// triggers a re-render if the label is manually changed
|
|
1381
1381
|
useChildElements();
|
|
1382
|
-
const locale =
|
|
1383
|
-
const userIdent =
|
|
1382
|
+
const locale = L();
|
|
1383
|
+
const userIdent = Q();
|
|
1384
1384
|
const re = useMemo(() => StatPatterns.find((re) => re.exec(statType)), [statType]);
|
|
1385
1385
|
if (!(re === null || re === void 0 ? void 0 : re.exec(statType))) {
|
|
1386
1386
|
return {
|
|
@@ -2719,6 +2719,54 @@ function ReferralIframeView(props) {
|
|
|
2719
2719
|
}
|
|
2720
2720
|
|
|
2721
2721
|
const style$8 = {
|
|
2722
|
+
ErrorStyle: ErrorStyles,
|
|
2723
|
+
FieldsContainer: {
|
|
2724
|
+
"& sl-input": {
|
|
2725
|
+
"margin-bottom": "var(--sl-spacing-large)",
|
|
2726
|
+
},
|
|
2727
|
+
},
|
|
2728
|
+
};
|
|
2729
|
+
const vanillaStyle$4 = `
|
|
2730
|
+
:host {
|
|
2731
|
+
margin: 0 auto;
|
|
2732
|
+
width: 100%;
|
|
2733
|
+
display: block;
|
|
2734
|
+
}
|
|
2735
|
+
|
|
2736
|
+
sl-input::part(label){
|
|
2737
|
+
font-size: var(--sl-input-label-font-size-small);
|
|
2738
|
+
font-weight: var(--sl-font-weight-semibold);
|
|
2739
|
+
}
|
|
2740
|
+
`;
|
|
2741
|
+
const sheet$8 = createStyleSheet(style$8);
|
|
2742
|
+
const styleString$8 = sheet$8.toString();
|
|
2743
|
+
function NameFieldsView(props) {
|
|
2744
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
2745
|
+
const { states } = props;
|
|
2746
|
+
const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
|
|
2747
|
+
return (h("div", { class: sheet$8.classes.FieldsContainer },
|
|
2748
|
+
h("style", { type: "text/css" },
|
|
2749
|
+
vanillaStyle$4,
|
|
2750
|
+
styleString$8),
|
|
2751
|
+
h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", name: "/firstName", type: "text", label: states.content.firstNameLabel, required: true, disabled: ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.disabled) }, (((_e = (_d = states.registrationFormState) === null || _d === void 0 ? void 0 : _d.initialData) === null || _e === void 0 ? void 0 : _e.firstName) ? {
|
|
2752
|
+
value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g.firstName,
|
|
2753
|
+
}
|
|
2754
|
+
: {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.firstName) ? {
|
|
2755
|
+
class: sheet$8.classes.ErrorStyle,
|
|
2756
|
+
helpText: (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.firstName) || "Cannot be empty",
|
|
2757
|
+
}
|
|
2758
|
+
: []))),
|
|
2759
|
+
h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", name: "/lastName", type: "text", label: states.content.lastNameLabel, required: true, disabled: ((_h = states.registrationFormState) === null || _h === void 0 ? void 0 : _h.loading) || ((_j = states.registrationFormState) === null || _j === void 0 ? void 0 : _j.disabled) }, (((_l = (_k = states.registrationFormState) === null || _k === void 0 ? void 0 : _k.initialData) === null || _l === void 0 ? void 0 : _l.lastName) ? {
|
|
2760
|
+
value: (_o = (_m = states.registrationFormState) === null || _m === void 0 ? void 0 : _m.initialData) === null || _o === void 0 ? void 0 : _o.lastName,
|
|
2761
|
+
}
|
|
2762
|
+
: {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.lastName) ? {
|
|
2763
|
+
class: sheet$8.classes.ErrorStyle,
|
|
2764
|
+
helpText: (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.lastName) || "Cannot be empty",
|
|
2765
|
+
}
|
|
2766
|
+
: [])))));
|
|
2767
|
+
}
|
|
2768
|
+
|
|
2769
|
+
const style$9 = {
|
|
2722
2770
|
ErrorStyle: {
|
|
2723
2771
|
"&::part(control)": {
|
|
2724
2772
|
background: "var(--sl-color-danger-10)",
|
|
@@ -2741,7 +2789,7 @@ const style$8 = {
|
|
|
2741
2789
|
"margin-bottom": "var(--sl-spacing-large)",
|
|
2742
2790
|
},
|
|
2743
2791
|
};
|
|
2744
|
-
const vanillaStyle$
|
|
2792
|
+
const vanillaStyle$5 = `
|
|
2745
2793
|
:host {
|
|
2746
2794
|
margin: 0 auto;
|
|
2747
2795
|
width: 100%;
|
|
@@ -2757,22 +2805,22 @@ sl-checkbox::part(base){
|
|
|
2757
2805
|
}
|
|
2758
2806
|
`;
|
|
2759
2807
|
jss.setup(create());
|
|
2760
|
-
const sheet$
|
|
2761
|
-
const styleString$
|
|
2808
|
+
const sheet$9 = jss.createStyleSheet(style$9);
|
|
2809
|
+
const styleString$9 = sheet$9.toString();
|
|
2762
2810
|
function CheckboxFieldView(props) {
|
|
2763
2811
|
var _a, _b, _c;
|
|
2764
2812
|
const { states, content, callbacks } = props;
|
|
2765
2813
|
const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
|
|
2766
|
-
return (h("div", { class: sheet$
|
|
2814
|
+
return (h("div", { class: sheet$9.classes.FieldContainer, part: "sqm-base" },
|
|
2767
2815
|
h("style", { type: "text/css" },
|
|
2768
|
-
vanillaStyle$
|
|
2769
|
-
styleString$
|
|
2816
|
+
vanillaStyle$5,
|
|
2817
|
+
styleString$9),
|
|
2770
2818
|
h("sl-checkbox", Object.assign({ exportparts: "label: input-label, base: input-base", name: `/${content.checkboxName}`, checked: states.checked, "onSl-change": (e) => {
|
|
2771
2819
|
e.target.value = e.target.checked;
|
|
2772
2820
|
callbacks.setChecked(e.target.value);
|
|
2773
2821
|
} }, (!content.checkboxOptional ? { required: true } : []), { disabled: ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.disabled) }, (!states.checked && (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.checkboxName])
|
|
2774
2822
|
? {
|
|
2775
|
-
class: sheet$
|
|
2823
|
+
class: sheet$9.classes.ErrorStyle,
|
|
2776
2824
|
}
|
|
2777
2825
|
: [])),
|
|
2778
2826
|
intl.formatMessage({
|
|
@@ -2781,13 +2829,13 @@ function CheckboxFieldView(props) {
|
|
|
2781
2829
|
}, {
|
|
2782
2830
|
labelLink: (h("a", { href: content.checkboxLabelLink, target: "_blank" }, content.checkboxLabelLinkText || content.checkboxLabelLink)),
|
|
2783
2831
|
}),
|
|
2784
|
-
!states.checked && (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.checkboxName]) && (h("p", { class: sheet$
|
|
2832
|
+
!states.checked && (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.checkboxName]) && (h("p", { class: sheet$9.classes.ErrorMessageStyle }, intl.formatMessage({
|
|
2785
2833
|
id: `errorMessage-${content.checkboxName}`,
|
|
2786
2834
|
defaultMessage: content.errorMessage,
|
|
2787
2835
|
}))))));
|
|
2788
2836
|
}
|
|
2789
2837
|
|
|
2790
|
-
const style$
|
|
2838
|
+
const style$a = {
|
|
2791
2839
|
ErrorStyle: {
|
|
2792
2840
|
"--sl-input-border-color": "var(--sl-color-danger-500)",
|
|
2793
2841
|
"--sl-input-background-color": "var(--sl-color-danger-10)",
|
|
@@ -2803,7 +2851,7 @@ const style$9 = {
|
|
|
2803
2851
|
"margin-bottom": "var(--sl-spacing-large)",
|
|
2804
2852
|
},
|
|
2805
2853
|
};
|
|
2806
|
-
const vanillaStyle$
|
|
2854
|
+
const vanillaStyle$6 = `
|
|
2807
2855
|
:host {
|
|
2808
2856
|
margin: 0 auto;
|
|
2809
2857
|
width: 100%;
|
|
@@ -2815,36 +2863,36 @@ sl-select::part(label){
|
|
|
2815
2863
|
}
|
|
2816
2864
|
`;
|
|
2817
2865
|
jss.setup(create());
|
|
2818
|
-
const sheet$
|
|
2819
|
-
const styleString$
|
|
2866
|
+
const sheet$a = jss.createStyleSheet(style$a);
|
|
2867
|
+
const styleString$a = sheet$a.toString();
|
|
2820
2868
|
function DropdownFieldView(props) {
|
|
2821
2869
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
2822
2870
|
const { states, content } = props;
|
|
2823
2871
|
const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
|
|
2824
|
-
return (h("div", { class: sheet$
|
|
2872
|
+
return (h("div", { class: sheet$a.classes.FieldContainer, part: "sqm-base" },
|
|
2825
2873
|
h("style", { type: "text/css" },
|
|
2826
|
-
vanillaStyle$
|
|
2827
|
-
styleString$
|
|
2874
|
+
vanillaStyle$6,
|
|
2875
|
+
styleString$a),
|
|
2828
2876
|
h("sl-select", Object.assign({ exportparts: "label: input-label, base: input-base", label: content.dropdownLabel, name: `/${content.dropdownName}` }, (!content.dropdownOptional ? { required: true } : []), { disabled: ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.disabled) }, (((_e = (_d = states.registrationFormState) === null || _d === void 0 ? void 0 : _d.initialData) === null || _e === void 0 ? void 0 : _e[content.dropdownName]) ? {
|
|
2829
2877
|
value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g[content.dropdownName],
|
|
2830
2878
|
}
|
|
2831
2879
|
: {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.dropdownName]) ? {
|
|
2832
|
-
class: sheet$
|
|
2880
|
+
class: sheet$a.classes.ErrorStyle,
|
|
2833
2881
|
}
|
|
2834
2882
|
: [])), content.selectOptions),
|
|
2835
|
-
(validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.dropdownName]) && (h("p", { class: sheet$
|
|
2883
|
+
(validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.dropdownName]) && (h("p", { class: sheet$a.classes.ErrorMessageStyle }, intl.formatMessage({
|
|
2836
2884
|
id: `errorMessage-${content.dropdownName}`,
|
|
2837
2885
|
defaultMessage: content.errorMessage,
|
|
2838
2886
|
})))));
|
|
2839
2887
|
}
|
|
2840
2888
|
|
|
2841
|
-
const style$
|
|
2889
|
+
const style$b = {
|
|
2842
2890
|
ErrorStyle: ErrorStyles,
|
|
2843
2891
|
FieldContainer: {
|
|
2844
2892
|
"margin-bottom": "var(--sl-spacing-large)",
|
|
2845
2893
|
},
|
|
2846
2894
|
};
|
|
2847
|
-
const vanillaStyle$
|
|
2895
|
+
const vanillaStyle$7 = `
|
|
2848
2896
|
:host {
|
|
2849
2897
|
margin: 0 auto;
|
|
2850
2898
|
width: 100%;
|
|
@@ -2852,21 +2900,21 @@ const vanillaStyle$6 = `
|
|
|
2852
2900
|
}
|
|
2853
2901
|
`;
|
|
2854
2902
|
jss.setup(create());
|
|
2855
|
-
const sheet$
|
|
2856
|
-
const styleString$
|
|
2903
|
+
const sheet$b = jss.createStyleSheet(style$b);
|
|
2904
|
+
const styleString$b = sheet$b.toString();
|
|
2857
2905
|
function InputFieldView(props) {
|
|
2858
2906
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
2859
2907
|
const { states, content } = props;
|
|
2860
2908
|
const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
|
|
2861
|
-
return (h("div", { class: sheet$
|
|
2909
|
+
return (h("div", { class: sheet$b.classes.FieldContainer, part: "sqm-base" },
|
|
2862
2910
|
h("style", { type: "text/css" },
|
|
2863
|
-
vanillaStyle$
|
|
2864
|
-
styleString$
|
|
2911
|
+
vanillaStyle$7,
|
|
2912
|
+
styleString$b),
|
|
2865
2913
|
h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", name: `/${content.fieldName}`, type: content.fieldType, label: content.fieldLabel }, (!content.fieldOptional ? { required: true } : []), { disabled: ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.disabled) }, (((_e = (_d = states.registrationFormState) === null || _d === void 0 ? void 0 : _d.initialData) === null || _e === void 0 ? void 0 : _e[content.fieldName]) ? {
|
|
2866
2914
|
value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g[content.fieldName],
|
|
2867
2915
|
}
|
|
2868
2916
|
: {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.fieldName]) ? {
|
|
2869
|
-
class: sheet$
|
|
2917
|
+
class: sheet$b.classes.ErrorStyle,
|
|
2870
2918
|
helpText: intl.formatMessage({
|
|
2871
2919
|
id: `errorMessage-${content.fieldName}`,
|
|
2872
2920
|
defaultMessage: content.errorMessage || (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.fieldName]),
|
|
@@ -2961,7 +3009,7 @@ function ProgressBar({ stageCount, currentStage, }) {
|
|
|
2961
3009
|
return (h("div", { style: { display: "flex", columnGap: "-2px" } }, Array.from(Array(stageCount).keys()).map((stage) => (h(Progress, { active: currentStage === stage, completed: currentStage > stage, incomplete: currentStage < stage, stage: stage })))));
|
|
2962
3010
|
}
|
|
2963
3011
|
|
|
2964
|
-
const style$
|
|
3012
|
+
const style$c = {
|
|
2965
3013
|
HostBlock: HostBlock,
|
|
2966
3014
|
Container: {
|
|
2967
3015
|
minWidth: "300px",
|
|
@@ -3312,8 +3360,8 @@ const style$b = {
|
|
|
3312
3360
|
},
|
|
3313
3361
|
};
|
|
3314
3362
|
// JSS config
|
|
3315
|
-
const sheet$
|
|
3316
|
-
const styleString$
|
|
3363
|
+
const sheet$c = createStyleSheet(style$c);
|
|
3364
|
+
const styleString$c = sheet$c.toString();
|
|
3317
3365
|
const stageList = ["chooseReward", "chooseAmount", "confirmation", "success"];
|
|
3318
3366
|
function RewardExchangeView(props) {
|
|
3319
3367
|
const { states, data, callbacks, refs } = props;
|
|
@@ -3336,7 +3384,7 @@ function RewardExchangeView(props) {
|
|
|
3336
3384
|
sourceUnit: item.sourceUnit,
|
|
3337
3385
|
})));
|
|
3338
3386
|
}
|
|
3339
|
-
return (h("sl-select", { style: { width: "auto" }, label: (_b = states === null || states === void 0 ? void 0 : states.content) === null || _b === void 0 ? void 0 : _b.text.selectText, class: sheet$
|
|
3387
|
+
return (h("sl-select", { style: { width: "auto" }, label: (_b = states === null || states === void 0 ? void 0 : states.content) === null || _b === void 0 ? void 0 : _b.text.selectText, class: sheet$c.classes.Select, value: states.selectedStep, "onSl-select": (e) => {
|
|
3340
3388
|
var _a, _b, _c, _d, _e;
|
|
3341
3389
|
return callbacks.setExchangeState({
|
|
3342
3390
|
amount: (_c = (_b = (_a = e.detail) === null || _a === void 0 ? void 0 : _a.item) === null || _b === void 0 ? void 0 : _b.value) === null || _c === void 0 ? void 0 : _c.sourceValue,
|
|
@@ -3344,7 +3392,7 @@ function RewardExchangeView(props) {
|
|
|
3344
3392
|
});
|
|
3345
3393
|
} }, (_c = item.steps) === null || _c === void 0 ? void 0 : _c.map((step) => {
|
|
3346
3394
|
var _a, _b;
|
|
3347
|
-
return (h("sl-menu-item", { value: step, disabled: !step.available, class: sheet$
|
|
3395
|
+
return (h("sl-menu-item", { value: step, disabled: !step.available, class: sheet$c.classes.SelectItem },
|
|
3348
3396
|
step.prettyDestinationValue,
|
|
3349
3397
|
h("br", null),
|
|
3350
3398
|
h("div", { class: "step-cost", slot: "suffix" },
|
|
@@ -3363,8 +3411,8 @@ function RewardExchangeView(props) {
|
|
|
3363
3411
|
var _a;
|
|
3364
3412
|
return [
|
|
3365
3413
|
h("div", { part: "choose-reward-container" },
|
|
3366
|
-
h("div", { class: sheet$
|
|
3367
|
-
states.loading || states.queryError ? (loading()) : (h("div", { class: sheet$
|
|
3414
|
+
h("div", { class: sheet$c.classes.Title }, states.content.text.rewardTitle),
|
|
3415
|
+
states.loading || states.queryError ? (loading()) : (h("div", { class: sheet$c.classes.Grid }, (_a = data.exchangeList) === null || _a === void 0 ? void 0 : _a.map((item) => {
|
|
3368
3416
|
var _a, _b, _c, _d, _e;
|
|
3369
3417
|
const style = {
|
|
3370
3418
|
boxShadow: item.key === (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.key)
|
|
@@ -3373,7 +3421,7 @@ function RewardExchangeView(props) {
|
|
|
3373
3421
|
borderRadius: "4px",
|
|
3374
3422
|
};
|
|
3375
3423
|
return (h("div", { key: item.key, style: style },
|
|
3376
|
-
h("sl-card", { exportparts: "base: exchange-card-container", class: sheet$
|
|
3424
|
+
h("sl-card", { exportparts: "base: exchange-card-container", class: sheet$c.classes.Card, style: {
|
|
3377
3425
|
cursor: item.unavailableReasonCode
|
|
3378
3426
|
? "not-allowed"
|
|
3379
3427
|
: "pointer",
|
|
@@ -3390,14 +3438,14 @@ function RewardExchangeView(props) {
|
|
|
3390
3438
|
? "rgba(0, 0, 0, 0.05)"
|
|
3391
3439
|
: "rgba(0, 0, 0, 0)",
|
|
3392
3440
|
} },
|
|
3393
|
-
h("div", { class: sheet$
|
|
3441
|
+
h("div", { class: sheet$c.classes.Image, style: {
|
|
3394
3442
|
opacity: item.unavailableReasonCode ? "0.5" : "1",
|
|
3395
3443
|
} },
|
|
3396
3444
|
h("img", { class: item.unavailableReasonCode
|
|
3397
3445
|
? "image subdued"
|
|
3398
3446
|
: "image", src: (item === null || item === void 0 ? void 0 : item.imageUrl) ||
|
|
3399
3447
|
getAssetPath("./assets/Reward-image.png") })),
|
|
3400
|
-
h("div", { class: sheet$
|
|
3448
|
+
h("div", { class: sheet$c.classes.TextArea, style: {
|
|
3401
3449
|
opacity: item.unavailableReasonCode ? "0.5" : "1",
|
|
3402
3450
|
} },
|
|
3403
3451
|
h("div", { class: "title", style: {
|
|
@@ -3430,7 +3478,7 @@ function RewardExchangeView(props) {
|
|
|
3430
3478
|
item.prettySourceMinValue,
|
|
3431
3479
|
}))))))));
|
|
3432
3480
|
}))),
|
|
3433
|
-
h("div", { class: sheet$
|
|
3481
|
+
h("div", { class: sheet$c.classes.Button },
|
|
3434
3482
|
h("sl-button", { exportparts: "base: primarybutton-base", class: "continue right", size: "large", onClick: () => callbacks.setStage("chooseAmount"), loading: states.loading, disabled: !states.selectedItem }, states.content.text.continueText))),
|
|
3435
3483
|
];
|
|
3436
3484
|
}
|
|
@@ -3441,7 +3489,7 @@ function RewardExchangeView(props) {
|
|
|
3441
3489
|
? false
|
|
3442
3490
|
: input && !states.amount;
|
|
3443
3491
|
return (h("div", null,
|
|
3444
|
-
h("div", { class: sheet$
|
|
3492
|
+
h("div", { class: sheet$c.classes.ChooseAmount, part: "choose-amount-container" },
|
|
3445
3493
|
h("div", { class: "wrapper" },
|
|
3446
3494
|
h("img", { class: "image", src: (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.imageUrl) ||
|
|
3447
3495
|
getAssetPath("./assets/Reward-image.png") }),
|
|
@@ -3450,7 +3498,7 @@ function RewardExchangeView(props) {
|
|
|
3450
3498
|
((_c = states.selectedItem) === null || _c === void 0 ? void 0 : _c.ruleType) === "FIXED_GLOBAL_REWARD" ? (h("div", { class: "points" }, input)) : (h("div", { class: "description" }, selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.description)),
|
|
3451
3499
|
((_d = states.selectedItem) === null || _d === void 0 ? void 0 : _d.ruleType) === "FIXED_GLOBAL_REWARD" ? (h("div", { class: "description" }, selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.description)) : (h("div", null, input)),
|
|
3452
3500
|
h("div", { class: "space" }))),
|
|
3453
|
-
h("div", { class: sheet$
|
|
3501
|
+
h("div", { class: sheet$c.classes.Button },
|
|
3454
3502
|
h("sl-button", { exportparts: "base: secondarybutton-base", class: "cancel", size: "large", type: "text", onClick: () => callbacks.resetState() }, states.content.text.cancelText),
|
|
3455
3503
|
h("sl-button", { exportparts: "base: primarybutton-base", class: "continue", size: "large", onClick: () => callbacks.setStage("confirmation"), disabled: isDisabled }, states.content.text.continueToConfirmationText)))));
|
|
3456
3504
|
}
|
|
@@ -3458,8 +3506,8 @@ function RewardExchangeView(props) {
|
|
|
3458
3506
|
const cost = (selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettySourceValue) || selectedItem.prettySourceValue;
|
|
3459
3507
|
const amount = selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettyDestinationValue;
|
|
3460
3508
|
return (h("div", null,
|
|
3461
|
-
h("div", { class: sheet$
|
|
3462
|
-
h("div", { class: sheet$
|
|
3509
|
+
h("div", { class: sheet$c.classes.Confirmation, part: "confirmation-container" },
|
|
3510
|
+
h("div", { class: sheet$c.classes.Title }, states.content.text.redeemTitle),
|
|
3463
3511
|
h("div", { class: "wrapper" },
|
|
3464
3512
|
h("div", { class: "field" }, states.content.text.rewardNameTitle),
|
|
3465
3513
|
h("div", { class: "reward-item-container" },
|
|
@@ -3474,13 +3522,13 @@ function RewardExchangeView(props) {
|
|
|
3474
3522
|
h("div", { class: "wrapper top-border padding" },
|
|
3475
3523
|
h("div", { class: "field" }, states.content.text.costTitle),
|
|
3476
3524
|
h("div", { class: "value" }, cost)),
|
|
3477
|
-
h("div", { class: sheet$
|
|
3525
|
+
h("div", { class: sheet$c.classes.Button },
|
|
3478
3526
|
h("sl-button", { class: "cancel", type: "text", size: "large", onClick: () => callbacks.setStage("chooseAmount") }, states.content.text.backText),
|
|
3479
3527
|
h("sl-button", { class: "continue", size: "large", loading: states.loading, onClick: callbacks.exchangeReward }, states.content.text.redeemText)))));
|
|
3480
3528
|
}
|
|
3481
3529
|
function success() {
|
|
3482
3530
|
var _a, _b, _c, _d, _e, _f;
|
|
3483
|
-
return (h("div", { class: sheet$
|
|
3531
|
+
return (h("div", { class: sheet$c.classes.Success, part: "success-container" },
|
|
3484
3532
|
h(Gift$1, null),
|
|
3485
3533
|
h(Confetti, null),
|
|
3486
3534
|
h("div", { class: "title" }, (_a = states.content.text) === null || _a === void 0 ? void 0 : _a.rewardRedeemedText),
|
|
@@ -3495,7 +3543,7 @@ function RewardExchangeView(props) {
|
|
|
3495
3543
|
(data === null || data === void 0 ? void 0 : data.fuelTankCode) && (h("div", { class: "promo" },
|
|
3496
3544
|
states.content.text.promoCode,
|
|
3497
3545
|
h(CopyTextView, { copyString: data.fuelTankCode, tooltiptext: (_f = states === null || states === void 0 ? void 0 : states.content) === null || _f === void 0 ? void 0 : _f.text.tooltipText, open: states.open, onClick: callbacks.copyFuelTankCode }))),
|
|
3498
|
-
h("div", { class: sheet$
|
|
3546
|
+
h("div", { class: sheet$c.classes.Button },
|
|
3499
3547
|
h("sl-button", { class: "continue center", type: "primary", size: "large", onClick: () => callbacks.resetState(true) }, states.content.text.doneText))));
|
|
3500
3548
|
}
|
|
3501
3549
|
const stages = {
|
|
@@ -3507,7 +3555,7 @@ function RewardExchangeView(props) {
|
|
|
3507
3555
|
const currentStage = stages[states.redeemStage];
|
|
3508
3556
|
function stageMap() {
|
|
3509
3557
|
const stageNumber = stageList.indexOf(states.redeemStage);
|
|
3510
|
-
return (h("div", { class: sheet$
|
|
3558
|
+
return (h("div", { class: sheet$c.classes.ProgressBar },
|
|
3511
3559
|
h("div", { class: "text-area" }, Object.keys(stageProgressList).map((stage) => {
|
|
3512
3560
|
if (stageList.indexOf(stage) <= stageNumber) {
|
|
3513
3561
|
return h("span", { class: "text" }, stageProgressList[stage]);
|
|
@@ -3519,10 +3567,10 @@ function RewardExchangeView(props) {
|
|
|
3519
3567
|
h(ProgressBar, { stageCount: 3, currentStage: stageNumber })));
|
|
3520
3568
|
}
|
|
3521
3569
|
function loading() {
|
|
3522
|
-
return (h("div", { class: sheet$
|
|
3570
|
+
return (h("div", { class: sheet$c.classes.Grid, part: "loading-container" }, [...Array(states.content.text.skeletonCardNum)].map(() => {
|
|
3523
3571
|
return (h("div", null,
|
|
3524
|
-
h("sl-card", { class: sheet$
|
|
3525
|
-
h("div", { class: sheet$
|
|
3572
|
+
h("sl-card", { class: sheet$c.classes.Card },
|
|
3573
|
+
h("div", { class: sheet$c.classes.CardLayout },
|
|
3526
3574
|
h("div", null,
|
|
3527
3575
|
h("sl-skeleton", { style: {
|
|
3528
3576
|
width: "100px",
|
|
@@ -3554,12 +3602,12 @@ function RewardExchangeView(props) {
|
|
|
3554
3602
|
if (!(refs === null || refs === void 0 ? void 0 : refs.canvasRef))
|
|
3555
3603
|
return;
|
|
3556
3604
|
refs.canvasRef.current = canvas;
|
|
3557
|
-
}, id: "my-canvas", class: sheet$
|
|
3605
|
+
}, id: "my-canvas", class: sheet$c.classes.Confetti }));
|
|
3558
3606
|
}
|
|
3559
3607
|
if (states.noExchangeOptions)
|
|
3560
3608
|
return states.content.text.empty;
|
|
3561
|
-
return (h("div", { class: sheet$
|
|
3562
|
-
h("style", { type: "text/css" }, styleString$
|
|
3609
|
+
return (h("div", { class: sheet$c.classes.Container, part: "sqm-base" },
|
|
3610
|
+
h("style", { type: "text/css" }, styleString$c),
|
|
3563
3611
|
h("div", null,
|
|
3564
3612
|
stageMap(),
|
|
3565
3613
|
states.exchangeError && errorMessage(),
|
|
@@ -3975,7 +4023,7 @@ function CardFeedView(props, children) {
|
|
|
3975
4023
|
h("div", { class: sheet.classes.Container, part: "sqm-base" }, children)));
|
|
3976
4024
|
}
|
|
3977
4025
|
|
|
3978
|
-
const style$
|
|
4026
|
+
const style$d = {
|
|
3979
4027
|
HostBlock: HostBlock,
|
|
3980
4028
|
couponCodeLabel: {
|
|
3981
4029
|
margin: "var(--sl-spacing-x-small) 0",
|
|
@@ -3983,21 +4031,21 @@ const style$c = {
|
|
|
3983
4031
|
fontSize: "var(--sl-font-size-small)",
|
|
3984
4032
|
},
|
|
3985
4033
|
};
|
|
3986
|
-
const vanillaStyle$
|
|
4034
|
+
const vanillaStyle$8 = `
|
|
3987
4035
|
:host{
|
|
3988
4036
|
display: block;
|
|
3989
4037
|
width: 100%;
|
|
3990
4038
|
}
|
|
3991
4039
|
`;
|
|
3992
|
-
const sheet$
|
|
3993
|
-
const styleString$
|
|
4040
|
+
const sheet$d = createStyleSheet(style$d);
|
|
4041
|
+
const styleString$d = sheet$d.toString();
|
|
3994
4042
|
function CouponCodeView(props) {
|
|
3995
4043
|
const error = !props.loading && props.error;
|
|
3996
4044
|
return (h("div", null,
|
|
3997
4045
|
h("style", { type: "text/css" },
|
|
3998
|
-
styleString$
|
|
3999
|
-
vanillaStyle$
|
|
4000
|
-
h("p", { class: sheet$
|
|
4046
|
+
styleString$d,
|
|
4047
|
+
vanillaStyle$8),
|
|
4048
|
+
h("p", { class: sheet$d.classes.couponCodeLabel, style: { textAlign: props.textAlign } }, props.couponCodeLabel),
|
|
4001
4049
|
error ? (h("sqm-form-message", { type: props.errorType, exportparts: "erroralert-icon" },
|
|
4002
4050
|
h("div", { part: "erroralert-text" }, props.errorText))) : (h(CopyTextView, Object.assign({}, props)))));
|
|
4003
4051
|
}
|
|
@@ -4087,4 +4135,4 @@ const ShadowViewAddon = ({ story }, children) => {
|
|
|
4087
4135
|
h(TagName, { "stencilbook-shadow-view": randomInt })));
|
|
4088
4136
|
};
|
|
4089
4137
|
|
|
4090
|
-
export { loading as A, BigStatView as B, CheckboxFieldView as C, DropdownFieldView as D, EditProfileView as E, empty as F, rewardExchange as G, HeroView as H, InputFieldView as I, CardFeedView as J, CouponCodeView as K, LeaderboardView as L, ProgressBar as M,
|
|
4138
|
+
export { loading as A, BigStatView as B, CheckboxFieldView as C, DropdownFieldView as D, EditProfileView as E, empty as F, rewardExchange as G, HeroView as H, InputFieldView as I, CardFeedView as J, CouponCodeView as K, LeaderboardView as L, ProgressBar as M, NameFieldsView as N, autoColorScaleCss as O, PortalFrameView as P, ShadowViewAddon as Q, ReferralIframeView as R, ShareButtonView as S, TaskCardView as T, useBigStat as U, withShadowView as V, demoRewardExchange as W, useShareButton as a, useDemoBigStat as b, StatContainerView as c, PortalChangePasswordView as d, PortalLoginView as e, PortalRegisterView as f, ProgressBarView as g, PoweredByImg as h, PortalFooterView as i, RewardExchangeView as j, rewardExchangeLongText as k, rewardExchangeSelected as l, chooseAmountFixed as m, chooseAmountFixedNoDescription as n, chooseAmountVariable as o, chooseAmountVariableNoDescription as p, chooseAmountVariableDisabled as q, rewardExchangeCustomErrorMsg as r, chooseAmountVariableUnavailable as s, confirmFixed as t, useShareLink as u, confirmVariable as v, redemptionError as w, queryError as x, success as y, successVariable as z };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { h } from './index-
|
|
2
|
-
import { f as useEffect } from './stencil-hooks.module-
|
|
3
|
-
import { d as dist,
|
|
1
|
+
import { h } from './index-91e7729f.js';
|
|
2
|
+
import { f as useEffect } from './stencil-hooks.module-4bc38af4.js';
|
|
3
|
+
import { d as dist, Q, H, z as ze, k as kn, C as Cn, B } from './index.module-bc8dd3be.js';
|
|
4
4
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
5
5
|
import { H as HostBlock } from './mixins-83f90fa1.js';
|
|
6
6
|
|
|
@@ -60,11 +60,11 @@ const SET_CODE_COPIED = dist.gql `
|
|
|
60
60
|
}
|
|
61
61
|
`;
|
|
62
62
|
function useReferralCodes(props) {
|
|
63
|
-
const user =
|
|
64
|
-
const engagementMedium =
|
|
65
|
-
const programId = props.programId ||
|
|
66
|
-
const { refresh } =
|
|
67
|
-
const { envelope: referralData, states, callbacks, } =
|
|
63
|
+
const user = Q();
|
|
64
|
+
const engagementMedium = B();
|
|
65
|
+
const programId = props.programId || H();
|
|
66
|
+
const { refresh } = ze();
|
|
67
|
+
const { envelope: referralData, states, callbacks, } = kn(GET_REFERRAL_CODES, (data) => { var _a; return (_a = data === null || data === void 0 ? void 0 : data.viewer) === null || _a === void 0 ? void 0 : _a.referralCodeList; }, {
|
|
68
68
|
limit: 1,
|
|
69
69
|
offset: 0,
|
|
70
70
|
}, {
|
|
@@ -76,11 +76,11 @@ function useReferralCodes(props) {
|
|
|
76
76
|
dateUsed_exists: false,
|
|
77
77
|
},
|
|
78
78
|
}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
79
|
-
const [paginationContext, setPaginationContext] =
|
|
79
|
+
const [paginationContext, setPaginationContext] = Cn({
|
|
80
80
|
namespace: REFERRAL_CODES_PAGINATION_CONTEXT,
|
|
81
81
|
initialValue: { states, callbacks },
|
|
82
82
|
});
|
|
83
|
-
const [referralCodesContext, setReferralCodesContext] =
|
|
83
|
+
const [referralCodesContext, setReferralCodesContext] = Cn({
|
|
84
84
|
namespace: REFERRAL_CODES_NAMESPACE,
|
|
85
85
|
initialValue: {
|
|
86
86
|
refresh,
|
package/dist/esm/{email-registration-view-6870d230.js → email-registration-view-a7818cf2.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h } from './index-
|
|
1
|
+
import { h } from './index-91e7729f.js';
|
|
2
2
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
3
3
|
import { A as AuthWrapper, g as gap, a as AuthColumn, b as AuthButtonsContainer, E as ErrorStyles } from './mixins-83f90fa1.js';
|
|
4
4
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as getAugmentedNamespace, c as createCommonjsModule, a as commonjsGlobal, b as browser, l as l$1 } from './stencil-hooks.module-
|
|
2
|
-
import { s as src, m as memoize,
|
|
1
|
+
import { g as getAugmentedNamespace, c as createCommonjsModule, a as commonjsGlobal, b as browser, l as l$1 } from './stencil-hooks.module-4bc38af4.js';
|
|
2
|
+
import { s as src, m as memoize, U } from './index.module-bc8dd3be.js';
|
|
3
3
|
|
|
4
4
|
var __assign = (undefined && undefined.__assign) || function () {
|
|
5
5
|
__assign = Object.assign || function(t) {
|
|
@@ -26635,7 +26635,7 @@ sl-input::part(label){
|
|
|
26635
26635
|
|
|
26636
26636
|
`;
|
|
26637
26637
|
|
|
26638
|
-
|
|
26638
|
+
U(l$1);
|
|
26639
26639
|
const debug = browser("sq:global");
|
|
26640
26640
|
const cache = createIntlCache();
|
|
26641
26641
|
const intl = createIntl({
|