@saasquatch/mint-components 1.5.0-103 → 1.5.0-104
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{ShadowViewAddon-0cd7b382.js → ShadowViewAddon-68b2edc9.js} +356 -355
- package/dist/cjs/{global-633d1fb7.js → global-4c495d76.js} +1 -1
- package/dist/cjs/{index.module-f972f103.js → index.module-54724339.js} +6298 -6298
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/mint-components.cjs.js +3 -3
- package/dist/cjs/{re-render-1ef744c7.js → re-render-2f8d0f37.js} +2 -2
- package/dist/cjs/sqm-asset-card.cjs.entry.js +2 -2
- package/dist/cjs/sqm-big-stat.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-brand_30.cjs.entry.js → sqm-brand_29.cjs.entry.js} +75 -93
- package/dist/cjs/{sqm-image_4.cjs.entry.js → sqm-empty_5.cjs.entry.js} +20 -0
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +5 -5
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +5 -5
- package/dist/cjs/sqm-name-fields.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-navigation-sidebar-item-view-2ac54715.js → sqm-navigation-sidebar-item-view-da648fbc.js} +2 -2
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +4 -4
- package/dist/cjs/sqm-password-field.cjs.entry.js +2 -2
- package/dist/cjs/sqm-popup-container.cjs.entry.js +4 -4
- package/dist/cjs/{sqm-portal-email-verification-view-c32a55d6.js → sqm-portal-email-verification-view-1552442a.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +6 -6
- package/dist/cjs/{sqm-portal-footer-view-cac67bc9.js → sqm-portal-footer-view-15ce261b.js} +1 -1
- package/dist/cjs/sqm-portal-footer.cjs.entry.js +3 -3
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +4 -4
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +4 -4
- package/dist/cjs/{sqm-portal-profile-view-dea275e0.js → sqm-portal-profile-view-659635e9.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +7 -7
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +6 -6
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +6 -6
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +6 -6
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +6 -6
- package/dist/cjs/sqm-refresh-button.cjs.entry.js +2 -2
- package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +2 -2
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +12 -11
- package/dist/cjs/{sqm-stat-container-view-5b2db929.js → sqm-stat-container-view-8aaf6cb8.js} +1 -1
- package/dist/cjs/sqm-stat-container.cjs.entry.js +7 -1
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +102 -108
- package/dist/cjs/sqm-tabs.cjs.entry.js +2 -2
- package/dist/cjs/{useChildElements-3ce892db.js → useChildElements-a68699b4.js} +1 -1
- package/dist/cjs/{useDemoBigStat-99093687.js → useDemoBigStat-426e3319.js} +4 -4
- package/dist/cjs/{useReferralTable-464dd3a0.js → useReferralTable-273bb515.js} +7 -7
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +0 -2
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +0 -1
- package/dist/collection/components/sqm-referral-card/ReferralCard.stories.js +3 -4
- package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeListData.js +5 -1
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +323 -323
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +35 -12
- package/dist/collection/components/sqm-reward-exchange-list/useRewardExchangeList.js +2 -1
- package/dist/collection/components/sqm-rewards-table/RewardsTableCell.stories.js +8 -4
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.js +23 -4
- package/dist/collection/components/sqm-rewards-table/columns/{sqm-customer-note-column.js → sqm-rewards-table-note-column.js} +0 -0
- package/dist/collection/components/sqm-stat-container/sqm-stat-container-view.js +1 -1
- package/dist/collection/components/sqm-stat-container/sqm-stat-container.js +33 -0
- package/dist/collection/components/sqm-titled-section/TitledSection.stories.js +3 -16
- package/dist/esm/{ShadowViewAddon-b5622349.js → ShadowViewAddon-00bf6e74.js} +356 -355
- package/dist/esm/{global-7d4eb5e5.js → global-a8e9f822.js} +1 -1
- package/dist/esm/{index.module-aac201f3.js → index.module-2821f17d.js} +6281 -6281
- package/dist/esm/loader.js +3 -3
- package/dist/esm/mint-components.js +3 -3
- package/dist/esm/{re-render-544e9c59.js → re-render-07721d1b.js} +2 -2
- package/dist/esm/sqm-asset-card.entry.js +2 -2
- package/dist/esm/sqm-big-stat.entry.js +3 -3
- package/dist/esm/{sqm-brand_30.entry.js → sqm-brand_29.entry.js} +75 -92
- package/dist/esm/{sqm-image_4.entry.js → sqm-empty_5.entry.js} +21 -2
- package/dist/esm/sqm-graphql-client-provider.entry.js +5 -5
- package/dist/esm/sqm-leaderboard-rank.entry.js +5 -5
- package/dist/esm/sqm-name-fields.entry.js +2 -2
- package/dist/esm/{sqm-navigation-sidebar-item-view-df7cc698.js → sqm-navigation-sidebar-item-view-9380a346.js} +2 -2
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +4 -4
- package/dist/esm/sqm-password-field.entry.js +2 -2
- package/dist/esm/sqm-popup-container.entry.js +4 -4
- package/dist/esm/{sqm-portal-email-verification-view-86e3ff2e.js → sqm-portal-email-verification-view-cf3a4840.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +6 -6
- package/dist/esm/{sqm-portal-footer-view-d6a43c4d.js → sqm-portal-footer-view-ba9892f9.js} +1 -1
- package/dist/esm/sqm-portal-footer.entry.js +3 -3
- package/dist/esm/sqm-portal-forgot-password.entry.js +4 -4
- package/dist/esm/sqm-portal-logout.entry.js +4 -4
- package/dist/esm/{sqm-portal-profile-view-ae44e2bb.js → sqm-portal-profile-view-f795d0cd.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +7 -7
- package/dist/esm/sqm-portal-protected-route.entry.js +6 -6
- package/dist/esm/sqm-portal-reset-password.entry.js +6 -6
- package/dist/esm/sqm-portal-verify-email.entry.js +6 -6
- package/dist/esm/sqm-referral-table_11.entry.js +6 -6
- package/dist/esm/sqm-refresh-button.entry.js +2 -2
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +2 -2
- package/dist/esm/sqm-rewards-table_9.entry.js +12 -11
- package/dist/esm/{sqm-stat-container-view-8a565c5a.js → sqm-stat-container-view-226b6496.js} +1 -1
- package/dist/esm/sqm-stat-container.entry.js +7 -1
- package/dist/esm/sqm-stencilbook.entry.js +102 -108
- package/dist/esm/sqm-tabs.entry.js +2 -2
- package/dist/esm/{useChildElements-db935587.js → useChildElements-62af7349.js} +1 -1
- package/dist/esm/{useDemoBigStat-a4835c19.js → useDemoBigStat-b5a22d26.js} +4 -4
- package/dist/esm/{useReferralTable-15634a86.js → useReferralTable-43a3a215.js} +7 -7
- package/dist/esm-es5/ShadowViewAddon-00bf6e74.js +1 -0
- package/dist/esm-es5/{global-7d4eb5e5.js → global-a8e9f822.js} +1 -1
- package/dist/esm-es5/index.module-2821f17d.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/{re-render-544e9c59.js → re-render-07721d1b.js} +1 -1
- package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat.entry.js +1 -1
- package/dist/esm-es5/sqm-brand_29.entry.js +1 -0
- package/dist/esm-es5/sqm-empty_5.entry.js +1 -0
- package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-name-fields.entry.js +1 -1
- package/dist/esm-es5/{sqm-navigation-sidebar-item-view-df7cc698.js → sqm-navigation-sidebar-item-view-9380a346.js} +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/sqm-password-field.entry.js +1 -1
- package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-86e3ff2e.js → sqm-portal-email-verification-view-cf3a4840.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-ba9892f9.js} +1 -1
- package/dist/esm-es5/sqm-portal-footer.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-ae44e2bb.js → sqm-portal-profile-view-f795d0cd.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.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-refresh-button.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm-es5/sqm-stat-container-view-226b6496.js +1 -0
- package/dist/esm-es5/sqm-stat-container.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-tabs.entry.js +1 -1
- package/dist/esm-es5/useChildElements-62af7349.js +1 -0
- package/dist/esm-es5/useDemoBigStat-b5a22d26.js +1 -0
- package/dist/esm-es5/useReferralTable-43a3a215.js +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-fcd096b3.entry.js → p-030f89b3.entry.js} +1 -1
- package/dist/mint-components/p-07eebf02.system.entry.js +1 -0
- package/dist/mint-components/{p-3ef38b2e.js → p-09fbcba5.js} +1 -1
- package/dist/mint-components/{p-e82076e4.system.js → p-1122f7df.system.js} +1 -1
- package/dist/mint-components/{p-7e1afa8c.system.entry.js → p-1703d3c0.system.entry.js} +1 -1
- package/dist/mint-components/{p-a8141e7b.entry.js → p-19822c1b.entry.js} +1 -1
- package/dist/mint-components/{p-beac1a46.js → p-1af65647.js} +1 -1
- package/dist/mint-components/{p-e23aee93.system.entry.js → p-250d40f6.system.entry.js} +1 -1
- package/dist/mint-components/{p-1c3c2ddb.system.js → p-266268d2.system.js} +1 -1
- package/dist/mint-components/{p-87c9955f.entry.js → p-2bdc0c84.entry.js} +1 -1
- package/dist/mint-components/{p-84679261.system.entry.js → p-2d74e444.system.entry.js} +1 -1
- package/dist/mint-components/p-3a0e33b9.entry.js +13 -0
- package/dist/mint-components/p-3f23ef21.entry.js +150 -0
- package/dist/mint-components/{p-4e0ce80b.js → p-4063dca2.js} +1 -1
- package/dist/mint-components/{p-fda350c6.entry.js → p-41a87a92.entry.js} +1 -1
- package/dist/mint-components/p-4b60eb5d.entry.js +1 -0
- package/dist/mint-components/{p-d264d1a0.system.js → p-4ceaa514.system.js} +1 -1
- package/dist/mint-components/{p-8f44832b.system.entry.js → p-4e4b69c2.system.entry.js} +1 -1
- package/dist/mint-components/p-4e5adaca.entry.js +93 -0
- package/dist/mint-components/{p-4afe1b9c.entry.js → p-59afa159.entry.js} +1 -1
- package/dist/mint-components/{p-d2679942.system.js → p-59e4405d.system.js} +1 -1
- package/dist/mint-components/{p-91951a0a.system.entry.js → p-5da31edf.system.entry.js} +1 -1
- package/dist/mint-components/{p-7e955ed7.js → p-62dd50b3.js} +2 -2
- package/dist/mint-components/{p-ad9edc1d.js → p-66fc28d0.js} +1 -1
- package/dist/mint-components/{p-b4a69b7d.entry.js → p-68bafbde.entry.js} +1 -1
- package/dist/mint-components/p-6e209ecc.system.entry.js +1 -0
- package/dist/mint-components/{p-ae9e009f.system.entry.js → p-74085e0d.system.entry.js} +1 -1
- package/dist/mint-components/{p-66ea5383.system.entry.js → p-75a78c16.system.entry.js} +1 -1
- package/dist/mint-components/p-77c4071b.entry.js +1 -0
- package/dist/mint-components/p-78df4d2d.system.js +1 -0
- package/dist/mint-components/{p-d7736049.system.entry.js → p-7b854fc1.system.entry.js} +1 -1
- package/dist/mint-components/{p-4e5b972a.system.js → p-838242f3.system.js} +1 -1
- package/dist/mint-components/{p-0d22d33b.system.entry.js → p-8a4221e2.system.entry.js} +1 -1
- package/dist/mint-components/p-8a8d0514.system.js +1 -0
- package/dist/mint-components/p-95a89867.js +1 -0
- package/dist/mint-components/{p-96e0913b.entry.js → p-996e20c4.entry.js} +1 -1
- package/dist/mint-components/{p-93e15034.entry.js → p-999a46af.entry.js} +1 -1
- package/dist/mint-components/{p-2236fe73.entry.js → p-9a41655e.entry.js} +1 -1
- package/dist/mint-components/{p-69303d97.system.js → p-9d467470.system.js} +1 -1
- package/dist/mint-components/{p-ae99111f.system.entry.js → p-9e2168f7.system.entry.js} +1 -1
- package/dist/mint-components/p-9e4f0169.system.entry.js +1 -0
- package/dist/mint-components/p-a13b5757.system.js +1 -0
- package/dist/mint-components/p-a44b64d5.js +1 -0
- package/dist/mint-components/{p-da7c436f.system.entry.js → p-a62a0cf6.system.entry.js} +1 -1
- package/dist/mint-components/{p-d972a0cc.system.js → p-aa09f12b.system.js} +1 -1
- package/dist/mint-components/p-b359d5a5.entry.js +1 -0
- package/dist/mint-components/{p-49667de1.system.entry.js → p-b5c6ff52.system.entry.js} +1 -1
- package/dist/mint-components/{p-5598243a.system.entry.js → p-b6fbd9cd.system.entry.js} +1 -1
- package/dist/mint-components/{p-759df017.system.entry.js → p-b7e5ba0d.system.entry.js} +1 -1
- package/dist/mint-components/{p-20e8567f.entry.js → p-bca007f0.entry.js} +1 -1
- package/dist/mint-components/{p-d25bded1.system.entry.js → p-be02b2a2.system.entry.js} +1 -1
- package/dist/mint-components/p-be6cae2c.entry.js +1 -0
- package/dist/mint-components/{p-72296718.system.entry.js → p-c00fd233.system.entry.js} +1 -1
- package/dist/mint-components/{p-75f54850.entry.js → p-c0693ddc.entry.js} +1 -1
- package/dist/mint-components/p-c5037c05.system.entry.js +1 -0
- package/dist/mint-components/{p-f6507695.system.entry.js → p-c5a656af.system.entry.js} +1 -1
- package/dist/mint-components/{p-cf699d0e.system.entry.js → p-c7f81b0e.system.entry.js} +1 -1
- package/dist/mint-components/{p-c8aa6875.entry.js → p-cd69d4f6.entry.js} +2 -2
- package/dist/mint-components/p-cdebf9f7.system.entry.js +1 -0
- package/dist/mint-components/{p-087b15f9.system.js → p-cf9c3022.system.js} +1 -1
- package/dist/mint-components/p-d0c09868.js +1 -0
- package/dist/mint-components/p-d13b1d06.entry.js +1 -0
- package/dist/mint-components/p-d3d9ff6a.js +30 -0
- package/dist/mint-components/p-d98083fb.entry.js +1 -0
- package/dist/mint-components/{p-9351348e.entry.js → p-db9e20a0.entry.js} +1 -1
- package/dist/mint-components/{p-c5314bbc.js → p-de2e871a.js} +1 -1
- package/dist/mint-components/{p-62db6962.js → p-e15e8e89.js} +1 -1
- package/dist/mint-components/p-e6fac878.entry.js +1 -0
- package/dist/mint-components/{p-16023c39.system.entry.js → p-e89b298a.system.entry.js} +1 -1
- package/dist/mint-components/p-e9b25ba1.system.js +1 -0
- package/dist/mint-components/{p-27fd7174.system.entry.js → p-e9d8c4d3.system.entry.js} +1 -1
- package/dist/mint-components/{p-55b6147d.js → p-ef030fdf.js} +1 -1
- package/dist/mint-components/{p-1204f7df.entry.js → p-f94c4847.entry.js} +1 -1
- package/dist/mint-components/p-f983083d.system.js +1 -0
- package/dist/mint-components/{p-489e6803.entry.js → p-fd13532e.entry.js} +2 -2
- package/dist/types/components/sqm-referral-card/ReferralCard.stories.d.ts +0 -2
- package/dist/types/components/sqm-reward-exchange-list/RewardExchangeListData.d.ts +68 -17
- package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.d.ts +33 -3
- package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list.d.ts +4 -0
- package/dist/types/components/sqm-reward-exchange-list/useRewardExchangeList.d.ts +32 -2
- package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.d.ts +1 -0
- package/dist/types/components/sqm-rewards-table/columns/{sqm-customer-note-column.d.ts → sqm-rewards-table-note-column.d.ts} +0 -0
- package/dist/types/components/sqm-stat-container/sqm-stat-container-view.d.ts +1 -0
- package/dist/types/components/sqm-stat-container/sqm-stat-container.d.ts +6 -0
- package/dist/types/components.d.ts +22 -0
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/esm-es5/ShadowViewAddon-b5622349.js +0 -1
- package/dist/esm-es5/index.module-aac201f3.js +0 -1
- package/dist/esm-es5/sqm-brand_30.entry.js +0 -1
- package/dist/esm-es5/sqm-image_4.entry.js +0 -1
- package/dist/esm-es5/sqm-stat-container-view-8a565c5a.js +0 -1
- package/dist/esm-es5/useChildElements-db935587.js +0 -1
- package/dist/esm-es5/useDemoBigStat-a4835c19.js +0 -1
- package/dist/esm-es5/useReferralTable-15634a86.js +0 -1
- package/dist/mint-components/p-0aeaf674.system.entry.js +0 -1
- package/dist/mint-components/p-0f7fbf97.system.js +0 -1
- package/dist/mint-components/p-204fd08c.js +0 -1
- package/dist/mint-components/p-3c39b94e.entry.js +0 -1
- package/dist/mint-components/p-3dbd3303.entry.js +0 -13
- package/dist/mint-components/p-403e84cc.system.entry.js +0 -1
- package/dist/mint-components/p-48b4104d.entry.js +0 -1
- package/dist/mint-components/p-55f3d841.system.js +0 -1
- package/dist/mint-components/p-5d32d268.system.entry.js +0 -1
- package/dist/mint-components/p-859a8ad4.entry.js +0 -1
- package/dist/mint-components/p-a27f07cd.system.entry.js +0 -1
- package/dist/mint-components/p-a95844a2.js +0 -1
- package/dist/mint-components/p-addc5905.entry.js +0 -1
- package/dist/mint-components/p-b2e9125e.js +0 -30
- package/dist/mint-components/p-b67aa6c9.system.js +0 -1
- package/dist/mint-components/p-b83ee009.js +0 -1
- package/dist/mint-components/p-b8434fc0.system.js +0 -1
- package/dist/mint-components/p-bc36d835.entry.js +0 -150
- package/dist/mint-components/p-cab80b22.entry.js +0 -1
- package/dist/mint-components/p-e4320d52.entry.js +0 -1
- package/dist/mint-components/p-eaffa09a.system.js +0 -1
- package/dist/mint-components/p-f3e14bb4.entry.js +0 -1
- package/dist/mint-components/p-f620b6a7.system.entry.js +0 -1
- package/dist/mint-components/p-fd5e2244.entry.js +0 -93
- package/shoelace/assets/icons/123.svg +0 -3
- package/shoelace/assets/icons/activity.svg +0 -3
- package/shoelace/assets/icons/apple.svg +0 -4
- package/shoelace/assets/icons/bandaid-fill.svg +0 -3
- package/shoelace/assets/icons/bandaid.svg +0 -4
- package/shoelace/assets/icons/bank.svg +0 -3
- package/shoelace/assets/icons/bank2.svg +0 -3
- package/shoelace/assets/icons/behance.svg +0 -3
- package/shoelace/assets/icons/bell-slash-fill.svg +0 -3
- package/shoelace/assets/icons/bell-slash.svg +0 -3
- package/shoelace/assets/icons/bluetooth.svg +0 -3
- package/shoelace/assets/icons/body-text.svg +0 -3
- package/shoelace/assets/icons/boombox-fill.svg +0 -4
- package/shoelace/assets/icons/boombox.svg +0 -6
- package/shoelace/assets/icons/boxes.svg +0 -3
- package/shoelace/assets/icons/cash-coin.svg +0 -6
- package/shoelace/assets/icons/check-lg.svg +0 -3
- package/shoelace/assets/icons/cloud-haze2.svg +0 -3
- package/shoelace/assets/icons/coin.svg +0 -5
- package/shoelace/assets/icons/currency-bitcoin.svg +0 -3
- package/shoelace/assets/icons/currency-dollar.svg +0 -3
- package/shoelace/assets/icons/currency-euro.svg +0 -3
- package/shoelace/assets/icons/currency-exchange.svg +0 -3
- package/shoelace/assets/icons/currency-pound.svg +0 -3
- package/shoelace/assets/icons/currency-yen.svg +0 -3
- package/shoelace/assets/icons/dash-lg.svg +0 -3
- package/shoelace/assets/icons/device-hdd-fill.svg +0 -4
- package/shoelace/assets/icons/device-hdd.svg +0 -5
- package/shoelace/assets/icons/device-ssd-fill.svg +0 -4
- package/shoelace/assets/icons/device-ssd.svg +0 -4
- package/shoelace/assets/icons/displayport-fill.svg +0 -3
- package/shoelace/assets/icons/displayport.svg +0 -4
- package/shoelace/assets/icons/dpad-fill.svg +0 -3
- package/shoelace/assets/icons/dpad.svg +0 -4
- package/shoelace/assets/icons/dribbble.svg +0 -3
- package/shoelace/assets/icons/ear-fill.svg +0 -3
- package/shoelace/assets/icons/ear.svg +0 -3
- package/shoelace/assets/icons/easel2-fill.svg +0 -4
- package/shoelace/assets/icons/easel2.svg +0 -3
- package/shoelace/assets/icons/easel3-fill.svg +0 -3
- package/shoelace/assets/icons/easel3.svg +0 -3
- package/shoelace/assets/icons/envelope-check-fill.svg +0 -4
- package/shoelace/assets/icons/envelope-check.svg +0 -4
- package/shoelace/assets/icons/envelope-dash-fill.svg +0 -4
- package/shoelace/assets/icons/envelope-dash.svg +0 -4
- package/shoelace/assets/icons/envelope-exclamation-fill.svg +0 -4
- package/shoelace/assets/icons/envelope-exclamation.svg +0 -4
- package/shoelace/assets/icons/envelope-plus-fill.svg +0 -4
- package/shoelace/assets/icons/envelope-plus.svg +0 -4
- package/shoelace/assets/icons/envelope-slash-fill.svg +0 -4
- package/shoelace/assets/icons/envelope-slash.svg +0 -4
- package/shoelace/assets/icons/envelope-x-fill.svg +0 -4
- package/shoelace/assets/icons/envelope-x.svg +0 -4
- package/shoelace/assets/icons/ethernet.svg +0 -4
- package/shoelace/assets/icons/exclamation-lg.svg +0 -3
- package/shoelace/assets/icons/explicit-fill.svg +0 -3
- package/shoelace/assets/icons/explicit.svg +0 -4
- package/shoelace/assets/icons/fan.svg +0 -4
- package/shoelace/assets/icons/file-earmark-pdf-fill.svg +0 -4
- package/shoelace/assets/icons/file-earmark-pdf.svg +0 -4
- package/shoelace/assets/icons/file-pdf-fill.svg +0 -4
- package/shoelace/assets/icons/file-pdf.svg +0 -4
- package/shoelace/assets/icons/fingerprint.svg +0 -7
- package/shoelace/assets/icons/gender-ambiguous.svg +0 -3
- package/shoelace/assets/icons/gender-female.svg +0 -3
- package/shoelace/assets/icons/gender-male.svg +0 -3
- package/shoelace/assets/icons/gender-trans.svg +0 -3
- package/shoelace/assets/icons/git.svg +0 -3
- package/shoelace/assets/icons/gpu-card.svg +0 -5
- package/shoelace/assets/icons/graph-down-arrow.svg +0 -3
- package/shoelace/assets/icons/graph-up-arrow.svg +0 -3
- package/shoelace/assets/icons/hdmi-fill.svg +0 -3
- package/shoelace/assets/icons/hdmi.svg +0 -4
- package/shoelace/assets/icons/headset-vr.svg +0 -4
- package/shoelace/assets/icons/hypnotize.svg +0 -4
- package/shoelace/assets/icons/infinity.svg +0 -3
- package/shoelace/assets/icons/info-lg.svg +0 -3
- package/shoelace/assets/icons/line.svg +0 -3
- package/shoelace/assets/icons/list-columns-reverse.svg +0 -3
- package/shoelace/assets/icons/list-columns.svg +0 -3
- package/shoelace/assets/icons/magic.svg +0 -3
- package/shoelace/assets/icons/mastodon.svg +0 -3
- package/shoelace/assets/icons/medium.svg +0 -3
- package/shoelace/assets/icons/memory.svg +0 -3
- package/shoelace/assets/icons/messenger.svg +0 -3
- package/shoelace/assets/icons/meta.svg +0 -3
- package/shoelace/assets/icons/microsoft.svg +0 -3
- package/shoelace/assets/icons/modem-fill.svg +0 -3
- package/shoelace/assets/icons/modem.svg +0 -4
- package/shoelace/assets/icons/mortarboard-fill.svg +0 -4
- package/shoelace/assets/icons/mortarboard.svg +0 -4
- package/shoelace/assets/icons/motherboard-fill.svg +0 -4
- package/shoelace/assets/icons/motherboard.svg +0 -4
- package/shoelace/assets/icons/nintendo-switch.svg +0 -4
- package/shoelace/assets/icons/optical-audio-fill.svg +0 -4
- package/shoelace/assets/icons/optical-audio.svg +0 -5
- package/shoelace/assets/icons/paypal.svg +0 -3
- package/shoelace/assets/icons/pc-display-horizontal.svg +0 -3
- package/shoelace/assets/icons/pc-display.svg +0 -3
- package/shoelace/assets/icons/pc-horizontal.svg +0 -3
- package/shoelace/assets/icons/pc.svg +0 -3
- package/shoelace/assets/icons/pci-card.svg +0 -4
- package/shoelace/assets/icons/person-rolodex.svg +0 -4
- package/shoelace/assets/icons/person-video.svg +0 -4
- package/shoelace/assets/icons/person-video2.svg +0 -4
- package/shoelace/assets/icons/person-video3.svg +0 -4
- package/shoelace/assets/icons/person-workspace.svg +0 -4
- package/shoelace/assets/icons/piggy-bank-fill.svg +0 -3
- package/shoelace/assets/icons/piggy-bank.svg +0 -4
- package/shoelace/assets/icons/pin-map-fill.svg +0 -4
- package/shoelace/assets/icons/pin-map.svg +0 -4
- package/shoelace/assets/icons/pinterest.svg +0 -3
- package/shoelace/assets/icons/playstation.svg +0 -3
- package/shoelace/assets/icons/plus-lg.svg +0 -3
- package/shoelace/assets/icons/plus-slash-minus.svg +0 -3
- package/shoelace/assets/icons/projector-fill.svg +0 -3
- package/shoelace/assets/icons/projector.svg +0 -4
- package/shoelace/assets/icons/qr-code-scan.svg +0 -7
- package/shoelace/assets/icons/qr-code.svg +0 -7
- package/shoelace/assets/icons/question-lg.svg +0 -3
- package/shoelace/assets/icons/quora.svg +0 -3
- package/shoelace/assets/icons/quote.svg +0 -3
- package/shoelace/assets/icons/radioactive.svg +0 -4
- package/shoelace/assets/icons/recycle.svg +0 -3
- package/shoelace/assets/icons/reddit.svg +0 -4
- package/shoelace/assets/icons/robot.svg +0 -4
- package/shoelace/assets/icons/router-fill.svg +0 -6
- package/shoelace/assets/icons/router.svg +0 -6
- package/shoelace/assets/icons/safe-fill.svg +0 -4
- package/shoelace/assets/icons/safe.svg +0 -4
- package/shoelace/assets/icons/safe2-fill.svg +0 -4
- package/shoelace/assets/icons/safe2.svg +0 -4
- package/shoelace/assets/icons/sd-card-fill.svg +0 -3
- package/shoelace/assets/icons/sd-card.svg +0 -4
- package/shoelace/assets/icons/send-check-fill.svg +0 -4
- package/shoelace/assets/icons/send-check.svg +0 -4
- package/shoelace/assets/icons/send-dash-fill.svg +0 -4
- package/shoelace/assets/icons/send-dash.svg +0 -4
- package/shoelace/assets/icons/send-exclamation-fill.svg +0 -4
- package/shoelace/assets/icons/send-exclamation.svg +0 -4
- package/shoelace/assets/icons/send-fill.svg +0 -3
- package/shoelace/assets/icons/send-plus-fill.svg +0 -4
- package/shoelace/assets/icons/send-plus.svg +0 -4
- package/shoelace/assets/icons/send-slash-fill.svg +0 -4
- package/shoelace/assets/icons/send-slash.svg +0 -4
- package/shoelace/assets/icons/send-x-fill.svg +0 -4
- package/shoelace/assets/icons/send-x.svg +0 -4
- package/shoelace/assets/icons/send.svg +0 -3
- package/shoelace/assets/icons/signal.svg +0 -3
- package/shoelace/assets/icons/skype.svg +0 -3
- package/shoelace/assets/icons/slash-lg.svg +0 -3
- package/shoelace/assets/icons/snapchat.svg +0 -3
- package/shoelace/assets/icons/spotify.svg +0 -3
- package/shoelace/assets/icons/stack-overflow.svg +0 -4
- package/shoelace/assets/icons/steam.svg +0 -4
- package/shoelace/assets/icons/strava.svg +0 -3
- package/shoelace/assets/icons/terminal-dash.svg +0 -4
- package/shoelace/assets/icons/terminal-plus.svg +0 -4
- package/shoelace/assets/icons/terminal-split.svg +0 -4
- package/shoelace/assets/icons/terminal-x.svg +0 -4
- package/shoelace/assets/icons/thunderbolt-fill.svg +0 -3
- package/shoelace/assets/icons/thunderbolt.svg +0 -4
- package/shoelace/assets/icons/ticket-detailed-fill.svg +0 -3
- package/shoelace/assets/icons/ticket-detailed.svg +0 -4
- package/shoelace/assets/icons/ticket-fill.svg +0 -3
- package/shoelace/assets/icons/ticket-perforated-fill.svg +0 -3
- package/shoelace/assets/icons/ticket-perforated.svg +0 -4
- package/shoelace/assets/icons/ticket.svg +0 -3
- package/shoelace/assets/icons/tiktok.svg +0 -3
- package/shoelace/assets/icons/translate.svg +0 -4
- package/shoelace/assets/icons/usb-c-fill.svg +0 -3
- package/shoelace/assets/icons/usb-c.svg +0 -4
- package/shoelace/assets/icons/usb-drive-fill.svg +0 -3
- package/shoelace/assets/icons/usb-drive.svg +0 -3
- package/shoelace/assets/icons/usb-fill.svg +0 -3
- package/shoelace/assets/icons/usb-micro-fill.svg +0 -3
- package/shoelace/assets/icons/usb-micro.svg +0 -4
- package/shoelace/assets/icons/usb-mini-fill.svg +0 -3
- package/shoelace/assets/icons/usb-mini.svg +0 -4
- package/shoelace/assets/icons/usb-plug-fill.svg +0 -3
- package/shoelace/assets/icons/usb-plug.svg +0 -3
- package/shoelace/assets/icons/usb-symbol.svg +0 -3
- package/shoelace/assets/icons/usb.svg +0 -4
- package/shoelace/assets/icons/vimeo.svg +0 -3
- package/shoelace/assets/icons/webcam-fill.svg +0 -4
- package/shoelace/assets/icons/webcam.svg +0 -4
- package/shoelace/assets/icons/window-dash.svg +0 -5
- package/shoelace/assets/icons/window-desktop.svg +0 -4
- package/shoelace/assets/icons/window-fullscreen.svg +0 -4
- package/shoelace/assets/icons/window-plus.svg +0 -5
- package/shoelace/assets/icons/window-split.svg +0 -4
- package/shoelace/assets/icons/window-stack.svg +0 -4
- package/shoelace/assets/icons/window-x.svg +0 -5
- package/shoelace/assets/icons/windows.svg +0 -3
- package/shoelace/assets/icons/wordpress.svg +0 -5
- package/shoelace/assets/icons/x-lg.svg +0 -4
- package/shoelace/assets/icons/xbox.svg +0 -3
- package/shoelace/assets/icons/yin-yang.svg +0 -4
- package/shoelace/themes/themes/dark.styles.d.ts +0 -2
- package/shoelace/themes/themes/dark.styles.js +0 -531
- package/shoelace/themes/themes/light.css +0 -439
- package/shoelace/themes/themes/light.styles.d.ts +0 -2
- package/shoelace/themes/themes/light.styles.js +0 -531
|
@@ -2,8 +2,8 @@
|
|
|
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-
|
|
6
|
-
const index_module = require('./index.module-
|
|
5
|
+
const global = require('./global-4c495d76.js');
|
|
6
|
+
const index_module = require('./index.module-54724339.js');
|
|
7
7
|
const mixins = require('./mixins-7b7c59fe.js');
|
|
8
8
|
const JSS = require('./JSS-c65a40f1.js');
|
|
9
9
|
const luxon = require('./luxon-59ca7d19.js');
|
|
@@ -154,7 +154,6 @@ function LeaderboardView(props) {
|
|
|
154
154
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
155
155
|
const { states, data, elements } = props;
|
|
156
156
|
const { styles } = states;
|
|
157
|
-
console.log("LEADERBOARD PROPS", props);
|
|
158
157
|
if (states.loading)
|
|
159
158
|
return (index.h("div", { class: sheet$1.classes.Leaderboard },
|
|
160
159
|
index.h("style", { type: "text/css" },
|
|
@@ -162,7 +161,6 @@ function LeaderboardView(props) {
|
|
|
162
161
|
vanillaStyle),
|
|
163
162
|
elements.loadingstate));
|
|
164
163
|
let userSeenFlag = false;
|
|
165
|
-
console.log("empty", states.hasLeaders);
|
|
166
164
|
if (!states.hasLeaders) {
|
|
167
165
|
return (index.h("div", { class: sheet$1.classes.Leaderboard },
|
|
168
166
|
index.h("style", { type: "text/css" },
|
|
@@ -332,10 +330,10 @@ const WIDGET_ENGAGEMENT_EVENT = index_module.dist.gql `
|
|
|
332
330
|
function useShareLink(props) {
|
|
333
331
|
var _a, _b;
|
|
334
332
|
const { programId = index_module.M() } = props;
|
|
335
|
-
const user = index_module.
|
|
336
|
-
const engagementMedium = index_module.
|
|
337
|
-
const { data } = index_module.
|
|
338
|
-
const [sendLoadEvent] = index_module.
|
|
333
|
+
const user = index_module.ne();
|
|
334
|
+
const engagementMedium = index_module.x();
|
|
335
|
+
const { data } = index_module.mn(MessageLinkQuery, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
336
|
+
const [sendLoadEvent] = index_module.De(WIDGET_ENGAGEMENT_EVENT);
|
|
339
337
|
const shareString = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.shareLink) !== null && _b !== void 0 ? _b :
|
|
340
338
|
// Shown during loading
|
|
341
339
|
"...";
|
|
@@ -421,16 +419,16 @@ function useShareButton(props) {
|
|
|
421
419
|
var _a, _b;
|
|
422
420
|
const { sharetitle, sharetext, medium } = props;
|
|
423
421
|
const programId = props.programId ? props.programId : index_module.M();
|
|
424
|
-
const user = index_module.
|
|
422
|
+
const user = index_module.ne();
|
|
425
423
|
const variables = {
|
|
426
|
-
engagementMedium: index_module.
|
|
424
|
+
engagementMedium: index_module.x(),
|
|
427
425
|
programId: programId,
|
|
428
426
|
shareMedium: medium.toUpperCase(),
|
|
429
427
|
};
|
|
430
428
|
// only queries if a programId is available
|
|
431
|
-
const res = index_module.
|
|
429
|
+
const res = index_module.mn(MessageLinkQuery$1, variables, !(user === null || user === void 0 ? void 0 : user.jwt) || !programId);
|
|
432
430
|
const directLink = (_b = (_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.shareLink;
|
|
433
|
-
const environment = index_module.
|
|
431
|
+
const environment = index_module.D();
|
|
434
432
|
const hide = (medium.toLocaleUpperCase() === "SMS" &&
|
|
435
433
|
window.orientation === undefined) ||
|
|
436
434
|
(medium.toLocaleUpperCase() === "DIRECT" && !window.navigator.share);
|
|
@@ -1492,365 +1490,365 @@ function ProgressBar({ stageCount, currentStage, }) {
|
|
|
1492
1490
|
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 })))));
|
|
1493
1491
|
}
|
|
1494
1492
|
|
|
1495
|
-
const
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1493
|
+
const style$8 = {
|
|
1494
|
+
HostBlock: mixins.HostBlock,
|
|
1495
|
+
Container: {
|
|
1496
|
+
minWidth: "300px",
|
|
1497
|
+
position: "relative",
|
|
1498
|
+
},
|
|
1499
|
+
FullImage: {
|
|
1500
|
+
objectFit: "contain",
|
|
1501
|
+
maxWidth: "100%",
|
|
1502
|
+
height: "250px",
|
|
1503
|
+
display: "flex",
|
|
1504
|
+
margin: "0 auto",
|
|
1505
|
+
},
|
|
1506
|
+
Select: {
|
|
1507
|
+
"&::part(label)": {
|
|
1508
|
+
color: "var(--sl-color-primary-500)",
|
|
1509
1509
|
},
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
maxWidth: "100%",
|
|
1513
|
-
height: "250px",
|
|
1514
|
-
display: "flex",
|
|
1515
|
-
margin: "0 auto",
|
|
1510
|
+
"&::part(menu)": {
|
|
1511
|
+
maxHeight: "50vh",
|
|
1516
1512
|
},
|
|
1517
|
-
|
|
1518
|
-
"
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
"
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1513
|
+
"& sl-menu-item::part(checked-icon)": {
|
|
1514
|
+
top: "8px",
|
|
1515
|
+
},
|
|
1516
|
+
"& sl-menu-item::part(base)": {
|
|
1517
|
+
flexDirection: "column",
|
|
1518
|
+
},
|
|
1519
|
+
"& sl-menu-item::part(base):focus": {
|
|
1520
|
+
background: "transparent",
|
|
1521
|
+
color: "var(--sl-color-gray-700)",
|
|
1522
|
+
},
|
|
1523
|
+
},
|
|
1524
|
+
ProgressBar: {
|
|
1525
|
+
maxWidth: "350px",
|
|
1526
|
+
width: "100%",
|
|
1527
|
+
margin: "auto",
|
|
1528
|
+
marginBottom: "var(--sl-spacing-xxx-large)",
|
|
1529
|
+
"& .text-area": {
|
|
1530
|
+
marginTop: "5px",
|
|
1531
|
+
display: "flex",
|
|
1532
|
+
justifyContent: "center",
|
|
1533
|
+
textAlign: "center",
|
|
1534
|
+
whiteSpace: "nowrap",
|
|
1535
|
+
marginBottom: "6px",
|
|
1536
|
+
"& .text": {
|
|
1537
|
+
marginBottom: "var(--sl-spacing-x-small)",
|
|
1538
|
+
flex: "1 1 0",
|
|
1529
1539
|
},
|
|
1530
|
-
"&
|
|
1531
|
-
|
|
1532
|
-
color: "var(--sl-color-gray-700)",
|
|
1540
|
+
"& .text.subdued": {
|
|
1541
|
+
color: "var(--sl-color-neutral-200)",
|
|
1533
1542
|
},
|
|
1534
1543
|
},
|
|
1535
|
-
|
|
1536
|
-
|
|
1544
|
+
},
|
|
1545
|
+
CardLayout: {
|
|
1546
|
+
display: "flex",
|
|
1547
|
+
width: "100%",
|
|
1548
|
+
borderRadius: "3px",
|
|
1549
|
+
background: "rgba(0, 0, 0, 0)",
|
|
1550
|
+
},
|
|
1551
|
+
Card: {
|
|
1552
|
+
display: "flex",
|
|
1553
|
+
userSelect: "none",
|
|
1554
|
+
height: "120px",
|
|
1555
|
+
"&::part(base)": {
|
|
1556
|
+
boxShadow: "none",
|
|
1537
1557
|
width: "100%",
|
|
1538
|
-
margin: "auto",
|
|
1539
|
-
marginBottom: "var(--sl-spacing-xxx-large)",
|
|
1540
|
-
"& .text-area": {
|
|
1541
|
-
marginTop: "5px",
|
|
1542
|
-
display: "flex",
|
|
1543
|
-
justifyContent: "center",
|
|
1544
|
-
textAlign: "center",
|
|
1545
|
-
whiteSpace: "nowrap",
|
|
1546
|
-
marginBottom: "6px",
|
|
1547
|
-
"& .text": {
|
|
1548
|
-
marginBottom: "var(--sl-spacing-x-small)",
|
|
1549
|
-
flex: "1 1 0",
|
|
1550
|
-
},
|
|
1551
|
-
"& .text.subdued": {
|
|
1552
|
-
color: "var(--sl-color-neutral-200)",
|
|
1553
|
-
},
|
|
1554
|
-
},
|
|
1555
1558
|
},
|
|
1556
|
-
|
|
1559
|
+
"&::part(body)": {
|
|
1557
1560
|
display: "flex",
|
|
1561
|
+
padding: 0,
|
|
1562
|
+
},
|
|
1563
|
+
"& .selected": {
|
|
1564
|
+
position: "relative",
|
|
1565
|
+
top: "-2%",
|
|
1566
|
+
left: "100%",
|
|
1567
|
+
color: "var(--sl-color-primary-500)",
|
|
1568
|
+
margin: "-9px",
|
|
1569
|
+
},
|
|
1570
|
+
},
|
|
1571
|
+
Image: {
|
|
1572
|
+
padding: "var(--sl-spacing-small)",
|
|
1573
|
+
minWidth: "96px",
|
|
1574
|
+
maxWidth: "96px",
|
|
1575
|
+
"& .image": {
|
|
1558
1576
|
width: "100%",
|
|
1559
|
-
|
|
1560
|
-
|
|
1577
|
+
height: "100%",
|
|
1578
|
+
objectFit: "contain",
|
|
1579
|
+
borderRadius: "4px",
|
|
1561
1580
|
},
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
height: "120px",
|
|
1566
|
-
"&::part(base)": {
|
|
1567
|
-
boxShadow: "none",
|
|
1568
|
-
width: "100%",
|
|
1569
|
-
},
|
|
1570
|
-
"&::part(body)": {
|
|
1571
|
-
display: "flex",
|
|
1572
|
-
padding: 0,
|
|
1573
|
-
},
|
|
1574
|
-
"& .selected": {
|
|
1575
|
-
position: "relative",
|
|
1576
|
-
top: "-2%",
|
|
1577
|
-
left: "100%",
|
|
1578
|
-
color: "var(--sl-color-primary-500)",
|
|
1579
|
-
margin: "-9px",
|
|
1580
|
-
},
|
|
1581
|
+
"& .image.subdued": {
|
|
1582
|
+
filter: "brightness(0.95)",
|
|
1583
|
+
opacity: "0.5",
|
|
1581
1584
|
},
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
"& .image.subdued": {
|
|
1593
|
-
filter: "brightness(0.95)",
|
|
1594
|
-
opacity: "0.5",
|
|
1595
|
-
},
|
|
1585
|
+
},
|
|
1586
|
+
Square: {
|
|
1587
|
+
width: "120px",
|
|
1588
|
+
height: "118px",
|
|
1589
|
+
borderRadius: "3px 0 0 3px",
|
|
1590
|
+
"& .image": {
|
|
1591
|
+
width: "100%",
|
|
1592
|
+
height: "100%",
|
|
1593
|
+
objectFit: "contain",
|
|
1594
|
+
borderRadius: "inherit",
|
|
1596
1595
|
},
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1596
|
+
},
|
|
1597
|
+
TextArea: {
|
|
1598
|
+
textAlign: "left",
|
|
1599
|
+
padding: "var(--sl-spacing-small)",
|
|
1600
|
+
paddingLeft: "0",
|
|
1601
|
+
"& .title": {
|
|
1602
|
+
fontSize: "var(--sl-font-size-medium)",
|
|
1603
|
+
lineHeight: "var(--sl-line-height-dense)",
|
|
1604
|
+
fontWeight: "600",
|
|
1605
|
+
color: "var(--sl-color-neutral-1000)",
|
|
1606
|
+
display: "-webkit-box",
|
|
1607
|
+
"-webkit-line-clamp": "1",
|
|
1608
|
+
"-webkit-box-orient": "vertical",
|
|
1609
|
+
overflow: "hidden",
|
|
1607
1610
|
},
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
"& .error": {
|
|
1633
|
-
fontSize: "var(--sl-font-size-small)",
|
|
1634
|
-
lineHeight: "var(--sl-line-height-dense)",
|
|
1635
|
-
marginTop: "var(--sl-spacing-x-small)",
|
|
1636
|
-
fontWeight: "600",
|
|
1637
|
-
color: "var(--sl-color-warning-600)",
|
|
1638
|
-
display: "-webkit-box",
|
|
1639
|
-
"-webkit-line-clamp": "1",
|
|
1640
|
-
"-webkit-box-orient": "vertical",
|
|
1641
|
-
overflow: "hidden",
|
|
1642
|
-
"& .icon": {
|
|
1643
|
-
position: "relative",
|
|
1644
|
-
top: "0.1em",
|
|
1645
|
-
marginRight: "var(--sl-spacing-xx-small)",
|
|
1646
|
-
},
|
|
1611
|
+
"& .amount": {
|
|
1612
|
+
fontSize: "var(--sl-font-size-small)",
|
|
1613
|
+
lineHeight: "var(--sl-line-height-dense)",
|
|
1614
|
+
marginTop: "var(--sl-spacing-x-small)",
|
|
1615
|
+
color: "var(--sl-color-neutral-500)",
|
|
1616
|
+
display: "-webkit-box",
|
|
1617
|
+
"-webkit-line-clamp": "1",
|
|
1618
|
+
"-webkit-box-orient": "vertical",
|
|
1619
|
+
overflow: "hidden",
|
|
1620
|
+
},
|
|
1621
|
+
"& .error": {
|
|
1622
|
+
fontSize: "var(--sl-font-size-small)",
|
|
1623
|
+
lineHeight: "var(--sl-line-height-dense)",
|
|
1624
|
+
marginTop: "var(--sl-spacing-x-small)",
|
|
1625
|
+
fontWeight: "600",
|
|
1626
|
+
color: "var(--sl-color-warning-600)",
|
|
1627
|
+
display: "-webkit-box",
|
|
1628
|
+
"-webkit-line-clamp": "1",
|
|
1629
|
+
"-webkit-box-orient": "vertical",
|
|
1630
|
+
overflow: "hidden",
|
|
1631
|
+
"& .icon": {
|
|
1632
|
+
position: "relative",
|
|
1633
|
+
top: "0.1em",
|
|
1634
|
+
marginRight: "var(--sl-spacing-xx-small)",
|
|
1647
1635
|
},
|
|
1648
1636
|
},
|
|
1649
|
-
|
|
1637
|
+
},
|
|
1638
|
+
ChooseAmount: {
|
|
1639
|
+
display: "flex",
|
|
1640
|
+
alignItems: "center",
|
|
1641
|
+
justifyContent: "center",
|
|
1642
|
+
margin: "var(--sl-spacing-medium) 0",
|
|
1643
|
+
"& .wrapper": {
|
|
1650
1644
|
display: "flex",
|
|
1651
|
-
alignItems: "center",
|
|
1652
1645
|
justifyContent: "center",
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
alignItems: "center",
|
|
1658
|
-
gap: "var(--sl-spacing-xx-large)",
|
|
1659
|
-
"@media (max-width: 799px)": {
|
|
1660
|
-
flexDirection: "column",
|
|
1661
|
-
},
|
|
1662
|
-
},
|
|
1663
|
-
"& .image": {
|
|
1664
|
-
width: "50%",
|
|
1665
|
-
objectFit: "contain",
|
|
1666
|
-
maxWidth: "100%",
|
|
1667
|
-
height: "250px",
|
|
1668
|
-
display: "flex",
|
|
1669
|
-
"@media (max-width: 799px)": {
|
|
1670
|
-
width: "auto",
|
|
1671
|
-
},
|
|
1672
|
-
},
|
|
1673
|
-
"& .text": {
|
|
1674
|
-
width: "50%",
|
|
1675
|
-
maxWidth: "400px",
|
|
1676
|
-
minWidth: "330px",
|
|
1677
|
-
"@media (max-width: 799px)": {
|
|
1678
|
-
width: "auto",
|
|
1679
|
-
margin: "auto",
|
|
1680
|
-
},
|
|
1681
|
-
},
|
|
1682
|
-
"& .title": {
|
|
1683
|
-
fontSize: "var(--sl-font-size-large)",
|
|
1684
|
-
fontWeight: "var(--sl-font-weight-semibold)",
|
|
1685
|
-
color: "var(--sl-color-neutral-1000)",
|
|
1686
|
-
},
|
|
1687
|
-
"& .points": {
|
|
1688
|
-
fontSize: "var(--sl-font-size-large)",
|
|
1689
|
-
fontWeight: "var(--sl-font-weight-semibold)",
|
|
1690
|
-
color: "var(--sl-color-primary-500)",
|
|
1646
|
+
alignItems: "center",
|
|
1647
|
+
gap: "var(--sl-spacing-xx-large)",
|
|
1648
|
+
"@media (max-width: 799px)": {
|
|
1649
|
+
flexDirection: "column",
|
|
1691
1650
|
},
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1651
|
+
},
|
|
1652
|
+
"& .image": {
|
|
1653
|
+
width: "50%",
|
|
1654
|
+
objectFit: "contain",
|
|
1655
|
+
maxWidth: "100%",
|
|
1656
|
+
height: "250px",
|
|
1657
|
+
display: "flex",
|
|
1658
|
+
"@media (max-width: 799px)": {
|
|
1659
|
+
width: "auto",
|
|
1699
1660
|
},
|
|
1700
|
-
|
|
1701
|
-
|
|
1661
|
+
},
|
|
1662
|
+
"& .text": {
|
|
1663
|
+
width: "50%",
|
|
1664
|
+
maxWidth: "400px",
|
|
1665
|
+
minWidth: "330px",
|
|
1666
|
+
"@media (max-width: 799px)": {
|
|
1667
|
+
width: "auto",
|
|
1668
|
+
margin: "auto",
|
|
1702
1669
|
},
|
|
1703
|
-
|
|
1670
|
+
},
|
|
1671
|
+
"& .title": {
|
|
1672
|
+
fontSize: "var(--sl-font-size-large)",
|
|
1673
|
+
fontWeight: "var(--sl-font-weight-semibold)",
|
|
1674
|
+
color: "var(--sl-color-neutral-1000)",
|
|
1675
|
+
},
|
|
1676
|
+
"& .points": {
|
|
1677
|
+
fontSize: "var(--sl-font-size-large)",
|
|
1678
|
+
fontWeight: "var(--sl-font-weight-semibold)",
|
|
1679
|
+
color: "var(--sl-color-primary-500)",
|
|
1680
|
+
},
|
|
1681
|
+
"& .description": {
|
|
1682
|
+
fontSize: "var(--sl-font-size-medium)",
|
|
1683
|
+
fontWeight: "var(--sl-font-weight-normal)",
|
|
1684
|
+
color: "var(--sl-color-neutral-500)",
|
|
1685
|
+
margin: "var(--sl-spacing-medium) 0",
|
|
1686
|
+
lineHeight: "var(--sl-line-height-dense)",
|
|
1687
|
+
marginTop: "var(--sl-spacing-xx-small)",
|
|
1688
|
+
},
|
|
1689
|
+
"& .space": {
|
|
1690
|
+
marginBottom: "var(--sl-spacing-xxx-large)",
|
|
1691
|
+
},
|
|
1692
|
+
"& sl-menu-item[disabled]::part(label)": {
|
|
1693
|
+
color: "var(--sl-color-neutral-200)",
|
|
1694
|
+
},
|
|
1695
|
+
"& sl-menu-item[disabled]": {
|
|
1696
|
+
"& .step-cost": {
|
|
1704
1697
|
color: "var(--sl-color-neutral-200)",
|
|
1705
1698
|
},
|
|
1706
|
-
"& sl-menu-item[disabled]": {
|
|
1707
|
-
"& .step-cost": {
|
|
1708
|
-
color: "var(--sl-color-neutral-200)",
|
|
1709
|
-
},
|
|
1710
|
-
},
|
|
1711
1699
|
},
|
|
1712
|
-
|
|
1700
|
+
},
|
|
1701
|
+
SelectItem: {
|
|
1702
|
+
display: "flex",
|
|
1703
|
+
flexDirection: "column",
|
|
1704
|
+
"& > .step-cost": {
|
|
1705
|
+
color: "var(--sl-color-neutral-400)",
|
|
1706
|
+
height: "0",
|
|
1707
|
+
marginBottom: "5px",
|
|
1708
|
+
},
|
|
1709
|
+
"& > .step-value": {
|
|
1710
|
+
margin: "0",
|
|
1711
|
+
},
|
|
1712
|
+
},
|
|
1713
|
+
Success: {
|
|
1714
|
+
textAlign: "center",
|
|
1715
|
+
"& .title": {
|
|
1716
|
+
fontSize: "var(--sl-font-size-large)",
|
|
1717
|
+
fontWeight: "var(--sl-font-weight-semibold)",
|
|
1718
|
+
color: "var(--sl-color-neutral-1000)",
|
|
1719
|
+
},
|
|
1720
|
+
"& .description": {
|
|
1721
|
+
color: "var(--sl-color-neutral-400)",
|
|
1722
|
+
width: "100%",
|
|
1723
|
+
maxWidth: "350px",
|
|
1724
|
+
margin: "0 auto",
|
|
1725
|
+
lineHeight: "var(--sl-line-height-dense)",
|
|
1726
|
+
marginBottom: "var(--sl-spacing-xx-large)",
|
|
1727
|
+
marginTop: "var(--sl-spacing-xx-small)",
|
|
1728
|
+
},
|
|
1729
|
+
},
|
|
1730
|
+
Grid: {
|
|
1731
|
+
display: "grid",
|
|
1732
|
+
justifyContent: "center",
|
|
1733
|
+
gap: "20px",
|
|
1734
|
+
gridTemplateColumns: "repeat(auto-fill, minmax(300px, 1fr))",
|
|
1735
|
+
},
|
|
1736
|
+
Confirmation: {
|
|
1737
|
+
maxWidth: "800px",
|
|
1738
|
+
margin: "auto",
|
|
1739
|
+
"& .wrapper": {
|
|
1713
1740
|
display: "flex",
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
color: "var(--sl-color-neutral-400)",
|
|
1717
|
-
height: "0",
|
|
1718
|
-
marginBottom: "5px",
|
|
1741
|
+
"@media (max-width: 499px)": {
|
|
1742
|
+
flexDirection: "column",
|
|
1719
1743
|
},
|
|
1720
|
-
|
|
1721
|
-
|
|
1744
|
+
},
|
|
1745
|
+
"& .reward-item-container": {
|
|
1746
|
+
"@media (max-width: 499px)": {
|
|
1747
|
+
display: "flex",
|
|
1748
|
+
flexDirection: "row-reverse",
|
|
1749
|
+
justifyContent: "flex-end",
|
|
1750
|
+
alignItems: "center",
|
|
1722
1751
|
},
|
|
1723
1752
|
},
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1753
|
+
"& .reward-item-container .reward-title": {
|
|
1754
|
+
paddingBottom: "var(--sl-spacing-medium)",
|
|
1755
|
+
lineHeight: "20px",
|
|
1756
|
+
"@media (max-width: 499px)": {
|
|
1757
|
+
paddingBottom: "none",
|
|
1758
|
+
paddingLeft: "var(--sl-spacing-small)",
|
|
1730
1759
|
},
|
|
1731
|
-
|
|
1732
|
-
|
|
1760
|
+
},
|
|
1761
|
+
"& .padding": {
|
|
1762
|
+
padding: "var(--sl-spacing-medium) 0",
|
|
1763
|
+
"@media (max-width: 499px)": {
|
|
1764
|
+
padding: "var(--sl-spacing-small) 0",
|
|
1765
|
+
},
|
|
1766
|
+
},
|
|
1767
|
+
"& .field": {
|
|
1768
|
+
width: "30%",
|
|
1769
|
+
textTransform: "uppercase",
|
|
1770
|
+
fontSize: "var(--sl-font-size-medium)",
|
|
1771
|
+
fontWeight: "var(--sl-font-weight-normal)",
|
|
1772
|
+
color: "var(--sl-color-neutral-400)",
|
|
1773
|
+
textAlign: "left",
|
|
1774
|
+
paddingRight: "var(--sl-spacing-xxx-large)",
|
|
1775
|
+
"@media (max-width: 499px)": {
|
|
1733
1776
|
width: "100%",
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
lineHeight: "var(--sl-line-height-dense)",
|
|
1737
|
-
marginBottom: "var(--sl-spacing-xx-large)",
|
|
1738
|
-
marginTop: "var(--sl-spacing-xx-small)",
|
|
1777
|
+
paddingRight: "0",
|
|
1778
|
+
paddingBottom: "0",
|
|
1739
1779
|
},
|
|
1740
1780
|
},
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
gap: "20px",
|
|
1745
|
-
gridTemplateColumns: "repeat(auto-fill, minmax(300px, 1fr))",
|
|
1781
|
+
"& .value": {
|
|
1782
|
+
fontSize: "var(--sl-font-size-large)",
|
|
1783
|
+
fontWeight: "var(--sl-font-weight-semibold)",
|
|
1746
1784
|
},
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
},
|
|
1755
|
-
},
|
|
1756
|
-
"& .reward-item-container": {
|
|
1757
|
-
"@media (max-width: 499px)": {
|
|
1758
|
-
display: "flex",
|
|
1759
|
-
flexDirection: "row-reverse",
|
|
1760
|
-
justifyContent: "flex-end",
|
|
1761
|
-
alignItems: "center",
|
|
1762
|
-
},
|
|
1763
|
-
},
|
|
1764
|
-
"& .reward-item-container .reward-title": {
|
|
1765
|
-
paddingBottom: "var(--sl-spacing-medium)",
|
|
1766
|
-
lineHeight: "20px",
|
|
1767
|
-
"@media (max-width: 499px)": {
|
|
1768
|
-
paddingBottom: "none",
|
|
1769
|
-
paddingLeft: "var(--sl-spacing-small)",
|
|
1770
|
-
},
|
|
1771
|
-
},
|
|
1772
|
-
"& .padding": {
|
|
1773
|
-
padding: "var(--sl-spacing-medium) 0",
|
|
1774
|
-
"@media (max-width: 499px)": {
|
|
1775
|
-
padding: "var(--sl-spacing-small) 0",
|
|
1776
|
-
},
|
|
1785
|
+
"& .top-border": {
|
|
1786
|
+
borderTop: "1px solid var(--sl-color-neutral-200)",
|
|
1787
|
+
},
|
|
1788
|
+
"& .image": {
|
|
1789
|
+
width: "200px",
|
|
1790
|
+
"@media (max-width: 499px)": {
|
|
1791
|
+
width: "100px",
|
|
1777
1792
|
},
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1793
|
+
},
|
|
1794
|
+
},
|
|
1795
|
+
Button: {
|
|
1796
|
+
display: "flex",
|
|
1797
|
+
flexWrap: "wrap-reverse",
|
|
1798
|
+
margin: "var(--sl-spacing-medium) 0",
|
|
1799
|
+
"& .cancel": {
|
|
1800
|
+
marginLeft: "auto",
|
|
1801
|
+
marginRight: "var(--sl-spacing-medium)",
|
|
1802
|
+
"&::part(base)": {
|
|
1782
1803
|
fontWeight: "var(--sl-font-weight-normal)",
|
|
1783
|
-
color: "var(--sl-color-neutral-
|
|
1784
|
-
textAlign: "left",
|
|
1785
|
-
paddingRight: "var(--sl-spacing-xxx-large)",
|
|
1786
|
-
"@media (max-width: 499px)": {
|
|
1787
|
-
width: "100%",
|
|
1788
|
-
paddingRight: "0",
|
|
1789
|
-
paddingBottom: "0",
|
|
1790
|
-
},
|
|
1791
|
-
},
|
|
1792
|
-
"& .value": {
|
|
1793
|
-
fontSize: "var(--sl-font-size-large)",
|
|
1794
|
-
fontWeight: "var(--sl-font-weight-semibold)",
|
|
1795
|
-
},
|
|
1796
|
-
"& .top-border": {
|
|
1797
|
-
borderTop: "1px solid var(--sl-color-neutral-200)",
|
|
1804
|
+
color: "var(--sl-color-neutral-1000)",
|
|
1798
1805
|
},
|
|
1799
|
-
"
|
|
1800
|
-
width: "
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
},
|
|
1806
|
+
"@media (max-width: 499px)": {
|
|
1807
|
+
width: "100%",
|
|
1808
|
+
marginRight: "0",
|
|
1809
|
+
marginTop: "var(--sl-spacing-small)",
|
|
1804
1810
|
},
|
|
1805
1811
|
},
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
marginRight: "var(--sl-spacing-medium)",
|
|
1813
|
-
"&::part(base)": {
|
|
1814
|
-
fontWeight: "var(--sl-font-weight-normal)",
|
|
1815
|
-
color: "var(--sl-color-neutral-1000)",
|
|
1816
|
-
},
|
|
1817
|
-
"@media (max-width: 499px)": {
|
|
1818
|
-
width: "100%",
|
|
1819
|
-
marginRight: "0",
|
|
1820
|
-
marginTop: "var(--sl-spacing-small)",
|
|
1821
|
-
},
|
|
1822
|
-
},
|
|
1823
|
-
"& .continue": {
|
|
1824
|
-
"&::part(base)": {
|
|
1825
|
-
background: "var(--sl-color-primary-500)",
|
|
1826
|
-
borderColor: "var(--sl-color-primary-500)",
|
|
1827
|
-
fontWeight: "var(--sl-font-weight-normal)",
|
|
1828
|
-
color: "var(--sl-color-neutral-0)",
|
|
1829
|
-
},
|
|
1830
|
-
"@media (max-width: 499px)": {
|
|
1831
|
-
width: "100%",
|
|
1832
|
-
},
|
|
1833
|
-
},
|
|
1834
|
-
"& .continue.right": {
|
|
1835
|
-
marginLeft: "auto",
|
|
1812
|
+
"& .continue": {
|
|
1813
|
+
"&::part(base)": {
|
|
1814
|
+
background: "var(--sl-color-primary-500)",
|
|
1815
|
+
borderColor: "var(--sl-color-primary-500)",
|
|
1816
|
+
fontWeight: "var(--sl-font-weight-normal)",
|
|
1817
|
+
color: "var(--sl-color-neutral-0)",
|
|
1836
1818
|
},
|
|
1837
|
-
"
|
|
1838
|
-
|
|
1819
|
+
"@media (max-width: 499px)": {
|
|
1820
|
+
width: "100%",
|
|
1839
1821
|
},
|
|
1840
1822
|
},
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
position: "absolute",
|
|
1844
|
-
width: "100%",
|
|
1845
|
-
height: "100%",
|
|
1846
|
-
top: "0%",
|
|
1847
|
-
left: "0%",
|
|
1848
|
-
zIndex: "1",
|
|
1823
|
+
"& .continue.right": {
|
|
1824
|
+
marginLeft: "auto",
|
|
1849
1825
|
},
|
|
1826
|
+
"& .continue.center": {
|
|
1827
|
+
margin: "0 auto",
|
|
1828
|
+
},
|
|
1829
|
+
},
|
|
1830
|
+
Confetti: {
|
|
1831
|
+
pointerEvents: "none",
|
|
1832
|
+
position: "absolute",
|
|
1833
|
+
width: "100%",
|
|
1834
|
+
height: "100%",
|
|
1835
|
+
top: "0%",
|
|
1836
|
+
left: "0%",
|
|
1837
|
+
zIndex: "1",
|
|
1838
|
+
},
|
|
1839
|
+
};
|
|
1840
|
+
// JSS config
|
|
1841
|
+
const sheet$8 = JSS.createStyleSheet(style$8);
|
|
1842
|
+
const styleString$8 = sheet$8.toString();
|
|
1843
|
+
const stageList = ["chooseReward", "chooseAmount", "confirmation", "success"];
|
|
1844
|
+
function RewardExchangeView(props) {
|
|
1845
|
+
const { states, data, callbacks, refs } = props;
|
|
1846
|
+
const { selectedItem, selectedStep } = states;
|
|
1847
|
+
const stageProgressList = {
|
|
1848
|
+
chooseReward: states.content.text.chooseRewardTitle,
|
|
1849
|
+
chooseAmount: states.content.text.chooseAmountTitle,
|
|
1850
|
+
confirmation: states.content.text.confirmationTitle,
|
|
1850
1851
|
};
|
|
1851
|
-
// JSS config
|
|
1852
|
-
const sheet = JSS.createStyleSheet(style);
|
|
1853
|
-
const styleString = sheet.toString();
|
|
1854
1852
|
function getInput() {
|
|
1855
1853
|
var _a, _b, _c;
|
|
1856
1854
|
const item = states.selectedItem;
|
|
@@ -1866,7 +1864,7 @@ function RewardExchangeView(props) {
|
|
|
1866
1864
|
}
|
|
1867
1865
|
// console.log("SELECTED ITEM ", states.selectedStep);
|
|
1868
1866
|
// console.log("CALLBACKS ", callbacks);
|
|
1869
|
-
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.classes.Select, value: states.selectedStep, "onSl-select": (e) => {
|
|
1867
|
+
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$8.classes.Select, value: states.selectedStep, "onSl-select": (e) => {
|
|
1870
1868
|
var _a, _b, _c, _d, _e;
|
|
1871
1869
|
return callbacks.setExchangeState({
|
|
1872
1870
|
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,
|
|
@@ -1899,7 +1897,7 @@ function RewardExchangeView(props) {
|
|
|
1899
1897
|
return [
|
|
1900
1898
|
index.h("div", null,
|
|
1901
1899
|
index.h("h2", { style: { margin: "var(--sl-spacing-large) 0" } }, states.content.text.rewardTitle),
|
|
1902
|
-
states.loading ? (loading()) : (index.h("div", { class: sheet.classes.Grid }, (_a = data.exchangeList) === null || _a === void 0 ? void 0 : _a.map((item) => {
|
|
1900
|
+
states.loading ? (loading()) : (index.h("div", { class: sheet$8.classes.Grid }, (_a = data.exchangeList) === null || _a === void 0 ? void 0 : _a.map((item) => {
|
|
1903
1901
|
var _a, _b, _c, _d, _e;
|
|
1904
1902
|
const style = {
|
|
1905
1903
|
boxShadow: item.key === (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.key)
|
|
@@ -1908,7 +1906,7 @@ function RewardExchangeView(props) {
|
|
|
1908
1906
|
borderRadius: "4px",
|
|
1909
1907
|
};
|
|
1910
1908
|
return (index.h("div", { key: item.key, style: style },
|
|
1911
|
-
index.h("sl-card", { class: sheet.classes.Card, style: {
|
|
1909
|
+
index.h("sl-card", { class: sheet$8.classes.Card, style: {
|
|
1912
1910
|
cursor: item.unavailableReasonCode
|
|
1913
1911
|
? "not-allowed"
|
|
1914
1912
|
: "pointer",
|
|
@@ -1925,14 +1923,14 @@ function RewardExchangeView(props) {
|
|
|
1925
1923
|
? "rgba(0, 0, 0, 0.05)"
|
|
1926
1924
|
: "rgba(0, 0, 0, 0)",
|
|
1927
1925
|
} },
|
|
1928
|
-
index.h("div", { class: sheet.classes.Image, style: {
|
|
1926
|
+
index.h("div", { class: sheet$8.classes.Image, style: {
|
|
1929
1927
|
opacity: item.unavailableReasonCode ? "0.5" : "1",
|
|
1930
1928
|
} },
|
|
1931
1929
|
index.h("img", { class: item.unavailableReasonCode
|
|
1932
1930
|
? "image subdued"
|
|
1933
1931
|
: "image", src: (item === null || item === void 0 ? void 0 : item.imageUrl) ||
|
|
1934
1932
|
index.getAssetPath("./assets/Reward-image.png") })),
|
|
1935
|
-
index.h("div", { class: sheet.classes.TextArea, style: {
|
|
1933
|
+
index.h("div", { class: sheet$8.classes.TextArea, style: {
|
|
1936
1934
|
opacity: item.unavailableReasonCode ? "0.5" : "1",
|
|
1937
1935
|
} },
|
|
1938
1936
|
index.h("div", { class: "title", style: {
|
|
@@ -1965,7 +1963,7 @@ function RewardExchangeView(props) {
|
|
|
1965
1963
|
item.prettySourceMinValue,
|
|
1966
1964
|
}))))))));
|
|
1967
1965
|
}))),
|
|
1968
|
-
index.h("div", { class: sheet.classes.Button },
|
|
1966
|
+
index.h("div", { class: sheet$8.classes.Button },
|
|
1969
1967
|
index.h("sl-button", { class: "continue right", size: "large", onClick: () => callbacks.setStage("chooseAmount"), loading: states.loading, disabled: !states.selectedItem }, states.content.text.continueText))),
|
|
1970
1968
|
];
|
|
1971
1969
|
}
|
|
@@ -1978,7 +1976,7 @@ function RewardExchangeView(props) {
|
|
|
1978
1976
|
console.log("input", input);
|
|
1979
1977
|
console.log(states.amount);
|
|
1980
1978
|
return (index.h("div", null,
|
|
1981
|
-
index.h("div", { class: sheet.classes.ChooseAmount },
|
|
1979
|
+
index.h("div", { class: sheet$8.classes.ChooseAmount },
|
|
1982
1980
|
index.h("div", { class: "wrapper" },
|
|
1983
1981
|
index.h("img", { class: "image", src: (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.imageUrl) ||
|
|
1984
1982
|
index.getAssetPath("./assets/Reward-image.png") }),
|
|
@@ -1987,7 +1985,7 @@ function RewardExchangeView(props) {
|
|
|
1987
1985
|
((_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)),
|
|
1988
1986
|
((_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", { class: "points" }, input)),
|
|
1989
1987
|
index.h("div", { class: "space" }),
|
|
1990
|
-
index.h("div", { class: sheet.classes.Button },
|
|
1988
|
+
index.h("div", { class: sheet$8.classes.Button },
|
|
1991
1989
|
index.h("sl-button", { class: "cancel", size: "large", type: "text", onClick: () => callbacks.resetState() }, states.content.text.cancelText),
|
|
1992
1990
|
index.h("sl-button", { class: "continue", size: "large", onClick: () => callbacks.setStage("confirmation"), disabled: isDisabled }, states.content.text.continueToConfirmationText)))))));
|
|
1993
1991
|
}
|
|
@@ -1998,7 +1996,7 @@ function RewardExchangeView(props) {
|
|
|
1998
1996
|
const amount = selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettyDestinationValue;
|
|
1999
1997
|
return (index.h("div", null,
|
|
2000
1998
|
index.h("h2", { style: { margin: "var(--sl-spacing-large) 0", textAlign: "center" } }, states.content.text.redeemTitle),
|
|
2001
|
-
index.h("div", { class: sheet.classes.Confirmation },
|
|
1999
|
+
index.h("div", { class: sheet$8.classes.Confirmation },
|
|
2002
2000
|
index.h("div", { class: "wrapper" },
|
|
2003
2001
|
index.h("div", { class: "field" }, states.content.text.rewardNameTitle),
|
|
2004
2002
|
index.h("div", { class: "reward-item-container" },
|
|
@@ -2013,23 +2011,23 @@ function RewardExchangeView(props) {
|
|
|
2013
2011
|
index.h("div", { class: "wrapper top-border padding" },
|
|
2014
2012
|
index.h("div", { class: "field" }, states.content.text.costTitle),
|
|
2015
2013
|
index.h("div", { class: "value" }, cost)),
|
|
2016
|
-
index.h("div", { class: sheet.classes.Button },
|
|
2014
|
+
index.h("div", { class: sheet$8.classes.Button },
|
|
2017
2015
|
index.h("sl-button", { class: "cancel", type: "text", size: "large", onClick: () => callbacks.setStage("chooseAmount") }, states.content.text.backText),
|
|
2018
2016
|
index.h("sl-button", { class: "continue", size: "large", loading: states.loading, onClick: callbacks.exchangeReward }, states.content.text.redeemText)))));
|
|
2019
2017
|
}
|
|
2020
2018
|
function success() {
|
|
2021
|
-
var _a, _b, _c, _d, _e;
|
|
2019
|
+
var _a, _b, _c, _d, _e, _f;
|
|
2022
2020
|
// console.log("success");
|
|
2023
|
-
return (index.h("div", { class: sheet.classes.Success },
|
|
2021
|
+
return (index.h("div", { class: sheet$8.classes.Success },
|
|
2024
2022
|
index.h(Gift$1, null),
|
|
2025
2023
|
index.h(Confetti, null),
|
|
2026
|
-
index.h("div", { class: "title" }, states.content.text.rewardRedeemedText),
|
|
2024
|
+
index.h("div", { class: "title" }, (_a = states.content.text) === null || _a === void 0 ? void 0 : _a.rewardRedeemedText),
|
|
2027
2025
|
index.h("div", { class: "description" }, global.intl.formatMessage({
|
|
2028
2026
|
id: "successMessage",
|
|
2029
2027
|
defaultMessage: states.content.text.redemptionSuccessText,
|
|
2030
2028
|
}, {
|
|
2031
|
-
sourceValue: (
|
|
2032
|
-
destinationValue: ((
|
|
2029
|
+
sourceValue: (_b = states.selectedItem.prettySourceValue) !== null && _b !== void 0 ? _b : (_c = states.selectedStep) === null || _c === void 0 ? void 0 : _c.prettySourceValue,
|
|
2030
|
+
destinationValue: ((_d = states.selectedStep) === null || _d === void 0 ? void 0 : _d.prettyDestinationValue) || ((_e = states.selectedItem) === null || _e === void 0 ? void 0 : _e.name) ||
|
|
2033
2031
|
states.selectedItem.globalRewardKey,
|
|
2034
2032
|
})),
|
|
2035
2033
|
(data === null || data === void 0 ? void 0 : data.fuelTankCode) && (index.h("div", { style: {
|
|
@@ -2039,8 +2037,8 @@ function RewardExchangeView(props) {
|
|
|
2039
2037
|
color: "var(--sl-color-neutral-700)",
|
|
2040
2038
|
} },
|
|
2041
2039
|
states.content.text.promoCode,
|
|
2042
|
-
index.h(ShareLinkView, { shareString: data.fuelTankCode, tooltiptext: (
|
|
2043
|
-
index.h("div", { class: sheet.classes.Button },
|
|
2040
|
+
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 }))),
|
|
2041
|
+
index.h("div", { class: sheet$8.classes.Button },
|
|
2044
2042
|
index.h("sl-button", { class: "continue center", type: "primary", size: "large", onClick: () => callbacks.resetState(true) }, states.content.text.doneText))));
|
|
2045
2043
|
}
|
|
2046
2044
|
const stages = {
|
|
@@ -2052,7 +2050,7 @@ function RewardExchangeView(props) {
|
|
|
2052
2050
|
const currentStage = stages[states.redeemStage];
|
|
2053
2051
|
function stageMap() {
|
|
2054
2052
|
const stageNumber = stageList.indexOf(states.redeemStage);
|
|
2055
|
-
return (index.h("div", { class: sheet.classes.ProgressBar },
|
|
2053
|
+
return (index.h("div", { class: sheet$8.classes.ProgressBar },
|
|
2056
2054
|
index.h("div", { class: "text-area" }, Object.keys(stageProgressList).map((stage) => {
|
|
2057
2055
|
if (stageList.indexOf(stage) <= stageNumber) {
|
|
2058
2056
|
return index.h("span", { class: "text" }, stageProgressList[stage]);
|
|
@@ -2064,10 +2062,10 @@ function RewardExchangeView(props) {
|
|
|
2064
2062
|
index.h(ProgressBar, { stageCount: 3, currentStage: stageNumber })));
|
|
2065
2063
|
}
|
|
2066
2064
|
function loading() {
|
|
2067
|
-
return (index.h("div", { class: sheet.classes.Grid }, [...Array(states.content.text.skeletonCardNum)].map(() => {
|
|
2065
|
+
return (index.h("div", { class: sheet$8.classes.Grid }, [...Array(states.content.text.skeletonCardNum)].map(() => {
|
|
2068
2066
|
return (index.h("div", null,
|
|
2069
|
-
index.h("sl-card", { class: sheet.classes.Card },
|
|
2070
|
-
index.h("div", { class: sheet.classes.CardLayout },
|
|
2067
|
+
index.h("sl-card", { class: sheet$8.classes.Card },
|
|
2068
|
+
index.h("div", { class: sheet$8.classes.CardLayout },
|
|
2071
2069
|
index.h("div", null,
|
|
2072
2070
|
index.h("sl-skeleton", { style: {
|
|
2073
2071
|
width: "100px",
|
|
@@ -2092,17 +2090,17 @@ function RewardExchangeView(props) {
|
|
|
2092
2090
|
function queryErrorMessage() {
|
|
2093
2091
|
return (index.h("sl-alert", { type: "danger", open: true },
|
|
2094
2092
|
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2095
|
-
states.
|
|
2093
|
+
states.queryError));
|
|
2096
2094
|
}
|
|
2097
2095
|
function Confetti() {
|
|
2098
2096
|
return (index.h("canvas", { ref: (canvas) => {
|
|
2099
2097
|
if (!(refs === null || refs === void 0 ? void 0 : refs.canvasRef))
|
|
2100
2098
|
return;
|
|
2101
2099
|
refs.canvasRef.current = canvas;
|
|
2102
|
-
}, id: "my-canvas", class: sheet.classes.Confetti }));
|
|
2100
|
+
}, id: "my-canvas", class: sheet$8.classes.Confetti }));
|
|
2103
2101
|
}
|
|
2104
|
-
return (index.h("div", { class: sheet.classes.Container },
|
|
2105
|
-
index.h("style", { type: "text/css" }, styleString),
|
|
2102
|
+
return (index.h("div", { class: sheet$8.classes.Container },
|
|
2103
|
+
index.h("style", { type: "text/css" }, styleString$8),
|
|
2106
2104
|
index.h("div", null,
|
|
2107
2105
|
stageMap(),
|
|
2108
2106
|
states.exchangeError && errorMessage(),
|
|
@@ -2129,7 +2127,7 @@ const baseResponse = (data, stage = "chooseReward", selectedItem = null, selecte
|
|
|
2129
2127
|
redeemTitle: "Confirm and redeem",
|
|
2130
2128
|
redemptionSuccessText: "Redeemed {sourceValue} for {destinationValue}",
|
|
2131
2129
|
doneText: "Done",
|
|
2132
|
-
|
|
2130
|
+
tooltiptext: "Copied!",
|
|
2133
2131
|
selectText: "Select amount to receive",
|
|
2134
2132
|
sourceAmountMessage: "{ruleType, select, FIXED_GLOBAL_REWARD {{sourceValue}} other {{sourceMinValue} to {sourceMaxValue}}}",
|
|
2135
2133
|
rewardRedeemedText: "Reward redeemed",
|
|
@@ -2139,8 +2137,10 @@ const baseResponse = (data, stage = "chooseReward", selectedItem = null, selecte
|
|
|
2139
2137
|
rewardNameTitle: "Reward Name",
|
|
2140
2138
|
rewardAmountTitle: "Reward Amount",
|
|
2141
2139
|
costTitle: "Cost",
|
|
2140
|
+
notEnoughError: "Sorry not enough!",
|
|
2142
2141
|
},
|
|
2143
2142
|
},
|
|
2143
|
+
queryError: false,
|
|
2144
2144
|
redeemStage: stage,
|
|
2145
2145
|
amount: 0,
|
|
2146
2146
|
exchangeError: error,
|
|
@@ -2148,6 +2148,7 @@ const baseResponse = (data, stage = "chooseReward", selectedItem = null, selecte
|
|
|
2148
2148
|
selectedItem: selectedItem,
|
|
2149
2149
|
selectedStep: selectedStep,
|
|
2150
2150
|
open: false,
|
|
2151
|
+
empty: (index.h("sqm-empty", { emptyStateImage: "https://res.cloudinary.com/saasquatch/image/upload/v1643998821/squatch-assets/Group_29.png", emptyStateHeader: "Redeem rewards", emptyStateText: "Use your points to redeem rewards once they become available" })),
|
|
2151
2152
|
},
|
|
2152
2153
|
data: {
|
|
2153
2154
|
exchangeList: data,
|