@saasquatch/mint-components 1.5.0-49 → 1.5.0-52
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/{AutoColor-a489ed67.js → AutoColor-db901e98.js} +101 -105
- package/dist/cjs/{GenericTableView-f9bd3b19.js → GenericTableView-34662639.js} +5 -6
- package/dist/cjs/{JSS-24a85193.js → JSS-c65a40f1.js} +39 -39
- package/dist/cjs/{global-32bf222f.js → global-08276663.js} +589 -589
- package/dist/cjs/{index-d8fa5d8e.js → index-b0129cd6.js} +104 -181
- package/dist/cjs/{index.module-0f10a4c4.js → index.module-54724339.js} +6392 -6392
- package/dist/cjs/loader.cjs.js +7 -7
- package/dist/cjs/{luxon-751f2e1c.js → luxon-59ca7d19.js} +2 -2
- package/dist/cjs/mint-components.cjs.js +9 -9
- package/dist/cjs/{sqm-asset-card-view-0764beab.js → sqm-asset-card-view-d9ac6a95.js} +2 -2
- package/dist/cjs/sqm-asset-card.cjs.entry.js +9 -9
- package/dist/cjs/{sqm-big-stat-view-37e341c1.js → sqm-big-stat-view-e5dc0877.js} +2 -2
- package/dist/cjs/sqm-big-stat.cjs.entry.js +9 -9
- package/dist/cjs/{sqm-brand_26.cjs.entry.js → sqm-brand_27.cjs.entry.js} +328 -251
- package/dist/cjs/sqm-form-message.cjs.entry.js +3 -3
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +10 -10
- package/dist/cjs/{sqm-hero-view-6706134d.js → sqm-hero-view-a13795c0.js} +4 -4
- package/dist/cjs/sqm-hero.cjs.entry.js +7 -7
- package/dist/cjs/{sqm-leaderboard-rank-view-5e2bcad9.js → sqm-leaderboard-rank-view-35015d30.js} +1 -1
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +14 -15
- package/dist/cjs/sqm-leaderboard.cjs.entry.js +9 -9
- package/dist/cjs/{sqm-name-fields-view-c684114f.js → sqm-name-fields-view-c95e4768.js} +10 -12
- package/dist/cjs/sqm-name-fields.cjs.entry.js +9 -9
- package/dist/cjs/{sqm-navigation-sidebar-item-view-7f69e118.js → sqm-navigation-sidebar-item-view-da648fbc.js} +4 -4
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +11 -11
- package/dist/cjs/{sqm-navigation-sidebar-view-b53fad32.js → sqm-navigation-sidebar-view-36632c96.js} +2 -2
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +5 -5
- package/dist/cjs/sqm-password-field.cjs.entry.js +26 -27
- package/dist/cjs/sqm-popup-container.cjs.entry.js +9 -9
- package/dist/cjs/{sqm-portal-container-view-a78ab7ca.js → sqm-portal-container-view-185b4bd0.js} +2 -2
- package/dist/cjs/{sqm-portal-email-verification-view-2a783b13.js → sqm-portal-email-verification-view-991a6739.js} +4 -4
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +13 -13
- package/dist/cjs/{sqm-portal-footer-view-ff16e344.js → sqm-portal-footer-view-266e5a7d.js} +3 -3
- package/dist/cjs/sqm-portal-footer.cjs.entry.js +9 -9
- package/dist/cjs/{sqm-portal-forgot-password-view-036e5d76.js → sqm-portal-forgot-password-view-10c0b54f.js} +3 -3
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +13 -13
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +8 -8
- package/dist/cjs/{sqm-portal-profile-view-0c31ff46.js → sqm-portal-profile-view-fda5946f.js} +10 -13
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +16 -16
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +11 -11
- package/dist/cjs/{sqm-portal-reset-password-view-c2ca03ef.js → sqm-portal-reset-password-view-1fdc957e.js} +3 -3
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +15 -15
- package/dist/cjs/{sqm-portal-section-view-073d9dda.js → sqm-portal-section-view-3b6c990e.js} +2 -2
- package/dist/cjs/{sqm-portal-verify-email-view-1fa62a17.js → sqm-portal-verify-email-view-4c78e231.js} +3 -3
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +14 -14
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +31 -31
- package/dist/cjs/sqm-refresh-button.cjs.entry.js +7 -7
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +26 -27
- package/dist/cjs/sqm-route.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-stat-container-view-fd6e8f8d.js → sqm-stat-container-view-5b2db929.js} +2 -18
- package/dist/cjs/sqm-stat-container.cjs.entry.js +6 -6
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +642 -599
- package/dist/cjs/sqm-table-cell_3.cjs.entry.js +5 -5
- package/dist/cjs/{sqm-text-span-view-dd99633a.js → sqm-text-span-view-f101dedf.js} +2 -2
- package/dist/cjs/sqm-text-span.cjs.entry.js +5 -5
- package/dist/cjs/sqm-titled-section.cjs.entry.js +6 -6
- package/dist/{esm/stencil-hooks.module-1bcbec4f.js → cjs/stencil-hooks.module-87a1f4f7.js} +58 -40
- package/dist/cjs/{use-callback-867e51f6.js → use-callback-e754042f.js} +1 -1
- package/dist/cjs/{useChildElements-6f8aa7de.js → useChildElements-4bc9b219.js} +3 -3
- package/dist/cjs/{useDemoBigStat-1fa1ca6a.js → useDemoBigStat-42fa7a69.js} +5 -5
- package/dist/cjs/{useLeaderboard-b712d583.js → useLeaderboard-6110cd94.js} +5 -5
- package/dist/collection/collection-manifest.json +4 -3
- package/dist/collection/components/sqm-edit-profile/useEditProfile.js +3 -4
- package/dist/collection/components/sqm-image/Image.stories.js +25 -0
- package/dist/collection/components/sqm-image/sqm-image-view.js +32 -0
- package/dist/collection/components/sqm-image/sqm-image.js +137 -0
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +1 -1
- package/dist/collection/components/sqm-leaderboard-rank/useLeaderboardRank.js +3 -4
- package/dist/collection/components/sqm-media/HeroImage.stories.js +37 -0
- package/dist/collection/components/sqm-media/{sqm-media-view.js → sqm-hero-image-view.js} +26 -18
- package/dist/collection/components/sqm-media/{sqm-media.js → sqm-hero-image.js} +77 -38
- package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +8 -10
- package/dist/collection/components/sqm-password-field/sqm-password-field-view.js +4 -5
- package/dist/collection/components/sqm-portal-profile/sqm-portal-profile-view.js +5 -8
- package/dist/collection/components/sqm-portal-register/sqm-portal-register-view.js +10 -12
- package/dist/collection/components/sqm-referral-card/ReferralCard.stories.js +1 -1
- package/dist/collection/components/sqm-referral-card/sqm-timeline-entry.js +47 -16
- package/dist/collection/components/sqm-referral-card/sqm-timeline.js +21 -16
- package/dist/collection/components/sqm-referral-table/UseReferralTable.stories.js +0 -2
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-date-column.js +2 -2
- package/dist/collection/components/sqm-refresh-button/sqm-refresh-button.js +1 -3
- package/dist/collection/components/sqm-reward-exchange-list/UseRewardExchangeList.stories.js +0 -3
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +1 -2
- package/dist/collection/components/sqm-rewards-table/UseRewardsTable.stories.js +0 -2
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.js +0 -1
- package/dist/collection/components/sqm-rewards-table/sqm-rewards-table-view.js +3 -4
- package/dist/collection/components/sqm-share-button/useShareButton.js +1 -2
- package/dist/collection/components/sqm-stat-container/sqm-stat-container-view.js +0 -16
- package/dist/collection/components/sqm-stencilbook/AutoColor.js +1 -1
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +4 -2
- package/dist/collection/components/sqm-task-card/TaskCard.stories.js +2 -2
- package/dist/collection/tables/GenericTableView.js +3 -4
- package/dist/esm/{AutoColor-9281c94b.js → AutoColor-5d891803.js} +101 -105
- package/dist/esm/{GenericTableView-e4257466.js → GenericTableView-5de898c3.js} +5 -6
- package/dist/esm/{JSS-df9ea8a0.js → JSS-96eeab98.js} +39 -39
- package/dist/esm/{global-cc738e38.js → global-6bd9287e.js} +589 -589
- package/dist/esm/{index-2c5a6587.js → index-17b4da69.js} +104 -181
- package/dist/esm/{index.module-983975d9.js → index.module-ec3dcc82.js} +6374 -6374
- package/dist/esm/loader.js +7 -7
- package/dist/esm/{luxon-afa282c2.js → luxon-5fa22651.js} +2 -2
- package/dist/esm/mint-components.js +9 -9
- package/dist/esm/{sqm-asset-card-view-809b35ce.js → sqm-asset-card-view-f9ca5345.js} +2 -2
- package/dist/esm/sqm-asset-card.entry.js +9 -9
- package/dist/esm/{sqm-big-stat-view-3adf4ef2.js → sqm-big-stat-view-309f7c1f.js} +2 -2
- package/dist/esm/sqm-big-stat.entry.js +9 -9
- package/dist/esm/{sqm-brand_26.entry.js → sqm-brand_27.entry.js} +327 -251
- package/dist/esm/sqm-form-message.entry.js +3 -3
- package/dist/esm/sqm-graphql-client-provider.entry.js +10 -10
- package/dist/esm/{sqm-hero-view-b30e42f0.js → sqm-hero-view-190bc812.js} +4 -4
- package/dist/esm/sqm-hero.entry.js +7 -7
- package/dist/esm/{sqm-leaderboard-rank-view-91a35c42.js → sqm-leaderboard-rank-view-da91f5f3.js} +1 -1
- package/dist/esm/sqm-leaderboard-rank.entry.js +14 -15
- package/dist/esm/sqm-leaderboard.entry.js +9 -9
- package/dist/esm/{sqm-name-fields-view-77895fa8.js → sqm-name-fields-view-69b1583f.js} +10 -12
- package/dist/esm/sqm-name-fields.entry.js +9 -9
- package/dist/esm/{sqm-navigation-sidebar-item-view-3c21b3ee.js → sqm-navigation-sidebar-item-view-a6f7f96c.js} +4 -4
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +11 -11
- package/dist/esm/{sqm-navigation-sidebar-view-1c50483e.js → sqm-navigation-sidebar-view-816558e3.js} +2 -2
- package/dist/esm/sqm-navigation-sidebar.entry.js +5 -5
- package/dist/esm/sqm-password-field.entry.js +26 -27
- package/dist/esm/sqm-popup-container.entry.js +9 -9
- package/dist/esm/{sqm-portal-container-view-72c8b457.js → sqm-portal-container-view-cf79ed90.js} +2 -2
- package/dist/esm/{sqm-portal-email-verification-view-7685db9c.js → sqm-portal-email-verification-view-96c1f91b.js} +4 -4
- package/dist/esm/sqm-portal-email-verification.entry.js +13 -13
- package/dist/esm/{sqm-portal-footer-view-b344a6ad.js → sqm-portal-footer-view-3a7dfbfc.js} +3 -3
- package/dist/esm/sqm-portal-footer.entry.js +9 -9
- package/dist/esm/{sqm-portal-forgot-password-view-f7f24742.js → sqm-portal-forgot-password-view-fa088f83.js} +3 -3
- package/dist/esm/sqm-portal-forgot-password.entry.js +13 -13
- package/dist/esm/sqm-portal-logout.entry.js +8 -8
- package/dist/esm/{sqm-portal-profile-view-3da23184.js → sqm-portal-profile-view-36488558.js} +10 -13
- package/dist/esm/sqm-portal-profile.entry.js +16 -16
- package/dist/esm/sqm-portal-protected-route.entry.js +11 -11
- package/dist/esm/{sqm-portal-reset-password-view-f3017d72.js → sqm-portal-reset-password-view-73e14282.js} +3 -3
- package/dist/esm/sqm-portal-reset-password.entry.js +15 -15
- package/dist/esm/{sqm-portal-section-view-5a3d3829.js → sqm-portal-section-view-d3098f7f.js} +2 -2
- package/dist/esm/{sqm-portal-verify-email-view-329fdc3b.js → sqm-portal-verify-email-view-cbf1cfdc.js} +3 -3
- package/dist/esm/sqm-portal-verify-email.entry.js +14 -14
- package/dist/esm/sqm-referral-table_11.entry.js +31 -31
- package/dist/esm/sqm-refresh-button.entry.js +7 -7
- package/dist/esm/sqm-rewards-table_9.entry.js +26 -27
- package/dist/esm/sqm-route.entry.js +2 -2
- package/dist/esm/{sqm-stat-container-view-02b82222.js → sqm-stat-container-view-8a565c5a.js} +2 -18
- package/dist/esm/sqm-stat-container.entry.js +6 -6
- package/dist/esm/sqm-stencilbook.entry.js +642 -599
- package/dist/esm/sqm-table-cell_3.entry.js +5 -5
- package/dist/esm/{sqm-text-span-view-be532a94.js → sqm-text-span-view-7e61c95c.js} +2 -2
- package/dist/esm/sqm-text-span.entry.js +5 -5
- package/dist/esm/sqm-titled-section.entry.js +6 -6
- package/dist/{cjs/stencil-hooks.module-23a5a83a.js → esm/stencil-hooks.module-2f159754.js} +40 -58
- package/dist/esm/{use-callback-cfeaefe1.js → use-callback-d8ef4b5d.js} +1 -1
- package/dist/esm/{useChildElements-9936fb9a.js → useChildElements-c11d6189.js} +3 -3
- package/dist/esm/{useDemoBigStat-5450ce4c.js → useDemoBigStat-e2295035.js} +5 -5
- package/dist/esm/{useLeaderboard-c0017437.js → useLeaderboard-5d875f53.js} +5 -5
- package/dist/esm-es5/AutoColor-5d891803.js +1 -0
- package/dist/esm-es5/{GenericTableView-e4257466.js → GenericTableView-5de898c3.js} +1 -1
- package/dist/esm-es5/JSS-96eeab98.js +8 -0
- package/dist/esm-es5/global-6bd9287e.js +285 -0
- package/dist/esm-es5/index-17b4da69.js +1 -0
- package/dist/esm-es5/index.module-ec3dcc82.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{luxon-afa282c2.js → luxon-5fa22651.js} +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/{sqm-asset-card-view-809b35ce.js → sqm-asset-card-view-f9ca5345.js} +1 -1
- package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
- package/dist/esm-es5/{sqm-big-stat-view-3adf4ef2.js → sqm-big-stat-view-309f7c1f.js} +1 -1
- package/dist/esm-es5/sqm-big-stat.entry.js +1 -1
- package/dist/esm-es5/sqm-brand_27.entry.js +1 -0
- package/dist/esm-es5/sqm-form-message.entry.js +1 -1
- package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm-es5/{sqm-hero-view-b30e42f0.js → sqm-hero-view-190bc812.js} +1 -1
- package/dist/esm-es5/sqm-hero.entry.js +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank-view-da91f5f3.js +1 -0
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-leaderboard.entry.js +1 -1
- package/dist/esm-es5/{sqm-name-fields-view-77895fa8.js → sqm-name-fields-view-69b1583f.js} +1 -1
- package/dist/esm-es5/sqm-name-fields.entry.js +1 -1
- package/dist/esm-es5/{sqm-navigation-sidebar-item-view-3c21b3ee.js → sqm-navigation-sidebar-item-view-a6f7f96c.js} +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/{sqm-navigation-sidebar-view-1c50483e.js → sqm-navigation-sidebar-view-816558e3.js} +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar.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-container-view-72c8b457.js → sqm-portal-container-view-cf79ed90.js} +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-7685db9c.js → sqm-portal-email-verification-view-96c1f91b.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-footer-view-b344a6ad.js → sqm-portal-footer-view-3a7dfbfc.js} +1 -1
- package/dist/esm-es5/sqm-portal-footer.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-forgot-password-view-f7f24742.js → sqm-portal-forgot-password-view-fa088f83.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-3da23184.js → sqm-portal-profile-view-36488558.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-view-f3017d72.js → sqm-portal-reset-password-view-73e14282.js} +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-section-view-5a3d3829.js → sqm-portal-section-view-d3098f7f.js} +1 -1
- package/dist/esm-es5/{sqm-portal-verify-email-view-329fdc3b.js → sqm-portal-verify-email-view-cbf1cfdc.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_9.entry.js +1 -1
- package/dist/esm-es5/sqm-route.entry.js +1 -1
- package/dist/esm-es5/{sqm-stat-container-view-02b82222.js → sqm-stat-container-view-8a565c5a.js} +1 -1
- 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-table-cell_3.entry.js +1 -1
- package/dist/esm-es5/{sqm-text-span-view-be532a94.js → sqm-text-span-view-7e61c95c.js} +1 -1
- package/dist/esm-es5/sqm-text-span.entry.js +1 -1
- package/dist/esm-es5/sqm-titled-section.entry.js +1 -1
- package/dist/esm-es5/stencil-hooks.module-2f159754.js +53 -0
- package/dist/esm-es5/use-callback-d8ef4b5d.js +1 -0
- package/dist/esm-es5/useChildElements-c11d6189.js +1 -0
- package/dist/esm-es5/useDemoBigStat-e2295035.js +1 -0
- package/dist/esm-es5/useLeaderboard-5d875f53.js +1 -0
- package/dist/loader/index.d.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-09357f10.system.entry.js → p-01748c80.system.entry.js} +1 -1
- package/dist/mint-components/p-023dcaee.js +1 -0
- package/dist/mint-components/{p-64d2bfb1.system.entry.js → p-067cf6da.system.entry.js} +1 -1
- package/dist/mint-components/p-0c19f830.entry.js +1 -0
- package/dist/mint-components/{p-0e97beb3.js → p-0e7e10b6.js} +1 -1
- package/dist/mint-components/p-1288be55.entry.js +1 -0
- package/dist/mint-components/{p-c4cedfef.system.entry.js → p-136e2028.system.entry.js} +1 -1
- package/dist/mint-components/{p-b138c9e4.system.js → p-16effd39.system.js} +1 -1
- package/dist/mint-components/{p-740a45df.js → p-179988b5.js} +1 -1
- package/dist/mint-components/{p-38045cb3.system.js → p-1959da16.system.js} +1 -1
- package/dist/mint-components/{p-408f48ec.system.entry.js → p-197d1027.system.entry.js} +1 -1
- package/dist/mint-components/{p-6e2e549a.js → p-1d1e9197.js} +1 -1
- package/dist/mint-components/p-204fd08c.js +1 -0
- package/dist/mint-components/p-220181cd.system.entry.js +1 -0
- package/dist/mint-components/p-232db563.system.entry.js +1 -0
- package/dist/mint-components/{p-ef4e8230.system.entry.js → p-2454f30a.system.entry.js} +1 -1
- package/dist/mint-components/p-24724b6b.entry.js +13 -0
- package/dist/mint-components/p-27e04aaf.entry.js +1 -0
- package/dist/mint-components/{p-96103ab1.system.js → p-2c49c7a8.system.js} +1 -1
- package/dist/mint-components/p-348461ec.system.entry.js +1 -0
- package/dist/mint-components/{p-747dc08d.js → p-373fa002.js} +1 -1
- package/dist/mint-components/p-3b184c32.js +1 -0
- package/dist/mint-components/{p-1ef9bc8f.system.js → p-3bbb90a9.system.js} +1 -1
- package/dist/mint-components/{p-4c5581b9.js → p-3dc2850c.js} +1 -1
- package/dist/mint-components/{p-e52d6c0f.js → p-3e556042.js} +1 -1
- package/dist/mint-components/{p-65d669e7.system.entry.js → p-4275c957.system.entry.js} +1 -1
- package/dist/mint-components/{p-c5d104d8.system.js → p-4279da4b.system.js} +1 -1
- package/dist/mint-components/{p-fc103049.system.js → p-443c133e.system.js} +1 -1
- package/dist/mint-components/p-48abcb89.entry.js +86 -0
- package/dist/mint-components/p-49c9ff69.entry.js +1 -0
- package/dist/mint-components/{p-eba0f8b5.js → p-4a1b7d35.js} +1 -1
- package/dist/mint-components/p-4c21835b.entry.js +1 -0
- package/dist/mint-components/p-4e0b9201.system.js +1 -0
- package/dist/mint-components/{p-159a0455.system.entry.js → p-4e8e99bc.system.entry.js} +1 -1
- package/dist/mint-components/{p-79b96b7c.js → p-509e6dc9.js} +4 -4
- package/dist/mint-components/p-5289072a.js +1 -0
- package/dist/mint-components/p-54986541.entry.js +1 -0
- package/dist/mint-components/{p-754c90b6.js → p-54e855a1.js} +1 -1
- package/dist/mint-components/{p-6d1fd7ef.js → p-591de129.js} +1 -1
- package/dist/mint-components/{p-2cf031e5.js → p-5c75acad.js} +1 -1
- package/dist/mint-components/{p-feb4ccf1.system.js → p-5df1d9ae.system.js} +1 -1
- package/dist/mint-components/{p-b094bf1f.system.entry.js → p-5e2b006a.system.entry.js} +1 -1
- package/dist/mint-components/{p-39ba54b0.js → p-61a542ec.js} +1 -1
- package/dist/mint-components/p-62625e22.entry.js +1 -0
- package/dist/mint-components/p-62e49806.system.entry.js +1 -0
- package/dist/mint-components/p-639d3dd3.entry.js +1 -0
- package/dist/mint-components/p-63a6475a.system.entry.js +1 -0
- package/dist/mint-components/{p-73246c5e.js → p-64c3217a.js} +1 -1
- package/dist/mint-components/{p-feea807c.system.js → p-6b43e4cc.system.js} +1 -1
- package/dist/mint-components/{p-a6940c14.system.entry.js → p-6e70be1c.system.entry.js} +1 -1
- package/dist/mint-components/p-6f88ea09.system.js +1 -0
- package/dist/mint-components/p-72a978c8.entry.js +1 -0
- package/dist/mint-components/{p-637a01d0.system.js → p-72c87c04.system.js} +1 -1
- package/dist/mint-components/{p-071fdcfa.js → p-73d5306f.js} +1 -1
- package/dist/mint-components/p-76325d9c.system.entry.js +1 -0
- package/dist/mint-components/{p-80eb9f8a.js → p-7a1ebc00.js} +15 -15
- package/dist/mint-components/{p-720d9f1a.system.entry.js → p-81681ebd.system.entry.js} +1 -1
- package/dist/mint-components/p-871536c7.entry.js +1 -0
- package/dist/mint-components/{p-9fa1fb4e.system.js → p-8bcaafaf.system.js} +1 -1
- package/dist/mint-components/{p-a6a9d6b7.system.entry.js → p-91ab2b0d.system.entry.js} +1 -1
- package/dist/mint-components/{p-efb82cfc.system.js → p-91d119ad.system.js} +1 -1
- package/dist/mint-components/p-9580888c.system.js +53 -0
- package/dist/mint-components/p-96c971fa.entry.js +1 -0
- package/dist/mint-components/p-97f843f9.system.entry.js +1 -0
- package/dist/mint-components/p-98393bf0.entry.js +1 -0
- package/dist/mint-components/{p-e46a4dc4.js → p-9b48d01e.js} +1 -1
- package/dist/mint-components/p-9f215c7f.entry.js +161 -0
- package/dist/mint-components/p-9f65904f.entry.js +1 -0
- package/dist/mint-components/{p-5cc0dc12.system.js → p-a09e3176.system.js} +1 -1
- package/dist/mint-components/p-a674c833.system.entry.js +1 -0
- package/dist/mint-components/p-ac5f63b1.entry.js +33 -0
- package/dist/mint-components/p-ac65007d.js +1 -0
- package/dist/mint-components/p-af5673c4.entry.js +1 -0
- package/dist/mint-components/p-b0c32d15.system.js +1 -0
- package/dist/mint-components/p-b0d6a380.system.js +1 -0
- package/dist/mint-components/p-b0e8c584.system.entry.js +1 -0
- package/dist/mint-components/p-b3201e4c.entry.js +1 -0
- package/dist/mint-components/p-b3735eaf.entry.js +9 -0
- package/dist/mint-components/p-b3af1c6f.js +1 -0
- package/dist/mint-components/p-b69365f5.entry.js +1 -0
- package/dist/mint-components/p-b77bb179.system.js +285 -0
- package/dist/mint-components/p-b7da9a8a.js +42 -0
- package/dist/mint-components/{p-e29935f9.system.js → p-b8434fc0.system.js} +1 -1
- package/dist/mint-components/p-b9974b87.entry.js +1 -0
- package/dist/mint-components/{p-86372145.system.entry.js → p-ba41fde8.system.entry.js} +1 -1
- package/dist/mint-components/{p-80493415.system.entry.js → p-bd0475a2.system.entry.js} +1 -1
- package/dist/mint-components/{p-0ef64931.system.js → p-bf055b6c.system.js} +1 -1
- package/dist/mint-components/{p-1b2b1ba2.js → p-c157f510.js} +3 -3
- package/dist/mint-components/{p-16db729c.system.entry.js → p-c1a47137.system.entry.js} +1 -1
- package/dist/mint-components/{p-1ca5b819.js → p-c2e84199.js} +1 -1
- package/dist/mint-components/p-cb93f2c8.entry.js +1 -0
- package/dist/mint-components/p-cd4037d1.entry.js +1 -0
- package/dist/mint-components/{p-d8e97fb7.system.js → p-ce0ec1c4.system.js} +1 -1
- package/dist/mint-components/p-d10efde1.system.js +1 -0
- package/dist/mint-components/p-d1520098.js +1 -0
- package/dist/mint-components/p-d312db42.entry.js +1 -0
- package/dist/mint-components/{p-d27c4eb5.js → p-d33eb961.js} +1 -1
- package/dist/mint-components/{p-5c4dec0c.system.entry.js → p-d6ef4765.system.entry.js} +1 -1
- package/dist/mint-components/p-dc17de12.entry.js +119 -0
- package/dist/mint-components/p-dcff1a85.entry.js +1 -0
- package/dist/mint-components/{p-6d6791b6.system.js → p-df466813.system.js} +1 -1
- package/dist/mint-components/{p-b81b4ebf.system.js → p-e00e11b1.system.js} +1 -1
- package/dist/mint-components/{p-35a8858e.system.js → p-e0be39d0.system.js} +1 -1
- package/dist/mint-components/{p-83e18382.system.entry.js → p-e1166d9b.system.entry.js} +1 -1
- package/dist/mint-components/{p-6353bf11.entry.js → p-e7b20665.entry.js} +1 -1
- package/dist/mint-components/{p-bb2bc191.system.js → p-ea110693.system.js} +1 -1
- package/dist/mint-components/p-ea197664.js +1 -0
- package/dist/mint-components/p-eb23e1b9.system.entry.js +1 -0
- package/dist/mint-components/{p-8c5bf8ee.system.js → p-eba2e455.system.js} +1 -1
- package/dist/mint-components/p-ef99c411.system.entry.js +1 -0
- package/dist/mint-components/p-f143117c.entry.js +1 -0
- package/dist/mint-components/p-f241ee8a.system.entry.js +1 -0
- package/dist/mint-components/p-f372c8d8.entry.js +1 -0
- package/dist/mint-components/p-f5cba1f7.system.entry.js +1 -0
- package/dist/mint-components/{p-82a02b17.system.js → p-f8d95abc.system.js} +1 -1
- package/dist/mint-components/{p-af859f26.js → p-f9008f86.js} +153 -153
- package/dist/mint-components/{p-4479f753.system.entry.js → p-fb8a587b.system.entry.js} +1 -1
- package/dist/mint-components/p-fe4d9531.system.js +1 -0
- package/dist/mint-components/p-ff17b3a4.system.js +1 -0
- package/dist/types/components/sqm-image/Image.stories.d.ts +11 -0
- package/dist/types/components/sqm-image/sqm-image-view.d.ts +8 -0
- package/dist/types/components/sqm-image/sqm-image.d.ts +31 -0
- package/dist/types/components/sqm-media/HeroImage.stories.d.ts +15 -0
- package/dist/types/components/sqm-media/{sqm-media-view.d.ts → sqm-hero-image-view.d.ts} +6 -3
- package/dist/types/components/sqm-media/{sqm-media.d.ts → sqm-hero-image.d.ts} +16 -9
- package/dist/types/components/sqm-referral-card/sqm-timeline-entry.d.ts +4 -0
- package/dist/types/components.d.ts +215 -138
- package/dist/types/stencil-public-runtime.d.ts +182 -190
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/collection/components/sqm-media/Media.stories.js +0 -28
- package/dist/esm-es5/AutoColor-9281c94b.js +0 -1
- package/dist/esm-es5/JSS-df9ea8a0.js +0 -8
- package/dist/esm-es5/global-cc738e38.js +0 -285
- package/dist/esm-es5/index-2c5a6587.js +0 -1
- package/dist/esm-es5/index.module-983975d9.js +0 -1
- package/dist/esm-es5/sqm-brand_26.entry.js +0 -1
- package/dist/esm-es5/sqm-leaderboard-rank-view-91a35c42.js +0 -1
- package/dist/esm-es5/stencil-hooks.module-1bcbec4f.js +0 -53
- package/dist/esm-es5/use-callback-cfeaefe1.js +0 -1
- package/dist/esm-es5/useChildElements-9936fb9a.js +0 -1
- package/dist/esm-es5/useDemoBigStat-5450ce4c.js +0 -1
- package/dist/esm-es5/useLeaderboard-c0017437.js +0 -1
- package/dist/mint-components/p-00894968.system.js +0 -1
- package/dist/mint-components/p-0449904d.system.entry.js +0 -1
- package/dist/mint-components/p-050bd4c1.entry.js +0 -1
- package/dist/mint-components/p-073c0485.system.js +0 -1
- package/dist/mint-components/p-09ae771c.system.entry.js +0 -1
- package/dist/mint-components/p-12557b30.js +0 -1
- package/dist/mint-components/p-15932a6d.entry.js +0 -1
- package/dist/mint-components/p-18e9e739.system.entry.js +0 -1
- package/dist/mint-components/p-1c0fac18.system.js +0 -1
- package/dist/mint-components/p-2012b3eb.entry.js +0 -1
- package/dist/mint-components/p-21bf87e9.system.js +0 -1
- package/dist/mint-components/p-2673d322.entry.js +0 -1
- package/dist/mint-components/p-32ec3994.entry.js +0 -161
- package/dist/mint-components/p-33bd2ff9.entry.js +0 -1
- package/dist/mint-components/p-3beda015.js +0 -1
- package/dist/mint-components/p-40849586.entry.js +0 -1
- package/dist/mint-components/p-40b91bd2.entry.js +0 -1
- package/dist/mint-components/p-40d9f8f3.entry.js +0 -1
- package/dist/mint-components/p-425ea70b.entry.js +0 -1
- package/dist/mint-components/p-46adc2cf.system.entry.js +0 -1
- package/dist/mint-components/p-4ac07db9.system.js +0 -1
- package/dist/mint-components/p-673d1d37.system.entry.js +0 -1
- package/dist/mint-components/p-6f2ab381.system.entry.js +0 -1
- package/dist/mint-components/p-71775f38.entry.js +0 -1
- package/dist/mint-components/p-746fa1fa.entry.js +0 -1
- package/dist/mint-components/p-77bf2413.entry.js +0 -1
- package/dist/mint-components/p-79339d1d.entry.js +0 -33
- package/dist/mint-components/p-7a24a7a4.system.entry.js +0 -1
- package/dist/mint-components/p-860513de.system.js +0 -53
- package/dist/mint-components/p-8873b8b0.system.entry.js +0 -1
- package/dist/mint-components/p-8b5f9502.system.entry.js +0 -1
- package/dist/mint-components/p-8f900354.system.entry.js +0 -1
- package/dist/mint-components/p-95b5aa14.system.js +0 -1
- package/dist/mint-components/p-a2c12d31.system.entry.js +0 -1
- package/dist/mint-components/p-a716fa21.entry.js +0 -1
- package/dist/mint-components/p-aa926a92.entry.js +0 -86
- package/dist/mint-components/p-adabc223.js +0 -1
- package/dist/mint-components/p-ae9a75d7.entry.js +0 -1
- package/dist/mint-components/p-aeaf1171.js +0 -1
- package/dist/mint-components/p-af8a82a5.entry.js +0 -1
- package/dist/mint-components/p-b094b800.js +0 -1
- package/dist/mint-components/p-c1509151.system.entry.js +0 -1
- package/dist/mint-components/p-c154b16e.system.entry.js +0 -1
- package/dist/mint-components/p-c164d3fe.js +0 -1
- package/dist/mint-components/p-c358211f.js +0 -1
- package/dist/mint-components/p-c824c2e5.system.js +0 -285
- package/dist/mint-components/p-ce5a08d0.entry.js +0 -119
- package/dist/mint-components/p-cfe598c1.js +0 -1
- package/dist/mint-components/p-cfe65695.entry.js +0 -1
- package/dist/mint-components/p-d2a2c424.js +0 -56
- package/dist/mint-components/p-d4c1b8e9.entry.js +0 -1
- package/dist/mint-components/p-d9bf4d77.entry.js +0 -1
- package/dist/mint-components/p-e341556f.entry.js +0 -13
- package/dist/mint-components/p-e551074e.system.js +0 -1
- package/dist/mint-components/p-e9a8a8f3.entry.js +0 -9
- package/dist/mint-components/p-eb3ce654.entry.js +0 -1
- package/dist/mint-components/p-eb4f3c85.entry.js +0 -1
- package/dist/mint-components/p-f0c38e7a.entry.js +0 -1
- package/dist/mint-components/p-f17cd500.entry.js +0 -1
- package/dist/mint-components/p-f39b5f6b.entry.js +0 -1
- package/dist/types/components/sqm-media/Media.stories.d.ts +0 -12
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { h, c as Host, d as getAssetPath } from './index-
|
|
2
|
-
import {
|
|
1
|
+
import { h, c as Host, d as getAssetPath } from './index-17b4da69.js';
|
|
2
|
+
import { k as useState } from './stencil-hooks.module-2f159754.js';
|
|
3
|
+
import { i as intl } from './global-6bd9287e.js';
|
|
4
|
+
import { d as dist, M, n as ne, x, b as mn, D as De, f as D } from './index.module-ec3dcc82.js';
|
|
3
5
|
import { H as HostBlock, A as AuthWrapper, a as AuthColumn, b as AuthButtonsContainer, E as ErrorStyles } from './mixins-10353a39.js';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { P as PortalContainerView } from './sqm-portal-container-view-72c8b457.js';
|
|
7
|
-
import { P as PortalSectionView } from './sqm-portal-section-view-5a3d3829.js';
|
|
8
|
-
import { T as TextSpanView } from './sqm-text-span-view-be532a94.js';
|
|
9
|
-
import { l as luxon } from './luxon-afa282c2.js';
|
|
10
|
-
import { i as intl } from './global-cc738e38.js';
|
|
6
|
+
import { c as createStyleSheet } from './JSS-96eeab98.js';
|
|
7
|
+
import { l as luxon } from './luxon-5fa22651.js';
|
|
11
8
|
import { l as luxonLocale } from './utils-1d345130.js';
|
|
9
|
+
import { T as TextSpanView } from './sqm-text-span-view-7e61c95c.js';
|
|
10
|
+
import { P as PortalContainerView } from './sqm-portal-container-view-cf79ed90.js';
|
|
11
|
+
import { P as PortalSectionView } from './sqm-portal-section-view-d3098f7f.js';
|
|
12
12
|
|
|
13
13
|
function ShareButtonView(props, children) {
|
|
14
14
|
const vanillaStyle = `
|
|
@@ -41,23 +41,23 @@ function ShareButtonView(props, children) {
|
|
|
41
41
|
!props.hidetext && children)));
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
const style
|
|
44
|
+
const style = {
|
|
45
45
|
HostBlock: HostBlock,
|
|
46
46
|
inputStyle: {
|
|
47
47
|
"&::part(base)": { background: "white", opacity: "1", cursor: "pointer" },
|
|
48
48
|
},
|
|
49
49
|
};
|
|
50
|
-
const sheet
|
|
51
|
-
const styleString
|
|
50
|
+
const sheet = createStyleSheet(style);
|
|
51
|
+
const styleString = sheet.toString();
|
|
52
52
|
function ShareLinkView(props) {
|
|
53
53
|
return (h("div", null,
|
|
54
|
-
h("style", { type: "text/css" }, styleString
|
|
54
|
+
h("style", { type: "text/css" }, styleString),
|
|
55
55
|
h("sl-tooltip", { trigger: "manual", content: props.tooltiptext, placement: "top-end", disabled: props.disabled, open: props.open },
|
|
56
|
-
h("sl-input", { class: sheet
|
|
56
|
+
h("sl-input", { class: sheet.classes.inputStyle, exportparts: "label: input-label", value: props.shareString, readonly: true },
|
|
57
57
|
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 })))));
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
const style$
|
|
60
|
+
const style$1 = {
|
|
61
61
|
HostBlock: HostBlock,
|
|
62
62
|
":host": {
|
|
63
63
|
"min-height": "100vh",
|
|
@@ -95,17 +95,17 @@ const style$5 = {
|
|
|
95
95
|
},
|
|
96
96
|
},
|
|
97
97
|
};
|
|
98
|
-
const sheet$
|
|
99
|
-
const styleString$
|
|
98
|
+
const sheet$1 = createStyleSheet(style$1);
|
|
99
|
+
const styleString$1 = sheet$1.toString();
|
|
100
100
|
function PortalFrameView(props, children) {
|
|
101
101
|
const { data } = props;
|
|
102
|
-
return (h("div", { class: sheet$
|
|
103
|
-
h("style", { type: "text/css" }, styleString$
|
|
104
|
-
h("div", { class: sheet$
|
|
102
|
+
return (h("div", { class: sheet$1.classes.Frame },
|
|
103
|
+
h("style", { type: "text/css" }, styleString$1),
|
|
104
|
+
h("div", { class: sheet$1.classes.HeaderWrapper },
|
|
105
105
|
data.header,
|
|
106
106
|
h("slot", { name: "sqm-navigation-menu" })),
|
|
107
107
|
children,
|
|
108
|
-
h("div", { class: sheet$
|
|
108
|
+
h("div", { class: sheet$1.classes.FooterWrapper }, data.footer)));
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
const EditProfileView = (props) => {
|
|
@@ -162,7 +162,7 @@ const EditProfileView = (props) => {
|
|
|
162
162
|
}, exportparts: "base: primarybutton-base" }, text.editprofiletext)));
|
|
163
163
|
};
|
|
164
164
|
|
|
165
|
-
const MessageLinkQuery
|
|
165
|
+
const MessageLinkQuery = dist.gql `
|
|
166
166
|
query ($programId: ID) {
|
|
167
167
|
user: viewer {
|
|
168
168
|
... on User {
|
|
@@ -179,10 +179,10 @@ const WIDGET_ENGAGEMENT_EVENT = dist.gql `
|
|
|
179
179
|
function useShareLink(props) {
|
|
180
180
|
var _a, _b;
|
|
181
181
|
const { programId = M() } = props;
|
|
182
|
-
const user =
|
|
183
|
-
const engagementMedium =
|
|
184
|
-
const { data } =
|
|
185
|
-
const [sendLoadEvent] =
|
|
182
|
+
const user = ne();
|
|
183
|
+
const engagementMedium = x();
|
|
184
|
+
const { data } = mn(MessageLinkQuery, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
185
|
+
const [sendLoadEvent] = De(WIDGET_ENGAGEMENT_EVENT);
|
|
186
186
|
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 :
|
|
187
187
|
// Shown during loading
|
|
188
188
|
"...";
|
|
@@ -209,7 +209,7 @@ function useShareLink(props) {
|
|
|
209
209
|
return { ...props, onClick, open, shareString };
|
|
210
210
|
}
|
|
211
211
|
|
|
212
|
-
const MessageLinkQuery = dist.gql `
|
|
212
|
+
const MessageLinkQuery$1 = dist.gql `
|
|
213
213
|
query (
|
|
214
214
|
$programId: ID
|
|
215
215
|
$engagementMedium: UserEngagementMedium!
|
|
@@ -261,24 +261,23 @@ function FacebookShare(directLink, res) {
|
|
|
261
261
|
}
|
|
262
262
|
function GenericShare(res) {
|
|
263
263
|
var _a, _b;
|
|
264
|
-
return ((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.messageLink)
|
|
265
|
-
? window.open(res.data.viewer.messageLink)
|
|
264
|
+
return ((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.messageLink) ? window.open(res.data.viewer.messageLink)
|
|
266
265
|
: alert("error: message link undefined!");
|
|
267
266
|
}
|
|
268
267
|
function useShareButton(props) {
|
|
269
268
|
var _a, _b;
|
|
270
269
|
const { sharetitle, sharetext, medium } = props;
|
|
271
270
|
const programId = props.programId ? props.programId : M();
|
|
272
|
-
const user =
|
|
271
|
+
const user = ne();
|
|
273
272
|
const variables = {
|
|
274
|
-
engagementMedium:
|
|
273
|
+
engagementMedium: x(),
|
|
275
274
|
programId: programId,
|
|
276
275
|
shareMedium: medium.toUpperCase(),
|
|
277
276
|
};
|
|
278
277
|
// only queries if a programId is available
|
|
279
|
-
const res =
|
|
278
|
+
const res = mn(MessageLinkQuery$1, variables, !(user === null || user === void 0 ? void 0 : user.jwt) || !programId);
|
|
280
279
|
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;
|
|
281
|
-
const environment =
|
|
280
|
+
const environment = D();
|
|
282
281
|
const hide = (medium.toLocaleUpperCase() === "SMS" &&
|
|
283
282
|
window.orientation === undefined) ||
|
|
284
283
|
(medium.toLocaleUpperCase() === "DIRECT" && !window.navigator.share);
|
|
@@ -367,7 +366,7 @@ function PortalChangePasswordView(props) {
|
|
|
367
366
|
h("style", { type: "text/css" }, styleString))));
|
|
368
367
|
}
|
|
369
368
|
|
|
370
|
-
const style$
|
|
369
|
+
const style$2 = {
|
|
371
370
|
Wrapper: AuthWrapper,
|
|
372
371
|
Column: AuthColumn,
|
|
373
372
|
ForgotButtonContainer: {
|
|
@@ -380,7 +379,7 @@ const style$4 = {
|
|
|
380
379
|
},
|
|
381
380
|
ButtonsContainer: AuthButtonsContainer,
|
|
382
381
|
};
|
|
383
|
-
const vanillaStyle
|
|
382
|
+
const vanillaStyle = `
|
|
384
383
|
:host {
|
|
385
384
|
display: block;
|
|
386
385
|
}
|
|
@@ -388,23 +387,23 @@ const vanillaStyle$1 = `
|
|
|
388
387
|
display: none;
|
|
389
388
|
}
|
|
390
389
|
`;
|
|
391
|
-
const sheet$
|
|
392
|
-
const styleString$
|
|
390
|
+
const sheet$2 = createStyleSheet(style$2);
|
|
391
|
+
const styleString$2 = sheet$2.toString();
|
|
393
392
|
function PortalLoginView(props) {
|
|
394
393
|
const { states, callbacks, content } = props;
|
|
395
|
-
return (h("div", { class: sheet$
|
|
394
|
+
return (h("div", { class: sheet$2.classes.Wrapper },
|
|
396
395
|
h("style", { type: "text/css" },
|
|
397
|
-
vanillaStyle
|
|
398
|
-
styleString$
|
|
396
|
+
vanillaStyle,
|
|
397
|
+
styleString$2),
|
|
399
398
|
h(TextSpanView, { type: "h3" }, content.pageLabel),
|
|
400
|
-
h("sl-form", { class: sheet$
|
|
399
|
+
h("sl-form", { class: sheet$2.classes.Column, "onSl-submit": callbacks.submit },
|
|
401
400
|
props.states.error && (h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
|
|
402
401
|
h("div", { part: "erroralert-text" }, props.states.error))),
|
|
403
402
|
h("sl-input", { exportparts: "label: input-label", type: "email", name: "/email", label: content.emailLabel || "Email", disabled: states.loading, required: true }),
|
|
404
403
|
h("div", null,
|
|
405
404
|
h("sl-input", { exportparts: "label: input-label", type: "password", name: "/password", label: content.passwordLabel || "Password", disabled: states.loading, required: true }),
|
|
406
|
-
h("div", { class: sheet$
|
|
407
|
-
h("div", { class: sheet$
|
|
405
|
+
h("div", { class: sheet$2.classes.ForgotButtonContainer }, content.forgotPasswordButton)),
|
|
406
|
+
h("div", { class: sheet$2.classes.ButtonsContainer },
|
|
408
407
|
h("sl-button", { submit: true, loading: states.loading, exportparts: "base: primarybutton-base", type: "primary" }, content.submitLabel || "Login"),
|
|
409
408
|
content.secondaryButton))));
|
|
410
409
|
}
|
|
@@ -420,7 +419,7 @@ const style$3 = {
|
|
|
420
419
|
ButtonsContainer: AuthButtonsContainer,
|
|
421
420
|
ErrorStyle: ErrorStyles,
|
|
422
421
|
};
|
|
423
|
-
const vanillaStyle = `
|
|
422
|
+
const vanillaStyle$1 = `
|
|
424
423
|
sqm-portal-register {
|
|
425
424
|
margin: 0 auto;
|
|
426
425
|
width: 100%;
|
|
@@ -445,7 +444,7 @@ function PortalRegisterView(props) {
|
|
|
445
444
|
}
|
|
446
445
|
return (h("div", { class: sheet$3.classes.Wrapper },
|
|
447
446
|
h("style", { type: "text/css" },
|
|
448
|
-
vanillaStyle,
|
|
447
|
+
vanillaStyle$1,
|
|
449
448
|
styleString$3),
|
|
450
449
|
h(TextSpanView, { type: "h3" }, content.pageLabel),
|
|
451
450
|
h("sl-form", { class: sheet$3.classes.Column, "onSl-submit": callbacks.submit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
@@ -460,21 +459,19 @@ function PortalRegisterView(props) {
|
|
|
460
459
|
if (!value.includes("@")) {
|
|
461
460
|
return "Must be a valid email address";
|
|
462
461
|
}
|
|
463
|
-
} }, (((_b = (_a = states.validationState) === null || _a === void 0 ? void 0 : _a.validationErrors) === null || _b === void 0 ? void 0 : _b.email)
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
}
|
|
462
|
+
} }, (((_b = (_a = states.validationState) === null || _a === void 0 ? void 0 : _a.validationErrors) === null || _b === void 0 ? void 0 : _b.email) ? {
|
|
463
|
+
class: sheet$3.classes.ErrorStyle,
|
|
464
|
+
helpText: ((_d = (_c = states.validationState) === null || _c === void 0 ? void 0 : _c.validationErrors) === null || _d === void 0 ? void 0 : _d.email) ||
|
|
465
|
+
"Cannot be empty",
|
|
466
|
+
}
|
|
469
467
|
: [])))),
|
|
470
468
|
!states.hideInputs && (h("sqm-password-field", { fieldLabel: content.passwordLabel, "enable-validation": states.enablePasswordValidation })),
|
|
471
469
|
content.passwordField,
|
|
472
|
-
!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)
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
}
|
|
470
|
+
!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) ? {
|
|
471
|
+
class: sheet$3.classes.ErrorStyle,
|
|
472
|
+
helpText: ((_h = (_g = states.validationState) === null || _g === void 0 ? void 0 : _g.validationErrors) === null || _h === void 0 ? void 0 : _h.confirmPassword) ||
|
|
473
|
+
"Cannot be empty",
|
|
474
|
+
}
|
|
478
475
|
: [])))),
|
|
479
476
|
content.terms,
|
|
480
477
|
h("div", { class: sheet$3.classes.ButtonsContainer },
|
|
@@ -482,7 +479,7 @@ function PortalRegisterView(props) {
|
|
|
482
479
|
content.secondaryButton))));
|
|
483
480
|
}
|
|
484
481
|
|
|
485
|
-
const style$
|
|
482
|
+
const style$4 = {
|
|
486
483
|
Description: {
|
|
487
484
|
"& input[type=checkbox]": {
|
|
488
485
|
display: "none",
|
|
@@ -521,20 +518,20 @@ const style$2 = {
|
|
|
521
518
|
},
|
|
522
519
|
},
|
|
523
520
|
};
|
|
524
|
-
const sheet$
|
|
525
|
-
const styleString$
|
|
521
|
+
const sheet$4 = createStyleSheet(style$4);
|
|
522
|
+
const styleString$4 = sheet$4.toString();
|
|
526
523
|
function Details(props) {
|
|
527
524
|
const rid = Math.random().toString(36).slice(2);
|
|
528
525
|
return (h("div", null,
|
|
529
|
-
h("style", { type: "text/css" }, styleString$
|
|
530
|
-
h("span", { class: sheet$
|
|
526
|
+
h("style", { type: "text/css" }, styleString$4),
|
|
527
|
+
h("span", { class: sheet$4.classes.Description },
|
|
531
528
|
h("input", { type: "checkbox", id: "details-" + rid }),
|
|
532
529
|
h("label", { class: "details", htmlFor: "details-" + rid },
|
|
533
530
|
h("sl-icon", { name: "chevron-down" })),
|
|
534
531
|
h("span", { class: "summary", "progress-bar": props.progressBar }, props.content.description))));
|
|
535
532
|
}
|
|
536
533
|
|
|
537
|
-
const Gift
|
|
534
|
+
const Gift = () => {
|
|
538
535
|
return (h("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
539
536
|
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: "#F2C94C" }),
|
|
540
537
|
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" }),
|
|
@@ -542,7 +539,7 @@ const Gift$1 = () => {
|
|
|
542
539
|
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" })));
|
|
543
540
|
};
|
|
544
541
|
|
|
545
|
-
const style$
|
|
542
|
+
const style$5 = {
|
|
546
543
|
ProgressBar: {
|
|
547
544
|
"& .progress-bar": {
|
|
548
545
|
height: "0",
|
|
@@ -651,8 +648,8 @@ const style$1 = {
|
|
|
651
648
|
},
|
|
652
649
|
},
|
|
653
650
|
};
|
|
654
|
-
const sheet$
|
|
655
|
-
const styleString$
|
|
651
|
+
const sheet$5 = createStyleSheet(style$5, { classNamePrefix: "sqm-prog-bar" });
|
|
652
|
+
const styleString$5 = sheet$5.toString();
|
|
656
653
|
function ProgressBarView(props) {
|
|
657
654
|
var _a;
|
|
658
655
|
const { progress = 0, goal = 1, steps = false, progressBarUnit = "", repeatable = false, expired = false, finite = 0, } = props;
|
|
@@ -661,8 +658,8 @@ function ProgressBarView(props) {
|
|
|
661
658
|
//@ts-ignore
|
|
662
659
|
console.log("PROGRESS BAR PROPS " + ((_a = props === null || props === void 0 ? void 0 : props.content) === null || _a === void 0 ? void 0 : _a.cardTitle));
|
|
663
660
|
console.log({ props });
|
|
664
|
-
return (h("div", { class: sheet$
|
|
665
|
-
h("style", { type: "text/css" }, styleString$
|
|
661
|
+
return (h("div", { class: sheet$5.classes.ProgressBar, "data-expired": expired, "data-steps": steps, "data-done": goal <= progress },
|
|
662
|
+
h("style", { type: "text/css" }, styleString$5),
|
|
666
663
|
h("div", { class: (!Boolean(finite) && progress >= 2 * goal) ||
|
|
667
664
|
(Boolean(finite) && progress > 2 * goal)
|
|
668
665
|
? "progress-bar repeatable-steps"
|
|
@@ -713,14 +710,14 @@ function addSteps({ progress, goal }) {
|
|
|
713
710
|
columns.push("0fr");
|
|
714
711
|
items.push(h("div", { class: "filled" }));
|
|
715
712
|
items.push(h("div", { class: "progress bg" }, goal));
|
|
716
|
-
items.push(h("div", { class: "gift" }, h(Gift
|
|
713
|
+
items.push(h("div", { class: "gift" }, h(Gift, null)));
|
|
717
714
|
}
|
|
718
715
|
// reward fail
|
|
719
716
|
else {
|
|
720
717
|
columns.push("0fr");
|
|
721
718
|
items.push(h("div", { class: "remain" }));
|
|
722
719
|
items.push(h("div", { class: "empty bg" }, goal));
|
|
723
|
-
items.push(h("div", { class: "gift bw" }, h(Gift
|
|
720
|
+
items.push(h("div", { class: "gift bw" }, h(Gift, null)));
|
|
724
721
|
}
|
|
725
722
|
return {
|
|
726
723
|
items,
|
|
@@ -740,10 +737,10 @@ function addLinearRepeatable({ progress, goal, progressBarUnit, finite, }) {
|
|
|
740
737
|
items.push(h("div", { class: "remain" }));
|
|
741
738
|
items.push(h("div", { class: "progress bg" }, progressBarUnit + goal));
|
|
742
739
|
items.push(h("div", { class: progress == goal ? "gift" : "gift bw" },
|
|
743
|
-
h(Gift
|
|
740
|
+
h(Gift, null)));
|
|
744
741
|
items.push(h("div", { class: "remain" }));
|
|
745
742
|
items.push(h("div", { class: "progress bg" }, progressBarUnit + goal * 2));
|
|
746
|
-
items.push(h("div", { class: "gift bw" }, h(Gift
|
|
743
|
+
items.push(h("div", { class: "gift bw" }, h(Gift, null)));
|
|
747
744
|
}
|
|
748
745
|
// single repetition
|
|
749
746
|
else if (repetitions == 1) {
|
|
@@ -751,18 +748,18 @@ function addLinearRepeatable({ progress, goal, progressBarUnit, finite, }) {
|
|
|
751
748
|
"0.5fr 0fr 0fr " + ratio + "fr 0fr " + (0.5 - ratio) + "fr 0fr 0fr";
|
|
752
749
|
items.push(h("div", { class: "filled" }));
|
|
753
750
|
items.push(h("div", { class: "progress bg" }, progressBarUnit + goal));
|
|
754
|
-
items.push(h("div", { class: "gift" }, h(Gift
|
|
751
|
+
items.push(h("div", { class: "gift" }, h(Gift, null)));
|
|
755
752
|
items.push(h("div", { class: "filled" }));
|
|
756
753
|
items.push(h("div", { class: progress == goal ? "progress top bg" : "progress top" }, progress == goal ? "" : progressBarUnit + progress));
|
|
757
754
|
items.push(h("div", { class: "remain" }));
|
|
758
755
|
items.push(h("div", { class: "progress bg" }, progressBarUnit + goal * 2));
|
|
759
|
-
items.push(h("div", { class: "gift bw" }, h(Gift
|
|
756
|
+
items.push(h("div", { class: "gift bw" }, h(Gift, null)));
|
|
760
757
|
}
|
|
761
758
|
// finite repetition hit
|
|
762
759
|
else if (finite && repetitions >= finite) {
|
|
763
760
|
if (repetitions > 2) {
|
|
764
761
|
items.push(h("div", { class: "progress bg" }, progressBarUnit + goal * (finite - 2)));
|
|
765
|
-
items.push(h("div", { class: "gift start" }, h(Gift
|
|
762
|
+
items.push(h("div", { class: "gift start" }, h(Gift, null)));
|
|
766
763
|
columns = "0fr 0fr 0.5fr 0fr 0fr 0.5fr 0fr 0fr";
|
|
767
764
|
}
|
|
768
765
|
else {
|
|
@@ -770,10 +767,10 @@ function addLinearRepeatable({ progress, goal, progressBarUnit, finite, }) {
|
|
|
770
767
|
}
|
|
771
768
|
items.push(h("div", { class: "filled" }));
|
|
772
769
|
items.push(h("div", { class: "progress bg" }, progressBarUnit + goal * (finite - 1)));
|
|
773
|
-
items.push(h("div", { class: "gift" }, h(Gift
|
|
770
|
+
items.push(h("div", { class: "gift" }, h(Gift, null)));
|
|
774
771
|
items.push(h("div", { class: "filled" }));
|
|
775
772
|
items.push(h("div", { class: "progress bg" }, progressBarUnit + goal * finite));
|
|
776
|
-
items.push(h("div", { class: "gift" }, h(Gift
|
|
773
|
+
items.push(h("div", { class: "gift" }, h(Gift, null)));
|
|
777
774
|
}
|
|
778
775
|
// multiple repetitions
|
|
779
776
|
else {
|
|
@@ -784,15 +781,15 @@ function addLinearRepeatable({ progress, goal, progressBarUnit, finite, }) {
|
|
|
784
781
|
(0.5 - ratio) +
|
|
785
782
|
"fr 0fr 0fr";
|
|
786
783
|
items.push(h("div", { class: "progress bg" }, progressBarUnit + goal * (repetitions - 1)));
|
|
787
|
-
items.push(h("div", { class: "gift start" }, h(Gift
|
|
784
|
+
items.push(h("div", { class: "gift start" }, h(Gift, null)));
|
|
788
785
|
items.push(h("div", { class: "filled" }));
|
|
789
786
|
items.push(h("div", { class: "progress bg" }, progressBarUnit + goal * repetitions));
|
|
790
|
-
items.push(h("div", { class: "gift" }, h(Gift
|
|
787
|
+
items.push(h("div", { class: "gift" }, h(Gift, null)));
|
|
791
788
|
items.push(h("div", { class: "filled" }));
|
|
792
789
|
items.push(h("div", { class: progress == goal * repetitions ? "progress top bg" : "progress top" }, progress == goal * repetitions ? "" : progressBarUnit + progress));
|
|
793
790
|
items.push(h("div", { class: "remain" }));
|
|
794
791
|
items.push(h("div", { class: "progress bg" }, progressBarUnit + goal * (repetitions + 1)));
|
|
795
|
-
items.push(h("div", { class: "gift bw" }, h(Gift
|
|
792
|
+
items.push(h("div", { class: "gift bw" }, h(Gift, null)));
|
|
796
793
|
}
|
|
797
794
|
return { items, columns };
|
|
798
795
|
}
|
|
@@ -811,14 +808,14 @@ function addStepsRepeatable({ progress, goal, finite, }) {
|
|
|
811
808
|
columns.push("0fr");
|
|
812
809
|
items.push(h("div", { class: "remain" }));
|
|
813
810
|
items.push(h("div", { class: "empty bg" }, goal));
|
|
814
|
-
items.push(h("div", { class: "gift bw" }, h(Gift
|
|
811
|
+
items.push(h("div", { class: "gift bw" }, h(Gift, null)));
|
|
815
812
|
}
|
|
816
813
|
else if (i == goal * 2) {
|
|
817
814
|
columns.push("0fr");
|
|
818
815
|
columns.push("0fr");
|
|
819
816
|
items.push(h("div", { class: "remain" }));
|
|
820
817
|
items.push(h("div", { class: "empty bg" }, goal * 2));
|
|
821
|
-
items.push(h("div", { class: "gift bw" }, h(Gift
|
|
818
|
+
items.push(h("div", { class: "gift bw" }, h(Gift, null)));
|
|
822
819
|
}
|
|
823
820
|
else {
|
|
824
821
|
items.push(h("div", { class: "remain" }));
|
|
@@ -829,7 +826,7 @@ function addStepsRepeatable({ progress, goal, finite, }) {
|
|
|
829
826
|
columns.push("0fr");
|
|
830
827
|
items.push(h("div", { class: "filled" }));
|
|
831
828
|
items.push(h("div", { class: "progress bg" }, i));
|
|
832
|
-
items.push(h("div", { class: "gift" }, h(Gift
|
|
829
|
+
items.push(h("div", { class: "gift" }, h(Gift, null)));
|
|
833
830
|
}
|
|
834
831
|
else {
|
|
835
832
|
items.push(h("div", { class: "filled" }));
|
|
@@ -844,7 +841,7 @@ function addStepsRepeatable({ progress, goal, finite, }) {
|
|
|
844
841
|
columns.push("0fr");
|
|
845
842
|
columns.push("0fr");
|
|
846
843
|
items.push(h("div", { class: "progress bg" }, goal * (finite - 2)));
|
|
847
|
-
items.push(h("div", { class: "gift start" }, h(Gift
|
|
844
|
+
items.push(h("div", { class: "gift start" }, h(Gift, null)));
|
|
848
845
|
}
|
|
849
846
|
for (let i = 1; i < goal * 2 + 1; i++) {
|
|
850
847
|
columns.push(ratio + "fr");
|
|
@@ -854,21 +851,21 @@ function addStepsRepeatable({ progress, goal, finite, }) {
|
|
|
854
851
|
columns.push("0fr");
|
|
855
852
|
items.push(h("div", { class: "remain" }));
|
|
856
853
|
items.push(h("div", { class: "progress bg" }, goal * (finite - 1)));
|
|
857
|
-
items.push(h("div", { class: "gift bw" }, h(Gift
|
|
854
|
+
items.push(h("div", { class: "gift bw" }, h(Gift, null)));
|
|
858
855
|
}
|
|
859
856
|
}
|
|
860
857
|
else if (i == goal) {
|
|
861
858
|
columns.push("0fr");
|
|
862
859
|
items.push(h("div", { class: "filled" }));
|
|
863
860
|
items.push(h("div", { class: "progress bg" }, goal * (finite - 1)));
|
|
864
|
-
items.push(h("div", { class: "gift" }, h(Gift
|
|
861
|
+
items.push(h("div", { class: "gift" }, h(Gift, null)));
|
|
865
862
|
}
|
|
866
863
|
else if (i == goal * 2) {
|
|
867
864
|
columns.push("0fr");
|
|
868
865
|
columns.push("0fr");
|
|
869
866
|
items.push(h("div", { class: "filled" }));
|
|
870
867
|
items.push(h("div", { class: "progress bg" }, goal * finite));
|
|
871
|
-
items.push(h("div", { class: "gift" }, h(Gift
|
|
868
|
+
items.push(h("div", { class: "gift" }, h(Gift, null)));
|
|
872
869
|
}
|
|
873
870
|
else {
|
|
874
871
|
items.push(h("div", { class: "filled" }));
|
|
@@ -883,7 +880,7 @@ function addStepsRepeatable({ progress, goal, finite, }) {
|
|
|
883
880
|
columns.push("0fr");
|
|
884
881
|
columns.push("0fr");
|
|
885
882
|
items.push(h("div", { class: "progress bg" }, goal * (repetitions - 1)));
|
|
886
|
-
items.push(h("div", { class: "gift start" }, h(Gift
|
|
883
|
+
items.push(h("div", { class: "gift start" }, h(Gift, null)));
|
|
887
884
|
for (let i = 1; i < goal * 2 + 1; i++) {
|
|
888
885
|
columns.push(ratio + "fr");
|
|
889
886
|
columns.push("0fr");
|
|
@@ -892,7 +889,7 @@ function addStepsRepeatable({ progress, goal, finite, }) {
|
|
|
892
889
|
columns.push("0fr");
|
|
893
890
|
items.push(h("div", { class: "filled" }));
|
|
894
891
|
items.push(h("div", { class: "progress bg" }, i + goal * (repetitions - 1)));
|
|
895
|
-
items.push(h("div", { class: "gift" }, h(Gift
|
|
892
|
+
items.push(h("div", { class: "gift" }, h(Gift, null)));
|
|
896
893
|
}
|
|
897
894
|
else {
|
|
898
895
|
items.push(h("div", { class: "filled" }));
|
|
@@ -905,7 +902,7 @@ function addStepsRepeatable({ progress, goal, finite, }) {
|
|
|
905
902
|
columns.push("0fr");
|
|
906
903
|
items.push(h("div", { class: "remain" }));
|
|
907
904
|
items.push(h("div", { class: "empty bg" }, i + goal * (repetitions - 1)));
|
|
908
|
-
items.push(h("div", { class: "gift bw" }, h(Gift
|
|
905
|
+
items.push(h("div", { class: "gift bw" }, h(Gift, null)));
|
|
909
906
|
}
|
|
910
907
|
else {
|
|
911
908
|
items.push(h("div", { class: "remain" }));
|
|
@@ -933,7 +930,7 @@ function addLinear({ progress, goal, progressBarUnit, }) {
|
|
|
933
930
|
items.push(h("div", { class: "remain" }));
|
|
934
931
|
items.push(h("div", { class: "progress bg" }, progressBarUnit + goal));
|
|
935
932
|
items.push(h("div", { class: clamp(progress, 0, goal) == goal ? "gift" : "gift bw" },
|
|
936
|
-
h(Gift
|
|
933
|
+
h(Gift, null)));
|
|
937
934
|
return { items, columns };
|
|
938
935
|
}
|
|
939
936
|
function clamp(x, min, max) {
|
|
@@ -954,7 +951,7 @@ const arrow_left_right = () => {
|
|
|
954
951
|
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" })));
|
|
955
952
|
};
|
|
956
953
|
|
|
957
|
-
const style = {
|
|
954
|
+
const style$6 = {
|
|
958
955
|
TaskCard: {
|
|
959
956
|
display: "inline-block",
|
|
960
957
|
width: "100%",
|
|
@@ -1105,8 +1102,8 @@ const style = {
|
|
|
1105
1102
|
},
|
|
1106
1103
|
},
|
|
1107
1104
|
};
|
|
1108
|
-
const sheet = createStyleSheet(style);
|
|
1109
|
-
const styleString = sheet.toString();
|
|
1105
|
+
const sheet$6 = createStyleSheet(style$6);
|
|
1106
|
+
const styleString$6 = sheet$6.toString();
|
|
1110
1107
|
function TaskCardView(props) {
|
|
1111
1108
|
var _a, _b, _c;
|
|
1112
1109
|
console.log("TASK CARD PROPS " + ((_a = props === null || props === void 0 ? void 0 : props.content) === null || _a === void 0 ? void 0 : _a.cardTitle));
|
|
@@ -1144,11 +1141,11 @@ function TaskCardView(props) {
|
|
|
1144
1141
|
margin-bottom: var(--sl-spacing-large);
|
|
1145
1142
|
}
|
|
1146
1143
|
`;
|
|
1147
|
-
return (h("div", { class: sheet.classes.TaskCard },
|
|
1144
|
+
return (h("div", { class: sheet$6.classes.TaskCard },
|
|
1148
1145
|
h("style", { type: "text/css" },
|
|
1149
|
-
styleString,
|
|
1146
|
+
styleString$6,
|
|
1150
1147
|
vanillaStyle),
|
|
1151
|
-
!states.loading && taskNotStarted && (h("div", { class: sheet.classes.NotStarted },
|
|
1148
|
+
!states.loading && taskNotStarted && (h("div", { class: sheet$6.classes.NotStarted },
|
|
1152
1149
|
h("span", { class: "icon" },
|
|
1153
1150
|
h("sl-icon", { name: "info-circle-fill" })),
|
|
1154
1151
|
intl.formatMessage({
|
|
@@ -1159,7 +1156,7 @@ function TaskCardView(props) {
|
|
|
1159
1156
|
.setLocale(luxonLocale(states.locale))
|
|
1160
1157
|
.toLocaleString(luxon.DateTime.DATETIME_MED),
|
|
1161
1158
|
}))),
|
|
1162
|
-
!states.loading && taskEnded && (h("div", { class: sheet.classes.Ended },
|
|
1159
|
+
!states.loading && taskEnded && (h("div", { class: sheet$6.classes.Ended },
|
|
1163
1160
|
h("span", { class: "icon" },
|
|
1164
1161
|
h("sl-icon", { name: "exclamation-triangle-fill" })),
|
|
1165
1162
|
intl.formatMessage({
|
|
@@ -1179,7 +1176,7 @@ function TaskCardView(props) {
|
|
|
1179
1176
|
? "main complete"
|
|
1180
1177
|
: "main" },
|
|
1181
1178
|
h("div", { class: taskComplete || taskUnavailable ? "container subdued" : "container" },
|
|
1182
|
-
h("div", { class: sheet.classes.Header }, states.loading ? (h("sl-skeleton", { style: { width: "22%", margin: "0" } })) : (h("div", null,
|
|
1179
|
+
h("div", { class: sheet$6.classes.Header }, states.loading ? (h("sl-skeleton", { style: { width: "22%", margin: "0" } })) : (h("div", null,
|
|
1183
1180
|
showComplete && (h("span", { class: taskUnavailable ? "icon neutral" : "icon" }, taskComplete ? checkmark_filled$1 : checkmark_circle$1)),
|
|
1184
1181
|
h("span", { class: "value" }, content.rewardAmount),
|
|
1185
1182
|
h("span", { class: "text" }, content.rewardUnit)))),
|
|
@@ -1194,7 +1191,7 @@ function TaskCardView(props) {
|
|
|
1194
1191
|
} }, content.cardTitle)),
|
|
1195
1192
|
states.loading ? (h("sl-skeleton", { style: { margin: "var(--sl-spacing-medium) 0" } })) : (content.description && h(Details, Object.assign({}, props))),
|
|
1196
1193
|
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 })))),
|
|
1197
|
-
h("div", { class: sheet.classes.Footer }, states.loading ? (h("sl-skeleton", { style: { width: "25%", marginLeft: "auto" } })) : (h("div", { style: { display: "contents" } },
|
|
1194
|
+
h("div", { class: sheet$6.classes.Footer }, states.loading ? (h("sl-skeleton", { style: { width: "25%", marginLeft: "auto" } })) : (h("div", { style: { display: "contents" } },
|
|
1198
1195
|
h("span", { class: "text" },
|
|
1199
1196
|
content.repeatable && (h("div", null,
|
|
1200
1197
|
h("span", { class: repetitions > 0
|
|
@@ -1262,7 +1259,7 @@ const CheckMark = () => (h("svg", { width: 12, height: 10, fill: "none", xmlns:
|
|
|
1262
1259
|
const CheckmarkFilled = () => (h("svg", { width: "18", height: "18", viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
1263
1260
|
h("path", { d: "M0 9C0 4.02944 4.02944 0 9 0C13.9706 0 18 4.02944 18 9C18 13.9706 13.9706 18 9 18C4.02944 18 0 13.9706 0 9Z", fill: "currentColor" }),
|
|
1264
1261
|
h("path", { d: "M5.68394 8.77046C5.28103 8.39273 4.64819 8.41315 4.27046 8.81606C3.89273 9.21897 3.91315 9.85181 4.31606 10.2295L5.68394 8.77046ZM7.66667 12L6.98273 12.7295C7.36738 13.0902 7.96595 13.0902 8.35061 12.7295L7.66667 12ZM13.6839 7.72954C14.0869 7.35181 14.1073 6.71897 13.7295 6.31606C13.3518 5.91315 12.719 5.89273 12.3161 6.27046L13.6839 7.72954ZM4.31606 10.2295L6.98273 12.7295L8.35061 11.2705L5.68394 8.77046L4.31606 10.2295ZM8.35061 12.7295L13.6839 7.72954L12.3161 6.27046L6.98273 11.2705L8.35061 12.7295Z", fill: "white" })));
|
|
1265
|
-
const Gift = () => (h("svg", { width: 156, height: 157, fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
1262
|
+
const Gift$1 = () => (h("svg", { width: 156, height: 157, fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
1266
1263
|
h("path", { d: "M40.18 126h83.663a3 3 0 0 0 3-3V73.966a3 3 0 0 0-3-3H40.18a3 3 0 0 0-3 3V123a3 3 0 0 0 3 3Z", fill: "#FFD34F" }),
|
|
1267
1264
|
h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M37.18 73.862v7.966h89.663v-7.966H37.18Z", fill: "#E9BB30" }),
|
|
1268
1265
|
h("path", { d: "M133.039 74.224a2.18 2.18 0 0 0 2.187-2.172v-19.19c0-1.2-.98-2.172-2.187-2.172H31.347a2.18 2.18 0 0 0-2.187 2.172v19.19c0 1.2.98 2.172 2.187 2.172H133.04Z", fill: "#FFC000" }),
|
|
@@ -1786,7 +1783,7 @@ function RewardExchangeView(props) {
|
|
|
1786
1783
|
var _a, _b, _c, _d, _e;
|
|
1787
1784
|
console.log("success");
|
|
1788
1785
|
return (h("div", { class: sheet.classes.Success },
|
|
1789
|
-
h(Gift, null),
|
|
1786
|
+
h(Gift$1, null),
|
|
1790
1787
|
h(Confetti, null),
|
|
1791
1788
|
h("div", { class: "title" }, states.content.text.rewardRedeemedText),
|
|
1792
1789
|
h("div", { class: "description" }, intl.formatMessage({
|
|
@@ -1794,8 +1791,7 @@ function RewardExchangeView(props) {
|
|
|
1794
1791
|
defaultMessage: states.content.text.redemptionSuccessText,
|
|
1795
1792
|
}, {
|
|
1796
1793
|
sourceValue: (_a = states.selectedItem.prettySourceValue) !== null && _a !== void 0 ? _a : (_b = states.selectedStep) === null || _b === void 0 ? void 0 : _b.prettySourceValue,
|
|
1797
|
-
destinationValue: ((_c = states.selectedStep) === null || _c === void 0 ? void 0 : _c.prettyDestinationValue) ||
|
|
1798
|
-
((_d = states.selectedItem) === null || _d === void 0 ? void 0 : _d.name) ||
|
|
1794
|
+
destinationValue: ((_c = states.selectedStep) === null || _c === void 0 ? void 0 : _c.prettyDestinationValue) || ((_d = states.selectedItem) === null || _d === void 0 ? void 0 : _d.name) ||
|
|
1799
1795
|
states.selectedItem.globalRewardKey,
|
|
1800
1796
|
})),
|
|
1801
1797
|
(data === null || data === void 0 ? void 0 : data.fuelTankCode) && (h("div", { style: {
|
|
@@ -1926,7 +1922,7 @@ const lScale = [
|
|
|
1926
1922
|
0.32,
|
|
1927
1923
|
0.25,
|
|
1928
1924
|
0.18,
|
|
1929
|
-
0.15,
|
|
1925
|
+
0.15,
|
|
1930
1926
|
];
|
|
1931
1927
|
// https://github.com/ricokahler/color2k/blob/main/src/parseToRgba.ts
|
|
1932
1928
|
const hslaRegex = /^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { h } from './index-
|
|
1
|
+
import { h } from './index-17b4da69.js';
|
|
2
2
|
import { g as gap } from './mixins-10353a39.js';
|
|
3
|
-
import { c as createStyleSheet } from './JSS-
|
|
3
|
+
import { c as createStyleSheet } from './JSS-96eeab98.js';
|
|
4
4
|
|
|
5
5
|
function GenericTableView(props) {
|
|
6
6
|
const { states, data, callbacks, elements } = props;
|
|
@@ -98,10 +98,9 @@ function GenericTableView(props) {
|
|
|
98
98
|
h("tbody", null,
|
|
99
99
|
show === "loading" && elements.loadingElement,
|
|
100
100
|
show === "empty" && elements.emptyElement,
|
|
101
|
-
show === "rows" &&
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
}, part: "table-row" }, row.map((cell, j) => (h("td", { class: hiddenCols.includes(j) ? "hidden" : "", "data-label": columns[j] + ":" }, cell))))))))),
|
|
101
|
+
show === "rows" && (rows === null || rows === void 0 ? void 0 : rows.map((row, i) => (h("tr", { style: {
|
|
102
|
+
borderTop: `${!data.textOverrides.showLabels && i === 0 ? "none" : ""}`,
|
|
103
|
+
}, part: "table-row" }, row.map((cell, j) => (h("td", { class: hiddenCols.includes(j) ? "hidden" : "", "data-label": columns[j] + ":" }, cell))))))))),
|
|
105
104
|
h("div", { class: sheet.classes.ButtonContainer, part: states.namespace + "-button-wrapper" },
|
|
106
105
|
h("sl-button", { size: "small", disabled: !states.hasPrev, loading: show === "loading", onClick: callbacks.prevPage, exportparts: "base: defaultbutton-base", class: !states.hasPrev ? sheet.classes.ButtonDisabled : "" }, data.textOverrides.prevLabel),
|
|
107
106
|
h("sl-button", { size: "small", loading: show === "loading", disabled: !states.hasNext, onClick: callbacks.nextPage, exportparts: "base: defaultbutton-base", class: !states.hasNext ? sheet.classes.ButtonDisabled : "" }, data.textOverrides.moreLabel))));
|