@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
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
import{r as t,h as e,c as a}from"./p-64c3217a.js";import{m as s,u as r,i as n,o as i,j as o,b as l,f as d}from"./p-ed801cb7.js";import{i as c}from"./p-a59be693.js";import{u}from"./p-f66b4b3a.js";import{i as h,R as m,d as p,O as v,W as g,f,F as b,_ as y,x,a as w,g as k,r as C,M as E,D as S,t as I,c as M}from"./p-bfd347b4.js";import{j as R}from"./p-e7e129ac.js";import{c as _}from"./p-c1086930.js";import"./p-02be1a88.js";import{c as q}from"./p-cef45012.js";import{a as N}from"./p-9d9da716.js";import{u as A}from"./p-0597b64f.js";import"./p-25254dd1.js";import{g as P,a as T,s as V}from"./p-9ec99ced.js";import"./p-f8dd6bac.js";import{A as F}from"./p-121cdc60.js";import{R as L,u as D}from"./p-6ddc2a08.js";import{b as $,O as j,B as z,K as B,J as O,j as U,C as H,D as W,E as G,I as Z,Q as K,L as X,N as J,d as Y,i as Q,P as tt,e as et,f as at,R as st,U as rt,k as nt,V as it,a as ot,S as lt,u as dt,c as ct,T as ut}from"./p-129c07fd.js";import"./p-bfdbe27c.js";const ht=class{constructor(e){t(this,e),this.flexReverse=!1,this.ignored=!0,s(this)}disconnectedCallback(){}render(){var t;const{props:a,label:s}=h()?$(this):j(this),r=!!(null===(t=m().innerHTML)||void 0===t?void 0:t.trim()),n=e("slot",{name:"label"},r?e("slot",null):s);return e(z,Object.assign({},a,{labelSlot:n}))}},mt=class{constructor(e){t(this,e),s(this)}disconnectedCallback(){}render(){var t,s;const n=null!==(t=function(t){if(t)try{return B(t)}catch{}}(this.brandColor))&&void 0!==t?t:"",i=(null!==(s=this.brandFont)&&void 0!==s?s:"Nunito Sans").trim()||void 0;r((()=>{if(!i)return;const t=document.createElement("link");return t.setAttribute("href",function(...t){return`https://fonts.googleapis.com/css2?${t.map((t=>`family=${encodeURIComponent(t)}`)).join("&")}`}(i)),t.setAttribute("rel","stylesheet"),document.head.appendChild(t),()=>document.head.removeChild(t)}),[i]);const o=null!=i?i:"";return e(a,null,e("style",null,`\n\n :host{\n display: contents;\n }\n /* \n Selects any element placed inside a slot\n - resets css variable inheritence for fonts\n \n */\n ::slotted(*) {\n --sl-font-sans: "${o}", arial;\n --sl-input-font-family: "${o}", arial;\n --sl-tooltip-font-family: "${o}", arial;\n font-family: "${o}", arial;\n\t\t\t\n ${n}\n\n --sl-focus-ring-color-primary: var(--sl-color-primary-100);\n --sl-input-border-color-focus: var(--sl-color-primary-500);\n --sl-color-primary-hue: var(--sl-color-primary-500);\n }`),e("slot",null))}},pt=class{constructor(e){t(this,e),this.ignored=!0,this.width=347,this.gap=24,s(this)}disconnectedCallback(){}render(){return e(O,Object.assign({},P(this)),e("slot",null))}},vt=q({IconStyle:{display:"block",position:"absolute",top:"23px"},DivStyle:{marginLeft:"28px"},Details:{marginLeft:"28px"},Heading:{display:"inline-block"},Children:{display:"none"}}),gt=vt.toString();function ft({missingProps:t,heading:a="There was a problem loading this section",subheading:s="There was a technical problem that prevented this section from loading. Please contact us with the link to this page.",description:r="Error occured while loading <{tagName}>. Values for the following attributes are missing:"},i){if(!t)return!1;const o=m(),[l,d]=n(!1);return e("sl-alert",{type:"danger",open:!0},e("style",{type:"text/css"},gt),e("div",{slot:"icon",class:vt.classes.IconStyle},e("sl-icon",{name:"exclamation-octagon"})),e("div",{class:vt.classes.DivStyle},e("h2",{class:vt.classes.Heading},c.formatMessage({id:"error-heading",defaultMessage:a})),e("p",null,c.formatMessage({id:"error-subheading",defaultMessage:s}))),e("details",{class:vt.classes.Details},e("summary",{onClick:()=>d(!l)},l?"Less":"More"," details"),e("p",null,c.formatMessage({id:"error-description",defaultMessage:r},{tagName:o.tagName.toLowerCase()})),e("ul",null,t.map((t=>e("li",null,e("strong",null,t.attribute)))))),e("div",{class:vt.classes.Children},i))}const bt=class{constructor(e){t(this,e),this.ignored=!0,this.checkboxLabel="By signing up you agree to the {labelLink}",this.checkboxLabelLink="https://example.com",this.checkboxLabelLinkText="Terms and Conditions",this.errorMessage="Must be checked",this.checkboxOptional=!1,s(this)}disconnectedCallback(){}render(){const t=T([{attribute:"checkbox-name",value:this.checkboxName}]);if(!h()&&t)return e(ft,{missingProps:t,heading:"An error occured while loading this form",subheading:"A technical problem prevented this checkbox field from loading. Please contact us with the link to this page.",description:"Values for the following attributes are missing:"});const a={...P(this)},{states:s,callbacks:o}=h()?_({states:{registrationFormState:{},checked:!1},callbacks:{setChecked:()=>{}}},this.demoData||{},{arrayMerge:(t,e)=>e}):function(t){var e;const a=i(L),[s,o]=n(!1);return r((()=>{var e,s;(null===(e=null==a?void 0:a.initialData)||void 0===e?void 0:e[t.checkboxName])&&o(!!(null===(s=null==a?void 0:a.initialData)||void 0===s?void 0:s[t.checkboxName]))}),[null===(e=null==a?void 0:a.initialData)||void 0===e?void 0:e[t.checkboxName]]),{states:{registrationFormState:a,checked:s},callbacks:{setChecked:o}}}(this);return e(U,{states:s,content:a,callbacks:o})}},yt=p.gql`
|
|
2
|
-
query ($programId: ID) {
|
|
3
|
-
user: viewer {
|
|
4
|
-
... on User {
|
|
5
|
-
referralCode(programId: $programId)
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
`,xt=p.gql`
|
|
10
|
-
mutation loadEvent($eventMeta: UserAnalyticsEvent!) {
|
|
11
|
-
createUserAnalyticsEvent(eventMeta: $eventMeta)
|
|
12
|
-
}
|
|
13
|
-
`,wt=class{constructor(e){t(this,e),this.tooltiptext="Copied to Clipboard",this.tooltiplifespan=1e3,this.textAlign="left",this.copyButtonLabel="Copy Coupon",this.buttonStyle="icon",this.errorText="Oops! Looks like we weren’t able to retrieve a code for you. Please try again later.",s(this)}disconnectedCallback(){}render(){const t=P(this),a=h()?function(t){const[e,a]=n(!1),s="THANKSJANE125uv125";return _({copyString:s,tooltiptext:t.tooltiptext,textAlign:t.textAlign,buttonStyle:t.buttonStyle,copyButtonLabel:t.copyButtonLabel,errorText:t.errorText,error:!1,open:e,onClick:()=>{navigator.clipboard.writeText(s),a(!0),setTimeout((()=>a(!1)),t.tooltiplifespan)}},t.demoData||{},{arrayMerge:(t,e)=>e})}(t):function(t){var e,a;const{programId:s=v()}=t,r=g(),i=y(),{data:o}=f(yt,{programId:s},!(null==r?void 0:r.jwt)),[l]=b(xt),d=null!==(a=null===(e=null==o?void 0:o.user)||void 0===e?void 0:e.referralCode)&&void 0!==a?a:"...",[c,u]=n(!1);return{...t,onClick:function(){navigator.clipboard.writeText(d),u(!0),setTimeout((()=>u(!1)),t.tooltiplifespan),l({eventMeta:{programId:s,id:null==r?void 0:r.id,accountId:null==r?void 0:r.accountId,type:"USER_REFERRAL_PROGRAM_ENGAGEMENT_EVENT",meta:{engagementMedium:i,couponMedium:"DIRECT"}}})},open:c,copyString:d}}(t);return e(H,Object.assign({},a))}};function kt(t,a){const s=()=>"row"===t.direction?{"border-right":t.dividerStyle||"1px solid #EAEAEA"}:{"border-bottom":t.dividerStyle||"1px solid #EAEAEA"},r={LayoutContainer:{display:"contents","& > :not(:last-child)":{...s()},"& > ::slotted(*:not(:last-child))":{...s()}}},n=`\n display: flex;\n flex: 1;\n box-sizing: border-box;\n flex-direction: ${t.direction};\n background-color: var(--sqm-content-background);\n overflow-x: clip;\n ${"column"===t.direction?"width: 100%; max-width: var(--sqm-portal-main-width);":""}\n `,i=`\n :host{\n ${n}\n }\n sqm-divided-layout {\n ${n}\n }\n `,o=q(r),l=o.toString();return e("div",{class:o.classes.LayoutContainer,part:"sqm-layout-container"},e("style",{type:"text/css"},i,l),a)}const Ct=class{constructor(e){t(this,e),this.dividerStyle="1px solid #EAEAEA",s(this)}disconnectedCallback(){}render(){return e(kt,Object.assign({},P(this)),e("slot",null))}},Et=class{constructor(e){t(this,e),this.ignored=!0,this.dropdownLabel="Select an option",this.errorMessage="Select an option",this.dropdownOptional=!1,s(this)}disconnectedCallback(){}render(){const t=T([{attribute:"dropdown-name",value:this.dropdownName}]);if(!h()&&t)return e(ft,{missingProps:t,heading:"An error occured while loading this form",subheading:"A technical problem prevented this drop down field from loading. Please contact us with the link to this page.",description:"Values for the following attributes are missing:"},e("slot",null));const a={...P(this),selectOptions:e("slot",null)},{states:s}=h()?_({states:{registrationFormState:{}}},this.demoData||{},{arrayMerge:(t,e)=>e}):{states:{registrationFormState:i(L)}};return e(W,{states:s,content:a})}},St=p.gql`
|
|
14
|
-
query {
|
|
15
|
-
viewer {
|
|
16
|
-
... on User {
|
|
17
|
-
id
|
|
18
|
-
accountId
|
|
19
|
-
firstName
|
|
20
|
-
lastName
|
|
21
|
-
email
|
|
22
|
-
countryCode
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
`,It=p.gql`
|
|
27
|
-
mutation (
|
|
28
|
-
$id: String!
|
|
29
|
-
$accountId: String!
|
|
30
|
-
$firstName: String!
|
|
31
|
-
$lastName: String!
|
|
32
|
-
) {
|
|
33
|
-
upsertUser(
|
|
34
|
-
userInput: {
|
|
35
|
-
id: $id
|
|
36
|
-
accountId: $accountId
|
|
37
|
-
firstName: $firstName
|
|
38
|
-
lastName: $lastName
|
|
39
|
-
}
|
|
40
|
-
) {
|
|
41
|
-
firstName
|
|
42
|
-
lastName
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
`,Mt={currentRegion:"",firstName:"",lastName:"",errors:{},error:""},Rt=class{constructor(e){t(this,e),this.ignored=!0,s(this)}disconnectedCallback(){}render(){const t=h()?function(t){return _({states:{loading:!1,submitDisabled:!1,formState:{currentRegion:"Canada",firstName:"Bill",lastName:"Bob",errors:{},error:"An error string"},user:{firstName:"Bill",lastName:"Bob",email:"billbob@example.com"},showEdit:!1,text:{editprofileheader:t.editprofileheader?t.editprofileheader:"Edit Profile",editprofiletext:t.editprofiletext?t.editprofiletext:"Update your profile.",firstnametext:t.firstnametext?t.firstnametext:"First Name",lastnametext:t.lastnametext?t.lastnametext:"Last Name",canceltext:t.canceltext?t.canceltext:"Cancel",updatetext:t.updatetext?t.updatetext:"Update",currentregiontext:t.currentregiontext?t.currentregiontext:"Region",showregion:!0}},callbacks:{onSubmit:t=>{console.log(t)},resetForm:()=>{console.log("reset")},onChange:()=>{console.log("change")},setShowEdit:t=>{console.log(t)}}},t.demoData||{},{arrayMerge:(t,e)=>e})}(P(this)):function(t){const e=g(),[a,s]=n(!1),[i,o]=n(""),[l,d]=n(void 0),[u,h]=n(Mt),m=f(St,{},!(null==e?void 0:e.jwt)),[p,v]=b(It);return r((()=>{!(null==v?void 0:v.loading)&&a&&((null==v?void 0:v.errors)?h((t=>{var e,a,s;return{...t,error:null===(s=null===(a=null===(e=null==v?void 0:v.errors)||void 0===e?void 0:e.response)||void 0===a?void 0:a.errors)||void 0===s?void 0:s[0].message}})):(d((t=>{var e;return{...t,...null===(e=null==v?void 0:v.data)||void 0===e?void 0:e.upsertUser}})),s(!1)))}),[null==v?void 0:v.loading]),r((()=>{d((t=>{var e;return{...t,...null===(e=null==m?void 0:m.data)||void 0===e?void 0:e.viewer}}))}),[null==m?void 0:m.data]),r((()=>{var t;(null===(t=null==v?void 0:v.errors)||void 0===t?void 0:t.message)&&h((t=>({...t,error:"Network request failed."})))}),[null==v?void 0:v.errors]),{states:{loading:(null==m?void 0:m.loading)||v.loading,submitDisabled:!1,formState:u,user:l,showEdit:a,text:{editprofileheader:t.editprofileheader,editprofiletext:t.editprofiletext,firstnametext:t.firstnametext,lastnametext:t.lastnametext,canceltext:t.canceltext,updatetext:t.updatetext,currentregiontext:t.currentregiontext,showregion:t.showregion}},callbacks:{onSubmit:()=>{if(u.firstName&&u.lastName)return p({id:null==e?void 0:e.id,accountId:null==e?void 0:e.accountId,firstName:u.firstName,lastName:u.lastName}),void h((t=>({...t,errors:{}})));const t={};u.firstName||(t.firstName={message:"Field can't be empty"}),u.lastName||(t.lastName={message:"Field can't be empty"}),t!=={}&&h((t=>({...t,error:"Please correct the errors below to update your profile."}))),h((e=>({...e,errors:t})))},resetForm:()=>{var t,e,a,s,r,n;const i=(null===(e=null===(t=null==m?void 0:m.data)||void 0===t?void 0:t.viewer)||void 0===e?void 0:e.countryCode)?c.formatDisplayName(m.data.viewer.countryCode,{type:"region"}):"";d({...null===(a=m.data)||void 0===a?void 0:a.viewer,...null===(s=v.data)||void 0===s?void 0:s.upsertUser}),h({...Mt,...null===(r=m.data)||void 0===r?void 0:r.viewer,...null===(n=v.data)||void 0===n?void 0:n.upsertUser,currentRegion:i})},onChange:t=>{const{name:e,value:a}=t.target;h((t=>({...t,[e]:a})))},setShowEdit:s}}}(P(this));return e(G,Object.assign({},t))}};function _t(t,a){const s=Boolean((t.header||t.description||t.buttonText)&&"overlay"===t.layout),r=q({Container:{position:"relative","&:before":{content:s?'""':"",width:"100%",height:"100%",position:"absolute",background:t.overlayColor||"var(--sl-color-primary-900)",opacity:t.overlayOpacity}},Image:{display:"block",width:"100%",height:"100%",maxWidth:"max-content",objectFit:"cover",margin:"auto"},Background:{backgroundImage:`url(${t.imageUrl})`,backgroundSize:"cover",backgroundPosition:t.imagePos||"center",display:"flex",justifyContent:"center",alignItems:"center"},Overlay:{zIndex:"1",padding:"calc(var(--sl-spacing-"+t.paddingText+") + var(--sl-spacing-"+t.paddingImage+"))",textAlign:"center",color:t.textColor||"var(--sl-color-neutral-0)",lineHeight:"var(--sl-line-height-dense)","@media (max-width: 599px)":{padding:"var(--sl-spacing-"+t.paddingText+")"}},Column:{display:"flex",background:t.backgroundColor||"",flexDirection:"right"===t.imagePos?"row-reverse":"row",lineHeight:"var(--sl-line-height-dense)",color:t.textColor||"var(--sl-color-neutral-900)","& .image-area":{width:t.imagePercentage?t.imagePercentage+"%":"50%",padding:"var(--sl-spacing-"+t.paddingImage+")",boxSizing:"border-box","@media (max-width: 599px)":{width:"100%"}},"& .text-area":{width:t.imagePercentage?100-t.imagePercentage+"%":"50%",padding:"var(--sl-spacing-"+t.paddingText+")",alignSelf:"center",boxSizing:"border-box","@media (max-width: 599px)":{width:"100%",textAlign:"center",padding:"calc(0.5*var(--sl-spacing-"+t.paddingText+"))"}},"@media (max-width: 599px)":{flexDirection:"bottom"===t.imageMobilePos?"column-reverse":"column"}},Header:{fontSize:"var(--sl-font-size-xxx-large)",fontWeight:"var(--sl-font-weight-bold)","@media (max-width: 599px)":{fontSize:"var(--sl-font-size-xx-large)"}},Description:{fontSize:"var(--sl-font-size-x-large)",margin:"var(--sl-spacing-small) 0","@media (max-width: 599px)":{fontSize:"var(--sl-font-size-large)"}},Button:{marginTop:"var(--sl-spacing-medium)","&::part(base)":{padding:"0 var(--sl-spacing-x-large)"},"@media (max-width: 599px)":{width:"100%"}}}),n=r.toString();return e("div",{class:r.classes.Container,part:"sqm-hero-image-container"},e("style",{type:"text/css"},"\n :host{\n display: block;\n }",n),"overlay"===t.layout&&e("div",{class:r.classes.Background},e("div",{class:r.classes.Overlay,part:"sqm-hero-image-overlay-container"},t.header&&e("div",{class:r.classes.Header},t.header),t.description&&e("div",{class:r.classes.Description},t.description),t.buttonText&&e("sl-button",{class:r.classes.Button,type:"primary",onClick:()=>t.buttonNewTab?window.open(t.buttonLink):window.open(t.buttonLink,"_parent")},t.buttonText),a&&a)),"columns"===t.layout&&e("div",null,e("div",{class:r.classes.Column},e("div",{class:"image-area"},e("img",{class:r.classes.Image,src:t.imageUrl,part:"sqm-hero-image"})),e("div",{class:"text-area",part:"sqm-hero-image-text-area"},t.header&&e("div",{class:r.classes.Header,part:"sqm-hero-image-header"},t.header),t.description&&e("div",{class:r.classes.Description,part:"sqm-hero-image-description"},t.description),t.buttonText&&e("sl-button",{exportparts:"base: sqm-hero-image-btn",class:r.classes.Button,type:"primary",onClick:()=>t.buttonNewTab?window.open(t.buttonLink):window.open(t.buttonLink,"_parent")},t.buttonText)))))}Rt.style=".ErrorStyles::part(base){background:var(--sl-color-danger-10);border-color:var(--sl-color-danger-500);outline:var(--sl-color-danger-500)}.ErrorStyles:host{--something-random:red;--focus-ring:0 0 0 var(--sl-focus-ring-width) red !important}.ErrorStyles::part(input){color:var(--sl-color-danger-500)}.ErrorStyles::part(input):-webkit-autofill,.ErrorStyles::part(input):-webkit-autofill:hover,.ErrorStyles::part(input):-webkit-autofill:focus,.ErrorStyles::part(input):-webkit-autofill:active{-webkit-box-shadow:0 0 0 var(--sl-input-height-large) var(--sl-input-background-color-hover) inset !important;box-shadow:0 0 0 var(--sl-input-height-large) var(--sl-input-background-color-hover) inset !important;-webkit-text-fill-color:var(--sl-color-danger-500)}.ErrorStyles::part(help-text){color:var(--sl-color-danger-500)}:host{display:block}:host([hidden]){display:none}.FormWrapper>:not(:first-child){margin-top:54px}.FormSection{width:100%}.FormSection>:not(:first-child){margin-top:16px}.ButtonWrapper{display:-ms-flexbox;display:flex;margin-top:24px;-ms-flex-pack:end;justify-content:flex-end}.ButtonWrapper>:not(:first-child){margin-left:var(--sl-font-size-x-small)}.CardWrapper{-webkit-box-sizing:border-box;box-sizing:border-box;background:var(--sl-color-white);padding:40px 30px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between}@media screen and (max-width: 499px){.CardWrapper{-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}}@media screen and (max-width: 880px){.CardWrapper.ShowEdit{-ms-flex-direction:row;flex-direction:row;-ms-flex-align:end;align-items:flex-end}}";const qt=class{constructor(e){t(this,e),this.overlayOpacity="0.75",this.layout="overlay",this.imagePercentage=50,this.imagePos="center",this.imageMobilePos="top",this.buttonNewTab=!1,this.paddingText="xxxx-large",this.paddingImage="none",s(this)}disconnectedCallback(){}render(){return e(_t,Object.assign({},P(this)),e("slot",null))}},Nt=class{constructor(e){t(this,e),this.ignored=!0,s(this)}disconnectedCallback(){}render(){return e(this.hookStory,null)}},At=class{constructor(e){t(this,e),this.ignored=!0,this.fieldType="text",this.errorMessage="Cannot be empty",this.fieldOptional=!1,s(this)}disconnectedCallback(){}render(){const t={...P(this)},a=T([{attribute:"field-name",value:this.fieldName}]);if(!h()&&a)return e(ft,{missingProps:a,heading:"An error occured while loading this form",subheading:"A technical problem prevented this input field from loading. Please contact us with the link to this page.",description:"Values for the following attributes are missing:"});const{states:s}=h()?_({states:{registrationFormState:{}}},this.demoData||{},{arrayMerge:(t,e)=>e}):{states:{registrationFormState:i(L)}};return e(Z,{states:s,content:t})}},Pt=p.gql`
|
|
46
|
-
query (
|
|
47
|
-
$type: String!
|
|
48
|
-
$filter: UserLeaderboardFilterInput
|
|
49
|
-
$locale: RSLocale
|
|
50
|
-
$limit: Int!
|
|
51
|
-
) {
|
|
52
|
-
userLeaderboard(type: $type, filter: $filter) {
|
|
53
|
-
dateModified
|
|
54
|
-
rows(limit: $limit) {
|
|
55
|
-
textValue(locale: $locale)
|
|
56
|
-
firstName
|
|
57
|
-
lastInitial
|
|
58
|
-
rank {
|
|
59
|
-
rank
|
|
60
|
-
denseRank
|
|
61
|
-
rowNumber
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
`,Tt=p.gql`
|
|
67
|
-
query (
|
|
68
|
-
$type: String!
|
|
69
|
-
$filter: UserLeaderboardFilterInput
|
|
70
|
-
$locale: RSLocale
|
|
71
|
-
) {
|
|
72
|
-
viewer {
|
|
73
|
-
... on User {
|
|
74
|
-
firstName
|
|
75
|
-
lastInitial
|
|
76
|
-
leaderboardRank(type: $type, filter: $filter) {
|
|
77
|
-
textValue(locale: $locale)
|
|
78
|
-
rank
|
|
79
|
-
denseRank
|
|
80
|
-
rowNumber
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
`,Vt=class{constructor(e){t(this,e),this.hideViewer=!1,this.anonymousUser="Anonymous User",this.maxRows=10,this.ignored=!0,s(this),K(this)}disconnectedCallback(){}render(){const t={empty:e(Ft,null),loadingstate:e(Lt,null),usersheading:this.usersheading,statsheading:this.statsheading,rankheading:this.rankheading,rankType:this.rankType,leaderboardType:this.leaderboardType,maxRows:this.maxRows,programId:this.programId,anonymousUser:this.anonymousUser,interval:this.interval,hideViewer:this.hideViewer,showRank:this.showRank},a={...t,demoData:this.demoData},s=h()?function(t){var a,s;const r=(null===(s=null===(a=t.demoData)||void 0===a?void 0:a.data)||void 0===s?void 0:s.leaderboard)||[{firstName:"Viktor",lastInitial:"V",textValue:"82",rank:1,rowNumber:1},{firstName:"MF",lastInitial:"D",textValue:"73",rank:2,rowNumber:2},{firstName:"Freddie",lastInitial:"G",textValue:"64",rank:3,rowNumber:3},{firstName:"Benny",lastInitial:"B",textValue:"55",rank:4,rowNumber:4},{textValue:"46",rank:5,rowNumber:5}];return _({states:{loading:!1,hasLeaders:!0,styles:{usersheading:t.usersheading?t.usersheading:"Top referrers",statsheading:t.statsheading?t.statsheading:"New customers",rankheading:t.rankheading?t.rankheading:"Rank",anonymousUser:t.anonymousUser?t.anonymousUser:"Anonymous User",showRank:t.showRank,hideViewer:t.hideViewer}},data:{rankType:"rowNumber",leaderboard:r},elements:{empty:e(Ft,null),loadingstate:e(Lt,null)}},t.demoData||{},{arrayMerge:(t,e)=>e})}(a):function(t){var e,a,s,r,n,i,o,l,d,c;const u=v(),h=null!==(e=t.programId)&&void 0!==e?e:u,m=g(),p=x(),b=h?{type:t.leaderboardType,filter:{programId_eq:h}}:{type:t.leaderboardType,filter:{}};t.interval&&(b.filter.interval=t.interval),p&&(b.locale=p),t.maxRows>0&&(b.limit=t.maxRows);const{data:y,loading:w}=f(Pt,b,!(null==m?void 0:m.jwt)),{data:k}=f(Tt,b,!(null==m?void 0:m.jwt)),C=null==(I=null===(a=null==y?void 0:y.userLeaderboard)||void 0===a?void 0:a.rows)?void 0:I.flatMap((e=>{var a,s;return{textValue:e.textValue,firstName:e.firstName,lastInitial:e.lastInitial,rank:null===(a=e.rank)||void 0===a?void 0:a[t.rankType],rowNumber:null===(s=e.rank)||void 0===s?void 0:s.rowNumber}})),E=null==C?void 0:C.sort((function(t,e){return t.rank-e.rank})),S={textValue:null===(r=null===(s=null==k?void 0:k.viewer)||void 0===s?void 0:s.leaderboardRank)||void 0===r?void 0:r.textValue,firstName:null===(n=null==k?void 0:k.viewer)||void 0===n?void 0:n.firstName,lastInitial:null===(i=null==k?void 0:k.viewer)||void 0===i?void 0:i.lastInitial,rank:null===(l=null===(o=null==k?void 0:k.viewer)||void 0===o?void 0:o.leaderboardRank)||void 0===l?void 0:l[t.rankType],rowNumber:null===(c=null===(d=null==k?void 0:k.viewer)||void 0===d?void 0:d.leaderboardRank)||void 0===c?void 0:c.rowNumber};var I;return{states:{loading:w,hasLeaders:(null==E?void 0:E.length)>0,styles:t},data:{leaderboard:E,rankType:t.rankType,viewerRank:S},elements:{empty:t.empty,loadingstate:t.loadingstate}}}(t);return e(X,Object.assign({},s))}};function Ft(){return e("slot",{name:"empty"},e("sqm-empty",{"empty-state-image":"https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_leaderboard2.png","empty-state-header":"View your rank in the leaderboard","empty-state-text":"Be the first to refer a friend and reach the top of the leaderboard"}))}function Lt(){return e("slot",{name:"loading"},e("table",null,[...Array(10)].map((()=>e("tr",null,e("td",null,e("sl-skeleton",null)))))))}const Dt=class{constructor(e){t(this,e),this.ignored=!0,this.firstNameLabel="First Name",this.lastNameLabel="Last Name",s(this)}disconnectedCallback(){}render(){const{states:t}=h()?_({states:{validationErrors:[],content:{firstNameLabel:this.firstNameLabel,lastNameLabel:this.lastNameLabel}}},this.demoData||{},{arrayMerge:(t,e)=>e}):function(t){return{states:{registrationFormState:i(L),content:{lastNameLabel:t.lastNameLabel,firstNameLabel:t.firstNameLabel}}}}(this);return e(J,{states:t})}};function $t(t){const{states:a}=t,{styles:s}=a;return a.includeDropdown?e("sl-dropdown",{style:"margin-bottom: var(--sl-spacing-large)"},e("sl-button",{slot:"trigger",caret:!0,onClick:t.callbacks.rerender,exportparts:"base: dropdownbutton-base"},s.menuLabel),e("sl-menu",{ref:e=>{void 0===t.ref.current&&(t.ref.current=e,t.callbacks.rerender())}},e("slot",null))):""}const jt=class{constructor(e){t(this,e),this.ignored=!0,s(this)}disconnectedCallback(){}render(){const t=h()?function(t){return _({states:{includeDropdown:!0,styles:{...t,menuLabel:"Menu"}},callbacks:{rerender:()=>{}},ref:{current:void 0}},t.demoData||{},{arrayMerge:(t,e)=>e})}(P(this)):function(t){const e=o(),[,a]=w(),s=g();return r((()=>{var t;null===(t=e.current)||void 0===t||t.addEventListener("sl-select",(t=>function(t){k.push(t.detail.item.value)}(t)))}),[e.current]),{states:{includeDropdown:void 0!==((null==s?void 0:s.id)||(null==s?void 0:s.accountId)||(null==s?void 0:s.jwt)),styles:{menuLabel:t.menuLabel}},callbacks:{rerender:a},ref:e}}(P(this));return e(a,{slot:"sqm-navigation-menu"},e($t,Object.assign({},t)))}};jt.style=":host{display:block}:host([hidden]){display:none}.HeaderWrapper{width:100%;max-width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding:var(--sl-spacing-small) var(--sl-spacing-large);-ms-flex-align:center;align-items:center;background-color:var(--sqm-header-background)}@media screen and (max-width: 499px){.HeaderWrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse;-ms-flex-pack:end;justify-content:flex-end;padding:0 var(--sl-spacing-x-small)}}";const zt=class{constructor(e){t(this,e),this.ignored=!0,this.modalChangePasswordHeader="Change Password",this.cancelText="Cancel",this.changePasswordButtonText="Change Password",this.passwordFieldLabel="New Password",this.confirmPasswordFieldLabel="Confirm New Password",this.successMessage="Your password has been updated.",this.portalChangePasswordHeader="Password",this.portalChangePasswordButtonText="Change your password...",s(this)}disconnectedCallback(){}render(){const{states:t,callbacks:a}=h()?function(t){const[e,a]=n(!1);return _({states:{open:e,error:"",content:{modalChangePasswordHeader:t.modalChangePasswordHeader,cancelText:t.cancelText,changePasswordButtonText:t.changePasswordButtonText,passwordFieldLabel:t.passwordFieldLabel,confirmPasswordFieldLabel:t.confirmPasswordFieldLabel,successMessage:t.successMessage,portalChangePasswordHeader:t.portalChangePasswordHeader,portalChangePasswordButtonText:t.portalChangePasswordButtonText}},callbacks:{setOpen:t=>a(t),submit:t=>console.log("Submit",t)}},t.demoData||{},{arrayMerge:(t,e)=>e})}(this):function(t){var e,a,s,r,i,o,l;const[d,{loading:c,errors:u}]=C(),[h,m]=n(!1),[p,v]=n(""),[f,b]=n(!1),y=g();return{states:{open:h,loading:c,success:f,error:p||(null===(r=null===(s=null===(a=null===(e=null==u?void 0:u.response)||void 0===e?void 0:e.errors)||void 0===a?void 0:a[0])||void 0===s?void 0:s.extensions)||void 0===r?void 0:r.message)||(null===(l=null===(o=null===(i=null==u?void 0:u.response)||void 0===i?void 0:i.errors)||void 0===o?void 0:o[0])||void 0===l?void 0:l.message),content:{modalChangePasswordHeader:t.modalChangePasswordHeader,cancelText:t.cancelText,changePasswordButtonText:t.changePasswordButtonText,passwordFieldLabel:t.passwordFieldLabel,confirmPasswordFieldLabel:t.confirmPasswordFieldLabel,successMessage:t.successMessage,portalChangePasswordHeader:t.portalChangePasswordHeader,portalChangePasswordButtonText:t.portalChangePasswordButtonText}},data:{},callbacks:{setOpen:m,submit:async t=>{var e,a;b(!1);const s=null===(e=t.detail)||void 0===e?void 0:e.formData;if(null==s||s.forEach(((t,e)=>{R.set(s,e,t)})),!(null==y?void 0:y.jwt))return void v("Please log in again to change your password.");if(s.password!==s.confirmPassword)return void v("Passwords do not match.");v("");const r={password:s.password},n=await d(r);n instanceof Error||!(null===(a=n.changeManagedIdentityPassword)||void 0===a?void 0:a.success)||b(!0)}}}}(this);return e(Y,{states:t,callbacks:a})}},Bt=class{constructor(e){t(this,e),this.ignored=!0,this.hideSupportText=!1,this.supportEmail="support@example.com",this.supportText="For program support, contact {email}",this.hidePoweredBy=!1,this.poweredByLink="https://saasquatch.com",this.paddingTop="large",this.paddingRight="large",this.paddingBottom="large",this.paddingLeft="large",s(this)}disconnectedCallback(){}render(){return e(Q,Object.assign({},P(this)))}static get assetsDirs(){return["../../assets"]}},Ot=class{constructor(e){t(this,e),this.ignored=!0,this.notFullScreen=!1,s(this)}disconnectedCallback(){}render(){const t=e("slot",{name:"footer"}),a=e("slot",{name:"header"}),s=h()?function(t,a,s){return _({notFullScreen:!0,data:{footer:t||e("span",null,"example@example.com"),header:a||e("div",{style:{display:"flex",flexDirection:"column"}},e("span",{style:{fontSize:"var(--sl-font-size-large)",fontWeight:"bold"}},"Portal Header"),e("span",{style:{fontSize:"var(--sl-font-size-small)"}},"A description for the portal"))},callbacks:{rerender:()=>{}}},s.demoData||{},{arrayMerge:(t,e)=>e})}(t,a,this):function(t,e){const[,a]=w();return{data:{footer:t,header:e},callbacks:{rerender:a}}}(t,a);return e(tt,Object.assign({},s),e("slot",null))}},Ut=class{constructor(e){t(this,e),this.ignored=!0,this.nextPage="/",this.emailLabel="Email",this.passwordLabel="Password",this.submitLabel="Sign In",this.forgotPasswordPath="/forgotPassword",this.forgotPasswordLabel="Forgot Password?",this.registerLabel="Register",this.registerPath="/register",this.pageLabel="Sign in to your account",s(this)}disconnectedCallback(){}render(){const{states:t,callbacks:a}=h()?_({states:{error:"",loading:!1,forgotPasswordPath:"/forgotPassword",registerPath:"/register"},callbacks:{submit:async()=>{console.log("submit")}}},this.demoData||{},{arrayMerge:(t,e)=>e}):function(t){var e,a,s,r,i,o,l;const[d,{loading:c,errors:u}]=E(),[h,m]=n(""),p=new URLSearchParams(k.location.search),v=p.get("nextPage");return{states:{loading:c,error:(null===(r=null===(s=null===(a=null===(e=null==u?void 0:u.response)||void 0===e?void 0:e.errors)||void 0===a?void 0:a[0])||void 0===s?void 0:s.extensions)||void 0===r?void 0:r.message)||(null===(l=null===(o=null===(i=null==u?void 0:u.response)||void 0===i?void 0:i.errors)||void 0===o?void 0:o[0])||void 0===l?void 0:l.message)||h,registerPath:t.registerPath,forgotPasswordPath:t.forgotPasswordPath},callbacks:{submit:async e=>{var a,s;m("");let r=e.detail.formData;null==r||r.forEach(((t,e)=>{R.set(r,e,t)}));const n={email:r.email,password:r.password},i=await d(n);if(i instanceof Error)((null==i?void 0:i.message)||(null===(a=null==i?void 0:i.response)||void 0===a?void 0:a.error))&&m("Network request failed.");else if(null===(s=i.authenticateManagedIdentityWithEmailAndPassword)||void 0===s?void 0:s.token){p.delete("nextPage");const e=V(v||t.nextPage);k.push(e.href)}}}}}(this),s={forgotPasswordButton:e("slot",{name:"forgotPassword"},e("a",{onClick:()=>k.push(t.forgotPasswordPath)},this.forgotPasswordLabel)),secondaryButton:e("slot",{name:"secondaryButton"},e("sl-button",{type:"text",disabled:t.loading,onClick:()=>k.push(t.registerPath)},this.registerLabel)),emailLabel:this.emailLabel,passwordLabel:this.passwordLabel,submitLabel:this.submitLabel,pageLabel:this.pageLabel};return e(et,{states:t,callbacks:a,content:s})}},Ht=class{constructor(e){t(this,e),this.ignored=!0,this.nextPage="/",this.redirectPath="/verifyEmail",this.emailLabel="Email",this.passwordLabel="Password",this.submitLabel="Register",this.loginLabel="Sign in",this.confirmPasswordLabel="Confirm Password",this.confirmPassword=!1,this.disablePasswordValidation=!1,this.hideInputs=!1,this.pageLabel="Register",this.loginPath="/login",s(this)}disconnectedCallback(){}render(){const{states:t,callbacks:a,refs:s}=h()?_({states:{error:"",loading:!1,confirmPassword:(n=this).confirmPassword,hideInputs:n.hideInputs||!1,customPasswordField:!1,loginPath:n.loginPath,disablePasswordValidation:n.disablePasswordValidation},callbacks:{submit:async()=>{console.log("submit")},inputFunction:()=>{}},refs:{formRef:{}}},n.demoData||{},{arrayMerge:(t,e)=>e}):function(t){var e,a,s,n,i,l,d,c,h;const m=o(null),{registrationFormState:p,setRegistrationFormState:v}=D({}),[g,{loading:f,errors:b}]=S();r((()=>{if(!m.current)return;const t=m.current;return t.addEventListener("sl-input",y),()=>{t.removeEventListener("sl-input",y)}}),[m.current]);const y=u((t=>{var e,a;if("tel"!==(null===(a=null===(e=t.target)||void 0===e?void 0:e.type)||void 0===a?void 0:a.toLowerCase()))return;const s=new F("US");t.target.value=s.input(t.target.value)}),[]);let x="";return x=(null===(e=null==b?void 0:b.response)||void 0===e?void 0:e.error)||(null==b?void 0:b.message)&&!(null===(a=null==b?void 0:b.response)||void 0===a?void 0:a.errors.length)?"Network request failed":(null===(l=null===(i=null===(n=null===(s=null==b?void 0:b.response)||void 0===s?void 0:s.errors)||void 0===n?void 0:n[0])||void 0===i?void 0:i.extensions)||void 0===l?void 0:l.message)||(null===(h=null===(c=null===(d=null==b?void 0:b.response)||void 0===d?void 0:d.errors)||void 0===c?void 0:c[0])||void 0===h?void 0:h.message)||(null==p?void 0:p.error),{states:{loading:f,error:x,registrationFormState:p,confirmPassword:t.confirmPassword,hideInputs:t.hideInputs,loginPath:t.loginPath,disablePasswordValidation:t.disablePasswordValidation},callbacks:{submit:async e=>{var a;let s=e.target.getFormControls(),r={},n={};if(null==s||s.forEach((t=>{if(!t.name)return;const e=t.name,a=t.value;if(R.set(r,e,a),t.required&&!a&&R.set(n,e,"Cannot be empty"),"function"==typeof t.validationError){const s=(0,t.validationError)({control:t,key:e,value:a});s&&R.set(n,e,s)}})),(t.confirmPassword||r.confirmPassword)&&r.password!==r.confirmPassword&&(n={...n,confirmPassword:"Passwords do not match."}),Object.keys(n).length)return void v({loading:!1,error:"",validationErrors:n});v({loading:!0,error:"",validationErrors:{}});const{email:i,password:o}=r;delete r.email,delete r.password,delete r.confirmPassword,r={...r};const l={email:i,password:o,formData:r,redirectPath:t.redirectPath};try{const e=await g(l);if(e instanceof Error)throw e;v({loading:!1,error:"",validationErrors:{}}),(null===(a=e.registerManagedIdentityWithEmailAndPassword)||void 0===a?void 0:a.token)&&k.push(t.nextPage)}catch(t){v({loading:!1,error:"Network request failed.",validationErrors:{}})}},inputFunction:y},refs:{formRef:m}}}(this);var n;const i={formData:e("slot",{name:"formData"}),secondaryButton:e("slot",{name:"secondaryButton"},e("sl-button",{type:"text",disabled:t.loading,onClick:()=>k.push(t.loginPath)},this.loginLabel)),terms:e("slot",{name:"terms"}),emailLabel:this.emailLabel,passwordLabel:this.passwordLabel,submitLabel:this.submitLabel,pageLabel:this.pageLabel,confirmPasswordLabel:this.confirmPasswordLabel};return e(at,{states:t,callbacks:a,content:i,refs:s})}};function Wt(t,a){const s=q({Container:{color:t.textColor||"var(--sl-color-neutral-900)",background:t.backgroundColor||""},Header:{fontSize:"var(--sl-font-size-x-large)",fontWeight:"var(--sl-font-weight-bold)",lineHeight:"var(--sl-line-height-dense)",marginBottom:"var(--sl-spacing-large)",textAlign:"center"},Grid:{display:"flex",flexDirection:"row",gap:"var(--sl-spacing-large)","@media (max-width: 499px)":{flexDirection:"column"}}}),r=s.toString();return e("div",{class:s.classes.Container,part:"sqm-program-explainer-container"},e("style",{type:"text/css"},r,"\n ::slotted(*){\n display: flex;\n width: 100%;\n }\n @media (max-width: 499px) {\n ::slotted(*){\n display: block;\n }\n }"),e("div",{class:s.classes.Header},e("div",{class:s.classes.Header,part:"sqm-program-explainer-header"},t.header)),e("div",{class:s.classes.Grid,part:"sqm-program-explainer-grid-container"},a))}const Gt=class{constructor(e){t(this,e),this.ignored=!0,s(this)}disconnectedCallback(){}render(){return e(Wt,Object.assign({},P(this)),e("slot",null))}};function Zt(t){const a=q({Container:{display:"flex",flexDirection:"column",width:"100%",padding:"var(--sl-spacing-x-large)",lineHeight:"var(--sl-line-height-dense)",color:t.textColor||"var(--sl-color-neutral-900)",background:t.backgroundColor||"var(--sl-color-primary-50)","@media (max-width: 499px)":{flexDirection:"row",width:"auto",paddingBottom:"var(--sl-spacing-large)"}},Text:{"@media (max-width: 499px)":{marginLeft:"var(--sl-spacing-large)"}},Header:{fontSize:"var(--sl-font-size-large)",fontWeight:"var(--sl-font-weight-bold)",marginTop:"var(--sl-spacing-x-large)","@media (max-width: 499px)":{margin:"0"}},Description:{fontSize:"var(--sl-font-size-medium)",marginTop:"var(--sl-spacing-small)","@media (max-width: 499px)":{marginTop:"var(--sl-spacing-x-small)"}},Media:{width:"64px",height:"64px",borderRadius:"100%",objectFit:"cover",userSelect:"none",background:"#FFF",color:"var(--sl-color-primary-300)",fontSize:"26px",textAlign:"center",lineHeight:"72px"}}),s=a.toString();return e("div",{class:a.classes.Container,part:"sqm-program-explainer-step-container"},e("style",{type:"text/css"},s),e("div",null,t.imageUrl?e("img",{class:a.classes.Media,src:t.imageUrl,part:"sqm-program-explainer-step-media"}):e("div",{class:a.classes.Media,part:"sqm-program-explainer-step-media"},e("sl-icon",{name:t.icon}))),e("div",{class:a.classes.Text},e("div",{class:a.classes.Header,part:"sqm-program-explainer-step-header"},t.header),e("div",{class:a.classes.Description,part:"sqm-program-explainer-step-description"},t.description)))}const Kt=class{constructor(e){t(this,e),s(this)}disconnectedCallback(){}render(){return e(Zt,Object.assign({},P(this)))}},Xt=l("sq:useProgramMenu"),Jt=class{constructor(e){t(this,e),this.ignored=!0,s(this)}disconnectedCallback(){}render(){const{data:t,ref:s}=function(t){const e=v(),a=m();Xt({programId:e,props:t});const s=o(),[,n]=w();return r((()=>{var t;null===(t=s.current)||void 0===t||t.addEventListener("sl-select",(t=>{a.dispatchEvent(new CustomEvent("sq:update-program-id",{detail:t.detail.item.value,bubbles:!0,composed:!0}))}))}),[s.current]),{data:{programId:e},callbacks:{rerender:n},ref:s}}(P(this));return e(a,{style:{display:"contents"}},e("sl-select",{style:{paddingBottom:"var(--sl-spacing-large)"},value:t.programId,ref:t=>s.current=t},e("slot",null)))}},Yt=q({Container:{border:"1px solid var(--sl-color-neutral-300)",borderRadius:"var(--sl-border-radius-large)",color:"var(--sl-color-neutral-900)",background:"var(--sl-color-neutral-0)"},EndContainer:{display:"flex",flexDirection:"column",alignItems:"center",padding:"0 var(--sl-spacing-large)"},ColumnContainer:{"& p":{margin:"0"},display:"flex","& .left":{boxSizing:"border-box",width:"50%",padding:"var(--sl-spacing-large)",paddingRight:"var(--sl-spacing-medium)","@media (max-width: 499px)":{width:"100%"}},"& .right":{boxSizing:"border-box",width:"50%",padding:"var(--sl-spacing-large)",paddingLeft:"var(--sl-spacing-medium)","@media (max-width: 499px)":{width:"100%"}},"@media (max-width: 499px)":{flexDirection:"column",border:"none"}}}),Qt=Yt.toString();function te(t){return e("div",{part:"sqm-referral-card-container",class:Yt.classes.Container},e("style",{type:"text/css"},Qt,"\n :host{\n display: block; \n }\n "),e("div",{class:Yt.classes.EndContainer},t.slots.header),e("div",{part:"sqm-columns",class:Yt.classes.ColumnContainer},e("div",{class:"left",style:{alignSelf:t.verticalAlignment}},t.slots.left),e("div",{class:"right",style:{alignSelf:t.verticalAlignment}},t.slots.right)),e("div",{class:Yt.classes.EndContainer},t.slots.footer))}const ee=class{constructor(e){t(this,e),this.ignored=!0,this.verticalAlignment="start",s(this)}disconnectedCallback(){}render(){const t={left:e("slot",{name:"left"}),right:e("slot",{name:"right"}),header:e("slot",{name:"header"}),footer:e("slot",{name:"footer"})};return e(te,Object.assign({},P(this),{slots:t}),e("slot",null))}},ae=p.gql`
|
|
86
|
-
query getUser($programId: ID) {
|
|
87
|
-
viewer {
|
|
88
|
-
... on User {
|
|
89
|
-
referralCode(programId: $programId)
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
`,se=class{constructor(e){t(this,e),this.ignored=!0,this.iframeHeight="100%",this.iframeWidth="100%",s(this)}disconnectedCallback(){}render(){const t=T([{attribute:"iframe-src",value:this.iframeSrc}]);if(t)return e(ft,{missingProps:t,heading:"An error occured while loading this page",subheading:"A technical problem prevented this iframe from loading. Please contact us with the link to this page.",description:"Values for the following attributes are missing:"});const{states:s,data:r}=h()?(n=P(this),_({states:{content:{iframeSrc:"https://example.com",...n}},data:{shareCode:"SHARECODE123"}},n.demoData||{},{arrayMerge:(t,e)=>e})):function(t){var e;const a=v(),s=g(),{data:r}=f(ae,{programId:a},!(null==s?void 0:s.jwt)||!a);return{states:{content:t},data:{shareCode:null===(e=null==r?void 0:r.viewer)||void 0===e?void 0:e.referralCode}}}(P(this));var n;return e(a,{style:{display:"contents"}},e(st,{data:r,states:s}))}};var re={};!function t(e,a,s,r){var n=!!(e.Worker&&e.Blob&&e.Promise&&e.OffscreenCanvas&&e.OffscreenCanvasRenderingContext2D&&e.HTMLCanvasElement&&e.HTMLCanvasElement.prototype.transferControlToOffscreen&&e.URL&&e.URL.createObjectURL);function i(){}function o(t){var s=a.exports.Promise,r=void 0!==s?s:e.Promise;return"function"==typeof r?new r(t):(t(i,i),null)}var l,d,c,u,h,m,p,v,g=(c=Math.floor(1e3/60),u={},h=0,"function"==typeof requestAnimationFrame&&"function"==typeof cancelAnimationFrame?(l=function(t){var e=Math.random();return u[e]=requestAnimationFrame((function a(s){h===s||h+c-1<s?(h=s,delete u[e],t()):u[e]=requestAnimationFrame(a)})),e},d=function(t){u[t]&&cancelAnimationFrame(u[t])}):(l=function(t){return setTimeout(t,c)},d=function(t){return clearTimeout(t)}),{frame:l,cancel:d}),f=(v={},function(){if(m)return m;if(!s&&n){var e=["var CONFETTI, SIZE = {}, module = {};","("+t.toString()+")(this, module, true, SIZE);","onmessage = function(msg) {"," if (msg.data.options) {"," CONFETTI(msg.data.options).then(function () {"," if (msg.data.callback) {"," postMessage({ callback: msg.data.callback });"," }"," });"," } else if (msg.data.reset) {"," CONFETTI.reset();"," } else if (msg.data.resize) {"," SIZE.width = msg.data.resize.width;"," SIZE.height = msg.data.resize.height;"," } else if (msg.data.canvas) {"," SIZE.width = msg.data.canvas.width;"," SIZE.height = msg.data.canvas.height;"," CONFETTI = module.exports.create(msg.data.canvas);"," }","}"].join("\n");try{m=new Worker(URL.createObjectURL(new Blob([e])))}catch(t){return void 0!==typeof console&&"function"==typeof console.warn&&console.warn("🎊 Could not load worker",t),null}!function(t){function e(e,a){t.postMessage({options:e||{},callback:a})}t.init=function(e){var a=e.transferControlToOffscreen();t.postMessage({canvas:a},[a])},t.fire=function(a,s,r){if(p)return e(a,null),p;var n=Math.random().toString(36).slice(2);return p=o((function(s){function i(e){e.data.callback===n&&(delete v[n],t.removeEventListener("message",i),p=null,r(),s())}t.addEventListener("message",i),e(a,n),v[n]=i.bind(null,{data:{callback:n}})}))},t.reset=function(){for(var e in t.postMessage({reset:!0}),v)v[e](),delete v[e]}}(m)}return m}),b={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:!1,scalar:1};function y(t,e,a){return function(t,e){return e?e(t):t}(t&&null!=t[e]?t[e]:b[e],a)}function x(t){return t<0?0:Math.floor(t)}function w(t){return parseInt(t,16)}function k(t){return t.map(C)}function C(t){var e=String(t).replace(/[^0-9a-f]/gi,"");return e.length<6&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),{r:w(e.substring(0,2)),g:w(e.substring(2,4)),b:w(e.substring(4,6))}}function E(t){t.width=document.documentElement.clientWidth,t.height=document.documentElement.clientHeight}function S(t){var e=t.getBoundingClientRect();t.width=e.width,t.height=e.height}function I(t,a){var i,l=!t,d=!!y(a||{},"resize"),c=y(a,"disableForReducedMotion",Boolean),u=n&&y(a||{},"useWorker")?f():null,h=l?E:S,m=!(!t||!u||!t.__confetti_initialized),p="function"==typeof matchMedia&&matchMedia("(prefers-reduced-motion)").matches;function v(e,a,n){for(var l,d,c,u,m=y(e,"particleCount",x),p=y(e,"angle",Number),v=y(e,"spread",Number),f=y(e,"startVelocity",Number),b=y(e,"decay",Number),w=y(e,"gravity",Number),C=y(e,"drift",Number),E=y(e,"colors",k),S=y(e,"ticks",Number),I=y(e,"shapes"),M=y(e,"scalar"),R=function(t){var e=y(t,"origin",Object);return e.x=y(e,"x",Number),e.y=y(e,"y",Number),e}(e),_=m,q=[],N=t.width*R.x,A=t.height*R.y;_--;)q.push((void 0,void 0,d=(l={x:N,y:A,angle:p,spread:v,startVelocity:f,color:E[_%E.length],shape:I[(0,u=I.length,Math.floor(Math.random()*(u-0))+0)],ticks:S,decay:b,gravity:w,drift:C,scalar:M}).angle*(Math.PI/180),c=l.spread*(Math.PI/180),{x:l.x,y:l.y,wobble:10*Math.random(),velocity:.5*l.startVelocity+Math.random()*l.startVelocity,angle2D:-d+(.5*c-Math.random()*c),tiltAngle:Math.random()*Math.PI,color:l.color,shape:l.shape,tick:0,totalTicks:l.ticks,decay:l.decay,drift:l.drift,random:Math.random()+5,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:3*l.gravity,ovalScalar:.6,scalar:l.scalar}));return i?i.addFettis(q):(i=function(t,e,a,n,i){var l,d,c=e.slice(),u=t.getContext("2d"),h=o((function(e){function o(){l=d=null,u.clearRect(0,0,n.width,n.height),i(),e()}l=g.frame((function e(){!s||n.width===r.width&&n.height===r.height||(n.width=t.width=r.width,n.height=t.height=r.height),n.width||n.height||(a(t),n.width=t.width,n.height=t.height),u.clearRect(0,0,n.width,n.height),(c=c.filter((function(t){return function(t,e){e.x+=Math.cos(e.angle2D)*e.velocity+e.drift,e.y+=Math.sin(e.angle2D)*e.velocity+e.gravity,e.wobble+=.1,e.velocity*=e.decay,e.tiltAngle+=.1,e.tiltSin=Math.sin(e.tiltAngle),e.tiltCos=Math.cos(e.tiltAngle),e.random=Math.random()+5,e.wobbleX=e.x+10*e.scalar*Math.cos(e.wobble),e.wobbleY=e.y+10*e.scalar*Math.sin(e.wobble);var a=e.tick++/e.totalTicks,s=e.x+e.random*e.tiltCos,r=e.y+e.random*e.tiltSin,n=e.wobbleX+e.random*e.tiltCos,i=e.wobbleY+e.random*e.tiltSin;return t.fillStyle="rgba("+e.color.r+", "+e.color.g+", "+e.color.b+", "+(1-a)+")",t.beginPath(),"circle"===e.shape?t.ellipse?t.ellipse(e.x,e.y,Math.abs(n-s)*e.ovalScalar,Math.abs(i-r)*e.ovalScalar,Math.PI/10*e.wobble,0,2*Math.PI):function(t,e,a,s,r,n,i,o){t.save(),t.translate(e,a),t.rotate(n),t.scale(s,r),t.arc(0,0,1,0,o,void 0),t.restore()}(t,e.x,e.y,Math.abs(n-s)*e.ovalScalar,Math.abs(i-r)*e.ovalScalar,Math.PI/10*e.wobble,0,2*Math.PI):(t.moveTo(Math.floor(e.x),Math.floor(e.y)),t.lineTo(Math.floor(e.wobbleX),Math.floor(r)),t.lineTo(Math.floor(n),Math.floor(i)),t.lineTo(Math.floor(s),Math.floor(e.wobbleY))),t.closePath(),t.fill(),e.tick<e.totalTicks}(u,t)}))).length?l=g.frame(e):o()})),d=o}));return{addFettis:function(t){return c=c.concat(t),h},canvas:t,promise:h,reset:function(){l&&g.cancel(l),d&&d()}}}(t,q,h,a,n)).promise}function b(a){var s=c||y(a,"disableForReducedMotion",Boolean),r=y(a,"zIndex",Number);if(s&&p)return o((function(t){t()}));l&&i?t=i.canvas:l&&!t&&(t=function(t){var e=document.createElement("canvas");return e.style.position="fixed",e.style.top="0px",e.style.left="0px",e.style.pointerEvents="none",e.style.zIndex=t,e}(r),document.body.appendChild(t)),d&&!m&&h(t);var n={width:t.width,height:t.height};function g(){if(u){var e={getBoundingClientRect:function(){if(!l)return t.getBoundingClientRect()}};return h(e),void u.postMessage({resize:{width:e.width,height:e.height}})}n.width=n.height=null}function f(){i=null,d&&e.removeEventListener("resize",g),l&&t&&(document.body.removeChild(t),t=null,m=!1)}return u&&!m&&u.init(t),m=!0,u&&(t.__confetti_initialized=!0),d&&e.addEventListener("resize",g,!1),u?u.fire(a,n,f):v(a,n,f)}return b.reset=function(){u&&u.reset(),i&&i.reset()},b}a.exports=I(null,{useWorker:!0,resize:!0}),a.exports.create=I}(function(){return"undefined"!=typeof window?window:"undefined"!=typeof self?self:this||{}}(),re,!1);const ne=re.exports,ie=p.gql`
|
|
94
|
-
query getExchangeList {
|
|
95
|
-
viewer {
|
|
96
|
-
... on User {
|
|
97
|
-
visibleRewardExchangeItems(limit: 20, offset: 0) {
|
|
98
|
-
data {
|
|
99
|
-
key
|
|
100
|
-
name
|
|
101
|
-
description
|
|
102
|
-
imageUrl
|
|
103
|
-
available
|
|
104
|
-
unavailableReasonCode
|
|
105
|
-
ruleType
|
|
106
|
-
sourceUnit
|
|
107
|
-
sourceValue
|
|
108
|
-
prettySourceValue
|
|
109
|
-
sourceMinValue
|
|
110
|
-
prettySourceMinValue
|
|
111
|
-
sourceMaxValue
|
|
112
|
-
prettySourceMaxValue
|
|
113
|
-
destinationMinValue
|
|
114
|
-
prettyDestinationMinValue
|
|
115
|
-
destinationMaxValue
|
|
116
|
-
prettyDestinationMaxValue
|
|
117
|
-
globalRewardKey
|
|
118
|
-
destinationUnit
|
|
119
|
-
steps {
|
|
120
|
-
sourceValue
|
|
121
|
-
prettySourceValue
|
|
122
|
-
destinationValue
|
|
123
|
-
prettyDestinationValue
|
|
124
|
-
available
|
|
125
|
-
globalRewardKey
|
|
126
|
-
unavailableReasonCode
|
|
127
|
-
rewardInput
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
totalCount
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
`,oe=p.gql`
|
|
136
|
-
mutation exchange($exchangeRewardInput: ExchangeRewardInput!) {
|
|
137
|
-
exchangeReward(exchangeRewardInput: $exchangeRewardInput) {
|
|
138
|
-
reward {
|
|
139
|
-
id
|
|
140
|
-
fuelTankCode
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
`,le=class{constructor(e){t(this,e),this.ignored=!0,this.notAvailableError="{unavailableReasonCode, select, US_TAX {US Tax limit} INSUFFICIENT_REDEEMABLE_CREDIT {{sourceValue} required} AVAILABILITY_PREDICATE {Not available} other {{unavailableReasonCode}} }",this.chooseRewardTitle="Rewards",this.chooseAmountTitle="Select",this.confirmationTitle="Confirm",this.rewardTitle="Choose a reward",this.cancelText="Cancel",this.backText="Back",this.continueText="Continue",this.continueToConfirmationText="Continue to confirmation",this.redeemText="Redeem",this.redeemTitle="Confirm and redeem",this.redemptionSuccessText="Redeemed {sourceValue} for {destinationValue}",this.sourceAmountMessage="{ruleType, select, FIXED_GLOBAL_REWARD {{sourceValue}} other {{sourceMinValue} to {sourceMaxValue}}}",this.tooltipText="Copied",this.doneText="Done",this.selectText="Select amount to receive",this.queryError="Unable to load reward exchange list. Please try again",this.redemptionError="An error occured trying to redeem this reward. Please try again",this.notEnoughError="Not enough {sourceUnit} to redeem for this reward",this.rewardRedeemedText="Reward redeemed",this.promoCode="Promo Code",this.skeletonCardNum=8,this.rewardNameTitle="Reward",this.rewardAmountTitle="Reward Amount",this.costTitle="Cost to Redeem",s(this)}disconnectedCallback(){}render(){const t={...P(this),empty:e(de,null)},{states:s,data:i,callbacks:l,refs:c}=h()?function(t){return _({states:{content:{text:t},redeemStage:"chooseReward",amount:0,selectedStep:void 0,selectedItem:void 0,open:!1,exchangeError:!1,queryError:!1,loading:!1,noExchangeOptions:!1,empty:de()},data:{shareCode:"SHARECODE123",exchangeList:rt.data.exchangeList},callbacks:{exchangeReward:()=>{},setExchangeState:()=>{},setStage:()=>{},resetState:()=>{},copyFuelTankCode:()=>{}},refs:{canvasRef:{}}},t.demoData||{},{arrayMerge:(t,e)=>e})}(t):function(t){var e,a,s,i,l;const[c,u]=d(((t,e)=>({...t,...e})),{selectedItem:void 0,selectedStep:void 0,redeemStage:"chooseReward",amount:0,exchangeError:!1}),[h,m]=n(!1),{selectedItem:p,selectedStep:v,redeemStage:y,amount:x,exchangeError:w}=c,k=g(),[C,{data:E,loading:S,errors:M}]=b(oe),{data:R,loading:_,refetch:q,errors:N}=f(ie,{},!(null==k?void 0:k.jwt));r((()=>{var t,e;(null===(e=null===(t=null==E?void 0:E.exchangeReward)||void 0===t?void 0:t.reward)||void 0===e?void 0:e.id)&&u({redeemStage:"success",exchangeError:!1}),M&&u({exchangeError:!0})}),[E,M]);const A=o();r((()=>{if(!A.current)return;const t=A.current;t.confetti=t.confetti||ne.create(t,{resize:!0}),t.confetti()}),[A.current]);const{refresh:P}=I();return{states:{content:{text:t},selectedItem:p,redeemStage:y,amount:x,selectedStep:v,exchangeError:w,queryError:!!N,loading:_||S,open:h,noExchangeOptions:0===(null===(e=null==R?void 0:R.viewer)||void 0===e?void 0:e.visibleRewardExchangeItems.totalCount)},data:{exchangeList:null===(s=null===(a=null==R?void 0:R.viewer)||void 0===a?void 0:a.visibleRewardExchangeItems)||void 0===s?void 0:s.data,fuelTankCode:null===(l=null===(i=null==E?void 0:E.exchangeReward)||void 0===i?void 0:i.reward)||void 0===l?void 0:l.fuelTankCode},callbacks:{exchangeReward:async function(){if(!p)return;let t={accountId:null==k?void 0:k.accountId,userId:k.id};switch(p.ruleType){case"FIXED_GLOBAL_REWARD":t={...t,redeemCreditInput:{amount:p.sourceValue,unit:p.sourceUnit},globalRewardKey:p.globalRewardKey};break;case"STEPPED_FIXED_GLOBAL_REWARD":t={...t,redeemCreditInput:{amount:v.sourceValue,unit:p.sourceUnit},globalRewardKey:v.globalRewardKey};break;case"VARIABLE_GLOBAL_REWARD":t={...t,redeemCreditInput:{amount:x,unit:p.sourceUnit},globalRewardKey:p.globalRewardKey,rewardInput:v.rewardInput};break;case"VARIABLE_CREDIT_REWARD":t={...t,redeemCreditInput:{amount:x,unit:p.sourceUnit},rewardInput:{type:"CREDIT",unit:p.destinationUnit,assignedCredit:v.destinationValue}};break;default:t={...t,...v.rewardInput}}await C({exchangeRewardInput:t}),P()},setExchangeState:u,setStage:function(t){u({redeemStage:t})},resetState:t=>{t&&q(),u({amount:0,selectedStep:void 0,selectedItem:void 0,exchangeError:!1,redeemStage:"chooseReward"})},copyFuelTankCode:function(){var t,e;navigator.clipboard.writeText(null===(e=null===(t=null==E?void 0:E.exchangeReward)||void 0===t?void 0:t.reward)||void 0===e?void 0:e.fuelTankCode),m(!0),setTimeout((()=>m(!1)),1e3)}},refs:{canvasRef:A}}}(t);return e(a,{style:{display:"contents"}},e(nt,{states:s,data:i,callbacks:l,refs:c}))}static get assetsDirs(){return["assets"]}};function de(){return e("slot",{name:"empty"},e("sqm-empty",{emptyStateImage:"https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_exchange2.png",emptyStateHeader:"Redeem rewards",emptyStateText:"Use your points to redeem rewards once they become available"}))}const ce=l("sq:useRouter");function ue(t,e){if(t)return it(t).exec(e)}const he=class{constructor(e){t(this,e),this.ignored=!0,s(this)}disconnectedCallback(){}render(){const{callbacks:t}=function(){const t=M(),e=m(),[a,s]=n(void 0),[i,o]=n(void 0),l=t.pathname;return r((()=>{const t=e.querySelectorAll("sqm-route");Array.from(t).forEach((t=>{const e=document.createElement("template");e.setAttribute("path",t.path),e.innerHTML=t.innerHTML,t.parentNode.appendChild(e),t.parentNode.removeChild(t)}))}),[]),r((()=>{var t,e;if(!i||!a)return void ce("DOM not ready for navigation rendering on:",l);const s=a.querySelectorAll("template"),r=Array.from(s).find((t=>{var e,a,s;if(null===(s=ue(null===(a=null===(e=t.attributes)||void 0===e?void 0:e.path)||void 0===a?void 0:a.nodeValue,l))||void 0===s?void 0:s.length)return t})),n=null===(e=null===(t=null==r?void 0:r.attributes)||void 0===t?void 0:t.path)||void 0===e?void 0:e.nodeValue;if(ce({containerDatasetPage:i.dataset.page,templatePath:n,page:l}),!r)return ce("No matching page found for ",l,", so render nothing"),i.innerHTML="",void(i.dataset.page=l);ce("Page updated to ",l,r),ue(n,i.dataset.page)?ce("don't rerender"):r&&(i.innerHTML=r.innerHTML,i.dataset.page=l)}),[a,i,l]),{callbacks:{setSlot:s,setContainer:o}}}();return e(a,null,e("div",{ref:t.setSlot,style:{display:"none"}},e("slot",null)),e("div",{style:{display:"contents"},ref:t.setContainer}))}};he.style="sqm-router{display:contents}";const me=class{constructor(e){t(this,e),this.ignored=!0,this.buttonType="default",this.scrollAnimation="smooth",s(this)}disconnectedCallback(){}render(){var t;const{callbacks:a}=function(t){const{scrollTagName:e,scrollId:a}=t;return{callbacks:{scroll:async function(){const s=null===document||void 0===document?void 0:document.querySelector(e||`#${a}`);s.dispatchEvent(new CustomEvent("sq:reveal",{detail:e||`#${a}`,bubbles:!0,composed:!0})),await new Promise((t=>setTimeout(t,500))),s.scrollIntoView({behavior:t.scrollAnimation})}}}}(this),s=null!==(t=this.buttonType)&&void 0!==t?t:"primary",r=q({Button:{"& .outline":{"&::part(base)":{color:"var(--sl-color-"+s+"-500)",borderColor:"var(--sl-color-"+s+"-500)",backgroundColor:"transparent","&:hover":{color:"var(--sl-color-primary-text)",backgroundColor:"var(--sl-color-"+s+"-500)"}}},"& .neutral":{"&::part(base)":{color:"var(--sl-color-primary-text)",background:"var(--sl-color-neutral-500)","&:hover":{opacity:"0.8"}}},"& .mobile":{"@media (max-width: 499px)":{width:"100%"}}}}),n=r.toString();let i="";return this.outline&&"default"!=this.buttonType&&(i+="outline "),"neutral"===this.buttonType&&(i+="neutral "),this.mobile&&(i+="mobile "),e("div",{class:r.classes.Button},e("style",{type:"text/css"},`\n\t\t:host{\n\t\t\tdisplay: contents;\n\t\t}\n\t\t${this.mobile&&"\n\t\t@media only screen and (max-width: 499px) {\n\t\t\t:host {\n\t\t\t\tdisplay: block;\n\t\t\t\twidth: 100%;\n\t\t\t}\n\t\t}\n\t "}\n\t`,n),e("sl-button",{type:this.buttonType,onClick:a.scroll,size:this.size,pill:this.pill,circle:this.circle,class:i},(this.iconSlot||this.iconName)&&e("sl-icon",{slot:this.iconSlot||"prefix",name:this.iconName}),this.buttonText,e("slot",null)))}},pe=class{constructor(e){t(this,e),this.type="default",this.iconslot="prefix",this.hideicon=!1,this.hidetext=!1,s(this)}disconnectedCallback(){}render(){const t=P(this),a=h()?function(t){return _({...t,loading:!1,hide:!1,onClick:()=>{}},t.demoData||{},{arrayMerge:(t,e)=>e})}(t):ot(t);return e(lt,Object.assign({},a),e("slot",null))}};pe.style=":host{display:block}:host([hidden]){display:none}sl-button{display:block}";const ve=p.gql`
|
|
145
|
-
query ($programId: ID) {
|
|
146
|
-
user: viewer {
|
|
147
|
-
... on User {
|
|
148
|
-
referralCode(programId: $programId)
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
`,ge=p.gql`
|
|
153
|
-
mutation loadEvent($eventMeta: UserAnalyticsEvent!) {
|
|
154
|
-
createUserAnalyticsEvent(eventMeta: $eventMeta)
|
|
155
|
-
}
|
|
156
|
-
`,fe=class{constructor(e){t(this,e),this.tooltiptext="Copied to Clipboard",this.tooltiplifespan=1e3,this.textAlign="left",this.copyButtonLabel="Copy Code",this.buttonStyle="icon",s(this)}disconnectedCallback(){}render(){const t=P(this),a=h()?function(t){const[e,a]=n(!1),s="SHARECODE001";return _({copyString:s,tooltiptext:t.tooltiptext,textAlign:t.textAlign,copyButtonLabel:t.copyButtonLabel,buttonStyle:t.buttonStyle,open:e,onClick:()=>{navigator.clipboard.writeText(s),a(!0),setTimeout((()=>a(!1)),t.tooltiplifespan)}},t.demoData||{},{arrayMerge:(t,e)=>e})}(t):function(t){var e,a;const{programId:s=v()}=t,r=g(),i=y(),{data:o}=f(ve,{programId:s},!(null==r?void 0:r.jwt)),[l]=b(ge),d=null!==(a=null===(e=null==o?void 0:o.user)||void 0===e?void 0:e.referralCode)&&void 0!==a?a:"...",[c,u]=n(!1);return{...t,onClick:function(){navigator.clipboard.writeText(d),u(!0),setTimeout((()=>u(!1)),t.tooltiplifespan),l({eventMeta:{programId:s,id:null==r?void 0:r.id,accountId:null==r?void 0:r.accountId,type:"USER_REFERRAL_PROGRAM_ENGAGEMENT_EVENT",meta:{engagementMedium:i,shareMedium:"DIRECT"}}})},open:c,copyString:d}}(t);return e(H,Object.assign({},a))}},be=class{constructor(e){t(this,e),this.tooltiptext="Copied to Clipboard",this.tooltiplifespan=1e3,this.textAlign="left",this.copyButtonLabel="Copy Link",this.buttonStyle="icon",s(this)}disconnectedCallback(){}render(){const t=P(this),a=h()?function(t){const[e,a]=n(!1),s="https://www.example.com/sharelink/abc";return _({copyString:s,tooltiptext:t.tooltiptext,textAlign:t.textAlign,buttonStyle:t.buttonStyle,copyButtonLabel:t.copyButtonLabel,open:e,onClick:()=>{navigator.clipboard.writeText(s),a(!0),setTimeout((()=>a(!1)),t.tooltiplifespan)}},t.demoData||{},{arrayMerge:(t,e)=>e})}(t):dt(t);return e(H,Object.assign({},a))}},ye=class{constructor(e){t(this,e),this.ignored=!0,this.space="xxx-large",this.display="grid",s(this)}disconnectedCallback(){}render(){return e(ct,Object.assign({},P(this)),e("slot",null))}},xe=class{constructor(e){t(this,e),this.colspan=1,this.padding="15px 10px"}render(){return e(a,{style:{display:"contents"}},e("td",{colSpan:this.colspan,style:{padding:this.padding}},e("slot",null)))}},we=class{constructor(e){t(this,e),this.border="1px solid #EAEAEA"}render(){return e(a,{style:{display:"contents"}},e("tr",{style:{border:this.border}},e("slot",null)))}},ke=p.gql`
|
|
157
|
-
mutation taskCardEvent($userEventInput: UserEventInput!) {
|
|
158
|
-
logUserEvent(userEventInput: $userEventInput) {
|
|
159
|
-
userId
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
`,Ce=class{constructor(e){t(this,e),this.ignored=!0,this.rewardAmount="0",this.rewardUnit="Points",this.cardTitle="Title Text",this.description="",this.repeatable=!1,this.finite=0,this.showProgressBar=!1,this.goal=1,this.steps=!1,this.progressBarUnit="",this.expiryMessage="Ends {endDate}",this.startsOnMessage="Starts {startDate}",this.endedMessage="Ended {endDate}",this.completedText="Completed {finite, select, 0 {{count, plural, =1 {{count} time} other {{count} times}}} other {{count}/{finite} times}}",this.buttonText="Complete Action",this.openNewTab=!1,s(this)}disconnectedCallback(){}render(){const{props:t}=h()?$(this):j({...P(this),programId:this.programId}),{value:a,loading:s}=t,{states:n,callbacks:i}=h()?function(t){return _({states:{loadingEvent:!1,locale:"en"},callbacks:{sendEvent:t=>console.log(t),onClick:()=>console.log("clicked")}},t.demoData||{},{arrayMerge:(t,e)=>e})}(this):function(t){const e=g(),a=x(),[s,{data:n,loading:i}]=b(ke),{refresh:o}=I();function l(){t.openNewTab?window.open(t.buttonLink):window.open(t.buttonLink,"_parent")}function d(t){s({userEventInput:{userId:null==e?void 0:e.id,accountId:null==e?void 0:e.accountId,events:[{key:t,fields:{}}]}})}return r((()=>{n&&(o(),l())}),[n]),{states:{loadingEvent:i,locale:a},callbacks:{sendEvent:d,onClick:function(){t.eventKey?d(t.eventKey):l()}}}}(this);return e(ut,{callbacks:i,states:{loading:s,loadingEvent:n.loadingEvent,progress:a,locale:n.locale},content:{...P(this)}})}},Ee=class{constructor(e){t(this,e),this.ignored=!0,this.icon="gift",s(this)}disconnectedCallback(){}render(){return A().forEach((t=>{try{t.setIcon(this.icon)}catch{}})),e("div",null,e("style",{type:"text/css"},"\n\t\t:host{\n\t\t\tdisplay: block; \n\t\t}\n\n\t\t::slotted(*:not(:only-child):not(:last-child)) {\n\t\t\tmargin-bottom: var(--sl-spacing-xx-large);\n\t\t}\n\t"),e("slot",null))}},Se=()=>e("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{d:"M22.5 7.5H18.6761H13.5V24H20.75C21.3023 24 21.75 23.5523 21.75 23V22.5V13.5H22.5H23C23.5523 13.5 24 13.0523 24 12.5V12V9V8.5C24 7.94772 23.5523 7.5 23 7.5H22.5Z",fill:"#F2C94C"}),e("path",{d:"M2.25 22.5V23C2.25 23.5523 2.69772 24 3.25 24H10.5V7.5H6.96363H1.5H1C0.447715 7.5 0 7.94772 0 8.5V9V12V12.5C0 13.0523 0.447715 13.5 1 13.5H1.5H2.25V22.5Z",fill:"#F2C94C"}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.25 13.5V15H21.75V13.5H2.25Z",fill:"#BE9720"}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M21 4.06424C21 5.39348 19.0041 7.4062 18 7.5H13.5V24H10.5027V7.5H6.88188C4.8187 7.05273 3 5.46806 3 3.78109C3 2.1371 3.71404 0.835051 5.01276 0.273062C6.25382 -0.26398 7.68678 0.0304991 8.81964 0.817C10.2101 1.78237 10.9902 3.59446 11.6978 5.2384C11.7599 5.38268 11.8215 5.52566 11.8828 5.66667C11.9426 5.53298 12.0028 5.3969 12.0638 5.25912C12.7649 3.67422 13.5654 1.86488 14.9106 0.893444C16.0997 0.0347157 17.6114 -0.289736 18.9181 0.298417C20.2693 0.906596 21 2.3018 21 4.06424ZM15.9185 2.25C16.6392 1.72957 17.502 1.63518 18.2396 2.25C18.8819 2.78542 18.9162 3.03745 18.9987 3.64389L19.0133 3.75C19.0133 4.64776 18.2396 6 17.4659 6C16.9177 6 16.4871 5.99537 16.0836 5.99103C15.3479 5.98312 14.702 5.97618 13.5974 6C13.808 5.59179 13.9761 5.20003 14.1365 4.82641C14.5654 3.82715 14.9386 2.95763 15.9185 2.25ZM7.40792 2.25C7.05911 2.00783 6.25921 2.11591 5.92748 2.25945C5.65341 2.37805 5.24403 2.73987 5.24403 3.78109C5.24403 4.79286 6.88188 5.66667 6.88188 5.66667C6.88188 5.66667 8.18161 6 10.5027 6C9.71258 4.04177 8.59336 3.073 7.40792 2.25Z",fill:"#EB5757"})),Ie=()=>e("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("circle",{cx:"12",cy:"12",r:"9",fill:"currentColor",stroke:"currentColor","stroke-width":"2"})),Me=q({TimelineReward:{color:"var(--sl-color-neutral-900)",lineHeight:"var(--sl-line-height-dense)","& .container":{display:"flex"},"& .line":{display:"none",color:"transparent",userSelect:"none",background:"var(--sl-color-primary-300)",width:"4px",borderRadius:"4px",margin:"-2px",position:"relative",left:"12px",top:"34px"},"& .step":{display:"flex"},"& .icon":{position:"relative",top:"4px",zIndex:"1",color:"var(--sl-color-primary-300)",marginRight:"var(--sl-spacing-large)"},"& .reward":{marginRight:"var(--sl-spacing-x-small)",fontSize:"var(--sl-font-size-x-large)",fontWeight:"var(--sl-font-weight-semibold)"},"& .unit":{textTransform:"uppercase",fontSize:"var(--sl-font-size-small)"},"& .description":{fontSize:"var(--sl-font-size-medium)"}}}),Re=Me.toString();function _e(t){var a;const s=null!==(a=t.icon)&&void 0!==a?a:t.iconState;return e("div",{class:Me.classes.TimelineReward,part:"sqm-timeline-container"},e("style",{type:"text/css"},Re,"\n\t:host{\n\t\tdisplay: block; \n\t}\n\n\t:host(:not(:last-of-type)) .line {\n\t\tdisplay: block; \n\t}\n\t"),e("div",{class:"container",part:"sqm-base"},e("div",{class:"line"},"/"),e("div",{class:"step"},"gift"===s&&e("div",{class:"icon"},e(Se,null)),"circle"===s&&e("div",{class:"icon"},e(Ie,null)),e("div",null,e("div",null,e("span",{class:"reward",part:"sqm-reward"},t.reward),e("span",{class:"unit",part:"sqm-unit"},t.unit)),e("div",{class:"description",part:"sqm-description"},t.desc)))))}const qe=class{constructor(e){t(this,e),this.ignored=!0,this.iconState="gift",s(this)}async setIcon(t){this.iconState=t}disconnectedCallback(){}render(){return N([this.reward]),e(_e,Object.assign({},P(this)))}};function Ne(t){return e(a,null,t.loading?t.loadingText:t.username)}const Ae=p.gql`
|
|
163
|
-
query getUserName {
|
|
164
|
-
viewer {
|
|
165
|
-
... on User {
|
|
166
|
-
firstName
|
|
167
|
-
lastName
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
`,Pe=class{constructor(e){t(this,e),this.ignored=!0,this.fallback="Anonymous User",this.loadingText="...",s(this)}disconnectedCallback(){}render(){const t=h()?function(t){return _({loading:!1,loadingText:"...",username:"John Smith"},t.demoData||{},{arrayMerge:(t,e)=>e})}(this):function(t){var e,a,s,r,n,i,o,l;const d=g(),c=f(Ae,{},!(null==d?void 0:d.jwt)),u=(null===(a=null===(e=c.data)||void 0===e?void 0:e.viewer)||void 0===a?void 0:a.firstName)||(null===(r=null===(s=c.data)||void 0===s?void 0:s.viewer)||void 0===r?void 0:r.lastName)?`${null===(i=null===(n=c.data)||void 0===n?void 0:n.viewer)||void 0===i?void 0:i.firstName} ${null===(l=null===(o=c.data)||void 0===o?void 0:o.viewer)||void 0===l?void 0:l.lastName}`:t.fallback;return{loadingText:t.loadingText,loading:c.loading,username:u}}(this);return e(Ne,Object.assign({},t))}};export{ht as sqm_big_stat,mt as sqm_brand,pt as sqm_card_feed,bt as sqm_checkbox_field,wt as sqm_coupon_code,Ct as sqm_divided_layout,Et as sqm_dropdown_field,Rt as sqm_edit_profile,qt as sqm_hero_image,Nt as sqm_hook_story_container,At as sqm_input_field,Vt as sqm_leaderboard,Dt as sqm_name_fields,jt as sqm_navigation_menu,zt as sqm_portal_change_password,Bt as sqm_portal_footer,Ot as sqm_portal_frame,Ut as sqm_portal_login,Ht as sqm_portal_register,Gt as sqm_program_explainer,Kt as sqm_program_explainer_step,Jt as sqm_program_menu,ee as sqm_referral_card,se as sqm_referral_iframe,le as sqm_reward_exchange_list,he as sqm_router,me as sqm_scroll,pe as sqm_share_button,fe as sqm_share_code,be as sqm_share_link,ye as sqm_stat_container,xe as sqm_table_cell,we as sqm_table_row,Ce as sqm_task_card,Ee as sqm_timeline,qe as sqm_timeline_entry,Pe as sqm_user_name}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./p-ff17b3a4.system.js","./p-b79c0e38.system.js","./p-70263662.system.js","./p-1f54fd38.system.js","./p-35d6d322.system.js"],(function(e,t){"use strict";var a,r,o;return{setters:[function(e){a=e.p;r=e.H;o=e.b},function(){},function(){},function(){},function(){}],execute:function(){var e=function(){{l(r.prototype)}var e=t.meta.url;var o={};if(e!==""){o.resourcesUrl=new URL(".",e).href}return a(o)};var l=function(e){var t=e.cloneNode;e.cloneNode=function(e){if(this.nodeName==="TEMPLATE"){return t.call(this,e)}var a=t.call(this,false);var r=this.childNodes;if(e){for(var o=0;o<r.length;o++){if(r[o].nodeType!==2){a.appendChild(r[o].cloneNode(true))}}}return a}};e().then((function(e){return o(JSON.parse('[["p-72cb7a2e.system",[[4,"sqm-stencilbook",{"ignored":[32]}]]],["p-045af9fb.system",[[1,"sqm-portal-registration-form",{"nextPage":[1,"next-page"],"redirectPath":[1,"redirect-path"],"emailLabel":[1,"email-label"],"passwordLabel":[1,"password-label"],"submitLabel":[1,"submit-label"],"loginLabel":[1,"login-label"],"confirmPasswordLabel":[1,"confirm-password-label"],"confirmPassword":[4,"confirm-password"],"disablePasswordValidation":[4,"disable-password-validation"],"hideInputs":[4,"hide-inputs"],"pageLabel":[1,"page-label"],"loginPath":[1,"login-path"],"requiredFieldErrorMessage":[1,"required-field-error-message"],"networkErrorMessage":[1,"network-error-message"],"passwordMismatchErrorMessage":[1,"password-mismatch-error-message"],"invalidEmailErrorMessage":[1,"invalid-email-error-message"],"formDisabledErrorMessage":[1,"form-disabled-error-message"],"formKey":[1,"form-key"],"demoData":[16],"ignored":[32]}]]],["p-97fa9d3e.system",[[1,"sqm-portal-reset-password",{"nextPage":[1,"next-page"],"failedPage":[1,"failed-page"],"confirmPassword":[4,"confirm-password"],"resetPasswordHeader":[1,"reset-password-header"],"passwordResetHeader":[1,"password-reset-header"],"resetPasswordButtonText":[1,"reset-password-button-text"],"continueButtonText":[1,"continue-button-text"],"confirmPasswordFieldLabel":[1,"confirm-password-field-label"],"passwordFieldLabel":[1,"password-field-label"],"demoData":[16],"ignored":[32]}]]],["p-ba3b21d2.system",[[1,"sqm-passwordless-registration",{"emailLabel":[1,"email-label"],"firstNameLabel":[1,"first-name-label"],"lastNameLabel":[1,"last-name-label"],"registerLabel":[1,"register-label"],"includeName":[4,"include-name"],"demoData":[16],"ignored":[32]}]]],["p-18e7d7c6.system",[[1,"sqm-portal-email-verification",{"redirectPath":[1,"redirect-path"],"emailVerificationHeader":[1,"email-verification-header"],"resendEmailButtonText":[1,"resend-email-button-text"],"verifyMessage":[1,"verify-message"],"verificationStatusMessage":[1,"verification-status-message"],"verificationLoadingMessage":[1,"verification-loading-message"],"demoData":[16],"ignored":[32]}]]],["p-16dda971.system",[[1,"sqm-portal-forgot-password",{"redirectPath":[1,"redirect-path"],"emailLabel":[1,"email-label"],"submitLabel":[1,"submit-label"],"loginPath":[1,"login-path"],"headerText":[1,"header-text"],"loginText":[1,"login-text"],"demoData":[16],"ignored":[32]}]]],["p-c3765ad9.system",[[1,"sqm-portal-profile",{"firstnametext":[1],"lastnametext":[1],"emailtext":[1],"countrytext":[1],"editProfileHeader":[1,"edit-profile-header"],"editProfileSubHeader":[1,"edit-profile-sub-header"],"submitChangeButtonText":[1,"submit-change-button-text"],"hideCountry":[4,"hide-country"],"demoData":[16],"ignored":[32]}]]],["p-88ce114f.system",[[1,"sqm-portal-verify-email",{"nextPage":[1,"next-page"],"failedPage":[1,"failed-page"],"demoData":[16],"ignored":[32]}]]],["p-ba50a107.system",[[1,"sqm-referred-registration",{"emailLabel":[1,"email-label"],"firstNameLabel":[1,"first-name-label"],"lastNameLabel":[1,"last-name-label"],"registerLabel":[1,"register-label"],"includeName":[4,"include-name"],"demoData":[16],"ignored":[32]}]]],["p-0c7a3116.system",[[1,"sqm-rewards-table-customer-note-column",{"columnTitle":[1,"column-title"],"renderCell":[64],"renderLabel":[64]}]]],["p-88a2e66e.system",[[4,"raisins-plop-target",{"renderCell":[64],"renderLabel":[64]}]]],["p-6c0409fe.system",[[1,"sqm-asset-card",{"titleText":[1,"title-text"],"imgUrl":[1,"img-url"],"demoData":[16],"ignored":[32]}]]],["p-96b05458.system",[[4,"sqm-graphql-client-provider",{"domain":[1],"ignored":[32]}]]],["p-085290c7.system",[[1,"sqm-header-logo",{"imageUrl":[1,"image-url"],"nextPage":[1,"next-page"],"height":[2]}]]],["p-9cbc79f6.system",[[1,"sqm-hero",{"columns":[2],"background":[1],"paddingSize":[1,"padding-size"],"secondaryBackground":[1,"secondary-background"],"wrapDirection":[1,"wrap-direction"]}]]],["p-0c5aadd5.system",[[1,"sqm-leaderboard-rank",{"rankType":[1,"rank-type"],"rankText":[1,"rank-text"],"leaderboardType":[1,"leaderboard-type"],"unrankedText":[1,"unranked-text"],"interval":[1],"programId":[1,"program-id"],"demoData":[16]}]]],["p-19a3833c.system",[[1,"sqm-link-button",{"link":[1],"openInNewTab":[4,"open-in-new-tab"]}]]],["p-c3777cf3.system",[[1,"sqm-navigation-sidebar",{"ignored":[32]}]]],["p-730db569.system",[[1,"sqm-navigation-sidebar-item",{"path":[1],"icon":[1],"label":[1],"demoData":[16]}]]],["p-919ea20a.system",[[4,"sqm-popup-container",{"poweredBy":[4,"powered-by"],"closeButton":[4,"close-button"],"closeButtonText":[1,"close-button-text"],"embedPadding":[1,"embed-padding"],"popupPadding":[1,"popup-padding"]}]]],["p-8478a86e.system",[[1,"sqm-portal-logout",{"nextPage":[1,"next-page"],"ignored":[32]}]]],["p-97988090.system",[[1,"sqm-portal-protected-route",{"redirectTo":[1,"redirect-to"],"requireEmailVerification":[4,"require-email-verification"],"redirectToUnverified":[1,"redirect-to-unverified"],"ignored":[32]}]]],["p-c1a47137.system",[[1,"sqm-route",{"path":[1],"ignored":[32]}]]],["p-58362d80.system",[[4,"sqm-tab",{"header":[1]}]]],["p-b27a0503.system",[[1,"sqm-tabs",{"placement":[1]}]]],["p-d9643307.system",[[0,"sqm-text-span",{"text":[1],"type":[1],"ignored":[32]}]]],["p-4ace5def.system",[[1,"sqm-user-identifier",{"userIdentificationText":[1,"user-identification-text"],"switchUserLink":[1,"switch-user-link"],"switchUserText":[1,"switch-user-text"],"demoData":[16]}]]],["p-3cbdb360.system",[[1,"sqm-rewards-table-customer-note-cell",{"note":[1],"locale":[1],"ignored":[32]}]]],["p-c4b6454d.system",[[0,"sqm-password-field",{"fieldLabel":[1,"field-label"],"disableValidation":[4,"disable-validation"],"demoData":[16],"ignored":[32]}]]],["p-5a8866c0.system",[[1,"sqm-form-message",{"type":[1],"icon":[1],"ignored":[32]}]]],["p-2a7686a6.system",[[1,"sqm-empty",{"emptyStateImage":[1,"empty-state-image"],"emptyStateHeader":[1,"empty-state-header"],"emptyStateText":[1,"empty-state-text"]}],[1,"sqm-image",{"imageUrl":[1,"image-url"],"alignment":[1],"backgroundColor":[1,"background-color"],"minHeight":[1,"min-height"]}],[1,"sqm-portal-container",{"direction":[1],"padding":[1],"gap":[1],"minWidth":[1,"min-width"],"display":[1],"justifyContent":[1,"justify-content"],"maxWidth":[1,"max-width"],"center":[4],"ignored":[32]}],[4,"sqm-text",{"ignored":[32]}],[1,"sqm-titled-section",{"label":[1],"textAlign":[1,"text-align"],"labelMargin":[1,"label-margin"],"padding":[1]}]]],["p-30689236.system",[[1,"sqm-leaderboard",{"programId":[1,"program-id"],"usersheading":[1],"statsheading":[1],"rankheading":[1],"showRank":[4,"show-rank"],"hideViewer":[4,"hide-viewer"],"rankType":[1,"rank-type"],"leaderboardType":[1,"leaderboard-type"],"anonymousUser":[1,"anonymous-user"],"interval":[1],"maxRows":[2,"max-rows"],"demoData":[16],"ignored":[32]}],[1,"sqm-reward-exchange-list",{"notAvailableError":[1,"not-available-error"],"chooseRewardTitle":[1,"choose-reward-title"],"chooseAmountTitle":[1,"choose-amount-title"],"confirmationTitle":[1,"confirmation-title"],"rewardTitle":[1,"reward-title"],"cancelText":[1,"cancel-text"],"backText":[1,"back-text"],"continueText":[1,"continue-text"],"continueToConfirmationText":[1,"continue-to-confirmation-text"],"redeemText":[1,"redeem-text"],"redeemTitle":[1,"redeem-title"],"redemptionSuccessText":[1,"redemption-success-text"],"sourceAmountMessage":[1,"source-amount-message"],"tooltipText":[1,"tooltip-text"],"doneText":[1,"done-text"],"selectText":[1,"select-text"],"queryError":[1,"query-error"],"redemptionError":[1,"redemption-error"],"notEnoughError":[1,"not-enough-error"],"rewardRedeemedText":[1,"reward-redeemed-text"],"promoCode":[1,"promo-code"],"skeletonCardNum":[2,"skeleton-card-num"],"rewardNameTitle":[1,"reward-name-title"],"rewardAmountTitle":[1,"reward-amount-title"],"costTitle":[1,"cost-title"],"demoData":[16],"ignored":[32]}],[1,"sqm-portal-change-password",{"modalChangePasswordHeader":[1,"modal-change-password-header"],"cancelText":[1,"cancel-text"],"changePasswordButtonText":[1,"change-password-button-text"],"passwordFieldLabel":[1,"password-field-label"],"confirmPasswordFieldLabel":[1,"confirm-password-field-label"],"successMessage":[1,"success-message"],"portalChangePasswordHeader":[1,"portal-change-password-header"],"portalChangePasswordButtonText":[1,"portal-change-password-button-text"],"demoData":[16],"ignored":[32]}],[1,"sqm-portal-register",{"nextPage":[1,"next-page"],"redirectPath":[1,"redirect-path"],"emailLabel":[1,"email-label"],"passwordLabel":[1,"password-label"],"submitLabel":[1,"submit-label"],"loginLabel":[1,"login-label"],"confirmPasswordLabel":[1,"confirm-password-label"],"confirmPassword":[4,"confirm-password"],"disablePasswordValidation":[4,"disable-password-validation"],"hideInputs":[4,"hide-inputs"],"pageLabel":[1,"page-label"],"loginPath":[1,"login-path"],"demoData":[16],"ignored":[32]}],[1,"sqm-edit-profile",{"editprofileheader":[1],"editprofiletext":[1],"canceltext":[1],"updatetext":[1],"firstnametext":[1],"lastnametext":[1],"currentregiontext":[1],"showregion":[4],"demoData":[16],"ignored":[32]}],[1,"sqm-portal-login",{"nextPage":[1,"next-page"],"emailLabel":[1,"email-label"],"passwordLabel":[1,"password-label"],"submitLabel":[1,"submit-label"],"forgotPasswordPath":[1,"forgot-password-path"],"forgotPasswordLabel":[1,"forgot-password-label"],"registerLabel":[1,"register-label"],"registerPath":[1,"register-path"],"pageLabel":[1,"page-label"],"demoData":[16],"ignored":[32]}],[1,"sqm-big-stat",{"statType":[1,"stat-type"],"flexReverse":[4,"flex-reverse"],"alignment":[1],"programId":[1,"program-id"],"demoData":[16],"ignored":[32]}],[1,"sqm-brand",{"brandColor":[1,"brand-color"],"brandFont":[1,"brand-font"]}],[1,"sqm-card-feed",{"width":[2],"gap":[2],"ignored":[32]}],[0,"sqm-checkbox-field",{"checkboxName":[1,"checkbox-name"],"checkboxLabel":[1,"checkbox-label"],"checkboxLabelLink":[1,"checkbox-label-link"],"checkboxLabelLinkText":[1,"checkbox-label-link-text"],"errorMessage":[1,"error-message"],"checkboxOptional":[4,"checkbox-optional"],"demoData":[16],"ignored":[32]}],[1,"sqm-coupon-code",{"programId":[1,"program-id"],"tooltiptext":[1,"tooltip-text"],"tooltiplifespan":[2,"tooltip-lifespan"],"textAlign":[1,"text-align"],"copyButtonLabel":[1,"copy-button-label"],"buttonStyle":[1,"copy-button-style"],"errorText":[1,"error-text"],"demoData":[16]}],[1,"sqm-divided-layout",{"direction":[1],"dividerStyle":[1,"divider-style"]}],[4,"sqm-dropdown-field",{"dropdownName":[1,"dropdown-name"],"dropdownLabel":[1,"dropdown-label"],"errorMessage":[1,"error-message"],"dropdownOptional":[4,"dropdown-optional"],"demoData":[16],"ignored":[32]}],[1,"sqm-hero-image",{"imageUrl":[1,"image-url"],"overlayColor":[1,"overlay-color"],"overlayOpacity":[1,"overlay-opacity"],"textColor":[1,"text-color"],"backgroundColor":[1,"background-color"],"layout":[1],"imagePercentage":[2,"image-percentage"],"imagePos":[1,"image-pos"],"imageMobilePos":[1,"image-mobile-pos"],"header":[1],"description":[1],"buttonText":[1,"button-text"],"buttonLink":[1,"button-link"],"buttonNewTab":[4,"button-new-tab"],"paddingText":[1,"padding-text"],"paddingImage":[1,"padding-image"]}],[0,"sqm-hook-story-container",{"hookStory":[16],"ignored":[32]}],[0,"sqm-input-field",{"fieldName":[1,"field-name"],"fieldLabel":[1,"field-label"],"fieldType":[1,"field-type"],"errorMessage":[1,"error-message"],"fieldOptional":[4,"field-optional"],"demoData":[16],"ignored":[32]}],[0,"sqm-name-fields",{"firstNameLabel":[1,"first-name-label"],"lastNameLabel":[1,"last-name-label"],"demoData":[16],"ignored":[32]}],[1,"sqm-navigation-menu",{"includeDropdown":[4,"include-dropdown"],"menuLabel":[1,"menu-label"],"demoData":[16],"ignored":[32]}],[1,"sqm-portal-footer",{"hideSupportText":[4,"hide-support-text"],"supportEmail":[1,"support-email"],"supportText":[1,"support-text"],"termsLink":[1,"terms-link"],"termsText":[1,"terms-text"],"faqLink":[1,"faq-link"],"faqText":[1,"faq-text"],"hidePoweredBy":[4,"hide-powered-by"],"poweredByLink":[1,"powered-by-link"],"paddingTop":[1,"padding-top"],"paddingRight":[1,"padding-right"],"paddingBottom":[1,"padding-bottom"],"paddingLeft":[1,"padding-left"],"ignored":[32]}],[1,"sqm-portal-frame",{"notFullScreen":[4,"not-full-screen"],"demoData":[16],"ignored":[32]}],[1,"sqm-program-explainer",{"header":[1],"textColor":[1,"text-color"],"backgroundColor":[1,"background-color"],"ignored":[32]}],[1,"sqm-program-explainer-step",{"header":[1],"description":[1],"textColor":[1,"text-color"],"backgroundColor":[1,"background-color"],"imageUrl":[1,"image-url"],"icon":[1]}],[4,"sqm-program-menu",{"ignored":[32]}],[1,"sqm-referral-card",{"verticalAlignment":[1,"vertical-alignment"],"ignored":[32]}],[0,"sqm-referral-iframe",{"iframeSrc":[1,"iframe-src"],"iframeHeight":[1,"iframe-height"],"iframeWidth":[1,"iframe-width"],"demoData":[16],"ignored":[32]}],[4,"sqm-router",{"ignored":[32]}],[1,"sqm-scroll",{"buttonType":[1,"button-type"],"buttonText":[1,"button-text"],"scrollTagName":[1,"scroll-tag-name"],"scrollId":[1,"scroll-id"],"scrollAnimation":[1,"scroll-animation"],"size":[1],"outline":[4],"pill":[4],"circle":[4],"iconSlot":[1,"icon-slot"],"iconName":[1,"icon-name"],"mobile":[4],"ignored":[32]}],[1,"sqm-share-button",{"medium":[1],"programId":[1,"program-id"],"borderradius":[2],"backgroundcolor":[1],"textcolor":[1],"pill":[4],"disabled":[4],"type":[1],"size":[1],"iconslot":[1],"icon":[1],"hideicon":[4],"hidetext":[4],"sharetitle":[1],"sharetext":[1],"demoData":[16]}],[1,"sqm-share-code",{"programId":[1,"program-id"],"tooltiptext":[1,"tooltip-text"],"tooltiplifespan":[2,"tooltip-lifespan"],"textAlign":[1,"text-align"],"copyButtonLabel":[1,"copy-button-label"],"buttonStyle":[1,"copy-button-style"],"demoData":[16]}],[1,"sqm-share-link",{"programId":[1,"program-id"],"tooltiptext":[1,"tooltip-text"],"tooltiplifespan":[2,"tooltip-lifespan"],"textAlign":[1,"text-align"],"copyButtonLabel":[1,"copy-button-label"],"buttonStyle":[1,"copy-button-style"],"demoData":[16]}],[1,"sqm-stat-container",{"space":[1],"display":[1],"ignored":[32]}],[1,"sqm-task-card",{"rewardAmount":[1,"reward-amount"],"rewardUnit":[1,"reward-unit"],"cardTitle":[1,"card-title"],"description":[1],"repeatable":[4],"finite":[2],"showProgressBar":[4,"show-progress-bar"],"goal":[2],"steps":[4],"progressBarUnit":[1,"progress-bar-unit"],"expiryMessage":[1,"expiry-message"],"rewardDuration":[1,"reward-duration"],"startsOnMessage":[1,"starts-on-message"],"displayDuration":[1,"display-duration"],"endedMessage":[1,"ended-message"],"completedText":[1,"completed-text"],"buttonText":[1,"button-text"],"buttonLink":[1,"button-link"],"openNewTab":[4,"open-new-tab"],"statType":[1,"stat-type"],"eventKey":[1,"event-key"],"programId":[1,"program-id"],"demoData":[16],"ignored":[32]}],[1,"sqm-timeline",{"icon":[1],"ignored":[32]}],[1,"sqm-timeline-entry",{"reward":[1],"unit":[1],"desc":[1],"icon":[1],"ignored":[32],"iconState":[32],"setIcon":[64]}],[1,"sqm-user-name",{"fallback":[1],"loadingText":[1,"loading-text"],"demoData":[16],"ignored":[32]}],[1,"sqm-table-cell",{"colspan":[2],"padding":[1]}],[1,"sqm-table-row",{"border":[1]}]]],["p-19244318.system",[[1,"sqm-rewards-table",{"programId":[1,"program-id"],"perPage":[2,"per-page"],"hideLabels":[4,"hide-labels"],"prevLabel":[1,"prev-label"],"moreLabel":[1,"more-label"],"hiddenColumns":[1,"hidden-columns"],"smBreakpoint":[2,"sm-breakpoint"],"mdBreakpoint":[2,"md-breakpoint"],"demoData":[16]}],[1,"sqm-rewards-table-date-column",{"columnTitle":[1,"column-title"],"dateShown":[1,"date-shown"],"renderCell":[64],"renderLabel":[64]}],[1,"sqm-rewards-table-reward-column",{"columnTitle":[1,"column-title"],"redeemedText":[1,"redeemed-text"],"availableText":[1,"available-text"],"copyText":[1,"copy-text"],"renderCell":[64],"renderLabel":[64]}],[1,"sqm-rewards-table-source-column",{"columnTitle":[1,"column-title"],"anonymousUser":[1,"anonymous-user"],"deletedUser":[1,"deleted-user"],"rewardExchangeText":[1,"reward-exchange-text"],"referralText":[1,"referral-text"],"rewardSourceText":[1,"reward-source-text"],"renderCell":[64],"renderLabel":[64]}],[1,"sqm-rewards-table-status-column",{"columnTitle":[1,"column-title"],"statusText":[1,"status-text"],"expiryText":[1,"expiry-text"],"pendingUsTax":[1,"pending-us-tax"],"pendingScheduled":[1,"pending-scheduled"],"pendingUnhandled":[1,"pending-unhandled"],"renderCell":[64],"renderLabel":[64]}],[1,"sqm-rewards-table-date-cell",{"date":[2],"locale":[1],"ignored":[32]}],[1,"sqm-rewards-table-reward-cell",{"reward":[16],"redeemedText":[1,"redeemed-text"],"availableText":[1,"available-text"],"copyText":[1,"copy-text"],"locale":[1]}],[1,"sqm-rewards-table-source-cell",{"reward":[16],"deletedUserText":[1,"deleted-user-text"],"anonymousUserText":[1,"anonymous-user-text"],"rewardExchangeText":[1,"reward-exchange-text"],"referralText":[1,"referral-text"],"rewardSourceText":[1,"reward-source-text"],"locale":[1]}],[1,"sqm-rewards-table-status-cell",{"statusText":[1,"status-text"],"reward":[16],"expiryText":[1,"expiry-text"],"locale":[1],"pendingUsTax":[1,"pending-us-tax"],"pendingScheduled":[1,"pending-scheduled"],"pendingUnhandled":[1,"pending-unhandled"]}]]],["p-0d395b4f.system",[[1,"sqm-referral-table-column",{"columnTitle":[1,"column-title"],"renderCell":[64],"renderLabel":[64]}],[1,"sqm-referral-table",{"programId":[1,"program-id"],"perPage":[2,"per-page"],"hideLabels":[4,"hide-labels"],"prevLabel":[1,"prev-label"],"moreLabel":[1,"more-label"],"showReferrer":[4,"show-referrer"],"hiddenColumns":[1,"hidden-columns"],"smBreakpoint":[2,"sm-breakpoint"],"mdBreakpoint":[2,"md-breakpoint"],"demoData":[16]}],[1,"sqm-referral-table-date-column",{"columnTitle":[1,"column-title"],"dateShown":[1,"date-shown"],"renderCell":[64],"renderLabel":[64],"renderReferrerCell":[64]}],[1,"sqm-referral-table-rewards-column",{"columnTitle":[1,"column-title"],"statusText":[1,"status-text"],"statusLongText":[1,"status-long-text"],"fuelTankText":[1,"fuel-tank-text"],"rewardReceivedText":[1,"reward-received-text"],"expiringText":[1,"expiring-text"],"pendingForText":[1,"pending-for-text"],"hideDetails":[4,"hide-details"],"renderCell":[64],"renderLabel":[64],"renderReferrerCell":[64]}],[1,"sqm-referral-table-status-column",{"columnTitle":[1,"column-title"],"convertedStatusText":[1,"converted-status-text"],"inProgressStatusText":[1,"in-progress-status-text"],"renderCell":[64],"renderLabel":[64],"renderReferrerCell":[64]}],[1,"sqm-referral-table-user-column",{"columnTitle":[1,"column-title"],"anonymousUser":[1,"anonymous-user"],"deletedUser":[1,"deleted-user"],"renderCell":[64],"renderLabel":[64],"renderReferrerCell":[64]}],[1,"sqm-referral-table-cell",{"innerTemplate":[1,"inner-template"],"ignored":[32]}],[1,"sqm-referral-table-date-cell",{"date":[2],"locale":[1],"ignored":[32]}],[1,"sqm-referral-table-rewards-cell",{"rewards":[16],"hideDetails":[4,"hide-details"],"statusText":[1,"status-text"],"statusLongText":[1,"status-long-text"],"fuelTankText":[1,"fuel-tank-text"],"rewardReceivedText":[1,"reward-received-text"],"expiringText":[1,"expiring-text"],"pendingForText":[1,"pending-for-text"],"locale":[1]}],[1,"sqm-referral-table-status-cell",{"statusText":[1,"status-text"],"converted":[4]}],[1,"sqm-referral-table-user-cell",{"name":[1]}]]]]'),e)}))}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var __assign=this&&this.__assign||function(){__assign=Object.assign||function(s){for(var t,a=1,n=arguments.length;a<n;a++){t=arguments[a];for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))s[e]=t[e]}return s};return __assign.apply(this,arguments)};System.register(["./p-ff17b3a4.system.js","./p-35d6d322.system.js","./p-f6934a55.system.js","./p-1a673057.system.js"],(function(s){"use strict";var t,a,n,e;return{setters:[function(s){t=s.h},function(s){a=s.g},function(s){n=s.g},function(s){e=s.c}],execute:function(){s("N",r);function r(s){var r=s.states,i=s.data;var o={ItemContainer:__assign(__assign({display:"flex","background-color":""+(r.active?"var(--sl-color-gray-200)":"var(--sl-color-white)"),"border-radius":"8px",padding:"8px","text-decoration":"none",color:"#454444","align-items":"center"},n({direction:"row",size:"var(--sl-font-size-small)"})),{"&:hover":{cursor:"pointer",background:r.active?"var(--sl-color-gray-300)":"var(--sl-color-gray-50)"}}),Label:{margin:"0"},Icon:{"flex-shrink":"0"}};var c=e(o);var l=c.toString();return t("a",{part:"sqm-navigation-item-link",href:i.path,onClick:function(s){s.preventDefault();a.push(i.path)},class:c.classes.ItemContainer},t("style",{type:"text/css"},l),t("sl-icon",{class:c.classes.Icon,name:i.icon}),t("p",{class:c.classes.Label,part:"sqm-navigation-item-label"},i.label))}}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./p-ff17b3a4.system.js","./p-1a673057.system.js"],(function(t){"use strict";var n,s;return{setters:[function(t){n=t.h},function(t){s=t.c}],execute:function(){t("L",o);var e={Container:{display:"contents"}};var a="\n:host{\n display: inline; \n}\n";var r=s(e);var i=r.toString();function o(t){var s=t.link,e=t.openInNewTab;return n("span",{class:r.classes.Container,part:"sqm-base"},n("style",{type:"text/css"},i,a),n("sl-button",{exportparts:"base: primarybutton-base"},n("a",{href:s,target:e?"_blank":"",part:"sqm-link"},n("slot",null))))}}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as s}from"./p-64c3217a.js";import{m as i}from"./p-ed801cb7.js";import"./p-f66b4b3a.js";import{i as e,e as a}from"./p-bfd347b4.js";import"./p-e7e129ac.js";import{c as r}from"./p-c1086930.js";import"./p-02be1a88.js";import"./p-cef45012.js";import{E as o}from"./p-03ad8655.js";import{u as m}from"./p-5de1699d.js";const c=class{constructor(s){t(this,s),this.ignored=!0,this.emailLabel="Email",this.firstNameLabel="First Name",this.lastNameLabel="Last Name",this.registerLabel="Start Referring",this.includeName=!1,i(this)}disconnectedCallback(){}render(){const{states:t,callbacks:i}=e()?r({states:{error:"",loading:!1},callbacks:{submit:async()=>{a({id:"referrer@example.com",accountId:"referrer@example.com",jwt:"eyJraWQiOiJlNjI2NzQxNy1jMzZlLTRlM2EtYjM5NS1lYTFmY2YyNmU3YzIiLCJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJjbVZtWlhKeVpYSkFaWGhoYlhCc1pTNWpiMjA9OmNtVm1aWEp5WlhKQVpYaGhiWEJzWlM1amIyMD1AdGVzdF9heGJndGF0dzF0Y2NwOnVzZXJzIiwicGFzc3dvcmRsZXNzIjp0cnVlLCJpc3MiOiJodHRwczovL3N0YWdpbmcucmVmZXJyYWxzYWFzcXVhdGNoLmNvbS8iLCJleHAiOjE2ODA4ODU5MTksImlhdCI6MTY4MDc5OTUxOX0.kjmTVVf_BTb-uMNKnadLyNLxMFwpkefsY02O3iAfBVIJJZZfeZMwunPlKsS3Vbp28aYRClBjH5Wj4pYxDn23D0CdZx8KNCqiJ8yF6149O9SPMkRseoJkliqS6LyvMOEDjGDkuLfcC8_hq1AHBXFt5BdCtWOk1gwf_5R9A0w5gXEIvprBzbNDLbuo88bVAlrmFNvfttXXryrpUeruMal7cBKuy02YblBrB4kKoyJiprU5GLEjciBA4A56u8TwQc0kbsPf2YcQaJsY_IvkC7S1u4sPyObpq6iF6Ed8UYHAo6nU5KjZXyVtoUyeIS11mf_6OtDO6LyMNHV2FtEUUDdPCg"})}}},this.demoData||{},{arrayMerge:(t,s)=>s}):m(),c={emailLabel:this.emailLabel,registerLabel:this.registerLabel,firstNameLabel:this.firstNameLabel,lastNameLabel:this.lastNameLabel,includeName:this.includeName,topSlot:s("slot",{name:"top-slot"}),bottomSlot:s("slot",{name:"bottom-slot"})};return s(o,{states:t,callbacks:i,content:c})}};export{c as sqm_referred_registration}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as s}from"./p-64c3217a.js";import{A as t,a as e,b as a}from"./p-02be1a88.js";import{c as r}from"./p-cef45012.js";import{T as o}from"./p-f8dd6bac.js";const n=r({Wrapper:t,Column:{...e},ButtonsContainer:a,SecondaryButton:{cursor:"pointer",width:"25%"}}),p=n.toString();function i(t){const{states:e,callbacks:a,content:r}=t;return s("div",{class:n.classes.Wrapper,part:"sqm-forgot-password-container"},s("style",{type:"text/css"},"\n:host {\n display: block;\n}\n:host([hidden]): {\n display: none;\n}\n",p),s(o,{type:"h3"},r.messageSlot),s("sl-form",{class:n.classes.Column,"onSl-submit":a.submit},t.states.error&&s("sqm-form-message",{type:"error",exportparts:"erroralert-icon"},s("div",{part:"erroralert-text"},t.states.error)),t.states.success&&s("sqm-form-message",{type:"success",exportparts:"successalert-icon"},s("div",{part:"successalert-text"},"If an account with that email exists, a password reset email will be sent.")),s("sl-input",{exportparts:"label: input-label",type:"email",name:"/email",label:r.emailLabel||"Email",disabled:e.loading,required:!0}),s("div",{class:n.classes.ButtonsContainer},s("sl-button",{submit:!0,loading:e.loading,exportparts:"base: primarybutton-base",type:"primary"},r.submitLabel||"Reset Password"),s("div",{class:n.classes.SecondaryButton},r.secondaryButton))))}export{i as P}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var __spreadArrays=this&&this.__spreadArrays||function(){for(var r=0,n=0,t=arguments.length;n<t;n++)r+=arguments[n].length;for(var e=Array(r),s=0,n=0;n<t;n++)for(var i=arguments[n],a=0,u=i.length;a<u;a++,s++)e[s]=i[a];return e};System.register(["./p-b79c0e38.system.js","./p-35d6d322.system.js"],(function(r){"use strict";var n,t,e;return{setters:[function(r){n=r.i;t=r.k},function(r){e=r.R}],execute:function(){r("u",s);function s(){var r=e();var s=r.children.length?Array.from(r.children):[];var i=n(s),a=i[0],u=i[1];var c;t((function(){c=new MutationObserver((function(){var n=Array.from(r.children);u(__spreadArrays(n))}))}),[]);t((function(){if(!c)return;c.observe(r,{childList:true});return function(){c.disconnect()}}),[r]);return a}}}}));
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
title: string;
|
|
3
|
-
parameters: {};
|
|
4
|
-
};
|
|
5
|
-
export default _default;
|
|
6
|
-
export declare const CouponCode: () => any;
|
|
7
|
-
export declare const CustomTooltipText: () => any;
|
|
8
|
-
export declare const CustomTooltipDuration: () => any;
|
|
9
|
-
export declare const TextAlignCenter: () => any;
|
|
10
|
-
export declare const CopyButton: () => any;
|
|
11
|
-
export declare const CopyButtonInside: () => any;
|
|
12
|
-
export declare const CopyButtonBelow: () => any;
|
|
13
|
-
export declare const Error: () => any;
|
|
14
|
-
export declare const ErrorButtonBelow: () => any;
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { CopyTextViewProps } from "../views/copy-text-view";
|
|
2
|
-
import { DemoData } from "../../global/demo";
|
|
3
|
-
/**
|
|
4
|
-
* @uiName Coupon Code
|
|
5
|
-
* @exampleGroup Sharing
|
|
6
|
-
* @example Coupon Code - <sqm-coupon-code tooltip-text="Copied to Clipboard" tooltip-lifespan="1000"></sqm-coupon-code>
|
|
7
|
-
*/
|
|
8
|
-
export declare class CouponCode {
|
|
9
|
-
/**
|
|
10
|
-
* The ID of the program that should generate the code. Defaults to the program ID in context where this widget is loaded.
|
|
11
|
-
*
|
|
12
|
-
* @uiName Program ID
|
|
13
|
-
* @uiWidget programSelector
|
|
14
|
-
*/
|
|
15
|
-
programId?: string;
|
|
16
|
-
/**
|
|
17
|
-
* Shown inside a tooltip after someone has successfully copied the link to their clipboard.
|
|
18
|
-
*
|
|
19
|
-
* @uiName Tooltip Text
|
|
20
|
-
*/
|
|
21
|
-
tooltiptext: string;
|
|
22
|
-
/**
|
|
23
|
-
* The number of milliseconds that the tooltip appears for
|
|
24
|
-
*
|
|
25
|
-
* @uiName Tooltip lifespan
|
|
26
|
-
*/
|
|
27
|
-
tooltiplifespan: number;
|
|
28
|
-
/**
|
|
29
|
-
* Change the text alignment
|
|
30
|
-
*
|
|
31
|
-
* @uiName Align text
|
|
32
|
-
* @uiType string
|
|
33
|
-
* @uiEnum ["left", "center"]
|
|
34
|
-
* @uiEnumNames ["left", "center"]
|
|
35
|
-
*/
|
|
36
|
-
textAlign: "left" | "center";
|
|
37
|
-
/**
|
|
38
|
-
* Set copy button label
|
|
39
|
-
*
|
|
40
|
-
* @uiName Copy button label
|
|
41
|
-
*/
|
|
42
|
-
copyButtonLabel: string;
|
|
43
|
-
/**
|
|
44
|
-
* Set the copy button style
|
|
45
|
-
*
|
|
46
|
-
* @uiName Copy button style
|
|
47
|
-
* @uiType string
|
|
48
|
-
* @uiEnum ["icon", "button inside", "button outside", "button below"]
|
|
49
|
-
* @uiEnumNames ["icon", "button inside", "button outside", "button below"]
|
|
50
|
-
*/
|
|
51
|
-
buttonStyle: "icon" | "button inside" | "button outside" | "button below";
|
|
52
|
-
/**
|
|
53
|
-
* Set error message
|
|
54
|
-
*
|
|
55
|
-
* @uiName Error message
|
|
56
|
-
*/
|
|
57
|
-
errorText: string;
|
|
58
|
-
/**
|
|
59
|
-
* @undocumented
|
|
60
|
-
* @uiType object
|
|
61
|
-
*/
|
|
62
|
-
demoData?: DemoData<CopyTextViewProps>;
|
|
63
|
-
constructor();
|
|
64
|
-
disconnectedCallback(): void;
|
|
65
|
-
render(): any;
|
|
66
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @uiName Link Button
|
|
3
|
-
* @exampleGroup Common Components
|
|
4
|
-
* @example Link Button - <sqm-link-button link="www.example.com" open-in-new-tab="true">Click here</sqm-link-button>
|
|
5
|
-
*/
|
|
6
|
-
export declare class LinkButton {
|
|
7
|
-
/**
|
|
8
|
-
* @required
|
|
9
|
-
* @uiName User Identification Text
|
|
10
|
-
*/
|
|
11
|
-
link: string;
|
|
12
|
-
/**
|
|
13
|
-
* @uiName User Identification Text
|
|
14
|
-
*/
|
|
15
|
-
openInNewTab: boolean;
|
|
16
|
-
render(): any;
|
|
17
|
-
}
|
package/dist/types/components/sqm-passwordless-registration/sqm-passwordless-registration.d.ts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { DemoData } from "../../global/demo";
|
|
2
|
-
import { EmailRegistrationViewProps } from "../views/email-registration-view";
|
|
3
|
-
/**
|
|
4
|
-
* @uiName Microsite Registration
|
|
5
|
-
* @slots [{"name":"top-slot","title":"Widget Content"},{"name":"bottom-slot","title":"Widget Content"}]
|
|
6
|
-
*/
|
|
7
|
-
export declare class PasswordlessRegistration {
|
|
8
|
-
ignored: boolean;
|
|
9
|
-
/**
|
|
10
|
-
* @uiName Email Field Label
|
|
11
|
-
*/
|
|
12
|
-
emailLabel: string;
|
|
13
|
-
/**
|
|
14
|
-
* @uiName First Name Field Label
|
|
15
|
-
*/
|
|
16
|
-
firstNameLabel: string;
|
|
17
|
-
/**
|
|
18
|
-
* @uiName Last Name Field Label
|
|
19
|
-
*/
|
|
20
|
-
lastNameLabel: string;
|
|
21
|
-
/**
|
|
22
|
-
* @uiName Register Button Text
|
|
23
|
-
*/
|
|
24
|
-
registerLabel: string;
|
|
25
|
-
/**
|
|
26
|
-
* @uiName Include name fields
|
|
27
|
-
*/
|
|
28
|
-
includeName: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* @undocumented
|
|
31
|
-
* @uiType object
|
|
32
|
-
*/
|
|
33
|
-
demoData?: DemoData<EmailRegistrationViewProps>;
|
|
34
|
-
constructor();
|
|
35
|
-
disconnectedCallback(): void;
|
|
36
|
-
render(): any;
|
|
37
|
-
}
|