@saasquatch/mint-components 1.6.8-9 → 1.6.8
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-380b83e2.js → GenericTableView-9271483b.js} +2 -7
- package/dist/cjs/{ShadowViewAddon-b706b992.js → ShadowViewAddon-952b4df5.js} +426 -546
- package/dist/cjs/{global-48c25606.js → global-0b8cbb00.js} +654 -654
- package/dist/cjs/{index.module-f6afc139.js → index.module-c6626247.js} +17 -50
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/mint-components.cjs.js +3 -3
- package/dist/cjs/{re-render-552514cb.js → re-render-fce04f85.js} +2 -2
- package/dist/cjs/{sqm-asset-card-view-79099616.js → sqm-asset-card-view-59c39ed2.js} +2 -2
- package/dist/cjs/sqm-asset-card.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-big-stat_37.cjs.entry.js → sqm-big-stat_35.cjs.entry.js} +324 -572
- package/dist/cjs/sqm-empty_5.cjs.entry.js +54 -54
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +3 -3
- package/dist/cjs/sqm-header-logo.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-hero-view-ddd1ef43.js → sqm-hero-view-55ae68f9.js} +18 -18
- package/dist/cjs/sqm-hero.cjs.entry.js +1 -1
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +16 -16
- package/dist/cjs/{sqm-navigation-sidebar-item-view-c39b695c.js → sqm-navigation-sidebar-item-view-8b4f304f.js} +4 -4
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-navigation-sidebar-view-b830e8d8.js → sqm-navigation-sidebar-view-4704aa73.js} +143 -143
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +3 -3
- package/dist/cjs/sqm-password-field.cjs.entry.js +12 -12
- package/dist/cjs/sqm-popup-container.cjs.entry.js +6 -6
- package/dist/cjs/{sqm-portal-container-view-6accb54a.js → sqm-portal-container-view-5beae29c.js} +7 -7
- package/dist/cjs/{sqm-portal-email-verification-view-2e646897.js → sqm-portal-email-verification-view-26c166dc.js} +9 -9
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +8 -8
- package/dist/cjs/sqm-portal-footer-view-c249df2d.js +82 -0
- package/dist/cjs/sqm-portal-footer.cjs.entry.js +68 -0
- package/dist/cjs/{sqm-portal-forgot-password-view-f73bb724.js → sqm-portal-forgot-password-view-235733ea.js} +9 -9
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +5 -5
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-profile-view-52bc73ad.js → sqm-portal-profile-view-14d2f91d.js} +3 -3
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +39 -39
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +5 -5
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +33 -33
- package/dist/cjs/{sqm-portal-reset-password-view-e182df83.js → sqm-portal-reset-password-view-803a56be.js} +8 -8
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +8 -8
- package/dist/cjs/{sqm-portal-verify-email-view-fd739843.js → sqm-portal-verify-email-view-6741f5bd.js} +9 -9
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +7 -7
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +14 -14
- package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +1 -1
- package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +2 -2
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +113 -113
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +5562 -5856
- package/dist/cjs/sqm-tab.cjs.entry.js +2 -2
- package/dist/cjs/sqm-tabs.cjs.entry.js +7 -7
- package/dist/cjs/{sqm-text-span-view-3c734dbb.js → sqm-text-span-view-c34577fa.js} +8 -8
- package/dist/cjs/sqm-text-span.cjs.entry.js +1 -1
- package/dist/cjs/{useChildElements-a8f7f5ca.js → useChildElements-eaa9e49d.js} +1 -1
- package/dist/cjs/{useReferralTable-f53a9a1b.js → useReferralTable-f3e792eb.js} +189 -189
- package/dist/cjs/{useRegistrationFormState-99160dad.js → useRegistrationFormState-a1861717.js} +1 -1
- package/dist/collection/collection-manifest.json +0 -5
- package/dist/collection/components/sqm-asset-card/sqm-asset-card-view.js +2 -2
- package/dist/collection/components/sqm-big-stat/useBigStat.js +238 -238
- package/dist/collection/components/sqm-brand/sqm-brand.js +21 -21
- package/dist/collection/components/sqm-card-feed/sqm-card-feed-view.js +6 -6
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field-view.js +15 -15
- package/dist/collection/components/sqm-divided-layout/sqm-divided-layout-view.js +16 -16
- package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field-view.js +11 -11
- package/dist/collection/components/sqm-edit-profile/sqm-edit-profile-view.js +4 -4
- 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-header-logo/sqm-header-logo.js +1 -1
- package/dist/collection/components/sqm-hero/sqm-hero-view.js +18 -18
- package/dist/collection/components/sqm-hero-image/sqm-hero-image-view.js +13 -12
- package/dist/collection/components/sqm-image/sqm-image-view.js +6 -6
- package/dist/collection/components/sqm-input-field/sqm-input-field-view.js +7 -7
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +6 -6
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +2 -2
- package/dist/collection/components/sqm-leaderboard/useLeaderboard.js +40 -40
- package/dist/collection/components/sqm-leaderboard-rank/sqm-leaderboard-rank.js +2 -2
- package/dist/collection/components/sqm-leaderboard-rank/useLeaderboardRank.js +12 -12
- package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +11 -11
- package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar-view.js +143 -143
- package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view.js +2 -2
- package/dist/collection/components/sqm-password-field/sqm-password-field-view.js +10 -10
- package/dist/collection/components/sqm-popup-container/sqm-popup-container-view.js +2 -2
- package/dist/collection/components/sqm-portal-container/sqm-portal-container-view.js +5 -5
- package/dist/collection/components/sqm-portal-container/sqm-portal-container.js +1 -1
- package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification-view.js +7 -7
- package/dist/collection/components/sqm-portal-footer/PortalFooter.stories.js +0 -1
- package/dist/collection/components/sqm-portal-footer/sqm-portal-footer-view.js +13 -15
- package/dist/collection/components/sqm-portal-footer/sqm-portal-footer.js +0 -25
- package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.js +8 -8
- 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-profile/sqm-portal-profile-view.js +1 -1
- package/dist/collection/components/sqm-portal-profile/usePortalProfile.js +32 -32
- package/dist/collection/components/sqm-portal-register/sqm-portal-register-view.js +15 -15
- package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form-view.js +15 -15
- package/dist/collection/components/sqm-portal-registration-form/usePortalRegistrationForm.js +12 -12
- package/dist/collection/components/sqm-portal-reset-password/sqm-portal-reset-password-view.js +7 -7
- package/dist/collection/components/sqm-portal-verify-email/sqm-portal-verify-email-view.js +8 -8
- package/dist/collection/components/sqm-program-explainer/sqm-program-explainer-view.js +12 -12
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step-view.js +13 -13
- package/dist/collection/components/sqm-referral-card/ReferralCard.stories.js +0 -12
- package/dist/collection/components/sqm-referral-card/sqm-referral-card-view.js +13 -21
- package/dist/collection/components/sqm-referral-card/sqm-referral-card.js +1 -3
- package/dist/collection/components/sqm-referral-iframe/useReferralIframe.js +8 -8
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +7 -7
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-date-column.js +2 -2
- package/dist/collection/components/sqm-referral-table/sqm-referral-table.js +2 -2
- package/dist/collection/components/sqm-referral-table/useReferralTable.js +183 -183
- package/dist/collection/components/sqm-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/useRewardExchangeList.js +51 -51
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.js +3 -3
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.js +1 -1
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.js +1 -1
- package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +2 -2
- package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +103 -103
- package/dist/collection/components/sqm-router/Router.stories.js +71 -71
- package/dist/collection/components/sqm-router/sqm-router.css +7 -7
- package/dist/collection/components/sqm-scroll/Scroll.stories.js +50 -50
- package/dist/collection/components/sqm-scroll/sqm-scroll.js +13 -13
- package/dist/collection/components/sqm-share-button/sqm-share-button-view.js +22 -22
- package/dist/collection/components/sqm-share-button/sqm-share-button.js +5 -5
- package/dist/collection/components/sqm-share-button/useShareButton.js +17 -17
- package/dist/collection/components/sqm-share-code/ShareCode.stories.js +1 -39
- package/dist/collection/components/sqm-share-code/sqm-share-code.js +9 -117
- package/dist/collection/components/sqm-share-code/useShareCode.js +15 -15
- package/dist/collection/components/sqm-share-link/ShareLink.stories.js +7 -44
- package/dist/collection/components/sqm-share-link/UseShareLink.stories.js +4 -4
- package/dist/collection/components/sqm-share-link/sqm-share-link-view.js +18 -0
- package/dist/collection/components/sqm-share-link/sqm-share-link.js +9 -117
- 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-stencilbook/Resizer.js +24 -24
- package/dist/collection/components/sqm-stencilbook/Themes.js +25 -25
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +0 -8
- package/dist/collection/components/sqm-tabs/Tabs.stories.js +475 -475
- package/dist/collection/components/sqm-tabs/sqm-tabs-view.js +4 -4
- package/dist/collection/components/sqm-task-card/DetailsView.js +1 -1
- package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +14 -15
- 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.js +8 -8
- package/dist/collection/components/sqm-titled-section/sqm-portal-section-view.js +2 -2
- package/dist/collection/components/sqm-user-name/useUserName.js +9 -9
- package/dist/collection/global/styles.js +653 -653
- package/dist/collection/global/styles.ts +729 -729
- package/dist/collection/stories/NewPortal.stories.js +5 -5
- package/dist/collection/stories/PortalTemplates.stories.js +1 -1
- package/dist/collection/stories/Widget.stories.js +0 -21
- package/dist/collection/tables/GenericTableView.js +2 -7
- package/dist/esm/{GenericTableView-266126f9.js → GenericTableView-ce26115f.js} +2 -7
- package/dist/esm/{ShadowViewAddon-8acfeb00.js → ShadowViewAddon-40692fc1.js} +426 -544
- package/dist/esm/{global-170c4499.js → global-27ee1626.js} +654 -654
- package/dist/esm/{index.module-0ba0774e.js → index.module-3c720e8f.js} +9 -41
- package/dist/esm/loader.js +3 -3
- package/dist/esm/mint-components.js +3 -3
- package/dist/esm/{re-render-22de5b23.js → re-render-695ddbbd.js} +2 -2
- package/dist/esm/{sqm-asset-card-view-b2ac5a23.js → sqm-asset-card-view-b0f8ef8e.js} +2 -2
- package/dist/esm/sqm-asset-card.entry.js +2 -2
- package/dist/esm/{sqm-big-stat_37.entry.js → sqm-big-stat_35.entry.js} +325 -571
- package/dist/esm/sqm-empty_5.entry.js +54 -54
- package/dist/esm/sqm-graphql-client-provider.entry.js +3 -3
- package/dist/esm/sqm-header-logo.entry.js +1 -1
- package/dist/esm/{sqm-hero-view-875c927d.js → sqm-hero-view-fa98c30f.js} +18 -18
- package/dist/esm/sqm-hero.entry.js +1 -1
- package/dist/esm/sqm-leaderboard-rank.entry.js +16 -16
- package/dist/esm/{sqm-navigation-sidebar-item-view-5a4ac267.js → sqm-navigation-sidebar-item-view-6f909ba7.js} +4 -4
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +3 -3
- package/dist/esm/{sqm-navigation-sidebar-view-feb719ce.js → sqm-navigation-sidebar-view-06a9d083.js} +143 -143
- package/dist/esm/sqm-navigation-sidebar.entry.js +3 -3
- package/dist/esm/sqm-password-field.entry.js +12 -12
- package/dist/esm/sqm-popup-container.entry.js +6 -6
- package/dist/esm/{sqm-portal-container-view-83b417f0.js → sqm-portal-container-view-2307476f.js} +7 -7
- package/dist/esm/{sqm-portal-email-verification-view-889fcc01.js → sqm-portal-email-verification-view-edb82534.js} +9 -9
- package/dist/esm/sqm-portal-email-verification.entry.js +8 -8
- package/dist/esm/sqm-portal-footer-view-ab195d54.js +79 -0
- package/dist/esm/sqm-portal-footer.entry.js +64 -0
- package/dist/esm/{sqm-portal-forgot-password-view-9970dee2.js → sqm-portal-forgot-password-view-5bcdabac.js} +9 -9
- package/dist/esm/sqm-portal-forgot-password.entry.js +5 -5
- package/dist/esm/sqm-portal-logout.entry.js +2 -2
- package/dist/esm/{sqm-portal-profile-view-ac955752.js → sqm-portal-profile-view-5e35bbe0.js} +3 -3
- package/dist/esm/sqm-portal-profile.entry.js +39 -39
- package/dist/esm/sqm-portal-protected-route.entry.js +5 -5
- package/dist/esm/sqm-portal-registration-form.entry.js +33 -33
- package/dist/esm/{sqm-portal-reset-password-view-1f0f3bf8.js → sqm-portal-reset-password-view-aebadea5.js} +8 -8
- package/dist/esm/sqm-portal-reset-password.entry.js +8 -8
- package/dist/esm/{sqm-portal-verify-email-view-8d453021.js → sqm-portal-verify-email-view-4ba9cbb9.js} +9 -9
- package/dist/esm/sqm-portal-verify-email.entry.js +7 -7
- package/dist/esm/sqm-referral-table_11.entry.js +14 -14
- package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +1 -1
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +2 -2
- package/dist/esm/sqm-rewards-table_9.entry.js +113 -113
- package/dist/esm/sqm-stencilbook.entry.js +5554 -5848
- package/dist/esm/sqm-tab.entry.js +2 -2
- package/dist/esm/sqm-tabs.entry.js +7 -7
- package/dist/esm/{sqm-text-span-view-2f7d6d14.js → sqm-text-span-view-f1cacc75.js} +8 -8
- package/dist/esm/sqm-text-span.entry.js +1 -1
- package/dist/esm/{useChildElements-fd458906.js → useChildElements-79be4145.js} +1 -1
- package/dist/esm/{useReferralTable-a3d6051e.js → useReferralTable-5c18f7c5.js} +189 -189
- package/dist/esm/{useRegistrationFormState-29e30121.js → useRegistrationFormState-6ce2e16f.js} +1 -1
- package/dist/esm-es5/GenericTableView-ce26115f.js +1 -0
- package/dist/esm-es5/ShadowViewAddon-40692fc1.js +1 -0
- package/dist/esm-es5/{global-170c4499.js → global-27ee1626.js} +1 -1
- package/dist/esm-es5/index.module-3c720e8f.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/{re-render-22de5b23.js → re-render-695ddbbd.js} +1 -1
- package/dist/esm-es5/sqm-asset-card-view-b0f8ef8e.js +1 -0
- package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_35.entry.js +1 -0
- package/dist/esm-es5/sqm-empty_5.entry.js +1 -1
- package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm-es5/sqm-header-logo.entry.js +1 -1
- package/dist/esm-es5/{sqm-hero-view-875c927d.js → sqm-hero-view-fa98c30f.js} +1 -1
- package/dist/esm-es5/sqm-hero.entry.js +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-6f909ba7.js +1 -0
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/{sqm-navigation-sidebar-view-feb719ce.js → sqm-navigation-sidebar-view-06a9d083.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-2307476f.js +1 -0
- package/dist/esm-es5/{sqm-portal-email-verification-view-889fcc01.js → sqm-portal-email-verification-view-edb82534.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-footer-view-ab195d54.js +1 -0
- package/dist/esm-es5/sqm-portal-footer.entry.js +1 -0
- package/dist/esm-es5/sqm-portal-forgot-password-view-5bcdabac.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-5e35bbe0.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-1f0f3bf8.js → sqm-portal-reset-password-view-aebadea5.js} +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-verify-email-view-4ba9cbb9.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-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-2f7d6d14.js → sqm-text-span-view-f1cacc75.js} +1 -1
- package/dist/esm-es5/sqm-text-span.entry.js +1 -1
- package/dist/esm-es5/{useChildElements-fd458906.js → useChildElements-79be4145.js} +1 -1
- package/dist/esm-es5/{useReferralTable-a3d6051e.js → useReferralTable-5c18f7c5.js} +1 -1
- package/dist/esm-es5/{useRegistrationFormState-29e30121.js → useRegistrationFormState-6ce2e16f.js} +1 -1
- package/dist/mint-components/global/styles.ts +729 -729
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/p-02356211.system.entry.js +1 -0
- package/dist/mint-components/{p-e633ae08.entry.js → p-03bf73ac.entry.js} +1 -1
- package/dist/mint-components/{p-9076f688.js → p-0b095d21.js} +1 -1
- package/dist/mint-components/p-0d32da24.js +1 -0
- package/dist/mint-components/{p-19244318.system.entry.js → p-1450de85.system.entry.js} +1 -1
- package/dist/mint-components/{p-96b05458.system.entry.js → p-14c9767e.system.entry.js} +1 -1
- package/dist/mint-components/{p-6e9cfc74.entry.js → p-17c14be1.entry.js} +1 -1
- package/dist/mint-components/{p-bd037777.entry.js → p-1866c07f.entry.js} +1 -1
- package/dist/mint-components/{p-730db569.system.entry.js → p-1c2c05ea.system.entry.js} +1 -1
- package/dist/mint-components/p-1cb208fd.system.js +1 -0
- package/dist/mint-components/{p-0597b64f.js → p-1d1fac2c.js} +1 -1
- package/dist/mint-components/p-1e346217.system.entry.js +1 -0
- package/dist/mint-components/{p-c4b6454d.system.entry.js → p-1ea19d11.system.entry.js} +1 -1
- package/dist/mint-components/{p-64242338.system.js → p-1f8706fb.system.js} +1 -1
- package/dist/mint-components/{p-18e7d7c6.system.entry.js → p-22e95dff.system.entry.js} +1 -1
- package/dist/mint-components/{p-94607792.entry.js → p-25482fe1.entry.js} +1 -1
- package/dist/mint-components/{p-7d7baf55.entry.js → p-273bba0e.entry.js} +2 -2
- package/dist/mint-components/{p-3cbdb360.system.entry.js → p-2850c602.system.entry.js} +1 -1
- package/dist/mint-components/{p-0b6ee047.entry.js → p-29452204.entry.js} +2 -2
- package/dist/mint-components/{p-a90b4c3f.js → p-2f8e0a8a.js} +1 -1
- package/dist/mint-components/p-3cd32c6e.system.js +1 -0
- package/dist/mint-components/{p-3552b5c5.entry.js → p-3e8ba80d.entry.js} +1 -1
- package/dist/mint-components/{p-f27766d6.entry.js → p-4294a89c.entry.js} +1 -1
- package/dist/mint-components/{p-bb6f60a6.system.js → p-45374f45.system.js} +1 -1
- package/dist/mint-components/{p-8322ad92.entry.js → p-45e212a9.entry.js} +1 -1
- package/dist/mint-components/{p-135c3cef.entry.js → p-45ee4fcd.entry.js} +1 -1
- package/dist/mint-components/{p-7d31f692.js → p-47ce2382.js} +2 -2
- package/dist/mint-components/{p-bf021a55.entry.js → p-482fb4ac.entry.js} +1 -1
- package/dist/mint-components/p-4c86095b.js +1 -0
- package/dist/mint-components/p-4d322f3b.system.js +1 -0
- package/dist/mint-components/p-51dd43c0.system.js +1 -0
- package/dist/mint-components/p-53fd1378.entry.js +1 -0
- package/dist/mint-components/{p-70263662.system.js → p-589ec33b.system.js} +1 -1
- package/dist/mint-components/{p-f8dd6bac.js → p-5d9244de.js} +1 -1
- package/dist/mint-components/p-5fb4fe4a.js +1 -0
- package/dist/mint-components/{p-0d395b4f.system.entry.js → p-668fb3d2.system.entry.js} +1 -1
- package/dist/mint-components/p-66a393ef.js +1 -0
- package/dist/mint-components/{p-16dda971.system.entry.js → p-68620baa.system.entry.js} +1 -1
- package/dist/mint-components/p-6b8b7dc0.system.js +1 -0
- package/dist/mint-components/{p-221878e3.entry.js → p-6db612cd.entry.js} +1 -1
- package/dist/mint-components/p-6dd27a5e.js +1 -0
- package/dist/mint-components/{p-919ea20a.system.entry.js → p-6eb41f14.system.entry.js} +1 -1
- package/dist/mint-components/p-6f9f5609.js +1 -0
- package/dist/mint-components/{p-b27a0503.system.entry.js → p-707e7a2e.system.entry.js} +1 -1
- package/dist/mint-components/{p-8f58a603.system.js → p-70ccc481.system.js} +1 -1
- package/dist/mint-components/{p-9cdf8d74.entry.js → p-723f3d4f.entry.js} +2 -2
- package/dist/mint-components/p-727e4538.system.entry.js +1 -0
- package/dist/mint-components/{p-0c7a3116.system.entry.js → p-72b166c9.system.entry.js} +1 -1
- package/dist/mint-components/{p-1d9cb344.entry.js → p-75bcbf34.entry.js} +1 -1
- package/dist/mint-components/{p-0a410d79.entry.js → p-78651bde.entry.js} +1 -1
- package/dist/mint-components/p-7a539b20.entry.js +1 -0
- package/dist/mint-components/{p-96e98d06.system.js → p-7ceff8de.system.js} +1 -1
- package/dist/mint-components/{p-d9643307.system.entry.js → p-7d964c43.system.entry.js} +1 -1
- package/dist/mint-components/p-80e9d337.entry.js +9 -0
- package/dist/mint-components/{p-97fa9d3e.system.entry.js → p-87221acc.system.entry.js} +1 -1
- package/dist/mint-components/p-8874f2c4.js +268 -0
- package/dist/mint-components/p-88bef048.system.js +1 -0
- package/dist/mint-components/p-895858d0.entry.js +1 -0
- package/dist/mint-components/{p-a7451d8c.entry.js → p-8b422807.entry.js} +1 -1
- package/dist/mint-components/p-8ffaf231.system.entry.js +1 -0
- package/dist/mint-components/p-91dee224.system.js +1 -0
- package/dist/mint-components/p-93832713.js +1 -0
- package/dist/mint-components/p-9732cfef.system.js +1 -0
- package/dist/mint-components/p-98e0ea41.system.entry.js +1 -0
- package/dist/mint-components/p-99b74c6a.entry.js +159 -0
- package/dist/mint-components/p-99c241ef.js +1 -0
- package/dist/mint-components/{p-8e0d9535.entry.js → p-9e16b967.entry.js} +1 -1
- package/dist/mint-components/p-9e20ddfc.entry.js +1 -0
- package/dist/mint-components/{p-0c5aadd5.system.entry.js → p-9fa34993.system.entry.js} +1 -1
- package/dist/mint-components/p-a421f44e.system.js +1 -0
- package/dist/mint-components/p-a46c0d32.js +1 -0
- package/dist/mint-components/{p-88ce114f.system.entry.js → p-aaa67e65.system.entry.js} +1 -1
- package/dist/mint-components/p-afe80d73.system.js +1 -0
- package/dist/mint-components/{p-a59be693.js → p-b23d673e.js} +1 -1
- package/dist/mint-components/{p-76c339cd.system.js → p-b3169627.system.js} +1 -1
- package/dist/mint-components/p-b5a64626.js +1 -0
- package/dist/mint-components/{p-d6c78b10.entry.js → p-ba307441.entry.js} +2 -2
- package/dist/mint-components/p-bef0a1f4.system.js +1 -0
- package/dist/mint-components/{p-62306484.entry.js → p-c3d4bd17.entry.js} +1 -1
- package/dist/mint-components/{p-9cbc79f6.system.entry.js → p-c4fc0601.system.entry.js} +1 -1
- package/dist/mint-components/p-c7090fd1.system.js +1 -0
- package/dist/mint-components/{p-657acf81.system.js → p-c9a2502c.system.js} +1 -1
- package/dist/mint-components/p-cd898a3a.js +1 -0
- package/dist/mint-components/p-d027de63.entry.js +1 -0
- package/dist/mint-components/{p-9d9da716.js → p-d1a74f7e.js} +1 -1
- package/dist/mint-components/{p-97988090.system.entry.js → p-d1d42507.system.entry.js} +1 -1
- package/dist/mint-components/p-d3ceb986.js +1 -0
- package/dist/mint-components/{p-085290c7.system.entry.js → p-d54de97b.system.entry.js} +1 -1
- package/dist/mint-components/{p-bd63ef52.system.js → p-dd23d448.system.js} +1 -1
- package/dist/mint-components/p-dd7ddc3a.system.entry.js +1 -0
- package/dist/mint-components/{p-da70e75d.entry.js → p-ddf15193.entry.js} +1 -1
- package/dist/mint-components/p-e018edb8.system.js +1 -0
- package/dist/mint-components/p-e6f5ccc0.entry.js +1 -0
- package/dist/mint-components/{p-6c0409fe.system.entry.js → p-e7548e13.system.entry.js} +1 -1
- package/dist/mint-components/p-ec8608b9.system.entry.js +1 -0
- package/dist/mint-components/p-f2e8bf4c.system.entry.js +1 -0
- package/dist/mint-components/p-f37b3375.system.entry.js +1 -0
- package/dist/types/components/sqm-portal-footer/PortalFooter.stories.d.ts +0 -1
- package/dist/types/components/sqm-portal-footer/sqm-portal-footer-view.d.ts +0 -1
- package/dist/types/components/sqm-portal-footer/sqm-portal-footer.d.ts +0 -4
- package/dist/types/components/sqm-referral-card/ReferralCard.stories.d.ts +0 -2
- package/dist/types/components/sqm-referral-card/sqm-referral-card-view.d.ts +0 -2
- package/dist/types/components/sqm-referral-card/sqm-referral-card.d.ts +1 -1
- package/dist/types/components/sqm-share-code/ShareCode.stories.d.ts +0 -5
- package/dist/types/components/sqm-share-code/sqm-share-code.d.ts +2 -26
- package/dist/types/components/sqm-share-code/useShareCode.d.ts +2 -2
- package/dist/types/components/sqm-share-link/ShareLink.stories.d.ts +0 -5
- package/dist/types/components/sqm-share-link/sqm-share-link-view.d.ts +8 -0
- package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +2 -26
- package/dist/types/components/sqm-share-link/useShareLink.d.ts +2 -2
- package/dist/types/components.d.ts +77 -487
- package/dist/types/global/android.d.ts +7 -7
- package/dist/types/saasquatch.d.ts +132 -132
- package/dist/types/stories/PortalTemplates.stories.d.ts +0 -1
- package/dist/types/stories/Widget.stories.d.ts +0 -24
- package/dist/types/stories/features.d.ts +4 -4
- package/dist/types/stories/templates.d.ts +4 -4
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +102 -104
- package/readme.md +13 -13
- package/dist/cjs/email-registration-view-a483578e.js +0 -52
- package/dist/cjs/sqm-link-button-view-2ee270e0.js +0 -27
- package/dist/cjs/sqm-link-button.cjs.entry.js +0 -23
- package/dist/cjs/sqm-passwordless-registration.cjs.entry.js +0 -81
- package/dist/cjs/sqm-referred-registration.cjs.entry.js +0 -81
- package/dist/cjs/sqm-user-identifier-view-90b36758.js +0 -35
- package/dist/cjs/sqm-user-identifier.cjs.entry.js +0 -52
- package/dist/cjs/usePasswordlessRegistration-983ebab7.js +0 -46
- package/dist/collection/components/sqm-coupon-code/CouponCode.stories.js +0 -42
- package/dist/collection/components/sqm-coupon-code/sqm-coupon-code.js +0 -289
- package/dist/collection/components/sqm-coupon-code/useCouponCode.js +0 -49
- package/dist/collection/components/sqm-link-button/LinkButton.stories.js +0 -20
- package/dist/collection/components/sqm-link-button/sqm-link-button-view.js +0 -22
- package/dist/collection/components/sqm-link-button/sqm-link-button.js +0 -68
- package/dist/collection/components/sqm-passwordless-registration/sqm-passwordless-registration.js +0 -215
- package/dist/collection/components/sqm-passwordless-registration/usePasswordlessRegistration.js +0 -41
- package/dist/collection/components/sqm-referred-registration/sqm-referred-registration.js +0 -215
- package/dist/collection/components/sqm-user-identifier/UserIdentifier.stories.js +0 -17
- package/dist/collection/components/sqm-user-identifier/sqm-user-identifier-view.js +0 -30
- package/dist/collection/components/sqm-user-identifier/sqm-user-identifier.js +0 -142
- package/dist/collection/components/sqm-user-identifier/useUserIdentifer.js +0 -9
- package/dist/collection/components/views/EmailRegistration.stories.js +0 -45
- package/dist/collection/components/views/copy-text-view.js +0 -59
- package/dist/collection/components/views/email-registration-view.js +0 -47
- package/dist/esm/email-registration-view-0ed79e24.js +0 -50
- package/dist/esm/sqm-link-button-view-90aeb27f.js +0 -25
- package/dist/esm/sqm-link-button.entry.js +0 -19
- package/dist/esm/sqm-passwordless-registration.entry.js +0 -77
- package/dist/esm/sqm-referred-registration.entry.js +0 -77
- package/dist/esm/sqm-user-identifier-view-dbf71a5e.js +0 -33
- package/dist/esm/sqm-user-identifier.entry.js +0 -48
- package/dist/esm/usePasswordlessRegistration-94f265fe.js +0 -44
- package/dist/esm-es5/GenericTableView-266126f9.js +0 -1
- package/dist/esm-es5/ShadowViewAddon-8acfeb00.js +0 -1
- package/dist/esm-es5/email-registration-view-0ed79e24.js +0 -1
- package/dist/esm-es5/index.module-0ba0774e.js +0 -1
- package/dist/esm-es5/sqm-asset-card-view-b2ac5a23.js +0 -1
- package/dist/esm-es5/sqm-big-stat_37.entry.js +0 -1
- package/dist/esm-es5/sqm-link-button-view-90aeb27f.js +0 -1
- package/dist/esm-es5/sqm-link-button.entry.js +0 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-5a4ac267.js +0 -1
- package/dist/esm-es5/sqm-passwordless-registration.entry.js +0 -1
- package/dist/esm-es5/sqm-portal-container-view-83b417f0.js +0 -1
- package/dist/esm-es5/sqm-portal-forgot-password-view-9970dee2.js +0 -1
- package/dist/esm-es5/sqm-portal-profile-view-ac955752.js +0 -1
- package/dist/esm-es5/sqm-portal-verify-email-view-8d453021.js +0 -1
- package/dist/esm-es5/sqm-referred-registration.entry.js +0 -1
- package/dist/esm-es5/sqm-user-identifier-view-dbf71a5e.js +0 -1
- package/dist/esm-es5/sqm-user-identifier.entry.js +0 -1
- package/dist/esm-es5/usePasswordlessRegistration-94f265fe.js +0 -1
- package/dist/mint-components/p-03ad8655.js +0 -1
- package/dist/mint-components/p-045af9fb.system.entry.js +0 -1
- package/dist/mint-components/p-0e359e2a.entry.js +0 -9
- package/dist/mint-components/p-0eddbe09.entry.js +0 -1
- package/dist/mint-components/p-129c07fd.js +0 -268
- package/dist/mint-components/p-19a3833c.system.entry.js +0 -1
- package/dist/mint-components/p-1b9c1909.entry.js +0 -1
- package/dist/mint-components/p-26117a7d.system.js +0 -1
- package/dist/mint-components/p-2a7686a6.system.entry.js +0 -1
- package/dist/mint-components/p-2b9ae018.system.js +0 -1
- package/dist/mint-components/p-30239975.system.js +0 -1
- package/dist/mint-components/p-30689236.system.entry.js +0 -1
- package/dist/mint-components/p-30ec7d38.entry.js +0 -1
- package/dist/mint-components/p-35d6d322.system.js +0 -1
- package/dist/mint-components/p-36c08962.js +0 -1
- package/dist/mint-components/p-3d339fa9.js +0 -1
- package/dist/mint-components/p-3fe1485c.entry.js +0 -1
- package/dist/mint-components/p-4336876b.js +0 -1
- package/dist/mint-components/p-494829ff.js +0 -1
- package/dist/mint-components/p-4994b24c.system.js +0 -1
- package/dist/mint-components/p-4ace5def.system.entry.js +0 -1
- package/dist/mint-components/p-517a5669.system.js +0 -1
- package/dist/mint-components/p-56306cfd.system.js +0 -1
- package/dist/mint-components/p-58362d80.system.entry.js +0 -1
- package/dist/mint-components/p-58d65ecc.js +0 -1
- package/dist/mint-components/p-5de1699d.js +0 -1
- package/dist/mint-components/p-689d022a.js +0 -1
- package/dist/mint-components/p-6ddc2a08.js +0 -1
- package/dist/mint-components/p-71fe4061.js +0 -1
- package/dist/mint-components/p-72cb7a2e.system.entry.js +0 -1
- package/dist/mint-components/p-7ef716a7.js +0 -1
- package/dist/mint-components/p-83927707.js +0 -1
- package/dist/mint-components/p-8478a86e.system.entry.js +0 -1
- package/dist/mint-components/p-8eb7dbfa.entry.js +0 -1
- package/dist/mint-components/p-9165844e.system.js +0 -1
- package/dist/mint-components/p-97763c36.system.js +0 -1
- package/dist/mint-components/p-a2f7a2f3.system.js +0 -1
- package/dist/mint-components/p-addba64e.entry.js +0 -1
- package/dist/mint-components/p-ba3b21d2.system.entry.js +0 -1
- package/dist/mint-components/p-ba50a107.system.entry.js +0 -1
- package/dist/mint-components/p-bb451c6e.system.js +0 -1
- package/dist/mint-components/p-bfd347b4.js +0 -1
- package/dist/mint-components/p-bfdbe27c.js +0 -1
- package/dist/mint-components/p-bfecc81e.system.js +0 -1
- package/dist/mint-components/p-c2c3d7fd.entry.js +0 -1
- package/dist/mint-components/p-c3765ad9.system.entry.js +0 -1
- package/dist/mint-components/p-c3777cf3.system.entry.js +0 -1
- package/dist/mint-components/p-d16b1f37.entry.js +0 -1
- package/dist/mint-components/p-d6fe7dee.entry.js +0 -171
- package/dist/mint-components/p-de055c6b.system.js +0 -1
- package/dist/mint-components/p-eb25d055.system.js +0 -1
- package/dist/mint-components/p-f0a3c195.system.js +0 -1
- package/dist/mint-components/p-f778fc9e.entry.js +0 -1
- package/dist/mint-components/p-f8bbbea1.js +0 -1
- package/dist/mint-components/p-f8d9e861.system.js +0 -1
- package/dist/types/components/sqm-coupon-code/CouponCode.stories.d.ts +0 -14
- package/dist/types/components/sqm-coupon-code/sqm-coupon-code.d.ts +0 -66
- package/dist/types/components/sqm-coupon-code/useCouponCode.d.ts +0 -8
- package/dist/types/components/sqm-link-button/LinkButton.stories.d.ts +0 -9
- package/dist/types/components/sqm-link-button/sqm-link-button-view.d.ts +0 -5
- package/dist/types/components/sqm-link-button/sqm-link-button.d.ts +0 -17
- package/dist/types/components/sqm-passwordless-registration/sqm-passwordless-registration.d.ts +0 -37
- package/dist/types/components/sqm-passwordless-registration/usePasswordlessRegistration.d.ts +0 -9
- package/dist/types/components/sqm-referred-registration/sqm-referred-registration.d.ts +0 -37
- package/dist/types/components/sqm-user-identifier/UserIdentifier.stories.d.ts +0 -8
- package/dist/types/components/sqm-user-identifier/sqm-user-identifier-view.d.ts +0 -6
- package/dist/types/components/sqm-user-identifier/sqm-user-identifier.d.ts +0 -30
- package/dist/types/components/sqm-user-identifier/useUserIdentifer.d.ts +0 -3
- package/dist/types/components/views/EmailRegistration.stories.d.ts +0 -10
- package/dist/types/components/views/copy-text-view.d.ts +0 -13
- package/dist/types/components/views/email-registration-view.d.ts +0 -20
|
@@ -4,22 +4,22 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
6
|
const stencilHooks_module = require('./stencil-hooks.module-e4bf7f2d.js');
|
|
7
|
-
const global = require('./global-
|
|
7
|
+
const global = require('./global-0b8cbb00.js');
|
|
8
8
|
const useCallback = require('./use-callback-86e9ac75.js');
|
|
9
|
-
const index_module = require('./index.module-
|
|
9
|
+
const index_module = require('./index.module-c6626247.js');
|
|
10
10
|
const jsonpointer = require('./jsonpointer-11327262.js');
|
|
11
11
|
const cjs = require('./cjs-1066ec21.js');
|
|
12
12
|
require('./mixins-fe9d4112.js');
|
|
13
13
|
const JSS = require('./JSS-8503a151.js');
|
|
14
|
-
const reRender = require('./re-render-
|
|
15
|
-
const useChildElements = require('./useChildElements-
|
|
14
|
+
const reRender = require('./re-render-fce04f85.js');
|
|
15
|
+
const useChildElements = require('./useChildElements-eaa9e49d.js');
|
|
16
16
|
require('./luxon-53e983a6.js');
|
|
17
17
|
const utils = require('./utils-6847bc06.js');
|
|
18
|
-
require('./sqm-text-span-view-
|
|
18
|
+
require('./sqm-text-span-view-c34577fa.js');
|
|
19
19
|
const AsYouType = require('./AsYouType-6788393a.js');
|
|
20
|
-
const useRegistrationFormState = require('./useRegistrationFormState-
|
|
21
|
-
const ShadowViewAddon = require('./ShadowViewAddon-
|
|
22
|
-
require('./sqm-portal-container-view-
|
|
20
|
+
const useRegistrationFormState = require('./useRegistrationFormState-a1861717.js');
|
|
21
|
+
const ShadowViewAddon = require('./ShadowViewAddon-952b4df5.js');
|
|
22
|
+
require('./sqm-portal-container-view-5beae29c.js');
|
|
23
23
|
|
|
24
24
|
const BigStat = class {
|
|
25
25
|
constructor(hostRef) {
|
|
@@ -89,27 +89,27 @@ const BrandComponent = class {
|
|
|
89
89
|
return () => document.head.removeChild(sheet);
|
|
90
90
|
}, [sanitizedFont]);
|
|
91
91
|
const font = sanitizedFont !== null && sanitizedFont !== void 0 ? sanitizedFont : "";
|
|
92
|
-
return (index.h(index.Host, null, index.h("style", null, `
|
|
93
|
-
|
|
94
|
-
:host{
|
|
95
|
-
display: contents;
|
|
96
|
-
}
|
|
97
|
-
/*
|
|
98
|
-
Selects any element placed inside a slot
|
|
99
|
-
- resets css variable inheritence for fonts
|
|
100
|
-
|
|
101
|
-
*/
|
|
102
|
-
::slotted(*) {
|
|
103
|
-
--sl-font-sans: "${font}", arial;
|
|
104
|
-
--sl-input-font-family: "${font}", arial;
|
|
105
|
-
--sl-tooltip-font-family: "${font}", arial;
|
|
106
|
-
font-family: "${font}", arial;
|
|
107
|
-
|
|
108
|
-
${css}
|
|
109
|
-
|
|
110
|
-
--sl-focus-ring-color-primary: var(--sl-color-primary-100);
|
|
111
|
-
--sl-input-border-color-focus: var(--sl-color-primary-500);
|
|
112
|
-
--sl-color-primary-hue: var(--sl-color-primary-500);
|
|
92
|
+
return (index.h(index.Host, null, index.h("style", null, `
|
|
93
|
+
|
|
94
|
+
:host{
|
|
95
|
+
display: contents;
|
|
96
|
+
}
|
|
97
|
+
/*
|
|
98
|
+
Selects any element placed inside a slot
|
|
99
|
+
- resets css variable inheritence for fonts
|
|
100
|
+
|
|
101
|
+
*/
|
|
102
|
+
::slotted(*) {
|
|
103
|
+
--sl-font-sans: "${font}", arial;
|
|
104
|
+
--sl-input-font-family: "${font}", arial;
|
|
105
|
+
--sl-tooltip-font-family: "${font}", arial;
|
|
106
|
+
font-family: "${font}", arial;
|
|
107
|
+
|
|
108
|
+
${css}
|
|
109
|
+
|
|
110
|
+
--sl-focus-ring-color-primary: var(--sl-color-primary-100);
|
|
111
|
+
--sl-input-border-color-focus: var(--sl-color-primary-500);
|
|
112
|
+
--sl-color-primary-hue: var(--sl-color-primary-500);
|
|
113
113
|
}`), index.h("slot", null)));
|
|
114
114
|
}
|
|
115
115
|
};
|
|
@@ -269,131 +269,6 @@ function useCheckboxFieldDemo(props) {
|
|
|
269
269
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
270
270
|
}
|
|
271
271
|
|
|
272
|
-
const MessageLinkQuery = index_module.dist.gql `
|
|
273
|
-
query ($programId: ID) {
|
|
274
|
-
user: viewer {
|
|
275
|
-
... on User {
|
|
276
|
-
referralCode(programId: $programId)
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
`;
|
|
281
|
-
const WIDGET_ENGAGEMENT_EVENT = index_module.dist.gql `
|
|
282
|
-
mutation loadEvent($eventMeta: UserAnalyticsEvent!) {
|
|
283
|
-
createUserAnalyticsEvent(eventMeta: $eventMeta)
|
|
284
|
-
}
|
|
285
|
-
`;
|
|
286
|
-
function useCouponCode(props) {
|
|
287
|
-
var _a, _b;
|
|
288
|
-
const { programId = index_module.O() } = props;
|
|
289
|
-
const user = index_module.W();
|
|
290
|
-
const engagementMedium = index_module._();
|
|
291
|
-
const { data } = index_module.fn(MessageLinkQuery, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
292
|
-
const [sendLoadEvent] = index_module.Fe(WIDGET_ENGAGEMENT_EVENT);
|
|
293
|
-
const copyString = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.referralCode) !== null && _b !== void 0 ? _b :
|
|
294
|
-
// Shown during loading
|
|
295
|
-
"...";
|
|
296
|
-
const [open, setOpen] = stencilHooks_module.useState(false);
|
|
297
|
-
function onClick() {
|
|
298
|
-
// Should well supported: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
|
|
299
|
-
// Only if called from a user-initiated event
|
|
300
|
-
navigator.clipboard.writeText(copyString);
|
|
301
|
-
setOpen(true);
|
|
302
|
-
setTimeout(() => setOpen(false), props.tooltiplifespan);
|
|
303
|
-
sendLoadEvent({
|
|
304
|
-
eventMeta: {
|
|
305
|
-
programId,
|
|
306
|
-
id: user === null || user === void 0 ? void 0 : user.id,
|
|
307
|
-
accountId: user === null || user === void 0 ? void 0 : user.accountId,
|
|
308
|
-
type: "USER_REFERRAL_PROGRAM_ENGAGEMENT_EVENT",
|
|
309
|
-
meta: {
|
|
310
|
-
engagementMedium,
|
|
311
|
-
couponMedium: "DIRECT",
|
|
312
|
-
},
|
|
313
|
-
},
|
|
314
|
-
});
|
|
315
|
-
}
|
|
316
|
-
return { ...props, onClick, open, copyString };
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
const CouponCode = class {
|
|
320
|
-
constructor(hostRef) {
|
|
321
|
-
index.registerInstance(this, hostRef);
|
|
322
|
-
/**
|
|
323
|
-
* Shown inside a tooltip after someone has successfully copied the link to their clipboard.
|
|
324
|
-
*
|
|
325
|
-
* @uiName Tooltip Text
|
|
326
|
-
*/
|
|
327
|
-
this.tooltiptext = "Copied to Clipboard";
|
|
328
|
-
/**
|
|
329
|
-
* The number of milliseconds that the tooltip appears for
|
|
330
|
-
*
|
|
331
|
-
* @uiName Tooltip lifespan
|
|
332
|
-
*/
|
|
333
|
-
this.tooltiplifespan = 1000;
|
|
334
|
-
/**
|
|
335
|
-
* Change the text alignment
|
|
336
|
-
*
|
|
337
|
-
* @uiName Align text
|
|
338
|
-
* @uiType string
|
|
339
|
-
* @uiEnum ["left", "center"]
|
|
340
|
-
* @uiEnumNames ["left", "center"]
|
|
341
|
-
*/
|
|
342
|
-
this.textAlign = "left";
|
|
343
|
-
/**
|
|
344
|
-
* Set copy button label
|
|
345
|
-
*
|
|
346
|
-
* @uiName Copy button label
|
|
347
|
-
*/
|
|
348
|
-
this.copyButtonLabel = "Copy Coupon";
|
|
349
|
-
/**
|
|
350
|
-
* Set the copy button style
|
|
351
|
-
*
|
|
352
|
-
* @uiName Copy button style
|
|
353
|
-
* @uiType string
|
|
354
|
-
* @uiEnum ["icon", "button inside", "button outside", "button below"]
|
|
355
|
-
* @uiEnumNames ["icon", "button inside", "button outside", "button below"]
|
|
356
|
-
*/
|
|
357
|
-
this.buttonStyle = "icon";
|
|
358
|
-
/**
|
|
359
|
-
* Set error message
|
|
360
|
-
*
|
|
361
|
-
* @uiName Error message
|
|
362
|
-
*/
|
|
363
|
-
this.errorText = "Oops! Looks like we weren’t able to retrieve a code for you. Please try again later.";
|
|
364
|
-
stencilHooks_module.h$1(this);
|
|
365
|
-
}
|
|
366
|
-
disconnectedCallback() { }
|
|
367
|
-
render() {
|
|
368
|
-
const thisProps = utils.getProps(this);
|
|
369
|
-
const props = index_module.isDemo()
|
|
370
|
-
? useDemoCouponCode(thisProps)
|
|
371
|
-
: useCouponCode(thisProps);
|
|
372
|
-
return index.h(ShadowViewAddon.CopyTextView, Object.assign({}, props));
|
|
373
|
-
}
|
|
374
|
-
};
|
|
375
|
-
function useDemoCouponCode(props) {
|
|
376
|
-
const [open, setOpen] = stencilHooks_module.useState(false);
|
|
377
|
-
const copyString = "THANKSJANE125uv125";
|
|
378
|
-
return cjs.cjs({
|
|
379
|
-
copyString,
|
|
380
|
-
tooltiptext: props.tooltiptext,
|
|
381
|
-
textAlign: props.textAlign,
|
|
382
|
-
buttonStyle: props.buttonStyle,
|
|
383
|
-
copyButtonLabel: props.copyButtonLabel,
|
|
384
|
-
errorText: props.errorText,
|
|
385
|
-
error: false,
|
|
386
|
-
open,
|
|
387
|
-
onClick: () => {
|
|
388
|
-
// Should well supported: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
|
|
389
|
-
// Only if called from a user-initiated event
|
|
390
|
-
navigator.clipboard.writeText(copyString);
|
|
391
|
-
setOpen(true);
|
|
392
|
-
setTimeout(() => setOpen(false), props.tooltiplifespan);
|
|
393
|
-
},
|
|
394
|
-
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
395
|
-
}
|
|
396
|
-
|
|
397
272
|
function DividedLayoutView(props, children) {
|
|
398
273
|
const getBorder = () => {
|
|
399
274
|
if (props.direction === "row") {
|
|
@@ -415,28 +290,28 @@ function DividedLayoutView(props, children) {
|
|
|
415
290
|
},
|
|
416
291
|
},
|
|
417
292
|
};
|
|
418
|
-
const hostStyle = `
|
|
419
|
-
display: flex;
|
|
420
|
-
flex: 1;
|
|
421
|
-
box-sizing: border-box;
|
|
422
|
-
flex-direction: ${props.direction};
|
|
423
|
-
background-color: var(--sqm-content-background);
|
|
424
|
-
overflow-x: clip;
|
|
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;
|
|
425
300
|
${props.direction === "column"
|
|
426
301
|
? "width: 100%; max-width: var(--sqm-portal-main-width);"
|
|
427
|
-
: ""}
|
|
302
|
+
: ""}
|
|
428
303
|
`;
|
|
429
|
-
const vanillaStyle = `
|
|
430
|
-
:host{
|
|
431
|
-
${hostStyle}
|
|
432
|
-
}
|
|
433
|
-
sqm-divided-layout {
|
|
434
|
-
${hostStyle}
|
|
435
|
-
}
|
|
304
|
+
const vanillaStyle = `
|
|
305
|
+
:host{
|
|
306
|
+
${hostStyle}
|
|
307
|
+
}
|
|
308
|
+
sqm-divided-layout {
|
|
309
|
+
${hostStyle}
|
|
310
|
+
}
|
|
436
311
|
`;
|
|
437
312
|
const sheet = JSS.createStyleSheet(style);
|
|
438
313
|
const styleString = sheet.toString();
|
|
439
|
-
return (index.h("div", { class: sheet.classes.LayoutContainer
|
|
314
|
+
return (index.h("div", { class: sheet.classes.LayoutContainer },
|
|
440
315
|
index.h("style", { type: "text/css" },
|
|
441
316
|
vanillaStyle,
|
|
442
317
|
styleString),
|
|
@@ -516,39 +391,39 @@ function useDropdownFieldDemo(props) {
|
|
|
516
391
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
517
392
|
}
|
|
518
393
|
|
|
519
|
-
const GET_USER = index_module.dist.gql `
|
|
520
|
-
query {
|
|
521
|
-
viewer {
|
|
522
|
-
... on User {
|
|
523
|
-
id
|
|
524
|
-
accountId
|
|
525
|
-
firstName
|
|
526
|
-
lastName
|
|
527
|
-
email
|
|
528
|
-
countryCode
|
|
529
|
-
}
|
|
530
|
-
}
|
|
531
|
-
}
|
|
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
|
+
}
|
|
532
407
|
`;
|
|
533
|
-
const UPSERT_USER = index_module.dist.gql `
|
|
534
|
-
mutation (
|
|
535
|
-
$id: String!
|
|
536
|
-
$accountId: String!
|
|
537
|
-
$firstName: String!
|
|
538
|
-
$lastName: String!
|
|
539
|
-
) {
|
|
540
|
-
upsertUser(
|
|
541
|
-
userInput: {
|
|
542
|
-
id: $id
|
|
543
|
-
accountId: $accountId
|
|
544
|
-
firstName: $firstName
|
|
545
|
-
lastName: $lastName
|
|
546
|
-
}
|
|
547
|
-
) {
|
|
548
|
-
firstName
|
|
549
|
-
lastName
|
|
550
|
-
}
|
|
551
|
-
}
|
|
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
|
+
}
|
|
552
427
|
`;
|
|
553
428
|
// view doesn't tolerate undefined, even when we're loading
|
|
554
429
|
const defaultFormState = {
|
|
@@ -559,13 +434,13 @@ const defaultFormState = {
|
|
|
559
434
|
error: "",
|
|
560
435
|
};
|
|
561
436
|
function useEditProfile(props) {
|
|
562
|
-
const userIdent = index_module.
|
|
437
|
+
const userIdent = index_module.N();
|
|
563
438
|
const [showEdit, setShowEdit] = stencilHooks_module.useState(false);
|
|
564
439
|
const [error, setError] = stencilHooks_module.useState("");
|
|
565
440
|
const [userData, setUserData] = stencilHooks_module.useState(undefined);
|
|
566
441
|
const [formState, setFormState] = stencilHooks_module.useState(defaultFormState);
|
|
567
|
-
const userDataResponse = index_module.
|
|
568
|
-
const [upsertUser, upsertUserResponse] = index_module.
|
|
442
|
+
const userDataResponse = index_module.dn(GET_USER, {}, !(userIdent === null || userIdent === void 0 ? void 0 : userIdent.jwt));
|
|
443
|
+
const [upsertUser, upsertUserResponse] = index_module.Pe(UPSERT_USER);
|
|
569
444
|
stencilHooks_module.useEffect(() => {
|
|
570
445
|
if ((upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.loading) || !showEdit)
|
|
571
446
|
return;
|
|
@@ -760,9 +635,7 @@ function HeroImageView(props, children) {
|
|
|
760
635
|
display: "block",
|
|
761
636
|
width: "100%",
|
|
762
637
|
height: "100%",
|
|
763
|
-
maxWidth: "max-content",
|
|
764
638
|
objectFit: "cover",
|
|
765
|
-
margin: "auto",
|
|
766
639
|
},
|
|
767
640
|
Background: {
|
|
768
641
|
backgroundImage: `url(${props.imageUrl})`,
|
|
@@ -796,6 +669,9 @@ function HeroImageView(props, children) {
|
|
|
796
669
|
width: props.imagePercentage ? props.imagePercentage + "%" : "50%",
|
|
797
670
|
padding: "var(--sl-spacing-" + props.paddingImage + ")",
|
|
798
671
|
boxSizing: "border-box",
|
|
672
|
+
display: "flex",
|
|
673
|
+
justifyContent: "center",
|
|
674
|
+
alignItems: "center",
|
|
799
675
|
"@media (max-width: 599px)": {
|
|
800
676
|
width: "100%",
|
|
801
677
|
},
|
|
@@ -843,11 +719,11 @@ function HeroImageView(props, children) {
|
|
|
843
719
|
};
|
|
844
720
|
const sheet = JSS.createStyleSheet(style);
|
|
845
721
|
const styleString = sheet.toString();
|
|
846
|
-
const vanillaStyle = `
|
|
847
|
-
:host{
|
|
848
|
-
display: block;
|
|
722
|
+
const vanillaStyle = `
|
|
723
|
+
:host{
|
|
724
|
+
display: block;
|
|
849
725
|
}`;
|
|
850
|
-
return (index.h("div", { class: sheet.classes.Container
|
|
726
|
+
return (index.h("div", { class: sheet.classes.Container },
|
|
851
727
|
index.h("style", { type: "text/css" },
|
|
852
728
|
vanillaStyle,
|
|
853
729
|
styleString),
|
|
@@ -855,7 +731,7 @@ function HeroImageView(props, children) {
|
|
|
855
731
|
props.layout === "columns" && ColumnView()));
|
|
856
732
|
function OverlayView() {
|
|
857
733
|
return (index.h("div", { class: sheet.classes.Background },
|
|
858
|
-
index.h("div", { class: sheet.classes.Overlay
|
|
734
|
+
index.h("div", { class: sheet.classes.Overlay },
|
|
859
735
|
props.header && (index.h("div", { class: sheet.classes.Header }, props.header)),
|
|
860
736
|
props.description && (index.h("div", { class: sheet.classes.Description }, props.description)),
|
|
861
737
|
props.buttonText && (index.h("sl-button", { class: sheet.classes.Button, type: "primary", onClick: () => props.buttonNewTab
|
|
@@ -867,11 +743,11 @@ function HeroImageView(props, children) {
|
|
|
867
743
|
return (index.h("div", null,
|
|
868
744
|
index.h("div", { class: sheet.classes.Column },
|
|
869
745
|
index.h("div", { class: "image-area" },
|
|
870
|
-
index.h("img", { class: sheet.classes.Image, src: props.imageUrl
|
|
871
|
-
index.h("div", { class: "text-area"
|
|
872
|
-
props.header && (index.h("div", { class: sheet.classes.Header
|
|
873
|
-
props.description && (index.h("div", { class: sheet.classes.Description
|
|
874
|
-
props.buttonText && (index.h("sl-button", {
|
|
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
|
|
875
751
|
? window.open(props.buttonLink)
|
|
876
752
|
: window.open(props.buttonLink, "_parent") }, props.buttonText))))));
|
|
877
753
|
}
|
|
@@ -1007,54 +883,54 @@ function useInputFieldDemo(props) {
|
|
|
1007
883
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
1008
884
|
}
|
|
1009
885
|
|
|
1010
|
-
const GET_LEADERBOARD = index_module.dist.gql `
|
|
1011
|
-
query (
|
|
1012
|
-
$type: String!
|
|
1013
|
-
$filter: UserLeaderboardFilterInput
|
|
1014
|
-
$locale: RSLocale
|
|
1015
|
-
$limit: Int!
|
|
1016
|
-
) {
|
|
1017
|
-
userLeaderboard(type: $type, filter: $filter) {
|
|
1018
|
-
dateModified
|
|
1019
|
-
rows(limit: $limit) {
|
|
1020
|
-
textValue(locale: $locale)
|
|
1021
|
-
firstName
|
|
1022
|
-
lastInitial
|
|
1023
|
-
rank {
|
|
1024
|
-
rank
|
|
1025
|
-
denseRank
|
|
1026
|
-
rowNumber
|
|
1027
|
-
}
|
|
1028
|
-
}
|
|
1029
|
-
}
|
|
1030
|
-
}
|
|
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
|
+
}
|
|
1031
907
|
`;
|
|
1032
|
-
const GET_RANK = index_module.dist.gql `
|
|
1033
|
-
query (
|
|
1034
|
-
$type: String!
|
|
1035
|
-
$filter: UserLeaderboardFilterInput
|
|
1036
|
-
$locale: RSLocale
|
|
1037
|
-
) {
|
|
1038
|
-
viewer {
|
|
1039
|
-
... on User {
|
|
1040
|
-
firstName
|
|
1041
|
-
lastInitial
|
|
1042
|
-
leaderboardRank(type: $type, filter: $filter) {
|
|
1043
|
-
textValue(locale: $locale)
|
|
1044
|
-
rank
|
|
1045
|
-
denseRank
|
|
1046
|
-
rowNumber
|
|
1047
|
-
}
|
|
1048
|
-
}
|
|
1049
|
-
}
|
|
1050
|
-
}
|
|
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
|
+
}
|
|
1051
927
|
`;
|
|
1052
928
|
function useLeaderboard(props) {
|
|
1053
929
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1054
930
|
const programIdContext = index_module.O();
|
|
1055
931
|
// Default to context, overriden by props
|
|
1056
932
|
const programId = (_a = props.programId) !== null && _a !== void 0 ? _a : programIdContext;
|
|
1057
|
-
const user = index_module.
|
|
933
|
+
const user = index_module.N();
|
|
1058
934
|
const locale = index_module.x();
|
|
1059
935
|
const variables = programId
|
|
1060
936
|
? {
|
|
@@ -1074,8 +950,8 @@ function useLeaderboard(props) {
|
|
|
1074
950
|
if (props.maxRows > 0) {
|
|
1075
951
|
variables["limit"] = props.maxRows;
|
|
1076
952
|
}
|
|
1077
|
-
const { data: leaderboardData, loading: loadingLeaderboard } = index_module.
|
|
1078
|
-
const { data: rankData } = index_module.
|
|
953
|
+
const { data: leaderboardData, loading: loadingLeaderboard } = index_module.dn(GET_LEADERBOARD, variables, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
954
|
+
const { data: rankData } = index_module.dn(GET_RANK, variables, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
1079
955
|
const leaderboardRows = (_b = leaderboardData === null || leaderboardData === void 0 ? void 0 : leaderboardData.userLeaderboard) === null || _b === void 0 ? void 0 : _b.rows;
|
|
1080
956
|
const flattenedLeaderboard = getFlattenedLeaderboard(leaderboardRows);
|
|
1081
957
|
const sortedLeaderboard = flattenedLeaderboard === null || flattenedLeaderboard === void 0 ? void 0 : flattenedLeaderboard.sort(function (a, b) {
|
|
@@ -1302,12 +1178,12 @@ function NavigationMenuView(props) {
|
|
|
1302
1178
|
}
|
|
1303
1179
|
|
|
1304
1180
|
function handleMenu(e) {
|
|
1305
|
-
index_module.
|
|
1181
|
+
index_module.fn.push(e.detail.item.value);
|
|
1306
1182
|
}
|
|
1307
1183
|
function useNavigationMenu(props) {
|
|
1308
1184
|
const ref = stencilHooks_module.useRef();
|
|
1309
|
-
const [, rerender] = index_module.
|
|
1310
|
-
const user = index_module.
|
|
1185
|
+
const [, rerender] = index_module.on();
|
|
1186
|
+
const user = index_module.N();
|
|
1311
1187
|
stencilHooks_module.useEffect(() => {
|
|
1312
1188
|
var _a;
|
|
1313
1189
|
(_a = ref.current) === null || _a === void 0 ? void 0 : _a.addEventListener("sl-select", (e) => handleMenu(e));
|
|
@@ -1365,7 +1241,7 @@ function usePortalChangePassword(props) {
|
|
|
1365
1241
|
const [open, setOpen] = stencilHooks_module.useState(false);
|
|
1366
1242
|
const [error, setError] = stencilHooks_module.useState("");
|
|
1367
1243
|
const [success, setSuccess] = stencilHooks_module.useState(false);
|
|
1368
|
-
const user = index_module.
|
|
1244
|
+
const user = index_module.N();
|
|
1369
1245
|
const submit = async (event) => {
|
|
1370
1246
|
var _a, _b;
|
|
1371
1247
|
setSuccess(false);
|
|
@@ -1498,66 +1374,8 @@ function usePortalChangePasswordDemo(props) {
|
|
|
1498
1374
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
1499
1375
|
}
|
|
1500
1376
|
|
|
1501
|
-
const PortalFooter = class {
|
|
1502
|
-
constructor(hostRef) {
|
|
1503
|
-
index.registerInstance(this, hostRef);
|
|
1504
|
-
this.ignored = true;
|
|
1505
|
-
/**
|
|
1506
|
-
* @uiName Hide the support text
|
|
1507
|
-
*/
|
|
1508
|
-
this.hideSupportText = false;
|
|
1509
|
-
/**
|
|
1510
|
-
* @uiName Support Email
|
|
1511
|
-
*/
|
|
1512
|
-
this.supportEmail = "support@example.com";
|
|
1513
|
-
/**
|
|
1514
|
-
* @uiName Support Text
|
|
1515
|
-
* @uiWidget textArea
|
|
1516
|
-
*/
|
|
1517
|
-
this.supportText = "For program support, contact {email}";
|
|
1518
|
-
/**
|
|
1519
|
-
* @uiName Hide Powered By SaaSquatch
|
|
1520
|
-
*/
|
|
1521
|
-
this.hidePoweredBy = false;
|
|
1522
|
-
/**
|
|
1523
|
-
* @uiName Powered By Link
|
|
1524
|
-
*/
|
|
1525
|
-
this.poweredByLink = "https://saasquatch.com";
|
|
1526
|
-
/**
|
|
1527
|
-
* @uiName Padding Top
|
|
1528
|
-
* @uiEnum ["none", "xxx-small", "xx-small", "x-small", "small", "medium", "large", "x-large", "xx-large", "xxx-large", "xxxx-large"]
|
|
1529
|
-
* @uiEnumNames ["None", "XXX-Small", "XX-Small", "X-Small", "Small", "Medium", "Large", "X-Large", "XX-Large", "XXX-Large", "XXXX-Large"]
|
|
1530
|
-
*/
|
|
1531
|
-
this.paddingTop = "large";
|
|
1532
|
-
/**
|
|
1533
|
-
* @uiName Padding Right
|
|
1534
|
-
* @uiEnum ["none", "xxx-small", "xx-small", "x-small", "small", "medium", "large", "x-large", "xx-large", "xxx-large", "xxxx-large"]
|
|
1535
|
-
* @uiEnumNames ["None", "XXX-Small", "XX-Small", "X-Small", "Small", "Medium", "Large", "X-Large", "XX-Large", "XXX-Large", "XXXX-Large"]
|
|
1536
|
-
*/
|
|
1537
|
-
this.paddingRight = "large";
|
|
1538
|
-
/**
|
|
1539
|
-
* @uiName Padding Bottom
|
|
1540
|
-
* @uiEnum ["none", "xxx-small", "xx-small", "x-small", "small", "medium", "large", "x-large", "xx-large", "xxx-large", "xxxx-large"]
|
|
1541
|
-
* @uiEnumNames ["None", "XXX-Small", "XX-Small", "X-Small", "Small", "Medium", "Large", "X-Large", "XX-Large", "XXX-Large", "XXXX-Large"]
|
|
1542
|
-
*/
|
|
1543
|
-
this.paddingBottom = "large";
|
|
1544
|
-
/**
|
|
1545
|
-
* @uiName Padding Left
|
|
1546
|
-
* @uiEnum ["none", "xxx-small", "xx-small", "x-small", "small", "medium", "large", "x-large", "xx-large", "xxx-large", "xxxx-large"]
|
|
1547
|
-
* @uiEnumNames ["None", "XXX-Small", "XX-Small", "X-Small", "Small", "Medium", "Large", "X-Large", "XX-Large", "XXX-Large", "XXXX-Large"]
|
|
1548
|
-
*/
|
|
1549
|
-
this.paddingLeft = "large";
|
|
1550
|
-
stencilHooks_module.h$1(this);
|
|
1551
|
-
}
|
|
1552
|
-
disconnectedCallback() { }
|
|
1553
|
-
render() {
|
|
1554
|
-
return index.h(ShadowViewAddon.PortalFooterView, Object.assign({}, utils.getProps(this)));
|
|
1555
|
-
}
|
|
1556
|
-
static get assetsDirs() { return ["../../assets"]; }
|
|
1557
|
-
};
|
|
1558
|
-
|
|
1559
1377
|
function usePortalFrame(footerContent, headerContent) {
|
|
1560
|
-
const [, rerender] = index_module.
|
|
1378
|
+
const [, rerender] = index_module.on();
|
|
1561
1379
|
return {
|
|
1562
1380
|
data: {
|
|
1563
1381
|
footer: footerContent,
|
|
@@ -1609,7 +1427,7 @@ function usePortalLogin(props) {
|
|
|
1609
1427
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
1610
1428
|
const [request, { loading, errors, data }] = index_module.Me();
|
|
1611
1429
|
const [error, setError] = stencilHooks_module.useState("");
|
|
1612
|
-
const urlParams = new URLSearchParams(index_module.
|
|
1430
|
+
const urlParams = new URLSearchParams(index_module.fn.location.search);
|
|
1613
1431
|
const nextPageOverride = urlParams.get("nextPage");
|
|
1614
1432
|
const submit = async (event) => {
|
|
1615
1433
|
var _a, _b;
|
|
@@ -1628,7 +1446,7 @@ function usePortalLogin(props) {
|
|
|
1628
1446
|
if ((_b = result.authenticateManagedIdentityWithEmailAndPassword) === null || _b === void 0 ? void 0 : _b.token) {
|
|
1629
1447
|
urlParams.delete("nextPage");
|
|
1630
1448
|
const url = utils.sanitizeUrlPath(nextPageOverride || props.nextPage);
|
|
1631
|
-
index_module.
|
|
1449
|
+
index_module.fn.push(url.href);
|
|
1632
1450
|
}
|
|
1633
1451
|
};
|
|
1634
1452
|
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) ||
|
|
@@ -1702,8 +1520,8 @@ const PortalLogin = class {
|
|
|
1702
1520
|
? useLoginDemo(this)
|
|
1703
1521
|
: usePortalLogin(this);
|
|
1704
1522
|
const content = {
|
|
1705
|
-
forgotPasswordButton: (index.h("slot", { name: "forgotPassword" }, index.h("a", { onClick: () => index_module.
|
|
1706
|
-
secondaryButton: (index.h("slot", { name: "secondaryButton" }, index.h("sl-button", { type: "text", disabled: states.loading, onClick: () => index_module.
|
|
1523
|
+
forgotPasswordButton: (index.h("slot", { name: "forgotPassword" }, index.h("a", { onClick: () => index_module.fn.push(states.forgotPasswordPath) }, this.forgotPasswordLabel))),
|
|
1524
|
+
secondaryButton: (index.h("slot", { name: "secondaryButton" }, index.h("sl-button", { type: "text", disabled: states.loading, onClick: () => index_module.fn.push(states.registerPath) }, this.registerLabel))),
|
|
1707
1525
|
emailLabel: this.emailLabel,
|
|
1708
1526
|
passwordLabel: this.passwordLabel,
|
|
1709
1527
|
submitLabel: this.submitLabel,
|
|
@@ -1732,7 +1550,7 @@ function usePortalRegister(props) {
|
|
|
1732
1550
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1733
1551
|
const formRef = stencilHooks_module.useRef(null);
|
|
1734
1552
|
const { registrationFormState, setRegistrationFormState } = useRegistrationFormState.useRegistrationFormState({});
|
|
1735
|
-
const [request, { loading, errors, data }] = index_module.
|
|
1553
|
+
const [request, { loading, errors, data }] = index_module.je();
|
|
1736
1554
|
stencilHooks_module.useEffect(() => {
|
|
1737
1555
|
if (!formRef.current)
|
|
1738
1556
|
return;
|
|
@@ -1805,7 +1623,7 @@ function usePortalRegister(props) {
|
|
|
1805
1623
|
validationErrors: {},
|
|
1806
1624
|
});
|
|
1807
1625
|
if ((_a = result.registerManagedIdentityWithEmailAndPassword) === null || _a === void 0 ? void 0 : _a.token) {
|
|
1808
|
-
index_module.
|
|
1626
|
+
index_module.fn.push(props.nextPage);
|
|
1809
1627
|
}
|
|
1810
1628
|
}
|
|
1811
1629
|
catch (error) {
|
|
@@ -1927,7 +1745,7 @@ const PortalRegister = class {
|
|
|
1927
1745
|
: usePortalRegister(this);
|
|
1928
1746
|
const content = {
|
|
1929
1747
|
formData: index.h("slot", { name: "formData" }),
|
|
1930
|
-
secondaryButton: (index.h("slot", { name: "secondaryButton" }, index.h("sl-button", { type: "text", disabled: states.loading, onClick: () => index_module.
|
|
1748
|
+
secondaryButton: (index.h("slot", { name: "secondaryButton" }, index.h("sl-button", { type: "text", disabled: states.loading, onClick: () => index_module.fn.push(states.loginPath) }, this.loginLabel))),
|
|
1931
1749
|
terms: index.h("slot", { name: "terms" }),
|
|
1932
1750
|
emailLabel: this.emailLabel,
|
|
1933
1751
|
passwordLabel: this.passwordLabel,
|
|
@@ -1985,23 +1803,23 @@ function ProgramExplainerView(props, children) {
|
|
|
1985
1803
|
};
|
|
1986
1804
|
const sheet = JSS.createStyleSheet(style);
|
|
1987
1805
|
const styleString = sheet.toString();
|
|
1988
|
-
const vanillaStyle = `
|
|
1989
|
-
::slotted(*){
|
|
1990
|
-
display: flex;
|
|
1991
|
-
width: 100%;
|
|
1992
|
-
}
|
|
1993
|
-
@media (max-width: 499px) {
|
|
1994
|
-
::slotted(*){
|
|
1995
|
-
display: block;
|
|
1996
|
-
}
|
|
1806
|
+
const vanillaStyle = `
|
|
1807
|
+
::slotted(*){
|
|
1808
|
+
display: flex;
|
|
1809
|
+
width: 100%;
|
|
1810
|
+
}
|
|
1811
|
+
@media (max-width: 499px) {
|
|
1812
|
+
::slotted(*){
|
|
1813
|
+
display: block;
|
|
1814
|
+
}
|
|
1997
1815
|
}`;
|
|
1998
|
-
return (index.h("div", { class: sheet.classes.Container
|
|
1816
|
+
return (index.h("div", { class: sheet.classes.Container },
|
|
1999
1817
|
index.h("style", { type: "text/css" },
|
|
2000
1818
|
styleString,
|
|
2001
1819
|
vanillaStyle),
|
|
2002
1820
|
index.h("div", { class: sheet.classes.Header },
|
|
2003
|
-
index.h("div", { class: sheet.classes.Header
|
|
2004
|
-
index.h("div", { class: sheet.classes.Grid
|
|
1821
|
+
index.h("div", { class: sheet.classes.Header }, props.header)),
|
|
1822
|
+
index.h("div", { class: sheet.classes.Grid }, children)));
|
|
2005
1823
|
}
|
|
2006
1824
|
|
|
2007
1825
|
const ProgramExplainer = class {
|
|
@@ -2067,13 +1885,13 @@ function ProgramExplainerStepView(props) {
|
|
|
2067
1885
|
};
|
|
2068
1886
|
const sheet = JSS.createStyleSheet(style);
|
|
2069
1887
|
const styleString = sheet.toString();
|
|
2070
|
-
return (index.h("div", { class: sheet.classes.Container
|
|
1888
|
+
return (index.h("div", { class: sheet.classes.Container },
|
|
2071
1889
|
index.h("style", { type: "text/css" }, styleString),
|
|
2072
|
-
index.h("div", null, props.imageUrl ? (index.h("img", { class: sheet.classes.Media, src: props.imageUrl
|
|
1890
|
+
index.h("div", null, props.imageUrl ? (index.h("img", { class: sheet.classes.Media, src: props.imageUrl })) : (index.h("div", { class: sheet.classes.Media },
|
|
2073
1891
|
index.h("sl-icon", { name: props.icon })))),
|
|
2074
1892
|
index.h("div", { class: sheet.classes.Text },
|
|
2075
|
-
index.h("div", { class: sheet.classes.Header
|
|
2076
|
-
index.h("div", { class: sheet.classes.Description
|
|
1893
|
+
index.h("div", { class: sheet.classes.Header }, props.header),
|
|
1894
|
+
index.h("div", { class: sheet.classes.Description }, props.description))));
|
|
2077
1895
|
}
|
|
2078
1896
|
|
|
2079
1897
|
const ProgramExplainerStep = class {
|
|
@@ -2094,7 +1912,7 @@ function useProgramMenu(props) {
|
|
|
2094
1912
|
const host = index_module.R();
|
|
2095
1913
|
debug({ programId, props });
|
|
2096
1914
|
const ref = stencilHooks_module.useRef();
|
|
2097
|
-
const [, rerender] = index_module.
|
|
1915
|
+
const [, rerender] = index_module.on();
|
|
2098
1916
|
stencilHooks_module.useEffect(() => {
|
|
2099
1917
|
var _a;
|
|
2100
1918
|
(_a = ref.current) === null || _a === void 0 ? void 0 : _a.addEventListener('sl-select', (e) => {
|
|
@@ -2133,20 +1951,9 @@ const ProgramMenu = class {
|
|
|
2133
1951
|
|
|
2134
1952
|
const style$1 = {
|
|
2135
1953
|
Container: {
|
|
2136
|
-
|
|
2137
|
-
borderRadius: "var(--sl-border-radius-large)",
|
|
1954
|
+
display: "flex",
|
|
2138
1955
|
color: "var(--sl-color-neutral-900)",
|
|
2139
1956
|
background: "var(--sl-color-neutral-0)",
|
|
2140
|
-
},
|
|
2141
|
-
EndContainer: {
|
|
2142
|
-
display: "flex",
|
|
2143
|
-
flexDirection: "column",
|
|
2144
|
-
alignItems: "center",
|
|
2145
|
-
padding: "0 var(--sl-spacing-large)",
|
|
2146
|
-
},
|
|
2147
|
-
ColumnContainer: {
|
|
2148
|
-
"& p": { margin: "0" },
|
|
2149
|
-
display: "flex",
|
|
2150
1957
|
"& .left": {
|
|
2151
1958
|
boxSizing: "border-box",
|
|
2152
1959
|
width: "50%",
|
|
@@ -2154,6 +1961,8 @@ const style$1 = {
|
|
|
2154
1961
|
paddingRight: "var(--sl-spacing-medium)",
|
|
2155
1962
|
"@media (max-width: 499px)": {
|
|
2156
1963
|
width: "100%",
|
|
1964
|
+
padding: "0",
|
|
1965
|
+
marginBottom: "var(--sl-spacing-xx-large)",
|
|
2157
1966
|
},
|
|
2158
1967
|
},
|
|
2159
1968
|
"& .right": {
|
|
@@ -2163,8 +1972,11 @@ const style$1 = {
|
|
|
2163
1972
|
paddingLeft: "var(--sl-spacing-medium)",
|
|
2164
1973
|
"@media (max-width: 499px)": {
|
|
2165
1974
|
width: "100%",
|
|
1975
|
+
padding: "0",
|
|
2166
1976
|
},
|
|
2167
1977
|
},
|
|
1978
|
+
border: "1px solid var(--sl-color-neutral-300)",
|
|
1979
|
+
borderRadius: "var(--sl-border-radius-large)",
|
|
2168
1980
|
"@media (max-width: 499px)": {
|
|
2169
1981
|
flexDirection: "column",
|
|
2170
1982
|
border: "none",
|
|
@@ -2173,25 +1985,23 @@ const style$1 = {
|
|
|
2173
1985
|
};
|
|
2174
1986
|
const sheet$1 = JSS.createStyleSheet(style$1);
|
|
2175
1987
|
const styleString$1 = sheet$1.toString();
|
|
2176
|
-
const vanillaStyle = `
|
|
2177
|
-
:host{
|
|
2178
|
-
display: block;
|
|
2179
|
-
}
|
|
1988
|
+
const vanillaStyle = `
|
|
1989
|
+
:host{
|
|
1990
|
+
display: block;
|
|
1991
|
+
}
|
|
2180
1992
|
`;
|
|
2181
1993
|
function ReferralCardView(props) {
|
|
2182
|
-
return (index.h("div",
|
|
1994
|
+
return (index.h("div", null,
|
|
2183
1995
|
index.h("style", { type: "text/css" },
|
|
2184
1996
|
styleString$1,
|
|
2185
1997
|
vanillaStyle),
|
|
2186
|
-
index.h("div", { class: sheet$1.classes.
|
|
2187
|
-
index.h("div", { part: "sqm-columns", class: sheet$1.classes.ColumnContainer },
|
|
1998
|
+
index.h("div", { class: sheet$1.classes.Container },
|
|
2188
1999
|
index.h("div", { class: "left", style: {
|
|
2189
2000
|
alignSelf: props.verticalAlignment,
|
|
2190
2001
|
} }, props.slots.left),
|
|
2191
2002
|
index.h("div", { class: "right", style: {
|
|
2192
2003
|
alignSelf: props.verticalAlignment,
|
|
2193
|
-
} }, props.slots.right))
|
|
2194
|
-
index.h("div", { class: sheet$1.classes.EndContainer }, props.slots.footer)));
|
|
2004
|
+
} }, props.slots.right))));
|
|
2195
2005
|
}
|
|
2196
2006
|
|
|
2197
2007
|
const ReferralCard = class {
|
|
@@ -2212,27 +2022,25 @@ const ReferralCard = class {
|
|
|
2212
2022
|
const slots = {
|
|
2213
2023
|
left: index.h("slot", { name: "left" }),
|
|
2214
2024
|
right: index.h("slot", { name: "right" }),
|
|
2215
|
-
header: index.h("slot", { name: "header" }),
|
|
2216
|
-
footer: index.h("slot", { name: "footer" }),
|
|
2217
2025
|
};
|
|
2218
2026
|
return (index.h(ReferralCardView, Object.assign({}, utils.getProps(this), { slots: slots }), index.h("slot", null)));
|
|
2219
2027
|
}
|
|
2220
2028
|
};
|
|
2221
2029
|
|
|
2222
|
-
const GET_USER_DETAILS = index_module.dist.gql `
|
|
2223
|
-
query getUser($programId: ID) {
|
|
2224
|
-
viewer {
|
|
2225
|
-
... on User {
|
|
2226
|
-
referralCode(programId: $programId)
|
|
2227
|
-
}
|
|
2228
|
-
}
|
|
2229
|
-
}
|
|
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
|
+
}
|
|
2230
2038
|
`;
|
|
2231
2039
|
function useReferralIframe(props) {
|
|
2232
2040
|
var _a;
|
|
2233
2041
|
const programId = index_module.O();
|
|
2234
|
-
const user = index_module.
|
|
2235
|
-
const { data } = index_module.
|
|
2042
|
+
const user = index_module.N();
|
|
2043
|
+
const { data } = index_module.dn(GET_USER_DETAILS, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt) || !programId);
|
|
2236
2044
|
return {
|
|
2237
2045
|
states: {
|
|
2238
2046
|
content: props,
|
|
@@ -2890,58 +2698,58 @@ var module$1 = {};
|
|
|
2890
2698
|
|
|
2891
2699
|
const confetti = module$1.exports;
|
|
2892
2700
|
|
|
2893
|
-
const GET_EXCHANGE_LIST = index_module.dist.gql `
|
|
2894
|
-
query getExchangeList {
|
|
2895
|
-
viewer {
|
|
2896
|
-
... on User {
|
|
2897
|
-
visibleRewardExchangeItems(limit: 20, offset: 0) {
|
|
2898
|
-
data {
|
|
2899
|
-
key
|
|
2900
|
-
name
|
|
2901
|
-
description
|
|
2902
|
-
imageUrl
|
|
2903
|
-
available
|
|
2904
|
-
unavailableReasonCode
|
|
2905
|
-
ruleType
|
|
2906
|
-
sourceUnit
|
|
2907
|
-
sourceValue
|
|
2908
|
-
prettySourceValue
|
|
2909
|
-
sourceMinValue
|
|
2910
|
-
prettySourceMinValue
|
|
2911
|
-
sourceMaxValue
|
|
2912
|
-
prettySourceMaxValue
|
|
2913
|
-
destinationMinValue
|
|
2914
|
-
prettyDestinationMinValue
|
|
2915
|
-
destinationMaxValue
|
|
2916
|
-
prettyDestinationMaxValue
|
|
2917
|
-
globalRewardKey
|
|
2918
|
-
destinationUnit
|
|
2919
|
-
steps {
|
|
2920
|
-
sourceValue
|
|
2921
|
-
prettySourceValue
|
|
2922
|
-
destinationValue
|
|
2923
|
-
prettyDestinationValue
|
|
2924
|
-
available
|
|
2925
|
-
globalRewardKey
|
|
2926
|
-
unavailableReasonCode
|
|
2927
|
-
rewardInput
|
|
2928
|
-
}
|
|
2929
|
-
}
|
|
2930
|
-
totalCount
|
|
2931
|
-
}
|
|
2932
|
-
}
|
|
2933
|
-
}
|
|
2934
|
-
}
|
|
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
|
+
}
|
|
2935
2743
|
`;
|
|
2936
|
-
const EXCHANGE = index_module.dist.gql `
|
|
2937
|
-
mutation exchange($exchangeRewardInput: ExchangeRewardInput!) {
|
|
2938
|
-
exchangeReward(exchangeRewardInput: $exchangeRewardInput) {
|
|
2939
|
-
reward {
|
|
2940
|
-
id
|
|
2941
|
-
fuelTankCode
|
|
2942
|
-
}
|
|
2943
|
-
}
|
|
2944
|
-
}
|
|
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
|
+
}
|
|
2945
2753
|
`;
|
|
2946
2754
|
function useRewardExchangeList(props) {
|
|
2947
2755
|
var _a, _b, _c, _d, _e;
|
|
@@ -2957,9 +2765,9 @@ function useRewardExchangeList(props) {
|
|
|
2957
2765
|
});
|
|
2958
2766
|
const [open, setOpen] = stencilHooks_module.useState(false);
|
|
2959
2767
|
const { selectedItem, selectedStep, redeemStage, amount, exchangeError } = exchangeState;
|
|
2960
|
-
const user = index_module.
|
|
2961
|
-
const [exchange, { data: exchangeResponse, loading: exchangeLoading, errors },] = index_module.
|
|
2962
|
-
const { data, loading, refetch, errors: queryError, } = index_module.
|
|
2768
|
+
const user = index_module.N();
|
|
2769
|
+
const [exchange, { data: exchangeResponse, loading: exchangeLoading, errors },] = index_module.Pe(EXCHANGE);
|
|
2770
|
+
const { data, loading, refetch, errors: queryError, } = index_module.dn(GET_EXCHANGE_LIST, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
2963
2771
|
stencilHooks_module.useEffect(() => {
|
|
2964
2772
|
var _a, _b;
|
|
2965
2773
|
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) {
|
|
@@ -2978,7 +2786,7 @@ function useRewardExchangeList(props) {
|
|
|
2978
2786
|
canvas.confetti || confetti.create(canvas, { resize: true });
|
|
2979
2787
|
canvas.confetti();
|
|
2980
2788
|
}, [canvasRef.current]);
|
|
2981
|
-
const { refresh } = index_module.
|
|
2789
|
+
const { refresh } = index_module.Le();
|
|
2982
2790
|
async function exchangeReward() {
|
|
2983
2791
|
if (!selectedItem)
|
|
2984
2792
|
return;
|
|
@@ -3286,7 +3094,7 @@ function matchPath(pattern, page) {
|
|
|
3286
3094
|
return regexp.exec(page);
|
|
3287
3095
|
}
|
|
3288
3096
|
function useRouter() {
|
|
3289
|
-
const location = index_module.
|
|
3097
|
+
const location = index_module.ln();
|
|
3290
3098
|
const host = index_module.R();
|
|
3291
3099
|
const [slot, setSlot] = stencilHooks_module.useState(undefined);
|
|
3292
3100
|
const [container, setContainer] = stencilHooks_module.useState(undefined);
|
|
@@ -3445,19 +3253,19 @@ const Scroll = class {
|
|
|
3445
3253
|
};
|
|
3446
3254
|
const sheet = JSS.createStyleSheet(style);
|
|
3447
3255
|
const styleString = sheet.toString();
|
|
3448
|
-
const vanillaStyle = `
|
|
3449
|
-
:host{
|
|
3450
|
-
display: contents;
|
|
3451
|
-
}
|
|
3256
|
+
const vanillaStyle = `
|
|
3257
|
+
:host{
|
|
3258
|
+
display: contents;
|
|
3259
|
+
}
|
|
3452
3260
|
${this.mobile &&
|
|
3453
|
-
`
|
|
3454
|
-
@media only screen and (max-width: 499px) {
|
|
3455
|
-
:host {
|
|
3456
|
-
display: block;
|
|
3457
|
-
width: 100%;
|
|
3458
|
-
}
|
|
3459
|
-
}
|
|
3460
|
-
`}
|
|
3261
|
+
`
|
|
3262
|
+
@media only screen and (max-width: 499px) {
|
|
3263
|
+
:host {
|
|
3264
|
+
display: block;
|
|
3265
|
+
width: 100%;
|
|
3266
|
+
}
|
|
3267
|
+
}
|
|
3268
|
+
`}
|
|
3461
3269
|
`;
|
|
3462
3270
|
let classStack = "";
|
|
3463
3271
|
if (this.outline && this.buttonType != "default")
|
|
@@ -3522,35 +3330,35 @@ function useDemoShareButton(props) {
|
|
|
3522
3330
|
}
|
|
3523
3331
|
ShareButton.style = sqmShareButtonCss;
|
|
3524
3332
|
|
|
3525
|
-
const MessageLinkQuery
|
|
3526
|
-
query ($programId: ID) {
|
|
3527
|
-
user: viewer {
|
|
3528
|
-
... on User {
|
|
3529
|
-
referralCode(programId: $programId)
|
|
3530
|
-
}
|
|
3531
|
-
}
|
|
3532
|
-
}
|
|
3333
|
+
const MessageLinkQuery = index_module.dist.gql `
|
|
3334
|
+
query ($programId: ID) {
|
|
3335
|
+
user: viewer {
|
|
3336
|
+
... on User {
|
|
3337
|
+
referralCode(programId: $programId)
|
|
3338
|
+
}
|
|
3339
|
+
}
|
|
3340
|
+
}
|
|
3533
3341
|
`;
|
|
3534
|
-
const WIDGET_ENGAGEMENT_EVENT
|
|
3535
|
-
mutation loadEvent($eventMeta: UserAnalyticsEvent!) {
|
|
3536
|
-
createUserAnalyticsEvent(eventMeta: $eventMeta)
|
|
3537
|
-
}
|
|
3342
|
+
const WIDGET_ENGAGEMENT_EVENT = index_module.dist.gql `
|
|
3343
|
+
mutation loadEvent($eventMeta: UserAnalyticsEvent!) {
|
|
3344
|
+
createUserAnalyticsEvent(eventMeta: $eventMeta)
|
|
3345
|
+
}
|
|
3538
3346
|
`;
|
|
3539
3347
|
function useShareCode(props) {
|
|
3540
3348
|
var _a, _b;
|
|
3541
3349
|
const { programId = index_module.O() } = props;
|
|
3542
|
-
const user = index_module.
|
|
3543
|
-
const engagementMedium = index_module.
|
|
3544
|
-
const { data } = index_module.
|
|
3545
|
-
const [sendLoadEvent] = index_module.
|
|
3546
|
-
const
|
|
3350
|
+
const user = index_module.N();
|
|
3351
|
+
const engagementMedium = index_module.U();
|
|
3352
|
+
const { data } = index_module.dn(MessageLinkQuery, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
3353
|
+
const [sendLoadEvent] = index_module.Pe(WIDGET_ENGAGEMENT_EVENT);
|
|
3354
|
+
const shareString = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.referralCode) !== null && _b !== void 0 ? _b :
|
|
3547
3355
|
// Shown during loading
|
|
3548
3356
|
"...";
|
|
3549
3357
|
const [open, setOpen] = stencilHooks_module.useState(false);
|
|
3550
3358
|
function onClick() {
|
|
3551
3359
|
// Should well supported: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
|
|
3552
3360
|
// Only if called from a user-initiated event
|
|
3553
|
-
navigator.clipboard.writeText(
|
|
3361
|
+
navigator.clipboard.writeText(shareString);
|
|
3554
3362
|
setOpen(true);
|
|
3555
3363
|
setTimeout(() => setOpen(false), props.tooltiplifespan);
|
|
3556
3364
|
sendLoadEvent({
|
|
@@ -3566,7 +3374,7 @@ function useShareCode(props) {
|
|
|
3566
3374
|
},
|
|
3567
3375
|
});
|
|
3568
3376
|
}
|
|
3569
|
-
return { ...props, onClick, open,
|
|
3377
|
+
return { ...props, onClick, open, shareString };
|
|
3570
3378
|
}
|
|
3571
3379
|
|
|
3572
3380
|
const ShareCode = class {
|
|
@@ -3584,30 +3392,6 @@ const ShareCode = class {
|
|
|
3584
3392
|
* @uiName Tooltip lifespan
|
|
3585
3393
|
*/
|
|
3586
3394
|
this.tooltiplifespan = 1000;
|
|
3587
|
-
/**
|
|
3588
|
-
* Change the text alignment
|
|
3589
|
-
*
|
|
3590
|
-
* @uiName Align text
|
|
3591
|
-
* @uiType string
|
|
3592
|
-
* @uiEnum ["left", "center"]
|
|
3593
|
-
* @uiEnumNames ["left", "center"]
|
|
3594
|
-
*/
|
|
3595
|
-
this.textAlign = "left";
|
|
3596
|
-
/**
|
|
3597
|
-
* Set copy button label
|
|
3598
|
-
*
|
|
3599
|
-
* @uiName Copy button label
|
|
3600
|
-
*/
|
|
3601
|
-
this.copyButtonLabel = "Copy Code";
|
|
3602
|
-
/**
|
|
3603
|
-
* Set the copy button style
|
|
3604
|
-
*
|
|
3605
|
-
* @uiName Copy button style
|
|
3606
|
-
* @uiType string
|
|
3607
|
-
* @uiEnum ["icon", "button inside", "button outside", "button below"]
|
|
3608
|
-
* @uiEnumNames ["icon", "button inside", "button outside", "button below"]
|
|
3609
|
-
*/
|
|
3610
|
-
this.buttonStyle = "icon";
|
|
3611
3395
|
stencilHooks_module.h$1(this);
|
|
3612
3396
|
}
|
|
3613
3397
|
disconnectedCallback() { }
|
|
@@ -3616,23 +3400,20 @@ const ShareCode = class {
|
|
|
3616
3400
|
const props = index_module.isDemo()
|
|
3617
3401
|
? useDemoShareCode(thisProps)
|
|
3618
3402
|
: useShareCode(thisProps);
|
|
3619
|
-
return index.h(ShadowViewAddon.
|
|
3403
|
+
return index.h(ShadowViewAddon.ShareLinkView, Object.assign({}, props));
|
|
3620
3404
|
}
|
|
3621
3405
|
};
|
|
3622
3406
|
function useDemoShareCode(props) {
|
|
3623
3407
|
const [open, setOpen] = stencilHooks_module.useState(false);
|
|
3624
|
-
const
|
|
3408
|
+
const shareString = "SHARECODE001";
|
|
3625
3409
|
return cjs.cjs({
|
|
3626
|
-
|
|
3410
|
+
shareString,
|
|
3627
3411
|
tooltiptext: props.tooltiptext,
|
|
3628
|
-
textAlign: props.textAlign,
|
|
3629
|
-
copyButtonLabel: props.copyButtonLabel,
|
|
3630
|
-
buttonStyle: props.buttonStyle,
|
|
3631
3412
|
open,
|
|
3632
3413
|
onClick: () => {
|
|
3633
3414
|
// Should well supported: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
|
|
3634
3415
|
// Only if called from a user-initiated event
|
|
3635
|
-
navigator.clipboard.writeText(
|
|
3416
|
+
navigator.clipboard.writeText(shareString);
|
|
3636
3417
|
setOpen(true);
|
|
3637
3418
|
setTimeout(() => setOpen(false), props.tooltiplifespan);
|
|
3638
3419
|
},
|
|
@@ -3654,30 +3435,6 @@ const ShareLink = class {
|
|
|
3654
3435
|
* @uiName Tooltip Lifespan
|
|
3655
3436
|
*/
|
|
3656
3437
|
this.tooltiplifespan = 1000;
|
|
3657
|
-
/**
|
|
3658
|
-
* Change the text alignment
|
|
3659
|
-
*
|
|
3660
|
-
* @uiName Align text
|
|
3661
|
-
* @uiType string
|
|
3662
|
-
* @uiEnum ["left", "center"]
|
|
3663
|
-
* @uiEnumNames ["left", "center"]
|
|
3664
|
-
*/
|
|
3665
|
-
this.textAlign = "left";
|
|
3666
|
-
/**
|
|
3667
|
-
* Set copy button label
|
|
3668
|
-
*
|
|
3669
|
-
* @uiName Copy button label
|
|
3670
|
-
*/
|
|
3671
|
-
this.copyButtonLabel = "Copy Link";
|
|
3672
|
-
/**
|
|
3673
|
-
* Set the copy button style
|
|
3674
|
-
*
|
|
3675
|
-
* @uiName Copy button style
|
|
3676
|
-
* @uiType string
|
|
3677
|
-
* @uiEnum ["icon", "button inside", "button outside", "button below"]
|
|
3678
|
-
* @uiEnumNames ["icon", "button inside", "button outside", "button below"]
|
|
3679
|
-
*/
|
|
3680
|
-
this.buttonStyle = "icon";
|
|
3681
3438
|
stencilHooks_module.h$1(this);
|
|
3682
3439
|
}
|
|
3683
3440
|
disconnectedCallback() { }
|
|
@@ -3686,23 +3443,20 @@ const ShareLink = class {
|
|
|
3686
3443
|
const props = index_module.isDemo()
|
|
3687
3444
|
? useDemoShareLink(thisProps)
|
|
3688
3445
|
: ShadowViewAddon.useShareLink(thisProps);
|
|
3689
|
-
return index.h(ShadowViewAddon.
|
|
3446
|
+
return index.h(ShadowViewAddon.ShareLinkView, Object.assign({}, props));
|
|
3690
3447
|
}
|
|
3691
3448
|
};
|
|
3692
3449
|
function useDemoShareLink(props) {
|
|
3693
3450
|
const [open, setOpen] = stencilHooks_module.useState(false);
|
|
3694
|
-
const
|
|
3451
|
+
const shareString = "https://www.example.com/sharelink/abc";
|
|
3695
3452
|
return cjs.cjs({
|
|
3696
|
-
|
|
3453
|
+
shareString,
|
|
3697
3454
|
tooltiptext: props.tooltiptext,
|
|
3698
|
-
textAlign: props.textAlign,
|
|
3699
|
-
buttonStyle: props.buttonStyle,
|
|
3700
|
-
copyButtonLabel: props.copyButtonLabel,
|
|
3701
3455
|
open,
|
|
3702
3456
|
onClick: () => {
|
|
3703
3457
|
// Should well supported: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
|
|
3704
3458
|
// Only if called from a user-initiated event
|
|
3705
|
-
navigator.clipboard.writeText(
|
|
3459
|
+
navigator.clipboard.writeText(shareString);
|
|
3706
3460
|
setOpen(true);
|
|
3707
3461
|
setTimeout(() => setOpen(false), props.tooltiplifespan);
|
|
3708
3462
|
},
|
|
@@ -3761,18 +3515,18 @@ const TableRow = class {
|
|
|
3761
3515
|
}
|
|
3762
3516
|
};
|
|
3763
3517
|
|
|
3764
|
-
const SEND_EVENT = index_module.dist.gql `
|
|
3765
|
-
mutation taskCardEvent($userEventInput: UserEventInput!) {
|
|
3766
|
-
logUserEvent(userEventInput: $userEventInput) {
|
|
3767
|
-
userId
|
|
3768
|
-
}
|
|
3769
|
-
}
|
|
3518
|
+
const SEND_EVENT = index_module.dist.gql `
|
|
3519
|
+
mutation taskCardEvent($userEventInput: UserEventInput!) {
|
|
3520
|
+
logUserEvent(userEventInput: $userEventInput) {
|
|
3521
|
+
userId
|
|
3522
|
+
}
|
|
3523
|
+
}
|
|
3770
3524
|
`;
|
|
3771
3525
|
function useTaskCard(props) {
|
|
3772
|
-
const user = index_module.
|
|
3526
|
+
const user = index_module.N();
|
|
3773
3527
|
const locale = index_module.x();
|
|
3774
|
-
const [sendUserEvent, { data, loading: loadingEvent }] = index_module.
|
|
3775
|
-
const { refresh } = index_module.
|
|
3528
|
+
const [sendUserEvent, { data, loading: loadingEvent }] = index_module.Pe(SEND_EVENT);
|
|
3529
|
+
const { refresh } = index_module.Le();
|
|
3776
3530
|
stencilHooks_module.useEffect(() => {
|
|
3777
3531
|
if (data) {
|
|
3778
3532
|
refresh();
|
|
@@ -3959,14 +3713,14 @@ const Timeline = class {
|
|
|
3959
3713
|
// incase child is not sqm-timeline-entry
|
|
3960
3714
|
}
|
|
3961
3715
|
});
|
|
3962
|
-
const vanillaStyle = `
|
|
3963
|
-
:host{
|
|
3964
|
-
display: block;
|
|
3965
|
-
}
|
|
3966
|
-
|
|
3967
|
-
::slotted(*:not(:only-child):not(:last-child)) {
|
|
3968
|
-
margin-bottom: var(--sl-spacing-xx-large);
|
|
3969
|
-
}
|
|
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
|
+
}
|
|
3970
3724
|
`;
|
|
3971
3725
|
return (index.h("div", null, index.h("style", { type: "text/css" }, vanillaStyle), index.h("slot", null)));
|
|
3972
3726
|
}
|
|
@@ -4025,23 +3779,23 @@ const style$2 = {
|
|
|
4025
3779
|
};
|
|
4026
3780
|
const sheet$2 = JSS.createStyleSheet(style$2);
|
|
4027
3781
|
const styleString$2 = sheet$2.toString();
|
|
4028
|
-
const vanillaStyle$1 = `
|
|
4029
|
-
:host{
|
|
4030
|
-
display: block;
|
|
4031
|
-
}
|
|
4032
|
-
|
|
4033
|
-
:host(:not(:last-of-type)) .line {
|
|
4034
|
-
display: block;
|
|
4035
|
-
}
|
|
3782
|
+
const vanillaStyle$1 = `
|
|
3783
|
+
:host{
|
|
3784
|
+
display: block;
|
|
3785
|
+
}
|
|
3786
|
+
|
|
3787
|
+
:host(:not(:last-of-type)) .line {
|
|
3788
|
+
display: block;
|
|
3789
|
+
}
|
|
4036
3790
|
`;
|
|
4037
3791
|
function TimelineEntryView(props) {
|
|
4038
3792
|
var _a;
|
|
4039
3793
|
const timeline_icon = (_a = props.icon) !== null && _a !== void 0 ? _a : props.iconState;
|
|
4040
|
-
return (index.h("div", { class: sheet$2.classes.TimelineReward
|
|
3794
|
+
return (index.h("div", { class: sheet$2.classes.TimelineReward },
|
|
4041
3795
|
index.h("style", { type: "text/css" },
|
|
4042
3796
|
styleString$2,
|
|
4043
3797
|
vanillaStyle$1),
|
|
4044
|
-
index.h("div", { class: "container"
|
|
3798
|
+
index.h("div", { class: "container" },
|
|
4045
3799
|
index.h("div", { class: "line" }, "/"),
|
|
4046
3800
|
index.h("div", { class: "step" },
|
|
4047
3801
|
timeline_icon === "gift" && (index.h("div", { class: "icon" },
|
|
@@ -4050,9 +3804,9 @@ function TimelineEntryView(props) {
|
|
|
4050
3804
|
index.h(Circle, null))),
|
|
4051
3805
|
index.h("div", null,
|
|
4052
3806
|
index.h("div", null,
|
|
4053
|
-
index.h("span", { class: "reward"
|
|
4054
|
-
index.h("span", { class: "unit"
|
|
4055
|
-
index.h("div", { class: "description"
|
|
3807
|
+
index.h("span", { class: "reward" }, props.reward),
|
|
3808
|
+
index.h("span", { class: "unit" }, props.unit)),
|
|
3809
|
+
index.h("div", { class: "description" }, props.desc))))));
|
|
4056
3810
|
}
|
|
4057
3811
|
|
|
4058
3812
|
const TimelineReward = class {
|
|
@@ -4076,20 +3830,20 @@ function UserNameView(props) {
|
|
|
4076
3830
|
return index.h(index.Host, null, props.loading ? props.loadingText : props.username);
|
|
4077
3831
|
}
|
|
4078
3832
|
|
|
4079
|
-
const GET_USER_NAME = index_module.dist.gql `
|
|
4080
|
-
query getUserName {
|
|
4081
|
-
viewer {
|
|
4082
|
-
... on User {
|
|
4083
|
-
firstName
|
|
4084
|
-
lastName
|
|
4085
|
-
}
|
|
4086
|
-
}
|
|
4087
|
-
}
|
|
3833
|
+
const GET_USER_NAME = index_module.dist.gql `
|
|
3834
|
+
query getUserName {
|
|
3835
|
+
viewer {
|
|
3836
|
+
... on User {
|
|
3837
|
+
firstName
|
|
3838
|
+
lastName
|
|
3839
|
+
}
|
|
3840
|
+
}
|
|
3841
|
+
}
|
|
4088
3842
|
`;
|
|
4089
3843
|
function useUserName(props) {
|
|
4090
3844
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
4091
|
-
const user = index_module.
|
|
4092
|
-
const res = index_module.
|
|
3845
|
+
const user = index_module.N();
|
|
3846
|
+
const res = index_module.dn(GET_USER_NAME, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
4093
3847
|
const loading = res.loading;
|
|
4094
3848
|
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)
|
|
4095
3849
|
? `${(_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}`
|
|
@@ -4134,7 +3888,6 @@ exports.sqm_big_stat = BigStat;
|
|
|
4134
3888
|
exports.sqm_brand = BrandComponent;
|
|
4135
3889
|
exports.sqm_card_feed = CardFeed;
|
|
4136
3890
|
exports.sqm_checkbox_field = CheckboxField;
|
|
4137
|
-
exports.sqm_coupon_code = CouponCode;
|
|
4138
3891
|
exports.sqm_divided_layout = DividedLayout;
|
|
4139
3892
|
exports.sqm_dropdown_field = DropdownField;
|
|
4140
3893
|
exports.sqm_edit_profile = EditProfile;
|
|
@@ -4145,7 +3898,6 @@ exports.sqm_leaderboard = Leaderboard;
|
|
|
4145
3898
|
exports.sqm_name_fields = NameFields;
|
|
4146
3899
|
exports.sqm_navigation_menu = NavigationMenu;
|
|
4147
3900
|
exports.sqm_portal_change_password = PortalChangePassword;
|
|
4148
|
-
exports.sqm_portal_footer = PortalFooter;
|
|
4149
3901
|
exports.sqm_portal_frame = PortalFrame;
|
|
4150
3902
|
exports.sqm_portal_login = PortalLogin;
|
|
4151
3903
|
exports.sqm_portal_register = PortalRegister;
|