@saasquatch/mint-components 1.11.1-63 → 1.11.1-65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{GenericTableView-80d7642e.js → GenericTableView-bb2fcd95.js} +2 -2
- package/dist/cjs/{ShadowViewAddon-c3e91cee.js → ShadowViewAddon-d714d857.js} +166 -224
- package/dist/cjs/copy-text-view-bb2d108f.js +229 -0
- package/dist/cjs/{email-registration-view-248652bb.js → email-registration-view-54cedb43.js} +2 -2
- package/dist/cjs/{global-02e50f09.js → global-e067aa06.js} +2 -2
- package/dist/cjs/{index-b0129cd6.js → index-ff72278c.js} +2 -0
- package/dist/cjs/{index.module-df530553.js → index.module-224d7b8d.js} +1 -1
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/{luxon-05098e19.js → luxon-45228ff5.js} +1 -1
- package/dist/cjs/mint-components.cjs.js +5 -5
- package/dist/cjs/{mockRewardData-4258e067.js → mockRewardData-d6be2267.js} +1 -1
- package/dist/cjs/raisins-plop-target.cjs.entry.js +1 -1
- package/dist/cjs/{re-render-1976e05e.js → re-render-cd2f8774.js} +2 -2
- package/dist/cjs/{sqm-asset-card-view-a0e33f21.js → sqm-asset-card-view-30ca5188.js} +1 -1
- package/dist/cjs/sqm-asset-card.cjs.entry.js +5 -5
- package/dist/cjs/sqm-banking-info-form_16.cjs.entry.js +12 -12
- package/dist/cjs/sqm-big-stat_38.cjs.entry.js +17 -16
- package/dist/cjs/{sqm-close-button-view-fd6e8f60.js → sqm-close-button-view-6a709e00.js} +2 -2
- package/dist/cjs/sqm-close-button.cjs.entry.js +5 -5
- package/dist/cjs/sqm-context-router.cjs.entry.js +3 -3
- package/dist/cjs/sqm-empty_4.cjs.entry.js +11 -7
- package/dist/cjs/sqm-form-message.cjs.entry.js +2 -2
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +3 -3
- package/dist/cjs/sqm-header-logo.cjs.entry.js +2 -2
- package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +7 -7
- package/dist/cjs/{sqm-invoice-table-view-e3b03a00.js → sqm-invoice-table-view-2f4f426b.js} +2 -2
- package/dist/cjs/{sqm-leaderboard-rank-view-5a3d4a88.js → sqm-leaderboard-rank-view-317eb84f.js} +1 -1
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +5 -5
- package/dist/cjs/{sqm-logout-current-user-view-c9f18d96.js → sqm-logout-current-user-view-1912b773.js} +1 -1
- package/dist/cjs/sqm-logout-current-user.cjs.entry.js +6 -6
- package/dist/cjs/{sqm-navigation-sidebar-item-view-a125ec5f.js → sqm-navigation-sidebar-item-view-010a81c7.js} +3 -3
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +6 -6
- package/dist/cjs/{sqm-navigation-sidebar-view-921704fb.js → sqm-navigation-sidebar-view-215eba1d.js} +1 -1
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +4 -4
- package/dist/cjs/sqm-pagination_3.cjs.entry.js +389 -0
- package/dist/cjs/sqm-password-field.cjs.entry.js +6 -6
- package/dist/cjs/sqm-popup-container.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-portal-container-view-990a85a3.js → sqm-portal-container-view-976bf0f5.js} +1 -1
- package/dist/cjs/{sqm-portal-email-verification-view-292b5bf4.js → sqm-portal-email-verification-view-f8980d11.js} +4 -4
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +7 -7
- package/dist/cjs/{sqm-portal-forgot-password-view-969c49ed.js → sqm-portal-forgot-password-view-24339191.js} +3 -3
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +6 -6
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-portal-profile-view-fde54e35.js → sqm-portal-profile-view-7c70d7f9.js} +3 -3
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +9 -9
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +3 -3
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +6 -6
- package/dist/cjs/{sqm-portal-reset-password-view-96f329ed.js → sqm-portal-reset-password-view-1b85b8cf.js} +3 -3
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +7 -7
- package/dist/cjs/{sqm-portal-verify-email-view-7ffcc0d4.js → sqm-portal-verify-email-view-cc3c87c3.js} +3 -3
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +7 -7
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +13 -13
- package/dist/cjs/sqm-referred-registration.cjs.entry.js +7 -7
- package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +3 -3
- package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +4 -4
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +12 -12
- package/dist/cjs/sqm-route.cjs.entry.js +1 -1
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +296 -99
- package/dist/cjs/sqm-tab.cjs.entry.js +4 -4
- package/dist/cjs/sqm-tabs.cjs.entry.js +5 -5
- package/dist/cjs/{sqm-text-span-view-e1cd9bd3.js → sqm-text-span-view-38222836.js} +1 -1
- package/dist/cjs/sqm-text-span.cjs.entry.js +3 -3
- package/dist/cjs/{stencil-hooks.module-72742a0b.js → stencil-hooks.module-8f69ed33.js} +1 -1
- package/dist/cjs/{useChildElements-e0d44916.js → useChildElements-176ac928.js} +2 -2
- package/dist/cjs/{useInstantAccessRegistration-bbe746d1.js → useInstantAccessRegistration-151a3f4a.js} +3 -3
- package/dist/cjs/{useReferralTable-a76adb0d.js → useReferralTable-c91d9310.js} +5 -5
- package/dist/cjs/{useRegistrationFormState-876ed65d.js → useRegistrationFormState-49dd9295.js} +2 -2
- package/dist/cjs/{utilities-cec9dd36.js → utilities-719c980a.js} +2 -2
- package/dist/collection/collection-manifest.json +10 -0
- package/dist/collection/components/sqm-coupon-code/sqm-coupon-code.js +1 -1
- package/dist/collection/components/sqm-empty/sqm-empty.js +10 -2
- package/dist/collection/components/sqm-logout-current-user/sqm-logout-current-user.js +1 -1
- package/dist/collection/components/sqm-pagination/Pagination.stories.js +12 -0
- package/dist/collection/components/sqm-pagination/sqm-pagination-view.js +30 -0
- package/dist/collection/components/sqm-pagination/sqm-pagination.js +108 -0
- package/dist/collection/components/sqm-pagination/usePagination.js +29 -0
- package/dist/collection/components/sqm-portal-container/sqm-portal-container.js +0 -4
- package/dist/collection/components/sqm-referral-card/ReferralCard.stories.js +20 -0
- package/dist/collection/components/sqm-referral-code/ReferralCode.stories.js +60 -0
- package/dist/collection/components/sqm-referral-code/sqm-referral-code.js +317 -0
- package/dist/collection/components/sqm-referral-code/useReferralCode.js +62 -0
- package/dist/collection/components/sqm-referral-codes/ReferralCodes.stories.js +65 -0
- package/dist/collection/components/sqm-referral-codes/sqm-referral-codes-view.js +69 -0
- package/dist/collection/components/sqm-referral-codes/sqm-referral-codes.js +219 -0
- package/dist/collection/components/sqm-referral-codes/useReferralCodes.js +129 -0
- package/dist/collection/components/sqm-share-button/useShareButton.js +29 -18
- package/dist/collection/components/sqm-share-code/sqm-share-code.js +1 -1
- package/dist/collection/components/sqm-share-link/sqm-share-link.js +1 -1
- package/dist/collection/components/sqm-share-link/useShareLink.js +11 -4
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +6 -0
- package/dist/collection/components/views/copy-text-view.js +18 -3
- package/dist/collection/stories/Widget.stories.js +5 -0
- package/dist/esm/{GenericTableView-d59d8ab4.js → GenericTableView-706f5b56.js} +2 -2
- package/dist/esm/{ShadowViewAddon-e012b2aa.js → ShadowViewAddon-bc74643a.js} +165 -222
- package/dist/esm/copy-text-view-32aad903.js +223 -0
- package/dist/esm/{email-registration-view-a89a88bf.js → email-registration-view-5ecee6f8.js} +2 -2
- package/dist/esm/{global-04c7d3b5.js → global-701bd5b0.js} +2 -2
- package/dist/esm/{index-17b4da69.js → index-014ddfa3.js} +2 -1
- package/dist/esm/{index.module-def4aec5.js → index.module-5eb0926c.js} +2 -2
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{luxon-7600be8d.js → luxon-12195d94.js} +1 -1
- package/dist/esm/mint-components.js +5 -5
- package/dist/esm/{mockRewardData-0eb6e778.js → mockRewardData-133c20ca.js} +1 -1
- package/dist/esm/raisins-plop-target.entry.js +1 -1
- package/dist/esm/{re-render-12fd274a.js → re-render-b31d83d7.js} +2 -2
- package/dist/esm/{sqm-asset-card-view-9d93fbdd.js → sqm-asset-card-view-da88351a.js} +1 -1
- package/dist/esm/sqm-asset-card.entry.js +5 -5
- package/dist/esm/sqm-banking-info-form_16.entry.js +12 -12
- package/dist/esm/sqm-big-stat_38.entry.js +15 -14
- package/dist/esm/{sqm-close-button-view-dc65b4e3.js → sqm-close-button-view-8058642b.js} +2 -2
- package/dist/esm/sqm-close-button.entry.js +5 -5
- package/dist/esm/sqm-context-router.entry.js +3 -3
- package/dist/esm/sqm-empty_4.entry.js +11 -7
- package/dist/esm/sqm-form-message.entry.js +2 -2
- package/dist/esm/sqm-graphql-client-provider.entry.js +3 -3
- package/dist/esm/sqm-header-logo.entry.js +2 -2
- package/dist/esm/sqm-instant-access-registration.entry.js +7 -7
- package/dist/esm/{sqm-invoice-table-view-6e13a323.js → sqm-invoice-table-view-7d1aa71f.js} +2 -2
- package/dist/esm/{sqm-leaderboard-rank-view-10657658.js → sqm-leaderboard-rank-view-773a586f.js} +1 -1
- package/dist/esm/sqm-leaderboard-rank.entry.js +5 -5
- package/dist/esm/{sqm-logout-current-user-view-2c6122cd.js → sqm-logout-current-user-view-dfcd508a.js} +1 -1
- package/dist/esm/sqm-logout-current-user.entry.js +6 -6
- package/dist/esm/{sqm-navigation-sidebar-item-view-60ef06cc.js → sqm-navigation-sidebar-item-view-9fa7f5ea.js} +3 -3
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +6 -6
- package/dist/esm/{sqm-navigation-sidebar-view-0312e073.js → sqm-navigation-sidebar-view-5f332ea1.js} +1 -1
- package/dist/esm/sqm-navigation-sidebar.entry.js +4 -4
- package/dist/esm/sqm-pagination_3.entry.js +383 -0
- package/dist/esm/sqm-password-field.entry.js +6 -6
- package/dist/esm/sqm-popup-container.entry.js +3 -3
- package/dist/esm/{sqm-portal-container-view-6c582684.js → sqm-portal-container-view-83df005d.js} +1 -1
- package/dist/esm/{sqm-portal-email-verification-view-4307c992.js → sqm-portal-email-verification-view-332e1339.js} +4 -4
- package/dist/esm/sqm-portal-email-verification.entry.js +7 -7
- package/dist/esm/{sqm-portal-forgot-password-view-c2ed8fed.js → sqm-portal-forgot-password-view-8629f753.js} +3 -3
- package/dist/esm/sqm-portal-forgot-password.entry.js +6 -6
- package/dist/esm/sqm-portal-logout.entry.js +3 -3
- package/dist/esm/{sqm-portal-profile-view-ffe955c8.js → sqm-portal-profile-view-847526a2.js} +3 -3
- package/dist/esm/sqm-portal-profile.entry.js +9 -9
- package/dist/esm/sqm-portal-protected-route.entry.js +3 -3
- package/dist/esm/sqm-portal-registration-form.entry.js +6 -6
- package/dist/esm/{sqm-portal-reset-password-view-79a85e02.js → sqm-portal-reset-password-view-865655da.js} +3 -3
- package/dist/esm/sqm-portal-reset-password.entry.js +7 -7
- package/dist/esm/{sqm-portal-verify-email-view-d7ea2c56.js → sqm-portal-verify-email-view-6c60df25.js} +3 -3
- package/dist/esm/sqm-portal-verify-email.entry.js +7 -7
- package/dist/esm/sqm-referral-table_11.entry.js +13 -13
- package/dist/esm/sqm-referred-registration.entry.js +7 -7
- package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +3 -3
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +4 -4
- package/dist/esm/sqm-rewards-table_9.entry.js +12 -12
- package/dist/esm/sqm-route.entry.js +1 -1
- package/dist/esm/sqm-stencilbook.entry.js +283 -86
- package/dist/esm/sqm-tab.entry.js +4 -4
- package/dist/esm/sqm-tabs.entry.js +5 -5
- package/dist/esm/{sqm-text-span-view-8d140661.js → sqm-text-span-view-d6e03f93.js} +1 -1
- package/dist/esm/sqm-text-span.entry.js +3 -3
- package/dist/esm/{stencil-hooks.module-ac12ca1c.js → stencil-hooks.module-576d7f01.js} +1 -1
- package/dist/esm/{useChildElements-32e1bda1.js → useChildElements-ebcfbc19.js} +2 -2
- package/dist/esm/{useInstantAccessRegistration-46b89952.js → useInstantAccessRegistration-7b2ea2bd.js} +3 -3
- package/dist/esm/{useReferralTable-f4de0650.js → useReferralTable-df227f15.js} +5 -5
- package/dist/esm/{useRegistrationFormState-9fc1ac80.js → useRegistrationFormState-faea9402.js} +2 -2
- package/dist/esm/{utilities-3f5bba22.js → utilities-292b61b9.js} +2 -2
- package/dist/esm-es5/{GenericTableView-d59d8ab4.js → GenericTableView-706f5b56.js} +1 -1
- package/dist/esm-es5/ShadowViewAddon-bc74643a.js +1 -0
- package/dist/esm-es5/copy-text-view-32aad903.js +1 -0
- package/dist/esm-es5/{email-registration-view-a89a88bf.js → email-registration-view-5ecee6f8.js} +1 -1
- package/dist/esm-es5/{global-04c7d3b5.js → global-701bd5b0.js} +1 -1
- package/dist/esm-es5/{index-17b4da69.js → index-014ddfa3.js} +1 -1
- package/dist/esm-es5/{index.module-def4aec5.js → index.module-5eb0926c.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{luxon-7600be8d.js → luxon-12195d94.js} +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/{mockRewardData-0eb6e778.js → mockRewardData-133c20ca.js} +1 -1
- package/dist/esm-es5/raisins-plop-target.entry.js +1 -1
- package/dist/esm-es5/{re-render-12fd274a.js → re-render-b31d83d7.js} +1 -1
- package/dist/esm-es5/{sqm-asset-card-view-9d93fbdd.js → sqm-asset-card-view-da88351a.js} +1 -1
- package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
- package/dist/esm-es5/sqm-banking-info-form_16.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_38.entry.js +1 -1
- package/dist/esm-es5/{sqm-close-button-view-dc65b4e3.js → sqm-close-button-view-8058642b.js} +1 -1
- package/dist/esm-es5/sqm-close-button.entry.js +1 -1
- package/dist/esm-es5/sqm-context-router.entry.js +1 -1
- package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
- 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-header-logo.entry.js +1 -1
- package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
- package/dist/esm-es5/{sqm-invoice-table-view-6e13a323.js → sqm-invoice-table-view-7d1aa71f.js} +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank-view-773a586f.js +1 -0
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/{sqm-logout-current-user-view-2c6122cd.js → sqm-logout-current-user-view-dfcd508a.js} +1 -1
- package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-9fa7f5ea.js +1 -0
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/{sqm-navigation-sidebar-view-0312e073.js → sqm-navigation-sidebar-view-5f332ea1.js} +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
- package/dist/esm-es5/sqm-pagination_3.entry.js +1 -0
- 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-6c582684.js → sqm-portal-container-view-83df005d.js} +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-4307c992.js → sqm-portal-email-verification-view-332e1339.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-forgot-password-view-c2ed8fed.js → sqm-portal-forgot-password-view-8629f753.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-ffe955c8.js → sqm-portal-profile-view-847526a2.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-registration-form.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-reset-password-view-79a85e02.js → sqm-portal-reset-password-view-865655da.js} +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-verify-email-view-d7ea2c56.js → sqm-portal-verify-email-view-6c60df25.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-referred-registration.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-column.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-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-tab.entry.js +1 -1
- package/dist/esm-es5/sqm-tabs.entry.js +1 -1
- package/dist/esm-es5/{sqm-text-span-view-8d140661.js → sqm-text-span-view-d6e03f93.js} +1 -1
- package/dist/esm-es5/sqm-text-span.entry.js +1 -1
- package/dist/esm-es5/{stencil-hooks.module-ac12ca1c.js → stencil-hooks.module-576d7f01.js} +1 -1
- package/dist/esm-es5/useChildElements-ebcfbc19.js +1 -0
- package/dist/esm-es5/useInstantAccessRegistration-7b2ea2bd.js +1 -0
- package/dist/esm-es5/{useReferralTable-f4de0650.js → useReferralTable-df227f15.js} +1 -1
- package/dist/esm-es5/useRegistrationFormState-faea9402.js +1 -0
- package/dist/esm-es5/{utilities-3f5bba22.js → utilities-292b61b9.js} +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/{p-fd2c5407.js → p-019506c4.js} +1 -1
- package/dist/mint-components/p-03e2a88c.js +1 -0
- package/dist/mint-components/p-062051ad.entry.js +1 -0
- package/dist/mint-components/{p-c5577dd7.system.js → p-06b8a582.system.js} +1 -1
- package/dist/mint-components/p-099b57de.system.js +1 -0
- package/dist/mint-components/p-0a26adee.js +1 -0
- package/dist/mint-components/{p-a51533cb.system.js → p-0dc18b5c.system.js} +1 -1
- package/dist/mint-components/p-0ebd104c.js +1 -0
- package/dist/mint-components/p-119e24fd.system.entry.js +1 -0
- package/dist/mint-components/{p-41a11a7f.js → p-134424df.js} +1 -1
- package/dist/mint-components/p-146c2a0e.js +1 -0
- package/dist/mint-components/p-16b9efe1.system.js +1 -0
- package/dist/mint-components/{p-2ee2ebba.js → p-195e306e.js} +1 -1
- package/dist/mint-components/{p-251e7567.js → p-1a4e5a3a.js} +1 -1
- package/dist/mint-components/p-1a5f4a13.system.entry.js +1 -0
- package/dist/mint-components/{p-56f14840.entry.js → p-1c45b7d0.entry.js} +1 -1
- package/dist/mint-components/{p-7d5e0645.system.js → p-1e03d640.system.js} +1 -1
- package/dist/mint-components/{p-b370fca8.system.js → p-1e68fa26.system.js} +1 -1
- package/dist/mint-components/p-20c6c73e.entry.js +1 -0
- package/dist/mint-components/{p-ff17b3a4.system.js → p-21d94eab.system.js} +1 -1
- package/dist/mint-components/p-2474c5c6.entry.js +1 -0
- package/dist/mint-components/p-2478ab2e.js +1 -0
- package/dist/mint-components/{p-ce621bcc.js → p-249798d3.js} +1 -1
- package/dist/mint-components/p-25ebf256.system.js +1 -0
- package/dist/mint-components/{p-a9050eb0.entry.js → p-26383fdd.entry.js} +1 -1
- package/dist/mint-components/{p-c1a47137.system.entry.js → p-29952a5b.system.entry.js} +1 -1
- package/dist/mint-components/{p-4f775e84.system.js → p-2be11651.system.js} +1 -1
- package/dist/mint-components/{p-674a64fe.system.js → p-2cb2401d.system.js} +1 -1
- package/dist/mint-components/{p-b4c52c5a.entry.js → p-2d688fe9.entry.js} +2 -2
- package/dist/mint-components/{p-22bb14d0.system.entry.js → p-34a6dea7.system.entry.js} +1 -1
- package/dist/mint-components/{p-86990110.entry.js → p-391b6274.entry.js} +1 -1
- package/dist/mint-components/{p-be4b748a.system.entry.js → p-3973cf23.system.entry.js} +1 -1
- package/dist/mint-components/{p-3ed71bef.system.js → p-3c6bc373.system.js} +1 -1
- package/dist/mint-components/p-3ee0a8af.entry.js +1 -0
- package/dist/mint-components/p-3f03a247.entry.js +13 -0
- package/dist/mint-components/{p-fb93c962.js → p-42390bcc.js} +1 -1
- package/dist/mint-components/{p-e546347e.system.js → p-4531488f.system.js} +1 -1
- package/dist/mint-components/{p-2a414b2e.system.js → p-45d71b2a.system.js} +1 -1
- package/dist/mint-components/{p-4edde470.entry.js → p-45f46e4c.entry.js} +1 -1
- package/dist/mint-components/{p-4ea58025.system.entry.js → p-48a72a05.system.entry.js} +1 -1
- package/dist/mint-components/{p-e5a0c50e.entry.js → p-4be053fb.entry.js} +2 -2
- package/dist/mint-components/{p-b6fc1227.system.entry.js → p-4c1b1914.system.entry.js} +1 -1
- package/dist/mint-components/{p-eba44835.system.entry.js → p-4ef2f4f6.system.entry.js} +1 -1
- package/dist/mint-components/{p-ec41d6a4.entry.js → p-5073b8c9.entry.js} +6 -6
- package/dist/mint-components/{p-bb00db59.js → p-517bcc71.js} +1 -1
- package/dist/mint-components/{p-a7c2ced2.system.entry.js → p-51dba12d.system.entry.js} +1 -1
- package/dist/mint-components/p-53e25b79.entry.js +1 -0
- package/dist/mint-components/{p-ce5afa40.entry.js → p-549139be.entry.js} +1 -1
- package/dist/mint-components/p-57f92fe0.entry.js +1 -0
- package/dist/mint-components/{p-afd366ae.system.entry.js → p-5922cd9e.system.entry.js} +1 -1
- package/dist/mint-components/{p-1b9e6fc6.js → p-59e310c8.js} +1 -1
- package/dist/mint-components/{p-92110eef.entry.js → p-5c70bc39.entry.js} +1 -1
- package/dist/mint-components/p-5dcd7fc9.system.entry.js +1 -0
- package/dist/mint-components/p-5fe660bb.system.entry.js +1 -0
- package/dist/mint-components/{p-64c3217a.js → p-61d5f26e.js} +1 -1
- package/dist/mint-components/p-61e74000.system.entry.js +1 -0
- package/dist/mint-components/{p-28ece826.entry.js → p-62cdc746.entry.js} +1 -1
- package/dist/mint-components/{p-4d233cd4.js → p-65535cf7.js} +1 -1
- package/dist/mint-components/{p-509e29e6.js → p-6568392b.js} +1 -1
- package/dist/mint-components/p-66aca488.entry.js +1 -0
- package/dist/mint-components/{p-8704937c.js → p-66c7b15c.js} +1 -1
- package/dist/mint-components/{p-4df8f1d2.system.js → p-66d9a540.system.js} +1 -1
- package/dist/mint-components/{p-79da7f18.js → p-6d164a9e.js} +1 -1
- package/dist/mint-components/{p-1c857edb.entry.js → p-6dab9a17.entry.js} +2 -2
- package/dist/mint-components/p-6dec87e3.js +52 -0
- package/dist/mint-components/{p-3d4656bb.system.js → p-71e0ca2b.system.js} +1 -1
- package/dist/mint-components/{p-3036cf58.system.js → p-752650b9.system.js} +1 -1
- package/dist/mint-components/{p-32d1d162.entry.js → p-752fd47b.entry.js} +1 -1
- package/dist/mint-components/{p-0d8c53ac.system.js → p-778b3774.system.js} +1 -1
- package/dist/mint-components/{p-f3053c61.js → p-7ae55645.js} +1 -1
- package/dist/mint-components/{p-3f385f47.entry.js → p-7d7084f0.entry.js} +9 -9
- package/dist/mint-components/p-7f43c280.system.entry.js +1 -0
- package/dist/mint-components/{p-370a1a73.system.js → p-81ed0e97.system.js} +1 -1
- package/dist/mint-components/{p-6b5e355c.system.js → p-842cbd05.system.js} +1 -1
- package/dist/mint-components/{p-e3735866.entry.js → p-87113437.entry.js} +2 -2
- package/dist/mint-components/p-8925f3c5.entry.js +1 -0
- package/dist/mint-components/{p-02424350.system.js → p-8b9408e5.system.js} +1 -1
- package/dist/mint-components/{p-a8f7cb95.js → p-8c765c81.js} +1 -1
- package/dist/mint-components/p-9041bce0.entry.js +13 -0
- package/dist/mint-components/{p-a1dba9a1.system.entry.js → p-9a1a4d71.system.entry.js} +1 -1
- package/dist/mint-components/p-9ed09b3a.system.js +1 -0
- package/dist/mint-components/p-9ee50200.entry.js +1 -0
- package/dist/mint-components/{p-6afb4f48.system.entry.js → p-9f9f851d.system.entry.js} +1 -1
- package/dist/mint-components/{p-4e48267b.system.js → p-9fc73ff8.system.js} +1 -1
- package/dist/mint-components/p-a13c83c5.entry.js +1 -0
- package/dist/mint-components/{p-e8dde8f4.system.js → p-a2aed0da.system.js} +1 -1
- package/dist/mint-components/{p-178d2d2e.entry.js → p-a3fdbfed.entry.js} +1 -1
- package/dist/mint-components/{p-fbdf0738.entry.js → p-a4c1b404.entry.js} +1 -1
- package/dist/mint-components/{p-c5d2e4ba.js → p-a9ff5495.js} +1 -1
- package/dist/mint-components/{p-9c310991.system.entry.js → p-af4cce6a.system.entry.js} +1 -1
- package/dist/mint-components/p-b08e9577.entry.js +1 -0
- package/dist/mint-components/{p-ce9e7c98.system.js → p-b210bcc2.system.js} +1 -1
- package/dist/mint-components/p-b3aaeb2f.system.entry.js +1 -0
- package/dist/mint-components/p-b3d193e3.system.entry.js +1 -0
- package/dist/mint-components/{p-770368bc.system.js → p-b3f02315.system.js} +1 -1
- package/dist/mint-components/{p-4502ed11.system.entry.js → p-b4448aec.system.entry.js} +1 -1
- package/dist/mint-components/{p-c8610d0c.js → p-b7705066.js} +1 -1
- package/dist/mint-components/{p-44787d6e.system.js → p-b8230f83.system.js} +1 -1
- package/dist/mint-components/p-bab29c11.entry.js +9 -0
- package/dist/mint-components/p-bd1975cb.system.entry.js +1 -0
- package/dist/mint-components/p-bd5cb4f3.system.js +1 -0
- package/dist/mint-components/{p-35d84041.system.entry.js → p-c134af86.system.entry.js} +1 -1
- package/dist/mint-components/{p-f0806232.system.entry.js → p-c2281e04.system.entry.js} +1 -1
- package/dist/mint-components/{p-5b333fa8.system.entry.js → p-c3188365.system.entry.js} +1 -1
- package/dist/mint-components/{p-8679ed9f.system.entry.js → p-c3b8765c.system.entry.js} +1 -1
- package/dist/mint-components/{p-10685090.js → p-c65f5d44.js} +23 -23
- package/dist/mint-components/{p-733825fa.system.entry.js → p-ca182259.system.entry.js} +1 -1
- package/dist/mint-components/{p-2dd67762.entry.js → p-cc1ffc0c.entry.js} +1 -1
- package/dist/mint-components/{p-e3e16c36.js → p-d25af377.js} +1 -1
- package/dist/mint-components/{p-c84659a3.system.js → p-d2abffc0.system.js} +1 -1
- package/dist/mint-components/p-d8d97ff5.js +1 -0
- package/dist/mint-components/{p-ac1bf045.js → p-e039ce2f.js} +1 -1
- package/dist/mint-components/{p-cf690d55.system.entry.js → p-e1e700b8.system.entry.js} +1 -1
- package/dist/mint-components/{p-fb20eb5e.system.entry.js → p-e3411b86.system.entry.js} +1 -1
- package/dist/mint-components/{p-88aac6a9.system.entry.js → p-e401cb44.system.entry.js} +1 -1
- package/dist/mint-components/{p-ed6ebd60.system.js → p-e479d77e.system.js} +1 -1
- package/dist/mint-components/{p-88a2e66e.system.entry.js → p-e53e95ce.system.entry.js} +1 -1
- package/dist/mint-components/{p-7f088154.entry.js → p-e909906f.entry.js} +1 -1
- package/dist/mint-components/{p-6cef104b.entry.js → p-e92f0fbb.entry.js} +1 -1
- package/dist/mint-components/{p-5d0c9424.js → p-ee343d0b.js} +1 -1
- package/dist/mint-components/{p-ed095674.system.js → p-ee474d4c.system.js} +1 -1
- package/dist/mint-components/{p-7731f793.system.entry.js → p-f246f7dd.system.entry.js} +1 -1
- package/dist/mint-components/{p-c7fd9e16.js → p-f29e62e1.js} +1 -1
- package/dist/mint-components/{p-5cac90e8.system.entry.js → p-f5c3a8cf.system.entry.js} +1 -1
- package/dist/mint-components/{p-b5861974.system.entry.js → p-f6712472.system.entry.js} +1 -1
- package/dist/mint-components/{p-59fe4ad1.system.js → p-f6c279d8.system.js} +1 -1
- package/dist/mint-components/{p-b3b5b4b7.system.entry.js → p-f9564398.system.entry.js} +1 -1
- package/dist/mint-components/{p-1dd69917.system.entry.js → p-f9680769.system.entry.js} +1 -1
- package/dist/mint-components/{p-3223ba7b.entry.js → p-f9b9be03.entry.js} +1 -1
- package/dist/mint-components/{p-eaada4da.js → p-fd04355d.js} +1 -1
- package/dist/mint-components/p-feace4a6.entry.js +1 -0
- package/dist/mint-components/{p-af062c8f.system.entry.js → p-fef83f2a.system.entry.js} +1 -1
- package/dist/mint-components/{p-aad11a68.entry.js → p-ffdb1310.entry.js} +1 -1
- package/dist/types/components/sqm-empty/sqm-empty.d.ts +1 -1
- package/dist/types/components/sqm-pagination/Pagination.stories.d.ts +5 -0
- package/dist/types/components/sqm-pagination/sqm-pagination-view.d.ts +15 -0
- package/dist/types/components/sqm-pagination/sqm-pagination.d.ts +22 -0
- package/dist/types/components/sqm-pagination/usePagination.d.ts +15 -0
- package/dist/types/components/sqm-portal-container/sqm-portal-container.d.ts +0 -1
- package/dist/types/components/sqm-referral-card/ReferralCard.stories.d.ts +1 -0
- package/dist/types/components/sqm-referral-code/ReferralCode.stories.d.ts +18 -0
- package/dist/types/components/sqm-referral-code/sqm-referral-code.d.ts +70 -0
- package/dist/types/components/sqm-referral-code/useReferralCode.d.ts +9 -0
- package/dist/types/components/sqm-referral-codes/ReferralCodes.stories.d.ts +12 -0
- package/dist/types/components/sqm-referral-codes/sqm-referral-codes-view.d.ts +16 -0
- package/dist/types/components/sqm-referral-codes/sqm-referral-codes.d.ts +39 -0
- package/dist/types/components/sqm-referral-codes/useReferralCodes.d.ts +51 -0
- package/dist/types/components/sqm-share-link/useShareLink.d.ts +1 -0
- package/dist/types/components/views/copy-text-view.d.ts +3 -0
- package/dist/types/components.d.ts +213 -3
- package/dist/types/stories/Widget.stories.d.ts +6 -0
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/esm-es5/ShadowViewAddon-e012b2aa.js +0 -1
- package/dist/esm-es5/sqm-leaderboard-rank-view-10657658.js +0 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-60ef06cc.js +0 -1
- package/dist/esm-es5/useChildElements-32e1bda1.js +0 -1
- package/dist/esm-es5/useInstantAccessRegistration-46b89952.js +0 -1
- package/dist/esm-es5/useRegistrationFormState-9fc1ac80.js +0 -1
- package/dist/mint-components/p-021a735d.entry.js +0 -1
- package/dist/mint-components/p-03494732.entry.js +0 -1
- package/dist/mint-components/p-07f675ab.system.entry.js +0 -1
- package/dist/mint-components/p-0a898ab1.js +0 -1
- package/dist/mint-components/p-0b9fa97f.js +0 -1
- package/dist/mint-components/p-10e89d0a.entry.js +0 -1
- package/dist/mint-components/p-137ea86e.entry.js +0 -1
- package/dist/mint-components/p-3ec16698.entry.js +0 -13
- package/dist/mint-components/p-51f517a2.js +0 -1
- package/dist/mint-components/p-58ef25d3.system.entry.js +0 -1
- package/dist/mint-components/p-5be235f9.entry.js +0 -1
- package/dist/mint-components/p-5f1c4160.system.entry.js +0 -1
- package/dist/mint-components/p-61eab172.js +0 -1
- package/dist/mint-components/p-639d3dd3.entry.js +0 -1
- package/dist/mint-components/p-711ba77e.system.entry.js +0 -1
- package/dist/mint-components/p-76b2506e.system.entry.js +0 -1
- package/dist/mint-components/p-79191f88.entry.js +0 -1
- package/dist/mint-components/p-8b5b78ca.entry.js +0 -1
- package/dist/mint-components/p-8e907ac7.system.entry.js +0 -1
- package/dist/mint-components/p-91669312.entry.js +0 -1
- package/dist/mint-components/p-95771f79.system.js +0 -1
- package/dist/mint-components/p-9dcfa187.system.js +0 -1
- package/dist/mint-components/p-9df2fe24.entry.js +0 -9
- package/dist/mint-components/p-9f0629ba.system.entry.js +0 -1
- package/dist/mint-components/p-a6a7dcaa.js +0 -1
- package/dist/mint-components/p-c8878e79.entry.js +0 -1
- package/dist/mint-components/p-d495896f.system.entry.js +0 -1
- package/dist/mint-components/p-d49e2f7a.js +0 -1
- package/dist/mint-components/p-d8d2de11.entry.js +0 -1
- package/dist/mint-components/p-dd0d79bf.entry.js +0 -1
- package/dist/mint-components/p-dd7ee007.system.js +0 -1
- package/dist/mint-components/p-ed17e637.system.js +0 -1
- package/dist/types/global/android.d.ts +0 -7
- package/dist/types/global/demo.d.ts +0 -2
- package/dist/types/stories/features.d.ts +0 -4
- package/dist/types/stories/templates.d.ts +0 -4
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { h, c as Host, d as getAssetPath, g as getElement } from './index-
|
|
2
|
-
import { k as useState, b as browser, u as useMemo } from './stencil-hooks.module-
|
|
3
|
-
import { i as intl } from './global-
|
|
4
|
-
import { d as dist, H, Q, y as yn,
|
|
1
|
+
import { h, c as Host, d as getAssetPath, g as getElement } from './index-014ddfa3.js';
|
|
2
|
+
import { k as useState, b as browser, u as useMemo } from './stencil-hooks.module-576d7f01.js';
|
|
3
|
+
import { i as intl } from './global-701bd5b0.js';
|
|
4
|
+
import { d as dist, H, Q, I as In, y as yn, $ as $e, B, a as getEnvironmentSDK, L } from './index.module-5eb0926c.js';
|
|
5
|
+
import { l as luxonLocale } from './utils-334c1e34.js';
|
|
6
|
+
import { c as createStyleSheet, j as jss, a as create } from './JSS-67b5cff8.js';
|
|
7
|
+
import { a as REFERRAL_CODES_NAMESPACE, S as SET_CODE_COPIED, C as CopyTextView } from './copy-text-view-32aad903.js';
|
|
5
8
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
9
|
import { H as HostBlock, A as AuthWrapper, a as AuthColumn, b as AuthButtonsContainer, E as ErrorStyles } from './mixins-f60a614c.js';
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { l as luxonLocale } from './utils-334c1e34.js';
|
|
11
|
-
import { T as TextSpanView } from './sqm-text-span-view-8d140661.js';
|
|
10
|
+
import { u as useChildElements } from './useChildElements-ebcfbc19.js';
|
|
11
|
+
import { l as luxon } from './luxon-12195d94.js';
|
|
12
|
+
import { T as TextSpanView } from './sqm-text-span-view-d6e03f93.js';
|
|
12
13
|
import { p as pathToRegexp } from './index-ffa26b43.js';
|
|
13
|
-
import { a as isValidColor, b as isMobile } from './utilities-
|
|
14
|
-
import { a as PortalSectionView, P as PortalContainerView } from './sqm-portal-container-view-
|
|
14
|
+
import { a as isValidColor, b as isMobile } from './utilities-292b61b9.js';
|
|
15
|
+
import { a as PortalSectionView, P as PortalContainerView } from './sqm-portal-container-view-83df005d.js';
|
|
15
16
|
|
|
16
17
|
const medium = {
|
|
17
18
|
facebook: { color: "#1877f2", text: "#fff", icon: "facebook" },
|
|
@@ -216,80 +217,6 @@ function LeaderboardView(props) {
|
|
|
216
217
|
h("td", { class: "Score" }, ((_c = data.viewerRank) === null || _c === void 0 ? void 0 : _c.textValue) || "0"))))));
|
|
217
218
|
}
|
|
218
219
|
|
|
219
|
-
const style$2 = {
|
|
220
|
-
HostBlock: HostBlock,
|
|
221
|
-
inputStyle: {
|
|
222
|
-
"&::part(input)": { textOverflow: "ellipsis", width: "100%" },
|
|
223
|
-
"&::part(base)": { cursor: "pointer", overflow: "visible" },
|
|
224
|
-
width: "100%",
|
|
225
|
-
},
|
|
226
|
-
inputErrorStyle: {
|
|
227
|
-
"&::part(base)": {
|
|
228
|
-
border: "2px solid red",
|
|
229
|
-
},
|
|
230
|
-
},
|
|
231
|
-
containerStyle: {
|
|
232
|
-
display: "flex",
|
|
233
|
-
alignItems: "center",
|
|
234
|
-
gap: "var(--sl-spacing-x-small)",
|
|
235
|
-
width: "100%",
|
|
236
|
-
},
|
|
237
|
-
errorTextStyle: {
|
|
238
|
-
margin: "0",
|
|
239
|
-
color: "var(--sl-color-danger-500)",
|
|
240
|
-
},
|
|
241
|
-
};
|
|
242
|
-
const vanillaStyle$1 = `
|
|
243
|
-
:host{
|
|
244
|
-
display: block;
|
|
245
|
-
width: 100%;
|
|
246
|
-
}
|
|
247
|
-
`;
|
|
248
|
-
const textAlignStyle = {
|
|
249
|
-
right: `
|
|
250
|
-
sl-input::part(input){
|
|
251
|
-
text-align: right;
|
|
252
|
-
}`,
|
|
253
|
-
center: `
|
|
254
|
-
sl-input::part(input){
|
|
255
|
-
text-align: center;
|
|
256
|
-
}`,
|
|
257
|
-
left: ``,
|
|
258
|
-
};
|
|
259
|
-
const disabledStyles = `
|
|
260
|
-
sl-input::part(input){
|
|
261
|
-
cursor: default;
|
|
262
|
-
}
|
|
263
|
-
`;
|
|
264
|
-
const sheet$2 = createStyleSheet(style$2);
|
|
265
|
-
const styleString$2 = sheet$2.toString();
|
|
266
|
-
function CopyTextView(props) {
|
|
267
|
-
const { buttonStyle = "icon" } = props;
|
|
268
|
-
const error = !props.loading && props.error;
|
|
269
|
-
const inputText = error ? props.inputPlaceholderText : props.copyString;
|
|
270
|
-
const disabled = error || props.loading || props.disabled;
|
|
271
|
-
const tooltipPlacement = props.buttonStyle === "button-below"
|
|
272
|
-
? "bottom"
|
|
273
|
-
: props.buttonStyle === "button-outside"
|
|
274
|
-
? "top"
|
|
275
|
-
: "top-end";
|
|
276
|
-
const copyButton = (h("sl-tooltip", { trigger: "manual", content: props.tooltiptext, placement: tooltipPlacement, disabled: props.disabled, open: props.open, skidding: props.buttonStyle === "icon" ? -5 : 0, slot: "suffix" }, buttonStyle === "icon" ? (h("sl-icon-button", { exportparts: "base: icon-button-base", onClick: () => { var _a; return (_a = props.onClick) === null || _a === void 0 ? void 0 : _a.call(props); }, name: "files", disabled: disabled })) : (h("sl-button", { exportparts: "base: copy-button-base", onClick: () => { var _a; return (_a = props.onClick) === null || _a === void 0 ? void 0 : _a.call(props); }, size: "medium", style: { width: `${buttonStyle === "button-below" && "100%"}` }, disabled: disabled, type: "primary" }, props.copyButtonLabel || "Copy"))));
|
|
277
|
-
return (h("div", null,
|
|
278
|
-
h("style", { type: "text/css" },
|
|
279
|
-
styleString$2,
|
|
280
|
-
vanillaStyle$1,
|
|
281
|
-
textAlignStyle[props.textAlign],
|
|
282
|
-
disabled && disabledStyles),
|
|
283
|
-
h("div", { class: sheet$2.classes.containerStyle, style: {
|
|
284
|
-
flexDirection: `${buttonStyle === "button-below" ? "column" : "row"}`,
|
|
285
|
-
} },
|
|
286
|
-
h("sl-input", { class: `${sheet$2.classes.inputStyle} ${error ? sheet$2.classes.inputErrorStyle : ""}`, exportparts: "base: input-base, input: input-label", value: props.loading ? "Loading..." : inputText, readonly: true, disabled: disabled },
|
|
287
|
-
buttonStyle === "icon" && copyButton,
|
|
288
|
-
error && (h("p", { slot: "help-text", class: sheet$2.classes.errorTextStyle }, props.errorText))),
|
|
289
|
-
(buttonStyle === "button-outside" || buttonStyle === "button-below") &&
|
|
290
|
-
copyButton)));
|
|
291
|
-
}
|
|
292
|
-
|
|
293
220
|
function BigStatView(props) {
|
|
294
221
|
const { statvalue, flexReverse, alignment } = props;
|
|
295
222
|
// Dependent on props, not feasiable to move out
|
|
@@ -325,7 +252,7 @@ function BigStatView(props) {
|
|
|
325
252
|
h("div", { part: "stat-description", class: sheet.classes.Description }, props.labelSlot)));
|
|
326
253
|
}
|
|
327
254
|
|
|
328
|
-
const style$
|
|
255
|
+
const style$2 = {
|
|
329
256
|
HostBlock: HostBlock,
|
|
330
257
|
Frame: {
|
|
331
258
|
display: "flex",
|
|
@@ -359,17 +286,17 @@ const style$3 = {
|
|
|
359
286
|
},
|
|
360
287
|
},
|
|
361
288
|
};
|
|
362
|
-
const sheet$
|
|
363
|
-
const styleString$
|
|
289
|
+
const sheet$2 = createStyleSheet(style$2);
|
|
290
|
+
const styleString$2 = sheet$2.toString();
|
|
364
291
|
function PortalFrameView(props, children) {
|
|
365
292
|
const { data, notFullScreen } = props;
|
|
366
|
-
return (h("div", { style: { minHeight: notFullScreen ? "100%" : "100vh" }, class: sheet$
|
|
367
|
-
h("style", { type: "text/css" }, styleString$
|
|
368
|
-
h("div", { class: sheet$
|
|
293
|
+
return (h("div", { style: { minHeight: notFullScreen ? "100%" : "100vh" }, class: sheet$2.classes.Frame, part: "sqm-base" },
|
|
294
|
+
h("style", { type: "text/css" }, styleString$2),
|
|
295
|
+
h("div", { class: sheet$2.classes.HeaderWrapper, part: "sqm-header" },
|
|
369
296
|
data.header,
|
|
370
297
|
h("slot", { name: "sqm-navigation-menu" })),
|
|
371
298
|
children,
|
|
372
|
-
h("div", { class: sheet$
|
|
299
|
+
h("div", { class: sheet$2.classes.FooterWrapper, part: "sqm-footer" }, data.footer)));
|
|
373
300
|
}
|
|
374
301
|
|
|
375
302
|
const EditProfileView = (props) => {
|
|
@@ -449,13 +376,19 @@ function useShareLink(props) {
|
|
|
449
376
|
const { programId = H() } = props;
|
|
450
377
|
const user = Q();
|
|
451
378
|
const engagementMedium = B();
|
|
452
|
-
const
|
|
379
|
+
const contextData = In(REFERRAL_CODES_NAMESPACE);
|
|
380
|
+
const { data } = yn(MessageLinkQuery, { programId, engagementMedium }, !(user === null || user === void 0 ? void 0 : user.jwt) || !!props.linkOverride || (contextData === null || contextData === void 0 ? void 0 : contextData.shareLink) !== undefined);
|
|
453
381
|
const [sendLoadEvent] = $e(WIDGET_ENGAGEMENT_EVENT);
|
|
454
|
-
const
|
|
382
|
+
const [setCopied, copiedRes] = $e(SET_CODE_COPIED);
|
|
383
|
+
const copyString = (_b = ((contextData === null || contextData === void 0 ? void 0 : contextData.shareLink) || ((_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.shareLink))) !== null && _b !== void 0 ? _b :
|
|
455
384
|
// Shown during loading
|
|
456
385
|
"...";
|
|
457
386
|
const [open, setOpen] = useState(false);
|
|
458
|
-
function onClick() {
|
|
387
|
+
async function onClick() {
|
|
388
|
+
if (contextData) {
|
|
389
|
+
await setCopied({ referralCode: contextData.referralCode });
|
|
390
|
+
contextData.refresh();
|
|
391
|
+
}
|
|
459
392
|
// Should well supported: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
|
|
460
393
|
// Only if called from a user-initiated event
|
|
461
394
|
navigator.clipboard.writeText(copyString);
|
|
@@ -514,54 +447,64 @@ function NativeShare(props, directLink, undefinedErrorText, unsupportedPlatformT
|
|
|
514
447
|
alert(unsupportedPlatformText);
|
|
515
448
|
}
|
|
516
449
|
}
|
|
517
|
-
function FacebookShare(directLink,
|
|
518
|
-
|
|
519
|
-
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.messageLink) === "undefined" ||
|
|
520
|
-
directLink === "undefined") {
|
|
450
|
+
function FacebookShare(directLink, messageLink, errorText) {
|
|
451
|
+
if (messageLink === "undefined" || directLink === "undefined") {
|
|
521
452
|
return alert(errorText);
|
|
522
453
|
}
|
|
523
454
|
if (typeof SquatchAndroid.shareOnFacebook !== "undefined") {
|
|
524
|
-
return SquatchAndroid.shareOnFacebook(directLink,
|
|
455
|
+
return SquatchAndroid.shareOnFacebook(directLink, messageLink);
|
|
525
456
|
}
|
|
526
457
|
else {
|
|
527
|
-
return GenericShare(
|
|
458
|
+
return GenericShare(messageLink, errorText);
|
|
528
459
|
}
|
|
529
460
|
}
|
|
530
|
-
function GenericShare(
|
|
531
|
-
|
|
532
|
-
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)
|
|
533
|
-
: alert(errorText);
|
|
461
|
+
function GenericShare(messageLink, errorText) {
|
|
462
|
+
return messageLink ? window.open(messageLink) : alert(errorText);
|
|
534
463
|
}
|
|
535
464
|
function useShareButton(props) {
|
|
536
465
|
var _a, _b;
|
|
537
466
|
const { sharetitle, sharetext, medium } = props;
|
|
538
467
|
const programId = props.programId ? props.programId : H();
|
|
539
468
|
const user = Q();
|
|
469
|
+
const engagementMedium = B();
|
|
540
470
|
const variables = {
|
|
541
|
-
engagementMedium
|
|
471
|
+
engagementMedium,
|
|
542
472
|
programId: programId,
|
|
543
473
|
shareMedium: medium.toUpperCase(),
|
|
544
474
|
};
|
|
475
|
+
const contextData = In(REFERRAL_CODES_NAMESPACE);
|
|
476
|
+
const overrideData = contextData === null || contextData === void 0 ? void 0 : contextData[medium];
|
|
545
477
|
// only queries if a programId is available
|
|
546
|
-
const res = yn(MessageLinkQuery$1, variables, !(user === null || user === void 0 ? void 0 : user.jwt) || !programId);
|
|
547
|
-
const
|
|
478
|
+
const res = yn(MessageLinkQuery$1, variables, !(user === null || user === void 0 ? void 0 : user.jwt) || !programId || overrideData !== undefined);
|
|
479
|
+
const [setCopied, copiedRes] = $e(SET_CODE_COPIED);
|
|
480
|
+
const directLink = (overrideData === null || overrideData === void 0 ? void 0 : overrideData.shareLink) || ((_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);
|
|
548
481
|
const environment = getEnvironmentSDK();
|
|
549
482
|
const hide = (medium.toLocaleUpperCase() === "SMS" &&
|
|
550
483
|
window.orientation === undefined) ||
|
|
551
484
|
(medium.toLocaleUpperCase() === "DIRECT" && !window.navigator.share);
|
|
552
|
-
function onClick() {
|
|
485
|
+
async function onClick() {
|
|
486
|
+
var _a, _b, _c, _d;
|
|
487
|
+
if (overrideData) {
|
|
488
|
+
await setCopied({ referralCode: contextData.referralCode });
|
|
489
|
+
contextData.refresh();
|
|
490
|
+
}
|
|
553
491
|
if (medium.toLocaleUpperCase() === "FACEBOOK" &&
|
|
554
492
|
environment.type === "SquatchAndroid") {
|
|
555
|
-
FacebookShare(directLink, res, props.errorText);
|
|
493
|
+
FacebookShare(directLink, (overrideData === null || overrideData === void 0 ? void 0 : overrideData.messageLink) || ((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.messageLink), props.errorText);
|
|
556
494
|
}
|
|
557
495
|
else if (medium.toLocaleUpperCase() === "DIRECT") {
|
|
558
496
|
NativeShare({ sharetitle, sharetext }, directLink, props.errorText, props.unsupportedPlatformText);
|
|
559
497
|
}
|
|
560
498
|
else {
|
|
561
|
-
GenericShare(res, props.errorText);
|
|
499
|
+
GenericShare((overrideData === null || overrideData === void 0 ? void 0 : overrideData.messageLink) || ((_d = (_c = res.data) === null || _c === void 0 ? void 0 : _c.viewer) === null || _d === void 0 ? void 0 : _d.messageLink), props.errorText);
|
|
562
500
|
}
|
|
563
501
|
}
|
|
564
|
-
return {
|
|
502
|
+
return {
|
|
503
|
+
...props,
|
|
504
|
+
loading: res.loading && !(overrideData === null || overrideData === void 0 ? void 0 : overrideData.messageLink),
|
|
505
|
+
onClick,
|
|
506
|
+
hide,
|
|
507
|
+
};
|
|
565
508
|
}
|
|
566
509
|
|
|
567
510
|
const debug = browser("sq:useBigStat");
|
|
@@ -1634,7 +1577,7 @@ function PortalChangePasswordView(props) {
|
|
|
1634
1577
|
h("style", { type: "text/css" }, styleString))));
|
|
1635
1578
|
}
|
|
1636
1579
|
|
|
1637
|
-
const style$
|
|
1580
|
+
const style$3 = {
|
|
1638
1581
|
Wrapper: AuthWrapper,
|
|
1639
1582
|
Column: AuthColumn,
|
|
1640
1583
|
ForgotButtonContainer: {
|
|
@@ -1647,7 +1590,7 @@ const style$4 = {
|
|
|
1647
1590
|
},
|
|
1648
1591
|
ButtonsContainer: AuthButtonsContainer,
|
|
1649
1592
|
};
|
|
1650
|
-
const vanillaStyle$
|
|
1593
|
+
const vanillaStyle$1 = `
|
|
1651
1594
|
:host {
|
|
1652
1595
|
display: block;
|
|
1653
1596
|
}
|
|
@@ -1655,28 +1598,28 @@ const vanillaStyle$2 = `
|
|
|
1655
1598
|
display: none;
|
|
1656
1599
|
}
|
|
1657
1600
|
`;
|
|
1658
|
-
const sheet$
|
|
1659
|
-
const styleString$
|
|
1601
|
+
const sheet$3 = createStyleSheet(style$3);
|
|
1602
|
+
const styleString$3 = sheet$3.toString();
|
|
1660
1603
|
function PortalLoginView(props) {
|
|
1661
1604
|
const { states, callbacks, content } = props;
|
|
1662
|
-
return (h("div", { class: sheet$
|
|
1605
|
+
return (h("div", { class: sheet$3.classes.Wrapper, part: "sqm-base" },
|
|
1663
1606
|
h("style", { type: "text/css" },
|
|
1664
|
-
vanillaStyle$
|
|
1665
|
-
styleString$
|
|
1607
|
+
vanillaStyle$1,
|
|
1608
|
+
styleString$3),
|
|
1666
1609
|
h(TextSpanView, { type: "h3" }, content.pageLabel),
|
|
1667
|
-
h("sl-form", { class: sheet$
|
|
1610
|
+
h("sl-form", { class: sheet$3.classes.Column, "onSl-submit": callbacks.submit },
|
|
1668
1611
|
props.states.error && (h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
|
|
1669
1612
|
h("div", { part: "erroralert-text" }, props.states.error))),
|
|
1670
1613
|
h("sl-input", { exportparts: "label: input-label, base: input-base", type: "email", name: "/email", label: content.emailLabel || "Email", disabled: states.loading, required: true }),
|
|
1671
1614
|
h("div", null,
|
|
1672
1615
|
h("sl-input", { exportparts: "label: input-label, base: input-base", type: "password", name: "/password", label: content.passwordLabel || "Password", disabled: states.loading, required: true }),
|
|
1673
|
-
h("div", { class: sheet$
|
|
1674
|
-
h("div", { class: sheet$
|
|
1616
|
+
h("div", { class: sheet$3.classes.ForgotButtonContainer }, content.forgotPasswordButton)),
|
|
1617
|
+
h("div", { class: sheet$3.classes.ButtonsContainer },
|
|
1675
1618
|
h("sl-button", { submit: true, loading: states.loading, exportparts: "base: primarybutton-base", type: "primary" }, content.submitLabel || "Login"),
|
|
1676
1619
|
content.secondaryButton))));
|
|
1677
1620
|
}
|
|
1678
1621
|
|
|
1679
|
-
const style$
|
|
1622
|
+
const style$4 = {
|
|
1680
1623
|
Wrapper: { ...AuthWrapper, "max-width": "600px" },
|
|
1681
1624
|
Column: AuthColumn,
|
|
1682
1625
|
HostBlock: HostBlock,
|
|
@@ -1687,7 +1630,7 @@ const style$5 = {
|
|
|
1687
1630
|
ButtonsContainer: AuthButtonsContainer,
|
|
1688
1631
|
ErrorStyle: ErrorStyles,
|
|
1689
1632
|
};
|
|
1690
|
-
const vanillaStyle$
|
|
1633
|
+
const vanillaStyle$2 = `
|
|
1691
1634
|
sqm-portal-register {
|
|
1692
1635
|
margin: 0 auto;
|
|
1693
1636
|
width: 100%;
|
|
@@ -1702,20 +1645,20 @@ sqm-portal-register {
|
|
|
1702
1645
|
display: none;
|
|
1703
1646
|
}
|
|
1704
1647
|
`;
|
|
1705
|
-
const sheet$
|
|
1706
|
-
const styleString$
|
|
1648
|
+
const sheet$4 = createStyleSheet(style$4);
|
|
1649
|
+
const styleString$4 = sheet$4.toString();
|
|
1707
1650
|
function PortalRegisterView(props) {
|
|
1708
1651
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1709
1652
|
const { states, refs, callbacks, content } = props;
|
|
1710
1653
|
if (states.error) {
|
|
1711
1654
|
window.scrollTo({ top: 0, left: 0, behavior: "smooth" });
|
|
1712
1655
|
}
|
|
1713
|
-
return (h("div", { class: sheet$
|
|
1656
|
+
return (h("div", { class: sheet$4.classes.Wrapper, part: "sqm-base" },
|
|
1714
1657
|
h("style", { type: "text/css" },
|
|
1715
|
-
vanillaStyle$
|
|
1716
|
-
styleString$
|
|
1658
|
+
vanillaStyle$2,
|
|
1659
|
+
styleString$4),
|
|
1717
1660
|
h(TextSpanView, { type: "h3" }, content.pageLabel),
|
|
1718
|
-
h("sl-form", { class: sheet$
|
|
1661
|
+
h("sl-form", { class: sheet$4.classes.Column, "onSl-submit": callbacks.submit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
1719
1662
|
states.error && (h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
|
|
1720
1663
|
h("div", { part: "erroralert-text" }, props.states.error))),
|
|
1721
1664
|
content.formData,
|
|
@@ -1728,7 +1671,7 @@ function PortalRegisterView(props) {
|
|
|
1728
1671
|
return content.invalidEmailErrorMessage;
|
|
1729
1672
|
}
|
|
1730
1673
|
} }, (((_b = (_a = states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors) === null || _b === void 0 ? void 0 : _b.email) ? {
|
|
1731
|
-
class: sheet$
|
|
1674
|
+
class: sheet$4.classes.ErrorStyle,
|
|
1732
1675
|
helpText: ((_d = (_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.validationErrors) === null || _d === void 0 ? void 0 : _d.email) ||
|
|
1733
1676
|
content.requiredFieldErrorMessage,
|
|
1734
1677
|
}
|
|
@@ -1736,17 +1679,17 @@ function PortalRegisterView(props) {
|
|
|
1736
1679
|
!states.hideInputs && (h("sqm-password-field", { fieldLabel: content.passwordLabel, "disable-validation": states.disablePasswordValidation, meetsRequirementsText: content.meetsRequirementsText, doesNotMeetRequirementsText: content.doesNotMeetRequirementsText, minErrorText: content.minErrorText, uppercaseErrorText: content.uppercaseErrorText, lowercaseErrorText: content.lowercaseErrorText, hasErrorText: content.hasErrorText })),
|
|
1737
1680
|
content.passwordField,
|
|
1738
1681
|
!states.hideInputs && states.confirmPassword && (h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", type: "password", name: "/confirmPassword", label: content.confirmPasswordLabel, disabled: states.loading, required: true }, (((_f = (_e = states.registrationFormState) === null || _e === void 0 ? void 0 : _e.validationErrors) === null || _f === void 0 ? void 0 : _f.confirmPassword) ? {
|
|
1739
|
-
class: sheet$
|
|
1682
|
+
class: sheet$4.classes.ErrorStyle,
|
|
1740
1683
|
helpText: ((_h = (_g = states.registrationFormState) === null || _g === void 0 ? void 0 : _g.validationErrors) === null || _h === void 0 ? void 0 : _h.confirmPassword) || content.requiredFieldErrorMessage,
|
|
1741
1684
|
}
|
|
1742
1685
|
: [])))),
|
|
1743
1686
|
content.terms,
|
|
1744
|
-
h("div", { class: sheet$
|
|
1687
|
+
h("div", { class: sheet$4.classes.ButtonsContainer },
|
|
1745
1688
|
h("sl-button", { submit: true, loading: states.loading, exportparts: "base: primarybutton-base", type: "primary" }, content.submitLabel || "Register"),
|
|
1746
1689
|
content.secondaryButton))));
|
|
1747
1690
|
}
|
|
1748
1691
|
|
|
1749
|
-
const style$
|
|
1692
|
+
const style$5 = {
|
|
1750
1693
|
Description: {
|
|
1751
1694
|
"& input[type=checkbox]": {
|
|
1752
1695
|
display: "none",
|
|
@@ -1785,13 +1728,13 @@ const style$6 = {
|
|
|
1785
1728
|
},
|
|
1786
1729
|
},
|
|
1787
1730
|
};
|
|
1788
|
-
const sheet$
|
|
1789
|
-
const styleString$
|
|
1731
|
+
const sheet$5 = createStyleSheet(style$5);
|
|
1732
|
+
const styleString$5 = sheet$5.toString();
|
|
1790
1733
|
function Details(props) {
|
|
1791
1734
|
const rid = Math.random().toString(36).slice(2);
|
|
1792
1735
|
return (h("div", { style: { opacity: props.opacity } },
|
|
1793
|
-
h("style", { type: "text/css" }, styleString$
|
|
1794
|
-
h("span", { class: sheet$
|
|
1736
|
+
h("style", { type: "text/css" }, styleString$5),
|
|
1737
|
+
h("span", { class: sheet$5.classes.Description },
|
|
1795
1738
|
h("input", { type: "checkbox", id: "details-" + rid }),
|
|
1796
1739
|
h("label", { class: "details", htmlFor: "details-" + rid },
|
|
1797
1740
|
h("sl-icon", { exportparts: "base: chevron-icon", name: "chevron-down" })),
|
|
@@ -1813,7 +1756,7 @@ const GreyGift = () => {
|
|
|
1813
1756
|
h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M14 2.70949C14 3.59565 12.6694 4.93746 12 5H9V16H7.00179V5H4.58792C3.21247 4.70182 2 3.64537 2 2.52072C2 1.42474 2.47603 0.556701 3.34184 0.182041C4.16921 -0.175986 5.12452 0.0203328 5.87976 0.544666C6.80676 1.18825 7.32679 2.3963 7.79856 3.49226C7.83996 3.58845 7.88099 3.68378 7.9219 3.77778C7.96173 3.68865 8.00186 3.59793 8.0425 3.50608C8.50995 2.44948 9.04359 1.24325 9.9404 0.59563C10.7332 0.0231438 11.741 -0.193157 12.6121 0.198945C13.5129 0.604397 14 1.53453 14 2.70949ZM10.6123 1.5C11.0928 1.15305 11.668 1.09012 12.1597 1.5C12.5879 1.85694 12.6108 2.02497 12.6658 2.42926L12.6755 2.5C12.6755 3.09851 12.1597 4 11.6439 4C11.2785 4 10.9914 3.99691 10.7224 3.99402C10.2319 3.98875 9.80131 3.98412 9.06496 4C9.20533 3.72786 9.31743 3.46669 9.42434 3.21761C9.71026 2.55143 9.95907 1.97176 10.6123 1.5ZM4.93861 1.5C4.70607 1.33855 4.17281 1.4106 3.95166 1.5063C3.76894 1.58537 3.49602 1.82658 3.49602 2.52072C3.49602 3.19524 4.58792 3.77778 4.58792 3.77778C4.58792 3.77778 5.45441 4 7.00179 4C6.47506 2.69451 5.7289 2.04867 4.93861 1.5Z", fill: "#828282" })));
|
|
1814
1757
|
};
|
|
1815
1758
|
|
|
1816
|
-
const style$
|
|
1759
|
+
const style$6 = {
|
|
1817
1760
|
ProgressBar: {
|
|
1818
1761
|
"& .progress-bar": {
|
|
1819
1762
|
height: "0",
|
|
@@ -1925,14 +1868,14 @@ const style$7 = {
|
|
|
1925
1868
|
},
|
|
1926
1869
|
},
|
|
1927
1870
|
};
|
|
1928
|
-
const sheet$
|
|
1929
|
-
const styleString$
|
|
1871
|
+
const sheet$6 = createStyleSheet(style$6, { classNamePrefix: "sqm-prog-bar" });
|
|
1872
|
+
const styleString$6 = sheet$6.toString();
|
|
1930
1873
|
function ProgressBarView(props) {
|
|
1931
1874
|
const { progress = 0, goal = 1, steps = false, progressBarUnit = "", repeatable = false, complete = false, expired = false, finite = 0, opacity = "1", } = props;
|
|
1932
1875
|
let aggregate = buildProgressBar(repeatable, steps, props);
|
|
1933
1876
|
const { columns, items } = aggregate;
|
|
1934
|
-
return (h("div", { class: sheet$
|
|
1935
|
-
h("style", { type: "text/css" }, styleString$
|
|
1877
|
+
return (h("div", { class: sheet$6.classes.ProgressBar, "data-expired": expired, "data-complete": complete, "data-steps": steps, "data-done": goal <= progress, style: { opacity: opacity } },
|
|
1878
|
+
h("style", { type: "text/css" }, styleString$6),
|
|
1936
1879
|
h("div", { class: (!Boolean(finite) && progress >= 2 * goal) ||
|
|
1937
1880
|
(Boolean(finite) && progress > 2 * goal)
|
|
1938
1881
|
? "progress-bar repeatable-steps"
|
|
@@ -2223,7 +2166,7 @@ const arrow_left_right = () => {
|
|
|
2223
2166
|
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" })));
|
|
2224
2167
|
};
|
|
2225
2168
|
|
|
2226
|
-
const style$
|
|
2169
|
+
const style$7 = {
|
|
2227
2170
|
TaskCard: {
|
|
2228
2171
|
display: "inline-block",
|
|
2229
2172
|
width: "100%",
|
|
@@ -2377,8 +2320,8 @@ const style$8 = {
|
|
|
2377
2320
|
},
|
|
2378
2321
|
},
|
|
2379
2322
|
};
|
|
2380
|
-
const sheet$
|
|
2381
|
-
const styleString$
|
|
2323
|
+
const sheet$7 = createStyleSheet(style$7);
|
|
2324
|
+
const styleString$7 = sheet$7.toString();
|
|
2382
2325
|
function TaskCardView(props) {
|
|
2383
2326
|
var _a, _b;
|
|
2384
2327
|
const { callbacks, states, content } = props;
|
|
@@ -2414,11 +2357,11 @@ function TaskCardView(props) {
|
|
|
2414
2357
|
}
|
|
2415
2358
|
|
|
2416
2359
|
`;
|
|
2417
|
-
return (h("div", { class: sheet$
|
|
2360
|
+
return (h("div", { class: sheet$7.classes.TaskCard, part: "sqm-base" },
|
|
2418
2361
|
h("style", { type: "text/css" },
|
|
2419
|
-
styleString$
|
|
2362
|
+
styleString$7,
|
|
2420
2363
|
vanillaStyle),
|
|
2421
|
-
!states.loading && taskNotStarted && (h("div", { class: sheet$
|
|
2364
|
+
!states.loading && taskNotStarted && (h("div", { class: sheet$7.classes.NotStarted },
|
|
2422
2365
|
h("span", { class: "icon" },
|
|
2423
2366
|
h("sl-icon", { name: "info-circle-fill" })),
|
|
2424
2367
|
intl.formatMessage({
|
|
@@ -2429,7 +2372,7 @@ function TaskCardView(props) {
|
|
|
2429
2372
|
.setLocale(luxonLocale(states.locale))
|
|
2430
2373
|
.toLocaleString(luxon.DateTime.DATETIME_MED),
|
|
2431
2374
|
}))),
|
|
2432
|
-
!states.loading && taskEnded && (h("div", { class: sheet$
|
|
2375
|
+
!states.loading && taskEnded && (h("div", { class: sheet$7.classes.Ended },
|
|
2433
2376
|
h("span", { class: "icon" },
|
|
2434
2377
|
h("sl-icon", { exportparts: "base: task-card-icon", name: "exclamation-triangle-fill" })),
|
|
2435
2378
|
intl.formatMessage({
|
|
@@ -2449,7 +2392,7 @@ function TaskCardView(props) {
|
|
|
2449
2392
|
? "main complete"
|
|
2450
2393
|
: "main" },
|
|
2451
2394
|
h("div", { class: "container", part: "sqm-card-container", "data-subdue": taskComplete || taskUnavailable },
|
|
2452
|
-
h("div", { class: sheet$
|
|
2395
|
+
h("div", { class: sheet$7.classes.Header, style: { opacity: taskComplete || taskUnavailable ? "0.45" : "1" } }, states.loading ? (h("sl-skeleton", { style: { width: "22%", margin: "0" } })) : (h("div", null,
|
|
2453
2396
|
showComplete && (h("span", { class: taskUnavailable ? "icon neutral" : "icon" }, taskComplete ? checkmark_filled$1 : checkmark_circle$1)),
|
|
2454
2397
|
h("span", { part: "sqm-value", class: "value" }, content.rewardAmount),
|
|
2455
2398
|
h("span", { part: "sqm-unit", class: "text" }, content.rewardUnit)))),
|
|
@@ -2465,7 +2408,7 @@ function TaskCardView(props) {
|
|
|
2465
2408
|
} }, content.cardTitle)),
|
|
2466
2409
|
states.loading ? (h("sl-skeleton", { style: { margin: "var(--sl-spacing-medium) 0" } })) : (content.description && (h(Details, Object.assign({}, props, { opacity: taskComplete || taskUnavailable ? "0.45" : "1" })))),
|
|
2467
2410
|
content.showProgressBar && states.loading ? (h("sl-skeleton", { style: { margin: "var(--sl-spacing-medium) 0" } })) : (content.showProgressBar && (h(ProgressBarView, Object.assign({}, props.content, props.states, { opacity: taskComplete || taskUnavailable ? "0.45" : "1", complete: taskComplete, expired: taskUnavailable })))),
|
|
2468
|
-
h("div", { class: sheet$
|
|
2411
|
+
h("div", { class: sheet$7.classes.Footer, "data-subdue": taskComplete || taskUnavailable }, states.loading ? (h("sl-skeleton", { style: { width: "25%", marginLeft: "auto" } })) : (h("div", { style: { display: "contents" } },
|
|
2469
2412
|
h("span", { class: "text" },
|
|
2470
2413
|
content.repeatable && (h("div", null,
|
|
2471
2414
|
h("span", { class: repetitions > 0
|
|
@@ -2536,7 +2479,7 @@ function PoweredByImg({ color = "#A6A6A6", width = 120, height = 16, }) {
|
|
|
2536
2479
|
h("path", { d: "M1661.53 157.54H1589.77C1590.42 169.37 1593.54 178.535 1599.13 185.035C1604.85 191.535 1612.65 194.785 1622.53 194.785C1628.51 194.785 1633.97 193.485 1638.91 190.885C1643.98 188.285 1647.95 184.645 1650.81 179.965L1657.24 186.4C1653.34 192.12 1648.4 196.475 1642.42 199.465C1636.57 202.455 1629.94 203.95 1622.53 203.95C1609.01 203.95 1598.35 199.465 1590.55 190.495C1582.88 181.525 1579.05 169.175 1579.05 153.445C1579.05 137.585 1582.82 125.17 1590.36 116.2C1597.9 107.1 1608.23 102.55 1621.36 102.55C1633.84 102.55 1643.66 106.84 1650.81 115.42C1657.96 124 1661.53 135.895 1661.53 151.105V157.54ZM1651.39 147.4C1651.39 136.48 1648.66 127.77 1643.2 121.27C1637.74 114.77 1630.46 111.52 1621.36 111.52C1611.74 111.52 1604.2 114.77 1598.74 121.27C1593.28 127.77 1590.29 137.065 1589.77 149.155H1651.39V147.4Z", fill: color })));
|
|
2537
2480
|
}
|
|
2538
2481
|
|
|
2539
|
-
const vanillaStyle$
|
|
2482
|
+
const vanillaStyle$3 = `
|
|
2540
2483
|
:host{
|
|
2541
2484
|
margin: 0 auto;
|
|
2542
2485
|
width: 100%;
|
|
@@ -2592,7 +2535,7 @@ function PortalFooterView(props) {
|
|
|
2592
2535
|
const styleString = sheet.toString();
|
|
2593
2536
|
return (h("div", { class: sheet.classes.Container, part: "sqm-base" },
|
|
2594
2537
|
h("style", { type: "text/css" },
|
|
2595
|
-
vanillaStyle$
|
|
2538
|
+
vanillaStyle$3,
|
|
2596
2539
|
styleString),
|
|
2597
2540
|
h("div", { class: sheet.classes.RowContainer },
|
|
2598
2541
|
props.faqLink && (h("a", { target: "_blank", href: props.faqLink }, props.faqText)),
|
|
@@ -2764,7 +2707,7 @@ function ReferralIframeView(props) {
|
|
|
2764
2707
|
h("iframe", { class: sheet.classes.IFrame, src: `${content.iframeSrc}?rsCode=${data.shareCode}` })));
|
|
2765
2708
|
}
|
|
2766
2709
|
|
|
2767
|
-
const style$
|
|
2710
|
+
const style$8 = {
|
|
2768
2711
|
ErrorStyle: ErrorStyles,
|
|
2769
2712
|
FieldsContainer: {
|
|
2770
2713
|
"& sl-input": {
|
|
@@ -2772,7 +2715,7 @@ const style$9 = {
|
|
|
2772
2715
|
},
|
|
2773
2716
|
},
|
|
2774
2717
|
};
|
|
2775
|
-
const vanillaStyle$
|
|
2718
|
+
const vanillaStyle$4 = `
|
|
2776
2719
|
:host {
|
|
2777
2720
|
margin: 0 auto;
|
|
2778
2721
|
width: 100%;
|
|
@@ -2784,21 +2727,21 @@ sl-input::part(label){
|
|
|
2784
2727
|
font-weight: var(--sl-font-weight-semibold);
|
|
2785
2728
|
}
|
|
2786
2729
|
`;
|
|
2787
|
-
const sheet$
|
|
2788
|
-
const styleString$
|
|
2730
|
+
const sheet$8 = createStyleSheet(style$8);
|
|
2731
|
+
const styleString$8 = sheet$8.toString();
|
|
2789
2732
|
function NameFieldsView(props) {
|
|
2790
2733
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
2791
2734
|
const { states } = props;
|
|
2792
2735
|
const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
|
|
2793
|
-
return (h("div", { class: sheet$
|
|
2736
|
+
return (h("div", { class: sheet$8.classes.FieldsContainer },
|
|
2794
2737
|
h("style", { type: "text/css" },
|
|
2795
|
-
vanillaStyle$
|
|
2796
|
-
styleString$
|
|
2738
|
+
vanillaStyle$4,
|
|
2739
|
+
styleString$8),
|
|
2797
2740
|
h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", name: "/firstName", type: "text", label: states.content.firstNameLabel, required: true, disabled: ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.disabled) }, (((_e = (_d = states.registrationFormState) === null || _d === void 0 ? void 0 : _d.initialData) === null || _e === void 0 ? void 0 : _e.firstName) ? {
|
|
2798
2741
|
value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g.firstName,
|
|
2799
2742
|
}
|
|
2800
2743
|
: {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.firstName) ? {
|
|
2801
|
-
class: sheet$
|
|
2744
|
+
class: sheet$8.classes.ErrorStyle,
|
|
2802
2745
|
helpText: (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.firstName) || "Cannot be empty",
|
|
2803
2746
|
}
|
|
2804
2747
|
: []))),
|
|
@@ -2806,13 +2749,13 @@ function NameFieldsView(props) {
|
|
|
2806
2749
|
value: (_o = (_m = states.registrationFormState) === null || _m === void 0 ? void 0 : _m.initialData) === null || _o === void 0 ? void 0 : _o.lastName,
|
|
2807
2750
|
}
|
|
2808
2751
|
: {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.lastName) ? {
|
|
2809
|
-
class: sheet$
|
|
2752
|
+
class: sheet$8.classes.ErrorStyle,
|
|
2810
2753
|
helpText: (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.lastName) || "Cannot be empty",
|
|
2811
2754
|
}
|
|
2812
2755
|
: [])))));
|
|
2813
2756
|
}
|
|
2814
2757
|
|
|
2815
|
-
const style$
|
|
2758
|
+
const style$9 = {
|
|
2816
2759
|
ErrorStyle: {
|
|
2817
2760
|
"&::part(control)": {
|
|
2818
2761
|
background: "var(--sl-color-danger-10)",
|
|
@@ -2835,7 +2778,7 @@ const style$a = {
|
|
|
2835
2778
|
"margin-bottom": "var(--sl-spacing-large)",
|
|
2836
2779
|
},
|
|
2837
2780
|
};
|
|
2838
|
-
const vanillaStyle$
|
|
2781
|
+
const vanillaStyle$5 = `
|
|
2839
2782
|
:host {
|
|
2840
2783
|
margin: 0 auto;
|
|
2841
2784
|
width: 100%;
|
|
@@ -2851,22 +2794,22 @@ sl-checkbox::part(base){
|
|
|
2851
2794
|
}
|
|
2852
2795
|
`;
|
|
2853
2796
|
jss.setup(create());
|
|
2854
|
-
const sheet$
|
|
2855
|
-
const styleString$
|
|
2797
|
+
const sheet$9 = jss.createStyleSheet(style$9);
|
|
2798
|
+
const styleString$9 = sheet$9.toString();
|
|
2856
2799
|
function CheckboxFieldView(props) {
|
|
2857
2800
|
var _a, _b, _c;
|
|
2858
2801
|
const { states, content, callbacks } = props;
|
|
2859
2802
|
const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
|
|
2860
|
-
return (h("div", { class: sheet$
|
|
2803
|
+
return (h("div", { class: sheet$9.classes.FieldContainer, part: "sqm-base" },
|
|
2861
2804
|
h("style", { type: "text/css" },
|
|
2862
|
-
vanillaStyle$
|
|
2863
|
-
styleString$
|
|
2805
|
+
vanillaStyle$5,
|
|
2806
|
+
styleString$9),
|
|
2864
2807
|
h("sl-checkbox", Object.assign({ exportparts: "label: input-label, base: input-base", name: `/${content.checkboxName}`, checked: states.checked, "onSl-change": (e) => {
|
|
2865
2808
|
e.target.value = e.target.checked;
|
|
2866
2809
|
callbacks.setChecked(e.target.value);
|
|
2867
2810
|
} }, (!content.checkboxOptional ? { required: true } : []), { disabled: ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.disabled) }, (!states.checked && (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.checkboxName])
|
|
2868
2811
|
? {
|
|
2869
|
-
class: sheet$
|
|
2812
|
+
class: sheet$9.classes.ErrorStyle,
|
|
2870
2813
|
}
|
|
2871
2814
|
: [])),
|
|
2872
2815
|
intl.formatMessage({
|
|
@@ -2875,13 +2818,13 @@ function CheckboxFieldView(props) {
|
|
|
2875
2818
|
}, {
|
|
2876
2819
|
labelLink: (h("a", { href: content.checkboxLabelLink, target: "_blank" }, content.checkboxLabelLinkText || content.checkboxLabelLink)),
|
|
2877
2820
|
}),
|
|
2878
|
-
!states.checked && (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.checkboxName]) && (h("p", { class: sheet$
|
|
2821
|
+
!states.checked && (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.checkboxName]) && (h("p", { class: sheet$9.classes.ErrorMessageStyle }, intl.formatMessage({
|
|
2879
2822
|
id: `errorMessage-${content.checkboxName}`,
|
|
2880
2823
|
defaultMessage: content.errorMessage,
|
|
2881
2824
|
}))))));
|
|
2882
2825
|
}
|
|
2883
2826
|
|
|
2884
|
-
const style$
|
|
2827
|
+
const style$a = {
|
|
2885
2828
|
ErrorStyle: {
|
|
2886
2829
|
"--sl-input-border-color": "var(--sl-color-danger-500)",
|
|
2887
2830
|
"--sl-input-background-color": "var(--sl-color-danger-10)",
|
|
@@ -2897,7 +2840,7 @@ const style$b = {
|
|
|
2897
2840
|
"margin-bottom": "var(--sl-spacing-large)",
|
|
2898
2841
|
},
|
|
2899
2842
|
};
|
|
2900
|
-
const vanillaStyle$
|
|
2843
|
+
const vanillaStyle$6 = `
|
|
2901
2844
|
:host {
|
|
2902
2845
|
margin: 0 auto;
|
|
2903
2846
|
width: 100%;
|
|
@@ -2909,36 +2852,36 @@ sl-select::part(label){
|
|
|
2909
2852
|
}
|
|
2910
2853
|
`;
|
|
2911
2854
|
jss.setup(create());
|
|
2912
|
-
const sheet$
|
|
2913
|
-
const styleString$
|
|
2855
|
+
const sheet$a = jss.createStyleSheet(style$a);
|
|
2856
|
+
const styleString$a = sheet$a.toString();
|
|
2914
2857
|
function DropdownFieldView(props) {
|
|
2915
2858
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
2916
2859
|
const { states, content } = props;
|
|
2917
2860
|
const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
|
|
2918
|
-
return (h("div", { class: sheet$
|
|
2861
|
+
return (h("div", { class: sheet$a.classes.FieldContainer, part: "sqm-base" },
|
|
2919
2862
|
h("style", { type: "text/css" },
|
|
2920
|
-
vanillaStyle$
|
|
2921
|
-
styleString$
|
|
2863
|
+
vanillaStyle$6,
|
|
2864
|
+
styleString$a),
|
|
2922
2865
|
h("sl-select", Object.assign({ exportparts: "label: input-label, base: input-base", label: content.dropdownLabel, name: `/${content.dropdownName}` }, (!content.dropdownOptional ? { required: true } : []), { disabled: ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.disabled) }, (((_e = (_d = states.registrationFormState) === null || _d === void 0 ? void 0 : _d.initialData) === null || _e === void 0 ? void 0 : _e[content.dropdownName]) ? {
|
|
2923
2866
|
value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g[content.dropdownName],
|
|
2924
2867
|
}
|
|
2925
2868
|
: {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.dropdownName]) ? {
|
|
2926
|
-
class: sheet$
|
|
2869
|
+
class: sheet$a.classes.ErrorStyle,
|
|
2927
2870
|
}
|
|
2928
2871
|
: [])), content.selectOptions),
|
|
2929
|
-
(validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.dropdownName]) && (h("p", { class: sheet$
|
|
2872
|
+
(validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.dropdownName]) && (h("p", { class: sheet$a.classes.ErrorMessageStyle }, intl.formatMessage({
|
|
2930
2873
|
id: `errorMessage-${content.dropdownName}`,
|
|
2931
2874
|
defaultMessage: content.errorMessage,
|
|
2932
2875
|
})))));
|
|
2933
2876
|
}
|
|
2934
2877
|
|
|
2935
|
-
const style$
|
|
2878
|
+
const style$b = {
|
|
2936
2879
|
ErrorStyle: ErrorStyles,
|
|
2937
2880
|
FieldContainer: {
|
|
2938
2881
|
"margin-bottom": "var(--sl-spacing-large)",
|
|
2939
2882
|
},
|
|
2940
2883
|
};
|
|
2941
|
-
const vanillaStyle$
|
|
2884
|
+
const vanillaStyle$7 = `
|
|
2942
2885
|
:host {
|
|
2943
2886
|
margin: 0 auto;
|
|
2944
2887
|
width: 100%;
|
|
@@ -2946,21 +2889,21 @@ const vanillaStyle$8 = `
|
|
|
2946
2889
|
}
|
|
2947
2890
|
`;
|
|
2948
2891
|
jss.setup(create());
|
|
2949
|
-
const sheet$
|
|
2950
|
-
const styleString$
|
|
2892
|
+
const sheet$b = jss.createStyleSheet(style$b);
|
|
2893
|
+
const styleString$b = sheet$b.toString();
|
|
2951
2894
|
function InputFieldView(props) {
|
|
2952
2895
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
2953
2896
|
const { states, content } = props;
|
|
2954
2897
|
const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
|
|
2955
|
-
return (h("div", { class: sheet$
|
|
2898
|
+
return (h("div", { class: sheet$b.classes.FieldContainer, part: "sqm-base" },
|
|
2956
2899
|
h("style", { type: "text/css" },
|
|
2957
|
-
vanillaStyle$
|
|
2958
|
-
styleString$
|
|
2900
|
+
vanillaStyle$7,
|
|
2901
|
+
styleString$b),
|
|
2959
2902
|
h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", name: `/${content.fieldName}`, type: content.fieldType, label: content.fieldLabel }, (!content.fieldOptional ? { required: true } : []), { disabled: ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.disabled) }, (((_e = (_d = states.registrationFormState) === null || _d === void 0 ? void 0 : _d.initialData) === null || _e === void 0 ? void 0 : _e[content.fieldName]) ? {
|
|
2960
2903
|
value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g[content.fieldName],
|
|
2961
2904
|
}
|
|
2962
2905
|
: {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.fieldName]) ? {
|
|
2963
|
-
class: sheet$
|
|
2906
|
+
class: sheet$b.classes.ErrorStyle,
|
|
2964
2907
|
helpText: intl.formatMessage({
|
|
2965
2908
|
id: `errorMessage-${content.fieldName}`,
|
|
2966
2909
|
defaultMessage: content.errorMessage || (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.fieldName]),
|
|
@@ -3055,7 +2998,7 @@ function ProgressBar({ stageCount, currentStage, }) {
|
|
|
3055
2998
|
return (h("div", { style: { display: "flex", columnGap: "-2px" } }, Array.from(Array(stageCount).keys()).map((stage) => (h(Progress, { active: currentStage === stage, completed: currentStage > stage, incomplete: currentStage < stage, stage: stage })))));
|
|
3056
2999
|
}
|
|
3057
3000
|
|
|
3058
|
-
const style$
|
|
3001
|
+
const style$c = {
|
|
3059
3002
|
HostBlock: HostBlock,
|
|
3060
3003
|
Container: {
|
|
3061
3004
|
minWidth: "300px",
|
|
@@ -3406,8 +3349,8 @@ const style$d = {
|
|
|
3406
3349
|
},
|
|
3407
3350
|
};
|
|
3408
3351
|
// JSS config
|
|
3409
|
-
const sheet$
|
|
3410
|
-
const styleString$
|
|
3352
|
+
const sheet$c = createStyleSheet(style$c);
|
|
3353
|
+
const styleString$c = sheet$c.toString();
|
|
3411
3354
|
const stageList = ["chooseReward", "chooseAmount", "confirmation", "success"];
|
|
3412
3355
|
function RewardExchangeView(props) {
|
|
3413
3356
|
const { states, data, callbacks, refs } = props;
|
|
@@ -3430,7 +3373,7 @@ function RewardExchangeView(props) {
|
|
|
3430
3373
|
sourceUnit: item.sourceUnit,
|
|
3431
3374
|
})));
|
|
3432
3375
|
}
|
|
3433
|
-
return (h("sl-select", { style: { width: "auto" }, label: (_b = states === null || states === void 0 ? void 0 : states.content) === null || _b === void 0 ? void 0 : _b.text.selectText, class: sheet$
|
|
3376
|
+
return (h("sl-select", { style: { width: "auto" }, label: (_b = states === null || states === void 0 ? void 0 : states.content) === null || _b === void 0 ? void 0 : _b.text.selectText, class: sheet$c.classes.Select, value: states.selectedStep, "onSl-select": (e) => {
|
|
3434
3377
|
var _a, _b, _c, _d, _e;
|
|
3435
3378
|
return callbacks.setExchangeState({
|
|
3436
3379
|
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,
|
|
@@ -3438,7 +3381,7 @@ function RewardExchangeView(props) {
|
|
|
3438
3381
|
});
|
|
3439
3382
|
} }, (_c = item.steps) === null || _c === void 0 ? void 0 : _c.map((step) => {
|
|
3440
3383
|
var _a, _b;
|
|
3441
|
-
return (h("sl-menu-item", { value: step, disabled: !step.available, class: sheet$
|
|
3384
|
+
return (h("sl-menu-item", { value: step, disabled: !step.available, class: sheet$c.classes.SelectItem },
|
|
3442
3385
|
step.prettyDestinationValue,
|
|
3443
3386
|
h("br", null),
|
|
3444
3387
|
h("div", { class: "step-cost", slot: "suffix" },
|
|
@@ -3457,8 +3400,8 @@ function RewardExchangeView(props) {
|
|
|
3457
3400
|
var _a;
|
|
3458
3401
|
return [
|
|
3459
3402
|
h("div", { part: "choose-reward-container" },
|
|
3460
|
-
h("div", { class: sheet$
|
|
3461
|
-
states.loading || states.queryError ? (loading()) : (h("div", { class: sheet$
|
|
3403
|
+
h("div", { class: sheet$c.classes.Title }, states.content.text.rewardTitle),
|
|
3404
|
+
states.loading || states.queryError ? (loading()) : (h("div", { class: sheet$c.classes.Grid }, (_a = data.exchangeList) === null || _a === void 0 ? void 0 : _a.map((item) => {
|
|
3462
3405
|
var _a, _b, _c, _d, _e;
|
|
3463
3406
|
const style = {
|
|
3464
3407
|
boxShadow: item.key === (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.key)
|
|
@@ -3467,7 +3410,7 @@ function RewardExchangeView(props) {
|
|
|
3467
3410
|
borderRadius: "4px",
|
|
3468
3411
|
};
|
|
3469
3412
|
return (h("div", { key: item.key, style: style },
|
|
3470
|
-
h("sl-card", { exportparts: "base: exchange-card-container", class: sheet$
|
|
3413
|
+
h("sl-card", { exportparts: "base: exchange-card-container", class: sheet$c.classes.Card, style: {
|
|
3471
3414
|
cursor: item.unavailableReasonCode
|
|
3472
3415
|
? "not-allowed"
|
|
3473
3416
|
: "pointer",
|
|
@@ -3484,14 +3427,14 @@ function RewardExchangeView(props) {
|
|
|
3484
3427
|
? "rgba(0, 0, 0, 0.05)"
|
|
3485
3428
|
: "rgba(0, 0, 0, 0)",
|
|
3486
3429
|
} },
|
|
3487
|
-
h("div", { class: sheet$
|
|
3430
|
+
h("div", { class: sheet$c.classes.Image, style: {
|
|
3488
3431
|
opacity: item.unavailableReasonCode ? "0.5" : "1",
|
|
3489
3432
|
} },
|
|
3490
3433
|
h("img", { class: item.unavailableReasonCode
|
|
3491
3434
|
? "image subdued"
|
|
3492
3435
|
: "image", src: (item === null || item === void 0 ? void 0 : item.imageUrl) ||
|
|
3493
3436
|
getAssetPath("./assets/Reward-image.png") })),
|
|
3494
|
-
h("div", { class: sheet$
|
|
3437
|
+
h("div", { class: sheet$c.classes.TextArea, style: {
|
|
3495
3438
|
opacity: item.unavailableReasonCode ? "0.5" : "1",
|
|
3496
3439
|
} },
|
|
3497
3440
|
h("div", { class: "title", style: {
|
|
@@ -3524,7 +3467,7 @@ function RewardExchangeView(props) {
|
|
|
3524
3467
|
item.prettySourceMinValue,
|
|
3525
3468
|
}))))))));
|
|
3526
3469
|
}))),
|
|
3527
|
-
h("div", { class: sheet$
|
|
3470
|
+
h("div", { class: sheet$c.classes.Button },
|
|
3528
3471
|
h("sl-button", { exportparts: "base: primarybutton-base", class: "continue right", size: "large", onClick: () => callbacks.setStage("chooseAmount"), loading: states.loading, disabled: !states.selectedItem }, states.content.text.continueText))),
|
|
3529
3472
|
];
|
|
3530
3473
|
}
|
|
@@ -3535,7 +3478,7 @@ function RewardExchangeView(props) {
|
|
|
3535
3478
|
? false
|
|
3536
3479
|
: input && !states.amount;
|
|
3537
3480
|
return (h("div", null,
|
|
3538
|
-
h("div", { class: sheet$
|
|
3481
|
+
h("div", { class: sheet$c.classes.ChooseAmount, part: "choose-amount-container" },
|
|
3539
3482
|
h("div", { class: "wrapper" },
|
|
3540
3483
|
h("img", { class: "image", src: (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.imageUrl) ||
|
|
3541
3484
|
getAssetPath("./assets/Reward-image.png") }),
|
|
@@ -3544,7 +3487,7 @@ function RewardExchangeView(props) {
|
|
|
3544
3487
|
((_c = states.selectedItem) === null || _c === void 0 ? void 0 : _c.ruleType) === "FIXED_GLOBAL_REWARD" ? (h("div", { class: "points" }, input)) : (h("div", { class: "description" }, selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.description)),
|
|
3545
3488
|
((_d = states.selectedItem) === null || _d === void 0 ? void 0 : _d.ruleType) === "FIXED_GLOBAL_REWARD" ? (h("div", { class: "description" }, selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.description)) : (h("div", null, input)),
|
|
3546
3489
|
h("div", { class: "space" }))),
|
|
3547
|
-
h("div", { class: sheet$
|
|
3490
|
+
h("div", { class: sheet$c.classes.Button },
|
|
3548
3491
|
h("sl-button", { exportparts: "base: secondarybutton-base", class: "cancel", size: "large", type: "text", onClick: () => callbacks.resetState() }, states.content.text.cancelText),
|
|
3549
3492
|
h("sl-button", { exportparts: "base: primarybutton-base", class: "continue", size: "large", onClick: () => callbacks.setStage("confirmation"), disabled: isDisabled }, states.content.text.continueToConfirmationText)))));
|
|
3550
3493
|
}
|
|
@@ -3552,8 +3495,8 @@ function RewardExchangeView(props) {
|
|
|
3552
3495
|
const cost = (selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettySourceValue) || selectedItem.prettySourceValue;
|
|
3553
3496
|
const amount = selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettyDestinationValue;
|
|
3554
3497
|
return (h("div", null,
|
|
3555
|
-
h("div", { class: sheet$
|
|
3556
|
-
h("div", { class: sheet$
|
|
3498
|
+
h("div", { class: sheet$c.classes.Confirmation, part: "confirmation-container" },
|
|
3499
|
+
h("div", { class: sheet$c.classes.Title }, states.content.text.redeemTitle),
|
|
3557
3500
|
h("div", { class: "wrapper" },
|
|
3558
3501
|
h("div", { class: "field" }, states.content.text.rewardNameTitle),
|
|
3559
3502
|
h("div", { class: "reward-item-container" },
|
|
@@ -3568,13 +3511,13 @@ function RewardExchangeView(props) {
|
|
|
3568
3511
|
h("div", { class: "wrapper top-border padding" },
|
|
3569
3512
|
h("div", { class: "field" }, states.content.text.costTitle),
|
|
3570
3513
|
h("div", { class: "value" }, cost)),
|
|
3571
|
-
h("div", { class: sheet$
|
|
3514
|
+
h("div", { class: sheet$c.classes.Button },
|
|
3572
3515
|
h("sl-button", { class: "cancel", type: "text", size: "large", onClick: () => callbacks.setStage("chooseAmount") }, states.content.text.backText),
|
|
3573
3516
|
h("sl-button", { class: "continue", size: "large", loading: states.loading, onClick: callbacks.exchangeReward }, states.content.text.redeemText)))));
|
|
3574
3517
|
}
|
|
3575
3518
|
function success() {
|
|
3576
3519
|
var _a, _b, _c, _d, _e, _f;
|
|
3577
|
-
return (h("div", { class: sheet$
|
|
3520
|
+
return (h("div", { class: sheet$c.classes.Success, part: "success-container" },
|
|
3578
3521
|
h(Gift$1, null),
|
|
3579
3522
|
h(Confetti, null),
|
|
3580
3523
|
h("div", { class: "title" }, (_a = states.content.text) === null || _a === void 0 ? void 0 : _a.rewardRedeemedText),
|
|
@@ -3589,7 +3532,7 @@ function RewardExchangeView(props) {
|
|
|
3589
3532
|
(data === null || data === void 0 ? void 0 : data.fuelTankCode) && (h("div", { class: "promo" },
|
|
3590
3533
|
states.content.text.promoCode,
|
|
3591
3534
|
h(CopyTextView, { copyString: data.fuelTankCode, tooltiptext: (_f = states === null || states === void 0 ? void 0 : states.content) === null || _f === void 0 ? void 0 : _f.text.tooltipText, open: states.open, onClick: callbacks.copyFuelTankCode }))),
|
|
3592
|
-
h("div", { class: sheet$
|
|
3535
|
+
h("div", { class: sheet$c.classes.Button },
|
|
3593
3536
|
h("sl-button", { class: "continue center", type: "primary", size: "large", onClick: () => callbacks.resetState(true) }, states.content.text.doneText))));
|
|
3594
3537
|
}
|
|
3595
3538
|
const stages = {
|
|
@@ -3601,7 +3544,7 @@ function RewardExchangeView(props) {
|
|
|
3601
3544
|
const currentStage = stages[states.redeemStage];
|
|
3602
3545
|
function stageMap() {
|
|
3603
3546
|
const stageNumber = stageList.indexOf(states.redeemStage);
|
|
3604
|
-
return (h("div", { class: sheet$
|
|
3547
|
+
return (h("div", { class: sheet$c.classes.ProgressBar },
|
|
3605
3548
|
h("div", { class: "text-area" }, Object.keys(stageProgressList).map((stage) => {
|
|
3606
3549
|
if (stageList.indexOf(stage) <= stageNumber) {
|
|
3607
3550
|
return h("span", { class: "text" }, stageProgressList[stage]);
|
|
@@ -3613,10 +3556,10 @@ function RewardExchangeView(props) {
|
|
|
3613
3556
|
h(ProgressBar, { stageCount: 3, currentStage: stageNumber })));
|
|
3614
3557
|
}
|
|
3615
3558
|
function loading() {
|
|
3616
|
-
return (h("div", { class: sheet$
|
|
3559
|
+
return (h("div", { class: sheet$c.classes.Grid, part: "loading-container" }, [...Array(states.content.text.skeletonCardNum)].map(() => {
|
|
3617
3560
|
return (h("div", null,
|
|
3618
|
-
h("sl-card", { class: sheet$
|
|
3619
|
-
h("div", { class: sheet$
|
|
3561
|
+
h("sl-card", { class: sheet$c.classes.Card },
|
|
3562
|
+
h("div", { class: sheet$c.classes.CardLayout },
|
|
3620
3563
|
h("div", null,
|
|
3621
3564
|
h("sl-skeleton", { style: {
|
|
3622
3565
|
width: "100px",
|
|
@@ -3648,12 +3591,12 @@ function RewardExchangeView(props) {
|
|
|
3648
3591
|
if (!(refs === null || refs === void 0 ? void 0 : refs.canvasRef))
|
|
3649
3592
|
return;
|
|
3650
3593
|
refs.canvasRef.current = canvas;
|
|
3651
|
-
}, id: "my-canvas", class: sheet$
|
|
3594
|
+
}, id: "my-canvas", class: sheet$c.classes.Confetti }));
|
|
3652
3595
|
}
|
|
3653
3596
|
if (states.noExchangeOptions)
|
|
3654
3597
|
return states.content.text.empty;
|
|
3655
|
-
return (h("div", { class: sheet$
|
|
3656
|
-
h("style", { type: "text/css" }, styleString$
|
|
3598
|
+
return (h("div", { class: sheet$c.classes.Container, part: "sqm-base" },
|
|
3599
|
+
h("style", { type: "text/css" }, styleString$c),
|
|
3657
3600
|
h("div", null,
|
|
3658
3601
|
stageMap(),
|
|
3659
3602
|
states.exchangeError && errorMessage(),
|
|
@@ -4069,7 +4012,7 @@ function CardFeedView(props, children) {
|
|
|
4069
4012
|
h("div", { class: sheet.classes.Container, part: "sqm-base" }, children)));
|
|
4070
4013
|
}
|
|
4071
4014
|
|
|
4072
|
-
const style$
|
|
4015
|
+
const style$d = {
|
|
4073
4016
|
HostBlock: HostBlock,
|
|
4074
4017
|
couponCodeLabel: {
|
|
4075
4018
|
margin: "var(--sl-spacing-x-small) 0",
|
|
@@ -4077,21 +4020,21 @@ const style$e = {
|
|
|
4077
4020
|
fontSize: "var(--sl-font-size-small)",
|
|
4078
4021
|
},
|
|
4079
4022
|
};
|
|
4080
|
-
const vanillaStyle$
|
|
4023
|
+
const vanillaStyle$8 = `
|
|
4081
4024
|
:host{
|
|
4082
4025
|
display: block;
|
|
4083
4026
|
width: 100%;
|
|
4084
4027
|
}
|
|
4085
4028
|
`;
|
|
4086
|
-
const sheet$
|
|
4087
|
-
const styleString$
|
|
4029
|
+
const sheet$d = createStyleSheet(style$d);
|
|
4030
|
+
const styleString$d = sheet$d.toString();
|
|
4088
4031
|
function CouponCodeView(props) {
|
|
4089
4032
|
const error = !props.loading && props.error;
|
|
4090
4033
|
return (h("div", null,
|
|
4091
4034
|
h("style", { type: "text/css" },
|
|
4092
|
-
styleString$
|
|
4093
|
-
vanillaStyle$
|
|
4094
|
-
h("p", { class: sheet$
|
|
4035
|
+
styleString$d,
|
|
4036
|
+
vanillaStyle$8),
|
|
4037
|
+
h("p", { class: sheet$d.classes.couponCodeLabel, style: { textAlign: props.textAlign } }, props.couponCodeLabel),
|
|
4095
4038
|
error ? (h("sqm-form-message", { type: props.errorType, exportparts: "erroralert-icon" },
|
|
4096
4039
|
h("div", { part: "erroralert-text" }, props.errorText))) : (h(CopyTextView, Object.assign({}, props)))));
|
|
4097
4040
|
}
|
|
@@ -4181,4 +4124,4 @@ const ShadowViewAddon = ({ story }, children) => {
|
|
|
4181
4124
|
h(TagName, { "stencilbook-shadow-view": randomInt })));
|
|
4182
4125
|
};
|
|
4183
4126
|
|
|
4184
|
-
export {
|
|
4127
|
+
export { loading as A, BigStatView as B, CheckboxFieldView as C, DropdownFieldView as D, EditProfileView as E, empty as F, rewardExchange as G, HeroView as H, InputFieldView as I, CardFeedView as J, CouponCodeView as K, LeaderboardView as L, ProgressBar as M, NameFieldsView as N, autoColorScaleCss as O, PortalFrameView as P, ShadowViewAddon as Q, ReferralIframeView as R, ShareButtonView as S, TaskCardView as T, useBigStat as U, withShadowView as V, demoRewardExchange as W, useShareButton as a, useDemoBigStat as b, StatContainerView as c, PortalChangePasswordView as d, PortalLoginView as e, PortalRegisterView as f, ProgressBarView as g, PoweredByImg as h, PortalFooterView as i, RewardExchangeView as j, rewardExchangeLongText as k, rewardExchangeSelected as l, chooseAmountFixed as m, chooseAmountFixedNoDescription as n, chooseAmountVariable as o, chooseAmountVariableNoDescription as p, chooseAmountVariableDisabled as q, rewardExchangeCustomErrorMsg as r, chooseAmountVariableUnavailable as s, confirmFixed as t, useShareLink as u, confirmVariable as v, redemptionError as w, queryError as x, success as y, successVariable as z };
|