@saasquatch/mint-components 1.6.8 → 1.6.10-0
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/{ShadowViewAddon-952b4df5.js → ShadowViewAddon-8be973fa.js} +742 -434
- package/dist/cjs/email-registration-view-f347daa7.js +79 -0
- package/dist/cjs/{global-0b8cbb00.js → global-e0036ac2.js} +661 -655
- package/dist/cjs/{index.module-c6626247.js → index.module-e67cc994.js} +250 -221
- package/dist/cjs/loader.cjs.js +3 -4
- package/dist/cjs/mint-components.cjs.js +3 -4
- package/dist/cjs/{re-render-fce04f85.js → re-render-86f5c1d6.js} +4 -4
- package/dist/cjs/{sqm-asset-card-view-59c39ed2.js → sqm-asset-card-view-a0e33f21.js} +2 -2
- package/dist/cjs/sqm-asset-card.cjs.entry.js +2 -3
- package/dist/cjs/{sqm-big-stat_35.cjs.entry.js → sqm-big-stat_39.cjs.entry.js} +1034 -483
- package/dist/cjs/sqm-close-button-view-fd6e8f60.js +28 -0
- package/dist/cjs/sqm-close-button.cjs.entry.js +41 -0
- package/dist/cjs/sqm-empty_5.cjs.entry.js +65 -58
- package/dist/cjs/sqm-form-message.cjs.entry.js +4 -1
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +4 -5
- package/dist/cjs/sqm-header-logo.cjs.entry.js +3 -3
- package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +158 -0
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +17 -18
- package/dist/cjs/sqm-logout-current-user-view-555c7729.js +37 -0
- package/dist/cjs/sqm-logout-current-user.cjs.entry.js +62 -0
- package/dist/cjs/{sqm-navigation-sidebar-item-view-8b4f304f.js → sqm-navigation-sidebar-item-view-d49d0ac0.js} +4 -4
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +3 -4
- package/dist/cjs/{sqm-navigation-sidebar-view-4704aa73.js → sqm-navigation-sidebar-view-dd53f947.js} +143 -143
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +3 -4
- package/dist/cjs/sqm-password-field.cjs.entry.js +14 -15
- package/dist/cjs/sqm-popup-container.cjs.entry.js +6 -7
- package/dist/cjs/{sqm-portal-container-view-5beae29c.js → sqm-portal-container-view-5fb2ad49.js} +8 -7
- package/dist/cjs/{sqm-portal-email-verification-view-26c166dc.js → sqm-portal-email-verification-view-e550979b.js} +9 -9
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +16 -17
- package/dist/cjs/{sqm-portal-forgot-password-view-235733ea.js → sqm-portal-forgot-password-view-0142350f.js} +9 -9
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +12 -13
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +3 -4
- package/dist/cjs/{sqm-portal-profile-view-14d2f91d.js → sqm-portal-profile-view-2bb25095.js} +3 -3
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +47 -48
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +8 -9
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +51 -52
- package/dist/cjs/{sqm-portal-reset-password-view-803a56be.js → sqm-portal-reset-password-view-d5bc7afc.js} +8 -8
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +17 -18
- package/dist/cjs/{sqm-portal-verify-email-view-6741f5bd.js → sqm-portal-verify-email-view-f6c7287e.js} +10 -10
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +10 -11
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +38 -39
- package/dist/cjs/sqm-referred-registration.cjs.entry.js +160 -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 +3 -4
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +138 -139
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +6333 -5834
- package/dist/cjs/sqm-tab.cjs.entry.js +2 -3
- package/dist/cjs/sqm-tabs.cjs.entry.js +8 -9
- package/dist/cjs/{sqm-text-span-view-c34577fa.js → sqm-text-span-view-e1cd9bd3.js} +8 -8
- package/dist/cjs/sqm-text-span.cjs.entry.js +1 -1
- package/dist/cjs/{useChildElements-eaa9e49d.js → useChildElements-8627c9be.js} +2 -2
- package/dist/cjs/useInstantAccessRegistration-633575aa.js +87 -0
- package/dist/cjs/{useReferralTable-f3e792eb.js → useReferralTable-0383a467.js} +190 -190
- package/dist/cjs/{useRegistrationFormState-a1861717.js → useRegistrationFormState-7b8b58e4.js} +2 -2
- package/dist/collection/collection-manifest.json +7 -1
- package/dist/collection/components/sqm-asset-card/sqm-asset-card-view.js +2 -2
- package/dist/collection/components/sqm-asset-card/sqm-asset-card.js +2 -2
- package/dist/collection/components/sqm-big-stat/sqm-big-stat.js +3 -3
- package/dist/collection/components/sqm-big-stat/useBigStat.js +238 -238
- package/dist/collection/components/sqm-brand/sqm-brand.js +24 -24
- package/dist/collection/components/sqm-card-feed/sqm-card-feed-view.js +6 -6
- package/dist/collection/components/sqm-card-feed/sqm-card-feed.js +4 -4
- package/dist/collection/components/sqm-checkbox-field/CheckboxField.stories.js +6 -1
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field-view.js +15 -15
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +9 -9
- package/dist/collection/components/sqm-close-button/CloseButton.stories.js +27 -0
- package/dist/collection/components/sqm-close-button/sqm-close-button-view.js +23 -0
- package/dist/collection/components/sqm-close-button/sqm-close-button.js +65 -0
- package/dist/collection/components/sqm-coupon-code/CouponCode.stories.js +72 -0
- package/dist/collection/components/sqm-coupon-code/sqm-coupon-code-view.js +30 -0
- package/dist/collection/components/sqm-coupon-code/sqm-coupon-code.js +526 -0
- package/dist/collection/components/sqm-coupon-code/useCouponCode.js +126 -0
- package/dist/collection/components/sqm-divided-layout/sqm-divided-layout-view.js +16 -16
- package/dist/collection/components/sqm-divided-layout/sqm-divided-layout.js +2 -2
- package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field-view.js +11 -11
- package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field.js +5 -5
- package/dist/collection/components/sqm-edit-profile/sqm-edit-profile-view.js +4 -4
- package/dist/collection/components/sqm-edit-profile/sqm-edit-profile.js +7 -7
- package/dist/collection/components/sqm-edit-profile/useEditProfile.js +32 -32
- package/dist/collection/components/sqm-empty/sqm-empty-view.js +1 -1
- package/dist/collection/components/sqm-form-message/FormMessage.stories.js +4 -0
- package/dist/collection/components/sqm-form-message/sqm-form-message.css +5 -0
- package/dist/collection/components/sqm-form-message/sqm-form-message.js +8 -3
- package/dist/collection/components/sqm-header-logo/sqm-header-logo.js +6 -6
- package/dist/collection/components/sqm-hero/Hero.stories.js +30 -0
- package/dist/collection/components/sqm-hero/sqm-hero-view.js +20 -19
- package/dist/collection/components/sqm-hero/sqm-hero.js +42 -8
- package/dist/collection/components/sqm-hero-image/sqm-hero-image-view.js +10 -10
- package/dist/collection/components/sqm-hero-image/sqm-hero-image.js +21 -21
- package/dist/collection/components/sqm-image/sqm-image-view.js +6 -6
- package/dist/collection/components/sqm-image/sqm-image.js +5 -5
- package/dist/collection/components/sqm-input-field/InputField.stories.js +6 -1
- package/dist/collection/components/sqm-input-field/sqm-input-field-view.js +7 -7
- package/dist/collection/components/sqm-input-field/sqm-input-field.js +6 -6
- package/dist/collection/components/sqm-instant-access-registration/sqm-instant-access-registration.js +574 -0
- package/dist/collection/components/sqm-instant-access-registration/useInstantAccessRegistration.js +82 -0
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +6 -6
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +15 -15
- package/dist/collection/components/sqm-leaderboard/useLeaderboard.js +40 -40
- package/dist/collection/components/sqm-leaderboard-rank/sqm-leaderboard-rank.js +8 -8
- package/dist/collection/components/sqm-leaderboard-rank/useLeaderboardRank.js +12 -12
- package/dist/collection/components/sqm-link-button/LinkButton.stories.js +19 -0
- package/dist/collection/components/sqm-link-button/sqm-link-button-view.js +25 -0
- package/dist/collection/components/sqm-link-button/sqm-link-button.js +102 -0
- package/dist/collection/components/sqm-logout-current-user/LogoutCurrentUser.stories.js +17 -0
- package/dist/collection/components/sqm-logout-current-user/sqm-logout-current-user-view.js +32 -0
- package/dist/collection/components/sqm-logout-current-user/sqm-logout-current-user.js +128 -0
- package/dist/collection/components/sqm-logout-current-user/useLogoutCurrentUser.js +14 -0
- package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +11 -11
- package/dist/collection/components/sqm-name-fields/sqm-name-fields.js +4 -4
- package/dist/collection/components/sqm-navigation-menu/sqm-navigation-menu.js +2 -2
- package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar-view.js +143 -143
- package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view.js +2 -2
- package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.js +1 -1
- package/dist/collection/components/sqm-password-field/sqm-password-field-view.js +10 -10
- package/dist/collection/components/sqm-password-field/sqm-password-field.js +4 -4
- package/dist/collection/components/sqm-popup-container/sqm-popup-container-view.js +2 -2
- package/dist/collection/components/sqm-popup-container/sqm-popup-container.js +5 -5
- package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password.js +16 -16
- package/dist/collection/components/sqm-portal-container/PortalContainer.stories.js +12 -0
- package/dist/collection/components/sqm-portal-container/sqm-portal-container-view.js +6 -5
- package/dist/collection/components/sqm-portal-container/sqm-portal-container.js +41 -4
- package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification-view.js +7 -7
- package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification.js +12 -12
- package/dist/collection/components/sqm-portal-footer/PortalFooter.stories.js +1 -0
- package/dist/collection/components/sqm-portal-footer/sqm-portal-footer-view.js +15 -13
- package/dist/collection/components/sqm-portal-footer/sqm-portal-footer.js +63 -22
- package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.js +8 -8
- package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password.js +12 -12
- package/dist/collection/components/sqm-portal-frame/sqm-portal-frame-view.js +3 -3
- package/dist/collection/components/sqm-portal-login/sqm-portal-login-view.js +9 -9
- package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +18 -18
- package/dist/collection/components/sqm-portal-logout/sqm-portal-logout.js +3 -2
- package/dist/collection/components/sqm-portal-profile/sqm-portal-profile-view.js +1 -1
- package/dist/collection/components/sqm-portal-profile/sqm-portal-profile.js +16 -16
- package/dist/collection/components/sqm-portal-profile/usePortalProfile.js +32 -32
- package/dist/collection/components/sqm-portal-protected-route/sqm-portal-protected-route.js +6 -6
- package/dist/collection/components/sqm-portal-register/PortalRegister.stories.js +16 -2
- package/dist/collection/components/sqm-portal-register/sqm-portal-register-view.js +19 -19
- package/dist/collection/components/sqm-portal-register/sqm-portal-register.js +151 -25
- package/dist/collection/components/sqm-portal-register/usePortalRegister.js +5 -5
- package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form-view.js +15 -15
- package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form.js +35 -35
- 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-reset-password/sqm-portal-reset-password.js +18 -18
- package/dist/collection/components/sqm-portal-verify-email/sqm-portal-verify-email-view.js +9 -9
- package/dist/collection/components/sqm-portal-verify-email/sqm-portal-verify-email.js +4 -4
- package/dist/collection/components/sqm-program-explainer/sqm-program-explainer-view.js +12 -12
- package/dist/collection/components/sqm-program-explainer/sqm-program-explainer.js +3 -3
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step-view.js +13 -13
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step.js +3 -3
- package/dist/collection/components/sqm-referral-card/ReferralCard.stories.js +35 -0
- package/dist/collection/components/sqm-referral-card/sqm-referral-card-view.js +40 -37
- package/dist/collection/components/sqm-referral-card/sqm-referral-card.js +249 -4
- package/dist/collection/components/sqm-referral-iframe/sqm-referral-iframe.js +5 -5
- 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-column.js +1 -1
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-date-column.js +6 -6
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.js +14 -14
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-status-column.js +6 -6
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-user-column.js +6 -6
- package/dist/collection/components/sqm-referral-table/sqm-referral-table.js +18 -18
- package/dist/collection/components/sqm-referral-table/useReferralTable.js +183 -183
- package/dist/collection/components/sqm-referred-registration/sqm-referred-registration.js +576 -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 +8 -8
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +50 -50
- 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 +5 -5
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.js +2 -2
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.js +9 -9
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.js +12 -12
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.js +12 -12
- package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +14 -14
- package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +103 -103
- package/dist/collection/components/sqm-route/sqm-route.js +1 -1
- 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 +22 -22
- 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 +21 -21
- package/dist/collection/components/sqm-share-button/useShareButton.js +17 -17
- package/dist/collection/components/sqm-share-code/ShareCode.stories.js +34 -1
- package/dist/collection/components/sqm-share-code/sqm-share-code.js +122 -15
- package/dist/collection/components/sqm-share-code/useShareCode.js +15 -15
- package/dist/collection/components/sqm-share-link/ShareLink.stories.js +39 -7
- package/dist/collection/components/sqm-share-link/UseShareLink.stories.js +4 -4
- package/dist/collection/components/sqm-share-link/sqm-share-link.js +125 -18
- package/dist/collection/components/sqm-share-link/useShareLink.js +15 -15
- package/dist/collection/components/sqm-stat-container/sqm-stat-container-view.js +3 -3
- package/dist/collection/components/sqm-stat-container/sqm-stat-container.js +2 -2
- 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 +10 -0
- package/dist/collection/components/sqm-tab/sqm-tab.js +1 -1
- package/dist/collection/components/sqm-table-cell/sqm-table-cell.js +2 -2
- 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-tabs/sqm-tabs.js +1 -1
- package/dist/collection/components/sqm-task-card/DetailsView.js +1 -1
- package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +14 -13
- package/dist/collection/components/sqm-task-card/sqm-task-card.js +36 -36
- 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 +13 -13
- package/dist/collection/components/sqm-timeline/sqm-timeline-entry.js +2 -2
- package/dist/collection/components/sqm-timeline/sqm-timeline.js +8 -8
- package/dist/collection/components/sqm-titled-section/sqm-portal-section-view.js +2 -2
- package/dist/collection/components/sqm-titled-section/sqm-titled-section.js +6 -6
- package/dist/collection/components/sqm-user-name/sqm-user-name.js +4 -4
- package/dist/collection/components/sqm-user-name/useUserName.js +9 -9
- package/dist/collection/components/views/EmailRegistration.stories.js +80 -0
- package/dist/collection/components/views/copy-text-view.js +76 -0
- package/dist/collection/components/views/email-registration-view.js +74 -0
- package/dist/collection/global/styles.js +659 -653
- package/dist/collection/global/styles.ts +735 -729
- package/dist/collection/stories/NewPortal.stories.js +5 -5
- package/dist/collection/stories/PortalTemplates.stories.js +2 -42
- package/dist/collection/stories/Widget.stories.js +32 -13
- package/dist/collection/tables/GenericTableView.js +7 -2
- package/dist/collection/utils/DefaultTemplateView.js +31 -0
- package/dist/collection/utils/TemplateView.js +13 -0
- package/dist/esm/{GenericTableView-ce26115f.js → GenericTableView-266126f9.js} +7 -2
- package/dist/esm/{ShadowViewAddon-40692fc1.js → ShadowViewAddon-5b06502d.js} +740 -436
- package/dist/esm/email-registration-view-0a11e959.js +77 -0
- package/dist/esm/{global-27ee1626.js → global-9a9bd884.js} +662 -656
- package/dist/esm/{index.module-3c720e8f.js → index.module-f6aa21b2.js} +235 -208
- package/dist/esm/loader.js +4 -5
- package/dist/esm/{luxon-1e38d7f1.js → luxon-f01e85fe.js} +1 -1
- package/dist/esm/mint-components.js +4 -5
- package/dist/esm/{re-render-695ddbbd.js → re-render-8acb41bc.js} +5 -5
- package/dist/esm/{sqm-asset-card-view-b0f8ef8e.js → sqm-asset-card-view-9d93fbdd.js} +2 -2
- package/dist/esm/sqm-asset-card.entry.js +3 -4
- package/dist/esm/{sqm-big-stat_35.entry.js → sqm-big-stat_39.entry.js} +1034 -487
- package/dist/esm/sqm-close-button-view-dc65b4e3.js +26 -0
- package/dist/esm/sqm-close-button.entry.js +37 -0
- package/dist/esm/sqm-empty_5.entry.js +66 -59
- package/dist/esm/sqm-form-message.entry.js +5 -2
- package/dist/esm/sqm-graphql-client-provider.entry.js +5 -6
- package/dist/esm/sqm-header-logo.entry.js +4 -4
- package/dist/esm/sqm-instant-access-registration.entry.js +154 -0
- package/dist/esm/sqm-leaderboard-rank.entry.js +18 -19
- package/dist/esm/sqm-logout-current-user-view-2d740794.js +35 -0
- package/dist/esm/sqm-logout-current-user.entry.js +58 -0
- package/dist/esm/{sqm-navigation-sidebar-item-view-6f909ba7.js → sqm-navigation-sidebar-item-view-4b0f2987.js} +4 -4
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +4 -5
- package/dist/esm/{sqm-navigation-sidebar-view-06a9d083.js → sqm-navigation-sidebar-view-414bcb19.js} +143 -143
- package/dist/esm/sqm-navigation-sidebar.entry.js +4 -5
- package/dist/esm/sqm-password-field.entry.js +15 -16
- package/dist/esm/sqm-popup-container.entry.js +7 -8
- package/dist/esm/{sqm-portal-container-view-2307476f.js → sqm-portal-container-view-ab89c6cc.js} +8 -7
- package/dist/esm/{sqm-portal-email-verification-view-edb82534.js → sqm-portal-email-verification-view-14670815.js} +9 -9
- package/dist/esm/sqm-portal-email-verification.entry.js +16 -17
- package/dist/esm/{sqm-portal-forgot-password-view-5bcdabac.js → sqm-portal-forgot-password-view-41afcace.js} +9 -9
- package/dist/esm/sqm-portal-forgot-password.entry.js +13 -14
- package/dist/esm/sqm-portal-logout.entry.js +4 -5
- package/dist/esm/{sqm-portal-profile-view-5e35bbe0.js → sqm-portal-profile-view-b23618f2.js} +3 -3
- package/dist/esm/sqm-portal-profile.entry.js +48 -49
- package/dist/esm/sqm-portal-protected-route.entry.js +9 -10
- package/dist/esm/sqm-portal-registration-form.entry.js +51 -52
- package/dist/esm/{sqm-portal-reset-password-view-aebadea5.js → sqm-portal-reset-password-view-0df781f6.js} +8 -8
- package/dist/esm/sqm-portal-reset-password.entry.js +18 -19
- package/dist/esm/{sqm-portal-verify-email-view-4ba9cbb9.js → sqm-portal-verify-email-view-1db4fae6.js} +10 -10
- package/dist/esm/sqm-portal-verify-email.entry.js +11 -12
- package/dist/esm/sqm-referral-table_11.entry.js +40 -41
- package/dist/esm/sqm-referred-registration.entry.js +156 -0
- package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +2 -2
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +4 -5
- package/dist/esm/sqm-rewards-table_9.entry.js +140 -141
- package/dist/esm/sqm-stencilbook.entry.js +6318 -5819
- package/dist/esm/sqm-tab.entry.js +3 -4
- package/dist/esm/sqm-tabs.entry.js +9 -10
- package/dist/esm/{sqm-text-span-view-f1cacc75.js → sqm-text-span-view-8d140661.js} +8 -8
- package/dist/esm/sqm-text-span.entry.js +2 -2
- package/dist/esm/{stencil-hooks.module-b48b45ec.js → stencil-hooks.module-14b87f98.js} +1 -1
- package/dist/esm/{useChildElements-79be4145.js → useChildElements-debfb941.js} +3 -3
- package/dist/esm/useInstantAccessRegistration-ba1c6d6f.js +85 -0
- package/dist/esm/{useReferralTable-5c18f7c5.js → useReferralTable-c0e50753.js} +192 -192
- package/dist/esm/{useRegistrationFormState-6ce2e16f.js → useRegistrationFormState-85cc12ac.js} +3 -3
- package/dist/esm-es5/GenericTableView-266126f9.js +1 -0
- package/dist/esm-es5/ShadowViewAddon-5b06502d.js +1 -0
- package/dist/esm-es5/email-registration-view-0a11e959.js +1 -0
- package/dist/esm-es5/{global-27ee1626.js → global-9a9bd884.js} +2 -2
- package/dist/esm-es5/index.module-f6aa21b2.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{luxon-1e38d7f1.js → luxon-f01e85fe.js} +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/{re-render-695ddbbd.js → re-render-8acb41bc.js} +1 -1
- package/dist/esm-es5/sqm-asset-card-view-9d93fbdd.js +1 -0
- package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_39.entry.js +1 -0
- package/dist/esm-es5/sqm-close-button-view-dc65b4e3.js +1 -0
- package/dist/esm-es5/sqm-close-button.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-instant-access-registration.entry.js +1 -0
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-logout-current-user-view-2d740794.js +1 -0
- package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -0
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-4b0f2987.js +1 -0
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/{sqm-navigation-sidebar-view-06a9d083.js → sqm-navigation-sidebar-view-414bcb19.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-popup-container.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-container-view-ab89c6cc.js +1 -0
- package/dist/esm-es5/{sqm-portal-email-verification-view-edb82534.js → sqm-portal-email-verification-view-14670815.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password-view-41afcace.js +1 -0
- 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-b23618f2.js +1 -0
- 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-aebadea5.js → sqm-portal-reset-password-view-0df781f6.js} +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-verify-email-view-1db4fae6.js +1 -0
- package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-referred-registration.entry.js +1 -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-f1cacc75.js → sqm-text-span-view-8d140661.js} +1 -1
- package/dist/esm-es5/sqm-text-span.entry.js +1 -1
- package/dist/esm-es5/{stencil-hooks.module-b48b45ec.js → stencil-hooks.module-14b87f98.js} +1 -1
- package/dist/esm-es5/useChildElements-debfb941.js +1 -0
- package/dist/esm-es5/useInstantAccessRegistration-ba1c6d6f.js +1 -0
- package/dist/esm-es5/{useReferralTable-5c18f7c5.js → useReferralTable-c0e50753.js} +1 -1
- package/dist/esm-es5/useRegistrationFormState-85cc12ac.js +1 -0
- package/dist/mint-components/global/styles.ts +735 -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-0076de9e.js +1 -0
- package/dist/mint-components/p-00a2d823.system.entry.js +1 -0
- package/dist/mint-components/p-0a4cc64e.system.entry.js +1 -0
- package/dist/mint-components/p-0a524b3a.system.entry.js +1 -0
- package/dist/mint-components/p-0bac2259.js +1 -0
- package/dist/mint-components/p-0bf5a9b8.system.entry.js +1 -0
- package/dist/mint-components/p-0c0406de.system.js +1 -0
- package/dist/mint-components/p-125cc103.system.js +1 -0
- package/dist/mint-components/p-13c5da81.system.entry.js +1 -0
- package/dist/mint-components/p-1431d0cc.js +268 -0
- package/dist/mint-components/p-1437b793.system.js +1 -0
- package/dist/mint-components/p-16394ed3.system.entry.js +1 -0
- package/dist/mint-components/p-18061615.system.js +1 -0
- package/dist/mint-components/p-1b202e9d.system.entry.js +1 -0
- package/dist/mint-components/p-1c9d83b4.entry.js +1 -0
- package/dist/mint-components/p-1ed329cf.js +1 -0
- package/dist/mint-components/p-21194d7a.entry.js +1 -0
- package/dist/mint-components/p-22f2c1a1.system.entry.js +1 -0
- package/dist/mint-components/p-28ab0efa.entry.js +1 -0
- package/dist/mint-components/p-295c7536.js +1 -0
- package/dist/mint-components/p-29edd49c.system.js +1 -0
- package/dist/mint-components/{p-3c189cea.system.js → p-2b6c19e0.system.js} +1 -1
- package/dist/mint-components/p-2bf86715.js +1 -0
- package/dist/mint-components/p-303523a9.system.entry.js +1 -0
- package/dist/mint-components/p-3036cf58.system.js +1 -0
- package/dist/mint-components/p-36c08962.js +1 -0
- package/dist/mint-components/p-372c5ca6.entry.js +1 -0
- package/dist/mint-components/p-382d40fd.entry.js +1 -0
- package/dist/mint-components/{p-b79c0e38.system.js → p-3cc28285.system.js} +1 -1
- package/dist/mint-components/p-3daf7be5.entry.js +1 -0
- package/dist/mint-components/p-3f3608fe.entry.js +1 -0
- package/dist/mint-components/{p-ba307441.entry.js → p-402fb5b6.entry.js} +1 -1
- package/dist/mint-components/p-403d9862.system.entry.js +1 -0
- package/dist/mint-components/p-46be1518.system.js +1 -0
- package/dist/mint-components/p-4abb0a92.entry.js +1 -0
- package/dist/mint-components/p-4d343cd2.system.entry.js +1 -0
- package/dist/mint-components/{p-45374f45.system.js → p-4f775e84.system.js} +1 -1
- package/dist/mint-components/p-538e9ef9.entry.js +1 -0
- package/dist/mint-components/{p-dd23d448.system.js → p-56525896.system.js} +1 -1
- package/dist/mint-components/p-56c0e916.system.entry.js +1 -0
- package/dist/mint-components/p-5bb4983f.entry.js +1 -0
- package/dist/mint-components/p-5cfe6e1a.system.entry.js +1 -0
- package/dist/mint-components/{p-5d9244de.js → p-5d0c9424.js} +1 -1
- package/dist/mint-components/p-5ffee5a0.system.js +1 -0
- package/dist/mint-components/p-63397a65.system.entry.js +1 -0
- package/dist/mint-components/p-694f2307.system.entry.js +1 -0
- package/dist/mint-components/p-69cb3e55.entry.js +1 -0
- package/dist/mint-components/p-6ba4dc68.system.entry.js +1 -0
- package/dist/mint-components/p-6d45b2f8.entry.js +1 -0
- package/dist/mint-components/p-6de3902b.entry.js +1 -0
- package/dist/mint-components/{p-70ccc481.system.js → p-6e4f3741.system.js} +1 -1
- package/dist/mint-components/p-75ddf3ca.js +1 -0
- package/dist/mint-components/{p-1f8706fb.system.js → p-76b5a1e8.system.js} +1 -1
- package/dist/mint-components/{p-0b095d21.js → p-780b5e23.js} +1 -1
- package/dist/mint-components/p-79da7f18.js +1 -0
- package/dist/mint-components/{p-c9a2502c.system.js → p-7a7b1f09.system.js} +1 -1
- package/dist/mint-components/{p-29452204.entry.js → p-806f9b38.entry.js} +2 -2
- package/dist/mint-components/p-8428afbd.system.js +1 -0
- package/dist/mint-components/{p-b23d673e.js → p-84b6349a.js} +4 -4
- package/dist/mint-components/p-87333aca.system.entry.js +1 -0
- package/dist/mint-components/p-8f2e8f25.system.entry.js +1 -0
- package/dist/mint-components/p-8fac996d.js +1 -0
- package/dist/mint-components/{p-ed801cb7.js → p-901f5b80.js} +1 -1
- package/dist/mint-components/p-9165844e.system.js +1 -0
- package/dist/mint-components/p-922578e4.system.js +1 -0
- package/dist/mint-components/p-940dc343.system.js +1 -0
- package/dist/mint-components/p-98d239b4.system.entry.js +1 -0
- package/dist/mint-components/p-9907bc8a.js +1 -0
- package/dist/mint-components/p-9fc8505c.entry.js +1 -0
- package/dist/mint-components/p-a217deee.js +1 -0
- package/dist/mint-components/p-a5e1df21.js +1 -0
- package/dist/mint-components/p-a7f8ee50.system.entry.js +1 -0
- package/dist/mint-components/p-a8364b08.entry.js +187 -0
- package/dist/mint-components/p-a9898f93.system.entry.js +1 -0
- package/dist/mint-components/p-b47a7d5b.system.entry.js +1 -0
- package/dist/mint-components/{p-2850c602.system.entry.js → p-b668aa0b.system.entry.js} +1 -1
- package/dist/mint-components/{p-14c9767e.system.entry.js → p-bc0ce79f.system.entry.js} +1 -1
- package/dist/mint-components/p-bf5b269f.entry.js +1 -0
- package/dist/mint-components/{p-7ceff8de.system.js → p-c06048c9.system.js} +1 -1
- package/dist/mint-components/p-c29211d1.system.js +1 -0
- package/dist/mint-components/{p-47ce2382.js → p-c3f6e35f.js} +2 -2
- package/dist/mint-components/p-c5577dd7.system.js +1 -0
- package/dist/mint-components/p-c7199d22.system.js +1 -0
- package/dist/mint-components/p-c8d74710.entry.js +1 -0
- package/dist/mint-components/p-ca39fffb.entry.js +1 -0
- package/dist/mint-components/p-cb900cb6.system.js +1 -0
- package/dist/mint-components/p-ced2f261.system.entry.js +1 -0
- package/dist/mint-components/p-ced36beb.system.entry.js +1 -0
- package/dist/mint-components/p-cf893ebe.system.entry.js +1 -0
- package/dist/mint-components/p-d1b5d727.js +1 -0
- package/dist/mint-components/p-d248e6b6.entry.js +1 -0
- package/dist/mint-components/p-d3373b3b.entry.js +1 -0
- package/dist/mint-components/{p-d1a74f7e.js → p-d38cbe0d.js} +1 -1
- package/dist/mint-components/{p-273bba0e.entry.js → p-d520f9ae.entry.js} +2 -2
- package/dist/mint-components/{p-25254dd1.js → p-d576140e.js} +1 -1
- package/dist/mint-components/p-de04af3c.entry.js +9 -0
- package/dist/mint-components/{p-723f3d4f.entry.js → p-de5f644f.entry.js} +2 -2
- package/dist/mint-components/{p-d54de97b.system.entry.js → p-e341e670.system.entry.js} +1 -1
- package/dist/mint-components/p-e3cd1721.entry.js +1 -0
- package/dist/mint-components/p-e704842c.js +1 -0
- package/dist/mint-components/p-e7ede162.system.entry.js +1 -0
- package/dist/mint-components/p-e92f548d.entry.js +1 -0
- package/dist/mint-components/p-ee469a91.entry.js +1 -0
- package/dist/mint-components/{p-2f8e0a8a.js → p-efd129de.js} +1 -1
- package/dist/mint-components/p-f1db8d9d.system.entry.js +1 -0
- package/dist/mint-components/p-f2cc2d1f.entry.js +1 -0
- package/dist/mint-components/{p-ddf15193.entry.js → p-f82bb604.entry.js} +1 -1
- package/dist/mint-components/p-fb93c962.js +1 -0
- package/dist/mint-components/{p-589ec33b.system.js → p-fef3786f.system.js} +2 -2
- package/dist/mint-components/p-ff233315.entry.js +1 -0
- package/dist/mint-components/{p-7d964c43.system.entry.js → p-ff3b0ece.system.entry.js} +1 -1
- package/dist/types/components/sqm-asset-card/sqm-asset-card.d.ts +2 -2
- package/dist/types/components/sqm-big-stat/sqm-big-stat.d.ts +2 -2
- package/dist/types/components/sqm-brand/sqm-brand.d.ts +3 -3
- package/dist/types/components/sqm-card-feed/sqm-card-feed.d.ts +2 -2
- package/dist/types/components/sqm-checkbox-field/sqm-checkbox-field.d.ts +5 -5
- package/dist/types/components/sqm-close-button/CloseButton.stories.d.ts +8 -0
- package/dist/types/components/sqm-close-button/sqm-close-button-view.d.ts +5 -0
- package/dist/types/components/sqm-close-button/sqm-close-button.d.ts +14 -0
- package/dist/types/components/sqm-coupon-code/CouponCode.stories.d.ts +25 -0
- package/dist/types/components/sqm-coupon-code/sqm-coupon-code-view.d.ts +6 -0
- package/dist/types/components/sqm-coupon-code/sqm-coupon-code.d.ts +116 -0
- package/dist/types/components/sqm-coupon-code/useCouponCode.d.ts +15 -0
- package/dist/types/components/sqm-divided-layout/sqm-divided-layout.d.ts +1 -1
- package/dist/types/components/sqm-dropdown-field/sqm-dropdown-field.d.ts +3 -3
- package/dist/types/components/sqm-edit-profile/sqm-edit-profile.d.ts +7 -7
- package/dist/types/components/sqm-form-message/FormMessage.stories.d.ts +1 -0
- package/dist/types/components/sqm-form-message/sqm-form-message.d.ts +4 -2
- package/dist/types/components/sqm-header-logo/sqm-header-logo.d.ts +3 -3
- package/dist/types/components/sqm-hero/Hero.stories.d.ts +2 -0
- package/dist/types/components/sqm-hero/sqm-hero-view.d.ts +1 -0
- package/dist/types/components/sqm-hero/sqm-hero.d.ts +12 -5
- package/dist/types/components/sqm-hero-image/sqm-hero-image.d.ts +13 -13
- package/dist/types/components/sqm-image/sqm-image.d.ts +4 -4
- package/dist/types/components/sqm-input-field/sqm-input-field.d.ts +4 -4
- package/dist/types/components/sqm-instant-access-registration/sqm-instant-access-registration.d.ts +111 -0
- package/dist/types/components/sqm-instant-access-registration/useInstantAccessRegistration.d.ts +11 -0
- package/dist/types/components/sqm-leaderboard/sqm-leaderboard.d.ts +10 -10
- package/dist/types/components/sqm-leaderboard-rank/sqm-leaderboard-rank.d.ts +5 -5
- package/dist/types/components/sqm-link-button/LinkButton.stories.d.ts +9 -0
- package/dist/types/components/sqm-link-button/sqm-link-button-view.d.ts +5 -0
- package/dist/types/components/sqm-link-button/sqm-link-button.d.ts +24 -0
- package/dist/types/components/sqm-logout-current-user/LogoutCurrentUser.stories.d.ts +8 -0
- package/dist/types/components/sqm-logout-current-user/sqm-logout-current-user-view.d.ts +6 -0
- package/dist/types/components/sqm-logout-current-user/sqm-logout-current-user.d.ts +28 -0
- package/dist/types/components/sqm-logout-current-user/useLogoutCurrentUser.d.ts +3 -0
- package/dist/types/components/sqm-name-fields/sqm-name-fields.d.ts +2 -2
- package/dist/types/components/sqm-navigation-menu/sqm-navigation-menu.d.ts +2 -2
- package/dist/types/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.d.ts +1 -1
- package/dist/types/components/sqm-password-field/sqm-password-field.d.ts +2 -2
- package/dist/types/components/sqm-popup-container/sqm-popup-container.d.ts +5 -5
- package/dist/types/components/sqm-portal-change-password/sqm-portal-change-password.d.ts +8 -8
- package/dist/types/components/sqm-portal-container/PortalContainer.stories.d.ts +1 -0
- package/dist/types/components/sqm-portal-container/sqm-portal-container-view.d.ts +1 -0
- package/dist/types/components/sqm-portal-container/sqm-portal-container.d.ts +10 -3
- package/dist/types/components/sqm-portal-email-verification/sqm-portal-email-verification.d.ts +6 -6
- package/dist/types/components/sqm-portal-footer/PortalFooter.stories.d.ts +1 -0
- package/dist/types/components/sqm-portal-footer/sqm-portal-footer-view.d.ts +1 -0
- package/dist/types/components/sqm-portal-footer/sqm-portal-footer.d.ts +20 -12
- package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password.d.ts +6 -6
- package/dist/types/components/sqm-portal-login/sqm-portal-login.d.ts +9 -9
- package/dist/types/components/sqm-portal-logout/sqm-portal-logout.d.ts +2 -1
- package/dist/types/components/sqm-portal-profile/sqm-portal-profile.d.ts +8 -8
- package/dist/types/components/sqm-portal-protected-route/sqm-portal-protected-route.d.ts +3 -3
- package/dist/types/components/sqm-portal-register/sqm-portal-register-view.d.ts +2 -0
- package/dist/types/components/sqm-portal-register/sqm-portal-register.d.ts +40 -12
- package/dist/types/components/sqm-portal-registration-form/sqm-portal-registration-form.d.ts +18 -18
- package/dist/types/components/sqm-portal-reset-password/sqm-portal-reset-password.d.ts +9 -9
- package/dist/types/components/sqm-portal-verify-email/sqm-portal-verify-email.d.ts +2 -2
- package/dist/types/components/sqm-program-explainer/sqm-program-explainer.d.ts +3 -3
- package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step.d.ts +3 -3
- package/dist/types/components/sqm-referral-card/ReferralCard.stories.d.ts +7 -0
- package/dist/types/components/sqm-referral-card/sqm-referral-card-view.d.ts +11 -0
- package/dist/types/components/sqm-referral-card/sqm-referral-card.d.ts +46 -2
- package/dist/types/components/sqm-referral-iframe/sqm-referral-iframe.d.ts +3 -3
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-column.d.ts +1 -1
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-date-column.d.ts +2 -2
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.d.ts +6 -6
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-status-column.d.ts +3 -3
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-user-column.d.ts +3 -3
- package/dist/types/components/sqm-referral-table/sqm-referral-table.d.ts +8 -8
- package/dist/types/components/sqm-referred-registration/sqm-referred-registration.d.ts +111 -0
- package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list.d.ts +25 -25
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.d.ts +2 -2
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.d.ts +1 -1
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.d.ts +4 -4
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.d.ts +6 -6
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.d.ts +6 -6
- package/dist/types/components/sqm-rewards-table/sqm-rewards-table.d.ts +6 -6
- package/dist/types/components/sqm-route/sqm-route.d.ts +1 -1
- package/dist/types/components/sqm-scroll/sqm-scroll.d.ts +7 -7
- package/dist/types/components/sqm-share-button/sqm-share-button.d.ts +12 -12
- package/dist/types/components/sqm-share-code/ShareCode.stories.d.ts +5 -0
- package/dist/types/components/sqm-share-code/sqm-share-code.d.ts +26 -4
- package/dist/types/components/sqm-share-code/useShareCode.d.ts +2 -2
- package/dist/types/components/sqm-share-link/ShareLink.stories.d.ts +5 -0
- package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +27 -5
- package/dist/types/components/sqm-share-link/useShareLink.d.ts +2 -2
- package/dist/types/components/sqm-stat-container/sqm-stat-container.d.ts +1 -1
- package/dist/types/components/sqm-tab/sqm-tab.d.ts +1 -1
- package/dist/types/components/sqm-table-cell/sqm-table-cell.d.ts +1 -1
- package/dist/types/components/sqm-tabs/sqm-tabs.d.ts +1 -1
- package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +21 -21
- package/dist/types/components/sqm-timeline/sqm-timeline-entry.d.ts +2 -2
- package/dist/types/components/sqm-titled-section/sqm-titled-section.d.ts +3 -3
- package/dist/types/components/sqm-user-name/sqm-user-name.d.ts +2 -2
- package/dist/types/components/views/EmailRegistration.stories.d.ts +13 -0
- package/dist/types/components/views/copy-text-view.d.ts +16 -0
- package/dist/types/components/views/email-registration-view.d.ts +30 -0
- package/dist/types/components.d.ts +1691 -727
- package/dist/types/global/android.d.ts +7 -7
- package/dist/types/global/styles.d.ts +1 -1
- package/dist/types/saasquatch.d.ts +132 -132
- package/dist/types/stories/Widget.stories.d.ts +36 -0
- package/dist/types/stories/features.d.ts +4 -4
- package/dist/types/stories/templates.d.ts +4 -4
- package/dist/types/utils/DefaultTemplateView.d.ts +1 -0
- package/dist/types/utils/TemplateView.d.ts +1 -0
- 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/cjs/sqm-hero-view-55ae68f9.js +0 -149
- package/dist/cjs/sqm-hero.cjs.entry.js +0 -58
- package/dist/cjs/sqm-portal-footer-view-c249df2d.js +0 -82
- package/dist/cjs/sqm-portal-footer.cjs.entry.js +0 -68
- package/dist/cjs/use-callback-86e9ac75.js +0 -7
- package/dist/collection/components/sqm-share-link/sqm-share-link-view.js +0 -18
- package/dist/esm/sqm-hero-view-fa98c30f.js +0 -147
- package/dist/esm/sqm-hero.entry.js +0 -54
- package/dist/esm/sqm-portal-footer-view-ab195d54.js +0 -79
- package/dist/esm/sqm-portal-footer.entry.js +0 -64
- package/dist/esm/use-callback-051c06c6.js +0 -5
- package/dist/esm-es5/GenericTableView-ce26115f.js +0 -1
- package/dist/esm-es5/ShadowViewAddon-40692fc1.js +0 -1
- package/dist/esm-es5/index.module-3c720e8f.js +0 -1
- package/dist/esm-es5/sqm-asset-card-view-b0f8ef8e.js +0 -1
- package/dist/esm-es5/sqm-big-stat_35.entry.js +0 -1
- package/dist/esm-es5/sqm-hero-view-fa98c30f.js +0 -1
- package/dist/esm-es5/sqm-hero.entry.js +0 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-6f909ba7.js +0 -1
- package/dist/esm-es5/sqm-portal-container-view-2307476f.js +0 -1
- package/dist/esm-es5/sqm-portal-footer-view-ab195d54.js +0 -1
- package/dist/esm-es5/sqm-portal-footer.entry.js +0 -1
- package/dist/esm-es5/sqm-portal-forgot-password-view-5bcdabac.js +0 -1
- package/dist/esm-es5/sqm-portal-profile-view-5e35bbe0.js +0 -1
- package/dist/esm-es5/sqm-portal-verify-email-view-4ba9cbb9.js +0 -1
- package/dist/esm-es5/use-callback-051c06c6.js +0 -1
- package/dist/esm-es5/useChildElements-79be4145.js +0 -1
- package/dist/esm-es5/useRegistrationFormState-6ce2e16f.js +0 -1
- package/dist/mint-components/p-02356211.system.entry.js +0 -1
- package/dist/mint-components/p-03bf73ac.entry.js +0 -1
- package/dist/mint-components/p-0d32da24.js +0 -1
- package/dist/mint-components/p-1450de85.system.entry.js +0 -1
- package/dist/mint-components/p-17c14be1.entry.js +0 -1
- package/dist/mint-components/p-1866c07f.entry.js +0 -1
- package/dist/mint-components/p-1c2c05ea.system.entry.js +0 -1
- package/dist/mint-components/p-1cb208fd.system.js +0 -1
- package/dist/mint-components/p-1d1fac2c.js +0 -1
- package/dist/mint-components/p-1e346217.system.entry.js +0 -1
- package/dist/mint-components/p-1ea19d11.system.entry.js +0 -1
- package/dist/mint-components/p-1f54fd38.system.js +0 -1
- package/dist/mint-components/p-22e95dff.system.entry.js +0 -1
- package/dist/mint-components/p-25482fe1.entry.js +0 -1
- package/dist/mint-components/p-3cd32c6e.system.js +0 -1
- package/dist/mint-components/p-3e8ba80d.entry.js +0 -1
- package/dist/mint-components/p-3f075d21.entry.js +0 -1
- package/dist/mint-components/p-4294a89c.entry.js +0 -1
- package/dist/mint-components/p-45e212a9.entry.js +0 -1
- package/dist/mint-components/p-45ee4fcd.entry.js +0 -1
- package/dist/mint-components/p-482fb4ac.entry.js +0 -1
- package/dist/mint-components/p-4c86095b.js +0 -1
- package/dist/mint-components/p-4d322f3b.system.js +0 -1
- package/dist/mint-components/p-51dd43c0.system.js +0 -1
- package/dist/mint-components/p-53fd1378.entry.js +0 -1
- package/dist/mint-components/p-5a8866c0.system.entry.js +0 -1
- package/dist/mint-components/p-5fb4fe4a.js +0 -1
- package/dist/mint-components/p-668fb3d2.system.entry.js +0 -1
- package/dist/mint-components/p-66a393ef.js +0 -1
- package/dist/mint-components/p-68620baa.system.entry.js +0 -1
- package/dist/mint-components/p-6b8b7dc0.system.js +0 -1
- package/dist/mint-components/p-6db612cd.entry.js +0 -1
- package/dist/mint-components/p-6dd27a5e.js +0 -1
- package/dist/mint-components/p-6eb41f14.system.entry.js +0 -1
- package/dist/mint-components/p-6f9f5609.js +0 -1
- package/dist/mint-components/p-707e7a2e.system.entry.js +0 -1
- package/dist/mint-components/p-727e4538.system.entry.js +0 -1
- package/dist/mint-components/p-72b166c9.system.entry.js +0 -1
- package/dist/mint-components/p-75bcbf34.entry.js +0 -1
- package/dist/mint-components/p-78651bde.entry.js +0 -1
- package/dist/mint-components/p-7a539b20.entry.js +0 -1
- package/dist/mint-components/p-80e9d337.entry.js +0 -9
- package/dist/mint-components/p-87221acc.system.entry.js +0 -1
- package/dist/mint-components/p-8874f2c4.js +0 -268
- package/dist/mint-components/p-88bef048.system.js +0 -1
- package/dist/mint-components/p-895858d0.entry.js +0 -1
- package/dist/mint-components/p-8b422807.entry.js +0 -1
- package/dist/mint-components/p-8ffaf231.system.entry.js +0 -1
- package/dist/mint-components/p-91dee224.system.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-98e0ea41.system.entry.js +0 -1
- package/dist/mint-components/p-99b74c6a.entry.js +0 -159
- package/dist/mint-components/p-99c241ef.js +0 -1
- package/dist/mint-components/p-9e16b967.entry.js +0 -1
- package/dist/mint-components/p-9e20ddfc.entry.js +0 -1
- package/dist/mint-components/p-9fa34993.system.entry.js +0 -1
- package/dist/mint-components/p-a421f44e.system.js +0 -1
- package/dist/mint-components/p-a46c0d32.js +0 -1
- package/dist/mint-components/p-aaa67e65.system.entry.js +0 -1
- package/dist/mint-components/p-afe80d73.system.js +0 -1
- package/dist/mint-components/p-b3169627.system.js +0 -1
- package/dist/mint-components/p-b5a64626.js +0 -1
- package/dist/mint-components/p-bef0a1f4.system.js +0 -1
- package/dist/mint-components/p-c3d4bd17.entry.js +0 -1
- package/dist/mint-components/p-c4fc0601.system.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-d027de63.entry.js +0 -1
- package/dist/mint-components/p-d1d42507.system.entry.js +0 -1
- package/dist/mint-components/p-d3ceb986.js +0 -1
- package/dist/mint-components/p-dd7ddc3a.system.entry.js +0 -1
- package/dist/mint-components/p-e018edb8.system.js +0 -1
- package/dist/mint-components/p-e6f5ccc0.entry.js +0 -1
- package/dist/mint-components/p-e7548e13.system.entry.js +0 -1
- package/dist/mint-components/p-ec8608b9.system.entry.js +0 -1
- package/dist/mint-components/p-f2e8bf4c.system.entry.js +0 -1
- package/dist/mint-components/p-f37b3375.system.entry.js +0 -1
- package/dist/mint-components/p-f66b4b3a.js +0 -1
- package/dist/types/components/sqm-share-link/sqm-share-link-view.d.ts +0 -8
|
@@ -4,22 +4,21 @@ 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-
|
|
8
|
-
const
|
|
9
|
-
const index_module = require('./index.module-c6626247.js');
|
|
7
|
+
const global = require('./global-e0036ac2.js');
|
|
8
|
+
const index_module = require('./index.module-e67cc994.js');
|
|
10
9
|
const jsonpointer = require('./jsonpointer-11327262.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-
|
|
13
|
+
const reRender = require('./re-render-86f5c1d6.js');
|
|
14
|
+
const useChildElements = require('./useChildElements-8627c9be.js');
|
|
16
15
|
require('./luxon-53e983a6.js');
|
|
17
16
|
const utils = require('./utils-6847bc06.js');
|
|
18
|
-
require('./sqm-text-span-view-
|
|
17
|
+
require('./sqm-text-span-view-e1cd9bd3.js');
|
|
18
|
+
const useRegistrationFormState = require('./useRegistrationFormState-7b8b58e4.js');
|
|
19
19
|
const AsYouType = require('./AsYouType-6788393a.js');
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
require('./sqm-portal-container-view-5beae29c.js');
|
|
20
|
+
const ShadowViewAddon = require('./ShadowViewAddon-8be973fa.js');
|
|
21
|
+
require('./sqm-portal-container-view-5fb2ad49.js');
|
|
23
22
|
|
|
24
23
|
const BigStat = class {
|
|
25
24
|
constructor(hostRef) {
|
|
@@ -27,7 +26,7 @@ const BigStat = class {
|
|
|
27
26
|
/**
|
|
28
27
|
* Controls the order of the stat value & description column
|
|
29
28
|
*
|
|
30
|
-
* @uiName Flex
|
|
29
|
+
* @uiName Flex reverse
|
|
31
30
|
* @default
|
|
32
31
|
*/
|
|
33
32
|
this.flexReverse = false;
|
|
@@ -38,7 +37,7 @@ const BigStat = class {
|
|
|
38
37
|
render() {
|
|
39
38
|
var _a;
|
|
40
39
|
const { props, label } = index_module.isDemo() ? ShadowViewAddon.useDemoBigStat(this) : ShadowViewAddon.useBigStat(this);
|
|
41
|
-
const host = index_module.
|
|
40
|
+
const host = index_module.V();
|
|
42
41
|
const hasLabel = !!((_a = host.innerHTML) === null || _a === void 0 ? void 0 : _a.trim());
|
|
43
42
|
const labelSlot = index.h("slot", { name: "label" }, hasLabel ? index.h("slot", null) : label);
|
|
44
43
|
return index.h(ShadowViewAddon.BigStatView, Object.assign({}, props, { labelSlot: labelSlot }));
|
|
@@ -89,27 +88,27 @@ const BrandComponent = class {
|
|
|
89
88
|
return () => document.head.removeChild(sheet);
|
|
90
89
|
}, [sanitizedFont]);
|
|
91
90
|
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);
|
|
91
|
+
return (index.h(index.Host, null, index.h("style", null, `
|
|
92
|
+
|
|
93
|
+
:host{
|
|
94
|
+
display: contents;
|
|
95
|
+
}
|
|
96
|
+
/*
|
|
97
|
+
Selects any element placed inside a slot
|
|
98
|
+
- resets css variable inheritence for fonts
|
|
99
|
+
|
|
100
|
+
*/
|
|
101
|
+
::slotted(*) {
|
|
102
|
+
--sl-font-sans: "${font}", arial;
|
|
103
|
+
--sl-input-font-family: "${font}", arial;
|
|
104
|
+
--sl-tooltip-font-family: "${font}", arial;
|
|
105
|
+
font-family: "${font}", arial;
|
|
106
|
+
|
|
107
|
+
${css}
|
|
108
|
+
|
|
109
|
+
--sl-focus-ring-color-primary: var(--sl-color-primary-100);
|
|
110
|
+
--sl-input-border-color-focus: var(--sl-color-primary-500);
|
|
111
|
+
--sl-color-primary-hue: var(--sl-color-primary-500);
|
|
113
112
|
}`), index.h("slot", null)));
|
|
114
113
|
}
|
|
115
114
|
};
|
|
@@ -119,11 +118,11 @@ const CardFeed = class {
|
|
|
119
118
|
index.registerInstance(this, hostRef);
|
|
120
119
|
this.ignored = true;
|
|
121
120
|
/**
|
|
122
|
-
* @uiName Card
|
|
121
|
+
* @uiName Card width
|
|
123
122
|
*/
|
|
124
123
|
this.width = 347;
|
|
125
124
|
/**
|
|
126
|
-
* @uiName Column
|
|
125
|
+
* @uiName Column gap
|
|
127
126
|
* @uiType number
|
|
128
127
|
*/
|
|
129
128
|
this.gap = 24;
|
|
@@ -159,7 +158,7 @@ const styleString = sheet.toString();
|
|
|
159
158
|
function RequiredPropsError({ missingProps, heading = "There was a problem loading this section", subheading = "There was a technical problem that prevented this section from loading. Please contact us with the link to this page.", description = "Error occured while loading <{tagName}>. Values for the following attributes are missing:", }, children) {
|
|
160
159
|
if (!missingProps)
|
|
161
160
|
return false;
|
|
162
|
-
const host = index_module.
|
|
161
|
+
const host = index_module.V();
|
|
163
162
|
const [detailsOpen, setDetailsOpen] = stencilHooks_module.useState(false);
|
|
164
163
|
return (index.h("sl-alert", { type: "danger", open: true },
|
|
165
164
|
index.h("style", { type: "text/css" }, styleString),
|
|
@@ -213,22 +212,22 @@ const CheckboxField = class {
|
|
|
213
212
|
index.registerInstance(this, hostRef);
|
|
214
213
|
this.ignored = true;
|
|
215
214
|
/**
|
|
216
|
-
* @uiName Checkbox
|
|
215
|
+
* @uiName Checkbox label
|
|
217
216
|
* @uiWidget textArea
|
|
218
217
|
*/
|
|
219
218
|
this.checkboxLabel = "By signing up you agree to the {labelLink}";
|
|
220
219
|
/**
|
|
221
220
|
* Used with link text if the checkbox label contains {labelLink}
|
|
222
221
|
*
|
|
223
|
-
* @uiName Checkbox
|
|
222
|
+
* @uiName Checkbox label link
|
|
224
223
|
*/
|
|
225
224
|
this.checkboxLabelLink = "https://example.com";
|
|
226
225
|
/**
|
|
227
|
-
* @uiName Checkbox
|
|
226
|
+
* @uiName Checkbox label link lext
|
|
228
227
|
*/
|
|
229
228
|
this.checkboxLabelLinkText = "Terms and Conditions";
|
|
230
229
|
/**
|
|
231
|
-
* @uiName Unchecked
|
|
230
|
+
* @uiName Unchecked error message
|
|
232
231
|
*/
|
|
233
232
|
this.errorMessage = "Must be checked";
|
|
234
233
|
/**
|
|
@@ -269,6 +268,258 @@ function useCheckboxFieldDemo(props) {
|
|
|
269
268
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
270
269
|
}
|
|
271
270
|
|
|
271
|
+
const FuelTankRewardsQuery = index_module.dist.gql `
|
|
272
|
+
query fuelTankRewardsQuery($programId: ID!) {
|
|
273
|
+
user: viewer {
|
|
274
|
+
... on User {
|
|
275
|
+
instantAccessRewards(
|
|
276
|
+
filter: { type_eq: FUELTANK, programId_eq: $programId }
|
|
277
|
+
) {
|
|
278
|
+
data {
|
|
279
|
+
fuelTankCode
|
|
280
|
+
fuelTankType
|
|
281
|
+
statuses
|
|
282
|
+
dateGiven
|
|
283
|
+
dateExpires
|
|
284
|
+
dateRedeemed
|
|
285
|
+
dateCancelled
|
|
286
|
+
dateScheduledFor
|
|
287
|
+
datePendingForUnhandledError
|
|
288
|
+
}
|
|
289
|
+
count
|
|
290
|
+
totalCount
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
`;
|
|
296
|
+
const WIDGET_ENGAGEMENT_EVENT = index_module.dist.gql `
|
|
297
|
+
mutation loadEvent($eventMeta: UserAnalyticsEvent!) {
|
|
298
|
+
createUserAnalyticsEvent(eventMeta: $eventMeta)
|
|
299
|
+
}
|
|
300
|
+
`;
|
|
301
|
+
function useCouponCode(props) {
|
|
302
|
+
var _a, _b, _c;
|
|
303
|
+
const user = index_module.L();
|
|
304
|
+
const programId = index_module.O();
|
|
305
|
+
const engagementMedium = index_module.T();
|
|
306
|
+
const [sendLoadEvent] = index_module.Ie(WIDGET_ENGAGEMENT_EVENT);
|
|
307
|
+
const { data, loading, refetch, errors } = index_module.mn(FuelTankRewardsQuery, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
308
|
+
const getStatus = (reward) => {
|
|
309
|
+
if (!reward || !reward.statuses)
|
|
310
|
+
return "ERROR";
|
|
311
|
+
const state = reward.statuses[reward.statuses.length - 1];
|
|
312
|
+
if (state === "PENDING" && reward.dateScheduledFor === null)
|
|
313
|
+
return "EMPTY_TANK";
|
|
314
|
+
return state;
|
|
315
|
+
};
|
|
316
|
+
const reward = (_c = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.instantAccessRewards) === null || _b === void 0 ? void 0 : _b.data) === null || _c === void 0 ? void 0 : _c[0];
|
|
317
|
+
const rewardStatus = getStatus(reward);
|
|
318
|
+
const dateAvailable = rewardStatus === "PENDING" && reward.dateScheduledFor
|
|
319
|
+
? new Date(reward.dateScheduledFor).toLocaleDateString("default", {
|
|
320
|
+
day: "numeric",
|
|
321
|
+
month: "long",
|
|
322
|
+
year: "numeric",
|
|
323
|
+
})
|
|
324
|
+
: undefined;
|
|
325
|
+
const copyString = (reward === null || reward === void 0 ? void 0 : reward.fuelTankCode) || "...";
|
|
326
|
+
const [open, setOpen] = stencilHooks_module.useState(false);
|
|
327
|
+
function onClick() {
|
|
328
|
+
// Should well supported: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
|
|
329
|
+
// Only if called from a user-initiated event
|
|
330
|
+
navigator.clipboard.writeText(copyString);
|
|
331
|
+
setOpen(true);
|
|
332
|
+
setTimeout(() => setOpen(false), props.tooltiplifespan);
|
|
333
|
+
sendLoadEvent({
|
|
334
|
+
eventMeta: {
|
|
335
|
+
programId,
|
|
336
|
+
id: user === null || user === void 0 ? void 0 : user.id,
|
|
337
|
+
accountId: user === null || user === void 0 ? void 0 : user.accountId,
|
|
338
|
+
type: "USER_REFERRAL_PROGRAM_ENGAGEMENT_EVENT",
|
|
339
|
+
meta: {
|
|
340
|
+
engagementMedium,
|
|
341
|
+
shareMedium: "DIRECT",
|
|
342
|
+
},
|
|
343
|
+
},
|
|
344
|
+
});
|
|
345
|
+
}
|
|
346
|
+
const getRewardStatusText = (status) => {
|
|
347
|
+
switch (status) {
|
|
348
|
+
case "CANCELLED":
|
|
349
|
+
return props.cancelledErrorText;
|
|
350
|
+
case "EXPIRED":
|
|
351
|
+
return props.expiredErrorText;
|
|
352
|
+
case "EMPTY_TANK":
|
|
353
|
+
return props.fullfillmentErrorText;
|
|
354
|
+
case "PENDING":
|
|
355
|
+
return props.pendingErrorText.replace("{unpendDate}", dateAvailable);
|
|
356
|
+
case "REDEEMED":
|
|
357
|
+
return props.redeemedErrorText;
|
|
358
|
+
case "AVAILABLE":
|
|
359
|
+
return "";
|
|
360
|
+
default:
|
|
361
|
+
return props.genericErrorText;
|
|
362
|
+
}
|
|
363
|
+
};
|
|
364
|
+
const getRewardStatusErrorType = (status) => {
|
|
365
|
+
switch (status) {
|
|
366
|
+
case "EXPIRED":
|
|
367
|
+
case "EMPTY_TANK":
|
|
368
|
+
case "CANCELLED":
|
|
369
|
+
case "ERROR":
|
|
370
|
+
return "warning";
|
|
371
|
+
case "PENDING":
|
|
372
|
+
return "info";
|
|
373
|
+
case "REDEEMED":
|
|
374
|
+
return "success";
|
|
375
|
+
default:
|
|
376
|
+
return;
|
|
377
|
+
}
|
|
378
|
+
};
|
|
379
|
+
const errorText = getRewardStatusText(rewardStatus);
|
|
380
|
+
const errorType = getRewardStatusErrorType(rewardStatus);
|
|
381
|
+
const error = rewardStatus !== "AVAILABLE";
|
|
382
|
+
return {
|
|
383
|
+
...props,
|
|
384
|
+
onClick,
|
|
385
|
+
open,
|
|
386
|
+
copyString,
|
|
387
|
+
error,
|
|
388
|
+
errorText,
|
|
389
|
+
dateAvailable,
|
|
390
|
+
loading,
|
|
391
|
+
errorType,
|
|
392
|
+
};
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
const CouponCode = class {
|
|
396
|
+
constructor(hostRef) {
|
|
397
|
+
index.registerInstance(this, hostRef);
|
|
398
|
+
/**
|
|
399
|
+
* Shown inside a tooltip after someone has successfully copied the link to their clipboard.
|
|
400
|
+
*
|
|
401
|
+
* @uiName Tooltip text
|
|
402
|
+
*/
|
|
403
|
+
this.tooltiptext = "Copied to Clipboard";
|
|
404
|
+
/**
|
|
405
|
+
* The number of milliseconds that the tooltip appears for
|
|
406
|
+
*
|
|
407
|
+
* @uiName Tooltip lifespan
|
|
408
|
+
*/
|
|
409
|
+
this.tooltiplifespan = 1000;
|
|
410
|
+
/**
|
|
411
|
+
* @uiName Coupon code alignment
|
|
412
|
+
* @uiType string
|
|
413
|
+
* @uiEnum ["left", "center", "right"]
|
|
414
|
+
* @uiEnumNames ["Left", "Center", "Right"]
|
|
415
|
+
*/
|
|
416
|
+
this.textAlign = "left";
|
|
417
|
+
/**
|
|
418
|
+
* @uiName Copy button label
|
|
419
|
+
*/
|
|
420
|
+
this.copyButtonLabel = "Copy Coupon";
|
|
421
|
+
/**
|
|
422
|
+
* Set the copy button style and placement.
|
|
423
|
+
*
|
|
424
|
+
* @uiName Style
|
|
425
|
+
* @uiType string
|
|
426
|
+
* @uiEnum ["icon", "button-outside", "button-below"]
|
|
427
|
+
* @uiEnumNames ["Icon", "Button outside", "Button below"]
|
|
428
|
+
*/
|
|
429
|
+
this.buttonStyle = "icon";
|
|
430
|
+
/**
|
|
431
|
+
* @uiName Coupon code label
|
|
432
|
+
*/
|
|
433
|
+
this.couponCodeLabel = "Your coupon code:";
|
|
434
|
+
/**
|
|
435
|
+
* Display this message when the coupon code has been cancelled.
|
|
436
|
+
*
|
|
437
|
+
* @uiWidget textArea
|
|
438
|
+
* @uiName Cancelled code error message
|
|
439
|
+
* @uiGroup Coupon code error
|
|
440
|
+
*/
|
|
441
|
+
this.cancelledErrorText = "This code has been cancelled. Please reach out to the Support team for help resolving this issue.";
|
|
442
|
+
/**
|
|
443
|
+
* Display this message when the coupon code has already been redeemed.
|
|
444
|
+
*
|
|
445
|
+
* @uiWidget textArea
|
|
446
|
+
* @uiName Redeemed code error message
|
|
447
|
+
* @uiGroup Coupon code error
|
|
448
|
+
*/
|
|
449
|
+
this.redeemedErrorText = "Looks like you’ve already redeemed this code.";
|
|
450
|
+
/**
|
|
451
|
+
* Display this message when the coupon code has expired.
|
|
452
|
+
*
|
|
453
|
+
* @uiWidget textArea
|
|
454
|
+
* @uiName Expired code error message
|
|
455
|
+
* @uiGroup Coupon code error
|
|
456
|
+
*/
|
|
457
|
+
this.expiredErrorText = "Looks like this code has expired. Please reach out to the Support team for help resolving this issue.";
|
|
458
|
+
/**
|
|
459
|
+
* Display this message when the code fails to load due to a fulfillment error.
|
|
460
|
+
*
|
|
461
|
+
* @uiWidget textArea
|
|
462
|
+
* @uiName Code fulfillment error message
|
|
463
|
+
* @uiGroup Coupon code error
|
|
464
|
+
*/
|
|
465
|
+
this.fullfillmentErrorText = "We couldn't fetch your code. Please try again later or reach out to the Support team for help resolving this issue.";
|
|
466
|
+
/**
|
|
467
|
+
* Display this message when the coupon code not available yet. Use the ICU message, {unpendDate}, to show the date the code will be available.
|
|
468
|
+
*
|
|
469
|
+
* @uiWidget textArea
|
|
470
|
+
* @uiName Code pending error message
|
|
471
|
+
* @uiGroup Coupon code error
|
|
472
|
+
*/
|
|
473
|
+
this.pendingErrorText = "Your code will be available on {unpendDate}. Mark your calendar and come back then to redeem your reward!";
|
|
474
|
+
/**
|
|
475
|
+
* Display this message when the code fails to load due to an unspecified error.
|
|
476
|
+
*
|
|
477
|
+
* @uiWidget textArea
|
|
478
|
+
* @uiName Code retrieval error message
|
|
479
|
+
* @uiGroup Coupon code error
|
|
480
|
+
*/
|
|
481
|
+
this.genericErrorText = "We couldn't fetch your code. Please try again later or reach out to the Support team for help resolving this issue.";
|
|
482
|
+
/**
|
|
483
|
+
* Display this text when the coupon code can’t be retrieved.
|
|
484
|
+
*
|
|
485
|
+
* @uiName Coupon code placeholder
|
|
486
|
+
* @uiGroup Coupon code error
|
|
487
|
+
*/
|
|
488
|
+
this.couponCodePlaceholder = "...";
|
|
489
|
+
stencilHooks_module.h$1(this);
|
|
490
|
+
}
|
|
491
|
+
disconnectedCallback() { }
|
|
492
|
+
render() {
|
|
493
|
+
const thisProps = utils.getProps(this);
|
|
494
|
+
const props = index_module.isDemo()
|
|
495
|
+
? useDemoCouponCode(thisProps)
|
|
496
|
+
: useCouponCode(thisProps);
|
|
497
|
+
return index.h(ShadowViewAddon.CouponCodeView, Object.assign({}, props));
|
|
498
|
+
}
|
|
499
|
+
};
|
|
500
|
+
function useDemoCouponCode(props) {
|
|
501
|
+
const [open, setOpen] = stencilHooks_module.useState(false);
|
|
502
|
+
const copyString = "THANKSJANE125uv125";
|
|
503
|
+
return cjs.cjs({
|
|
504
|
+
copyString,
|
|
505
|
+
tooltiptext: props.tooltiptext,
|
|
506
|
+
textAlign: props.textAlign,
|
|
507
|
+
buttonStyle: props.buttonStyle,
|
|
508
|
+
copyButtonLabel: props.copyButtonLabel,
|
|
509
|
+
error: false,
|
|
510
|
+
couponCodePlaceholder: props.couponCodePlaceholder,
|
|
511
|
+
couponCodeLabel: props.couponCodeLabel,
|
|
512
|
+
open,
|
|
513
|
+
onClick: () => {
|
|
514
|
+
// Should well supported: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
|
|
515
|
+
// Only if called from a user-initiated event
|
|
516
|
+
navigator.clipboard.writeText(copyString);
|
|
517
|
+
setOpen(true);
|
|
518
|
+
setTimeout(() => setOpen(false), props.tooltiplifespan);
|
|
519
|
+
},
|
|
520
|
+
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
521
|
+
}
|
|
522
|
+
|
|
272
523
|
function DividedLayoutView(props, children) {
|
|
273
524
|
const getBorder = () => {
|
|
274
525
|
if (props.direction === "row") {
|
|
@@ -290,28 +541,28 @@ function DividedLayoutView(props, children) {
|
|
|
290
541
|
},
|
|
291
542
|
},
|
|
292
543
|
};
|
|
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;
|
|
544
|
+
const hostStyle = `
|
|
545
|
+
display: flex;
|
|
546
|
+
flex: 1;
|
|
547
|
+
box-sizing: border-box;
|
|
548
|
+
flex-direction: ${props.direction};
|
|
549
|
+
background-color: var(--sqm-content-background);
|
|
550
|
+
overflow-x: clip;
|
|
300
551
|
${props.direction === "column"
|
|
301
552
|
? "width: 100%; max-width: var(--sqm-portal-main-width);"
|
|
302
|
-
: ""}
|
|
553
|
+
: ""}
|
|
303
554
|
`;
|
|
304
|
-
const vanillaStyle = `
|
|
305
|
-
:host{
|
|
306
|
-
${hostStyle}
|
|
307
|
-
}
|
|
308
|
-
sqm-divided-layout {
|
|
309
|
-
${hostStyle}
|
|
310
|
-
}
|
|
555
|
+
const vanillaStyle = `
|
|
556
|
+
:host{
|
|
557
|
+
${hostStyle}
|
|
558
|
+
}
|
|
559
|
+
sqm-divided-layout {
|
|
560
|
+
${hostStyle}
|
|
561
|
+
}
|
|
311
562
|
`;
|
|
312
563
|
const sheet = JSS.createStyleSheet(style);
|
|
313
564
|
const styleString = sheet.toString();
|
|
314
|
-
return (index.h("div", { class: sheet.classes.LayoutContainer },
|
|
565
|
+
return (index.h("div", { class: sheet.classes.LayoutContainer, part: "sqm-base" },
|
|
315
566
|
index.h("style", { type: "text/css" },
|
|
316
567
|
vanillaStyle,
|
|
317
568
|
styleString),
|
|
@@ -323,7 +574,7 @@ const DividedLayout = class {
|
|
|
323
574
|
index.registerInstance(this, hostRef);
|
|
324
575
|
/**
|
|
325
576
|
* Uses Shorthand CSS border syntax allowing specification of thickness, fill style and color.
|
|
326
|
-
* @uiName Border
|
|
577
|
+
* @uiName Border style
|
|
327
578
|
*/
|
|
328
579
|
this.dividerStyle = "1px solid #EAEAEA";
|
|
329
580
|
stencilHooks_module.h$1(this);
|
|
@@ -348,11 +599,11 @@ const DropdownField = class {
|
|
|
348
599
|
index.registerInstance(this, hostRef);
|
|
349
600
|
this.ignored = true;
|
|
350
601
|
/**
|
|
351
|
-
* @uiName Dropdown
|
|
602
|
+
* @uiName Dropdown label
|
|
352
603
|
*/
|
|
353
604
|
this.dropdownLabel = "Select an option";
|
|
354
605
|
/**
|
|
355
|
-
* @uiName Unselected
|
|
606
|
+
* @uiName Unselected error message
|
|
356
607
|
*/
|
|
357
608
|
this.errorMessage = "Select an option";
|
|
358
609
|
/**
|
|
@@ -391,39 +642,39 @@ function useDropdownFieldDemo(props) {
|
|
|
391
642
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
392
643
|
}
|
|
393
644
|
|
|
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
|
-
}
|
|
645
|
+
const GET_USER = index_module.dist.gql `
|
|
646
|
+
query {
|
|
647
|
+
viewer {
|
|
648
|
+
... on User {
|
|
649
|
+
id
|
|
650
|
+
accountId
|
|
651
|
+
firstName
|
|
652
|
+
lastName
|
|
653
|
+
email
|
|
654
|
+
countryCode
|
|
655
|
+
}
|
|
656
|
+
}
|
|
657
|
+
}
|
|
407
658
|
`;
|
|
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
|
-
}
|
|
659
|
+
const UPSERT_USER = index_module.dist.gql `
|
|
660
|
+
mutation (
|
|
661
|
+
$id: String!
|
|
662
|
+
$accountId: String!
|
|
663
|
+
$firstName: String!
|
|
664
|
+
$lastName: String!
|
|
665
|
+
) {
|
|
666
|
+
upsertUser(
|
|
667
|
+
userInput: {
|
|
668
|
+
id: $id
|
|
669
|
+
accountId: $accountId
|
|
670
|
+
firstName: $firstName
|
|
671
|
+
lastName: $lastName
|
|
672
|
+
}
|
|
673
|
+
) {
|
|
674
|
+
firstName
|
|
675
|
+
lastName
|
|
676
|
+
}
|
|
677
|
+
}
|
|
427
678
|
`;
|
|
428
679
|
// view doesn't tolerate undefined, even when we're loading
|
|
429
680
|
const defaultFormState = {
|
|
@@ -434,13 +685,13 @@ const defaultFormState = {
|
|
|
434
685
|
error: "",
|
|
435
686
|
};
|
|
436
687
|
function useEditProfile(props) {
|
|
437
|
-
const userIdent = index_module.
|
|
688
|
+
const userIdent = index_module.L();
|
|
438
689
|
const [showEdit, setShowEdit] = stencilHooks_module.useState(false);
|
|
439
690
|
const [error, setError] = stencilHooks_module.useState("");
|
|
440
691
|
const [userData, setUserData] = stencilHooks_module.useState(undefined);
|
|
441
692
|
const [formState, setFormState] = stencilHooks_module.useState(defaultFormState);
|
|
442
|
-
const userDataResponse = index_module.
|
|
443
|
-
const [upsertUser, upsertUserResponse] = index_module.
|
|
693
|
+
const userDataResponse = index_module.mn(GET_USER, {}, !(userIdent === null || userIdent === void 0 ? void 0 : userIdent.jwt));
|
|
694
|
+
const [upsertUser, upsertUserResponse] = index_module.Ie(UPSERT_USER);
|
|
444
695
|
stencilHooks_module.useEffect(() => {
|
|
445
696
|
if ((upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.loading) || !showEdit)
|
|
446
697
|
return;
|
|
@@ -615,6 +866,59 @@ function useEditProfileDemo(props) {
|
|
|
615
866
|
}
|
|
616
867
|
EditProfile.style = sqmEditProfileCss;
|
|
617
868
|
|
|
869
|
+
const Hero = class {
|
|
870
|
+
constructor(hostRef) {
|
|
871
|
+
index.registerInstance(this, hostRef);
|
|
872
|
+
/**
|
|
873
|
+
*
|
|
874
|
+
* @uiName Columns
|
|
875
|
+
* @uiEnum [1, 2]
|
|
876
|
+
* @uiEnumNames ["One", "Two"]
|
|
877
|
+
*/
|
|
878
|
+
this.columns = 1;
|
|
879
|
+
/**
|
|
880
|
+
* Minimum height of each column including when they are stacked on mobile
|
|
881
|
+
*
|
|
882
|
+
* @uiName Minimum height (in px)
|
|
883
|
+
*/
|
|
884
|
+
this.minHeight = 200;
|
|
885
|
+
/**
|
|
886
|
+
* Can be an image url, colour or Shoelace variable.
|
|
887
|
+
*
|
|
888
|
+
* @uiName Background
|
|
889
|
+
* @uiWidget Background
|
|
890
|
+
*/
|
|
891
|
+
this.background = "var(--sl-color-gray-50)";
|
|
892
|
+
/**
|
|
893
|
+
* @uiName Padding size
|
|
894
|
+
* @uiEnum ["none", "small", "medium","large"]
|
|
895
|
+
* @uiEnumNames ["None", "Small", "Medium", "Large"]
|
|
896
|
+
*/
|
|
897
|
+
this.paddingSize = "large";
|
|
898
|
+
/**
|
|
899
|
+
* Flexbox wrap direction, accepts wrap or wrap-reverse
|
|
900
|
+
*
|
|
901
|
+
* @uiName Wrap direction
|
|
902
|
+
* @uiEnum ["wrap", "wrap-reverse"]
|
|
903
|
+
* @uiEnumNames ["Wrap", "Wrap Reverse"]
|
|
904
|
+
*/
|
|
905
|
+
this.wrapDirection = "wrap";
|
|
906
|
+
stencilHooks_module.h$1(this);
|
|
907
|
+
}
|
|
908
|
+
disconnectedCallback() { }
|
|
909
|
+
// TODO: Improve empty slot behavior with useChildElements to check for empty slot
|
|
910
|
+
render() {
|
|
911
|
+
const props = {
|
|
912
|
+
states: { ...utils.getProps(this) },
|
|
913
|
+
content: {
|
|
914
|
+
primaryColumn: index.h("slot", null),
|
|
915
|
+
secondaryColumn: index.h("slot", { name: "secondary-column" }),
|
|
916
|
+
},
|
|
917
|
+
};
|
|
918
|
+
return index.h(ShadowViewAddon.HeroView, Object.assign({}, props));
|
|
919
|
+
}
|
|
920
|
+
};
|
|
921
|
+
|
|
618
922
|
function HeroImageView(props, children) {
|
|
619
923
|
const overlay = Boolean((props.header || props.description || props.buttonText) &&
|
|
620
924
|
props.layout === "overlay");
|
|
@@ -719,11 +1023,11 @@ function HeroImageView(props, children) {
|
|
|
719
1023
|
};
|
|
720
1024
|
const sheet = JSS.createStyleSheet(style);
|
|
721
1025
|
const styleString = sheet.toString();
|
|
722
|
-
const vanillaStyle = `
|
|
723
|
-
:host{
|
|
724
|
-
display: block;
|
|
1026
|
+
const vanillaStyle = `
|
|
1027
|
+
:host{
|
|
1028
|
+
display: block;
|
|
725
1029
|
}`;
|
|
726
|
-
return (index.h("div", { class: sheet.classes.Container },
|
|
1030
|
+
return (index.h("div", { class: sheet.classes.Container, part: "sqm-base" },
|
|
727
1031
|
index.h("style", { type: "text/css" },
|
|
728
1032
|
vanillaStyle,
|
|
729
1033
|
styleString),
|
|
@@ -731,7 +1035,7 @@ function HeroImageView(props, children) {
|
|
|
731
1035
|
props.layout === "columns" && ColumnView()));
|
|
732
1036
|
function OverlayView() {
|
|
733
1037
|
return (index.h("div", { class: sheet.classes.Background },
|
|
734
|
-
index.h("div", { class: sheet.classes.Overlay },
|
|
1038
|
+
index.h("div", { class: sheet.classes.Overlay, part: "sqm-overlay" },
|
|
735
1039
|
props.header && (index.h("div", { class: sheet.classes.Header }, props.header)),
|
|
736
1040
|
props.description && (index.h("div", { class: sheet.classes.Description }, props.description)),
|
|
737
1041
|
props.buttonText && (index.h("sl-button", { class: sheet.classes.Button, type: "primary", onClick: () => props.buttonNewTab
|
|
@@ -743,11 +1047,11 @@ function HeroImageView(props, children) {
|
|
|
743
1047
|
return (index.h("div", null,
|
|
744
1048
|
index.h("div", { class: sheet.classes.Column },
|
|
745
1049
|
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
|
|
1050
|
+
index.h("img", { class: sheet.classes.Image, src: props.imageUrl, part: "sqm-columns-image" })),
|
|
1051
|
+
index.h("div", { class: "text-area", part: "sqm-columns-text-area" },
|
|
1052
|
+
props.header && (index.h("div", { class: sheet.classes.Header, part: "sqm-columns-header" }, props.header)),
|
|
1053
|
+
props.description && (index.h("div", { class: sheet.classes.Description, part: "sqm-columns-description" }, props.description)),
|
|
1054
|
+
props.buttonText && (index.h("sl-button", { exportparts: "base: sqm-hero-image-button", class: sheet.classes.Button, type: "primary", onClick: () => props.buttonNewTab
|
|
751
1055
|
? window.open(props.buttonLink)
|
|
752
1056
|
: window.open(props.buttonLink, "_parent") }, props.buttonText))))));
|
|
753
1057
|
}
|
|
@@ -757,49 +1061,49 @@ const HeroImage = class {
|
|
|
757
1061
|
constructor(hostRef) {
|
|
758
1062
|
index.registerInstance(this, hostRef);
|
|
759
1063
|
/**
|
|
760
|
-
* @uiName Overlay
|
|
1064
|
+
* @uiName Overlay opacity
|
|
761
1065
|
*/
|
|
762
1066
|
this.overlayOpacity = "0.75";
|
|
763
1067
|
/**
|
|
764
|
-
* @uiName Image
|
|
1068
|
+
* @uiName Image layout
|
|
765
1069
|
* @uiType string
|
|
766
1070
|
* @uiEnum ["overlay", "columns"]
|
|
767
1071
|
* @uiEnumNames ["Overlay", "Two-column"]
|
|
768
1072
|
*/
|
|
769
1073
|
this.layout = "overlay";
|
|
770
1074
|
/**
|
|
771
|
-
* @uiName Image
|
|
1075
|
+
* @uiName Image percentage
|
|
772
1076
|
* @uiType number
|
|
773
1077
|
*/
|
|
774
1078
|
this.imagePercentage = 50;
|
|
775
1079
|
/**
|
|
776
|
-
* @uiName Image
|
|
1080
|
+
* @uiName Image position
|
|
777
1081
|
* @uiType string
|
|
778
1082
|
* @uiEnum ["left", "center", "right"]
|
|
779
1083
|
* @uiEnumNames ["Left", "Center", "Right"]
|
|
780
1084
|
*/
|
|
781
1085
|
this.imagePos = "center";
|
|
782
1086
|
/**
|
|
783
|
-
* @uiName Image
|
|
1087
|
+
* @uiName Image mobile position
|
|
784
1088
|
* @uiType string
|
|
785
1089
|
* @uiEnum ["top", "bottom"]
|
|
786
1090
|
* @uiEnumNames ["Top", "Bottom"]
|
|
787
1091
|
*/
|
|
788
1092
|
this.imageMobilePos = "top";
|
|
789
1093
|
/**
|
|
790
|
-
* @uiName Open
|
|
1094
|
+
* @uiName Open link in new tab
|
|
791
1095
|
* @default
|
|
792
1096
|
*/
|
|
793
1097
|
this.buttonNewTab = false;
|
|
794
1098
|
/**
|
|
795
|
-
* @uiName Text
|
|
1099
|
+
* @uiName Text padding
|
|
796
1100
|
* @uiType string
|
|
797
1101
|
* @uiEnum ["none", "xxx-small", "xx-small", "x-small", "small", "medium", "large", "x-large", "xx-large", "xxx-large", "xxxx-large"]
|
|
798
1102
|
* @uiEnumNames ["None", "XXX-Small", "XX-Small", "X-Small", "Small", "Medium", "Large", "X-Large", "XX-Large", "XXX-Large", "XXXX-Large"]
|
|
799
1103
|
*/
|
|
800
1104
|
this.paddingText = "xxxx-large";
|
|
801
1105
|
/**
|
|
802
|
-
* @uiName Image
|
|
1106
|
+
* @uiName Image padding
|
|
803
1107
|
* @uiType string
|
|
804
1108
|
* @uiEnum ["none", "xxx-small", "xx-small", "x-small", "small", "medium", "large", "x-large", "xx-large", "xxx-large", "xxxx-large"]
|
|
805
1109
|
* @uiEnumNames ["None", "XXX-Small", "XX-Small", "X-Small", "Small", "Medium", "Large", "X-Large", "XX-Large", "XXX-Large", "XXXX-Large"]
|
|
@@ -840,14 +1144,14 @@ const InputField = class {
|
|
|
840
1144
|
index.registerInstance(this, hostRef);
|
|
841
1145
|
this.ignored = true;
|
|
842
1146
|
/**
|
|
843
|
-
* @uiName Input
|
|
1147
|
+
* @uiName Input type
|
|
844
1148
|
* @uiType string
|
|
845
1149
|
* @uiEnum ["text", "date", "tel"]
|
|
846
1150
|
* @uiEnumNames ["Text", "Date", "Phone Number"]
|
|
847
1151
|
*/
|
|
848
1152
|
this.fieldType = "text";
|
|
849
1153
|
/**
|
|
850
|
-
* @uiName Required
|
|
1154
|
+
* @uiName Required error message
|
|
851
1155
|
*/
|
|
852
1156
|
this.errorMessage = "Cannot be empty";
|
|
853
1157
|
/**
|
|
@@ -883,55 +1187,55 @@ function useInputFieldDemo(props) {
|
|
|
883
1187
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
884
1188
|
}
|
|
885
1189
|
|
|
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
|
-
}
|
|
1190
|
+
const GET_LEADERBOARD = index_module.dist.gql `
|
|
1191
|
+
query (
|
|
1192
|
+
$type: String!
|
|
1193
|
+
$filter: UserLeaderboardFilterInput
|
|
1194
|
+
$locale: RSLocale
|
|
1195
|
+
$limit: Int!
|
|
1196
|
+
) {
|
|
1197
|
+
userLeaderboard(type: $type, filter: $filter) {
|
|
1198
|
+
dateModified
|
|
1199
|
+
rows(limit: $limit) {
|
|
1200
|
+
textValue(locale: $locale)
|
|
1201
|
+
firstName
|
|
1202
|
+
lastInitial
|
|
1203
|
+
rank {
|
|
1204
|
+
rank
|
|
1205
|
+
denseRank
|
|
1206
|
+
rowNumber
|
|
1207
|
+
}
|
|
1208
|
+
}
|
|
1209
|
+
}
|
|
1210
|
+
}
|
|
907
1211
|
`;
|
|
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
|
-
}
|
|
1212
|
+
const GET_RANK = index_module.dist.gql `
|
|
1213
|
+
query (
|
|
1214
|
+
$type: String!
|
|
1215
|
+
$filter: UserLeaderboardFilterInput
|
|
1216
|
+
$locale: RSLocale
|
|
1217
|
+
) {
|
|
1218
|
+
viewer {
|
|
1219
|
+
... on User {
|
|
1220
|
+
firstName
|
|
1221
|
+
lastInitial
|
|
1222
|
+
leaderboardRank(type: $type, filter: $filter) {
|
|
1223
|
+
textValue(locale: $locale)
|
|
1224
|
+
rank
|
|
1225
|
+
denseRank
|
|
1226
|
+
rowNumber
|
|
1227
|
+
}
|
|
1228
|
+
}
|
|
1229
|
+
}
|
|
1230
|
+
}
|
|
927
1231
|
`;
|
|
928
1232
|
function useLeaderboard(props) {
|
|
929
1233
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
930
1234
|
const programIdContext = index_module.O();
|
|
931
1235
|
// Default to context, overriden by props
|
|
932
1236
|
const programId = (_a = props.programId) !== null && _a !== void 0 ? _a : programIdContext;
|
|
933
|
-
const user = index_module.
|
|
934
|
-
const locale = index_module.
|
|
1237
|
+
const user = index_module.L();
|
|
1238
|
+
const locale = index_module.W();
|
|
935
1239
|
const variables = programId
|
|
936
1240
|
? {
|
|
937
1241
|
type: props.leaderboardType,
|
|
@@ -950,8 +1254,8 @@ function useLeaderboard(props) {
|
|
|
950
1254
|
if (props.maxRows > 0) {
|
|
951
1255
|
variables["limit"] = props.maxRows;
|
|
952
1256
|
}
|
|
953
|
-
const { data: leaderboardData, loading: loadingLeaderboard } = index_module.
|
|
954
|
-
const { data: rankData } = index_module.
|
|
1257
|
+
const { data: leaderboardData, loading: loadingLeaderboard } = index_module.mn(GET_LEADERBOARD, variables, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
1258
|
+
const { data: rankData } = index_module.mn(GET_RANK, variables, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
955
1259
|
const leaderboardRows = (_b = leaderboardData === null || leaderboardData === void 0 ? void 0 : leaderboardData.userLeaderboard) === null || _b === void 0 ? void 0 : _b.rows;
|
|
956
1260
|
const flattenedLeaderboard = getFlattenedLeaderboard(leaderboardRows);
|
|
957
1261
|
const sortedLeaderboard = flattenedLeaderboard === null || flattenedLeaderboard === void 0 ? void 0 : flattenedLeaderboard.sort(function (a, b) {
|
|
@@ -1000,19 +1304,19 @@ const Leaderboard = class {
|
|
|
1000
1304
|
/**
|
|
1001
1305
|
* Hide the viewer's leaderboard row if not in the top results.
|
|
1002
1306
|
*
|
|
1003
|
-
* @uiName Hide
|
|
1307
|
+
* @uiName Hide viewing user
|
|
1004
1308
|
* @default
|
|
1005
1309
|
*/
|
|
1006
1310
|
this.hideViewer = false;
|
|
1007
1311
|
/**
|
|
1008
1312
|
* Title displayed for users without names
|
|
1009
|
-
* @uiName Unknown
|
|
1313
|
+
* @uiName Unknown user text
|
|
1010
1314
|
*/
|
|
1011
1315
|
this.anonymousUser = "Anonymous User";
|
|
1012
1316
|
/**
|
|
1013
1317
|
* Control the maximum amount of rows displayed on the leaderboard.
|
|
1014
1318
|
*
|
|
1015
|
-
* @uiName Maximum
|
|
1319
|
+
* @uiName Maximum rows number
|
|
1016
1320
|
*/
|
|
1017
1321
|
this.maxRows = 10;
|
|
1018
1322
|
this.ignored = true;
|
|
@@ -1118,6 +1422,53 @@ function useLeaderboardDemo(props) {
|
|
|
1118
1422
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
1119
1423
|
}
|
|
1120
1424
|
|
|
1425
|
+
const style$1 = {
|
|
1426
|
+
Container: { display: "contents" },
|
|
1427
|
+
Link: {
|
|
1428
|
+
textDecoration: "none",
|
|
1429
|
+
color: "inherit",
|
|
1430
|
+
},
|
|
1431
|
+
};
|
|
1432
|
+
const vanillaStyle = `
|
|
1433
|
+
:host{
|
|
1434
|
+
display: inline;
|
|
1435
|
+
}
|
|
1436
|
+
`;
|
|
1437
|
+
const sheet$1 = JSS.createStyleSheet(style$1);
|
|
1438
|
+
const styleString$1 = sheet$1.toString();
|
|
1439
|
+
function LinkButtonView(props) {
|
|
1440
|
+
const { onClick, buttonText } = props;
|
|
1441
|
+
return (index.h("span", { class: sheet$1.classes.Container, part: "sqm-base" },
|
|
1442
|
+
index.h("style", { type: "text/css" },
|
|
1443
|
+
styleString$1,
|
|
1444
|
+
vanillaStyle),
|
|
1445
|
+
index.h("sl-button", { type: "primary", exportparts: "base: primarybutton-base" },
|
|
1446
|
+
index.h("a", { onClick: onClick, class: sheet$1.classes.Link, part: "sqm-link" }, buttonText))));
|
|
1447
|
+
}
|
|
1448
|
+
|
|
1449
|
+
const LinkButton = class {
|
|
1450
|
+
constructor(hostRef) {
|
|
1451
|
+
index.registerInstance(this, hostRef);
|
|
1452
|
+
/**
|
|
1453
|
+
* @uiName Open link in new tab
|
|
1454
|
+
*/
|
|
1455
|
+
this.openInNewTab = false;
|
|
1456
|
+
/**
|
|
1457
|
+
* @uiName Button text
|
|
1458
|
+
* @uiType string
|
|
1459
|
+
*/
|
|
1460
|
+
this.buttonText = "Click here";
|
|
1461
|
+
}
|
|
1462
|
+
render() {
|
|
1463
|
+
const onClick = () => {
|
|
1464
|
+
const url = this.link;
|
|
1465
|
+
const target = this.openInNewTab ? "_blank" : "_parent";
|
|
1466
|
+
window.open(url, target);
|
|
1467
|
+
};
|
|
1468
|
+
return (index.h(LinkButtonView, Object.assign({}, { ...utils.getProps(this), onClick })));
|
|
1469
|
+
}
|
|
1470
|
+
};
|
|
1471
|
+
|
|
1121
1472
|
function useNameFields(props) {
|
|
1122
1473
|
const registrationFormState = stencilHooks_module.d(useRegistrationFormState.REGISTRATION_FORM_STATE_CONTEXT);
|
|
1123
1474
|
return {
|
|
@@ -1136,11 +1487,11 @@ const NameFields = class {
|
|
|
1136
1487
|
index.registerInstance(this, hostRef);
|
|
1137
1488
|
this.ignored = true;
|
|
1138
1489
|
/**
|
|
1139
|
-
* @uiName First
|
|
1490
|
+
* @uiName First name label
|
|
1140
1491
|
*/
|
|
1141
1492
|
this.firstNameLabel = "First Name";
|
|
1142
1493
|
/**
|
|
1143
|
-
* @uiName Last
|
|
1494
|
+
* @uiName Last name label
|
|
1144
1495
|
*/
|
|
1145
1496
|
this.lastNameLabel = "Last Name";
|
|
1146
1497
|
stencilHooks_module.h$1(this);
|
|
@@ -1178,12 +1529,12 @@ function NavigationMenuView(props) {
|
|
|
1178
1529
|
}
|
|
1179
1530
|
|
|
1180
1531
|
function handleMenu(e) {
|
|
1181
|
-
index_module.
|
|
1532
|
+
index_module.pn.push(e.detail.item.value);
|
|
1182
1533
|
}
|
|
1183
1534
|
function useNavigationMenu(props) {
|
|
1184
1535
|
const ref = stencilHooks_module.useRef();
|
|
1185
|
-
const [, rerender] = index_module.
|
|
1186
|
-
const user = index_module.
|
|
1536
|
+
const [, rerender] = index_module.dn();
|
|
1537
|
+
const user = index_module.L();
|
|
1187
1538
|
stencilHooks_module.useEffect(() => {
|
|
1188
1539
|
var _a;
|
|
1189
1540
|
(_a = ref.current) === null || _a === void 0 ? void 0 : _a.addEventListener("sl-select", (e) => handleMenu(e));
|
|
@@ -1237,11 +1588,11 @@ NavigationMenu.style = sqmNavigationMenuCss;
|
|
|
1237
1588
|
|
|
1238
1589
|
function usePortalChangePassword(props) {
|
|
1239
1590
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
1240
|
-
const [request, { loading, errors, data }] = index_module.
|
|
1591
|
+
const [request, { loading, errors, data }] = index_module.xe();
|
|
1241
1592
|
const [open, setOpen] = stencilHooks_module.useState(false);
|
|
1242
1593
|
const [error, setError] = stencilHooks_module.useState("");
|
|
1243
1594
|
const [success, setSuccess] = stencilHooks_module.useState(false);
|
|
1244
|
-
const user = index_module.
|
|
1595
|
+
const user = index_module.L();
|
|
1245
1596
|
const submit = async (event) => {
|
|
1246
1597
|
var _a, _b;
|
|
1247
1598
|
setSuccess(false);
|
|
@@ -1296,48 +1647,48 @@ const PortalChangePassword = class {
|
|
|
1296
1647
|
index.registerInstance(this, hostRef);
|
|
1297
1648
|
this.ignored = true;
|
|
1298
1649
|
/**
|
|
1299
|
-
* @uiName Change
|
|
1650
|
+
* @uiName Change password modal header
|
|
1300
1651
|
*/
|
|
1301
1652
|
this.modalChangePasswordHeader = "Change Password";
|
|
1302
1653
|
/**
|
|
1303
1654
|
* Found in modal
|
|
1304
1655
|
*
|
|
1305
|
-
* @uiName Cancel
|
|
1656
|
+
* @uiName Cancel button text
|
|
1306
1657
|
*/
|
|
1307
1658
|
this.cancelText = "Cancel";
|
|
1308
1659
|
/**
|
|
1309
1660
|
* Found in modal
|
|
1310
1661
|
*
|
|
1311
|
-
* @uiName Change
|
|
1662
|
+
* @uiName Change password button text
|
|
1312
1663
|
*/
|
|
1313
1664
|
this.changePasswordButtonText = "Change Password";
|
|
1314
1665
|
/**
|
|
1315
1666
|
* Found in modal
|
|
1316
1667
|
*
|
|
1317
|
-
* @uiName New
|
|
1668
|
+
* @uiName New password field label
|
|
1318
1669
|
*/
|
|
1319
1670
|
this.passwordFieldLabel = "New Password";
|
|
1320
1671
|
/**
|
|
1321
1672
|
* Found in modal
|
|
1322
1673
|
*
|
|
1323
|
-
* @uiName Confirm
|
|
1674
|
+
* @uiName Confirm password Label
|
|
1324
1675
|
*/
|
|
1325
1676
|
this.confirmPasswordFieldLabel = "Confirm New Password";
|
|
1326
1677
|
/**
|
|
1327
1678
|
* Successful password change message
|
|
1328
1679
|
*
|
|
1329
|
-
* @uiName Successful
|
|
1680
|
+
* @uiName Successful password change message
|
|
1330
1681
|
* @uiWidget textArea
|
|
1331
1682
|
*/
|
|
1332
1683
|
this.successMessage = "Your password has been updated.";
|
|
1333
1684
|
/**
|
|
1334
1685
|
* Portal change password section header
|
|
1335
1686
|
*
|
|
1336
|
-
* @uiName Change
|
|
1687
|
+
* @uiName Change password header
|
|
1337
1688
|
*/
|
|
1338
1689
|
this.portalChangePasswordHeader = "Password";
|
|
1339
1690
|
/**
|
|
1340
|
-
* @uiName Change
|
|
1691
|
+
* @uiName Change password button text
|
|
1341
1692
|
*/
|
|
1342
1693
|
this.portalChangePasswordButtonText = "Change your password...";
|
|
1343
1694
|
stencilHooks_module.h$1(this);
|
|
@@ -1374,8 +1725,70 @@ function usePortalChangePasswordDemo(props) {
|
|
|
1374
1725
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
1375
1726
|
}
|
|
1376
1727
|
|
|
1728
|
+
const PortalFooter = class {
|
|
1729
|
+
constructor(hostRef) {
|
|
1730
|
+
index.registerInstance(this, hostRef);
|
|
1731
|
+
this.ignored = true;
|
|
1732
|
+
/**
|
|
1733
|
+
* @uiName Hide support message
|
|
1734
|
+
*/
|
|
1735
|
+
this.hideSupportText = false;
|
|
1736
|
+
/**
|
|
1737
|
+
* @uiName Support email
|
|
1738
|
+
*/
|
|
1739
|
+
this.supportEmail = "support@example.com";
|
|
1740
|
+
/**
|
|
1741
|
+
* @uiName Support message
|
|
1742
|
+
* @uiWidget textArea
|
|
1743
|
+
*/
|
|
1744
|
+
this.supportText = "For program support, contact {email}";
|
|
1745
|
+
/**
|
|
1746
|
+
* @uiName Hide powered by SaaSquatch
|
|
1747
|
+
*/
|
|
1748
|
+
this.hidePoweredBy = false;
|
|
1749
|
+
/**
|
|
1750
|
+
* @uiName Powered By link
|
|
1751
|
+
*/
|
|
1752
|
+
this.poweredByLink = "https://www.saasquatch.com/?utm_source=app&utm_medium=user-widget&utm_campaign=referral-widget";
|
|
1753
|
+
/**
|
|
1754
|
+
* @uiName Top padding
|
|
1755
|
+
* @uiGroup Padding
|
|
1756
|
+
* @uiEnum ["none", "xxx-small", "xx-small", "x-small", "small", "medium", "large", "x-large", "xx-large", "xxx-large", "xxxx-large"]
|
|
1757
|
+
* @uiEnumNames ["None", "XXX-Small", "XX-Small", "X-Small", "Small", "Medium", "Large", "X-Large", "XX-Large", "XXX-Large", "XXXX-Large"]
|
|
1758
|
+
*/
|
|
1759
|
+
this.paddingTop = "large";
|
|
1760
|
+
/**
|
|
1761
|
+
* @uiName Right padding
|
|
1762
|
+
* @uiGroup Padding
|
|
1763
|
+
* @uiEnum ["none", "xxx-small", "xx-small", "x-small", "small", "medium", "large", "x-large", "xx-large", "xxx-large", "xxxx-large"]
|
|
1764
|
+
* @uiEnumNames ["None", "XXX-Small", "XX-Small", "X-Small", "Small", "Medium", "Large", "X-Large", "XX-Large", "XXX-Large", "XXXX-Large"]
|
|
1765
|
+
*/
|
|
1766
|
+
this.paddingRight = "large";
|
|
1767
|
+
/**
|
|
1768
|
+
* @uiName Bottom padding
|
|
1769
|
+
* @uiGroup Padding
|
|
1770
|
+
* @uiEnum ["none", "xxx-small", "xx-small", "x-small", "small", "medium", "large", "x-large", "xx-large", "xxx-large", "xxxx-large"]
|
|
1771
|
+
* @uiEnumNames ["None", "XXX-Small", "XX-Small", "X-Small", "Small", "Medium", "Large", "X-Large", "XX-Large", "XXX-Large", "XXXX-Large"]
|
|
1772
|
+
*/
|
|
1773
|
+
this.paddingBottom = "large";
|
|
1774
|
+
/**
|
|
1775
|
+
* @uiName Left padding
|
|
1776
|
+
* @uiGroup Padding
|
|
1777
|
+
* @uiEnum ["none", "xxx-small", "xx-small", "x-small", "small", "medium", "large", "x-large", "xx-large", "xxx-large", "xxxx-large"]
|
|
1778
|
+
* @uiEnumNames ["None", "XXX-Small", "XX-Small", "X-Small", "Small", "Medium", "Large", "X-Large", "XX-Large", "XXX-Large", "XXXX-Large"]
|
|
1779
|
+
*/
|
|
1780
|
+
this.paddingLeft = "large";
|
|
1781
|
+
stencilHooks_module.h$1(this);
|
|
1782
|
+
}
|
|
1783
|
+
disconnectedCallback() { }
|
|
1784
|
+
render() {
|
|
1785
|
+
return index.h(ShadowViewAddon.PortalFooterView, Object.assign({}, utils.getProps(this)));
|
|
1786
|
+
}
|
|
1787
|
+
static get assetsDirs() { return ["../../assets"]; }
|
|
1788
|
+
};
|
|
1789
|
+
|
|
1377
1790
|
function usePortalFrame(footerContent, headerContent) {
|
|
1378
|
-
const [, rerender] = index_module.
|
|
1791
|
+
const [, rerender] = index_module.dn();
|
|
1379
1792
|
return {
|
|
1380
1793
|
data: {
|
|
1381
1794
|
footer: footerContent,
|
|
@@ -1425,9 +1838,9 @@ function usePortalFrameDemo(footerContent, headerContent, props) {
|
|
|
1425
1838
|
|
|
1426
1839
|
function usePortalLogin(props) {
|
|
1427
1840
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
1428
|
-
const [request, { loading, errors, data }] = index_module.
|
|
1841
|
+
const [request, { loading, errors, data }] = index_module.Se();
|
|
1429
1842
|
const [error, setError] = stencilHooks_module.useState("");
|
|
1430
|
-
const urlParams = new URLSearchParams(index_module.
|
|
1843
|
+
const urlParams = new URLSearchParams(index_module.pn.location.search);
|
|
1431
1844
|
const nextPageOverride = urlParams.get("nextPage");
|
|
1432
1845
|
const submit = async (event) => {
|
|
1433
1846
|
var _a, _b;
|
|
@@ -1446,7 +1859,7 @@ function usePortalLogin(props) {
|
|
|
1446
1859
|
if ((_b = result.authenticateManagedIdentityWithEmailAndPassword) === null || _b === void 0 ? void 0 : _b.token) {
|
|
1447
1860
|
urlParams.delete("nextPage");
|
|
1448
1861
|
const url = utils.sanitizeUrlPath(nextPageOverride || props.nextPage);
|
|
1449
|
-
index_module.
|
|
1862
|
+
index_module.pn.push(url.href);
|
|
1450
1863
|
}
|
|
1451
1864
|
};
|
|
1452
1865
|
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) ||
|
|
@@ -1471,44 +1884,44 @@ const PortalLogin = class {
|
|
|
1471
1884
|
/**
|
|
1472
1885
|
* Redirect participants to this page after they successfully login.
|
|
1473
1886
|
*
|
|
1474
|
-
* @uiName Login
|
|
1887
|
+
* @uiName Login redirect
|
|
1475
1888
|
* @uiWidget pageSelect
|
|
1476
1889
|
*/
|
|
1477
1890
|
this.nextPage = "/";
|
|
1478
1891
|
/**
|
|
1479
|
-
* @uiName Email
|
|
1892
|
+
* @uiName Email field label
|
|
1480
1893
|
*/
|
|
1481
1894
|
this.emailLabel = "Email";
|
|
1482
1895
|
/**
|
|
1483
|
-
* @uiName Password
|
|
1896
|
+
* @uiName Password field label
|
|
1484
1897
|
*/
|
|
1485
1898
|
this.passwordLabel = "Password";
|
|
1486
1899
|
/**
|
|
1487
|
-
* @uiName Submit
|
|
1900
|
+
* @uiName Submit button text
|
|
1488
1901
|
*/
|
|
1489
1902
|
this.submitLabel = "Sign In";
|
|
1490
1903
|
/**
|
|
1491
1904
|
* Redirect participants to this page to reset their password
|
|
1492
|
-
* @uiName Forgot
|
|
1905
|
+
* @uiName Forgot password redirect
|
|
1493
1906
|
* @uiWidget pageSelect
|
|
1494
1907
|
*/
|
|
1495
1908
|
this.forgotPasswordPath = "/forgotPassword";
|
|
1496
1909
|
/**
|
|
1497
|
-
* @uiName Forgot
|
|
1910
|
+
* @uiName Forgot password text
|
|
1498
1911
|
*/
|
|
1499
1912
|
this.forgotPasswordLabel = "Forgot Password?";
|
|
1500
1913
|
/**
|
|
1501
|
-
* @uiName Register
|
|
1914
|
+
* @uiName Register button text
|
|
1502
1915
|
*/
|
|
1503
1916
|
this.registerLabel = "Register";
|
|
1504
1917
|
/**
|
|
1505
1918
|
* Redirect participants to this page to start registration.
|
|
1506
|
-
* @uiName Register
|
|
1919
|
+
* @uiName Register button redirect
|
|
1507
1920
|
* @uiWidget pageSelect
|
|
1508
1921
|
*/
|
|
1509
1922
|
this.registerPath = "/register";
|
|
1510
1923
|
/**
|
|
1511
|
-
* @uiName Heading
|
|
1924
|
+
* @uiName Heading label
|
|
1512
1925
|
* @uiWidget textArea
|
|
1513
1926
|
*/
|
|
1514
1927
|
this.pageLabel = "Sign in to your account";
|
|
@@ -1520,8 +1933,8 @@ const PortalLogin = class {
|
|
|
1520
1933
|
? useLoginDemo(this)
|
|
1521
1934
|
: usePortalLogin(this);
|
|
1522
1935
|
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.
|
|
1936
|
+
forgotPasswordButton: (index.h("slot", { name: "forgotPassword" }, index.h("a", { onClick: () => index_module.pn.push(states.forgotPasswordPath) }, this.forgotPasswordLabel))),
|
|
1937
|
+
secondaryButton: (index.h("slot", { name: "secondaryButton" }, index.h("sl-button", { type: "text", disabled: states.loading, onClick: () => index_module.pn.push(states.registerPath) }, this.registerLabel))),
|
|
1525
1938
|
emailLabel: this.emailLabel,
|
|
1526
1939
|
passwordLabel: this.passwordLabel,
|
|
1527
1940
|
submitLabel: this.submitLabel,
|
|
@@ -1550,7 +1963,7 @@ function usePortalRegister(props) {
|
|
|
1550
1963
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1551
1964
|
const formRef = stencilHooks_module.useRef(null);
|
|
1552
1965
|
const { registrationFormState, setRegistrationFormState } = useRegistrationFormState.useRegistrationFormState({});
|
|
1553
|
-
const [request, { loading, errors, data }] = index_module.
|
|
1966
|
+
const [request, { loading, errors, data }] = index_module.ke();
|
|
1554
1967
|
stencilHooks_module.useEffect(() => {
|
|
1555
1968
|
if (!formRef.current)
|
|
1556
1969
|
return;
|
|
@@ -1573,7 +1986,7 @@ function usePortalRegister(props) {
|
|
|
1573
1986
|
jsonpointer.jsonpointer.set(formData, key, value);
|
|
1574
1987
|
// required validation
|
|
1575
1988
|
if (control.required && !value) {
|
|
1576
|
-
jsonpointer.jsonpointer.set(validationErrors, key,
|
|
1989
|
+
jsonpointer.jsonpointer.set(validationErrors, key, props.requiredFieldErrorMessage);
|
|
1577
1990
|
}
|
|
1578
1991
|
// custom validation
|
|
1579
1992
|
if (typeof control.validationError === "function") {
|
|
@@ -1587,7 +2000,7 @@ function usePortalRegister(props) {
|
|
|
1587
2000
|
formData.password !== formData.confirmPassword) {
|
|
1588
2001
|
validationErrors = {
|
|
1589
2002
|
...validationErrors,
|
|
1590
|
-
confirmPassword:
|
|
2003
|
+
confirmPassword: props.passwordMismatchErrorMessage,
|
|
1591
2004
|
};
|
|
1592
2005
|
}
|
|
1593
2006
|
if (Object.keys(validationErrors).length) {
|
|
@@ -1623,18 +2036,18 @@ function usePortalRegister(props) {
|
|
|
1623
2036
|
validationErrors: {},
|
|
1624
2037
|
});
|
|
1625
2038
|
if ((_a = result.registerManagedIdentityWithEmailAndPassword) === null || _a === void 0 ? void 0 : _a.token) {
|
|
1626
|
-
index_module.
|
|
2039
|
+
index_module.pn.push(props.nextPage);
|
|
1627
2040
|
}
|
|
1628
2041
|
}
|
|
1629
2042
|
catch (error) {
|
|
1630
2043
|
setRegistrationFormState({
|
|
1631
2044
|
loading: false,
|
|
1632
|
-
error:
|
|
2045
|
+
error: props.networkErrorMessage,
|
|
1633
2046
|
validationErrors: {},
|
|
1634
2047
|
});
|
|
1635
2048
|
}
|
|
1636
2049
|
};
|
|
1637
|
-
const inputFunction =
|
|
2050
|
+
const inputFunction = index_module.useCallback((e) => {
|
|
1638
2051
|
var _a, _b;
|
|
1639
2052
|
const name = (_b = (_a = e.target) === null || _a === void 0 ? void 0 : _a.type) === null || _b === void 0 ? void 0 : _b.toLowerCase();
|
|
1640
2053
|
if (name !== "tel")
|
|
@@ -1644,10 +2057,10 @@ function usePortalRegister(props) {
|
|
|
1644
2057
|
}, []);
|
|
1645
2058
|
let errorMessage = "";
|
|
1646
2059
|
if ((_a = errors === null || errors === void 0 ? void 0 : errors.response) === null || _a === void 0 ? void 0 : _a["error"]) {
|
|
1647
|
-
errorMessage =
|
|
2060
|
+
errorMessage = props.networkErrorMessage;
|
|
1648
2061
|
}
|
|
1649
2062
|
else if ((errors === null || errors === void 0 ? void 0 : errors.message) && !((_b = errors === null || errors === void 0 ? void 0 : errors.response) === null || _b === void 0 ? void 0 : _b.errors.length)) {
|
|
1650
|
-
errorMessage =
|
|
2063
|
+
errorMessage = props.networkErrorMessage;
|
|
1651
2064
|
}
|
|
1652
2065
|
else {
|
|
1653
2066
|
errorMessage =
|
|
@@ -1680,62 +2093,90 @@ const PortalRegister = class {
|
|
|
1680
2093
|
/**
|
|
1681
2094
|
* Redirect participants to this page from their verification email
|
|
1682
2095
|
*
|
|
1683
|
-
* @uiName Registration
|
|
2096
|
+
* @uiName Registration redirect
|
|
1684
2097
|
* @uiWidget pageSelect
|
|
1685
2098
|
*/
|
|
1686
2099
|
this.nextPage = "/";
|
|
1687
2100
|
/**
|
|
1688
2101
|
* The page that participants are redirected to from the verification email.
|
|
1689
2102
|
*
|
|
1690
|
-
* @uiName Email
|
|
2103
|
+
* @uiName Email verification redirect
|
|
1691
2104
|
* @uiWidget pageSelect
|
|
1692
2105
|
*/
|
|
1693
2106
|
this.redirectPath = "/verifyEmail";
|
|
1694
2107
|
/**
|
|
1695
|
-
* @uiName Email
|
|
2108
|
+
* @uiName Email field label
|
|
1696
2109
|
*/
|
|
1697
2110
|
this.emailLabel = "Email";
|
|
1698
2111
|
/**
|
|
1699
|
-
* @uiName Password
|
|
2112
|
+
* @uiName Password field label
|
|
1700
2113
|
*/
|
|
1701
2114
|
this.passwordLabel = "Password";
|
|
1702
2115
|
/**
|
|
1703
|
-
* @uiName Submit
|
|
2116
|
+
* @uiName Submit button text
|
|
1704
2117
|
*/
|
|
1705
2118
|
this.submitLabel = "Register";
|
|
1706
2119
|
/**
|
|
1707
|
-
* @uiName Login
|
|
2120
|
+
* @uiName Login button text
|
|
1708
2121
|
*/
|
|
1709
2122
|
this.loginLabel = "Sign in";
|
|
1710
2123
|
/**
|
|
1711
|
-
* @uiName Confirm
|
|
2124
|
+
* @uiName Confirm password field label
|
|
1712
2125
|
*/
|
|
1713
2126
|
this.confirmPasswordLabel = "Confirm Password";
|
|
1714
2127
|
/**
|
|
1715
|
-
* @uiName Show
|
|
2128
|
+
* @uiName Show confirm password field
|
|
1716
2129
|
*/
|
|
1717
2130
|
this.confirmPassword = false;
|
|
1718
2131
|
/**
|
|
1719
|
-
* @uiName Disable
|
|
2132
|
+
* @uiName Disable password validation
|
|
1720
2133
|
*/
|
|
1721
2134
|
this.disablePasswordValidation = false;
|
|
1722
2135
|
/**
|
|
1723
2136
|
* Hides the email and password fields. Note: If you hide default inputs, you must add additional input fields. They must have the input name attributes "email" and "password" for this form to succeed.
|
|
1724
2137
|
*
|
|
1725
|
-
* @uiName Hide
|
|
2138
|
+
* @uiName Hide default fields
|
|
1726
2139
|
*/
|
|
1727
2140
|
this.hideInputs = false;
|
|
1728
2141
|
/**
|
|
1729
|
-
* @uiName Header
|
|
2142
|
+
* @uiName Header text
|
|
1730
2143
|
*/
|
|
1731
2144
|
this.pageLabel = "Register";
|
|
1732
2145
|
/**
|
|
1733
2146
|
* Redirect participants to this page after clicking the login button.
|
|
1734
2147
|
*
|
|
1735
|
-
* @uiName Login
|
|
2148
|
+
* @uiName Login redirect
|
|
1736
2149
|
* @uiWidget pageSelect
|
|
1737
2150
|
*/
|
|
1738
2151
|
this.loginPath = "/login";
|
|
2152
|
+
/**
|
|
2153
|
+
* The message to be displayed when a required field is not filled.
|
|
2154
|
+
*
|
|
2155
|
+
* @uiName Required field message
|
|
2156
|
+
* @uiWidget textArea
|
|
2157
|
+
*/
|
|
2158
|
+
this.requiredFieldErrorMessage = "Cannot be empty";
|
|
2159
|
+
/**
|
|
2160
|
+
* The message to be displayed when a the form submission fails unexpectedly.
|
|
2161
|
+
*
|
|
2162
|
+
* @uiName Network error message
|
|
2163
|
+
* @uiWidget textArea
|
|
2164
|
+
*/
|
|
2165
|
+
this.networkErrorMessage = "Network request failed.";
|
|
2166
|
+
/**
|
|
2167
|
+
* The message to be displayed when password inputs do not match.
|
|
2168
|
+
*
|
|
2169
|
+
* @uiName Password mismatch message
|
|
2170
|
+
* @uiWidget textArea
|
|
2171
|
+
*/
|
|
2172
|
+
this.passwordMismatchErrorMessage = "Passwords do not match.";
|
|
2173
|
+
/**
|
|
2174
|
+
* The message to be displayed when the email used is invalid or blocked.
|
|
2175
|
+
*
|
|
2176
|
+
* @uiName Invalid email message
|
|
2177
|
+
* @uiWidget textArea
|
|
2178
|
+
*/
|
|
2179
|
+
this.invalidEmailErrorMessage = "Must be a valid email address";
|
|
1739
2180
|
stencilHooks_module.h$1(this);
|
|
1740
2181
|
}
|
|
1741
2182
|
disconnectedCallback() { }
|
|
@@ -1745,13 +2186,15 @@ const PortalRegister = class {
|
|
|
1745
2186
|
: usePortalRegister(this);
|
|
1746
2187
|
const content = {
|
|
1747
2188
|
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.
|
|
2189
|
+
secondaryButton: (index.h("slot", { name: "secondaryButton" }, index.h("sl-button", { type: "text", disabled: states.loading, onClick: () => index_module.pn.push(states.loginPath) }, this.loginLabel))),
|
|
1749
2190
|
terms: index.h("slot", { name: "terms" }),
|
|
1750
2191
|
emailLabel: this.emailLabel,
|
|
1751
2192
|
passwordLabel: this.passwordLabel,
|
|
1752
2193
|
submitLabel: this.submitLabel,
|
|
1753
2194
|
pageLabel: this.pageLabel,
|
|
1754
2195
|
confirmPasswordLabel: this.confirmPasswordLabel,
|
|
2196
|
+
invalidEmailErrorMessage: this.invalidEmailErrorMessage,
|
|
2197
|
+
requiredFieldErrorMessage: this.requiredFieldErrorMessage,
|
|
1755
2198
|
};
|
|
1756
2199
|
return (index.h(ShadowViewAddon.PortalRegisterView, { states: states, callbacks: callbacks, content: content, refs: refs }));
|
|
1757
2200
|
}
|
|
@@ -1803,23 +2246,23 @@ function ProgramExplainerView(props, children) {
|
|
|
1803
2246
|
};
|
|
1804
2247
|
const sheet = JSS.createStyleSheet(style);
|
|
1805
2248
|
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
|
-
}
|
|
2249
|
+
const vanillaStyle = `
|
|
2250
|
+
::slotted(*){
|
|
2251
|
+
display: flex;
|
|
2252
|
+
width: 100%;
|
|
2253
|
+
}
|
|
2254
|
+
@media (max-width: 499px) {
|
|
2255
|
+
::slotted(*){
|
|
2256
|
+
display: block;
|
|
2257
|
+
}
|
|
1815
2258
|
}`;
|
|
1816
|
-
return (index.h("div", { class: sheet.classes.Container },
|
|
2259
|
+
return (index.h("div", { class: sheet.classes.Container, part: "sqm-base" },
|
|
1817
2260
|
index.h("style", { type: "text/css" },
|
|
1818
2261
|
styleString,
|
|
1819
2262
|
vanillaStyle),
|
|
1820
2263
|
index.h("div", { class: sheet.classes.Header },
|
|
1821
|
-
index.h("div", { class: sheet.classes.Header }, props.header)),
|
|
1822
|
-
index.h("div", { class: sheet.classes.Grid }, children)));
|
|
2264
|
+
index.h("div", { class: sheet.classes.Header, part: "sqm-header" }, props.header)),
|
|
2265
|
+
index.h("div", { class: sheet.classes.Grid, part: "sqm-grid-container" }, children)));
|
|
1823
2266
|
}
|
|
1824
2267
|
|
|
1825
2268
|
const ProgramExplainer = class {
|
|
@@ -1885,13 +2328,13 @@ function ProgramExplainerStepView(props) {
|
|
|
1885
2328
|
};
|
|
1886
2329
|
const sheet = JSS.createStyleSheet(style);
|
|
1887
2330
|
const styleString = sheet.toString();
|
|
1888
|
-
return (index.h("div", { class: sheet.classes.Container },
|
|
2331
|
+
return (index.h("div", { class: sheet.classes.Container, part: "sqm-base" },
|
|
1889
2332
|
index.h("style", { type: "text/css" }, styleString),
|
|
1890
|
-
index.h("div", null, props.imageUrl ? (index.h("img", { class: sheet.classes.Media, src: props.imageUrl })) : (index.h("div", { class: sheet.classes.Media },
|
|
2333
|
+
index.h("div", null, props.imageUrl ? (index.h("img", { class: sheet.classes.Media, src: props.imageUrl, part: "sqm-media" })) : (index.h("div", { class: sheet.classes.Media, part: "sqm-media" },
|
|
1891
2334
|
index.h("sl-icon", { name: props.icon })))),
|
|
1892
2335
|
index.h("div", { class: sheet.classes.Text },
|
|
1893
|
-
index.h("div", { class: sheet.classes.Header }, props.header),
|
|
1894
|
-
index.h("div", { class: sheet.classes.Description }, props.description))));
|
|
2336
|
+
index.h("div", { class: sheet.classes.Header, part: "sqm-header" }, props.header),
|
|
2337
|
+
index.h("div", { class: sheet.classes.Description, part: "sqm-description" }, props.description))));
|
|
1895
2338
|
}
|
|
1896
2339
|
|
|
1897
2340
|
const ProgramExplainerStep = class {
|
|
@@ -1909,10 +2352,10 @@ const debug = stencilHooks_module.browser('sq:useProgramMenu');
|
|
|
1909
2352
|
const UPDATE_PROGRAM_EVENT = 'sq:update-program-id';
|
|
1910
2353
|
function useProgramMenu(props) {
|
|
1911
2354
|
const programId = index_module.O();
|
|
1912
|
-
const host = index_module.
|
|
2355
|
+
const host = index_module.V();
|
|
1913
2356
|
debug({ programId, props });
|
|
1914
2357
|
const ref = stencilHooks_module.useRef();
|
|
1915
|
-
const [, rerender] = index_module.
|
|
2358
|
+
const [, rerender] = index_module.dn();
|
|
1916
2359
|
stencilHooks_module.useEffect(() => {
|
|
1917
2360
|
var _a;
|
|
1918
2361
|
(_a = ref.current) === null || _a === void 0 ? void 0 : _a.addEventListener('sl-select', (e) => {
|
|
@@ -1949,59 +2392,62 @@ const ProgramMenu = class {
|
|
|
1949
2392
|
}
|
|
1950
2393
|
};
|
|
1951
2394
|
|
|
1952
|
-
const style$
|
|
2395
|
+
const style$2 = {
|
|
1953
2396
|
Container: {
|
|
1954
|
-
|
|
2397
|
+
borderRadius: "var(--sl-border-radius-large)",
|
|
1955
2398
|
color: "var(--sl-color-neutral-900)",
|
|
1956
2399
|
background: "var(--sl-color-neutral-0)",
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
},
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
paddingLeft: "var(--sl-spacing-medium)",
|
|
1973
|
-
"@media (max-width: 499px)": {
|
|
1974
|
-
width: "100%",
|
|
1975
|
-
padding: "0",
|
|
1976
|
-
},
|
|
1977
|
-
},
|
|
1978
|
-
border: "1px solid var(--sl-color-neutral-300)",
|
|
1979
|
-
borderRadius: "var(--sl-border-radius-large)",
|
|
2400
|
+
display: "flex",
|
|
2401
|
+
flexDirection: "column",
|
|
2402
|
+
rowGap: "var(--sl-spacing-large)",
|
|
2403
|
+
},
|
|
2404
|
+
EndContainer: {
|
|
2405
|
+
display: "flex",
|
|
2406
|
+
flexDirection: "column",
|
|
2407
|
+
alignItems: "center",
|
|
2408
|
+
},
|
|
2409
|
+
ColumnContainer: {
|
|
2410
|
+
"& p": { margin: "0" },
|
|
2411
|
+
display: "grid",
|
|
2412
|
+
gridAutoColumns: "minmax(0, 1fr)",
|
|
2413
|
+
gridAutoFlow: "column",
|
|
2414
|
+
gap: "calc(2 * var(--sl-spacing-medium))",
|
|
1980
2415
|
"@media (max-width: 499px)": {
|
|
1981
|
-
|
|
2416
|
+
gridAutoFlow: "unset",
|
|
2417
|
+
gridAutoColumns: "unset",
|
|
2418
|
+
gridTemplateColumns: "1fr",
|
|
1982
2419
|
border: "none",
|
|
1983
2420
|
},
|
|
1984
2421
|
},
|
|
1985
2422
|
};
|
|
1986
|
-
const sheet$
|
|
1987
|
-
const styleString$
|
|
1988
|
-
const vanillaStyle = `
|
|
1989
|
-
:host{
|
|
1990
|
-
display: block;
|
|
1991
|
-
}
|
|
2423
|
+
const sheet$2 = JSS.createStyleSheet(style$2);
|
|
2424
|
+
const styleString$2 = sheet$2.toString();
|
|
2425
|
+
const vanillaStyle$1 = `
|
|
2426
|
+
:host{
|
|
2427
|
+
display: block;
|
|
2428
|
+
}
|
|
1992
2429
|
`;
|
|
1993
2430
|
function ReferralCardView(props) {
|
|
1994
|
-
return (index.h("div",
|
|
2431
|
+
return (index.h("div", { part: "sqm-base", class: sheet$2.classes.Container, style: {
|
|
2432
|
+
border: `${props.hideBorder ? "none" : "1px solid var(--sl-color-neutral-300)"}`,
|
|
2433
|
+
"padding-top": `var(--sl-spacing-${props.paddingTop})`,
|
|
2434
|
+
"padding-right": `var(--sl-spacing-${props.paddingRight})`,
|
|
2435
|
+
"padding-bottom": `var(--sl-spacing-${props.paddingBottom})`,
|
|
2436
|
+
"padding-left": `var(--sl-spacing-${props.paddingLeft})`,
|
|
2437
|
+
backgroundColor: props.backgroundColor,
|
|
2438
|
+
maxWidth: `${props.limitWidth ? "600px" : "none"}`,
|
|
2439
|
+
margin: `${props.limitWidth ? "auto" : "none"}`,
|
|
2440
|
+
} },
|
|
1995
2441
|
index.h("style", { type: "text/css" },
|
|
1996
|
-
styleString$
|
|
1997
|
-
vanillaStyle),
|
|
1998
|
-
index.h("div", { class: sheet$
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2442
|
+
styleString$2,
|
|
2443
|
+
vanillaStyle$1),
|
|
2444
|
+
props.hasHeader && (index.h("div", { class: sheet$2.classes.EndContainer }, props.slots.header)),
|
|
2445
|
+
index.h("div", { part: "sqm-column-container", class: sheet$2.classes.ColumnContainer, style: {
|
|
2446
|
+
alignItems: props.verticalAlignment,
|
|
2447
|
+
} },
|
|
2448
|
+
props.slots.left,
|
|
2449
|
+
props.slots.right),
|
|
2450
|
+
props.hasFooter && (index.h("div", { class: sheet$2.classes.EndContainer }, props.slots.footer))));
|
|
2005
2451
|
}
|
|
2006
2452
|
|
|
2007
2453
|
const ReferralCard = class {
|
|
@@ -2009,12 +2455,56 @@ const ReferralCard = class {
|
|
|
2009
2455
|
index.registerInstance(this, hostRef);
|
|
2010
2456
|
this.ignored = true;
|
|
2011
2457
|
/**
|
|
2012
|
-
* @uiName Vertical
|
|
2458
|
+
* @uiName Vertical alignment
|
|
2013
2459
|
* @uiType string
|
|
2014
2460
|
* @uiEnum ["start", "center", "end"]
|
|
2015
2461
|
* @uiEnumNames ["Top", "Center", "Bottom"]
|
|
2016
2462
|
*/
|
|
2017
2463
|
this.verticalAlignment = "start";
|
|
2464
|
+
/**
|
|
2465
|
+
* @uiName Hide border
|
|
2466
|
+
* @uiType boolean
|
|
2467
|
+
*/
|
|
2468
|
+
this.hideBorder = false;
|
|
2469
|
+
/**
|
|
2470
|
+
* @uiName Top padding
|
|
2471
|
+
* @uiGroup Padding
|
|
2472
|
+
* @uiEnum ["none", "xxx-small", "xx-small", "x-small", "small", "medium", "large", "x-large", "xx-large", "xxx-large", "xxxx-large"]
|
|
2473
|
+
* @uiEnumNames ["None", "XXX-Small", "XX-Small", "X-Small", "Small", "Medium", "Large", "X-Large", "XX-Large", "XXX-Large", "XXXX-Large"]
|
|
2474
|
+
*/
|
|
2475
|
+
this.paddingTop = "large";
|
|
2476
|
+
/**
|
|
2477
|
+
* @uiName Right padding
|
|
2478
|
+
* @uiGroup Padding
|
|
2479
|
+
* @uiEnum ["none", "xxx-small", "xx-small", "x-small", "small", "medium", "large", "x-large", "xx-large", "xxx-large", "xxxx-large"]
|
|
2480
|
+
* @uiEnumNames ["None", "XXX-Small", "XX-Small", "X-Small", "Small", "Medium", "Large", "X-Large", "XX-Large", "XXX-Large", "XXXX-Large"]
|
|
2481
|
+
*/
|
|
2482
|
+
this.paddingRight = "large";
|
|
2483
|
+
/**
|
|
2484
|
+
* @uiName Bottom padding
|
|
2485
|
+
* @uiGroup Padding
|
|
2486
|
+
* @uiEnum ["none", "xxx-small", "xx-small", "x-small", "small", "medium", "large", "x-large", "xx-large", "xxx-large", "xxxx-large"]
|
|
2487
|
+
* @uiEnumNames ["None", "XXX-Small", "XX-Small", "X-Small", "Small", "Medium", "Large", "X-Large", "XX-Large", "XXX-Large", "XXXX-Large"]
|
|
2488
|
+
*/
|
|
2489
|
+
this.paddingBottom = "large";
|
|
2490
|
+
/**
|
|
2491
|
+
* @uiName Left padding
|
|
2492
|
+
* @uiGroup Padding
|
|
2493
|
+
* @uiEnum ["none", "xxx-small", "xx-small", "x-small", "small", "medium", "large", "x-large", "xx-large", "xxx-large", "xxxx-large"]
|
|
2494
|
+
* @uiEnumNames ["None", "XXX-Small", "XX-Small", "X-Small", "Small", "Medium", "Large", "X-Large", "XX-Large", "XXX-Large", "XXXX-Large"]
|
|
2495
|
+
*/
|
|
2496
|
+
this.paddingLeft = "large";
|
|
2497
|
+
/**
|
|
2498
|
+
* @uiName Background color
|
|
2499
|
+
* @uiWidget color
|
|
2500
|
+
* @uiType string
|
|
2501
|
+
*/
|
|
2502
|
+
this.backgroundColor = "#ffffff";
|
|
2503
|
+
/**
|
|
2504
|
+
* @uiName Limit width
|
|
2505
|
+
* @uiType boolean
|
|
2506
|
+
*/
|
|
2507
|
+
this.limitWidth = false;
|
|
2018
2508
|
stencilHooks_module.h$1(this);
|
|
2019
2509
|
}
|
|
2020
2510
|
disconnectedCallback() { }
|
|
@@ -2022,25 +2512,30 @@ const ReferralCard = class {
|
|
|
2022
2512
|
const slots = {
|
|
2023
2513
|
left: index.h("slot", { name: "left" }),
|
|
2024
2514
|
right: index.h("slot", { name: "right" }),
|
|
2515
|
+
header: index.h("slot", { name: "header" }),
|
|
2516
|
+
footer: index.h("slot", { name: "footer" }),
|
|
2025
2517
|
};
|
|
2026
|
-
|
|
2518
|
+
const children = useChildElements.useChildElements();
|
|
2519
|
+
const hasHeader = children.findIndex((child) => child.slot === "header") > -1;
|
|
2520
|
+
const hasFooter = children.findIndex((child) => child.slot === "footer") > -1;
|
|
2521
|
+
return (index.h(ReferralCardView, Object.assign({}, utils.getProps(this), { slots: slots, hasHeader: hasHeader, hasFooter: hasFooter }), index.h("slot", null)));
|
|
2027
2522
|
}
|
|
2028
2523
|
};
|
|
2029
2524
|
|
|
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
|
-
}
|
|
2525
|
+
const GET_USER_DETAILS = index_module.dist.gql `
|
|
2526
|
+
query getUser($programId: ID) {
|
|
2527
|
+
viewer {
|
|
2528
|
+
... on User {
|
|
2529
|
+
referralCode(programId: $programId)
|
|
2530
|
+
}
|
|
2531
|
+
}
|
|
2532
|
+
}
|
|
2038
2533
|
`;
|
|
2039
2534
|
function useReferralIframe(props) {
|
|
2040
2535
|
var _a;
|
|
2041
2536
|
const programId = index_module.O();
|
|
2042
|
-
const user = index_module.
|
|
2043
|
-
const { data } = index_module.
|
|
2537
|
+
const user = index_module.L();
|
|
2538
|
+
const { data } = index_module.mn(GET_USER_DETAILS, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt) || !programId);
|
|
2044
2539
|
return {
|
|
2045
2540
|
states: {
|
|
2046
2541
|
content: props,
|
|
@@ -2057,12 +2552,12 @@ const SqmReferralIframe = class {
|
|
|
2057
2552
|
this.ignored = true;
|
|
2058
2553
|
/**
|
|
2059
2554
|
* Define the height of the iframe with any valid CSS height value. Example: 100px, 5rem, or auto.
|
|
2060
|
-
* @uiName
|
|
2555
|
+
* @uiName IFrame height
|
|
2061
2556
|
*/
|
|
2062
2557
|
this.iframeHeight = "100%";
|
|
2063
2558
|
/**
|
|
2064
2559
|
* Define the width of the iframe with any valid CSS width value. Example: 100px, 5rem, or auto.
|
|
2065
|
-
* @uiName
|
|
2560
|
+
* @uiName IFrame width
|
|
2066
2561
|
*/
|
|
2067
2562
|
this.iframeWidth = "100%";
|
|
2068
2563
|
stencilHooks_module.h$1(this);
|
|
@@ -2698,58 +3193,58 @@ var module$1 = {};
|
|
|
2698
3193
|
|
|
2699
3194
|
const confetti = module$1.exports;
|
|
2700
3195
|
|
|
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
|
-
}
|
|
3196
|
+
const GET_EXCHANGE_LIST = index_module.dist.gql `
|
|
3197
|
+
query getExchangeList {
|
|
3198
|
+
viewer {
|
|
3199
|
+
... on User {
|
|
3200
|
+
visibleRewardExchangeItems(limit: 20, offset: 0) {
|
|
3201
|
+
data {
|
|
3202
|
+
key
|
|
3203
|
+
name
|
|
3204
|
+
description
|
|
3205
|
+
imageUrl
|
|
3206
|
+
available
|
|
3207
|
+
unavailableReasonCode
|
|
3208
|
+
ruleType
|
|
3209
|
+
sourceUnit
|
|
3210
|
+
sourceValue
|
|
3211
|
+
prettySourceValue
|
|
3212
|
+
sourceMinValue
|
|
3213
|
+
prettySourceMinValue
|
|
3214
|
+
sourceMaxValue
|
|
3215
|
+
prettySourceMaxValue
|
|
3216
|
+
destinationMinValue
|
|
3217
|
+
prettyDestinationMinValue
|
|
3218
|
+
destinationMaxValue
|
|
3219
|
+
prettyDestinationMaxValue
|
|
3220
|
+
globalRewardKey
|
|
3221
|
+
destinationUnit
|
|
3222
|
+
steps {
|
|
3223
|
+
sourceValue
|
|
3224
|
+
prettySourceValue
|
|
3225
|
+
destinationValue
|
|
3226
|
+
prettyDestinationValue
|
|
3227
|
+
available
|
|
3228
|
+
globalRewardKey
|
|
3229
|
+
unavailableReasonCode
|
|
3230
|
+
rewardInput
|
|
3231
|
+
}
|
|
3232
|
+
}
|
|
3233
|
+
totalCount
|
|
3234
|
+
}
|
|
3235
|
+
}
|
|
3236
|
+
}
|
|
3237
|
+
}
|
|
2743
3238
|
`;
|
|
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
|
-
}
|
|
3239
|
+
const EXCHANGE = index_module.dist.gql `
|
|
3240
|
+
mutation exchange($exchangeRewardInput: ExchangeRewardInput!) {
|
|
3241
|
+
exchangeReward(exchangeRewardInput: $exchangeRewardInput) {
|
|
3242
|
+
reward {
|
|
3243
|
+
id
|
|
3244
|
+
fuelTankCode
|
|
3245
|
+
}
|
|
3246
|
+
}
|
|
3247
|
+
}
|
|
2753
3248
|
`;
|
|
2754
3249
|
function useRewardExchangeList(props) {
|
|
2755
3250
|
var _a, _b, _c, _d, _e;
|
|
@@ -2765,9 +3260,9 @@ function useRewardExchangeList(props) {
|
|
|
2765
3260
|
});
|
|
2766
3261
|
const [open, setOpen] = stencilHooks_module.useState(false);
|
|
2767
3262
|
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.
|
|
3263
|
+
const user = index_module.L();
|
|
3264
|
+
const [exchange, { data: exchangeResponse, loading: exchangeLoading, errors },] = index_module.Ie(EXCHANGE);
|
|
3265
|
+
const { data, loading, refetch, errors: queryError, } = index_module.mn(GET_EXCHANGE_LIST, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
2771
3266
|
stencilHooks_module.useEffect(() => {
|
|
2772
3267
|
var _a, _b;
|
|
2773
3268
|
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 +3281,7 @@ function useRewardExchangeList(props) {
|
|
|
2786
3281
|
canvas.confetti || confetti.create(canvas, { resize: true });
|
|
2787
3282
|
canvas.confetti();
|
|
2788
3283
|
}, [canvasRef.current]);
|
|
2789
|
-
const { refresh } = index_module.
|
|
3284
|
+
const { refresh } = index_module._e();
|
|
2790
3285
|
async function exchangeReward() {
|
|
2791
3286
|
if (!selectedItem)
|
|
2792
3287
|
return;
|
|
@@ -2907,131 +3402,131 @@ const SqmRewardExchangeList = class {
|
|
|
2907
3402
|
/**
|
|
2908
3403
|
* Error message shown when reward is not available
|
|
2909
3404
|
*
|
|
2910
|
-
* @uiName Not
|
|
3405
|
+
* @uiName Not available error
|
|
2911
3406
|
* @uiWidget textArea
|
|
2912
3407
|
*/
|
|
2913
3408
|
this.notAvailableError = "{unavailableReasonCode, select, US_TAX {US Tax limit} INSUFFICIENT_REDEEMABLE_CREDIT {{sourceValue} required} AVAILABILITY_PREDICATE {Not available} other {{unavailableReasonCode}} }";
|
|
2914
3409
|
/**
|
|
2915
|
-
* @uiName Choose
|
|
3410
|
+
* @uiName Choose reward progress title
|
|
2916
3411
|
*/
|
|
2917
3412
|
this.chooseRewardTitle = "Rewards";
|
|
2918
3413
|
/**
|
|
2919
|
-
* @uiName Choose
|
|
3414
|
+
* @uiName Choose amount progress title
|
|
2920
3415
|
*/
|
|
2921
3416
|
this.chooseAmountTitle = "Select";
|
|
2922
3417
|
/**
|
|
2923
|
-
* @uiName Confirmation
|
|
3418
|
+
* @uiName Confirmation progress title
|
|
2924
3419
|
*/
|
|
2925
3420
|
this.confirmationTitle = "Confirm";
|
|
2926
3421
|
/**
|
|
2927
|
-
* @uiName Reward
|
|
3422
|
+
* @uiName Reward title text
|
|
2928
3423
|
*/
|
|
2929
3424
|
this.rewardTitle = "Choose a reward";
|
|
2930
3425
|
/**
|
|
2931
|
-
* @uiName Cancel
|
|
3426
|
+
* @uiName Cancel button text
|
|
2932
3427
|
*/
|
|
2933
3428
|
this.cancelText = "Cancel";
|
|
2934
3429
|
/**
|
|
2935
|
-
* @uiName Back
|
|
3430
|
+
* @uiName Back button text
|
|
2936
3431
|
*/
|
|
2937
3432
|
this.backText = "Back";
|
|
2938
3433
|
/**
|
|
2939
|
-
* @uiName Continue
|
|
3434
|
+
* @uiName Continue button text
|
|
2940
3435
|
*/
|
|
2941
3436
|
this.continueText = "Continue";
|
|
2942
3437
|
/**
|
|
2943
3438
|
* Displayed on the reward selection page.
|
|
2944
|
-
* @uiName Continue to
|
|
3439
|
+
* @uiName Continue to confirmation button text
|
|
2945
3440
|
*/
|
|
2946
3441
|
this.continueToConfirmationText = "Continue to confirmation";
|
|
2947
3442
|
/**
|
|
2948
|
-
* @uiName Redeem
|
|
3443
|
+
* @uiName Redeem button text
|
|
2949
3444
|
*/
|
|
2950
3445
|
this.redeemText = "Redeem";
|
|
2951
3446
|
/**
|
|
2952
3447
|
* Displayed as the header for the confirmation page.
|
|
2953
3448
|
*
|
|
2954
|
-
* @uiName Confirmation
|
|
3449
|
+
* @uiName Confirmation title text
|
|
2955
3450
|
*/
|
|
2956
3451
|
this.redeemTitle = "Confirm and redeem";
|
|
2957
3452
|
/**
|
|
2958
3453
|
* Displayed on the success screen when a user successfully exchanges for a reward.
|
|
2959
3454
|
*
|
|
2960
|
-
* @uiName Redemption
|
|
3455
|
+
* @uiName Redemption success message
|
|
2961
3456
|
* @uiWidget textArea
|
|
2962
3457
|
*/
|
|
2963
3458
|
this.redemptionSuccessText = "Redeemed {sourceValue} for {destinationValue}";
|
|
2964
3459
|
/**
|
|
2965
3460
|
* Displayed on the reward exchange cards.
|
|
2966
3461
|
*
|
|
2967
|
-
* @uiName Reward
|
|
3462
|
+
* @uiName Reward exchange amount text
|
|
2968
3463
|
* @uiWidget textArea
|
|
2969
3464
|
*/
|
|
2970
3465
|
this.sourceAmountMessage = "{ruleType, select, FIXED_GLOBAL_REWARD {{sourceValue}} other {{sourceMinValue} to {sourceMaxValue}}}";
|
|
2971
3466
|
/**
|
|
2972
3467
|
* Shown when a user copies a fuel tank code
|
|
2973
3468
|
*
|
|
2974
|
-
* @uiName Tooltip
|
|
3469
|
+
* @uiName Tooltip text
|
|
2975
3470
|
*/
|
|
2976
3471
|
this.tooltipText = "Copied";
|
|
2977
3472
|
/**
|
|
2978
|
-
* @uiName Done
|
|
3473
|
+
* @uiName Done text
|
|
2979
3474
|
*/
|
|
2980
3475
|
this.doneText = "Done";
|
|
2981
3476
|
/**
|
|
2982
|
-
* @uiName Select
|
|
3477
|
+
* @uiName Select amount text
|
|
2983
3478
|
* @uiWidget textArea
|
|
2984
3479
|
*/
|
|
2985
3480
|
this.selectText = "Select amount to receive";
|
|
2986
3481
|
/**
|
|
2987
3482
|
* Shown if an error occurs when loading the reward exchange.
|
|
2988
3483
|
*
|
|
2989
|
-
* @uiName Reward
|
|
3484
|
+
* @uiName Reward list error message
|
|
2990
3485
|
* @uiWidget textArea
|
|
2991
3486
|
*/
|
|
2992
3487
|
this.queryError = "Unable to load reward exchange list. Please try again";
|
|
2993
3488
|
/**
|
|
2994
3489
|
* Shown if an error occurs during the reward exchange.
|
|
2995
3490
|
*
|
|
2996
|
-
* @uiName Redemption
|
|
3491
|
+
* @uiName Redemption error message
|
|
2997
3492
|
* @uiWidget textArea
|
|
2998
3493
|
*/
|
|
2999
3494
|
this.redemptionError = "An error occured trying to redeem this reward. Please try again";
|
|
3000
3495
|
/**
|
|
3001
|
-
* @uiName Not
|
|
3496
|
+
* @uiName Not enough error message
|
|
3002
3497
|
* @uiWidget textArea
|
|
3003
3498
|
*/
|
|
3004
3499
|
this.notEnoughError = "Not enough {sourceUnit} to redeem for this reward";
|
|
3005
3500
|
/**
|
|
3006
|
-
* @uiName Reward
|
|
3501
|
+
* @uiName Reward redeemed text
|
|
3007
3502
|
*/
|
|
3008
3503
|
this.rewardRedeemedText = "Reward redeemed";
|
|
3009
3504
|
/**
|
|
3010
|
-
* @uiName Promo
|
|
3505
|
+
* @uiName Promo code text
|
|
3011
3506
|
*/
|
|
3012
3507
|
this.promoCode = "Promo Code";
|
|
3013
3508
|
/**
|
|
3014
3509
|
* Set the number of placeholder cards to be shown in loading state.
|
|
3015
3510
|
*
|
|
3016
|
-
* @uiName Loading
|
|
3511
|
+
* @uiName Loading cards
|
|
3017
3512
|
*/
|
|
3018
3513
|
this.skeletonCardNum = 8;
|
|
3019
3514
|
/**
|
|
3020
3515
|
* Shown in the confirmation state.
|
|
3021
3516
|
*
|
|
3022
|
-
* @uiName Reward
|
|
3517
|
+
* @uiName Reward row title
|
|
3023
3518
|
*/
|
|
3024
3519
|
this.rewardNameTitle = "Reward";
|
|
3025
3520
|
/**
|
|
3026
3521
|
* Shown in the confirmation state.
|
|
3027
3522
|
*
|
|
3028
|
-
* @uiName Reward
|
|
3523
|
+
* @uiName Reward amount row title
|
|
3029
3524
|
*/
|
|
3030
3525
|
this.rewardAmountTitle = "Reward Amount";
|
|
3031
3526
|
/**
|
|
3032
3527
|
* Shown in the confirmation state.
|
|
3033
3528
|
*
|
|
3034
|
-
* @uiName Cost
|
|
3529
|
+
* @uiName Cost row title
|
|
3035
3530
|
*/
|
|
3036
3531
|
this.costTitle = "Cost to Redeem";
|
|
3037
3532
|
stencilHooks_module.h$1(this);
|
|
@@ -3094,8 +3589,8 @@ function matchPath(pattern, page) {
|
|
|
3094
3589
|
return regexp.exec(page);
|
|
3095
3590
|
}
|
|
3096
3591
|
function useRouter() {
|
|
3097
|
-
const location = index_module.
|
|
3098
|
-
const host = index_module.
|
|
3592
|
+
const location = index_module.vn();
|
|
3593
|
+
const host = index_module.V();
|
|
3099
3594
|
const [slot, setSlot] = stencilHooks_module.useState(undefined);
|
|
3100
3595
|
const [container, setContainer] = stencilHooks_module.useState(undefined);
|
|
3101
3596
|
const page = location.pathname;
|
|
@@ -3201,7 +3696,7 @@ const Scroll = class {
|
|
|
3201
3696
|
index.registerInstance(this, hostRef);
|
|
3202
3697
|
this.ignored = true;
|
|
3203
3698
|
/**
|
|
3204
|
-
* @uiName Button
|
|
3699
|
+
* @uiName Button type
|
|
3205
3700
|
* @uiType string
|
|
3206
3701
|
* @uiEnum ["default", "primary", "success", "neutral", "warning", "danger", "text"]
|
|
3207
3702
|
* @uiEnumNames ["Default", "Primary", "Success", "Neutral", "Warning", "Danger", "Text"]
|
|
@@ -3209,7 +3704,7 @@ const Scroll = class {
|
|
|
3209
3704
|
*/
|
|
3210
3705
|
this.buttonType = "default";
|
|
3211
3706
|
/**
|
|
3212
|
-
* @uiName Scroll
|
|
3707
|
+
* @uiName Scroll animation style
|
|
3213
3708
|
* @uiType string
|
|
3214
3709
|
* @uiEnum ["smooth", "auto"]
|
|
3215
3710
|
* @uiEnumNames ["Smooth", "Auto"]
|
|
@@ -3253,19 +3748,19 @@ const Scroll = class {
|
|
|
3253
3748
|
};
|
|
3254
3749
|
const sheet = JSS.createStyleSheet(style);
|
|
3255
3750
|
const styleString = sheet.toString();
|
|
3256
|
-
const vanillaStyle = `
|
|
3257
|
-
:host{
|
|
3258
|
-
display: contents;
|
|
3259
|
-
}
|
|
3751
|
+
const vanillaStyle = `
|
|
3752
|
+
:host{
|
|
3753
|
+
display: contents;
|
|
3754
|
+
}
|
|
3260
3755
|
${this.mobile &&
|
|
3261
|
-
`
|
|
3262
|
-
@media only screen and (max-width: 499px) {
|
|
3263
|
-
:host {
|
|
3264
|
-
display: block;
|
|
3265
|
-
width: 100%;
|
|
3266
|
-
}
|
|
3267
|
-
}
|
|
3268
|
-
`}
|
|
3756
|
+
`
|
|
3757
|
+
@media only screen and (max-width: 499px) {
|
|
3758
|
+
:host {
|
|
3759
|
+
display: block;
|
|
3760
|
+
width: 100%;
|
|
3761
|
+
}
|
|
3762
|
+
}
|
|
3763
|
+
`}
|
|
3269
3764
|
`;
|
|
3270
3765
|
let classStack = "";
|
|
3271
3766
|
if (this.outline && this.buttonType != "default")
|
|
@@ -3285,25 +3780,25 @@ const ShareButton = class {
|
|
|
3285
3780
|
index.registerInstance(this, hostRef);
|
|
3286
3781
|
/**
|
|
3287
3782
|
* @uiType string
|
|
3288
|
-
* @uiName Button
|
|
3783
|
+
* @uiName Button style
|
|
3289
3784
|
* @uiEnum ["primary" , "success", "info", "warning", "danger", "default", "text" ]
|
|
3290
3785
|
* @uiEnumNames ["Primary", "Success", "Info", "Warning", "Danger", "Default", "Text"]
|
|
3291
3786
|
*/
|
|
3292
3787
|
this.type = "default";
|
|
3293
3788
|
/**
|
|
3294
|
-
* @uiName Icon
|
|
3789
|
+
* @uiName Icon location
|
|
3295
3790
|
* @uiType string
|
|
3296
3791
|
* @uiEnum ["prefix", "suffix" ]
|
|
3297
3792
|
* @uiEnumNames ["Prefix", "Suffix"]
|
|
3298
3793
|
*/
|
|
3299
3794
|
this.iconslot = "prefix";
|
|
3300
3795
|
/**
|
|
3301
|
-
* @uiName Hide
|
|
3796
|
+
* @uiName Hide icon
|
|
3302
3797
|
* @default
|
|
3303
3798
|
*/
|
|
3304
3799
|
this.hideicon = false;
|
|
3305
3800
|
/**
|
|
3306
|
-
* @uiName Hide
|
|
3801
|
+
* @uiName Hide text
|
|
3307
3802
|
* @default
|
|
3308
3803
|
*/
|
|
3309
3804
|
this.hidetext = false;
|
|
@@ -3330,35 +3825,35 @@ function useDemoShareButton(props) {
|
|
|
3330
3825
|
}
|
|
3331
3826
|
ShareButton.style = sqmShareButtonCss;
|
|
3332
3827
|
|
|
3333
|
-
const MessageLinkQuery = index_module.dist.gql `
|
|
3334
|
-
query ($programId: ID) {
|
|
3335
|
-
user: viewer {
|
|
3336
|
-
... on User {
|
|
3337
|
-
referralCode(programId: $programId)
|
|
3338
|
-
}
|
|
3339
|
-
}
|
|
3340
|
-
}
|
|
3828
|
+
const MessageLinkQuery = index_module.dist.gql `
|
|
3829
|
+
query ($programId: ID) {
|
|
3830
|
+
user: viewer {
|
|
3831
|
+
... on User {
|
|
3832
|
+
referralCode(programId: $programId)
|
|
3833
|
+
}
|
|
3834
|
+
}
|
|
3835
|
+
}
|
|
3341
3836
|
`;
|
|
3342
|
-
const WIDGET_ENGAGEMENT_EVENT = index_module.dist.gql `
|
|
3343
|
-
mutation loadEvent($eventMeta: UserAnalyticsEvent!) {
|
|
3344
|
-
createUserAnalyticsEvent(eventMeta: $eventMeta)
|
|
3345
|
-
}
|
|
3837
|
+
const WIDGET_ENGAGEMENT_EVENT$1 = index_module.dist.gql `
|
|
3838
|
+
mutation loadEvent($eventMeta: UserAnalyticsEvent!) {
|
|
3839
|
+
createUserAnalyticsEvent(eventMeta: $eventMeta)
|
|
3840
|
+
}
|
|
3346
3841
|
`;
|
|
3347
3842
|
function useShareCode(props) {
|
|
3348
3843
|
var _a, _b;
|
|
3349
3844
|
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
|
|
3845
|
+
const user = index_module.L();
|
|
3846
|
+
const engagementMedium = index_module.T();
|
|
3847
|
+
const { data } = index_module.mn(MessageLinkQuery, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
3848
|
+
const [sendLoadEvent] = index_module.Ie(WIDGET_ENGAGEMENT_EVENT$1);
|
|
3849
|
+
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
3850
|
// Shown during loading
|
|
3356
3851
|
"...";
|
|
3357
3852
|
const [open, setOpen] = stencilHooks_module.useState(false);
|
|
3358
3853
|
function onClick() {
|
|
3359
3854
|
// Should well supported: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
|
|
3360
3855
|
// Only if called from a user-initiated event
|
|
3361
|
-
navigator.clipboard.writeText(
|
|
3856
|
+
navigator.clipboard.writeText(copyString);
|
|
3362
3857
|
setOpen(true);
|
|
3363
3858
|
setTimeout(() => setOpen(false), props.tooltiplifespan);
|
|
3364
3859
|
sendLoadEvent({
|
|
@@ -3374,16 +3869,16 @@ function useShareCode(props) {
|
|
|
3374
3869
|
},
|
|
3375
3870
|
});
|
|
3376
3871
|
}
|
|
3377
|
-
return { ...props, onClick, open,
|
|
3872
|
+
return { ...props, onClick, open, copyString: copyString };
|
|
3378
3873
|
}
|
|
3379
3874
|
|
|
3380
3875
|
const ShareCode = class {
|
|
3381
3876
|
constructor(hostRef) {
|
|
3382
3877
|
index.registerInstance(this, hostRef);
|
|
3383
3878
|
/**
|
|
3384
|
-
* Shown inside a tooltip after someone has successfully copied the link to their clipboard
|
|
3879
|
+
* Shown inside a tooltip after someone has successfully copied the link to their clipboard
|
|
3385
3880
|
*
|
|
3386
|
-
* @uiName Tooltip
|
|
3881
|
+
* @uiName Tooltip text
|
|
3387
3882
|
*/
|
|
3388
3883
|
this.tooltiptext = "Copied to Clipboard";
|
|
3389
3884
|
/**
|
|
@@ -3392,6 +3887,28 @@ const ShareCode = class {
|
|
|
3392
3887
|
* @uiName Tooltip lifespan
|
|
3393
3888
|
*/
|
|
3394
3889
|
this.tooltiplifespan = 1000;
|
|
3890
|
+
/**
|
|
3891
|
+
* Change the text alignment
|
|
3892
|
+
*
|
|
3893
|
+
* @uiName Share code alignment
|
|
3894
|
+
* @uiType string
|
|
3895
|
+
* @uiEnum ["left", "center", "right"]
|
|
3896
|
+
* @uiEnumNames ["Left", "Center", "Right"]
|
|
3897
|
+
*/
|
|
3898
|
+
this.textAlign = "left";
|
|
3899
|
+
/**
|
|
3900
|
+
* @uiName Copy button label
|
|
3901
|
+
*/
|
|
3902
|
+
this.copyButtonLabel = "Copy Code";
|
|
3903
|
+
/**
|
|
3904
|
+
* Set the copy button style and placement
|
|
3905
|
+
*
|
|
3906
|
+
* @uiName Style
|
|
3907
|
+
* @uiType string
|
|
3908
|
+
* @uiEnum ["icon", "button-outside", "button-below"]
|
|
3909
|
+
* @uiEnumNames ["Icon", "Button outside", "Button below"]
|
|
3910
|
+
*/
|
|
3911
|
+
this.buttonStyle = "icon";
|
|
3395
3912
|
stencilHooks_module.h$1(this);
|
|
3396
3913
|
}
|
|
3397
3914
|
disconnectedCallback() { }
|
|
@@ -3400,20 +3917,24 @@ const ShareCode = class {
|
|
|
3400
3917
|
const props = index_module.isDemo()
|
|
3401
3918
|
? useDemoShareCode(thisProps)
|
|
3402
3919
|
: useShareCode(thisProps);
|
|
3403
|
-
return index.h(ShadowViewAddon.
|
|
3920
|
+
return index.h(ShadowViewAddon.CopyTextView, Object.assign({}, props));
|
|
3404
3921
|
}
|
|
3405
3922
|
};
|
|
3406
3923
|
function useDemoShareCode(props) {
|
|
3407
3924
|
const [open, setOpen] = stencilHooks_module.useState(false);
|
|
3408
|
-
const
|
|
3925
|
+
const copyString = "SHARECODE001";
|
|
3409
3926
|
return cjs.cjs({
|
|
3410
|
-
|
|
3927
|
+
copyString: copyString,
|
|
3411
3928
|
tooltiptext: props.tooltiptext,
|
|
3929
|
+
textAlign: props.textAlign,
|
|
3930
|
+
copyButtonLabel: props.copyButtonLabel,
|
|
3931
|
+
buttonStyle: props.buttonStyle,
|
|
3932
|
+
rewardStatus: "AVAILABLE",
|
|
3412
3933
|
open,
|
|
3413
3934
|
onClick: () => {
|
|
3414
3935
|
// Should well supported: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
|
|
3415
3936
|
// Only if called from a user-initiated event
|
|
3416
|
-
navigator.clipboard.writeText(
|
|
3937
|
+
navigator.clipboard.writeText(copyString);
|
|
3417
3938
|
setOpen(true);
|
|
3418
3939
|
setTimeout(() => setOpen(false), props.tooltiplifespan);
|
|
3419
3940
|
},
|
|
@@ -3424,17 +3945,39 @@ const ShareLink = class {
|
|
|
3424
3945
|
constructor(hostRef) {
|
|
3425
3946
|
index.registerInstance(this, hostRef);
|
|
3426
3947
|
/**
|
|
3427
|
-
* Shown inside a tooltip after someone has successfully copied the link to their clipboard
|
|
3948
|
+
* Shown inside a tooltip after someone has successfully copied the link to their clipboard
|
|
3428
3949
|
*
|
|
3429
|
-
* @uiName Tooltip
|
|
3950
|
+
* @uiName Tooltip text
|
|
3430
3951
|
*/
|
|
3431
3952
|
this.tooltiptext = "Copied to Clipboard";
|
|
3432
3953
|
/**
|
|
3433
3954
|
* The number of milliseconds that the tooltip appears for
|
|
3434
3955
|
*
|
|
3435
|
-
* @uiName Tooltip
|
|
3956
|
+
* @uiName Tooltip lifespan
|
|
3436
3957
|
*/
|
|
3437
3958
|
this.tooltiplifespan = 1000;
|
|
3959
|
+
/**
|
|
3960
|
+
* Change the text alignment
|
|
3961
|
+
*
|
|
3962
|
+
* @uiName Share link alignment
|
|
3963
|
+
* @uiType string
|
|
3964
|
+
* @uiEnum ["left", "center", "right"]
|
|
3965
|
+
* @uiEnumNames ["Left", "Center", "Right"]
|
|
3966
|
+
*/
|
|
3967
|
+
this.textAlign = "left";
|
|
3968
|
+
/**
|
|
3969
|
+
* @uiName Copy button label
|
|
3970
|
+
*/
|
|
3971
|
+
this.copyButtonLabel = "Copy Link";
|
|
3972
|
+
/**
|
|
3973
|
+
* Set the copy button style and placement
|
|
3974
|
+
*
|
|
3975
|
+
* @uiName Style
|
|
3976
|
+
* @uiType string
|
|
3977
|
+
* @uiEnum ["icon", "button-outside", "button-below"]
|
|
3978
|
+
* @uiEnumNames ["Icon", "Button outside", "Button below"]
|
|
3979
|
+
*/
|
|
3980
|
+
this.buttonStyle = "icon";
|
|
3438
3981
|
stencilHooks_module.h$1(this);
|
|
3439
3982
|
}
|
|
3440
3983
|
disconnectedCallback() { }
|
|
@@ -3443,20 +3986,24 @@ const ShareLink = class {
|
|
|
3443
3986
|
const props = index_module.isDemo()
|
|
3444
3987
|
? useDemoShareLink(thisProps)
|
|
3445
3988
|
: ShadowViewAddon.useShareLink(thisProps);
|
|
3446
|
-
return index.h(ShadowViewAddon.
|
|
3989
|
+
return index.h(ShadowViewAddon.CopyTextView, Object.assign({}, props));
|
|
3447
3990
|
}
|
|
3448
3991
|
};
|
|
3449
3992
|
function useDemoShareLink(props) {
|
|
3450
3993
|
const [open, setOpen] = stencilHooks_module.useState(false);
|
|
3451
|
-
const
|
|
3994
|
+
const copyString = "https://www.example.com/sharelink/abc";
|
|
3452
3995
|
return cjs.cjs({
|
|
3453
|
-
|
|
3996
|
+
copyString: copyString,
|
|
3454
3997
|
tooltiptext: props.tooltiptext,
|
|
3998
|
+
textAlign: props.textAlign,
|
|
3999
|
+
buttonStyle: props.buttonStyle,
|
|
4000
|
+
copyButtonLabel: props.copyButtonLabel,
|
|
4001
|
+
rewardStatus: "AVAILABLE",
|
|
3455
4002
|
open,
|
|
3456
4003
|
onClick: () => {
|
|
3457
4004
|
// Should well supported: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
|
|
3458
4005
|
// Only if called from a user-initiated event
|
|
3459
|
-
navigator.clipboard.writeText(
|
|
4006
|
+
navigator.clipboard.writeText(copyString);
|
|
3460
4007
|
setOpen(true);
|
|
3461
4008
|
setTimeout(() => setOpen(false), props.tooltiplifespan);
|
|
3462
4009
|
},
|
|
@@ -3468,7 +4015,7 @@ const StatContainer = class {
|
|
|
3468
4015
|
index.registerInstance(this, hostRef);
|
|
3469
4016
|
this.ignored = true;
|
|
3470
4017
|
/**
|
|
3471
|
-
* @uiName Space
|
|
4018
|
+
* @uiName Space between stats
|
|
3472
4019
|
* @uiType string
|
|
3473
4020
|
* @uiEnum ["none", "xxx-small", "xx-small", "x-small", "small", "medium", "large", "x-large", "xx-large", "xxx-large", "xxxx-large"]
|
|
3474
4021
|
* @uiEnumNames ["None", "XXX-Small", "XX-Small", "X-Small", "Small", "Medium", "Large", "X-Large", "XX-Large", "XXX-Large", "XXXX-Large"]
|
|
@@ -3492,7 +4039,7 @@ const StatContainer = class {
|
|
|
3492
4039
|
const TableCell = class {
|
|
3493
4040
|
constructor(hostRef) {
|
|
3494
4041
|
index.registerInstance(this, hostRef);
|
|
3495
|
-
/** @uiName Column
|
|
4042
|
+
/** @uiName Column span */
|
|
3496
4043
|
this.colspan = 1;
|
|
3497
4044
|
/** @uiName Padding */
|
|
3498
4045
|
this.padding = "15px 10px";
|
|
@@ -3515,18 +4062,18 @@ const TableRow = class {
|
|
|
3515
4062
|
}
|
|
3516
4063
|
};
|
|
3517
4064
|
|
|
3518
|
-
const SEND_EVENT = index_module.dist.gql `
|
|
3519
|
-
mutation taskCardEvent($userEventInput: UserEventInput!) {
|
|
3520
|
-
logUserEvent(userEventInput: $userEventInput) {
|
|
3521
|
-
userId
|
|
3522
|
-
}
|
|
3523
|
-
}
|
|
4065
|
+
const SEND_EVENT = index_module.dist.gql `
|
|
4066
|
+
mutation taskCardEvent($userEventInput: UserEventInput!) {
|
|
4067
|
+
logUserEvent(userEventInput: $userEventInput) {
|
|
4068
|
+
userId
|
|
4069
|
+
}
|
|
4070
|
+
}
|
|
3524
4071
|
`;
|
|
3525
4072
|
function useTaskCard(props) {
|
|
3526
|
-
const user = index_module.
|
|
3527
|
-
const locale = index_module.
|
|
3528
|
-
const [sendUserEvent, { data, loading: loadingEvent }] = index_module.
|
|
3529
|
-
const { refresh } = index_module.
|
|
4073
|
+
const user = index_module.L();
|
|
4074
|
+
const locale = index_module.W();
|
|
4075
|
+
const [sendUserEvent, { data, loading: loadingEvent }] = index_module.Ie(SEND_EVENT);
|
|
4076
|
+
const { refresh } = index_module._e();
|
|
3530
4077
|
stencilHooks_module.useEffect(() => {
|
|
3531
4078
|
if (data) {
|
|
3532
4079
|
refresh();
|
|
@@ -3561,12 +4108,12 @@ const TaskCard = class {
|
|
|
3561
4108
|
index.registerInstance(this, hostRef);
|
|
3562
4109
|
this.ignored = true;
|
|
3563
4110
|
/**
|
|
3564
|
-
* @uiName Reward
|
|
4111
|
+
* @uiName Reward amount
|
|
3565
4112
|
* @uiGroup Reward
|
|
3566
4113
|
*/
|
|
3567
4114
|
this.rewardAmount = "0";
|
|
3568
4115
|
/**
|
|
3569
|
-
* @uiName Reward
|
|
4116
|
+
* @uiName Reward unit
|
|
3570
4117
|
* @uiGroup Reward
|
|
3571
4118
|
*/
|
|
3572
4119
|
this.rewardUnit = "Points";
|
|
@@ -3581,7 +4128,7 @@ const TaskCard = class {
|
|
|
3581
4128
|
*/
|
|
3582
4129
|
this.description = "";
|
|
3583
4130
|
/**
|
|
3584
|
-
* @uiName Goal
|
|
4131
|
+
* @uiName Goal repeatable
|
|
3585
4132
|
* @uiGroup Goal
|
|
3586
4133
|
* @default
|
|
3587
4134
|
*/
|
|
@@ -3589,12 +4136,12 @@ const TaskCard = class {
|
|
|
3589
4136
|
/**
|
|
3590
4137
|
* The number of times a task can be completed when repeatable. Use zero for no limit (the default).
|
|
3591
4138
|
*
|
|
3592
|
-
* @uiName Repeat
|
|
4139
|
+
* @uiName Repeat amount
|
|
3593
4140
|
* @uiGroup Reward
|
|
3594
4141
|
*/
|
|
3595
4142
|
this.finite = 0;
|
|
3596
4143
|
/**
|
|
3597
|
-
* @uiName Show
|
|
4144
|
+
* @uiName Show progress bar
|
|
3598
4145
|
* @uiGroup Goal
|
|
3599
4146
|
* @default
|
|
3600
4147
|
*/
|
|
@@ -3602,12 +4149,12 @@ const TaskCard = class {
|
|
|
3602
4149
|
/**
|
|
3603
4150
|
* Sets the goal for users progress to know when a task has been completed. If repeatable is checked, repeatable goals is an increment of this.
|
|
3604
4151
|
*
|
|
3605
|
-
* @uiName Goal
|
|
4152
|
+
* @uiName Goal completion number
|
|
3606
4153
|
* @uiGroup Goal
|
|
3607
4154
|
*/
|
|
3608
4155
|
this.goal = 1;
|
|
3609
4156
|
/**
|
|
3610
|
-
* @uiName Progress
|
|
4157
|
+
* @uiName Progress bar steps
|
|
3611
4158
|
* @uiGroup Goal
|
|
3612
4159
|
* @default
|
|
3613
4160
|
*/
|
|
@@ -3615,47 +4162,47 @@ const TaskCard = class {
|
|
|
3615
4162
|
/**
|
|
3616
4163
|
* The unit displayed to the right of steps and progress numbers on the progress bar. Ex: $ for dollars
|
|
3617
4164
|
*
|
|
3618
|
-
* @uiName Progress
|
|
4165
|
+
* @uiName Progress bar unit
|
|
3619
4166
|
* @uiGroup Goal
|
|
3620
4167
|
*/
|
|
3621
4168
|
this.progressBarUnit = "";
|
|
3622
4169
|
/**
|
|
3623
4170
|
* Displayed when a user views a task card after the reward duration interval.
|
|
3624
4171
|
*
|
|
3625
|
-
* @uiName Expiry
|
|
4172
|
+
* @uiName Expiry date message
|
|
3626
4173
|
* @uiGroup Task
|
|
3627
4174
|
*/
|
|
3628
4175
|
this.expiryMessage = "Ends {endDate}";
|
|
3629
4176
|
/**
|
|
3630
4177
|
* Shown to users before the start of the task duration.
|
|
3631
4178
|
*
|
|
3632
|
-
* @uiName Start
|
|
4179
|
+
* @uiName Start date message
|
|
3633
4180
|
* @uiGroup Task
|
|
3634
4181
|
*/
|
|
3635
4182
|
this.startsOnMessage = "Starts {startDate}";
|
|
3636
4183
|
/**
|
|
3637
4184
|
* Shown to users after the end of the task duration.
|
|
3638
4185
|
*
|
|
3639
|
-
* @uiName Ended
|
|
4186
|
+
* @uiName Ended date message
|
|
3640
4187
|
* @uiGroup Task
|
|
3641
4188
|
*/
|
|
3642
4189
|
this.endedMessage = "Ended {endDate}";
|
|
3643
4190
|
/**
|
|
3644
4191
|
* Displays the amount of times that a user has completed a repeatable task.
|
|
3645
4192
|
*
|
|
3646
|
-
* @uiName Completed
|
|
4193
|
+
* @uiName Completed count text
|
|
3647
4194
|
* @uiGroup Task
|
|
3648
4195
|
* @uiWidget textArea
|
|
3649
4196
|
*/
|
|
3650
4197
|
this.completedText = "Completed {finite, select, 0 {{count, plural, =1 {{count} time} other {{count} times}}} other {{count}/{finite} times}}";
|
|
3651
4198
|
/**
|
|
3652
|
-
* @uiName Button
|
|
4199
|
+
* @uiName Button text
|
|
3653
4200
|
* @uiGroup Button
|
|
3654
4201
|
*/
|
|
3655
4202
|
this.buttonText = "Complete Action";
|
|
3656
4203
|
/**
|
|
3657
|
-
* Button
|
|
3658
|
-
* @uiName Open
|
|
4204
|
+
* Button link opens in new tab
|
|
4205
|
+
* @uiName Open in new tab
|
|
3659
4206
|
* @uiGroup Button
|
|
3660
4207
|
* @default
|
|
3661
4208
|
*/
|
|
@@ -3713,14 +4260,14 @@ const Timeline = class {
|
|
|
3713
4260
|
// incase child is not sqm-timeline-entry
|
|
3714
4261
|
}
|
|
3715
4262
|
});
|
|
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
|
-
}
|
|
4263
|
+
const vanillaStyle = `
|
|
4264
|
+
:host{
|
|
4265
|
+
display: block;
|
|
4266
|
+
}
|
|
4267
|
+
|
|
4268
|
+
::slotted(*:not(:only-child):not(:last-child)) {
|
|
4269
|
+
margin-bottom: var(--sl-spacing-xx-large);
|
|
4270
|
+
}
|
|
3724
4271
|
`;
|
|
3725
4272
|
return (index.h("div", null, index.h("style", { type: "text/css" }, vanillaStyle), index.h("slot", null)));
|
|
3726
4273
|
}
|
|
@@ -3734,7 +4281,7 @@ const Gift = () => (index.h("svg", { width: "24", height: "24", viewBox: "0 0 24
|
|
|
3734
4281
|
const Circle = () => (index.h("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
3735
4282
|
index.h("circle", { cx: "12", cy: "12", r: "9", fill: "currentColor", stroke: "currentColor", "stroke-width": "2" })));
|
|
3736
4283
|
|
|
3737
|
-
const style$
|
|
4284
|
+
const style$3 = {
|
|
3738
4285
|
TimelineReward: {
|
|
3739
4286
|
color: "var(--sl-color-neutral-900)",
|
|
3740
4287
|
lineHeight: "var(--sl-line-height-dense)",
|
|
@@ -3777,25 +4324,25 @@ const style$2 = {
|
|
|
3777
4324
|
},
|
|
3778
4325
|
},
|
|
3779
4326
|
};
|
|
3780
|
-
const sheet$
|
|
3781
|
-
const styleString$
|
|
3782
|
-
const vanillaStyle$
|
|
3783
|
-
:host{
|
|
3784
|
-
display: block;
|
|
3785
|
-
}
|
|
3786
|
-
|
|
3787
|
-
:host(:not(:last-of-type)) .line {
|
|
3788
|
-
display: block;
|
|
3789
|
-
}
|
|
4327
|
+
const sheet$3 = JSS.createStyleSheet(style$3);
|
|
4328
|
+
const styleString$3 = sheet$3.toString();
|
|
4329
|
+
const vanillaStyle$2 = `
|
|
4330
|
+
:host{
|
|
4331
|
+
display: block;
|
|
4332
|
+
}
|
|
4333
|
+
|
|
4334
|
+
:host(:not(:last-of-type)) .line {
|
|
4335
|
+
display: block;
|
|
4336
|
+
}
|
|
3790
4337
|
`;
|
|
3791
4338
|
function TimelineEntryView(props) {
|
|
3792
4339
|
var _a;
|
|
3793
4340
|
const timeline_icon = (_a = props.icon) !== null && _a !== void 0 ? _a : props.iconState;
|
|
3794
|
-
return (index.h("div", { class: sheet$
|
|
4341
|
+
return (index.h("div", { class: sheet$3.classes.TimelineReward, part: "sqm-base" },
|
|
3795
4342
|
index.h("style", { type: "text/css" },
|
|
3796
|
-
styleString$
|
|
3797
|
-
vanillaStyle$
|
|
3798
|
-
index.h("div", { class: "container" },
|
|
4343
|
+
styleString$3,
|
|
4344
|
+
vanillaStyle$2),
|
|
4345
|
+
index.h("div", { class: "container", part: "sqm-entry-container" },
|
|
3799
4346
|
index.h("div", { class: "line" }, "/"),
|
|
3800
4347
|
index.h("div", { class: "step" },
|
|
3801
4348
|
timeline_icon === "gift" && (index.h("div", { class: "icon" },
|
|
@@ -3804,9 +4351,9 @@ function TimelineEntryView(props) {
|
|
|
3804
4351
|
index.h(Circle, null))),
|
|
3805
4352
|
index.h("div", null,
|
|
3806
4353
|
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))))));
|
|
4354
|
+
index.h("span", { class: "reward", part: "sqm-reward" }, props.reward),
|
|
4355
|
+
index.h("span", { class: "unit", part: "sqm-unit" }, props.unit)),
|
|
4356
|
+
index.h("div", { class: "description", part: "sqm-description" }, props.desc))))));
|
|
3810
4357
|
}
|
|
3811
4358
|
|
|
3812
4359
|
const TimelineReward = class {
|
|
@@ -3830,20 +4377,20 @@ function UserNameView(props) {
|
|
|
3830
4377
|
return index.h(index.Host, null, props.loading ? props.loadingText : props.username);
|
|
3831
4378
|
}
|
|
3832
4379
|
|
|
3833
|
-
const GET_USER_NAME = index_module.dist.gql `
|
|
3834
|
-
query getUserName {
|
|
3835
|
-
viewer {
|
|
3836
|
-
... on User {
|
|
3837
|
-
firstName
|
|
3838
|
-
lastName
|
|
3839
|
-
}
|
|
3840
|
-
}
|
|
3841
|
-
}
|
|
4380
|
+
const GET_USER_NAME = index_module.dist.gql `
|
|
4381
|
+
query getUserName {
|
|
4382
|
+
viewer {
|
|
4383
|
+
... on User {
|
|
4384
|
+
firstName
|
|
4385
|
+
lastName
|
|
4386
|
+
}
|
|
4387
|
+
}
|
|
4388
|
+
}
|
|
3842
4389
|
`;
|
|
3843
4390
|
function useUserName(props) {
|
|
3844
4391
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
3845
|
-
const user = index_module.
|
|
3846
|
-
const res = index_module.
|
|
4392
|
+
const user = index_module.L();
|
|
4393
|
+
const res = index_module.mn(GET_USER_NAME, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
3847
4394
|
const loading = res.loading;
|
|
3848
4395
|
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
4396
|
? `${(_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}`
|
|
@@ -3860,12 +4407,12 @@ const UserName = class {
|
|
|
3860
4407
|
index.registerInstance(this, hostRef);
|
|
3861
4408
|
this.ignored = true;
|
|
3862
4409
|
/**
|
|
3863
|
-
* @uiName Unknown
|
|
4410
|
+
* @uiName Unknown user name
|
|
3864
4411
|
*/
|
|
3865
4412
|
this.fallback = "Anonymous User";
|
|
3866
4413
|
/**
|
|
3867
4414
|
* Text displayed while the participant’s name is loading.
|
|
3868
|
-
* @uiName Loading
|
|
4415
|
+
* @uiName Loading text
|
|
3869
4416
|
*/
|
|
3870
4417
|
this.loadingText = "...";
|
|
3871
4418
|
stencilHooks_module.h$1(this);
|
|
@@ -3888,16 +4435,20 @@ exports.sqm_big_stat = BigStat;
|
|
|
3888
4435
|
exports.sqm_brand = BrandComponent;
|
|
3889
4436
|
exports.sqm_card_feed = CardFeed;
|
|
3890
4437
|
exports.sqm_checkbox_field = CheckboxField;
|
|
4438
|
+
exports.sqm_coupon_code = CouponCode;
|
|
3891
4439
|
exports.sqm_divided_layout = DividedLayout;
|
|
3892
4440
|
exports.sqm_dropdown_field = DropdownField;
|
|
3893
4441
|
exports.sqm_edit_profile = EditProfile;
|
|
4442
|
+
exports.sqm_hero = Hero;
|
|
3894
4443
|
exports.sqm_hero_image = HeroImage;
|
|
3895
4444
|
exports.sqm_hook_story_container = SqmHookStoryContainer;
|
|
3896
4445
|
exports.sqm_input_field = InputField;
|
|
3897
4446
|
exports.sqm_leaderboard = Leaderboard;
|
|
4447
|
+
exports.sqm_link_button = LinkButton;
|
|
3898
4448
|
exports.sqm_name_fields = NameFields;
|
|
3899
4449
|
exports.sqm_navigation_menu = NavigationMenu;
|
|
3900
4450
|
exports.sqm_portal_change_password = PortalChangePassword;
|
|
4451
|
+
exports.sqm_portal_footer = PortalFooter;
|
|
3901
4452
|
exports.sqm_portal_frame = PortalFrame;
|
|
3902
4453
|
exports.sqm_portal_login = PortalLogin;
|
|
3903
4454
|
exports.sqm_portal_register = PortalRegister;
|