@saasquatch/mint-components 1.3.2-8 → 1.3.2-9
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-75c18b96.js → ShadowViewAddon-a85b8c8d.js} +1 -1
- package/dist/cjs/{global-041b5338.js → global-ff7fbc86.js} +107 -56
- package/dist/cjs/{index.module-6a7bda18.js → index.module-7dd4b981.js} +2 -1
- package/dist/cjs/loader.cjs.js +3 -4
- package/dist/cjs/mint-components.cjs.js +3 -4
- package/dist/cjs/{re-render-7cdb2d81.js → re-render-6111d4bd.js} +1 -1
- 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-divided-layout_28.cjs.entry.js → sqm-divided-layout_30.cjs.entry.js} +745 -83
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +1 -1
- package/dist/cjs/{index-19309631.js → sqm-leaderboard-rank-view-a99b4cd9.js} +10 -3
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +7 -9
- 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-e99b4a10.js → sqm-navigation-sidebar-item-view-6c7f78e6.js} +1 -1
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +2 -2
- package/dist/cjs/sqm-popup-container.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-portal-email-verification-view-5e955797.js → sqm-portal-email-verification-view-2cebd06b.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +3 -4
- package/dist/cjs/{sqm-portal-footer-view-9089feb7.js → sqm-portal-footer-view-de1763c4.js} +1 -1
- package/dist/cjs/sqm-portal-footer.cjs.entry.js +3 -4
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +1 -1
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-portal-profile-view-a23ea292.js → sqm-portal-profile-view-680ee551.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +3 -4
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +1 -1
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +1 -1
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +1 -1
- 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 +1 -1
- package/dist/cjs/{useDemoBigStat-051a69f7.js → useDemoBigStat-2786227e.js} +1 -1
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeList.stories.js +21 -0
- package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeListData.js +218 -0
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +57 -42
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +2 -2
- package/dist/collection/components/sqm-reward-exchange-list/useRewardExchangeList.js +1 -1
- package/dist/collection/components/sqm-rewards-table/UseRewardsTable.stories.js +53 -0
- package/dist/collection/components/sqm-rewards-table/sqm-rewards-table-column.js +120 -0
- package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +11 -12
- package/dist/collection/components/{sqm-rewards-table → sqm-router}/Router.stories.js +0 -0
- package/dist/collection/components/sqm-share-button/sqm-share-button.js +1 -1
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +5 -1
- package/dist/collection/components/sqm-task-card/progress-bar/progress-bar-view.js +1 -1
- package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +2 -2
- package/dist/esm/{ShadowViewAddon-fff5d35d.js → ShadowViewAddon-a3f510db.js} +1 -1
- package/dist/esm/{global-5ecbf81a.js → global-923aa737.js} +54 -3
- package/dist/esm/{index.module-f80561db.js → index.module-90d2c3ad.js} +2 -2
- package/dist/esm/loader.js +3 -4
- package/dist/esm/mint-components.js +3 -4
- package/dist/esm/{re-render-9ab5fe0f.js → re-render-e06f2f7f.js} +1 -1
- package/dist/esm/sqm-asset-card.entry.js +1 -1
- package/dist/esm/sqm-big-stat.entry.js +2 -2
- package/dist/esm/{sqm-divided-layout_28.entry.js → sqm-divided-layout_30.entry.js} +739 -79
- package/dist/esm/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm/{index-2f5dd0a1.js → sqm-leaderboard-rank-view-747ffda8.js} +9 -3
- package/dist/esm/sqm-leaderboard-rank.entry.js +3 -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-8a3f374b.js → sqm-navigation-sidebar-item-view-f2304ad9.js} +1 -1
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +2 -2
- package/dist/esm/sqm-popup-container.entry.js +1 -1
- package/dist/esm/{sqm-portal-email-verification-view-90781be2.js → sqm-portal-email-verification-view-a3ebc4a2.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +3 -4
- package/dist/esm/{sqm-portal-footer-view-c317518e.js → sqm-portal-footer-view-7b8a02b1.js} +1 -1
- package/dist/esm/sqm-portal-footer.entry.js +3 -4
- package/dist/esm/sqm-portal-forgot-password.entry.js +1 -1
- package/dist/esm/sqm-portal-logout.entry.js +1 -1
- package/dist/esm/{sqm-portal-profile-view-824c8242.js → sqm-portal-profile-view-4ce8d89d.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +3 -4
- package/dist/esm/sqm-portal-protected-route.entry.js +1 -1
- package/dist/esm/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm/sqm-portal-verify-email.entry.js +1 -1
- 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 +1 -1
- package/dist/esm/{useDemoBigStat-95889548.js → useDemoBigStat-c3b955b7.js} +1 -1
- package/dist/esm-es5/{ShadowViewAddon-fff5d35d.js → ShadowViewAddon-a3f510db.js} +1 -1
- package/dist/esm-es5/{global-5ecbf81a.js → global-923aa737.js} +16 -2
- package/dist/esm-es5/{index.module-f80561db.js → index.module-90d2c3ad.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-9ab5fe0f.js → re-render-e06f2f7f.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-divided-layout_30.entry.js +1 -0
- package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank-view-747ffda8.js +1 -0
- 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-8a3f374b.js → sqm-navigation-sidebar-item-view-f2304ad9.js} +1 -1
- 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-90781be2.js → sqm-portal-email-verification-view-a3ebc4a2.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-footer-view-c317518e.js → sqm-portal-footer-view-7b8a02b1.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-824c8242.js → sqm-portal-profile-view-4ce8d89d.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-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-95889548.js → useDemoBigStat-c3b955b7.js} +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/p-0382a7b0.entry.js +1 -0
- package/dist/mint-components/p-08e75345.system.entry.js +1 -0
- package/dist/mint-components/p-0b4af41a.system.entry.js +1 -0
- package/dist/mint-components/p-0c67ccfd.system.entry.js +1 -0
- package/dist/mint-components/{p-337b49ee.entry.js → p-160bd62f.entry.js} +1 -1
- package/dist/mint-components/{p-4ba2faf2.system.entry.js → p-1a09e4e1.system.entry.js} +1 -1
- package/dist/mint-components/{p-3052c913.system.js → p-1bfed119.system.js} +1 -1
- package/dist/mint-components/p-1c8b0290.entry.js +1 -0
- package/dist/mint-components/{p-7c13e32e.system.entry.js → p-1dcdca58.system.entry.js} +1 -1
- package/dist/mint-components/p-20d41ab1.entry.js +1 -0
- package/dist/mint-components/{p-e9ab90a1.entry.js → p-221a4097.entry.js} +1 -1
- package/dist/mint-components/{p-a0045707.system.entry.js → p-223b42bd.system.entry.js} +1 -1
- package/dist/mint-components/{p-cc3510c8.js → p-224504ad.js} +1 -1
- package/dist/mint-components/{p-2a025d2a.system.entry.js → p-24b3c6f0.system.entry.js} +1 -1
- package/dist/mint-components/{p-1b414d8f.system.entry.js → p-24c9a599.system.entry.js} +1 -1
- package/dist/mint-components/{p-a7f0b2f6.entry.js → p-29fab29b.entry.js} +1 -1
- package/dist/mint-components/p-2e43ba45.entry.js +13 -0
- package/dist/mint-components/{p-e475a5ff.system.entry.js → p-304e6c82.system.entry.js} +1 -1
- package/dist/mint-components/{p-5f28af29.entry.js → p-3397167c.entry.js} +1 -1
- package/dist/mint-components/{p-04516274.system.entry.js → p-396bf448.system.entry.js} +1 -1
- package/dist/mint-components/p-3b97aed8.system.js +1 -0
- package/dist/mint-components/{p-3b0acfcd.system.js → p-3ce2fb83.system.js} +1 -1
- package/dist/mint-components/{p-82d7a2ba.entry.js → p-3d856985.entry.js} +1 -1
- package/dist/mint-components/{p-af06ea5b.system.entry.js → p-4052b948.system.entry.js} +1 -1
- package/dist/mint-components/{p-57a53dbd.system.entry.js → p-412a9226.system.entry.js} +1 -1
- package/dist/mint-components/{p-1fb688a9.system.js → p-43fc3f99.system.js} +1 -1
- package/dist/mint-components/{p-844f9bad.entry.js → p-45c752a0.entry.js} +1 -1
- package/dist/mint-components/p-5480e4ee.entry.js +1 -0
- package/dist/mint-components/{p-db723323.system.entry.js → p-55508395.system.entry.js} +1 -1
- package/dist/mint-components/{p-844fd903.js → p-563253e8.js} +1 -1
- package/dist/mint-components/{p-ceeaf074.system.js → p-593d2266.system.js} +35 -21
- package/dist/mint-components/{p-1ac9c24b.system.entry.js → p-69bcf4fa.system.entry.js} +1 -1
- package/dist/mint-components/p-6e245fa3.system.entry.js +1 -0
- package/dist/mint-components/{p-5dfc6804.system.entry.js → p-73148868.system.entry.js} +1 -1
- package/dist/mint-components/{p-a4a00461.entry.js → p-772f52da.entry.js} +1 -1
- package/dist/mint-components/{p-6cdc70f4.entry.js → p-8435a22d.entry.js} +1 -1
- package/dist/mint-components/p-883a32e7.entry.js +1 -0
- package/dist/mint-components/p-8a7ac67b.entry.js +335 -0
- package/dist/mint-components/{p-1813b9b9.system.js → p-8ee4c2d2.system.js} +1 -1
- package/dist/mint-components/{p-0faf1857.system.js → p-9c554ca0.system.js} +1 -1
- package/dist/mint-components/{p-d3787c3a.entry.js → p-9d6dbb2d.entry.js} +1 -1
- package/dist/mint-components/p-9e4fee30.system.entry.js +1 -0
- package/dist/mint-components/{p-2bce988c.js → p-a2c3cff3.js} +1 -1
- package/dist/mint-components/{p-d9cc041f.entry.js → p-a4c2c7ed.entry.js} +1 -1
- package/dist/mint-components/{p-05cca77b.js → p-ad0f47dc.js} +1 -1
- package/dist/mint-components/{p-aba21f90.entry.js → p-ade44a4e.entry.js} +1 -1
- package/dist/mint-components/{p-8e37c08d.js → p-b7ea778a.js} +1 -1
- package/dist/mint-components/p-b7fc2c67.entry.js +1 -0
- package/dist/mint-components/{p-2f171597.entry.js → p-b8bd2607.entry.js} +1 -1
- package/dist/mint-components/p-bbf5ba89.system.entry.js +1 -0
- package/dist/mint-components/{p-0688c9c2.system.entry.js → p-be2738b0.system.entry.js} +1 -1
- package/dist/mint-components/{p-82ab88fe.system.js → p-c6114bfe.system.js} +1 -1
- package/dist/mint-components/{p-16535642.system.entry.js → p-c79c608d.system.entry.js} +1 -1
- package/dist/mint-components/p-c9e3b7bc.js +1 -0
- package/dist/mint-components/{p-505f5c59.system.entry.js → p-cca9026f.system.entry.js} +1 -1
- package/dist/mint-components/{p-71d942af.entry.js → p-cd410a05.entry.js} +2 -2
- package/dist/mint-components/{p-a0cfd3d9.system.js → p-cdeae699.system.js} +1 -1
- package/dist/mint-components/{p-3fd33dee.system.entry.js → p-d174d0bc.system.entry.js} +1 -1
- package/dist/mint-components/{p-00190438.js → p-d35b0366.js} +1 -1
- package/dist/mint-components/p-d60085ae.system.entry.js +1 -0
- package/dist/mint-components/{p-f1e1086e.js → p-dc75a335.js} +17 -2
- package/dist/mint-components/{p-434ee9c1.js → p-e817ca6b.js} +1 -1
- package/dist/mint-components/{p-16da5146.entry.js → p-f17050de.entry.js} +1 -1
- package/dist/mint-components/{p-b6e6be5e.js → p-f90486ca.js} +1 -1
- package/dist/mint-components/p-fce1dbf6.entry.js +1 -0
- package/dist/mint-components/p-ff616282.system.js +1 -0
- package/dist/mint-components/p-ffbe112d.system.js +1 -0
- package/dist/types/components/sqm-reward-exchange-list/RewardExchangeList.stories.d.ts +6 -0
- package/dist/types/components/sqm-reward-exchange-list/RewardExchangeListData.d.ts +81 -0
- package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.d.ts +1 -3
- package/dist/types/components/sqm-rewards-table/UseRewardsTable.stories.d.ts +16 -0
- package/dist/types/components/sqm-rewards-table/sqm-rewards-table-column.d.ts +20 -0
- package/dist/types/components/sqm-rewards-table/useRewardsTable.d.ts +33 -0
- package/dist/types/components/{sqm-rewards-table → sqm-router}/Router.stories.d.ts +0 -0
- package/dist/types/components.d.ts +32 -0
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/sqm-leaderboard-rank-view-35015d30.js +0 -10
- package/dist/cjs/sqm-rewards-table.cjs.entry.js +0 -332
- package/dist/cjs/tslib.es6-0e81fab1.js +0 -56
- package/dist/cjs/useChildElements-428ca5b8.js +0 -21
- package/dist/esm/sqm-leaderboard-rank-view-da91f5f3.js +0 -8
- package/dist/esm/sqm-rewards-table.entry.js +0 -328
- package/dist/esm/tslib.es6-7ac9d7e4.js +0 -53
- package/dist/esm/useChildElements-506f00d0.js +0 -19
- package/dist/esm-es5/index-2f5dd0a1.js +0 -1
- package/dist/esm-es5/sqm-divided-layout_28.entry.js +0 -1
- package/dist/esm-es5/sqm-leaderboard-rank-view-da91f5f3.js +0 -1
- package/dist/esm-es5/sqm-rewards-table.entry.js +0 -1
- package/dist/esm-es5/tslib.es6-7ac9d7e4.js +0 -15
- package/dist/esm-es5/useChildElements-506f00d0.js +0 -1
- package/dist/mint-components/p-11c75956.entry.js +0 -1
- package/dist/mint-components/p-189219ee.system.js +0 -1
- package/dist/mint-components/p-1d445125.entry.js +0 -1
- package/dist/mint-components/p-21dfdeb8.entry.js +0 -1
- package/dist/mint-components/p-23a0bdae.entry.js +0 -1
- package/dist/mint-components/p-55e02769.entry.js +0 -13
- package/dist/mint-components/p-58d9b2f0.js +0 -15
- package/dist/mint-components/p-6d545e13.entry.js +0 -1
- package/dist/mint-components/p-70837c1c.entry.js +0 -49
- package/dist/mint-components/p-7c138c84.entry.js +0 -1
- package/dist/mint-components/p-7c261ea0.system.entry.js +0 -1
- package/dist/mint-components/p-8034f81c.system.entry.js +0 -1
- package/dist/mint-components/p-8c16f04e.js +0 -1
- package/dist/mint-components/p-91d39961.system.js +0 -1
- package/dist/mint-components/p-a7f26a72.entry.js +0 -288
- package/dist/mint-components/p-b2633117.system.entry.js +0 -1
- package/dist/mint-components/p-b3af1c6f.js +0 -1
- package/dist/mint-components/p-bf04a8e1.system.entry.js +0 -1
- package/dist/mint-components/p-bf055b6c.system.js +0 -1
- package/dist/mint-components/p-c3866bfa.system.entry.js +0 -1
- package/dist/mint-components/p-dd6a666e.system.js +0 -15
- package/dist/mint-components/p-dfc3cf82.js +0 -1
- package/dist/mint-components/p-e0290737.system.entry.js +0 -1
- package/dist/mint-components/p-e19a57a4.system.entry.js +0 -1
- package/dist/mint-components/p-e2ebe90c.entry.js +0 -1
- package/dist/mint-components/p-ecbabf6e.system.js +0 -1
- package/dist/mint-components/p-f41ab9e1.system.js +0 -1
- package/dist/mint-components/p-fcaa5886.system.entry.js +0 -1
|
@@ -4,11 +4,10 @@ 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-ff7fbc86.js');
|
|
8
8
|
const useCallback = require('./use-callback-fadb2643.js');
|
|
9
|
-
const index_module = require('./index.module-
|
|
9
|
+
const index_module = require('./index.module-7dd4b981.js');
|
|
10
10
|
const jsonpointer = require('./jsonpointer-11327262.js');
|
|
11
|
-
require('./tslib.es6-0e81fab1.js');
|
|
12
11
|
const jssPresetDefault_esm = require('./jss-preset-default.esm-6304d24f.js');
|
|
13
12
|
const utils = require('./utils-95e5317c.js');
|
|
14
13
|
const cjs = require('./cjs-1066ec21.js');
|
|
@@ -16,23 +15,21 @@ const mixins = require('./mixins-7b7c59fe.js');
|
|
|
16
15
|
const sqmPortalContainerView = require('./sqm-portal-container-view-d144735a.js');
|
|
17
16
|
const sqmPortalSectionView = require('./sqm-portal-section-view-3b008930.js');
|
|
18
17
|
const sqmTextSpanView = require('./sqm-text-span-view-b5ae787b.js');
|
|
19
|
-
const
|
|
20
|
-
const reRender = require('./re-render-
|
|
21
|
-
const
|
|
22
|
-
const useDemoBigStat = require('./useDemoBigStat-051a69f7.js');
|
|
18
|
+
const sqmLeaderboardRankView = require('./sqm-leaderboard-rank-view-a99b4cd9.js');
|
|
19
|
+
const reRender = require('./re-render-6111d4bd.js');
|
|
20
|
+
const useDemoBigStat = require('./useDemoBigStat-2786227e.js');
|
|
23
21
|
const sqmShareLinkView = require('./sqm-share-link-view-a935d07e.js');
|
|
24
|
-
const ShadowViewAddon = require('./ShadowViewAddon-
|
|
25
|
-
const sqmLeaderboardRankView = require('./sqm-leaderboard-rank-view-35015d30.js');
|
|
22
|
+
const ShadowViewAddon = require('./ShadowViewAddon-a85b8c8d.js');
|
|
26
23
|
const sqmNavigationSidebarView = require('./sqm-navigation-sidebar-view-d06e1885.js');
|
|
27
|
-
const sqmNavigationSidebarItemView = require('./sqm-navigation-sidebar-item-view-
|
|
24
|
+
const sqmNavigationSidebarItemView = require('./sqm-navigation-sidebar-item-view-6c7f78e6.js');
|
|
28
25
|
const sqmStatContainerView = require('./sqm-stat-container-view-ee7b00ff.js');
|
|
29
|
-
const sqmPortalProfileView = require('./sqm-portal-profile-view-
|
|
26
|
+
const sqmPortalProfileView = require('./sqm-portal-profile-view-680ee551.js');
|
|
30
27
|
const sqmPortalForgotPasswordView = require('./sqm-portal-forgot-password-view-1704d285.js');
|
|
31
|
-
const sqmPortalEmailVerificationView = require('./sqm-portal-email-verification-view-
|
|
28
|
+
const sqmPortalEmailVerificationView = require('./sqm-portal-email-verification-view-2cebd06b.js');
|
|
32
29
|
const sqmPortalResetPasswordView = require('./sqm-portal-reset-password-view-4d78fd6d.js');
|
|
33
30
|
const sqmPortalVerifyEmailView = require('./sqm-portal-verify-email-view-b595e302.js');
|
|
34
31
|
const sqmAssetCardView = require('./sqm-asset-card-view-07f86880.js');
|
|
35
|
-
const sqmPortalFooterView = require('./sqm-portal-footer-view-
|
|
32
|
+
const sqmPortalFooterView = require('./sqm-portal-footer-view-de1763c4.js');
|
|
36
33
|
const sqmHeroView = require('./sqm-hero-view-bb3d00a1.js');
|
|
37
34
|
const sqmNameFieldsView = require('./sqm-name-fields-view-24614ac7.js');
|
|
38
35
|
|
|
@@ -5879,7 +5876,22 @@ function ReferralTableView(props) {
|
|
|
5879
5876
|
index.h("sl-button", { size: "small", loading: states.loading, disabled: !states.hasNext, onClick: callbacks.nextPage, exportparts: "base: defaultbutton-base" }, data.textOverrides.moreLabel))));
|
|
5880
5877
|
}
|
|
5881
5878
|
|
|
5882
|
-
|
|
5879
|
+
function useChildElements() {
|
|
5880
|
+
const host = index_module.P();
|
|
5881
|
+
const initialState = host.children.length ? Array.from(host.children) : [];
|
|
5882
|
+
const [childElements, setChildElements] = _extends.useState(initialState);
|
|
5883
|
+
_extends.useEffect(() => {
|
|
5884
|
+
const observer = new MutationObserver(() => {
|
|
5885
|
+
const children = Array.from(host.children);
|
|
5886
|
+
setChildElements([...children]);
|
|
5887
|
+
});
|
|
5888
|
+
observer.observe(host, { childList: true });
|
|
5889
|
+
return () => observer.disconnect();
|
|
5890
|
+
}, [host]);
|
|
5891
|
+
return childElements;
|
|
5892
|
+
}
|
|
5893
|
+
|
|
5894
|
+
const GET_REFERRER_DATA = sqmLeaderboardRankView.gql `
|
|
5883
5895
|
query getReferrals($programId: ID, $rewardFilter: RewardFilterInput) {
|
|
5884
5896
|
viewer {
|
|
5885
5897
|
... on User {
|
|
@@ -5926,7 +5938,7 @@ const GET_REFERRER_DATA = index$1.gql `
|
|
|
5926
5938
|
}
|
|
5927
5939
|
}
|
|
5928
5940
|
`;
|
|
5929
|
-
const GET_REFERRAL_DATA =
|
|
5941
|
+
const GET_REFERRAL_DATA = sqmLeaderboardRankView.gql `
|
|
5930
5942
|
query getReferrals(
|
|
5931
5943
|
$limit: Int!
|
|
5932
5944
|
$offset: Int!
|
|
@@ -6090,7 +6102,7 @@ function useReferralTable(props, emptyElement, loadingElement) {
|
|
|
6090
6102
|
}, [props.showReferrer]);
|
|
6091
6103
|
const tick = reRender.useRerenderListener();
|
|
6092
6104
|
const data = referralData === null || referralData === void 0 ? void 0 : referralData.data;
|
|
6093
|
-
const components = useChildElements
|
|
6105
|
+
const components = useChildElements();
|
|
6094
6106
|
async function getComponentData(components) {
|
|
6095
6107
|
// filter out loading and empty states from columns array
|
|
6096
6108
|
const columnComponents = components.filter((component) => component.slot !== "loading" && component.slot !== "empty");
|
|
@@ -14798,7 +14810,7 @@ function useRewardExchangeList(props) {
|
|
|
14798
14810
|
}), {
|
|
14799
14811
|
selectedItem: undefined,
|
|
14800
14812
|
selectedStep: undefined,
|
|
14801
|
-
redeemStage: "",
|
|
14813
|
+
redeemStage: "chooseReward",
|
|
14802
14814
|
amount: 0,
|
|
14803
14815
|
exchangeError: false,
|
|
14804
14816
|
});
|
|
@@ -15081,6 +15093,24 @@ function RewardExchangeView(props) {
|
|
|
15081
15093
|
textAlign: "center",
|
|
15082
15094
|
cursor: "pointer",
|
|
15083
15095
|
},
|
|
15096
|
+
ProgressBar: {
|
|
15097
|
+
fontSize: "80%",
|
|
15098
|
+
marginBottom: "20px",
|
|
15099
|
+
"& .text-area": {
|
|
15100
|
+
marginTop: "5px",
|
|
15101
|
+
display: "flex",
|
|
15102
|
+
justifyContent: "center",
|
|
15103
|
+
textAlign: "center",
|
|
15104
|
+
whiteSpace: "nowrap",
|
|
15105
|
+
marginBottom: "6px",
|
|
15106
|
+
"& .text": {
|
|
15107
|
+
flex: "1 1 0",
|
|
15108
|
+
},
|
|
15109
|
+
"& .text.subdued": {
|
|
15110
|
+
color: "#BDBDBD",
|
|
15111
|
+
},
|
|
15112
|
+
},
|
|
15113
|
+
},
|
|
15084
15114
|
};
|
|
15085
15115
|
// JSS config
|
|
15086
15116
|
jssPresetDefault_esm.jss.setup(jssPresetDefault_esm.create());
|
|
@@ -15113,16 +15143,14 @@ function RewardExchangeView(props) {
|
|
|
15113
15143
|
}
|
|
15114
15144
|
function chooseReward() {
|
|
15115
15145
|
var _a;
|
|
15116
|
-
const nextStage =
|
|
15117
|
-
|
|
15118
|
-
: "chooseAmount";
|
|
15119
|
-
console.log({ nextStage, ruleType: selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.ruleType });
|
|
15146
|
+
const nextStage = "chooseAmount";
|
|
15147
|
+
// console.log({ nextStage, ruleType: selectedItem?.ruleType });
|
|
15120
15148
|
return [
|
|
15121
15149
|
index.h("div", { style: {
|
|
15122
15150
|
display: "grid",
|
|
15123
15151
|
justifyContent: "center",
|
|
15124
15152
|
gap: "20px",
|
|
15125
|
-
gridTemplateColumns: "repeat(auto-fill, minmax(
|
|
15153
|
+
gridTemplateColumns: "repeat(auto-fill, minmax(300px, 1fr))",
|
|
15126
15154
|
} }, (_a = data.exchangeList) === null || _a === void 0 ? void 0 : _a.map((item) => {
|
|
15127
15155
|
const style = {
|
|
15128
15156
|
boxShadow: item.key === (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.key) ? "0 1px 8px #87ceeb" : "none",
|
|
@@ -15133,23 +15161,35 @@ function RewardExchangeView(props) {
|
|
|
15133
15161
|
};
|
|
15134
15162
|
const amount = item.ruleType === "FIXED_GLOBAL_REWARD"
|
|
15135
15163
|
? item.prettySourceValue
|
|
15136
|
-
: `${item.sourceMinValue} to ${item.
|
|
15164
|
+
: `${item.sourceMinValue} to ${item.prettySourceMaxValue}`;
|
|
15137
15165
|
return (index.h("div", { key: item.key, class: item.available ? sheet.classes.CardContainer : "", style: style },
|
|
15138
15166
|
index.h("sl-card", { class: sheet.classes.Base, onClick: () => item.available &&
|
|
15139
15167
|
callbacks.setExchangeState({ selectedItem: item }) },
|
|
15140
|
-
|
|
15141
|
-
index.h("
|
|
15168
|
+
// item?.imageUrl &&
|
|
15169
|
+
index.h("img", { class: sheet.classes.PreviewImage, src: (item === null || item === void 0 ? void 0 : item.imageUrl) || index.getAssetPath("./assets/Reward-icon.png") }),
|
|
15170
|
+
index.h("p", { style: {
|
|
15171
|
+
textAlign: "left",
|
|
15172
|
+
margin: "0",
|
|
15173
|
+
flex: "1",
|
|
15174
|
+
fontSize: "90%",
|
|
15175
|
+
padding: "8px"
|
|
15176
|
+
} },
|
|
15142
15177
|
index.h("b", null, item.description),
|
|
15143
15178
|
index.h("p", { style: { margin: "0" } }, amount),
|
|
15144
15179
|
item.unavailableReasonCode && (index.h("p", { style: {
|
|
15145
15180
|
fontSize: "70%",
|
|
15146
15181
|
color: "#F2994A",
|
|
15147
15182
|
marginTop: "0",
|
|
15148
|
-
} }, item.unavailableReasonCode
|
|
15183
|
+
} }, item.unavailableReasonCode ===
|
|
15184
|
+
"INSUFFICIENT_REDEEMABLE_CREDIT"
|
|
15185
|
+
? "Not enough points"
|
|
15186
|
+
: item.unavailableReasonCode))))));
|
|
15149
15187
|
})),
|
|
15150
15188
|
index.h("div", { class: sheet.classes.Buttons },
|
|
15151
15189
|
index.h("sl-button", { onClick: () => callbacks.setStage(nextStage), style: { display: "block" }, class: sheet.classes.Button, disabled: !states.selectedItem }, "Continue"),
|
|
15152
|
-
index.h("a", {
|
|
15190
|
+
index.h("a", {
|
|
15191
|
+
// onClick={() => refs.drawerRef.current?.hide()}
|
|
15192
|
+
style: { display: "block" }, class: sheet.classes.Button }, "Cancel")),
|
|
15153
15193
|
];
|
|
15154
15194
|
}
|
|
15155
15195
|
function chooseAmount() {
|
|
@@ -15162,11 +15202,9 @@ function RewardExchangeView(props) {
|
|
|
15162
15202
|
index.h("sl-button", { onClick: () => callbacks.setStage("confirmation"), disabled: input && !states.amount, style: { display: "block" }, class: sheet.classes.Button }, "Continue"),
|
|
15163
15203
|
index.h("a", { onClick: () => callbacks.setStage("chooseReward"), style: { display: "block" }, class: sheet.classes.Button }, "Back"))));
|
|
15164
15204
|
}
|
|
15165
|
-
console.log({ selectedItem, selectedStep });
|
|
15205
|
+
// console.log({ selectedItem, selectedStep });
|
|
15166
15206
|
function confirmation() {
|
|
15167
|
-
const previousStage =
|
|
15168
|
-
? "chooseReward"
|
|
15169
|
-
: "chooseAmount";
|
|
15207
|
+
const previousStage = "chooseAmount";
|
|
15170
15208
|
return (index.h("div", null,
|
|
15171
15209
|
index.h("h2", null, "Confirm and redeem"),
|
|
15172
15210
|
index.h("div", { style: { textAlign: "center" } },
|
|
@@ -15192,8 +15230,7 @@ function RewardExchangeView(props) {
|
|
|
15192
15230
|
return (index.h("div", { style: { textAlign: "center" } },
|
|
15193
15231
|
index.h("img", { class: sheet.classes.FullImage, src: index.getAssetPath("./assets/Reward-icon.png") }),
|
|
15194
15232
|
index.h("p", { style: { color: "forestgreen" } }, "Reward Redeemed"),
|
|
15195
|
-
(data === null || data === void 0 ? void 0 : data.fuelTankCode) && index.h("pre", null, data === null || data === void 0 ? void 0 : data.fuelTankCode)
|
|
15196
|
-
index.h("sl-button", { onClick: () => { var _a, _b; return (_b = (_a = refs.drawerRef) === null || _a === void 0 ? void 0 : _a.current) === null || _b === void 0 ? void 0 : _b.hide(); } }, "Done")));
|
|
15233
|
+
(data === null || data === void 0 ? void 0 : data.fuelTankCode) && index.h("pre", null, data === null || data === void 0 ? void 0 : data.fuelTankCode)));
|
|
15197
15234
|
}
|
|
15198
15235
|
const stages = {
|
|
15199
15236
|
chooseReward: () => chooseReward(),
|
|
@@ -15204,20 +15241,14 @@ function RewardExchangeView(props) {
|
|
|
15204
15241
|
const currentStage = stages[states.redeemStage];
|
|
15205
15242
|
function stageMap() {
|
|
15206
15243
|
const stageNumber = stageList.indexOf(states.redeemStage);
|
|
15207
|
-
return (index.h("div", {
|
|
15208
|
-
index.h("div", {
|
|
15209
|
-
|
|
15210
|
-
|
|
15211
|
-
|
|
15212
|
-
|
|
15213
|
-
|
|
15214
|
-
|
|
15215
|
-
} }, Object.keys(stageProgressList).map((stage) => {
|
|
15216
|
-
if (stage === states.redeemStage)
|
|
15217
|
-
return (index.h("b", { style: { flex: "1 1 0" } },
|
|
15218
|
-
" ",
|
|
15219
|
-
stageProgressList[stage]));
|
|
15220
|
-
return index.h("i", { style: { flex: "1 1 0" } }, stageProgressList[stage]);
|
|
15244
|
+
return (index.h("div", { class: sheet.classes.ProgressBar },
|
|
15245
|
+
index.h("div", { class: "text-area" }, Object.keys(stageProgressList).map((stage) => {
|
|
15246
|
+
if (stage === states.redeemStage) {
|
|
15247
|
+
return index.h("span", { class: "text" }, stageProgressList[stage]);
|
|
15248
|
+
}
|
|
15249
|
+
else {
|
|
15250
|
+
return (index.h("span", { class: "text subdued" }, stageProgressList[stage]));
|
|
15251
|
+
}
|
|
15221
15252
|
})),
|
|
15222
15253
|
index.h(ProgressBar, { stageCount: 3, currentStage: stageNumber })));
|
|
15223
15254
|
}
|
|
@@ -15226,10 +15257,7 @@ function RewardExchangeView(props) {
|
|
|
15226
15257
|
return "";
|
|
15227
15258
|
let previousStage = "";
|
|
15228
15259
|
if (states.redeemStage === "confirmation") {
|
|
15229
|
-
previousStage =
|
|
15230
|
-
(selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.ruleType) === "FIXED_GLOBAL_REWARD"
|
|
15231
|
-
? "chooseReward"
|
|
15232
|
-
: "chooseAmount";
|
|
15260
|
+
previousStage = "chooseAmount";
|
|
15233
15261
|
}
|
|
15234
15262
|
else if (states.redeemStage === "chooseAmount") {
|
|
15235
15263
|
previousStage = "chooseReward";
|
|
@@ -15239,16 +15267,15 @@ function RewardExchangeView(props) {
|
|
|
15239
15267
|
index.h(LeftArrow, null),
|
|
15240
15268
|
" Back")));
|
|
15241
15269
|
};
|
|
15270
|
+
console.log(props);
|
|
15242
15271
|
return (index.h("div", { class: sheet.classes.Container },
|
|
15243
15272
|
index.h("style", { type: "text/css" }, styleString),
|
|
15244
|
-
index.h("div",
|
|
15245
|
-
index.h(
|
|
15246
|
-
|
|
15247
|
-
|
|
15248
|
-
|
|
15249
|
-
|
|
15250
|
-
"Something went wrong. Please contact support or try again."),
|
|
15251
|
-
index.h("sl-button", { loading: states.loading, onClick: () => callbacks.openDrawer() }, "Redeem Rewards"))));
|
|
15273
|
+
index.h("div", { style: { width: "1920px" } },
|
|
15274
|
+
index.h(BackButton, null),
|
|
15275
|
+
stageMap(),
|
|
15276
|
+
currentStage && currentStage(),
|
|
15277
|
+
states.exchangeError &&
|
|
15278
|
+
"Something went wrong. Please contact support or try again.")));
|
|
15252
15279
|
}
|
|
15253
15280
|
|
|
15254
15281
|
const SqmRewardExchangeList = class {
|
|
@@ -15285,7 +15312,7 @@ function useRewardExchangeListDemo(props) {
|
|
|
15285
15312
|
content: {
|
|
15286
15313
|
text: props,
|
|
15287
15314
|
},
|
|
15288
|
-
redeemStage: "",
|
|
15315
|
+
redeemStage: "chooseReward",
|
|
15289
15316
|
amount: 0,
|
|
15290
15317
|
selectedStep: undefined,
|
|
15291
15318
|
exchangeError: false,
|
|
@@ -15306,6 +15333,348 @@ function useRewardExchangeListDemo(props) {
|
|
|
15306
15333
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
15307
15334
|
}
|
|
15308
15335
|
|
|
15336
|
+
const style$7 = {
|
|
15337
|
+
THead: {
|
|
15338
|
+
padding: "var(--sl-spacing-small) var(--sl-spacing-medium) var(--sl-spacing-small) 0",
|
|
15339
|
+
"text-align": "left",
|
|
15340
|
+
},
|
|
15341
|
+
TCell: {
|
|
15342
|
+
padding: "var(--sl-spacing-small) var(--sl-spacing-medium) var(--sl-spacing-small) 0",
|
|
15343
|
+
},
|
|
15344
|
+
TRow: {
|
|
15345
|
+
"border-top": "1px solid #EAEAEA",
|
|
15346
|
+
},
|
|
15347
|
+
Table: {
|
|
15348
|
+
"border-collapse": "collapse",
|
|
15349
|
+
width: "100%",
|
|
15350
|
+
},
|
|
15351
|
+
ButtonContainer: {
|
|
15352
|
+
display: "flex",
|
|
15353
|
+
"justify-content": "flex-end",
|
|
15354
|
+
"margin-top": "var(--sl-spacing-small)",
|
|
15355
|
+
...mixins.gap({ direction: "row", size: "var(--sl-spacing-small)" }),
|
|
15356
|
+
},
|
|
15357
|
+
};
|
|
15358
|
+
jssPresetDefault_esm.jss.setup(jssPresetDefault_esm.create());
|
|
15359
|
+
const sheet$7 = jssPresetDefault_esm.jss.createStyleSheet(style$7);
|
|
15360
|
+
const styleString$7 = sheet$7.toString();
|
|
15361
|
+
function GenericTableView(props) {
|
|
15362
|
+
const { states, data, callbacks, elements } = props;
|
|
15363
|
+
const { columns, rows } = elements;
|
|
15364
|
+
const { show } = states;
|
|
15365
|
+
return (index.h("div", null,
|
|
15366
|
+
index.h("style", { type: "text/css" }, styleString$7),
|
|
15367
|
+
index.h("table", { class: sheet$7.classes.Table },
|
|
15368
|
+
data.textOverrides.showLabels && (index.h("thead", null,
|
|
15369
|
+
index.h("tr", null, columns === null || columns === void 0 ? void 0 : columns.map((column) => (index.h("th", { class: sheet$7.classes.THead },
|
|
15370
|
+
index.h(sqmTextSpanView.TextSpanView, { type: "h3" }, column))))))),
|
|
15371
|
+
index.h("tbody", null,
|
|
15372
|
+
show === "loading" && elements.loadingElement,
|
|
15373
|
+
show === "empty" && elements.emptyElement,
|
|
15374
|
+
show === "rows" && (rows === null || rows === void 0 ? void 0 : rows.map((row, i) => (index.h("tr", { class: sheet$7.classes.TRow, style: {
|
|
15375
|
+
borderTop: `${!data.textOverrides.showLabels && i === 0 ? "none" : ""}`,
|
|
15376
|
+
}, part: "table-row" }, row.map((cell) => (index.h("td", { class: sheet$7.classes.TCell },
|
|
15377
|
+
index.h(sqmTextSpanView.TextSpanView, { type: "p" }, cell)))))))))),
|
|
15378
|
+
index.h("div", { class: sheet$7.classes.ButtonContainer, part: states.namespace + "-button-wrapper" },
|
|
15379
|
+
index.h("sl-button", { size: "small", disabled: !states.hasPrev, loading: show === "loading", onClick: callbacks.prevPage, exportparts: "base: defaultbutton-base" }, data.textOverrides.prevLabel),
|
|
15380
|
+
index.h("sl-button", { size: "small", loading: show === "loading", disabled: !states.hasNext, onClick: callbacks.nextPage, exportparts: "base: defaultbutton-base" }, data.textOverrides.moreLabel))));
|
|
15381
|
+
}
|
|
15382
|
+
|
|
15383
|
+
function LoadingSlot$1() {
|
|
15384
|
+
return (index.h("slot", { name: "loading" },
|
|
15385
|
+
index.h(LoadingSkeleton, null)));
|
|
15386
|
+
}
|
|
15387
|
+
function LoadingSkeleton() {
|
|
15388
|
+
return (index.h("div", { style: { width: "100%" } },
|
|
15389
|
+
index.h("sl-skeleton", { style: { marginBottom: "28px" } }),
|
|
15390
|
+
index.h("sl-skeleton", { style: { marginBottom: "28px" } }),
|
|
15391
|
+
index.h("sl-skeleton", { style: { marginBottom: "28px" } }),
|
|
15392
|
+
index.h("sl-skeleton", { style: { marginBottom: "28px" } }),
|
|
15393
|
+
index.h("sl-skeleton", null)));
|
|
15394
|
+
}
|
|
15395
|
+
function EmptySlot$1({ label }) {
|
|
15396
|
+
return (index.h("slot", { name: "empty" },
|
|
15397
|
+
index.h(EmptySkeleton, { label: label })));
|
|
15398
|
+
}
|
|
15399
|
+
function EmptySkeleton({ label }) {
|
|
15400
|
+
return (index.h("div", { style: { width: "100%" } },
|
|
15401
|
+
index.h("sqm-text", null,
|
|
15402
|
+
index.h("h3", { style: { color: "#777777" } }, label))));
|
|
15403
|
+
}
|
|
15404
|
+
|
|
15405
|
+
const CSS_NAMESPACE = "sqm-rewards-table";
|
|
15406
|
+
const GET_REWARDS = sqmLeaderboardRankView.gql `
|
|
15407
|
+
query getRewards(
|
|
15408
|
+
$limit: Int!
|
|
15409
|
+
$offset: Int!
|
|
15410
|
+
$rewardFilter: RewardFilterInput
|
|
15411
|
+
) {
|
|
15412
|
+
viewer {
|
|
15413
|
+
... on User {
|
|
15414
|
+
id
|
|
15415
|
+
rewards(limit: $limit, offset: $offset, filter: $rewardFilter) {
|
|
15416
|
+
totalCount
|
|
15417
|
+
count
|
|
15418
|
+
data {
|
|
15419
|
+
id
|
|
15420
|
+
type
|
|
15421
|
+
value
|
|
15422
|
+
unit
|
|
15423
|
+
name
|
|
15424
|
+
dateGiven
|
|
15425
|
+
dateExpires
|
|
15426
|
+
dateCancelled
|
|
15427
|
+
dateRedeemed
|
|
15428
|
+
dateScheduledFor
|
|
15429
|
+
fuelTankCode
|
|
15430
|
+
fuelTankType
|
|
15431
|
+
currency
|
|
15432
|
+
prettyValue
|
|
15433
|
+
statuses
|
|
15434
|
+
globalRewardKey
|
|
15435
|
+
programRewardKey
|
|
15436
|
+
rewardRedemptionTransactions {
|
|
15437
|
+
data {
|
|
15438
|
+
exchangedRewards {
|
|
15439
|
+
data {
|
|
15440
|
+
prettyValue
|
|
15441
|
+
type
|
|
15442
|
+
fuelTankCode
|
|
15443
|
+
globalRewardKey
|
|
15444
|
+
}
|
|
15445
|
+
}
|
|
15446
|
+
}
|
|
15447
|
+
}
|
|
15448
|
+
}
|
|
15449
|
+
}
|
|
15450
|
+
}
|
|
15451
|
+
}
|
|
15452
|
+
}
|
|
15453
|
+
`;
|
|
15454
|
+
function useRewardsTable(props, emptyElement, loadingElement) {
|
|
15455
|
+
var _a, _b;
|
|
15456
|
+
const user = index_module.T();
|
|
15457
|
+
const programIdContext = index_module.M();
|
|
15458
|
+
// Default to context, overriden by props
|
|
15459
|
+
const programId = (_a = props.programId) !== null && _a !== void 0 ? _a : programIdContext;
|
|
15460
|
+
const rewardFilter = {
|
|
15461
|
+
userId_eq: user === null || user === void 0 ? void 0 : user.id,
|
|
15462
|
+
accountId_eq: user === null || user === void 0 ? void 0 : user.accountId,
|
|
15463
|
+
// If no program ID, shows all programs
|
|
15464
|
+
...(programId
|
|
15465
|
+
? programId === "classic"
|
|
15466
|
+
? { programId_exists: false }
|
|
15467
|
+
: { programId_eq: programId }
|
|
15468
|
+
: {}),
|
|
15469
|
+
};
|
|
15470
|
+
const [content, setContent] = _extends.useReducer((state, next) => ({
|
|
15471
|
+
...state,
|
|
15472
|
+
...next,
|
|
15473
|
+
}), {
|
|
15474
|
+
columns: [],
|
|
15475
|
+
rows: [],
|
|
15476
|
+
loading: false,
|
|
15477
|
+
page: 0,
|
|
15478
|
+
});
|
|
15479
|
+
const { envelope: rewardsData, states, callbacks, } = index_module.sn(GET_REWARDS, (data) => { var _a; return (_a = data === null || data === void 0 ? void 0 : data.viewer) === null || _a === void 0 ? void 0 : _a.rewards; }, {
|
|
15480
|
+
limit: props.perPage,
|
|
15481
|
+
offset: 0,
|
|
15482
|
+
}, {
|
|
15483
|
+
rewardFilter,
|
|
15484
|
+
}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
15485
|
+
const tick = reRender.useRerenderListener();
|
|
15486
|
+
const components = useChildElements();
|
|
15487
|
+
const data = rewardsData === null || rewardsData === void 0 ? void 0 : rewardsData.data;
|
|
15488
|
+
async function getComponentData(components) {
|
|
15489
|
+
// filter out loading and empty states from columns array
|
|
15490
|
+
const columnComponents = components.filter((component) => component.slot !== "loading" && component.slot !== "empty");
|
|
15491
|
+
// get the column titles (renderLabel is asynchronous)
|
|
15492
|
+
const columnsPromise = columnComponents === null || columnComponents === void 0 ? void 0 : columnComponents.map(async (c) => tryMethod$1(c, () => c.renderLabel()));
|
|
15493
|
+
// get the column cells (renderCell is asynchronous)
|
|
15494
|
+
const cellsPromise = data === null || data === void 0 ? void 0 : data.map(async (r) => {
|
|
15495
|
+
const cellPromise = columnComponents === null || columnComponents === void 0 ? void 0 : columnComponents.map(async (c) => tryMethod$1(c, () => c.renderCell([r], c)));
|
|
15496
|
+
const cells = await Promise.all(cellPromise);
|
|
15497
|
+
return cells;
|
|
15498
|
+
});
|
|
15499
|
+
const rows = cellsPromise && (await Promise.all(cellsPromise)).filter((i) => i);
|
|
15500
|
+
setContent({ rows });
|
|
15501
|
+
const columns = columnsPromise && (await Promise.all(columnsPromise));
|
|
15502
|
+
// Set the content to render and finish loading components
|
|
15503
|
+
setContent({ columns, loading: false, page: states.currentPage });
|
|
15504
|
+
}
|
|
15505
|
+
_extends.useEffect(() => {
|
|
15506
|
+
setContent({ loading: true });
|
|
15507
|
+
rewardsData && getComponentData(components);
|
|
15508
|
+
}, [rewardsData, components, tick]);
|
|
15509
|
+
const isEmpty = !((_b = content === null || content === void 0 ? void 0 : content.rows) === null || _b === void 0 ? void 0 : _b.length) && !(data === null || data === void 0 ? void 0 : data.length);
|
|
15510
|
+
console.log(states.loading, content.loading, rewardsData);
|
|
15511
|
+
const show =
|
|
15512
|
+
// 1 - Loading if loading
|
|
15513
|
+
states.loading || content.loading
|
|
15514
|
+
? "loading"
|
|
15515
|
+
: // 2 - Empty if empty
|
|
15516
|
+
isEmpty
|
|
15517
|
+
? "empty"
|
|
15518
|
+
: // 3 - Then show rows
|
|
15519
|
+
"rows";
|
|
15520
|
+
return {
|
|
15521
|
+
states: {
|
|
15522
|
+
hasNext: states.currentPage < states.pageCount - 1,
|
|
15523
|
+
hasPrev: states.currentPage > 0,
|
|
15524
|
+
show,
|
|
15525
|
+
namespace: CSS_NAMESPACE,
|
|
15526
|
+
},
|
|
15527
|
+
data: {
|
|
15528
|
+
textOverrides: {
|
|
15529
|
+
showLabels: props.showLabels,
|
|
15530
|
+
prevLabel: props.prevLabel,
|
|
15531
|
+
moreLabel: props.moreLabel,
|
|
15532
|
+
},
|
|
15533
|
+
},
|
|
15534
|
+
elements: {
|
|
15535
|
+
columns: content.columns,
|
|
15536
|
+
rows: content.rows,
|
|
15537
|
+
emptyElement,
|
|
15538
|
+
loadingElement,
|
|
15539
|
+
},
|
|
15540
|
+
callbacks: {
|
|
15541
|
+
nextPage: () => {
|
|
15542
|
+
if (states.currentPage === 0)
|
|
15543
|
+
callbacks.setLimit(props.perPage);
|
|
15544
|
+
callbacks.setCurrentPage(states.currentPage + 1);
|
|
15545
|
+
},
|
|
15546
|
+
prevPage: () => {
|
|
15547
|
+
if (states.currentPage === 1)
|
|
15548
|
+
callbacks.setLimit(props.perPage - 1);
|
|
15549
|
+
callbacks.setCurrentPage(states.currentPage - 1);
|
|
15550
|
+
},
|
|
15551
|
+
},
|
|
15552
|
+
};
|
|
15553
|
+
}
|
|
15554
|
+
function generateUserError$1(e) {
|
|
15555
|
+
try {
|
|
15556
|
+
return JSON.stringify(e);
|
|
15557
|
+
}
|
|
15558
|
+
catch (e) {
|
|
15559
|
+
return "An unknown error";
|
|
15560
|
+
}
|
|
15561
|
+
}
|
|
15562
|
+
async function tryMethod$1(c, callback) {
|
|
15563
|
+
const tag = c.tagName.toLowerCase();
|
|
15564
|
+
await customElements.whenDefined(tag);
|
|
15565
|
+
let labelPromise;
|
|
15566
|
+
try {
|
|
15567
|
+
labelPromise = callback();
|
|
15568
|
+
}
|
|
15569
|
+
catch (e) {
|
|
15570
|
+
// renderLabel did not return a promise, so this method probably doesn't exist
|
|
15571
|
+
// therefore, we IGNORE the label
|
|
15572
|
+
if (callback.name === "renderReferrerCell") {
|
|
15573
|
+
console.error("column does not have a renderReferrerCell method.");
|
|
15574
|
+
}
|
|
15575
|
+
else {
|
|
15576
|
+
console.error("label promise failed", e);
|
|
15577
|
+
}
|
|
15578
|
+
return index.h("span", null);
|
|
15579
|
+
}
|
|
15580
|
+
try {
|
|
15581
|
+
return await labelPromise;
|
|
15582
|
+
}
|
|
15583
|
+
catch (e) {
|
|
15584
|
+
// The column returned a promise, and that promise failed.
|
|
15585
|
+
// This should not happen so we fail fast
|
|
15586
|
+
console.error("Error rendering label", e);
|
|
15587
|
+
const userError = generateUserError$1(e);
|
|
15588
|
+
return (index.h("details", null,
|
|
15589
|
+
index.h("summary", null, "Error"),
|
|
15590
|
+
userError));
|
|
15591
|
+
}
|
|
15592
|
+
}
|
|
15593
|
+
|
|
15594
|
+
const RewardsTable = class {
|
|
15595
|
+
constructor(hostRef) {
|
|
15596
|
+
index.registerInstance(this, hostRef);
|
|
15597
|
+
/** @uiName Number of rewards per page */
|
|
15598
|
+
this.perPage = 3;
|
|
15599
|
+
/** @uiName Show column labels */
|
|
15600
|
+
this.showLabels = true;
|
|
15601
|
+
/** @uiName Previous button text */
|
|
15602
|
+
this.prevLabel = "Prev";
|
|
15603
|
+
/** @uiName View More button text */
|
|
15604
|
+
this.moreLabel = "Next";
|
|
15605
|
+
/** @uiName Show Referred by user in table */
|
|
15606
|
+
this.showReferrer = false;
|
|
15607
|
+
_extends.h$1(this);
|
|
15608
|
+
}
|
|
15609
|
+
disconnectedCallback() { }
|
|
15610
|
+
render() {
|
|
15611
|
+
const empty = index.h(EmptySlot$1, { label: "No Rewards Yet" });
|
|
15612
|
+
const loading = index.h(LoadingSlot$1, null);
|
|
15613
|
+
const { states, data, callbacks, elements } = index_module.j()
|
|
15614
|
+
? useRewardsTableDemo(this)
|
|
15615
|
+
: useRewardsTable(this, empty, loading);
|
|
15616
|
+
return (index.h(GenericTableView, { states: states, data: data, callbacks: callbacks, elements: elements }));
|
|
15617
|
+
}
|
|
15618
|
+
};
|
|
15619
|
+
function useRewardsTableDemo(props) {
|
|
15620
|
+
return cjs.cjs({
|
|
15621
|
+
states: {
|
|
15622
|
+
hasPrev: false,
|
|
15623
|
+
hasNext: false,
|
|
15624
|
+
loading: false,
|
|
15625
|
+
namespace: CSS_NAMESPACE,
|
|
15626
|
+
},
|
|
15627
|
+
callbacks: {
|
|
15628
|
+
prevPage: () => console.log("Prev"),
|
|
15629
|
+
nextPage: () => console.log("Next"),
|
|
15630
|
+
},
|
|
15631
|
+
data: {
|
|
15632
|
+
textOverrides: {
|
|
15633
|
+
showLabels: props.showLabels,
|
|
15634
|
+
prevLabel: props.prevLabel,
|
|
15635
|
+
moreLabel: props.moreLabel,
|
|
15636
|
+
},
|
|
15637
|
+
referralData: [],
|
|
15638
|
+
},
|
|
15639
|
+
elements: {
|
|
15640
|
+
emptyElement: index.h(EmptySkeleton, { label: "No Rewards Yet" }),
|
|
15641
|
+
loadingElement: index.h(LoadingSkeleton, null),
|
|
15642
|
+
// TODO: This should be smarter
|
|
15643
|
+
columns: [index.h("div", null, "Name"), index.h("div", null, "Email"), index.h("div", null, "DOB")],
|
|
15644
|
+
rows: [],
|
|
15645
|
+
},
|
|
15646
|
+
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
15647
|
+
}
|
|
15648
|
+
|
|
15649
|
+
const RewardsTableColumn = class {
|
|
15650
|
+
constructor(hostRef) {
|
|
15651
|
+
index.registerInstance(this, hostRef);
|
|
15652
|
+
/**
|
|
15653
|
+
* @uiName Reward column title
|
|
15654
|
+
*/
|
|
15655
|
+
this.columnTitle = "Rewards";
|
|
15656
|
+
/**
|
|
15657
|
+
* @uiName Hide dropdown details of reward
|
|
15658
|
+
*/
|
|
15659
|
+
this.hideDetails = false;
|
|
15660
|
+
_extends.h$1(this);
|
|
15661
|
+
}
|
|
15662
|
+
disconnectedCallback() { }
|
|
15663
|
+
//@ts-ignore
|
|
15664
|
+
async renderCell(data) {
|
|
15665
|
+
// TODO: Do the right thing with many rewards, pending rewards, canceled rewards
|
|
15666
|
+
console.log({ data });
|
|
15667
|
+
return (index.h("sqm-referral-table-rewards-cell", { rewards: data, hideDetails: this.hideDetails }));
|
|
15668
|
+
}
|
|
15669
|
+
async renderLabel() {
|
|
15670
|
+
return this.columnTitle;
|
|
15671
|
+
}
|
|
15672
|
+
render() {
|
|
15673
|
+
reRender.useRequestRerender([this.columnTitle]);
|
|
15674
|
+
return index.h(index.Host, { style: { display: "none" } });
|
|
15675
|
+
}
|
|
15676
|
+
};
|
|
15677
|
+
|
|
15309
15678
|
const debug$1 = _extends.browser("sq:useRouter");
|
|
15310
15679
|
function matchPath(pattern, page) {
|
|
15311
15680
|
if (!pattern)
|
|
@@ -15398,24 +15767,24 @@ const SqmRouter = class {
|
|
|
15398
15767
|
};
|
|
15399
15768
|
SqmRouter.style = sqmRouterCss;
|
|
15400
15769
|
|
|
15401
|
-
const style$
|
|
15770
|
+
const style$8 = {
|
|
15402
15771
|
HostBlock: mixins.HostBlock,
|
|
15403
15772
|
buttonStyle: {
|
|
15404
15773
|
display: "block",
|
|
15405
15774
|
},
|
|
15406
15775
|
};
|
|
15407
15776
|
jssPresetDefault_esm.jss.setup(jssPresetDefault_esm.create());
|
|
15408
|
-
const sheet$
|
|
15409
|
-
const styleString$
|
|
15777
|
+
const sheet$8 = jssPresetDefault_esm.jss.createStyleSheet(style$8);
|
|
15778
|
+
const styleString$8 = sheet$8.toString();
|
|
15410
15779
|
function ShareButtonView(props, children) {
|
|
15411
15780
|
return props.hide ? (index.h(index.Host, { style: { display: "none" } })) : (index.h("div", null,
|
|
15412
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
15413
|
-
index.h("sl-button", { class: sheet$
|
|
15781
|
+
index.h("style", { type: "text/css" }, styleString$8),
|
|
15782
|
+
index.h("sl-button", { class: sheet$8.classes.buttonStyle, loading: props.loading, disabled: props.disabled, pill: props.pill, size: props.size, type: props.type, onClick: props.onClick, exportparts: `base: ${props.type}sharebutton-base` },
|
|
15414
15783
|
!props.hideicon && (index.h("sl-icon", { slot: props.iconslot, name: props.icon ? props.icon : props.medium, exportparts: "icon" })),
|
|
15415
15784
|
!props.hidetext && children)));
|
|
15416
15785
|
}
|
|
15417
15786
|
|
|
15418
|
-
const MessageLinkQuery =
|
|
15787
|
+
const MessageLinkQuery = sqmLeaderboardRankView.gql `
|
|
15419
15788
|
query (
|
|
15420
15789
|
$programId: ID
|
|
15421
15790
|
$engagementMedium: UserEngagementMedium!
|
|
@@ -18270,11 +18639,55 @@ const UseRewardExchangeList = /*#__PURE__*/Object.freeze({
|
|
|
18270
18639
|
VariableCreditReward: VariableCreditReward
|
|
18271
18640
|
});
|
|
18272
18641
|
|
|
18642
|
+
const UseRewardsTable_stories = {
|
|
18643
|
+
title: "Hooks / useRewardsTable",
|
|
18644
|
+
};
|
|
18645
|
+
function setupGraphQL$7() {
|
|
18646
|
+
const id = "testestest";
|
|
18647
|
+
const accountId = id;
|
|
18648
|
+
//@ts-ignore
|
|
18649
|
+
window.widgetIdent = {
|
|
18650
|
+
tenantAlias: "test_a8b41jotf8a1v",
|
|
18651
|
+
appDomain: "https://staging.referralsaasquatch.com",
|
|
18652
|
+
};
|
|
18653
|
+
_extends.useEffect(() => {
|
|
18654
|
+
index_module.L({
|
|
18655
|
+
accountId,
|
|
18656
|
+
id,
|
|
18657
|
+
jwt: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImFjY291bnRJZCI6InRlc3Rlc3Rlc3QiLCJpZCI6InRlc3Rlc3Rlc3QifX0.qYnU5hNeIj9C_G3NogfG7btgCPGZC7JRXY0MG6a63zs",
|
|
18658
|
+
});
|
|
18659
|
+
return () => {
|
|
18660
|
+
window.widgetIdent = undefined;
|
|
18661
|
+
index_module.L(undefined);
|
|
18662
|
+
};
|
|
18663
|
+
}, []);
|
|
18664
|
+
return { id, accountId };
|
|
18665
|
+
}
|
|
18666
|
+
const RewardsTableWithProgram = createHookStory(() => {
|
|
18667
|
+
setupGraphQL$7();
|
|
18668
|
+
index_module.A("sam-partner-test-2");
|
|
18669
|
+
return (index.h("sqm-rewards-table", null,
|
|
18670
|
+
index.h("sqm-rewards-table-column", null)));
|
|
18671
|
+
});
|
|
18672
|
+
const RewardsTableNoProgram = createHookStory(() => {
|
|
18673
|
+
setupGraphQL$7();
|
|
18674
|
+
index_module.A(undefined);
|
|
18675
|
+
return (index.h("sqm-rewards-table", null,
|
|
18676
|
+
index.h("sqm-rewards-table-column", null)));
|
|
18677
|
+
});
|
|
18678
|
+
|
|
18679
|
+
const UseRewardsTable = /*#__PURE__*/Object.freeze({
|
|
18680
|
+
__proto__: null,
|
|
18681
|
+
'default': UseRewardsTable_stories,
|
|
18682
|
+
RewardsTableWithProgram: RewardsTableWithProgram,
|
|
18683
|
+
RewardsTableNoProgram: RewardsTableNoProgram
|
|
18684
|
+
});
|
|
18685
|
+
|
|
18273
18686
|
const JWT = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImlkIjoic2FtK2tsaXBAc2Fhc3F1YXQuY2giLCJhY2NvdW50SWQiOiJzYW0ra2xpcEBzYWFzcXVhdC5jaCJ9fQ.FMNZ6oajyr6SiCcRqKKdyPqvNTvWROQ60MKAyfvWGfc";
|
|
18274
18687
|
const UseTaskCard_stories = {
|
|
18275
18688
|
title: "Hooks / useTaskCard",
|
|
18276
18689
|
};
|
|
18277
|
-
function setupGraphQL$
|
|
18690
|
+
function setupGraphQL$8() {
|
|
18278
18691
|
const id = "sam+klip@saasquat.ch";
|
|
18279
18692
|
const accountId = id;
|
|
18280
18693
|
const programId = "klip-referral-program";
|
|
@@ -18298,7 +18711,7 @@ function setupGraphQL$7() {
|
|
|
18298
18711
|
return { id, accountId };
|
|
18299
18712
|
}
|
|
18300
18713
|
const TaskCard = createHookStory(() => {
|
|
18301
|
-
setupGraphQL$
|
|
18714
|
+
setupGraphQL$8();
|
|
18302
18715
|
return (index.h("sqm-task-card", { "card-title": "Comment on 5 articles", "button-text": "Start reading", goal: 5, steps: true, "show-progress-bar": true }));
|
|
18303
18716
|
});
|
|
18304
18717
|
|
|
@@ -18311,15 +18724,15 @@ const UseTaskCard = /*#__PURE__*/Object.freeze({
|
|
|
18311
18724
|
const NewPortal_stories = {
|
|
18312
18725
|
title: "New Portal",
|
|
18313
18726
|
};
|
|
18314
|
-
const style$
|
|
18727
|
+
const style$9 = {
|
|
18315
18728
|
HeaderSubtitleBold: {
|
|
18316
18729
|
"font-weight": 500,
|
|
18317
18730
|
"text-decoration": "underline",
|
|
18318
18731
|
},
|
|
18319
18732
|
};
|
|
18320
18733
|
jssPresetDefault_esm.jss.setup(jssPresetDefault_esm.create());
|
|
18321
|
-
const sheet$
|
|
18322
|
-
const styleString$
|
|
18734
|
+
const sheet$9 = jssPresetDefault_esm.jss.createStyleSheet(style$9);
|
|
18735
|
+
const styleString$9 = sheet$9.toString();
|
|
18323
18736
|
const barProps = {
|
|
18324
18737
|
data: {
|
|
18325
18738
|
programs: [
|
|
@@ -18414,7 +18827,7 @@ const Dashboard = () => {
|
|
|
18414
18827
|
hide: false,
|
|
18415
18828
|
};
|
|
18416
18829
|
return (index.h("sqm-divided-layout", { direction: "row" },
|
|
18417
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
18830
|
+
index.h("style", { type: "text/css" }, styleString$9),
|
|
18418
18831
|
index.h(Sidebar, null),
|
|
18419
18832
|
index.h("sqm-divided-layout", { direction: "column" },
|
|
18420
18833
|
index.h(sqmPortalContainerView.PortalContainerView, Object.assign({}, { direction: "column", padding: "xxx-large", gap: "xxx-large" }),
|
|
@@ -18472,7 +18885,7 @@ const Dashboard = () => {
|
|
|
18472
18885
|
};
|
|
18473
18886
|
const EditProfile$2 = () => {
|
|
18474
18887
|
return (index.h("sqm-divided-layout", { direction: "row" },
|
|
18475
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
18888
|
+
index.h("style", { type: "text/css" }, styleString$9),
|
|
18476
18889
|
index.h(Sidebar, null),
|
|
18477
18890
|
index.h("sqm-divided-layout", { direction: "column" },
|
|
18478
18891
|
index.h(sqmPortalProfileView.PortalProfileView, Object.assign({}, {
|
|
@@ -18536,7 +18949,7 @@ const EditProfile$2 = () => {
|
|
|
18536
18949
|
};
|
|
18537
18950
|
const Commissions = () => {
|
|
18538
18951
|
return (index.h("sqm-divided-layout", { direction: "row" },
|
|
18539
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
18952
|
+
index.h("style", { type: "text/css" }, styleString$9),
|
|
18540
18953
|
index.h(Sidebar, null),
|
|
18541
18954
|
index.h("sqm-divided-layout", { direction: "column" },
|
|
18542
18955
|
index.h(sqmPortalContainerView.PortalContainerView, Object.assign({}, { direction: "column", padding: "xxx-large", gap: "xxx-large" }),
|
|
@@ -18549,7 +18962,7 @@ const Commissions = () => {
|
|
|
18549
18962
|
index.h("p", null,
|
|
18550
18963
|
"for the",
|
|
18551
18964
|
" ",
|
|
18552
|
-
index.h("span", { class: sheet$
|
|
18965
|
+
index.h("span", { class: sheet$9.classes.HeaderSubtitleBold }, "Partner Program #1"),
|
|
18553
18966
|
" ",
|
|
18554
18967
|
"program"))),
|
|
18555
18968
|
})),
|
|
@@ -18561,7 +18974,7 @@ const Commissions = () => {
|
|
|
18561
18974
|
};
|
|
18562
18975
|
const Activity = () => {
|
|
18563
18976
|
return (index.h("sqm-divided-layout", { direction: "row" },
|
|
18564
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
18977
|
+
index.h("style", { type: "text/css" }, styleString$9),
|
|
18565
18978
|
index.h(Sidebar, null),
|
|
18566
18979
|
index.h("sqm-divided-layout", { direction: "column" },
|
|
18567
18980
|
index.h(sqmPortalContainerView.PortalContainerView, Object.assign({}, { direction: "column", padding: "xxx-large", gap: "xxx-large" }),
|
|
@@ -18574,7 +18987,7 @@ const Activity = () => {
|
|
|
18574
18987
|
index.h("p", null,
|
|
18575
18988
|
"for the",
|
|
18576
18989
|
" ",
|
|
18577
|
-
index.h("span", { class: sheet$
|
|
18990
|
+
index.h("span", { class: sheet$9.classes.HeaderSubtitleBold }, "Partner Program #1"),
|
|
18578
18991
|
" ",
|
|
18579
18992
|
"program"))),
|
|
18580
18993
|
})),
|
|
@@ -20648,7 +21061,7 @@ function ProgressBarView(props) {
|
|
|
20648
21061
|
ProgressBar: {
|
|
20649
21062
|
"& .progress-bar": {
|
|
20650
21063
|
height: "15px",
|
|
20651
|
-
marginTop: "var(--sl-spacing-xx-large)",
|
|
21064
|
+
marginTop: steps ? "var(--sl-spacing-x-large)" : "var(--sl-spacing-xx-large)",
|
|
20652
21065
|
marginBottom: "var(--sl-spacing-xx-large)",
|
|
20653
21066
|
marginRight: "var(--sl-spacing-x-small)",
|
|
20654
21067
|
fontSize: "var(--sl-font-size-x-small)",
|
|
@@ -21019,8 +21432,8 @@ function TaskCardView(props) {
|
|
|
21019
21432
|
index.h("span", { class: "value" }, rewardAmount),
|
|
21020
21433
|
index.h("span", { class: "text" }, rewardUnit)),
|
|
21021
21434
|
index.h("div", { class: sheet.classes.Title }, cardTitle),
|
|
21022
|
-
showProgressBar && loading ? (index.h("sl-skeleton", { style: { width: "98%", margin: "0 auto" } })) : (showProgressBar && index.h(ProgressBarView, Object.assign({}, props))),
|
|
21023
21435
|
index.h(Details, { description: description }),
|
|
21436
|
+
showProgressBar && loading ? (index.h("sl-skeleton", { style: { width: "98%", margin: "0 auto" } })) : (showProgressBar && index.h(ProgressBarView, Object.assign({}, props))),
|
|
21024
21437
|
index.h("div", { class: sheet.classes.Footer },
|
|
21025
21438
|
index.h("span", { class: "text" },
|
|
21026
21439
|
repeatable && (index.h("div", null,
|
|
@@ -21033,7 +21446,7 @@ function TaskCardView(props) {
|
|
|
21033
21446
|
"Ends ",
|
|
21034
21447
|
" ",
|
|
21035
21448
|
dateExpires))),
|
|
21036
|
-
index.h("sl-button", { class: "action", size: "small", onClick: () =>
|
|
21449
|
+
index.h("sl-button", { class: "action", size: "small", onClick: () => window.open(buttonLink), disabled: showComplete && repeatable == false }, showComplete && repeatable == false
|
|
21037
21450
|
? "Task completed"
|
|
21038
21451
|
: buttonText)))));
|
|
21039
21452
|
}
|
|
@@ -24561,7 +24974,7 @@ const ReferralIframeReadme = "# sqm-referral-iframe\r\n\r\n\r\n\r\n<!-- Auto Gen
|
|
|
24561
24974
|
|
|
24562
24975
|
const ForgotPasswordReadme = "# sqm-portal-forgot-password\r\n\r\n\r\n\r\n<!-- Auto Generated Below -->\r\n\r\n\r\n## Properties\r\n\r\n| Property | Attribute | Description | Type | Default |\r\n| ------------- | -------------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------- |\r\n| `demoData` | -- | | `{ states?: { error: string; loading: boolean; success: boolean; }; content?: { secondaryButton: any; messageSlot: any; emailLabel?: string; submitLabel?: string; }; }` | `undefined` |\r\n| `emailLabel` | `email-label` | | `string` | `\"Email\"` |\r\n| `submitLabel` | `submit-label` | | `string` | `\"Request Password Reset\"` |\r\n\r\n\r\n## Dependencies\r\n\r\n### Depends on\r\n\r\n- [sqm-form-message](../sqm-form-message)\r\n\r\n### Graph\r\n```mermaid\r\ngraph TD;\r\n sqm-portal-forgot-password --> sqm-form-message\r\n style sqm-portal-forgot-password fill:#f9f,stroke:#333,stroke-width:4px\r\n```\r\n\r\n----------------------------------------------\r\n\r\n*Built with [StencilJS](https://stenciljs.com/)*\r\n";
|
|
24563
24976
|
|
|
24564
|
-
const RegisterReadme = "# sqm-portal-register\r\n\r\n\r\n\r\n<!-- Auto Generated Below -->\
|
|
24977
|
+
const RegisterReadme = "# sqm-portal-register\r\n\r\n\r\n\r\n<!-- Auto Generated Below -->\n\n\n## Properties\n\n| Property | Attribute | Description | Type | Default |\n| -------------------------- | ---------------------------- | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------- |\n| `confirmPassword` | `confirm-password` | | `boolean` | `false` |\n| `confirmPasswordLabel` | `confirm-password-label` | | `string` | `\"Confirm Password\"` |\n| `demoData` | -- | | `{ states?: { error: string; loading: boolean; confirmPassword: boolean; hideInputs: boolean; validationState?: FormState; enablePasswordValidation?: boolean; }; refs?: { formRef: any; }; content?: { formData?: any; passwordField?: any; secondaryButton?: any; emailLabel?: string; passwordLabel?: string; submitLabel?: string; pageLabel?: string; confirmPasswordLabel: string; }; }` | `undefined` |\n| `emailLabel` | `email-label` | | `string` | `\"Email\"` |\n| `enablePasswordValidation` | `enable-password-validation` | | `boolean` | `true` |\n| `hideInputs` | `hide-inputs` | | `boolean` | `false` |\n| `loginLabel` | `login-label` | | `string` | `\"Sign in\"` |\n| `nextPage` | `next-page` | | `string` | `\"/\"` |\n| `pageLabel` | `page-label` | | `string` | `\"Register\"` |\n| `passwordLabel` | `password-label` | | `string` | `\"Password\"` |\n| `submitLabel` | `submit-label` | | `string` | `\"Register\"` |\n\n\n## Dependencies\n\n### Used by\n\n - [sqm-stencilbook](../sqm-stencilbook)\n\n### Depends on\n\n- [sqm-form-message](../sqm-form-message)\n- [sqm-password-field](../sqm-password-field)\n\n### Graph\n```mermaid\ngraph TD;\n sqm-portal-register --> sqm-form-message\n sqm-portal-register --> sqm-password-field\n sqm-stencilbook --> sqm-portal-register\n style sqm-portal-register fill:#f9f,stroke:#333,stroke-width:4px\n```\n\n----------------------------------------------\n\n*Built with [StencilJS](https://stenciljs.com/)*\n";
|
|
24565
24978
|
|
|
24566
24979
|
const EditProfileReadme = "# sqm-portal-profile\r\n\r\n\r\n\r\n<!-- Auto Generated Below -->\r\n\r\n\r\n## Properties\r\n\r\n| Property | Attribute | Description | Type | Default |\r\n| ------------------------ | --------------------------- | ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------ |\r\n| `countrytext` | `countrytext` | | `string` | `\"Country\"` |\r\n| `demoData` | -- | | `{ states?: { success: boolean; loading: boolean; submitDisabled: boolean; showCountry: boolean; formState: { country: string; firstName: string; lastName: string; errors: any; error: string; }; user: { id: string; accountId: string; firstName: string; lastName: string; email: string; countryCode: string; }; text: { firstnametext: string; lastnametext: string; emailtext: string; countrytext: string; editProfileHeader: string; editProfileSubHeader: string; submitChangeButtonText: string; }; }; }` | `undefined` |\r\n| `editProfileHeader` | `edit-profile-header` | | `string` | `\"Edit your profile\"` |\r\n| `editProfileSubHeader` | `edit-profile-sub-header` | | `string` | `\"Personal Information\"` |\r\n| `emailtext` | `emailtext` | | `string` | `\"Email\"` |\r\n| `firstnametext` | `firstnametext` | | `string` | `\"First Name\"` |\r\n| `lastnametext` | `lastnametext` | | `string` | `\"Last Name\"` |\r\n| `showCountry` | `show-country` | | `boolean` | `true` |\r\n| `submitChangeButtonText` | `submit-change-button-text` | | `string` | `\"Submit Changes\"` |\r\n\r\n\r\n## Dependencies\r\n\r\n### Depends on\r\n\r\n- [sqm-form-message](../sqm-form-message)\r\n\r\n### Graph\r\n```mermaid\r\ngraph TD;\r\n sqm-portal-profile --> sqm-form-message\r\n style sqm-portal-profile fill:#f9f,stroke:#333,stroke-width:4px\r\n```\r\n\r\n----------------------------------------------\r\n\r\n*Built with [StencilJS](https://stenciljs.com/)*\r\n";
|
|
24567
24980
|
|
|
@@ -24569,7 +24982,7 @@ const ResetPasswordReadme = "# sqm-portal-reset-password\r\n\r\n\r\n\r\n<!-- Aut
|
|
|
24569
24982
|
|
|
24570
24983
|
const EmailVerificationReadme = "# sqm-portal-email-verification\r\n\r\n\r\n\r\n<!-- Auto Generated Below -->\r\n\r\n\r\n## Properties\r\n\r\n| Property | Attribute | Description | Type | Default |\r\n| ------------------------- | --------------------------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- |\r\n| `demoData` | -- | | `{ states?: { error: string; loading: boolean; success: boolean; }; content?: { email: string; verifyMessage: string; emailVerificationHeader: string; resendEmailButtonText: string; }; }` | `undefined` |\r\n| `emailVerificationHeader` | `email-verification-header` | | `string` | `\"Verify your email\"` |\r\n| `resendEmailButtonText` | `resend-email-button-text` | | `string` | `\"Re-send Email\"` |\r\n| `verifyMessage` | `verify-message` | | `string` | `\"A verification email was sent to {email}. Please verify your email to continue to the portal.\"` |\r\n\r\n\r\n## Dependencies\r\n\r\n### Depends on\r\n\r\n- [sqm-form-message](../sqm-form-message)\r\n\r\n### Graph\r\n```mermaid\r\ngraph TD;\r\n sqm-portal-email-verification --> sqm-form-message\r\n style sqm-portal-email-verification fill:#f9f,stroke:#333,stroke-width:4px\r\n```\r\n\r\n----------------------------------------------\r\n\r\n*Built with [StencilJS](https://stenciljs.com/)*\r\n";
|
|
24571
24984
|
|
|
24572
|
-
const EmailVerifiedReadme = "# sqm-portal-verify-email\r\n\r\n\r\n\r\n<!-- Auto Generated Below -->\n\n\n## Properties\n\n| Property | Attribute | Description | Type | Default |\n| ---------- | ----------- | ----------- | ---------------------------------------------------------------------------------------------------- | ----------- |\n| `demoData` | -- | | `{ states?: { error: string; loading: boolean; verified: boolean; }; data?: { oobCode: string; }; }` | `undefined` |\n| `nextPage` | `next-page` | | `string` | `\"/\"` |\n\n\n## Dependencies\n\n### Depends on\n\n- [sqm-form-message](../sqm-form-message)\n\n### Graph\n```mermaid\ngraph TD;\n sqm-portal-verify-email --> sqm-form-message\n style sqm-portal-verify-email fill:#f9f,stroke:#333,stroke-width:4px\n```\n\n----------------------------------------------\n\n*Built with [StencilJS](https://stenciljs.com/)*\n";
|
|
24985
|
+
const EmailVerifiedReadme = "# sqm-portal-verify-email\r\n\r\n\r\n\r\n<!-- Auto Generated Below -->\r\n\r\n\r\n## Properties\r\n\r\n| Property | Attribute | Description | Type | Default |\r\n| ---------- | ----------- | ----------- | ---------------------------------------------------------------------------------------------------- | ----------- |\r\n| `demoData` | -- | | `{ states?: { error: string; loading: boolean; verified: boolean; }; data?: { oobCode: string; }; }` | `undefined` |\r\n| `nextPage` | `next-page` | | `string` | `\"/\"` |\r\n\r\n\r\n## Dependencies\r\n\r\n### Depends on\r\n\r\n- [sqm-form-message](../sqm-form-message)\r\n\r\n### Graph\r\n```mermaid\r\ngraph TD;\r\n sqm-portal-verify-email --> sqm-form-message\r\n style sqm-portal-verify-email fill:#f9f,stroke:#333,stroke-width:4px\r\n```\r\n\r\n----------------------------------------------\r\n\r\n*Built with [StencilJS](https://stenciljs.com/)*\r\n";
|
|
24573
24986
|
|
|
24574
24987
|
const PortalTemplates_stories = {
|
|
24575
24988
|
title: "Templates / Portal",
|
|
@@ -25080,6 +25493,251 @@ const NameFields$1 = /*#__PURE__*/Object.freeze({
|
|
|
25080
25493
|
NameFieldsWithErrors: NameFieldsWithErrors
|
|
25081
25494
|
});
|
|
25082
25495
|
|
|
25496
|
+
const baseResponse = (data) => ({
|
|
25497
|
+
states: {
|
|
25498
|
+
content: null,
|
|
25499
|
+
redeemStage: "chooseReward",
|
|
25500
|
+
amount: 0,
|
|
25501
|
+
exchangeError: false,
|
|
25502
|
+
loading: false,
|
|
25503
|
+
selectedItem: null,
|
|
25504
|
+
selectedStep: null,
|
|
25505
|
+
},
|
|
25506
|
+
data: {
|
|
25507
|
+
exchangeList: data,
|
|
25508
|
+
},
|
|
25509
|
+
callbacks: {
|
|
25510
|
+
exchangeReward: null,
|
|
25511
|
+
openDrawer: null,
|
|
25512
|
+
setStage: null,
|
|
25513
|
+
setExchangeState: null,
|
|
25514
|
+
refs: null,
|
|
25515
|
+
},
|
|
25516
|
+
refs: null,
|
|
25517
|
+
});
|
|
25518
|
+
const baseReward$2 = {
|
|
25519
|
+
key: "",
|
|
25520
|
+
name: "",
|
|
25521
|
+
description: "",
|
|
25522
|
+
imageUrl: "",
|
|
25523
|
+
available: true,
|
|
25524
|
+
unavailableReason: null,
|
|
25525
|
+
unavailableReasonCode: null,
|
|
25526
|
+
ruleType: "FIXED_GLOBAL_REWARD",
|
|
25527
|
+
sourceUnit: "POINT",
|
|
25528
|
+
sourceValue: 10,
|
|
25529
|
+
prettySourceValue: "10 SaaSquatch Points",
|
|
25530
|
+
sourceMinValue: null,
|
|
25531
|
+
prettySourceMinValue: null,
|
|
25532
|
+
sourceMaxValue: null,
|
|
25533
|
+
prettySourceMaxValue: null,
|
|
25534
|
+
destinationMinValue: null,
|
|
25535
|
+
prettyDestinationMinValue: null,
|
|
25536
|
+
destinationMaxValue: null,
|
|
25537
|
+
prettyDestinationMaxValue: null,
|
|
25538
|
+
globalRewardKey: "",
|
|
25539
|
+
destinationUnit: null,
|
|
25540
|
+
steps: [],
|
|
25541
|
+
};
|
|
25542
|
+
const notEnoughPoints = {
|
|
25543
|
+
available: false,
|
|
25544
|
+
unavailableReasonCode: "INSUFFICIENT_REDEEMABLE_CREDIT",
|
|
25545
|
+
};
|
|
25546
|
+
const usTax = {
|
|
25547
|
+
available: false,
|
|
25548
|
+
unavailableReasonCode: "US_TAX",
|
|
25549
|
+
};
|
|
25550
|
+
const imageUrl = (props) => ({
|
|
25551
|
+
imageUrl: props,
|
|
25552
|
+
});
|
|
25553
|
+
const description = (props) => ({
|
|
25554
|
+
description: props,
|
|
25555
|
+
});
|
|
25556
|
+
const fixedValue = (props) => ({
|
|
25557
|
+
prettySourceValue: props,
|
|
25558
|
+
});
|
|
25559
|
+
const variableValue = (min, max, text) => ({
|
|
25560
|
+
ruleType: "VARIABLE_CREDIT_REWARD",
|
|
25561
|
+
sourceMinValue: min,
|
|
25562
|
+
prettySourceMinValue: min + " " + text,
|
|
25563
|
+
sourceMaxValue: max,
|
|
25564
|
+
prettySourceMaxValue: max + " " + text,
|
|
25565
|
+
});
|
|
25566
|
+
const test = {
|
|
25567
|
+
...baseResponse([
|
|
25568
|
+
{
|
|
25569
|
+
...baseReward$2,
|
|
25570
|
+
...description("Free swag with a promo code"),
|
|
25571
|
+
...imageUrl("https://i.imgur.com/Ds7M19I.png"),
|
|
25572
|
+
...fixedValue("40 SaaSquatch Points"),
|
|
25573
|
+
},
|
|
25574
|
+
{
|
|
25575
|
+
...baseReward$2,
|
|
25576
|
+
...description("Visa® Prepaid Card USD"),
|
|
25577
|
+
...imageUrl("https://i.imgur.com/4s3q2zz.png"),
|
|
25578
|
+
...variableValue(20, 80, "SaaSquatch Points"),
|
|
25579
|
+
},
|
|
25580
|
+
{
|
|
25581
|
+
...baseReward$2,
|
|
25582
|
+
...description("A very exclusive gift box"),
|
|
25583
|
+
...imageUrl("https://i.imgur.com/XuiJi4l.png"),
|
|
25584
|
+
...fixedValue("30 SaaSquatch Points"),
|
|
25585
|
+
},
|
|
25586
|
+
{
|
|
25587
|
+
...baseReward$2,
|
|
25588
|
+
...description("$50 Store credit"),
|
|
25589
|
+
...imageUrl("https://i.imgur.com/WkCMVSE.png"),
|
|
25590
|
+
...fixedValue("100 SaaSquatch Points"),
|
|
25591
|
+
},
|
|
25592
|
+
{
|
|
25593
|
+
...baseReward$2,
|
|
25594
|
+
...description("Variable amount of store credit"),
|
|
25595
|
+
...imageUrl("https://i.imgur.com/Jn2fE0s.png"),
|
|
25596
|
+
...variableValue(20, 100, "SaaSquatch Points"),
|
|
25597
|
+
},
|
|
25598
|
+
{
|
|
25599
|
+
...baseReward$2,
|
|
25600
|
+
...notEnoughPoints,
|
|
25601
|
+
...description("A very rare cactus"),
|
|
25602
|
+
...imageUrl("https://i.imgur.com/CvCdpXc.png"),
|
|
25603
|
+
...fixedValue("2000 SaaSquatch Points"),
|
|
25604
|
+
},
|
|
25605
|
+
{
|
|
25606
|
+
...baseReward$2,
|
|
25607
|
+
...usTax,
|
|
25608
|
+
...description("$1000 Store credit"),
|
|
25609
|
+
...imageUrl("https://i.imgur.com/I9FCh9Z.png"),
|
|
25610
|
+
...fixedValue("2000 SaaSquatch Points"),
|
|
25611
|
+
},
|
|
25612
|
+
{
|
|
25613
|
+
...baseReward$2,
|
|
25614
|
+
...notEnoughPoints,
|
|
25615
|
+
...description("A holiday gift box"),
|
|
25616
|
+
...imageUrl("https://i.imgur.com/HBJS1WH.png"),
|
|
25617
|
+
...fixedValue("100 SaaSquatch Points"),
|
|
25618
|
+
},
|
|
25619
|
+
]),
|
|
25620
|
+
};
|
|
25621
|
+
const test2 = {
|
|
25622
|
+
states: {
|
|
25623
|
+
content: {
|
|
25624
|
+
text: {
|
|
25625
|
+
buttonText: "Exchange Rewards",
|
|
25626
|
+
ignored: true,
|
|
25627
|
+
},
|
|
25628
|
+
},
|
|
25629
|
+
redeemStage: "chooseAmount",
|
|
25630
|
+
amount: 0,
|
|
25631
|
+
exchangeError: false,
|
|
25632
|
+
loading: false,
|
|
25633
|
+
selectedItem: {
|
|
25634
|
+
key: "r4",
|
|
25635
|
+
name: "Salmon Coins",
|
|
25636
|
+
description: "Points for Salmon Coins",
|
|
25637
|
+
imageUrl: "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAoHCBUWFRgWFRYYGRgZGh4cHBocHR4aHxwdGRwZHBwfHh4cIS4lHB4rHxoYJjgnKy8xNTU1GiQ7QD00Py40NTEBDAwMEA8QHhISHzQrJCs0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NP/AABEIAIABiQMBIgACEQEDEQH/xAAcAAEAAQUBAQAAAAAAAAAAAAAABAECAwUGBwj/xAA+EAABAwICBgYHBwQCAwAAAAABAAIRAyEEMQUSQVFhcQYTgZGhsQciMkJScvAUYoKSwdHhorLC8SMzFUNj/8QAGAEBAQEBAQAAAAAAAAAAAAAAAAECAwT/xAAfEQEBAQEBAQEAAwEBAAAAAAAAARECEiExE0FRYQP/2gAMAwEAAhEDEQA/APZkREBERAREQEREBERAREQEREBERAREQERY6jw0EkgACSTYADMk7AgvVjHgzBBixgzBXmfSjpqapNLDuLaeTqgs58Zhl/Vbx28BnA0Lj3UXNcx0G0tmxHwkW1tvLhks3qRZHryqtdonSjK7dZtnCzmzJaf1HFbFWXUERFQREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBFSVqdNafoYVoNaoAT7LBdzvlaLxxyG0oNlUqBoLnEAASSTAAFySTkF5H0z6WHEuNKiSKANx7JqkXl20MFoHfsAidKemVTFeo31KPwAgl0ZF7hY7IaLA39aBHNsIO0cv34eaCVSeBlcnblb/FqnYatxz3WLhw+FnHMrVMfx7/MjyCkMI5znx+Y7flCx1NajqNGaUdTIex2qRYRkRuj3h+y9D0Lp2nXETq1APWb5xv5ZjxXj9Ovt8dsdmXIHmVKw+OIg62rGWqQIINvWs1vZJWeZeVuV7gi5Xoj0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TJhbqqIiqCIiAiIgIiICIiAiIgIiICIiAiIgIiICIiAiIg//Z",
|
|
25638
|
+
available: true,
|
|
25639
|
+
unavailableReason: null,
|
|
25640
|
+
unavailableReasonCode: null,
|
|
25641
|
+
ruleType: "VARIABLE_CREDIT_REWARD",
|
|
25642
|
+
sourceUnit: "POINT",
|
|
25643
|
+
sourceValue: null,
|
|
25644
|
+
prettySourceValue: null,
|
|
25645
|
+
sourceMinValue: 1,
|
|
25646
|
+
prettySourceMinValue: "1 Point",
|
|
25647
|
+
sourceMaxValue: 100,
|
|
25648
|
+
prettySourceMaxValue: "100 Points",
|
|
25649
|
+
destinationMinValue: 1,
|
|
25650
|
+
prettyDestinationMinValue: "1 Salmon Coin",
|
|
25651
|
+
destinationMaxValue: 100,
|
|
25652
|
+
prettyDestinationMaxValue: "100 Salmons",
|
|
25653
|
+
globalRewardKey: null,
|
|
25654
|
+
destinationUnit: "TESTUNIT",
|
|
25655
|
+
steps: [
|
|
25656
|
+
{
|
|
25657
|
+
sourceValue: 1,
|
|
25658
|
+
prettySourceValue: "1 Point",
|
|
25659
|
+
destinationValue: 1,
|
|
25660
|
+
prettyDestinationValue: "1 Salmon Coin",
|
|
25661
|
+
available: true,
|
|
25662
|
+
unavailableReasonCode: null,
|
|
25663
|
+
},
|
|
25664
|
+
{
|
|
25665
|
+
sourceValue: 2,
|
|
25666
|
+
prettySourceValue: "2 Points",
|
|
25667
|
+
destinationValue: 2,
|
|
25668
|
+
prettyDestinationValue: "2 Salmons",
|
|
25669
|
+
available: true,
|
|
25670
|
+
unavailableReasonCode: null,
|
|
25671
|
+
},
|
|
25672
|
+
{
|
|
25673
|
+
sourceValue: 3,
|
|
25674
|
+
prettySourceValue: "3 Points",
|
|
25675
|
+
destinationValue: 3,
|
|
25676
|
+
prettyDestinationValue: "3 Salmons",
|
|
25677
|
+
available: true,
|
|
25678
|
+
unavailableReasonCode: null,
|
|
25679
|
+
},
|
|
25680
|
+
{
|
|
25681
|
+
sourceValue: 4,
|
|
25682
|
+
prettySourceValue: "4 Points",
|
|
25683
|
+
destinationValue: 4,
|
|
25684
|
+
prettyDestinationValue: "4 Salmons",
|
|
25685
|
+
available: true,
|
|
25686
|
+
unavailableReasonCode: null,
|
|
25687
|
+
},
|
|
25688
|
+
{
|
|
25689
|
+
sourceValue: 5,
|
|
25690
|
+
prettySourceValue: "5 Points",
|
|
25691
|
+
destinationValue: 5,
|
|
25692
|
+
prettyDestinationValue: "5 Salmons",
|
|
25693
|
+
available: true,
|
|
25694
|
+
unavailableReasonCode: null,
|
|
25695
|
+
},
|
|
25696
|
+
],
|
|
25697
|
+
},
|
|
25698
|
+
selectedStep: null,
|
|
25699
|
+
},
|
|
25700
|
+
data: {
|
|
25701
|
+
exchangeList: null,
|
|
25702
|
+
},
|
|
25703
|
+
callbacks: {
|
|
25704
|
+
exchangeReward: null,
|
|
25705
|
+
openDrawer: null,
|
|
25706
|
+
setStage: null,
|
|
25707
|
+
setExchangeState: null,
|
|
25708
|
+
refs: {
|
|
25709
|
+
drawerRef: {},
|
|
25710
|
+
},
|
|
25711
|
+
},
|
|
25712
|
+
refs: null,
|
|
25713
|
+
};
|
|
25714
|
+
|
|
25715
|
+
const RewardExchangeList_stories = {
|
|
25716
|
+
title: "Components/Reward Exchange List",
|
|
25717
|
+
};
|
|
25718
|
+
const resizable$1 = {
|
|
25719
|
+
width: "683px",
|
|
25720
|
+
minWidth: "260px",
|
|
25721
|
+
resize: "horizontal",
|
|
25722
|
+
height: "fit-content",
|
|
25723
|
+
overflow: "hidden",
|
|
25724
|
+
};
|
|
25725
|
+
const Default$c = () => {
|
|
25726
|
+
return (index.h("div", { style: resizable$1 },
|
|
25727
|
+
index.h(RewardExchangeView, Object.assign({}, test))));
|
|
25728
|
+
};
|
|
25729
|
+
const Default2 = () => {
|
|
25730
|
+
return (index.h("div", { style: { ...resizable$1, height: "700px" } },
|
|
25731
|
+
index.h(RewardExchangeView, Object.assign({}, test2))));
|
|
25732
|
+
};
|
|
25733
|
+
|
|
25734
|
+
const RewardExchangeList = /*#__PURE__*/Object.freeze({
|
|
25735
|
+
__proto__: null,
|
|
25736
|
+
'default': RewardExchangeList_stories,
|
|
25737
|
+
Default: Default$c,
|
|
25738
|
+
Default2: Default2
|
|
25739
|
+
});
|
|
25740
|
+
|
|
25083
25741
|
function deepFreeze(obj) {
|
|
25084
25742
|
if (obj instanceof Map) {
|
|
25085
25743
|
obj.clear = obj.delete = obj.set = function () {
|
|
@@ -27708,8 +28366,10 @@ const stories = [
|
|
|
27708
28366
|
Hero,
|
|
27709
28367
|
ReferralIframe$1,
|
|
27710
28368
|
NameFields$1,
|
|
28369
|
+
RewardExchangeList,
|
|
27711
28370
|
UseRewardExchangeList,
|
|
27712
28371
|
UseTaskCard,
|
|
28372
|
+
UseRewardsTable
|
|
27713
28373
|
];
|
|
27714
28374
|
const StencilStorybook = class {
|
|
27715
28375
|
constructor(hostRef) {
|
|
@@ -27892,7 +28552,7 @@ function UserNameView(props) {
|
|
|
27892
28552
|
return index.h(index.Host, null, props.loading ? props.loadingText : props.username);
|
|
27893
28553
|
}
|
|
27894
28554
|
|
|
27895
|
-
const GET_USER_NAME =
|
|
28555
|
+
const GET_USER_NAME = sqmLeaderboardRankView.gql `
|
|
27896
28556
|
query getUserName {
|
|
27897
28557
|
viewer {
|
|
27898
28558
|
... on User {
|
|
@@ -27964,6 +28624,8 @@ exports.sqm_referral_table_rewards_cell = ReferralTableRewardsCell;
|
|
|
27964
28624
|
exports.sqm_referral_table_status_cell = ReferralTableStatusCell;
|
|
27965
28625
|
exports.sqm_referral_table_user_cell = ReferralTableUserCell;
|
|
27966
28626
|
exports.sqm_reward_exchange_list = SqmRewardExchangeList;
|
|
28627
|
+
exports.sqm_rewards_table = RewardsTable;
|
|
28628
|
+
exports.sqm_rewards_table_column = RewardsTableColumn;
|
|
27967
28629
|
exports.sqm_router = SqmRouter;
|
|
27968
28630
|
exports.sqm_share_button = ShareButton;
|
|
27969
28631
|
exports.sqm_share_link = ShareLink;
|