@saasquatch/mint-components 1.6.11 → 1.6.13-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/dist/cjs/{ShadowViewAddon-299d5f62.js → ShadowViewAddon-d55832bb.js} +414 -414
- package/dist/cjs/{email-registration-view-f347daa7.js → email-registration-view-eb20682a.js} +11 -11
- package/dist/cjs/{global-de2bf4f7.js → global-ac581c47.js} +659 -659
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/sqm-big-stat_39.cjs.entry.js +274 -274
- package/dist/cjs/sqm-empty_5.cjs.entry.js +51 -51
- package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +1 -1
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +13 -13
- package/dist/cjs/{sqm-logout-current-user-view-555c7729.js → sqm-logout-current-user-view-0d0ec11e.js} +5 -5
- package/dist/cjs/sqm-logout-current-user.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-navigation-sidebar-view-dd53f947.js → sqm-navigation-sidebar-view-3898b50b.js} +141 -141
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +1 -1
- package/dist/cjs/sqm-password-field.cjs.entry.js +9 -9
- package/dist/cjs/{sqm-portal-container-view-5fb2ad49.js → sqm-portal-container-view-3ebf55a7.js} +4 -4
- package/dist/cjs/{sqm-portal-email-verification-view-6f0aea50.js → sqm-portal-email-verification-view-cee5348c.js} +9 -9
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-portal-forgot-password-view-0142350f.js → sqm-portal-forgot-password-view-93da1161.js} +8 -8
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-profile-view-0abcf3b8.js → sqm-portal-profile-view-28176f3e.js} +2 -2
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +35 -35
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +27 -27
- package/dist/cjs/{sqm-portal-reset-password-view-d5bc7afc.js → sqm-portal-reset-password-view-4a03d26a.js} +8 -8
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-verify-email-view-f6c7287e.js → sqm-portal-verify-email-view-fb3bbf7b.js} +8 -8
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +2 -2
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +3 -3
- package/dist/cjs/sqm-referred-registration.cjs.entry.js +1 -1
- package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +1 -1
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +105 -105
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +749 -749
- package/dist/cjs/sqm-tabs.cjs.entry.js +4 -4
- package/dist/cjs/{sqm-text-span-view-e1cd9bd3.js → sqm-text-span-view-8a7b98d0.js} +7 -7
- package/dist/cjs/sqm-text-span.cjs.entry.js +1 -1
- package/dist/cjs/{useReferralTable-d4bfaa57.js → useReferralTable-8efa6160.js} +183 -183
- package/dist/collection/components/sqm-big-stat/useBigStat.js +239 -239
- package/dist/collection/components/sqm-brand/sqm-brand.js +21 -21
- package/dist/collection/components/sqm-card-feed/sqm-card-feed-view.js +5 -5
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field-view.js +14 -14
- package/dist/collection/components/sqm-coupon-code/sqm-coupon-code-view.js +5 -5
- package/dist/collection/components/sqm-coupon-code/useCouponCode.js +28 -28
- package/dist/collection/components/sqm-divided-layout/sqm-divided-layout-view.js +15 -15
- package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field-view.js +10 -10
- package/dist/collection/components/sqm-edit-profile/useEditProfile.js +32 -32
- package/dist/collection/components/sqm-hero/sqm-hero-view.js +14 -14
- package/dist/collection/components/sqm-hero-image/sqm-hero-image-view.js +3 -3
- package/dist/collection/components/sqm-image/sqm-image-view.js +4 -4
- package/dist/collection/components/sqm-input-field/sqm-input-field-view.js +6 -6
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +4 -4
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +2 -2
- package/dist/collection/components/sqm-leaderboard/useLeaderboard.js +40 -40
- package/dist/collection/components/sqm-leaderboard-rank/sqm-leaderboard-rank.js +2 -2
- package/dist/collection/components/sqm-leaderboard-rank/useLeaderboardRank.js +12 -12
- package/dist/collection/components/sqm-link-button/sqm-link-button-view.js +4 -4
- package/dist/collection/components/sqm-logout-current-user/sqm-logout-current-user-view.js +5 -5
- package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +11 -11
- package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar-view.js +141 -141
- package/dist/collection/components/sqm-password-field/sqm-password-field-view.js +9 -9
- package/dist/collection/components/sqm-portal-container/sqm-portal-container-view.js +4 -4
- package/dist/collection/components/sqm-portal-container/sqm-portal-container.js +1 -1
- package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification-view.js +7 -7
- package/dist/collection/components/sqm-portal-footer/sqm-portal-footer-view.js +10 -10
- package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.js +7 -7
- package/dist/collection/components/sqm-portal-login/sqm-portal-login-view.js +7 -7
- package/dist/collection/components/sqm-portal-profile/usePortalProfile.js +32 -32
- package/dist/collection/components/sqm-portal-register/sqm-portal-register-view.js +14 -14
- package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form-view.js +14 -14
- package/dist/collection/components/sqm-portal-registration-form/usePortalRegistrationForm.js +12 -12
- package/dist/collection/components/sqm-portal-reset-password/sqm-portal-reset-password-view.js +7 -7
- package/dist/collection/components/sqm-portal-verify-email/sqm-portal-verify-email-view.js +7 -7
- package/dist/collection/components/sqm-program-explainer/sqm-program-explainer-view.js +9 -9
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step-view.js +9 -9
- package/dist/collection/components/sqm-referral-card/sqm-referral-card-view.js +4 -4
- package/dist/collection/components/sqm-referral-iframe/useReferralIframe.js +8 -8
- 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/useRewardExchangeList.js +51 -51
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-date-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 +4 -4
- package/dist/collection/components/sqm-share-button/useShareButton.js +17 -17
- package/dist/collection/components/sqm-share-code/useShareCode.js +12 -12
- package/dist/collection/components/sqm-share-link/useShareLink.js +12 -12
- 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-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/sqm-task-card-view.js +6 -6
- 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 +7 -7
- package/dist/collection/components/sqm-timeline/sqm-timeline-entry-view.js +8 -8
- package/dist/collection/components/sqm-timeline/sqm-timeline.js +8 -8
- package/dist/collection/components/sqm-user-name/useUserName.js +9 -9
- package/dist/collection/components/views/copy-text-view.js +15 -15
- package/dist/collection/components/views/email-registration-view.js +11 -11
- package/dist/collection/global/styles.js +659 -659
- package/dist/collection/global/styles.ts +735 -735
- package/dist/esm/{ShadowViewAddon-0bb71ad2.js → ShadowViewAddon-0f9993af.js} +414 -414
- package/dist/esm/{email-registration-view-0a11e959.js → email-registration-view-ec5e7db0.js} +11 -11
- package/dist/esm/{global-3cb5aea4.js → global-fe2b026c.js} +659 -659
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/sqm-big-stat_39.entry.js +274 -274
- package/dist/esm/sqm-empty_5.entry.js +51 -51
- package/dist/esm/sqm-instant-access-registration.entry.js +1 -1
- package/dist/esm/sqm-leaderboard-rank.entry.js +13 -13
- package/dist/esm/{sqm-logout-current-user-view-2d740794.js → sqm-logout-current-user-view-13d7832a.js} +5 -5
- package/dist/esm/sqm-logout-current-user.entry.js +1 -1
- package/dist/esm/{sqm-navigation-sidebar-view-414bcb19.js → sqm-navigation-sidebar-view-0c245f7d.js} +141 -141
- package/dist/esm/sqm-navigation-sidebar.entry.js +1 -1
- package/dist/esm/sqm-password-field.entry.js +9 -9
- package/dist/esm/{sqm-portal-container-view-ab89c6cc.js → sqm-portal-container-view-b7b10841.js} +4 -4
- package/dist/esm/{sqm-portal-email-verification-view-87413403.js → sqm-portal-email-verification-view-6b37818c.js} +9 -9
- package/dist/esm/sqm-portal-email-verification.entry.js +3 -3
- package/dist/esm/{sqm-portal-forgot-password-view-41afcace.js → sqm-portal-forgot-password-view-ffe81d83.js} +8 -8
- package/dist/esm/sqm-portal-forgot-password.entry.js +2 -2
- package/dist/esm/{sqm-portal-profile-view-977710a3.js → sqm-portal-profile-view-cc13ab93.js} +2 -2
- package/dist/esm/sqm-portal-profile.entry.js +35 -35
- package/dist/esm/sqm-portal-registration-form.entry.js +27 -27
- package/dist/esm/{sqm-portal-reset-password-view-0df781f6.js → sqm-portal-reset-password-view-e4f288e8.js} +8 -8
- package/dist/esm/sqm-portal-reset-password.entry.js +2 -2
- package/dist/esm/{sqm-portal-verify-email-view-1db4fae6.js → sqm-portal-verify-email-view-f0994025.js} +8 -8
- package/dist/esm/sqm-portal-verify-email.entry.js +2 -2
- package/dist/esm/sqm-referral-table_11.entry.js +3 -3
- package/dist/esm/sqm-referred-registration.entry.js +1 -1
- package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +1 -1
- package/dist/esm/sqm-rewards-table_9.entry.js +105 -105
- package/dist/esm/sqm-stencilbook.entry.js +749 -749
- package/dist/esm/sqm-tabs.entry.js +4 -4
- package/dist/esm/{sqm-text-span-view-8d140661.js → sqm-text-span-view-1eaedc4d.js} +7 -7
- package/dist/esm/sqm-text-span.entry.js +1 -1
- package/dist/esm/{useReferralTable-8852f5fd.js → useReferralTable-3d59e2de.js} +183 -183
- package/dist/esm-es5/ShadowViewAddon-0f9993af.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/sqm-big-stat_39.entry.js +1 -1
- package/dist/esm-es5/sqm-empty_5.entry.js +1 -1
- package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-87413403.js → sqm-portal-email-verification-view-6b37818c.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-forgot-password-view-41afcace.js → sqm-portal-forgot-password-view-ffe81d83.js} +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-977710a3.js → sqm-portal-profile-view-cc13ab93.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.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-0df781f6.js → sqm-portal-reset-password-view-e4f288e8.js} +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-verify-email-view-1db4fae6.js → sqm-portal-verify-email-view-f0994025.js} +1 -1
- package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-referred-registration.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_9.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-text-span.entry.js +1 -1
- package/dist/mint-components/global/styles.ts +735 -735
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/{p-d1416e69.entry.js → p-012bd649.entry.js} +1 -1
- package/dist/mint-components/{p-34c90e51.system.entry.js → p-0680fe0e.system.entry.js} +1 -1
- package/dist/mint-components/{p-a092fddb.system.entry.js → p-0ebf6140.system.entry.js} +1 -1
- package/dist/mint-components/p-1be3030c.system.entry.js +1 -0
- package/dist/mint-components/{p-56525896.system.js → p-22372d68.system.js} +1 -1
- package/dist/mint-components/{p-ff3b0ece.system.entry.js → p-249e1dcf.system.entry.js} +1 -1
- package/dist/mint-components/{p-2d6f3bbc.entry.js → p-298d954b.entry.js} +1 -1
- package/dist/mint-components/{p-f82bb604.entry.js → p-2ad125d0.entry.js} +1 -1
- package/dist/mint-components/{p-9df46d84.system.js → p-310578bc.system.js} +1 -1
- package/dist/mint-components/{p-1437b793.system.js → p-35c7e3e0.system.js} +1 -1
- package/dist/mint-components/{p-e61bedb4.system.entry.js → p-36f9421a.system.entry.js} +1 -1
- package/dist/mint-components/{p-b16930c5.entry.js → p-38282cef.entry.js} +2 -2
- package/dist/mint-components/{p-e530b3d9.system.entry.js → p-455bbcbf.system.entry.js} +1 -1
- package/dist/mint-components/p-46319934.entry.js +9 -0
- package/dist/mint-components/{p-85db3d0b.js → p-50c4d42b.js} +2 -2
- package/dist/mint-components/{p-46be1518.system.js → p-5639e27a.system.js} +1 -1
- package/dist/mint-components/{p-f60232ab.entry.js → p-596435af.entry.js} +1 -1
- package/dist/mint-components/{p-4e508387.system.entry.js → p-68369452.system.entry.js} +1 -1
- package/dist/mint-components/{p-75ddf3ca.js → p-697d89d4.js} +1 -1
- package/dist/mint-components/{p-e3fc9e65.system.entry.js → p-6b71e3a0.system.entry.js} +1 -1
- package/dist/mint-components/{p-cf5b20fc.system.js → p-7279510a.system.js} +1 -1
- package/dist/mint-components/{p-6ff1de8a.js → p-73c328dc.js} +1 -1
- package/dist/mint-components/{p-600b792e.system.entry.js → p-7a5e33d5.system.entry.js} +1 -1
- package/dist/mint-components/{p-3c02b80b.entry.js → p-7cc72c56.entry.js} +1 -1
- package/dist/mint-components/{p-6ab08b86.entry.js → p-83fb9f0d.entry.js} +1 -1
- package/dist/mint-components/{p-36182652.entry.js → p-8487c88f.entry.js} +1 -1
- package/dist/mint-components/{p-6a578070.entry.js → p-86c99bf7.entry.js} +3 -3
- package/dist/mint-components/{p-efd129de.js → p-95694e10.js} +1 -1
- package/dist/mint-components/{p-9fc8505c.entry.js → p-a8e0119d.entry.js} +1 -1
- package/dist/mint-components/{p-239f4be8.entry.js → p-ac4ab025.entry.js} +1 -1
- package/dist/mint-components/{p-6fc0c1a8.system.entry.js → p-b5bc1367.system.entry.js} +1 -1
- package/dist/mint-components/{p-b668aa0b.system.entry.js → p-b5cb4899.system.entry.js} +1 -1
- package/dist/mint-components/{p-e1c07c5f.system.entry.js → p-bb138fd1.system.entry.js} +1 -1
- package/dist/mint-components/{p-e56b2c9b.entry.js → p-c03429a6.entry.js} +1 -1
- package/dist/mint-components/{p-086bc650.system.js → p-c3dd8944.system.js} +1 -1
- package/dist/mint-components/{p-a217deee.js → p-c4b57672.js} +1 -1
- package/dist/mint-components/{p-e68608e9.entry.js → p-cfd86a6a.entry.js} +1 -1
- package/dist/mint-components/{p-7195cdd7.system.entry.js → p-d35660f7.system.entry.js} +1 -1
- package/dist/mint-components/{p-0bf5a9b8.system.entry.js → p-db610d79.system.entry.js} +1 -1
- package/dist/mint-components/{p-b953ae7f.js → p-dc869574.js} +1 -1
- package/dist/mint-components/{p-c5fe9915.system.entry.js → p-e1ed9b5c.system.entry.js} +1 -1
- package/dist/mint-components/{p-6b368b9f.entry.js → p-e3996469.entry.js} +1 -1
- package/dist/mint-components/{p-07d8ef1e.entry.js → p-e4907e10.entry.js} +1 -1
- package/dist/mint-components/p-ed8a36ce.entry.js +1 -0
- package/dist/mint-components/{p-1c9d83b4.entry.js → p-f188d053.entry.js} +1 -1
- package/dist/mint-components/{p-01be40a8.system.entry.js → p-f2ee898c.system.entry.js} +1 -1
- package/dist/mint-components/p-f870021b.system.js +1 -0
- package/dist/mint-components/{p-7808d6f2.system.entry.js → p-fdd64756.system.entry.js} +1 -1
- package/dist/mint-components/{p-fb283db7.system.entry.js → p-ff80fa6b.system.entry.js} +1 -1
- package/dist/types/components.d.ts +72 -72
- package/dist/types/global/android.d.ts +7 -7
- package/dist/types/saasquatch.d.ts +132 -132
- package/dist/types/stories/features.d.ts +4 -4
- package/dist/types/stories/templates.d.ts +4 -4
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +104 -104
- package/readme.md +13 -13
- package/dist/esm-es5/ShadowViewAddon-0bb71ad2.js +0 -1
- package/dist/mint-components/p-3a221d40.entry.js +0 -9
- package/dist/mint-components/p-73aec3d2.system.js +0 -1
- package/dist/mint-components/p-87a6bfa4.entry.js +0 -1
- package/dist/mint-components/p-cc6924b9.system.entry.js +0 -1
- /package/dist/esm-es5/{email-registration-view-0a11e959.js → email-registration-view-ec5e7db0.js} +0 -0
- /package/dist/esm-es5/{global-3cb5aea4.js → global-fe2b026c.js} +0 -0
- /package/dist/esm-es5/{sqm-logout-current-user-view-2d740794.js → sqm-logout-current-user-view-13d7832a.js} +0 -0
- /package/dist/esm-es5/{sqm-navigation-sidebar-view-414bcb19.js → sqm-navigation-sidebar-view-0c245f7d.js} +0 -0
- /package/dist/esm-es5/{sqm-portal-container-view-ab89c6cc.js → sqm-portal-container-view-b7b10841.js} +0 -0
- /package/dist/esm-es5/{sqm-text-span-view-8d140661.js → sqm-text-span-view-1eaedc4d.js} +0 -0
- /package/dist/esm-es5/{useReferralTable-8852f5fd.js → useReferralTable-3d59e2de.js} +0 -0
- /package/dist/mint-components/{p-cb900cb6.system.js → p-06f55c04.system.js} +0 -0
- /package/dist/mint-components/{p-e704842c.js → p-133f8f27.js} +0 -0
- /package/dist/mint-components/{p-c06048c9.system.js → p-1596a53c.system.js} +0 -0
- /package/dist/mint-components/{p-5d0c9424.js → p-1e1f2fc5.js} +0 -0
- /package/dist/mint-components/{p-46f41615.system.js → p-5a739d01.system.js} +0 -0
- /package/dist/mint-components/{p-4f775e84.system.js → p-5cda74d1.system.js} +0 -0
- /package/dist/mint-components/{p-4f09f749.js → p-65fffbfb.js} +0 -0
- /package/dist/mint-components/{p-2bf86715.js → p-671f612f.js} +0 -0
- /package/dist/mint-components/{p-9907bc8a.js → p-89296785.js} +0 -0
- /package/dist/mint-components/{p-16c3324b.js → p-9de2287d.js} +0 -0
- /package/dist/mint-components/{p-0076de9e.js → p-b45ec61b.js} +0 -0
- /package/dist/mint-components/{p-922578e4.system.js → p-d1a64314.system.js} +0 -0
- /package/dist/mint-components/{p-8ba2c01f.system.js → p-ea04661e.system.js} +0 -0
- /package/dist/mint-components/{p-29edd49c.system.js → p-fd345add.system.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-ff17b3a4.system.js","./p-f6934a55.system.js","./p-1a673057.system.js","./p-
|
|
1
|
+
System.register(["./p-ff17b3a4.system.js","./p-f6934a55.system.js","./p-1a673057.system.js","./p-5cda74d1.system.js"],(function(e){"use strict";var s,t,r,a,o,n;return{setters:[function(e){s=e.h},function(e){t=e.A;r=e.a;a=e.b},function(e){o=e.c},function(e){n=e.T}],execute:function(){e("P",d);var l={Wrapper:t,Column:r,ButtonsContainer:a,Banner:{"&::part(erroralert-base)":{margin:"15px 0px"}},CodeError:{"&::part(erroralert-base)":{"margin-bottom":"15px"}},CodeSuccess:{"&::part(successalert-base)":{"margin-bottom":"15px"}},ContinueButton:{width:"100%"}};var i="\n:host {\n display: block;\n}\n:host([hidden]): {\n display: none;\n}\n";var c=o(l);var p=c.toString();function d(e){var t=e.states,r=e.callbacks;if(t.reset){return s("div",{class:c.classes.Wrapper+" "+c.classes.Column},s("style",{type:"text/css"},p),s(n,{type:"h3"},t.content.resetPasswordHeader),s("sqm-form-message",{class:c.classes.CodeSuccess,exportparts:"success-icon"},s("div",{part:"successalert-text"},"Your password has been reset and you are being redirected. If you are not redirected, please click Continue.")),s("div",null,s("sl-button",{class:c.classes.ContinueButton,onClick:r.gotoNextPage,loading:t.loading,exportparts:"base: primarybutton-base",type:"primary"},t.content.continueButtonText)))}if(t.oobCodeValidating){return s("div",null)}if(!t.oobCodeValid){return s("div",{class:c.classes.Wrapper+" "+c.classes.Column},s("style",{type:"text/css"},p),s("sqm-form-message",{class:c.classes.CodeError,type:"error",exportparts:"erroralert-icon"},s("div",{part:"erroralert-text"},"The password reset code is invalid or has expired, please try again.")),s("div",null,s("sl-button",{class:c.classes.ContinueButton,onClick:r.failed,exportparts:"base: primarybutton-base",type:"primary"},t.content.continueButtonText)))}return s("div",{class:c.classes.Wrapper},s("style",{type:"text/css"},i,p),s(n,{type:"h2"},t.reset?t.content.passwordResetHeader:t.content.resetPasswordHeader),s("sl-form",{class:c.classes.Column,"onSl-submit":r.submit},e.states.error&&s("sqm-form-message",{type:"error",class:c.classes.Banner,exportparts:"erroralert-icon"},s("div",{part:"erroralert-text"},e.states.error)),!t.reset&&s("sqm-password-field",{fieldLabel:t.content.passwordFieldLabel,demoData:t.passwordDemoData}),!t.reset&&t.confirmPassword&&s("sl-input",{exportparts:"label: input-label",type:"password",name:"/confirmPassword",label:t.content.confirmPasswordFieldLabel,disabled:t.loading,required:true}),s("div",{class:c.classes.ButtonsContainer},s("sl-button",{class:c.classes.ContinueButton,submit:true,loading:t.loading,exportparts:"base: primarybutton-base",type:"primary"},t.reset?t.content.continueButtonText:t.content.resetPasswordButtonText))))}}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-ff17b3a4.system.js","./p-3cc28285.system.js","./p-1a673057.system.js","./p-
|
|
1
|
+
System.register(["./p-ff17b3a4.system.js","./p-3cc28285.system.js","./p-1a673057.system.js","./p-5cda74d1.system.js"],(function(t){"use strict";var n,e,s,o;return{setters:[function(t){n=t.r;e=t.h},function(t){s=t.m},function(){},function(t){o=t.T}],execute:function(){var i=t("sqm_text_span",function(){function t(t){n(this,t);this.ignored=true;s(this)}t.prototype.disconnectedCallback=function(){};t.prototype.componentWillLoad=function(){};t.prototype.render=function(){return e(o,{type:this.type},this.text)};return t}())}}}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{h as i,r as o}from"./p-64c3217a.js";import{k as l,f as r,m as s}from"./p-901f5b80.js";import{d as t,q as a,b as e,p as d,f as n,i as v}from"./p-cdddccfe.js";import{j as u}from"./p-e7e129ac.js";import{c as m}from"./p-c1086930.js";import{A as c,a as p,H as f,b as h,E as b}from"./p-02be1a88.js";import{c as g}from"./p-cef45012.js";import{T as y}from"./p-
|
|
1
|
+
import{h as i,r as o}from"./p-64c3217a.js";import{k as l,f as r,m as s}from"./p-901f5b80.js";import{d as t,q as a,b as e,p as d,f as n,i as v}from"./p-cdddccfe.js";import{j as u}from"./p-e7e129ac.js";import{c as m}from"./p-c1086930.js";import{A as c,a as p,H as f,b as h,E as b}from"./p-02be1a88.js";import{c as g}from"./p-cef45012.js";import{T as y}from"./p-1e1f2fc5.js";import{u as w}from"./p-5da880d1.js";import{A as E}from"./p-121cdc60.js";const k=g({Wrapper:{...c,"max-width":"600px"},Column:p,HostBlock:f,":host":{margin:"0 auto",width:"100%"},ButtonsContainer:h,ErrorStyle:b}),j=k.toString();function x(o){var l,r,s,t,a,e,d,n,v,u,m,c,p,f,h,b,g,w,E,x;const{states:P,refs:q,callbacks:M,content:F}=o;return P.error&&window.scrollTo({top:0,left:0,behavior:"smooth"}),i("div",{class:k.classes.Wrapper,part:"sqm-base"},i("style",{type:"text/css"},"\nsqm-portal-register {\n margin: 0 auto;\n width: 100%;\n display: block;\n}\n\n:host{\n display: block;\n}\n\n:host([hidden]) {\n display: none;\n}\n",j),i(y,{type:"h3"},F.pageLabel),i("sl-form",{class:k.classes.Column,"onSl-submit":M.submit,ref:i=>q.formRef.current=i,novalidate:!0},(null===(l=P.registrationFormState)||void 0===l?void 0:l.disabled)?i("sqm-form-message",{type:"error",exportparts:"erroralert-icon"},i("div",{part:"erroralert-text"},P.registrationFormState.disabledMessage)):P.error&&i("sqm-form-message",{type:"error",exportparts:"erroralert-icon"},i("div",{part:"erroralert-text"},o.states.error)),F.formData,!P.hideInputs&&i("sl-input",Object.assign({exportparts:"label: input-label",type:"email",name:"/email",label:F.emailLabel||"Email",disabled:P.loading||(null===(r=P.registrationFormState)||void 0===r?void 0:r.disabled),required:!0,validationError:({value:i})=>i?i.includes("@")?void 0:F.invalidEmailErrorMessage:F.requiredFieldErrorMessage},(null===(t=null===(s=P.registrationFormState)||void 0===s?void 0:s.initialData)||void 0===t?void 0:t.email)?{value:null===(e=null===(a=P.registrationFormState)||void 0===a?void 0:a.initialData)||void 0===e?void 0:e.email}:{},(null===(n=null===(d=P.registrationFormState)||void 0===d?void 0:d.validationErrors)||void 0===n?void 0:n.email)?{class:k.classes.ErrorStyle,helpText:(null===(u=null===(v=P.registrationFormState)||void 0===v?void 0:v.validationErrors)||void 0===u?void 0:u.email)||F.requiredFieldErrorMessage}:[])),!P.hideInputs&&i("sqm-password-field",{fieldLabel:F.passwordLabel,"disable-validation":!P.enablePasswordValidation}),F.passwordField,!P.hideInputs&&P.confirmPassword&&i("sl-input",Object.assign({exportparts:"label: input-label",type:"password",name:"/confirmPassword",label:F.confirmPasswordLabel,disabled:P.loading||(null===(m=P.registrationFormState)||void 0===m?void 0:m.disabled),required:!0},(null===(p=null===(c=P.registrationFormState)||void 0===c?void 0:c.initialData)||void 0===p?void 0:p.confirmPassword)?{value:null===(h=null===(f=P.registrationFormState)||void 0===f?void 0:f.initialData)||void 0===h?void 0:h.confirmPassword}:{},(null===(g=null===(b=P.registrationFormState)||void 0===b?void 0:b.validationErrors)||void 0===g?void 0:g.confirmPassword)?{class:k.classes.ErrorStyle,helpText:(null===(E=null===(w=P.registrationFormState)||void 0===w?void 0:w.validationErrors)||void 0===E?void 0:E.confirmPassword)||F.requiredFieldErrorMessage}:[])),F.terms,i("div",{class:k.classes.ButtonsContainer},i("sl-button",{submit:!0,loading:P.loading,disabled:null===(x=P.registrationFormState)||void 0===x?void 0:x.disabled,exportparts:"base: primarybutton-base",type:"primary"},F.submitLabel||"Register"),F.secondaryButton)))}const P=t.gql`
|
|
2
2
|
query RegistrationFormQuery($key: String!) {
|
|
3
3
|
form(key: $key) {
|
|
4
4
|
key
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s,h as t}from"./p-64c3217a.js";import{m as r}from"./p-901f5b80.js";import"./p-cef45012.js";import{T as e}from"./p-
|
|
1
|
+
import{r as s,h as t}from"./p-64c3217a.js";import{m as r}from"./p-901f5b80.js";import"./p-cef45012.js";import{T as e}from"./p-1e1f2fc5.js";const o=class{constructor(t){s(this,t),this.ignored=!0,this.locale="en",r(this)}disconnectedCallback(){}render(){return t(e,{type:"p"},this.note)}};export{o as sqm_rewards_table_customer_note_cell}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-ff17b3a4.system.js","./p-
|
|
1
|
+
System.register(["./p-ff17b3a4.system.js","./p-5a739d01.system.js","./p-1a673057.system.js","./p-5cda74d1.system.js"],(function(e){"use strict";var t,a,s,l;return{setters:[function(e){t=e.h},function(e){a=e.i},function(e){s=e.c},function(e){l=e.T}],execute:function(){e("P",i);function i(e){var i,r,n,o,d;var u=e.states,m=e.callbacks;var c=u.text,p=u.formState;var v=p.errors,b=p.error;var x={Container:{display:"flex",flexDirection:"column",gap:"var(--sl-spacing-xxx-large)",padding:"var(--sl-spacing-xxx-large)"},FormStyle:{width:"100%",minWidth:"700px","& >*:not(:last-child)":{"margin-bottom":"32px"},"@media screen and (max-width: 1100px)":{minWidth:"100%"}},Error:{"&::part(erroralert-base)":{"margin-bottom":"32px"}},Success:{"&::part(successalert-base)":{"margin-bottom":"32px"}},NameInputStyle:{width:"50%","@media screen and (max-width: 860px)":{width:"100%","margin-right":"0"}},NameInputContainer:{display:"flex",gap:"32px",width:"100%","@media screen and (max-width: 860px)":{flexDirection:"column"}}};var f=s(x);var g=f.toString();var y=((i=u.user)===null||i===void 0?void 0:i.countryCode)?a.formatDisplayName((r=u.user)===null||r===void 0?void 0:r.countryCode,{type:"region"}):"";return t("div",{class:f.classes.Container,part:"sqm-base"},t("style",{type:"text/css"},g),t(l,Object.assign({},{type:"h1"}),c.editProfileHeader),t(l,Object.assign({},{type:"h2"}),c.editProfileSubHeader),t("form",{class:f.classes.FormStyle,onSubmit:m.onSubmit},u.success&&t("sqm-form-message",{class:f.classes.Success,exportparts:"success-icon"},t("div",{part:"successalert-text"},"Your profile has been successfully updated.")),b&&t("sqm-form-message",{class:f.classes.Error,type:"error",exportparts:"erroralert-icon"},t("div",{part:"erroralert-text"},b)),t("div",{class:f.classes.NameInputContainer},t("sl-input",Object.assign({class:f.classes.NameInputStyle,exportparts:"label: input-label",value:(n=u.user)===null||n===void 0?void 0:n.firstName,onInput:m.onChange,label:c.firstnametext,disabled:u.loading},(v===null||v===void 0?void 0:v.firstName)&&(v===null||v===void 0?void 0:v.firstName.status)!=="valid"?{class:"ErrorStyles",helpText:"Cannot be empty"}:[],{id:"firstName",name:"firstName",error:(v===null||v===void 0?void 0:v.firstName)&&(v===null||v===void 0?void 0:v.firstName.status)!=="valid"?v===null||v===void 0?void 0:v.firstName.message:undefined})),t("sl-input",Object.assign({class:f.classes.NameInputStyle,exportparts:"label: input-label",value:(o=u.user)===null||o===void 0?void 0:o.lastName,onInput:m.onChange,label:c.lastnametext,disabled:u.loading,id:"lastName",name:"lastName"},(v===null||v===void 0?void 0:v.lastName)&&(v===null||v===void 0?void 0:v.lastName.status)!=="valid"?{class:"ErrorStyles",helpText:"Cannot be empty"}:[],{error:(v===null||v===void 0?void 0:v.lastName)&&(v===null||v===void 0?void 0:v.lastName.status)!=="valid"?v===null||v===void 0?void 0:v.lastName.message:undefined}))),t("sl-input",{label:c.emailtext,value:(d=u.user)===null||d===void 0?void 0:d.email,exportparts:"label: input-label",disabled:true}),u.showCountry&&t("sl-input",{label:c.countrytext,value:y,exportparts:"label: input-label",disabled:true}),t("sl-button",{type:"primary",loading:u.loading,disabled:u.submitDisabled,onClick:function(e){m.onSubmit(e)},submit:true},c.submitChangeButtonText)))}}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __assign=this&&this.__assign||function(){__assign=Object.assign||function(s){for(var t,e=1,a=arguments.length;e<a;e++){t=arguments[e];for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))s[r]=t[r]}return s};return __assign.apply(this,arguments)};System.register(["./p-ff17b3a4.system.js","./p-f6934a55.system.js","./p-1a673057.system.js","./p-
|
|
1
|
+
var __assign=this&&this.__assign||function(){__assign=Object.assign||function(s){for(var t,e=1,a=arguments.length;e<a;e++){t=arguments[e];for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))s[r]=t[r]}return s};return __assign.apply(this,arguments)};System.register(["./p-ff17b3a4.system.js","./p-f6934a55.system.js","./p-1a673057.system.js","./p-5cda74d1.system.js"],(function(s){"use strict";var t,e,a,r,n,i;return{setters:[function(s){t=s.h},function(s){e=s.A;a=s.a;r=s.b},function(s){n=s.c},function(s){i=s.T}],execute:function(){s("P",p);var o={Wrapper:e,Column:__assign({},a),ButtonsContainer:r,SecondaryButton:{cursor:"pointer",width:"25%"}};var l="\n:host {\n display: block;\n}\n:host([hidden]): {\n display: none;\n}\n";var c=n(o);var u=c.toString();function p(s){var e=s.states,a=s.callbacks,r=s.content;return t("div",{class:c.classes.Wrapper,part:"sqm-base"},t("style",{type:"text/css"},l,u),t(i,{type:"h3"},r.messageSlot),t("sl-form",{class:c.classes.Column,"onSl-submit":a.submit},s.states.error&&t("sqm-form-message",{type:"error",exportparts:"erroralert-icon"},t("div",{part:"erroralert-text"},s.states.error)),s.states.success&&t("sqm-form-message",{type:"success",exportparts:"successalert-icon"},t("div",{part:"successalert-text"},"If an account with that email exists, a password reset email will be sent.")),t("sl-input",{exportparts:"label: input-label",type:"email",name:"/email",label:r.emailLabel||"Email",disabled:e.loading,required:true}),t("div",{class:c.classes.ButtonsContainer},t("sl-button",{submit:true,loading:e.loading,exportparts:"base: primarybutton-base",type:"primary"},r.submitLabel||"Reset Password"),t("div",{class:c.classes.SecondaryButton},r.secondaryButton))))}}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-ff17b3a4.system.js","./p-3cc28285.system.js","./p-a3e28532.system.js","./p-
|
|
1
|
+
System.register(["./p-ff17b3a4.system.js","./p-3cc28285.system.js","./p-a3e28532.system.js","./p-1596a53c.system.js"],(function(t){"use strict";var n,e,s,c,r,i,o,u;return{setters:[function(t){n=t.r;e=t.h},function(t){s=t.m;c=t.j;r=t.f},function(t){i=t.v;o=t.O},function(t){u=t.N}],execute:function(){var a=t("sqm_navigation_sidebar",function(){function t(t){n(this,t);this.ignored=true;s(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){var t=f();return e(u,Object.assign({},t),e("slot",null))};return t}());function f(){var t=i();var n=o();var e=c(false),s=e[0],u=e[1];r((function(){u(false)}),[t.pathname,n]);function a(t){u(t.target.checked)}return{checked:s,onClick:a}}}}}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r,h as t}from"./p-64c3217a.js";import{m as a}from"./p-901f5b80.js";import{i as e}from"./p-
|
|
1
|
+
import{r,h as t}from"./p-64c3217a.js";import{m as a}from"./p-901f5b80.js";import{i as e}from"./p-65fffbfb.js";import{d as o,O as n,L as s,b as i,i as l}from"./p-cdddccfe.js";import{c as d}from"./p-c1086930.js";import{L as c}from"./p-0a898ab1.js";const p=o.gql`
|
|
2
2
|
query ($type: String!, $filter: UserLeaderboardFilterInput) {
|
|
3
3
|
viewer {
|
|
4
4
|
... on User {
|
|
@@ -10,4 +10,4 @@ import{r,h as t}from"./p-64c3217a.js";import{m as a}from"./p-901f5b80.js";import
|
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
|
-
`,
|
|
13
|
+
`,f=class{constructor(t){r(this,t),this.rankText="You are currently in {rank, selectordinal, one {#st} two {#nd} few {#rd} other {#th} } place!",a(this)}disconnectedCallback(){}render(){const r=l()?function(r){const t=e.formatMessage({id:"rankText",defaultMessage:r.rankText},{rank:1})||"1st";return d({data:{rank:t}},r.demoData||{},{arrayMerge:(r,t)=>t})}(this):function(r){var t,a,o,l;const d=n(),c=null!==(t=r.programId)&&void 0!==t?t:d,f=s(),u=c?{type:r.leaderboardType,filter:{programId_eq:c}}:{type:r.leaderboardType,filter:{}};r.interval&&(u.filter.interval=r.interval);const{data:m}=i(p,u,!(null==f?void 0:f.jwt));return{data:{rank:(null===(a=null==m?void 0:m.viewer)||void 0===a?void 0:a.leaderboardRank)?e.formatMessage({id:"rankText",defaultMessage:r.rankText},{rank:null===(l=null===(o=null==m?void 0:m.viewer)||void 0===o?void 0:o.leaderboardRank)||void 0===l?void 0:l[r.rankType]}):r.unrankedText||"unranked"}}}(this);return t(c,Object.assign({},r))}};f.style="p,.P{font-size:var(--sl-font-size-small);color:var(--sl-color-gray-800);margin-top:0px}p.Subtitle,.P.Subtitle{color:var(--sl-color-gray-500);margin:0px}";export{f as sqm_leaderboard_rank}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,t,r,n){function a(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function s(e){try{o(n.next(e))}catch(e){i(e)}}function l(e){try{o(n["throw"](e))}catch(e){i(e)}}function o(e){e.done?r(e.value):a(e.value).then(s,l)}o((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(e){return function(t){return o([e,t])}}function o(s){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,a&&(i=s[0]&2?a["return"]:s[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,s[1])).done)return i;if(a=0,i)s=[s[0]&2,i.value];switch(s[0]){case 0:case 1:i=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;a=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){r.label=s[1];break}if(s[0]===6&&r.label<i[1]){r.label=i[1];i=s;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(s);break}if(i[2])r.ops.pop();r.trys.pop();continue}s=t.call(e,r)}catch(e){s=[6,e];a=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArrays=this&&this.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),a=0,t=0;t<r;t++)for(var i=arguments[t],s=0,l=i.length;s<l;s++,a++)n[a]=i[s];return n};System.register(["./p-ff17b3a4.system.js","./p-3cc28285.system.js","./p-46f41615.system.js","./p-a3e28532.system.js","./p-4bd679a7.system.js","./p-f6934a55.system.js","./p-1a673057.system.js","./p-9165844e.system.js","./p-c0e7d16e.system.js","./p-c32a8733.system.js","./p-2b6c19e0.system.js","./p-8ba2c01f.system.js","./p-6333265f.system.js","./p-4f775e84.system.js"],(function(e){"use strict";var t,r,n,a,i,s,l,o,u,d,c,f,p,v,h,m,g,_,y,b,T,x;return{setters:[function(e){t=e.r;r=e.h;n=e.g;a=e.c},function(e){i=e.m;s=e.i;l=e.u;o=e.f},function(e){u=e.i},function(e){d=e.i},function(e){c=e.c},function(){},function(e){f=e.c},function(e){p=e.G},function(e){v=e.a;h=e.u},function(e){m=e.u},function(e){g=e.l},function(e){_=e.a;y=e.u;b=e.t},function(e){T=e.l},function(e){x=e.T}],execute:function(){var w=function(e){if(e===void 0){e=4}var t=__spreadArrays(Array(e)).map((function(){return L()}));return{totalCount:6,count:e,referredByReferral:{dateConverted:null,dateReferralStarted:1643912659850,referrerUser:{firstName:"John",lastName:"Snow",rewards:[]}},data:t}};var E=[["AVAILABLE"],["PENDING"],["CANCELLED"],["EXPIRED"],["REDEEMED"]];var D=["Rajesh","Pierre","Ji-Ho","Chinua","Charleston","Sally","Gael","Jill","Jane","Khadija"];var C=["Smith","Parker","Kent","Chew","Stark","Banner","Jones","Odinson","Pym","Rogers"];var L=function(){return{id:"5cae6b0fcc540e209db45b53",referredUser:{id:"5cae6b0ce4b0d81c67b78e82",accountId:"SPX1MZBIPTFL3E1H",firstName:D[Math.floor(Math.random()*D.length)],lastName:C[Math.floor(Math.random()*C.length)],email:"example.uexwltgh@mailosaur.io",programGoals:[]},shareLinkUsed:null,referralCodeUsed:"JIMBONEUTRON2",moderationStatus:"PENDING",dateConverted:Math.floor(Math.random()*10)>=5?g.DateTime.now().minus({days:6}).toMillis():null,dateFraudChecksCompleted:null,dateModerated:1558730033306,dateModified:1554934543447,dateReferralEnded:null,dateReferralPaid:null,dateReferralStarted:g.DateTime.now().minus({days:8}).toMillis(),dateUserModified:null,programId:"sam-partner-test-2",program:{id:"sam-partner-test-2",name:"Partner Program 2.0"},rewards:Math.floor(Math.random()*10)>=5?[{id:"5cae6b16cc540e209db45cfa",type:"CREDIT",value:1,unit:"POINT",name:"Partner Reward",dateGiven:1554934550726,dateExpires:null,dateCancelled:null,dateRedeemed:1637004373582,dateScheduledFor:null,fuelTankCode:null,fuelTankType:null,currency:null,prettyValue:"1 Point",statuses:E[Math.floor(Math.random()*E.length)],globalRewardKey:null,programRewardKey:"partnerReward",meta:__assign({},_()),rewardRedemptionTransactions:{data:[{exchangedRewards:{data:[{prettyValue:"CAD10.00 Visa* Prepaid Card CAD",type:"INTEGRATION",fuelTankCode:null,globalRewardKey:"gc1"}]}}]}}]:[],childNodes:{data:[{data:{id:"5cae6b16cc540e209db45cb3",statuses:E[Math.floor(Math.random()*E.length)],type:"PCT_DISCOUNT",value:50},depth:1},{data:{id:"5cae6b16cc540e209db45cfa",statuses:E[Math.floor(Math.random()*E.length)],type:"CREDIT",value:1},depth:1}]}}};var R=e("sqm_referral_table",function(){function e(e){t(this,e);this.perPage=4;this.hideLabels=false;this.prevLabel="Prev";this.moreLabel="Next";this.showReferrer=false;this.hiddenColumns="0";this.smBreakpoint=599;this.mdBreakpoint=799;i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=r(N,null);var t=r(P,null);var n=d()?M(this,e,t):y(this,e,t),a=n.states,i=n.data,s=n.callbacks,l=n.elements;v([this.showReferrer,this.perPage]);return r(p,{states:a,data:i,callbacks:s,elements:l})};return e}());function N(){return r("slot",{name:"empty"},r("sqm-empty",{"empty-state-image":"https://res.cloudinary.com/saasquatch/image/upload/v1644000223/squatch-assets/empty_referral2.png","empty-state-header":"View your referral details","empty-state-text":"Refer a friend to view the status of your referrals and rewards earned"}))}function P(){return r("slot",{name:"loading"},r(A,null),r(A,null),r(A,null),r(A,null))}function A(){return r("sqm-table-row",null,r("sqm-table-cell",{colspan:5},r("sl-skeleton",null)))}function M(e,t,r){var n=s((function(e,t){return __assign(__assign({},e),t)}),{columns:[],rows:[],loading:false,page:0}),a=n[0],i=n[1];var u=h();var d=l((function(){var t;return((t=e.demoData)===null||t===void 0?void 0:t.mockData)||w(e.perPage)}),[e.perPage]);var f=m();function p(t){return __awaiter(this,void 0,void 0,(function(){var r,n,a,s,l,o,u,c,f,p,v,h,m,g;var _=this;return __generator(this,(function(y){switch(y.label){case 0:a=d===null||d===void 0?void 0:d.referredByReferral;s=e.showReferrer&&!!((r=d===null||d===void 0?void 0:d.referredByReferral)===null||r===void 0?void 0:r.dateReferralStarted);if(s){n=d.data.slice(0,e.perPage-1)}else{n=d.data.slice(0,e.perPage)}l=t.filter((function(e){var t,r;return e.slot!=="loading"&&e.slot!=="empty"&&((t=e===null||e===void 0?void 0:e.firstElementChild)===null||t===void 0?void 0:t.getAttribute("slot"))!=="loading"&&((r=e===null||e===void 0?void 0:e.firstElementChild)===null||r===void 0?void 0:r.getAttribute("slot"))!=="empty"}));o=l===null||l===void 0?void 0:l.map((function(e,t){return __awaiter(_,void 0,void 0,(function(){var r,n,a;return __generator(this,(function(i){n=(r=e===null||e===void 0?void 0:e.firstElementChild)===null||r===void 0?void 0:r.getAttribute("slot");if(e.tagName==="RAISINS-PLOP-TARGET"&&n!=="loading"&&n!=="empty"){e.setAttribute("slot","column-"+t);e.style.position="absolute";a=e.firstElementChild.childNodes[1];a.innerHTML="+";a.style.lineHeight="20px";return[2,b(e,(function(){return e.renderLabel(t)}))]}return[2,b(e,(function(){return e.renderLabel()}))]}))}))}));if(!s)return[3,2];c=l===null||l===void 0?void 0:l.map((function(e){return __awaiter(_,void 0,void 0,(function(){return __generator(this,(function(t){return[2,b(e,(function t(){return e.renderCell(a,e)}))]}))}))}));return[4,Promise.all(c)];case 1:u=y.sent();y.label=2;case 2:f=n===null||n===void 0?void 0:n.map((function(e){return __awaiter(_,void 0,void 0,(function(){var t,r;var n=this;return __generator(this,(function(a){switch(a.label){case 0:t=l===null||l===void 0?void 0:l.map((function(t){return __awaiter(n,void 0,void 0,(function(){return __generator(this,(function(r){return[2,b(t,(function(){return t.renderCell(e,undefined)}))]}))}))}));return[4,Promise.all(t)];case 1:r=a.sent();return[2,r]}}))}))}));v=f;if(!v)return[3,4];h=[[u]];return[4,Promise.all(f)];case 3:v=__spreadArrays.apply(void 0,h.concat([y.sent()])).filter((function(e){return e}));y.label=4;case 4:p=v;i({rows:p});g=o;if(!g)return[3,6];return[4,Promise.all(o)];case 5:g=y.sent();y.label=6;case 6:m=g;i({columns:m,loading:false,page:0});return[2]}}))}))}o((function(){i({loading:true});(d===null||d===void 0?void 0:d.data)&&p(f)}),[d===null||d===void 0?void 0:d.data,f,u]);var v=c({states:{hasPrev:false,hasNext:false,loading:false,show:"rows"},callbacks:{prevPage:function(){return console.log("Prev")},nextPage:function(){return console.log("Next")}},data:{textOverrides:{showLabels:!e.hideLabels,prevLabel:e.prevLabel,moreLabel:e.moreLabel},hiddenColumns:e.hiddenColumns,referralData:[],mdBreakpoint:799,smBreakpoint:599},elements:{columns:a.columns,rows:a.rows,emptyElement:t,loadingElement:r}},e.demoData||{},{arrayMerge:function(e,t){return t}});return v}var S=e("sqm_referral_table_cell",function(){function e(e){t(this,e);this.ignored=true;i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){return r("div",{innerHTML:this.innerTemplate})};return e}());var k=e("sqm_referral_table_column",function(){function e(e){t(this,e);i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,r("sqm-referral-table-cell",{"inner-template":n(this).innerHTML})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,Promise.resolve(this.columnTitle)]}))}))};e.prototype.render=function(){v([this.columnTitle]);return r(a,{style:{display:"none"}},r("slot",null))};return e}());var B=e("sqm_referral_table_date_cell",function(){function e(e){t(this,e);this.ignored=true;this.locale="en";i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e;var t=!this.date?"-":(e=g.DateTime.fromMillis(this.date))===null||e===void 0?void 0:e.setLocale(T(this.locale)).toLocaleString(g.DateTime.DATE_MED);return t};return e}());var q=e("sqm_referral_table_date_column",function(){function e(e){t(this,e);this.columnTitle="Date converted";this.dateShown="dateConverted";i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e,t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){return[2,r("sqm-referral-table-date-cell",{date:e[this.dateShown],locale:t})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnTitle]}))}))};e.prototype.renderReferrerCell=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,r("sqm-referral-table-date-cell",{date:e[this.dateShown]})]}))}))};e.prototype.render=function(){v([this.dateShown,this.columnTitle]);return r(a,{style:{display:"none"}})};return e}());var I=e("sqm_referral_table_rewards_cell",function(){function e(e){t(this,e);this.locale="en"}e.prototype.render=function(){var e=this;var t;u.locale=this.locale;var n={"@keyframes slideRight":{from:{opacity:0},to:{opacity:1}},DetailsContainer:{width:"100%",display:"flex","align-items":"center","justify-content":"space-between","margin-right":"var(--sl-spacing-small)","flex-wrap":"wrap"},Details:{"padding-bottom":"var(--sl-spacing-small)","max-width":"500px","&::part(header)":{padding:"var(--sl-spacing-x-small)",cursor:""+(this.hideDetails?"default":"pointer")},"&::part(content)":{padding:"var(--sl-spacing-x-small) var(--sl-spacing-medium)"},"&::part(base)":{opacity:"1"},"&::part(summary-icon)":{display:""+(this.hideDetails?"none":"flex")},"&::part(summary-icon[open])":{transform:"rotate(-90deg)",background:"red"}},BadgeContainer:{"& > :not(:last-child)":{"margin-right":"var(--sl-spacing-x-small)"}},BoldText:{"font-weight":"var(--sl-font-weight-semibold)"},StatusBadge:{paddingLeft:"var(--sl-spacing-xxx-small)","&::part(base)":{textAlign:"center",maxWidth:"170px",whiteSpace:"pre-line"}},RedeemBadge:{paddingLeft:"var(--sl-spacing-xxx-small)","&::part(base)":{background:"var(--sl-color-blue-600)"}}};var a=f(n);var i=a.toString();var s=function(e){var t=["REDEEMED","CANCELLED","EXPIRED","PENDING","AVAILABLE"];if(e.length===1)return e[0];return t.find((function(t){return e.includes(t)&&t}))};var l=function(e){switch(e){case"REDEEMED":return"primary";case"EXPIRED":return"danger";case"CANCELLED":return"danger";case"PENDING":return"warning";case"AVAILABLE":return"success"}};var o=function(t){return g.DateTime.fromMillis(t).setLocale(T(e.locale)).toRelative().replace("in","").trim()};return(t=this.rewards)===null||t===void 0?void 0:t.map((function(t){var n=s(t.statuses);var d=l(n);var c=u.formatMessage({id:"statusShortMessage",defaultMessage:e.statusText},{status:n});var f=u.formatMessage({id:"statusLongMessage",defaultMessage:e.statusLongText},{status:n});return r("sl-details",{class:a.classes.Details,disabled:e.hideDetails},r("style",{type:"text/css"},i),r("div",{slot:"summary",class:a.classes.DetailsContainer},r(x,{type:"p"},r("span",{part:"sqm-cell-value",class:a.classes.BoldText},t.prettyValue)),r("div",{class:a.classes.BadgeContainer},n==="PENDING"&&t.dateScheduledFor?r("sl-badge",{class:d==="primary"?a.classes.RedeemBadge:a.classes.StatusBadge,type:d,pill:true},u.formatMessage({id:"pendingForText",defaultMessage:e.pendingForText},{status:c,date:o(t.dateScheduledFor)})):r("sl-badge",{class:d==="primary"?a.classes.RedeemBadge:a.classes.StatusBadge,type:d,pill:true},c),t.dateExpires&&n==="AVAILABLE"&&r("sl-badge",{class:d==="primary"?a.classes.RedeemBadge:a.classes.StatusBadge,type:"info",pill:true},e.expiringText," "+o(t.dateExpires)))),r("div",null,t.dateGiven&&r("div",null,r(x,{type:"p"},e.rewardReceivedText," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},g.DateTime.fromMillis(t.dateGiven).setLocale(T(e.locale)).toLocaleString(g.DateTime.DATE_MED)))),n==="EXPIRED"&&t.dateExpires&&r("div",null,r(x,{type:"p"},f," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},g.DateTime.fromMillis(t.dateExpires).setLocale(T(e.locale)).toLocaleString(g.DateTime.DATE_MED)))),n==="CANCELLED"&&t.dateCancelled&&r("div",null,r(x,{type:"p"},f," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},g.DateTime.fromMillis(t.dateCancelled).setLocale(T(e.locale)).toLocaleString(g.DateTime.DATE_MED)))),n==="PENDING"&&t.dateScheduledFor&&r("div",null,r(x,{type:"p"},f," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},g.DateTime.fromMillis(t.dateScheduledFor).setLocale(T(e.locale)).toLocaleString(g.DateTime.DATE_MED))))," ",n==="AVAILABLE"&&t.dateExpires&&r("div",null,r(x,{type:"p"},f," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},g.DateTime.fromMillis(t.dateExpires).setLocale(T(e.locale)).toLocaleString(g.DateTime.DATE_MED)))),t.fuelTankCode&&r("div",null,e.fuelTankText," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},t.fuelTankCode))))}))};return e}());var U=e("sqm_referral_table_rewards_column",function(){function e(e){t(this,e);this.columnTitle="Rewards";this.statusText="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }";this.statusLongText="{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} EXPIRED {Reward expired on} other {Not available} }";this.fuelTankText="Your code is";this.rewardReceivedText="Reward received on";this.expiringText="Expiring in";this.pendingForText="{status} for {date}";this.hideDetails=false;i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e,t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){return[2,r("sqm-referral-table-rewards-cell",{rewards:e.rewards,statusText:this.statusText,statusLongText:this.statusLongText,fuelTankText:this.fuelTankText,rewardReceivedText:this.rewardReceivedText,expiringText:this.expiringText,pendingForText:this.pendingForText,hideDetails:this.hideDetails,locale:t,exportparts:"sqm-cell-value"})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnTitle]}))}))};e.prototype.renderReferrerCell=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,r("sqm-referral-table-rewards-cell",{rewards:e.rewards,exportparts:"sqm-cell-value"})]}))}))};e.prototype.render=function(){v([this.columnTitle,this.statusText,this.statusLongText,this.fuelTankText,this.rewardReceivedText,this.expiringText,this.pendingForText,this.hideDetails]);return r(a,{style:{display:"none"}})};return e}());var j={Badge:{"&::part(base)":{fontSize:"var(--sl-font-size-small)",padding:"4px 8px",whiteSpace:"pre-line"}}};var G=f(j);var F=G.toString();var V=e("sqm_referral_table_status_cell",function(){function e(e){t(this,e)}e.prototype.render=function(){return r("div",null,r("style",{type:"text/css"},F),r("sl-badge",{pill:true,type:this.converted?"success":"warning",class:G.classes.Badge},this.statusText))};return e}());var O=e("sqm_referral_table_status_column",function(){function e(e){t(this,e);this.columnTitle="Status";this.convertedStatusText="Converted";this.inProgressStatusText="In Progress";i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(n){t=e.dateConverted?this.convertedStatusText:this.inProgressStatusText;return[2,r("sqm-referral-table-status-cell",{"status-text":t,converted:e.dateConverted?true:false})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnTitle]}))}))};e.prototype.renderReferrerCell=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(n){t=e.dateConverted?this.convertedStatusText:this.inProgressStatusText;return[2,r("sqm-referral-table-status-cell",{"status-text":t,converted:e.dateConverted?true:false})]}))}))};e.prototype.render=function(){v([this.columnTitle,this.convertedStatusText,this.inProgressStatusText]);return r(a,{style:{display:"none"}})};return e}());var X=e("sqm_referral_table_user_cell",function(){function e(e){t(this,e)}e.prototype.render=function(){return this.name};return e}());var H=e("sqm_referral_table_user_column",function(){function e(e){t(this,e);this.columnTitle="Customer";this.anonymousUser="Anonymous User";this.deletedUser="Deleted User";i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,a,i,s,l,o,u,d;return __generator(this,(function(c){if(!(e===null||e===void 0?void 0:e.referredUser)&&!(e===null||e===void 0?void 0:e.referrerUser)){d=this.deletedUser}else if(!((t=e===null||e===void 0?void 0:e.referredUser)===null||t===void 0?void 0:t.firstName)&&!((n=e===null||e===void 0?void 0:e.referredUser)===null||n===void 0?void 0:n.lastName)&&!((a=e===null||e===void 0?void 0:e.referrerUser)===null||a===void 0?void 0:a.firstName)&&!((i=e===null||e===void 0?void 0:e.referrerUser)===null||i===void 0?void 0:i.lastName)){d=this.anonymousUser}else if(e===null||e===void 0?void 0:e.referrerUser){d=((s=e===null||e===void 0?void 0:e.referrerUser)===null||s===void 0?void 0:s.firstName)+" "+((l=e===null||e===void 0?void 0:e.referrerUser)===null||l===void 0?void 0:l.lastName)}else{d=((o=e===null||e===void 0?void 0:e.referredUser)===null||o===void 0?void 0:o.firstName)+" "+((u=e===null||e===void 0?void 0:e.referredUser)===null||u===void 0?void 0:u.lastName)}return[2,r("sqm-referral-table-user-cell",{name:d})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnTitle]}))}))};e.prototype.renderReferrerCell=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,a,i,s;return __generator(this,(function(l){if(!e){s=this.deletedUser}else if(!((t=e===null||e===void 0?void 0:e.referrerUser)===null||t===void 0?void 0:t.firstName)&&!((n=e.referrerUser)===null||n===void 0?void 0:n.lastName)){s=this.anonymousUser}else{s=((a=e===null||e===void 0?void 0:e.referrerUser)===null||a===void 0?void 0:a.firstName)+" "+((i=e===null||e===void 0?void 0:e.referrerUser)===null||i===void 0?void 0:i.lastName)}return[2,r("sqm-referral-table-user-cell",{name:s})]}))}))};e.prototype.render=function(){v([this.deletedUser,this.anonymousUser,this.columnTitle]);return r(a,{style:{display:"none"}})};return e}())}}}));
|
|
1
|
+
var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,t,r,n){function a(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function s(e){try{o(n.next(e))}catch(e){i(e)}}function l(e){try{o(n["throw"](e))}catch(e){i(e)}}function o(e){e.done?r(e.value):a(e.value).then(s,l)}o((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(e){return function(t){return o([e,t])}}function o(s){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,a&&(i=s[0]&2?a["return"]:s[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,s[1])).done)return i;if(a=0,i)s=[s[0]&2,i.value];switch(s[0]){case 0:case 1:i=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;a=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){r.label=s[1];break}if(s[0]===6&&r.label<i[1]){r.label=i[1];i=s;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(s);break}if(i[2])r.ops.pop();r.trys.pop();continue}s=t.call(e,r)}catch(e){s=[6,e];a=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArrays=this&&this.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),a=0,t=0;t<r;t++)for(var i=arguments[t],s=0,l=i.length;s<l;s++,a++)n[a]=i[s];return n};System.register(["./p-ff17b3a4.system.js","./p-3cc28285.system.js","./p-5a739d01.system.js","./p-a3e28532.system.js","./p-4bd679a7.system.js","./p-f6934a55.system.js","./p-1a673057.system.js","./p-9165844e.system.js","./p-c0e7d16e.system.js","./p-c32a8733.system.js","./p-2b6c19e0.system.js","./p-ea04661e.system.js","./p-6333265f.system.js","./p-5cda74d1.system.js"],(function(e){"use strict";var t,r,n,a,i,s,l,o,u,d,c,f,p,v,h,m,g,_,y,b,T,x;return{setters:[function(e){t=e.r;r=e.h;n=e.g;a=e.c},function(e){i=e.m;s=e.i;l=e.u;o=e.f},function(e){u=e.i},function(e){d=e.i},function(e){c=e.c},function(){},function(e){f=e.c},function(e){p=e.G},function(e){v=e.a;h=e.u},function(e){m=e.u},function(e){g=e.l},function(e){_=e.a;y=e.u;b=e.t},function(e){T=e.l},function(e){x=e.T}],execute:function(){var w=function(e){if(e===void 0){e=4}var t=__spreadArrays(Array(e)).map((function(){return L()}));return{totalCount:6,count:e,referredByReferral:{dateConverted:null,dateReferralStarted:1643912659850,referrerUser:{firstName:"John",lastName:"Snow",rewards:[]}},data:t}};var E=[["AVAILABLE"],["PENDING"],["CANCELLED"],["EXPIRED"],["REDEEMED"]];var D=["Rajesh","Pierre","Ji-Ho","Chinua","Charleston","Sally","Gael","Jill","Jane","Khadija"];var C=["Smith","Parker","Kent","Chew","Stark","Banner","Jones","Odinson","Pym","Rogers"];var L=function(){return{id:"5cae6b0fcc540e209db45b53",referredUser:{id:"5cae6b0ce4b0d81c67b78e82",accountId:"SPX1MZBIPTFL3E1H",firstName:D[Math.floor(Math.random()*D.length)],lastName:C[Math.floor(Math.random()*C.length)],email:"example.uexwltgh@mailosaur.io",programGoals:[]},shareLinkUsed:null,referralCodeUsed:"JIMBONEUTRON2",moderationStatus:"PENDING",dateConverted:Math.floor(Math.random()*10)>=5?g.DateTime.now().minus({days:6}).toMillis():null,dateFraudChecksCompleted:null,dateModerated:1558730033306,dateModified:1554934543447,dateReferralEnded:null,dateReferralPaid:null,dateReferralStarted:g.DateTime.now().minus({days:8}).toMillis(),dateUserModified:null,programId:"sam-partner-test-2",program:{id:"sam-partner-test-2",name:"Partner Program 2.0"},rewards:Math.floor(Math.random()*10)>=5?[{id:"5cae6b16cc540e209db45cfa",type:"CREDIT",value:1,unit:"POINT",name:"Partner Reward",dateGiven:1554934550726,dateExpires:null,dateCancelled:null,dateRedeemed:1637004373582,dateScheduledFor:null,fuelTankCode:null,fuelTankType:null,currency:null,prettyValue:"1 Point",statuses:E[Math.floor(Math.random()*E.length)],globalRewardKey:null,programRewardKey:"partnerReward",meta:__assign({},_()),rewardRedemptionTransactions:{data:[{exchangedRewards:{data:[{prettyValue:"CAD10.00 Visa* Prepaid Card CAD",type:"INTEGRATION",fuelTankCode:null,globalRewardKey:"gc1"}]}}]}}]:[],childNodes:{data:[{data:{id:"5cae6b16cc540e209db45cb3",statuses:E[Math.floor(Math.random()*E.length)],type:"PCT_DISCOUNT",value:50},depth:1},{data:{id:"5cae6b16cc540e209db45cfa",statuses:E[Math.floor(Math.random()*E.length)],type:"CREDIT",value:1},depth:1}]}}};var R=e("sqm_referral_table",function(){function e(e){t(this,e);this.perPage=4;this.hideLabels=false;this.prevLabel="Prev";this.moreLabel="Next";this.showReferrer=false;this.hiddenColumns="0";this.smBreakpoint=599;this.mdBreakpoint=799;i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=r(N,null);var t=r(P,null);var n=d()?M(this,e,t):y(this,e,t),a=n.states,i=n.data,s=n.callbacks,l=n.elements;v([this.showReferrer,this.perPage]);return r(p,{states:a,data:i,callbacks:s,elements:l})};return e}());function N(){return r("slot",{name:"empty"},r("sqm-empty",{"empty-state-image":"https://res.cloudinary.com/saasquatch/image/upload/v1644000223/squatch-assets/empty_referral2.png","empty-state-header":"View your referral details","empty-state-text":"Refer a friend to view the status of your referrals and rewards earned"}))}function P(){return r("slot",{name:"loading"},r(A,null),r(A,null),r(A,null),r(A,null))}function A(){return r("sqm-table-row",null,r("sqm-table-cell",{colspan:5},r("sl-skeleton",null)))}function M(e,t,r){var n=s((function(e,t){return __assign(__assign({},e),t)}),{columns:[],rows:[],loading:false,page:0}),a=n[0],i=n[1];var u=h();var d=l((function(){var t;return((t=e.demoData)===null||t===void 0?void 0:t.mockData)||w(e.perPage)}),[e.perPage]);var f=m();function p(t){return __awaiter(this,void 0,void 0,(function(){var r,n,a,s,l,o,u,c,f,p,v,h,m,g;var _=this;return __generator(this,(function(y){switch(y.label){case 0:a=d===null||d===void 0?void 0:d.referredByReferral;s=e.showReferrer&&!!((r=d===null||d===void 0?void 0:d.referredByReferral)===null||r===void 0?void 0:r.dateReferralStarted);if(s){n=d.data.slice(0,e.perPage-1)}else{n=d.data.slice(0,e.perPage)}l=t.filter((function(e){var t,r;return e.slot!=="loading"&&e.slot!=="empty"&&((t=e===null||e===void 0?void 0:e.firstElementChild)===null||t===void 0?void 0:t.getAttribute("slot"))!=="loading"&&((r=e===null||e===void 0?void 0:e.firstElementChild)===null||r===void 0?void 0:r.getAttribute("slot"))!=="empty"}));o=l===null||l===void 0?void 0:l.map((function(e,t){return __awaiter(_,void 0,void 0,(function(){var r,n,a;return __generator(this,(function(i){n=(r=e===null||e===void 0?void 0:e.firstElementChild)===null||r===void 0?void 0:r.getAttribute("slot");if(e.tagName==="RAISINS-PLOP-TARGET"&&n!=="loading"&&n!=="empty"){e.setAttribute("slot","column-"+t);e.style.position="absolute";a=e.firstElementChild.childNodes[1];a.innerHTML="+";a.style.lineHeight="20px";return[2,b(e,(function(){return e.renderLabel(t)}))]}return[2,b(e,(function(){return e.renderLabel()}))]}))}))}));if(!s)return[3,2];c=l===null||l===void 0?void 0:l.map((function(e){return __awaiter(_,void 0,void 0,(function(){return __generator(this,(function(t){return[2,b(e,(function t(){return e.renderCell(a,e)}))]}))}))}));return[4,Promise.all(c)];case 1:u=y.sent();y.label=2;case 2:f=n===null||n===void 0?void 0:n.map((function(e){return __awaiter(_,void 0,void 0,(function(){var t,r;var n=this;return __generator(this,(function(a){switch(a.label){case 0:t=l===null||l===void 0?void 0:l.map((function(t){return __awaiter(n,void 0,void 0,(function(){return __generator(this,(function(r){return[2,b(t,(function(){return t.renderCell(e,undefined)}))]}))}))}));return[4,Promise.all(t)];case 1:r=a.sent();return[2,r]}}))}))}));v=f;if(!v)return[3,4];h=[[u]];return[4,Promise.all(f)];case 3:v=__spreadArrays.apply(void 0,h.concat([y.sent()])).filter((function(e){return e}));y.label=4;case 4:p=v;i({rows:p});g=o;if(!g)return[3,6];return[4,Promise.all(o)];case 5:g=y.sent();y.label=6;case 6:m=g;i({columns:m,loading:false,page:0});return[2]}}))}))}o((function(){i({loading:true});(d===null||d===void 0?void 0:d.data)&&p(f)}),[d===null||d===void 0?void 0:d.data,f,u]);var v=c({states:{hasPrev:false,hasNext:false,loading:false,show:"rows"},callbacks:{prevPage:function(){return console.log("Prev")},nextPage:function(){return console.log("Next")}},data:{textOverrides:{showLabels:!e.hideLabels,prevLabel:e.prevLabel,moreLabel:e.moreLabel},hiddenColumns:e.hiddenColumns,referralData:[],mdBreakpoint:799,smBreakpoint:599},elements:{columns:a.columns,rows:a.rows,emptyElement:t,loadingElement:r}},e.demoData||{},{arrayMerge:function(e,t){return t}});return v}var S=e("sqm_referral_table_cell",function(){function e(e){t(this,e);this.ignored=true;i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){return r("div",{innerHTML:this.innerTemplate})};return e}());var k=e("sqm_referral_table_column",function(){function e(e){t(this,e);i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,r("sqm-referral-table-cell",{"inner-template":n(this).innerHTML})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,Promise.resolve(this.columnTitle)]}))}))};e.prototype.render=function(){v([this.columnTitle]);return r(a,{style:{display:"none"}},r("slot",null))};return e}());var B=e("sqm_referral_table_date_cell",function(){function e(e){t(this,e);this.ignored=true;this.locale="en";i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e;var t=!this.date?"-":(e=g.DateTime.fromMillis(this.date))===null||e===void 0?void 0:e.setLocale(T(this.locale)).toLocaleString(g.DateTime.DATE_MED);return t};return e}());var q=e("sqm_referral_table_date_column",function(){function e(e){t(this,e);this.columnTitle="Date converted";this.dateShown="dateConverted";i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e,t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){return[2,r("sqm-referral-table-date-cell",{date:e[this.dateShown],locale:t})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnTitle]}))}))};e.prototype.renderReferrerCell=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,r("sqm-referral-table-date-cell",{date:e[this.dateShown]})]}))}))};e.prototype.render=function(){v([this.dateShown,this.columnTitle]);return r(a,{style:{display:"none"}})};return e}());var I=e("sqm_referral_table_rewards_cell",function(){function e(e){t(this,e);this.locale="en"}e.prototype.render=function(){var e=this;var t;u.locale=this.locale;var n={"@keyframes slideRight":{from:{opacity:0},to:{opacity:1}},DetailsContainer:{width:"100%",display:"flex","align-items":"center","justify-content":"space-between","margin-right":"var(--sl-spacing-small)","flex-wrap":"wrap"},Details:{"padding-bottom":"var(--sl-spacing-small)","max-width":"500px","&::part(header)":{padding:"var(--sl-spacing-x-small)",cursor:""+(this.hideDetails?"default":"pointer")},"&::part(content)":{padding:"var(--sl-spacing-x-small) var(--sl-spacing-medium)"},"&::part(base)":{opacity:"1"},"&::part(summary-icon)":{display:""+(this.hideDetails?"none":"flex")},"&::part(summary-icon[open])":{transform:"rotate(-90deg)",background:"red"}},BadgeContainer:{"& > :not(:last-child)":{"margin-right":"var(--sl-spacing-x-small)"}},BoldText:{"font-weight":"var(--sl-font-weight-semibold)"},StatusBadge:{paddingLeft:"var(--sl-spacing-xxx-small)","&::part(base)":{textAlign:"center",maxWidth:"170px",whiteSpace:"pre-line"}},RedeemBadge:{paddingLeft:"var(--sl-spacing-xxx-small)","&::part(base)":{background:"var(--sl-color-blue-600)"}}};var a=f(n);var i=a.toString();var s=function(e){var t=["REDEEMED","CANCELLED","EXPIRED","PENDING","AVAILABLE"];if(e.length===1)return e[0];return t.find((function(t){return e.includes(t)&&t}))};var l=function(e){switch(e){case"REDEEMED":return"primary";case"EXPIRED":return"danger";case"CANCELLED":return"danger";case"PENDING":return"warning";case"AVAILABLE":return"success"}};var o=function(t){return g.DateTime.fromMillis(t).setLocale(T(e.locale)).toRelative().replace("in","").trim()};return(t=this.rewards)===null||t===void 0?void 0:t.map((function(t){var n=s(t.statuses);var d=l(n);var c=u.formatMessage({id:"statusShortMessage",defaultMessage:e.statusText},{status:n});var f=u.formatMessage({id:"statusLongMessage",defaultMessage:e.statusLongText},{status:n});return r("sl-details",{class:a.classes.Details,disabled:e.hideDetails},r("style",{type:"text/css"},i),r("div",{slot:"summary",class:a.classes.DetailsContainer},r(x,{type:"p"},r("span",{part:"sqm-cell-value",class:a.classes.BoldText},t.prettyValue)),r("div",{class:a.classes.BadgeContainer},n==="PENDING"&&t.dateScheduledFor?r("sl-badge",{class:d==="primary"?a.classes.RedeemBadge:a.classes.StatusBadge,type:d,pill:true},u.formatMessage({id:"pendingForText",defaultMessage:e.pendingForText},{status:c,date:o(t.dateScheduledFor)})):r("sl-badge",{class:d==="primary"?a.classes.RedeemBadge:a.classes.StatusBadge,type:d,pill:true},c),t.dateExpires&&n==="AVAILABLE"&&r("sl-badge",{class:d==="primary"?a.classes.RedeemBadge:a.classes.StatusBadge,type:"info",pill:true},e.expiringText," "+o(t.dateExpires)))),r("div",null,t.dateGiven&&r("div",null,r(x,{type:"p"},e.rewardReceivedText," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},g.DateTime.fromMillis(t.dateGiven).setLocale(T(e.locale)).toLocaleString(g.DateTime.DATE_MED)))),n==="EXPIRED"&&t.dateExpires&&r("div",null,r(x,{type:"p"},f," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},g.DateTime.fromMillis(t.dateExpires).setLocale(T(e.locale)).toLocaleString(g.DateTime.DATE_MED)))),n==="CANCELLED"&&t.dateCancelled&&r("div",null,r(x,{type:"p"},f," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},g.DateTime.fromMillis(t.dateCancelled).setLocale(T(e.locale)).toLocaleString(g.DateTime.DATE_MED)))),n==="PENDING"&&t.dateScheduledFor&&r("div",null,r(x,{type:"p"},f," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},g.DateTime.fromMillis(t.dateScheduledFor).setLocale(T(e.locale)).toLocaleString(g.DateTime.DATE_MED))))," ",n==="AVAILABLE"&&t.dateExpires&&r("div",null,r(x,{type:"p"},f," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},g.DateTime.fromMillis(t.dateExpires).setLocale(T(e.locale)).toLocaleString(g.DateTime.DATE_MED)))),t.fuelTankCode&&r("div",null,e.fuelTankText," ",r("span",{class:a.classes.BoldText,part:"sqm-cell-value"},t.fuelTankCode))))}))};return e}());var U=e("sqm_referral_table_rewards_column",function(){function e(e){t(this,e);this.columnTitle="Rewards";this.statusText="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }";this.statusLongText="{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} EXPIRED {Reward expired on} other {Not available} }";this.fuelTankText="Your code is";this.rewardReceivedText="Reward received on";this.expiringText="Expiring in";this.pendingForText="{status} for {date}";this.hideDetails=false;i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e,t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){return[2,r("sqm-referral-table-rewards-cell",{rewards:e.rewards,statusText:this.statusText,statusLongText:this.statusLongText,fuelTankText:this.fuelTankText,rewardReceivedText:this.rewardReceivedText,expiringText:this.expiringText,pendingForText:this.pendingForText,hideDetails:this.hideDetails,locale:t,exportparts:"sqm-cell-value"})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnTitle]}))}))};e.prototype.renderReferrerCell=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,r("sqm-referral-table-rewards-cell",{rewards:e.rewards,exportparts:"sqm-cell-value"})]}))}))};e.prototype.render=function(){v([this.columnTitle,this.statusText,this.statusLongText,this.fuelTankText,this.rewardReceivedText,this.expiringText,this.pendingForText,this.hideDetails]);return r(a,{style:{display:"none"}})};return e}());var j={Badge:{"&::part(base)":{fontSize:"var(--sl-font-size-small)",padding:"4px 8px",whiteSpace:"pre-line"}}};var G=f(j);var F=G.toString();var V=e("sqm_referral_table_status_cell",function(){function e(e){t(this,e)}e.prototype.render=function(){return r("div",null,r("style",{type:"text/css"},F),r("sl-badge",{pill:true,type:this.converted?"success":"warning",class:G.classes.Badge},this.statusText))};return e}());var O=e("sqm_referral_table_status_column",function(){function e(e){t(this,e);this.columnTitle="Status";this.convertedStatusText="Converted";this.inProgressStatusText="In Progress";i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(n){t=e.dateConverted?this.convertedStatusText:this.inProgressStatusText;return[2,r("sqm-referral-table-status-cell",{"status-text":t,converted:e.dateConverted?true:false})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnTitle]}))}))};e.prototype.renderReferrerCell=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(n){t=e.dateConverted?this.convertedStatusText:this.inProgressStatusText;return[2,r("sqm-referral-table-status-cell",{"status-text":t,converted:e.dateConverted?true:false})]}))}))};e.prototype.render=function(){v([this.columnTitle,this.convertedStatusText,this.inProgressStatusText]);return r(a,{style:{display:"none"}})};return e}());var X=e("sqm_referral_table_user_cell",function(){function e(e){t(this,e)}e.prototype.render=function(){return this.name};return e}());var H=e("sqm_referral_table_user_column",function(){function e(e){t(this,e);this.columnTitle="Customer";this.anonymousUser="Anonymous User";this.deletedUser="Deleted User";i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,a,i,s,l,o,u,d;return __generator(this,(function(c){if(!(e===null||e===void 0?void 0:e.referredUser)&&!(e===null||e===void 0?void 0:e.referrerUser)){d=this.deletedUser}else if(!((t=e===null||e===void 0?void 0:e.referredUser)===null||t===void 0?void 0:t.firstName)&&!((n=e===null||e===void 0?void 0:e.referredUser)===null||n===void 0?void 0:n.lastName)&&!((a=e===null||e===void 0?void 0:e.referrerUser)===null||a===void 0?void 0:a.firstName)&&!((i=e===null||e===void 0?void 0:e.referrerUser)===null||i===void 0?void 0:i.lastName)){d=this.anonymousUser}else if(e===null||e===void 0?void 0:e.referrerUser){d=((s=e===null||e===void 0?void 0:e.referrerUser)===null||s===void 0?void 0:s.firstName)+" "+((l=e===null||e===void 0?void 0:e.referrerUser)===null||l===void 0?void 0:l.lastName)}else{d=((o=e===null||e===void 0?void 0:e.referredUser)===null||o===void 0?void 0:o.firstName)+" "+((u=e===null||e===void 0?void 0:e.referredUser)===null||u===void 0?void 0:u.lastName)}return[2,r("sqm-referral-table-user-cell",{name:d})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnTitle]}))}))};e.prototype.renderReferrerCell=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,a,i,s;return __generator(this,(function(l){if(!e){s=this.deletedUser}else if(!((t=e===null||e===void 0?void 0:e.referrerUser)===null||t===void 0?void 0:t.firstName)&&!((n=e.referrerUser)===null||n===void 0?void 0:n.lastName)){s=this.anonymousUser}else{s=((a=e===null||e===void 0?void 0:e.referrerUser)===null||a===void 0?void 0:a.firstName)+" "+((i=e===null||e===void 0?void 0:e.referrerUser)===null||i===void 0?void 0:i.lastName)}return[2,r("sqm-referral-table-user-cell",{name:s})]}))}))};e.prototype.render=function(){v([this.deletedUser,this.anonymousUser,this.columnTitle]);return r(a,{style:{display:"none"}})};return e}())}}}));
|