@saasquatch/mint-components 1.12.1-4 → 1.12.1-6
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-80d7642e.js → GenericTableView-7ef786c3.js} +2 -2
- package/dist/cjs/{ShadowViewAddon-67836b9c.js → ShadowViewAddon-fae7ab2c.js} +200 -286
- package/dist/cjs/copy-text-view-43e8349f.js +231 -0
- package/dist/cjs/{email-registration-view-248652bb.js → email-registration-view-4eeee3e4.js} +2 -2
- package/dist/cjs/{global-02e50f09.js → global-d9abaf4d.js} +3 -3
- package/dist/cjs/{index-b0129cd6.js → index-3cf5ef3d.js} +16 -0
- package/dist/cjs/{index.module-df530553.js → index.module-ccf9bd9c.js} +57 -19
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/{luxon-05098e19.js → luxon-14ae1f8a.js} +1 -1
- package/dist/cjs/mint-components.cjs.js +5 -5
- package/dist/cjs/{mixins-fe9d4112.js → mixins-f7e0377a.js} +0 -1
- package/dist/cjs/{mockRewardData-4258e067.js → mockRewardData-a384d9f5.js} +1 -1
- package/dist/cjs/raisins-plop-target.cjs.entry.js +1 -1
- package/dist/cjs/{re-render-1976e05e.js → re-render-1e63c82b.js} +5 -5
- package/dist/cjs/{sqm-asset-card-view-a0e33f21.js → sqm-asset-card-view-a3abee0b.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 +67 -67
- package/dist/cjs/sqm-base-registration-form-view-e4a74dee.js +68 -0
- package/dist/cjs/{sqm-big-stat_39.cjs.entry.js → sqm-big-stat_37.cjs.entry.js} +91 -153
- package/dist/cjs/{sqm-close-button-view-fd6e8f60.js → sqm-close-button-view-0cdada3a.js} +2 -2
- package/dist/cjs/sqm-close-button.cjs.entry.js +5 -5
- package/dist/cjs/sqm-context-router.cjs.entry.js +4 -4
- package/dist/cjs/sqm-empty_4.cjs.entry.js +11 -7
- package/dist/cjs/sqm-form-message.cjs.entry.js +2 -2
- package/dist/cjs/sqm-google-sign-in.cjs.entry.js +45 -0
- 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 +7 -7
- package/dist/cjs/{sqm-invoice-table-view-e3b03a00.js → sqm-invoice-table-view-a13d1c7f.js} +2 -2
- package/dist/cjs/{sqm-leaderboard-rank-view-5a3d4a88.js → sqm-leaderboard-rank-view-133f8d95.js} +1 -1
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +8 -8
- package/dist/cjs/{sqm-logout-current-user-view-c9f18d96.js → sqm-logout-current-user-view-64ca6abe.js} +1 -1
- package/dist/cjs/sqm-logout-current-user.cjs.entry.js +7 -7
- package/dist/cjs/sqm-name-fields-view-57c734bf.js +55 -0
- package/dist/cjs/sqm-name-fields.cjs.entry.js +59 -0
- package/dist/cjs/{sqm-navigation-sidebar-item-view-a125ec5f.js → sqm-navigation-sidebar-item-view-38519acf.js} +4 -4
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +7 -7
- package/dist/cjs/{sqm-navigation-sidebar-view-921704fb.js → sqm-navigation-sidebar-view-37209a17.js} +1 -1
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +6 -6
- package/dist/cjs/sqm-pagination_3.cjs.entry.js +392 -0
- package/dist/cjs/sqm-password-field.cjs.entry.js +6 -6
- package/dist/cjs/sqm-popup-container.cjs.entry.js +6 -6
- package/dist/cjs/{sqm-portal-container-view-990a85a3.js → sqm-portal-container-view-9a36f5ed.js} +1 -1
- package/dist/cjs/{sqm-portal-email-verification-view-292b5bf4.js → sqm-portal-email-verification-view-6e1e80e7.js} +4 -4
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +12 -12
- package/dist/cjs/{sqm-portal-forgot-password-view-969c49ed.js → sqm-portal-forgot-password-view-97903679.js} +3 -3
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +9 -9
- package/dist/cjs/sqm-portal-google-registration-form.cjs.entry.js +314 -0
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +4 -4
- package/dist/cjs/{sqm-portal-profile-view-fde54e35.js → sqm-portal-profile-view-f4489585.js} +3 -3
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +11 -11
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +7 -7
- package/dist/cjs/{sqm-portal-registration-form-view-621348a6.js → sqm-portal-registration-form-view-5f277c9d.js} +19 -17
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +19 -222
- package/dist/cjs/{sqm-portal-reset-password-view-96f329ed.js → sqm-portal-reset-password-view-0ed5419e.js} +3 -3
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +12 -12
- package/dist/cjs/{sqm-portal-verify-email-view-7ffcc0d4.js → sqm-portal-verify-email-view-cd2c3086.js} +3 -3
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +12 -12
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +15 -13
- package/dist/cjs/sqm-referred-registration.cjs.entry.js +7 -7
- 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 +17 -17
- package/dist/cjs/sqm-route.cjs.entry.js +1 -1
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +747 -419
- 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-e1cd9bd3.js → sqm-text-span-view-a22f50aa.js} +1 -1
- package/dist/cjs/sqm-text-span.cjs.entry.js +3 -3
- package/dist/cjs/{stencil-hooks.module-72742a0b.js → stencil-hooks.module-ece1ee46.js} +1 -1
- package/dist/cjs/{useChildElements-e0d44916.js → useChildElements-438cf387.js} +3 -3
- package/dist/cjs/{useInstantAccessRegistration-bbe746d1.js → useInstantAccessRegistration-7d91867a.js} +4 -4
- package/dist/cjs/usePortalRegistrationForm-b9a28240.js +214 -0
- package/dist/cjs/{useReferralTable-a76adb0d.js → useReferralTable-6b4920f9.js} +11 -11
- package/dist/cjs/{useRegistrationFormState-876ed65d.js → useRegistrationFormState-5911d016.js} +3 -3
- package/dist/cjs/{utilities-cec9dd36.js → utilities-27e9535b.js} +2 -2
- package/dist/collection/collection-manifest.json +13 -2
- package/dist/collection/components/sqm-base-registration/BaseRegistrationForm.stories.js +36 -0
- package/dist/collection/components/sqm-base-registration/sqm-base-registration-form-view.js +63 -0
- package/dist/collection/components/sqm-checkbox-field/CheckboxField.stories.js +1 -0
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field-view.js +16 -7
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +6 -6
- package/dist/collection/components/sqm-coupon-code/sqm-coupon-code.js +1 -1
- package/dist/collection/components/sqm-empty/sqm-empty.js +10 -2
- package/dist/collection/components/sqm-google-sign-in/sqm-google-sign-in.js +78 -0
- package/dist/collection/components/sqm-logout-current-user/sqm-logout-current-user.js +1 -1
- package/dist/collection/components/sqm-pagination/Pagination.stories.js +12 -0
- package/dist/collection/components/sqm-pagination/sqm-pagination-view.js +32 -0
- package/dist/collection/components/sqm-pagination/sqm-pagination.js +112 -0
- package/dist/collection/components/sqm-pagination/usePagination.js +29 -0
- package/dist/collection/components/sqm-portal-container/sqm-portal-container.js +0 -4
- package/dist/collection/components/sqm-portal-google-registration-form/PortalGoogleRegistrationForm.stories.js +78 -0
- package/dist/collection/components/sqm-portal-google-registration-form/small-views/RegistrationFieldsView.js +86 -0
- package/dist/collection/components/sqm-portal-google-registration-form/sqm-portal-google-registration-form.js +880 -0
- package/dist/collection/components/sqm-portal-google-registration-form/usePortalGoogleRegistrationForm.js +70 -0
- package/dist/collection/components/sqm-portal-login/PortalLogin.stories.js +28 -4
- package/dist/collection/components/sqm-portal-login/sqm-portal-login-view.js +9 -1
- package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +80 -3
- package/dist/collection/components/sqm-portal-register/sqm-portal-register-view.js +6 -3
- package/dist/collection/components/sqm-portal-registration-form/PortalRegistrationForm.stories.js +1 -5
- package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form-view.js +16 -14
- package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form.js +30 -3
- package/dist/collection/components/sqm-portal-registration-form/usePortalRegistrationForm.js +1 -6
- package/dist/collection/components/sqm-referral-card/ReferralCard.stories.js +20 -0
- package/dist/collection/components/sqm-referral-code/ReferralCode.stories.js +60 -0
- package/dist/collection/components/sqm-referral-code/sqm-referral-code.js +317 -0
- package/dist/collection/components/sqm-referral-code/useReferralCode.js +63 -0
- package/dist/collection/components/sqm-referral-codes/ReferralCodes.stories.js +65 -0
- package/dist/collection/components/sqm-referral-codes/sqm-referral-codes-view.js +69 -0
- package/dist/collection/components/sqm-referral-codes/sqm-referral-codes.js +219 -0
- package/dist/collection/components/sqm-referral-codes/useReferralCodes.js +131 -0
- package/dist/collection/components/sqm-referral-table/ReferralTableRewardsCell.stories.js +0 -1
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +6 -2
- package/dist/collection/components/sqm-rewards-table/RewardsTableCell.stories.js +1 -3
- package/dist/collection/components/sqm-share-button/useShareButton.js +29 -18
- package/dist/collection/components/sqm-share-code/sqm-share-code.js +1 -1
- package/dist/collection/components/sqm-share-link/sqm-share-link.js +1 -1
- package/dist/collection/components/sqm-share-link/useShareLink.js +11 -4
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +12 -4
- package/dist/collection/components/views/copy-text-view.js +18 -3
- package/dist/collection/global/mixins.js +0 -1
- package/dist/collection/stories/Widget.stories.js +5 -0
- package/dist/esm/{GenericTableView-d59d8ab4.js → GenericTableView-6aa9fac9.js} +2 -2
- package/dist/esm/{ShadowViewAddon-1e90c3f1.js → ShadowViewAddon-f91cd444.js} +199 -283
- package/dist/esm/copy-text-view-61eebf5d.js +225 -0
- package/dist/esm/{email-registration-view-a89a88bf.js → email-registration-view-6870d230.js} +2 -2
- package/dist/esm/{global-04c7d3b5.js → global-3611a2b7.js} +3 -3
- package/dist/esm/{index-17b4da69.js → index-60f16d0a.js} +15 -1
- package/dist/esm/{index.module-def4aec5.js → index.module-f3d96fbb.js} +41 -4
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{luxon-7600be8d.js → luxon-9b1f9912.js} +1 -1
- package/dist/esm/mint-components.js +5 -5
- package/dist/esm/{mixins-f60a614c.js → mixins-83f90fa1.js} +0 -1
- package/dist/esm/{mockRewardData-0eb6e778.js → mockRewardData-8b3afd15.js} +1 -1
- package/dist/esm/raisins-plop-target.entry.js +1 -1
- package/dist/esm/{re-render-12fd274a.js → re-render-3b630de2.js} +5 -5
- package/dist/esm/{sqm-asset-card-view-9d93fbdd.js → sqm-asset-card-view-2157b61f.js} +1 -1
- package/dist/esm/sqm-asset-card.entry.js +4 -4
- package/dist/esm/sqm-banking-info-form_16.entry.js +67 -67
- package/dist/esm/sqm-base-registration-form-view-dd481f19.js +66 -0
- package/dist/esm/{sqm-big-stat_39.entry.js → sqm-big-stat_37.entry.js} +90 -150
- package/dist/esm/{sqm-close-button-view-dc65b4e3.js → sqm-close-button-view-0c0bfff8.js} +2 -2
- package/dist/esm/sqm-close-button.entry.js +5 -5
- package/dist/esm/sqm-context-router.entry.js +4 -4
- package/dist/esm/sqm-empty_4.entry.js +11 -7
- package/dist/esm/sqm-form-message.entry.js +2 -2
- package/dist/esm/sqm-google-sign-in.entry.js +41 -0
- 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 +7 -7
- package/dist/esm/{sqm-invoice-table-view-6e13a323.js → sqm-invoice-table-view-b8240dc6.js} +2 -2
- package/dist/esm/{sqm-leaderboard-rank-view-10657658.js → sqm-leaderboard-rank-view-7cd0de83.js} +1 -1
- package/dist/esm/sqm-leaderboard-rank.entry.js +8 -8
- package/dist/esm/{sqm-logout-current-user-view-2c6122cd.js → sqm-logout-current-user-view-02e9f508.js} +1 -1
- package/dist/esm/sqm-logout-current-user.entry.js +7 -7
- package/dist/esm/sqm-name-fields-view-ec19e9e8.js +53 -0
- package/dist/esm/sqm-name-fields.entry.js +55 -0
- package/dist/esm/{sqm-navigation-sidebar-item-view-60ef06cc.js → sqm-navigation-sidebar-item-view-a4e4edb6.js} +4 -4
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +7 -7
- package/dist/esm/{sqm-navigation-sidebar-view-0312e073.js → sqm-navigation-sidebar-view-ce55d74d.js} +1 -1
- package/dist/esm/sqm-navigation-sidebar.entry.js +6 -6
- package/dist/esm/sqm-pagination_3.entry.js +386 -0
- package/dist/esm/sqm-password-field.entry.js +6 -6
- package/dist/esm/sqm-popup-container.entry.js +6 -6
- package/dist/esm/{sqm-portal-container-view-6c582684.js → sqm-portal-container-view-c3be4b88.js} +1 -1
- package/dist/esm/{sqm-portal-email-verification-view-4307c992.js → sqm-portal-email-verification-view-d500dd01.js} +4 -4
- package/dist/esm/sqm-portal-email-verification.entry.js +12 -12
- package/dist/esm/{sqm-portal-forgot-password-view-c2ed8fed.js → sqm-portal-forgot-password-view-4f6c89a7.js} +3 -3
- package/dist/esm/sqm-portal-forgot-password.entry.js +9 -9
- package/dist/esm/sqm-portal-google-registration-form.entry.js +310 -0
- package/dist/esm/sqm-portal-logout.entry.js +4 -4
- package/dist/esm/{sqm-portal-profile-view-ffe955c8.js → sqm-portal-profile-view-2997f902.js} +3 -3
- package/dist/esm/sqm-portal-profile.entry.js +11 -11
- package/dist/esm/sqm-portal-protected-route.entry.js +7 -7
- package/dist/esm/sqm-portal-registration-form-view-30ced11c.js +85 -0
- package/dist/esm/sqm-portal-registration-form.entry.js +18 -221
- package/dist/esm/{sqm-portal-reset-password-view-79a85e02.js → sqm-portal-reset-password-view-e29f1842.js} +3 -3
- package/dist/esm/sqm-portal-reset-password.entry.js +12 -12
- package/dist/esm/{sqm-portal-verify-email-view-d7ea2c56.js → sqm-portal-verify-email-view-d5dcf5c5.js} +3 -3
- package/dist/esm/sqm-portal-verify-email.entry.js +12 -12
- package/dist/esm/sqm-referral-table_11.entry.js +15 -13
- package/dist/esm/sqm-referred-registration.entry.js +7 -7
- 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 +17 -17
- package/dist/esm/sqm-route.entry.js +1 -1
- package/dist/esm/sqm-stencilbook.entry.js +733 -405
- 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-8d140661.js → sqm-text-span-view-d1b54710.js} +1 -1
- package/dist/esm/sqm-text-span.entry.js +3 -3
- package/dist/esm/{stencil-hooks.module-ac12ca1c.js → stencil-hooks.module-e20edc0b.js} +1 -1
- package/dist/esm/{useChildElements-32e1bda1.js → useChildElements-d1d3fedd.js} +3 -3
- package/dist/esm/{useInstantAccessRegistration-46b89952.js → useInstantAccessRegistration-c5d80a2e.js} +4 -4
- package/dist/esm/usePortalRegistrationForm-a00ba140.js +212 -0
- package/dist/esm/{useReferralTable-f4de0650.js → useReferralTable-fbcfc2a7.js} +11 -11
- package/dist/esm/{useRegistrationFormState-9fc1ac80.js → useRegistrationFormState-33f9cb24.js} +3 -3
- package/dist/esm/{utilities-3f5bba22.js → utilities-33996ce7.js} +2 -2
- package/dist/esm-es5/{GenericTableView-d59d8ab4.js → GenericTableView-6aa9fac9.js} +1 -1
- package/dist/esm-es5/ShadowViewAddon-f91cd444.js +1 -0
- package/dist/esm-es5/copy-text-view-61eebf5d.js +1 -0
- package/dist/esm-es5/{email-registration-view-a89a88bf.js → email-registration-view-6870d230.js} +1 -1
- package/dist/esm-es5/{global-04c7d3b5.js → global-3611a2b7.js} +2 -2
- package/dist/esm-es5/{index-17b4da69.js → index-60f16d0a.js} +1 -1
- package/dist/esm-es5/index.module-f3d96fbb.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{luxon-7600be8d.js → luxon-9b1f9912.js} +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/{mixins-f60a614c.js → mixins-83f90fa1.js} +1 -1
- package/dist/esm-es5/{mockRewardData-0eb6e778.js → mockRewardData-8b3afd15.js} +1 -1
- package/dist/esm-es5/raisins-plop-target.entry.js +1 -1
- package/dist/esm-es5/{re-render-12fd274a.js → re-render-3b630de2.js} +1 -1
- package/dist/esm-es5/{sqm-asset-card-view-9d93fbdd.js → sqm-asset-card-view-2157b61f.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 +1 -0
- package/dist/esm-es5/sqm-big-stat_37.entry.js +1 -0
- package/dist/esm-es5/{sqm-close-button-view-dc65b4e3.js → sqm-close-button-view-0c0bfff8.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 -0
- 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-6e13a323.js → sqm-invoice-table-view-b8240dc6.js} +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank-view-7cd0de83.js +1 -0
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/{sqm-logout-current-user-view-2c6122cd.js → sqm-logout-current-user-view-02e9f508.js} +1 -1
- package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
- package/dist/esm-es5/sqm-name-fields-view-ec19e9e8.js +1 -0
- package/dist/esm-es5/sqm-name-fields.entry.js +1 -0
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-a4e4edb6.js +1 -0
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/{sqm-navigation-sidebar-view-0312e073.js → sqm-navigation-sidebar-view-ce55d74d.js} +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
- package/dist/esm-es5/sqm-pagination_3.entry.js +1 -0
- 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-6c582684.js → sqm-portal-container-view-c3be4b88.js} +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-4307c992.js → sqm-portal-email-verification-view-d500dd01.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-forgot-password-view-c2ed8fed.js → sqm-portal-forgot-password-view-4f6c89a7.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 -0
- package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-ffe955c8.js → sqm-portal-profile-view-2997f902.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-30ced11c.js +1 -0
- package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-reset-password-view-79a85e02.js → sqm-portal-reset-password-view-e29f1842.js} +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-verify-email-view-d7ea2c56.js → sqm-portal-verify-email-view-d5dcf5c5.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-8d140661.js → sqm-text-span-view-d1b54710.js} +1 -1
- package/dist/esm-es5/sqm-text-span.entry.js +1 -1
- package/dist/esm-es5/{stencil-hooks.module-ac12ca1c.js → stencil-hooks.module-e20edc0b.js} +1 -1
- package/dist/esm-es5/useChildElements-d1d3fedd.js +1 -0
- package/dist/esm-es5/useInstantAccessRegistration-c5d80a2e.js +1 -0
- package/dist/esm-es5/usePortalRegistrationForm-a00ba140.js +1 -0
- package/dist/esm-es5/{useReferralTable-f4de0650.js → useReferralTable-fbcfc2a7.js} +1 -1
- package/dist/esm-es5/useRegistrationFormState-33f9cb24.js +1 -0
- package/dist/esm-es5/{utilities-3f5bba22.js → utilities-33996ce7.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-56f14840.entry.js → p-070fa30d.entry.js} +1 -1
- package/dist/mint-components/p-0725d1a7.system.entry.js +1 -0
- package/dist/mint-components/{p-1c857edb.entry.js → p-0954e95d.entry.js} +2 -2
- package/dist/mint-components/p-0a20844c.js +13 -0
- package/dist/mint-components/{p-6afb4f48.system.entry.js → p-0aa76ad0.system.entry.js} +1 -1
- package/dist/mint-components/{p-c5d2e4ba.js → p-0b6200b3.js} +1 -1
- package/dist/mint-components/p-0c4c5874.js +1 -0
- package/dist/mint-components/{p-cf690d55.system.entry.js → p-0e89ac7f.system.entry.js} +1 -1
- package/dist/mint-components/{p-8679ed9f.system.entry.js → p-0fd20804.system.entry.js} +1 -1
- package/dist/mint-components/p-0fe8fbe1.system.entry.js +1 -0
- package/dist/mint-components/{p-251e7567.js → p-12d27b9b.js} +1 -1
- package/dist/mint-components/p-13fe7290.js +1 -0
- package/dist/mint-components/{p-7731f793.system.entry.js → p-14dc52dc.system.entry.js} +1 -1
- package/dist/mint-components/{p-c84659a3.system.js → p-15b2063c.system.js} +1 -1
- package/dist/mint-components/{p-021a735d.entry.js → p-1739dfb8.entry.js} +1 -1
- package/dist/mint-components/{p-6b5e355c.system.js → p-1ab3f305.system.js} +1 -1
- package/dist/mint-components/{p-a9050eb0.entry.js → p-1d58a8ff.entry.js} +1 -1
- package/dist/mint-components/{p-4d233cd4.js → p-22110634.js} +1 -1
- package/dist/mint-components/{p-e546347e.system.js → p-222fa722.system.js} +1 -1
- package/dist/mint-components/p-2295cf05.system.js +1 -0
- package/dist/mint-components/p-24d441bf.system.js +1 -0
- package/dist/mint-components/{p-5f1c4160.system.entry.js → p-273ad080.system.entry.js} +1 -1
- package/dist/mint-components/p-27ba7f25.system.entry.js +1 -0
- package/dist/mint-components/p-27f281f4.system.js +1 -0
- package/dist/mint-components/{p-509e29e6.js → p-2dff4fb2.js} +1 -1
- package/dist/mint-components/{p-01cfff8a.system.entry.js → p-38b8050c.system.entry.js} +1 -1
- package/dist/mint-components/p-38bd81d1.system.js +1 -0
- package/dist/mint-components/{p-370a1a73.system.js → p-3ae32130.system.js} +1 -1
- package/dist/mint-components/{p-88aac6a9.system.entry.js → p-3b923175.system.entry.js} +1 -1
- package/dist/mint-components/{p-4edde470.entry.js → p-3c00282b.entry.js} +1 -1
- package/dist/mint-components/p-3c04f8d1.system.js +1 -0
- package/dist/mint-components/p-3d4978ca.system.entry.js +1 -0
- package/dist/mint-components/{p-4ea58025.system.entry.js → p-3dbcd42a.system.entry.js} +1 -1
- package/dist/mint-components/{p-3223ba7b.entry.js → p-3dc9a448.entry.js} +1 -1
- package/dist/mint-components/{p-b6fc1227.system.entry.js → p-44c4a54f.system.entry.js} +1 -1
- package/dist/mint-components/p-455a3f54.system.entry.js +1 -0
- package/dist/mint-components/p-478e8baa.system.js +1 -0
- package/dist/mint-components/p-4b55e96b.entry.js +223 -0
- package/dist/mint-components/p-4b9cdf01.system.entry.js +1 -0
- package/dist/mint-components/p-500a2bff.entry.js +13 -0
- package/dist/mint-components/{p-3ed71bef.system.js → p-5057380a.system.js} +1 -1
- package/dist/mint-components/{p-e3e16c36.js → p-5309ebf3.js} +1 -1
- package/dist/mint-components/p-53238aee.js +1 -0
- package/dist/mint-components/{p-2a414b2e.system.js → p-58bcece7.system.js} +1 -1
- package/dist/mint-components/p-59cf8677.entry.js +1 -0
- package/dist/mint-components/{p-44787d6e.system.js → p-5b6cf6cd.system.js} +1 -1
- package/dist/mint-components/{p-bb00db59.js → p-5c714029.js} +1 -1
- package/dist/mint-components/p-5e61bdfd.entry.js +1 -0
- package/dist/mint-components/{p-ec41d6a4.entry.js → p-5fb1bcb5.entry.js} +6 -6
- package/dist/mint-components/p-6465b781.js +1 -0
- package/dist/mint-components/p-6673a331.system.js +1 -0
- package/dist/mint-components/{p-2ee2ebba.js → p-682450a8.js} +2 -2
- package/dist/mint-components/{p-41a11a7f.js → p-683cfd07.js} +1 -1
- package/dist/mint-components/{p-7d5e0645.system.js → p-697d6e54.system.js} +1 -1
- package/dist/mint-components/p-6a218ad6.js +1 -0
- package/dist/mint-components/p-6a95e6b7.js +52 -0
- package/dist/mint-components/{p-6cef104b.entry.js → p-6ac9d2cf.entry.js} +1 -1
- package/dist/mint-components/p-7027b14d.js +1 -0
- package/dist/mint-components/{p-be4b748a.system.entry.js → p-70eafbbd.system.entry.js} +1 -1
- package/dist/mint-components/{p-35d84041.system.entry.js → p-7141d536.system.entry.js} +1 -1
- package/dist/mint-components/{p-ce621bcc.js → p-71d6b762.js} +1 -1
- package/dist/mint-components/p-74d5d3d1.entry.js +1 -0
- package/dist/mint-components/{p-fbdf0738.entry.js → p-75956e50.entry.js} +1 -1
- package/dist/mint-components/{p-f0806232.system.entry.js → p-7bc9308c.system.entry.js} +1 -1
- package/dist/mint-components/p-7c78da35.system.entry.js +1 -0
- package/dist/mint-components/{p-a1dba9a1.system.entry.js → p-7d2d59ec.system.entry.js} +1 -1
- package/dist/mint-components/{p-e8dde8f4.system.js → p-7e3ada1b.system.js} +1 -1
- package/dist/mint-components/p-7ef0cb0a.system.js +1 -0
- package/dist/mint-components/p-7facf5cd.system.entry.js +1 -0
- package/dist/mint-components/p-823f61da.entry.js +1 -0
- package/dist/mint-components/p-8329e1fa.system.js +1 -0
- package/dist/mint-components/p-8525931d.system.entry.js +1 -0
- package/dist/mint-components/{p-ce5afa40.entry.js → p-863340dc.entry.js} +1 -1
- package/dist/mint-components/{p-178d2d2e.entry.js → p-8799b28f.entry.js} +1 -1
- package/dist/mint-components/p-88104392.system.entry.js +1 -0
- package/dist/mint-components/{p-79da7f18.js → p-88197cfd.js} +1 -1
- package/dist/mint-components/p-8a0a87e7.system.entry.js +1 -0
- package/dist/mint-components/{p-c1a47137.system.entry.js → p-8f705bea.system.entry.js} +1 -1
- package/dist/mint-components/p-8fb2af73.system.js +1 -0
- package/dist/mint-components/{p-02be1a88.js → p-91521e9d.js} +1 -1
- package/dist/mint-components/p-920b48ad.system.entry.js +1 -0
- package/dist/mint-components/p-93124bdb.entry.js +1 -0
- package/dist/mint-components/p-944918d9.entry.js +1 -0
- package/dist/mint-components/p-966eed0f.system.js +1 -0
- package/dist/mint-components/{p-c8610d0c.js → p-9716a83b.js} +1 -1
- package/dist/mint-components/{p-ff17b3a4.system.js → p-989fdd2e.system.js} +1 -1
- package/dist/mint-components/p-9c7a031a.js +1 -0
- package/dist/mint-components/{p-f3053c61.js → p-9d078f60.js} +1 -1
- package/dist/mint-components/{p-1dd69917.system.entry.js → p-9d954277.system.entry.js} +1 -1
- package/dist/mint-components/{p-3036cf58.system.js → p-9e4e3d5f.system.js} +1 -1
- package/dist/mint-components/{p-c7fd9e16.js → p-9fff2218.js} +1 -1
- package/dist/mint-components/p-a1cb66c0.system.js +1 -0
- package/dist/mint-components/p-a2a3d9dc.entry.js +1 -0
- package/dist/mint-components/{p-ed095674.system.js → p-a631db44.system.js} +1 -1
- package/dist/mint-components/{p-59fe4ad1.system.js → p-a67e8ef4.system.js} +1 -1
- package/dist/mint-components/p-a8bf33fc.js +1 -0
- package/dist/mint-components/p-a9166b6a.entry.js +1 -0
- package/dist/mint-components/{p-fb93c962.js → p-aa5446c1.js} +1 -1
- package/dist/mint-components/{p-4502ed11.system.entry.js → p-adc14a77.system.entry.js} +1 -1
- package/dist/mint-components/{p-2dd67762.entry.js → p-aeea67a3.entry.js} +1 -1
- package/dist/mint-components/{p-a7c2ced2.system.entry.js → p-b043693d.system.entry.js} +1 -1
- package/dist/mint-components/{p-5d0c9424.js → p-b11f43ee.js} +1 -1
- package/dist/mint-components/{p-1b9e6fc6.js → p-b33381a7.js} +1 -1
- package/dist/mint-components/{p-639d3dd3.entry.js → p-b3499953.entry.js} +1 -1
- package/dist/mint-components/{p-eaada4da.js → p-b402df18.js} +1 -1
- package/dist/mint-components/{p-fd2c5407.js → p-b619a5e0.js} +1 -1
- package/dist/mint-components/p-b667d890.system.entry.js +1 -0
- package/dist/mint-components/p-b6a4ce83.entry.js +1 -0
- package/dist/mint-components/p-b6f41077.entry.js +1 -0
- package/dist/mint-components/p-b7bd7ff0.js +1 -0
- package/dist/mint-components/p-b7edef12.system.entry.js +1 -0
- package/dist/mint-components/p-b959acfb.entry.js +9 -0
- package/dist/mint-components/{p-9c310991.system.entry.js → p-bc305236.system.entry.js} +1 -1
- package/dist/mint-components/{p-7f088154.entry.js → p-bd5706ba.entry.js} +1 -1
- package/dist/mint-components/p-bebe70b4.js +391 -0
- package/dist/mint-components/p-c037a0f3.entry.js +1 -0
- package/dist/mint-components/{p-c5577dd7.system.js → p-c1ede4f5.system.js} +1 -1
- package/dist/mint-components/{p-fb20eb5e.system.entry.js → p-c2bc302f.system.entry.js} +1 -1
- package/dist/mint-components/{p-92110eef.entry.js → p-c33ccfb7.entry.js} +1 -1
- package/dist/mint-components/p-c4c922fc.system.entry.js +1 -0
- package/dist/mint-components/p-c56b47e5.system.js +1 -0
- package/dist/mint-components/p-c5dd12cf.entry.js +1 -0
- package/dist/mint-components/{p-f6934a55.system.js → p-cd1d497f.system.js} +1 -1
- package/dist/mint-components/p-cd39acd0.system.entry.js +1 -0
- package/dist/mint-components/p-d23d5113.js +1 -0
- package/dist/mint-components/{p-8704937c.js → p-d47569d0.js} +1 -1
- package/dist/mint-components/{p-ce9e7c98.system.js → p-d477a07b.system.js} +1 -1
- package/dist/mint-components/p-d4c0d53f.js +1 -0
- package/dist/mint-components/{p-b4c52c5a.entry.js → p-d59c19ba.entry.js} +2 -2
- package/dist/mint-components/{p-137ea86e.entry.js → p-d9dd65fd.entry.js} +1 -1
- package/dist/mint-components/{p-aad11a68.entry.js → p-dacefee2.entry.js} +1 -1
- package/dist/mint-components/{p-4f775e84.system.js → p-e0c608e4.system.js} +1 -1
- package/dist/mint-components/p-e10be944.entry.js +1 -0
- package/dist/mint-components/{p-ac1bf045.js → p-e56447fd.js} +1 -1
- package/dist/mint-components/{p-e3735866.entry.js → p-e605fe66.entry.js} +2 -2
- package/dist/mint-components/p-e64c49dd.system.js +1 -0
- package/dist/mint-components/{p-86990110.entry.js → p-e864a155.entry.js} +1 -1
- package/dist/mint-components/p-eac81420.entry.js +1 -0
- package/dist/mint-components/{p-88a2e66e.system.entry.js → p-ec379cf4.system.entry.js} +1 -1
- package/dist/mint-components/p-ec867cad.system.entry.js +1 -0
- package/dist/mint-components/p-ec9c8ced.system.js +1 -0
- package/dist/mint-components/{p-0d8c53ac.system.js → p-ef7b966e.system.js} +1 -1
- package/dist/mint-components/p-f3d3abd0.system.js +1 -0
- package/dist/mint-components/{p-5cac90e8.system.entry.js → p-f7175fc2.system.entry.js} +1 -1
- package/dist/mint-components/p-f81cc2cd.entry.js +1 -0
- package/dist/mint-components/{p-5b333fa8.system.entry.js → p-f8450975.system.entry.js} +1 -1
- package/dist/mint-components/p-f8b41805.system.js +1 -0
- package/dist/mint-components/p-fde23de1.entry.js +13 -0
- package/dist/mint-components/{p-4e48267b.system.js → p-ff19bf56.system.js} +1 -1
- package/dist/types/components/sqm-base-registration/BaseRegistrationForm.stories.d.ts +6 -0
- package/dist/types/components/sqm-base-registration/sqm-base-registration-form-view.d.ts +19 -0
- package/dist/types/components/sqm-checkbox-field/sqm-checkbox-field-view.d.ts +2 -1
- package/dist/types/components/sqm-checkbox-field/sqm-checkbox-field.d.ts +5 -5
- package/dist/types/components/sqm-empty/sqm-empty.d.ts +1 -1
- package/dist/types/components/sqm-google-sign-in/sqm-google-sign-in.d.ts +12 -0
- package/dist/types/components/{sqm-marketing-emails-checkbox/MarketingEmailsCheckbox.stories.d.ts → sqm-pagination/Pagination.stories.d.ts} +0 -3
- package/dist/types/components/sqm-pagination/sqm-pagination-view.d.ts +15 -0
- package/dist/types/components/sqm-pagination/sqm-pagination.d.ts +22 -0
- package/dist/types/components/sqm-pagination/usePagination.d.ts +16 -0
- package/dist/types/components/sqm-portal-container/sqm-portal-container.d.ts +0 -1
- package/dist/types/components/sqm-portal-google-registration-form/PortalGoogleRegistrationForm.stories.d.ts +8 -0
- package/dist/types/components/sqm-portal-google-registration-form/small-views/RegistrationFieldsView.d.ts +31 -0
- package/dist/types/components/sqm-portal-google-registration-form/sqm-portal-google-registration-form.d.ts +155 -0
- package/dist/types/components/sqm-portal-google-registration-form/usePortalGoogleRegistrationForm.d.ts +14 -0
- package/dist/types/components/sqm-portal-login/PortalLogin.stories.d.ts +1 -0
- package/dist/types/components/sqm-portal-login/sqm-portal-login-view.d.ts +2 -0
- package/dist/types/components/sqm-portal-login/sqm-portal-login.d.ts +8 -0
- package/dist/types/components/sqm-portal-registration-form/PortalRegistrationForm.stories.d.ts +0 -1
- package/dist/types/components/sqm-portal-registration-form/sqm-portal-registration-form-view.d.ts +2 -1
- package/dist/types/components/sqm-portal-registration-form/sqm-portal-registration-form.d.ts +7 -1
- package/dist/types/components/sqm-portal-registration-form/usePortalRegistrationForm.d.ts +1 -0
- package/dist/types/components/sqm-referral-card/ReferralCard.stories.d.ts +1 -0
- package/dist/types/components/sqm-referral-code/ReferralCode.stories.d.ts +18 -0
- package/dist/types/components/sqm-referral-code/sqm-referral-code.d.ts +70 -0
- package/dist/types/components/sqm-referral-code/useReferralCode.d.ts +3 -0
- package/dist/types/components/sqm-referral-codes/ReferralCodes.stories.d.ts +12 -0
- package/dist/types/components/sqm-referral-codes/sqm-referral-codes-view.d.ts +16 -0
- package/dist/types/components/sqm-referral-codes/sqm-referral-codes.d.ts +39 -0
- package/dist/types/components/sqm-referral-codes/useReferralCodes.d.ts +52 -0
- package/dist/types/components/sqm-share-link/useShareLink.d.ts +1 -0
- package/dist/types/components/views/copy-text-view.d.ts +3 -0
- package/dist/types/components.d.ts +544 -49
- package/dist/types/global/mixins.d.ts +0 -2
- package/dist/types/stories/Widget.stories.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 +1 -1
- package/dist/collection/components/sqm-marketing-emails-checkbox/MarketingEmailsCheckbox.stories.js +0 -11
- package/dist/collection/components/sqm-marketing-emails-checkbox/sqm-marketing-emails-checkbox.js +0 -130
- package/dist/esm/sqm-portal-registration-form-view-1d3066e1.js +0 -83
- package/dist/esm-es5/ShadowViewAddon-1e90c3f1.js +0 -1
- package/dist/esm-es5/index.module-def4aec5.js +0 -1
- package/dist/esm-es5/sqm-big-stat_39.entry.js +0 -1
- package/dist/esm-es5/sqm-leaderboard-rank-view-10657658.js +0 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-60ef06cc.js +0 -1
- package/dist/esm-es5/sqm-portal-registration-form-view-1d3066e1.js +0 -1
- package/dist/esm-es5/useChildElements-32e1bda1.js +0 -1
- package/dist/esm-es5/useInstantAccessRegistration-46b89952.js +0 -1
- package/dist/esm-es5/useRegistrationFormState-9fc1ac80.js +0 -1
- package/dist/mint-components/p-02424350.system.js +0 -1
- package/dist/mint-components/p-03494732.entry.js +0 -1
- package/dist/mint-components/p-07f675ab.system.entry.js +0 -1
- package/dist/mint-components/p-0a898ab1.js +0 -1
- package/dist/mint-components/p-0b9fa97f.js +0 -1
- package/dist/mint-components/p-10e89d0a.entry.js +0 -1
- package/dist/mint-components/p-18a0e0d7.entry.js +0 -13
- package/dist/mint-components/p-21233898.system.entry.js +0 -1
- package/dist/mint-components/p-32d1d162.entry.js +0 -1
- package/dist/mint-components/p-3d4656bb.system.js +0 -1
- package/dist/mint-components/p-3ec16698.entry.js +0 -13
- package/dist/mint-components/p-40b1de58.js +0 -1
- package/dist/mint-components/p-4112e198.system.js +0 -1
- package/dist/mint-components/p-4df8f1d2.system.js +0 -1
- package/dist/mint-components/p-51f517a2.js +0 -1
- package/dist/mint-components/p-54051e76.system.entry.js +0 -1
- package/dist/mint-components/p-58ef25d3.system.entry.js +0 -1
- package/dist/mint-components/p-5be235f9.entry.js +0 -1
- package/dist/mint-components/p-61eab172.js +0 -1
- package/dist/mint-components/p-64c3217a.js +0 -1
- package/dist/mint-components/p-674a64fe.system.js +0 -1
- package/dist/mint-components/p-675e974b.system.js +0 -1
- package/dist/mint-components/p-7049e9b0.entry.js +0 -1
- package/dist/mint-components/p-711ba77e.system.entry.js +0 -1
- package/dist/mint-components/p-770368bc.system.js +0 -1
- package/dist/mint-components/p-79191f88.entry.js +0 -1
- package/dist/mint-components/p-80ed03b6.entry.js +0 -9
- package/dist/mint-components/p-8b5b78ca.entry.js +0 -1
- package/dist/mint-components/p-8e907ac7.system.entry.js +0 -1
- package/dist/mint-components/p-91669312.entry.js +0 -1
- package/dist/mint-components/p-9dcfa187.system.js +0 -1
- package/dist/mint-components/p-9f0629ba.system.entry.js +0 -1
- package/dist/mint-components/p-a51533cb.system.js +0 -1
- package/dist/mint-components/p-a6a7dcaa.js +0 -1
- package/dist/mint-components/p-a8f7cb95.js +0 -1
- package/dist/mint-components/p-af062c8f.system.entry.js +0 -1
- package/dist/mint-components/p-afd366ae.system.entry.js +0 -1
- package/dist/mint-components/p-b370fca8.system.js +0 -1
- package/dist/mint-components/p-b3b5b4b7.system.entry.js +0 -1
- package/dist/mint-components/p-b5861974.system.entry.js +0 -1
- package/dist/mint-components/p-c8878e79.entry.js +0 -1
- package/dist/mint-components/p-cb923bed.system.entry.js +0 -1
- package/dist/mint-components/p-d49e2f7a.js +0 -1
- package/dist/mint-components/p-d8d2de11.entry.js +0 -1
- package/dist/mint-components/p-dd0d79bf.entry.js +0 -1
- package/dist/mint-components/p-dd7ee007.system.js +0 -1
- package/dist/mint-components/p-eba44835.system.entry.js +0 -1
- package/dist/mint-components/p-ecdb5b0e.entry.js +0 -223
- package/dist/mint-components/p-ed17e637.system.js +0 -1
- package/dist/mint-components/p-ed6ebd60.system.js +0 -1
- package/dist/mint-components/p-fe66d24c.js +0 -391
- package/dist/types/components/sqm-marketing-emails-checkbox/sqm-marketing-emails-checkbox.d.ts +0 -28
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { r as registerInstance, h as h$1 } from './index-
|
|
2
|
-
import { n as h } from './stencil-hooks.module-
|
|
3
|
-
import { i as intl } from './global-
|
|
4
|
-
import { d as dist,
|
|
1
|
+
import { r as registerInstance, h as h$1 } from './index-60f16d0a.js';
|
|
2
|
+
import { n as h } from './stencil-hooks.module-e20edc0b.js';
|
|
3
|
+
import { i as intl } from './global-3611a2b7.js';
|
|
4
|
+
import { d as dist, z, K, E as En, i as isDemo } from './index.module-f3d96fbb.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
|
-
import { L as LeaderboardRankView } from './sqm-leaderboard-rank-view-
|
|
6
|
+
import { L as LeaderboardRankView } from './sqm-leaderboard-rank-view-7cd0de83.js';
|
|
7
7
|
|
|
8
8
|
const GET_RANK = dist.gql `
|
|
9
9
|
query ($type: String!, $filter: UserLeaderboardFilterInput) {
|
|
@@ -20,10 +20,10 @@ const GET_RANK = dist.gql `
|
|
|
20
20
|
`;
|
|
21
21
|
function useLeaderboardRank(props) {
|
|
22
22
|
var _a, _b, _c, _d;
|
|
23
|
-
const programIdContext =
|
|
23
|
+
const programIdContext = z();
|
|
24
24
|
// Default to context, overriden by props
|
|
25
25
|
const programId = (_a = props.programId) !== null && _a !== void 0 ? _a : programIdContext;
|
|
26
|
-
const user =
|
|
26
|
+
const user = K();
|
|
27
27
|
const rankVariables = programId
|
|
28
28
|
? {
|
|
29
29
|
type: props.leaderboardType,
|
|
@@ -36,7 +36,7 @@ function useLeaderboardRank(props) {
|
|
|
36
36
|
if (props.interval) {
|
|
37
37
|
rankVariables.filter["interval"] = props.interval;
|
|
38
38
|
}
|
|
39
|
-
const { data: rankData } =
|
|
39
|
+
const { data: rankData } = En(GET_RANK, rankVariables, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
40
40
|
const fullRankText = ((_b = rankData === null || rankData === void 0 ? void 0 : rankData.viewer) === null || _b === void 0 ? void 0 : _b.leaderboardRank) ? intl.formatMessage({ id: "rankText", defaultMessage: props.rankText }, {
|
|
41
41
|
rank: (_d = (_c = rankData === null || rankData === void 0 ? void 0 : rankData.viewer) === null || _c === void 0 ? void 0 : _c.leaderboardRank) === null || _d === void 0 ? void 0 : _d[props.rankType],
|
|
42
42
|
})
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { r as registerInstance, h as h$1 } from './index-
|
|
2
|
-
import { n as h } from './stencil-hooks.module-
|
|
3
|
-
import { d as dist,
|
|
1
|
+
import { r as registerInstance, h as h$1 } from './index-60f16d0a.js';
|
|
2
|
+
import { n as h } from './stencil-hooks.module-e20edc0b.js';
|
|
3
|
+
import { d as dist, K, E as En, b as setUserIdentity, i as isDemo } from './index.module-f3d96fbb.js';
|
|
4
4
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
5
|
-
import './JSS-67b5cff8.js';
|
|
6
5
|
import { g as getProps } from './utils-334c1e34.js';
|
|
7
|
-
import
|
|
6
|
+
import './JSS-67b5cff8.js';
|
|
7
|
+
import { L as LogoutCurrentUserView } from './sqm-logout-current-user-view-02e9f508.js';
|
|
8
8
|
|
|
9
9
|
const GET_USER_DETAILS = dist.gql `
|
|
10
10
|
query getUserDetails {
|
|
@@ -19,8 +19,8 @@ const GET_USER_DETAILS = dist.gql `
|
|
|
19
19
|
`;
|
|
20
20
|
function useLogoutCurrentUser(props) {
|
|
21
21
|
var _a, _b;
|
|
22
|
-
const user =
|
|
23
|
-
const { loading, data } =
|
|
22
|
+
const user = K();
|
|
23
|
+
const { loading, data } = En(GET_USER_DETAILS, {}, !user);
|
|
24
24
|
const onSwitchClick = () => {
|
|
25
25
|
setUserIdentity(undefined);
|
|
26
26
|
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { h } from './index-60f16d0a.js';
|
|
2
|
+
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
3
|
+
import { E as ErrorStyles } from './mixins-83f90fa1.js';
|
|
4
|
+
|
|
5
|
+
const style = {
|
|
6
|
+
ErrorStyle: ErrorStyles,
|
|
7
|
+
FieldsContainer: {
|
|
8
|
+
"& sl-input": {
|
|
9
|
+
"margin-bottom": "var(--sl-spacing-large)",
|
|
10
|
+
},
|
|
11
|
+
},
|
|
12
|
+
};
|
|
13
|
+
const vanillaStyle = `
|
|
14
|
+
:host {
|
|
15
|
+
margin: 0 auto;
|
|
16
|
+
width: 100%;
|
|
17
|
+
display: block;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
sl-input::part(label){
|
|
21
|
+
font-size: var(--sl-input-label-font-size-small);
|
|
22
|
+
font-weight: var(--sl-font-weight-semibold);
|
|
23
|
+
}
|
|
24
|
+
`;
|
|
25
|
+
const sheet = createStyleSheet(style);
|
|
26
|
+
const styleString = sheet.toString();
|
|
27
|
+
function NameFieldsView(props) {
|
|
28
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
29
|
+
const { states } = props;
|
|
30
|
+
const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
|
|
31
|
+
return (h("div", { class: sheet.classes.FieldsContainer },
|
|
32
|
+
h("style", { type: "text/css" },
|
|
33
|
+
vanillaStyle,
|
|
34
|
+
styleString),
|
|
35
|
+
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) ? {
|
|
36
|
+
value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g.firstName,
|
|
37
|
+
}
|
|
38
|
+
: {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.firstName) ? {
|
|
39
|
+
class: sheet.classes.ErrorStyle,
|
|
40
|
+
helpText: (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.firstName) || "Cannot be empty",
|
|
41
|
+
}
|
|
42
|
+
: []))),
|
|
43
|
+
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) ? {
|
|
44
|
+
value: (_o = (_m = states.registrationFormState) === null || _m === void 0 ? void 0 : _m.initialData) === null || _o === void 0 ? void 0 : _o.lastName,
|
|
45
|
+
}
|
|
46
|
+
: {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.lastName) ? {
|
|
47
|
+
class: sheet.classes.ErrorStyle,
|
|
48
|
+
helpText: (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.lastName) || "Cannot be empty",
|
|
49
|
+
}
|
|
50
|
+
: [])))));
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export { NameFieldsView as N };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { r as registerInstance, h as h$1 } from './index-60f16d0a.js';
|
|
2
|
+
import { i as d, n as h } from './stencil-hooks.module-e20edc0b.js';
|
|
3
|
+
import { i as isDemo } from './index.module-f3d96fbb.js';
|
|
4
|
+
import { c as cjs } from './cjs-bdfb4486.js';
|
|
5
|
+
import './JSS-67b5cff8.js';
|
|
6
|
+
import './mixins-83f90fa1.js';
|
|
7
|
+
import { R as REGISTRATION_FORM_STATE_CONTEXT } from './useRegistrationFormState-33f9cb24.js';
|
|
8
|
+
import { N as NameFieldsView } from './sqm-name-fields-view-ec19e9e8.js';
|
|
9
|
+
|
|
10
|
+
function useNameFields(props) {
|
|
11
|
+
const registrationFormState = d(REGISTRATION_FORM_STATE_CONTEXT);
|
|
12
|
+
return {
|
|
13
|
+
states: {
|
|
14
|
+
registrationFormState,
|
|
15
|
+
content: {
|
|
16
|
+
lastNameLabel: props.lastNameLabel,
|
|
17
|
+
firstNameLabel: props.firstNameLabel,
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
const NameFields = class {
|
|
24
|
+
constructor(hostRef) {
|
|
25
|
+
registerInstance(this, hostRef);
|
|
26
|
+
this.ignored = true;
|
|
27
|
+
/**
|
|
28
|
+
* @uiName First name label
|
|
29
|
+
*/
|
|
30
|
+
this.firstNameLabel = "First Name";
|
|
31
|
+
/**
|
|
32
|
+
* @uiName Last name label
|
|
33
|
+
*/
|
|
34
|
+
this.lastNameLabel = "Last Name";
|
|
35
|
+
h(this);
|
|
36
|
+
}
|
|
37
|
+
disconnectedCallback() { }
|
|
38
|
+
render() {
|
|
39
|
+
const { states } = isDemo() ? useNameFieldsDemo(this) : useNameFields(this);
|
|
40
|
+
return h$1(NameFieldsView, { states: states });
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
function useNameFieldsDemo(props) {
|
|
44
|
+
return cjs({
|
|
45
|
+
states: {
|
|
46
|
+
validationErrors: [],
|
|
47
|
+
content: {
|
|
48
|
+
firstNameLabel: props.firstNameLabel,
|
|
49
|
+
lastNameLabel: props.lastNameLabel,
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export { NameFields as sqm_name_fields };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { h } from './index-
|
|
2
|
-
import {
|
|
3
|
-
import { g as gap } from './mixins-f60a614c.js';
|
|
1
|
+
import { h } from './index-60f16d0a.js';
|
|
2
|
+
import { c as xn } from './index.module-f3d96fbb.js';
|
|
4
3
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
4
|
+
import { g as gap } from './mixins-83f90fa1.js';
|
|
5
5
|
|
|
6
6
|
function NavigationSidebarItemView(props) {
|
|
7
7
|
const { states, data } = props;
|
|
@@ -33,7 +33,7 @@ function NavigationSidebarItemView(props) {
|
|
|
33
33
|
const styleString = sheet.toString();
|
|
34
34
|
return (h("a", { part: "sqm-link", href: data.path, onClick: (e) => {
|
|
35
35
|
e.preventDefault();
|
|
36
|
-
|
|
36
|
+
xn.push(data.path);
|
|
37
37
|
}, class: sheet.classes.ItemContainer },
|
|
38
38
|
h("style", { type: "text/css" }, styleString),
|
|
39
39
|
h("sl-icon", { class: sheet.classes.Icon, name: data.icon }),
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { r as registerInstance, h as h$1 } from './index-
|
|
2
|
-
import { n as h } from './stencil-hooks.module-
|
|
3
|
-
import {
|
|
1
|
+
import { r as registerInstance, h as h$1 } from './index-60f16d0a.js';
|
|
2
|
+
import { n as h } from './stencil-hooks.module-e20edc0b.js';
|
|
3
|
+
import { j as jn, i as isDemo } from './index.module-f3d96fbb.js';
|
|
4
4
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
5
|
-
import './mixins-f60a614c.js';
|
|
6
|
-
import './JSS-67b5cff8.js';
|
|
7
5
|
import { g as getProps } from './utils-334c1e34.js';
|
|
8
|
-
import
|
|
6
|
+
import './JSS-67b5cff8.js';
|
|
7
|
+
import './mixins-83f90fa1.js';
|
|
8
|
+
import { N as NavigationSidebarItemView } from './sqm-navigation-sidebar-item-view-a4e4edb6.js';
|
|
9
9
|
|
|
10
10
|
function useNavigationSidebarItem(props) {
|
|
11
|
-
const currentPage =
|
|
11
|
+
const currentPage = jn();
|
|
12
12
|
return {
|
|
13
13
|
states: {
|
|
14
14
|
active: currentPage.pathname === props.path,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as registerInstance, h as h$1 } from './index-
|
|
2
|
-
import { n as h, k as useState, f as useEffect } from './stencil-hooks.module-
|
|
3
|
-
import {
|
|
4
|
-
import { N as NavigationSidebarView } from './sqm-navigation-sidebar-view-
|
|
1
|
+
import { r as registerInstance, h as h$1 } from './index-60f16d0a.js';
|
|
2
|
+
import { n as h, k as useState, f as useEffect } from './stencil-hooks.module-e20edc0b.js';
|
|
3
|
+
import { j as jn, z } from './index.module-f3d96fbb.js';
|
|
4
|
+
import { N as NavigationSidebarView } from './sqm-navigation-sidebar-view-ce55d74d.js';
|
|
5
5
|
|
|
6
6
|
const NavigationSidebar = class {
|
|
7
7
|
constructor(hostRef) {
|
|
@@ -16,8 +16,8 @@ const NavigationSidebar = class {
|
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
18
|
function useNavigationSidebar() {
|
|
19
|
-
const location =
|
|
20
|
-
const programId =
|
|
19
|
+
const location = jn();
|
|
20
|
+
const programId = z();
|
|
21
21
|
const [checked, setChecked] = useState(false);
|
|
22
22
|
// Close hamburger menu after navigation
|
|
23
23
|
useEffect(() => {
|
|
@@ -0,0 +1,386 @@
|
|
|
1
|
+
import { h, F as Fragment, r as registerInstance } from './index-60f16d0a.js';
|
|
2
|
+
import { n as h$1, k as useState } from './stencil-hooks.module-e20edc0b.js';
|
|
3
|
+
import { i as intl } from './global-3611a2b7.js';
|
|
4
|
+
import { D as Dn, i as isDemo, d as dist, z, K, E as En, x as xe, n as ne } from './index.module-f3d96fbb.js';
|
|
5
|
+
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
|
+
import { g as getProps } from './utils-334c1e34.js';
|
|
7
|
+
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
8
|
+
import { R as REFERRAL_CODES_PAGINATION_CONTEXT, a as REFERRAL_CODES_NAMESPACE, S as SET_CODE_COPIED, C as CopyTextView, u as useReferralCodes } from './copy-text-view-61eebf5d.js';
|
|
9
|
+
import './mixins-83f90fa1.js';
|
|
10
|
+
|
|
11
|
+
const style = {
|
|
12
|
+
Container: {
|
|
13
|
+
display: "flex",
|
|
14
|
+
justifyContent: "flex-end",
|
|
15
|
+
alignItems: "center",
|
|
16
|
+
gap: "var(--sl-spacing-small)",
|
|
17
|
+
width: "100%",
|
|
18
|
+
},
|
|
19
|
+
TextContainer: {
|
|
20
|
+
display: "flex",
|
|
21
|
+
gap: "var(--sl-spacing-xx-small)",
|
|
22
|
+
},
|
|
23
|
+
};
|
|
24
|
+
const sheet = createStyleSheet(style);
|
|
25
|
+
const styleString = sheet.toString();
|
|
26
|
+
function PaginationView(props) {
|
|
27
|
+
const { states, callbacks, text } = props;
|
|
28
|
+
const { onNext, onPrev } = callbacks;
|
|
29
|
+
const { currentPage, totalPages, loading } = states;
|
|
30
|
+
if (totalPages === 1)
|
|
31
|
+
return h(Fragment, null);
|
|
32
|
+
return (h("span", { class: sheet.classes.Container, part: "sqm-base" },
|
|
33
|
+
h("style", { type: "text/css" }, styleString),
|
|
34
|
+
!loading && (h(Fragment, null,
|
|
35
|
+
h("sl-button", { onClick: onPrev, part: "sqm-pagination-button", circle: true, disabled: currentPage === 1 },
|
|
36
|
+
h("sl-icon", { name: "chevron-left", label: "Previous Page" })),
|
|
37
|
+
h("div", { class: sheet.classes.TextContainer }, text.paginationText))),
|
|
38
|
+
h("sl-button", { onClick: onNext, part: "sqm-pagination-button", circle: true, disabled: currentPage === totalPages },
|
|
39
|
+
h("sl-icon", { name: "chevron-right", label: "Previous Page" }))));
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
function usePagination(props) {
|
|
43
|
+
var _a;
|
|
44
|
+
const context = Dn(REFERRAL_CODES_PAGINATION_CONTEXT);
|
|
45
|
+
const currentPage = context.states.currentPage + 1;
|
|
46
|
+
const totalPages = (_a = context.states) === null || _a === void 0 ? void 0 : _a.pageCount;
|
|
47
|
+
return {
|
|
48
|
+
states: {
|
|
49
|
+
currentPage,
|
|
50
|
+
totalPages,
|
|
51
|
+
loading: context.states.loading,
|
|
52
|
+
},
|
|
53
|
+
callbacks: {
|
|
54
|
+
onNext: () => { var _a, _b; return (_a = context.callbacks) === null || _a === void 0 ? void 0 : _a.setCurrentPage(((_b = context.states) === null || _b === void 0 ? void 0 : _b.currentPage) + 1); },
|
|
55
|
+
onPrev: () => { var _a, _b; return (_a = context.callbacks) === null || _a === void 0 ? void 0 : _a.setCurrentPage(((_b = context.states) === null || _b === void 0 ? void 0 : _b.currentPage) - 1); },
|
|
56
|
+
},
|
|
57
|
+
text: {
|
|
58
|
+
paginationText: intl.formatMessage({
|
|
59
|
+
id: `paginationText`,
|
|
60
|
+
defaultMessage: props.paginationText,
|
|
61
|
+
}, {
|
|
62
|
+
currentPage,
|
|
63
|
+
totalPages,
|
|
64
|
+
}),
|
|
65
|
+
},
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
const Pagination = class {
|
|
70
|
+
constructor(hostRef) {
|
|
71
|
+
registerInstance(this, hostRef);
|
|
72
|
+
this.ignored = true;
|
|
73
|
+
/**
|
|
74
|
+
* @uiName Pagination text
|
|
75
|
+
*/
|
|
76
|
+
this.paginationText = "{currentPage} of {totalPages}";
|
|
77
|
+
h$1(this);
|
|
78
|
+
}
|
|
79
|
+
disconnectedCallback() { }
|
|
80
|
+
render() {
|
|
81
|
+
const hookProps = isDemo()
|
|
82
|
+
? useDemoPagination(getProps(this))
|
|
83
|
+
: usePagination(getProps(this));
|
|
84
|
+
return h(PaginationView, Object.assign({}, hookProps));
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
function useDemoPagination(props) {
|
|
88
|
+
const [currentPage, setCurrentPage] = useState(1);
|
|
89
|
+
return cjs({
|
|
90
|
+
states: {
|
|
91
|
+
currentPage,
|
|
92
|
+
totalPages: 5,
|
|
93
|
+
loading: false,
|
|
94
|
+
},
|
|
95
|
+
callbacks: {
|
|
96
|
+
onNext: () => setCurrentPage(currentPage + 1),
|
|
97
|
+
onPrev: () => setCurrentPage(currentPage - 1),
|
|
98
|
+
},
|
|
99
|
+
text: {
|
|
100
|
+
paginationText: intl.formatMessage({
|
|
101
|
+
id: `paginationText`,
|
|
102
|
+
defaultMessage: props.paginationText || "{currentPage} of {totalPages}",
|
|
103
|
+
}, {
|
|
104
|
+
currentPage: currentPage,
|
|
105
|
+
totalPages: 5,
|
|
106
|
+
}),
|
|
107
|
+
},
|
|
108
|
+
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
const MessageLinkQuery = dist.gql `
|
|
112
|
+
query getReferralCode($programId: ID) {
|
|
113
|
+
user: viewer {
|
|
114
|
+
... on User {
|
|
115
|
+
referralCode(programId: $programId)
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
`;
|
|
120
|
+
const WIDGET_ENGAGEMENT_EVENT = dist.gql `
|
|
121
|
+
mutation loadEvent($eventMeta: UserAnalyticsEvent!) {
|
|
122
|
+
createUserAnalyticsEvent(eventMeta: $eventMeta)
|
|
123
|
+
}
|
|
124
|
+
`;
|
|
125
|
+
function useReferralCode(props) {
|
|
126
|
+
var _a, _b;
|
|
127
|
+
const { programId = z() } = props;
|
|
128
|
+
const user = K();
|
|
129
|
+
const engagementMedium = ne();
|
|
130
|
+
const contextData = Dn(REFERRAL_CODES_NAMESPACE);
|
|
131
|
+
const { data } = En(MessageLinkQuery, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt) || (contextData === null || contextData === void 0 ? void 0 : contextData.referralCode) !== undefined);
|
|
132
|
+
const [sendLoadEvent] = xe(WIDGET_ENGAGEMENT_EVENT);
|
|
133
|
+
const [setCopied] = xe(SET_CODE_COPIED);
|
|
134
|
+
const copyString = (_b = ((contextData === null || contextData === void 0 ? void 0 : contextData.referralCode) || ((_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.referralCode))) !== null && _b !== void 0 ? _b :
|
|
135
|
+
// Shown during loading
|
|
136
|
+
"...";
|
|
137
|
+
const [open, setOpen] = useState(false);
|
|
138
|
+
async function onClick() {
|
|
139
|
+
if (contextData) {
|
|
140
|
+
await setCopied({ referralCode: contextData.referralCode });
|
|
141
|
+
contextData.refresh();
|
|
142
|
+
}
|
|
143
|
+
// Should well supported: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
|
|
144
|
+
// Only if called from a user-initiated event
|
|
145
|
+
navigator.clipboard.writeText(copyString);
|
|
146
|
+
setOpen(true);
|
|
147
|
+
setTimeout(() => setOpen(false), props.tooltiplifespan);
|
|
148
|
+
sendLoadEvent({
|
|
149
|
+
eventMeta: {
|
|
150
|
+
programId,
|
|
151
|
+
id: user === null || user === void 0 ? void 0 : user.id,
|
|
152
|
+
accountId: user === null || user === void 0 ? void 0 : user.accountId,
|
|
153
|
+
type: "USER_REFERRAL_PROGRAM_ENGAGEMENT_EVENT",
|
|
154
|
+
meta: {
|
|
155
|
+
engagementMedium,
|
|
156
|
+
shareMedium: "DIRECT",
|
|
157
|
+
},
|
|
158
|
+
},
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
return {
|
|
162
|
+
...props,
|
|
163
|
+
onClick,
|
|
164
|
+
open,
|
|
165
|
+
copyString: copyString,
|
|
166
|
+
isCopied: contextData === null || contextData === void 0 ? void 0 : contextData.isCopied,
|
|
167
|
+
showNotificationText: props.showNotificationText && !!(contextData === null || contextData === void 0 ? void 0 : contextData.singleUse),
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
const ReferralCode = class {
|
|
172
|
+
constructor(hostRef) {
|
|
173
|
+
registerInstance(this, hostRef);
|
|
174
|
+
/**
|
|
175
|
+
* Shown inside a tooltip after someone has successfully copied the link to their clipboard
|
|
176
|
+
*
|
|
177
|
+
* @uiName Tooltip text
|
|
178
|
+
*/
|
|
179
|
+
this.tooltiptext = "Copied to Clipboard";
|
|
180
|
+
/**
|
|
181
|
+
* Boolean used to show notification text below input
|
|
182
|
+
*
|
|
183
|
+
* @uiName Show notification text
|
|
184
|
+
*/
|
|
185
|
+
this.showNotificationText = false;
|
|
186
|
+
/**
|
|
187
|
+
* Shown underneath single-use promo codes when the user has already copied the code
|
|
188
|
+
*
|
|
189
|
+
* @uiName Notification text
|
|
190
|
+
*/
|
|
191
|
+
this.notificationText = "You've copied this code before";
|
|
192
|
+
/**
|
|
193
|
+
* The number of milliseconds that the tooltip appears for
|
|
194
|
+
*
|
|
195
|
+
* @uiName Tooltip lifespan
|
|
196
|
+
*/
|
|
197
|
+
this.tooltiplifespan = 1000;
|
|
198
|
+
/**
|
|
199
|
+
* Change the text alignment
|
|
200
|
+
*
|
|
201
|
+
* @uiName Referral code alignment
|
|
202
|
+
* @uiType string
|
|
203
|
+
* @uiEnum ["left", "center", "right"]
|
|
204
|
+
* @uiEnumNames ["Left", "Center", "Right"]
|
|
205
|
+
*/
|
|
206
|
+
this.textAlign = "left";
|
|
207
|
+
/**
|
|
208
|
+
* @uiName Copy button label
|
|
209
|
+
*/
|
|
210
|
+
this.copyButtonLabel = "Copy Code";
|
|
211
|
+
/**
|
|
212
|
+
* Set the copy button style and placement
|
|
213
|
+
*
|
|
214
|
+
* @uiName Style
|
|
215
|
+
* @uiType string
|
|
216
|
+
* @uiEnum ["icon", "button-outside", "button-below"]
|
|
217
|
+
* @uiEnumNames ["Icon", "Button outside", "Button below"]
|
|
218
|
+
*/
|
|
219
|
+
this.buttonStyle = "icon";
|
|
220
|
+
h$1(this);
|
|
221
|
+
}
|
|
222
|
+
disconnectedCallback() { }
|
|
223
|
+
render() {
|
|
224
|
+
const thisProps = getProps(this);
|
|
225
|
+
const props = isDemo()
|
|
226
|
+
? useDemoReferralCode(thisProps)
|
|
227
|
+
: useReferralCode(thisProps);
|
|
228
|
+
return h(CopyTextView, Object.assign({}, props));
|
|
229
|
+
}
|
|
230
|
+
};
|
|
231
|
+
function useDemoReferralCode(props) {
|
|
232
|
+
const [open, setOpen] = useState(false);
|
|
233
|
+
const copyString = "REFERRALCODE001";
|
|
234
|
+
return cjs({
|
|
235
|
+
copyString: copyString,
|
|
236
|
+
tooltiptext: props.tooltiptext,
|
|
237
|
+
textAlign: props.textAlign,
|
|
238
|
+
copyButtonLabel: props.copyButtonLabel,
|
|
239
|
+
buttonStyle: props.buttonStyle,
|
|
240
|
+
notificationText: props.notificationText,
|
|
241
|
+
showNotificationText: props.showNotificationText,
|
|
242
|
+
isCopied: props.showNotificationText,
|
|
243
|
+
isUsed: false,
|
|
244
|
+
rewardStatus: "AVAILABLE",
|
|
245
|
+
open,
|
|
246
|
+
onClick: () => {
|
|
247
|
+
// Should well supported: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
|
|
248
|
+
// Only if called from a user-initiated event
|
|
249
|
+
navigator.clipboard.writeText(copyString);
|
|
250
|
+
setOpen(true);
|
|
251
|
+
setTimeout(() => setOpen(false), props.tooltiplifespan);
|
|
252
|
+
},
|
|
253
|
+
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
const style$1 = {
|
|
257
|
+
Wrapper: {
|
|
258
|
+
width: "100%",
|
|
259
|
+
display: "flex",
|
|
260
|
+
alignItems: "flex-start",
|
|
261
|
+
justifyContent: "center",
|
|
262
|
+
flexDirection: "column",
|
|
263
|
+
gap: "var(--sl-spacing-large)",
|
|
264
|
+
},
|
|
265
|
+
HeaderContainer: {
|
|
266
|
+
display: "flex",
|
|
267
|
+
alignItems: "center",
|
|
268
|
+
justifyContent: "space-between",
|
|
269
|
+
width: "100%",
|
|
270
|
+
},
|
|
271
|
+
ShareCodeContainer: {
|
|
272
|
+
width: "100%",
|
|
273
|
+
display: "flex",
|
|
274
|
+
alignItems: "flex-start",
|
|
275
|
+
justifyContent: "center",
|
|
276
|
+
flexDirection: "column",
|
|
277
|
+
},
|
|
278
|
+
ShareButtonContainer: {
|
|
279
|
+
width: "100%",
|
|
280
|
+
display: "flex",
|
|
281
|
+
alignItems: "flex-start",
|
|
282
|
+
justifyContent: "center",
|
|
283
|
+
flexDirection: "column",
|
|
284
|
+
},
|
|
285
|
+
TitleText: {
|
|
286
|
+
color: "var(--sl-color-neutral-700)",
|
|
287
|
+
fontSize: "var(--sl-font-size-large)",
|
|
288
|
+
margin: "0",
|
|
289
|
+
},
|
|
290
|
+
};
|
|
291
|
+
const vanillaStyle = `
|
|
292
|
+
:host {
|
|
293
|
+
display: block;
|
|
294
|
+
}
|
|
295
|
+
:host([hidden]): {
|
|
296
|
+
display: none;
|
|
297
|
+
}
|
|
298
|
+
`;
|
|
299
|
+
const sheet$1 = createStyleSheet(style$1);
|
|
300
|
+
const styleString$1 = sheet$1.toString();
|
|
301
|
+
function ReferralCodesView(props) {
|
|
302
|
+
const { slots, titleText, states } = props;
|
|
303
|
+
const getSlotContent = (states) => {
|
|
304
|
+
if (states.noCodes) {
|
|
305
|
+
return slots.empty;
|
|
306
|
+
}
|
|
307
|
+
if (states.loading) {
|
|
308
|
+
return slots.loading;
|
|
309
|
+
}
|
|
310
|
+
return (h("div", { class: sheet$1.classes.Wrapper },
|
|
311
|
+
h("div", { class: sheet$1.classes.ShareCodeContainer }, slots.shareCodes),
|
|
312
|
+
h("div", { class: sheet$1.classes.ShareButtonContainer }, slots.shareButtons)));
|
|
313
|
+
};
|
|
314
|
+
return (h("div", { class: sheet$1.classes.Wrapper, part: "sqm-base" },
|
|
315
|
+
h("style", { type: "text/css" },
|
|
316
|
+
vanillaStyle,
|
|
317
|
+
styleString$1),
|
|
318
|
+
h("div", { class: sheet$1.classes.HeaderContainer },
|
|
319
|
+
h("h2", { class: sheet$1.classes.TitleText }, titleText),
|
|
320
|
+
!states.noCodes && !states.loading && slots.pagination),
|
|
321
|
+
getSlotContent(states)));
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
const ReferralCodes = class {
|
|
325
|
+
constructor(hostRef) {
|
|
326
|
+
registerInstance(this, hostRef);
|
|
327
|
+
/**
|
|
328
|
+
* @uiName Title Text
|
|
329
|
+
*/
|
|
330
|
+
this.titleText = "Start sharing";
|
|
331
|
+
/**
|
|
332
|
+
* @uiName Empty State Header Text
|
|
333
|
+
*/
|
|
334
|
+
this.emptyStateHeaderText = "Your new codes and links aren’t ready yet";
|
|
335
|
+
/**
|
|
336
|
+
* @uiName Empty State Description Text
|
|
337
|
+
*/
|
|
338
|
+
this.emptyStateDescriptionText = "Please contact our program support team to let them know you’re out of codes.";
|
|
339
|
+
/**
|
|
340
|
+
* @uiName Empty State Image URL
|
|
341
|
+
*/
|
|
342
|
+
this.emptyStateImageUrl = "https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_leaderboard2.png";
|
|
343
|
+
h$1(this);
|
|
344
|
+
}
|
|
345
|
+
disconnectedCallback() { }
|
|
346
|
+
render() {
|
|
347
|
+
const thisProps = getProps(this);
|
|
348
|
+
const props = isDemo()
|
|
349
|
+
? useDemoReferralCodes(thisProps)
|
|
350
|
+
: useReferralCodes(thisProps);
|
|
351
|
+
const slots = {
|
|
352
|
+
shareButtons: h("slot", { name: "shareButtons" }),
|
|
353
|
+
shareCodes: h("slot", { name: "shareCodes" }),
|
|
354
|
+
pagination: h("slot", { name: "pagination" }),
|
|
355
|
+
empty: (h(EmptySlot, { headerText: this.emptyStateHeaderText, descriptionText: this.emptyStateDescriptionText, imageUrl: this.emptyStateImageUrl })),
|
|
356
|
+
loading: h(LoadingSlot, null),
|
|
357
|
+
};
|
|
358
|
+
const viewProps = {
|
|
359
|
+
slots,
|
|
360
|
+
...props,
|
|
361
|
+
loading: props.states.loading,
|
|
362
|
+
noCodes: props.states.noCodes,
|
|
363
|
+
};
|
|
364
|
+
return h(ReferralCodesView, Object.assign({}, viewProps));
|
|
365
|
+
}
|
|
366
|
+
};
|
|
367
|
+
function EmptySlot({ headerText, descriptionText, imageUrl, }) {
|
|
368
|
+
return (h("slot", { name: "empty" }, h("sqm-empty", { emptyStateHeader: headerText, emptyStateText: descriptionText, emptyStateImage: imageUrl })));
|
|
369
|
+
}
|
|
370
|
+
function LoadingSlot() {
|
|
371
|
+
return (h("slot", { name: "loading" }, h(LoadingRow, null), h(LoadingRow, null), h(LoadingRow, null), h(LoadingRow, null)));
|
|
372
|
+
}
|
|
373
|
+
function LoadingRow() {
|
|
374
|
+
return h("sl-skeleton", { style: { width: "100%" } });
|
|
375
|
+
}
|
|
376
|
+
function useDemoReferralCodes(props) {
|
|
377
|
+
return cjs({
|
|
378
|
+
titleText: props.titleText,
|
|
379
|
+
states: {
|
|
380
|
+
noCodes: false,
|
|
381
|
+
loading: false,
|
|
382
|
+
},
|
|
383
|
+
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
export { Pagination as sqm_pagination, ReferralCode as sqm_referral_code, ReferralCodes as sqm_referral_codes };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { h, r as registerInstance } from './index-
|
|
2
|
-
import { i as d, k as useState, n as h$1 } from './stencil-hooks.module-
|
|
3
|
-
import { i as isDemo } from './index.module-
|
|
1
|
+
import { h, r as registerInstance } from './index-60f16d0a.js';
|
|
2
|
+
import { i as d, k as useState, n as h$1 } from './stencil-hooks.module-e20edc0b.js';
|
|
3
|
+
import { i as isDemo } from './index.module-f3d96fbb.js';
|
|
4
4
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
5
|
-
import { E as ErrorStyles } from './mixins-f60a614c.js';
|
|
6
|
-
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
7
5
|
import { g as getProps } from './utils-334c1e34.js';
|
|
8
|
-
import {
|
|
6
|
+
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
7
|
+
import { E as ErrorStyles } from './mixins-83f90fa1.js';
|
|
8
|
+
import { R as REGISTRATION_FORM_STATE_CONTEXT } from './useRegistrationFormState-33f9cb24.js';
|
|
9
9
|
|
|
10
10
|
var constants = {
|
|
11
11
|
error: {
|