@saasquatch/mint-components 1.6.7 → 1.6.8-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/dist/cjs/{GenericTableView-9271483b.js → GenericTableView-380b83e2.js} +7 -2
- package/dist/cjs/{sqm-portal-footer-view-349373b2.js → PoweredByImg-7084ef2d.js} +0 -66
- package/dist/cjs/{ShadowViewAddon-9c42e820.js → ShadowViewAddon-700db2d1.js} +410 -399
- package/dist/cjs/{global-67a37b3f.js → global-915ed2a6.js} +654 -654
- package/dist/cjs/{index.module-c6626247.js → index.module-bd6e817a.js} +31 -17
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/mint-components.cjs.js +3 -3
- package/dist/cjs/{re-render-fce04f85.js → re-render-1d12dfdd.js} +2 -2
- package/dist/cjs/sqm-asset-card.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-big-stat_35.cjs.entry.js → sqm-big-stat_36.cjs.entry.js} +440 -310
- package/dist/cjs/sqm-empty_5.cjs.entry.js +52 -52
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-hero-view-fcc0188c.js → sqm-hero-view-55ae68f9.js} +14 -14
- package/dist/cjs/sqm-hero.cjs.entry.js +1 -1
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +16 -16
- package/dist/cjs/sqm-link-button.cjs.entry.js +43 -0
- package/dist/cjs/{sqm-navigation-sidebar-item-view-8b4f304f.js → sqm-navigation-sidebar-item-view-32701b2e.js} +2 -2
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-navigation-sidebar-view-2da83d3b.js → sqm-navigation-sidebar-view-4704aa73.js} +141 -141
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +3 -3
- package/dist/cjs/sqm-password-field.cjs.entry.js +11 -11
- package/dist/cjs/sqm-passwordless-registration-view-202978e8.js +51 -0
- package/dist/cjs/sqm-passwordless-registration.cjs.entry.js +89 -0
- package/dist/cjs/sqm-popup-container.cjs.entry.js +4 -4
- package/dist/cjs/{sqm-portal-container-view-3215dce9.js → sqm-portal-container-view-e81faa02.js} +5 -5
- package/dist/cjs/{sqm-portal-email-verification-view-6f41962b.js → sqm-portal-email-verification-view-c2bf10fc.js} +9 -9
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +8 -8
- package/dist/cjs/sqm-portal-footer-view-6603da15.js +71 -0
- package/dist/cjs/sqm-portal-footer.cjs.entry.js +4 -3
- package/dist/cjs/{sqm-portal-forgot-password-view-a3573ade.js → sqm-portal-forgot-password-view-4b1e9876.js} +8 -8
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +5 -5
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-profile-view-b8215eae.js → sqm-portal-profile-view-7b81c233.js} +2 -2
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +39 -39
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +5 -5
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +32 -32
- package/dist/cjs/{sqm-portal-reset-password-view-a5d48909.js → sqm-portal-reset-password-view-95ceb0f3.js} +8 -8
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +8 -8
- package/dist/cjs/{sqm-portal-verify-email-view-9657cc0c.js → sqm-portal-verify-email-view-5bafc739.js} +8 -8
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +7 -7
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +14 -14
- package/dist/cjs/sqm-referred-registration-view-ecf78a0f.js +51 -0
- package/dist/cjs/sqm-referred-registration.cjs.entry.js +89 -0
- package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +1 -1
- package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +2 -2
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +113 -113
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +971 -798
- package/dist/cjs/sqm-tab.cjs.entry.js +2 -2
- package/dist/cjs/sqm-tabs.cjs.entry.js +7 -7
- package/dist/cjs/{sqm-text-span-view-1acdf7e9.js → sqm-text-span-view-dfb76601.js} +8 -8
- package/dist/cjs/sqm-text-span.cjs.entry.js +1 -1
- package/dist/cjs/sqm-user-identifier-view-5daa1cf0.js +28 -0
- package/dist/cjs/sqm-user-identifier.cjs.entry.js +29 -0
- package/dist/cjs/{useChildElements-eaa9e49d.js → useChildElements-0a6ccd0f.js} +1 -1
- package/dist/cjs/usePasswordlessRegistration-9105faa4.js +47 -0
- package/dist/cjs/{useReferralTable-6257eb3b.js → useReferralTable-eba1424e.js} +189 -189
- package/dist/cjs/{useRegistrationFormState-a1861717.js → useRegistrationFormState-ed30c0e6.js} +1 -1
- package/dist/collection/collection-manifest.json +5 -0
- package/dist/collection/components/sqm-big-stat/useBigStat.js +238 -238
- package/dist/collection/components/sqm-brand/sqm-brand.js +21 -21
- package/dist/collection/components/sqm-card-feed/sqm-card-feed-view.js +6 -6
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field-view.js +14 -14
- 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-divided-layout/sqm-divided-layout-view.js +15 -15
- package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field-view.js +10 -10
- package/dist/collection/components/sqm-edit-profile/useEditProfile.js +32 -32
- package/dist/collection/components/sqm-external-link-button/ExternalButton.stories.js +20 -0
- package/dist/collection/components/sqm-external-link-button/sqm-link-button-view.js +22 -0
- package/dist/collection/components/sqm-external-link-button/sqm-link-button.js +68 -0
- package/dist/collection/components/sqm-hero/sqm-hero-view.js +14 -14
- package/dist/collection/components/sqm-hero-image/sqm-hero-image-view.js +12 -13
- package/dist/collection/components/sqm-image/sqm-image-view.js +5 -5
- package/dist/collection/components/sqm-input-field/sqm-input-field-view.js +6 -6
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +4 -4
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +2 -2
- package/dist/collection/components/sqm-leaderboard/useLeaderboard.js +40 -40
- package/dist/collection/components/sqm-leaderboard-rank/sqm-leaderboard-rank.js +2 -2
- package/dist/collection/components/sqm-leaderboard-rank/useLeaderboardRank.js +12 -12
- package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +11 -11
- package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar-view.js +141 -141
- package/dist/collection/components/sqm-password-field/sqm-password-field-view.js +9 -9
- 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 +42 -0
- package/dist/collection/components/sqm-portal-container/sqm-portal-container-view.js +5 -5
- package/dist/collection/components/sqm-portal-container/sqm-portal-container.js +1 -1
- package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification-view.js +7 -7
- package/dist/collection/components/sqm-portal-footer/sqm-portal-footer-view.js +10 -10
- package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.js +7 -7
- package/dist/collection/components/sqm-portal-login/sqm-portal-login-view.js +7 -7
- package/dist/collection/components/sqm-portal-profile/usePortalProfile.js +32 -32
- package/dist/collection/components/sqm-portal-register/sqm-portal-register-view.js +14 -14
- package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form-view.js +14 -14
- package/dist/collection/components/sqm-portal-registration-form/usePortalRegistrationForm.js +12 -12
- package/dist/collection/components/sqm-portal-reset-password/sqm-portal-reset-password-view.js +7 -7
- package/dist/collection/components/sqm-portal-verify-email/sqm-portal-verify-email-view.js +7 -7
- package/dist/collection/components/sqm-program-explainer/sqm-program-explainer-view.js +9 -9
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step-view.js +9 -9
- package/dist/collection/components/sqm-referral-card/sqm-referral-card-view.js +6 -8
- package/dist/collection/components/sqm-referral-iframe/useReferralIframe.js +8 -8
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +7 -7
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-date-column.js +2 -2
- package/dist/collection/components/sqm-referral-table/sqm-referral-table.js +2 -2
- package/dist/collection/components/sqm-referral-table/useReferralTable.js +183 -183
- package/dist/collection/components/sqm-referred-registration/ReferredRegistration.stories.js +32 -0
- package/dist/collection/components/sqm-referred-registration/sqm-referred-registration-view.js +46 -0
- package/dist/collection/components/sqm-referred-registration/sqm-referred-registration.js +267 -0
- package/dist/collection/components/sqm-reward-exchange-list/UseRewardExchangeList.stories.js +8 -8
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +2 -2
- package/dist/collection/components/sqm-reward-exchange-list/useRewardExchangeList.js +51 -51
- 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-date-column.js +1 -1
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.js +1 -1
- package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +2 -2
- package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +103 -103
- package/dist/collection/components/sqm-router/Router.stories.js +71 -71
- package/dist/collection/components/sqm-router/sqm-router.css +7 -7
- package/dist/collection/components/sqm-scroll/Scroll.stories.js +50 -50
- package/dist/collection/components/sqm-scroll/sqm-scroll.js +13 -13
- package/dist/collection/components/sqm-share-button/sqm-share-button-view.js +22 -22
- package/dist/collection/components/sqm-share-button/sqm-share-button.js +5 -5
- package/dist/collection/components/sqm-share-button/useShareButton.js +17 -17
- 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 +15 -15
- 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 +15 -15
- package/dist/collection/components/sqm-stencilbook/Resizer.js +24 -24
- package/dist/collection/components/sqm-stencilbook/Themes.js +25 -25
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +8 -0
- package/dist/collection/components/sqm-tabs/Tabs.stories.js +475 -475
- package/dist/collection/components/sqm-tabs/sqm-tabs-view.js +4 -4
- package/dist/collection/components/sqm-task-card/DetailsView.js +1 -1
- package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +15 -14
- package/dist/collection/components/sqm-task-card/useTaskCard.js +6 -6
- package/dist/collection/components/sqm-text/sqm-text.js +46 -46
- package/dist/collection/components/sqm-text-span/sqm-text-span-view.js +8 -8
- package/dist/collection/components/sqm-timeline/sqm-timeline-entry-view.js +12 -12
- package/dist/collection/components/sqm-timeline/sqm-timeline.js +8 -8
- package/dist/collection/components/sqm-user-identifier/UserIdentifier.stories.js +17 -0
- package/dist/collection/components/sqm-user-identifier/sqm-user-identifier-view.js +23 -0
- package/dist/collection/components/sqm-user-identifier/sqm-user-identifier.js +101 -0
- package/dist/collection/components/sqm-user-name/useUserName.js +9 -9
- package/dist/collection/components/views/copy-text-view.js +28 -0
- package/dist/collection/global/styles.js +653 -653
- package/dist/collection/global/styles.ts +729 -729
- package/dist/collection/stories/NewPortal.stories.js +5 -5
- package/dist/collection/stories/PortalTemplates.stories.js +10 -0
- package/dist/collection/tables/GenericTableView.js +7 -2
- package/dist/esm/{GenericTableView-ce26115f.js → GenericTableView-266126f9.js} +7 -2
- package/dist/esm/{sqm-portal-footer-view-41fe6018.js → PoweredByImg-1114005e.js} +1 -66
- package/dist/esm/{ShadowViewAddon-9791fbe2.js → ShadowViewAddon-5b93861f.js} +410 -399
- package/dist/esm/{global-fbe84c58.js → global-148543ea.js} +654 -654
- package/dist/esm/{index.module-3c720e8f.js → index.module-9ea0fbf4.js} +22 -9
- package/dist/esm/loader.js +3 -3
- package/dist/esm/mint-components.js +3 -3
- package/dist/esm/{re-render-695ddbbd.js → re-render-f93d483e.js} +2 -2
- package/dist/esm/sqm-asset-card.entry.js +1 -1
- package/dist/esm/{sqm-big-stat_35.entry.js → sqm-big-stat_36.entry.js} +440 -311
- package/dist/esm/sqm-empty_5.entry.js +52 -52
- package/dist/esm/sqm-graphql-client-provider.entry.js +3 -3
- package/dist/esm/{sqm-hero-view-f1809063.js → sqm-hero-view-fa98c30f.js} +14 -14
- package/dist/esm/sqm-hero.entry.js +1 -1
- package/dist/esm/sqm-leaderboard-rank.entry.js +16 -16
- package/dist/esm/sqm-link-button.entry.js +39 -0
- package/dist/esm/{sqm-navigation-sidebar-item-view-6f909ba7.js → sqm-navigation-sidebar-item-view-fbf5f089.js} +2 -2
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +3 -3
- package/dist/esm/{sqm-navigation-sidebar-view-74ad47d4.js → sqm-navigation-sidebar-view-06a9d083.js} +141 -141
- package/dist/esm/sqm-navigation-sidebar.entry.js +3 -3
- package/dist/esm/sqm-password-field.entry.js +11 -11
- package/dist/esm/sqm-passwordless-registration-view-7f0dfa72.js +49 -0
- package/dist/esm/sqm-passwordless-registration.entry.js +85 -0
- package/dist/esm/sqm-popup-container.entry.js +4 -4
- package/dist/esm/{sqm-portal-container-view-8e091565.js → sqm-portal-container-view-ea206473.js} +5 -5
- package/dist/esm/{sqm-portal-email-verification-view-381320c4.js → sqm-portal-email-verification-view-ab44c032.js} +9 -9
- package/dist/esm/sqm-portal-email-verification.entry.js +8 -8
- package/dist/esm/sqm-portal-footer-view-e4ca33f1.js +69 -0
- package/dist/esm/sqm-portal-footer.entry.js +4 -3
- package/dist/esm/{sqm-portal-forgot-password-view-37bafb1c.js → sqm-portal-forgot-password-view-76bfc8b6.js} +8 -8
- package/dist/esm/sqm-portal-forgot-password.entry.js +5 -5
- package/dist/esm/sqm-portal-logout.entry.js +2 -2
- package/dist/esm/{sqm-portal-profile-view-510e0fac.js → sqm-portal-profile-view-3e5977d8.js} +2 -2
- package/dist/esm/sqm-portal-profile.entry.js +39 -39
- package/dist/esm/sqm-portal-protected-route.entry.js +5 -5
- package/dist/esm/sqm-portal-registration-form.entry.js +32 -32
- package/dist/esm/{sqm-portal-reset-password-view-2b9da683.js → sqm-portal-reset-password-view-3f14e5e4.js} +8 -8
- package/dist/esm/sqm-portal-reset-password.entry.js +8 -8
- package/dist/esm/{sqm-portal-verify-email-view-e3e39501.js → sqm-portal-verify-email-view-a3f3aad6.js} +8 -8
- package/dist/esm/sqm-portal-verify-email.entry.js +7 -7
- package/dist/esm/sqm-referral-table_11.entry.js +14 -14
- package/dist/esm/sqm-referred-registration-view-1ecc43f9.js +49 -0
- package/dist/esm/sqm-referred-registration.entry.js +85 -0
- package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +1 -1
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +2 -2
- package/dist/esm/sqm-rewards-table_9.entry.js +113 -113
- package/dist/esm/sqm-stencilbook.entry.js +968 -795
- package/dist/esm/sqm-tab.entry.js +2 -2
- package/dist/esm/sqm-tabs.entry.js +7 -7
- package/dist/esm/{sqm-text-span-view-b03a3c6d.js → sqm-text-span-view-8b2c44ec.js} +8 -8
- package/dist/esm/sqm-text-span.entry.js +1 -1
- package/dist/esm/sqm-user-identifier-view-62ece966.js +26 -0
- package/dist/esm/sqm-user-identifier.entry.js +25 -0
- package/dist/esm/{useChildElements-79be4145.js → useChildElements-1a725093.js} +1 -1
- package/dist/esm/usePasswordlessRegistration-d8838314.js +45 -0
- package/dist/esm/{useReferralTable-7f8db41f.js → useReferralTable-442a5fd4.js} +189 -189
- package/dist/esm/{useRegistrationFormState-6ce2e16f.js → useRegistrationFormState-3bbe87e6.js} +1 -1
- package/dist/esm-es5/GenericTableView-266126f9.js +1 -0
- package/dist/esm-es5/PoweredByImg-1114005e.js +1 -0
- package/dist/esm-es5/ShadowViewAddon-5b93861f.js +1 -0
- package/dist/esm-es5/{global-fbe84c58.js → global-148543ea.js} +1 -1
- package/dist/esm-es5/index.module-9ea0fbf4.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/{re-render-695ddbbd.js → re-render-f93d483e.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-graphql-client-provider.entry.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-link-button.entry.js +1 -0
- package/dist/esm-es5/{sqm-navigation-sidebar-item-view-6f909ba7.js → sqm-navigation-sidebar-item-view-fbf5f089.js} +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
- package/dist/esm-es5/sqm-password-field.entry.js +1 -1
- package/dist/esm-es5/sqm-passwordless-registration-view-7f0dfa72.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-ea206473.js} +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-381320c4.js → sqm-portal-email-verification-view-ab44c032.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-footer-view-e4ca33f1.js +1 -0
- package/dist/esm-es5/sqm-portal-footer.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-forgot-password-view-37bafb1c.js → sqm-portal-forgot-password-view-76bfc8b6.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-3e5977d8.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-view-2b9da683.js → sqm-portal-reset-password-view-3f14e5e4.js} +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-verify-email-view-e3e39501.js → sqm-portal-verify-email-view-a3f3aad6.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-view-1ecc43f9.js +1 -0
- package/dist/esm-es5/sqm-referred-registration.entry.js +1 -0
- 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-view-b03a3c6d.js → sqm-text-span-view-8b2c44ec.js} +1 -1
- package/dist/esm-es5/sqm-text-span.entry.js +1 -1
- package/dist/esm-es5/sqm-user-identifier-view-62ece966.js +1 -0
- package/dist/esm-es5/sqm-user-identifier.entry.js +1 -0
- package/dist/esm-es5/{useChildElements-79be4145.js → useChildElements-1a725093.js} +1 -1
- package/dist/esm-es5/usePasswordlessRegistration-d8838314.js +1 -0
- package/dist/esm-es5/{useReferralTable-7f8db41f.js → useReferralTable-442a5fd4.js} +1 -1
- package/dist/esm-es5/{useRegistrationFormState-6ce2e16f.js → useRegistrationFormState-3bbe87e6.js} +1 -1
- package/dist/mint-components/global/styles.ts +729 -729
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/p-057985ff.system.entry.js +1 -0
- package/dist/mint-components/{p-d8c7e0db.js → p-0632cda7.js} +1 -1
- package/dist/mint-components/{p-9bacac1a.system.entry.js → p-06467b7d.system.entry.js} +1 -1
- package/dist/mint-components/p-068c7a9f.entry.js +1 -0
- package/dist/mint-components/{p-72b166c9.system.entry.js → p-0a97e89c.system.entry.js} +1 -1
- package/dist/mint-components/p-0b224f25.system.js +1 -0
- package/dist/mint-components/p-0e4812b1.system.entry.js +1 -0
- package/dist/mint-components/{p-143e7a08.system.js → p-0e835956.system.js} +1 -1
- package/dist/mint-components/{p-78651bde.entry.js → p-0f4f6573.entry.js} +1 -1
- package/dist/mint-components/p-14f04868.system.js +1 -0
- package/dist/mint-components/{p-04950f4c.system.js → p-153f715b.system.js} +1 -1
- package/dist/mint-components/p-163182b0.entry.js +1 -0
- package/dist/mint-components/{p-07a2fa17.system.js → p-164f8f37.system.js} +1 -1
- package/dist/mint-components/p-1684dfb6.entry.js +1 -0
- package/dist/mint-components/{p-48cc1220.system.entry.js → p-17354fa5.system.entry.js} +1 -1
- package/dist/mint-components/p-18bca1e7.entry.js +1 -0
- package/dist/mint-components/p-1abc1c4d.js +1 -0
- package/dist/mint-components/p-1ef15cda.entry.js +1 -0
- package/dist/mint-components/{p-fad0a26c.system.entry.js → p-22c2302f.system.entry.js} +1 -1
- package/dist/mint-components/p-244236bf.system.js +1 -0
- package/dist/mint-components/{p-5ee4e422.system.entry.js → p-25351ee8.system.entry.js} +1 -1
- package/dist/mint-components/p-2694abaa.system.entry.js +1 -0
- package/dist/mint-components/p-2c82c768.js +268 -0
- package/dist/mint-components/{p-51dd43c0.system.js → p-2d85976d.system.js} +1 -1
- package/dist/mint-components/{p-6f9f5609.js → p-2e0fddba.js} +1 -1
- package/dist/mint-components/{p-10122db1.system.js → p-3173aafa.system.js} +1 -1
- package/dist/mint-components/{p-d91a5c01.js → p-32d633a8.js} +1 -1
- package/dist/mint-components/p-3528dd83.entry.js +1 -0
- package/dist/mint-components/p-35e88330.system.js +1 -0
- package/dist/mint-components/p-36c08962.js +1 -0
- package/dist/mint-components/{p-c06cd3cc.system.js → p-37b9d388.system.js} +1 -1
- package/dist/mint-components/p-38d8f0c1.system.entry.js +1 -0
- package/dist/mint-components/{p-e7548e13.system.entry.js → p-397a2a73.system.entry.js} +1 -1
- package/dist/mint-components/{p-d1a74f7e.js → p-3be2d41d.js} +1 -1
- package/dist/mint-components/{p-aaa3de28.entry.js → p-3e8ba80d.entry.js} +1 -1
- package/dist/mint-components/{p-e02ac363.system.js → p-3f645a3f.system.js} +1 -1
- package/dist/mint-components/{p-ebdd7428.js → p-47bd9fa7.js} +1 -1
- package/dist/mint-components/{p-2b2415cc.system.js → p-50cb0f73.system.js} +1 -1
- package/dist/mint-components/p-5552b7cd.system.entry.js +1 -0
- package/dist/mint-components/p-565bc891.js +1 -0
- package/dist/mint-components/{p-1696a6e2.system.entry.js → p-5785edeb.system.entry.js} +1 -1
- package/dist/mint-components/{p-b0e85f24.entry.js → p-57d5a66b.entry.js} +1 -1
- package/dist/mint-components/p-620e44c4.system.entry.js +1 -0
- package/dist/mint-components/{p-8a6a0b6f.js → p-68a132e8.js} +1 -1
- package/dist/mint-components/p-6c6da9ec.system.entry.js +1 -0
- package/dist/mint-components/{p-74f936b0.js → p-713cf0ca.js} +1 -1
- package/dist/mint-components/p-73dbaf08.js +1 -0
- package/dist/mint-components/{p-6e28498f.system.entry.js → p-7586db07.system.entry.js} +1 -1
- package/dist/mint-components/{p-1ea19d11.system.entry.js → p-77ff646b.system.entry.js} +1 -1
- package/dist/mint-components/{p-eab70762.system.entry.js → p-78823dec.system.entry.js} +1 -1
- package/dist/mint-components/{p-8ffaf231.system.entry.js → p-78f20300.system.entry.js} +1 -1
- package/dist/mint-components/{p-c9a2502c.system.js → p-7a133929.system.js} +1 -1
- package/dist/mint-components/p-84ee69ce.system.js +1 -0
- package/dist/mint-components/{p-22176b92.js → p-85077e3d.js} +1 -1
- package/dist/mint-components/{p-d1d42507.system.entry.js → p-86325086.system.entry.js} +1 -1
- package/dist/mint-components/{p-6eb41f14.system.entry.js → p-86c097e2.system.entry.js} +1 -1
- package/dist/mint-components/p-875cefdc.entry.js +171 -0
- package/dist/mint-components/p-87b01e19.entry.js +9 -0
- package/dist/mint-components/p-8b64965e.system.entry.js +1 -0
- package/dist/mint-components/p-8d39f947.system.entry.js +1 -0
- package/dist/mint-components/{p-6db612cd.entry.js → p-8d730176.entry.js} +1 -1
- package/dist/mint-components/{p-707e7a2e.system.entry.js → p-8d7be576.system.entry.js} +1 -1
- package/dist/mint-components/p-8f830854.js +1 -0
- package/dist/mint-components/p-9165844e.system.js +1 -0
- package/dist/mint-components/p-942f403b.system.entry.js +1 -0
- package/dist/mint-components/{p-ac000fc6.system.js → p-95a330ba.system.js} +1 -1
- package/dist/mint-components/{p-4294a89c.entry.js → p-9862808f.entry.js} +1 -1
- package/dist/mint-components/{p-7f156573.system.entry.js → p-a1340736.system.entry.js} +1 -1
- package/dist/mint-components/p-a45ea86c.entry.js +1 -0
- package/dist/mint-components/{p-a9af92ea.entry.js → p-aae20619.entry.js} +1 -1
- package/dist/mint-components/{p-45ee4fcd.entry.js → p-ac531d2b.entry.js} +1 -1
- package/dist/mint-components/p-acb7d08f.system.js +1 -0
- package/dist/mint-components/p-aecc3da0.system.js +1 -0
- package/dist/mint-components/{p-2433b74c.js → p-b02deb14.js} +1 -1
- package/dist/mint-components/{p-0179da5a.entry.js → p-b195710a.entry.js} +2 -2
- package/dist/mint-components/p-b56a0052.system.js +1 -0
- package/dist/mint-components/{p-1c2c05ea.system.entry.js → p-b62992cc.system.entry.js} +1 -1
- package/dist/mint-components/p-ba613975.js +1 -0
- package/dist/mint-components/p-bb41c968.entry.js +1 -0
- package/dist/mint-components/p-bc7dc649.js +1 -0
- package/dist/mint-components/p-beba8b55.system.js +1 -0
- package/dist/mint-components/{p-9775b40a.entry.js → p-c1251adf.entry.js} +2 -2
- package/dist/mint-components/{p-f6e8985b.system.entry.js → p-c127afb8.system.entry.js} +1 -1
- package/dist/mint-components/{p-6b627b02.system.entry.js → p-c4fc0601.system.entry.js} +1 -1
- package/dist/mint-components/{p-a7da9285.entry.js → p-c5fbff4f.entry.js} +1 -1
- package/dist/mint-components/p-c6736fbb.js +1 -0
- package/dist/mint-components/{p-4c3f24a7.entry.js → p-ca09a56f.entry.js} +1 -1
- package/dist/mint-components/{p-e931152c.entry.js → p-ce2a5868.entry.js} +1 -1
- package/dist/mint-components/{p-1866c07f.entry.js → p-ce95e064.entry.js} +1 -1
- package/dist/mint-components/{p-1d1fac2c.js → p-cf11ee87.js} +1 -1
- package/dist/mint-components/p-cf12a197.entry.js +1 -0
- package/dist/mint-components/{p-33e9fcfc.js → p-d11bd69c.js} +2 -2
- package/dist/mint-components/{p-8b422807.entry.js → p-d55ea724.entry.js} +1 -1
- package/dist/mint-components/{p-03bf73ac.entry.js → p-d6fd27a8.entry.js} +1 -1
- package/dist/mint-components/p-d94cf229.js +1 -0
- package/dist/mint-components/p-dc683342.entry.js +1 -0
- package/dist/mint-components/{p-df63ee45.system.entry.js → p-de247131.system.entry.js} +1 -1
- package/dist/mint-components/p-e0e707c9.entry.js +1 -0
- package/dist/mint-components/{p-c3d4bd17.entry.js → p-e124d11c.entry.js} +1 -1
- package/dist/mint-components/{p-52ce1373.system.entry.js → p-e7542fb4.system.entry.js} +1 -1
- package/dist/mint-components/p-e761960c.system.js +1 -0
- package/dist/mint-components/{p-a421f44e.system.js → p-ea38739a.system.js} +1 -1
- package/dist/mint-components/p-f4dbaf32.js +1 -0
- package/dist/mint-components/{p-14c9767e.system.entry.js → p-fc1a5404.system.entry.js} +1 -1
- package/dist/mint-components/{p-cd745ffb.system.js → p-fc66b809.system.js} +1 -1
- package/dist/mint-components/p-fcbb24d3.entry.js +1 -0
- package/dist/mint-components/{p-f4a318fa.entry.js → p-ff60ab5e.entry.js} +2 -2
- 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-external-link-button/ExternalButton.stories.d.ts +9 -0
- package/dist/types/components/sqm-external-link-button/sqm-link-button-view.d.ts +5 -0
- package/dist/types/components/sqm-external-link-button/sqm-link-button.d.ts +17 -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-referred-registration/ReferredRegistration.stories.d.ts +8 -0
- package/dist/types/components/sqm-referred-registration/sqm-referred-registration-view.d.ts +21 -0
- package/dist/types/components/sqm-referred-registration/sqm-referred-registration.d.ts +48 -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 +8 -0
- package/dist/types/components/sqm-user-identifier/sqm-user-identifier-view.d.ts +6 -0
- package/dist/types/components/sqm-user-identifier/sqm-user-identifier.d.ts +23 -0
- package/dist/types/components/views/copy-text-view.d.ts +10 -0
- package/dist/types/components.d.ts +434 -77
- package/dist/types/global/android.d.ts +7 -7
- package/dist/types/saasquatch.d.ts +132 -132
- package/dist/types/stories/PortalTemplates.stories.d.ts +12 -0
- package/dist/types/stories/features.d.ts +4 -4
- package/dist/types/stories/templates.d.ts +4 -4
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +104 -102
- package/readme.md +13 -13
- package/dist/collection/components/sqm-share-link/sqm-share-link-view.js +0 -18
- package/dist/esm-es5/GenericTableView-ce26115f.js +0 -1
- package/dist/esm-es5/ShadowViewAddon-9791fbe2.js +0 -1
- 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-portal-footer-view-41fe6018.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-1c80a930.entry.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-5027afd7.entry.js +0 -159
- package/dist/mint-components/p-600c88be.system.js +0 -1
- package/dist/mint-components/p-6dd27a5e.js +0 -1
- package/dist/mint-components/p-7578e83f.system.entry.js +0 -1
- package/dist/mint-components/p-79be7593.system.js +0 -1
- package/dist/mint-components/p-7e15b154.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-8f2e7864.js +0 -268
- package/dist/mint-components/p-8fc166eb.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-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-b2a0461f.system.entry.js +0 -1
- package/dist/mint-components/p-b76df920.entry.js +0 -1
- package/dist/mint-components/p-bef0a1f4.system.js +0 -1
- package/dist/mint-components/p-c7090fd1.system.js +0 -1
- package/dist/mint-components/p-cd898a3a.js +0 -1
- package/dist/types/components/sqm-share-link/sqm-share-link-view.d.ts +0 -8
- /package/dist/esm-es5/{sqm-hero-view-f1809063.js → sqm-hero-view-fa98c30f.js} +0 -0
- /package/dist/esm-es5/{sqm-navigation-sidebar-view-74ad47d4.js → sqm-navigation-sidebar-view-06a9d083.js} +0 -0
- /package/dist/mint-components/{p-1555c1e9.js → p-4c86095b.js} +0 -0
- /package/dist/mint-components/{p-e9489bfb.system.js → p-7ceff8de.system.js} +0 -0
- /package/dist/mint-components/{p-8aa61264.system.js → p-b3169627.system.js} +0 -0
- /package/dist/mint-components/{p-45bb95ba.js → p-d3ceb986.js} +0 -0
|
@@ -4,22 +4,22 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
6
|
const stencilHooks_module = require('./stencil-hooks.module-e4bf7f2d.js');
|
|
7
|
-
const global = require('./global-
|
|
7
|
+
const global = require('./global-915ed2a6.js');
|
|
8
8
|
const useCallback = require('./use-callback-86e9ac75.js');
|
|
9
|
-
const index_module = require('./index.module-
|
|
9
|
+
const index_module = require('./index.module-bd6e817a.js');
|
|
10
10
|
const jsonpointer = require('./jsonpointer-11327262.js');
|
|
11
11
|
const cjs = require('./cjs-1066ec21.js');
|
|
12
12
|
require('./mixins-fe9d4112.js');
|
|
13
13
|
const JSS = require('./JSS-8503a151.js');
|
|
14
|
-
const reRender = require('./re-render-
|
|
15
|
-
const useChildElements = require('./useChildElements-
|
|
14
|
+
const reRender = require('./re-render-1d12dfdd.js');
|
|
15
|
+
const useChildElements = require('./useChildElements-0a6ccd0f.js');
|
|
16
16
|
require('./luxon-53e983a6.js');
|
|
17
17
|
const utils = require('./utils-6847bc06.js');
|
|
18
|
-
require('./sqm-text-span-view-
|
|
18
|
+
require('./sqm-text-span-view-dfb76601.js');
|
|
19
19
|
const AsYouType = require('./AsYouType-6788393a.js');
|
|
20
|
-
const useRegistrationFormState = require('./useRegistrationFormState-
|
|
21
|
-
const ShadowViewAddon = require('./ShadowViewAddon-
|
|
22
|
-
require('./sqm-portal-container-view-
|
|
20
|
+
const useRegistrationFormState = require('./useRegistrationFormState-ed30c0e6.js');
|
|
21
|
+
const ShadowViewAddon = require('./ShadowViewAddon-700db2d1.js');
|
|
22
|
+
require('./sqm-portal-container-view-e81faa02.js');
|
|
23
23
|
|
|
24
24
|
const BigStat = class {
|
|
25
25
|
constructor(hostRef) {
|
|
@@ -89,27 +89,27 @@ const BrandComponent = class {
|
|
|
89
89
|
return () => document.head.removeChild(sheet);
|
|
90
90
|
}, [sanitizedFont]);
|
|
91
91
|
const font = sanitizedFont !== null && sanitizedFont !== void 0 ? sanitizedFont : "";
|
|
92
|
-
return (index.h(index.Host, null, index.h("style", null, `
|
|
93
|
-
|
|
94
|
-
:host{
|
|
95
|
-
display: contents;
|
|
96
|
-
}
|
|
97
|
-
/*
|
|
98
|
-
Selects any element placed inside a slot
|
|
99
|
-
- resets css variable inheritence for fonts
|
|
100
|
-
|
|
101
|
-
*/
|
|
102
|
-
::slotted(*) {
|
|
103
|
-
--sl-font-sans: "${font}", arial;
|
|
104
|
-
--sl-input-font-family: "${font}", arial;
|
|
105
|
-
--sl-tooltip-font-family: "${font}", arial;
|
|
106
|
-
font-family: "${font}", arial;
|
|
107
|
-
|
|
108
|
-
${css}
|
|
109
|
-
|
|
110
|
-
--sl-focus-ring-color-primary: var(--sl-color-primary-100);
|
|
111
|
-
--sl-input-border-color-focus: var(--sl-color-primary-500);
|
|
112
|
-
--sl-color-primary-hue: var(--sl-color-primary-500);
|
|
92
|
+
return (index.h(index.Host, null, index.h("style", null, `
|
|
93
|
+
|
|
94
|
+
:host{
|
|
95
|
+
display: contents;
|
|
96
|
+
}
|
|
97
|
+
/*
|
|
98
|
+
Selects any element placed inside a slot
|
|
99
|
+
- resets css variable inheritence for fonts
|
|
100
|
+
|
|
101
|
+
*/
|
|
102
|
+
::slotted(*) {
|
|
103
|
+
--sl-font-sans: "${font}", arial;
|
|
104
|
+
--sl-input-font-family: "${font}", arial;
|
|
105
|
+
--sl-tooltip-font-family: "${font}", arial;
|
|
106
|
+
font-family: "${font}", arial;
|
|
107
|
+
|
|
108
|
+
${css}
|
|
109
|
+
|
|
110
|
+
--sl-focus-ring-color-primary: var(--sl-color-primary-100);
|
|
111
|
+
--sl-input-border-color-focus: var(--sl-color-primary-500);
|
|
112
|
+
--sl-color-primary-hue: var(--sl-color-primary-500);
|
|
113
113
|
}`), index.h("slot", null)));
|
|
114
114
|
}
|
|
115
115
|
};
|
|
@@ -269,6 +269,110 @@ function useCheckboxFieldDemo(props) {
|
|
|
269
269
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
270
270
|
}
|
|
271
271
|
|
|
272
|
+
const MessageLinkQuery = index_module.dist.gql `
|
|
273
|
+
query ($programId: ID) {
|
|
274
|
+
user: viewer {
|
|
275
|
+
... on User {
|
|
276
|
+
referralCode(programId: $programId)
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
`;
|
|
281
|
+
const WIDGET_ENGAGEMENT_EVENT = index_module.dist.gql `
|
|
282
|
+
mutation loadEvent($eventMeta: UserAnalyticsEvent!) {
|
|
283
|
+
createUserAnalyticsEvent(eventMeta: $eventMeta)
|
|
284
|
+
}
|
|
285
|
+
`;
|
|
286
|
+
function useCouponCode(props) {
|
|
287
|
+
var _a, _b;
|
|
288
|
+
const { programId = index_module.O() } = props;
|
|
289
|
+
const user = index_module.W();
|
|
290
|
+
const engagementMedium = index_module._();
|
|
291
|
+
const { data } = index_module.fn(MessageLinkQuery, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
292
|
+
const [sendLoadEvent] = index_module.Fe(WIDGET_ENGAGEMENT_EVENT);
|
|
293
|
+
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 :
|
|
294
|
+
// Shown during loading
|
|
295
|
+
"...";
|
|
296
|
+
const [open, setOpen] = stencilHooks_module.useState(false);
|
|
297
|
+
function onClick() {
|
|
298
|
+
// Should well supported: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
|
|
299
|
+
// Only if called from a user-initiated event
|
|
300
|
+
navigator.clipboard.writeText(copyString);
|
|
301
|
+
setOpen(true);
|
|
302
|
+
setTimeout(() => setOpen(false), props.tooltiplifespan);
|
|
303
|
+
sendLoadEvent({
|
|
304
|
+
eventMeta: {
|
|
305
|
+
programId,
|
|
306
|
+
id: user === null || user === void 0 ? void 0 : user.id,
|
|
307
|
+
accountId: user === null || user === void 0 ? void 0 : user.accountId,
|
|
308
|
+
type: "USER_REFERRAL_PROGRAM_ENGAGEMENT_EVENT",
|
|
309
|
+
meta: {
|
|
310
|
+
engagementMedium,
|
|
311
|
+
couponMedium: "DIRECT",
|
|
312
|
+
},
|
|
313
|
+
},
|
|
314
|
+
});
|
|
315
|
+
}
|
|
316
|
+
return { ...props, onClick, open, copyString };
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
const CouponCode = class {
|
|
320
|
+
constructor(hostRef) {
|
|
321
|
+
index.registerInstance(this, hostRef);
|
|
322
|
+
/**
|
|
323
|
+
* Shown inside a tooltip after someone has successfully copied the link to their clipboard.
|
|
324
|
+
*
|
|
325
|
+
* @uiName Tooltip Text
|
|
326
|
+
*/
|
|
327
|
+
this.tooltiptext = "Copied to Clipboard";
|
|
328
|
+
/**
|
|
329
|
+
* The number of milliseconds that the tooltip appears for
|
|
330
|
+
*
|
|
331
|
+
* @uiName Tooltip lifespan
|
|
332
|
+
*/
|
|
333
|
+
this.tooltiplifespan = 1000;
|
|
334
|
+
/**
|
|
335
|
+
* Change the text alignment
|
|
336
|
+
*
|
|
337
|
+
* @uiName Align text
|
|
338
|
+
*/
|
|
339
|
+
this.textAlign = "left";
|
|
340
|
+
/**
|
|
341
|
+
* Set copy button as icon
|
|
342
|
+
*
|
|
343
|
+
* @uiName Copy icon
|
|
344
|
+
*/
|
|
345
|
+
this.isCopyIcon = true;
|
|
346
|
+
stencilHooks_module.h$1(this);
|
|
347
|
+
}
|
|
348
|
+
disconnectedCallback() { }
|
|
349
|
+
render() {
|
|
350
|
+
const thisProps = utils.getProps(this);
|
|
351
|
+
const props = index_module.isDemo()
|
|
352
|
+
? useDemoCouponCode(thisProps)
|
|
353
|
+
: useCouponCode(thisProps);
|
|
354
|
+
return index.h(ShadowViewAddon.CopyTextView, Object.assign({}, props));
|
|
355
|
+
}
|
|
356
|
+
};
|
|
357
|
+
function useDemoCouponCode(props) {
|
|
358
|
+
const [open, setOpen] = stencilHooks_module.useState(false);
|
|
359
|
+
const copyString = "THANKSJANE125uv125";
|
|
360
|
+
return cjs.cjs({
|
|
361
|
+
copyString,
|
|
362
|
+
tooltiptext: props.tooltiptext,
|
|
363
|
+
isCopyIcon: props.isCopyIcon,
|
|
364
|
+
textAlign: props.textAlign,
|
|
365
|
+
open,
|
|
366
|
+
onClick: () => {
|
|
367
|
+
// Should well supported: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
|
|
368
|
+
// Only if called from a user-initiated event
|
|
369
|
+
navigator.clipboard.writeText(copyString);
|
|
370
|
+
setOpen(true);
|
|
371
|
+
setTimeout(() => setOpen(false), props.tooltiplifespan);
|
|
372
|
+
},
|
|
373
|
+
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
374
|
+
}
|
|
375
|
+
|
|
272
376
|
function DividedLayoutView(props, children) {
|
|
273
377
|
const getBorder = () => {
|
|
274
378
|
if (props.direction === "row") {
|
|
@@ -290,24 +394,24 @@ function DividedLayoutView(props, children) {
|
|
|
290
394
|
},
|
|
291
395
|
},
|
|
292
396
|
};
|
|
293
|
-
const hostStyle = `
|
|
294
|
-
display: flex;
|
|
295
|
-
flex: 1;
|
|
296
|
-
box-sizing: border-box;
|
|
297
|
-
flex-direction: ${props.direction};
|
|
298
|
-
background-color: var(--sqm-content-background);
|
|
299
|
-
overflow-x: clip;
|
|
397
|
+
const hostStyle = `
|
|
398
|
+
display: flex;
|
|
399
|
+
flex: 1;
|
|
400
|
+
box-sizing: border-box;
|
|
401
|
+
flex-direction: ${props.direction};
|
|
402
|
+
background-color: var(--sqm-content-background);
|
|
403
|
+
overflow-x: clip;
|
|
300
404
|
${props.direction === "column"
|
|
301
405
|
? "width: 100%; max-width: var(--sqm-portal-main-width);"
|
|
302
|
-
: ""}
|
|
406
|
+
: ""}
|
|
303
407
|
`;
|
|
304
|
-
const vanillaStyle = `
|
|
305
|
-
:host{
|
|
306
|
-
${hostStyle}
|
|
307
|
-
}
|
|
308
|
-
sqm-divided-layout {
|
|
309
|
-
${hostStyle}
|
|
310
|
-
}
|
|
408
|
+
const vanillaStyle = `
|
|
409
|
+
:host{
|
|
410
|
+
${hostStyle}
|
|
411
|
+
}
|
|
412
|
+
sqm-divided-layout {
|
|
413
|
+
${hostStyle}
|
|
414
|
+
}
|
|
311
415
|
`;
|
|
312
416
|
const sheet = JSS.createStyleSheet(style);
|
|
313
417
|
const styleString = sheet.toString();
|
|
@@ -391,39 +495,39 @@ function useDropdownFieldDemo(props) {
|
|
|
391
495
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
392
496
|
}
|
|
393
497
|
|
|
394
|
-
const GET_USER = index_module.dist.gql `
|
|
395
|
-
query {
|
|
396
|
-
viewer {
|
|
397
|
-
... on User {
|
|
398
|
-
id
|
|
399
|
-
accountId
|
|
400
|
-
firstName
|
|
401
|
-
lastName
|
|
402
|
-
email
|
|
403
|
-
countryCode
|
|
404
|
-
}
|
|
405
|
-
}
|
|
406
|
-
}
|
|
498
|
+
const GET_USER = index_module.dist.gql `
|
|
499
|
+
query {
|
|
500
|
+
viewer {
|
|
501
|
+
... on User {
|
|
502
|
+
id
|
|
503
|
+
accountId
|
|
504
|
+
firstName
|
|
505
|
+
lastName
|
|
506
|
+
email
|
|
507
|
+
countryCode
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
}
|
|
407
511
|
`;
|
|
408
|
-
const UPSERT_USER = index_module.dist.gql `
|
|
409
|
-
mutation (
|
|
410
|
-
$id: String!
|
|
411
|
-
$accountId: String!
|
|
412
|
-
$firstName: String!
|
|
413
|
-
$lastName: String!
|
|
414
|
-
) {
|
|
415
|
-
upsertUser(
|
|
416
|
-
userInput: {
|
|
417
|
-
id: $id
|
|
418
|
-
accountId: $accountId
|
|
419
|
-
firstName: $firstName
|
|
420
|
-
lastName: $lastName
|
|
421
|
-
}
|
|
422
|
-
) {
|
|
423
|
-
firstName
|
|
424
|
-
lastName
|
|
425
|
-
}
|
|
426
|
-
}
|
|
512
|
+
const UPSERT_USER = index_module.dist.gql `
|
|
513
|
+
mutation (
|
|
514
|
+
$id: String!
|
|
515
|
+
$accountId: String!
|
|
516
|
+
$firstName: String!
|
|
517
|
+
$lastName: String!
|
|
518
|
+
) {
|
|
519
|
+
upsertUser(
|
|
520
|
+
userInput: {
|
|
521
|
+
id: $id
|
|
522
|
+
accountId: $accountId
|
|
523
|
+
firstName: $firstName
|
|
524
|
+
lastName: $lastName
|
|
525
|
+
}
|
|
526
|
+
) {
|
|
527
|
+
firstName
|
|
528
|
+
lastName
|
|
529
|
+
}
|
|
530
|
+
}
|
|
427
531
|
`;
|
|
428
532
|
// view doesn't tolerate undefined, even when we're loading
|
|
429
533
|
const defaultFormState = {
|
|
@@ -434,13 +538,13 @@ const defaultFormState = {
|
|
|
434
538
|
error: "",
|
|
435
539
|
};
|
|
436
540
|
function useEditProfile(props) {
|
|
437
|
-
const userIdent = index_module.
|
|
541
|
+
const userIdent = index_module.W();
|
|
438
542
|
const [showEdit, setShowEdit] = stencilHooks_module.useState(false);
|
|
439
543
|
const [error, setError] = stencilHooks_module.useState("");
|
|
440
544
|
const [userData, setUserData] = stencilHooks_module.useState(undefined);
|
|
441
545
|
const [formState, setFormState] = stencilHooks_module.useState(defaultFormState);
|
|
442
|
-
const userDataResponse = index_module.
|
|
443
|
-
const [upsertUser, upsertUserResponse] = index_module.
|
|
546
|
+
const userDataResponse = index_module.fn(GET_USER, {}, !(userIdent === null || userIdent === void 0 ? void 0 : userIdent.jwt));
|
|
547
|
+
const [upsertUser, upsertUserResponse] = index_module.Fe(UPSERT_USER);
|
|
444
548
|
stencilHooks_module.useEffect(() => {
|
|
445
549
|
if ((upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.loading) || !showEdit)
|
|
446
550
|
return;
|
|
@@ -635,7 +739,9 @@ function HeroImageView(props, children) {
|
|
|
635
739
|
display: "block",
|
|
636
740
|
width: "100%",
|
|
637
741
|
height: "100%",
|
|
742
|
+
maxWidth: "max-content",
|
|
638
743
|
objectFit: "cover",
|
|
744
|
+
margin: "auto",
|
|
639
745
|
},
|
|
640
746
|
Background: {
|
|
641
747
|
backgroundImage: `url(${props.imageUrl})`,
|
|
@@ -669,9 +775,6 @@ function HeroImageView(props, children) {
|
|
|
669
775
|
width: props.imagePercentage ? props.imagePercentage + "%" : "50%",
|
|
670
776
|
padding: "var(--sl-spacing-" + props.paddingImage + ")",
|
|
671
777
|
boxSizing: "border-box",
|
|
672
|
-
display: "flex",
|
|
673
|
-
justifyContent: "center",
|
|
674
|
-
alignItems: "center",
|
|
675
778
|
"@media (max-width: 599px)": {
|
|
676
779
|
width: "100%",
|
|
677
780
|
},
|
|
@@ -719,11 +822,11 @@ function HeroImageView(props, children) {
|
|
|
719
822
|
};
|
|
720
823
|
const sheet = JSS.createStyleSheet(style);
|
|
721
824
|
const styleString = sheet.toString();
|
|
722
|
-
const vanillaStyle = `
|
|
723
|
-
:host{
|
|
724
|
-
display: block;
|
|
825
|
+
const vanillaStyle = `
|
|
826
|
+
:host{
|
|
827
|
+
display: block;
|
|
725
828
|
}`;
|
|
726
|
-
return (index.h("div", { class: sheet.classes.Container },
|
|
829
|
+
return (index.h("div", { class: sheet.classes.Container, part: "sqm-hero-image-container" },
|
|
727
830
|
index.h("style", { type: "text/css" },
|
|
728
831
|
vanillaStyle,
|
|
729
832
|
styleString),
|
|
@@ -731,7 +834,7 @@ function HeroImageView(props, children) {
|
|
|
731
834
|
props.layout === "columns" && ColumnView()));
|
|
732
835
|
function OverlayView() {
|
|
733
836
|
return (index.h("div", { class: sheet.classes.Background },
|
|
734
|
-
index.h("div", { class: sheet.classes.Overlay },
|
|
837
|
+
index.h("div", { class: sheet.classes.Overlay, part: "sqm-hero-image-overlay-container" },
|
|
735
838
|
props.header && (index.h("div", { class: sheet.classes.Header }, props.header)),
|
|
736
839
|
props.description && (index.h("div", { class: sheet.classes.Description }, props.description)),
|
|
737
840
|
props.buttonText && (index.h("sl-button", { class: sheet.classes.Button, type: "primary", onClick: () => props.buttonNewTab
|
|
@@ -743,11 +846,11 @@ function HeroImageView(props, children) {
|
|
|
743
846
|
return (index.h("div", null,
|
|
744
847
|
index.h("div", { class: sheet.classes.Column },
|
|
745
848
|
index.h("div", { class: "image-area" },
|
|
746
|
-
index.h("img", { class: sheet.classes.Image, src: props.imageUrl })),
|
|
747
|
-
index.h("div", { class: "text-area" },
|
|
748
|
-
props.header && (index.h("div", { class: sheet.classes.Header }, props.header)),
|
|
749
|
-
props.description && (index.h("div", { class: sheet.classes.Description }, props.description)),
|
|
750
|
-
props.buttonText && (index.h("sl-button", { class: sheet.classes.Button, type: "primary", onClick: () => props.buttonNewTab
|
|
849
|
+
index.h("img", { class: sheet.classes.Image, src: props.imageUrl, part: "sqm-hero-image" })),
|
|
850
|
+
index.h("div", { class: "text-area", part: "sqm-hero-image-text-area" },
|
|
851
|
+
props.header && (index.h("div", { class: sheet.classes.Header, part: "sqm-hero-image-header" }, props.header)),
|
|
852
|
+
props.description && (index.h("div", { class: sheet.classes.Description, part: "sqm-hero-image-description" }, props.description)),
|
|
853
|
+
props.buttonText && (index.h("sl-button", { exportparts: "base: sqm-hero-image-btn", class: sheet.classes.Button, type: "primary", onClick: () => props.buttonNewTab
|
|
751
854
|
? window.open(props.buttonLink)
|
|
752
855
|
: window.open(props.buttonLink, "_parent") }, props.buttonText))))));
|
|
753
856
|
}
|
|
@@ -883,54 +986,54 @@ function useInputFieldDemo(props) {
|
|
|
883
986
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
884
987
|
}
|
|
885
988
|
|
|
886
|
-
const GET_LEADERBOARD = index_module.dist.gql `
|
|
887
|
-
query (
|
|
888
|
-
$type: String!
|
|
889
|
-
$filter: UserLeaderboardFilterInput
|
|
890
|
-
$locale: RSLocale
|
|
891
|
-
$limit: Int!
|
|
892
|
-
) {
|
|
893
|
-
userLeaderboard(type: $type, filter: $filter) {
|
|
894
|
-
dateModified
|
|
895
|
-
rows(limit: $limit) {
|
|
896
|
-
textValue(locale: $locale)
|
|
897
|
-
firstName
|
|
898
|
-
lastInitial
|
|
899
|
-
rank {
|
|
900
|
-
rank
|
|
901
|
-
denseRank
|
|
902
|
-
rowNumber
|
|
903
|
-
}
|
|
904
|
-
}
|
|
905
|
-
}
|
|
906
|
-
}
|
|
989
|
+
const GET_LEADERBOARD = index_module.dist.gql `
|
|
990
|
+
query (
|
|
991
|
+
$type: String!
|
|
992
|
+
$filter: UserLeaderboardFilterInput
|
|
993
|
+
$locale: RSLocale
|
|
994
|
+
$limit: Int!
|
|
995
|
+
) {
|
|
996
|
+
userLeaderboard(type: $type, filter: $filter) {
|
|
997
|
+
dateModified
|
|
998
|
+
rows(limit: $limit) {
|
|
999
|
+
textValue(locale: $locale)
|
|
1000
|
+
firstName
|
|
1001
|
+
lastInitial
|
|
1002
|
+
rank {
|
|
1003
|
+
rank
|
|
1004
|
+
denseRank
|
|
1005
|
+
rowNumber
|
|
1006
|
+
}
|
|
1007
|
+
}
|
|
1008
|
+
}
|
|
1009
|
+
}
|
|
907
1010
|
`;
|
|
908
|
-
const GET_RANK = index_module.dist.gql `
|
|
909
|
-
query (
|
|
910
|
-
$type: String!
|
|
911
|
-
$filter: UserLeaderboardFilterInput
|
|
912
|
-
$locale: RSLocale
|
|
913
|
-
) {
|
|
914
|
-
viewer {
|
|
915
|
-
... on User {
|
|
916
|
-
firstName
|
|
917
|
-
lastInitial
|
|
918
|
-
leaderboardRank(type: $type, filter: $filter) {
|
|
919
|
-
textValue(locale: $locale)
|
|
920
|
-
rank
|
|
921
|
-
denseRank
|
|
922
|
-
rowNumber
|
|
923
|
-
}
|
|
924
|
-
}
|
|
925
|
-
}
|
|
926
|
-
}
|
|
1011
|
+
const GET_RANK = index_module.dist.gql `
|
|
1012
|
+
query (
|
|
1013
|
+
$type: String!
|
|
1014
|
+
$filter: UserLeaderboardFilterInput
|
|
1015
|
+
$locale: RSLocale
|
|
1016
|
+
) {
|
|
1017
|
+
viewer {
|
|
1018
|
+
... on User {
|
|
1019
|
+
firstName
|
|
1020
|
+
lastInitial
|
|
1021
|
+
leaderboardRank(type: $type, filter: $filter) {
|
|
1022
|
+
textValue(locale: $locale)
|
|
1023
|
+
rank
|
|
1024
|
+
denseRank
|
|
1025
|
+
rowNumber
|
|
1026
|
+
}
|
|
1027
|
+
}
|
|
1028
|
+
}
|
|
1029
|
+
}
|
|
927
1030
|
`;
|
|
928
1031
|
function useLeaderboard(props) {
|
|
929
1032
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
930
1033
|
const programIdContext = index_module.O();
|
|
931
1034
|
// Default to context, overriden by props
|
|
932
1035
|
const programId = (_a = props.programId) !== null && _a !== void 0 ? _a : programIdContext;
|
|
933
|
-
const user = index_module.
|
|
1036
|
+
const user = index_module.W();
|
|
934
1037
|
const locale = index_module.x();
|
|
935
1038
|
const variables = programId
|
|
936
1039
|
? {
|
|
@@ -950,8 +1053,8 @@ function useLeaderboard(props) {
|
|
|
950
1053
|
if (props.maxRows > 0) {
|
|
951
1054
|
variables["limit"] = props.maxRows;
|
|
952
1055
|
}
|
|
953
|
-
const { data: leaderboardData, loading: loadingLeaderboard } = index_module.
|
|
954
|
-
const { data: rankData } = index_module.
|
|
1056
|
+
const { data: leaderboardData, loading: loadingLeaderboard } = index_module.fn(GET_LEADERBOARD, variables, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
1057
|
+
const { data: rankData } = index_module.fn(GET_RANK, variables, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
955
1058
|
const leaderboardRows = (_b = leaderboardData === null || leaderboardData === void 0 ? void 0 : leaderboardData.userLeaderboard) === null || _b === void 0 ? void 0 : _b.rows;
|
|
956
1059
|
const flattenedLeaderboard = getFlattenedLeaderboard(leaderboardRows);
|
|
957
1060
|
const sortedLeaderboard = flattenedLeaderboard === null || flattenedLeaderboard === void 0 ? void 0 : flattenedLeaderboard.sort(function (a, b) {
|
|
@@ -1178,12 +1281,12 @@ function NavigationMenuView(props) {
|
|
|
1178
1281
|
}
|
|
1179
1282
|
|
|
1180
1283
|
function handleMenu(e) {
|
|
1181
|
-
index_module.
|
|
1284
|
+
index_module.gn.push(e.detail.item.value);
|
|
1182
1285
|
}
|
|
1183
1286
|
function useNavigationMenu(props) {
|
|
1184
1287
|
const ref = stencilHooks_module.useRef();
|
|
1185
|
-
const [, rerender] = index_module.
|
|
1186
|
-
const user = index_module.
|
|
1288
|
+
const [, rerender] = index_module.dn();
|
|
1289
|
+
const user = index_module.W();
|
|
1187
1290
|
stencilHooks_module.useEffect(() => {
|
|
1188
1291
|
var _a;
|
|
1189
1292
|
(_a = ref.current) === null || _a === void 0 ? void 0 : _a.addEventListener("sl-select", (e) => handleMenu(e));
|
|
@@ -1241,7 +1344,7 @@ function usePortalChangePassword(props) {
|
|
|
1241
1344
|
const [open, setOpen] = stencilHooks_module.useState(false);
|
|
1242
1345
|
const [error, setError] = stencilHooks_module.useState("");
|
|
1243
1346
|
const [success, setSuccess] = stencilHooks_module.useState(false);
|
|
1244
|
-
const user = index_module.
|
|
1347
|
+
const user = index_module.W();
|
|
1245
1348
|
const submit = async (event) => {
|
|
1246
1349
|
var _a, _b;
|
|
1247
1350
|
setSuccess(false);
|
|
@@ -1375,7 +1478,7 @@ function usePortalChangePasswordDemo(props) {
|
|
|
1375
1478
|
}
|
|
1376
1479
|
|
|
1377
1480
|
function usePortalFrame(footerContent, headerContent) {
|
|
1378
|
-
const [, rerender] = index_module.
|
|
1481
|
+
const [, rerender] = index_module.dn();
|
|
1379
1482
|
return {
|
|
1380
1483
|
data: {
|
|
1381
1484
|
footer: footerContent,
|
|
@@ -1427,7 +1530,7 @@ function usePortalLogin(props) {
|
|
|
1427
1530
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
1428
1531
|
const [request, { loading, errors, data }] = index_module.Me();
|
|
1429
1532
|
const [error, setError] = stencilHooks_module.useState("");
|
|
1430
|
-
const urlParams = new URLSearchParams(index_module.
|
|
1533
|
+
const urlParams = new URLSearchParams(index_module.gn.location.search);
|
|
1431
1534
|
const nextPageOverride = urlParams.get("nextPage");
|
|
1432
1535
|
const submit = async (event) => {
|
|
1433
1536
|
var _a, _b;
|
|
@@ -1446,7 +1549,7 @@ function usePortalLogin(props) {
|
|
|
1446
1549
|
if ((_b = result.authenticateManagedIdentityWithEmailAndPassword) === null || _b === void 0 ? void 0 : _b.token) {
|
|
1447
1550
|
urlParams.delete("nextPage");
|
|
1448
1551
|
const url = utils.sanitizeUrlPath(nextPageOverride || props.nextPage);
|
|
1449
|
-
index_module.
|
|
1552
|
+
index_module.gn.push(url.href);
|
|
1450
1553
|
}
|
|
1451
1554
|
};
|
|
1452
1555
|
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) ||
|
|
@@ -1520,8 +1623,8 @@ const PortalLogin = class {
|
|
|
1520
1623
|
? useLoginDemo(this)
|
|
1521
1624
|
: usePortalLogin(this);
|
|
1522
1625
|
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.
|
|
1626
|
+
forgotPasswordButton: (index.h("slot", { name: "forgotPassword" }, index.h("a", { onClick: () => index_module.gn.push(states.forgotPasswordPath) }, this.forgotPasswordLabel))),
|
|
1627
|
+
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
1628
|
emailLabel: this.emailLabel,
|
|
1526
1629
|
passwordLabel: this.passwordLabel,
|
|
1527
1630
|
submitLabel: this.submitLabel,
|
|
@@ -1550,7 +1653,7 @@ function usePortalRegister(props) {
|
|
|
1550
1653
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1551
1654
|
const formRef = stencilHooks_module.useRef(null);
|
|
1552
1655
|
const { registrationFormState, setRegistrationFormState } = useRegistrationFormState.useRegistrationFormState({});
|
|
1553
|
-
const [request, { loading, errors, data }] = index_module.
|
|
1656
|
+
const [request, { loading, errors, data }] = index_module.De();
|
|
1554
1657
|
stencilHooks_module.useEffect(() => {
|
|
1555
1658
|
if (!formRef.current)
|
|
1556
1659
|
return;
|
|
@@ -1623,7 +1726,7 @@ function usePortalRegister(props) {
|
|
|
1623
1726
|
validationErrors: {},
|
|
1624
1727
|
});
|
|
1625
1728
|
if ((_a = result.registerManagedIdentityWithEmailAndPassword) === null || _a === void 0 ? void 0 : _a.token) {
|
|
1626
|
-
index_module.
|
|
1729
|
+
index_module.gn.push(props.nextPage);
|
|
1627
1730
|
}
|
|
1628
1731
|
}
|
|
1629
1732
|
catch (error) {
|
|
@@ -1745,7 +1848,7 @@ const PortalRegister = class {
|
|
|
1745
1848
|
: usePortalRegister(this);
|
|
1746
1849
|
const content = {
|
|
1747
1850
|
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.
|
|
1851
|
+
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
1852
|
terms: index.h("slot", { name: "terms" }),
|
|
1750
1853
|
emailLabel: this.emailLabel,
|
|
1751
1854
|
passwordLabel: this.passwordLabel,
|
|
@@ -1803,15 +1906,15 @@ function ProgramExplainerView(props, children) {
|
|
|
1803
1906
|
};
|
|
1804
1907
|
const sheet = JSS.createStyleSheet(style);
|
|
1805
1908
|
const styleString = sheet.toString();
|
|
1806
|
-
const vanillaStyle = `
|
|
1807
|
-
::slotted(*){
|
|
1808
|
-
display: flex;
|
|
1809
|
-
width: 100%;
|
|
1810
|
-
}
|
|
1811
|
-
@media (max-width: 499px) {
|
|
1812
|
-
::slotted(*){
|
|
1813
|
-
display: block;
|
|
1814
|
-
}
|
|
1909
|
+
const vanillaStyle = `
|
|
1910
|
+
::slotted(*){
|
|
1911
|
+
display: flex;
|
|
1912
|
+
width: 100%;
|
|
1913
|
+
}
|
|
1914
|
+
@media (max-width: 499px) {
|
|
1915
|
+
::slotted(*){
|
|
1916
|
+
display: block;
|
|
1917
|
+
}
|
|
1815
1918
|
}`;
|
|
1816
1919
|
return (index.h("div", { class: sheet.classes.Container },
|
|
1817
1920
|
index.h("style", { type: "text/css" },
|
|
@@ -1912,7 +2015,7 @@ function useProgramMenu(props) {
|
|
|
1912
2015
|
const host = index_module.R();
|
|
1913
2016
|
debug({ programId, props });
|
|
1914
2017
|
const ref = stencilHooks_module.useRef();
|
|
1915
|
-
const [, rerender] = index_module.
|
|
2018
|
+
const [, rerender] = index_module.dn();
|
|
1916
2019
|
stencilHooks_module.useEffect(() => {
|
|
1917
2020
|
var _a;
|
|
1918
2021
|
(_a = ref.current) === null || _a === void 0 ? void 0 : _a.addEventListener('sl-select', (e) => {
|
|
@@ -1951,6 +2054,7 @@ const ProgramMenu = class {
|
|
|
1951
2054
|
|
|
1952
2055
|
const style$1 = {
|
|
1953
2056
|
Container: {
|
|
2057
|
+
"& p": { margin: "0" },
|
|
1954
2058
|
display: "flex",
|
|
1955
2059
|
color: "var(--sl-color-neutral-900)",
|
|
1956
2060
|
background: "var(--sl-color-neutral-0)",
|
|
@@ -1961,8 +2065,6 @@ const style$1 = {
|
|
|
1961
2065
|
paddingRight: "var(--sl-spacing-medium)",
|
|
1962
2066
|
"@media (max-width: 499px)": {
|
|
1963
2067
|
width: "100%",
|
|
1964
|
-
padding: "0",
|
|
1965
|
-
marginBottom: "var(--sl-spacing-xx-large)",
|
|
1966
2068
|
},
|
|
1967
2069
|
},
|
|
1968
2070
|
"& .right": {
|
|
@@ -1972,7 +2074,6 @@ const style$1 = {
|
|
|
1972
2074
|
paddingLeft: "var(--sl-spacing-medium)",
|
|
1973
2075
|
"@media (max-width: 499px)": {
|
|
1974
2076
|
width: "100%",
|
|
1975
|
-
padding: "0",
|
|
1976
2077
|
},
|
|
1977
2078
|
},
|
|
1978
2079
|
border: "1px solid var(--sl-color-neutral-300)",
|
|
@@ -1985,17 +2086,17 @@ const style$1 = {
|
|
|
1985
2086
|
};
|
|
1986
2087
|
const sheet$1 = JSS.createStyleSheet(style$1);
|
|
1987
2088
|
const styleString$1 = sheet$1.toString();
|
|
1988
|
-
const vanillaStyle = `
|
|
1989
|
-
:host{
|
|
1990
|
-
display: block;
|
|
1991
|
-
}
|
|
2089
|
+
const vanillaStyle = `
|
|
2090
|
+
:host{
|
|
2091
|
+
display: block;
|
|
2092
|
+
}
|
|
1992
2093
|
`;
|
|
1993
2094
|
function ReferralCardView(props) {
|
|
1994
2095
|
return (index.h("div", null,
|
|
1995
2096
|
index.h("style", { type: "text/css" },
|
|
1996
2097
|
styleString$1,
|
|
1997
2098
|
vanillaStyle),
|
|
1998
|
-
index.h("div", { class: sheet$1.classes.Container },
|
|
2099
|
+
index.h("div", { part: "sqm-base", class: sheet$1.classes.Container },
|
|
1999
2100
|
index.h("div", { class: "left", style: {
|
|
2000
2101
|
alignSelf: props.verticalAlignment,
|
|
2001
2102
|
} }, props.slots.left),
|
|
@@ -2027,20 +2128,20 @@ const ReferralCard = class {
|
|
|
2027
2128
|
}
|
|
2028
2129
|
};
|
|
2029
2130
|
|
|
2030
|
-
const GET_USER_DETAILS = index_module.dist.gql `
|
|
2031
|
-
query getUser($programId: ID) {
|
|
2032
|
-
viewer {
|
|
2033
|
-
... on User {
|
|
2034
|
-
referralCode(programId: $programId)
|
|
2035
|
-
}
|
|
2036
|
-
}
|
|
2037
|
-
}
|
|
2131
|
+
const GET_USER_DETAILS = index_module.dist.gql `
|
|
2132
|
+
query getUser($programId: ID) {
|
|
2133
|
+
viewer {
|
|
2134
|
+
... on User {
|
|
2135
|
+
referralCode(programId: $programId)
|
|
2136
|
+
}
|
|
2137
|
+
}
|
|
2138
|
+
}
|
|
2038
2139
|
`;
|
|
2039
2140
|
function useReferralIframe(props) {
|
|
2040
2141
|
var _a;
|
|
2041
2142
|
const programId = index_module.O();
|
|
2042
|
-
const user = index_module.
|
|
2043
|
-
const { data } = index_module.
|
|
2143
|
+
const user = index_module.W();
|
|
2144
|
+
const { data } = index_module.fn(GET_USER_DETAILS, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt) || !programId);
|
|
2044
2145
|
return {
|
|
2045
2146
|
states: {
|
|
2046
2147
|
content: props,
|
|
@@ -2698,58 +2799,58 @@ var module$1 = {};
|
|
|
2698
2799
|
|
|
2699
2800
|
const confetti = module$1.exports;
|
|
2700
2801
|
|
|
2701
|
-
const GET_EXCHANGE_LIST = index_module.dist.gql `
|
|
2702
|
-
query getExchangeList {
|
|
2703
|
-
viewer {
|
|
2704
|
-
... on User {
|
|
2705
|
-
visibleRewardExchangeItems(limit: 20, offset: 0) {
|
|
2706
|
-
data {
|
|
2707
|
-
key
|
|
2708
|
-
name
|
|
2709
|
-
description
|
|
2710
|
-
imageUrl
|
|
2711
|
-
available
|
|
2712
|
-
unavailableReasonCode
|
|
2713
|
-
ruleType
|
|
2714
|
-
sourceUnit
|
|
2715
|
-
sourceValue
|
|
2716
|
-
prettySourceValue
|
|
2717
|
-
sourceMinValue
|
|
2718
|
-
prettySourceMinValue
|
|
2719
|
-
sourceMaxValue
|
|
2720
|
-
prettySourceMaxValue
|
|
2721
|
-
destinationMinValue
|
|
2722
|
-
prettyDestinationMinValue
|
|
2723
|
-
destinationMaxValue
|
|
2724
|
-
prettyDestinationMaxValue
|
|
2725
|
-
globalRewardKey
|
|
2726
|
-
destinationUnit
|
|
2727
|
-
steps {
|
|
2728
|
-
sourceValue
|
|
2729
|
-
prettySourceValue
|
|
2730
|
-
destinationValue
|
|
2731
|
-
prettyDestinationValue
|
|
2732
|
-
available
|
|
2733
|
-
globalRewardKey
|
|
2734
|
-
unavailableReasonCode
|
|
2735
|
-
rewardInput
|
|
2736
|
-
}
|
|
2737
|
-
}
|
|
2738
|
-
totalCount
|
|
2739
|
-
}
|
|
2740
|
-
}
|
|
2741
|
-
}
|
|
2742
|
-
}
|
|
2802
|
+
const GET_EXCHANGE_LIST = index_module.dist.gql `
|
|
2803
|
+
query getExchangeList {
|
|
2804
|
+
viewer {
|
|
2805
|
+
... on User {
|
|
2806
|
+
visibleRewardExchangeItems(limit: 20, offset: 0) {
|
|
2807
|
+
data {
|
|
2808
|
+
key
|
|
2809
|
+
name
|
|
2810
|
+
description
|
|
2811
|
+
imageUrl
|
|
2812
|
+
available
|
|
2813
|
+
unavailableReasonCode
|
|
2814
|
+
ruleType
|
|
2815
|
+
sourceUnit
|
|
2816
|
+
sourceValue
|
|
2817
|
+
prettySourceValue
|
|
2818
|
+
sourceMinValue
|
|
2819
|
+
prettySourceMinValue
|
|
2820
|
+
sourceMaxValue
|
|
2821
|
+
prettySourceMaxValue
|
|
2822
|
+
destinationMinValue
|
|
2823
|
+
prettyDestinationMinValue
|
|
2824
|
+
destinationMaxValue
|
|
2825
|
+
prettyDestinationMaxValue
|
|
2826
|
+
globalRewardKey
|
|
2827
|
+
destinationUnit
|
|
2828
|
+
steps {
|
|
2829
|
+
sourceValue
|
|
2830
|
+
prettySourceValue
|
|
2831
|
+
destinationValue
|
|
2832
|
+
prettyDestinationValue
|
|
2833
|
+
available
|
|
2834
|
+
globalRewardKey
|
|
2835
|
+
unavailableReasonCode
|
|
2836
|
+
rewardInput
|
|
2837
|
+
}
|
|
2838
|
+
}
|
|
2839
|
+
totalCount
|
|
2840
|
+
}
|
|
2841
|
+
}
|
|
2842
|
+
}
|
|
2843
|
+
}
|
|
2743
2844
|
`;
|
|
2744
|
-
const EXCHANGE = index_module.dist.gql `
|
|
2745
|
-
mutation exchange($exchangeRewardInput: ExchangeRewardInput!) {
|
|
2746
|
-
exchangeReward(exchangeRewardInput: $exchangeRewardInput) {
|
|
2747
|
-
reward {
|
|
2748
|
-
id
|
|
2749
|
-
fuelTankCode
|
|
2750
|
-
}
|
|
2751
|
-
}
|
|
2752
|
-
}
|
|
2845
|
+
const EXCHANGE = index_module.dist.gql `
|
|
2846
|
+
mutation exchange($exchangeRewardInput: ExchangeRewardInput!) {
|
|
2847
|
+
exchangeReward(exchangeRewardInput: $exchangeRewardInput) {
|
|
2848
|
+
reward {
|
|
2849
|
+
id
|
|
2850
|
+
fuelTankCode
|
|
2851
|
+
}
|
|
2852
|
+
}
|
|
2853
|
+
}
|
|
2753
2854
|
`;
|
|
2754
2855
|
function useRewardExchangeList(props) {
|
|
2755
2856
|
var _a, _b, _c, _d, _e;
|
|
@@ -2765,9 +2866,9 @@ function useRewardExchangeList(props) {
|
|
|
2765
2866
|
});
|
|
2766
2867
|
const [open, setOpen] = stencilHooks_module.useState(false);
|
|
2767
2868
|
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.
|
|
2869
|
+
const user = index_module.W();
|
|
2870
|
+
const [exchange, { data: exchangeResponse, loading: exchangeLoading, errors },] = index_module.Fe(EXCHANGE);
|
|
2871
|
+
const { data, loading, refetch, errors: queryError, } = index_module.fn(GET_EXCHANGE_LIST, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
2771
2872
|
stencilHooks_module.useEffect(() => {
|
|
2772
2873
|
var _a, _b;
|
|
2773
2874
|
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 +2887,7 @@ function useRewardExchangeList(props) {
|
|
|
2786
2887
|
canvas.confetti || confetti.create(canvas, { resize: true });
|
|
2787
2888
|
canvas.confetti();
|
|
2788
2889
|
}, [canvasRef.current]);
|
|
2789
|
-
const { refresh } = index_module.
|
|
2890
|
+
const { refresh } = index_module.He();
|
|
2790
2891
|
async function exchangeReward() {
|
|
2791
2892
|
if (!selectedItem)
|
|
2792
2893
|
return;
|
|
@@ -3094,7 +3195,7 @@ function matchPath(pattern, page) {
|
|
|
3094
3195
|
return regexp.exec(page);
|
|
3095
3196
|
}
|
|
3096
3197
|
function useRouter() {
|
|
3097
|
-
const location = index_module.
|
|
3198
|
+
const location = index_module.mn();
|
|
3098
3199
|
const host = index_module.R();
|
|
3099
3200
|
const [slot, setSlot] = stencilHooks_module.useState(undefined);
|
|
3100
3201
|
const [container, setContainer] = stencilHooks_module.useState(undefined);
|
|
@@ -3253,19 +3354,19 @@ const Scroll = class {
|
|
|
3253
3354
|
};
|
|
3254
3355
|
const sheet = JSS.createStyleSheet(style);
|
|
3255
3356
|
const styleString = sheet.toString();
|
|
3256
|
-
const vanillaStyle = `
|
|
3257
|
-
:host{
|
|
3258
|
-
display: contents;
|
|
3259
|
-
}
|
|
3357
|
+
const vanillaStyle = `
|
|
3358
|
+
:host{
|
|
3359
|
+
display: contents;
|
|
3360
|
+
}
|
|
3260
3361
|
${this.mobile &&
|
|
3261
|
-
`
|
|
3262
|
-
@media only screen and (max-width: 499px) {
|
|
3263
|
-
:host {
|
|
3264
|
-
display: block;
|
|
3265
|
-
width: 100%;
|
|
3266
|
-
}
|
|
3267
|
-
}
|
|
3268
|
-
`}
|
|
3362
|
+
`
|
|
3363
|
+
@media only screen and (max-width: 499px) {
|
|
3364
|
+
:host {
|
|
3365
|
+
display: block;
|
|
3366
|
+
width: 100%;
|
|
3367
|
+
}
|
|
3368
|
+
}
|
|
3369
|
+
`}
|
|
3269
3370
|
`;
|
|
3270
3371
|
let classStack = "";
|
|
3271
3372
|
if (this.outline && this.buttonType != "default")
|
|
@@ -3330,35 +3431,35 @@ function useDemoShareButton(props) {
|
|
|
3330
3431
|
}
|
|
3331
3432
|
ShareButton.style = sqmShareButtonCss;
|
|
3332
3433
|
|
|
3333
|
-
const MessageLinkQuery = index_module.dist.gql `
|
|
3334
|
-
query ($programId: ID) {
|
|
3335
|
-
user: viewer {
|
|
3336
|
-
... on User {
|
|
3337
|
-
referralCode(programId: $programId)
|
|
3338
|
-
}
|
|
3339
|
-
}
|
|
3340
|
-
}
|
|
3434
|
+
const MessageLinkQuery$1 = index_module.dist.gql `
|
|
3435
|
+
query ($programId: ID) {
|
|
3436
|
+
user: viewer {
|
|
3437
|
+
... on User {
|
|
3438
|
+
referralCode(programId: $programId)
|
|
3439
|
+
}
|
|
3440
|
+
}
|
|
3441
|
+
}
|
|
3341
3442
|
`;
|
|
3342
|
-
const WIDGET_ENGAGEMENT_EVENT = index_module.dist.gql `
|
|
3343
|
-
mutation loadEvent($eventMeta: UserAnalyticsEvent!) {
|
|
3344
|
-
createUserAnalyticsEvent(eventMeta: $eventMeta)
|
|
3345
|
-
}
|
|
3443
|
+
const WIDGET_ENGAGEMENT_EVENT$1 = index_module.dist.gql `
|
|
3444
|
+
mutation loadEvent($eventMeta: UserAnalyticsEvent!) {
|
|
3445
|
+
createUserAnalyticsEvent(eventMeta: $eventMeta)
|
|
3446
|
+
}
|
|
3346
3447
|
`;
|
|
3347
3448
|
function useShareCode(props) {
|
|
3348
3449
|
var _a, _b;
|
|
3349
3450
|
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
|
|
3451
|
+
const user = index_module.W();
|
|
3452
|
+
const engagementMedium = index_module._();
|
|
3453
|
+
const { data } = index_module.fn(MessageLinkQuery$1, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
3454
|
+
const [sendLoadEvent] = index_module.Fe(WIDGET_ENGAGEMENT_EVENT$1);
|
|
3455
|
+
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
3456
|
// Shown during loading
|
|
3356
3457
|
"...";
|
|
3357
3458
|
const [open, setOpen] = stencilHooks_module.useState(false);
|
|
3358
3459
|
function onClick() {
|
|
3359
3460
|
// Should well supported: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
|
|
3360
3461
|
// Only if called from a user-initiated event
|
|
3361
|
-
navigator.clipboard.writeText(
|
|
3462
|
+
navigator.clipboard.writeText(copyString);
|
|
3362
3463
|
setOpen(true);
|
|
3363
3464
|
setTimeout(() => setOpen(false), props.tooltiplifespan);
|
|
3364
3465
|
sendLoadEvent({
|
|
@@ -3374,7 +3475,7 @@ function useShareCode(props) {
|
|
|
3374
3475
|
},
|
|
3375
3476
|
});
|
|
3376
3477
|
}
|
|
3377
|
-
return { ...props, onClick, open,
|
|
3478
|
+
return { ...props, onClick, open, copyString: copyString };
|
|
3378
3479
|
}
|
|
3379
3480
|
|
|
3380
3481
|
const ShareCode = class {
|
|
@@ -3392,6 +3493,18 @@ const ShareCode = class {
|
|
|
3392
3493
|
* @uiName Tooltip lifespan
|
|
3393
3494
|
*/
|
|
3394
3495
|
this.tooltiplifespan = 1000;
|
|
3496
|
+
/**
|
|
3497
|
+
* Change the text alignment
|
|
3498
|
+
*
|
|
3499
|
+
* @uiName Align text
|
|
3500
|
+
*/
|
|
3501
|
+
this.textAlign = "left";
|
|
3502
|
+
/**
|
|
3503
|
+
* Set copy button as icon
|
|
3504
|
+
*
|
|
3505
|
+
* @uiName Copy icon
|
|
3506
|
+
*/
|
|
3507
|
+
this.isCopyIcon = true;
|
|
3395
3508
|
stencilHooks_module.h$1(this);
|
|
3396
3509
|
}
|
|
3397
3510
|
disconnectedCallback() { }
|
|
@@ -3400,20 +3513,22 @@ const ShareCode = class {
|
|
|
3400
3513
|
const props = index_module.isDemo()
|
|
3401
3514
|
? useDemoShareCode(thisProps)
|
|
3402
3515
|
: useShareCode(thisProps);
|
|
3403
|
-
return index.h(ShadowViewAddon.
|
|
3516
|
+
return index.h(ShadowViewAddon.CopyTextView, Object.assign({}, props));
|
|
3404
3517
|
}
|
|
3405
3518
|
};
|
|
3406
3519
|
function useDemoShareCode(props) {
|
|
3407
3520
|
const [open, setOpen] = stencilHooks_module.useState(false);
|
|
3408
|
-
const
|
|
3521
|
+
const copyString = "SHARECODE001";
|
|
3409
3522
|
return cjs.cjs({
|
|
3410
|
-
|
|
3523
|
+
copyString: copyString,
|
|
3411
3524
|
tooltiptext: props.tooltiptext,
|
|
3525
|
+
isCopyIcon: props.isCopyIcon,
|
|
3526
|
+
textAlign: props.textAlign,
|
|
3412
3527
|
open,
|
|
3413
3528
|
onClick: () => {
|
|
3414
3529
|
// Should well supported: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
|
|
3415
3530
|
// Only if called from a user-initiated event
|
|
3416
|
-
navigator.clipboard.writeText(
|
|
3531
|
+
navigator.clipboard.writeText(copyString);
|
|
3417
3532
|
setOpen(true);
|
|
3418
3533
|
setTimeout(() => setOpen(false), props.tooltiplifespan);
|
|
3419
3534
|
},
|
|
@@ -3435,6 +3550,18 @@ const ShareLink = class {
|
|
|
3435
3550
|
* @uiName Tooltip Lifespan
|
|
3436
3551
|
*/
|
|
3437
3552
|
this.tooltiplifespan = 1000;
|
|
3553
|
+
/**
|
|
3554
|
+
* Change the text alignment
|
|
3555
|
+
*
|
|
3556
|
+
* @uiName Align text
|
|
3557
|
+
*/
|
|
3558
|
+
this.textAlign = "left";
|
|
3559
|
+
/**
|
|
3560
|
+
* Set copy button as icon
|
|
3561
|
+
*
|
|
3562
|
+
* @uiName Copy icon
|
|
3563
|
+
*/
|
|
3564
|
+
this.isCopyIcon = true;
|
|
3438
3565
|
stencilHooks_module.h$1(this);
|
|
3439
3566
|
}
|
|
3440
3567
|
disconnectedCallback() { }
|
|
@@ -3443,20 +3570,22 @@ const ShareLink = class {
|
|
|
3443
3570
|
const props = index_module.isDemo()
|
|
3444
3571
|
? useDemoShareLink(thisProps)
|
|
3445
3572
|
: ShadowViewAddon.useShareLink(thisProps);
|
|
3446
|
-
return index.h(ShadowViewAddon.
|
|
3573
|
+
return index.h(ShadowViewAddon.CopyTextView, Object.assign({}, props));
|
|
3447
3574
|
}
|
|
3448
3575
|
};
|
|
3449
3576
|
function useDemoShareLink(props) {
|
|
3450
3577
|
const [open, setOpen] = stencilHooks_module.useState(false);
|
|
3451
|
-
const
|
|
3578
|
+
const copyString = "https://www.example.com/sharelink/abc";
|
|
3452
3579
|
return cjs.cjs({
|
|
3453
|
-
|
|
3580
|
+
copyString: copyString,
|
|
3454
3581
|
tooltiptext: props.tooltiptext,
|
|
3582
|
+
isCopyIcon: props.isCopyIcon,
|
|
3583
|
+
textAlign: props.textAlign,
|
|
3455
3584
|
open,
|
|
3456
3585
|
onClick: () => {
|
|
3457
3586
|
// Should well supported: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
|
|
3458
3587
|
// Only if called from a user-initiated event
|
|
3459
|
-
navigator.clipboard.writeText(
|
|
3588
|
+
navigator.clipboard.writeText(copyString);
|
|
3460
3589
|
setOpen(true);
|
|
3461
3590
|
setTimeout(() => setOpen(false), props.tooltiplifespan);
|
|
3462
3591
|
},
|
|
@@ -3515,18 +3644,18 @@ const TableRow = class {
|
|
|
3515
3644
|
}
|
|
3516
3645
|
};
|
|
3517
3646
|
|
|
3518
|
-
const SEND_EVENT = index_module.dist.gql `
|
|
3519
|
-
mutation taskCardEvent($userEventInput: UserEventInput!) {
|
|
3520
|
-
logUserEvent(userEventInput: $userEventInput) {
|
|
3521
|
-
userId
|
|
3522
|
-
}
|
|
3523
|
-
}
|
|
3647
|
+
const SEND_EVENT = index_module.dist.gql `
|
|
3648
|
+
mutation taskCardEvent($userEventInput: UserEventInput!) {
|
|
3649
|
+
logUserEvent(userEventInput: $userEventInput) {
|
|
3650
|
+
userId
|
|
3651
|
+
}
|
|
3652
|
+
}
|
|
3524
3653
|
`;
|
|
3525
3654
|
function useTaskCard(props) {
|
|
3526
|
-
const user = index_module.
|
|
3655
|
+
const user = index_module.W();
|
|
3527
3656
|
const locale = index_module.x();
|
|
3528
|
-
const [sendUserEvent, { data, loading: loadingEvent }] = index_module.
|
|
3529
|
-
const { refresh } = index_module.
|
|
3657
|
+
const [sendUserEvent, { data, loading: loadingEvent }] = index_module.Fe(SEND_EVENT);
|
|
3658
|
+
const { refresh } = index_module.He();
|
|
3530
3659
|
stencilHooks_module.useEffect(() => {
|
|
3531
3660
|
if (data) {
|
|
3532
3661
|
refresh();
|
|
@@ -3713,14 +3842,14 @@ const Timeline = class {
|
|
|
3713
3842
|
// incase child is not sqm-timeline-entry
|
|
3714
3843
|
}
|
|
3715
3844
|
});
|
|
3716
|
-
const vanillaStyle = `
|
|
3717
|
-
:host{
|
|
3718
|
-
display: block;
|
|
3719
|
-
}
|
|
3720
|
-
|
|
3721
|
-
::slotted(*:not(:only-child):not(:last-child)) {
|
|
3722
|
-
margin-bottom: var(--sl-spacing-xx-large);
|
|
3723
|
-
}
|
|
3845
|
+
const vanillaStyle = `
|
|
3846
|
+
:host{
|
|
3847
|
+
display: block;
|
|
3848
|
+
}
|
|
3849
|
+
|
|
3850
|
+
::slotted(*:not(:only-child):not(:last-child)) {
|
|
3851
|
+
margin-bottom: var(--sl-spacing-xx-large);
|
|
3852
|
+
}
|
|
3724
3853
|
`;
|
|
3725
3854
|
return (index.h("div", null, index.h("style", { type: "text/css" }, vanillaStyle), index.h("slot", null)));
|
|
3726
3855
|
}
|
|
@@ -3779,14 +3908,14 @@ const style$2 = {
|
|
|
3779
3908
|
};
|
|
3780
3909
|
const sheet$2 = JSS.createStyleSheet(style$2);
|
|
3781
3910
|
const styleString$2 = sheet$2.toString();
|
|
3782
|
-
const vanillaStyle$1 = `
|
|
3783
|
-
:host{
|
|
3784
|
-
display: block;
|
|
3785
|
-
}
|
|
3786
|
-
|
|
3787
|
-
:host(:not(:last-of-type)) .line {
|
|
3788
|
-
display: block;
|
|
3789
|
-
}
|
|
3911
|
+
const vanillaStyle$1 = `
|
|
3912
|
+
:host{
|
|
3913
|
+
display: block;
|
|
3914
|
+
}
|
|
3915
|
+
|
|
3916
|
+
:host(:not(:last-of-type)) .line {
|
|
3917
|
+
display: block;
|
|
3918
|
+
}
|
|
3790
3919
|
`;
|
|
3791
3920
|
function TimelineEntryView(props) {
|
|
3792
3921
|
var _a;
|
|
@@ -3795,7 +3924,7 @@ function TimelineEntryView(props) {
|
|
|
3795
3924
|
index.h("style", { type: "text/css" },
|
|
3796
3925
|
styleString$2,
|
|
3797
3926
|
vanillaStyle$1),
|
|
3798
|
-
index.h("div", { class: "container" },
|
|
3927
|
+
index.h("div", { class: "container", part: "sqm-base" },
|
|
3799
3928
|
index.h("div", { class: "line" }, "/"),
|
|
3800
3929
|
index.h("div", { class: "step" },
|
|
3801
3930
|
timeline_icon === "gift" && (index.h("div", { class: "icon" },
|
|
@@ -3804,9 +3933,9 @@ function TimelineEntryView(props) {
|
|
|
3804
3933
|
index.h(Circle, null))),
|
|
3805
3934
|
index.h("div", null,
|
|
3806
3935
|
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))))));
|
|
3936
|
+
index.h("span", { class: "reward", part: "sqm-reward" }, props.reward),
|
|
3937
|
+
index.h("span", { class: "unit", part: "sqm-unit" }, props.unit)),
|
|
3938
|
+
index.h("div", { class: "description", part: "sqm-description" }, props.desc))))));
|
|
3810
3939
|
}
|
|
3811
3940
|
|
|
3812
3941
|
const TimelineReward = class {
|
|
@@ -3830,20 +3959,20 @@ function UserNameView(props) {
|
|
|
3830
3959
|
return index.h(index.Host, null, props.loading ? props.loadingText : props.username);
|
|
3831
3960
|
}
|
|
3832
3961
|
|
|
3833
|
-
const GET_USER_NAME = index_module.dist.gql `
|
|
3834
|
-
query getUserName {
|
|
3835
|
-
viewer {
|
|
3836
|
-
... on User {
|
|
3837
|
-
firstName
|
|
3838
|
-
lastName
|
|
3839
|
-
}
|
|
3840
|
-
}
|
|
3841
|
-
}
|
|
3962
|
+
const GET_USER_NAME = index_module.dist.gql `
|
|
3963
|
+
query getUserName {
|
|
3964
|
+
viewer {
|
|
3965
|
+
... on User {
|
|
3966
|
+
firstName
|
|
3967
|
+
lastName
|
|
3968
|
+
}
|
|
3969
|
+
}
|
|
3970
|
+
}
|
|
3842
3971
|
`;
|
|
3843
3972
|
function useUserName(props) {
|
|
3844
3973
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
3845
|
-
const user = index_module.
|
|
3846
|
-
const res = index_module.
|
|
3974
|
+
const user = index_module.W();
|
|
3975
|
+
const res = index_module.fn(GET_USER_NAME, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
3847
3976
|
const loading = res.loading;
|
|
3848
3977
|
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
3978
|
? `${(_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}`
|
|
@@ -3888,6 +4017,7 @@ exports.sqm_big_stat = BigStat;
|
|
|
3888
4017
|
exports.sqm_brand = BrandComponent;
|
|
3889
4018
|
exports.sqm_card_feed = CardFeed;
|
|
3890
4019
|
exports.sqm_checkbox_field = CheckboxField;
|
|
4020
|
+
exports.sqm_coupon_code = CouponCode;
|
|
3891
4021
|
exports.sqm_divided_layout = DividedLayout;
|
|
3892
4022
|
exports.sqm_dropdown_field = DropdownField;
|
|
3893
4023
|
exports.sqm_edit_profile = EditProfile;
|