@saasquatch/mint-components 1.15.0-5 → 1.15.0-6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{ShadowViewAddon-3f11bc68.js → ShadowViewAddon-e666dc8b.js} +197 -213
- package/dist/cjs/{copy-text-view-c85acaaa.js → copy-text-view-7441206d.js} +53 -38
- package/dist/cjs/{global-261393c6.js → global-124aec2c.js} +21 -9
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/mint-components.cjs.js +2 -2
- package/dist/cjs/sqm-banking-info-form_17.cjs.entry.js +2 -2
- package/dist/cjs/sqm-big-stat_41.cjs.entry.js +44 -6
- package/dist/cjs/sqm-email-verification.cjs.entry.js +1 -1
- package/dist/cjs/sqm-empty_4.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-invoice-table-view-8b950046.js → sqm-invoice-table-view-f369b0a6.js} +1 -1
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +1 -1
- package/dist/cjs/sqm-pagination_3.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-email-verification-view-8d5b23f3.js → sqm-portal-email-verification-view-f5ce25cc.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-profile-view-fcb3ea3f.js → sqm-portal-profile-view-07d13061.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +2 -2
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +1 -1
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +1 -1
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +19 -6
- package/dist/collection/components/sqm-coupon-code/sqm-coupon-code.js +1 -1
- package/dist/collection/components/sqm-logout-current-user/sqm-logout-current-user.js +1 -1
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step-view.js +6 -2
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step.js +77 -2
- package/dist/collection/components/sqm-referral-code/sqm-referral-code.js +1 -1
- package/dist/collection/components/sqm-share-button/sqm-share-button.js +1 -1
- package/dist/collection/components/sqm-share-code/sqm-share-code.js +1 -1
- package/dist/collection/components/sqm-share-link/ShareLink.stories.js +12 -0
- package/dist/collection/components/sqm-share-link/sqm-share-link.js +54 -3
- package/dist/collection/components/sqm-task-card/DetailsView.js +1 -1
- package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +139 -155
- package/dist/collection/components/sqm-task-card/sqm-task-card.js +146 -0
- package/dist/collection/components/sqm-task-card/useTaskCard.js +10 -0
- package/dist/collection/components/views/copy-text-view.js +53 -38
- package/dist/collection/global/styles.js +21 -9
- package/dist/collection/global/styles.ts +21 -9
- package/dist/esm/{ShadowViewAddon-f5791215.js → ShadowViewAddon-7c10e0ee.js} +197 -213
- package/dist/esm/{copy-text-view-782137ba.js → copy-text-view-717050d5.js} +53 -38
- package/dist/esm/{global-7b65dcb8.js → global-6dc825bc.js} +21 -9
- package/dist/esm/loader.js +2 -2
- package/dist/esm/mint-components.js +2 -2
- package/dist/esm/sqm-banking-info-form_17.entry.js +2 -2
- package/dist/esm/sqm-big-stat_41.entry.js +44 -6
- package/dist/esm/sqm-email-verification.entry.js +1 -1
- package/dist/esm/sqm-empty_4.entry.js +1 -1
- package/dist/esm/{sqm-invoice-table-view-0f0a7386.js → sqm-invoice-table-view-1bd8afaa.js} +1 -1
- package/dist/esm/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm/sqm-pagination_3.entry.js +2 -2
- package/dist/esm/{sqm-portal-email-verification-view-3bd4f1d9.js → sqm-portal-email-verification-view-d96d6c43.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +2 -2
- package/dist/esm/{sqm-portal-profile-view-3a751a15.js → sqm-portal-profile-view-4ce1c7c3.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +2 -2
- package/dist/esm/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm/sqm-stencilbook.entry.js +19 -6
- package/dist/esm-es5/ShadowViewAddon-7c10e0ee.js +1 -0
- package/dist/esm-es5/copy-text-view-717050d5.js +1 -0
- package/dist/esm-es5/{global-7b65dcb8.js → global-6dc825bc.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/sqm-banking-info-form_17.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_41.entry.js +1 -1
- package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
- package/dist/esm-es5/{sqm-invoice-table-view-0f0a7386.js → sqm-invoice-table-view-1bd8afaa.js} +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-3bd4f1d9.js → sqm-portal-email-verification-view-d96d6c43.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-3a751a15.js → sqm-portal-profile-view-4ce1c7c3.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/mint-components/global/styles.ts +21 -9
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/{p-aa3c81d3.system.js → p-11519322.system.js} +1 -1
- package/dist/mint-components/{p-c2ab40ae.system.entry.js → p-11542862.system.entry.js} +1 -1
- package/dist/mint-components/{p-8f603753.system.entry.js → p-208d8d75.system.entry.js} +1 -1
- package/dist/mint-components/{p-a4eb4b81.entry.js → p-2c07df76.entry.js} +1 -1
- package/dist/mint-components/{p-7127a230.js → p-3a49811c.js} +1 -1
- package/dist/mint-components/{p-fbfbbbd2.system.js → p-44a82cf3.system.js} +1 -1
- package/dist/mint-components/p-4874193a.system.js +1 -0
- package/dist/mint-components/{p-ebdf906a.entry.js → p-49deb225.entry.js} +1 -1
- package/dist/mint-components/{p-4b626c19.entry.js → p-4dbe2d08.entry.js} +1 -1
- package/dist/mint-components/{p-4ae5ac59.entry.js → p-51495bc3.entry.js} +1 -1
- package/dist/mint-components/{p-c07551c4.system.entry.js → p-5ca8959a.system.entry.js} +1 -1
- package/dist/mint-components/{p-c0b52238.entry.js → p-619c2aa3.entry.js} +1 -1
- package/dist/mint-components/{p-c53b8fe7.entry.js → p-6f34c2c2.entry.js} +2 -2
- package/dist/mint-components/{p-5c2d9a52.entry.js → p-734695a0.entry.js} +1 -1
- package/dist/mint-components/{p-e4fd9966.entry.js → p-7f1e10d3.entry.js} +2 -2
- package/dist/mint-components/{p-383d8c5a.system.entry.js → p-837dbf90.system.entry.js} +1 -1
- package/dist/mint-components/{p-15d20bf9.entry.js → p-8b36fe4f.entry.js} +11 -11
- package/dist/mint-components/p-8c12078e.js +394 -0
- package/dist/mint-components/{p-2e4129e0.system.entry.js → p-90421929.system.entry.js} +1 -1
- package/dist/mint-components/{p-10ed0483.system.entry.js → p-9209a016.system.entry.js} +1 -1
- package/dist/mint-components/{p-646cfbd5.system.js → p-93fed35b.system.js} +1 -1
- package/dist/mint-components/{p-05255c61.system.js → p-95ae4ab9.system.js} +1 -1
- package/dist/mint-components/{p-fa630b25.system.entry.js → p-a37541ae.system.entry.js} +1 -1
- package/dist/mint-components/{p-32d5cbc1.js → p-abefb7cc.js} +1 -1
- package/dist/mint-components/{p-7e8bf5cb.system.entry.js → p-ad985d37.system.entry.js} +1 -1
- package/dist/mint-components/p-bdbbc673.system.entry.js +1 -0
- package/dist/mint-components/p-c3680c02.js +1 -0
- package/dist/mint-components/{p-5c0576c0.system.entry.js → p-c6841ab8.system.entry.js} +1 -1
- package/dist/mint-components/{p-f25f3d2a.system.entry.js → p-cd63a965.system.entry.js} +1 -1
- package/dist/mint-components/{p-cde752fa.js → p-cf8677ea.js} +1 -1
- package/dist/mint-components/{p-22f374db.entry.js → p-d3e5704c.entry.js} +1 -1
- package/dist/mint-components/p-d8cf46ba.system.js +1 -0
- package/dist/mint-components/{p-ae473175.js → p-e01fe915.js} +12 -12
- package/dist/mint-components/{p-9dd8c93b.system.js → p-ed11966d.system.js} +1 -1
- package/dist/mint-components/{p-ec7d2a85.entry.js → p-eda5e82c.entry.js} +1 -1
- package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step-view.d.ts +3 -0
- package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step.d.ts +19 -2
- package/dist/types/components/sqm-share-link/ShareLink.stories.d.ts +1 -0
- package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +30 -1
- package/dist/types/components/sqm-task-card/sqm-task-card-view.d.ts +5 -0
- package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +32 -0
- package/dist/types/components/sqm-task-card/useTaskCard.d.ts +9 -0
- package/dist/types/components/views/copy-text-view.d.ts +5 -0
- package/dist/types/components.d.ts +122 -4
- package/dist/types/global/styles.d.ts +1 -1
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/esm-es5/ShadowViewAddon-f5791215.js +0 -1
- package/dist/esm-es5/copy-text-view-782137ba.js +0 -1
- package/dist/mint-components/p-31015791.js +0 -1
- package/dist/mint-components/p-3708a40b.system.js +0 -1
- package/dist/mint-components/p-3b90e01b.system.js +0 -1
- package/dist/mint-components/p-97ccee03.system.entry.js +0 -1
- package/dist/mint-components/p-acf93efa.js +0 -394
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
const index = require('./index-a29c60ef.js');
|
|
4
4
|
const stencilHooks_module = require('./stencil-hooks.module-3a336b0f.js');
|
|
5
|
-
const global = require('./global-
|
|
5
|
+
const global = require('./global-124aec2c.js');
|
|
6
6
|
const index_module = require('./index.module-ee84433d.js');
|
|
7
7
|
const cjs = require('./cjs-1066ec21.js');
|
|
8
8
|
const utils = require('./utils-6847bc06.js');
|
|
9
9
|
const JSS = require('./JSS-8503a151.js');
|
|
10
10
|
const useReferralCodes = require('./useReferralCodes-82e8797b.js');
|
|
11
11
|
const mixins = require('./mixins-f7e0377a.js');
|
|
12
|
-
const copyTextView = require('./copy-text-view-
|
|
12
|
+
const copyTextView = require('./copy-text-view-7441206d.js');
|
|
13
13
|
const useChildElements = require('./useChildElements-1b35d945.js');
|
|
14
14
|
const luxon = require('./luxon-2926d85f.js');
|
|
15
15
|
const sqmTextSpanView = require('./sqm-text-span-view-56e48a78.js');
|
|
@@ -1776,7 +1776,7 @@ const style$4 = {
|
|
|
1776
1776
|
position: "absolute",
|
|
1777
1777
|
top: "var(--sl-spacing-medium)",
|
|
1778
1778
|
right: "var(--sl-spacing-medium)",
|
|
1779
|
-
color: "var(--
|
|
1779
|
+
color: "var(--sqm-text)",
|
|
1780
1780
|
fontSize: "var(--sl-font-size-large)",
|
|
1781
1781
|
"& :hover": {
|
|
1782
1782
|
color: "var(--sl-color-primary-700)",
|
|
@@ -2241,165 +2241,151 @@ const arrow_left_right = () => {
|
|
|
2241
2241
|
index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M10.265 2.789a.346.346 0 000-.489L8.066.101a.346.346 0 10-.489.489l1.61 1.609H2.073a.691.691 0 00-.69.691v1.728a.346.346 0 00.69 0V2.89h7.114L7.577 4.5a.346.346 0 10.49.488l2.198-2.2zM.101 9.21a.346.346 0 000 .489l2.2 2.199a.346.346 0 00.488-.489l-1.61-1.609h7.114c.382 0 .691-.31.691-.691V7.382a.346.346 0 00-.691 0V9.11H1.18L2.789 7.5a.346.346 0 10-.489-.488l-2.199 2.2z", fill: "currentColor" })));
|
|
2242
2242
|
};
|
|
2243
2243
|
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
color: "var(--sl-color-primary-600)",
|
|
2285
|
-
border: "1px solid var(--sl-color-neutral-200)",
|
|
2286
|
-
borderRadius: "var(--sl-border-radius-large) var(--sl-border-radius-large) 0 0",
|
|
2287
|
-
borderBottom: "none",
|
|
2288
|
-
background: "var(--sl-color-primary-50)",
|
|
2289
|
-
fontWeight: "var(--sl-font-weight-semibold)",
|
|
2290
|
-
lineHeight: "var(--sl-line-height-dense)",
|
|
2291
|
-
"& .icon": {
|
|
2292
|
-
position: "relative",
|
|
2293
|
-
top: "0.1em",
|
|
2294
|
-
marginRight: "var(--sl-spacing-small)",
|
|
2295
|
-
color: "var(--sl-color-primary-500)",
|
|
2296
|
-
},
|
|
2297
|
-
},
|
|
2298
|
-
Ended: {
|
|
2299
|
-
fontSize: "var(--sl-font-size-small)",
|
|
2300
|
-
padding: "var(--sl-spacing-medium)",
|
|
2301
|
-
color: "var(--sl-color-warning-600)",
|
|
2302
|
-
border: "1px solid var(--sl-color-neutral-200)",
|
|
2303
|
-
borderRadius: "var(--sl-border-radius-large) var(--sl-border-radius-large) 0 0",
|
|
2304
|
-
borderBottom: "none",
|
|
2305
|
-
background: "var(--sl-color-warning-50)",
|
|
2306
|
-
fontWeight: "var(--sl-font-weight-semibold)",
|
|
2307
|
-
lineHeight: "var(--sl-line-height-dense)",
|
|
2308
|
-
"& .icon": {
|
|
2309
|
-
position: "relative",
|
|
2310
|
-
top: "0.1em",
|
|
2311
|
-
marginRight: "var(--sl-spacing-small)",
|
|
2312
|
-
color: "var(--sl-color-warning-500)",
|
|
2313
|
-
},
|
|
2314
|
-
},
|
|
2315
|
-
Header: {
|
|
2316
|
-
display: "flex",
|
|
2317
|
-
"& .icon": {
|
|
2318
|
-
position: "relative",
|
|
2319
|
-
top: "5%",
|
|
2320
|
-
alignSelf: "center",
|
|
2321
|
-
lineHeight: "0",
|
|
2322
|
-
color: "var(--sl-color-primary-400)",
|
|
2323
|
-
fontSize: "var(--sl-font-size-large)",
|
|
2324
|
-
marginRight: "var(--sl-spacing-x-small)",
|
|
2325
|
-
},
|
|
2326
|
-
"& .value": {
|
|
2327
|
-
alignSelf: "center",
|
|
2328
|
-
fontSize: "var(--sl-font-size-x-large)",
|
|
2329
|
-
fontWeight: "var(--sl-font-weight-semibold)",
|
|
2330
|
-
color: "var(--sqm-text)",
|
|
2331
|
-
lineHeight: "100%",
|
|
2332
|
-
marginRight: "var(--sl-spacing-xx-small)",
|
|
2333
|
-
},
|
|
2334
|
-
"& .text": {
|
|
2335
|
-
alignSelf: "end",
|
|
2336
|
-
textTransform: "uppercase",
|
|
2337
|
-
fontSize: "var(--sl-font-size-x-small)",
|
|
2338
|
-
color: "var(--sqm-text)",
|
|
2339
|
-
lineHeight: "var(--sl-font-size-medium)",
|
|
2340
|
-
marginRight: "var(--sl-spacing-xx-small)",
|
|
2244
|
+
function TaskCardView(props) {
|
|
2245
|
+
var _a, _b;
|
|
2246
|
+
const { callbacks, states, content } = props;
|
|
2247
|
+
console.log("text color from the view ", content.textColor);
|
|
2248
|
+
const style = {
|
|
2249
|
+
TaskCard: {
|
|
2250
|
+
display: "inline-block",
|
|
2251
|
+
width: "100%",
|
|
2252
|
+
"& .main": {
|
|
2253
|
+
position: "relative",
|
|
2254
|
+
boxSizing: "border-sizing",
|
|
2255
|
+
background: content.backgroundColor || "var(--sl-color-neutral-0)",
|
|
2256
|
+
border: `1px solid ${content.borderColor || "var(--sl-color-neutral-200)"}`,
|
|
2257
|
+
borderRadius: "var(--sl-border-radius-large)",
|
|
2258
|
+
boxShadow: "1px 2px 4px rgba(211, 211, 211, 0.2)",
|
|
2259
|
+
fontSize: "var(--sl-font-size-small)",
|
|
2260
|
+
lineHeight: "var(--sl-line-height-dense)",
|
|
2261
|
+
color: content.textColor || "var(--sqm-text)",
|
|
2262
|
+
},
|
|
2263
|
+
"& .main.complete": {
|
|
2264
|
+
background: content.backgroundColor || "var(--sl-color-primary-50)",
|
|
2265
|
+
borderColor: content.borderColor || "var(--sl-color-primary-500)",
|
|
2266
|
+
},
|
|
2267
|
+
"& .main.expired": {
|
|
2268
|
+
color: content.textColor || "var(--sqm-text)",
|
|
2269
|
+
background: content.backgroundColor || "var(--sl-color-neutral-50)",
|
|
2270
|
+
},
|
|
2271
|
+
"& .title": {
|
|
2272
|
+
fontSize: "var(--sl-font-size-medium)",
|
|
2273
|
+
color: content.textColor || "var(--sqm-text)",
|
|
2274
|
+
},
|
|
2275
|
+
"& .container": {
|
|
2276
|
+
margin: "var(--sl-spacing-medium)",
|
|
2277
|
+
},
|
|
2278
|
+
"& .container.subdued": {
|
|
2279
|
+
opacity: "0.45",
|
|
2280
|
+
},
|
|
2281
|
+
"& .container > div": {
|
|
2282
|
+
margin: "var(--sl-spacing-medium) 0",
|
|
2283
|
+
},
|
|
2341
2284
|
},
|
|
2342
|
-
|
|
2343
|
-
|
|
2285
|
+
NotStarted: {
|
|
2286
|
+
fontSize: "var(--sl-font-size-small)",
|
|
2287
|
+
padding: "var(--sl-spacing-medium)",
|
|
2288
|
+
color: content.textColor || "var(--sl-color-primary-600)",
|
|
2289
|
+
border: `1px solid ${content.borderColor || "var(--sl-color-neutral-200)"}`,
|
|
2290
|
+
borderRadius: "var(--sl-border-radius-large) var(--sl-border-radius-large) 0 0",
|
|
2291
|
+
borderBottom: "none",
|
|
2292
|
+
background: content.backgroundColor || "var(--sl-color-primary-50)",
|
|
2344
2293
|
fontWeight: "var(--sl-font-weight-semibold)",
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
"&[data-subdue] .success": {
|
|
2353
|
-
color: "var(--sl-color-primary-300)",
|
|
2354
|
-
},
|
|
2355
|
-
"&[data-subdue] .neutral": {
|
|
2356
|
-
color: "var(--sqm-text)",
|
|
2357
|
-
},
|
|
2358
|
-
display: "flex",
|
|
2359
|
-
"& .icon": {
|
|
2360
|
-
fontSize: "var(--sl-font-size-xx-small)",
|
|
2361
|
-
marginRight: "var(--sl-spacing-xx-small)",
|
|
2362
|
-
verticalAlign: "middle",
|
|
2363
|
-
},
|
|
2364
|
-
"& .text": {
|
|
2365
|
-
marginTop: "auto",
|
|
2366
|
-
verticalAlign: "text-bottom",
|
|
2367
|
-
fontSize: "var(--sl-font-size-x-small)",
|
|
2368
|
-
color: "var(--sqm-text)",
|
|
2294
|
+
lineHeight: "var(--sl-line-height-dense)",
|
|
2295
|
+
"& .icon": {
|
|
2296
|
+
position: "relative",
|
|
2297
|
+
top: "0.1em",
|
|
2298
|
+
marginRight: "var(--sl-spacing-small)",
|
|
2299
|
+
color: content.textColor || "var(--sqm-text)",
|
|
2300
|
+
},
|
|
2369
2301
|
},
|
|
2370
|
-
|
|
2371
|
-
|
|
2302
|
+
Ended: {
|
|
2303
|
+
fontSize: "var(--sl-font-size-small)",
|
|
2304
|
+
padding: "var(--sl-spacing-medium)",
|
|
2305
|
+
color: content.textColor || "var(--sl-color-warning-600)",
|
|
2306
|
+
border: `1px solid ${content.borderColor || "var(--sl-color-neutral-200)"}`,
|
|
2307
|
+
borderRadius: "var(--sl-border-radius-large) var(--sl-border-radius-large) 0 0",
|
|
2308
|
+
borderBottom: "none",
|
|
2309
|
+
background: content.backgroundColor || "var(--sl-color-warning-50)",
|
|
2372
2310
|
fontWeight: "var(--sl-font-weight-semibold)",
|
|
2311
|
+
lineHeight: "var(--sl-line-height-dense)",
|
|
2312
|
+
"& .icon": {
|
|
2313
|
+
position: "relative",
|
|
2314
|
+
top: "0.1em",
|
|
2315
|
+
marginRight: "var(--sl-spacing-small)",
|
|
2316
|
+
color: content.textColor || "var(--sqm-text)",
|
|
2317
|
+
},
|
|
2373
2318
|
},
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2319
|
+
Header: {
|
|
2320
|
+
display: "flex",
|
|
2321
|
+
"& .icon": {
|
|
2322
|
+
position: "relative",
|
|
2323
|
+
top: "5%",
|
|
2324
|
+
alignSelf: "center",
|
|
2325
|
+
lineHeight: "0",
|
|
2326
|
+
color: content.textColor || "var(--sqm-text)",
|
|
2327
|
+
fontSize: "var(--sl-font-size-large)",
|
|
2328
|
+
marginRight: "var(--sl-spacing-x-small)",
|
|
2379
2329
|
},
|
|
2380
|
-
"
|
|
2381
|
-
|
|
2382
|
-
|
|
2330
|
+
"& .value": {
|
|
2331
|
+
alignSelf: "center",
|
|
2332
|
+
fontSize: "var(--sl-font-size-x-large)",
|
|
2333
|
+
fontWeight: "var(--sl-font-weight-semibold)",
|
|
2334
|
+
color: content.textColor || "var(--sqm-text)",
|
|
2335
|
+
lineHeight: "100%",
|
|
2336
|
+
marginRight: "var(--sl-spacing-xx-small)",
|
|
2383
2337
|
},
|
|
2384
|
-
"
|
|
2385
|
-
|
|
2386
|
-
|
|
2338
|
+
"& .text": {
|
|
2339
|
+
alignSelf: "end",
|
|
2340
|
+
textTransform: "uppercase",
|
|
2341
|
+
fontSize: "var(--sl-font-size-x-small)",
|
|
2342
|
+
color: content.textColor || "var(--sqm-text)",
|
|
2343
|
+
lineHeight: "var(--sl-font-size-medium)",
|
|
2344
|
+
marginRight: "var(--sl-spacing-xx-small)",
|
|
2345
|
+
},
|
|
2346
|
+
"& .end": {
|
|
2347
|
+
color: content.textColor || "var(--sl-color-warning-500)",
|
|
2348
|
+
fontWeight: "var(--sl-font-weight-semibold)",
|
|
2349
|
+
marginBottom: "var(--sl-spacing-xx-small)",
|
|
2350
|
+
},
|
|
2351
|
+
"& .neutral": {
|
|
2352
|
+
color: content.textColor || "var(--sl-color-neutral-400)",
|
|
2387
2353
|
},
|
|
2388
2354
|
},
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2355
|
+
Footer: {
|
|
2356
|
+
"&[data-subdue] .success": {
|
|
2357
|
+
color: content.textColor || "var(--sl-color-primary-300)",
|
|
2358
|
+
},
|
|
2359
|
+
"&[data-subdue] .neutral": {
|
|
2360
|
+
color: content.textColor || "var(--sqm-text)",
|
|
2361
|
+
},
|
|
2362
|
+
display: "flex",
|
|
2363
|
+
"& .icon": {
|
|
2364
|
+
fontSize: "var(--sl-font-size-xx-small)",
|
|
2365
|
+
marginRight: "var(--sl-spacing-xx-small)",
|
|
2366
|
+
verticalAlign: "middle",
|
|
2367
|
+
},
|
|
2368
|
+
"& .text": {
|
|
2369
|
+
marginTop: "auto",
|
|
2370
|
+
verticalAlign: "text-bottom",
|
|
2371
|
+
fontSize: "var(--sl-font-size-x-small)",
|
|
2372
|
+
color: content.textColor || "var(--sqm-text)",
|
|
2373
|
+
},
|
|
2374
|
+
"& .success": {
|
|
2375
|
+
color: content.textColor || "var(--sqm-text)",
|
|
2376
|
+
fontWeight: "var(--sl-font-weight-semibold)",
|
|
2377
|
+
},
|
|
2378
|
+
"& .neutral": {
|
|
2379
|
+
color: content.textColor || "var(--sqm-text)",
|
|
2380
|
+
},
|
|
2381
|
+
"& .datetime": {
|
|
2382
|
+
display: "block",
|
|
2383
|
+
marginTop: "var(--sl-spacing-xx-small)",
|
|
2384
|
+
},
|
|
2395
2385
|
},
|
|
2396
|
-
}
|
|
2397
|
-
|
|
2398
|
-
const
|
|
2399
|
-
const styleString$6 = sheet$6.toString();
|
|
2400
|
-
function TaskCardView(props) {
|
|
2401
|
-
var _a, _b;
|
|
2402
|
-
const { callbacks, states, content } = props;
|
|
2386
|
+
};
|
|
2387
|
+
const sheet = JSS.createStyleSheet(style);
|
|
2388
|
+
const contenttring = sheet.toString();
|
|
2403
2389
|
const dateStart = content.rewardDuration &&
|
|
2404
2390
|
luxon.luxon.DateTime.fromISO(content.rewardDuration.split("/")[0]);
|
|
2405
2391
|
const dateEnd = content.rewardDuration &&
|
|
@@ -2432,11 +2418,11 @@ function TaskCardView(props) {
|
|
|
2432
2418
|
}
|
|
2433
2419
|
|
|
2434
2420
|
`;
|
|
2435
|
-
return (index.h("div", { class: sheet
|
|
2421
|
+
return (index.h("div", { class: sheet.classes.TaskCard, part: "sqm-base" },
|
|
2436
2422
|
index.h("style", { type: "text/css" },
|
|
2437
|
-
|
|
2423
|
+
contenttring,
|
|
2438
2424
|
vanillaStyle),
|
|
2439
|
-
!states.loading && taskNotStarted && (index.h("div", { class: sheet
|
|
2425
|
+
!states.loading && taskNotStarted && (index.h("div", { class: sheet.classes.NotStarted },
|
|
2440
2426
|
index.h("span", { class: "icon" },
|
|
2441
2427
|
index.h("sl-icon", { name: "info-circle-fill" })),
|
|
2442
2428
|
global.intl.formatMessage({
|
|
@@ -2447,7 +2433,7 @@ function TaskCardView(props) {
|
|
|
2447
2433
|
.setLocale(utils.luxonLocale(states.locale))
|
|
2448
2434
|
.toLocaleString(luxon.luxon.DateTime.DATETIME_MED),
|
|
2449
2435
|
}))),
|
|
2450
|
-
!states.loading && taskEnded && (index.h("div", { class: sheet
|
|
2436
|
+
!states.loading && taskEnded && (index.h("div", { class: sheet.classes.Ended },
|
|
2451
2437
|
index.h("span", { class: "icon" },
|
|
2452
2438
|
index.h("sl-icon", { exportparts: "base: task-card-icon", name: "exclamation-triangle-fill" })),
|
|
2453
2439
|
global.intl.formatMessage({
|
|
@@ -2467,7 +2453,7 @@ function TaskCardView(props) {
|
|
|
2467
2453
|
? "main complete"
|
|
2468
2454
|
: "main" },
|
|
2469
2455
|
index.h("div", { class: "container", part: "sqm-card-container", "data-subdue": taskComplete || taskUnavailable },
|
|
2470
|
-
index.h("div", { class: sheet
|
|
2456
|
+
index.h("div", { class: sheet.classes.Header, style: { opacity: taskComplete || taskUnavailable ? "0.45" : "1" } }, states.loading ? (index.h("sl-skeleton", { style: { width: "22%", margin: "0" } })) : (index.h("div", null,
|
|
2471
2457
|
showComplete && (index.h("span", { class: taskUnavailable ? "icon neutral" : "icon" }, taskComplete ? checkmark_filled$1 : checkmark_circle$1)),
|
|
2472
2458
|
index.h("span", { part: "sqm-value", class: "value" }, content.rewardAmount),
|
|
2473
2459
|
index.h("span", { part: "sqm-unit", class: "text" }, content.rewardUnit)))),
|
|
@@ -2483,7 +2469,7 @@ function TaskCardView(props) {
|
|
|
2483
2469
|
} }, content.cardTitle)),
|
|
2484
2470
|
states.loading ? (index.h("sl-skeleton", { style: { margin: "var(--sl-spacing-medium) 0" } })) : (content.description && (index.h(Details, Object.assign({}, props, { opacity: taskComplete || taskUnavailable ? "0.45" : "1" })))),
|
|
2485
2471
|
content.showProgressBar && states.loading ? (index.h("sl-skeleton", { style: { margin: "var(--sl-spacing-medium) 0" } })) : (content.showProgressBar && (index.h(ProgressBarView, Object.assign({}, props.content, props.states, { opacity: taskComplete || taskUnavailable ? "0.45" : "1", complete: taskComplete, expired: taskUnavailable })))),
|
|
2486
|
-
index.h("div", { class: sheet
|
|
2472
|
+
index.h("div", { class: sheet.classes.Footer, "data-subdue": taskComplete || taskUnavailable }, states.loading ? (index.h("sl-skeleton", { style: { width: "25%", marginLeft: "auto" } })) : (index.h("div", { style: { display: "contents" } },
|
|
2487
2473
|
index.h("span", { class: "text" },
|
|
2488
2474
|
content.repeatable && (index.h("div", null,
|
|
2489
2475
|
index.h("span", { class: repetitions > 0
|
|
@@ -2512,11 +2498,9 @@ function TaskCardView(props) {
|
|
|
2512
2498
|
.setLocale(utils.luxonLocale(states.locale))
|
|
2513
2499
|
.toLocaleString(luxon.luxon.DateTime.DATETIME_MED),
|
|
2514
2500
|
})))),
|
|
2515
|
-
content.hideButton ? ("") : (index.h("sl-button", { exportparts:
|
|
2516
|
-
? "
|
|
2517
|
-
: taskComplete
|
|
2518
|
-
? "action disabled"
|
|
2519
|
-
: "action", type: "primary", size: "small", onClick: callbacks.onClick, loading: states.loadingEvent, disabled: taskComplete || taskUnavailable, style: {
|
|
2501
|
+
content.hideButton ? ("") : (index.h("sl-button", { exportparts: `base: ${content.buttonStyle === "primary"
|
|
2502
|
+
? "primary"
|
|
2503
|
+
: "secondary"}button-base`, id: "sl-button", type: content.buttonStyle === "primary" ? "primary" : "default", size: "small", onClick: callbacks.onClick, loading: states.loadingEvent, disabled: taskComplete || taskUnavailable, style: {
|
|
2520
2504
|
opacity: taskComplete || taskUnavailable ? "0.45" : "1",
|
|
2521
2505
|
} }, content.buttonText)))))))));
|
|
2522
2506
|
}
|
|
@@ -2782,7 +2766,7 @@ function ReferralIframeView(props) {
|
|
|
2782
2766
|
index.h("iframe", { class: sheet.classes.IFrame, src: `${content.iframeSrc}?rsCode=${data.shareCode}` })));
|
|
2783
2767
|
}
|
|
2784
2768
|
|
|
2785
|
-
const style$
|
|
2769
|
+
const style$6 = {
|
|
2786
2770
|
ErrorStyle: mixins.ErrorStyles,
|
|
2787
2771
|
FieldsContainer: {
|
|
2788
2772
|
"& sl-input": {
|
|
@@ -2802,21 +2786,21 @@ sl-input::part(label){
|
|
|
2802
2786
|
font-weight: var(--sl-font-weight-semibold);
|
|
2803
2787
|
}
|
|
2804
2788
|
`;
|
|
2805
|
-
const sheet$
|
|
2806
|
-
const styleString$
|
|
2789
|
+
const sheet$6 = JSS.createStyleSheet(style$6);
|
|
2790
|
+
const styleString$6 = sheet$6.toString();
|
|
2807
2791
|
function NameFieldsView(props) {
|
|
2808
2792
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
2809
2793
|
const { states } = props;
|
|
2810
2794
|
const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
|
|
2811
|
-
return (index.h("div", { class: sheet$
|
|
2795
|
+
return (index.h("div", { class: sheet$6.classes.FieldsContainer },
|
|
2812
2796
|
index.h("style", { type: "text/css" },
|
|
2813
2797
|
vanillaStyle$3,
|
|
2814
|
-
styleString$
|
|
2798
|
+
styleString$6),
|
|
2815
2799
|
index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", name: "/firstName", type: "text", label: states.content.firstNameLabel, required: true, disabled: ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.disabled) }, (((_e = (_d = states.registrationFormState) === null || _d === void 0 ? void 0 : _d.initialData) === null || _e === void 0 ? void 0 : _e.firstName) ? {
|
|
2816
2800
|
value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g.firstName,
|
|
2817
2801
|
}
|
|
2818
2802
|
: {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.firstName) ? {
|
|
2819
|
-
class: sheet$
|
|
2803
|
+
class: sheet$6.classes.ErrorStyle,
|
|
2820
2804
|
helpText: (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.firstName) || "Cannot be empty",
|
|
2821
2805
|
}
|
|
2822
2806
|
: []))),
|
|
@@ -2824,13 +2808,13 @@ function NameFieldsView(props) {
|
|
|
2824
2808
|
value: (_o = (_m = states.registrationFormState) === null || _m === void 0 ? void 0 : _m.initialData) === null || _o === void 0 ? void 0 : _o.lastName,
|
|
2825
2809
|
}
|
|
2826
2810
|
: {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.lastName) ? {
|
|
2827
|
-
class: sheet$
|
|
2811
|
+
class: sheet$6.classes.ErrorStyle,
|
|
2828
2812
|
helpText: (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.lastName) || "Cannot be empty",
|
|
2829
2813
|
}
|
|
2830
2814
|
: [])))));
|
|
2831
2815
|
}
|
|
2832
2816
|
|
|
2833
|
-
const style$
|
|
2817
|
+
const style$7 = {
|
|
2834
2818
|
ErrorStyle: {
|
|
2835
2819
|
"--sl-input-border-color": "var(--sl-color-danger-500)",
|
|
2836
2820
|
"--sl-input-background-color": "var(--sl-color-danger-10)",
|
|
@@ -2858,30 +2842,30 @@ sl-select::part(label){
|
|
|
2858
2842
|
}
|
|
2859
2843
|
`;
|
|
2860
2844
|
JSS.jss.setup(JSS.create());
|
|
2861
|
-
const sheet$
|
|
2862
|
-
const styleString$
|
|
2845
|
+
const sheet$7 = JSS.jss.createStyleSheet(style$7);
|
|
2846
|
+
const styleString$7 = sheet$7.toString();
|
|
2863
2847
|
function DropdownFieldView(props) {
|
|
2864
2848
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
2865
2849
|
const { states, content } = props;
|
|
2866
2850
|
const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
|
|
2867
|
-
return (index.h("div", { class: sheet$
|
|
2851
|
+
return (index.h("div", { class: sheet$7.classes.FieldContainer, part: "sqm-base" },
|
|
2868
2852
|
index.h("style", { type: "text/css" },
|
|
2869
2853
|
vanillaStyle$4,
|
|
2870
|
-
styleString$
|
|
2854
|
+
styleString$7),
|
|
2871
2855
|
index.h("sl-select", Object.assign({ exportparts: "label: input-label, base: input-base", label: content.dropdownLabel, name: `/${content.dropdownName}` }, (!content.dropdownOptional ? { required: true } : []), { disabled: ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.disabled) }, (((_e = (_d = states.registrationFormState) === null || _d === void 0 ? void 0 : _d.initialData) === null || _e === void 0 ? void 0 : _e[content.dropdownName]) ? {
|
|
2872
2856
|
value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g[content.dropdownName],
|
|
2873
2857
|
}
|
|
2874
2858
|
: {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.dropdownName]) ? {
|
|
2875
|
-
class: sheet$
|
|
2859
|
+
class: sheet$7.classes.ErrorStyle,
|
|
2876
2860
|
}
|
|
2877
2861
|
: [])), content.selectOptions),
|
|
2878
|
-
(validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.dropdownName]) && (index.h("p", { class: sheet$
|
|
2862
|
+
(validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.dropdownName]) && (index.h("p", { class: sheet$7.classes.ErrorMessageStyle }, global.intl.formatMessage({
|
|
2879
2863
|
id: `errorMessage-${content.dropdownName}`,
|
|
2880
2864
|
defaultMessage: content.errorMessage,
|
|
2881
2865
|
})))));
|
|
2882
2866
|
}
|
|
2883
2867
|
|
|
2884
|
-
const style$
|
|
2868
|
+
const style$8 = {
|
|
2885
2869
|
ErrorStyle: mixins.ErrorStyles,
|
|
2886
2870
|
FieldContainer: {
|
|
2887
2871
|
"margin-bottom": "var(--sl-spacing-large)",
|
|
@@ -2895,21 +2879,21 @@ const vanillaStyle$5 = `
|
|
|
2895
2879
|
}
|
|
2896
2880
|
`;
|
|
2897
2881
|
JSS.jss.setup(JSS.create());
|
|
2898
|
-
const sheet$
|
|
2899
|
-
const styleString$
|
|
2882
|
+
const sheet$8 = JSS.jss.createStyleSheet(style$8);
|
|
2883
|
+
const styleString$8 = sheet$8.toString();
|
|
2900
2884
|
function InputFieldView(props) {
|
|
2901
2885
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
2902
2886
|
const { states, content } = props;
|
|
2903
2887
|
const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
|
|
2904
|
-
return (index.h("div", { class: sheet$
|
|
2888
|
+
return (index.h("div", { class: sheet$8.classes.FieldContainer, part: "sqm-base" },
|
|
2905
2889
|
index.h("style", { type: "text/css" },
|
|
2906
2890
|
vanillaStyle$5,
|
|
2907
|
-
styleString$
|
|
2891
|
+
styleString$8),
|
|
2908
2892
|
index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", name: `/${content.fieldName}`, type: content.fieldType, label: content.fieldLabel }, (!content.fieldOptional ? { required: true } : []), { disabled: ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.disabled) }, (((_e = (_d = states.registrationFormState) === null || _d === void 0 ? void 0 : _d.initialData) === null || _e === void 0 ? void 0 : _e[content.fieldName]) ? {
|
|
2909
2893
|
value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g[content.fieldName],
|
|
2910
2894
|
}
|
|
2911
2895
|
: {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.fieldName]) ? {
|
|
2912
|
-
class: sheet$
|
|
2896
|
+
class: sheet$8.classes.ErrorStyle,
|
|
2913
2897
|
helpText: global.intl.formatMessage({
|
|
2914
2898
|
id: `errorMessage-${content.fieldName}`,
|
|
2915
2899
|
defaultMessage: content.errorMessage || (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.fieldName]),
|
|
@@ -3004,7 +2988,7 @@ function ProgressBar({ stageCount, currentStage, }) {
|
|
|
3004
2988
|
return (index.h("div", { style: { display: "flex", columnGap: "-2px" } }, Array.from(Array(stageCount).keys()).map((stage) => (index.h(Progress, { active: currentStage === stage, completed: currentStage > stage, incomplete: currentStage < stage, stage: stage })))));
|
|
3005
2989
|
}
|
|
3006
2990
|
|
|
3007
|
-
const style$
|
|
2991
|
+
const style$9 = {
|
|
3008
2992
|
HostBlock: mixins.HostBlock,
|
|
3009
2993
|
Container: {
|
|
3010
2994
|
minWidth: "300px",
|
|
@@ -3355,8 +3339,8 @@ const style$a = {
|
|
|
3355
3339
|
},
|
|
3356
3340
|
};
|
|
3357
3341
|
// JSS config
|
|
3358
|
-
const sheet$
|
|
3359
|
-
const styleString$
|
|
3342
|
+
const sheet$9 = JSS.createStyleSheet(style$9);
|
|
3343
|
+
const styleString$9 = sheet$9.toString();
|
|
3360
3344
|
const stageList = ["chooseReward", "chooseAmount", "confirmation", "success"];
|
|
3361
3345
|
function RewardExchangeView(props) {
|
|
3362
3346
|
const { states, data, callbacks, refs } = props;
|
|
@@ -3379,7 +3363,7 @@ function RewardExchangeView(props) {
|
|
|
3379
3363
|
sourceUnit: item.sourceUnit,
|
|
3380
3364
|
})));
|
|
3381
3365
|
}
|
|
3382
|
-
return (index.h("sl-select", { style: { width: "auto" }, label: (_b = states === null || states === void 0 ? void 0 : states.content) === null || _b === void 0 ? void 0 : _b.text.selectText, class: sheet$
|
|
3366
|
+
return (index.h("sl-select", { style: { width: "auto" }, label: (_b = states === null || states === void 0 ? void 0 : states.content) === null || _b === void 0 ? void 0 : _b.text.selectText, class: sheet$9.classes.Select, value: states.selectedStep, "onSl-select": (e) => {
|
|
3383
3367
|
var _a, _b, _c, _d, _e;
|
|
3384
3368
|
return callbacks.setExchangeState({
|
|
3385
3369
|
amount: (_c = (_b = (_a = e.detail) === null || _a === void 0 ? void 0 : _a.item) === null || _b === void 0 ? void 0 : _b.value) === null || _c === void 0 ? void 0 : _c.sourceValue,
|
|
@@ -3387,7 +3371,7 @@ function RewardExchangeView(props) {
|
|
|
3387
3371
|
});
|
|
3388
3372
|
} }, (_c = item.steps) === null || _c === void 0 ? void 0 : _c.map((step) => {
|
|
3389
3373
|
var _a, _b;
|
|
3390
|
-
return (index.h("sl-menu-item", { value: step, disabled: !step.available, class: sheet$
|
|
3374
|
+
return (index.h("sl-menu-item", { value: step, disabled: !step.available, class: sheet$9.classes.SelectItem },
|
|
3391
3375
|
step.prettyDestinationValue,
|
|
3392
3376
|
index.h("br", null),
|
|
3393
3377
|
index.h("div", { class: "step-cost", slot: "suffix" },
|
|
@@ -3406,8 +3390,8 @@ function RewardExchangeView(props) {
|
|
|
3406
3390
|
var _a;
|
|
3407
3391
|
return [
|
|
3408
3392
|
index.h("div", { part: "choose-reward-container" },
|
|
3409
|
-
index.h("div", { class: sheet$
|
|
3410
|
-
states.loading || states.queryError ? (loading()) : (index.h("div", { class: sheet$
|
|
3393
|
+
index.h("div", { class: sheet$9.classes.Title }, states.content.text.rewardTitle),
|
|
3394
|
+
states.loading || states.queryError ? (loading()) : (index.h("div", { class: sheet$9.classes.Grid }, (_a = data.exchangeList) === null || _a === void 0 ? void 0 : _a.map((item) => {
|
|
3411
3395
|
var _a, _b, _c, _d, _e;
|
|
3412
3396
|
const style = {
|
|
3413
3397
|
boxShadow: item.key === (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.key)
|
|
@@ -3416,7 +3400,7 @@ function RewardExchangeView(props) {
|
|
|
3416
3400
|
borderRadius: "4px",
|
|
3417
3401
|
};
|
|
3418
3402
|
return (index.h("div", { key: item.key, style: style },
|
|
3419
|
-
index.h("sl-card", { exportparts: "base: exchange-card-container", class: sheet$
|
|
3403
|
+
index.h("sl-card", { exportparts: "base: exchange-card-container", class: sheet$9.classes.Card, style: {
|
|
3420
3404
|
cursor: item.unavailableReasonCode
|
|
3421
3405
|
? "not-allowed"
|
|
3422
3406
|
: "pointer",
|
|
@@ -3433,14 +3417,14 @@ function RewardExchangeView(props) {
|
|
|
3433
3417
|
? "rgba(0, 0, 0, 0.05)"
|
|
3434
3418
|
: "rgba(0, 0, 0, 0)",
|
|
3435
3419
|
} },
|
|
3436
|
-
index.h("div", { class: sheet$
|
|
3420
|
+
index.h("div", { class: sheet$9.classes.Image, style: {
|
|
3437
3421
|
opacity: item.unavailableReasonCode ? "0.5" : "1",
|
|
3438
3422
|
} },
|
|
3439
3423
|
index.h("img", { class: item.unavailableReasonCode
|
|
3440
3424
|
? "image subdued"
|
|
3441
3425
|
: "image", src: (item === null || item === void 0 ? void 0 : item.imageUrl) ||
|
|
3442
3426
|
index.getAssetPath("./assets/Reward-image.png") })),
|
|
3443
|
-
index.h("div", { class: sheet$
|
|
3427
|
+
index.h("div", { class: sheet$9.classes.TextArea, style: {
|
|
3444
3428
|
opacity: item.unavailableReasonCode ? "0.5" : "1",
|
|
3445
3429
|
} },
|
|
3446
3430
|
index.h("div", { class: "title", style: {
|
|
@@ -3473,7 +3457,7 @@ function RewardExchangeView(props) {
|
|
|
3473
3457
|
item.prettySourceMinValue,
|
|
3474
3458
|
}))))))));
|
|
3475
3459
|
}))),
|
|
3476
|
-
index.h("div", { class: sheet$
|
|
3460
|
+
index.h("div", { class: sheet$9.classes.Button },
|
|
3477
3461
|
index.h("sl-button", { exportparts: "base: primarybutton-base", class: "continue right", size: "large", onClick: () => callbacks.setStage("chooseAmount"), loading: states.loading, disabled: !states.selectedItem }, states.content.text.continueText))),
|
|
3478
3462
|
];
|
|
3479
3463
|
}
|
|
@@ -3484,7 +3468,7 @@ function RewardExchangeView(props) {
|
|
|
3484
3468
|
? false
|
|
3485
3469
|
: input && !states.amount;
|
|
3486
3470
|
return (index.h("div", null,
|
|
3487
|
-
index.h("div", { class: sheet$
|
|
3471
|
+
index.h("div", { class: sheet$9.classes.ChooseAmount, part: "choose-amount-container" },
|
|
3488
3472
|
index.h("div", { class: "wrapper" },
|
|
3489
3473
|
index.h("img", { class: "image", src: (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.imageUrl) ||
|
|
3490
3474
|
index.getAssetPath("./assets/Reward-image.png") }),
|
|
@@ -3493,7 +3477,7 @@ function RewardExchangeView(props) {
|
|
|
3493
3477
|
((_c = states.selectedItem) === null || _c === void 0 ? void 0 : _c.ruleType) === "FIXED_GLOBAL_REWARD" ? (index.h("div", { class: "points" }, input)) : (index.h("div", { class: "description" }, selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.description)),
|
|
3494
3478
|
((_d = states.selectedItem) === null || _d === void 0 ? void 0 : _d.ruleType) === "FIXED_GLOBAL_REWARD" ? (index.h("div", { class: "description" }, selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.description)) : (index.h("div", null, input)),
|
|
3495
3479
|
index.h("div", { class: "space" }))),
|
|
3496
|
-
index.h("div", { class: sheet$
|
|
3480
|
+
index.h("div", { class: sheet$9.classes.Button },
|
|
3497
3481
|
index.h("sl-button", { exportparts: "base: secondarybutton-base", class: "cancel", size: "large", type: "text", onClick: () => callbacks.resetState() }, states.content.text.cancelText),
|
|
3498
3482
|
index.h("sl-button", { exportparts: "base: primarybutton-base", class: "continue", size: "large", onClick: () => callbacks.setStage("confirmation"), disabled: isDisabled }, states.content.text.continueToConfirmationText)))));
|
|
3499
3483
|
}
|
|
@@ -3501,8 +3485,8 @@ function RewardExchangeView(props) {
|
|
|
3501
3485
|
const cost = (selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettySourceValue) || selectedItem.prettySourceValue;
|
|
3502
3486
|
const amount = selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettyDestinationValue;
|
|
3503
3487
|
return (index.h("div", null,
|
|
3504
|
-
index.h("div", { class: sheet$
|
|
3505
|
-
index.h("div", { class: sheet$
|
|
3488
|
+
index.h("div", { class: sheet$9.classes.Confirmation, part: "confirmation-container" },
|
|
3489
|
+
index.h("div", { class: sheet$9.classes.Title }, states.content.text.redeemTitle),
|
|
3506
3490
|
index.h("div", { class: "wrapper" },
|
|
3507
3491
|
index.h("div", { class: "field" }, states.content.text.rewardNameTitle),
|
|
3508
3492
|
index.h("div", { class: "reward-item-container" },
|
|
@@ -3517,13 +3501,13 @@ function RewardExchangeView(props) {
|
|
|
3517
3501
|
index.h("div", { class: "wrapper top-border padding" },
|
|
3518
3502
|
index.h("div", { class: "field" }, states.content.text.costTitle),
|
|
3519
3503
|
index.h("div", { class: "value" }, cost)),
|
|
3520
|
-
index.h("div", { class: sheet$
|
|
3504
|
+
index.h("div", { class: sheet$9.classes.Button },
|
|
3521
3505
|
index.h("sl-button", { class: "cancel", type: "text", size: "large", onClick: () => callbacks.setStage("chooseAmount") }, states.content.text.backText),
|
|
3522
3506
|
index.h("sl-button", { class: "continue", size: "large", loading: states.loading, onClick: callbacks.exchangeReward }, states.content.text.redeemText)))));
|
|
3523
3507
|
}
|
|
3524
3508
|
function success() {
|
|
3525
3509
|
var _a, _b, _c, _d, _e, _f;
|
|
3526
|
-
return (index.h("div", { class: sheet$
|
|
3510
|
+
return (index.h("div", { class: sheet$9.classes.Success, part: "success-container" },
|
|
3527
3511
|
index.h(Gift$1, null),
|
|
3528
3512
|
index.h(Confetti, null),
|
|
3529
3513
|
index.h("div", { class: "title" }, (_a = states.content.text) === null || _a === void 0 ? void 0 : _a.rewardRedeemedText),
|
|
@@ -3538,7 +3522,7 @@ function RewardExchangeView(props) {
|
|
|
3538
3522
|
(data === null || data === void 0 ? void 0 : data.fuelTankCode) && (index.h("div", { class: "promo" },
|
|
3539
3523
|
states.content.text.promoCode,
|
|
3540
3524
|
index.h(copyTextView.CopyTextView, { copyString: data.fuelTankCode, tooltiptext: (_f = states === null || states === void 0 ? void 0 : states.content) === null || _f === void 0 ? void 0 : _f.text.tooltipText, open: states.open, onClick: callbacks.copyFuelTankCode }))),
|
|
3541
|
-
index.h("div", { class: sheet$
|
|
3525
|
+
index.h("div", { class: sheet$9.classes.Button },
|
|
3542
3526
|
index.h("sl-button", { class: "continue center", type: "primary", size: "large", onClick: () => callbacks.resetState(true) }, states.content.text.doneText))));
|
|
3543
3527
|
}
|
|
3544
3528
|
const stages = {
|
|
@@ -3550,7 +3534,7 @@ function RewardExchangeView(props) {
|
|
|
3550
3534
|
const currentStage = stages[states.redeemStage];
|
|
3551
3535
|
function stageMap() {
|
|
3552
3536
|
const stageNumber = stageList.indexOf(states.redeemStage);
|
|
3553
|
-
return (index.h("div", { class: sheet$
|
|
3537
|
+
return (index.h("div", { class: sheet$9.classes.ProgressBar },
|
|
3554
3538
|
index.h("div", { class: "text-area" }, Object.keys(stageProgressList).map((stage) => {
|
|
3555
3539
|
if (stageList.indexOf(stage) <= stageNumber) {
|
|
3556
3540
|
return index.h("span", { class: "text" }, stageProgressList[stage]);
|
|
@@ -3562,10 +3546,10 @@ function RewardExchangeView(props) {
|
|
|
3562
3546
|
index.h(ProgressBar, { stageCount: 3, currentStage: stageNumber })));
|
|
3563
3547
|
}
|
|
3564
3548
|
function loading() {
|
|
3565
|
-
return (index.h("div", { class: sheet$
|
|
3549
|
+
return (index.h("div", { class: sheet$9.classes.Grid, part: "loading-container" }, [...Array(states.content.text.skeletonCardNum)].map(() => {
|
|
3566
3550
|
return (index.h("div", null,
|
|
3567
|
-
index.h("sl-card", { class: sheet$
|
|
3568
|
-
index.h("div", { class: sheet$
|
|
3551
|
+
index.h("sl-card", { class: sheet$9.classes.Card },
|
|
3552
|
+
index.h("div", { class: sheet$9.classes.CardLayout },
|
|
3569
3553
|
index.h("div", null,
|
|
3570
3554
|
index.h("sl-skeleton", { style: {
|
|
3571
3555
|
width: "100px",
|
|
@@ -3597,12 +3581,12 @@ function RewardExchangeView(props) {
|
|
|
3597
3581
|
if (!(refs === null || refs === void 0 ? void 0 : refs.canvasRef))
|
|
3598
3582
|
return;
|
|
3599
3583
|
refs.canvasRef.current = canvas;
|
|
3600
|
-
}, id: "my-canvas", class: sheet$
|
|
3584
|
+
}, id: "my-canvas", class: sheet$9.classes.Confetti }));
|
|
3601
3585
|
}
|
|
3602
3586
|
if (states.noExchangeOptions)
|
|
3603
3587
|
return states.content.text.empty;
|
|
3604
|
-
return (index.h("div", { class: sheet$
|
|
3605
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
3588
|
+
return (index.h("div", { class: sheet$9.classes.Container, part: "sqm-base" },
|
|
3589
|
+
index.h("style", { type: "text/css" }, styleString$9),
|
|
3606
3590
|
index.h("div", null,
|
|
3607
3591
|
stageMap(),
|
|
3608
3592
|
states.exchangeError && errorMessage(),
|
|
@@ -4018,7 +4002,7 @@ function CardFeedView(props, children) {
|
|
|
4018
4002
|
index.h("div", { class: sheet.classes.Container, part: "sqm-base" }, children)));
|
|
4019
4003
|
}
|
|
4020
4004
|
|
|
4021
|
-
const style$
|
|
4005
|
+
const style$a = {
|
|
4022
4006
|
HostBlock: mixins.HostBlock,
|
|
4023
4007
|
couponCodeLabel: {
|
|
4024
4008
|
margin: "var(--sl-spacing-x-small) 0",
|
|
@@ -4032,15 +4016,15 @@ const vanillaStyle$6 = `
|
|
|
4032
4016
|
width: 100%;
|
|
4033
4017
|
}
|
|
4034
4018
|
`;
|
|
4035
|
-
const sheet$
|
|
4036
|
-
const styleString$
|
|
4019
|
+
const sheet$a = JSS.createStyleSheet(style$a);
|
|
4020
|
+
const styleString$a = sheet$a.toString();
|
|
4037
4021
|
function CouponCodeView(props) {
|
|
4038
4022
|
const error = !props.loading && props.error;
|
|
4039
4023
|
return (index.h("div", null,
|
|
4040
4024
|
index.h("style", { type: "text/css" },
|
|
4041
|
-
styleString$
|
|
4025
|
+
styleString$a,
|
|
4042
4026
|
vanillaStyle$6),
|
|
4043
|
-
index.h("p", { class: sheet$
|
|
4027
|
+
index.h("p", { class: sheet$a.classes.couponCodeLabel, style: { textAlign: props.textAlign } }, props.couponCodeLabel),
|
|
4044
4028
|
error ? (index.h("sqm-form-message", { type: props.errorType, exportparts: "erroralert-icon" },
|
|
4045
4029
|
index.h("div", { part: "erroralert-text" }, props.errorText))) : (index.h(copyTextView.CopyTextView, Object.assign({}, props)))));
|
|
4046
4030
|
}
|