@saasquatch/mint-components 1.11.1-47 → 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,20 +1,19 @@
|
|
|
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-
|
|
7
|
-
const utils = require('./utils-6847bc06.js');
|
|
8
|
-
const JSS = require('./JSS-8503a151.js');
|
|
9
|
-
const copyTextView = require('./copy-text-view-29330e8a.js');
|
|
3
|
+
const index = require('./index-b0129cd6.js');
|
|
4
|
+
const stencilHooks_module = require('./stencil-hooks.module-72742a0b.js');
|
|
5
|
+
const global = require('./global-02e50f09.js');
|
|
6
|
+
const index_module = require('./index.module-df530553.js');
|
|
10
7
|
const cjs = require('./cjs-1066ec21.js');
|
|
11
8
|
const mixins = require('./mixins-fe9d4112.js');
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
9
|
+
const JSS = require('./JSS-8503a151.js');
|
|
10
|
+
const useChildElements = require('./useChildElements-e0d44916.js');
|
|
11
|
+
const luxon = require('./luxon-05098e19.js');
|
|
12
|
+
const utils = require('./utils-6847bc06.js');
|
|
13
|
+
const sqmTextSpanView = require('./sqm-text-span-view-e1cd9bd3.js');
|
|
15
14
|
const index$1 = require('./index-8c6255f5.js');
|
|
16
|
-
const utilities = require('./utilities-
|
|
17
|
-
const sqmPortalContainerView = require('./sqm-portal-container-view-
|
|
15
|
+
const utilities = require('./utilities-cec9dd36.js');
|
|
16
|
+
const sqmPortalContainerView = require('./sqm-portal-container-view-990a85a3.js');
|
|
18
17
|
|
|
19
18
|
const medium = {
|
|
20
19
|
facebook: { color: "#1877f2", text: "#fff", icon: "facebook" },
|
|
@@ -219,6 +218,80 @@ function LeaderboardView(props) {
|
|
|
219
218
|
index.h("td", { class: "Score" }, ((_c = data.viewerRank) === null || _c === void 0 ? void 0 : _c.textValue) || "0"))))));
|
|
220
219
|
}
|
|
221
220
|
|
|
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
|
+
|
|
222
295
|
function BigStatView(props) {
|
|
223
296
|
const { statvalue, flexReverse, alignment } = props;
|
|
224
297
|
// Dependent on props, not feasiable to move out
|
|
@@ -254,7 +327,7 @@ function BigStatView(props) {
|
|
|
254
327
|
index.h("div", { part: "stat-description", class: sheet.classes.Description }, props.labelSlot)));
|
|
255
328
|
}
|
|
256
329
|
|
|
257
|
-
const style$
|
|
330
|
+
const style$3 = {
|
|
258
331
|
HostBlock: mixins.HostBlock,
|
|
259
332
|
Frame: {
|
|
260
333
|
display: "flex",
|
|
@@ -288,17 +361,17 @@ const style$2 = {
|
|
|
288
361
|
},
|
|
289
362
|
},
|
|
290
363
|
};
|
|
291
|
-
const sheet$
|
|
292
|
-
const styleString$
|
|
364
|
+
const sheet$3 = JSS.createStyleSheet(style$3);
|
|
365
|
+
const styleString$3 = sheet$3.toString();
|
|
293
366
|
function PortalFrameView(props, children) {
|
|
294
367
|
const { data, notFullScreen } = props;
|
|
295
|
-
return (index.h("div", { style: { minHeight: notFullScreen ? "100%" : "100vh" }, class: sheet$
|
|
296
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
297
|
-
index.h("div", { class: sheet$
|
|
368
|
+
return (index.h("div", { style: { minHeight: notFullScreen ? "100%" : "100vh" }, class: sheet$3.classes.Frame, part: "sqm-base" },
|
|
369
|
+
index.h("style", { type: "text/css" }, styleString$3),
|
|
370
|
+
index.h("div", { class: sheet$3.classes.HeaderWrapper, part: "sqm-header" },
|
|
298
371
|
data.header,
|
|
299
372
|
index.h("slot", { name: "sqm-navigation-menu" })),
|
|
300
373
|
children,
|
|
301
|
-
index.h("div", { class: sheet$
|
|
374
|
+
index.h("div", { class: sheet$3.classes.FooterWrapper, part: "sqm-footer" }, data.footer)));
|
|
302
375
|
}
|
|
303
376
|
|
|
304
377
|
const EditProfileView = (props) => {
|
|
@@ -378,19 +451,13 @@ function useShareLink(props) {
|
|
|
378
451
|
const { programId = index_module.H() } = props;
|
|
379
452
|
const user = index_module.Q();
|
|
380
453
|
const engagementMedium = index_module.B();
|
|
381
|
-
const
|
|
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);
|
|
454
|
+
const { data } = index_module.yn(MessageLinkQuery, { programId, engagementMedium }, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
383
455
|
const [sendLoadEvent] = index_module.$e(WIDGET_ENGAGEMENT_EVENT);
|
|
384
|
-
const
|
|
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 :
|
|
456
|
+
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 :
|
|
386
457
|
// Shown during loading
|
|
387
458
|
"...";
|
|
388
459
|
const [open, setOpen] = stencilHooks_module.useState(false);
|
|
389
|
-
|
|
390
|
-
if (contextData) {
|
|
391
|
-
await setCopied({ referralCode: contextData.referralCode });
|
|
392
|
-
contextData.refresh();
|
|
393
|
-
}
|
|
460
|
+
function onClick() {
|
|
394
461
|
// Should well supported: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
|
|
395
462
|
// Only if called from a user-initiated event
|
|
396
463
|
navigator.clipboard.writeText(copyString);
|
|
@@ -449,64 +516,54 @@ function NativeShare(props, directLink, undefinedErrorText, unsupportedPlatformT
|
|
|
449
516
|
alert(unsupportedPlatformText);
|
|
450
517
|
}
|
|
451
518
|
}
|
|
452
|
-
function FacebookShare(directLink,
|
|
453
|
-
|
|
519
|
+
function FacebookShare(directLink, res, errorText) {
|
|
520
|
+
var _a, _b;
|
|
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") {
|
|
454
523
|
return alert(errorText);
|
|
455
524
|
}
|
|
456
525
|
if (typeof SquatchAndroid.shareOnFacebook !== "undefined") {
|
|
457
|
-
return SquatchAndroid.shareOnFacebook(directLink, messageLink);
|
|
526
|
+
return SquatchAndroid.shareOnFacebook(directLink, res.data.viewer.messageLink);
|
|
458
527
|
}
|
|
459
528
|
else {
|
|
460
|
-
return GenericShare(
|
|
529
|
+
return GenericShare(res, errorText);
|
|
461
530
|
}
|
|
462
531
|
}
|
|
463
|
-
function GenericShare(
|
|
464
|
-
|
|
532
|
+
function GenericShare(res, errorText) {
|
|
533
|
+
var _a, _b;
|
|
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);
|
|
465
536
|
}
|
|
466
537
|
function useShareButton(props) {
|
|
467
538
|
var _a, _b;
|
|
468
539
|
const { sharetitle, sharetext, medium } = props;
|
|
469
540
|
const programId = props.programId ? props.programId : index_module.H();
|
|
470
541
|
const user = index_module.Q();
|
|
471
|
-
const engagementMedium = index_module.B();
|
|
472
542
|
const variables = {
|
|
473
|
-
engagementMedium,
|
|
543
|
+
engagementMedium: index_module.B(),
|
|
474
544
|
programId: programId,
|
|
475
545
|
shareMedium: medium.toUpperCase(),
|
|
476
546
|
};
|
|
477
|
-
const contextData = index_module.In(copyTextView.REFERRAL_CODES_NAMESPACE);
|
|
478
|
-
const overrideData = contextData === null || contextData === void 0 ? void 0 : contextData[medium];
|
|
479
547
|
// only queries if a programId is available
|
|
480
|
-
const res = index_module.yn(MessageLinkQuery$1, variables, !(user === null || user === void 0 ? void 0 : user.jwt) || !programId
|
|
481
|
-
const
|
|
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);
|
|
548
|
+
const res = index_module.yn(MessageLinkQuery$1, variables, !(user === null || user === void 0 ? void 0 : user.jwt) || !programId);
|
|
549
|
+
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;
|
|
483
550
|
const environment = index_module.getEnvironmentSDK();
|
|
484
551
|
const hide = (medium.toLocaleUpperCase() === "SMS" &&
|
|
485
552
|
window.orientation === undefined) ||
|
|
486
553
|
(medium.toLocaleUpperCase() === "DIRECT" && !window.navigator.share);
|
|
487
|
-
|
|
488
|
-
var _a, _b, _c, _d;
|
|
489
|
-
if (overrideData) {
|
|
490
|
-
await setCopied({ referralCode: contextData.referralCode });
|
|
491
|
-
contextData.refresh();
|
|
492
|
-
}
|
|
554
|
+
function onClick() {
|
|
493
555
|
if (medium.toLocaleUpperCase() === "FACEBOOK" &&
|
|
494
556
|
environment.type === "SquatchAndroid") {
|
|
495
|
-
FacebookShare(directLink,
|
|
557
|
+
FacebookShare(directLink, res, props.errorText);
|
|
496
558
|
}
|
|
497
559
|
else if (medium.toLocaleUpperCase() === "DIRECT") {
|
|
498
560
|
NativeShare({ sharetitle, sharetext }, directLink, props.errorText, props.unsupportedPlatformText);
|
|
499
561
|
}
|
|
500
562
|
else {
|
|
501
|
-
GenericShare(
|
|
563
|
+
GenericShare(res, props.errorText);
|
|
502
564
|
}
|
|
503
565
|
}
|
|
504
|
-
return {
|
|
505
|
-
...props,
|
|
506
|
-
loading: res.loading && !(overrideData === null || overrideData === void 0 ? void 0 : overrideData.messageLink),
|
|
507
|
-
onClick,
|
|
508
|
-
hide,
|
|
509
|
-
};
|
|
566
|
+
return { ...props, loading: res.loading, onClick, hide };
|
|
510
567
|
}
|
|
511
568
|
|
|
512
569
|
const debug = stencilHooks_module.browser("sq:useBigStat");
|
|
@@ -1579,7 +1636,7 @@ function PortalChangePasswordView(props) {
|
|
|
1579
1636
|
index.h("style", { type: "text/css" }, styleString))));
|
|
1580
1637
|
}
|
|
1581
1638
|
|
|
1582
|
-
const style$
|
|
1639
|
+
const style$4 = {
|
|
1583
1640
|
Wrapper: mixins.AuthWrapper,
|
|
1584
1641
|
Column: mixins.AuthColumn,
|
|
1585
1642
|
ForgotButtonContainer: {
|
|
@@ -1592,7 +1649,7 @@ const style$3 = {
|
|
|
1592
1649
|
},
|
|
1593
1650
|
ButtonsContainer: mixins.AuthButtonsContainer,
|
|
1594
1651
|
};
|
|
1595
|
-
const vanillaStyle$
|
|
1652
|
+
const vanillaStyle$2 = `
|
|
1596
1653
|
:host {
|
|
1597
1654
|
display: block;
|
|
1598
1655
|
}
|
|
@@ -1600,28 +1657,28 @@ const vanillaStyle$1 = `
|
|
|
1600
1657
|
display: none;
|
|
1601
1658
|
}
|
|
1602
1659
|
`;
|
|
1603
|
-
const sheet$
|
|
1604
|
-
const styleString$
|
|
1660
|
+
const sheet$4 = JSS.createStyleSheet(style$4);
|
|
1661
|
+
const styleString$4 = sheet$4.toString();
|
|
1605
1662
|
function PortalLoginView(props) {
|
|
1606
1663
|
const { states, callbacks, content } = props;
|
|
1607
|
-
return (index.h("div", { class: sheet$
|
|
1664
|
+
return (index.h("div", { class: sheet$4.classes.Wrapper, part: "sqm-base" },
|
|
1608
1665
|
index.h("style", { type: "text/css" },
|
|
1609
|
-
vanillaStyle$
|
|
1610
|
-
styleString$
|
|
1666
|
+
vanillaStyle$2,
|
|
1667
|
+
styleString$4),
|
|
1611
1668
|
index.h(sqmTextSpanView.TextSpanView, { type: "h3" }, content.pageLabel),
|
|
1612
|
-
index.h("sl-form", { class: sheet$
|
|
1669
|
+
index.h("sl-form", { class: sheet$4.classes.Column, "onSl-submit": callbacks.submit },
|
|
1613
1670
|
props.states.error && (index.h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
|
|
1614
1671
|
index.h("div", { part: "erroralert-text" }, props.states.error))),
|
|
1615
1672
|
index.h("sl-input", { exportparts: "label: input-label, base: input-base", type: "email", name: "/email", label: content.emailLabel || "Email", disabled: states.loading, required: true }),
|
|
1616
1673
|
index.h("div", null,
|
|
1617
1674
|
index.h("sl-input", { exportparts: "label: input-label, base: input-base", type: "password", name: "/password", label: content.passwordLabel || "Password", disabled: states.loading, required: true }),
|
|
1618
|
-
index.h("div", { class: sheet$
|
|
1619
|
-
index.h("div", { class: sheet$
|
|
1675
|
+
index.h("div", { class: sheet$4.classes.ForgotButtonContainer }, content.forgotPasswordButton)),
|
|
1676
|
+
index.h("div", { class: sheet$4.classes.ButtonsContainer },
|
|
1620
1677
|
index.h("sl-button", { submit: true, loading: states.loading, exportparts: "base: primarybutton-base", type: "primary" }, content.submitLabel || "Login"),
|
|
1621
1678
|
content.secondaryButton))));
|
|
1622
1679
|
}
|
|
1623
1680
|
|
|
1624
|
-
const style$
|
|
1681
|
+
const style$5 = {
|
|
1625
1682
|
Wrapper: { ...mixins.AuthWrapper, "max-width": "600px" },
|
|
1626
1683
|
Column: mixins.AuthColumn,
|
|
1627
1684
|
HostBlock: mixins.HostBlock,
|
|
@@ -1632,7 +1689,7 @@ const style$4 = {
|
|
|
1632
1689
|
ButtonsContainer: mixins.AuthButtonsContainer,
|
|
1633
1690
|
ErrorStyle: mixins.ErrorStyles,
|
|
1634
1691
|
};
|
|
1635
|
-
const vanillaStyle$
|
|
1692
|
+
const vanillaStyle$3 = `
|
|
1636
1693
|
sqm-portal-register {
|
|
1637
1694
|
margin: 0 auto;
|
|
1638
1695
|
width: 100%;
|
|
@@ -1647,20 +1704,20 @@ sqm-portal-register {
|
|
|
1647
1704
|
display: none;
|
|
1648
1705
|
}
|
|
1649
1706
|
`;
|
|
1650
|
-
const sheet$
|
|
1651
|
-
const styleString$
|
|
1707
|
+
const sheet$5 = JSS.createStyleSheet(style$5);
|
|
1708
|
+
const styleString$5 = sheet$5.toString();
|
|
1652
1709
|
function PortalRegisterView(props) {
|
|
1653
1710
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1654
1711
|
const { states, refs, callbacks, content } = props;
|
|
1655
1712
|
if (states.error) {
|
|
1656
1713
|
window.scrollTo({ top: 0, left: 0, behavior: "smooth" });
|
|
1657
1714
|
}
|
|
1658
|
-
return (index.h("div", { class: sheet$
|
|
1715
|
+
return (index.h("div", { class: sheet$5.classes.Wrapper, part: "sqm-base" },
|
|
1659
1716
|
index.h("style", { type: "text/css" },
|
|
1660
|
-
vanillaStyle$
|
|
1661
|
-
styleString$
|
|
1717
|
+
vanillaStyle$3,
|
|
1718
|
+
styleString$5),
|
|
1662
1719
|
index.h(sqmTextSpanView.TextSpanView, { type: "h3" }, content.pageLabel),
|
|
1663
|
-
index.h("sl-form", { class: sheet$
|
|
1720
|
+
index.h("sl-form", { class: sheet$5.classes.Column, "onSl-submit": callbacks.submit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
1664
1721
|
states.error && (index.h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
|
|
1665
1722
|
index.h("div", { part: "erroralert-text" }, props.states.error))),
|
|
1666
1723
|
content.formData,
|
|
@@ -1673,7 +1730,7 @@ function PortalRegisterView(props) {
|
|
|
1673
1730
|
return content.invalidEmailErrorMessage;
|
|
1674
1731
|
}
|
|
1675
1732
|
} }, (((_b = (_a = states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors) === null || _b === void 0 ? void 0 : _b.email) ? {
|
|
1676
|
-
class: sheet$
|
|
1733
|
+
class: sheet$5.classes.ErrorStyle,
|
|
1677
1734
|
helpText: ((_d = (_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.validationErrors) === null || _d === void 0 ? void 0 : _d.email) ||
|
|
1678
1735
|
content.requiredFieldErrorMessage,
|
|
1679
1736
|
}
|
|
@@ -1681,17 +1738,17 @@ function PortalRegisterView(props) {
|
|
|
1681
1738
|
!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 })),
|
|
1682
1739
|
content.passwordField,
|
|
1683
1740
|
!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) ? {
|
|
1684
|
-
class: sheet$
|
|
1741
|
+
class: sheet$5.classes.ErrorStyle,
|
|
1685
1742
|
helpText: ((_h = (_g = states.registrationFormState) === null || _g === void 0 ? void 0 : _g.validationErrors) === null || _h === void 0 ? void 0 : _h.confirmPassword) || content.requiredFieldErrorMessage,
|
|
1686
1743
|
}
|
|
1687
1744
|
: [])))),
|
|
1688
1745
|
content.terms,
|
|
1689
|
-
index.h("div", { class: sheet$
|
|
1746
|
+
index.h("div", { class: sheet$5.classes.ButtonsContainer },
|
|
1690
1747
|
index.h("sl-button", { submit: true, loading: states.loading, exportparts: "base: primarybutton-base", type: "primary" }, content.submitLabel || "Register"),
|
|
1691
1748
|
content.secondaryButton))));
|
|
1692
1749
|
}
|
|
1693
1750
|
|
|
1694
|
-
const style$
|
|
1751
|
+
const style$6 = {
|
|
1695
1752
|
Description: {
|
|
1696
1753
|
"& input[type=checkbox]": {
|
|
1697
1754
|
display: "none",
|
|
@@ -1730,13 +1787,13 @@ const style$5 = {
|
|
|
1730
1787
|
},
|
|
1731
1788
|
},
|
|
1732
1789
|
};
|
|
1733
|
-
const sheet$
|
|
1734
|
-
const styleString$
|
|
1790
|
+
const sheet$6 = JSS.createStyleSheet(style$6);
|
|
1791
|
+
const styleString$6 = sheet$6.toString();
|
|
1735
1792
|
function Details(props) {
|
|
1736
1793
|
const rid = Math.random().toString(36).slice(2);
|
|
1737
1794
|
return (index.h("div", { style: { opacity: props.opacity } },
|
|
1738
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
1739
|
-
index.h("span", { class: sheet$
|
|
1795
|
+
index.h("style", { type: "text/css" }, styleString$6),
|
|
1796
|
+
index.h("span", { class: sheet$6.classes.Description },
|
|
1740
1797
|
index.h("input", { type: "checkbox", id: "details-" + rid }),
|
|
1741
1798
|
index.h("label", { class: "details", htmlFor: "details-" + rid },
|
|
1742
1799
|
index.h("sl-icon", { exportparts: "base: chevron-icon", name: "chevron-down" })),
|
|
@@ -1758,7 +1815,7 @@ const GreyGift = () => {
|
|
|
1758
1815
|
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" })));
|
|
1759
1816
|
};
|
|
1760
1817
|
|
|
1761
|
-
const style$
|
|
1818
|
+
const style$7 = {
|
|
1762
1819
|
ProgressBar: {
|
|
1763
1820
|
"& .progress-bar": {
|
|
1764
1821
|
height: "0",
|
|
@@ -1870,14 +1927,14 @@ const style$6 = {
|
|
|
1870
1927
|
},
|
|
1871
1928
|
},
|
|
1872
1929
|
};
|
|
1873
|
-
const sheet$
|
|
1874
|
-
const styleString$
|
|
1930
|
+
const sheet$7 = JSS.createStyleSheet(style$7, { classNamePrefix: "sqm-prog-bar" });
|
|
1931
|
+
const styleString$7 = sheet$7.toString();
|
|
1875
1932
|
function ProgressBarView(props) {
|
|
1876
1933
|
const { progress = 0, goal = 1, steps = false, progressBarUnit = "", repeatable = false, complete = false, expired = false, finite = 0, opacity = "1", } = props;
|
|
1877
1934
|
let aggregate = buildProgressBar(repeatable, steps, props);
|
|
1878
1935
|
const { columns, items } = aggregate;
|
|
1879
|
-
return (index.h("div", { class: sheet$
|
|
1880
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
1936
|
+
return (index.h("div", { class: sheet$7.classes.ProgressBar, "data-expired": expired, "data-complete": complete, "data-steps": steps, "data-done": goal <= progress, style: { opacity: opacity } },
|
|
1937
|
+
index.h("style", { type: "text/css" }, styleString$7),
|
|
1881
1938
|
index.h("div", { class: (!Boolean(finite) && progress >= 2 * goal) ||
|
|
1882
1939
|
(Boolean(finite) && progress > 2 * goal)
|
|
1883
1940
|
? "progress-bar repeatable-steps"
|
|
@@ -2168,7 +2225,7 @@ const arrow_left_right = () => {
|
|
|
2168
2225
|
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" })));
|
|
2169
2226
|
};
|
|
2170
2227
|
|
|
2171
|
-
const style$
|
|
2228
|
+
const style$8 = {
|
|
2172
2229
|
TaskCard: {
|
|
2173
2230
|
display: "inline-block",
|
|
2174
2231
|
width: "100%",
|
|
@@ -2322,8 +2379,8 @@ const style$7 = {
|
|
|
2322
2379
|
},
|
|
2323
2380
|
},
|
|
2324
2381
|
};
|
|
2325
|
-
const sheet$
|
|
2326
|
-
const styleString$
|
|
2382
|
+
const sheet$8 = JSS.createStyleSheet(style$8);
|
|
2383
|
+
const styleString$8 = sheet$8.toString();
|
|
2327
2384
|
function TaskCardView(props) {
|
|
2328
2385
|
var _a, _b;
|
|
2329
2386
|
const { callbacks, states, content } = props;
|
|
@@ -2359,11 +2416,11 @@ function TaskCardView(props) {
|
|
|
2359
2416
|
}
|
|
2360
2417
|
|
|
2361
2418
|
`;
|
|
2362
|
-
return (index.h("div", { class: sheet$
|
|
2419
|
+
return (index.h("div", { class: sheet$8.classes.TaskCard, part: "sqm-base" },
|
|
2363
2420
|
index.h("style", { type: "text/css" },
|
|
2364
|
-
styleString$
|
|
2421
|
+
styleString$8,
|
|
2365
2422
|
vanillaStyle),
|
|
2366
|
-
!states.loading && taskNotStarted && (index.h("div", { class: sheet$
|
|
2423
|
+
!states.loading && taskNotStarted && (index.h("div", { class: sheet$8.classes.NotStarted },
|
|
2367
2424
|
index.h("span", { class: "icon" },
|
|
2368
2425
|
index.h("sl-icon", { name: "info-circle-fill" })),
|
|
2369
2426
|
global.intl.formatMessage({
|
|
@@ -2374,7 +2431,7 @@ function TaskCardView(props) {
|
|
|
2374
2431
|
.setLocale(utils.luxonLocale(states.locale))
|
|
2375
2432
|
.toLocaleString(luxon.luxon.DateTime.DATETIME_MED),
|
|
2376
2433
|
}))),
|
|
2377
|
-
!states.loading && taskEnded && (index.h("div", { class: sheet$
|
|
2434
|
+
!states.loading && taskEnded && (index.h("div", { class: sheet$8.classes.Ended },
|
|
2378
2435
|
index.h("span", { class: "icon" },
|
|
2379
2436
|
index.h("sl-icon", { exportparts: "base: task-card-icon", name: "exclamation-triangle-fill" })),
|
|
2380
2437
|
global.intl.formatMessage({
|
|
@@ -2394,7 +2451,7 @@ function TaskCardView(props) {
|
|
|
2394
2451
|
? "main complete"
|
|
2395
2452
|
: "main" },
|
|
2396
2453
|
index.h("div", { class: "container", part: "sqm-card-container", "data-subdue": taskComplete || taskUnavailable },
|
|
2397
|
-
index.h("div", { class: sheet$
|
|
2454
|
+
index.h("div", { class: sheet$8.classes.Header, style: { opacity: taskComplete || taskUnavailable ? "0.45" : "1" } }, states.loading ? (index.h("sl-skeleton", { style: { width: "22%", margin: "0" } })) : (index.h("div", null,
|
|
2398
2455
|
showComplete && (index.h("span", { class: taskUnavailable ? "icon neutral" : "icon" }, taskComplete ? checkmark_filled$1 : checkmark_circle$1)),
|
|
2399
2456
|
index.h("span", { part: "sqm-value", class: "value" }, content.rewardAmount),
|
|
2400
2457
|
index.h("span", { part: "sqm-unit", class: "text" }, content.rewardUnit)))),
|
|
@@ -2410,7 +2467,7 @@ function TaskCardView(props) {
|
|
|
2410
2467
|
} }, content.cardTitle)),
|
|
2411
2468
|
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" })))),
|
|
2412
2469
|
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 })))),
|
|
2413
|
-
index.h("div", { class: sheet$
|
|
2470
|
+
index.h("div", { class: sheet$8.classes.Footer, "data-subdue": taskComplete || taskUnavailable }, states.loading ? (index.h("sl-skeleton", { style: { width: "25%", marginLeft: "auto" } })) : (index.h("div", { style: { display: "contents" } },
|
|
2414
2471
|
index.h("span", { class: "text" },
|
|
2415
2472
|
content.repeatable && (index.h("div", null,
|
|
2416
2473
|
index.h("span", { class: repetitions > 0
|
|
@@ -2481,7 +2538,7 @@ function PoweredByImg({ color = "#A6A6A6", width = 120, height = 16, }) {
|
|
|
2481
2538
|
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 })));
|
|
2482
2539
|
}
|
|
2483
2540
|
|
|
2484
|
-
const vanillaStyle$
|
|
2541
|
+
const vanillaStyle$4 = `
|
|
2485
2542
|
:host{
|
|
2486
2543
|
margin: 0 auto;
|
|
2487
2544
|
width: 100%;
|
|
@@ -2537,7 +2594,7 @@ function PortalFooterView(props) {
|
|
|
2537
2594
|
const styleString = sheet.toString();
|
|
2538
2595
|
return (index.h("div", { class: sheet.classes.Container, part: "sqm-base" },
|
|
2539
2596
|
index.h("style", { type: "text/css" },
|
|
2540
|
-
vanillaStyle$
|
|
2597
|
+
vanillaStyle$4,
|
|
2541
2598
|
styleString),
|
|
2542
2599
|
index.h("div", { class: sheet.classes.RowContainer },
|
|
2543
2600
|
props.faqLink && (index.h("a", { target: "_blank", href: props.faqLink }, props.faqText)),
|
|
@@ -2709,7 +2766,7 @@ function ReferralIframeView(props) {
|
|
|
2709
2766
|
index.h("iframe", { class: sheet.classes.IFrame, src: `${content.iframeSrc}?rsCode=${data.shareCode}` })));
|
|
2710
2767
|
}
|
|
2711
2768
|
|
|
2712
|
-
const style$
|
|
2769
|
+
const style$9 = {
|
|
2713
2770
|
ErrorStyle: mixins.ErrorStyles,
|
|
2714
2771
|
FieldsContainer: {
|
|
2715
2772
|
"& sl-input": {
|
|
@@ -2717,7 +2774,7 @@ const style$8 = {
|
|
|
2717
2774
|
},
|
|
2718
2775
|
},
|
|
2719
2776
|
};
|
|
2720
|
-
const vanillaStyle$
|
|
2777
|
+
const vanillaStyle$5 = `
|
|
2721
2778
|
:host {
|
|
2722
2779
|
margin: 0 auto;
|
|
2723
2780
|
width: 100%;
|
|
@@ -2729,21 +2786,21 @@ sl-input::part(label){
|
|
|
2729
2786
|
font-weight: var(--sl-font-weight-semibold);
|
|
2730
2787
|
}
|
|
2731
2788
|
`;
|
|
2732
|
-
const sheet$
|
|
2733
|
-
const styleString$
|
|
2789
|
+
const sheet$9 = JSS.createStyleSheet(style$9);
|
|
2790
|
+
const styleString$9 = sheet$9.toString();
|
|
2734
2791
|
function NameFieldsView(props) {
|
|
2735
2792
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
2736
2793
|
const { states } = props;
|
|
2737
2794
|
const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
|
|
2738
|
-
return (index.h("div", { class: sheet$
|
|
2795
|
+
return (index.h("div", { class: sheet$9.classes.FieldsContainer },
|
|
2739
2796
|
index.h("style", { type: "text/css" },
|
|
2740
|
-
vanillaStyle$
|
|
2741
|
-
styleString$
|
|
2797
|
+
vanillaStyle$5,
|
|
2798
|
+
styleString$9),
|
|
2742
2799
|
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) ? {
|
|
2743
2800
|
value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g.firstName,
|
|
2744
2801
|
}
|
|
2745
2802
|
: {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.firstName) ? {
|
|
2746
|
-
class: sheet$
|
|
2803
|
+
class: sheet$9.classes.ErrorStyle,
|
|
2747
2804
|
helpText: (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.firstName) || "Cannot be empty",
|
|
2748
2805
|
}
|
|
2749
2806
|
: []))),
|
|
@@ -2751,13 +2808,13 @@ function NameFieldsView(props) {
|
|
|
2751
2808
|
value: (_o = (_m = states.registrationFormState) === null || _m === void 0 ? void 0 : _m.initialData) === null || _o === void 0 ? void 0 : _o.lastName,
|
|
2752
2809
|
}
|
|
2753
2810
|
: {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.lastName) ? {
|
|
2754
|
-
class: sheet$
|
|
2811
|
+
class: sheet$9.classes.ErrorStyle,
|
|
2755
2812
|
helpText: (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.lastName) || "Cannot be empty",
|
|
2756
2813
|
}
|
|
2757
2814
|
: [])))));
|
|
2758
2815
|
}
|
|
2759
2816
|
|
|
2760
|
-
const style$
|
|
2817
|
+
const style$a = {
|
|
2761
2818
|
ErrorStyle: {
|
|
2762
2819
|
"&::part(control)": {
|
|
2763
2820
|
background: "var(--sl-color-danger-10)",
|
|
@@ -2780,7 +2837,7 @@ const style$9 = {
|
|
|
2780
2837
|
"margin-bottom": "var(--sl-spacing-large)",
|
|
2781
2838
|
},
|
|
2782
2839
|
};
|
|
2783
|
-
const vanillaStyle$
|
|
2840
|
+
const vanillaStyle$6 = `
|
|
2784
2841
|
:host {
|
|
2785
2842
|
margin: 0 auto;
|
|
2786
2843
|
width: 100%;
|
|
@@ -2796,22 +2853,22 @@ sl-checkbox::part(base){
|
|
|
2796
2853
|
}
|
|
2797
2854
|
`;
|
|
2798
2855
|
JSS.jss.setup(JSS.create());
|
|
2799
|
-
const sheet$
|
|
2800
|
-
const styleString$
|
|
2856
|
+
const sheet$a = JSS.jss.createStyleSheet(style$a);
|
|
2857
|
+
const styleString$a = sheet$a.toString();
|
|
2801
2858
|
function CheckboxFieldView(props) {
|
|
2802
2859
|
var _a, _b, _c;
|
|
2803
2860
|
const { states, content, callbacks } = props;
|
|
2804
2861
|
const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
|
|
2805
|
-
return (index.h("div", { class: sheet$
|
|
2862
|
+
return (index.h("div", { class: sheet$a.classes.FieldContainer, part: "sqm-base" },
|
|
2806
2863
|
index.h("style", { type: "text/css" },
|
|
2807
|
-
vanillaStyle$
|
|
2808
|
-
styleString$
|
|
2864
|
+
vanillaStyle$6,
|
|
2865
|
+
styleString$a),
|
|
2809
2866
|
index.h("sl-checkbox", Object.assign({ exportparts: "label: input-label, base: input-base", name: `/${content.checkboxName}`, checked: states.checked, "onSl-change": (e) => {
|
|
2810
2867
|
e.target.value = e.target.checked;
|
|
2811
2868
|
callbacks.setChecked(e.target.value);
|
|
2812
2869
|
} }, (!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])
|
|
2813
2870
|
? {
|
|
2814
|
-
class: sheet$
|
|
2871
|
+
class: sheet$a.classes.ErrorStyle,
|
|
2815
2872
|
}
|
|
2816
2873
|
: [])),
|
|
2817
2874
|
global.intl.formatMessage({
|
|
@@ -2820,13 +2877,13 @@ function CheckboxFieldView(props) {
|
|
|
2820
2877
|
}, {
|
|
2821
2878
|
labelLink: (index.h("a", { href: content.checkboxLabelLink, target: "_blank" }, content.checkboxLabelLinkText || content.checkboxLabelLink)),
|
|
2822
2879
|
}),
|
|
2823
|
-
!states.checked && (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.checkboxName]) && (index.h("p", { class: sheet$
|
|
2880
|
+
!states.checked && (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.checkboxName]) && (index.h("p", { class: sheet$a.classes.ErrorMessageStyle }, global.intl.formatMessage({
|
|
2824
2881
|
id: `errorMessage-${content.checkboxName}`,
|
|
2825
2882
|
defaultMessage: content.errorMessage,
|
|
2826
2883
|
}))))));
|
|
2827
2884
|
}
|
|
2828
2885
|
|
|
2829
|
-
const style$
|
|
2886
|
+
const style$b = {
|
|
2830
2887
|
ErrorStyle: {
|
|
2831
2888
|
"--sl-input-border-color": "var(--sl-color-danger-500)",
|
|
2832
2889
|
"--sl-input-background-color": "var(--sl-color-danger-10)",
|
|
@@ -2842,7 +2899,7 @@ const style$a = {
|
|
|
2842
2899
|
"margin-bottom": "var(--sl-spacing-large)",
|
|
2843
2900
|
},
|
|
2844
2901
|
};
|
|
2845
|
-
const vanillaStyle$
|
|
2902
|
+
const vanillaStyle$7 = `
|
|
2846
2903
|
:host {
|
|
2847
2904
|
margin: 0 auto;
|
|
2848
2905
|
width: 100%;
|
|
@@ -2854,36 +2911,36 @@ sl-select::part(label){
|
|
|
2854
2911
|
}
|
|
2855
2912
|
`;
|
|
2856
2913
|
JSS.jss.setup(JSS.create());
|
|
2857
|
-
const sheet$
|
|
2858
|
-
const styleString$
|
|
2914
|
+
const sheet$b = JSS.jss.createStyleSheet(style$b);
|
|
2915
|
+
const styleString$b = sheet$b.toString();
|
|
2859
2916
|
function DropdownFieldView(props) {
|
|
2860
2917
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
2861
2918
|
const { states, content } = props;
|
|
2862
2919
|
const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
|
|
2863
|
-
return (index.h("div", { class: sheet$
|
|
2920
|
+
return (index.h("div", { class: sheet$b.classes.FieldContainer, part: "sqm-base" },
|
|
2864
2921
|
index.h("style", { type: "text/css" },
|
|
2865
|
-
vanillaStyle$
|
|
2866
|
-
styleString$
|
|
2922
|
+
vanillaStyle$7,
|
|
2923
|
+
styleString$b),
|
|
2867
2924
|
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]) ? {
|
|
2868
2925
|
value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g[content.dropdownName],
|
|
2869
2926
|
}
|
|
2870
2927
|
: {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.dropdownName]) ? {
|
|
2871
|
-
class: sheet$
|
|
2928
|
+
class: sheet$b.classes.ErrorStyle,
|
|
2872
2929
|
}
|
|
2873
2930
|
: [])), content.selectOptions),
|
|
2874
|
-
(validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.dropdownName]) && (index.h("p", { class: sheet$
|
|
2931
|
+
(validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.dropdownName]) && (index.h("p", { class: sheet$b.classes.ErrorMessageStyle }, global.intl.formatMessage({
|
|
2875
2932
|
id: `errorMessage-${content.dropdownName}`,
|
|
2876
2933
|
defaultMessage: content.errorMessage,
|
|
2877
2934
|
})))));
|
|
2878
2935
|
}
|
|
2879
2936
|
|
|
2880
|
-
const style$
|
|
2937
|
+
const style$c = {
|
|
2881
2938
|
ErrorStyle: mixins.ErrorStyles,
|
|
2882
2939
|
FieldContainer: {
|
|
2883
2940
|
"margin-bottom": "var(--sl-spacing-large)",
|
|
2884
2941
|
},
|
|
2885
2942
|
};
|
|
2886
|
-
const vanillaStyle$
|
|
2943
|
+
const vanillaStyle$8 = `
|
|
2887
2944
|
:host {
|
|
2888
2945
|
margin: 0 auto;
|
|
2889
2946
|
width: 100%;
|
|
@@ -2891,21 +2948,21 @@ const vanillaStyle$7 = `
|
|
|
2891
2948
|
}
|
|
2892
2949
|
`;
|
|
2893
2950
|
JSS.jss.setup(JSS.create());
|
|
2894
|
-
const sheet$
|
|
2895
|
-
const styleString$
|
|
2951
|
+
const sheet$c = JSS.jss.createStyleSheet(style$c);
|
|
2952
|
+
const styleString$c = sheet$c.toString();
|
|
2896
2953
|
function InputFieldView(props) {
|
|
2897
2954
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
2898
2955
|
const { states, content } = props;
|
|
2899
2956
|
const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
|
|
2900
|
-
return (index.h("div", { class: sheet$
|
|
2957
|
+
return (index.h("div", { class: sheet$c.classes.FieldContainer, part: "sqm-base" },
|
|
2901
2958
|
index.h("style", { type: "text/css" },
|
|
2902
|
-
vanillaStyle$
|
|
2903
|
-
styleString$
|
|
2959
|
+
vanillaStyle$8,
|
|
2960
|
+
styleString$c),
|
|
2904
2961
|
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]) ? {
|
|
2905
2962
|
value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g[content.fieldName],
|
|
2906
2963
|
}
|
|
2907
2964
|
: {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.fieldName]) ? {
|
|
2908
|
-
class: sheet$
|
|
2965
|
+
class: sheet$c.classes.ErrorStyle,
|
|
2909
2966
|
helpText: global.intl.formatMessage({
|
|
2910
2967
|
id: `errorMessage-${content.fieldName}`,
|
|
2911
2968
|
defaultMessage: content.errorMessage || (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.fieldName]),
|
|
@@ -3000,7 +3057,7 @@ function ProgressBar({ stageCount, currentStage, }) {
|
|
|
3000
3057
|
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 })))));
|
|
3001
3058
|
}
|
|
3002
3059
|
|
|
3003
|
-
const style$
|
|
3060
|
+
const style$d = {
|
|
3004
3061
|
HostBlock: mixins.HostBlock,
|
|
3005
3062
|
Container: {
|
|
3006
3063
|
minWidth: "300px",
|
|
@@ -3351,8 +3408,8 @@ const style$c = {
|
|
|
3351
3408
|
},
|
|
3352
3409
|
};
|
|
3353
3410
|
// JSS config
|
|
3354
|
-
const sheet$
|
|
3355
|
-
const styleString$
|
|
3411
|
+
const sheet$d = JSS.createStyleSheet(style$d);
|
|
3412
|
+
const styleString$d = sheet$d.toString();
|
|
3356
3413
|
const stageList = ["chooseReward", "chooseAmount", "confirmation", "success"];
|
|
3357
3414
|
function RewardExchangeView(props) {
|
|
3358
3415
|
const { states, data, callbacks, refs } = props;
|
|
@@ -3375,7 +3432,7 @@ function RewardExchangeView(props) {
|
|
|
3375
3432
|
sourceUnit: item.sourceUnit,
|
|
3376
3433
|
})));
|
|
3377
3434
|
}
|
|
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$
|
|
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$d.classes.Select, value: states.selectedStep, "onSl-select": (e) => {
|
|
3379
3436
|
var _a, _b, _c, _d, _e;
|
|
3380
3437
|
return callbacks.setExchangeState({
|
|
3381
3438
|
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,
|
|
@@ -3383,7 +3440,7 @@ function RewardExchangeView(props) {
|
|
|
3383
3440
|
});
|
|
3384
3441
|
} }, (_c = item.steps) === null || _c === void 0 ? void 0 : _c.map((step) => {
|
|
3385
3442
|
var _a, _b;
|
|
3386
|
-
return (index.h("sl-menu-item", { value: step, disabled: !step.available, class: sheet$
|
|
3443
|
+
return (index.h("sl-menu-item", { value: step, disabled: !step.available, class: sheet$d.classes.SelectItem },
|
|
3387
3444
|
step.prettyDestinationValue,
|
|
3388
3445
|
index.h("br", null),
|
|
3389
3446
|
index.h("div", { class: "step-cost", slot: "suffix" },
|
|
@@ -3402,8 +3459,8 @@ function RewardExchangeView(props) {
|
|
|
3402
3459
|
var _a;
|
|
3403
3460
|
return [
|
|
3404
3461
|
index.h("div", { part: "choose-reward-container" },
|
|
3405
|
-
index.h("div", { class: sheet$
|
|
3406
|
-
states.loading || states.queryError ? (loading()) : (index.h("div", { class: sheet$
|
|
3462
|
+
index.h("div", { class: sheet$d.classes.Title }, states.content.text.rewardTitle),
|
|
3463
|
+
states.loading || states.queryError ? (loading()) : (index.h("div", { class: sheet$d.classes.Grid }, (_a = data.exchangeList) === null || _a === void 0 ? void 0 : _a.map((item) => {
|
|
3407
3464
|
var _a, _b, _c, _d, _e;
|
|
3408
3465
|
const style = {
|
|
3409
3466
|
boxShadow: item.key === (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.key)
|
|
@@ -3412,7 +3469,7 @@ function RewardExchangeView(props) {
|
|
|
3412
3469
|
borderRadius: "4px",
|
|
3413
3470
|
};
|
|
3414
3471
|
return (index.h("div", { key: item.key, style: style },
|
|
3415
|
-
index.h("sl-card", { exportparts: "base: exchange-card-container", class: sheet$
|
|
3472
|
+
index.h("sl-card", { exportparts: "base: exchange-card-container", class: sheet$d.classes.Card, style: {
|
|
3416
3473
|
cursor: item.unavailableReasonCode
|
|
3417
3474
|
? "not-allowed"
|
|
3418
3475
|
: "pointer",
|
|
@@ -3429,14 +3486,14 @@ function RewardExchangeView(props) {
|
|
|
3429
3486
|
? "rgba(0, 0, 0, 0.05)"
|
|
3430
3487
|
: "rgba(0, 0, 0, 0)",
|
|
3431
3488
|
} },
|
|
3432
|
-
index.h("div", { class: sheet$
|
|
3489
|
+
index.h("div", { class: sheet$d.classes.Image, style: {
|
|
3433
3490
|
opacity: item.unavailableReasonCode ? "0.5" : "1",
|
|
3434
3491
|
} },
|
|
3435
3492
|
index.h("img", { class: item.unavailableReasonCode
|
|
3436
3493
|
? "image subdued"
|
|
3437
3494
|
: "image", src: (item === null || item === void 0 ? void 0 : item.imageUrl) ||
|
|
3438
3495
|
index.getAssetPath("./assets/Reward-image.png") })),
|
|
3439
|
-
index.h("div", { class: sheet$
|
|
3496
|
+
index.h("div", { class: sheet$d.classes.TextArea, style: {
|
|
3440
3497
|
opacity: item.unavailableReasonCode ? "0.5" : "1",
|
|
3441
3498
|
} },
|
|
3442
3499
|
index.h("div", { class: "title", style: {
|
|
@@ -3469,7 +3526,7 @@ function RewardExchangeView(props) {
|
|
|
3469
3526
|
item.prettySourceMinValue,
|
|
3470
3527
|
}))))))));
|
|
3471
3528
|
}))),
|
|
3472
|
-
index.h("div", { class: sheet$
|
|
3529
|
+
index.h("div", { class: sheet$d.classes.Button },
|
|
3473
3530
|
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))),
|
|
3474
3531
|
];
|
|
3475
3532
|
}
|
|
@@ -3480,7 +3537,7 @@ function RewardExchangeView(props) {
|
|
|
3480
3537
|
? false
|
|
3481
3538
|
: input && !states.amount;
|
|
3482
3539
|
return (index.h("div", null,
|
|
3483
|
-
index.h("div", { class: sheet$
|
|
3540
|
+
index.h("div", { class: sheet$d.classes.ChooseAmount, part: "choose-amount-container" },
|
|
3484
3541
|
index.h("div", { class: "wrapper" },
|
|
3485
3542
|
index.h("img", { class: "image", src: (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.imageUrl) ||
|
|
3486
3543
|
index.getAssetPath("./assets/Reward-image.png") }),
|
|
@@ -3489,7 +3546,7 @@ function RewardExchangeView(props) {
|
|
|
3489
3546
|
((_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)),
|
|
3490
3547
|
((_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)),
|
|
3491
3548
|
index.h("div", { class: "space" }))),
|
|
3492
|
-
index.h("div", { class: sheet$
|
|
3549
|
+
index.h("div", { class: sheet$d.classes.Button },
|
|
3493
3550
|
index.h("sl-button", { exportparts: "base: secondarybutton-base", class: "cancel", size: "large", type: "text", onClick: () => callbacks.resetState() }, states.content.text.cancelText),
|
|
3494
3551
|
index.h("sl-button", { exportparts: "base: primarybutton-base", class: "continue", size: "large", onClick: () => callbacks.setStage("confirmation"), disabled: isDisabled }, states.content.text.continueToConfirmationText)))));
|
|
3495
3552
|
}
|
|
@@ -3497,8 +3554,8 @@ function RewardExchangeView(props) {
|
|
|
3497
3554
|
const cost = (selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettySourceValue) || selectedItem.prettySourceValue;
|
|
3498
3555
|
const amount = selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettyDestinationValue;
|
|
3499
3556
|
return (index.h("div", null,
|
|
3500
|
-
index.h("div", { class: sheet$
|
|
3501
|
-
index.h("div", { class: sheet$
|
|
3557
|
+
index.h("div", { class: sheet$d.classes.Confirmation, part: "confirmation-container" },
|
|
3558
|
+
index.h("div", { class: sheet$d.classes.Title }, states.content.text.redeemTitle),
|
|
3502
3559
|
index.h("div", { class: "wrapper" },
|
|
3503
3560
|
index.h("div", { class: "field" }, states.content.text.rewardNameTitle),
|
|
3504
3561
|
index.h("div", { class: "reward-item-container" },
|
|
@@ -3513,13 +3570,13 @@ function RewardExchangeView(props) {
|
|
|
3513
3570
|
index.h("div", { class: "wrapper top-border padding" },
|
|
3514
3571
|
index.h("div", { class: "field" }, states.content.text.costTitle),
|
|
3515
3572
|
index.h("div", { class: "value" }, cost)),
|
|
3516
|
-
index.h("div", { class: sheet$
|
|
3573
|
+
index.h("div", { class: sheet$d.classes.Button },
|
|
3517
3574
|
index.h("sl-button", { class: "cancel", type: "text", size: "large", onClick: () => callbacks.setStage("chooseAmount") }, states.content.text.backText),
|
|
3518
3575
|
index.h("sl-button", { class: "continue", size: "large", loading: states.loading, onClick: callbacks.exchangeReward }, states.content.text.redeemText)))));
|
|
3519
3576
|
}
|
|
3520
3577
|
function success() {
|
|
3521
3578
|
var _a, _b, _c, _d, _e, _f;
|
|
3522
|
-
return (index.h("div", { class: sheet$
|
|
3579
|
+
return (index.h("div", { class: sheet$d.classes.Success, part: "success-container" },
|
|
3523
3580
|
index.h(Gift$1, null),
|
|
3524
3581
|
index.h(Confetti, null),
|
|
3525
3582
|
index.h("div", { class: "title" }, (_a = states.content.text) === null || _a === void 0 ? void 0 : _a.rewardRedeemedText),
|
|
@@ -3533,8 +3590,8 @@ function RewardExchangeView(props) {
|
|
|
3533
3590
|
})),
|
|
3534
3591
|
(data === null || data === void 0 ? void 0 : data.fuelTankCode) && (index.h("div", { class: "promo" },
|
|
3535
3592
|
states.content.text.promoCode,
|
|
3536
|
-
index.h(
|
|
3537
|
-
index.h("div", { class: sheet$
|
|
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$d.classes.Button },
|
|
3538
3595
|
index.h("sl-button", { class: "continue center", type: "primary", size: "large", onClick: () => callbacks.resetState(true) }, states.content.text.doneText))));
|
|
3539
3596
|
}
|
|
3540
3597
|
const stages = {
|
|
@@ -3546,7 +3603,7 @@ function RewardExchangeView(props) {
|
|
|
3546
3603
|
const currentStage = stages[states.redeemStage];
|
|
3547
3604
|
function stageMap() {
|
|
3548
3605
|
const stageNumber = stageList.indexOf(states.redeemStage);
|
|
3549
|
-
return (index.h("div", { class: sheet$
|
|
3606
|
+
return (index.h("div", { class: sheet$d.classes.ProgressBar },
|
|
3550
3607
|
index.h("div", { class: "text-area" }, Object.keys(stageProgressList).map((stage) => {
|
|
3551
3608
|
if (stageList.indexOf(stage) <= stageNumber) {
|
|
3552
3609
|
return index.h("span", { class: "text" }, stageProgressList[stage]);
|
|
@@ -3558,10 +3615,10 @@ function RewardExchangeView(props) {
|
|
|
3558
3615
|
index.h(ProgressBar, { stageCount: 3, currentStage: stageNumber })));
|
|
3559
3616
|
}
|
|
3560
3617
|
function loading() {
|
|
3561
|
-
return (index.h("div", { class: sheet$
|
|
3618
|
+
return (index.h("div", { class: sheet$d.classes.Grid, part: "loading-container" }, [...Array(states.content.text.skeletonCardNum)].map(() => {
|
|
3562
3619
|
return (index.h("div", null,
|
|
3563
|
-
index.h("sl-card", { class: sheet$
|
|
3564
|
-
index.h("div", { class: sheet$
|
|
3620
|
+
index.h("sl-card", { class: sheet$d.classes.Card },
|
|
3621
|
+
index.h("div", { class: sheet$d.classes.CardLayout },
|
|
3565
3622
|
index.h("div", null,
|
|
3566
3623
|
index.h("sl-skeleton", { style: {
|
|
3567
3624
|
width: "100px",
|
|
@@ -3593,12 +3650,12 @@ function RewardExchangeView(props) {
|
|
|
3593
3650
|
if (!(refs === null || refs === void 0 ? void 0 : refs.canvasRef))
|
|
3594
3651
|
return;
|
|
3595
3652
|
refs.canvasRef.current = canvas;
|
|
3596
|
-
}, id: "my-canvas", class: sheet$
|
|
3653
|
+
}, id: "my-canvas", class: sheet$d.classes.Confetti }));
|
|
3597
3654
|
}
|
|
3598
3655
|
if (states.noExchangeOptions)
|
|
3599
3656
|
return states.content.text.empty;
|
|
3600
|
-
return (index.h("div", { class: sheet$
|
|
3601
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
3657
|
+
return (index.h("div", { class: sheet$d.classes.Container, part: "sqm-base" },
|
|
3658
|
+
index.h("style", { type: "text/css" }, styleString$d),
|
|
3602
3659
|
index.h("div", null,
|
|
3603
3660
|
stageMap(),
|
|
3604
3661
|
states.exchangeError && errorMessage(),
|
|
@@ -4014,7 +4071,7 @@ function CardFeedView(props, children) {
|
|
|
4014
4071
|
index.h("div", { class: sheet.classes.Container, part: "sqm-base" }, children)));
|
|
4015
4072
|
}
|
|
4016
4073
|
|
|
4017
|
-
const style$
|
|
4074
|
+
const style$e = {
|
|
4018
4075
|
HostBlock: mixins.HostBlock,
|
|
4019
4076
|
couponCodeLabel: {
|
|
4020
4077
|
margin: "var(--sl-spacing-x-small) 0",
|
|
@@ -4022,23 +4079,23 @@ const style$d = {
|
|
|
4022
4079
|
fontSize: "var(--sl-font-size-small)",
|
|
4023
4080
|
},
|
|
4024
4081
|
};
|
|
4025
|
-
const vanillaStyle$
|
|
4082
|
+
const vanillaStyle$9 = `
|
|
4026
4083
|
:host{
|
|
4027
4084
|
display: block;
|
|
4028
4085
|
width: 100%;
|
|
4029
4086
|
}
|
|
4030
4087
|
`;
|
|
4031
|
-
const sheet$
|
|
4032
|
-
const styleString$
|
|
4088
|
+
const sheet$e = JSS.createStyleSheet(style$e);
|
|
4089
|
+
const styleString$e = sheet$e.toString();
|
|
4033
4090
|
function CouponCodeView(props) {
|
|
4034
4091
|
const error = !props.loading && props.error;
|
|
4035
4092
|
return (index.h("div", null,
|
|
4036
4093
|
index.h("style", { type: "text/css" },
|
|
4037
|
-
styleString$
|
|
4038
|
-
vanillaStyle$
|
|
4039
|
-
index.h("p", { class: sheet$
|
|
4094
|
+
styleString$e,
|
|
4095
|
+
vanillaStyle$9),
|
|
4096
|
+
index.h("p", { class: sheet$e.classes.couponCodeLabel, style: { textAlign: props.textAlign } }, props.couponCodeLabel),
|
|
4040
4097
|
error ? (index.h("sqm-form-message", { type: props.errorType, exportparts: "erroralert-icon" },
|
|
4041
|
-
index.h("div", { part: "erroralert-text" }, props.errorText))) : (index.h(
|
|
4098
|
+
index.h("div", { part: "erroralert-text" }, props.errorText))) : (index.h(CopyTextView, Object.assign({}, props)))));
|
|
4042
4099
|
}
|
|
4043
4100
|
|
|
4044
4101
|
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))})`}
|
|
@@ -4129,6 +4186,7 @@ const ShadowViewAddon = ({ story }, children) => {
|
|
|
4129
4186
|
exports.BigStatView = BigStatView;
|
|
4130
4187
|
exports.CardFeedView = CardFeedView;
|
|
4131
4188
|
exports.CheckboxFieldView = CheckboxFieldView;
|
|
4189
|
+
exports.CopyTextView = CopyTextView;
|
|
4132
4190
|
exports.CouponCodeView = CouponCodeView;
|
|
4133
4191
|
exports.DropdownFieldView = DropdownFieldView;
|
|
4134
4192
|
exports.EditProfileView = EditProfileView;
|