@saasquatch/mint-components 1.5.0-113 → 1.5.0-117
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/CHANGELOG.md +82 -15
- package/dist/cjs/{GenericTableView-f947b749.js → GenericTableView-ed381b89.js} +7 -6
- package/dist/cjs/{ShadowViewAddon-79dd6c07.js → ShadowViewAddon-60ca6e6c.js} +242 -179
- package/dist/cjs/{global-633d1fb7.js → global-13123238.js} +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/mint-components.cjs.js +2 -2
- package/dist/cjs/{sqm-big-stat_30.cjs.entry.js → sqm-big-stat_31.cjs.entry.js} +198 -154
- package/dist/cjs/sqm-empty_5.cjs.entry.js +3 -2
- package/dist/cjs/{sqm-hero-view-a13795c0.js → sqm-hero-view-3b0d45d0.js} +1 -0
- package/dist/cjs/sqm-hero.cjs.entry.js +1 -1
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-portal-container-view-d101032e.js → sqm-portal-container-view-5ea913a8.js} +2 -1
- package/dist/cjs/{sqm-portal-email-verification-view-c32a55d6.js → sqm-portal-email-verification-view-535ae80c.js} +2 -2
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-portal-footer-view-cac67bc9.js → sqm-portal-footer-view-3c62d7a6.js} +1 -1
- package/dist/cjs/sqm-portal-footer.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-forgot-password-view-10c0b54f.js → sqm-portal-forgot-password-view-02b046e1.js} +1 -1
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-profile-view-72c40619.js → sqm-portal-profile-view-12c9cd73.js} +3 -3
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +4 -4
- package/dist/cjs/{sqm-portal-reset-password-view-1fdc957e.js → sqm-portal-reset-password-view-20df8d45.js} +1 -1
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-section-view-186a5f7e.js → sqm-portal-section-view-f3c8475a.js} +1 -0
- package/dist/cjs/{sqm-portal-verify-email-view-4c78e231.js → sqm-portal-verify-email-view-1b07a1ba.js} +1 -1
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +2 -2
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +27 -10
- package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +1 -1
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +37 -21
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +252 -115
- package/dist/cjs/sqm-text-span-view-c54af22c.js +59 -0
- package/dist/cjs/sqm-text-span.cjs.entry.js +1 -1
- package/dist/collection/components/sqm-big-stat/UseBigStat.stories.js +15 -3
- package/dist/collection/components/sqm-big-stat/sqm-big-stat-view.js +1 -0
- package/dist/collection/components/sqm-big-stat/sqm-big-stat.js +3 -3
- package/dist/collection/components/sqm-big-stat/useBigStat.js +1 -1
- package/dist/collection/components/sqm-card-feed/sqm-card-feed-view.js +1 -0
- package/dist/collection/components/sqm-hero/sqm-hero-view.js +1 -0
- package/dist/collection/components/sqm-hero-image/sqm-hero-image-view.js +9 -2
- package/dist/collection/components/sqm-image/sqm-image-view.js +1 -0
- package/dist/collection/components/sqm-leaderboard/UseLeaderboard.stories.js +2 -2
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +0 -5
- package/dist/collection/components/sqm-portal-container/PortalContainer.stories.js +72 -0
- package/dist/collection/components/sqm-portal-container/sqm-portal-container-view.js +2 -1
- package/dist/collection/components/sqm-portal-container/sqm-portal-container.js +26 -0
- package/dist/collection/components/sqm-referral-card/sqm-referral-card-view.js +40 -38
- package/dist/collection/components/sqm-referral-iframe/sqm-referral-iframe-view.js +1 -0
- package/dist/collection/components/sqm-referral-table/ReferralTable.stories.js +1 -1
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +0 -1
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.js +10 -1
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-status-column.js +5 -1
- package/dist/collection/components/sqm-referral-table/sqm-referral-table.js +12 -10
- package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeListData.js +1 -1
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +1 -1
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +11 -9
- package/dist/collection/components/sqm-rewards-table/RewardsTableCell.stories.js +10 -10
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.js +9 -25
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.js +7 -27
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.js +3 -0
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.js +1 -1
- package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +14 -9
- package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +7 -1
- package/dist/collection/components/sqm-scroll/Scroll.stories.js +14 -23
- package/dist/collection/components/sqm-scroll/sqm-scroll.js +102 -147
- package/dist/collection/components/sqm-share-button/ShareButton.stories.js +8 -8
- package/dist/collection/components/sqm-share-button/sqm-share-button-view.js +29 -29
- package/dist/collection/components/sqm-share-button/sqm-share-button.js +21 -21
- package/dist/collection/components/sqm-share-code/ShareCode.stories.js +2 -2
- package/dist/collection/components/sqm-share-code/sqm-share-code.js +7 -7
- package/dist/collection/components/sqm-share-code/useShareCode.js +1 -1
- package/dist/collection/components/sqm-share-link/ShareLink.stories.js +3 -3
- package/dist/collection/components/sqm-share-link/UseShareLink.stories.js +3 -3
- package/dist/collection/components/sqm-share-link/sqm-share-link-view.js +1 -1
- package/dist/collection/components/sqm-share-link/sqm-share-link.js +4 -4
- package/dist/collection/components/sqm-stat-container/sqm-stat-container-view.js +1 -0
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +2 -0
- package/dist/collection/components/sqm-tabs/sqm-tabs.js +1 -1
- package/dist/collection/components/sqm-task-card/DetailsView.js +1 -1
- package/dist/collection/components/sqm-task-card/progress-bar/SVGs.js +7 -0
- package/dist/collection/components/sqm-task-card/progress-bar/progress-bar-view.js +52 -50
- package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +18 -10
- package/dist/collection/components/sqm-task-card/sqm-task-card.js +3 -1
- package/dist/collection/components/sqm-text-span/sqm-text-span-view.js +42 -42
- package/dist/collection/components/sqm-timeline/sqm-timeline-entry-view.js +77 -0
- package/dist/collection/components/sqm-timeline/sqm-timeline-entry.js +1 -80
- package/dist/collection/components/sqm-timeline/sqm-timeline.js +0 -18
- package/dist/collection/components/sqm-titled-section/sqm-portal-section-view.js +1 -0
- package/dist/collection/global/styles.js +1 -0
- package/dist/collection/global/styles.ts +1 -0
- package/dist/collection/stories/NewPortal.stories.js +2 -2
- package/dist/collection/stories/PortalTemplates.stories.js +0 -7
- package/dist/collection/stories/Widget.stories.js +49 -0
- package/dist/collection/tables/GenericTableView.js +7 -6
- package/dist/esm/{GenericTableView-6b7b537b.js → GenericTableView-6924630b.js} +7 -6
- package/dist/esm/{ShadowViewAddon-9c382e30.js → ShadowViewAddon-3347acdb.js} +242 -180
- package/dist/esm/{global-7d4eb5e5.js → global-9bff4920.js} +1 -0
- package/dist/esm/loader.js +2 -2
- package/dist/esm/mint-components.js +2 -2
- package/dist/esm/{sqm-big-stat_30.entry.js → sqm-big-stat_31.entry.js} +199 -156
- package/dist/esm/sqm-empty_5.entry.js +3 -2
- package/dist/esm/{sqm-hero-view-5ea17052.js → sqm-hero-view-8e70916e.js} +1 -0
- package/dist/esm/sqm-hero.entry.js +1 -1
- package/dist/esm/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm/{sqm-portal-container-view-dea0cdcc.js → sqm-portal-container-view-46929235.js} +2 -1
- package/dist/esm/{sqm-portal-email-verification-view-86e3ff2e.js → sqm-portal-email-verification-view-1d7eca0a.js} +2 -2
- package/dist/esm/sqm-portal-email-verification.entry.js +3 -3
- package/dist/esm/{sqm-portal-footer-view-d6a43c4d.js → sqm-portal-footer-view-df66904d.js} +1 -1
- package/dist/esm/sqm-portal-footer.entry.js +2 -2
- package/dist/esm/{sqm-portal-forgot-password-view-fa088f83.js → sqm-portal-forgot-password-view-6b99a1ad.js} +1 -1
- package/dist/esm/sqm-portal-forgot-password.entry.js +2 -2
- package/dist/esm/{sqm-portal-profile-view-c34e781b.js → sqm-portal-profile-view-b96b89a3.js} +3 -3
- package/dist/esm/sqm-portal-profile.entry.js +4 -4
- package/dist/esm/{sqm-portal-reset-password-view-73e14282.js → sqm-portal-reset-password-view-2c0da51c.js} +1 -1
- package/dist/esm/sqm-portal-reset-password.entry.js +2 -2
- package/dist/esm/{sqm-portal-section-view-88a80af9.js → sqm-portal-section-view-61dbb8a9.js} +1 -0
- package/dist/esm/{sqm-portal-verify-email-view-cbf1cfdc.js → sqm-portal-verify-email-view-0d005914.js} +1 -1
- package/dist/esm/sqm-portal-verify-email.entry.js +2 -2
- package/dist/esm/sqm-referral-table_11.entry.js +27 -10
- package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +1 -1
- package/dist/esm/sqm-rewards-table_9.entry.js +37 -21
- package/dist/esm/sqm-stencilbook.entry.js +248 -111
- package/dist/esm/sqm-text-span-view-c8793d61.js +57 -0
- package/dist/esm/sqm-text-span.entry.js +1 -1
- package/dist/esm-es5/GenericTableView-6924630b.js +1 -0
- package/dist/esm-es5/ShadowViewAddon-3347acdb.js +1 -0
- package/dist/esm-es5/{global-7d4eb5e5.js → global-9bff4920.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/sqm-big-stat_31.entry.js +1 -0
- package/dist/esm-es5/sqm-empty_5.entry.js +1 -1
- package/dist/esm-es5/{sqm-hero-view-5ea17052.js → sqm-hero-view-8e70916e.js} +0 -0
- package/dist/esm-es5/sqm-hero.entry.js +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-container-view-46929235.js +1 -0
- package/dist/esm-es5/{sqm-portal-email-verification-view-86e3ff2e.js → sqm-portal-email-verification-view-1d7eca0a.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-footer-view-d6a43c4d.js → sqm-portal-footer-view-df66904d.js} +1 -1
- package/dist/esm-es5/sqm-portal-footer.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-forgot-password-view-fa088f83.js → sqm-portal-forgot-password-view-6b99a1ad.js} +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-c34e781b.js → sqm-portal-profile-view-b96b89a3.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-reset-password-view-73e14282.js → sqm-portal-reset-password-view-2c0da51c.js} +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-section-view-88a80af9.js → sqm-portal-section-view-61dbb8a9.js} +0 -0
- package/dist/esm-es5/{sqm-portal-verify-email-view-cbf1cfdc.js → sqm-portal-verify-email-view-0d005914.js} +1 -1
- package/dist/esm-es5/sqm-portal-verify-email.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/{mint-components/p-179988b5.js → esm-es5/sqm-text-span-view-c8793d61.js} +1 -1
- package/dist/esm-es5/sqm-text-span.entry.js +1 -1
- package/dist/mint-components/global/styles.ts +1 -0
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/{p-e08f5f8e.js → p-00c0fd3c.js} +0 -0
- package/dist/mint-components/{p-49667de1.system.entry.js → p-07b18f4a.system.entry.js} +1 -1
- package/dist/mint-components/{p-f31a3a08.system.entry.js → p-099d949d.system.entry.js} +1 -1
- package/dist/mint-components/{p-ce0ec1c4.system.js → p-1830b02e.system.js} +1 -1
- package/dist/mint-components/p-1e57c649.entry.js +9 -0
- package/dist/mint-components/p-23a3e161.entry.js +1 -0
- package/dist/mint-components/{p-3dbd3303.entry.js → p-258dc62f.entry.js} +1 -1
- package/dist/mint-components/{p-1c3c2ddb.system.js → p-26b42a93.system.js} +1 -1
- package/dist/mint-components/{p-147440c3.js → p-2ec8c64c.js} +0 -0
- package/dist/mint-components/{p-e82076e4.system.js → p-2ef43b0b.system.js} +1 -1
- package/dist/mint-components/{p-91951a0a.system.entry.js → p-3295bcea.system.entry.js} +1 -1
- package/dist/mint-components/{p-d7736049.system.entry.js → p-32b9d246.system.entry.js} +1 -1
- package/dist/mint-components/p-33159b8f.entry.js +99 -0
- package/dist/mint-components/p-39928661.system.entry.js +1 -0
- package/dist/mint-components/{p-96bbb28a.system.entry.js → p-3bb7f637.system.entry.js} +1 -1
- package/dist/mint-components/{p-6b43e4cc.system.js → p-3bf4f950.system.js} +1 -1
- package/dist/mint-components/{p-53af4433.system.js → p-3cf449ba.system.js} +0 -0
- package/dist/mint-components/{p-fe0d7472.entry.js → p-4556231d.entry.js} +1 -1
- package/dist/mint-components/{p-759df017.system.entry.js → p-4fdc7713.system.entry.js} +1 -1
- package/dist/mint-components/{p-6a87a09f.entry.js → p-5c35a4e6.entry.js} +1 -1
- package/dist/mint-components/p-5c71ba83.js +268 -0
- package/dist/mint-components/{p-8d7ae057.system.entry.js → p-60abe71f.system.entry.js} +1 -1
- package/dist/mint-components/p-6660f97d.system.js +1 -0
- package/dist/mint-components/p-6faceb79.system.entry.js +1 -0
- package/dist/mint-components/{p-eb61462d.entry.js → p-710dd330.entry.js} +12 -12
- package/dist/mint-components/{p-1959da16.system.js → p-73e64749.system.js} +1 -1
- package/dist/mint-components/{p-4f4bdfad.system.entry.js → p-79e4c06a.system.entry.js} +1 -1
- package/dist/mint-components/{p-3bdc5918.js → p-7b074331.js} +1 -1
- package/dist/mint-components/{p-4a1b7d35.js → p-7fe7dbb0.js} +1 -1
- package/dist/mint-components/{p-d264d1a0.system.js → p-80845175.system.js} +1 -1
- package/dist/mint-components/{p-200ffff7.entry.js → p-96f571e5.entry.js} +1 -1
- package/dist/mint-components/p-99e7434e.js +1 -0
- package/dist/mint-components/{p-93e15034.entry.js → p-9dee36f6.entry.js} +1 -1
- package/dist/mint-components/{p-16023c39.system.entry.js → p-a35ce12b.system.entry.js} +1 -1
- package/dist/mint-components/{p-2af6bb32.system.entry.js → p-a36892ea.system.entry.js} +1 -1
- package/dist/mint-components/p-a82df645.system.entry.js +1 -0
- package/dist/mint-components/{p-55b6147d.js → p-abc7fa04.js} +1 -1
- package/dist/mint-components/p-ad741ee2.system.entry.js +1 -0
- package/dist/mint-components/p-aebee81d.system.js +1 -0
- package/dist/mint-components/{p-3e65453b.system.js → p-b756428e.system.js} +0 -0
- package/dist/mint-components/{p-1d1e9197.js → p-ba597021.js} +1 -1
- package/dist/mint-components/p-bb630f90.system.js +1 -0
- package/dist/mint-components/p-c887a653.system.js +1 -0
- package/dist/mint-components/{p-d33eb961.js → p-c8cb3674.js} +1 -1
- package/dist/mint-components/{p-20e8567f.entry.js → p-ca696a40.entry.js} +1 -1
- package/dist/mint-components/{p-1204f7df.entry.js → p-cfe3ceb7.entry.js} +1 -1
- package/dist/mint-components/{p-a8141e7b.entry.js → p-d073aead.entry.js} +1 -1
- package/dist/mint-components/p-db46fe90.js +1 -0
- package/dist/mint-components/{p-fcd096b3.entry.js → p-dc0b8fdb.entry.js} +1 -1
- package/dist/mint-components/{p-ce8b1b36.system.js → p-e2cb443e.system.js} +1 -1
- package/dist/mint-components/{p-72a798c3.entry.js → p-e3fff405.entry.js} +1 -1
- package/dist/mint-components/p-ec5633b8.js +1 -0
- package/dist/mint-components/p-ec77261d.system.js +1 -0
- package/dist/mint-components/{p-e57bb617.entry.js → p-ee1684ae.entry.js} +1 -1
- package/dist/mint-components/{p-c5314bbc.js → p-eff88c3d.js} +1 -1
- package/dist/mint-components/p-f34dd1c1.js +1 -0
- package/dist/mint-components/{p-72296718.system.entry.js → p-f72dc3a5.system.entry.js} +1 -1
- package/dist/types/components/sqm-big-stat/UseBigStat.stories.d.ts +24 -0
- package/dist/types/components/sqm-portal-container/PortalContainer.stories.d.ts +6 -0
- package/dist/types/components/sqm-portal-container/sqm-portal-container-view.d.ts +1 -0
- package/dist/types/components/sqm-portal-container/sqm-portal-container.d.ts +6 -0
- package/dist/types/components/sqm-referral-table/sqm-referral-table.d.ts +2 -3
- package/dist/types/components/sqm-reward-exchange-list/RewardExchangeListData.d.ts +19 -19
- package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.d.ts +1 -1
- package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list.d.ts +6 -4
- package/dist/types/components/sqm-reward-exchange-list/useRewardExchangeList.d.ts +1 -1
- package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.d.ts +0 -1
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.d.ts +0 -4
- package/dist/types/components/sqm-rewards-table/sqm-rewards-table.d.ts +7 -4
- package/dist/types/components/sqm-scroll/Scroll.stories.d.ts +1 -0
- package/dist/types/components/sqm-scroll/sqm-scroll.d.ts +56 -8
- package/dist/types/components/sqm-share-button/sqm-share-button-view.d.ts +6 -6
- package/dist/types/components/sqm-share-button/sqm-share-button.d.ts +9 -9
- package/dist/types/components/sqm-share-code/sqm-share-code.d.ts +2 -2
- package/dist/types/components/sqm-share-code/useShareCode.d.ts +2 -2
- package/dist/types/components/sqm-share-link/sqm-share-link-view.d.ts +1 -1
- package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +1 -1
- package/dist/types/components/sqm-share-link/useShareLink.d.ts +1 -1
- package/dist/types/components/sqm-tabs/sqm-tabs.d.ts +1 -1
- package/dist/types/components/sqm-task-card/progress-bar/SVGs.d.ts +1 -0
- package/dist/types/components/sqm-task-card/progress-bar/progress-bar-view.d.ts +1 -0
- package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +2 -0
- package/dist/types/components/sqm-timeline/sqm-timeline-entry-view.d.ts +9 -0
- package/dist/types/components.d.ts +172 -78
- package/dist/types/global/styles.d.ts +1 -1
- package/dist/types/stories/Widget.stories.d.ts +22 -0
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/sqm-stat-container-view-8aaf6cb8.js +0 -52
- package/dist/cjs/sqm-stat-container.cjs.entry.js +0 -36
- package/dist/cjs/sqm-text-span-view-f101dedf.js +0 -59
- package/dist/esm/sqm-stat-container-view-226b6496.js +0 -50
- package/dist/esm/sqm-stat-container.entry.js +0 -32
- package/dist/esm/sqm-text-span-view-7e61c95c.js +0 -57
- package/dist/esm-es5/GenericTableView-6b7b537b.js +0 -1
- package/dist/esm-es5/ShadowViewAddon-9c382e30.js +0 -1
- package/dist/esm-es5/sqm-big-stat_30.entry.js +0 -1
- package/dist/esm-es5/sqm-portal-container-view-dea0cdcc.js +0 -1
- package/dist/esm-es5/sqm-stat-container-view-226b6496.js +0 -1
- package/dist/esm-es5/sqm-stat-container.entry.js +0 -1
- package/dist/esm-es5/sqm-text-span-view-7e61c95c.js +0 -1
- package/dist/mint-components/p-1a786c17.js +0 -1
- package/dist/mint-components/p-1b71a09e.system.entry.js +0 -1
- package/dist/mint-components/p-1cd23e56.system.entry.js +0 -1
- package/dist/mint-components/p-2c5d7a20.js +0 -268
- package/dist/mint-components/p-3f88f8eb.system.js +0 -1
- package/dist/mint-components/p-45581e0b.entry.js +0 -9
- package/dist/mint-components/p-48161ba8.js +0 -1
- package/dist/mint-components/p-4e0ce80b.js +0 -1
- package/dist/mint-components/p-546ee840.entry.js +0 -1
- package/dist/mint-components/p-55f3d841.system.js +0 -1
- package/dist/mint-components/p-78df4d2d.system.js +0 -1
- package/dist/mint-components/p-8bcaafaf.system.js +0 -1
- package/dist/mint-components/p-9e4f0169.system.entry.js +0 -1
- package/dist/mint-components/p-a44b64d5.js +0 -1
- package/dist/mint-components/p-ac303785.system.js +0 -1
- package/dist/mint-components/p-b359d5a5.entry.js +0 -1
- package/dist/mint-components/p-bb497e73.entry.js +0 -93
- package/dist/mint-components/p-c5086d90.system.js +0 -1
- package/dist/mint-components/p-e16186c0.system.entry.js +0 -1
- package/dist/mint-components/p-e2731437.system.entry.js +0 -1
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
const index = require('./index-b0129cd6.js');
|
|
4
4
|
const stencilHooks_module = require('./stencil-hooks.module-87a1f4f7.js');
|
|
5
|
-
const global = require('./global-
|
|
5
|
+
const global = require('./global-13123238.js');
|
|
6
6
|
const index_module = require('./index.module-f972f103.js');
|
|
7
7
|
const cjs = require('./cjs-1066ec21.js');
|
|
8
8
|
const mixins = require('./mixins-7b7c59fe.js');
|
|
9
9
|
const JSS = require('./JSS-c65a40f1.js');
|
|
10
10
|
const luxon = require('./luxon-59ca7d19.js');
|
|
11
11
|
const utils = require('./utils-01dbfd4a.js');
|
|
12
|
-
const sqmTextSpanView = require('./sqm-text-span-view-
|
|
13
|
-
const sqmPortalContainerView = require('./sqm-portal-container-view-
|
|
14
|
-
const sqmPortalSectionView = require('./sqm-portal-section-view-
|
|
12
|
+
const sqmTextSpanView = require('./sqm-text-span-view-c54af22c.js');
|
|
13
|
+
const sqmPortalContainerView = require('./sqm-portal-container-view-5ea913a8.js');
|
|
14
|
+
const sqmPortalSectionView = require('./sqm-portal-section-view-f3c8475a.js');
|
|
15
15
|
|
|
16
16
|
const medium = {
|
|
17
17
|
facebook: { color: "#1877f2", text: "#fff", icon: "facebook" },
|
|
@@ -25,40 +25,51 @@ const medium = {
|
|
|
25
25
|
linemessenger: { color: "#00B300", text: "#fff", icon: "line" },
|
|
26
26
|
pinterest: { color: "#e60023", text: "#fff", icon: "pinterest" },
|
|
27
27
|
};
|
|
28
|
+
const style = {
|
|
29
|
+
HostBlock: mixins.HostBlock,
|
|
30
|
+
buttonStyle: {
|
|
31
|
+
display: "flex",
|
|
32
|
+
alignItems: "center",
|
|
33
|
+
justifyContent: "center",
|
|
34
|
+
lineHeight: "0",
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
const sheet = JSS.createStyleSheet(style);
|
|
38
|
+
const styleString = sheet.toString();
|
|
28
39
|
function ShareButtonView(props, children) {
|
|
29
40
|
const vanillaStyle = `
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
--sl-focus-ring-color-primary: ${props.
|
|
33
|
-
? props.
|
|
41
|
+
*::part(base) {
|
|
42
|
+
border: none;
|
|
43
|
+
--sl-focus-ring-color-primary: ${props.backgroundColor
|
|
44
|
+
? props.backgroundColor
|
|
34
45
|
: props.medium
|
|
35
46
|
? medium[props.medium].color
|
|
36
47
|
: ""}80!important;
|
|
37
48
|
|
|
38
|
-
|
|
39
|
-
? props.
|
|
49
|
+
background: ${props.backgroundColor
|
|
50
|
+
? props.backgroundColor
|
|
40
51
|
: props.medium
|
|
41
52
|
? medium[props.medium].color
|
|
42
53
|
: ""};
|
|
43
|
-
|
|
44
|
-
? props.
|
|
54
|
+
color: ${props.textColor
|
|
55
|
+
? props.textColor
|
|
45
56
|
: props.medium
|
|
46
57
|
? medium[props.medium].text
|
|
47
58
|
: ""};
|
|
48
|
-
|
|
49
|
-
|
|
59
|
+
border-radius: ${props.borderRadius ? props.borderRadius + "px" : ""};
|
|
60
|
+
}
|
|
50
61
|
|
|
51
62
|
*::part(base):hover {
|
|
52
|
-
border-color: ${props.
|
|
53
|
-
? props.
|
|
63
|
+
border-color: ${props.backgroundColor
|
|
64
|
+
? props.backgroundColor
|
|
54
65
|
: props.medium
|
|
55
66
|
? medium[props.medium].color
|
|
56
67
|
: ""}D1!important;
|
|
57
68
|
}
|
|
58
|
-
|
|
69
|
+
|
|
59
70
|
*::part(base):focus {
|
|
60
|
-
border-color: ${props.
|
|
61
|
-
? props.
|
|
71
|
+
border-color: ${props.backgroundColor
|
|
72
|
+
? props.backgroundColor
|
|
62
73
|
: props.medium
|
|
63
74
|
? medium[props.medium].color
|
|
64
75
|
: ""}D1!important;
|
|
@@ -68,27 +79,16 @@ function ShareButtonView(props, children) {
|
|
|
68
79
|
position: relative;
|
|
69
80
|
top: 2%;
|
|
70
81
|
}
|
|
71
|
-
|
|
72
|
-
const style = {
|
|
73
|
-
HostBlock: mixins.HostBlock,
|
|
74
|
-
buttonStyle: {
|
|
75
|
-
display: "flex",
|
|
76
|
-
alignItems: "center",
|
|
77
|
-
justifyContent: "center",
|
|
78
|
-
lineHeight: "0",
|
|
79
|
-
},
|
|
80
|
-
};
|
|
81
|
-
const sheet = JSS.createStyleSheet(style);
|
|
82
|
-
const styleString = sheet.toString();
|
|
82
|
+
`;
|
|
83
83
|
return props.hide ? (index.h(index.Host, { style: { display: "none" } })) : (index.h("div", null,
|
|
84
84
|
index.h("style", { type: "text/css" }, styleString),
|
|
85
85
|
index.h("style", { type: "text/css" }, vanillaStyle),
|
|
86
86
|
index.h("sl-button", { class: sheet.classes.buttonStyle, loading: props.loading, disabled: props.disabled, pill: props.pill, size: props.size, type: props.type, onClick: props.onClick, exportparts: `base: ${props.type}sharebutton-base` },
|
|
87
|
-
!props.
|
|
88
|
-
!props.
|
|
87
|
+
!props.hideIcon && (index.h("sl-icon", { slot: props.iconSlot || "prefix", name: props.icon ? props.icon : medium[props.medium].icon, exportparts: "icon" })),
|
|
88
|
+
!props.hideText && children)));
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
const style = {
|
|
91
|
+
const style$1 = {
|
|
92
92
|
Leaderboard: {
|
|
93
93
|
"& table": {
|
|
94
94
|
width: "100%",
|
|
@@ -129,8 +129,8 @@ const style = {
|
|
|
129
129
|
},
|
|
130
130
|
},
|
|
131
131
|
};
|
|
132
|
-
const sheet = JSS.createStyleSheet(style);
|
|
133
|
-
const styleString = sheet.toString();
|
|
132
|
+
const sheet$1 = JSS.createStyleSheet(style$1);
|
|
133
|
+
const styleString$1 = sheet$1.toString();
|
|
134
134
|
const vanillaStyle = `
|
|
135
135
|
:host{
|
|
136
136
|
display: block;
|
|
@@ -140,22 +140,18 @@ function LeaderboardView(props) {
|
|
|
140
140
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
141
141
|
const { states, data, elements } = props;
|
|
142
142
|
const { styles } = states;
|
|
143
|
-
console.log("LEADER", props);
|
|
144
|
-
console.log(styles);
|
|
145
|
-
console.log("hideViewer", styles.hideViewer);
|
|
146
|
-
console.log(!styles.hideViewer);
|
|
147
143
|
if (states.loading)
|
|
148
|
-
return (index.h("div", { class: sheet.classes.Leaderboard },
|
|
144
|
+
return (index.h("div", { class: sheet$1.classes.Leaderboard },
|
|
149
145
|
index.h("style", { type: "text/css" },
|
|
150
|
-
styleString,
|
|
146
|
+
styleString$1,
|
|
151
147
|
vanillaStyle),
|
|
152
148
|
elements.loadingstate));
|
|
153
149
|
if (!states.hasLeaders)
|
|
154
150
|
return elements.empty;
|
|
155
151
|
let userSeenFlag = false;
|
|
156
|
-
return (index.h("div", { class: sheet.classes.Leaderboard },
|
|
152
|
+
return (index.h("div", { class: sheet$1.classes.Leaderboard },
|
|
157
153
|
index.h("style", { type: "text/css" },
|
|
158
|
-
styleString,
|
|
154
|
+
styleString$1,
|
|
159
155
|
vanillaStyle),
|
|
160
156
|
index.h("table", null,
|
|
161
157
|
index.h("tr", null,
|
|
@@ -179,7 +175,6 @@ function LeaderboardView(props) {
|
|
|
179
175
|
index.h("td", { class: "Score" }, user.value)));
|
|
180
176
|
}),
|
|
181
177
|
!userSeenFlag && !styles.hideViewer && (index.h("tr", null,
|
|
182
|
-
console.log("res", !userSeenFlag && !styles.hideViewer),
|
|
183
178
|
index.h("td", { colSpan: 100, class: "ellipses" },
|
|
184
179
|
index.h("sl-icon", { name: "three-dots", style: { verticalAlign: "middle" } })))),
|
|
185
180
|
!userSeenFlag && !styles.hideViewer && (index.h("tr", { class: "highlight" },
|
|
@@ -193,24 +188,25 @@ function LeaderboardView(props) {
|
|
|
193
188
|
index.h("td", { class: "Score" }, ((_l = data.viewerRank) === null || _l === void 0 ? void 0 : _l.value) || "0"))))));
|
|
194
189
|
}
|
|
195
190
|
|
|
196
|
-
const style$
|
|
191
|
+
const style$2 = {
|
|
197
192
|
HostBlock: mixins.HostBlock,
|
|
198
193
|
inputStyle: {
|
|
199
194
|
"&::part(base)": { background: "white", opacity: "1", cursor: "pointer" },
|
|
200
195
|
},
|
|
201
196
|
};
|
|
202
|
-
const sheet$
|
|
203
|
-
const styleString$
|
|
197
|
+
const sheet$2 = JSS.createStyleSheet(style$2);
|
|
198
|
+
const styleString$2 = sheet$2.toString();
|
|
204
199
|
function ShareLinkView(props) {
|
|
205
200
|
return (index.h("div", null,
|
|
206
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
207
|
-
index.h("sl-tooltip", { trigger: "manual", content: props.
|
|
208
|
-
index.h("sl-input", { class: sheet$
|
|
201
|
+
index.h("style", { type: "text/css" }, styleString$2),
|
|
202
|
+
index.h("sl-tooltip", { trigger: "manual", content: props.tooltipText, placement: "top-end", disabled: props.disabled, open: props.open },
|
|
203
|
+
index.h("sl-input", { class: sheet$2.classes.inputStyle, exportparts: "label: input-label", value: props.shareString, readonly: true },
|
|
209
204
|
index.h("sl-icon-button", { onClick: () => { var _a; return (_a = props.onClick) === null || _a === void 0 ? void 0 : _a.call(props); }, slot: "suffix", name: "files", disabled: props.disabled })))));
|
|
210
205
|
}
|
|
211
206
|
|
|
212
207
|
function BigStatView(props) {
|
|
213
208
|
const { statvalue, flexReverse, alignment } = props;
|
|
209
|
+
// Dependent on props, not feasiable to move out
|
|
214
210
|
const style = {
|
|
215
211
|
Container: {
|
|
216
212
|
display: "flex",
|
|
@@ -243,7 +239,7 @@ function BigStatView(props) {
|
|
|
243
239
|
index.h("div", { part: "stat-description", class: sheet.classes.Description }, props.labelSlot)));
|
|
244
240
|
}
|
|
245
241
|
|
|
246
|
-
const style$
|
|
242
|
+
const style$3 = {
|
|
247
243
|
HostBlock: mixins.HostBlock,
|
|
248
244
|
":host": {
|
|
249
245
|
"min-height": "100vh",
|
|
@@ -281,17 +277,17 @@ const style$2 = {
|
|
|
281
277
|
},
|
|
282
278
|
},
|
|
283
279
|
};
|
|
284
|
-
const sheet$
|
|
285
|
-
const styleString$
|
|
280
|
+
const sheet$3 = JSS.createStyleSheet(style$3);
|
|
281
|
+
const styleString$3 = sheet$3.toString();
|
|
286
282
|
function PortalFrameView(props, children) {
|
|
287
283
|
const { data } = props;
|
|
288
|
-
return (index.h("div", { class: sheet$
|
|
289
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
290
|
-
index.h("div", { class: sheet$
|
|
284
|
+
return (index.h("div", { class: sheet$3.classes.Frame },
|
|
285
|
+
index.h("style", { type: "text/css" }, styleString$3),
|
|
286
|
+
index.h("div", { class: sheet$3.classes.HeaderWrapper },
|
|
291
287
|
data.header,
|
|
292
288
|
index.h("slot", { name: "sqm-navigation-menu" })),
|
|
293
289
|
children,
|
|
294
|
-
index.h("div", { class: sheet$
|
|
290
|
+
index.h("div", { class: sheet$3.classes.FooterWrapper }, data.footer)));
|
|
295
291
|
}
|
|
296
292
|
|
|
297
293
|
const EditProfileView = (props) => {
|
|
@@ -811,7 +807,7 @@ _, status) => {
|
|
|
811
807
|
`, { queryFilter }, (res) => {
|
|
812
808
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
813
809
|
return ({
|
|
814
|
-
value: (_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.referrals) === null || _c === void 0 ? void 0 : _c.totalCount,
|
|
810
|
+
value: ((_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.referrals) === null || _c === void 0 ? void 0 : _c.totalCount) || 0,
|
|
815
811
|
statvalue: (_g = (_f = (_e = (_d = res.data) === null || _d === void 0 ? void 0 : _d.viewer) === null || _e === void 0 ? void 0 : _e.referrals) === null || _f === void 0 ? void 0 : _f.totalCount) === null || _g === void 0 ? void 0 : _g.toString(),
|
|
816
812
|
});
|
|
817
813
|
});
|
|
@@ -1415,6 +1411,53 @@ function useDemoBigStat(props) {
|
|
|
1415
1411
|
};
|
|
1416
1412
|
}
|
|
1417
1413
|
|
|
1414
|
+
function StatContainerView(props, children) {
|
|
1415
|
+
const divideSpace = () => {
|
|
1416
|
+
const spaceValue = getComputedStyle(document.documentElement).getPropertyValue(`--sl-spacing-${props.space}`);
|
|
1417
|
+
return `${Math.floor(parseInt(spaceValue) / 2)}rem`;
|
|
1418
|
+
};
|
|
1419
|
+
// Dependent on props, not feasiable to move out
|
|
1420
|
+
const style = {
|
|
1421
|
+
StatContainer: {
|
|
1422
|
+
width: "100%",
|
|
1423
|
+
display: props.display || "grid",
|
|
1424
|
+
"grid-template-columns": "repeat(auto-fill, minmax(130px, auto))",
|
|
1425
|
+
gap: divideSpace(),
|
|
1426
|
+
// First set of styles applies when shadow DOM is disabled, second set applies when shadow DOM is enabled
|
|
1427
|
+
"& > *": {
|
|
1428
|
+
"border-right": "1px solid #EAEAEA",
|
|
1429
|
+
"padding-right": divideSpace(),
|
|
1430
|
+
},
|
|
1431
|
+
"& > :last-child": {
|
|
1432
|
+
"border-right": "1px solid #ffffff",
|
|
1433
|
+
},
|
|
1434
|
+
"& > ::slotted(*)": {
|
|
1435
|
+
"border-right": "1px solid #EAEAEA",
|
|
1436
|
+
"padding-right": divideSpace(),
|
|
1437
|
+
height: "100%",
|
|
1438
|
+
},
|
|
1439
|
+
"& > ::slotted(*:last-child)": {
|
|
1440
|
+
"border-right": "none",
|
|
1441
|
+
},
|
|
1442
|
+
},
|
|
1443
|
+
StatFrame: {
|
|
1444
|
+
display: "flex",
|
|
1445
|
+
},
|
|
1446
|
+
BorderFix: {
|
|
1447
|
+
"border-right": "1px solid #ffffff",
|
|
1448
|
+
width: "0px",
|
|
1449
|
+
"margin-left": "-1px",
|
|
1450
|
+
},
|
|
1451
|
+
};
|
|
1452
|
+
const sheet = JSS.createStyleSheet(style);
|
|
1453
|
+
const styleString = sheet.toString();
|
|
1454
|
+
return (index.h("div", { class: sheet.classes.StatFrame },
|
|
1455
|
+
index.h("div", { class: sheet.classes.StatContainer },
|
|
1456
|
+
index.h("style", { type: "text/css" }, styleString),
|
|
1457
|
+
children),
|
|
1458
|
+
index.h("div", { class: sheet.classes.BorderFix })));
|
|
1459
|
+
}
|
|
1460
|
+
|
|
1418
1461
|
function PortalChangePasswordView(props) {
|
|
1419
1462
|
const { states, callbacks } = props;
|
|
1420
1463
|
const style = {
|
|
@@ -1485,7 +1528,7 @@ function PortalChangePasswordView(props) {
|
|
|
1485
1528
|
index.h("style", { type: "text/css" }, styleString))));
|
|
1486
1529
|
}
|
|
1487
1530
|
|
|
1488
|
-
const style$
|
|
1531
|
+
const style$4 = {
|
|
1489
1532
|
Wrapper: mixins.AuthWrapper,
|
|
1490
1533
|
Column: mixins.AuthColumn,
|
|
1491
1534
|
ForgotButtonContainer: {
|
|
@@ -1506,28 +1549,28 @@ const vanillaStyle$1 = `
|
|
|
1506
1549
|
display: none;
|
|
1507
1550
|
}
|
|
1508
1551
|
`;
|
|
1509
|
-
const sheet$
|
|
1510
|
-
const styleString$
|
|
1552
|
+
const sheet$4 = JSS.createStyleSheet(style$4);
|
|
1553
|
+
const styleString$4 = sheet$4.toString();
|
|
1511
1554
|
function PortalLoginView(props) {
|
|
1512
1555
|
const { states, callbacks, content } = props;
|
|
1513
|
-
return (index.h("div", { class: sheet$
|
|
1556
|
+
return (index.h("div", { class: sheet$4.classes.Wrapper },
|
|
1514
1557
|
index.h("style", { type: "text/css" },
|
|
1515
1558
|
vanillaStyle$1,
|
|
1516
|
-
styleString$
|
|
1559
|
+
styleString$4),
|
|
1517
1560
|
index.h(sqmTextSpanView.TextSpanView, { type: "h3" }, content.pageLabel),
|
|
1518
|
-
index.h("sl-form", { class: sheet$
|
|
1561
|
+
index.h("sl-form", { class: sheet$4.classes.Column, "onSl-submit": callbacks.submit },
|
|
1519
1562
|
props.states.error && (index.h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
|
|
1520
1563
|
index.h("div", { part: "erroralert-text" }, props.states.error))),
|
|
1521
1564
|
index.h("sl-input", { exportparts: "label: input-label", type: "email", name: "/email", label: content.emailLabel || "Email", disabled: states.loading, required: true }),
|
|
1522
1565
|
index.h("div", null,
|
|
1523
1566
|
index.h("sl-input", { exportparts: "label: input-label", type: "password", name: "/password", label: content.passwordLabel || "Password", disabled: states.loading, required: true }),
|
|
1524
|
-
index.h("div", { class: sheet$
|
|
1525
|
-
index.h("div", { class: sheet$
|
|
1567
|
+
index.h("div", { class: sheet$4.classes.ForgotButtonContainer }, content.forgotPasswordButton)),
|
|
1568
|
+
index.h("div", { class: sheet$4.classes.ButtonsContainer },
|
|
1526
1569
|
index.h("sl-button", { submit: true, loading: states.loading, exportparts: "base: primarybutton-base", type: "primary" }, content.submitLabel || "Login"),
|
|
1527
1570
|
content.secondaryButton))));
|
|
1528
1571
|
}
|
|
1529
1572
|
|
|
1530
|
-
const style$
|
|
1573
|
+
const style$5 = {
|
|
1531
1574
|
Wrapper: { ...mixins.AuthWrapper, "max-width": "600px" },
|
|
1532
1575
|
Column: mixins.AuthColumn,
|
|
1533
1576
|
HostBlock: mixins.HostBlock,
|
|
@@ -1553,20 +1596,20 @@ sqm-portal-register {
|
|
|
1553
1596
|
display: none;
|
|
1554
1597
|
}
|
|
1555
1598
|
`;
|
|
1556
|
-
const sheet$
|
|
1557
|
-
const styleString$
|
|
1599
|
+
const sheet$5 = JSS.createStyleSheet(style$5);
|
|
1600
|
+
const styleString$5 = sheet$5.toString();
|
|
1558
1601
|
function PortalRegisterView(props) {
|
|
1559
1602
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1560
1603
|
const { states, refs, callbacks, content } = props;
|
|
1561
1604
|
if (states.error) {
|
|
1562
1605
|
window.scrollTo({ top: 0, left: 0, behavior: "smooth" });
|
|
1563
1606
|
}
|
|
1564
|
-
return (index.h("div", { class: sheet$
|
|
1607
|
+
return (index.h("div", { class: sheet$5.classes.Wrapper },
|
|
1565
1608
|
index.h("style", { type: "text/css" },
|
|
1566
1609
|
vanillaStyle$2,
|
|
1567
|
-
styleString$
|
|
1610
|
+
styleString$5),
|
|
1568
1611
|
index.h(sqmTextSpanView.TextSpanView, { type: "h3" }, content.pageLabel),
|
|
1569
|
-
index.h("sl-form", { class: sheet$
|
|
1612
|
+
index.h("sl-form", { class: sheet$5.classes.Column, "onSl-submit": callbacks.submit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
1570
1613
|
states.error && (index.h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
|
|
1571
1614
|
index.h("div", { part: "erroralert-text" }, props.states.error))),
|
|
1572
1615
|
content.formData,
|
|
@@ -1579,7 +1622,7 @@ function PortalRegisterView(props) {
|
|
|
1579
1622
|
return "Must be a valid email address";
|
|
1580
1623
|
}
|
|
1581
1624
|
} }, (((_b = (_a = states.validationState) === null || _a === void 0 ? void 0 : _a.validationErrors) === null || _b === void 0 ? void 0 : _b.email) ? {
|
|
1582
|
-
class: sheet$
|
|
1625
|
+
class: sheet$5.classes.ErrorStyle,
|
|
1583
1626
|
helpText: ((_d = (_c = states.validationState) === null || _c === void 0 ? void 0 : _c.validationErrors) === null || _d === void 0 ? void 0 : _d.email) ||
|
|
1584
1627
|
"Cannot be empty",
|
|
1585
1628
|
}
|
|
@@ -1587,18 +1630,18 @@ function PortalRegisterView(props) {
|
|
|
1587
1630
|
!states.hideInputs && (index.h("sqm-password-field", { fieldLabel: content.passwordLabel, "enable-validation": states.enablePasswordValidation })),
|
|
1588
1631
|
content.passwordField,
|
|
1589
1632
|
!states.hideInputs && states.confirmPassword && (index.h("sl-input", Object.assign({ exportparts: "label: input-label", type: "password", name: "/confirmPassword", label: content.confirmPasswordLabel, disabled: states.loading, required: true }, (((_f = (_e = states.validationState) === null || _e === void 0 ? void 0 : _e.validationErrors) === null || _f === void 0 ? void 0 : _f.confirmPassword) ? {
|
|
1590
|
-
class: sheet$
|
|
1633
|
+
class: sheet$5.classes.ErrorStyle,
|
|
1591
1634
|
helpText: ((_h = (_g = states.validationState) === null || _g === void 0 ? void 0 : _g.validationErrors) === null || _h === void 0 ? void 0 : _h.confirmPassword) ||
|
|
1592
1635
|
"Cannot be empty",
|
|
1593
1636
|
}
|
|
1594
1637
|
: [])))),
|
|
1595
1638
|
content.terms,
|
|
1596
|
-
index.h("div", { class: sheet$
|
|
1639
|
+
index.h("div", { class: sheet$5.classes.ButtonsContainer },
|
|
1597
1640
|
index.h("sl-button", { submit: true, loading: states.loading, exportparts: "base: primarybutton-base", type: "primary" }, content.submitLabel || "Register"),
|
|
1598
1641
|
content.secondaryButton))));
|
|
1599
1642
|
}
|
|
1600
1643
|
|
|
1601
|
-
const style$
|
|
1644
|
+
const style$6 = {
|
|
1602
1645
|
Description: {
|
|
1603
1646
|
"& input[type=checkbox]": {
|
|
1604
1647
|
display: "none",
|
|
@@ -1637,13 +1680,13 @@ const style$5 = {
|
|
|
1637
1680
|
},
|
|
1638
1681
|
},
|
|
1639
1682
|
};
|
|
1640
|
-
const sheet$
|
|
1641
|
-
const styleString$
|
|
1683
|
+
const sheet$6 = JSS.createStyleSheet(style$6);
|
|
1684
|
+
const styleString$6 = sheet$6.toString();
|
|
1642
1685
|
function Details(props) {
|
|
1643
1686
|
const rid = Math.random().toString(36).slice(2);
|
|
1644
|
-
return (index.h("div",
|
|
1645
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
1646
|
-
index.h("span", { class: sheet$
|
|
1687
|
+
return (index.h("div", { style: { opacity: props.opacity } },
|
|
1688
|
+
index.h("style", { type: "text/css" }, styleString$6),
|
|
1689
|
+
index.h("span", { class: sheet$6.classes.Description },
|
|
1647
1690
|
index.h("input", { type: "checkbox", id: "details-" + rid }),
|
|
1648
1691
|
index.h("label", { class: "details", htmlFor: "details-" + rid },
|
|
1649
1692
|
index.h("sl-icon", { name: "chevron-down" })),
|
|
@@ -1656,9 +1699,16 @@ const Gift = () => {
|
|
|
1656
1699
|
index.h("path", { d: "M1.5 9V15C1.5 15.5523 1.94772 16 2.5 16H7V5H4.64242H1C0.447715 5 0 5.44772 0 6V8C0 8.55228 0.447715 9 1 9H1.5Z", fill: "#F2C94C" }),
|
|
1657
1700
|
index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M1.5 9V10H14.5V9H1.5Z", fill: "#BE9720" }),
|
|
1658
1701
|
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: "#EB5757" })));
|
|
1702
|
+
};
|
|
1703
|
+
const GreyGift = () => {
|
|
1704
|
+
return (index.h("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
1705
|
+
index.h("path", { d: "M15 5H12.4508H9V16H13.5C14.0523 16 14.5 15.5523 14.5 15V9H15C15.5523 9 16 8.55228 16 8V6C16 5.44772 15.5523 5 15 5Z", fill: "#C9C9C9" }),
|
|
1706
|
+
index.h("path", { d: "M1.5 9V15C1.5 15.5523 1.94772 16 2.5 16H7V5H4.64242H1C0.447715 5 0 5.44772 0 6V8C0 8.55228 0.447715 9 1 9H1.5Z", fill: "#C9C9C9" }),
|
|
1707
|
+
index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M1.5 9V10H14.5V9H1.5Z", fill: "#A5A3A3" }),
|
|
1708
|
+
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" })));
|
|
1659
1709
|
};
|
|
1660
1710
|
|
|
1661
|
-
const style$
|
|
1711
|
+
const style$7 = {
|
|
1662
1712
|
ProgressBar: {
|
|
1663
1713
|
"& .progress-bar": {
|
|
1664
1714
|
height: "0",
|
|
@@ -1670,17 +1720,34 @@ const style$6 = {
|
|
|
1670
1720
|
lineHeight: "45px",
|
|
1671
1721
|
userSelect: "none",
|
|
1672
1722
|
},
|
|
1723
|
+
"& .progress-bar.repeatable-steps": {
|
|
1724
|
+
marginLeft: "var(--sl-spacing-x-small)",
|
|
1725
|
+
},
|
|
1673
1726
|
"&[data-steps]": {
|
|
1674
1727
|
marginTop: "calc(-1*var(--sl-spacing-x-small))",
|
|
1675
1728
|
},
|
|
1676
1729
|
"&[data-steps] .progress-bar": {
|
|
1677
1730
|
marginTop: "var(--sl-spacing-medium)",
|
|
1678
1731
|
},
|
|
1679
|
-
"&[data-expired] .progress
|
|
1680
|
-
|
|
1732
|
+
"&[data-expired] .progress::after": {
|
|
1733
|
+
backgroundColor: "#bfbfbf",
|
|
1681
1734
|
},
|
|
1682
|
-
"&
|
|
1683
|
-
|
|
1735
|
+
"&[data-expired] .filled::after": {
|
|
1736
|
+
backgroundColor: "#bfbfbf",
|
|
1737
|
+
},
|
|
1738
|
+
"&[data-complete] .filled::after .progress::after": {
|
|
1739
|
+
backgroundColor: "var(--sl-color-primary-200)",
|
|
1740
|
+
},
|
|
1741
|
+
"& .gift": {
|
|
1742
|
+
textAlign: "center",
|
|
1743
|
+
marginLeft: "-100px",
|
|
1744
|
+
marginRight: "-100px",
|
|
1745
|
+
position: "relative",
|
|
1746
|
+
top: "-18px",
|
|
1747
|
+
},
|
|
1748
|
+
"& .gift.start": {
|
|
1749
|
+
transform: "scale(80%)",
|
|
1750
|
+
top: "-20px",
|
|
1684
1751
|
},
|
|
1685
1752
|
"& .filled:after": {
|
|
1686
1753
|
content: '""',
|
|
@@ -1751,30 +1818,16 @@ const style$6 = {
|
|
|
1751
1818
|
borderRadius: "4px",
|
|
1752
1819
|
backgroundColor: "#E0E0E0",
|
|
1753
1820
|
},
|
|
1754
|
-
"& .gift.bw": {
|
|
1755
|
-
filter: "grayscale(100%)",
|
|
1756
|
-
},
|
|
1757
|
-
"& .gift.start": {
|
|
1758
|
-
transform: "scale(80%)",
|
|
1759
|
-
top: "-20px",
|
|
1760
|
-
},
|
|
1761
|
-
"& .gift": {
|
|
1762
|
-
textAlign: "center",
|
|
1763
|
-
marginLeft: "-100px",
|
|
1764
|
-
marginRight: "-100px",
|
|
1765
|
-
position: "relative",
|
|
1766
|
-
top: "-18px",
|
|
1767
|
-
},
|
|
1768
1821
|
},
|
|
1769
1822
|
};
|
|
1770
|
-
const sheet$
|
|
1771
|
-
const styleString$
|
|
1823
|
+
const sheet$7 = JSS.createStyleSheet(style$7, { classNamePrefix: "sqm-prog-bar" });
|
|
1824
|
+
const styleString$7 = sheet$7.toString();
|
|
1772
1825
|
function ProgressBarView(props) {
|
|
1773
|
-
const { progress = 0, goal = 1, steps = false, progressBarUnit = "", repeatable = false, expired = false, finite = 0, } = props;
|
|
1826
|
+
const { progress = 0, goal = 1, steps = false, progressBarUnit = "", repeatable = false, complete = false, expired = false, finite = 0, opacity = "1", } = props;
|
|
1774
1827
|
let aggregate = buildProgressBar(repeatable, steps, props);
|
|
1775
1828
|
const { columns, items } = aggregate;
|
|
1776
|
-
return (index.h("div", { class: sheet$
|
|
1777
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
1829
|
+
return (index.h("div", { class: sheet$7.classes.ProgressBar, "data-expired": expired, "data-complete": complete, "data-steps": steps, "data-done": goal <= progress, style: { opacity: opacity } },
|
|
1830
|
+
index.h("style", { type: "text/css" }, styleString$7),
|
|
1778
1831
|
index.h("div", { class: (!Boolean(finite) && progress >= 2 * goal) ||
|
|
1779
1832
|
(Boolean(finite) && progress > 2 * goal)
|
|
1780
1833
|
? "progress-bar repeatable-steps"
|
|
@@ -1802,7 +1855,7 @@ function buildProgressBar(repeatable, steps, props) {
|
|
|
1802
1855
|
}
|
|
1803
1856
|
}
|
|
1804
1857
|
}
|
|
1805
|
-
function addSteps({ progress, goal }) {
|
|
1858
|
+
function addSteps({ progress, goal, expired }) {
|
|
1806
1859
|
const items = [];
|
|
1807
1860
|
const columns = [];
|
|
1808
1861
|
let ratio = 1 / goal;
|
|
@@ -1825,21 +1878,22 @@ function addSteps({ progress, goal }) {
|
|
|
1825
1878
|
columns.push("0fr");
|
|
1826
1879
|
items.push(index.h("div", { class: "filled" }));
|
|
1827
1880
|
items.push(index.h("div", { class: "progress bg" }, goal));
|
|
1828
|
-
items.push(index.h("div", { class: "gift" }, index.h(Gift, null)));
|
|
1881
|
+
items.push(index.h("div", { class: "gift" }, expired ? index.h(GreyGift, null) : index.h(Gift, null)));
|
|
1829
1882
|
}
|
|
1830
1883
|
// reward fail
|
|
1831
1884
|
else {
|
|
1832
1885
|
columns.push("0fr");
|
|
1833
1886
|
items.push(index.h("div", { class: "remain" }));
|
|
1834
1887
|
items.push(index.h("div", { class: "empty bg" }, goal));
|
|
1835
|
-
items.push(index.h("div", { class: "gift
|
|
1888
|
+
items.push(index.h("div", { class: "gift" },
|
|
1889
|
+
index.h(GreyGift, null)));
|
|
1836
1890
|
}
|
|
1837
1891
|
return {
|
|
1838
1892
|
items,
|
|
1839
1893
|
columns: columns.join(" "),
|
|
1840
1894
|
};
|
|
1841
1895
|
}
|
|
1842
|
-
function addLinearRepeatable({ progress, goal, progressBarUnit, finite, }) {
|
|
1896
|
+
function addLinearRepeatable({ progress, goal, progressBarUnit, finite, expired, }) {
|
|
1843
1897
|
let repetitions = Math.floor(progress / goal);
|
|
1844
1898
|
let ratio = ((progress % goal) / goal) * 0.5;
|
|
1845
1899
|
const items = [];
|
|
@@ -1851,11 +1905,10 @@ function addLinearRepeatable({ progress, goal, progressBarUnit, finite, }) {
|
|
|
1851
1905
|
items.push(index.h("div", { class: progress == goal ? "progress top bg" : "progress top" }, progressBarUnit + progress));
|
|
1852
1906
|
items.push(index.h("div", { class: "remain" }));
|
|
1853
1907
|
items.push(index.h("div", { class: "progress bg" }, progressBarUnit + goal));
|
|
1854
|
-
items.push(index.h("div", { class: progress == goal ?
|
|
1855
|
-
index.h(Gift, null)));
|
|
1908
|
+
items.push(index.h("div", { class: "gift" }, progress == goal ? expired ? index.h(GreyGift, null) : index.h(Gift, null) : index.h(GreyGift, null)));
|
|
1856
1909
|
items.push(index.h("div", { class: "remain" }));
|
|
1857
1910
|
items.push(index.h("div", { class: "progress bg" }, progressBarUnit + goal * 2));
|
|
1858
|
-
items.push(index.h("div", { class: "gift
|
|
1911
|
+
items.push(index.h("div", { class: "gift" }, index.h(GreyGift, null)));
|
|
1859
1912
|
}
|
|
1860
1913
|
// single repetition
|
|
1861
1914
|
else if (repetitions == 1) {
|
|
@@ -1863,18 +1916,18 @@ function addLinearRepeatable({ progress, goal, progressBarUnit, finite, }) {
|
|
|
1863
1916
|
"0.5fr 0fr 0fr " + ratio + "fr 0fr " + (0.5 - ratio) + "fr 0fr 0fr";
|
|
1864
1917
|
items.push(index.h("div", { class: "filled" }));
|
|
1865
1918
|
items.push(index.h("div", { class: "progress bg" }, progressBarUnit + goal));
|
|
1866
|
-
items.push(index.h("div", { class: "gift" }, index.h(Gift, null)));
|
|
1919
|
+
items.push(index.h("div", { class: "gift" }, expired ? index.h(GreyGift, null) : index.h(Gift, null)));
|
|
1867
1920
|
items.push(index.h("div", { class: "filled" }));
|
|
1868
1921
|
items.push(index.h("div", { class: progress == goal ? "progress top bg" : "progress top" }, progress == goal ? "" : progressBarUnit + progress));
|
|
1869
1922
|
items.push(index.h("div", { class: "remain" }));
|
|
1870
1923
|
items.push(index.h("div", { class: "progress bg" }, progressBarUnit + goal * 2));
|
|
1871
|
-
items.push(index.h("div", { class: "gift
|
|
1924
|
+
items.push(index.h("div", { class: "gift" }, index.h(GreyGift, null)));
|
|
1872
1925
|
}
|
|
1873
1926
|
// finite repetition hit
|
|
1874
1927
|
else if (finite && repetitions >= finite) {
|
|
1875
1928
|
if (repetitions > 2) {
|
|
1876
1929
|
items.push(index.h("div", { class: "progress bg" }, progressBarUnit + goal * (finite - 2)));
|
|
1877
|
-
items.push(index.h("div", { class: "gift start" }, index.h(Gift, null)));
|
|
1930
|
+
items.push(index.h("div", { class: "gift start" }, expired ? index.h(GreyGift, null) : index.h(Gift, null)));
|
|
1878
1931
|
columns = "0fr 0fr 0.5fr 0fr 0fr 0.5fr 0fr 0fr";
|
|
1879
1932
|
}
|
|
1880
1933
|
else {
|
|
@@ -1882,10 +1935,10 @@ function addLinearRepeatable({ progress, goal, progressBarUnit, finite, }) {
|
|
|
1882
1935
|
}
|
|
1883
1936
|
items.push(index.h("div", { class: "filled" }));
|
|
1884
1937
|
items.push(index.h("div", { class: "progress bg" }, progressBarUnit + goal * (finite - 1)));
|
|
1885
|
-
items.push(index.h("div", { class: "gift" }, index.h(Gift, null)));
|
|
1938
|
+
items.push(index.h("div", { class: "gift" }, expired ? index.h(GreyGift, null) : index.h(Gift, null)));
|
|
1886
1939
|
items.push(index.h("div", { class: "filled" }));
|
|
1887
1940
|
items.push(index.h("div", { class: "progress bg" }, progressBarUnit + goal * finite));
|
|
1888
|
-
items.push(index.h("div", { class: "gift" }, index.h(Gift, null)));
|
|
1941
|
+
items.push(index.h("div", { class: "gift" }, expired ? index.h(GreyGift, null) : index.h(Gift, null)));
|
|
1889
1942
|
}
|
|
1890
1943
|
// multiple repetitions
|
|
1891
1944
|
else {
|
|
@@ -1896,19 +1949,19 @@ function addLinearRepeatable({ progress, goal, progressBarUnit, finite, }) {
|
|
|
1896
1949
|
(0.5 - ratio) +
|
|
1897
1950
|
"fr 0fr 0fr";
|
|
1898
1951
|
items.push(index.h("div", { class: "progress bg" }, progressBarUnit + goal * (repetitions - 1)));
|
|
1899
|
-
items.push(index.h("div", { class: "gift start" }, index.h(Gift, null)));
|
|
1952
|
+
items.push(index.h("div", { class: "gift start" }, expired ? index.h(GreyGift, null) : index.h(Gift, null)));
|
|
1900
1953
|
items.push(index.h("div", { class: "filled" }));
|
|
1901
1954
|
items.push(index.h("div", { class: "progress bg" }, progressBarUnit + goal * repetitions));
|
|
1902
|
-
items.push(index.h("div", { class: "gift" }, index.h(Gift, null)));
|
|
1955
|
+
items.push(index.h("div", { class: "gift" }, expired ? index.h(GreyGift, null) : index.h(Gift, null)));
|
|
1903
1956
|
items.push(index.h("div", { class: "filled" }));
|
|
1904
1957
|
items.push(index.h("div", { class: progress == goal * repetitions ? "progress top bg" : "progress top" }, progress == goal * repetitions ? "" : progressBarUnit + progress));
|
|
1905
1958
|
items.push(index.h("div", { class: "remain" }));
|
|
1906
1959
|
items.push(index.h("div", { class: "progress bg" }, progressBarUnit + goal * (repetitions + 1)));
|
|
1907
|
-
items.push(index.h("div", { class: "gift
|
|
1960
|
+
items.push(index.h("div", { class: "gift" }, index.h(GreyGift, null)));
|
|
1908
1961
|
}
|
|
1909
1962
|
return { items, columns };
|
|
1910
1963
|
}
|
|
1911
|
-
function addStepsRepeatable({ progress, goal, finite, }) {
|
|
1964
|
+
function addStepsRepeatable({ progress, goal, finite, expired, }) {
|
|
1912
1965
|
const items = [];
|
|
1913
1966
|
const columns = [];
|
|
1914
1967
|
let repetitions = Math.floor(progress / goal);
|
|
@@ -1923,14 +1976,14 @@ function addStepsRepeatable({ progress, goal, finite, }) {
|
|
|
1923
1976
|
columns.push("0fr");
|
|
1924
1977
|
items.push(index.h("div", { class: "remain" }));
|
|
1925
1978
|
items.push(index.h("div", { class: "empty bg" }, goal));
|
|
1926
|
-
items.push(index.h("div", { class: "gift
|
|
1979
|
+
items.push(index.h("div", { class: "gift" }, index.h(GreyGift, null)));
|
|
1927
1980
|
}
|
|
1928
1981
|
else if (i == goal * 2) {
|
|
1929
1982
|
columns.push("0fr");
|
|
1930
1983
|
columns.push("0fr");
|
|
1931
1984
|
items.push(index.h("div", { class: "remain" }));
|
|
1932
1985
|
items.push(index.h("div", { class: "empty bg" }, goal * 2));
|
|
1933
|
-
items.push(index.h("div", { class: "gift
|
|
1986
|
+
items.push(index.h("div", { class: "gift" }, index.h(GreyGift, null)));
|
|
1934
1987
|
}
|
|
1935
1988
|
else {
|
|
1936
1989
|
items.push(index.h("div", { class: "remain" }));
|
|
@@ -1941,7 +1994,7 @@ function addStepsRepeatable({ progress, goal, finite, }) {
|
|
|
1941
1994
|
columns.push("0fr");
|
|
1942
1995
|
items.push(index.h("div", { class: "filled" }));
|
|
1943
1996
|
items.push(index.h("div", { class: "progress bg" }, i));
|
|
1944
|
-
items.push(index.h("div", { class: "gift" }, index.h(Gift, null)));
|
|
1997
|
+
items.push(index.h("div", { class: "gift" }, expired ? index.h(GreyGift, null) : index.h(Gift, null)));
|
|
1945
1998
|
}
|
|
1946
1999
|
else {
|
|
1947
2000
|
items.push(index.h("div", { class: "filled" }));
|
|
@@ -1956,7 +2009,7 @@ function addStepsRepeatable({ progress, goal, finite, }) {
|
|
|
1956
2009
|
columns.push("0fr");
|
|
1957
2010
|
columns.push("0fr");
|
|
1958
2011
|
items.push(index.h("div", { class: "progress bg" }, goal * (finite - 2)));
|
|
1959
|
-
items.push(index.h("div", { class: "gift start" }, index.h(Gift, null)));
|
|
2012
|
+
items.push(index.h("div", { class: "gift start" }, expired ? index.h(GreyGift, null) : index.h(Gift, null)));
|
|
1960
2013
|
}
|
|
1961
2014
|
for (let i = 1; i < goal * 2 + 1; i++) {
|
|
1962
2015
|
columns.push(ratio + "fr");
|
|
@@ -1966,21 +2019,21 @@ function addStepsRepeatable({ progress, goal, finite, }) {
|
|
|
1966
2019
|
columns.push("0fr");
|
|
1967
2020
|
items.push(index.h("div", { class: "remain" }));
|
|
1968
2021
|
items.push(index.h("div", { class: "progress bg" }, goal * (finite - 1)));
|
|
1969
|
-
items.push(index.h("div", { class: "gift
|
|
2022
|
+
items.push(index.h("div", { class: "gift" }, index.h(GreyGift, null)));
|
|
1970
2023
|
}
|
|
1971
2024
|
}
|
|
1972
2025
|
else if (i == goal) {
|
|
1973
2026
|
columns.push("0fr");
|
|
1974
2027
|
items.push(index.h("div", { class: "filled" }));
|
|
1975
2028
|
items.push(index.h("div", { class: "progress bg" }, goal * (finite - 1)));
|
|
1976
|
-
items.push(index.h("div", { class: "gift" }, index.h(Gift, null)));
|
|
2029
|
+
items.push(index.h("div", { class: "gift" }, expired ? index.h(GreyGift, null) : index.h(Gift, null)));
|
|
1977
2030
|
}
|
|
1978
2031
|
else if (i == goal * 2) {
|
|
1979
2032
|
columns.push("0fr");
|
|
1980
2033
|
columns.push("0fr");
|
|
1981
2034
|
items.push(index.h("div", { class: "filled" }));
|
|
1982
2035
|
items.push(index.h("div", { class: "progress bg" }, goal * finite));
|
|
1983
|
-
items.push(index.h("div", { class: "gift" }, index.h(Gift, null)));
|
|
2036
|
+
items.push(index.h("div", { class: "gift" }, expired ? index.h(GreyGift, null) : index.h(Gift, null)));
|
|
1984
2037
|
}
|
|
1985
2038
|
else {
|
|
1986
2039
|
items.push(index.h("div", { class: "filled" }));
|
|
@@ -1995,7 +2048,7 @@ function addStepsRepeatable({ progress, goal, finite, }) {
|
|
|
1995
2048
|
columns.push("0fr");
|
|
1996
2049
|
columns.push("0fr");
|
|
1997
2050
|
items.push(index.h("div", { class: "progress bg" }, goal * (repetitions - 1)));
|
|
1998
|
-
items.push(index.h("div", { class: "gift start" }, index.h(Gift, null)));
|
|
2051
|
+
items.push(index.h("div", { class: "gift start" }, expired ? index.h(GreyGift, null) : index.h(Gift, null)));
|
|
1999
2052
|
for (let i = 1; i < goal * 2 + 1; i++) {
|
|
2000
2053
|
columns.push(ratio + "fr");
|
|
2001
2054
|
columns.push("0fr");
|
|
@@ -2004,7 +2057,7 @@ function addStepsRepeatable({ progress, goal, finite, }) {
|
|
|
2004
2057
|
columns.push("0fr");
|
|
2005
2058
|
items.push(index.h("div", { class: "filled" }));
|
|
2006
2059
|
items.push(index.h("div", { class: "progress bg" }, i + goal * (repetitions - 1)));
|
|
2007
|
-
items.push(index.h("div", { class: "gift" }, index.h(Gift, null)));
|
|
2060
|
+
items.push(index.h("div", { class: "gift" }, expired ? index.h(GreyGift, null) : index.h(Gift, null)));
|
|
2008
2061
|
}
|
|
2009
2062
|
else {
|
|
2010
2063
|
items.push(index.h("div", { class: "filled" }));
|
|
@@ -2017,7 +2070,7 @@ function addStepsRepeatable({ progress, goal, finite, }) {
|
|
|
2017
2070
|
columns.push("0fr");
|
|
2018
2071
|
items.push(index.h("div", { class: "remain" }));
|
|
2019
2072
|
items.push(index.h("div", { class: "empty bg" }, i + goal * (repetitions - 1)));
|
|
2020
|
-
items.push(index.h("div", { class: "gift
|
|
2073
|
+
items.push(index.h("div", { class: "gift" }, index.h(GreyGift, null)));
|
|
2021
2074
|
}
|
|
2022
2075
|
else {
|
|
2023
2076
|
items.push(index.h("div", { class: "remain" }));
|
|
@@ -2032,7 +2085,7 @@ function addStepsRepeatable({ progress, goal, finite, }) {
|
|
|
2032
2085
|
}
|
|
2033
2086
|
return { items, columns: columns.join(" ") };
|
|
2034
2087
|
}
|
|
2035
|
-
function addLinear({ progress, goal, progressBarUnit, }) {
|
|
2088
|
+
function addLinear({ progress, goal, progressBarUnit, expired }) {
|
|
2036
2089
|
const items = [];
|
|
2037
2090
|
let columns = "";
|
|
2038
2091
|
const ratio = progress / goal;
|
|
@@ -2044,8 +2097,7 @@ function addLinear({ progress, goal, progressBarUnit, }) {
|
|
|
2044
2097
|
: progressBarUnit + clamp(progress, 0, goal)));
|
|
2045
2098
|
items.push(index.h("div", { class: "remain" }));
|
|
2046
2099
|
items.push(index.h("div", { class: "progress bg" }, progressBarUnit + goal));
|
|
2047
|
-
items.push(index.h("div", { class: clamp(progress, 0, goal) == goal ?
|
|
2048
|
-
index.h(Gift, null)));
|
|
2100
|
+
items.push(index.h("div", { class: "gift" }, clamp(progress, 0, goal) == goal ? (expired ? (index.h(GreyGift, null)) : (index.h(Gift, null))) : (index.h(GreyGift, null))));
|
|
2049
2101
|
return { items, columns };
|
|
2050
2102
|
}
|
|
2051
2103
|
function clamp(x, min, max) {
|
|
@@ -2066,7 +2118,7 @@ const arrow_left_right = () => {
|
|
|
2066
2118
|
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" })));
|
|
2067
2119
|
};
|
|
2068
2120
|
|
|
2069
|
-
const style$
|
|
2121
|
+
const style$8 = {
|
|
2070
2122
|
TaskCard: {
|
|
2071
2123
|
display: "inline-block",
|
|
2072
2124
|
width: "100%",
|
|
@@ -2174,6 +2226,12 @@ const style$7 = {
|
|
|
2174
2226
|
},
|
|
2175
2227
|
},
|
|
2176
2228
|
Footer: {
|
|
2229
|
+
"&[data-subdue] .success": {
|
|
2230
|
+
color: "var(--sl-color-primary-300)",
|
|
2231
|
+
},
|
|
2232
|
+
"&[data-subdue] .neutral": {
|
|
2233
|
+
color: "var(--sl-color-neutral-300)",
|
|
2234
|
+
},
|
|
2177
2235
|
display: "flex",
|
|
2178
2236
|
"& .icon": {
|
|
2179
2237
|
fontSize: "var(--sl-font-size-xx-small)",
|
|
@@ -2211,12 +2269,11 @@ const style$7 = {
|
|
|
2211
2269
|
"& .datetime": {
|
|
2212
2270
|
display: "block",
|
|
2213
2271
|
marginTop: "var(--sl-spacing-xx-small)",
|
|
2214
|
-
color: "var(--sl-color-neutral-400)",
|
|
2215
2272
|
},
|
|
2216
2273
|
},
|
|
2217
2274
|
};
|
|
2218
|
-
const sheet$
|
|
2219
|
-
const styleString$
|
|
2275
|
+
const sheet$8 = JSS.createStyleSheet(style$8);
|
|
2276
|
+
const styleString$8 = sheet$8.toString();
|
|
2220
2277
|
function TaskCardView(props) {
|
|
2221
2278
|
var _a, _b;
|
|
2222
2279
|
const { callbacks, states, content } = props;
|
|
@@ -2251,11 +2308,11 @@ function TaskCardView(props) {
|
|
|
2251
2308
|
margin-bottom: var(--sl-spacing-large);
|
|
2252
2309
|
}
|
|
2253
2310
|
`;
|
|
2254
|
-
return (index.h("div", { class: sheet$
|
|
2311
|
+
return (index.h("div", { class: sheet$8.classes.TaskCard },
|
|
2255
2312
|
index.h("style", { type: "text/css" },
|
|
2256
|
-
styleString$
|
|
2313
|
+
styleString$8,
|
|
2257
2314
|
vanillaStyle),
|
|
2258
|
-
!states.loading && taskNotStarted && (index.h("div", { class: sheet$
|
|
2315
|
+
!states.loading && taskNotStarted && (index.h("div", { class: sheet$8.classes.NotStarted },
|
|
2259
2316
|
index.h("span", { class: "icon" },
|
|
2260
2317
|
index.h("sl-icon", { name: "info-circle-fill" })),
|
|
2261
2318
|
global.intl.formatMessage({
|
|
@@ -2266,7 +2323,7 @@ function TaskCardView(props) {
|
|
|
2266
2323
|
.setLocale(utils.luxonLocale(states.locale))
|
|
2267
2324
|
.toLocaleString(luxon.luxon.DateTime.DATETIME_MED),
|
|
2268
2325
|
}))),
|
|
2269
|
-
!states.loading && taskEnded && (index.h("div", { class: sheet$
|
|
2326
|
+
!states.loading && taskEnded && (index.h("div", { class: sheet$8.classes.Ended },
|
|
2270
2327
|
index.h("span", { class: "icon" },
|
|
2271
2328
|
index.h("sl-icon", { name: "exclamation-triangle-fill" })),
|
|
2272
2329
|
global.intl.formatMessage({
|
|
@@ -2285,8 +2342,8 @@ function TaskCardView(props) {
|
|
|
2285
2342
|
: taskComplete
|
|
2286
2343
|
? "main complete"
|
|
2287
2344
|
: "main" },
|
|
2288
|
-
index.h("div", { class:
|
|
2289
|
-
index.h("div", { class: sheet$
|
|
2345
|
+
index.h("div", { class: "container", "data-subdue": taskComplete || taskUnavailable },
|
|
2346
|
+
index.h("div", { class: sheet$8.classes.Header, style: { opacity: taskComplete || taskUnavailable ? "0.45" : "1" } }, states.loading ? (index.h("sl-skeleton", { style: { width: "22%", margin: "0" } })) : (index.h("div", null,
|
|
2290
2347
|
showComplete && (index.h("span", { class: taskUnavailable ? "icon neutral" : "icon" }, taskComplete ? checkmark_filled$1 : checkmark_circle$1)),
|
|
2291
2348
|
index.h("span", { class: "value" }, content.rewardAmount),
|
|
2292
2349
|
index.h("span", { class: "text" }, content.rewardUnit)))),
|
|
@@ -2298,22 +2355,23 @@ function TaskCardView(props) {
|
|
|
2298
2355
|
? "var(--sl-spacing-xx-large)"
|
|
2299
2356
|
: ""
|
|
2300
2357
|
: "",
|
|
2358
|
+
opacity: taskComplete || taskUnavailable ? "0.45" : "1",
|
|
2301
2359
|
} }, content.cardTitle)),
|
|
2302
|
-
states.loading ? (index.h("sl-skeleton", { style: { margin: "var(--sl-spacing-medium) 0" } })) : (content.description && index.h(Details, Object.assign({}, props))),
|
|
2303
|
-
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, { complete: taskComplete, expired: taskUnavailable })))),
|
|
2304
|
-
index.h("div", { class: sheet$
|
|
2360
|
+
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" })))),
|
|
2361
|
+
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 })))),
|
|
2362
|
+
index.h("div", { class: sheet$8.classes.Footer, "data-subdue": taskComplete || taskUnavailable }, states.loading ? (index.h("sl-skeleton", { style: { width: "25%", marginLeft: "auto" } })) : (index.h("div", { style: { display: "contents" } },
|
|
2305
2363
|
index.h("span", { class: "text" },
|
|
2306
2364
|
content.repeatable && (index.h("div", null,
|
|
2307
2365
|
index.h("span", { class: repetitions > 0
|
|
2308
2366
|
? taskUnavailable
|
|
2309
2367
|
? "icon neutral"
|
|
2310
2368
|
: "icon success"
|
|
2311
|
-
: "icon" }, arrow_left_right$1),
|
|
2369
|
+
: "icon neutral", "data-subdue": taskComplete || taskUnavailable }, arrow_left_right$1),
|
|
2312
2370
|
index.h("span", { class: repetitions > 0
|
|
2313
2371
|
? taskUnavailable
|
|
2314
2372
|
? "neutral"
|
|
2315
2373
|
: "success"
|
|
2316
|
-
: "" }, global.intl.formatMessage({
|
|
2374
|
+
: "neutral", "data-subdue": taskComplete || taskUnavailable }, global.intl.formatMessage({
|
|
2317
2375
|
id: "completedMessage",
|
|
2318
2376
|
defaultMessage: content.completedText,
|
|
2319
2377
|
}, {
|
|
@@ -2322,7 +2380,7 @@ function TaskCardView(props) {
|
|
|
2322
2380
|
? Math.min(repetitions, content.finite)
|
|
2323
2381
|
: repetitions,
|
|
2324
2382
|
})))),
|
|
2325
|
-
dateEnd && !taskUnavailable && (index.h("span", { class: "datetime" }, global.intl.formatMessage({
|
|
2383
|
+
dateEnd && !taskUnavailable && (index.h("span", { class: "datetime neutral", "data-subdue": taskComplete || taskUnavailable }, global.intl.formatMessage({
|
|
2326
2384
|
id: "expiryMessage",
|
|
2327
2385
|
defaultMessage: content.expiryMessage,
|
|
2328
2386
|
}, {
|
|
@@ -2334,12 +2392,15 @@ function TaskCardView(props) {
|
|
|
2334
2392
|
? "action neutral"
|
|
2335
2393
|
: taskComplete
|
|
2336
2394
|
? "action disabled"
|
|
2337
|
-
: "action", type: "primary", size: "small", onClick: callbacks.onClick, loading: states.loadingEvent, disabled: taskComplete || taskUnavailable
|
|
2395
|
+
: "action", type: "primary", size: "small", onClick: callbacks.onClick, loading: states.loadingEvent, disabled: taskComplete || taskUnavailable, style: {
|
|
2396
|
+
opacity: taskComplete || taskUnavailable ? "0.45" : "1",
|
|
2397
|
+
} }, content.buttonText))))))));
|
|
2338
2398
|
}
|
|
2339
2399
|
|
|
2340
2400
|
function ReferralIframeView(props) {
|
|
2341
2401
|
const { states, data } = props;
|
|
2342
2402
|
const { content } = states;
|
|
2403
|
+
// dependent on props
|
|
2343
2404
|
const style = {
|
|
2344
2405
|
Container: {
|
|
2345
2406
|
position: "relative",
|
|
@@ -2450,7 +2511,7 @@ function ProgressBar({ stageCount, currentStage, }) {
|
|
|
2450
2511
|
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 })))));
|
|
2451
2512
|
}
|
|
2452
2513
|
|
|
2453
|
-
const style$
|
|
2514
|
+
const style$9 = {
|
|
2454
2515
|
HostBlock: mixins.HostBlock,
|
|
2455
2516
|
Container: {
|
|
2456
2517
|
minWidth: "300px",
|
|
@@ -2801,8 +2862,8 @@ const style$8 = {
|
|
|
2801
2862
|
},
|
|
2802
2863
|
};
|
|
2803
2864
|
// JSS config
|
|
2804
|
-
const sheet$
|
|
2805
|
-
const styleString$
|
|
2865
|
+
const sheet$9 = JSS.createStyleSheet(style$9);
|
|
2866
|
+
const styleString$9 = sheet$9.toString();
|
|
2806
2867
|
const stageList = ["chooseReward", "chooseAmount", "confirmation", "success"];
|
|
2807
2868
|
function RewardExchangeView(props) {
|
|
2808
2869
|
const { states, data, callbacks, refs } = props;
|
|
@@ -2825,7 +2886,7 @@ function RewardExchangeView(props) {
|
|
|
2825
2886
|
sourceUnit: item.sourceUnit,
|
|
2826
2887
|
})));
|
|
2827
2888
|
}
|
|
2828
|
-
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$
|
|
2889
|
+
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) => {
|
|
2829
2890
|
var _a, _b, _c, _d, _e;
|
|
2830
2891
|
return callbacks.setExchangeState({
|
|
2831
2892
|
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,
|
|
@@ -2833,7 +2894,7 @@ function RewardExchangeView(props) {
|
|
|
2833
2894
|
});
|
|
2834
2895
|
} }, (_c = item.steps) === null || _c === void 0 ? void 0 : _c.map((step) => {
|
|
2835
2896
|
var _a, _b;
|
|
2836
|
-
return (index.h("sl-menu-item", { value: step, disabled: !step.available, class: sheet$
|
|
2897
|
+
return (index.h("sl-menu-item", { value: step, disabled: !step.available, class: sheet$9.classes.SelectItem },
|
|
2837
2898
|
step.prettyDestinationValue,
|
|
2838
2899
|
index.h("br", null),
|
|
2839
2900
|
index.h("div", { class: "step-cost", slot: "suffix" },
|
|
@@ -2852,8 +2913,8 @@ function RewardExchangeView(props) {
|
|
|
2852
2913
|
var _a;
|
|
2853
2914
|
return [
|
|
2854
2915
|
index.h("div", null,
|
|
2855
|
-
index.h("div", { class: sheet$
|
|
2856
|
-
states.loading || states.queryError ? (loading()) : (index.h("div", { class: sheet$
|
|
2916
|
+
index.h("div", { class: sheet$9.classes.Title }, states.content.text.rewardTitle),
|
|
2917
|
+
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) => {
|
|
2857
2918
|
var _a, _b, _c, _d, _e;
|
|
2858
2919
|
const style = {
|
|
2859
2920
|
boxShadow: item.key === (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.key)
|
|
@@ -2862,7 +2923,7 @@ function RewardExchangeView(props) {
|
|
|
2862
2923
|
borderRadius: "4px",
|
|
2863
2924
|
};
|
|
2864
2925
|
return (index.h("div", { key: item.key, style: style },
|
|
2865
|
-
index.h("sl-card", { class: sheet$
|
|
2926
|
+
index.h("sl-card", { class: sheet$9.classes.Card, style: {
|
|
2866
2927
|
cursor: item.unavailableReasonCode
|
|
2867
2928
|
? "not-allowed"
|
|
2868
2929
|
: "pointer",
|
|
@@ -2879,14 +2940,14 @@ function RewardExchangeView(props) {
|
|
|
2879
2940
|
? "rgba(0, 0, 0, 0.05)"
|
|
2880
2941
|
: "rgba(0, 0, 0, 0)",
|
|
2881
2942
|
} },
|
|
2882
|
-
index.h("div", { class: sheet$
|
|
2943
|
+
index.h("div", { class: sheet$9.classes.Image, style: {
|
|
2883
2944
|
opacity: item.unavailableReasonCode ? "0.5" : "1",
|
|
2884
2945
|
} },
|
|
2885
2946
|
index.h("img", { class: item.unavailableReasonCode
|
|
2886
2947
|
? "image subdued"
|
|
2887
2948
|
: "image", src: (item === null || item === void 0 ? void 0 : item.imageUrl) ||
|
|
2888
2949
|
index.getAssetPath("./assets/Reward-image.png") })),
|
|
2889
|
-
index.h("div", { class: sheet$
|
|
2950
|
+
index.h("div", { class: sheet$9.classes.TextArea, style: {
|
|
2890
2951
|
opacity: item.unavailableReasonCode ? "0.5" : "1",
|
|
2891
2952
|
} },
|
|
2892
2953
|
index.h("div", { class: "title", style: {
|
|
@@ -2919,7 +2980,7 @@ function RewardExchangeView(props) {
|
|
|
2919
2980
|
item.prettySourceMinValue,
|
|
2920
2981
|
}))))))));
|
|
2921
2982
|
}))),
|
|
2922
|
-
index.h("div", { class: sheet$
|
|
2983
|
+
index.h("div", { class: sheet$9.classes.Button },
|
|
2923
2984
|
index.h("sl-button", { class: "continue right", size: "large", onClick: () => callbacks.setStage("chooseAmount"), loading: states.loading, disabled: !states.selectedItem }, states.content.text.continueText))),
|
|
2924
2985
|
];
|
|
2925
2986
|
}
|
|
@@ -2930,7 +2991,7 @@ function RewardExchangeView(props) {
|
|
|
2930
2991
|
? false
|
|
2931
2992
|
: input && !states.amount;
|
|
2932
2993
|
return (index.h("div", null,
|
|
2933
|
-
index.h("div", { class: sheet$
|
|
2994
|
+
index.h("div", { class: sheet$9.classes.ChooseAmount },
|
|
2934
2995
|
index.h("div", { class: "wrapper" },
|
|
2935
2996
|
index.h("img", { class: "image", src: (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.imageUrl) ||
|
|
2936
2997
|
index.getAssetPath("./assets/Reward-image.png") }),
|
|
@@ -2939,7 +3000,7 @@ function RewardExchangeView(props) {
|
|
|
2939
3000
|
((_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)),
|
|
2940
3001
|
((_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)),
|
|
2941
3002
|
index.h("div", { class: "space" }))),
|
|
2942
|
-
index.h("div", { class: sheet$
|
|
3003
|
+
index.h("div", { class: sheet$9.classes.Button },
|
|
2943
3004
|
index.h("sl-button", { class: "cancel", size: "large", type: "text", onClick: () => callbacks.resetState() }, states.content.text.cancelText),
|
|
2944
3005
|
index.h("sl-button", { class: "continue", size: "large", onClick: () => callbacks.setStage("confirmation"), disabled: isDisabled }, states.content.text.continueToConfirmationText)))));
|
|
2945
3006
|
}
|
|
@@ -2947,8 +3008,8 @@ function RewardExchangeView(props) {
|
|
|
2947
3008
|
const cost = (selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettySourceValue) || selectedItem.prettySourceValue;
|
|
2948
3009
|
const amount = selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettyDestinationValue;
|
|
2949
3010
|
return (index.h("div", null,
|
|
2950
|
-
index.h("div", { class: sheet$
|
|
2951
|
-
index.h("div", { class: sheet$
|
|
3011
|
+
index.h("div", { class: sheet$9.classes.Confirmation },
|
|
3012
|
+
index.h("div", { class: sheet$9.classes.Title }, states.content.text.redeemTitle),
|
|
2952
3013
|
index.h("div", { class: "wrapper" },
|
|
2953
3014
|
index.h("div", { class: "field" }, states.content.text.rewardNameTitle),
|
|
2954
3015
|
index.h("div", { class: "reward-item-container" },
|
|
@@ -2963,13 +3024,13 @@ function RewardExchangeView(props) {
|
|
|
2963
3024
|
index.h("div", { class: "wrapper top-border padding" },
|
|
2964
3025
|
index.h("div", { class: "field" }, states.content.text.costTitle),
|
|
2965
3026
|
index.h("div", { class: "value" }, cost)),
|
|
2966
|
-
index.h("div", { class: sheet$
|
|
3027
|
+
index.h("div", { class: sheet$9.classes.Button },
|
|
2967
3028
|
index.h("sl-button", { class: "cancel", type: "text", size: "large", onClick: () => callbacks.setStage("chooseAmount") }, states.content.text.backText),
|
|
2968
3029
|
index.h("sl-button", { class: "continue", size: "large", loading: states.loading, onClick: callbacks.exchangeReward }, states.content.text.redeemText)))));
|
|
2969
3030
|
}
|
|
2970
3031
|
function success() {
|
|
2971
3032
|
var _a, _b, _c, _d, _e, _f;
|
|
2972
|
-
return (index.h("div", { class: sheet$
|
|
3033
|
+
return (index.h("div", { class: sheet$9.classes.Success },
|
|
2973
3034
|
index.h(Gift$1, null),
|
|
2974
3035
|
index.h(Confetti, null),
|
|
2975
3036
|
index.h("div", { class: "title" }, (_a = states.content.text) === null || _a === void 0 ? void 0 : _a.rewardRedeemedText),
|
|
@@ -2983,8 +3044,8 @@ function RewardExchangeView(props) {
|
|
|
2983
3044
|
})),
|
|
2984
3045
|
(data === null || data === void 0 ? void 0 : data.fuelTankCode) && (index.h("div", { class: "promo" },
|
|
2985
3046
|
states.content.text.promoCode,
|
|
2986
|
-
index.h(ShareLinkView, { shareString: data.fuelTankCode,
|
|
2987
|
-
index.h("div", { class: sheet$
|
|
3047
|
+
index.h(ShareLinkView, { shareString: 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 }))),
|
|
3048
|
+
index.h("div", { class: sheet$9.classes.Button },
|
|
2988
3049
|
index.h("sl-button", { class: "continue center", type: "primary", size: "large", onClick: () => callbacks.resetState(true) }, states.content.text.doneText))));
|
|
2989
3050
|
}
|
|
2990
3051
|
const stages = {
|
|
@@ -2996,7 +3057,7 @@ function RewardExchangeView(props) {
|
|
|
2996
3057
|
const currentStage = stages[states.redeemStage];
|
|
2997
3058
|
function stageMap() {
|
|
2998
3059
|
const stageNumber = stageList.indexOf(states.redeemStage);
|
|
2999
|
-
return (index.h("div", { class: sheet$
|
|
3060
|
+
return (index.h("div", { class: sheet$9.classes.ProgressBar },
|
|
3000
3061
|
index.h("div", { class: "text-area" }, Object.keys(stageProgressList).map((stage) => {
|
|
3001
3062
|
if (stageList.indexOf(stage) <= stageNumber) {
|
|
3002
3063
|
return index.h("span", { class: "text" }, stageProgressList[stage]);
|
|
@@ -3008,10 +3069,10 @@ function RewardExchangeView(props) {
|
|
|
3008
3069
|
index.h(ProgressBar, { stageCount: 3, currentStage: stageNumber })));
|
|
3009
3070
|
}
|
|
3010
3071
|
function loading() {
|
|
3011
|
-
return (index.h("div", { class: sheet$
|
|
3072
|
+
return (index.h("div", { class: sheet$9.classes.Grid }, [...Array(states.content.text.skeletonCardNum)].map(() => {
|
|
3012
3073
|
return (index.h("div", null,
|
|
3013
|
-
index.h("sl-card", { class: sheet$
|
|
3014
|
-
index.h("div", { class: sheet$
|
|
3074
|
+
index.h("sl-card", { class: sheet$9.classes.Card },
|
|
3075
|
+
index.h("div", { class: sheet$9.classes.CardLayout },
|
|
3015
3076
|
index.h("div", null,
|
|
3016
3077
|
index.h("sl-skeleton", { style: {
|
|
3017
3078
|
width: "100px",
|
|
@@ -3043,12 +3104,12 @@ function RewardExchangeView(props) {
|
|
|
3043
3104
|
if (!(refs === null || refs === void 0 ? void 0 : refs.canvasRef))
|
|
3044
3105
|
return;
|
|
3045
3106
|
refs.canvasRef.current = canvas;
|
|
3046
|
-
}, id: "my-canvas", class: sheet$
|
|
3107
|
+
}, id: "my-canvas", class: sheet$9.classes.Confetti }));
|
|
3047
3108
|
}
|
|
3048
3109
|
if (states.noExchangeOptions)
|
|
3049
3110
|
return states.content.text.empty;
|
|
3050
|
-
return (index.h("div", { class: sheet$
|
|
3051
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
3111
|
+
return (index.h("div", { class: sheet$9.classes.Container },
|
|
3112
|
+
index.h("style", { type: "text/css" }, styleString$9),
|
|
3052
3113
|
index.h("div", null,
|
|
3053
3114
|
stageMap(),
|
|
3054
3115
|
states.exchangeError && errorMessage(),
|
|
@@ -3075,7 +3136,7 @@ const baseResponse = (data, stage = "chooseReward", selectedItem = null, selecte
|
|
|
3075
3136
|
redeemTitle: "Confirm and redeem",
|
|
3076
3137
|
redemptionSuccessText: "Redeemed {sourceValue} for {destinationValue}",
|
|
3077
3138
|
doneText: "Done",
|
|
3078
|
-
|
|
3139
|
+
tooltipText: "Copied!",
|
|
3079
3140
|
selectText: "Select amount to receive",
|
|
3080
3141
|
sourceAmountMessage: "{ruleType, select, FIXED_GLOBAL_REWARD {{sourceValue}} other {{sourceMinValue} to {sourceMaxValue}}}",
|
|
3081
3142
|
rewardRedeemedText: "Reward redeemed",
|
|
@@ -3440,6 +3501,7 @@ const empty = {
|
|
|
3440
3501
|
};
|
|
3441
3502
|
|
|
3442
3503
|
function CardFeedView(props, children) {
|
|
3504
|
+
// Dependent on props, not feasiable to move out
|
|
3443
3505
|
const style = {
|
|
3444
3506
|
Container: {
|
|
3445
3507
|
columnGap: props.gap + "px",
|
|
@@ -3563,6 +3625,7 @@ exports.RewardExchangeView = RewardExchangeView;
|
|
|
3563
3625
|
exports.ShadowViewAddon = ShadowViewAddon;
|
|
3564
3626
|
exports.ShareButtonView = ShareButtonView;
|
|
3565
3627
|
exports.ShareLinkView = ShareLinkView;
|
|
3628
|
+
exports.StatContainerView = StatContainerView;
|
|
3566
3629
|
exports.TaskCardView = TaskCardView;
|
|
3567
3630
|
exports.autoColorScaleCss = autoColorScaleCss;
|
|
3568
3631
|
exports.chooseAmountFixed = chooseAmountFixed;
|