@saasquatch/mint-components 1.5.0-0 → 1.5.0-1
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 +2 -2
- package/dist/cjs/mint-components.cjs.js +2 -2
- 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-divided-layout_30.cjs.entry.js +193 -129
- 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-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 +3 -3
- package/dist/cjs/{useDemoBigStat-2786227e.js → useDemoBigStat-5d71bbdf.js} +3 -3
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +8 -6
- package/dist/collection/components/sqm-reward-exchange-list/useRewardExchangeList.js +12 -0
- package/dist/collection/components/sqm-stencilbook/Themes.js +14 -0
- package/dist/collection/components/sqm-task-card/TaskCard.stories.js +11 -15
- package/dist/collection/components/sqm-task-card/progress-bar/progress-bar-view.js +37 -0
- package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +8 -6
- 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 +2 -2
- package/dist/esm/mint-components.js +2 -2
- 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-divided-layout_30.entry.js +193 -129
- 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-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 +3 -3
- 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-divided-layout_30.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-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-0029a386.system.entry.js +1 -0
- package/dist/mint-components/{p-a6094ff9.system.js → p-02dc36a4.system.js} +1 -1
- package/dist/mint-components/p-03a6becf.entry.js +9 -0
- 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-221a4097.entry.js → p-1705e549.entry.js} +1 -1
- 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-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-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-58ffe936.system.entry.js +58 -0
- 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-52802c88.entry.js → p-759d3800.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-85efd952.entry.js +1 -0
- package/dist/mint-components/p-86255b95.entry.js +1 -0
- package/dist/mint-components/{p-fdb484a0.entry.js → p-88d9bd59.entry.js} +12 -11
- package/dist/mint-components/{p-24c9a599.system.entry.js → p-88fdfd94.system.entry.js} +1 -1
- package/dist/mint-components/{p-46a4269a.js → p-8fd8682c.js} +1 -1
- 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-16f5a7cb.system.js → p-a88a08bb.system.js} +1 -1
- 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-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-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-reward-exchange-list/useRewardExchangeList.d.ts +1 -0
- package/dist/types/components/sqm-stencilbook/Themes.d.ts +1 -0
- package/package.json +2 -2
- 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/useDemoBigStat-c3b955b7.js +0 -1
- package/dist/mint-components/p-160bd62f.entry.js +0 -1
- package/dist/mint-components/p-1c8b0290.entry.js +0 -1
- package/dist/mint-components/p-20d41ab1.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-5480e4ee.entry.js +0 -1
- package/dist/mint-components/p-55508395.system.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-925ccb31.system.entry.js +0 -58
- 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-cd410a05.entry.js +0 -9
- package/dist/mint-components/p-d174d0bc.system.entry.js +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { h, r as registerInstance, c as Host, d as getAssetPath } from './index-17b4da69.js';
|
|
2
2
|
import { m as h$1, j as useState, e as useEffect, f as useRef, n as d$2, y as y$1, b as browser, u as useReducer, c as createCommonjsModule, a as commonjsGlobal, k as useMemo } from './extends-3a3f9fe2.js';
|
|
3
|
-
import { i as intl, a as insertCSS } from './global-
|
|
3
|
+
import { i as intl, a as insertCSS } from './global-e0e25c22.js';
|
|
4
4
|
import { u as useCallback } from './use-callback-b38a1523.js';
|
|
5
|
-
import { d as dist,
|
|
5
|
+
import { d as dist, n as ne$1, c as cn, D as De, j as j$1, a as sn, b as mn, H as He, $ as $e, S as S$1, V as Ve, M as M$1, p as pn, v as vn, x as x$1, e as D$1, Y, z as ze, A as A$1 } from './index.module-eb50a8d2.js';
|
|
6
6
|
import { j as jsonpointer } from './jsonpointer-388a7082.js';
|
|
7
7
|
import { j as jss, c as create } from './jss-preset-default.esm-71fae192.js';
|
|
8
8
|
import { g as getProps, a as getMissingProps } from './utils-454405f5.js';
|
|
@@ -11,21 +11,21 @@ import { E as ErrorStyles, H as HostBlock, A as AuthWrapper, a as AuthColumn, b
|
|
|
11
11
|
import { P as PortalContainerView } from './sqm-portal-container-view-73757ca5.js';
|
|
12
12
|
import { P as PortalSectionView } from './sqm-portal-section-view-f0876545.js';
|
|
13
13
|
import { T as TextSpanView } from './sqm-text-span-view-1781df94.js';
|
|
14
|
-
import { g as gql, L as LeaderboardRankView } from './sqm-leaderboard-rank-view-
|
|
15
|
-
import { u as useRerenderListener, a as useRequestRerender } from './re-render-
|
|
16
|
-
import { p as pathToRegexp, B as BigStatView, u as useBigStat, a as useDemoBigStat } from './useDemoBigStat-
|
|
14
|
+
import { g as gql, L as LeaderboardRankView } from './sqm-leaderboard-rank-view-cd1e8962.js';
|
|
15
|
+
import { u as useRerenderListener, a as useRequestRerender } from './re-render-6d5b856e.js';
|
|
16
|
+
import { p as pathToRegexp, B as BigStatView, u as useBigStat, a as useDemoBigStat } from './useDemoBigStat-d227b2f9.js';
|
|
17
17
|
import { S as ShareLinkView } from './sqm-share-link-view-9282b8e8.js';
|
|
18
|
-
import { L as LeaderboardView, u as useLeaderboard, S as ShadowViewAddon } from './ShadowViewAddon-
|
|
18
|
+
import { L as LeaderboardView, u as useLeaderboard, S as ShadowViewAddon } from './ShadowViewAddon-558fabb7.js';
|
|
19
19
|
import { N as NavigationSidebarView } from './sqm-navigation-sidebar-view-2242502c.js';
|
|
20
|
-
import { N as NavigationSidebarItemView } from './sqm-navigation-sidebar-item-view-
|
|
20
|
+
import { N as NavigationSidebarItemView } from './sqm-navigation-sidebar-item-view-2d8c368c.js';
|
|
21
21
|
import { S as StatContainerView } from './sqm-stat-container-view-4133feb6.js';
|
|
22
|
-
import { P as PortalProfileView } from './sqm-portal-profile-view-
|
|
22
|
+
import { P as PortalProfileView } from './sqm-portal-profile-view-f1deea0f.js';
|
|
23
23
|
import { P as PortalForgotPasswordView } from './sqm-portal-forgot-password-view-e3a6a716.js';
|
|
24
|
-
import { P as PortalEmailVerificationView } from './sqm-portal-email-verification-view-
|
|
24
|
+
import { P as PortalEmailVerificationView } from './sqm-portal-email-verification-view-2af31979.js';
|
|
25
25
|
import { P as PortalResetPasswordView$1 } from './sqm-portal-reset-password-view-a4e50da2.js';
|
|
26
26
|
import { P as PortalVerifyEmailView } from './sqm-portal-verify-email-view-6f18bac2.js';
|
|
27
27
|
import { A as AssetCardView } from './sqm-asset-card-view-6f360937.js';
|
|
28
|
-
import { P as PoweredByImg$1, a as PortalFooterView } from './sqm-portal-footer-view-
|
|
28
|
+
import { P as PoweredByImg$1, a as PortalFooterView } from './sqm-portal-footer-view-60cd9ae5.js';
|
|
29
29
|
import { H as HeroView } from './sqm-hero-view-bfd8abd1.js';
|
|
30
30
|
import { N as NameFieldsView } from './sqm-name-fields-view-4162fb7b.js';
|
|
31
31
|
|
|
@@ -194,13 +194,13 @@ const defaultFormState = {
|
|
|
194
194
|
error: "",
|
|
195
195
|
};
|
|
196
196
|
function useEditProfile(props) {
|
|
197
|
-
const userIdent =
|
|
197
|
+
const userIdent = ne$1();
|
|
198
198
|
const [showEdit, setShowEdit] = useState(false);
|
|
199
199
|
const [error, setError] = useState("");
|
|
200
200
|
const [userData, setUserData] = useState(undefined);
|
|
201
201
|
const [formState, setFormState] = useState(defaultFormState);
|
|
202
|
-
const userDataResponse =
|
|
203
|
-
const [upsertUser, upsertUserResponse] =
|
|
202
|
+
const userDataResponse = cn(GET_USER, {}, !(userIdent === null || userIdent === void 0 ? void 0 : userIdent.jwt));
|
|
203
|
+
const [upsertUser, upsertUserResponse] = De(UPSERT_USER);
|
|
204
204
|
useEffect(() => {
|
|
205
205
|
if ((upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.loading) || !showEdit)
|
|
206
206
|
return;
|
|
@@ -426,12 +426,12 @@ function NavigationMenuView(props) {
|
|
|
426
426
|
}
|
|
427
427
|
|
|
428
428
|
function handleMenu(e) {
|
|
429
|
-
|
|
429
|
+
mn.push(e.detail.item.value);
|
|
430
430
|
}
|
|
431
431
|
function useNavigationMenu(props) {
|
|
432
432
|
const ref = useRef();
|
|
433
|
-
const [, rerender] =
|
|
434
|
-
const user =
|
|
433
|
+
const [, rerender] = sn();
|
|
434
|
+
const user = ne$1();
|
|
435
435
|
useEffect(() => {
|
|
436
436
|
var _a;
|
|
437
437
|
(_a = ref.current) === null || _a === void 0 ? void 0 : _a.addEventListener("sl-select", (e) => handleMenu(e));
|
|
@@ -1125,11 +1125,11 @@ function PortalChangePasswordView(props) {
|
|
|
1125
1125
|
|
|
1126
1126
|
function usePortalChangePassword(props) {
|
|
1127
1127
|
var _a, _b, _c, _d;
|
|
1128
|
-
const [request, { loading, errors, data }] =
|
|
1128
|
+
const [request, { loading, errors, data }] = He();
|
|
1129
1129
|
const [open, setOpen] = useState(false);
|
|
1130
1130
|
const [error, setError] = useState("");
|
|
1131
1131
|
const [success, setSuccess] = useState(false);
|
|
1132
|
-
const user =
|
|
1132
|
+
const user = ne$1();
|
|
1133
1133
|
const submit = async (event) => {
|
|
1134
1134
|
var _a;
|
|
1135
1135
|
setSuccess(false);
|
|
@@ -1304,7 +1304,7 @@ function PortalFrameView(props, children) {
|
|
|
1304
1304
|
}
|
|
1305
1305
|
|
|
1306
1306
|
function usePortalFrame(footerContent, headerContent) {
|
|
1307
|
-
const [, rerender] =
|
|
1307
|
+
const [, rerender] = sn();
|
|
1308
1308
|
return {
|
|
1309
1309
|
data: {
|
|
1310
1310
|
footer: footerContent,
|
|
@@ -1392,7 +1392,7 @@ function PortalLoginView(props) {
|
|
|
1392
1392
|
|
|
1393
1393
|
function usePortalLogin({ nextPage }) {
|
|
1394
1394
|
var _a, _b, _c, _d;
|
|
1395
|
-
const [request, { loading, errors, data }] =
|
|
1395
|
+
const [request, { loading, errors, data }] = $e();
|
|
1396
1396
|
const [error, setError] = useState("");
|
|
1397
1397
|
const urlParams = new URLSearchParams(window.location.search);
|
|
1398
1398
|
const nextPageOverride = urlParams.get("nextPage");
|
|
@@ -1409,7 +1409,7 @@ function usePortalLogin({ nextPage }) {
|
|
|
1409
1409
|
var _a;
|
|
1410
1410
|
if ((_a = data === null || data === void 0 ? void 0 : data.authenticateManagedIdentityWithEmailAndPassword) === null || _a === void 0 ? void 0 : _a.token) {
|
|
1411
1411
|
urlParams.delete("nextPage");
|
|
1412
|
-
|
|
1412
|
+
mn.push({
|
|
1413
1413
|
pathname: nextPageOverride || nextPage,
|
|
1414
1414
|
search: urlParams.toString() && "?" + urlParams.toString(),
|
|
1415
1415
|
});
|
|
@@ -1473,8 +1473,8 @@ const PortalLogin = class {
|
|
|
1473
1473
|
? useLoginDemo(this)
|
|
1474
1474
|
: usePortalLogin(this);
|
|
1475
1475
|
const content = {
|
|
1476
|
-
forgotPasswordButton: (h("slot", { name: "forgotPassword" }, h("a", { onClick: () =>
|
|
1477
|
-
secondaryButton: (h("slot", { name: "secondaryButton" }, h("sl-button", { type: "text", disabled: states.loading, onClick: () =>
|
|
1476
|
+
forgotPasswordButton: (h("slot", { name: "forgotPassword" }, h("a", { onClick: () => mn.push("/forgotPassword") }, this.forgotPasswordLabel))),
|
|
1477
|
+
secondaryButton: (h("slot", { name: "secondaryButton" }, h("sl-button", { type: "text", disabled: states.loading, onClick: () => mn.push("/register") }, this.registerLabel))),
|
|
1478
1478
|
emailLabel: this.emailLabel,
|
|
1479
1479
|
passwordLabel: this.passwordLabel,
|
|
1480
1480
|
submitLabel: this.submitLabel,
|
|
@@ -1567,7 +1567,7 @@ function PortalRegisterView(props) {
|
|
|
1567
1567
|
|
|
1568
1568
|
const CONTEXT_NAME$1 = "sq:validation-state";
|
|
1569
1569
|
function useValidationState(formState) {
|
|
1570
|
-
const host =
|
|
1570
|
+
const host = S$1();
|
|
1571
1571
|
const [validationState, setValidationState] = y$1(host, CONTEXT_NAME$1, formState);
|
|
1572
1572
|
return { validationState, setValidationState };
|
|
1573
1573
|
}
|
|
@@ -5447,7 +5447,7 @@ function usePortalRegister(props) {
|
|
|
5447
5447
|
var _a, _b, _c, _d, _e, _f;
|
|
5448
5448
|
const formRef = useRef(null);
|
|
5449
5449
|
const { validationState, setValidationState } = useValidationState({});
|
|
5450
|
-
const [request, { loading, errors, data }] =
|
|
5450
|
+
const [request, { loading, errors, data }] = Ve();
|
|
5451
5451
|
const submit = async (event) => {
|
|
5452
5452
|
let formControls = event.target.getFormControls();
|
|
5453
5453
|
let formData = {};
|
|
@@ -5510,7 +5510,7 @@ function usePortalRegister(props) {
|
|
|
5510
5510
|
useEffect(() => {
|
|
5511
5511
|
var _a;
|
|
5512
5512
|
if ((_a = data === null || data === void 0 ? void 0 : data.registerManagedIdentityWithEmailAndPassword) === null || _a === void 0 ? void 0 : _a.token) {
|
|
5513
|
-
|
|
5513
|
+
mn.push(props.nextPage);
|
|
5514
5514
|
}
|
|
5515
5515
|
}, [(_a = data === null || data === void 0 ? void 0 : data.registerManagedIdentityWithEmailAndPassword) === null || _a === void 0 ? void 0 : _a.token]);
|
|
5516
5516
|
useEffect(() => {
|
|
@@ -5604,7 +5604,7 @@ const PortalRegister = class {
|
|
|
5604
5604
|
: usePortalRegister(this);
|
|
5605
5605
|
const content = {
|
|
5606
5606
|
formData: h("slot", { name: "formData" }),
|
|
5607
|
-
secondaryButton: (h("slot", { name: "secondaryButton" }, h("sl-button", { type: "text", disabled: states.loading, onClick: () =>
|
|
5607
|
+
secondaryButton: (h("slot", { name: "secondaryButton" }, h("sl-button", { type: "text", disabled: states.loading, onClick: () => mn.push("/login") }, this.loginLabel))),
|
|
5608
5608
|
emailLabel: this.emailLabel,
|
|
5609
5609
|
passwordLabel: this.passwordLabel,
|
|
5610
5610
|
submitLabel: this.submitLabel,
|
|
@@ -5639,10 +5639,10 @@ const debug = browser('sq:useProgramMenu');
|
|
|
5639
5639
|
const UPDATE_PROGRAM_EVENT = 'sq:update-program-id';
|
|
5640
5640
|
function useProgramMenu(props) {
|
|
5641
5641
|
const programId = M$1();
|
|
5642
|
-
const host =
|
|
5642
|
+
const host = S$1();
|
|
5643
5643
|
debug({ programId, props });
|
|
5644
5644
|
const ref = useRef();
|
|
5645
|
-
const [, rerender] =
|
|
5645
|
+
const [, rerender] = sn();
|
|
5646
5646
|
useEffect(() => {
|
|
5647
5647
|
var _a;
|
|
5648
5648
|
(_a = ref.current) === null || _a === void 0 ? void 0 : _a.addEventListener('sl-select', (e) => {
|
|
@@ -5691,8 +5691,8 @@ const GET_USER_DETAILS = dist.gql `
|
|
|
5691
5691
|
function useReferralIframe(props) {
|
|
5692
5692
|
var _a;
|
|
5693
5693
|
const programId = M$1();
|
|
5694
|
-
const user =
|
|
5695
|
-
const { data } =
|
|
5694
|
+
const user = ne$1();
|
|
5695
|
+
const { data } = cn(GET_USER_DETAILS, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt) || !programId);
|
|
5696
5696
|
return {
|
|
5697
5697
|
states: {
|
|
5698
5698
|
content: props,
|
|
@@ -5756,7 +5756,7 @@ const styleString$5 = sheet$5.toString();
|
|
|
5756
5756
|
function RequiredPropsError({ missingProps }) {
|
|
5757
5757
|
if (!missingProps)
|
|
5758
5758
|
return false;
|
|
5759
|
-
const host =
|
|
5759
|
+
const host = S$1();
|
|
5760
5760
|
const [detailsOpen, setDetailsOpen] = useState(false);
|
|
5761
5761
|
return (h("sl-alert", { type: "danger", open: true, class: sheet$5.classes.Alert },
|
|
5762
5762
|
h("style", { type: "text/css" }, styleString$5),
|
|
@@ -5873,7 +5873,7 @@ function ReferralTableView(props) {
|
|
|
5873
5873
|
}
|
|
5874
5874
|
|
|
5875
5875
|
function useChildElements() {
|
|
5876
|
-
const host =
|
|
5876
|
+
const host = S$1();
|
|
5877
5877
|
const initialState = host.children.length ? Array.from(host.children) : [];
|
|
5878
5878
|
const [childElements, setChildElements] = useState(initialState);
|
|
5879
5879
|
useEffect(() => {
|
|
@@ -6046,7 +6046,7 @@ const GET_REFERRAL_DATA = gql `
|
|
|
6046
6046
|
`;
|
|
6047
6047
|
function useReferralTable(props, emptyElement, loadingElement) {
|
|
6048
6048
|
var _a, _b;
|
|
6049
|
-
const user =
|
|
6049
|
+
const user = ne$1();
|
|
6050
6050
|
const programIdContext = M$1();
|
|
6051
6051
|
// Default to context, overriden by props
|
|
6052
6052
|
const programId = (_a = props.programId) !== null && _a !== void 0 ? _a : programIdContext;
|
|
@@ -6069,13 +6069,13 @@ function useReferralTable(props, emptyElement, loadingElement) {
|
|
|
6069
6069
|
loading: false,
|
|
6070
6070
|
page: 0,
|
|
6071
6071
|
});
|
|
6072
|
-
const { data: referrerResponse, loading: referrerLoading, refetch, } =
|
|
6072
|
+
const { data: referrerResponse, loading: referrerLoading, refetch, } = cn(GET_REFERRER_DATA, {
|
|
6073
6073
|
programId: programId === "classic" ? null : programId,
|
|
6074
6074
|
rewardFilter,
|
|
6075
6075
|
}, !props.showReferrer || !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
6076
6076
|
const referrerData = (_b = referrerResponse === null || referrerResponse === void 0 ? void 0 : referrerResponse.viewer) === null || _b === void 0 ? void 0 : _b.referredByReferral;
|
|
6077
6077
|
const showReferrerRow = props.showReferrer && !!(referrerData === null || referrerData === void 0 ? void 0 : referrerData.dateReferralStarted);
|
|
6078
|
-
const { envelope: referralData, states, callbacks, } =
|
|
6078
|
+
const { envelope: referralData, states, callbacks, } = 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; }, {
|
|
6079
6079
|
limit: props.perPage,
|
|
6080
6080
|
offset: 0,
|
|
6081
6081
|
}, {
|
|
@@ -14778,6 +14778,7 @@ const GET_EXCHANGE_LIST = dist.gql `
|
|
|
14778
14778
|
destinationValue
|
|
14779
14779
|
prettyDestinationValue
|
|
14780
14780
|
available
|
|
14781
|
+
globalRewardKey
|
|
14781
14782
|
unavailableReasonCode
|
|
14782
14783
|
}
|
|
14783
14784
|
}
|
|
@@ -14810,9 +14811,9 @@ function useRewardExchangeList(props) {
|
|
|
14810
14811
|
exchangeError: false,
|
|
14811
14812
|
});
|
|
14812
14813
|
const { selectedItem, selectedStep, redeemStage, amount, exchangeError } = exchangeState;
|
|
14813
|
-
const user =
|
|
14814
|
-
const [exchange, { data: exchangeResponse, errors }] =
|
|
14815
|
-
const { data, loading, refetch } =
|
|
14814
|
+
const user = ne$1();
|
|
14815
|
+
const [exchange, { data: exchangeResponse, errors }] = De(EXCHANGE);
|
|
14816
|
+
const { data, loading, refetch } = cn(GET_EXCHANGE_LIST, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
14816
14817
|
useEffect(() => {
|
|
14817
14818
|
var _a, _b;
|
|
14818
14819
|
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) {
|
|
@@ -14829,6 +14830,7 @@ function useRewardExchangeList(props) {
|
|
|
14829
14830
|
accountId: user === null || user === void 0 ? void 0 : user.accountId,
|
|
14830
14831
|
userId: user.id,
|
|
14831
14832
|
};
|
|
14833
|
+
console.log({ selectedItem, selectedStep });
|
|
14832
14834
|
switch (selectedItem.ruleType) {
|
|
14833
14835
|
case "FIXED_GLOBAL_REWARD":
|
|
14834
14836
|
exchangeVariables = {
|
|
@@ -14840,6 +14842,16 @@ function useRewardExchangeList(props) {
|
|
|
14840
14842
|
globalRewardKey: selectedItem.globalRewardKey,
|
|
14841
14843
|
};
|
|
14842
14844
|
break;
|
|
14845
|
+
case "STEPPED_FIXED_GLOBAL_REWARD":
|
|
14846
|
+
exchangeVariables = {
|
|
14847
|
+
...exchangeVariables,
|
|
14848
|
+
redeemCreditInput: {
|
|
14849
|
+
amount: selectedStep.sourceValue,
|
|
14850
|
+
unit: selectedItem.sourceUnit,
|
|
14851
|
+
},
|
|
14852
|
+
globalRewardKey: selectedStep.globalRewardKey,
|
|
14853
|
+
};
|
|
14854
|
+
break;
|
|
14843
14855
|
case "VARIABLE_GLOBAL_REWARD":
|
|
14844
14856
|
exchangeVariables = {
|
|
14845
14857
|
...exchangeVariables,
|
|
@@ -15310,7 +15322,7 @@ function RewardExchangeView(props) {
|
|
|
15310
15322
|
gap: "20px",
|
|
15311
15323
|
gridTemplateColumns: "repeat(auto-fill, minmax(300px, 1fr))",
|
|
15312
15324
|
} }, (_a = data.exchangeList) === null || _a === void 0 ? void 0 : _a.map((item) => {
|
|
15313
|
-
var _a, _b;
|
|
15325
|
+
var _a, _b, _c;
|
|
15314
15326
|
const style = {
|
|
15315
15327
|
boxShadow: item.key === (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.key)
|
|
15316
15328
|
? "0 0 0 2px var(--sl-color-primary-500)"
|
|
@@ -15323,7 +15335,9 @@ function RewardExchangeView(props) {
|
|
|
15323
15335
|
};
|
|
15324
15336
|
const amount = item.ruleType === "FIXED_GLOBAL_REWARD"
|
|
15325
15337
|
? item.prettySourceValue
|
|
15326
|
-
:
|
|
15338
|
+
: item.ruleType === "STEPPED_FIXED_GLOBAL_REWARD"
|
|
15339
|
+
? `${(_a = item.steps[0]) === null || _a === void 0 ? void 0 : _a.sourceValue} to ${item.steps.slice(-1).pop().prettySourceValue}`
|
|
15340
|
+
: `${item.sourceMinValue} to ${item.prettySourceMaxValue}`;
|
|
15327
15341
|
return (h("div", { key: item.key, class: item.available ? sheet.classes.CardContainer : "", style: style },
|
|
15328
15342
|
h("sl-card", { class: sheet.classes.KutayCard, style: {
|
|
15329
15343
|
cursor: item.unavailableReasonCode
|
|
@@ -15352,7 +15366,7 @@ function RewardExchangeView(props) {
|
|
|
15352
15366
|
h("div", { class: "amount" }, amount),
|
|
15353
15367
|
item.unavailableReasonCode && (h("div", { class: "error" }, intl.formatMessage({
|
|
15354
15368
|
id: "unavailableCode",
|
|
15355
|
-
defaultMessage: (
|
|
15369
|
+
defaultMessage: (_c = (_b = states.content) === null || _b === void 0 ? void 0 : _b.text) === null || _c === void 0 ? void 0 : _c.notAvailableError,
|
|
15356
15370
|
}, {
|
|
15357
15371
|
unavailableReason: item.unavailableReason ||
|
|
15358
15372
|
item.unavailableReasonCode,
|
|
@@ -15372,7 +15386,7 @@ function RewardExchangeView(props) {
|
|
|
15372
15386
|
h("div", null, h("img", { class: sheet.classes.FullImage, src: (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.imageUrl) ||
|
|
15373
15387
|
getAssetPath("./assets/placeholder.png") })),
|
|
15374
15388
|
h("div", { class: sheet.classes.ChooseAmount },
|
|
15375
|
-
h("div", { class: "title" }, selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.name),
|
|
15389
|
+
h("div", { class: "title" }, (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.name) || ""),
|
|
15376
15390
|
((_b = states.selectedItem) === null || _b === void 0 ? void 0 : _b.ruleType) === "FIXED_GLOBAL_REWARD" ? (h("div", { class: "points" }, input)) : (h("div", { class: "description" }, selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.description)),
|
|
15377
15391
|
((_c = states.selectedItem) === null || _c === void 0 ? void 0 : _c.ruleType) === "FIXED_GLOBAL_REWARD" ? (h("div", { class: "description" }, selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.description)) : (h("div", { class: "points" }, input)),
|
|
15378
15392
|
h("div", { class: "space" })),
|
|
@@ -15405,8 +15419,8 @@ function RewardExchangeView(props) {
|
|
|
15405
15419
|
lineHeight: "18px",
|
|
15406
15420
|
alignSelf: "center",
|
|
15407
15421
|
} }, (selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettyDestinationValue) ? (selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettyDestinationValue) +
|
|
15408
|
-
" " + (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.name)
|
|
15409
|
-
: selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.name)))),
|
|
15422
|
+
" " + (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.name) || ""
|
|
15423
|
+
: (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.name) || "")))),
|
|
15410
15424
|
h("div", { class: sheet.classes.KutayButton },
|
|
15411
15425
|
h("sl-button", { class: "cancel", type: "text", size: "large", onClick: () => callbacks.setStage("chooseAmount") }, "Back"),
|
|
15412
15426
|
h("sl-button", { class: "continue", size: "large", onClick: callbacks.exchangeReward }, "Redeem"))));
|
|
@@ -15639,7 +15653,7 @@ const GET_REWARDS = gql `
|
|
|
15639
15653
|
`;
|
|
15640
15654
|
function useRewardsTable(props, emptyElement, loadingElement) {
|
|
15641
15655
|
var _a, _b;
|
|
15642
|
-
const user =
|
|
15656
|
+
const user = ne$1();
|
|
15643
15657
|
const programIdContext = M$1();
|
|
15644
15658
|
// Default to context, overriden by props
|
|
15645
15659
|
const programId = (_a = props.programId) !== null && _a !== void 0 ? _a : programIdContext;
|
|
@@ -15662,7 +15676,7 @@ function useRewardsTable(props, emptyElement, loadingElement) {
|
|
|
15662
15676
|
loading: false,
|
|
15663
15677
|
page: 0,
|
|
15664
15678
|
});
|
|
15665
|
-
const { envelope: rewardsData, states, callbacks, } =
|
|
15679
|
+
const { envelope: rewardsData, states, callbacks, } = 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; }, {
|
|
15666
15680
|
limit: props.perPage,
|
|
15667
15681
|
offset: 0,
|
|
15668
15682
|
}, {
|
|
@@ -15865,8 +15879,8 @@ function matchPath(pattern, page) {
|
|
|
15865
15879
|
return regexp.exec(page);
|
|
15866
15880
|
}
|
|
15867
15881
|
function useRouter() {
|
|
15868
|
-
const location =
|
|
15869
|
-
const host =
|
|
15882
|
+
const location = vn();
|
|
15883
|
+
const host = S$1();
|
|
15870
15884
|
const [slot, setSlot] = useState(undefined);
|
|
15871
15885
|
const [container, setContainer] = useState(undefined);
|
|
15872
15886
|
const page = location.pathname;
|
|
@@ -16025,14 +16039,14 @@ function useShareButton(props) {
|
|
|
16025
16039
|
var _a, _b;
|
|
16026
16040
|
const { sharetitle, sharetext, medium } = props;
|
|
16027
16041
|
const programId = props.programId ? props.programId : M$1();
|
|
16028
|
-
const user =
|
|
16042
|
+
const user = ne$1();
|
|
16029
16043
|
const variables = {
|
|
16030
16044
|
engagementMedium: x$1(),
|
|
16031
16045
|
programId: programId,
|
|
16032
16046
|
shareMedium: medium.toUpperCase(),
|
|
16033
16047
|
};
|
|
16034
16048
|
// only queries if a programId is available
|
|
16035
|
-
const res =
|
|
16049
|
+
const res = cn(MessageLinkQuery, variables, !(user === null || user === void 0 ? void 0 : user.jwt) || !programId);
|
|
16036
16050
|
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;
|
|
16037
16051
|
const environment = D$1();
|
|
16038
16052
|
const hide = (medium.toLocaleUpperCase() === "SMS" &&
|
|
@@ -16122,8 +16136,8 @@ const MessageLinkQuery$1 = dist.gql `
|
|
|
16122
16136
|
function useShareLink(props) {
|
|
16123
16137
|
var _a, _b;
|
|
16124
16138
|
const { programId = M$1() } = props;
|
|
16125
|
-
const user =
|
|
16126
|
-
const { data } =
|
|
16139
|
+
const user = ne$1();
|
|
16140
|
+
const { data } = cn(MessageLinkQuery$1, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
16127
16141
|
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 :
|
|
16128
16142
|
// Shown during loading
|
|
16129
16143
|
"...";
|
|
@@ -17967,36 +17981,36 @@ const routes = `
|
|
|
17967
17981
|
`;
|
|
17968
17982
|
const TemplateNavigation = createHookStory(() => {
|
|
17969
17983
|
return (h("div", null,
|
|
17970
|
-
h("button", { onClick: () =>
|
|
17971
|
-
h("button", { onClick: () =>
|
|
17972
|
-
h("button", { onClick: () =>
|
|
17973
|
-
h("button", { onClick: () =>
|
|
17974
|
-
h("button", { onClick: () =>
|
|
17975
|
-
h("button", { onClick: () =>
|
|
17976
|
-
h("button", { onClick: () =>
|
|
17977
|
-
h("button", { onClick: () =>
|
|
17978
|
-
h("button", { onClick: () =>
|
|
17984
|
+
h("button", { onClick: () => mn.push("/") }, "/"),
|
|
17985
|
+
h("button", { onClick: () => mn.push("/foo") }, "/foo"),
|
|
17986
|
+
h("button", { onClick: () => mn.push("/bar") }, "/bar"),
|
|
17987
|
+
h("button", { onClick: () => mn.push("/baz/bang") }, "/baz/bang"),
|
|
17988
|
+
h("button", { onClick: () => mn.push("/refer") }, "/refer"),
|
|
17989
|
+
h("button", { onClick: () => mn.push("/refer/1") }, "/refer/1"),
|
|
17990
|
+
h("button", { onClick: () => mn.push("/refer/2") }, "/refer/2"),
|
|
17991
|
+
h("button", { onClick: () => mn.back() }, "Back"),
|
|
17992
|
+
h("button", { onClick: () => mn.forward() }, "Forward"),
|
|
17979
17993
|
h("hr", null),
|
|
17980
17994
|
h("sqm-router", { innerHTML: templates })));
|
|
17981
17995
|
});
|
|
17982
17996
|
const RouteNavigation = createHookStory(() => {
|
|
17983
17997
|
return (h("div", null,
|
|
17984
|
-
h("button", { onClick: () =>
|
|
17985
|
-
h("button", { onClick: () =>
|
|
17986
|
-
h("button", { onClick: () =>
|
|
17987
|
-
h("button", { onClick: () =>
|
|
17988
|
-
h("button", { onClick: () =>
|
|
17989
|
-
h("button", { onClick: () =>
|
|
17990
|
-
h("button", { onClick: () =>
|
|
17991
|
-
h("button", { onClick: () =>
|
|
17992
|
-
h("button", { onClick: () =>
|
|
17998
|
+
h("button", { onClick: () => mn.push("/") }, "/"),
|
|
17999
|
+
h("button", { onClick: () => mn.push("/foo") }, "/foo"),
|
|
18000
|
+
h("button", { onClick: () => mn.push("/bar") }, "/bar"),
|
|
18001
|
+
h("button", { onClick: () => mn.push("/baz/bang") }, "/baz/bang"),
|
|
18002
|
+
h("button", { onClick: () => mn.push("/refer") }, "/refer"),
|
|
18003
|
+
h("button", { onClick: () => mn.push("/refer/1") }, "/refer/1"),
|
|
18004
|
+
h("button", { onClick: () => mn.push("/refer/2") }, "/refer/2"),
|
|
18005
|
+
h("button", { onClick: () => mn.back() }, "Back"),
|
|
18006
|
+
h("button", { onClick: () => mn.forward() }, "Forward"),
|
|
17993
18007
|
h("hr", null),
|
|
17994
18008
|
h("sqm-router", { innerHTML: routes })));
|
|
17995
18009
|
});
|
|
17996
18010
|
const Styling = createHookStory(() => {
|
|
17997
18011
|
return (h("div", null,
|
|
17998
|
-
h("button", { onClick: () =>
|
|
17999
|
-
h("button", { onClick: () =>
|
|
18012
|
+
h("button", { onClick: () => mn.push("/") }, "/"),
|
|
18013
|
+
h("button", { onClick: () => mn.push("/foo") }, "/foo"),
|
|
18000
18014
|
h("hr", null),
|
|
18001
18015
|
h("div", { style: { display: "flex", justifyContent: "space-around" } },
|
|
18002
18016
|
h("sqm-router", { innerHTML: `<template path="/">
|
|
@@ -18010,7 +18024,7 @@ function useTemplate(templateString) {
|
|
|
18010
18024
|
const [previewTemplate, setPreviewTemplate] = useState(templateString);
|
|
18011
18025
|
function setPath(e) {
|
|
18012
18026
|
//@ts-ignore
|
|
18013
|
-
|
|
18027
|
+
mn.push(e.target.value);
|
|
18014
18028
|
}
|
|
18015
18029
|
return {
|
|
18016
18030
|
states: { previewTemplate, editedTemplate },
|
|
@@ -18153,8 +18167,8 @@ const FullStackFrame = () => {
|
|
|
18153
18167
|
"Current path:",
|
|
18154
18168
|
" ",
|
|
18155
18169
|
h("code", null,
|
|
18156
|
-
h("strong", null, (_a =
|
|
18157
|
-
h("button", { onClick:
|
|
18170
|
+
h("strong", null, (_a = vn()) === null || _a === void 0 ? void 0 : _a.pathname))),
|
|
18171
|
+
h("button", { onClick: mn.back }, "Go Back")));
|
|
18158
18172
|
};
|
|
18159
18173
|
const FullStackFrameLoggedOut = () => {
|
|
18160
18174
|
var _a;
|
|
@@ -18178,8 +18192,8 @@ const FullStackFrameLoggedOut = () => {
|
|
|
18178
18192
|
"Current path:",
|
|
18179
18193
|
" ",
|
|
18180
18194
|
h("code", null,
|
|
18181
|
-
h("strong", null, (_a =
|
|
18182
|
-
h("button", { onClick:
|
|
18195
|
+
h("strong", null, (_a = vn()) === null || _a === void 0 ? void 0 : _a.pathname))),
|
|
18196
|
+
h("button", { onClick: mn.back }, "Go Back")));
|
|
18183
18197
|
};
|
|
18184
18198
|
|
|
18185
18199
|
const PortalFrame$1 = /*#__PURE__*/Object.freeze({
|
|
@@ -18273,14 +18287,14 @@ function setupGraphQL$1() {
|
|
|
18273
18287
|
programId,
|
|
18274
18288
|
};
|
|
18275
18289
|
useEffect(() => {
|
|
18276
|
-
|
|
18290
|
+
Y({
|
|
18277
18291
|
accountId,
|
|
18278
18292
|
id,
|
|
18279
18293
|
jwt: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImFjY291bnRJZCI6InRlc3Rlc3Rlc3QiLCJpZCI6InRlc3Rlc3Rlc3QifX0.qYnU5hNeIj9C_G3NogfG7btgCPGZC7JRXY0MG6a63zs",
|
|
18280
18294
|
});
|
|
18281
18295
|
return () => {
|
|
18282
18296
|
window.widgetIdent = undefined;
|
|
18283
|
-
|
|
18297
|
+
Y(undefined);
|
|
18284
18298
|
};
|
|
18285
18299
|
}, []);
|
|
18286
18300
|
}
|
|
@@ -18335,14 +18349,14 @@ function setupGraphQL$2() {
|
|
|
18335
18349
|
programId,
|
|
18336
18350
|
};
|
|
18337
18351
|
useEffect(() => {
|
|
18338
|
-
|
|
18352
|
+
Y({
|
|
18339
18353
|
accountId,
|
|
18340
18354
|
id,
|
|
18341
18355
|
jwt: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImFjY291bnRJZCI6InRlc3Rlc3Rlc3QiLCJpZCI6InRlc3Rlc3Rlc3QifX0.qYnU5hNeIj9C_G3NogfG7btgCPGZC7JRXY0MG6a63zs",
|
|
18342
18356
|
});
|
|
18343
18357
|
return () => {
|
|
18344
18358
|
window.widgetIdent = undefined;
|
|
18345
|
-
|
|
18359
|
+
Y(undefined);
|
|
18346
18360
|
};
|
|
18347
18361
|
}, []);
|
|
18348
18362
|
}
|
|
@@ -18397,14 +18411,14 @@ function setupGraphQL$3() {
|
|
|
18397
18411
|
programId,
|
|
18398
18412
|
};
|
|
18399
18413
|
useEffect(() => {
|
|
18400
|
-
|
|
18414
|
+
Y({
|
|
18401
18415
|
accountId,
|
|
18402
18416
|
id,
|
|
18403
18417
|
jwt: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImFjY291bnRJZCI6Im55bmVsbGllIiwiaWQiOiJueW5lbGxpZSJ9fQ.3KV974VPLgk4tD8LQfJTi4IPkKCmnaB8w48HzVJYDuI",
|
|
18404
18418
|
});
|
|
18405
18419
|
return () => {
|
|
18406
18420
|
window.widgetIdent = undefined;
|
|
18407
|
-
|
|
18421
|
+
Y(undefined);
|
|
18408
18422
|
};
|
|
18409
18423
|
}, []);
|
|
18410
18424
|
}
|
|
@@ -18528,14 +18542,14 @@ function setupGraphQL$4() {
|
|
|
18528
18542
|
programId,
|
|
18529
18543
|
};
|
|
18530
18544
|
useEffect(() => {
|
|
18531
|
-
|
|
18545
|
+
Y({
|
|
18532
18546
|
accountId,
|
|
18533
18547
|
id,
|
|
18534
18548
|
jwt: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImFjY291bnRJZCI6IndvcnJpZWQtY2FtZXJhQHVleHdsdGdoLm1haWxvc2F1ci5uZXQiLCJpZCI6IndvcnJpZWQtY2FtZXJhQHVleHdsdGdoLm1haWxvc2F1ci5uZXQiLCJmaXJzdE5hbWUiOiJ0ZXN0IiwibGFzdE5hbWUiOiJ0ZXN0In19.ziDWbdCwsTo1ijxl8d2__Ga-6iFOVShaJUPp2ZBMeO0",
|
|
18535
18549
|
});
|
|
18536
18550
|
return () => {
|
|
18537
18551
|
window.widgetIdent = undefined;
|
|
18538
|
-
|
|
18552
|
+
Y(undefined);
|
|
18539
18553
|
};
|
|
18540
18554
|
}, []);
|
|
18541
18555
|
}
|
|
@@ -18575,14 +18589,14 @@ function setupGraphQL$5() {
|
|
|
18575
18589
|
programId,
|
|
18576
18590
|
};
|
|
18577
18591
|
useEffect(() => {
|
|
18578
|
-
|
|
18592
|
+
Y({
|
|
18579
18593
|
accountId,
|
|
18580
18594
|
id,
|
|
18581
18595
|
jwt: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImFjY291bnRJZCI6InRlc3Rlc3Rlc3QiLCJpZCI6InRlc3Rlc3Rlc3QifX0.qYnU5hNeIj9C_G3NogfG7btgCPGZC7JRXY0MG6a63zs",
|
|
18582
18596
|
});
|
|
18583
18597
|
return () => {
|
|
18584
18598
|
window.widgetIdent = undefined;
|
|
18585
|
-
|
|
18599
|
+
Y(undefined);
|
|
18586
18600
|
};
|
|
18587
18601
|
}, []);
|
|
18588
18602
|
}
|
|
@@ -18702,14 +18716,14 @@ function setupGraphQL$6() {
|
|
|
18702
18716
|
programId,
|
|
18703
18717
|
};
|
|
18704
18718
|
useEffect(() => {
|
|
18705
|
-
|
|
18719
|
+
Y({
|
|
18706
18720
|
accountId,
|
|
18707
18721
|
id,
|
|
18708
18722
|
jwt: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImFjY291bnRJZCI6InRlc3Rlc3Rlc3QiLCJpZCI6InRlc3Rlc3Rlc3QifX0.qYnU5hNeIj9C_G3NogfG7btgCPGZC7JRXY0MG6a63zs",
|
|
18709
18723
|
});
|
|
18710
18724
|
return () => {
|
|
18711
18725
|
window.widgetIdent = undefined;
|
|
18712
|
-
|
|
18726
|
+
Y(undefined);
|
|
18713
18727
|
};
|
|
18714
18728
|
}, []);
|
|
18715
18729
|
return { id, accountId };
|
|
@@ -18718,7 +18732,7 @@ function useExchangeButton() {
|
|
|
18718
18732
|
const { id, accountId } = setupGraphQL$6();
|
|
18719
18733
|
const [points, setPoints] = useState(10);
|
|
18720
18734
|
const [rate, setRate] = useState(100);
|
|
18721
|
-
const [exchange, { data, errors }] =
|
|
18735
|
+
const [exchange, { data, errors }] = ze(EXCHANGE$1);
|
|
18722
18736
|
return {
|
|
18723
18737
|
states: {
|
|
18724
18738
|
points,
|
|
@@ -18833,14 +18847,14 @@ function setupGraphQL$7() {
|
|
|
18833
18847
|
appDomain: "https://staging.referralsaasquatch.com",
|
|
18834
18848
|
};
|
|
18835
18849
|
useEffect(() => {
|
|
18836
|
-
|
|
18850
|
+
Y({
|
|
18837
18851
|
accountId,
|
|
18838
18852
|
id,
|
|
18839
18853
|
jwt: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImFjY291bnRJZCI6InRlc3Rlc3Rlc3QiLCJpZCI6InRlc3Rlc3Rlc3QifX0.qYnU5hNeIj9C_G3NogfG7btgCPGZC7JRXY0MG6a63zs",
|
|
18840
18854
|
});
|
|
18841
18855
|
return () => {
|
|
18842
18856
|
window.widgetIdent = undefined;
|
|
18843
|
-
|
|
18857
|
+
Y(undefined);
|
|
18844
18858
|
};
|
|
18845
18859
|
}, []);
|
|
18846
18860
|
return { id, accountId };
|
|
@@ -18880,14 +18894,14 @@ function setupGraphQL$8() {
|
|
|
18880
18894
|
programId,
|
|
18881
18895
|
};
|
|
18882
18896
|
useEffect(() => {
|
|
18883
|
-
|
|
18897
|
+
Y({
|
|
18884
18898
|
accountId,
|
|
18885
18899
|
id,
|
|
18886
18900
|
jwt: JWT,
|
|
18887
18901
|
});
|
|
18888
18902
|
return () => {
|
|
18889
18903
|
window.widgetIdent = undefined;
|
|
18890
|
-
|
|
18904
|
+
Y(undefined);
|
|
18891
18905
|
};
|
|
18892
18906
|
}, []);
|
|
18893
18907
|
return { id, accountId };
|
|
@@ -21312,6 +21326,7 @@ function ProgressBarView(props) {
|
|
|
21312
21326
|
}
|
|
21313
21327
|
const style = {
|
|
21314
21328
|
ProgressBar: {
|
|
21329
|
+
marginTop: steps ? "calc(-1*var(--sl-spacing-x-small))" : "",
|
|
21315
21330
|
"& .progress-bar": {
|
|
21316
21331
|
height: "0",
|
|
21317
21332
|
marginTop: steps
|
|
@@ -21573,6 +21588,42 @@ function ProgressBarView(props) {
|
|
|
21573
21588
|
}
|
|
21574
21589
|
}
|
|
21575
21590
|
}
|
|
21591
|
+
// finite repetition hit
|
|
21592
|
+
else if (finite && repetitions >= finite) {
|
|
21593
|
+
let ratio = 1 / goal;
|
|
21594
|
+
if (repetitions > 2) {
|
|
21595
|
+
columns += "0fr 0fr ";
|
|
21596
|
+
items.push(h("div", { class: "progress bg" }, goal * (finite - 2)));
|
|
21597
|
+
items.push(h("div", { class: "gift start" }, gift1));
|
|
21598
|
+
}
|
|
21599
|
+
for (let i = 1; i < goal * 2 + 1; i++) {
|
|
21600
|
+
columns += ratio + "fr 0fr ";
|
|
21601
|
+
if (i > progress) {
|
|
21602
|
+
if (i == goal) {
|
|
21603
|
+
columns += "0fr ";
|
|
21604
|
+
items.push(h("div", { class: "remain" }));
|
|
21605
|
+
items.push(h("div", { class: "progress bg" }, goal * (finite - 1)));
|
|
21606
|
+
items.push(h("div", { class: "gift bw" }, gift1));
|
|
21607
|
+
}
|
|
21608
|
+
}
|
|
21609
|
+
else if (i == goal) {
|
|
21610
|
+
columns += "0fr ";
|
|
21611
|
+
items.push(h("div", { class: "filled" }));
|
|
21612
|
+
items.push(h("div", { class: "progress bg" }, goal * (finite - 1)));
|
|
21613
|
+
items.push(h("div", { class: "gift" }, gift2));
|
|
21614
|
+
}
|
|
21615
|
+
else if (i == goal * 2) {
|
|
21616
|
+
columns += "0fr 0fr";
|
|
21617
|
+
items.push(h("div", { class: "filled" }));
|
|
21618
|
+
items.push(h("div", { class: "progress bg" }, goal * finite));
|
|
21619
|
+
items.push(h("div", { class: "gift" }, gift3));
|
|
21620
|
+
}
|
|
21621
|
+
else {
|
|
21622
|
+
items.push(h("div", { class: "filled" }));
|
|
21623
|
+
items.push(h("div", { class: "progress" }, i + goal * (finite - 2)));
|
|
21624
|
+
}
|
|
21625
|
+
}
|
|
21626
|
+
}
|
|
21576
21627
|
// case repetition many
|
|
21577
21628
|
else {
|
|
21578
21629
|
let position = (progress % goal) + goal;
|
|
@@ -21629,7 +21680,7 @@ function TaskCardView(props) {
|
|
|
21629
21680
|
minWidth: "347px",
|
|
21630
21681
|
background: "var(--sl-color-neutral-0)",
|
|
21631
21682
|
border: "1px solid var(--sl-color-neutral-200)",
|
|
21632
|
-
borderRadius: "var(--sl-border-radius-
|
|
21683
|
+
borderRadius: "var(--sl-border-radius-medium)",
|
|
21633
21684
|
fontSize: "var(--sl-font-size-small)",
|
|
21634
21685
|
lineHeight: "var(--sl-line-height-dense)",
|
|
21635
21686
|
color: "var(--sl-color-neutral-600)",
|
|
@@ -21643,7 +21694,7 @@ function TaskCardView(props) {
|
|
|
21643
21694
|
background: "var(--sl-color-neutral-50)",
|
|
21644
21695
|
},
|
|
21645
21696
|
"& .title": {
|
|
21646
|
-
fontSize: "var(--sl-font-size-
|
|
21697
|
+
fontSize: "var(--sl-font-size-medium)",
|
|
21647
21698
|
fontWeight: "var(--sl-font-weight-semibold)",
|
|
21648
21699
|
color: "var(--sl-color-neutral-950)",
|
|
21649
21700
|
},
|
|
@@ -21660,12 +21711,14 @@ function TaskCardView(props) {
|
|
|
21660
21711
|
Expired: {
|
|
21661
21712
|
margin: "var(--sl-spacing-medium)",
|
|
21662
21713
|
marginBottom: "calc(var(--sl-spacing-x-small)*-1)",
|
|
21663
|
-
color: "var(--sl-color-warning-
|
|
21714
|
+
color: "var(--sl-color-warning-600)",
|
|
21664
21715
|
fontWeight: "var(--sl-font-weight-semibold)",
|
|
21665
21716
|
},
|
|
21666
21717
|
Header: {
|
|
21667
21718
|
display: "flex",
|
|
21668
21719
|
"& .icon": {
|
|
21720
|
+
position: "relative",
|
|
21721
|
+
top: "5%",
|
|
21669
21722
|
alignSelf: "center",
|
|
21670
21723
|
lineHeight: "0",
|
|
21671
21724
|
color: "var(--sl-color-primary-400)",
|
|
@@ -21702,7 +21755,7 @@ function TaskCardView(props) {
|
|
|
21702
21755
|
"& .icon": {
|
|
21703
21756
|
fontSize: "var(--sl-font-size-xx-small)",
|
|
21704
21757
|
marginRight: "var(--sl-spacing-xx-small)",
|
|
21705
|
-
verticalAlign: "
|
|
21758
|
+
verticalAlign: "middle",
|
|
21706
21759
|
},
|
|
21707
21760
|
"& .text": {
|
|
21708
21761
|
marginTop: "auto",
|
|
@@ -21762,9 +21815,9 @@ function TaskCardView(props) {
|
|
|
21762
21815
|
h("div", { class: taskComplete || taskUnavailable ? "container subdued" : "container" },
|
|
21763
21816
|
h("div", { class: sheet.classes.Header }, props.loading ? (h("sl-skeleton", { style: { width: "22%", margin: "0" } })) : (h("div", null,
|
|
21764
21817
|
showComplete && (h("span", { class: taskUnavailable ? "icon neutral" : "icon" }, taskComplete ? checkmark_filled$1 : checkmark_circle$1)),
|
|
21765
|
-
h("span", { class:
|
|
21818
|
+
h("span", { class: "value" }, props.rewardAmount),
|
|
21766
21819
|
h("span", { class: "text" }, props.rewardUnit)))),
|
|
21767
|
-
props.loading ? (h("sl-skeleton", { style: { width: "42%", margin: "var(--sl-spacing-medium) 0" } })) : (h("div", { class:
|
|
21820
|
+
props.loading ? (h("sl-skeleton", { style: { width: "42%", margin: "var(--sl-spacing-medium) 0" } })) : (h("div", { class: "title" }, props.cardTitle)),
|
|
21768
21821
|
props.loading ? (h("sl-skeleton", { style: { margin: "var(--sl-spacing-medium) 0" } })) : (h(Details, Object.assign({}, props))),
|
|
21769
21822
|
props.showProgressBar && props.loading ? (h("sl-skeleton", { style: { margin: "var(--sl-spacing-medium) 0" } })) : (props.showProgressBar && (h(ProgressBarView, Object.assign({}, props, { complete: taskComplete, expired: taskUnavailable })))),
|
|
21770
21823
|
h("div", { class: sheet.classes.Footer }, props.loading ? (h("sl-skeleton", { style: { width: "25%", marginLeft: "auto" } })) : (h("div", { style: { display: "contents" } },
|
|
@@ -22053,38 +22106,34 @@ const TaskCardRepeatableFinite = () => {
|
|
|
22053
22106
|
h("div", { style: resizable },
|
|
22054
22107
|
h("h4", null, "One Action"),
|
|
22055
22108
|
h(TaskCardView, Object.assign({}, oneAction, { progress: 0, repeatable: true, finite: 2 })),
|
|
22056
|
-
" ",
|
|
22057
22109
|
h("h5", null),
|
|
22058
22110
|
h(TaskCardView, Object.assign({}, oneAction, { progress: 1, repeatable: true, finite: 2 })),
|
|
22059
|
-
" ",
|
|
22060
22111
|
h("h5", null),
|
|
22061
22112
|
h(TaskCardView, Object.assign({}, oneAction, { progress: 2, repeatable: true, finite: 2 })),
|
|
22062
|
-
" ",
|
|
22063
22113
|
h("h5", null)),
|
|
22064
22114
|
h("div", { style: resizable },
|
|
22065
22115
|
h("h4", null, "A Couple Actions"),
|
|
22116
|
+
h(TaskCardView, Object.assign({}, coupleActions, { progress: 2, repeatable: true, finite: 2 })),
|
|
22117
|
+
h("h5", null),
|
|
22118
|
+
h(TaskCardView, Object.assign({}, coupleActions, { progress: 5, repeatable: true, finite: 2 })),
|
|
22119
|
+
h("h5", null),
|
|
22120
|
+
h(TaskCardView, Object.assign({}, coupleActions, { progress: 10, repeatable: true, finite: 2 })),
|
|
22121
|
+
h("h5", null),
|
|
22122
|
+
h(TaskCardView, Object.assign({}, coupleActions, { progress: 12, repeatable: true, finite: 3 })),
|
|
22123
|
+
h("h5", null),
|
|
22124
|
+
h(TaskCardView, Object.assign({}, coupleActions, { progress: 15, repeatable: true, finite: 3 })),
|
|
22066
22125
|
h("h5", null)),
|
|
22067
22126
|
h("div", { style: resizable },
|
|
22068
22127
|
h("h4", null, "Many Actions"),
|
|
22069
|
-
h(TaskCardView, Object.assign({}, manyActions, { progress:
|
|
22128
|
+
h(TaskCardView, Object.assign({}, manyActions, { progress: 200, repeatable: true, finite: 2 })),
|
|
22070
22129
|
h("h5", null),
|
|
22071
22130
|
h(TaskCardView, Object.assign({}, manyActions, { progress: 500, repeatable: true, finite: 2 })),
|
|
22072
22131
|
h("h5", null),
|
|
22073
|
-
h(TaskCardView, Object.assign({}, manyActions, { progress: 650, repeatable: true, finite: 2 })),
|
|
22074
|
-
h("h5", null),
|
|
22075
|
-
h(TaskCardView, Object.assign({}, manyActions, { progress: 950, repeatable: true, finite: 2 })),
|
|
22076
|
-
h("h5", null),
|
|
22077
22132
|
h(TaskCardView, Object.assign({}, manyActions, { progress: 1000, repeatable: true, finite: 2 })),
|
|
22078
22133
|
h("h5", null),
|
|
22079
|
-
h(TaskCardView, Object.assign({}, manyActions, { progress:
|
|
22134
|
+
h(TaskCardView, Object.assign({}, manyActions, { progress: 1200, repeatable: true, finite: 3 })),
|
|
22080
22135
|
h("h5", null),
|
|
22081
22136
|
h(TaskCardView, Object.assign({}, manyActions, { progress: 1500, repeatable: true, finite: 3 })),
|
|
22082
|
-
h("h5", null),
|
|
22083
|
-
h(TaskCardView, Object.assign({}, manyActions, { progress: 2500, repeatable: true, finite: 3 })),
|
|
22084
|
-
h("h5", null),
|
|
22085
|
-
h(TaskCardView, Object.assign({}, manyActions, { progress: 2500, repeatable: true, finite: 4 })),
|
|
22086
|
-
h("h5", null),
|
|
22087
|
-
h(TaskCardView, Object.assign({}, manyActions, { progress: 2500, repeatable: true, finite: 5 })),
|
|
22088
22137
|
h("h5", null))));
|
|
22089
22138
|
};
|
|
22090
22139
|
const TaskCardEndDate = () => {
|
|
@@ -25370,16 +25419,16 @@ function DefaultTemplateView(props) {
|
|
|
25370
25419
|
gridTemplateColumns: "repeat(9, 80px)",
|
|
25371
25420
|
gridGap: "10px",
|
|
25372
25421
|
} },
|
|
25373
|
-
h("button", { onClick: () =>
|
|
25374
|
-
props.leadSubmit && (h("button", { onClick: () =>
|
|
25375
|
-
h("button", { onClick: () =>
|
|
25376
|
-
h("button", { onClick: () =>
|
|
25377
|
-
h("button", { onClick: () =>
|
|
25378
|
-
h("button", { onClick: () =>
|
|
25379
|
-
h("button", { onClick: () =>
|
|
25380
|
-
h("button", { onClick: () =>
|
|
25381
|
-
h("button", { onClick: () =>
|
|
25382
|
-
h("button", { onClick: () =>
|
|
25422
|
+
h("button", { onClick: () => mn.push("/") }, "Dashboard"),
|
|
25423
|
+
props.leadSubmit && (h("button", { onClick: () => mn.push("/refer") }, "Submit a Referral")),
|
|
25424
|
+
h("button", { onClick: () => mn.push("/activity") }, "Activity"),
|
|
25425
|
+
h("button", { onClick: () => mn.push("/editProfile") }, "Edit Profile"),
|
|
25426
|
+
h("button", { onClick: () => mn.push("/login") }, "Login"),
|
|
25427
|
+
h("button", { onClick: () => mn.push("/register") }, "Register"),
|
|
25428
|
+
h("button", { onClick: () => mn.push("/emailVerification") }, "Email Verification"),
|
|
25429
|
+
h("button", { onClick: () => mn.push("/verifyEmail") }, "Verify Email"),
|
|
25430
|
+
h("button", { onClick: () => mn.push("/forgotPassword") }, "Forgot Password"),
|
|
25431
|
+
h("button", { onClick: () => mn.push("/resetPassword") }, "Reset Password")),
|
|
25383
25432
|
h("br", null),
|
|
25384
25433
|
h("div", { innerHTML: states.previewTemplate })));
|
|
25385
25434
|
}
|
|
@@ -29363,6 +29412,20 @@ const NYTimes = `
|
|
|
29363
29412
|
${autoColorScaleCss("black")}
|
|
29364
29413
|
--sl-font-sans: Georgia, 'Times New Roman', serif;
|
|
29365
29414
|
}
|
|
29415
|
+
`;
|
|
29416
|
+
const Klip = `
|
|
29417
|
+
:root{
|
|
29418
|
+
--sl-color-primary-50: #E8E5F8;
|
|
29419
|
+
--sl-color-primary-100: #C6BEED;
|
|
29420
|
+
--sl-color-primary-200: #A192E2;
|
|
29421
|
+
--sl-color-primary-300: #7B66D6;
|
|
29422
|
+
--sl-color-primary-400: #5E46CD;
|
|
29423
|
+
--sl-color-primary-500: #4225C4;
|
|
29424
|
+
--sl-color-primary-600: #3C21BE;
|
|
29425
|
+
--sl-color-primary-700: #331BB6;
|
|
29426
|
+
--sl-color-primary-800: #2B16AF;
|
|
29427
|
+
--sl-color-primary-900: #1D0DA2;
|
|
29428
|
+
}
|
|
29366
29429
|
`;
|
|
29367
29430
|
|
|
29368
29431
|
const Themes = /*#__PURE__*/Object.freeze({
|
|
@@ -29371,7 +29434,8 @@ const Themes = /*#__PURE__*/Object.freeze({
|
|
|
29371
29434
|
Orangey: Orangey,
|
|
29372
29435
|
Netflix: Netflix,
|
|
29373
29436
|
SaaSquatchCorporate: SaaSquatchCorporate,
|
|
29374
|
-
NYTimes: NYTimes
|
|
29437
|
+
NYTimes: NYTimes,
|
|
29438
|
+
Klip: Klip
|
|
29375
29439
|
});
|
|
29376
29440
|
|
|
29377
29441
|
function deepFreeze(obj) {
|
|
@@ -32229,8 +32293,8 @@ const GET_USER_NAME = gql `
|
|
|
32229
32293
|
`;
|
|
32230
32294
|
function useUserName(props) {
|
|
32231
32295
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
32232
|
-
const user =
|
|
32233
|
-
const res =
|
|
32296
|
+
const user = ne$1();
|
|
32297
|
+
const res = cn(GET_USER_NAME, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
32234
32298
|
const loading = res.loading;
|
|
32235
32299
|
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)
|
|
32236
32300
|
? `${(_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}`
|