@saasquatch/mint-components 1.6.6-2 → 1.6.6-4
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-83dada69.js → ShadowViewAddon-af7d0c85.js} +368 -369
- package/dist/cjs/{global-a320ad05.js → global-b6c63e2b.js} +653 -653
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/mint-components.cjs.js +2 -2
- package/dist/cjs/sqm-big-stat_35.cjs.entry.js +246 -262
- package/dist/cjs/sqm-empty_5.cjs.entry.js +51 -51
- package/dist/cjs/{sqm-hero-view-7bb2383c.js → sqm-hero-view-ba78dcaf.js} +14 -14
- package/dist/cjs/sqm-hero.cjs.entry.js +1 -1
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +13 -13
- package/dist/cjs/{sqm-navigation-sidebar-view-4704aa73.js → sqm-navigation-sidebar-view-2da83d3b.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-5beae29c.js → sqm-portal-container-view-3215dce9.js} +4 -4
- package/dist/cjs/{sqm-portal-email-verification-view-04838e5c.js → sqm-portal-email-verification-view-751850fa.js} +9 -9
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-portal-footer-view-edb2fbe3.js → sqm-portal-footer-view-bec6e3bf.js} +11 -11
- package/dist/cjs/sqm-portal-footer.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-forgot-password-view-235733ea.js → sqm-portal-forgot-password-view-a3573ade.js} +8 -8
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-profile-view-11b2265b.js → sqm-portal-profile-view-d5a74b28.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-803a56be.js → sqm-portal-reset-password-view-a5d48909.js} +8 -8
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-verify-email-view-6741f5bd.js → sqm-portal-verify-email-view-9657cc0c.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-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 +740 -740
- package/dist/cjs/sqm-tabs.cjs.entry.js +4 -4
- package/dist/cjs/{sqm-text-span-view-c34577fa.js → sqm-text-span-view-1acdf7e9.js} +7 -7
- package/dist/cjs/sqm-text-span.cjs.entry.js +1 -1
- package/dist/cjs/{useReferralTable-df9fbb00.js → useReferralTable-d4bdac2c.js} +183 -183
- 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 +5 -5
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field-view.js +14 -14
- 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-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/sqm-reward-exchange-list-view.js +0 -1
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +5 -44
- 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 +5 -5
- 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/global/styles.js +653 -653
- package/dist/collection/global/styles.ts +729 -729
- package/dist/esm/{ShadowViewAddon-435ceccf.js → ShadowViewAddon-73ba6cda.js} +368 -369
- package/dist/esm/{global-09167b08.js → global-522b62b4.js} +653 -653
- package/dist/esm/loader.js +2 -2
- package/dist/esm/mint-components.js +2 -2
- package/dist/esm/sqm-big-stat_35.entry.js +246 -262
- package/dist/esm/sqm-empty_5.entry.js +51 -51
- package/dist/esm/{sqm-hero-view-2270b6d2.js → sqm-hero-view-67ab5ce7.js} +14 -14
- package/dist/esm/sqm-hero.entry.js +1 -1
- package/dist/esm/sqm-leaderboard-rank.entry.js +13 -13
- package/dist/esm/{sqm-navigation-sidebar-view-06a9d083.js → sqm-navigation-sidebar-view-74ad47d4.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-2307476f.js → sqm-portal-container-view-8e091565.js} +4 -4
- package/dist/esm/{sqm-portal-email-verification-view-bf3b54d7.js → sqm-portal-email-verification-view-b4818826.js} +9 -9
- package/dist/esm/sqm-portal-email-verification.entry.js +3 -3
- package/dist/esm/{sqm-portal-footer-view-f660d387.js → sqm-portal-footer-view-4ed2ee6a.js} +11 -11
- package/dist/esm/sqm-portal-footer.entry.js +2 -2
- package/dist/esm/{sqm-portal-forgot-password-view-5bcdabac.js → sqm-portal-forgot-password-view-37bafb1c.js} +8 -8
- package/dist/esm/sqm-portal-forgot-password.entry.js +2 -2
- package/dist/esm/{sqm-portal-profile-view-3d29c743.js → sqm-portal-profile-view-c28acea7.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-aebadea5.js → sqm-portal-reset-password-view-2b9da683.js} +8 -8
- package/dist/esm/sqm-portal-reset-password.entry.js +2 -2
- package/dist/esm/{sqm-portal-verify-email-view-4ba9cbb9.js → sqm-portal-verify-email-view-e3e39501.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-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 +740 -740
- package/dist/esm/sqm-tabs.entry.js +4 -4
- package/dist/esm/{sqm-text-span-view-f1cacc75.js → sqm-text-span-view-b03a3c6d.js} +7 -7
- package/dist/esm/sqm-text-span.entry.js +1 -1
- package/dist/esm/{useReferralTable-4e24f8b2.js → useReferralTable-e629af05.js} +183 -183
- package/dist/esm-es5/{ShadowViewAddon-435ceccf.js → ShadowViewAddon-73ba6cda.js} +1 -1
- package/dist/esm-es5/{global-09167b08.js → global-522b62b4.js} +0 -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_35.entry.js +1 -1
- package/dist/esm-es5/sqm-empty_5.entry.js +1 -1
- package/dist/esm-es5/{sqm-hero-view-2270b6d2.js → sqm-hero-view-67ab5ce7.js} +0 -0
- 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-view-06a9d083.js → sqm-navigation-sidebar-view-74ad47d4.js} +0 -0
- package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-container-view-2307476f.js → sqm-portal-container-view-8e091565.js} +0 -0
- package/dist/esm-es5/{sqm-portal-email-verification-view-bf3b54d7.js → sqm-portal-email-verification-view-b4818826.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-footer-view-f660d387.js → sqm-portal-footer-view-4ed2ee6a.js} +1 -1
- package/dist/esm-es5/sqm-portal-footer.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-forgot-password-view-5bcdabac.js → sqm-portal-forgot-password-view-37bafb1c.js} +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-3d29c743.js → sqm-portal-profile-view-c28acea7.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-aebadea5.js → sqm-portal-reset-password-view-2b9da683.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 → sqm-portal-verify-email-view-e3e39501.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-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-view-f1cacc75.js → sqm-text-span-view-b03a3c6d.js} +0 -0
- package/dist/esm-es5/sqm-text-span.entry.js +1 -1
- package/dist/esm-es5/{useReferralTable-4e24f8b2.js → useReferralTable-e629af05.js} +0 -0
- 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-f1d2f26b.system.entry.js → p-012102e9.system.entry.js} +1 -1
- package/dist/mint-components/{p-d0dc8883.entry.js → p-02d89393.entry.js} +1 -1
- package/dist/mint-components/{p-9b732bf2.entry.js → p-0b3a7986.entry.js} +2 -2
- package/dist/mint-components/{p-2785b5cb.entry.js → p-0c564965.entry.js} +1 -1
- package/dist/mint-components/{p-7b1191c0.entry.js → p-0edfc573.entry.js} +2 -2
- package/dist/mint-components/{p-45374f45.system.js → p-10122db1.system.js} +0 -0
- package/dist/mint-components/{p-91dee224.system.js → p-143e7a08.system.js} +1 -1
- package/dist/mint-components/{p-4c86095b.js → p-1555c1e9.js} +0 -0
- package/dist/mint-components/{p-2f8e0a8a.js → p-22176b92.js} +1 -1
- package/dist/mint-components/{p-d8973a10.entry.js → p-23370096.entry.js} +2 -2
- package/dist/mint-components/p-23a9da5f.system.entry.js +1 -0
- package/dist/mint-components/{p-ad5127e6.js → p-28b10528.js} +0 -0
- package/dist/mint-components/{p-d4d86e2c.system.entry.js → p-2972f75d.system.entry.js} +1 -1
- package/dist/mint-components/{p-4d322f3b.system.js → p-2b2415cc.system.js} +1 -1
- package/dist/mint-components/{p-5fb4fe4a.js → p-2bfa2da4.js} +0 -0
- package/dist/mint-components/{p-22e99881.js → p-2cb26cd1.js} +1 -1
- package/dist/mint-components/{p-6f26a8d4.entry.js → p-30b245d6.entry.js} +2 -2
- package/dist/mint-components/{p-20db0649.entry.js → p-340799ce.entry.js} +1 -1
- package/dist/mint-components/{p-6ccbff10.system.entry.js → p-4174b16b.system.entry.js} +1 -1
- package/dist/mint-components/{p-726abf9f.system.entry.js → p-4439f24b.system.entry.js} +1 -1
- package/dist/mint-components/{p-b2705143.system.js → p-48e68efc.system.js} +0 -0
- package/dist/mint-components/{p-2526419e.system.entry.js → p-4963f7da.system.entry.js} +1 -1
- package/dist/mint-components/{p-b82d30b8.system.entry.js → p-4b172d2d.system.entry.js} +1 -1
- package/dist/mint-components/{p-cc0b14d3.entry.js → p-51932259.entry.js} +1 -1
- package/dist/mint-components/{p-23840628.system.js → p-5218f2a6.system.js} +0 -0
- package/dist/mint-components/{p-d3f41a3d.entry.js → p-5378fb23.entry.js} +6 -6
- package/dist/mint-components/{p-af16faae.system.js → p-593ef76e.system.js} +0 -0
- package/dist/mint-components/{p-a14585ab.system.entry.js → p-5c579816.system.entry.js} +1 -1
- package/dist/mint-components/{p-15561897.system.entry.js → p-662c6f3d.system.entry.js} +1 -1
- package/dist/mint-components/{p-4084ff88.entry.js → p-6cceb8cc.entry.js} +1 -1
- package/dist/mint-components/p-6d46c0cc.system.entry.js +1 -0
- package/dist/mint-components/{p-a99bbfe8.system.js → p-6df5ec12.system.js} +1 -1
- package/dist/mint-components/p-71eb37b0.entry.js +1 -0
- package/dist/mint-components/{p-5d9244de.js → p-74f936b0.js} +0 -0
- package/dist/mint-components/{p-fff53572.system.entry.js → p-750b7be8.system.entry.js} +1 -1
- package/dist/mint-components/p-80c485b3.system.entry.js +1 -0
- package/dist/mint-components/{p-b35375d1.entry.js → p-813f62c9.entry.js} +1 -1
- package/dist/mint-components/p-886fb137.system.entry.js +1 -0
- package/dist/mint-components/{p-66a393ef.js → p-8a6a0b6f.js} +1 -1
- package/dist/mint-components/{p-eab868c8.js → p-8fb0719c.js} +0 -0
- package/dist/mint-components/{p-c26d74f5.system.js → p-92248f2e.system.js} +1 -1
- package/dist/mint-components/{p-ddc27ca2.system.entry.js → p-92b752c7.system.entry.js} +1 -1
- package/dist/mint-components/{p-53922aac.entry.js → p-9a561fd3.entry.js} +1 -1
- package/dist/mint-components/{p-1f475722.js → p-a8857f0d.js} +2 -2
- package/dist/mint-components/{p-4a03d1d8.entry.js → p-b1ef1946.entry.js} +1 -1
- package/dist/mint-components/{p-68055b5c.system.entry.js → p-b3b4a2f8.system.entry.js} +1 -1
- package/dist/mint-components/{p-f4f5c6d2.system.entry.js → p-b4c84f38.system.entry.js} +1 -1
- package/dist/mint-components/{p-71e57c04.entry.js → p-bf265ac5.entry.js} +1 -1
- package/dist/mint-components/p-c0140ec4.system.js +1 -0
- package/dist/mint-components/{p-e018edb8.system.js → p-c06cd3cc.system.js} +0 -0
- package/dist/mint-components/{p-356b997d.js → p-c551f288.js} +0 -0
- package/dist/mint-components/{p-dd23d448.system.js → p-cd745ffb.system.js} +1 -1
- package/dist/mint-components/{p-99c241ef.js → p-d8c7e0db.js} +1 -1
- package/dist/mint-components/p-dafd6aaa.entry.js +9 -0
- package/dist/mint-components/{p-9fa8b46b.js → p-e8d36075.js} +1 -1
- package/dist/mint-components/{p-7ceff8de.system.js → p-e9489bfb.system.js} +0 -0
- package/dist/mint-components/{p-f434d6d7.js → p-ede07fec.js} +1 -1
- package/dist/mint-components/{p-6698f247.system.js → p-f3c3408a.system.js} +1 -1
- package/dist/mint-components/{p-38614c15.entry.js → p-fd5a8981.entry.js} +1 -1
- package/dist/mint-components/{p-cbe8e6d6.system.entry.js → p-ffd74e16.system.entry.js} +1 -1
- package/dist/mint-components/{p-7e748bbf.system.js → p-ffe8e20a.system.js} +1 -1
- package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list.d.ts +1 -5
- package/dist/types/components/sqm-reward-exchange-list/useRewardExchangeList.d.ts +0 -1
- package/dist/types/components.d.ts +72 -82
- 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 +102 -102
- package/readme.md +13 -13
- package/dist/mint-components/p-2141959d.system.entry.js +0 -1
- package/dist/mint-components/p-25fa79e8.system.entry.js +0 -1
- package/dist/mint-components/p-311e5ff8.entry.js +0 -9
- package/dist/mint-components/p-4e542f04.entry.js +0 -1
- package/dist/mint-components/p-b43a075f.system.js +0 -1
- package/dist/mint-components/p-c99d4f5a.system.entry.js +0 -1
- package/dist/mint-components/p-d0c1c6cf.system.entry.js +0 -1
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
6
|
const stencilHooks_module = require('./stencil-hooks.module-6fe43579.js');
|
|
7
|
-
require('./global-
|
|
7
|
+
require('./global-b6c63e2b.js');
|
|
8
8
|
require('./use-callback-5d15897d.js');
|
|
9
9
|
const index_module = require('./index.module-0b9b8891.js');
|
|
10
10
|
require('./cjs-1066ec21.js');
|
|
@@ -14,20 +14,20 @@ const GenericTableView = require('./GenericTableView-9271483b.js');
|
|
|
14
14
|
require('./useChildElements-6993ec39.js');
|
|
15
15
|
const luxon = require('./luxon-479fc825.js');
|
|
16
16
|
require('./utils-6847bc06.js');
|
|
17
|
-
require('./sqm-text-span-view-
|
|
17
|
+
require('./sqm-text-span-view-1acdf7e9.js');
|
|
18
18
|
const sqmAssetCardView = require('./sqm-asset-card-view-59c39ed2.js');
|
|
19
|
-
const sqmHeroView = require('./sqm-hero-view-
|
|
19
|
+
const sqmHeroView = require('./sqm-hero-view-ba78dcaf.js');
|
|
20
20
|
const sqmLeaderboardRankView = require('./sqm-leaderboard-rank-view-5a3d4a88.js');
|
|
21
|
-
const sqmNavigationSidebarView = require('./sqm-navigation-sidebar-view-
|
|
21
|
+
const sqmNavigationSidebarView = require('./sqm-navigation-sidebar-view-2da83d3b.js');
|
|
22
22
|
const sqmNavigationSidebarItemView = require('./sqm-navigation-sidebar-item-view-bf62d5e2.js');
|
|
23
|
-
const sqmPortalEmailVerificationView = require('./sqm-portal-email-verification-view-
|
|
24
|
-
const sqmPortalFooterView = require('./sqm-portal-footer-view-
|
|
25
|
-
const sqmPortalForgotPasswordView = require('./sqm-portal-forgot-password-view-
|
|
26
|
-
const sqmPortalProfileView = require('./sqm-portal-profile-view-
|
|
27
|
-
const sqmPortalResetPasswordView = require('./sqm-portal-reset-password-view-
|
|
28
|
-
const sqmPortalVerifyEmailView = require('./sqm-portal-verify-email-view-
|
|
29
|
-
const ShadowViewAddon = require('./ShadowViewAddon-
|
|
30
|
-
const sqmPortalContainerView = require('./sqm-portal-container-view-
|
|
23
|
+
const sqmPortalEmailVerificationView = require('./sqm-portal-email-verification-view-751850fa.js');
|
|
24
|
+
const sqmPortalFooterView = require('./sqm-portal-footer-view-bec6e3bf.js');
|
|
25
|
+
const sqmPortalForgotPasswordView = require('./sqm-portal-forgot-password-view-a3573ade.js');
|
|
26
|
+
const sqmPortalProfileView = require('./sqm-portal-profile-view-d5a74b28.js');
|
|
27
|
+
const sqmPortalResetPasswordView = require('./sqm-portal-reset-password-view-a5d48909.js');
|
|
28
|
+
const sqmPortalVerifyEmailView = require('./sqm-portal-verify-email-view-9657cc0c.js');
|
|
29
|
+
const ShadowViewAddon = require('./ShadowViewAddon-af7d0c85.js');
|
|
30
|
+
const sqmPortalContainerView = require('./sqm-portal-container-view-3215dce9.js');
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
33
|
* lodash (Custom Build) <https://lodash.com/>
|
|
@@ -1445,7 +1445,7 @@ var _createEmotion = createEmotion({
|
|
|
1445
1445
|
|
|
1446
1446
|
function i$1(){return (i$1=Object.assign||function(n){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(n[r]=o[r]);}return n}).apply(this,arguments)}function s(n,t){return t||(t=n.slice(0)),n.raw=t,n}var a$1,l,u,c$1=css(a$1||(a$1=s(['\n width: 100vw;\n height: 100vh;\n\n .story-book-outer-div {\n .story-div {\n font-family: "Arial", sans-serif;\n font-size: 12px;\n }\n padding-bottom: 500px;\n }\n\n .story-div {\n position: fixed;\n box-sizing: border-box;\n top: 0;\n width: 250px;\n height: 100vh;\n z-index: 999;\n overflow-y: scroll;\n background: white;\n margin-bottom: 32px;\n }\n\n .header {\n padding: 24px 0 16px 16px;\n margin-bottom: 24px;\n color: white;\n background: #333;\n cursor: pointer;\n\n h2 {\n letter-spacing: 3px;\n font-weight: 400;\n }\n }\n\n .parentStoryList {\n list-style: none;\n padding-left: 16px;\n\n summary {\n margin-bottom: 4px;\n }\n }\n .parentStory {\n cursor: pointer;\n }\n .parentStory.selected {\n font-weight: bold;\n }\n\n .subStory {\n font-size: 12px;\n cursor: pointer;\n line-height: 1.5em;\n margin-top: 4px;\n\n a {\n display: block;\n padding: 4px 4px 4px 16px;\n }\n }\n .subStory:hover {\n background-color: #eee;\n }\n .subStory.selected {\n background-color: lightgreen;\n }\n\n .component {\n padding: 24px 16px;\n }\n\n h4.group-header {\n margin: 8px 0;\n text-transform: uppercase;\n font-weight: 600;\n font-size: 14px;\n color: #575757;\n }\n\n .group-wrapper {\n margin-bottom: 24px;\n }\n\n .dynamic-display-wrapper {\n position: fixed;\n display: flex;\n flex-direction: column;\n bottom: 0;\n left: 100%;\n padding: 16px;\n z-index: 1000;\n background: white;\n transform: translateX(-100%);\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);\n\n & > :not(:first-child) {\n margin-top: 12px;\n }\n\n p {\n font-size: 12px;\n margin: 0;\n padding: 0;\n }\n\n .button-wrapper {\n display: flex;\n\n & > :not(:first-child) {\n margin-left: 12px;\n }\n }\n\n & button {\n border: 1px solid #eaeaea;\n background: white;\n border-radius: 4px;\n color: #777;\n padding: 4px 12px;\n justify-content: center;\n align-items: center;\n text-align: center;\n\n &.active {\n background: #555;\n border-color: #555;\n color: white;\n }\n }\n }\n'])));function p$1(n,t){var o,r=t.story.title.split("/"),e=r[1]?r[0]:"_";return i$1({},n,((o={})[e]=[].concat(n[e]||[],[{story:i$1({},t.story,{title:r[1]||r[0]}),subs:t.subs}]).sort(function(n,t){return n.story.title.localeCompare(t.story.title)}),o))}function d$1(n){return {story:n.default,subs:function(n,t){if(null==n)return {};var o,r,e={},i=Object.keys(n);for(r=0;r<i.length;r++)t.indexOf(o=i[r])>=0||(e[o]=n[o]);return e}(n,["default"])}}function f(a,f){var b=f.h,y=void 0===b?index.h:b,g=f.title,m=void 0===g?"Stencilbook":g,x=f.homepage,h=void 0===x?y("h3",null,"Select a story!"):x,v=f.addons,k=void 0===v?[]:v,w=stencilHooks_module.useMemo(function(){return a.map(d$1).reduce(p$1,{_:[]})},a),S=stencilHooks_module.useState(void 0),C=S[0],z=S[1],O=null==C?void 0:C.key,j=stencilHooks_module.useState("desktop"),T=j[0],_=j[1],B=stencilHooks_module.useState(!0),D=B[0],L=B[1],N=stencilHooks_module.useState(!1),q=N[0],A=N[1],M=function(){return y("div",{class:"dynamic-display-wrapper"},y("div",{class:"button-wrapper"},y("button",{class:"desktop"===T?"active":"",onClick:function(){return _("desktop")}},"Desktop"),y("button",{class:"tablet"===T?"active":"",onClick:function(){return _("tablet")}},"Tablet"),y("button",{class:"mobile"===T?"active":"",onClick:function(){return _("mobile")}},"Mobile")),y("p",null,"Note: Currently doesn't test breakpoints, use the native tester for now"),y("hr",null),y("button",{class:q?"active":"",onClick:function(){return A(function(n){return !n})}},"Toggle Dark Background"),y("hr",null),y("button",{class:D?"active":"",onClick:function(){return L(function(n){return !n})}},"Toggle Sidebar"))},P="mobile"===T?"375px":"tablet"===T?"768px":"1124px",V=css(l||(l=s(["\n max-width: ",";\n margin-left: ",";\n "])),P,D?"250px":"0px"),X=css(u||(u=s(["\n display: none;\n "])));document.body.style.backgroundColor=q?"#232323":"#fafafa";var E=function(n){var t=n.selected,o=k.reduce(function(n,o){return function(){return y(o,{story:i$1({},t)},y(n,null))}},null==t?void 0:t.story);return y(o,null)},F=function(){return y("div",{class:"story-book-outer-div"},y("div",{class:"story-div "+(D?"":X)},y("div",{class:"header",onClick:function(){z(void 0);}},y("h2",null,m)),y("ul",{class:"parentStoryList"},Object.keys(w).sort().map(function(n){return y("div",{class:"group-wrapper"},"_"!==n&&y("h4",{class:"group-header"},n),w[n].map(function(t){return y("li",{class:"parentStory"},y("details",{style:{marginBottom:"10px"}},y("summary",{style:{outline:"none"}},t.story.title),t.subs&&Object.keys(t.subs).map(function(o){var e=n+"/"+o,i=t.subs[o],s=i.storyName||lodash_startcase(o);return y("div",{class:"subStory "+(O===e?"selected":"")},y("a",{onClick:function(){return function(n,t,o,r){z({key:t,story:n,parent:o,label:r});}(i,e,t.story,s)}},s))})))}))}))),y(M,null),y("div",{class:"component "+V},!O&&h,O&&y("div",null,y("h3",null,C.label),y(E,{selected:C}))))};return {class:c$1,children:y(F,null),View:F,selected:C}}
|
|
1447
1447
|
|
|
1448
|
-
const scenario = "@author:noah\
|
|
1448
|
+
const scenario = "@author:noah\n@owner:noah\nFeature: Share Button\n\n The share button redirects users to a platform where they can share their referral link\n\n @motivating\n @ui\n Scenario Outline: Share button displays for various platforms\n Given the share button's medium prop is \"<medium>\"\n And the button's child is text saying \"BUTTON_TEXT\"\n When the share button is rendered\n Then the button has text \"BUTTON_TEXT\"\n And the button is <colour>\n And it displays an <icon> beside the text\n And clicking the button redirects to an appropriate link\n Examples:\n | medium | colour | icon |\n | facebook | #1877f2 | facebook logo |\n | twitter | #1da1f2 | twitter logo |\n | email | #666666 | envelope |\n | direct | brand colour | paper plane |\n | linkedin | #0077b5 | linkedIn logo |\n | sms | #34DA50 | chat bubble |\n | fbmessenger | #0084ff | messenger logo |\n | whatsapp | #25d366 | whatsapp logo |\n | linemessenger | #00B300 | linemessenger logo |\n | pinterest | #e60023 | pinterest logo |\n\n @minutia\n @ui\n Scenario Outline: Default icons can be overwritten\n Given a share button for any medium with <iconPropValue>\n When the share button is rendered\n Then it displays a <iconPropValue> instead of the share mediums default icon\n Examples:\n | iconPropValue |\n | basket |\n | bluetooth |\n | bandaid |\n\n @motivating\n @ui\n Scenario Outline: Default share medium colours can be overwritten\n Given a share button for any medium with <backgroundColourPropValue>\n When the share button is rendered\n Then the share button is <backgroundColourPropValue>\n Examples:\n | backgroundColourPropValue |\n | blue |\n | black |\n | green |\n\n @minutia\n @ui\n Scenario Outline: Share medium icons and text can be hidden\n Given a share button with <prop> <value>\n When the share button is rendered\n Then <element> is hidden\n Examples:\n | prop | value | element |\n | hideicon | true | icon |\n | hidetext | true | text |\n\n @minutia\n @ui\n Scenario Outline: Icons can be on either side of the text\n Given a share button with <iconslotPropValue>\n When the share button is rendered\n Then the icon is displayed to the <direction> of the text\n Examples:\n | iconslotPropValue | direction |\n | suffix | right |\n | prefix | left |\n | prefix | left |\n\n @minutia\n Scenario: Unsupported browsers hide native share buttons\n Given the share button's medium prop is \"direct\"\n And your browser does not support the Web Share API\n Then the share button is hidden\n\n @minutia\n Scenario: SMS share buttons are hidden on non Android and iOS devices\n Given the share button's medium is \"sms\"\n And the share button is being viewed on a device which is not an Android or iOS device\n Then the share button is hidden\n\n @motivating\n Scenario: Facebook share buttons uses SquatchAndroid sharing features\n Given the share button's medium is \"facebook\"\n And the share button is being viewed in a web view with the SquatchAndroid API\n And the Facebook app is available\n Then tapping the share button opens the phone's Facebook app\n And a share activity is opened with the share link prefilled\n\n @motivating\n Scenario: SquatchAndroid falls back to the Facebook website if no app is available\n Given the share button's medium is \"facebook\"\n And the share button is being viewed in a web view with the SquatchAndroid API\n And the Facebook app is not available\n Then tapping the share button opens the the Facebook mobile site in the device's browser\n And a share activity is opened with the share link prefilled\n\n @minutia\n Scenario: A supplied program ID is used if available\n Given the program id is supplied to the component in the \"programId\" prop\n Then the program ID in the \"programId\" prop is used to retrieve share links\n\n @minutia\n Scenario: The program ID is automatically fetched from context\n Given the program id is not supplied to the component in the \"programId\" prop\n Then the program ID is retrieved from context";
|
|
1449
1449
|
|
|
1450
1450
|
const ShareButton_stories = {
|
|
1451
1451
|
title: "Components/Share Button",
|
|
@@ -1563,7 +1563,7 @@ const ShareButton = /*#__PURE__*/Object.freeze({
|
|
|
1563
1563
|
AllMediums: AllMediums
|
|
1564
1564
|
});
|
|
1565
1565
|
|
|
1566
|
-
const scenario$1 = "@author:derek\
|
|
1566
|
+
const scenario$1 = "@author:derek\n@owner:derek\nFeature: Empty State\n\n The sqm-empty component acts as a universal template for the empty states that are used accross our mint components.\n\n @motivating\n @ui\n Scenario: The empty state displays an image, a header and description text\n Given a empty component with the following props\n | prop | value |\n | empty-state-image | https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_reward2.png |\n | empty-state-header | My Custom Empty State |\n | empty-state-text | Description about why this empty state is being shown! |\n And it is wrapped by a component with an \"empty\" slot\n When a user views a component using the empty state\n Then it is displayed in the \"empty\" slot\n And they see an image\n And below they see \"My Custom Empty State\"\n And below they see \"Description about why this empty state is being shown!\"\n And the images/text are centered aligned";
|
|
1567
1567
|
|
|
1568
1568
|
const EmptyState_stories = {
|
|
1569
1569
|
title: "Components/Empty State",
|
|
@@ -1623,7 +1623,7 @@ const EmptyState = /*#__PURE__*/Object.freeze({
|
|
|
1623
1623
|
SlottedIntoComponent: SlottedIntoComponent
|
|
1624
1624
|
});
|
|
1625
1625
|
|
|
1626
|
-
const scenario$2 = "@author:johan\
|
|
1626
|
+
const scenario$2 = "@author:johan\n@owner:johan\nFeature: Share Link\n\n The share link component is a box that allows users to see and copy their share link for a given program\n\n Background: Environment\n Given there is a valid program ID in the environment\n And there is a valid user ID and account ID in the environment\n\n @motivating\n Scenario: A Users sharelink can be copied to their clipboard\n Given tooltipText is \"hello tooltip\"\n When the component renders\n Then there is a textbox with the user's share link\n When the clipboard icon is clicked\n Then the link is copied to clipboard\n And a tooltip appears for ~1 second\n\n @minutia\n Scenario: Tooltip lifespan defaults to 2000\n Given the tooltip's lifespan is set to 2000\n And there is tooltip text\n When the component renders\n And the clipboard icon is clicked\n Then a tooltip appears for ~2 seconds\n\n @minutia\n Scenario: Demo\n Given isDemo() returns true\n Then the share link is \"https://www.example.com/sharelink/abc\"\n And the component won't be interactive\n And the tooltip is hidden\n\n @minutia\n Scenario: Program ID can be sourced from prop\n Given the programId prop is set to \"program-a\"\n And window.widgetIdent.programId is set to \"program-b\"\n When the component renders\n Then the share link is for \"program-a\"\n\n @minutia\n Scenario: Program ID can be sourced from window\n Given the programId prop is unset\n And window.widgetIdent.programId is set to \"program-b\"\n When the component renders\n Then the share link is for \"program-b\"\n\n @minutia\n Scenario: An analytic event is fired when a user copies their sharelink\n Given a user viewing the share link component\n And the component is rendered for \"program-a\"\n When they click to copy their link\n Then an \"USER_REFERRAL_PROGRAM_ENGAGEMENT_EVENT\" analytic event is fired\n And it is for \"program-a\"\n And it has share medium \"DIRECT\"\n";
|
|
1627
1627
|
|
|
1628
1628
|
const ShareLink_stories = {
|
|
1629
1629
|
title: "Components/Share Link",
|
|
@@ -1669,7 +1669,7 @@ const ShareLink = /*#__PURE__*/Object.freeze({
|
|
|
1669
1669
|
FullStack: FullStack
|
|
1670
1670
|
});
|
|
1671
1671
|
|
|
1672
|
-
const scenario$3 = "@author:sam\r\n@owner:sam\r\nFeature: Big Stat\r\n\r\n Big stat is a component for displaying a statistic as a large number with a label\r\n\r\n @minutia\r\n Scenario: Demo hook retrieves label using stat pattern\r\n Given isDemo() returns true\r\n And the component renders with props:\r\n | type |\r\n | /referralsCount |\r\n Then the label is: \"REFERRALS - COUNT\"\r\n And the value is: \"12345\"\r\n\r\n @minutia\r\n Scenario: Demo hook falls back to default label on invalid path\r\n Given isDemo() returns true\r\n And the component renders with props:\r\n | type |\r\n | a bad path |\r\n Then the label is: \"Demo Label\"\r\n And the value is: \"12345\"\r\n\r\n @motivating\r\n Scenario: Displays error on unrecognized path\r\n Given isDemo() returns false\r\n And the component renders with props:\r\n | type |\r\n | /(doesNotExistNopeNotHere) |\r\n Then the label is: \"BAD PROP TYPE\"\r\n And the value is: \"!!!\"\r\n\r\n @motivating\r\n Scenario Outline: Label displays correctly\r\n Given the type prop is set to <type>\r\n When the component renders\r\n Then the label is <label>\r\n Given isDemo() returns true\r\n When the component renders\r\n Then the label is <inferredLabel>\r\n Examples:\r\n | path | label | inferredLabel |\r\n | rewardsAssigned | Rewards Earned | Rewards Assigned |\r\n | rewardsRedeemed | Rewards Paid | Rewards Redeemed |\r\n | rewardsAvailable | Rewards Available | Rewards Available |\r\n | referralsCount | Referrals - Count | Referrals Count |\r\n | referralsMonth | Referrals - This Month | Referrals Month |\r\n | referralsWeek | Referrals - This Week | Referrals Week |\r\n | rewardsCount | Rewards - Count | Rewards Count |\r\n | rewardsMonth | Rewards - This Month | Rewards Month |\r\n | rewardsWeek | Rewards - This Week | Rewards Week |\r\n | rewardBalance | Balance - Credit Earned | Reward Balance |\r\n | customField | Custom Fields | Custom Fields |\r\n | programGoals | Program Goals | Program Goals |\r\n\r\n @motivating\r\n Scenario: Display user's credit\r\n Given isDemo() returns false\r\n And the user has earned 34 COFFEE from the program\r\n And the component renders with props:\r\n | type |\r\n | /rewardBalance/CREDIT/COFFEE/prettyValue |\r\n Then the label is: \"Balance - Credit Earned\"\r\n And the value is: \"34 COFFEE\"\r\n\r\n @minutia\r\n Scenario: Memoizes most recent query\r\n Given isDemo() returns false\r\n And the component's type prop is set to a variable named PATH\r\n And PATH is \"/referralsWeek\"\r\n Then the component shows a loading state before showing the result\r\n When the component reloads given some external reload\r\n Then the component doesn't show a loading state\r\n When PATH is set to \"/rewardsWeek\"\r\n Then the component shows a loading state before showing the result\r\n When PATH is set to \"/referralsWeek\"\r\n Then the component shows a loading state before showing the result\r\n\r\n @motivating\r\n Scenario: Stat has a loading state\r\n Given isDemo() returns false\r\n And the component's stat type prop is valid\r\n When the component renders\r\n Then The stat value displays \"...\"\r\n And when the stat query is completed\r\n And the stat value displays a value\r\n\r\n @motivating\r\n Scenario Outline: Program Goal stat requires metricType and goalId\r\n Given the statType prop is <statType>\r\n When the component renders\r\n Then the label is <label>\r\n And the stat value is <InvalidStatValue>\r\n Examples:\r\n | statType | label | InvalidStatValue |\r\n | /programGoals | BAD PROP TYPE | true |\r\n | /programGoals/count | BAD PROP TYPE | true |\r\n | /programGoals/conversionCount | BAD PROP TYPE | true |\r\n | /programGoals/My-Goal | BAD PROP TYPE | true |\r\n | /programGoals/count/My-Goal | Program Goals | false |\r\n | /programGoals/conversionCount/My-Goal | Program Goals | false |\r\n\r\n @motivating\r\n Scenario Outline: rewardCountFiltered supports many formats\r\n Given the statType begins with \"/rewardCountFiltered\"\r\n When the component renders with <statType>\r\n Then the stat <mayRender> a value\r\n Examples:\r\n | statType | mayRender |\r\n | /rewardsCountFiltered | renders |\r\n | /rewardsCountFiltered/COFFEE | doesn't render |\r\n | /rewardsCountFiltered/global | renders |\r\n | /rewardsCountFiltered/INTEGRATION | renders |\r\n | /rewardsCountFiltered/INTEGRATION/global | renders |\r\n | /rewardsCountFiltered/PCT_DISCOUNT | renders |\r\n | /rewardsCountFiltered/PCT_DISCOUNT/global | renders |\r\n | /rewardsCountFiltered/CREDIT | renders |\r\n | /rewardsCountFiltered/CREDIT/COFFEE | renders |\r\n | /rewardsCountFiltered/CREDIT/global | renders |\r\n | /rewardsCountFiltered/CREDIT/COFFEE/PENDING | renders |\r\n | /rewardsCountFiltered/CREDIT/COFFEE/AVAILABLE | renders |\r\n | /rewardsCountFiltered/CREDIT/CASH%2FUSD | renders |\r\n | /rewardsCountFiltered/CREDIT/CASH%2FUSD/global | renders |\r\n | /rewardsCountFiltered/CREDIT/CASH%2FUSD/PENDING | renders |\r\n | /rewardsCountFiltered/CREDIT/CASH%2FUSD/PENDING/global | renders |\r\n\r\n @motivating\r\n Scenario Outline: Program Goals and Reward units with currencies must be encoded\r\n Given the statType is <statType>\r\n When the stat is queried\r\n Then the stat is filtered by <decodedFilter>\r\n And a value <mayBe> rendered\r\n Examples:\r\n | statType | decodedFilter | may |\r\n | /rewardBalance/CREDIT/COFFEE | COFFEE | is |\r\n | /rewardBalance/CREDIT/CENTS | CENTS | is |\r\n | /rewardBalance/CREDIT/COFFEE%2FUSD | COFFEE/USD | is |\r\n | /rewardBalance/CREDIT/COFFEE/USD | COFFEE | is |\r\n | /rewardBalance/CREDIT/CASH | CASH | is |\r\n | /rewardBalance/CREDIT/CASH/USD | CASH | is |\r\n | /rewardBalance/CREDIT/CASH%2FUSD | CASH/USD | is |\r\n | /programGoals/count/My-Goal | My-Goal | is |\r\n | /programGoals/count/My-Goal/referrals | | isn't |\r\n | /programGoals/count/My-Goal%2Freferrals | My-Goal/referrals | is |\r\n\r\n @motivating\r\n Scenario Outline: User custom fields can be queried\r\n Given the StatType is <statType>\r\n When the stat is queried\r\n Then the value matches that of the users <customField>\r\n Examples:\r\n | statType | customField |\r\n | /customFields/videosShared | videosShared |\r\n | /customFields/totalPurchaseCount | totalPurchaseCount |\r\n\r\n @motivating\r\n Scenario Outline: Some stats can use a global value instead of filtered by program\r\n Given the stat <statName>\r\n Then the global value <mayBe> available\r\n Examples:\r\n | statName | mayBe |\r\n | referralsCount | isn't |\r\n | referralsMonth | isn't |\r\n | referralsWeek | isn't |\r\n | rewardsCount | is |\r\n | rewardsCountFiltered | is |\r\n | integrationRewardsCountFiltered | is |\r\n | rewardsMonth | is |\r\n | rewardsWeek | is |\r\n | rewardsAssigned | is |\r\n | rewardsRedeemed | is |\r\n | rewardsAvailable | is |\r\n | rewardBalance | is |\r\n\r\n @motivating\r\n Scenario Outline: referralsCount stat can be filtered by Converted and Started\r\n Given statType prop is <statType>\r\n Then the stat returned has a <filter>\r\n Examples:\r\n | statType | filter |\r\n | /referralsCount | { programId_eq: programId } |\r\n | /referralsCount/converted | { programId_eq: programId, dateConverted_exists: true } |\r\n | /referralsCount/started | { programId_eq: programId, dateConverted_exists: false } |\r\n\r\n @motivating\r\n Scenario: Program context is used by default to source the programId used for queries\r\n Given a valid \"statType\"\r\n And its not a global stat\r\n And the stat is loaded in an environment for \"program-a\"\r\n And the \"program-id\" prop is not used\r\n When the stat is queried\r\n Then the query is filtered by \"{ programId_eq: 'program-a' }\"\r\n And only results from \"program-a\" are returned\r\n\r\n @motivating\r\n Scenario Outline: ProgramId can be specified to overwrite the program context default\r\n Given a valid \"statType\"\r\n And its not a global stat\r\n And the \"program-id\" prop has <value>\r\n When the stat is queried\r\n Then the query has a <filter>\r\n And only results from <value> are returned\r\n Examples:\r\n | value | filter |\r\n | program-b | { programId_eq: \"program-b\" } |\r\n | program-c | { programId_eq: \"program-c\" } |";
|
|
1672
|
+
const scenario$3 = "@author:sam\n@owner:sam\nFeature: Big Stat\n\n Big stat is a component for displaying a statistic as a large number with a label\n\n @minutia\n Scenario: Demo hook retrieves label using stat pattern\n Given isDemo() returns true\n And the component renders with props:\n | type |\n | /referralsCount |\n Then the label is: \"REFERRALS - COUNT\"\n And the value is: \"12345\"\n\n @minutia\n Scenario: Demo hook falls back to default label on invalid path\n Given isDemo() returns true\n And the component renders with props:\n | type |\n | a bad path |\n Then the label is: \"Demo Label\"\n And the value is: \"12345\"\n\n @motivating\n Scenario: Displays error on unrecognized path\n Given isDemo() returns false\n And the component renders with props:\n | type |\n | /(doesNotExistNopeNotHere) |\n Then the label is: \"BAD PROP TYPE\"\n And the value is: \"!!!\"\n\n @motivating\n Scenario Outline: Label displays correctly\n Given the type prop is set to <type>\n When the component renders\n Then the label is <label>\n Given isDemo() returns true\n When the component renders\n Then the label is <inferredLabel>\n Examples:\n | path | label | inferredLabel |\n | rewardsAssigned | Rewards Earned | Rewards Assigned |\n | rewardsRedeemed | Rewards Paid | Rewards Redeemed |\n | rewardsAvailable | Rewards Available | Rewards Available |\n | referralsCount | Referrals - Count | Referrals Count |\n | referralsMonth | Referrals - This Month | Referrals Month |\n | referralsWeek | Referrals - This Week | Referrals Week |\n | rewardsCount | Rewards - Count | Rewards Count |\n | rewardsMonth | Rewards - This Month | Rewards Month |\n | rewardsWeek | Rewards - This Week | Rewards Week |\n | rewardBalance | Balance - Credit Earned | Reward Balance |\n | customField | Custom Fields | Custom Fields |\n | programGoals | Program Goals | Program Goals |\n\n @motivating\n Scenario: Display user's credit\n Given isDemo() returns false\n And the user has earned 34 COFFEE from the program\n And the component renders with props:\n | type |\n | /rewardBalance/CREDIT/COFFEE/prettyValue |\n Then the label is: \"Balance - Credit Earned\"\n And the value is: \"34 COFFEE\"\n\n @minutia\n Scenario: Memoizes most recent query\n Given isDemo() returns false\n And the component's type prop is set to a variable named PATH\n And PATH is \"/referralsWeek\"\n Then the component shows a loading state before showing the result\n When the component reloads given some external reload\n Then the component doesn't show a loading state\n When PATH is set to \"/rewardsWeek\"\n Then the component shows a loading state before showing the result\n When PATH is set to \"/referralsWeek\"\n Then the component shows a loading state before showing the result\n\n @motivating\n Scenario: Stat has a loading state\n Given isDemo() returns false\n And the component's stat type prop is valid\n When the component renders\n Then The stat value displays \"...\"\n And when the stat query is completed\n And the stat value displays a value\n\n @motivating\n Scenario Outline: Program Goal stat requires metricType and goalId\n Given the statType prop is <statType>\n When the component renders\n Then the label is <label>\n And the stat value is <InvalidStatValue>\n Examples:\n | statType | label | InvalidStatValue |\n | /programGoals | BAD PROP TYPE | true |\n | /programGoals/count | BAD PROP TYPE | true |\n | /programGoals/conversionCount | BAD PROP TYPE | true |\n | /programGoals/My-Goal | BAD PROP TYPE | true |\n | /programGoals/count/My-Goal | Program Goals | false |\n | /programGoals/conversionCount/My-Goal | Program Goals | false |\n\n @motivating\n Scenario Outline: rewardCountFiltered supports many formats\n Given the statType begins with \"/rewardCountFiltered\"\n When the component renders with <statType>\n Then the stat <mayRender> a value\n Examples:\n | statType | mayRender |\n | /rewardsCountFiltered | renders |\n | /rewardsCountFiltered/COFFEE | doesn't render |\n | /rewardsCountFiltered/global | renders |\n | /rewardsCountFiltered/INTEGRATION | renders |\n | /rewardsCountFiltered/INTEGRATION/global | renders |\n | /rewardsCountFiltered/PCT_DISCOUNT | renders |\n | /rewardsCountFiltered/PCT_DISCOUNT/global | renders |\n | /rewardsCountFiltered/CREDIT | renders |\n | /rewardsCountFiltered/CREDIT/COFFEE | renders |\n | /rewardsCountFiltered/CREDIT/global | renders |\n | /rewardsCountFiltered/CREDIT/COFFEE/PENDING | renders |\n | /rewardsCountFiltered/CREDIT/COFFEE/AVAILABLE | renders |\n | /rewardsCountFiltered/CREDIT/CASH%2FUSD | renders |\n | /rewardsCountFiltered/CREDIT/CASH%2FUSD/global | renders |\n | /rewardsCountFiltered/CREDIT/CASH%2FUSD/PENDING | renders |\n | /rewardsCountFiltered/CREDIT/CASH%2FUSD/PENDING/global | renders |\n\n @motivating\n Scenario Outline: Program Goals and Reward units with currencies must be encoded\n Given the statType is <statType>\n When the stat is queried\n Then the stat is filtered by <decodedFilter>\n And a value <mayBe> rendered\n Examples:\n | statType | decodedFilter | may |\n | /rewardBalance/CREDIT/COFFEE | COFFEE | is |\n | /rewardBalance/CREDIT/CENTS | CENTS | is |\n | /rewardBalance/CREDIT/COFFEE%2FUSD | COFFEE/USD | is |\n | /rewardBalance/CREDIT/COFFEE/USD | COFFEE | is |\n | /rewardBalance/CREDIT/CASH | CASH | is |\n | /rewardBalance/CREDIT/CASH/USD | CASH | is |\n | /rewardBalance/CREDIT/CASH%2FUSD | CASH/USD | is |\n | /programGoals/count/My-Goal | My-Goal | is |\n | /programGoals/count/My-Goal/referrals | | isn't |\n | /programGoals/count/My-Goal%2Freferrals | My-Goal/referrals | is |\n\n @motivating\n Scenario Outline: User custom fields can be queried\n Given the StatType is <statType>\n When the stat is queried\n Then the value matches that of the users <customField>\n Examples:\n | statType | customField |\n | /customFields/videosShared | videosShared |\n | /customFields/totalPurchaseCount | totalPurchaseCount |\n\n @motivating\n Scenario Outline: Some stats can use a global value instead of filtered by program\n Given the stat <statName>\n Then the global value <mayBe> available\n Examples:\n | statName | mayBe |\n | referralsCount | isn't |\n | referralsMonth | isn't |\n | referralsWeek | isn't |\n | rewardsCount | is |\n | rewardsCountFiltered | is |\n | integrationRewardsCountFiltered | is |\n | rewardsMonth | is |\n | rewardsWeek | is |\n | rewardsAssigned | is |\n | rewardsRedeemed | is |\n | rewardsAvailable | is |\n | rewardBalance | is |\n\n @motivating\n Scenario Outline: referralsCount stat can be filtered by Converted and Started\n Given statType prop is <statType>\n Then the stat returned has a <filter>\n Examples:\n | statType | filter |\n | /referralsCount | { programId_eq: programId } |\n | /referralsCount/converted | { programId_eq: programId, dateConverted_exists: true } |\n | /referralsCount/started | { programId_eq: programId, dateConverted_exists: false } |\n\n @motivating\n Scenario: Program context is used by default to source the programId used for queries\n Given a valid \"statType\"\n And its not a global stat\n And the stat is loaded in an environment for \"program-a\"\n And the \"program-id\" prop is not used\n When the stat is queried\n Then the query is filtered by \"{ programId_eq: 'program-a' }\"\n And only results from \"program-a\" are returned\n\n @motivating\n Scenario Outline: ProgramId can be specified to overwrite the program context default\n Given a valid \"statType\"\n And its not a global stat\n And the \"program-id\" prop has <value>\n When the stat is queried\n Then the query has a <filter>\n And only results from <value> are returned\n Examples:\n | value | filter |\n | program-b | { programId_eq: \"program-b\" } |\n | program-c | { programId_eq: \"program-c\" } |";
|
|
1673
1673
|
|
|
1674
1674
|
const BigStat_stories = {
|
|
1675
1675
|
title: "Components/Big Stat",
|
|
@@ -1771,7 +1771,7 @@ const BigStat = /*#__PURE__*/Object.freeze({
|
|
|
1771
1771
|
MultipleStats: MultipleStats
|
|
1772
1772
|
});
|
|
1773
1773
|
|
|
1774
|
-
const scenario$4 = "@owner:noah\
|
|
1774
|
+
const scenario$4 = "@owner:noah\n@author:noah\nFeature: Leaderboard\n\n\tThe leaderboard supports three main cases\n\t- Top Started Referrers\n\t- Top Converted Referrers\n\t- Top Point Earners\n\tTo display these different types of leaderboards it uses the backends pre-canned options.\n\tThe backend supports filtering on programId and interval, programId is sourced from program context.\n\n\tBackground: A user exists\n\t\tGiven a user\n\t\tAnd they are viewing the leaderboard\n\n\t@motivating\n\tScenario Outline: Two types of referrals leaderboards can be displayed\n\t\tGiven a leaderboard has prop \"leaderboard-type\" with <value>\n\t\tAnd there are started referrals on the tenant\n\t\tAnd there are started converted on the tenant\n\t\tWhen the user views the leaderboard\n\t\tThen they see the referral <referralType> leaderboard\n\t\tExamples:\n\t\t\t| value | referralType |\n\t\t\t| topStartedReferrers | started |\n\t\t\t| topConvertedReferrers | converted |\n\n\t@motivating\n\tScenario: The top point earners leaderboard can be displayed\n\t\tGiven a leaderboard has prop \"leaderboard-type\" with value \"topPointEarners\"\n\t\tAnd there are users with points\n\t\tWhen the user views the leaderboard\n\t\tThen they see the top point earners leaderboard\n\t\tAnd text values are displayed for point counts\n\n\t@minutia\n\tScenario Outline: Reward pretty value is used on the top point earners leaderboard\n\t\tGiven top point earners leaderboard\n\t\tAnd the \"POINT\" reward unit has a pretty value for the following locales\n\t\t\t| locale |\n\t\t\t| en |\n\t\t\t| fr |\n\t\t\t| tr |\n\t\tWhen the user views the leaderboard\n\t\tAnd they have <locale>\n\t\tThen they see the translated pretty value in the stat value column\n\n\t@motivating\n\tScenario Outline: Program Context is used by default to filter leaderboard results\n\t\tGiven a <leaderboardType> leaderboard loaded with program context for \"my-program\"\n\t\tWhen the user views the leaderboard\n\t\tThen they only see <results> from \"my-program\"\n\t\tExamples:\n\t\t\t| leaderboardType | results |\n\t\t\t| topStartedReferrers | started referrals |\n\t\t\t| topConvertedReferrers | converted referrals |\n\t\t\t| topPointEarners | points earned |\n\n\t@motivating\n\tScenario Outline: Program Id context can be overwritten with a prop\n\t\tGiven a <leaderboardType> leaderboard has prop \"program-Id\" with value \"my-test-program\"\n\t\tWhen the user views the leaderboard\n\t\tThen they only see <results> from \"my-test-program\"\n\t\tExamples:\n\t\t\t| leaderboardType | results |\n\t\t\t| topStartedReferrers | started referrals |\n\t\t\t| topConvertedReferrers | converted referrals |\n\t\t\t| topPointEarners | points earned |\n\n\t@motivating\n\tScenario Outline: Global leaderboards can be displayed by clearing program context\n\t\t#This is important for clients with use cases like StaffTracks global points leaderboard\n\t\t#This can also be done with a program section in a similar manner\n\t\tGiven a <leaderboardType> leaderboard has prop \"program-Id\" with value \"\"\n\t\tWhen the user views the leaderboard\n\t\tThen they see global <results>\n\t\tExamples:\n\t\t\t| leaderboardType | results |\n\t\t\t| topStartedReferrers | started referrals |\n\t\t\t| topConvertedReferrers | converted referrals |\n\t\t\t| topPointEarners | points earned |\n\n\t@motivating\n\tScenario: Leaderboard results are shown in descending order\n\t\tGiven there are leaderboard results\n\t\tWhen the user views the leaderboard\n\t\tThen they see up to the 10 top leaderboard results\n\t\tAnd leaderboard is in descending order\n\n\t@motivating\n\tScenario Outline: Leaderboard results can be filtered with a time interval\n\t\tGiven a <leaderboardType> leaderboard\n\t\tAnd it has prop \"interval\" with value \"2021-11-02T07:00:00.000Z/2021-11-07T07:00:00.000Z\"\n\t\tWhen the user views the leaderboard\n\t\tThen they only see <results> from within \"2021-11-02T07:00:00.000Z/2021-11-07T07:00:00.000Z\"\n\t\tExamples:\n\t\t\t| leaderboardType | results |\n\t\t\t| topStartedReferrers | started referrals |\n\t\t\t| topConvertedReferrers | converted referrals |\n\t\t\t| topPointEarners | points earned |\n\n\t@motivating\n\tScenario Outline: Leaderboard rank type can be configured\n\t\tGiven a leaderboard has prop \"rank-type\" with <value>\n\t\tWhen the user views the leaderboard\n\t\tThen their leaderboard rank is their <rank>\n\t\tExamples:\n\t\t\t| value | rank |\n\t\t\t| rowNumber | row number |\n\t\t\t| denseRank | dense rank |\n\t\t\t| rank | rank |\n\n\t@minutia\n\tScenario Outline: The max number of leaderboard rows displayed can be configured but defaults to 10\n\t\tGiven a leaderboard has prop \"max-rows\" with <value>\n\t\tAnd the leaderboard has <resultCount>\n\t\tWhen the user views the leaderboard\n\t\tThen they see <number> rows\n\t\tExamples:\n\t\t\t| value | resultCount | number |\n\t\t\t| | 10 | 10 |\n\t\t\t| 5 | 10 | 5 |\n\t\t\t| 3 | 1 | 1 |\n\t\t\t| 25 | 15 | 15 |\n\n\t@minutiae\n\t@ui\n\tScenario: Leaderboards with no results show an empty state\n\t\tGiven a leaderboard has no results\n\t\tWhen the user views the leaderboard\n\t\tThen an empty state is dislayed\n\t\tAnd they see an image of a leaderboard\n\t\tAnd below they see \"View your rank in the leaderboard\"\n\t\tAnd below they see \"Be the first to refer a friend and reach the top of the leaderboard\"\n\t\tAnd the text is center aligned\n\n\t@minutiae\n\t@ui\n\tScenario: A custom empty state can be provided\n\t\tGiven a leaderboard has no results\n\t\tWhen the user views the leaderboard\n\t\tThen the contents of the \"empty\" slot are displayed\n\n\t@minutiae\n\t@ui\n\tScenario: Leaderboard headings can be customized\n\t\tGiven a leaderboard\n\t\tAnd it has the following props\n\t\t\t| prop | value |\n\t\t\t| rankheading | Place |\n\t\t\t| usersheading | Customer |\n\t\t\t| statsheading | Referral Count |\n\t\t\t| show-rank | true |\n\t\tWhen the user views the leaderboard\n\t\tThen they see the following columns with headings\n\t\t\t| column | heading |\n\t\t\t| rank | Place |\n\t\t\t| user | Customer |\n\t\t\t| stat | Referral Count |\n\n\t@motivating\n\t@ui\n\tScenario Outline: Leaderboard rank can be hidden or shown\n\t\tGiven a leaderboard\n\t\tAnd it has prop \"show-rank\" with <propValue>\n\t\tWhen the user views the leaderboard\n\t\tThen they <maySee> the rank column\n\t\tExamples:\n\t\t\t| propValue | maySee |\n\t\t\t| true | see |\n\t\t\t| false | don't see |\n\t\t\t| | don't see |\n\n\t@motivating\n\t@ui\n\tScenario: Users in the top 10 of the leaderboard results see their leaderboard row highlighted\n\t\tGiven a user in the top 10 of the leaderboard results\n\t\tWhen they view the leaderboard\n\t\tThen they see the row with their name highlighted with brand colour\n\n\t@motivating\n\t@ui\n\tScenario Outline: Users not in the top 10 leaderboard results can see their progress at the bottom of the leaderboard\n\t\tGiven a user <mayHave> completed actions counted by the leaderboard\n\t\tAnd they are not in the top 10 leaderboard results\n\t\tAnd the leaderboard has prop \"show-user\" with <value>\n\t\tWhen they view the leaderboard\n\t\tThen they <maySee> \"...\" under the top 10 leaderboard results\n\t\tAnd under \"...\" they <maySee> a row highlighted with brand colour\n\t\tAnd they <maySee> their name\n\t\tAnd they <maySee> their leaderboard value\n\t\tAnd they <maySeeRank>\n\t\tExamples:\n\t\t\t| mayHave | value | maySee | maySeeRank |\n\t\t\t| has | true | see | see their rank |\n\t\t\t| hasn't | true | see | don't see their rank |\n\t\t\t| N/A | false | don't see | don't see their rank |\n\t\t\t| hasn't | | see | don't see their rank |\n\n\t@minutiae\n\tScenario: Users without names are displayed as an \"Anonymous User\"\n\t\tGiven a user\n\t\tAnd they do not have a first name\n\t\tAnd they do not have a last initial\n\t\tWhen they view the leaderboard\n\t\tThen they see the user displayed as \"Anonymous User\"\n\n\t@minutiae\n\tScenario Outline: If a user only has a first or last name, then only that is displayed\n\t\tGiven a user\n\t\tAnd they only have a <name>\n\t\tWhen they view the leaderboard\n\t\tThen they only see their <name>\n\t\tExamples:\n\t\t\t| name |\n\t\t\t| firstName |\n\t\t\t| lastName |";
|
|
1775
1775
|
|
|
1776
1776
|
const Leaderboard_stories = {
|
|
1777
1777
|
title: "Components/Leaderboard",
|
|
@@ -2291,68 +2291,68 @@ function createHookStory(hookStory) {
|
|
|
2291
2291
|
const Router_stories = {
|
|
2292
2292
|
title: "Tests/Router",
|
|
2293
2293
|
};
|
|
2294
|
-
const templates = `
|
|
2295
|
-
<template path="/foo"><h1>foo</h1>
|
|
2296
|
-
|
|
2297
|
-
<p>These elements don't produce a specific box by themselves. They are replaced by their pseudo-box and their child boxes. Please note that the CSS Display Level 3 spec defines how the contents value should affect "unusual elements" — elements that aren’t rendered purely by CSS box concepts such as replaced elements. See Appendix B: Effects of display: contents on Unusual Elements for more details.
|
|
2298
|
-
|
|
2299
|
-
Due to a bug in browsers this will currently remove the element from the accessibility tree — screen readers will not look at what's inside. See the Accessibility concerns section below for more details.</p>
|
|
2300
|
-
</template>
|
|
2301
|
-
<template path="/bar"><h2>bar</h2>
|
|
2302
|
-
|
|
2303
|
-
<p>Turns off the display of an element so that it has no effect on layout (the document is rendered as though the element did not exist). All descendant elements also have their display turned off.
|
|
2304
|
-
To have an element take up the space that it would normally take, but without actually rendering anything, use the visibility property instead.</p>
|
|
2305
|
-
</template>
|
|
2306
|
-
<template path="/baz/bang"><h3>baz/bang</h3>
|
|
2307
|
-
<pre>
|
|
2308
|
-
▄▄▄▄▄▄▄░▄▄▄▄▄▄▄░▄▄▄▄▄▄░▄▄▄▄▄
|
|
2309
|
-
░░▀███░░░░▀██░░░░██▀░░░░██░░
|
|
2310
|
-
░░░▀██░░░░░▀██░░▄█░░░░░▄█░░░
|
|
2311
|
-
░░░░███░░░░░▀██▄█░░░░░░█░░░░
|
|
2312
|
-
░░░░░███░░░░░▀██░░░░░░█▀░░░░
|
|
2313
|
-
░░░░░░███░░░░▄███░░░░█▀░░░░░
|
|
2314
|
-
░░░░░░░██▄░░▄▀░███░░█▀░░░░░░
|
|
2315
|
-
░░░░░░░▀██▄█▀░░░███▄▀░░░░░░░
|
|
2316
|
-
░░░░░░░░▀██▀░░░░░███░░░░░░░░
|
|
2317
|
-
░░░░░░░░░▀▀░░░░░░░▀░░░░░░░░░
|
|
2318
|
-
</pre>
|
|
2319
|
-
</template>
|
|
2320
|
-
<template path="/refer/:page"><h3>/refer/:page</h3>
|
|
2321
|
-
<pre>
|
|
2322
|
-
refer/:page
|
|
2323
|
-
</pre>
|
|
2324
|
-
</template>
|
|
2294
|
+
const templates = `
|
|
2295
|
+
<template path="/foo"><h1>foo</h1>
|
|
2296
|
+
|
|
2297
|
+
<p>These elements don't produce a specific box by themselves. They are replaced by their pseudo-box and their child boxes. Please note that the CSS Display Level 3 spec defines how the contents value should affect "unusual elements" — elements that aren’t rendered purely by CSS box concepts such as replaced elements. See Appendix B: Effects of display: contents on Unusual Elements for more details.
|
|
2298
|
+
|
|
2299
|
+
Due to a bug in browsers this will currently remove the element from the accessibility tree — screen readers will not look at what's inside. See the Accessibility concerns section below for more details.</p>
|
|
2300
|
+
</template>
|
|
2301
|
+
<template path="/bar"><h2>bar</h2>
|
|
2302
|
+
|
|
2303
|
+
<p>Turns off the display of an element so that it has no effect on layout (the document is rendered as though the element did not exist). All descendant elements also have their display turned off.
|
|
2304
|
+
To have an element take up the space that it would normally take, but without actually rendering anything, use the visibility property instead.</p>
|
|
2305
|
+
</template>
|
|
2306
|
+
<template path="/baz/bang"><h3>baz/bang</h3>
|
|
2307
|
+
<pre>
|
|
2308
|
+
▄▄▄▄▄▄▄░▄▄▄▄▄▄▄░▄▄▄▄▄▄░▄▄▄▄▄
|
|
2309
|
+
░░▀███░░░░▀██░░░░██▀░░░░██░░
|
|
2310
|
+
░░░▀██░░░░░▀██░░▄█░░░░░▄█░░░
|
|
2311
|
+
░░░░███░░░░░▀██▄█░░░░░░█░░░░
|
|
2312
|
+
░░░░░███░░░░░▀██░░░░░░█▀░░░░
|
|
2313
|
+
░░░░░░███░░░░▄███░░░░█▀░░░░░
|
|
2314
|
+
░░░░░░░██▄░░▄▀░███░░█▀░░░░░░
|
|
2315
|
+
░░░░░░░▀██▄█▀░░░███▄▀░░░░░░░
|
|
2316
|
+
░░░░░░░░▀██▀░░░░░███░░░░░░░░
|
|
2317
|
+
░░░░░░░░░▀▀░░░░░░░▀░░░░░░░░░
|
|
2318
|
+
</pre>
|
|
2319
|
+
</template>
|
|
2320
|
+
<template path="/refer/:page"><h3>/refer/:page</h3>
|
|
2321
|
+
<pre>
|
|
2322
|
+
refer/:page
|
|
2323
|
+
</pre>
|
|
2324
|
+
</template>
|
|
2325
2325
|
`;
|
|
2326
|
-
const routes = `
|
|
2327
|
-
<sqm-route path="/foo"><h1>foo</h1>
|
|
2328
|
-
|
|
2329
|
-
<p>These elements don't produce a specific box by themselves. They are replaced by their pseudo-box and their child boxes. Please note that the CSS Display Level 3 spec defines how the contents value should affect "unusual elements" — elements that aren’t rendered purely by CSS box concepts such as replaced elements. See Appendix B: Effects of display: contents on Unusual Elements for more details.
|
|
2330
|
-
|
|
2331
|
-
Due to a bug in browsers this will currently remove the element from the accessibility tree — screen readers will not look at what's inside. See the Accessibility concerns section below for more details.</p>
|
|
2332
|
-
</sqm-route>
|
|
2333
|
-
<sqm-route path="/bar"><h2>bar</h2>
|
|
2334
|
-
<p>Turns off the display of an element so that it has no effect on layout (the document is rendered as though the element did not exist). All descendant elements also have their display turned off.
|
|
2335
|
-
To have an element take up the space that it would normally take, but without actually rendering anything, use the visibility property instead.</p>
|
|
2336
|
-
</sqm-route>
|
|
2337
|
-
<sqm-route path="/baz/bang"><h3>baz/bang</h3>
|
|
2338
|
-
<pre>
|
|
2339
|
-
▄▄▄▄▄▄▄░▄▄▄▄▄▄▄░▄▄▄▄▄▄░▄▄▄▄▄
|
|
2340
|
-
░░▀███░░░░▀██░░░░██▀░░░░██░░
|
|
2341
|
-
░░░▀██░░░░░▀██░░▄█░░░░░▄█░░░
|
|
2342
|
-
░░░░███░░░░░▀██▄█░░░░░░█░░░░
|
|
2343
|
-
░░░░░███░░░░░▀██░░░░░░█▀░░░░
|
|
2344
|
-
░░░░░░███░░░░▄███░░░░█▀░░░░░
|
|
2345
|
-
░░░░░░░██▄░░▄▀░███░░█▀░░░░░░
|
|
2346
|
-
░░░░░░░▀██▄█▀░░░███▄▀░░░░░░░
|
|
2347
|
-
░░░░░░░░▀██▀░░░░░███░░░░░░░░
|
|
2348
|
-
░░░░░░░░░▀▀░░░░░░░▀░░░░░░░░░
|
|
2349
|
-
</pre>
|
|
2350
|
-
</sqm-route>
|
|
2351
|
-
<sqm-route path="/refer/:page"><h3>/refer/:page</h3>
|
|
2352
|
-
<pre>
|
|
2353
|
-
refer/:page
|
|
2354
|
-
</pre>
|
|
2355
|
-
</sqm-route>
|
|
2326
|
+
const routes = `
|
|
2327
|
+
<sqm-route path="/foo"><h1>foo</h1>
|
|
2328
|
+
|
|
2329
|
+
<p>These elements don't produce a specific box by themselves. They are replaced by their pseudo-box and their child boxes. Please note that the CSS Display Level 3 spec defines how the contents value should affect "unusual elements" — elements that aren’t rendered purely by CSS box concepts such as replaced elements. See Appendix B: Effects of display: contents on Unusual Elements for more details.
|
|
2330
|
+
|
|
2331
|
+
Due to a bug in browsers this will currently remove the element from the accessibility tree — screen readers will not look at what's inside. See the Accessibility concerns section below for more details.</p>
|
|
2332
|
+
</sqm-route>
|
|
2333
|
+
<sqm-route path="/bar"><h2>bar</h2>
|
|
2334
|
+
<p>Turns off the display of an element so that it has no effect on layout (the document is rendered as though the element did not exist). All descendant elements also have their display turned off.
|
|
2335
|
+
To have an element take up the space that it would normally take, but without actually rendering anything, use the visibility property instead.</p>
|
|
2336
|
+
</sqm-route>
|
|
2337
|
+
<sqm-route path="/baz/bang"><h3>baz/bang</h3>
|
|
2338
|
+
<pre>
|
|
2339
|
+
▄▄▄▄▄▄▄░▄▄▄▄▄▄▄░▄▄▄▄▄▄░▄▄▄▄▄
|
|
2340
|
+
░░▀███░░░░▀██░░░░██▀░░░░██░░
|
|
2341
|
+
░░░▀██░░░░░▀██░░▄█░░░░░▄█░░░
|
|
2342
|
+
░░░░███░░░░░▀██▄█░░░░░░█░░░░
|
|
2343
|
+
░░░░░███░░░░░▀██░░░░░░█▀░░░░
|
|
2344
|
+
░░░░░░███░░░░▄███░░░░█▀░░░░░
|
|
2345
|
+
░░░░░░░██▄░░▄▀░███░░█▀░░░░░░
|
|
2346
|
+
░░░░░░░▀██▄█▀░░░███▄▀░░░░░░░
|
|
2347
|
+
░░░░░░░░▀██▀░░░░░███░░░░░░░░
|
|
2348
|
+
░░░░░░░░░▀▀░░░░░░░▀░░░░░░░░░
|
|
2349
|
+
</pre>
|
|
2350
|
+
</sqm-route>
|
|
2351
|
+
<sqm-route path="/refer/:page"><h3>/refer/:page</h3>
|
|
2352
|
+
<pre>
|
|
2353
|
+
refer/:page
|
|
2354
|
+
</pre>
|
|
2355
|
+
</sqm-route>
|
|
2356
2356
|
`;
|
|
2357
2357
|
const TemplateNavigation = createHookStory(() => {
|
|
2358
2358
|
return (index.h("div", null,
|
|
@@ -2388,10 +2388,10 @@ const Styling = createHookStory(() => {
|
|
|
2388
2388
|
index.h("button", { onClick: () => index_module.fn.push("/foo") }, "/foo"),
|
|
2389
2389
|
index.h("hr", null),
|
|
2390
2390
|
index.h("div", { style: { display: "flex", justifyContent: "space-around" } },
|
|
2391
|
-
index.h("sqm-router", { innerHTML: `<template path="/">
|
|
2392
|
-
|
|
2393
|
-
<div>Column 1</div>
|
|
2394
|
-
<div>Column 2 </div>
|
|
2391
|
+
index.h("sqm-router", { innerHTML: `<template path="/">
|
|
2392
|
+
|
|
2393
|
+
<div>Column 1</div>
|
|
2394
|
+
<div>Column 2 </div>
|
|
2395
2395
|
</template>` }))));
|
|
2396
2396
|
});
|
|
2397
2397
|
function useTemplate(templateString) {
|
|
@@ -2406,12 +2406,12 @@ function useTemplate(templateString) {
|
|
|
2406
2406
|
callbacks: { setEditedTemplate, setPreviewTemplate, setPath },
|
|
2407
2407
|
};
|
|
2408
2408
|
}
|
|
2409
|
-
const defaultRouter = `
|
|
2410
|
-
<sqm-router>
|
|
2411
|
-
<template path="/">
|
|
2412
|
-
<div>hello world</div>
|
|
2413
|
-
</template>
|
|
2414
|
-
</sqm-router>
|
|
2409
|
+
const defaultRouter = `
|
|
2410
|
+
<sqm-router>
|
|
2411
|
+
<template path="/">
|
|
2412
|
+
<div>hello world</div>
|
|
2413
|
+
</template>
|
|
2414
|
+
</sqm-router>
|
|
2415
2415
|
`;
|
|
2416
2416
|
function TemplateView(props) {
|
|
2417
2417
|
const { states, callbacks } = props;
|
|
@@ -2438,7 +2438,7 @@ const Router = /*#__PURE__*/Object.freeze({
|
|
|
2438
2438
|
RouterPlayground: RouterPlayground
|
|
2439
2439
|
});
|
|
2440
2440
|
|
|
2441
|
-
const scenario$5 = "@owner:noah\
|
|
2441
|
+
const scenario$5 = "@owner:noah\n@author:noah\nFeature: Leaderboard Rank\n\n The leaderboard rank components displays the current users rank on the leaderboard.\n\n @minutiae\n Scenario: Users without a rank are shown a generic message\n Given a user has no rank\n Then the component displays a generic message\n And the message is the string from the prop \"unrankedText\"\n\n @motivating\n Scenario: Users with a rank are shown a message containing their rank\n Given a user has a valid rank\n And the prop \"rankText\" is an ICU message\n Then the ICU message is parsed to include the user's rank\n And the parsed message is displayed to the users\n\n @motivating\n Scenario Outline: Ranks from any of the three standard leaderboards can be displayed\n Given a leaderboard rank component with <leaderboardType>\n And a user has a valid rank\n When they view the leaderboard rank component\n Then they see their rank for <leaderboardType>\n Examples:\n | leaderboardType |\n | topStartedReferrers |\n | topConvertedReferrers |\n | topPointEarners |\n\n @motivating\n Scenario Outline: Leaderboard rank can be filtered with a time interval\n Given a leaderboard rank component with <leaderboardType>\n And it has prop \"interval\" with value \"2021-11-02T07:00:00.000Z/2021-11-07T07:00:00.000Z\"\n When they view the leaderboard rank component\n Then they see their rank for <results> from within \"2021-11-02T07:00:00.000Z/2021-11-07T07:00:00.000Z\"\n Examples:\n | leaderboardType | results |\n | topStartedReferrers | started referrals |\n | topConvertedReferrers | converted referrals |\n | topPointEarners | points earned |\n\n @motivating\n Scenario Outline: Program Context is used by default to filter leaderboard rank\n Given a <leaderboardType> leaderboard rank component loaded with program context for \"my-program\"\n When they view the leaderboard rank component\n Then they see their rank for <leaderboardType> from \"my-program\"\n Examples:\n | leaderboardType |\n | topStartedReferrers |\n | topConvertedReferrers |\n | topPointEarners |\n\n @motivating\n Scenario Outline: Program Id context can be overwritten with a prop\n Given a <leaderboardType> leaderboard rank component has prop \"program-Id\" with value \"my-test-program\"\n When they view the leaderboard rank component\n Then they see their rank for <leaderboardType> from \"my-test-program\"\n Examples:\n | leaderboardType | results |\n | topStartedReferrers | started referrals |\n | topConvertedReferrers | converted referrals |\n | topPointEarners | points earned |\n\n @motivating\n Scenario Outline: Global leaderboards ranks can be displayed by clearing program context\n #This can also be done with a program section in a similar manner\n Given a <leaderboardType> leaderboard rank component has prop \"program-Id\" with value \"\"\n When they view the leaderboard rank component\n Then they see global <results> rank\n Examples:\n | leaderboardType | results |\n | topStartedReferrers | started referrals |\n | topConvertedReferrers | converted referrals |\n | topPointEarners | points earned |\n\n @motivating\n Scenario: Rank calculation is controlled by the \"rankType\" prop\n Given the current user is User C\n And User C has <points>\n And User A has <points>\n And User B has <points>\n And the value of the \"rankType\" prop is <rankType>\n Then the rank of the current user is <rank>\n Examples:\n | user | points | rankType | rank |\n | User A | 5 | rowNumber | 3 |\n | User B | 10 | rowNumber | 1 |\n | User C | 10 | rowNumber | 2 |\n\n | user | points | rankType | rank |\n | User A | 10 | rank | 1 |\n | User B | 10 | rank | 1 |\n | User C | 5 | rank | 3 |\n\n | user | points | rankType | rank |\n | User A | 10 | denseRank | 1 |\n | User B | 10 | denseRank | 1 |\n | User C | 5 | denseRank | 2 |";
|
|
2442
2442
|
|
|
2443
2443
|
const LeaderboardRank_stories = {
|
|
2444
2444
|
title: "Components/Leaderboard Rank",
|
|
@@ -3236,14 +3236,14 @@ const FormMessage = /*#__PURE__*/Object.freeze({
|
|
|
3236
3236
|
FullStackSuccess: FullStackSuccess
|
|
3237
3237
|
});
|
|
3238
3238
|
|
|
3239
|
-
const EXCHANGE = index_module.dist.gql `
|
|
3240
|
-
mutation exchange($exchangeRewardInput: ExchangeRewardInput!) {
|
|
3241
|
-
exchangeReward(exchangeRewardInput: $exchangeRewardInput) {
|
|
3242
|
-
reward {
|
|
3243
|
-
id
|
|
3244
|
-
}
|
|
3245
|
-
}
|
|
3246
|
-
}
|
|
3239
|
+
const EXCHANGE = index_module.dist.gql `
|
|
3240
|
+
mutation exchange($exchangeRewardInput: ExchangeRewardInput!) {
|
|
3241
|
+
exchangeReward(exchangeRewardInput: $exchangeRewardInput) {
|
|
3242
|
+
reward {
|
|
3243
|
+
id
|
|
3244
|
+
}
|
|
3245
|
+
}
|
|
3246
|
+
}
|
|
3247
3247
|
`;
|
|
3248
3248
|
const UseRewardExchangeList_stories = {
|
|
3249
3249
|
title: "Hooks / useRewardExchange",
|
|
@@ -3842,11 +3842,11 @@ const NewPortal = /*#__PURE__*/Object.freeze({
|
|
|
3842
3842
|
Activity: Activity
|
|
3843
3843
|
});
|
|
3844
3844
|
|
|
3845
|
-
const referralWidget = "<sqm-brand brand-color=\"#4225c4\" brand-font=\"Nunito Sans\">\
|
|
3845
|
+
const referralWidget = "<sqm-brand brand-color=\"#4225c4\" brand-font=\"Nunito Sans\">\n <sqm-portal-container\n direction=\"column\"\n padding=\"small\"\n gap=\"xxx-large\"\n display=\"grid\"\n max-width=\"100%\"\n >\n <sqm-portal-container\n direction=\"column\"\n padding=\"none\"\n gap=\"xxx-large\"\n display=\"grid\"\n max-width=\"100%\"\n >\n <sqm-hero-image\n image-url=\"https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png\"\n header=\"MyCompany Rewards\"\n description=\"Refer a friend and earn up to $1200 in rewards\"\n layout=\"columns\"\n image-pos=\"right\"\n background-color=\"#F9F9F9\"\n >\n </sqm-hero-image>\n </sqm-portal-container>\n <sqm-portal-container\n direction=\"column\"\n padding=\"none\"\n gap=\"xxx-large\"\n max-width=\"770px\"\n center\n display=\"grid\"\n >\n <sqm-stat-container space=\"xxx-large\" display=\"flex\">\n <sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/referralsCount\"\n >\n <p>Referrals</p>\n </sqm-big-stat>\n <sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/integrationRewardsCountFiltered/AVAILABLE/global\"\n >\n <p>Giftcards</p>\n </sqm-big-stat>\n </sqm-stat-container>\n <sqm-portal-container\n gap=\"large\"\n direction=\"column\"\n display=\"grid\"\n max-width=\"100%\"\n padding=\"none\"\n >\n <sqm-titled-section\n text-align=\"center\"\n label-margin=\"xxx-small\"\n padding=\"none\"\n >\n <h3 slot=\"label\">Get rewarded when your friend uses our product</h3>\n </sqm-titled-section>\n <sqm-referral-card vertical-alignment=\"start\">\n <sqm-portal-container\n gap=\"large\"\n slot=\"left\"\n direction=\"column\"\n display=\"grid\"\n max-width=\"100%\"\n padding=\"none\"\n >\n <p>They’ll get a $50 credit towards a new account and you’ll get:</p>\n <sqm-timeline icon=\"circle\">\n <sqm-timeline-entry\n reward=\"$50\"\n unit=\"visa giftcard\"\n desc=\"Your friend purchases a Business plan\"\n icon=\"circle\"\n >\n </sqm-timeline-entry>\n <sqm-timeline-entry\n reward=\"$200\"\n unit=\"visa giftcard\"\n desc=\"Our sales team qualifies your friend as a good fit for our Enterprise plan\"\n icon=\"circle\"\n >\n </sqm-timeline-entry>\n <sqm-timeline-entry\n reward=\"$1000\"\n unit=\"visa giftcard\"\n desc=\"Your friend purchases an Enterprise plan\"\n icon=\"circle\"\n >\n </sqm-timeline-entry>\n </sqm-timeline>\n </sqm-portal-container>\n <sqm-portal-container\n gap=\"large\"\n slot=\"right\"\n direction=\"column\"\n display=\"grid\"\n max-width=\"100%\"\n padding=\"none\"\n >\n <p>>Choose how you want to share</p>\n <p><sub>Your unique referral link:</sub></p>\n <sqm-share-link\n tooltip-text=\"Copied to Clipboard\"\n tooltip-lifespan=\"1000\"\n >\n </sqm-share-link>\n <sqm-portal-container\n gap=\"x-small\"\n direction=\"column\"\n display=\"grid\"\n max-width=\"100%\"\n padding=\"none\"\n >\n <sqm-share-button\n medium=\"email\"\n icon-slot=\"prefix\"\n size=\"medium\"\n type=\"default\"\n >\n Share via email\n </sqm-share-button>\n <sqm-share-button\n medium=\"linkedin\"\n icon-slot=\"prefix\"\n size=\"medium\"\n type=\"default\"\n >\n Share on LinkedIn\n </sqm-share-button>\n <sqm-share-button\n medium=\"twitter\"\n icon-slot=\"prefix\"\n size=\"medium\"\n type=\"default\"\n >\n Tweet about us\n </sqm-share-button>\n </sqm-portal-container>\n </sqm-portal-container>\n </sqm-referral-card>\n </sqm-portal-container>\n <sqm-portal-container\n gap=\"large\"\n direction=\"column\"\n display=\"grid\"\n max-width=\"100%\"\n padding=\"none\"\n >\n <sqm-titled-section\n padding=\"none\"\n text-align=\"center\"\n label-margin=\"xx-small\"\n >\n <h3 slot=\"label\">Referral History</h3>\n </sqm-titled-section>\n <sqm-referral-table\n per-page=\"4\"\n hidden-columns=\"2\"\n more-label=\"Next\"\n prev-label=\"Prev\"\n sm-breakpoint=\"599\"\n md-breakpoint=\"799\"\n >\n <sqm-referral-table-user-column\n column-title=\"User\"\n anonymous-user=\"Anonymous User\"\n deleted-user=\"Deleted User\"\n >\n </sqm-referral-table-user-column>\n <sqm-referral-table-status-column\n column-title=\"Referral status\"\n converted-status-text=\"Converted\"\n in-progress-status-text=\"In Progress\"\n >\n </sqm-referral-table-status-column>\n <sqm-referral-table-rewards-column\n column-title=\"Rewards\"\n expiring-text=\"Expiring in\"\n fuel-tank-text=\"Your code is\"\n pending-for-text=\"{status} for {date}\"\n reward-received-text=\"Reward received on\"\n status-long-text=\"{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} EXPIRED {Reward expired on} other {Not available} }\"\n status-text=\"{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }\"\n >\n </sqm-referral-table-rewards-column>\n <sqm-referral-table-date-column\n column-title=\"Date referred\"\n date-shown=\"dateReferralStarted\"\n >\n </sqm-referral-table-date-column>\n <sqm-empty\n slot=\"empty\"\n empty-state-image=\"https://res.cloudinary.com/saasquatch/image/upload/v1644000223/squatch-assets/empty_referral2.png\"\n empty-state-header=\"View your referral details\"\n empty-state-text=\"Refer a friend to view the status of your referrals and rewards earned\"\n ></sqm-empty>\n </sqm-referral-table>\n </sqm-portal-container>\n <sqm-portal-footer\n support-email=\"support@example.com\"\n terms-link=\"https://example.com\"\n faq-link=\"https://example.com\"\n terms-text=\"Terms And Conditions\"\n faq-text=\"FAQ\"\n show-powered-by=\"true\"\n padding-bottom=\"none\"\n padding-left=\"none\"\n padding-right=\"none\"\n padding-top=\"none\"\n ></sqm-portal-footer>\n </sqm-portal-container>\n </sqm-portal-container>\n</sqm-brand>\n";
|
|
3846
3846
|
|
|
3847
|
-
const monoWidget = "<sqm-brand brand-color=\"#4225c4\" brand-font=\"Nunito Sans\">\r\n <sqm-portal-container\r\n direction=\"column\"\r\n padding=\"small\"\r\n gap=\"xxx-large\"\r\n display=\"grid\"\r\n max-width=\"100%\"\r\n >\r\n <sqm-portal-container\r\n direction=\"column\"\r\n padding=\"none\"\r\n gap=\"xxx-large\"\r\n display=\"grid\"\r\n max-width=\"100%\"\r\n >\r\n <sqm-hero-image\r\n image-url=\"https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png\"\r\n header=\"MyCompany Rewards\"\r\n description=\"Refer friends and complete tasks to earn rewards\"\r\n layout=\"columns\"\r\n image-pos=\"right\"\r\n background-color=\"#F9F9F9\"\r\n image-mobile-pos=\"top\"\r\n image-percentage=\"50\"\r\n padding-image=\"none\"\r\n padding-text=\"xxxx-large\"\r\n >\r\n </sqm-hero-image>\r\n </sqm-portal-container>\r\n <sqm-portal-container\r\n direction=\"column\"\r\n padding=\"none\"\r\n gap=\"xxx-large\"\r\n max-width=\"770px\"\r\n center\r\n display=\"grid\"\r\n >\r\n <sqm-stat-container space=\"xxx-large\" display=\"flex\">\r\n <sqm-big-stat\r\n flex-reverse=\"true\"\r\n alignment=\"left\"\r\n stat-type=\"/referralsCount\"\r\n >\r\n <p>Referrals</p>\r\n </sqm-big-stat>\r\n <sqm-big-stat\r\n flex-reverse=\"true\"\r\n alignment=\"left\"\r\n stat-type=\"/integrationRewardsCountFiltered/AVAILABLE/global\"\r\n >\r\n <p>Giftcards Earned</p>\r\n </sqm-big-stat>\r\n <sqm-big-stat\r\n flex-reverse=\"true\"\r\n alignment=\"left\"\r\n stat-type=\"/rewardBalance/CREDIT/POINT/value/global\"\r\n >\r\n <p>Points Balance</p>\r\n </sqm-big-stat>\r\n </sqm-stat-container>\r\n <sqm-portal-container\r\n gap=\"xx-large\"\r\n direction=\"column\"\r\n display=\"grid\"\r\n max-width=\"100%\"\r\n padding=\"none\"\r\n >\r\n <sqm-titled-section\r\n text-align=\"center\"\r\n label-margin=\"xxx-small\"\r\n padding=\"none\"\r\n >\r\n <h3 slot=\"label\">Share $50 with friends</h3>\r\n <p slot=\"content\">\r\n They’ll get a $50 credit towards a new account and you’ll get up to\r\n $1200\r\n </p>\r\n </sqm-titled-section>\r\n <sqm-referral-card vertical-alignment=\"start\">\r\n <sqm-portal-container\r\n gap=\"large\"\r\n slot=\"left\"\r\n direction=\"column\"\r\n display=\"grid\"\r\n max-width=\"100%\"\r\n padding=\"none\"\r\n >\r\n <p>They’ll get a $50 credit towards a new account and you’ll get:</p>\r\n <sqm-timeline icon=\"circle\">\r\n <sqm-timeline-entry\r\n reward=\"$50\"\r\n unit=\"visa giftcard\"\r\n desc=\"Your friend purchases a Business plan\"\r\n icon=\"circle\"\r\n >\r\n </sqm-timeline-entry>\r\n <sqm-timeline-entry\r\n reward=\"$200\"\r\n unit=\"visa giftcard\"\r\n desc=\"Our sales team qualifies your friend as a good fit for our Enterprise plan\"\r\n icon=\"circle\"\r\n >\r\n </sqm-timeline-entry>\r\n <sqm-timeline-entry\r\n reward=\"$1000\"\r\n unit=\"visa giftcard\"\r\n desc=\"Your friend purchases an Enterprise plan\"\r\n icon=\"circle\"\r\n >\r\n </sqm-timeline-entry>\r\n </sqm-timeline>\r\n </sqm-portal-container>\r\n <sqm-portal-container\r\n gap=\"large\"\r\n slot=\"right\"\r\n direction=\"column\"\r\n display=\"grid\"\r\n max-width=\"100%\"\r\n padding=\"none\"\r\n >\r\n <p>Choose how you want to share:</p>\r\n <p><sub>Your unique referral link:</sub></p>\r\n <sqm-share-link\r\n tooltip-text=\"Copied to Clipboard\"\r\n tooltip-lifespan=\"1000\"\r\n >\r\n </sqm-share-link>\r\n <sqm-portal-container\r\n gap=\"x-small\"\r\n direction=\"column\"\r\n display=\"grid\"\r\n max-width=\"100%\"\r\n padding=\"none\"\r\n >\r\n <sqm-share-button\r\n medium=\"email\"\r\n icon-slot=\"prefix\"\r\n size=\"medium\"\r\n type=\"default\"\r\n >\r\n Share via email\r\n </sqm-share-button>\r\n <sqm-share-button\r\n medium=\"linkedin\"\r\n icon-slot=\"prefix\"\r\n size=\"medium\"\r\n type=\"default\"\r\n >\r\n Share on LinkedIn\r\n </sqm-share-button>\r\n <sqm-share-button\r\n medium=\"twitter\"\r\n icon-slot=\"prefix\"\r\n size=\"medium\"\r\n type=\"default\"\r\n >\r\n Tweet about us\r\n </sqm-share-button>\r\n </sqm-portal-container>\r\n </sqm-portal-container>\r\n </sqm-referral-card>\r\n <sqm-portal-container\r\n gap=\"xx-large\"\r\n direction=\"column\"\r\n display=\"grid\"\r\n max-width=\"100%\"\r\n min-width=\"\"\r\n padding=\"none\"\r\n >\r\n <sqm-titled-section text-align=\"center\" label-margin=\"xxx-small\">\r\n <h3 slot=\"label\">Earn more rewards</h3>\r\n <p slot=\"content\">\r\n Get points while using our product. Use those points to redeem\r\n rewards like one free month of Enterprise or two plane tickets to\r\n anywhere in North America\r\n </p>\r\n </sqm-titled-section>\r\n <sqm-card-feed gap=\"24\" width=\"347\">\r\n <sqm-task-card\r\n reward-amount=\"20\"\r\n goal=\"1\"\r\n card-title=\"Complete a Survey\"\r\n description=\"Fill out our NPS survey and get 20 points for giving us honest feedback.\"\r\n button-text=\"Take survey\"\r\n reward-unit=\"Points\"\r\n completed-text=\"Completed {finite, select, 0 {{count, plural, =1 {{count} time} other {{count} times}}} other {{count}/{finite} times}}\"\r\n ended-message=\"Ended {endDate}\"\r\n expiry-message=\"Ends {endDate}\"\r\n finite=\"0\"\r\n starts-on-message=\"Starts {startDate}\"\r\n >\r\n </sqm-task-card>\r\n <sqm-task-card\r\n reward-amount=\"250\"\r\n goal=\"500\"\r\n show-progress-bar\r\n card-title=\"Spend $500\"\r\n description=\"Earn 250 points when you spend $500 or more.\"\r\n button-text=\"See plans\"\r\n completed-text=\"Completed {finite, select, 0 {{count, plural, =1 {{count} time} other {{count} times}}} other {{count}/{finite} times}}\"\r\n ended-message=\"Ended {endDate}\"\r\n expiry-message=\"Ends {endDate}\"\r\n progress-bar-unit=\"$\"\r\n finite=\"0\"\r\n reward-unit=\"Points\"\r\n starts-on-message=\"Starts {startDate}\"\r\n >\r\n </sqm-task-card>\r\n <sqm-task-card\r\n goal=\"1\"\r\n reward-amount=\"50\"\r\n card-title=\"Follow Us on Twitter\"\r\n description=\"Earn 50 points when you follow us on Twitter!\"\r\n button-text=\"Follow\"\r\n button-link=\"https://twitter.com/\"\r\n open-new-tab=\"true\"\r\n event-key=\"socialFollow\"\r\n completed-text=\"Completed {finite, select, 0 {{count, plural, =1 {{count} time} other {{count} times}}} other {{count}/{finite} times}}\"\r\n ended-message=\"Ended {endDate}\"\r\n expiry-message=\"Ends {endDate}\"\r\n finite=\"0\"\r\n reward-unit=\"Points\"\r\n starts-on-message=\"Starts {startDate}\"\r\n >\r\n </sqm-task-card>\r\n <sqm-task-card\r\n reward-amount=\"1\"\r\n reward-unit=\"Free Month\"\r\n goal=\"1\"\r\n card-title=\"Upgrade Your Plan\"\r\n description=\"Receive one free month for being a committed customer when you upgrade your plan.\"\r\n button-text=\"Upgrade\"\r\n completed-text=\"Completed {finite, select, 0 {{count, plural, =1 {{count} time} other {{count} times}}} other {{count}/{finite} times}}\"\r\n ended-message=\"Ended {endDate}\"\r\n expiry-message=\"Ends {endDate}\"\r\n open-new-tab=\"false\"\r\n finite=\"0\"\r\n starts-on-message=\"Starts {startDate}\"\r\n >\r\n </sqm-task-card>\r\n </sqm-card-feed>\r\n </sqm-portal-container>\r\n <sqm-tabs>\r\n <sqm-tab header=\"Referral history\">\r\n <sqm-referral-table\r\n per-page=\"4\"\r\n hidden-columns=\"2\"\r\n more-label=\"Next\"\r\n prev-label=\"Prev\"\r\n sm-breakpoint=\"599\"\r\n md-breakpoint=\"799\"\r\n >\r\n <sqm-referral-table-user-column\r\n column-title=\"User\"\r\n anonymous-user=\"Anonymous User\"\r\n deleted-user=\"Deleted User\"\r\n >\r\n </sqm-referral-table-user-column>\r\n <sqm-referral-table-status-column\r\n column-title=\"Referral status\"\r\n converted-status-text=\"Converted\"\r\n in-progress-status-text=\"In Progress\"\r\n >\r\n </sqm-referral-table-status-column>\r\n <sqm-referral-table-rewards-column\r\n column-title=\"Rewards\"\r\n expiring-text=\"Expiring in\"\r\n fuel-tank-text=\"Your code is\"\r\n pending-for-text=\"{status} for {date}\"\r\n reward-received-text=\"Reward received on\"\r\n status-long-text=\"{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} EXPIRED {Reward expired on} other {Not available} }\"\r\n status-text=\"{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }\"\r\n >\r\n </sqm-referral-table-rewards-column>\r\n <sqm-referral-table-date-column\r\n column-title=\"Date referred\"\r\n date-shown=\"dateReferralStarted\"\r\n >\r\n </sqm-referral-table-date-column>\r\n <sqm-empty\r\n slot=\"empty\"\r\n empty-state-image=\"https://res.cloudinary.com/saasquatch/image/upload/v1644000223/squatch-assets/empty_referral2.png\"\r\n empty-state-header=\"View your referral details\"\r\n empty-state-text=\"Refer a friend to view the status of your referrals and rewards earned\"\r\n >\r\n </sqm-empty>\r\n </sqm-referral-table>\r\n </sqm-tab>\r\n <sqm-tab header=\"Reward history\">\r\n <sqm-rewards-table\r\n per-page=\"4\"\r\n program-id=\"\"\r\n hidden-columns=\"0\"\r\n more-label=\"Next\"\r\n prev-label=\"Prev\"\r\n sm-breakpoint=\"599\"\r\n md-breakpoint=\"799\"\r\n >\r\n <sqm-rewards-table-reward-column\r\n available-text=\"{availableAmount} remaining\"\r\n column-title=\"Reward\"\r\n copy-text=\"Copied!\"\r\n redeemed-text=\"{redeemedAmount} redeemed\"\r\n >\r\n </sqm-rewards-table-reward-column>\r\n <sqm-rewards-table-source-column\r\n anonymous-user=\"Anonymous User\"\r\n column-title=\"Source\"\r\n deleted-user=\"Deleted User\"\r\n referral-text=\"{rewardSource, select, FRIEND_SIGNUP {Referral to} REFERRED {Referred by} other {}}\"\r\n reward-exchange-text=\"Reward Exchange\"\r\n reward-source-text=\"{rewardSource, select, MANUAL {Manual} AUTOMATED {{programName}} other {}}\"\r\n >\r\n </sqm-rewards-table-source-column>\r\n <sqm-rewards-table-status-column\r\n column-title=\"Status\"\r\n expiry-text=\"Expires on \"\r\n status-text=\"{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }\"\r\n >\r\n </sqm-rewards-table-status-column>\r\n <sqm-rewards-table-date-column\r\n column-title=\"Date received\"\r\n date-shown=\"dateGiven\"\r\n >\r\n </sqm-rewards-table-date-column>\r\n <sqm-empty\r\n slot=\"empty\"\r\n empty-state-image=\"https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_reward2.png\"\r\n empty-state-header=\"View your rewards\"\r\n empty-state-text=\"Refer friends and complete tasks to view the details of your rewards\"\r\n >\r\n </sqm-empty>\r\n </sqm-rewards-table>\r\n </sqm-tab>\r\n </sqm-tabs>\r\n </sqm-portal-container>\r\n <sqm-portal-footer\r\n support-email=\"support@example.com\"\r\n terms-link=\"https://example.com\"\r\n faq-link=\"https://example.com\"\r\n terms-text=\"Terms And Conditions\"\r\n faq-text=\"FAQ\"\r\n show-powered-by=\"true\"\r\n padding-bottom=\"none\"\r\n padding-left=\"none\"\r\n padding-right=\"none\"\r\n padding-top=\"none\"\r\n ></sqm-portal-footer>\r\n </sqm-portal-container>\r\n </sqm-portal-container>\r\n</sqm-brand>\r\n";
|
|
3847
|
+
const monoWidget = "<sqm-brand brand-color=\"#4225c4\" brand-font=\"Nunito Sans\">\n <sqm-portal-container\n direction=\"column\"\n padding=\"small\"\n gap=\"xxx-large\"\n display=\"grid\"\n max-width=\"100%\"\n >\n <sqm-portal-container\n direction=\"column\"\n padding=\"none\"\n gap=\"xxx-large\"\n display=\"grid\"\n max-width=\"100%\"\n >\n <sqm-hero-image\n image-url=\"https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png\"\n header=\"MyCompany Rewards\"\n description=\"Refer friends and complete tasks to earn rewards\"\n layout=\"columns\"\n image-pos=\"right\"\n background-color=\"#F9F9F9\"\n image-mobile-pos=\"top\"\n image-percentage=\"50\"\n padding-image=\"none\"\n padding-text=\"xxxx-large\"\n >\n </sqm-hero-image>\n </sqm-portal-container>\n <sqm-portal-container\n direction=\"column\"\n padding=\"none\"\n gap=\"xxx-large\"\n max-width=\"770px\"\n center\n display=\"grid\"\n >\n <sqm-stat-container space=\"xxx-large\" display=\"flex\">\n <sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/referralsCount\"\n >\n <p>Referrals</p>\n </sqm-big-stat>\n <sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/integrationRewardsCountFiltered/AVAILABLE/global\"\n >\n <p>Giftcards Earned</p>\n </sqm-big-stat>\n <sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/rewardBalance/CREDIT/POINT/value/global\"\n >\n <p>Points Balance</p>\n </sqm-big-stat>\n </sqm-stat-container>\n <sqm-portal-container\n gap=\"xx-large\"\n direction=\"column\"\n display=\"grid\"\n max-width=\"100%\"\n padding=\"none\"\n >\n <sqm-titled-section\n text-align=\"center\"\n label-margin=\"xxx-small\"\n padding=\"none\"\n >\n <h3 slot=\"label\">Share $50 with friends</h3>\n <p slot=\"content\">\n They’ll get a $50 credit towards a new account and you’ll get up to\n $1200\n </p>\n </sqm-titled-section>\n <sqm-referral-card vertical-alignment=\"start\">\n <sqm-portal-container\n gap=\"large\"\n slot=\"left\"\n direction=\"column\"\n display=\"grid\"\n max-width=\"100%\"\n padding=\"none\"\n >\n <p>They’ll get a $50 credit towards a new account and you’ll get:</p>\n <sqm-timeline icon=\"circle\">\n <sqm-timeline-entry\n reward=\"$50\"\n unit=\"visa giftcard\"\n desc=\"Your friend purchases a Business plan\"\n icon=\"circle\"\n >\n </sqm-timeline-entry>\n <sqm-timeline-entry\n reward=\"$200\"\n unit=\"visa giftcard\"\n desc=\"Our sales team qualifies your friend as a good fit for our Enterprise plan\"\n icon=\"circle\"\n >\n </sqm-timeline-entry>\n <sqm-timeline-entry\n reward=\"$1000\"\n unit=\"visa giftcard\"\n desc=\"Your friend purchases an Enterprise plan\"\n icon=\"circle\"\n >\n </sqm-timeline-entry>\n </sqm-timeline>\n </sqm-portal-container>\n <sqm-portal-container\n gap=\"large\"\n slot=\"right\"\n direction=\"column\"\n display=\"grid\"\n max-width=\"100%\"\n padding=\"none\"\n >\n <p>Choose how you want to share:</p>\n <p><sub>Your unique referral link:</sub></p>\n <sqm-share-link\n tooltip-text=\"Copied to Clipboard\"\n tooltip-lifespan=\"1000\"\n >\n </sqm-share-link>\n <sqm-portal-container\n gap=\"x-small\"\n direction=\"column\"\n display=\"grid\"\n max-width=\"100%\"\n padding=\"none\"\n >\n <sqm-share-button\n medium=\"email\"\n icon-slot=\"prefix\"\n size=\"medium\"\n type=\"default\"\n >\n Share via email\n </sqm-share-button>\n <sqm-share-button\n medium=\"linkedin\"\n icon-slot=\"prefix\"\n size=\"medium\"\n type=\"default\"\n >\n Share on LinkedIn\n </sqm-share-button>\n <sqm-share-button\n medium=\"twitter\"\n icon-slot=\"prefix\"\n size=\"medium\"\n type=\"default\"\n >\n Tweet about us\n </sqm-share-button>\n </sqm-portal-container>\n </sqm-portal-container>\n </sqm-referral-card>\n <sqm-portal-container\n gap=\"xx-large\"\n direction=\"column\"\n display=\"grid\"\n max-width=\"100%\"\n min-width=\"\"\n padding=\"none\"\n >\n <sqm-titled-section text-align=\"center\" label-margin=\"xxx-small\">\n <h3 slot=\"label\">Earn more rewards</h3>\n <p slot=\"content\">\n Get points while using our product. Use those points to redeem\n rewards like one free month of Enterprise or two plane tickets to\n anywhere in North America\n </p>\n </sqm-titled-section>\n <sqm-card-feed gap=\"24\" width=\"347\">\n <sqm-task-card\n reward-amount=\"20\"\n goal=\"1\"\n card-title=\"Complete a Survey\"\n description=\"Fill out our NPS survey and get 20 points for giving us honest feedback.\"\n button-text=\"Take survey\"\n reward-unit=\"Points\"\n completed-text=\"Completed {finite, select, 0 {{count, plural, =1 {{count} time} other {{count} times}}} other {{count}/{finite} times}}\"\n ended-message=\"Ended {endDate}\"\n expiry-message=\"Ends {endDate}\"\n finite=\"0\"\n starts-on-message=\"Starts {startDate}\"\n >\n </sqm-task-card>\n <sqm-task-card\n reward-amount=\"250\"\n goal=\"500\"\n show-progress-bar\n card-title=\"Spend $500\"\n description=\"Earn 250 points when you spend $500 or more.\"\n button-text=\"See plans\"\n completed-text=\"Completed {finite, select, 0 {{count, plural, =1 {{count} time} other {{count} times}}} other {{count}/{finite} times}}\"\n ended-message=\"Ended {endDate}\"\n expiry-message=\"Ends {endDate}\"\n progress-bar-unit=\"$\"\n finite=\"0\"\n reward-unit=\"Points\"\n starts-on-message=\"Starts {startDate}\"\n >\n </sqm-task-card>\n <sqm-task-card\n goal=\"1\"\n reward-amount=\"50\"\n card-title=\"Follow Us on Twitter\"\n description=\"Earn 50 points when you follow us on Twitter!\"\n button-text=\"Follow\"\n button-link=\"https://twitter.com/\"\n open-new-tab=\"true\"\n event-key=\"socialFollow\"\n completed-text=\"Completed {finite, select, 0 {{count, plural, =1 {{count} time} other {{count} times}}} other {{count}/{finite} times}}\"\n ended-message=\"Ended {endDate}\"\n expiry-message=\"Ends {endDate}\"\n finite=\"0\"\n reward-unit=\"Points\"\n starts-on-message=\"Starts {startDate}\"\n >\n </sqm-task-card>\n <sqm-task-card\n reward-amount=\"1\"\n reward-unit=\"Free Month\"\n goal=\"1\"\n card-title=\"Upgrade Your Plan\"\n description=\"Receive one free month for being a committed customer when you upgrade your plan.\"\n button-text=\"Upgrade\"\n completed-text=\"Completed {finite, select, 0 {{count, plural, =1 {{count} time} other {{count} times}}} other {{count}/{finite} times}}\"\n ended-message=\"Ended {endDate}\"\n expiry-message=\"Ends {endDate}\"\n open-new-tab=\"false\"\n finite=\"0\"\n starts-on-message=\"Starts {startDate}\"\n >\n </sqm-task-card>\n </sqm-card-feed>\n </sqm-portal-container>\n <sqm-tabs>\n <sqm-tab header=\"Referral history\">\n <sqm-referral-table\n per-page=\"4\"\n hidden-columns=\"2\"\n more-label=\"Next\"\n prev-label=\"Prev\"\n sm-breakpoint=\"599\"\n md-breakpoint=\"799\"\n >\n <sqm-referral-table-user-column\n column-title=\"User\"\n anonymous-user=\"Anonymous User\"\n deleted-user=\"Deleted User\"\n >\n </sqm-referral-table-user-column>\n <sqm-referral-table-status-column\n column-title=\"Referral status\"\n converted-status-text=\"Converted\"\n in-progress-status-text=\"In Progress\"\n >\n </sqm-referral-table-status-column>\n <sqm-referral-table-rewards-column\n column-title=\"Rewards\"\n expiring-text=\"Expiring in\"\n fuel-tank-text=\"Your code is\"\n pending-for-text=\"{status} for {date}\"\n reward-received-text=\"Reward received on\"\n status-long-text=\"{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} EXPIRED {Reward expired on} other {Not available} }\"\n status-text=\"{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }\"\n >\n </sqm-referral-table-rewards-column>\n <sqm-referral-table-date-column\n column-title=\"Date referred\"\n date-shown=\"dateReferralStarted\"\n >\n </sqm-referral-table-date-column>\n <sqm-empty\n slot=\"empty\"\n empty-state-image=\"https://res.cloudinary.com/saasquatch/image/upload/v1644000223/squatch-assets/empty_referral2.png\"\n empty-state-header=\"View your referral details\"\n empty-state-text=\"Refer a friend to view the status of your referrals and rewards earned\"\n >\n </sqm-empty>\n </sqm-referral-table>\n </sqm-tab>\n <sqm-tab header=\"Reward history\">\n <sqm-rewards-table\n per-page=\"4\"\n program-id=\"\"\n hidden-columns=\"0\"\n more-label=\"Next\"\n prev-label=\"Prev\"\n sm-breakpoint=\"599\"\n md-breakpoint=\"799\"\n >\n <sqm-rewards-table-reward-column\n available-text=\"{availableAmount} remaining\"\n column-title=\"Reward\"\n copy-text=\"Copied!\"\n redeemed-text=\"{redeemedAmount} redeemed\"\n >\n </sqm-rewards-table-reward-column>\n <sqm-rewards-table-source-column\n anonymous-user=\"Anonymous User\"\n column-title=\"Source\"\n deleted-user=\"Deleted User\"\n referral-text=\"{rewardSource, select, FRIEND_SIGNUP {Referral to} REFERRED {Referred by} other {}}\"\n reward-exchange-text=\"Reward Exchange\"\n reward-source-text=\"{rewardSource, select, MANUAL {Manual} AUTOMATED {{programName}} other {}}\"\n >\n </sqm-rewards-table-source-column>\n <sqm-rewards-table-status-column\n column-title=\"Status\"\n expiry-text=\"Expires on \"\n status-text=\"{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }\"\n >\n </sqm-rewards-table-status-column>\n <sqm-rewards-table-date-column\n column-title=\"Date received\"\n date-shown=\"dateGiven\"\n >\n </sqm-rewards-table-date-column>\n <sqm-empty\n slot=\"empty\"\n empty-state-image=\"https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_reward2.png\"\n empty-state-header=\"View your rewards\"\n empty-state-text=\"Refer friends and complete tasks to view the details of your rewards\"\n >\n </sqm-empty>\n </sqm-rewards-table>\n </sqm-tab>\n </sqm-tabs>\n </sqm-portal-container>\n <sqm-portal-footer\n support-email=\"support@example.com\"\n terms-link=\"https://example.com\"\n faq-link=\"https://example.com\"\n terms-text=\"Terms And Conditions\"\n faq-text=\"FAQ\"\n show-powered-by=\"true\"\n padding-bottom=\"none\"\n padding-left=\"none\"\n padding-right=\"none\"\n padding-top=\"none\"\n ></sqm-portal-footer>\n </sqm-portal-container>\n </sqm-portal-container>\n</sqm-brand>\n";
|
|
3848
3848
|
|
|
3849
|
-
const loyaltyWidget = "<sqm-brand brand-color=\"#4225c4\" brand-font=\"Nunito Sans\">\
|
|
3849
|
+
const loyaltyWidget = "<sqm-brand brand-color=\"#4225c4\" brand-font=\"Nunito Sans\">\n <sqm-portal-container\n direction=\"column\"\n padding=\"small\"\n gap=\"xxxx-large\"\n display=\"grid\"\n max-width=\"100%\"\n >\n <sqm-portal-container\n direction=\"column\"\n padding=\"none\"\n gap=\"xxx-large\"\n display=\"grid\"\n max-width=\"100%\"\n >\n <sqm-hero-image\n image-url=\"https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png\"\n header=\"MyCompany Rewards\"\n description=\"Complete tasks to earn rewards\"\n layout=\"overlay\"\n padding-image=\"xxxx-large\"\n padding-text=\"xxx-large\"\n image-pos=\"center\"\n overlay-color=\"#5e5669\"\n overlay-opacity=\"0.9\"\n >\n </sqm-hero-image>\n <sqm-portal-container\n direction=\"column\"\n padding=\"none\"\n gap=\"xxx-large\"\n max-width=\"770px\"\n center\n display=\"grid\"\n >\n <sqm-program-explainer header=\"How it works\">\n <sqm-program-explainer-step\n description=\"Complete tasks like uploading your first video or sharing videos with friends\"\n header=\"Earn points for using our product\"\n icon=\"cash-stack\"\n text-color=\"#000000\"\n >\n </sqm-program-explainer-step>\n <sqm-program-explainer-step\n description=\"Redeem rewards like one free month of Enterprise or two plane tickets to anywhere in North America\"\n header=\"Redeem rewards with your points\"\n icon=\"people\"\n text-color=\"#000000\"\n >\n </sqm-program-explainer-step>\n </sqm-program-explainer>\n <sqm-portal-container\n center\n direction=\"row\"\n display=\"flex\"\n justify-content=\"space-between\"\n gap=\"xxx-large\"\n max-width=\"100%\"\n padding=\"none\"\n >\n <sqm-stat-container space=\"xxx-large\" display=\"flex\">\n <sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/rewardsRedeemed/CREDIT/POINTS\"\n >\n <p>Points Redeemed</p>\n </sqm-big-stat>\n <sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/rewardBalance/CREDIT/POINT/value/global\"\n >\n <p>Points Balance</p>\n </sqm-big-stat>\n </sqm-stat-container>\n </sqm-portal-container>\n <sqm-portal-container\n direction=\"column\"\n padding=\"none\"\n gap=\"xx-large\"\n display=\"grid\"\n max-width=\"100%\"\n >\n <sqm-titled-section\n label-margin=\"small\"\n padding=\"none\"\n text-align=\"center\"\n >\n <h3 slot=\"label\">Earn points</h3>\n </sqm-titled-section>\n <sqm-card-feed gap=\"24\" width=\"347\">\n <sqm-task-card\n reward-amount=\"20\"\n goal=\"1\"\n card-title=\"Complete a Survey\"\n description=\"Fill out our NPS survey and get 20 points for giving us honest feedback.\"\n button-text=\"Take survey\"\n reward-unit=\"Points\"\n completed-text=\"Completed {finite, select, 0 {{count, plural, =1 {{count} time} other {{count} times}}} other {{count}/{finite} times}}\"\n ended-message=\"Ended {endDate}\"\n expiry-message=\"Ends {endDate}\"\n finite=\"0\"\n starts-on-message=\"Starts {startDate}\"\n >\n </sqm-task-card>\n <sqm-task-card\n reward-amount=\"250\"\n goal=\"500\"\n show-progress-bar\n card-title=\"Spend $500\"\n description=\"Earn 250 points when you spend $500 or more.\"\n button-text=\"See plans\"\n completed-text=\"Completed {finite, select, 0 {{count, plural, =1 {{count} time} other {{count} times}}} other {{count}/{finite} times}}\"\n ended-message=\"Ended {endDate}\"\n expiry-message=\"Ends {endDate}\"\n progress-bar-unit=\"$\"\n finite=\"0\"\n reward-unit=\"Points\"\n starts-on-message=\"Starts {startDate}\"\n >\n </sqm-task-card>\n <sqm-task-card\n goal=\"1\"\n reward-amount=\"50\"\n card-title=\"Follow Us on Twitter\"\n description=\"Earn 50 points when you follow us on Twitter!\"\n button-text=\"Follow\"\n button-link=\"https://twitter.com/\"\n open-new-tab=\"true\"\n event-key=\"socialFollow\"\n completed-text=\"Completed {finite, select, 0 {{count, plural, =1 {{count} time} other {{count} times}}} other {{count}/{finite} times}}\"\n ended-message=\"Ended {endDate}\"\n expiry-message=\"Ends {endDate}\"\n finite=\"0\"\n reward-unit=\"Points\"\n starts-on-message=\"Starts {startDate}\"\n >\n </sqm-task-card>\n <sqm-task-card\n reward-amount=\"1\"\n reward-unit=\"Free Month\"\n goal=\"1\"\n card-title=\"Upgrade Your Plan\"\n description=\"Receive one free month for being a committed customer when you upgrade your plan.\"\n button-text=\"Upgrade\"\n completed-text=\"Completed {finite, select, 0 {{count, plural, =1 {{count} time} other {{count} times}}} other {{count}/{finite} times}}\"\n ended-message=\"Ended {endDate}\"\n expiry-message=\"Ends {endDate}\"\n open-new-tab=\"false\"\n finite=\"0\"\n starts-on-message=\"Starts {startDate}\"\n >\n </sqm-task-card>\n </sqm-card-feed>\n <sqm-portal-container\n gap=\"large\"\n direction=\"column\"\n display=\"grid\"\n max-width=\"100%\"\n padding=\"none\"\n >\n <sqm-titled-section\n padding=\"none\"\n text-align=\"center\"\n label-margin=\"xx-small\"\n >\n <h3 slot=\"label\">Reward History</h3>\n </sqm-titled-section>\n <sqm-rewards-table\n per-page=\"4\"\n hidden-columns=\"0\"\n more-label=\"Next\"\n prev-label=\"Prev\"\n sm-breakpoint=\"599\"\n md-breakpoint=\"799\"\n >\n <sqm-rewards-table-reward-column\n available-text=\"{availableAmount} remaining\"\n column-title=\"Reward\"\n copy-text=\"Copied!\"\n redeemed-text=\"{redeemedAmount} redeemed\"\n >\n </sqm-rewards-table-reward-column>\n <sqm-rewards-table-source-column\n anonymous-user=\"Anonymous User\"\n column-title=\"Source\"\n deleted-user=\"Deleted User\"\n referral-text=\"{rewardSource, select, FRIEND_SIGNUP {Referral to} REFERRED {Referred by} other {}}\"\n reward-exchange-text=\"Reward Exchange\"\n reward-source-text=\"{rewardSource, select, MANUAL {Manual} AUTOMATED {{programName}} other {}}\"\n >\n </sqm-rewards-table-source-column>\n <sqm-rewards-table-status-column\n column-title=\"Status\"\n expiry-text=\"Expires on \"\n status-text=\"{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }\"\n >\n </sqm-rewards-table-status-column>\n <sqm-rewards-table-date-column\n column-title=\"Date received\"\n date-shown=\"dateGiven\"\n >\n </sqm-rewards-table-date-column>\n <sqm-empty\n slot=\"empty\"\n empty-state-image=\"https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_reward2.png\"\n empty-state-header=\"View your rewards\"\n empty-state-text=\"Refer friends and complete tasks to view the details of your rewards\"\n >\n </sqm-empty>\n </sqm-rewards-table>\n </sqm-portal-container>\n </sqm-portal-container>\n <sqm-portal-footer\n support-email=\"support@example.com\"\n terms-link=\"https://example.com\"\n faq-link=\"https://example.com\"\n terms-text=\"Terms And Conditions\"\n faq-text=\"FAQ\"\n show-powered-by=\"true\"\n padding-bottom=\"none\"\n padding-left=\"none\"\n padding-right=\"none\"\n padding-top=\"none\"\n ></sqm-portal-footer>\n </sqm-portal-container>\n </sqm-portal-container>\n </sqm-portal-container>\n</sqm-brand>\n";
|
|
3850
3850
|
|
|
3851
3851
|
const Widget_stories = {
|
|
3852
3852
|
title: "Templates / Widgets",
|
|
@@ -4142,7 +4142,7 @@ const PortalRegister = /*#__PURE__*/Object.freeze({
|
|
|
4142
4142
|
TermsAndConditions: TermsAndConditions
|
|
4143
4143
|
});
|
|
4144
4144
|
|
|
4145
|
-
const scenario$6 = "@author:derek\
|
|
4145
|
+
const scenario$6 = "@author:derek\n@owner:ian\nFeature: Forgot Password\n\n @motivating\n Scenario: Users can request to reset their password\n Given a user enters their email address\n And that email address is linked to a previously created account\n When they click \"Reset Password\"\n Then the button enters a loading state\n When the password reset email is sent\n Then a confirmation banner is shown stating a password reset email was sent\n\n @motivating\n Scenario: Users are notified if sending their password reset email fails\n Given a user enters their email address\n And that email address is linked to a previously created account\n When they click \"Reset Password\"\n Then the button enters a loading state\n When the password reset email fails to send\n Then the user does not receive a password reset email\n And an error banner is shown stating that they should try again\n\n @motivating\n @landmine\n Scenario: If the input email is not associated to an account a success banner is shown but an email is not be sent\n Given the user entered an email address that is not associated to an accoun\n When they click \"Reset Password\"\n Then the button enters a loading state\n But no email is sent\n And a success banner is shown stating a password reset email was sent if the given email was associated to an account\n\n @motivating\n Scenario: Users can resend password reset email\n Given a user had previously requested to reset their password\n When they enter their email address\n And that email address is linked to a previously created account\n And they click \"Reset Password\"\n Then the user receives a second password reset email\n And a success banner is shown stating that their email was sent\n\n @motivating\n Scenario Outline: The email link can be configured to redirect users to a specific base path but defaults to \"/resetPassword\"\n Given a user viewing the password reset component\n And the component <mayHave> \"redirect-path\" with <value>\n When they request a password reset email\n And they click the link in the email\n Then they are redirected to <redirectPath>\n Examples:\n | mayHave | value | redirectPath |\n | doesn't have | N/A | /resetPassword |\n | has | /resetMyPassword | /resetMyPassword |\n\n @minutia\n Scenario Outline: Navigation back to the login page can be customized but defaults to \"/login\"\n Given a user viewing the password reset component\n And the component <mayHave> \"login-path\" with <value>\n Then they see a \"Sign In\" text button\n When they click \"Sign In\"\n Then they are redirected to <redirectPath>\n Examples:\n | mayHave | value | redirectPath |\n | doesn't have | N/A | /login |\n | has | /signin | /signin |";
|
|
4146
4146
|
|
|
4147
4147
|
const PortalForgotPassword_stories = {
|
|
4148
4148
|
title: "Components/Portal Forgot Password",
|
|
@@ -4224,7 +4224,7 @@ const PortalForgotPassword = /*#__PURE__*/Object.freeze({
|
|
|
4224
4224
|
ForgotPasswordSuccess: ForgotPasswordSuccess
|
|
4225
4225
|
});
|
|
4226
4226
|
|
|
4227
|
-
const scenario$7 = "@author:derek\
|
|
4227
|
+
const scenario$7 = "@author:derek\n@owner:ian\nFeature: Email Verification\n\n @minutia\n Scenario: User's redirected from registration can re-send their verification email\n Given a user has registered\n And they have been sent a verification email\n When they are redirected to the email verification page\n Then a message is displayed\n And it reflects that a email has been sent to their email\n But they can still re-send the email\n When they click to \"Resend-Email\"\n Then they receive a verification email\n\n @motivating\n Scenario: Users are notified if sending the email verification message fails\n Given a user viewing the email verification component\n And they have an email stored in session data from registration\n When they click to \"Resend-Email\"\n Then the text link is disabled\n When an error occurs trying to send the verification email\n Then the user does not receive a verification email\n And an error banner is shown stating that they should try again\n\n @motivating\n Scenario: Users are notified if sending the email verification message succeeds\n Given a user viewing the email verification component\n And they have an email stored in session data from registration\n When they click to \"Resend-Email\"\n Then the text link is disabled\n When the email verification message sends\n Then the user receives a verification email\n And a success banner is shown stating that their email was resent\n\n @motivating\n Scenario Outline: The email link can be configured to redirect users to a specific base path but defaults to \"/verifyEmail\"\n Given a user viewing the email verification component\n And they have an email stored in session data from registration\n And the component <mayHave> \"redirect-path\" with <value>\n When they resend their verification email\n And they click the link in the email\n Then they are redirected to <redirectPath>\n Examples:\n | mayHave | value | redirectPath |\n | doesn't have | N/A | /verifyEmail |\n | has | /verifyMyEmail | /verifyMyEmail |\n\n @motivating\n Scenario Outline: Verification status is refetched on refresh\n Given a user viewing the email verification component\n And the component <mayHave> \"redirect-path\" with <value>\n And they verified their account on another device\n And the local storage verification state is outdated\n When they refresh the page the component is on\n Then their verification status is re-queried\n And the local storage managed identity state is updated\n And they are redirected to <redirectPath>\n Examples:\n | mayHave | value | redirectPath |\n | doesn't have | N/A | /verifyEmail |\n | has | /verifyMyEmail | /verifyMyEmail |\n\n @motivating\n Scenario Outline: Verification status is refetched every 10 seconds\n Given a user viewing the email verification component\n And the component <mayHave> \"redirect-path\" with <value>\n Then they see text \"Checking verification status in 10\" above the re-send verification text link\n And the time counts down from 10 to 0\n When the counter hits 0\n Then their verification status is re-queried\n And the text displays a spinner where the \"in {seconds}\" text was\n When they verify their account on another device\n And the count down hits 0 again from 10\n Then their verification status is re-queried\n And the local storage managed identity state is updated\n And they are redirected to <redirectPath>\n Examples:\n | mayHave | value | redirectPath |\n | doesn't have | N/A | /verifyEmail |\n | has | /verifyMyEmail | /verifyMyEmail |\n\n @minutia\n Scenario Outline: Verification refetch text is customizable\n Given the email verication has prop \"verification-status-message\" with <verificationPropValue>\n And has prop \"verification-loading-message\" with <loadingPropValue>\n And a user viewing the component\n When it is counting down\n Then they see <verificationTextValue>\n When it is refetching their verification status\n Examples:\n | verificationPropValue | verificationTextValue | loadingPropValue | loadingTextValue |\n | N/A | Checking verification status in {countdown} | N/A | Checking verification status |\n | {countdown} seconds till verification refresh | {countdown} seconds till verification refresh | Checking verification | Checking verification |\n\n\n @minutia\n Scenario: 10 second countdown pauses when minimizing or moving between tabs\n Given a user viewing the email verification component\n Then they see text \"Checking verification status in 10\" above the re-send verification text link\n And the time counts down from 10 to 7\n And the user changes to a different tab\n When the user goes back to the verification tab\n Then the countdown will still be 7\n When the counter hits 0\n Then their verification status is re-queried\n";
|
|
4228
4228
|
|
|
4229
4229
|
const PortalEmailVerification_stories = {
|
|
4230
4230
|
title: "Components/Portal Email Verification",
|
|
@@ -4305,7 +4305,7 @@ const PortalEmailVerification = /*#__PURE__*/Object.freeze({
|
|
|
4305
4305
|
EmailVerificationSuccess: EmailVerificationSuccess
|
|
4306
4306
|
});
|
|
4307
4307
|
|
|
4308
|
-
const scenario$8 = "@author:derek\
|
|
4308
|
+
const scenario$8 = "@author:derek\n@owner:ian\nFeature: Reset Password\n\n Background: A user in on the password reset page\n Given a user who has been redirected to the password reset page\n\n @motivating\n Scenario: Users can reset their password\n Given a user has a valid oob code as a url query parameter\n When they enter their password twice\n And they click \"Update\"\n Then their password is updated\n And a banner with a success message is displayed\n And they can log in with their new password\n\n @motivating\n Scenario Outline: Users cannot reset their password with an invalid or missing oob code\n Given a user has a <oobCode> as a url query parameter\n And the component <mayHave> \"failed-page\" with <value>\n Then they see an error message saying that their password reset code is invalid/expired\n When they click \"Continue\"\n Then they are redirected to <redirectPath>\n Examples:\n | oobCode | mayHave | value | redirectPath |\n | invalid oob code | doesn't have | N/A | / |\n | non existant oob code | doesn't have | N/A | / |\n | invalid oob code | has | /login | /login |\n | non existant oob code | has | /login | /login |\n\n @motivating\n Scenario: Users must enter the same password twice to successfully reset their password\n Given a user has been redirected to the password reset page\n And they have a valid oob code as a url query parameter\n When they enter two different passwords into the password reset form\n And they click \"Update\"\n Then their password is not be reset\n And an error banner stating the input passwords must match appears\n And their password is not be reset\n When they enter the same password twice\n And they click \"Update\"\n Then a banner appears with a success message\n And they can log in with their new password\n\n @motivating\n Scenario: Users are notified if resetting their password fails\n Given a user has a valid oob code as a url query parameter\n When they enter their password twice\n And they click \"Update\"\n But the password reset fails\n Then the user's password does not reset\n And an error banner is shown\n\n @motivating\n Scenario: Users are redirected to \"/\" by default\n Given the component does not have prop \"nextPage\"\n And the users url does not contain a \"nextPage\" query parameter\n And a user has entered their password twice\n When they click \"Update\"\n Then their password is updated\n And they are redirected to \"/\"\n\n @motivating\n Scenario: Custom redirection can be configured\n Given the component has prop \"nextPage\" with value \"/activity\"\n And the users url does not contain a \"nextPage\" query parameter\n And a user has entered their password twice\n When they click \"Update\"\n Then their password is updated\n And they are redirected to \"/activity\"\n\n @motivating\n Scenario Outline: Users are redirected to the value of the nextPage url parameter as if it were a relative path\n Given the component is loaded at <currentUrl>\n When they click \"Update\"\n Then their password is updated\n And they are redirected to <url>\n Examples:\n | currentUrl | url |\n | https://www.example.com?nextPage=./activity | https://www.example.com/activity |\n | https://www.example.com?nextPage=activity | https://www.example.com/activity |\n | https://www.example.com?nextPage=/activity | https://www.example.com/activity |\n | https://www.example.com?nextPage=www.google.com | https://www.example.com/www.google.com |\n | https://www.example.com?nextPage=//foo.com | https://www.example.com/ |\n | https://www.example.com?nextPage=https://malicious.example.com | https://www.example.com/ |\n | http://www.example.com/nest/page?oob=123&other&nextPage=activity#heading-1 | http://www.example.com/activity |\n | https://www.example.com?nextPage=activity?foo=bar | https://www.example.com/activity?foo=bar |\n | https://www.example.com?nextPage=%2Factivity%3Ffoo%3Dbar | https://www.example.com/activity?foo=bar |\n | https://www.example.com?nextPage=%2Factivity%3Ffoo%3Dbar#hash | https://www.example.com/activity?foo=bar |\n | https://www.example.com?nextPage=%2Factivity%3Ffoo%3Dbar%23hash | https://www.example.com/activity?foo=bar#hash |\n | https://www.example.com:1337?nextPage=activity | https://www.example.com:1337/activity |\n | http://1.1.1.1:1111?nextPage=activity | http://1.1.1.1:1111/activity |\n\n @landmine\n Scenario Outline: Username and password are not persisted on redirects\n Given the component is loaded at <currentUrl>\n When they click \"Update\"\n Then their password is updated\n And they are redirected to <url>\n Examples:\n | currentUrl | url |\n | https://user:pass@www.example.com:444?nextPage=activity | https://www.example.com:444/activity |";
|
|
4309
4309
|
|
|
4310
4310
|
const PortalResetPassword_stories = {
|
|
4311
4311
|
title: "Components/Portal Reset Password",
|
|
@@ -4469,7 +4469,7 @@ const PortalResetPassword = /*#__PURE__*/Object.freeze({
|
|
|
4469
4469
|
CodeValidating: CodeValidating
|
|
4470
4470
|
});
|
|
4471
4471
|
|
|
4472
|
-
const scenario$9 = "@author:derek\
|
|
4472
|
+
const scenario$9 = "@author:derek\n@owner:ian\nFeature: Verify Email\n\n Background: A user is on the email verification page\n Given a user who has been redirected to the email verification page\n\n @motivating\n Scenario: Verifying your email takes you to the portal login page\n Given a user has a valid oob code as a url query parameter\n When they click \"Verify Email\"\n Then the button enters a loading state\n When their email is validated\n Then a button that says \"Continue\" appears\n When they click \"Continue\"\n Then they are redirected to login\n\n @motivating\n Scenario: Users are automatically redirected if they dont click \"Continue\"\n Given a user has a valid oob code as a url query parameter\n When they click \"Verify Email\"\n Then the button enters a loading state\n When their email is validated\n Then a button that says \"Continue\" appears\n When they wait 5 seconds\n Then they are redirected to login\n\n @motivating\n Scenario: Users are notified if verifying their email has failed\n Given a user has a valid oob code as a url query parameter\n When they click \"Verify Email\"\n Then the button enters a loading state\n When their email fails to be validated\n Then an banner is shown stating that an error occured\n\n @motivating\n Scenario Outline: Users cannot verify their email with an invalid or missing oob code\n Given a user has a <oobCode> as a url query parameter\n And the component <mayHave> \"failed-page\" with <value>\n Then they see an error message saying that their verification code is invalid/expired\n When they click \"Continue\"\n Then they are redirected to <redirectPath>\n Examples:\n | oobCode | mayHave | value | redirectPath |\n | invalid oob code | doesn't have | N/A | / |\n | non existant oob code | doesn't have | N/A | / |\n | invalid oob code | has | /login | /login |\n | non existant oob code | has | /login | /login |\n\n @motivating\n Scenario: Users are redirected to \"/\" by default\n Given the component does not have prop \"nextPage\"\n And the users url does not contain a \"nextPage\" query parameter\n And a user has verified their email\n When they click \"Continue\"\n Then they are redirected to \"/\"\n\n @motivating\n Scenario: Custom redirection can be configured\n Given the component has prop \"nextPage\" with value \"/activity\"\n And the users url does not contain a \"nextPage\" query parameter\n And a user has verified their email\n When they click \"Continue\"\n Then they are redirected to \"/activity\"\n\n @motivating\n Scenario Outline: Users are redirected to the value of the nextPage url parameter if it exists\n Given the component <mayHave> prop \"nextPage\" with <nextPageValue>\n And the users url contains a \"nextPage\" query paramater with <nextPageParamValue>\n And the user has verified their email\n When they click \"Continue\"\n Then they are redirected to <nextPageParamValue>\n Examples:\n | mayHave | nextPageValue | nextPageParamValue |\n | has | /dashboard | /activity |\n | does not have | N/A | /activity |\n\n @motivating\n Scenario Outline: Users are redirected to the value of the nextPage url parameter as if it were a relative path\n Given the component is loaded at <currentUrl>\n And the user has verified their email\n When they click \"Continue\"\n And they are redirected to <url>\n Examples:\n | currentUrl | url |\n | https://www.example.com?nextPage=./activity | https://www.example.com/activity |\n | https://www.example.com?nextPage=activity | https://www.example.com/activity |\n | https://www.example.com?nextPage=/activity | https://www.example.com/activity |\n | https://www.example.com?nextPage=www.google.com | https://www.example.com/www.google.com |\n | https://www.example.com?nextPage=//foo.com | https://www.example.com/ |\n | https://www.example.com?nextPage=https://malicious.example.com | https://www.example.com/ |\n | http://www.example.com/nest/page?oob=123&other&nextPage=activity#heading-1 | http://www.example.com/activity |\n | https://www.example.com?nextPage=activity?foo=bar | https://www.example.com/activity?foo=bar |\n | https://www.example.com?nextPage=%2Factivity%3Ffoo%3Dbar | https://www.example.com/activity?foo=bar |\n | https://www.example.com?nextPage=%2Factivity%3Ffoo%3Dbar#hash | https://www.example.com/activity?foo=bar |\n | https://www.example.com?nextPage=%2Factivity%3Ffoo%3Dbar%23hash | https://www.example.com/activity?foo=bar#hash |\n | https://www.example.com:1337?nextPage=activity | https://www.example.com:1337/activity |\n | http://1.1.1.1:1111?nextPage=activity | http://1.1.1.1:1111/activity |\n\n @landmine\n Scenario Outline: Username and password are not persisted on redirects\n Given the component is loaded at <currentUrl>\n And the user has verified their email\n When they click \"Continue\"\n And they are redirected to <url>\n Examples:\n | currentUrl | url |\n | https://user:pass@www.example.com:444?nextPage=activity | https://www.example.com:444/activity |";
|
|
4473
4473
|
|
|
4474
4474
|
const PortalVerifyEmail_stories = {
|
|
4475
4475
|
title: "Components/Portal Verify Email",
|
|
@@ -4627,7 +4627,7 @@ const DividedLayout = /*#__PURE__*/Object.freeze({
|
|
|
4627
4627
|
ColumnCustomDivider: ColumnCustomDivider
|
|
4628
4628
|
});
|
|
4629
4629
|
|
|
4630
|
-
const scenario$a = "Feature: Change Password\
|
|
4630
|
+
const scenario$a = "Feature: Change Password\n\n @motivating\n Scenario: Users can change their password\n Given a user has registered for the portal\n And they have a password\n When they navigate to the edit profile page\n And click \"Change your password...\"\n Then a popup will appear\n When they enter their new password\n And confirm it\n And click \"Change Password\"\n Then they will see a success banner stating that the change was successful\n When they logout\n And try to login\n Then they will not be able to login with their old password\n But they will be able to login with their new password\n\n @motivating\n Scenario: Users must confirm their password change\n Given a user has registered for the portal\n When they navigate to the edit profile page\n And click \"Change your password...\"\n Then a popup will appear\n When they enter their new password\n But they enter a different password to confirm\n And click \"Change Password\"\n Then they will see an error banner stating that the passwords didnt match\n When they logout\n And try to login\n Then they will be able to login with their existing password\n\n @motivating\n Scenario: Users must enter a new password and confirm it to change their password\n Given a user has registered for the portal\n When they navigate to the edit profile page\n And click \"Change your password...\"\n Then a popup will appear\n When they click \"Change password\"\n Then a validation error will appear for the new password field\n And their password will not be changed\n When they enter a new password\n And they click \"Change password\"\n Then a validation error will appear for the confirm new password field\n And their password will not be changed\n\n @motivating\n Scenario: An error banner will be displayed if the password change fails\n Given a user has registered for the portal\n When they navigate to the edit profile page\n And click \"Change your password...\"\n When they enter their new password\n And confirm it\n And click \"Change Password\"\n But the change fails\n Then they will see an error banner stating that the change failed\n When they logout\n And try to login\n Then they will be able to login with their existing password";
|
|
4631
4631
|
|
|
4632
4632
|
const ChangePassword_stories = {
|
|
4633
4633
|
title: "Components/Change Password",
|
|
@@ -5022,15 +5022,15 @@ const PortalProfile = /*#__PURE__*/Object.freeze({
|
|
|
5022
5022
|
Success: Success$1
|
|
5023
5023
|
});
|
|
5024
5024
|
|
|
5025
|
-
const column = "@author:noah\
|
|
5025
|
+
const column = "@author:noah\n@owner:noah\nFeature: Referral Table User Column\n\n Shows the same custom content for each referral\n\n Background:\n Given the column in included in the referral table\n\n @motivating\n Scenario: The title of the date column is configurable\n Given the \"column-title\" prop is set to \"My column title\"\n Then the date column is shown with \"My column title\"\n\n @motivating\n Scenario: The same custom content is shown for each referral\n Given there is at least one referral\n Then for each referral custom content is shown\n And the custom content is provided as slot content";
|
|
5026
5026
|
|
|
5027
|
-
const date = "@author:noah\
|
|
5027
|
+
const date = "@author:noah\n@owner:noah\nFeature: Referral Table Date Column\n\n Shows the date of each referral\n\n Background:\n Given the date column is included in the referral table\n\n @motivating\n @ui\n Scenario Outline: The title of the date column is configurable\n Given the \"column-title\" prop is set to <value>\n Then the date column is shown with <columTitle>\n Examples:\n | value | columnTitle |\n | | Date Converted |\n | My column title | My column title |\n\n @motivating\n Scenario Outline: A configurable date associated with the referral is shown for each referral\n Given the \"date-shown\" prop is set to <dateType>\n And referrals exist\n Then for each referral the <referralDate> is shown in the table\n And the date is localized to the users locale\n Examples:\n | dateType | referralDate |\n | dateReferralStarted | date referral started |\n | dateReferralPaid | date referral paid |\n | dateReferralEnded | date referral ended |\n | dateModerated | date moderated |\n | dateUserModified | date user modified |\n | dateConverted | date converted |\n | dateModified | date modified |\n | | date converted |";
|
|
5028
5028
|
|
|
5029
|
-
const reward = "@author:noah\
|
|
5029
|
+
const reward = "@author:noah\n@owner:noah\nFeature: Referral Table Reward Column\n\n Shows the reward associated with each referral\n\n Background:\n Given the status column is included in the referral table\n And at least one referral exists\n\n @motivating\n @ui\n Scenario Outline: The referral reward and it's status are shown for each referral\n Then for each referral reward there exists a reward cell\n And the reward type and value is displayed in the cell\n And the status of each reward is displayed as a pill in the cell\n And rewards of <status> have a <pillColour> pill with the text <statusText>\n Examples:\n | status | pillColour | statusText |\n | Available | green | Available |\n | Pending | orange | Pending |\n | Cancelled | red | Cancelled |\n | Expired | red | Expired |\n | Redeemed | blue | Redeemed |\n\n @motivating\n Scenario: The pending period of a referral reward is shown if it exists\n Given a reward that is pending\n And the reward has a set pending period\n Then the status pill of the reward will instead have the text \"Pending for <relativeTime>\"\n And all dates are localized to the users locale\n Examples:\n | relativeTime |\n | 2 days |\n | 1 week |\n | 3 months |\n | 2 years |\n\n @motivating\n Scenario: The expiry date of a reward is shown if it exists\n Given a reward that is available\n And the reward has a set expiry date\n Then an additional grey pill will appear next to the status pill with the text \"Expiring in <relativeTime>\"\n And all dates are localized to the users locale\n Examples:\n | relativeTime |\n | 2 days |\n | 1 week |\n | 3 months |\n | 2 years |\n\n @motivating\n Scenario: Each reward can be expanded to show additional details about the reward\n When a reward cell is clicked\n Then it expands to show the following additional information (if it's available):\n | Date the reward was received |\n | Date the reward was cancelled |\n | Date the reward expires |\n | Date the reward is pending until |\n | Coupon code |\n And all dates are localized to a users locale";
|
|
5030
5030
|
|
|
5031
|
-
const status = "@author:noah\
|
|
5031
|
+
const status = "@author:noah\n@owner:noah\nFeature: Referral Table Status Column\n\n Shows the status of each referral\n\n Background:\n Given the status column is included in the referral table\n\n @motivating\n @ui\n Scenario: The title of the date column is configurable\n Given the \"column-title\" prop is set to \"My column title\"\n Then the date column is shown with \"My column title\"\n\n @motivating\n Scenario Outline: The status column displays the status of each referral\n Given referrals exist\n Then the status of each referral is displayed\n And the status <status> is displayed as text from <statusTextProp> in a <pillColour> pill\n Examples:\n | status | statusTextProp | pillColour |\n | IN PROGRESS | inProgressStatusText | Orange |\n | Converted | convertedStatusText | Green |\n";
|
|
5032
5032
|
|
|
5033
|
-
const user = "@author:noah\
|
|
5033
|
+
const user = "@author:noah\n@owner:noah\nFeature: Referral Table User Column\n\n Shows the user of each referral\n\n Background:\n Given the user column is included in the referral table\n\n @motivating\n @ui\n Scenario: The title of the date column is configurable\n Given the \"column-title\" prop is set to \"My column title\"\n Then the date column is shown with \"My column title\"\n\n @motivating\n Scenario: The first and last name of the other user in the referral is displayed for each referral\n Given at least one referral exists\n Then for each referral where the other user's name is available their first and last name is displayed\n\n @motivating\n Scenario: Deleted users are displayed with a fallback name\n Given a referral exists where the other user was deleted\n Then in place of the name the text from the prop \"deleted-user\" is used\n\n @motivating\n Scenario: Anonymous users are displayed with a fallback name\n Given a referral exists where the other user was anonymous\n Then in place of the name the text from the prop \"anonymous-user\" is used";
|
|
5034
5034
|
|
|
5035
5035
|
const scenario$b = column + date + reward + status + user;
|
|
5036
5036
|
const ReferralTableRewardsCell_stories = {
|
|
@@ -5280,7 +5280,7 @@ const ReferralTableRewardsCell = /*#__PURE__*/Object.freeze({
|
|
|
5280
5280
|
tenRewardsCell: tenRewardsCell
|
|
5281
5281
|
});
|
|
5282
5282
|
|
|
5283
|
-
const scenario$c = "@owner:sam\
|
|
5283
|
+
const scenario$c = "@owner:sam\n@author:sam\nFeature: Referral Table\n\n The Referral table component shows users a list of their referrals. The referral table it's self can be customized\n with a collection of columns.\n\n @motivating\n @ui\n Scenario: The empty state is shown if there are no referrals\n Given a user with no referrals\n When they view the referral table\n Then no referrals are displayed\n And they see an image with a user icon\n And \"View your referral details\" in bold\n And \"Track the status of your referrals and rewards earned by referring friends\" below the bolded text\n And the pagination buttons are disabled\n\n @motivating\n @ui\n Scenario: The empty state image and text are customizable\n Given the referral table has 'sqm-empty' as a child with the following props\n | prop | value |\n | empty-state-imgage | https://res.cloudinary.com/saasquatch/image/upload/v1634255445/squatch-assets/Copy_of_saasquatch-logo-tree-large-horizontal.png |\n | empty-state-header | View your referral history |\n | empty-state-text | See your previous referrals and what you earned! |\n And a user with no referrals\n When they view the referral table\n Then they see no referrals\n And they see the SaaSquatch logo\n And \"View your referral history\" in bold\n And \"See your previous referrals and what you earned!\" below the bolded text\n\n @minutia\n @ui\n Scenario: A custom empty state can be provided\n Given a user with no referrals\n And a custom empty state has been supplied in the \"empty\" slot\n When they view the referral table\n Then they see the custom empty state\n\n @motivating\n @ui\n Scenario: The loading state is shown while referrals are loading\n Given the table is loading\n Then the loading state is shown in the table\n And a custom loading state can be supplied in the \"loading\" slot\n And the pagination buttons are disabled\n\n @motivating\n @ui\n Scenario Outline: The table becomes paginated when the number of referrals exceeds the per page limit\n Given the user has <number of referrals>\n And the table is configured to show <page limit> referrals per page\n Then the table will have <number of pages> page(s)\n And pagination buttons will allow users to navigate between pages\n And the pagination button to go to the next page is disabled on the last page of referrals\n And the pagination button to go to the previous page is disabled on the first page of referrals\n Examples:\n | number of referrals | page limit | number of pages |\n | 0 | 4 | 1 |\n | 1 | 4 | 1 |\n | 3 | 4 | 1 |\n | 5 | 4 | 2 |\n | 42 | 4 | 11 |\n\n @motivating\n @ui\n Scenario: The table converts to a card view on tablet and mobile window sizes\n Given a user with referrals\n When they view the table\n And their window size is smaller than \"799px\"\n Then referrals are displayed as cards\n And they are in two columns\n When their window size is smaller than \"599px\"\n Then the referrals are displayed as cards in a singular column\n\n @motivating\n @ui\n Scenario: Table and Mobile beakpoints can be configured\n Given the referral table has been configured with the following props\n | prop | value |\n | smBreakpoint | 599 |\n | mdBreakpoint | 799 |\n And a user with referrals\n When they view the table\n And their window size is smaller than \"799px\"\n Then referrals are displayed as cards\n And they are in two columns\n When their window size is smaller than \"599px\"\n Then the referrals are displayed as cards in a singular column\n\n @motivating\n @ui\n Scenario Outline: By default the first column heading is hidden in mobile, but others can be hidden\n Given a referral table with 4 columns\n And prop \"hidden-columns\" with <hideColumnValue>\n And a user with referrals\n When they view the referral table\n And their window size is below the tablet breakpoint\n Then referral cards are displayed\n And the titles of <columnsArehidden> within the card\n Examples:\n | hideColumnValue | columnsArehidden |\n | | the first column |\n | 0,1,2 | the first, second and third columns |\n | 3 | the fourth column |\n\n @motivating\n Scenario: The use who referred the current user can be shown in the table\n Given the table is configured with <showReferrer> set to true\n And the current user was referrered by <referrer>\n Then the first table row on the first page of the table is for <referrer>\n\n @motivating\n Scenario: Only referrals which occured in the program specific by program-id are shown\n Given the table is configured with \"program-id\"\n Then only referrals from the program with \"program-id\" are shown\n\n @motivating\n Scenario: Classic program shows only classic referrals\n Given the \"program-id\" of the table is set to \"classic\"\n Then only classic referrals are shown in the table\n\n @minutia\n @ui\n Scenario: Column heading can be hidden\n Given the table is configured with \"hide-labels\" set to \"true\"\n Then the table is displayed without column headings";
|
|
5284
5284
|
|
|
5285
5285
|
const ReferralTable_stories = {
|
|
5286
5286
|
title: "Components/Referral Table",
|
|
@@ -6054,34 +6054,34 @@ function cartesian(...args) {
|
|
|
6054
6054
|
return r;
|
|
6055
6055
|
}
|
|
6056
6056
|
|
|
6057
|
-
const scenarioTaskCard = "@author:derek\
|
|
6058
|
-
|
|
6059
|
-
const scenarioProgressBar = "@author:kutay\
|
|
6060
|
-
|
|
6061
|
-
const ResizerStylesheet = `
|
|
6062
|
-
|
|
6063
|
-
:root{
|
|
6064
|
-
--checker-color-1: #ffffff00;
|
|
6065
|
-
--checker-color-2: #ffffff00;
|
|
6066
|
-
--checker-size: 7px;
|
|
6067
|
-
--checker-gradient: linear-gradient(45deg, var(--checker-color-1) 25%, transparent 25%, transparent 75%, var(--checker-color-1) 75%);
|
|
6068
|
-
}
|
|
6069
|
-
.resizer{
|
|
6070
|
-
resize: horizontal;
|
|
6071
|
-
border: 2px dashed gray;
|
|
6072
|
-
margin: -2px;
|
|
6073
|
-
padding: 12px;
|
|
6074
|
-
height: fit-content;
|
|
6075
|
-
overflow: hidden;
|
|
6076
|
-
width: 100%;
|
|
6077
|
-
}
|
|
6078
|
-
|
|
6079
|
-
.resizer{
|
|
6080
|
-
background-color: var(--checker-color-2);
|
|
6081
|
-
background-image: var(--checker-gradient), var(--checker-gradient);
|
|
6082
|
-
background-position: 0 0, var(--checker-size) var(--checker-size);
|
|
6083
|
-
background-size: calc(var(--checker-size) * 2) calc(var(--checker-size) * 2);
|
|
6084
|
-
}
|
|
6057
|
+
const scenarioTaskCard = "@author:derek\n@owner:kutay\nFeature: Task Card\n\n\t@motivating\n\t@ui\n\tScenario: A header, body title and a CTA button are always displayed\n\t\tGiven the Task Card is configured with the following props\n\t\t\t| prop | value |\n\t\t\t| rewardAmount | \"40\" |\n\t\t\t| rewardUnit | \"Points\" |\n\t\t\t| cardTitle | Complete a survey |\n\t\t\t| buttonText | Take Survey |\n\t\tWhen a user views the Task Card\n\t\tThen they see \"40 Points\" as the heading\n\t\tAnd the \"40\" is bolded\n\t\tAnd they see \"Complete a survey\" bolded in the body\n\t\tAnd a details icon in the top right hand corner\n\t\tAnd a button with text \"Take Survey\" in the bottom right hand corner\n\t\tWhen they click the button\n\t\tThen they are redirected to \"example.com\" in a new window\n\n\t@motivating\n\t@ui\n\tScenario Outline: A Task Card description can be included but is not required\n\t\tGiven a Task Card\n\t\tAnd it has <descriptionPropValue>\n\t\tWhen a user views the Task card\n\t\tThen they <maySee> a chevron icon in the top right\n\t\tWhen they attempt to click the chevron\n\t\tThen they <maySee> the card description\n\t\tExamples:\n\t\t\t| descriptionPropValue | maySee |\n\t\t\t| This is my task card description | see |\n\t\t\t| | don't see |\n\n\t@motivating\n\tScenario Outline: CTA links can open in a new tab or the same tab\n\t\tGiven a Task Card\n\t\tAnd it has <openNewTabPropValue>\n\t\tWhen a user views the Task card\n\t\tAnd they click on the CTA\n\t\tThen they are redirected to the CTA link in <tab>\n\t\tExamples:\n\t\t\t| openNewTabPropValue | tab |\n\t\t\t| true | a new tab |\n\t\t\t| false | the same tab |\n\t\t\t| N/A | the same tab |\n\n\t@minutia\n\t@ui\n\tScenario: A loading state is displayed while the Task Card is loading\n\t\tGiven a Task Card component\n\t\tWhen a user views the Task Card\n\t\tThen a loading state is displayed\n\t\tWhen the Task Card has loaded\n\t\tThen the loading state disapears\n\n\t@motivating\n\t@ui\n\tScenario Outline: The Progress Bar can be shown or hidden but is hidden by default\n\t\tGiven a Task Card\n\t\tAnd it has <showProgressBarPropValue>\n\t\tWhen a user views the Task Card\n\t\tThen the progress bar <mayBe> displayed\n\t\tExamples:\n\t\t\t| showProgressBarPropValue | mayBe |\n\t\t\t| true | is |\n\t\t\t| false | isn't |\n\t\t\t| N/A | isn't |\n\n\t@motivating\n\tScenario: Clicking the CTA Button can trigger an event to be sent and refresh the widget\n\t\tGiven a Task card\n\t\tAnd it is configured to send an \"test\" event\n\t\tWhen a user views the Task card\n\t\tAnd clicks on the CTA\n\t\tThen a \"test\" event is sent to SSQT on the users behalf\n\t\tAnd the contents of the widget the card is dislayed within are refreshed\n\n\t@motivating\n\t@ui\n\tScenario Outline: Tasks can be repeatable or one-time only but are one-time only by default\n\t\tGiven a Task Card\n\t\tAnd it has <repeatablePropValue>\n\t\tAnd a user who has already completed the task\n\t\tWhen they view the Task Card\n\t\tThen they see a brand colour checkmark icon beside the card heading\n\t\tAnd the card <mayBe> brand colour\n\t\tAnd the CTA button <mayBe> disabled\n\t\tAnd the CTA button <mayBe> grey\n\t\tExamples:\n\t\t\t| repeatablePropValue | mayBe |\n\t\t\t| true | isn't |\n\t\t\t| false | is |\n\t\t\t| N/A | is |\n\n\t@motivating\n\tScenario Outline: Display duration hides or shows a task\n\t\tGiven a Task Card\n\t\tAnd it has a \"display-duration\" interval\n\t\tWhen a user views the Card on <day>\n\t\tThen card <mayBeHidden>\n\t\tExamples:\n\t\t\t| day | mayBeHidden |\n\t\t\t| a day before the interval | is hidden |\n\t\t\t| a day during the interval | is not hidden |\n\t\t\t| a day after the interval | is hidden |\n\n\t@motivating\n\tScenario: Task Expiries can be configured and disable the CTA after the expiry\n\t\tGiven a Task Card\n\t\tAnd it has an \"reward-duration\" interval\n\t\tWhen a user views the card on <day>\n\t\tThen the card <mayBeDisabled>\n\t\tAnd it <mayHaveAlert>\n\t\tAnd it <mayHaveExpiryText> on the bottom left hand side of the card\n\t\tExamples:\n\t\t\t| day | mayBeDisabled | mayHaveAlert | mayHaveExpiryText |\n\t\t\t| a day before the expiry interval | is disabled | has alert stating the month, date, year and time the task starts | doesn't have expiry text |\n\t\t\t| a day during the expiry interval | isn't disabled | doesn't have an alert | has the month, date, year and time the task expires |\n\t\t\t| a day after the expiry interval | is disabled | has alert stating the month, date, year and time the task expired | doesn't have expiry text |\n\n\t@motivating\n\tScenario Outline: Task Card dates support localization\n\t\tGiven a Task Card\n\t\tAnd it's configured with a expiry duration interval\n\t\tWhen a user with <locale> views the task card <atTime>\n\t\tThen they <seeDate> translated for <locale>\n\t\tExamples:\n\t\t\t| atTime | locale | seeDate |\n\t\t\t| before the interval | en | Task Start Date |\n\t\t\t| during the interval | en | Task End Date |\n\t\t\t| after the interval | en | Task Ended Date |\n\t\t\t| before the interval | fr | Task Start Date |\n\t\t\t| during the interval | fr | Task End Date |\n\t\t\t| after the interval | fr | Task Ended Date |\n\n\t@motivating\n\t@ui\n\tScenario Outline: A task completion count is displayed for repeatable tasks\n\t\tGiven a Task Card\n\t\tAnd it is configured for a repeatable task\n\t\tAnd has it has <goalValue>\n\t\tAnd a user with <userGoalProgress>\n\t\tWhen the user views the task card\n\t\tThen they see a repeat icon\n\t\tAnd the <text> in the bottom left hand corner\n\t\tAnd the <text> is brand colour\n\t\tExamples:\n\t\t\t| goalValue | userGoalProgress | text |\n\t\t\t| 2 | 0 | Completed 0 times |\n\t\t\t| 2 | 1 | Completed 0 times |\n\t\t\t| 2 | 2 | Completed 1 times |\n\t\t\t| 2 | 4 | Completed 2 times |\n\n\t@motivating\n\tScenario Outline: The source of a user's progress can be a custom field or a program goal\n\t\tGiven a Task Card\n\t\tAnd it is configured <progressSourcePath>\n\t\tWhen a user views the Task card\n\t\tThen the value at <progressSourcePath> is used to benchmark their progress against the \"Goal Completion Count\"\n\t\tExamples:\n\t\t\t| progressSourcePath |\n\t\t\t| /customFields/activityCount |\n\t\t\t| /customFields/purchaseTotal |\n\t\t\t| /programGoals/count%2FComment-on-Article |\n\t\t\t| /programGoals/count/Referral-Started%2Freferrals |\n\n\t@motivating\n\tScenario Outline: The users completion of a goal is calculated by the Goal Completion Number\n\t\tGiven a Task Card\n\t\tAnd it is configured for <goalValue>\n\t\tAnd a user who has <progressValue>\n\t\tWhen they view the Task Card\n\t\tThen they are shown to have <progressValue> towards <goalValue>\n\t\tWhen their progress grows larger than <goalValue>\n\t\tThen the task is marked as completed\n\t\tExamples:\n\t\t\t| goalValue | progressValue |\n\t\t\t| 1 | 0 |\n\t\t\t| 10 | 9 |\n\t\t\t| 5 | 2 |\n\n\t@motivating\n\tScenario: The Goal Completion Number defaults to 1\n\t\tGiven a Task Card without a configured \"goal\" value\n\t\tAnd a user who has <progressValue>\n\t\tWhen they view the Task Card\n\t\tThen it <mayBe> marked as completed\n\t\tExamples:\n\t\t\t| progressValue | mayBe |\n\t\t\t| 0 | isn't |\n\t\t\t| 1 | is |\n\t\t\t| 2 | is |";
|
|
6058
|
+
|
|
6059
|
+
const scenarioProgressBar = "@author:kutay\n@owner:kutay\nFeature: The progress bar can be shown as a continuous line with progress and end goal. \n\n\t@motivating\n\t@ui\n\tScenario Outline: The progress bar displays a continuous bar with the goal represented by a present\n\t\tGiven a Task Card component\n\t\tAnd the users progress is <progress>\n\t\tAnd the task goal is \"500\"\n\t\tAnd the task is not repeatable\n\t\tThen I have <progressBar>\n\t\tAnd the <progressBar> shows <progress> with <unit> on the right\n\t\tAnd the circle on the progress bar is brand colour\n\t\tAnd the line behind the circle is brand colour\n\t\tAnd the line infront of the circle is grey\n\t\tAnd the gift icon has <color>\n\t\tAnd the gift icon shows \"500\" with <unit> below\n\t\tExamples:\n\t\t\t| progress | progressBar | unit | color |\n\t\t\t| 0 | ●――――――――――――――――――🎁 | $ | no |\n\t\t\t| 100 | ―――●―――――――――――――――🎁 | $ | no |\n\t\t\t| 500 | ―――――――――――――――――――🎁 | $ | yes |\n\t\t\t| 650 | ―――――――――――――――――――🎁 | $ | yes |\n\t\t\t| 1200 | ―――――――――――――――――――🎁 | $ | yes |\n\n\t@motivating\n\t@ui\n\tScenario Outline: The progress bar can be displayed with steps instead of a continuous line\n\t\tGiven a Task Card component\n\t\tAnd the user progress is <progress>\n\t\tAnd the goal is \"5\"\n\t\tAnd steps are enabled\n\t\tThen I have <progressBar>\n\t\tAnd the <progressBar> has incrementing steps up to \"5\" in increments of 1\n\t\tAnd the steps behind the users progress are brand colour\n\t\tAnd the steps infront of the users progress are grey\n\t\tAnd the gift icon has <color>\n\t\tAnd the gift icon shows \"5\" below\n\t\tExamples:\n\t\t\t| progress | progressBar | color |\n\t\t\t| 0 | ―――○―――○―――○―――○―――🎁 | no |\n\t\t\t| 1 | ―――●―――○―――○―――○―――🎁 | no |\n\t\t\t| 5 | ―――●―――●―――●―――●―――🎁 | yes |\n\t\t\t| 7 | ―――●―――●―――●―――●―――🎁 | yes |\n\t\t\t| 12 | ―――●―――●―――●―――●―――🎁 | yes |\n\n\t@motivating\n\t@ui\n\tScenario Outline: The continuous progress bar will continue to progress for repeatable rewards\n\t\tGiven a Task Card component\n\t\tAnd the user progress is <progress>\n\t\tAnd the goal is \"500\"\n\t\tAnd it is repeatable\n\t\tThen I have <progressBar>\n\t\tAnd the <progressBar> shows <progress> with <unit> to the right\n\t\tAnd the first <icon1> is <color1> with <text1> displayed below\n\t\tAnd the second <icon2> is <color2> with <text2> displayed below\n\t\tAnd the third <icon3> is <color3> with <text3> displayed below\n\t\tAnd the circle on the progress bar is brand colour\n\t\tAnd the line behind the circle is brand colour\n\t\tAnd the line infront of the circle is grey\n\t\tExamples:\n\t\t\t| progress | progressBar | unit | icon1 | color1 | text1 | icon2 | color2 | text 2 | icon3 | color3 | text 3 |\n\t\t\t| 250 | ――――●――――🎁―――――――🎁 | $ | NA | NA | NA | gift | greyscale | 500 | gift | greyscale | 1000 |\n\t\t\t| 500 | ―――――――――🎁―――――――🎁 | $ | NA | NA | NA | gift | colorful | 500 | gift | greyscale | 1000 |\n\t\t\t| 750 | ―――――――――🎁―――●―――🎁 | $ | NA | NA | NA | gift | colorful | 500 | gift | greyscale | 1000 |\n\t\t\t| 1000 | 🎁―――――――🎁―――――――🎁 | $ | gift | colorful | 500 | gift | colorful | 1000 | gift | greyscale | 1500 |\n\t\t\t| 1250 | 🎁―――――――🎁―――●―――🎁 | $ | gift | colorful | 500 | gift | colorful | 1000 | gift | greyscale | 1500 |\n\n\t@motivating\n\t@ui\n\tScenario Outline: The stepped progress bar will continue to progress for repeatable rewards\n\t\tGiven a Task Card component\n\t\tAnd the user progress is <progress>\n\t\tAnd the goal is \"5\"\n\t\tAnd steps are enabled\n\t\tAnd it is repeatable\n\t\tThen I have <progressBar>\n\t\tAnd the <progressBar> has incrementing steps up to \"5\" in increments of 1\n\t\tAnd the first <icon1> is <color1>\n\t\tAnd the second <icon2> is <color2>\n\t\tAnd the third <icon3> is <color3>\n\t\tAnd the steps behind the users progress are brand colour\n\t\tAnd the steps infront of the users progress are grey\n\t\tExamples:\n\t\t\t| progress | progressBar | icon1 | color1 | icon2 | color2 | icon3 | color3 |\n\t\t\t| 0 | ―――○―○―○―○―🎁―○―○―○―○―🎁 | NA | NA | gift | greyscale | gift | greyscale |\n\t\t\t| 1 | ―――●―○―○―○―🎁―○―○―○―○―🎁 | NA | NA | gift | greyscale | gift | greyscale |\n\t\t\t| 5 | ―――●―●―●―●―🎁―○―○―○―○―🎁 | NA | NA | gift | colorful | gift | greyscale |\n\t\t\t| 7 | ―――●―●―●―●―🎁―●―●―○―○―🎁 | NA | NA | gift | colorful | gift | greyscale |\n\t\t\t| 12 | 🎁―●―●―●―●―🎁―●―●―○―○―🎁 | gift | colorful | gift | colorful | gift | greyscale |";
|
|
6060
|
+
|
|
6061
|
+
const ResizerStylesheet = `
|
|
6062
|
+
|
|
6063
|
+
:root{
|
|
6064
|
+
--checker-color-1: #ffffff00;
|
|
6065
|
+
--checker-color-2: #ffffff00;
|
|
6066
|
+
--checker-size: 7px;
|
|
6067
|
+
--checker-gradient: linear-gradient(45deg, var(--checker-color-1) 25%, transparent 25%, transparent 75%, var(--checker-color-1) 75%);
|
|
6068
|
+
}
|
|
6069
|
+
.resizer{
|
|
6070
|
+
resize: horizontal;
|
|
6071
|
+
border: 2px dashed gray;
|
|
6072
|
+
margin: -2px;
|
|
6073
|
+
padding: 12px;
|
|
6074
|
+
height: fit-content;
|
|
6075
|
+
overflow: hidden;
|
|
6076
|
+
width: 100%;
|
|
6077
|
+
}
|
|
6078
|
+
|
|
6079
|
+
.resizer{
|
|
6080
|
+
background-color: var(--checker-color-2);
|
|
6081
|
+
background-image: var(--checker-gradient), var(--checker-gradient);
|
|
6082
|
+
background-position: 0 0, var(--checker-size) var(--checker-size);
|
|
6083
|
+
background-size: calc(var(--checker-size) * 2) calc(var(--checker-size) * 2);
|
|
6084
|
+
}
|
|
6085
6085
|
`;
|
|
6086
6086
|
const Resizer = (_, children) => (index.h("div", { class: "resizer" }, children));
|
|
6087
6087
|
|
|
@@ -6534,41 +6534,41 @@ const TaskCard$2 = /*#__PURE__*/Object.freeze({
|
|
|
6534
6534
|
ProgressBarStepsFinite: ProgressBarStepsFinite
|
|
6535
6535
|
});
|
|
6536
6536
|
|
|
6537
|
-
const portalTemplate = "<sqm-portal-frame>\
|
|
6537
|
+
const portalTemplate = "<sqm-portal-frame>\n <a slot=\"header\" href=\"/\">\n <sqm-text style=\"height: 60px\">\n <img\n style=\"height: 60px\"\n src=\"https://res.cloudinary.com/saasquatch/image/upload/v1634255445/squatch-assets/Copy_of_saasquatch-logo-tree-large-horizontal.png\"\n />\n </sqm-text>\n </a>\n <sqb-program-section program-id=\"referral-program\">\n <sqm-router>\n <template\n path=\"/:path(\\bregister\\b|\\bemailVerification\\b|\\blogin\\b|\\bverifyEmail\\b|\\bforgotPassword\\b|\\bresetPassword\\b|\\blogout\\b)\"\n >\n <sqm-hero\n background=\"https://images.unsplash.com/photo-1599676821464-3555954838dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1939&q=80\"\n >\n <sqm-router>\n <template path=\"/register\">\n <sqm-portal-register>\n <sqm-name-fields slot=\"formData\"></sqm-name-fields>\n </sqm-portal-register>\n </template>\n\n <template path=\"/emailVerification\">\n <sqm-portal-protected-route\n redirect-to=\"/login\"\n ></sqm-portal-protected-route>\n <sqm-portal-email-verification></sqm-portal-email-verification>\n </template>\n\n <template path=\"/login\">\n <sqm-portal-login></sqm-portal-login>\n </template>\n\n <template path=\"/verifyEmail\">\n <sqm-portal-verify-email></sqm-portal-verify-email>\n </template>\n\n <template path=\"/forgotPassword\">\n <sqm-portal-forgot-password\n email-label=\"Business Email\"\n ></sqm-portal-forgot-password>\n </template>\n\n <template path=\"/resetPassword\">\n <sqm-portal-reset-password\n confirm-password=\"true\"\n ></sqm-portal-reset-password>\n </template>\n <template path=\"/logout\">\n <sqm-portal-logout next-page=\"/login\"></sqm-portal-logout>\n </template>\n </sqm-router>\n </sqm-hero>\n </template>\n </sqm-router>\n <sqm-router>\n <template path=\"/:path(\\bactivity\\b|\\beditProfile\\b)?\">\n <sqm-divided-layout\n direction=\"row\"\n style=\"\n border-top: 1px solid #eaeaea;\n border-bottom: 1px solid #eaeaea;\n \"\n >\n <sqm-navigation-sidebar>\n <sqm-navigation-sidebar-item\n path=\"/\"\n icon=\"house\"\n label=\"Dashboard\"\n ></sqm-navigation-sidebar-item>\n <sqm-navigation-sidebar-item\n path=\"/activity\"\n icon=\"bar-chart\"\n label=\"Activity\"\n ></sqm-navigation-sidebar-item>\n <sqm-navigation-sidebar-item\n path=\"/editProfile\"\n icon=\"person\"\n label=\"Edit Profile\"\n ></sqm-navigation-sidebar-item>\n <sqm-navigation-sidebar-item\n path=\"/logout\"\n icon=\"box-arrow-right\"\n label=\"Logout\"\n ></sqm-navigation-sidebar-item>\n </sqm-navigation-sidebar>\n <sqm-divided-layout direction=\"column\">\n <sqm-router>\n <template path=\"/\">\n <sqm-portal-protected-route\n require-email-verification=\"true\"\n redirect-to=\"/login\"\n redirect-to-unverified=\"/emailVerification\"\n ></sqm-portal-protected-route>\n <sqb-widget\n widget-type=\"p/referral-program/w/referrerWidget\"\n track-loads=\"true\"\n ></sqb-widget>\n </template>\n <template path=\"/editProfile\">\n <sqm-portal-protected-route\n require-email-verification=\"true\"\n redirect-to=\"/login\"\n redirect-to-unverified=\"/emailVerification\"\n ></sqm-portal-protected-route>\n <sqm-portal-container direction=\"column\" gap=\"xxx-large\">\n <sqm-portal-profile></sqm-portal-profile> </sqm-portal-container\n ><sqm-portal-container direction=\"column\" gap=\"xxx-large\">\n <sqm-portal-change-password></sqm-portal-change-password>\n </sqm-portal-container>\n </template>\n\n <template path=\"/activity\">\n <sqm-portal-protected-route\n require-email-verification=\"true\"\n redirect-to=\"/login\"\n redirect-to-unverified=\"/emailVerification\"\n ></sqm-portal-protected-route>\n <sqm-portal-container\n direction=\"column\"\n padding=\"xxx-large\"\n gap=\"xxx-large\"\n >\n <sqm-text> <h1>Activity</h1></sqm-text>\n <sqm-stat-container space=\"xxxx-large\"\n ><sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/referralsCount\"\n ><sqm-text><p>Referrals</p></sqm-text></sqm-big-stat\n >\n <sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/rewardsCountFiltered/AVAILABLE\"\n ><sqm-text><p>Rewards Earned</p></sqm-text></sqm-big-stat\n >\n <sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/rewardBalance/CREDIT/CENTS\"\n ><sqm-text><p>Reward Balance</p></sqm-text></sqm-big-stat\n >\n </sqm-stat-container>\n <sqm-referral-table>\n <sqm-referral-table-user-column></sqm-referral-table-user-column>\n <sqm-referral-table-rewards-column></sqm-referral-table-rewards-column>\n <sqm-referral-table-status-column></sqm-referral-table-status-column>\n <sqm-referral-table-date-column\n column-title=\"Referred\"\n date-shown=\"dateReferralStarted\"\n ></sqm-referral-table-date-column> </sqm-referral-table\n ></sqm-portal-container>\n </template>\n </sqm-router>\n </sqm-divided-layout>\n </sqm-divided-layout>\n </template>\n </sqm-router>\n </sqb-program-section>\n <sqm-portal-footer\n slot=\"footer\"\n support-email=\"support@example.com\"\n terms-link=\"https://example.com\"\n faq-link=\"https://example.com\"\n terms-text=\"Terms And Conditions\"\n faq-text=\"FAQ\"\n show-powered-by=\"true\"\n ></sqm-portal-footer>\n</sqm-portal-frame>\n";
|
|
6538
6538
|
|
|
6539
|
-
const portalLeadSubmitTemplate = "<sqm-portal-frame>\
|
|
6539
|
+
const portalLeadSubmitTemplate = "<sqm-portal-frame>\n <a slot=\"header\" href=\"/\">\n <sqm-text style=\"height: 60px\">\n <img\n style=\"height: 60px\"\n src=\"https://res.cloudinary.com/saasquatch/image/upload/v1634255445/squatch-assets/Copy_of_saasquatch-logo-tree-large-horizontal.png\"\n />\n </sqm-text>\n </a>\n <sqb-program-section program-id=\"referral-program\">\n <sqm-router>\n <template\n path=\"/:path(\\bregister\\b|\\bemailVerification\\b|\\blogin\\b|\\bverifyEmail\\b|\\bforgotPassword\\b|\\bresetPassword\\b|\\blogout\\b)\"\n >\n <sqm-hero\n background=\"https://images.unsplash.com/photo-1599676821464-3555954838dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1939&q=80\"\n >\n <sqm-router>\n <template path=\"/register\">\n <sqm-portal-register>\n <sqm-name-fields slot=\"formData\"></sqm-name-fields>\n </sqm-portal-register>\n </template>\n\n <template path=\"/emailVerification\">\n <sqm-portal-protected-route\n redirect-to=\"/login\"\n ></sqm-portal-protected-route>\n <sqm-portal-email-verification></sqm-portal-email-verification>\n </template>\n\n <template path=\"/login\">\n <sqm-portal-login></sqm-portal-login>\n </template>\n\n <template path=\"/verifyEmail\">\n <sqm-portal-verify-email></sqm-portal-verify-email>\n </template>\n\n <template path=\"/forgotPassword\">\n <sqm-portal-forgot-password\n email-label=\"Business Email\"\n ></sqm-portal-forgot-password>\n </template>\n\n <template path=\"/resetPassword\">\n <sqm-portal-reset-password\n confirm-password=\"true\"\n ></sqm-portal-reset-password>\n </template>\n <template path=\"/logout\">\n <sqm-portal-logout next-page=\"/login\"></sqm-portal-logout>\n </template>\n </sqm-router>\n </sqm-hero>\n </template>\n </sqm-router>\n <sqm-router>\n <template path=\"/:path(\\bactivity\\b|\\beditProfile\\b|\\brefer\\b)?\">\n <sqm-divided-layout\n direction=\"row\"\n style=\"\n border-top: 1px solid #eaeaea;\n border-bottom: 1px solid #eaeaea;\n \"\n >\n <sqm-navigation-sidebar>\n <sqm-navigation-sidebar-item\n path=\"/\"\n icon=\"house\"\n label=\"Dashboard\"\n ></sqm-navigation-sidebar-item>\n <sqm-navigation-sidebar-item\n path=\"/refer\"\n icon=\"inbox\"\n label=\"Submit A Lead\"\n ></sqm-navigation-sidebar-item>\n <sqm-navigation-sidebar-item\n path=\"/activity\"\n icon=\"bar-chart\"\n label=\"Activity\"\n ></sqm-navigation-sidebar-item>\n <sqm-navigation-sidebar-item\n path=\"/editProfile\"\n icon=\"person\"\n label=\"Edit Profile\"\n ></sqm-navigation-sidebar-item>\n <sqm-navigation-sidebar-item\n path=\"/logout\"\n icon=\"box-arrow-right\"\n label=\"Logout\"\n ></sqm-navigation-sidebar-item>\n </sqm-navigation-sidebar>\n <sqm-divided-layout direction=\"column\">\n <sqm-router>\n <template path=\"/\">\n <sqm-portal-protected-route\n require-email-verification=\"true\"\n redirect-to=\"/login\"\n redirect-to-unverified=\"/emailVerification\"\n ></sqm-portal-protected-route>\n <sqb-widget\n widget-type=\"p/referral-program/w/referrerWidget\"\n track-loads=\"true\"\n ></sqb-widget>\n </template>\n <template path=\"/editProfile\">\n <sqm-portal-protected-route\n require-email-verification=\"true\"\n redirect-to=\"/login\"\n redirect-to-unverified=\"/emailVerification\"\n ></sqm-portal-protected-route>\n <sqm-portal-container direction=\"column\" gap=\"xxx-large\">\n <sqm-portal-profile></sqm-portal-profile> </sqm-portal-container\n ><sqm-portal-container direction=\"column\" gap=\"xxx-large\">\n <sqm-portal-change-password></sqm-portal-change-password>\n </sqm-portal-container>\n </template>\n <template path=\"/refer\">\n <sqm-portal-protected-route\n require-email-verification=\"true\"\n redirect-to=\"/login\"\n redirect-to-unverified=\"/emailVerification\"\n ></sqm-portal-protected-route>\n <sqm-referral-iframe></sqm-referral-iframe>\n </template>\n <template path=\"/activity\">\n <sqm-portal-protected-route\n require-email-verification=\"true\"\n redirect-to=\"/login\"\n redirect-to-unverified=\"/emailVerification\"\n ></sqm-portal-protected-route>\n <sqm-portal-container\n direction=\"column\"\n padding=\"xxx-large\"\n gap=\"xxx-large\"\n >\n <sqm-text> <h1>Activity</h1></sqm-text>\n <sqm-stat-container space=\"xxxx-large\"\n ><sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/referralsCount\"\n ><sqm-text><p>Referrals</p></sqm-text></sqm-big-stat\n >\n <sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/rewardsCountFiltered/AVAILABLE\"\n ><sqm-text><p>Rewards Earned</p></sqm-text></sqm-big-stat\n >\n <sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/rewardBalance/CREDIT/CENTS\"\n ><sqm-text><p>Reward Balance</p></sqm-text></sqm-big-stat\n >\n </sqm-stat-container>\n <sqm-referral-table>\n <sqm-referral-table-user-column></sqm-referral-table-user-column>\n <sqm-referral-table-rewards-column></sqm-referral-table-rewards-column>\n <sqm-referral-table-status-column></sqm-referral-table-status-column>\n <sqm-referral-table-date-column\n column-title=\"Referred\"\n date-shown=\"dateReferralStarted\"\n ></sqm-referral-table-date-column> </sqm-referral-table\n ></sqm-portal-container>\n </template>\n </sqm-router>\n </sqm-divided-layout>\n </sqm-divided-layout>\n </template>\n </sqm-router>\n </sqb-program-section>\n <sqm-portal-footer\n slot=\"footer\"\n support-email=\"support@example.com\"\n terms-link=\"https://example.com\"\n faq-link=\"https://example.com\"\n terms-text=\"Terms And Conditions\"\n faq-text=\"FAQ\"\n show-powered-by=\"true\"\n ></sqm-portal-footer>\n</sqm-portal-frame>\n";
|
|
6540
6540
|
|
|
6541
|
-
const portalLeadSubmitTemplateWithDashboard = "<sqm-portal-frame>\r\n <a slot=\"header\" href=\"/\">\r\n <sqm-text style=\"height: 60px\">\r\n <img\r\n style=\"height: 60px\"\r\n src=\"https://res.cloudinary.com/saasquatch/image/upload/v1634255445/squatch-assets/Copy_of_saasquatch-logo-tree-large-horizontal.png\"\r\n />\r\n </sqm-text>\r\n </a>\r\n <sqb-program-section program-id=\"referral-program\">\r\n <sqm-router>\r\n <template\r\n path=\"/:path(\\bregister\\b|\\bemailVerification\\b|\\blogin\\b|\\bverifyEmail\\b|\\bforgotPassword\\b|\\bresetPassword\\b|\\blogout\\b)\"\r\n >\r\n <sqm-hero\r\n background=\"https://images.unsplash.com/photo-1599676821464-3555954838dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1939&q=80\"\r\n >\r\n <sqm-router>\r\n <template path=\"/register\">\r\n <sqm-portal-register>\r\n <sqm-name-fields slot=\"formData\"></sqm-name-fields>\r\n </sqm-portal-register>\r\n </template>\r\n\r\n <template path=\"/emailVerification\">\r\n <sqm-portal-protected-route\r\n redirect-to=\"/login\"\r\n ></sqm-portal-protected-route>\r\n <sqm-portal-email-verification></sqm-portal-email-verification>\r\n </template>\r\n\r\n <template path=\"/login\">\r\n <sqm-portal-login></sqm-portal-login>\r\n </template>\r\n\r\n <template path=\"/verifyEmail\">\r\n <sqm-portal-verify-email></sqm-portal-verify-email>\r\n </template>\r\n\r\n <template path=\"/forgotPassword\">\r\n <sqm-portal-forgot-password\r\n email-label=\"Business Email\"\r\n ></sqm-portal-forgot-password>\r\n </template>\r\n\r\n <template path=\"/resetPassword\">\r\n <sqm-portal-reset-password\r\n confirm-password=\"true\"\r\n ></sqm-portal-reset-password>\r\n </template>\r\n <template path=\"/logout\">\r\n <sqm-portal-logout next-page=\"/login\"></sqm-portal-logout>\r\n </template>\r\n </sqm-router>\r\n </sqm-hero>\r\n </template>\r\n </sqm-router>\r\n <sqm-router>\r\n <template path=\"/:path(\\bactivity\\b|\\beditProfile\\b|\\brefer\\b)?\">\r\n <sqm-divided-layout\r\n direction=\"row\"\r\n style=\"\r\n border-top: 1px solid #eaeaea;\r\n border-bottom: 1px solid #eaeaea;\r\n \"\r\n >\r\n <sqm-navigation-sidebar>\r\n <sqm-navigation-sidebar-item\r\n path=\"/\"\r\n icon=\"house\"\r\n label=\"Dashboard\"\r\n ></sqm-navigation-sidebar-item>\r\n <sqm-navigation-sidebar-item\r\n path=\"/refer\"\r\n icon=\"inbox\"\r\n label=\"Submit A Lead\"\r\n ></sqm-navigation-sidebar-item>\r\n <sqm-navigation-sidebar-item\r\n path=\"/activity\"\r\n icon=\"bar-chart\"\r\n label=\"Activity\"\r\n ></sqm-navigation-sidebar-item>\r\n <sqm-navigation-sidebar-item\r\n path=\"/editProfile\"\r\n icon=\"person\"\r\n label=\"Edit Profile\"\r\n ></sqm-navigation-sidebar-item>\r\n <sqm-navigation-sidebar-item\r\n path=\"/logout\"\r\n icon=\"box-arrow-right\"\r\n label=\"Logout\"\r\n ></sqm-navigation-sidebar-item>\r\n </sqm-navigation-sidebar>\r\n <sqm-divided-layout direction=\"column\">\r\n <sqm-router>\r\n <template path=\"/\">\r\n <sqm-portal-protected-route\r\n require-email-verification=\"true\"\r\n redirect-to=\"/login\"\r\n redirect-to-unverified=\"/emailVerification\"\r\n ></sqm-portal-protected-route>\r\n <sqm-portal-container\r\n direction=\"column\"\r\n padding=\"xxx-large\"\r\n gap=\"xxx-large\"\r\n ><sqm-titled-section label-margin=\"xx-small\"\r\n ><sqm-text slot=\"label\"> <p>Welcome back,</p> </sqm-text\r\n ><sqm-text slot=\"content\">\r\n <h1>\r\n <sqm-user-name\r\n fallback=\"Anonymous User\"\r\n ></sqm-user-name>\r\n </h1> </sqm-text\r\n ></sqm-titled-section>\r\n <sqm-stat-container space=\"xxxx-large\"\r\n ><sqm-big-stat\r\n flex-reverse=\"true\"\r\n alignment=\"left\"\r\n stat-type=\"/referralsCount\"\r\n ><sqm-text><p>Referrals</p></sqm-text></sqm-big-stat\r\n >\r\n <sqm-big-stat\r\n flex-reverse=\"true\"\r\n alignment=\"left\"\r\n stat-type=\"/rewardsCountFiltered/AVAILABLE\"\r\n ><sqm-text><p>Rewards Earned</p></sqm-text></sqm-big-stat\r\n >\r\n <sqm-big-stat\r\n flex-reverse=\"true\"\r\n alignment=\"left\"\r\n stat-type=\"/rewardBalance/CREDIT/CENTS\"\r\n ><sqm-text><p>Reward Balance</p></sqm-text></sqm-big-stat\r\n >\r\n </sqm-stat-container> </sqm-portal-container\r\n ><sqm-portal-container\r\n direction=\"column\"\r\n padding=\"xxx-large\"\r\n gap=\"xxx-large\"\r\n >\r\n <sqm-titled-section padding=\"none\" label-margin=\"x-large\"\r\n ><sqm-text slot=\"label\">\r\n <h2>Partner and Profit</h2> </sqm-text\r\n ><sqm-text slot=\"content\">\r\n <p>\r\n Get rewarded for referring potential customers to\r\n SaaSquatch. Earn commission for each successful lead you\r\n send our way\r\n </p>\r\n </sqm-text></sqm-titled-section\r\n >\r\n <sqm-titled-section label-margin=\"small\" padding=\"none\"\r\n ><sqm-text slot=\"label\">\r\n <h3>Share your referral link</h3> </sqm-text\r\n ><sqm-share-link slot=\"content\"></sqm-share-link\r\n ></sqm-titled-section>\r\n <sqm-titled-section label-margin=\"small\" padding=\"none\">\r\n <sqm-text slot=\"label\">\r\n <h3>Share your referral code</h3> </sqm-text\r\n ><sqm-share-code slot=\"content\"></sqm-share-code>\r\n </sqm-titled-section>\r\n <sqm-titled-section label-margin=\"small\" padding=\"none\"\r\n ><sqm-text slot=\"label\">\r\n <h3>Share via social media</h3> </sqm-text\r\n ><sqm-portal-container\r\n slot=\"content\"\r\n direction=\"row\"\r\n padding=\"none\"\r\n gap=\"xxx-large\"\r\n min-width=\"160px\"\r\n ><sqm-share-button\r\n icon=\"envelope\"\r\n medium=\"email\"\r\n size=\"medium\"\r\n pill=\"true\"\r\n >Email a friend</sqm-share-button\r\n ><sqm-share-button\r\n medium=\"twitter\"\r\n size=\"medium\"\r\n pill=\"true\"\r\n >Tweet about us</sqm-share-button\r\n ><sqm-share-button\r\n medium=\"facebook\"\r\n size=\"medium\"\r\n pill=\"true\"\r\n >Share on Facebook</sqm-share-button\r\n ></sqm-portal-container\r\n ></sqm-titled-section\r\n ></sqm-portal-container\r\n >\r\n </template>\r\n <template path=\"/editProfile\">\r\n <sqm-portal-protected-route\r\n require-email-verification=\"true\"\r\n redirect-to=\"/login\"\r\n redirect-to-unverified=\"/emailVerification\"\r\n ></sqm-portal-protected-route>\r\n <sqm-portal-container direction=\"column\" gap=\"xxx-large\">\r\n <sqm-portal-profile></sqm-portal-profile> </sqm-portal-container\r\n ><sqm-portal-container direction=\"column\" gap=\"xxx-large\">\r\n <sqm-portal-change-password></sqm-portal-change-password>\r\n </sqm-portal-container>\r\n </template>\r\n <template path=\"/refer\">\r\n <sqm-portal-protected-route\r\n require-email-verification=\"true\"\r\n redirect-to=\"/login\"\r\n redirect-to-unverified=\"/emailVerification\"\r\n ></sqm-portal-protected-route>\r\n <sqm-referral-iframe></sqm-referral-iframe>\r\n </template>\r\n <template path=\"/activity\">\r\n <sqm-portal-protected-route\r\n require-email-verification=\"true\"\r\n redirect-to=\"/login\"\r\n redirect-to-unverified=\"/emailVerification\"\r\n ></sqm-portal-protected-route>\r\n <sqm-portal-container\r\n direction=\"column\"\r\n padding=\"xxx-large\"\r\n gap=\"xxx-large\"\r\n >\r\n <sqm-text> <h1>Activity</h1></sqm-text>\r\n <sqm-stat-container space=\"xxxx-large\"\r\n ><sqm-big-stat\r\n flex-reverse=\"true\"\r\n alignment=\"left\"\r\n stat-type=\"/referralsCount\"\r\n ><sqm-text><p>Referrals</p></sqm-text></sqm-big-stat\r\n >\r\n <sqm-big-stat\r\n flex-reverse=\"true\"\r\n alignment=\"left\"\r\n stat-type=\"/rewardsCountFiltered/AVAILABLE\"\r\n ><sqm-text><p>Rewards Earned</p></sqm-text></sqm-big-stat\r\n >\r\n <sqm-big-stat\r\n flex-reverse=\"true\"\r\n alignment=\"left\"\r\n stat-type=\"/rewardBalance/CREDIT/CENTS\"\r\n ><sqm-text><p>Reward Balance</p></sqm-text></sqm-big-stat\r\n >\r\n </sqm-stat-container>\r\n <sqm-referral-table>\r\n <sqm-referral-table-user-column></sqm-referral-table-user-column>\r\n <sqm-referral-table-rewards-column></sqm-referral-table-rewards-column>\r\n <sqm-referral-table-status-column></sqm-referral-table-status-column>\r\n <sqm-referral-table-date-column\r\n column-title=\"Referred\"\r\n date-shown=\"dateReferralStarted\"\r\n ></sqm-referral-table-date-column> </sqm-referral-table\r\n ></sqm-portal-container>\r\n </template>\r\n </sqm-router>\r\n </sqm-divided-layout>\r\n </sqm-divided-layout>\r\n </template>\r\n </sqm-router>\r\n </sqb-program-section>\r\n <sqm-portal-footer\r\n slot=\"footer\"\r\n support-email=\"support@example.com\"\r\n terms-link=\"https://example.com\"\r\n faq-link=\"https://example.com\"\r\n terms-text=\"Terms And Conditions\"\r\n faq-text=\"FAQ\"\r\n show-powered-by=\"true\"\r\n ></sqm-portal-footer>\r\n</sqm-portal-frame>\r\n";
|
|
6541
|
+
const portalLeadSubmitTemplateWithDashboard = "<sqm-portal-frame>\n <a slot=\"header\" href=\"/\">\n <sqm-text style=\"height: 60px\">\n <img\n style=\"height: 60px\"\n src=\"https://res.cloudinary.com/saasquatch/image/upload/v1634255445/squatch-assets/Copy_of_saasquatch-logo-tree-large-horizontal.png\"\n />\n </sqm-text>\n </a>\n <sqb-program-section program-id=\"referral-program\">\n <sqm-router>\n <template\n path=\"/:path(\\bregister\\b|\\bemailVerification\\b|\\blogin\\b|\\bverifyEmail\\b|\\bforgotPassword\\b|\\bresetPassword\\b|\\blogout\\b)\"\n >\n <sqm-hero\n background=\"https://images.unsplash.com/photo-1599676821464-3555954838dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1939&q=80\"\n >\n <sqm-router>\n <template path=\"/register\">\n <sqm-portal-register>\n <sqm-name-fields slot=\"formData\"></sqm-name-fields>\n </sqm-portal-register>\n </template>\n\n <template path=\"/emailVerification\">\n <sqm-portal-protected-route\n redirect-to=\"/login\"\n ></sqm-portal-protected-route>\n <sqm-portal-email-verification></sqm-portal-email-verification>\n </template>\n\n <template path=\"/login\">\n <sqm-portal-login></sqm-portal-login>\n </template>\n\n <template path=\"/verifyEmail\">\n <sqm-portal-verify-email></sqm-portal-verify-email>\n </template>\n\n <template path=\"/forgotPassword\">\n <sqm-portal-forgot-password\n email-label=\"Business Email\"\n ></sqm-portal-forgot-password>\n </template>\n\n <template path=\"/resetPassword\">\n <sqm-portal-reset-password\n confirm-password=\"true\"\n ></sqm-portal-reset-password>\n </template>\n <template path=\"/logout\">\n <sqm-portal-logout next-page=\"/login\"></sqm-portal-logout>\n </template>\n </sqm-router>\n </sqm-hero>\n </template>\n </sqm-router>\n <sqm-router>\n <template path=\"/:path(\\bactivity\\b|\\beditProfile\\b|\\brefer\\b)?\">\n <sqm-divided-layout\n direction=\"row\"\n style=\"\n border-top: 1px solid #eaeaea;\n border-bottom: 1px solid #eaeaea;\n \"\n >\n <sqm-navigation-sidebar>\n <sqm-navigation-sidebar-item\n path=\"/\"\n icon=\"house\"\n label=\"Dashboard\"\n ></sqm-navigation-sidebar-item>\n <sqm-navigation-sidebar-item\n path=\"/refer\"\n icon=\"inbox\"\n label=\"Submit A Lead\"\n ></sqm-navigation-sidebar-item>\n <sqm-navigation-sidebar-item\n path=\"/activity\"\n icon=\"bar-chart\"\n label=\"Activity\"\n ></sqm-navigation-sidebar-item>\n <sqm-navigation-sidebar-item\n path=\"/editProfile\"\n icon=\"person\"\n label=\"Edit Profile\"\n ></sqm-navigation-sidebar-item>\n <sqm-navigation-sidebar-item\n path=\"/logout\"\n icon=\"box-arrow-right\"\n label=\"Logout\"\n ></sqm-navigation-sidebar-item>\n </sqm-navigation-sidebar>\n <sqm-divided-layout direction=\"column\">\n <sqm-router>\n <template path=\"/\">\n <sqm-portal-protected-route\n require-email-verification=\"true\"\n redirect-to=\"/login\"\n redirect-to-unverified=\"/emailVerification\"\n ></sqm-portal-protected-route>\n <sqm-portal-container\n direction=\"column\"\n padding=\"xxx-large\"\n gap=\"xxx-large\"\n ><sqm-titled-section label-margin=\"xx-small\"\n ><sqm-text slot=\"label\"> <p>Welcome back,</p> </sqm-text\n ><sqm-text slot=\"content\">\n <h1>\n <sqm-user-name\n fallback=\"Anonymous User\"\n ></sqm-user-name>\n </h1> </sqm-text\n ></sqm-titled-section>\n <sqm-stat-container space=\"xxxx-large\"\n ><sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/referralsCount\"\n ><sqm-text><p>Referrals</p></sqm-text></sqm-big-stat\n >\n <sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/rewardsCountFiltered/AVAILABLE\"\n ><sqm-text><p>Rewards Earned</p></sqm-text></sqm-big-stat\n >\n <sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/rewardBalance/CREDIT/CENTS\"\n ><sqm-text><p>Reward Balance</p></sqm-text></sqm-big-stat\n >\n </sqm-stat-container> </sqm-portal-container\n ><sqm-portal-container\n direction=\"column\"\n padding=\"xxx-large\"\n gap=\"xxx-large\"\n >\n <sqm-titled-section padding=\"none\" label-margin=\"x-large\"\n ><sqm-text slot=\"label\">\n <h2>Partner and Profit</h2> </sqm-text\n ><sqm-text slot=\"content\">\n <p>\n Get rewarded for referring potential customers to\n SaaSquatch. Earn commission for each successful lead you\n send our way\n </p>\n </sqm-text></sqm-titled-section\n >\n <sqm-titled-section label-margin=\"small\" padding=\"none\"\n ><sqm-text slot=\"label\">\n <h3>Share your referral link</h3> </sqm-text\n ><sqm-share-link slot=\"content\"></sqm-share-link\n ></sqm-titled-section>\n <sqm-titled-section label-margin=\"small\" padding=\"none\">\n <sqm-text slot=\"label\">\n <h3>Share your referral code</h3> </sqm-text\n ><sqm-share-code slot=\"content\"></sqm-share-code>\n </sqm-titled-section>\n <sqm-titled-section label-margin=\"small\" padding=\"none\"\n ><sqm-text slot=\"label\">\n <h3>Share via social media</h3> </sqm-text\n ><sqm-portal-container\n slot=\"content\"\n direction=\"row\"\n padding=\"none\"\n gap=\"xxx-large\"\n min-width=\"160px\"\n ><sqm-share-button\n icon=\"envelope\"\n medium=\"email\"\n size=\"medium\"\n pill=\"true\"\n >Email a friend</sqm-share-button\n ><sqm-share-button\n medium=\"twitter\"\n size=\"medium\"\n pill=\"true\"\n >Tweet about us</sqm-share-button\n ><sqm-share-button\n medium=\"facebook\"\n size=\"medium\"\n pill=\"true\"\n >Share on Facebook</sqm-share-button\n ></sqm-portal-container\n ></sqm-titled-section\n ></sqm-portal-container\n >\n </template>\n <template path=\"/editProfile\">\n <sqm-portal-protected-route\n require-email-verification=\"true\"\n redirect-to=\"/login\"\n redirect-to-unverified=\"/emailVerification\"\n ></sqm-portal-protected-route>\n <sqm-portal-container direction=\"column\" gap=\"xxx-large\">\n <sqm-portal-profile></sqm-portal-profile> </sqm-portal-container\n ><sqm-portal-container direction=\"column\" gap=\"xxx-large\">\n <sqm-portal-change-password></sqm-portal-change-password>\n </sqm-portal-container>\n </template>\n <template path=\"/refer\">\n <sqm-portal-protected-route\n require-email-verification=\"true\"\n redirect-to=\"/login\"\n redirect-to-unverified=\"/emailVerification\"\n ></sqm-portal-protected-route>\n <sqm-referral-iframe></sqm-referral-iframe>\n </template>\n <template path=\"/activity\">\n <sqm-portal-protected-route\n require-email-verification=\"true\"\n redirect-to=\"/login\"\n redirect-to-unverified=\"/emailVerification\"\n ></sqm-portal-protected-route>\n <sqm-portal-container\n direction=\"column\"\n padding=\"xxx-large\"\n gap=\"xxx-large\"\n >\n <sqm-text> <h1>Activity</h1></sqm-text>\n <sqm-stat-container space=\"xxxx-large\"\n ><sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/referralsCount\"\n ><sqm-text><p>Referrals</p></sqm-text></sqm-big-stat\n >\n <sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/rewardsCountFiltered/AVAILABLE\"\n ><sqm-text><p>Rewards Earned</p></sqm-text></sqm-big-stat\n >\n <sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/rewardBalance/CREDIT/CENTS\"\n ><sqm-text><p>Reward Balance</p></sqm-text></sqm-big-stat\n >\n </sqm-stat-container>\n <sqm-referral-table>\n <sqm-referral-table-user-column></sqm-referral-table-user-column>\n <sqm-referral-table-rewards-column></sqm-referral-table-rewards-column>\n <sqm-referral-table-status-column></sqm-referral-table-status-column>\n <sqm-referral-table-date-column\n column-title=\"Referred\"\n date-shown=\"dateReferralStarted\"\n ></sqm-referral-table-date-column> </sqm-referral-table\n ></sqm-portal-container>\n </template>\n </sqm-router>\n </sqm-divided-layout>\n </sqm-divided-layout>\n </template>\n </sqm-router>\n </sqb-program-section>\n <sqm-portal-footer\n slot=\"footer\"\n support-email=\"support@example.com\"\n terms-link=\"https://example.com\"\n faq-link=\"https://example.com\"\n terms-text=\"Terms And Conditions\"\n faq-text=\"FAQ\"\n show-powered-by=\"true\"\n ></sqm-portal-footer>\n</sqm-portal-frame>\n";
|
|
6542
6542
|
|
|
6543
|
-
const portalTemplateWithDashboard = "<sqm-portal-frame>\r\n <a slot=\"header\" href=\"/\">\r\n <sqm-text style=\"height: 60px\">\r\n <img\r\n style=\"height: 60px\"\r\n src=\"https://res.cloudinary.com/saasquatch/image/upload/v1634255445/squatch-assets/Copy_of_saasquatch-logo-tree-large-horizontal.png\"\r\n />\r\n </sqm-text>\r\n </a>\r\n <sqb-program-section program-id=\"referral-program\">\r\n <sqm-router>\r\n <template\r\n path=\"/:path(\\bregister\\b|\\bemailVerification\\b|\\blogin\\b|\\bverifyEmail\\b|\\bforgotPassword\\b|\\bresetPassword\\b|\\blogout\\b)\"\r\n >\r\n <sqm-hero\r\n background=\"https://images.unsplash.com/photo-1599676821464-3555954838dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1939&q=80\"\r\n >\r\n <sqm-router>\r\n <template path=\"/register\">\r\n <sqm-portal-register>\r\n <sqm-name-fields slot=\"formData\"></sqm-name-fields>\r\n </sqm-portal-register>\r\n </template>\r\n\r\n <template path=\"/emailVerification\">\r\n <sqm-portal-protected-route\r\n redirect-to=\"/login\"\r\n ></sqm-portal-protected-route>\r\n <sqm-portal-email-verification></sqm-portal-email-verification>\r\n </template>\r\n\r\n <template path=\"/login\">\r\n <sqm-portal-login></sqm-portal-login>\r\n </template>\r\n\r\n <template path=\"/verifyEmail\">\r\n <sqm-portal-verify-email></sqm-portal-verify-email>\r\n </template>\r\n\r\n <template path=\"/forgotPassword\">\r\n <sqm-portal-forgot-password\r\n email-label=\"Business Email\"\r\n ></sqm-portal-forgot-password>\r\n </template>\r\n\r\n <template path=\"/resetPassword\">\r\n <sqm-portal-reset-password\r\n confirm-password=\"true\"\r\n ></sqm-portal-reset-password>\r\n </template>\r\n <template path=\"/logout\">\r\n <sqm-portal-logout next-page=\"/login\"></sqm-portal-logout>\r\n </template>\r\n </sqm-router>\r\n </sqm-hero>\r\n </template>\r\n </sqm-router>\r\n <sqm-router>\r\n <template path=\"/:path(\\bactivity\\b|\\beditProfile\\b)?\">\r\n <sqm-divided-layout\r\n direction=\"row\"\r\n style=\"\r\n border-top: 1px solid #eaeaea;\r\n border-bottom: 1px solid #eaeaea;\r\n \"\r\n >\r\n <sqm-navigation-sidebar>\r\n <sqm-navigation-sidebar-item\r\n path=\"/\"\r\n icon=\"house\"\r\n label=\"Dashboard\"\r\n ></sqm-navigation-sidebar-item>\r\n <sqm-navigation-sidebar-item\r\n path=\"/activity\"\r\n icon=\"bar-chart\"\r\n label=\"Activity\"\r\n ></sqm-navigation-sidebar-item>\r\n <sqm-navigation-sidebar-item\r\n path=\"/editProfile\"\r\n icon=\"person\"\r\n label=\"Edit Profile\"\r\n ></sqm-navigation-sidebar-item>\r\n <sqm-navigation-sidebar-item\r\n path=\"/logout\"\r\n icon=\"box-arrow-right\"\r\n label=\"Logout\"\r\n ></sqm-navigation-sidebar-item>\r\n </sqm-navigation-sidebar>\r\n <sqm-divided-layout direction=\"column\">\r\n <sqm-router>\r\n <template path=\"/\">\r\n <sqm-portal-protected-route\r\n require-email-verification=\"true\"\r\n redirect-to=\"/login\"\r\n redirect-to-unverified=\"/emailVerification\"\r\n ></sqm-portal-protected-route>\r\n <sqm-portal-container\r\n direction=\"column\"\r\n padding=\"xxx-large\"\r\n gap=\"xxx-large\"\r\n ><sqm-titled-section label-margin=\"xx-small\"\r\n ><sqm-text slot=\"label\"> <p>Welcome back,</p> </sqm-text\r\n ><sqm-text slot=\"content\">\r\n <h1>\r\n <sqm-user-name\r\n fallback=\"Anonymous User\"\r\n ></sqm-user-name>\r\n </h1> </sqm-text\r\n ></sqm-titled-section>\r\n <sqm-stat-container space=\"xxxx-large\"\r\n ><sqm-big-stat\r\n flex-reverse=\"true\"\r\n alignment=\"left\"\r\n stat-type=\"/referralsCount\"\r\n ><sqm-text><p>Referrals</p></sqm-text></sqm-big-stat\r\n ><sqm-big-stat\r\n flex-reverse=\"true\"\r\n alignment=\"left\"\r\n stat-type=\"/rewardBalance/CREDIT/CENTS\"\r\n ><sqm-text><p>Reward Balance</p></sqm-text></sqm-big-stat\r\n >\r\n </sqm-stat-container> </sqm-portal-container\r\n ><sqm-portal-container\r\n direction=\"column\"\r\n padding=\"xxx-large\"\r\n gap=\"xxx-large\"\r\n >\r\n <sqm-titled-section padding=\"none\" label-margin=\"x-large\"\r\n ><sqm-text slot=\"label\">\r\n <h2>Partner and Profit</h2> </sqm-text\r\n ><sqm-text slot=\"content\">\r\n <p>\r\n Get rewarded for referring potential customers to\r\n SaaSquatch. Earn commission for each successful lead you\r\n send our way\r\n </p>\r\n </sqm-text></sqm-titled-section\r\n >\r\n <sqm-titled-section label-margin=\"small\" padding=\"none\"\r\n ><sqm-text slot=\"label\">\r\n <h3>Share your referral link</h3> </sqm-text\r\n ><sqm-share-link slot=\"content\"></sqm-share-link\r\n ></sqm-titled-section>\r\n <sqm-titled-section label-margin=\"small\" padding=\"none\">\r\n <sqm-text slot=\"label\">\r\n <h3>Share your referral code</h3> </sqm-text\r\n ><sqm-share-code slot=\"content\"></sqm-share-code>\r\n </sqm-titled-section>\r\n <sqm-titled-section label-margin=\"small\" padding=\"none\"\r\n ><sqm-text slot=\"label\">\r\n <h3>Share via social media</h3> </sqm-text\r\n ><sqm-portal-container\r\n slot=\"content\"\r\n direction=\"row\"\r\n padding=\"none\"\r\n gap=\"xxx-large\"\r\n min-width=\"160px\"\r\n ><sqm-share-button\r\n icon=\"envelope\"\r\n medium=\"email\"\r\n size=\"medium\"\r\n pill=\"true\"\r\n >Email a friend</sqm-share-button\r\n ><sqm-share-button\r\n medium=\"twitter\"\r\n size=\"medium\"\r\n pill=\"true\"\r\n >Tweet about us</sqm-share-button\r\n ><sqm-share-button\r\n medium=\"facebook\"\r\n size=\"medium\"\r\n pill=\"true\"\r\n >Share on Facebook</sqm-share-button\r\n ></sqm-portal-container\r\n ></sqm-titled-section\r\n ></sqm-portal-container\r\n >\r\n </template>\r\n <template path=\"/editProfile\">\r\n <sqm-portal-protected-route\r\n require-email-verification=\"true\"\r\n redirect-to=\"/login\"\r\n redirect-to-unverified=\"/emailVerification\"\r\n ></sqm-portal-protected-route>\r\n <sqm-portal-container direction=\"column\" gap=\"xxx-large\">\r\n <sqm-portal-profile></sqm-portal-profile> </sqm-portal-container\r\n ><sqm-portal-container direction=\"column\" gap=\"xxx-large\">\r\n <sqm-portal-change-password></sqm-portal-change-password>\r\n </sqm-portal-container>\r\n </template>\r\n\r\n <template path=\"/activity\">\r\n <sqm-portal-protected-route\r\n require-email-verification=\"true\"\r\n redirect-to=\"/login\"\r\n redirect-to-unverified=\"/emailVerification\"\r\n ></sqm-portal-protected-route>\r\n <sqm-portal-container\r\n direction=\"column\"\r\n padding=\"xxx-large\"\r\n gap=\"xxx-large\"\r\n >\r\n <sqm-text> <h1>Activity</h1></sqm-text>\r\n <sqm-stat-container space=\"xxxx-large\"\r\n ><sqm-big-stat\r\n flex-reverse=\"true\"\r\n alignment=\"left\"\r\n stat-type=\"/referralsCount\"\r\n ><sqm-text><p>Referrals</p></sqm-text></sqm-big-stat\r\n >\r\n <sqm-big-stat\r\n flex-reverse=\"true\"\r\n alignment=\"left\"\r\n stat-type=\"/rewardsCountFiltered/AVAILABLE\"\r\n ><sqm-text><p>Rewards Earned</p></sqm-text></sqm-big-stat\r\n >\r\n <sqm-big-stat\r\n flex-reverse=\"true\"\r\n alignment=\"left\"\r\n stat-type=\"/rewardBalance/CREDIT/CENTS\"\r\n ><sqm-text><p>Reward Balance</p></sqm-text></sqm-big-stat\r\n >\r\n </sqm-stat-container>\r\n <sqm-referral-table>\r\n <sqm-referral-table-user-column></sqm-referral-table-user-column>\r\n <sqm-referral-table-rewards-column></sqm-referral-table-rewards-column>\r\n <sqm-referral-table-status-column></sqm-referral-table-status-column>\r\n <sqm-referral-table-date-column\r\n column-title=\"Referred\"\r\n date-shown=\"dateReferralStarted\"\r\n ></sqm-referral-table-date-column> </sqm-referral-table\r\n ></sqm-portal-container>\r\n </template>\r\n </sqm-router>\r\n </sqm-divided-layout>\r\n </sqm-divided-layout>\r\n </template>\r\n </sqm-router>\r\n </sqb-program-section>\r\n <sqm-portal-footer\r\n slot=\"footer\"\r\n support-email=\"support@example.com\"\r\n terms-link=\"https://example.com\"\r\n faq-link=\"https://example.com\"\r\n terms-text=\"Terms And Conditions\"\r\n faq-text=\"FAQ\"\r\n show-powered-by=\"true\"\r\n ></sqm-portal-footer>\r\n</sqm-portal-frame>\r\n";
|
|
6543
|
+
const portalTemplateWithDashboard = "<sqm-portal-frame>\n <a slot=\"header\" href=\"/\">\n <sqm-text style=\"height: 60px\">\n <img\n style=\"height: 60px\"\n src=\"https://res.cloudinary.com/saasquatch/image/upload/v1634255445/squatch-assets/Copy_of_saasquatch-logo-tree-large-horizontal.png\"\n />\n </sqm-text>\n </a>\n <sqb-program-section program-id=\"referral-program\">\n <sqm-router>\n <template\n path=\"/:path(\\bregister\\b|\\bemailVerification\\b|\\blogin\\b|\\bverifyEmail\\b|\\bforgotPassword\\b|\\bresetPassword\\b|\\blogout\\b)\"\n >\n <sqm-hero\n background=\"https://images.unsplash.com/photo-1599676821464-3555954838dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1939&q=80\"\n >\n <sqm-router>\n <template path=\"/register\">\n <sqm-portal-register>\n <sqm-name-fields slot=\"formData\"></sqm-name-fields>\n </sqm-portal-register>\n </template>\n\n <template path=\"/emailVerification\">\n <sqm-portal-protected-route\n redirect-to=\"/login\"\n ></sqm-portal-protected-route>\n <sqm-portal-email-verification></sqm-portal-email-verification>\n </template>\n\n <template path=\"/login\">\n <sqm-portal-login></sqm-portal-login>\n </template>\n\n <template path=\"/verifyEmail\">\n <sqm-portal-verify-email></sqm-portal-verify-email>\n </template>\n\n <template path=\"/forgotPassword\">\n <sqm-portal-forgot-password\n email-label=\"Business Email\"\n ></sqm-portal-forgot-password>\n </template>\n\n <template path=\"/resetPassword\">\n <sqm-portal-reset-password\n confirm-password=\"true\"\n ></sqm-portal-reset-password>\n </template>\n <template path=\"/logout\">\n <sqm-portal-logout next-page=\"/login\"></sqm-portal-logout>\n </template>\n </sqm-router>\n </sqm-hero>\n </template>\n </sqm-router>\n <sqm-router>\n <template path=\"/:path(\\bactivity\\b|\\beditProfile\\b)?\">\n <sqm-divided-layout\n direction=\"row\"\n style=\"\n border-top: 1px solid #eaeaea;\n border-bottom: 1px solid #eaeaea;\n \"\n >\n <sqm-navigation-sidebar>\n <sqm-navigation-sidebar-item\n path=\"/\"\n icon=\"house\"\n label=\"Dashboard\"\n ></sqm-navigation-sidebar-item>\n <sqm-navigation-sidebar-item\n path=\"/activity\"\n icon=\"bar-chart\"\n label=\"Activity\"\n ></sqm-navigation-sidebar-item>\n <sqm-navigation-sidebar-item\n path=\"/editProfile\"\n icon=\"person\"\n label=\"Edit Profile\"\n ></sqm-navigation-sidebar-item>\n <sqm-navigation-sidebar-item\n path=\"/logout\"\n icon=\"box-arrow-right\"\n label=\"Logout\"\n ></sqm-navigation-sidebar-item>\n </sqm-navigation-sidebar>\n <sqm-divided-layout direction=\"column\">\n <sqm-router>\n <template path=\"/\">\n <sqm-portal-protected-route\n require-email-verification=\"true\"\n redirect-to=\"/login\"\n redirect-to-unverified=\"/emailVerification\"\n ></sqm-portal-protected-route>\n <sqm-portal-container\n direction=\"column\"\n padding=\"xxx-large\"\n gap=\"xxx-large\"\n ><sqm-titled-section label-margin=\"xx-small\"\n ><sqm-text slot=\"label\"> <p>Welcome back,</p> </sqm-text\n ><sqm-text slot=\"content\">\n <h1>\n <sqm-user-name\n fallback=\"Anonymous User\"\n ></sqm-user-name>\n </h1> </sqm-text\n ></sqm-titled-section>\n <sqm-stat-container space=\"xxxx-large\"\n ><sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/referralsCount\"\n ><sqm-text><p>Referrals</p></sqm-text></sqm-big-stat\n ><sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/rewardBalance/CREDIT/CENTS\"\n ><sqm-text><p>Reward Balance</p></sqm-text></sqm-big-stat\n >\n </sqm-stat-container> </sqm-portal-container\n ><sqm-portal-container\n direction=\"column\"\n padding=\"xxx-large\"\n gap=\"xxx-large\"\n >\n <sqm-titled-section padding=\"none\" label-margin=\"x-large\"\n ><sqm-text slot=\"label\">\n <h2>Partner and Profit</h2> </sqm-text\n ><sqm-text slot=\"content\">\n <p>\n Get rewarded for referring potential customers to\n SaaSquatch. Earn commission for each successful lead you\n send our way\n </p>\n </sqm-text></sqm-titled-section\n >\n <sqm-titled-section label-margin=\"small\" padding=\"none\"\n ><sqm-text slot=\"label\">\n <h3>Share your referral link</h3> </sqm-text\n ><sqm-share-link slot=\"content\"></sqm-share-link\n ></sqm-titled-section>\n <sqm-titled-section label-margin=\"small\" padding=\"none\">\n <sqm-text slot=\"label\">\n <h3>Share your referral code</h3> </sqm-text\n ><sqm-share-code slot=\"content\"></sqm-share-code>\n </sqm-titled-section>\n <sqm-titled-section label-margin=\"small\" padding=\"none\"\n ><sqm-text slot=\"label\">\n <h3>Share via social media</h3> </sqm-text\n ><sqm-portal-container\n slot=\"content\"\n direction=\"row\"\n padding=\"none\"\n gap=\"xxx-large\"\n min-width=\"160px\"\n ><sqm-share-button\n icon=\"envelope\"\n medium=\"email\"\n size=\"medium\"\n pill=\"true\"\n >Email a friend</sqm-share-button\n ><sqm-share-button\n medium=\"twitter\"\n size=\"medium\"\n pill=\"true\"\n >Tweet about us</sqm-share-button\n ><sqm-share-button\n medium=\"facebook\"\n size=\"medium\"\n pill=\"true\"\n >Share on Facebook</sqm-share-button\n ></sqm-portal-container\n ></sqm-titled-section\n ></sqm-portal-container\n >\n </template>\n <template path=\"/editProfile\">\n <sqm-portal-protected-route\n require-email-verification=\"true\"\n redirect-to=\"/login\"\n redirect-to-unverified=\"/emailVerification\"\n ></sqm-portal-protected-route>\n <sqm-portal-container direction=\"column\" gap=\"xxx-large\">\n <sqm-portal-profile></sqm-portal-profile> </sqm-portal-container\n ><sqm-portal-container direction=\"column\" gap=\"xxx-large\">\n <sqm-portal-change-password></sqm-portal-change-password>\n </sqm-portal-container>\n </template>\n\n <template path=\"/activity\">\n <sqm-portal-protected-route\n require-email-verification=\"true\"\n redirect-to=\"/login\"\n redirect-to-unverified=\"/emailVerification\"\n ></sqm-portal-protected-route>\n <sqm-portal-container\n direction=\"column\"\n padding=\"xxx-large\"\n gap=\"xxx-large\"\n >\n <sqm-text> <h1>Activity</h1></sqm-text>\n <sqm-stat-container space=\"xxxx-large\"\n ><sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/referralsCount\"\n ><sqm-text><p>Referrals</p></sqm-text></sqm-big-stat\n >\n <sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/rewardsCountFiltered/AVAILABLE\"\n ><sqm-text><p>Rewards Earned</p></sqm-text></sqm-big-stat\n >\n <sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/rewardBalance/CREDIT/CENTS\"\n ><sqm-text><p>Reward Balance</p></sqm-text></sqm-big-stat\n >\n </sqm-stat-container>\n <sqm-referral-table>\n <sqm-referral-table-user-column></sqm-referral-table-user-column>\n <sqm-referral-table-rewards-column></sqm-referral-table-rewards-column>\n <sqm-referral-table-status-column></sqm-referral-table-status-column>\n <sqm-referral-table-date-column\n column-title=\"Referred\"\n date-shown=\"dateReferralStarted\"\n ></sqm-referral-table-date-column> </sqm-referral-table\n ></sqm-portal-container>\n </template>\n </sqm-router>\n </sqm-divided-layout>\n </sqm-divided-layout>\n </template>\n </sqm-router>\n </sqb-program-section>\n <sqm-portal-footer\n slot=\"footer\"\n support-email=\"support@example.com\"\n terms-link=\"https://example.com\"\n faq-link=\"https://example.com\"\n terms-text=\"Terms And Conditions\"\n faq-text=\"FAQ\"\n show-powered-by=\"true\"\n ></sqm-portal-footer>\n</sqm-portal-frame>\n";
|
|
6544
6544
|
|
|
6545
|
-
const multiProgramTemplate = "<sqm-portal-frame>\
|
|
6545
|
+
const multiProgramTemplate = "<sqm-portal-frame>\n <a slot=\"header\" href=\"/\">\n <sqm-text style=\"height: 60px\">\n <img\n style=\"height: 60px\"\n src=\"https://res.cloudinary.com/saasquatch/image/upload/v1634255445/squatch-assets/Copy_of_saasquatch-logo-tree-large-horizontal.png\"\n />\n </sqm-text>\n </a>\n <sqb-program-section program-id=\"referral-program-1\">\n <sqm-router>\n <template\n path=\"/:path(\\bregister\\b|\\bemailVerification\\b|\\blogin\\b|\\bverifyEmail\\b|\\bforgotPassword\\b|\\bresetPassword\\b|\\blogout\\b)\"\n >\n <sqm-hero\n background=\"https://images.unsplash.com/photo-1599676821464-3555954838dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1939&q=80\"\n >\n <sqm-router>\n <template path=\"/register\">\n <sqm-portal-register>\n <sqm-name-fields slot=\"formData\"></sqm-name-fields>\n </sqm-portal-register>\n </template>\n\n <template path=\"/emailVerification\">\n <sqm-portal-protected-route\n redirect-to=\"/login\"\n ></sqm-portal-protected-route>\n <sqm-portal-email-verification></sqm-portal-email-verification>\n </template>\n\n <template path=\"/login\">\n <sqm-portal-login></sqm-portal-login>\n </template>\n\n <template path=\"/verifyEmail\">\n <sqm-portal-verify-email></sqm-portal-verify-email>\n </template>\n\n <template path=\"/forgotPassword\">\n <sqm-portal-forgot-password\n email-label=\"Business Email\"\n ></sqm-portal-forgot-password>\n </template>\n\n <template path=\"/resetPassword\">\n <sqm-portal-reset-password\n confirm-password=\"true\"\n ></sqm-portal-reset-password>\n </template>\n <template path=\"/logout\">\n <sqm-portal-logout next-page=\"/login\"></sqm-portal-logout>\n </template>\n </sqm-router>\n </sqm-hero>\n </template>\n </sqm-router>\n <sqm-router>\n <template path=\"/:path(\\bactivity\\b|\\beditProfile\\b)?\">\n <sqm-divided-layout\n direction=\"row\"\n style=\"\n border-top: 1px solid #eaeaea;\n border-bottom: 1px solid #eaeaea;\n \"\n >\n <sqm-navigation-sidebar>\n <sqm-program-menu>\n <sl-menu-item value=\"referral-program-1\"\n >Referral Program 1</sl-menu-item\n >\n <sl-menu-item value=\"referral-program-2\"\n >Referral Program 2</sl-menu-item\n >\n </sqm-program-menu>\n <sqm-navigation-sidebar-item\n path=\"/\"\n icon=\"house\"\n label=\"Dashboard\"\n ></sqm-navigation-sidebar-item>\n <sqm-navigation-sidebar-item\n path=\"/activity\"\n icon=\"bar-chart\"\n label=\"Activity\"\n ></sqm-navigation-sidebar-item>\n <sqm-navigation-sidebar-item\n path=\"/editProfile\"\n icon=\"person\"\n label=\"Edit Profile\"\n ></sqm-navigation-sidebar-item>\n <sqm-navigation-sidebar-item\n path=\"/logout\"\n icon=\"box-arrow-right\"\n label=\"Logout\"\n ></sqm-navigation-sidebar-item>\n </sqm-navigation-sidebar>\n <sqm-divided-layout direction=\"column\">\n <sqm-router>\n <template path=\"/\">\n <sqm-portal-protected-route\n require-email-verification=\"true\"\n redirect-to=\"/login\"\n redirect-to-unverified=\"/emailVerification\"\n ></sqm-portal-protected-route>\n <sqb-program-switch>\n <template program-id=\"referral-program-1\">\n <sqb-widget\n widget-type=\"p/referral-program-1/w/referrerWidget\"\n track-loads=\"true\"\n ></sqb-widget>\n </template>\n <template program-id=\"referral-program-2\">\n <sqb-widget\n widget-type=\"p/referral-program-2/w/referrerWidget\"\n track-loads=\"true\"\n ></sqb-widget>\n </template>\n </sqb-program-switch>\n </template>\n <template path=\"/editProfile\">\n <sqm-portal-protected-route\n require-email-verification=\"true\"\n redirect-to=\"/login\"\n redirect-to-unverified=\"/emailVerification\"\n ></sqm-portal-protected-route>\n <sqm-portal-container direction=\"column\" gap=\"xxx-large\">\n <sqm-portal-profile></sqm-portal-profile></sqm-portal-container\n ><sqm-portal-container direction=\"column\" gap=\"xxx-large\">\n <sqm-portal-change-password></sqm-portal-change-password>\n </sqm-portal-container>\n </template>\n <template path=\"/activity\">\n <sqm-portal-protected-route\n require-email-verification=\"true\"\n redirect-to=\"/login\"\n redirect-to-unverified=\"/emailVerification\"\n ></sqm-portal-protected-route>\n <sqm-portal-container\n direction=\"column\"\n padding=\"xxx-large\"\n gap=\"xxx-large\"\n >\n <sqm-text> <h1>Activity</h1></sqm-text>\n <sqm-stat-container space=\"xxxx-large\"\n ><sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/referralsCount\"\n ><sqm-text><p>Referrals</p></sqm-text></sqm-big-stat\n >\n <sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/rewardsCountFiltered/AVAILABLE\"\n ><sqm-text><p>Rewards Earned</p></sqm-text></sqm-big-stat\n >\n <sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/rewardBalance/CREDIT/CENTS\"\n ><sqm-text><p>Reward Balance</p></sqm-text></sqm-big-stat\n >\n </sqm-stat-container>\n <sqm-referral-table>\n <sqm-referral-table-user-column></sqm-referral-table-user-column>\n <sqm-referral-table-rewards-column></sqm-referral-table-rewards-column>\n <sqm-referral-table-status-column></sqm-referral-table-status-column>\n <sqm-referral-table-date-column\n column-title=\"Referred\"\n date-shown=\"dateReferralStarted\"\n ></sqm-referral-table-date-column> </sqm-referral-table\n ></sqm-portal-container>\n </template>\n </sqm-router>\n </sqm-divided-layout>\n </sqm-divided-layout>\n </template>\n </sqm-router>\n </sqb-program-section>\n <sqm-portal-footer\n slot=\"footer\"\n support-email=\"support@example.com\"\n terms-link=\"https://example.com\"\n faq-link=\"https://example.com\"\n terms-text=\"Terms And Conditions\"\n faq-text=\"FAQ\"\n show-powered-by=\"true\"\n ></sqm-portal-footer>\n</sqm-portal-frame>\n";
|
|
6546
6546
|
|
|
6547
|
-
const multiProgramTemplateWithDashboard = "<sqm-portal-frame>\r\n <a slot=\"header\" href=\"/\">\r\n <sqm-text style=\"height: 60px\">\r\n <img\r\n style=\"height: 60px\"\r\n src=\"https://res.cloudinary.com/saasquatch/image/upload/v1634255445/squatch-assets/Copy_of_saasquatch-logo-tree-large-horizontal.png\"\r\n />\r\n </sqm-text>\r\n </a>\r\n <sqb-program-section program-id=\"referral-program-1\">\r\n <sqm-hero\r\n background=\"https://images.unsplash.com/photo-1599676821464-3555954838dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1939&q=80\"\r\n >\r\n <sqm-router>\r\n <template path=\"/register\">\r\n <sqm-portal-register>\r\n <sqm-name-fields slot=\"formData\"></sqm-name-fields>\r\n </sqm-portal-register>\r\n </template>\r\n\r\n <template path=\"/emailVerification\">\r\n <sqm-portal-protected-route\r\n redirect-to=\"/login\"\r\n ></sqm-portal-protected-route>\r\n <sqm-portal-email-verification></sqm-portal-email-verification>\r\n </template>\r\n\r\n <template path=\"/login\">\r\n <sqm-portal-login></sqm-portal-login>\r\n </template>\r\n\r\n <template path=\"/verifyEmail\">\r\n <sqm-portal-verify-email></sqm-portal-verify-email>\r\n </template>\r\n\r\n <template path=\"/forgotPassword\">\r\n <sqm-portal-forgot-password\r\n email-label=\"Business Email\"\r\n ></sqm-portal-forgot-password>\r\n </template>\r\n\r\n <template path=\"/resetPassword\">\r\n <sqm-portal-reset-password\r\n confirm-password=\"true\"\r\n ></sqm-portal-reset-password>\r\n </template>\r\n <template path=\"/logout\">\r\n <sqm-portal-logout next-page=\"/login\"></sqm-portal-logout>\r\n </template>\r\n </sqm-router>\r\n </sqm-hero>\r\n <sqm-router>\r\n <template path=\"/:path(\\bactivity\\b|\\beditProfile\\b)?\">\r\n <sqm-divided-layout\r\n direction=\"row\"\r\n style=\"\r\n border-top: 1px solid #eaeaea;\r\n border-bottom: 1px solid #eaeaea;\r\n \"\r\n >\r\n <sqm-navigation-sidebar>\r\n <sqm-program-menu>\r\n <sl-menu-item value=\"referral-program-1\"\r\n >Referral Program 1</sl-menu-item\r\n >\r\n <sl-menu-item value=\"referral-program-2\"\r\n >Referral Program 2</sl-menu-item\r\n >\r\n </sqm-program-menu>\r\n <sqm-navigation-sidebar-item\r\n path=\"/\"\r\n icon=\"house\"\r\n label=\"Dashboard\"\r\n ></sqm-navigation-sidebar-item>\r\n <sqm-navigation-sidebar-item\r\n path=\"/activity\"\r\n icon=\"bar-chart\"\r\n label=\"Activity\"\r\n ></sqm-navigation-sidebar-item>\r\n <sqm-navigation-sidebar-item\r\n path=\"/editProfile\"\r\n icon=\"person\"\r\n label=\"Edit Profile\"\r\n ></sqm-navigation-sidebar-item>\r\n <sqm-navigation-sidebar-item\r\n path=\"/logout\"\r\n icon=\"box-arrow-right\"\r\n label=\"Logout\"\r\n ></sqm-navigation-sidebar-item>\r\n </sqm-navigation-sidebar>\r\n <sqm-divided-layout direction=\"column\">\r\n <sqm-router>\r\n <template path=\"/\">\r\n <sqm-portal-protected-route\r\n require-email-verification=\"true\"\r\n redirect-to=\"/login\"\r\n redirect-to-unverified=\"/emailVerification\"\r\n ></sqm-portal-protected-route\r\n ><sqm-portal-container\r\n direction=\"column\"\r\n padding=\"xxx-large\"\r\n gap=\"xxx-large\"\r\n ><sqm-titled-section label-margin=\"xx-small\"\r\n ><sqm-text slot=\"label\"> <p>Welcome back,</p> </sqm-text\r\n ><sqm-text slot=\"content\">\r\n <h1>\r\n <sqm-user-name\r\n fallback=\"Anonymous User\"\r\n ></sqm-user-name>\r\n </h1> </sqm-text\r\n ></sqm-titled-section>\r\n <sqm-stat-container space=\"xxxx-large\"\r\n ><sqm-big-stat\r\n flex-reverse=\"true\"\r\n alignment=\"left\"\r\n stat-type=\"/referralsCount\"\r\n ><sqm-text><p>Referrals</p></sqm-text></sqm-big-stat\r\n >\r\n <sqm-big-stat\r\n flex-reverse=\"true\"\r\n alignment=\"left\"\r\n stat-type=\"/rewardsCountFiltered/AVAILABLE\"\r\n ><sqm-text><p>Rewards Earned</p></sqm-text></sqm-big-stat\r\n >\r\n <sqm-big-stat\r\n flex-reverse=\"true\"\r\n alignment=\"left\"\r\n stat-type=\"/rewardBalance/CREDIT/CENTS\"\r\n ><sqm-text><p>Reward Balance</p></sqm-text></sqm-big-stat\r\n >\r\n </sqm-stat-container> </sqm-portal-container\r\n ><sqm-portal-container\r\n direction=\"column\"\r\n padding=\"xxx-large\"\r\n gap=\"xxx-large\"\r\n >\r\n <sqm-titled-section padding=\"none\" label-margin=\"x-large\"\r\n ><sqm-text slot=\"label\">\r\n <h2>Partner and Profit</h2> </sqm-text\r\n ><sqm-text slot=\"content\">\r\n <p>\r\n Get rewarded for referring potential customers to\r\n SaaSquatch. Earn commission for each successful lead you\r\n send our way\r\n </p>\r\n </sqm-text></sqm-titled-section\r\n >\r\n <sqm-titled-section label-margin=\"small\" padding=\"none\"\r\n ><sqm-text slot=\"label\">\r\n <h3>Share your referral link</h3> </sqm-text\r\n ><sqm-share-link slot=\"content\"></sqm-share-link\r\n ></sqm-titled-section>\r\n <sqm-titled-section label-margin=\"small\" padding=\"none\">\r\n <sqm-text slot=\"label\">\r\n <h3>Share your referral code</h3> </sqm-text\r\n ><sqm-share-code slot=\"content\"></sqm-share-code>\r\n </sqm-titled-section>\r\n <sqm-titled-section label-margin=\"small\" padding=\"none\"\r\n ><sqm-text slot=\"label\">\r\n <h3>Share via social media</h3> </sqm-text\r\n ><sqm-portal-container\r\n slot=\"content\"\r\n direction=\"row\"\r\n padding=\"none\"\r\n gap=\"xxx-large\"\r\n min-width=\"160px\"\r\n ><sqm-share-button\r\n icon=\"envelope\"\r\n medium=\"email\"\r\n size=\"medium\"\r\n pill=\"true\"\r\n >Email a friend</sqm-share-button\r\n ><sqm-share-button\r\n medium=\"twitter\"\r\n size=\"medium\"\r\n pill=\"true\"\r\n >Tweet about us</sqm-share-button\r\n ><sqm-share-button\r\n medium=\"facebook\"\r\n size=\"medium\"\r\n pill=\"true\"\r\n >Share on Facebook</sqm-share-button\r\n ></sqm-portal-container\r\n ></sqm-titled-section\r\n ></sqm-portal-container\r\n >\r\n </template>\r\n <template path=\"/editProfile\">\r\n <sqm-portal-protected-route\r\n require-email-verification=\"true\"\r\n redirect-to=\"/login\"\r\n redirect-to-unverified=\"/emailVerification\"\r\n ></sqm-portal-protected-route>\r\n <sqm-portal-container direction=\"column\" gap=\"xxx-large\">\r\n <sqm-portal-profile></sqm-portal-profile> </sqm-portal-container\r\n ><sqm-portal-container direction=\"column\" gap=\"xxx-large\">\r\n <sqm-portal-change-password></sqm-portal-change-password>\r\n </sqm-portal-container>\r\n </template>\r\n <template path=\"/activity\">\r\n <sqm-portal-protected-route\r\n require-email-verification=\"true\"\r\n redirect-to=\"/login\"\r\n redirect-to-unverified=\"/emailVerification\"\r\n ></sqm-portal-protected-route>\r\n <sqm-portal-container\r\n direction=\"column\"\r\n padding=\"xxx-large\"\r\n gap=\"xxx-large\"\r\n >\r\n <sqm-text> <h1>Activity</h1></sqm-text>\r\n <sqm-stat-container space=\"xxxx-large\"\r\n ><sqm-big-stat\r\n flex-reverse=\"true\"\r\n alignment=\"left\"\r\n stat-type=\"/referralsCount\"\r\n ><sqm-text><p>Referrals</p></sqm-text></sqm-big-stat\r\n >\r\n <sqm-big-stat\r\n flex-reverse=\"true\"\r\n alignment=\"left\"\r\n stat-type=\"/rewardsCountFiltered/AVAILABLE\"\r\n ><sqm-text><p>Rewards Earned</p></sqm-text></sqm-big-stat\r\n >\r\n <sqm-big-stat\r\n flex-reverse=\"true\"\r\n alignment=\"left\"\r\n stat-type=\"/rewardBalance/CREDIT/CENTS\"\r\n ><sqm-text><p>Reward Balance</p></sqm-text></sqm-big-stat\r\n >\r\n </sqm-stat-container>\r\n <sqm-referral-table>\r\n <sqm-referral-table-user-column></sqm-referral-table-user-column>\r\n <sqm-referral-table-rewards-column></sqm-referral-table-rewards-column>\r\n <sqm-referral-table-status-column></sqm-referral-table-status-column>\r\n <sqm-referral-table-date-column\r\n column-title=\"Referred\"\r\n date-shown=\"dateReferralStarted\"\r\n ></sqm-referral-table-date-column> </sqm-referral-table\r\n ></sqm-portal-container>\r\n </template>\r\n </sqm-router>\r\n </sqm-divided-layout>\r\n </sqm-divided-layout>\r\n </template>\r\n </sqm-router>\r\n </sqb-program-section>\r\n <sqm-portal-footer\r\n slot=\"footer\"\r\n support-email=\"support@example.com\"\r\n terms-link=\"https://example.com\"\r\n faq-link=\"https://example.com\"\r\n terms-text=\"Terms And Conditions\"\r\n faq-text=\"FAQ\"\r\n show-powered-by=\"true\"\r\n ></sqm-portal-footer>\r\n</sqm-portal-frame>\r\n";
|
|
6547
|
+
const multiProgramTemplateWithDashboard = "<sqm-portal-frame>\n <a slot=\"header\" href=\"/\">\n <sqm-text style=\"height: 60px\">\n <img\n style=\"height: 60px\"\n src=\"https://res.cloudinary.com/saasquatch/image/upload/v1634255445/squatch-assets/Copy_of_saasquatch-logo-tree-large-horizontal.png\"\n />\n </sqm-text>\n </a>\n <sqb-program-section program-id=\"referral-program-1\">\n <sqm-hero\n background=\"https://images.unsplash.com/photo-1599676821464-3555954838dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1939&q=80\"\n >\n <sqm-router>\n <template path=\"/register\">\n <sqm-portal-register>\n <sqm-name-fields slot=\"formData\"></sqm-name-fields>\n </sqm-portal-register>\n </template>\n\n <template path=\"/emailVerification\">\n <sqm-portal-protected-route\n redirect-to=\"/login\"\n ></sqm-portal-protected-route>\n <sqm-portal-email-verification></sqm-portal-email-verification>\n </template>\n\n <template path=\"/login\">\n <sqm-portal-login></sqm-portal-login>\n </template>\n\n <template path=\"/verifyEmail\">\n <sqm-portal-verify-email></sqm-portal-verify-email>\n </template>\n\n <template path=\"/forgotPassword\">\n <sqm-portal-forgot-password\n email-label=\"Business Email\"\n ></sqm-portal-forgot-password>\n </template>\n\n <template path=\"/resetPassword\">\n <sqm-portal-reset-password\n confirm-password=\"true\"\n ></sqm-portal-reset-password>\n </template>\n <template path=\"/logout\">\n <sqm-portal-logout next-page=\"/login\"></sqm-portal-logout>\n </template>\n </sqm-router>\n </sqm-hero>\n <sqm-router>\n <template path=\"/:path(\\bactivity\\b|\\beditProfile\\b)?\">\n <sqm-divided-layout\n direction=\"row\"\n style=\"\n border-top: 1px solid #eaeaea;\n border-bottom: 1px solid #eaeaea;\n \"\n >\n <sqm-navigation-sidebar>\n <sqm-program-menu>\n <sl-menu-item value=\"referral-program-1\"\n >Referral Program 1</sl-menu-item\n >\n <sl-menu-item value=\"referral-program-2\"\n >Referral Program 2</sl-menu-item\n >\n </sqm-program-menu>\n <sqm-navigation-sidebar-item\n path=\"/\"\n icon=\"house\"\n label=\"Dashboard\"\n ></sqm-navigation-sidebar-item>\n <sqm-navigation-sidebar-item\n path=\"/activity\"\n icon=\"bar-chart\"\n label=\"Activity\"\n ></sqm-navigation-sidebar-item>\n <sqm-navigation-sidebar-item\n path=\"/editProfile\"\n icon=\"person\"\n label=\"Edit Profile\"\n ></sqm-navigation-sidebar-item>\n <sqm-navigation-sidebar-item\n path=\"/logout\"\n icon=\"box-arrow-right\"\n label=\"Logout\"\n ></sqm-navigation-sidebar-item>\n </sqm-navigation-sidebar>\n <sqm-divided-layout direction=\"column\">\n <sqm-router>\n <template path=\"/\">\n <sqm-portal-protected-route\n require-email-verification=\"true\"\n redirect-to=\"/login\"\n redirect-to-unverified=\"/emailVerification\"\n ></sqm-portal-protected-route\n ><sqm-portal-container\n direction=\"column\"\n padding=\"xxx-large\"\n gap=\"xxx-large\"\n ><sqm-titled-section label-margin=\"xx-small\"\n ><sqm-text slot=\"label\"> <p>Welcome back,</p> </sqm-text\n ><sqm-text slot=\"content\">\n <h1>\n <sqm-user-name\n fallback=\"Anonymous User\"\n ></sqm-user-name>\n </h1> </sqm-text\n ></sqm-titled-section>\n <sqm-stat-container space=\"xxxx-large\"\n ><sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/referralsCount\"\n ><sqm-text><p>Referrals</p></sqm-text></sqm-big-stat\n >\n <sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/rewardsCountFiltered/AVAILABLE\"\n ><sqm-text><p>Rewards Earned</p></sqm-text></sqm-big-stat\n >\n <sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/rewardBalance/CREDIT/CENTS\"\n ><sqm-text><p>Reward Balance</p></sqm-text></sqm-big-stat\n >\n </sqm-stat-container> </sqm-portal-container\n ><sqm-portal-container\n direction=\"column\"\n padding=\"xxx-large\"\n gap=\"xxx-large\"\n >\n <sqm-titled-section padding=\"none\" label-margin=\"x-large\"\n ><sqm-text slot=\"label\">\n <h2>Partner and Profit</h2> </sqm-text\n ><sqm-text slot=\"content\">\n <p>\n Get rewarded for referring potential customers to\n SaaSquatch. Earn commission for each successful lead you\n send our way\n </p>\n </sqm-text></sqm-titled-section\n >\n <sqm-titled-section label-margin=\"small\" padding=\"none\"\n ><sqm-text slot=\"label\">\n <h3>Share your referral link</h3> </sqm-text\n ><sqm-share-link slot=\"content\"></sqm-share-link\n ></sqm-titled-section>\n <sqm-titled-section label-margin=\"small\" padding=\"none\">\n <sqm-text slot=\"label\">\n <h3>Share your referral code</h3> </sqm-text\n ><sqm-share-code slot=\"content\"></sqm-share-code>\n </sqm-titled-section>\n <sqm-titled-section label-margin=\"small\" padding=\"none\"\n ><sqm-text slot=\"label\">\n <h3>Share via social media</h3> </sqm-text\n ><sqm-portal-container\n slot=\"content\"\n direction=\"row\"\n padding=\"none\"\n gap=\"xxx-large\"\n min-width=\"160px\"\n ><sqm-share-button\n icon=\"envelope\"\n medium=\"email\"\n size=\"medium\"\n pill=\"true\"\n >Email a friend</sqm-share-button\n ><sqm-share-button\n medium=\"twitter\"\n size=\"medium\"\n pill=\"true\"\n >Tweet about us</sqm-share-button\n ><sqm-share-button\n medium=\"facebook\"\n size=\"medium\"\n pill=\"true\"\n >Share on Facebook</sqm-share-button\n ></sqm-portal-container\n ></sqm-titled-section\n ></sqm-portal-container\n >\n </template>\n <template path=\"/editProfile\">\n <sqm-portal-protected-route\n require-email-verification=\"true\"\n redirect-to=\"/login\"\n redirect-to-unverified=\"/emailVerification\"\n ></sqm-portal-protected-route>\n <sqm-portal-container direction=\"column\" gap=\"xxx-large\">\n <sqm-portal-profile></sqm-portal-profile> </sqm-portal-container\n ><sqm-portal-container direction=\"column\" gap=\"xxx-large\">\n <sqm-portal-change-password></sqm-portal-change-password>\n </sqm-portal-container>\n </template>\n <template path=\"/activity\">\n <sqm-portal-protected-route\n require-email-verification=\"true\"\n redirect-to=\"/login\"\n redirect-to-unverified=\"/emailVerification\"\n ></sqm-portal-protected-route>\n <sqm-portal-container\n direction=\"column\"\n padding=\"xxx-large\"\n gap=\"xxx-large\"\n >\n <sqm-text> <h1>Activity</h1></sqm-text>\n <sqm-stat-container space=\"xxxx-large\"\n ><sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/referralsCount\"\n ><sqm-text><p>Referrals</p></sqm-text></sqm-big-stat\n >\n <sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/rewardsCountFiltered/AVAILABLE\"\n ><sqm-text><p>Rewards Earned</p></sqm-text></sqm-big-stat\n >\n <sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/rewardBalance/CREDIT/CENTS\"\n ><sqm-text><p>Reward Balance</p></sqm-text></sqm-big-stat\n >\n </sqm-stat-container>\n <sqm-referral-table>\n <sqm-referral-table-user-column></sqm-referral-table-user-column>\n <sqm-referral-table-rewards-column></sqm-referral-table-rewards-column>\n <sqm-referral-table-status-column></sqm-referral-table-status-column>\n <sqm-referral-table-date-column\n column-title=\"Referred\"\n date-shown=\"dateReferralStarted\"\n ></sqm-referral-table-date-column> </sqm-referral-table\n ></sqm-portal-container>\n </template>\n </sqm-router>\n </sqm-divided-layout>\n </sqm-divided-layout>\n </template>\n </sqm-router>\n </sqb-program-section>\n <sqm-portal-footer\n slot=\"footer\"\n support-email=\"support@example.com\"\n terms-link=\"https://example.com\"\n faq-link=\"https://example.com\"\n terms-text=\"Terms And Conditions\"\n faq-text=\"FAQ\"\n show-powered-by=\"true\"\n ></sqm-portal-footer>\n</sqm-portal-frame>\n";
|
|
6548
6548
|
|
|
6549
|
-
const dashboardTemplate = "<sqm-portal-container direction=\"column\" padding=\"xxx-large\" gap=\"xxx-large\"\
|
|
6549
|
+
const dashboardTemplate = "<sqm-portal-container direction=\"column\" padding=\"xxx-large\" gap=\"xxx-large\"\n ><sqm-titled-section label-margin=\"xx-small\"\n ><sqm-text slot=\"label\"> <p>Welcome back,</p> </sqm-text\n ><sqm-text slot=\"content\">\n <h1>\n <sqm-user-name fallback=\"Anonymous User\"></sqm-user-name>\n </h1> </sqm-text\n ></sqm-titled-section>\n <sqm-stat-container space=\"xxxx-large\"\n ><sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/referralsCount\"\n ><sqm-text><p>Referrals</p></sqm-text></sqm-big-stat\n >\n <sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/rewardsCountFiltered/AVAILABLE\"\n ><sqm-text><p>Rewards Earned</p></sqm-text></sqm-big-stat\n >\n <sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/rewardBalance/CREDIT/CENTS\"\n ><sqm-text><p>Reward Balance</p></sqm-text></sqm-big-stat\n >\n </sqm-stat-container> </sqm-portal-container\n><sqm-portal-container direction=\"column\" padding=\"xxx-large\" gap=\"xxx-large\">\n <sqm-titled-section padding=\"none\" label-margin=\"x-large\"\n ><sqm-text slot=\"label\"> <h2>Partner and Profit</h2> </sqm-text\n ><sqm-text slot=\"content\">\n <p>\n Get rewarded for referring potential customers to SaaSquatch. Earn\n commission for each successful lead you send our way\n </p>\n </sqm-text></sqm-titled-section\n >\n <sqm-titled-section label-margin=\"small\" padding=\"none\"\n ><sqm-text slot=\"label\"> <h3>Share your referral link</h3> </sqm-text\n ><sqm-share-link slot=\"content\"></sqm-share-link\n ></sqm-titled-section>\n <sqm-titled-section label-margin=\"small\" padding=\"none\">\n <sqm-text slot=\"label\"> <h3>Share your referral code</h3> </sqm-text\n ><sqm-share-code slot=\"content\"></sqm-share-code>\n </sqm-titled-section>\n <sqm-titled-section label-margin=\"small\" padding=\"none\"\n ><sqm-text slot=\"label\"> <h3>Share via social media</h3> </sqm-text\n ><sqm-portal-container\n slot=\"content\"\n direction=\"row\"\n padding=\"none\"\n gap=\"xxx-large\"\n min-width=\"160px\"\n ><sqm-share-button\n icon=\"envelope\"\n medium=\"email\"\n size=\"medium\"\n pill=\"true\"\n >Email a friend</sqm-share-button\n ><sqm-share-button medium=\"twitter\" size=\"medium\" pill=\"true\"\n >Tweet about us</sqm-share-button\n ><sqm-share-button medium=\"facebook\" size=\"medium\" pill=\"true\"\n >Share on Facebook</sqm-share-button\n ></sqm-portal-container\n ></sqm-titled-section\n ></sqm-portal-container\n>\n";
|
|
6550
6550
|
|
|
6551
|
-
const leadSubmitTemplate = "<sqm-referral-iframe></sqm-referral-iframe>\
|
|
6551
|
+
const leadSubmitTemplate = "<sqm-referral-iframe></sqm-referral-iframe>\n";
|
|
6552
6552
|
|
|
6553
|
-
const editProfileTemplate = "<sqm-portal-protected-route\
|
|
6553
|
+
const editProfileTemplate = "<sqm-portal-protected-route\n require-email-verification=\"true\"\n redirect-to=\"/login\"\n redirect-to-unverified=\"/emailVerification\"\n></sqm-portal-protected-route>\n<sqm-portal-container direction=\"column\" gap=\"xxx-large\">\n <sqm-portal-profile></sqm-portal-profile> </sqm-portal-container\n><sqm-portal-container direction=\"column\" gap=\"xxx-large\">\n <sqm-portal-change-password></sqm-portal-change-password>\n</sqm-portal-container>\n";
|
|
6554
6554
|
|
|
6555
|
-
const activityTemplate = "<sqm-portal-protected-route\
|
|
6555
|
+
const activityTemplate = "<sqm-portal-protected-route\n require-email-verification=\"true\"\n redirect-to=\"/login\"\n redirect-to-unverified=\"/emailVerification\"\n></sqm-portal-protected-route>\n<sqm-portal-container direction=\"column\" padding=\"xxx-large\" gap=\"xxx-large\">\n <sqm-text> <h1>Activity</h1></sqm-text>\n <sqm-stat-container space=\"xxxx-large\"\n ><sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/referralsCount\"\n ><sqm-text><p>Referrals</p></sqm-text></sqm-big-stat\n >\n <sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/rewardsCountFiltered/AVAILABLE\"\n ><sqm-text><p>Rewards Earned</p></sqm-text></sqm-big-stat\n >\n <sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/rewardBalance/CREDIT/CENTS\"\n ><sqm-text><p>Reward Balance</p></sqm-text></sqm-big-stat\n >\n </sqm-stat-container>\n <sqm-referral-table>\n <sqm-referral-table-user-column></sqm-referral-table-user-column>\n <sqm-referral-table-rewards-column></sqm-referral-table-rewards-column>\n <sqm-referral-table-status-column></sqm-referral-table-status-column>\n <sqm-referral-table-date-column\n column-title=\"Referred\"\n date-shown=\"dateReferralStarted\"\n ></sqm-referral-table-date-column> </sqm-referral-table\n></sqm-portal-container>\n";
|
|
6556
6556
|
|
|
6557
|
-
const resetPasswordEmailTemplate = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional //EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\r\n\r\n<html\r\n xmlns=\"http://www.w3.org/1999/xhtml\"\r\n xmlns:o=\"urn:schemas-microsoft-com:office:office\"\r\n xmlns:v=\"urn:schemas-microsoft-com:vml\"\r\n>\r\n <head>\r\n <!--[if gte mso 9\r\n ]><xml\r\n ><o:OfficeDocumentSettings\r\n ><o:AllowPNG /><o:PixelsPerInch\r\n >96</o:PixelsPerInch\r\n ></o:OfficeDocumentSettings\r\n ></xml\r\n ><!\r\n [endif]-->\r\n <meta content=\"text/html; charset=utf-8\" http-equiv=\"Content-Type\" />\r\n <meta content=\"width=device-width\" name=\"viewport\" />\r\n <!--[if !mso]><!-->\r\n <meta content=\"IE=edge\" http-equiv=\"X-UA-Compatible\" />\r\n <!--<![endif]-->\r\n <title></title>\r\n <!--[if !mso]><!-->\r\n <!--<![endif]-->\r\n <style type=\"text/css\">\r\n body {\r\n margin: 0;\r\n padding: 0;\r\n }\r\n\r\n table,\r\n td,\r\n tr {\r\n vertical-align: top;\r\n border-collapse: collapse;\r\n }\r\n\r\n * {\r\n line-height: inherit;\r\n }\r\n\r\n a[x-apple-data-detectors=\"true\"] {\r\n color: inherit !important;\r\n text-decoration: none !important;\r\n }\r\n </style>\r\n <style id=\"media-query\" type=\"text/css\">\r\n @media (max-width: 520px) {\r\n .block-grid,\r\n .col {\r\n min-width: 320px !important;\r\n max-width: 100% !important;\r\n display: block !important;\r\n }\r\n\r\n .block-grid {\r\n width: 100% !important;\r\n }\r\n\r\n .col {\r\n width: 100% !important;\r\n }\r\n\r\n .col_cont {\r\n margin: 0 auto;\r\n }\r\n\r\n img.fullwidth,\r\n img.fullwidthOnMobile {\r\n max-width: 100% !important;\r\n }\r\n\r\n .no-stack .col {\r\n min-width: 0 !important;\r\n display: table-cell !important;\r\n }\r\n\r\n .no-stack.two-up .col {\r\n width: 50% !important;\r\n }\r\n\r\n .no-stack .col.num2 {\r\n width: 16.6% !important;\r\n }\r\n\r\n .no-stack .col.num3 {\r\n width: 25% !important;\r\n }\r\n\r\n .no-stack .col.num4 {\r\n width: 33% !important;\r\n }\r\n\r\n .no-stack .col.num5 {\r\n width: 41.6% !important;\r\n }\r\n\r\n .no-stack .col.num6 {\r\n width: 50% !important;\r\n }\r\n\r\n .no-stack .col.num7 {\r\n width: 58.3% !important;\r\n }\r\n\r\n .no-stack .col.num8 {\r\n width: 66.6% !important;\r\n }\r\n\r\n .no-stack .col.num9 {\r\n width: 75% !important;\r\n }\r\n\r\n .no-stack .col.num10 {\r\n width: 83.3% !important;\r\n }\r\n\r\n .video-block {\r\n max-width: none !important;\r\n }\r\n\r\n .mobile_hide {\r\n min-height: 0px;\r\n max-height: 0px;\r\n max-width: 0px;\r\n display: none;\r\n overflow: hidden;\r\n font-size: 0px;\r\n }\r\n\r\n .desktop_hide {\r\n display: block !important;\r\n max-height: none !important;\r\n }\r\n }\r\n </style>\r\n <style id=\"icon-media-query\" type=\"text/css\">\r\n @media (max-width: 520px) {\r\n .icons-inner {\r\n text-align: center;\r\n }\r\n\r\n .icons-inner td {\r\n margin: 0 auto;\r\n }\r\n }\r\n </style>\r\n </head>\r\n <body\r\n class=\"clean-body\"\r\n style=\"\r\n margin: 0;\r\n padding: 0;\r\n -webkit-text-size-adjust: 100%;\r\n background-color: #ffffff;\r\n \"\r\n >\r\n <!--[if IE]><div class=\"ie-browser\"><![endif]-->\r\n <table\r\n bgcolor=\"#FFFFFF\"\r\n cellpadding=\"0\"\r\n cellspacing=\"0\"\r\n class=\"nl-container\"\r\n role=\"presentation\"\r\n style=\"\r\n table-layout: fixed;\r\n vertical-align: top;\r\n min-width: 320px;\r\n border-spacing: 0;\r\n border-collapse: collapse;\r\n mso-table-lspace: 0pt;\r\n mso-table-rspace: 0pt;\r\n background-color: #ffffff;\r\n width: 100%;\r\n \"\r\n valign=\"top\"\r\n width=\"100%\"\r\n >\r\n <tbody>\r\n <tr style=\"vertical-align: top\" valign=\"top\">\r\n <td style=\"word-break: break-word; vertical-align: top\" valign=\"top\">\r\n <!--[if (mso)|(IE)]><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr><td align=\"center\" style=\"background-color:#FFFFFF\"><![endif]-->\r\n <div style=\"background-color: transparent\">\r\n <div\r\n class=\"block-grid\"\r\n style=\"\r\n min-width: 320px;\r\n max-width: 500px;\r\n overflow-wrap: break-word;\r\n word-wrap: break-word;\r\n word-break: break-word;\r\n margin: 0 auto;\r\n background-color: transparent;\r\n \"\r\n >\r\n <div\r\n style=\"\r\n border-collapse: collapse;\r\n display: table;\r\n width: 100%;\r\n background-color: transparent;\r\n \"\r\n >\r\n <!--[if (mso)|(IE)]><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"background-color:transparent;\"><tr><td align=\"center\"><table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"width:500px\"><tr class=\"layout-full-width\" style=\"background-color:transparent\"><![endif]-->\r\n <!--[if (mso)|(IE)]><td align=\"center\" width=\"500\" style=\"background-color:transparent;width:500px; border-top: 0px solid transparent; border-left: 0px solid transparent; border-bottom: 0px solid transparent; border-right: 0px solid transparent;\" valign=\"top\"><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr><td style=\"padding-right: 0px; padding-left: 0px; padding-top:5px; padding-bottom:5px;\"><![endif]-->\r\n <div\r\n class=\"col num12\"\r\n style=\"\r\n min-width: 320px;\r\n max-width: 500px;\r\n display: table-cell;\r\n vertical-align: top;\r\n width: 500px;\r\n \"\r\n >\r\n <div class=\"col_cont\" style=\"width: 100% !important\">\r\n <!--[if (!mso)&(!IE)]><!-->\r\n <div\r\n style=\"\r\n border-top: 0px solid transparent;\r\n border-left: 0px solid transparent;\r\n border-bottom: 0px solid transparent;\r\n border-right: 0px solid transparent;\r\n padding-top: 5px;\r\n padding-bottom: 5px;\r\n padding-right: 0px;\r\n padding-left: 0px;\r\n \"\r\n >\r\n <!--<![endif]-->\r\n <table\r\n cellpadding=\"0\"\r\n cellspacing=\"0\"\r\n role=\"presentation\"\r\n style=\"\r\n table-layout: fixed;\r\n vertical-align: top;\r\n border-spacing: 0;\r\n border-collapse: collapse;\r\n mso-table-lspace: 0pt;\r\n mso-table-rspace: 0pt;\r\n \"\r\n valign=\"top\"\r\n width=\"100%\"\r\n >\r\n <tr style=\"vertical-align: top\" valign=\"top\">\r\n <td\r\n align=\"center\"\r\n style=\"\r\n word-break: break-word;\r\n vertical-align: top;\r\n padding-bottom: 20px;\r\n padding-left: 10px;\r\n padding-right: 10px;\r\n padding-top: 10px;\r\n text-align: center;\r\n width: 100%;\r\n \"\r\n valign=\"top\"\r\n width=\"100%\"\r\n >\r\n <h1\r\n style=\"\r\n color: #444445;\r\n direction: ltr;\r\n font-family: 'Helvetica Neue', Helvetica,\r\n Arial, sans-serif;\r\n font-size: 20px;\r\n font-weight: normal;\r\n letter-spacing: normal;\r\n line-height: 120%;\r\n text-align: left;\r\n margin-top: 0;\r\n margin-bottom: 0;\r\n \"\r\n >\r\n <strong>Reset your password</strong>\r\n </h1>\r\n </td>\r\n </tr>\r\n </table>\r\n <!--[if mso]><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr><td style=\"padding-right: 10px; padding-left: 10px; padding-top: 10px; padding-bottom: 10px; font-family: Arial, sans-serif\"><![endif]-->\r\n <div\r\n style=\"\r\n color: #444445;\r\n font-family: Arial, Helvetica Neue, Helvetica,\r\n sans-serif;\r\n line-height: 1.8;\r\n padding-top: 10px;\r\n padding-right: 10px;\r\n padding-bottom: 10px;\r\n padding-left: 10px;\r\n \"\r\n >\r\n <div\r\n class=\"txtTinyMce-wrapper\"\r\n style=\"\r\n font-size: 14px;\r\n line-height: 1.8;\r\n color: #444445;\r\n font-family: Arial, Helvetica Neue, Helvetica,\r\n sans-serif;\r\n mso-line-height-alt: 25px;\r\n \"\r\n >\r\n <p\r\n style=\"\r\n margin: 0;\r\n font-size: 14px;\r\n line-height: 1.8;\r\n word-break: break-word;\r\n mso-line-height-alt: 25px;\r\n margin-top: 0;\r\n margin-bottom: 0;\r\n \"\r\n >\r\n <span style=\"font-size: 14px\"\r\n >We received a request to reset your password.\r\n Click the button below to reset your\r\n password.</span\r\n >\r\n </p>\r\n </div>\r\n </div>\r\n <div\r\n align=\"center\"\r\n class=\"button-container\"\r\n style=\"\r\n padding-top: 10px;\r\n padding-right: 10px;\r\n padding-bottom: 10px;\r\n padding-left: 10px;\r\n \"\r\n >\r\n <!--[if mso]><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"border-spacing: 0; border-collapse: collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;\"><tr><td style=\"padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px\" align=\"center\"><v:roundrect xmlns:v=\"urn:schemas-microsoft-com:vml\" xmlns:w=\"urn:schemas-microsoft-com:office:word\" target=\"_blank\" href={{validationLink}} style=\"height:31.5pt;width:390pt;v-text-anchor:middle;\" arcsize=\"12%\" stroke=\"false\" fillcolor=\"#2270ee\"><w:anchorlock/><v:textbox inset=\"0,0,0,0\"><center style=\"color:#ffffff; font-family:Arial, sans-serif; font-size:14px\"><!\r\n [endif]--><a\r\n href=\"{{validationLink}}\"\r\n target=\"_blank\"\r\n style=\"\r\n -webkit-text-size-adjust: none;\r\n text-decoration: none;\r\n display: block;\r\n color: #ffffff;\r\n background-color: #2270ee;\r\n border-radius: 5px;\r\n -webkit-border-radius: 5px;\r\n -moz-border-radius: 5px;\r\n width: 100%;\r\n width: calc(100% - 2px);\r\n border-top: 1px solid #2270ee;\r\n border-right: 1px solid #2270ee;\r\n border-bottom: 1px solid #2270ee;\r\n border-left: 1px solid #2270ee;\r\n padding-top: 5px;\r\n padding-bottom: 5px;\r\n font-family: 'Helvetica Neue', Helvetica, Arial,\r\n sans-serif;\r\n text-align: center;\r\n mso-border-alt: none;\r\n word-break: keep-all;\r\n \"\r\n target=\"_blank\"\r\n ><span\r\n style=\"\r\n padding-left: 20px;\r\n padding-right: 20px;\r\n font-size: 14px;\r\n display: inline-block;\r\n letter-spacing: undefined;\r\n \"\r\n ><span\r\n style=\"\r\n font-size: 16px;\r\n line-height: 2;\r\n word-break: break-word;\r\n mso-line-height-alt: 32px;\r\n \"\r\n ><span\r\n style=\"font-size: 14px; line-height: 28px\"\r\n >Reset Password</span\r\n ></span\r\n ></span\r\n ></a\r\n >\r\n <!--[if mso]></center></v:textbox></v:roundrect></td></tr></table><![endif]-->\r\n </div>\r\n <!--[if mso]><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr><td style=\"padding-right: 10px; padding-left: 10px; padding-top: 15px; padding-bottom: 15px; font-family: Arial, sans-serif\"><![endif]-->\r\n <div\r\n style=\"\r\n color: #444445;\r\n font-family: Arial, Helvetica Neue, Helvetica,\r\n sans-serif;\r\n line-height: 1.2;\r\n padding-top: 15px;\r\n padding-right: 10px;\r\n padding-bottom: 15px;\r\n padding-left: 10px;\r\n \"\r\n >\r\n <div\r\n class=\"txtTinyMce-wrapper\"\r\n style=\"\r\n font-size: 14px;\r\n line-height: 1.2;\r\n color: #444445;\r\n font-family: Arial, Helvetica Neue, Helvetica,\r\n sans-serif;\r\n mso-line-height-alt: 17px;\r\n \"\r\n >\r\n <p\r\n style=\"\r\n margin: 0;\r\n font-size: 12px;\r\n line-height: 1.2;\r\n word-break: break-word;\r\n mso-line-height-alt: 14px;\r\n margin-top: 0;\r\n margin-bottom: 0;\r\n \"\r\n >\r\n <span style=\"font-size: 12px\"\r\n >If you didn't request a password reset please\r\n ignore this email. Your password will not\r\n change.</span\r\n >\r\n </p>\r\n </div>\r\n </div>\r\n <!--[if mso]></td></tr></table><![endif]-->\r\n <!--[if (!mso)&(!IE)]><!-->\r\n </div>\r\n <!--<![endif]-->\r\n </div>\r\n </div>\r\n <!--[if (mso)|(IE)]></td></tr></table><![endif]-->\r\n <!--[if (mso)|(IE)]></td></tr></table></td></tr></table><![endif]-->\r\n </div>\r\n </div>\r\n </div>\r\n <!--[if (mso)|(IE)]></td></tr></table><![endif]-->\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n <!--[if (IE)]></div><![endif]-->\r\n </body>\r\n</html>";
|
|
6557
|
+
const resetPasswordEmailTemplate = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional //EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n\n<html\n xmlns=\"http://www.w3.org/1999/xhtml\"\n xmlns:o=\"urn:schemas-microsoft-com:office:office\"\n xmlns:v=\"urn:schemas-microsoft-com:vml\"\n>\n <head>\n <!--[if gte mso 9\n ]><xml\n ><o:OfficeDocumentSettings\n ><o:AllowPNG /><o:PixelsPerInch\n >96</o:PixelsPerInch\n ></o:OfficeDocumentSettings\n ></xml\n ><!\n [endif]-->\n <meta content=\"text/html; charset=utf-8\" http-equiv=\"Content-Type\" />\n <meta content=\"width=device-width\" name=\"viewport\" />\n <!--[if !mso]><!-->\n <meta content=\"IE=edge\" http-equiv=\"X-UA-Compatible\" />\n <!--<![endif]-->\n <title></title>\n <!--[if !mso]><!-->\n <!--<![endif]-->\n <style type=\"text/css\">\n body {\n margin: 0;\n padding: 0;\n }\n\n table,\n td,\n tr {\n vertical-align: top;\n border-collapse: collapse;\n }\n\n * {\n line-height: inherit;\n }\n\n a[x-apple-data-detectors=\"true\"] {\n color: inherit !important;\n text-decoration: none !important;\n }\n </style>\n <style id=\"media-query\" type=\"text/css\">\n @media (max-width: 520px) {\n .block-grid,\n .col {\n min-width: 320px !important;\n max-width: 100% !important;\n display: block !important;\n }\n\n .block-grid {\n width: 100% !important;\n }\n\n .col {\n width: 100% !important;\n }\n\n .col_cont {\n margin: 0 auto;\n }\n\n img.fullwidth,\n img.fullwidthOnMobile {\n max-width: 100% !important;\n }\n\n .no-stack .col {\n min-width: 0 !important;\n display: table-cell !important;\n }\n\n .no-stack.two-up .col {\n width: 50% !important;\n }\n\n .no-stack .col.num2 {\n width: 16.6% !important;\n }\n\n .no-stack .col.num3 {\n width: 25% !important;\n }\n\n .no-stack .col.num4 {\n width: 33% !important;\n }\n\n .no-stack .col.num5 {\n width: 41.6% !important;\n }\n\n .no-stack .col.num6 {\n width: 50% !important;\n }\n\n .no-stack .col.num7 {\n width: 58.3% !important;\n }\n\n .no-stack .col.num8 {\n width: 66.6% !important;\n }\n\n .no-stack .col.num9 {\n width: 75% !important;\n }\n\n .no-stack .col.num10 {\n width: 83.3% !important;\n }\n\n .video-block {\n max-width: none !important;\n }\n\n .mobile_hide {\n min-height: 0px;\n max-height: 0px;\n max-width: 0px;\n display: none;\n overflow: hidden;\n font-size: 0px;\n }\n\n .desktop_hide {\n display: block !important;\n max-height: none !important;\n }\n }\n </style>\n <style id=\"icon-media-query\" type=\"text/css\">\n @media (max-width: 520px) {\n .icons-inner {\n text-align: center;\n }\n\n .icons-inner td {\n margin: 0 auto;\n }\n }\n </style>\n </head>\n <body\n class=\"clean-body\"\n style=\"\n margin: 0;\n padding: 0;\n -webkit-text-size-adjust: 100%;\n background-color: #ffffff;\n \"\n >\n <!--[if IE]><div class=\"ie-browser\"><![endif]-->\n <table\n bgcolor=\"#FFFFFF\"\n cellpadding=\"0\"\n cellspacing=\"0\"\n class=\"nl-container\"\n role=\"presentation\"\n style=\"\n table-layout: fixed;\n vertical-align: top;\n min-width: 320px;\n border-spacing: 0;\n border-collapse: collapse;\n mso-table-lspace: 0pt;\n mso-table-rspace: 0pt;\n background-color: #ffffff;\n width: 100%;\n \"\n valign=\"top\"\n width=\"100%\"\n >\n <tbody>\n <tr style=\"vertical-align: top\" valign=\"top\">\n <td style=\"word-break: break-word; vertical-align: top\" valign=\"top\">\n <!--[if (mso)|(IE)]><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr><td align=\"center\" style=\"background-color:#FFFFFF\"><![endif]-->\n <div style=\"background-color: transparent\">\n <div\n class=\"block-grid\"\n style=\"\n min-width: 320px;\n max-width: 500px;\n overflow-wrap: break-word;\n word-wrap: break-word;\n word-break: break-word;\n margin: 0 auto;\n background-color: transparent;\n \"\n >\n <div\n style=\"\n border-collapse: collapse;\n display: table;\n width: 100%;\n background-color: transparent;\n \"\n >\n <!--[if (mso)|(IE)]><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"background-color:transparent;\"><tr><td align=\"center\"><table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"width:500px\"><tr class=\"layout-full-width\" style=\"background-color:transparent\"><![endif]-->\n <!--[if (mso)|(IE)]><td align=\"center\" width=\"500\" style=\"background-color:transparent;width:500px; border-top: 0px solid transparent; border-left: 0px solid transparent; border-bottom: 0px solid transparent; border-right: 0px solid transparent;\" valign=\"top\"><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr><td style=\"padding-right: 0px; padding-left: 0px; padding-top:5px; padding-bottom:5px;\"><![endif]-->\n <div\n class=\"col num12\"\n style=\"\n min-width: 320px;\n max-width: 500px;\n display: table-cell;\n vertical-align: top;\n width: 500px;\n \"\n >\n <div class=\"col_cont\" style=\"width: 100% !important\">\n <!--[if (!mso)&(!IE)]><!-->\n <div\n style=\"\n border-top: 0px solid transparent;\n border-left: 0px solid transparent;\n border-bottom: 0px solid transparent;\n border-right: 0px solid transparent;\n padding-top: 5px;\n padding-bottom: 5px;\n padding-right: 0px;\n padding-left: 0px;\n \"\n >\n <!--<![endif]-->\n <table\n cellpadding=\"0\"\n cellspacing=\"0\"\n role=\"presentation\"\n style=\"\n table-layout: fixed;\n vertical-align: top;\n border-spacing: 0;\n border-collapse: collapse;\n mso-table-lspace: 0pt;\n mso-table-rspace: 0pt;\n \"\n valign=\"top\"\n width=\"100%\"\n >\n <tr style=\"vertical-align: top\" valign=\"top\">\n <td\n align=\"center\"\n style=\"\n word-break: break-word;\n vertical-align: top;\n padding-bottom: 20px;\n padding-left: 10px;\n padding-right: 10px;\n padding-top: 10px;\n text-align: center;\n width: 100%;\n \"\n valign=\"top\"\n width=\"100%\"\n >\n <h1\n style=\"\n color: #444445;\n direction: ltr;\n font-family: 'Helvetica Neue', Helvetica,\n Arial, sans-serif;\n font-size: 20px;\n font-weight: normal;\n letter-spacing: normal;\n line-height: 120%;\n text-align: left;\n margin-top: 0;\n margin-bottom: 0;\n \"\n >\n <strong>Reset your password</strong>\n </h1>\n </td>\n </tr>\n </table>\n <!--[if mso]><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr><td style=\"padding-right: 10px; padding-left: 10px; padding-top: 10px; padding-bottom: 10px; font-family: Arial, sans-serif\"><![endif]-->\n <div\n style=\"\n color: #444445;\n font-family: Arial, Helvetica Neue, Helvetica,\n sans-serif;\n line-height: 1.8;\n padding-top: 10px;\n padding-right: 10px;\n padding-bottom: 10px;\n padding-left: 10px;\n \"\n >\n <div\n class=\"txtTinyMce-wrapper\"\n style=\"\n font-size: 14px;\n line-height: 1.8;\n color: #444445;\n font-family: Arial, Helvetica Neue, Helvetica,\n sans-serif;\n mso-line-height-alt: 25px;\n \"\n >\n <p\n style=\"\n margin: 0;\n font-size: 14px;\n line-height: 1.8;\n word-break: break-word;\n mso-line-height-alt: 25px;\n margin-top: 0;\n margin-bottom: 0;\n \"\n >\n <span style=\"font-size: 14px\"\n >We received a request to reset your password.\n Click the button below to reset your\n password.</span\n >\n </p>\n </div>\n </div>\n <div\n align=\"center\"\n class=\"button-container\"\n style=\"\n padding-top: 10px;\n padding-right: 10px;\n padding-bottom: 10px;\n padding-left: 10px;\n \"\n >\n <!--[if mso]><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"border-spacing: 0; border-collapse: collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;\"><tr><td style=\"padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px\" align=\"center\"><v:roundrect xmlns:v=\"urn:schemas-microsoft-com:vml\" xmlns:w=\"urn:schemas-microsoft-com:office:word\" target=\"_blank\" href={{validationLink}} style=\"height:31.5pt;width:390pt;v-text-anchor:middle;\" arcsize=\"12%\" stroke=\"false\" fillcolor=\"#2270ee\"><w:anchorlock/><v:textbox inset=\"0,0,0,0\"><center style=\"color:#ffffff; font-family:Arial, sans-serif; font-size:14px\"><!\n [endif]--><a\n href=\"{{validationLink}}\"\n target=\"_blank\"\n style=\"\n -webkit-text-size-adjust: none;\n text-decoration: none;\n display: block;\n color: #ffffff;\n background-color: #2270ee;\n border-radius: 5px;\n -webkit-border-radius: 5px;\n -moz-border-radius: 5px;\n width: 100%;\n width: calc(100% - 2px);\n border-top: 1px solid #2270ee;\n border-right: 1px solid #2270ee;\n border-bottom: 1px solid #2270ee;\n border-left: 1px solid #2270ee;\n padding-top: 5px;\n padding-bottom: 5px;\n font-family: 'Helvetica Neue', Helvetica, Arial,\n sans-serif;\n text-align: center;\n mso-border-alt: none;\n word-break: keep-all;\n \"\n target=\"_blank\"\n ><span\n style=\"\n padding-left: 20px;\n padding-right: 20px;\n font-size: 14px;\n display: inline-block;\n letter-spacing: undefined;\n \"\n ><span\n style=\"\n font-size: 16px;\n line-height: 2;\n word-break: break-word;\n mso-line-height-alt: 32px;\n \"\n ><span\n style=\"font-size: 14px; line-height: 28px\"\n >Reset Password</span\n ></span\n ></span\n ></a\n >\n <!--[if mso]></center></v:textbox></v:roundrect></td></tr></table><![endif]-->\n </div>\n <!--[if mso]><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr><td style=\"padding-right: 10px; padding-left: 10px; padding-top: 15px; padding-bottom: 15px; font-family: Arial, sans-serif\"><![endif]-->\n <div\n style=\"\n color: #444445;\n font-family: Arial, Helvetica Neue, Helvetica,\n sans-serif;\n line-height: 1.2;\n padding-top: 15px;\n padding-right: 10px;\n padding-bottom: 15px;\n padding-left: 10px;\n \"\n >\n <div\n class=\"txtTinyMce-wrapper\"\n style=\"\n font-size: 14px;\n line-height: 1.2;\n color: #444445;\n font-family: Arial, Helvetica Neue, Helvetica,\n sans-serif;\n mso-line-height-alt: 17px;\n \"\n >\n <p\n style=\"\n margin: 0;\n font-size: 12px;\n line-height: 1.2;\n word-break: break-word;\n mso-line-height-alt: 14px;\n margin-top: 0;\n margin-bottom: 0;\n \"\n >\n <span style=\"font-size: 12px\"\n >If you didn't request a password reset please\n ignore this email. Your password will not\n change.</span\n >\n </p>\n </div>\n </div>\n <!--[if mso]></td></tr></table><![endif]-->\n <!--[if (!mso)&(!IE)]><!-->\n </div>\n <!--<![endif]-->\n </div>\n </div>\n <!--[if (mso)|(IE)]></td></tr></table><![endif]-->\n <!--[if (mso)|(IE)]></td></tr></table></td></tr></table><![endif]-->\n </div>\n </div>\n </div>\n <!--[if (mso)|(IE)]></td></tr></table><![endif]-->\n </td>\n </tr>\n </tbody>\n </table>\n <!--[if (IE)]></div><![endif]-->\n </body>\n</html>";
|
|
6558
6558
|
|
|
6559
|
-
const verifyEmailTemplate = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional //EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\r\n\r\n<html\r\n xmlns=\"http://www.w3.org/1999/xhtml\"\r\n xmlns:o=\"urn:schemas-microsoft-com:office:office\"\r\n xmlns:v=\"urn:schemas-microsoft-com:vml\"\r\n>\r\n <head>\r\n <!--[if gte mso 9\r\n ]><xml\r\n ><o:OfficeDocumentSettings\r\n ><o:AllowPNG /><o:PixelsPerInch\r\n >96</o:PixelsPerInch\r\n ></o:OfficeDocumentSettings\r\n ></xml\r\n ><!\r\n [endif]-->\r\n <meta content=\"text/html; charset=utf-8\" http-equiv=\"Content-Type\" />\r\n <meta content=\"width=device-width\" name=\"viewport\" />\r\n <!--[if !mso]><!-->\r\n <meta content=\"IE=edge\" http-equiv=\"X-UA-Compatible\" />\r\n <!--<![endif]-->\r\n <title></title>\r\n <!--[if !mso]><!-->\r\n <!--<![endif]-->\r\n <style type=\"text/css\">\r\n body {\r\n margin: 0;\r\n padding: 0;\r\n }\r\n\r\n table,\r\n td,\r\n tr {\r\n vertical-align: top;\r\n border-collapse: collapse;\r\n }\r\n\r\n * {\r\n line-height: inherit;\r\n }\r\n\r\n a[x-apple-data-detectors=\"true\"] {\r\n color: inherit !important;\r\n text-decoration: none !important;\r\n }\r\n </style>\r\n <style id=\"media-query\" type=\"text/css\">\r\n @media (max-width: 520px) {\r\n .block-grid,\r\n .col {\r\n min-width: 320px !important;\r\n max-width: 100% !important;\r\n display: block !important;\r\n }\r\n\r\n .block-grid {\r\n width: 100% !important;\r\n }\r\n\r\n .col {\r\n width: 100% !important;\r\n }\r\n\r\n .col_cont {\r\n margin: 0 auto;\r\n }\r\n\r\n img.fullwidth,\r\n img.fullwidthOnMobile {\r\n max-width: 100% !important;\r\n }\r\n\r\n .no-stack .col {\r\n min-width: 0 !important;\r\n display: table-cell !important;\r\n }\r\n\r\n .no-stack.two-up .col {\r\n width: 50% !important;\r\n }\r\n\r\n .no-stack .col.num2 {\r\n width: 16.6% !important;\r\n }\r\n\r\n .no-stack .col.num3 {\r\n width: 25% !important;\r\n }\r\n\r\n .no-stack .col.num4 {\r\n width: 33% !important;\r\n }\r\n\r\n .no-stack .col.num5 {\r\n width: 41.6% !important;\r\n }\r\n\r\n .no-stack .col.num6 {\r\n width: 50% !important;\r\n }\r\n\r\n .no-stack .col.num7 {\r\n width: 58.3% !important;\r\n }\r\n\r\n .no-stack .col.num8 {\r\n width: 66.6% !important;\r\n }\r\n\r\n .no-stack .col.num9 {\r\n width: 75% !important;\r\n }\r\n\r\n .no-stack .col.num10 {\r\n width: 83.3% !important;\r\n }\r\n\r\n .video-block {\r\n max-width: none !important;\r\n }\r\n\r\n .mobile_hide {\r\n min-height: 0px;\r\n max-height: 0px;\r\n max-width: 0px;\r\n display: none;\r\n overflow: hidden;\r\n font-size: 0px;\r\n }\r\n\r\n .desktop_hide {\r\n display: block !important;\r\n max-height: none !important;\r\n }\r\n }\r\n </style>\r\n <style id=\"icon-media-query\" type=\"text/css\">\r\n @media (max-width: 520px) {\r\n .icons-inner {\r\n text-align: center;\r\n }\r\n\r\n .icons-inner td {\r\n margin: 0 auto;\r\n }\r\n }\r\n </style>\r\n </head>\r\n <body\r\n class=\"clean-body\"\r\n style=\"\r\n margin: 0;\r\n padding: 0;\r\n -webkit-text-size-adjust: 100%;\r\n background-color: #ffffff;\r\n \"\r\n >\r\n <!--[if IE]><div class=\"ie-browser\"><![endif]-->\r\n <table\r\n bgcolor=\"#FFFFFF\"\r\n cellpadding=\"0\"\r\n cellspacing=\"0\"\r\n class=\"nl-container\"\r\n role=\"presentation\"\r\n style=\"\r\n table-layout: fixed;\r\n vertical-align: top;\r\n min-width: 320px;\r\n border-spacing: 0;\r\n border-collapse: collapse;\r\n mso-table-lspace: 0pt;\r\n mso-table-rspace: 0pt;\r\n background-color: #ffffff;\r\n width: 100%;\r\n \"\r\n valign=\"top\"\r\n width=\"100%\"\r\n >\r\n <tbody>\r\n <tr style=\"vertical-align: top\" valign=\"top\">\r\n <td style=\"word-break: break-word; vertical-align: top\" valign=\"top\">\r\n <!--[if (mso)|(IE)]><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr><td align=\"center\" style=\"background-color:#FFFFFF\"><![endif]-->\r\n <div style=\"background-color: transparent\">\r\n <div\r\n class=\"block-grid\"\r\n style=\"\r\n min-width: 320px;\r\n max-width: 500px;\r\n overflow-wrap: break-word;\r\n word-wrap: break-word;\r\n word-break: break-word;\r\n margin: 0 auto;\r\n background-color: transparent;\r\n \"\r\n >\r\n <div\r\n style=\"\r\n border-collapse: collapse;\r\n display: table;\r\n width: 100%;\r\n background-color: transparent;\r\n \"\r\n >\r\n <!--[if (mso)|(IE)]><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"background-color:transparent;\"><tr><td align=\"center\"><table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"width:500px\"><tr class=\"layout-full-width\" style=\"background-color:transparent\"><![endif]-->\r\n <!--[if (mso)|(IE)]><td align=\"center\" width=\"500\" style=\"background-color:transparent;width:500px; border-top: 0px solid transparent; border-left: 0px solid transparent; border-bottom: 0px solid transparent; border-right: 0px solid transparent;\" valign=\"top\"><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr><td style=\"padding-right: 0px; padding-left: 0px; padding-top:5px; padding-bottom:5px;\"><![endif]-->\r\n <div\r\n class=\"col num12\"\r\n style=\"\r\n min-width: 320px;\r\n max-width: 500px;\r\n display: table-cell;\r\n vertical-align: top;\r\n width: 500px;\r\n \"\r\n >\r\n <div class=\"col_cont\" style=\"width: 100% !important\">\r\n <!--[if (!mso)&(!IE)]><!-->\r\n <div\r\n style=\"\r\n border-top: 0px solid transparent;\r\n border-left: 0px solid transparent;\r\n border-bottom: 0px solid transparent;\r\n border-right: 0px solid transparent;\r\n padding-top: 5px;\r\n padding-bottom: 5px;\r\n padding-right: 0px;\r\n padding-left: 0px;\r\n \"\r\n >\r\n <!--<![endif]-->\r\n <table\r\n cellpadding=\"0\"\r\n cellspacing=\"0\"\r\n role=\"presentation\"\r\n style=\"\r\n table-layout: fixed;\r\n vertical-align: top;\r\n border-spacing: 0;\r\n border-collapse: collapse;\r\n mso-table-lspace: 0pt;\r\n mso-table-rspace: 0pt;\r\n \"\r\n valign=\"top\"\r\n width=\"100%\"\r\n >\r\n <tr style=\"vertical-align: top\" valign=\"top\">\r\n <td\r\n align=\"center\"\r\n style=\"\r\n word-break: break-word;\r\n vertical-align: top;\r\n padding-bottom: 20px;\r\n padding-left: 10px;\r\n padding-right: 10px;\r\n padding-top: 10px;\r\n text-align: center;\r\n width: 100%;\r\n \"\r\n valign=\"top\"\r\n width=\"100%\"\r\n >\r\n <h1\r\n style=\"\r\n color: #444445;\r\n direction: ltr;\r\n font-family: 'Helvetica Neue', Helvetica,\r\n Arial, sans-serif;\r\n font-size: 20px;\r\n font-weight: normal;\r\n letter-spacing: normal;\r\n line-height: 120%;\r\n text-align: left;\r\n margin-top: 0;\r\n margin-bottom: 0;\r\n \"\r\n >\r\n <strong>Verify your email address</strong>\r\n </h1>\r\n </td>\r\n </tr>\r\n </table>\r\n <!--[if mso]><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr><td style=\"padding-right: 10px; padding-left: 10px; padding-top: 10px; padding-bottom: 10px; font-family: Arial, sans-serif\"><![endif]-->\r\n <div\r\n style=\"\r\n color: #444445;\r\n font-family: Arial, Helvetica Neue, Helvetica,\r\n sans-serif;\r\n line-height: 1.8;\r\n padding-top: 10px;\r\n padding-right: 10px;\r\n padding-bottom: 10px;\r\n padding-left: 10px;\r\n \"\r\n >\r\n <div\r\n class=\"txtTinyMce-wrapper\"\r\n style=\"\r\n font-size: 14px;\r\n line-height: 1.8;\r\n color: #444445;\r\n font-family: Arial, Helvetica Neue, Helvetica,\r\n sans-serif;\r\n mso-line-height-alt: 25px;\r\n \"\r\n >\r\n <p\r\n style=\"\r\n margin: 0;\r\n font-size: 14px;\r\n line-height: 1.8;\r\n word-break: break-word;\r\n mso-line-height-alt: 25px;\r\n margin-top: 0;\r\n margin-bottom: 0;\r\n \"\r\n >\r\n <span style=\"font-size: 14px\"\r\n >Thank you for signing up! Please click the button below\r\n to verify your email address.</span\r\n >\r\n </p>\r\n </div>\r\n </div>\r\n <!--[if mso]></td></tr></table><![endif]-->\r\n <div\r\n align=\"center\"\r\n class=\"button-container\"\r\n style=\"\r\n padding-top: 10px;\r\n padding-right: 10px;\r\n padding-bottom: 10px;\r\n padding-left: 10px;\r\n \"\r\n >\r\n <!--[if mso]><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"border-spacing: 0; border-collapse: collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;\"><tr><td style=\"padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px\" align=\"center\"><v:roundrect xmlns:v=\"urn:schemas-microsoft-com:vml\" xmlns:w=\"urn:schemas-microsoft-com:office:word\" target=\"_blank\" href={{validationLink}} style=\"height:31.5pt;width:390pt;v-text-anchor:middle;\" arcsize=\"12%\" stroke=\"false\" fillcolor=\"#2270ee\"><w:anchorlock/><v:textbox inset=\"0,0,0,0\"><center style=\"color:#ffffff; font-family:Arial, sans-serif; font-size:14px\"><!\r\n [endif]--><a\r\n href={{validationLink}}\r\n\t\t\t\t\t\t\ttarget=\"_blank\"\r\n style=\"\r\n -webkit-text-size-adjust: none;\r\n text-decoration: none;\r\n display: block;\r\n color: #ffffff;\r\n background-color: #2270ee;\r\n border-radius: 5px;\r\n -webkit-border-radius: 5px;\r\n -moz-border-radius: 5px;\r\n width: 100%;\r\n width: calc(100% - 2px);\r\n border-top: 1px solid #2270ee;\r\n border-right: 1px solid #2270ee;\r\n border-bottom: 1px solid #2270ee;\r\n border-left: 1px solid #2270ee;\r\n padding-top: 5px;\r\n padding-bottom: 5px;\r\n font-family: 'Helvetica Neue', Helvetica, Arial,\r\n sans-serif;\r\n text-align: center;\r\n mso-border-alt: none;\r\n word-break: keep-all;\r\n \"\r\n target=\"_blank\"\r\n ><span\r\n style=\"\r\n padding-left: 20px;\r\n padding-right: 20px;\r\n font-size: 14px;\r\n display: inline-block;\r\n letter-spacing: undefined;\r\n \"\r\n ><span\r\n style=\"\r\n font-size: 16px;\r\n line-height: 2;\r\n word-break: break-word;\r\n mso-line-height-alt: 32px;\r\n \"\r\n ><span\r\n style=\"font-size: 14px; line-height: 28px\"\r\n >Verify Email</span\r\n ></span\r\n ></span\r\n ></a\r\n >\r\n <!--[if mso]></center></v:textbox></v:roundrect></td></tr></table><![endif]-->\r\n </div>\r\n <!--<![endif]-->\r\n </div>\r\n </div>\r\n <!--[if (mso)|(IE)]></td></tr></table><![endif]-->\r\n <!--[if (mso)|(IE)]></td></tr></table></td></tr></table><![endif]-->\r\n </div>\r\n </div>\r\n </div>\r\n <!--[if (mso)|(IE)]></td></tr></table><![endif]-->\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n <!--[if (IE)]></div><![endif]-->\r\n </body>\r\n</html>";
|
|
6559
|
+
const verifyEmailTemplate = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional //EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n\n<html\n xmlns=\"http://www.w3.org/1999/xhtml\"\n xmlns:o=\"urn:schemas-microsoft-com:office:office\"\n xmlns:v=\"urn:schemas-microsoft-com:vml\"\n>\n <head>\n <!--[if gte mso 9\n ]><xml\n ><o:OfficeDocumentSettings\n ><o:AllowPNG /><o:PixelsPerInch\n >96</o:PixelsPerInch\n ></o:OfficeDocumentSettings\n ></xml\n ><!\n [endif]-->\n <meta content=\"text/html; charset=utf-8\" http-equiv=\"Content-Type\" />\n <meta content=\"width=device-width\" name=\"viewport\" />\n <!--[if !mso]><!-->\n <meta content=\"IE=edge\" http-equiv=\"X-UA-Compatible\" />\n <!--<![endif]-->\n <title></title>\n <!--[if !mso]><!-->\n <!--<![endif]-->\n <style type=\"text/css\">\n body {\n margin: 0;\n padding: 0;\n }\n\n table,\n td,\n tr {\n vertical-align: top;\n border-collapse: collapse;\n }\n\n * {\n line-height: inherit;\n }\n\n a[x-apple-data-detectors=\"true\"] {\n color: inherit !important;\n text-decoration: none !important;\n }\n </style>\n <style id=\"media-query\" type=\"text/css\">\n @media (max-width: 520px) {\n .block-grid,\n .col {\n min-width: 320px !important;\n max-width: 100% !important;\n display: block !important;\n }\n\n .block-grid {\n width: 100% !important;\n }\n\n .col {\n width: 100% !important;\n }\n\n .col_cont {\n margin: 0 auto;\n }\n\n img.fullwidth,\n img.fullwidthOnMobile {\n max-width: 100% !important;\n }\n\n .no-stack .col {\n min-width: 0 !important;\n display: table-cell !important;\n }\n\n .no-stack.two-up .col {\n width: 50% !important;\n }\n\n .no-stack .col.num2 {\n width: 16.6% !important;\n }\n\n .no-stack .col.num3 {\n width: 25% !important;\n }\n\n .no-stack .col.num4 {\n width: 33% !important;\n }\n\n .no-stack .col.num5 {\n width: 41.6% !important;\n }\n\n .no-stack .col.num6 {\n width: 50% !important;\n }\n\n .no-stack .col.num7 {\n width: 58.3% !important;\n }\n\n .no-stack .col.num8 {\n width: 66.6% !important;\n }\n\n .no-stack .col.num9 {\n width: 75% !important;\n }\n\n .no-stack .col.num10 {\n width: 83.3% !important;\n }\n\n .video-block {\n max-width: none !important;\n }\n\n .mobile_hide {\n min-height: 0px;\n max-height: 0px;\n max-width: 0px;\n display: none;\n overflow: hidden;\n font-size: 0px;\n }\n\n .desktop_hide {\n display: block !important;\n max-height: none !important;\n }\n }\n </style>\n <style id=\"icon-media-query\" type=\"text/css\">\n @media (max-width: 520px) {\n .icons-inner {\n text-align: center;\n }\n\n .icons-inner td {\n margin: 0 auto;\n }\n }\n </style>\n </head>\n <body\n class=\"clean-body\"\n style=\"\n margin: 0;\n padding: 0;\n -webkit-text-size-adjust: 100%;\n background-color: #ffffff;\n \"\n >\n <!--[if IE]><div class=\"ie-browser\"><![endif]-->\n <table\n bgcolor=\"#FFFFFF\"\n cellpadding=\"0\"\n cellspacing=\"0\"\n class=\"nl-container\"\n role=\"presentation\"\n style=\"\n table-layout: fixed;\n vertical-align: top;\n min-width: 320px;\n border-spacing: 0;\n border-collapse: collapse;\n mso-table-lspace: 0pt;\n mso-table-rspace: 0pt;\n background-color: #ffffff;\n width: 100%;\n \"\n valign=\"top\"\n width=\"100%\"\n >\n <tbody>\n <tr style=\"vertical-align: top\" valign=\"top\">\n <td style=\"word-break: break-word; vertical-align: top\" valign=\"top\">\n <!--[if (mso)|(IE)]><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr><td align=\"center\" style=\"background-color:#FFFFFF\"><![endif]-->\n <div style=\"background-color: transparent\">\n <div\n class=\"block-grid\"\n style=\"\n min-width: 320px;\n max-width: 500px;\n overflow-wrap: break-word;\n word-wrap: break-word;\n word-break: break-word;\n margin: 0 auto;\n background-color: transparent;\n \"\n >\n <div\n style=\"\n border-collapse: collapse;\n display: table;\n width: 100%;\n background-color: transparent;\n \"\n >\n <!--[if (mso)|(IE)]><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"background-color:transparent;\"><tr><td align=\"center\"><table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"width:500px\"><tr class=\"layout-full-width\" style=\"background-color:transparent\"><![endif]-->\n <!--[if (mso)|(IE)]><td align=\"center\" width=\"500\" style=\"background-color:transparent;width:500px; border-top: 0px solid transparent; border-left: 0px solid transparent; border-bottom: 0px solid transparent; border-right: 0px solid transparent;\" valign=\"top\"><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr><td style=\"padding-right: 0px; padding-left: 0px; padding-top:5px; padding-bottom:5px;\"><![endif]-->\n <div\n class=\"col num12\"\n style=\"\n min-width: 320px;\n max-width: 500px;\n display: table-cell;\n vertical-align: top;\n width: 500px;\n \"\n >\n <div class=\"col_cont\" style=\"width: 100% !important\">\n <!--[if (!mso)&(!IE)]><!-->\n <div\n style=\"\n border-top: 0px solid transparent;\n border-left: 0px solid transparent;\n border-bottom: 0px solid transparent;\n border-right: 0px solid transparent;\n padding-top: 5px;\n padding-bottom: 5px;\n padding-right: 0px;\n padding-left: 0px;\n \"\n >\n <!--<![endif]-->\n <table\n cellpadding=\"0\"\n cellspacing=\"0\"\n role=\"presentation\"\n style=\"\n table-layout: fixed;\n vertical-align: top;\n border-spacing: 0;\n border-collapse: collapse;\n mso-table-lspace: 0pt;\n mso-table-rspace: 0pt;\n \"\n valign=\"top\"\n width=\"100%\"\n >\n <tr style=\"vertical-align: top\" valign=\"top\">\n <td\n align=\"center\"\n style=\"\n word-break: break-word;\n vertical-align: top;\n padding-bottom: 20px;\n padding-left: 10px;\n padding-right: 10px;\n padding-top: 10px;\n text-align: center;\n width: 100%;\n \"\n valign=\"top\"\n width=\"100%\"\n >\n <h1\n style=\"\n color: #444445;\n direction: ltr;\n font-family: 'Helvetica Neue', Helvetica,\n Arial, sans-serif;\n font-size: 20px;\n font-weight: normal;\n letter-spacing: normal;\n line-height: 120%;\n text-align: left;\n margin-top: 0;\n margin-bottom: 0;\n \"\n >\n <strong>Verify your email address</strong>\n </h1>\n </td>\n </tr>\n </table>\n <!--[if mso]><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr><td style=\"padding-right: 10px; padding-left: 10px; padding-top: 10px; padding-bottom: 10px; font-family: Arial, sans-serif\"><![endif]-->\n <div\n style=\"\n color: #444445;\n font-family: Arial, Helvetica Neue, Helvetica,\n sans-serif;\n line-height: 1.8;\n padding-top: 10px;\n padding-right: 10px;\n padding-bottom: 10px;\n padding-left: 10px;\n \"\n >\n <div\n class=\"txtTinyMce-wrapper\"\n style=\"\n font-size: 14px;\n line-height: 1.8;\n color: #444445;\n font-family: Arial, Helvetica Neue, Helvetica,\n sans-serif;\n mso-line-height-alt: 25px;\n \"\n >\n <p\n style=\"\n margin: 0;\n font-size: 14px;\n line-height: 1.8;\n word-break: break-word;\n mso-line-height-alt: 25px;\n margin-top: 0;\n margin-bottom: 0;\n \"\n >\n <span style=\"font-size: 14px\"\n >Thank you for signing up! Please click the button below\n to verify your email address.</span\n >\n </p>\n </div>\n </div>\n <!--[if mso]></td></tr></table><![endif]-->\n <div\n align=\"center\"\n class=\"button-container\"\n style=\"\n padding-top: 10px;\n padding-right: 10px;\n padding-bottom: 10px;\n padding-left: 10px;\n \"\n >\n <!--[if mso]><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"border-spacing: 0; border-collapse: collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;\"><tr><td style=\"padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px\" align=\"center\"><v:roundrect xmlns:v=\"urn:schemas-microsoft-com:vml\" xmlns:w=\"urn:schemas-microsoft-com:office:word\" target=\"_blank\" href={{validationLink}} style=\"height:31.5pt;width:390pt;v-text-anchor:middle;\" arcsize=\"12%\" stroke=\"false\" fillcolor=\"#2270ee\"><w:anchorlock/><v:textbox inset=\"0,0,0,0\"><center style=\"color:#ffffff; font-family:Arial, sans-serif; font-size:14px\"><!\n [endif]--><a\n href={{validationLink}}\n\t\t\t\t\t\t\ttarget=\"_blank\"\n style=\"\n -webkit-text-size-adjust: none;\n text-decoration: none;\n display: block;\n color: #ffffff;\n background-color: #2270ee;\n border-radius: 5px;\n -webkit-border-radius: 5px;\n -moz-border-radius: 5px;\n width: 100%;\n width: calc(100% - 2px);\n border-top: 1px solid #2270ee;\n border-right: 1px solid #2270ee;\n border-bottom: 1px solid #2270ee;\n border-left: 1px solid #2270ee;\n padding-top: 5px;\n padding-bottom: 5px;\n font-family: 'Helvetica Neue', Helvetica, Arial,\n sans-serif;\n text-align: center;\n mso-border-alt: none;\n word-break: keep-all;\n \"\n target=\"_blank\"\n ><span\n style=\"\n padding-left: 20px;\n padding-right: 20px;\n font-size: 14px;\n display: inline-block;\n letter-spacing: undefined;\n \"\n ><span\n style=\"\n font-size: 16px;\n line-height: 2;\n word-break: break-word;\n mso-line-height-alt: 32px;\n \"\n ><span\n style=\"font-size: 14px; line-height: 28px\"\n >Verify Email</span\n ></span\n ></span\n ></a\n >\n <!--[if mso]></center></v:textbox></v:roundrect></td></tr></table><![endif]-->\n </div>\n <!--<![endif]-->\n </div>\n </div>\n <!--[if (mso)|(IE)]></td></tr></table><![endif]-->\n <!--[if (mso)|(IE)]></td></tr></table></td></tr></table><![endif]-->\n </div>\n </div>\n </div>\n <!--[if (mso)|(IE)]></td></tr></table><![endif]-->\n </td>\n </tr>\n </tbody>\n </table>\n <!--[if (IE)]></div><![endif]-->\n </body>\n</html>";
|
|
6560
6560
|
|
|
6561
|
-
const loginTemplate = "<sqm-hero background=\"https://images.unsplash.com/photo-1599676821464-3555954838dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1939&q=80\">\
|
|
6561
|
+
const loginTemplate = "<sqm-hero background=\"https://images.unsplash.com/photo-1599676821464-3555954838dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1939&q=80\">\n <sqm-portal-login></sqm-portal-login>\n</sqm-hero>\n";
|
|
6562
6562
|
|
|
6563
|
-
const registerTemplate = "<sqm-hero\
|
|
6563
|
+
const registerTemplate = "<sqm-hero\n background=\"https://images.unsplash.com/photo-1599676821464-3555954838dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1939&q=80\"\n>\n <sqm-portal-register>\n <sqm-name-fields slot=\"formData\"></sqm-name-fields>\n </sqm-portal-register>\n</sqm-hero>\n";
|
|
6564
6564
|
|
|
6565
|
-
const forgotPasswordTemplate = "<sqm-hero background=\"https://images.unsplash.com/photo-1599676821464-3555954838dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1939&q=80\">\
|
|
6565
|
+
const forgotPasswordTemplate = "<sqm-hero background=\"https://images.unsplash.com/photo-1599676821464-3555954838dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1939&q=80\">\n <sqm-portal-forgot-password\n email-label=\"Business Email\"\n ></sqm-portal-forgot-password>\n</sqm-hero>\n";
|
|
6566
6566
|
|
|
6567
|
-
const resetPasswordTemplate = "<sqm-portal-reset-password confirm-password=\"true\"></sqm-portal-reset-password>\
|
|
6567
|
+
const resetPasswordTemplate = "<sqm-portal-reset-password confirm-password=\"true\"></sqm-portal-reset-password>\n";
|
|
6568
6568
|
|
|
6569
|
-
const emailVerifiedTemplate = "<sqm-portal-verify-email></sqm-portal-verify-email>\
|
|
6569
|
+
const emailVerifiedTemplate = "<sqm-portal-verify-email></sqm-portal-verify-email>\n";
|
|
6570
6570
|
|
|
6571
|
-
const emailVerificationTemplate = "<sqm-portal-protected-route redirect-to=\"/login\"></sqm-portal-protected-route>\
|
|
6571
|
+
const emailVerificationTemplate = "<sqm-portal-protected-route redirect-to=\"/login\"></sqm-portal-protected-route>\n<sqm-portal-email-verification></sqm-portal-email-verification>\n";
|
|
6572
6572
|
|
|
6573
6573
|
var marked = stencilHooks_module.createCommonjsModule(function (module, exports) {
|
|
6574
6574
|
/**
|
|
@@ -9540,21 +9540,21 @@ var marked = stencilHooks_module.createCommonjsModule(function (module, exports)
|
|
|
9540
9540
|
})));
|
|
9541
9541
|
});
|
|
9542
9542
|
|
|
9543
|
-
const LoginReadme = "# sqm-portal-login\
|
|
9543
|
+
const LoginReadme = "# sqm-portal-login\n\n\n\n<!-- Auto Generated Below -->\n\n\n## Properties\n\n| Property | Attribute | Description | Type | Default |\n| --------------------- | ----------------------- | ----------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------- |\n| `demoData` | -- | | `{ states?: { error: string; loading: boolean; forgotPasswordPath: string; registerPath: string; }; content?: { forgotPasswordButton?: any; secondaryButton?: any; emailLabel?: string; passwordLabel?: string; submitLabel?: string; pageLabel?: string; }; }` | `undefined` |\n| `emailLabel` | `email-label` | | `string` | `\"Email\"` |\n| `forgotPasswordLabel` | `forgot-password-label` | | `string` | `\"Forgot Password?\"` |\n| `forgotPasswordPath` | `forgot-password-path` | Redirect participants to this page to reset their password | `string` | `\"/forgotPassword\"` |\n| `nextPage` | `next-page` | Redirect participants to this page after they successfully login. | `string` | `\"/\"` |\n| `pageLabel` | `page-label` | | `string` | `\"Sign in to your account\"` |\n| `passwordLabel` | `password-label` | | `string` | `\"Password\"` |\n| `registerLabel` | `register-label` | | `string` | `\"Register\"` |\n| `registerPath` | `register-path` | Redirect participants to this page to start registration. | `string` | `\"/register\"` |\n| `submitLabel` | `submit-label` | | `string` | `\"Sign In\"` |\n\n\n## Dependencies\n\n### Used by\n\n - [sqm-stencilbook](../sqm-stencilbook)\n\n### Depends on\n\n- [sqm-form-message](../sqm-form-message)\n\n### Graph\n```mermaid\ngraph TD;\n sqm-portal-login --> sqm-form-message\n sqm-stencilbook --> sqm-portal-login\n style sqm-portal-login fill:#f9f,stroke:#333,stroke-width:4px\n```\n\n----------------------------------------------\n\n*Built with [StencilJS](https://stenciljs.com/)*\n";
|
|
9544
9544
|
|
|
9545
|
-
const ReferralIframeReadme = "# sqm-referral-iframe\
|
|
9545
|
+
const ReferralIframeReadme = "# sqm-referral-iframe\n\n\n\n<!-- Auto Generated Below -->\n\n\n## Properties\n\n| Property | Attribute | Description | Type | Default |\n| -------------- | --------------- | ----------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ | ----------- |\n| `demoData` | -- | | `{ states?: { content: { iframeSrc: string; iframeHeight: string; iframeWidth: string; }; }; data?: { shareCode: string; }; }` | `undefined` |\n| `iframeHeight` | `iframe-height` | Define the height of the iframe with any valid CSS height value. Example: 100px, 5rem, or auto. | `string` | `\"100%\"` |\n| `iframeSrc` | `iframe-src` | URL of iframe to display | `string` | `undefined` |\n| `iframeWidth` | `iframe-width` | Define the width of the iframe with any valid CSS width value. Example: 100px, 5rem, or auto. | `string` | `\"100%\"` |\n\n\n## Dependencies\n\n### Used by\n\n - [sqm-stencilbook](../sqm-stencilbook)\n\n### Graph\n```mermaid\ngraph TD;\n sqm-stencilbook --> sqm-referral-iframe\n style sqm-referral-iframe fill:#f9f,stroke:#333,stroke-width:4px\n```\n\n----------------------------------------------\n\n*Built with [StencilJS](https://stenciljs.com/)*\n";
|
|
9546
9546
|
|
|
9547
|
-
const ForgotPasswordReadme = "# sqm-portal-forgot-password\
|
|
9547
|
+
const ForgotPasswordReadme = "# sqm-portal-forgot-password\n\n\n\n<!-- Auto Generated Below -->\n\n\n## Properties\n\n| Property | Attribute | Description | Type | Default |\n| -------------- | --------------- | ----------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------ |\n| `demoData` | -- | | `{ states?: { error: string; loading: boolean; success: boolean; loginPath: string; }; content?: { secondaryButton: any; messageSlot: any; emailLabel?: string; submitLabel?: string; }; }` | `undefined` |\n| `emailLabel` | `email-label` | | `string` | `\"Email\"` |\n| `headerText` | `header-text` | | `string` | `\"Enter your email below to receive a password reset link.\"` |\n| `loginPath` | `login-path` | | `string` | `\"/login\"` |\n| `loginText` | `login-text` | Sign In Link Text | `string` | `\"Sign In\"` |\n| `redirectPath` | `redirect-path` | Redirect participants to this page after they verify their email. | `string` | `\"/resetPassword\"` |\n| `submitLabel` | `submit-label` | | `string` | `\"Request Password Reset\"` |\n\n\n## Dependencies\n\n### Depends on\n\n- [sqm-form-message](../sqm-form-message)\n\n### Graph\n```mermaid\ngraph TD;\n sqm-portal-forgot-password --> sqm-form-message\n style sqm-portal-forgot-password fill:#f9f,stroke:#333,stroke-width:4px\n```\n\n----------------------------------------------\n\n*Built with [StencilJS](https://stenciljs.com/)*\n";
|
|
9548
9548
|
|
|
9549
|
-
const RegisterReadme = "# sqm-portal-register\r\n\r\n\r\n\r\n<!-- Auto Generated Below -->\r\n\r\n\r\n## Properties\r\n\r\n| Property | Attribute | Description | Type | Default |\r\n| --------------------------- | ----------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------- |\r\n| `confirmPassword` | `confirm-password` | | `boolean` | `false` |\r\n| `confirmPasswordLabel` | `confirm-password-label` | | `string` | `\"Confirm Password\"` |\r\n| `demoData` | -- | | `{ states?: { error: string; loading: boolean; confirmPassword: boolean; hideInputs: boolean; registrationFormState: RegistrationFormState; disablePasswordValidation?: boolean; loginPath: string; }; refs?: { formRef: any; }; content?: { formData?: VNode; terms?: VNode; passwordField?: VNode; secondaryButton?: VNode; emailLabel?: string; passwordLabel?: string; submitLabel?: string; pageLabel?: string; confirmPasswordLabel: string; }; }` | `undefined` |\r\n| `disablePasswordValidation` | `disable-password-validation` | | `boolean` | `false` |\r\n| `emailLabel` | `email-label` | | `string` | `\"Email\"` |\r\n| `hideInputs` | `hide-inputs` | Hides the email and password fields. Note: If you hide default inputs, you must add additional input fields. They must have the input name attributes \"email\" and \"password\" for this form to succeed. | `boolean` | `false` |\r\n| `loginLabel` | `login-label` | | `string` | `\"Sign in\"` |\r\n| `loginPath` | `login-path` | Redirect participants to this page after clicking the login button. | `string` | `\"/login\"` |\r\n| `nextPage` | `next-page` | Redirect participants to this page from their verification email | `string` | `\"/\"` |\r\n| `pageLabel` | `page-label` | | `string` | `\"Register\"` |\r\n| `passwordLabel` | `password-label` | | `string` | `\"Password\"` |\r\n| `redirectPath` | `redirect-path` | The page that participants are redirected to from the verification email. | `string` | `\"/verifyEmail\"` |\r\n| `submitLabel` | `submit-label` | | `string` | `\"Register\"` |\r\n\r\n\r\n## Dependencies\r\n\r\n### Used by\r\n\r\n - [sqm-stencilbook](../sqm-stencilbook)\r\n\r\n### Depends on\r\n\r\n- [sqm-form-message](../sqm-form-message)\r\n- [sqm-password-field](../sqm-password-field)\r\n\r\n### Graph\r\n```mermaid\r\ngraph TD;\r\n sqm-portal-register --> sqm-form-message\r\n sqm-portal-register --> sqm-password-field\r\n sqm-stencilbook --> sqm-portal-register\r\n style sqm-portal-register fill:#f9f,stroke:#333,stroke-width:4px\r\n```\r\n\r\n----------------------------------------------\r\n\r\n*Built with [StencilJS](https://stenciljs.com/)*\r\n";
|
|
9549
|
+
const RegisterReadme = "# sqm-portal-register\n\n\n\n<!-- Auto Generated Below -->\n\n\n## Properties\n\n| Property | Attribute | Description | Type | Default |\n| --------------------------- | ----------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------- |\n| `confirmPassword` | `confirm-password` | | `boolean` | `false` |\n| `confirmPasswordLabel` | `confirm-password-label` | | `string` | `\"Confirm Password\"` |\n| `demoData` | -- | | `{ states?: { error: string; loading: boolean; confirmPassword: boolean; hideInputs: boolean; registrationFormState: RegistrationFormState; disablePasswordValidation?: boolean; loginPath: string; }; refs?: { formRef: any; }; content?: { formData?: VNode; terms?: VNode; passwordField?: VNode; secondaryButton?: VNode; emailLabel?: string; passwordLabel?: string; submitLabel?: string; pageLabel?: string; confirmPasswordLabel: string; }; }` | `undefined` |\n| `disablePasswordValidation` | `disable-password-validation` | | `boolean` | `false` |\n| `emailLabel` | `email-label` | | `string` | `\"Email\"` |\n| `hideInputs` | `hide-inputs` | Hides the email and password fields. Note: If you hide default inputs, you must add additional input fields. They must have the input name attributes \"email\" and \"password\" for this form to succeed. | `boolean` | `false` |\n| `loginLabel` | `login-label` | | `string` | `\"Sign in\"` |\n| `loginPath` | `login-path` | Redirect participants to this page after clicking the login button. | `string` | `\"/login\"` |\n| `nextPage` | `next-page` | Redirect participants to this page from their verification email | `string` | `\"/\"` |\n| `pageLabel` | `page-label` | | `string` | `\"Register\"` |\n| `passwordLabel` | `password-label` | | `string` | `\"Password\"` |\n| `redirectPath` | `redirect-path` | The page that participants are redirected to from the verification email. | `string` | `\"/verifyEmail\"` |\n| `submitLabel` | `submit-label` | | `string` | `\"Register\"` |\n\n\n## Dependencies\n\n### Used by\n\n - [sqm-stencilbook](../sqm-stencilbook)\n\n### Depends on\n\n- [sqm-form-message](../sqm-form-message)\n- [sqm-password-field](../sqm-password-field)\n\n### Graph\n```mermaid\ngraph TD;\n sqm-portal-register --> sqm-form-message\n sqm-portal-register --> sqm-password-field\n sqm-stencilbook --> sqm-portal-register\n style sqm-portal-register fill:#f9f,stroke:#333,stroke-width:4px\n```\n\n----------------------------------------------\n\n*Built with [StencilJS](https://stenciljs.com/)*\n";
|
|
9550
9550
|
|
|
9551
|
-
const EditProfileReadme = "# sqm-portal-profile\
|
|
9551
|
+
const EditProfileReadme = "# sqm-portal-profile\n\n\n\n<!-- Auto Generated Below -->\n\n\n## Properties\n\n| Property | Attribute | Description | Type | Default |\n| ------------------------ | --------------------------- | ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------ |\n| `countrytext` | `countrytext` | | `string` | `\"Country\"` |\n| `demoData` | -- | | `{ states?: { success: boolean; loading: boolean; submitDisabled: boolean; showCountry: boolean; formState: { country: string; firstName: string; lastName: string; errors: any; error: string; }; user: { id: string; accountId: string; firstName: string; lastName: string; email: string; countryCode: string; }; text: { firstnametext: string; lastnametext: string; emailtext: string; countrytext: string; editProfileHeader: string; editProfileSubHeader: string; submitChangeButtonText: string; }; }; }` | `undefined` |\n| `editProfileHeader` | `edit-profile-header` | | `string` | `\"Edit your profile\"` |\n| `editProfileSubHeader` | `edit-profile-sub-header` | | `string` | `\"Personal Information\"` |\n| `emailtext` | `emailtext` | | `string` | `\"Email\"` |\n| `firstnametext` | `firstnametext` | | `string` | `\"First Name\"` |\n| `hideCountry` | `hide-country` | | `boolean` | `false` |\n| `lastnametext` | `lastnametext` | | `string` | `\"Last Name\"` |\n| `submitChangeButtonText` | `submit-change-button-text` | | `string` | `\"Submit Changes\"` |\n\n\n## Dependencies\n\n### Depends on\n\n- [sqm-form-message](../sqm-form-message)\n\n### Graph\n```mermaid\ngraph TD;\n sqm-portal-profile --> sqm-form-message\n style sqm-portal-profile fill:#f9f,stroke:#333,stroke-width:4px\n```\n\n----------------------------------------------\n\n*Built with [StencilJS](https://stenciljs.com/)*\n";
|
|
9552
9552
|
|
|
9553
|
-
const ResetPasswordReadme = "# sqm-portal-reset-password\
|
|
9553
|
+
const ResetPasswordReadme = "# sqm-portal-reset-password\n\n\n\n<!-- Auto Generated Below -->\n\n\n## Properties\n\n| Property | Attribute | Description | Type | Default |\n| --------------------------- | ------------------------------ | -------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------- |\n| `confirmPassword` | `confirm-password` | | `boolean` | `false` |\n| `confirmPasswordFieldLabel` | `confirm-password-field-label` | | `string` | `\"Confirm Password\"` |\n| `continueButtonText` | `continue-button-text` | Button text displayed after a successful password reset. | `string` | `\"Continue\"` |\n| `demoData` | -- | | `{ states?: { error: string; loading: boolean; reset: boolean; confirmPassword: boolean; oobCodeValidating: boolean; oobCodeValid: boolean; passwordDemoData?: PasswordFieldViewDemoProps; content: { passwordResetHeader: string; resetPasswordHeader: string; continueButtonText: string; resetPasswordButtonText: string; confirmPasswordFieldLabel: string; passwordFieldLabel: string; }; }; }` | `undefined` |\n| `failedPage` | `failed-page` | Redirect participants to this page if password reset fails due to an outdated reset attempt. | `string` | `\"/\"` |\n| `nextPage` | `next-page` | Redirect participants to this page when they successfully reset their password. | `string` | `\"/\"` |\n| `passwordFieldLabel` | `password-field-label` | | `string` | `\"New Password\"` |\n| `passwordResetHeader` | `password-reset-header` | Displayed after a successful password reset. | `string` | `\"Password reset\"` |\n| `resetPasswordButtonText` | `reset-password-button-text` | | `string` | `\"Reset Password\"` |\n| `resetPasswordHeader` | `reset-password-header` | | `string` | `\"Reset your password\"` |\n\n\n## Dependencies\n\n### Depends on\n\n- [sqm-form-message](../sqm-form-message)\n- [sqm-password-field](../sqm-password-field)\n\n### Graph\n```mermaid\ngraph TD;\n sqm-portal-reset-password --> sqm-form-message\n sqm-portal-reset-password --> sqm-password-field\n style sqm-portal-reset-password fill:#f9f,stroke:#333,stroke-width:4px\n```\n\n----------------------------------------------\n\n*Built with [StencilJS](https://stenciljs.com/)*\n";
|
|
9554
9554
|
|
|
9555
|
-
const EmailVerificationReadme = "# sqm-portal-email-verification\
|
|
9555
|
+
const EmailVerificationReadme = "# sqm-portal-email-verification\n\n\n\n<!-- Auto Generated Below -->\n\n\n## Properties\n\n| Property | Attribute | Description | Type | Default |\n| ---------------------------- | ------------------------------ | ----------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `demoData` | -- | | `{ states?: { error: string; loading: boolean; success: boolean; isVerified?: boolean; loadingVerification?: boolean; countdown?: number; }; content?: { email: string; verifyMessage: string; emailVerificationHeader: string; resendEmailButtonText: string; verificationStatusMessage?: string; verificationLoadingMessage?: string; }; }` | `undefined` |\n| `emailVerificationHeader` | `email-verification-header` | | `string` | `\"Verify your email\"` |\n| `redirectPath` | `redirect-path` | Redirect participants to this page from their verification email. | `string` | `\"/verifyEmail\"` |\n| `resendEmailButtonText` | `resend-email-button-text` | | `string` | `\"Re-send Email\"` |\n| `verificationLoadingMessage` | `verification-loading-message` | | `string` | `\"Checking verification status\"` |\n| `verificationStatusMessage` | `verification-status-message` | | `string` | `\"Checking verification status in {countdown}\"` |\n| `verifyMessage` | `verify-message` | | `string` | `\"A verification email was sent to {email}. Please verify your email to continue to the portal. Resending an email will invalidate the previous email.\"` |\n\n\n## Dependencies\n\n### Depends on\n\n- [sqm-form-message](../sqm-form-message)\n\n### Graph\n```mermaid\ngraph TD;\n sqm-portal-email-verification --> sqm-form-message\n style sqm-portal-email-verification fill:#f9f,stroke:#333,stroke-width:4px\n```\n\n----------------------------------------------\n\n*Built with [StencilJS](https://stenciljs.com/)*\n";
|
|
9556
9556
|
|
|
9557
|
-
const EmailVerifiedReadme = "# sqm-portal-verify-email\
|
|
9557
|
+
const EmailVerifiedReadme = "# sqm-portal-verify-email\n\n\n\n<!-- Auto Generated Below -->\n\n\n## Properties\n\n| Property | Attribute | Description | Type | Default |\n| ------------ | ------------- | ------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ----------- |\n| `demoData` | -- | | `{ states?: { error: string; loading: boolean; verified: boolean; }; data?: { oobCode: string; }; }` | `undefined` |\n| `failedPage` | `failed-page` | Redirect participants to this page if verification fails due to an outdated verification attempt. | `string` | `\"/\"` |\n| `nextPage` | `next-page` | Redirect participants to this page when they successfully verify their email. | `string` | `\"/\"` |\n\n\n## Dependencies\n\n### Depends on\n\n- [sqm-form-message](../sqm-form-message)\n\n### Graph\n```mermaid\ngraph TD;\n sqm-portal-verify-email --> sqm-form-message\n style sqm-portal-verify-email fill:#f9f,stroke:#333,stroke-width:4px\n```\n\n----------------------------------------------\n\n*Built with [StencilJS](https://stenciljs.com/)*\n";
|
|
9558
9558
|
|
|
9559
9559
|
const PortalTemplates_stories = {
|
|
9560
9560
|
title: "Templates / Portal",
|
|
@@ -9763,7 +9763,7 @@ const PoweredByImg = /*#__PURE__*/Object.freeze({
|
|
|
9763
9763
|
CustomWidthAndHeight: CustomWidthAndHeight
|
|
9764
9764
|
});
|
|
9765
9765
|
|
|
9766
|
-
const scenario$f = "Feature: Portal Footer\
|
|
9766
|
+
const scenario$f = "Feature: Portal Footer\n\n Background: A user is viewing the portal\n Given a hosted portal\n And a user is viewing the portal\n And the portal has a footer\n\n Scenario Outline: FAQ and T&C links/text are configurable and open in a new page when clicked\n Given the footer has prop \"terms-link\" with value \"https://example.com/terms\"\n And prop \"terms-text\" with value \"Terms and Conditions\"\n And prop \"faq-link\" with value \"https://example.com/FAQ\"\n And prop \"faq-text\" with value \"Visit FAQ\"\n When a user clicks on the \"Visit FAQ\" link\n Then they will be redirected to \"https://example.com/FAQ\" in a new page\n When they go back to the portal\n And click on the \"Terms and Conditions\" link\n Then they will be redirected to \"https://example.com/terms\" in a new page\n\n Scenario Outline: FAQ/T&C Links are not shown if a link is not provided\n Given the footer does not have <linkProp>\n But it <mayHave> <textProp> with <value>\n Then the <link> will not be shown in the footer\n Examples:\n | linkProp | mayHave | textProp | value | link |\n | terms-link | has | termsText | Terms and Conditions | T&C Link |\n | faq-link | has | faqText | Visit FAQ | FAQ Link |\n | terms-link | doesn't have | | | T&C Link |\n | faq-link | doesn't have | | | FAQ Link |\n\n Scenario Outline: The support email and text is configurable but has a default\n Given the footer <mayHave> <emailPropWithValue>\n And the footer <mayAlsoHave> <textPropWithValue>\n Then the footer's support email text is <renderedEmailText>\n And the email address will be a mailto link with <mailtoEmail>\n When the user clicks on the email address mailto Link\n Then the users preferred email client will open with a draft email to <mailtoEmail>\n Examples:\n | mayHave | emailPropWithValue | mayAlsoHave | textPropWithValue | mailtoEmail | renderedEmailText |\n | has | support@saasquatch.com | has | For support please contact {email} | support@saasquatch.com | For support please contact support@saasquatch.com |\n | doesn't have | N/A | doesn't have | N/A | support@example.com | For program support, contact support@example.com |\n\n Scenario Outline: Powered by SaaSquatch is shown by default\n Given the footer <mayHaveProp> \"hide-powered-by\" with <value>\n Then the powered by SaaSquatch image <mayBeShown>\n Examples:\n | mayHaveProp | value | mayBeShown |\n | has prop | true | isn't shown |\n | has prop | false | is shown |\n | has prop | test | isn't shown |\n | has prop | | isn't shown |\n | doesn't have prop | | is shown |\n\n Scenario: Powered By Saasquatch links out to \"https://saasquatch.com\"\n Given the footer has the powered by SaaSquatch image\n When a user clicks on it\n Then they will be redirected to \"https://saasquatch.com\" in a new page";
|
|
9767
9767
|
|
|
9768
9768
|
const PortalFooter_stories = {
|
|
9769
9769
|
title: "Components/Portal Footer",
|
|
@@ -9797,7 +9797,7 @@ const PortalFooter = /*#__PURE__*/Object.freeze({
|
|
|
9797
9797
|
FooterNoPoweredBy: FooterNoPoweredBy
|
|
9798
9798
|
});
|
|
9799
9799
|
|
|
9800
|
-
const scenario$g = "Feature: Hero Unit\
|
|
9800
|
+
const scenario$g = "Feature: Hero Unit\n\n Background: A portal with a hero unit exists\n Given a hosted portal\n And the portal has hero unit on the login page\n And a user is viewing the login page\n\n Scenario: The hero unit defaults to a single column layout\n Given a hero unit does not have a \"columns\" prop\n But the following html is wrapped by the hero unit\n \"\"\"\n <sqm-portal-login></sqm-portal-login>\n <div slot=\"secondary-column\">\n <h1 style=\"text-align:center\">Get Referring!</h1>\n <p style=\"text-align:center\">\n Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do\n eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim\n ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut\n aliquip ex ea commodo consequat. Duis aute irure dolor in\n reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla\n pariatur.\n </p>\n </div>\n \"\"\"\n Then only a single column will be displayed\n And within it will be the login component\n\n Scenario Outline: The hero unit supports single or dual column layouts\n Given a hero unit with prop \"columns\" having <columnValue>\n And it wraps <html>\n Then the hero unit displays <columnValue> columns\n Examples:\n | columnValue | html |\n | 1 | <h1>Column 1!</h1> |\n | 2 | <h1>Column 1!</h1><div slot=\"secondary-column\"><h1 style=\"text-align:center\">Column 2!</h1></div> |\n\n Scenario: HTML to be displayed in the second column comes from the \"secondary-column\" slot\n Given a hero unit with \"columns\" \"2\"\n And the following html\n \"\"\"\n <h1>Column 1!</h1>\n <div>\n <h1 style=\"text-align:center\">Column 2!</h1>\n </div>\n \"\"\"\n When the hero unit is rendered\n Then only one column is displayed with content\n And column 1 will contain the \"Column 1!\" text\n And column 1 will contain the \"Column 2!\" text\n When the div for column two is updated to have 'slot=\"secondary-column\"'\n Then the two columns are displayed with content\n And column 1 will contain the \"Column 1!\" text\n And column 2 will contain the \"Column 2!\" text\n\n Scenario Outline: A background for the hero unit can be set as an image or colour\n Given a hero unit with <backgroundPropValue>\n Then the background will be <background>\n Examples:\n | background | background |\n | https://images.unsplash.com/photo-1599676821464-3555954838d | image of misty mountains |\n | LightSlateGrey | light slate grey |\n | #00FF00 | green |\n | rgb(128,0,128) | purple |\n\n Scenario Outline: Wrap Direction can be configured for mobile experiences\n Given a hero unit with the following HTML\n \"\"\"\n <h1>Column 1!</h1>\n <div slot=\"secondary-column\">\n <h1 style=\"text-align:center\">Column 2!</h1>\n </div>\n \"\"\"\n And prop \"wrap-direction\" has <value>\n When the window width is less than 600px\n Then the two columns will stack\n And <column> will be on top\n Examples:\n | value | column |\n | wrap | 1 |\n | wrap-reverse | 2 |\n | | 1 |";
|
|
9801
9801
|
|
|
9802
9802
|
const Hero_stories = {
|
|
9803
9803
|
title: "Components/Hero Layout",
|
|
@@ -9979,7 +9979,7 @@ const Hero = /*#__PURE__*/Object.freeze({
|
|
|
9979
9979
|
TwoColumnLoginWithImgElement: TwoColumnLoginWithImgElement
|
|
9980
9980
|
});
|
|
9981
9981
|
|
|
9982
|
-
const scenario$h = "@owner:sam\
|
|
9982
|
+
const scenario$h = "@owner:sam\n@author:sam\n\nFeature: Referral Iframe\n\n Used to provide an external form for submitting referral leads using the current user's referral code\n\n Background: A user is logged in\n Given there is a logged in user\n\n @motivating\n Scenario: Referral code is passed to the iframe as a query parameter\n Given the \"iframe-src\" is \"https://example.com\"\n And the user has navigated to \"/refer\"\n And the user's referral code is \"BOBBYREFER\"\n When the iframe content is loaded\n Then the iframe url will be \"https://example.com?rsCode=BOBBYREFER\"\n\n @ui\n Scenario Outline: The height and width of the iFrame can be controlled via props\n Given the \"iframe-src\" is \"https://example.com\"\n And the iframe content is 1000x1000\n And the \"iframe-height\" is set to <heightValue>\n And the \"iframe-width\" is set to <widthValue>\n Then the content of the iframe will be displayed with scrollbars\n And the dimension of the iFrame displayed will be 500x500\n When the \"iframe-height\" is set to <heightValue>\n And the \"iframe-width\" is set to <widthValue>\n Then the full content of the iframe will be displayed on the page\n And the dimension of the iFrame displayed will be 1000x1000\n Examples:\n | heightValue | widthValue |\n | 500px | 500px |\n | 50% | 50% |\n\n @minutia\n Scenario Outline: The iFrame will fail fast if a iFrame source isn't provided\n Given \"iframe-src\" <mayBeAnAttribute>\n And it <mayHaveValue>\n When a user views the referral iFrame component\n Then an alert with an error message is displayed in place of the iFrame\n And it has a details section\n When \"More details\" is clicked\n Then the following information will be displayed\n | component being used |\n | missing attribute(s) |\n\n Examples:\n | mayBeAnAttribute | mayHaveValue |\n | is not an attribute | N/A |\n | is an attribute | \"\" |\n | is an attribute | |";
|
|
9983
9983
|
|
|
9984
9984
|
const ReferralIframe_stories = {
|
|
9985
9985
|
title: "Components/Referral Iframe",
|
|
@@ -10015,7 +10015,7 @@ const ReferralIframe$1 = /*#__PURE__*/Object.freeze({
|
|
|
10015
10015
|
ReferralIframeError: ReferralIframeError
|
|
10016
10016
|
});
|
|
10017
10017
|
|
|
10018
|
-
const scenario$i = "@owner:sam\
|
|
10018
|
+
const scenario$i = "@owner:sam\n@author:sam\n\nFeature: Name Fields\n\n Fields to be used to fill the first and last name of a user during registration\n\n Background:\n Given the current page is \"/register\"\n\n @motivating\n Scenario: Both first name and last name are required\n Given the email field has valid input\n And the password field has valid input\n And first name field is empty\n And last name field is empty\n When register is clicked\n Then the name fields will be highlighted in red\n And the error messages will say \"Cannot be empty\"\n\n @motivating\n Scenario: First and last name are upserted with the SaaSquatch user\n Given all fields have been filled with data\n | firstName | lastName | email | password |\n | Bob | Testerson | bob@example.com | SecurePassword1 |\n When register is clicked\n Then the email verification page will be loaded\n And the user will be upserted\n And the SaaSquatch user will contain data\n | firstName | lastName | email |\n | Bob | Testerson | bob@example.com |\n\n";
|
|
10019
10019
|
|
|
10020
10020
|
const NameFields_stories = {
|
|
10021
10021
|
title: "Components/Name Fields",
|
|
@@ -10062,7 +10062,7 @@ const NameFields$1 = /*#__PURE__*/Object.freeze({
|
|
|
10062
10062
|
NameFieldsWithErrors: NameFieldsWithErrors
|
|
10063
10063
|
});
|
|
10064
10064
|
|
|
10065
|
-
const scenario$j = "@owner:sam\
|
|
10065
|
+
const scenario$j = "@owner:sam\n@author:sam\nFeature: Checkbox Field\n\n Field to be used to be used as a checkbox during registration. A motivating use case is to use this component as a terms\n and conditions field, to sastisfy legal requirements that a customer might have for their end users.\n\n Background: A user is on the portal registration page\n Given a user is viewing the \"/register\"\n And \"/register\" contains the registration form\n And the registration form has the following fields\n | fields |\n | first name |\n | last name |\n | email |\n | password |\n | checkbox |\n\n @motivating\n Scenario: Checkbox is required by default\n Given the user is filling out the registration form\n And the name fields have valid input\n And the email field has valid input\n And the password field has valid input\n And the checkbox is not checked\n When they try to register\n Then the checkbox is highlighted in red\n And the error message says \"Must be checked\"\n\n @landmine\n Scenario: Checkboxes with the same \"checkbox-name\" are not submitted in the form data\n Given the register form has the following html\n \"\"\"\n <sqm-portal-register>\n <sqm-name-fields slot=\"formData\"></sqm-name-fields>\n <sqm-checkbox-field\n slot=\"formData\"\n checkbox-label=\"I am not a robot\"\n error-message=\"Cannot be a robot\"\n checkbox-name=\"isHuman\"\n ></sqm-checkbox-field>\n <div slot=\"terms\">\n <sqm-checkbox-field checkbox-name=\"isHuman\"></sqm-checkbox-field>\n </div>\n </sqm-portal-register>\n \"\"\"\n And the checkboxes are checked\n When the user tries to register\n Then the form is submitted\n But no field with key \"isHuman\" is included in the form data\n\n @motivating\n Scenario: Multiple checkboxes need different \"checkbox-name\" values\n Given the register form has the following html\n \"\"\"\n <sqm-portal-register>\n <sqm-name-fields slot=\"formData\"></sqm-name-fields>\n <sqm-checkbox-field\n slot=\"formData\"\n checkbox-label=\"I am not a robot\"\n error-message=\"Cannot be a robot\"\n checkbox-name=\"isHuman\"\n ></sqm-checkbox-field>\n <div slot=\"terms\">\n <sqm-checkbox-field checkbox-name=\"myCheckbox\"></sqm-checkbox-field>\n </div>\n </sqm-portal-register>\n \"\"\"\n And the checkboxes are not checked\n When the user tries to register\n Then both checkboxes are bordered in red\n And the checkboxes have different error messages\n When the user checks the boxes\n And tries to register\n Then the form is submitted\n And the following fields are included in the form data\n | feilds |\n | isHuman |\n | myCheckbox |\n\n @motivating\n Scenario: Checkboxes can be optional\n Given the register form has the following html\n \"\"\"\n <sqm-portal-register>\n <sqm-name-fields slot=\"formData\"></sqm-name-fields>\n <sqm-checkbox-field\n slot=\"formData\"\n checkbox-label=\"I am not a robot\"\n checkbox-optional=\"true\"\n checkbox-name=\"isHuman\"\n />\n </sqm-portal-register>\n \"\"\"\n And the checkbox is not checked\n When the user tries to register\n Then there is no error for the checkbox\n\n @minutia\n Scenario Outline: Validation error message is configurable\n The error message string is evaluated as an ICU string, but currently is provided no context\n Given the checkbox is required\n And the checkbox has prop \"error-message\" with <propValue>\n When the user tries to register\n But they havent checked the checkbox\n Then they see <errorMessage> below\n Examples:\n | propValue | errorMessage |\n | | Must be checked |\n | My Custom Message | My Custom Message |\n\n @motivating\n Scenario Outline: Checkbox text and link are configurable\n Given the checkbox has the following prop values\n | prop | value |\n | checkbox-label | <labelText> |\n | checkbox-label-link | <labelLink> |\n | checkbox-label-link-text | <labelLinkText> |\n When the user views the checkbox\n Then they see <text>\n And when they click <labelLinkText> they are redirected to <labelLink>\n #First example below is the defaults set by the controller\n Examples:\n | labelText | labelLinkText | labelLink | text |\n | By signing up you agree to the {labelLink} | Terms and Conditions | https://example.com | By signing up you agree to the Terms and Conditions |\n | Read our {labelLink} before registration | Terms of Service | https://example.com/terms | Read our Terms of Service before registration |\n | By registering you agree to our terms and conditions | N/A | N/A | By registering you agree to our terms and conditions |\n\n @motivating\n Scenario: The form field name attribute is configurable\n Given the checkbox has prop \"checkbox-name\" with value \"myCheckBox\"\n When the user checks the box\n And they register\n Then the boolean value of the checkbox is submitted under \"myCheckBox\" field\n\n @minutia\n Scenario Outline: The checkbox field component fails fast if a checkbox name isn't provided\n Given the checkbox <mayHave> prop \"checkbox-name\"\n And it <mayHavePropValue>\n When a user views the checkbox\n Then an alert with an error message is displayed in place of the checkbox\n And it has a details section\n When \"More details\" is clicked\n Then the following information is displayed\n | information |\n | component being used |\n | missing attribute(s) |\n Examples:\n | mayBeAnAttribute | mayHavePropValue |\n | doesn't have | N/A |\n | has | \"\" |\n | has | |";
|
|
10066
10066
|
|
|
10067
10067
|
const CheckboxField_stories = {
|
|
10068
10068
|
title: "Components/Checkbox Field",
|
|
@@ -10356,7 +10356,7 @@ const UseDropdownField = /*#__PURE__*/Object.freeze({
|
|
|
10356
10356
|
MissingName: MissingName$1
|
|
10357
10357
|
});
|
|
10358
10358
|
|
|
10359
|
-
const scenario$k = "@author:derek\
|
|
10359
|
+
const scenario$k = "@author:derek\n@owner:derek\nFeature: Form Input Field\n\n This component is used as a custom registration field during registration. The field can be text,\n a date or phone number. A motivating use case is to ask for a users company name, this value would then be mapped\n through the Managed Identity Service and upserted on the user after registration.\n\n Background: A user exists and is viewing the hosted portal registration\n Given a user is viewing \"/register\"\n And \"/register\" contains the registration form\n And the registration form has a custom input field\n\n @motivating\n Scenario Outline: Input fields are required by default but can be optional\n Given the input has prop \"field-optional\" with <value>\n And the input is empty\n When the user tries to register\n Then the input <mayBe> highlighted in red\n And an error message <mayAppear> in red below\n And form submission <mayBe> blocked\n Examples:\n | value | mayBe | mayAppear |\n | false | is | appears |\n | | is | appears |\n | true | isn't | doesn't appear |\n\n @motivating\n Scenario: Input field labels are configurable\n Given the input has prop \"field-label\" with value \"My Custom Input\"\n When the user views the registration form\n Then they see the input field\n And it has label \"My Custom Input\" above the input\n\n @minutia\n Scenario Outline: The validation error message is configurable\n The error message string is evaluated as an ICU string, but currently is provided no context\n Given the input is required\n And it has prop \"error-message\" with <value>\n When the user tries to register\n But they haven't filled in the input\n Then they see <errorMessage> below\n Examples:\n | value | errorMessage |\n | | Cannot be empty |\n | My Custom Message | My Custom Message |\n\n @motivating\n Scenario: Form data attribute name is configurable\n Given the input has prop \"field-name\" with value \"myCustomField\"\n When the user types \"testing testing\" into the input\n And they register\n Then \"testing testing\" is submitted under \"myCustomField\" in the form data\n\n @motivating\n Scenario Outline: The input field is a text input by default\n Given the input <mayHave> prop \"field-type\" with <value>\n When the user views the input field\n Then it is a text input\n Examples:\n | mayHave | value |\n | has | text |\n | doesn't have | |\n\n @motivating\n Scenario: Date type inputs are supported\n Given the input has prop \"field-type\" \"date\"\n When the user views the input field\n Then they see \"mm/dd/yyyy\" as a placeholder\n And they see a calendar icon on the right\n When they start typing a date\n Then it maintains the \"mm/dd/yyyy\" format\n When they click the calendar icon\n Then a dropdown appears\n And they see a calendar\n When they select a date\n Then it is applied to the input\n\n @landmine\n Scenario: The clear text button in the date picker does not clear the date\n Due to an incompatibility between our shoelace version and the browser, the clear funtionality is not supported currently\n Given the input has prop \"field-type\" \"date\"\n And the user has entered a date\n When they click the calendar icon\n And click the 'clear' text button\n Then their selected date is not cleared\n\n @motivating\n Scenario: Phone number type inputs are supported\n Given the input has prop \"field-type\" with value \"tel\"\n When the user starts typing a phone number in the input\n Then it is formatted into the following form \"(XXX) XXX-XXXX\"\n When they pre-fix their phone number with a \"1\"\n Then it is formatted into the following form \"1 (XXX) XXX-XXXX\"\n\n @landmine\n Scenario: Telephone formatting is removed after 10 numbers\n Given a user using a phone number input field\n And they entered their 10 character phone number\n And it was not prefixed with a 1\n When they add another character\n Then the formatting is removed\n\n @landmine\n Scenario Outline: Input values are always recorded as strings in the form data\n Given the input has prop \"field-type\" with <value>\n And it has a \"field-name\"\n When the user inputs <formInput>\n And they register\n Then <formData> is recorded in the form data as a string\n Examples:\n | value | formInput | formData |\n | text | Hello there | Hello there |\n | date | 05/07/2021 | 2021-05-07 |\n | tel | (250) 234-9877 | (250) 234-9877 |\n\n @minutia\n Scenario Outline: The input field component fails fast if a field name isn't provided\n Given the input <mayHave> prop \"field-name\"\n And it <mayHavePropValue>\n When a user views the input\n Then an alert with an error message is displayed in place of the input\n And it has a details section\n When \"More details\" is clicked\n Then the following information is displayed\n | information |\n | component being used |\n | missing attribute(s) |\n Examples:\n | mayBeAnAttribute | mayHavePropValue |\n | doesn't have | N/A |\n | has | \"\" |\n | has | |";
|
|
10360
10360
|
|
|
10361
10361
|
const InputField_stories = {
|
|
10362
10362
|
title: "Components/Input Field",
|
|
@@ -10541,7 +10541,7 @@ const UseInputField = /*#__PURE__*/Object.freeze({
|
|
|
10541
10541
|
MissingName: MissingName$2
|
|
10542
10542
|
});
|
|
10543
10543
|
|
|
10544
|
-
const scenario$l = "@author:derek\r\n@owner:derek\r\nFeature: Reward Exchange List\r\n\r\n The Reward Exchange List gives end users the power to exchange their rewards for other rewards.\r\n It populates a list from the reward exchange rules set up on a given tenant.\r\n\r\n Background:\r\n Given a tenant with reward exchange rules\r\n\r\n @motivating\r\n @ui\r\n Scenario: The empty state is shown if there are no visible exchanges\r\n Given a user with no visible exchanges\r\n When they view the reward exchange\r\n Then no exchange options are displayed\r\n And they see an image of a present\r\n And \"Redeem Rewards\" in bold\r\n And \"Use your points to redeem rewards once they become available\" below the bolded text\r\n And the pagination buttons are disabled\r\n\r\n @minutia\r\n @ui\r\n Scenario: A custom empty state can be provided\r\n Given a user with no visible exchanges\r\n And a custom empty state has been supplied in the \"empty\" slot\r\n When they view the reward exchange\r\n Then they see the custom empty state\r\n\r\n @motivating\r\n @ui\r\n Scenario: A Loading Skeleton is displayed when the reward exchange rules are loading\r\n Given a user\r\n When they load the reward exchange list\r\n Then they see a loading Skeleton\r\n And it has 8 skeleton cards\r\n When the reward exchange rules have loaded\r\n Then the skeleton is replaced with reward exchange options\r\n\r\n @motivating\r\n Scenario: An error banner appears when the reward exchange list fails to load\r\n Given a user trying to view the reward exchange list\r\n But it fails to load\r\n Then an error banner is displayed\r\n And it displays \"Unable to load reward exchange list. Please try again\"\r\n\r\n @motivating\r\n @ui\r\n Scenario: The exchange progress bar progresses through the exchange process\r\n Given a user who is eligible for the tenants reward exchange rules\r\n When they view the reward exchange list\r\n Then the process bar displays the following elements\r\n | elements |\r\n | Step 1 `Rewards` title in black |\r\n | Step 1 circle with green outline, white fill and number 1 in green |\r\n | Step 2 `Select` title in grey |\r\n | Step 2 circle with grey fill and number 2 in white |\r\n | Step 3 `Confirm` title in grey |\r\n | Step 3 circle with grey fill and number 3 in white |\r\n | lines between all steps are greyed out |\r\n When they continue to the selection page\r\n Then the progress bar displays the following elements\r\n | elements |\r\n | Step 1 `Rewards` title in black |\r\n | Step 1 circle with white checkmark and green fill |\r\n | Step 2 `Select` title in black |\r\n | Step 2 circle with green outline, white fill and number 2 in green |\r\n | Step 3 `Confirm` title in grey |\r\n | Step 3 circle with grey fill and number 3 in white |\r\n | Green line between step 1 and 2 |\r\n | Grey line between step 2 and 3 |\r\n When they continue to the confirmation page\r\n Then the progress bar displays the following elements\r\n | elements |\r\n | Step 1 `Rewards` title in black |\r\n | Step 1 circle with white checkmark and green fill |\r\n | Step 2 `Select` title in black |\r\n | Step 2 circle with white checkmark and green fill |\r\n | Step 3 `Confirm` title in black |\r\n | Step 3 circle with green outline, white fill and number 3 in green |\r\n | Green line between all steps |\r\n When they continue to the redemption page\r\n Then the progress bar displays the following elements\r\n | elements |\r\n | Step 1 `Rewards` title in black |\r\n | Step 1 circle with white checkmark and green fill |\r\n | Step 2 `Select` title in black |\r\n | Step 2 circle with white checkmark and green fill |\r\n | Step 3 `Confirm` title in black |\r\n | Step 3 circle with white checkmark and green fill |\r\n | Green line between all steps |\r\n\r\n @motivating\r\n Scenario: Users must choose a reward exchange option to continue to the selection page\r\n Given a user who is eligible for the tenants reward exchange rules\r\n When they view the reward exchange list\r\n Then the 'Continue' button is disabled\r\n When they select a reward exchange card\r\n Then the card is outlined in brand colour with a brand colour cirlcular check box icon in the top right\r\n And the continue button is no longer disabled\r\n When they click \"Continue\"\r\n Then they are brought to the selection page\r\n\r\n @motivating\r\n @ui\r\n Scenario: Reward exchange rule names and images are used in the reward exchange cards\r\n Given a tenant reward exchange rule\r\n And it has name \"My Visa Exchange Rule\"\r\n And it has an image\r\n When a user views the reward exchange list\r\n Then they see a exchange card with title \"My Visa Exchange Rule\"\r\n And the exchange image on the left hand side of the card\r\n\r\n @motivating\r\n Scenario Outline: Reward exchange source values are displayed on reward exchange cards\r\n Given a <type> reward exchange rule\r\n When a user views the reward exchange list\r\n Then they see <text> under the name on the exchange option cards\r\n And the pretty values are localized to a user locale\r\n Examples:\r\n | type | text |\r\n | FIXED_GLOBAL_REWARD | the exchange source pretty value |\r\n | STEPPED_FIXED_GLOBAL_REWARD | the exchange source min pretty value to the source max pretty value |\r\n | VARIABLE_GLOBAL_REWARD | the exchange source min pretty value to the source max pretty value |\r\n | VARIABLE_CREDIT_REWARD | the exchange source min pretty value to the source max pretty value |\r\n\r\n @motivating\r\n Scenario Outline: Reward exchange cards can display customized error messages\r\n Given a reward exchange rule\r\n And it has <availabilityPredicate>\r\n And the reward exchange list has prop \"not-available-error\" with <value>\r\n When the user views the reward exchange list\r\n Then the card for the reward exchange rule is disabled\r\n And <message> is displayed\r\n Examples:\r\n | availabilityPredicate | value | message |\r\n | 'champion' in user.segments ? \"NOT_CHAMPION\" : true | {unavailableReasonCode, select, NOT_CHAMPION {Sorry must be a champion!} other {unavailableReasonCode} } | Sorry must be a champion! |\r\n | user.customFields.purchaseCount < 10 ? \"MORE_PURCHASE\" : true | {unavailableReasonCode, select, MORE_PURCHASE {Complete 10 purchases to unlock} other {unavailableReasonCode} } | Complete 10 purchases to unlock |\r\n\r\n @motivating\r\n Scenario: Exchange options are disabled if they put a user over the W9 limit\r\n Given a user who is approaching their W9 limit\r\n And a reward exchange rule\r\n And its destination reward has a US taxable value that would put the user over their limit\r\n When they view the reward exchange list\r\n Then the reward exchange card is disabled\r\n And a \"US Tax Limit\" error message is displayed on to the right of a exclamation triangle icon\r\n And the text is orange\r\n And the icon is orange\r\n\r\n @motivating\r\n Scenario Outline: Exchange options are disabled if a users lacks enough credit to redeem\r\n Given a <type> reward exchange rule\r\n But the user lacks enough credit to exchange for it\r\n When they view the reward exchange list\r\n Then the reward exchange card is disabled\r\n And a <text> error message is displayed on to the right of a exclamation triangle icon\r\n And the text is orange\r\n And the icon is orange\r\n Examples:\r\n | type | text |\r\n | FIXED_GLOBAL_REWARD | {prettySourceValue} required |\r\n | STEPPED_FIXED_GLOBAL_REWARD | {prettySourceMinValue} required |\r\n | VARIABLE_GLOBAL_REWARD | {prettySourceMinValue} required |\r\n | VARIABLE_CREDIT_REWARD | {prettySourceMinValue} required |\r\n\r\n @motivating\r\n Scenario: Users can go back to the Rewards page from the Select page\r\n Given a user viewing the Select page\r\n Then they see a \"Cancel\" text button\r\n And a \"Continue to confirmation\" brand colour button in the bottom right corner\r\n When they click \"Cancel\"\r\n Then they return to the Rewards page\r\n\r\n @motivating\r\n Scenario: Users can go back to the Select Page from the Confirm page\r\n Given a user viewing the Confirm page\r\n Then they see a \"Back\" text button\r\n And a \"Redeem\" brand colour button in the bottom right corner\r\n When they click \"Back\"\r\n Then they return to the Select Page\r\n\r\n @motivating\r\n Scenario: Reward rules with visibility predicates that evaluates to false are not shown\r\n Given a tenant reward exchange rule with visibility predicates that evaluates to false\r\n When a user views the reward exchange list\r\n Then they do not see the card for that reward exchange rule\r\n\r\n @motivating\r\n Scenario Outline: Users can choose their reward option for variable rewards on the Select page\r\n Given a <type> exchange rule\r\n And it has the following fields\r\n | fields |\r\n | name |\r\n | description |\r\n | image |\r\n When a user views the reward exchange list\r\n And they progress to the Select page for this exchange\r\n Then they see the exchange rule image on the left hand side\r\n And on the right hand side they see the following in this order from top to bottom\r\n | elements |\r\n | exchange name |\r\n | exchange description |\r\n | select list with all exchange options using pretty values, destination reward above source reward |\r\n Examples:\r\n | type |\r\n | STEPPED_FIXED_GLOBAL_REWARD |\r\n | VARIABLE_GLOBAL_REWARD |\r\n | VARIABLE_CREDIT_REWARD |\r\n\r\n @motivating\r\n Scenario: Users who selected a fixed exchange rule see exchange information on the Select page\r\n Given a \"FIXED_GLOBAL_REWARD\" exchange rule\r\n And it has the following fields\r\n | fields |\r\n | name |\r\n | description |\r\n | image |\r\n When a user views the reward exchange list\r\n And they progress to the Select page for this exchange\r\n Then they see the exchange rule image on the left hand side\r\n And on the right hand side they see the following in this order from top to bottom\r\n | elements |\r\n | exchange name |\r\n | exchange source pretty value displayed in brand colour |\r\n | exchange description |\r\n\r\n @motivating\r\n Scenario Outline: Users selection variable rewards can only select rewards they are eligible to exchange for\r\n Given a <type> exchange rule\r\n When a user views the reward exchange list\r\n And they progress to the Select page for this exchange\r\n Then they see a drop down with all the reward exchange selections\r\n When they click on the drop down\r\n But they are not eligible for all of the exchanges options <dueToReason>\r\n Then the ineligble options are disabled\r\n And under the source value is <text>\r\n Examples:\r\n | type | dueToReason | text |\r\n | STEPPED_FIXED_GLOBAL_REWARD | due to insufficent source value | {prettySourceValue} required |\r\n | VARIABLE_GLOBAL_REWARD | due to insufficent source value | {prettySourceValue} required |\r\n | VARIABLE_CREDIT_REWARD | due to insufficent source value | {prettySourceValue} required |\r\n | STEPPED_FIXED_GLOBAL_REWARD | W9 | US Tax Limit |\r\n | VARIABLE_GLOBAL_REWARD | W9 | US Tax Limit |\r\n | VARIABLE_CREDIT_REWARD | W9 | US Tax Limit |\r\n\r\n @motivating\r\n Scenario Outline: The Confirm page allows users to view their exchange before committing\r\n Given a <type> exchange rule\r\n When a user views the reward exchange list\r\n And they select the exchange\r\n And they progress to Confirm page\r\n Then they see a row with title \"Reward\"\r\n And it contains the exchange name\r\n And it contains the exchange image\r\n And they <maySee> a row with title \"Reward Amount\"\r\n And it <mayContain> <amountTitle>\r\n And they see a row with title \"Cost to Redeem\"\r\n And it contains the source reward pretty value in bolded text\r\n Examples:\r\n | type | maySee | mayContain | amountTitle |\r\n | FIXED_GLOBAL_REWARD | don't | doesn't contain | N/A |\r\n | VARIABLE_GLOBAL_REWARD | see | contains | the pretty destination value |\r\n | STEPPED_FIXED_GLOBAL_REWARD | see | contains | the pretty destination value |\r\n | VARIABLE_CREDIT_REWARD | see | contains | the pretty destination value |\r\n\r\n @motivating\r\n Scenario: An error banner is displayed if an error occurs during redemeption\r\n Given a user has selected a reward to exchange\r\n And is on the confirmation page\r\n When they click \"Redeem\"\r\n But an error occurs\r\n Then an error banner appears\r\n And it contains details about the error\r\n And the reward exchange is not completed\r\n\r\n @motivating\r\n Scenario: Confetti is displayed when a reward exchange succeeds\r\n Given a user has selected a reward to exchange\r\n And they are on the confirmation page\r\n When they click \"Redeem\"\r\n And the exchange is successful\r\n Then they see confetti centered on the success page\r\n And they see text describing what they exchanged for their new reward\r\n And they see a \"Done\" brand colour button\r\n When they click \"Done\"\r\n Then they see the Rewards page\r\n\r\n @motivating\r\n Scenario: Fuel tank codes are shown when a reward exchange succeeds\r\n Given a user has selected to exchange for a fuel tank reward\r\n When they complete the reward exchange\r\n And are on the success page\r\n Then they see a textbox with their fuel tank code\r\n And a clipboard icon\r\n When they click the clipboard icon\r\n Then their fuel tank code is copied to their clipboard\r\n\r\n @motivating\r\n Scenario Outline: Users can exchange for any type of reward\r\n Given a <type> reward exchange rule for a <reward>\r\n And a user who has enough source credit to exchange for the reward\r\n When they go through the exchange flow\r\n And exchange for their reward\r\n Then their credit is exchanged for the <reward>\r\n Examples:\r\n | type | reward |\r\n | FIXED_GLOBAL_REWARD | gift card |\r\n | FIXED_GLOBAL_REWARD | fuel tank code |\r\n | FIXED_GLOBAL_REWARD | discount |\r\n | FIXED_GLOBAL_REWARD | credit reward |\r\n | STEPPED_FIXED_GLOBAL_REWARD | gift card |\r\n | STEPPED_FIXED_GLOBAL_REWARD | discount |\r\n | STEPPED_FIXED_GLOBAL_REWARD | credit reward |\r\n | VARIABLE_GLOBAL_REWARD | gift card |\r\n | VARIABLE_GLOBAL_REWARD | discount |\r\n | VARIABLE_GLOBAL_REWARD | credit reward |\r\n | VARIABLE_CREDIT_REWARD | credit reward |";
|
|
10544
|
+
const scenario$l = "@author:derek\n@owner:derek\nFeature: Reward Exchange List\n\n The Reward Exchange List gives end users the power to exchange their rewards for other rewards.\n It populates a list from the reward exchange rules set up on a given tenant.\n\n Background:\n Given a tenant with reward exchange rules\n\n @motivating\n @ui\n Scenario: The empty state is shown if there are no visible exchanges\n Given a user with no visible exchanges\n When they view the reward exchange\n Then no exchange options are displayed\n And they see an image of a present\n And \"Redeem Rewards\" in bold\n And \"Use your points to redeem rewards once they become available\" below the bolded text\n And the pagination buttons are disabled\n\n @minutia\n @ui\n Scenario: A custom empty state can be provided\n Given a user with no visible exchanges\n And a custom empty state has been supplied in the \"empty\" slot\n When they view the reward exchange\n Then they see the custom empty state\n\n @motivating\n @ui\n Scenario: A Loading Skeleton is displayed when the reward exchange rules are loading\n Given a user\n When they load the reward exchange list\n Then they see a loading Skeleton\n And it has 8 skeleton cards\n When the reward exchange rules have loaded\n Then the skeleton is replaced with reward exchange options\n\n @motivating\n Scenario: An error banner appears when the reward exchange list fails to load\n Given a user trying to view the reward exchange list\n But it fails to load\n Then an error banner is displayed\n And it displays \"Unable to load reward exchange list. Please try again\"\n\n @motivating\n @ui\n Scenario: The exchange progress bar progresses through the exchange process\n Given a user who is eligible for the tenants reward exchange rules\n When they view the reward exchange list\n Then the process bar displays the following elements\n | elements |\n | Step 1 `Rewards` title in black |\n | Step 1 circle with green outline, white fill and number 1 in green |\n | Step 2 `Select` title in grey |\n | Step 2 circle with grey fill and number 2 in white |\n | Step 3 `Confirm` title in grey |\n | Step 3 circle with grey fill and number 3 in white |\n | lines between all steps are greyed out |\n When they continue to the selection page\n Then the progress bar displays the following elements\n | elements |\n | Step 1 `Rewards` title in black |\n | Step 1 circle with white checkmark and green fill |\n | Step 2 `Select` title in black |\n | Step 2 circle with green outline, white fill and number 2 in green |\n | Step 3 `Confirm` title in grey |\n | Step 3 circle with grey fill and number 3 in white |\n | Green line between step 1 and 2 |\n | Grey line between step 2 and 3 |\n When they continue to the confirmation page\n Then the progress bar displays the following elements\n | elements |\n | Step 1 `Rewards` title in black |\n | Step 1 circle with white checkmark and green fill |\n | Step 2 `Select` title in black |\n | Step 2 circle with white checkmark and green fill |\n | Step 3 `Confirm` title in black |\n | Step 3 circle with green outline, white fill and number 3 in green |\n | Green line between all steps |\n When they continue to the redemption page\n Then the progress bar displays the following elements\n | elements |\n | Step 1 `Rewards` title in black |\n | Step 1 circle with white checkmark and green fill |\n | Step 2 `Select` title in black |\n | Step 2 circle with white checkmark and green fill |\n | Step 3 `Confirm` title in black |\n | Step 3 circle with white checkmark and green fill |\n | Green line between all steps |\n\n @motivating\n Scenario: Users must choose a reward exchange option to continue to the selection page\n Given a user who is eligible for the tenants reward exchange rules\n When they view the reward exchange list\n Then the 'Continue' button is disabled\n When they select a reward exchange card\n Then the card is outlined in brand colour with a brand colour cirlcular check box icon in the top right\n And the continue button is no longer disabled\n When they click \"Continue\"\n Then they are brought to the selection page\n\n @motivating\n @ui\n Scenario: Reward exchange rule names and images are used in the reward exchange cards\n Given a tenant reward exchange rule\n And it has name \"My Visa Exchange Rule\"\n And it has an image\n When a user views the reward exchange list\n Then they see a exchange card with title \"My Visa Exchange Rule\"\n And the exchange image on the left hand side of the card\n\n @motivating\n Scenario Outline: Reward exchange source values are displayed on reward exchange cards\n Given a <type> reward exchange rule\n When a user views the reward exchange list\n Then they see <text> under the name on the exchange option cards\n And the pretty values are localized to a user locale\n Examples:\n | type | text |\n | FIXED_GLOBAL_REWARD | the exchange source pretty value |\n | STEPPED_FIXED_GLOBAL_REWARD | the exchange source min pretty value to the source max pretty value |\n | VARIABLE_GLOBAL_REWARD | the exchange source min pretty value to the source max pretty value |\n | VARIABLE_CREDIT_REWARD | the exchange source min pretty value to the source max pretty value |\n\n @motivating\n Scenario Outline: Reward exchange cards can display customized error messages\n Given a reward exchange rule\n And it has <availabilityPredicate>\n And the reward exchange list has prop \"not-available-error\" with <value>\n When the user views the reward exchange list\n Then the card for the reward exchange rule is disabled\n And <message> is displayed\n Examples:\n | availabilityPredicate | value | message |\n | 'champion' in user.segments ? \"NOT_CHAMPION\" : true | {unavailableReasonCode, select, NOT_CHAMPION {Sorry must be a champion!} other {unavailableReasonCode} } | Sorry must be a champion! |\n | user.customFields.purchaseCount < 10 ? \"MORE_PURCHASE\" : true | {unavailableReasonCode, select, MORE_PURCHASE {Complete 10 purchases to unlock} other {unavailableReasonCode} } | Complete 10 purchases to unlock |\n\n @motivating\n Scenario: Exchange options are disabled if they put a user over the W9 limit\n Given a user who is approaching their W9 limit\n And a reward exchange rule\n And its destination reward has a US taxable value that would put the user over their limit\n When they view the reward exchange list\n Then the reward exchange card is disabled\n And a \"US Tax Limit\" error message is displayed on to the right of a exclamation triangle icon\n And the text is orange\n And the icon is orange\n\n @motivating\n Scenario Outline: Exchange options are disabled if a users lacks enough credit to redeem\n Given a <type> reward exchange rule\n But the user lacks enough credit to exchange for it\n When they view the reward exchange list\n Then the reward exchange card is disabled\n And a <text> error message is displayed on to the right of a exclamation triangle icon\n And the text is orange\n And the icon is orange\n Examples:\n | type | text |\n | FIXED_GLOBAL_REWARD | {prettySourceValue} required |\n | STEPPED_FIXED_GLOBAL_REWARD | {prettySourceMinValue} required |\n | VARIABLE_GLOBAL_REWARD | {prettySourceMinValue} required |\n | VARIABLE_CREDIT_REWARD | {prettySourceMinValue} required |\n\n @motivating\n Scenario: Users can go back to the Rewards page from the Select page\n Given a user viewing the Select page\n Then they see a \"Cancel\" text button\n And a \"Continue to confirmation\" brand colour button in the bottom right corner\n When they click \"Cancel\"\n Then they return to the Rewards page\n\n @motivating\n Scenario: Users can go back to the Select Page from the Confirm page\n Given a user viewing the Confirm page\n Then they see a \"Back\" text button\n And a \"Redeem\" brand colour button in the bottom right corner\n When they click \"Back\"\n Then they return to the Select Page\n\n @motivating\n Scenario: Reward rules with visibility predicates that evaluates to false are not shown\n Given a tenant reward exchange rule with visibility predicates that evaluates to false\n When a user views the reward exchange list\n Then they do not see the card for that reward exchange rule\n\n @motivating\n Scenario Outline: Users can choose their reward option for variable rewards on the Select page\n Given a <type> exchange rule\n And it has the following fields\n | fields |\n | name |\n | description |\n | image |\n When a user views the reward exchange list\n And they progress to the Select page for this exchange\n Then they see the exchange rule image on the left hand side\n And on the right hand side they see the following in this order from top to bottom\n | elements |\n | exchange name |\n | exchange description |\n | select list with all exchange options using pretty values, destination reward above source reward |\n Examples:\n | type |\n | STEPPED_FIXED_GLOBAL_REWARD |\n | VARIABLE_GLOBAL_REWARD |\n | VARIABLE_CREDIT_REWARD |\n\n @motivating\n Scenario: Users who selected a fixed exchange rule see exchange information on the Select page\n Given a \"FIXED_GLOBAL_REWARD\" exchange rule\n And it has the following fields\n | fields |\n | name |\n | description |\n | image |\n When a user views the reward exchange list\n And they progress to the Select page for this exchange\n Then they see the exchange rule image on the left hand side\n And on the right hand side they see the following in this order from top to bottom\n | elements |\n | exchange name |\n | exchange source pretty value displayed in brand colour |\n | exchange description |\n\n @motivating\n Scenario Outline: Users selection variable rewards can only select rewards they are eligible to exchange for\n Given a <type> exchange rule\n When a user views the reward exchange list\n And they progress to the Select page for this exchange\n Then they see a drop down with all the reward exchange selections\n When they click on the drop down\n But they are not eligible for all of the exchanges options <dueToReason>\n Then the ineligble options are disabled\n And under the source value is <text>\n Examples:\n | type | dueToReason | text |\n | STEPPED_FIXED_GLOBAL_REWARD | due to insufficent source value | {prettySourceValue} required |\n | VARIABLE_GLOBAL_REWARD | due to insufficent source value | {prettySourceValue} required |\n | VARIABLE_CREDIT_REWARD | due to insufficent source value | {prettySourceValue} required |\n | STEPPED_FIXED_GLOBAL_REWARD | W9 | US Tax Limit |\n | VARIABLE_GLOBAL_REWARD | W9 | US Tax Limit |\n | VARIABLE_CREDIT_REWARD | W9 | US Tax Limit |\n\n @motivating\n Scenario Outline: The Confirm page allows users to view their exchange before committing\n Given a <type> exchange rule\n When a user views the reward exchange list\n And they select the exchange\n And they progress to Confirm page\n Then they see a row with title \"Reward\"\n And it contains the exchange name\n And it contains the exchange image\n And they <maySee> a row with title \"Reward Amount\"\n And it <mayContain> <amountTitle>\n And they see a row with title \"Cost to Redeem\"\n And it contains the source reward pretty value in bolded text\n Examples:\n | type | maySee | mayContain | amountTitle |\n | FIXED_GLOBAL_REWARD | don't | doesn't contain | N/A |\n | VARIABLE_GLOBAL_REWARD | see | contains | the pretty destination value |\n | STEPPED_FIXED_GLOBAL_REWARD | see | contains | the pretty destination value |\n | VARIABLE_CREDIT_REWARD | see | contains | the pretty destination value |\n\n @motivating\n Scenario: An error banner is displayed if an error occurs during redemeption\n Given a user has selected a reward to exchange\n And is on the confirmation page\n When they click \"Redeem\"\n But an error occurs\n Then an error banner appears\n And it contains details about the error\n And the reward exchange is not completed\n\n @motivating\n Scenario: Confetti is displayed when a reward exchange succeeds\n Given a user has selected a reward to exchange\n And they are on the confirmation page\n When they click \"Redeem\"\n And the exchange is successful\n Then they see confetti centered on the success page\n And they see text describing what they exchanged for their new reward\n And they see a \"Done\" brand colour button\n When they click \"Done\"\n Then they see the Rewards page\n\n @motivating\n Scenario: Fuel tank codes are shown when a reward exchange succeeds\n Given a user has selected to exchange for a fuel tank reward\n When they complete the reward exchange\n And are on the success page\n Then they see a textbox with their fuel tank code\n And a clipboard icon\n When they click the clipboard icon\n Then their fuel tank code is copied to their clipboard\n\n @motivating\n Scenario Outline: Users can exchange for any type of reward\n Given a <type> reward exchange rule for a <reward>\n And a user who has enough source credit to exchange for the reward\n When they go through the exchange flow\n And exchange for their reward\n Then their credit is exchanged for the <reward>\n Examples:\n | type | reward |\n | FIXED_GLOBAL_REWARD | gift card |\n | FIXED_GLOBAL_REWARD | fuel tank code |\n | FIXED_GLOBAL_REWARD | discount |\n | FIXED_GLOBAL_REWARD | credit reward |\n | STEPPED_FIXED_GLOBAL_REWARD | gift card |\n | STEPPED_FIXED_GLOBAL_REWARD | discount |\n | STEPPED_FIXED_GLOBAL_REWARD | credit reward |\n | VARIABLE_GLOBAL_REWARD | gift card |\n | VARIABLE_GLOBAL_REWARD | discount |\n | VARIABLE_GLOBAL_REWARD | credit reward |\n | VARIABLE_CREDIT_REWARD | credit reward |";
|
|
10545
10545
|
|
|
10546
10546
|
const RewardExchangeList_stories = {
|
|
10547
10547
|
title: "Components/Reward Exchange List",
|
|
@@ -10594,7 +10594,7 @@ const RewardExchangeList = /*#__PURE__*/Object.freeze({
|
|
|
10594
10594
|
Empty: Empty$2
|
|
10595
10595
|
});
|
|
10596
10596
|
|
|
10597
|
-
const scenario$m = "@author:derek\
|
|
10597
|
+
const scenario$m = "@author:derek\n@owner:derek\nFeature: Program Explainer\n\n @motivating\n @ui\n Scenario Outline: The program explainer wraps program explainer steps and aligns them\n Given a program explainer component\n And it has <number> program explainer steps as components\n When a user views the program explainer\n Then they see <number> steps aligned horizontally\n And they have equal height/width\n And equal padding in between\n When they are viewed on a screen smaller than 500px\n Then the steps stack vertically with equal padding in between\n And they have equal width\n But height may vary\n Examples:\n | number |\n | 2 |\n | 3 |\n | 4 |\n\n @motivating\n @ui\n Scenario: The program explainer displays a section header\n Given a program explainer step with props\n | prop | value |\n | header | My Header |\n And it has program explainer steps as children\n When a user views the program explainer\n Then they see \"My Header\" centered above the explainer steps\n\n @motivating\n @ui\n Scenario: Colours are customizable\n Given a program explainer with props\n | prop | value |\n | text-color | purple |\n | background-color | grey |\n When a user views the program explainer\n Then the header is purple\n And the background between steos is grey\n";
|
|
10598
10598
|
|
|
10599
10599
|
const ProgramExplainer_stories = {
|
|
10600
10600
|
title: "Components/Program Explainer",
|
|
@@ -10655,7 +10655,7 @@ const ProgramExplainer = /*#__PURE__*/Object.freeze({
|
|
|
10655
10655
|
ProgramExplainerGeneric: ProgramExplainerGeneric
|
|
10656
10656
|
});
|
|
10657
10657
|
|
|
10658
|
-
const scenario$n = "@author:derek\
|
|
10658
|
+
const scenario$n = "@author:derek\n@owner:derek\nFeature: Program Explainer Step\n\n @motivating\n @ui\n Scenario: The program explainer step displays a icon, header and description\n Given a program explainer step with props\n | prop | value |\n | header | My Header |\n | description | My program explainer description |\n | icon | person-plus-fill |\n When a user views the explainer step\n Then they see an person icon with a + in the top left hand corner\n And the icon is weight 300 brand colour\n And below they see \"My Header\" in large bold font\n And below they see \"My program explainer description\" in medium font\n And the step background colour is weight 50 brand colour\n\n @motivating\n @ui\n Scenario: The program explainer can display an image in place of an icon\n Given a program explainer\n And it has an \"image-url\" prop with a value of a valid url to an image\n When a user views the explainer step\n Then the image is displayed in place of an incon in the top left hand corner\n\n @motivating\n @ui\n Scenario: Colours are customizable\n Given a program explainer step with props\n | prop | value |\n | text-color | purple |\n | background-color | grey |\n When a user views the explainer step\n Then they see the step background is grey\n And the header text is purple\n And the description text is purple\n";
|
|
10659
10659
|
|
|
10660
10660
|
const ProgramExplainerStep_stories = {
|
|
10661
10661
|
title: "Components/Program Explainer Step",
|
|
@@ -10677,7 +10677,7 @@ const ProgramExplainerStep$1 = /*#__PURE__*/Object.freeze({
|
|
|
10677
10677
|
ProgramExplainerStepCustom: ProgramExplainerStepCustom
|
|
10678
10678
|
});
|
|
10679
10679
|
|
|
10680
|
-
const scenario$o = "@author:derek\
|
|
10680
|
+
const scenario$o = "@author:derek\n@owner:logan\nFeature: Brand Configuration\n\n\t@motivating\n\tScenario: The brand components creates a colour pallet from a brand colour and applies it to children\n\t\tGiven a brand component with \"brand-color\" \"#4225c4\"\n\t\tAnd it is wrapping several mint components\n\t\tWhen a user views the children components\n\t\tThen the following css variables are set\n\t\t\t| variable | value |\n\t\t\t| --sl-color-primary-50 | hsla(251, 68%, 95%, 1) |\n\t\t\t| --sl-color-primary-100 | hsla(251, 68%, 86%, 1) |\n\t\t\t| --sl-color-primary-200 | hsla(251, 68%, 76%, 1) |\n\t\t\t| --sl-color-primary-300 | hsla(251, 68%, 66%, 1) |\n\t\t\t| --sl-color-primary-400 | hsla(251, 68%, 56%, 1) |\n\t\t\t| --sl-color-primary-500 | hsla(251, 68%, 46%, 1) |\n\t\t\t| --sl-color-primary-600 | hsla(251, 68%, 39%, 1) |\n\t\t\t| --sl-color-primary-700 | hsla(251, 68%, 32%, 1) |\n\t\t\t| --sl-color-primary-800 | hsla(251, 68%, 25%, 1) |\n\t\t\t| --sl-color-primary-900 | hsla(251, 68%, 18%, 1) |\n\t\t\t| --sl-color-primary-950 | hsla(251, 68%, 15%, 1) |\n\t\t\t| --sl-focus-ring-color-primary | var(--sl-color-primary-100) |\n\t\t\t| --sl-input-border-color-focus | var(--sl-color-primary-500) |\n\t\t\t| --sl-color-primary-hue | var(--sl-color-primary-500) |\n\t\tAnd they are applied to the children components\n\t\tBut they are not applied to any components outside of the brand component\n\t\tAnd they are not applied to any vanilla components\n\n\t@minutia\n\tScenario Outline: The brand colour can be hex, HSL or rgb\n\t\tGiven a brand component with \"brand-color\" <colour>\n\t\tAnd it is wrapping several mint components\n\t\tWhen a user views the children components\n\t\tThen the colour is used to create a brand palete\n\t\tAnd it is applied to the children components\n\t\tExamples:\n\t\t\t| colour |\n\t\t\t| #4225c4 |\n\t\t\t| rgb(66, 37, 196) |\n\t\t\t| hsl(251, 68%, 46%) |\n\t\t\t| hsla(251, 68%, 46%, 1) |\n\n\t@motivating\n\tScenario: The brand component can apply a brand font to children components\n\t\tGiven a brand component with \"brand-font\" \"Nunito Sans\"\n\t\tAnd it is wrapping several mint components\n\t\tWhen a user views the children components\n\t\tThen the following css variables are set\n\t\t\t| variable | value |\n\t\t\t| --sl-font-sans | \"Nunito Sans\", arial |\n\t\t\t| --sl-input-font-family | \"Nunito Sans\", arial |\n\t\t\t| --sl-tooltip-font-family | \"Nunito Sans\", arial |\n\t\t\t| font-family | \"Nunito Sans\", arial |\n\t\tAnd they are applied to the children components\n\t\tAnd the children component's text is \"Nunito Sans\"";
|
|
10681
10681
|
|
|
10682
10682
|
const SqmBrand_stories = {
|
|
10683
10683
|
title: "Components/Brand",
|
|
@@ -10783,7 +10783,7 @@ const BrandStories = /*#__PURE__*/Object.freeze({
|
|
|
10783
10783
|
Fonts: Fonts
|
|
10784
10784
|
});
|
|
10785
10785
|
|
|
10786
|
-
const scenario$p = "@author:kutay\
|
|
10786
|
+
const scenario$p = "@author:kutay\n@owner:kutay\nFeature: Card Feed\n\n\tThe Card Feed component displays Task Card components in a grid layout.\n\n\tBackground: A user on the portal is viewing the widget\n\t\tGiven a user viewing the Card Feed component\n\n\t@motivating\n\tScenario: The Card Feed component displays Task Cards given as children slots\n\t\tGiven a Card Feed component\n\t\tAnd it is wrapping a number of task cards as children\n\t\tWhen the user views the Card Feed\n\t\tThen the task cards are displayed in a masonry layout\n\t\tWhen the card feed with grows or shrinks in width\n\t\tThen the number of columns adjust to the given width\n\n\t@motivating\n\t@ui\n\tScenario Outline: The Card Feed component can have a maximum width\n\t\tGiven a Card Feed component\n\t\tAnd it is wrapping a number of task cards as children\n\t\tAnd has prop \"width\" has a provided <value>\n\t\tThen the task cards are displayed in a masonry layout\n\t\tWhen the card feed with grows or shrinks in width\n\t\tThen the number of columns adjust to the given width\n\t\tAnd the task cards do not exceed <width>\n\t\tExamples:\n\t\t\t| value | width |\n\t\t\t| | 347px |\n\t\t\t| 200 | 200px |\n\t\t\t| 400 | 400px |\n\n\t@motivating\n\t@ui\n\tScenario Outline: The Card Feed component gap between task cards can be customized\n\t\tGiven a Card Feed component\n\t\tAnd it is wrapping a number of task cards as children\n\t\tAnd has prop \"gap\" has a provided <value>\n\t\tThen the task cards are displayed in a masonry layout\n\t\tAnd the gap between the columns is the <gap>\n\t\tExamples:\n\t\t\t| value | gap |\n\t\t\t| | 24px |\n\t\t\t| 20 | 20px |\n\t\t\t| 50 | 50px |";
|
|
10787
10787
|
|
|
10788
10788
|
const CardFeed_stories = {
|
|
10789
10789
|
title: "Components/Card Feed",
|
|
@@ -11025,7 +11025,7 @@ const CardFeed = /*#__PURE__*/Object.freeze({
|
|
|
11025
11025
|
CardFeedGeneric: CardFeedGeneric
|
|
11026
11026
|
});
|
|
11027
11027
|
|
|
11028
|
-
const scenario$q = "@author:kutay\
|
|
11028
|
+
const scenario$q = "@author:kutay\n@owner:noah\nFeature: Portal Container\n\n\t@motivating\n\t@ui\n\tScenario: Horizontal content overflows, but does not stretch\n\t\tGiven there are two element in the container\n\t\tAnd the first is small\n\t\tAnd the second would stretch the container wider than it's parent\n\t\tThen the second one is clipped\n\t\tAnd the first one doesn't stretch\n\n\t@landmine\n\t@ui\n\tScenario: `max-width` is required for displaying as a row\n\t\tGiven I have `direction` to \"row\"\n\t\tAnd I have not set a `max-width`\n\t\tThen it displays as a column\n\n\t@motivating\n\t@ui\n\tScenario Outline: Content padding can be customized\n\t\tGiven prop \"padding\" has <value>\n\t\tThen <padding> is applied to content\n\n\t\tExamples:\n\t\t\t| value | padding |\n\t\t\t| none | no padding |\n\t\t\t| xxx-small | xxx-small |\n\t\t\t| xx-small | xx-small |\n\t\t\t| x-small | x-small |\n\t\t\t| small | small |\n\t\t\t| medium | medium |\n\t\t\t| large | large |\n\t\t\t| x-large | x-large |\n\t\t\t| xx-large | xx-large |\n\t\t\t| xxx-large | xxx-large |\n\t\t\t| xxxx-large | xxxx-large |\n\t\t\t| N/A | no padding |\n\n\n\t@motivating\n\t@ui\n\tScenario Outline: Gap between content elements can be customized\n\t\tGiven prop \"gap\" has <value>\n\t\tThen <gap> is applied to elements between content\n\n\t\tExamples:\n\t\t\t| value | gap |\n\t\t\t| none | no padding |\n\t\t\t| xxx-small | xxx-small |\n\t\t\t| xx-small | xx-small |\n\t\t\t| x-small | x-small |\n\t\t\t| small | small |\n\t\t\t| medium | medium |\n\t\t\t| large | large |\n\t\t\t| x-large | x-large |\n\t\t\t| xx-large | xx-large |\n\t\t\t| xxx-large | xxx-large |\n\t\t\t| xxxx-large | xxxx-large |\n\t\t\t| N/A | no padding |\n\n\t@minutia\n\t@ui\n\tScenario: Content can be center aligned in horizontal view\n\t\tGiven I have supplied the prop \"center\"\n\t\tThen the content is center aligned\n\n\t@minutia\n\t@ui\n\tScenario: Content in the last row can span full width with display in horizontal view\n\t\tGiven I have `display` to \"flex\"\n\t\tThen the content is full width on the last row\n\n\t@motivating\n\t@ui\n\tScenario Outline: Content can be aligned along the x-axis \n\t\tGiven prop \"justify-content\" has <value>\n\t\tThen content within the container is aligned <alignment>\n\n\t\tExamples:\n\t\t\t| value | alignment |\n\t\t\t| none | no alignment |\n\t\t\t| start | to the start |\n\t\t\t| center | to the center |\n\t\t\t| end | to the end |\n\t\t\t| space-between | with space between |\n\t\t\t| space-around | with space around |\n\t\t\t| space-evenly | with space evenly |";
|
|
11029
11029
|
|
|
11030
11030
|
const PortalContainer_stories = {
|
|
11031
11031
|
title: "Components/Portal Container",
|
|
@@ -11164,13 +11164,13 @@ const PortalContainer = /*#__PURE__*/Object.freeze({
|
|
|
11164
11164
|
End: End
|
|
11165
11165
|
});
|
|
11166
11166
|
|
|
11167
|
-
const scenario1 = "@author:derek\
|
|
11167
|
+
const scenario1 = "@author:derek\n@owner:derek\nFeature: Reward Table Date Column\n\n Shows the date of each reward\n\n Background:\n Given the date column is included in the reward table\n\n @motivating\n @ui\n Scenario Outline: The title of the date column is configurable\n Given the \"column-title\" prop is set to <value>\n Then the date column is shown with <columnTitle>\n Examples:\n | value | columnTitle |\n | Date received | |\n | My column title | My column title |\n\n @motivating\n Scenario Outline: A configurable date associated with the reward is shown for each reward\n Given the \"date-shown\" prop is set to <dateType>\n And a user with rewards\n When they view the date column\n Then for each reward the <rewardDate> is shown in the table\n And the date is localized to the users locale\n Examples:\n | dateType | rewardDate |\n | dateGiven | date given |\n | dateExpires | date expires |\n | dateCancelled | date cancelled |\n | dateRedeemed | date redeemed |\n | dateScheduledFor | date scheduled for |\n | | date given |";
|
|
11168
11168
|
|
|
11169
|
-
const scenario2 = "@author:derek\
|
|
11169
|
+
const scenario2 = "@author:derek\n@owner:derek\nFeature: Reward Table reward Column\n\n Shows the exact reward\n\n Background:\n Given the reward column is included in the reward table\n And rewards with translations exist\n\n @motivating\n @ui\n Scenario Outline: The title of the reward column is configurable\n Given the \"column-title\" prop is set to <value>\n Then the reward column is shown with <columnTitle>\n Examples:\n | value | columnTitle |\n | Reward | |\n | My column title | My column title |\n\n @motivating\n Scenario: The reward column displays the prettyValue of the reward given\n Given a user with a reward\n When they view the rewards table\n Then they see the name of their reward in the reward column\n And the name is the prettyValue translated for the users locale\n\n @motivating\n @ui\n Scenario: The reward column displays an availability bar if the reward is redeemable\n Given a user with a <status> credit reward of <value>\n But the user has <redeemedAmount>\n When they view the rewards table\n Then the reward column displays <value>\n And under it displays an availability bar with <percentage> filled\n And under it displays <availabilityText>\n Examples:\n | status | value | percentage | availableAmount | availabilityText |\n | AVAILABLE | 10 Points | 100% | 10 Points | 10 Points remaining |\n | AVAILABLE | 10 Points | 90% | 9 Points | 9 Points remaining |\n | AVAILABLE | 10 Points | 10% | 1 Point | 1 Point remaining |\n | PENDING | 10 Points | 100% | 10 Points | 10 Points remaining |\n | PENDING | 10 Points | 90% | 9 Points | 9 Points remaining |\n | PENDING | 10 Points | 10% | 1 Point | 1 Point remaining |\n\n @motivating\n @ui\n Scenario Outline: The reward column displays an availability bar if the reward was redeemable but had been cancelled or expired\n Given a user with a credit reward of <value>\n And the reward has <status>\n But the user has <redeemedAmount>\n When they view the rewards table\n When they view the rewards table\n Then the reward column displays <value>\n And under it displays an availability bar with <percentage> filled\n And under it displays <redeemedText>\n Examples:\n | status | value | percentage | redeemedAmount | redeemedText |\n | EXPIRED | 10 Points | 100% | 0 Point | 0 Point redeemed |\n | EXPIRED | 10 Points | 80% | 2 Point | 2 Point redeemed |\n | CANCELLED | 10 Points | 100% | 0 Point | 0 Point redeemed |\n | CANCELLED | 10 Points | 20% | 8 Point | 8 Point redeemed |\n\n @motivating\n @ui\n Scenario: The reward column doesn't display the availability bar if the reward is not redeemable\n Given a user with a non credit reward\n When they view the rewards table\n Then they see the name of the reward\n But they do not see the availablity bar\n\n @motivating\n @ui\n Scenario Outline: The reward column doesn't display the availability bar if the reward is only 1 reward unit\n Given a user with a credit reward for 1 of a reward unit\n And it has <status>\n When they view the rewards table\n Then they see the name of the reward\n But they do not see the availablity bar\n Examples:\n | status |\n | AVAILABLE |\n | PENDING |\n | EXPIRED |\n | CANCELLED |\n\n @motivating\n @ui\n Scenario: The reward column doesn't display the availability bar for redeemed credit rewards\n Given a user with a \"REDEEMED\" credit reward\n When they view the rewards table\n Then they see the name of the reward\n But they do not see the availablity bar\n\n @motivating\n @ui\n Scenario: Users can copy their fuel tank codes\n Given a user with a fuel tank reward\n When they view the rewards table\n Then they see their fuel tank reward\n And they see their fuel tank code bolded in blue\n When they click on their code\n Then a tool tip appears saying it has been copied to their clipboard\n And their code is copied to their clipboard";
|
|
11170
11170
|
|
|
11171
|
-
const scenario3 = "@author:derek\
|
|
11171
|
+
const scenario3 = "@author:derek\n@owner:derek\nFeature: Reward Table Status Column\n\n Shows the status of each reward\n\n Background:\n Given the status column is included in the reward table\n\n @motivating\n @ui\n Scenario Outline: The title of the status column is configurable\n Given the \"column-title\" prop is set to <value>\n Then the status column is shown with <columnTitle>\n Examples:\n | value | columnTitle |\n | Status | |\n | My column title | My column title |\n\n @motivating\n @ui\n Scenario Outline: The status column displays the status of each reward\n Given a user\n And they have a <status> reward\n When they view the reward table\n Then the status of their reward is displayed in <pillColour> pill with <text>\n Examples:\n | status | text | pillColour |\n | AVAILABLE | Available | Green |\n | CANCELLED | Cancelled | Red |\n | PENDING | Pending | Orange |\n | EXPIRED | Expired | Red |\n | REDEEMED | Redeemed | Blue |\n\n @motivating\n Scenario Outline: Reward status related information is displayed under status pills\n Given a user\n And they have a <reward>\n When they view the reward table\n Then they see their reward\n And under the pill is <text>\n And the date is localized to the users locale\n Examples:\n | reward | text |\n | available reward with an expiry date | localized expiry date in format \"Month-Day-Year\" |\n | redeemed reward | localized redemption date in format \"Month-Day-Year\" |\n | expired reward | localized expired date in format \"Month-Day-Year\" |\n | cancelled reward | localized cancelled date in format \"Month-Day-Year\" |\n | pending reward with a end date | localized pending for date in format \"Month-Day-Year\" |\n | pending reward due to W9 | W-9 required |\n | pending reward due to fufillment error | Fulfillment error |\n\n @motivating\n Scenario Outline: Statuses can be customized\n Given the \"status-text\" prop is \"{status, select, AVAILABLE {Redeem me!} CANCELLED {Unavailable} PENDING {Coming soon!} EXPIRED {Past due} REDEEMED {Spent}}\"\n And a user\n And they have a <status> reward\n When they view the reward table\n Then the status of their reward is displayed in <pillColour> pill with <text>\n Examples:\n | status | text | pillColour |\n | AVAILABLE | Redeem me! | Green |\n | CANCELLED | Unavailable | Red |\n | PENDING | Coming soon! | Orange |\n | EXPIRED | Past due | Red |\n | REDEEMED | Spent | Blue |\n\n @minutia\n @ui\n Scenario: Expiry status date text can be configured\n Given the \"expiry-text\" prop has <value>\n And a user with an available reward with an expiry date\n When they view the reward table\n Then they see <text> under the Available Status pill\n Examples:\n | value | text |\n | | Expires on <EXPIRY DATE> |\n | Redeem before | Redeem before <EXPIRY DATE> |";
|
|
11172
11172
|
|
|
11173
|
-
const scenario4 = "@author:derek\
|
|
11173
|
+
const scenario4 = "@author:derek\n@owner:derek\nFeature: Reward Table Source Column\n\n Shows the source of each reward\n\n @motivating\n @ui\n Scenario Outline: The title of the source column is configurable\n Given the \"column-title\" prop is set to <value>\n Then the source column is shown with <columnTitle>\n Examples:\n | value | columnTitle |\n | Source | |\n | My column title | My column title |\n\n @motivating\n @ui\n Scenario: The source column displays manual if the reward is caused by a manual action\n Given a user with a \"MANUAL\" reward\n When they view the rewards table\n Then the source of their reward is displayed as \"Manual\"\n\n @motivating\n @ui\n Scenario: The source column displays the program name if the reward is caused automatically by a program\n Given a user with a \"AUTOMATED\" program reward\n And the program has name \"Loyalty Program\"\n When they view the rewards table\n Then the source of their reward is displayed as \"Loyalty Program\"\n\n @motivating\n @ui\n Scenario Outline: The source column displays customizable reward exchange text with amount if the reward is caused by reward exchange\n Given the \"reward-exchange-text\" prop is <propValue>\n And a user with a \"MANUAL\" reward\n But it was created by a reward exchange\n Then they view the rewards table\n Then the source displays <exchangeText>\n And under it displays the following\n | prettyRedeemedCredit → prettyValue |\n Examples:\n | propValue | exchangeText |\n | | Reward Exchange |\n | Exchanged | Exchanged |\n\n @motivating\n @ui\n Scenario Outline: The source column displays customizable referral information if the reward is from a referral\n Given the \"reward-source-text\" prop is <propValue>\n And a user with a referral reward\n And that reward has <rewardSource>\n When they view the rewards table\n Then then source displays <referralText>\n And under it displays the full name of the <referralUser>\n Examples:\n | propValue | rewardSource | referralText | referralUser |\n | | REFERRED | Referred by | referrer user |\n | | FRIEND_SIGNUP | Referral to | referred user |\n | {rewardSource, select, FRIEND_SIGNUP {You Referred} REFERRED {Referred you} other {}} | REFERRED | Referred you | referrer user |\n | {rewardSource, select, FRIEND_SIGNUP {You Referred} REFERRED {Referred you} other {}} | FRIEND_SIGNUP | You Referred | referred user |\n\n @motivating\n @ui\n Scenario Outline: The source column displays the existing name for a referral if either the first name or last name does not exist\n Given a user with a referral reward\n And referral user exists\n And referral user has <name>\n But referral user has no <otherName>\n When they view the rewards table\n Then referral user's name is displayed as <name>\n Examples:\n | name | otherName |\n | first.name | last.name |\n | last.name | first.name |\n\n @motivating\n @ui\n Scenario Outline: The source column displays referral as \"Anonymous User\" if the referral user has no names\n Given a user with a referral reward\n And that reward has <rewardSource>\n And the <referralUser> has no first name\n And the <referralUser> has no last name\n When they view the rewards table\n Then then source displays <sourceText>\n And under it displays \"Anonymous User\"\n Examples:\n | rewardSource | referralUser | sourceText |\n | FRIEND_SIGNUP | referrer | Referral to |\n | REFERRED | referred user | Referred by |\n\n @motivating\n @ui\n Scenario Outline: The source column displays referral as \"Deleted User\" if the referral user is deleted in the system\n Given a user with a referral reward\n And that reward has <rewardSource>\n But <referral> user was deleted\n When they view the rewards table\n Then the source displays <sourceText>\n And under it displays \"Deleted User\"\n Examples:\n | rewardSource | referral | sourceText |\n | \"FRIEND_SIGNUP\" | referrer | Referral to |\n | \"REFERRED\" | referred | Referred by |\n\n @minutia\n @ui\n Scenario Outline: Name fallbacks for referral users without names are customizable\n Given <prop> with <value>\n And a user with a referral reward\n But the referral user <hadAction>\n When they view the rewards table\n Then the source displays <value> as the referral user\n Examples:\n | prop | value | hadAction |\n | deleted-user | Former Customer | was deleted |\n | anonymous-user | Nameless User | had first and last name deleted |\n\n @motivating\n Scenario Outline: Source text can be customized\n Given the \"reward-source-text\" prop is \"{rewardSource, select, MANUAL {Support} AUTOMATED {Loyalty Program} other {}}\"\n And a user with a <rewardSource> reward\n When they view the rewards table\n Then the source is <sourceText>\n Examples:\n | rewardSource | sourceText |\n | MANUAL | Support |\n | AUTOMATED | Loyalty Program |";
|
|
11174
11174
|
|
|
11175
11175
|
const scenario$r = scenario1 + scenario2 + scenario3 + scenario4;
|
|
11176
11176
|
const RewardsTableCell_stories = {
|
|
@@ -11474,7 +11474,7 @@ const RewardsTableCell = /*#__PURE__*/Object.freeze({
|
|
|
11474
11474
|
EmptyCell: EmptyCell$2
|
|
11475
11475
|
});
|
|
11476
11476
|
|
|
11477
|
-
const scenario$s = "@owner:sam\
|
|
11477
|
+
const scenario$s = "@owner:sam\n@author:sam\nFeature: Rewards Table\n\n Shows a list of rewards as a table\n\n @motivating\n @ui\n Scenario: The empty state is shown if there are no rewards\n Given a user with rewards\n When they view the reward table\n Then no rewards are displayed\n And they see an image with a user icon\n And \"View your rewards\" in bold\n And \"See all the rewards you have earned from referring friends and completing tasks\" below the bolded text\n And the pagination buttons are disabled\n\n @minutia\n @ui\n Scenario: A custom empty state can be provided\n Given a user with no rewards\n And a custom empty state has been supplied in the \"empty\" slot\n When they view the reward table\n Then they see the custom empty state\n\n @minutia\n @ui\n Scenario: The loading state is shown while rewards are loading\n Given the table is loading\n Then the loading state is shown in the table\n And a custom loading state can be supplied in the \"loading\" slot\n And the pagination buttons are disabled\n\n @motivating\n @ui\n Scenario Outline: The table becomes paginated when the number of rewards exceeds the per page limit\n Given the user has <number of rewards>\n And the table is configured to show <page limit> rewards per page\n Then the table will have <number of pages> page(s)\n And pagination buttons will allow users to navigate between pages\n And the pagination button to go to the next page is disabled on the last page of rewards\n And the pagination button to go to the previous page is disabled on the first page of rewards\n Examples:\n | number of rewards | page limit | number of pages |\n | 0 | 4 | 1 |\n | 1 | 4 | 1 |\n | 3 | 4 | 1 |\n | 5 | 4 | 2 |\n | 42 | 4 | 11 |\n\n @motivating\n @ui\n Scenario: The table converts to a card view on tablet and mobile window sizes\n Given a user with rewards\n When they view the table\n And their window size is smaller than \"799px\"\n Then rewards are displayed as cards\n And they are in two columns\n When their window size is smaller than \"599px\"\n Then the rewards are displayed as cards in a singular column\n\n @motivating\n @ui\n Scenario: Table and Mobile beakpoints can be configured\n Given the reward table has been configured with the following props\n | prop | value |\n | smBreakpoint | 599 |\n | mdBreakpoint | 799 |\n And a user with rewards\n When they view the table\n And their window size is smaller than \"799px\"\n Then rewards are displayed as cards\n And they are in two columns\n When their window size is smaller than \"599px\"\n Then the rewards are displayed as cards in a singular column\n\n @motivating\n @ui\n Scenario Outline: By default the first column heading is hidden in mobile\n Given a reward table with 4 columns\n And prop \"hidden-columns\" with <hideColumnValue>\n And a user with rewards\n When they view the reward table\n And their window size is below the tablet breakpoint\n Then reward cards are displayed\n And the titles of <columnsArehidden> within the card\n Examples:\n | hideColumnValue | columnsArehidden |\n | | the first column |\n | 0,1,2 | the first, second and third columns |\n | 3 | the fourth column |\n\n @motivating\n Scenario: Only rewards which occured in the program specific by \"program-id\" are shown\n Given the table is configured with \"program-id\"\n Then only rewards from the program with \"program-id\" are shown\n\n @landmine\n Scenario: When a `classic` program Id is set then any reward without a programId is shown\n There is no easy way for the backend to filter for \"classic\" programs,\n thus we are filtering for rewards without programId's.\n\n Given the \"program-id\" of the table is set to \"classic\"\n Then rewards from classic programs are shown\n And manual rewards are shown\n\n @minutia\n @ui\n Scenario: Column heading can be hidden\n Given the table is configured with \"hide-labels\" set to \"true\"\n Then the table is displayed without column headings";
|
|
11478
11478
|
|
|
11479
11479
|
const RewardsTable_stories = {
|
|
11480
11480
|
title: "Components/Rewards Table",
|
|
@@ -11723,7 +11723,7 @@ const UseReferralTable = /*#__PURE__*/Object.freeze({
|
|
|
11723
11723
|
ReferralTableFr: ReferralTableFr
|
|
11724
11724
|
});
|
|
11725
11725
|
|
|
11726
|
-
const scenario$t = "@author:kutay\r\n@owner:kutay\r\nFeature: Hero Image\r\n\r\n\tThe Hero Image component displays media images with a header, description and button using an overlay or a double column layout to offer an attrative widget page.\r\n\r\n\tBackground: A user on the portal is viewing the widget\r\n\t\tGiven a user viewing the Hero Image component\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario: Overlay image displays header, description, and button with brand color\r\n\t\tGiven a Hero Image component configured with the following props\r\n\t\t\t| prop | value |\r\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000278/squatch-assets/bTwu1Um.png\" |\r\n\t\t\t| header | \"Klip Rewards\" |\r\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\r\n\t\t\t| button-text | \"Start earning\" |\r\n\t\t\t| layout | \"overlay\" |\r\n\t\tThen they see their image\r\n\t\tAnd the image has no padding\r\n\t\tAnd it has a brand colour overlay\r\n\t\tAnd \"Klip Rewards\" is displayed over top of the image in xxx-large font\r\n\t\tAnd below \"Refer friends or complete tasks while using Klip to earn rewards\" is displayed over top of the image in x-large font\r\n\t\tAnd below they see a brand coloured button with text \"Start earning\"\r\n\t\tAnd the text section has xxx-large padding\r\n\t\tWhen the component is scaled down to 599px\r\n\t\tThen the image is scaled to fit content\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario Outline: Overlay image crop can be aligned left, center or right\r\n\t\tGiven a Hero Image component configured with the following props\r\n\t\t\t| prop | value |\r\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000278/squatch-assets/bTwu1Um.png\" |\r\n\t\t\t| header | \"Klip Rewards\" |\r\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\r\n\t\t\t| button-text | \"Start earning\" |\r\n\t\t\t| layout | \"overlay\" |\r\n\t\t\t| image-pos | <value> |\r\n\t\tThen the image with overlay is displayed\r\n\t\tWhen the component is scaled down to 599px\r\n\t\tThen the image is <alignment> to fit content\r\n\t\tExamples:\r\n\t\t\t| value | alignment |\r\n\t\t\t| left | left aligned |\r\n\t\t\t| center | centered |\r\n\t\t\t| right | right aligned |\r\n\t\t\t| N/A | centered |\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario Outline: Overlay padding is configurable\r\n\t\tGiven a Hero Image component configured with the following props\r\n\t\t\t| prop | value |\r\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000278/squatch-assets/bTwu1Um.png\" |\r\n\t\t\t| header | \"Klip Rewards\" |\r\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\r\n\t\t\t| button-text | \"Start earning\" |\r\n\t\t\t| layout | \"overlay\" |\r\n\t\t\t| padding-text | <value> |\r\n\t\tThen the image with overlay is displayed\r\n\t\tAnd <padding> is applied around header, description and button\r\n\t\tExamples:\r\n\t\t\t| value | padding |\r\n\t\t\t| none | no padding |\r\n\t\t\t| xxx-small | xxx-small |\r\n\t\t\t| xx-small | xx-small |\r\n\t\t\t| x-small | x-small |\r\n\t\t\t| small | small |\r\n\t\t\t| medium | medium |\r\n\t\t\t| large | large |\r\n\t\t\t| x-large | x-large |\r\n\t\t\t| xx-large | xx-large |\r\n\t\t\t| xxx-large | xxx-large |\r\n\t\t\t| xxxx-large | xxxx-large |\r\n\t\t\t| N/A | no padding |\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario Outline: Overlay color and background is configurable\r\n\t\tGiven a Hero Image component configured with the following props\r\n\t\t\t| prop | value |\r\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000278/squatch-assets/bTwu1Um.png\" |\r\n\t\t\t| header | \"Klip Rewards\" |\r\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\r\n\t\t\t| button-text | \"Start earning\" |\r\n\t\t\t| layout | \"overlay\" |\r\n\t\t\t| text-color | <textColor> |\r\n\t\t\t| overlay-color | <overlayColor> |\r\n\t\t\t| overlay-opacity | <overlayOpacity> |\r\n\t\tThen the image with overlay is displayed\r\n\t\tAnd the overlay is <overlayColor>\r\n\t\tAnd the overlay has <overlayOpacity>\r\n\t\tAnd the text is <textColor>\r\n\t\tExamples:\r\n\t\t\t| textColor | overlayColor | overlayOpacity |\r\n\t\t\t| #fffc4b | #ff7f7f | 0.9 |\r\n\t\t\t| #1d0314 | #4baa1a | 0 |\r\n\t\t\t| #211a27 | #aa481a | 1 |\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario: Two-column layout displays an image on one side and on the other side a header, description, and button\r\n\t\tGiven a Hero Image component configured with the following props\r\n\t\t\t| prop | value |\r\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png\" |\r\n\t\t\t| header | \"Klip Rewards\" |\r\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\r\n\t\t\t| button-text | \"Start earning\" |\r\n\t\t\t| layout | \"columns\" |\r\n\t\tThen the image is displayed on the left\r\n\t\tAnd the following elements are displayed on the right\r\n\t\t\t| elements |\r\n\t\t\t| header |\r\n\t\t\t| description |\r\n\t\t\t| button |\r\n\t\tWhen the component is scaled down to 599px\r\n\t\tThen the two-column layout switches to a row layout\r\n\t\tAnd the image is displayed on top\r\n\t\tAnd the content is displayed below\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario Outline: Image position is configurable for desktop and mobile\r\n\t\tGiven a Hero Image component configured with the following props\r\n\t\t\t| prop | value |\r\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png\" |\r\n\t\t\t| header | \"Klip Rewards\" |\r\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\r\n\t\t\t| button-text | \"Start earning\" |\r\n\t\t\t| layout | \"columns\" |\r\n\t\t\t| image-pos | <imagePos> |\r\n\t\t\t| image-mobile-pos | <imageMobilePos> |\r\n\t\tThen the image is displayed on the <imagePos>\r\n\t\tWhen the component is scaled down to 599px\r\n\t\tThen two-column layout switches to a row layout\r\n\t\tAnd image is displayed on the <imageMobilePos>\r\n\t\tExamples:\r\n\t\t\t| imagePos | imageMobilePos |\r\n\t\t\t| left | top |\r\n\t\t\t| right | bottom |\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario Outline: Padding is configurable for the image and text of two column layouts\r\n\t\tGiven a Hero Image component configured with the following props\r\n\t\t\t| prop | value |\r\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png\" |\r\n\t\t\t| header | \"Klip Rewards\" |\r\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\r\n\t\t\t| button-text | \"Start earning\" |\r\n\t\t\t| layout | \"columns\" |\r\n\t\t\t| padding-text | <paddingText> |\r\n\t\t\t| padding-image | <paddingImage> |\r\n\t\tThen the two column layout is displayed\r\n\t\tAnd the image has padding <paddingImage>\r\n\t\tAnd the text has padding <paddingText>\r\n\t\tExamples:\r\n\t\t\t| paddingText | paddingImage |\r\n\t\t\t| xxx-small | xxx-small |\r\n\t\t\t| xx-small | xx-small |\r\n\t\t\t| x-small | x-small |\r\n\t\t\t| small | small |\r\n\t\t\t| medium | medium |\r\n\t\t\t| large | large |\r\n\t\t\t| x-large | x-large |\r\n\t\t\t| xx-large | xx-large |\r\n\t\t\t| xxx-large | xxx-large |\r\n\t\t\t| xxxx-large | xxxx-large |\r\n\t\t\t| none | none |\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario Outline: Two-column layout image division percentage is configurable\r\n\t\tGiven a Hero Image component configured with the following props\r\n\t\t\t| prop | value |\r\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000248/squatch-assets/MVgOJn7.png\" |\r\n\t\t\t| header | \"Klip Rewards\" |\r\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\r\n\t\t\t| button-text | \"Start earning\" |\r\n\t\t\t| layout | \"columns\" |\r\n\t\t\t| image-percentage | <percent> |\r\n\t\tThen the two column layout is displayed\r\n\t\tAnd the image takes up <percent> of the two-column layout\r\n\t\tAnd the text elements take up the remainder of the space\r\n\t\tExamples:\r\n\t\t\t| percent |\r\n\t\t\t| 25% |\r\n\t\t\t| 42% |\r\n\t\t\t| 66% |\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario: Two-column layout text and background color is configurable\r\n\t\tGiven a Hero Image component configured with the following props\r\n\t\t\t| prop | value |\r\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png\" |\r\n\t\t\t| header | \"Klip Rewards\" |\r\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\r\n\t\t\t| button-text | \"Start earning\" |\r\n\t\t\t| layout | \"columns\" |\r\n\t\t\t| text-color | <textColor> |\r\n\t\t\t| background-color | <backgroundColor> |\r\n\t\tThen the two column layout is displayed\r\n\t\tAnd the text has color <textColor>\r\n\t\tAnd the background has color <backgroundColor>\r\n\t\tExamples:\r\n\t\t\t| textColor | backgroundColor |\r\n\t\t\t| #fffc4b | #ff7f7f |\r\n\t\t\t| #1d0314 | #4baa1a |\r\n\t\t\t| #211a27 | #aa481a |";
|
|
11726
|
+
const scenario$t = "@author:kutay\n@owner:kutay\nFeature: Hero Image\n\n\tThe Hero Image component displays media images with a header, description and button using an overlay or a double column layout to offer an attrative widget page.\n\n\tBackground: A user on the portal is viewing the widget\n\t\tGiven a user viewing the Hero Image component\n\n\t@motivating\n\t@ui\n\tScenario: Overlay image displays header, description, and button with brand color\n\t\tGiven a Hero Image component configured with the following props\n\t\t\t| prop | value |\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000278/squatch-assets/bTwu1Um.png\" |\n\t\t\t| header | \"Klip Rewards\" |\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\n\t\t\t| button-text | \"Start earning\" |\n\t\t\t| layout | \"overlay\" |\n\t\tThen they see their image\n\t\tAnd the image has no padding\n\t\tAnd it has a brand colour overlay\n\t\tAnd \"Klip Rewards\" is displayed over top of the image in xxx-large font\n\t\tAnd below \"Refer friends or complete tasks while using Klip to earn rewards\" is displayed over top of the image in x-large font\n\t\tAnd below they see a brand coloured button with text \"Start earning\"\n\t\tAnd the text section has xxx-large padding\n\t\tWhen the component is scaled down to 599px\n\t\tThen the image is scaled to fit content\n\n\t@motivating\n\t@ui\n\tScenario Outline: Overlay image crop can be aligned left, center or right\n\t\tGiven a Hero Image component configured with the following props\n\t\t\t| prop | value |\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000278/squatch-assets/bTwu1Um.png\" |\n\t\t\t| header | \"Klip Rewards\" |\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\n\t\t\t| button-text | \"Start earning\" |\n\t\t\t| layout | \"overlay\" |\n\t\t\t| image-pos | <value> |\n\t\tThen the image with overlay is displayed\n\t\tWhen the component is scaled down to 599px\n\t\tThen the image is <alignment> to fit content\n\t\tExamples:\n\t\t\t| value | alignment |\n\t\t\t| left | left aligned |\n\t\t\t| center | centered |\n\t\t\t| right | right aligned |\n\t\t\t| N/A | centered |\n\n\t@motivating\n\t@ui\n\tScenario Outline: Overlay padding is configurable\n\t\tGiven a Hero Image component configured with the following props\n\t\t\t| prop | value |\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000278/squatch-assets/bTwu1Um.png\" |\n\t\t\t| header | \"Klip Rewards\" |\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\n\t\t\t| button-text | \"Start earning\" |\n\t\t\t| layout | \"overlay\" |\n\t\t\t| padding-text | <value> |\n\t\tThen the image with overlay is displayed\n\t\tAnd <padding> is applied around header, description and button\n\t\tExamples:\n\t\t\t| value | padding |\n\t\t\t| none | no padding |\n\t\t\t| xxx-small | xxx-small |\n\t\t\t| xx-small | xx-small |\n\t\t\t| x-small | x-small |\n\t\t\t| small | small |\n\t\t\t| medium | medium |\n\t\t\t| large | large |\n\t\t\t| x-large | x-large |\n\t\t\t| xx-large | xx-large |\n\t\t\t| xxx-large | xxx-large |\n\t\t\t| xxxx-large | xxxx-large |\n\t\t\t| N/A | no padding |\n\n\t@motivating\n\t@ui\n\tScenario Outline: Overlay color and background is configurable\n\t\tGiven a Hero Image component configured with the following props\n\t\t\t| prop | value |\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000278/squatch-assets/bTwu1Um.png\" |\n\t\t\t| header | \"Klip Rewards\" |\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\n\t\t\t| button-text | \"Start earning\" |\n\t\t\t| layout | \"overlay\" |\n\t\t\t| text-color | <textColor> |\n\t\t\t| overlay-color | <overlayColor> |\n\t\t\t| overlay-opacity | <overlayOpacity> |\n\t\tThen the image with overlay is displayed\n\t\tAnd the overlay is <overlayColor>\n\t\tAnd the overlay has <overlayOpacity>\n\t\tAnd the text is <textColor>\n\t\tExamples:\n\t\t\t| textColor | overlayColor | overlayOpacity |\n\t\t\t| #fffc4b | #ff7f7f | 0.9 |\n\t\t\t| #1d0314 | #4baa1a | 0 |\n\t\t\t| #211a27 | #aa481a | 1 |\n\n\t@motivating\n\t@ui\n\tScenario: Two-column layout displays an image on one side and on the other side a header, description, and button\n\t\tGiven a Hero Image component configured with the following props\n\t\t\t| prop | value |\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png\" |\n\t\t\t| header | \"Klip Rewards\" |\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\n\t\t\t| button-text | \"Start earning\" |\n\t\t\t| layout | \"columns\" |\n\t\tThen the image is displayed on the left\n\t\tAnd the following elements are displayed on the right\n\t\t\t| elements |\n\t\t\t| header |\n\t\t\t| description |\n\t\t\t| button |\n\t\tWhen the component is scaled down to 599px\n\t\tThen the two-column layout switches to a row layout\n\t\tAnd the image is displayed on top\n\t\tAnd the content is displayed below\n\n\t@motivating\n\t@ui\n\tScenario Outline: Image position is configurable for desktop and mobile\n\t\tGiven a Hero Image component configured with the following props\n\t\t\t| prop | value |\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png\" |\n\t\t\t| header | \"Klip Rewards\" |\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\n\t\t\t| button-text | \"Start earning\" |\n\t\t\t| layout | \"columns\" |\n\t\t\t| image-pos | <imagePos> |\n\t\t\t| image-mobile-pos | <imageMobilePos> |\n\t\tThen the image is displayed on the <imagePos>\n\t\tWhen the component is scaled down to 599px\n\t\tThen two-column layout switches to a row layout\n\t\tAnd image is displayed on the <imageMobilePos>\n\t\tExamples:\n\t\t\t| imagePos | imageMobilePos |\n\t\t\t| left | top |\n\t\t\t| right | bottom |\n\n\t@motivating\n\t@ui\n\tScenario Outline: Padding is configurable for the image and text of two column layouts\n\t\tGiven a Hero Image component configured with the following props\n\t\t\t| prop | value |\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png\" |\n\t\t\t| header | \"Klip Rewards\" |\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\n\t\t\t| button-text | \"Start earning\" |\n\t\t\t| layout | \"columns\" |\n\t\t\t| padding-text | <paddingText> |\n\t\t\t| padding-image | <paddingImage> |\n\t\tThen the two column layout is displayed\n\t\tAnd the image has padding <paddingImage>\n\t\tAnd the text has padding <paddingText>\n\t\tExamples:\n\t\t\t| paddingText | paddingImage |\n\t\t\t| xxx-small | xxx-small |\n\t\t\t| xx-small | xx-small |\n\t\t\t| x-small | x-small |\n\t\t\t| small | small |\n\t\t\t| medium | medium |\n\t\t\t| large | large |\n\t\t\t| x-large | x-large |\n\t\t\t| xx-large | xx-large |\n\t\t\t| xxx-large | xxx-large |\n\t\t\t| xxxx-large | xxxx-large |\n\t\t\t| none | none |\n\n\t@motivating\n\t@ui\n\tScenario Outline: Two-column layout image division percentage is configurable\n\t\tGiven a Hero Image component configured with the following props\n\t\t\t| prop | value |\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000248/squatch-assets/MVgOJn7.png\" |\n\t\t\t| header | \"Klip Rewards\" |\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\n\t\t\t| button-text | \"Start earning\" |\n\t\t\t| layout | \"columns\" |\n\t\t\t| image-percentage | <percent> |\n\t\tThen the two column layout is displayed\n\t\tAnd the image takes up <percent> of the two-column layout\n\t\tAnd the text elements take up the remainder of the space\n\t\tExamples:\n\t\t\t| percent |\n\t\t\t| 25% |\n\t\t\t| 42% |\n\t\t\t| 66% |\n\n\t@motivating\n\t@ui\n\tScenario: Two-column layout text and background color is configurable\n\t\tGiven a Hero Image component configured with the following props\n\t\t\t| prop | value |\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png\" |\n\t\t\t| header | \"Klip Rewards\" |\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\n\t\t\t| button-text | \"Start earning\" |\n\t\t\t| layout | \"columns\" |\n\t\t\t| text-color | <textColor> |\n\t\t\t| background-color | <backgroundColor> |\n\t\tThen the two column layout is displayed\n\t\tAnd the text has color <textColor>\n\t\tAnd the background has color <backgroundColor>\n\t\tExamples:\n\t\t\t| textColor | backgroundColor |\n\t\t\t| #fffc4b | #ff7f7f |\n\t\t\t| #1d0314 | #4baa1a |\n\t\t\t| #211a27 | #aa481a |";
|
|
11727
11727
|
|
|
11728
11728
|
const HeroImage_stories = {
|
|
11729
11729
|
title: "Components/Hero Image",
|
|
@@ -11801,7 +11801,7 @@ const HeroImage = /*#__PURE__*/Object.freeze({
|
|
|
11801
11801
|
ColumnsCustomColors: ColumnsCustomColors
|
|
11802
11802
|
});
|
|
11803
11803
|
|
|
11804
|
-
const scenario$u = "@author:kutay\
|
|
11804
|
+
const scenario$u = "@author:kutay\n@owner:kutay\nFeature: Referral Card\n\n\tThe Referral Card component takes in two slots and displays them side by side.\n\n\tBackground: A user on the portal is viewing the widget\n\t\tGiven a user viewing the Referral Card component\n\n\t@motivating\n\t@ui\n\tScenario: Referral Card component displays provided content in left and right slots side by side\n\t\tGiven a Referral Card component\n\t\tAnd a slot with the name \"left\"\n\t\tAnd a slot with the name \"right\"\n\t\tWhen the user views the referral card\n\t\tThen the slot contents are displayed the card with equal width\n\t\tWhen the component is scaled down to 499px\n\t\tThen the column layout switches to row layout\n\t\tAnd the \"left\" slot content is displayed above the \"right\" slot content\n\n\t@motivating\n\t@ui\n\tScenario Outline: Referral Card component content can be vertically aligned start, center, end\n\t\tGiven a Referral Card component\n\t\tAnd a slot with the name \"left\"\n\t\tAnd a slot with the name \"right\"\n\t\tAnd the prop \"vertical-alignment\" has <value>\n\t\tThen slots contents are displayed inside the card\n\t\tAnd slots are vertically aligned to <alignment> of the card\n\t\tExamples:\n\t\t\t| value | alignment |\n\t\t\t| start | the top |\n\t\t\t| center | the center |\n\t\t\t| end | the bottom |\n\t\t\t| N/A | the top |\n\n";
|
|
11805
11805
|
|
|
11806
11806
|
const ReferralCard_stories = {
|
|
11807
11807
|
title: "Components/Referral Card",
|
|
@@ -11893,9 +11893,9 @@ const ReferralCard = /*#__PURE__*/Object.freeze({
|
|
|
11893
11893
|
ReferralCardGeneric: ReferralCardGeneric
|
|
11894
11894
|
});
|
|
11895
11895
|
|
|
11896
|
-
const scenarioTimeline = "@author:derek\
|
|
11896
|
+
const scenarioTimeline = "@author:derek\n@owner:kutay\nFeature: Timeline\n\n @motivating\n @ui\n Scenario: The timeline adds lines between timeline entries\n Given a timeline\n And it has many timeline entries as children\n When a user views the timeline\n Then they see all timeline entries are connected by brand colour lines\n And see that the last entry does not have a line\n\n @motivating\n @ui\n Scenario Outline: The timeline can set the icons used by its timeline entries\n Given a timeline with \"icon\" <iconPropValue>\n And it has many timeline entries as children\n When a user views the timeline\n Then they see the timeline entries have a <icon>\n Examples:\n | iconPropValue | icon |\n | gift | gift icon |\n | gift | gift icon |\n | circle | brand colour circle |\n";
|
|
11897
11897
|
|
|
11898
|
-
const scenarioTimelineEntry = "@author:derek\
|
|
11898
|
+
const scenarioTimelineEntry = "@author:derek\n@owner:kutay\nFeature: Timeline Entry\n\n @motivating\n @ui\n Scenario: Timeline entries have an icon, a reward and an entry desciption\n Given an timeline entry with the following props\n | prop | value |\n | unit | Visa Giftcard |\n | reward | 50$ |\n | desc | Earn a 50$ Visa Giftcard for each referral you make |\n When a user views the entry\n Then they see a gift icon\n And see \"$50 VISA GIFTCARRD\" to the right\n And \"$50\" is bolded with x-large font size\n And below they see \"Earn a 50$ Visa Giftcard for each referral you make\"\n\n @motivating\n @ui\n Scenario Outline: Icon can either be a gift or a brand colour cirle\n Given a timeline entry with \"icon\" <iconPropValue>\n When a user views the entry\n Then they see an <icon>\n Examples:\n | iconPropValue 1 | icon |\n | gift | gift |\n | circle | brand colour circle |\n | | gift |\n\n @motivating\n @ui\n Scenario: A timeline entry can display a line to connect it to another entry\n Given a timeline entry with \"line\" \"true\"\n When a user views the entry\n Then they see the entry\n But it has a brand colour line connecting it to the next timeline entry\n";
|
|
11899
11899
|
|
|
11900
11900
|
const scenario$v = scenarioTimeline + scenarioTimelineEntry;
|
|
11901
11901
|
const Timeline_stories = {
|
|
@@ -11974,7 +11974,7 @@ const Timeline = /*#__PURE__*/Object.freeze({
|
|
|
11974
11974
|
TimelineWith4Rewards: TimelineWith4Rewards
|
|
11975
11975
|
});
|
|
11976
11976
|
|
|
11977
|
-
const scenario$w = "@author:kutay\
|
|
11977
|
+
const scenario$w = "@author:kutay\n@owner:kutay\nFeature: Image\n\n\tBackground: A user on the portal is viewing the widget\n\t\tGiven a user viewing the image component\n\n\t@motivating\n\t@ui\n\tScenario: Image is displayed from URL\n\t\tGiven an Image component\n\t\tAnd prop \"image-url\" is provided with a valid image url\n\t\tThen the image is displayed\n\t\tAnd it is centered\n\n\t@motivating\n\t@ui\n\tScenario Outline: Images can be aligned left, center or right\n\t\tGiven an Image component\n\t\tAnd prop \"image-url\" is provided with a valid image url\n\t\tAnd prop \"align\" has <value>\n\t\tThen the image is displayed\n\t\tAnd it is aligned to the <value>\n\t\tExamples:\n\t\t\t| value |\n\t\t\t| left |\n\t\t\t| center |\n\t\t\t| right |\n\n\t@motivating\n\t@ui\n\tScenario: Image background can be assigned a color\n\t\tGiven an Image component\n\t\tAnd prop \"image-url\" is provided with a valid image url\n\t\tAnd prop \"background-color\" is provided a color\n\t\tThen the image is displayed\n\t\tAnd the background is the provided color\n\n\t@motivating\n\t@ui\n\tScenario: Image minimum height can be constrained\n\t\tGiven an Image component\n\t\tAnd prop \"image-url\" is provided\n\t\tAnd prop \"min-height\" is given a minimum value\n\t\tThen the image is displayed\n\t\tAnd the container size changes\n\t\tThen the image does not shrink below its minimum height";
|
|
11978
11978
|
|
|
11979
11979
|
const Image_stories = {
|
|
11980
11980
|
title: "Components/Image",
|
|
@@ -12012,7 +12012,7 @@ const Image$1 = /*#__PURE__*/Object.freeze({
|
|
|
12012
12012
|
MinimumHeight: MinimumHeight
|
|
12013
12013
|
});
|
|
12014
12014
|
|
|
12015
|
-
const scenario$x = "@author:derek\
|
|
12015
|
+
const scenario$x = "@author:derek\n@owner:noah\nFeature: Titled Section\n\n Background: The titled section has a label and content\n Given a titled section\n And it has a label\n And it has content in the content slot\n\n @motivating\n @ui\n Scenario: Text alignment defaults to left align but can be configured\n Given the titled section has \"text-align\" <textAlignPropValue>\n When a user views the titled section\n Then the text in the label is <aligned>\n And the text in the content is <aligned>\n Examples:\n | textAlignPropValue | aligned |\n | center | center |\n | left | left |\n | right | right |\n | | left |\n\n @minutia\n @ui\n Scenario: Label margin is configurable\n Given the titled section has \"label-margin\" <marginPropValue>\n When a user views the titled section\n Then <marginPropValue> margin is between the label and content\n Examples:\n | marginPropValue | margin |\n | none | no |\n | xxx-small | xxx-small |\n | xx-small | xx-small |\n | x-small | x-small |\n | small | small |\n | medium | medium |\n | large | large |\n | x-large | x-large |\n | xx-large | xx-large |\n | xxx-large | xxx-large |\n | xxxx-large | xxxx-large |\n | | no |\n\n @minutia\n @ui\n Scenario Outline: Titled section padding is configurable\n Given the titled section has \"padding\" <paddingPropValue>\n When a user views the titled section\n Then <paddingPropValue> padding is applied around the titled section\n Examples:\n | paddingPropValue | padding |\n | none | no |\n | xxx-small | xxx-small |\n | xx-small | xx-small |\n | x-small | x-small |\n | small | small |\n | medium | medium |\n | large | large |\n | x-large | x-large |\n | xx-large | xx-large |\n | xxx-large | xxx-large |\n | xxxx-large | xxxx-large |\n | | no |";
|
|
12016
12016
|
|
|
12017
12017
|
const TitledSection_stories = {
|
|
12018
12018
|
title: "Components/Titled Section",
|
|
@@ -12277,61 +12277,61 @@ const ScrollAutoAnimation = () => {
|
|
|
12277
12277
|
const ScrollTabGroup = () => {
|
|
12278
12278
|
return (index.h("div", { style: { position: "relative", height: "2000px" } },
|
|
12279
12279
|
index.h("sqm-scroll", { "button-text": "Redeem rewards", "scroll-id": "tab-3", "scroll-animation": "smooth" }),
|
|
12280
|
-
index.h("div", { style: { position: "absolute", bottom: "0" }, innerHTML: `
|
|
12281
|
-
<sqm-tabs>
|
|
12282
|
-
<sqm-tab header="Leaderboard">
|
|
12283
|
-
<sqm-hero-image
|
|
12284
|
-
image-url="https://i.imgur.com/MVgOJn7.png"
|
|
12285
|
-
description="Be one of the top 3 referrers at the end of the year and receive Klip free for 1 year!"
|
|
12286
|
-
layout="columns"
|
|
12287
|
-
image-percentage="33%"
|
|
12288
|
-
padding-image="large"
|
|
12289
|
-
padding-text="large"
|
|
12290
|
-
background-color=""
|
|
12291
|
-
></sqm-hero-image>
|
|
12292
|
-
<sqm-leaderboard></sqm-leaderboard>
|
|
12293
|
-
</sqm-tab>
|
|
12294
|
-
<sqm-tab header="Referral history"
|
|
12295
|
-
>
|
|
12296
|
-
<sqm-referral-table></sqm-referral-table>
|
|
12297
|
-
</sqm-tab>
|
|
12298
|
-
<sqm-tab header="Reward history">
|
|
12299
|
-
<sqm-rewards-table></sqm-rewards-table>
|
|
12300
|
-
</sqm-tab>
|
|
12301
|
-
<sqm-tab header="Redeem">
|
|
12302
|
-
<sqm-reward-exchange-list></sqm-reward-exchange-list>
|
|
12303
|
-
</sqm-tab>
|
|
12304
|
-
</sqm-tabs>
|
|
12280
|
+
index.h("div", { style: { position: "absolute", bottom: "0" }, innerHTML: `
|
|
12281
|
+
<sqm-tabs>
|
|
12282
|
+
<sqm-tab header="Leaderboard">
|
|
12283
|
+
<sqm-hero-image
|
|
12284
|
+
image-url="https://i.imgur.com/MVgOJn7.png"
|
|
12285
|
+
description="Be one of the top 3 referrers at the end of the year and receive Klip free for 1 year!"
|
|
12286
|
+
layout="columns"
|
|
12287
|
+
image-percentage="33%"
|
|
12288
|
+
padding-image="large"
|
|
12289
|
+
padding-text="large"
|
|
12290
|
+
background-color=""
|
|
12291
|
+
></sqm-hero-image>
|
|
12292
|
+
<sqm-leaderboard></sqm-leaderboard>
|
|
12293
|
+
</sqm-tab>
|
|
12294
|
+
<sqm-tab header="Referral history"
|
|
12295
|
+
>
|
|
12296
|
+
<sqm-referral-table></sqm-referral-table>
|
|
12297
|
+
</sqm-tab>
|
|
12298
|
+
<sqm-tab header="Reward history">
|
|
12299
|
+
<sqm-rewards-table></sqm-rewards-table>
|
|
12300
|
+
</sqm-tab>
|
|
12301
|
+
<sqm-tab header="Redeem">
|
|
12302
|
+
<sqm-reward-exchange-list></sqm-reward-exchange-list>
|
|
12303
|
+
</sqm-tab>
|
|
12304
|
+
</sqm-tabs>
|
|
12305
12305
|
` })));
|
|
12306
12306
|
};
|
|
12307
12307
|
const ScrollTabGroupInner = () => {
|
|
12308
12308
|
return (index.h("div", { style: { position: "relative", height: "2000px" } },
|
|
12309
12309
|
index.h("sqm-scroll", { "button-text": "Redeem rewards", "scroll-tag-name": "sqm-reward-exchange-list" }),
|
|
12310
|
-
index.h("div", { style: { position: "absolute", bottom: "0" }, innerHTML: `
|
|
12311
|
-
<sqm-tabs>
|
|
12312
|
-
<sqm-tab header="Leaderboard">
|
|
12313
|
-
<sqm-hero-image
|
|
12314
|
-
image-url="https://i.imgur.com/MVgOJn7.png"
|
|
12315
|
-
description="Be one of the top 3 referrers at the end of the year and receive Klip free for 1 year!"
|
|
12316
|
-
layout="columns"
|
|
12317
|
-
image-percentage="33%"
|
|
12318
|
-
padding-image="large"
|
|
12319
|
-
padding-text="large"
|
|
12320
|
-
background-color=""
|
|
12321
|
-
></sqm-hero-image>
|
|
12322
|
-
<sqm-leaderboard></sqm-leaderboard>
|
|
12323
|
-
</sqm-tab>
|
|
12324
|
-
<sqm-tab header="Referral history"
|
|
12325
|
-
>
|
|
12326
|
-
<sqm-referral-table></sqm-referral-table>
|
|
12327
|
-
</sqm-tab>
|
|
12328
|
-
<sqm-tab header="Reward history">
|
|
12329
|
-
<sqm-rewards-table></sqm-rewards-table>
|
|
12330
|
-
</sqm-tab>
|
|
12331
|
-
<sqm-tab header="Redeem">
|
|
12332
|
-
<sqm-reward-exchange-list></sqm-reward-exchange-list>
|
|
12333
|
-
</sqm-tab>
|
|
12334
|
-
</sqm-tabs>
|
|
12310
|
+
index.h("div", { style: { position: "absolute", bottom: "0" }, innerHTML: `
|
|
12311
|
+
<sqm-tabs>
|
|
12312
|
+
<sqm-tab header="Leaderboard">
|
|
12313
|
+
<sqm-hero-image
|
|
12314
|
+
image-url="https://i.imgur.com/MVgOJn7.png"
|
|
12315
|
+
description="Be one of the top 3 referrers at the end of the year and receive Klip free for 1 year!"
|
|
12316
|
+
layout="columns"
|
|
12317
|
+
image-percentage="33%"
|
|
12318
|
+
padding-image="large"
|
|
12319
|
+
padding-text="large"
|
|
12320
|
+
background-color=""
|
|
12321
|
+
></sqm-hero-image>
|
|
12322
|
+
<sqm-leaderboard></sqm-leaderboard>
|
|
12323
|
+
</sqm-tab>
|
|
12324
|
+
<sqm-tab header="Referral history"
|
|
12325
|
+
>
|
|
12326
|
+
<sqm-referral-table></sqm-referral-table>
|
|
12327
|
+
</sqm-tab>
|
|
12328
|
+
<sqm-tab header="Reward history">
|
|
12329
|
+
<sqm-rewards-table></sqm-rewards-table>
|
|
12330
|
+
</sqm-tab>
|
|
12331
|
+
<sqm-tab header="Redeem">
|
|
12332
|
+
<sqm-reward-exchange-list></sqm-reward-exchange-list>
|
|
12333
|
+
</sqm-tab>
|
|
12334
|
+
</sqm-tabs>
|
|
12335
12335
|
` })));
|
|
12336
12336
|
};
|
|
12337
12337
|
const ShoelaceProps = () => {
|
|
@@ -12413,7 +12413,7 @@ const Scroll = /*#__PURE__*/Object.freeze({
|
|
|
12413
12413
|
ShoelaceProps: ShoelaceProps
|
|
12414
12414
|
});
|
|
12415
12415
|
|
|
12416
|
-
const scenario$y = "@author:Zach\
|
|
12416
|
+
const scenario$y = "@author:Zach\n@owner:Zach\nFeature: Tabs\n\n The Tabs takes in the Tab component as children and maps through to display their header and content.\n\n Background: A user on the portal is viewing the widget\n Given a user viewing the Tabs component\n\n @motivating\n Scenario: Content inside the active tab is shown\n Given the header is set to <tabHeader>\n And the content inside is <tabContent>\n And the user has clicked <tabHeader>\n Then the <tabContent> is shown\n Examples:\n | tabHeader | tabContent |\n | Settings | This is the settings tab |\n | General | This is the general tab |\n | History | This is the history tab |\n\n @motivating\n @ui\n Scenario: The placement of the tabs is configurable\n Given The placement prop has been passed a valid <placement>\n Then tabs are placed on the <placementResult>\n Examples:\n | placement | placementResult |\n | | top of the content |\n | left | left hand side of the content |\n | right | right hand side of the content |\n | bottom | bottom of the content |\n\n\n @minutia\n @ui\n Scenario Outline: Tabs are setup to use the brand color\n Given the brand color is set to darkblue\n Then the text inside the active tab is darkblue\n And the underline of the active tab is darkblue\n\n @ui\n Scenario: Tabs are responsive\n Given the user is on a mobile device\n When there are more tabs than the horizontal space allows for\n Then clickable arrows appear on the left and right of the tabs\n And the tabs are scrollable\n\n @landmine\n Scenario: Program section cannot be used inside of tabs\n Given a tabs component\n And tab containing a program section with program-id \"test123\"\n And the program section wraps a component using program context\n When the tabs component is rendered\n Then the \"sq:program-id\" event listener for the program section is removed\n And the component does not use program-id \"test123\" to source its data\n And falls back to the global program id";
|
|
12417
12417
|
|
|
12418
12418
|
const Tabs_stories = {
|
|
12419
12419
|
title: "Components/Tabs",
|
|
@@ -12421,488 +12421,488 @@ const Tabs_stories = {
|
|
|
12421
12421
|
scenario: scenario$y,
|
|
12422
12422
|
},
|
|
12423
12423
|
};
|
|
12424
|
-
const SimpleTabs = () => (index.h("div", { style: { maxWidth: "700px", margin: "auto" }, innerHTML: `
|
|
12425
|
-
<sqm-tabs>
|
|
12426
|
-
<sqm-tab header="General">This is the general tab</sqm-tab>
|
|
12427
|
-
<sqm-tab header="Custom">This is the custom tab</sqm-tab>
|
|
12428
|
-
<sqm-tab header="Advanced">This is the advanced tab</sqm-tab>
|
|
12429
|
-
</sqm-tabs>
|
|
12424
|
+
const SimpleTabs = () => (index.h("div", { style: { maxWidth: "700px", margin: "auto" }, innerHTML: `
|
|
12425
|
+
<sqm-tabs>
|
|
12426
|
+
<sqm-tab header="General">This is the general tab</sqm-tab>
|
|
12427
|
+
<sqm-tab header="Custom">This is the custom tab</sqm-tab>
|
|
12428
|
+
<sqm-tab header="Advanced">This is the advanced tab</sqm-tab>
|
|
12429
|
+
</sqm-tabs>
|
|
12430
12430
|
` }));
|
|
12431
|
-
const ManyTabs = () => (index.h("div", { style: { maxWidth: "700px", margin: "auto" }, innerHTML: `
|
|
12432
|
-
<sqm-tabs>
|
|
12433
|
-
<sqm-tab header="General">This is the general tab</sqm-tab>
|
|
12434
|
-
<sqm-tab header="Custom">This is the custom tab</sqm-tab>
|
|
12435
|
-
<sqm-tab header="Advanced">This is the advanced tab</sqm-tab>
|
|
12436
|
-
<sqm-tab header="General">This is the general tab</sqm-tab>
|
|
12437
|
-
<sqm-tab header="Custom">This is the custom tab</sqm-tab>
|
|
12438
|
-
<sqm-tab header="Advanced">This is the advanced tab</sqm-tab>
|
|
12439
|
-
<sqm-tab header="General">This is the general tab</sqm-tab>
|
|
12440
|
-
<sqm-tab header="Custom">This is the custom tab</sqm-tab>
|
|
12441
|
-
<sqm-tab header="Advanced">This is the advanced tab</sqm-tab>
|
|
12442
|
-
<sqm-tab header="General">This is the general tab</sqm-tab>
|
|
12443
|
-
<sqm-tab header="Custom">This is the custom tab</sqm-tab>
|
|
12444
|
-
<sqm-tab header="Advanced">This is the advanced tab</sqm-tab>
|
|
12445
|
-
</sqm-tabs>
|
|
12431
|
+
const ManyTabs = () => (index.h("div", { style: { maxWidth: "700px", margin: "auto" }, innerHTML: `
|
|
12432
|
+
<sqm-tabs>
|
|
12433
|
+
<sqm-tab header="General">This is the general tab</sqm-tab>
|
|
12434
|
+
<sqm-tab header="Custom">This is the custom tab</sqm-tab>
|
|
12435
|
+
<sqm-tab header="Advanced">This is the advanced tab</sqm-tab>
|
|
12436
|
+
<sqm-tab header="General">This is the general tab</sqm-tab>
|
|
12437
|
+
<sqm-tab header="Custom">This is the custom tab</sqm-tab>
|
|
12438
|
+
<sqm-tab header="Advanced">This is the advanced tab</sqm-tab>
|
|
12439
|
+
<sqm-tab header="General">This is the general tab</sqm-tab>
|
|
12440
|
+
<sqm-tab header="Custom">This is the custom tab</sqm-tab>
|
|
12441
|
+
<sqm-tab header="Advanced">This is the advanced tab</sqm-tab>
|
|
12442
|
+
<sqm-tab header="General">This is the general tab</sqm-tab>
|
|
12443
|
+
<sqm-tab header="Custom">This is the custom tab</sqm-tab>
|
|
12444
|
+
<sqm-tab header="Advanced">This is the advanced tab</sqm-tab>
|
|
12445
|
+
</sqm-tabs>
|
|
12446
12446
|
` }));
|
|
12447
|
-
const SingleTab = () => (index.h("div", { style: { maxWidth: "700px", margin: "auto" }, innerHTML: `
|
|
12448
|
-
<sqm-tabs>
|
|
12449
|
-
<sqm-tab header="Redeem">
|
|
12450
|
-
<sqm-reward-exchange-list></sqm-reward-exchange-list>
|
|
12451
|
-
</sqm-tab>
|
|
12452
|
-
</sqm-tabs>
|
|
12447
|
+
const SingleTab = () => (index.h("div", { style: { maxWidth: "700px", margin: "auto" }, innerHTML: `
|
|
12448
|
+
<sqm-tabs>
|
|
12449
|
+
<sqm-tab header="Redeem">
|
|
12450
|
+
<sqm-reward-exchange-list></sqm-reward-exchange-list>
|
|
12451
|
+
</sqm-tab>
|
|
12452
|
+
</sqm-tabs>
|
|
12453
12453
|
` }));
|
|
12454
|
-
const ReferralProgram = () => (index.h("div", { style: { maxWidth: "700px", margin: "auto" }, innerHTML: `
|
|
12455
|
-
<sqm-tabs>
|
|
12456
|
-
<sqm-tab header="Leaderboard">
|
|
12457
|
-
<sqm-leaderboard></sqm-leaderboard>
|
|
12458
|
-
</sqm-tab>
|
|
12459
|
-
<sqm-tab header="Referral history">
|
|
12460
|
-
<sqm-referral-table>
|
|
12461
|
-
<sqm-referral-table-user-column
|
|
12462
|
-
column-title="User"
|
|
12463
|
-
anonymous-user="Anonymous User"
|
|
12464
|
-
deleted-user="Deleted User"
|
|
12465
|
-
>
|
|
12466
|
-
</sqm-referral-table-user-column>
|
|
12467
|
-
<sqm-referral-table-status-column
|
|
12468
|
-
column-title="Referral status"
|
|
12469
|
-
converted-status-text="Converted"
|
|
12470
|
-
in-progress-status-text="In Progress"
|
|
12471
|
-
>
|
|
12472
|
-
</sqm-referral-table-status-column>
|
|
12473
|
-
<sqm-referral-table-rewards-column
|
|
12474
|
-
column-title="Rewards"
|
|
12475
|
-
expiring-text="Expiring in"
|
|
12476
|
-
fuel-tank-text="Your code is"
|
|
12477
|
-
pending-for-text="{status} for {date}"
|
|
12478
|
-
reward-received-text="Reward received on"
|
|
12479
|
-
status-long-text="{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} EXPIRED {Reward expired on} other {Not available} }"
|
|
12480
|
-
status-text="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }"
|
|
12481
|
-
>
|
|
12482
|
-
</sqm-referral-table-rewards-column>
|
|
12483
|
-
<sqm-referral-table-date-column
|
|
12484
|
-
column-title="Date referred"
|
|
12485
|
-
date-shown="dateReferralStarted"
|
|
12486
|
-
>
|
|
12487
|
-
</sqm-referral-table-date-column>
|
|
12488
|
-
<sqm-empty
|
|
12489
|
-
empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644000223/squatch-assets/empty_referral2.png"
|
|
12490
|
-
empty-state-header="View your referral details"
|
|
12491
|
-
empty-state-text="Refer a friend to view the status of your referrals and rewards earned"
|
|
12492
|
-
>
|
|
12493
|
-
</sqm-empty
|
|
12494
|
-
></sqm-referral-table>
|
|
12495
|
-
</sqm-tab>
|
|
12496
|
-
<sqm-tab header="Reward history">
|
|
12497
|
-
<sqm-rewards-table
|
|
12498
|
-
><sqm-rewards-table-reward-column
|
|
12499
|
-
available-text="{availableAmount} remaining"
|
|
12500
|
-
column-title="Reward"
|
|
12501
|
-
copy-text="Copied!"
|
|
12502
|
-
redeemed-text="{redeemedAmount} redeemed"
|
|
12503
|
-
>
|
|
12504
|
-
</sqm-rewards-table-reward-column>
|
|
12505
|
-
<sqm-rewards-table-source-column
|
|
12506
|
-
anonymous-user="Anonymous User"
|
|
12507
|
-
column-title="Source"
|
|
12508
|
-
deleted-user="Deleted User"
|
|
12509
|
-
referral-text="{rewardSource, select, FRIEND_SIGNUP {Referral to} REFERRED {Referred by} other {}}"
|
|
12510
|
-
reward-exchange-text="Reward Exchange"
|
|
12511
|
-
reward-source-text="{rewardSource, select, MANUAL {Manual} AUTOMATED {{programName}} other {}}"
|
|
12512
|
-
>
|
|
12513
|
-
</sqm-rewards-table-source-column>
|
|
12514
|
-
<sqm-rewards-table-status-column
|
|
12515
|
-
column-title="Status"
|
|
12516
|
-
expiry-text="Expires on "
|
|
12517
|
-
status-text="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }"
|
|
12518
|
-
>
|
|
12519
|
-
</sqm-rewards-table-status-column>
|
|
12520
|
-
<sqm-rewards-table-date-column
|
|
12521
|
-
column-title="Date received"
|
|
12522
|
-
date-shown="dateGiven"
|
|
12523
|
-
>
|
|
12524
|
-
</sqm-rewards-table-date-column>
|
|
12525
|
-
<sqm-empty
|
|
12526
|
-
empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_reward2.png"
|
|
12527
|
-
empty-state-header="View your rewards"
|
|
12528
|
-
empty-state-text="Refer friends and complete tasks to view the details of your rewards"
|
|
12529
|
-
>
|
|
12530
|
-
</sqm-empty
|
|
12531
|
-
></sqm-rewards-table>
|
|
12532
|
-
</sqm-tab>
|
|
12533
|
-
</sqm-tabs>
|
|
12454
|
+
const ReferralProgram = () => (index.h("div", { style: { maxWidth: "700px", margin: "auto" }, innerHTML: `
|
|
12455
|
+
<sqm-tabs>
|
|
12456
|
+
<sqm-tab header="Leaderboard">
|
|
12457
|
+
<sqm-leaderboard></sqm-leaderboard>
|
|
12458
|
+
</sqm-tab>
|
|
12459
|
+
<sqm-tab header="Referral history">
|
|
12460
|
+
<sqm-referral-table>
|
|
12461
|
+
<sqm-referral-table-user-column
|
|
12462
|
+
column-title="User"
|
|
12463
|
+
anonymous-user="Anonymous User"
|
|
12464
|
+
deleted-user="Deleted User"
|
|
12465
|
+
>
|
|
12466
|
+
</sqm-referral-table-user-column>
|
|
12467
|
+
<sqm-referral-table-status-column
|
|
12468
|
+
column-title="Referral status"
|
|
12469
|
+
converted-status-text="Converted"
|
|
12470
|
+
in-progress-status-text="In Progress"
|
|
12471
|
+
>
|
|
12472
|
+
</sqm-referral-table-status-column>
|
|
12473
|
+
<sqm-referral-table-rewards-column
|
|
12474
|
+
column-title="Rewards"
|
|
12475
|
+
expiring-text="Expiring in"
|
|
12476
|
+
fuel-tank-text="Your code is"
|
|
12477
|
+
pending-for-text="{status} for {date}"
|
|
12478
|
+
reward-received-text="Reward received on"
|
|
12479
|
+
status-long-text="{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} EXPIRED {Reward expired on} other {Not available} }"
|
|
12480
|
+
status-text="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }"
|
|
12481
|
+
>
|
|
12482
|
+
</sqm-referral-table-rewards-column>
|
|
12483
|
+
<sqm-referral-table-date-column
|
|
12484
|
+
column-title="Date referred"
|
|
12485
|
+
date-shown="dateReferralStarted"
|
|
12486
|
+
>
|
|
12487
|
+
</sqm-referral-table-date-column>
|
|
12488
|
+
<sqm-empty
|
|
12489
|
+
empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644000223/squatch-assets/empty_referral2.png"
|
|
12490
|
+
empty-state-header="View your referral details"
|
|
12491
|
+
empty-state-text="Refer a friend to view the status of your referrals and rewards earned"
|
|
12492
|
+
>
|
|
12493
|
+
</sqm-empty
|
|
12494
|
+
></sqm-referral-table>
|
|
12495
|
+
</sqm-tab>
|
|
12496
|
+
<sqm-tab header="Reward history">
|
|
12497
|
+
<sqm-rewards-table
|
|
12498
|
+
><sqm-rewards-table-reward-column
|
|
12499
|
+
available-text="{availableAmount} remaining"
|
|
12500
|
+
column-title="Reward"
|
|
12501
|
+
copy-text="Copied!"
|
|
12502
|
+
redeemed-text="{redeemedAmount} redeemed"
|
|
12503
|
+
>
|
|
12504
|
+
</sqm-rewards-table-reward-column>
|
|
12505
|
+
<sqm-rewards-table-source-column
|
|
12506
|
+
anonymous-user="Anonymous User"
|
|
12507
|
+
column-title="Source"
|
|
12508
|
+
deleted-user="Deleted User"
|
|
12509
|
+
referral-text="{rewardSource, select, FRIEND_SIGNUP {Referral to} REFERRED {Referred by} other {}}"
|
|
12510
|
+
reward-exchange-text="Reward Exchange"
|
|
12511
|
+
reward-source-text="{rewardSource, select, MANUAL {Manual} AUTOMATED {{programName}} other {}}"
|
|
12512
|
+
>
|
|
12513
|
+
</sqm-rewards-table-source-column>
|
|
12514
|
+
<sqm-rewards-table-status-column
|
|
12515
|
+
column-title="Status"
|
|
12516
|
+
expiry-text="Expires on "
|
|
12517
|
+
status-text="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }"
|
|
12518
|
+
>
|
|
12519
|
+
</sqm-rewards-table-status-column>
|
|
12520
|
+
<sqm-rewards-table-date-column
|
|
12521
|
+
column-title="Date received"
|
|
12522
|
+
date-shown="dateGiven"
|
|
12523
|
+
>
|
|
12524
|
+
</sqm-rewards-table-date-column>
|
|
12525
|
+
<sqm-empty
|
|
12526
|
+
empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_reward2.png"
|
|
12527
|
+
empty-state-header="View your rewards"
|
|
12528
|
+
empty-state-text="Refer friends and complete tasks to view the details of your rewards"
|
|
12529
|
+
>
|
|
12530
|
+
</sqm-empty
|
|
12531
|
+
></sqm-rewards-table>
|
|
12532
|
+
</sqm-tab>
|
|
12533
|
+
</sqm-tabs>
|
|
12534
12534
|
` }));
|
|
12535
|
-
const LoyaltyProgram = () => (index.h("div", { style: { maxWidth: "700px", margin: "auto" }, innerHTML: `
|
|
12536
|
-
<sqm-tabs placement="top">
|
|
12537
|
-
<sqm-tab header="Leaderboard">
|
|
12538
|
-
<sqm-hero-image
|
|
12539
|
-
image-url="https://i.imgur.com/MVgOJn7.png"
|
|
12540
|
-
description="Be one of the top 3 referrers at the end of the year and receive Klip free for 1 year!"
|
|
12541
|
-
layout="columns"
|
|
12542
|
-
image-percentage="33%"
|
|
12543
|
-
padding-image="large"
|
|
12544
|
-
padding-text="large"
|
|
12545
|
-
background-color=""
|
|
12546
|
-
></sqm-hero-image>
|
|
12547
|
-
<sqm-leaderboard></sqm-leaderboard>
|
|
12548
|
-
</sqm-tab>
|
|
12549
|
-
<sqm-tab header="Referral history">
|
|
12550
|
-
<sqm-referral-table>
|
|
12551
|
-
<sqm-referral-table-user-column
|
|
12552
|
-
column-title="User"
|
|
12553
|
-
anonymous-user="Anonymous User"
|
|
12554
|
-
deleted-user="Deleted User"
|
|
12555
|
-
>
|
|
12556
|
-
</sqm-referral-table-user-column>
|
|
12557
|
-
<sqm-referral-table-status-column
|
|
12558
|
-
column-title="Referral status"
|
|
12559
|
-
converted-status-text="Converted"
|
|
12560
|
-
in-progress-status-text="In Progress"
|
|
12561
|
-
>
|
|
12562
|
-
</sqm-referral-table-status-column>
|
|
12563
|
-
<sqm-referral-table-rewards-column
|
|
12564
|
-
column-title="Rewards"
|
|
12565
|
-
expiring-text="Expiring in"
|
|
12566
|
-
fuel-tank-text="Your code is"
|
|
12567
|
-
pending-for-text="{status} for {date}"
|
|
12568
|
-
reward-received-text="Reward received on"
|
|
12569
|
-
status-long-text="{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} EXPIRED {Reward expired on} other {Not available} }"
|
|
12570
|
-
status-text="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }"
|
|
12571
|
-
>
|
|
12572
|
-
</sqm-referral-table-rewards-column>
|
|
12573
|
-
<sqm-referral-table-date-column
|
|
12574
|
-
column-title="Date referred"
|
|
12575
|
-
date-shown="dateReferralStarted"
|
|
12576
|
-
>
|
|
12577
|
-
</sqm-referral-table-date-column>
|
|
12578
|
-
<sqm-empty
|
|
12579
|
-
empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644000223/squatch-assets/empty_referral2.png"
|
|
12580
|
-
empty-state-header="View your referral details"
|
|
12581
|
-
empty-state-text="Refer a friend to view the status of your referrals and rewards earned"
|
|
12582
|
-
>
|
|
12583
|
-
</sqm-empty
|
|
12584
|
-
></sqm-referral-table>
|
|
12585
|
-
</sqm-tab>
|
|
12586
|
-
<sqm-tab header="Reward history">
|
|
12587
|
-
<sqm-rewards-table
|
|
12588
|
-
><sqm-rewards-table-reward-column
|
|
12589
|
-
available-text="{availableAmount} remaining"
|
|
12590
|
-
column-title="Reward"
|
|
12591
|
-
copy-text="Copied!"
|
|
12592
|
-
redeemed-text="{redeemedAmount} redeemed"
|
|
12593
|
-
>
|
|
12594
|
-
</sqm-rewards-table-reward-column>
|
|
12595
|
-
<sqm-rewards-table-source-column
|
|
12596
|
-
anonymous-user="Anonymous User"
|
|
12597
|
-
column-title="Source"
|
|
12598
|
-
deleted-user="Deleted User"
|
|
12599
|
-
referral-text="{rewardSource, select, FRIEND_SIGNUP {Referral to} REFERRED {Referred by} other {}}"
|
|
12600
|
-
reward-exchange-text="Reward Exchange"
|
|
12601
|
-
reward-source-text="{rewardSource, select, MANUAL {Manual} AUTOMATED {{programName}} other {}}"
|
|
12602
|
-
>
|
|
12603
|
-
</sqm-rewards-table-source-column>
|
|
12604
|
-
<sqm-rewards-table-status-column
|
|
12605
|
-
column-title="Status"
|
|
12606
|
-
expiry-text="Expires on "
|
|
12607
|
-
status-text="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }"
|
|
12608
|
-
>
|
|
12609
|
-
</sqm-rewards-table-status-column>
|
|
12610
|
-
<sqm-rewards-table-date-column
|
|
12611
|
-
column-title="Date received"
|
|
12612
|
-
date-shown="dateGiven"
|
|
12613
|
-
>
|
|
12614
|
-
</sqm-rewards-table-date-column>
|
|
12615
|
-
<sqm-empty
|
|
12616
|
-
empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_reward2.png"
|
|
12617
|
-
empty-state-header="View your rewards"
|
|
12618
|
-
empty-state-text="Refer friends and complete tasks to view the details of your rewards"
|
|
12619
|
-
>
|
|
12620
|
-
</sqm-empty
|
|
12621
|
-
></sqm-rewards-table>
|
|
12622
|
-
</sqm-tab>
|
|
12623
|
-
<sqm-tab header="Redeem">
|
|
12624
|
-
<sqm-reward-exchange-list></sqm-reward-exchange-list>
|
|
12625
|
-
</sqm-tab>
|
|
12626
|
-
</sqm-tabs>
|
|
12535
|
+
const LoyaltyProgram = () => (index.h("div", { style: { maxWidth: "700px", margin: "auto" }, innerHTML: `
|
|
12536
|
+
<sqm-tabs placement="top">
|
|
12537
|
+
<sqm-tab header="Leaderboard">
|
|
12538
|
+
<sqm-hero-image
|
|
12539
|
+
image-url="https://i.imgur.com/MVgOJn7.png"
|
|
12540
|
+
description="Be one of the top 3 referrers at the end of the year and receive Klip free for 1 year!"
|
|
12541
|
+
layout="columns"
|
|
12542
|
+
image-percentage="33%"
|
|
12543
|
+
padding-image="large"
|
|
12544
|
+
padding-text="large"
|
|
12545
|
+
background-color=""
|
|
12546
|
+
></sqm-hero-image>
|
|
12547
|
+
<sqm-leaderboard></sqm-leaderboard>
|
|
12548
|
+
</sqm-tab>
|
|
12549
|
+
<sqm-tab header="Referral history">
|
|
12550
|
+
<sqm-referral-table>
|
|
12551
|
+
<sqm-referral-table-user-column
|
|
12552
|
+
column-title="User"
|
|
12553
|
+
anonymous-user="Anonymous User"
|
|
12554
|
+
deleted-user="Deleted User"
|
|
12555
|
+
>
|
|
12556
|
+
</sqm-referral-table-user-column>
|
|
12557
|
+
<sqm-referral-table-status-column
|
|
12558
|
+
column-title="Referral status"
|
|
12559
|
+
converted-status-text="Converted"
|
|
12560
|
+
in-progress-status-text="In Progress"
|
|
12561
|
+
>
|
|
12562
|
+
</sqm-referral-table-status-column>
|
|
12563
|
+
<sqm-referral-table-rewards-column
|
|
12564
|
+
column-title="Rewards"
|
|
12565
|
+
expiring-text="Expiring in"
|
|
12566
|
+
fuel-tank-text="Your code is"
|
|
12567
|
+
pending-for-text="{status} for {date}"
|
|
12568
|
+
reward-received-text="Reward received on"
|
|
12569
|
+
status-long-text="{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} EXPIRED {Reward expired on} other {Not available} }"
|
|
12570
|
+
status-text="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }"
|
|
12571
|
+
>
|
|
12572
|
+
</sqm-referral-table-rewards-column>
|
|
12573
|
+
<sqm-referral-table-date-column
|
|
12574
|
+
column-title="Date referred"
|
|
12575
|
+
date-shown="dateReferralStarted"
|
|
12576
|
+
>
|
|
12577
|
+
</sqm-referral-table-date-column>
|
|
12578
|
+
<sqm-empty
|
|
12579
|
+
empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644000223/squatch-assets/empty_referral2.png"
|
|
12580
|
+
empty-state-header="View your referral details"
|
|
12581
|
+
empty-state-text="Refer a friend to view the status of your referrals and rewards earned"
|
|
12582
|
+
>
|
|
12583
|
+
</sqm-empty
|
|
12584
|
+
></sqm-referral-table>
|
|
12585
|
+
</sqm-tab>
|
|
12586
|
+
<sqm-tab header="Reward history">
|
|
12587
|
+
<sqm-rewards-table
|
|
12588
|
+
><sqm-rewards-table-reward-column
|
|
12589
|
+
available-text="{availableAmount} remaining"
|
|
12590
|
+
column-title="Reward"
|
|
12591
|
+
copy-text="Copied!"
|
|
12592
|
+
redeemed-text="{redeemedAmount} redeemed"
|
|
12593
|
+
>
|
|
12594
|
+
</sqm-rewards-table-reward-column>
|
|
12595
|
+
<sqm-rewards-table-source-column
|
|
12596
|
+
anonymous-user="Anonymous User"
|
|
12597
|
+
column-title="Source"
|
|
12598
|
+
deleted-user="Deleted User"
|
|
12599
|
+
referral-text="{rewardSource, select, FRIEND_SIGNUP {Referral to} REFERRED {Referred by} other {}}"
|
|
12600
|
+
reward-exchange-text="Reward Exchange"
|
|
12601
|
+
reward-source-text="{rewardSource, select, MANUAL {Manual} AUTOMATED {{programName}} other {}}"
|
|
12602
|
+
>
|
|
12603
|
+
</sqm-rewards-table-source-column>
|
|
12604
|
+
<sqm-rewards-table-status-column
|
|
12605
|
+
column-title="Status"
|
|
12606
|
+
expiry-text="Expires on "
|
|
12607
|
+
status-text="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }"
|
|
12608
|
+
>
|
|
12609
|
+
</sqm-rewards-table-status-column>
|
|
12610
|
+
<sqm-rewards-table-date-column
|
|
12611
|
+
column-title="Date received"
|
|
12612
|
+
date-shown="dateGiven"
|
|
12613
|
+
>
|
|
12614
|
+
</sqm-rewards-table-date-column>
|
|
12615
|
+
<sqm-empty
|
|
12616
|
+
empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_reward2.png"
|
|
12617
|
+
empty-state-header="View your rewards"
|
|
12618
|
+
empty-state-text="Refer friends and complete tasks to view the details of your rewards"
|
|
12619
|
+
>
|
|
12620
|
+
</sqm-empty
|
|
12621
|
+
></sqm-rewards-table>
|
|
12622
|
+
</sqm-tab>
|
|
12623
|
+
<sqm-tab header="Redeem">
|
|
12624
|
+
<sqm-reward-exchange-list></sqm-reward-exchange-list>
|
|
12625
|
+
</sqm-tab>
|
|
12626
|
+
</sqm-tabs>
|
|
12627
12627
|
` }));
|
|
12628
|
-
const BottomTabs = () => (index.h("div", { style: { maxWidth: "700px", margin: "auto" }, innerHTML: `
|
|
12629
|
-
<sqm-tabs placement="bottom">
|
|
12630
|
-
<sqm-tab header="Leaderboard">
|
|
12631
|
-
<sqm-hero-image
|
|
12632
|
-
image-url="https://i.imgur.com/MVgOJn7.png"
|
|
12633
|
-
description="Be one of the top 3 referrers at the end of the year and receive Klip free for 1 year!"
|
|
12634
|
-
layout="columns"
|
|
12635
|
-
image-percentage="33%"
|
|
12636
|
-
padding-image="large"
|
|
12637
|
-
padding-text="large"
|
|
12638
|
-
background-color=""
|
|
12639
|
-
></sqm-hero-image>
|
|
12640
|
-
<sqm-leaderboard></sqm-leaderboard>
|
|
12641
|
-
</sqm-tab>
|
|
12642
|
-
<sqm-tab header="Referral history">
|
|
12643
|
-
<sqm-referral-table
|
|
12644
|
-
><sqm-referral-table-user-column
|
|
12645
|
-
column-title="User"
|
|
12646
|
-
anonymous-user="Anonymous User"
|
|
12647
|
-
deleted-user="Deleted User"
|
|
12648
|
-
>
|
|
12649
|
-
</sqm-referral-table-user-column>
|
|
12650
|
-
<sqm-referral-table-status-column
|
|
12651
|
-
column-title="Referral status"
|
|
12652
|
-
converted-status-text="Converted"
|
|
12653
|
-
in-progress-status-text="In Progress"
|
|
12654
|
-
>
|
|
12655
|
-
</sqm-referral-table-status-column>
|
|
12656
|
-
<sqm-referral-table-rewards-column
|
|
12657
|
-
column-title="Rewards"
|
|
12658
|
-
expiring-text="Expiring in"
|
|
12659
|
-
fuel-tank-text="Your code is"
|
|
12660
|
-
pending-for-text="{status} for {date}"
|
|
12661
|
-
reward-received-text="Reward received on"
|
|
12662
|
-
status-long-text="{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} EXPIRED {Reward expired on} other {Not available} }"
|
|
12663
|
-
status-text="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }"
|
|
12664
|
-
>
|
|
12665
|
-
</sqm-referral-table-rewards-column>
|
|
12666
|
-
<sqm-referral-table-date-column
|
|
12667
|
-
column-title="Date referred"
|
|
12668
|
-
date-shown="dateReferralStarted"
|
|
12669
|
-
>
|
|
12670
|
-
</sqm-referral-table-date-column>
|
|
12671
|
-
<sqm-empty
|
|
12672
|
-
empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644000223/squatch-assets/empty_referral2.png"
|
|
12673
|
-
empty-state-header="View your referral details"
|
|
12674
|
-
empty-state-text="Refer a friend to view the status of your referrals and rewards earned"
|
|
12675
|
-
>
|
|
12676
|
-
</sqm-empty
|
|
12677
|
-
></sqm-referral-table>
|
|
12678
|
-
</sqm-tab>
|
|
12679
|
-
<sqm-tab header="Reward history">
|
|
12680
|
-
<sqm-rewards-table
|
|
12681
|
-
><sqm-rewards-table-reward-column
|
|
12682
|
-
available-text="{availableAmount} remaining"
|
|
12683
|
-
column-title="Reward"
|
|
12684
|
-
copy-text="Copied!"
|
|
12685
|
-
redeemed-text="{redeemedAmount} redeemed"
|
|
12686
|
-
>
|
|
12687
|
-
</sqm-rewards-table-reward-column>
|
|
12688
|
-
<sqm-rewards-table-source-column
|
|
12689
|
-
anonymous-user="Anonymous User"
|
|
12690
|
-
column-title="Source"
|
|
12691
|
-
deleted-user="Deleted User"
|
|
12692
|
-
referral-text="{rewardSource, select, FRIEND_SIGNUP {Referral to} REFERRED {Referred by} other {}}"
|
|
12693
|
-
reward-exchange-text="Reward Exchange"
|
|
12694
|
-
reward-source-text="{rewardSource, select, MANUAL {Manual} AUTOMATED {{programName}} other {}}"
|
|
12695
|
-
>
|
|
12696
|
-
</sqm-rewards-table-source-column>
|
|
12697
|
-
<sqm-rewards-table-status-column
|
|
12698
|
-
column-title="Status"
|
|
12699
|
-
expiry-text="Expires on "
|
|
12700
|
-
status-text="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }"
|
|
12701
|
-
>
|
|
12702
|
-
</sqm-rewards-table-status-column>
|
|
12703
|
-
<sqm-rewards-table-date-column
|
|
12704
|
-
column-title="Date received"
|
|
12705
|
-
date-shown="dateGiven"
|
|
12706
|
-
>
|
|
12707
|
-
</sqm-rewards-table-date-column>
|
|
12708
|
-
<sqm-empty
|
|
12709
|
-
empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_reward2.png"
|
|
12710
|
-
empty-state-header="View your rewards"
|
|
12711
|
-
empty-state-text="Refer friends and complete tasks to view the details of your rewards"
|
|
12712
|
-
>
|
|
12713
|
-
</sqm-empty
|
|
12714
|
-
></sqm-rewards-table>
|
|
12715
|
-
</sqm-tab>
|
|
12716
|
-
<sqm-tab header="Redeem">
|
|
12717
|
-
<sqm-reward-exchange-list></sqm-reward-exchange-list>
|
|
12718
|
-
</sqm-tab>
|
|
12719
|
-
</sqm-tabs>
|
|
12628
|
+
const BottomTabs = () => (index.h("div", { style: { maxWidth: "700px", margin: "auto" }, innerHTML: `
|
|
12629
|
+
<sqm-tabs placement="bottom">
|
|
12630
|
+
<sqm-tab header="Leaderboard">
|
|
12631
|
+
<sqm-hero-image
|
|
12632
|
+
image-url="https://i.imgur.com/MVgOJn7.png"
|
|
12633
|
+
description="Be one of the top 3 referrers at the end of the year and receive Klip free for 1 year!"
|
|
12634
|
+
layout="columns"
|
|
12635
|
+
image-percentage="33%"
|
|
12636
|
+
padding-image="large"
|
|
12637
|
+
padding-text="large"
|
|
12638
|
+
background-color=""
|
|
12639
|
+
></sqm-hero-image>
|
|
12640
|
+
<sqm-leaderboard></sqm-leaderboard>
|
|
12641
|
+
</sqm-tab>
|
|
12642
|
+
<sqm-tab header="Referral history">
|
|
12643
|
+
<sqm-referral-table
|
|
12644
|
+
><sqm-referral-table-user-column
|
|
12645
|
+
column-title="User"
|
|
12646
|
+
anonymous-user="Anonymous User"
|
|
12647
|
+
deleted-user="Deleted User"
|
|
12648
|
+
>
|
|
12649
|
+
</sqm-referral-table-user-column>
|
|
12650
|
+
<sqm-referral-table-status-column
|
|
12651
|
+
column-title="Referral status"
|
|
12652
|
+
converted-status-text="Converted"
|
|
12653
|
+
in-progress-status-text="In Progress"
|
|
12654
|
+
>
|
|
12655
|
+
</sqm-referral-table-status-column>
|
|
12656
|
+
<sqm-referral-table-rewards-column
|
|
12657
|
+
column-title="Rewards"
|
|
12658
|
+
expiring-text="Expiring in"
|
|
12659
|
+
fuel-tank-text="Your code is"
|
|
12660
|
+
pending-for-text="{status} for {date}"
|
|
12661
|
+
reward-received-text="Reward received on"
|
|
12662
|
+
status-long-text="{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} EXPIRED {Reward expired on} other {Not available} }"
|
|
12663
|
+
status-text="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }"
|
|
12664
|
+
>
|
|
12665
|
+
</sqm-referral-table-rewards-column>
|
|
12666
|
+
<sqm-referral-table-date-column
|
|
12667
|
+
column-title="Date referred"
|
|
12668
|
+
date-shown="dateReferralStarted"
|
|
12669
|
+
>
|
|
12670
|
+
</sqm-referral-table-date-column>
|
|
12671
|
+
<sqm-empty
|
|
12672
|
+
empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644000223/squatch-assets/empty_referral2.png"
|
|
12673
|
+
empty-state-header="View your referral details"
|
|
12674
|
+
empty-state-text="Refer a friend to view the status of your referrals and rewards earned"
|
|
12675
|
+
>
|
|
12676
|
+
</sqm-empty
|
|
12677
|
+
></sqm-referral-table>
|
|
12678
|
+
</sqm-tab>
|
|
12679
|
+
<sqm-tab header="Reward history">
|
|
12680
|
+
<sqm-rewards-table
|
|
12681
|
+
><sqm-rewards-table-reward-column
|
|
12682
|
+
available-text="{availableAmount} remaining"
|
|
12683
|
+
column-title="Reward"
|
|
12684
|
+
copy-text="Copied!"
|
|
12685
|
+
redeemed-text="{redeemedAmount} redeemed"
|
|
12686
|
+
>
|
|
12687
|
+
</sqm-rewards-table-reward-column>
|
|
12688
|
+
<sqm-rewards-table-source-column
|
|
12689
|
+
anonymous-user="Anonymous User"
|
|
12690
|
+
column-title="Source"
|
|
12691
|
+
deleted-user="Deleted User"
|
|
12692
|
+
referral-text="{rewardSource, select, FRIEND_SIGNUP {Referral to} REFERRED {Referred by} other {}}"
|
|
12693
|
+
reward-exchange-text="Reward Exchange"
|
|
12694
|
+
reward-source-text="{rewardSource, select, MANUAL {Manual} AUTOMATED {{programName}} other {}}"
|
|
12695
|
+
>
|
|
12696
|
+
</sqm-rewards-table-source-column>
|
|
12697
|
+
<sqm-rewards-table-status-column
|
|
12698
|
+
column-title="Status"
|
|
12699
|
+
expiry-text="Expires on "
|
|
12700
|
+
status-text="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }"
|
|
12701
|
+
>
|
|
12702
|
+
</sqm-rewards-table-status-column>
|
|
12703
|
+
<sqm-rewards-table-date-column
|
|
12704
|
+
column-title="Date received"
|
|
12705
|
+
date-shown="dateGiven"
|
|
12706
|
+
>
|
|
12707
|
+
</sqm-rewards-table-date-column>
|
|
12708
|
+
<sqm-empty
|
|
12709
|
+
empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_reward2.png"
|
|
12710
|
+
empty-state-header="View your rewards"
|
|
12711
|
+
empty-state-text="Refer friends and complete tasks to view the details of your rewards"
|
|
12712
|
+
>
|
|
12713
|
+
</sqm-empty
|
|
12714
|
+
></sqm-rewards-table>
|
|
12715
|
+
</sqm-tab>
|
|
12716
|
+
<sqm-tab header="Redeem">
|
|
12717
|
+
<sqm-reward-exchange-list></sqm-reward-exchange-list>
|
|
12718
|
+
</sqm-tab>
|
|
12719
|
+
</sqm-tabs>
|
|
12720
12720
|
` }));
|
|
12721
|
-
const LeftTabs = () => (index.h("div", { style: { maxWidth: "900px", margin: "auto" }, innerHTML: `
|
|
12722
|
-
<sqm-tabs placement="left">
|
|
12723
|
-
<sqm-tab header="Leaderboard">
|
|
12724
|
-
<sqm-hero-image
|
|
12725
|
-
image-url="https://i.imgur.com/MVgOJn7.png"
|
|
12726
|
-
description="Be one of the top 3 referrers at the end of the year and receive Klip free for 1 year!"
|
|
12727
|
-
layout="columns"
|
|
12728
|
-
image-percentage="33%"
|
|
12729
|
-
padding-image="large"
|
|
12730
|
-
padding-text="large"
|
|
12731
|
-
background-color=""
|
|
12732
|
-
></sqm-hero-image>
|
|
12733
|
-
<sqm-leaderboard></sqm-leaderboard>
|
|
12734
|
-
</sqm-tab>
|
|
12735
|
-
<sqm-tab header="Referral history">
|
|
12736
|
-
<sqm-referral-table
|
|
12737
|
-
><sqm-referral-table-user-column
|
|
12738
|
-
column-title="User"
|
|
12739
|
-
anonymous-user="Anonymous User"
|
|
12740
|
-
deleted-user="Deleted User"
|
|
12741
|
-
>
|
|
12742
|
-
</sqm-referral-table-user-column>
|
|
12743
|
-
<sqm-referral-table-status-column
|
|
12744
|
-
column-title="Referral status"
|
|
12745
|
-
converted-status-text="Converted"
|
|
12746
|
-
in-progress-status-text="In Progress"
|
|
12747
|
-
>
|
|
12748
|
-
</sqm-referral-table-status-column>
|
|
12749
|
-
<sqm-referral-table-rewards-column
|
|
12750
|
-
column-title="Rewards"
|
|
12751
|
-
expiring-text="Expiring in"
|
|
12752
|
-
fuel-tank-text="Your code is"
|
|
12753
|
-
pending-for-text="{status} for {date}"
|
|
12754
|
-
reward-received-text="Reward received on"
|
|
12755
|
-
status-long-text="{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} EXPIRED {Reward expired on} other {Not available} }"
|
|
12756
|
-
status-text="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }"
|
|
12757
|
-
>
|
|
12758
|
-
</sqm-referral-table-rewards-column>
|
|
12759
|
-
<sqm-referral-table-date-column
|
|
12760
|
-
column-title="Date referred"
|
|
12761
|
-
date-shown="dateReferralStarted"
|
|
12762
|
-
>
|
|
12763
|
-
</sqm-referral-table-date-column>
|
|
12764
|
-
<sqm-empty
|
|
12765
|
-
empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644000223/squatch-assets/empty_referral2.png"
|
|
12766
|
-
empty-state-header="View your referral details"
|
|
12767
|
-
empty-state-text="Refer a friend to view the status of your referrals and rewards earned"
|
|
12768
|
-
>
|
|
12769
|
-
</sqm-empty
|
|
12770
|
-
></sqm-referral-table>
|
|
12771
|
-
</sqm-tab>
|
|
12772
|
-
<sqm-tab header="Reward history">
|
|
12773
|
-
<sqm-rewards-table
|
|
12774
|
-
><sqm-rewards-table-reward-column
|
|
12775
|
-
available-text="{availableAmount} remaining"
|
|
12776
|
-
column-title="Reward"
|
|
12777
|
-
copy-text="Copied!"
|
|
12778
|
-
redeemed-text="{redeemedAmount} redeemed"
|
|
12779
|
-
>
|
|
12780
|
-
</sqm-rewards-table-reward-column>
|
|
12781
|
-
<sqm-rewards-table-source-column
|
|
12782
|
-
anonymous-user="Anonymous User"
|
|
12783
|
-
column-title="Source"
|
|
12784
|
-
deleted-user="Deleted User"
|
|
12785
|
-
referral-text="{rewardSource, select, FRIEND_SIGNUP {Referral to} REFERRED {Referred by} other {}}"
|
|
12786
|
-
reward-exchange-text="Reward Exchange"
|
|
12787
|
-
reward-source-text="{rewardSource, select, MANUAL {Manual} AUTOMATED {{programName}} other {}}"
|
|
12788
|
-
>
|
|
12789
|
-
</sqm-rewards-table-source-column>
|
|
12790
|
-
<sqm-rewards-table-status-column
|
|
12791
|
-
column-title="Status"
|
|
12792
|
-
expiry-text="Expires on "
|
|
12793
|
-
status-text="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }"
|
|
12794
|
-
>
|
|
12795
|
-
</sqm-rewards-table-status-column>
|
|
12796
|
-
<sqm-rewards-table-date-column
|
|
12797
|
-
column-title="Date received"
|
|
12798
|
-
date-shown="dateGiven"
|
|
12799
|
-
>
|
|
12800
|
-
</sqm-rewards-table-date-column>
|
|
12801
|
-
<sqm-empty
|
|
12802
|
-
empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_reward2.png"
|
|
12803
|
-
empty-state-header="View your rewards"
|
|
12804
|
-
empty-state-text="Refer friends and complete tasks to view the details of your rewards"
|
|
12805
|
-
>
|
|
12806
|
-
</sqm-empty
|
|
12807
|
-
></sqm-rewards-table>
|
|
12808
|
-
</sqm-tab>
|
|
12809
|
-
<sqm-tab header="Redeem">
|
|
12810
|
-
<sqm-reward-exchange-list></sqm-reward-exchange-list>
|
|
12811
|
-
</sqm-tab>
|
|
12812
|
-
</sqm-tabs>
|
|
12721
|
+
const LeftTabs = () => (index.h("div", { style: { maxWidth: "900px", margin: "auto" }, innerHTML: `
|
|
12722
|
+
<sqm-tabs placement="left">
|
|
12723
|
+
<sqm-tab header="Leaderboard">
|
|
12724
|
+
<sqm-hero-image
|
|
12725
|
+
image-url="https://i.imgur.com/MVgOJn7.png"
|
|
12726
|
+
description="Be one of the top 3 referrers at the end of the year and receive Klip free for 1 year!"
|
|
12727
|
+
layout="columns"
|
|
12728
|
+
image-percentage="33%"
|
|
12729
|
+
padding-image="large"
|
|
12730
|
+
padding-text="large"
|
|
12731
|
+
background-color=""
|
|
12732
|
+
></sqm-hero-image>
|
|
12733
|
+
<sqm-leaderboard></sqm-leaderboard>
|
|
12734
|
+
</sqm-tab>
|
|
12735
|
+
<sqm-tab header="Referral history">
|
|
12736
|
+
<sqm-referral-table
|
|
12737
|
+
><sqm-referral-table-user-column
|
|
12738
|
+
column-title="User"
|
|
12739
|
+
anonymous-user="Anonymous User"
|
|
12740
|
+
deleted-user="Deleted User"
|
|
12741
|
+
>
|
|
12742
|
+
</sqm-referral-table-user-column>
|
|
12743
|
+
<sqm-referral-table-status-column
|
|
12744
|
+
column-title="Referral status"
|
|
12745
|
+
converted-status-text="Converted"
|
|
12746
|
+
in-progress-status-text="In Progress"
|
|
12747
|
+
>
|
|
12748
|
+
</sqm-referral-table-status-column>
|
|
12749
|
+
<sqm-referral-table-rewards-column
|
|
12750
|
+
column-title="Rewards"
|
|
12751
|
+
expiring-text="Expiring in"
|
|
12752
|
+
fuel-tank-text="Your code is"
|
|
12753
|
+
pending-for-text="{status} for {date}"
|
|
12754
|
+
reward-received-text="Reward received on"
|
|
12755
|
+
status-long-text="{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} EXPIRED {Reward expired on} other {Not available} }"
|
|
12756
|
+
status-text="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }"
|
|
12757
|
+
>
|
|
12758
|
+
</sqm-referral-table-rewards-column>
|
|
12759
|
+
<sqm-referral-table-date-column
|
|
12760
|
+
column-title="Date referred"
|
|
12761
|
+
date-shown="dateReferralStarted"
|
|
12762
|
+
>
|
|
12763
|
+
</sqm-referral-table-date-column>
|
|
12764
|
+
<sqm-empty
|
|
12765
|
+
empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644000223/squatch-assets/empty_referral2.png"
|
|
12766
|
+
empty-state-header="View your referral details"
|
|
12767
|
+
empty-state-text="Refer a friend to view the status of your referrals and rewards earned"
|
|
12768
|
+
>
|
|
12769
|
+
</sqm-empty
|
|
12770
|
+
></sqm-referral-table>
|
|
12771
|
+
</sqm-tab>
|
|
12772
|
+
<sqm-tab header="Reward history">
|
|
12773
|
+
<sqm-rewards-table
|
|
12774
|
+
><sqm-rewards-table-reward-column
|
|
12775
|
+
available-text="{availableAmount} remaining"
|
|
12776
|
+
column-title="Reward"
|
|
12777
|
+
copy-text="Copied!"
|
|
12778
|
+
redeemed-text="{redeemedAmount} redeemed"
|
|
12779
|
+
>
|
|
12780
|
+
</sqm-rewards-table-reward-column>
|
|
12781
|
+
<sqm-rewards-table-source-column
|
|
12782
|
+
anonymous-user="Anonymous User"
|
|
12783
|
+
column-title="Source"
|
|
12784
|
+
deleted-user="Deleted User"
|
|
12785
|
+
referral-text="{rewardSource, select, FRIEND_SIGNUP {Referral to} REFERRED {Referred by} other {}}"
|
|
12786
|
+
reward-exchange-text="Reward Exchange"
|
|
12787
|
+
reward-source-text="{rewardSource, select, MANUAL {Manual} AUTOMATED {{programName}} other {}}"
|
|
12788
|
+
>
|
|
12789
|
+
</sqm-rewards-table-source-column>
|
|
12790
|
+
<sqm-rewards-table-status-column
|
|
12791
|
+
column-title="Status"
|
|
12792
|
+
expiry-text="Expires on "
|
|
12793
|
+
status-text="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }"
|
|
12794
|
+
>
|
|
12795
|
+
</sqm-rewards-table-status-column>
|
|
12796
|
+
<sqm-rewards-table-date-column
|
|
12797
|
+
column-title="Date received"
|
|
12798
|
+
date-shown="dateGiven"
|
|
12799
|
+
>
|
|
12800
|
+
</sqm-rewards-table-date-column>
|
|
12801
|
+
<sqm-empty
|
|
12802
|
+
empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_reward2.png"
|
|
12803
|
+
empty-state-header="View your rewards"
|
|
12804
|
+
empty-state-text="Refer friends and complete tasks to view the details of your rewards"
|
|
12805
|
+
>
|
|
12806
|
+
</sqm-empty
|
|
12807
|
+
></sqm-rewards-table>
|
|
12808
|
+
</sqm-tab>
|
|
12809
|
+
<sqm-tab header="Redeem">
|
|
12810
|
+
<sqm-reward-exchange-list></sqm-reward-exchange-list>
|
|
12811
|
+
</sqm-tab>
|
|
12812
|
+
</sqm-tabs>
|
|
12813
12813
|
` }));
|
|
12814
|
-
const RightTabs = () => (index.h("div", { style: { maxWidth: "900px", margin: "auto" }, innerHTML: `
|
|
12815
|
-
<sqm-tabs placement="right">
|
|
12816
|
-
<sqm-tab header="Leaderboard">
|
|
12817
|
-
<sqm-hero-image
|
|
12818
|
-
image-url="https://i.imgur.com/MVgOJn7.png"
|
|
12819
|
-
description="Be one of the top 3 referrers at the end of the year and receive Klip free for 1 year!"
|
|
12820
|
-
layout="columns"
|
|
12821
|
-
image-percentage="33%"
|
|
12822
|
-
padding-image="large"
|
|
12823
|
-
padding-text="large"
|
|
12824
|
-
background-color=""
|
|
12825
|
-
></sqm-hero-image>
|
|
12826
|
-
<sqm-leaderboard></sqm-leaderboard>
|
|
12827
|
-
</sqm-tab>
|
|
12828
|
-
<sqm-tab header="Referral history">
|
|
12829
|
-
<sqm-referral-table
|
|
12830
|
-
><sqm-referral-table-user-column
|
|
12831
|
-
column-title="User"
|
|
12832
|
-
anonymous-user="Anonymous User"
|
|
12833
|
-
deleted-user="Deleted User"
|
|
12834
|
-
>
|
|
12835
|
-
</sqm-referral-table-user-column>
|
|
12836
|
-
<sqm-referral-table-status-column
|
|
12837
|
-
column-title="Referral status"
|
|
12838
|
-
converted-status-text="Converted"
|
|
12839
|
-
in-progress-status-text="In Progress"
|
|
12840
|
-
>
|
|
12841
|
-
</sqm-referral-table-status-column>
|
|
12842
|
-
<sqm-referral-table-rewards-column
|
|
12843
|
-
column-title="Rewards"
|
|
12844
|
-
expiring-text="Expiring in"
|
|
12845
|
-
fuel-tank-text="Your code is"
|
|
12846
|
-
pending-for-text="{status} for {date}"
|
|
12847
|
-
reward-received-text="Reward received on"
|
|
12848
|
-
status-long-text="{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} EXPIRED {Reward expired on} other {Not available} }"
|
|
12849
|
-
status-text="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }"
|
|
12850
|
-
>
|
|
12851
|
-
</sqm-referral-table-rewards-column>
|
|
12852
|
-
<sqm-referral-table-date-column
|
|
12853
|
-
column-title="Date referred"
|
|
12854
|
-
date-shown="dateReferralStarted"
|
|
12855
|
-
>
|
|
12856
|
-
</sqm-referral-table-date-column>
|
|
12857
|
-
<sqm-empty
|
|
12858
|
-
empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644000223/squatch-assets/empty_referral2.png"
|
|
12859
|
-
empty-state-header="View your referral details"
|
|
12860
|
-
empty-state-text="Refer a friend to view the status of your referrals and rewards earned"
|
|
12861
|
-
>
|
|
12862
|
-
</sqm-empty
|
|
12863
|
-
></sqm-referral-table>
|
|
12864
|
-
</sqm-tab>
|
|
12865
|
-
<sqm-tab header="Reward history">
|
|
12866
|
-
<sqm-rewards-table
|
|
12867
|
-
><sqm-rewards-table-reward-column
|
|
12868
|
-
available-text="{availableAmount} remaining"
|
|
12869
|
-
column-title="Reward"
|
|
12870
|
-
copy-text="Copied!"
|
|
12871
|
-
redeemed-text="{redeemedAmount} redeemed"
|
|
12872
|
-
>
|
|
12873
|
-
</sqm-rewards-table-reward-column>
|
|
12874
|
-
<sqm-rewards-table-source-column
|
|
12875
|
-
anonymous-user="Anonymous User"
|
|
12876
|
-
column-title="Source"
|
|
12877
|
-
deleted-user="Deleted User"
|
|
12878
|
-
referral-text="{rewardSource, select, FRIEND_SIGNUP {Referral to} REFERRED {Referred by} other {}}"
|
|
12879
|
-
reward-exchange-text="Reward Exchange"
|
|
12880
|
-
reward-source-text="{rewardSource, select, MANUAL {Manual} AUTOMATED {{programName}} other {}}"
|
|
12881
|
-
>
|
|
12882
|
-
</sqm-rewards-table-source-column>
|
|
12883
|
-
<sqm-rewards-table-status-column
|
|
12884
|
-
column-title="Status"
|
|
12885
|
-
expiry-text="Expires on "
|
|
12886
|
-
status-text="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }"
|
|
12887
|
-
>
|
|
12888
|
-
</sqm-rewards-table-status-column>
|
|
12889
|
-
<sqm-rewards-table-date-column
|
|
12890
|
-
column-title="Date received"
|
|
12891
|
-
date-shown="dateGiven"
|
|
12892
|
-
>
|
|
12893
|
-
</sqm-rewards-table-date-column>
|
|
12894
|
-
<sqm-empty
|
|
12895
|
-
empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_reward2.png"
|
|
12896
|
-
empty-state-header="View your rewards"
|
|
12897
|
-
empty-state-text="Refer friends and complete tasks to view the details of your rewards"
|
|
12898
|
-
>
|
|
12899
|
-
</sqm-empty
|
|
12900
|
-
></sqm-rewards-table>
|
|
12901
|
-
</sqm-tab>
|
|
12902
|
-
<sqm-tab header="Redeem">
|
|
12903
|
-
<sqm-reward-exchange-list></sqm-reward-exchange-list>
|
|
12904
|
-
</sqm-tab>
|
|
12905
|
-
</sqm-tabs>
|
|
12814
|
+
const RightTabs = () => (index.h("div", { style: { maxWidth: "900px", margin: "auto" }, innerHTML: `
|
|
12815
|
+
<sqm-tabs placement="right">
|
|
12816
|
+
<sqm-tab header="Leaderboard">
|
|
12817
|
+
<sqm-hero-image
|
|
12818
|
+
image-url="https://i.imgur.com/MVgOJn7.png"
|
|
12819
|
+
description="Be one of the top 3 referrers at the end of the year and receive Klip free for 1 year!"
|
|
12820
|
+
layout="columns"
|
|
12821
|
+
image-percentage="33%"
|
|
12822
|
+
padding-image="large"
|
|
12823
|
+
padding-text="large"
|
|
12824
|
+
background-color=""
|
|
12825
|
+
></sqm-hero-image>
|
|
12826
|
+
<sqm-leaderboard></sqm-leaderboard>
|
|
12827
|
+
</sqm-tab>
|
|
12828
|
+
<sqm-tab header="Referral history">
|
|
12829
|
+
<sqm-referral-table
|
|
12830
|
+
><sqm-referral-table-user-column
|
|
12831
|
+
column-title="User"
|
|
12832
|
+
anonymous-user="Anonymous User"
|
|
12833
|
+
deleted-user="Deleted User"
|
|
12834
|
+
>
|
|
12835
|
+
</sqm-referral-table-user-column>
|
|
12836
|
+
<sqm-referral-table-status-column
|
|
12837
|
+
column-title="Referral status"
|
|
12838
|
+
converted-status-text="Converted"
|
|
12839
|
+
in-progress-status-text="In Progress"
|
|
12840
|
+
>
|
|
12841
|
+
</sqm-referral-table-status-column>
|
|
12842
|
+
<sqm-referral-table-rewards-column
|
|
12843
|
+
column-title="Rewards"
|
|
12844
|
+
expiring-text="Expiring in"
|
|
12845
|
+
fuel-tank-text="Your code is"
|
|
12846
|
+
pending-for-text="{status} for {date}"
|
|
12847
|
+
reward-received-text="Reward received on"
|
|
12848
|
+
status-long-text="{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} EXPIRED {Reward expired on} other {Not available} }"
|
|
12849
|
+
status-text="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }"
|
|
12850
|
+
>
|
|
12851
|
+
</sqm-referral-table-rewards-column>
|
|
12852
|
+
<sqm-referral-table-date-column
|
|
12853
|
+
column-title="Date referred"
|
|
12854
|
+
date-shown="dateReferralStarted"
|
|
12855
|
+
>
|
|
12856
|
+
</sqm-referral-table-date-column>
|
|
12857
|
+
<sqm-empty
|
|
12858
|
+
empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644000223/squatch-assets/empty_referral2.png"
|
|
12859
|
+
empty-state-header="View your referral details"
|
|
12860
|
+
empty-state-text="Refer a friend to view the status of your referrals and rewards earned"
|
|
12861
|
+
>
|
|
12862
|
+
</sqm-empty
|
|
12863
|
+
></sqm-referral-table>
|
|
12864
|
+
</sqm-tab>
|
|
12865
|
+
<sqm-tab header="Reward history">
|
|
12866
|
+
<sqm-rewards-table
|
|
12867
|
+
><sqm-rewards-table-reward-column
|
|
12868
|
+
available-text="{availableAmount} remaining"
|
|
12869
|
+
column-title="Reward"
|
|
12870
|
+
copy-text="Copied!"
|
|
12871
|
+
redeemed-text="{redeemedAmount} redeemed"
|
|
12872
|
+
>
|
|
12873
|
+
</sqm-rewards-table-reward-column>
|
|
12874
|
+
<sqm-rewards-table-source-column
|
|
12875
|
+
anonymous-user="Anonymous User"
|
|
12876
|
+
column-title="Source"
|
|
12877
|
+
deleted-user="Deleted User"
|
|
12878
|
+
referral-text="{rewardSource, select, FRIEND_SIGNUP {Referral to} REFERRED {Referred by} other {}}"
|
|
12879
|
+
reward-exchange-text="Reward Exchange"
|
|
12880
|
+
reward-source-text="{rewardSource, select, MANUAL {Manual} AUTOMATED {{programName}} other {}}"
|
|
12881
|
+
>
|
|
12882
|
+
</sqm-rewards-table-source-column>
|
|
12883
|
+
<sqm-rewards-table-status-column
|
|
12884
|
+
column-title="Status"
|
|
12885
|
+
expiry-text="Expires on "
|
|
12886
|
+
status-text="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }"
|
|
12887
|
+
>
|
|
12888
|
+
</sqm-rewards-table-status-column>
|
|
12889
|
+
<sqm-rewards-table-date-column
|
|
12890
|
+
column-title="Date received"
|
|
12891
|
+
date-shown="dateGiven"
|
|
12892
|
+
>
|
|
12893
|
+
</sqm-rewards-table-date-column>
|
|
12894
|
+
<sqm-empty
|
|
12895
|
+
empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_reward2.png"
|
|
12896
|
+
empty-state-header="View your rewards"
|
|
12897
|
+
empty-state-text="Refer friends and complete tasks to view the details of your rewards"
|
|
12898
|
+
>
|
|
12899
|
+
</sqm-empty
|
|
12900
|
+
></sqm-rewards-table>
|
|
12901
|
+
</sqm-tab>
|
|
12902
|
+
<sqm-tab header="Redeem">
|
|
12903
|
+
<sqm-reward-exchange-list></sqm-reward-exchange-list>
|
|
12904
|
+
</sqm-tab>
|
|
12905
|
+
</sqm-tabs>
|
|
12906
12906
|
` }));
|
|
12907
12907
|
|
|
12908
12908
|
const Tabs = /*#__PURE__*/Object.freeze({
|
|
@@ -12918,7 +12918,7 @@ const Tabs = /*#__PURE__*/Object.freeze({
|
|
|
12918
12918
|
RightTabs: RightTabs
|
|
12919
12919
|
});
|
|
12920
12920
|
|
|
12921
|
-
const scenario$z = "@author:johan\
|
|
12921
|
+
const scenario$z = "@author:johan\n@owner:johan\nFeature: Share Code\n\n The share code component is a box that allows users to see and copy their referral code for a given program\n \n Background: Environment\n Given there is a valid program ID in the environment\n And there is a valid user ID and account ID in the environment\n\n @motivating\n Scenario: A Users referral code can be copied to their clipboard\n Given tooltiptext is \"hello tooltip\"\n When the component renders\n Then there is a textbox with the user's share link\n When the clipboard icon is clicked\n Then the link is copied to clipboard\n And a tooltip will appear for ~1 second\n\n @minutia\n Scenario: Tooltip lifespan defaults to 2000\n Given the tooltip's lifespan is set to 2000\n And there is tooltip text\n When the component renders\n And the clipboard icon is clicked\n Then a tooltip will appear for ~2 seconds\n\n @minutia\n Scenario: Demo\n Given isDemo() returns true\n Then the share link is \"https://www.example.com/sharelink/abc\"\n And the component won't be interactive\n And the tooltip is hidden\n\n @minutia\n Scenario: Program ID can be sourced from prop\n Given the programId prop is set to \"program-a\"\n And window.widgetIdent.programId is set to \"program-b\"\n When the component renders\n Then the share link is for \"program-a\"\n\n @minutia\n Scenario: Program ID can be sourced from window\n Given the programId prop is unset\n And window.widgetIdent.programId is set to \"program-b\"\n When the component renders\n Then the share link is for \"program-b\"\n\n @minutia\n Scenario: An analytic event is fired when a user copies their code\n Given a user viewing the share code component\n And the component is rendered for \"program-a\"\n When they click to copy their code\n Then an \"USER_REFERRAL_PROGRAM_ENGAGEMENT_EVENT\" analytic event is fired\n And it is for \"program-a\"\n And it has share medium \"DIRECT\"\n";
|
|
12922
12922
|
|
|
12923
12923
|
const ShareCode_stories = {
|
|
12924
12924
|
title: "Components/Share Code",
|
|
@@ -12956,36 +12956,36 @@ const ShareCode$1 = /*#__PURE__*/Object.freeze({
|
|
|
12956
12956
|
*
|
|
12957
12957
|
*/
|
|
12958
12958
|
//
|
|
12959
|
-
const Default$e = `
|
|
12960
|
-
// No CSS
|
|
12959
|
+
const Default$e = `
|
|
12960
|
+
// No CSS
|
|
12961
12961
|
`;
|
|
12962
|
-
const Orangey = `
|
|
12963
|
-
:root{
|
|
12964
|
-
${ShadowViewAddon.autoColorScaleCss("orange")}
|
|
12965
|
-
}
|
|
12962
|
+
const Orangey = `
|
|
12963
|
+
:root{
|
|
12964
|
+
${ShadowViewAddon.autoColorScaleCss("orange")}
|
|
12965
|
+
}
|
|
12966
12966
|
`;
|
|
12967
|
-
const Netflix = `
|
|
12968
|
-
:root{
|
|
12969
|
-
${ShadowViewAddon.autoColorScaleCss("#e50914")}
|
|
12970
|
-
}
|
|
12967
|
+
const Netflix = `
|
|
12968
|
+
:root{
|
|
12969
|
+
${ShadowViewAddon.autoColorScaleCss("#e50914")}
|
|
12970
|
+
}
|
|
12971
12971
|
`;
|
|
12972
|
-
const SaaSquatchCorporate = `
|
|
12973
|
-
:root{
|
|
12974
|
-
${ShadowViewAddon.autoColorScaleCss("#65bd60")}
|
|
12975
|
-
--sl-font-sans: Arial;
|
|
12976
|
-
}
|
|
12972
|
+
const SaaSquatchCorporate = `
|
|
12973
|
+
:root{
|
|
12974
|
+
${ShadowViewAddon.autoColorScaleCss("#65bd60")}
|
|
12975
|
+
--sl-font-sans: Arial;
|
|
12976
|
+
}
|
|
12977
12977
|
`;
|
|
12978
|
-
const NYTimes = `
|
|
12979
|
-
:root{
|
|
12980
|
-
${ShadowViewAddon.autoColorScaleCss("black")}
|
|
12981
|
-
--sl-font-sans: Georgia, 'Times New Roman', serif;
|
|
12982
|
-
}
|
|
12978
|
+
const NYTimes = `
|
|
12979
|
+
:root{
|
|
12980
|
+
${ShadowViewAddon.autoColorScaleCss("black")}
|
|
12981
|
+
--sl-font-sans: Georgia, 'Times New Roman', serif;
|
|
12982
|
+
}
|
|
12983
12983
|
`;
|
|
12984
|
-
const Klip = `
|
|
12985
|
-
:root{
|
|
12986
|
-
${ShadowViewAddon.autoColorScaleCss("#4225C4")};
|
|
12987
|
-
}
|
|
12988
|
-
|
|
12984
|
+
const Klip = `
|
|
12985
|
+
:root{
|
|
12986
|
+
${ShadowViewAddon.autoColorScaleCss("#4225C4")};
|
|
12987
|
+
}
|
|
12988
|
+
|
|
12989
12989
|
`;
|
|
12990
12990
|
|
|
12991
12991
|
const Themes = /*#__PURE__*/Object.freeze({
|