@saasquatch/mint-components 1.15.0-4 → 1.15.0-5
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/{GenericTableView-a9f4ba75.js → GenericTableView-f0e9c531.js} +2 -2
- package/dist/cjs/{ShadowViewAddon-9e7916d8.js → ShadowViewAddon-3f11bc68.js} +166 -166
- package/dist/cjs/{global-0cf6d295.js → global-261393c6.js} +55 -10
- 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 +7 -44
- package/dist/cjs/{sqm-base-registration-form-view-8a2c8763.js → sqm-base-registration-form-view-1b2440c3.js} +1 -1
- package/dist/cjs/sqm-big-stat_41.cjs.entry.js +6 -5
- package/dist/cjs/sqm-email-verification.cjs.entry.js +2 -2
- package/dist/cjs/sqm-empty_4.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-invoice-table-view-dbf7a907.js → sqm-invoice-table-view-8b950046.js} +1 -1
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +2 -2
- package/dist/cjs/sqm-pagination_3.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-portal-email-verification-view-ab0fb983.js → sqm-portal-email-verification-view-8d5b23f3.js} +2 -2
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-portal-forgot-password-view-78f19ef9.js → sqm-portal-forgot-password-view-b986086e.js} +1 -1
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +2 -2
- package/dist/cjs/sqm-portal-google-login.cjs.entry.js +2 -2
- package/dist/cjs/sqm-portal-google-registration-form.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-portal-login-view-761a4d8e.js → sqm-portal-login-view-84e99287.js} +1 -1
- package/dist/cjs/{sqm-portal-profile-view-e3026b53.js → sqm-portal-profile-view-fcb3ea3f.js} +2 -2
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-portal-registration-form-view-637a4bf4.js → sqm-portal-registration-form-view-4377d849.js} +1 -1
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-reset-password-view-fe602822.js → sqm-portal-reset-password-view-52fc50fe.js} +1 -1
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-verify-email-view-7b678f34.js → sqm-portal-verify-email-view-4f837226.js} +1 -1
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-qr-code-view-15dfc0b6.js → sqm-qr-code-view-3da9ed28.js} +2 -7
- package/dist/cjs/sqm-qr-code.cjs.entry.js +1 -1
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +3 -5
- package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +1 -1
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +4 -4
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +15 -15
- package/dist/cjs/{sqm-text-span-view-0aa82125.js → sqm-text-span-view-56e48a78.js} +6 -6
- package/dist/cjs/sqm-text-span.cjs.entry.js +1 -1
- package/dist/collection/components/sqm-edit-profile/sqm-edit-profile-view.js +1 -1
- package/dist/collection/components/sqm-form-message/FormMessage.stories.js +1 -1
- package/dist/collection/components/sqm-hero-image/sqm-hero-image-view.js +1 -1
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +54 -54
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +25 -1
- package/dist/collection/components/sqm-leaderboard-rank/sqm-leaderboard-rank.css +2 -2
- package/dist/collection/components/sqm-qr-code/sqm-qr-code-view.js +2 -7
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +0 -2
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.js +2 -2
- package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +1 -1
- package/dist/collection/components/sqm-text-span/sqm-text-span-view.js +6 -6
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +1 -12
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +0 -15
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +1 -11
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +1 -2
- package/dist/collection/global/mixins.js +2 -2
- package/dist/collection/global/styles.js +55 -10
- package/dist/collection/global/styles.ts +55 -10
- package/dist/collection/tables/GenericTableView.js +2 -2
- package/dist/esm/{GenericTableView-7b9087af.js → GenericTableView-e7addb2b.js} +2 -2
- package/dist/esm/{ShadowViewAddon-e350d540.js → ShadowViewAddon-f5791215.js} +166 -166
- package/dist/esm/{global-1d207c9e.js → global-7b65dcb8.js} +55 -10
- 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 +7 -44
- package/dist/esm/{sqm-base-registration-form-view-593d4ac3.js → sqm-base-registration-form-view-31f1cb87.js} +1 -1
- package/dist/esm/sqm-big-stat_41.entry.js +6 -5
- package/dist/esm/sqm-email-verification.entry.js +2 -2
- package/dist/esm/sqm-empty_4.entry.js +1 -1
- package/dist/esm/{sqm-invoice-table-view-e0c9772a.js → sqm-invoice-table-view-0f0a7386.js} +1 -1
- package/dist/esm/sqm-leaderboard-rank.entry.js +2 -2
- package/dist/esm/sqm-pagination_3.entry.js +1 -1
- package/dist/esm/{sqm-portal-email-verification-view-6c8bad0b.js → sqm-portal-email-verification-view-3bd4f1d9.js} +2 -2
- package/dist/esm/sqm-portal-email-verification.entry.js +3 -3
- package/dist/esm/{sqm-portal-forgot-password-view-3d3182f1.js → sqm-portal-forgot-password-view-50444a7c.js} +1 -1
- package/dist/esm/sqm-portal-forgot-password.entry.js +2 -2
- package/dist/esm/sqm-portal-google-login.entry.js +2 -2
- package/dist/esm/sqm-portal-google-registration-form.entry.js +3 -3
- package/dist/esm/{sqm-portal-login-view-7e49609a.js → sqm-portal-login-view-37c85d04.js} +1 -1
- package/dist/esm/{sqm-portal-profile-view-cbdeec1f.js → sqm-portal-profile-view-3a751a15.js} +2 -2
- package/dist/esm/sqm-portal-profile.entry.js +3 -3
- package/dist/esm/{sqm-portal-registration-form-view-3c1f6000.js → sqm-portal-registration-form-view-21d57492.js} +1 -1
- package/dist/esm/sqm-portal-registration-form.entry.js +2 -2
- package/dist/esm/{sqm-portal-reset-password-view-54a8651f.js → sqm-portal-reset-password-view-b000ffc5.js} +1 -1
- package/dist/esm/sqm-portal-reset-password.entry.js +2 -2
- package/dist/esm/{sqm-portal-verify-email-view-b12cb894.js → sqm-portal-verify-email-view-2983ba9b.js} +1 -1
- package/dist/esm/sqm-portal-verify-email.entry.js +2 -2
- package/dist/esm/{sqm-qr-code-view-f1d0763b.js → sqm-qr-code-view-10b8b4cb.js} +2 -7
- package/dist/esm/sqm-qr-code.entry.js +1 -1
- package/dist/esm/sqm-referral-table_11.entry.js +3 -5
- package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +1 -1
- package/dist/esm/sqm-rewards-table_9.entry.js +4 -4
- package/dist/esm/sqm-stencilbook.entry.js +15 -15
- package/dist/esm/{sqm-text-span-view-ca32495e.js → sqm-text-span-view-c577cc60.js} +6 -6
- package/dist/esm/sqm-text-span.entry.js +1 -1
- package/dist/esm-es5/{GenericTableView-7b9087af.js → GenericTableView-e7addb2b.js} +1 -1
- package/dist/esm-es5/ShadowViewAddon-f5791215.js +1 -0
- package/dist/esm-es5/{global-1d207c9e.js → global-7b65dcb8.js} +4 -4
- 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-base-registration-form-view-593d4ac3.js → sqm-base-registration-form-view-31f1cb87.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-e0c9772a.js → sqm-invoice-table-view-0f0a7386.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-6c8bad0b.js → sqm-portal-email-verification-view-3bd4f1d9.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-forgot-password-view-3d3182f1.js → sqm-portal-forgot-password-view-50444a7c.js} +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-google-login.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-google-registration-form.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-login-view-7e49609a.js → sqm-portal-login-view-37c85d04.js} +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-cbdeec1f.js → sqm-portal-profile-view-3a751a15.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-registration-form-view-3c1f6000.js → sqm-portal-registration-form-view-21d57492.js} +1 -1
- package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-reset-password-view-54a8651f.js → sqm-portal-reset-password-view-b000ffc5.js} +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-verify-email-view-b12cb894.js → sqm-portal-verify-email-view-2983ba9b.js} +1 -1
- package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm-es5/{sqm-qr-code-view-f1d0763b.js → sqm-qr-code-view-10b8b4cb.js} +1 -1
- package/dist/esm-es5/sqm-qr-code.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-text-span-view-c577cc60.js +1 -0
- package/dist/esm-es5/sqm-text-span.entry.js +1 -1
- package/dist/mint-components/global/styles.ts +55 -10
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/{p-9d3d4098.system.js → p-05255c61.system.js} +1 -1
- package/dist/mint-components/{p-2f101bae.entry.js → p-0559d880.entry.js} +1 -1
- package/dist/mint-components/{p-709e1799.system.entry.js → p-10ed0483.system.entry.js} +1 -1
- package/dist/mint-components/{p-c3bfb9c3.entry.js → p-15d20bf9.entry.js} +11 -11
- package/dist/mint-components/{p-7a9290ba.js → p-20245645.js} +1 -1
- package/dist/mint-components/{p-4794641c.system.js → p-217514ac.system.js} +1 -1
- package/dist/mint-components/{p-9b894557.entry.js → p-22f374db.entry.js} +1 -1
- package/dist/mint-components/{p-19bc3406.system.entry.js → p-2b462e4f.system.entry.js} +1 -1
- package/dist/mint-components/p-2e110002.system.js +1 -0
- package/dist/mint-components/{p-904ebcf6.system.entry.js → p-2e4129e0.system.entry.js} +1 -1
- package/dist/mint-components/{p-fbac722b.js → p-32d5cbc1.js} +1 -1
- package/dist/mint-components/{p-9bfd9bed.system.entry.js → p-345fd28e.system.entry.js} +1 -1
- package/dist/mint-components/p-3708a40b.system.js +1 -0
- package/dist/mint-components/{p-5bdafc7e.system.entry.js → p-383d8c5a.system.entry.js} +1 -1
- package/dist/mint-components/{p-aad32fb6.system.js → p-38de17fa.system.js} +1 -1
- package/dist/mint-components/{p-a2fde301.entry.js → p-3af1ec4c.entry.js} +1 -1
- package/dist/mint-components/p-49206a9c.entry.js +1 -0
- package/dist/mint-components/{p-3a31cc83.entry.js → p-4ae5ac59.entry.js} +1 -1
- package/dist/mint-components/{p-15d77d0b.entry.js → p-4b626c19.entry.js} +1 -1
- package/dist/mint-components/{p-90fc6774.system.entry.js → p-4b6f2eca.system.entry.js} +1 -1
- package/dist/mint-components/{p-e5d0375e.system.js → p-571e1427.system.js} +1 -1
- package/dist/mint-components/{p-441b60ac.system.entry.js → p-5c0576c0.system.entry.js} +1 -1
- package/dist/mint-components/{p-f87ae19e.entry.js → p-5c2d9a52.entry.js} +6 -6
- package/dist/mint-components/{p-492b70db.system.js → p-5dbe8b0a.system.js} +1 -1
- package/dist/mint-components/{p-9386ad84.system.entry.js → p-605c2904.system.entry.js} +1 -1
- package/dist/mint-components/{p-b33b7eb5.system.js → p-646cfbd5.system.js} +1 -1
- package/dist/mint-components/{p-91959fbe.js → p-69ac09d4.js} +1 -1
- package/dist/mint-components/{p-c8147def.js → p-7127a230.js} +1 -1
- package/dist/mint-components/{p-99ad7d56.system.js → p-71d7c2a0.system.js} +1 -1
- package/dist/mint-components/{p-0c78815e.system.entry.js → p-7cbec088.system.entry.js} +1 -1
- package/dist/mint-components/{p-dbcb5359.js → p-7e3a84bc.js} +1 -1
- package/dist/mint-components/{p-6df88590.system.entry.js → p-7e8bf5cb.system.entry.js} +1 -1
- package/dist/mint-components/{p-2da21ba4.entry.js → p-802b9f7e.entry.js} +1 -1
- package/dist/mint-components/{p-85671c3d.system.entry.js → p-8053366e.system.entry.js} +1 -1
- package/dist/mint-components/{p-d07f3090.entry.js → p-87c21535.entry.js} +1 -1
- package/dist/mint-components/p-893d7ab4.js +1 -0
- package/dist/mint-components/{p-837a0fdd.js → p-8c494bf1.js} +1 -1
- package/dist/mint-components/{p-9cb06082.system.entry.js → p-8f603753.system.entry.js} +1 -1
- package/dist/mint-components/{p-f71ae358.system.entry.js → p-97ccee03.system.entry.js} +1 -1
- package/dist/mint-components/{p-3ba1ab43.system.js → p-9dd8c93b.system.js} +1 -1
- package/dist/mint-components/p-a4eb4b81.entry.js +144 -0
- package/dist/mint-components/{p-53730ffe.entry.js → p-a81b507f.entry.js} +3 -3
- package/dist/mint-components/{p-d929b9d5.system.js → p-aa3c81d3.system.js} +1 -1
- package/dist/mint-components/{p-0d2d0b6d.entry.js → p-aaff68dc.entry.js} +1 -1
- package/dist/mint-components/{p-f0772618.system.entry.js → p-ac9f4085.system.entry.js} +1 -1
- package/dist/mint-components/p-acf93efa.js +394 -0
- package/dist/mint-components/{p-6d4a313f.js → p-ae473175.js} +14 -14
- package/dist/mint-components/{p-b75bb6e3.system.js → p-b5fb3826.system.js} +1 -1
- package/dist/mint-components/{p-0ebab63e.system.js → p-bd2a2546.system.js} +1 -1
- package/dist/mint-components/p-c07551c4.system.entry.js +1 -0
- package/dist/mint-components/{p-f1e72435.entry.js → p-c0b52238.entry.js} +2 -2
- package/dist/mint-components/p-c2ab40ae.system.entry.js +1 -0
- package/dist/mint-components/p-c53b8fe7.entry.js +13 -0
- package/dist/mint-components/{p-626e9e84.js → p-ccb5699b.js} +1 -1
- package/dist/mint-components/{p-7f80a9d7.entry.js → p-ccf8c9aa.entry.js} +1 -1
- package/dist/mint-components/{p-e41aac34.js → p-cde752fa.js} +1 -1
- package/dist/mint-components/{p-91ab3da1.js → p-dc52c36a.js} +1 -1
- package/dist/mint-components/{p-f7c99803.system.js → p-df89186f.system.js} +1 -1
- package/dist/mint-components/{p-f940190a.js → p-e145e4f8.js} +1 -1
- package/dist/mint-components/{p-5c28406d.system.entry.js → p-e21a1cb8.system.entry.js} +1 -1
- package/dist/mint-components/{p-b2bf509e.entry.js → p-e4fd9966.entry.js} +1 -1
- package/dist/mint-components/p-eab1c9f3.js +1 -0
- package/dist/mint-components/{p-9db71c84.entry.js → p-ebdf906a.entry.js} +1 -1
- package/dist/mint-components/p-ec7d2a85.entry.js +1 -0
- package/dist/mint-components/{p-3f6e0197.system.entry.js → p-f2228da3.system.entry.js} +1 -1
- package/dist/mint-components/p-f25f3d2a.system.entry.js +1 -0
- package/dist/mint-components/p-fa630b25.system.entry.js +1 -0
- package/dist/mint-components/{p-475245d1.system.js → p-fbfbbbd2.system.js} +1 -1
- package/dist/mint-components/{p-380bfde1.entry.js → p-fd0a013f.entry.js} +1 -1
- package/dist/types/components/sqm-leaderboard/sqm-leaderboard-view.d.ts +1 -0
- package/dist/types/components/sqm-leaderboard/sqm-leaderboard.d.ts +5 -0
- package/dist/types/components.d.ts +10 -0
- 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-e350d540.js +0 -1
- package/dist/esm-es5/sqm-text-span-view-ca32495e.js +0 -1
- package/dist/mint-components/p-091e7ca2.system.entry.js +0 -1
- package/dist/mint-components/p-1673fae9.system.entry.js +0 -1
- package/dist/mint-components/p-23379b5b.entry.js +0 -144
- package/dist/mint-components/p-2bcd406c.system.js +0 -1
- package/dist/mint-components/p-342bc70c.system.entry.js +0 -1
- package/dist/mint-components/p-6a97b51d.entry.js +0 -13
- package/dist/mint-components/p-716d0275.entry.js +0 -1
- package/dist/mint-components/p-b207beeb.entry.js +0 -1
- package/dist/mint-components/p-babcdb1f.system.entry.js +0 -1
- package/dist/mint-components/p-c9f1dde7.js +0 -1
- package/dist/mint-components/p-e07bc6c4.system.js +0 -1
- package/dist/mint-components/p-f3e2098c.js +0 -394
- package/dist/mint-components/p-f56bedd5.js +0 -1
|
@@ -2,7 +2,7 @@
|
|
|
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-261393c6.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');
|
|
@@ -12,7 +12,7 @@ const mixins = require('./mixins-f7e0377a.js');
|
|
|
12
12
|
const copyTextView = require('./copy-text-view-c85acaaa.js');
|
|
13
13
|
const useChildElements = require('./useChildElements-1b35d945.js');
|
|
14
14
|
const luxon = require('./luxon-2926d85f.js');
|
|
15
|
-
const sqmTextSpanView = require('./sqm-text-span-view-
|
|
15
|
+
const sqmTextSpanView = require('./sqm-text-span-view-56e48a78.js');
|
|
16
16
|
const index$1 = require('./index-8c6255f5.js');
|
|
17
17
|
const utilities = require('./utilities-78f5e169.js');
|
|
18
18
|
const sqmPortalContainerView = require('./sqm-portal-container-view-4f15143a.js');
|
|
@@ -92,72 +92,72 @@ function ShareButtonView(props, children) {
|
|
|
92
92
|
!props.hidetext && children)));
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
95
|
+
function LeaderboardView(props) {
|
|
96
|
+
var _a, _b, _c;
|
|
97
|
+
const { states, data, elements } = props;
|
|
98
|
+
const { styles } = states;
|
|
99
|
+
const style = {
|
|
100
|
+
Leaderboard: {
|
|
101
|
+
"& table": {
|
|
102
|
+
width: "100%",
|
|
103
|
+
borderCollapse: "collapse",
|
|
104
|
+
},
|
|
105
|
+
"& th": {
|
|
106
|
+
textAlign: "left",
|
|
107
|
+
padding: "var(--sl-spacing-medium)",
|
|
108
|
+
paddingTop: "0",
|
|
109
|
+
fontSize: "var(--sl-font-size-medium)",
|
|
110
|
+
fontWeight: "var(--sl-font-weight-semibold)",
|
|
111
|
+
},
|
|
112
|
+
"& tr:not(:first-child)": {
|
|
113
|
+
borderTop: "1px solid var(--sl-color-neutral-200)",
|
|
114
|
+
},
|
|
115
|
+
"& td": {
|
|
116
|
+
fontSize: "var(--sl-font-size-medium)",
|
|
117
|
+
fontWeight: "var(--sl-font-weight-normal)",
|
|
118
|
+
},
|
|
119
|
+
"& .ellipses": {
|
|
120
|
+
textAlign: "left",
|
|
121
|
+
padding: "0",
|
|
122
|
+
color: "var(--sqm-text)",
|
|
123
|
+
paddingLeft: "25%",
|
|
124
|
+
},
|
|
125
|
+
"& .highlight": {
|
|
126
|
+
background: styles.viewingUserhighlightColor || "var(--sl-color-primary-100)",
|
|
127
|
+
},
|
|
128
|
+
"& td, th": {
|
|
129
|
+
color: "var(--sqm-text)",
|
|
130
|
+
padding: "var(--sl-spacing-medium)",
|
|
131
|
+
},
|
|
132
|
+
"& .User": {
|
|
133
|
+
width: "100%",
|
|
134
|
+
},
|
|
135
|
+
"& .Score": {
|
|
136
|
+
width: "auto",
|
|
137
|
+
whiteSpace: "nowrap",
|
|
138
|
+
},
|
|
139
|
+
"& .Rank": {
|
|
140
|
+
whiteSpace: "nowrap",
|
|
141
|
+
},
|
|
142
|
+
"& .fullWidth": {
|
|
143
|
+
width: "100%",
|
|
144
|
+
},
|
|
140
145
|
},
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
const
|
|
144
|
-
const
|
|
145
|
-
const vanillaStyle = `
|
|
146
|
+
};
|
|
147
|
+
const sheet = JSS.createStyleSheet(style);
|
|
148
|
+
const styleString = sheet.toString();
|
|
149
|
+
const vanillaStyle = `
|
|
146
150
|
:host{
|
|
147
151
|
display: block;
|
|
148
152
|
}
|
|
149
153
|
`;
|
|
150
|
-
function LeaderboardView(props) {
|
|
151
|
-
var _a, _b, _c;
|
|
152
|
-
const { states, data, elements } = props;
|
|
153
|
-
const { styles } = states;
|
|
154
154
|
if (states.isEssentials) {
|
|
155
155
|
return (index.h("sqm-empty", { "empty-state-image": "https://res.cloudinary.com/saasquatch/image/upload/v1715360191/squatch-assets/Leaderboard_Not_Available.svg", "empty-state-header": "Leaderboards aren\u2019t available on your plan", "empty-state-text": "Contact {supportText} to upgrade your plan and start leveraging gamification in your program.", "support-text": "Support" }));
|
|
156
156
|
}
|
|
157
157
|
if (states.loading) {
|
|
158
|
-
return (index.h("div", { class: sheet
|
|
158
|
+
return (index.h("div", { class: sheet.classes.Leaderboard, style: { width: styles.width || "100%" } },
|
|
159
159
|
index.h("style", { type: "text/css" },
|
|
160
|
-
styleString
|
|
160
|
+
styleString,
|
|
161
161
|
vanillaStyle),
|
|
162
162
|
index.h("table", null, [...Array(10)].map(() => {
|
|
163
163
|
return (index.h("tr", null,
|
|
@@ -192,9 +192,9 @@ function LeaderboardView(props) {
|
|
|
192
192
|
}) + `${isViewingUsersRow && styles.hideNames ? viewingUserText : ""}`
|
|
193
193
|
: `${userRank} ${isViewingUsersRow && styles.hideNames ? viewingUserText : ""}`;
|
|
194
194
|
};
|
|
195
|
-
return (index.h("div", { class: sheet
|
|
195
|
+
return (index.h("div", { class: sheet.classes.Leaderboard, part: "sqm-base", style: { width: styles.width || "100%" } },
|
|
196
196
|
index.h("style", { type: "text/css" },
|
|
197
|
-
styleString
|
|
197
|
+
styleString,
|
|
198
198
|
vanillaStyle),
|
|
199
199
|
index.h("table", { part: "sqm-table" },
|
|
200
200
|
index.h("tr", null,
|
|
@@ -254,7 +254,7 @@ function BigStatView(props) {
|
|
|
254
254
|
index.h("div", { part: "stat-description", class: sheet.classes.Description }, props.labelSlot)));
|
|
255
255
|
}
|
|
256
256
|
|
|
257
|
-
const style$
|
|
257
|
+
const style$1 = {
|
|
258
258
|
HostBlock: mixins.HostBlock,
|
|
259
259
|
Frame: {
|
|
260
260
|
display: "flex",
|
|
@@ -288,17 +288,17 @@ const style$2 = {
|
|
|
288
288
|
},
|
|
289
289
|
},
|
|
290
290
|
};
|
|
291
|
-
const sheet$
|
|
292
|
-
const styleString$
|
|
291
|
+
const sheet$1 = JSS.createStyleSheet(style$1);
|
|
292
|
+
const styleString$1 = sheet$1.toString();
|
|
293
293
|
function PortalFrameView(props, children) {
|
|
294
294
|
const { data, notFullScreen } = props;
|
|
295
|
-
return (index.h("div", { style: { minHeight: notFullScreen ? "100%" : "100vh" }, class: sheet$
|
|
296
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
297
|
-
index.h("div", { class: sheet$
|
|
295
|
+
return (index.h("div", { style: { minHeight: notFullScreen ? "100%" : "100vh" }, class: sheet$1.classes.Frame, part: "sqm-base" },
|
|
296
|
+
index.h("style", { type: "text/css" }, styleString$1),
|
|
297
|
+
index.h("div", { class: sheet$1.classes.HeaderWrapper, part: "sqm-header" },
|
|
298
298
|
data.header,
|
|
299
299
|
index.h("slot", { name: "sqm-navigation-menu" })),
|
|
300
300
|
children,
|
|
301
|
-
index.h("div", { class: sheet$
|
|
301
|
+
index.h("div", { class: sheet$1.classes.FooterWrapper, part: "sqm-footer" }, data.footer)));
|
|
302
302
|
}
|
|
303
303
|
|
|
304
304
|
const EditProfileView = (props) => {
|
|
@@ -334,7 +334,7 @@ const EditProfileView = (props) => {
|
|
|
334
334
|
}, submit: true, exportparts: "base: primarybutton-base" }, text.updatetext),
|
|
335
335
|
index.h("sl-button", { onClick: () => {
|
|
336
336
|
callbacks.setShowEdit(false);
|
|
337
|
-
}, exportparts: "base:
|
|
337
|
+
}, exportparts: "base: secondarybutton-base" }, text.canceltext)))));
|
|
338
338
|
}
|
|
339
339
|
return (index.h("div", { class: `CardWrapper FormWrapper ${!states.showEdit && "ShowEdit"}`, part: "sqm-base" },
|
|
340
340
|
index.h("div", { class: "FormSection" },
|
|
@@ -1588,7 +1588,7 @@ function PortalChangePasswordView(props) {
|
|
|
1588
1588
|
index.h("style", { type: "text/css" }, styleString))));
|
|
1589
1589
|
}
|
|
1590
1590
|
|
|
1591
|
-
const style$
|
|
1591
|
+
const style$2 = {
|
|
1592
1592
|
Wrapper: { ...mixins.AuthWrapper, "max-width": "600px" },
|
|
1593
1593
|
Column: mixins.AuthColumn,
|
|
1594
1594
|
HostBlock: mixins.HostBlock,
|
|
@@ -1599,7 +1599,7 @@ const style$3 = {
|
|
|
1599
1599
|
ButtonsContainer: mixins.AuthButtonsContainer,
|
|
1600
1600
|
ErrorStyle: mixins.ErrorStyles,
|
|
1601
1601
|
};
|
|
1602
|
-
const vanillaStyle
|
|
1602
|
+
const vanillaStyle = `
|
|
1603
1603
|
sqm-portal-register {
|
|
1604
1604
|
margin: 0 auto;
|
|
1605
1605
|
width: 100%;
|
|
@@ -1614,20 +1614,20 @@ sqm-portal-register {
|
|
|
1614
1614
|
display: none;
|
|
1615
1615
|
}
|
|
1616
1616
|
`;
|
|
1617
|
-
const sheet$
|
|
1618
|
-
const styleString$
|
|
1617
|
+
const sheet$2 = JSS.createStyleSheet(style$2);
|
|
1618
|
+
const styleString$2 = sheet$2.toString();
|
|
1619
1619
|
function PortalRegisterView(props) {
|
|
1620
1620
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
1621
1621
|
const { states, refs, callbacks, content } = props;
|
|
1622
1622
|
if (states.error) {
|
|
1623
1623
|
window.scrollTo({ top: 0, left: 0, behavior: "smooth" });
|
|
1624
1624
|
}
|
|
1625
|
-
return (index.h("div", { class: sheet$
|
|
1625
|
+
return (index.h("div", { class: sheet$2.classes.Wrapper, part: "sqm-base" },
|
|
1626
1626
|
index.h("style", { type: "text/css" },
|
|
1627
|
-
vanillaStyle
|
|
1628
|
-
styleString$
|
|
1627
|
+
vanillaStyle,
|
|
1628
|
+
styleString$2),
|
|
1629
1629
|
index.h(sqmTextSpanView.TextSpanView, { type: "h3" }, content.pageLabel),
|
|
1630
|
-
index.h("sl-form", { class: sheet$
|
|
1630
|
+
index.h("sl-form", { class: sheet$2.classes.Column, "onSl-submit": callbacks.submit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
1631
1631
|
states.error && (index.h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
|
|
1632
1632
|
index.h("div", { part: "erroralert-text" }, props.states.error))),
|
|
1633
1633
|
content.formData,
|
|
@@ -1640,7 +1640,7 @@ function PortalRegisterView(props) {
|
|
|
1640
1640
|
return content.invalidEmailErrorMessage;
|
|
1641
1641
|
}
|
|
1642
1642
|
} }, (((_b = (_a = states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors) === null || _b === void 0 ? void 0 : _b.email) ? {
|
|
1643
|
-
class: sheet$
|
|
1643
|
+
class: sheet$2.classes.ErrorStyle,
|
|
1644
1644
|
helpText: ((_d = (_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.validationErrors) === null || _d === void 0 ? void 0 : _d.email) ||
|
|
1645
1645
|
content.requiredFieldErrorMessage,
|
|
1646
1646
|
}
|
|
@@ -1651,17 +1651,17 @@ function PortalRegisterView(props) {
|
|
|
1651
1651
|
value: (_j = (_h = states.registrationFormState) === null || _h === void 0 ? void 0 : _h.initialData) === null || _j === void 0 ? void 0 : _j.confirmPassword,
|
|
1652
1652
|
}
|
|
1653
1653
|
: {}), (((_l = (_k = states.registrationFormState) === null || _k === void 0 ? void 0 : _k.validationErrors) === null || _l === void 0 ? void 0 : _l.confirmPassword) ? {
|
|
1654
|
-
class: sheet$
|
|
1654
|
+
class: sheet$2.classes.ErrorStyle,
|
|
1655
1655
|
helpText: ((_o = (_m = states.registrationFormState) === null || _m === void 0 ? void 0 : _m.validationErrors) === null || _o === void 0 ? void 0 : _o.confirmPassword) || content.requiredFieldErrorMessage,
|
|
1656
1656
|
}
|
|
1657
1657
|
: [])))),
|
|
1658
1658
|
content.terms,
|
|
1659
|
-
index.h("div", { class: sheet$
|
|
1659
|
+
index.h("div", { class: sheet$2.classes.ButtonsContainer },
|
|
1660
1660
|
index.h("sl-button", { submit: true, loading: states.loading, exportparts: "base: primarybutton-base", type: "primary" }, content.submitLabel || "Register"),
|
|
1661
1661
|
content.secondaryButton))));
|
|
1662
1662
|
}
|
|
1663
1663
|
|
|
1664
|
-
const style$
|
|
1664
|
+
const style$3 = {
|
|
1665
1665
|
ErrorStyle: {
|
|
1666
1666
|
"&::part(control)": {
|
|
1667
1667
|
background: "var(--sl-color-danger-10)",
|
|
@@ -1684,7 +1684,7 @@ const style$4 = {
|
|
|
1684
1684
|
"margin-bottom": "var(--sl-spacing-large)",
|
|
1685
1685
|
},
|
|
1686
1686
|
};
|
|
1687
|
-
const vanillaStyle$
|
|
1687
|
+
const vanillaStyle$1 = `
|
|
1688
1688
|
:host {
|
|
1689
1689
|
margin: 0 auto;
|
|
1690
1690
|
width: 100%;
|
|
@@ -1700,15 +1700,15 @@ sl-checkbox::part(base){
|
|
|
1700
1700
|
}
|
|
1701
1701
|
`;
|
|
1702
1702
|
JSS.jss.setup(JSS.create());
|
|
1703
|
-
const sheet$
|
|
1704
|
-
const styleString$
|
|
1703
|
+
const sheet$3 = JSS.jss.createStyleSheet(style$3);
|
|
1704
|
+
const styleString$3 = sheet$3.toString();
|
|
1705
1705
|
function CheckboxFieldView(props) {
|
|
1706
1706
|
var _b, _c;
|
|
1707
1707
|
const { states, content, callbacks } = props;
|
|
1708
|
-
return (index.h("div", { class: sheet$
|
|
1708
|
+
return (index.h("div", { class: sheet$3.classes.FieldContainer, part: "sqm-base" },
|
|
1709
1709
|
index.h("style", { type: "text/css" },
|
|
1710
|
-
vanillaStyle$
|
|
1711
|
-
styleString$
|
|
1710
|
+
vanillaStyle$1,
|
|
1711
|
+
styleString$3),
|
|
1712
1712
|
index.h("sl-checkbox", Object.assign({ exportparts: "label: input-label, base: input-base", name: `/${content.checkboxName}`, checked: states.checked, "onSl-change": (e) => {
|
|
1713
1713
|
e.target.value = e.target.checked;
|
|
1714
1714
|
callbacks.setChecked(e.target.value);
|
|
@@ -1764,7 +1764,7 @@ function ChangeMarktingView(props) {
|
|
|
1764
1764
|
index.h("div", { part: "successalert-text" }, states.text.successMessage))))));
|
|
1765
1765
|
}
|
|
1766
1766
|
|
|
1767
|
-
const style$
|
|
1767
|
+
const style$4 = {
|
|
1768
1768
|
Description: {
|
|
1769
1769
|
"& input[type=checkbox]": {
|
|
1770
1770
|
display: "none",
|
|
@@ -1803,13 +1803,13 @@ const style$5 = {
|
|
|
1803
1803
|
},
|
|
1804
1804
|
},
|
|
1805
1805
|
};
|
|
1806
|
-
const sheet$
|
|
1807
|
-
const styleString$
|
|
1806
|
+
const sheet$4 = JSS.createStyleSheet(style$4);
|
|
1807
|
+
const styleString$4 = sheet$4.toString();
|
|
1808
1808
|
function Details(props) {
|
|
1809
1809
|
const rid = Math.random().toString(36).slice(2);
|
|
1810
1810
|
return (index.h("div", { style: { opacity: props.opacity } },
|
|
1811
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
1812
|
-
index.h("span", { class: sheet$
|
|
1811
|
+
index.h("style", { type: "text/css" }, styleString$4),
|
|
1812
|
+
index.h("span", { class: sheet$4.classes.Description },
|
|
1813
1813
|
index.h("input", { type: "checkbox", id: "details-" + rid }),
|
|
1814
1814
|
index.h("label", { class: "details", htmlFor: "details-" + rid },
|
|
1815
1815
|
index.h("sl-icon", { exportparts: "base: chevron-icon", name: "chevron-down" })),
|
|
@@ -1831,7 +1831,7 @@ const GreyGift = () => {
|
|
|
1831
1831
|
index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M14 2.70949C14 3.59565 12.6694 4.93746 12 5H9V16H7.00179V5H4.58792C3.21247 4.70182 2 3.64537 2 2.52072C2 1.42474 2.47603 0.556701 3.34184 0.182041C4.16921 -0.175986 5.12452 0.0203328 5.87976 0.544666C6.80676 1.18825 7.32679 2.3963 7.79856 3.49226C7.83996 3.58845 7.88099 3.68378 7.9219 3.77778C7.96173 3.68865 8.00186 3.59793 8.0425 3.50608C8.50995 2.44948 9.04359 1.24325 9.9404 0.59563C10.7332 0.0231438 11.741 -0.193157 12.6121 0.198945C13.5129 0.604397 14 1.53453 14 2.70949ZM10.6123 1.5C11.0928 1.15305 11.668 1.09012 12.1597 1.5C12.5879 1.85694 12.6108 2.02497 12.6658 2.42926L12.6755 2.5C12.6755 3.09851 12.1597 4 11.6439 4C11.2785 4 10.9914 3.99691 10.7224 3.99402C10.2319 3.98875 9.80131 3.98412 9.06496 4C9.20533 3.72786 9.31743 3.46669 9.42434 3.21761C9.71026 2.55143 9.95907 1.97176 10.6123 1.5ZM4.93861 1.5C4.70607 1.33855 4.17281 1.4106 3.95166 1.5063C3.76894 1.58537 3.49602 1.82658 3.49602 2.52072C3.49602 3.19524 4.58792 3.77778 4.58792 3.77778C4.58792 3.77778 5.45441 4 7.00179 4C6.47506 2.69451 5.7289 2.04867 4.93861 1.5Z", fill: "#828282" })));
|
|
1832
1832
|
};
|
|
1833
1833
|
|
|
1834
|
-
const style$
|
|
1834
|
+
const style$5 = {
|
|
1835
1835
|
ProgressBar: {
|
|
1836
1836
|
"& .progress-bar": {
|
|
1837
1837
|
height: "0",
|
|
@@ -1943,14 +1943,14 @@ const style$6 = {
|
|
|
1943
1943
|
},
|
|
1944
1944
|
},
|
|
1945
1945
|
};
|
|
1946
|
-
const sheet$
|
|
1947
|
-
const styleString$
|
|
1946
|
+
const sheet$5 = JSS.createStyleSheet(style$5, { classNamePrefix: "sqm-prog-bar" });
|
|
1947
|
+
const styleString$5 = sheet$5.toString();
|
|
1948
1948
|
function ProgressBarView(props) {
|
|
1949
1949
|
const { progress = 0, goal = 1, steps = false, progressBarUnit = "", repeatable = false, complete = false, expired = false, finite = 0, opacity = "1", } = props;
|
|
1950
1950
|
let aggregate = buildProgressBar(repeatable, steps, props);
|
|
1951
1951
|
const { columns, items } = aggregate;
|
|
1952
|
-
return (index.h("div", { class: sheet$
|
|
1953
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
1952
|
+
return (index.h("div", { class: sheet$5.classes.ProgressBar, "data-expired": expired, "data-complete": complete, "data-steps": steps, "data-done": goal <= progress, style: { opacity: opacity } },
|
|
1953
|
+
index.h("style", { type: "text/css" }, styleString$5),
|
|
1954
1954
|
index.h("div", { class: (!Boolean(finite) && progress >= 2 * goal) ||
|
|
1955
1955
|
(Boolean(finite) && progress > 2 * goal)
|
|
1956
1956
|
? "progress-bar repeatable-steps"
|
|
@@ -2241,7 +2241,7 @@ 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
|
-
const style$
|
|
2244
|
+
const style$6 = {
|
|
2245
2245
|
TaskCard: {
|
|
2246
2246
|
display: "inline-block",
|
|
2247
2247
|
width: "100%",
|
|
@@ -2395,8 +2395,8 @@ const style$7 = {
|
|
|
2395
2395
|
},
|
|
2396
2396
|
},
|
|
2397
2397
|
};
|
|
2398
|
-
const sheet$
|
|
2399
|
-
const styleString$
|
|
2398
|
+
const sheet$6 = JSS.createStyleSheet(style$6);
|
|
2399
|
+
const styleString$6 = sheet$6.toString();
|
|
2400
2400
|
function TaskCardView(props) {
|
|
2401
2401
|
var _a, _b;
|
|
2402
2402
|
const { callbacks, states, content } = props;
|
|
@@ -2432,11 +2432,11 @@ function TaskCardView(props) {
|
|
|
2432
2432
|
}
|
|
2433
2433
|
|
|
2434
2434
|
`;
|
|
2435
|
-
return (index.h("div", { class: sheet$
|
|
2435
|
+
return (index.h("div", { class: sheet$6.classes.TaskCard, part: "sqm-base" },
|
|
2436
2436
|
index.h("style", { type: "text/css" },
|
|
2437
|
-
styleString$
|
|
2437
|
+
styleString$6,
|
|
2438
2438
|
vanillaStyle),
|
|
2439
|
-
!states.loading && taskNotStarted && (index.h("div", { class: sheet$
|
|
2439
|
+
!states.loading && taskNotStarted && (index.h("div", { class: sheet$6.classes.NotStarted },
|
|
2440
2440
|
index.h("span", { class: "icon" },
|
|
2441
2441
|
index.h("sl-icon", { name: "info-circle-fill" })),
|
|
2442
2442
|
global.intl.formatMessage({
|
|
@@ -2447,7 +2447,7 @@ function TaskCardView(props) {
|
|
|
2447
2447
|
.setLocale(utils.luxonLocale(states.locale))
|
|
2448
2448
|
.toLocaleString(luxon.luxon.DateTime.DATETIME_MED),
|
|
2449
2449
|
}))),
|
|
2450
|
-
!states.loading && taskEnded && (index.h("div", { class: sheet$
|
|
2450
|
+
!states.loading && taskEnded && (index.h("div", { class: sheet$6.classes.Ended },
|
|
2451
2451
|
index.h("span", { class: "icon" },
|
|
2452
2452
|
index.h("sl-icon", { exportparts: "base: task-card-icon", name: "exclamation-triangle-fill" })),
|
|
2453
2453
|
global.intl.formatMessage({
|
|
@@ -2467,7 +2467,7 @@ function TaskCardView(props) {
|
|
|
2467
2467
|
? "main complete"
|
|
2468
2468
|
: "main" },
|
|
2469
2469
|
index.h("div", { class: "container", part: "sqm-card-container", "data-subdue": taskComplete || taskUnavailable },
|
|
2470
|
-
index.h("div", { class: sheet$
|
|
2470
|
+
index.h("div", { class: sheet$6.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
2471
|
showComplete && (index.h("span", { class: taskUnavailable ? "icon neutral" : "icon" }, taskComplete ? checkmark_filled$1 : checkmark_circle$1)),
|
|
2472
2472
|
index.h("span", { part: "sqm-value", class: "value" }, content.rewardAmount),
|
|
2473
2473
|
index.h("span", { part: "sqm-unit", class: "text" }, content.rewardUnit)))),
|
|
@@ -2483,7 +2483,7 @@ function TaskCardView(props) {
|
|
|
2483
2483
|
} }, content.cardTitle)),
|
|
2484
2484
|
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
2485
|
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$
|
|
2486
|
+
index.h("div", { class: sheet$6.classes.Footer, "data-subdue": taskComplete || taskUnavailable }, states.loading ? (index.h("sl-skeleton", { style: { width: "25%", marginLeft: "auto" } })) : (index.h("div", { style: { display: "contents" } },
|
|
2487
2487
|
index.h("span", { class: "text" },
|
|
2488
2488
|
content.repeatable && (index.h("div", null,
|
|
2489
2489
|
index.h("span", { class: repetitions > 0
|
|
@@ -2512,7 +2512,7 @@ function TaskCardView(props) {
|
|
|
2512
2512
|
.setLocale(utils.luxonLocale(states.locale))
|
|
2513
2513
|
.toLocaleString(luxon.luxon.DateTime.DATETIME_MED),
|
|
2514
2514
|
})))),
|
|
2515
|
-
content.hideButton ? ("") : (index.h("sl-button", { exportparts: "base:
|
|
2515
|
+
content.hideButton ? ("") : (index.h("sl-button", { exportparts: "base: primarybutton-base", id: "sl-button", class: taskUnavailable
|
|
2516
2516
|
? "action neutral"
|
|
2517
2517
|
: taskComplete
|
|
2518
2518
|
? "action disabled"
|
|
@@ -2554,7 +2554,7 @@ function PoweredByImg({ color = "#A6A6A6", width = 120, height = 16, }) {
|
|
|
2554
2554
|
index.h("path", { d: "M1661.53 157.54H1589.77C1590.42 169.37 1593.54 178.535 1599.13 185.035C1604.85 191.535 1612.65 194.785 1622.53 194.785C1628.51 194.785 1633.97 193.485 1638.91 190.885C1643.98 188.285 1647.95 184.645 1650.81 179.965L1657.24 186.4C1653.34 192.12 1648.4 196.475 1642.42 199.465C1636.57 202.455 1629.94 203.95 1622.53 203.95C1609.01 203.95 1598.35 199.465 1590.55 190.495C1582.88 181.525 1579.05 169.175 1579.05 153.445C1579.05 137.585 1582.82 125.17 1590.36 116.2C1597.9 107.1 1608.23 102.55 1621.36 102.55C1633.84 102.55 1643.66 106.84 1650.81 115.42C1657.96 124 1661.53 135.895 1661.53 151.105V157.54ZM1651.39 147.4C1651.39 136.48 1648.66 127.77 1643.2 121.27C1637.74 114.77 1630.46 111.52 1621.36 111.52C1611.74 111.52 1604.2 114.77 1598.74 121.27C1593.28 127.77 1590.29 137.065 1589.77 149.155H1651.39V147.4Z", fill: color })));
|
|
2555
2555
|
}
|
|
2556
2556
|
|
|
2557
|
-
const vanillaStyle$
|
|
2557
|
+
const vanillaStyle$2 = `
|
|
2558
2558
|
:host{
|
|
2559
2559
|
margin: 0 auto;
|
|
2560
2560
|
width: 100%;
|
|
@@ -2610,7 +2610,7 @@ function PortalFooterView(props) {
|
|
|
2610
2610
|
const styleString = sheet.toString();
|
|
2611
2611
|
return (index.h("div", { class: sheet.classes.Container, part: "sqm-base" },
|
|
2612
2612
|
index.h("style", { type: "text/css" },
|
|
2613
|
-
vanillaStyle$
|
|
2613
|
+
vanillaStyle$2,
|
|
2614
2614
|
styleString),
|
|
2615
2615
|
index.h("div", { class: sheet.classes.RowContainer },
|
|
2616
2616
|
props.faqLink && (index.h("a", { target: "_blank", href: props.faqLink }, props.faqText)),
|
|
@@ -2782,7 +2782,7 @@ function ReferralIframeView(props) {
|
|
|
2782
2782
|
index.h("iframe", { class: sheet.classes.IFrame, src: `${content.iframeSrc}?rsCode=${data.shareCode}` })));
|
|
2783
2783
|
}
|
|
2784
2784
|
|
|
2785
|
-
const style$
|
|
2785
|
+
const style$7 = {
|
|
2786
2786
|
ErrorStyle: mixins.ErrorStyles,
|
|
2787
2787
|
FieldsContainer: {
|
|
2788
2788
|
"& sl-input": {
|
|
@@ -2790,7 +2790,7 @@ const style$8 = {
|
|
|
2790
2790
|
},
|
|
2791
2791
|
},
|
|
2792
2792
|
};
|
|
2793
|
-
const vanillaStyle$
|
|
2793
|
+
const vanillaStyle$3 = `
|
|
2794
2794
|
:host {
|
|
2795
2795
|
margin: 0 auto;
|
|
2796
2796
|
width: 100%;
|
|
@@ -2802,21 +2802,21 @@ sl-input::part(label){
|
|
|
2802
2802
|
font-weight: var(--sl-font-weight-semibold);
|
|
2803
2803
|
}
|
|
2804
2804
|
`;
|
|
2805
|
-
const sheet$
|
|
2806
|
-
const styleString$
|
|
2805
|
+
const sheet$7 = JSS.createStyleSheet(style$7);
|
|
2806
|
+
const styleString$7 = sheet$7.toString();
|
|
2807
2807
|
function NameFieldsView(props) {
|
|
2808
2808
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
2809
2809
|
const { states } = props;
|
|
2810
2810
|
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$
|
|
2811
|
+
return (index.h("div", { class: sheet$7.classes.FieldsContainer },
|
|
2812
2812
|
index.h("style", { type: "text/css" },
|
|
2813
|
-
vanillaStyle$
|
|
2814
|
-
styleString$
|
|
2813
|
+
vanillaStyle$3,
|
|
2814
|
+
styleString$7),
|
|
2815
2815
|
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
2816
|
value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g.firstName,
|
|
2817
2817
|
}
|
|
2818
2818
|
: {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.firstName) ? {
|
|
2819
|
-
class: sheet$
|
|
2819
|
+
class: sheet$7.classes.ErrorStyle,
|
|
2820
2820
|
helpText: (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.firstName) || "Cannot be empty",
|
|
2821
2821
|
}
|
|
2822
2822
|
: []))),
|
|
@@ -2824,13 +2824,13 @@ function NameFieldsView(props) {
|
|
|
2824
2824
|
value: (_o = (_m = states.registrationFormState) === null || _m === void 0 ? void 0 : _m.initialData) === null || _o === void 0 ? void 0 : _o.lastName,
|
|
2825
2825
|
}
|
|
2826
2826
|
: {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.lastName) ? {
|
|
2827
|
-
class: sheet$
|
|
2827
|
+
class: sheet$7.classes.ErrorStyle,
|
|
2828
2828
|
helpText: (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.lastName) || "Cannot be empty",
|
|
2829
2829
|
}
|
|
2830
2830
|
: [])))));
|
|
2831
2831
|
}
|
|
2832
2832
|
|
|
2833
|
-
const style$
|
|
2833
|
+
const style$8 = {
|
|
2834
2834
|
ErrorStyle: {
|
|
2835
2835
|
"--sl-input-border-color": "var(--sl-color-danger-500)",
|
|
2836
2836
|
"--sl-input-background-color": "var(--sl-color-danger-10)",
|
|
@@ -2846,7 +2846,7 @@ const style$9 = {
|
|
|
2846
2846
|
"margin-bottom": "var(--sl-spacing-large)",
|
|
2847
2847
|
},
|
|
2848
2848
|
};
|
|
2849
|
-
const vanillaStyle$
|
|
2849
|
+
const vanillaStyle$4 = `
|
|
2850
2850
|
:host {
|
|
2851
2851
|
margin: 0 auto;
|
|
2852
2852
|
width: 100%;
|
|
@@ -2858,36 +2858,36 @@ sl-select::part(label){
|
|
|
2858
2858
|
}
|
|
2859
2859
|
`;
|
|
2860
2860
|
JSS.jss.setup(JSS.create());
|
|
2861
|
-
const sheet$
|
|
2862
|
-
const styleString$
|
|
2861
|
+
const sheet$8 = JSS.jss.createStyleSheet(style$8);
|
|
2862
|
+
const styleString$8 = sheet$8.toString();
|
|
2863
2863
|
function DropdownFieldView(props) {
|
|
2864
2864
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
2865
2865
|
const { states, content } = props;
|
|
2866
2866
|
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$
|
|
2867
|
+
return (index.h("div", { class: sheet$8.classes.FieldContainer, part: "sqm-base" },
|
|
2868
2868
|
index.h("style", { type: "text/css" },
|
|
2869
|
-
vanillaStyle$
|
|
2870
|
-
styleString$
|
|
2869
|
+
vanillaStyle$4,
|
|
2870
|
+
styleString$8),
|
|
2871
2871
|
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
2872
|
value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g[content.dropdownName],
|
|
2873
2873
|
}
|
|
2874
2874
|
: {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.dropdownName]) ? {
|
|
2875
|
-
class: sheet$
|
|
2875
|
+
class: sheet$8.classes.ErrorStyle,
|
|
2876
2876
|
}
|
|
2877
2877
|
: [])), content.selectOptions),
|
|
2878
|
-
(validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.dropdownName]) && (index.h("p", { class: sheet$
|
|
2878
|
+
(validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.dropdownName]) && (index.h("p", { class: sheet$8.classes.ErrorMessageStyle }, global.intl.formatMessage({
|
|
2879
2879
|
id: `errorMessage-${content.dropdownName}`,
|
|
2880
2880
|
defaultMessage: content.errorMessage,
|
|
2881
2881
|
})))));
|
|
2882
2882
|
}
|
|
2883
2883
|
|
|
2884
|
-
const style$
|
|
2884
|
+
const style$9 = {
|
|
2885
2885
|
ErrorStyle: mixins.ErrorStyles,
|
|
2886
2886
|
FieldContainer: {
|
|
2887
2887
|
"margin-bottom": "var(--sl-spacing-large)",
|
|
2888
2888
|
},
|
|
2889
2889
|
};
|
|
2890
|
-
const vanillaStyle$
|
|
2890
|
+
const vanillaStyle$5 = `
|
|
2891
2891
|
:host {
|
|
2892
2892
|
margin: 0 auto;
|
|
2893
2893
|
width: 100%;
|
|
@@ -2895,21 +2895,21 @@ const vanillaStyle$6 = `
|
|
|
2895
2895
|
}
|
|
2896
2896
|
`;
|
|
2897
2897
|
JSS.jss.setup(JSS.create());
|
|
2898
|
-
const sheet$
|
|
2899
|
-
const styleString$
|
|
2898
|
+
const sheet$9 = JSS.jss.createStyleSheet(style$9);
|
|
2899
|
+
const styleString$9 = sheet$9.toString();
|
|
2900
2900
|
function InputFieldView(props) {
|
|
2901
2901
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
2902
2902
|
const { states, content } = props;
|
|
2903
2903
|
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$
|
|
2904
|
+
return (index.h("div", { class: sheet$9.classes.FieldContainer, part: "sqm-base" },
|
|
2905
2905
|
index.h("style", { type: "text/css" },
|
|
2906
|
-
vanillaStyle$
|
|
2907
|
-
styleString$
|
|
2906
|
+
vanillaStyle$5,
|
|
2907
|
+
styleString$9),
|
|
2908
2908
|
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
2909
|
value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g[content.fieldName],
|
|
2910
2910
|
}
|
|
2911
2911
|
: {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.fieldName]) ? {
|
|
2912
|
-
class: sheet$
|
|
2912
|
+
class: sheet$9.classes.ErrorStyle,
|
|
2913
2913
|
helpText: global.intl.formatMessage({
|
|
2914
2914
|
id: `errorMessage-${content.fieldName}`,
|
|
2915
2915
|
defaultMessage: content.errorMessage || (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.fieldName]),
|
|
@@ -3004,7 +3004,7 @@ function ProgressBar({ stageCount, currentStage, }) {
|
|
|
3004
3004
|
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
3005
|
}
|
|
3006
3006
|
|
|
3007
|
-
const style$
|
|
3007
|
+
const style$a = {
|
|
3008
3008
|
HostBlock: mixins.HostBlock,
|
|
3009
3009
|
Container: {
|
|
3010
3010
|
minWidth: "300px",
|
|
@@ -3355,8 +3355,8 @@ const style$b = {
|
|
|
3355
3355
|
},
|
|
3356
3356
|
};
|
|
3357
3357
|
// JSS config
|
|
3358
|
-
const sheet$
|
|
3359
|
-
const styleString$
|
|
3358
|
+
const sheet$a = JSS.createStyleSheet(style$a);
|
|
3359
|
+
const styleString$a = sheet$a.toString();
|
|
3360
3360
|
const stageList = ["chooseReward", "chooseAmount", "confirmation", "success"];
|
|
3361
3361
|
function RewardExchangeView(props) {
|
|
3362
3362
|
const { states, data, callbacks, refs } = props;
|
|
@@ -3379,7 +3379,7 @@ function RewardExchangeView(props) {
|
|
|
3379
3379
|
sourceUnit: item.sourceUnit,
|
|
3380
3380
|
})));
|
|
3381
3381
|
}
|
|
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$
|
|
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$a.classes.Select, value: states.selectedStep, "onSl-select": (e) => {
|
|
3383
3383
|
var _a, _b, _c, _d, _e;
|
|
3384
3384
|
return callbacks.setExchangeState({
|
|
3385
3385
|
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 +3387,7 @@ function RewardExchangeView(props) {
|
|
|
3387
3387
|
});
|
|
3388
3388
|
} }, (_c = item.steps) === null || _c === void 0 ? void 0 : _c.map((step) => {
|
|
3389
3389
|
var _a, _b;
|
|
3390
|
-
return (index.h("sl-menu-item", { value: step, disabled: !step.available, class: sheet$
|
|
3390
|
+
return (index.h("sl-menu-item", { value: step, disabled: !step.available, class: sheet$a.classes.SelectItem },
|
|
3391
3391
|
step.prettyDestinationValue,
|
|
3392
3392
|
index.h("br", null),
|
|
3393
3393
|
index.h("div", { class: "step-cost", slot: "suffix" },
|
|
@@ -3406,8 +3406,8 @@ function RewardExchangeView(props) {
|
|
|
3406
3406
|
var _a;
|
|
3407
3407
|
return [
|
|
3408
3408
|
index.h("div", { part: "choose-reward-container" },
|
|
3409
|
-
index.h("div", { class: sheet$
|
|
3410
|
-
states.loading || states.queryError ? (loading()) : (index.h("div", { class: sheet$
|
|
3409
|
+
index.h("div", { class: sheet$a.classes.Title }, states.content.text.rewardTitle),
|
|
3410
|
+
states.loading || states.queryError ? (loading()) : (index.h("div", { class: sheet$a.classes.Grid }, (_a = data.exchangeList) === null || _a === void 0 ? void 0 : _a.map((item) => {
|
|
3411
3411
|
var _a, _b, _c, _d, _e;
|
|
3412
3412
|
const style = {
|
|
3413
3413
|
boxShadow: item.key === (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.key)
|
|
@@ -3416,7 +3416,7 @@ function RewardExchangeView(props) {
|
|
|
3416
3416
|
borderRadius: "4px",
|
|
3417
3417
|
};
|
|
3418
3418
|
return (index.h("div", { key: item.key, style: style },
|
|
3419
|
-
index.h("sl-card", { exportparts: "base: exchange-card-container", class: sheet$
|
|
3419
|
+
index.h("sl-card", { exportparts: "base: exchange-card-container", class: sheet$a.classes.Card, style: {
|
|
3420
3420
|
cursor: item.unavailableReasonCode
|
|
3421
3421
|
? "not-allowed"
|
|
3422
3422
|
: "pointer",
|
|
@@ -3433,14 +3433,14 @@ function RewardExchangeView(props) {
|
|
|
3433
3433
|
? "rgba(0, 0, 0, 0.05)"
|
|
3434
3434
|
: "rgba(0, 0, 0, 0)",
|
|
3435
3435
|
} },
|
|
3436
|
-
index.h("div", { class: sheet$
|
|
3436
|
+
index.h("div", { class: sheet$a.classes.Image, style: {
|
|
3437
3437
|
opacity: item.unavailableReasonCode ? "0.5" : "1",
|
|
3438
3438
|
} },
|
|
3439
3439
|
index.h("img", { class: item.unavailableReasonCode
|
|
3440
3440
|
? "image subdued"
|
|
3441
3441
|
: "image", src: (item === null || item === void 0 ? void 0 : item.imageUrl) ||
|
|
3442
3442
|
index.getAssetPath("./assets/Reward-image.png") })),
|
|
3443
|
-
index.h("div", { class: sheet$
|
|
3443
|
+
index.h("div", { class: sheet$a.classes.TextArea, style: {
|
|
3444
3444
|
opacity: item.unavailableReasonCode ? "0.5" : "1",
|
|
3445
3445
|
} },
|
|
3446
3446
|
index.h("div", { class: "title", style: {
|
|
@@ -3473,7 +3473,7 @@ function RewardExchangeView(props) {
|
|
|
3473
3473
|
item.prettySourceMinValue,
|
|
3474
3474
|
}))))))));
|
|
3475
3475
|
}))),
|
|
3476
|
-
index.h("div", { class: sheet$
|
|
3476
|
+
index.h("div", { class: sheet$a.classes.Button },
|
|
3477
3477
|
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
3478
|
];
|
|
3479
3479
|
}
|
|
@@ -3484,7 +3484,7 @@ function RewardExchangeView(props) {
|
|
|
3484
3484
|
? false
|
|
3485
3485
|
: input && !states.amount;
|
|
3486
3486
|
return (index.h("div", null,
|
|
3487
|
-
index.h("div", { class: sheet$
|
|
3487
|
+
index.h("div", { class: sheet$a.classes.ChooseAmount, part: "choose-amount-container" },
|
|
3488
3488
|
index.h("div", { class: "wrapper" },
|
|
3489
3489
|
index.h("img", { class: "image", src: (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.imageUrl) ||
|
|
3490
3490
|
index.getAssetPath("./assets/Reward-image.png") }),
|
|
@@ -3493,7 +3493,7 @@ function RewardExchangeView(props) {
|
|
|
3493
3493
|
((_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
3494
|
((_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
3495
|
index.h("div", { class: "space" }))),
|
|
3496
|
-
index.h("div", { class: sheet$
|
|
3496
|
+
index.h("div", { class: sheet$a.classes.Button },
|
|
3497
3497
|
index.h("sl-button", { exportparts: "base: secondarybutton-base", class: "cancel", size: "large", type: "text", onClick: () => callbacks.resetState() }, states.content.text.cancelText),
|
|
3498
3498
|
index.h("sl-button", { exportparts: "base: primarybutton-base", class: "continue", size: "large", onClick: () => callbacks.setStage("confirmation"), disabled: isDisabled }, states.content.text.continueToConfirmationText)))));
|
|
3499
3499
|
}
|
|
@@ -3501,8 +3501,8 @@ function RewardExchangeView(props) {
|
|
|
3501
3501
|
const cost = (selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettySourceValue) || selectedItem.prettySourceValue;
|
|
3502
3502
|
const amount = selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettyDestinationValue;
|
|
3503
3503
|
return (index.h("div", null,
|
|
3504
|
-
index.h("div", { class: sheet$
|
|
3505
|
-
index.h("div", { class: sheet$
|
|
3504
|
+
index.h("div", { class: sheet$a.classes.Confirmation, part: "confirmation-container" },
|
|
3505
|
+
index.h("div", { class: sheet$a.classes.Title }, states.content.text.redeemTitle),
|
|
3506
3506
|
index.h("div", { class: "wrapper" },
|
|
3507
3507
|
index.h("div", { class: "field" }, states.content.text.rewardNameTitle),
|
|
3508
3508
|
index.h("div", { class: "reward-item-container" },
|
|
@@ -3517,13 +3517,13 @@ function RewardExchangeView(props) {
|
|
|
3517
3517
|
index.h("div", { class: "wrapper top-border padding" },
|
|
3518
3518
|
index.h("div", { class: "field" }, states.content.text.costTitle),
|
|
3519
3519
|
index.h("div", { class: "value" }, cost)),
|
|
3520
|
-
index.h("div", { class: sheet$
|
|
3520
|
+
index.h("div", { class: sheet$a.classes.Button },
|
|
3521
3521
|
index.h("sl-button", { class: "cancel", type: "text", size: "large", onClick: () => callbacks.setStage("chooseAmount") }, states.content.text.backText),
|
|
3522
3522
|
index.h("sl-button", { class: "continue", size: "large", loading: states.loading, onClick: callbacks.exchangeReward }, states.content.text.redeemText)))));
|
|
3523
3523
|
}
|
|
3524
3524
|
function success() {
|
|
3525
3525
|
var _a, _b, _c, _d, _e, _f;
|
|
3526
|
-
return (index.h("div", { class: sheet$
|
|
3526
|
+
return (index.h("div", { class: sheet$a.classes.Success, part: "success-container" },
|
|
3527
3527
|
index.h(Gift$1, null),
|
|
3528
3528
|
index.h(Confetti, null),
|
|
3529
3529
|
index.h("div", { class: "title" }, (_a = states.content.text) === null || _a === void 0 ? void 0 : _a.rewardRedeemedText),
|
|
@@ -3538,7 +3538,7 @@ function RewardExchangeView(props) {
|
|
|
3538
3538
|
(data === null || data === void 0 ? void 0 : data.fuelTankCode) && (index.h("div", { class: "promo" },
|
|
3539
3539
|
states.content.text.promoCode,
|
|
3540
3540
|
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$
|
|
3541
|
+
index.h("div", { class: sheet$a.classes.Button },
|
|
3542
3542
|
index.h("sl-button", { class: "continue center", type: "primary", size: "large", onClick: () => callbacks.resetState(true) }, states.content.text.doneText))));
|
|
3543
3543
|
}
|
|
3544
3544
|
const stages = {
|
|
@@ -3550,7 +3550,7 @@ function RewardExchangeView(props) {
|
|
|
3550
3550
|
const currentStage = stages[states.redeemStage];
|
|
3551
3551
|
function stageMap() {
|
|
3552
3552
|
const stageNumber = stageList.indexOf(states.redeemStage);
|
|
3553
|
-
return (index.h("div", { class: sheet$
|
|
3553
|
+
return (index.h("div", { class: sheet$a.classes.ProgressBar },
|
|
3554
3554
|
index.h("div", { class: "text-area" }, Object.keys(stageProgressList).map((stage) => {
|
|
3555
3555
|
if (stageList.indexOf(stage) <= stageNumber) {
|
|
3556
3556
|
return index.h("span", { class: "text" }, stageProgressList[stage]);
|
|
@@ -3562,10 +3562,10 @@ function RewardExchangeView(props) {
|
|
|
3562
3562
|
index.h(ProgressBar, { stageCount: 3, currentStage: stageNumber })));
|
|
3563
3563
|
}
|
|
3564
3564
|
function loading() {
|
|
3565
|
-
return (index.h("div", { class: sheet$
|
|
3565
|
+
return (index.h("div", { class: sheet$a.classes.Grid, part: "loading-container" }, [...Array(states.content.text.skeletonCardNum)].map(() => {
|
|
3566
3566
|
return (index.h("div", null,
|
|
3567
|
-
index.h("sl-card", { class: sheet$
|
|
3568
|
-
index.h("div", { class: sheet$
|
|
3567
|
+
index.h("sl-card", { class: sheet$a.classes.Card },
|
|
3568
|
+
index.h("div", { class: sheet$a.classes.CardLayout },
|
|
3569
3569
|
index.h("div", null,
|
|
3570
3570
|
index.h("sl-skeleton", { style: {
|
|
3571
3571
|
width: "100px",
|
|
@@ -3597,12 +3597,12 @@ function RewardExchangeView(props) {
|
|
|
3597
3597
|
if (!(refs === null || refs === void 0 ? void 0 : refs.canvasRef))
|
|
3598
3598
|
return;
|
|
3599
3599
|
refs.canvasRef.current = canvas;
|
|
3600
|
-
}, id: "my-canvas", class: sheet$
|
|
3600
|
+
}, id: "my-canvas", class: sheet$a.classes.Confetti }));
|
|
3601
3601
|
}
|
|
3602
3602
|
if (states.noExchangeOptions)
|
|
3603
3603
|
return states.content.text.empty;
|
|
3604
|
-
return (index.h("div", { class: sheet$
|
|
3605
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
3604
|
+
return (index.h("div", { class: sheet$a.classes.Container, part: "sqm-base" },
|
|
3605
|
+
index.h("style", { type: "text/css" }, styleString$a),
|
|
3606
3606
|
index.h("div", null,
|
|
3607
3607
|
stageMap(),
|
|
3608
3608
|
states.exchangeError && errorMessage(),
|
|
@@ -4018,7 +4018,7 @@ function CardFeedView(props, children) {
|
|
|
4018
4018
|
index.h("div", { class: sheet.classes.Container, part: "sqm-base" }, children)));
|
|
4019
4019
|
}
|
|
4020
4020
|
|
|
4021
|
-
const style$
|
|
4021
|
+
const style$b = {
|
|
4022
4022
|
HostBlock: mixins.HostBlock,
|
|
4023
4023
|
couponCodeLabel: {
|
|
4024
4024
|
margin: "var(--sl-spacing-x-small) 0",
|
|
@@ -4026,21 +4026,21 @@ const style$c = {
|
|
|
4026
4026
|
fontSize: "var(--sl-font-size-small)",
|
|
4027
4027
|
},
|
|
4028
4028
|
};
|
|
4029
|
-
const vanillaStyle$
|
|
4029
|
+
const vanillaStyle$6 = `
|
|
4030
4030
|
:host{
|
|
4031
4031
|
display: block;
|
|
4032
4032
|
width: 100%;
|
|
4033
4033
|
}
|
|
4034
4034
|
`;
|
|
4035
|
-
const sheet$
|
|
4036
|
-
const styleString$
|
|
4035
|
+
const sheet$b = JSS.createStyleSheet(style$b);
|
|
4036
|
+
const styleString$b = sheet$b.toString();
|
|
4037
4037
|
function CouponCodeView(props) {
|
|
4038
4038
|
const error = !props.loading && props.error;
|
|
4039
4039
|
return (index.h("div", null,
|
|
4040
4040
|
index.h("style", { type: "text/css" },
|
|
4041
|
-
styleString$
|
|
4042
|
-
vanillaStyle$
|
|
4043
|
-
index.h("p", { class: sheet$
|
|
4041
|
+
styleString$b,
|
|
4042
|
+
vanillaStyle$6),
|
|
4043
|
+
index.h("p", { class: sheet$b.classes.couponCodeLabel, style: { textAlign: props.textAlign } }, props.couponCodeLabel),
|
|
4044
4044
|
error ? (index.h("sqm-form-message", { type: props.errorType, exportparts: "erroralert-icon" },
|
|
4045
4045
|
index.h("div", { part: "erroralert-text" }, props.errorText))) : (index.h(copyTextView.CopyTextView, Object.assign({}, props)))));
|
|
4046
4046
|
}
|