@saasquatch/mint-components 1.5.0-2 → 1.5.0-6
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/dist/cjs/{ShadowViewAddon-a85b8c8d.js → ShadowViewAddon-475e00d3.js} +3 -3
- package/dist/cjs/{global-6223fe8f.js → global-89f66e76.js} +2 -2
- package/dist/cjs/{index.module-7dd4b981.js → index.module-c0bf9df0.js} +16 -16
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/mint-components.cjs.js +3 -3
- package/dist/cjs/{re-render-6111d4bd.js → re-render-124b56ee.js} +4 -4
- package/dist/cjs/sqm-asset-card.cjs.entry.js +1 -1
- package/dist/cjs/sqm-big-stat.cjs.entry.js +2 -2
- package/dist/cjs/sqm-brand_31.cjs.entry.js +810 -586
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +4 -4
- package/dist/cjs/{sqm-leaderboard-rank-view-7dd44d62.js → sqm-leaderboard-rank-view-510f16d3.js} +2 -2
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +5 -5
- package/dist/cjs/sqm-leaderboard.cjs.entry.js +2 -2
- package/dist/cjs/sqm-name-fields.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-navigation-sidebar-item-view-6c7f78e6.js → sqm-navigation-sidebar-item-view-a2bdcf05.js} +2 -2
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +3 -3
- package/dist/cjs/sqm-popup-container.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-portal-email-verification-view-08d1848c.js → sqm-portal-email-verification-view-5093ac20.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +5 -5
- package/dist/cjs/{sqm-portal-footer-view-69c73802.js → sqm-portal-footer-view-03408484.js} +1 -1
- package/dist/cjs/sqm-portal-footer.cjs.entry.js +3 -3
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +3 -3
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-portal-profile-view-14b41436.js → sqm-portal-profile-view-fa2db439.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +6 -6
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +5 -5
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +5 -5
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +5 -5
- package/dist/cjs/sqm-program-explainer-step-view-6a01cda0.js +70 -0
- package/dist/cjs/sqm-program-explainer-step.cjs.entry.js +3 -16
- package/dist/cjs/sqm-program-explainer-view-8a4af972.js +45 -0
- package/dist/cjs/sqm-program-explainer.cjs.entry.js +4 -33
- package/dist/cjs/sqm-referral-table-column.cjs.entry.js +2 -2
- package/dist/cjs/sqm-referral-table-date-column.cjs.entry.js +2 -2
- package/dist/cjs/sqm-referral-table-rewards-column.cjs.entry.js +2 -2
- package/dist/cjs/sqm-referral-table-status-column.cjs.entry.js +2 -2
- package/dist/cjs/sqm-referral-table-user-column.cjs.entry.js +2 -2
- package/dist/cjs/sqm-share-code.cjs.entry.js +4 -4
- package/dist/cjs/{useDemoBigStat-2786227e.js → useDemoBigStat-5d71bbdf.js} +3 -3
- package/dist/collection/components/sqm-brand/SqmBrand.stories.js +31 -13
- package/dist/collection/components/sqm-brand/sqm-brand.js +51 -13
- package/dist/collection/components/sqm-program-explainer/ProgramExplainer.stories.js +45 -29
- package/dist/collection/components/sqm-program-explainer/sqm-program-explainer-view.js +36 -28
- package/dist/collection/components/sqm-program-explainer/sqm-program-explainer.js +112 -5
- package/dist/collection/components/sqm-program-explainer-step/ProgramExplainerStep.stories.js +3 -2
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step-view.js +42 -21
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step.js +46 -46
- package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeList.stories.js +5 -3
- package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeListData.js +38 -19
- package/dist/collection/components/sqm-reward-exchange-list/SVGs.js +3 -0
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +135 -87
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +349 -3
- package/dist/collection/components/sqm-reward-exchange-list/useRewardExchangeList.js +20 -12
- package/dist/collection/fonts/GoogleFonts.js +12 -0
- package/dist/esm/{ShadowViewAddon-a3f510db.js → ShadowViewAddon-558fabb7.js} +3 -3
- package/dist/esm/{global-90da933f.js → global-e0e25c22.js} +2 -2
- package/dist/esm/{index.module-90d2c3ad.js → index.module-eb50a8d2.js} +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/mint-components.js +3 -3
- package/dist/esm/{re-render-e06f2f7f.js → re-render-6d5b856e.js} +4 -4
- package/dist/esm/sqm-asset-card.entry.js +1 -1
- package/dist/esm/sqm-big-stat.entry.js +2 -2
- package/dist/esm/sqm-brand_31.entry.js +811 -587
- package/dist/esm/sqm-graphql-client-provider.entry.js +4 -4
- package/dist/esm/{sqm-leaderboard-rank-view-47844836.js → sqm-leaderboard-rank-view-cd1e8962.js} +2 -2
- package/dist/esm/sqm-leaderboard-rank.entry.js +5 -5
- package/dist/esm/sqm-leaderboard.entry.js +2 -2
- package/dist/esm/sqm-name-fields.entry.js +1 -1
- package/dist/esm/{sqm-navigation-sidebar-item-view-f2304ad9.js → sqm-navigation-sidebar-item-view-2d8c368c.js} +2 -2
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +3 -3
- package/dist/esm/sqm-popup-container.entry.js +1 -1
- package/dist/esm/{sqm-portal-email-verification-view-8cefe480.js → sqm-portal-email-verification-view-2af31979.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +5 -5
- package/dist/esm/{sqm-portal-footer-view-d9fe0bf8.js → sqm-portal-footer-view-60cd9ae5.js} +1 -1
- package/dist/esm/sqm-portal-footer.entry.js +3 -3
- package/dist/esm/sqm-portal-forgot-password.entry.js +3 -3
- package/dist/esm/sqm-portal-logout.entry.js +3 -3
- package/dist/esm/{sqm-portal-profile-view-b67467b4.js → sqm-portal-profile-view-f1deea0f.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +6 -6
- package/dist/esm/sqm-portal-protected-route.entry.js +5 -5
- package/dist/esm/sqm-portal-reset-password.entry.js +7 -7
- package/dist/esm/sqm-portal-verify-email.entry.js +5 -5
- package/dist/esm/sqm-program-explainer-step-view-41c1eecd.js +68 -0
- package/dist/esm/sqm-program-explainer-step.entry.js +3 -16
- package/dist/esm/sqm-program-explainer-view-098a64a9.js +43 -0
- package/dist/esm/sqm-program-explainer.entry.js +7 -36
- package/dist/esm/sqm-referral-table-column.entry.js +2 -2
- package/dist/esm/sqm-referral-table-date-column.entry.js +2 -2
- package/dist/esm/sqm-referral-table-rewards-column.entry.js +2 -2
- package/dist/esm/sqm-referral-table-status-column.entry.js +2 -2
- package/dist/esm/sqm-referral-table-user-column.entry.js +2 -2
- package/dist/esm/sqm-share-code.entry.js +4 -4
- package/dist/esm/{useDemoBigStat-c3b955b7.js → useDemoBigStat-d227b2f9.js} +3 -3
- package/dist/esm-es5/ShadowViewAddon-558fabb7.js +1 -0
- package/dist/esm-es5/{global-90da933f.js → global-e0e25c22.js} +2 -2
- package/dist/esm-es5/{index.module-90d2c3ad.js → index.module-eb50a8d2.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/{re-render-e06f2f7f.js → re-render-6d5b856e.js} +1 -1
- package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat.entry.js +1 -1
- package/dist/esm-es5/sqm-brand_31.entry.js +2 -2
- package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm-es5/{sqm-leaderboard-rank-view-47844836.js → sqm-leaderboard-rank-view-cd1e8962.js} +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-leaderboard.entry.js +1 -1
- package/dist/esm-es5/sqm-name-fields.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-2d8c368c.js +1 -0
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-8cefe480.js → sqm-portal-email-verification-view-2af31979.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-footer-view-d9fe0bf8.js → sqm-portal-footer-view-60cd9ae5.js} +1 -1
- package/dist/esm-es5/sqm-portal-footer.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-b67467b4.js → sqm-portal-profile-view-f1deea0f.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm-es5/sqm-program-explainer-step-view-41c1eecd.js +1 -0
- package/dist/esm-es5/sqm-program-explainer-step.entry.js +1 -1
- package/dist/esm-es5/sqm-program-explainer-view-098a64a9.js +1 -0
- package/dist/esm-es5/sqm-program-explainer.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table-column.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table-date-column.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table-rewards-column.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table-status-column.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table-user-column.entry.js +1 -1
- package/dist/esm-es5/sqm-share-code.entry.js +1 -1
- package/dist/esm-es5/useDemoBigStat-d227b2f9.js +1 -0
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/{p-a6094ff9.system.js → p-02dc36a4.system.js} +1 -1
- package/dist/mint-components/{p-3ce2fb83.system.js → p-03e93c82.system.js} +1 -1
- package/dist/mint-components/p-0d8b2757.system.entry.js +1 -0
- package/dist/mint-components/{p-b608f7a4.system.js → p-0e8ae7e3.system.js} +1 -1
- package/dist/mint-components/p-10103ce2.system.js +1 -0
- package/dist/mint-components/{p-221a4097.entry.js → p-1705e549.entry.js} +1 -1
- package/dist/mint-components/p-1b5b5928.system.js +1 -0
- package/dist/mint-components/{p-0eb3e89c.js → p-1f95b411.js} +1 -1
- package/dist/mint-components/{p-44d0fc80.system.entry.js → p-2027edc0.system.entry.js} +1 -1
- package/dist/mint-components/{p-a4c2c7ed.entry.js → p-20c95798.entry.js} +1 -1
- package/dist/mint-components/{p-b1bb07db.entry.js → p-21b4044a.entry.js} +1 -1
- package/dist/mint-components/p-21df3f85.system.entry.js +1 -0
- package/dist/mint-components/{p-db2e4c42.js → p-221bd06e.js} +1 -1
- package/dist/mint-components/p-2338162a.entry.js +1 -0
- package/dist/mint-components/{p-73148868.system.entry.js → p-24fa8920.system.entry.js} +1 -1
- package/dist/mint-components/{p-e6d77d20.system.entry.js → p-29ee7d11.system.entry.js} +1 -1
- package/dist/mint-components/{p-e7f633b9.system.js → p-2e63dcfd.system.js} +1 -1
- package/dist/mint-components/{p-9d6dbb2d.entry.js → p-3143cce4.entry.js} +1 -1
- package/dist/mint-components/p-34112d74.entry.js +1 -0
- package/dist/mint-components/{p-3b97aed8.system.js → p-40e83a85.system.js} +1 -1
- package/dist/mint-components/{p-be2738b0.system.entry.js → p-46493de5.system.entry.js} +1 -1
- package/dist/mint-components/{p-1dcdca58.system.entry.js → p-4658d225.system.entry.js} +1 -1
- package/dist/mint-components/{p-6882070c.js → p-4b719313.js} +1 -1
- package/dist/mint-components/{p-29fab29b.entry.js → p-53e51b3f.entry.js} +1 -1
- package/dist/mint-components/p-5939212e.system.entry.js +1 -0
- package/dist/mint-components/{p-d35b0366.js → p-5d925bb6.js} +1 -1
- package/dist/mint-components/{p-c6114bfe.system.js → p-5e4e7f01.system.js} +1 -1
- package/dist/mint-components/{p-224504ad.js → p-61acba7a.js} +1 -1
- package/dist/mint-components/{p-f17050de.entry.js → p-65c79eec.entry.js} +1 -1
- package/dist/mint-components/p-748ad4f5.entry.js +1 -0
- package/dist/mint-components/{p-52802c88.entry.js → p-759d3800.entry.js} +2 -2
- package/dist/mint-components/{p-49cbd0a2.entry.js → p-760762d3.entry.js} +2 -2
- package/dist/mint-components/{p-33c5ffb7.entry.js → p-7cdbe82a.entry.js} +1 -1
- package/dist/mint-components/{p-223b42bd.system.entry.js → p-7ff22998.system.entry.js} +1 -1
- package/dist/mint-components/p-81786aa0.js +1 -0
- package/dist/mint-components/p-85efd952.entry.js +1 -0
- package/dist/mint-components/p-86255b95.entry.js +1 -0
- package/dist/mint-components/{p-24c9a599.system.entry.js → p-88fdfd94.system.entry.js} +1 -1
- package/dist/mint-components/p-8d6bb835.system.entry.js +58 -0
- package/dist/mint-components/p-8ec5127e.system.entry.js +1 -0
- package/dist/mint-components/{p-46a4269a.js → p-8fd8682c.js} +1 -1
- package/dist/mint-components/{p-7300b0ae.entry.js → p-90a4bcd0.entry.js} +16 -15
- package/dist/mint-components/{p-412a9226.system.entry.js → p-97b946c2.system.entry.js} +1 -1
- package/dist/mint-components/p-9be0cb19.entry.js +1 -0
- package/dist/mint-components/{p-1a09e4e1.system.entry.js → p-a0a26fc5.system.entry.js} +1 -1
- package/dist/mint-components/{p-304e6c82.system.entry.js → p-a355eeaf.system.entry.js} +1 -1
- package/dist/mint-components/{p-67ae18d1.system.entry.js → p-a8246a50.system.entry.js} +1 -1
- package/dist/mint-components/p-a831de18.entry.js +1 -0
- package/dist/mint-components/p-a833dbb3.js +1 -0
- package/dist/mint-components/p-a88a08bb.system.js +1 -0
- package/dist/mint-components/{p-b8bd2607.entry.js → p-a9a6f205.entry.js} +1 -1
- package/dist/mint-components/{p-6e245fa3.system.entry.js → p-aee83885.system.entry.js} +1 -1
- package/dist/mint-components/{p-cca9026f.system.entry.js → p-b86cbac3.system.entry.js} +1 -1
- package/dist/mint-components/{p-07c924fa.system.js → p-be3a0cc4.system.js} +1 -1
- package/dist/mint-components/{p-3397167c.entry.js → p-c0f9d0b1.entry.js} +1 -1
- package/dist/mint-components/{p-60855d33.system.js → p-c65cfc9d.system.js} +1 -1
- package/dist/mint-components/{p-dc603d08.system.entry.js → p-ca40dbaa.system.entry.js} +1 -1
- package/dist/mint-components/{p-9c554ca0.system.js → p-cc189fc4.system.js} +1 -1
- package/dist/mint-components/{p-fce1dbf6.entry.js → p-cc652a53.entry.js} +1 -1
- package/dist/mint-components/{p-f90486ca.js → p-d19d6012.js} +15 -15
- package/dist/mint-components/p-d3c7dbfc.entry.js +1 -0
- package/dist/mint-components/{p-24b3c6f0.system.entry.js → p-d4a1bce9.system.entry.js} +1 -1
- package/dist/mint-components/p-d68f6b64.system.entry.js +1 -0
- package/dist/mint-components/p-e36ff7fa.entry.js +1 -0
- package/dist/mint-components/{p-723ebe45.entry.js → p-e608f340.entry.js} +2 -2
- package/dist/mint-components/{p-c79c608d.system.entry.js → p-e7cb4274.system.entry.js} +1 -1
- package/dist/mint-components/p-ee684b5f.js +1 -0
- package/dist/mint-components/{p-6bf0a4d9.system.entry.js → p-ef7f70f2.system.entry.js} +1 -1
- package/dist/mint-components/{p-396bf448.system.entry.js → p-f20d9204.system.entry.js} +1 -1
- package/dist/mint-components/p-f5cfc52a.entry.js +1 -0
- package/dist/mint-components/{p-d21e0dbd.js → p-f7f87338.js} +1 -1
- package/dist/mint-components/{p-cdeae699.system.js → p-f9ada3d7.system.js} +1 -1
- package/dist/mint-components/{p-563253e8.js → p-faf66fdb.js} +1 -1
- package/dist/mint-components/p-fcd03042.entry.js +1 -0
- package/dist/mint-components/{p-69bcf4fa.system.entry.js → p-fd281e6b.system.entry.js} +1 -1
- package/dist/types/components/sqm-brand/SqmBrand.stories.d.ts +1 -0
- package/dist/types/components/sqm-brand/sqm-brand.d.ts +6 -0
- package/dist/types/components/sqm-program-explainer/ProgramExplainer.stories.d.ts +3 -1
- package/dist/types/components/sqm-program-explainer/sqm-program-explainer-view.d.ts +9 -0
- package/dist/types/components/sqm-program-explainer/sqm-program-explainer.d.ts +23 -3
- package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step-view.d.ts +2 -1
- package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step.d.ts +14 -12
- package/dist/types/components/sqm-reward-exchange-list/RewardExchangeList.stories.d.ts +2 -0
- package/dist/types/components/sqm-reward-exchange-list/RewardExchangeListData.d.ts +85 -0
- package/dist/types/components/sqm-reward-exchange-list/SVGs.d.ts +1 -0
- package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.d.ts +3 -0
- package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list.d.ts +53 -0
- package/dist/types/components/sqm-reward-exchange-list/useRewardExchangeList.d.ts +16 -0
- package/dist/types/components.d.ts +186 -19
- package/dist/types/fonts/GoogleFonts.d.ts +9 -0
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/sqm-program-explainer-step-view-0e66bea1.js +0 -49
- package/dist/esm/sqm-program-explainer-step-view-26920cf9.js +0 -47
- package/dist/esm-es5/ShadowViewAddon-a3f510db.js +0 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-f2304ad9.js +0 -1
- package/dist/esm-es5/sqm-program-explainer-step-view-26920cf9.js +0 -1
- package/dist/esm-es5/useDemoBigStat-c3b955b7.js +0 -1
- package/dist/mint-components/p-160bd62f.entry.js +0 -1
- package/dist/mint-components/p-16f5a7cb.system.js +0 -1
- package/dist/mint-components/p-1c8b0290.entry.js +0 -1
- package/dist/mint-components/p-1ea0804d.js +0 -1
- package/dist/mint-components/p-20d41ab1.entry.js +0 -1
- package/dist/mint-components/p-244f3d9b.system.entry.js +0 -1
- package/dist/mint-components/p-3d856985.entry.js +0 -1
- package/dist/mint-components/p-4052b948.system.entry.js +0 -1
- package/dist/mint-components/p-45c752a0.entry.js +0 -1
- package/dist/mint-components/p-4fd17832.entry.js +0 -1
- package/dist/mint-components/p-5480e4ee.entry.js +0 -1
- package/dist/mint-components/p-8435a22d.entry.js +0 -1
- package/dist/mint-components/p-883a32e7.entry.js +0 -1
- package/dist/mint-components/p-9bda1dc4.system.entry.js +0 -1
- package/dist/mint-components/p-9e4fee30.system.entry.js +0 -1
- package/dist/mint-components/p-a2c3cff3.js +0 -1
- package/dist/mint-components/p-ade44a4e.entry.js +0 -1
- package/dist/mint-components/p-d12c666e.system.js +0 -1
- package/dist/mint-components/p-d174d0bc.system.entry.js +0 -1
- package/dist/mint-components/p-ded1509b.entry.js +0 -1
- package/dist/mint-components/p-f8c5f710.system.entry.js +0 -58
|
@@ -4,9 +4,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
6
|
const _extends = require('./extends-0302d27d.js');
|
|
7
|
-
const global = require('./global-
|
|
7
|
+
const global = require('./global-89f66e76.js');
|
|
8
8
|
const useCallback = require('./use-callback-fadb2643.js');
|
|
9
|
-
const index_module = require('./index.module-
|
|
9
|
+
const index_module = require('./index.module-c0bf9df0.js');
|
|
10
10
|
const jsonpointer = require('./jsonpointer-11327262.js');
|
|
11
11
|
const jssPresetDefault_esm = require('./jss-preset-default.esm-6304d24f.js');
|
|
12
12
|
const utils = require('./utils-95e5317c.js');
|
|
@@ -15,24 +15,38 @@ const mixins = require('./mixins-7b7c59fe.js');
|
|
|
15
15
|
const sqmPortalContainerView = require('./sqm-portal-container-view-d144735a.js');
|
|
16
16
|
const sqmPortalSectionView = require('./sqm-portal-section-view-3b008930.js');
|
|
17
17
|
const sqmTextSpanView = require('./sqm-text-span-view-b5ae787b.js');
|
|
18
|
-
const sqmLeaderboardRankView = require('./sqm-leaderboard-rank-view-
|
|
19
|
-
const reRender = require('./re-render-
|
|
20
|
-
const useDemoBigStat = require('./useDemoBigStat-2786227e.js');
|
|
18
|
+
const sqmLeaderboardRankView = require('./sqm-leaderboard-rank-view-510f16d3.js');
|
|
19
|
+
const reRender = require('./re-render-124b56ee.js');
|
|
21
20
|
const sqmShareLinkView = require('./sqm-share-link-view-a935d07e.js');
|
|
22
|
-
const
|
|
21
|
+
const useDemoBigStat = require('./useDemoBigStat-5d71bbdf.js');
|
|
22
|
+
const ShadowViewAddon = require('./ShadowViewAddon-475e00d3.js');
|
|
23
23
|
const sqmNavigationSidebarView = require('./sqm-navigation-sidebar-view-d06e1885.js');
|
|
24
|
-
const sqmNavigationSidebarItemView = require('./sqm-navigation-sidebar-item-view-
|
|
24
|
+
const sqmNavigationSidebarItemView = require('./sqm-navigation-sidebar-item-view-a2bdcf05.js');
|
|
25
25
|
const sqmStatContainerView = require('./sqm-stat-container-view-ee7b00ff.js');
|
|
26
|
-
const sqmPortalProfileView = require('./sqm-portal-profile-view-
|
|
26
|
+
const sqmPortalProfileView = require('./sqm-portal-profile-view-fa2db439.js');
|
|
27
27
|
const sqmPortalForgotPasswordView = require('./sqm-portal-forgot-password-view-1704d285.js');
|
|
28
|
-
const sqmPortalEmailVerificationView = require('./sqm-portal-email-verification-view-
|
|
28
|
+
const sqmPortalEmailVerificationView = require('./sqm-portal-email-verification-view-5093ac20.js');
|
|
29
29
|
const sqmPortalResetPasswordView = require('./sqm-portal-reset-password-view-4d78fd6d.js');
|
|
30
30
|
const sqmPortalVerifyEmailView = require('./sqm-portal-verify-email-view-b595e302.js');
|
|
31
31
|
const sqmAssetCardView = require('./sqm-asset-card-view-07f86880.js');
|
|
32
|
-
const sqmPortalFooterView = require('./sqm-portal-footer-view-
|
|
32
|
+
const sqmPortalFooterView = require('./sqm-portal-footer-view-03408484.js');
|
|
33
33
|
const sqmHeroView = require('./sqm-hero-view-bb3d00a1.js');
|
|
34
34
|
const sqmNameFieldsView = require('./sqm-name-fields-view-24614ac7.js');
|
|
35
|
-
const
|
|
35
|
+
const sqmProgramExplainerView = require('./sqm-program-explainer-view-8a4af972.js');
|
|
36
|
+
const sqmProgramExplainerStepView = require('./sqm-program-explainer-step-view-6a01cda0.js');
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Build a font CSS URL using the Google Fonts CSS API
|
|
40
|
+
*
|
|
41
|
+
* Docs: https://developers.google.com/fonts/docs/css2
|
|
42
|
+
*
|
|
43
|
+
* @param fonts - the font family or families to load
|
|
44
|
+
* @returns url to a .css file
|
|
45
|
+
*/
|
|
46
|
+
function buildFontsCssUrl(...fonts) {
|
|
47
|
+
const queryString = fonts.map(f => `family=${encodeURIComponent(f)}`).join("&");
|
|
48
|
+
return `https://fonts.googleapis.com/css2?${queryString}`;
|
|
49
|
+
}
|
|
36
50
|
|
|
37
51
|
var chroma = _extends.createCommonjsModule(function (module, exports) {
|
|
38
52
|
/**
|
|
@@ -3299,24 +3313,41 @@ function makeColorScale(color) {
|
|
|
3299
3313
|
const BrandComponent = class {
|
|
3300
3314
|
constructor(hostRef) {
|
|
3301
3315
|
index.registerInstance(this, hostRef);
|
|
3302
|
-
/**
|
|
3303
|
-
* Controls the primary brand color used in the Mint Components library. Note that this
|
|
3304
|
-
* does not affect vanilla components or other component libraries.
|
|
3305
|
-
*
|
|
3306
|
-
* @uiName Brand Color
|
|
3307
|
-
*/
|
|
3308
|
-
this.brandColor = "#0000FF";
|
|
3309
3316
|
_extends.h$1(this);
|
|
3310
3317
|
}
|
|
3311
3318
|
disconnectedCallback() { }
|
|
3312
3319
|
render() {
|
|
3313
|
-
|
|
3320
|
+
var _a, _b;
|
|
3321
|
+
const brandColor = (_a = this.brandColor) !== null && _a !== void 0 ? _a : "inherit";
|
|
3322
|
+
const css = autoColorScaleCss(brandColor);
|
|
3323
|
+
const sanitizedFont = ((_b = this.brandFont) !== null && _b !== void 0 ? _b : "").trim() || undefined;
|
|
3324
|
+
_extends.useEffect(() => {
|
|
3325
|
+
if (!sanitizedFont) {
|
|
3326
|
+
// Nothing required in default case.
|
|
3327
|
+
return;
|
|
3328
|
+
}
|
|
3329
|
+
const sheet = document.createElement("link");
|
|
3330
|
+
sheet.setAttribute("href", buildFontsCssUrl(sanitizedFont));
|
|
3331
|
+
sheet.setAttribute("rel", "stylesheet");
|
|
3332
|
+
document.head.appendChild(sheet);
|
|
3333
|
+
return () => document.head.removeChild(sheet);
|
|
3334
|
+
}, [sanitizedFont]);
|
|
3335
|
+
const font = sanitizedFont !== null && sanitizedFont !== void 0 ? sanitizedFont : "inherit";
|
|
3314
3336
|
return (index.h(index.Host, null, index.h("style", null, `
|
|
3315
3337
|
:host{
|
|
3316
3338
|
display: contents;
|
|
3317
3339
|
}
|
|
3318
|
-
/*
|
|
3340
|
+
/*
|
|
3341
|
+
Selects any element placed inside a slot
|
|
3342
|
+
- resets css variable inheritence for fonts
|
|
3343
|
+
|
|
3344
|
+
*/
|
|
3319
3345
|
::slotted(*) {
|
|
3346
|
+
--sl-font-sans: "${font}", arial;
|
|
3347
|
+
--sl-input-font-family: "${font}", arial;
|
|
3348
|
+
--sl-tooltip-font-family: "${font}", arial;
|
|
3349
|
+
font-family: "${font}", arial;
|
|
3350
|
+
|
|
3320
3351
|
${css}
|
|
3321
3352
|
}`), index.h("slot", null)));
|
|
3322
3353
|
}
|
|
@@ -3487,13 +3518,13 @@ const defaultFormState = {
|
|
|
3487
3518
|
error: "",
|
|
3488
3519
|
};
|
|
3489
3520
|
function useEditProfile(props) {
|
|
3490
|
-
const userIdent = index_module.
|
|
3521
|
+
const userIdent = index_module.ne();
|
|
3491
3522
|
const [showEdit, setShowEdit] = _extends.useState(false);
|
|
3492
3523
|
const [error, setError] = _extends.useState("");
|
|
3493
3524
|
const [userData, setUserData] = _extends.useState(undefined);
|
|
3494
3525
|
const [formState, setFormState] = _extends.useState(defaultFormState);
|
|
3495
|
-
const userDataResponse = index_module.
|
|
3496
|
-
const [upsertUser, upsertUserResponse] = index_module.
|
|
3526
|
+
const userDataResponse = index_module.cn(GET_USER, {}, !(userIdent === null || userIdent === void 0 ? void 0 : userIdent.jwt));
|
|
3527
|
+
const [upsertUser, upsertUserResponse] = index_module.De(UPSERT_USER);
|
|
3497
3528
|
_extends.useEffect(() => {
|
|
3498
3529
|
if ((upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.loading) || !showEdit)
|
|
3499
3530
|
return;
|
|
@@ -3719,12 +3750,12 @@ function NavigationMenuView(props) {
|
|
|
3719
3750
|
}
|
|
3720
3751
|
|
|
3721
3752
|
function handleMenu(e) {
|
|
3722
|
-
index_module.
|
|
3753
|
+
index_module.mn.push(e.detail.item.value);
|
|
3723
3754
|
}
|
|
3724
3755
|
function useNavigationMenu(props) {
|
|
3725
3756
|
const ref = _extends.useRef();
|
|
3726
|
-
const [, rerender] = index_module.
|
|
3727
|
-
const user = index_module.
|
|
3757
|
+
const [, rerender] = index_module.sn();
|
|
3758
|
+
const user = index_module.ne();
|
|
3728
3759
|
_extends.useEffect(() => {
|
|
3729
3760
|
var _a;
|
|
3730
3761
|
(_a = ref.current) === null || _a === void 0 ? void 0 : _a.addEventListener("sl-select", (e) => handleMenu(e));
|
|
@@ -4418,11 +4449,11 @@ function PortalChangePasswordView(props) {
|
|
|
4418
4449
|
|
|
4419
4450
|
function usePortalChangePassword(props) {
|
|
4420
4451
|
var _a, _b, _c, _d;
|
|
4421
|
-
const [request, { loading, errors, data }] = index_module.
|
|
4452
|
+
const [request, { loading, errors, data }] = index_module.He();
|
|
4422
4453
|
const [open, setOpen] = _extends.useState(false);
|
|
4423
4454
|
const [error, setError] = _extends.useState("");
|
|
4424
4455
|
const [success, setSuccess] = _extends.useState(false);
|
|
4425
|
-
const user = index_module.
|
|
4456
|
+
const user = index_module.ne();
|
|
4426
4457
|
const submit = async (event) => {
|
|
4427
4458
|
var _a;
|
|
4428
4459
|
setSuccess(false);
|
|
@@ -4597,7 +4628,7 @@ function PortalFrameView(props, children) {
|
|
|
4597
4628
|
}
|
|
4598
4629
|
|
|
4599
4630
|
function usePortalFrame(footerContent, headerContent) {
|
|
4600
|
-
const [, rerender] = index_module.
|
|
4631
|
+
const [, rerender] = index_module.sn();
|
|
4601
4632
|
return {
|
|
4602
4633
|
data: {
|
|
4603
4634
|
footer: footerContent,
|
|
@@ -4685,7 +4716,7 @@ function PortalLoginView(props) {
|
|
|
4685
4716
|
|
|
4686
4717
|
function usePortalLogin({ nextPage }) {
|
|
4687
4718
|
var _a, _b, _c, _d;
|
|
4688
|
-
const [request, { loading, errors, data }] = index_module
|
|
4719
|
+
const [request, { loading, errors, data }] = index_module.$e();
|
|
4689
4720
|
const [error, setError] = _extends.useState("");
|
|
4690
4721
|
const urlParams = new URLSearchParams(window.location.search);
|
|
4691
4722
|
const nextPageOverride = urlParams.get("nextPage");
|
|
@@ -4702,7 +4733,7 @@ function usePortalLogin({ nextPage }) {
|
|
|
4702
4733
|
var _a;
|
|
4703
4734
|
if ((_a = data === null || data === void 0 ? void 0 : data.authenticateManagedIdentityWithEmailAndPassword) === null || _a === void 0 ? void 0 : _a.token) {
|
|
4704
4735
|
urlParams.delete("nextPage");
|
|
4705
|
-
index_module.
|
|
4736
|
+
index_module.mn.push({
|
|
4706
4737
|
pathname: nextPageOverride || nextPage,
|
|
4707
4738
|
search: urlParams.toString() && "?" + urlParams.toString(),
|
|
4708
4739
|
});
|
|
@@ -4766,8 +4797,8 @@ const PortalLogin = class {
|
|
|
4766
4797
|
? useLoginDemo(this)
|
|
4767
4798
|
: usePortalLogin(this);
|
|
4768
4799
|
const content = {
|
|
4769
|
-
forgotPasswordButton: (index.h("slot", { name: "forgotPassword" }, index.h("a", { onClick: () => index_module.
|
|
4770
|
-
secondaryButton: (index.h("slot", { name: "secondaryButton" }, index.h("sl-button", { type: "text", disabled: states.loading, onClick: () => index_module.
|
|
4800
|
+
forgotPasswordButton: (index.h("slot", { name: "forgotPassword" }, index.h("a", { onClick: () => index_module.mn.push("/forgotPassword") }, this.forgotPasswordLabel))),
|
|
4801
|
+
secondaryButton: (index.h("slot", { name: "secondaryButton" }, index.h("sl-button", { type: "text", disabled: states.loading, onClick: () => index_module.mn.push("/register") }, this.registerLabel))),
|
|
4771
4802
|
emailLabel: this.emailLabel,
|
|
4772
4803
|
passwordLabel: this.passwordLabel,
|
|
4773
4804
|
submitLabel: this.submitLabel,
|
|
@@ -4860,7 +4891,7 @@ function PortalRegisterView(props) {
|
|
|
4860
4891
|
|
|
4861
4892
|
const CONTEXT_NAME$1 = "sq:validation-state";
|
|
4862
4893
|
function useValidationState(formState) {
|
|
4863
|
-
const host = index_module.
|
|
4894
|
+
const host = index_module.S();
|
|
4864
4895
|
const [validationState, setValidationState] = _extends.y(host, CONTEXT_NAME$1, formState);
|
|
4865
4896
|
return { validationState, setValidationState };
|
|
4866
4897
|
}
|
|
@@ -8740,7 +8771,7 @@ function usePortalRegister(props) {
|
|
|
8740
8771
|
var _a, _b, _c, _d, _e, _f;
|
|
8741
8772
|
const formRef = _extends.useRef(null);
|
|
8742
8773
|
const { validationState, setValidationState } = useValidationState({});
|
|
8743
|
-
const [request, { loading, errors, data }] = index_module.
|
|
8774
|
+
const [request, { loading, errors, data }] = index_module.Ve();
|
|
8744
8775
|
const submit = async (event) => {
|
|
8745
8776
|
let formControls = event.target.getFormControls();
|
|
8746
8777
|
let formData = {};
|
|
@@ -8803,7 +8834,7 @@ function usePortalRegister(props) {
|
|
|
8803
8834
|
_extends.useEffect(() => {
|
|
8804
8835
|
var _a;
|
|
8805
8836
|
if ((_a = data === null || data === void 0 ? void 0 : data.registerManagedIdentityWithEmailAndPassword) === null || _a === void 0 ? void 0 : _a.token) {
|
|
8806
|
-
index_module.
|
|
8837
|
+
index_module.mn.push(props.nextPage);
|
|
8807
8838
|
}
|
|
8808
8839
|
}, [(_a = data === null || data === void 0 ? void 0 : data.registerManagedIdentityWithEmailAndPassword) === null || _a === void 0 ? void 0 : _a.token]);
|
|
8809
8840
|
_extends.useEffect(() => {
|
|
@@ -8897,7 +8928,7 @@ const PortalRegister = class {
|
|
|
8897
8928
|
: usePortalRegister(this);
|
|
8898
8929
|
const content = {
|
|
8899
8930
|
formData: index.h("slot", { name: "formData" }),
|
|
8900
|
-
secondaryButton: (index.h("slot", { name: "secondaryButton" }, index.h("sl-button", { type: "text", disabled: states.loading, onClick: () => index_module.
|
|
8931
|
+
secondaryButton: (index.h("slot", { name: "secondaryButton" }, index.h("sl-button", { type: "text", disabled: states.loading, onClick: () => index_module.mn.push("/login") }, this.loginLabel))),
|
|
8901
8932
|
emailLabel: this.emailLabel,
|
|
8902
8933
|
passwordLabel: this.passwordLabel,
|
|
8903
8934
|
submitLabel: this.submitLabel,
|
|
@@ -8932,10 +8963,10 @@ const debug = _extends.browser('sq:useProgramMenu');
|
|
|
8932
8963
|
const UPDATE_PROGRAM_EVENT = 'sq:update-program-id';
|
|
8933
8964
|
function useProgramMenu(props) {
|
|
8934
8965
|
const programId = index_module.M();
|
|
8935
|
-
const host = index_module.
|
|
8966
|
+
const host = index_module.S();
|
|
8936
8967
|
debug({ programId, props });
|
|
8937
8968
|
const ref = _extends.useRef();
|
|
8938
|
-
const [, rerender] = index_module.
|
|
8969
|
+
const [, rerender] = index_module.sn();
|
|
8939
8970
|
_extends.useEffect(() => {
|
|
8940
8971
|
var _a;
|
|
8941
8972
|
(_a = ref.current) === null || _a === void 0 ? void 0 : _a.addEventListener('sl-select', (e) => {
|
|
@@ -8984,8 +9015,8 @@ const GET_USER_DETAILS = index_module.dist.gql `
|
|
|
8984
9015
|
function useReferralIframe(props) {
|
|
8985
9016
|
var _a;
|
|
8986
9017
|
const programId = index_module.M();
|
|
8987
|
-
const user = index_module.
|
|
8988
|
-
const { data } = index_module.
|
|
9018
|
+
const user = index_module.ne();
|
|
9019
|
+
const { data } = index_module.cn(GET_USER_DETAILS, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt) || !programId);
|
|
8989
9020
|
return {
|
|
8990
9021
|
states: {
|
|
8991
9022
|
content: props,
|
|
@@ -9049,7 +9080,7 @@ const styleString$5 = sheet$5.toString();
|
|
|
9049
9080
|
function RequiredPropsError({ missingProps }) {
|
|
9050
9081
|
if (!missingProps)
|
|
9051
9082
|
return false;
|
|
9052
|
-
const host = index_module.
|
|
9083
|
+
const host = index_module.S();
|
|
9053
9084
|
const [detailsOpen, setDetailsOpen] = _extends.useState(false);
|
|
9054
9085
|
return (index.h("sl-alert", { type: "danger", open: true, class: sheet$5.classes.Alert },
|
|
9055
9086
|
index.h("style", { type: "text/css" }, styleString$5),
|
|
@@ -9166,7 +9197,7 @@ function ReferralTableView(props) {
|
|
|
9166
9197
|
}
|
|
9167
9198
|
|
|
9168
9199
|
function useChildElements() {
|
|
9169
|
-
const host = index_module.
|
|
9200
|
+
const host = index_module.S();
|
|
9170
9201
|
const initialState = host.children.length ? Array.from(host.children) : [];
|
|
9171
9202
|
const [childElements, setChildElements] = _extends.useState(initialState);
|
|
9172
9203
|
_extends.useEffect(() => {
|
|
@@ -9339,7 +9370,7 @@ const GET_REFERRAL_DATA = sqmLeaderboardRankView.gql `
|
|
|
9339
9370
|
`;
|
|
9340
9371
|
function useReferralTable(props, emptyElement, loadingElement) {
|
|
9341
9372
|
var _a, _b;
|
|
9342
|
-
const user = index_module.
|
|
9373
|
+
const user = index_module.ne();
|
|
9343
9374
|
const programIdContext = index_module.M();
|
|
9344
9375
|
// Default to context, overriden by props
|
|
9345
9376
|
const programId = (_a = props.programId) !== null && _a !== void 0 ? _a : programIdContext;
|
|
@@ -9362,13 +9393,13 @@ function useReferralTable(props, emptyElement, loadingElement) {
|
|
|
9362
9393
|
loading: false,
|
|
9363
9394
|
page: 0,
|
|
9364
9395
|
});
|
|
9365
|
-
const { data: referrerResponse, loading: referrerLoading, refetch, } = index_module.
|
|
9396
|
+
const { data: referrerResponse, loading: referrerLoading, refetch, } = index_module.cn(GET_REFERRER_DATA, {
|
|
9366
9397
|
programId: programId === "classic" ? null : programId,
|
|
9367
9398
|
rewardFilter,
|
|
9368
9399
|
}, !props.showReferrer || !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
9369
9400
|
const referrerData = (_b = referrerResponse === null || referrerResponse === void 0 ? void 0 : referrerResponse.viewer) === null || _b === void 0 ? void 0 : _b.referredByReferral;
|
|
9370
9401
|
const showReferrerRow = props.showReferrer && !!(referrerData === null || referrerData === void 0 ? void 0 : referrerData.dateReferralStarted);
|
|
9371
|
-
const { envelope: referralData, states, callbacks, } = index_module.
|
|
9402
|
+
const { envelope: referralData, states, callbacks, } = index_module.pn(GET_REFERRAL_DATA, (data) => { var _a; return (_a = data === null || data === void 0 ? void 0 : data.viewer) === null || _a === void 0 ? void 0 : _a.referrals; }, {
|
|
9372
9403
|
limit: props.perPage,
|
|
9373
9404
|
offset: 0,
|
|
9374
9405
|
}, {
|
|
@@ -18038,6 +18069,7 @@ const ReferralTableUserCell = class {
|
|
|
18038
18069
|
}
|
|
18039
18070
|
};
|
|
18040
18071
|
|
|
18072
|
+
// TODO: add rewardInput once it works
|
|
18041
18073
|
const GET_EXCHANGE_LIST = index_module.dist.gql `
|
|
18042
18074
|
query getExchangeList {
|
|
18043
18075
|
viewer {
|
|
@@ -18073,6 +18105,7 @@ const GET_EXCHANGE_LIST = index_module.dist.gql `
|
|
|
18073
18105
|
available
|
|
18074
18106
|
globalRewardKey
|
|
18075
18107
|
unavailableReasonCode
|
|
18108
|
+
rewardInput
|
|
18076
18109
|
}
|
|
18077
18110
|
}
|
|
18078
18111
|
totalCount
|
|
@@ -18103,10 +18136,11 @@ function useRewardExchangeList(props) {
|
|
|
18103
18136
|
amount: 0,
|
|
18104
18137
|
exchangeError: false,
|
|
18105
18138
|
});
|
|
18139
|
+
const [open, setOpen] = _extends.useState(false);
|
|
18106
18140
|
const { selectedItem, selectedStep, redeemStage, amount, exchangeError } = exchangeState;
|
|
18107
|
-
const user = index_module.
|
|
18108
|
-
const [exchange, { data: exchangeResponse, errors }] = index_module.
|
|
18109
|
-
const { data, loading, refetch } = index_module.
|
|
18141
|
+
const user = index_module.ne();
|
|
18142
|
+
const [exchange, { data: exchangeResponse, loading: exchangeLoading, errors },] = index_module.De(EXCHANGE);
|
|
18143
|
+
const { data, loading, refetch, errors: queryError, } = index_module.cn(GET_EXCHANGE_LIST, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
18110
18144
|
_extends.useEffect(() => {
|
|
18111
18145
|
var _a, _b;
|
|
18112
18146
|
if ((_b = (_a = exchangeResponse === null || exchangeResponse === void 0 ? void 0 : exchangeResponse.exchangeReward) === null || _a === void 0 ? void 0 : _a.reward) === null || _b === void 0 ? void 0 : _b.id) {
|
|
@@ -18152,9 +18186,7 @@ function useRewardExchangeList(props) {
|
|
|
18152
18186
|
unit: selectedItem.sourceUnit,
|
|
18153
18187
|
},
|
|
18154
18188
|
globalRewardKey: selectedItem.globalRewardKey,
|
|
18155
|
-
rewardInput:
|
|
18156
|
-
valueInCents: selectedStep.destinationValue,
|
|
18157
|
-
},
|
|
18189
|
+
rewardInput: selectedStep.rewardInput,
|
|
18158
18190
|
};
|
|
18159
18191
|
break;
|
|
18160
18192
|
case "VARIABLE_CREDIT_REWARD":
|
|
@@ -18174,11 +18206,7 @@ function useRewardExchangeList(props) {
|
|
|
18174
18206
|
default:
|
|
18175
18207
|
exchangeVariables = {
|
|
18176
18208
|
...exchangeVariables,
|
|
18177
|
-
|
|
18178
|
-
amount: selectedItem.sourceValue,
|
|
18179
|
-
unit: selectedItem.sourceUnit,
|
|
18180
|
-
},
|
|
18181
|
-
globalRewardKey: selectedItem.globalRewardKey,
|
|
18209
|
+
...selectedStep.rewardInput,
|
|
18182
18210
|
};
|
|
18183
18211
|
}
|
|
18184
18212
|
exchange({ exchangeRewardInput: exchangeVariables });
|
|
@@ -18196,6 +18224,14 @@ function useRewardExchangeList(props) {
|
|
|
18196
18224
|
function setStage(stage) {
|
|
18197
18225
|
setExchangeState({ redeemStage: stage });
|
|
18198
18226
|
}
|
|
18227
|
+
function copyFuelTankCode() {
|
|
18228
|
+
var _a, _b;
|
|
18229
|
+
// Should well supported: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
|
|
18230
|
+
// Only if called from a user-initiated event
|
|
18231
|
+
navigator.clipboard.writeText((_b = (_a = exchangeResponse === null || exchangeResponse === void 0 ? void 0 : exchangeResponse.exchangeReward) === null || _a === void 0 ? void 0 : _a.reward) === null || _b === void 0 ? void 0 : _b.fuelTankCode);
|
|
18232
|
+
setOpen(true);
|
|
18233
|
+
setTimeout(() => setOpen(false), 1000);
|
|
18234
|
+
}
|
|
18199
18235
|
return {
|
|
18200
18236
|
states: {
|
|
18201
18237
|
content: {
|
|
@@ -18206,7 +18242,9 @@ function useRewardExchangeList(props) {
|
|
|
18206
18242
|
amount,
|
|
18207
18243
|
selectedStep,
|
|
18208
18244
|
exchangeError,
|
|
18209
|
-
|
|
18245
|
+
queryError: !!queryError,
|
|
18246
|
+
loading: loading || exchangeLoading,
|
|
18247
|
+
open,
|
|
18210
18248
|
},
|
|
18211
18249
|
data: {
|
|
18212
18250
|
exchangeList: (_b = (_a = data === null || data === void 0 ? void 0 : data.viewer) === null || _a === void 0 ? void 0 : _a.visibleRewardExchangeItems) === null || _b === void 0 ? void 0 : _b.data,
|
|
@@ -18217,6 +18255,7 @@ function useRewardExchangeList(props) {
|
|
|
18217
18255
|
setExchangeState,
|
|
18218
18256
|
setStage,
|
|
18219
18257
|
resetState,
|
|
18258
|
+
copyFuelTankCode,
|
|
18220
18259
|
},
|
|
18221
18260
|
};
|
|
18222
18261
|
}
|
|
@@ -18225,6 +18264,9 @@ const ExchangeArrows = () => (index.h("svg", { width: 19, height: 15, fill: "non
|
|
|
18225
18264
|
index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M5.125 14.783a.6.6 0 0 1-.851 0l-3.9-3.923a.6.6 0 1 1 .85-.846L4.1 12.905V1.52a.6.6 0 0 1 1.2 0v11.385l2.875-2.891a.6.6 0 1 1 .85.846l-3.9 3.923Zm9.6-13.686a.6.6 0 0 0-.851 0l-3.9 3.923a.6.6 0 0 0 .85.846L13.7 2.975V14.36a.6.6 0 1 0 1.2 0V2.975l2.875 2.891a.6.6 0 1 0 .85-.846l-3.9-3.923Z", fill: "#333" })));
|
|
18226
18265
|
const CheckMark = () => (index.h("svg", { width: 12, height: 10, fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
18227
18266
|
index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M11.58.23c.475.371.56 1.057.19 1.532L5.69 9.554a1.091 1.091 0 0 1-1.631.1L.32 5.915a1.09 1.09 0 1 1 1.542-1.542L4.73 7.239 10.049.42A1.09 1.09 0 0 1 11.58.23Z", fill: "#fff" })));
|
|
18267
|
+
const CheckmarkFilled = () => (index.h("svg", { width: "18", height: "18", viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
18268
|
+
index.h("path", { d: "M0 9C0 4.02944 4.02944 0 9 0C13.9706 0 18 4.02944 18 9C18 13.9706 13.9706 18 9 18C4.02944 18 0 13.9706 0 9Z", fill: "currentColor" }),
|
|
18269
|
+
index.h("path", { d: "M5.68394 8.77046C5.28103 8.39273 4.64819 8.41315 4.27046 8.81606C3.89273 9.21897 3.91315 9.85181 4.31606 10.2295L5.68394 8.77046ZM7.66667 12L6.98273 12.7295C7.36738 13.0902 7.96595 13.0902 8.35061 12.7295L7.66667 12ZM13.6839 7.72954C14.0869 7.35181 14.1073 6.71897 13.7295 6.31606C13.3518 5.91315 12.719 5.89273 12.3161 6.27046L13.6839 7.72954ZM4.31606 10.2295L6.98273 12.7295L8.35061 11.2705L5.68394 8.77046L4.31606 10.2295ZM8.35061 12.7295L13.6839 7.72954L12.3161 6.27046L6.98273 11.2705L8.35061 12.7295Z", fill: "white" })));
|
|
18228
18270
|
const Gift = () => (index.h("svg", { width: 156, height: 157, fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
18229
18271
|
index.h("path", { d: "M40.18 126h83.663a3 3 0 0 0 3-3V73.966a3 3 0 0 0-3-3H40.18a3 3 0 0 0-3 3V123a3 3 0 0 0 3 3Z", fill: "#FFD34F" }),
|
|
18230
18272
|
index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M37.18 73.862v7.966h89.663v-7.966H37.18Z", fill: "#E9BB30" }),
|
|
@@ -18307,12 +18349,14 @@ function ProgressBar({ stageCount, currentStage, }) {
|
|
|
18307
18349
|
}
|
|
18308
18350
|
|
|
18309
18351
|
const stageList = ["chooseReward", "chooseAmount", "confirmation", "success"];
|
|
18310
|
-
const stageProgressList = {
|
|
18311
|
-
chooseReward: "Choose reward",
|
|
18312
|
-
chooseAmount: "Amount",
|
|
18313
|
-
confirmation: "Confirm",
|
|
18314
|
-
};
|
|
18315
18352
|
function RewardExchangeView(props) {
|
|
18353
|
+
const { states, data, callbacks } = props;
|
|
18354
|
+
const { selectedItem, selectedStep } = states;
|
|
18355
|
+
const stageProgressList = {
|
|
18356
|
+
chooseReward: states.content.text.chooseRewardTitle,
|
|
18357
|
+
chooseAmount: states.content.text.chooseAmountTitle,
|
|
18358
|
+
confirmation: states.content.text.confirmationTitle,
|
|
18359
|
+
};
|
|
18316
18360
|
const style = {
|
|
18317
18361
|
HostBlock: mixins.HostBlock,
|
|
18318
18362
|
Container: {
|
|
@@ -18376,17 +18420,6 @@ function RewardExchangeView(props) {
|
|
|
18376
18420
|
color: "var(--sl-color-primary-500)",
|
|
18377
18421
|
},
|
|
18378
18422
|
},
|
|
18379
|
-
Buttons: {
|
|
18380
|
-
marginLeft: "auto",
|
|
18381
|
-
width: "100%",
|
|
18382
|
-
maxWidth: "300px",
|
|
18383
|
-
},
|
|
18384
|
-
Button: {
|
|
18385
|
-
margin: "10px 0",
|
|
18386
|
-
display: "block",
|
|
18387
|
-
textAlign: "center",
|
|
18388
|
-
cursor: "pointer",
|
|
18389
|
-
},
|
|
18390
18423
|
ProgressBar: {
|
|
18391
18424
|
maxWidth: "350px",
|
|
18392
18425
|
width: "100%",
|
|
@@ -18408,7 +18441,13 @@ function RewardExchangeView(props) {
|
|
|
18408
18441
|
},
|
|
18409
18442
|
},
|
|
18410
18443
|
},
|
|
18411
|
-
|
|
18444
|
+
CardLayout: {
|
|
18445
|
+
display: "flex",
|
|
18446
|
+
width: "100%",
|
|
18447
|
+
borderRadius: "3px",
|
|
18448
|
+
background: "rgba(0, 0, 0, 0)",
|
|
18449
|
+
},
|
|
18450
|
+
Card: {
|
|
18412
18451
|
display: "flex",
|
|
18413
18452
|
userSelect: "none",
|
|
18414
18453
|
height: "120px",
|
|
@@ -18420,21 +18459,12 @@ function RewardExchangeView(props) {
|
|
|
18420
18459
|
display: "flex",
|
|
18421
18460
|
padding: 0,
|
|
18422
18461
|
},
|
|
18423
|
-
"& .selected
|
|
18424
|
-
width: "18px",
|
|
18425
|
-
height: "18px",
|
|
18426
|
-
minWidth: "18px",
|
|
18427
|
-
borderRadius: "50%",
|
|
18428
|
-
background: "var(--sl-color-primary-500)",
|
|
18462
|
+
"& .selected": {
|
|
18429
18463
|
position: "relative",
|
|
18430
|
-
|
|
18464
|
+
top: "-2%",
|
|
18431
18465
|
left: "100%",
|
|
18432
|
-
|
|
18433
|
-
|
|
18434
|
-
position: "relative",
|
|
18435
|
-
left: "12%",
|
|
18436
|
-
top: "-29%",
|
|
18437
|
-
transform: "scale(0.8)",
|
|
18466
|
+
color: "var(--sl-color-primary-500)",
|
|
18467
|
+
margin: "-9px",
|
|
18438
18468
|
},
|
|
18439
18469
|
},
|
|
18440
18470
|
Square: {
|
|
@@ -18453,14 +18483,18 @@ function RewardExchangeView(props) {
|
|
|
18453
18483
|
},
|
|
18454
18484
|
},
|
|
18455
18485
|
Image: {
|
|
18486
|
+
padding: "8px",
|
|
18487
|
+
minWidth: "96px",
|
|
18488
|
+
maxWidth: "96px",
|
|
18456
18489
|
"& .image": {
|
|
18490
|
+
width: "100%",
|
|
18491
|
+
height: "100%",
|
|
18457
18492
|
objectFit: "contain",
|
|
18458
|
-
|
|
18459
|
-
height: "118px",
|
|
18460
|
-
flex: 0.33,
|
|
18493
|
+
borderRadius: "4px",
|
|
18461
18494
|
},
|
|
18462
|
-
"& .image.
|
|
18463
|
-
filter: "brightness(
|
|
18495
|
+
"& .image.subdued": {
|
|
18496
|
+
filter: "brightness(0.95)",
|
|
18497
|
+
opacity: "0.5",
|
|
18464
18498
|
},
|
|
18465
18499
|
},
|
|
18466
18500
|
TextArea: {
|
|
@@ -18471,12 +18505,20 @@ function RewardExchangeView(props) {
|
|
|
18471
18505
|
lineHeight: "20px",
|
|
18472
18506
|
fontWeight: "600",
|
|
18473
18507
|
color: "var(--sl-color-neutral-1000)",
|
|
18508
|
+
display: "-webkit-box",
|
|
18509
|
+
"-webkit-line-clamp": "1",
|
|
18510
|
+
"-webkit-box-orient": "vertical",
|
|
18511
|
+
overflow: "hidden",
|
|
18474
18512
|
},
|
|
18475
18513
|
"& .amount": {
|
|
18476
18514
|
fontSize: "14px",
|
|
18477
18515
|
lineHeight: "18px",
|
|
18478
18516
|
marginTop: "8px",
|
|
18479
18517
|
color: "var(--sl-color-neutral-500)",
|
|
18518
|
+
display: "-webkit-box",
|
|
18519
|
+
"-webkit-line-clamp": "1",
|
|
18520
|
+
"-webkit-box-orient": "vertical",
|
|
18521
|
+
overflow: "hidden",
|
|
18480
18522
|
},
|
|
18481
18523
|
"& .error": {
|
|
18482
18524
|
fontSize: "14px",
|
|
@@ -18484,6 +18526,10 @@ function RewardExchangeView(props) {
|
|
|
18484
18526
|
marginTop: "8px",
|
|
18485
18527
|
fontWeight: "600",
|
|
18486
18528
|
color: "var(--sl-color-warning-500)",
|
|
18529
|
+
display: "-webkit-box",
|
|
18530
|
+
"-webkit-line-clamp": "1",
|
|
18531
|
+
"-webkit-box-orient": "vertical",
|
|
18532
|
+
overflow: "hidden",
|
|
18487
18533
|
},
|
|
18488
18534
|
},
|
|
18489
18535
|
ChooseAmount: {
|
|
@@ -18498,7 +18544,7 @@ function RewardExchangeView(props) {
|
|
|
18498
18544
|
//fontSize: "var(--sl-font-size-large)",
|
|
18499
18545
|
fontSize: "113%",
|
|
18500
18546
|
fontWeight: "var(--sl-font-weight-semibold)",
|
|
18501
|
-
color: "var(--sl-color-
|
|
18547
|
+
color: "var(--sl-color-primary-500)",
|
|
18502
18548
|
},
|
|
18503
18549
|
"& .description": {
|
|
18504
18550
|
fontSize: "var(--sl-font-size-medium)",
|
|
@@ -18535,7 +18581,7 @@ function RewardExchangeView(props) {
|
|
|
18535
18581
|
gap: "20px",
|
|
18536
18582
|
gridTemplateColumns: "repeat(auto-fill, minmax(300px, 1fr))",
|
|
18537
18583
|
},
|
|
18538
|
-
|
|
18584
|
+
Button: {
|
|
18539
18585
|
display: "flex",
|
|
18540
18586
|
flexWrap: "wrap-reverse",
|
|
18541
18587
|
margin: "var(--sl-spacing-medium) 0",
|
|
@@ -18574,18 +18620,18 @@ function RewardExchangeView(props) {
|
|
|
18574
18620
|
jssPresetDefault_esm.jss.setup(jssPresetDefault_esm.create());
|
|
18575
18621
|
const sheet = jssPresetDefault_esm.jss.createStyleSheet(style);
|
|
18576
18622
|
const styleString = sheet.toString();
|
|
18577
|
-
const { states, data, callbacks } = props;
|
|
18578
|
-
const { selectedItem, selectedStep } = states;
|
|
18579
18623
|
function getInput() {
|
|
18580
18624
|
var _a, _b;
|
|
18581
18625
|
const item = states.selectedItem;
|
|
18582
18626
|
if (!item || (item === null || item === void 0 ? void 0 : item.ruleType) === "FIXED_GLOBAL_REWARD")
|
|
18583
18627
|
return index.h("span", null, item === null || item === void 0 ? void 0 : item.prettySourceValue);
|
|
18584
18628
|
if (!((_a = item.steps) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
18585
|
-
return index.h("p", null,
|
|
18586
|
-
|
|
18587
|
-
|
|
18588
|
-
|
|
18629
|
+
return (index.h("p", null, global.intl.formatMessage({
|
|
18630
|
+
id: "notEnoughError",
|
|
18631
|
+
defaultMessage: states.content.text.notEnoughError,
|
|
18632
|
+
}, {
|
|
18633
|
+
sourceUnit: item.sourceUnit,
|
|
18634
|
+
})));
|
|
18589
18635
|
}
|
|
18590
18636
|
return (index.h("sl-select", { style: { width: "auto" }, label: "Select amount to receive", class: sheet.classes.Select, value: states.selectedStep, "onSl-select": (e) => {
|
|
18591
18637
|
var _a, _b, _c, _d, _e;
|
|
@@ -18604,6 +18650,8 @@ function RewardExchangeView(props) {
|
|
|
18604
18650
|
defaultMessage: (_b = (_a = states.content) === null || _a === void 0 ? void 0 : _a.text) === null || _b === void 0 ? void 0 : _b.notAvailableError,
|
|
18605
18651
|
}, {
|
|
18606
18652
|
unavailableReason: step.unavailableReasonCode,
|
|
18653
|
+
sourceUnit: item.sourceUnit,
|
|
18654
|
+
sourceValue: step.prettySourceValue || item.prettySourceMinValue,
|
|
18607
18655
|
}))))));
|
|
18608
18656
|
})));
|
|
18609
18657
|
}
|
|
@@ -18611,57 +18659,71 @@ function RewardExchangeView(props) {
|
|
|
18611
18659
|
var _a;
|
|
18612
18660
|
return [
|
|
18613
18661
|
index.h("div", { class: sheet.classes.Grid }, (_a = data.exchangeList) === null || _a === void 0 ? void 0 : _a.map((item) => {
|
|
18614
|
-
var _a, _b;
|
|
18662
|
+
var _a, _b, _c, _d, _e;
|
|
18615
18663
|
const style = {
|
|
18616
18664
|
boxShadow: item.key === (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.key)
|
|
18617
18665
|
? "0 0 0 2px var(--sl-color-primary-500)"
|
|
18618
18666
|
: "none",
|
|
18667
|
+
borderRadius: "4px",
|
|
18619
18668
|
};
|
|
18620
18669
|
const amount = item.ruleType === "FIXED_GLOBAL_REWARD"
|
|
18621
18670
|
? item.prettySourceValue
|
|
18622
|
-
: item.
|
|
18623
|
-
? `${item.
|
|
18624
|
-
:
|
|
18671
|
+
: item.ruleType === "STEPPED_FIXED_GLOBAL_REWARD"
|
|
18672
|
+
? `${(_a = item.steps[0]) === null || _a === void 0 ? void 0 : _a.sourceValue} to ${(_b = item.steps.slice(-1).pop()) === null || _b === void 0 ? void 0 : _b.prettySourceValue}`
|
|
18673
|
+
: `${item.prettySourceMinValue} to ${item.prettySourceMaxValue}`;
|
|
18625
18674
|
return (index.h("div", { key: item.key, class: item.available ? sheet.classes.CardContainer : "", style: style },
|
|
18626
|
-
index.h("sl-card", { class: sheet.classes.
|
|
18675
|
+
index.h("sl-card", { class: sheet.classes.Card, style: {
|
|
18627
18676
|
cursor: item.unavailableReasonCode
|
|
18628
18677
|
? "not-allowed"
|
|
18629
18678
|
: "pointer",
|
|
18630
18679
|
}, onClick: () => item.available &&
|
|
18631
18680
|
callbacks.setExchangeState({ selectedItem: item }) },
|
|
18632
|
-
item.key === (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.key) && (index.h("div", { class: "selected
|
|
18633
|
-
index.h(
|
|
18634
|
-
index.h(CheckMark, null)))),
|
|
18681
|
+
item.key === (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.key) && (index.h("div", { class: "selected" },
|
|
18682
|
+
index.h(CheckmarkFilled, null))),
|
|
18635
18683
|
index.h("div", { style: {
|
|
18636
18684
|
display: "flex",
|
|
18637
18685
|
width: "100%",
|
|
18686
|
+
height: "120px",
|
|
18638
18687
|
borderRadius: "3px",
|
|
18639
18688
|
background: item.unavailableReasonCode
|
|
18640
18689
|
? "rgba(0, 0, 0, 0.05)"
|
|
18641
18690
|
: "rgba(0, 0, 0, 0)",
|
|
18642
18691
|
} },
|
|
18643
|
-
index.h("div", { class: sheet.classes.
|
|
18692
|
+
index.h("div", { class: sheet.classes.Image, style: {
|
|
18693
|
+
opacity: item.unavailableReasonCode ? "0.5" : "1",
|
|
18694
|
+
} },
|
|
18644
18695
|
index.h("img", { class: item.unavailableReasonCode ? "image subdued" : "image", src: (item === null || item === void 0 ? void 0 : item.imageUrl) ||
|
|
18645
18696
|
index.getAssetPath("./assets/placeholder.png") })),
|
|
18646
18697
|
index.h("div", { class: sheet.classes.TextArea, style: {
|
|
18647
18698
|
opacity: item.unavailableReasonCode ? "0.5" : "1",
|
|
18648
18699
|
} },
|
|
18649
|
-
index.h("div", { class: "title"
|
|
18650
|
-
|
|
18700
|
+
index.h("div", { class: "title", style: {
|
|
18701
|
+
"-webkit-line-clamp": item.unavailableReasonCode
|
|
18702
|
+
? "1"
|
|
18703
|
+
: "2",
|
|
18704
|
+
} }, (_c = item.name) !== null && _c !== void 0 ? _c : ""),
|
|
18705
|
+
index.h("div", { class: "amount", style: {
|
|
18706
|
+
"-webkit-line-clamp": item.unavailableReasonCode
|
|
18707
|
+
? "1"
|
|
18708
|
+
: "2",
|
|
18709
|
+
} }, amount),
|
|
18651
18710
|
item.unavailableReasonCode && (index.h("div", { class: "error" }, global.intl.formatMessage({
|
|
18652
18711
|
id: "unavailableCode",
|
|
18653
|
-
defaultMessage: (
|
|
18712
|
+
defaultMessage: (_e = (_d = states.content) === null || _d === void 0 ? void 0 : _d.text) === null || _e === void 0 ? void 0 : _e.notAvailableError,
|
|
18654
18713
|
}, {
|
|
18655
18714
|
unavailableReason: item.unavailableReason ||
|
|
18656
18715
|
item.unavailableReasonCode,
|
|
18716
|
+
sourceUnit: item.sourceUnit,
|
|
18717
|
+
sourceValue: item.prettySourceValue ||
|
|
18718
|
+
item.prettySourceMinValue,
|
|
18657
18719
|
}))))))));
|
|
18658
18720
|
})),
|
|
18659
|
-
index.h("div", { class: sheet.classes.
|
|
18660
|
-
index.h("sl-button", { class: "continue right", size: "large", onClick: () => callbacks.setStage("chooseAmount"), disabled: !states.selectedItem },
|
|
18721
|
+
index.h("div", { class: sheet.classes.Button },
|
|
18722
|
+
index.h("sl-button", { class: "continue right", size: "large", onClick: () => callbacks.setStage("chooseAmount"), loading: states.loading, disabled: !states.selectedItem }, states.content.text.continueText)),
|
|
18661
18723
|
];
|
|
18662
18724
|
}
|
|
18663
18725
|
function chooseAmount() {
|
|
18664
|
-
var _a, _b, _c;
|
|
18726
|
+
var _a, _b, _c, _d;
|
|
18665
18727
|
const input = getInput();
|
|
18666
18728
|
const isDisabled = ((_a = states.selectedItem) === null || _a === void 0 ? void 0 : _a.ruleType) === "FIXED_GLOBAL_REWARD"
|
|
18667
18729
|
? false
|
|
@@ -18670,17 +18732,18 @@ function RewardExchangeView(props) {
|
|
|
18670
18732
|
index.h("div", null, index.h("img", { class: sheet.classes.FullImage, src: (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.imageUrl) ||
|
|
18671
18733
|
index.getAssetPath("./assets/placeholder.png") })),
|
|
18672
18734
|
index.h("div", { class: sheet.classes.ChooseAmount },
|
|
18673
|
-
index.h("div", { class: "title" }, (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.name)
|
|
18674
|
-
((
|
|
18675
|
-
((
|
|
18735
|
+
index.h("div", { class: "title" }, (_b = selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.name) !== null && _b !== void 0 ? _b : ""),
|
|
18736
|
+
((_c = states.selectedItem) === null || _c === void 0 ? void 0 : _c.ruleType) === "FIXED_GLOBAL_REWARD" ? (index.h("div", { class: "points" }, input)) : (index.h("div", { class: "description" }, selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.description)),
|
|
18737
|
+
((_d = states.selectedItem) === null || _d === void 0 ? void 0 : _d.ruleType) === "FIXED_GLOBAL_REWARD" ? (index.h("div", { class: "description" }, selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.description)) : (index.h("div", { class: "points" }, input)),
|
|
18676
18738
|
index.h("div", { class: "space" })),
|
|
18677
|
-
index.h("div", { class: sheet.classes.
|
|
18678
|
-
index.h("sl-button", { class: "cancel", size: "large", type: "text", onClick: () => callbacks.resetState() },
|
|
18679
|
-
index.h("sl-button", { class: "continue", size: "large", onClick: () => callbacks.setStage("confirmation"), disabled: isDisabled },
|
|
18739
|
+
index.h("div", { class: sheet.classes.Button },
|
|
18740
|
+
index.h("sl-button", { class: "cancel", size: "large", type: "text", onClick: () => callbacks.resetState() }, states.content.text.cancelText),
|
|
18741
|
+
index.h("sl-button", { class: "continue", size: "large", onClick: () => callbacks.setStage("confirmation"), disabled: isDisabled }, states.content.text.continueToConfirmationText))));
|
|
18680
18742
|
}
|
|
18681
18743
|
function confirmation() {
|
|
18744
|
+
var _a, _b;
|
|
18682
18745
|
return (index.h("div", null,
|
|
18683
|
-
index.h("h2", { style: { margin: "20px 0" } },
|
|
18746
|
+
index.h("h2", { style: { margin: "20px 0" } }, states.content.text.redeemTitle),
|
|
18684
18747
|
index.h("div", { style: {
|
|
18685
18748
|
textAlign: "center",
|
|
18686
18749
|
marginBottom: "var(--sl-spacing-xxx-large)",
|
|
@@ -18695,27 +18758,39 @@ function RewardExchangeView(props) {
|
|
|
18695
18758
|
flex: "1",
|
|
18696
18759
|
minWidth: "100%",
|
|
18697
18760
|
} },
|
|
18698
|
-
index.h("sl-card", { style: { width: "auto", maxWidth: "350px", margin: "auto" }, class: sheet.classes.
|
|
18761
|
+
index.h("sl-card", { style: { width: "auto", maxWidth: "350px", margin: "auto" }, class: sheet.classes.Card },
|
|
18699
18762
|
index.h("div", { class: sheet.classes.Square },
|
|
18700
18763
|
index.h("img", { class: "image", src: (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.imageUrl) ||
|
|
18701
18764
|
index.getAssetPath("./assets/placeholder.png") })),
|
|
18702
18765
|
index.h("div", { class: sheet.classes.TextArea, style: {
|
|
18703
18766
|
lineHeight: "18px",
|
|
18704
18767
|
alignSelf: "center",
|
|
18705
|
-
} }, (selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettyDestinationValue) ? (selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettyDestinationValue) +
|
|
18706
|
-
" " + (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.name) || ""
|
|
18707
|
-
|
|
18708
|
-
|
|
18709
|
-
index.h("sl-button", { class: "
|
|
18710
|
-
index.h("sl-button", { class: "continue", size: "large", onClick: callbacks.exchangeReward }, "Redeem"))));
|
|
18768
|
+
} }, (selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettyDestinationValue) ? (_a = (selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettyDestinationValue) +
|
|
18769
|
+
" " + (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.name)) !== null && _a !== void 0 ? _a : "" : (_b = selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.name) !== null && _b !== void 0 ? _b : "")))),
|
|
18770
|
+
index.h("div", { class: sheet.classes.Button },
|
|
18771
|
+
index.h("sl-button", { class: "cancel", type: "text", size: "large", onClick: () => callbacks.setStage("chooseAmount") }, states.content.text.backText),
|
|
18772
|
+
index.h("sl-button", { class: "continue", size: "large", loading: states.loading, onClick: callbacks.exchangeReward }, states.content.text.redeemText))));
|
|
18711
18773
|
}
|
|
18712
18774
|
function success() {
|
|
18775
|
+
var _a, _b, _c;
|
|
18713
18776
|
return (index.h("div", { class: sheet.classes.Success },
|
|
18714
18777
|
index.h(Gift, null),
|
|
18715
|
-
index.h("div", { class: "title" },
|
|
18716
|
-
index.h("div", { class: "description" },
|
|
18717
|
-
|
|
18718
|
-
|
|
18778
|
+
index.h("div", { class: "title" }, states.content.text.rewardRedeemedText),
|
|
18779
|
+
index.h("div", { class: "description" }, global.intl.formatMessage({
|
|
18780
|
+
id: "successMessage",
|
|
18781
|
+
defaultMessage: states.content.text.redemptionSuccessText,
|
|
18782
|
+
}, {
|
|
18783
|
+
sourceValue: (_a = states.selectedItem.prettySourceValue) !== null && _a !== void 0 ? _a : (_b = states.selectedStep) === null || _b === void 0 ? void 0 : _b.prettySourceValue,
|
|
18784
|
+
destinationValue: ((_c = states.selectedStep) === null || _c === void 0 ? void 0 : _c.prettyDestinationValue) ||
|
|
18785
|
+
states.selectedItem.globalRewardKey,
|
|
18786
|
+
})),
|
|
18787
|
+
(data === null || data === void 0 ? void 0 : data.fuelTankCode) && (index.h("div", { style: {
|
|
18788
|
+
width: "40%",
|
|
18789
|
+
margin: "-30px auto var(--sl-spacing-xxx-large) auto",
|
|
18790
|
+
} },
|
|
18791
|
+
index.h(sqmShareLinkView.ShareLinkView, { shareString: data.fuelTankCode, tooltiptext: "Copied", open: states.open, onClick: callbacks.copyFuelTankCode }))),
|
|
18792
|
+
index.h("div", { class: sheet.classes.Button },
|
|
18793
|
+
index.h("sl-button", { class: "continue center", type: "primary", size: "large", onClick: () => callbacks.resetState(true) }, states.content.text.doneText))));
|
|
18719
18794
|
}
|
|
18720
18795
|
const stages = {
|
|
18721
18796
|
chooseReward: () => chooseReward(),
|
|
@@ -18738,26 +18813,40 @@ function RewardExchangeView(props) {
|
|
|
18738
18813
|
index.h(ProgressBar, { stageCount: 3, currentStage: stageNumber })));
|
|
18739
18814
|
}
|
|
18740
18815
|
function loading() {
|
|
18741
|
-
return (index.h("div", {
|
|
18742
|
-
|
|
18743
|
-
|
|
18744
|
-
|
|
18745
|
-
|
|
18746
|
-
|
|
18747
|
-
|
|
18748
|
-
|
|
18816
|
+
return (index.h("div", { class: sheet.classes.Grid }, [...Array(8)].map(() => {
|
|
18817
|
+
return (index.h("div", { class: sheet.classes.CardContainer },
|
|
18818
|
+
index.h("sl-card", { class: sheet.classes.Card },
|
|
18819
|
+
index.h("div", { class: sheet.classes.CardLayout },
|
|
18820
|
+
index.h("div", null,
|
|
18821
|
+
index.h("sl-skeleton", { style: {
|
|
18822
|
+
width: "100px",
|
|
18823
|
+
height: "100px",
|
|
18824
|
+
margin: "9px",
|
|
18825
|
+
"--border-radius": "4px",
|
|
18826
|
+
} })),
|
|
18827
|
+
index.h("div", { style: { margin: "12px 12px 0 0", width: "100%" } },
|
|
18828
|
+
index.h("sl-skeleton", { style: { marginBottom: "12px" } }),
|
|
18829
|
+
index.h("sl-skeleton", { style: { marginBottom: "12px" } }),
|
|
18830
|
+
index.h("sl-skeleton", { style: { width: "45%" } }))))));
|
|
18831
|
+
})));
|
|
18749
18832
|
}
|
|
18750
18833
|
function errorMessage() {
|
|
18751
18834
|
return (index.h("sl-alert", { type: "danger", open: true },
|
|
18752
18835
|
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
18753
|
-
|
|
18836
|
+
states.content.text.redemptionError));
|
|
18837
|
+
}
|
|
18838
|
+
function queryErrorMessage() {
|
|
18839
|
+
return (index.h("sl-alert", { type: "danger", open: true },
|
|
18840
|
+
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
18841
|
+
states.content.text.queryError));
|
|
18754
18842
|
}
|
|
18755
18843
|
return (index.h("div", { class: sheet.classes.Container },
|
|
18756
18844
|
index.h("style", { type: "text/css" }, styleString),
|
|
18757
18845
|
index.h("div", null,
|
|
18758
18846
|
stageMap(),
|
|
18759
|
-
states.loading && loading(),
|
|
18847
|
+
states.redeemStage === "chooseReward" && states.loading && loading(),
|
|
18760
18848
|
states.exchangeError && errorMessage(),
|
|
18849
|
+
states.queryError && queryErrorMessage(),
|
|
18761
18850
|
currentStage && currentStage())));
|
|
18762
18851
|
}
|
|
18763
18852
|
|
|
@@ -18772,7 +18861,60 @@ const SqmRewardExchangeList = class {
|
|
|
18772
18861
|
/**
|
|
18773
18862
|
* @uiName Exchange button text
|
|
18774
18863
|
*/
|
|
18775
|
-
this.notAvailableError = "{unavailableReason, select, US_TAX {US Tax limit} INSUFFICIENT_REDEEMABLE_CREDIT {
|
|
18864
|
+
this.notAvailableError = "{unavailableReason, select, US_TAX {US Tax limit} INSUFFICIENT_REDEEMABLE_CREDIT {{sourceValue} required} other {Not available} }";
|
|
18865
|
+
/**
|
|
18866
|
+
* @uiName Choose Reward Progress Title
|
|
18867
|
+
*/
|
|
18868
|
+
this.chooseRewardTitle = "Choose reward";
|
|
18869
|
+
/**
|
|
18870
|
+
* @uiName Choose Amount Progress Title
|
|
18871
|
+
*/
|
|
18872
|
+
this.chooseAmountTitle = "Amount";
|
|
18873
|
+
/**
|
|
18874
|
+
* @uiName Confirmation Progress Title
|
|
18875
|
+
*/
|
|
18876
|
+
this.confirmationTitle = "Confirm";
|
|
18877
|
+
/**
|
|
18878
|
+
* @uiName Cancel Button Text
|
|
18879
|
+
*/
|
|
18880
|
+
this.cancelText = "Cancel";
|
|
18881
|
+
/**
|
|
18882
|
+
* @uiName Back Button Text
|
|
18883
|
+
*/
|
|
18884
|
+
this.backText = "Back";
|
|
18885
|
+
/**
|
|
18886
|
+
* @uiName Continue Button Text
|
|
18887
|
+
*/
|
|
18888
|
+
this.continueText = "Continue";
|
|
18889
|
+
/**
|
|
18890
|
+
* @uiName Continue to Confirmation Button Text
|
|
18891
|
+
*/
|
|
18892
|
+
this.continueToConfirmationText = "Continue to confirmation";
|
|
18893
|
+
/**
|
|
18894
|
+
* @uiName Redeem Button Text
|
|
18895
|
+
*/
|
|
18896
|
+
this.redeemText = "Redeem";
|
|
18897
|
+
/**
|
|
18898
|
+
* @uiName Confirmation Title Text
|
|
18899
|
+
*/
|
|
18900
|
+
this.redeemTitle = "Confirm and redeem";
|
|
18901
|
+
this.redemptionSuccessText = "Successfully redeemed {sourceValue} for {destinationValue}";
|
|
18902
|
+
/**
|
|
18903
|
+
* @uiName Done Text
|
|
18904
|
+
*/
|
|
18905
|
+
this.doneText = "Done";
|
|
18906
|
+
/**
|
|
18907
|
+
* @uiName Reward List Error Message
|
|
18908
|
+
*/
|
|
18909
|
+
this.queryError = "Unable to load reward exchange list";
|
|
18910
|
+
/**
|
|
18911
|
+
* @uiName Redemption Error Message
|
|
18912
|
+
*/
|
|
18913
|
+
this.redemptionError = "An error occured trying to redeem this reward. Please try again";
|
|
18914
|
+
/**
|
|
18915
|
+
* @uiName Not Enough Available Error Message
|
|
18916
|
+
*/
|
|
18917
|
+
this.notEnoughError = "Not enough {sourceUnit} to redeem for this reward";
|
|
18776
18918
|
_extends.h$1(this);
|
|
18777
18919
|
}
|
|
18778
18920
|
disconnectedCallback() { }
|
|
@@ -18803,6 +18945,7 @@ function useRewardExchangeListDemo(props) {
|
|
|
18803
18945
|
amount: 0,
|
|
18804
18946
|
selectedStep: undefined,
|
|
18805
18947
|
exchangeError: false,
|
|
18948
|
+
queryError: false,
|
|
18806
18949
|
loading: false,
|
|
18807
18950
|
},
|
|
18808
18951
|
data: {
|
|
@@ -18813,6 +18956,7 @@ function useRewardExchangeListDemo(props) {
|
|
|
18813
18956
|
setExchangeState: (_) => { },
|
|
18814
18957
|
setStage: (_) => { },
|
|
18815
18958
|
resetState: () => { },
|
|
18959
|
+
copyFuelTankCode: () => { },
|
|
18816
18960
|
},
|
|
18817
18961
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
18818
18962
|
}
|
|
@@ -18937,7 +19081,7 @@ const GET_REWARDS = sqmLeaderboardRankView.gql `
|
|
|
18937
19081
|
`;
|
|
18938
19082
|
function useRewardsTable(props, emptyElement, loadingElement) {
|
|
18939
19083
|
var _a, _b;
|
|
18940
|
-
const user = index_module.
|
|
19084
|
+
const user = index_module.ne();
|
|
18941
19085
|
const programIdContext = index_module.M();
|
|
18942
19086
|
// Default to context, overriden by props
|
|
18943
19087
|
const programId = (_a = props.programId) !== null && _a !== void 0 ? _a : programIdContext;
|
|
@@ -18960,7 +19104,7 @@ function useRewardsTable(props, emptyElement, loadingElement) {
|
|
|
18960
19104
|
loading: false,
|
|
18961
19105
|
page: 0,
|
|
18962
19106
|
});
|
|
18963
|
-
const { envelope: rewardsData, states, callbacks, } = index_module.
|
|
19107
|
+
const { envelope: rewardsData, states, callbacks, } = index_module.pn(GET_REWARDS, (data) => { var _a; return (_a = data === null || data === void 0 ? void 0 : data.viewer) === null || _a === void 0 ? void 0 : _a.rewards; }, {
|
|
18964
19108
|
limit: props.perPage,
|
|
18965
19109
|
offset: 0,
|
|
18966
19110
|
}, {
|
|
@@ -19162,8 +19306,8 @@ function matchPath(pattern, page) {
|
|
|
19162
19306
|
return regexp.exec(page);
|
|
19163
19307
|
}
|
|
19164
19308
|
function useRouter() {
|
|
19165
|
-
const location = index_module.
|
|
19166
|
-
const host = index_module.
|
|
19309
|
+
const location = index_module.vn();
|
|
19310
|
+
const host = index_module.S();
|
|
19167
19311
|
const [slot, setSlot] = _extends.useState(undefined);
|
|
19168
19312
|
const [container, setContainer] = _extends.useState(undefined);
|
|
19169
19313
|
const page = location.pathname;
|
|
@@ -19322,14 +19466,14 @@ function useShareButton(props) {
|
|
|
19322
19466
|
var _a, _b;
|
|
19323
19467
|
const { sharetitle, sharetext, medium } = props;
|
|
19324
19468
|
const programId = props.programId ? props.programId : index_module.M();
|
|
19325
|
-
const user = index_module.
|
|
19469
|
+
const user = index_module.ne();
|
|
19326
19470
|
const variables = {
|
|
19327
19471
|
engagementMedium: index_module.x(),
|
|
19328
19472
|
programId: programId,
|
|
19329
19473
|
shareMedium: medium.toUpperCase(),
|
|
19330
19474
|
};
|
|
19331
19475
|
// only queries if a programId is available
|
|
19332
|
-
const res = index_module.
|
|
19476
|
+
const res = index_module.cn(MessageLinkQuery, variables, !(user === null || user === void 0 ? void 0 : user.jwt) || !programId);
|
|
19333
19477
|
const directLink = (_b = (_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.shareLink;
|
|
19334
19478
|
const environment = index_module.D();
|
|
19335
19479
|
const hide = (medium.toLocaleUpperCase() === "SMS" &&
|
|
@@ -19424,10 +19568,10 @@ const WIDGET_ENGAGEMENT_EVENT = index_module.dist.gql `
|
|
|
19424
19568
|
function useShareLink(props) {
|
|
19425
19569
|
var _a, _b;
|
|
19426
19570
|
const { programId = index_module.M() } = props;
|
|
19427
|
-
const user = index_module.
|
|
19571
|
+
const user = index_module.ne();
|
|
19428
19572
|
const engagementMedium = index_module.x();
|
|
19429
|
-
const { data } = index_module.
|
|
19430
|
-
const [sendLoadEvent] = index_module.
|
|
19573
|
+
const { data } = index_module.cn(MessageLinkQuery$1, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
19574
|
+
const [sendLoadEvent] = index_module.De(WIDGET_ENGAGEMENT_EVENT);
|
|
19431
19575
|
const shareString = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.shareLink) !== null && _b !== void 0 ? _b :
|
|
19432
19576
|
// Shown during loading
|
|
19433
19577
|
"...";
|
|
@@ -20959,15 +21103,15 @@ const FullStackIcon = () => {
|
|
|
20959
21103
|
};
|
|
20960
21104
|
|
|
20961
21105
|
const ShareButton$1 = /*#__PURE__*/Object.freeze({
|
|
20962
|
-
|
|
20963
|
-
|
|
20964
|
-
|
|
20965
|
-
|
|
20966
|
-
|
|
20967
|
-
|
|
20968
|
-
|
|
20969
|
-
|
|
20970
|
-
|
|
21106
|
+
__proto__: null,
|
|
21107
|
+
'default': ShareButton_stories,
|
|
21108
|
+
WithIcon: WithIcon,
|
|
21109
|
+
WithIconOverride: WithIconOverride,
|
|
21110
|
+
TextStyle: TextStyle,
|
|
21111
|
+
WithoutIcon: WithoutIcon,
|
|
21112
|
+
WithoutText: WithoutText,
|
|
21113
|
+
TextStyleWithoutIcon: TextStyleWithoutIcon,
|
|
21114
|
+
FullStackIcon: FullStackIcon
|
|
20971
21115
|
});
|
|
20972
21116
|
|
|
20973
21117
|
const ShareLink_stories = {
|
|
@@ -21003,12 +21147,12 @@ const FullStack = () => {
|
|
|
21003
21147
|
};
|
|
21004
21148
|
|
|
21005
21149
|
const ShareLink$1 = /*#__PURE__*/Object.freeze({
|
|
21006
|
-
|
|
21007
|
-
|
|
21008
|
-
|
|
21009
|
-
|
|
21010
|
-
|
|
21011
|
-
|
|
21150
|
+
__proto__: null,
|
|
21151
|
+
'default': ShareLink_stories,
|
|
21152
|
+
Default: Default,
|
|
21153
|
+
Tooltip: Tooltip,
|
|
21154
|
+
Disabled: Disabled,
|
|
21155
|
+
FullStack: FullStack
|
|
21012
21156
|
});
|
|
21013
21157
|
|
|
21014
21158
|
const BigStat_stories = {
|
|
@@ -21076,16 +21220,16 @@ const InvalidStatValue = () => {
|
|
|
21076
21220
|
};
|
|
21077
21221
|
|
|
21078
21222
|
const BigStat = /*#__PURE__*/Object.freeze({
|
|
21079
|
-
|
|
21080
|
-
|
|
21081
|
-
|
|
21082
|
-
|
|
21083
|
-
|
|
21084
|
-
|
|
21085
|
-
|
|
21086
|
-
|
|
21087
|
-
|
|
21088
|
-
|
|
21223
|
+
__proto__: null,
|
|
21224
|
+
'default': BigStat_stories,
|
|
21225
|
+
Default: Default$1,
|
|
21226
|
+
LeftAlign: LeftAlign,
|
|
21227
|
+
RightAlign: RightAlign,
|
|
21228
|
+
FlexReverse: FlexReverse,
|
|
21229
|
+
FlexReverseRight: FlexReverseRight,
|
|
21230
|
+
FlexReverseLeft: FlexReverseLeft,
|
|
21231
|
+
NoStatValue: NoStatValue,
|
|
21232
|
+
InvalidStatValue: InvalidStatValue
|
|
21089
21233
|
});
|
|
21090
21234
|
|
|
21091
21235
|
const Leaderboard_stories = {
|
|
@@ -21188,12 +21332,12 @@ const Five = () => {
|
|
|
21188
21332
|
};
|
|
21189
21333
|
|
|
21190
21334
|
const Leaderboard = /*#__PURE__*/Object.freeze({
|
|
21191
|
-
|
|
21192
|
-
|
|
21193
|
-
|
|
21194
|
-
|
|
21195
|
-
|
|
21196
|
-
|
|
21335
|
+
__proto__: null,
|
|
21336
|
+
'default': Leaderboard_stories,
|
|
21337
|
+
Empty: Empty,
|
|
21338
|
+
Loading: Loading,
|
|
21339
|
+
One: One,
|
|
21340
|
+
Five: Five
|
|
21197
21341
|
});
|
|
21198
21342
|
|
|
21199
21343
|
const HookStoryAddon = ({ story }, children) => {
|
|
@@ -21283,36 +21427,36 @@ const routes = `
|
|
|
21283
21427
|
`;
|
|
21284
21428
|
const TemplateNavigation = createHookStory(() => {
|
|
21285
21429
|
return (index.h("div", null,
|
|
21286
|
-
index.h("button", { onClick: () => index_module.
|
|
21287
|
-
index.h("button", { onClick: () => index_module.
|
|
21288
|
-
index.h("button", { onClick: () => index_module.
|
|
21289
|
-
index.h("button", { onClick: () => index_module.
|
|
21290
|
-
index.h("button", { onClick: () => index_module.
|
|
21291
|
-
index.h("button", { onClick: () => index_module.
|
|
21292
|
-
index.h("button", { onClick: () => index_module.
|
|
21293
|
-
index.h("button", { onClick: () => index_module.
|
|
21294
|
-
index.h("button", { onClick: () => index_module.
|
|
21430
|
+
index.h("button", { onClick: () => index_module.mn.push("/") }, "/"),
|
|
21431
|
+
index.h("button", { onClick: () => index_module.mn.push("/foo") }, "/foo"),
|
|
21432
|
+
index.h("button", { onClick: () => index_module.mn.push("/bar") }, "/bar"),
|
|
21433
|
+
index.h("button", { onClick: () => index_module.mn.push("/baz/bang") }, "/baz/bang"),
|
|
21434
|
+
index.h("button", { onClick: () => index_module.mn.push("/refer") }, "/refer"),
|
|
21435
|
+
index.h("button", { onClick: () => index_module.mn.push("/refer/1") }, "/refer/1"),
|
|
21436
|
+
index.h("button", { onClick: () => index_module.mn.push("/refer/2") }, "/refer/2"),
|
|
21437
|
+
index.h("button", { onClick: () => index_module.mn.back() }, "Back"),
|
|
21438
|
+
index.h("button", { onClick: () => index_module.mn.forward() }, "Forward"),
|
|
21295
21439
|
index.h("hr", null),
|
|
21296
21440
|
index.h("sqm-router", { innerHTML: templates })));
|
|
21297
21441
|
});
|
|
21298
21442
|
const RouteNavigation = createHookStory(() => {
|
|
21299
21443
|
return (index.h("div", null,
|
|
21300
|
-
index.h("button", { onClick: () => index_module.
|
|
21301
|
-
index.h("button", { onClick: () => index_module.
|
|
21302
|
-
index.h("button", { onClick: () => index_module.
|
|
21303
|
-
index.h("button", { onClick: () => index_module.
|
|
21304
|
-
index.h("button", { onClick: () => index_module.
|
|
21305
|
-
index.h("button", { onClick: () => index_module.
|
|
21306
|
-
index.h("button", { onClick: () => index_module.
|
|
21307
|
-
index.h("button", { onClick: () => index_module.
|
|
21308
|
-
index.h("button", { onClick: () => index_module.
|
|
21444
|
+
index.h("button", { onClick: () => index_module.mn.push("/") }, "/"),
|
|
21445
|
+
index.h("button", { onClick: () => index_module.mn.push("/foo") }, "/foo"),
|
|
21446
|
+
index.h("button", { onClick: () => index_module.mn.push("/bar") }, "/bar"),
|
|
21447
|
+
index.h("button", { onClick: () => index_module.mn.push("/baz/bang") }, "/baz/bang"),
|
|
21448
|
+
index.h("button", { onClick: () => index_module.mn.push("/refer") }, "/refer"),
|
|
21449
|
+
index.h("button", { onClick: () => index_module.mn.push("/refer/1") }, "/refer/1"),
|
|
21450
|
+
index.h("button", { onClick: () => index_module.mn.push("/refer/2") }, "/refer/2"),
|
|
21451
|
+
index.h("button", { onClick: () => index_module.mn.back() }, "Back"),
|
|
21452
|
+
index.h("button", { onClick: () => index_module.mn.forward() }, "Forward"),
|
|
21309
21453
|
index.h("hr", null),
|
|
21310
21454
|
index.h("sqm-router", { innerHTML: routes })));
|
|
21311
21455
|
});
|
|
21312
21456
|
const Styling = createHookStory(() => {
|
|
21313
21457
|
return (index.h("div", null,
|
|
21314
|
-
index.h("button", { onClick: () => index_module.
|
|
21315
|
-
index.h("button", { onClick: () => index_module.
|
|
21458
|
+
index.h("button", { onClick: () => index_module.mn.push("/") }, "/"),
|
|
21459
|
+
index.h("button", { onClick: () => index_module.mn.push("/foo") }, "/foo"),
|
|
21316
21460
|
index.h("hr", null),
|
|
21317
21461
|
index.h("div", { style: { display: "flex", justifyContent: "space-around" } },
|
|
21318
21462
|
index.h("sqm-router", { innerHTML: `<template path="/">
|
|
@@ -21326,7 +21470,7 @@ function useTemplate(templateString) {
|
|
|
21326
21470
|
const [previewTemplate, setPreviewTemplate] = _extends.useState(templateString);
|
|
21327
21471
|
function setPath(e) {
|
|
21328
21472
|
//@ts-ignore
|
|
21329
|
-
index_module.
|
|
21473
|
+
index_module.mn.push(e.target.value);
|
|
21330
21474
|
}
|
|
21331
21475
|
return {
|
|
21332
21476
|
states: { previewTemplate, editedTemplate },
|
|
@@ -21357,12 +21501,12 @@ const RouterPlayground = createHookStory(() => {
|
|
|
21357
21501
|
});
|
|
21358
21502
|
|
|
21359
21503
|
const Router = /*#__PURE__*/Object.freeze({
|
|
21360
|
-
|
|
21361
|
-
|
|
21362
|
-
|
|
21363
|
-
|
|
21364
|
-
|
|
21365
|
-
|
|
21504
|
+
__proto__: null,
|
|
21505
|
+
'default': Router_stories,
|
|
21506
|
+
TemplateNavigation: TemplateNavigation,
|
|
21507
|
+
RouteNavigation: RouteNavigation,
|
|
21508
|
+
Styling: Styling,
|
|
21509
|
+
RouterPlayground: RouterPlayground
|
|
21366
21510
|
});
|
|
21367
21511
|
|
|
21368
21512
|
const LeaderboardRank_stories = {
|
|
@@ -21377,9 +21521,9 @@ const First = () => {
|
|
|
21377
21521
|
};
|
|
21378
21522
|
|
|
21379
21523
|
const LeaderboardRank = /*#__PURE__*/Object.freeze({
|
|
21380
|
-
|
|
21381
|
-
|
|
21382
|
-
|
|
21524
|
+
__proto__: null,
|
|
21525
|
+
'default': LeaderboardRank_stories,
|
|
21526
|
+
First: First
|
|
21383
21527
|
});
|
|
21384
21528
|
|
|
21385
21529
|
function setupGraphQL() {
|
|
@@ -21469,8 +21613,8 @@ const FullStackFrame = () => {
|
|
|
21469
21613
|
"Current path:",
|
|
21470
21614
|
" ",
|
|
21471
21615
|
index.h("code", null,
|
|
21472
|
-
index.h("strong", null, (_a = index_module.
|
|
21473
|
-
index.h("button", { onClick: index_module.
|
|
21616
|
+
index.h("strong", null, (_a = index_module.vn()) === null || _a === void 0 ? void 0 : _a.pathname))),
|
|
21617
|
+
index.h("button", { onClick: index_module.mn.back }, "Go Back")));
|
|
21474
21618
|
};
|
|
21475
21619
|
const FullStackFrameLoggedOut = () => {
|
|
21476
21620
|
var _a;
|
|
@@ -21494,17 +21638,17 @@ const FullStackFrameLoggedOut = () => {
|
|
|
21494
21638
|
"Current path:",
|
|
21495
21639
|
" ",
|
|
21496
21640
|
index.h("code", null,
|
|
21497
|
-
index.h("strong", null, (_a = index_module.
|
|
21498
|
-
index.h("button", { onClick: index_module.
|
|
21641
|
+
index.h("strong", null, (_a = index_module.vn()) === null || _a === void 0 ? void 0 : _a.pathname))),
|
|
21642
|
+
index.h("button", { onClick: index_module.mn.back }, "Go Back")));
|
|
21499
21643
|
};
|
|
21500
21644
|
|
|
21501
21645
|
const PortalFrame$1 = /*#__PURE__*/Object.freeze({
|
|
21502
|
-
|
|
21503
|
-
|
|
21504
|
-
|
|
21505
|
-
|
|
21506
|
-
|
|
21507
|
-
|
|
21646
|
+
__proto__: null,
|
|
21647
|
+
'default': PortalFrame_stories,
|
|
21648
|
+
FrameWithMenu: FrameWithMenu,
|
|
21649
|
+
FrameWithoutMenu: FrameWithoutMenu,
|
|
21650
|
+
FullStackFrame: FullStackFrame,
|
|
21651
|
+
FullStackFrameLoggedOut: FullStackFrameLoggedOut
|
|
21508
21652
|
});
|
|
21509
21653
|
|
|
21510
21654
|
const EditProfileForm_stories = {
|
|
@@ -21568,11 +21712,11 @@ const FullStackFrameWithMenu = () => {
|
|
|
21568
21712
|
};
|
|
21569
21713
|
|
|
21570
21714
|
const EditProfile$1 = /*#__PURE__*/Object.freeze({
|
|
21571
|
-
|
|
21572
|
-
|
|
21573
|
-
|
|
21574
|
-
|
|
21575
|
-
|
|
21715
|
+
__proto__: null,
|
|
21716
|
+
'default': EditProfileForm_stories,
|
|
21717
|
+
EditProfileFormDisabled: EditProfileFormDisabled,
|
|
21718
|
+
EditProfileFormEnabled: EditProfileFormEnabled,
|
|
21719
|
+
FullStackFrameWithMenu: FullStackFrameWithMenu
|
|
21576
21720
|
});
|
|
21577
21721
|
|
|
21578
21722
|
const UseShareLink_stories = {
|
|
@@ -21589,14 +21733,14 @@ function setupGraphQL$1() {
|
|
|
21589
21733
|
programId,
|
|
21590
21734
|
};
|
|
21591
21735
|
_extends.useEffect(() => {
|
|
21592
|
-
index_module.
|
|
21736
|
+
index_module.Y({
|
|
21593
21737
|
accountId,
|
|
21594
21738
|
id,
|
|
21595
21739
|
jwt: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImFjY291bnRJZCI6InRlc3Rlc3Rlc3QiLCJpZCI6InRlc3Rlc3Rlc3QifX0.qYnU5hNeIj9C_G3NogfG7btgCPGZC7JRXY0MG6a63zs",
|
|
21596
21740
|
});
|
|
21597
21741
|
return () => {
|
|
21598
21742
|
window.widgetIdent = undefined;
|
|
21599
|
-
index_module.
|
|
21743
|
+
index_module.Y(undefined);
|
|
21600
21744
|
};
|
|
21601
21745
|
}, []);
|
|
21602
21746
|
}
|
|
@@ -21630,11 +21774,11 @@ const FastTooltip = createHookStory(() => {
|
|
|
21630
21774
|
});
|
|
21631
21775
|
|
|
21632
21776
|
const UseShareLink = /*#__PURE__*/Object.freeze({
|
|
21633
|
-
|
|
21634
|
-
|
|
21635
|
-
|
|
21636
|
-
|
|
21637
|
-
|
|
21777
|
+
__proto__: null,
|
|
21778
|
+
'default': UseShareLink_stories,
|
|
21779
|
+
BareBonesView: BareBonesView,
|
|
21780
|
+
RegularView: RegularView,
|
|
21781
|
+
FastTooltip: FastTooltip
|
|
21638
21782
|
});
|
|
21639
21783
|
|
|
21640
21784
|
const UseShareButton_stories = {
|
|
@@ -21651,14 +21795,14 @@ function setupGraphQL$2() {
|
|
|
21651
21795
|
programId,
|
|
21652
21796
|
};
|
|
21653
21797
|
_extends.useEffect(() => {
|
|
21654
|
-
index_module.
|
|
21798
|
+
index_module.Y({
|
|
21655
21799
|
accountId,
|
|
21656
21800
|
id,
|
|
21657
21801
|
jwt: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImFjY291bnRJZCI6InRlc3Rlc3Rlc3QiLCJpZCI6InRlc3Rlc3Rlc3QifX0.qYnU5hNeIj9C_G3NogfG7btgCPGZC7JRXY0MG6a63zs",
|
|
21658
21802
|
});
|
|
21659
21803
|
return () => {
|
|
21660
21804
|
window.widgetIdent = undefined;
|
|
21661
|
-
index_module.
|
|
21805
|
+
index_module.Y(undefined);
|
|
21662
21806
|
};
|
|
21663
21807
|
}, []);
|
|
21664
21808
|
}
|
|
@@ -21693,10 +21837,10 @@ const RegularView$1 = createHookStory(() => {
|
|
|
21693
21837
|
});
|
|
21694
21838
|
|
|
21695
21839
|
const UseShareButton = /*#__PURE__*/Object.freeze({
|
|
21696
|
-
|
|
21697
|
-
|
|
21698
|
-
|
|
21699
|
-
|
|
21840
|
+
__proto__: null,
|
|
21841
|
+
'default': UseShareButton_stories,
|
|
21842
|
+
BareBonesView: BareBonesView$1,
|
|
21843
|
+
RegularView: RegularView$1
|
|
21700
21844
|
});
|
|
21701
21845
|
|
|
21702
21846
|
const UseBigStat_stories = {
|
|
@@ -21713,14 +21857,14 @@ function setupGraphQL$3() {
|
|
|
21713
21857
|
programId,
|
|
21714
21858
|
};
|
|
21715
21859
|
_extends.useEffect(() => {
|
|
21716
|
-
index_module.
|
|
21860
|
+
index_module.Y({
|
|
21717
21861
|
accountId,
|
|
21718
21862
|
id,
|
|
21719
21863
|
jwt: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImFjY291bnRJZCI6Im55bmVsbGllIiwiaWQiOiJueW5lbGxpZSJ9fQ.3KV974VPLgk4tD8LQfJTi4IPkKCmnaB8w48HzVJYDuI",
|
|
21720
21864
|
});
|
|
21721
21865
|
return () => {
|
|
21722
21866
|
window.widgetIdent = undefined;
|
|
21723
|
-
index_module.
|
|
21867
|
+
index_module.Y(undefined);
|
|
21724
21868
|
};
|
|
21725
21869
|
}, []);
|
|
21726
21870
|
}
|
|
@@ -21801,36 +21945,36 @@ const CustomField = createHookStory(() => {
|
|
|
21801
21945
|
});
|
|
21802
21946
|
|
|
21803
21947
|
const UseBigStat = /*#__PURE__*/Object.freeze({
|
|
21804
|
-
|
|
21805
|
-
|
|
21806
|
-
|
|
21807
|
-
|
|
21808
|
-
|
|
21809
|
-
|
|
21810
|
-
|
|
21811
|
-
|
|
21812
|
-
|
|
21813
|
-
|
|
21814
|
-
|
|
21815
|
-
|
|
21816
|
-
|
|
21817
|
-
|
|
21818
|
-
|
|
21819
|
-
|
|
21820
|
-
|
|
21821
|
-
|
|
21822
|
-
|
|
21823
|
-
|
|
21824
|
-
|
|
21825
|
-
|
|
21826
|
-
|
|
21827
|
-
|
|
21828
|
-
|
|
21829
|
-
|
|
21830
|
-
|
|
21831
|
-
|
|
21832
|
-
|
|
21833
|
-
|
|
21948
|
+
__proto__: null,
|
|
21949
|
+
'default': UseBigStat_stories,
|
|
21950
|
+
Demo: Demo,
|
|
21951
|
+
ReferralsCount: ReferralsCount,
|
|
21952
|
+
referralsConvertedCount: referralsConvertedCount,
|
|
21953
|
+
referralsStartedCount: referralsStartedCount,
|
|
21954
|
+
ReferralsMonth: ReferralsMonth,
|
|
21955
|
+
ReferralsWeek: ReferralsWeek,
|
|
21956
|
+
RewardsCount: RewardsCount,
|
|
21957
|
+
GlobalRewardsCount: GlobalRewardsCount,
|
|
21958
|
+
GlobalRewardsCountFiltered: GlobalRewardsCountFiltered,
|
|
21959
|
+
GlobalRewardsCountPctDiscount: GlobalRewardsCountPctDiscount,
|
|
21960
|
+
GlobalRewardsCountPctDiscountPending: GlobalRewardsCountPctDiscountPending,
|
|
21961
|
+
RewardsCountByUnit: RewardsCountByUnit,
|
|
21962
|
+
GlobalRewardsCountByUnit: GlobalRewardsCountByUnit,
|
|
21963
|
+
GlobalPendingRewardsCount: GlobalPendingRewardsCount,
|
|
21964
|
+
RewardsAvailableCount: RewardsAvailableCount,
|
|
21965
|
+
GlobalRewardsCountByIntegration: GlobalRewardsCountByIntegration,
|
|
21966
|
+
GlobalRewardsCountByPendingIntegration: GlobalRewardsCountByPendingIntegration,
|
|
21967
|
+
RewardsMonth: RewardsMonth,
|
|
21968
|
+
RewardsWeek: RewardsWeek,
|
|
21969
|
+
RewardsAssigned: RewardsAssigned,
|
|
21970
|
+
RewardsAssignedCashUSD: RewardsAssignedCashUSD,
|
|
21971
|
+
RewardsRedeemed: RewardsRedeemed,
|
|
21972
|
+
RewardsAvailable: RewardsAvailable,
|
|
21973
|
+
RewardsAvailableWithSlash: RewardsAvailableWithSlash,
|
|
21974
|
+
RewardBalance: RewardBalance,
|
|
21975
|
+
RewardBalanceCashUSD: RewardBalanceCashUSD,
|
|
21976
|
+
ProgramGoals: ProgramGoals,
|
|
21977
|
+
CustomField: CustomField
|
|
21834
21978
|
});
|
|
21835
21979
|
|
|
21836
21980
|
function setupGraphQL$4() {
|
|
@@ -21844,14 +21988,14 @@ function setupGraphQL$4() {
|
|
|
21844
21988
|
programId,
|
|
21845
21989
|
};
|
|
21846
21990
|
_extends.useEffect(() => {
|
|
21847
|
-
index_module.
|
|
21991
|
+
index_module.Y({
|
|
21848
21992
|
accountId,
|
|
21849
21993
|
id,
|
|
21850
21994
|
jwt: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImFjY291bnRJZCI6IndvcnJpZWQtY2FtZXJhQHVleHdsdGdoLm1haWxvc2F1ci5uZXQiLCJpZCI6IndvcnJpZWQtY2FtZXJhQHVleHdsdGdoLm1haWxvc2F1ci5uZXQiLCJmaXJzdE5hbWUiOiJ0ZXN0IiwibGFzdE5hbWUiOiJ0ZXN0In19.ziDWbdCwsTo1ijxl8d2__Ga-6iFOVShaJUPp2ZBMeO0",
|
|
21851
21995
|
});
|
|
21852
21996
|
return () => {
|
|
21853
21997
|
window.widgetIdent = undefined;
|
|
21854
|
-
index_module.
|
|
21998
|
+
index_module.Y(undefined);
|
|
21855
21999
|
};
|
|
21856
22000
|
}, []);
|
|
21857
22001
|
}
|
|
@@ -21872,9 +22016,9 @@ const RegularView$2 = createHookStory(() => {
|
|
|
21872
22016
|
});
|
|
21873
22017
|
|
|
21874
22018
|
const UseEditProfile = /*#__PURE__*/Object.freeze({
|
|
21875
|
-
|
|
21876
|
-
|
|
21877
|
-
|
|
22019
|
+
__proto__: null,
|
|
22020
|
+
'default': UseEditProfile_stories,
|
|
22021
|
+
RegularView: RegularView$2
|
|
21878
22022
|
});
|
|
21879
22023
|
|
|
21880
22024
|
const UseLeaderboard_stories = {
|
|
@@ -21891,14 +22035,14 @@ function setupGraphQL$5() {
|
|
|
21891
22035
|
programId,
|
|
21892
22036
|
};
|
|
21893
22037
|
_extends.useEffect(() => {
|
|
21894
|
-
index_module.
|
|
22038
|
+
index_module.Y({
|
|
21895
22039
|
accountId,
|
|
21896
22040
|
id,
|
|
21897
22041
|
jwt: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImFjY291bnRJZCI6InRlc3Rlc3Rlc3QiLCJpZCI6InRlc3Rlc3Rlc3QifX0.qYnU5hNeIj9C_G3NogfG7btgCPGZC7JRXY0MG6a63zs",
|
|
21898
22042
|
});
|
|
21899
22043
|
return () => {
|
|
21900
22044
|
window.widgetIdent = undefined;
|
|
21901
|
-
index_module.
|
|
22045
|
+
index_module.Y(undefined);
|
|
21902
22046
|
};
|
|
21903
22047
|
}, []);
|
|
21904
22048
|
}
|
|
@@ -21952,10 +22096,10 @@ const TopStartedReferrers = createHookStory(() => {
|
|
|
21952
22096
|
});
|
|
21953
22097
|
|
|
21954
22098
|
const UseLeaderboard = /*#__PURE__*/Object.freeze({
|
|
21955
|
-
|
|
21956
|
-
|
|
21957
|
-
|
|
21958
|
-
|
|
22099
|
+
__proto__: null,
|
|
22100
|
+
'default': UseLeaderboard_stories,
|
|
22101
|
+
TopConvertedReferrers: TopConvertedReferrers,
|
|
22102
|
+
TopStartedReferrers: TopStartedReferrers
|
|
21959
22103
|
});
|
|
21960
22104
|
|
|
21961
22105
|
const FormMessage_stories = {
|
|
@@ -21987,12 +22131,12 @@ const FullStackSuccess = () => {
|
|
|
21987
22131
|
};
|
|
21988
22132
|
|
|
21989
22133
|
const FormMessage$1 = /*#__PURE__*/Object.freeze({
|
|
21990
|
-
|
|
21991
|
-
|
|
21992
|
-
|
|
21993
|
-
|
|
21994
|
-
|
|
21995
|
-
|
|
22134
|
+
__proto__: null,
|
|
22135
|
+
'default': FormMessage_stories,
|
|
22136
|
+
SuccessAlert: SuccessAlert,
|
|
22137
|
+
ErrorAlert: ErrorAlert,
|
|
22138
|
+
InfoAlert: InfoAlert,
|
|
22139
|
+
FullStackSuccess: FullStackSuccess
|
|
21996
22140
|
});
|
|
21997
22141
|
|
|
21998
22142
|
const EXCHANGE$1 = index_module.dist.gql `
|
|
@@ -22018,14 +22162,14 @@ function setupGraphQL$6() {
|
|
|
22018
22162
|
programId,
|
|
22019
22163
|
};
|
|
22020
22164
|
_extends.useEffect(() => {
|
|
22021
|
-
index_module.
|
|
22165
|
+
index_module.Y({
|
|
22022
22166
|
accountId,
|
|
22023
22167
|
id,
|
|
22024
22168
|
jwt: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImFjY291bnRJZCI6InRlc3Rlc3Rlc3QiLCJpZCI6InRlc3Rlc3Rlc3QifX0.qYnU5hNeIj9C_G3NogfG7btgCPGZC7JRXY0MG6a63zs",
|
|
22025
22169
|
});
|
|
22026
22170
|
return () => {
|
|
22027
22171
|
window.widgetIdent = undefined;
|
|
22028
|
-
index_module.
|
|
22172
|
+
index_module.Y(undefined);
|
|
22029
22173
|
};
|
|
22030
22174
|
}, []);
|
|
22031
22175
|
return { id, accountId };
|
|
@@ -22034,7 +22178,7 @@ function useExchangeButton() {
|
|
|
22034
22178
|
const { id, accountId } = setupGraphQL$6();
|
|
22035
22179
|
const [points, setPoints] = _extends.useState(10);
|
|
22036
22180
|
const [rate, setRate] = _extends.useState(100);
|
|
22037
|
-
const [exchange, { data, errors }] = index_module.
|
|
22181
|
+
const [exchange, { data, errors }] = index_module.ze(EXCHANGE$1);
|
|
22038
22182
|
return {
|
|
22039
22183
|
states: {
|
|
22040
22184
|
points,
|
|
@@ -22129,12 +22273,12 @@ const VariableCreditReward = createHookStory(() => {
|
|
|
22129
22273
|
});
|
|
22130
22274
|
|
|
22131
22275
|
const UseRewardExchangeList = /*#__PURE__*/Object.freeze({
|
|
22132
|
-
|
|
22133
|
-
|
|
22134
|
-
|
|
22135
|
-
|
|
22136
|
-
|
|
22137
|
-
|
|
22276
|
+
__proto__: null,
|
|
22277
|
+
'default': UseRewardExchangeList_stories,
|
|
22278
|
+
RewardList: RewardList,
|
|
22279
|
+
FixedGlobalReward: FixedGlobalReward,
|
|
22280
|
+
VariableGlobalReward: VariableGlobalReward,
|
|
22281
|
+
VariableCreditReward: VariableCreditReward
|
|
22138
22282
|
});
|
|
22139
22283
|
|
|
22140
22284
|
const UseRewardsTable_stories = {
|
|
@@ -22149,14 +22293,14 @@ function setupGraphQL$7() {
|
|
|
22149
22293
|
appDomain: "https://staging.referralsaasquatch.com",
|
|
22150
22294
|
};
|
|
22151
22295
|
_extends.useEffect(() => {
|
|
22152
|
-
index_module.
|
|
22296
|
+
index_module.Y({
|
|
22153
22297
|
accountId,
|
|
22154
22298
|
id,
|
|
22155
22299
|
jwt: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImFjY291bnRJZCI6InRlc3Rlc3Rlc3QiLCJpZCI6InRlc3Rlc3Rlc3QifX0.qYnU5hNeIj9C_G3NogfG7btgCPGZC7JRXY0MG6a63zs",
|
|
22156
22300
|
});
|
|
22157
22301
|
return () => {
|
|
22158
22302
|
window.widgetIdent = undefined;
|
|
22159
|
-
index_module.
|
|
22303
|
+
index_module.Y(undefined);
|
|
22160
22304
|
};
|
|
22161
22305
|
}, []);
|
|
22162
22306
|
return { id, accountId };
|
|
@@ -22175,10 +22319,10 @@ const RewardsTableNoProgram = createHookStory(() => {
|
|
|
22175
22319
|
});
|
|
22176
22320
|
|
|
22177
22321
|
const UseRewardsTable = /*#__PURE__*/Object.freeze({
|
|
22178
|
-
|
|
22179
|
-
|
|
22180
|
-
|
|
22181
|
-
|
|
22322
|
+
__proto__: null,
|
|
22323
|
+
'default': UseRewardsTable_stories,
|
|
22324
|
+
RewardsTableWithProgram: RewardsTableWithProgram,
|
|
22325
|
+
RewardsTableNoProgram: RewardsTableNoProgram
|
|
22182
22326
|
});
|
|
22183
22327
|
|
|
22184
22328
|
const JWT = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImlkIjoic2FtK2tsaXBAc2Fhc3F1YXQuY2giLCJhY2NvdW50SWQiOiJzYW0ra2xpcEBzYWFzcXVhdC5jaCJ9fQ.FMNZ6oajyr6SiCcRqKKdyPqvNTvWROQ60MKAyfvWGfc";
|
|
@@ -22196,14 +22340,14 @@ function setupGraphQL$8() {
|
|
|
22196
22340
|
programId,
|
|
22197
22341
|
};
|
|
22198
22342
|
_extends.useEffect(() => {
|
|
22199
|
-
index_module.
|
|
22343
|
+
index_module.Y({
|
|
22200
22344
|
accountId,
|
|
22201
22345
|
id,
|
|
22202
22346
|
jwt: JWT,
|
|
22203
22347
|
});
|
|
22204
22348
|
return () => {
|
|
22205
22349
|
window.widgetIdent = undefined;
|
|
22206
|
-
index_module.
|
|
22350
|
+
index_module.Y(undefined);
|
|
22207
22351
|
};
|
|
22208
22352
|
}, []);
|
|
22209
22353
|
return { id, accountId };
|
|
@@ -22214,9 +22358,9 @@ const TaskCard = createHookStory(() => {
|
|
|
22214
22358
|
});
|
|
22215
22359
|
|
|
22216
22360
|
const UseTaskCard = /*#__PURE__*/Object.freeze({
|
|
22217
|
-
|
|
22218
|
-
|
|
22219
|
-
|
|
22361
|
+
__proto__: null,
|
|
22362
|
+
'default': UseTaskCard_stories,
|
|
22363
|
+
TaskCard: TaskCard
|
|
22220
22364
|
});
|
|
22221
22365
|
|
|
22222
22366
|
const NewPortal_stories = {
|
|
@@ -22513,12 +22657,12 @@ const Activity = () => {
|
|
|
22513
22657
|
};
|
|
22514
22658
|
|
|
22515
22659
|
const NewPortal = /*#__PURE__*/Object.freeze({
|
|
22516
|
-
|
|
22517
|
-
|
|
22518
|
-
|
|
22519
|
-
|
|
22520
|
-
|
|
22521
|
-
|
|
22660
|
+
__proto__: null,
|
|
22661
|
+
'default': NewPortal_stories,
|
|
22662
|
+
Dashboard: Dashboard,
|
|
22663
|
+
EditProfile: EditProfile$2,
|
|
22664
|
+
Commissions: Commissions,
|
|
22665
|
+
Activity: Activity
|
|
22522
22666
|
});
|
|
22523
22667
|
|
|
22524
22668
|
const SidebarItem_stories = {
|
|
@@ -22552,10 +22696,10 @@ const ActiveItem = () => {
|
|
|
22552
22696
|
};
|
|
22553
22697
|
|
|
22554
22698
|
const SidebarItem = /*#__PURE__*/Object.freeze({
|
|
22555
|
-
|
|
22556
|
-
|
|
22557
|
-
|
|
22558
|
-
|
|
22699
|
+
__proto__: null,
|
|
22700
|
+
'default': SidebarItem_stories,
|
|
22701
|
+
InactiveItem: InactiveItem,
|
|
22702
|
+
ActiveItem: ActiveItem
|
|
22559
22703
|
});
|
|
22560
22704
|
|
|
22561
22705
|
const NavigationSidebar_stories = {
|
|
@@ -22602,9 +22746,9 @@ const DefaultNavigationSidebar = () => {
|
|
|
22602
22746
|
};
|
|
22603
22747
|
|
|
22604
22748
|
const NavigationSidebar = /*#__PURE__*/Object.freeze({
|
|
22605
|
-
|
|
22606
|
-
|
|
22607
|
-
|
|
22749
|
+
__proto__: null,
|
|
22750
|
+
'default': NavigationSidebar_stories,
|
|
22751
|
+
DefaultNavigationSidebar: DefaultNavigationSidebar
|
|
22608
22752
|
});
|
|
22609
22753
|
|
|
22610
22754
|
const PortalLogin_stories = {
|
|
@@ -22645,11 +22789,11 @@ const LoginWithError = () => index.h(PortalLoginView, Object.assign({}, errorPro
|
|
|
22645
22789
|
const LoginLoading = () => index.h(PortalLoginView, Object.assign({}, loadingProps));
|
|
22646
22790
|
|
|
22647
22791
|
const PortalLogin$1 = /*#__PURE__*/Object.freeze({
|
|
22648
|
-
|
|
22649
|
-
|
|
22650
|
-
|
|
22651
|
-
|
|
22652
|
-
|
|
22792
|
+
__proto__: null,
|
|
22793
|
+
'default': PortalLogin_stories,
|
|
22794
|
+
Default: Default$2,
|
|
22795
|
+
LoginWithError: LoginWithError,
|
|
22796
|
+
LoginLoading: LoginLoading
|
|
22653
22797
|
});
|
|
22654
22798
|
|
|
22655
22799
|
const PortalRegister_stories = {
|
|
@@ -22744,13 +22888,13 @@ const FieldsHidden = () => {
|
|
|
22744
22888
|
const SlottedInputs = () => index.h(PortalRegisterView, Object.assign({}, slottedProps));
|
|
22745
22889
|
|
|
22746
22890
|
const PortalRegister$1 = /*#__PURE__*/Object.freeze({
|
|
22747
|
-
|
|
22748
|
-
|
|
22749
|
-
|
|
22750
|
-
|
|
22751
|
-
|
|
22752
|
-
|
|
22753
|
-
|
|
22891
|
+
__proto__: null,
|
|
22892
|
+
'default': PortalRegister_stories,
|
|
22893
|
+
Default: Default$3,
|
|
22894
|
+
RegisterWithError: RegisterWithError,
|
|
22895
|
+
RegisterLoading: RegisterLoading,
|
|
22896
|
+
FieldsHidden: FieldsHidden,
|
|
22897
|
+
SlottedInputs: SlottedInputs
|
|
22754
22898
|
});
|
|
22755
22899
|
|
|
22756
22900
|
const scenario = "@author:\r\n@owner:ian\r\nFeature: Forgot Password\r\n\r\n @motivating\r\n Scenario: Users can request to reset their password\r\n Given a user enters their email address\r\n And that email address is linked to a previously created account\r\n When they click \"Reset Password\"\r\n Then the button enters a loading state\r\n When the password reset email is sent\r\n Then a confirmation banner is shown stating a password reset email was sent\r\n\r\n @motivating\r\n Scenario: Users are notified if sending their password reset email fails\r\n Given a user enters their email address\r\n And that email address is linked to a previously created account\r\n When they click \"Reset Password\"\r\n Then the button enters a loading state\r\n When the password reset email fails to send\r\n Then the user will not receive a password reset email\r\n And an error banner is shown stating that they should try again\r\n\r\n @motivating\r\n @landmine\r\n Scenario: If the input email is not associated to an account a success banner will be shown but an email will not be sent\r\n Given the user entered an email address that is not associated to an accoun\r\n When they click \"Reset Password\"\r\n Then the button enters a loading state\r\n But no email will be sent\r\n And a success banner is shown stating a password reset email was sent if the given email was associated to an account\r\n\r\n @motivating\r\n Scenario: Users can resend password reset email\r\n Given a user had previously requested to reset their password\r\n When they enter their email address\r\n And that email address is linked to a previously created account\r\n And they click \"Reset Password\"\r\n Then the user will receive a second password reset email\r\n And a success banner is shown stating that their email was sent\r\n";
|
|
@@ -22823,12 +22967,12 @@ const ForgotPasswordLoading = () => (index.h(sqmPortalForgotPasswordView.PortalF
|
|
|
22823
22967
|
const ForgotPasswordSuccess = () => (index.h(sqmPortalForgotPasswordView.PortalForgotPasswordView, Object.assign({}, successProps)));
|
|
22824
22968
|
|
|
22825
22969
|
const PortalForgotPassword = /*#__PURE__*/Object.freeze({
|
|
22826
|
-
|
|
22827
|
-
|
|
22828
|
-
|
|
22829
|
-
|
|
22830
|
-
|
|
22831
|
-
|
|
22970
|
+
__proto__: null,
|
|
22971
|
+
'default': PortalForgotPassword_stories,
|
|
22972
|
+
Default: Default$4,
|
|
22973
|
+
ForgotPasswordWithError: ForgotPasswordWithError,
|
|
22974
|
+
ForgotPasswordLoading: ForgotPasswordLoading,
|
|
22975
|
+
ForgotPasswordSuccess: ForgotPasswordSuccess
|
|
22832
22976
|
});
|
|
22833
22977
|
|
|
22834
22978
|
const scenario$1 = "@author:\r\n@owner: ian\r\nFeature: Email Verification\r\n\r\n @minutae\r\n Scenario: User's redirected from registration can re-send their verification email\r\n Given a user has registered\r\n And they have been sent a verification email\r\n When they are redirected to the email verification page\r\n Then a message will be displayed\r\n And it will reflect that a email has already been sent to their email\r\n But they can still re-send the email\r\n When they click to \"Resend-Email\"\r\n Then the user will receive a verification email\r\n\r\n @motivating\r\n Scenario: Users are notified if sending the email verification message fails\r\n Given a user with an email was stored in session data from registration\r\n When they click to \"Resend-Email\"\r\n Then the button enters a loading state\r\n When an error occurs trying to send the verification email\r\n Then the user will not receive a verification email\r\n And an error banner is shown stating that they should try again\r\n\r\n @motivating\r\n Scenario: Users are notified if sending the email verification message succeeds\r\n Given a user with an email was stored in session data from registration\r\n When they click to \"Resend-Email\"\r\n Then the button enters a loading state\r\n When the email verification message sends\r\n Then the user will receive a verification email\r\n And a success banner is shown stating that their email was resent";
|
|
@@ -22909,12 +23053,12 @@ const EmailVerificationLoading = () => (index.h(sqmPortalEmailVerificationView.P
|
|
|
22909
23053
|
const EmailVerificationSuccess = () => (index.h(sqmPortalEmailVerificationView.PortalEmailVerificationView, Object.assign({}, successProps$1)));
|
|
22910
23054
|
|
|
22911
23055
|
const PortalEmailVerification = /*#__PURE__*/Object.freeze({
|
|
22912
|
-
|
|
22913
|
-
|
|
22914
|
-
|
|
22915
|
-
|
|
22916
|
-
|
|
22917
|
-
|
|
23056
|
+
__proto__: null,
|
|
23057
|
+
'default': PortalEmailVerification_stories,
|
|
23058
|
+
Default: Default$5,
|
|
23059
|
+
EmailVerificationWithError: EmailVerificationWithError,
|
|
23060
|
+
EmailVerificationLoading: EmailVerificationLoading,
|
|
23061
|
+
EmailVerificationSuccess: EmailVerificationSuccess
|
|
22918
23062
|
});
|
|
22919
23063
|
|
|
22920
23064
|
const scenario$2 = "@author:\r\n@owner:ian\r\nFeature: Reset Password\r\n\r\n\r\n Background: A user in on the password reset page\r\n Given a user who has been redirected to the password reset page\r\n\r\n @motivating\r\n Scenario: Users can reset their password\r\n Given a user has a valid oob code as a url query parameter\r\n When they enter their password twice\r\n And they click \"Update\"\r\n Then their password is updated\r\n And a banner with a success message will be displayed\r\n And they can log in with their new password\r\n\r\n @motivating\r\n Scenario Outline: Users cannot reset their password with an invalid or missing oob code\r\n Given a user has a <oobCode> as a url query parameter\r\n Then they will see an error message saying that their password reset code is invalid or expired\r\n When they click \"Continue\"\r\n Then they will be redirected to \"/\"\r\n Examples:\r\n | oobCode |\r\n | invalid oob code |\r\n | non existant oob code |\r\n\r\n @motivating\r\n Scenario: Users must enter the same password twice to successfully reset their password\r\n Given a user has been redirected to the password reset page\r\n And they have a valid oob code as a url query parameter\r\n When they enter two different passwords into the password reset form\r\n And they click \"Update\"\r\n Then their password is not be reset\r\n And an error banner stating the input passwords must match appears\r\n And their password will not be reset\r\n When they enter the same password twice\r\n And they click \"Update\"\r\n Then a banner appears with a success message\r\n And they can log in with their new password\r\n\r\n @motivating\r\n Scenario: Users are redirected to \"/\" by default\r\n Given the component does not have prop \"nextPage\"\r\n And the users url does not contain a \"nextPage\" query parameter\r\n And a user has entered their password twice\r\n When they click \"Update\"\r\n Then their password is updated\r\n And they are redirected to \"/\"\r\n\r\n @motivating\r\n Scenario: Custom redirection can be configured\r\n Given the component has prop \"nextPage\" with value \"/activity\"\r\n And the users url does not contain a \"nextPage\" query parameter\r\n And a user has entered their password twice\r\n When they click \"Update\"\r\n Then their password is updated\r\n And they are redirected to \"/activity\"";
|
|
@@ -23071,14 +23215,14 @@ const ResetPasswordSuccess = () => (index.h(sqmPortalResetPasswordView.PortalRes
|
|
|
23071
23215
|
const CodeValidating = () => (index.h(sqmPortalResetPasswordView.PortalResetPasswordView, Object.assign({}, validatingCodeProps)));
|
|
23072
23216
|
|
|
23073
23217
|
const PortalResetPassword = /*#__PURE__*/Object.freeze({
|
|
23074
|
-
|
|
23075
|
-
|
|
23076
|
-
|
|
23077
|
-
|
|
23078
|
-
|
|
23079
|
-
|
|
23080
|
-
|
|
23081
|
-
|
|
23218
|
+
__proto__: null,
|
|
23219
|
+
'default': PortalResetPassword_stories,
|
|
23220
|
+
Default: Default$6,
|
|
23221
|
+
DefaultWithoutConfirmField: DefaultWithoutConfirmField,
|
|
23222
|
+
ResetPasswordWithError: ResetPasswordWithError,
|
|
23223
|
+
ResetPasswordLoading: ResetPasswordLoading,
|
|
23224
|
+
ResetPasswordSuccess: ResetPasswordSuccess,
|
|
23225
|
+
CodeValidating: CodeValidating
|
|
23082
23226
|
});
|
|
23083
23227
|
|
|
23084
23228
|
const scenario$3 = "@author:\r\n@owner:ian\r\nFeature: Verify Email\r\n\r\n\r\n Background: A user is on the email verification page\r\n Given a user who has been redirected to the email verification page\r\n\r\n @motivating\r\n Scenario: Verifying your email will take you to the portal login page\r\n Given a user has a valid oob code as a url query parameter\r\n When they click \"Verify Email\"\r\n Then the button will enter a loading state\r\n When their email is validated\r\n Then a button that says \"Continue\" will appear\r\n When they click \"Continue\"\r\n Then they will be redirected to login\r\n\r\n @motivating\r\n Scenario: Users will be automatically redirected if they dont click \"Continue\"\r\n Given a user has a valid oob code as a url query parameter\r\n When they click \"Verify Email\"\r\n Then the button will enter a loading state\r\n When their email is validated\r\n Then a button that says \"Continue\" will appear\r\n When they wait 5 seconds\r\n Then they will be redirected to login\r\n\r\n @motivating\r\n Scenario: Users are notified if verifying their email has failed\r\n Given a user has a valid oob code as a url query parameter\r\n When they click \"Verify Email\"\r\n Then the button will enter a loading state\r\n When their email fails to be validated\r\n Then an banner is shown stating that an error occured\r\n\r\n @motivating\r\n Scenario Outline: Users cannot verify their email with an invalid or missing oob code\r\n Given a user has a <oobCode> as a url query parameter\r\n Then they will see an error message saying that their verification code is invalid or expired\r\n When they click \"Continue\"\r\n Then they will be redirected to \"/\"\r\n Examples:\r\n | oobCode |\r\n | invalid oob code |\r\n | non existant oob code |\r\n\r\n @motivating\r\n Scenario: Users are redirected to \"/\" by default\r\n Given the component does not have prop \"nextPage\"\r\n And the users url does not contain a \"nextPage\" query parameter\r\n And a user has verified their email\r\n When they click \"Continue\"\r\n Then they will be redirected to \"/\"\r\n\r\n @motivating\r\n Scenario: Custom redirection can be configured\r\n Given the component has prop \"nextPage\" with value \"/activity\"\r\n And the users url does not contain a \"nextPage\" query parameter\r\n And a user has verified their email\r\n When they click \"Continue\"\r\n Then they will be redirected to \"/activity\"\r\n\r\n @motivating\r\n Scenario Outline: Users will be redirected to the value of the nextPage url parameter if it exists\r\n Given the component <mayHave> prop \"nextPage\" with <nextPageValue>\r\n And the users url contains a \"nextPage\" query paramater with <nextPageParamValue>\r\n And the user has verified their email\r\n When they click \"Continue\"\r\n Then they are redirected to <nextPageParamValue>\r\n Examples:\r\n | mayHave | nextPageValue | nextPageParamValue |\r\n | has | /dashboard | /activity |\r\n | does not have | N/A | /activity |";
|
|
@@ -23121,10 +23265,10 @@ const EmailVerificationWithError$1 = () => (index.h(sqmPortalVerifyEmailView.Por
|
|
|
23121
23265
|
const EmailVerificationSuccess$1 = () => (index.h(sqmPortalVerifyEmailView.PortalVerifyEmailView, Object.assign({}, verifiedProps)));
|
|
23122
23266
|
|
|
23123
23267
|
const PortalVerifyEmail = /*#__PURE__*/Object.freeze({
|
|
23124
|
-
|
|
23125
|
-
|
|
23126
|
-
|
|
23127
|
-
|
|
23268
|
+
__proto__: null,
|
|
23269
|
+
'default': PortalVerifyEmail_stories,
|
|
23270
|
+
EmailVerificationWithError: EmailVerificationWithError$1,
|
|
23271
|
+
EmailVerificationSuccess: EmailVerificationSuccess$1
|
|
23128
23272
|
});
|
|
23129
23273
|
|
|
23130
23274
|
const AssetCard_stories = {
|
|
@@ -23156,11 +23300,11 @@ const CardWithNoImg = () => {
|
|
|
23156
23300
|
};
|
|
23157
23301
|
|
|
23158
23302
|
const AssetCard = /*#__PURE__*/Object.freeze({
|
|
23159
|
-
|
|
23160
|
-
|
|
23161
|
-
|
|
23162
|
-
|
|
23163
|
-
|
|
23303
|
+
__proto__: null,
|
|
23304
|
+
'default': AssetCard_stories,
|
|
23305
|
+
Default: Default$7,
|
|
23306
|
+
CardWithLongText: CardWithLongText,
|
|
23307
|
+
CardWithNoImg: CardWithNoImg
|
|
23164
23308
|
});
|
|
23165
23309
|
|
|
23166
23310
|
const DividedLayout_stories = {
|
|
@@ -23246,11 +23390,11 @@ const ColumnCustomDivider = () => {
|
|
|
23246
23390
|
};
|
|
23247
23391
|
|
|
23248
23392
|
const DividedLayout$1 = /*#__PURE__*/Object.freeze({
|
|
23249
|
-
|
|
23250
|
-
|
|
23251
|
-
|
|
23252
|
-
|
|
23253
|
-
|
|
23393
|
+
__proto__: null,
|
|
23394
|
+
'default': DividedLayout_stories,
|
|
23395
|
+
Row: Row,
|
|
23396
|
+
Column: Column,
|
|
23397
|
+
ColumnCustomDivider: ColumnCustomDivider
|
|
23254
23398
|
});
|
|
23255
23399
|
|
|
23256
23400
|
const scenario$4 = "Feature: Change Password\r\n\r\n @motivating\r\n Scenario: Users can change their password\r\n Given a user has registered for the portal\r\n And they have a password\r\n When they navigate to the edit profile page\r\n And click \"Change your password...\"\r\n Then a popup will appear\r\n When they enter their new password\r\n And confirm it\r\n And click \"Change Password\"\r\n Then they will see a success banner stating that the change was successful\r\n When they logout\r\n And try to login\r\n Then they will not be able to login with their old password\r\n But they will be able to login with their new password\r\n\r\n @motivating\r\n Scenario: Users must confirm their password change\r\n Given a user has registered for the portal\r\n When they navigate to the edit profile page\r\n And click \"Change your password...\"\r\n Then a popup will appear\r\n When they enter their new password\r\n But they enter a different password to confirm\r\n And click \"Change Password\"\r\n Then they will see an error banner stating that the passwords didnt match\r\n When they logout\r\n And try to login\r\n Then they will be able to login with their existing password\r\n\r\n @motivating\r\n Scenario: Users must enter a new password and confirm it to change their password\r\n Given a user has registered for the portal\r\n When they navigate to the edit profile page\r\n And click \"Change your password...\"\r\n Then a popup will appear\r\n When they click \"Change password\"\r\n Then a validation error will appear for the new password field\r\n And their password will not be changed\r\n When they enter a new password\r\n And they click \"Change password\"\r\n Then a validation error will appear for the confirm new password field\r\n And their password will not be changed\r\n\r\n @motivating\r\n Scenario: An error banner will be displayed if the password change fails\r\n Given a user has registered for the portal\r\n When they navigate to the edit profile page\r\n And click \"Change your password...\"\r\n When they enter their new password\r\n And confirm it\r\n And click \"Change Password\"\r\n But the change fails\r\n Then they will see an error banner stating that the change failed\r\n When they logout\r\n And try to login\r\n Then they will be able to login with their existing password";
|
|
@@ -23401,14 +23545,14 @@ const Loading$1 = () => index.h(PortalChangePasswordView, Object.assign({}, load
|
|
|
23401
23545
|
const Success = () => index.h(PortalChangePasswordView, Object.assign({}, successProps$3));
|
|
23402
23546
|
|
|
23403
23547
|
const ChangePassword = /*#__PURE__*/Object.freeze({
|
|
23404
|
-
|
|
23405
|
-
|
|
23406
|
-
|
|
23407
|
-
|
|
23408
|
-
|
|
23409
|
-
|
|
23410
|
-
|
|
23411
|
-
|
|
23548
|
+
__proto__: null,
|
|
23549
|
+
'default': ChangePassword_stories,
|
|
23550
|
+
Default: Default$8,
|
|
23551
|
+
Open: Open,
|
|
23552
|
+
Error: Error$1,
|
|
23553
|
+
PaswordError: PaswordError,
|
|
23554
|
+
Loading: Loading$1,
|
|
23555
|
+
Success: Success
|
|
23412
23556
|
});
|
|
23413
23557
|
|
|
23414
23558
|
const PortalProfile_stories = {
|
|
@@ -23642,14 +23786,14 @@ const Error$2 = () => index.h(sqmPortalProfileView.PortalProfileView, Object.ass
|
|
|
23642
23786
|
const Success$1 = () => index.h(sqmPortalProfileView.PortalProfileView, Object.assign({}, successProps$4));
|
|
23643
23787
|
|
|
23644
23788
|
const PortalProfile = /*#__PURE__*/Object.freeze({
|
|
23645
|
-
|
|
23646
|
-
|
|
23647
|
-
|
|
23648
|
-
|
|
23649
|
-
|
|
23650
|
-
|
|
23651
|
-
|
|
23652
|
-
|
|
23789
|
+
__proto__: null,
|
|
23790
|
+
'default': PortalProfile_stories,
|
|
23791
|
+
Default: Default$9,
|
|
23792
|
+
DefaultNoCountry: DefaultNoCountry,
|
|
23793
|
+
Loading: Loading$2,
|
|
23794
|
+
Disabled: Disabled$1,
|
|
23795
|
+
Error: Error$2,
|
|
23796
|
+
Success: Success$1
|
|
23653
23797
|
});
|
|
23654
23798
|
|
|
23655
23799
|
const ReferralTableRewardsCell_stories = {
|
|
@@ -23865,23 +24009,23 @@ const tenRewardsCell = () => {
|
|
|
23865
24009
|
};
|
|
23866
24010
|
|
|
23867
24011
|
const ReferralTableRewardsCell$1 = /*#__PURE__*/Object.freeze({
|
|
23868
|
-
|
|
23869
|
-
|
|
23870
|
-
|
|
23871
|
-
|
|
23872
|
-
|
|
23873
|
-
|
|
23874
|
-
|
|
23875
|
-
|
|
23876
|
-
|
|
23877
|
-
|
|
23878
|
-
|
|
23879
|
-
|
|
23880
|
-
|
|
23881
|
-
|
|
23882
|
-
|
|
23883
|
-
|
|
23884
|
-
|
|
24012
|
+
__proto__: null,
|
|
24013
|
+
'default': ReferralTableRewardsCell_stories,
|
|
24014
|
+
PendingNoUnpend: PendingNoUnpend,
|
|
24015
|
+
PendingNoUnpendNoDetails: PendingNoUnpendNoDetails,
|
|
24016
|
+
PendingWithUnpend: PendingWithUnpend,
|
|
24017
|
+
AvailableNoExpiry: AvailableNoExpiry,
|
|
24018
|
+
AvailableWithExpiry: AvailableWithExpiry,
|
|
24019
|
+
Redeemed: Redeemed,
|
|
24020
|
+
Cancelled: Cancelled,
|
|
24021
|
+
Expired: Expired,
|
|
24022
|
+
EmptyCell: EmptyCell,
|
|
24023
|
+
oneRewardCell: oneRewardCell,
|
|
24024
|
+
twoRewardsCell: twoRewardsCell,
|
|
24025
|
+
threeRewardsCell: threeRewardsCell,
|
|
24026
|
+
fiveRewardsCell: fiveRewardsCell,
|
|
24027
|
+
eightRewardsCell: eightRewardsCell,
|
|
24028
|
+
tenRewardsCell: tenRewardsCell
|
|
23885
24029
|
});
|
|
23886
24030
|
|
|
23887
24031
|
const ReferralTable_stories = {
|
|
@@ -24358,17 +24502,17 @@ const FullRewardsTable = () => {
|
|
|
24358
24502
|
};
|
|
24359
24503
|
|
|
24360
24504
|
const ReferralTable$1 = /*#__PURE__*/Object.freeze({
|
|
24361
|
-
|
|
24362
|
-
|
|
24363
|
-
|
|
24364
|
-
|
|
24365
|
-
|
|
24366
|
-
|
|
24367
|
-
|
|
24368
|
-
|
|
24369
|
-
|
|
24370
|
-
|
|
24371
|
-
|
|
24505
|
+
__proto__: null,
|
|
24506
|
+
'default': ReferralTable_stories,
|
|
24507
|
+
SimpleUserTable: SimpleUserTable,
|
|
24508
|
+
HiddenLabelsTable: HiddenLabelsTable,
|
|
24509
|
+
CustomButtonTextTable: CustomButtonTextTable,
|
|
24510
|
+
FullUserTable: FullUserTable,
|
|
24511
|
+
LongCellTextTable: LongCellTextTable,
|
|
24512
|
+
LongColumnTextTable: LongColumnTextTable,
|
|
24513
|
+
EmptyTable: EmptyTable,
|
|
24514
|
+
LoadingTable: LoadingTable,
|
|
24515
|
+
FullRewardsTable: FullRewardsTable
|
|
24372
24516
|
});
|
|
24373
24517
|
|
|
24374
24518
|
const ReferralTableCell_stories = {
|
|
@@ -24434,14 +24578,14 @@ const RewardsCell = () => {
|
|
|
24434
24578
|
};
|
|
24435
24579
|
|
|
24436
24580
|
const ReferralTableCell$1 = /*#__PURE__*/Object.freeze({
|
|
24437
|
-
|
|
24438
|
-
|
|
24439
|
-
|
|
24440
|
-
|
|
24441
|
-
|
|
24442
|
-
|
|
24443
|
-
|
|
24444
|
-
|
|
24581
|
+
__proto__: null,
|
|
24582
|
+
'default': ReferralTableCell_stories,
|
|
24583
|
+
TableCell: TableCell,
|
|
24584
|
+
TableUserCell: TableUserCell,
|
|
24585
|
+
EmptyCell: EmptyCell$1,
|
|
24586
|
+
StatusCell: StatusCell,
|
|
24587
|
+
DateCell: DateCell,
|
|
24588
|
+
RewardsCell: RewardsCell
|
|
24445
24589
|
});
|
|
24446
24590
|
|
|
24447
24591
|
const UserName_stories = {
|
|
@@ -24459,10 +24603,10 @@ const Username = () => {
|
|
|
24459
24603
|
};
|
|
24460
24604
|
|
|
24461
24605
|
const UserName = /*#__PURE__*/Object.freeze({
|
|
24462
|
-
|
|
24463
|
-
|
|
24464
|
-
|
|
24465
|
-
|
|
24606
|
+
__proto__: null,
|
|
24607
|
+
'default': UserName_stories,
|
|
24608
|
+
DemoData: DemoData,
|
|
24609
|
+
Username: Username
|
|
24466
24610
|
});
|
|
24467
24611
|
|
|
24468
24612
|
const PasswordField_stories = {
|
|
@@ -24506,11 +24650,11 @@ const ValidationError = () => {
|
|
|
24506
24650
|
};
|
|
24507
24651
|
|
|
24508
24652
|
const PasswordField = /*#__PURE__*/Object.freeze({
|
|
24509
|
-
|
|
24510
|
-
|
|
24511
|
-
|
|
24512
|
-
|
|
24513
|
-
|
|
24653
|
+
__proto__: null,
|
|
24654
|
+
'default': PasswordField_stories,
|
|
24655
|
+
Start: Start,
|
|
24656
|
+
EmptyError: EmptyError,
|
|
24657
|
+
ValidationError: ValidationError
|
|
24514
24658
|
});
|
|
24515
24659
|
|
|
24516
24660
|
/**
|
|
@@ -25650,21 +25794,21 @@ const ProgressBarStepsRepeatableFinite = () => {
|
|
|
25650
25794
|
};
|
|
25651
25795
|
|
|
25652
25796
|
const TaskCard$2 = /*#__PURE__*/Object.freeze({
|
|
25653
|
-
|
|
25654
|
-
|
|
25655
|
-
|
|
25656
|
-
|
|
25657
|
-
|
|
25658
|
-
|
|
25659
|
-
|
|
25660
|
-
|
|
25661
|
-
|
|
25662
|
-
|
|
25663
|
-
|
|
25664
|
-
|
|
25665
|
-
|
|
25666
|
-
|
|
25667
|
-
|
|
25797
|
+
__proto__: null,
|
|
25798
|
+
'default': TaskCard_stories,
|
|
25799
|
+
TaskCard: TaskCard$1,
|
|
25800
|
+
TaskCardNotRepeatable: TaskCardNotRepeatable,
|
|
25801
|
+
TaskCardRepeatable: TaskCardRepeatable,
|
|
25802
|
+
TaskCardRepeatableFinite: TaskCardRepeatableFinite,
|
|
25803
|
+
TaskCardEndDate: TaskCardEndDate,
|
|
25804
|
+
TaskCardLoading: TaskCardLoading,
|
|
25805
|
+
TaskCardNotStarted: TaskCardNotStarted,
|
|
25806
|
+
TaskCardEnded: TaskCardEnded,
|
|
25807
|
+
ProgressBar: ProgressBar$1,
|
|
25808
|
+
ProgressBarSteps: ProgressBarSteps,
|
|
25809
|
+
ProgressBarRepeatable: ProgressBarRepeatable,
|
|
25810
|
+
ProgressBarStepsRepeatable: ProgressBarStepsRepeatable,
|
|
25811
|
+
ProgressBarStepsRepeatableFinite: ProgressBarStepsRepeatableFinite
|
|
25668
25812
|
});
|
|
25669
25813
|
|
|
25670
25814
|
const portalTemplate = "<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-graphql-client-provider\r\n domain=\"https://managed-identity.saasquatch.com\"\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 </sqm-graphql-client-provider>\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 <sqb-widget\r\n widget-type=\"p/referral-program/w/referrerWidget\"\r\n track-loads=\"true\"\r\n ></sqb-widget>\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-graphql-client-provider\r\n domain=\"https://managed-identity.saasquatch.com\"\r\n >\r\n <sqm-portal-change-password></sqm-portal-change-password>\r\n </sqm-graphql-client-provider>\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";
|
|
@@ -28734,16 +28878,16 @@ function DefaultTemplateView(props) {
|
|
|
28734
28878
|
gridTemplateColumns: "repeat(9, 80px)",
|
|
28735
28879
|
gridGap: "10px",
|
|
28736
28880
|
} },
|
|
28737
|
-
index.h("button", { onClick: () => index_module.
|
|
28738
|
-
props.leadSubmit && (index.h("button", { onClick: () => index_module.
|
|
28739
|
-
index.h("button", { onClick: () => index_module.
|
|
28740
|
-
index.h("button", { onClick: () => index_module.
|
|
28741
|
-
index.h("button", { onClick: () => index_module.
|
|
28742
|
-
index.h("button", { onClick: () => index_module.
|
|
28743
|
-
index.h("button", { onClick: () => index_module.
|
|
28744
|
-
index.h("button", { onClick: () => index_module.
|
|
28745
|
-
index.h("button", { onClick: () => index_module.
|
|
28746
|
-
index.h("button", { onClick: () => index_module.
|
|
28881
|
+
index.h("button", { onClick: () => index_module.mn.push("/") }, "Dashboard"),
|
|
28882
|
+
props.leadSubmit && (index.h("button", { onClick: () => index_module.mn.push("/refer") }, "Submit a Referral")),
|
|
28883
|
+
index.h("button", { onClick: () => index_module.mn.push("/activity") }, "Activity"),
|
|
28884
|
+
index.h("button", { onClick: () => index_module.mn.push("/editProfile") }, "Edit Profile"),
|
|
28885
|
+
index.h("button", { onClick: () => index_module.mn.push("/login") }, "Login"),
|
|
28886
|
+
index.h("button", { onClick: () => index_module.mn.push("/register") }, "Register"),
|
|
28887
|
+
index.h("button", { onClick: () => index_module.mn.push("/emailVerification") }, "Email Verification"),
|
|
28888
|
+
index.h("button", { onClick: () => index_module.mn.push("/verifyEmail") }, "Verify Email"),
|
|
28889
|
+
index.h("button", { onClick: () => index_module.mn.push("/forgotPassword") }, "Forgot Password"),
|
|
28890
|
+
index.h("button", { onClick: () => index_module.mn.push("/resetPassword") }, "Reset Password")),
|
|
28747
28891
|
index.h("br", null),
|
|
28748
28892
|
index.h("div", { innerHTML: states.previewTemplate })));
|
|
28749
28893
|
}
|
|
@@ -28816,24 +28960,24 @@ const VerifyEmail = createHookStory(() => {
|
|
|
28816
28960
|
});
|
|
28817
28961
|
|
|
28818
28962
|
const PortalTemplates = /*#__PURE__*/Object.freeze({
|
|
28819
|
-
|
|
28820
|
-
|
|
28821
|
-
|
|
28822
|
-
|
|
28823
|
-
|
|
28824
|
-
|
|
28825
|
-
|
|
28826
|
-
|
|
28827
|
-
|
|
28828
|
-
|
|
28829
|
-
|
|
28830
|
-
|
|
28831
|
-
|
|
28832
|
-
|
|
28833
|
-
|
|
28834
|
-
|
|
28835
|
-
|
|
28836
|
-
|
|
28963
|
+
__proto__: null,
|
|
28964
|
+
'default': PortalTemplates_stories,
|
|
28965
|
+
DefaultPortal: DefaultPortal,
|
|
28966
|
+
MultiProgramPortal: MultiProgramPortal,
|
|
28967
|
+
LeadSubmitPortal: LeadSubmitPortal,
|
|
28968
|
+
Login: Login,
|
|
28969
|
+
ForgotPassword: ForgotPassword,
|
|
28970
|
+
Register: Register,
|
|
28971
|
+
Dashboard: Dashboard$1,
|
|
28972
|
+
LeadSubmitIframe: LeadSubmitIframe,
|
|
28973
|
+
Activity: Activity$1,
|
|
28974
|
+
EditProfile: EditProfile$3,
|
|
28975
|
+
ResetPassword: ResetPassword,
|
|
28976
|
+
EmailVerification: EmailVerification,
|
|
28977
|
+
EmailVerified: EmailVerified,
|
|
28978
|
+
Widget: Widget,
|
|
28979
|
+
ResetPasswordEmail: ResetPasswordEmail,
|
|
28980
|
+
VerifyEmail: VerifyEmail
|
|
28837
28981
|
});
|
|
28838
28982
|
|
|
28839
28983
|
const ProgramMenu_stories = {
|
|
@@ -28874,12 +29018,12 @@ const ProgramMenuWithSwitch = createHookStory(() => {
|
|
|
28874
29018
|
});
|
|
28875
29019
|
|
|
28876
29020
|
const ProgramMenu$1 = /*#__PURE__*/Object.freeze({
|
|
28877
|
-
|
|
28878
|
-
|
|
28879
|
-
|
|
28880
|
-
|
|
28881
|
-
|
|
28882
|
-
|
|
29021
|
+
__proto__: null,
|
|
29022
|
+
'default': ProgramMenu_stories,
|
|
29023
|
+
OneProgram: OneProgram,
|
|
29024
|
+
TwoProgram: TwoProgram,
|
|
29025
|
+
FiveProgram: FiveProgram,
|
|
29026
|
+
ProgramMenuWithSwitch: ProgramMenuWithSwitch
|
|
28883
29027
|
});
|
|
28884
29028
|
|
|
28885
29029
|
const PoweredByImg_stories = {
|
|
@@ -28896,11 +29040,11 @@ const CustomWidthAndHeight = () => {
|
|
|
28896
29040
|
};
|
|
28897
29041
|
|
|
28898
29042
|
const PoweredByImg = /*#__PURE__*/Object.freeze({
|
|
28899
|
-
|
|
28900
|
-
|
|
28901
|
-
|
|
28902
|
-
|
|
28903
|
-
|
|
29043
|
+
__proto__: null,
|
|
29044
|
+
'default': PoweredByImg_stories,
|
|
29045
|
+
Default: Default$a,
|
|
29046
|
+
CustomColor: CustomColor,
|
|
29047
|
+
CustomWidthAndHeight: CustomWidthAndHeight
|
|
28904
29048
|
});
|
|
28905
29049
|
|
|
28906
29050
|
const scenario$6 = "Feature: Portal Footer\r\n\r\n Background: A user is viewing the portal\r\n Given a hosted portal\r\n And a user is viewing the portal\r\n And the portal has a footer\r\n\r\n Scenario Outline: FAQ and T&C links/text are configurable and open in a new page when clicked\r\n Given the footer has prop \"terms-link\" with value \"https://example.com/terms\"\r\n And prop \"terms-text\" with value \"Terms and Conditions\"\r\n And prop \"faq-link\" with value \"https://example.com/FAQ\"\r\n And prop \"faq-text\" with value \"Visit FAQ\"\r\n When a user clicks on the \"Visit FAQ\" link\r\n Then they will be redirected to \"https://example.com/FAQ\" in a new page\r\n When they go back to the portal\r\n And click on the \"Terms and Conditions\" link\r\n Then they will be redirected to \"https://example.com/terms\" in a new page\r\n\r\n Scenario Outline: FAQ/T&C Links are not shown if a link is not provided\r\n Given the footer does not have <linkProp>\r\n But it <mayHave> <textProp> with <value>\r\n Then the <link> will not be shown in the footer\r\n Examples:\r\n | linkProp | mayHave | textProp | value | link |\r\n | terms-link | has | termsText | Terms and Conditions | T&C Link |\r\n | faq-link | has | faqText | Visit FAQ | FAQ Link |\r\n | terms-link | doesn't have | | | T&C Link |\r\n | faq-link | doesn't have | | | FAQ Link |\r\n\r\n Scenario Outline: The support email and text is configurable but has a default\r\n Given the footer <mayHave> <emailPropWithValue>\r\n And the footer <mayAlsoHave> <textPropWithValue>\r\n Then the footer's support email text is <renderedEmailText>\r\n And the email address will be a mailto link with <mailtoEmail>\r\n When the user clicks on the email address mailto Link\r\n Then the users preferred email client will open with a draft email to <mailtoEmail>\r\n Examples:\r\n | mayHave | emailPropWithValue | mayAlsoHave | textPropWithValue | mailtoEmail | renderedEmailText |\r\n | has | support@saasquatch.com | has | For support please contact {email} | support@saasquatch.com | For support please contact support@saasquatch.com |\r\n | doesn't have | N/A | doesn't have | N/A | support@example.com | For program support, contact support@example.com |\r\n\r\n Scenario Outline: Powered by SaaSquatch is shown by default\r\n Given the footer <mayHaveProp> \"show-powered-by\" with <value>\r\n Then the powered by SaaSquatch image <mayBeShown>\r\n Examples:\r\n | mayHaveProp | value | mayBeShown |\r\n | has prop | true | is shown |\r\n | has prop | false | isn't shown |\r\n | has prop | test | is shown |\r\n | has prop | | is shown |\r\n | doesn't have prop | | is shown |\r\n\r\n Scenario: Powered By Saasquatch links out to \"https://saasquatch.com\"\r\n Given the footer has the powered by SaaSquatch image\r\n When a user clicks on it\r\n Then they will be redirected to \"https://saasquatch.com\" in a new page";
|
|
@@ -28928,13 +29072,13 @@ const FooterWithTermsAndFAQ = () => (index.h(sqmPortalFooterView.PortalFooterVie
|
|
|
28928
29072
|
const FooterNoPoweredBy = () => (index.h(sqmPortalFooterView.PortalFooterView, Object.assign({}, defaultProps$9, { termsLink: "https://example.com", termsText: "Terms and Conditions", faqLink: "https://example.com", faqText: "FAQ", showPoweredBy: false })));
|
|
28929
29073
|
|
|
28930
29074
|
const PortalFooter = /*#__PURE__*/Object.freeze({
|
|
28931
|
-
|
|
28932
|
-
|
|
28933
|
-
|
|
28934
|
-
|
|
28935
|
-
|
|
28936
|
-
|
|
28937
|
-
|
|
29075
|
+
__proto__: null,
|
|
29076
|
+
'default': PortalFooter_stories,
|
|
29077
|
+
DefaultFooter: DefaultFooter,
|
|
29078
|
+
FooterWithTerms: FooterWithTerms,
|
|
29079
|
+
FooterWithFAQ: FooterWithFAQ,
|
|
29080
|
+
FooterWithTermsAndFAQ: FooterWithTermsAndFAQ,
|
|
29081
|
+
FooterNoPoweredBy: FooterNoPoweredBy
|
|
28938
29082
|
});
|
|
28939
29083
|
|
|
28940
29084
|
const scenario$7 = "Feature: Hero Unit\r\n\r\n Background: A portal with a hero unit exists\r\n Given a hosted portal\r\n And the portal has hero unit on the login page\r\n And a user is viewing the login page\r\n\r\n Scenario: The hero unit defaults to a single column layout\r\n Given a hero unit does not have a \"columns\" prop\r\n But the following html is wrapped by the hero unit\r\n \"\"\"\r\n <sqm-portal-login></sqm-portal-login>\r\n <div slot=\"secondary-column\">\r\n <h1 style=\"text-align:center\">Get Referring!</h1>\r\n <p style=\"text-align:center\">\r\n Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do\r\n eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim\r\n ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut\r\n aliquip ex ea commodo consequat. Duis aute irure dolor in\r\n reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla\r\n pariatur.\r\n </p>\r\n </div>\r\n \"\"\"\r\n Then only a single column will be displayed\r\n And within it will be the login component\r\n\r\n Scenario Outline: The hero unit supports single or dual column layouts\r\n Given a hero unit with prop \"columns\" having <columnValue>\r\n And it wraps <html>\r\n Then the hero unit displays <columnValue> columns\r\n Examples:\r\n | columnValue | html |\r\n | 1 | <h1>Column 1!</h1> |\r\n | 2 | <h1>Column 1!</h1><div slot=\"secondary-column\"><h1 style=\"text-align:center\">Column 2!</h1></div> |\r\n\r\n Scenario: HTML to be displayed in the second column comes from the \"secondary-column\" slot\r\n Given a hero unit with \"columns\" \"2\"\r\n And the following html\r\n \"\"\"\r\n <h1>Column 1!</h1>\r\n <div>\r\n <h1 style=\"text-align:center\">Column 2!</h1>\r\n </div>\r\n \"\"\"\r\n When the hero unit is rendered\r\n Then only one column is displayed with content\r\n And column 1 will contain the \"Column 1!\" text\r\n And column 1 will contain the \"Column 2!\" text\r\n When the div for column two is updated to have 'slot=\"secondary-column\"'\r\n Then the two columns are displayed with content\r\n And column 1 will contain the \"Column 1!\" text\r\n And column 2 will contain the \"Column 2!\" text\r\n\r\n Scenario Outline: A background for the hero unit can be set as an image or colour\r\n Given a hero unit with <backgroundPropValue>\r\n Then the background will be <background>\r\n Examples:\r\n | background | background |\r\n | https://images.unsplash.com/photo-1599676821464-3555954838d | image of misty mountains |\r\n | LightSlateGrey | light slate grey |\r\n | #00FF00 | green |\r\n | rgb(128,0,128) | purple |\r\n\r\n Scenario Outline: Wrap Direction can be configured for mobile experiences\r\n Given a hero unit with the following HTML\r\n \"\"\"\r\n <h1>Column 1!</h1>\r\n <div slot=\"secondary-column\">\r\n <h1 style=\"text-align:center\">Column 2!</h1>\r\n </div>\r\n \"\"\"\r\n And prop \"wrap-direction\" has <value>\r\n When the window width is less than 600px\r\n Then the two columns will stack\r\n And <column> will be on top\r\n Examples:\r\n | value | column |\r\n | wrap | 1 |\r\n | wrap-reverse | 2 |\r\n | | 1 |";
|
|
@@ -29106,17 +29250,17 @@ const TwoColumnLoginWithImgElement = () => {
|
|
|
29106
29250
|
};
|
|
29107
29251
|
|
|
29108
29252
|
const Hero = /*#__PURE__*/Object.freeze({
|
|
29109
|
-
|
|
29110
|
-
|
|
29111
|
-
|
|
29112
|
-
|
|
29113
|
-
|
|
29114
|
-
|
|
29115
|
-
|
|
29116
|
-
|
|
29117
|
-
|
|
29118
|
-
|
|
29119
|
-
|
|
29253
|
+
__proto__: null,
|
|
29254
|
+
'default': Hero_stories,
|
|
29255
|
+
LoginOneColumn: LoginOneColumn,
|
|
29256
|
+
LoginOneColumnWithColor: LoginOneColumnWithColor,
|
|
29257
|
+
LoginOneColumnWithImage: LoginOneColumnWithImage,
|
|
29258
|
+
TwoColumnLoginLargePadding: TwoColumnLoginLargePadding,
|
|
29259
|
+
TwoColumnLoginMediumPadding: TwoColumnLoginMediumPadding,
|
|
29260
|
+
TwoColumnLoginSmallPadding: TwoColumnLoginSmallPadding,
|
|
29261
|
+
TwoColumnLoginNoPadding: TwoColumnLoginNoPadding,
|
|
29262
|
+
TwoColumnLoginReverseWrap: TwoColumnLoginReverseWrap,
|
|
29263
|
+
TwoColumnLoginWithImgElement: TwoColumnLoginWithImgElement
|
|
29120
29264
|
});
|
|
29121
29265
|
|
|
29122
29266
|
const scenario$8 = "@owner:sam\r\n@author:sam\r\n\r\nFeature: Referral Iframe\r\n\r\n Used to provide an external form for submitting referral leads using the current user's referral code\r\n\r\n Background: A user is logged in\r\n Given there is a logged in user\r\n\r\n @motivating\r\n Scenario: Referral code is passed to the iframe as a query parameter\r\n Given the \"iframe-src\" is \"https://example.com\"\r\n And the user has navigated to \"/refer\"\r\n And the user's referral code is \"BOBBYREFER\"\r\n When the iframe content is loaded\r\n Then the iframe url will be \"https://example.com?rsCode=BOBBYREFER\"\r\n\r\n @ui\r\n Scenario Outline: The height and width of the iFrame can be controlled via props\r\n Given the \"iframe-src\" is \"https://example.com\"\r\n And the iframe content is 1000x1000\r\n And the \"iframe-height\" is set to <heightValue>\r\n And the \"iframe-width\" is set to <widthValue>\r\n Then the content of the iframe will be displayed with scrollbars\r\n And the dimension of the iFrame displayed will be 500x500\r\n When the \"iframe-height\" is set to <heightValue>\r\n And the \"iframe-width\" is set to <widthValue>\r\n Then the full content of the iframe will be displayed on the page\r\n And the dimension of the iFrame displayed will be 1000x1000\r\n Examples:\r\n | heightValue | widthValue |\r\n | 500px | 500px |\r\n | 50% | 50% |\r\n\r\n @minutae\r\n Scenario Outline: The iFrame will fail fast if a iFrame source isn't provided\r\n Given \"iframe-src\" <mayBeAnAttribute>\r\n And it <mayHaveValue>\r\n When a user views the referral iFrame component\r\n Then an alert with an error message is displayed in place of the iFrame\r\n And it has a details section\r\n When \"More details\" is clicked\r\n Then the following information will be displayed\r\n | component being used |\r\n | missing attribute(s) |\r\n\r\n Examples:\r\n | mayBeAnAttribute | mayHaveValue |\r\n | is not an attribute | N/A |\r\n | is an attribute | \"\" |\r\n | is an attribute | |";
|
|
@@ -29149,10 +29293,10 @@ const ReferralIframeError = () => {
|
|
|
29149
29293
|
};
|
|
29150
29294
|
|
|
29151
29295
|
const ReferralIframe$1 = /*#__PURE__*/Object.freeze({
|
|
29152
|
-
|
|
29153
|
-
|
|
29154
|
-
|
|
29155
|
-
|
|
29296
|
+
__proto__: null,
|
|
29297
|
+
'default': ReferralIframe_stories,
|
|
29298
|
+
ReferralIframe: ReferralIframe,
|
|
29299
|
+
ReferralIframeError: ReferralIframeError
|
|
29156
29300
|
});
|
|
29157
29301
|
|
|
29158
29302
|
const scenario$9 = "@owner:sam\r\n@author:sam\r\n\r\nFeature: Name Fields\r\n\r\n Fields to be used to fill the first and last name of a user during registration\r\n\r\n Background:\r\n Given the current page is \"/register\"\r\n\r\n @motivating\r\n Scenario: Both first name and last name are required\r\n Given the email field has valid input\r\n And the password field has valid input\r\n And first name field is empty\r\n And last name field is empty\r\n When register is clicked\r\n Then the name fields will be highlighted in red\r\n And the error messages will say \"Cannot be empty\"\r\n\r\n @motivating\r\n Scenario: First and last name are upserted with the SaaSquatch user\r\n Given all fields have been filled with data\r\n | firstName | lastName | email | password |\r\n | Bob | Testerson | bob@example.com | SecurePassword1 |\r\n When register is clicked\r\n Then the email verification page will be loaded\r\n And the user will be upserted\r\n And the SaaSquatch user will contain data\r\n | firstName | lastName | email |\r\n | Bob | Testerson | bob@example.com |\r\n\r\n";
|
|
@@ -29192,13 +29336,13 @@ const NameFieldsWithErrors = () => {
|
|
|
29192
29336
|
};
|
|
29193
29337
|
|
|
29194
29338
|
const NameFields$1 = /*#__PURE__*/Object.freeze({
|
|
29195
|
-
|
|
29196
|
-
|
|
29197
|
-
|
|
29198
|
-
|
|
29339
|
+
__proto__: null,
|
|
29340
|
+
'default': NameFields_stories,
|
|
29341
|
+
NameFields: NameFields,
|
|
29342
|
+
NameFieldsWithErrors: NameFieldsWithErrors
|
|
29199
29343
|
});
|
|
29200
29344
|
|
|
29201
|
-
const baseResponse = (data, stage = "chooseReward", selectedItem = null, selectedStep = null, error = false, loading = false) => ({
|
|
29345
|
+
const baseResponse = (data, stage = "chooseReward", selectedItem = null, selectedStep = null, error = false, loading = false, fueltank = null) => ({
|
|
29202
29346
|
states: {
|
|
29203
29347
|
content: {
|
|
29204
29348
|
text: {
|
|
@@ -29211,15 +29355,18 @@ const baseResponse = (data, stage = "chooseReward", selectedItem = null, selecte
|
|
|
29211
29355
|
loading: loading,
|
|
29212
29356
|
selectedItem: selectedItem,
|
|
29213
29357
|
selectedStep: selectedStep,
|
|
29358
|
+
open: false,
|
|
29214
29359
|
},
|
|
29215
29360
|
data: {
|
|
29216
29361
|
exchangeList: data,
|
|
29362
|
+
fuelTankCode: fueltank,
|
|
29217
29363
|
},
|
|
29218
29364
|
callbacks: {
|
|
29219
29365
|
exchangeReward: null,
|
|
29220
29366
|
resetState: null,
|
|
29221
29367
|
setStage: null,
|
|
29222
29368
|
setExchangeState: null,
|
|
29369
|
+
copyFuelTankCode: null,
|
|
29223
29370
|
refs: null,
|
|
29224
29371
|
},
|
|
29225
29372
|
refs: null,
|
|
@@ -29268,12 +29415,12 @@ const name = (props) => ({
|
|
|
29268
29415
|
const fixedValue = (props) => ({
|
|
29269
29416
|
prettySourceValue: props,
|
|
29270
29417
|
});
|
|
29271
|
-
const variableValue = (min, max,
|
|
29418
|
+
const variableValue = (min, max, unit) => ({
|
|
29272
29419
|
ruleType: "VARIABLE_CREDIT_REWARD",
|
|
29273
29420
|
sourceMinValue: min,
|
|
29274
|
-
prettySourceMinValue: min + " " +
|
|
29421
|
+
prettySourceMinValue: min + " " + unit,
|
|
29275
29422
|
sourceMaxValue: max,
|
|
29276
|
-
prettySourceMaxValue: max + " " +
|
|
29423
|
+
prettySourceMaxValue: max + " " + unit,
|
|
29277
29424
|
});
|
|
29278
29425
|
const data = [
|
|
29279
29426
|
{
|
|
@@ -29287,7 +29434,7 @@ const data = [
|
|
|
29287
29434
|
...selected,
|
|
29288
29435
|
...name("Visa® Prepaid Card USD"),
|
|
29289
29436
|
...imageUrl("https://i.imgur.com/veHErQX.png"),
|
|
29290
|
-
...variableValue(20, 80, "
|
|
29437
|
+
...variableValue(20, 80, "Points"),
|
|
29291
29438
|
},
|
|
29292
29439
|
{
|
|
29293
29440
|
...baseReward$2,
|
|
@@ -29305,7 +29452,7 @@ const data = [
|
|
|
29305
29452
|
...baseReward$2,
|
|
29306
29453
|
...name("Variable amount of store credit"),
|
|
29307
29454
|
...imageUrl("https://i.imgur.com/Jn2fE0s.png"),
|
|
29308
|
-
...variableValue(20, 100, "
|
|
29455
|
+
...variableValue(20, 100, "Points"),
|
|
29309
29456
|
},
|
|
29310
29457
|
{
|
|
29311
29458
|
...baseReward$2,
|
|
@@ -29317,9 +29464,9 @@ const data = [
|
|
|
29317
29464
|
{
|
|
29318
29465
|
...baseReward$2,
|
|
29319
29466
|
...usTax,
|
|
29320
|
-
...name("$1000 Store credit"),
|
|
29467
|
+
...name("$1000 Store credit with a really super long name in the front page"),
|
|
29321
29468
|
...imageUrl("https://i.imgur.com/y9HSls1.png"),
|
|
29322
|
-
...fixedValue("2000 SaaSquatch Points"),
|
|
29469
|
+
...fixedValue("2000 SaaSquatch Long Points"),
|
|
29323
29470
|
},
|
|
29324
29471
|
{
|
|
29325
29472
|
...baseReward$2,
|
|
@@ -29338,7 +29485,7 @@ const rewardExchangeSelected = {
|
|
|
29338
29485
|
...selected,
|
|
29339
29486
|
...name("Visa® Prepaid Card USD"),
|
|
29340
29487
|
...imageUrl("https://i.imgur.com/veHErQX.png"),
|
|
29341
|
-
...variableValue(20, 80, "
|
|
29488
|
+
...variableValue(20, 80, "Points"),
|
|
29342
29489
|
}),
|
|
29343
29490
|
};
|
|
29344
29491
|
const baseStep = (dst, dstUnit, src, srcUnit, available = true) => ({
|
|
@@ -29355,13 +29502,13 @@ const chooseAmountVariable = {
|
|
|
29355
29502
|
...baseReward$2,
|
|
29356
29503
|
...name("Visa® Prepaid Card USD"),
|
|
29357
29504
|
...imageUrl("https://i.imgur.com/veHErQX.png"),
|
|
29358
|
-
...variableValue(20, 80, "
|
|
29505
|
+
...variableValue(20, 80, "Points"),
|
|
29359
29506
|
steps: [
|
|
29360
|
-
baseStep(20, "$", 40, "
|
|
29361
|
-
baseStep(30, "$", 60, "
|
|
29362
|
-
baseStep(40, "$", 80, "
|
|
29363
|
-
baseStep(50, "$", 100, "
|
|
29364
|
-
baseStep(60, "$", 120, "
|
|
29507
|
+
baseStep(20, "$", 40, "Points"),
|
|
29508
|
+
baseStep(30, "$", 60, "Points"),
|
|
29509
|
+
baseStep(40, "$", 80, "Points"),
|
|
29510
|
+
baseStep(50, "$", 100, "Points"),
|
|
29511
|
+
baseStep(60, "$", 120, "Points"),
|
|
29365
29512
|
],
|
|
29366
29513
|
}),
|
|
29367
29514
|
};
|
|
@@ -29386,16 +29533,16 @@ const confirmVariable = {
|
|
|
29386
29533
|
...baseReward$2,
|
|
29387
29534
|
...name("Visa® Prepaid Card USD"),
|
|
29388
29535
|
...imageUrl("https://i.imgur.com/veHErQX.png"),
|
|
29389
|
-
...variableValue(20, 80, "
|
|
29390
|
-
}, baseStep(20, "$", 40, "
|
|
29536
|
+
...variableValue(20, 80, "Points"),
|
|
29537
|
+
}, baseStep(20, "$", 40, "Points")),
|
|
29391
29538
|
};
|
|
29392
29539
|
const error$1 = {
|
|
29393
29540
|
...baseResponse(data, "confirmation", {
|
|
29394
29541
|
...baseReward$2,
|
|
29395
29542
|
...name("Visa® Prepaid Card USD"),
|
|
29396
29543
|
...imageUrl("https://i.imgur.com/veHErQX.png"),
|
|
29397
|
-
...variableValue(20, 80, "
|
|
29398
|
-
}, baseStep(20, "$", 40, "
|
|
29544
|
+
...variableValue(20, 80, "Points"),
|
|
29545
|
+
}, baseStep(20, "$", 40, "Points"), true),
|
|
29399
29546
|
};
|
|
29400
29547
|
const success = {
|
|
29401
29548
|
...baseResponse(data, "success", {
|
|
@@ -29405,6 +29552,22 @@ const success = {
|
|
|
29405
29552
|
...fixedValue("30 SaaSquatch Points"),
|
|
29406
29553
|
}),
|
|
29407
29554
|
};
|
|
29555
|
+
const success2 = {
|
|
29556
|
+
...baseResponse(data, "success", {
|
|
29557
|
+
...baseReward$2,
|
|
29558
|
+
...name("Visa® Prepaid Card USD"),
|
|
29559
|
+
...imageUrl("https://i.imgur.com/93BvEgH.png"),
|
|
29560
|
+
...variableValue(20, 80, "Points"),
|
|
29561
|
+
}, baseStep(20, "$", 40, "Points")),
|
|
29562
|
+
};
|
|
29563
|
+
const success3 = {
|
|
29564
|
+
...baseResponse(data, "success", {
|
|
29565
|
+
...baseReward$2,
|
|
29566
|
+
...name("A very exclusive gift box"),
|
|
29567
|
+
...imageUrl("https://i.imgur.com/93BvEgH.png"),
|
|
29568
|
+
...fixedValue("30 SaaSquatch Points"),
|
|
29569
|
+
}, undefined, undefined, undefined, "4ah2-hh46-gk7r"),
|
|
29570
|
+
};
|
|
29408
29571
|
const loading = {
|
|
29409
29572
|
...baseResponse(null, "chooseReward", null, null, false, true),
|
|
29410
29573
|
};
|
|
@@ -29413,8 +29576,8 @@ const RewardExchangeList_stories = {
|
|
|
29413
29576
|
title: "Components/Reward Exchange List",
|
|
29414
29577
|
};
|
|
29415
29578
|
const StoryBase = (props) => () => {
|
|
29416
|
-
return index.h(Resizer, null,
|
|
29417
|
-
index.h(RewardExchangeView, Object.assign({}, props)));
|
|
29579
|
+
return (index.h(Resizer, null,
|
|
29580
|
+
index.h(RewardExchangeView, Object.assign({}, props))));
|
|
29418
29581
|
};
|
|
29419
29582
|
const ChooseReward = StoryBase(rewardExchange);
|
|
29420
29583
|
const ChooseRewardSelected = StoryBase(rewardExchangeSelected);
|
|
@@ -29424,38 +29587,79 @@ const Confirm = StoryBase(confirmFixed);
|
|
|
29424
29587
|
const ConfirmVariable = StoryBase(confirmVariable);
|
|
29425
29588
|
const Error$3 = StoryBase(error$1);
|
|
29426
29589
|
const Success$2 = StoryBase(success);
|
|
29590
|
+
const SuccessVariable = StoryBase(success2);
|
|
29591
|
+
const SuccessPromo = StoryBase(success3);
|
|
29427
29592
|
const Loading$3 = StoryBase(loading);
|
|
29428
29593
|
|
|
29429
29594
|
const RewardExchangeList = /*#__PURE__*/Object.freeze({
|
|
29430
|
-
|
|
29431
|
-
|
|
29432
|
-
|
|
29433
|
-
|
|
29434
|
-
|
|
29435
|
-
|
|
29436
|
-
|
|
29437
|
-
|
|
29438
|
-
|
|
29439
|
-
|
|
29440
|
-
|
|
29595
|
+
__proto__: null,
|
|
29596
|
+
'default': RewardExchangeList_stories,
|
|
29597
|
+
ChooseReward: ChooseReward,
|
|
29598
|
+
ChooseRewardSelected: ChooseRewardSelected,
|
|
29599
|
+
ChooseAmount: ChooseAmount,
|
|
29600
|
+
ChooseAmountVariable: ChooseAmountVariable,
|
|
29601
|
+
Confirm: Confirm,
|
|
29602
|
+
ConfirmVariable: ConfirmVariable,
|
|
29603
|
+
Error: Error$3,
|
|
29604
|
+
Success: Success$2,
|
|
29605
|
+
SuccessVariable: SuccessVariable,
|
|
29606
|
+
SuccessPromo: SuccessPromo,
|
|
29607
|
+
Loading: Loading$3
|
|
29441
29608
|
});
|
|
29442
29609
|
|
|
29443
29610
|
const ProgramExplainer_stories = {
|
|
29444
29611
|
title: "Components/Program Explainer",
|
|
29445
29612
|
};
|
|
29446
|
-
const
|
|
29447
|
-
|
|
29448
|
-
|
|
29449
|
-
|
|
29450
|
-
|
|
29451
|
-
|
|
29452
|
-
|
|
29613
|
+
const props$2 = {
|
|
29614
|
+
header: "Klip Rewards",
|
|
29615
|
+
cardTitle: "Earn rewards with our loyalty program",
|
|
29616
|
+
description: "Earn points by completing tasks like uploading your first video or sharing videos with friends. Use your points to redeem rewards like one free month of Klip Enterprise or two plane tickets to anywhere in North America.",
|
|
29617
|
+
color: "black",
|
|
29618
|
+
background: "#F3F0EC",
|
|
29619
|
+
};
|
|
29620
|
+
const steps1 = {
|
|
29621
|
+
cardTitle: "Invite your friends to Klip",
|
|
29622
|
+
description: "Earn up to $1200 in rewards for each referral",
|
|
29623
|
+
color: "white",
|
|
29624
|
+
background: "#5B3EDA",
|
|
29625
|
+
icon: "person-plus-fill",
|
|
29626
|
+
};
|
|
29627
|
+
const steps2 = {
|
|
29628
|
+
cardTitle: "If your friend signs up for a Klip Business plan",
|
|
29629
|
+
description: "Get a $50 VISA giftcard when they pay for their first month",
|
|
29630
|
+
color: "black",
|
|
29631
|
+
background: "#F3CC66",
|
|
29632
|
+
icon: "server",
|
|
29633
|
+
};
|
|
29634
|
+
const steps3 = {
|
|
29635
|
+
cardTitle: "If your friend signs up for a Klip Enterprise plan",
|
|
29636
|
+
description: "Get up to $1200 in rewards - a $200 VISA giftcard when our sales team qualifies them as a good fit for Klip, and a $1000 VISA giftcard when they become a paying customer",
|
|
29637
|
+
color: "black",
|
|
29638
|
+
background: "#D3CCF5",
|
|
29639
|
+
icon: "people-fill",
|
|
29640
|
+
};
|
|
29641
|
+
const OneStep = () => {
|
|
29642
|
+
return (index.h(sqmProgramExplainerView.ProgramExplainerView, Object.assign({}, props$2),
|
|
29643
|
+
index.h(sqmProgramExplainerStepView.ProgramExplainerStepView, Object.assign({}, steps1))));
|
|
29644
|
+
};
|
|
29645
|
+
const TwoSteps = () => {
|
|
29646
|
+
return (index.h(sqmProgramExplainerView.ProgramExplainerView, Object.assign({}, props$2),
|
|
29647
|
+
index.h(sqmProgramExplainerStepView.ProgramExplainerStepView, Object.assign({}, steps1)),
|
|
29648
|
+
index.h(sqmProgramExplainerStepView.ProgramExplainerStepView, Object.assign({}, steps2))));
|
|
29649
|
+
};
|
|
29650
|
+
const ThreeSteps = () => {
|
|
29651
|
+
return (index.h(sqmProgramExplainerView.ProgramExplainerView, Object.assign({}, props$2),
|
|
29652
|
+
index.h(sqmProgramExplainerStepView.ProgramExplainerStepView, Object.assign({}, steps1)),
|
|
29653
|
+
index.h(sqmProgramExplainerStepView.ProgramExplainerStepView, Object.assign({}, steps2)),
|
|
29654
|
+
index.h(sqmProgramExplainerStepView.ProgramExplainerStepView, Object.assign({}, steps3))));
|
|
29453
29655
|
};
|
|
29454
29656
|
|
|
29455
29657
|
const ProgramExplainer = /*#__PURE__*/Object.freeze({
|
|
29456
|
-
|
|
29457
|
-
|
|
29458
|
-
|
|
29658
|
+
__proto__: null,
|
|
29659
|
+
'default': ProgramExplainer_stories,
|
|
29660
|
+
OneStep: OneStep,
|
|
29661
|
+
TwoSteps: TwoSteps,
|
|
29662
|
+
ThreeSteps: ThreeSteps
|
|
29459
29663
|
});
|
|
29460
29664
|
|
|
29461
29665
|
const ProgramExplainerStep_stories = {
|
|
@@ -29463,10 +29667,11 @@ const ProgramExplainerStep_stories = {
|
|
|
29463
29667
|
};
|
|
29464
29668
|
const Example1 = () => {
|
|
29465
29669
|
const props = {
|
|
29466
|
-
|
|
29670
|
+
cardTitle: "Invite your friends to Klip",
|
|
29467
29671
|
description: "Earn up to $1200 in rewards for each referral",
|
|
29468
29672
|
color: "white",
|
|
29469
|
-
background: "#5B3EDA"
|
|
29673
|
+
background: "#5B3EDA",
|
|
29674
|
+
icon: "person-plus-fill",
|
|
29470
29675
|
};
|
|
29471
29676
|
return index.h(sqmProgramExplainerStepView.ProgramExplainerStepView, Object.assign({}, props));
|
|
29472
29677
|
};
|
|
@@ -29479,27 +29684,28 @@ const Example1 = () => {
|
|
|
29479
29684
|
// };
|
|
29480
29685
|
|
|
29481
29686
|
const ProgramExplainerStep = /*#__PURE__*/Object.freeze({
|
|
29482
|
-
|
|
29483
|
-
|
|
29484
|
-
|
|
29687
|
+
__proto__: null,
|
|
29688
|
+
'default': ProgramExplainerStep_stories,
|
|
29689
|
+
Example1: Example1
|
|
29485
29690
|
});
|
|
29486
29691
|
|
|
29487
29692
|
const SqmBrand_stories = {
|
|
29488
29693
|
title: "Components/Brand",
|
|
29489
29694
|
};
|
|
29490
29695
|
const SampleComponents = () => (index.h("div", { style: { padding: "10px", border: "5px solid #EEE" } },
|
|
29491
|
-
index.h("
|
|
29492
|
-
|
|
29493
|
-
|
|
29494
|
-
|
|
29495
|
-
|
|
29496
|
-
|
|
29497
|
-
|
|
29498
|
-
index.h("
|
|
29499
|
-
|
|
29500
|
-
|
|
29501
|
-
|
|
29502
|
-
|
|
29696
|
+
index.h("div", { style: { display: "flex", gap: "5px", padding: "5px" } },
|
|
29697
|
+
index.h("sl-button", { type: "default" }, "Default"),
|
|
29698
|
+
index.h("sl-button", { type: "primary" }, "Primary"),
|
|
29699
|
+
index.h("sl-button", { type: "success" }, "Success"),
|
|
29700
|
+
index.h("sl-button", { type: "neutral" }, "Neutral"),
|
|
29701
|
+
index.h("sl-button", { type: "warning" }, "Warning"),
|
|
29702
|
+
index.h("sl-button", { type: "danger" }, "Danger")),
|
|
29703
|
+
index.h("div", { style: { display: "flex", gap: "5px", padding: "5px" } },
|
|
29704
|
+
index.h("sl-badge", { type: "primary" }, "Primary"),
|
|
29705
|
+
index.h("sl-badge", { type: "success" }, "Success"),
|
|
29706
|
+
index.h("sl-badge", { type: "neutral" }, "Neutral"),
|
|
29707
|
+
index.h("sl-badge", { type: "warning" }, "Warning"),
|
|
29708
|
+
index.h("sl-badge", { type: "danger" }, "Danger")),
|
|
29503
29709
|
index.h("div", { class: "color-palette" },
|
|
29504
29710
|
index.h("div", { class: "color-palette__name" },
|
|
29505
29711
|
"Primary",
|
|
@@ -29551,19 +29757,37 @@ const Nested = () => {
|
|
|
29551
29757
|
function ColorSwatch({ depth }) {
|
|
29552
29758
|
return (index.h("div", { style: {
|
|
29553
29759
|
backgroundColor: `var(--sl-color-primary-${depth})`,
|
|
29760
|
+
color: `var(--sl-color-neutral-${1000 - depth})`,
|
|
29554
29761
|
width: "50px",
|
|
29555
29762
|
height: "50px",
|
|
29556
29763
|
display: "flex",
|
|
29557
29764
|
justifyContent: "center",
|
|
29558
|
-
alignItems: "center"
|
|
29765
|
+
alignItems: "center",
|
|
29559
29766
|
} }, depth));
|
|
29560
|
-
}
|
|
29767
|
+
}
|
|
29768
|
+
const Fonts = () => {
|
|
29769
|
+
return (index.h("div", null,
|
|
29770
|
+
index.h(SampleComponents, null),
|
|
29771
|
+
index.h("sqm-brand", { "brand-font": "Roboto" },
|
|
29772
|
+
"Roboto",
|
|
29773
|
+
index.h(SampleComponents, null)),
|
|
29774
|
+
index.h("sqm-brand", { "brand-font": "Open Sans" },
|
|
29775
|
+
"Open Sans",
|
|
29776
|
+
index.h(SampleComponents, null)),
|
|
29777
|
+
index.h("sqm-brand", { "brand-font": "Lato" },
|
|
29778
|
+
"Lato",
|
|
29779
|
+
index.h(SampleComponents, null)),
|
|
29780
|
+
index.h("sqm-brand", { "brand-font": "Oswald" },
|
|
29781
|
+
"Oswald",
|
|
29782
|
+
index.h(SampleComponents, null))));
|
|
29783
|
+
};
|
|
29561
29784
|
|
|
29562
29785
|
const BrandStories = /*#__PURE__*/Object.freeze({
|
|
29563
|
-
|
|
29564
|
-
|
|
29565
|
-
|
|
29566
|
-
|
|
29786
|
+
__proto__: null,
|
|
29787
|
+
'default': SqmBrand_stories,
|
|
29788
|
+
Examples: Examples,
|
|
29789
|
+
Nested: Nested,
|
|
29790
|
+
Fonts: Fonts
|
|
29567
29791
|
});
|
|
29568
29792
|
|
|
29569
29793
|
/**
|
|
@@ -29619,13 +29843,13 @@ const Klip = `
|
|
|
29619
29843
|
`;
|
|
29620
29844
|
|
|
29621
29845
|
const Themes = /*#__PURE__*/Object.freeze({
|
|
29622
|
-
|
|
29623
|
-
|
|
29624
|
-
|
|
29625
|
-
|
|
29626
|
-
|
|
29627
|
-
|
|
29628
|
-
|
|
29846
|
+
__proto__: null,
|
|
29847
|
+
Default: Default$b,
|
|
29848
|
+
Orangey: Orangey,
|
|
29849
|
+
Netflix: Netflix,
|
|
29850
|
+
SaaSquatchCorporate: SaaSquatchCorporate,
|
|
29851
|
+
NYTimes: NYTimes,
|
|
29852
|
+
Klip: Klip
|
|
29629
29853
|
});
|
|
29630
29854
|
|
|
29631
29855
|
function deepFreeze(obj) {
|
|
@@ -32485,8 +32709,8 @@ const GET_USER_NAME = sqmLeaderboardRankView.gql `
|
|
|
32485
32709
|
`;
|
|
32486
32710
|
function useUserName(props) {
|
|
32487
32711
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
32488
|
-
const user = index_module.
|
|
32489
|
-
const res = index_module.
|
|
32712
|
+
const user = index_module.ne();
|
|
32713
|
+
const res = index_module.cn(GET_USER_NAME, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
32490
32714
|
const loading = res.loading;
|
|
32491
32715
|
const username = ((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.firstName) || ((_d = (_c = res.data) === null || _c === void 0 ? void 0 : _c.viewer) === null || _d === void 0 ? void 0 : _d.lastName)
|
|
32492
32716
|
? `${(_f = (_e = res.data) === null || _e === void 0 ? void 0 : _e.viewer) === null || _f === void 0 ? void 0 : _f.firstName} ${(_h = (_g = res.data) === null || _g === void 0 ? void 0 : _g.viewer) === null || _h === void 0 ? void 0 : _h.lastName}`
|