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