@saasquatch/mint-components 1.15.0-1 → 1.15.0-11
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-787391f7.js → ShadowViewAddon-9618130b.js} +304 -321
- package/dist/cjs/{copy-text-view-c85acaaa.js → copy-text-view-b2f47da0.js} +53 -38
- package/dist/cjs/{global-e31dc4f5.js → global-19fe8600.js} +70 -13
- 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 +188 -96
- package/dist/cjs/sqm-email-verification.cjs.entry.js +2 -2
- package/dist/cjs/sqm-empty_4.cjs.entry.js +50 -49
- package/dist/cjs/{sqm-invoice-table-view-16ac73d0.js → sqm-invoice-table-view-55066ec6.js} +1 -1
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +2 -2
- package/dist/cjs/sqm-pagination_3.cjs.entry.js +72 -55
- package/dist/cjs/{sqm-portal-email-verification-view-7ebb426a.js → sqm-portal-email-verification-view-9f7b86a9.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-33164798.js → sqm-portal-profile-view-e77710f0.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 +70 -18
- 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-big-stat/sqm-big-stat-view.js +1 -2
- package/dist/collection/components/sqm-card-feed/sqm-card-feed.js +1 -1
- package/dist/collection/components/sqm-coupon-code/sqm-coupon-code-view.js +1 -1
- package/dist/collection/components/sqm-coupon-code/sqm-coupon-code.js +170 -1
- package/dist/collection/components/sqm-divided-layout/sqm-divided-layout.js +2 -0
- package/dist/collection/components/sqm-edit-profile/sqm-edit-profile-view.js +1 -1
- package/dist/collection/components/sqm-empty/sqm-empty-view.js +1 -1
- package/dist/collection/components/sqm-form-message/FormMessage.stories.js +1 -1
- package/dist/collection/components/sqm-header-logo/sqm-header-logo.js +1 -0
- package/dist/collection/components/sqm-hero/sqm-hero.js +1 -0
- package/dist/collection/components/sqm-hero-image/sqm-hero-image-view.js +3 -3
- package/dist/collection/components/sqm-hero-image/sqm-hero-image.js +80 -0
- package/dist/collection/components/sqm-image/sqm-image.js +1 -0
- package/dist/collection/components/sqm-instant-access-registration/sqm-instant-access-registration.js +1 -0
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +54 -54
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +26 -1
- package/dist/collection/components/sqm-leaderboard-rank/sqm-leaderboard-rank.css +2 -2
- package/dist/collection/components/sqm-logout-current-user/sqm-logout-current-user.js +1 -1
- package/dist/collection/components/sqm-navigation-menu/sqm-navigation-menu.js +1 -0
- package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar.js +2 -0
- package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password.js +1 -0
- package/dist/collection/components/sqm-portal-footer/sqm-portal-footer.js +1 -0
- package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +1 -0
- package/dist/collection/components/sqm-portal-logout/sqm-portal-logout.js +1 -0
- package/dist/collection/components/sqm-portal-profile/sqm-portal-profile.js +1 -0
- package/dist/collection/components/sqm-portal-protected-route/sqm-portal-protected-route.js +1 -0
- package/dist/collection/components/sqm-program-explainer/sqm-program-explainer-view.js +1 -1
- package/dist/collection/components/sqm-program-explainer/sqm-program-explainer.js +2 -0
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step-view.js +9 -3
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step.js +77 -2
- package/dist/collection/components/sqm-program-menu/sqm-program-menu.js +1 -0
- package/dist/collection/components/sqm-qr-code/sqm-qr-code-view.js +2 -7
- package/dist/collection/components/sqm-qr-code/sqm-qr-code.js +1 -0
- package/dist/collection/components/sqm-referral-card/sqm-referral-card-view.js +32 -31
- package/dist/collection/components/sqm-referral-card/sqm-referral-card.js +78 -1
- package/dist/collection/components/sqm-referral-code/ReferralCode.stories.js +3 -0
- package/dist/collection/components/sqm-referral-code/sqm-referral-code.js +170 -1
- package/dist/collection/components/sqm-referral-codes/ReferralCodes.stories.js +6 -0
- package/dist/collection/components/sqm-referral-codes/sqm-referral-codes-view.js +46 -46
- package/dist/collection/components/sqm-referral-codes/sqm-referral-codes.js +29 -1
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +0 -2
- package/dist/collection/components/sqm-referral-table/sqm-referral-table.js +2 -0
- package/dist/collection/components/sqm-referred-registration/sqm-referred-registration.js +1 -0
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +2 -0
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.js +2 -2
- package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +1 -0
- package/dist/collection/components/sqm-route/sqm-route.js +1 -0
- package/dist/collection/components/sqm-router/sqm-router.js +2 -0
- package/dist/collection/components/sqm-scroll/sqm-scroll.js +1 -0
- package/dist/collection/components/sqm-share-button/sqm-share-button.js +2 -1
- package/dist/collection/components/sqm-share-code/sqm-share-code.js +170 -1
- package/dist/collection/components/sqm-share-link/ShareLink.stories.js +12 -0
- package/dist/collection/components/sqm-share-link/sqm-share-link.js +171 -3
- package/dist/collection/components/sqm-stat-container/sqm-stat-container.js +1 -1
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +2 -0
- package/dist/collection/components/sqm-tabs/sqm-tabs.js +2 -0
- 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 +147 -0
- package/dist/collection/components/sqm-task-card/useTaskCard.js +10 -0
- package/dist/collection/components/sqm-text/Text.stories.js +12 -0
- package/dist/collection/components/sqm-text/sqm-text.js +104 -48
- package/dist/collection/components/sqm-text-span/sqm-text-span-view.js +6 -6
- package/dist/collection/components/sqm-text-span/sqm-text-span.js +1 -0
- package/dist/collection/components/sqm-timeline/Timeline.stories.js +8 -1
- package/dist/collection/components/sqm-timeline/sqm-timeline-entry-view.js +45 -45
- package/dist/collection/components/sqm-timeline/sqm-timeline-entry.js +53 -0
- package/dist/collection/components/sqm-timeline/sqm-timeline.js +3 -1
- package/dist/collection/components/sqm-titled-section/sqm-titled-section.js +2 -0
- 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/components/views/copy-text-view.js +53 -38
- package/dist/collection/global/mixins.js +2 -2
- package/dist/collection/global/styles.js +70 -13
- package/dist/collection/global/styles.ts +70 -13
- package/dist/collection/tables/GenericTableView.js +2 -2
- package/dist/esm/{GenericTableView-7b9087af.js → GenericTableView-e7addb2b.js} +2 -2
- package/dist/esm/{ShadowViewAddon-cf230f50.js → ShadowViewAddon-8f268346.js} +304 -321
- package/dist/esm/{copy-text-view-782137ba.js → copy-text-view-0ac6e1d1.js} +53 -38
- package/dist/esm/{global-be1f9992.js → global-9d6f3bbe.js} +70 -13
- 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 +188 -96
- package/dist/esm/sqm-email-verification.entry.js +2 -2
- package/dist/esm/sqm-empty_4.entry.js +50 -49
- package/dist/esm/{sqm-invoice-table-view-2c726568.js → sqm-invoice-table-view-fda573e4.js} +1 -1
- package/dist/esm/sqm-leaderboard-rank.entry.js +2 -2
- package/dist/esm/sqm-pagination_3.entry.js +72 -55
- package/dist/esm/{sqm-portal-email-verification-view-35b4353b.js → sqm-portal-email-verification-view-14f1c22c.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-93003974.js → sqm-portal-profile-view-41116f1d.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 +70 -18
- 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-8f268346.js +1 -0
- package/dist/esm-es5/copy-text-view-0ac6e1d1.js +1 -0
- package/dist/esm-es5/{global-be1f9992.js → global-9d6f3bbe.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-2c726568.js → sqm-invoice-table-view-fda573e4.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-35b4353b.js → sqm-portal-email-verification-view-14f1c22c.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-93003974.js → sqm-portal-profile-view-41116f1d.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 +70 -13
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/{p-2f101bae.entry.js → p-0559d880.entry.js} +1 -1
- package/dist/mint-components/{p-21620f81.system.entry.js → p-12536a1f.system.entry.js} +1 -1
- package/dist/mint-components/{p-0d182dc1.system.js → p-17da19a2.system.js} +1 -1
- package/dist/mint-components/p-1ae6c418.entry.js +1 -0
- package/dist/mint-components/{p-10d17989.entry.js → p-1b7e6ee9.entry.js} +1 -1
- 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-bbcd824a.js → p-28b011a0.js} +1 -1
- package/dist/mint-components/{p-19bc3406.system.entry.js → p-2b462e4f.system.entry.js} +1 -1
- package/dist/mint-components/p-2c7ebd5b.js +1 -0
- package/dist/mint-components/p-2e110002.system.js +1 -0
- package/dist/mint-components/p-3109f2d2.js +394 -0
- package/dist/mint-components/{p-57eef0af.entry.js → p-320d3c31.entry.js} +6 -6
- package/dist/mint-components/p-32dbde60.system.js +1 -0
- package/dist/mint-components/{p-9bfd9bed.system.entry.js → p-345fd28e.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-63a75798.js → p-3c96533f.js} +1 -1
- package/dist/mint-components/{p-ef6381d4.entry.js → p-3f3ae257.entry.js} +2 -2
- package/dist/mint-components/p-4027c743.system.entry.js +1 -0
- package/dist/mint-components/{p-50c902ca.system.entry.js → p-45bb63c7.system.entry.js} +1 -1
- package/dist/mint-components/p-49206a9c.entry.js +1 -0
- package/dist/mint-components/{p-90fc6774.system.entry.js → p-4b6f2eca.system.entry.js} +1 -1
- package/dist/mint-components/{p-cd569259.system.js → p-4d91a1d6.system.js} +1 -1
- package/dist/mint-components/{p-a7746488.system.js → p-52858682.system.js} +1 -1
- package/dist/mint-components/{p-e5d0375e.system.js → p-571e1427.system.js} +1 -1
- 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-bdb7d451.system.js → p-642b0650.system.js} +1 -1
- package/dist/mint-components/{p-91959fbe.js → p-69ac09d4.js} +1 -1
- package/dist/mint-components/{p-3f067fd5.js → p-6d8f7c71.js} +1 -1
- package/dist/mint-components/p-70c41f97.system.js +1 -0
- package/dist/mint-components/{p-99ad7d56.system.js → p-71d7c2a0.system.js} +1 -1
- package/dist/mint-components/{p-65069b66.js → p-776260e8.js} +19 -19
- 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-7e3d84a3.entry.js +13 -0
- 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-8119a65e.system.entry.js +1 -0
- package/dist/mint-components/{p-cbbfac66.entry.js → p-82d04fd3.entry.js} +2 -2
- package/dist/mint-components/{p-5d7e308c.system.entry.js → p-868daffd.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-8ab87bd4.entry.js +144 -0
- package/dist/mint-components/{p-837a0fdd.js → p-8c494bf1.js} +1 -1
- package/dist/mint-components/p-8d9328dd.entry.js +33 -0
- package/dist/mint-components/{p-116baa69.entry.js → p-8e876dde.entry.js} +13 -13
- package/dist/mint-components/p-9abb9ab0.entry.js +13 -0
- package/dist/mint-components/{p-53730ffe.entry.js → p-a81b507f.entry.js} +3 -3
- 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-afbb3f73.entry.js +1 -0
- package/dist/mint-components/p-b12e132b.system.entry.js +1 -0
- package/dist/mint-components/{p-b287833c.system.entry.js → p-b385c9f0.system.entry.js} +1 -1
- 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-c571bc61.system.entry.js +1 -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-91ab3da1.js → p-dc52c36a.js} +1 -1
- package/dist/mint-components/p-dce51a2e.system.entry.js +1 -0
- 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-eab1c9f3.js +1 -0
- package/dist/mint-components/p-ee06426a.system.js +1 -0
- package/dist/mint-components/p-f219e877.system.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-f9da2c34.system.entry.js +1 -0
- package/dist/mint-components/{p-380bfde1.entry.js → p-fd0a013f.entry.js} +1 -1
- package/dist/types/components/sqm-card-feed/sqm-card-feed.d.ts +1 -1
- package/dist/types/components/sqm-coupon-code/sqm-coupon-code.d.ts +43 -0
- package/dist/types/components/sqm-divided-layout/sqm-divided-layout.d.ts +2 -0
- package/dist/types/components/sqm-header-logo/sqm-header-logo.d.ts +1 -0
- package/dist/types/components/sqm-hero/sqm-hero.d.ts +1 -0
- package/dist/types/components/sqm-hero-image/sqm-hero-image-view.d.ts +1 -0
- package/dist/types/components/sqm-hero-image/sqm-hero-image.d.ts +20 -0
- package/dist/types/components/sqm-image/sqm-image.d.ts +1 -0
- package/dist/types/components/sqm-instant-access-registration/sqm-instant-access-registration.d.ts +1 -0
- package/dist/types/components/sqm-leaderboard/sqm-leaderboard-view.d.ts +1 -0
- package/dist/types/components/sqm-leaderboard/sqm-leaderboard.d.ts +6 -0
- package/dist/types/components/sqm-navigation-menu/sqm-navigation-menu.d.ts +1 -0
- package/dist/types/components/sqm-navigation-sidebar/sqm-navigation-sidebar.d.ts +2 -0
- package/dist/types/components/sqm-portal-change-password/sqm-portal-change-password.d.ts +1 -0
- package/dist/types/components/sqm-portal-footer/sqm-portal-footer.d.ts +1 -0
- package/dist/types/components/sqm-portal-login/sqm-portal-login.d.ts +1 -0
- package/dist/types/components/sqm-portal-logout/sqm-portal-logout.d.ts +1 -0
- package/dist/types/components/sqm-portal-profile/sqm-portal-profile.d.ts +1 -0
- package/dist/types/components/sqm-portal-protected-route/sqm-portal-protected-route.d.ts +1 -0
- package/dist/types/components/sqm-program-explainer/sqm-program-explainer.d.ts +2 -0
- 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-program-menu/sqm-program-menu.d.ts +1 -0
- package/dist/types/components/sqm-qr-code/sqm-qr-code.d.ts +1 -0
- package/dist/types/components/sqm-referral-card/sqm-referral-card-view.d.ts +5 -2
- package/dist/types/components/sqm-referral-card/sqm-referral-card.d.ts +23 -1
- package/dist/types/components/sqm-referral-code/ReferralCode.stories.d.ts +1 -0
- package/dist/types/components/sqm-referral-code/sqm-referral-code.d.ts +43 -0
- package/dist/types/components/sqm-referral-codes/ReferralCodes.stories.d.ts +1 -0
- package/dist/types/components/sqm-referral-codes/sqm-referral-codes-view.d.ts +1 -0
- package/dist/types/components/sqm-referral-codes/sqm-referral-codes.d.ts +7 -0
- package/dist/types/components/sqm-referral-table/sqm-referral-table.d.ts +2 -0
- package/dist/types/components/sqm-referred-registration/sqm-referred-registration.d.ts +1 -0
- package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list.d.ts +2 -0
- package/dist/types/components/sqm-rewards-table/sqm-rewards-table.d.ts +1 -0
- package/dist/types/components/sqm-route/sqm-route.d.ts +1 -0
- package/dist/types/components/sqm-router/sqm-router.d.ts +2 -0
- package/dist/types/components/sqm-scroll/sqm-scroll.d.ts +1 -0
- package/dist/types/components/sqm-share-button/sqm-share-button.d.ts +1 -0
- package/dist/types/components/sqm-share-code/sqm-share-code.d.ts +43 -0
- 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 +43 -1
- package/dist/types/components/sqm-stat-container/sqm-stat-container.d.ts +1 -1
- package/dist/types/components/sqm-tabs/sqm-tabs.d.ts +2 -0
- 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 +33 -0
- package/dist/types/components/sqm-task-card/useTaskCard.d.ts +9 -0
- package/dist/types/components/sqm-text/Text.stories.d.ts +6 -0
- package/dist/types/components/sqm-text/sqm-text.d.ts +14 -0
- package/dist/types/components/sqm-text-span/sqm-text-span.d.ts +1 -0
- package/dist/types/components/sqm-timeline/Timeline.stories.d.ts +1 -0
- package/dist/types/components/sqm-timeline/sqm-timeline-entry-view.d.ts +2 -0
- package/dist/types/components/sqm-timeline/sqm-timeline-entry.d.ts +14 -0
- package/dist/types/components/sqm-timeline/sqm-timeline.d.ts +3 -1
- package/dist/types/components/sqm-titled-section/sqm-titled-section.d.ts +2 -0
- package/dist/types/components/views/copy-text-view.d.ts +5 -0
- package/dist/types/components.d.ts +592 -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-cf230f50.js +0 -1
- package/dist/esm-es5/copy-text-view-782137ba.js +0 -1
- package/dist/esm-es5/sqm-text-span-view-ca32495e.js +0 -1
- package/dist/mint-components/p-1f089c3f.system.entry.js +0 -1
- package/dist/mint-components/p-31015791.js +0 -1
- package/dist/mint-components/p-37996351.system.js +0 -1
- package/dist/mint-components/p-3b90e01b.system.js +0 -1
- package/dist/mint-components/p-4e773bb1.system.entry.js +0 -1
- package/dist/mint-components/p-562428ef.system.js +0 -1
- package/dist/mint-components/p-5cb7f9fc.system.entry.js +0 -1
- package/dist/mint-components/p-653f963f.entry.js +0 -13
- package/dist/mint-components/p-693942df.entry.js +0 -144
- package/dist/mint-components/p-6cc141b9.js +0 -394
- package/dist/mint-components/p-7846937e.entry.js +0 -13
- package/dist/mint-components/p-b207beeb.entry.js +0 -1
- package/dist/mint-components/p-b82e1935.system.entry.js +0 -1
- package/dist/mint-components/p-c9f1dde7.js +0 -1
- package/dist/mint-components/p-cb7bdbe4.entry.js +0 -1
- package/dist/mint-components/p-daee25f9.system.entry.js +0 -1
- package/dist/mint-components/p-de8e9981.system.entry.js +0 -1
- package/dist/mint-components/p-e07bc6c4.system.js +0 -1
- package/dist/mint-components/p-e5a5ae7f.system.entry.js +0 -1
- package/dist/mint-components/p-f56bedd5.js +0 -1
- package/dist/mint-components/p-fe2e2f4a.entry.js +0 -1
- package/dist/mint-components/p-ff8b8067.entry.js +0 -33
|
@@ -2,17 +2,17 @@
|
|
|
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-19fe8600.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-b2f47da0.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,
|
|
@@ -242,8 +242,7 @@ function BigStatView(props) {
|
|
|
242
242
|
Description: {
|
|
243
243
|
"font-size": "var(--sl-font-size-small)",
|
|
244
244
|
"font-weight": "var(--sl-font-weight-normal)",
|
|
245
|
-
color: "var(--
|
|
246
|
-
"text-transform": "uppercase",
|
|
245
|
+
color: "var(--sqm-text-subdued)",
|
|
247
246
|
"text-align": alignment,
|
|
248
247
|
},
|
|
249
248
|
};
|
|
@@ -255,7 +254,7 @@ function BigStatView(props) {
|
|
|
255
254
|
index.h("div", { part: "stat-description", class: sheet.classes.Description }, props.labelSlot)));
|
|
256
255
|
}
|
|
257
256
|
|
|
258
|
-
const style$
|
|
257
|
+
const style$1 = {
|
|
259
258
|
HostBlock: mixins.HostBlock,
|
|
260
259
|
Frame: {
|
|
261
260
|
display: "flex",
|
|
@@ -289,17 +288,17 @@ const style$2 = {
|
|
|
289
288
|
},
|
|
290
289
|
},
|
|
291
290
|
};
|
|
292
|
-
const sheet$
|
|
293
|
-
const styleString$
|
|
291
|
+
const sheet$1 = JSS.createStyleSheet(style$1);
|
|
292
|
+
const styleString$1 = sheet$1.toString();
|
|
294
293
|
function PortalFrameView(props, children) {
|
|
295
294
|
const { data, notFullScreen } = props;
|
|
296
|
-
return (index.h("div", { style: { minHeight: notFullScreen ? "100%" : "100vh" }, class: sheet$
|
|
297
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
298
|
-
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" },
|
|
299
298
|
data.header,
|
|
300
299
|
index.h("slot", { name: "sqm-navigation-menu" })),
|
|
301
300
|
children,
|
|
302
|
-
index.h("div", { class: sheet$
|
|
301
|
+
index.h("div", { class: sheet$1.classes.FooterWrapper, part: "sqm-footer" }, data.footer)));
|
|
303
302
|
}
|
|
304
303
|
|
|
305
304
|
const EditProfileView = (props) => {
|
|
@@ -335,7 +334,7 @@ const EditProfileView = (props) => {
|
|
|
335
334
|
}, submit: true, exportparts: "base: primarybutton-base" }, text.updatetext),
|
|
336
335
|
index.h("sl-button", { onClick: () => {
|
|
337
336
|
callbacks.setShowEdit(false);
|
|
338
|
-
}, exportparts: "base:
|
|
337
|
+
}, exportparts: "base: secondarybutton-base" }, text.canceltext)))));
|
|
339
338
|
}
|
|
340
339
|
return (index.h("div", { class: `CardWrapper FormWrapper ${!states.showEdit && "ShowEdit"}`, part: "sqm-base" },
|
|
341
340
|
index.h("div", { class: "FormSection" },
|
|
@@ -1589,7 +1588,7 @@ function PortalChangePasswordView(props) {
|
|
|
1589
1588
|
index.h("style", { type: "text/css" }, styleString))));
|
|
1590
1589
|
}
|
|
1591
1590
|
|
|
1592
|
-
const style$
|
|
1591
|
+
const style$2 = {
|
|
1593
1592
|
Wrapper: { ...mixins.AuthWrapper, "max-width": "600px" },
|
|
1594
1593
|
Column: mixins.AuthColumn,
|
|
1595
1594
|
HostBlock: mixins.HostBlock,
|
|
@@ -1600,7 +1599,7 @@ const style$3 = {
|
|
|
1600
1599
|
ButtonsContainer: mixins.AuthButtonsContainer,
|
|
1601
1600
|
ErrorStyle: mixins.ErrorStyles,
|
|
1602
1601
|
};
|
|
1603
|
-
const vanillaStyle
|
|
1602
|
+
const vanillaStyle = `
|
|
1604
1603
|
sqm-portal-register {
|
|
1605
1604
|
margin: 0 auto;
|
|
1606
1605
|
width: 100%;
|
|
@@ -1615,20 +1614,20 @@ sqm-portal-register {
|
|
|
1615
1614
|
display: none;
|
|
1616
1615
|
}
|
|
1617
1616
|
`;
|
|
1618
|
-
const sheet$
|
|
1619
|
-
const styleString$
|
|
1617
|
+
const sheet$2 = JSS.createStyleSheet(style$2);
|
|
1618
|
+
const styleString$2 = sheet$2.toString();
|
|
1620
1619
|
function PortalRegisterView(props) {
|
|
1621
1620
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
1622
1621
|
const { states, refs, callbacks, content } = props;
|
|
1623
1622
|
if (states.error) {
|
|
1624
1623
|
window.scrollTo({ top: 0, left: 0, behavior: "smooth" });
|
|
1625
1624
|
}
|
|
1626
|
-
return (index.h("div", { class: sheet$
|
|
1625
|
+
return (index.h("div", { class: sheet$2.classes.Wrapper, part: "sqm-base" },
|
|
1627
1626
|
index.h("style", { type: "text/css" },
|
|
1628
|
-
vanillaStyle
|
|
1629
|
-
styleString$
|
|
1627
|
+
vanillaStyle,
|
|
1628
|
+
styleString$2),
|
|
1630
1629
|
index.h(sqmTextSpanView.TextSpanView, { type: "h3" }, content.pageLabel),
|
|
1631
|
-
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 },
|
|
1632
1631
|
states.error && (index.h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
|
|
1633
1632
|
index.h("div", { part: "erroralert-text" }, props.states.error))),
|
|
1634
1633
|
content.formData,
|
|
@@ -1641,7 +1640,7 @@ function PortalRegisterView(props) {
|
|
|
1641
1640
|
return content.invalidEmailErrorMessage;
|
|
1642
1641
|
}
|
|
1643
1642
|
} }, (((_b = (_a = states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors) === null || _b === void 0 ? void 0 : _b.email) ? {
|
|
1644
|
-
class: sheet$
|
|
1643
|
+
class: sheet$2.classes.ErrorStyle,
|
|
1645
1644
|
helpText: ((_d = (_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.validationErrors) === null || _d === void 0 ? void 0 : _d.email) ||
|
|
1646
1645
|
content.requiredFieldErrorMessage,
|
|
1647
1646
|
}
|
|
@@ -1652,17 +1651,17 @@ function PortalRegisterView(props) {
|
|
|
1652
1651
|
value: (_j = (_h = states.registrationFormState) === null || _h === void 0 ? void 0 : _h.initialData) === null || _j === void 0 ? void 0 : _j.confirmPassword,
|
|
1653
1652
|
}
|
|
1654
1653
|
: {}), (((_l = (_k = states.registrationFormState) === null || _k === void 0 ? void 0 : _k.validationErrors) === null || _l === void 0 ? void 0 : _l.confirmPassword) ? {
|
|
1655
|
-
class: sheet$
|
|
1654
|
+
class: sheet$2.classes.ErrorStyle,
|
|
1656
1655
|
helpText: ((_o = (_m = states.registrationFormState) === null || _m === void 0 ? void 0 : _m.validationErrors) === null || _o === void 0 ? void 0 : _o.confirmPassword) || content.requiredFieldErrorMessage,
|
|
1657
1656
|
}
|
|
1658
1657
|
: [])))),
|
|
1659
1658
|
content.terms,
|
|
1660
|
-
index.h("div", { class: sheet$
|
|
1659
|
+
index.h("div", { class: sheet$2.classes.ButtonsContainer },
|
|
1661
1660
|
index.h("sl-button", { submit: true, loading: states.loading, exportparts: "base: primarybutton-base", type: "primary" }, content.submitLabel || "Register"),
|
|
1662
1661
|
content.secondaryButton))));
|
|
1663
1662
|
}
|
|
1664
1663
|
|
|
1665
|
-
const style$
|
|
1664
|
+
const style$3 = {
|
|
1666
1665
|
ErrorStyle: {
|
|
1667
1666
|
"&::part(control)": {
|
|
1668
1667
|
background: "var(--sl-color-danger-10)",
|
|
@@ -1685,7 +1684,7 @@ const style$4 = {
|
|
|
1685
1684
|
"margin-bottom": "var(--sl-spacing-large)",
|
|
1686
1685
|
},
|
|
1687
1686
|
};
|
|
1688
|
-
const vanillaStyle$
|
|
1687
|
+
const vanillaStyle$1 = `
|
|
1689
1688
|
:host {
|
|
1690
1689
|
margin: 0 auto;
|
|
1691
1690
|
width: 100%;
|
|
@@ -1701,15 +1700,15 @@ sl-checkbox::part(base){
|
|
|
1701
1700
|
}
|
|
1702
1701
|
`;
|
|
1703
1702
|
JSS.jss.setup(JSS.create());
|
|
1704
|
-
const sheet$
|
|
1705
|
-
const styleString$
|
|
1703
|
+
const sheet$3 = JSS.jss.createStyleSheet(style$3);
|
|
1704
|
+
const styleString$3 = sheet$3.toString();
|
|
1706
1705
|
function CheckboxFieldView(props) {
|
|
1707
1706
|
var _b, _c;
|
|
1708
1707
|
const { states, content, callbacks } = props;
|
|
1709
|
-
return (index.h("div", { class: sheet$
|
|
1708
|
+
return (index.h("div", { class: sheet$3.classes.FieldContainer, part: "sqm-base" },
|
|
1710
1709
|
index.h("style", { type: "text/css" },
|
|
1711
|
-
vanillaStyle$
|
|
1712
|
-
styleString$
|
|
1710
|
+
vanillaStyle$1,
|
|
1711
|
+
styleString$3),
|
|
1713
1712
|
index.h("sl-checkbox", Object.assign({ exportparts: "label: input-label, base: input-base", name: `/${content.checkboxName}`, checked: states.checked, "onSl-change": (e) => {
|
|
1714
1713
|
e.target.value = e.target.checked;
|
|
1715
1714
|
callbacks.setChecked(e.target.value);
|
|
@@ -1765,7 +1764,7 @@ function ChangeMarktingView(props) {
|
|
|
1765
1764
|
index.h("div", { part: "successalert-text" }, states.text.successMessage))))));
|
|
1766
1765
|
}
|
|
1767
1766
|
|
|
1768
|
-
const style$
|
|
1767
|
+
const style$4 = {
|
|
1769
1768
|
Description: {
|
|
1770
1769
|
"& input[type=checkbox]": {
|
|
1771
1770
|
display: "none",
|
|
@@ -1777,7 +1776,7 @@ const style$5 = {
|
|
|
1777
1776
|
position: "absolute",
|
|
1778
1777
|
top: "var(--sl-spacing-medium)",
|
|
1779
1778
|
right: "var(--sl-spacing-medium)",
|
|
1780
|
-
color: "var(--
|
|
1779
|
+
color: "var(--sqm-text)",
|
|
1781
1780
|
fontSize: "var(--sl-font-size-large)",
|
|
1782
1781
|
"& :hover": {
|
|
1783
1782
|
color: "var(--sl-color-primary-700)",
|
|
@@ -1804,13 +1803,13 @@ const style$5 = {
|
|
|
1804
1803
|
},
|
|
1805
1804
|
},
|
|
1806
1805
|
};
|
|
1807
|
-
const sheet$
|
|
1808
|
-
const styleString$
|
|
1806
|
+
const sheet$4 = JSS.createStyleSheet(style$4);
|
|
1807
|
+
const styleString$4 = sheet$4.toString();
|
|
1809
1808
|
function Details(props) {
|
|
1810
1809
|
const rid = Math.random().toString(36).slice(2);
|
|
1811
1810
|
return (index.h("div", { style: { opacity: props.opacity } },
|
|
1812
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
1813
|
-
index.h("span", { class: sheet$
|
|
1811
|
+
index.h("style", { type: "text/css" }, styleString$4),
|
|
1812
|
+
index.h("span", { class: sheet$4.classes.Description },
|
|
1814
1813
|
index.h("input", { type: "checkbox", id: "details-" + rid }),
|
|
1815
1814
|
index.h("label", { class: "details", htmlFor: "details-" + rid },
|
|
1816
1815
|
index.h("sl-icon", { exportparts: "base: chevron-icon", name: "chevron-down" })),
|
|
@@ -1832,7 +1831,7 @@ const GreyGift = () => {
|
|
|
1832
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" })));
|
|
1833
1832
|
};
|
|
1834
1833
|
|
|
1835
|
-
const style$
|
|
1834
|
+
const style$5 = {
|
|
1836
1835
|
ProgressBar: {
|
|
1837
1836
|
"& .progress-bar": {
|
|
1838
1837
|
height: "0",
|
|
@@ -1944,14 +1943,14 @@ const style$6 = {
|
|
|
1944
1943
|
},
|
|
1945
1944
|
},
|
|
1946
1945
|
};
|
|
1947
|
-
const sheet$
|
|
1948
|
-
const styleString$
|
|
1946
|
+
const sheet$5 = JSS.createStyleSheet(style$5, { classNamePrefix: "sqm-prog-bar" });
|
|
1947
|
+
const styleString$5 = sheet$5.toString();
|
|
1949
1948
|
function ProgressBarView(props) {
|
|
1950
1949
|
const { progress = 0, goal = 1, steps = false, progressBarUnit = "", repeatable = false, complete = false, expired = false, finite = 0, opacity = "1", } = props;
|
|
1951
1950
|
let aggregate = buildProgressBar(repeatable, steps, props);
|
|
1952
1951
|
const { columns, items } = aggregate;
|
|
1953
|
-
return (index.h("div", { class: sheet$
|
|
1954
|
-
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),
|
|
1955
1954
|
index.h("div", { class: (!Boolean(finite) && progress >= 2 * goal) ||
|
|
1956
1955
|
(Boolean(finite) && progress > 2 * goal)
|
|
1957
1956
|
? "progress-bar repeatable-steps"
|
|
@@ -2242,165 +2241,151 @@ const arrow_left_right = () => {
|
|
|
2242
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" })));
|
|
2243
2242
|
};
|
|
2244
2243
|
|
|
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
|
-
|
|
2285
|
-
color: "var(--sl-color-primary-600)",
|
|
2286
|
-
border: "1px solid var(--sl-color-neutral-200)",
|
|
2287
|
-
borderRadius: "var(--sl-border-radius-large) var(--sl-border-radius-large) 0 0",
|
|
2288
|
-
borderBottom: "none",
|
|
2289
|
-
background: "var(--sl-color-primary-50)",
|
|
2290
|
-
fontWeight: "var(--sl-font-weight-semibold)",
|
|
2291
|
-
lineHeight: "var(--sl-line-height-dense)",
|
|
2292
|
-
"& .icon": {
|
|
2293
|
-
position: "relative",
|
|
2294
|
-
top: "0.1em",
|
|
2295
|
-
marginRight: "var(--sl-spacing-small)",
|
|
2296
|
-
color: "var(--sl-color-primary-500)",
|
|
2297
|
-
},
|
|
2298
|
-
},
|
|
2299
|
-
Ended: {
|
|
2300
|
-
fontSize: "var(--sl-font-size-small)",
|
|
2301
|
-
padding: "var(--sl-spacing-medium)",
|
|
2302
|
-
color: "var(--sl-color-warning-600)",
|
|
2303
|
-
border: "1px solid var(--sl-color-neutral-200)",
|
|
2304
|
-
borderRadius: "var(--sl-border-radius-large) var(--sl-border-radius-large) 0 0",
|
|
2305
|
-
borderBottom: "none",
|
|
2306
|
-
background: "var(--sl-color-warning-50)",
|
|
2307
|
-
fontWeight: "var(--sl-font-weight-semibold)",
|
|
2308
|
-
lineHeight: "var(--sl-line-height-dense)",
|
|
2309
|
-
"& .icon": {
|
|
2310
|
-
position: "relative",
|
|
2311
|
-
top: "0.1em",
|
|
2312
|
-
marginRight: "var(--sl-spacing-small)",
|
|
2313
|
-
color: "var(--sl-color-warning-500)",
|
|
2314
|
-
},
|
|
2315
|
-
},
|
|
2316
|
-
Header: {
|
|
2317
|
-
display: "flex",
|
|
2318
|
-
"& .icon": {
|
|
2319
|
-
position: "relative",
|
|
2320
|
-
top: "5%",
|
|
2321
|
-
alignSelf: "center",
|
|
2322
|
-
lineHeight: "0",
|
|
2323
|
-
color: "var(--sl-color-primary-400)",
|
|
2324
|
-
fontSize: "var(--sl-font-size-large)",
|
|
2325
|
-
marginRight: "var(--sl-spacing-x-small)",
|
|
2326
|
-
},
|
|
2327
|
-
"& .value": {
|
|
2328
|
-
alignSelf: "center",
|
|
2329
|
-
fontSize: "var(--sl-font-size-x-large)",
|
|
2330
|
-
fontWeight: "var(--sl-font-weight-semibold)",
|
|
2331
|
-
color: "var(--sl-color-neutral-950)",
|
|
2332
|
-
lineHeight: "100%",
|
|
2333
|
-
marginRight: "var(--sl-spacing-xx-small)",
|
|
2334
|
-
},
|
|
2335
|
-
"& .text": {
|
|
2336
|
-
alignSelf: "end",
|
|
2337
|
-
textTransform: "uppercase",
|
|
2338
|
-
fontSize: "var(--sl-font-size-x-small)",
|
|
2339
|
-
color: "var(--sl-color-neutral-950)",
|
|
2340
|
-
lineHeight: "var(--sl-font-size-medium)",
|
|
2341
|
-
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
|
+
},
|
|
2342
2284
|
},
|
|
2343
|
-
|
|
2344
|
-
|
|
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)",
|
|
2345
2293
|
fontWeight: "var(--sl-font-weight-semibold)",
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
"&[data-subdue] .success": {
|
|
2354
|
-
color: "var(--sl-color-primary-300)",
|
|
2355
|
-
},
|
|
2356
|
-
"&[data-subdue] .neutral": {
|
|
2357
|
-
color: "var(--sl-color-neutral-300)",
|
|
2358
|
-
},
|
|
2359
|
-
display: "flex",
|
|
2360
|
-
"& .icon": {
|
|
2361
|
-
fontSize: "var(--sl-font-size-xx-small)",
|
|
2362
|
-
marginRight: "var(--sl-spacing-xx-small)",
|
|
2363
|
-
verticalAlign: "middle",
|
|
2364
|
-
},
|
|
2365
|
-
"& .text": {
|
|
2366
|
-
marginTop: "auto",
|
|
2367
|
-
verticalAlign: "text-bottom",
|
|
2368
|
-
fontSize: "var(--sl-font-size-x-small)",
|
|
2369
|
-
color: "var(--sl-color-neutral-400)",
|
|
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
|
+
},
|
|
2370
2301
|
},
|
|
2371
|
-
|
|
2372
|
-
|
|
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)",
|
|
2373
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
|
+
},
|
|
2374
2318
|
},
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
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)",
|
|
2380
2329
|
},
|
|
2381
|
-
"
|
|
2382
|
-
|
|
2383
|
-
|
|
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)",
|
|
2384
2337
|
},
|
|
2385
|
-
"
|
|
2386
|
-
|
|
2387
|
-
|
|
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)",
|
|
2388
2353
|
},
|
|
2389
2354
|
},
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
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
|
+
},
|
|
2396
2385
|
},
|
|
2397
|
-
}
|
|
2398
|
-
|
|
2399
|
-
const
|
|
2400
|
-
const styleString$7 = sheet$7.toString();
|
|
2401
|
-
function TaskCardView(props) {
|
|
2402
|
-
var _a, _b;
|
|
2403
|
-
const { callbacks, states, content } = props;
|
|
2386
|
+
};
|
|
2387
|
+
const sheet = JSS.createStyleSheet(style);
|
|
2388
|
+
const contenttring = sheet.toString();
|
|
2404
2389
|
const dateStart = content.rewardDuration &&
|
|
2405
2390
|
luxon.luxon.DateTime.fromISO(content.rewardDuration.split("/")[0]);
|
|
2406
2391
|
const dateEnd = content.rewardDuration &&
|
|
@@ -2433,11 +2418,11 @@ function TaskCardView(props) {
|
|
|
2433
2418
|
}
|
|
2434
2419
|
|
|
2435
2420
|
`;
|
|
2436
|
-
return (index.h("div", { class: sheet
|
|
2421
|
+
return (index.h("div", { class: sheet.classes.TaskCard, part: "sqm-base" },
|
|
2437
2422
|
index.h("style", { type: "text/css" },
|
|
2438
|
-
|
|
2423
|
+
contenttring,
|
|
2439
2424
|
vanillaStyle),
|
|
2440
|
-
!states.loading && taskNotStarted && (index.h("div", { class: sheet
|
|
2425
|
+
!states.loading && taskNotStarted && (index.h("div", { class: sheet.classes.NotStarted },
|
|
2441
2426
|
index.h("span", { class: "icon" },
|
|
2442
2427
|
index.h("sl-icon", { name: "info-circle-fill" })),
|
|
2443
2428
|
global.intl.formatMessage({
|
|
@@ -2448,7 +2433,7 @@ function TaskCardView(props) {
|
|
|
2448
2433
|
.setLocale(utils.luxonLocale(states.locale))
|
|
2449
2434
|
.toLocaleString(luxon.luxon.DateTime.DATETIME_MED),
|
|
2450
2435
|
}))),
|
|
2451
|
-
!states.loading && taskEnded && (index.h("div", { class: sheet
|
|
2436
|
+
!states.loading && taskEnded && (index.h("div", { class: sheet.classes.Ended },
|
|
2452
2437
|
index.h("span", { class: "icon" },
|
|
2453
2438
|
index.h("sl-icon", { exportparts: "base: task-card-icon", name: "exclamation-triangle-fill" })),
|
|
2454
2439
|
global.intl.formatMessage({
|
|
@@ -2468,7 +2453,7 @@ function TaskCardView(props) {
|
|
|
2468
2453
|
? "main complete"
|
|
2469
2454
|
: "main" },
|
|
2470
2455
|
index.h("div", { class: "container", part: "sqm-card-container", "data-subdue": taskComplete || taskUnavailable },
|
|
2471
|
-
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,
|
|
2472
2457
|
showComplete && (index.h("span", { class: taskUnavailable ? "icon neutral" : "icon" }, taskComplete ? checkmark_filled$1 : checkmark_circle$1)),
|
|
2473
2458
|
index.h("span", { part: "sqm-value", class: "value" }, content.rewardAmount),
|
|
2474
2459
|
index.h("span", { part: "sqm-unit", class: "text" }, content.rewardUnit)))),
|
|
@@ -2484,7 +2469,7 @@ function TaskCardView(props) {
|
|
|
2484
2469
|
} }, content.cardTitle)),
|
|
2485
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" })))),
|
|
2486
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 })))),
|
|
2487
|
-
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" } },
|
|
2488
2473
|
index.h("span", { class: "text" },
|
|
2489
2474
|
content.repeatable && (index.h("div", null,
|
|
2490
2475
|
index.h("span", { class: repetitions > 0
|
|
@@ -2513,11 +2498,9 @@ function TaskCardView(props) {
|
|
|
2513
2498
|
.setLocale(utils.luxonLocale(states.locale))
|
|
2514
2499
|
.toLocaleString(luxon.luxon.DateTime.DATETIME_MED),
|
|
2515
2500
|
})))),
|
|
2516
|
-
content.hideButton ? ("") : (index.h("sl-button", { exportparts:
|
|
2517
|
-
? "
|
|
2518
|
-
: taskComplete
|
|
2519
|
-
? "action disabled"
|
|
2520
|
-
: "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: {
|
|
2521
2504
|
opacity: taskComplete || taskUnavailable ? "0.45" : "1",
|
|
2522
2505
|
} }, content.buttonText)))))))));
|
|
2523
2506
|
}
|
|
@@ -2555,7 +2538,7 @@ function PoweredByImg({ color = "#A6A6A6", width = 120, height = 16, }) {
|
|
|
2555
2538
|
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 })));
|
|
2556
2539
|
}
|
|
2557
2540
|
|
|
2558
|
-
const vanillaStyle$
|
|
2541
|
+
const vanillaStyle$2 = `
|
|
2559
2542
|
:host{
|
|
2560
2543
|
margin: 0 auto;
|
|
2561
2544
|
width: 100%;
|
|
@@ -2611,7 +2594,7 @@ function PortalFooterView(props) {
|
|
|
2611
2594
|
const styleString = sheet.toString();
|
|
2612
2595
|
return (index.h("div", { class: sheet.classes.Container, part: "sqm-base" },
|
|
2613
2596
|
index.h("style", { type: "text/css" },
|
|
2614
|
-
vanillaStyle$
|
|
2597
|
+
vanillaStyle$2,
|
|
2615
2598
|
styleString),
|
|
2616
2599
|
index.h("div", { class: sheet.classes.RowContainer },
|
|
2617
2600
|
props.faqLink && (index.h("a", { target: "_blank", href: props.faqLink }, props.faqText)),
|
|
@@ -2783,7 +2766,7 @@ function ReferralIframeView(props) {
|
|
|
2783
2766
|
index.h("iframe", { class: sheet.classes.IFrame, src: `${content.iframeSrc}?rsCode=${data.shareCode}` })));
|
|
2784
2767
|
}
|
|
2785
2768
|
|
|
2786
|
-
const style$
|
|
2769
|
+
const style$6 = {
|
|
2787
2770
|
ErrorStyle: mixins.ErrorStyles,
|
|
2788
2771
|
FieldsContainer: {
|
|
2789
2772
|
"& sl-input": {
|
|
@@ -2791,7 +2774,7 @@ const style$8 = {
|
|
|
2791
2774
|
},
|
|
2792
2775
|
},
|
|
2793
2776
|
};
|
|
2794
|
-
const vanillaStyle$
|
|
2777
|
+
const vanillaStyle$3 = `
|
|
2795
2778
|
:host {
|
|
2796
2779
|
margin: 0 auto;
|
|
2797
2780
|
width: 100%;
|
|
@@ -2803,21 +2786,21 @@ sl-input::part(label){
|
|
|
2803
2786
|
font-weight: var(--sl-font-weight-semibold);
|
|
2804
2787
|
}
|
|
2805
2788
|
`;
|
|
2806
|
-
const sheet$
|
|
2807
|
-
const styleString$
|
|
2789
|
+
const sheet$6 = JSS.createStyleSheet(style$6);
|
|
2790
|
+
const styleString$6 = sheet$6.toString();
|
|
2808
2791
|
function NameFieldsView(props) {
|
|
2809
2792
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
2810
2793
|
const { states } = props;
|
|
2811
2794
|
const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
|
|
2812
|
-
return (index.h("div", { class: sheet$
|
|
2795
|
+
return (index.h("div", { class: sheet$6.classes.FieldsContainer },
|
|
2813
2796
|
index.h("style", { type: "text/css" },
|
|
2814
|
-
vanillaStyle$
|
|
2815
|
-
styleString$
|
|
2797
|
+
vanillaStyle$3,
|
|
2798
|
+
styleString$6),
|
|
2816
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) ? {
|
|
2817
2800
|
value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g.firstName,
|
|
2818
2801
|
}
|
|
2819
2802
|
: {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.firstName) ? {
|
|
2820
|
-
class: sheet$
|
|
2803
|
+
class: sheet$6.classes.ErrorStyle,
|
|
2821
2804
|
helpText: (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.firstName) || "Cannot be empty",
|
|
2822
2805
|
}
|
|
2823
2806
|
: []))),
|
|
@@ -2825,13 +2808,13 @@ function NameFieldsView(props) {
|
|
|
2825
2808
|
value: (_o = (_m = states.registrationFormState) === null || _m === void 0 ? void 0 : _m.initialData) === null || _o === void 0 ? void 0 : _o.lastName,
|
|
2826
2809
|
}
|
|
2827
2810
|
: {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.lastName) ? {
|
|
2828
|
-
class: sheet$
|
|
2811
|
+
class: sheet$6.classes.ErrorStyle,
|
|
2829
2812
|
helpText: (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.lastName) || "Cannot be empty",
|
|
2830
2813
|
}
|
|
2831
2814
|
: [])))));
|
|
2832
2815
|
}
|
|
2833
2816
|
|
|
2834
|
-
const style$
|
|
2817
|
+
const style$7 = {
|
|
2835
2818
|
ErrorStyle: {
|
|
2836
2819
|
"--sl-input-border-color": "var(--sl-color-danger-500)",
|
|
2837
2820
|
"--sl-input-background-color": "var(--sl-color-danger-10)",
|
|
@@ -2847,7 +2830,7 @@ const style$9 = {
|
|
|
2847
2830
|
"margin-bottom": "var(--sl-spacing-large)",
|
|
2848
2831
|
},
|
|
2849
2832
|
};
|
|
2850
|
-
const vanillaStyle$
|
|
2833
|
+
const vanillaStyle$4 = `
|
|
2851
2834
|
:host {
|
|
2852
2835
|
margin: 0 auto;
|
|
2853
2836
|
width: 100%;
|
|
@@ -2859,36 +2842,36 @@ sl-select::part(label){
|
|
|
2859
2842
|
}
|
|
2860
2843
|
`;
|
|
2861
2844
|
JSS.jss.setup(JSS.create());
|
|
2862
|
-
const sheet$
|
|
2863
|
-
const styleString$
|
|
2845
|
+
const sheet$7 = JSS.jss.createStyleSheet(style$7);
|
|
2846
|
+
const styleString$7 = sheet$7.toString();
|
|
2864
2847
|
function DropdownFieldView(props) {
|
|
2865
2848
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
2866
2849
|
const { states, content } = props;
|
|
2867
2850
|
const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
|
|
2868
|
-
return (index.h("div", { class: sheet$
|
|
2851
|
+
return (index.h("div", { class: sheet$7.classes.FieldContainer, part: "sqm-base" },
|
|
2869
2852
|
index.h("style", { type: "text/css" },
|
|
2870
|
-
vanillaStyle$
|
|
2871
|
-
styleString$
|
|
2853
|
+
vanillaStyle$4,
|
|
2854
|
+
styleString$7),
|
|
2872
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]) ? {
|
|
2873
2856
|
value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g[content.dropdownName],
|
|
2874
2857
|
}
|
|
2875
2858
|
: {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.dropdownName]) ? {
|
|
2876
|
-
class: sheet$
|
|
2859
|
+
class: sheet$7.classes.ErrorStyle,
|
|
2877
2860
|
}
|
|
2878
2861
|
: [])), content.selectOptions),
|
|
2879
|
-
(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({
|
|
2880
2863
|
id: `errorMessage-${content.dropdownName}`,
|
|
2881
2864
|
defaultMessage: content.errorMessage,
|
|
2882
2865
|
})))));
|
|
2883
2866
|
}
|
|
2884
2867
|
|
|
2885
|
-
const style$
|
|
2868
|
+
const style$8 = {
|
|
2886
2869
|
ErrorStyle: mixins.ErrorStyles,
|
|
2887
2870
|
FieldContainer: {
|
|
2888
2871
|
"margin-bottom": "var(--sl-spacing-large)",
|
|
2889
2872
|
},
|
|
2890
2873
|
};
|
|
2891
|
-
const vanillaStyle$
|
|
2874
|
+
const vanillaStyle$5 = `
|
|
2892
2875
|
:host {
|
|
2893
2876
|
margin: 0 auto;
|
|
2894
2877
|
width: 100%;
|
|
@@ -2896,21 +2879,21 @@ const vanillaStyle$6 = `
|
|
|
2896
2879
|
}
|
|
2897
2880
|
`;
|
|
2898
2881
|
JSS.jss.setup(JSS.create());
|
|
2899
|
-
const sheet$
|
|
2900
|
-
const styleString$
|
|
2882
|
+
const sheet$8 = JSS.jss.createStyleSheet(style$8);
|
|
2883
|
+
const styleString$8 = sheet$8.toString();
|
|
2901
2884
|
function InputFieldView(props) {
|
|
2902
2885
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
2903
2886
|
const { states, content } = props;
|
|
2904
2887
|
const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
|
|
2905
|
-
return (index.h("div", { class: sheet$
|
|
2888
|
+
return (index.h("div", { class: sheet$8.classes.FieldContainer, part: "sqm-base" },
|
|
2906
2889
|
index.h("style", { type: "text/css" },
|
|
2907
|
-
vanillaStyle$
|
|
2908
|
-
styleString$
|
|
2890
|
+
vanillaStyle$5,
|
|
2891
|
+
styleString$8),
|
|
2909
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]) ? {
|
|
2910
2893
|
value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g[content.fieldName],
|
|
2911
2894
|
}
|
|
2912
2895
|
: {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.fieldName]) ? {
|
|
2913
|
-
class: sheet$
|
|
2896
|
+
class: sheet$8.classes.ErrorStyle,
|
|
2914
2897
|
helpText: global.intl.formatMessage({
|
|
2915
2898
|
id: `errorMessage-${content.fieldName}`,
|
|
2916
2899
|
defaultMessage: content.errorMessage || (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.fieldName]),
|
|
@@ -3005,7 +2988,7 @@ function ProgressBar({ stageCount, currentStage, }) {
|
|
|
3005
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 })))));
|
|
3006
2989
|
}
|
|
3007
2990
|
|
|
3008
|
-
const style$
|
|
2991
|
+
const style$9 = {
|
|
3009
2992
|
HostBlock: mixins.HostBlock,
|
|
3010
2993
|
Container: {
|
|
3011
2994
|
minWidth: "300px",
|
|
@@ -3356,8 +3339,8 @@ const style$b = {
|
|
|
3356
3339
|
},
|
|
3357
3340
|
};
|
|
3358
3341
|
// JSS config
|
|
3359
|
-
const sheet$
|
|
3360
|
-
const styleString$
|
|
3342
|
+
const sheet$9 = JSS.createStyleSheet(style$9);
|
|
3343
|
+
const styleString$9 = sheet$9.toString();
|
|
3361
3344
|
const stageList = ["chooseReward", "chooseAmount", "confirmation", "success"];
|
|
3362
3345
|
function RewardExchangeView(props) {
|
|
3363
3346
|
const { states, data, callbacks, refs } = props;
|
|
@@ -3380,7 +3363,7 @@ function RewardExchangeView(props) {
|
|
|
3380
3363
|
sourceUnit: item.sourceUnit,
|
|
3381
3364
|
})));
|
|
3382
3365
|
}
|
|
3383
|
-
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) => {
|
|
3384
3367
|
var _a, _b, _c, _d, _e;
|
|
3385
3368
|
return callbacks.setExchangeState({
|
|
3386
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,
|
|
@@ -3388,7 +3371,7 @@ function RewardExchangeView(props) {
|
|
|
3388
3371
|
});
|
|
3389
3372
|
} }, (_c = item.steps) === null || _c === void 0 ? void 0 : _c.map((step) => {
|
|
3390
3373
|
var _a, _b;
|
|
3391
|
-
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 },
|
|
3392
3375
|
step.prettyDestinationValue,
|
|
3393
3376
|
index.h("br", null),
|
|
3394
3377
|
index.h("div", { class: "step-cost", slot: "suffix" },
|
|
@@ -3407,8 +3390,8 @@ function RewardExchangeView(props) {
|
|
|
3407
3390
|
var _a;
|
|
3408
3391
|
return [
|
|
3409
3392
|
index.h("div", { part: "choose-reward-container" },
|
|
3410
|
-
index.h("div", { class: sheet$
|
|
3411
|
-
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) => {
|
|
3412
3395
|
var _a, _b, _c, _d, _e;
|
|
3413
3396
|
const style = {
|
|
3414
3397
|
boxShadow: item.key === (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.key)
|
|
@@ -3417,7 +3400,7 @@ function RewardExchangeView(props) {
|
|
|
3417
3400
|
borderRadius: "4px",
|
|
3418
3401
|
};
|
|
3419
3402
|
return (index.h("div", { key: item.key, style: style },
|
|
3420
|
-
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: {
|
|
3421
3404
|
cursor: item.unavailableReasonCode
|
|
3422
3405
|
? "not-allowed"
|
|
3423
3406
|
: "pointer",
|
|
@@ -3434,14 +3417,14 @@ function RewardExchangeView(props) {
|
|
|
3434
3417
|
? "rgba(0, 0, 0, 0.05)"
|
|
3435
3418
|
: "rgba(0, 0, 0, 0)",
|
|
3436
3419
|
} },
|
|
3437
|
-
index.h("div", { class: sheet$
|
|
3420
|
+
index.h("div", { class: sheet$9.classes.Image, style: {
|
|
3438
3421
|
opacity: item.unavailableReasonCode ? "0.5" : "1",
|
|
3439
3422
|
} },
|
|
3440
3423
|
index.h("img", { class: item.unavailableReasonCode
|
|
3441
3424
|
? "image subdued"
|
|
3442
3425
|
: "image", src: (item === null || item === void 0 ? void 0 : item.imageUrl) ||
|
|
3443
3426
|
index.getAssetPath("./assets/Reward-image.png") })),
|
|
3444
|
-
index.h("div", { class: sheet$
|
|
3427
|
+
index.h("div", { class: sheet$9.classes.TextArea, style: {
|
|
3445
3428
|
opacity: item.unavailableReasonCode ? "0.5" : "1",
|
|
3446
3429
|
} },
|
|
3447
3430
|
index.h("div", { class: "title", style: {
|
|
@@ -3474,7 +3457,7 @@ function RewardExchangeView(props) {
|
|
|
3474
3457
|
item.prettySourceMinValue,
|
|
3475
3458
|
}))))))));
|
|
3476
3459
|
}))),
|
|
3477
|
-
index.h("div", { class: sheet$
|
|
3460
|
+
index.h("div", { class: sheet$9.classes.Button },
|
|
3478
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))),
|
|
3479
3462
|
];
|
|
3480
3463
|
}
|
|
@@ -3485,7 +3468,7 @@ function RewardExchangeView(props) {
|
|
|
3485
3468
|
? false
|
|
3486
3469
|
: input && !states.amount;
|
|
3487
3470
|
return (index.h("div", null,
|
|
3488
|
-
index.h("div", { class: sheet$
|
|
3471
|
+
index.h("div", { class: sheet$9.classes.ChooseAmount, part: "choose-amount-container" },
|
|
3489
3472
|
index.h("div", { class: "wrapper" },
|
|
3490
3473
|
index.h("img", { class: "image", src: (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.imageUrl) ||
|
|
3491
3474
|
index.getAssetPath("./assets/Reward-image.png") }),
|
|
@@ -3494,7 +3477,7 @@ function RewardExchangeView(props) {
|
|
|
3494
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)),
|
|
3495
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)),
|
|
3496
3479
|
index.h("div", { class: "space" }))),
|
|
3497
|
-
index.h("div", { class: sheet$
|
|
3480
|
+
index.h("div", { class: sheet$9.classes.Button },
|
|
3498
3481
|
index.h("sl-button", { exportparts: "base: secondarybutton-base", class: "cancel", size: "large", type: "text", onClick: () => callbacks.resetState() }, states.content.text.cancelText),
|
|
3499
3482
|
index.h("sl-button", { exportparts: "base: primarybutton-base", class: "continue", size: "large", onClick: () => callbacks.setStage("confirmation"), disabled: isDisabled }, states.content.text.continueToConfirmationText)))));
|
|
3500
3483
|
}
|
|
@@ -3502,8 +3485,8 @@ function RewardExchangeView(props) {
|
|
|
3502
3485
|
const cost = (selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettySourceValue) || selectedItem.prettySourceValue;
|
|
3503
3486
|
const amount = selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettyDestinationValue;
|
|
3504
3487
|
return (index.h("div", null,
|
|
3505
|
-
index.h("div", { class: sheet$
|
|
3506
|
-
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),
|
|
3507
3490
|
index.h("div", { class: "wrapper" },
|
|
3508
3491
|
index.h("div", { class: "field" }, states.content.text.rewardNameTitle),
|
|
3509
3492
|
index.h("div", { class: "reward-item-container" },
|
|
@@ -3518,13 +3501,13 @@ function RewardExchangeView(props) {
|
|
|
3518
3501
|
index.h("div", { class: "wrapper top-border padding" },
|
|
3519
3502
|
index.h("div", { class: "field" }, states.content.text.costTitle),
|
|
3520
3503
|
index.h("div", { class: "value" }, cost)),
|
|
3521
|
-
index.h("div", { class: sheet$
|
|
3504
|
+
index.h("div", { class: sheet$9.classes.Button },
|
|
3522
3505
|
index.h("sl-button", { class: "cancel", type: "text", size: "large", onClick: () => callbacks.setStage("chooseAmount") }, states.content.text.backText),
|
|
3523
3506
|
index.h("sl-button", { class: "continue", size: "large", loading: states.loading, onClick: callbacks.exchangeReward }, states.content.text.redeemText)))));
|
|
3524
3507
|
}
|
|
3525
3508
|
function success() {
|
|
3526
3509
|
var _a, _b, _c, _d, _e, _f;
|
|
3527
|
-
return (index.h("div", { class: sheet$
|
|
3510
|
+
return (index.h("div", { class: sheet$9.classes.Success, part: "success-container" },
|
|
3528
3511
|
index.h(Gift$1, null),
|
|
3529
3512
|
index.h(Confetti, null),
|
|
3530
3513
|
index.h("div", { class: "title" }, (_a = states.content.text) === null || _a === void 0 ? void 0 : _a.rewardRedeemedText),
|
|
@@ -3539,7 +3522,7 @@ function RewardExchangeView(props) {
|
|
|
3539
3522
|
(data === null || data === void 0 ? void 0 : data.fuelTankCode) && (index.h("div", { class: "promo" },
|
|
3540
3523
|
states.content.text.promoCode,
|
|
3541
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 }))),
|
|
3542
|
-
index.h("div", { class: sheet$
|
|
3525
|
+
index.h("div", { class: sheet$9.classes.Button },
|
|
3543
3526
|
index.h("sl-button", { class: "continue center", type: "primary", size: "large", onClick: () => callbacks.resetState(true) }, states.content.text.doneText))));
|
|
3544
3527
|
}
|
|
3545
3528
|
const stages = {
|
|
@@ -3551,7 +3534,7 @@ function RewardExchangeView(props) {
|
|
|
3551
3534
|
const currentStage = stages[states.redeemStage];
|
|
3552
3535
|
function stageMap() {
|
|
3553
3536
|
const stageNumber = stageList.indexOf(states.redeemStage);
|
|
3554
|
-
return (index.h("div", { class: sheet$
|
|
3537
|
+
return (index.h("div", { class: sheet$9.classes.ProgressBar },
|
|
3555
3538
|
index.h("div", { class: "text-area" }, Object.keys(stageProgressList).map((stage) => {
|
|
3556
3539
|
if (stageList.indexOf(stage) <= stageNumber) {
|
|
3557
3540
|
return index.h("span", { class: "text" }, stageProgressList[stage]);
|
|
@@ -3563,10 +3546,10 @@ function RewardExchangeView(props) {
|
|
|
3563
3546
|
index.h(ProgressBar, { stageCount: 3, currentStage: stageNumber })));
|
|
3564
3547
|
}
|
|
3565
3548
|
function loading() {
|
|
3566
|
-
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(() => {
|
|
3567
3550
|
return (index.h("div", null,
|
|
3568
|
-
index.h("sl-card", { class: sheet$
|
|
3569
|
-
index.h("div", { class: sheet$
|
|
3551
|
+
index.h("sl-card", { class: sheet$9.classes.Card },
|
|
3552
|
+
index.h("div", { class: sheet$9.classes.CardLayout },
|
|
3570
3553
|
index.h("div", null,
|
|
3571
3554
|
index.h("sl-skeleton", { style: {
|
|
3572
3555
|
width: "100px",
|
|
@@ -3598,12 +3581,12 @@ function RewardExchangeView(props) {
|
|
|
3598
3581
|
if (!(refs === null || refs === void 0 ? void 0 : refs.canvasRef))
|
|
3599
3582
|
return;
|
|
3600
3583
|
refs.canvasRef.current = canvas;
|
|
3601
|
-
}, id: "my-canvas", class: sheet$
|
|
3584
|
+
}, id: "my-canvas", class: sheet$9.classes.Confetti }));
|
|
3602
3585
|
}
|
|
3603
3586
|
if (states.noExchangeOptions)
|
|
3604
3587
|
return states.content.text.empty;
|
|
3605
|
-
return (index.h("div", { class: sheet$
|
|
3606
|
-
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),
|
|
3607
3590
|
index.h("div", null,
|
|
3608
3591
|
stageMap(),
|
|
3609
3592
|
states.exchangeError && errorMessage(),
|
|
@@ -4019,29 +4002,29 @@ function CardFeedView(props, children) {
|
|
|
4019
4002
|
index.h("div", { class: sheet.classes.Container, part: "sqm-base" }, children)));
|
|
4020
4003
|
}
|
|
4021
4004
|
|
|
4022
|
-
const style$
|
|
4005
|
+
const style$a = {
|
|
4023
4006
|
HostBlock: mixins.HostBlock,
|
|
4024
4007
|
couponCodeLabel: {
|
|
4025
4008
|
margin: "var(--sl-spacing-x-small) 0",
|
|
4026
|
-
color: "var(--
|
|
4009
|
+
color: "var(--sqm-text-subdued)",
|
|
4027
4010
|
fontSize: "var(--sl-font-size-small)",
|
|
4028
4011
|
},
|
|
4029
4012
|
};
|
|
4030
|
-
const vanillaStyle$
|
|
4013
|
+
const vanillaStyle$6 = `
|
|
4031
4014
|
:host{
|
|
4032
4015
|
display: block;
|
|
4033
4016
|
width: 100%;
|
|
4034
4017
|
}
|
|
4035
4018
|
`;
|
|
4036
|
-
const sheet$
|
|
4037
|
-
const styleString$
|
|
4019
|
+
const sheet$a = JSS.createStyleSheet(style$a);
|
|
4020
|
+
const styleString$a = sheet$a.toString();
|
|
4038
4021
|
function CouponCodeView(props) {
|
|
4039
4022
|
const error = !props.loading && props.error;
|
|
4040
4023
|
return (index.h("div", null,
|
|
4041
4024
|
index.h("style", { type: "text/css" },
|
|
4042
|
-
styleString$
|
|
4043
|
-
vanillaStyle$
|
|
4044
|
-
index.h("p", { class: sheet$
|
|
4025
|
+
styleString$a,
|
|
4026
|
+
vanillaStyle$6),
|
|
4027
|
+
index.h("p", { class: sheet$a.classes.couponCodeLabel, style: { textAlign: props.textAlign } }, props.couponCodeLabel),
|
|
4045
4028
|
error ? (index.h("sqm-form-message", { type: props.errorType, exportparts: "erroralert-icon" },
|
|
4046
4029
|
index.h("div", { part: "erroralert-text" }, props.errorText))) : (index.h(copyTextView.CopyTextView, Object.assign({}, props)))));
|
|
4047
4030
|
}
|