@saasquatch/mint-components 1.6.7-2 → 1.6.7-3
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/{sqm-portal-footer-view-349373b2.js → PoweredByImg-7084ef2d.js} +0 -66
- package/dist/cjs/{ShadowViewAddon-9c42e820.js → ShadowViewAddon-2d3ef919.js} +64 -52
- package/dist/cjs/{global-67a37b3f.js → global-3ebda209.js} +161 -10
- package/dist/cjs/index-e4027f09.js +2227 -0
- package/dist/cjs/{index.module-c6626247.js → index.module-30d74cb5.js} +51 -50
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/{luxon-53e983a6.js → luxon-1b6e7276.js} +1 -1
- package/dist/cjs/mint-components.cjs.js +5 -5
- package/dist/cjs/{re-render-fce04f85.js → re-render-6963789e.js} +3 -3
- package/dist/cjs/sqm-asset-card.cjs.entry.js +4 -4
- package/dist/cjs/{sqm-big-stat_35.cjs.entry.js → sqm-big-stat_36.cjs.entry.js} +243 -112
- package/dist/cjs/sqm-empty_5.cjs.entry.js +6 -6
- package/dist/cjs/sqm-form-message.cjs.entry.js +2 -2
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +6 -6
- package/dist/cjs/sqm-header-logo.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-hero-view-fcc0188c.js → sqm-hero-view-201fca7e.js} +2 -2
- package/dist/cjs/sqm-hero.cjs.entry.js +4 -4
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +12 -11
- package/dist/cjs/{sqm-navigation-sidebar-item-view-8b4f304f.js → sqm-navigation-sidebar-item-view-9bba2bad.js} +2 -2
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +6 -6
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +5 -5
- package/dist/cjs/sqm-password-field.cjs.entry.js +5 -5
- package/dist/cjs/sqm-passwordless-registration-view-60f25a41.js +51 -0
- package/dist/cjs/sqm-passwordless-registration.cjs.entry.js +124 -0
- package/dist/cjs/sqm-popup-container.cjs.entry.js +7 -7
- package/dist/cjs/{sqm-portal-container-view-3215dce9.js → sqm-portal-container-view-ec1be9eb.js} +1 -1
- package/dist/cjs/{sqm-portal-email-verification-view-6f41962b.js → sqm-portal-email-verification-view-e834e79c.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +10 -10
- package/dist/cjs/sqm-portal-footer-view-6e490bc6.js +71 -0
- package/dist/cjs/sqm-portal-footer.cjs.entry.js +7 -6
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +7 -7
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +5 -5
- package/dist/cjs/{sqm-portal-profile-view-b8215eae.js → sqm-portal-profile-view-c143c506.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +15 -14
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +8 -8
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +11 -10
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +10 -10
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +8 -8
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +17 -16
- package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +2 -2
- package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +5 -5
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +62 -61
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +162 -69
- package/dist/cjs/sqm-tab.cjs.entry.js +5 -5
- package/dist/cjs/sqm-tabs.cjs.entry.js +6 -6
- package/dist/cjs/sqm-text-span.cjs.entry.js +2 -2
- package/dist/cjs/sqm-user-identifier.cjs.entry.js +56 -0
- package/dist/cjs/{stencil-hooks.module-e4bf7f2d.js → stencil-hooks.module-5344b631.js} +1 -4
- package/dist/cjs/{use-callback-86e9ac75.js → use-callback-05714e23.js} +1 -1
- package/dist/cjs/{useChildElements-eaa9e49d.js → useChildElements-161457a6.js} +2 -2
- package/dist/cjs/{useReferralTable-6257eb3b.js → useReferralTable-e933351b.js} +17 -16
- package/dist/cjs/{useRegistrationFormState-a1861717.js → useRegistrationFormState-5f21a453.js} +2 -2
- package/dist/collection/collection-manifest.json +3 -0
- package/dist/collection/components/sqm-card-feed/sqm-card-feed-view.js +1 -1
- package/dist/collection/components/sqm-coupon-code/CouponCode.stories.js +22 -0
- package/dist/collection/components/sqm-coupon-code/sqm-coupon-code.js +208 -0
- package/dist/collection/components/sqm-coupon-code/useCouponCode.js +49 -0
- package/dist/collection/components/sqm-hero-image/sqm-hero-image-view.js +2 -3
- package/dist/collection/components/sqm-image/sqm-image-view.js +1 -1
- package/dist/collection/components/sqm-passwordless-registration/PasswordlessRegistration.stories.js +32 -0
- package/dist/collection/components/sqm-passwordless-registration/sqm-passwordless-registration-view.js +46 -0
- package/dist/collection/components/sqm-passwordless-registration/sqm-passwordless-registration.js +267 -0
- package/dist/collection/components/sqm-passwordless-registration/usePasswordlessRegistration.js +38 -0
- package/dist/collection/components/sqm-portal-container/sqm-portal-container-view.js +1 -1
- package/dist/collection/components/sqm-referral-card/sqm-referral-card-view.js +2 -4
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +2 -2
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.js +3 -3
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.js +1 -1
- package/dist/collection/components/sqm-share-button/sqm-share-button.js +1 -1
- package/dist/collection/components/sqm-share-code/ShareCode.stories.js +7 -1
- package/dist/collection/components/sqm-share-code/sqm-share-code.js +65 -9
- package/dist/collection/components/sqm-share-code/useShareCode.js +3 -3
- package/dist/collection/components/sqm-share-link/ShareLink.stories.js +13 -7
- package/dist/collection/components/sqm-share-link/UseShareLink.stories.js +4 -4
- package/dist/collection/components/sqm-share-link/sqm-share-link.js +65 -9
- package/dist/collection/components/sqm-share-link/useShareLink.js +3 -3
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +4 -0
- package/dist/collection/components/sqm-task-card/DetailsView.js +1 -1
- package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +10 -9
- package/dist/collection/components/sqm-timeline/sqm-timeline-entry-view.js +4 -4
- package/dist/collection/components/sqm-user-identifier/UserIdentifier.stories.js +26 -0
- package/dist/collection/components/sqm-user-identifier/sqm-user-identifier-view.js +32 -0
- package/dist/collection/components/sqm-user-identifier/sqm-user-identifier.js +131 -0
- package/dist/collection/components/views/copy-text-view.js +28 -0
- package/dist/collection/stories/NewPortal.stories.js +5 -5
- package/dist/esm/{sqm-portal-footer-view-41fe6018.js → PoweredByImg-1114005e.js} +1 -66
- package/dist/esm/{ShadowViewAddon-9791fbe2.js → ShadowViewAddon-e57c3d40.js} +47 -35
- package/dist/esm/{global-fbe84c58.js → global-4bd89b1d.js} +161 -10
- package/dist/esm/index-4bffa04c.js +2225 -0
- package/dist/esm/{index.module-3c720e8f.js → index.module-5043fba6.js} +38 -35
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{luxon-1e38d7f1.js → luxon-dccb73bb.js} +1 -1
- package/dist/esm/mint-components.js +5 -5
- package/dist/esm/{re-render-695ddbbd.js → re-render-a3c1732f.js} +3 -3
- package/dist/esm/sqm-asset-card.entry.js +3 -3
- package/dist/esm/{sqm-big-stat_35.entry.js → sqm-big-stat_36.entry.js} +201 -71
- package/dist/esm/sqm-empty_5.entry.js +3 -3
- package/dist/esm/sqm-form-message.entry.js +1 -1
- package/dist/esm/sqm-graphql-client-provider.entry.js +5 -5
- package/dist/esm/sqm-header-logo.entry.js +1 -1
- package/dist/esm/{sqm-hero-view-f1809063.js → sqm-hero-view-27de6b06.js} +2 -2
- package/dist/esm/sqm-hero.entry.js +3 -3
- package/dist/esm/sqm-leaderboard-rank.entry.js +7 -6
- package/dist/esm/{sqm-navigation-sidebar-item-view-6f909ba7.js → sqm-navigation-sidebar-item-view-d63373b2.js} +2 -2
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +5 -5
- package/dist/esm/sqm-navigation-sidebar.entry.js +4 -4
- package/dist/esm/sqm-password-field.entry.js +4 -4
- package/dist/esm/sqm-passwordless-registration-view-dcd145d6.js +49 -0
- package/dist/esm/sqm-passwordless-registration.entry.js +120 -0
- package/dist/esm/sqm-popup-container.entry.js +6 -6
- package/dist/esm/{sqm-portal-container-view-8e091565.js → sqm-portal-container-view-06bce80d.js} +1 -1
- package/dist/esm/{sqm-portal-email-verification-view-381320c4.js → sqm-portal-email-verification-view-9c993283.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +9 -9
- package/dist/esm/sqm-portal-footer-view-d673e9b9.js +69 -0
- package/dist/esm/sqm-portal-footer.entry.js +6 -5
- package/dist/esm/sqm-portal-forgot-password.entry.js +6 -6
- package/dist/esm/sqm-portal-logout.entry.js +4 -4
- package/dist/esm/{sqm-portal-profile-view-510e0fac.js → sqm-portal-profile-view-0b4315c2.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +9 -8
- package/dist/esm/sqm-portal-protected-route.entry.js +7 -7
- package/dist/esm/sqm-portal-registration-form.entry.js +9 -8
- package/dist/esm/sqm-portal-reset-password.entry.js +9 -9
- package/dist/esm/sqm-portal-verify-email.entry.js +7 -7
- package/dist/esm/sqm-referral-table_11.entry.js +9 -8
- package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +1 -1
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +4 -4
- package/dist/esm/sqm-rewards-table_9.entry.js +13 -12
- package/dist/esm/sqm-stencilbook.entry.js +157 -64
- package/dist/esm/sqm-tab.entry.js +4 -4
- package/dist/esm/sqm-tabs.entry.js +5 -5
- package/dist/esm/sqm-text-span.entry.js +1 -1
- package/dist/esm/sqm-user-identifier.entry.js +52 -0
- package/dist/esm/{stencil-hooks.module-b48b45ec.js → stencil-hooks.module-6bde7453.js} +1 -1
- package/dist/esm/{use-callback-051c06c6.js → use-callback-c5579ecb.js} +1 -1
- package/dist/esm/{useChildElements-79be4145.js → useChildElements-a68649fd.js} +2 -2
- package/dist/esm/{useReferralTable-7f8db41f.js → useReferralTable-6c6c06cb.js} +9 -8
- package/dist/esm/{useRegistrationFormState-6ce2e16f.js → useRegistrationFormState-97f39def.js} +2 -2
- package/dist/esm-es5/PoweredByImg-1114005e.js +1 -0
- package/dist/esm-es5/ShadowViewAddon-e57c3d40.js +1 -0
- package/dist/esm-es5/global-4bd89b1d.js +285 -0
- package/dist/esm-es5/index-4bffa04c.js +1 -0
- package/dist/esm-es5/index.module-5043fba6.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{luxon-1e38d7f1.js → luxon-dccb73bb.js} +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/{re-render-695ddbbd.js → re-render-a3c1732f.js} +1 -1
- package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_36.entry.js +1 -0
- package/dist/esm-es5/sqm-empty_5.entry.js +1 -1
- package/dist/esm-es5/sqm-form-message.entry.js +1 -1
- package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm-es5/sqm-header-logo.entry.js +1 -1
- package/dist/esm-es5/{sqm-hero-view-f1809063.js → sqm-hero-view-27de6b06.js} +1 -1
- package/dist/esm-es5/sqm-hero.entry.js +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-d63373b2.js +1 -0
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
- package/dist/esm-es5/sqm-password-field.entry.js +1 -1
- package/dist/esm-es5/sqm-passwordless-registration-view-dcd145d6.js +1 -0
- package/dist/esm-es5/sqm-passwordless-registration.entry.js +1 -0
- package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-container-view-8e091565.js → sqm-portal-container-view-06bce80d.js} +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-381320c4.js → sqm-portal-email-verification-view-9c993283.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-footer-view-d673e9b9.js +1 -0
- package/dist/esm-es5/sqm-portal-footer.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-510e0fac.js → sqm-portal-profile-view-0b4315c2.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.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.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-rewards-table-customer-note-cell.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-tab.entry.js +1 -1
- package/dist/esm-es5/sqm-tabs.entry.js +1 -1
- package/dist/esm-es5/sqm-text-span.entry.js +1 -1
- package/dist/esm-es5/sqm-user-identifier.entry.js +1 -0
- package/dist/esm-es5/{stencil-hooks.module-b48b45ec.js → stencil-hooks.module-6bde7453.js} +1 -1
- package/dist/esm-es5/use-callback-c5579ecb.js +1 -0
- package/dist/esm-es5/{useChildElements-79be4145.js → useChildElements-a68649fd.js} +1 -1
- package/dist/esm-es5/useReferralTable-6c6c06cb.js +1 -0
- package/dist/esm-es5/{useRegistrationFormState-6ce2e16f.js → useRegistrationFormState-97f39def.js} +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +98 -8543
- package/dist/mint-components/p-014e183e.system.js +1 -0
- package/dist/mint-components/p-040a7ac6.system.entry.js +1 -0
- package/dist/mint-components/{p-3c189cea.system.js → p-0a15b302.system.js} +1 -1
- package/dist/mint-components/{p-52ce1373.system.entry.js → p-0a4c867d.system.entry.js} +1 -1
- package/dist/mint-components/p-0afd05cc.system.entry.js +1 -0
- package/dist/mint-components/p-0b07c70b.entry.js +171 -0
- package/dist/mint-components/p-0b3af3f2.js +1 -0
- package/dist/mint-components/{p-eab70762.system.entry.js → p-0e344e4c.system.entry.js} +1 -1
- package/dist/mint-components/p-15e0bdb5.entry.js +1 -0
- package/dist/mint-components/p-18d5795d.system.js +1 -0
- package/dist/mint-components/p-1943d52e.js +1 -0
- package/dist/mint-components/p-1b0c59f0.system.entry.js +1 -0
- package/dist/mint-components/p-1e350778.system.entry.js +1 -0
- package/dist/mint-components/{p-2433b74c.js → p-218c8a32.js} +1 -1
- package/dist/mint-components/{p-e931152c.entry.js → p-21bf8abc.entry.js} +1 -1
- package/dist/mint-components/p-25d4bd6c.entry.js +1 -0
- package/dist/mint-components/{p-9bacac1a.system.entry.js → p-26131a87.system.entry.js} +1 -1
- package/dist/mint-components/{p-f4a318fa.entry.js → p-293d8305.entry.js} +2 -2
- package/dist/mint-components/p-2bc7c025.system.entry.js +1 -0
- package/dist/mint-components/{p-1ea19d11.system.entry.js → p-2c8645c6.system.entry.js} +1 -1
- package/dist/mint-components/{p-c3d4bd17.entry.js → p-2d728c9b.entry.js} +1 -1
- package/dist/mint-components/p-2dcc4495.entry.js +1 -0
- package/dist/mint-components/{p-e7548e13.system.entry.js → p-2f8ddf17.system.entry.js} +1 -1
- package/dist/mint-components/{p-07a2fa17.system.js → p-2ffe61a0.system.js} +1 -1
- package/dist/mint-components/{p-33e9fcfc.js → p-3aa51afb.js} +3 -3
- package/dist/mint-components/{p-48cc1220.system.entry.js → p-3b084b9e.system.entry.js} +1 -1
- package/dist/mint-components/p-4056a7f4.entry.js +1 -0
- package/dist/mint-components/p-41377dac.system.js +1 -0
- package/dist/mint-components/{p-707e7a2e.system.entry.js → p-4777598b.system.entry.js} +1 -1
- package/dist/mint-components/p-497c2091.system.entry.js +1 -0
- package/dist/mint-components/{p-d91a5c01.js → p-4e38410c.js} +153 -153
- package/dist/mint-components/{p-f6e8985b.system.entry.js → p-4fc59b30.system.entry.js} +1 -1
- package/dist/mint-components/p-545c6333.system.entry.js +1 -0
- package/dist/mint-components/{p-0179da5a.entry.js → p-54d0019e.entry.js} +3 -3
- package/dist/mint-components/p-561b5ade.js +268 -0
- package/dist/mint-components/{p-04950f4c.system.js → p-5bba84a6.system.js} +1 -1
- package/dist/mint-components/p-5bfe901d.js +1 -0
- package/dist/mint-components/p-5da32b79.system.entry.js +1 -0
- package/dist/mint-components/{p-d54de97b.system.entry.js → p-68454fb6.system.entry.js} +1 -1
- package/dist/mint-components/p-6b5824db.entry.js +13 -0
- package/dist/mint-components/{p-b79c0e38.system.js → p-6b9e32ca.system.js} +2 -2
- package/dist/mint-components/p-721deaaf.system.js +1 -0
- package/dist/mint-components/{p-1c80a930.entry.js → p-848a7767.entry.js} +1 -1
- package/dist/mint-components/{p-45ee4fcd.entry.js → p-850c27d0.entry.js} +1 -1
- package/dist/mint-components/{p-a421f44e.system.js → p-88bfcec2.system.js} +1 -1
- package/dist/mint-components/p-8a7b0f2c.system.entry.js +1 -0
- package/dist/mint-components/{p-c06cd3cc.system.js → p-8c0e613f.system.js} +1 -1
- package/dist/mint-components/{p-14c9767e.system.entry.js → p-8ddb2c01.system.entry.js} +1 -1
- package/dist/mint-components/p-8e84f311.system.entry.js +1 -0
- package/dist/mint-components/p-910c977e.entry.js +13 -0
- package/dist/mint-components/{p-d1a74f7e.js → p-938ff1fc.js} +1 -1
- package/dist/mint-components/{p-1866c07f.entry.js → p-94cf16d4.entry.js} +1 -1
- package/dist/mint-components/p-9c63de96.system.js +1 -0
- package/dist/mint-components/p-9ccc4b8a.system.entry.js +1 -0
- package/dist/mint-components/{p-1c2c05ea.system.entry.js → p-9dce9be7.system.entry.js} +1 -1
- package/dist/mint-components/p-9f011b61.system.entry.js +1 -0
- package/dist/mint-components/p-9f06a318.entry.js +1 -0
- package/dist/mint-components/p-a0dcecee.system.js +1 -0
- package/dist/mint-components/p-a15a06d1.entry.js +1 -0
- package/dist/mint-components/p-a208711a.js +1 -0
- package/dist/mint-components/p-a4b7f6a6.system.js +1 -0
- package/dist/mint-components/{p-5ee4e422.system.entry.js → p-a853bf1c.system.entry.js} +1 -1
- package/dist/mint-components/{p-ebdd7428.js → p-acc9e541.js} +1 -1
- package/dist/mint-components/{p-72b166c9.system.entry.js → p-ad694844.system.entry.js} +1 -1
- package/dist/mint-components/{p-03bf73ac.entry.js → p-b0601c94.entry.js} +1 -1
- package/dist/mint-components/{p-3f075d21.entry.js → p-b0f1dfad.entry.js} +1 -1
- package/dist/mint-components/p-b56a0052.system.js +1 -0
- package/dist/mint-components/{p-5a8866c0.system.entry.js → p-b6de33e5.system.entry.js} +1 -1
- package/dist/mint-components/p-b76c5252.entry.js +1 -0
- package/dist/mint-components/{p-6f9f5609.js → p-b8301966.js} +1 -1
- package/dist/mint-components/{p-6db612cd.entry.js → p-b9831b79.entry.js} +1 -1
- package/dist/mint-components/p-c3fa90e4.entry.js +1 -0
- package/dist/mint-components/{p-ed801cb7.js → p-c5966d38.js} +1 -1
- package/dist/mint-components/p-c5bd5f21.entry.js +9 -0
- package/dist/mint-components/p-c78edab5.entry.js +1 -0
- package/dist/mint-components/p-c7e36372.system.js +1 -0
- package/dist/mint-components/p-c96900ab.js +1 -0
- package/dist/mint-components/p-ce7fef38.system.js +1 -0
- package/dist/mint-components/p-ceb6a9e5.js +1 -0
- package/dist/mint-components/p-ceefa840.system.entry.js +1 -0
- package/dist/mint-components/p-d4dd44ce.js +1 -0
- package/dist/mint-components/{p-25254dd1.js → p-d566db0b.js} +1 -1
- package/dist/mint-components/{p-7e15b154.entry.js → p-d96ba635.entry.js} +1 -1
- package/dist/mint-components/{p-e6f5ccc0.entry.js → p-db01736e.entry.js} +1 -1
- package/dist/mint-components/p-dbb3533c.system.entry.js +1 -0
- package/dist/mint-components/{p-6eb41f14.system.entry.js → p-dc9f2ec3.system.entry.js} +1 -1
- package/dist/mint-components/p-dcdfc20a.entry.js +1 -0
- package/dist/mint-components/p-e36afaf4.system.entry.js +1 -0
- package/dist/mint-components/p-eae501f9.js +1 -0
- package/dist/mint-components/p-eb5e8657.entry.js +1 -0
- package/dist/mint-components/p-ece264ab.entry.js +1 -0
- package/dist/mint-components/p-ee7e5b54.system.js +1 -0
- package/dist/mint-components/p-f19e6247.entry.js +1 -0
- package/dist/mint-components/p-f4dbaf32.js +1 -0
- package/dist/mint-components/{p-c9a2502c.system.js → p-f572337b.system.js} +1 -1
- package/dist/mint-components/p-f5a0ea6c.entry.js +1 -0
- package/dist/mint-components/{p-8b422807.entry.js → p-f628a8cd.entry.js} +1 -1
- package/dist/mint-components/p-f6e9b11e.js +1 -0
- package/dist/mint-components/p-f9203fcb.system.entry.js +1 -0
- package/dist/mint-components/p-fab61d16.system.js +1 -0
- package/dist/mint-components/{p-e02ac363.system.js → p-fbc2343f.system.js} +22 -22
- package/dist/types/components/sqm-coupon-code/CouponCode.stories.d.ts +10 -0
- package/dist/types/components/sqm-coupon-code/sqm-coupon-code.d.ts +48 -0
- package/dist/types/components/sqm-coupon-code/useCouponCode.d.ts +8 -0
- package/dist/types/components/sqm-passwordless-registration/PasswordlessRegistration.stories.d.ts +8 -0
- package/dist/types/components/sqm-passwordless-registration/sqm-passwordless-registration-view.d.ts +21 -0
- package/dist/types/components/sqm-passwordless-registration/sqm-passwordless-registration.d.ts +48 -0
- package/dist/types/components/sqm-passwordless-registration/usePasswordlessRegistration.d.ts +9 -0
- package/dist/types/components/sqm-share-code/ShareCode.stories.d.ts +2 -0
- package/dist/types/components/sqm-share-code/sqm-share-code.d.ts +14 -2
- package/dist/types/components/sqm-share-code/useShareCode.d.ts +2 -2
- package/dist/types/components/sqm-share-link/ShareLink.stories.d.ts +2 -0
- package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +14 -2
- package/dist/types/components/sqm-share-link/useShareLink.d.ts +2 -2
- package/dist/types/components/sqm-user-identifier/UserIdentifier.stories.d.ts +13 -0
- package/dist/types/components/sqm-user-identifier/sqm-user-identifier-view.d.ts +9 -0
- package/dist/types/components/sqm-user-identifier/sqm-user-identifier.d.ts +33 -0
- package/dist/types/components/views/copy-text-view.d.ts +10 -0
- package/dist/types/components.d.ts +267 -5
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +2 -2
- package/dist/collection/components/sqm-share-link/sqm-share-link-view.js +0 -18
- package/dist/esm-es5/ShadowViewAddon-9791fbe2.js +0 -1
- package/dist/esm-es5/global-fbe84c58.js +0 -285
- package/dist/esm-es5/index.module-3c720e8f.js +0 -1
- package/dist/esm-es5/sqm-big-stat_35.entry.js +0 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-6f909ba7.js +0 -1
- package/dist/esm-es5/sqm-portal-footer-view-41fe6018.js +0 -1
- package/dist/esm-es5/use-callback-051c06c6.js +0 -1
- package/dist/esm-es5/useReferralTable-7f8db41f.js +0 -1
- package/dist/mint-components/p-02356211.system.entry.js +0 -1
- package/dist/mint-components/p-1303bd2f.system.entry.js +0 -1
- package/dist/mint-components/p-1696a6e2.system.entry.js +0 -1
- package/dist/mint-components/p-1d1fac2c.js +0 -1
- package/dist/mint-components/p-1f54fd38.system.js +0 -1
- package/dist/mint-components/p-21b4895e.entry.js +0 -9
- package/dist/mint-components/p-27fc534b.system.entry.js +0 -1
- package/dist/mint-components/p-2bfa2da4.js +0 -1
- package/dist/mint-components/p-2e4443d4.entry.js +0 -1
- package/dist/mint-components/p-4294a89c.entry.js +0 -1
- package/dist/mint-components/p-45bb95ba.js +0 -1
- package/dist/mint-components/p-4c3f24a7.entry.js +0 -1
- package/dist/mint-components/p-5027afd7.entry.js +0 -159
- package/dist/mint-components/p-51dd43c0.system.js +0 -1
- package/dist/mint-components/p-600c88be.system.js +0 -1
- package/dist/mint-components/p-6b627b02.system.entry.js +0 -1
- package/dist/mint-components/p-6e28498f.system.entry.js +0 -1
- package/dist/mint-components/p-7578e83f.system.entry.js +0 -1
- package/dist/mint-components/p-78651bde.entry.js +0 -1
- package/dist/mint-components/p-79be7593.system.js +0 -1
- package/dist/mint-components/p-7f156573.system.entry.js +0 -1
- package/dist/mint-components/p-84e18e6b.system.js +0 -1
- package/dist/mint-components/p-895858d0.entry.js +0 -1
- package/dist/mint-components/p-8aa61264.system.js +0 -1
- package/dist/mint-components/p-8f2e7864.js +0 -268
- package/dist/mint-components/p-8fc166eb.js +0 -1
- package/dist/mint-components/p-8ffaf231.system.entry.js +0 -1
- package/dist/mint-components/p-926e57e7.entry.js +0 -1
- package/dist/mint-components/p-93832713.js +0 -1
- package/dist/mint-components/p-9732cfef.system.js +0 -1
- package/dist/mint-components/p-9775b40a.entry.js +0 -13
- package/dist/mint-components/p-9b833cfb.system.entry.js +0 -1
- package/dist/mint-components/p-9e16b967.entry.js +0 -1
- package/dist/mint-components/p-a44bf369.entry.js +0 -1
- package/dist/mint-components/p-a7da9285.entry.js +0 -13
- package/dist/mint-components/p-a9af92ea.entry.js +0 -1
- package/dist/mint-components/p-aaa3de28.entry.js +0 -1
- package/dist/mint-components/p-ac000fc6.system.js +0 -1
- package/dist/mint-components/p-b0e85f24.entry.js +0 -1
- package/dist/mint-components/p-b2a0461f.system.entry.js +0 -1
- package/dist/mint-components/p-b76df920.entry.js +0 -1
- package/dist/mint-components/p-c7090fd1.system.js +0 -1
- package/dist/mint-components/p-cd898a3a.js +0 -1
- package/dist/mint-components/p-d1d42507.system.entry.js +0 -1
- package/dist/mint-components/p-df63ee45.system.entry.js +0 -1
- package/dist/mint-components/p-f66b4b3a.js +0 -1
- package/dist/mint-components/p-fad0a26c.system.entry.js +0 -1
- package/dist/types/components/sqm-share-link/sqm-share-link-view.d.ts +0 -8
|
@@ -3,23 +3,24 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
|
-
const stencilHooks_module = require('./stencil-hooks.module-
|
|
7
|
-
const global = require('./global-
|
|
8
|
-
const useCallback = require('./use-callback-
|
|
9
|
-
const index_module = require('./index.module-
|
|
10
|
-
const jsonpointer = require('./jsonpointer-11327262.js');
|
|
6
|
+
const stencilHooks_module = require('./stencil-hooks.module-5344b631.js');
|
|
7
|
+
const global = require('./global-3ebda209.js');
|
|
8
|
+
const useCallback = require('./use-callback-05714e23.js');
|
|
9
|
+
const index_module = require('./index.module-30d74cb5.js');
|
|
11
10
|
const cjs = require('./cjs-1066ec21.js');
|
|
12
11
|
require('./mixins-fe9d4112.js');
|
|
13
12
|
const JSS = require('./JSS-8503a151.js');
|
|
14
|
-
const reRender = require('./re-render-
|
|
15
|
-
const useChildElements = require('./useChildElements-
|
|
16
|
-
require('./luxon-
|
|
13
|
+
const reRender = require('./re-render-6963789e.js');
|
|
14
|
+
const useChildElements = require('./useChildElements-161457a6.js');
|
|
15
|
+
require('./luxon-1b6e7276.js');
|
|
16
|
+
const index$1 = require('./index-e4027f09.js');
|
|
17
17
|
const utils = require('./utils-6847bc06.js');
|
|
18
18
|
require('./sqm-text-span-view-1acdf7e9.js');
|
|
19
|
+
const jsonpointer = require('./jsonpointer-11327262.js');
|
|
19
20
|
const AsYouType = require('./AsYouType-6788393a.js');
|
|
20
|
-
const useRegistrationFormState = require('./useRegistrationFormState-
|
|
21
|
-
const ShadowViewAddon = require('./ShadowViewAddon-
|
|
22
|
-
require('./sqm-portal-container-view-
|
|
21
|
+
const useRegistrationFormState = require('./useRegistrationFormState-5f21a453.js');
|
|
22
|
+
const ShadowViewAddon = require('./ShadowViewAddon-2d3ef919.js');
|
|
23
|
+
require('./sqm-portal-container-view-ec1be9eb.js');
|
|
23
24
|
|
|
24
25
|
const BigStat = class {
|
|
25
26
|
constructor(hostRef) {
|
|
@@ -32,7 +33,7 @@ const BigStat = class {
|
|
|
32
33
|
*/
|
|
33
34
|
this.flexReverse = false;
|
|
34
35
|
this.ignored = true;
|
|
35
|
-
stencilHooks_module.h
|
|
36
|
+
stencilHooks_module.h(this);
|
|
36
37
|
}
|
|
37
38
|
disconnectedCallback() { }
|
|
38
39
|
render() {
|
|
@@ -61,7 +62,7 @@ function buildFontsCssUrl(...fonts) {
|
|
|
61
62
|
const BrandComponent = class {
|
|
62
63
|
constructor(hostRef) {
|
|
63
64
|
index.registerInstance(this, hostRef);
|
|
64
|
-
stencilHooks_module.h
|
|
65
|
+
stencilHooks_module.h(this);
|
|
65
66
|
}
|
|
66
67
|
disconnectedCallback() { }
|
|
67
68
|
render() {
|
|
@@ -127,7 +128,7 @@ const CardFeed = class {
|
|
|
127
128
|
* @uiType number
|
|
128
129
|
*/
|
|
129
130
|
this.gap = 24;
|
|
130
|
-
stencilHooks_module.h
|
|
131
|
+
stencilHooks_module.h(this);
|
|
131
132
|
}
|
|
132
133
|
disconnectedCallback() { }
|
|
133
134
|
render() {
|
|
@@ -235,7 +236,7 @@ const CheckboxField = class {
|
|
|
235
236
|
* @uiName Optional
|
|
236
237
|
*/
|
|
237
238
|
this.checkboxOptional = false;
|
|
238
|
-
stencilHooks_module.h
|
|
239
|
+
stencilHooks_module.h(this);
|
|
239
240
|
}
|
|
240
241
|
disconnectedCallback() { }
|
|
241
242
|
render() {
|
|
@@ -269,6 +270,110 @@ function useCheckboxFieldDemo(props) {
|
|
|
269
270
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
270
271
|
}
|
|
271
272
|
|
|
273
|
+
const MessageLinkQuery = index$1.dist.gql `
|
|
274
|
+
query ($programId: ID) {
|
|
275
|
+
user: viewer {
|
|
276
|
+
... on User {
|
|
277
|
+
referralCode(programId: $programId)
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
`;
|
|
282
|
+
const WIDGET_ENGAGEMENT_EVENT = index$1.dist.gql `
|
|
283
|
+
mutation loadEvent($eventMeta: UserAnalyticsEvent!) {
|
|
284
|
+
createUserAnalyticsEvent(eventMeta: $eventMeta)
|
|
285
|
+
}
|
|
286
|
+
`;
|
|
287
|
+
function useCouponCode(props) {
|
|
288
|
+
var _a, _b;
|
|
289
|
+
const { programId = index_module.O() } = props;
|
|
290
|
+
const user = index_module.W();
|
|
291
|
+
const engagementMedium = index_module._();
|
|
292
|
+
const { data } = index_module.fn(MessageLinkQuery, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
293
|
+
const [sendLoadEvent] = index_module.Fe(WIDGET_ENGAGEMENT_EVENT);
|
|
294
|
+
const copyString = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.referralCode) !== null && _b !== void 0 ? _b :
|
|
295
|
+
// Shown during loading
|
|
296
|
+
"...";
|
|
297
|
+
const [open, setOpen] = stencilHooks_module.useState(false);
|
|
298
|
+
function onClick() {
|
|
299
|
+
// Should well supported: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
|
|
300
|
+
// Only if called from a user-initiated event
|
|
301
|
+
navigator.clipboard.writeText(copyString);
|
|
302
|
+
setOpen(true);
|
|
303
|
+
setTimeout(() => setOpen(false), props.tooltiplifespan);
|
|
304
|
+
sendLoadEvent({
|
|
305
|
+
eventMeta: {
|
|
306
|
+
programId,
|
|
307
|
+
id: user === null || user === void 0 ? void 0 : user.id,
|
|
308
|
+
accountId: user === null || user === void 0 ? void 0 : user.accountId,
|
|
309
|
+
type: "USER_REFERRAL_PROGRAM_ENGAGEMENT_EVENT",
|
|
310
|
+
meta: {
|
|
311
|
+
engagementMedium,
|
|
312
|
+
couponMedium: "DIRECT",
|
|
313
|
+
},
|
|
314
|
+
},
|
|
315
|
+
});
|
|
316
|
+
}
|
|
317
|
+
return { ...props, onClick, open, copyString };
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
const CouponCode = class {
|
|
321
|
+
constructor(hostRef) {
|
|
322
|
+
index.registerInstance(this, hostRef);
|
|
323
|
+
/**
|
|
324
|
+
* Shown inside a tooltip after someone has successfully copied the link to their clipboard.
|
|
325
|
+
*
|
|
326
|
+
* @uiName Tooltip Text
|
|
327
|
+
*/
|
|
328
|
+
this.tooltiptext = "Copied to Clipboard";
|
|
329
|
+
/**
|
|
330
|
+
* The number of milliseconds that the tooltip appears for
|
|
331
|
+
*
|
|
332
|
+
* @uiName Tooltip lifespan
|
|
333
|
+
*/
|
|
334
|
+
this.tooltiplifespan = 1000;
|
|
335
|
+
/**
|
|
336
|
+
* Change the text alignment
|
|
337
|
+
*
|
|
338
|
+
* @uiName Align text
|
|
339
|
+
*/
|
|
340
|
+
this.textAlign = "left";
|
|
341
|
+
/**
|
|
342
|
+
* Set copy button as icon
|
|
343
|
+
*
|
|
344
|
+
* @uiName Copy icon
|
|
345
|
+
*/
|
|
346
|
+
this.isCopyIcon = true;
|
|
347
|
+
stencilHooks_module.h(this);
|
|
348
|
+
}
|
|
349
|
+
disconnectedCallback() { }
|
|
350
|
+
render() {
|
|
351
|
+
const thisProps = utils.getProps(this);
|
|
352
|
+
const props = index_module.isDemo()
|
|
353
|
+
? useDemoCouponCode(thisProps)
|
|
354
|
+
: useCouponCode(thisProps);
|
|
355
|
+
return index.h(ShadowViewAddon.CopyTextView, Object.assign({}, props));
|
|
356
|
+
}
|
|
357
|
+
};
|
|
358
|
+
function useDemoCouponCode(props) {
|
|
359
|
+
const [open, setOpen] = stencilHooks_module.useState(false);
|
|
360
|
+
const copyString = "THANKSJANE125uv125";
|
|
361
|
+
return cjs.cjs({
|
|
362
|
+
copyString,
|
|
363
|
+
tooltiptext: props.tooltiptext,
|
|
364
|
+
isCopyIcon: props.isCopyIcon,
|
|
365
|
+
textAlign: props.textAlign,
|
|
366
|
+
open,
|
|
367
|
+
onClick: () => {
|
|
368
|
+
// Should well supported: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
|
|
369
|
+
// Only if called from a user-initiated event
|
|
370
|
+
navigator.clipboard.writeText(copyString);
|
|
371
|
+
setOpen(true);
|
|
372
|
+
setTimeout(() => setOpen(false), props.tooltiplifespan);
|
|
373
|
+
},
|
|
374
|
+
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
375
|
+
}
|
|
376
|
+
|
|
272
377
|
function DividedLayoutView(props, children) {
|
|
273
378
|
const getBorder = () => {
|
|
274
379
|
if (props.direction === "row") {
|
|
@@ -326,7 +431,7 @@ const DividedLayout = class {
|
|
|
326
431
|
* @uiName Border Style
|
|
327
432
|
*/
|
|
328
433
|
this.dividerStyle = "1px solid #EAEAEA";
|
|
329
|
-
stencilHooks_module.h
|
|
434
|
+
stencilHooks_module.h(this);
|
|
330
435
|
}
|
|
331
436
|
disconnectedCallback() { }
|
|
332
437
|
render() {
|
|
@@ -360,7 +465,7 @@ const DropdownField = class {
|
|
|
360
465
|
* @default
|
|
361
466
|
*/
|
|
362
467
|
this.dropdownOptional = false;
|
|
363
|
-
stencilHooks_module.h
|
|
468
|
+
stencilHooks_module.h(this);
|
|
364
469
|
}
|
|
365
470
|
disconnectedCallback() { }
|
|
366
471
|
render() {
|
|
@@ -391,7 +496,7 @@ function useDropdownFieldDemo(props) {
|
|
|
391
496
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
392
497
|
}
|
|
393
498
|
|
|
394
|
-
const GET_USER =
|
|
499
|
+
const GET_USER = index$1.dist.gql `
|
|
395
500
|
query {
|
|
396
501
|
viewer {
|
|
397
502
|
... on User {
|
|
@@ -405,7 +510,7 @@ const GET_USER = index_module.dist.gql `
|
|
|
405
510
|
}
|
|
406
511
|
}
|
|
407
512
|
`;
|
|
408
|
-
const UPSERT_USER =
|
|
513
|
+
const UPSERT_USER = index$1.dist.gql `
|
|
409
514
|
mutation (
|
|
410
515
|
$id: String!
|
|
411
516
|
$accountId: String!
|
|
@@ -434,13 +539,13 @@ const defaultFormState = {
|
|
|
434
539
|
error: "",
|
|
435
540
|
};
|
|
436
541
|
function useEditProfile(props) {
|
|
437
|
-
const userIdent = index_module.
|
|
542
|
+
const userIdent = index_module.W();
|
|
438
543
|
const [showEdit, setShowEdit] = stencilHooks_module.useState(false);
|
|
439
544
|
const [error, setError] = stencilHooks_module.useState("");
|
|
440
545
|
const [userData, setUserData] = stencilHooks_module.useState(undefined);
|
|
441
546
|
const [formState, setFormState] = stencilHooks_module.useState(defaultFormState);
|
|
442
|
-
const userDataResponse = index_module.
|
|
443
|
-
const [upsertUser, upsertUserResponse] = index_module.
|
|
547
|
+
const userDataResponse = index_module.fn(GET_USER, {}, !(userIdent === null || userIdent === void 0 ? void 0 : userIdent.jwt));
|
|
548
|
+
const [upsertUser, upsertUserResponse] = index_module.Fe(UPSERT_USER);
|
|
444
549
|
stencilHooks_module.useEffect(() => {
|
|
445
550
|
if ((upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.loading) || !showEdit)
|
|
446
551
|
return;
|
|
@@ -550,7 +655,7 @@ const EditProfile = class {
|
|
|
550
655
|
constructor(hostRef) {
|
|
551
656
|
index.registerInstance(this, hostRef);
|
|
552
657
|
this.ignored = true;
|
|
553
|
-
stencilHooks_module.h
|
|
658
|
+
stencilHooks_module.h(this);
|
|
554
659
|
}
|
|
555
660
|
disconnectedCallback() { }
|
|
556
661
|
render() {
|
|
@@ -635,7 +740,9 @@ function HeroImageView(props, children) {
|
|
|
635
740
|
display: "block",
|
|
636
741
|
width: "100%",
|
|
637
742
|
height: "100%",
|
|
743
|
+
maxWidth: "max-content",
|
|
638
744
|
objectFit: "cover",
|
|
745
|
+
margin: "auto",
|
|
639
746
|
},
|
|
640
747
|
Background: {
|
|
641
748
|
backgroundImage: `url(${props.imageUrl})`,
|
|
@@ -669,9 +776,6 @@ function HeroImageView(props, children) {
|
|
|
669
776
|
width: props.imagePercentage ? props.imagePercentage + "%" : "50%",
|
|
670
777
|
padding: "var(--sl-spacing-" + props.paddingImage + ")",
|
|
671
778
|
boxSizing: "border-box",
|
|
672
|
-
display: "flex",
|
|
673
|
-
justifyContent: "center",
|
|
674
|
-
alignItems: "center",
|
|
675
779
|
"@media (max-width: 599px)": {
|
|
676
780
|
width: "100%",
|
|
677
781
|
},
|
|
@@ -805,7 +909,7 @@ const HeroImage = class {
|
|
|
805
909
|
* @uiEnumNames ["None", "XXX-Small", "XX-Small", "X-Small", "Small", "Medium", "Large", "X-Large", "XX-Large", "XXX-Large", "XXXX-Large"]
|
|
806
910
|
*/
|
|
807
911
|
this.paddingImage = "none";
|
|
808
|
-
stencilHooks_module.h
|
|
912
|
+
stencilHooks_module.h(this);
|
|
809
913
|
}
|
|
810
914
|
disconnectedCallback() { }
|
|
811
915
|
render() {
|
|
@@ -817,7 +921,7 @@ const SqmHookStoryContainer = class {
|
|
|
817
921
|
constructor(hostRef) {
|
|
818
922
|
index.registerInstance(this, hostRef);
|
|
819
923
|
this.ignored = true;
|
|
820
|
-
stencilHooks_module.h
|
|
924
|
+
stencilHooks_module.h(this);
|
|
821
925
|
}
|
|
822
926
|
disconnectedCallback() { }
|
|
823
927
|
render() {
|
|
@@ -855,7 +959,7 @@ const InputField = class {
|
|
|
855
959
|
* @default
|
|
856
960
|
*/
|
|
857
961
|
this.fieldOptional = false;
|
|
858
|
-
stencilHooks_module.h
|
|
962
|
+
stencilHooks_module.h(this);
|
|
859
963
|
}
|
|
860
964
|
disconnectedCallback() { }
|
|
861
965
|
render() {
|
|
@@ -883,7 +987,7 @@ function useInputFieldDemo(props) {
|
|
|
883
987
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
884
988
|
}
|
|
885
989
|
|
|
886
|
-
const GET_LEADERBOARD =
|
|
990
|
+
const GET_LEADERBOARD = index$1.dist.gql `
|
|
887
991
|
query (
|
|
888
992
|
$type: String!
|
|
889
993
|
$filter: UserLeaderboardFilterInput
|
|
@@ -905,7 +1009,7 @@ const GET_LEADERBOARD = index_module.dist.gql `
|
|
|
905
1009
|
}
|
|
906
1010
|
}
|
|
907
1011
|
`;
|
|
908
|
-
const GET_RANK =
|
|
1012
|
+
const GET_RANK = index$1.dist.gql `
|
|
909
1013
|
query (
|
|
910
1014
|
$type: String!
|
|
911
1015
|
$filter: UserLeaderboardFilterInput
|
|
@@ -930,7 +1034,7 @@ function useLeaderboard(props) {
|
|
|
930
1034
|
const programIdContext = index_module.O();
|
|
931
1035
|
// Default to context, overriden by props
|
|
932
1036
|
const programId = (_a = props.programId) !== null && _a !== void 0 ? _a : programIdContext;
|
|
933
|
-
const user = index_module.
|
|
1037
|
+
const user = index_module.W();
|
|
934
1038
|
const locale = index_module.x();
|
|
935
1039
|
const variables = programId
|
|
936
1040
|
? {
|
|
@@ -950,8 +1054,8 @@ function useLeaderboard(props) {
|
|
|
950
1054
|
if (props.maxRows > 0) {
|
|
951
1055
|
variables["limit"] = props.maxRows;
|
|
952
1056
|
}
|
|
953
|
-
const { data: leaderboardData, loading: loadingLeaderboard } = index_module.
|
|
954
|
-
const { data: rankData } = index_module.
|
|
1057
|
+
const { data: leaderboardData, loading: loadingLeaderboard } = index_module.fn(GET_LEADERBOARD, variables, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
1058
|
+
const { data: rankData } = index_module.fn(GET_RANK, variables, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
955
1059
|
const leaderboardRows = (_b = leaderboardData === null || leaderboardData === void 0 ? void 0 : leaderboardData.userLeaderboard) === null || _b === void 0 ? void 0 : _b.rows;
|
|
956
1060
|
const flattenedLeaderboard = getFlattenedLeaderboard(leaderboardRows);
|
|
957
1061
|
const sortedLeaderboard = flattenedLeaderboard === null || flattenedLeaderboard === void 0 ? void 0 : flattenedLeaderboard.sort(function (a, b) {
|
|
@@ -1016,7 +1120,7 @@ const Leaderboard = class {
|
|
|
1016
1120
|
*/
|
|
1017
1121
|
this.maxRows = 10;
|
|
1018
1122
|
this.ignored = true;
|
|
1019
|
-
stencilHooks_module.h
|
|
1123
|
+
stencilHooks_module.h(this);
|
|
1020
1124
|
ShadowViewAddon.withShadowView(this);
|
|
1021
1125
|
}
|
|
1022
1126
|
disconnectedCallback() { }
|
|
@@ -1143,7 +1247,7 @@ const NameFields = class {
|
|
|
1143
1247
|
* @uiName Last Name label
|
|
1144
1248
|
*/
|
|
1145
1249
|
this.lastNameLabel = "Last Name";
|
|
1146
|
-
stencilHooks_module.h
|
|
1250
|
+
stencilHooks_module.h(this);
|
|
1147
1251
|
}
|
|
1148
1252
|
disconnectedCallback() { }
|
|
1149
1253
|
render() {
|
|
@@ -1178,12 +1282,12 @@ function NavigationMenuView(props) {
|
|
|
1178
1282
|
}
|
|
1179
1283
|
|
|
1180
1284
|
function handleMenu(e) {
|
|
1181
|
-
index_module.
|
|
1285
|
+
index_module.gn.push(e.detail.item.value);
|
|
1182
1286
|
}
|
|
1183
1287
|
function useNavigationMenu(props) {
|
|
1184
1288
|
const ref = stencilHooks_module.useRef();
|
|
1185
|
-
const [, rerender] = index_module.
|
|
1186
|
-
const user = index_module.
|
|
1289
|
+
const [, rerender] = index_module.dn();
|
|
1290
|
+
const user = index_module.W();
|
|
1187
1291
|
stencilHooks_module.useEffect(() => {
|
|
1188
1292
|
var _a;
|
|
1189
1293
|
(_a = ref.current) === null || _a === void 0 ? void 0 : _a.addEventListener("sl-select", (e) => handleMenu(e));
|
|
@@ -1208,7 +1312,7 @@ const NavigationMenu = class {
|
|
|
1208
1312
|
constructor(hostRef) {
|
|
1209
1313
|
index.registerInstance(this, hostRef);
|
|
1210
1314
|
this.ignored = true;
|
|
1211
|
-
stencilHooks_module.h
|
|
1315
|
+
stencilHooks_module.h(this);
|
|
1212
1316
|
}
|
|
1213
1317
|
disconnectedCallback() { }
|
|
1214
1318
|
render() {
|
|
@@ -1241,7 +1345,7 @@ function usePortalChangePassword(props) {
|
|
|
1241
1345
|
const [open, setOpen] = stencilHooks_module.useState(false);
|
|
1242
1346
|
const [error, setError] = stencilHooks_module.useState("");
|
|
1243
1347
|
const [success, setSuccess] = stencilHooks_module.useState(false);
|
|
1244
|
-
const user = index_module.
|
|
1348
|
+
const user = index_module.W();
|
|
1245
1349
|
const submit = async (event) => {
|
|
1246
1350
|
var _a, _b;
|
|
1247
1351
|
setSuccess(false);
|
|
@@ -1340,7 +1444,7 @@ const PortalChangePassword = class {
|
|
|
1340
1444
|
* @uiName Change Password Button Text
|
|
1341
1445
|
*/
|
|
1342
1446
|
this.portalChangePasswordButtonText = "Change your password...";
|
|
1343
|
-
stencilHooks_module.h
|
|
1447
|
+
stencilHooks_module.h(this);
|
|
1344
1448
|
}
|
|
1345
1449
|
disconnectedCallback() { }
|
|
1346
1450
|
render() {
|
|
@@ -1375,7 +1479,7 @@ function usePortalChangePasswordDemo(props) {
|
|
|
1375
1479
|
}
|
|
1376
1480
|
|
|
1377
1481
|
function usePortalFrame(footerContent, headerContent) {
|
|
1378
|
-
const [, rerender] = index_module.
|
|
1482
|
+
const [, rerender] = index_module.dn();
|
|
1379
1483
|
return {
|
|
1380
1484
|
data: {
|
|
1381
1485
|
footer: footerContent,
|
|
@@ -1395,7 +1499,7 @@ const PortalFrame = class {
|
|
|
1395
1499
|
* @undocumented
|
|
1396
1500
|
*/
|
|
1397
1501
|
this.notFullScreen = false;
|
|
1398
|
-
stencilHooks_module.h
|
|
1502
|
+
stencilHooks_module.h(this);
|
|
1399
1503
|
}
|
|
1400
1504
|
disconnectedCallback() { }
|
|
1401
1505
|
render() {
|
|
@@ -1427,7 +1531,7 @@ function usePortalLogin(props) {
|
|
|
1427
1531
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
1428
1532
|
const [request, { loading, errors, data }] = index_module.Me();
|
|
1429
1533
|
const [error, setError] = stencilHooks_module.useState("");
|
|
1430
|
-
const urlParams = new URLSearchParams(index_module.
|
|
1534
|
+
const urlParams = new URLSearchParams(index_module.gn.location.search);
|
|
1431
1535
|
const nextPageOverride = urlParams.get("nextPage");
|
|
1432
1536
|
const submit = async (event) => {
|
|
1433
1537
|
var _a, _b;
|
|
@@ -1446,7 +1550,7 @@ function usePortalLogin(props) {
|
|
|
1446
1550
|
if ((_b = result.authenticateManagedIdentityWithEmailAndPassword) === null || _b === void 0 ? void 0 : _b.token) {
|
|
1447
1551
|
urlParams.delete("nextPage");
|
|
1448
1552
|
const url = utils.sanitizeUrlPath(nextPageOverride || props.nextPage);
|
|
1449
|
-
index_module.
|
|
1553
|
+
index_module.gn.push(url.href);
|
|
1450
1554
|
}
|
|
1451
1555
|
};
|
|
1452
1556
|
const errorMessage = ((_d = (_c = (_b = (_a = errors === null || errors === void 0 ? void 0 : errors.response) === null || _a === void 0 ? void 0 : _a.errors) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.extensions) === null || _d === void 0 ? void 0 : _d.message) || ((_g = (_f = (_e = errors === null || errors === void 0 ? void 0 : errors.response) === null || _e === void 0 ? void 0 : _e.errors) === null || _f === void 0 ? void 0 : _f[0]) === null || _g === void 0 ? void 0 : _g.message) ||
|
|
@@ -1512,7 +1616,7 @@ const PortalLogin = class {
|
|
|
1512
1616
|
* @uiWidget textArea
|
|
1513
1617
|
*/
|
|
1514
1618
|
this.pageLabel = "Sign in to your account";
|
|
1515
|
-
stencilHooks_module.h
|
|
1619
|
+
stencilHooks_module.h(this);
|
|
1516
1620
|
}
|
|
1517
1621
|
disconnectedCallback() { }
|
|
1518
1622
|
render() {
|
|
@@ -1520,8 +1624,8 @@ const PortalLogin = class {
|
|
|
1520
1624
|
? useLoginDemo(this)
|
|
1521
1625
|
: usePortalLogin(this);
|
|
1522
1626
|
const content = {
|
|
1523
|
-
forgotPasswordButton: (index.h("slot", { name: "forgotPassword" }, index.h("a", { onClick: () => index_module.
|
|
1524
|
-
secondaryButton: (index.h("slot", { name: "secondaryButton" }, index.h("sl-button", { type: "text", disabled: states.loading, onClick: () => index_module.
|
|
1627
|
+
forgotPasswordButton: (index.h("slot", { name: "forgotPassword" }, index.h("a", { onClick: () => index_module.gn.push(states.forgotPasswordPath) }, this.forgotPasswordLabel))),
|
|
1628
|
+
secondaryButton: (index.h("slot", { name: "secondaryButton" }, index.h("sl-button", { type: "text", disabled: states.loading, onClick: () => index_module.gn.push(states.registerPath) }, this.registerLabel))),
|
|
1525
1629
|
emailLabel: this.emailLabel,
|
|
1526
1630
|
passwordLabel: this.passwordLabel,
|
|
1527
1631
|
submitLabel: this.submitLabel,
|
|
@@ -1550,7 +1654,7 @@ function usePortalRegister(props) {
|
|
|
1550
1654
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1551
1655
|
const formRef = stencilHooks_module.useRef(null);
|
|
1552
1656
|
const { registrationFormState, setRegistrationFormState } = useRegistrationFormState.useRegistrationFormState({});
|
|
1553
|
-
const [request, { loading, errors, data }] = index_module.
|
|
1657
|
+
const [request, { loading, errors, data }] = index_module.De();
|
|
1554
1658
|
stencilHooks_module.useEffect(() => {
|
|
1555
1659
|
if (!formRef.current)
|
|
1556
1660
|
return;
|
|
@@ -1623,7 +1727,7 @@ function usePortalRegister(props) {
|
|
|
1623
1727
|
validationErrors: {},
|
|
1624
1728
|
});
|
|
1625
1729
|
if ((_a = result.registerManagedIdentityWithEmailAndPassword) === null || _a === void 0 ? void 0 : _a.token) {
|
|
1626
|
-
index_module.
|
|
1730
|
+
index_module.gn.push(props.nextPage);
|
|
1627
1731
|
}
|
|
1628
1732
|
}
|
|
1629
1733
|
catch (error) {
|
|
@@ -1736,7 +1840,7 @@ const PortalRegister = class {
|
|
|
1736
1840
|
* @uiWidget pageSelect
|
|
1737
1841
|
*/
|
|
1738
1842
|
this.loginPath = "/login";
|
|
1739
|
-
stencilHooks_module.h
|
|
1843
|
+
stencilHooks_module.h(this);
|
|
1740
1844
|
}
|
|
1741
1845
|
disconnectedCallback() { }
|
|
1742
1846
|
render() {
|
|
@@ -1745,7 +1849,7 @@ const PortalRegister = class {
|
|
|
1745
1849
|
: usePortalRegister(this);
|
|
1746
1850
|
const content = {
|
|
1747
1851
|
formData: index.h("slot", { name: "formData" }),
|
|
1748
|
-
secondaryButton: (index.h("slot", { name: "secondaryButton" }, index.h("sl-button", { type: "text", disabled: states.loading, onClick: () => index_module.
|
|
1852
|
+
secondaryButton: (index.h("slot", { name: "secondaryButton" }, index.h("sl-button", { type: "text", disabled: states.loading, onClick: () => index_module.gn.push(states.loginPath) }, this.loginLabel))),
|
|
1749
1853
|
terms: index.h("slot", { name: "terms" }),
|
|
1750
1854
|
emailLabel: this.emailLabel,
|
|
1751
1855
|
passwordLabel: this.passwordLabel,
|
|
@@ -1826,7 +1930,7 @@ const ProgramExplainer = class {
|
|
|
1826
1930
|
constructor(hostRef) {
|
|
1827
1931
|
index.registerInstance(this, hostRef);
|
|
1828
1932
|
this.ignored = true;
|
|
1829
|
-
stencilHooks_module.h
|
|
1933
|
+
stencilHooks_module.h(this);
|
|
1830
1934
|
}
|
|
1831
1935
|
disconnectedCallback() { }
|
|
1832
1936
|
render() {
|
|
@@ -1897,7 +2001,7 @@ function ProgramExplainerStepView(props) {
|
|
|
1897
2001
|
const ProgramExplainerStep = class {
|
|
1898
2002
|
constructor(hostRef) {
|
|
1899
2003
|
index.registerInstance(this, hostRef);
|
|
1900
|
-
stencilHooks_module.h
|
|
2004
|
+
stencilHooks_module.h(this);
|
|
1901
2005
|
}
|
|
1902
2006
|
disconnectedCallback() { }
|
|
1903
2007
|
render() {
|
|
@@ -1912,7 +2016,7 @@ function useProgramMenu(props) {
|
|
|
1912
2016
|
const host = index_module.R();
|
|
1913
2017
|
debug({ programId, props });
|
|
1914
2018
|
const ref = stencilHooks_module.useRef();
|
|
1915
|
-
const [, rerender] = index_module.
|
|
2019
|
+
const [, rerender] = index_module.dn();
|
|
1916
2020
|
stencilHooks_module.useEffect(() => {
|
|
1917
2021
|
var _a;
|
|
1918
2022
|
(_a = ref.current) === null || _a === void 0 ? void 0 : _a.addEventListener('sl-select', (e) => {
|
|
@@ -1940,7 +2044,7 @@ const ProgramMenu = class {
|
|
|
1940
2044
|
constructor(hostRef) {
|
|
1941
2045
|
index.registerInstance(this, hostRef);
|
|
1942
2046
|
this.ignored = true;
|
|
1943
|
-
stencilHooks_module.h
|
|
2047
|
+
stencilHooks_module.h(this);
|
|
1944
2048
|
}
|
|
1945
2049
|
disconnectedCallback() { }
|
|
1946
2050
|
render() {
|
|
@@ -1951,6 +2055,7 @@ const ProgramMenu = class {
|
|
|
1951
2055
|
|
|
1952
2056
|
const style$1 = {
|
|
1953
2057
|
Container: {
|
|
2058
|
+
"& p": { margin: "0" },
|
|
1954
2059
|
display: "flex",
|
|
1955
2060
|
color: "var(--sl-color-neutral-900)",
|
|
1956
2061
|
background: "var(--sl-color-neutral-0)",
|
|
@@ -1961,8 +2066,6 @@ const style$1 = {
|
|
|
1961
2066
|
paddingRight: "var(--sl-spacing-medium)",
|
|
1962
2067
|
"@media (max-width: 499px)": {
|
|
1963
2068
|
width: "100%",
|
|
1964
|
-
padding: "0",
|
|
1965
|
-
marginBottom: "var(--sl-spacing-xx-large)",
|
|
1966
2069
|
},
|
|
1967
2070
|
},
|
|
1968
2071
|
"& .right": {
|
|
@@ -1972,7 +2075,6 @@ const style$1 = {
|
|
|
1972
2075
|
paddingLeft: "var(--sl-spacing-medium)",
|
|
1973
2076
|
"@media (max-width: 499px)": {
|
|
1974
2077
|
width: "100%",
|
|
1975
|
-
padding: "0",
|
|
1976
2078
|
},
|
|
1977
2079
|
},
|
|
1978
2080
|
border: "1px solid var(--sl-color-neutral-300)",
|
|
@@ -1995,7 +2097,7 @@ function ReferralCardView(props) {
|
|
|
1995
2097
|
index.h("style", { type: "text/css" },
|
|
1996
2098
|
styleString$1,
|
|
1997
2099
|
vanillaStyle),
|
|
1998
|
-
index.h("div", { class: sheet$1.classes.Container },
|
|
2100
|
+
index.h("div", { part: "sqm-base", class: sheet$1.classes.Container },
|
|
1999
2101
|
index.h("div", { class: "left", style: {
|
|
2000
2102
|
alignSelf: props.verticalAlignment,
|
|
2001
2103
|
} }, props.slots.left),
|
|
@@ -2015,7 +2117,7 @@ const ReferralCard = class {
|
|
|
2015
2117
|
* @uiEnumNames ["Top", "Center", "Bottom"]
|
|
2016
2118
|
*/
|
|
2017
2119
|
this.verticalAlignment = "start";
|
|
2018
|
-
stencilHooks_module.h
|
|
2120
|
+
stencilHooks_module.h(this);
|
|
2019
2121
|
}
|
|
2020
2122
|
disconnectedCallback() { }
|
|
2021
2123
|
render() {
|
|
@@ -2027,7 +2129,7 @@ const ReferralCard = class {
|
|
|
2027
2129
|
}
|
|
2028
2130
|
};
|
|
2029
2131
|
|
|
2030
|
-
const GET_USER_DETAILS =
|
|
2132
|
+
const GET_USER_DETAILS = index$1.dist.gql `
|
|
2031
2133
|
query getUser($programId: ID) {
|
|
2032
2134
|
viewer {
|
|
2033
2135
|
... on User {
|
|
@@ -2039,8 +2141,8 @@ const GET_USER_DETAILS = index_module.dist.gql `
|
|
|
2039
2141
|
function useReferralIframe(props) {
|
|
2040
2142
|
var _a;
|
|
2041
2143
|
const programId = index_module.O();
|
|
2042
|
-
const user = index_module.
|
|
2043
|
-
const { data } = index_module.
|
|
2144
|
+
const user = index_module.W();
|
|
2145
|
+
const { data } = index_module.fn(GET_USER_DETAILS, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt) || !programId);
|
|
2044
2146
|
return {
|
|
2045
2147
|
states: {
|
|
2046
2148
|
content: props,
|
|
@@ -2065,7 +2167,7 @@ const SqmReferralIframe = class {
|
|
|
2065
2167
|
* @uiName Iframe Width
|
|
2066
2168
|
*/
|
|
2067
2169
|
this.iframeWidth = "100%";
|
|
2068
|
-
stencilHooks_module.h
|
|
2170
|
+
stencilHooks_module.h(this);
|
|
2069
2171
|
}
|
|
2070
2172
|
disconnectedCallback() { }
|
|
2071
2173
|
render() {
|
|
@@ -2698,7 +2800,7 @@ var module$1 = {};
|
|
|
2698
2800
|
|
|
2699
2801
|
const confetti = module$1.exports;
|
|
2700
2802
|
|
|
2701
|
-
const GET_EXCHANGE_LIST =
|
|
2803
|
+
const GET_EXCHANGE_LIST = index$1.dist.gql `
|
|
2702
2804
|
query getExchangeList {
|
|
2703
2805
|
viewer {
|
|
2704
2806
|
... on User {
|
|
@@ -2741,7 +2843,7 @@ const GET_EXCHANGE_LIST = index_module.dist.gql `
|
|
|
2741
2843
|
}
|
|
2742
2844
|
}
|
|
2743
2845
|
`;
|
|
2744
|
-
const EXCHANGE =
|
|
2846
|
+
const EXCHANGE = index$1.dist.gql `
|
|
2745
2847
|
mutation exchange($exchangeRewardInput: ExchangeRewardInput!) {
|
|
2746
2848
|
exchangeReward(exchangeRewardInput: $exchangeRewardInput) {
|
|
2747
2849
|
reward {
|
|
@@ -2765,9 +2867,9 @@ function useRewardExchangeList(props) {
|
|
|
2765
2867
|
});
|
|
2766
2868
|
const [open, setOpen] = stencilHooks_module.useState(false);
|
|
2767
2869
|
const { selectedItem, selectedStep, redeemStage, amount, exchangeError } = exchangeState;
|
|
2768
|
-
const user = index_module.
|
|
2769
|
-
const [exchange, { data: exchangeResponse, loading: exchangeLoading, errors },] = index_module.
|
|
2770
|
-
const { data, loading, refetch, errors: queryError, } = index_module.
|
|
2870
|
+
const user = index_module.W();
|
|
2871
|
+
const [exchange, { data: exchangeResponse, loading: exchangeLoading, errors },] = index_module.Fe(EXCHANGE);
|
|
2872
|
+
const { data, loading, refetch, errors: queryError, } = index_module.fn(GET_EXCHANGE_LIST, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
2771
2873
|
stencilHooks_module.useEffect(() => {
|
|
2772
2874
|
var _a, _b;
|
|
2773
2875
|
if ((_b = (_a = exchangeResponse === null || exchangeResponse === void 0 ? void 0 : exchangeResponse.exchangeReward) === null || _a === void 0 ? void 0 : _a.reward) === null || _b === void 0 ? void 0 : _b.id) {
|
|
@@ -2786,7 +2888,7 @@ function useRewardExchangeList(props) {
|
|
|
2786
2888
|
canvas.confetti || confetti.create(canvas, { resize: true });
|
|
2787
2889
|
canvas.confetti();
|
|
2788
2890
|
}, [canvasRef.current]);
|
|
2789
|
-
const { refresh } = index_module.
|
|
2891
|
+
const { refresh } = index_module.He();
|
|
2790
2892
|
async function exchangeReward() {
|
|
2791
2893
|
if (!selectedItem)
|
|
2792
2894
|
return;
|
|
@@ -3034,7 +3136,7 @@ const SqmRewardExchangeList = class {
|
|
|
3034
3136
|
* @uiName Cost Row Title
|
|
3035
3137
|
*/
|
|
3036
3138
|
this.costTitle = "Cost to Redeem";
|
|
3037
|
-
stencilHooks_module.h
|
|
3139
|
+
stencilHooks_module.h(this);
|
|
3038
3140
|
}
|
|
3039
3141
|
disconnectedCallback() { }
|
|
3040
3142
|
render() {
|
|
@@ -3094,7 +3196,7 @@ function matchPath(pattern, page) {
|
|
|
3094
3196
|
return regexp.exec(page);
|
|
3095
3197
|
}
|
|
3096
3198
|
function useRouter() {
|
|
3097
|
-
const location = index_module.
|
|
3199
|
+
const location = index_module.mn();
|
|
3098
3200
|
const host = index_module.R();
|
|
3099
3201
|
const [slot, setSlot] = stencilHooks_module.useState(undefined);
|
|
3100
3202
|
const [container, setContainer] = stencilHooks_module.useState(undefined);
|
|
@@ -3168,7 +3270,7 @@ const SqmRouter = class {
|
|
|
3168
3270
|
constructor(hostRef) {
|
|
3169
3271
|
index.registerInstance(this, hostRef);
|
|
3170
3272
|
this.ignored = true;
|
|
3171
|
-
stencilHooks_module.h
|
|
3273
|
+
stencilHooks_module.h(this);
|
|
3172
3274
|
}
|
|
3173
3275
|
disconnectedCallback() { }
|
|
3174
3276
|
render() {
|
|
@@ -3215,7 +3317,7 @@ const Scroll = class {
|
|
|
3215
3317
|
* @uiEnumNames ["Smooth", "Auto"]
|
|
3216
3318
|
*/
|
|
3217
3319
|
this.scrollAnimation = "smooth";
|
|
3218
|
-
stencilHooks_module.h
|
|
3320
|
+
stencilHooks_module.h(this);
|
|
3219
3321
|
}
|
|
3220
3322
|
disconnectedCallback() { }
|
|
3221
3323
|
render() {
|
|
@@ -3307,7 +3409,7 @@ const ShareButton = class {
|
|
|
3307
3409
|
* @default
|
|
3308
3410
|
*/
|
|
3309
3411
|
this.hidetext = false;
|
|
3310
|
-
stencilHooks_module.h
|
|
3412
|
+
stencilHooks_module.h(this);
|
|
3311
3413
|
}
|
|
3312
3414
|
disconnectedCallback() { }
|
|
3313
3415
|
render() {
|
|
@@ -3330,7 +3432,7 @@ function useDemoShareButton(props) {
|
|
|
3330
3432
|
}
|
|
3331
3433
|
ShareButton.style = sqmShareButtonCss;
|
|
3332
3434
|
|
|
3333
|
-
const MessageLinkQuery =
|
|
3435
|
+
const MessageLinkQuery$1 = index$1.dist.gql `
|
|
3334
3436
|
query ($programId: ID) {
|
|
3335
3437
|
user: viewer {
|
|
3336
3438
|
... on User {
|
|
@@ -3339,7 +3441,7 @@ const MessageLinkQuery = index_module.dist.gql `
|
|
|
3339
3441
|
}
|
|
3340
3442
|
}
|
|
3341
3443
|
`;
|
|
3342
|
-
const WIDGET_ENGAGEMENT_EVENT =
|
|
3444
|
+
const WIDGET_ENGAGEMENT_EVENT$1 = index$1.dist.gql `
|
|
3343
3445
|
mutation loadEvent($eventMeta: UserAnalyticsEvent!) {
|
|
3344
3446
|
createUserAnalyticsEvent(eventMeta: $eventMeta)
|
|
3345
3447
|
}
|
|
@@ -3347,18 +3449,18 @@ const WIDGET_ENGAGEMENT_EVENT = index_module.dist.gql `
|
|
|
3347
3449
|
function useShareCode(props) {
|
|
3348
3450
|
var _a, _b;
|
|
3349
3451
|
const { programId = index_module.O() } = props;
|
|
3350
|
-
const user = index_module.
|
|
3351
|
-
const engagementMedium = index_module.
|
|
3352
|
-
const { data } = index_module.
|
|
3353
|
-
const [sendLoadEvent] = index_module.
|
|
3354
|
-
const
|
|
3452
|
+
const user = index_module.W();
|
|
3453
|
+
const engagementMedium = index_module._();
|
|
3454
|
+
const { data } = index_module.fn(MessageLinkQuery$1, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
3455
|
+
const [sendLoadEvent] = index_module.Fe(WIDGET_ENGAGEMENT_EVENT$1);
|
|
3456
|
+
const copyString = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.referralCode) !== null && _b !== void 0 ? _b :
|
|
3355
3457
|
// Shown during loading
|
|
3356
3458
|
"...";
|
|
3357
3459
|
const [open, setOpen] = stencilHooks_module.useState(false);
|
|
3358
3460
|
function onClick() {
|
|
3359
3461
|
// Should well supported: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
|
|
3360
3462
|
// Only if called from a user-initiated event
|
|
3361
|
-
navigator.clipboard.writeText(
|
|
3463
|
+
navigator.clipboard.writeText(copyString);
|
|
3362
3464
|
setOpen(true);
|
|
3363
3465
|
setTimeout(() => setOpen(false), props.tooltiplifespan);
|
|
3364
3466
|
sendLoadEvent({
|
|
@@ -3374,7 +3476,7 @@ function useShareCode(props) {
|
|
|
3374
3476
|
},
|
|
3375
3477
|
});
|
|
3376
3478
|
}
|
|
3377
|
-
return { ...props, onClick, open,
|
|
3479
|
+
return { ...props, onClick, open, copyString: copyString };
|
|
3378
3480
|
}
|
|
3379
3481
|
|
|
3380
3482
|
const ShareCode = class {
|
|
@@ -3392,7 +3494,19 @@ const ShareCode = class {
|
|
|
3392
3494
|
* @uiName Tooltip lifespan
|
|
3393
3495
|
*/
|
|
3394
3496
|
this.tooltiplifespan = 1000;
|
|
3395
|
-
|
|
3497
|
+
/**
|
|
3498
|
+
* Change the text alignment
|
|
3499
|
+
*
|
|
3500
|
+
* @uiName Align text
|
|
3501
|
+
*/
|
|
3502
|
+
this.textAlign = "left";
|
|
3503
|
+
/**
|
|
3504
|
+
* Set copy button as icon
|
|
3505
|
+
*
|
|
3506
|
+
* @uiName Copy icon
|
|
3507
|
+
*/
|
|
3508
|
+
this.isCopyIcon = true;
|
|
3509
|
+
stencilHooks_module.h(this);
|
|
3396
3510
|
}
|
|
3397
3511
|
disconnectedCallback() { }
|
|
3398
3512
|
render() {
|
|
@@ -3400,20 +3514,22 @@ const ShareCode = class {
|
|
|
3400
3514
|
const props = index_module.isDemo()
|
|
3401
3515
|
? useDemoShareCode(thisProps)
|
|
3402
3516
|
: useShareCode(thisProps);
|
|
3403
|
-
return index.h(ShadowViewAddon.
|
|
3517
|
+
return index.h(ShadowViewAddon.CopyTextView, Object.assign({}, props));
|
|
3404
3518
|
}
|
|
3405
3519
|
};
|
|
3406
3520
|
function useDemoShareCode(props) {
|
|
3407
3521
|
const [open, setOpen] = stencilHooks_module.useState(false);
|
|
3408
|
-
const
|
|
3522
|
+
const copyString = "SHARECODE001";
|
|
3409
3523
|
return cjs.cjs({
|
|
3410
|
-
|
|
3524
|
+
copyString: copyString,
|
|
3411
3525
|
tooltiptext: props.tooltiptext,
|
|
3526
|
+
isCopyIcon: props.isCopyIcon,
|
|
3527
|
+
textAlign: props.textAlign,
|
|
3412
3528
|
open,
|
|
3413
3529
|
onClick: () => {
|
|
3414
3530
|
// Should well supported: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
|
|
3415
3531
|
// Only if called from a user-initiated event
|
|
3416
|
-
navigator.clipboard.writeText(
|
|
3532
|
+
navigator.clipboard.writeText(copyString);
|
|
3417
3533
|
setOpen(true);
|
|
3418
3534
|
setTimeout(() => setOpen(false), props.tooltiplifespan);
|
|
3419
3535
|
},
|
|
@@ -3435,7 +3551,19 @@ const ShareLink = class {
|
|
|
3435
3551
|
* @uiName Tooltip Lifespan
|
|
3436
3552
|
*/
|
|
3437
3553
|
this.tooltiplifespan = 1000;
|
|
3438
|
-
|
|
3554
|
+
/**
|
|
3555
|
+
* Change the text alignment
|
|
3556
|
+
*
|
|
3557
|
+
* @uiName Align text
|
|
3558
|
+
*/
|
|
3559
|
+
this.textAlign = "left";
|
|
3560
|
+
/**
|
|
3561
|
+
* Set copy button as icon
|
|
3562
|
+
*
|
|
3563
|
+
* @uiName Copy icon
|
|
3564
|
+
*/
|
|
3565
|
+
this.isCopyIcon = true;
|
|
3566
|
+
stencilHooks_module.h(this);
|
|
3439
3567
|
}
|
|
3440
3568
|
disconnectedCallback() { }
|
|
3441
3569
|
render() {
|
|
@@ -3443,20 +3571,22 @@ const ShareLink = class {
|
|
|
3443
3571
|
const props = index_module.isDemo()
|
|
3444
3572
|
? useDemoShareLink(thisProps)
|
|
3445
3573
|
: ShadowViewAddon.useShareLink(thisProps);
|
|
3446
|
-
return index.h(ShadowViewAddon.
|
|
3574
|
+
return index.h(ShadowViewAddon.CopyTextView, Object.assign({}, props));
|
|
3447
3575
|
}
|
|
3448
3576
|
};
|
|
3449
3577
|
function useDemoShareLink(props) {
|
|
3450
3578
|
const [open, setOpen] = stencilHooks_module.useState(false);
|
|
3451
|
-
const
|
|
3579
|
+
const copyString = "https://www.example.com/sharelink/abc";
|
|
3452
3580
|
return cjs.cjs({
|
|
3453
|
-
|
|
3581
|
+
copyString: copyString,
|
|
3454
3582
|
tooltiptext: props.tooltiptext,
|
|
3583
|
+
isCopyIcon: props.isCopyIcon,
|
|
3584
|
+
textAlign: props.textAlign,
|
|
3455
3585
|
open,
|
|
3456
3586
|
onClick: () => {
|
|
3457
3587
|
// Should well supported: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
|
|
3458
3588
|
// Only if called from a user-initiated event
|
|
3459
|
-
navigator.clipboard.writeText(
|
|
3589
|
+
navigator.clipboard.writeText(copyString);
|
|
3460
3590
|
setOpen(true);
|
|
3461
3591
|
setTimeout(() => setOpen(false), props.tooltiplifespan);
|
|
3462
3592
|
},
|
|
@@ -3481,7 +3611,7 @@ const StatContainer = class {
|
|
|
3481
3611
|
* @uiEnumNames ["Grid", "Flex"]
|
|
3482
3612
|
*/
|
|
3483
3613
|
this.display = "grid";
|
|
3484
|
-
stencilHooks_module.h
|
|
3614
|
+
stencilHooks_module.h(this);
|
|
3485
3615
|
}
|
|
3486
3616
|
disconnectedCallback() { }
|
|
3487
3617
|
render() {
|
|
@@ -3515,7 +3645,7 @@ const TableRow = class {
|
|
|
3515
3645
|
}
|
|
3516
3646
|
};
|
|
3517
3647
|
|
|
3518
|
-
const SEND_EVENT =
|
|
3648
|
+
const SEND_EVENT = index$1.dist.gql `
|
|
3519
3649
|
mutation taskCardEvent($userEventInput: UserEventInput!) {
|
|
3520
3650
|
logUserEvent(userEventInput: $userEventInput) {
|
|
3521
3651
|
userId
|
|
@@ -3523,10 +3653,10 @@ const SEND_EVENT = index_module.dist.gql `
|
|
|
3523
3653
|
}
|
|
3524
3654
|
`;
|
|
3525
3655
|
function useTaskCard(props) {
|
|
3526
|
-
const user = index_module.
|
|
3656
|
+
const user = index_module.W();
|
|
3527
3657
|
const locale = index_module.x();
|
|
3528
|
-
const [sendUserEvent, { data, loading: loadingEvent }] = index_module.
|
|
3529
|
-
const { refresh } = index_module.
|
|
3658
|
+
const [sendUserEvent, { data, loading: loadingEvent }] = index_module.Fe(SEND_EVENT);
|
|
3659
|
+
const { refresh } = index_module.He();
|
|
3530
3660
|
stencilHooks_module.useEffect(() => {
|
|
3531
3661
|
if (data) {
|
|
3532
3662
|
refresh();
|
|
@@ -3660,7 +3790,7 @@ const TaskCard = class {
|
|
|
3660
3790
|
* @default
|
|
3661
3791
|
*/
|
|
3662
3792
|
this.openNewTab = false;
|
|
3663
|
-
stencilHooks_module.h
|
|
3793
|
+
stencilHooks_module.h(this);
|
|
3664
3794
|
}
|
|
3665
3795
|
disconnectedCallback() { }
|
|
3666
3796
|
render() {
|
|
@@ -3700,7 +3830,7 @@ const Timeline = class {
|
|
|
3700
3830
|
* @uiEnumNames ["Gift", "Circle"]
|
|
3701
3831
|
*/
|
|
3702
3832
|
this.icon = "gift";
|
|
3703
|
-
stencilHooks_module.h
|
|
3833
|
+
stencilHooks_module.h(this);
|
|
3704
3834
|
}
|
|
3705
3835
|
disconnectedCallback() { }
|
|
3706
3836
|
render() {
|
|
@@ -3795,7 +3925,7 @@ function TimelineEntryView(props) {
|
|
|
3795
3925
|
index.h("style", { type: "text/css" },
|
|
3796
3926
|
styleString$2,
|
|
3797
3927
|
vanillaStyle$1),
|
|
3798
|
-
index.h("div", { class: "container" },
|
|
3928
|
+
index.h("div", { class: "container", part: "sqm-base" },
|
|
3799
3929
|
index.h("div", { class: "line" }, "/"),
|
|
3800
3930
|
index.h("div", { class: "step" },
|
|
3801
3931
|
timeline_icon === "gift" && (index.h("div", { class: "icon" },
|
|
@@ -3804,9 +3934,9 @@ function TimelineEntryView(props) {
|
|
|
3804
3934
|
index.h(Circle, null))),
|
|
3805
3935
|
index.h("div", null,
|
|
3806
3936
|
index.h("div", null,
|
|
3807
|
-
index.h("span", { class: "reward" }, props.reward),
|
|
3808
|
-
index.h("span", { class: "unit" }, props.unit)),
|
|
3809
|
-
index.h("div", { class: "description" }, props.desc))))));
|
|
3937
|
+
index.h("span", { class: "reward", part: "sqm-reward" }, props.reward),
|
|
3938
|
+
index.h("span", { class: "unit", part: "sqm-unit" }, props.unit)),
|
|
3939
|
+
index.h("div", { class: "description", part: "sqm-description" }, props.desc))))));
|
|
3810
3940
|
}
|
|
3811
3941
|
|
|
3812
3942
|
const TimelineReward = class {
|
|
@@ -3814,7 +3944,7 @@ const TimelineReward = class {
|
|
|
3814
3944
|
index.registerInstance(this, hostRef);
|
|
3815
3945
|
this.ignored = true;
|
|
3816
3946
|
this.iconState = "gift";
|
|
3817
|
-
stencilHooks_module.h
|
|
3947
|
+
stencilHooks_module.h(this);
|
|
3818
3948
|
}
|
|
3819
3949
|
async setIcon(value) {
|
|
3820
3950
|
this.iconState = value;
|
|
@@ -3830,7 +3960,7 @@ function UserNameView(props) {
|
|
|
3830
3960
|
return index.h(index.Host, null, props.loading ? props.loadingText : props.username);
|
|
3831
3961
|
}
|
|
3832
3962
|
|
|
3833
|
-
const GET_USER_NAME =
|
|
3963
|
+
const GET_USER_NAME = index$1.dist.gql `
|
|
3834
3964
|
query getUserName {
|
|
3835
3965
|
viewer {
|
|
3836
3966
|
... on User {
|
|
@@ -3842,8 +3972,8 @@ const GET_USER_NAME = index_module.dist.gql `
|
|
|
3842
3972
|
`;
|
|
3843
3973
|
function useUserName(props) {
|
|
3844
3974
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
3845
|
-
const user = index_module.
|
|
3846
|
-
const res = index_module.
|
|
3975
|
+
const user = index_module.W();
|
|
3976
|
+
const res = index_module.fn(GET_USER_NAME, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
3847
3977
|
const loading = res.loading;
|
|
3848
3978
|
const username = ((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.firstName) || ((_d = (_c = res.data) === null || _c === void 0 ? void 0 : _c.viewer) === null || _d === void 0 ? void 0 : _d.lastName)
|
|
3849
3979
|
? `${(_f = (_e = res.data) === null || _e === void 0 ? void 0 : _e.viewer) === null || _f === void 0 ? void 0 : _f.firstName} ${(_h = (_g = res.data) === null || _g === void 0 ? void 0 : _g.viewer) === null || _h === void 0 ? void 0 : _h.lastName}`
|
|
@@ -3868,7 +3998,7 @@ const UserName = class {
|
|
|
3868
3998
|
* @uiName Loading Text
|
|
3869
3999
|
*/
|
|
3870
4000
|
this.loadingText = "...";
|
|
3871
|
-
stencilHooks_module.h
|
|
4001
|
+
stencilHooks_module.h(this);
|
|
3872
4002
|
}
|
|
3873
4003
|
disconnectedCallback() { }
|
|
3874
4004
|
render() {
|
|
@@ -3888,6 +4018,7 @@ exports.sqm_big_stat = BigStat;
|
|
|
3888
4018
|
exports.sqm_brand = BrandComponent;
|
|
3889
4019
|
exports.sqm_card_feed = CardFeed;
|
|
3890
4020
|
exports.sqm_checkbox_field = CheckboxField;
|
|
4021
|
+
exports.sqm_coupon_code = CouponCode;
|
|
3891
4022
|
exports.sqm_divided_layout = DividedLayout;
|
|
3892
4023
|
exports.sqm_dropdown_field = DropdownField;
|
|
3893
4024
|
exports.sqm_edit_profile = EditProfile;
|