@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
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { h, c as Host, d as getAssetPath, g as getElement } from './index-17b4da69.js';
|
|
2
2
|
import { k as useState, b as browser, i as useMemo } from './stencil-hooks.module-acc8a613.js';
|
|
3
|
-
import { i as intl } from './global-
|
|
3
|
+
import { i as intl } from './global-9bff4920.js';
|
|
4
4
|
import { d as dist, M, i as ie, R as Rn, b as sn, q as qe, k as kn, A as An } from './index.module-aac201f3.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
6
|
import { H as HostBlock, A as AuthWrapper, a as AuthColumn, b as AuthButtonsContainer, E as ErrorStyles } from './mixins-10353a39.js';
|
|
7
7
|
import { c as createStyleSheet } from './JSS-96eeab98.js';
|
|
8
8
|
import { l as luxon } from './luxon-f44215d9.js';
|
|
9
9
|
import { l as luxonLocale } from './utils-1d345130.js';
|
|
10
|
-
import { T as TextSpanView } from './sqm-text-span-view-
|
|
11
|
-
import { P as PortalContainerView } from './sqm-portal-container-view-
|
|
12
|
-
import { P as PortalSectionView } from './sqm-portal-section-view-
|
|
10
|
+
import { T as TextSpanView } from './sqm-text-span-view-c8793d61.js';
|
|
11
|
+
import { P as PortalContainerView } from './sqm-portal-container-view-46929235.js';
|
|
12
|
+
import { P as PortalSectionView } from './sqm-portal-section-view-61dbb8a9.js';
|
|
13
13
|
|
|
14
14
|
const medium = {
|
|
15
15
|
facebook: { color: "#1877f2", text: "#fff", icon: "facebook" },
|
|
@@ -23,40 +23,51 @@ const medium = {
|
|
|
23
23
|
linemessenger: { color: "#00B300", text: "#fff", icon: "line" },
|
|
24
24
|
pinterest: { color: "#e60023", text: "#fff", icon: "pinterest" },
|
|
25
25
|
};
|
|
26
|
+
const style = {
|
|
27
|
+
HostBlock: HostBlock,
|
|
28
|
+
buttonStyle: {
|
|
29
|
+
display: "flex",
|
|
30
|
+
alignItems: "center",
|
|
31
|
+
justifyContent: "center",
|
|
32
|
+
lineHeight: "0",
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
const sheet = createStyleSheet(style);
|
|
36
|
+
const styleString = sheet.toString();
|
|
26
37
|
function ShareButtonView(props, children) {
|
|
27
38
|
const vanillaStyle = `
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
--sl-focus-ring-color-primary: ${props.
|
|
31
|
-
? props.
|
|
39
|
+
*::part(base) {
|
|
40
|
+
border: none;
|
|
41
|
+
--sl-focus-ring-color-primary: ${props.backgroundColor
|
|
42
|
+
? props.backgroundColor
|
|
32
43
|
: props.medium
|
|
33
44
|
? medium[props.medium].color
|
|
34
45
|
: ""}80!important;
|
|
35
46
|
|
|
36
|
-
|
|
37
|
-
? props.
|
|
47
|
+
background: ${props.backgroundColor
|
|
48
|
+
? props.backgroundColor
|
|
38
49
|
: props.medium
|
|
39
50
|
? medium[props.medium].color
|
|
40
51
|
: ""};
|
|
41
|
-
|
|
42
|
-
? props.
|
|
52
|
+
color: ${props.textColor
|
|
53
|
+
? props.textColor
|
|
43
54
|
: props.medium
|
|
44
55
|
? medium[props.medium].text
|
|
45
56
|
: ""};
|
|
46
|
-
|
|
47
|
-
|
|
57
|
+
border-radius: ${props.borderRadius ? props.borderRadius + "px" : ""};
|
|
58
|
+
}
|
|
48
59
|
|
|
49
60
|
*::part(base):hover {
|
|
50
|
-
border-color: ${props.
|
|
51
|
-
? props.
|
|
61
|
+
border-color: ${props.backgroundColor
|
|
62
|
+
? props.backgroundColor
|
|
52
63
|
: props.medium
|
|
53
64
|
? medium[props.medium].color
|
|
54
65
|
: ""}D1!important;
|
|
55
66
|
}
|
|
56
|
-
|
|
67
|
+
|
|
57
68
|
*::part(base):focus {
|
|
58
|
-
border-color: ${props.
|
|
59
|
-
? props.
|
|
69
|
+
border-color: ${props.backgroundColor
|
|
70
|
+
? props.backgroundColor
|
|
60
71
|
: props.medium
|
|
61
72
|
? medium[props.medium].color
|
|
62
73
|
: ""}D1!important;
|
|
@@ -66,27 +77,16 @@ function ShareButtonView(props, children) {
|
|
|
66
77
|
position: relative;
|
|
67
78
|
top: 2%;
|
|
68
79
|
}
|
|
69
|
-
|
|
70
|
-
const style = {
|
|
71
|
-
HostBlock: HostBlock,
|
|
72
|
-
buttonStyle: {
|
|
73
|
-
display: "flex",
|
|
74
|
-
alignItems: "center",
|
|
75
|
-
justifyContent: "center",
|
|
76
|
-
lineHeight: "0",
|
|
77
|
-
},
|
|
78
|
-
};
|
|
79
|
-
const sheet = createStyleSheet(style);
|
|
80
|
-
const styleString = sheet.toString();
|
|
80
|
+
`;
|
|
81
81
|
return props.hide ? (h(Host, { style: { display: "none" } })) : (h("div", null,
|
|
82
82
|
h("style", { type: "text/css" }, styleString),
|
|
83
83
|
h("style", { type: "text/css" }, vanillaStyle),
|
|
84
84
|
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` },
|
|
85
|
-
!props.
|
|
86
|
-
!props.
|
|
85
|
+
!props.hideIcon && (h("sl-icon", { slot: props.iconSlot || "prefix", name: props.icon ? props.icon : medium[props.medium].icon, exportparts: "icon" })),
|
|
86
|
+
!props.hideText && children)));
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
-
const style = {
|
|
89
|
+
const style$1 = {
|
|
90
90
|
Leaderboard: {
|
|
91
91
|
"& table": {
|
|
92
92
|
width: "100%",
|
|
@@ -127,8 +127,8 @@ const style = {
|
|
|
127
127
|
},
|
|
128
128
|
},
|
|
129
129
|
};
|
|
130
|
-
const sheet = createStyleSheet(style);
|
|
131
|
-
const styleString = sheet.toString();
|
|
130
|
+
const sheet$1 = createStyleSheet(style$1);
|
|
131
|
+
const styleString$1 = sheet$1.toString();
|
|
132
132
|
const vanillaStyle = `
|
|
133
133
|
:host{
|
|
134
134
|
display: block;
|
|
@@ -138,22 +138,18 @@ function LeaderboardView(props) {
|
|
|
138
138
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
139
139
|
const { states, data, elements } = props;
|
|
140
140
|
const { styles } = states;
|
|
141
|
-
console.log("LEADER", props);
|
|
142
|
-
console.log(styles);
|
|
143
|
-
console.log("hideViewer", styles.hideViewer);
|
|
144
|
-
console.log(!styles.hideViewer);
|
|
145
141
|
if (states.loading)
|
|
146
|
-
return (h("div", { class: sheet.classes.Leaderboard },
|
|
142
|
+
return (h("div", { class: sheet$1.classes.Leaderboard },
|
|
147
143
|
h("style", { type: "text/css" },
|
|
148
|
-
styleString,
|
|
144
|
+
styleString$1,
|
|
149
145
|
vanillaStyle),
|
|
150
146
|
elements.loadingstate));
|
|
151
147
|
if (!states.hasLeaders)
|
|
152
148
|
return elements.empty;
|
|
153
149
|
let userSeenFlag = false;
|
|
154
|
-
return (h("div", { class: sheet.classes.Leaderboard },
|
|
150
|
+
return (h("div", { class: sheet$1.classes.Leaderboard },
|
|
155
151
|
h("style", { type: "text/css" },
|
|
156
|
-
styleString,
|
|
152
|
+
styleString$1,
|
|
157
153
|
vanillaStyle),
|
|
158
154
|
h("table", null,
|
|
159
155
|
h("tr", null,
|
|
@@ -177,7 +173,6 @@ function LeaderboardView(props) {
|
|
|
177
173
|
h("td", { class: "Score" }, user.value)));
|
|
178
174
|
}),
|
|
179
175
|
!userSeenFlag && !styles.hideViewer && (h("tr", null,
|
|
180
|
-
console.log("res", !userSeenFlag && !styles.hideViewer),
|
|
181
176
|
h("td", { colSpan: 100, class: "ellipses" },
|
|
182
177
|
h("sl-icon", { name: "three-dots", style: { verticalAlign: "middle" } })))),
|
|
183
178
|
!userSeenFlag && !styles.hideViewer && (h("tr", { class: "highlight" },
|
|
@@ -191,24 +186,25 @@ function LeaderboardView(props) {
|
|
|
191
186
|
h("td", { class: "Score" }, ((_l = data.viewerRank) === null || _l === void 0 ? void 0 : _l.value) || "0"))))));
|
|
192
187
|
}
|
|
193
188
|
|
|
194
|
-
const style$
|
|
189
|
+
const style$2 = {
|
|
195
190
|
HostBlock: HostBlock,
|
|
196
191
|
inputStyle: {
|
|
197
192
|
"&::part(base)": { background: "white", opacity: "1", cursor: "pointer" },
|
|
198
193
|
},
|
|
199
194
|
};
|
|
200
|
-
const sheet$
|
|
201
|
-
const styleString$
|
|
195
|
+
const sheet$2 = createStyleSheet(style$2);
|
|
196
|
+
const styleString$2 = sheet$2.toString();
|
|
202
197
|
function ShareLinkView(props) {
|
|
203
198
|
return (h("div", null,
|
|
204
|
-
h("style", { type: "text/css" }, styleString$
|
|
205
|
-
h("sl-tooltip", { trigger: "manual", content: props.
|
|
206
|
-
h("sl-input", { class: sheet$
|
|
199
|
+
h("style", { type: "text/css" }, styleString$2),
|
|
200
|
+
h("sl-tooltip", { trigger: "manual", content: props.tooltipText, placement: "top-end", disabled: props.disabled, open: props.open },
|
|
201
|
+
h("sl-input", { class: sheet$2.classes.inputStyle, exportparts: "label: input-label", value: props.shareString, readonly: true },
|
|
207
202
|
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 })))));
|
|
208
203
|
}
|
|
209
204
|
|
|
210
205
|
function BigStatView(props) {
|
|
211
206
|
const { statvalue, flexReverse, alignment } = props;
|
|
207
|
+
// Dependent on props, not feasiable to move out
|
|
212
208
|
const style = {
|
|
213
209
|
Container: {
|
|
214
210
|
display: "flex",
|
|
@@ -241,7 +237,7 @@ function BigStatView(props) {
|
|
|
241
237
|
h("div", { part: "stat-description", class: sheet.classes.Description }, props.labelSlot)));
|
|
242
238
|
}
|
|
243
239
|
|
|
244
|
-
const style$
|
|
240
|
+
const style$3 = {
|
|
245
241
|
HostBlock: HostBlock,
|
|
246
242
|
":host": {
|
|
247
243
|
"min-height": "100vh",
|
|
@@ -279,17 +275,17 @@ const style$2 = {
|
|
|
279
275
|
},
|
|
280
276
|
},
|
|
281
277
|
};
|
|
282
|
-
const sheet$
|
|
283
|
-
const styleString$
|
|
278
|
+
const sheet$3 = createStyleSheet(style$3);
|
|
279
|
+
const styleString$3 = sheet$3.toString();
|
|
284
280
|
function PortalFrameView(props, children) {
|
|
285
281
|
const { data } = props;
|
|
286
|
-
return (h("div", { class: sheet$
|
|
287
|
-
h("style", { type: "text/css" }, styleString$
|
|
288
|
-
h("div", { class: sheet$
|
|
282
|
+
return (h("div", { class: sheet$3.classes.Frame },
|
|
283
|
+
h("style", { type: "text/css" }, styleString$3),
|
|
284
|
+
h("div", { class: sheet$3.classes.HeaderWrapper },
|
|
289
285
|
data.header,
|
|
290
286
|
h("slot", { name: "sqm-navigation-menu" })),
|
|
291
287
|
children,
|
|
292
|
-
h("div", { class: sheet$
|
|
288
|
+
h("div", { class: sheet$3.classes.FooterWrapper }, data.footer)));
|
|
293
289
|
}
|
|
294
290
|
|
|
295
291
|
const EditProfileView = (props) => {
|
|
@@ -809,7 +805,7 @@ _, status) => {
|
|
|
809
805
|
`, { queryFilter }, (res) => {
|
|
810
806
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
811
807
|
return ({
|
|
812
|
-
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,
|
|
808
|
+
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,
|
|
813
809
|
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(),
|
|
814
810
|
});
|
|
815
811
|
});
|
|
@@ -1413,6 +1409,53 @@ function useDemoBigStat(props) {
|
|
|
1413
1409
|
};
|
|
1414
1410
|
}
|
|
1415
1411
|
|
|
1412
|
+
function StatContainerView(props, children) {
|
|
1413
|
+
const divideSpace = () => {
|
|
1414
|
+
const spaceValue = getComputedStyle(document.documentElement).getPropertyValue(`--sl-spacing-${props.space}`);
|
|
1415
|
+
return `${Math.floor(parseInt(spaceValue) / 2)}rem`;
|
|
1416
|
+
};
|
|
1417
|
+
// Dependent on props, not feasiable to move out
|
|
1418
|
+
const style = {
|
|
1419
|
+
StatContainer: {
|
|
1420
|
+
width: "100%",
|
|
1421
|
+
display: props.display || "grid",
|
|
1422
|
+
"grid-template-columns": "repeat(auto-fill, minmax(130px, auto))",
|
|
1423
|
+
gap: divideSpace(),
|
|
1424
|
+
// First set of styles applies when shadow DOM is disabled, second set applies when shadow DOM is enabled
|
|
1425
|
+
"& > *": {
|
|
1426
|
+
"border-right": "1px solid #EAEAEA",
|
|
1427
|
+
"padding-right": divideSpace(),
|
|
1428
|
+
},
|
|
1429
|
+
"& > :last-child": {
|
|
1430
|
+
"border-right": "1px solid #ffffff",
|
|
1431
|
+
},
|
|
1432
|
+
"& > ::slotted(*)": {
|
|
1433
|
+
"border-right": "1px solid #EAEAEA",
|
|
1434
|
+
"padding-right": divideSpace(),
|
|
1435
|
+
height: "100%",
|
|
1436
|
+
},
|
|
1437
|
+
"& > ::slotted(*:last-child)": {
|
|
1438
|
+
"border-right": "none",
|
|
1439
|
+
},
|
|
1440
|
+
},
|
|
1441
|
+
StatFrame: {
|
|
1442
|
+
display: "flex",
|
|
1443
|
+
},
|
|
1444
|
+
BorderFix: {
|
|
1445
|
+
"border-right": "1px solid #ffffff",
|
|
1446
|
+
width: "0px",
|
|
1447
|
+
"margin-left": "-1px",
|
|
1448
|
+
},
|
|
1449
|
+
};
|
|
1450
|
+
const sheet = createStyleSheet(style);
|
|
1451
|
+
const styleString = sheet.toString();
|
|
1452
|
+
return (h("div", { class: sheet.classes.StatFrame },
|
|
1453
|
+
h("div", { class: sheet.classes.StatContainer },
|
|
1454
|
+
h("style", { type: "text/css" }, styleString),
|
|
1455
|
+
children),
|
|
1456
|
+
h("div", { class: sheet.classes.BorderFix })));
|
|
1457
|
+
}
|
|
1458
|
+
|
|
1416
1459
|
function PortalChangePasswordView(props) {
|
|
1417
1460
|
const { states, callbacks } = props;
|
|
1418
1461
|
const style = {
|
|
@@ -1483,7 +1526,7 @@ function PortalChangePasswordView(props) {
|
|
|
1483
1526
|
h("style", { type: "text/css" }, styleString))));
|
|
1484
1527
|
}
|
|
1485
1528
|
|
|
1486
|
-
const style$
|
|
1529
|
+
const style$4 = {
|
|
1487
1530
|
Wrapper: AuthWrapper,
|
|
1488
1531
|
Column: AuthColumn,
|
|
1489
1532
|
ForgotButtonContainer: {
|
|
@@ -1504,28 +1547,28 @@ const vanillaStyle$1 = `
|
|
|
1504
1547
|
display: none;
|
|
1505
1548
|
}
|
|
1506
1549
|
`;
|
|
1507
|
-
const sheet$
|
|
1508
|
-
const styleString$
|
|
1550
|
+
const sheet$4 = createStyleSheet(style$4);
|
|
1551
|
+
const styleString$4 = sheet$4.toString();
|
|
1509
1552
|
function PortalLoginView(props) {
|
|
1510
1553
|
const { states, callbacks, content } = props;
|
|
1511
|
-
return (h("div", { class: sheet$
|
|
1554
|
+
return (h("div", { class: sheet$4.classes.Wrapper },
|
|
1512
1555
|
h("style", { type: "text/css" },
|
|
1513
1556
|
vanillaStyle$1,
|
|
1514
|
-
styleString$
|
|
1557
|
+
styleString$4),
|
|
1515
1558
|
h(TextSpanView, { type: "h3" }, content.pageLabel),
|
|
1516
|
-
h("sl-form", { class: sheet$
|
|
1559
|
+
h("sl-form", { class: sheet$4.classes.Column, "onSl-submit": callbacks.submit },
|
|
1517
1560
|
props.states.error && (h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
|
|
1518
1561
|
h("div", { part: "erroralert-text" }, props.states.error))),
|
|
1519
1562
|
h("sl-input", { exportparts: "label: input-label", type: "email", name: "/email", label: content.emailLabel || "Email", disabled: states.loading, required: true }),
|
|
1520
1563
|
h("div", null,
|
|
1521
1564
|
h("sl-input", { exportparts: "label: input-label", type: "password", name: "/password", label: content.passwordLabel || "Password", disabled: states.loading, required: true }),
|
|
1522
|
-
h("div", { class: sheet$
|
|
1523
|
-
h("div", { class: sheet$
|
|
1565
|
+
h("div", { class: sheet$4.classes.ForgotButtonContainer }, content.forgotPasswordButton)),
|
|
1566
|
+
h("div", { class: sheet$4.classes.ButtonsContainer },
|
|
1524
1567
|
h("sl-button", { submit: true, loading: states.loading, exportparts: "base: primarybutton-base", type: "primary" }, content.submitLabel || "Login"),
|
|
1525
1568
|
content.secondaryButton))));
|
|
1526
1569
|
}
|
|
1527
1570
|
|
|
1528
|
-
const style$
|
|
1571
|
+
const style$5 = {
|
|
1529
1572
|
Wrapper: { ...AuthWrapper, "max-width": "600px" },
|
|
1530
1573
|
Column: AuthColumn,
|
|
1531
1574
|
HostBlock: HostBlock,
|
|
@@ -1551,20 +1594,20 @@ sqm-portal-register {
|
|
|
1551
1594
|
display: none;
|
|
1552
1595
|
}
|
|
1553
1596
|
`;
|
|
1554
|
-
const sheet$
|
|
1555
|
-
const styleString$
|
|
1597
|
+
const sheet$5 = createStyleSheet(style$5);
|
|
1598
|
+
const styleString$5 = sheet$5.toString();
|
|
1556
1599
|
function PortalRegisterView(props) {
|
|
1557
1600
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1558
1601
|
const { states, refs, callbacks, content } = props;
|
|
1559
1602
|
if (states.error) {
|
|
1560
1603
|
window.scrollTo({ top: 0, left: 0, behavior: "smooth" });
|
|
1561
1604
|
}
|
|
1562
|
-
return (h("div", { class: sheet$
|
|
1605
|
+
return (h("div", { class: sheet$5.classes.Wrapper },
|
|
1563
1606
|
h("style", { type: "text/css" },
|
|
1564
1607
|
vanillaStyle$2,
|
|
1565
|
-
styleString$
|
|
1608
|
+
styleString$5),
|
|
1566
1609
|
h(TextSpanView, { type: "h3" }, content.pageLabel),
|
|
1567
|
-
h("sl-form", { class: sheet$
|
|
1610
|
+
h("sl-form", { class: sheet$5.classes.Column, "onSl-submit": callbacks.submit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
1568
1611
|
states.error && (h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
|
|
1569
1612
|
h("div", { part: "erroralert-text" }, props.states.error))),
|
|
1570
1613
|
content.formData,
|
|
@@ -1577,7 +1620,7 @@ function PortalRegisterView(props) {
|
|
|
1577
1620
|
return "Must be a valid email address";
|
|
1578
1621
|
}
|
|
1579
1622
|
} }, (((_b = (_a = states.validationState) === null || _a === void 0 ? void 0 : _a.validationErrors) === null || _b === void 0 ? void 0 : _b.email) ? {
|
|
1580
|
-
class: sheet$
|
|
1623
|
+
class: sheet$5.classes.ErrorStyle,
|
|
1581
1624
|
helpText: ((_d = (_c = states.validationState) === null || _c === void 0 ? void 0 : _c.validationErrors) === null || _d === void 0 ? void 0 : _d.email) ||
|
|
1582
1625
|
"Cannot be empty",
|
|
1583
1626
|
}
|
|
@@ -1585,18 +1628,18 @@ function PortalRegisterView(props) {
|
|
|
1585
1628
|
!states.hideInputs && (h("sqm-password-field", { fieldLabel: content.passwordLabel, "enable-validation": states.enablePasswordValidation })),
|
|
1586
1629
|
content.passwordField,
|
|
1587
1630
|
!states.hideInputs && states.confirmPassword && (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) ? {
|
|
1588
|
-
class: sheet$
|
|
1631
|
+
class: sheet$5.classes.ErrorStyle,
|
|
1589
1632
|
helpText: ((_h = (_g = states.validationState) === null || _g === void 0 ? void 0 : _g.validationErrors) === null || _h === void 0 ? void 0 : _h.confirmPassword) ||
|
|
1590
1633
|
"Cannot be empty",
|
|
1591
1634
|
}
|
|
1592
1635
|
: [])))),
|
|
1593
1636
|
content.terms,
|
|
1594
|
-
h("div", { class: sheet$
|
|
1637
|
+
h("div", { class: sheet$5.classes.ButtonsContainer },
|
|
1595
1638
|
h("sl-button", { submit: true, loading: states.loading, exportparts: "base: primarybutton-base", type: "primary" }, content.submitLabel || "Register"),
|
|
1596
1639
|
content.secondaryButton))));
|
|
1597
1640
|
}
|
|
1598
1641
|
|
|
1599
|
-
const style$
|
|
1642
|
+
const style$6 = {
|
|
1600
1643
|
Description: {
|
|
1601
1644
|
"& input[type=checkbox]": {
|
|
1602
1645
|
display: "none",
|
|
@@ -1635,13 +1678,13 @@ const style$5 = {
|
|
|
1635
1678
|
},
|
|
1636
1679
|
},
|
|
1637
1680
|
};
|
|
1638
|
-
const sheet$
|
|
1639
|
-
const styleString$
|
|
1681
|
+
const sheet$6 = createStyleSheet(style$6);
|
|
1682
|
+
const styleString$6 = sheet$6.toString();
|
|
1640
1683
|
function Details(props) {
|
|
1641
1684
|
const rid = Math.random().toString(36).slice(2);
|
|
1642
|
-
return (h("div",
|
|
1643
|
-
h("style", { type: "text/css" }, styleString$
|
|
1644
|
-
h("span", { class: sheet$
|
|
1685
|
+
return (h("div", { style: { opacity: props.opacity } },
|
|
1686
|
+
h("style", { type: "text/css" }, styleString$6),
|
|
1687
|
+
h("span", { class: sheet$6.classes.Description },
|
|
1645
1688
|
h("input", { type: "checkbox", id: "details-" + rid }),
|
|
1646
1689
|
h("label", { class: "details", htmlFor: "details-" + rid },
|
|
1647
1690
|
h("sl-icon", { name: "chevron-down" })),
|
|
@@ -1654,9 +1697,16 @@ const Gift = () => {
|
|
|
1654
1697
|
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" }),
|
|
1655
1698
|
h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M1.5 9V10H14.5V9H1.5Z", fill: "#BE9720" }),
|
|
1656
1699
|
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" })));
|
|
1700
|
+
};
|
|
1701
|
+
const GreyGift = () => {
|
|
1702
|
+
return (h("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
1703
|
+
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" }),
|
|
1704
|
+
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" }),
|
|
1705
|
+
h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M1.5 9V10H14.5V9H1.5Z", fill: "#A5A3A3" }),
|
|
1706
|
+
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" })));
|
|
1657
1707
|
};
|
|
1658
1708
|
|
|
1659
|
-
const style$
|
|
1709
|
+
const style$7 = {
|
|
1660
1710
|
ProgressBar: {
|
|
1661
1711
|
"& .progress-bar": {
|
|
1662
1712
|
height: "0",
|
|
@@ -1668,17 +1718,34 @@ const style$6 = {
|
|
|
1668
1718
|
lineHeight: "45px",
|
|
1669
1719
|
userSelect: "none",
|
|
1670
1720
|
},
|
|
1721
|
+
"& .progress-bar.repeatable-steps": {
|
|
1722
|
+
marginLeft: "var(--sl-spacing-x-small)",
|
|
1723
|
+
},
|
|
1671
1724
|
"&[data-steps]": {
|
|
1672
1725
|
marginTop: "calc(-1*var(--sl-spacing-x-small))",
|
|
1673
1726
|
},
|
|
1674
1727
|
"&[data-steps] .progress-bar": {
|
|
1675
1728
|
marginTop: "var(--sl-spacing-medium)",
|
|
1676
1729
|
},
|
|
1677
|
-
"&[data-expired] .progress
|
|
1678
|
-
|
|
1730
|
+
"&[data-expired] .progress::after": {
|
|
1731
|
+
backgroundColor: "#bfbfbf",
|
|
1679
1732
|
},
|
|
1680
|
-
"&
|
|
1681
|
-
|
|
1733
|
+
"&[data-expired] .filled::after": {
|
|
1734
|
+
backgroundColor: "#bfbfbf",
|
|
1735
|
+
},
|
|
1736
|
+
"&[data-complete] .filled::after .progress::after": {
|
|
1737
|
+
backgroundColor: "var(--sl-color-primary-200)",
|
|
1738
|
+
},
|
|
1739
|
+
"& .gift": {
|
|
1740
|
+
textAlign: "center",
|
|
1741
|
+
marginLeft: "-100px",
|
|
1742
|
+
marginRight: "-100px",
|
|
1743
|
+
position: "relative",
|
|
1744
|
+
top: "-18px",
|
|
1745
|
+
},
|
|
1746
|
+
"& .gift.start": {
|
|
1747
|
+
transform: "scale(80%)",
|
|
1748
|
+
top: "-20px",
|
|
1682
1749
|
},
|
|
1683
1750
|
"& .filled:after": {
|
|
1684
1751
|
content: '""',
|
|
@@ -1749,30 +1816,16 @@ const style$6 = {
|
|
|
1749
1816
|
borderRadius: "4px",
|
|
1750
1817
|
backgroundColor: "#E0E0E0",
|
|
1751
1818
|
},
|
|
1752
|
-
"& .gift.bw": {
|
|
1753
|
-
filter: "grayscale(100%)",
|
|
1754
|
-
},
|
|
1755
|
-
"& .gift.start": {
|
|
1756
|
-
transform: "scale(80%)",
|
|
1757
|
-
top: "-20px",
|
|
1758
|
-
},
|
|
1759
|
-
"& .gift": {
|
|
1760
|
-
textAlign: "center",
|
|
1761
|
-
marginLeft: "-100px",
|
|
1762
|
-
marginRight: "-100px",
|
|
1763
|
-
position: "relative",
|
|
1764
|
-
top: "-18px",
|
|
1765
|
-
},
|
|
1766
1819
|
},
|
|
1767
1820
|
};
|
|
1768
|
-
const sheet$
|
|
1769
|
-
const styleString$
|
|
1821
|
+
const sheet$7 = createStyleSheet(style$7, { classNamePrefix: "sqm-prog-bar" });
|
|
1822
|
+
const styleString$7 = sheet$7.toString();
|
|
1770
1823
|
function ProgressBarView(props) {
|
|
1771
|
-
const { progress = 0, goal = 1, steps = false, progressBarUnit = "", repeatable = false, expired = false, finite = 0, } = props;
|
|
1824
|
+
const { progress = 0, goal = 1, steps = false, progressBarUnit = "", repeatable = false, complete = false, expired = false, finite = 0, opacity = "1", } = props;
|
|
1772
1825
|
let aggregate = buildProgressBar(repeatable, steps, props);
|
|
1773
1826
|
const { columns, items } = aggregate;
|
|
1774
|
-
return (h("div", { class: sheet$
|
|
1775
|
-
h("style", { type: "text/css" }, styleString$
|
|
1827
|
+
return (h("div", { class: sheet$7.classes.ProgressBar, "data-expired": expired, "data-complete": complete, "data-steps": steps, "data-done": goal <= progress, style: { opacity: opacity } },
|
|
1828
|
+
h("style", { type: "text/css" }, styleString$7),
|
|
1776
1829
|
h("div", { class: (!Boolean(finite) && progress >= 2 * goal) ||
|
|
1777
1830
|
(Boolean(finite) && progress > 2 * goal)
|
|
1778
1831
|
? "progress-bar repeatable-steps"
|
|
@@ -1800,7 +1853,7 @@ function buildProgressBar(repeatable, steps, props) {
|
|
|
1800
1853
|
}
|
|
1801
1854
|
}
|
|
1802
1855
|
}
|
|
1803
|
-
function addSteps({ progress, goal }) {
|
|
1856
|
+
function addSteps({ progress, goal, expired }) {
|
|
1804
1857
|
const items = [];
|
|
1805
1858
|
const columns = [];
|
|
1806
1859
|
let ratio = 1 / goal;
|
|
@@ -1823,21 +1876,22 @@ function addSteps({ progress, goal }) {
|
|
|
1823
1876
|
columns.push("0fr");
|
|
1824
1877
|
items.push(h("div", { class: "filled" }));
|
|
1825
1878
|
items.push(h("div", { class: "progress bg" }, goal));
|
|
1826
|
-
items.push(h("div", { class: "gift" }, h(Gift, null)));
|
|
1879
|
+
items.push(h("div", { class: "gift" }, expired ? h(GreyGift, null) : h(Gift, null)));
|
|
1827
1880
|
}
|
|
1828
1881
|
// reward fail
|
|
1829
1882
|
else {
|
|
1830
1883
|
columns.push("0fr");
|
|
1831
1884
|
items.push(h("div", { class: "remain" }));
|
|
1832
1885
|
items.push(h("div", { class: "empty bg" }, goal));
|
|
1833
|
-
items.push(h("div", { class: "gift
|
|
1886
|
+
items.push(h("div", { class: "gift" },
|
|
1887
|
+
h(GreyGift, null)));
|
|
1834
1888
|
}
|
|
1835
1889
|
return {
|
|
1836
1890
|
items,
|
|
1837
1891
|
columns: columns.join(" "),
|
|
1838
1892
|
};
|
|
1839
1893
|
}
|
|
1840
|
-
function addLinearRepeatable({ progress, goal, progressBarUnit, finite, }) {
|
|
1894
|
+
function addLinearRepeatable({ progress, goal, progressBarUnit, finite, expired, }) {
|
|
1841
1895
|
let repetitions = Math.floor(progress / goal);
|
|
1842
1896
|
let ratio = ((progress % goal) / goal) * 0.5;
|
|
1843
1897
|
const items = [];
|
|
@@ -1849,11 +1903,10 @@ function addLinearRepeatable({ progress, goal, progressBarUnit, finite, }) {
|
|
|
1849
1903
|
items.push(h("div", { class: progress == goal ? "progress top bg" : "progress top" }, progressBarUnit + progress));
|
|
1850
1904
|
items.push(h("div", { class: "remain" }));
|
|
1851
1905
|
items.push(h("div", { class: "progress bg" }, progressBarUnit + goal));
|
|
1852
|
-
items.push(h("div", { class: progress == goal ?
|
|
1853
|
-
h(Gift, null)));
|
|
1906
|
+
items.push(h("div", { class: "gift" }, progress == goal ? expired ? h(GreyGift, null) : h(Gift, null) : h(GreyGift, null)));
|
|
1854
1907
|
items.push(h("div", { class: "remain" }));
|
|
1855
1908
|
items.push(h("div", { class: "progress bg" }, progressBarUnit + goal * 2));
|
|
1856
|
-
items.push(h("div", { class: "gift
|
|
1909
|
+
items.push(h("div", { class: "gift" }, h(GreyGift, null)));
|
|
1857
1910
|
}
|
|
1858
1911
|
// single repetition
|
|
1859
1912
|
else if (repetitions == 1) {
|
|
@@ -1861,18 +1914,18 @@ function addLinearRepeatable({ progress, goal, progressBarUnit, finite, }) {
|
|
|
1861
1914
|
"0.5fr 0fr 0fr " + ratio + "fr 0fr " + (0.5 - ratio) + "fr 0fr 0fr";
|
|
1862
1915
|
items.push(h("div", { class: "filled" }));
|
|
1863
1916
|
items.push(h("div", { class: "progress bg" }, progressBarUnit + goal));
|
|
1864
|
-
items.push(h("div", { class: "gift" }, h(Gift, null)));
|
|
1917
|
+
items.push(h("div", { class: "gift" }, expired ? h(GreyGift, null) : h(Gift, null)));
|
|
1865
1918
|
items.push(h("div", { class: "filled" }));
|
|
1866
1919
|
items.push(h("div", { class: progress == goal ? "progress top bg" : "progress top" }, progress == goal ? "" : progressBarUnit + progress));
|
|
1867
1920
|
items.push(h("div", { class: "remain" }));
|
|
1868
1921
|
items.push(h("div", { class: "progress bg" }, progressBarUnit + goal * 2));
|
|
1869
|
-
items.push(h("div", { class: "gift
|
|
1922
|
+
items.push(h("div", { class: "gift" }, h(GreyGift, null)));
|
|
1870
1923
|
}
|
|
1871
1924
|
// finite repetition hit
|
|
1872
1925
|
else if (finite && repetitions >= finite) {
|
|
1873
1926
|
if (repetitions > 2) {
|
|
1874
1927
|
items.push(h("div", { class: "progress bg" }, progressBarUnit + goal * (finite - 2)));
|
|
1875
|
-
items.push(h("div", { class: "gift start" }, h(Gift, null)));
|
|
1928
|
+
items.push(h("div", { class: "gift start" }, expired ? h(GreyGift, null) : h(Gift, null)));
|
|
1876
1929
|
columns = "0fr 0fr 0.5fr 0fr 0fr 0.5fr 0fr 0fr";
|
|
1877
1930
|
}
|
|
1878
1931
|
else {
|
|
@@ -1880,10 +1933,10 @@ function addLinearRepeatable({ progress, goal, progressBarUnit, finite, }) {
|
|
|
1880
1933
|
}
|
|
1881
1934
|
items.push(h("div", { class: "filled" }));
|
|
1882
1935
|
items.push(h("div", { class: "progress bg" }, progressBarUnit + goal * (finite - 1)));
|
|
1883
|
-
items.push(h("div", { class: "gift" }, h(Gift, null)));
|
|
1936
|
+
items.push(h("div", { class: "gift" }, expired ? h(GreyGift, null) : h(Gift, null)));
|
|
1884
1937
|
items.push(h("div", { class: "filled" }));
|
|
1885
1938
|
items.push(h("div", { class: "progress bg" }, progressBarUnit + goal * finite));
|
|
1886
|
-
items.push(h("div", { class: "gift" }, h(Gift, null)));
|
|
1939
|
+
items.push(h("div", { class: "gift" }, expired ? h(GreyGift, null) : h(Gift, null)));
|
|
1887
1940
|
}
|
|
1888
1941
|
// multiple repetitions
|
|
1889
1942
|
else {
|
|
@@ -1894,19 +1947,19 @@ function addLinearRepeatable({ progress, goal, progressBarUnit, finite, }) {
|
|
|
1894
1947
|
(0.5 - ratio) +
|
|
1895
1948
|
"fr 0fr 0fr";
|
|
1896
1949
|
items.push(h("div", { class: "progress bg" }, progressBarUnit + goal * (repetitions - 1)));
|
|
1897
|
-
items.push(h("div", { class: "gift start" }, h(Gift, null)));
|
|
1950
|
+
items.push(h("div", { class: "gift start" }, expired ? h(GreyGift, null) : h(Gift, null)));
|
|
1898
1951
|
items.push(h("div", { class: "filled" }));
|
|
1899
1952
|
items.push(h("div", { class: "progress bg" }, progressBarUnit + goal * repetitions));
|
|
1900
|
-
items.push(h("div", { class: "gift" }, h(Gift, null)));
|
|
1953
|
+
items.push(h("div", { class: "gift" }, expired ? h(GreyGift, null) : h(Gift, null)));
|
|
1901
1954
|
items.push(h("div", { class: "filled" }));
|
|
1902
1955
|
items.push(h("div", { class: progress == goal * repetitions ? "progress top bg" : "progress top" }, progress == goal * repetitions ? "" : progressBarUnit + progress));
|
|
1903
1956
|
items.push(h("div", { class: "remain" }));
|
|
1904
1957
|
items.push(h("div", { class: "progress bg" }, progressBarUnit + goal * (repetitions + 1)));
|
|
1905
|
-
items.push(h("div", { class: "gift
|
|
1958
|
+
items.push(h("div", { class: "gift" }, h(GreyGift, null)));
|
|
1906
1959
|
}
|
|
1907
1960
|
return { items, columns };
|
|
1908
1961
|
}
|
|
1909
|
-
function addStepsRepeatable({ progress, goal, finite, }) {
|
|
1962
|
+
function addStepsRepeatable({ progress, goal, finite, expired, }) {
|
|
1910
1963
|
const items = [];
|
|
1911
1964
|
const columns = [];
|
|
1912
1965
|
let repetitions = Math.floor(progress / goal);
|
|
@@ -1921,14 +1974,14 @@ function addStepsRepeatable({ progress, goal, finite, }) {
|
|
|
1921
1974
|
columns.push("0fr");
|
|
1922
1975
|
items.push(h("div", { class: "remain" }));
|
|
1923
1976
|
items.push(h("div", { class: "empty bg" }, goal));
|
|
1924
|
-
items.push(h("div", { class: "gift
|
|
1977
|
+
items.push(h("div", { class: "gift" }, h(GreyGift, null)));
|
|
1925
1978
|
}
|
|
1926
1979
|
else if (i == goal * 2) {
|
|
1927
1980
|
columns.push("0fr");
|
|
1928
1981
|
columns.push("0fr");
|
|
1929
1982
|
items.push(h("div", { class: "remain" }));
|
|
1930
1983
|
items.push(h("div", { class: "empty bg" }, goal * 2));
|
|
1931
|
-
items.push(h("div", { class: "gift
|
|
1984
|
+
items.push(h("div", { class: "gift" }, h(GreyGift, null)));
|
|
1932
1985
|
}
|
|
1933
1986
|
else {
|
|
1934
1987
|
items.push(h("div", { class: "remain" }));
|
|
@@ -1939,7 +1992,7 @@ function addStepsRepeatable({ progress, goal, finite, }) {
|
|
|
1939
1992
|
columns.push("0fr");
|
|
1940
1993
|
items.push(h("div", { class: "filled" }));
|
|
1941
1994
|
items.push(h("div", { class: "progress bg" }, i));
|
|
1942
|
-
items.push(h("div", { class: "gift" }, h(Gift, null)));
|
|
1995
|
+
items.push(h("div", { class: "gift" }, expired ? h(GreyGift, null) : h(Gift, null)));
|
|
1943
1996
|
}
|
|
1944
1997
|
else {
|
|
1945
1998
|
items.push(h("div", { class: "filled" }));
|
|
@@ -1954,7 +2007,7 @@ function addStepsRepeatable({ progress, goal, finite, }) {
|
|
|
1954
2007
|
columns.push("0fr");
|
|
1955
2008
|
columns.push("0fr");
|
|
1956
2009
|
items.push(h("div", { class: "progress bg" }, goal * (finite - 2)));
|
|
1957
|
-
items.push(h("div", { class: "gift start" }, h(Gift, null)));
|
|
2010
|
+
items.push(h("div", { class: "gift start" }, expired ? h(GreyGift, null) : h(Gift, null)));
|
|
1958
2011
|
}
|
|
1959
2012
|
for (let i = 1; i < goal * 2 + 1; i++) {
|
|
1960
2013
|
columns.push(ratio + "fr");
|
|
@@ -1964,21 +2017,21 @@ function addStepsRepeatable({ progress, goal, finite, }) {
|
|
|
1964
2017
|
columns.push("0fr");
|
|
1965
2018
|
items.push(h("div", { class: "remain" }));
|
|
1966
2019
|
items.push(h("div", { class: "progress bg" }, goal * (finite - 1)));
|
|
1967
|
-
items.push(h("div", { class: "gift
|
|
2020
|
+
items.push(h("div", { class: "gift" }, h(GreyGift, null)));
|
|
1968
2021
|
}
|
|
1969
2022
|
}
|
|
1970
2023
|
else if (i == goal) {
|
|
1971
2024
|
columns.push("0fr");
|
|
1972
2025
|
items.push(h("div", { class: "filled" }));
|
|
1973
2026
|
items.push(h("div", { class: "progress bg" }, goal * (finite - 1)));
|
|
1974
|
-
items.push(h("div", { class: "gift" }, h(Gift, null)));
|
|
2027
|
+
items.push(h("div", { class: "gift" }, expired ? h(GreyGift, null) : h(Gift, null)));
|
|
1975
2028
|
}
|
|
1976
2029
|
else if (i == goal * 2) {
|
|
1977
2030
|
columns.push("0fr");
|
|
1978
2031
|
columns.push("0fr");
|
|
1979
2032
|
items.push(h("div", { class: "filled" }));
|
|
1980
2033
|
items.push(h("div", { class: "progress bg" }, goal * finite));
|
|
1981
|
-
items.push(h("div", { class: "gift" }, h(Gift, null)));
|
|
2034
|
+
items.push(h("div", { class: "gift" }, expired ? h(GreyGift, null) : h(Gift, null)));
|
|
1982
2035
|
}
|
|
1983
2036
|
else {
|
|
1984
2037
|
items.push(h("div", { class: "filled" }));
|
|
@@ -1993,7 +2046,7 @@ function addStepsRepeatable({ progress, goal, finite, }) {
|
|
|
1993
2046
|
columns.push("0fr");
|
|
1994
2047
|
columns.push("0fr");
|
|
1995
2048
|
items.push(h("div", { class: "progress bg" }, goal * (repetitions - 1)));
|
|
1996
|
-
items.push(h("div", { class: "gift start" }, h(Gift, null)));
|
|
2049
|
+
items.push(h("div", { class: "gift start" }, expired ? h(GreyGift, null) : h(Gift, null)));
|
|
1997
2050
|
for (let i = 1; i < goal * 2 + 1; i++) {
|
|
1998
2051
|
columns.push(ratio + "fr");
|
|
1999
2052
|
columns.push("0fr");
|
|
@@ -2002,7 +2055,7 @@ function addStepsRepeatable({ progress, goal, finite, }) {
|
|
|
2002
2055
|
columns.push("0fr");
|
|
2003
2056
|
items.push(h("div", { class: "filled" }));
|
|
2004
2057
|
items.push(h("div", { class: "progress bg" }, i + goal * (repetitions - 1)));
|
|
2005
|
-
items.push(h("div", { class: "gift" }, h(Gift, null)));
|
|
2058
|
+
items.push(h("div", { class: "gift" }, expired ? h(GreyGift, null) : h(Gift, null)));
|
|
2006
2059
|
}
|
|
2007
2060
|
else {
|
|
2008
2061
|
items.push(h("div", { class: "filled" }));
|
|
@@ -2015,7 +2068,7 @@ function addStepsRepeatable({ progress, goal, finite, }) {
|
|
|
2015
2068
|
columns.push("0fr");
|
|
2016
2069
|
items.push(h("div", { class: "remain" }));
|
|
2017
2070
|
items.push(h("div", { class: "empty bg" }, i + goal * (repetitions - 1)));
|
|
2018
|
-
items.push(h("div", { class: "gift
|
|
2071
|
+
items.push(h("div", { class: "gift" }, h(GreyGift, null)));
|
|
2019
2072
|
}
|
|
2020
2073
|
else {
|
|
2021
2074
|
items.push(h("div", { class: "remain" }));
|
|
@@ -2030,7 +2083,7 @@ function addStepsRepeatable({ progress, goal, finite, }) {
|
|
|
2030
2083
|
}
|
|
2031
2084
|
return { items, columns: columns.join(" ") };
|
|
2032
2085
|
}
|
|
2033
|
-
function addLinear({ progress, goal, progressBarUnit, }) {
|
|
2086
|
+
function addLinear({ progress, goal, progressBarUnit, expired }) {
|
|
2034
2087
|
const items = [];
|
|
2035
2088
|
let columns = "";
|
|
2036
2089
|
const ratio = progress / goal;
|
|
@@ -2042,8 +2095,7 @@ function addLinear({ progress, goal, progressBarUnit, }) {
|
|
|
2042
2095
|
: progressBarUnit + clamp(progress, 0, goal)));
|
|
2043
2096
|
items.push(h("div", { class: "remain" }));
|
|
2044
2097
|
items.push(h("div", { class: "progress bg" }, progressBarUnit + goal));
|
|
2045
|
-
items.push(h("div", { class: clamp(progress, 0, goal) == goal ?
|
|
2046
|
-
h(Gift, null)));
|
|
2098
|
+
items.push(h("div", { class: "gift" }, clamp(progress, 0, goal) == goal ? (expired ? (h(GreyGift, null)) : (h(Gift, null))) : (h(GreyGift, null))));
|
|
2047
2099
|
return { items, columns };
|
|
2048
2100
|
}
|
|
2049
2101
|
function clamp(x, min, max) {
|
|
@@ -2064,7 +2116,7 @@ const arrow_left_right = () => {
|
|
|
2064
2116
|
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" })));
|
|
2065
2117
|
};
|
|
2066
2118
|
|
|
2067
|
-
const style$
|
|
2119
|
+
const style$8 = {
|
|
2068
2120
|
TaskCard: {
|
|
2069
2121
|
display: "inline-block",
|
|
2070
2122
|
width: "100%",
|
|
@@ -2172,6 +2224,12 @@ const style$7 = {
|
|
|
2172
2224
|
},
|
|
2173
2225
|
},
|
|
2174
2226
|
Footer: {
|
|
2227
|
+
"&[data-subdue] .success": {
|
|
2228
|
+
color: "var(--sl-color-primary-300)",
|
|
2229
|
+
},
|
|
2230
|
+
"&[data-subdue] .neutral": {
|
|
2231
|
+
color: "var(--sl-color-neutral-300)",
|
|
2232
|
+
},
|
|
2175
2233
|
display: "flex",
|
|
2176
2234
|
"& .icon": {
|
|
2177
2235
|
fontSize: "var(--sl-font-size-xx-small)",
|
|
@@ -2209,12 +2267,11 @@ const style$7 = {
|
|
|
2209
2267
|
"& .datetime": {
|
|
2210
2268
|
display: "block",
|
|
2211
2269
|
marginTop: "var(--sl-spacing-xx-small)",
|
|
2212
|
-
color: "var(--sl-color-neutral-400)",
|
|
2213
2270
|
},
|
|
2214
2271
|
},
|
|
2215
2272
|
};
|
|
2216
|
-
const sheet$
|
|
2217
|
-
const styleString$
|
|
2273
|
+
const sheet$8 = createStyleSheet(style$8);
|
|
2274
|
+
const styleString$8 = sheet$8.toString();
|
|
2218
2275
|
function TaskCardView(props) {
|
|
2219
2276
|
var _a, _b;
|
|
2220
2277
|
const { callbacks, states, content } = props;
|
|
@@ -2249,11 +2306,11 @@ function TaskCardView(props) {
|
|
|
2249
2306
|
margin-bottom: var(--sl-spacing-large);
|
|
2250
2307
|
}
|
|
2251
2308
|
`;
|
|
2252
|
-
return (h("div", { class: sheet$
|
|
2309
|
+
return (h("div", { class: sheet$8.classes.TaskCard },
|
|
2253
2310
|
h("style", { type: "text/css" },
|
|
2254
|
-
styleString$
|
|
2311
|
+
styleString$8,
|
|
2255
2312
|
vanillaStyle),
|
|
2256
|
-
!states.loading && taskNotStarted && (h("div", { class: sheet$
|
|
2313
|
+
!states.loading && taskNotStarted && (h("div", { class: sheet$8.classes.NotStarted },
|
|
2257
2314
|
h("span", { class: "icon" },
|
|
2258
2315
|
h("sl-icon", { name: "info-circle-fill" })),
|
|
2259
2316
|
intl.formatMessage({
|
|
@@ -2264,7 +2321,7 @@ function TaskCardView(props) {
|
|
|
2264
2321
|
.setLocale(luxonLocale(states.locale))
|
|
2265
2322
|
.toLocaleString(luxon.DateTime.DATETIME_MED),
|
|
2266
2323
|
}))),
|
|
2267
|
-
!states.loading && taskEnded && (h("div", { class: sheet$
|
|
2324
|
+
!states.loading && taskEnded && (h("div", { class: sheet$8.classes.Ended },
|
|
2268
2325
|
h("span", { class: "icon" },
|
|
2269
2326
|
h("sl-icon", { name: "exclamation-triangle-fill" })),
|
|
2270
2327
|
intl.formatMessage({
|
|
@@ -2283,8 +2340,8 @@ function TaskCardView(props) {
|
|
|
2283
2340
|
: taskComplete
|
|
2284
2341
|
? "main complete"
|
|
2285
2342
|
: "main" },
|
|
2286
|
-
h("div", { class:
|
|
2287
|
-
h("div", { class: sheet$
|
|
2343
|
+
h("div", { class: "container", "data-subdue": taskComplete || taskUnavailable },
|
|
2344
|
+
h("div", { class: sheet$8.classes.Header, style: { opacity: taskComplete || taskUnavailable ? "0.45" : "1" } }, states.loading ? (h("sl-skeleton", { style: { width: "22%", margin: "0" } })) : (h("div", null,
|
|
2288
2345
|
showComplete && (h("span", { class: taskUnavailable ? "icon neutral" : "icon" }, taskComplete ? checkmark_filled$1 : checkmark_circle$1)),
|
|
2289
2346
|
h("span", { class: "value" }, content.rewardAmount),
|
|
2290
2347
|
h("span", { class: "text" }, content.rewardUnit)))),
|
|
@@ -2296,22 +2353,23 @@ function TaskCardView(props) {
|
|
|
2296
2353
|
? "var(--sl-spacing-xx-large)"
|
|
2297
2354
|
: ""
|
|
2298
2355
|
: "",
|
|
2356
|
+
opacity: taskComplete || taskUnavailable ? "0.45" : "1",
|
|
2299
2357
|
} }, content.cardTitle)),
|
|
2300
|
-
states.loading ? (h("sl-skeleton", { style: { margin: "var(--sl-spacing-medium) 0" } })) : (content.description && h(Details, Object.assign({}, props))),
|
|
2301
|
-
content.showProgressBar && states.loading ? (h("sl-skeleton", { style: { margin: "var(--sl-spacing-medium) 0" } })) : (content.showProgressBar && (h(ProgressBarView, Object.assign({}, props.content, props.states, { complete: taskComplete, expired: taskUnavailable })))),
|
|
2302
|
-
h("div", { class: sheet$
|
|
2358
|
+
states.loading ? (h("sl-skeleton", { style: { margin: "var(--sl-spacing-medium) 0" } })) : (content.description && (h(Details, Object.assign({}, props, { opacity: taskComplete || taskUnavailable ? "0.45" : "1" })))),
|
|
2359
|
+
content.showProgressBar && states.loading ? (h("sl-skeleton", { style: { margin: "var(--sl-spacing-medium) 0" } })) : (content.showProgressBar && (h(ProgressBarView, Object.assign({}, props.content, props.states, { opacity: taskComplete || taskUnavailable ? "0.45" : "1", complete: taskComplete, expired: taskUnavailable })))),
|
|
2360
|
+
h("div", { class: sheet$8.classes.Footer, "data-subdue": taskComplete || taskUnavailable }, states.loading ? (h("sl-skeleton", { style: { width: "25%", marginLeft: "auto" } })) : (h("div", { style: { display: "contents" } },
|
|
2303
2361
|
h("span", { class: "text" },
|
|
2304
2362
|
content.repeatable && (h("div", null,
|
|
2305
2363
|
h("span", { class: repetitions > 0
|
|
2306
2364
|
? taskUnavailable
|
|
2307
2365
|
? "icon neutral"
|
|
2308
2366
|
: "icon success"
|
|
2309
|
-
: "icon" }, arrow_left_right$1),
|
|
2367
|
+
: "icon neutral", "data-subdue": taskComplete || taskUnavailable }, arrow_left_right$1),
|
|
2310
2368
|
h("span", { class: repetitions > 0
|
|
2311
2369
|
? taskUnavailable
|
|
2312
2370
|
? "neutral"
|
|
2313
2371
|
: "success"
|
|
2314
|
-
: "" }, intl.formatMessage({
|
|
2372
|
+
: "neutral", "data-subdue": taskComplete || taskUnavailable }, intl.formatMessage({
|
|
2315
2373
|
id: "completedMessage",
|
|
2316
2374
|
defaultMessage: content.completedText,
|
|
2317
2375
|
}, {
|
|
@@ -2320,7 +2378,7 @@ function TaskCardView(props) {
|
|
|
2320
2378
|
? Math.min(repetitions, content.finite)
|
|
2321
2379
|
: repetitions,
|
|
2322
2380
|
})))),
|
|
2323
|
-
dateEnd && !taskUnavailable && (h("span", { class: "datetime" }, intl.formatMessage({
|
|
2381
|
+
dateEnd && !taskUnavailable && (h("span", { class: "datetime neutral", "data-subdue": taskComplete || taskUnavailable }, intl.formatMessage({
|
|
2324
2382
|
id: "expiryMessage",
|
|
2325
2383
|
defaultMessage: content.expiryMessage,
|
|
2326
2384
|
}, {
|
|
@@ -2332,12 +2390,15 @@ function TaskCardView(props) {
|
|
|
2332
2390
|
? "action neutral"
|
|
2333
2391
|
: taskComplete
|
|
2334
2392
|
? "action disabled"
|
|
2335
|
-
: "action", type: "primary", size: "small", onClick: callbacks.onClick, loading: states.loadingEvent, disabled: taskComplete || taskUnavailable
|
|
2393
|
+
: "action", type: "primary", size: "small", onClick: callbacks.onClick, loading: states.loadingEvent, disabled: taskComplete || taskUnavailable, style: {
|
|
2394
|
+
opacity: taskComplete || taskUnavailable ? "0.45" : "1",
|
|
2395
|
+
} }, content.buttonText))))))));
|
|
2336
2396
|
}
|
|
2337
2397
|
|
|
2338
2398
|
function ReferralIframeView(props) {
|
|
2339
2399
|
const { states, data } = props;
|
|
2340
2400
|
const { content } = states;
|
|
2401
|
+
// dependent on props
|
|
2341
2402
|
const style = {
|
|
2342
2403
|
Container: {
|
|
2343
2404
|
position: "relative",
|
|
@@ -2448,7 +2509,7 @@ function ProgressBar({ stageCount, currentStage, }) {
|
|
|
2448
2509
|
return (h("div", { style: { display: "flex", columnGap: "-2px" } }, Array.from(Array(stageCount).keys()).map((stage) => (h(Progress, { active: currentStage === stage, completed: currentStage > stage, incomplete: currentStage < stage, stage: stage })))));
|
|
2449
2510
|
}
|
|
2450
2511
|
|
|
2451
|
-
const style$
|
|
2512
|
+
const style$9 = {
|
|
2452
2513
|
HostBlock: HostBlock,
|
|
2453
2514
|
Container: {
|
|
2454
2515
|
minWidth: "300px",
|
|
@@ -2799,8 +2860,8 @@ const style$8 = {
|
|
|
2799
2860
|
},
|
|
2800
2861
|
};
|
|
2801
2862
|
// JSS config
|
|
2802
|
-
const sheet$
|
|
2803
|
-
const styleString$
|
|
2863
|
+
const sheet$9 = createStyleSheet(style$9);
|
|
2864
|
+
const styleString$9 = sheet$9.toString();
|
|
2804
2865
|
const stageList = ["chooseReward", "chooseAmount", "confirmation", "success"];
|
|
2805
2866
|
function RewardExchangeView(props) {
|
|
2806
2867
|
const { states, data, callbacks, refs } = props;
|
|
@@ -2823,7 +2884,7 @@ function RewardExchangeView(props) {
|
|
|
2823
2884
|
sourceUnit: item.sourceUnit,
|
|
2824
2885
|
})));
|
|
2825
2886
|
}
|
|
2826
|
-
return (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$
|
|
2887
|
+
return (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) => {
|
|
2827
2888
|
var _a, _b, _c, _d, _e;
|
|
2828
2889
|
return callbacks.setExchangeState({
|
|
2829
2890
|
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,
|
|
@@ -2831,7 +2892,7 @@ function RewardExchangeView(props) {
|
|
|
2831
2892
|
});
|
|
2832
2893
|
} }, (_c = item.steps) === null || _c === void 0 ? void 0 : _c.map((step) => {
|
|
2833
2894
|
var _a, _b;
|
|
2834
|
-
return (h("sl-menu-item", { value: step, disabled: !step.available, class: sheet$
|
|
2895
|
+
return (h("sl-menu-item", { value: step, disabled: !step.available, class: sheet$9.classes.SelectItem },
|
|
2835
2896
|
step.prettyDestinationValue,
|
|
2836
2897
|
h("br", null),
|
|
2837
2898
|
h("div", { class: "step-cost", slot: "suffix" },
|
|
@@ -2850,8 +2911,8 @@ function RewardExchangeView(props) {
|
|
|
2850
2911
|
var _a;
|
|
2851
2912
|
return [
|
|
2852
2913
|
h("div", null,
|
|
2853
|
-
h("div", { class: sheet$
|
|
2854
|
-
states.loading || states.queryError ? (loading()) : (h("div", { class: sheet$
|
|
2914
|
+
h("div", { class: sheet$9.classes.Title }, states.content.text.rewardTitle),
|
|
2915
|
+
states.loading || states.queryError ? (loading()) : (h("div", { class: sheet$9.classes.Grid }, (_a = data.exchangeList) === null || _a === void 0 ? void 0 : _a.map((item) => {
|
|
2855
2916
|
var _a, _b, _c, _d, _e;
|
|
2856
2917
|
const style = {
|
|
2857
2918
|
boxShadow: item.key === (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.key)
|
|
@@ -2860,7 +2921,7 @@ function RewardExchangeView(props) {
|
|
|
2860
2921
|
borderRadius: "4px",
|
|
2861
2922
|
};
|
|
2862
2923
|
return (h("div", { key: item.key, style: style },
|
|
2863
|
-
h("sl-card", { class: sheet$
|
|
2924
|
+
h("sl-card", { class: sheet$9.classes.Card, style: {
|
|
2864
2925
|
cursor: item.unavailableReasonCode
|
|
2865
2926
|
? "not-allowed"
|
|
2866
2927
|
: "pointer",
|
|
@@ -2877,14 +2938,14 @@ function RewardExchangeView(props) {
|
|
|
2877
2938
|
? "rgba(0, 0, 0, 0.05)"
|
|
2878
2939
|
: "rgba(0, 0, 0, 0)",
|
|
2879
2940
|
} },
|
|
2880
|
-
h("div", { class: sheet$
|
|
2941
|
+
h("div", { class: sheet$9.classes.Image, style: {
|
|
2881
2942
|
opacity: item.unavailableReasonCode ? "0.5" : "1",
|
|
2882
2943
|
} },
|
|
2883
2944
|
h("img", { class: item.unavailableReasonCode
|
|
2884
2945
|
? "image subdued"
|
|
2885
2946
|
: "image", src: (item === null || item === void 0 ? void 0 : item.imageUrl) ||
|
|
2886
2947
|
getAssetPath("./assets/Reward-image.png") })),
|
|
2887
|
-
h("div", { class: sheet$
|
|
2948
|
+
h("div", { class: sheet$9.classes.TextArea, style: {
|
|
2888
2949
|
opacity: item.unavailableReasonCode ? "0.5" : "1",
|
|
2889
2950
|
} },
|
|
2890
2951
|
h("div", { class: "title", style: {
|
|
@@ -2917,7 +2978,7 @@ function RewardExchangeView(props) {
|
|
|
2917
2978
|
item.prettySourceMinValue,
|
|
2918
2979
|
}))))))));
|
|
2919
2980
|
}))),
|
|
2920
|
-
h("div", { class: sheet$
|
|
2981
|
+
h("div", { class: sheet$9.classes.Button },
|
|
2921
2982
|
h("sl-button", { class: "continue right", size: "large", onClick: () => callbacks.setStage("chooseAmount"), loading: states.loading, disabled: !states.selectedItem }, states.content.text.continueText))),
|
|
2922
2983
|
];
|
|
2923
2984
|
}
|
|
@@ -2928,7 +2989,7 @@ function RewardExchangeView(props) {
|
|
|
2928
2989
|
? false
|
|
2929
2990
|
: input && !states.amount;
|
|
2930
2991
|
return (h("div", null,
|
|
2931
|
-
h("div", { class: sheet$
|
|
2992
|
+
h("div", { class: sheet$9.classes.ChooseAmount },
|
|
2932
2993
|
h("div", { class: "wrapper" },
|
|
2933
2994
|
h("img", { class: "image", src: (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.imageUrl) ||
|
|
2934
2995
|
getAssetPath("./assets/Reward-image.png") }),
|
|
@@ -2937,7 +2998,7 @@ function RewardExchangeView(props) {
|
|
|
2937
2998
|
((_c = states.selectedItem) === null || _c === void 0 ? void 0 : _c.ruleType) === "FIXED_GLOBAL_REWARD" ? (h("div", { class: "points" }, input)) : (h("div", { class: "description" }, selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.description)),
|
|
2938
2999
|
((_d = states.selectedItem) === null || _d === void 0 ? void 0 : _d.ruleType) === "FIXED_GLOBAL_REWARD" ? (h("div", { class: "description" }, selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.description)) : (h("div", null, input)),
|
|
2939
3000
|
h("div", { class: "space" }))),
|
|
2940
|
-
h("div", { class: sheet$
|
|
3001
|
+
h("div", { class: sheet$9.classes.Button },
|
|
2941
3002
|
h("sl-button", { class: "cancel", size: "large", type: "text", onClick: () => callbacks.resetState() }, states.content.text.cancelText),
|
|
2942
3003
|
h("sl-button", { class: "continue", size: "large", onClick: () => callbacks.setStage("confirmation"), disabled: isDisabled }, states.content.text.continueToConfirmationText)))));
|
|
2943
3004
|
}
|
|
@@ -2945,8 +3006,8 @@ function RewardExchangeView(props) {
|
|
|
2945
3006
|
const cost = (selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettySourceValue) || selectedItem.prettySourceValue;
|
|
2946
3007
|
const amount = selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettyDestinationValue;
|
|
2947
3008
|
return (h("div", null,
|
|
2948
|
-
h("div", { class: sheet$
|
|
2949
|
-
h("div", { class: sheet$
|
|
3009
|
+
h("div", { class: sheet$9.classes.Confirmation },
|
|
3010
|
+
h("div", { class: sheet$9.classes.Title }, states.content.text.redeemTitle),
|
|
2950
3011
|
h("div", { class: "wrapper" },
|
|
2951
3012
|
h("div", { class: "field" }, states.content.text.rewardNameTitle),
|
|
2952
3013
|
h("div", { class: "reward-item-container" },
|
|
@@ -2961,13 +3022,13 @@ function RewardExchangeView(props) {
|
|
|
2961
3022
|
h("div", { class: "wrapper top-border padding" },
|
|
2962
3023
|
h("div", { class: "field" }, states.content.text.costTitle),
|
|
2963
3024
|
h("div", { class: "value" }, cost)),
|
|
2964
|
-
h("div", { class: sheet$
|
|
3025
|
+
h("div", { class: sheet$9.classes.Button },
|
|
2965
3026
|
h("sl-button", { class: "cancel", type: "text", size: "large", onClick: () => callbacks.setStage("chooseAmount") }, states.content.text.backText),
|
|
2966
3027
|
h("sl-button", { class: "continue", size: "large", loading: states.loading, onClick: callbacks.exchangeReward }, states.content.text.redeemText)))));
|
|
2967
3028
|
}
|
|
2968
3029
|
function success() {
|
|
2969
3030
|
var _a, _b, _c, _d, _e, _f;
|
|
2970
|
-
return (h("div", { class: sheet$
|
|
3031
|
+
return (h("div", { class: sheet$9.classes.Success },
|
|
2971
3032
|
h(Gift$1, null),
|
|
2972
3033
|
h(Confetti, null),
|
|
2973
3034
|
h("div", { class: "title" }, (_a = states.content.text) === null || _a === void 0 ? void 0 : _a.rewardRedeemedText),
|
|
@@ -2981,8 +3042,8 @@ function RewardExchangeView(props) {
|
|
|
2981
3042
|
})),
|
|
2982
3043
|
(data === null || data === void 0 ? void 0 : data.fuelTankCode) && (h("div", { class: "promo" },
|
|
2983
3044
|
states.content.text.promoCode,
|
|
2984
|
-
h(ShareLinkView, { shareString: data.fuelTankCode,
|
|
2985
|
-
h("div", { class: sheet$
|
|
3045
|
+
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 }))),
|
|
3046
|
+
h("div", { class: sheet$9.classes.Button },
|
|
2986
3047
|
h("sl-button", { class: "continue center", type: "primary", size: "large", onClick: () => callbacks.resetState(true) }, states.content.text.doneText))));
|
|
2987
3048
|
}
|
|
2988
3049
|
const stages = {
|
|
@@ -2994,7 +3055,7 @@ function RewardExchangeView(props) {
|
|
|
2994
3055
|
const currentStage = stages[states.redeemStage];
|
|
2995
3056
|
function stageMap() {
|
|
2996
3057
|
const stageNumber = stageList.indexOf(states.redeemStage);
|
|
2997
|
-
return (h("div", { class: sheet$
|
|
3058
|
+
return (h("div", { class: sheet$9.classes.ProgressBar },
|
|
2998
3059
|
h("div", { class: "text-area" }, Object.keys(stageProgressList).map((stage) => {
|
|
2999
3060
|
if (stageList.indexOf(stage) <= stageNumber) {
|
|
3000
3061
|
return h("span", { class: "text" }, stageProgressList[stage]);
|
|
@@ -3006,10 +3067,10 @@ function RewardExchangeView(props) {
|
|
|
3006
3067
|
h(ProgressBar, { stageCount: 3, currentStage: stageNumber })));
|
|
3007
3068
|
}
|
|
3008
3069
|
function loading() {
|
|
3009
|
-
return (h("div", { class: sheet$
|
|
3070
|
+
return (h("div", { class: sheet$9.classes.Grid }, [...Array(states.content.text.skeletonCardNum)].map(() => {
|
|
3010
3071
|
return (h("div", null,
|
|
3011
|
-
h("sl-card", { class: sheet$
|
|
3012
|
-
h("div", { class: sheet$
|
|
3072
|
+
h("sl-card", { class: sheet$9.classes.Card },
|
|
3073
|
+
h("div", { class: sheet$9.classes.CardLayout },
|
|
3013
3074
|
h("div", null,
|
|
3014
3075
|
h("sl-skeleton", { style: {
|
|
3015
3076
|
width: "100px",
|
|
@@ -3041,12 +3102,12 @@ function RewardExchangeView(props) {
|
|
|
3041
3102
|
if (!(refs === null || refs === void 0 ? void 0 : refs.canvasRef))
|
|
3042
3103
|
return;
|
|
3043
3104
|
refs.canvasRef.current = canvas;
|
|
3044
|
-
}, id: "my-canvas", class: sheet$
|
|
3105
|
+
}, id: "my-canvas", class: sheet$9.classes.Confetti }));
|
|
3045
3106
|
}
|
|
3046
3107
|
if (states.noExchangeOptions)
|
|
3047
3108
|
return states.content.text.empty;
|
|
3048
|
-
return (h("div", { class: sheet$
|
|
3049
|
-
h("style", { type: "text/css" }, styleString$
|
|
3109
|
+
return (h("div", { class: sheet$9.classes.Container },
|
|
3110
|
+
h("style", { type: "text/css" }, styleString$9),
|
|
3050
3111
|
h("div", null,
|
|
3051
3112
|
stageMap(),
|
|
3052
3113
|
states.exchangeError && errorMessage(),
|
|
@@ -3073,7 +3134,7 @@ const baseResponse = (data, stage = "chooseReward", selectedItem = null, selecte
|
|
|
3073
3134
|
redeemTitle: "Confirm and redeem",
|
|
3074
3135
|
redemptionSuccessText: "Redeemed {sourceValue} for {destinationValue}",
|
|
3075
3136
|
doneText: "Done",
|
|
3076
|
-
|
|
3137
|
+
tooltipText: "Copied!",
|
|
3077
3138
|
selectText: "Select amount to receive",
|
|
3078
3139
|
sourceAmountMessage: "{ruleType, select, FIXED_GLOBAL_REWARD {{sourceValue}} other {{sourceMinValue} to {sourceMaxValue}}}",
|
|
3079
3140
|
rewardRedeemedText: "Reward redeemed",
|
|
@@ -3438,6 +3499,7 @@ const empty = {
|
|
|
3438
3499
|
};
|
|
3439
3500
|
|
|
3440
3501
|
function CardFeedView(props, children) {
|
|
3502
|
+
// Dependent on props, not feasiable to move out
|
|
3441
3503
|
const style = {
|
|
3442
3504
|
Container: {
|
|
3443
3505
|
columnGap: props.gap + "px",
|
|
@@ -3547,4 +3609,4 @@ const ShadowViewAddon = ({ story }, children) => {
|
|
|
3547
3609
|
h(TagName, { "stencilbook-shadow-view": randomInt })));
|
|
3548
3610
|
};
|
|
3549
3611
|
|
|
3550
|
-
export {
|
|
3612
|
+
export { empty as A, BigStatView as B, rewardExchange as C, CardFeedView as D, EditProfileView as E, autoColorScaleCss as F, ShadowViewAddon as G, useBigStat as H, withShadowView as I, demoRewardExchange as J, pathToRegexp as K, LeaderboardView as L, PortalFrameView as P, ReferralIframeView as R, ShareButtonView as S, TaskCardView as T, ShareLinkView as a, useShareButton as b, useDemoBigStat as c, StatContainerView as d, PortalChangePasswordView as e, PortalLoginView as f, PortalRegisterView as g, ProgressBarView as h, RewardExchangeView as i, rewardExchangeLongText as j, rewardExchangeSelected as k, chooseAmountFixed as l, chooseAmountFixedNoDescription as m, chooseAmountVariable as n, chooseAmountVariableNoDescription as o, chooseAmountVariableDisabled as p, chooseAmountVariableUnavailable as q, rewardExchangeCustomErrorMsg as r, confirmFixed as s, confirmVariable as t, useShareLink as u, redemptionError as v, queryError as w, success as x, successVariable as y, loading as z };
|