@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,19 +1,20 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
4
|
-
const stencilHooks_module = require('./stencil-hooks.module-
|
|
5
|
-
const global = require('./global-
|
|
6
|
-
const index_module = require('./index.module-
|
|
3
|
+
const index = require('./index-ff72278c.js');
|
|
4
|
+
const stencilHooks_module = require('./stencil-hooks.module-8f69ed33.js');
|
|
5
|
+
const global = require('./global-e067aa06.js');
|
|
6
|
+
const index_module = require('./index.module-224d7b8d.js');
|
|
7
|
+
const utils = require('./utils-6847bc06.js');
|
|
8
|
+
const JSS = require('./JSS-8503a151.js');
|
|
9
|
+
const copyTextView = require('./copy-text-view-bb2d108f.js');
|
|
7
10
|
const cjs = require('./cjs-1066ec21.js');
|
|
8
11
|
const mixins = require('./mixins-fe9d4112.js');
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const utils = require('./utils-6847bc06.js');
|
|
13
|
-
const sqmTextSpanView = require('./sqm-text-span-view-e1cd9bd3.js');
|
|
12
|
+
const useChildElements = require('./useChildElements-176ac928.js');
|
|
13
|
+
const luxon = require('./luxon-45228ff5.js');
|
|
14
|
+
const sqmTextSpanView = require('./sqm-text-span-view-38222836.js');
|
|
14
15
|
const index$1 = require('./index-8c6255f5.js');
|
|
15
|
-
const utilities = require('./utilities-
|
|
16
|
-
const sqmPortalContainerView = require('./sqm-portal-container-view-
|
|
16
|
+
const utilities = require('./utilities-719c980a.js');
|
|
17
|
+
const sqmPortalContainerView = require('./sqm-portal-container-view-976bf0f5.js');
|
|
17
18
|
|
|
18
19
|
const medium = {
|
|
19
20
|
facebook: { color: "#1877f2", text: "#fff", icon: "facebook" },
|
|
@@ -218,80 +219,6 @@ function LeaderboardView(props) {
|
|
|
218
219
|
index.h("td", { class: "Score" }, ((_c = data.viewerRank) === null || _c === void 0 ? void 0 : _c.textValue) || "0"))))));
|
|
219
220
|
}
|
|
220
221
|
|
|
221
|
-
const style$2 = {
|
|
222
|
-
HostBlock: mixins.HostBlock,
|
|
223
|
-
inputStyle: {
|
|
224
|
-
"&::part(input)": { textOverflow: "ellipsis", width: "100%" },
|
|
225
|
-
"&::part(base)": { cursor: "pointer", overflow: "visible" },
|
|
226
|
-
width: "100%",
|
|
227
|
-
},
|
|
228
|
-
inputErrorStyle: {
|
|
229
|
-
"&::part(base)": {
|
|
230
|
-
border: "2px solid red",
|
|
231
|
-
},
|
|
232
|
-
},
|
|
233
|
-
containerStyle: {
|
|
234
|
-
display: "flex",
|
|
235
|
-
alignItems: "center",
|
|
236
|
-
gap: "var(--sl-spacing-x-small)",
|
|
237
|
-
width: "100%",
|
|
238
|
-
},
|
|
239
|
-
errorTextStyle: {
|
|
240
|
-
margin: "0",
|
|
241
|
-
color: "var(--sl-color-danger-500)",
|
|
242
|
-
},
|
|
243
|
-
};
|
|
244
|
-
const vanillaStyle$1 = `
|
|
245
|
-
:host{
|
|
246
|
-
display: block;
|
|
247
|
-
width: 100%;
|
|
248
|
-
}
|
|
249
|
-
`;
|
|
250
|
-
const textAlignStyle = {
|
|
251
|
-
right: `
|
|
252
|
-
sl-input::part(input){
|
|
253
|
-
text-align: right;
|
|
254
|
-
}`,
|
|
255
|
-
center: `
|
|
256
|
-
sl-input::part(input){
|
|
257
|
-
text-align: center;
|
|
258
|
-
}`,
|
|
259
|
-
left: ``,
|
|
260
|
-
};
|
|
261
|
-
const disabledStyles = `
|
|
262
|
-
sl-input::part(input){
|
|
263
|
-
cursor: default;
|
|
264
|
-
}
|
|
265
|
-
`;
|
|
266
|
-
const sheet$2 = JSS.createStyleSheet(style$2);
|
|
267
|
-
const styleString$2 = sheet$2.toString();
|
|
268
|
-
function CopyTextView(props) {
|
|
269
|
-
const { buttonStyle = "icon" } = props;
|
|
270
|
-
const error = !props.loading && props.error;
|
|
271
|
-
const inputText = error ? props.inputPlaceholderText : props.copyString;
|
|
272
|
-
const disabled = error || props.loading || props.disabled;
|
|
273
|
-
const tooltipPlacement = props.buttonStyle === "button-below"
|
|
274
|
-
? "bottom"
|
|
275
|
-
: props.buttonStyle === "button-outside"
|
|
276
|
-
? "top"
|
|
277
|
-
: "top-end";
|
|
278
|
-
const copyButton = (index.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" ? (index.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 })) : (index.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"))));
|
|
279
|
-
return (index.h("div", null,
|
|
280
|
-
index.h("style", { type: "text/css" },
|
|
281
|
-
styleString$2,
|
|
282
|
-
vanillaStyle$1,
|
|
283
|
-
textAlignStyle[props.textAlign],
|
|
284
|
-
disabled && disabledStyles),
|
|
285
|
-
index.h("div", { class: sheet$2.classes.containerStyle, style: {
|
|
286
|
-
flexDirection: `${buttonStyle === "button-below" ? "column" : "row"}`,
|
|
287
|
-
} },
|
|
288
|
-
index.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 },
|
|
289
|
-
buttonStyle === "icon" && copyButton,
|
|
290
|
-
error && (index.h("p", { slot: "help-text", class: sheet$2.classes.errorTextStyle }, props.errorText))),
|
|
291
|
-
(buttonStyle === "button-outside" || buttonStyle === "button-below") &&
|
|
292
|
-
copyButton)));
|
|
293
|
-
}
|
|
294
|
-
|
|
295
222
|
function BigStatView(props) {
|
|
296
223
|
const { statvalue, flexReverse, alignment } = props;
|
|
297
224
|
// Dependent on props, not feasiable to move out
|
|
@@ -327,7 +254,7 @@ function BigStatView(props) {
|
|
|
327
254
|
index.h("div", { part: "stat-description", class: sheet.classes.Description }, props.labelSlot)));
|
|
328
255
|
}
|
|
329
256
|
|
|
330
|
-
const style$
|
|
257
|
+
const style$2 = {
|
|
331
258
|
HostBlock: mixins.HostBlock,
|
|
332
259
|
Frame: {
|
|
333
260
|
display: "flex",
|
|
@@ -361,17 +288,17 @@ const style$3 = {
|
|
|
361
288
|
},
|
|
362
289
|
},
|
|
363
290
|
};
|
|
364
|
-
const sheet$
|
|
365
|
-
const styleString$
|
|
291
|
+
const sheet$2 = JSS.createStyleSheet(style$2);
|
|
292
|
+
const styleString$2 = sheet$2.toString();
|
|
366
293
|
function PortalFrameView(props, children) {
|
|
367
294
|
const { data, notFullScreen } = props;
|
|
368
|
-
return (index.h("div", { style: { minHeight: notFullScreen ? "100%" : "100vh" }, class: sheet$
|
|
369
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
370
|
-
index.h("div", { class: sheet$
|
|
295
|
+
return (index.h("div", { style: { minHeight: notFullScreen ? "100%" : "100vh" }, class: sheet$2.classes.Frame, part: "sqm-base" },
|
|
296
|
+
index.h("style", { type: "text/css" }, styleString$2),
|
|
297
|
+
index.h("div", { class: sheet$2.classes.HeaderWrapper, part: "sqm-header" },
|
|
371
298
|
data.header,
|
|
372
299
|
index.h("slot", { name: "sqm-navigation-menu" })),
|
|
373
300
|
children,
|
|
374
|
-
index.h("div", { class: sheet$
|
|
301
|
+
index.h("div", { class: sheet$2.classes.FooterWrapper, part: "sqm-footer" }, data.footer)));
|
|
375
302
|
}
|
|
376
303
|
|
|
377
304
|
const EditProfileView = (props) => {
|
|
@@ -451,13 +378,19 @@ function useShareLink(props) {
|
|
|
451
378
|
const { programId = index_module.H() } = props;
|
|
452
379
|
const user = index_module.Q();
|
|
453
380
|
const engagementMedium = index_module.B();
|
|
454
|
-
const
|
|
381
|
+
const contextData = index_module.In(copyTextView.REFERRAL_CODES_NAMESPACE);
|
|
382
|
+
const { data } = index_module.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);
|
|
455
383
|
const [sendLoadEvent] = index_module.$e(WIDGET_ENGAGEMENT_EVENT);
|
|
456
|
-
const
|
|
384
|
+
const [setCopied, copiedRes] = index_module.$e(copyTextView.SET_CODE_COPIED);
|
|
385
|
+
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 :
|
|
457
386
|
// Shown during loading
|
|
458
387
|
"...";
|
|
459
388
|
const [open, setOpen] = stencilHooks_module.useState(false);
|
|
460
|
-
function onClick() {
|
|
389
|
+
async function onClick() {
|
|
390
|
+
if (contextData) {
|
|
391
|
+
await setCopied({ referralCode: contextData.referralCode });
|
|
392
|
+
contextData.refresh();
|
|
393
|
+
}
|
|
461
394
|
// Should well supported: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
|
|
462
395
|
// Only if called from a user-initiated event
|
|
463
396
|
navigator.clipboard.writeText(copyString);
|
|
@@ -516,54 +449,64 @@ function NativeShare(props, directLink, undefinedErrorText, unsupportedPlatformT
|
|
|
516
449
|
alert(unsupportedPlatformText);
|
|
517
450
|
}
|
|
518
451
|
}
|
|
519
|
-
function FacebookShare(directLink,
|
|
520
|
-
|
|
521
|
-
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.messageLink) === "undefined" ||
|
|
522
|
-
directLink === "undefined") {
|
|
452
|
+
function FacebookShare(directLink, messageLink, errorText) {
|
|
453
|
+
if (messageLink === "undefined" || directLink === "undefined") {
|
|
523
454
|
return alert(errorText);
|
|
524
455
|
}
|
|
525
456
|
if (typeof SquatchAndroid.shareOnFacebook !== "undefined") {
|
|
526
|
-
return SquatchAndroid.shareOnFacebook(directLink,
|
|
457
|
+
return SquatchAndroid.shareOnFacebook(directLink, messageLink);
|
|
527
458
|
}
|
|
528
459
|
else {
|
|
529
|
-
return GenericShare(
|
|
460
|
+
return GenericShare(messageLink, errorText);
|
|
530
461
|
}
|
|
531
462
|
}
|
|
532
|
-
function GenericShare(
|
|
533
|
-
|
|
534
|
-
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)
|
|
535
|
-
: alert(errorText);
|
|
463
|
+
function GenericShare(messageLink, errorText) {
|
|
464
|
+
return messageLink ? window.open(messageLink) : alert(errorText);
|
|
536
465
|
}
|
|
537
466
|
function useShareButton(props) {
|
|
538
467
|
var _a, _b;
|
|
539
468
|
const { sharetitle, sharetext, medium } = props;
|
|
540
469
|
const programId = props.programId ? props.programId : index_module.H();
|
|
541
470
|
const user = index_module.Q();
|
|
471
|
+
const engagementMedium = index_module.B();
|
|
542
472
|
const variables = {
|
|
543
|
-
engagementMedium
|
|
473
|
+
engagementMedium,
|
|
544
474
|
programId: programId,
|
|
545
475
|
shareMedium: medium.toUpperCase(),
|
|
546
476
|
};
|
|
477
|
+
const contextData = index_module.In(copyTextView.REFERRAL_CODES_NAMESPACE);
|
|
478
|
+
const overrideData = contextData === null || contextData === void 0 ? void 0 : contextData[medium];
|
|
547
479
|
// only queries if a programId is available
|
|
548
|
-
const res = index_module.yn(MessageLinkQuery$1, variables, !(user === null || user === void 0 ? void 0 : user.jwt) || !programId);
|
|
549
|
-
const
|
|
480
|
+
const res = index_module.yn(MessageLinkQuery$1, variables, !(user === null || user === void 0 ? void 0 : user.jwt) || !programId || overrideData !== undefined);
|
|
481
|
+
const [setCopied, copiedRes] = index_module.$e(copyTextView.SET_CODE_COPIED);
|
|
482
|
+
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);
|
|
550
483
|
const environment = index_module.getEnvironmentSDK();
|
|
551
484
|
const hide = (medium.toLocaleUpperCase() === "SMS" &&
|
|
552
485
|
window.orientation === undefined) ||
|
|
553
486
|
(medium.toLocaleUpperCase() === "DIRECT" && !window.navigator.share);
|
|
554
|
-
function onClick() {
|
|
487
|
+
async function onClick() {
|
|
488
|
+
var _a, _b, _c, _d;
|
|
489
|
+
if (overrideData) {
|
|
490
|
+
await setCopied({ referralCode: contextData.referralCode });
|
|
491
|
+
contextData.refresh();
|
|
492
|
+
}
|
|
555
493
|
if (medium.toLocaleUpperCase() === "FACEBOOK" &&
|
|
556
494
|
environment.type === "SquatchAndroid") {
|
|
557
|
-
FacebookShare(directLink, res, props.errorText);
|
|
495
|
+
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);
|
|
558
496
|
}
|
|
559
497
|
else if (medium.toLocaleUpperCase() === "DIRECT") {
|
|
560
498
|
NativeShare({ sharetitle, sharetext }, directLink, props.errorText, props.unsupportedPlatformText);
|
|
561
499
|
}
|
|
562
500
|
else {
|
|
563
|
-
GenericShare(res, props.errorText);
|
|
501
|
+
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);
|
|
564
502
|
}
|
|
565
503
|
}
|
|
566
|
-
return {
|
|
504
|
+
return {
|
|
505
|
+
...props,
|
|
506
|
+
loading: res.loading && !(overrideData === null || overrideData === void 0 ? void 0 : overrideData.messageLink),
|
|
507
|
+
onClick,
|
|
508
|
+
hide,
|
|
509
|
+
};
|
|
567
510
|
}
|
|
568
511
|
|
|
569
512
|
const debug = stencilHooks_module.browser("sq:useBigStat");
|
|
@@ -1636,7 +1579,7 @@ function PortalChangePasswordView(props) {
|
|
|
1636
1579
|
index.h("style", { type: "text/css" }, styleString))));
|
|
1637
1580
|
}
|
|
1638
1581
|
|
|
1639
|
-
const style$
|
|
1582
|
+
const style$3 = {
|
|
1640
1583
|
Wrapper: mixins.AuthWrapper,
|
|
1641
1584
|
Column: mixins.AuthColumn,
|
|
1642
1585
|
ForgotButtonContainer: {
|
|
@@ -1649,7 +1592,7 @@ const style$4 = {
|
|
|
1649
1592
|
},
|
|
1650
1593
|
ButtonsContainer: mixins.AuthButtonsContainer,
|
|
1651
1594
|
};
|
|
1652
|
-
const vanillaStyle$
|
|
1595
|
+
const vanillaStyle$1 = `
|
|
1653
1596
|
:host {
|
|
1654
1597
|
display: block;
|
|
1655
1598
|
}
|
|
@@ -1657,28 +1600,28 @@ const vanillaStyle$2 = `
|
|
|
1657
1600
|
display: none;
|
|
1658
1601
|
}
|
|
1659
1602
|
`;
|
|
1660
|
-
const sheet$
|
|
1661
|
-
const styleString$
|
|
1603
|
+
const sheet$3 = JSS.createStyleSheet(style$3);
|
|
1604
|
+
const styleString$3 = sheet$3.toString();
|
|
1662
1605
|
function PortalLoginView(props) {
|
|
1663
1606
|
const { states, callbacks, content } = props;
|
|
1664
|
-
return (index.h("div", { class: sheet$
|
|
1607
|
+
return (index.h("div", { class: sheet$3.classes.Wrapper, part: "sqm-base" },
|
|
1665
1608
|
index.h("style", { type: "text/css" },
|
|
1666
|
-
vanillaStyle$
|
|
1667
|
-
styleString$
|
|
1609
|
+
vanillaStyle$1,
|
|
1610
|
+
styleString$3),
|
|
1668
1611
|
index.h(sqmTextSpanView.TextSpanView, { type: "h3" }, content.pageLabel),
|
|
1669
|
-
index.h("sl-form", { class: sheet$
|
|
1612
|
+
index.h("sl-form", { class: sheet$3.classes.Column, "onSl-submit": callbacks.submit },
|
|
1670
1613
|
props.states.error && (index.h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
|
|
1671
1614
|
index.h("div", { part: "erroralert-text" }, props.states.error))),
|
|
1672
1615
|
index.h("sl-input", { exportparts: "label: input-label, base: input-base", type: "email", name: "/email", label: content.emailLabel || "Email", disabled: states.loading, required: true }),
|
|
1673
1616
|
index.h("div", null,
|
|
1674
1617
|
index.h("sl-input", { exportparts: "label: input-label, base: input-base", type: "password", name: "/password", label: content.passwordLabel || "Password", disabled: states.loading, required: true }),
|
|
1675
|
-
index.h("div", { class: sheet$
|
|
1676
|
-
index.h("div", { class: sheet$
|
|
1618
|
+
index.h("div", { class: sheet$3.classes.ForgotButtonContainer }, content.forgotPasswordButton)),
|
|
1619
|
+
index.h("div", { class: sheet$3.classes.ButtonsContainer },
|
|
1677
1620
|
index.h("sl-button", { submit: true, loading: states.loading, exportparts: "base: primarybutton-base", type: "primary" }, content.submitLabel || "Login"),
|
|
1678
1621
|
content.secondaryButton))));
|
|
1679
1622
|
}
|
|
1680
1623
|
|
|
1681
|
-
const style$
|
|
1624
|
+
const style$4 = {
|
|
1682
1625
|
Wrapper: { ...mixins.AuthWrapper, "max-width": "600px" },
|
|
1683
1626
|
Column: mixins.AuthColumn,
|
|
1684
1627
|
HostBlock: mixins.HostBlock,
|
|
@@ -1689,7 +1632,7 @@ const style$5 = {
|
|
|
1689
1632
|
ButtonsContainer: mixins.AuthButtonsContainer,
|
|
1690
1633
|
ErrorStyle: mixins.ErrorStyles,
|
|
1691
1634
|
};
|
|
1692
|
-
const vanillaStyle$
|
|
1635
|
+
const vanillaStyle$2 = `
|
|
1693
1636
|
sqm-portal-register {
|
|
1694
1637
|
margin: 0 auto;
|
|
1695
1638
|
width: 100%;
|
|
@@ -1704,20 +1647,20 @@ sqm-portal-register {
|
|
|
1704
1647
|
display: none;
|
|
1705
1648
|
}
|
|
1706
1649
|
`;
|
|
1707
|
-
const sheet$
|
|
1708
|
-
const styleString$
|
|
1650
|
+
const sheet$4 = JSS.createStyleSheet(style$4);
|
|
1651
|
+
const styleString$4 = sheet$4.toString();
|
|
1709
1652
|
function PortalRegisterView(props) {
|
|
1710
1653
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1711
1654
|
const { states, refs, callbacks, content } = props;
|
|
1712
1655
|
if (states.error) {
|
|
1713
1656
|
window.scrollTo({ top: 0, left: 0, behavior: "smooth" });
|
|
1714
1657
|
}
|
|
1715
|
-
return (index.h("div", { class: sheet$
|
|
1658
|
+
return (index.h("div", { class: sheet$4.classes.Wrapper, part: "sqm-base" },
|
|
1716
1659
|
index.h("style", { type: "text/css" },
|
|
1717
|
-
vanillaStyle$
|
|
1718
|
-
styleString$
|
|
1660
|
+
vanillaStyle$2,
|
|
1661
|
+
styleString$4),
|
|
1719
1662
|
index.h(sqmTextSpanView.TextSpanView, { type: "h3" }, content.pageLabel),
|
|
1720
|
-
index.h("sl-form", { class: sheet$
|
|
1663
|
+
index.h("sl-form", { class: sheet$4.classes.Column, "onSl-submit": callbacks.submit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
1721
1664
|
states.error && (index.h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
|
|
1722
1665
|
index.h("div", { part: "erroralert-text" }, props.states.error))),
|
|
1723
1666
|
content.formData,
|
|
@@ -1730,7 +1673,7 @@ function PortalRegisterView(props) {
|
|
|
1730
1673
|
return content.invalidEmailErrorMessage;
|
|
1731
1674
|
}
|
|
1732
1675
|
} }, (((_b = (_a = states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors) === null || _b === void 0 ? void 0 : _b.email) ? {
|
|
1733
|
-
class: sheet$
|
|
1676
|
+
class: sheet$4.classes.ErrorStyle,
|
|
1734
1677
|
helpText: ((_d = (_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.validationErrors) === null || _d === void 0 ? void 0 : _d.email) ||
|
|
1735
1678
|
content.requiredFieldErrorMessage,
|
|
1736
1679
|
}
|
|
@@ -1738,17 +1681,17 @@ function PortalRegisterView(props) {
|
|
|
1738
1681
|
!states.hideInputs && (index.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 })),
|
|
1739
1682
|
content.passwordField,
|
|
1740
1683
|
!states.hideInputs && states.confirmPassword && (index.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) ? {
|
|
1741
|
-
class: sheet$
|
|
1684
|
+
class: sheet$4.classes.ErrorStyle,
|
|
1742
1685
|
helpText: ((_h = (_g = states.registrationFormState) === null || _g === void 0 ? void 0 : _g.validationErrors) === null || _h === void 0 ? void 0 : _h.confirmPassword) || content.requiredFieldErrorMessage,
|
|
1743
1686
|
}
|
|
1744
1687
|
: [])))),
|
|
1745
1688
|
content.terms,
|
|
1746
|
-
index.h("div", { class: sheet$
|
|
1689
|
+
index.h("div", { class: sheet$4.classes.ButtonsContainer },
|
|
1747
1690
|
index.h("sl-button", { submit: true, loading: states.loading, exportparts: "base: primarybutton-base", type: "primary" }, content.submitLabel || "Register"),
|
|
1748
1691
|
content.secondaryButton))));
|
|
1749
1692
|
}
|
|
1750
1693
|
|
|
1751
|
-
const style$
|
|
1694
|
+
const style$5 = {
|
|
1752
1695
|
Description: {
|
|
1753
1696
|
"& input[type=checkbox]": {
|
|
1754
1697
|
display: "none",
|
|
@@ -1787,13 +1730,13 @@ const style$6 = {
|
|
|
1787
1730
|
},
|
|
1788
1731
|
},
|
|
1789
1732
|
};
|
|
1790
|
-
const sheet$
|
|
1791
|
-
const styleString$
|
|
1733
|
+
const sheet$5 = JSS.createStyleSheet(style$5);
|
|
1734
|
+
const styleString$5 = sheet$5.toString();
|
|
1792
1735
|
function Details(props) {
|
|
1793
1736
|
const rid = Math.random().toString(36).slice(2);
|
|
1794
1737
|
return (index.h("div", { style: { opacity: props.opacity } },
|
|
1795
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
1796
|
-
index.h("span", { class: sheet$
|
|
1738
|
+
index.h("style", { type: "text/css" }, styleString$5),
|
|
1739
|
+
index.h("span", { class: sheet$5.classes.Description },
|
|
1797
1740
|
index.h("input", { type: "checkbox", id: "details-" + rid }),
|
|
1798
1741
|
index.h("label", { class: "details", htmlFor: "details-" + rid },
|
|
1799
1742
|
index.h("sl-icon", { exportparts: "base: chevron-icon", name: "chevron-down" })),
|
|
@@ -1815,7 +1758,7 @@ const GreyGift = () => {
|
|
|
1815
1758
|
index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M14 2.70949C14 3.59565 12.6694 4.93746 12 5H9V16H7.00179V5H4.58792C3.21247 4.70182 2 3.64537 2 2.52072C2 1.42474 2.47603 0.556701 3.34184 0.182041C4.16921 -0.175986 5.12452 0.0203328 5.87976 0.544666C6.80676 1.18825 7.32679 2.3963 7.79856 3.49226C7.83996 3.58845 7.88099 3.68378 7.9219 3.77778C7.96173 3.68865 8.00186 3.59793 8.0425 3.50608C8.50995 2.44948 9.04359 1.24325 9.9404 0.59563C10.7332 0.0231438 11.741 -0.193157 12.6121 0.198945C13.5129 0.604397 14 1.53453 14 2.70949ZM10.6123 1.5C11.0928 1.15305 11.668 1.09012 12.1597 1.5C12.5879 1.85694 12.6108 2.02497 12.6658 2.42926L12.6755 2.5C12.6755 3.09851 12.1597 4 11.6439 4C11.2785 4 10.9914 3.99691 10.7224 3.99402C10.2319 3.98875 9.80131 3.98412 9.06496 4C9.20533 3.72786 9.31743 3.46669 9.42434 3.21761C9.71026 2.55143 9.95907 1.97176 10.6123 1.5ZM4.93861 1.5C4.70607 1.33855 4.17281 1.4106 3.95166 1.5063C3.76894 1.58537 3.49602 1.82658 3.49602 2.52072C3.49602 3.19524 4.58792 3.77778 4.58792 3.77778C4.58792 3.77778 5.45441 4 7.00179 4C6.47506 2.69451 5.7289 2.04867 4.93861 1.5Z", fill: "#828282" })));
|
|
1816
1759
|
};
|
|
1817
1760
|
|
|
1818
|
-
const style$
|
|
1761
|
+
const style$6 = {
|
|
1819
1762
|
ProgressBar: {
|
|
1820
1763
|
"& .progress-bar": {
|
|
1821
1764
|
height: "0",
|
|
@@ -1927,14 +1870,14 @@ const style$7 = {
|
|
|
1927
1870
|
},
|
|
1928
1871
|
},
|
|
1929
1872
|
};
|
|
1930
|
-
const sheet$
|
|
1931
|
-
const styleString$
|
|
1873
|
+
const sheet$6 = JSS.createStyleSheet(style$6, { classNamePrefix: "sqm-prog-bar" });
|
|
1874
|
+
const styleString$6 = sheet$6.toString();
|
|
1932
1875
|
function ProgressBarView(props) {
|
|
1933
1876
|
const { progress = 0, goal = 1, steps = false, progressBarUnit = "", repeatable = false, complete = false, expired = false, finite = 0, opacity = "1", } = props;
|
|
1934
1877
|
let aggregate = buildProgressBar(repeatable, steps, props);
|
|
1935
1878
|
const { columns, items } = aggregate;
|
|
1936
|
-
return (index.h("div", { class: sheet$
|
|
1937
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
1879
|
+
return (index.h("div", { class: sheet$6.classes.ProgressBar, "data-expired": expired, "data-complete": complete, "data-steps": steps, "data-done": goal <= progress, style: { opacity: opacity } },
|
|
1880
|
+
index.h("style", { type: "text/css" }, styleString$6),
|
|
1938
1881
|
index.h("div", { class: (!Boolean(finite) && progress >= 2 * goal) ||
|
|
1939
1882
|
(Boolean(finite) && progress > 2 * goal)
|
|
1940
1883
|
? "progress-bar repeatable-steps"
|
|
@@ -2225,7 +2168,7 @@ const arrow_left_right = () => {
|
|
|
2225
2168
|
index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M10.265 2.789a.346.346 0 000-.489L8.066.101a.346.346 0 10-.489.489l1.61 1.609H2.073a.691.691 0 00-.69.691v1.728a.346.346 0 00.69 0V2.89h7.114L7.577 4.5a.346.346 0 10.49.488l2.198-2.2zM.101 9.21a.346.346 0 000 .489l2.2 2.199a.346.346 0 00.488-.489l-1.61-1.609h7.114c.382 0 .691-.31.691-.691V7.382a.346.346 0 00-.691 0V9.11H1.18L2.789 7.5a.346.346 0 10-.489-.488l-2.199 2.2z", fill: "currentColor" })));
|
|
2226
2169
|
};
|
|
2227
2170
|
|
|
2228
|
-
const style$
|
|
2171
|
+
const style$7 = {
|
|
2229
2172
|
TaskCard: {
|
|
2230
2173
|
display: "inline-block",
|
|
2231
2174
|
width: "100%",
|
|
@@ -2379,8 +2322,8 @@ const style$8 = {
|
|
|
2379
2322
|
},
|
|
2380
2323
|
},
|
|
2381
2324
|
};
|
|
2382
|
-
const sheet$
|
|
2383
|
-
const styleString$
|
|
2325
|
+
const sheet$7 = JSS.createStyleSheet(style$7);
|
|
2326
|
+
const styleString$7 = sheet$7.toString();
|
|
2384
2327
|
function TaskCardView(props) {
|
|
2385
2328
|
var _a, _b;
|
|
2386
2329
|
const { callbacks, states, content } = props;
|
|
@@ -2416,11 +2359,11 @@ function TaskCardView(props) {
|
|
|
2416
2359
|
}
|
|
2417
2360
|
|
|
2418
2361
|
`;
|
|
2419
|
-
return (index.h("div", { class: sheet$
|
|
2362
|
+
return (index.h("div", { class: sheet$7.classes.TaskCard, part: "sqm-base" },
|
|
2420
2363
|
index.h("style", { type: "text/css" },
|
|
2421
|
-
styleString$
|
|
2364
|
+
styleString$7,
|
|
2422
2365
|
vanillaStyle),
|
|
2423
|
-
!states.loading && taskNotStarted && (index.h("div", { class: sheet$
|
|
2366
|
+
!states.loading && taskNotStarted && (index.h("div", { class: sheet$7.classes.NotStarted },
|
|
2424
2367
|
index.h("span", { class: "icon" },
|
|
2425
2368
|
index.h("sl-icon", { name: "info-circle-fill" })),
|
|
2426
2369
|
global.intl.formatMessage({
|
|
@@ -2431,7 +2374,7 @@ function TaskCardView(props) {
|
|
|
2431
2374
|
.setLocale(utils.luxonLocale(states.locale))
|
|
2432
2375
|
.toLocaleString(luxon.luxon.DateTime.DATETIME_MED),
|
|
2433
2376
|
}))),
|
|
2434
|
-
!states.loading && taskEnded && (index.h("div", { class: sheet$
|
|
2377
|
+
!states.loading && taskEnded && (index.h("div", { class: sheet$7.classes.Ended },
|
|
2435
2378
|
index.h("span", { class: "icon" },
|
|
2436
2379
|
index.h("sl-icon", { exportparts: "base: task-card-icon", name: "exclamation-triangle-fill" })),
|
|
2437
2380
|
global.intl.formatMessage({
|
|
@@ -2451,7 +2394,7 @@ function TaskCardView(props) {
|
|
|
2451
2394
|
? "main complete"
|
|
2452
2395
|
: "main" },
|
|
2453
2396
|
index.h("div", { class: "container", part: "sqm-card-container", "data-subdue": taskComplete || taskUnavailable },
|
|
2454
|
-
index.h("div", { class: sheet$
|
|
2397
|
+
index.h("div", { class: sheet$7.classes.Header, style: { opacity: taskComplete || taskUnavailable ? "0.45" : "1" } }, states.loading ? (index.h("sl-skeleton", { style: { width: "22%", margin: "0" } })) : (index.h("div", null,
|
|
2455
2398
|
showComplete && (index.h("span", { class: taskUnavailable ? "icon neutral" : "icon" }, taskComplete ? checkmark_filled$1 : checkmark_circle$1)),
|
|
2456
2399
|
index.h("span", { part: "sqm-value", class: "value" }, content.rewardAmount),
|
|
2457
2400
|
index.h("span", { part: "sqm-unit", class: "text" }, content.rewardUnit)))),
|
|
@@ -2467,7 +2410,7 @@ function TaskCardView(props) {
|
|
|
2467
2410
|
} }, content.cardTitle)),
|
|
2468
2411
|
states.loading ? (index.h("sl-skeleton", { style: { margin: "var(--sl-spacing-medium) 0" } })) : (content.description && (index.h(Details, Object.assign({}, props, { opacity: taskComplete || taskUnavailable ? "0.45" : "1" })))),
|
|
2469
2412
|
content.showProgressBar && states.loading ? (index.h("sl-skeleton", { style: { margin: "var(--sl-spacing-medium) 0" } })) : (content.showProgressBar && (index.h(ProgressBarView, Object.assign({}, props.content, props.states, { opacity: taskComplete || taskUnavailable ? "0.45" : "1", complete: taskComplete, expired: taskUnavailable })))),
|
|
2470
|
-
index.h("div", { class: sheet$
|
|
2413
|
+
index.h("div", { class: sheet$7.classes.Footer, "data-subdue": taskComplete || taskUnavailable }, states.loading ? (index.h("sl-skeleton", { style: { width: "25%", marginLeft: "auto" } })) : (index.h("div", { style: { display: "contents" } },
|
|
2471
2414
|
index.h("span", { class: "text" },
|
|
2472
2415
|
content.repeatable && (index.h("div", null,
|
|
2473
2416
|
index.h("span", { class: repetitions > 0
|
|
@@ -2538,7 +2481,7 @@ function PoweredByImg({ color = "#A6A6A6", width = 120, height = 16, }) {
|
|
|
2538
2481
|
index.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 })));
|
|
2539
2482
|
}
|
|
2540
2483
|
|
|
2541
|
-
const vanillaStyle$
|
|
2484
|
+
const vanillaStyle$3 = `
|
|
2542
2485
|
:host{
|
|
2543
2486
|
margin: 0 auto;
|
|
2544
2487
|
width: 100%;
|
|
@@ -2594,7 +2537,7 @@ function PortalFooterView(props) {
|
|
|
2594
2537
|
const styleString = sheet.toString();
|
|
2595
2538
|
return (index.h("div", { class: sheet.classes.Container, part: "sqm-base" },
|
|
2596
2539
|
index.h("style", { type: "text/css" },
|
|
2597
|
-
vanillaStyle$
|
|
2540
|
+
vanillaStyle$3,
|
|
2598
2541
|
styleString),
|
|
2599
2542
|
index.h("div", { class: sheet.classes.RowContainer },
|
|
2600
2543
|
props.faqLink && (index.h("a", { target: "_blank", href: props.faqLink }, props.faqText)),
|
|
@@ -2766,7 +2709,7 @@ function ReferralIframeView(props) {
|
|
|
2766
2709
|
index.h("iframe", { class: sheet.classes.IFrame, src: `${content.iframeSrc}?rsCode=${data.shareCode}` })));
|
|
2767
2710
|
}
|
|
2768
2711
|
|
|
2769
|
-
const style$
|
|
2712
|
+
const style$8 = {
|
|
2770
2713
|
ErrorStyle: mixins.ErrorStyles,
|
|
2771
2714
|
FieldsContainer: {
|
|
2772
2715
|
"& sl-input": {
|
|
@@ -2774,7 +2717,7 @@ const style$9 = {
|
|
|
2774
2717
|
},
|
|
2775
2718
|
},
|
|
2776
2719
|
};
|
|
2777
|
-
const vanillaStyle$
|
|
2720
|
+
const vanillaStyle$4 = `
|
|
2778
2721
|
:host {
|
|
2779
2722
|
margin: 0 auto;
|
|
2780
2723
|
width: 100%;
|
|
@@ -2786,21 +2729,21 @@ sl-input::part(label){
|
|
|
2786
2729
|
font-weight: var(--sl-font-weight-semibold);
|
|
2787
2730
|
}
|
|
2788
2731
|
`;
|
|
2789
|
-
const sheet$
|
|
2790
|
-
const styleString$
|
|
2732
|
+
const sheet$8 = JSS.createStyleSheet(style$8);
|
|
2733
|
+
const styleString$8 = sheet$8.toString();
|
|
2791
2734
|
function NameFieldsView(props) {
|
|
2792
2735
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
2793
2736
|
const { states } = props;
|
|
2794
2737
|
const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
|
|
2795
|
-
return (index.h("div", { class: sheet$
|
|
2738
|
+
return (index.h("div", { class: sheet$8.classes.FieldsContainer },
|
|
2796
2739
|
index.h("style", { type: "text/css" },
|
|
2797
|
-
vanillaStyle$
|
|
2798
|
-
styleString$
|
|
2740
|
+
vanillaStyle$4,
|
|
2741
|
+
styleString$8),
|
|
2799
2742
|
index.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) ? {
|
|
2800
2743
|
value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g.firstName,
|
|
2801
2744
|
}
|
|
2802
2745
|
: {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.firstName) ? {
|
|
2803
|
-
class: sheet$
|
|
2746
|
+
class: sheet$8.classes.ErrorStyle,
|
|
2804
2747
|
helpText: (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.firstName) || "Cannot be empty",
|
|
2805
2748
|
}
|
|
2806
2749
|
: []))),
|
|
@@ -2808,13 +2751,13 @@ function NameFieldsView(props) {
|
|
|
2808
2751
|
value: (_o = (_m = states.registrationFormState) === null || _m === void 0 ? void 0 : _m.initialData) === null || _o === void 0 ? void 0 : _o.lastName,
|
|
2809
2752
|
}
|
|
2810
2753
|
: {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.lastName) ? {
|
|
2811
|
-
class: sheet$
|
|
2754
|
+
class: sheet$8.classes.ErrorStyle,
|
|
2812
2755
|
helpText: (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.lastName) || "Cannot be empty",
|
|
2813
2756
|
}
|
|
2814
2757
|
: [])))));
|
|
2815
2758
|
}
|
|
2816
2759
|
|
|
2817
|
-
const style$
|
|
2760
|
+
const style$9 = {
|
|
2818
2761
|
ErrorStyle: {
|
|
2819
2762
|
"&::part(control)": {
|
|
2820
2763
|
background: "var(--sl-color-danger-10)",
|
|
@@ -2837,7 +2780,7 @@ const style$a = {
|
|
|
2837
2780
|
"margin-bottom": "var(--sl-spacing-large)",
|
|
2838
2781
|
},
|
|
2839
2782
|
};
|
|
2840
|
-
const vanillaStyle$
|
|
2783
|
+
const vanillaStyle$5 = `
|
|
2841
2784
|
:host {
|
|
2842
2785
|
margin: 0 auto;
|
|
2843
2786
|
width: 100%;
|
|
@@ -2853,22 +2796,22 @@ sl-checkbox::part(base){
|
|
|
2853
2796
|
}
|
|
2854
2797
|
`;
|
|
2855
2798
|
JSS.jss.setup(JSS.create());
|
|
2856
|
-
const sheet$
|
|
2857
|
-
const styleString$
|
|
2799
|
+
const sheet$9 = JSS.jss.createStyleSheet(style$9);
|
|
2800
|
+
const styleString$9 = sheet$9.toString();
|
|
2858
2801
|
function CheckboxFieldView(props) {
|
|
2859
2802
|
var _a, _b, _c;
|
|
2860
2803
|
const { states, content, callbacks } = props;
|
|
2861
2804
|
const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
|
|
2862
|
-
return (index.h("div", { class: sheet$
|
|
2805
|
+
return (index.h("div", { class: sheet$9.classes.FieldContainer, part: "sqm-base" },
|
|
2863
2806
|
index.h("style", { type: "text/css" },
|
|
2864
|
-
vanillaStyle$
|
|
2865
|
-
styleString$
|
|
2807
|
+
vanillaStyle$5,
|
|
2808
|
+
styleString$9),
|
|
2866
2809
|
index.h("sl-checkbox", Object.assign({ exportparts: "label: input-label, base: input-base", name: `/${content.checkboxName}`, checked: states.checked, "onSl-change": (e) => {
|
|
2867
2810
|
e.target.value = e.target.checked;
|
|
2868
2811
|
callbacks.setChecked(e.target.value);
|
|
2869
2812
|
} }, (!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])
|
|
2870
2813
|
? {
|
|
2871
|
-
class: sheet$
|
|
2814
|
+
class: sheet$9.classes.ErrorStyle,
|
|
2872
2815
|
}
|
|
2873
2816
|
: [])),
|
|
2874
2817
|
global.intl.formatMessage({
|
|
@@ -2877,13 +2820,13 @@ function CheckboxFieldView(props) {
|
|
|
2877
2820
|
}, {
|
|
2878
2821
|
labelLink: (index.h("a", { href: content.checkboxLabelLink, target: "_blank" }, content.checkboxLabelLinkText || content.checkboxLabelLink)),
|
|
2879
2822
|
}),
|
|
2880
|
-
!states.checked && (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.checkboxName]) && (index.h("p", { class: sheet$
|
|
2823
|
+
!states.checked && (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.checkboxName]) && (index.h("p", { class: sheet$9.classes.ErrorMessageStyle }, global.intl.formatMessage({
|
|
2881
2824
|
id: `errorMessage-${content.checkboxName}`,
|
|
2882
2825
|
defaultMessage: content.errorMessage,
|
|
2883
2826
|
}))))));
|
|
2884
2827
|
}
|
|
2885
2828
|
|
|
2886
|
-
const style$
|
|
2829
|
+
const style$a = {
|
|
2887
2830
|
ErrorStyle: {
|
|
2888
2831
|
"--sl-input-border-color": "var(--sl-color-danger-500)",
|
|
2889
2832
|
"--sl-input-background-color": "var(--sl-color-danger-10)",
|
|
@@ -2899,7 +2842,7 @@ const style$b = {
|
|
|
2899
2842
|
"margin-bottom": "var(--sl-spacing-large)",
|
|
2900
2843
|
},
|
|
2901
2844
|
};
|
|
2902
|
-
const vanillaStyle$
|
|
2845
|
+
const vanillaStyle$6 = `
|
|
2903
2846
|
:host {
|
|
2904
2847
|
margin: 0 auto;
|
|
2905
2848
|
width: 100%;
|
|
@@ -2911,36 +2854,36 @@ sl-select::part(label){
|
|
|
2911
2854
|
}
|
|
2912
2855
|
`;
|
|
2913
2856
|
JSS.jss.setup(JSS.create());
|
|
2914
|
-
const sheet$
|
|
2915
|
-
const styleString$
|
|
2857
|
+
const sheet$a = JSS.jss.createStyleSheet(style$a);
|
|
2858
|
+
const styleString$a = sheet$a.toString();
|
|
2916
2859
|
function DropdownFieldView(props) {
|
|
2917
2860
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
2918
2861
|
const { states, content } = props;
|
|
2919
2862
|
const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
|
|
2920
|
-
return (index.h("div", { class: sheet$
|
|
2863
|
+
return (index.h("div", { class: sheet$a.classes.FieldContainer, part: "sqm-base" },
|
|
2921
2864
|
index.h("style", { type: "text/css" },
|
|
2922
|
-
vanillaStyle$
|
|
2923
|
-
styleString$
|
|
2865
|
+
vanillaStyle$6,
|
|
2866
|
+
styleString$a),
|
|
2924
2867
|
index.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]) ? {
|
|
2925
2868
|
value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g[content.dropdownName],
|
|
2926
2869
|
}
|
|
2927
2870
|
: {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.dropdownName]) ? {
|
|
2928
|
-
class: sheet$
|
|
2871
|
+
class: sheet$a.classes.ErrorStyle,
|
|
2929
2872
|
}
|
|
2930
2873
|
: [])), content.selectOptions),
|
|
2931
|
-
(validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.dropdownName]) && (index.h("p", { class: sheet$
|
|
2874
|
+
(validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.dropdownName]) && (index.h("p", { class: sheet$a.classes.ErrorMessageStyle }, global.intl.formatMessage({
|
|
2932
2875
|
id: `errorMessage-${content.dropdownName}`,
|
|
2933
2876
|
defaultMessage: content.errorMessage,
|
|
2934
2877
|
})))));
|
|
2935
2878
|
}
|
|
2936
2879
|
|
|
2937
|
-
const style$
|
|
2880
|
+
const style$b = {
|
|
2938
2881
|
ErrorStyle: mixins.ErrorStyles,
|
|
2939
2882
|
FieldContainer: {
|
|
2940
2883
|
"margin-bottom": "var(--sl-spacing-large)",
|
|
2941
2884
|
},
|
|
2942
2885
|
};
|
|
2943
|
-
const vanillaStyle$
|
|
2886
|
+
const vanillaStyle$7 = `
|
|
2944
2887
|
:host {
|
|
2945
2888
|
margin: 0 auto;
|
|
2946
2889
|
width: 100%;
|
|
@@ -2948,21 +2891,21 @@ const vanillaStyle$8 = `
|
|
|
2948
2891
|
}
|
|
2949
2892
|
`;
|
|
2950
2893
|
JSS.jss.setup(JSS.create());
|
|
2951
|
-
const sheet$
|
|
2952
|
-
const styleString$
|
|
2894
|
+
const sheet$b = JSS.jss.createStyleSheet(style$b);
|
|
2895
|
+
const styleString$b = sheet$b.toString();
|
|
2953
2896
|
function InputFieldView(props) {
|
|
2954
2897
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
2955
2898
|
const { states, content } = props;
|
|
2956
2899
|
const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
|
|
2957
|
-
return (index.h("div", { class: sheet$
|
|
2900
|
+
return (index.h("div", { class: sheet$b.classes.FieldContainer, part: "sqm-base" },
|
|
2958
2901
|
index.h("style", { type: "text/css" },
|
|
2959
|
-
vanillaStyle$
|
|
2960
|
-
styleString$
|
|
2902
|
+
vanillaStyle$7,
|
|
2903
|
+
styleString$b),
|
|
2961
2904
|
index.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]) ? {
|
|
2962
2905
|
value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g[content.fieldName],
|
|
2963
2906
|
}
|
|
2964
2907
|
: {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.fieldName]) ? {
|
|
2965
|
-
class: sheet$
|
|
2908
|
+
class: sheet$b.classes.ErrorStyle,
|
|
2966
2909
|
helpText: global.intl.formatMessage({
|
|
2967
2910
|
id: `errorMessage-${content.fieldName}`,
|
|
2968
2911
|
defaultMessage: content.errorMessage || (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.fieldName]),
|
|
@@ -3057,7 +3000,7 @@ function ProgressBar({ stageCount, currentStage, }) {
|
|
|
3057
3000
|
return (index.h("div", { style: { display: "flex", columnGap: "-2px" } }, Array.from(Array(stageCount).keys()).map((stage) => (index.h(Progress, { active: currentStage === stage, completed: currentStage > stage, incomplete: currentStage < stage, stage: stage })))));
|
|
3058
3001
|
}
|
|
3059
3002
|
|
|
3060
|
-
const style$
|
|
3003
|
+
const style$c = {
|
|
3061
3004
|
HostBlock: mixins.HostBlock,
|
|
3062
3005
|
Container: {
|
|
3063
3006
|
minWidth: "300px",
|
|
@@ -3408,8 +3351,8 @@ const style$d = {
|
|
|
3408
3351
|
},
|
|
3409
3352
|
};
|
|
3410
3353
|
// JSS config
|
|
3411
|
-
const sheet$
|
|
3412
|
-
const styleString$
|
|
3354
|
+
const sheet$c = JSS.createStyleSheet(style$c);
|
|
3355
|
+
const styleString$c = sheet$c.toString();
|
|
3413
3356
|
const stageList = ["chooseReward", "chooseAmount", "confirmation", "success"];
|
|
3414
3357
|
function RewardExchangeView(props) {
|
|
3415
3358
|
const { states, data, callbacks, refs } = props;
|
|
@@ -3432,7 +3375,7 @@ function RewardExchangeView(props) {
|
|
|
3432
3375
|
sourceUnit: item.sourceUnit,
|
|
3433
3376
|
})));
|
|
3434
3377
|
}
|
|
3435
|
-
return (index.h("sl-select", { style: { width: "auto" }, label: (_b = states === null || states === void 0 ? void 0 : states.content) === null || _b === void 0 ? void 0 : _b.text.selectText, class: sheet$
|
|
3378
|
+
return (index.h("sl-select", { style: { width: "auto" }, label: (_b = states === null || states === void 0 ? void 0 : states.content) === null || _b === void 0 ? void 0 : _b.text.selectText, class: sheet$c.classes.Select, value: states.selectedStep, "onSl-select": (e) => {
|
|
3436
3379
|
var _a, _b, _c, _d, _e;
|
|
3437
3380
|
return callbacks.setExchangeState({
|
|
3438
3381
|
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,
|
|
@@ -3440,7 +3383,7 @@ function RewardExchangeView(props) {
|
|
|
3440
3383
|
});
|
|
3441
3384
|
} }, (_c = item.steps) === null || _c === void 0 ? void 0 : _c.map((step) => {
|
|
3442
3385
|
var _a, _b;
|
|
3443
|
-
return (index.h("sl-menu-item", { value: step, disabled: !step.available, class: sheet$
|
|
3386
|
+
return (index.h("sl-menu-item", { value: step, disabled: !step.available, class: sheet$c.classes.SelectItem },
|
|
3444
3387
|
step.prettyDestinationValue,
|
|
3445
3388
|
index.h("br", null),
|
|
3446
3389
|
index.h("div", { class: "step-cost", slot: "suffix" },
|
|
@@ -3459,8 +3402,8 @@ function RewardExchangeView(props) {
|
|
|
3459
3402
|
var _a;
|
|
3460
3403
|
return [
|
|
3461
3404
|
index.h("div", { part: "choose-reward-container" },
|
|
3462
|
-
index.h("div", { class: sheet$
|
|
3463
|
-
states.loading || states.queryError ? (loading()) : (index.h("div", { class: sheet$
|
|
3405
|
+
index.h("div", { class: sheet$c.classes.Title }, states.content.text.rewardTitle),
|
|
3406
|
+
states.loading || states.queryError ? (loading()) : (index.h("div", { class: sheet$c.classes.Grid }, (_a = data.exchangeList) === null || _a === void 0 ? void 0 : _a.map((item) => {
|
|
3464
3407
|
var _a, _b, _c, _d, _e;
|
|
3465
3408
|
const style = {
|
|
3466
3409
|
boxShadow: item.key === (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.key)
|
|
@@ -3469,7 +3412,7 @@ function RewardExchangeView(props) {
|
|
|
3469
3412
|
borderRadius: "4px",
|
|
3470
3413
|
};
|
|
3471
3414
|
return (index.h("div", { key: item.key, style: style },
|
|
3472
|
-
index.h("sl-card", { exportparts: "base: exchange-card-container", class: sheet$
|
|
3415
|
+
index.h("sl-card", { exportparts: "base: exchange-card-container", class: sheet$c.classes.Card, style: {
|
|
3473
3416
|
cursor: item.unavailableReasonCode
|
|
3474
3417
|
? "not-allowed"
|
|
3475
3418
|
: "pointer",
|
|
@@ -3486,14 +3429,14 @@ function RewardExchangeView(props) {
|
|
|
3486
3429
|
? "rgba(0, 0, 0, 0.05)"
|
|
3487
3430
|
: "rgba(0, 0, 0, 0)",
|
|
3488
3431
|
} },
|
|
3489
|
-
index.h("div", { class: sheet$
|
|
3432
|
+
index.h("div", { class: sheet$c.classes.Image, style: {
|
|
3490
3433
|
opacity: item.unavailableReasonCode ? "0.5" : "1",
|
|
3491
3434
|
} },
|
|
3492
3435
|
index.h("img", { class: item.unavailableReasonCode
|
|
3493
3436
|
? "image subdued"
|
|
3494
3437
|
: "image", src: (item === null || item === void 0 ? void 0 : item.imageUrl) ||
|
|
3495
3438
|
index.getAssetPath("./assets/Reward-image.png") })),
|
|
3496
|
-
index.h("div", { class: sheet$
|
|
3439
|
+
index.h("div", { class: sheet$c.classes.TextArea, style: {
|
|
3497
3440
|
opacity: item.unavailableReasonCode ? "0.5" : "1",
|
|
3498
3441
|
} },
|
|
3499
3442
|
index.h("div", { class: "title", style: {
|
|
@@ -3526,7 +3469,7 @@ function RewardExchangeView(props) {
|
|
|
3526
3469
|
item.prettySourceMinValue,
|
|
3527
3470
|
}))))))));
|
|
3528
3471
|
}))),
|
|
3529
|
-
index.h("div", { class: sheet$
|
|
3472
|
+
index.h("div", { class: sheet$c.classes.Button },
|
|
3530
3473
|
index.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))),
|
|
3531
3474
|
];
|
|
3532
3475
|
}
|
|
@@ -3537,7 +3480,7 @@ function RewardExchangeView(props) {
|
|
|
3537
3480
|
? false
|
|
3538
3481
|
: input && !states.amount;
|
|
3539
3482
|
return (index.h("div", null,
|
|
3540
|
-
index.h("div", { class: sheet$
|
|
3483
|
+
index.h("div", { class: sheet$c.classes.ChooseAmount, part: "choose-amount-container" },
|
|
3541
3484
|
index.h("div", { class: "wrapper" },
|
|
3542
3485
|
index.h("img", { class: "image", src: (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.imageUrl) ||
|
|
3543
3486
|
index.getAssetPath("./assets/Reward-image.png") }),
|
|
@@ -3546,7 +3489,7 @@ function RewardExchangeView(props) {
|
|
|
3546
3489
|
((_c = states.selectedItem) === null || _c === void 0 ? void 0 : _c.ruleType) === "FIXED_GLOBAL_REWARD" ? (index.h("div", { class: "points" }, input)) : (index.h("div", { class: "description" }, selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.description)),
|
|
3547
3490
|
((_d = states.selectedItem) === null || _d === void 0 ? void 0 : _d.ruleType) === "FIXED_GLOBAL_REWARD" ? (index.h("div", { class: "description" }, selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.description)) : (index.h("div", null, input)),
|
|
3548
3491
|
index.h("div", { class: "space" }))),
|
|
3549
|
-
index.h("div", { class: sheet$
|
|
3492
|
+
index.h("div", { class: sheet$c.classes.Button },
|
|
3550
3493
|
index.h("sl-button", { exportparts: "base: secondarybutton-base", class: "cancel", size: "large", type: "text", onClick: () => callbacks.resetState() }, states.content.text.cancelText),
|
|
3551
3494
|
index.h("sl-button", { exportparts: "base: primarybutton-base", class: "continue", size: "large", onClick: () => callbacks.setStage("confirmation"), disabled: isDisabled }, states.content.text.continueToConfirmationText)))));
|
|
3552
3495
|
}
|
|
@@ -3554,8 +3497,8 @@ function RewardExchangeView(props) {
|
|
|
3554
3497
|
const cost = (selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettySourceValue) || selectedItem.prettySourceValue;
|
|
3555
3498
|
const amount = selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettyDestinationValue;
|
|
3556
3499
|
return (index.h("div", null,
|
|
3557
|
-
index.h("div", { class: sheet$
|
|
3558
|
-
index.h("div", { class: sheet$
|
|
3500
|
+
index.h("div", { class: sheet$c.classes.Confirmation, part: "confirmation-container" },
|
|
3501
|
+
index.h("div", { class: sheet$c.classes.Title }, states.content.text.redeemTitle),
|
|
3559
3502
|
index.h("div", { class: "wrapper" },
|
|
3560
3503
|
index.h("div", { class: "field" }, states.content.text.rewardNameTitle),
|
|
3561
3504
|
index.h("div", { class: "reward-item-container" },
|
|
@@ -3570,13 +3513,13 @@ function RewardExchangeView(props) {
|
|
|
3570
3513
|
index.h("div", { class: "wrapper top-border padding" },
|
|
3571
3514
|
index.h("div", { class: "field" }, states.content.text.costTitle),
|
|
3572
3515
|
index.h("div", { class: "value" }, cost)),
|
|
3573
|
-
index.h("div", { class: sheet$
|
|
3516
|
+
index.h("div", { class: sheet$c.classes.Button },
|
|
3574
3517
|
index.h("sl-button", { class: "cancel", type: "text", size: "large", onClick: () => callbacks.setStage("chooseAmount") }, states.content.text.backText),
|
|
3575
3518
|
index.h("sl-button", { class: "continue", size: "large", loading: states.loading, onClick: callbacks.exchangeReward }, states.content.text.redeemText)))));
|
|
3576
3519
|
}
|
|
3577
3520
|
function success() {
|
|
3578
3521
|
var _a, _b, _c, _d, _e, _f;
|
|
3579
|
-
return (index.h("div", { class: sheet$
|
|
3522
|
+
return (index.h("div", { class: sheet$c.classes.Success, part: "success-container" },
|
|
3580
3523
|
index.h(Gift$1, null),
|
|
3581
3524
|
index.h(Confetti, null),
|
|
3582
3525
|
index.h("div", { class: "title" }, (_a = states.content.text) === null || _a === void 0 ? void 0 : _a.rewardRedeemedText),
|
|
@@ -3590,8 +3533,8 @@ function RewardExchangeView(props) {
|
|
|
3590
3533
|
})),
|
|
3591
3534
|
(data === null || data === void 0 ? void 0 : data.fuelTankCode) && (index.h("div", { class: "promo" },
|
|
3592
3535
|
states.content.text.promoCode,
|
|
3593
|
-
index.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 }))),
|
|
3594
|
-
index.h("div", { class: sheet$
|
|
3536
|
+
index.h(copyTextView.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 }))),
|
|
3537
|
+
index.h("div", { class: sheet$c.classes.Button },
|
|
3595
3538
|
index.h("sl-button", { class: "continue center", type: "primary", size: "large", onClick: () => callbacks.resetState(true) }, states.content.text.doneText))));
|
|
3596
3539
|
}
|
|
3597
3540
|
const stages = {
|
|
@@ -3603,7 +3546,7 @@ function RewardExchangeView(props) {
|
|
|
3603
3546
|
const currentStage = stages[states.redeemStage];
|
|
3604
3547
|
function stageMap() {
|
|
3605
3548
|
const stageNumber = stageList.indexOf(states.redeemStage);
|
|
3606
|
-
return (index.h("div", { class: sheet$
|
|
3549
|
+
return (index.h("div", { class: sheet$c.classes.ProgressBar },
|
|
3607
3550
|
index.h("div", { class: "text-area" }, Object.keys(stageProgressList).map((stage) => {
|
|
3608
3551
|
if (stageList.indexOf(stage) <= stageNumber) {
|
|
3609
3552
|
return index.h("span", { class: "text" }, stageProgressList[stage]);
|
|
@@ -3615,10 +3558,10 @@ function RewardExchangeView(props) {
|
|
|
3615
3558
|
index.h(ProgressBar, { stageCount: 3, currentStage: stageNumber })));
|
|
3616
3559
|
}
|
|
3617
3560
|
function loading() {
|
|
3618
|
-
return (index.h("div", { class: sheet$
|
|
3561
|
+
return (index.h("div", { class: sheet$c.classes.Grid, part: "loading-container" }, [...Array(states.content.text.skeletonCardNum)].map(() => {
|
|
3619
3562
|
return (index.h("div", null,
|
|
3620
|
-
index.h("sl-card", { class: sheet$
|
|
3621
|
-
index.h("div", { class: sheet$
|
|
3563
|
+
index.h("sl-card", { class: sheet$c.classes.Card },
|
|
3564
|
+
index.h("div", { class: sheet$c.classes.CardLayout },
|
|
3622
3565
|
index.h("div", null,
|
|
3623
3566
|
index.h("sl-skeleton", { style: {
|
|
3624
3567
|
width: "100px",
|
|
@@ -3650,12 +3593,12 @@ function RewardExchangeView(props) {
|
|
|
3650
3593
|
if (!(refs === null || refs === void 0 ? void 0 : refs.canvasRef))
|
|
3651
3594
|
return;
|
|
3652
3595
|
refs.canvasRef.current = canvas;
|
|
3653
|
-
}, id: "my-canvas", class: sheet$
|
|
3596
|
+
}, id: "my-canvas", class: sheet$c.classes.Confetti }));
|
|
3654
3597
|
}
|
|
3655
3598
|
if (states.noExchangeOptions)
|
|
3656
3599
|
return states.content.text.empty;
|
|
3657
|
-
return (index.h("div", { class: sheet$
|
|
3658
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
3600
|
+
return (index.h("div", { class: sheet$c.classes.Container, part: "sqm-base" },
|
|
3601
|
+
index.h("style", { type: "text/css" }, styleString$c),
|
|
3659
3602
|
index.h("div", null,
|
|
3660
3603
|
stageMap(),
|
|
3661
3604
|
states.exchangeError && errorMessage(),
|
|
@@ -4071,7 +4014,7 @@ function CardFeedView(props, children) {
|
|
|
4071
4014
|
index.h("div", { class: sheet.classes.Container, part: "sqm-base" }, children)));
|
|
4072
4015
|
}
|
|
4073
4016
|
|
|
4074
|
-
const style$
|
|
4017
|
+
const style$d = {
|
|
4075
4018
|
HostBlock: mixins.HostBlock,
|
|
4076
4019
|
couponCodeLabel: {
|
|
4077
4020
|
margin: "var(--sl-spacing-x-small) 0",
|
|
@@ -4079,23 +4022,23 @@ const style$e = {
|
|
|
4079
4022
|
fontSize: "var(--sl-font-size-small)",
|
|
4080
4023
|
},
|
|
4081
4024
|
};
|
|
4082
|
-
const vanillaStyle$
|
|
4025
|
+
const vanillaStyle$8 = `
|
|
4083
4026
|
:host{
|
|
4084
4027
|
display: block;
|
|
4085
4028
|
width: 100%;
|
|
4086
4029
|
}
|
|
4087
4030
|
`;
|
|
4088
|
-
const sheet$
|
|
4089
|
-
const styleString$
|
|
4031
|
+
const sheet$d = JSS.createStyleSheet(style$d);
|
|
4032
|
+
const styleString$d = sheet$d.toString();
|
|
4090
4033
|
function CouponCodeView(props) {
|
|
4091
4034
|
const error = !props.loading && props.error;
|
|
4092
4035
|
return (index.h("div", null,
|
|
4093
4036
|
index.h("style", { type: "text/css" },
|
|
4094
|
-
styleString$
|
|
4095
|
-
vanillaStyle$
|
|
4096
|
-
index.h("p", { class: sheet$
|
|
4037
|
+
styleString$d,
|
|
4038
|
+
vanillaStyle$8),
|
|
4039
|
+
index.h("p", { class: sheet$d.classes.couponCodeLabel, style: { textAlign: props.textAlign } }, props.couponCodeLabel),
|
|
4097
4040
|
error ? (index.h("sqm-form-message", { type: props.errorType, exportparts: "erroralert-icon" },
|
|
4098
|
-
index.h("div", { part: "erroralert-text" }, props.errorText))) : (index.h(CopyTextView, Object.assign({}, props)))));
|
|
4041
|
+
index.h("div", { part: "erroralert-text" }, props.errorText))) : (index.h(copyTextView.CopyTextView, Object.assign({}, props)))));
|
|
4099
4042
|
}
|
|
4100
4043
|
|
|
4101
4044
|
function t(t,n,r){return Math.min(Math.max(t,r),n)}class n extends Error{constructor(t){super(`Failed to parse color: "${t}"`);}}function r(r){if("string"!=typeof r)throw new n(r);if("transparent"===r.trim().toLowerCase())return [0,0,0,0];let e=r.trim();e=u.test(r)?function(t){const r=t.toLowerCase().trim(),e=o[function(t){let n=5381,r=t.length;for(;r;)n=33*n^t.charCodeAt(--r);return (n>>>0)%2341}(r)];if(!e)throw new n(t);return `#${e}`}(r):r;const f=s.exec(e);if(f){const t=Array.from(f).slice(1);return [...t.slice(0,3).map(t=>parseInt(_(t,2),16)),parseInt(_(t[3]||"f",2),16)/255]}const p=i.exec(e);if(p){const t=Array.from(p).slice(1);return [...t.slice(0,3).map(t=>parseInt(t,16)),parseInt(t[3]||"ff",16)/255]}const z=a.exec(e);if(z){const t=Array.from(z).slice(1);return [...t.slice(0,3).map(t=>parseInt(t,10)),parseFloat(t[3]||"1")]}const h=c.exec(e);if(h){const[e,o,_,s]=Array.from(h).slice(1).map(parseFloat);if(t(0,100,o)!==o)throw new n(r);if(t(0,100,_)!==_)throw new n(r);return [...l(e,o,_),s||1]}throw new n(r)}const e=t=>parseInt(t.replace(/_/g,""),36),o="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((t,n)=>{const r=e(n.substring(0,3)),o=e(n.substring(3)).toString(16);let _="";for(let t=0;t<6-o.length;t++)_+="0";return t[r]=`${_}${o}`,t},{}),_=(t,n)=>Array.from(Array(n)).map(()=>t).join(""),s=new RegExp(`^#${_("([a-f0-9])",3)}([a-f0-9])?$`,"i"),i=new RegExp(`^#${_("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),a=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${_(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),c=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,u=/^[a-z]+$/i,f=t=>Math.round(255*t),l=(t,n,r)=>{let e=r/100;if(0===n)return [e,e,e].map(f);const o=(t%360+360)%360/60,_=(1-Math.abs(2*e-1))*(n/100),s=_*(1-Math.abs(o%2-1));let i=0,a=0,c=0;o>=0&&o<1?(i=_,a=s):o>=1&&o<2?(i=s,a=_):o>=2&&o<3?(a=_,c=s):o>=3&&o<4?(a=s,c=_):o>=4&&o<5?(i=s,c=_):o>=5&&o<6&&(i=_,c=s);const u=e-_/2;return [i+u,a+u,c+u].map(f)};function p(t){const[n,e,o,_]=r(t).map((t,n)=>3===n?t:t/255),s=Math.max(n,e,o),i=Math.min(n,e,o),a=(s+i)/2;if(s===i)return [0,0,a,_];const c=s-i;return [60*(n===s?(e-o)/c+(e<o?6:0):e===s?(o-n)/c+2:(n-e)/c+4),a>.5?c/(2-s-i):c/(s+i),a,_]}function z(n,r,e,o){return `hsla(${(n%360).toFixed()}, ${t(0,100,100*r).toFixed()}%, ${t(0,100,100*e).toFixed()}%, ${parseFloat(t(0,1,o).toFixed(3))})`}
|
|
@@ -4186,7 +4129,6 @@ const ShadowViewAddon = ({ story }, children) => {
|
|
|
4186
4129
|
exports.BigStatView = BigStatView;
|
|
4187
4130
|
exports.CardFeedView = CardFeedView;
|
|
4188
4131
|
exports.CheckboxFieldView = CheckboxFieldView;
|
|
4189
|
-
exports.CopyTextView = CopyTextView;
|
|
4190
4132
|
exports.CouponCodeView = CouponCodeView;
|
|
4191
4133
|
exports.DropdownFieldView = DropdownFieldView;
|
|
4192
4134
|
exports.EditProfileView = EditProfileView;
|